@skmtc/core 0.0.463 → 0.0.465

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.
Files changed (45) hide show
  1. package/esm/context/GenerateContext.d.ts +3 -3
  2. package/esm/context/GenerateContext.d.ts.map +1 -1
  3. package/esm/context/GenerateContext.js +29 -62
  4. package/esm/dsl/ContentSettings.d.ts +1 -3
  5. package/esm/dsl/ContentSettings.d.ts.map +1 -1
  6. package/esm/dsl/ContentSettings.js +2 -10
  7. package/esm/dsl/File.d.ts +1 -1
  8. package/esm/dsl/File.d.ts.map +1 -1
  9. package/esm/dsl/File.js +9 -6
  10. package/esm/dsl/model/ModelInsertable.d.ts +2 -5
  11. package/esm/dsl/model/ModelInsertable.d.ts.map +1 -1
  12. package/esm/dsl/model/toModelInsertable.d.ts +4 -4
  13. package/esm/dsl/model/toModelInsertable.d.ts.map +1 -1
  14. package/esm/dsl/operation/OperationInsertable.d.ts +4 -7
  15. package/esm/dsl/operation/OperationInsertable.d.ts.map +1 -1
  16. package/esm/dsl/operation/toOperationGateway.d.ts +4 -5
  17. package/esm/dsl/operation/toOperationGateway.d.ts.map +1 -1
  18. package/esm/dsl/operation/toOperationInsertable.d.ts +4 -4
  19. package/esm/dsl/operation/toOperationInsertable.d.ts.map +1 -1
  20. package/esm/types/Settings.d.ts +52 -482
  21. package/esm/types/Settings.d.ts.map +1 -1
  22. package/esm/types/Settings.js +5 -11
  23. package/package.json +1 -1
  24. package/script/context/GenerateContext.d.ts +3 -3
  25. package/script/context/GenerateContext.d.ts.map +1 -1
  26. package/script/context/GenerateContext.js +28 -61
  27. package/script/dsl/ContentSettings.d.ts +1 -3
  28. package/script/dsl/ContentSettings.d.ts.map +1 -1
  29. package/script/dsl/ContentSettings.js +2 -10
  30. package/script/dsl/File.d.ts +1 -1
  31. package/script/dsl/File.d.ts.map +1 -1
  32. package/script/dsl/File.js +9 -6
  33. package/script/dsl/model/ModelInsertable.d.ts +2 -5
  34. package/script/dsl/model/ModelInsertable.d.ts.map +1 -1
  35. package/script/dsl/model/toModelInsertable.d.ts +4 -4
  36. package/script/dsl/model/toModelInsertable.d.ts.map +1 -1
  37. package/script/dsl/operation/OperationInsertable.d.ts +4 -7
  38. package/script/dsl/operation/OperationInsertable.d.ts.map +1 -1
  39. package/script/dsl/operation/toOperationGateway.d.ts +4 -5
  40. package/script/dsl/operation/toOperationGateway.d.ts.map +1 -1
  41. package/script/dsl/operation/toOperationInsertable.d.ts +4 -4
  42. package/script/dsl/operation/toOperationInsertable.d.ts.map +1 -1
  43. package/script/types/Settings.d.ts +52 -482
  44. package/script/types/Settings.d.ts.map +1 -1
  45. package/script/types/Settings.js +6 -12
@@ -1,354 +1,88 @@
1
1
  import "../_dnt.polyfills.js";
2
2
  import { type Method } from './Method.js';
3
3
  import { z } from 'zod';
4
- export declare const baseSettings: z.ZodObject<{
5
- selected: z.ZodBoolean;
6
- name: z.ZodOptional<z.ZodString>;
7
- importFrom: z.ZodOptional<z.ZodString>;
8
- exportPath: z.ZodOptional<z.ZodString>;
9
- parentExportPath: z.ZodOptional<z.ZodString>;
10
- }, "strip", z.ZodTypeAny, {
11
- selected: boolean;
12
- name?: string | undefined;
13
- exportPath?: string | undefined;
14
- importFrom?: string | undefined;
15
- parentExportPath?: string | undefined;
16
- }, {
17
- selected: boolean;
18
- name?: string | undefined;
19
- exportPath?: string | undefined;
20
- importFrom?: string | undefined;
21
- parentExportPath?: string | undefined;
22
- }>;
23
- export type BaseSettings = {
24
- parentExportPath?: string;
25
- exportPath?: string;
26
- selected: boolean;
27
- name?: string;
28
- importFrom?: string;
29
- };
30
4
  export type BaseSettingsKeyType = 'selected' | 'name' | 'importFrom' | 'exportPath';
31
5
  export declare const operationsGeneratorSettings: z.ZodObject<{
32
6
  id: z.ZodString;
33
7
  description: z.ZodOptional<z.ZodString>;
34
- operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodObject<{
35
- selected: z.ZodBoolean;
36
- name: z.ZodOptional<z.ZodString>;
37
- importFrom: z.ZodOptional<z.ZodString>;
38
- exportPath: z.ZodOptional<z.ZodString>;
39
- parentExportPath: z.ZodOptional<z.ZodString>;
40
- }, "strip", z.ZodTypeAny, {
41
- selected: boolean;
42
- name?: string | undefined;
43
- exportPath?: string | undefined;
44
- importFrom?: string | undefined;
45
- parentExportPath?: string | undefined;
46
- }, {
47
- selected: boolean;
48
- name?: string | undefined;
49
- exportPath?: string | undefined;
50
- importFrom?: string | undefined;
51
- parentExportPath?: string | undefined;
52
- }>>>;
53
- baseSettings: z.ZodObject<{
54
- selected: z.ZodBoolean;
55
- name: z.ZodOptional<z.ZodString>;
56
- importFrom: z.ZodOptional<z.ZodString>;
57
- exportPath: z.ZodOptional<z.ZodString>;
58
- parentExportPath: z.ZodOptional<z.ZodString>;
59
- }, "strip", z.ZodTypeAny, {
60
- selected: boolean;
61
- name?: string | undefined;
62
- exportPath?: string | undefined;
63
- importFrom?: string | undefined;
64
- parentExportPath?: string | undefined;
65
- }, {
66
- selected: boolean;
67
- name?: string | undefined;
68
- exportPath?: string | undefined;
69
- importFrom?: string | undefined;
70
- parentExportPath?: string | undefined;
71
- }>;
8
+ operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodBoolean>>;
9
+ selected: z.ZodOptional<z.ZodBoolean>;
72
10
  }, "strip", z.ZodTypeAny, {
73
11
  id: string;
74
- operations: Record<string, Partial<Record<Method, {
75
- selected: boolean;
76
- name?: string | undefined;
77
- exportPath?: string | undefined;
78
- importFrom?: string | undefined;
79
- parentExportPath?: string | undefined;
80
- }>>>;
81
- baseSettings: {
82
- selected: boolean;
83
- name?: string | undefined;
84
- exportPath?: string | undefined;
85
- importFrom?: string | undefined;
86
- parentExportPath?: string | undefined;
87
- };
12
+ operations: Record<string, Partial<Record<Method, boolean>>>;
88
13
  description?: string | undefined;
14
+ selected?: boolean | undefined;
89
15
  }, {
90
16
  id: string;
91
- operations: Record<string, Partial<Record<Method, {
92
- selected: boolean;
93
- name?: string | undefined;
94
- exportPath?: string | undefined;
95
- importFrom?: string | undefined;
96
- parentExportPath?: string | undefined;
97
- }>>>;
98
- baseSettings: {
99
- selected: boolean;
100
- name?: string | undefined;
101
- exportPath?: string | undefined;
102
- importFrom?: string | undefined;
103
- parentExportPath?: string | undefined;
104
- };
17
+ operations: Record<string, Partial<Record<Method, boolean>>>;
105
18
  description?: string | undefined;
19
+ selected?: boolean | undefined;
106
20
  }>;
107
21
  export type OperationsGeneratorSettings = {
108
22
  id: string;
109
23
  description?: string;
110
- operations: Record<string, Partial<Record<Method, BaseSettings>>>;
111
- baseSettings: BaseSettings;
24
+ operations: Record<string, Partial<Record<Method, boolean>>>;
25
+ selected?: boolean;
112
26
  };
113
27
  export declare const modelsGeneratorSettings: z.ZodObject<{
114
28
  id: z.ZodString;
115
29
  exportPath: z.ZodOptional<z.ZodString>;
116
30
  description: z.ZodOptional<z.ZodString>;
117
- models: z.ZodRecord<z.ZodString, z.ZodObject<{
118
- selected: z.ZodBoolean;
119
- name: z.ZodOptional<z.ZodString>;
120
- importFrom: z.ZodOptional<z.ZodString>;
121
- exportPath: z.ZodOptional<z.ZodString>;
122
- parentExportPath: z.ZodOptional<z.ZodString>;
123
- }, "strip", z.ZodTypeAny, {
124
- selected: boolean;
125
- name?: string | undefined;
126
- exportPath?: string | undefined;
127
- importFrom?: string | undefined;
128
- parentExportPath?: string | undefined;
129
- }, {
130
- selected: boolean;
131
- name?: string | undefined;
132
- exportPath?: string | undefined;
133
- importFrom?: string | undefined;
134
- parentExportPath?: string | undefined;
135
- }>>;
136
- baseSettings: z.ZodObject<{
137
- selected: z.ZodBoolean;
138
- name: z.ZodOptional<z.ZodString>;
139
- importFrom: z.ZodOptional<z.ZodString>;
140
- exportPath: z.ZodOptional<z.ZodString>;
141
- parentExportPath: z.ZodOptional<z.ZodString>;
142
- }, "strip", z.ZodTypeAny, {
143
- selected: boolean;
144
- name?: string | undefined;
145
- exportPath?: string | undefined;
146
- importFrom?: string | undefined;
147
- parentExportPath?: string | undefined;
148
- }, {
149
- selected: boolean;
150
- name?: string | undefined;
151
- exportPath?: string | undefined;
152
- importFrom?: string | undefined;
153
- parentExportPath?: string | undefined;
154
- }>;
31
+ models: z.ZodRecord<z.ZodString, z.ZodBoolean>;
32
+ selected: z.ZodOptional<z.ZodBoolean>;
155
33
  }, "strip", z.ZodTypeAny, {
156
34
  id: string;
157
- baseSettings: {
158
- selected: boolean;
159
- name?: string | undefined;
160
- exportPath?: string | undefined;
161
- importFrom?: string | undefined;
162
- parentExportPath?: string | undefined;
163
- };
164
- models: Record<string, {
165
- selected: boolean;
166
- name?: string | undefined;
167
- exportPath?: string | undefined;
168
- importFrom?: string | undefined;
169
- parentExportPath?: string | undefined;
170
- }>;
35
+ models: Record<string, boolean>;
171
36
  description?: string | undefined;
172
37
  exportPath?: string | undefined;
38
+ selected?: boolean | undefined;
173
39
  }, {
174
40
  id: string;
175
- baseSettings: {
176
- selected: boolean;
177
- name?: string | undefined;
178
- exportPath?: string | undefined;
179
- importFrom?: string | undefined;
180
- parentExportPath?: string | undefined;
181
- };
182
- models: Record<string, {
183
- selected: boolean;
184
- name?: string | undefined;
185
- exportPath?: string | undefined;
186
- importFrom?: string | undefined;
187
- parentExportPath?: string | undefined;
188
- }>;
41
+ models: Record<string, boolean>;
189
42
  description?: string | undefined;
190
43
  exportPath?: string | undefined;
44
+ selected?: boolean | undefined;
191
45
  }>;
192
46
  export type ModelsGeneratorSettings = {
193
47
  id: string;
194
48
  exportPath?: string;
195
49
  description?: string;
196
- models: Record<string, BaseSettings>;
197
- baseSettings: BaseSettings;
50
+ models: Record<string, boolean>;
51
+ selected?: boolean;
198
52
  };
199
53
  export declare const clientGeneratorSettings: z.ZodUnion<[z.ZodObject<{
200
54
  id: z.ZodString;
201
55
  description: z.ZodOptional<z.ZodString>;
202
- operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodObject<{
203
- selected: z.ZodBoolean;
204
- name: z.ZodOptional<z.ZodString>;
205
- importFrom: z.ZodOptional<z.ZodString>;
206
- exportPath: z.ZodOptional<z.ZodString>;
207
- parentExportPath: z.ZodOptional<z.ZodString>;
208
- }, "strip", z.ZodTypeAny, {
209
- selected: boolean;
210
- name?: string | undefined;
211
- exportPath?: string | undefined;
212
- importFrom?: string | undefined;
213
- parentExportPath?: string | undefined;
214
- }, {
215
- selected: boolean;
216
- name?: string | undefined;
217
- exportPath?: string | undefined;
218
- importFrom?: string | undefined;
219
- parentExportPath?: string | undefined;
220
- }>>>;
221
- baseSettings: z.ZodObject<{
222
- selected: z.ZodBoolean;
223
- name: z.ZodOptional<z.ZodString>;
224
- importFrom: z.ZodOptional<z.ZodString>;
225
- exportPath: z.ZodOptional<z.ZodString>;
226
- parentExportPath: z.ZodOptional<z.ZodString>;
227
- }, "strip", z.ZodTypeAny, {
228
- selected: boolean;
229
- name?: string | undefined;
230
- exportPath?: string | undefined;
231
- importFrom?: string | undefined;
232
- parentExportPath?: string | undefined;
233
- }, {
234
- selected: boolean;
235
- name?: string | undefined;
236
- exportPath?: string | undefined;
237
- importFrom?: string | undefined;
238
- parentExportPath?: string | undefined;
239
- }>;
56
+ operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodBoolean>>;
57
+ selected: z.ZodOptional<z.ZodBoolean>;
240
58
  }, "strip", z.ZodTypeAny, {
241
59
  id: string;
242
- operations: Record<string, Partial<Record<Method, {
243
- selected: boolean;
244
- name?: string | undefined;
245
- exportPath?: string | undefined;
246
- importFrom?: string | undefined;
247
- parentExportPath?: string | undefined;
248
- }>>>;
249
- baseSettings: {
250
- selected: boolean;
251
- name?: string | undefined;
252
- exportPath?: string | undefined;
253
- importFrom?: string | undefined;
254
- parentExportPath?: string | undefined;
255
- };
60
+ operations: Record<string, Partial<Record<Method, boolean>>>;
256
61
  description?: string | undefined;
62
+ selected?: boolean | undefined;
257
63
  }, {
258
64
  id: string;
259
- operations: Record<string, Partial<Record<Method, {
260
- selected: boolean;
261
- name?: string | undefined;
262
- exportPath?: string | undefined;
263
- importFrom?: string | undefined;
264
- parentExportPath?: string | undefined;
265
- }>>>;
266
- baseSettings: {
267
- selected: boolean;
268
- name?: string | undefined;
269
- exportPath?: string | undefined;
270
- importFrom?: string | undefined;
271
- parentExportPath?: string | undefined;
272
- };
65
+ operations: Record<string, Partial<Record<Method, boolean>>>;
273
66
  description?: string | undefined;
67
+ selected?: boolean | undefined;
274
68
  }>, z.ZodObject<{
275
69
  id: z.ZodString;
276
70
  exportPath: z.ZodOptional<z.ZodString>;
277
71
  description: z.ZodOptional<z.ZodString>;
278
- models: z.ZodRecord<z.ZodString, z.ZodObject<{
279
- selected: z.ZodBoolean;
280
- name: z.ZodOptional<z.ZodString>;
281
- importFrom: z.ZodOptional<z.ZodString>;
282
- exportPath: z.ZodOptional<z.ZodString>;
283
- parentExportPath: z.ZodOptional<z.ZodString>;
284
- }, "strip", z.ZodTypeAny, {
285
- selected: boolean;
286
- name?: string | undefined;
287
- exportPath?: string | undefined;
288
- importFrom?: string | undefined;
289
- parentExportPath?: string | undefined;
290
- }, {
291
- selected: boolean;
292
- name?: string | undefined;
293
- exportPath?: string | undefined;
294
- importFrom?: string | undefined;
295
- parentExportPath?: string | undefined;
296
- }>>;
297
- baseSettings: z.ZodObject<{
298
- selected: z.ZodBoolean;
299
- name: z.ZodOptional<z.ZodString>;
300
- importFrom: z.ZodOptional<z.ZodString>;
301
- exportPath: z.ZodOptional<z.ZodString>;
302
- parentExportPath: z.ZodOptional<z.ZodString>;
303
- }, "strip", z.ZodTypeAny, {
304
- selected: boolean;
305
- name?: string | undefined;
306
- exportPath?: string | undefined;
307
- importFrom?: string | undefined;
308
- parentExportPath?: string | undefined;
309
- }, {
310
- selected: boolean;
311
- name?: string | undefined;
312
- exportPath?: string | undefined;
313
- importFrom?: string | undefined;
314
- parentExportPath?: string | undefined;
315
- }>;
72
+ models: z.ZodRecord<z.ZodString, z.ZodBoolean>;
73
+ selected: z.ZodOptional<z.ZodBoolean>;
316
74
  }, "strip", z.ZodTypeAny, {
317
75
  id: string;
318
- baseSettings: {
319
- selected: boolean;
320
- name?: string | undefined;
321
- exportPath?: string | undefined;
322
- importFrom?: string | undefined;
323
- parentExportPath?: string | undefined;
324
- };
325
- models: Record<string, {
326
- selected: boolean;
327
- name?: string | undefined;
328
- exportPath?: string | undefined;
329
- importFrom?: string | undefined;
330
- parentExportPath?: string | undefined;
331
- }>;
76
+ models: Record<string, boolean>;
332
77
  description?: string | undefined;
333
78
  exportPath?: string | undefined;
79
+ selected?: boolean | undefined;
334
80
  }, {
335
81
  id: string;
336
- baseSettings: {
337
- selected: boolean;
338
- name?: string | undefined;
339
- exportPath?: string | undefined;
340
- importFrom?: string | undefined;
341
- parentExportPath?: string | undefined;
342
- };
343
- models: Record<string, {
344
- selected: boolean;
345
- name?: string | undefined;
346
- exportPath?: string | undefined;
347
- importFrom?: string | undefined;
348
- parentExportPath?: string | undefined;
349
- }>;
82
+ models: Record<string, boolean>;
350
83
  description?: string | undefined;
351
84
  exportPath?: string | undefined;
85
+ selected?: boolean | undefined;
352
86
  }>]>;
353
87
  export type ClientGeneratorSettings = OperationsGeneratorSettings | ModelsGeneratorSettings;
354
88
  export declare const modulePackage: z.ZodObject<{
@@ -367,6 +101,7 @@ export type ModulePackage = {
367
101
  };
368
102
  export declare const clientSettings: z.ZodObject<{
369
103
  basePath: z.ZodOptional<z.ZodString>;
104
+ alias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
370
105
  packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
371
106
  rootPath: z.ZodString;
372
107
  moduleName: z.ZodString;
@@ -380,194 +115,51 @@ export declare const clientSettings: z.ZodObject<{
380
115
  generators: z.ZodArray<z.ZodUnion<[z.ZodObject<{
381
116
  id: z.ZodString;
382
117
  description: z.ZodOptional<z.ZodString>;
383
- operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodObject<{
384
- selected: z.ZodBoolean;
385
- name: z.ZodOptional<z.ZodString>;
386
- importFrom: z.ZodOptional<z.ZodString>;
387
- exportPath: z.ZodOptional<z.ZodString>;
388
- parentExportPath: z.ZodOptional<z.ZodString>;
389
- }, "strip", z.ZodTypeAny, {
390
- selected: boolean;
391
- name?: string | undefined;
392
- exportPath?: string | undefined;
393
- importFrom?: string | undefined;
394
- parentExportPath?: string | undefined;
395
- }, {
396
- selected: boolean;
397
- name?: string | undefined;
398
- exportPath?: string | undefined;
399
- importFrom?: string | undefined;
400
- parentExportPath?: string | undefined;
401
- }>>>;
402
- baseSettings: z.ZodObject<{
403
- selected: z.ZodBoolean;
404
- name: z.ZodOptional<z.ZodString>;
405
- importFrom: z.ZodOptional<z.ZodString>;
406
- exportPath: z.ZodOptional<z.ZodString>;
407
- parentExportPath: z.ZodOptional<z.ZodString>;
408
- }, "strip", z.ZodTypeAny, {
409
- selected: boolean;
410
- name?: string | undefined;
411
- exportPath?: string | undefined;
412
- importFrom?: string | undefined;
413
- parentExportPath?: string | undefined;
414
- }, {
415
- selected: boolean;
416
- name?: string | undefined;
417
- exportPath?: string | undefined;
418
- importFrom?: string | undefined;
419
- parentExportPath?: string | undefined;
420
- }>;
118
+ operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodBoolean>>;
119
+ selected: z.ZodOptional<z.ZodBoolean>;
421
120
  }, "strip", z.ZodTypeAny, {
422
121
  id: string;
423
- operations: Record<string, Partial<Record<Method, {
424
- selected: boolean;
425
- name?: string | undefined;
426
- exportPath?: string | undefined;
427
- importFrom?: string | undefined;
428
- parentExportPath?: string | undefined;
429
- }>>>;
430
- baseSettings: {
431
- selected: boolean;
432
- name?: string | undefined;
433
- exportPath?: string | undefined;
434
- importFrom?: string | undefined;
435
- parentExportPath?: string | undefined;
436
- };
122
+ operations: Record<string, Partial<Record<Method, boolean>>>;
437
123
  description?: string | undefined;
124
+ selected?: boolean | undefined;
438
125
  }, {
439
126
  id: string;
440
- operations: Record<string, Partial<Record<Method, {
441
- selected: boolean;
442
- name?: string | undefined;
443
- exportPath?: string | undefined;
444
- importFrom?: string | undefined;
445
- parentExportPath?: string | undefined;
446
- }>>>;
447
- baseSettings: {
448
- selected: boolean;
449
- name?: string | undefined;
450
- exportPath?: string | undefined;
451
- importFrom?: string | undefined;
452
- parentExportPath?: string | undefined;
453
- };
127
+ operations: Record<string, Partial<Record<Method, boolean>>>;
454
128
  description?: string | undefined;
129
+ selected?: boolean | undefined;
455
130
  }>, z.ZodObject<{
456
131
  id: z.ZodString;
457
132
  exportPath: z.ZodOptional<z.ZodString>;
458
133
  description: z.ZodOptional<z.ZodString>;
459
- models: z.ZodRecord<z.ZodString, z.ZodObject<{
460
- selected: z.ZodBoolean;
461
- name: z.ZodOptional<z.ZodString>;
462
- importFrom: z.ZodOptional<z.ZodString>;
463
- exportPath: z.ZodOptional<z.ZodString>;
464
- parentExportPath: z.ZodOptional<z.ZodString>;
465
- }, "strip", z.ZodTypeAny, {
466
- selected: boolean;
467
- name?: string | undefined;
468
- exportPath?: string | undefined;
469
- importFrom?: string | undefined;
470
- parentExportPath?: string | undefined;
471
- }, {
472
- selected: boolean;
473
- name?: string | undefined;
474
- exportPath?: string | undefined;
475
- importFrom?: string | undefined;
476
- parentExportPath?: string | undefined;
477
- }>>;
478
- baseSettings: z.ZodObject<{
479
- selected: z.ZodBoolean;
480
- name: z.ZodOptional<z.ZodString>;
481
- importFrom: z.ZodOptional<z.ZodString>;
482
- exportPath: z.ZodOptional<z.ZodString>;
483
- parentExportPath: z.ZodOptional<z.ZodString>;
484
- }, "strip", z.ZodTypeAny, {
485
- selected: boolean;
486
- name?: string | undefined;
487
- exportPath?: string | undefined;
488
- importFrom?: string | undefined;
489
- parentExportPath?: string | undefined;
490
- }, {
491
- selected: boolean;
492
- name?: string | undefined;
493
- exportPath?: string | undefined;
494
- importFrom?: string | undefined;
495
- parentExportPath?: string | undefined;
496
- }>;
134
+ models: z.ZodRecord<z.ZodString, z.ZodBoolean>;
135
+ selected: z.ZodOptional<z.ZodBoolean>;
497
136
  }, "strip", z.ZodTypeAny, {
498
137
  id: string;
499
- baseSettings: {
500
- selected: boolean;
501
- name?: string | undefined;
502
- exportPath?: string | undefined;
503
- importFrom?: string | undefined;
504
- parentExportPath?: string | undefined;
505
- };
506
- models: Record<string, {
507
- selected: boolean;
508
- name?: string | undefined;
509
- exportPath?: string | undefined;
510
- importFrom?: string | undefined;
511
- parentExportPath?: string | undefined;
512
- }>;
138
+ models: Record<string, boolean>;
513
139
  description?: string | undefined;
514
140
  exportPath?: string | undefined;
141
+ selected?: boolean | undefined;
515
142
  }, {
516
143
  id: string;
517
- baseSettings: {
518
- selected: boolean;
519
- name?: string | undefined;
520
- exportPath?: string | undefined;
521
- importFrom?: string | undefined;
522
- parentExportPath?: string | undefined;
523
- };
524
- models: Record<string, {
525
- selected: boolean;
526
- name?: string | undefined;
527
- exportPath?: string | undefined;
528
- importFrom?: string | undefined;
529
- parentExportPath?: string | undefined;
530
- }>;
144
+ models: Record<string, boolean>;
531
145
  description?: string | undefined;
532
146
  exportPath?: string | undefined;
147
+ selected?: boolean | undefined;
533
148
  }>]>, "many">;
534
149
  }, "strip", z.ZodTypeAny, {
535
150
  generators: ({
536
151
  id: string;
537
- operations: Record<string, Partial<Record<Method, {
538
- selected: boolean;
539
- name?: string | undefined;
540
- exportPath?: string | undefined;
541
- importFrom?: string | undefined;
542
- parentExportPath?: string | undefined;
543
- }>>>;
544
- baseSettings: {
545
- selected: boolean;
546
- name?: string | undefined;
547
- exportPath?: string | undefined;
548
- importFrom?: string | undefined;
549
- parentExportPath?: string | undefined;
550
- };
152
+ operations: Record<string, Partial<Record<Method, boolean>>>;
551
153
  description?: string | undefined;
154
+ selected?: boolean | undefined;
552
155
  } | {
553
156
  id: string;
554
- baseSettings: {
555
- selected: boolean;
556
- name?: string | undefined;
557
- exportPath?: string | undefined;
558
- importFrom?: string | undefined;
559
- parentExportPath?: string | undefined;
560
- };
561
- models: Record<string, {
562
- selected: boolean;
563
- name?: string | undefined;
564
- exportPath?: string | undefined;
565
- importFrom?: string | undefined;
566
- parentExportPath?: string | undefined;
567
- }>;
157
+ models: Record<string, boolean>;
568
158
  description?: string | undefined;
569
159
  exportPath?: string | undefined;
160
+ selected?: boolean | undefined;
570
161
  })[];
162
+ alias?: Record<string, string> | undefined;
571
163
  basePath?: string | undefined;
572
164
  packages?: {
573
165
  rootPath: string;
@@ -576,40 +168,17 @@ export declare const clientSettings: z.ZodObject<{
576
168
  }, {
577
169
  generators: ({
578
170
  id: string;
579
- operations: Record<string, Partial<Record<Method, {
580
- selected: boolean;
581
- name?: string | undefined;
582
- exportPath?: string | undefined;
583
- importFrom?: string | undefined;
584
- parentExportPath?: string | undefined;
585
- }>>>;
586
- baseSettings: {
587
- selected: boolean;
588
- name?: string | undefined;
589
- exportPath?: string | undefined;
590
- importFrom?: string | undefined;
591
- parentExportPath?: string | undefined;
592
- };
171
+ operations: Record<string, Partial<Record<Method, boolean>>>;
593
172
  description?: string | undefined;
173
+ selected?: boolean | undefined;
594
174
  } | {
595
175
  id: string;
596
- baseSettings: {
597
- selected: boolean;
598
- name?: string | undefined;
599
- exportPath?: string | undefined;
600
- importFrom?: string | undefined;
601
- parentExportPath?: string | undefined;
602
- };
603
- models: Record<string, {
604
- selected: boolean;
605
- name?: string | undefined;
606
- exportPath?: string | undefined;
607
- importFrom?: string | undefined;
608
- parentExportPath?: string | undefined;
609
- }>;
176
+ models: Record<string, boolean>;
610
177
  description?: string | undefined;
611
178
  exportPath?: string | undefined;
179
+ selected?: boolean | undefined;
612
180
  })[];
181
+ alias?: Record<string, string> | undefined;
613
182
  basePath?: string | undefined;
614
183
  packages?: {
615
184
  rootPath: string;
@@ -618,6 +187,7 @@ export declare const clientSettings: z.ZodObject<{
618
187
  }>;
619
188
  export type ClientSettings = {
620
189
  basePath?: string;
190
+ alias?: Record<string, string>;
621
191
  packages?: ModulePackage[];
622
192
  generators: ClientGeneratorSettings[];
623
193
  };
@@ -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;;;;;;;;;;;;;;;;;;EAMvB,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;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,GAAG,UAAU,GAAG,MAAM,GAAG,YAAY,GAAG,YAAY,CAAA;AAEnF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKtC,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,CAAA;IACjE,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMlC,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACp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