@resistdesign/voltra 3.0.0-alpha.31 → 3.0.0-alpha.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import type { DocId, DocTokenKey, DocumentRecord, TokenStats } from "../Types";
2
2
  import type { SearchTrace } from "../Trace";
3
3
  import type { DynamoBatchWriter, DynamoQueryClient, WriteRequest } from "../ddb/Types";
4
- export type { BatchGetItemInput, BatchGetItemOutput, BatchWriteItemInput, BatchWriteItemOutput, DynamoBatchWriter, DynamoQueryClient, GetItemInput, GetItemOutput, KeysAndAttributes, QueryInput, QueryOutput, WriteRequest, } from "../ddb/Types";
4
+ export * from "../ddb/Types";
5
5
  /**
6
6
  * Deployment-specific DynamoDB table names required for fulltext storage.
7
7
  */
@@ -82,7 +82,7 @@ export type FullTextDdbBackendConfig = FullTextDdbWriterConfig & {
82
82
  /**
83
83
  * Page of lossy postings results.
84
84
  */
85
- export type LossyPostingsPage = {
85
+ type LossyPostingsPage = {
86
86
  /**
87
87
  * Document ids in the page.
88
88
  */
@@ -95,7 +95,7 @@ export type LossyPostingsPage = {
95
95
  /**
96
96
  * Paging options for lossy postings queries.
97
97
  */
98
- export type LossyPostingsPageOptions = {
98
+ type LossyPostingsPageOptions = {
99
99
  /**
100
100
  * Exclusive starting doc id for paging.
101
101
  */
@@ -208,3 +208,5 @@ export declare class FullTextDdbBackend extends FullTextDdbWriter {
208
208
  */
209
209
  loadTokenStats(token: string, indexField: string): Promise<TokenStats | undefined>;
210
210
  }
211
+ export type FullTextLossyPostingsPage = LossyPostingsPage;
212
+ export type FullTextLossyPostingsPageOptions = LossyPostingsPageOptions;
@@ -28,7 +28,7 @@ export * from "./exact/ExactDdb";
28
28
  export * from "./exact/ExactIndex";
29
29
  export * from "./exact/ExactS3";
30
30
  export * from "./fulltext/FullTextMemoryBackend";
31
- export { FullTextDdbBackend, FullTextDdbWriter, type FullTextTableNames, } from "./fulltext/FullTextDdbBackend";
31
+ export * from "./fulltext/FullTextDdbBackend";
32
32
  export * from "./fulltext/Schema";
33
33
  export * from "./lossy/LossyDdb";
34
34
  export * from "./lossy/LossyIndex";
@@ -36,10 +36,10 @@ export * from "./lossy/LossyS3";
36
36
  export * from "./rel/RelationalInMemoryBackend";
37
37
  export * from "./rel/RelationalDdb";
38
38
  export * from "./rel/Cursor";
39
- export { handler as relHandler, setRelationalHandlerDependencies, type EdgePutEvent, type EdgeRemoveEvent, type EdgeQueryEvent, type RelationalHandlerDependencies, type RelationalHandlerEvent, type LambdaResponse as RelLambdaResponse, } from "./rel/Handlers";
39
+ export * from "./rel/Handlers";
40
40
  export * from "./rel/Types";
41
41
  export * from "./structured/index";
42
42
  export * from "./tokenize";
43
43
  export * from "./Types";
44
44
  export * from "./Trace";
45
- export type { ResolvedSearchLimits } from "./Handler/Config";
45
+ export * from "./Handler/Config";
@@ -107,7 +107,7 @@ export type RelationalHandlerDependencies<TMetadata extends EdgeMetadata = EdgeM
107
107
  /**
108
108
  * Lambda-style response payload.
109
109
  */
110
- export type LambdaResponse = {
110
+ export type RelLambdaResponse = {
111
111
  /**
112
112
  * HTTP status code for the response.
113
113
  */
@@ -139,5 +139,6 @@ value: RelationalHandlerDependencies): void;
139
139
  * @param event Handler event describing the operation to execute.
140
140
  * @returns Lambda response with status and body payload.
141
141
  */
142
- export declare function handler(event: RelationalHandlerEvent): Promise<LambdaResponse>;
142
+ export declare function handler(event: RelationalHandlerEvent): Promise<RelLambdaResponse>;
143
+ export declare const relHandler: typeof handler;
143
144
  export {};
@@ -1,12 +1,2 @@
1
1
  export * from "./Types";
2
2
  export * from "./SupportedTypeInfoORMDBDrivers";
3
- /**
4
- * @category api
5
- * @group Type Dependencies
6
- */
7
- export type { ListItemsConfig, ListItemsResults, } from "../../../../common/SearchTypes";
8
- /**
9
- * @category api
10
- * @group Type Dependencies
11
- */
12
- export type { TypeInfoDataItem, TypeInfoPack, } from "../../../../common/TypeParsing/TypeInfo";
@@ -5,18 +5,4 @@ export * from "./InMemoryItemRelationshipDBDriver";
5
5
  export * from "./InMemoryFileItemDBDriver";
6
6
  export * from "./IndexingRelationshipDriver";
7
7
  export * from "./common";
8
- /**
9
- * @category api
10
- * @group Type Dependencies
11
- */
12
- export type { ListRelationshipsConfig, SearchCriteria, } from "../../../common/SearchTypes";
13
- /**
14
- * @category api
15
- * @group Type Dependencies
16
- */
17
- export type { TypeInfoMap, } from "../../../common/TypeParsing/TypeInfo";
18
- /**
19
- * @category api
20
- * @group Type Dependencies
21
- */
22
- export type { S3SpecificConfig, } from "./S3FileItemDBDriver/ConfigTypes";
8
+ export * from "./S3FileItemDBDriver/ConfigTypes";
@@ -5,29 +5,5 @@ export * from "./drivers";
5
5
  export * from "./TypeInfoORMService";
6
6
  export * from "./DACUtils";
7
7
  export * from "./ORMRouteMap";
8
- /**
9
- * @category api
10
- * @group Type Dependencies
11
- */
12
- export type { DeleteRelationshipResults, ORMOperation, RelationshipOperation, TypeInfoORMAPI, TypeInfoORMContext, } from "../../common/TypeInfoORM/Types";
13
- /**
14
- * @category api
15
- * @group Type Dependencies
16
- */
17
- export type { LiteralValue, TypeInfo, TypeInfoField, TypeOperation, } from "../../common/TypeParsing/TypeInfo";
18
- /**
19
- * @category api
20
- * @group Type Dependencies
21
- */
22
- export type { CustomTypeInfoFieldValidatorMap, TypeInfoValidationResults, } from "../../common/TypeParsing/Validation";
23
- /**
24
- * @category api
25
- * @group Type Dependencies
26
- */
27
- export type { BaseDACRole, DACAccessResult, DACConstraint, DACDataItemResourceAccessResultMap, DACRole, } from "../DataAccessControl";
28
- export { DACConstraintType } from "../DataAccessControl";
29
- /**
30
- * @category api
31
- * @group Type Dependencies
32
- */
33
- export type { AuthInfo, NormalizedCloudFunctionEventData, Route, RouteAuthConfig, RouteHandler, RouteMap, } from "../Router/Types";
8
+ export * from "../DataAccessControl";
9
+ export * from "../Router/Types";
package/api/index.js CHANGED
@@ -1,6 +1,5 @@
1
- import '../chunk-MUCSL3UR.js';
2
1
  import { ERROR_MESSAGE_CONSTANTS, validateTypeOperationAllowed, getValidityValue, validateTypeInfoValue, validateTypeInfoFieldValue } from '../chunk-LGM75I6P.js';
3
- import { ITEM_RELATIONSHIP_DAC_RESOURCE_NAME } from '../chunk-HVY7POTD.js';
2
+ import { ITEM_RELATIONSHIP_DAC_RESOURCE_NAME, ComparisonOperators } from '../chunk-7AMEFPPP.js';
4
3
  import '../chunk-IWRHGGGH.js';
5
4
  import { mergeStringPaths, getPathString, getPathArray } from '../chunk-GYWRAW3Y.js';
6
5
  import '../chunk-I2KLQ2HA.js';
@@ -9,8 +8,6 @@ import { marshall, unmarshall } from '@aws-sdk/util-dynamodb';
9
8
  import { S3, PutObjectCommand, HeadObjectCommand, CopyObjectCommand, GetObjectCommand, DeleteObjectCommand, ListObjectsV2Command } from '@aws-sdk/client-s3';
10
9
  import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
11
10
  import { v4 } from 'uuid';
12
- import Path from 'path';
13
- import { fileURLToPath } from 'url';
14
11
 
15
12
  // src/api/Indexing/Cursor.ts
16
13
  var textEncoder = new TextEncoder();
@@ -212,6 +209,44 @@ var SEARCH_DEFAULTS = {
212
209
  maxCandidatesVerified: 200,
213
210
  softTimeBudgetMs: 150
214
211
  };
212
+ var SEARCH_CAPS = {
213
+ maxTokens: Number.POSITIVE_INFINITY,
214
+ maxPostingsPages: Number.POSITIVE_INFINITY,
215
+ maxCandidatesVerified: Number.POSITIVE_INFINITY,
216
+ softTimeBudgetMs: Number.POSITIVE_INFINITY
217
+ };
218
+ function clampLimit(value, fallback, cap) {
219
+ if (!Number.isFinite(value)) {
220
+ return Math.min(fallback, cap);
221
+ }
222
+ const safeValue = Math.max(0, value);
223
+ return Math.min(safeValue, cap);
224
+ }
225
+ function resolveSearchLimits(limits) {
226
+ const requested = { ...SEARCH_DEFAULTS, ...limits };
227
+ return {
228
+ maxTokens: clampLimit(
229
+ requested.maxTokens,
230
+ SEARCH_DEFAULTS.maxTokens,
231
+ SEARCH_CAPS.maxTokens
232
+ ),
233
+ maxPostingsPages: clampLimit(
234
+ requested.maxPostingsPages,
235
+ SEARCH_DEFAULTS.maxPostingsPages,
236
+ SEARCH_CAPS.maxPostingsPages
237
+ ),
238
+ maxCandidatesVerified: clampLimit(
239
+ requested.maxCandidatesVerified,
240
+ SEARCH_DEFAULTS.maxCandidatesVerified,
241
+ SEARCH_CAPS.maxCandidatesVerified
242
+ ),
243
+ softTimeBudgetMs: clampLimit(
244
+ requested.softTimeBudgetMs,
245
+ SEARCH_DEFAULTS.softTimeBudgetMs,
246
+ SEARCH_CAPS.softTimeBudgetMs
247
+ )
248
+ };
249
+ }
215
250
 
216
251
  // src/api/Indexing/hashUniversal.ts
217
252
  var textEncoder2 = new TextEncoder();
@@ -800,7 +835,7 @@ async function searchLossy({
800
835
  setBackendTrace(reader, void 0);
801
836
  }
802
837
  }
803
- async function hasExactPhrase(reader, docId, indexField, phraseTokens, docTokenChecker, positionsLoader) {
838
+ async function hasExactPhrase(docId, phraseTokens, docTokenChecker, positionsLoader) {
804
839
  if (phraseTokens.length === 0) {
805
840
  return false;
806
841
  }
@@ -902,9 +937,7 @@ async function searchExact({
902
937
  continue;
903
938
  }
904
939
  if (await hasExactPhrase(
905
- reader,
906
940
  docId,
907
- indexField,
908
941
  exactTokens,
909
942
  docTokenChecker,
910
943
  positionsLoader
@@ -943,9 +976,7 @@ async function searchExact({
943
976
  const verifyCandidate = async (docId) => {
944
977
  lastProcessedDocId = docId;
945
978
  return hasExactPhrase(
946
- reader,
947
979
  docId,
948
- indexField,
949
980
  exactTokens,
950
981
  docTokenChecker,
951
982
  positionsLoader
@@ -2989,6 +3020,7 @@ async function handler(event) {
2989
3020
  };
2990
3021
  }
2991
3022
  }
3023
+ var relHandler = handler;
2992
3024
 
2993
3025
  // src/api/Indexing/structured/Cursor.ts
2994
3026
  function encodeBase64Url2(value) {
@@ -4275,57 +4307,30 @@ var S3FileDriver = class {
4275
4307
  };
4276
4308
  };
4277
4309
 
4278
- // src/common/SearchTypes.ts
4279
- var ComparisonOperators = /* @__PURE__ */ ((ComparisonOperators2) => {
4280
- ComparisonOperators2["EQUALS"] = "EQUALS";
4281
- ComparisonOperators2["NOT_EQUALS"] = "NOT_EQUALS";
4282
- ComparisonOperators2["GREATER_THAN"] = "GREATER_THAN";
4283
- ComparisonOperators2["GREATER_THAN_OR_EQUAL"] = "GREATER_THAN_OR_EQUAL";
4284
- ComparisonOperators2["LESS_THAN"] = "LESS_THAN";
4285
- ComparisonOperators2["LESS_THAN_OR_EQUAL"] = "LESS_THAN_OR_EQUAL";
4286
- ComparisonOperators2["IN"] = "IN";
4287
- ComparisonOperators2["NOT_IN"] = "NOT_IN";
4288
- ComparisonOperators2["LIKE"] = "LIKE";
4289
- ComparisonOperators2["NOT_LIKE"] = "NOT_LIKE";
4290
- ComparisonOperators2["EXISTS"] = "EXISTS";
4291
- ComparisonOperators2["NOT_EXISTS"] = "NOT_EXISTS";
4292
- ComparisonOperators2["IS_NOT_EMPTY"] = "IS_NOT_EMPTY";
4293
- ComparisonOperators2["IS_EMPTY"] = "IS_EMPTY";
4294
- ComparisonOperators2["BETWEEN"] = "BETWEEN";
4295
- ComparisonOperators2["NOT_BETWEEN"] = "NOT_BETWEEN";
4296
- ComparisonOperators2["CONTAINS"] = "CONTAINS";
4297
- ComparisonOperators2["NOT_CONTAINS"] = "NOT_CONTAINS";
4298
- ComparisonOperators2["STARTS_WITH"] = "STARTS_WITH";
4299
- ComparisonOperators2["ENDS_WITH"] = "ENDS_WITH";
4300
- ComparisonOperators2["DOES_NOT_START_WITH"] = "DOES_NOT_START_WITH";
4301
- ComparisonOperators2["DOES_NOT_END_WITH"] = "DOES_NOT_END_WITH";
4302
- return ComparisonOperators2;
4303
- })(ComparisonOperators || {});
4304
-
4305
4310
  // src/common/SearchUtils.ts
4306
4311
  var COMPARATORS = {
4307
- ["EQUALS" /* EQUALS */]: (criterionValue, criterionValueOptions, fieldValue) => fieldValue === criterionValue,
4308
- ["NOT_EQUALS" /* NOT_EQUALS */]: (criterionValue, criterionValueOptions, fieldValue) => fieldValue !== criterionValue,
4309
- ["GREATER_THAN" /* GREATER_THAN */]: (criterionValue, criterionValueOptions, fieldValue) => fieldValue > criterionValue,
4310
- ["GREATER_THAN_OR_EQUAL" /* GREATER_THAN_OR_EQUAL */]: (criterionValue, criterionValueOptions, fieldValue) => fieldValue >= criterionValue,
4311
- ["LESS_THAN" /* LESS_THAN */]: (criterionValue, criterionValueOptions, fieldValue) => fieldValue < criterionValue,
4312
- ["LESS_THAN_OR_EQUAL" /* LESS_THAN_OR_EQUAL */]: (criterionValue, criterionValueOptions, fieldValue) => fieldValue <= criterionValue,
4313
- ["IN" /* IN */]: (criterionValue, criterionValueOptions, fieldValue) => Array.isArray(criterionValueOptions) && criterionValueOptions.includes(fieldValue),
4314
- ["NOT_IN" /* NOT_IN */]: (criterionValue, criterionValueOptions, fieldValue) => !Array.isArray(criterionValueOptions) || !criterionValueOptions.includes(fieldValue),
4315
- ["LIKE" /* LIKE */]: (criterionValue, criterionValueOptions, fieldValue) => `${fieldValue}`.includes(`${criterionValue}`),
4316
- ["NOT_LIKE" /* NOT_LIKE */]: (criterionValue, criterionValueOptions, fieldValue) => !`${fieldValue}`.includes(`${criterionValue}`),
4317
- ["EXISTS" /* EXISTS */]: (criterionValue, criterionValueOptions, fieldValue) => fieldValue !== void 0 && fieldValue !== null,
4318
- ["NOT_EXISTS" /* NOT_EXISTS */]: (criterionValue, criterionValueOptions, fieldValue) => fieldValue === void 0 || fieldValue === null,
4319
- ["IS_NOT_EMPTY" /* IS_NOT_EMPTY */]: (criterionValue, criterionValueOptions, fieldValue) => fieldValue !== void 0 && fieldValue !== null && fieldValue !== "",
4320
- ["IS_EMPTY" /* IS_EMPTY */]: (criterionValue, criterionValueOptions, fieldValue) => fieldValue === void 0 || fieldValue === null || fieldValue === "",
4321
- ["BETWEEN" /* BETWEEN */]: (criterionValue, criterionValueOptions, fieldValue) => Array.isArray(criterionValueOptions) && fieldValue >= criterionValueOptions[0] && fieldValue <= criterionValueOptions[1],
4322
- ["NOT_BETWEEN" /* NOT_BETWEEN */]: (criterionValue, criterionValueOptions, fieldValue) => !Array.isArray(criterionValueOptions) || fieldValue < criterionValueOptions[0] || fieldValue > criterionValueOptions[1],
4323
- ["CONTAINS" /* CONTAINS */]: (criterionValue, criterionValueOptions, fieldValue) => Array.isArray(fieldValue) && fieldValue.includes(criterionValue),
4324
- ["NOT_CONTAINS" /* NOT_CONTAINS */]: (criterionValue, criterionValueOptions, fieldValue) => !Array.isArray(fieldValue) || !fieldValue.includes(criterionValue),
4325
- ["STARTS_WITH" /* STARTS_WITH */]: (criterionValue, criterionValueOptions, fieldValue) => `${fieldValue}`.startsWith(`${criterionValue}`),
4326
- ["ENDS_WITH" /* ENDS_WITH */]: (criterionValue, criterionValueOptions, fieldValue) => `${fieldValue}`.endsWith(`${criterionValue}`),
4327
- ["DOES_NOT_START_WITH" /* DOES_NOT_START_WITH */]: (criterionValue, criterionValueOptions, fieldValue) => !`${fieldValue}`.startsWith(`${criterionValue}`),
4328
- ["DOES_NOT_END_WITH" /* DOES_NOT_END_WITH */]: (criterionValue, criterionValueOptions, fieldValue) => !`${fieldValue}`.endsWith(`${criterionValue}`)
4312
+ ["EQUALS" /* EQUALS */]: (criterionValue, _criterionValueOptions, fieldValue) => fieldValue === criterionValue,
4313
+ ["NOT_EQUALS" /* NOT_EQUALS */]: (criterionValue, _criterionValueOptions, fieldValue) => fieldValue !== criterionValue,
4314
+ ["GREATER_THAN" /* GREATER_THAN */]: (criterionValue, _criterionValueOptions, fieldValue) => fieldValue > criterionValue,
4315
+ ["GREATER_THAN_OR_EQUAL" /* GREATER_THAN_OR_EQUAL */]: (criterionValue, _criterionValueOptions, fieldValue) => fieldValue >= criterionValue,
4316
+ ["LESS_THAN" /* LESS_THAN */]: (criterionValue, _criterionValueOptions, fieldValue) => fieldValue < criterionValue,
4317
+ ["LESS_THAN_OR_EQUAL" /* LESS_THAN_OR_EQUAL */]: (criterionValue, _criterionValueOptions, fieldValue) => fieldValue <= criterionValue,
4318
+ ["IN" /* IN */]: (_criterionValue, criterionValueOptions, fieldValue) => Array.isArray(criterionValueOptions) && criterionValueOptions.includes(fieldValue),
4319
+ ["NOT_IN" /* NOT_IN */]: (_criterionValue, criterionValueOptions, fieldValue) => !Array.isArray(criterionValueOptions) || !criterionValueOptions.includes(fieldValue),
4320
+ ["LIKE" /* LIKE */]: (criterionValue, _criterionValueOptions, fieldValue) => `${fieldValue}`.includes(`${criterionValue}`),
4321
+ ["NOT_LIKE" /* NOT_LIKE */]: (criterionValue, _criterionValueOptions, fieldValue) => !`${fieldValue}`.includes(`${criterionValue}`),
4322
+ ["EXISTS" /* EXISTS */]: (_criterionValue, _criterionValueOptions, fieldValue) => fieldValue !== void 0 && fieldValue !== null,
4323
+ ["NOT_EXISTS" /* NOT_EXISTS */]: (_criterionValue, _criterionValueOptions, fieldValue) => fieldValue === void 0 || fieldValue === null,
4324
+ ["IS_NOT_EMPTY" /* IS_NOT_EMPTY */]: (_criterionValue, _criterionValueOptions, fieldValue) => fieldValue !== void 0 && fieldValue !== null && fieldValue !== "",
4325
+ ["IS_EMPTY" /* IS_EMPTY */]: (_criterionValue, _criterionValueOptions, fieldValue) => fieldValue === void 0 || fieldValue === null || fieldValue === "",
4326
+ ["BETWEEN" /* BETWEEN */]: (_criterionValue, criterionValueOptions, fieldValue) => Array.isArray(criterionValueOptions) && fieldValue >= criterionValueOptions[0] && fieldValue <= criterionValueOptions[1],
4327
+ ["NOT_BETWEEN" /* NOT_BETWEEN */]: (_criterionValue, criterionValueOptions, fieldValue) => !Array.isArray(criterionValueOptions) || fieldValue < criterionValueOptions[0] || fieldValue > criterionValueOptions[1],
4328
+ ["CONTAINS" /* CONTAINS */]: (criterionValue, _criterionValueOptions, fieldValue) => Array.isArray(fieldValue) && fieldValue.includes(criterionValue),
4329
+ ["NOT_CONTAINS" /* NOT_CONTAINS */]: (criterionValue, _criterionValueOptions, fieldValue) => !Array.isArray(fieldValue) || !fieldValue.includes(criterionValue),
4330
+ ["STARTS_WITH" /* STARTS_WITH */]: (criterionValue, _criterionValueOptions, fieldValue) => `${fieldValue}`.startsWith(`${criterionValue}`),
4331
+ ["ENDS_WITH" /* ENDS_WITH */]: (criterionValue, _criterionValueOptions, fieldValue) => `${fieldValue}`.endsWith(`${criterionValue}`),
4332
+ ["DOES_NOT_START_WITH" /* DOES_NOT_START_WITH */]: (criterionValue, _criterionValueOptions, fieldValue) => !`${fieldValue}`.startsWith(`${criterionValue}`),
4333
+ ["DOES_NOT_END_WITH" /* DOES_NOT_END_WITH */]: (criterionValue, _criterionValueOptions, fieldValue) => !`${fieldValue}`.endsWith(`${criterionValue}`)
4329
4334
  };
4330
4335
  var compare = (fieldCriterion, fieldValue) => {
4331
4336
  const {
@@ -5600,7 +5605,6 @@ var ConfigTypeInfoMap_default2 = {
5600
5605
  };
5601
5606
 
5602
5607
  // src/api/ORM/drivers/DynamoDBDataItemDBDriver.ts
5603
- typeof __dirname === "string" ? __dirname : Path.dirname(fileURLToPath(import.meta.url));
5604
5608
  var DynamoDBOperatorMappings = {
5605
5609
  ["EQUALS" /* EQUALS */]: (fieldName) => `#${fieldName} = :${fieldName}`,
5606
5610
  ["NOT_EQUALS" /* NOT_EQUALS */]: (fieldName) => `#${fieldName} <> :${fieldName}`,
@@ -5889,7 +5893,6 @@ var ConfigTypeInfoMap_default3 = {
5889
5893
  };
5890
5894
 
5891
5895
  // src/api/ORM/drivers/InMemoryDataItemDBDriver.ts
5892
- typeof __dirname === "string" ? __dirname : Path.dirname(fileURLToPath(import.meta.url));
5893
5896
  var decodeCursor2 = (cursor) => {
5894
5897
  if (!cursor) {
5895
5898
  return 0;
@@ -6100,7 +6103,6 @@ var ConfigTypeInfoMap_default4 = {
6100
6103
  };
6101
6104
 
6102
6105
  // src/api/ORM/drivers/InMemoryFileItemDBDriver.ts
6103
- typeof __dirname === "string" ? __dirname : Path.dirname(fileURLToPath(import.meta.url));
6104
6106
  var decodeCursor3 = (cursor) => {
6105
6107
  if (!cursor) {
6106
6108
  return 0;
@@ -8722,7 +8724,7 @@ var getTypeInfoORMRouteMap = (config, dacConfig, getAccessingRoleId, authConfig)
8722
8724
  authConfig: defaultAuthConfig,
8723
8725
  handlerFactory
8724
8726
  });
8725
- const createHandlerFactory = (eventData) => orm.create;
8727
+ const createHandlerFactory = (_eventData) => orm.create;
8726
8728
  const createHandlerFactoryWithDAC = (eventData) => {
8727
8729
  resolveContext(eventData);
8728
8730
  return orm.create;
@@ -8824,4 +8826,4 @@ var getContextFromEventData = (eventData, dacConfig, getAccessingRoleId) => {
8824
8826
  return { accessingRoleId };
8825
8827
  };
8826
8828
 
8827
- export { AWS, DACConstraintType, DATA_ITEM_DB_DRIVER_ERRORS, DynamoDBDataItemDBDriver, DynamoDBSupportedDataItemDBDriverEntry, ExactIndex, FullTextDdbBackend, FullTextDdbWriter, FullTextMemoryBackend, InMemoryDataItemDBDriver, InMemoryFileItemDBDriver, InMemoryFileSupportedDataItemDBDriverEntry, InMemoryItemRelationshipDBDriver, InMemorySupportedDataItemDBDriverEntry, IndexingRelationshipDriver, LossyIndex, RelationalDdbBackend, RelationalInMemoryBackend, S3FileItemDBDriver, S3SupportedFileItemDBDriverEntry, SUPPORTED_TYPE_INFO_ORM_DB_DRIVERS, StructuredDdbBackend, StructuredDdbReader, StructuredDdbWriter, StructuredInMemoryBackend, StructuredInMemoryIndex, SupportedTypeInfoORMDBDriverNames, TYPE_INFO_ORM_API_PATH_METHOD_NAME_MAP, TYPE_INFO_ORM_ROUTE_MAP_ERRORS, TypeInfoORMService, WILDCARD_SIGNIFIER_PROTOTYPE, addRouteMapToRouteMap, addRouteToRouteMap, addRoutesToRouteMap, batchWriteWithRetry, buildExactDdbItem, buildExactDdbKey, buildExactS3Key, buildLossyDdbKey, buildLossyS3Key, buildRelationEdgeDdbItem, buildRelationEdgeDdbKey, buildStructuredDocFieldsItem, buildStructuredRangeItem, buildStructuredRangeKey, buildStructuredTermItem, buildStructuredTermKey, cleanRelationshipItem, createAwsSdkV3DynamoClient, createRelationEdgesDdbDependencies, createSearchTrace, decodeExactCursor, decodeLossyCursor, decodeRelationalCursor, decodeStructuredCursor, docTokenPositionsSchema, docTokensSchema, encodeDocKey, encodeDocMirrorKey, encodeDocTokenPositionSortKey, encodeDocTokenSortKey, encodeExactCursor, encodeLossyCursor, encodeRelationEdgePartitionKey, encodeRelationalCursor, encodeStructuredCursor, encodeTokenDocSortKey, encodeTokenKey, exactDdbSchema, exactPostingsSchema, fullTextDocMirrorSchema, fullTextKeyPrefixes, fullTextTokenStatsSchema, getDACPathsMatch, getDACRoleHasAccessToDataItem, getDataItemDACResourcePath, getDataItemFieldValueDACResourcePath, getDriverMethodWithModifiedError, getFlattenedDACConstraints, getFullORMDACRole, getItemRelationshipDACResourcePath, getItemRelationshipOriginDACConstraint, getItemRelationshipOriginDACResourcePath, getItemRelationshipOriginDACRole, getItemTypeDACConstraint, getItemTypeDACResourcePath, getItemTypeDACRole, getORMDACResourcePath, getResourceAccessByDACRole, getTypeInfoORMRouteMap, getValueIsWildcardSignifier, handleCloudFunctionEvent, indexDocument, loadExactPositions, loadLossyIndex, lossyDdbSchema, lossyPostingsSchema, mergeDACAccessResults, mergeDACDataItemResourceAccessResultMaps, qualifyIndexField, handler as relHandler, relationEdgesSchema, removeDocument, replaceFullTextDocument, searchExact, searchLossy, searchStructured, serializeStructuredValue, setIndexBackend, setRelationalHandlerDependencies, setStructuredHandlerDependencies, storeExactPositions, storeLossyIndex, structuredDocFieldsSchema, structuredHandler, structuredRangeIndexSchema, structuredTermIndexSchema, tokenize, tokenizeLossyTrigrams };
8829
+ export { AWS, DACConstraintType, DATA_ITEM_DB_DRIVER_ERRORS, DynamoDBDataItemDBDriver, DynamoDBSupportedDataItemDBDriverEntry, ExactIndex, FullTextDdbBackend, FullTextDdbWriter, FullTextMemoryBackend, InMemoryDataItemDBDriver, InMemoryFileItemDBDriver, InMemoryFileSupportedDataItemDBDriverEntry, InMemoryItemRelationshipDBDriver, InMemorySupportedDataItemDBDriverEntry, IndexingRelationshipDriver, LossyIndex, RelationalDdbBackend, RelationalInMemoryBackend, S3FileItemDBDriver, S3SupportedFileItemDBDriverEntry, SEARCH_CAPS, SEARCH_DEFAULTS, SUPPORTED_TYPE_INFO_ORM_DB_DRIVERS, StructuredDdbBackend, StructuredDdbReader, StructuredDdbWriter, StructuredInMemoryBackend, StructuredInMemoryIndex, SupportedTypeInfoORMDBDriverNames, TYPE_INFO_ORM_API_PATH_METHOD_NAME_MAP, TYPE_INFO_ORM_ROUTE_MAP_ERRORS, TypeInfoORMService, WILDCARD_SIGNIFIER_PROTOTYPE, addRouteMapToRouteMap, addRouteToRouteMap, addRoutesToRouteMap, batchWriteWithRetry, buildExactDdbItem, buildExactDdbKey, buildExactS3Key, buildLossyDdbKey, buildLossyS3Key, buildRelationEdgeDdbItem, buildRelationEdgeDdbKey, buildStructuredDocFieldsItem, buildStructuredRangeItem, buildStructuredRangeKey, buildStructuredTermItem, buildStructuredTermKey, cleanRelationshipItem, createAwsSdkV3DynamoClient, createRelationEdgesDdbDependencies, createSearchTrace, decodeExactCursor, decodeLossyCursor, decodeRelationalCursor, decodeStructuredCursor, docTokenPositionsSchema, docTokensSchema, encodeDocKey, encodeDocMirrorKey, encodeDocTokenPositionSortKey, encodeDocTokenSortKey, encodeExactCursor, encodeLossyCursor, encodeRelationEdgePartitionKey, encodeRelationalCursor, encodeStructuredCursor, encodeTokenDocSortKey, encodeTokenKey, exactDdbSchema, exactPostingsSchema, fullTextDocMirrorSchema, fullTextKeyPrefixes, fullTextTokenStatsSchema, getDACPathsMatch, getDACRoleHasAccessToDataItem, getDataItemDACResourcePath, getDataItemFieldValueDACResourcePath, getDriverMethodWithModifiedError, getFlattenedDACConstraints, getFullORMDACRole, getItemRelationshipDACResourcePath, getItemRelationshipOriginDACConstraint, getItemRelationshipOriginDACResourcePath, getItemRelationshipOriginDACRole, getItemTypeDACConstraint, getItemTypeDACResourcePath, getItemTypeDACRole, getORMDACResourcePath, getResourceAccessByDACRole, getTypeInfoORMRouteMap, getValueIsWildcardSignifier, handleCloudFunctionEvent, handler, indexDocument, loadExactPositions, loadLossyIndex, lossyDdbSchema, lossyPostingsSchema, mergeDACAccessResults, mergeDACDataItemResourceAccessResultMaps, qualifyIndexField, relHandler, relationEdgesSchema, removeDocument, replaceFullTextDocument, resolveSearchLimits, searchExact, searchLossy, searchStructured, serializeStructuredValue, setIndexBackend, setRelationalHandlerDependencies, setStructuredHandlerDependencies, storeExactPositions, storeLossyIndex, structuredDocFieldsSchema, structuredHandler, structuredRangeIndexSchema, structuredTermIndexSchema, tokenize, tokenizeLossyTrigrams };
@@ -9,8 +9,3 @@ export * from "./resolveSuite";
9
9
  export * from "./createAutoField";
10
10
  export * from "./createFormRenderer";
11
11
  export * from "./mergeSuites";
12
- /**
13
- * @category app
14
- * @group Type Dependencies
15
- */
16
- export type { LiteralValue, TypeInfoDataItem, TypeInfoField, } from "../../../common/TypeParsing/TypeInfo";
@@ -4,12 +4,6 @@
4
4
  * Form generation module.
5
5
  */
6
6
  export * from "./types";
7
- export type { ComponentSuite, FieldKind, FieldRenderContext, FieldRenderer, FieldValue, PrimitiveComponent, PrimitiveComponents, ResolvedSuite, } from "./core";
8
- export { createAutoField, createFormRenderer, getFieldKind, mergeSuites, resolveSuite, withRendererOverride, } from "./core";
7
+ export * from "./core";
9
8
  export * from "./Engine";
10
9
  export * from "./UI";
11
- /**
12
- * @category app
13
- * @group Type Dependencies
14
- */
15
- export type { LiteralValue, TypeInfo, TypeInfoDataItem, TypeInfoField, TypeOperation, } from "../../common/TypeParsing/TypeInfo";
@@ -4,7 +4,8 @@
4
4
  * Types for the form generation system.
5
5
  */
6
6
  import type { TypeInfo, TypeInfoDataItem, TypeInfoField, TypeOperation } from "../../common/TypeParsing/TypeInfo";
7
- import type { ItemRelationshipInfoType } from "../../common/ItemRelationshipInfoTypes";
7
+ import type { CustomTypeActionPayload, RelationActionPayload } from "./core/types";
8
+ export * from "./core/types";
8
9
  /**
9
10
  * Loose map of form values keyed by field.
10
11
  */
@@ -107,50 +108,3 @@ export type FormController = {
107
108
  /** Override form errors with a provided map. */
108
109
  setErrors: (errors: Record<string, string>) => void;
109
110
  };
110
- /**
111
- * Supported relation actions emitted by fields.
112
- */
113
- export type RelationAction = "open" | "add" | "edit" | "remove";
114
- /**
115
- * Payload for relation action callbacks.
116
- */
117
- export type RelationActionPayload = {
118
- /** Relation action to perform. */
119
- action: RelationAction;
120
- /** Field key that initiated the action. */
121
- fieldKey: string;
122
- /** Field metadata for the relation. */
123
- field: TypeInfoField;
124
- /** Current relation value for the field. */
125
- value: ItemRelationshipInfoType | ItemRelationshipInfoType[] | undefined;
126
- /** Whether relation selection should use full paging. */
127
- fullPaging?: boolean;
128
- /** Index when acting on an array item. */
129
- index?: number;
130
- /** Change handler to update the relation value. */
131
- onChange: (value: FormValue) => void;
132
- };
133
- /**
134
- * Supported actions for custom type handlers.
135
- */
136
- export type CustomTypeAction = "open" | "add" | "edit" | "remove";
137
- /**
138
- * Payload for custom type action callbacks.
139
- */
140
- export type CustomTypeActionPayload = {
141
- /** Custom type action to perform. */
142
- action: CustomTypeAction;
143
- /** Field key that initiated the action. */
144
- fieldKey: string;
145
- /** Field metadata for the custom type. */
146
- field: TypeInfoField;
147
- /** Custom type identifier. */
148
- customType: string;
149
- /** Current value for the custom type. */
150
- value: FormValue | undefined;
151
- /** Index when acting on an array item. */
152
- index?: number;
153
- /** Change handler to update the custom value. */
154
- onChange: (value: FormValue) => void;
155
- };
156
- export {};
package/app/index.js CHANGED
@@ -1,8 +1,7 @@
1
- import '../chunk-MUCSL3UR.js';
2
1
  export { createEasyLayout, getEasyLayoutTemplateDetails, getPascalCaseAreaName } from '../chunk-FQMZMCXU.js';
3
2
  export { Route, RouteContext, RouteContextConsumer, RouteContextProvider, RouteProvider, buildHistoryPath, buildQueryString, buildRoutePath, canUseBrowserHistory, computeTrackPixels, createBrowserRouteAdapter, createHistoryBackHandler, createManualRouteAdapter, createMemoryHistory, createNativeRouteAdapter, createRouteAdapterFromHistory, createUniversalAdapter, parseHistoryPath, useRouteContext } from '../chunk-G5CLUK4Y.js';
4
3
  export { AutoForm, AutoFormView, computeAreaBounds, createAutoField, createFormRenderer, getFieldKind, parseTemplate, resolveSuite, useFormEngine, validateAreas } from '../chunk-WELZGQDJ.js';
5
- import '../chunk-HVY7POTD.js';
4
+ import '../chunk-7AMEFPPP.js';
6
5
  import '../chunk-IWRHGGGH.js';
7
6
  import { mergeStringPaths, PATH_DELIMITER } from '../chunk-GYWRAW3Y.js';
8
7
  import '../chunk-I2KLQ2HA.js';
@@ -4,7 +4,7 @@
4
4
  * Render-agnostic routing helpers with nested Route contexts.
5
5
  * Supply a RouteAdapter via RouteProvider or use root Route provider mode.
6
6
  */
7
- import React, { PropsWithChildren } from "react";
7
+ import { PropsWithChildren } from "react";
8
8
  import { type UniversalRouteIngress } from "./UniversalRouteAdapter";
9
9
  /**
10
10
  * Platform adapter that supplies the current path and change notifications.
@@ -97,8 +97,8 @@ export type RouteContextType = {
97
97
  /**
98
98
  * React context for route state and parameters.
99
99
  */
100
- export declare const RouteContext: React.Context<RouteContextType>;
101
- export declare const RouteContextProvider: React.Provider<RouteContextType>, RouteContextConsumer: React.Consumer<RouteContextType>;
100
+ export declare const RouteContext: import("react").Context<RouteContextType>;
101
+ export declare const RouteContextProvider: import("react").Provider<RouteContextType>, RouteContextConsumer: import("react").Consumer<RouteContextType>;
102
102
  /**
103
103
  * Access Route path and parameter information.
104
104
  *
@@ -22,18 +22,3 @@ export * from "./UniversalRouteAdapter";
22
22
  export * from "./Service";
23
23
  export * from "./TypeInfoORMAPIUtils";
24
24
  export * from "./TypeInfoORMClient";
25
- /**
26
- * @category app
27
- * @group Type Dependencies
28
- */
29
- export type { ListItemsConfig, ListItemsResults, ListRelationshipsConfig, } from "../../common/SearchTypes";
30
- /**
31
- * @category app
32
- * @group Type Dependencies
33
- */
34
- export type { DeleteRelationshipResults, TypeInfoORMAPIRoutePaths, TypeInfoORMClientAPI, TypeInfoORMServiceError, } from "../../common/TypeInfoORM/Types";
35
- /**
36
- * @category app
37
- * @group Type Dependencies
38
- */
39
- export type { TypeInfoDataItem, } from "../../common/TypeParsing/TypeInfo";
package/build/index.js CHANGED
@@ -404,7 +404,7 @@ var getTypeInfoFromPickOmitFieldFilters = (typeNameStr, typeRef, typeMap) => {
404
404
  }
405
405
  return typeInfo;
406
406
  };
407
- var getTypeInfoFromExcludeFieldFilter = (typeNameStr, typeRef, typeMap) => {
407
+ var getTypeInfoFromExcludeFieldFilter = (_typeNameStr, typeRef, typeMap) => {
408
408
  const baseTypeKind = typeRef.typeArguments?.[0].kind;
409
409
  const excludeTypeKind = typeRef.typeArguments?.[1].kind;
410
410
  let typeInfo;
@@ -449,7 +449,7 @@ var getTypeInfoFromExcludeFieldFilter = (typeNameStr, typeRef, typeMap) => {
449
449
  }
450
450
  return typeInfo;
451
451
  };
452
- var defaultFieldFilterProcessor = (typeNameStr, typeRef, typeMap) => {
452
+ var defaultFieldFilterProcessor = (typeNameStr, _typeRef, typeMap) => {
453
453
  const refNode = typeNameStr ? typeMap[typeNameStr] : void 0;
454
454
  let typeInfo;
455
455
  if (refNode) {
@@ -0,0 +1,78 @@
1
+ // src/common/SearchTypes.ts
2
+ var LogicalOperators = /* @__PURE__ */ ((LogicalOperators2) => {
3
+ LogicalOperators2["AND"] = "AND";
4
+ LogicalOperators2["OR"] = "OR";
5
+ return LogicalOperators2;
6
+ })(LogicalOperators || {});
7
+ var ComparisonOperators = /* @__PURE__ */ ((ComparisonOperators2) => {
8
+ ComparisonOperators2["EQUALS"] = "EQUALS";
9
+ ComparisonOperators2["NOT_EQUALS"] = "NOT_EQUALS";
10
+ ComparisonOperators2["GREATER_THAN"] = "GREATER_THAN";
11
+ ComparisonOperators2["GREATER_THAN_OR_EQUAL"] = "GREATER_THAN_OR_EQUAL";
12
+ ComparisonOperators2["LESS_THAN"] = "LESS_THAN";
13
+ ComparisonOperators2["LESS_THAN_OR_EQUAL"] = "LESS_THAN_OR_EQUAL";
14
+ ComparisonOperators2["IN"] = "IN";
15
+ ComparisonOperators2["NOT_IN"] = "NOT_IN";
16
+ ComparisonOperators2["LIKE"] = "LIKE";
17
+ ComparisonOperators2["NOT_LIKE"] = "NOT_LIKE";
18
+ ComparisonOperators2["EXISTS"] = "EXISTS";
19
+ ComparisonOperators2["NOT_EXISTS"] = "NOT_EXISTS";
20
+ ComparisonOperators2["IS_NOT_EMPTY"] = "IS_NOT_EMPTY";
21
+ ComparisonOperators2["IS_EMPTY"] = "IS_EMPTY";
22
+ ComparisonOperators2["BETWEEN"] = "BETWEEN";
23
+ ComparisonOperators2["NOT_BETWEEN"] = "NOT_BETWEEN";
24
+ ComparisonOperators2["CONTAINS"] = "CONTAINS";
25
+ ComparisonOperators2["NOT_CONTAINS"] = "NOT_CONTAINS";
26
+ ComparisonOperators2["STARTS_WITH"] = "STARTS_WITH";
27
+ ComparisonOperators2["ENDS_WITH"] = "ENDS_WITH";
28
+ ComparisonOperators2["DOES_NOT_START_WITH"] = "DOES_NOT_START_WITH";
29
+ ComparisonOperators2["DOES_NOT_END_WITH"] = "DOES_NOT_END_WITH";
30
+ return ComparisonOperators2;
31
+ })(ComparisonOperators || {});
32
+
33
+ // src/common/TypeInfoORM/Types.ts
34
+ var ITEM_RELATIONSHIP_DAC_RESOURCE_NAME = "TYPE_INFO_ORM_ITEM_RELATIONSHIP";
35
+ var RelationshipOperation = /* @__PURE__ */ ((RelationshipOperation2) => {
36
+ RelationshipOperation2["GET"] = "GET";
37
+ RelationshipOperation2["SET"] = "SET";
38
+ RelationshipOperation2["UNSET"] = "UNSET";
39
+ return RelationshipOperation2;
40
+ })(RelationshipOperation || {});
41
+ var OperationGroup = /* @__PURE__ */ ((OperationGroup2) => {
42
+ OperationGroup2["ALL_OPERATIONS"] = "ALL_OPERATIONS";
43
+ OperationGroup2["ALL_ITEM_OPERATIONS"] = "ALL_ITEM_OPERATIONS";
44
+ OperationGroup2["ALL_RELATIONSHIP_OPERATIONS"] = "ALL_RELATIONSHIP_OPERATIONS";
45
+ return OperationGroup2;
46
+ })(OperationGroup || {});
47
+ var TypeInfoORMServiceError = /* @__PURE__ */ ((TypeInfoORMServiceError2) => {
48
+ TypeInfoORMServiceError2["NO_DRIVERS_SUPPLIED"] = "NO_DRIVERS_SUPPLIED";
49
+ TypeInfoORMServiceError2["NO_RELATIONSHIP_DRIVERS_SUPPLIED"] = "NO_RELATIONSHIP_DRIVERS_SUPPLIED";
50
+ TypeInfoORMServiceError2["NO_PRIMARY_FIELD_VALUE_SUPPLIED"] = "NO_PRIMARY_FIELD_VALUE_SUPPLIED";
51
+ TypeInfoORMServiceError2["INVALID_DRIVER"] = "INVALID_DRIVER";
52
+ TypeInfoORMServiceError2["INVALID_RELATIONSHIP_DRIVER"] = "INVALID_RELATIONSHIP_DRIVER";
53
+ TypeInfoORMServiceError2["INVALID_TYPE_INFO"] = "INVALID_TYPE_INFO";
54
+ TypeInfoORMServiceError2["TYPE_INFO_MISSING_PRIMARY_FIELD"] = "TYPE_INFO_MISSING_PRIMARY_FIELD";
55
+ TypeInfoORMServiceError2["INVALID_RELATIONSHIP"] = "INVALID_RELATIONSHIP";
56
+ TypeInfoORMServiceError2["INVALID_OPERATION"] = "INVALID_OPERATION";
57
+ TypeInfoORMServiceError2["MISSING_ACCESSING_ROLE"] = "MISSING_ACCESSING_ROLE";
58
+ TypeInfoORMServiceError2["INDEXING_UNSUPPORTED_CRITERIA"] = "INDEXING_UNSUPPORTED_CRITERIA";
59
+ TypeInfoORMServiceError2["INDEXING_UNSUPPORTED_COMBINATION"] = "INDEXING_UNSUPPORTED_COMBINATION";
60
+ TypeInfoORMServiceError2["INDEXING_MISSING_INDEX_FIELD"] = "INDEXING_MISSING_INDEX_FIELD";
61
+ TypeInfoORMServiceError2["INDEXING_MISSING_BACKEND"] = "INDEXING_MISSING_BACKEND";
62
+ TypeInfoORMServiceError2["INDEXING_REQUIRES_CRITERIA"] = "INDEXING_REQUIRES_CRITERIA";
63
+ return TypeInfoORMServiceError2;
64
+ })(TypeInfoORMServiceError || {});
65
+ var TypeInfoORMAPIRoutePaths = /* @__PURE__ */ ((TypeInfoORMAPIRoutePaths2) => {
66
+ TypeInfoORMAPIRoutePaths2["CREATE"] = "create";
67
+ TypeInfoORMAPIRoutePaths2["READ"] = "read";
68
+ TypeInfoORMAPIRoutePaths2["UPDATE"] = "update";
69
+ TypeInfoORMAPIRoutePaths2["DELETE"] = "delete";
70
+ TypeInfoORMAPIRoutePaths2["LIST"] = "list";
71
+ TypeInfoORMAPIRoutePaths2["CREATE_RELATIONSHIP"] = "create-relationship";
72
+ TypeInfoORMAPIRoutePaths2["DELETE_RELATIONSHIP"] = "delete-relationship";
73
+ TypeInfoORMAPIRoutePaths2["LIST_RELATIONSHIPS"] = "list-relationships";
74
+ TypeInfoORMAPIRoutePaths2["LIST_RELATED_ITEMS"] = "list-related-items";
75
+ return TypeInfoORMAPIRoutePaths2;
76
+ })(TypeInfoORMAPIRoutePaths || {});
77
+
78
+ export { ComparisonOperators, ITEM_RELATIONSHIP_DAC_RESOURCE_NAME, LogicalOperators, OperationGroup, RelationshipOperation, TypeInfoORMAPIRoutePaths, TypeInfoORMServiceError };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Validation helpers for relationship items.
3
3
  */
4
- import { TypeInfoValidationResults } from "../TypeParsing/Validation";
4
+ import type { TypeInfoValidationResults } from "../TypeParsing/Validation";
5
5
  import { ItemRelationshipInfoKeys, ItemRelationshipInfoType } from "../ItemRelationshipInfoTypes";
6
6
  /**
7
7
  * Error codes for relationship validation.
@@ -1,6 +1,2 @@
1
1
  export * from "./ItemRelationshipValidation";
2
- /**
3
- * @category common
4
- * @group Type Dependencies
5
- */
6
- export type { TypeInfoValidationResults, } from "../TypeParsing/Validation";
2
+ export * from "../TypeParsing/Validation";
@@ -1,11 +1,3 @@
1
1
  export * from "./Types";
2
- /**
3
- * @category common
4
- * @group Type Dependencies
5
- */
6
- export type { ListItemsConfig, ListItemsResults, ListRelationshipsConfig, } from "../SearchTypes";
7
- /**
8
- * @category common
9
- * @group Type Dependencies
10
- */
11
- export type { TypeInfoDataItem, TypeOperation, } from "../TypeParsing/TypeInfo";
2
+ export * from "../SearchTypes";
3
+ export * from "../TypeParsing/TypeInfo";
package/common/index.d.ts CHANGED
@@ -32,19 +32,9 @@ export * from "./CommandLine";
32
32
  * @category common
33
33
  * @group Type Parsing
34
34
  */
35
- export { TypeOperation, } from "./TypeParsing/TypeInfo";
36
- /**
37
- * @category common
38
- * @group Type Parsing
39
- */
40
- export type { DeniedOperations, SupportedFieldTags, SupportedTags, TypeInfo, TypeInfoField, TypeInfoMap, } from "./TypeParsing/TypeInfo";
35
+ export * from "./TypeParsing";
41
36
  /**
42
37
  * @category common
43
38
  * @group Shared Types
44
39
  */
45
- export { TypeInfoORMServiceError, } from "./TypeInfoORM/Types";
46
- /**
47
- * @category common
48
- * @group Type Parsing
49
- */
50
- export * from "./TypeParsing/Validation";
40
+ export * from "./TypeInfoORM";
package/common/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { DENIED_TYPE_OPERATIONS, ERROR_MESSAGE_CONSTANTS, INVALID_CUSTOM_TYPE, PRIMITIVE_ERROR_MESSAGE_CONSTANTS, RelationshipValidationType, TYPE_KEYWORD_VALIDATORS, getValidityValue, hasValue, validateArrayOfTypeInfoFieldValues, validateCustomType, validateKeywordType, validateTypeInfoFieldOperationAllowed, validateTypeInfoFieldValue, validateTypeInfoValue, validateTypeOperationAllowed, validateValueMatchesPattern } from '../chunk-LGM75I6P.js';
2
- export { TypeInfoORMServiceError } from '../chunk-HVY7POTD.js';
2
+ export { ComparisonOperators, ITEM_RELATIONSHIP_DAC_RESOURCE_NAME, LogicalOperators, OperationGroup, RelationshipOperation, TypeInfoORMAPIRoutePaths, TypeInfoORMServiceError } from '../chunk-7AMEFPPP.js';
3
3
  export { TypeOperation } from '../chunk-IWRHGGGH.js';
4
4
  import '../chunk-GYWRAW3Y.js';
5
5
  import '../chunk-I2KLQ2HA.js';
@@ -33,4 +33,17 @@ ${missingEnvVars.map((vN) => `- ${vN}`).join(`
33
33
  return result;
34
34
  };
35
35
 
36
- export { collectRequiredEnvironmentVariables };
36
+ // src/common/TypeParsing/Constants.ts
37
+ var BUILTIN_TYPE_NAMES = [
38
+ "string",
39
+ "number",
40
+ "boolean",
41
+ "null",
42
+ "object",
43
+ "array",
44
+ "any",
45
+ "unknown",
46
+ "never"
47
+ ];
48
+
49
+ export { BUILTIN_TYPE_NAMES, collectRequiredEnvironmentVariables };
@@ -3,4 +3,3 @@
3
3
  *
4
4
  * Import from `@resistdesign/voltra/iac/packs`.
5
5
  */
6
- export * from "../iac/packs";
@@ -16,6 +16,6 @@ import type { ComponentSuite } from "../../app/forms/core/types";
16
16
  export declare const createNativeFormRenderer: (options?: {
17
17
  suite?: ComponentSuite<ReactElement>;
18
18
  }) => {
19
- AutoField: (props: import("../../app/forms/core").AutoFieldInput) => ReactElement<any, string | import("react").JSXElementConstructor<any>>;
19
+ AutoField: (props: import("../../app").AutoFieldInput) => ReactElement<any, string | import("react").JSXElementConstructor<any>>;
20
20
  suite: import("../../app").ResolvedSuite<ReactElement<any, string | import("react").JSXElementConstructor<any>>>;
21
21
  };
@@ -12,4 +12,4 @@ export declare const nativeSuite: ComponentSuite<ReactElement>;
12
12
  /**
13
13
  * AutoField renderer backed by the default native suite.
14
14
  */
15
- export declare const nativeAutoField: (props: import("../../app/forms/core").AutoFieldInput) => ReactElement<any, string | import("react").JSXElementConstructor<any>>;
15
+ export declare const nativeAutoField: (props: import("../../app").AutoFieldInput) => ReactElement<any, string | import("react").JSXElementConstructor<any>>;
package/native/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { createHistoryBackHandler, buildHistoryPath, parseHistoryPath, createMemoryHistory, Route, buildRoutePath, computeTrackPixels } from '../chunk-G5CLUK4Y.js';
2
- export { buildHistoryPath, createHistoryBackHandler, createMemoryHistory, parseHistoryPath, useRouteContext } from '../chunk-G5CLUK4Y.js';
3
2
  import { createFormRenderer, AutoFormView, AutoForm, parseTemplate, validateAreas, computeAreaBounds } from '../chunk-WELZGQDJ.js';
4
3
  import '../chunk-IWRHGGGH.js';
5
4
  import { getPathArray } from '../chunk-GYWRAW3Y.js';
@@ -4,8 +4,7 @@
4
4
  * Native routing helpers that adapt common navigation state to RouteAdapter.
5
5
  */
6
6
  import { type PropsWithChildren } from "react";
7
- import type { RouteAdapter, RouteContextType, RouteProps, RouteProviderProps, RouteQuery, RouteQueryValue, RouteRuntimeIntegration } from "../../app/utils/Route";
8
- import { useRouteContext } from "../../app/utils/Route";
7
+ import type { RouteAdapter, RouteProps, RouteQuery, RouteRuntimeIntegration } from "../../app/utils/Route";
9
8
  /**
10
9
  * Options to adapt a navigation state container into a RouteAdapter.
11
10
  */
@@ -79,5 +78,3 @@ export declare const Route: <ParamsType extends Record<string, any>>(props: Prop
79
78
  * @returns Serialized path string.
80
79
  */
81
80
  export declare const buildPathFromRouteChain: (routeChain: NavigationRouteNode[], config: NavigationRouteConfig, query?: RouteQuery) => string;
82
- export { useRouteContext };
83
- export type { RouteAdapter, RouteContextType, RouteProps, RouteProviderProps, RouteQuery, RouteQueryValue, RouteRuntimeIntegration, };
@@ -3,7 +3,6 @@
3
3
  *
4
4
  * Native (render-agnostic) utilities.
5
5
  */
6
- export * from "../../app/utils/History";
7
6
  export * from "./EasyLayout";
8
7
  export * from "./History";
9
8
  export * from "./Route";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resistdesign/voltra",
3
- "version": "3.0.0-alpha.31",
3
+ "version": "3.0.0-alpha.33",
4
4
  "description": "With our powers combined!",
5
5
  "homepage": "https://voltra.app",
6
6
  "repository": "git@github.com:resistdesign/voltra.git",
@@ -16,6 +16,6 @@ import type { ComponentSuite } from "../../app/forms/core/types";
16
16
  export declare const createWebFormRenderer: (options?: {
17
17
  suite?: ComponentSuite<ReactElement>;
18
18
  }) => {
19
- AutoField: (props: import("../../app/forms/core").AutoFieldInput) => ReactElement<any, string | import("react").JSXElementConstructor<any>>;
19
+ AutoField: (props: import("../../app").AutoFieldInput) => ReactElement<any, string | import("react").JSXElementConstructor<any>>;
20
20
  suite: import("../../app").ResolvedSuite<ReactElement<any, string | import("react").JSXElementConstructor<any>>>;
21
21
  };
@@ -12,4 +12,4 @@ export declare const webSuite: ComponentSuite<ReactElement>;
12
12
  /**
13
13
  * AutoField renderer backed by the default web suite.
14
14
  */
15
- export declare const webAutoField: (props: import("../../app/forms/core").AutoFieldInput) => ReactElement<any, string | import("react").JSXElementConstructor<any>>;
15
+ export declare const webAutoField: (props: import("../../app").AutoFieldInput) => ReactElement<any, string | import("react").JSXElementConstructor<any>>;
@@ -4,11 +4,7 @@
4
4
  * Web routing exports unified app Route implementation.
5
5
  */
6
6
  import { PropsWithChildren } from "react";
7
- import { Route, useRouteContext } from "../../app/utils/Route";
8
- import { createBrowserRouteAdapter } from "../../app/utils/UniversalRouteAdapter";
9
7
  /**
10
8
  * Backward-compatible web RouteProvider that auto-creates a browser adapter.
11
9
  */
12
10
  export declare const RouteProvider: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
13
- export { Route, useRouteContext, createBrowserRouteAdapter };
14
- export type { RouteAdapter, RouteContextType, RouteProps, RouteProviderProps, RouteQuery, RouteQueryValue, } from "../../app/utils/Route";
package/chunk-HVY7POTD.js DELETED
@@ -1,22 +0,0 @@
1
- // src/common/TypeInfoORM/Types.ts
2
- var ITEM_RELATIONSHIP_DAC_RESOURCE_NAME = "TYPE_INFO_ORM_ITEM_RELATIONSHIP";
3
- var TypeInfoORMServiceError = /* @__PURE__ */ ((TypeInfoORMServiceError2) => {
4
- TypeInfoORMServiceError2["NO_DRIVERS_SUPPLIED"] = "NO_DRIVERS_SUPPLIED";
5
- TypeInfoORMServiceError2["NO_RELATIONSHIP_DRIVERS_SUPPLIED"] = "NO_RELATIONSHIP_DRIVERS_SUPPLIED";
6
- TypeInfoORMServiceError2["NO_PRIMARY_FIELD_VALUE_SUPPLIED"] = "NO_PRIMARY_FIELD_VALUE_SUPPLIED";
7
- TypeInfoORMServiceError2["INVALID_DRIVER"] = "INVALID_DRIVER";
8
- TypeInfoORMServiceError2["INVALID_RELATIONSHIP_DRIVER"] = "INVALID_RELATIONSHIP_DRIVER";
9
- TypeInfoORMServiceError2["INVALID_TYPE_INFO"] = "INVALID_TYPE_INFO";
10
- TypeInfoORMServiceError2["TYPE_INFO_MISSING_PRIMARY_FIELD"] = "TYPE_INFO_MISSING_PRIMARY_FIELD";
11
- TypeInfoORMServiceError2["INVALID_RELATIONSHIP"] = "INVALID_RELATIONSHIP";
12
- TypeInfoORMServiceError2["INVALID_OPERATION"] = "INVALID_OPERATION";
13
- TypeInfoORMServiceError2["MISSING_ACCESSING_ROLE"] = "MISSING_ACCESSING_ROLE";
14
- TypeInfoORMServiceError2["INDEXING_UNSUPPORTED_CRITERIA"] = "INDEXING_UNSUPPORTED_CRITERIA";
15
- TypeInfoORMServiceError2["INDEXING_UNSUPPORTED_COMBINATION"] = "INDEXING_UNSUPPORTED_COMBINATION";
16
- TypeInfoORMServiceError2["INDEXING_MISSING_INDEX_FIELD"] = "INDEXING_MISSING_INDEX_FIELD";
17
- TypeInfoORMServiceError2["INDEXING_MISSING_BACKEND"] = "INDEXING_MISSING_BACKEND";
18
- TypeInfoORMServiceError2["INDEXING_REQUIRES_CRITERIA"] = "INDEXING_REQUIRES_CRITERIA";
19
- return TypeInfoORMServiceError2;
20
- })(TypeInfoORMServiceError || {});
21
-
22
- export { ITEM_RELATIONSHIP_DAC_RESOURCE_NAME, TypeInfoORMServiceError };
package/chunk-MUCSL3UR.js DELETED
@@ -1 +0,0 @@
1
-