@skmtc/core 0.0.218 → 0.0.219
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/types/Settings.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type BaseSettings = {
|
|
|
9
9
|
importFrom?: string;
|
|
10
10
|
};
|
|
11
11
|
export type BaseSettingsKeyType = 'selected' | 'name' | 'importFrom' | 'exportPath';
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const operationsGeneratorSettings: z.ZodObject<{
|
|
13
13
|
id: z.ZodString;
|
|
14
14
|
exportPath: z.ZodOptional<z.ZodString>;
|
|
15
15
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -25,13 +25,13 @@ export declare const operationsPluginSettings: z.ZodObject<{
|
|
|
25
25
|
exportPath?: string | undefined;
|
|
26
26
|
operations?: Record<string, Partial<Record<Method, BaseSettings>>> | undefined;
|
|
27
27
|
}>;
|
|
28
|
-
export type
|
|
28
|
+
export type OperationsGeneratorSettings = {
|
|
29
29
|
id: string;
|
|
30
30
|
exportPath?: string;
|
|
31
31
|
description?: string;
|
|
32
32
|
operations?: Record<string, Partial<Record<Method, BaseSettings>>>;
|
|
33
33
|
};
|
|
34
|
-
export declare const
|
|
34
|
+
export declare const modelsGeneratorSettings: z.ZodObject<{
|
|
35
35
|
id: z.ZodString;
|
|
36
36
|
exportPath: z.ZodOptional<z.ZodString>;
|
|
37
37
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -47,13 +47,13 @@ export declare const modelsPluginSettings: z.ZodObject<{
|
|
|
47
47
|
exportPath?: string | undefined;
|
|
48
48
|
models?: Record<string, BaseSettings> | undefined;
|
|
49
49
|
}>;
|
|
50
|
-
export type
|
|
50
|
+
export type ModelsGeneratorSettings = {
|
|
51
51
|
id: string;
|
|
52
52
|
exportPath?: string;
|
|
53
53
|
description?: string;
|
|
54
54
|
models?: Record<string, BaseSettings>;
|
|
55
55
|
};
|
|
56
|
-
export declare const
|
|
56
|
+
export declare const clientGeneratorSettings: z.ZodUnion<[z.ZodObject<{
|
|
57
57
|
id: z.ZodString;
|
|
58
58
|
exportPath: z.ZodOptional<z.ZodString>;
|
|
59
59
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -84,7 +84,7 @@ export declare const pluginSettings: z.ZodUnion<[z.ZodObject<{
|
|
|
84
84
|
exportPath?: string | undefined;
|
|
85
85
|
models?: Record<string, BaseSettings> | undefined;
|
|
86
86
|
}>]>;
|
|
87
|
-
export type
|
|
87
|
+
export type ClientGeneratorSettings = OperationsGeneratorSettings | ModelsGeneratorSettings;
|
|
88
88
|
export declare const clientSettings: z.ZodObject<{
|
|
89
89
|
basePath: z.ZodOptional<z.ZodString>;
|
|
90
90
|
alias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -151,10 +151,9 @@ export declare const clientSettings: z.ZodObject<{
|
|
|
151
151
|
export type ClientSettings = {
|
|
152
152
|
basePath?: string;
|
|
153
153
|
alias?: Record<string, string>;
|
|
154
|
-
generators?:
|
|
154
|
+
generators?: ClientGeneratorSettings[];
|
|
155
155
|
};
|
|
156
156
|
export type SkmtcClientConfig = {
|
|
157
|
-
generatorUrl?: string;
|
|
158
157
|
serverName?: string;
|
|
159
158
|
stackName?: string;
|
|
160
159
|
deploymentId?: string;
|
|
@@ -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,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MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;CACtC,CAAA;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGlC,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAC/B,2BAA2B,GAC3B,uBAAuB,CAAA;AAE3B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIzB,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,UAAU,CAAC,EAAE,uBAAuB,EAAE,CAAA;CACvC,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,UAAU,mCAAiC,CAAA;AAExD,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,OAAO,CAAA;AAE9C,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
|
@@ -7,26 +7,26 @@ export const baseSettings = z.object({
|
|
|
7
7
|
importFrom: z.string().optional(),
|
|
8
8
|
exportPath: z.string().optional()
|
|
9
9
|
});
|
|
10
|
-
export const
|
|
10
|
+
export const operationsGeneratorSettings = z.object({
|
|
11
11
|
id: z.string(),
|
|
12
12
|
exportPath: z.string().optional(),
|
|
13
13
|
description: z.string().optional(),
|
|
14
14
|
operations: z.record(z.record(method, baseSettings)).optional()
|
|
15
15
|
});
|
|
16
|
-
export const
|
|
16
|
+
export const modelsGeneratorSettings = z.object({
|
|
17
17
|
id: z.string(),
|
|
18
18
|
exportPath: z.string().optional(),
|
|
19
19
|
description: z.string().optional(),
|
|
20
20
|
models: z.record(baseSettings).optional()
|
|
21
21
|
});
|
|
22
|
-
export const
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
export const clientGeneratorSettings = z.union([
|
|
23
|
+
operationsGeneratorSettings,
|
|
24
|
+
modelsGeneratorSettings
|
|
25
25
|
]);
|
|
26
26
|
export const clientSettings = z.object({
|
|
27
27
|
basePath: z.string().optional(),
|
|
28
28
|
alias: z.record(z.string()).optional(),
|
|
29
|
-
generators: z.array(
|
|
29
|
+
generators: z.array(clientGeneratorSettings).optional()
|
|
30
30
|
});
|
|
31
31
|
export const skmtcClientConfig = z.object({
|
|
32
32
|
serverName: z.string().optional(),
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ export type BaseSettings = {
|
|
|
9
9
|
importFrom?: string;
|
|
10
10
|
};
|
|
11
11
|
export type BaseSettingsKeyType = 'selected' | 'name' | 'importFrom' | 'exportPath';
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const operationsGeneratorSettings: z.ZodObject<{
|
|
13
13
|
id: z.ZodString;
|
|
14
14
|
exportPath: z.ZodOptional<z.ZodString>;
|
|
15
15
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -25,13 +25,13 @@ export declare const operationsPluginSettings: z.ZodObject<{
|
|
|
25
25
|
exportPath?: string | undefined;
|
|
26
26
|
operations?: Record<string, Partial<Record<Method, BaseSettings>>> | undefined;
|
|
27
27
|
}>;
|
|
28
|
-
export type
|
|
28
|
+
export type OperationsGeneratorSettings = {
|
|
29
29
|
id: string;
|
|
30
30
|
exportPath?: string;
|
|
31
31
|
description?: string;
|
|
32
32
|
operations?: Record<string, Partial<Record<Method, BaseSettings>>>;
|
|
33
33
|
};
|
|
34
|
-
export declare const
|
|
34
|
+
export declare const modelsGeneratorSettings: z.ZodObject<{
|
|
35
35
|
id: z.ZodString;
|
|
36
36
|
exportPath: z.ZodOptional<z.ZodString>;
|
|
37
37
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -47,13 +47,13 @@ export declare const modelsPluginSettings: z.ZodObject<{
|
|
|
47
47
|
exportPath?: string | undefined;
|
|
48
48
|
models?: Record<string, BaseSettings> | undefined;
|
|
49
49
|
}>;
|
|
50
|
-
export type
|
|
50
|
+
export type ModelsGeneratorSettings = {
|
|
51
51
|
id: string;
|
|
52
52
|
exportPath?: string;
|
|
53
53
|
description?: string;
|
|
54
54
|
models?: Record<string, BaseSettings>;
|
|
55
55
|
};
|
|
56
|
-
export declare const
|
|
56
|
+
export declare const clientGeneratorSettings: z.ZodUnion<[z.ZodObject<{
|
|
57
57
|
id: z.ZodString;
|
|
58
58
|
exportPath: z.ZodOptional<z.ZodString>;
|
|
59
59
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -84,7 +84,7 @@ export declare const pluginSettings: z.ZodUnion<[z.ZodObject<{
|
|
|
84
84
|
exportPath?: string | undefined;
|
|
85
85
|
models?: Record<string, BaseSettings> | undefined;
|
|
86
86
|
}>]>;
|
|
87
|
-
export type
|
|
87
|
+
export type ClientGeneratorSettings = OperationsGeneratorSettings | ModelsGeneratorSettings;
|
|
88
88
|
export declare const clientSettings: z.ZodObject<{
|
|
89
89
|
basePath: z.ZodOptional<z.ZodString>;
|
|
90
90
|
alias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -151,10 +151,9 @@ export declare const clientSettings: z.ZodObject<{
|
|
|
151
151
|
export type ClientSettings = {
|
|
152
152
|
basePath?: string;
|
|
153
153
|
alias?: Record<string, string>;
|
|
154
|
-
generators?:
|
|
154
|
+
generators?: ClientGeneratorSettings[];
|
|
155
155
|
};
|
|
156
156
|
export type SkmtcClientConfig = {
|
|
157
|
-
generatorUrl?: string;
|
|
158
157
|
serverName?: string;
|
|
159
158
|
stackName?: string;
|
|
160
159
|
deploymentId?: string;
|
|
@@ -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,
|
|
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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AA;IACrB,QAAQ,EAAE,cAAc,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAKzD,CAAA;AAEF,eAAO,MAAM,UAAU,mCAAiC,CAAA;AAExD,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,OAAO,CAAA;AAE9C,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.pluginType = exports.skmtcClientConfig = exports.clientSettings = exports.
|
|
3
|
+
exports.skmtcServerConfig = exports.pluginType = 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");
|
|
@@ -10,26 +10,26 @@ exports.baseSettings = zod_1.z.object({
|
|
|
10
10
|
importFrom: zod_1.z.string().optional(),
|
|
11
11
|
exportPath: zod_1.z.string().optional()
|
|
12
12
|
});
|
|
13
|
-
exports.
|
|
13
|
+
exports.operationsGeneratorSettings = zod_1.z.object({
|
|
14
14
|
id: zod_1.z.string(),
|
|
15
15
|
exportPath: zod_1.z.string().optional(),
|
|
16
16
|
description: zod_1.z.string().optional(),
|
|
17
17
|
operations: zod_1.z.record(zod_1.z.record(Method_js_1.method, exports.baseSettings)).optional()
|
|
18
18
|
});
|
|
19
|
-
exports.
|
|
19
|
+
exports.modelsGeneratorSettings = zod_1.z.object({
|
|
20
20
|
id: zod_1.z.string(),
|
|
21
21
|
exportPath: zod_1.z.string().optional(),
|
|
22
22
|
description: zod_1.z.string().optional(),
|
|
23
23
|
models: zod_1.z.record(exports.baseSettings).optional()
|
|
24
24
|
});
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
25
|
+
exports.clientGeneratorSettings = zod_1.z.union([
|
|
26
|
+
exports.operationsGeneratorSettings,
|
|
27
|
+
exports.modelsGeneratorSettings
|
|
28
28
|
]);
|
|
29
29
|
exports.clientSettings = zod_1.z.object({
|
|
30
30
|
basePath: zod_1.z.string().optional(),
|
|
31
31
|
alias: zod_1.z.record(zod_1.z.string()).optional(),
|
|
32
|
-
generators: zod_1.z.array(exports.
|
|
32
|
+
generators: zod_1.z.array(exports.clientGeneratorSettings).optional()
|
|
33
33
|
});
|
|
34
34
|
exports.skmtcClientConfig = zod_1.z.object({
|
|
35
35
|
serverName: zod_1.z.string().optional(),
|