@resistdesign/voltra 3.0.0-alpha.3 → 3.0.0-alpha.4

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.
Files changed (225) hide show
  1. package/README.md +75 -0
  2. package/SearchTypes-DjN6YQzE.d.ts +577 -0
  3. package/Types-C7XjUjoF.d.ts +240 -0
  4. package/Validation-CFP59oIP.d.ts +226 -0
  5. package/api/index.d.ts +6 -0
  6. package/api/index.js +7968 -0
  7. package/app/index.d.ts +5 -0
  8. package/app/index.js +810 -0
  9. package/common/Testing/CLI.js +432 -0
  10. package/common/index.d.ts +4 -0
  11. package/common/index.js +1760 -0
  12. package/iac/index.d.ts +2 -0
  13. package/iac/index.js +1661 -0
  14. package/iac/packs/index.d.ts +1 -0
  15. package/iac/packs/index.js +1620 -0
  16. package/index-BkFZlfit.d.ts +112 -0
  17. package/index-C3-iD9Mh.d.ts +690 -0
  18. package/index-DZ2BB4iX.d.ts +5357 -0
  19. package/{src/iac/types/IaCTypes.d.ts → index-DcvJOZ_c.d.ts} +1018 -23
  20. package/index-IokxSNxm.d.ts +745 -0
  21. package/index.d.ts +13 -0
  22. package/index.js +10973 -0
  23. package/package.json +40 -41
  24. package/src/api/DataAccessControl.d.ts +0 -85
  25. package/src/api/DataAccessControl.js +0 -159
  26. package/src/api/ORM/DACUtils.d.ts +0 -60
  27. package/src/api/ORM/DACUtils.js +0 -197
  28. package/src/api/ORM/ListItemUtils.d.ts +0 -7
  29. package/src/api/ORM/ListItemUtils.js +0 -22
  30. package/src/api/ORM/ORMRouteMap.d.ts +0 -19
  31. package/src/api/ORM/ORMRouteMap.js +0 -82
  32. package/src/api/ORM/TypeInfoORMService.d.ts +0 -103
  33. package/src/api/ORM/TypeInfoORMService.js +0 -581
  34. package/src/api/ORM/drivers/DynamoDBDataItemDBDriver/ConfigTypes.d.ts +0 -63
  35. package/src/api/ORM/drivers/DynamoDBDataItemDBDriver/ConfigTypes.js +0 -2
  36. package/src/api/ORM/drivers/DynamoDBDataItemDBDriver.d.ts +0 -36
  37. package/src/api/ORM/drivers/DynamoDBDataItemDBDriver.js +0 -282
  38. package/src/api/ORM/drivers/S3FileItemDBDriver/ConfigTypes.d.ts +0 -90
  39. package/src/api/ORM/drivers/S3FileItemDBDriver/ConfigTypes.js +0 -2
  40. package/src/api/ORM/drivers/S3FileItemDBDriver/S3FileDriver.d.ts +0 -45
  41. package/src/api/ORM/drivers/S3FileItemDBDriver/S3FileDriver.js +0 -127
  42. package/src/api/ORM/drivers/S3FileItemDBDriver.d.ts +0 -44
  43. package/src/api/ORM/drivers/S3FileItemDBDriver.js +0 -182
  44. package/src/api/ORM/drivers/common/SupportedTypeInfoORMDBDrivers.d.ts +0 -12
  45. package/src/api/ORM/drivers/common/SupportedTypeInfoORMDBDrivers.js +0 -20
  46. package/src/api/ORM/drivers/common/Types.d.ts +0 -77
  47. package/src/api/ORM/drivers/common/Types.js +0 -14
  48. package/src/api/ORM/drivers/common/index.d.ts +0 -2
  49. package/src/api/ORM/drivers/common/index.js +0 -18
  50. package/src/api/ORM/drivers/index.d.ts +0 -3
  51. package/src/api/ORM/drivers/index.js +0 -19
  52. package/src/api/ORM/index.d.ts +0 -4
  53. package/src/api/ORM/index.js +0 -43
  54. package/src/api/Router/AWS.d.ts +0 -26
  55. package/src/api/Router/AWS.js +0 -76
  56. package/src/api/Router/Auth.d.ts +0 -2
  57. package/src/api/Router/Auth.js +0 -9
  58. package/src/api/Router/CORS.d.ts +0 -6
  59. package/src/api/Router/CORS.js +0 -27
  60. package/src/api/Router/Types.d.ts +0 -71
  61. package/src/api/Router/Types.js +0 -2
  62. package/src/api/Router/index.d.ts +0 -18
  63. package/src/api/Router/index.js +0 -145
  64. package/src/api/index.d.ts +0 -3
  65. package/src/api/index.js +0 -39
  66. package/src/app/index.d.ts +0 -1
  67. package/src/app/index.js +0 -37
  68. package/src/app/utils/ApplicationState.d.ts +0 -52
  69. package/src/app/utils/ApplicationState.js +0 -86
  70. package/src/app/utils/ApplicationStateLoader.d.ts +0 -46
  71. package/src/app/utils/ApplicationStateLoader.js +0 -57
  72. package/src/app/utils/Controller.d.ts +0 -4
  73. package/src/app/utils/Controller.js +0 -47
  74. package/src/app/utils/Debug.d.ts +0 -4
  75. package/src/app/utils/Debug.js +0 -30
  76. package/src/app/utils/EasyLayout.d.ts +0 -49
  77. package/src/app/utils/EasyLayout.js +0 -122
  78. package/src/app/utils/Route.d.ts +0 -28
  79. package/src/app/utils/Route.js +0 -102
  80. package/src/app/utils/Service.d.ts +0 -12
  81. package/src/app/utils/Service.js +0 -34
  82. package/src/app/utils/TypeInfoORMAPIUtils.d.ts +0 -20
  83. package/src/app/utils/TypeInfoORMAPIUtils.js +0 -62
  84. package/src/app/utils/TypeInfoORMClient.d.ts +0 -24
  85. package/src/app/utils/TypeInfoORMClient.js +0 -69
  86. package/src/app/utils/index.d.ts +0 -8
  87. package/src/app/utils/index.js +0 -24
  88. package/src/common/CommandLine/collectRequiredEnvironmentVariables.d.ts +0 -1
  89. package/src/common/CommandLine/collectRequiredEnvironmentVariables.js +0 -16
  90. package/src/common/HelperTypes.d.ts +0 -3
  91. package/src/common/HelperTypes.js +0 -2
  92. package/src/common/IdGeneration/getSimpleId.d.ts +0 -4
  93. package/src/common/IdGeneration/getSimpleId.js +0 -16
  94. package/src/common/IdGeneration/index.d.ts +0 -1
  95. package/src/common/IdGeneration/index.js +0 -17
  96. package/src/common/ItemRelationshipInfoTypes.d.ts +0 -46
  97. package/src/common/ItemRelationshipInfoTypes.js +0 -20
  98. package/src/common/ItemRelationships/ItemRelationshipValidation.d.ts +0 -10
  99. package/src/common/ItemRelationships/ItemRelationshipValidation.js +0 -43
  100. package/src/common/ItemRelationships/index.d.ts +0 -1
  101. package/src/common/ItemRelationships/index.js +0 -17
  102. package/src/common/Logging/Utils.d.ts +0 -10
  103. package/src/common/Logging/Utils.js +0 -33
  104. package/src/common/Logging/index.d.ts +0 -1
  105. package/src/common/Logging/index.js +0 -17
  106. package/src/common/Routing.d.ts +0 -25
  107. package/src/common/Routing.js +0 -102
  108. package/src/common/SearchTypes.d.ts +0 -98
  109. package/src/common/SearchTypes.js +0 -39
  110. package/src/common/SearchUtils.d.ts +0 -22
  111. package/src/common/SearchUtils.js +0 -134
  112. package/src/common/SearchValidation.d.ts +0 -17
  113. package/src/common/SearchValidation.js +0 -90
  114. package/src/common/Storyboarding/Types.d.ts +0 -25
  115. package/src/common/Storyboarding/Types.js +0 -2
  116. package/src/common/StringTransformers.d.ts +0 -17
  117. package/src/common/StringTransformers.js +0 -36
  118. package/src/common/Testing/CLI.d.ts +0 -2
  119. package/src/common/Testing/CLI.js +0 -56
  120. package/src/common/Testing/Types.d.ts +0 -117
  121. package/src/common/Testing/Types.js +0 -19
  122. package/src/common/Testing/Utils.d.ts +0 -48
  123. package/src/common/Testing/Utils.js +0 -334
  124. package/src/common/Testing/index.d.ts +0 -2
  125. package/src/common/Testing/index.js +0 -18
  126. package/src/common/TypeInfoDataItemUtils.d.ts +0 -10
  127. package/src/common/TypeInfoDataItemUtils.js +0 -55
  128. package/src/common/TypeInfoORM/Types.d.ts +0 -76
  129. package/src/common/TypeInfoORM/Types.js +0 -55
  130. package/src/common/TypeInfoORM/index.d.ts +0 -1
  131. package/src/common/TypeInfoORM/index.js +0 -17
  132. package/src/common/TypeParsing/Constants.d.ts +0 -1
  133. package/src/common/TypeParsing/Constants.js +0 -4
  134. package/src/common/TypeParsing/ParsingUtils/Constants.d.ts +0 -5
  135. package/src/common/TypeParsing/ParsingUtils/Constants.js +0 -8
  136. package/src/common/TypeParsing/ParsingUtils/checkType.d.ts +0 -8
  137. package/src/common/TypeParsing/ParsingUtils/checkType.js +0 -46
  138. package/src/common/TypeParsing/ParsingUtils/checkUnionType.d.ts +0 -6
  139. package/src/common/TypeParsing/ParsingUtils/checkUnionType.js +0 -15
  140. package/src/common/TypeParsing/ParsingUtils/extractCommentTags.d.ts +0 -2
  141. package/src/common/TypeParsing/ParsingUtils/extractCommentTags.js +0 -105
  142. package/src/common/TypeParsing/ParsingUtils/extractLiteralValues.d.ts +0 -6
  143. package/src/common/TypeParsing/ParsingUtils/extractLiteralValues.js +0 -42
  144. package/src/common/TypeParsing/ParsingUtils/extractTypeDetails.d.ts +0 -8
  145. package/src/common/TypeParsing/ParsingUtils/extractTypeDetails.js +0 -14
  146. package/src/common/TypeParsing/ParsingUtils/getPrimaryFieldForTypeInfo.d.ts +0 -5
  147. package/src/common/TypeParsing/ParsingUtils/getPrimaryFieldForTypeInfo.js +0 -27
  148. package/src/common/TypeParsing/ParsingUtils/getTypeInfo.d.ts +0 -3
  149. package/src/common/TypeParsing/ParsingUtils/getTypeInfo.js +0 -27
  150. package/src/common/TypeParsing/ParsingUtils/getTypeInfoField.d.ts +0 -3
  151. package/src/common/TypeParsing/ParsingUtils/getTypeInfoField.js +0 -44
  152. package/src/common/TypeParsing/ParsingUtils/getTypeInfoFromAliasType.d.ts +0 -4
  153. package/src/common/TypeParsing/ParsingUtils/getTypeInfoFromAliasType.js +0 -28
  154. package/src/common/TypeParsing/ParsingUtils/getTypeInfoFromFieldFilter.d.ts +0 -4
  155. package/src/common/TypeParsing/ParsingUtils/getTypeInfoFromFieldFilter.js +0 -105
  156. package/src/common/TypeParsing/ParsingUtils/getTypeInfoFromTypeAlias.d.ts +0 -4
  157. package/src/common/TypeParsing/ParsingUtils/getTypeInfoFromTypeAlias.js +0 -20
  158. package/src/common/TypeParsing/ParsingUtils/getTypeKeyword.d.ts +0 -3
  159. package/src/common/TypeParsing/ParsingUtils/getTypeKeyword.js +0 -17
  160. package/src/common/TypeParsing/ParsingUtils/getUnionOrIntersectionTypeInfo.d.ts +0 -4
  161. package/src/common/TypeParsing/ParsingUtils/getUnionOrIntersectionTypeInfo.js +0 -49
  162. package/src/common/TypeParsing/ParsingUtils/getUnionOrLiteralStringValues.d.ts +0 -2
  163. package/src/common/TypeParsing/ParsingUtils/getUnionOrLiteralStringValues.js +0 -24
  164. package/src/common/TypeParsing/TypeInfo.d.ts +0 -142
  165. package/src/common/TypeParsing/TypeInfo.js +0 -13
  166. package/src/common/TypeParsing/TypeMapping.d.ts +0 -9
  167. package/src/common/TypeParsing/TypeMapping.js +0 -32
  168. package/src/common/TypeParsing/TypeParsing.d.ts +0 -5
  169. package/src/common/TypeParsing/TypeParsing.js +0 -39
  170. package/src/common/TypeParsing/Utils.d.ts +0 -21
  171. package/src/common/TypeParsing/Utils.js +0 -94
  172. package/src/common/TypeParsing/Validation.d.ts +0 -92
  173. package/src/common/TypeParsing/Validation.js +0 -340
  174. package/src/common/TypeParsing/index.d.ts +0 -5
  175. package/src/common/TypeParsing/index.js +0 -44
  176. package/src/common/index.d.ts +0 -11
  177. package/src/common/index.js +0 -47
  178. package/src/iac/SimpleCFT.d.ts +0 -48
  179. package/src/iac/SimpleCFT.js +0 -82
  180. package/src/iac/index.d.ts +0 -9
  181. package/src/iac/index.js +0 -48
  182. package/src/iac/packs/auth/user-management.d.ts +0 -14
  183. package/src/iac/packs/auth/user-management.js +0 -302
  184. package/src/iac/packs/auth.d.ts +0 -19
  185. package/src/iac/packs/auth.js +0 -47
  186. package/src/iac/packs/build/utils.d.ts +0 -100
  187. package/src/iac/packs/build/utils.js +0 -23
  188. package/src/iac/packs/build.d.ts +0 -29
  189. package/src/iac/packs/build.js +0 -217
  190. package/src/iac/packs/cdn.d.ts +0 -12
  191. package/src/iac/packs/cdn.js +0 -126
  192. package/src/iac/packs/cloud-function.d.ts +0 -17
  193. package/src/iac/packs/cloud-function.js +0 -69
  194. package/src/iac/packs/database.d.ts +0 -29
  195. package/src/iac/packs/database.js +0 -27
  196. package/src/iac/packs/dns.d.ts +0 -13
  197. package/src/iac/packs/dns.js +0 -26
  198. package/src/iac/packs/file-storage.d.ts +0 -14
  199. package/src/iac/packs/file-storage.js +0 -71
  200. package/src/iac/packs/gateway.d.ts +0 -27
  201. package/src/iac/packs/gateway.js +0 -342
  202. package/src/iac/packs/index.d.ts +0 -11
  203. package/src/iac/packs/index.js +0 -27
  204. package/src/iac/packs/repo.d.ts +0 -10
  205. package/src/iac/packs/repo.js +0 -34
  206. package/src/iac/packs/ssl-certificate.d.ts +0 -10
  207. package/src/iac/packs/ssl-certificate.js +0 -36
  208. package/src/iac/types/CloudFormationResourceSpecification.d.ts +0 -2
  209. package/src/iac/types/Constants.d.ts +0 -9
  210. package/src/iac/types/Constants.js +0 -20
  211. package/src/iac/types/IaCTypes.js +0 -14
  212. package/src/iac/types/Renderers.d.ts +0 -12
  213. package/src/iac/types/Renderers.js +0 -112
  214. package/src/iac/types/Types.d.ts +0 -37
  215. package/src/iac/types/Types.js +0 -2
  216. package/src/iac/types/Utils.d.ts +0 -2
  217. package/src/iac/types/Utils.js +0 -60
  218. package/src/iac/types/generate.d.ts +0 -1
  219. package/src/iac/types/generate.js +0 -31
  220. package/src/iac/utils/index.d.ts +0 -36
  221. package/src/iac/utils/index.js +0 -105
  222. package/src/iac/utils/patch-utils.d.ts +0 -15
  223. package/src/iac/utils/patch-utils.js +0 -62
  224. package/src/index.d.ts +0 -178
  225. package/src/index.js +0 -214
@@ -0,0 +1,690 @@
1
+ import { f as TypeInfoMap, h as TypeInfo, C as ComparisonOperators, F as FieldCriterion, S as SearchCriteria, T as TypeInfoDataItem, i as SortField, d as TypeKeyword, j as ItemRelationshipInfoType, k as ItemRelationshipInfoKeys, H as HelperTypes, l as ItemRelationshipInfoTypes, m as SearchTypes } from './SearchTypes-DjN6YQzE.js';
2
+ import { V as Validation, T as TypeInfoValidationResults } from './Validation-CFP59oIP.js';
3
+ import { TypeAliasDeclaration, Node } from 'typescript';
4
+
5
+ /**
6
+ * Extracts type information from TypeScript content.
7
+ *
8
+ * @param source - TypeScript source text to parse.
9
+ * @returns Map of exported type info definitions.
10
+ */
11
+ declare const getTypeInfoMapFromTypeScript: (source: string) => TypeInfoMap;
12
+
13
+ /**
14
+ * AST mapping helpers for extracting type aliases from TypeScript sources.
15
+ */
16
+
17
+ /**
18
+ * A map of type aliases in the TypeScript AST.
19
+ */
20
+ type TypeMap = Record<string, TypeAliasDeclaration>;
21
+ /**
22
+ * Converts a TypeScript AST to a map of type aliases.
23
+ *
24
+ * @param node - AST node to traverse.
25
+ * @param map - Accumulator map of type aliases.
26
+ * @param parentName - Parent module name for nested namespaces.
27
+ * @returns Map of type alias declarations keyed by name.
28
+ */
29
+ declare const convertASTToMap: (node: Node, map?: Record<string, TypeAliasDeclaration>, parentName?: string) => TypeMap;
30
+
31
+ type TypeMapping_TypeMap = TypeMap;
32
+ declare const TypeMapping_convertASTToMap: typeof convertASTToMap;
33
+ declare namespace TypeMapping {
34
+ export { type TypeMapping_TypeMap as TypeMap, TypeMapping_convertASTToMap as convertASTToMap };
35
+ }
36
+
37
+ /**
38
+ * Built-in type names used when parsing TypeInfo.
39
+ * */
40
+ declare const BUILTIN_TYPE_NAMES: string[];
41
+
42
+ declare const Constants_BUILTIN_TYPE_NAMES: typeof BUILTIN_TYPE_NAMES;
43
+ declare namespace Constants {
44
+ export { Constants_BUILTIN_TYPE_NAMES as BUILTIN_TYPE_NAMES };
45
+ }
46
+
47
+ /**
48
+ * @packageDocumentation
49
+ *
50
+ * Type parsing utilities for deriving TypeInfo from TypeScript source.
51
+ * Includes TypeInfo definitions, validation helpers, and AST mapping.
52
+ */
53
+
54
+ declare const index$5_Constants: typeof Constants;
55
+ declare const index$5_TypeInfo: typeof TypeInfo;
56
+ declare const index$5_TypeMapping: typeof TypeMapping;
57
+ declare const index$5_Validation: typeof Validation;
58
+ declare const index$5_getTypeInfoMapFromTypeScript: typeof getTypeInfoMapFromTypeScript;
59
+ declare namespace index$5 {
60
+ export { index$5_Constants as Constants, index$5_TypeInfo as TypeInfo, index$5_TypeMapping as TypeMapping, index$5_Validation as Validation, index$5_getTypeInfoMapFromTypeScript as getTypeInfoMapFromTypeScript };
61
+ }
62
+
63
+ /**
64
+ * Helpers for parsing and composing path strings used by the Router utilities.
65
+ */
66
+ /**
67
+ * The delimiter used to separate paths.
68
+ */
69
+ declare const PATH_DELIMITER = "/";
70
+ /**
71
+ * Parse a string into JSON if possible, otherwise return the raw value.
72
+ *
73
+ * @param value - Input string to parse.
74
+ * @returns Parsed JSON or the original string.
75
+ */
76
+ declare const getPotentialJSONValue: (value: string) => any;
77
+ /**
78
+ * Get the path segments from a path string.
79
+ *
80
+ * @param path - Path string to split.
81
+ * @param delimiter - Delimiter used to split the path.
82
+ * @param filterEmptyOutput - Whether to remove empty output segments.
83
+ * @param filterEmptyInput - Whether to remove empty input segments.
84
+ * @param useJson - Whether to parse each segment as JSON.
85
+ * @param uriDecodeParts - Whether to URI-decode each segment.
86
+ * @returns Array of path segments.
87
+ * */
88
+ declare const getPathArray: (path: string, delimiter?: string, filterEmptyOutput?: boolean, filterEmptyInput?: boolean, useJson?: boolean, uriDecodeParts?: boolean) => any[];
89
+ /**
90
+ * Get the path string from path segments.
91
+ *
92
+ * @param parts - Path segments to join.
93
+ * @param delimiter - Delimiter used to join the path.
94
+ * @param filterEmptyInput - Whether to remove empty input segments.
95
+ * @param useJson - Whether to JSON-stringify each segment.
96
+ * @param uriEncodeParts - Whether to URI-encode each segment.
97
+ * @returns Joined path string.
98
+ * */
99
+ declare const getPathString: (parts?: any[], delimiter?: string, filterEmptyInput?: boolean, useJson?: boolean, uriEncodeParts?: boolean) => string;
100
+ /**
101
+ * Merge two path strings.
102
+ *
103
+ * @param path1 - First path string.
104
+ * @param path2 - Second path string.
105
+ * @param delimiter - Delimiter used to split and join paths.
106
+ * @param filterEmptyOutput - Whether to remove empty output segments.
107
+ * @param filterEmptyInput - Whether to remove empty input segments.
108
+ * @param useJson - Whether to parse/serialize segments as JSON.
109
+ * @param uriEncodeParts - Whether to URI-encode each segment.
110
+ * @returns Merged path string.
111
+ * */
112
+ declare const mergeStringPaths: (path1: string, path2: string, delimiter?: string, filterEmptyOutput?: boolean, filterEmptyInput?: boolean, useJson?: boolean, uriEncodeParts?: boolean) => string;
113
+ /**
114
+ * Resolve a path string against another path string.
115
+ *
116
+ * @param currentPath - Base path to resolve against.
117
+ * @param newPath - New path to resolve, absolute or relative.
118
+ * @returns Resolved path string.
119
+ * */
120
+ declare const resolvePath: (currentPath: string, newPath: string) => string;
121
+ /**
122
+ * Get the parameter values from a path string and test the `path` against a `testPath`.
123
+ *
124
+ * @param path - Actual path to test.
125
+ * @param testPath - Route pattern to match against.
126
+ * @param exact - Whether to require an exact match.
127
+ * @returns Params object when matched, otherwise false.
128
+ * */
129
+ declare const getParamsAndTestPath: (path: string, testPath: string, exact?: boolean) => Record<string, any> | false;
130
+
131
+ declare const Routing_PATH_DELIMITER: typeof PATH_DELIMITER;
132
+ declare const Routing_getParamsAndTestPath: typeof getParamsAndTestPath;
133
+ declare const Routing_getPathArray: typeof getPathArray;
134
+ declare const Routing_getPathString: typeof getPathString;
135
+ declare const Routing_getPotentialJSONValue: typeof getPotentialJSONValue;
136
+ declare const Routing_mergeStringPaths: typeof mergeStringPaths;
137
+ declare const Routing_resolvePath: typeof resolvePath;
138
+ declare namespace Routing {
139
+ export { Routing_PATH_DELIMITER as PATH_DELIMITER, Routing_getParamsAndTestPath as getParamsAndTestPath, Routing_getPathArray as getPathArray, Routing_getPathString as getPathString, Routing_getPotentialJSONValue as getPotentialJSONValue, Routing_mergeStringPaths as mergeStringPaths, Routing_resolvePath as resolvePath };
140
+ }
141
+
142
+ /**
143
+ * Get a simple id, unique to the current run session.
144
+ *
145
+ * Includes a counter and timestamp so it stays unique within the same process.
146
+ *
147
+ * @returns A process-unique string id.
148
+ */
149
+ declare const getSimpleId: () => string;
150
+
151
+ declare const index$4_getSimpleId: typeof getSimpleId;
152
+ declare namespace index$4 {
153
+ export { index$4_getSimpleId as getSimpleId };
154
+ }
155
+
156
+ /**
157
+ * Filtering and sorting utilities for search criteria.
158
+ */
159
+
160
+ /**
161
+ * Basic comparison operators for filtering data.
162
+ * */
163
+ declare const COMPARATORS: Record<ComparisonOperators, (
164
+ /**
165
+ * Criterion value to compare against.
166
+ * */
167
+ criterionValue: any,
168
+ /**
169
+ * Criterion options for operators like IN/BETWEEN.
170
+ * */
171
+ criterionValueOptions: any[] | undefined,
172
+ /**
173
+ * Field value from the item.
174
+ * */
175
+ fieldValue: any) => boolean>;
176
+ /**
177
+ * Compare a field criterion to a field value.
178
+ *
179
+ * @param fieldCriterion - Criterion to compare.
180
+ * @param fieldValue - Field value to test.
181
+ * @returns Whether the criterion matches the field value.
182
+ * */
183
+ declare const compare$1: (fieldCriterion: FieldCriterion, fieldValue: any) => boolean;
184
+ /**
185
+ * Compare a field criterion to an array of field values.
186
+ *
187
+ * @param fieldCriterion - Criterion to compare.
188
+ * @param fieldValue - Array field value to test.
189
+ * @returns Whether the criterion matches the field value array.
190
+ * */
191
+ declare const compareArray: (fieldCriterion: FieldCriterion, fieldValue: any[] | undefined) => boolean;
192
+ /**
193
+ * Get the filtered data items based on the search criteria.
194
+ *
195
+ * @param searchCriteria - Criteria to apply.
196
+ * @param items - Items to filter.
197
+ * @param typeInfoName - Optional type name for field metadata.
198
+ * @param typeInfoMap - Optional type info map for field metadata.
199
+ * @returns Filtered items that match the criteria.
200
+ * */
201
+ declare const getFilterTypeInfoDataItemsBySearchCriteria: (searchCriteria: SearchCriteria, items: TypeInfoDataItem[], typeInfoName?: string, typeInfoMap?: TypeInfoMap) => TypeInfoDataItem[];
202
+ /**
203
+ * Get the sorted data items based on the given sort fields.
204
+ *
205
+ * @param sortFields - Sort field configuration.
206
+ * @param items - Items to sort.
207
+ * @returns Sorted items array.
208
+ * */
209
+ declare const getSortedItems: (sortFields?: SortField[], items?: TypeInfoDataItem[]) => TypeInfoDataItem[];
210
+
211
+ declare const SearchUtils_COMPARATORS: typeof COMPARATORS;
212
+ declare const SearchUtils_compareArray: typeof compareArray;
213
+ declare const SearchUtils_getFilterTypeInfoDataItemsBySearchCriteria: typeof getFilterTypeInfoDataItemsBySearchCriteria;
214
+ declare const SearchUtils_getSortedItems: typeof getSortedItems;
215
+ declare namespace SearchUtils {
216
+ export { SearchUtils_COMPARATORS as COMPARATORS, compare$1 as compare, SearchUtils_compareArray as compareArray, SearchUtils_getFilterTypeInfoDataItemsBySearchCriteria as getFilterTypeInfoDataItemsBySearchCriteria, SearchUtils_getSortedItems as getSortedItems };
217
+ }
218
+
219
+ /**
220
+ * Built-in and custom string transformers for type keywords.
221
+ */
222
+
223
+ /**
224
+ * A function that transforms a value into a string.
225
+ *
226
+ * @param value - Value to transform.
227
+ * @returns String representation of the value.
228
+ * */
229
+ type StringTransformer = (value: any) => string;
230
+ /**
231
+ * A map of string transformers for each type keyword.
232
+ * */
233
+ declare const STRING_TRANSFORMERS: Record<TypeKeyword, StringTransformer>;
234
+ /**
235
+ * A map of custom string transformers for each custom type.
236
+ * */
237
+ declare const CUSTOM_STRING_TRANSFORMERS: Record<string, StringTransformer>;
238
+ /**
239
+ * Transform a value into a string based on the type keyword or custom type.
240
+ *
241
+ * @param value - Value to transform.
242
+ * @param typeKeyword - Type keyword used to select the transformer.
243
+ * @param customType - Custom type name, if applicable.
244
+ * @returns String representation for the value.
245
+ * */
246
+ declare const transformValueToString: (value: any, typeKeyword: TypeKeyword, customType?: string) => string;
247
+
248
+ declare const StringTransformers_CUSTOM_STRING_TRANSFORMERS: typeof CUSTOM_STRING_TRANSFORMERS;
249
+ declare const StringTransformers_STRING_TRANSFORMERS: typeof STRING_TRANSFORMERS;
250
+ type StringTransformers_StringTransformer = StringTransformer;
251
+ declare const StringTransformers_transformValueToString: typeof transformValueToString;
252
+ declare namespace StringTransformers {
253
+ export { StringTransformers_CUSTOM_STRING_TRANSFORMERS as CUSTOM_STRING_TRANSFORMERS, StringTransformers_STRING_TRANSFORMERS as STRING_TRANSFORMERS, type StringTransformers_StringTransformer as StringTransformer, StringTransformers_transformValueToString as transformValueToString };
254
+ }
255
+
256
+ /**
257
+ * Validation helpers for relationship items.
258
+ */
259
+
260
+ /**
261
+ * Error codes for relationship validation.
262
+ * */
263
+ declare const TYPE_INFO_ORM_RELATIONSHIP_ERRORS: {
264
+ INVALID_RELATIONSHIP_ITEM: string;
265
+ INVALID_RELATIONSHIP_ITEM_FIELD: string;
266
+ };
267
+ /**
268
+ * Validates a relationship item.
269
+ *
270
+ * @param relationshipItem - Relationship item to validate.
271
+ * @param omitFields - Relationship keys to ignore during validation.
272
+ * @returns Validation results with errors and errorMap when invalid.
273
+ * */
274
+ declare const validateRelationshipItem: (relationshipItem: ItemRelationshipInfoType, omitFields?: ItemRelationshipInfoKeys[]) => TypeInfoValidationResults;
275
+
276
+ declare const index$3_TYPE_INFO_ORM_RELATIONSHIP_ERRORS: typeof TYPE_INFO_ORM_RELATIONSHIP_ERRORS;
277
+ declare const index$3_validateRelationshipItem: typeof validateRelationshipItem;
278
+ declare namespace index$3 {
279
+ export { index$3_TYPE_INFO_ORM_RELATIONSHIP_ERRORS as TYPE_INFO_ORM_RELATIONSHIP_ERRORS, index$3_validateRelationshipItem as validateRelationshipItem };
280
+ }
281
+
282
+ /**
283
+ * Operations used for comparison during tests.
284
+ */
285
+ declare enum TestComparisonOperation {
286
+ /**
287
+ * Strict equality comparison.
288
+ * */
289
+ EQUALS = "===",
290
+ /**
291
+ * Strict inequality comparison.
292
+ * */
293
+ NOT_EQUALS = "!==",
294
+ /**
295
+ * Value is contained in expectation array.
296
+ * */
297
+ IN = "IN",
298
+ /**
299
+ * Array contains the expectation value.
300
+ * */
301
+ ARRAY_CONTAINS = "ARRAY_CONTAINS",
302
+ /**
303
+ * Numeric value is between two bounds.
304
+ * */
305
+ BETWEEN = "BETWEEN",
306
+ /**
307
+ * String contains another string.
308
+ * */
309
+ CONTAINS = "CONTAINS",
310
+ /**
311
+ * Regex match against a pattern.
312
+ * */
313
+ REGEX = "REGEX",
314
+ /**
315
+ * Extended regex match with explicit pattern elements.
316
+ * */
317
+ EXT_REGEX = "EXT_REGEX",
318
+ /**
319
+ * Deep equality using JSON stringification.
320
+ * */
321
+ DEEP_EQUALS = "DEEP_EQUALS",
322
+ /**
323
+ * Array equality using JSON stringification.
324
+ * */
325
+ ARRAY_EQUALS = "ARRAY_EQUALS"
326
+ }
327
+ /**
328
+ * A pattern definition object for use with extended regex expectations.
329
+ * */
330
+ type PatternElement = {
331
+ /**
332
+ * Literal pattern segment value.
333
+ * */
334
+ value: string;
335
+ /**
336
+ * Whether to escape regex characters in the value.
337
+ * */
338
+ escaped?: boolean;
339
+ };
340
+ /**
341
+ * An extended regex expectation with a patter structure, optional flags and
342
+ * escaping properties that allow for clear and explicit declaration of regex
343
+ * patterns in JSON.
344
+ *
345
+ * Used when a `TestCondition` `operation` is `TestComparisonOperation.EXT_REGEX`.
346
+ * */
347
+ type EXTRegexExpectation = {
348
+ /**
349
+ * Pattern elements to build the regex.
350
+ * */
351
+ pattern: PatternElement[];
352
+ /**
353
+ * Regex flags to apply.
354
+ * */
355
+ flags?: string;
356
+ };
357
+ /**
358
+ * A regex expectation with a pattern and optional flags.
359
+ *
360
+ * Used when a `TestCondition` `operation` is `TestComparisonOperation.REGEX`.
361
+ * */
362
+ type RegexExpectation = {
363
+ /**
364
+ * Regex pattern string.
365
+ * */
366
+ pattern: string;
367
+ /**
368
+ * Regex flags to apply.
369
+ * */
370
+ flags?: string;
371
+ };
372
+ /**
373
+ * A configuration used to acquire conditions from code instead of a JSON array.
374
+ * */
375
+ type ConditionConfig = {
376
+ /**
377
+ * Relative file path containing the conditions export.
378
+ * */
379
+ file: string;
380
+ /**
381
+ * Export name that contains the conditions array.
382
+ * */
383
+ export: string;
384
+ };
385
+ /**
386
+ * Preparation for a test when some setup is required or a class needs to be instantiated.
387
+ * */
388
+ type TestSetup = {
389
+ /**
390
+ * Conditions to use for the setup function or constructor.
391
+ * */
392
+ conditions: unknown[] | ConditionConfig;
393
+ /**
394
+ * Export name to call or instantiate for setup.
395
+ * */
396
+ export: string;
397
+ /**
398
+ * Whether to use `new` with the setup export.
399
+ * */
400
+ instantiate?: boolean;
401
+ };
402
+ /**
403
+ * The basis for a test.
404
+ * */
405
+ type BaseTest = {
406
+ /**
407
+ * Export name for the test function.
408
+ * */
409
+ export: string;
410
+ /**
411
+ * Optional setup configuration.
412
+ * */
413
+ setup?: TestSetup;
414
+ /**
415
+ * Conditions to pass to the test function.
416
+ * */
417
+ conditions: unknown[] | ConditionConfig;
418
+ /**
419
+ * Allow missing expectation and treat undefined as pass.
420
+ * */
421
+ expectUndefined?: boolean;
422
+ };
423
+ /**
424
+ * A singular test with specific types of expectations for a given operation.
425
+ * */
426
+ type Test = BaseTest & ({
427
+ operation?: TestComparisonOperation.EQUALS | TestComparisonOperation.NOT_EQUALS;
428
+ expectation: string | number | boolean | null | undefined;
429
+ } | {
430
+ operation: TestComparisonOperation.IN | TestComparisonOperation.ARRAY_CONTAINS;
431
+ expectation: unknown[];
432
+ } | {
433
+ operation: TestComparisonOperation.BETWEEN;
434
+ expectation: [number, number];
435
+ } | {
436
+ operation: TestComparisonOperation.CONTAINS;
437
+ expectation: string;
438
+ } | {
439
+ operation: TestComparisonOperation.REGEX;
440
+ expectation: RegexExpectation;
441
+ } | {
442
+ operation: TestComparisonOperation.EXT_REGEX;
443
+ expectation: EXTRegexExpectation;
444
+ } | {
445
+ operation: TestComparisonOperation.DEEP_EQUALS;
446
+ expectation: Record<string, unknown>;
447
+ } | {
448
+ operation: TestComparisonOperation.ARRAY_EQUALS;
449
+ expectation: unknown[];
450
+ });
451
+ /**
452
+ * A configuration for a test. Designed to be used in JSON spec files.
453
+ */
454
+ type TestConfig = {
455
+ /**
456
+ * Relative module path containing test exports.
457
+ * */
458
+ file: string;
459
+ /**
460
+ * Tests to execute for the module.
461
+ * */
462
+ tests: Test[];
463
+ };
464
+ /**
465
+ * A resolved test configuration with the module and tests.
466
+ * */
467
+ type ResolvedTestConfig = {
468
+ /**
469
+ * Required module with test exports.
470
+ * */
471
+ targetModule: any;
472
+ } & TestConfig;
473
+ /**
474
+ * The results from running one or more tests.
475
+ * */
476
+ type TestResults = {
477
+ /**
478
+ * Informational messages.
479
+ * */
480
+ messages?: string[];
481
+ /**
482
+ * Generated expectation messages.
483
+ * */
484
+ generated?: string[];
485
+ /**
486
+ * Passed test messages.
487
+ * */
488
+ passes?: string[];
489
+ /**
490
+ * Failed test messages.
491
+ * */
492
+ failures?: string[];
493
+ /**
494
+ * Error messages.
495
+ * */
496
+ errors?: string[];
497
+ };
498
+
499
+ /**
500
+ * @packageDocumentation
501
+ *
502
+ * Helpers for executing JSON spec tests, including expectation generation.
503
+ */
504
+
505
+ /**
506
+ * A map of comparison functions for each `TestComparisonOperation`.
507
+ * */
508
+ declare const OPERATIONS: Record<string, (a: unknown, b: unknown) => boolean>;
509
+ /**
510
+ * Compare a result with an expectation using a specified `TestComparisonOperation`.
511
+ *
512
+ * @param result - Actual test result.
513
+ * @param expectation - Expected value.
514
+ * @param operation - Comparison operation to use.
515
+ * @returns Whether the result matches the expectation.
516
+ * */
517
+ declare const compare: (result: unknown, expectation: unknown, operation?: TestComparisonOperation) => boolean;
518
+ /**
519
+ * Get the target module for testing from a file being tested.
520
+ *
521
+ * @param testFilePath - Path to the test file.
522
+ * @param targetTestIndex - Index of the test in the test array.
523
+ * @param targetTestExport - Export name for the test.
524
+ * @param conditions - Conditions array or config to load.
525
+ * @param isSetup - Whether the conditions are for setup.
526
+ * @returns Resolved conditions array.
527
+ * */
528
+ declare const getResolvedConditions: (testFilePath: string, targetTestIndex: number, targetTestExport: string, conditions: unknown[] | ConditionConfig, isSetup?: boolean) => Promise<unknown[]>;
529
+ /**
530
+ * Get the target base instance from a module, for a given test setup.
531
+ *
532
+ * @param testFilePath - Path to the test file.
533
+ * @param targetTestIndex - Index of the test in the test array.
534
+ * @param targetTestExport - Export name for the test.
535
+ * @param test - Test definition.
536
+ * @param module - Required module containing exports.
537
+ * @returns Instance to use for the test function.
538
+ * */
539
+ declare const getSetupInstance: (testFilePath: string, targetTestIndex: number, targetTestExport: string, test: Test, module: any) => Promise<any>;
540
+ /**
541
+ * Resolve the test function from the target module or setup instance.
542
+ *
543
+ * @param testFilePath - Path to the test file.
544
+ * @param file - Module file defined in the test config.
545
+ * @param targetTestIndex - Index of the test in the test array.
546
+ * @param test - Test definition.
547
+ * @param targetModule - Required module containing exports.
548
+ * @returns Test function to execute.
549
+ */
550
+ declare const getTestFunction: (testFilePath: string, file: string, targetTestIndex: number, test: Test, targetModule: any) => Promise<(...args: unknown[]) => Promise<unknown> | unknown>;
551
+ /**
552
+ * Get the test configuration from a test file.
553
+ *
554
+ * @param testFilePath - Path to the test file.
555
+ * @returns Parsed test config.
556
+ * */
557
+ declare const getTestConfig: (testFilePath: string) => Promise<TestConfig>;
558
+ /**
559
+ * Get the target module for testing from a file being tested.
560
+ *
561
+ * @param testFilePath - Path to the test file.
562
+ * @returns Resolved test config with module and tests.
563
+ * */
564
+ declare const getResolvedTestConfig: (testFilePath: string) => Promise<ResolvedTestConfig>;
565
+ /**
566
+ * Merge multiple test results into a single result.
567
+ *
568
+ * @param results - Test result sets to merge.
569
+ * @returns Combined test results.
570
+ * */
571
+ declare const mergeTestResults: (...results: TestResults[]) => TestResults;
572
+ /**
573
+ * Run a test using a test function and a test condition.
574
+ *
575
+ * @param testFilePath - Path to the test file.
576
+ * @param testFunction - Test function to execute.
577
+ * @param test - Test definition.
578
+ * @param index - Test index in the list.
579
+ * @param targetExport - Export name for the test.
580
+ * @param report - Reporter for test results.
581
+ * @returns Resolves when the test completes.
582
+ * */
583
+ declare const runTest: (testFilePath: string, testFunction: (...args: unknown[]) => Promise<unknown> | unknown, test: Test, index: number, targetExport: string, report: (results: TestResults) => void) => Promise<void>;
584
+ /**
585
+ * Generate tests for a file by running the tests, capturing the current result and storing it as the new expectation.
586
+ *
587
+ * @param testFilePath - Path to the test file.
588
+ * @param report - Reporter for test results.
589
+ * @returns Resolves when generation completes.
590
+ * */
591
+ declare const generateTestsForFile: (testFilePath: string, report: (results: TestResults) => void) => Promise<void>;
592
+ /**
593
+ * Run the tests for a given test file.
594
+ *
595
+ * The test file content is expected to be a JSON in the structure of a `TestConfig`.
596
+ *
597
+ * @param testFilePath - Path to the test file.
598
+ * @param report - Reporter for test results.
599
+ * @returns Resolves when tests finish.
600
+ * */
601
+ declare const runTestsForFile: (testFilePath: string, report: (results: TestResults) => void) => Promise<void>;
602
+ /**
603
+ * Run or generate all of the tests in the specified `testPath` glob.
604
+ *
605
+ * @param testFiles - Test file paths to execute.
606
+ * @param generateMode - Whether to generate expectations.
607
+ * @param report - Reporter for test results.
608
+ * @returns Resolves when execution completes.
609
+ * */
610
+ declare const executeTestingCommand: (testFiles: string[], generateMode: boolean | undefined, report: (results: TestResults) => void) => Promise<void>;
611
+
612
+ /**
613
+ * @packageDocumentation
614
+ *
615
+ * JSON-spec testing helpers used by the custom test runner. Specs live alongside
616
+ * code in `*.spec.json` files and point to test-utils modules.
617
+ */
618
+
619
+ type index$2_BaseTest = BaseTest;
620
+ type index$2_ConditionConfig = ConditionConfig;
621
+ type index$2_EXTRegexExpectation = EXTRegexExpectation;
622
+ declare const index$2_OPERATIONS: typeof OPERATIONS;
623
+ type index$2_PatternElement = PatternElement;
624
+ type index$2_RegexExpectation = RegexExpectation;
625
+ type index$2_ResolvedTestConfig = ResolvedTestConfig;
626
+ type index$2_Test = Test;
627
+ type index$2_TestComparisonOperation = TestComparisonOperation;
628
+ declare const index$2_TestComparisonOperation: typeof TestComparisonOperation;
629
+ type index$2_TestConfig = TestConfig;
630
+ type index$2_TestResults = TestResults;
631
+ type index$2_TestSetup = TestSetup;
632
+ declare const index$2_compare: typeof compare;
633
+ declare const index$2_executeTestingCommand: typeof executeTestingCommand;
634
+ declare const index$2_generateTestsForFile: typeof generateTestsForFile;
635
+ declare const index$2_getResolvedConditions: typeof getResolvedConditions;
636
+ declare const index$2_getResolvedTestConfig: typeof getResolvedTestConfig;
637
+ declare const index$2_getSetupInstance: typeof getSetupInstance;
638
+ declare const index$2_getTestConfig: typeof getTestConfig;
639
+ declare const index$2_getTestFunction: typeof getTestFunction;
640
+ declare const index$2_mergeTestResults: typeof mergeTestResults;
641
+ declare const index$2_runTest: typeof runTest;
642
+ declare const index$2_runTestsForFile: typeof runTestsForFile;
643
+ declare namespace index$2 {
644
+ export { type index$2_BaseTest as BaseTest, type index$2_ConditionConfig as ConditionConfig, type index$2_EXTRegexExpectation as EXTRegexExpectation, index$2_OPERATIONS as OPERATIONS, type index$2_PatternElement as PatternElement, type index$2_RegexExpectation as RegexExpectation, type index$2_ResolvedTestConfig as ResolvedTestConfig, type index$2_Test as Test, index$2_TestComparisonOperation as TestComparisonOperation, type index$2_TestConfig as TestConfig, type index$2_TestResults as TestResults, type index$2_TestSetup as TestSetup, index$2_compare as compare, index$2_executeTestingCommand as executeTestingCommand, index$2_generateTestsForFile as generateTestsForFile, index$2_getResolvedConditions as getResolvedConditions, index$2_getResolvedTestConfig as getResolvedTestConfig, index$2_getSetupInstance as getSetupInstance, index$2_getTestConfig as getTestConfig, index$2_getTestFunction as getTestFunction, index$2_mergeTestResults as mergeTestResults, index$2_runTest as runTest, index$2_runTestsForFile as runTestsForFile };
645
+ }
646
+
647
+ /**
648
+ * Logging tags used by {@link logFunctionCall}.
649
+ */
650
+ declare enum LOGGING_MESSAGES {
651
+ LOGGING_FUNCTION_CALL = "LOGGING_FUNCTION_CALL",
652
+ INPUT = "INPUT",
653
+ OUTPUT = "OUTPUT",
654
+ ERROR = "ERROR"
655
+ }
656
+ /**
657
+ * Make a function call and log input/output/errors when enabled.
658
+ *
659
+ * @param label - Label to include in logs.
660
+ * @param args - Arguments passed to the function.
661
+ * @param functionRef - Function to execute.
662
+ * @param enabled - Whether to emit logs.
663
+ * @returns The function result.
664
+ */
665
+ declare const logFunctionCall: (label: string, args: any[], functionRef: (...args: any[]) => Promise<any> | any, enabled: boolean) => Promise<any>;
666
+
667
+ type index$1_LOGGING_MESSAGES = LOGGING_MESSAGES;
668
+ declare const index$1_LOGGING_MESSAGES: typeof LOGGING_MESSAGES;
669
+ declare const index$1_logFunctionCall: typeof logFunctionCall;
670
+ declare namespace index$1 {
671
+ export { index$1_LOGGING_MESSAGES as LOGGING_MESSAGES, index$1_logFunctionCall as logFunctionCall };
672
+ }
673
+
674
+ /**
675
+ * @packageDocumentation
676
+ *
677
+ * Common module exports for shared utilities, types, and helpers.
678
+ */
679
+
680
+ declare const index_HelperTypes: typeof HelperTypes;
681
+ declare const index_ItemRelationshipInfoTypes: typeof ItemRelationshipInfoTypes;
682
+ declare const index_Routing: typeof Routing;
683
+ declare const index_SearchTypes: typeof SearchTypes;
684
+ declare const index_SearchUtils: typeof SearchUtils;
685
+ declare const index_StringTransformers: typeof StringTransformers;
686
+ declare namespace index {
687
+ export { index_HelperTypes as HelperTypes, index$4 as IDGeneration, index_ItemRelationshipInfoTypes as ItemRelationshipInfoTypes, index$3 as ItemRelationships, index$1 as Logging, index_Routing as Routing, index_SearchTypes as SearchTypes, index_SearchUtils as SearchUtils, index_StringTransformers as StringTransformers, index$2 as Testing, index$5 as TypeParsing };
688
+ }
689
+
690
+ export { Routing as R, SearchUtils as S, index$5 as a, index$4 as b, StringTransformers as c, index$3 as d, index$2 as e, index$1 as f, index as i };