@skmtc/core 0.0.493 → 0.0.494
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/GenerateContext.d.ts +3 -3
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +10 -10
- package/esm/dsl/model/toModelInsertable.d.ts +2 -2
- package/esm/dsl/model/toModelInsertable.d.ts.map +1 -1
- package/esm/dsl/model/toModelInsertable.js +1 -1
- package/esm/dsl/operation/OperationInsertable.d.ts +1 -1
- package/esm/dsl/operation/OperationInsertable.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationGateway.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationInsertable.d.ts +2 -0
- package/esm/dsl/operation/toOperationInsertable.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationInsertable.js +6 -0
- package/esm/run/toSettings.js +4 -2
- package/esm/types/Settings.d.ts +212 -39
- package/esm/types/Settings.d.ts.map +1 -1
- package/esm/types/Settings.js +1 -1
- package/package.json +1 -1
- package/script/context/GenerateContext.d.ts +3 -3
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +10 -10
- package/script/dsl/model/toModelInsertable.d.ts +2 -2
- package/script/dsl/model/toModelInsertable.d.ts.map +1 -1
- package/script/dsl/model/toModelInsertable.js +1 -1
- package/script/dsl/operation/OperationInsertable.d.ts +1 -1
- package/script/dsl/operation/OperationInsertable.d.ts.map +1 -1
- package/script/dsl/operation/toOperationGateway.d.ts.map +1 -1
- package/script/dsl/operation/toOperationInsertable.d.ts +2 -0
- package/script/dsl/operation/toOperationInsertable.d.ts.map +1 -1
- package/script/dsl/operation/toOperationInsertable.js +6 -0
- package/script/run/toSettings.js +4 -2
- package/script/types/Settings.d.ts +212 -39
- package/script/types/Settings.d.ts.map +1 -1
- package/script/types/Settings.js +1 -1
|
@@ -14,6 +14,7 @@ export type ToOperationInsertableArgs<EnrichmentType> = {
|
|
|
14
14
|
toExportPath: (operation: OasOperation) => string;
|
|
15
15
|
isSupported?: (operation: OasOperation) => boolean;
|
|
16
16
|
toEnrichmentRequest?: (operation: OasOperation) => EnrichmentRequest<EnrichmentType> | undefined;
|
|
17
|
+
toEnrichments?: (value: unknown) => EnrichmentType;
|
|
17
18
|
pinnable?: boolean;
|
|
18
19
|
};
|
|
19
20
|
export declare const toOperationInsertable: <EnrichmentType>(config: ToOperationInsertableArgs<EnrichmentType>) => {
|
|
@@ -38,6 +39,7 @@ export declare const toOperationInsertable: <EnrichmentType>(config: ToOperation
|
|
|
38
39
|
toIdentifier: (operation: OasOperation) => Identifier;
|
|
39
40
|
toExportPath: (operation: OasOperation) => string;
|
|
40
41
|
toEnrichmentRequest: ((operation: OasOperation) => EnrichmentRequest<EnrichmentType> | undefined) | undefined;
|
|
42
|
+
toEnrichments: ((value: unknown) => EnrichmentType) | undefined;
|
|
41
43
|
isSupported: (operation: OasOperation) => boolean;
|
|
42
44
|
pinnable: boolean;
|
|
43
45
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toOperationInsertable.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/toOperationInsertable.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AAEzE,MAAM,MAAM,uBAAuB,CAAC,cAAc,IAAI;IACpD,OAAO,EAAE,eAAe,CAAA;IACxB,QAAQ,EAAE,eAAe,CAAC,cAAc,CAAC,CAAA;IACzC,SAAS,EAAE,YAAY,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,yBAAyB,CAAC,cAA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,YAAY,KAAK,OAAO,CAAA;IAClD,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,iBAAiB,CAAC,cAAc,CAAC,GAAG,SAAS,CAAA;IAChG,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,cAAc,CAAA;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,cAAc,UAC1C,yBAAyB,CAAC,cAAc,CAAC;eAgB7B,uBAAuB,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;8BAzBjC,YAAY,KAAK,UAAU;8BAC3B,YAAY,KAAK,MAAM;sCAEf,YAAY,KAAK,iBAAiB,gBAAgB,GAAG,SAAS;4BACxE,OAAO;6BAFL,YAAY,KAAK,OAAO;;CAmCnD,CAAA"}
|
|
@@ -57,6 +57,12 @@ const toOperationInsertable = (config) => {
|
|
|
57
57
|
writable: true,
|
|
58
58
|
value: config.toEnrichmentRequest?.bind(config)
|
|
59
59
|
}),
|
|
60
|
+
Object.defineProperty(_a, "toEnrichments", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
configurable: true,
|
|
63
|
+
writable: true,
|
|
64
|
+
value: config.toEnrichments?.bind(config)
|
|
65
|
+
}),
|
|
60
66
|
Object.defineProperty(_a, "isSupported", {
|
|
61
67
|
enumerable: true,
|
|
62
68
|
configurable: true,
|
package/script/run/toSettings.js
CHANGED
|
@@ -61,7 +61,9 @@ exports.toSettings = toSettings;
|
|
|
61
61
|
const toModels = ({ defaultSelected, oasDocument, modelsSettings }) => {
|
|
62
62
|
return Object.fromEntries(Object.keys(oasDocument.components?.schemas ?? {}).map(refName => [
|
|
63
63
|
refName,
|
|
64
|
-
modelsSettings?.[refName]
|
|
64
|
+
modelsSettings?.[refName]
|
|
65
|
+
? modelsSettings?.[refName]
|
|
66
|
+
: { selected: defaultSelected, enrichments: undefined }
|
|
65
67
|
]));
|
|
66
68
|
};
|
|
67
69
|
const toOperations = ({ generator, oasDocument, operationsSettings, defaultSelected }) => {
|
|
@@ -72,7 +74,7 @@ const toOperations = ({ generator, oasDocument, operationsSettings, defaultSelec
|
|
|
72
74
|
acc[path] = acc[path] ?? {};
|
|
73
75
|
acc[path][method] = operationsSettings?.[path]?.[method]
|
|
74
76
|
? operationsSettings?.[path]?.[method]
|
|
75
|
-
: { selected: defaultSelected };
|
|
77
|
+
: { selected: defaultSelected, enrichments: undefined };
|
|
76
78
|
return acc;
|
|
77
79
|
}, {});
|
|
78
80
|
};
|
|
@@ -3,42 +3,42 @@ import { type Method } from './Method.js';
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
export declare const enrichedSetting: z.ZodObject<{
|
|
5
5
|
selected: z.ZodBoolean;
|
|
6
|
-
enrichments: z.
|
|
6
|
+
enrichments: z.ZodUnknown;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
selected: boolean;
|
|
9
|
-
enrichments?:
|
|
9
|
+
enrichments?: unknown;
|
|
10
10
|
}, {
|
|
11
11
|
selected: boolean;
|
|
12
|
-
enrichments?:
|
|
12
|
+
enrichments?: unknown;
|
|
13
13
|
}>;
|
|
14
14
|
export type EnrichedSetting = {
|
|
15
15
|
selected: boolean;
|
|
16
|
-
enrichments
|
|
16
|
+
enrichments: unknown;
|
|
17
17
|
};
|
|
18
18
|
export declare const operationsGeneratorSettings: z.ZodObject<{
|
|
19
19
|
id: z.ZodString;
|
|
20
20
|
description: z.ZodOptional<z.ZodString>;
|
|
21
21
|
operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodObject<{
|
|
22
22
|
selected: z.ZodBoolean;
|
|
23
|
-
enrichments: z.
|
|
23
|
+
enrichments: z.ZodUnknown;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
selected: boolean;
|
|
26
|
-
enrichments?:
|
|
26
|
+
enrichments?: unknown;
|
|
27
27
|
}, {
|
|
28
28
|
selected: boolean;
|
|
29
|
-
enrichments?:
|
|
29
|
+
enrichments?: unknown;
|
|
30
30
|
}>>>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
operations: Record<string, Partial<Record<Method, {
|
|
33
33
|
selected: boolean;
|
|
34
|
-
enrichments?:
|
|
34
|
+
enrichments?: unknown;
|
|
35
35
|
}>>>;
|
|
36
36
|
id: string;
|
|
37
37
|
description?: string | undefined;
|
|
38
38
|
}, {
|
|
39
39
|
operations: Record<string, Partial<Record<Method, {
|
|
40
40
|
selected: boolean;
|
|
41
|
-
enrichments?:
|
|
41
|
+
enrichments?: unknown;
|
|
42
42
|
}>>>;
|
|
43
43
|
id: string;
|
|
44
44
|
description?: string | undefined;
|
|
@@ -54,19 +54,19 @@ export declare const modelsGeneratorSettings: z.ZodObject<{
|
|
|
54
54
|
description: z.ZodOptional<z.ZodString>;
|
|
55
55
|
models: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
56
56
|
selected: z.ZodBoolean;
|
|
57
|
-
enrichments: z.
|
|
57
|
+
enrichments: z.ZodUnknown;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
59
|
selected: boolean;
|
|
60
|
-
enrichments?:
|
|
60
|
+
enrichments?: unknown;
|
|
61
61
|
}, {
|
|
62
62
|
selected: boolean;
|
|
63
|
-
enrichments?:
|
|
63
|
+
enrichments?: unknown;
|
|
64
64
|
}>>;
|
|
65
65
|
}, "strip", z.ZodTypeAny, {
|
|
66
66
|
id: string;
|
|
67
67
|
models: Record<string, {
|
|
68
68
|
selected: boolean;
|
|
69
|
-
enrichments?:
|
|
69
|
+
enrichments?: unknown;
|
|
70
70
|
}>;
|
|
71
71
|
description?: string | undefined;
|
|
72
72
|
exportPath?: string | undefined;
|
|
@@ -74,7 +74,7 @@ export declare const modelsGeneratorSettings: z.ZodObject<{
|
|
|
74
74
|
id: string;
|
|
75
75
|
models: Record<string, {
|
|
76
76
|
selected: boolean;
|
|
77
|
-
enrichments?:
|
|
77
|
+
enrichments?: unknown;
|
|
78
78
|
}>;
|
|
79
79
|
description?: string | undefined;
|
|
80
80
|
exportPath?: string | undefined;
|
|
@@ -90,25 +90,25 @@ export declare const clientGeneratorSettings: z.ZodUnion<[z.ZodObject<{
|
|
|
90
90
|
description: z.ZodOptional<z.ZodString>;
|
|
91
91
|
operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodObject<{
|
|
92
92
|
selected: z.ZodBoolean;
|
|
93
|
-
enrichments: z.
|
|
93
|
+
enrichments: z.ZodUnknown;
|
|
94
94
|
}, "strip", z.ZodTypeAny, {
|
|
95
95
|
selected: boolean;
|
|
96
|
-
enrichments?:
|
|
96
|
+
enrichments?: unknown;
|
|
97
97
|
}, {
|
|
98
98
|
selected: boolean;
|
|
99
|
-
enrichments?:
|
|
99
|
+
enrichments?: unknown;
|
|
100
100
|
}>>>;
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
102
|
operations: Record<string, Partial<Record<Method, {
|
|
103
103
|
selected: boolean;
|
|
104
|
-
enrichments?:
|
|
104
|
+
enrichments?: unknown;
|
|
105
105
|
}>>>;
|
|
106
106
|
id: string;
|
|
107
107
|
description?: string | undefined;
|
|
108
108
|
}, {
|
|
109
109
|
operations: Record<string, Partial<Record<Method, {
|
|
110
110
|
selected: boolean;
|
|
111
|
-
enrichments?:
|
|
111
|
+
enrichments?: unknown;
|
|
112
112
|
}>>>;
|
|
113
113
|
id: string;
|
|
114
114
|
description?: string | undefined;
|
|
@@ -118,19 +118,19 @@ export declare const clientGeneratorSettings: z.ZodUnion<[z.ZodObject<{
|
|
|
118
118
|
description: z.ZodOptional<z.ZodString>;
|
|
119
119
|
models: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
120
120
|
selected: z.ZodBoolean;
|
|
121
|
-
enrichments: z.
|
|
121
|
+
enrichments: z.ZodUnknown;
|
|
122
122
|
}, "strip", z.ZodTypeAny, {
|
|
123
123
|
selected: boolean;
|
|
124
|
-
enrichments?:
|
|
124
|
+
enrichments?: unknown;
|
|
125
125
|
}, {
|
|
126
126
|
selected: boolean;
|
|
127
|
-
enrichments?:
|
|
127
|
+
enrichments?: unknown;
|
|
128
128
|
}>>;
|
|
129
129
|
}, "strip", z.ZodTypeAny, {
|
|
130
130
|
id: string;
|
|
131
131
|
models: Record<string, {
|
|
132
132
|
selected: boolean;
|
|
133
|
-
enrichments?:
|
|
133
|
+
enrichments?: unknown;
|
|
134
134
|
}>;
|
|
135
135
|
description?: string | undefined;
|
|
136
136
|
exportPath?: string | undefined;
|
|
@@ -138,7 +138,7 @@ export declare const clientGeneratorSettings: z.ZodUnion<[z.ZodObject<{
|
|
|
138
138
|
id: string;
|
|
139
139
|
models: Record<string, {
|
|
140
140
|
selected: boolean;
|
|
141
|
-
enrichments?:
|
|
141
|
+
enrichments?: unknown;
|
|
142
142
|
}>;
|
|
143
143
|
description?: string | undefined;
|
|
144
144
|
exportPath?: string | undefined;
|
|
@@ -175,25 +175,25 @@ export declare const clientSettings: z.ZodObject<{
|
|
|
175
175
|
description: z.ZodOptional<z.ZodString>;
|
|
176
176
|
operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodObject<{
|
|
177
177
|
selected: z.ZodBoolean;
|
|
178
|
-
enrichments: z.
|
|
178
|
+
enrichments: z.ZodUnknown;
|
|
179
179
|
}, "strip", z.ZodTypeAny, {
|
|
180
180
|
selected: boolean;
|
|
181
|
-
enrichments?:
|
|
181
|
+
enrichments?: unknown;
|
|
182
182
|
}, {
|
|
183
183
|
selected: boolean;
|
|
184
|
-
enrichments?:
|
|
184
|
+
enrichments?: unknown;
|
|
185
185
|
}>>>;
|
|
186
186
|
}, "strip", z.ZodTypeAny, {
|
|
187
187
|
operations: Record<string, Partial<Record<Method, {
|
|
188
188
|
selected: boolean;
|
|
189
|
-
enrichments?:
|
|
189
|
+
enrichments?: unknown;
|
|
190
190
|
}>>>;
|
|
191
191
|
id: string;
|
|
192
192
|
description?: string | undefined;
|
|
193
193
|
}, {
|
|
194
194
|
operations: Record<string, Partial<Record<Method, {
|
|
195
195
|
selected: boolean;
|
|
196
|
-
enrichments?:
|
|
196
|
+
enrichments?: unknown;
|
|
197
197
|
}>>>;
|
|
198
198
|
id: string;
|
|
199
199
|
description?: string | undefined;
|
|
@@ -203,19 +203,19 @@ export declare const clientSettings: z.ZodObject<{
|
|
|
203
203
|
description: z.ZodOptional<z.ZodString>;
|
|
204
204
|
models: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
205
205
|
selected: z.ZodBoolean;
|
|
206
|
-
enrichments: z.
|
|
206
|
+
enrichments: z.ZodUnknown;
|
|
207
207
|
}, "strip", z.ZodTypeAny, {
|
|
208
208
|
selected: boolean;
|
|
209
|
-
enrichments?:
|
|
209
|
+
enrichments?: unknown;
|
|
210
210
|
}, {
|
|
211
211
|
selected: boolean;
|
|
212
|
-
enrichments?:
|
|
212
|
+
enrichments?: unknown;
|
|
213
213
|
}>>;
|
|
214
214
|
}, "strip", z.ZodTypeAny, {
|
|
215
215
|
id: string;
|
|
216
216
|
models: Record<string, {
|
|
217
217
|
selected: boolean;
|
|
218
|
-
enrichments?:
|
|
218
|
+
enrichments?: unknown;
|
|
219
219
|
}>;
|
|
220
220
|
description?: string | undefined;
|
|
221
221
|
exportPath?: string | undefined;
|
|
@@ -223,7 +223,7 @@ export declare const clientSettings: z.ZodObject<{
|
|
|
223
223
|
id: string;
|
|
224
224
|
models: Record<string, {
|
|
225
225
|
selected: boolean;
|
|
226
|
-
enrichments?:
|
|
226
|
+
enrichments?: unknown;
|
|
227
227
|
}>;
|
|
228
228
|
description?: string | undefined;
|
|
229
229
|
exportPath?: string | undefined;
|
|
@@ -232,7 +232,7 @@ export declare const clientSettings: z.ZodObject<{
|
|
|
232
232
|
generators: ({
|
|
233
233
|
operations: Record<string, Partial<Record<Method, {
|
|
234
234
|
selected: boolean;
|
|
235
|
-
enrichments?:
|
|
235
|
+
enrichments?: unknown;
|
|
236
236
|
}>>>;
|
|
237
237
|
id: string;
|
|
238
238
|
description?: string | undefined;
|
|
@@ -240,7 +240,7 @@ export declare const clientSettings: z.ZodObject<{
|
|
|
240
240
|
id: string;
|
|
241
241
|
models: Record<string, {
|
|
242
242
|
selected: boolean;
|
|
243
|
-
enrichments?:
|
|
243
|
+
enrichments?: unknown;
|
|
244
244
|
}>;
|
|
245
245
|
description?: string | undefined;
|
|
246
246
|
exportPath?: string | undefined;
|
|
@@ -254,7 +254,7 @@ export declare const clientSettings: z.ZodObject<{
|
|
|
254
254
|
generators: ({
|
|
255
255
|
operations: Record<string, Partial<Record<Method, {
|
|
256
256
|
selected: boolean;
|
|
257
|
-
enrichments?:
|
|
257
|
+
enrichments?: unknown;
|
|
258
258
|
}>>>;
|
|
259
259
|
id: string;
|
|
260
260
|
description?: string | undefined;
|
|
@@ -262,7 +262,7 @@ export declare const clientSettings: z.ZodObject<{
|
|
|
262
262
|
id: string;
|
|
263
263
|
models: Record<string, {
|
|
264
264
|
selected: boolean;
|
|
265
|
-
enrichments?:
|
|
265
|
+
enrichments?: unknown;
|
|
266
266
|
}>;
|
|
267
267
|
description?: string | undefined;
|
|
268
268
|
exportPath?: string | undefined;
|
|
@@ -284,7 +284,180 @@ export type SkmtcClientConfig = {
|
|
|
284
284
|
deploymentId?: string;
|
|
285
285
|
settings: ClientSettings;
|
|
286
286
|
};
|
|
287
|
-
export declare const skmtcClientConfig: z.
|
|
287
|
+
export declare const skmtcClientConfig: z.ZodObject<{
|
|
288
|
+
serverName: z.ZodOptional<z.ZodString>;
|
|
289
|
+
stackName: z.ZodOptional<z.ZodString>;
|
|
290
|
+
deploymentId: z.ZodOptional<z.ZodString>;
|
|
291
|
+
settings: z.ZodObject<{
|
|
292
|
+
basePath: z.ZodOptional<z.ZodString>;
|
|
293
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
294
|
+
rootPath: z.ZodString;
|
|
295
|
+
moduleName: z.ZodString;
|
|
296
|
+
}, "strip", z.ZodTypeAny, {
|
|
297
|
+
rootPath: string;
|
|
298
|
+
moduleName: string;
|
|
299
|
+
}, {
|
|
300
|
+
rootPath: string;
|
|
301
|
+
moduleName: string;
|
|
302
|
+
}>, "many">>;
|
|
303
|
+
generators: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
304
|
+
id: z.ZodString;
|
|
305
|
+
description: z.ZodOptional<z.ZodString>;
|
|
306
|
+
operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodObject<{
|
|
307
|
+
selected: z.ZodBoolean;
|
|
308
|
+
enrichments: z.ZodUnknown;
|
|
309
|
+
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
selected: boolean;
|
|
311
|
+
enrichments?: unknown;
|
|
312
|
+
}, {
|
|
313
|
+
selected: boolean;
|
|
314
|
+
enrichments?: unknown;
|
|
315
|
+
}>>>;
|
|
316
|
+
}, "strip", z.ZodTypeAny, {
|
|
317
|
+
operations: Record<string, Partial<Record<Method, {
|
|
318
|
+
selected: boolean;
|
|
319
|
+
enrichments?: unknown;
|
|
320
|
+
}>>>;
|
|
321
|
+
id: string;
|
|
322
|
+
description?: string | undefined;
|
|
323
|
+
}, {
|
|
324
|
+
operations: Record<string, Partial<Record<Method, {
|
|
325
|
+
selected: boolean;
|
|
326
|
+
enrichments?: unknown;
|
|
327
|
+
}>>>;
|
|
328
|
+
id: string;
|
|
329
|
+
description?: string | undefined;
|
|
330
|
+
}>, z.ZodObject<{
|
|
331
|
+
id: z.ZodString;
|
|
332
|
+
exportPath: z.ZodOptional<z.ZodString>;
|
|
333
|
+
description: z.ZodOptional<z.ZodString>;
|
|
334
|
+
models: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
335
|
+
selected: z.ZodBoolean;
|
|
336
|
+
enrichments: z.ZodUnknown;
|
|
337
|
+
}, "strip", z.ZodTypeAny, {
|
|
338
|
+
selected: boolean;
|
|
339
|
+
enrichments?: unknown;
|
|
340
|
+
}, {
|
|
341
|
+
selected: boolean;
|
|
342
|
+
enrichments?: unknown;
|
|
343
|
+
}>>;
|
|
344
|
+
}, "strip", z.ZodTypeAny, {
|
|
345
|
+
id: string;
|
|
346
|
+
models: Record<string, {
|
|
347
|
+
selected: boolean;
|
|
348
|
+
enrichments?: unknown;
|
|
349
|
+
}>;
|
|
350
|
+
description?: string | undefined;
|
|
351
|
+
exportPath?: string | undefined;
|
|
352
|
+
}, {
|
|
353
|
+
id: string;
|
|
354
|
+
models: Record<string, {
|
|
355
|
+
selected: boolean;
|
|
356
|
+
enrichments?: unknown;
|
|
357
|
+
}>;
|
|
358
|
+
description?: string | undefined;
|
|
359
|
+
exportPath?: string | undefined;
|
|
360
|
+
}>]>, "many">;
|
|
361
|
+
}, "strip", z.ZodTypeAny, {
|
|
362
|
+
generators: ({
|
|
363
|
+
operations: Record<string, Partial<Record<Method, {
|
|
364
|
+
selected: boolean;
|
|
365
|
+
enrichments?: unknown;
|
|
366
|
+
}>>>;
|
|
367
|
+
id: string;
|
|
368
|
+
description?: string | undefined;
|
|
369
|
+
} | {
|
|
370
|
+
id: string;
|
|
371
|
+
models: Record<string, {
|
|
372
|
+
selected: boolean;
|
|
373
|
+
enrichments?: unknown;
|
|
374
|
+
}>;
|
|
375
|
+
description?: string | undefined;
|
|
376
|
+
exportPath?: string | undefined;
|
|
377
|
+
})[];
|
|
378
|
+
basePath?: string | undefined;
|
|
379
|
+
packages?: {
|
|
380
|
+
rootPath: string;
|
|
381
|
+
moduleName: string;
|
|
382
|
+
}[] | undefined;
|
|
383
|
+
}, {
|
|
384
|
+
generators: ({
|
|
385
|
+
operations: Record<string, Partial<Record<Method, {
|
|
386
|
+
selected: boolean;
|
|
387
|
+
enrichments?: unknown;
|
|
388
|
+
}>>>;
|
|
389
|
+
id: string;
|
|
390
|
+
description?: string | undefined;
|
|
391
|
+
} | {
|
|
392
|
+
id: string;
|
|
393
|
+
models: Record<string, {
|
|
394
|
+
selected: boolean;
|
|
395
|
+
enrichments?: unknown;
|
|
396
|
+
}>;
|
|
397
|
+
description?: string | undefined;
|
|
398
|
+
exportPath?: string | undefined;
|
|
399
|
+
})[];
|
|
400
|
+
basePath?: string | undefined;
|
|
401
|
+
packages?: {
|
|
402
|
+
rootPath: string;
|
|
403
|
+
moduleName: string;
|
|
404
|
+
}[] | undefined;
|
|
405
|
+
}>;
|
|
406
|
+
}, "strip", z.ZodTypeAny, {
|
|
407
|
+
settings: {
|
|
408
|
+
generators: ({
|
|
409
|
+
operations: Record<string, Partial<Record<Method, {
|
|
410
|
+
selected: boolean;
|
|
411
|
+
enrichments?: unknown;
|
|
412
|
+
}>>>;
|
|
413
|
+
id: string;
|
|
414
|
+
description?: string | undefined;
|
|
415
|
+
} | {
|
|
416
|
+
id: string;
|
|
417
|
+
models: Record<string, {
|
|
418
|
+
selected: boolean;
|
|
419
|
+
enrichments?: unknown;
|
|
420
|
+
}>;
|
|
421
|
+
description?: string | undefined;
|
|
422
|
+
exportPath?: string | undefined;
|
|
423
|
+
})[];
|
|
424
|
+
basePath?: string | undefined;
|
|
425
|
+
packages?: {
|
|
426
|
+
rootPath: string;
|
|
427
|
+
moduleName: string;
|
|
428
|
+
}[] | undefined;
|
|
429
|
+
};
|
|
430
|
+
deploymentId?: string | undefined;
|
|
431
|
+
serverName?: string | undefined;
|
|
432
|
+
stackName?: string | undefined;
|
|
433
|
+
}, {
|
|
434
|
+
settings: {
|
|
435
|
+
generators: ({
|
|
436
|
+
operations: Record<string, Partial<Record<Method, {
|
|
437
|
+
selected: boolean;
|
|
438
|
+
enrichments?: unknown;
|
|
439
|
+
}>>>;
|
|
440
|
+
id: string;
|
|
441
|
+
description?: string | undefined;
|
|
442
|
+
} | {
|
|
443
|
+
id: string;
|
|
444
|
+
models: Record<string, {
|
|
445
|
+
selected: boolean;
|
|
446
|
+
enrichments?: unknown;
|
|
447
|
+
}>;
|
|
448
|
+
description?: string | undefined;
|
|
449
|
+
exportPath?: string | undefined;
|
|
450
|
+
})[];
|
|
451
|
+
basePath?: string | undefined;
|
|
452
|
+
packages?: {
|
|
453
|
+
rootPath: string;
|
|
454
|
+
moduleName: string;
|
|
455
|
+
}[] | undefined;
|
|
456
|
+
};
|
|
457
|
+
deploymentId?: string | undefined;
|
|
458
|
+
serverName?: string | undefined;
|
|
459
|
+
stackName?: string | undefined;
|
|
460
|
+
}>;
|
|
288
461
|
export declare const skmtcStackConfig: z.ZodObject<{
|
|
289
462
|
name: z.ZodOptional<z.ZodString>;
|
|
290
463
|
version: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Settings.d.ts","sourceRoot":"","sources":["../../src/types/Settings.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,MAAM,EAAU,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,eAAe;;;;;;;;;EAG1B,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,
|
|
1
|
+
{"version":3,"file":"Settings.d.ts","sourceRoot":"","sources":["../../src/types/Settings.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,MAAM,EAAU,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,eAAe;;;;;;;;;EAG1B,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;EAItC,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAA;IACV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,QAAQ,EAAE,cAAc,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK5B,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAI3B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA"}
|
package/script/types/Settings.js
CHANGED
|
@@ -6,7 +6,7 @@ const Method_js_1 = require("./Method.js");
|
|
|
6
6
|
const zod_1 = require("zod");
|
|
7
7
|
exports.enrichedSetting = zod_1.z.object({
|
|
8
8
|
selected: zod_1.z.boolean(),
|
|
9
|
-
enrichments: zod_1.z.
|
|
9
|
+
enrichments: zod_1.z.unknown()
|
|
10
10
|
});
|
|
11
11
|
exports.operationsGeneratorSettings = zod_1.z.object({
|
|
12
12
|
id: zod_1.z.string(),
|