@skmtc/core 0.0.465 → 0.0.466
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 +62 -29
- package/esm/dsl/ContentSettings.d.ts +3 -1
- package/esm/dsl/ContentSettings.d.ts.map +1 -1
- package/esm/dsl/ContentSettings.js +10 -2
- package/esm/dsl/File.d.ts +1 -1
- package/esm/dsl/File.d.ts.map +1 -1
- package/esm/dsl/File.js +6 -9
- package/esm/dsl/model/ModelInsertable.d.ts +5 -2
- package/esm/dsl/model/ModelInsertable.d.ts.map +1 -1
- package/esm/dsl/model/toModelInsertable.d.ts +4 -4
- package/esm/dsl/model/toModelInsertable.d.ts.map +1 -1
- package/esm/dsl/operation/OperationInsertable.d.ts +7 -4
- package/esm/dsl/operation/OperationInsertable.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationGateway.d.ts +5 -4
- package/esm/dsl/operation/toOperationGateway.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationInsertable.d.ts +4 -4
- package/esm/dsl/operation/toOperationInsertable.d.ts.map +1 -1
- package/esm/types/Settings.d.ts +482 -52
- package/esm/types/Settings.d.ts.map +1 -1
- package/esm/types/Settings.js +11 -5
- 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 +61 -28
- package/script/dsl/ContentSettings.d.ts +3 -1
- package/script/dsl/ContentSettings.d.ts.map +1 -1
- package/script/dsl/ContentSettings.js +10 -2
- package/script/dsl/File.d.ts +1 -1
- package/script/dsl/File.d.ts.map +1 -1
- package/script/dsl/File.js +6 -9
- package/script/dsl/model/ModelInsertable.d.ts +5 -2
- package/script/dsl/model/ModelInsertable.d.ts.map +1 -1
- package/script/dsl/model/toModelInsertable.d.ts +4 -4
- package/script/dsl/model/toModelInsertable.d.ts.map +1 -1
- package/script/dsl/operation/OperationInsertable.d.ts +7 -4
- package/script/dsl/operation/OperationInsertable.d.ts.map +1 -1
- package/script/dsl/operation/toOperationGateway.d.ts +5 -4
- package/script/dsl/operation/toOperationGateway.d.ts.map +1 -1
- package/script/dsl/operation/toOperationInsertable.d.ts +4 -4
- package/script/dsl/operation/toOperationInsertable.d.ts.map +1 -1
- package/script/types/Settings.d.ts +482 -52
- package/script/types/Settings.d.ts.map +1 -1
- package/script/types/Settings.js +12 -6
package/script/types/Settings.js
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.skmtcStackConfig = exports.generatorType = exports.skmtcClientConfig = exports.clientSettings = exports.modulePackage = exports.clientGeneratorSettings = exports.modelsGeneratorSettings = exports.operationsGeneratorSettings = void 0;
|
|
3
|
+
exports.skmtcStackConfig = exports.generatorType = exports.skmtcClientConfig = exports.clientSettings = exports.modulePackage = 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");
|
|
7
|
+
exports.baseSettings = zod_1.z.object({
|
|
8
|
+
selected: zod_1.z.boolean(),
|
|
9
|
+
name: zod_1.z.string().optional(),
|
|
10
|
+
importFrom: zod_1.z.string().optional(),
|
|
11
|
+
exportPath: zod_1.z.string().optional(),
|
|
12
|
+
parentExportPath: zod_1.z.string().optional()
|
|
13
|
+
});
|
|
7
14
|
exports.operationsGeneratorSettings = zod_1.z.object({
|
|
8
15
|
id: zod_1.z.string(),
|
|
9
16
|
description: zod_1.z.string().optional(),
|
|
10
|
-
operations: zod_1.z.record(zod_1.z.record(Method_js_1.method,
|
|
11
|
-
|
|
17
|
+
operations: zod_1.z.record(zod_1.z.record(Method_js_1.method, exports.baseSettings)),
|
|
18
|
+
baseSettings: exports.baseSettings
|
|
12
19
|
});
|
|
13
20
|
exports.modelsGeneratorSettings = zod_1.z.object({
|
|
14
21
|
id: zod_1.z.string(),
|
|
15
22
|
exportPath: zod_1.z.string().optional(),
|
|
16
23
|
description: zod_1.z.string().optional(),
|
|
17
|
-
models: zod_1.z.record(
|
|
18
|
-
|
|
24
|
+
models: zod_1.z.record(exports.baseSettings),
|
|
25
|
+
baseSettings: exports.baseSettings
|
|
19
26
|
});
|
|
20
27
|
exports.clientGeneratorSettings = zod_1.z.union([
|
|
21
28
|
exports.operationsGeneratorSettings,
|
|
@@ -27,7 +34,6 @@ exports.modulePackage = zod_1.z.object({
|
|
|
27
34
|
});
|
|
28
35
|
exports.clientSettings = zod_1.z.object({
|
|
29
36
|
basePath: zod_1.z.string().optional(),
|
|
30
|
-
alias: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
|
|
31
37
|
packages: zod_1.z.array(exports.modulePackage).optional(),
|
|
32
38
|
generators: zod_1.z.array(exports.clientGeneratorSettings)
|
|
33
39
|
});
|