@skmtc/core 0.0.799 → 0.0.802
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/context/CoreContext.d.ts +0 -3
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/CoreContext.js +12 -17
- package/esm/context/GenerateContext.d.ts +35 -3
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +21 -1
- package/esm/context/ParseContext.d.ts +64 -3
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/ParseContext.js +61 -0
- package/esm/context/RenderContext.d.ts +151 -2
- package/esm/context/RenderContext.d.ts.map +1 -1
- package/esm/context/RenderContext.js +185 -11
- package/esm/context/ResultsHandler.d.ts +10 -3
- package/esm/context/ResultsHandler.d.ts.map +1 -1
- package/esm/context/types.d.ts +30 -0
- package/esm/context/types.d.ts.map +1 -1
- package/esm/dsl/model/ModelBase.d.ts +1 -1
- package/esm/dsl/model/ModelBase.d.ts.map +1 -1
- package/esm/dsl/model/ModelDriver.d.ts +62 -0
- package/esm/dsl/model/ModelDriver.d.ts.map +1 -1
- package/esm/dsl/model/ModelDriver.js +63 -1
- package/esm/dsl/model/toModelBase.d.ts +66 -0
- package/esm/dsl/model/toModelBase.d.ts.map +1 -1
- package/esm/dsl/model/toModelBase.js +46 -0
- package/esm/dsl/model/toModelEntry.d.ts +63 -0
- package/esm/dsl/model/toModelEntry.d.ts.map +1 -1
- package/esm/dsl/model/toModelEntry.js +63 -0
- package/esm/dsl/model/types.d.ts +51 -4
- package/esm/dsl/model/types.d.ts.map +1 -1
- package/esm/dsl/operation/OperationBase.d.ts +3 -3
- package/esm/dsl/operation/OperationBase.d.ts.map +1 -1
- package/esm/dsl/operation/OperationDriver.d.ts +48 -0
- package/esm/dsl/operation/OperationDriver.d.ts.map +1 -1
- package/esm/dsl/operation/OperationDriver.js +49 -1
- package/esm/dsl/operation/types.d.ts +61 -3
- package/esm/dsl/operation/types.d.ts.map +1 -1
- package/esm/helpers/isEmpty.d.ts +1 -1
- package/esm/helpers/isEmpty.d.ts.map +1 -1
- package/esm/helpers/tracer.d.ts +1 -1
- package/esm/helpers/tracer.d.ts.map +1 -1
- package/esm/helpers/tracer.js +1 -1
- package/esm/mod.d.ts +51 -0
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +51 -0
- package/esm/oas/array/array-types.d.ts +20 -11
- package/esm/oas/array/array-types.d.ts.map +1 -1
- package/esm/oas/array/array-types.js +10 -0
- package/esm/oas/array/toArray.d.ts +111 -0
- package/esm/oas/array/toArray.d.ts.map +1 -1
- package/esm/oas/array/toArray.js +115 -3
- package/esm/oas/boolean/boolean-types.d.ts +1 -7
- package/esm/oas/boolean/boolean-types.d.ts.map +1 -1
- package/esm/oas/components/components-types.d.ts +19 -0
- package/esm/oas/components/components-types.d.ts.map +1 -0
- package/esm/oas/components/components-types.js +21 -0
- package/esm/oas/contact/contact-types.d.ts +9 -0
- package/esm/oas/contact/contact-types.d.ts.map +1 -0
- package/esm/oas/contact/contact-types.js +7 -0
- package/esm/oas/discriminator/discriminator-types.d.ts +1 -5
- package/esm/oas/discriminator/discriminator-types.d.ts.map +1 -1
- package/esm/oas/document/document-types.d.ts +16 -0
- package/esm/oas/document/document-types.d.ts.map +1 -0
- package/esm/oas/document/document-types.js +18 -0
- package/esm/oas/example/example-types.d.ts +1 -6
- package/esm/oas/example/example-types.d.ts.map +1 -1
- package/esm/oas/header/header-types.d.ts +50 -0
- package/esm/oas/header/header-types.d.ts.map +1 -0
- package/esm/oas/header/header-types.js +30 -0
- package/esm/oas/info/info-types.d.ts +14 -0
- package/esm/oas/info/info-types.d.ts.map +1 -0
- package/esm/oas/info/info-types.js +13 -0
- package/esm/oas/integer/integer-types.d.ts +3 -17
- package/esm/oas/integer/integer-types.d.ts.map +1 -1
- package/esm/oas/license/license-types.d.ts +9 -0
- package/esm/oas/license/license-types.d.ts.map +1 -0
- package/esm/oas/license/license-types.js +7 -0
- package/esm/oas/mediaType/mediaType-types.d.ts +1 -11
- package/esm/oas/mediaType/mediaType-types.d.ts.map +1 -1
- package/esm/oas/number/number-types.d.ts +2 -16
- package/esm/oas/number/number-types.d.ts.map +1 -1
- package/esm/oas/operation/Operation.d.ts +47 -2
- package/esm/oas/operation/Operation.d.ts.map +1 -1
- package/esm/oas/operation/Operation.js +43 -0
- package/esm/oas/operation/operation-types.d.ts +22 -0
- package/esm/oas/operation/operation-types.d.ts.map +1 -0
- package/esm/oas/operation/operation-types.js +35 -0
- package/esm/oas/parameter/parameter-types.d.ts +3 -58
- package/esm/oas/parameter/parameter-types.d.ts.map +1 -1
- package/esm/oas/pathItem/pathItem-types.d.ts +12 -0
- package/esm/oas/pathItem/pathItem-types.d.ts.map +1 -0
- package/esm/oas/pathItem/pathItem-types.js +12 -0
- package/esm/oas/ref/Ref.d.ts +49 -2
- package/esm/oas/ref/Ref.d.ts.map +1 -1
- package/esm/oas/ref/Ref.js +28 -0
- package/esm/oas/requestBody/requestBody-types.d.ts +10 -0
- package/esm/oas/requestBody/requestBody-types.d.ts.map +1 -0
- package/esm/oas/requestBody/requestBody-types.js +9 -0
- package/esm/oas/response/response-types.d.ts +12 -0
- package/esm/oas/response/response-types.d.ts.map +1 -0
- package/esm/oas/response/response-types.js +11 -0
- package/esm/oas/schema/toSchemasV3.js +2 -2
- package/esm/oas/server/toServerV3.d.ts.map +1 -1
- package/esm/oas/string/string-types.d.ts +2 -29
- package/esm/oas/string/string-types.d.ts.map +1 -1
- package/esm/oas/string/toString.d.ts +125 -1
- package/esm/oas/string/toString.d.ts.map +1 -1
- package/esm/oas/string/toString.js +119 -0
- package/esm/oas/tag/tag-types.d.ts +8 -0
- package/esm/oas/tag/tag-types.d.ts.map +1 -0
- package/esm/oas/tag/tag-types.js +8 -0
- package/esm/oas/union/union-types.d.ts +1 -12
- package/esm/oas/union/union-types.d.ts.map +1 -1
- package/esm/oas/unknown/unknown-types.d.ts +1 -7
- package/esm/oas/unknown/unknown-types.d.ts.map +1 -1
- package/esm/types/Preview.d.ts +37 -0
- package/esm/types/Preview.d.ts.map +1 -1
- package/esm/types/Preview.js +37 -0
- package/esm/types/Settings.d.ts +35 -0
- package/esm/types/Settings.d.ts.map +1 -1
- package/esm/types/Settings.js +27 -0
- package/esm/typescript/FunctionParameter.d.ts +4 -4
- package/esm/typescript/FunctionParameter.d.ts.map +1 -1
- package/esm/typescript/List.d.ts +104 -5
- package/esm/typescript/List.d.ts.map +1 -1
- package/esm/typescript/List.js +75 -0
- package/package.json +1 -1
- package/script/context/CoreContext.d.ts +0 -3
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/CoreContext.js +12 -17
- package/script/context/GenerateContext.d.ts +35 -3
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +21 -1
- package/script/context/ParseContext.d.ts +64 -3
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/ParseContext.js +61 -0
- package/script/context/RenderContext.d.ts +151 -2
- package/script/context/RenderContext.d.ts.map +1 -1
- package/script/context/RenderContext.js +185 -11
- package/script/context/ResultsHandler.d.ts +10 -3
- package/script/context/ResultsHandler.d.ts.map +1 -1
- package/script/context/types.d.ts +30 -0
- package/script/context/types.d.ts.map +1 -1
- package/script/dsl/model/ModelBase.d.ts +1 -1
- package/script/dsl/model/ModelBase.d.ts.map +1 -1
- package/script/dsl/model/ModelDriver.d.ts +62 -0
- package/script/dsl/model/ModelDriver.d.ts.map +1 -1
- package/script/dsl/model/ModelDriver.js +63 -1
- package/script/dsl/model/toModelBase.d.ts +66 -0
- package/script/dsl/model/toModelBase.d.ts.map +1 -1
- package/script/dsl/model/toModelBase.js +46 -0
- package/script/dsl/model/toModelEntry.d.ts +63 -0
- package/script/dsl/model/toModelEntry.d.ts.map +1 -1
- package/script/dsl/model/toModelEntry.js +63 -0
- package/script/dsl/model/types.d.ts +51 -4
- package/script/dsl/model/types.d.ts.map +1 -1
- package/script/dsl/operation/OperationBase.d.ts +3 -3
- package/script/dsl/operation/OperationBase.d.ts.map +1 -1
- package/script/dsl/operation/OperationDriver.d.ts +48 -0
- package/script/dsl/operation/OperationDriver.d.ts.map +1 -1
- package/script/dsl/operation/OperationDriver.js +49 -1
- package/script/dsl/operation/types.d.ts +61 -3
- package/script/dsl/operation/types.d.ts.map +1 -1
- package/script/helpers/isEmpty.d.ts +1 -1
- package/script/helpers/isEmpty.d.ts.map +1 -1
- package/script/helpers/tracer.d.ts +1 -1
- package/script/helpers/tracer.d.ts.map +1 -1
- package/script/helpers/tracer.js +1 -1
- package/script/mod.d.ts +51 -0
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +51 -0
- package/script/oas/array/array-types.d.ts +20 -11
- package/script/oas/array/array-types.d.ts.map +1 -1
- package/script/oas/array/array-types.js +11 -1
- package/script/oas/array/toArray.d.ts +111 -0
- package/script/oas/array/toArray.d.ts.map +1 -1
- package/script/oas/array/toArray.js +114 -2
- package/script/oas/boolean/boolean-types.d.ts +1 -7
- package/script/oas/boolean/boolean-types.d.ts.map +1 -1
- package/script/oas/components/components-types.d.ts +19 -0
- package/script/oas/components/components-types.d.ts.map +1 -0
- package/script/oas/components/components-types.js +57 -0
- package/script/oas/contact/contact-types.d.ts +9 -0
- package/script/oas/contact/contact-types.d.ts.map +1 -0
- package/script/oas/contact/contact-types.js +43 -0
- package/script/oas/discriminator/discriminator-types.d.ts +1 -5
- package/script/oas/discriminator/discriminator-types.d.ts.map +1 -1
- package/script/oas/document/document-types.d.ts +16 -0
- package/script/oas/document/document-types.d.ts.map +1 -0
- package/script/oas/document/document-types.js +54 -0
- package/script/oas/example/example-types.d.ts +1 -6
- package/script/oas/example/example-types.d.ts.map +1 -1
- package/script/oas/header/header-types.d.ts +50 -0
- package/script/oas/header/header-types.d.ts.map +1 -0
- package/script/oas/header/header-types.js +66 -0
- package/script/oas/info/info-types.d.ts +14 -0
- package/script/oas/info/info-types.d.ts.map +1 -0
- package/script/oas/info/info-types.js +49 -0
- package/script/oas/integer/integer-types.d.ts +3 -17
- package/script/oas/integer/integer-types.d.ts.map +1 -1
- package/script/oas/license/license-types.d.ts +9 -0
- package/script/oas/license/license-types.d.ts.map +1 -0
- package/script/oas/license/license-types.js +43 -0
- package/script/oas/mediaType/mediaType-types.d.ts +1 -11
- package/script/oas/mediaType/mediaType-types.d.ts.map +1 -1
- package/script/oas/number/number-types.d.ts +2 -16
- package/script/oas/number/number-types.d.ts.map +1 -1
- package/script/oas/operation/Operation.d.ts +47 -2
- package/script/oas/operation/Operation.d.ts.map +1 -1
- package/script/oas/operation/Operation.js +43 -0
- package/script/oas/operation/operation-types.d.ts +22 -0
- package/script/oas/operation/operation-types.d.ts.map +1 -0
- package/script/oas/operation/operation-types.js +71 -0
- package/script/oas/parameter/parameter-types.d.ts +3 -58
- package/script/oas/parameter/parameter-types.d.ts.map +1 -1
- package/script/oas/pathItem/pathItem-types.d.ts +12 -0
- package/script/oas/pathItem/pathItem-types.d.ts.map +1 -0
- package/script/oas/pathItem/pathItem-types.js +48 -0
- package/script/oas/ref/Ref.d.ts +49 -2
- package/script/oas/ref/Ref.d.ts.map +1 -1
- package/script/oas/ref/Ref.js +28 -0
- package/script/oas/requestBody/requestBody-types.d.ts +10 -0
- package/script/oas/requestBody/requestBody-types.d.ts.map +1 -0
- package/script/oas/requestBody/requestBody-types.js +45 -0
- package/script/oas/response/response-types.d.ts +12 -0
- package/script/oas/response/response-types.d.ts.map +1 -0
- package/script/oas/response/response-types.js +47 -0
- package/script/oas/schema/toSchemasV3.js +2 -2
- package/script/oas/server/toServerV3.d.ts.map +1 -1
- package/script/oas/string/string-types.d.ts +2 -29
- package/script/oas/string/string-types.d.ts.map +1 -1
- package/script/oas/string/toString.d.ts +125 -1
- package/script/oas/string/toString.d.ts.map +1 -1
- package/script/oas/string/toString.js +119 -0
- package/script/oas/tag/tag-types.d.ts +8 -0
- package/script/oas/tag/tag-types.d.ts.map +1 -0
- package/script/oas/tag/tag-types.js +44 -0
- package/script/oas/union/union-types.d.ts +1 -12
- package/script/oas/union/union-types.d.ts.map +1 -1
- package/script/oas/unknown/unknown-types.d.ts +1 -7
- package/script/oas/unknown/unknown-types.d.ts.map +1 -1
- package/script/types/Preview.d.ts +37 -0
- package/script/types/Preview.d.ts.map +1 -1
- package/script/types/Preview.js +37 -0
- package/script/types/Settings.d.ts +35 -0
- package/script/types/Settings.d.ts.map +1 -1
- package/script/types/Settings.js +27 -0
- package/script/typescript/FunctionParameter.d.ts +4 -4
- package/script/typescript/FunctionParameter.d.ts.map +1 -1
- package/script/typescript/List.d.ts +104 -5
- package/script/typescript/List.d.ts.map +1 -1
- package/script/typescript/List.js +75 -0
package/esm/types/Settings.js
CHANGED
|
@@ -9,16 +9,43 @@ export const modulePackage = v.object({
|
|
|
9
9
|
rootPath: v.string(),
|
|
10
10
|
moduleName: v.optional(v.string())
|
|
11
11
|
});
|
|
12
|
+
/**
|
|
13
|
+
* Valibot schema for validating skip paths configuration.
|
|
14
|
+
*
|
|
15
|
+
* Validates path-to-methods mappings for skipping specific operations.
|
|
16
|
+
*/
|
|
12
17
|
export const skipPaths = v.record(v.string(), v.array(method));
|
|
18
|
+
/**
|
|
19
|
+
* Valibot schema for validating skip operations configuration.
|
|
20
|
+
*
|
|
21
|
+
* Validates generator-to-skip-paths mappings for skipping operations by generator.
|
|
22
|
+
*/
|
|
13
23
|
export const skipOperations = v.record(v.string(), skipPaths);
|
|
24
|
+
/**
|
|
25
|
+
* Valibot schema for validating skip models configuration.
|
|
26
|
+
*
|
|
27
|
+
* Validates generator-to-model-names mappings for skipping specific models.
|
|
28
|
+
*/
|
|
14
29
|
export const skipModels = v.record(v.string(), v.array(v.string()));
|
|
15
30
|
const skip = v.union([skipOperations, skipModels, v.string()]);
|
|
31
|
+
/**
|
|
32
|
+
* Valibot schema for validating client settings configuration.
|
|
33
|
+
*
|
|
34
|
+
* Validates the complete client settings structure including base paths,
|
|
35
|
+
* packages, skip configurations, and enrichments.
|
|
36
|
+
*/
|
|
16
37
|
export const clientSettings = v.object({
|
|
17
38
|
basePath: v.optional(v.string()),
|
|
18
39
|
packages: v.optional(v.array(modulePackage)),
|
|
19
40
|
enrichments: v.optional(generatorEnrichments),
|
|
20
41
|
skip: v.optional(v.array(skip))
|
|
21
42
|
});
|
|
43
|
+
/**
|
|
44
|
+
* Valibot schema for validating SKMTC client configuration.
|
|
45
|
+
*
|
|
46
|
+
* Validates the complete client configuration including project key
|
|
47
|
+
* and client settings structure.
|
|
48
|
+
*/
|
|
22
49
|
export const skmtcClientConfig = v.object({
|
|
23
50
|
projectKey: v.optional(v.string()),
|
|
24
51
|
settings: clientSettings
|
|
@@ -19,17 +19,17 @@ type FunctionParameterArgs = {
|
|
|
19
19
|
/**
|
|
20
20
|
* Union type representing the different parameter configurations.
|
|
21
21
|
*/
|
|
22
|
-
type ParameterProperties = VoidParameter | DestructuredParameter | RegularParameter;
|
|
22
|
+
export type ParameterProperties = VoidParameter | DestructuredParameter | RegularParameter;
|
|
23
23
|
/**
|
|
24
24
|
* Represents a void parameter (no parameters).
|
|
25
25
|
*/
|
|
26
|
-
type VoidParameter = {
|
|
26
|
+
export type VoidParameter = {
|
|
27
27
|
type: 'void';
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* Represents a destructured object parameter.
|
|
31
31
|
*/
|
|
32
|
-
type DestructuredParameter = {
|
|
32
|
+
export type DestructuredParameter = {
|
|
33
33
|
type: 'destructured';
|
|
34
34
|
typeDefinition: Definition<TypeSystemObject>;
|
|
35
35
|
required: true;
|
|
@@ -37,7 +37,7 @@ type DestructuredParameter = {
|
|
|
37
37
|
/**
|
|
38
38
|
* Represents a regular named parameter.
|
|
39
39
|
*/
|
|
40
|
-
type RegularParameter = {
|
|
40
|
+
export type RegularParameter = {
|
|
41
41
|
type: 'regular';
|
|
42
42
|
name: string;
|
|
43
43
|
typeDefinition: Definition<TypeSystemValue>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionParameter.d.ts","sourceRoot":"","sources":["../../src/typescript/FunctionParameter.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC/F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,IAAI,EAAwB,MAAM,WAAW,CAAA;AAItD;;GAEG;AACH,KAAK,qBAAqB,GAAG;IAC3B,+FAA+F;IAC/F,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4CAA4C;IAC5C,cAAc,EAAE,UAAU,CAAC,gBAAgB,GAAG,cAAc,CAAC,CAAA;IAC7D,mDAAmD;IACnD,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kEAAkE;IAClE,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"FunctionParameter.d.ts","sourceRoot":"","sources":["../../src/typescript/FunctionParameter.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC/F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,IAAI,EAAwB,MAAM,WAAW,CAAA;AAItD;;GAEG;AACH,KAAK,qBAAqB,GAAG;IAC3B,+FAA+F;IAC/F,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4CAA4C;IAC5C,cAAc,EAAE,UAAU,CAAC,gBAAgB,GAAG,cAAc,CAAC,CAAA;IAC7D,mDAAmD;IACnD,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kEAAkE;IAClE,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,m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-11,17 +11,32 @@ export type ListParams<V extends Stringable> = List<V[], ', ', '()'>;
|
|
|
11
11
|
export type SkipEmptyOption = {
|
|
12
12
|
skipEmpty?: boolean;
|
|
13
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* Type alias for creating key-value pair lists.
|
|
16
|
+
*
|
|
17
|
+
* Creates a List specialized for key-value pairs with colon separator
|
|
18
|
+
* and no bookends (e.g., "key1: value1, key2: value2").
|
|
19
|
+
*
|
|
20
|
+
* @template Key - Type of the keys (must be stringable)
|
|
21
|
+
* @template Value - Type of the values (must be stringable)
|
|
22
|
+
*/
|
|
14
23
|
export type ListKeyValue<Key extends Stringable, Value extends Stringable> = List<[
|
|
15
24
|
Key,
|
|
16
25
|
Value
|
|
17
26
|
], ': ', 'none'>;
|
|
18
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Type representing the different bookend styles for lists.
|
|
29
|
+
*/
|
|
30
|
+
export type BookendsType = '[]' | '{}' | '()' | '<>' | 'none';
|
|
19
31
|
type ConstructorOptions<Separator extends string = ', ', Bookends extends BookendsType = 'none'> = {
|
|
20
32
|
separator?: Separator;
|
|
21
33
|
bookends?: Bookends;
|
|
22
34
|
skipEmpty?: boolean;
|
|
23
35
|
};
|
|
24
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Utility type to extract the item type from an array type.
|
|
38
|
+
*/
|
|
39
|
+
export type ExtractArrayItem<ArrayOf> = ArrayOf extends Array<infer Item> ? Item : never;
|
|
25
40
|
type ToFilteredKeyValueReturn<Value extends undefined | Stringable | Stringable[] | List> = Value extends undefined ? undefined : List<[string, Stringable | Stringable[] | List], ': ', 'none'>;
|
|
26
41
|
type ToConditionalReturn<Value extends Stringable, Condition extends boolean> = Condition extends true ? List<[Value], ', ', 'none'> : List<never[], ', ', 'none'>;
|
|
27
42
|
/**
|
|
@@ -136,6 +151,14 @@ export declare class List<Values extends Stringable[] = Stringable[], Separator
|
|
|
136
151
|
* ```
|
|
137
152
|
*/
|
|
138
153
|
constructor(values: (ExtractArrayItem<Values> | undefined)[], { separator, bookends, skipEmpty }?: ConstructorOptions<Separator, Bookends>);
|
|
154
|
+
/**
|
|
155
|
+
* Converts the list to its string representation.
|
|
156
|
+
*
|
|
157
|
+
* Joins all values with the configured separator and wraps with bookends.
|
|
158
|
+
* Returns empty string if skipEmpty is enabled and list is empty.
|
|
159
|
+
*
|
|
160
|
+
* @returns Formatted string representation of the list
|
|
161
|
+
*/
|
|
139
162
|
toString(): string;
|
|
140
163
|
/**
|
|
141
164
|
* Create an empty List that will render as an empty string ''
|
|
@@ -241,22 +264,98 @@ export declare class List<Values extends Stringable[] = Stringable[], Separator
|
|
|
241
264
|
*/
|
|
242
265
|
static hasValue: (value: undefined | Stringable | Stringable[] | List) => value is Stringable | Stringable[] | List;
|
|
243
266
|
}
|
|
244
|
-
|
|
267
|
+
/**
|
|
268
|
+
* Mapping function type for transforming keys into values.
|
|
269
|
+
*/
|
|
270
|
+
export type KeyMapFn<V extends Stringable> = (key: string, index: number) => V;
|
|
271
|
+
/**
|
|
272
|
+
* Utility class for working with arrays of string keys.
|
|
273
|
+
*
|
|
274
|
+
* Provides methods for transforming key arrays into objects and lists
|
|
275
|
+
* with custom mapping functions.
|
|
276
|
+
*/
|
|
245
277
|
export declare class KeyList {
|
|
278
|
+
/** Array of string keys */
|
|
246
279
|
keys: string[];
|
|
280
|
+
/**
|
|
281
|
+
* Creates a new KeyList instance.
|
|
282
|
+
*
|
|
283
|
+
* @param keys - Array of string keys to work with
|
|
284
|
+
*/
|
|
247
285
|
constructor(keys: string[]);
|
|
286
|
+
/**
|
|
287
|
+
* Transforms keys into an object using a mapping function.
|
|
288
|
+
*
|
|
289
|
+
* @param mapFn - Function to transform each key into a value
|
|
290
|
+
* @param options - Options for handling empty values
|
|
291
|
+
* @returns Object with keys mapped to transformed values
|
|
292
|
+
*/
|
|
248
293
|
toObject<V extends Stringable>(mapFn: KeyMapFn<V>, { skipEmpty }?: SkipEmptyOption): ListObject<V>;
|
|
294
|
+
/**
|
|
295
|
+
* Creates a plain object with keys as both keys and values.
|
|
296
|
+
*
|
|
297
|
+
* @returns Object where each key maps to itself
|
|
298
|
+
*/
|
|
249
299
|
toObjectPlain(): ListObject<string>;
|
|
300
|
+
/**
|
|
301
|
+
* Transforms keys into a List using a mapping function.
|
|
302
|
+
*
|
|
303
|
+
* @param mapFn - Function to transform each key into a value
|
|
304
|
+
* @returns List containing the transformed values
|
|
305
|
+
*/
|
|
250
306
|
toLines<V extends Stringable>(mapFn: KeyMapFn<V>): ListLines<V>;
|
|
307
|
+
/**
|
|
308
|
+
* Creates a List with keys as the values.
|
|
309
|
+
*
|
|
310
|
+
* @returns List containing the original keys
|
|
311
|
+
*/
|
|
251
312
|
toLinesPlain(): ListLines<string>;
|
|
252
313
|
}
|
|
253
|
-
|
|
254
|
-
|
|
314
|
+
/**
|
|
315
|
+
* Type representing a key-value pair entry.
|
|
316
|
+
*/
|
|
317
|
+
export type Entry<T extends Stringable> = [key: string, value: T];
|
|
318
|
+
/**
|
|
319
|
+
* Mapping function type for transforming entries.
|
|
320
|
+
*/
|
|
321
|
+
export type EntryMapFn<T extends Stringable, V extends Stringable> = (entry: Entry<T>, index: number) => V | undefined;
|
|
322
|
+
/**
|
|
323
|
+
* Utility class for working with arrays of key-value pair entries.
|
|
324
|
+
*
|
|
325
|
+
* Provides methods for transforming entry arrays into objects and lists
|
|
326
|
+
* with custom mapping functions.
|
|
327
|
+
*
|
|
328
|
+
* @template T - Type of the entry values
|
|
329
|
+
*/
|
|
255
330
|
export declare class EntryList<T extends Stringable> {
|
|
331
|
+
/** Array of key-value pair entries */
|
|
256
332
|
entries: Entry<T>[];
|
|
333
|
+
/**
|
|
334
|
+
* Creates a new EntryList instance.
|
|
335
|
+
*
|
|
336
|
+
* @param entries - Array of key-value pair entries to work with
|
|
337
|
+
*/
|
|
257
338
|
constructor(entries: Entry<T>[]);
|
|
339
|
+
/**
|
|
340
|
+
* Transforms entries into an object using a mapping function.
|
|
341
|
+
*
|
|
342
|
+
* @param mapFn - Function to transform each entry into a value
|
|
343
|
+
* @returns Object with transformed values
|
|
344
|
+
*/
|
|
258
345
|
toObject<V extends Stringable>(mapFn: EntryMapFn<T, V>): ListObject<V>;
|
|
346
|
+
/**
|
|
347
|
+
* Transforms entries into a List using a mapping function.
|
|
348
|
+
*
|
|
349
|
+
* @param mapFn - Function to transform each entry into a value
|
|
350
|
+
* @returns List containing the transformed values
|
|
351
|
+
*/
|
|
259
352
|
toLines<V extends Stringable>(mapFn: EntryMapFn<T, V>): ListLines<V>;
|
|
353
|
+
/**
|
|
354
|
+
* Transforms entries into an array using a mapping function.
|
|
355
|
+
*
|
|
356
|
+
* @param mapFn - Function to transform each entry into a value
|
|
357
|
+
* @returns Array containing the transformed values
|
|
358
|
+
*/
|
|
260
359
|
toArray<V extends Stringable>(mapFn: EntryMapFn<T, V>): ListArray<V>;
|
|
261
360
|
}
|
|
262
361
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../src/typescript/List.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAGtD,4EAA4E;AAC5E,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,UAAU,IAAI,IAAI,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAEpE,2DAA2D;AAC3D,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,UAAU,IAAI,IAAI,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;AAErE,8EAA8E;AAC9E,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,UAAU,IAAI,IAAI,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAEnE,gFAAgF;AAChF,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,UAAU,IAAI,IAAI,CAAC,CAAC,EAAE,EAAE,IAAI,EA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CAAC,SAAS,UAAU,EAAE,CAAC,SAAS,UAAU,IAAI,CACnE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EACf,KAAK,EAAE,MAAM,KACV,CAAC,GAAG,SAAS,CAAA;AAElB;;;;;;;GAOG;AACH,qBAAa,SAAS,CAAC,CAAC,SAAS,UAAU;IACzC,sCAAsC;IACtC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA;IAEnB;;;;OAIG;gBACS,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE;IAI/B;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,SAAS,UAAU,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;IAItE;;;;;OAKG;IACH,OAAO,CAAC,CAAC,SAAS,UAAU,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC;IAIpE;;;;;OAKG;IACH,OAAO,CAAC,CAAC,SAAS,UAAU,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC;CAGrE"}
|
package/esm/typescript/List.js
CHANGED
|
@@ -136,6 +136,14 @@ export class List {
|
|
|
136
136
|
this.bookends = bookends ?? 'none';
|
|
137
137
|
this.skipEmpty = skipEmpty ?? false;
|
|
138
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* Converts the list to its string representation.
|
|
141
|
+
*
|
|
142
|
+
* Joins all values with the configured separator and wraps with bookends.
|
|
143
|
+
* Returns empty string if skipEmpty is enabled and list is empty.
|
|
144
|
+
*
|
|
145
|
+
* @returns Formatted string representation of the list
|
|
146
|
+
*/
|
|
139
147
|
toString() {
|
|
140
148
|
if (this.skipEmpty && this.values.length === 0) {
|
|
141
149
|
return '';
|
|
@@ -377,8 +385,20 @@ Object.defineProperty(List, "hasValue", {
|
|
|
377
385
|
return true;
|
|
378
386
|
}
|
|
379
387
|
});
|
|
388
|
+
/**
|
|
389
|
+
* Utility class for working with arrays of string keys.
|
|
390
|
+
*
|
|
391
|
+
* Provides methods for transforming key arrays into objects and lists
|
|
392
|
+
* with custom mapping functions.
|
|
393
|
+
*/
|
|
380
394
|
export class KeyList {
|
|
395
|
+
/**
|
|
396
|
+
* Creates a new KeyList instance.
|
|
397
|
+
*
|
|
398
|
+
* @param keys - Array of string keys to work with
|
|
399
|
+
*/
|
|
381
400
|
constructor(keys) {
|
|
401
|
+
/** Array of string keys */
|
|
382
402
|
Object.defineProperty(this, "keys", {
|
|
383
403
|
enumerable: true,
|
|
384
404
|
configurable: true,
|
|
@@ -387,21 +407,58 @@ export class KeyList {
|
|
|
387
407
|
});
|
|
388
408
|
this.keys = keys;
|
|
389
409
|
}
|
|
410
|
+
/**
|
|
411
|
+
* Transforms keys into an object using a mapping function.
|
|
412
|
+
*
|
|
413
|
+
* @param mapFn - Function to transform each key into a value
|
|
414
|
+
* @param options - Options for handling empty values
|
|
415
|
+
* @returns Object with keys mapped to transformed values
|
|
416
|
+
*/
|
|
390
417
|
toObject(mapFn, { skipEmpty } = {}) {
|
|
391
418
|
return List.toObject(this.keys.map((key, index) => mapFn(key, index)), { skipEmpty });
|
|
392
419
|
}
|
|
420
|
+
/**
|
|
421
|
+
* Creates a plain object with keys as both keys and values.
|
|
422
|
+
*
|
|
423
|
+
* @returns Object where each key maps to itself
|
|
424
|
+
*/
|
|
393
425
|
toObjectPlain() {
|
|
394
426
|
return List.toObject(this.keys);
|
|
395
427
|
}
|
|
428
|
+
/**
|
|
429
|
+
* Transforms keys into a List using a mapping function.
|
|
430
|
+
*
|
|
431
|
+
* @param mapFn - Function to transform each key into a value
|
|
432
|
+
* @returns List containing the transformed values
|
|
433
|
+
*/
|
|
396
434
|
toLines(mapFn) {
|
|
397
435
|
return List.toLines(this.keys.map((key, index) => mapFn(key, index)));
|
|
398
436
|
}
|
|
437
|
+
/**
|
|
438
|
+
* Creates a List with keys as the values.
|
|
439
|
+
*
|
|
440
|
+
* @returns List containing the original keys
|
|
441
|
+
*/
|
|
399
442
|
toLinesPlain() {
|
|
400
443
|
return List.toLines(this.keys);
|
|
401
444
|
}
|
|
402
445
|
}
|
|
446
|
+
/**
|
|
447
|
+
* Utility class for working with arrays of key-value pair entries.
|
|
448
|
+
*
|
|
449
|
+
* Provides methods for transforming entry arrays into objects and lists
|
|
450
|
+
* with custom mapping functions.
|
|
451
|
+
*
|
|
452
|
+
* @template T - Type of the entry values
|
|
453
|
+
*/
|
|
403
454
|
export class EntryList {
|
|
455
|
+
/**
|
|
456
|
+
* Creates a new EntryList instance.
|
|
457
|
+
*
|
|
458
|
+
* @param entries - Array of key-value pair entries to work with
|
|
459
|
+
*/
|
|
404
460
|
constructor(entries) {
|
|
461
|
+
/** Array of key-value pair entries */
|
|
405
462
|
Object.defineProperty(this, "entries", {
|
|
406
463
|
enumerable: true,
|
|
407
464
|
configurable: true,
|
|
@@ -410,12 +467,30 @@ export class EntryList {
|
|
|
410
467
|
});
|
|
411
468
|
this.entries = entries;
|
|
412
469
|
}
|
|
470
|
+
/**
|
|
471
|
+
* Transforms entries into an object using a mapping function.
|
|
472
|
+
*
|
|
473
|
+
* @param mapFn - Function to transform each entry into a value
|
|
474
|
+
* @returns Object with transformed values
|
|
475
|
+
*/
|
|
413
476
|
toObject(mapFn) {
|
|
414
477
|
return List.toObject(this.entries.map((entry, index) => mapFn(entry, index)));
|
|
415
478
|
}
|
|
479
|
+
/**
|
|
480
|
+
* Transforms entries into a List using a mapping function.
|
|
481
|
+
*
|
|
482
|
+
* @param mapFn - Function to transform each entry into a value
|
|
483
|
+
* @returns List containing the transformed values
|
|
484
|
+
*/
|
|
416
485
|
toLines(mapFn) {
|
|
417
486
|
return List.toLines(this.entries.map((key, index) => mapFn(key, index)));
|
|
418
487
|
}
|
|
488
|
+
/**
|
|
489
|
+
* Transforms entries into an array using a mapping function.
|
|
490
|
+
*
|
|
491
|
+
* @param mapFn - Function to transform each entry into a value
|
|
492
|
+
* @returns Array containing the transformed values
|
|
493
|
+
*/
|
|
419
494
|
toArray(mapFn) {
|
|
420
495
|
return List.toArray(this.entries.map((entry, index) => mapFn(entry, index)));
|
|
421
496
|
}
|
package/package.json
CHANGED
|
@@ -5,7 +5,6 @@ import type { PrettierConfigType } from '../types/PrettierConfig.js';
|
|
|
5
5
|
import type { OasDocument } from '../oas/document/Document.js';
|
|
6
6
|
import type { ClientSettings } from '../types/Settings.js';
|
|
7
7
|
import type { ResultType } from '../types/Results.js';
|
|
8
|
-
import * as log from '../deps/jsr.io/@std/log/0.224.14/mod.js';
|
|
9
8
|
import type { GeneratorsMapContainer } from '../types/GeneratorType.js';
|
|
10
9
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
11
10
|
import type { RenderResult } from './types.js';
|
|
@@ -123,8 +122,6 @@ export type ToArtifactsArgs = {
|
|
|
123
122
|
*/
|
|
124
123
|
export declare class CoreContext {
|
|
125
124
|
#private;
|
|
126
|
-
/** Logger instance for the context */
|
|
127
|
-
logger: log.Logger;
|
|
128
125
|
/** Whether to suppress console output */
|
|
129
126
|
silent: boolean;
|
|
130
127
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreContext.d.ts","sourceRoot":"","sources":["../../src/context/CoreContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|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AC,MAAM,EAAE,UAAU,GAAG,IAAI;CAkB/C;AAED;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,sEAAsE;IACtE,SAAS,EAAE;QACT,yBAAyB;QACzB,SAAS,EAAE,MAAM,CAAA;QACjB,6CAA6C;QAC7C,QAAQ,EAAE,IAAI,CAAA;QACd,sBAAsB;QACtB,GAAG,EAAE,MAAM,CAAA;QACX,+BAA+B;QAC/B,IAAI,EAAE,OAAO,EAAE,CAAA;KAChB,CAAA;IACD,gEAAgE;IAChE,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE,iBAAiB,GAAG,MAAM,CAQnF"}
|
|
@@ -43,7 +43,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
43
43
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
44
44
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
45
45
|
};
|
|
46
|
-
var _CoreContext_instances, _CoreContext_phase, _CoreContext_results, _CoreContext_stackTrail, _CoreContext_setupLogger, _CoreContext_setupParsePhase, _CoreContext_setupGeneratePhase, _CoreContext_setupRenderPhase;
|
|
46
|
+
var _CoreContext_instances, _CoreContext_logger, _CoreContext_phase, _CoreContext_results, _CoreContext_stackTrail, _CoreContext_setupLogger, _CoreContext_setupParsePhase, _CoreContext_setupGeneratePhase, _CoreContext_setupRenderPhase;
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
48
|
exports.CoreContext = void 0;
|
|
49
49
|
exports.skmtcFormatter = skmtcFormatter;
|
|
@@ -131,12 +131,7 @@ class CoreContext {
|
|
|
131
131
|
constructor({ spanId, logsPath, silent }) {
|
|
132
132
|
_CoreContext_instances.add(this);
|
|
133
133
|
/** Logger instance for the context */
|
|
134
|
-
|
|
135
|
-
enumerable: true,
|
|
136
|
-
configurable: true,
|
|
137
|
-
writable: true,
|
|
138
|
-
value: void 0
|
|
139
|
-
});
|
|
134
|
+
_CoreContext_logger.set(this, void 0);
|
|
140
135
|
/** Current execution phase for pipeline tracking */
|
|
141
136
|
_CoreContext_phase.set(this, void 0);
|
|
142
137
|
/** Results log for tracking generation outcomes */
|
|
@@ -152,7 +147,7 @@ class CoreContext {
|
|
|
152
147
|
});
|
|
153
148
|
__classPrivateFieldSet(this, _CoreContext_stackTrail, new StackTrail_js_1.StackTrail([spanId]), "f");
|
|
154
149
|
__classPrivateFieldSet(this, _CoreContext_results, new ResultsLog_js_1.ResultsLog(), "f");
|
|
155
|
-
this
|
|
150
|
+
__classPrivateFieldSet(this, _CoreContext_logger, __classPrivateFieldGet(this, _CoreContext_instances, "m", _CoreContext_setupLogger).call(this, { spanId, logsPath }), "f");
|
|
156
151
|
this.silent = silent;
|
|
157
152
|
}
|
|
158
153
|
/**
|
|
@@ -279,7 +274,7 @@ class CoreContext {
|
|
|
279
274
|
}), "f");
|
|
280
275
|
return __classPrivateFieldGet(this, _CoreContext_phase, "f").context.toArtifacts();
|
|
281
276
|
});
|
|
282
|
-
this.
|
|
277
|
+
__classPrivateFieldGet(this, _CoreContext_logger, "f").debug(`${files.size} files generated`);
|
|
283
278
|
const renderOutput = await this.trace('render', async () => {
|
|
284
279
|
__classPrivateFieldSet(this, _CoreContext_phase, __classPrivateFieldGet(this, _CoreContext_instances, "m", _CoreContext_setupRenderPhase).call(this, {
|
|
285
280
|
files,
|
|
@@ -297,7 +292,7 @@ class CoreContext {
|
|
|
297
292
|
}
|
|
298
293
|
catch (error) {
|
|
299
294
|
console.error(error);
|
|
300
|
-
this.
|
|
295
|
+
__classPrivateFieldGet(this, _CoreContext_logger, "f").error(error);
|
|
301
296
|
Sentry.captureException(error);
|
|
302
297
|
return {
|
|
303
298
|
artifacts: {},
|
|
@@ -308,7 +303,7 @@ class CoreContext {
|
|
|
308
303
|
};
|
|
309
304
|
}
|
|
310
305
|
finally {
|
|
311
|
-
this.
|
|
306
|
+
__classPrivateFieldGet(this, _CoreContext_logger, "f").handlers.forEach(handler => {
|
|
312
307
|
if (handler instanceof log.FileHandler) {
|
|
313
308
|
handler.flush();
|
|
314
309
|
}
|
|
@@ -345,8 +340,8 @@ class CoreContext {
|
|
|
345
340
|
*/
|
|
346
341
|
trace(token, fn) {
|
|
347
342
|
console.log('trace', token);
|
|
348
|
-
this.
|
|
349
|
-
return (0, tracer_js_1.tracer)(__classPrivateFieldGet(this, _CoreContext_stackTrail, "f"), token, fn, this
|
|
343
|
+
__classPrivateFieldGet(this, _CoreContext_logger, "f").info('trace', token);
|
|
344
|
+
return (0, tracer_js_1.tracer)(__classPrivateFieldGet(this, _CoreContext_stackTrail, "f"), token, fn, __classPrivateFieldGet(this, _CoreContext_logger, "f"));
|
|
350
345
|
}
|
|
351
346
|
/**
|
|
352
347
|
* Captures a result at the current execution position in the stack trail.
|
|
@@ -381,7 +376,7 @@ class CoreContext {
|
|
|
381
376
|
}
|
|
382
377
|
}
|
|
383
378
|
exports.CoreContext = CoreContext;
|
|
384
|
-
_CoreContext_phase = new WeakMap(), _CoreContext_results = new WeakMap(), _CoreContext_stackTrail = new WeakMap(), _CoreContext_instances = new WeakSet(), _CoreContext_setupLogger = function _CoreContext_setupLogger({ spanId, logsPath }) {
|
|
379
|
+
_CoreContext_logger = new WeakMap(), _CoreContext_phase = new WeakMap(), _CoreContext_results = new WeakMap(), _CoreContext_stackTrail = new WeakMap(), _CoreContext_instances = new WeakSet(), _CoreContext_setupLogger = function _CoreContext_setupLogger({ spanId, logsPath }) {
|
|
385
380
|
const filename = (0, join_js_1.join)(logsPath ?? '', `${spanId}.txt`);
|
|
386
381
|
log.setup({
|
|
387
382
|
handlers: {
|
|
@@ -420,7 +415,7 @@ _CoreContext_phase = new WeakMap(), _CoreContext_results = new WeakMap(), _CoreC
|
|
|
420
415
|
}, _CoreContext_setupParsePhase = function _CoreContext_setupParsePhase(documentObject) {
|
|
421
416
|
const parseContext = new ParseContext_js_1.ParseContext({
|
|
422
417
|
documentObject,
|
|
423
|
-
logger: this
|
|
418
|
+
logger: __classPrivateFieldGet(this, _CoreContext_logger, "f"),
|
|
424
419
|
stackTrail: __classPrivateFieldGet(this, _CoreContext_stackTrail, "f"),
|
|
425
420
|
silent: this.silent
|
|
426
421
|
});
|
|
@@ -429,7 +424,7 @@ _CoreContext_phase = new WeakMap(), _CoreContext_results = new WeakMap(), _CoreC
|
|
|
429
424
|
const generateContext = new GenerateContext_js_1.GenerateContext({
|
|
430
425
|
oasDocument,
|
|
431
426
|
settings,
|
|
432
|
-
logger: this
|
|
427
|
+
logger: __classPrivateFieldGet(this, _CoreContext_logger, "f"),
|
|
433
428
|
stackTrail: __classPrivateFieldGet(this, _CoreContext_stackTrail, "f"),
|
|
434
429
|
captureCurrentResult: this.captureCurrentResult.bind(this),
|
|
435
430
|
toGeneratorConfigMap
|
|
@@ -442,7 +437,7 @@ _CoreContext_phase = new WeakMap(), _CoreContext_results = new WeakMap(), _CoreC
|
|
|
442
437
|
mappings,
|
|
443
438
|
prettierConfig: prettier,
|
|
444
439
|
basePath,
|
|
445
|
-
logger: this
|
|
440
|
+
logger: __classPrivateFieldGet(this, _CoreContext_logger, "f"),
|
|
446
441
|
stackTrail: __classPrivateFieldGet(this, _CoreContext_stackTrail, "f"),
|
|
447
442
|
captureCurrentResult: this.captureCurrentResult.bind(this)
|
|
448
443
|
});
|
|
@@ -256,11 +256,23 @@ export type InsertModelOptions<T extends GenerationType> = {
|
|
|
256
256
|
* @template EnrichmentType - The enrichment data type
|
|
257
257
|
*/
|
|
258
258
|
export type InsertReturn<V extends GeneratedValue, T extends GenerationType, EnrichmentType> = Inserted<V, T, EnrichmentType>;
|
|
259
|
-
|
|
259
|
+
/**
|
|
260
|
+
* Arguments for generating operation content settings.
|
|
261
|
+
*
|
|
262
|
+
* @template V - The value type for the operation
|
|
263
|
+
* @template EnrichmentType - Optional enrichment type for the operation
|
|
264
|
+
*/
|
|
265
|
+
export type ToOperationSettingsArgs<V, EnrichmentType = undefined> = {
|
|
260
266
|
operation: OasOperation;
|
|
261
267
|
insertable: OperationInsertable<V, EnrichmentType>;
|
|
262
268
|
};
|
|
263
|
-
|
|
269
|
+
/**
|
|
270
|
+
* Arguments for building model content settings.
|
|
271
|
+
*
|
|
272
|
+
* @template V - The value type for the model
|
|
273
|
+
* @template EnrichmentType - Optional enrichment type for the model
|
|
274
|
+
*/
|
|
275
|
+
export type BuildModelSettingsArgs<V, EnrichmentType = undefined> = {
|
|
264
276
|
refName: RefName;
|
|
265
277
|
insertable: ModelInsertable<V, EnrichmentType>;
|
|
266
278
|
};
|
|
@@ -390,6 +402,13 @@ export declare class GenerateContext {
|
|
|
390
402
|
* @internal
|
|
391
403
|
*/
|
|
392
404
|
toArtifacts(): GenerateResult;
|
|
405
|
+
/**
|
|
406
|
+
* Executes a function within a traced context for debugging and monitoring.
|
|
407
|
+
*
|
|
408
|
+
* @param token - Trace identifier or path segments
|
|
409
|
+
* @param fn - Function to execute within the trace context
|
|
410
|
+
* @returns The result of the traced function execution
|
|
411
|
+
*/
|
|
393
412
|
trace<T>(token: string | string[], fn: () => T): T;
|
|
394
413
|
/**
|
|
395
414
|
* Create and register a definition with the given `identifier` at `destinationPath`.
|
|
@@ -397,7 +416,12 @@ export declare class GenerateContext {
|
|
|
397
416
|
* @experimental
|
|
398
417
|
*/
|
|
399
418
|
defineAndRegister<V extends GeneratedValue>({ identifier, value, destinationPath, noExport }: DefineAndRegisterArgs<V>): Definition<V>;
|
|
400
|
-
/**
|
|
419
|
+
/**
|
|
420
|
+
* Registers JSON content for output to a file.
|
|
421
|
+
*
|
|
422
|
+
* @experimental This method is experimental and may change in future versions
|
|
423
|
+
* @param args - Registration arguments with destination path and JSON content
|
|
424
|
+
*/
|
|
401
425
|
registerJson({ destinationPath, json }: RegisterJsonArgs): void;
|
|
402
426
|
/**
|
|
403
427
|
* Insert supplied `imports` and `definitions` into file at `destinationPath`.
|
|
@@ -426,6 +450,14 @@ export declare class GenerateContext {
|
|
|
426
450
|
* @mutates this.files
|
|
427
451
|
*/
|
|
428
452
|
insertOperation<V extends GeneratedValue, T extends GenerationType, EnrichmentType = undefined>(insertable: OperationInsertable<V, EnrichmentType>, operation: OasOperation, { generation, destinationPath, noExport }?: InsertOperationOptions<T>): Inserted<V, T, EnrichmentType>;
|
|
453
|
+
/**
|
|
454
|
+
* Inserts a normalized model definition into the generation context.
|
|
455
|
+
*
|
|
456
|
+
* @param insertable - Model insertable configuration with prototype and transform functions
|
|
457
|
+
* @param schema - OAS schema, reference, or void type to generate model from
|
|
458
|
+
* @param options - Insertion options including generation type and destination
|
|
459
|
+
* @returns Inserted model instance with settings and definition
|
|
460
|
+
*/
|
|
429
461
|
insertNormalisedModel<V extends GeneratedValue, Schema extends OasSchema | OasRef<'schema'> | OasVoid, EnrichmentType>(insertable: ModelInsertable<V, EnrichmentType>, { schema, fallbackName, destinationPath }: InsertNormalisedModelArgs<Schema>, { noExport }?: InsertNormalisedModelOptions): InsertNormalisedModelReturn<V, Schema>;
|
|
430
462
|
/**
|
|
431
463
|
* Insert model into the output file with path `destinationPath`.
|
|
@@ -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,CA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