@resistdesign/voltra 3.0.0-alpha.5 → 3.0.0-alpha.50
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 +392 -14
- package/api/DBX/DBXAsserts.d.ts +95 -0
- package/api/DBX/DBXRequest.d.ts +5 -0
- package/api/DBX/DBXRuntime.d.ts +5 -0
- package/api/DBX/DBXScenarioConfig.d.ts +9 -0
- package/api/DBX/DBXSeed.d.ts +124 -0
- package/api/DBX/DBXTypes.d.ts +176 -0
- package/api/DBX/index.d.ts +8 -0
- package/api/DataAccessControl.d.ts +220 -0
- package/api/Indexing/API.d.ts +224 -0
- package/api/Indexing/Cursor.d.ts +101 -0
- package/api/Indexing/Handler/Config.d.ts +39 -0
- package/api/Indexing/Handler.d.ts +166 -0
- package/api/Indexing/Trace.d.ts +54 -0
- package/api/Indexing/Types.d.ts +204 -0
- package/api/Indexing/ddb/AwsSdkV3Adapter.d.ts +8 -0
- package/api/Indexing/ddb/Types.d.ts +209 -0
- package/api/Indexing/docId.d.ts +27 -0
- package/api/Indexing/exact/ExactDdb.d.ts +58 -0
- package/api/Indexing/exact/ExactIndex.d.ts +90 -0
- package/api/Indexing/exact/ExactS3.d.ts +41 -0
- package/api/Indexing/fieldQualification.d.ts +12 -0
- package/api/Indexing/fulltext/FullTextDdbBackend.d.ts +212 -0
- package/api/Indexing/fulltext/FullTextMemoryBackend.d.ts +93 -0
- package/api/Indexing/fulltext/Schema.d.ts +164 -0
- package/api/Indexing/hashUniversal.d.ts +13 -0
- package/api/Indexing/index.d.ts +45 -0
- package/api/Indexing/lossy/LossyDdb.d.ts +43 -0
- package/api/Indexing/lossy/LossyIndex.d.ts +72 -0
- package/api/Indexing/lossy/LossyS3.d.ts +40 -0
- package/api/Indexing/rel/Cursor.d.ts +25 -0
- package/api/Indexing/rel/Handlers.d.ts +144 -0
- package/api/Indexing/rel/RelationalDdb.d.ts +169 -0
- package/api/Indexing/rel/RelationalInMemoryBackend.d.ts +38 -0
- package/api/Indexing/rel/Types.d.ts +69 -0
- package/api/Indexing/structured/Cursor.d.ts +26 -0
- package/api/Indexing/structured/Handlers.d.ts +128 -0
- package/api/Indexing/structured/SearchStructured.d.ts +44 -0
- package/api/Indexing/structured/StructuredDdb.d.ts +184 -0
- package/api/Indexing/structured/StructuredDdbBackend.d.ts +112 -0
- package/api/Indexing/structured/StructuredInMemoryBackend.d.ts +40 -0
- package/api/Indexing/structured/StructuredInMemoryIndex.d.ts +61 -0
- package/api/Indexing/structured/StructuredStringLike.d.ts +54 -0
- package/api/Indexing/structured/StructuredWriter.d.ts +74 -0
- package/api/Indexing/structured/Types.d.ts +126 -0
- package/api/Indexing/structured/index.d.ts +9 -0
- package/api/Indexing/tokenize.d.ts +31 -0
- package/api/ORM/DACUtils.d.ts +270 -0
- package/api/ORM/ListItemUtils.d.ts +40 -0
- package/api/ORM/ORMRouteMap.d.ts +70 -0
- package/api/ORM/TypeInfoORMService.d.ts +879 -0
- package/api/ORM/drivers/DynamoDBDataItemDBDriver/ConfigTypes.d.ts +229 -0
- package/api/ORM/drivers/DynamoDBDataItemDBDriver.d.ts +90 -0
- package/api/ORM/drivers/InMemoryDataItemDBDriver/ConfigTypes.d.ts +4 -0
- package/api/ORM/drivers/InMemoryDataItemDBDriver.d.ts +56 -0
- package/api/ORM/drivers/InMemoryFileItemDBDriver/ConfigTypes.d.ts +13 -0
- package/api/ORM/drivers/InMemoryFileItemDBDriver.d.ts +98 -0
- package/api/ORM/drivers/InMemoryItemRelationshipDBDriver.d.ts +16 -0
- package/api/ORM/drivers/IndexingRelationshipDriver.d.ts +123 -0
- package/api/ORM/drivers/S3FileItemDBDriver/ConfigTypes.d.ts +322 -0
- package/api/ORM/drivers/S3FileItemDBDriver/S3FileDriver.d.ts +118 -0
- package/api/ORM/drivers/S3FileItemDBDriver.d.ts +71 -0
- package/api/ORM/drivers/common/SupportedTypeInfoORMDBDrivers.d.ts +36 -0
- package/api/ORM/drivers/common/Types.d.ts +202 -0
- package/api/ORM/drivers/common/index.d.ts +2 -0
- package/api/ORM/drivers/index.d.ts +8 -0
- package/api/ORM/getTypeInfoORMIndexingConfigFromTypeInfoMap.d.ts +31 -0
- package/api/ORM/index.d.ts +10 -0
- package/api/ORM/indexing/criteriaToStructuredWhere.d.ts +22 -0
- package/api/Router/AWS.d.ts +80 -0
- package/api/Router/Auth.d.ts +14 -0
- package/api/Router/CORS.d.ts +66 -0
- package/api/Router/Types.d.ts +138 -0
- package/api/Router/index.d.ts +89 -0
- package/api/index.d.ts +72 -6
- package/api/index.js +3551 -1946
- package/app/forms/Engine.d.ts +23 -0
- package/app/forms/UI.d.ts +83 -0
- package/app/forms/core/createAutoField.d.ts +43 -0
- package/app/forms/core/createFormRenderer.d.ts +25 -0
- package/app/forms/core/getFieldKind.d.ts +14 -0
- package/app/forms/core/index.d.ts +11 -0
- package/app/forms/core/mergeSuites.d.ts +23 -0
- package/app/forms/core/resolveSuite.d.ts +15 -0
- package/app/forms/core/types.d.ts +180 -0
- package/app/forms/index.d.ts +9 -0
- package/app/forms/types.d.ts +137 -0
- package/app/helpers/styled.d.ts +3 -0
- package/app/index.d.ts +116 -5
- package/app/index.js +120 -382
- package/app/utils/ApplicationState.d.ts +161 -0
- package/app/utils/ApplicationStateLoader.d.ts +91 -0
- package/app/utils/Controller.d.ts +10 -0
- package/app/utils/Debug.d.ts +14 -0
- package/app/utils/EasyLayout.d.ts +89 -0
- package/app/utils/History.d.ts +165 -0
- package/app/utils/Route.d.ts +207 -0
- package/app/utils/RouteHistory.d.ts +27 -0
- package/app/utils/Service.d.ts +45 -0
- package/app/utils/TypeInfoORMAPIUtils.d.ts +94 -0
- package/app/utils/TypeInfoORMClient.d.ts +104 -0
- package/app/utils/UniversalRouteAdapter.d.ts +73 -0
- package/app/utils/easy-layout/computeAreaBounds.d.ts +5 -0
- package/app/utils/easy-layout/computeTracks.d.ts +16 -0
- package/app/utils/easy-layout/index.d.ts +5 -0
- package/app/utils/easy-layout/parseTemplate.d.ts +12 -0
- package/app/utils/easy-layout/types.d.ts +52 -0
- package/app/utils/easy-layout/validateAreas.d.ts +5 -0
- package/app/utils/index.d.ts +24 -0
- package/build/TypeMapping.d.ts +17 -0
- package/build/TypeParsing.d.ts +10 -0
- package/build/index.d.ts +15 -0
- package/build/index.js +569 -0
- package/chunk-2JDOM6PB.js +138 -0
- package/chunk-3HVYVX3S.js +546 -0
- package/chunk-ATO2455Q.js +258 -0
- package/chunk-BSHQIRBV.js +71 -0
- package/chunk-I2KLQ2HA.js +19 -0
- package/chunk-K4R2PFNG.js +1258 -0
- package/chunk-TJFTWPXQ.js +39 -0
- package/chunk-XHOMAXLR.js +84 -0
- package/common/CommandLine/collectRequiredEnvironmentVariables.d.ts +9 -0
- package/common/CommandLine/index.d.ts +6 -0
- package/common/HelperTypes.d.ts +9 -0
- package/common/IdGeneration/getSimpleId.d.ts +8 -0
- package/common/IdGeneration/index.d.ts +1 -0
- package/common/ItemRelationshipInfoTypes.d.ts +64 -0
- package/common/ItemRelationships/ItemRelationshipValidation.d.ts +21 -0
- package/common/ItemRelationships/index.d.ts +2 -0
- package/common/Logging/Utils.d.ts +10 -0
- package/common/Logging/index.d.ts +1 -0
- package/common/Routing.d.ts +81 -0
- package/common/SearchTypes.d.ts +227 -0
- package/common/SearchUtils.d.ts +55 -0
- package/common/SearchValidation.d.ts +27 -0
- package/common/StringTransformers.d.ts +28 -0
- package/common/Testing/CLI.d.ts +6 -0
- package/common/Testing/Types.d.ts +216 -0
- package/common/Testing/Utils.d.ts +112 -0
- package/common/Testing/index.d.ts +8 -0
- package/common/TypeInfoDataItemUtils.d.ts +39 -0
- package/{Types-C7XjUjoF.d.ts → common/TypeInfoORM/Types.d.ts} +150 -20
- package/common/TypeInfoORM/index.d.ts +3 -0
- package/common/TypeParsing/Constants.d.ts +4 -0
- package/common/TypeParsing/ParsingUtils/Constants.d.ts +8 -0
- package/common/TypeParsing/ParsingUtils/checkType.d.ts +14 -0
- package/common/TypeParsing/ParsingUtils/checkUnionType.d.ts +12 -0
- package/common/TypeParsing/ParsingUtils/extractCommentTags.d.ts +8 -0
- package/common/TypeParsing/ParsingUtils/extractLiteralValues.d.ts +12 -0
- package/common/TypeParsing/ParsingUtils/extractTypeDetails.d.ts +14 -0
- package/common/TypeParsing/ParsingUtils/getPrimaryFieldForTypeInfo.d.ts +18 -0
- package/common/TypeParsing/ParsingUtils/getTypeInfo.d.ts +9 -0
- package/common/TypeParsing/ParsingUtils/getTypeInfoField.d.ts +9 -0
- package/common/TypeParsing/ParsingUtils/getTypeInfoFromAliasType.d.ts +11 -0
- package/common/TypeParsing/ParsingUtils/getTypeInfoFromFieldFilter.d.ts +12 -0
- package/common/TypeParsing/ParsingUtils/getTypeInfoFromTypeAlias.d.ts +11 -0
- package/common/TypeParsing/ParsingUtils/getTypeKeyword.d.ts +9 -0
- package/common/TypeParsing/ParsingUtils/getUnionOrIntersectionTypeInfo.d.ts +11 -0
- package/common/TypeParsing/ParsingUtils/getUnionOrLiteralStringValues.d.ts +8 -0
- package/common/TypeParsing/TypeInfo.d.ts +235 -0
- package/common/TypeParsing/Utils.d.ts +47 -0
- package/common/TypeParsing/Validation.d.ts +327 -0
- package/common/TypeParsing/index.d.ts +8 -0
- package/common/index.d.ts +47 -4
- package/common/index.js +25 -1737
- package/{index-BkFZlfit.d.ts → iac/SimpleCFT.d.ts} +5 -25
- package/iac/index.d.ts +40 -2
- package/iac/index.js +2 -1661
- package/iac/packs/auth.d.ts +131 -0
- package/iac/packs/build/utils.d.ts +289 -0
- package/iac/packs/build.d.ts +92 -0
- package/iac/packs/cdn.d.ts +33 -0
- package/iac/packs/cloud-function.d.ts +67 -0
- package/iac/packs/database.d.ts +32 -0
- package/iac/packs/dns.d.ts +34 -0
- package/iac/packs/file-storage.d.ts +46 -0
- package/iac/packs/gateway.d.ts +82 -0
- package/iac/packs/index.d.ts +60 -1
- package/iac/packs/index.js +391 -594
- package/iac/packs/repo.d.ts +28 -0
- package/iac/packs/ssl-certificate.d.ts +28 -0
- package/iac/types/Constants.d.ts +24 -0
- package/{index-DcvJOZ_c.d.ts → iac/types/IaCTypes.d.ts} +23 -1018
- package/iac/types/Renderers.d.ts +96 -0
- package/iac/types/Types.d.ts +131 -0
- package/iac/types/Utils.d.ts +9 -0
- package/iac/types/generate.d.ts +1 -0
- package/iac/utils/index.d.ts +87 -0
- package/iac/utils/patch-utils.d.ts +66 -0
- package/iac-packs/index.d.ts +6 -0
- package/native/forms/UI.d.ts +73 -0
- package/native/forms/createNativeFormRenderer.d.ts +21 -0
- package/native/forms/index.d.ts +25 -0
- package/native/forms/primitives/index.d.ts +38 -0
- package/native/forms/suite.d.ts +15 -0
- package/native/index.d.ts +19 -0
- package/native/index.js +792 -0
- package/native/testing/react-native.d.ts +46 -0
- package/native/utils/EasyLayout.d.ts +88 -0
- package/native/utils/History.d.ts +124 -0
- package/native/utils/NavButton.d.ts +25 -0
- package/native/utils/Route.d.ts +41 -0
- package/native/utils/index.d.ts +25 -0
- package/package.json +54 -21
- package/web/forms/UI.d.ts +74 -0
- package/web/forms/createWebFormRenderer.d.ts +21 -0
- package/web/forms/index.d.ts +9 -0
- package/web/forms/primitives/index.d.ts +21 -0
- package/web/forms/suite.d.ts +15 -0
- package/web/index.d.ts +15 -0
- package/web/index.js +701 -0
- package/web/utils/EasyLayout.d.ts +47 -0
- package/web/utils/NavLink.d.ts +24 -0
- package/web/utils/Route.d.ts +16 -0
- package/web/utils/index.d.ts +8 -0
- package/SearchTypes-DjN6YQzE.d.ts +0 -577
- package/Validation-CFP59oIP.d.ts +0 -226
- package/index-C3-iD9Mh.d.ts +0 -690
- package/index-CK5Qwvfb.d.ts +0 -5378
- package/index-IokxSNxm.d.ts +0 -745
- package/index.d.ts +0 -13
- package/index.js +0 -11005
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in and custom string transformers for type keywords.
|
|
3
|
+
*/
|
|
4
|
+
import { TypeKeyword } from "./TypeParsing/TypeInfo";
|
|
5
|
+
/**
|
|
6
|
+
* A function that transforms a value into a string.
|
|
7
|
+
*
|
|
8
|
+
* @param value - Value to transform.
|
|
9
|
+
* @returns String representation of the value.
|
|
10
|
+
* */
|
|
11
|
+
export type StringTransformer = (value: any) => string;
|
|
12
|
+
/**
|
|
13
|
+
* A map of string transformers for each type keyword.
|
|
14
|
+
* */
|
|
15
|
+
export declare const STRING_TRANSFORMERS: Record<TypeKeyword, StringTransformer>;
|
|
16
|
+
/**
|
|
17
|
+
* A map of custom string transformers for each custom type.
|
|
18
|
+
* */
|
|
19
|
+
export declare const CUSTOM_STRING_TRANSFORMERS: Record<string, StringTransformer>;
|
|
20
|
+
/**
|
|
21
|
+
* Transform a value into a string based on the type keyword or custom type.
|
|
22
|
+
*
|
|
23
|
+
* @param value - Value to transform.
|
|
24
|
+
* @param typeKeyword - Type keyword used to select the transformer.
|
|
25
|
+
* @param customType - Custom type name, if applicable.
|
|
26
|
+
* @returns String representation for the value.
|
|
27
|
+
* */
|
|
28
|
+
export declare const transformValueToString: (value: any, typeKeyword: TypeKeyword, customType?: string) => string;
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Operations used for comparison during tests.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum TestComparisonOperation {
|
|
5
|
+
/**
|
|
6
|
+
* Strict equality comparison.
|
|
7
|
+
* */
|
|
8
|
+
EQUALS = "===",
|
|
9
|
+
/**
|
|
10
|
+
* Strict inequality comparison.
|
|
11
|
+
* */
|
|
12
|
+
NOT_EQUALS = "!==",
|
|
13
|
+
/**
|
|
14
|
+
* Value is contained in expectation array.
|
|
15
|
+
* */
|
|
16
|
+
IN = "IN",
|
|
17
|
+
/**
|
|
18
|
+
* Array contains the expectation value.
|
|
19
|
+
* */
|
|
20
|
+
ARRAY_CONTAINS = "ARRAY_CONTAINS",
|
|
21
|
+
/**
|
|
22
|
+
* Numeric value is between two bounds.
|
|
23
|
+
* */
|
|
24
|
+
BETWEEN = "BETWEEN",
|
|
25
|
+
/**
|
|
26
|
+
* String contains another string.
|
|
27
|
+
* */
|
|
28
|
+
CONTAINS = "CONTAINS",
|
|
29
|
+
/**
|
|
30
|
+
* Regex match against a pattern.
|
|
31
|
+
* */
|
|
32
|
+
REGEX = "REGEX",
|
|
33
|
+
/**
|
|
34
|
+
* Extended regex match with explicit pattern elements.
|
|
35
|
+
* */
|
|
36
|
+
EXT_REGEX = "EXT_REGEX",
|
|
37
|
+
/**
|
|
38
|
+
* Deep equality using JSON stringification.
|
|
39
|
+
* */
|
|
40
|
+
DEEP_EQUALS = "DEEP_EQUALS",
|
|
41
|
+
/**
|
|
42
|
+
* Array equality using JSON stringification.
|
|
43
|
+
* */
|
|
44
|
+
ARRAY_EQUALS = "ARRAY_EQUALS"
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A pattern definition object for use with extended regex expectations.
|
|
48
|
+
* */
|
|
49
|
+
export type PatternElement = {
|
|
50
|
+
/**
|
|
51
|
+
* Literal pattern segment value.
|
|
52
|
+
* */
|
|
53
|
+
value: string;
|
|
54
|
+
/**
|
|
55
|
+
* Whether to escape regex characters in the value.
|
|
56
|
+
* */
|
|
57
|
+
escaped?: boolean;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* An extended regex expectation with a patter structure, optional flags and
|
|
61
|
+
* escaping properties that allow for clear and explicit declaration of regex
|
|
62
|
+
* patterns in JSON.
|
|
63
|
+
*
|
|
64
|
+
* Used when a `TestCondition` `operation` is `TestComparisonOperation.EXT_REGEX`.
|
|
65
|
+
* */
|
|
66
|
+
export type EXTRegexExpectation = {
|
|
67
|
+
/**
|
|
68
|
+
* Pattern elements to build the regex.
|
|
69
|
+
* */
|
|
70
|
+
pattern: PatternElement[];
|
|
71
|
+
/**
|
|
72
|
+
* Regex flags to apply.
|
|
73
|
+
* */
|
|
74
|
+
flags?: string;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* A regex expectation with a pattern and optional flags.
|
|
78
|
+
*
|
|
79
|
+
* Used when a `TestCondition` `operation` is `TestComparisonOperation.REGEX`.
|
|
80
|
+
* */
|
|
81
|
+
export type RegexExpectation = {
|
|
82
|
+
/**
|
|
83
|
+
* Regex pattern string.
|
|
84
|
+
* */
|
|
85
|
+
pattern: string;
|
|
86
|
+
/**
|
|
87
|
+
* Regex flags to apply.
|
|
88
|
+
* */
|
|
89
|
+
flags?: string;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* A configuration used to acquire conditions from code instead of a JSON array.
|
|
93
|
+
* */
|
|
94
|
+
export type ConditionConfig = {
|
|
95
|
+
/**
|
|
96
|
+
* Relative file path containing the conditions export.
|
|
97
|
+
* */
|
|
98
|
+
file: string;
|
|
99
|
+
/**
|
|
100
|
+
* Export name that contains the conditions array.
|
|
101
|
+
* */
|
|
102
|
+
export: string;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Preparation for a test when some setup is required or a class needs to be instantiated.
|
|
106
|
+
* */
|
|
107
|
+
export type TestSetup = {
|
|
108
|
+
/**
|
|
109
|
+
* Conditions to use for the setup function or constructor.
|
|
110
|
+
* */
|
|
111
|
+
conditions: unknown[] | ConditionConfig;
|
|
112
|
+
/**
|
|
113
|
+
* Export name to call or instantiate for setup.
|
|
114
|
+
* */
|
|
115
|
+
export: string;
|
|
116
|
+
/**
|
|
117
|
+
* Whether to use `new` with the setup export.
|
|
118
|
+
* */
|
|
119
|
+
instantiate?: boolean;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* The basis for a test.
|
|
123
|
+
* */
|
|
124
|
+
export type BaseTest = {
|
|
125
|
+
/**
|
|
126
|
+
* Export name for the test function.
|
|
127
|
+
* */
|
|
128
|
+
export: string;
|
|
129
|
+
/**
|
|
130
|
+
* Optional setup configuration.
|
|
131
|
+
* */
|
|
132
|
+
setup?: TestSetup;
|
|
133
|
+
/**
|
|
134
|
+
* Conditions to pass to the test function.
|
|
135
|
+
* */
|
|
136
|
+
conditions: unknown[] | ConditionConfig;
|
|
137
|
+
/**
|
|
138
|
+
* Allow missing expectation and treat undefined as pass.
|
|
139
|
+
* */
|
|
140
|
+
expectUndefined?: boolean;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* A singular test with specific types of expectations for a given operation.
|
|
144
|
+
* */
|
|
145
|
+
export type Test = BaseTest & ({
|
|
146
|
+
operation?: TestComparisonOperation.EQUALS | TestComparisonOperation.NOT_EQUALS;
|
|
147
|
+
expectation: string | number | boolean | null | undefined;
|
|
148
|
+
} | {
|
|
149
|
+
operation: TestComparisonOperation.IN | TestComparisonOperation.ARRAY_CONTAINS;
|
|
150
|
+
expectation: unknown[];
|
|
151
|
+
} | {
|
|
152
|
+
operation: TestComparisonOperation.BETWEEN;
|
|
153
|
+
expectation: [number, number];
|
|
154
|
+
} | {
|
|
155
|
+
operation: TestComparisonOperation.CONTAINS;
|
|
156
|
+
expectation: string;
|
|
157
|
+
} | {
|
|
158
|
+
operation: TestComparisonOperation.REGEX;
|
|
159
|
+
expectation: RegexExpectation;
|
|
160
|
+
} | {
|
|
161
|
+
operation: TestComparisonOperation.EXT_REGEX;
|
|
162
|
+
expectation: EXTRegexExpectation;
|
|
163
|
+
} | {
|
|
164
|
+
operation: TestComparisonOperation.DEEP_EQUALS;
|
|
165
|
+
expectation: Record<string, unknown>;
|
|
166
|
+
} | {
|
|
167
|
+
operation: TestComparisonOperation.ARRAY_EQUALS;
|
|
168
|
+
expectation: unknown[];
|
|
169
|
+
});
|
|
170
|
+
/**
|
|
171
|
+
* A configuration for a test. Designed to be used in JSON spec files.
|
|
172
|
+
*/
|
|
173
|
+
export type TestConfig = {
|
|
174
|
+
/**
|
|
175
|
+
* Relative module path containing test exports.
|
|
176
|
+
* */
|
|
177
|
+
file: string;
|
|
178
|
+
/**
|
|
179
|
+
* Tests to execute for the module.
|
|
180
|
+
* */
|
|
181
|
+
tests: Test[];
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* A resolved test configuration with the module and tests.
|
|
185
|
+
* */
|
|
186
|
+
export type ResolvedTestConfig = {
|
|
187
|
+
/**
|
|
188
|
+
* Required module with test exports.
|
|
189
|
+
* */
|
|
190
|
+
targetModule: any;
|
|
191
|
+
} & TestConfig;
|
|
192
|
+
/**
|
|
193
|
+
* The results from running one or more tests.
|
|
194
|
+
* */
|
|
195
|
+
export type TestResults = {
|
|
196
|
+
/**
|
|
197
|
+
* Informational messages.
|
|
198
|
+
* */
|
|
199
|
+
messages?: string[];
|
|
200
|
+
/**
|
|
201
|
+
* Generated expectation messages.
|
|
202
|
+
* */
|
|
203
|
+
generated?: string[];
|
|
204
|
+
/**
|
|
205
|
+
* Passed test messages.
|
|
206
|
+
* */
|
|
207
|
+
passes?: string[];
|
|
208
|
+
/**
|
|
209
|
+
* Failed test messages.
|
|
210
|
+
* */
|
|
211
|
+
failures?: string[];
|
|
212
|
+
/**
|
|
213
|
+
* Error messages.
|
|
214
|
+
* */
|
|
215
|
+
errors?: string[];
|
|
216
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
*
|
|
4
|
+
* Helpers for executing JSON spec tests, including expectation generation.
|
|
5
|
+
*/
|
|
6
|
+
import { ConditionConfig, ResolvedTestConfig, Test, TestComparisonOperation, TestConfig, TestResults } from "./Types";
|
|
7
|
+
/**
|
|
8
|
+
* A map of comparison functions for each `TestComparisonOperation`.
|
|
9
|
+
* */
|
|
10
|
+
export declare const OPERATIONS: Record<string, (a: unknown, b: unknown) => boolean>;
|
|
11
|
+
/**
|
|
12
|
+
* Compare a result with an expectation using a specified `TestComparisonOperation`.
|
|
13
|
+
*
|
|
14
|
+
* @param result - Actual test result.
|
|
15
|
+
* @param expectation - Expected value.
|
|
16
|
+
* @param operation - Comparison operation to use.
|
|
17
|
+
* @returns Whether the result matches the expectation.
|
|
18
|
+
* */
|
|
19
|
+
export declare const compare: (result: unknown, expectation: unknown, operation?: TestComparisonOperation) => boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Get the target module for testing from a file being tested.
|
|
22
|
+
*
|
|
23
|
+
* @param testFilePath - Path to the test file.
|
|
24
|
+
* @param targetTestIndex - Index of the test in the test array.
|
|
25
|
+
* @param targetTestExport - Export name for the test.
|
|
26
|
+
* @param conditions - Conditions array or config to load.
|
|
27
|
+
* @param isSetup - Whether the conditions are for setup.
|
|
28
|
+
* @returns Resolved conditions array.
|
|
29
|
+
* */
|
|
30
|
+
export declare const getResolvedConditions: (testFilePath: string, targetTestIndex: number, targetTestExport: string, conditions: unknown[] | ConditionConfig, isSetup?: boolean) => Promise<unknown[]>;
|
|
31
|
+
/**
|
|
32
|
+
* Get the target base instance from a module, for a given test setup.
|
|
33
|
+
*
|
|
34
|
+
* @param testFilePath - Path to the test file.
|
|
35
|
+
* @param targetTestIndex - Index of the test in the test array.
|
|
36
|
+
* @param targetTestExport - Export name for the test.
|
|
37
|
+
* @param test - Test definition.
|
|
38
|
+
* @param module - Required module containing exports.
|
|
39
|
+
* @returns Instance to use for the test function.
|
|
40
|
+
* */
|
|
41
|
+
export declare const getSetupInstance: (testFilePath: string, targetTestIndex: number, targetTestExport: string, test: Test, module: any) => Promise<any>;
|
|
42
|
+
/**
|
|
43
|
+
* Resolve the test function from the target module or setup instance.
|
|
44
|
+
*
|
|
45
|
+
* @param testFilePath - Path to the test file.
|
|
46
|
+
* @param file - Module file defined in the test config.
|
|
47
|
+
* @param targetTestIndex - Index of the test in the test array.
|
|
48
|
+
* @param test - Test definition.
|
|
49
|
+
* @param targetModule - Required module containing exports.
|
|
50
|
+
* @returns Test function to execute.
|
|
51
|
+
*/
|
|
52
|
+
export declare const getTestFunction: (testFilePath: string, file: string, targetTestIndex: number, test: Test, targetModule: any) => Promise<(...args: unknown[]) => Promise<unknown> | unknown>;
|
|
53
|
+
/**
|
|
54
|
+
* Get the test configuration from a test file.
|
|
55
|
+
*
|
|
56
|
+
* @param testFilePath - Path to the test file.
|
|
57
|
+
* @returns Parsed test config.
|
|
58
|
+
* */
|
|
59
|
+
export declare const getTestConfig: (testFilePath: string) => Promise<TestConfig>;
|
|
60
|
+
/**
|
|
61
|
+
* Get the target module for testing from a file being tested.
|
|
62
|
+
*
|
|
63
|
+
* @param testFilePath - Path to the test file.
|
|
64
|
+
* @returns Resolved test config with module and tests.
|
|
65
|
+
* */
|
|
66
|
+
export declare const getResolvedTestConfig: (testFilePath: string) => Promise<ResolvedTestConfig>;
|
|
67
|
+
/**
|
|
68
|
+
* Merge multiple test results into a single result.
|
|
69
|
+
*
|
|
70
|
+
* @param results - Test result sets to merge.
|
|
71
|
+
* @returns Combined test results.
|
|
72
|
+
* */
|
|
73
|
+
export declare const mergeTestResults: (...results: TestResults[]) => TestResults;
|
|
74
|
+
/**
|
|
75
|
+
* Run a test using a test function and a test condition.
|
|
76
|
+
*
|
|
77
|
+
* @param testFilePath - Path to the test file.
|
|
78
|
+
* @param testFunction - Test function to execute.
|
|
79
|
+
* @param test - Test definition.
|
|
80
|
+
* @param index - Test index in the list.
|
|
81
|
+
* @param targetExport - Export name for the test.
|
|
82
|
+
* @param report - Reporter for test results.
|
|
83
|
+
* @returns Resolves when the test completes.
|
|
84
|
+
* */
|
|
85
|
+
export declare const runTest: (testFilePath: string, testFunction: (...args: unknown[]) => Promise<unknown> | unknown, test: Test, index: number, targetExport: string, report: (results: TestResults) => void) => Promise<void>;
|
|
86
|
+
/**
|
|
87
|
+
* Generate tests for a file by running the tests, capturing the current result and storing it as the new expectation.
|
|
88
|
+
*
|
|
89
|
+
* @param testFilePath - Path to the test file.
|
|
90
|
+
* @param report - Reporter for test results.
|
|
91
|
+
* @returns Resolves when generation completes.
|
|
92
|
+
* */
|
|
93
|
+
export declare const generateTestsForFile: (testFilePath: string, report: (results: TestResults) => void) => Promise<void>;
|
|
94
|
+
/**
|
|
95
|
+
* Run the tests for a given test file.
|
|
96
|
+
*
|
|
97
|
+
* The test file content is expected to be a JSON in the structure of a `TestConfig`.
|
|
98
|
+
*
|
|
99
|
+
* @param testFilePath - Path to the test file.
|
|
100
|
+
* @param report - Reporter for test results.
|
|
101
|
+
* @returns Resolves when tests finish.
|
|
102
|
+
* */
|
|
103
|
+
export declare const runTestsForFile: (testFilePath: string, report: (results: TestResults) => void) => Promise<void>;
|
|
104
|
+
/**
|
|
105
|
+
* Run or generate all of the tests in the specified `testPath` glob.
|
|
106
|
+
*
|
|
107
|
+
* @param testFiles - Test file paths to execute.
|
|
108
|
+
* @param generateMode - Whether to generate expectations.
|
|
109
|
+
* @param report - Reporter for test results.
|
|
110
|
+
* @returns Resolves when execution completes.
|
|
111
|
+
* */
|
|
112
|
+
export declare const executeTestingCommand: (testFiles: string[], generateMode: boolean | undefined, report: (results: TestResults) => void) => Promise<void>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
*
|
|
4
|
+
* Helpers for deriving default values from TypeInfo field constraints.
|
|
5
|
+
*/
|
|
6
|
+
import { LiteralValue, TypeInfoField } from "./TypeParsing/TypeInfo";
|
|
7
|
+
/**
|
|
8
|
+
* Supported default value types for a TypeInfo field.
|
|
9
|
+
* */
|
|
10
|
+
export type FieldValueType = LiteralValue | LiteralValue[];
|
|
11
|
+
/**
|
|
12
|
+
* Result describing whether a field has a default value.
|
|
13
|
+
* */
|
|
14
|
+
export type DefaultValueInfo = {
|
|
15
|
+
/**
|
|
16
|
+
* Indicates a default value is present.
|
|
17
|
+
* */
|
|
18
|
+
hasDefaultValue: true;
|
|
19
|
+
/**
|
|
20
|
+
* Default value for the field.
|
|
21
|
+
* */
|
|
22
|
+
defaultValue: FieldValueType;
|
|
23
|
+
} | {
|
|
24
|
+
/**
|
|
25
|
+
* Indicates no default value is present.
|
|
26
|
+
* */
|
|
27
|
+
hasDefaultValue: false;
|
|
28
|
+
/**
|
|
29
|
+
* Always undefined when no default value is present.
|
|
30
|
+
* */
|
|
31
|
+
defaultValue: undefined;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Determine the default value for a TypeInfo field.
|
|
35
|
+
*
|
|
36
|
+
* @param typeInfoField - TypeInfo field metadata to inspect.
|
|
37
|
+
* @returns Default value info for the field.
|
|
38
|
+
*/
|
|
39
|
+
export declare const getDefaultValueInfo: (typeInfoField: TypeInfoField) => DefaultValueInfo;
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import { B as BaseItemRelationshipInfo, L as ListRelationshipsConfig, a as ListItemsResults, I as ItemRelationshipInfo, T as TypeInfoDataItem, b as ListItemsConfig, c as TypeOperation } from './SearchTypes-DjN6YQzE.js';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* @packageDocumentation
|
|
5
3
|
*
|
|
6
4
|
* Shared TypeInfoORM API types, route paths, and error enums used by services
|
|
7
5
|
* and clients.
|
|
8
6
|
*/
|
|
9
|
-
|
|
7
|
+
import { ListItemsConfig, ListItemsResults, ListRelationshipsConfig } from "../SearchTypes";
|
|
8
|
+
import { BaseItemRelationshipInfo, ItemRelationshipInfo } from "../ItemRelationshipInfoTypes";
|
|
9
|
+
import { TypeInfoDataItem, TypeOperation } from "../TypeParsing/TypeInfo";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* The DAC Resource name for item relationships.
|
|
12
12
|
* */
|
|
13
|
-
declare
|
|
13
|
+
export declare const ITEM_RELATIONSHIP_DAC_RESOURCE_NAME = "TYPE_INFO_ORM_ITEM_RELATIONSHIP";
|
|
14
|
+
/**
|
|
15
|
+
* A set of possible operations for an item relationship record.
|
|
16
|
+
* */
|
|
17
|
+
export declare enum RelationshipOperation {
|
|
14
18
|
/**
|
|
15
19
|
* Read relationship info.
|
|
16
20
|
* */
|
|
@@ -27,7 +31,7 @@ declare enum RelationshipOperation {
|
|
|
27
31
|
/**
|
|
28
32
|
* A set groups of possible operations for a type, field value or relationship.
|
|
29
33
|
* */
|
|
30
|
-
declare enum OperationGroup {
|
|
34
|
+
export declare enum OperationGroup {
|
|
31
35
|
/**
|
|
32
36
|
* All possible operations.
|
|
33
37
|
* */
|
|
@@ -44,11 +48,13 @@ declare enum OperationGroup {
|
|
|
44
48
|
/**
|
|
45
49
|
* A set of possible ORM operations.
|
|
46
50
|
* */
|
|
47
|
-
type ORMOperation = TypeOperation | RelationshipOperation | OperationGroup;
|
|
51
|
+
export type ORMOperation = TypeOperation | RelationshipOperation | OperationGroup;
|
|
48
52
|
/**
|
|
49
53
|
* Error types for a TypeInfoORM service.
|
|
54
|
+
*
|
|
55
|
+
* @category ORM
|
|
50
56
|
* */
|
|
51
|
-
declare enum TypeInfoORMServiceError {
|
|
57
|
+
export declare enum TypeInfoORMServiceError {
|
|
52
58
|
/**
|
|
53
59
|
* No data drivers were supplied.
|
|
54
60
|
* */
|
|
@@ -85,6 +91,14 @@ declare enum TypeInfoORMServiceError {
|
|
|
85
91
|
* Operation is not supported.
|
|
86
92
|
* */
|
|
87
93
|
INVALID_OPERATION = "INVALID_OPERATION",
|
|
94
|
+
/**
|
|
95
|
+
* Update operator config is invalid.
|
|
96
|
+
* */
|
|
97
|
+
INVALID_UPDATE_OPERATOR = "INVALID_UPDATE_OPERATOR",
|
|
98
|
+
/**
|
|
99
|
+
* Accessing role is missing when DAC is required.
|
|
100
|
+
* */
|
|
101
|
+
MISSING_ACCESSING_ROLE = "MISSING_ACCESSING_ROLE",
|
|
88
102
|
/**
|
|
89
103
|
* Indexing criteria is not supported.
|
|
90
104
|
* */
|
|
@@ -93,10 +107,6 @@ declare enum TypeInfoORMServiceError {
|
|
|
93
107
|
* Indexing criteria combination is not supported.
|
|
94
108
|
* */
|
|
95
109
|
INDEXING_UNSUPPORTED_COMBINATION = "INDEXING_UNSUPPORTED_COMBINATION",
|
|
96
|
-
/**
|
|
97
|
-
* Required index field is missing.
|
|
98
|
-
* */
|
|
99
|
-
INDEXING_MISSING_INDEX_FIELD = "INDEXING_MISSING_INDEX_FIELD",
|
|
100
110
|
/**
|
|
101
111
|
* Indexing backend dependency is missing.
|
|
102
112
|
* */
|
|
@@ -109,7 +119,7 @@ declare enum TypeInfoORMServiceError {
|
|
|
109
119
|
/**
|
|
110
120
|
* A collection of kebab-case route paths for a TypeInfoORM API.
|
|
111
121
|
* */
|
|
112
|
-
declare enum TypeInfoORMAPIRoutePaths {
|
|
122
|
+
export declare enum TypeInfoORMAPIRoutePaths {
|
|
113
123
|
/**
|
|
114
124
|
* Create item route.
|
|
115
125
|
* */
|
|
@@ -150,7 +160,7 @@ declare enum TypeInfoORMAPIRoutePaths {
|
|
|
150
160
|
/**
|
|
151
161
|
* The results of a delete relationship operation.
|
|
152
162
|
*/
|
|
153
|
-
type DeleteRelationshipResults = {
|
|
163
|
+
export type DeleteRelationshipResults = {
|
|
154
164
|
/**
|
|
155
165
|
* Whether the delete operation succeeded.
|
|
156
166
|
* */
|
|
@@ -161,9 +171,130 @@ type DeleteRelationshipResults = {
|
|
|
161
171
|
remainingItemsExist: boolean;
|
|
162
172
|
};
|
|
163
173
|
/**
|
|
164
|
-
*
|
|
165
|
-
|
|
166
|
-
type
|
|
174
|
+
* Access context for a single ORM call.
|
|
175
|
+
*/
|
|
176
|
+
export type TypeInfoORMContext = {
|
|
177
|
+
/**
|
|
178
|
+
* Role identifier for the caller.
|
|
179
|
+
*
|
|
180
|
+
* Required when DAC is enabled; ignored when DAC is disabled.
|
|
181
|
+
*/
|
|
182
|
+
accessingRoleId: string;
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Supported numeric field update operators.
|
|
186
|
+
*/
|
|
187
|
+
export declare const TypeInfoORMUpdateOperators: {
|
|
188
|
+
readonly NUMBER: {
|
|
189
|
+
readonly INCREMENT: "INCREMENT";
|
|
190
|
+
readonly DECREMENT: "DECREMENT";
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* Supported numeric field update operator values.
|
|
195
|
+
*/
|
|
196
|
+
export type TypeInfoORMNumberFieldUpdateOperator = (typeof TypeInfoORMUpdateOperators.NUMBER)[keyof typeof TypeInfoORMUpdateOperators.NUMBER];
|
|
197
|
+
/**
|
|
198
|
+
* Supported field update operator values.
|
|
199
|
+
*/
|
|
200
|
+
export type TypeInfoORMFieldUpdateOperator = TypeInfoORMNumberFieldUpdateOperator;
|
|
201
|
+
/**
|
|
202
|
+
* Optional config for TypeInfo ORM update calls.
|
|
203
|
+
*/
|
|
204
|
+
export type TypeInfoORMUpdateConfig = {
|
|
205
|
+
/**
|
|
206
|
+
* Optional per-field operator map applied during update.
|
|
207
|
+
*/
|
|
208
|
+
fieldOperators?: Record<string, TypeInfoORMFieldUpdateOperator>;
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* Server-side TypeInfoORM API contract.
|
|
212
|
+
*
|
|
213
|
+
* Methods that perform DAC-sensitive work may accept
|
|
214
|
+
* `context?: TypeInfoORMContext`.
|
|
215
|
+
*/
|
|
216
|
+
export type TypeInfoORMAPI = {
|
|
217
|
+
/**
|
|
218
|
+
* Create a relationship record.
|
|
219
|
+
*
|
|
220
|
+
* @param relationshipItem - Relationship payload to create.
|
|
221
|
+
* @returns Whether the create succeeded.
|
|
222
|
+
*/
|
|
223
|
+
createRelationship: (relationshipItem: BaseItemRelationshipInfo, context?: TypeInfoORMContext) => Promise<boolean>;
|
|
224
|
+
/**
|
|
225
|
+
* Delete a relationship record.
|
|
226
|
+
*
|
|
227
|
+
* @param relationshipItem - Relationship payload to delete.
|
|
228
|
+
* @returns Results describing deletion outcome.
|
|
229
|
+
*/
|
|
230
|
+
deleteRelationship: (relationshipItem: BaseItemRelationshipInfo, context?: TypeInfoORMContext) => Promise<DeleteRelationshipResults>;
|
|
231
|
+
/**
|
|
232
|
+
* List relationships matching the query.
|
|
233
|
+
*
|
|
234
|
+
* @param config - Relationship list configuration.
|
|
235
|
+
* @returns Relationship list results.
|
|
236
|
+
*/
|
|
237
|
+
listRelationships: (config: ListRelationshipsConfig, context?: TypeInfoORMContext) => Promise<ListItemsResults<ItemRelationshipInfo>>;
|
|
238
|
+
/**
|
|
239
|
+
* List related items for a relationship query.
|
|
240
|
+
*
|
|
241
|
+
* @param config - Relationship list configuration.
|
|
242
|
+
* @param selectedFields - Optional fields to project.
|
|
243
|
+
* @returns Related item list results.
|
|
244
|
+
*/
|
|
245
|
+
listRelatedItems: (config: ListRelationshipsConfig, selectedFields?: (keyof TypeInfoDataItem)[], context?: TypeInfoORMContext) => Promise<ListItemsResults<Partial<TypeInfoDataItem>>>;
|
|
246
|
+
/**
|
|
247
|
+
* Create an item.
|
|
248
|
+
*
|
|
249
|
+
* @param typeName - Type name to create.
|
|
250
|
+
* @param item - Item payload to create.
|
|
251
|
+
* @returns The created item result.
|
|
252
|
+
*/
|
|
253
|
+
create: (typeName: string, item: TypeInfoDataItem) => Promise<any>;
|
|
254
|
+
/**
|
|
255
|
+
* Read an item by primary field value.
|
|
256
|
+
*
|
|
257
|
+
* @param typeName - Type name to read.
|
|
258
|
+
* @param primaryFieldValue - Primary field value to lookup.
|
|
259
|
+
* @param selectedFields - Optional fields to project.
|
|
260
|
+
* @returns Retrieved item data.
|
|
261
|
+
*/
|
|
262
|
+
read: (typeName: string, primaryFieldValue: any, selectedFields?: (keyof TypeInfoDataItem)[], context?: TypeInfoORMContext) => Promise<Partial<TypeInfoDataItem>>;
|
|
263
|
+
/**
|
|
264
|
+
* Update an item.
|
|
265
|
+
*
|
|
266
|
+
* @param typeName - Type name to update.
|
|
267
|
+
* @param item - Updated item payload.
|
|
268
|
+
* @param updateConfig - Optional per-field operator config.
|
|
269
|
+
* @returns Whether the update succeeded.
|
|
270
|
+
*/
|
|
271
|
+
update: (typeName: string, item: TypeInfoDataItem, updateConfig?: TypeInfoORMUpdateConfig, context?: TypeInfoORMContext) => Promise<boolean>;
|
|
272
|
+
/**
|
|
273
|
+
* Delete an item by primary field value.
|
|
274
|
+
*
|
|
275
|
+
* @param typeName - Type name to delete.
|
|
276
|
+
* @param primaryFieldValue - Primary field value to delete.
|
|
277
|
+
* @returns Whether the delete succeeded.
|
|
278
|
+
*/
|
|
279
|
+
delete: (typeName: string, primaryFieldValue: any, context?: TypeInfoORMContext) => Promise<boolean>;
|
|
280
|
+
/**
|
|
281
|
+
* List items matching the configuration.
|
|
282
|
+
*
|
|
283
|
+
* @param typeName - Type name to list.
|
|
284
|
+
* @param config - List configuration.
|
|
285
|
+
* @param selectedFields - Optional fields to project.
|
|
286
|
+
* @returns List results.
|
|
287
|
+
*/
|
|
288
|
+
list: (typeName: string, config: ListItemsConfig, selectedFields?: (keyof TypeInfoDataItem)[], context?: TypeInfoORMContext) => Promise<ListItemsResults<Partial<TypeInfoDataItem>>>;
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* Client-safe TypeInfoORM API shape derived from {@link TypeInfoORMAPI}.
|
|
292
|
+
*
|
|
293
|
+
* This type is intentionally explicit and does not include any
|
|
294
|
+
* `context?: TypeInfoORMContext` arguments so app-side callers cannot pass
|
|
295
|
+
* server DAC context.
|
|
296
|
+
*/
|
|
297
|
+
export type TypeInfoORMClientAPI = {
|
|
167
298
|
/**
|
|
168
299
|
* Create a relationship record.
|
|
169
300
|
*
|
|
@@ -215,9 +346,10 @@ type TypeInfoORMAPI = {
|
|
|
215
346
|
*
|
|
216
347
|
* @param typeName - Type name to update.
|
|
217
348
|
* @param item - Updated item payload.
|
|
349
|
+
* @param updateConfig - Optional per-field operator config.
|
|
218
350
|
* @returns Whether the update succeeded.
|
|
219
351
|
*/
|
|
220
|
-
update: (typeName: string, item: TypeInfoDataItem) => Promise<boolean>;
|
|
352
|
+
update: (typeName: string, item: TypeInfoDataItem, updateConfig?: TypeInfoORMUpdateConfig) => Promise<boolean>;
|
|
221
353
|
/**
|
|
222
354
|
* Delete an item by primary field value.
|
|
223
355
|
*
|
|
@@ -236,5 +368,3 @@ type TypeInfoORMAPI = {
|
|
|
236
368
|
*/
|
|
237
369
|
list: (typeName: string, config: ListItemsConfig, selectedFields?: (keyof TypeInfoDataItem)[]) => Promise<ListItemsResults<Partial<TypeInfoDataItem>>>;
|
|
238
370
|
};
|
|
239
|
-
|
|
240
|
-
export { type DeleteRelationshipResults as D, type ORMOperation as O, RelationshipOperation as R, type TypeInfoORMAPI as T, TypeInfoORMServiceError as a, TypeInfoORMAPIRoutePaths as b };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TypeNode } from "typescript";
|
|
2
|
+
import { LiteralValue, TypeKeyword } from "../TypeInfo";
|
|
3
|
+
/**
|
|
4
|
+
* Inspect a TypeScript type node to determine type metadata.
|
|
5
|
+
*
|
|
6
|
+
* @param node - AST type node to inspect.
|
|
7
|
+
* @returns Type metadata including reference, array, keyword, and options.
|
|
8
|
+
*/
|
|
9
|
+
export declare const checkType: (node: TypeNode) => {
|
|
10
|
+
typeReference?: string | undefined;
|
|
11
|
+
isArray?: boolean;
|
|
12
|
+
typeKeyword?: TypeKeyword;
|
|
13
|
+
options?: LiteralValue[] | undefined;
|
|
14
|
+
};
|