@resistdesign/voltra 3.0.0-alpha.16 → 3.0.0-alpha.18

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.
package/README.md CHANGED
@@ -24,7 +24,7 @@ cross-runtime bundling issues.
24
24
  Preferred:
25
25
 
26
26
  ```ts
27
- import { SimpleCFT, Packs } from "@resistdesign/voltra/iac";
27
+ import { SimpleCFT } from "@resistdesign/voltra/iac";
28
28
  import { addDNS } from "@resistdesign/voltra/iac/packs";
29
29
  ```
30
30
 
@@ -53,7 +53,7 @@ import { TypeInfo, TypeInfoORMServiceError } from "@resistdesign/voltra/common";
53
53
  import { parseTemplate, computeTrackPixels } from "@resistdesign/voltra/app";
54
54
  import { AutoField, AutoForm, createWebFormRenderer, getEasyLayout } from "@resistdesign/voltra/web";
55
55
  import { createNativeFormRenderer, makeNativeEasyLayout } from "@resistdesign/voltra/native";
56
- import { SimpleCFT, Packs } from "@resistdesign/voltra/iac";
56
+ import { SimpleCFT } from "@resistdesign/voltra/iac";
57
57
  import { addDNS } from "@resistdesign/voltra/iac/packs";
58
58
  import { getTypeInfoMapFromTypeScript } from "@resistdesign/voltra/build";
59
59
  ```
@@ -182,29 +182,25 @@ export declare function setIndexBackend(
182
182
  backend: IndexBackend): void;
183
183
  /**
184
184
  * Index a document using exact and lossy backends.
185
- * @param document Document record to index.
186
- * @param primaryField Field name used as the document id.
187
- * @param indexField Field name containing the text to index.
188
- * @param backend Optional backend override (defaults to configured backend).
185
+ *
186
+ * Accepts {@link IndexDocumentInput} with document data, field configuration,
187
+ * and an optional backend override.
189
188
  * @returns Promise resolved once indexing is complete.
190
189
  * */
191
190
  export declare function indexDocument({ document, primaryField, indexField, indexFieldQualified, backend, }: IndexDocumentInput): Promise<void>;
192
191
  /**
193
192
  * Remove a document from exact and lossy backends.
194
- * @param document Document record to remove.
195
- * @param primaryField Field name used as the document id.
196
- * @param indexField Field name containing the text to remove from the index.
197
- * @param backend Optional backend override (defaults to configured backend).
193
+ *
194
+ * Accepts {@link RemoveDocumentInput} with document data, field configuration,
195
+ * and an optional backend override.
198
196
  * @returns Promise resolved once removal is complete.
199
197
  * */
200
198
  export declare function removeDocument({ document, primaryField, indexField, indexFieldQualified, backend, }: RemoveDocumentInput): Promise<void>;
201
199
  /**
202
200
  * Replace a document in exact and lossy backends.
203
- * @param previousDocument Document record to remove.
204
- * @param nextDocument Document record to index.
205
- * @param primaryField Field name used as the document id.
206
- * @param indexField Field name containing the text to index.
207
- * @param backend Optional backend override (defaults to configured backend).
201
+ *
202
+ * Accepts {@link ReplaceDocumentInput} with previous/next documents, field
203
+ * configuration, and an optional backend override.
208
204
  * @returns Promise resolved once replacement is complete.
209
205
  * @remarks Replacement is remove-then-add; a failure between steps can
210
206
  * temporarily hide the document until retried.
@@ -212,25 +208,17 @@ export declare function removeDocument({ document, primaryField, indexField, ind
212
208
  export declare function replaceFullTextDocument({ previousDocument, nextDocument, primaryField, indexField, indexFieldQualified, backend, }: ReplaceDocumentInput): Promise<void>;
213
209
  /**
214
210
  * Perform a lossy search and return matching document ids.
215
- * @param query Search query string.
216
- * @param indexField Field name containing the indexed text.
217
- * @param limit Optional maximum number of results to return.
218
- * @param cursor Optional cursor string for pagination.
219
- * @param backend Optional backend override (defaults to configured backend).
220
- * @param limits Optional limits override for search execution.
221
- * @param trace Optional trace instance for metrics collection.
211
+ *
212
+ * Accepts {@link SearchLossyInput} with query text, paging/limit options,
213
+ * optional execution limits, and an optional trace collector.
222
214
  * @returns Search results with doc ids and optional next cursor.
223
215
  * */
224
216
  export declare function searchLossy({ query, indexField, limit, cursor, backend, limits, trace, }: SearchLossyInput): Promise<SearchResult>;
225
217
  /**
226
218
  * Perform an exact search, optionally using a lossy pre-pass for candidates.
227
- * @param query Search query string.
228
- * @param indexField Field name containing the indexed text.
229
- * @param limit Optional maximum number of results to return.
230
- * @param cursor Optional cursor string for pagination.
231
- * @param backend Optional backend override (defaults to configured backend).
232
- * @param limits Optional limits override for search execution.
233
- * @param trace Optional trace instance for metrics collection.
219
+ *
220
+ * Accepts {@link SearchExactInput} with query text, paging/limit options,
221
+ * optional execution limits, and an optional trace collector.
234
222
  * @returns Search results with doc ids and optional next cursor.
235
223
  * */
236
224
  export declare function searchExact({ query, indexField, limit, cursor, backend, limits, trace, }: SearchExactInput): Promise<SearchResult>;
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * ORM exports for TypeInfo-based services and supporting utilities.
3
3
  * */
4
- export * as Drivers from "./drivers";
5
4
  export * from "./drivers";
6
5
  export * from "./TypeInfoORMService";
7
6
  export * from "./DACUtils";
package/api/index.d.ts CHANGED
@@ -47,26 +47,22 @@
47
47
  * See also: `@resistdesign/voltra/app` for client-side app helpers.
48
48
  */
49
49
  /**
50
- * @deprecated Prefer domain-flat imports such as
51
- * `import { RouteMap } from "@resistdesign/voltra/api"`.
50
+ * @category api
51
+ * @group Indexing
52
52
  */
53
- export * as Indexing from "./Indexing";
53
+ export * from "./Indexing";
54
54
  /**
55
- * @deprecated Prefer domain-flat imports such as
56
- * `import { getTypeInfoORMRouteMap } from "@resistdesign/voltra/api"`.
55
+ * @category api
56
+ * @group ORM
57
57
  */
58
- export * as ORM from "./ORM";
58
+ export * from "./ORM";
59
59
  /**
60
- * @deprecated Prefer domain-flat imports such as
61
- * `import { RouteMap } from "@resistdesign/voltra/api"`.
60
+ * @category api
61
+ * @group Routing
62
62
  */
63
- export * as Routing from "./Router";
63
+ export * from "./Router";
64
64
  /**
65
- * @deprecated Prefer domain-flat imports such as
66
- * `import { DACConstraintType } from "@resistdesign/voltra/api"`.
65
+ * @category api
66
+ * @group Data Access Control
67
67
  */
68
- export * as DAC from "./DataAccessControl";
69
- export * from "./Indexing";
70
- export * from "./ORM";
71
- export * from "./Router";
72
68
  export * from "./DataAccessControl";
package/api/index.js CHANGED
@@ -6,92 +6,6 @@ import { v4 } from 'uuid';
6
6
  import Path from 'path';
7
7
  import { fileURLToPath } from 'url';
8
8
 
9
- var __defProp = Object.defineProperty;
10
- var __export = (target, all) => {
11
- for (var name in all)
12
- __defProp(target, name, { get: all[name], enumerable: true });
13
- };
14
-
15
- // src/api/Indexing/index.ts
16
- var Indexing_exports = {};
17
- __export(Indexing_exports, {
18
- ExactIndex: () => ExactIndex,
19
- FullTextDdbBackend: () => FullTextDdbBackend,
20
- FullTextDdbWriter: () => FullTextDdbWriter,
21
- FullTextMemoryBackend: () => FullTextMemoryBackend,
22
- LossyIndex: () => LossyIndex,
23
- RelationalDdbBackend: () => RelationalDdbBackend,
24
- RelationalInMemoryBackend: () => RelationalInMemoryBackend,
25
- StructuredDdbBackend: () => StructuredDdbBackend,
26
- StructuredDdbReader: () => StructuredDdbReader,
27
- StructuredDdbWriter: () => StructuredDdbWriter,
28
- StructuredInMemoryBackend: () => StructuredInMemoryBackend,
29
- StructuredInMemoryIndex: () => StructuredInMemoryIndex,
30
- batchWriteWithRetry: () => batchWriteWithRetry,
31
- buildExactDdbItem: () => buildExactDdbItem,
32
- buildExactDdbKey: () => buildExactDdbKey,
33
- buildExactS3Key: () => buildExactS3Key,
34
- buildLossyDdbKey: () => buildLossyDdbKey,
35
- buildLossyS3Key: () => buildLossyS3Key,
36
- buildRelationEdgeDdbItem: () => buildRelationEdgeDdbItem,
37
- buildRelationEdgeDdbKey: () => buildRelationEdgeDdbKey,
38
- buildStructuredDocFieldsItem: () => buildStructuredDocFieldsItem,
39
- buildStructuredRangeItem: () => buildStructuredRangeItem,
40
- buildStructuredRangeKey: () => buildStructuredRangeKey,
41
- buildStructuredTermItem: () => buildStructuredTermItem,
42
- buildStructuredTermKey: () => buildStructuredTermKey,
43
- createAwsSdkV3DynamoClient: () => createAwsSdkV3DynamoClient,
44
- createRelationEdgesDdbDependencies: () => createRelationEdgesDdbDependencies,
45
- createSearchTrace: () => createSearchTrace,
46
- decodeExactCursor: () => decodeExactCursor,
47
- decodeLossyCursor: () => decodeLossyCursor,
48
- decodeRelationalCursor: () => decodeRelationalCursor,
49
- decodeStructuredCursor: () => decodeStructuredCursor,
50
- docTokenPositionsSchema: () => docTokenPositionsSchema,
51
- docTokensSchema: () => docTokensSchema,
52
- encodeDocKey: () => encodeDocKey,
53
- encodeDocMirrorKey: () => encodeDocMirrorKey,
54
- encodeDocTokenPositionSortKey: () => encodeDocTokenPositionSortKey,
55
- encodeDocTokenSortKey: () => encodeDocTokenSortKey,
56
- encodeExactCursor: () => encodeExactCursor,
57
- encodeLossyCursor: () => encodeLossyCursor,
58
- encodeRelationEdgePartitionKey: () => encodeRelationEdgePartitionKey,
59
- encodeRelationalCursor: () => encodeRelationalCursor,
60
- encodeStructuredCursor: () => encodeStructuredCursor,
61
- encodeTokenDocSortKey: () => encodeTokenDocSortKey,
62
- encodeTokenKey: () => encodeTokenKey,
63
- exactDdbSchema: () => exactDdbSchema,
64
- exactPostingsSchema: () => exactPostingsSchema,
65
- fullTextDocMirrorSchema: () => fullTextDocMirrorSchema,
66
- fullTextKeyPrefixes: () => fullTextKeyPrefixes,
67
- fullTextTokenStatsSchema: () => fullTextTokenStatsSchema,
68
- indexDocument: () => indexDocument,
69
- loadExactPositions: () => loadExactPositions,
70
- loadLossyIndex: () => loadLossyIndex,
71
- lossyDdbSchema: () => lossyDdbSchema,
72
- lossyPostingsSchema: () => lossyPostingsSchema,
73
- qualifyIndexField: () => qualifyIndexField,
74
- relHandler: () => handler,
75
- relationEdgesSchema: () => relationEdgesSchema,
76
- removeDocument: () => removeDocument,
77
- replaceFullTextDocument: () => replaceFullTextDocument,
78
- searchExact: () => searchExact,
79
- searchLossy: () => searchLossy,
80
- searchStructured: () => searchStructured,
81
- serializeStructuredValue: () => serializeStructuredValue,
82
- setIndexBackend: () => setIndexBackend,
83
- setRelationalHandlerDependencies: () => setRelationalHandlerDependencies,
84
- setStructuredHandlerDependencies: () => setStructuredHandlerDependencies,
85
- storeExactPositions: () => storeExactPositions,
86
- storeLossyIndex: () => storeLossyIndex,
87
- structuredDocFieldsSchema: () => structuredDocFieldsSchema,
88
- structuredHandler: () => structuredHandler,
89
- structuredRangeIndexSchema: () => structuredRangeIndexSchema,
90
- structuredTermIndexSchema: () => structuredTermIndexSchema,
91
- tokenize: () => tokenize,
92
- tokenizeLossyTrigrams: () => tokenizeLossyTrigrams
93
- });
94
-
95
9
  // src/api/Indexing/Cursor.ts
96
10
  var textEncoder = new TextEncoder();
97
11
  var textDecoder = new TextDecoder();
@@ -4222,62 +4136,6 @@ function createSearchTrace() {
4222
4136
  };
4223
4137
  }
4224
4138
 
4225
- // src/api/ORM/index.ts
4226
- var ORM_exports = {};
4227
- __export(ORM_exports, {
4228
- DATA_ITEM_DB_DRIVER_ERRORS: () => DATA_ITEM_DB_DRIVER_ERRORS,
4229
- Drivers: () => drivers_exports,
4230
- DynamoDBDataItemDBDriver: () => DynamoDBDataItemDBDriver,
4231
- DynamoDBSupportedDataItemDBDriverEntry: () => DynamoDBSupportedDataItemDBDriverEntry,
4232
- InMemoryDataItemDBDriver: () => InMemoryDataItemDBDriver,
4233
- InMemoryFileItemDBDriver: () => InMemoryFileItemDBDriver,
4234
- InMemoryFileSupportedDataItemDBDriverEntry: () => InMemoryFileSupportedDataItemDBDriverEntry,
4235
- InMemoryItemRelationshipDBDriver: () => InMemoryItemRelationshipDBDriver,
4236
- InMemorySupportedDataItemDBDriverEntry: () => InMemorySupportedDataItemDBDriverEntry,
4237
- IndexingRelationshipDriver: () => IndexingRelationshipDriver,
4238
- S3FileItemDBDriver: () => S3FileItemDBDriver,
4239
- S3SupportedFileItemDBDriverEntry: () => S3SupportedFileItemDBDriverEntry,
4240
- SUPPORTED_TYPE_INFO_ORM_DB_DRIVERS: () => SUPPORTED_TYPE_INFO_ORM_DB_DRIVERS,
4241
- SupportedTypeInfoORMDBDriverNames: () => SupportedTypeInfoORMDBDriverNames,
4242
- TYPE_INFO_ORM_API_PATH_METHOD_NAME_MAP: () => TYPE_INFO_ORM_API_PATH_METHOD_NAME_MAP,
4243
- TYPE_INFO_ORM_ROUTE_MAP_ERRORS: () => TYPE_INFO_ORM_ROUTE_MAP_ERRORS,
4244
- TypeInfoORMService: () => TypeInfoORMService,
4245
- cleanRelationshipItem: () => cleanRelationshipItem,
4246
- getDACRoleHasAccessToDataItem: () => getDACRoleHasAccessToDataItem,
4247
- getDataItemDACResourcePath: () => getDataItemDACResourcePath,
4248
- getDataItemFieldValueDACResourcePath: () => getDataItemFieldValueDACResourcePath,
4249
- getDriverMethodWithModifiedError: () => getDriverMethodWithModifiedError,
4250
- getFullORMDACRole: () => getFullORMDACRole,
4251
- getItemRelationshipDACResourcePath: () => getItemRelationshipDACResourcePath,
4252
- getItemRelationshipOriginDACConstraint: () => getItemRelationshipOriginDACConstraint,
4253
- getItemRelationshipOriginDACResourcePath: () => getItemRelationshipOriginDACResourcePath,
4254
- getItemRelationshipOriginDACRole: () => getItemRelationshipOriginDACRole,
4255
- getItemTypeDACConstraint: () => getItemTypeDACConstraint,
4256
- getItemTypeDACResourcePath: () => getItemTypeDACResourcePath,
4257
- getItemTypeDACRole: () => getItemTypeDACRole,
4258
- getORMDACResourcePath: () => getORMDACResourcePath,
4259
- getTypeInfoORMRouteMap: () => getTypeInfoORMRouteMap,
4260
- mergeDACDataItemResourceAccessResultMaps: () => mergeDACDataItemResourceAccessResultMaps
4261
- });
4262
-
4263
- // src/api/ORM/drivers/index.ts
4264
- var drivers_exports = {};
4265
- __export(drivers_exports, {
4266
- DATA_ITEM_DB_DRIVER_ERRORS: () => DATA_ITEM_DB_DRIVER_ERRORS,
4267
- DynamoDBDataItemDBDriver: () => DynamoDBDataItemDBDriver,
4268
- DynamoDBSupportedDataItemDBDriverEntry: () => DynamoDBSupportedDataItemDBDriverEntry,
4269
- InMemoryDataItemDBDriver: () => InMemoryDataItemDBDriver,
4270
- InMemoryFileItemDBDriver: () => InMemoryFileItemDBDriver,
4271
- InMemoryFileSupportedDataItemDBDriverEntry: () => InMemoryFileSupportedDataItemDBDriverEntry,
4272
- InMemoryItemRelationshipDBDriver: () => InMemoryItemRelationshipDBDriver,
4273
- InMemorySupportedDataItemDBDriverEntry: () => InMemorySupportedDataItemDBDriverEntry,
4274
- IndexingRelationshipDriver: () => IndexingRelationshipDriver,
4275
- S3FileItemDBDriver: () => S3FileItemDBDriver,
4276
- S3SupportedFileItemDBDriverEntry: () => S3SupportedFileItemDBDriverEntry,
4277
- SUPPORTED_TYPE_INFO_ORM_DB_DRIVERS: () => SUPPORTED_TYPE_INFO_ORM_DB_DRIVERS,
4278
- SupportedTypeInfoORMDBDriverNames: () => SupportedTypeInfoORMDBDriverNames
4279
- });
4280
-
4281
4139
  // src/common/Routing.ts
4282
4140
  var PATH_DELIMITER = "/";
4283
4141
  var getPotentialJSONValue = (value) => {
@@ -7174,16 +7032,6 @@ var removeUnselectedFieldsFromDataItem = (dataItem = {}, selectedFields) => {
7174
7032
  };
7175
7033
 
7176
7034
  // src/api/DataAccessControl.ts
7177
- var DataAccessControl_exports = {};
7178
- __export(DataAccessControl_exports, {
7179
- DACConstraintType: () => DACConstraintType,
7180
- WILDCARD_SIGNIFIER_PROTOTYPE: () => WILDCARD_SIGNIFIER_PROTOTYPE,
7181
- getDACPathsMatch: () => getDACPathsMatch,
7182
- getFlattenedDACConstraints: () => getFlattenedDACConstraints,
7183
- getResourceAccessByDACRole: () => getResourceAccessByDACRole,
7184
- getValueIsWildcardSignifier: () => getValueIsWildcardSignifier,
7185
- mergeDACAccessResults: () => mergeDACAccessResults
7186
- });
7187
7035
  var DACConstraintType = /* @__PURE__ */ ((DACConstraintType3) => {
7188
7036
  DACConstraintType3["ALLOW"] = "ALLOW";
7189
7037
  DACConstraintType3["DENY"] = "DENY";
@@ -8955,16 +8803,6 @@ var TypeInfoORMService = class {
8955
8803
  };
8956
8804
  };
8957
8805
 
8958
- // src/api/Router/index.ts
8959
- var Router_exports = {};
8960
- __export(Router_exports, {
8961
- AWS: () => AWS,
8962
- addRouteMapToRouteMap: () => addRouteMapToRouteMap,
8963
- addRouteToRouteMap: () => addRouteToRouteMap,
8964
- addRoutesToRouteMap: () => addRoutesToRouteMap,
8965
- handleCloudFunctionEvent: () => handleCloudFunctionEvent
8966
- });
8967
-
8968
8806
  // src/api/Router/Auth.ts
8969
8807
  var getRouteIsAuthorized = (authInfo, authConfig) => {
8970
8808
  const { userId, roles = [] } = authInfo;
@@ -9363,4 +9201,4 @@ var getContextFromEventData = (eventData, dacConfig, getAccessingRoleId) => {
9363
9201
  return { accessingRoleId };
9364
9202
  };
9365
9203
 
9366
- export { AWS, DataAccessControl_exports as DAC, DACConstraintType, DATA_ITEM_DB_DRIVER_ERRORS, drivers_exports as Drivers, DynamoDBDataItemDBDriver, DynamoDBSupportedDataItemDBDriverEntry, ExactIndex, FullTextDdbBackend, FullTextDdbWriter, FullTextMemoryBackend, InMemoryDataItemDBDriver, InMemoryFileItemDBDriver, InMemoryFileSupportedDataItemDBDriverEntry, InMemoryItemRelationshipDBDriver, InMemorySupportedDataItemDBDriverEntry, Indexing_exports as Indexing, IndexingRelationshipDriver, LossyIndex, ORM_exports as ORM, RelationalDdbBackend, RelationalInMemoryBackend, Router_exports as Routing, 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 };
9204
+ 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 };
package/app/index.d.ts CHANGED
@@ -87,14 +87,12 @@
87
87
  * runtime-specific UI helpers.
88
88
  */
89
89
  /**
90
- * @deprecated Prefer domain-flat imports such as
91
- * `import { parseTemplate } from "@resistdesign/voltra/app"`.
90
+ * @category app
91
+ * @group State and Services
92
92
  */
93
- export * as Utils from "./utils";
93
+ export * from "./utils";
94
94
  /**
95
- * @deprecated Prefer domain-flat imports such as
96
- * `import { createFormRenderer } from "@resistdesign/voltra/app"`.
95
+ * @category app
96
+ * @group Forms
97
97
  */
98
- export * as Forms from "./forms";
99
- export * from "./utils";
100
98
  export * from "./forms";
package/app/index.js CHANGED
@@ -1,56 +1,7 @@
1
1
  import { createContext, useContext, useRef, useMemo, useCallback, useState, useEffect } from 'react';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
 
4
- var __defProp = Object.defineProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
-
10
- // src/app/utils/index.ts
11
- var utils_exports = {};
12
- __export(utils_exports, {
13
- ApplicationStateContext: () => ApplicationStateContext,
14
- ApplicationStateProvider: () => ApplicationStateProvider,
15
- Route: () => Route,
16
- RouteContext: () => RouteContext,
17
- RouteContextConsumer: () => RouteContextConsumer,
18
- RouteContextProvider: () => RouteContextProvider,
19
- RouteProvider: () => RouteProvider,
20
- TypeInfoORMClient: () => TypeInfoORMClient,
21
- buildHistoryPath: () => buildHistoryPath,
22
- buildQueryString: () => buildQueryString,
23
- buildRoutePath: () => buildRoutePath,
24
- computeAreaBounds: () => computeAreaBounds,
25
- computeTrackPixels: () => computeTrackPixels,
26
- createEasyLayout: () => createEasyLayout,
27
- createManualRouteAdapter: () => createManualRouteAdapter,
28
- createMemoryHistory: () => createMemoryHistory,
29
- createRouteAdapterFromHistory: () => createRouteAdapterFromHistory,
30
- getApplicationStateIdentifier: () => getApplicationStateIdentifier,
31
- getApplicationStateModified: () => getApplicationStateModified,
32
- getApplicationStateValue: () => getApplicationStateValue,
33
- getApplicationStateValueStructure: () => getApplicationStateValueStructure,
34
- getChangedDependencyIndexes: () => getChangedDependencyIndexes,
35
- getEasyLayoutTemplateDetails: () => getEasyLayoutTemplateDetails,
36
- getFullUrl: () => getFullUrl,
37
- getPascalCaseAreaName: () => getPascalCaseAreaName,
38
- handleRequest: () => handleRequest,
39
- parseHistoryPath: () => parseHistoryPath,
40
- parseTemplate: () => parseTemplate,
41
- requestHandlerFactory: () => requestHandlerFactory,
42
- sendServiceRequest: () => sendServiceRequest,
43
- setApplicationStateModified: () => setApplicationStateModified,
44
- setApplicationStateValue: () => setApplicationStateValue,
45
- useApplicationStateLoader: () => useApplicationStateLoader,
46
- useApplicationStateValue: () => useApplicationStateValue,
47
- useApplicationStateValueStructure: () => useApplicationStateValueStructure,
48
- useController: () => useController,
49
- useDebugDependencies: () => useDebugDependencies,
50
- useRouteContext: () => useRouteContext,
51
- useTypeInfoORMAPI: () => useTypeInfoORMAPI,
52
- validateAreas: () => validateAreas
53
- });
4
+ // src/app/utils/ApplicationState.tsx
54
5
  var getApplicationStateIdentifier = (subStateIdMap) => subStateIdMap ? subStateIdMap : {};
55
6
  var getApplicationStateModified = (identifier, modificationState) => !!modificationState.get(identifier);
56
7
  var getApplicationStateValue = (identifier, applicationState) => applicationState.get(identifier);
@@ -1186,18 +1137,6 @@ var TypeInfoORMClient = class {
1186
1137
  };
1187
1138
  };
1188
1139
 
1189
- // src/app/forms/index.ts
1190
- var forms_exports = {};
1191
- __export(forms_exports, {
1192
- createAutoField: () => createAutoField,
1193
- createFormRenderer: () => createFormRenderer,
1194
- getFieldKind: () => getFieldKind,
1195
- mergeSuites: () => mergeSuites,
1196
- resolveSuite: () => resolveSuite,
1197
- useFormEngine: () => useFormEngine,
1198
- withRendererOverride: () => withRendererOverride
1199
- });
1200
-
1201
1140
  // src/app/forms/core/getFieldKind.ts
1202
1141
  var hasSelectableValues = (field) => {
1203
1142
  const possibleValues = field.possibleValues ?? [];
@@ -1444,4 +1383,4 @@ var useFormEngine = (initialValues = {}, typeInfo, options) => {
1444
1383
  };
1445
1384
  };
1446
1385
 
1447
- export { ApplicationStateContext, ApplicationStateProvider, forms_exports as Forms, Route, RouteContext, RouteContextConsumer, RouteContextProvider, RouteProvider, TypeInfoORMClient, utils_exports as Utils, buildHistoryPath, buildQueryString, buildRoutePath, computeAreaBounds, computeTrackPixels, createAutoField, createEasyLayout, createFormRenderer, createManualRouteAdapter, createMemoryHistory, createRouteAdapterFromHistory, getApplicationStateIdentifier, getApplicationStateModified, getApplicationStateValue, getApplicationStateValueStructure, getChangedDependencyIndexes, getEasyLayoutTemplateDetails, getFieldKind, getFullUrl, getPascalCaseAreaName, handleRequest, mergeSuites, parseHistoryPath, parseTemplate, requestHandlerFactory, resolveSuite, sendServiceRequest, setApplicationStateModified, setApplicationStateValue, useApplicationStateLoader, useApplicationStateValue, useApplicationStateValueStructure, useController, useDebugDependencies, useFormEngine, useRouteContext, useTypeInfoORMAPI, validateAreas, withRendererOverride };
1386
+ export { ApplicationStateContext, ApplicationStateProvider, Route, RouteContext, RouteContextConsumer, RouteContextProvider, RouteProvider, TypeInfoORMClient, buildHistoryPath, buildQueryString, buildRoutePath, computeAreaBounds, computeTrackPixels, createAutoField, createEasyLayout, createFormRenderer, createManualRouteAdapter, createMemoryHistory, createRouteAdapterFromHistory, getApplicationStateIdentifier, getApplicationStateModified, getApplicationStateValue, getApplicationStateValueStructure, getChangedDependencyIndexes, getEasyLayoutTemplateDetails, getFieldKind, getFullUrl, getPascalCaseAreaName, handleRequest, mergeSuites, parseHistoryPath, parseTemplate, requestHandlerFactory, resolveSuite, sendServiceRequest, setApplicationStateModified, setApplicationStateValue, useApplicationStateLoader, useApplicationStateValue, useApplicationStateValueStructure, useController, useDebugDependencies, useFormEngine, useRouteContext, useTypeInfoORMAPI, validateAreas, withRendererOverride };
@@ -29,7 +29,7 @@ export type RouteQuery = Record<string, RouteQueryValue>;
29
29
  /**
30
30
  * Create a manual adapter for non-DOM runtimes (e.g., React Native).
31
31
  *
32
- * Call {@link updatePath} when navigation changes.
32
+ * Call `updatePath` when navigation changes.
33
33
  */
34
34
  export declare const createManualRouteAdapter: (initialPath?: string) => {
35
35
  adapter: RouteAdapter;
package/build/index.d.ts CHANGED
@@ -1,7 +1,15 @@
1
1
  /**
2
2
  * @packageDocumentation
3
3
  *
4
- * Various build tools like a dynamic TypeScript to {@link TypeInfo} parser.
4
+ * Various build tools like a dynamic TypeScript-to-TypeInfo parser.
5
+ */
6
+ /**
7
+ * @category build
8
+ * @group Type Mapping
5
9
  */
6
10
  export * from "./TypeMapping";
11
+ /**
12
+ * @category build
13
+ * @group Type Parsing
14
+ */
7
15
  export * from "./TypeParsing";
@@ -3,6 +3,6 @@
3
3
  *
4
4
  * Includes TypeInfo definitions, validation helpers, and AST mapping.
5
5
  */
6
- export * as Validation from "./Validation";
7
- export * as TypeInfo from "./TypeInfo";
8
- export * as Constants from "./Constants";
6
+ export * from "./Validation";
7
+ export * from "./TypeInfo";
8
+ export * from "./Constants";
package/common/index.d.ts CHANGED
@@ -19,63 +19,32 @@
19
19
  * `@resistdesign/voltra/iac`.
20
20
  */
21
21
  /**
22
- * @deprecated Prefer domain-flat imports such as
23
- * `import { collectRequiredEnvironmentVariables } from "@resistdesign/voltra/common"`.
22
+ * @category common
23
+ * @group Shared Types
24
24
  */
25
- export * as CommandLine from "./CommandLine";
25
+ export type * from "./HelperTypes";
26
26
  /**
27
- * @deprecated Prefer domain-flat imports such as
28
- * `import { TypeInfo } from "@resistdesign/voltra/common"`.
27
+ * @category common
28
+ * @group Command Line
29
29
  */
30
- export * as TypeParsing from "./TypeParsing";
31
- /**
32
- * @deprecated Prefer domain-flat imports such as
33
- * `import { getPathString } from "@resistdesign/voltra/common"`.
34
- */
35
- export * as Routing from "./Routing";
36
- /**
37
- * @deprecated Prefer domain-flat imports such as
38
- * `import { getSimpleId } from "@resistdesign/voltra/common"`.
39
- */
40
- export * as IDGeneration from "./IdGeneration";
41
- /**
42
- * @deprecated Prefer domain-flat imports such as
43
- * `import { ListItemsConfig } from "@resistdesign/voltra/common"`.
44
- */
45
- export * as SearchTypes from "./SearchTypes";
46
- /**
47
- * @deprecated Prefer domain-flat imports such as
48
- * `import { getSearchTypeInfoFieldName } from "@resistdesign/voltra/common"`.
49
- */
50
- export * as SearchUtils from "./SearchUtils";
51
- /**
52
- * @deprecated Prefer domain-flat imports such as
53
- * `import { toCamelCase } from "@resistdesign/voltra/common"`.
54
- */
55
- export * as StringTransformers from "./StringTransformers";
30
+ export * from "./CommandLine";
56
31
  /**
57
- * @deprecated Prefer domain-flat imports such as
58
- * `import { ItemRelationshipInfo } from "@resistdesign/voltra/common"`.
32
+ * @category common
33
+ * @group Type Parsing
59
34
  */
60
- export * as ItemRelationshipInfoTypes from "./ItemRelationshipInfoTypes";
35
+ export { TypeOperation, } from "./TypeParsing/TypeInfo";
61
36
  /**
62
- * @deprecated Prefer domain-flat imports such as
63
- * `import { getItemRelationshipIsValid } from "@resistdesign/voltra/common"`.
37
+ * @category common
38
+ * @group Type Parsing
64
39
  */
65
- export * as ItemRelationships from "./ItemRelationships";
40
+ export type { DeniedOperations, SupportedFieldTags, SupportedTags, TypeInfo, TypeInfoField, TypeInfoMap, } from "./TypeParsing/TypeInfo";
66
41
  /**
67
- * @deprecated Prefer domain-flat imports such as
68
- * `import { runSpecs } from "@resistdesign/voltra/common"`.
42
+ * @category common
43
+ * @group Shared Types
69
44
  */
70
- export * as Testing from "./Testing";
71
- export type * as HelperTypes from "./HelperTypes";
45
+ export { TypeInfoORMServiceError, } from "./TypeInfoORM/Types";
72
46
  /**
73
- * @deprecated Prefer domain-flat imports such as
74
- * `import { logFunctionCall } from "@resistdesign/voltra/common"`.
47
+ * @category common
48
+ * @group Type Parsing
75
49
  */
76
- export * as Logging from "./Logging";
77
- export * from "./CommandLine";
78
- export { TypeOperation, } from "./TypeParsing/TypeInfo";
79
- export type { DeniedOperations, SupportedFieldTags, SupportedTags, TypeInfo, TypeInfoField, TypeInfoMap, } from "./TypeParsing/TypeInfo";
80
- export { TypeInfoORMServiceError, } from "./TypeInfoORM/Types";
81
50
  export * from "./TypeParsing/Validation";