@skmtc/core 0.0.218 → 0.0.220

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.
@@ -9,82 +9,82 @@ export type BaseSettings = {
9
9
  importFrom?: string;
10
10
  };
11
11
  export type BaseSettingsKeyType = 'selected' | 'name' | 'importFrom' | 'exportPath';
12
- export declare const operationsPluginSettings: z.ZodObject<{
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>;
16
- operations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>>;
16
+ operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>;
17
17
  }, "strip", z.ZodTypeAny, {
18
18
  id: string;
19
+ operations: Record<string, Partial<Record<Method, BaseSettings>>>;
19
20
  description?: string | undefined;
20
21
  exportPath?: string | undefined;
21
- operations?: Record<string, Partial<Record<Method, BaseSettings>>> | undefined;
22
22
  }, {
23
23
  id: string;
24
+ operations: Record<string, Partial<Record<Method, BaseSettings>>>;
24
25
  description?: string | undefined;
25
26
  exportPath?: string | undefined;
26
- operations?: Record<string, Partial<Record<Method, BaseSettings>>> | undefined;
27
27
  }>;
28
- export type OperationsPluginSettings = {
28
+ export type OperationsGeneratorSettings = {
29
29
  id: string;
30
30
  exportPath?: string;
31
31
  description?: string;
32
- operations?: Record<string, Partial<Record<Method, BaseSettings>>>;
32
+ operations: Record<string, Partial<Record<Method, BaseSettings>>>;
33
33
  };
34
- export declare const modelsPluginSettings: z.ZodObject<{
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>;
38
- models: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>;
38
+ models: z.ZodRecord<z.ZodString, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>;
39
39
  }, "strip", z.ZodTypeAny, {
40
40
  id: string;
41
+ models: Record<string, BaseSettings>;
41
42
  description?: string | undefined;
42
43
  exportPath?: string | undefined;
43
- models?: Record<string, BaseSettings> | undefined;
44
44
  }, {
45
45
  id: string;
46
+ models: Record<string, BaseSettings>;
46
47
  description?: string | undefined;
47
48
  exportPath?: string | undefined;
48
- models?: Record<string, BaseSettings> | undefined;
49
49
  }>;
50
- export type ModelsPluginSettings = {
50
+ export type ModelsGeneratorSettings = {
51
51
  id: string;
52
52
  exportPath?: string;
53
53
  description?: string;
54
- models?: Record<string, BaseSettings>;
54
+ models: Record<string, BaseSettings>;
55
55
  };
56
- export declare const pluginSettings: z.ZodUnion<[z.ZodObject<{
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>;
60
- operations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>>;
60
+ operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>;
61
61
  }, "strip", z.ZodTypeAny, {
62
62
  id: string;
63
+ operations: Record<string, Partial<Record<Method, BaseSettings>>>;
63
64
  description?: string | undefined;
64
65
  exportPath?: string | undefined;
65
- operations?: Record<string, Partial<Record<Method, BaseSettings>>> | undefined;
66
66
  }, {
67
67
  id: string;
68
+ operations: Record<string, Partial<Record<Method, BaseSettings>>>;
68
69
  description?: string | undefined;
69
70
  exportPath?: string | undefined;
70
- operations?: Record<string, Partial<Record<Method, BaseSettings>>> | undefined;
71
71
  }>, z.ZodObject<{
72
72
  id: z.ZodString;
73
73
  exportPath: z.ZodOptional<z.ZodString>;
74
74
  description: z.ZodOptional<z.ZodString>;
75
- models: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>;
75
+ models: z.ZodRecord<z.ZodString, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>;
76
76
  }, "strip", z.ZodTypeAny, {
77
77
  id: string;
78
+ models: Record<string, BaseSettings>;
78
79
  description?: string | undefined;
79
80
  exportPath?: string | undefined;
80
- models?: Record<string, BaseSettings> | undefined;
81
81
  }, {
82
82
  id: string;
83
+ models: Record<string, BaseSettings>;
83
84
  description?: string | undefined;
84
85
  exportPath?: string | undefined;
85
- models?: Record<string, BaseSettings> | undefined;
86
86
  }>]>;
87
- export type PluginSettings = OperationsPluginSettings | ModelsPluginSettings;
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>>;
@@ -92,69 +92,68 @@ export declare const clientSettings: z.ZodObject<{
92
92
  id: z.ZodString;
93
93
  exportPath: z.ZodOptional<z.ZodString>;
94
94
  description: z.ZodOptional<z.ZodString>;
95
- operations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>>;
95
+ operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>;
96
96
  }, "strip", z.ZodTypeAny, {
97
97
  id: string;
98
+ operations: Record<string, Partial<Record<Method, BaseSettings>>>;
98
99
  description?: string | undefined;
99
100
  exportPath?: string | undefined;
100
- operations?: Record<string, Partial<Record<Method, BaseSettings>>> | undefined;
101
101
  }, {
102
102
  id: string;
103
+ operations: Record<string, Partial<Record<Method, BaseSettings>>>;
103
104
  description?: string | undefined;
104
105
  exportPath?: string | undefined;
105
- operations?: Record<string, Partial<Record<Method, BaseSettings>>> | undefined;
106
106
  }>, z.ZodObject<{
107
107
  id: z.ZodString;
108
108
  exportPath: z.ZodOptional<z.ZodString>;
109
109
  description: z.ZodOptional<z.ZodString>;
110
- models: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>;
110
+ models: z.ZodRecord<z.ZodString, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>;
111
111
  }, "strip", z.ZodTypeAny, {
112
112
  id: string;
113
+ models: Record<string, BaseSettings>;
113
114
  description?: string | undefined;
114
115
  exportPath?: string | undefined;
115
- models?: Record<string, BaseSettings> | undefined;
116
116
  }, {
117
117
  id: string;
118
+ models: Record<string, BaseSettings>;
118
119
  description?: string | undefined;
119
120
  exportPath?: string | undefined;
120
- models?: Record<string, BaseSettings> | undefined;
121
121
  }>]>, "many">>;
122
122
  }, "strip", z.ZodTypeAny, {
123
123
  alias?: Record<string, string> | undefined;
124
124
  basePath?: string | undefined;
125
125
  generators?: ({
126
126
  id: string;
127
+ operations: Record<string, Partial<Record<Method, BaseSettings>>>;
127
128
  description?: string | undefined;
128
129
  exportPath?: string | undefined;
129
- operations?: Record<string, Partial<Record<Method, BaseSettings>>> | undefined;
130
130
  } | {
131
131
  id: string;
132
+ models: Record<string, BaseSettings>;
132
133
  description?: string | undefined;
133
134
  exportPath?: string | undefined;
134
- models?: Record<string, BaseSettings> | undefined;
135
135
  })[] | undefined;
136
136
  }, {
137
137
  alias?: Record<string, string> | undefined;
138
138
  basePath?: string | undefined;
139
139
  generators?: ({
140
140
  id: string;
141
+ operations: Record<string, Partial<Record<Method, BaseSettings>>>;
141
142
  description?: string | undefined;
142
143
  exportPath?: string | undefined;
143
- operations?: Record<string, Partial<Record<Method, BaseSettings>>> | undefined;
144
144
  } | {
145
145
  id: string;
146
+ models: Record<string, BaseSettings>;
146
147
  description?: string | undefined;
147
148
  exportPath?: string | undefined;
148
- models?: Record<string, BaseSettings> | undefined;
149
149
  })[] | undefined;
150
150
  }>;
151
151
  export type ClientSettings = {
152
152
  basePath?: string;
153
153
  alias?: Record<string, string>;
154
- generators?: PluginSettings[];
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,wBAAwB;;;;;;;;;;;;;;;EAKnC,CAAA;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,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AAA;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"}
@@ -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 operationsPluginSettings = z.object({
10
+ export const operationsGeneratorSettings = z.object({
11
11
  id: z.string(),
12
12
  exportPath: z.string().optional(),
13
13
  description: z.string().optional(),
14
- operations: z.record(z.record(method, baseSettings)).optional()
14
+ operations: z.record(z.record(method, baseSettings))
15
15
  });
16
- export const modelsPluginSettings = z.object({
16
+ export const modelsGeneratorSettings = z.object({
17
17
  id: z.string(),
18
18
  exportPath: z.string().optional(),
19
19
  description: z.string().optional(),
20
- models: z.record(baseSettings).optional()
20
+ models: z.record(baseSettings)
21
21
  });
22
- export const pluginSettings = z.union([
23
- operationsPluginSettings,
24
- modelsPluginSettings
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(pluginSettings).optional()
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skmtc/core",
3
- "version": "0.0.218",
3
+ "version": "0.0.220",
4
4
  "main": "./script/mod.js",
5
5
  "module": "./esm/mod.js",
6
6
  "exports": {
@@ -9,82 +9,82 @@ export type BaseSettings = {
9
9
  importFrom?: string;
10
10
  };
11
11
  export type BaseSettingsKeyType = 'selected' | 'name' | 'importFrom' | 'exportPath';
12
- export declare const operationsPluginSettings: z.ZodObject<{
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>;
16
- operations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>>;
16
+ operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>;
17
17
  }, "strip", z.ZodTypeAny, {
18
18
  id: string;
19
+ operations: Record<string, Partial<Record<Method, BaseSettings>>>;
19
20
  description?: string | undefined;
20
21
  exportPath?: string | undefined;
21
- operations?: Record<string, Partial<Record<Method, BaseSettings>>> | undefined;
22
22
  }, {
23
23
  id: string;
24
+ operations: Record<string, Partial<Record<Method, BaseSettings>>>;
24
25
  description?: string | undefined;
25
26
  exportPath?: string | undefined;
26
- operations?: Record<string, Partial<Record<Method, BaseSettings>>> | undefined;
27
27
  }>;
28
- export type OperationsPluginSettings = {
28
+ export type OperationsGeneratorSettings = {
29
29
  id: string;
30
30
  exportPath?: string;
31
31
  description?: string;
32
- operations?: Record<string, Partial<Record<Method, BaseSettings>>>;
32
+ operations: Record<string, Partial<Record<Method, BaseSettings>>>;
33
33
  };
34
- export declare const modelsPluginSettings: z.ZodObject<{
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>;
38
- models: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>;
38
+ models: z.ZodRecord<z.ZodString, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>;
39
39
  }, "strip", z.ZodTypeAny, {
40
40
  id: string;
41
+ models: Record<string, BaseSettings>;
41
42
  description?: string | undefined;
42
43
  exportPath?: string | undefined;
43
- models?: Record<string, BaseSettings> | undefined;
44
44
  }, {
45
45
  id: string;
46
+ models: Record<string, BaseSettings>;
46
47
  description?: string | undefined;
47
48
  exportPath?: string | undefined;
48
- models?: Record<string, BaseSettings> | undefined;
49
49
  }>;
50
- export type ModelsPluginSettings = {
50
+ export type ModelsGeneratorSettings = {
51
51
  id: string;
52
52
  exportPath?: string;
53
53
  description?: string;
54
- models?: Record<string, BaseSettings>;
54
+ models: Record<string, BaseSettings>;
55
55
  };
56
- export declare const pluginSettings: z.ZodUnion<[z.ZodObject<{
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>;
60
- operations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>>;
60
+ operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>;
61
61
  }, "strip", z.ZodTypeAny, {
62
62
  id: string;
63
+ operations: Record<string, Partial<Record<Method, BaseSettings>>>;
63
64
  description?: string | undefined;
64
65
  exportPath?: string | undefined;
65
- operations?: Record<string, Partial<Record<Method, BaseSettings>>> | undefined;
66
66
  }, {
67
67
  id: string;
68
+ operations: Record<string, Partial<Record<Method, BaseSettings>>>;
68
69
  description?: string | undefined;
69
70
  exportPath?: string | undefined;
70
- operations?: Record<string, Partial<Record<Method, BaseSettings>>> | undefined;
71
71
  }>, z.ZodObject<{
72
72
  id: z.ZodString;
73
73
  exportPath: z.ZodOptional<z.ZodString>;
74
74
  description: z.ZodOptional<z.ZodString>;
75
- models: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>;
75
+ models: z.ZodRecord<z.ZodString, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>;
76
76
  }, "strip", z.ZodTypeAny, {
77
77
  id: string;
78
+ models: Record<string, BaseSettings>;
78
79
  description?: string | undefined;
79
80
  exportPath?: string | undefined;
80
- models?: Record<string, BaseSettings> | undefined;
81
81
  }, {
82
82
  id: string;
83
+ models: Record<string, BaseSettings>;
83
84
  description?: string | undefined;
84
85
  exportPath?: string | undefined;
85
- models?: Record<string, BaseSettings> | undefined;
86
86
  }>]>;
87
- export type PluginSettings = OperationsPluginSettings | ModelsPluginSettings;
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>>;
@@ -92,69 +92,68 @@ export declare const clientSettings: z.ZodObject<{
92
92
  id: z.ZodString;
93
93
  exportPath: z.ZodOptional<z.ZodString>;
94
94
  description: z.ZodOptional<z.ZodString>;
95
- operations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>>;
95
+ operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>;
96
96
  }, "strip", z.ZodTypeAny, {
97
97
  id: string;
98
+ operations: Record<string, Partial<Record<Method, BaseSettings>>>;
98
99
  description?: string | undefined;
99
100
  exportPath?: string | undefined;
100
- operations?: Record<string, Partial<Record<Method, BaseSettings>>> | undefined;
101
101
  }, {
102
102
  id: string;
103
+ operations: Record<string, Partial<Record<Method, BaseSettings>>>;
103
104
  description?: string | undefined;
104
105
  exportPath?: string | undefined;
105
- operations?: Record<string, Partial<Record<Method, BaseSettings>>> | undefined;
106
106
  }>, z.ZodObject<{
107
107
  id: z.ZodString;
108
108
  exportPath: z.ZodOptional<z.ZodString>;
109
109
  description: z.ZodOptional<z.ZodString>;
110
- models: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>>;
110
+ models: z.ZodRecord<z.ZodString, z.ZodType<BaseSettings, z.ZodTypeDef, BaseSettings>>;
111
111
  }, "strip", z.ZodTypeAny, {
112
112
  id: string;
113
+ models: Record<string, BaseSettings>;
113
114
  description?: string | undefined;
114
115
  exportPath?: string | undefined;
115
- models?: Record<string, BaseSettings> | undefined;
116
116
  }, {
117
117
  id: string;
118
+ models: Record<string, BaseSettings>;
118
119
  description?: string | undefined;
119
120
  exportPath?: string | undefined;
120
- models?: Record<string, BaseSettings> | undefined;
121
121
  }>]>, "many">>;
122
122
  }, "strip", z.ZodTypeAny, {
123
123
  alias?: Record<string, string> | undefined;
124
124
  basePath?: string | undefined;
125
125
  generators?: ({
126
126
  id: string;
127
+ operations: Record<string, Partial<Record<Method, BaseSettings>>>;
127
128
  description?: string | undefined;
128
129
  exportPath?: string | undefined;
129
- operations?: Record<string, Partial<Record<Method, BaseSettings>>> | undefined;
130
130
  } | {
131
131
  id: string;
132
+ models: Record<string, BaseSettings>;
132
133
  description?: string | undefined;
133
134
  exportPath?: string | undefined;
134
- models?: Record<string, BaseSettings> | undefined;
135
135
  })[] | undefined;
136
136
  }, {
137
137
  alias?: Record<string, string> | undefined;
138
138
  basePath?: string | undefined;
139
139
  generators?: ({
140
140
  id: string;
141
+ operations: Record<string, Partial<Record<Method, BaseSettings>>>;
141
142
  description?: string | undefined;
142
143
  exportPath?: string | undefined;
143
- operations?: Record<string, Partial<Record<Method, BaseSettings>>> | undefined;
144
144
  } | {
145
145
  id: string;
146
+ models: Record<string, BaseSettings>;
146
147
  description?: string | undefined;
147
148
  exportPath?: string | undefined;
148
- models?: Record<string, BaseSettings> | undefined;
149
149
  })[] | undefined;
150
150
  }>;
151
151
  export type ClientSettings = {
152
152
  basePath?: string;
153
153
  alias?: Record<string, string>;
154
- generators?: PluginSettings[];
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,E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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"}
@@ -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.pluginSettings = exports.modelsPluginSettings = exports.operationsPluginSettings = exports.baseSettings = void 0;
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.operationsPluginSettings = zod_1.z.object({
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
- operations: zod_1.z.record(zod_1.z.record(Method_js_1.method, exports.baseSettings)).optional()
17
+ operations: zod_1.z.record(zod_1.z.record(Method_js_1.method, exports.baseSettings))
18
18
  });
19
- exports.modelsPluginSettings = zod_1.z.object({
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
- models: zod_1.z.record(exports.baseSettings).optional()
23
+ models: zod_1.z.record(exports.baseSettings)
24
24
  });
25
- exports.pluginSettings = zod_1.z.union([
26
- exports.operationsPluginSettings,
27
- exports.modelsPluginSettings
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.pluginSettings).optional()
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(),