@skmtc/core 0.0.221 → 0.0.222
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 +4 -4
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +10 -10
- package/esm/dsl/ModelDriver.js +1 -1
- package/esm/dsl/OperationDriver.js +1 -1
- package/esm/schemas/client.d.ts +100 -74
- package/esm/schemas/client.js +32 -10
- package/esm/types/Settings.d.ts +2 -2
- 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 +4 -4
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +10 -10
- package/script/dsl/ModelDriver.js +1 -1
- package/script/dsl/OperationDriver.js +1 -1
- package/script/schemas/client.d.ts +100 -74
- package/script/schemas/client.js +32 -10
- package/script/types/Settings.d.ts +2 -2
- package/script/types/Settings.d.ts.map +1 -1
- package/script/types/Settings.js +2 -2
|
@@ -36,7 +36,7 @@ export type ToTypeSystemArgs = {
|
|
|
36
36
|
destinationPath: string;
|
|
37
37
|
};
|
|
38
38
|
export type GetOperationSettingsArgs = {
|
|
39
|
-
|
|
39
|
+
generatorId: string;
|
|
40
40
|
path: string;
|
|
41
41
|
method: Method;
|
|
42
42
|
};
|
|
@@ -46,7 +46,7 @@ export type AddRenderDependencyArgs = {
|
|
|
46
46
|
dependencies: string[];
|
|
47
47
|
};
|
|
48
48
|
export type GetModelSettingsArgs = {
|
|
49
|
-
|
|
49
|
+
generatorId: string;
|
|
50
50
|
refName: RefName;
|
|
51
51
|
};
|
|
52
52
|
export type TransformArgs<V extends GeneratedValue> = {
|
|
@@ -80,8 +80,8 @@ export declare class GenerateContext {
|
|
|
80
80
|
settings: ContentSettings;
|
|
81
81
|
definition: Definition<V> | undefined;
|
|
82
82
|
};
|
|
83
|
-
getOperationBaseSettings({
|
|
84
|
-
getModelBaseSettings({
|
|
83
|
+
getOperationBaseSettings({ generatorId, path, method }: GetOperationSettingsArgs): BaseSettings;
|
|
84
|
+
getModelBaseSettings({ generatorId, refName }: GetModelSettingsArgs): BaseSettings;
|
|
85
85
|
addFile(normalisedPath: string): FileContents;
|
|
86
86
|
resolveSchemaRefOnce(refName: RefName): OasSchema | OasRef<'schema'>;
|
|
87
87
|
addRenderDependency({ generatorId, dependencies, operation }: AddRenderDependencyArgs): void;
|
|
@@ -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,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,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;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,kBAAkB,EACnB,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAKjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAG1E,OAAO,KAAK,EAAE,cAAc,EA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E,IAAI,EAAE,UAAU,EAAE,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS;CAG7D"}
|
|
@@ -106,13 +106,13 @@ export class GenerateContext {
|
|
|
106
106
|
return { settings, definition };
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
getOperationBaseSettings({
|
|
110
|
-
const
|
|
111
|
-
const operationSettings =
|
|
112
|
-
?
|
|
109
|
+
getOperationBaseSettings({ generatorId, path, method }) {
|
|
110
|
+
const generatorSettings = this.settings?.generators?.find(({ id }) => id === generatorId);
|
|
111
|
+
const operationSettings = generatorSettings && 'operations' in generatorSettings
|
|
112
|
+
? generatorSettings.operations?.[path]?.[method]
|
|
113
113
|
: undefined;
|
|
114
114
|
const exportPath = operationSettings?.exportPath
|
|
115
|
-
? join(
|
|
115
|
+
? join(generatorSettings?.exportPath ?? '', operationSettings?.exportPath)
|
|
116
116
|
: undefined;
|
|
117
117
|
const baseSettings = {
|
|
118
118
|
exportPath,
|
|
@@ -122,13 +122,13 @@ export class GenerateContext {
|
|
|
122
122
|
};
|
|
123
123
|
return baseSettings;
|
|
124
124
|
}
|
|
125
|
-
getModelBaseSettings({
|
|
126
|
-
const
|
|
127
|
-
const modelSettings =
|
|
128
|
-
?
|
|
125
|
+
getModelBaseSettings({ generatorId, refName }) {
|
|
126
|
+
const generatorSettings = this.settings?.generators?.find(({ id }) => id === generatorId);
|
|
127
|
+
const modelSettings = generatorSettings && 'models' in generatorSettings
|
|
128
|
+
? generatorSettings?.models?.[refName]
|
|
129
129
|
: undefined;
|
|
130
130
|
const exportPath = modelSettings?.exportPath
|
|
131
|
-
? join(
|
|
131
|
+
? join(generatorSettings?.exportPath ?? '', modelSettings?.exportPath)
|
|
132
132
|
: undefined;
|
|
133
133
|
const baseSettings = {
|
|
134
134
|
exportPath,
|
package/esm/dsl/ModelDriver.js
CHANGED
|
@@ -115,7 +115,7 @@ export class ModelDriver {
|
|
|
115
115
|
}
|
|
116
116
|
buildModelSettings({ refName, creator }) {
|
|
117
117
|
const baseSettings = this.context.getModelBaseSettings({
|
|
118
|
-
|
|
118
|
+
generatorId: creator.id,
|
|
119
119
|
refName
|
|
120
120
|
});
|
|
121
121
|
const e = creator.toExportPath({ refName, baseSettings });
|
|
@@ -110,7 +110,7 @@ export class OperationDriver {
|
|
|
110
110
|
}
|
|
111
111
|
buildOperationSettings({ operation, creator }) {
|
|
112
112
|
const baseSettings = this.context.getOperationBaseSettings({
|
|
113
|
-
|
|
113
|
+
generatorId: creator.id,
|
|
114
114
|
path: operation.path,
|
|
115
115
|
method: operation.method
|
|
116
116
|
});
|
package/esm/schemas/client.d.ts
CHANGED
|
@@ -5,38 +5,63 @@ declare namespace _default {
|
|
|
5
5
|
let description: string;
|
|
6
6
|
let type: string;
|
|
7
7
|
namespace properties {
|
|
8
|
-
namespace
|
|
8
|
+
namespace serverName {
|
|
9
9
|
let type_1: string;
|
|
10
10
|
export { type_1 as type };
|
|
11
|
-
export namespace additionalProperties {
|
|
12
|
-
let type_2: string;
|
|
13
|
-
export { type_2 as type };
|
|
14
|
-
}
|
|
15
11
|
}
|
|
16
|
-
namespace
|
|
12
|
+
namespace stackName {
|
|
13
|
+
let type_2: string;
|
|
14
|
+
export { type_2 as type };
|
|
15
|
+
}
|
|
16
|
+
namespace deploymentId {
|
|
17
17
|
let type_3: string;
|
|
18
18
|
export { type_3 as type };
|
|
19
19
|
}
|
|
20
|
-
namespace
|
|
20
|
+
namespace settings {
|
|
21
21
|
let $ref: string;
|
|
22
22
|
}
|
|
23
|
-
namespace modelPlugins {
|
|
24
|
-
let $ref_1: string;
|
|
25
|
-
export { $ref_1 as $ref };
|
|
26
|
-
}
|
|
27
23
|
}
|
|
24
|
+
let required: string[];
|
|
28
25
|
namespace definitions {
|
|
29
|
-
namespace
|
|
30
|
-
let type_4: string;
|
|
31
|
-
export { type_4 as type };
|
|
26
|
+
namespace ClientSettings {
|
|
32
27
|
export namespace properties_1 {
|
|
28
|
+
namespace alias {
|
|
29
|
+
let type_4: string;
|
|
30
|
+
export { type_4 as type };
|
|
31
|
+
export namespace additionalProperties {
|
|
32
|
+
let type_5: string;
|
|
33
|
+
export { type_5 as type };
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
namespace basePath {
|
|
37
|
+
let type_6: string;
|
|
38
|
+
export { type_6 as type };
|
|
39
|
+
}
|
|
40
|
+
namespace generators {
|
|
41
|
+
let $ref_1: string;
|
|
42
|
+
export { $ref_1 as $ref };
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export { properties_1 as properties };
|
|
46
|
+
let required_1: string[];
|
|
47
|
+
export { required_1 as required };
|
|
48
|
+
}
|
|
49
|
+
namespace Generators {
|
|
50
|
+
let oneOf: {
|
|
51
|
+
$ref: string;
|
|
52
|
+
}[];
|
|
53
|
+
}
|
|
54
|
+
namespace Schemas {
|
|
55
|
+
let type_7: string;
|
|
56
|
+
export { type_7 as type };
|
|
57
|
+
export namespace properties_2 {
|
|
33
58
|
namespace root {
|
|
34
59
|
let $ref_2: string;
|
|
35
60
|
export { $ref_2 as $ref };
|
|
36
61
|
}
|
|
37
62
|
namespace schemas {
|
|
38
|
-
let
|
|
39
|
-
export {
|
|
63
|
+
let type_8: string;
|
|
64
|
+
export { type_8 as type };
|
|
40
65
|
export namespace additionalProperties_1 {
|
|
41
66
|
let $ref_3: string;
|
|
42
67
|
export { $ref_3 as $ref };
|
|
@@ -44,36 +69,37 @@ declare namespace _default {
|
|
|
44
69
|
export { additionalProperties_1 as additionalProperties };
|
|
45
70
|
}
|
|
46
71
|
}
|
|
47
|
-
export {
|
|
72
|
+
export { properties_2 as properties };
|
|
48
73
|
}
|
|
49
74
|
namespace Root {
|
|
50
|
-
let
|
|
51
|
-
export {
|
|
52
|
-
|
|
53
|
-
export
|
|
75
|
+
let type_9: string;
|
|
76
|
+
export { type_9 as type };
|
|
77
|
+
let required_2: string[];
|
|
78
|
+
export { required_2 as required };
|
|
79
|
+
export namespace properties_3 {
|
|
54
80
|
namespace defaultSelected {
|
|
55
|
-
let
|
|
56
|
-
export {
|
|
81
|
+
let type_10: string;
|
|
82
|
+
export { type_10 as type };
|
|
57
83
|
}
|
|
58
84
|
namespace creatorSource {
|
|
59
|
-
let
|
|
60
|
-
export {
|
|
85
|
+
let type_11: string;
|
|
86
|
+
export { type_11 as type };
|
|
61
87
|
}
|
|
62
88
|
}
|
|
63
|
-
export {
|
|
89
|
+
export { properties_3 as properties };
|
|
64
90
|
export namespace additionalProperties_2 {
|
|
65
|
-
let
|
|
66
|
-
export {
|
|
91
|
+
let type_12: string;
|
|
92
|
+
export { type_12 as type };
|
|
67
93
|
}
|
|
68
94
|
export { additionalProperties_2 as additionalProperties };
|
|
69
95
|
}
|
|
70
96
|
namespace Transformers {
|
|
71
|
-
let
|
|
72
|
-
export {
|
|
97
|
+
let type_13: string;
|
|
98
|
+
export { type_13 as type };
|
|
73
99
|
export namespace additionalProperties_3 {
|
|
74
|
-
let
|
|
75
|
-
export {
|
|
76
|
-
export namespace
|
|
100
|
+
let type_14: string;
|
|
101
|
+
export { type_14 as type };
|
|
102
|
+
export namespace properties_4 {
|
|
77
103
|
export namespace root_1 {
|
|
78
104
|
let $ref_4: string;
|
|
79
105
|
export { $ref_4 as $ref };
|
|
@@ -84,17 +110,17 @@ declare namespace _default {
|
|
|
84
110
|
export { $ref_5 as $ref };
|
|
85
111
|
}
|
|
86
112
|
}
|
|
87
|
-
export {
|
|
113
|
+
export { properties_4 as properties };
|
|
88
114
|
}
|
|
89
115
|
export { additionalProperties_3 as additionalProperties };
|
|
90
116
|
}
|
|
91
117
|
namespace Models {
|
|
92
|
-
let
|
|
93
|
-
export {
|
|
118
|
+
let type_15: string;
|
|
119
|
+
export { type_15 as type };
|
|
94
120
|
export namespace additionalProperties_4 {
|
|
95
|
-
let
|
|
96
|
-
export {
|
|
97
|
-
export namespace
|
|
121
|
+
let type_16: string;
|
|
122
|
+
export { type_16 as type };
|
|
123
|
+
export namespace properties_5 {
|
|
98
124
|
export namespace root_2 {
|
|
99
125
|
let $ref_6: string;
|
|
100
126
|
export { $ref_6 as $ref };
|
|
@@ -105,71 +131,71 @@ declare namespace _default {
|
|
|
105
131
|
export { $ref_7 as $ref };
|
|
106
132
|
}
|
|
107
133
|
}
|
|
108
|
-
export {
|
|
134
|
+
export { properties_5 as properties };
|
|
109
135
|
}
|
|
110
136
|
export { additionalProperties_4 as additionalProperties };
|
|
111
137
|
}
|
|
112
138
|
namespace Operation {
|
|
113
|
-
let
|
|
114
|
-
export {
|
|
115
|
-
let
|
|
116
|
-
export {
|
|
117
|
-
export namespace
|
|
139
|
+
let type_17: string;
|
|
140
|
+
export { type_17 as type };
|
|
141
|
+
let required_3: string[];
|
|
142
|
+
export { required_3 as required };
|
|
143
|
+
export namespace properties_6 {
|
|
118
144
|
namespace selected {
|
|
119
|
-
let
|
|
120
|
-
export {
|
|
145
|
+
let type_18: string;
|
|
146
|
+
export { type_18 as type };
|
|
121
147
|
}
|
|
122
148
|
namespace name {
|
|
123
|
-
let
|
|
124
|
-
export {
|
|
149
|
+
let type_19: string;
|
|
150
|
+
export { type_19 as type };
|
|
125
151
|
}
|
|
126
152
|
namespace importFrom {
|
|
127
|
-
let
|
|
128
|
-
export {
|
|
153
|
+
let type_20: string;
|
|
154
|
+
export { type_20 as type };
|
|
129
155
|
}
|
|
130
156
|
namespace exportPath {
|
|
131
|
-
let
|
|
132
|
-
export {
|
|
157
|
+
let type_21: string;
|
|
158
|
+
export { type_21 as type };
|
|
133
159
|
}
|
|
134
160
|
}
|
|
135
|
-
export {
|
|
161
|
+
export { properties_6 as properties };
|
|
136
162
|
}
|
|
137
163
|
namespace Model {
|
|
138
|
-
let
|
|
139
|
-
export {
|
|
140
|
-
let
|
|
141
|
-
export {
|
|
142
|
-
export namespace
|
|
164
|
+
let type_22: string;
|
|
165
|
+
export { type_22 as type };
|
|
166
|
+
let required_4: string[];
|
|
167
|
+
export { required_4 as required };
|
|
168
|
+
export namespace properties_7 {
|
|
143
169
|
export namespace selected_1 {
|
|
144
|
-
let
|
|
145
|
-
export {
|
|
170
|
+
let type_23: string;
|
|
171
|
+
export { type_23 as type };
|
|
146
172
|
}
|
|
147
173
|
export { selected_1 as selected };
|
|
148
174
|
export namespace name_1 {
|
|
149
|
-
let
|
|
150
|
-
export {
|
|
175
|
+
let type_24: string;
|
|
176
|
+
export { type_24 as type };
|
|
151
177
|
}
|
|
152
178
|
export { name_1 as name };
|
|
153
179
|
export namespace importFrom_1 {
|
|
154
|
-
let
|
|
155
|
-
export {
|
|
180
|
+
let type_25: string;
|
|
181
|
+
export { type_25 as type };
|
|
156
182
|
}
|
|
157
183
|
export { importFrom_1 as importFrom };
|
|
158
184
|
export namespace exportPath_1 {
|
|
159
|
-
let
|
|
160
|
-
export {
|
|
185
|
+
let type_26: string;
|
|
186
|
+
export { type_26 as type };
|
|
161
187
|
}
|
|
162
188
|
export { exportPath_1 as exportPath };
|
|
163
189
|
}
|
|
164
|
-
export {
|
|
190
|
+
export { properties_7 as properties };
|
|
165
191
|
}
|
|
166
192
|
namespace Operations {
|
|
167
|
-
let
|
|
168
|
-
export {
|
|
193
|
+
let type_27: string;
|
|
194
|
+
export { type_27 as type };
|
|
169
195
|
export namespace additionalProperties_5 {
|
|
170
|
-
let
|
|
171
|
-
export {
|
|
172
|
-
export namespace
|
|
196
|
+
let type_28: string;
|
|
197
|
+
export { type_28 as type };
|
|
198
|
+
export namespace properties_8 {
|
|
173
199
|
export namespace get {
|
|
174
200
|
let $ref_8: string;
|
|
175
201
|
export { $ref_8 as $ref };
|
|
@@ -204,7 +230,7 @@ declare namespace _default {
|
|
|
204
230
|
export { $ref_15 as $ref };
|
|
205
231
|
}
|
|
206
232
|
}
|
|
207
|
-
export {
|
|
233
|
+
export { properties_8 as properties };
|
|
208
234
|
}
|
|
209
235
|
export { additionalProperties_5 as additionalProperties };
|
|
210
236
|
}
|
package/esm/schemas/client.js
CHANGED
|
@@ -6,23 +6,45 @@ export default {
|
|
|
6
6
|
"description": "Settings for Skmtc code generation",
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
9
|
-
"
|
|
10
|
-
"type": "
|
|
11
|
-
"additionalProperties": {
|
|
12
|
-
"type": "string"
|
|
13
|
-
}
|
|
9
|
+
"serverName": {
|
|
10
|
+
"type": "string"
|
|
14
11
|
},
|
|
15
|
-
"
|
|
12
|
+
"stackName": {
|
|
16
13
|
"type": "string"
|
|
17
14
|
},
|
|
18
|
-
"
|
|
19
|
-
"
|
|
15
|
+
"deploymentId": {
|
|
16
|
+
"type": "string"
|
|
20
17
|
},
|
|
21
|
-
"
|
|
22
|
-
"$ref": "#/definitions/
|
|
18
|
+
"settings": {
|
|
19
|
+
"$ref": "#/definitions/ClientSettings"
|
|
23
20
|
}
|
|
24
21
|
},
|
|
22
|
+
"required": ["settings"],
|
|
25
23
|
"definitions": {
|
|
24
|
+
"ClientSettings": {
|
|
25
|
+
"properties": {
|
|
26
|
+
"alias": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"basePath": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"generators": {
|
|
36
|
+
"$ref": "#/definitions/Generators"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"required": ["generators"]
|
|
40
|
+
},
|
|
41
|
+
"Generators": {
|
|
42
|
+
"oneOf": [{
|
|
43
|
+
"$ref": "#/definitions/Transformers"
|
|
44
|
+
}, {
|
|
45
|
+
"$ref": "#/definitions/Models"
|
|
46
|
+
}]
|
|
47
|
+
},
|
|
26
48
|
"Schemas": {
|
|
27
49
|
"type": "object",
|
|
28
50
|
"properties": {
|
package/esm/types/Settings.d.ts
CHANGED
|
@@ -160,8 +160,8 @@ export type SkmtcClientConfig = {
|
|
|
160
160
|
settings: ClientSettings;
|
|
161
161
|
};
|
|
162
162
|
export declare const skmtcClientConfig: z.ZodType<SkmtcClientConfig>;
|
|
163
|
-
export declare const
|
|
164
|
-
export type
|
|
163
|
+
export declare const generatorType: z.ZodEnum<["operation", "model"]>;
|
|
164
|
+
export type GeneratorType = 'operation' | 'model';
|
|
165
165
|
export declare const skmtcServerConfig: z.ZodObject<{
|
|
166
166
|
name: z.ZodOptional<z.ZodString>;
|
|
167
167
|
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,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAK/C,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAC3B,UAAU,GACV,MAAM,GACN,YAAY,GACZ,YAAY,CAAA;AAEhB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAKtC,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,CAAA;CAClE,CAAA;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAKlC,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,CAA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;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,cAAc,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAKzD,CAAA;AAEF,eAAO,MAAM,aAAa,mCAAiC,CAAA;AAE3D,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,OAAO,CAAA;AAEjD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAI5B,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA"}
|
package/esm/types/Settings.js
CHANGED
|
@@ -34,7 +34,7 @@ export const skmtcClientConfig = z.object({
|
|
|
34
34
|
deploymentId: z.string().optional(),
|
|
35
35
|
settings: clientSettings
|
|
36
36
|
});
|
|
37
|
-
export const
|
|
37
|
+
export const generatorType = z.enum(['operation', 'model']);
|
|
38
38
|
export const skmtcServerConfig = z.object({
|
|
39
39
|
name: z.string().optional(),
|
|
40
40
|
version: z.string().optional(),
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@ export type ToTypeSystemArgs = {
|
|
|
36
36
|
destinationPath: string;
|
|
37
37
|
};
|
|
38
38
|
export type GetOperationSettingsArgs = {
|
|
39
|
-
|
|
39
|
+
generatorId: string;
|
|
40
40
|
path: string;
|
|
41
41
|
method: Method;
|
|
42
42
|
};
|
|
@@ -46,7 +46,7 @@ export type AddRenderDependencyArgs = {
|
|
|
46
46
|
dependencies: string[];
|
|
47
47
|
};
|
|
48
48
|
export type GetModelSettingsArgs = {
|
|
49
|
-
|
|
49
|
+
generatorId: string;
|
|
50
50
|
refName: RefName;
|
|
51
51
|
};
|
|
52
52
|
export type TransformArgs<V extends GeneratedValue> = {
|
|
@@ -80,8 +80,8 @@ export declare class GenerateContext {
|
|
|
80
80
|
settings: ContentSettings;
|
|
81
81
|
definition: Definition<V> | undefined;
|
|
82
82
|
};
|
|
83
|
-
getOperationBaseSettings({
|
|
84
|
-
getModelBaseSettings({
|
|
83
|
+
getOperationBaseSettings({ generatorId, path, method }: GetOperationSettingsArgs): BaseSettings;
|
|
84
|
+
getModelBaseSettings({ generatorId, refName }: GetModelSettingsArgs): BaseSettings;
|
|
85
85
|
addFile(normalisedPath: string): FileContents;
|
|
86
86
|
resolveSchemaRefOnce(refName: RefName): OasSchema | OasRef<'schema'>;
|
|
87
87
|
addRenderDependency({ generatorId, dependencies, operation }: AddRenderDependencyArgs): void;
|
|
@@ -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,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,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;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,kBAAkB,EACnB,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAKjE,OAAO,KAAK,EAAE,WAAW,E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,QAAQ,CAAC;IAWpE,mBAAmB,CAAC,EAClB,WAAW,EACX,YAAY,EACZ,SAAS,EACV,EAAE,uBAAuB;IAc1B,oDAAoD;IACpD,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS;CAG7D"}
|
|
@@ -109,13 +109,13 @@ class GenerateContext {
|
|
|
109
109
|
return { settings, definition };
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
getOperationBaseSettings({
|
|
113
|
-
const
|
|
114
|
-
const operationSettings =
|
|
115
|
-
?
|
|
112
|
+
getOperationBaseSettings({ generatorId, path, method }) {
|
|
113
|
+
const generatorSettings = this.settings?.generators?.find(({ id }) => id === generatorId);
|
|
114
|
+
const operationSettings = generatorSettings && 'operations' in generatorSettings
|
|
115
|
+
? generatorSettings.operations?.[path]?.[method]
|
|
116
116
|
: undefined;
|
|
117
117
|
const exportPath = operationSettings?.exportPath
|
|
118
|
-
? (0, mod_js_1.join)(
|
|
118
|
+
? (0, mod_js_1.join)(generatorSettings?.exportPath ?? '', operationSettings?.exportPath)
|
|
119
119
|
: undefined;
|
|
120
120
|
const baseSettings = {
|
|
121
121
|
exportPath,
|
|
@@ -125,13 +125,13 @@ class GenerateContext {
|
|
|
125
125
|
};
|
|
126
126
|
return baseSettings;
|
|
127
127
|
}
|
|
128
|
-
getModelBaseSettings({
|
|
129
|
-
const
|
|
130
|
-
const modelSettings =
|
|
131
|
-
?
|
|
128
|
+
getModelBaseSettings({ generatorId, refName }) {
|
|
129
|
+
const generatorSettings = this.settings?.generators?.find(({ id }) => id === generatorId);
|
|
130
|
+
const modelSettings = generatorSettings && 'models' in generatorSettings
|
|
131
|
+
? generatorSettings?.models?.[refName]
|
|
132
132
|
: undefined;
|
|
133
133
|
const exportPath = modelSettings?.exportPath
|
|
134
|
-
? (0, mod_js_1.join)(
|
|
134
|
+
? (0, mod_js_1.join)(generatorSettings?.exportPath ?? '', modelSettings?.exportPath)
|
|
135
135
|
: undefined;
|
|
136
136
|
const baseSettings = {
|
|
137
137
|
exportPath,
|
|
@@ -118,7 +118,7 @@ class ModelDriver {
|
|
|
118
118
|
}
|
|
119
119
|
buildModelSettings({ refName, creator }) {
|
|
120
120
|
const baseSettings = this.context.getModelBaseSettings({
|
|
121
|
-
|
|
121
|
+
generatorId: creator.id,
|
|
122
122
|
refName
|
|
123
123
|
});
|
|
124
124
|
const e = creator.toExportPath({ refName, baseSettings });
|
|
@@ -113,7 +113,7 @@ class OperationDriver {
|
|
|
113
113
|
}
|
|
114
114
|
buildOperationSettings({ operation, creator }) {
|
|
115
115
|
const baseSettings = this.context.getOperationBaseSettings({
|
|
116
|
-
|
|
116
|
+
generatorId: creator.id,
|
|
117
117
|
path: operation.path,
|
|
118
118
|
method: operation.method
|
|
119
119
|
});
|
|
@@ -5,38 +5,63 @@ declare namespace _default {
|
|
|
5
5
|
let description: string;
|
|
6
6
|
let type: string;
|
|
7
7
|
namespace properties {
|
|
8
|
-
namespace
|
|
8
|
+
namespace serverName {
|
|
9
9
|
let type_1: string;
|
|
10
10
|
export { type_1 as type };
|
|
11
|
-
export namespace additionalProperties {
|
|
12
|
-
let type_2: string;
|
|
13
|
-
export { type_2 as type };
|
|
14
|
-
}
|
|
15
11
|
}
|
|
16
|
-
namespace
|
|
12
|
+
namespace stackName {
|
|
13
|
+
let type_2: string;
|
|
14
|
+
export { type_2 as type };
|
|
15
|
+
}
|
|
16
|
+
namespace deploymentId {
|
|
17
17
|
let type_3: string;
|
|
18
18
|
export { type_3 as type };
|
|
19
19
|
}
|
|
20
|
-
namespace
|
|
20
|
+
namespace settings {
|
|
21
21
|
let $ref: string;
|
|
22
22
|
}
|
|
23
|
-
namespace modelPlugins {
|
|
24
|
-
let $ref_1: string;
|
|
25
|
-
export { $ref_1 as $ref };
|
|
26
|
-
}
|
|
27
23
|
}
|
|
24
|
+
let required: string[];
|
|
28
25
|
namespace definitions {
|
|
29
|
-
namespace
|
|
30
|
-
let type_4: string;
|
|
31
|
-
export { type_4 as type };
|
|
26
|
+
namespace ClientSettings {
|
|
32
27
|
export namespace properties_1 {
|
|
28
|
+
namespace alias {
|
|
29
|
+
let type_4: string;
|
|
30
|
+
export { type_4 as type };
|
|
31
|
+
export namespace additionalProperties {
|
|
32
|
+
let type_5: string;
|
|
33
|
+
export { type_5 as type };
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
namespace basePath {
|
|
37
|
+
let type_6: string;
|
|
38
|
+
export { type_6 as type };
|
|
39
|
+
}
|
|
40
|
+
namespace generators {
|
|
41
|
+
let $ref_1: string;
|
|
42
|
+
export { $ref_1 as $ref };
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export { properties_1 as properties };
|
|
46
|
+
let required_1: string[];
|
|
47
|
+
export { required_1 as required };
|
|
48
|
+
}
|
|
49
|
+
namespace Generators {
|
|
50
|
+
let oneOf: {
|
|
51
|
+
$ref: string;
|
|
52
|
+
}[];
|
|
53
|
+
}
|
|
54
|
+
namespace Schemas {
|
|
55
|
+
let type_7: string;
|
|
56
|
+
export { type_7 as type };
|
|
57
|
+
export namespace properties_2 {
|
|
33
58
|
namespace root {
|
|
34
59
|
let $ref_2: string;
|
|
35
60
|
export { $ref_2 as $ref };
|
|
36
61
|
}
|
|
37
62
|
namespace schemas {
|
|
38
|
-
let
|
|
39
|
-
export {
|
|
63
|
+
let type_8: string;
|
|
64
|
+
export { type_8 as type };
|
|
40
65
|
export namespace additionalProperties_1 {
|
|
41
66
|
let $ref_3: string;
|
|
42
67
|
export { $ref_3 as $ref };
|
|
@@ -44,36 +69,37 @@ declare namespace _default {
|
|
|
44
69
|
export { additionalProperties_1 as additionalProperties };
|
|
45
70
|
}
|
|
46
71
|
}
|
|
47
|
-
export {
|
|
72
|
+
export { properties_2 as properties };
|
|
48
73
|
}
|
|
49
74
|
namespace Root {
|
|
50
|
-
let
|
|
51
|
-
export {
|
|
52
|
-
|
|
53
|
-
export
|
|
75
|
+
let type_9: string;
|
|
76
|
+
export { type_9 as type };
|
|
77
|
+
let required_2: string[];
|
|
78
|
+
export { required_2 as required };
|
|
79
|
+
export namespace properties_3 {
|
|
54
80
|
namespace defaultSelected {
|
|
55
|
-
let
|
|
56
|
-
export {
|
|
81
|
+
let type_10: string;
|
|
82
|
+
export { type_10 as type };
|
|
57
83
|
}
|
|
58
84
|
namespace creatorSource {
|
|
59
|
-
let
|
|
60
|
-
export {
|
|
85
|
+
let type_11: string;
|
|
86
|
+
export { type_11 as type };
|
|
61
87
|
}
|
|
62
88
|
}
|
|
63
|
-
export {
|
|
89
|
+
export { properties_3 as properties };
|
|
64
90
|
export namespace additionalProperties_2 {
|
|
65
|
-
let
|
|
66
|
-
export {
|
|
91
|
+
let type_12: string;
|
|
92
|
+
export { type_12 as type };
|
|
67
93
|
}
|
|
68
94
|
export { additionalProperties_2 as additionalProperties };
|
|
69
95
|
}
|
|
70
96
|
namespace Transformers {
|
|
71
|
-
let
|
|
72
|
-
export {
|
|
97
|
+
let type_13: string;
|
|
98
|
+
export { type_13 as type };
|
|
73
99
|
export namespace additionalProperties_3 {
|
|
74
|
-
let
|
|
75
|
-
export {
|
|
76
|
-
export namespace
|
|
100
|
+
let type_14: string;
|
|
101
|
+
export { type_14 as type };
|
|
102
|
+
export namespace properties_4 {
|
|
77
103
|
export namespace root_1 {
|
|
78
104
|
let $ref_4: string;
|
|
79
105
|
export { $ref_4 as $ref };
|
|
@@ -84,17 +110,17 @@ declare namespace _default {
|
|
|
84
110
|
export { $ref_5 as $ref };
|
|
85
111
|
}
|
|
86
112
|
}
|
|
87
|
-
export {
|
|
113
|
+
export { properties_4 as properties };
|
|
88
114
|
}
|
|
89
115
|
export { additionalProperties_3 as additionalProperties };
|
|
90
116
|
}
|
|
91
117
|
namespace Models {
|
|
92
|
-
let
|
|
93
|
-
export {
|
|
118
|
+
let type_15: string;
|
|
119
|
+
export { type_15 as type };
|
|
94
120
|
export namespace additionalProperties_4 {
|
|
95
|
-
let
|
|
96
|
-
export {
|
|
97
|
-
export namespace
|
|
121
|
+
let type_16: string;
|
|
122
|
+
export { type_16 as type };
|
|
123
|
+
export namespace properties_5 {
|
|
98
124
|
export namespace root_2 {
|
|
99
125
|
let $ref_6: string;
|
|
100
126
|
export { $ref_6 as $ref };
|
|
@@ -105,71 +131,71 @@ declare namespace _default {
|
|
|
105
131
|
export { $ref_7 as $ref };
|
|
106
132
|
}
|
|
107
133
|
}
|
|
108
|
-
export {
|
|
134
|
+
export { properties_5 as properties };
|
|
109
135
|
}
|
|
110
136
|
export { additionalProperties_4 as additionalProperties };
|
|
111
137
|
}
|
|
112
138
|
namespace Operation {
|
|
113
|
-
let
|
|
114
|
-
export {
|
|
115
|
-
let
|
|
116
|
-
export {
|
|
117
|
-
export namespace
|
|
139
|
+
let type_17: string;
|
|
140
|
+
export { type_17 as type };
|
|
141
|
+
let required_3: string[];
|
|
142
|
+
export { required_3 as required };
|
|
143
|
+
export namespace properties_6 {
|
|
118
144
|
namespace selected {
|
|
119
|
-
let
|
|
120
|
-
export {
|
|
145
|
+
let type_18: string;
|
|
146
|
+
export { type_18 as type };
|
|
121
147
|
}
|
|
122
148
|
namespace name {
|
|
123
|
-
let
|
|
124
|
-
export {
|
|
149
|
+
let type_19: string;
|
|
150
|
+
export { type_19 as type };
|
|
125
151
|
}
|
|
126
152
|
namespace importFrom {
|
|
127
|
-
let
|
|
128
|
-
export {
|
|
153
|
+
let type_20: string;
|
|
154
|
+
export { type_20 as type };
|
|
129
155
|
}
|
|
130
156
|
namespace exportPath {
|
|
131
|
-
let
|
|
132
|
-
export {
|
|
157
|
+
let type_21: string;
|
|
158
|
+
export { type_21 as type };
|
|
133
159
|
}
|
|
134
160
|
}
|
|
135
|
-
export {
|
|
161
|
+
export { properties_6 as properties };
|
|
136
162
|
}
|
|
137
163
|
namespace Model {
|
|
138
|
-
let
|
|
139
|
-
export {
|
|
140
|
-
let
|
|
141
|
-
export {
|
|
142
|
-
export namespace
|
|
164
|
+
let type_22: string;
|
|
165
|
+
export { type_22 as type };
|
|
166
|
+
let required_4: string[];
|
|
167
|
+
export { required_4 as required };
|
|
168
|
+
export namespace properties_7 {
|
|
143
169
|
export namespace selected_1 {
|
|
144
|
-
let
|
|
145
|
-
export {
|
|
170
|
+
let type_23: string;
|
|
171
|
+
export { type_23 as type };
|
|
146
172
|
}
|
|
147
173
|
export { selected_1 as selected };
|
|
148
174
|
export namespace name_1 {
|
|
149
|
-
let
|
|
150
|
-
export {
|
|
175
|
+
let type_24: string;
|
|
176
|
+
export { type_24 as type };
|
|
151
177
|
}
|
|
152
178
|
export { name_1 as name };
|
|
153
179
|
export namespace importFrom_1 {
|
|
154
|
-
let
|
|
155
|
-
export {
|
|
180
|
+
let type_25: string;
|
|
181
|
+
export { type_25 as type };
|
|
156
182
|
}
|
|
157
183
|
export { importFrom_1 as importFrom };
|
|
158
184
|
export namespace exportPath_1 {
|
|
159
|
-
let
|
|
160
|
-
export {
|
|
185
|
+
let type_26: string;
|
|
186
|
+
export { type_26 as type };
|
|
161
187
|
}
|
|
162
188
|
export { exportPath_1 as exportPath };
|
|
163
189
|
}
|
|
164
|
-
export {
|
|
190
|
+
export { properties_7 as properties };
|
|
165
191
|
}
|
|
166
192
|
namespace Operations {
|
|
167
|
-
let
|
|
168
|
-
export {
|
|
193
|
+
let type_27: string;
|
|
194
|
+
export { type_27 as type };
|
|
169
195
|
export namespace additionalProperties_5 {
|
|
170
|
-
let
|
|
171
|
-
export {
|
|
172
|
-
export namespace
|
|
196
|
+
let type_28: string;
|
|
197
|
+
export { type_28 as type };
|
|
198
|
+
export namespace properties_8 {
|
|
173
199
|
export namespace get {
|
|
174
200
|
let $ref_8: string;
|
|
175
201
|
export { $ref_8 as $ref };
|
|
@@ -204,7 +230,7 @@ declare namespace _default {
|
|
|
204
230
|
export { $ref_15 as $ref };
|
|
205
231
|
}
|
|
206
232
|
}
|
|
207
|
-
export {
|
|
233
|
+
export { properties_8 as properties };
|
|
208
234
|
}
|
|
209
235
|
export { additionalProperties_5 as additionalProperties };
|
|
210
236
|
}
|
package/script/schemas/client.js
CHANGED
|
@@ -8,23 +8,45 @@ exports.default = {
|
|
|
8
8
|
"description": "Settings for Skmtc code generation",
|
|
9
9
|
"type": "object",
|
|
10
10
|
"properties": {
|
|
11
|
-
"
|
|
12
|
-
"type": "
|
|
13
|
-
"additionalProperties": {
|
|
14
|
-
"type": "string"
|
|
15
|
-
}
|
|
11
|
+
"serverName": {
|
|
12
|
+
"type": "string"
|
|
16
13
|
},
|
|
17
|
-
"
|
|
14
|
+
"stackName": {
|
|
18
15
|
"type": "string"
|
|
19
16
|
},
|
|
20
|
-
"
|
|
21
|
-
"
|
|
17
|
+
"deploymentId": {
|
|
18
|
+
"type": "string"
|
|
22
19
|
},
|
|
23
|
-
"
|
|
24
|
-
"$ref": "#/definitions/
|
|
20
|
+
"settings": {
|
|
21
|
+
"$ref": "#/definitions/ClientSettings"
|
|
25
22
|
}
|
|
26
23
|
},
|
|
24
|
+
"required": ["settings"],
|
|
27
25
|
"definitions": {
|
|
26
|
+
"ClientSettings": {
|
|
27
|
+
"properties": {
|
|
28
|
+
"alias": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"additionalProperties": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"basePath": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"generators": {
|
|
38
|
+
"$ref": "#/definitions/Generators"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"required": ["generators"]
|
|
42
|
+
},
|
|
43
|
+
"Generators": {
|
|
44
|
+
"oneOf": [{
|
|
45
|
+
"$ref": "#/definitions/Transformers"
|
|
46
|
+
}, {
|
|
47
|
+
"$ref": "#/definitions/Models"
|
|
48
|
+
}]
|
|
49
|
+
},
|
|
28
50
|
"Schemas": {
|
|
29
51
|
"type": "object",
|
|
30
52
|
"properties": {
|
|
@@ -160,8 +160,8 @@ export type SkmtcClientConfig = {
|
|
|
160
160
|
settings: ClientSettings;
|
|
161
161
|
};
|
|
162
162
|
export declare const skmtcClientConfig: z.ZodType<SkmtcClientConfig>;
|
|
163
|
-
export declare const
|
|
164
|
-
export type
|
|
163
|
+
export declare const generatorType: z.ZodEnum<["operation", "model"]>;
|
|
164
|
+
export type GeneratorType = 'operation' | 'model';
|
|
165
165
|
export declare const skmtcServerConfig: z.ZodObject<{
|
|
166
166
|
name: z.ZodOptional<z.ZodString>;
|
|
167
167
|
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,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAK/C,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAC3B,UAAU,GACV,MAAM,GACN,YAAY,GACZ,YAAY,CAAA;AAEhB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAKtC,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,CAAA;CAClE,CAAA;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;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AuB,EAAE,CAAA;CACtC,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,cAAc,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAKzD,CAAA;AAEF,eAAO,MAAM,aAAa,mCAAiC,CAAA;AAE3D,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,OAAO,CAAA;AAEjD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAI5B,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.skmtcServerConfig = exports.
|
|
3
|
+
exports.skmtcServerConfig = exports.generatorType = exports.skmtcClientConfig = exports.clientSettings = exports.clientGeneratorSettings = exports.modelsGeneratorSettings = exports.operationsGeneratorSettings = exports.baseSettings = void 0;
|
|
4
4
|
require("../_dnt.polyfills.js");
|
|
5
5
|
const Method_js_1 = require("./Method.js");
|
|
6
6
|
const zod_1 = require("zod");
|
|
@@ -37,7 +37,7 @@ exports.skmtcClientConfig = zod_1.z.object({
|
|
|
37
37
|
deploymentId: zod_1.z.string().optional(),
|
|
38
38
|
settings: exports.clientSettings
|
|
39
39
|
});
|
|
40
|
-
exports.
|
|
40
|
+
exports.generatorType = zod_1.z.enum(['operation', 'model']);
|
|
41
41
|
exports.skmtcServerConfig = zod_1.z.object({
|
|
42
42
|
name: zod_1.z.string().optional(),
|
|
43
43
|
version: zod_1.z.string().optional(),
|