@skmtc/core 0.0.796 → 0.0.798
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/esm/app/validate.d.ts +32 -0
- package/esm/app/validate.d.ts.map +1 -1
- package/esm/app/validate.js +32 -0
- package/esm/context/CoreContext.d.ts +147 -2
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/CoreContext.js +87 -0
- package/esm/context/GenerateContext.d.ts +180 -0
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +25 -0
- package/esm/context/ParseContext.d.ts +6 -0
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/ParseContext.js +6 -0
- package/esm/dsl/constants.d.ts +28 -0
- package/esm/dsl/constants.d.ts.map +1 -1
- package/esm/dsl/constants.js +28 -0
- package/esm/oas/_helpers/parseDefault.d.ts +148 -0
- package/esm/oas/_helpers/parseDefault.d.ts.map +1 -1
- package/esm/oas/_helpers/parseDefault.js +128 -0
- package/esm/oas/_helpers/parseEnum.d.ts +124 -0
- package/esm/oas/_helpers/parseEnum.d.ts.map +1 -1
- package/esm/oas/_helpers/parseEnum.js +104 -0
- package/esm/oas/_helpers/parseExample.d.ts +107 -0
- package/esm/oas/_helpers/parseExample.d.ts.map +1 -1
- package/esm/oas/_helpers/parseExample.js +87 -0
- package/esm/oas/_helpers/parseFormat.d.ts +154 -0
- package/esm/oas/_helpers/parseFormat.d.ts.map +1 -1
- package/esm/oas/_helpers/parseFormat.js +138 -0
- package/esm/oas/_helpers/parseNullable.d.ts +127 -0
- package/esm/oas/_helpers/parseNullable.d.ts.map +1 -1
- package/esm/oas/_helpers/parseNullable.js +113 -0
- package/esm/oas/example/toExamplesV3.d.ts +39 -0
- package/esm/oas/example/toExamplesV3.d.ts.map +1 -1
- package/esm/oas/example/toExamplesV3.js +29 -0
- package/esm/oas/object/Object.d.ts +6 -0
- package/esm/oas/object/Object.d.ts.map +1 -1
- package/esm/oas/object/Object.js +6 -0
- package/esm/oas/operation/Operation.d.ts +34 -0
- package/esm/oas/operation/Operation.d.ts.map +1 -1
- package/esm/oas/operation/Operation.js +14 -0
- package/esm/oas/parameter/Parameter.d.ts +3 -0
- package/esm/oas/parameter/Parameter.d.ts.map +1 -1
- package/esm/oas/parameter/Parameter.js +3 -0
- package/esm/oas/ref/ref-types.d.ts +42 -0
- package/esm/oas/ref/ref-types.d.ts.map +1 -1
- package/esm/oas/ref/ref-types.js +9 -0
- package/esm/oas/securitySchemes/security-scheme-types.d.ts +63 -0
- package/esm/oas/securitySchemes/security-scheme-types.d.ts.map +1 -1
- package/esm/oas/securitySchemes/security-scheme-types.js +15 -0
- package/esm/run/toV3JsonDocument.d.ts +90 -0
- package/esm/run/toV3JsonDocument.d.ts.map +1 -1
- package/esm/run/toV3JsonDocument.js +84 -0
- package/esm/types/Results.d.ts +32 -0
- package/esm/types/Results.d.ts.map +1 -1
- package/esm/types/Results.js +12 -0
- package/package.json +1 -1
- package/script/app/validate.d.ts +32 -0
- package/script/app/validate.d.ts.map +1 -1
- package/script/app/validate.js +32 -0
- package/script/context/CoreContext.d.ts +147 -2
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/CoreContext.js +87 -0
- package/script/context/GenerateContext.d.ts +180 -0
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +25 -0
- package/script/context/ParseContext.d.ts +6 -0
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/ParseContext.js +6 -0
- package/script/dsl/constants.d.ts +28 -0
- package/script/dsl/constants.d.ts.map +1 -1
- package/script/dsl/constants.js +28 -0
- package/script/oas/_helpers/parseDefault.d.ts +148 -0
- package/script/oas/_helpers/parseDefault.d.ts.map +1 -1
- package/script/oas/_helpers/parseDefault.js +128 -0
- package/script/oas/_helpers/parseEnum.d.ts +124 -0
- package/script/oas/_helpers/parseEnum.d.ts.map +1 -1
- package/script/oas/_helpers/parseEnum.js +104 -0
- package/script/oas/_helpers/parseExample.d.ts +107 -0
- package/script/oas/_helpers/parseExample.d.ts.map +1 -1
- package/script/oas/_helpers/parseExample.js +87 -0
- package/script/oas/_helpers/parseFormat.d.ts +154 -0
- package/script/oas/_helpers/parseFormat.d.ts.map +1 -1
- package/script/oas/_helpers/parseFormat.js +138 -0
- package/script/oas/_helpers/parseNullable.d.ts +127 -0
- package/script/oas/_helpers/parseNullable.d.ts.map +1 -1
- package/script/oas/_helpers/parseNullable.js +113 -0
- package/script/oas/example/toExamplesV3.d.ts +39 -0
- package/script/oas/example/toExamplesV3.d.ts.map +1 -1
- package/script/oas/example/toExamplesV3.js +29 -0
- package/script/oas/object/Object.d.ts +6 -0
- package/script/oas/object/Object.d.ts.map +1 -1
- package/script/oas/object/Object.js +6 -0
- package/script/oas/operation/Operation.d.ts +34 -0
- package/script/oas/operation/Operation.d.ts.map +1 -1
- package/script/oas/operation/Operation.js +14 -0
- package/script/oas/parameter/Parameter.d.ts +3 -0
- package/script/oas/parameter/Parameter.d.ts.map +1 -1
- package/script/oas/parameter/Parameter.js +3 -0
- package/script/oas/ref/ref-types.d.ts +42 -0
- package/script/oas/ref/ref-types.d.ts.map +1 -1
- package/script/oas/ref/ref-types.js +9 -0
- package/script/oas/securitySchemes/security-scheme-types.d.ts +63 -0
- package/script/oas/securitySchemes/security-scheme-types.d.ts.map +1 -1
- package/script/oas/securitySchemes/security-scheme-types.js +15 -0
- package/script/run/toV3JsonDocument.d.ts +90 -0
- package/script/run/toV3JsonDocument.d.ts.map +1 -1
- package/script/run/toV3JsonDocument.js +84 -0
- package/script/types/Results.d.ts +32 -0
- package/script/types/Results.d.ts.map +1 -1
- package/script/types/Results.js +12 -0
|
@@ -30,76 +30,231 @@ type ConstructorArgs = {
|
|
|
30
30
|
captureCurrentResult: (result: ResultType) => void;
|
|
31
31
|
toGeneratorConfigMap: <EnrichmentType = undefined>() => GeneratorsMapContainer<EnrichmentType>;
|
|
32
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* Arguments for picking a specific export from a generator module.
|
|
35
|
+
*
|
|
36
|
+
* Used to select and configure specific exports from generator modules
|
|
37
|
+
* during the artifact generation process.
|
|
38
|
+
*/
|
|
33
39
|
export type PickArgs = {
|
|
40
|
+
/** The name of the export to pick from the generator module */
|
|
34
41
|
name: string;
|
|
42
|
+
/** The file path where the export should be made available */
|
|
35
43
|
exportPath: string;
|
|
36
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* Arguments for registering a JSON file in the generation context.
|
|
47
|
+
*
|
|
48
|
+
* Used to register JSON configuration files, manifests, or other JSON
|
|
49
|
+
* data that should be included in the generated output artifacts.
|
|
50
|
+
*/
|
|
37
51
|
export type RegisterJsonArgs = {
|
|
52
|
+
/** The destination file path where the JSON should be written */
|
|
38
53
|
destinationPath: string;
|
|
54
|
+
/** The JSON object to write to the file */
|
|
39
55
|
json: Record<string, unknown>;
|
|
40
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* Arguments for applying package imports to a generated file.
|
|
59
|
+
*
|
|
60
|
+
* Used to configure import statements and dependencies when generating
|
|
61
|
+
* code files that need to reference external packages or modules.
|
|
62
|
+
*/
|
|
41
63
|
export type ApplyPackageImportsArgs = {
|
|
64
|
+
/** The destination file path where imports should be applied */
|
|
42
65
|
destinationPath: string;
|
|
66
|
+
/** The export path for the module being imported */
|
|
43
67
|
exportPath: string;
|
|
44
68
|
};
|
|
69
|
+
/**
|
|
70
|
+
* Base arguments for registering generated content in the generation context.
|
|
71
|
+
*
|
|
72
|
+
* Provides the fundamental configuration options for registering imports,
|
|
73
|
+
* re-exports, and definitions that will be included in generated files.
|
|
74
|
+
*/
|
|
45
75
|
export type BaseRegisterArgs = {
|
|
76
|
+
/** Import statements to include, organized by module path */
|
|
46
77
|
imports?: Record<string, ImportNameArg[]>;
|
|
78
|
+
/** Re-export statements to include, organized by module path */
|
|
47
79
|
reExports?: Record<string, Identifier[]>;
|
|
80
|
+
/** Definition objects to include in the generated content */
|
|
48
81
|
definitions?: (Definition | undefined)[];
|
|
49
82
|
};
|
|
83
|
+
/**
|
|
84
|
+
* Arguments for registering generated content with a specific destination.
|
|
85
|
+
*
|
|
86
|
+
* Extends BaseRegisterArgs to include a destination path, allowing content
|
|
87
|
+
* to be registered and associated with a specific output file location.
|
|
88
|
+
*/
|
|
50
89
|
export type RegisterArgs = {
|
|
90
|
+
/** Import statements to include, organized by module path */
|
|
51
91
|
imports?: Record<string, ImportNameArg[]>;
|
|
92
|
+
/** Re-export statements to include, organized by module path */
|
|
52
93
|
reExports?: Record<string, Identifier[]>;
|
|
94
|
+
/** Definition objects to include in the generated content */
|
|
53
95
|
definitions?: (Definition | undefined)[];
|
|
96
|
+
/** The destination file path where the content should be registered */
|
|
54
97
|
destinationPath: string;
|
|
55
98
|
};
|
|
99
|
+
/**
|
|
100
|
+
* Arguments for creating and registering a definition from a schema.
|
|
101
|
+
*
|
|
102
|
+
* Used to transform OpenAPI schema objects into code definitions and
|
|
103
|
+
* register them in the generation context for output file creation.
|
|
104
|
+
*
|
|
105
|
+
* @template Schema - The schema type extending SchemaType
|
|
106
|
+
*/
|
|
56
107
|
export type CreateAndRegisterDefinition<Schema extends SchemaType> = {
|
|
108
|
+
/** The OpenAPI schema to transform into a definition */
|
|
57
109
|
schema: Schema;
|
|
110
|
+
/** The identifier for the generated definition */
|
|
58
111
|
identifier: Identifier;
|
|
112
|
+
/** The destination file path where the definition should be registered */
|
|
59
113
|
destinationPath: string;
|
|
114
|
+
/** Function to transform the schema into a generated value */
|
|
60
115
|
schemaToValueFn: SchemaToValueFn;
|
|
116
|
+
/** Optional root reference name for the schema */
|
|
61
117
|
rootRef?: RefName;
|
|
118
|
+
/** Whether to exclude this definition from exports */
|
|
62
119
|
noExport?: boolean;
|
|
63
120
|
};
|
|
121
|
+
/**
|
|
122
|
+
* Arguments for defining and registering a value in the generation context.
|
|
123
|
+
*
|
|
124
|
+
* Used to create definitions from pre-generated values and register them
|
|
125
|
+
* in the generation context for inclusion in output files.
|
|
126
|
+
*
|
|
127
|
+
* @template V - The generated value type extending GeneratedValue
|
|
128
|
+
*/
|
|
64
129
|
export type DefineAndRegisterArgs<V extends GeneratedValue> = {
|
|
130
|
+
/** The identifier for the definition */
|
|
65
131
|
identifier: Identifier;
|
|
132
|
+
/** The generated value to define */
|
|
66
133
|
value: V;
|
|
134
|
+
/** The destination file path where the definition should be registered */
|
|
67
135
|
destinationPath: string;
|
|
136
|
+
/** Whether to exclude this definition from exports */
|
|
68
137
|
noExport?: boolean;
|
|
69
138
|
};
|
|
139
|
+
/**
|
|
140
|
+
* Arguments for retrieving operation-specific settings.
|
|
141
|
+
*
|
|
142
|
+
* Used to get generator-specific configuration for a particular
|
|
143
|
+
* OpenAPI operation based on its path and HTTP method.
|
|
144
|
+
*/
|
|
70
145
|
export type GetOperationSettingsArgs = {
|
|
146
|
+
/** The ID of the generator requesting settings */
|
|
71
147
|
generatorId: string;
|
|
148
|
+
/** The API path for the operation */
|
|
72
149
|
path: string;
|
|
150
|
+
/** The HTTP method for the operation */
|
|
73
151
|
method: Method;
|
|
74
152
|
};
|
|
153
|
+
/**
|
|
154
|
+
* Arguments for adding render dependencies for an operation.
|
|
155
|
+
*
|
|
156
|
+
* Used to specify additional dependencies that should be included
|
|
157
|
+
* when rendering code for a specific OpenAPI operation.
|
|
158
|
+
*/
|
|
75
159
|
export type AddRenderDependencyArgs = {
|
|
160
|
+
/** The ID of the generator adding dependencies */
|
|
76
161
|
generatorId: string;
|
|
162
|
+
/** The OpenAPI operation requiring dependencies */
|
|
77
163
|
operation: OasOperation;
|
|
164
|
+
/** Array of dependency names or paths to include */
|
|
78
165
|
dependencies: string[];
|
|
79
166
|
};
|
|
167
|
+
/**
|
|
168
|
+
* Arguments for retrieving model-specific settings.
|
|
169
|
+
*
|
|
170
|
+
* Used to get generator-specific configuration for a particular
|
|
171
|
+
* OpenAPI model based on its reference name.
|
|
172
|
+
*/
|
|
80
173
|
export type ToModelSettingsArgs = {
|
|
174
|
+
/** The ID of the generator requesting model settings */
|
|
81
175
|
generatorId: string;
|
|
176
|
+
/** The reference name of the model */
|
|
82
177
|
refName: RefName;
|
|
83
178
|
};
|
|
179
|
+
/**
|
|
180
|
+
* Options for inserting an operation into the generation context.
|
|
181
|
+
*
|
|
182
|
+
* Configures how an OpenAPI operation should be processed and
|
|
183
|
+
* included in the generated code output.
|
|
184
|
+
*
|
|
185
|
+
* @template T - The generation type extending GenerationType
|
|
186
|
+
*/
|
|
84
187
|
export type InsertOperationOptions<T extends GenerationType> = {
|
|
188
|
+
/** Whether to exclude this operation from exports */
|
|
85
189
|
noExport?: boolean;
|
|
190
|
+
/** The type of generation to apply */
|
|
86
191
|
generation?: T;
|
|
192
|
+
/** Custom destination path for the operation */
|
|
87
193
|
destinationPath?: string;
|
|
88
194
|
};
|
|
195
|
+
/**
|
|
196
|
+
* Arguments for inserting a normalized model into the generation context.
|
|
197
|
+
*
|
|
198
|
+
* Used to process and register OpenAPI schema objects as normalized
|
|
199
|
+
* model definitions with fallback naming when schema names are unavailable.
|
|
200
|
+
*
|
|
201
|
+
* @template Schema - The schema type (OasSchema, OasRef, or OasVoid)
|
|
202
|
+
*/
|
|
89
203
|
export type InsertNormalisedModelArgs<Schema extends OasSchema | OasRef<'schema'> | OasVoid> = {
|
|
204
|
+
/** Fallback name to use if the schema doesn't have a name */
|
|
90
205
|
fallbackName: string;
|
|
206
|
+
/** The OpenAPI schema to normalize and insert */
|
|
91
207
|
schema: Schema;
|
|
208
|
+
/** The destination file path for the model */
|
|
92
209
|
destinationPath: string;
|
|
93
210
|
};
|
|
211
|
+
/**
|
|
212
|
+
* Options for inserting a normalized model.
|
|
213
|
+
*
|
|
214
|
+
* Configures how a normalized model should be processed and
|
|
215
|
+
* included in the generated code output.
|
|
216
|
+
*/
|
|
94
217
|
export type InsertNormalisedModelOptions = {
|
|
218
|
+
/** Whether to exclude this model from exports */
|
|
95
219
|
noExport?: boolean;
|
|
96
220
|
};
|
|
221
|
+
/**
|
|
222
|
+
* Return type for inserting a normalized model.
|
|
223
|
+
*
|
|
224
|
+
* Provides type-safe return values based on the schema type being processed.
|
|
225
|
+
* Returns different Definition types depending on whether the schema is a
|
|
226
|
+
* reference or a concrete schema.
|
|
227
|
+
*
|
|
228
|
+
* @template V - The generated value type
|
|
229
|
+
* @template Schema - The schema type being processed
|
|
230
|
+
*/
|
|
97
231
|
export type InsertNormalisedModelReturn<V extends GeneratedValue, Schema extends OasSchema | OasRef<'schema'> | OasVoid> = Schema extends OasRef<'schema'> ? Definition<V> : Definition<TypeSystemOutput<SchemaToNonRef<Schema>['type']>>;
|
|
232
|
+
/**
|
|
233
|
+
* Options for inserting a model into the generation context.
|
|
234
|
+
*
|
|
235
|
+
* Configures how a model should be processed and included in
|
|
236
|
+
* the generated code output.
|
|
237
|
+
*
|
|
238
|
+
* @template T - The generation type extending GenerationType
|
|
239
|
+
*/
|
|
98
240
|
export type InsertModelOptions<T extends GenerationType> = {
|
|
241
|
+
/** Whether to exclude this model from exports */
|
|
99
242
|
noExport?: boolean;
|
|
243
|
+
/** The type of generation to apply */
|
|
100
244
|
generation?: T;
|
|
245
|
+
/** Custom destination path for the model */
|
|
101
246
|
destinationPath?: string;
|
|
102
247
|
};
|
|
248
|
+
/**
|
|
249
|
+
* Return type for insert operations in the generation context.
|
|
250
|
+
*
|
|
251
|
+
* Represents the result of inserting content into the generation
|
|
252
|
+
* context, providing type-safe access to the inserted content.
|
|
253
|
+
*
|
|
254
|
+
* @template V - The generated value type
|
|
255
|
+
* @template T - The generation type
|
|
256
|
+
* @template EnrichmentType - The enrichment data type
|
|
257
|
+
*/
|
|
103
258
|
export type InsertReturn<V extends GeneratedValue, T extends GenerationType, EnrichmentType> = Inserted<V, T, EnrichmentType>;
|
|
104
259
|
type ToOperationSettingsArgs<V, EnrichmentType = undefined> = {
|
|
105
260
|
operation: OasOperation;
|
|
@@ -211,12 +366,19 @@ type GenerateResult = {
|
|
|
211
366
|
*/
|
|
212
367
|
export declare class GenerateContext {
|
|
213
368
|
#private;
|
|
369
|
+
/** The parsed OpenAPI document being processed */
|
|
214
370
|
oasDocument: OasDocument;
|
|
371
|
+
/** Client settings for customization (optional) */
|
|
215
372
|
settings: ClientSettings | undefined;
|
|
373
|
+
/** Logger instance for tracking generation progress */
|
|
216
374
|
logger: log.Logger;
|
|
375
|
+
/** Function to capture processing results at current stack position */
|
|
217
376
|
captureCurrentResult: (result: ResultType) => void;
|
|
377
|
+
/** Function that returns the generator configuration map */
|
|
218
378
|
toGeneratorConfigMap: <EnrichmentType = undefined>() => GeneratorsMapContainer<EnrichmentType>;
|
|
379
|
+
/** Stack trail for tracking current processing context */
|
|
219
380
|
stackTrail: StackTrail;
|
|
381
|
+
/** Tracking model nesting depth to prevent infinite recursion */
|
|
220
382
|
modelDepth: Record<string, number>;
|
|
221
383
|
constructor({ oasDocument, settings, logger, captureCurrentResult, stackTrail, toGeneratorConfigMap }: ConstructorArgs);
|
|
222
384
|
/**
|
|
@@ -316,11 +478,29 @@ type ToOperationSourceArgs = {
|
|
|
316
478
|
operation: OasOperation;
|
|
317
479
|
generatorId: string;
|
|
318
480
|
};
|
|
481
|
+
/**
|
|
482
|
+
* Creates an OperationSource from an operation and generator ID.
|
|
483
|
+
*
|
|
484
|
+
* Transforms operation and generator information into a source descriptor
|
|
485
|
+
* that can be used for tracking operation origins in the generation pipeline.
|
|
486
|
+
*
|
|
487
|
+
* @param args - Arguments containing operation and generator ID
|
|
488
|
+
* @returns OperationSource descriptor for the operation
|
|
489
|
+
*/
|
|
319
490
|
export declare const toOperationSource: ({ operation, generatorId }: ToOperationSourceArgs) => OperationSource;
|
|
320
491
|
type ToModelSourceArgs = {
|
|
321
492
|
refName: RefName;
|
|
322
493
|
generatorId: string;
|
|
323
494
|
};
|
|
495
|
+
/**
|
|
496
|
+
* Creates a ModelSource from a reference name and generator ID.
|
|
497
|
+
*
|
|
498
|
+
* Transforms model reference and generator information into a source descriptor
|
|
499
|
+
* that can be used for tracking model origins in the generation pipeline.
|
|
500
|
+
*
|
|
501
|
+
* @param args - Arguments containing reference name and generator ID
|
|
502
|
+
* @returns ModelSource descriptor for the model
|
|
503
|
+
*/
|
|
324
504
|
export declare const toModelSource: ({ refName, generatorId }: ToModelSourceArgs) => ModelSource;
|
|
325
505
|
export {};
|
|
326
506
|
//# sourceMappingURL=GenerateContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenerateContext.d.ts","sourceRoot":"","sources":["../../src/context/GenerateContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,sBAAsB,CAAA;AACjG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,EAAmB,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACrF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAGzE,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,KAAK,KAAK,GAAG,MAAM,yCAAyC,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,E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AAE,IAAI,EAAE,UAAU,EAAE,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS;CAOvE;AAED,KAAK,qBAAqB,GAAG;IAC3B,SAAS,EAAE,YAAY,CAAA;IACvB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,GAAI,4BAG/B,qBAAqB,KAAG,eAKzB,CAAA;AAEF,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,GAAI,0BAA0B,iBAAiB,KAAG,WAI1E,CAAA"}
|
|
@@ -163,42 +163,49 @@ class GenerateContext {
|
|
|
163
163
|
_GenerateContext_files.set(this, void 0);
|
|
164
164
|
_GenerateContext_previews.set(this, void 0);
|
|
165
165
|
_GenerateContext_mappings.set(this, void 0);
|
|
166
|
+
/** The parsed OpenAPI document being processed */
|
|
166
167
|
Object.defineProperty(this, "oasDocument", {
|
|
167
168
|
enumerable: true,
|
|
168
169
|
configurable: true,
|
|
169
170
|
writable: true,
|
|
170
171
|
value: void 0
|
|
171
172
|
});
|
|
173
|
+
/** Client settings for customization (optional) */
|
|
172
174
|
Object.defineProperty(this, "settings", {
|
|
173
175
|
enumerable: true,
|
|
174
176
|
configurable: true,
|
|
175
177
|
writable: true,
|
|
176
178
|
value: void 0
|
|
177
179
|
});
|
|
180
|
+
/** Logger instance for tracking generation progress */
|
|
178
181
|
Object.defineProperty(this, "logger", {
|
|
179
182
|
enumerable: true,
|
|
180
183
|
configurable: true,
|
|
181
184
|
writable: true,
|
|
182
185
|
value: void 0
|
|
183
186
|
});
|
|
187
|
+
/** Function to capture processing results at current stack position */
|
|
184
188
|
Object.defineProperty(this, "captureCurrentResult", {
|
|
185
189
|
enumerable: true,
|
|
186
190
|
configurable: true,
|
|
187
191
|
writable: true,
|
|
188
192
|
value: void 0
|
|
189
193
|
});
|
|
194
|
+
/** Function that returns the generator configuration map */
|
|
190
195
|
Object.defineProperty(this, "toGeneratorConfigMap", {
|
|
191
196
|
enumerable: true,
|
|
192
197
|
configurable: true,
|
|
193
198
|
writable: true,
|
|
194
199
|
value: void 0
|
|
195
200
|
});
|
|
201
|
+
/** Stack trail for tracking current processing context */
|
|
196
202
|
Object.defineProperty(this, "stackTrail", {
|
|
197
203
|
enumerable: true,
|
|
198
204
|
configurable: true,
|
|
199
205
|
writable: true,
|
|
200
206
|
value: void 0
|
|
201
207
|
});
|
|
208
|
+
/** Tracking model nesting depth to prevent infinite recursion */
|
|
202
209
|
Object.defineProperty(this, "modelDepth", {
|
|
203
210
|
enumerable: true,
|
|
204
211
|
configurable: true,
|
|
@@ -583,6 +590,15 @@ _GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(
|
|
|
583
590
|
__classPrivateFieldGet(this, _GenerateContext_files, "f").set(normalisedPath, newFile);
|
|
584
591
|
return newFile;
|
|
585
592
|
};
|
|
593
|
+
/**
|
|
594
|
+
* Creates an OperationSource from an operation and generator ID.
|
|
595
|
+
*
|
|
596
|
+
* Transforms operation and generator information into a source descriptor
|
|
597
|
+
* that can be used for tracking operation origins in the generation pipeline.
|
|
598
|
+
*
|
|
599
|
+
* @param args - Arguments containing operation and generator ID
|
|
600
|
+
* @returns OperationSource descriptor for the operation
|
|
601
|
+
*/
|
|
586
602
|
const toOperationSource = ({ operation, generatorId }) => ({
|
|
587
603
|
type: 'operation',
|
|
588
604
|
generatorId,
|
|
@@ -590,6 +606,15 @@ const toOperationSource = ({ operation, generatorId }) => ({
|
|
|
590
606
|
operationMethod: operation.method
|
|
591
607
|
});
|
|
592
608
|
exports.toOperationSource = toOperationSource;
|
|
609
|
+
/**
|
|
610
|
+
* Creates a ModelSource from a reference name and generator ID.
|
|
611
|
+
*
|
|
612
|
+
* Transforms model reference and generator information into a source descriptor
|
|
613
|
+
* that can be used for tracking model origins in the generation pipeline.
|
|
614
|
+
*
|
|
615
|
+
* @param args - Arguments containing reference name and generator ID
|
|
616
|
+
* @returns ModelSource descriptor for the model
|
|
617
|
+
*/
|
|
593
618
|
const toModelSource = ({ refName, generatorId }) => ({
|
|
594
619
|
type: 'model',
|
|
595
620
|
generatorId,
|
|
@@ -241,11 +241,17 @@ export type ParseIssue = ParseError | ParseWarning;
|
|
|
241
241
|
*/
|
|
242
242
|
export declare class ParseContext {
|
|
243
243
|
#private;
|
|
244
|
+
/** The original OpenAPI v3 document being parsed */
|
|
244
245
|
documentObject: OpenAPIV3.Document;
|
|
246
|
+
/** Logger instance for tracking parse progress and issues */
|
|
245
247
|
logger: log.Logger;
|
|
248
|
+
/** The parsed OAS document result */
|
|
246
249
|
oasDocument: OasDocument;
|
|
250
|
+
/** Stack trail for tracking current parsing context */
|
|
247
251
|
stackTrail: StackTrail;
|
|
252
|
+
/** Collection of parsing issues encountered during processing */
|
|
248
253
|
issues: ParseIssue[];
|
|
254
|
+
/** Whether to suppress console output during parsing */
|
|
249
255
|
silent: boolean;
|
|
250
256
|
constructor({ documentObject, logger, stackTrail, silent }: ConstructorArgs);
|
|
251
257
|
parse(): OasDocument;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParseContext.d.ts","sourceRoot":"","sources":["../../src/context/ParseContext.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAG9C,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,KAAK,KAAK,GAAG,MAAM,yCAAyC,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C;;GAEG;AACH,KAAK,eAAe,GAAG;IACrB,uCAAuC;IACvC,cAAc,EAAE,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GAAG,KAAK,EAAE,EAAE,YAAY;IAItD,aAAa,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB;CAqB5D;AAED,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,KAAG,SAAS,CAAC,QAMtD,CAAA"}
|
|
@@ -162,36 +162,42 @@ const v = __importStar(require("valibot"));
|
|
|
162
162
|
*/
|
|
163
163
|
class ParseContext {
|
|
164
164
|
constructor({ documentObject, logger, stackTrail, silent = true }) {
|
|
165
|
+
/** The original OpenAPI v3 document being parsed */
|
|
165
166
|
Object.defineProperty(this, "documentObject", {
|
|
166
167
|
enumerable: true,
|
|
167
168
|
configurable: true,
|
|
168
169
|
writable: true,
|
|
169
170
|
value: void 0
|
|
170
171
|
});
|
|
172
|
+
/** Logger instance for tracking parse progress and issues */
|
|
171
173
|
Object.defineProperty(this, "logger", {
|
|
172
174
|
enumerable: true,
|
|
173
175
|
configurable: true,
|
|
174
176
|
writable: true,
|
|
175
177
|
value: void 0
|
|
176
178
|
});
|
|
179
|
+
/** The parsed OAS document result */
|
|
177
180
|
Object.defineProperty(this, "oasDocument", {
|
|
178
181
|
enumerable: true,
|
|
179
182
|
configurable: true,
|
|
180
183
|
writable: true,
|
|
181
184
|
value: void 0
|
|
182
185
|
});
|
|
186
|
+
/** Stack trail for tracking current parsing context */
|
|
183
187
|
Object.defineProperty(this, "stackTrail", {
|
|
184
188
|
enumerable: true,
|
|
185
189
|
configurable: true,
|
|
186
190
|
writable: true,
|
|
187
191
|
value: void 0
|
|
188
192
|
});
|
|
193
|
+
/** Collection of parsing issues encountered during processing */
|
|
189
194
|
Object.defineProperty(this, "issues", {
|
|
190
195
|
enumerable: true,
|
|
191
196
|
configurable: true,
|
|
192
197
|
writable: true,
|
|
193
198
|
value: void 0
|
|
194
199
|
});
|
|
200
|
+
/** Whether to suppress console output during parsing */
|
|
195
201
|
Object.defineProperty(this, "silent", {
|
|
196
202
|
enumerable: true,
|
|
197
203
|
configurable: true,
|
|
@@ -1,2 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Marker constant representing an empty or unset value in the SKMTC DSL system.
|
|
3
|
+
*
|
|
4
|
+
* This constant is used throughout the DSL to represent placeholders, empty
|
|
5
|
+
* templates, or uninitialized content. It provides a consistent way to identify
|
|
6
|
+
* empty states that need to be handled during code generation.
|
|
7
|
+
*
|
|
8
|
+
* @example Usage in templates
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import { EMPTY } from '@skmtc/core';
|
|
11
|
+
*
|
|
12
|
+
* const template = someCondition ? 'actual content' : EMPTY;
|
|
13
|
+
*
|
|
14
|
+
* if (template === EMPTY) {
|
|
15
|
+
* // Handle empty state
|
|
16
|
+
* console.log('No content to generate');
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @example DSL content generation
|
|
21
|
+
* ```typescript
|
|
22
|
+
* const content = new List([
|
|
23
|
+
* 'import { User } from "./types";',
|
|
24
|
+
* someFeature ? 'import { Admin } from "./admin";' : EMPTY,
|
|
25
|
+
* 'export { User };'
|
|
26
|
+
* ]).filter(line => line !== EMPTY);
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
1
29
|
export declare const EMPTY = "__EMPTY__";
|
|
2
30
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/dsl/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,cAAc,CAAA"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/dsl/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,KAAK,cAAc,CAAA"}
|
package/script/dsl/constants.js
CHANGED
|
@@ -1,4 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EMPTY = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Marker constant representing an empty or unset value in the SKMTC DSL system.
|
|
6
|
+
*
|
|
7
|
+
* This constant is used throughout the DSL to represent placeholders, empty
|
|
8
|
+
* templates, or uninitialized content. It provides a consistent way to identify
|
|
9
|
+
* empty states that need to be handled during code generation.
|
|
10
|
+
*
|
|
11
|
+
* @example Usage in templates
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import { EMPTY } from '@skmtc/core';
|
|
14
|
+
*
|
|
15
|
+
* const template = someCondition ? 'actual content' : EMPTY;
|
|
16
|
+
*
|
|
17
|
+
* if (template === EMPTY) {
|
|
18
|
+
* // Handle empty state
|
|
19
|
+
* console.log('No content to generate');
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @example DSL content generation
|
|
24
|
+
* ```typescript
|
|
25
|
+
* const content = new List([
|
|
26
|
+
* 'import { User } from "./types";',
|
|
27
|
+
* someFeature ? 'import { Admin } from "./admin";' : EMPTY,
|
|
28
|
+
* 'export { User };'
|
|
29
|
+
* ]).filter(line => line !== EMPTY);
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
4
32
|
exports.EMPTY = '__EMPTY__';
|