mcp-vue-codegen 1.0.0

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 (51) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +82 -0
  3. package/build/generators/api.d.ts +3 -0
  4. package/build/generators/api.d.ts.map +1 -0
  5. package/build/generators/api.js +8 -0
  6. package/build/generators/api.js.map +1 -0
  7. package/build/generators/form-vue.d.ts +3 -0
  8. package/build/generators/form-vue.d.ts.map +1 -0
  9. package/build/generators/form-vue.js +8 -0
  10. package/build/generators/form-vue.js.map +1 -0
  11. package/build/generators/index-vue.d.ts +3 -0
  12. package/build/generators/index-vue.d.ts.map +1 -0
  13. package/build/generators/index-vue.js +8 -0
  14. package/build/generators/index-vue.js.map +1 -0
  15. package/build/generators/options.d.ts +3 -0
  16. package/build/generators/options.d.ts.map +1 -0
  17. package/build/generators/options.js +8 -0
  18. package/build/generators/options.js.map +1 -0
  19. package/build/index.d.ts +3 -0
  20. package/build/index.d.ts.map +1 -0
  21. package/build/index.js +74 -0
  22. package/build/index.js.map +1 -0
  23. package/build/templates/api.tpl.d.ts +3 -0
  24. package/build/templates/api.tpl.d.ts.map +1 -0
  25. package/build/templates/api.tpl.js +53 -0
  26. package/build/templates/api.tpl.js.map +1 -0
  27. package/build/templates/form-vue.tpl.d.ts +3 -0
  28. package/build/templates/form-vue.tpl.d.ts.map +1 -0
  29. package/build/templates/form-vue.tpl.js +862 -0
  30. package/build/templates/form-vue.tpl.js.map +1 -0
  31. package/build/templates/index-vue.tpl.d.ts +3 -0
  32. package/build/templates/index-vue.tpl.d.ts.map +1 -0
  33. package/build/templates/index-vue.tpl.js +591 -0
  34. package/build/templates/index-vue.tpl.js.map +1 -0
  35. package/build/templates/options.tpl.d.ts +3 -0
  36. package/build/templates/options.tpl.d.ts.map +1 -0
  37. package/build/templates/options.tpl.js +48 -0
  38. package/build/templates/options.tpl.js.map +1 -0
  39. package/build/tools/generate.d.ts +11 -0
  40. package/build/tools/generate.d.ts.map +1 -0
  41. package/build/tools/generate.js +95 -0
  42. package/build/tools/generate.js.map +1 -0
  43. package/build/tools/validate.d.ts +1051 -0
  44. package/build/tools/validate.d.ts.map +1 -0
  45. package/build/tools/validate.js +147 -0
  46. package/build/tools/validate.js.map +1 -0
  47. package/build/types/schema.d.ts +124 -0
  48. package/build/types/schema.d.ts.map +1 -0
  49. package/build/types/schema.js +7 -0
  50. package/build/types/schema.js.map +1 -0
  51. package/package.json +34 -0
@@ -0,0 +1,1051 @@
1
+ import { z } from 'zod';
2
+ import { TableSchema } from '../types/schema.js';
3
+ export declare const TableSchemaZod: z.ZodObject<{
4
+ module: z.ZodObject<{
5
+ moduleName: z.ZodString;
6
+ businessName: z.ZodString;
7
+ entityName: z.ZodString;
8
+ componentName: z.ZodString;
9
+ apiBasePath: z.ZodString;
10
+ apiFilePath: z.ZodString;
11
+ permissionPrefix: z.ZodString;
12
+ processDefKey: z.ZodOptional<z.ZodString>;
13
+ hasWorkflow: z.ZodBoolean;
14
+ hasExport: z.ZodBoolean;
15
+ exportUrl: z.ZodOptional<z.ZodString>;
16
+ hasPrint: z.ZodBoolean;
17
+ printFileNameField: z.ZodOptional<z.ZodString>;
18
+ labelWidth: z.ZodString;
19
+ }, "strip", z.ZodTypeAny, {
20
+ moduleName: string;
21
+ businessName: string;
22
+ entityName: string;
23
+ componentName: string;
24
+ apiBasePath: string;
25
+ apiFilePath: string;
26
+ permissionPrefix: string;
27
+ hasWorkflow: boolean;
28
+ hasExport: boolean;
29
+ hasPrint: boolean;
30
+ labelWidth: string;
31
+ processDefKey?: string | undefined;
32
+ exportUrl?: string | undefined;
33
+ printFileNameField?: string | undefined;
34
+ }, {
35
+ moduleName: string;
36
+ businessName: string;
37
+ entityName: string;
38
+ componentName: string;
39
+ apiBasePath: string;
40
+ apiFilePath: string;
41
+ permissionPrefix: string;
42
+ hasWorkflow: boolean;
43
+ hasExport: boolean;
44
+ hasPrint: boolean;
45
+ labelWidth: string;
46
+ processDefKey?: string | undefined;
47
+ exportUrl?: string | undefined;
48
+ printFileNameField?: string | undefined;
49
+ }>;
50
+ master: z.ZodObject<{
51
+ tableName: z.ZodString;
52
+ collapseTitle: z.ZodString;
53
+ createInfoTitle: z.ZodString;
54
+ formSections: z.ZodArray<z.ZodObject<{
55
+ name: z.ZodString;
56
+ collapseIndex: z.ZodString;
57
+ title: z.ZodString;
58
+ }, "strip", z.ZodTypeAny, {
59
+ name: string;
60
+ collapseIndex: string;
61
+ title: string;
62
+ }, {
63
+ name: string;
64
+ collapseIndex: string;
65
+ title: string;
66
+ }>, "many">;
67
+ filterTypes: z.ZodRecord<z.ZodString, z.ZodNumber>;
68
+ fields: z.ZodArray<z.ZodObject<{
69
+ columnName: z.ZodString;
70
+ fieldName: z.ZodString;
71
+ label: z.ZodString;
72
+ dataType: z.ZodString;
73
+ inputType: z.ZodString;
74
+ required: z.ZodBoolean;
75
+ showInTable: z.ZodBoolean;
76
+ alwaysHide: z.ZodBoolean;
77
+ showInForm: z.ZodOptional<z.ZodBoolean>;
78
+ smartSearch: z.ZodBoolean;
79
+ tableWidth: z.ZodString;
80
+ formColSpan: z.ZodOptional<z.ZodNumber>;
81
+ disabled: z.ZodOptional<z.ZodBoolean>;
82
+ maxLength: z.ZodOptional<z.ZodNumber>;
83
+ textareaRows: z.ZodOptional<z.ZodNumber>;
84
+ showWordLimit: z.ZodOptional<z.ZodBoolean>;
85
+ formSection: z.ZodOptional<z.ZodString>;
86
+ formRow: z.ZodOptional<z.ZodNumber>;
87
+ isSystemField: z.ZodOptional<z.ZodBoolean>;
88
+ isPrimaryKey: z.ZodOptional<z.ZodBoolean>;
89
+ isForeignKey: z.ZodOptional<z.ZodBoolean>;
90
+ defaultValue: z.ZodOptional<z.ZodString>;
91
+ dictCode: z.ZodOptional<z.ZodString>;
92
+ needFormatter: z.ZodOptional<z.ZodBoolean>;
93
+ dateFormat: z.ZodOptional<z.ZodString>;
94
+ isTimeQueryField: z.ZodOptional<z.ZodBoolean>;
95
+ refConfig: z.ZodOptional<z.ZodObject<{
96
+ refComponent: z.ZodString;
97
+ refTitle: z.ZodString;
98
+ idField: z.ZodString;
99
+ nameField: z.ZodString;
100
+ rootId: z.ZodOptional<z.ZodString>;
101
+ containParentFlag: z.ZodOptional<z.ZodString>;
102
+ extraMappings: z.ZodArray<z.ZodObject<{
103
+ source: z.ZodString;
104
+ target: z.ZodString;
105
+ }, "strip", z.ZodTypeAny, {
106
+ source: string;
107
+ target: string;
108
+ }, {
109
+ source: string;
110
+ target: string;
111
+ }>, "many">;
112
+ }, "strip", z.ZodTypeAny, {
113
+ refComponent: string;
114
+ refTitle: string;
115
+ idField: string;
116
+ nameField: string;
117
+ extraMappings: {
118
+ source: string;
119
+ target: string;
120
+ }[];
121
+ rootId?: string | undefined;
122
+ containParentFlag?: string | undefined;
123
+ }, {
124
+ refComponent: string;
125
+ refTitle: string;
126
+ idField: string;
127
+ nameField: string;
128
+ extraMappings: {
129
+ source: string;
130
+ target: string;
131
+ }[];
132
+ rootId?: string | undefined;
133
+ containParentFlag?: string | undefined;
134
+ }>>;
135
+ editableInTable: z.ZodOptional<z.ZodBoolean>;
136
+ editInputType: z.ZodOptional<z.ZodString>;
137
+ editBindField: z.ZodOptional<z.ZodString>;
138
+ editRuleProp: z.ZodOptional<z.ZodString>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ columnName: string;
141
+ fieldName: string;
142
+ label: string;
143
+ dataType: string;
144
+ inputType: string;
145
+ required: boolean;
146
+ showInTable: boolean;
147
+ alwaysHide: boolean;
148
+ smartSearch: boolean;
149
+ tableWidth: string;
150
+ showInForm?: boolean | undefined;
151
+ formColSpan?: number | undefined;
152
+ disabled?: boolean | undefined;
153
+ maxLength?: number | undefined;
154
+ textareaRows?: number | undefined;
155
+ showWordLimit?: boolean | undefined;
156
+ formSection?: string | undefined;
157
+ formRow?: number | undefined;
158
+ isSystemField?: boolean | undefined;
159
+ isPrimaryKey?: boolean | undefined;
160
+ isForeignKey?: boolean | undefined;
161
+ defaultValue?: string | undefined;
162
+ dictCode?: string | undefined;
163
+ needFormatter?: boolean | undefined;
164
+ dateFormat?: string | undefined;
165
+ isTimeQueryField?: boolean | undefined;
166
+ refConfig?: {
167
+ refComponent: string;
168
+ refTitle: string;
169
+ idField: string;
170
+ nameField: string;
171
+ extraMappings: {
172
+ source: string;
173
+ target: string;
174
+ }[];
175
+ rootId?: string | undefined;
176
+ containParentFlag?: string | undefined;
177
+ } | undefined;
178
+ editableInTable?: boolean | undefined;
179
+ editInputType?: string | undefined;
180
+ editBindField?: string | undefined;
181
+ editRuleProp?: string | undefined;
182
+ }, {
183
+ columnName: string;
184
+ fieldName: string;
185
+ label: string;
186
+ dataType: string;
187
+ inputType: string;
188
+ required: boolean;
189
+ showInTable: boolean;
190
+ alwaysHide: boolean;
191
+ smartSearch: boolean;
192
+ tableWidth: string;
193
+ showInForm?: boolean | undefined;
194
+ formColSpan?: number | undefined;
195
+ disabled?: boolean | undefined;
196
+ maxLength?: number | undefined;
197
+ textareaRows?: number | undefined;
198
+ showWordLimit?: boolean | undefined;
199
+ formSection?: string | undefined;
200
+ formRow?: number | undefined;
201
+ isSystemField?: boolean | undefined;
202
+ isPrimaryKey?: boolean | undefined;
203
+ isForeignKey?: boolean | undefined;
204
+ defaultValue?: string | undefined;
205
+ dictCode?: string | undefined;
206
+ needFormatter?: boolean | undefined;
207
+ dateFormat?: string | undefined;
208
+ isTimeQueryField?: boolean | undefined;
209
+ refConfig?: {
210
+ refComponent: string;
211
+ refTitle: string;
212
+ idField: string;
213
+ nameField: string;
214
+ extraMappings: {
215
+ source: string;
216
+ target: string;
217
+ }[];
218
+ rootId?: string | undefined;
219
+ containParentFlag?: string | undefined;
220
+ } | undefined;
221
+ editableInTable?: boolean | undefined;
222
+ editInputType?: string | undefined;
223
+ editBindField?: string | undefined;
224
+ editRuleProp?: string | undefined;
225
+ }>, "many">;
226
+ }, "strip", z.ZodTypeAny, {
227
+ tableName: string;
228
+ collapseTitle: string;
229
+ createInfoTitle: string;
230
+ formSections: {
231
+ name: string;
232
+ collapseIndex: string;
233
+ title: string;
234
+ }[];
235
+ filterTypes: Record<string, number>;
236
+ fields: {
237
+ columnName: string;
238
+ fieldName: string;
239
+ label: string;
240
+ dataType: string;
241
+ inputType: string;
242
+ required: boolean;
243
+ showInTable: boolean;
244
+ alwaysHide: boolean;
245
+ smartSearch: boolean;
246
+ tableWidth: string;
247
+ showInForm?: boolean | undefined;
248
+ formColSpan?: number | undefined;
249
+ disabled?: boolean | undefined;
250
+ maxLength?: number | undefined;
251
+ textareaRows?: number | undefined;
252
+ showWordLimit?: boolean | undefined;
253
+ formSection?: string | undefined;
254
+ formRow?: number | undefined;
255
+ isSystemField?: boolean | undefined;
256
+ isPrimaryKey?: boolean | undefined;
257
+ isForeignKey?: boolean | undefined;
258
+ defaultValue?: string | undefined;
259
+ dictCode?: string | undefined;
260
+ needFormatter?: boolean | undefined;
261
+ dateFormat?: string | undefined;
262
+ isTimeQueryField?: boolean | undefined;
263
+ refConfig?: {
264
+ refComponent: string;
265
+ refTitle: string;
266
+ idField: string;
267
+ nameField: string;
268
+ extraMappings: {
269
+ source: string;
270
+ target: string;
271
+ }[];
272
+ rootId?: string | undefined;
273
+ containParentFlag?: string | undefined;
274
+ } | undefined;
275
+ editableInTable?: boolean | undefined;
276
+ editInputType?: string | undefined;
277
+ editBindField?: string | undefined;
278
+ editRuleProp?: string | undefined;
279
+ }[];
280
+ }, {
281
+ tableName: string;
282
+ collapseTitle: string;
283
+ createInfoTitle: string;
284
+ formSections: {
285
+ name: string;
286
+ collapseIndex: string;
287
+ title: string;
288
+ }[];
289
+ filterTypes: Record<string, number>;
290
+ fields: {
291
+ columnName: string;
292
+ fieldName: string;
293
+ label: string;
294
+ dataType: string;
295
+ inputType: string;
296
+ required: boolean;
297
+ showInTable: boolean;
298
+ alwaysHide: boolean;
299
+ smartSearch: boolean;
300
+ tableWidth: string;
301
+ showInForm?: boolean | undefined;
302
+ formColSpan?: number | undefined;
303
+ disabled?: boolean | undefined;
304
+ maxLength?: number | undefined;
305
+ textareaRows?: number | undefined;
306
+ showWordLimit?: boolean | undefined;
307
+ formSection?: string | undefined;
308
+ formRow?: number | undefined;
309
+ isSystemField?: boolean | undefined;
310
+ isPrimaryKey?: boolean | undefined;
311
+ isForeignKey?: boolean | undefined;
312
+ defaultValue?: string | undefined;
313
+ dictCode?: string | undefined;
314
+ needFormatter?: boolean | undefined;
315
+ dateFormat?: string | undefined;
316
+ isTimeQueryField?: boolean | undefined;
317
+ refConfig?: {
318
+ refComponent: string;
319
+ refTitle: string;
320
+ idField: string;
321
+ nameField: string;
322
+ extraMappings: {
323
+ source: string;
324
+ target: string;
325
+ }[];
326
+ rootId?: string | undefined;
327
+ containParentFlag?: string | undefined;
328
+ } | undefined;
329
+ editableInTable?: boolean | undefined;
330
+ editInputType?: string | undefined;
331
+ editBindField?: string | undefined;
332
+ editRuleProp?: string | undefined;
333
+ }[];
334
+ }>;
335
+ detail: z.ZodOptional<z.ZodObject<{
336
+ tableName: z.ZodString;
337
+ detailTitle: z.ZodString;
338
+ detailCollapseTitle: z.ZodString;
339
+ detailFkField: z.ZodString;
340
+ detailRowKey: z.ZodString;
341
+ detailListName: z.ZodString;
342
+ detailRefType: z.ZodString;
343
+ detailRefConfig: z.ZodObject<{
344
+ component: z.ZodString;
345
+ componentPath: z.ZodString;
346
+ idMapping: z.ZodObject<{
347
+ source: z.ZodString;
348
+ target: z.ZodString;
349
+ }, "strip", z.ZodTypeAny, {
350
+ source: string;
351
+ target: string;
352
+ }, {
353
+ source: string;
354
+ target: string;
355
+ }>;
356
+ nameMapping: z.ZodObject<{
357
+ source: z.ZodString;
358
+ target: z.ZodString;
359
+ }, "strip", z.ZodTypeAny, {
360
+ source: string;
361
+ target: string;
362
+ }, {
363
+ source: string;
364
+ target: string;
365
+ }>;
366
+ codeMapping: z.ZodOptional<z.ZodObject<{
367
+ source: z.ZodString;
368
+ target: z.ZodString;
369
+ }, "strip", z.ZodTypeAny, {
370
+ source: string;
371
+ target: string;
372
+ }, {
373
+ source: string;
374
+ target: string;
375
+ }>>;
376
+ extraMappings: z.ZodArray<z.ZodObject<{
377
+ source: z.ZodString;
378
+ target: z.ZodString;
379
+ }, "strip", z.ZodTypeAny, {
380
+ source: string;
381
+ target: string;
382
+ }, {
383
+ source: string;
384
+ target: string;
385
+ }>, "many">;
386
+ }, "strip", z.ZodTypeAny, {
387
+ extraMappings: {
388
+ source: string;
389
+ target: string;
390
+ }[];
391
+ component: string;
392
+ componentPath: string;
393
+ idMapping: {
394
+ source: string;
395
+ target: string;
396
+ };
397
+ nameMapping: {
398
+ source: string;
399
+ target: string;
400
+ };
401
+ codeMapping?: {
402
+ source: string;
403
+ target: string;
404
+ } | undefined;
405
+ }, {
406
+ extraMappings: {
407
+ source: string;
408
+ target: string;
409
+ }[];
410
+ component: string;
411
+ componentPath: string;
412
+ idMapping: {
413
+ source: string;
414
+ target: string;
415
+ };
416
+ nameMapping: {
417
+ source: string;
418
+ target: string;
419
+ };
420
+ codeMapping?: {
421
+ source: string;
422
+ target: string;
423
+ } | undefined;
424
+ }>;
425
+ detailValidateConfig: z.ZodObject<{
426
+ rowNameType: z.ZodString;
427
+ rowName: z.ZodString;
428
+ }, "strip", z.ZodTypeAny, {
429
+ rowNameType: string;
430
+ rowName: string;
431
+ }, {
432
+ rowNameType: string;
433
+ rowName: string;
434
+ }>;
435
+ fields: z.ZodArray<z.ZodObject<{
436
+ columnName: z.ZodString;
437
+ fieldName: z.ZodString;
438
+ label: z.ZodString;
439
+ dataType: z.ZodString;
440
+ inputType: z.ZodString;
441
+ required: z.ZodBoolean;
442
+ showInTable: z.ZodBoolean;
443
+ alwaysHide: z.ZodBoolean;
444
+ showInForm: z.ZodOptional<z.ZodBoolean>;
445
+ smartSearch: z.ZodBoolean;
446
+ tableWidth: z.ZodString;
447
+ formColSpan: z.ZodOptional<z.ZodNumber>;
448
+ disabled: z.ZodOptional<z.ZodBoolean>;
449
+ maxLength: z.ZodOptional<z.ZodNumber>;
450
+ textareaRows: z.ZodOptional<z.ZodNumber>;
451
+ showWordLimit: z.ZodOptional<z.ZodBoolean>;
452
+ formSection: z.ZodOptional<z.ZodString>;
453
+ formRow: z.ZodOptional<z.ZodNumber>;
454
+ isSystemField: z.ZodOptional<z.ZodBoolean>;
455
+ isPrimaryKey: z.ZodOptional<z.ZodBoolean>;
456
+ isForeignKey: z.ZodOptional<z.ZodBoolean>;
457
+ defaultValue: z.ZodOptional<z.ZodString>;
458
+ dictCode: z.ZodOptional<z.ZodString>;
459
+ needFormatter: z.ZodOptional<z.ZodBoolean>;
460
+ dateFormat: z.ZodOptional<z.ZodString>;
461
+ isTimeQueryField: z.ZodOptional<z.ZodBoolean>;
462
+ refConfig: z.ZodOptional<z.ZodObject<{
463
+ refComponent: z.ZodString;
464
+ refTitle: z.ZodString;
465
+ idField: z.ZodString;
466
+ nameField: z.ZodString;
467
+ rootId: z.ZodOptional<z.ZodString>;
468
+ containParentFlag: z.ZodOptional<z.ZodString>;
469
+ extraMappings: z.ZodArray<z.ZodObject<{
470
+ source: z.ZodString;
471
+ target: z.ZodString;
472
+ }, "strip", z.ZodTypeAny, {
473
+ source: string;
474
+ target: string;
475
+ }, {
476
+ source: string;
477
+ target: string;
478
+ }>, "many">;
479
+ }, "strip", z.ZodTypeAny, {
480
+ refComponent: string;
481
+ refTitle: string;
482
+ idField: string;
483
+ nameField: string;
484
+ extraMappings: {
485
+ source: string;
486
+ target: string;
487
+ }[];
488
+ rootId?: string | undefined;
489
+ containParentFlag?: string | undefined;
490
+ }, {
491
+ refComponent: string;
492
+ refTitle: string;
493
+ idField: string;
494
+ nameField: string;
495
+ extraMappings: {
496
+ source: string;
497
+ target: string;
498
+ }[];
499
+ rootId?: string | undefined;
500
+ containParentFlag?: string | undefined;
501
+ }>>;
502
+ editableInTable: z.ZodOptional<z.ZodBoolean>;
503
+ editInputType: z.ZodOptional<z.ZodString>;
504
+ editBindField: z.ZodOptional<z.ZodString>;
505
+ editRuleProp: z.ZodOptional<z.ZodString>;
506
+ }, "strip", z.ZodTypeAny, {
507
+ columnName: string;
508
+ fieldName: string;
509
+ label: string;
510
+ dataType: string;
511
+ inputType: string;
512
+ required: boolean;
513
+ showInTable: boolean;
514
+ alwaysHide: boolean;
515
+ smartSearch: boolean;
516
+ tableWidth: string;
517
+ showInForm?: boolean | undefined;
518
+ formColSpan?: number | undefined;
519
+ disabled?: boolean | undefined;
520
+ maxLength?: number | undefined;
521
+ textareaRows?: number | undefined;
522
+ showWordLimit?: boolean | undefined;
523
+ formSection?: string | undefined;
524
+ formRow?: number | undefined;
525
+ isSystemField?: boolean | undefined;
526
+ isPrimaryKey?: boolean | undefined;
527
+ isForeignKey?: boolean | undefined;
528
+ defaultValue?: string | undefined;
529
+ dictCode?: string | undefined;
530
+ needFormatter?: boolean | undefined;
531
+ dateFormat?: string | undefined;
532
+ isTimeQueryField?: boolean | undefined;
533
+ refConfig?: {
534
+ refComponent: string;
535
+ refTitle: string;
536
+ idField: string;
537
+ nameField: string;
538
+ extraMappings: {
539
+ source: string;
540
+ target: string;
541
+ }[];
542
+ rootId?: string | undefined;
543
+ containParentFlag?: string | undefined;
544
+ } | undefined;
545
+ editableInTable?: boolean | undefined;
546
+ editInputType?: string | undefined;
547
+ editBindField?: string | undefined;
548
+ editRuleProp?: string | undefined;
549
+ }, {
550
+ columnName: string;
551
+ fieldName: string;
552
+ label: string;
553
+ dataType: string;
554
+ inputType: string;
555
+ required: boolean;
556
+ showInTable: boolean;
557
+ alwaysHide: boolean;
558
+ smartSearch: boolean;
559
+ tableWidth: string;
560
+ showInForm?: boolean | undefined;
561
+ formColSpan?: number | undefined;
562
+ disabled?: boolean | undefined;
563
+ maxLength?: number | undefined;
564
+ textareaRows?: number | undefined;
565
+ showWordLimit?: boolean | undefined;
566
+ formSection?: string | undefined;
567
+ formRow?: number | undefined;
568
+ isSystemField?: boolean | undefined;
569
+ isPrimaryKey?: boolean | undefined;
570
+ isForeignKey?: boolean | undefined;
571
+ defaultValue?: string | undefined;
572
+ dictCode?: string | undefined;
573
+ needFormatter?: boolean | undefined;
574
+ dateFormat?: string | undefined;
575
+ isTimeQueryField?: boolean | undefined;
576
+ refConfig?: {
577
+ refComponent: string;
578
+ refTitle: string;
579
+ idField: string;
580
+ nameField: string;
581
+ extraMappings: {
582
+ source: string;
583
+ target: string;
584
+ }[];
585
+ rootId?: string | undefined;
586
+ containParentFlag?: string | undefined;
587
+ } | undefined;
588
+ editableInTable?: boolean | undefined;
589
+ editInputType?: string | undefined;
590
+ editBindField?: string | undefined;
591
+ editRuleProp?: string | undefined;
592
+ }>, "many">;
593
+ }, "strip", z.ZodTypeAny, {
594
+ tableName: string;
595
+ fields: {
596
+ columnName: string;
597
+ fieldName: string;
598
+ label: string;
599
+ dataType: string;
600
+ inputType: string;
601
+ required: boolean;
602
+ showInTable: boolean;
603
+ alwaysHide: boolean;
604
+ smartSearch: boolean;
605
+ tableWidth: string;
606
+ showInForm?: boolean | undefined;
607
+ formColSpan?: number | undefined;
608
+ disabled?: boolean | undefined;
609
+ maxLength?: number | undefined;
610
+ textareaRows?: number | undefined;
611
+ showWordLimit?: boolean | undefined;
612
+ formSection?: string | undefined;
613
+ formRow?: number | undefined;
614
+ isSystemField?: boolean | undefined;
615
+ isPrimaryKey?: boolean | undefined;
616
+ isForeignKey?: boolean | undefined;
617
+ defaultValue?: string | undefined;
618
+ dictCode?: string | undefined;
619
+ needFormatter?: boolean | undefined;
620
+ dateFormat?: string | undefined;
621
+ isTimeQueryField?: boolean | undefined;
622
+ refConfig?: {
623
+ refComponent: string;
624
+ refTitle: string;
625
+ idField: string;
626
+ nameField: string;
627
+ extraMappings: {
628
+ source: string;
629
+ target: string;
630
+ }[];
631
+ rootId?: string | undefined;
632
+ containParentFlag?: string | undefined;
633
+ } | undefined;
634
+ editableInTable?: boolean | undefined;
635
+ editInputType?: string | undefined;
636
+ editBindField?: string | undefined;
637
+ editRuleProp?: string | undefined;
638
+ }[];
639
+ detailTitle: string;
640
+ detailCollapseTitle: string;
641
+ detailFkField: string;
642
+ detailRowKey: string;
643
+ detailListName: string;
644
+ detailRefType: string;
645
+ detailRefConfig: {
646
+ extraMappings: {
647
+ source: string;
648
+ target: string;
649
+ }[];
650
+ component: string;
651
+ componentPath: string;
652
+ idMapping: {
653
+ source: string;
654
+ target: string;
655
+ };
656
+ nameMapping: {
657
+ source: string;
658
+ target: string;
659
+ };
660
+ codeMapping?: {
661
+ source: string;
662
+ target: string;
663
+ } | undefined;
664
+ };
665
+ detailValidateConfig: {
666
+ rowNameType: string;
667
+ rowName: string;
668
+ };
669
+ }, {
670
+ tableName: string;
671
+ fields: {
672
+ columnName: string;
673
+ fieldName: string;
674
+ label: string;
675
+ dataType: string;
676
+ inputType: string;
677
+ required: boolean;
678
+ showInTable: boolean;
679
+ alwaysHide: boolean;
680
+ smartSearch: boolean;
681
+ tableWidth: string;
682
+ showInForm?: boolean | undefined;
683
+ formColSpan?: number | undefined;
684
+ disabled?: boolean | undefined;
685
+ maxLength?: number | undefined;
686
+ textareaRows?: number | undefined;
687
+ showWordLimit?: boolean | undefined;
688
+ formSection?: string | undefined;
689
+ formRow?: number | undefined;
690
+ isSystemField?: boolean | undefined;
691
+ isPrimaryKey?: boolean | undefined;
692
+ isForeignKey?: boolean | undefined;
693
+ defaultValue?: string | undefined;
694
+ dictCode?: string | undefined;
695
+ needFormatter?: boolean | undefined;
696
+ dateFormat?: string | undefined;
697
+ isTimeQueryField?: boolean | undefined;
698
+ refConfig?: {
699
+ refComponent: string;
700
+ refTitle: string;
701
+ idField: string;
702
+ nameField: string;
703
+ extraMappings: {
704
+ source: string;
705
+ target: string;
706
+ }[];
707
+ rootId?: string | undefined;
708
+ containParentFlag?: string | undefined;
709
+ } | undefined;
710
+ editableInTable?: boolean | undefined;
711
+ editInputType?: string | undefined;
712
+ editBindField?: string | undefined;
713
+ editRuleProp?: string | undefined;
714
+ }[];
715
+ detailTitle: string;
716
+ detailCollapseTitle: string;
717
+ detailFkField: string;
718
+ detailRowKey: string;
719
+ detailListName: string;
720
+ detailRefType: string;
721
+ detailRefConfig: {
722
+ extraMappings: {
723
+ source: string;
724
+ target: string;
725
+ }[];
726
+ component: string;
727
+ componentPath: string;
728
+ idMapping: {
729
+ source: string;
730
+ target: string;
731
+ };
732
+ nameMapping: {
733
+ source: string;
734
+ target: string;
735
+ };
736
+ codeMapping?: {
737
+ source: string;
738
+ target: string;
739
+ } | undefined;
740
+ };
741
+ detailValidateConfig: {
742
+ rowNameType: string;
743
+ rowName: string;
744
+ };
745
+ }>>;
746
+ }, "strip", z.ZodTypeAny, {
747
+ module: {
748
+ moduleName: string;
749
+ businessName: string;
750
+ entityName: string;
751
+ componentName: string;
752
+ apiBasePath: string;
753
+ apiFilePath: string;
754
+ permissionPrefix: string;
755
+ hasWorkflow: boolean;
756
+ hasExport: boolean;
757
+ hasPrint: boolean;
758
+ labelWidth: string;
759
+ processDefKey?: string | undefined;
760
+ exportUrl?: string | undefined;
761
+ printFileNameField?: string | undefined;
762
+ };
763
+ master: {
764
+ tableName: string;
765
+ collapseTitle: string;
766
+ createInfoTitle: string;
767
+ formSections: {
768
+ name: string;
769
+ collapseIndex: string;
770
+ title: string;
771
+ }[];
772
+ filterTypes: Record<string, number>;
773
+ fields: {
774
+ columnName: string;
775
+ fieldName: string;
776
+ label: string;
777
+ dataType: string;
778
+ inputType: string;
779
+ required: boolean;
780
+ showInTable: boolean;
781
+ alwaysHide: boolean;
782
+ smartSearch: boolean;
783
+ tableWidth: string;
784
+ showInForm?: boolean | undefined;
785
+ formColSpan?: number | undefined;
786
+ disabled?: boolean | undefined;
787
+ maxLength?: number | undefined;
788
+ textareaRows?: number | undefined;
789
+ showWordLimit?: boolean | undefined;
790
+ formSection?: string | undefined;
791
+ formRow?: number | undefined;
792
+ isSystemField?: boolean | undefined;
793
+ isPrimaryKey?: boolean | undefined;
794
+ isForeignKey?: boolean | undefined;
795
+ defaultValue?: string | undefined;
796
+ dictCode?: string | undefined;
797
+ needFormatter?: boolean | undefined;
798
+ dateFormat?: string | undefined;
799
+ isTimeQueryField?: boolean | undefined;
800
+ refConfig?: {
801
+ refComponent: string;
802
+ refTitle: string;
803
+ idField: string;
804
+ nameField: string;
805
+ extraMappings: {
806
+ source: string;
807
+ target: string;
808
+ }[];
809
+ rootId?: string | undefined;
810
+ containParentFlag?: string | undefined;
811
+ } | undefined;
812
+ editableInTable?: boolean | undefined;
813
+ editInputType?: string | undefined;
814
+ editBindField?: string | undefined;
815
+ editRuleProp?: string | undefined;
816
+ }[];
817
+ };
818
+ detail?: {
819
+ tableName: string;
820
+ fields: {
821
+ columnName: string;
822
+ fieldName: string;
823
+ label: string;
824
+ dataType: string;
825
+ inputType: string;
826
+ required: boolean;
827
+ showInTable: boolean;
828
+ alwaysHide: boolean;
829
+ smartSearch: boolean;
830
+ tableWidth: string;
831
+ showInForm?: boolean | undefined;
832
+ formColSpan?: number | undefined;
833
+ disabled?: boolean | undefined;
834
+ maxLength?: number | undefined;
835
+ textareaRows?: number | undefined;
836
+ showWordLimit?: boolean | undefined;
837
+ formSection?: string | undefined;
838
+ formRow?: number | undefined;
839
+ isSystemField?: boolean | undefined;
840
+ isPrimaryKey?: boolean | undefined;
841
+ isForeignKey?: boolean | undefined;
842
+ defaultValue?: string | undefined;
843
+ dictCode?: string | undefined;
844
+ needFormatter?: boolean | undefined;
845
+ dateFormat?: string | undefined;
846
+ isTimeQueryField?: boolean | undefined;
847
+ refConfig?: {
848
+ refComponent: string;
849
+ refTitle: string;
850
+ idField: string;
851
+ nameField: string;
852
+ extraMappings: {
853
+ source: string;
854
+ target: string;
855
+ }[];
856
+ rootId?: string | undefined;
857
+ containParentFlag?: string | undefined;
858
+ } | undefined;
859
+ editableInTable?: boolean | undefined;
860
+ editInputType?: string | undefined;
861
+ editBindField?: string | undefined;
862
+ editRuleProp?: string | undefined;
863
+ }[];
864
+ detailTitle: string;
865
+ detailCollapseTitle: string;
866
+ detailFkField: string;
867
+ detailRowKey: string;
868
+ detailListName: string;
869
+ detailRefType: string;
870
+ detailRefConfig: {
871
+ extraMappings: {
872
+ source: string;
873
+ target: string;
874
+ }[];
875
+ component: string;
876
+ componentPath: string;
877
+ idMapping: {
878
+ source: string;
879
+ target: string;
880
+ };
881
+ nameMapping: {
882
+ source: string;
883
+ target: string;
884
+ };
885
+ codeMapping?: {
886
+ source: string;
887
+ target: string;
888
+ } | undefined;
889
+ };
890
+ detailValidateConfig: {
891
+ rowNameType: string;
892
+ rowName: string;
893
+ };
894
+ } | undefined;
895
+ }, {
896
+ module: {
897
+ moduleName: string;
898
+ businessName: string;
899
+ entityName: string;
900
+ componentName: string;
901
+ apiBasePath: string;
902
+ apiFilePath: string;
903
+ permissionPrefix: string;
904
+ hasWorkflow: boolean;
905
+ hasExport: boolean;
906
+ hasPrint: boolean;
907
+ labelWidth: string;
908
+ processDefKey?: string | undefined;
909
+ exportUrl?: string | undefined;
910
+ printFileNameField?: string | undefined;
911
+ };
912
+ master: {
913
+ tableName: string;
914
+ collapseTitle: string;
915
+ createInfoTitle: string;
916
+ formSections: {
917
+ name: string;
918
+ collapseIndex: string;
919
+ title: string;
920
+ }[];
921
+ filterTypes: Record<string, number>;
922
+ fields: {
923
+ columnName: string;
924
+ fieldName: string;
925
+ label: string;
926
+ dataType: string;
927
+ inputType: string;
928
+ required: boolean;
929
+ showInTable: boolean;
930
+ alwaysHide: boolean;
931
+ smartSearch: boolean;
932
+ tableWidth: string;
933
+ showInForm?: boolean | undefined;
934
+ formColSpan?: number | undefined;
935
+ disabled?: boolean | undefined;
936
+ maxLength?: number | undefined;
937
+ textareaRows?: number | undefined;
938
+ showWordLimit?: boolean | undefined;
939
+ formSection?: string | undefined;
940
+ formRow?: number | undefined;
941
+ isSystemField?: boolean | undefined;
942
+ isPrimaryKey?: boolean | undefined;
943
+ isForeignKey?: boolean | undefined;
944
+ defaultValue?: string | undefined;
945
+ dictCode?: string | undefined;
946
+ needFormatter?: boolean | undefined;
947
+ dateFormat?: string | undefined;
948
+ isTimeQueryField?: boolean | undefined;
949
+ refConfig?: {
950
+ refComponent: string;
951
+ refTitle: string;
952
+ idField: string;
953
+ nameField: string;
954
+ extraMappings: {
955
+ source: string;
956
+ target: string;
957
+ }[];
958
+ rootId?: string | undefined;
959
+ containParentFlag?: string | undefined;
960
+ } | undefined;
961
+ editableInTable?: boolean | undefined;
962
+ editInputType?: string | undefined;
963
+ editBindField?: string | undefined;
964
+ editRuleProp?: string | undefined;
965
+ }[];
966
+ };
967
+ detail?: {
968
+ tableName: string;
969
+ fields: {
970
+ columnName: string;
971
+ fieldName: string;
972
+ label: string;
973
+ dataType: string;
974
+ inputType: string;
975
+ required: boolean;
976
+ showInTable: boolean;
977
+ alwaysHide: boolean;
978
+ smartSearch: boolean;
979
+ tableWidth: string;
980
+ showInForm?: boolean | undefined;
981
+ formColSpan?: number | undefined;
982
+ disabled?: boolean | undefined;
983
+ maxLength?: number | undefined;
984
+ textareaRows?: number | undefined;
985
+ showWordLimit?: boolean | undefined;
986
+ formSection?: string | undefined;
987
+ formRow?: number | undefined;
988
+ isSystemField?: boolean | undefined;
989
+ isPrimaryKey?: boolean | undefined;
990
+ isForeignKey?: boolean | undefined;
991
+ defaultValue?: string | undefined;
992
+ dictCode?: string | undefined;
993
+ needFormatter?: boolean | undefined;
994
+ dateFormat?: string | undefined;
995
+ isTimeQueryField?: boolean | undefined;
996
+ refConfig?: {
997
+ refComponent: string;
998
+ refTitle: string;
999
+ idField: string;
1000
+ nameField: string;
1001
+ extraMappings: {
1002
+ source: string;
1003
+ target: string;
1004
+ }[];
1005
+ rootId?: string | undefined;
1006
+ containParentFlag?: string | undefined;
1007
+ } | undefined;
1008
+ editableInTable?: boolean | undefined;
1009
+ editInputType?: string | undefined;
1010
+ editBindField?: string | undefined;
1011
+ editRuleProp?: string | undefined;
1012
+ }[];
1013
+ detailTitle: string;
1014
+ detailCollapseTitle: string;
1015
+ detailFkField: string;
1016
+ detailRowKey: string;
1017
+ detailListName: string;
1018
+ detailRefType: string;
1019
+ detailRefConfig: {
1020
+ extraMappings: {
1021
+ source: string;
1022
+ target: string;
1023
+ }[];
1024
+ component: string;
1025
+ componentPath: string;
1026
+ idMapping: {
1027
+ source: string;
1028
+ target: string;
1029
+ };
1030
+ nameMapping: {
1031
+ source: string;
1032
+ target: string;
1033
+ };
1034
+ codeMapping?: {
1035
+ source: string;
1036
+ target: string;
1037
+ } | undefined;
1038
+ };
1039
+ detailValidateConfig: {
1040
+ rowNameType: string;
1041
+ rowName: string;
1042
+ };
1043
+ } | undefined;
1044
+ }>;
1045
+ export interface ValidateResult {
1046
+ valid: boolean;
1047
+ errors: string[];
1048
+ }
1049
+ export declare function validateSchema(schemaJson: string): ValidateResult;
1050
+ export declare function parseSchema(schemaJson: string): TableSchema;
1051
+ //# sourceMappingURL=validate.d.ts.map