@skmtc/core 0.0.800 → 0.0.803
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 +2 -2
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.d.ts +16 -3
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/ParseContext.d.ts +3 -3
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/RenderContext.d.ts +153 -1
- package/esm/context/RenderContext.d.ts.map +1 -1
- package/esm/context/RenderContext.js +179 -0
- 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/operation/OperationBase.d.ts +3 -3
- package/esm/dsl/operation/OperationBase.d.ts.map +1 -1
- package/esm/dsl/operation/OperationDriver.d.ts +84 -0
- package/esm/dsl/operation/OperationDriver.d.ts.map +1 -1
- package/esm/dsl/operation/OperationDriver.js +85 -1
- package/esm/dsl/operation/toOperationBase.d.ts +58 -0
- package/esm/dsl/operation/toOperationBase.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationBase.js +46 -0
- package/esm/dsl/operation/toOperationEntry.d.ts +37 -0
- package/esm/dsl/operation/toOperationEntry.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationEntry.js +28 -0
- 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 +52 -0
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +52 -0
- package/esm/oas/array/Array.d.ts +26 -0
- package/esm/oas/array/Array.d.ts.map +1 -1
- package/esm/oas/array/Array.js +26 -0
- package/esm/oas/array/array-types.d.ts +32 -11
- package/esm/oas/array/array-types.d.ts.map +1 -1
- package/esm/oas/array/array-types.js +16 -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.d.ts +26 -0
- package/esm/oas/boolean/Boolean.d.ts.map +1 -1
- package/esm/oas/boolean/Boolean.js +26 -0
- package/esm/oas/boolean/boolean-types.d.ts +1 -7
- package/esm/oas/boolean/boolean-types.d.ts.map +1 -1
- package/esm/oas/boolean/toBoolean.d.ts +57 -0
- package/esm/oas/boolean/toBoolean.d.ts.map +1 -1
- package/esm/oas/boolean/toBoolean.js +57 -0
- 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/number/toNumber.d.ts +62 -0
- package/esm/oas/number/toNumber.d.ts.map +1 -1
- package/esm/oas/number/toNumber.js +62 -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.d.ts +47 -0
- package/esm/oas/parameter/Parameter.d.ts.map +1 -1
- package/esm/oas/parameter/Parameter.js +47 -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/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/CustomValue.d.ts +58 -0
- package/esm/types/CustomValue.d.ts.map +1 -1
- package/esm/types/CustomValue.js +58 -0
- package/esm/types/DenoJson.d.ts +24 -0
- package/esm/types/DenoJson.d.ts.map +1 -1
- package/esm/types/DenoJson.js +12 -0
- package/esm/types/Enrichments.d.ts +103 -0
- package/esm/types/Enrichments.d.ts.map +1 -1
- package/esm/types/Enrichments.js +52 -0
- package/esm/types/GeneratedValue.d.ts +17 -0
- package/esm/types/GeneratedValue.d.ts.map +1 -1
- package/esm/types/Logger.d.ts +9 -0
- package/esm/types/Logger.d.ts.map +1 -0
- package/esm/types/Logger.js +1 -0
- 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 +40 -2
- package/esm/typescript/List.d.ts.map +1 -1
- package/esm/typescript/List.js +32 -0
- package/package.json +1 -1
- package/script/context/CoreContext.d.ts +2 -2
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/GenerateContext.d.ts +16 -3
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/ParseContext.d.ts +3 -3
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/RenderContext.d.ts +153 -1
- package/script/context/RenderContext.d.ts.map +1 -1
- package/script/context/RenderContext.js +179 -0
- 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/operation/OperationBase.d.ts +3 -3
- package/script/dsl/operation/OperationBase.d.ts.map +1 -1
- package/script/dsl/operation/OperationDriver.d.ts +84 -0
- package/script/dsl/operation/OperationDriver.d.ts.map +1 -1
- package/script/dsl/operation/OperationDriver.js +85 -1
- package/script/dsl/operation/toOperationBase.d.ts +58 -0
- package/script/dsl/operation/toOperationBase.d.ts.map +1 -1
- package/script/dsl/operation/toOperationBase.js +46 -0
- package/script/dsl/operation/toOperationEntry.d.ts +37 -0
- package/script/dsl/operation/toOperationEntry.d.ts.map +1 -1
- package/script/dsl/operation/toOperationEntry.js +28 -0
- 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 +52 -0
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +52 -0
- package/script/oas/array/Array.d.ts +26 -0
- package/script/oas/array/Array.d.ts.map +1 -1
- package/script/oas/array/Array.js +26 -0
- package/script/oas/array/array-types.d.ts +32 -11
- package/script/oas/array/array-types.d.ts.map +1 -1
- package/script/oas/array/array-types.js +17 -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.d.ts +26 -0
- package/script/oas/boolean/Boolean.d.ts.map +1 -1
- package/script/oas/boolean/Boolean.js +26 -0
- package/script/oas/boolean/boolean-types.d.ts +1 -7
- package/script/oas/boolean/boolean-types.d.ts.map +1 -1
- package/script/oas/boolean/toBoolean.d.ts +57 -0
- package/script/oas/boolean/toBoolean.d.ts.map +1 -1
- package/script/oas/boolean/toBoolean.js +57 -0
- 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/number/toNumber.d.ts +62 -0
- package/script/oas/number/toNumber.d.ts.map +1 -1
- package/script/oas/number/toNumber.js +62 -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.d.ts +47 -0
- package/script/oas/parameter/Parameter.d.ts.map +1 -1
- package/script/oas/parameter/Parameter.js +47 -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/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/CustomValue.d.ts +58 -0
- package/script/types/CustomValue.d.ts.map +1 -1
- package/script/types/CustomValue.js +58 -0
- package/script/types/DenoJson.d.ts +24 -0
- package/script/types/DenoJson.d.ts.map +1 -1
- package/script/types/DenoJson.js +12 -0
- package/script/types/Enrichments.d.ts +103 -0
- package/script/types/Enrichments.d.ts.map +1 -1
- package/script/types/Enrichments.js +52 -0
- package/script/types/GeneratedValue.d.ts +17 -0
- package/script/types/GeneratedValue.d.ts.map +1 -1
- package/script/types/Logger.d.ts +9 -0
- package/script/types/Logger.d.ts.map +1 -0
- package/script/types/Logger.js +2 -0
- 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 +40 -2
- package/script/typescript/List.d.ts.map +1 -1
- package/script/typescript/List.js +32 -0
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import "../_dnt.polyfills.js";
|
|
2
2
|
import { type ModuleExport } from './ModuleExport.js';
|
|
3
3
|
import * as v from 'valibot';
|
|
4
|
+
/**
|
|
5
|
+
* Valibot schema for form field items.
|
|
6
|
+
*
|
|
7
|
+
* Validates individual form field configurations including input components,
|
|
8
|
+
* labels, placeholders, and data access paths.
|
|
9
|
+
*/
|
|
4
10
|
export declare const formFieldItem: v.GenericSchema<FormFieldItem>;
|
|
11
|
+
/**
|
|
12
|
+
* Configuration for a single form field.
|
|
13
|
+
*
|
|
14
|
+
* Defines how a form field should be rendered, including its input component,
|
|
15
|
+
* label text, data binding path, and optional placeholder text.
|
|
16
|
+
*/
|
|
5
17
|
export type FormFieldItem = {
|
|
6
18
|
id: string;
|
|
7
19
|
accessorPath: string[];
|
|
@@ -9,42 +21,133 @@ export type FormFieldItem = {
|
|
|
9
21
|
label: string;
|
|
10
22
|
placeholder?: string;
|
|
11
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* Valibot schema for form configurations.
|
|
26
|
+
*
|
|
27
|
+
* Validates complete form definitions including title, description,
|
|
28
|
+
* field configurations, and submit button labels.
|
|
29
|
+
*/
|
|
12
30
|
export declare const formItem: v.GenericSchema<FormItem>;
|
|
31
|
+
/**
|
|
32
|
+
* Configuration for a complete form.
|
|
33
|
+
*
|
|
34
|
+
* Represents a form with optional title, description, field definitions,
|
|
35
|
+
* and customizable submit button label.
|
|
36
|
+
*/
|
|
13
37
|
export type FormItem = {
|
|
14
38
|
title?: string;
|
|
15
39
|
description?: string;
|
|
16
40
|
fields?: FormFieldItem[];
|
|
17
41
|
submitLabel?: string;
|
|
18
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* Valibot schema for table column items.
|
|
45
|
+
*
|
|
46
|
+
* Validates table column configurations including formatter components,
|
|
47
|
+
* labels, and data access paths.
|
|
48
|
+
*/
|
|
19
49
|
export declare const tableColumnItem: v.GenericSchema<TableColumnItem>;
|
|
50
|
+
/**
|
|
51
|
+
* Configuration for a single table column.
|
|
52
|
+
*
|
|
53
|
+
* Defines how a table column should be rendered, including its formatter
|
|
54
|
+
* component, display label, and data binding path.
|
|
55
|
+
*/
|
|
20
56
|
export type TableColumnItem = {
|
|
21
57
|
id: string;
|
|
22
58
|
accessorPath: string[];
|
|
23
59
|
formatter: ModuleExport;
|
|
24
60
|
label: string;
|
|
25
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* Valibot schema for table configurations.
|
|
64
|
+
*
|
|
65
|
+
* Validates complete table definitions including title, description,
|
|
66
|
+
* and column configurations.
|
|
67
|
+
*/
|
|
26
68
|
export declare const tableItem: v.GenericSchema<TableItem>;
|
|
69
|
+
/**
|
|
70
|
+
* Configuration for a complete table.
|
|
71
|
+
*
|
|
72
|
+
* Represents a table with optional title, description, and column definitions.
|
|
73
|
+
*/
|
|
27
74
|
export type TableItem = {
|
|
28
75
|
title?: string;
|
|
29
76
|
description?: string;
|
|
30
77
|
columns?: TableColumnItem[];
|
|
31
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
* Valibot schema for input items.
|
|
81
|
+
*
|
|
82
|
+
* Validates input component configurations including formatter components
|
|
83
|
+
* and data access paths.
|
|
84
|
+
*/
|
|
32
85
|
export declare const inputItem: v.GenericSchema<InputItem>;
|
|
86
|
+
/**
|
|
87
|
+
* Configuration for a single input component.
|
|
88
|
+
*
|
|
89
|
+
* Defines how an input should be rendered, including its formatter
|
|
90
|
+
* component and data binding path.
|
|
91
|
+
*/
|
|
33
92
|
export type InputItem = {
|
|
34
93
|
id: string;
|
|
35
94
|
accessorPath: string[];
|
|
36
95
|
formatter: ModuleExport;
|
|
37
96
|
};
|
|
97
|
+
/**
|
|
98
|
+
* Valibot schema for operation-level enrichments.
|
|
99
|
+
*
|
|
100
|
+
* Validates enrichment configurations that can be applied to OpenAPI operations,
|
|
101
|
+
* including table, form, and input component definitions.
|
|
102
|
+
*/
|
|
38
103
|
export declare const operationEnrichments: v.GenericSchema<OperationEnrichments>;
|
|
104
|
+
/**
|
|
105
|
+
* Enrichment configurations for a single OpenAPI operation.
|
|
106
|
+
*
|
|
107
|
+
* Contains optional table, form, and input configurations that can enhance
|
|
108
|
+
* how an operation is presented and interacted with in generated UIs.
|
|
109
|
+
*/
|
|
39
110
|
export type OperationEnrichments = {
|
|
40
111
|
table?: TableItem;
|
|
41
112
|
form?: FormItem;
|
|
42
113
|
input?: InputItem;
|
|
43
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* Valibot schema for HTTP method-level enrichments.
|
|
117
|
+
*
|
|
118
|
+
* Maps HTTP methods (GET, POST, etc.) to their operation enrichment configurations.
|
|
119
|
+
*/
|
|
44
120
|
export declare const methodEnrichments: v.GenericSchema<MethodEnrichments>;
|
|
121
|
+
/**
|
|
122
|
+
* HTTP method to operation enrichments mapping.
|
|
123
|
+
*
|
|
124
|
+
* Associates HTTP methods with their corresponding operation enrichment configurations.
|
|
125
|
+
*/
|
|
45
126
|
export type MethodEnrichments = Record<string, OperationEnrichments>;
|
|
127
|
+
/**
|
|
128
|
+
* Valibot schema for API path-level enrichments.
|
|
129
|
+
*
|
|
130
|
+
* Maps API paths to their method enrichment configurations.
|
|
131
|
+
*/
|
|
46
132
|
export declare const pathEnrichments: v.GenericSchema<PathEnrichments>;
|
|
133
|
+
/**
|
|
134
|
+
* API path to method enrichments mapping.
|
|
135
|
+
*
|
|
136
|
+
* Associates API paths with their corresponding method enrichment configurations.
|
|
137
|
+
*/
|
|
47
138
|
export type PathEnrichments = Record<string, MethodEnrichments>;
|
|
139
|
+
/**
|
|
140
|
+
* Valibot schema for generator-level enrichments.
|
|
141
|
+
*
|
|
142
|
+
* Maps generator IDs to their path enrichment configurations,
|
|
143
|
+
* creating a complete hierarchy of enrichment data.
|
|
144
|
+
*/
|
|
48
145
|
export declare const generatorEnrichments: v.GenericSchema<GeneratorEnrichments>;
|
|
146
|
+
/**
|
|
147
|
+
* Generator ID to path enrichments mapping.
|
|
148
|
+
*
|
|
149
|
+
* Top-level enrichment structure that organizes enrichment data by generator,
|
|
150
|
+
* then by path, then by HTTP method, providing complete enrichment hierarchies.
|
|
151
|
+
*/
|
|
49
152
|
export type GeneratorEnrichments = Record<string, PathEnrichments>;
|
|
50
153
|
//# sourceMappingURL=Enrichments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Enrichments.d.ts","sourceRoot":"","sources":["../../src/types/Enrichments.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACnE,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,aAAa,CAAC,aAAa,CAMvD,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,KAAK,EAAE,YAAY,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,CAAC,CAAC,aAAa,CAAC,QAAQ,CAK7C,CAAA;AAEF,MAAM,MA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M,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;AAE/D;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,aAAa,CAAC,oBAAoB,CAAyC,CAAA;AAEhH;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA"}
|
package/esm/types/Enrichments.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import "../_dnt.polyfills.js";
|
|
2
2
|
import { moduleExport } from './ModuleExport.js';
|
|
3
3
|
import * as v from 'valibot';
|
|
4
|
+
/**
|
|
5
|
+
* Valibot schema for form field items.
|
|
6
|
+
*
|
|
7
|
+
* Validates individual form field configurations including input components,
|
|
8
|
+
* labels, placeholders, and data access paths.
|
|
9
|
+
*/
|
|
4
10
|
export const formFieldItem = v.object({
|
|
5
11
|
id: v.string(),
|
|
6
12
|
accessorPath: v.array(v.string()),
|
|
@@ -8,33 +14,79 @@ export const formFieldItem = v.object({
|
|
|
8
14
|
label: v.string(),
|
|
9
15
|
placeholder: v.optional(v.string())
|
|
10
16
|
});
|
|
17
|
+
/**
|
|
18
|
+
* Valibot schema for form configurations.
|
|
19
|
+
*
|
|
20
|
+
* Validates complete form definitions including title, description,
|
|
21
|
+
* field configurations, and submit button labels.
|
|
22
|
+
*/
|
|
11
23
|
export const formItem = v.object({
|
|
12
24
|
title: v.optional(v.string()),
|
|
13
25
|
description: v.optional(v.string()),
|
|
14
26
|
fields: v.optional(v.array(formFieldItem)),
|
|
15
27
|
submitLabel: v.optional(v.string())
|
|
16
28
|
});
|
|
29
|
+
/**
|
|
30
|
+
* Valibot schema for table column items.
|
|
31
|
+
*
|
|
32
|
+
* Validates table column configurations including formatter components,
|
|
33
|
+
* labels, and data access paths.
|
|
34
|
+
*/
|
|
17
35
|
export const tableColumnItem = v.object({
|
|
18
36
|
id: v.string(),
|
|
19
37
|
accessorPath: v.array(v.string()),
|
|
20
38
|
formatter: moduleExport,
|
|
21
39
|
label: v.string()
|
|
22
40
|
});
|
|
41
|
+
/**
|
|
42
|
+
* Valibot schema for table configurations.
|
|
43
|
+
*
|
|
44
|
+
* Validates complete table definitions including title, description,
|
|
45
|
+
* and column configurations.
|
|
46
|
+
*/
|
|
23
47
|
export const tableItem = v.object({
|
|
24
48
|
title: v.optional(v.string()),
|
|
25
49
|
description: v.optional(v.string()),
|
|
26
50
|
columns: v.optional(v.array(tableColumnItem))
|
|
27
51
|
});
|
|
52
|
+
/**
|
|
53
|
+
* Valibot schema for input items.
|
|
54
|
+
*
|
|
55
|
+
* Validates input component configurations including formatter components
|
|
56
|
+
* and data access paths.
|
|
57
|
+
*/
|
|
28
58
|
export const inputItem = v.object({
|
|
29
59
|
id: v.string(),
|
|
30
60
|
accessorPath: v.array(v.string()),
|
|
31
61
|
formatter: moduleExport
|
|
32
62
|
});
|
|
63
|
+
/**
|
|
64
|
+
* Valibot schema for operation-level enrichments.
|
|
65
|
+
*
|
|
66
|
+
* Validates enrichment configurations that can be applied to OpenAPI operations,
|
|
67
|
+
* including table, form, and input component definitions.
|
|
68
|
+
*/
|
|
33
69
|
export const operationEnrichments = v.object({
|
|
34
70
|
table: v.optional(tableItem),
|
|
35
71
|
form: v.optional(formItem),
|
|
36
72
|
input: v.optional(inputItem)
|
|
37
73
|
});
|
|
74
|
+
/**
|
|
75
|
+
* Valibot schema for HTTP method-level enrichments.
|
|
76
|
+
*
|
|
77
|
+
* Maps HTTP methods (GET, POST, etc.) to their operation enrichment configurations.
|
|
78
|
+
*/
|
|
38
79
|
export const methodEnrichments = v.record(v.string(), operationEnrichments);
|
|
80
|
+
/**
|
|
81
|
+
* Valibot schema for API path-level enrichments.
|
|
82
|
+
*
|
|
83
|
+
* Maps API paths to their method enrichment configurations.
|
|
84
|
+
*/
|
|
39
85
|
export const pathEnrichments = v.record(v.string(), methodEnrichments);
|
|
86
|
+
/**
|
|
87
|
+
* Valibot schema for generator-level enrichments.
|
|
88
|
+
*
|
|
89
|
+
* Maps generator IDs to their path enrichment configurations,
|
|
90
|
+
* creating a complete hierarchy of enrichment data.
|
|
91
|
+
*/
|
|
40
92
|
export const generatorEnrichments = v.record(v.string(), pathEnrichments);
|
|
@@ -12,8 +12,25 @@ import type { GeneratorKey } from './GeneratorKeys.js';
|
|
|
12
12
|
* 'regular' - will generate content only if it is selected.
|
|
13
13
|
*/
|
|
14
14
|
export type GenerationType = 'force' | 'regular';
|
|
15
|
+
/**
|
|
16
|
+
* Represents a value that can be generated by the SKMTC pipeline.
|
|
17
|
+
*
|
|
18
|
+
* Combines the Stringable interface with optional generator key metadata,
|
|
19
|
+
* allowing generated content to be associated with specific generators for
|
|
20
|
+
* tracking and organization purposes.
|
|
21
|
+
*/
|
|
15
22
|
export type GeneratedValue = Stringable & {
|
|
16
23
|
generatorKey?: GeneratorKey;
|
|
17
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* Conditional type for generated definitions based on generation type.
|
|
27
|
+
*
|
|
28
|
+
* When generation type is 'force', always returns a Definition.
|
|
29
|
+
* When generation type is 'regular', returns Definition or undefined
|
|
30
|
+
* based on whether the content is selected for generation.
|
|
31
|
+
*
|
|
32
|
+
* @template V - The generated value type extending GeneratedValue
|
|
33
|
+
* @template T - The generation type ('force' or 'regular')
|
|
34
|
+
*/
|
|
18
35
|
export type GeneratedDefinition<V extends GeneratedValue, T extends GenerationType> = T extends 'force' ? Definition<V> : Definition<V> | undefined;
|
|
19
36
|
//# sourceMappingURL=GeneratedValue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeneratedValue.d.ts","sourceRoot":"","sources":["../../src/types/GeneratedValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEtD;;;;;;;;;GASG;AAEH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,SAAS,CAAA;AAEhD,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG;IACxC,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,mBAAmB,CAC7B,CAAC,SAAS,cAAc,EACxB,CAAC,SAAS,cAAc,IACtB,CAAC,SAAS,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"GeneratedValue.d.ts","sourceRoot":"","sources":["../../src/types/GeneratedValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEtD;;;;;;;;;GASG;AAEH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,SAAS,CAAA;AAEhD;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG;IACxC,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B,CAAA;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,mBAAmB,CAC7B,CAAC,SAAS,cAAc,EACxB,CAAC,SAAS,cAAc,IACtB,CAAC,SAAS,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as log from '../deps/jsr.io/@std/log/0.224.14/mod.js';
|
|
2
|
+
/**
|
|
3
|
+
* Logger type alias for SKMTC operations.
|
|
4
|
+
*
|
|
5
|
+
* Re-exports the @std/log Logger type to maintain public API compatibility
|
|
6
|
+
* while providing type-safe logging throughout the SKMTC pipeline.
|
|
7
|
+
*/
|
|
8
|
+
export type Logger = log.Logger;
|
|
9
|
+
//# sourceMappingURL=Logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Logger.d.ts","sourceRoot":"","sources":["../../src/types/Logger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,MAAM,yCAAyC,CAAA;AAEnE;;;;;GAKG;AACH,MAAM,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/esm/types/Preview.d.ts
CHANGED
|
@@ -33,6 +33,12 @@ export type Mapping = {
|
|
|
33
33
|
module: MappingModule;
|
|
34
34
|
source: OperationSource | ModelSource;
|
|
35
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* Valibot schema for validating operation source objects.
|
|
38
|
+
*
|
|
39
|
+
* Validates operation source structures including type, generator ID,
|
|
40
|
+
* operation path, and HTTP method information.
|
|
41
|
+
*/
|
|
36
42
|
export declare const operationSource: v.ObjectSchema<{
|
|
37
43
|
readonly type: v.LiteralSchema<'operation', undefined>;
|
|
38
44
|
readonly generatorId: v.StringSchema<undefined>;
|
|
@@ -48,14 +54,45 @@ export declare const operationSource: v.ObjectSchema<{
|
|
|
48
54
|
v.LiteralSchema<'trace', undefined>
|
|
49
55
|
], undefined>;
|
|
50
56
|
}, undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* Valibot schema for validating model source objects.
|
|
59
|
+
*
|
|
60
|
+
* Validates model source structures including type, generator ID,
|
|
61
|
+
* and reference name information.
|
|
62
|
+
*/
|
|
51
63
|
export declare const modelSource: v.ObjectSchema<{
|
|
52
64
|
readonly type: v.LiteralSchema<'model', undefined>;
|
|
53
65
|
readonly generatorId: v.StringSchema<undefined>;
|
|
54
66
|
readonly refName: v.StringSchema<undefined>;
|
|
55
67
|
}, undefined>;
|
|
68
|
+
/**
|
|
69
|
+
* Valibot schema for validating preview group values.
|
|
70
|
+
*
|
|
71
|
+
* Validates preview group categories for UI organization.
|
|
72
|
+
*/
|
|
56
73
|
export declare const previewGroup: v.GenericSchema<PreviewGroup>;
|
|
74
|
+
/**
|
|
75
|
+
* Valibot schema for validating preview module objects.
|
|
76
|
+
*
|
|
77
|
+
* Validates preview module structures including group, title, and description.
|
|
78
|
+
*/
|
|
57
79
|
export declare const previewModule: v.GenericSchema<PreviewModule>;
|
|
80
|
+
/**
|
|
81
|
+
* Valibot schema for validating mapping module objects.
|
|
82
|
+
*
|
|
83
|
+
* Validates mapping module structures for file relationship tracking.
|
|
84
|
+
*/
|
|
58
85
|
export declare const mappingModule: v.GenericSchema<MappingModule>;
|
|
86
|
+
/**
|
|
87
|
+
* Valibot schema for validating preview objects.
|
|
88
|
+
*
|
|
89
|
+
* Validates complete preview structures including module and source information.
|
|
90
|
+
*/
|
|
59
91
|
export declare const preview: v.GenericSchema<Preview>;
|
|
92
|
+
/**
|
|
93
|
+
* Valibot schema for validating mapping objects.
|
|
94
|
+
*
|
|
95
|
+
* Validates complete mapping structures including module and source information.
|
|
96
|
+
*/
|
|
60
97
|
export declare const mapping: v.GenericSchema<Mapping>;
|
|
61
98
|
//# sourceMappingURL=Preview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../src/types/Preview.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAU,KAAK,MAAM,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,WAAW,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IAC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AG3C,CAAA"}
|
package/esm/types/Preview.js
CHANGED
|
@@ -1,23 +1,50 @@
|
|
|
1
1
|
import "../_dnt.polyfills.js";
|
|
2
2
|
import { method } from './Method.js';
|
|
3
3
|
import * as v from 'valibot';
|
|
4
|
+
/**
|
|
5
|
+
* Valibot schema for validating operation source objects.
|
|
6
|
+
*
|
|
7
|
+
* Validates operation source structures including type, generator ID,
|
|
8
|
+
* operation path, and HTTP method information.
|
|
9
|
+
*/
|
|
4
10
|
export const operationSource = v.object({
|
|
5
11
|
type: v.literal('operation'),
|
|
6
12
|
generatorId: v.string(),
|
|
7
13
|
operationPath: v.string(),
|
|
8
14
|
operationMethod: method
|
|
9
15
|
});
|
|
16
|
+
/**
|
|
17
|
+
* Valibot schema for validating model source objects.
|
|
18
|
+
*
|
|
19
|
+
* Validates model source structures including type, generator ID,
|
|
20
|
+
* and reference name information.
|
|
21
|
+
*/
|
|
10
22
|
export const modelSource = v.object({
|
|
11
23
|
type: v.literal('model'),
|
|
12
24
|
generatorId: v.string(),
|
|
13
25
|
refName: v.string()
|
|
14
26
|
});
|
|
27
|
+
/**
|
|
28
|
+
* Valibot schema for validating preview group values.
|
|
29
|
+
*
|
|
30
|
+
* Validates preview group categories for UI organization.
|
|
31
|
+
*/
|
|
15
32
|
export const previewGroup = v.picklist(['forms', 'tables', 'inputs']);
|
|
33
|
+
/**
|
|
34
|
+
* Valibot schema for validating preview module objects.
|
|
35
|
+
*
|
|
36
|
+
* Validates preview module structures including group, title, and description.
|
|
37
|
+
*/
|
|
16
38
|
export const previewModule = v.object({
|
|
17
39
|
name: v.string(),
|
|
18
40
|
exportPath: v.string(),
|
|
19
41
|
group: previewGroup
|
|
20
42
|
});
|
|
43
|
+
/**
|
|
44
|
+
* Valibot schema for validating mapping module objects.
|
|
45
|
+
*
|
|
46
|
+
* Validates mapping module structures for file relationship tracking.
|
|
47
|
+
*/
|
|
21
48
|
export const mappingModule = v.object({
|
|
22
49
|
name: v.string(),
|
|
23
50
|
exportPath: v.string(),
|
|
@@ -26,10 +53,20 @@ export const mappingModule = v.object({
|
|
|
26
53
|
schema: v.string()
|
|
27
54
|
});
|
|
28
55
|
const source = v.variant('type', [operationSource, modelSource]);
|
|
56
|
+
/**
|
|
57
|
+
* Valibot schema for validating preview objects.
|
|
58
|
+
*
|
|
59
|
+
* Validates complete preview structures including module and source information.
|
|
60
|
+
*/
|
|
29
61
|
export const preview = v.object({
|
|
30
62
|
module: previewModule,
|
|
31
63
|
source: source
|
|
32
64
|
});
|
|
65
|
+
/**
|
|
66
|
+
* Valibot schema for validating mapping objects.
|
|
67
|
+
*
|
|
68
|
+
* Validates complete mapping structures including module and source information.
|
|
69
|
+
*/
|
|
33
70
|
export const mapping = v.object({
|
|
34
71
|
module: mappingModule,
|
|
35
72
|
source: source
|
package/esm/types/Settings.d.ts
CHANGED
|
@@ -32,9 +32,30 @@ export type ModulePackage = {
|
|
|
32
32
|
/** Optional module name for package.json or imports */
|
|
33
33
|
moduleName?: string;
|
|
34
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* Valibot schema for validating skip paths configuration.
|
|
37
|
+
*
|
|
38
|
+
* Validates path-to-methods mappings for skipping specific operations.
|
|
39
|
+
*/
|
|
35
40
|
export declare const skipPaths: v.GenericSchema<SkipPaths>;
|
|
41
|
+
/**
|
|
42
|
+
* Valibot schema for validating skip operations configuration.
|
|
43
|
+
*
|
|
44
|
+
* Validates generator-to-skip-paths mappings for skipping operations by generator.
|
|
45
|
+
*/
|
|
36
46
|
export declare const skipOperations: v.GenericSchema<SkipOperations>;
|
|
47
|
+
/**
|
|
48
|
+
* Valibot schema for validating skip models configuration.
|
|
49
|
+
*
|
|
50
|
+
* Validates generator-to-model-names mappings for skipping specific models.
|
|
51
|
+
*/
|
|
37
52
|
export declare const skipModels: v.GenericSchema<SkipModels>;
|
|
53
|
+
/**
|
|
54
|
+
* Valibot schema for validating client settings configuration.
|
|
55
|
+
*
|
|
56
|
+
* Validates the complete client settings structure including base paths,
|
|
57
|
+
* packages, skip configurations, and enrichments.
|
|
58
|
+
*/
|
|
38
59
|
export declare const clientSettings: v.GenericSchema<ClientSettings>;
|
|
39
60
|
/**
|
|
40
61
|
* Configuration for skipping specific HTTP methods on API paths.
|
|
@@ -150,9 +171,23 @@ export type ClientSettings = {
|
|
|
150
171
|
/** Array of skip configurations to exclude content */
|
|
151
172
|
skip?: Skip[];
|
|
152
173
|
};
|
|
174
|
+
/**
|
|
175
|
+
* Configuration for SKMTC client with optional project identification.
|
|
176
|
+
*
|
|
177
|
+
* Extends client settings with an optional project key for multi-project
|
|
178
|
+
* environments or organizational contexts.
|
|
179
|
+
*/
|
|
153
180
|
export type SkmtcClientConfig = {
|
|
181
|
+
/** Optional project identifier for organizational contexts */
|
|
154
182
|
projectKey?: string;
|
|
183
|
+
/** Client settings for customizing generation behavior */
|
|
155
184
|
settings: ClientSettings;
|
|
156
185
|
};
|
|
186
|
+
/**
|
|
187
|
+
* Valibot schema for validating SKMTC client configuration.
|
|
188
|
+
*
|
|
189
|
+
* Validates the complete client configuration including project key
|
|
190
|
+
* and client settings structure.
|
|
191
|
+
*/
|
|
157
192
|
export declare const skmtcClientConfig: v.GenericSchema<SkmtcClientConfig>;
|
|
158
193
|
//# sourceMappingURL=Settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Settings.d.ts","sourceRoot":"","sources":["../../src/types/Settings.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAwB,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAClF,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAU,KAAK,MAAM,EAAE,MAAM,aAAa,CAAA;AAEjD;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,aAAa,CAAC,aAAa,CAGvD,CAAA;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,iD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AM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;AAEtD;;;;;GAKG;AACH,MAAM,MAAM,IAAI,GAAG,cAAc,GAAG,UAAU,GAAG,MAAM,CAAA;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAA;IAC1B,kDAAkD;IAClD,WAAW,CAAC,EAAE,oBAAoB,CAAA;IAClC,sDAAsD;IACtD,IAAI,CAAC,EAAE,IAAI,EAAE,CAAA;CACd,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,0DAA0D;IAC1D,QAAQ,EAAE,cAAc,CAAA;CACzB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,aAAa,CAAC,iBAAiB,CAG/D,CAAA"}
|
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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;IACH,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAalC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,cAAc,IAAI,IAAI;IAUtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,SAAS,IAAI,MAAM;IAUnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,QAAQ,IAAI,MAAM;CAoBnB"}
|
package/esm/typescript/List.d.ts
CHANGED
|
@@ -311,13 +311,51 @@ export declare class KeyList {
|
|
|
311
311
|
*/
|
|
312
312
|
toLinesPlain(): ListLines<string>;
|
|
313
313
|
}
|
|
314
|
-
|
|
315
|
-
|
|
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
|
+
*/
|
|
316
330
|
export declare class EntryList<T extends Stringable> {
|
|
331
|
+
/** Array of key-value pair entries */
|
|
317
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
|
+
*/
|
|
318
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
|
+
*/
|
|
319
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
|
+
*/
|
|
320
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
|
+
*/
|
|
321
359
|
toArray<V extends Stringable>(mapFn: EntryMapFn<T, V>): ListArray<V>;
|
|
322
360
|
}
|
|
323
361
|
export {};
|