@objectstack/spec 0.3.1 → 0.3.2

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.
@@ -1,4 +1,186 @@
1
1
  import { z } from 'zod';
2
+ /**
3
+ * HTTP Method Enum
4
+ */
5
+ export declare const HttpMethodSchema: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
6
+ /**
7
+ * HTTP Request Configuration for API Provider
8
+ */
9
+ export declare const HttpRequestSchema: z.ZodObject<{
10
+ url: z.ZodString;
11
+ method: z.ZodDefault<z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>>;
12
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
13
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
+ body: z.ZodOptional<z.ZodUnknown>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ url: string;
17
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
18
+ params?: Record<string, unknown> | undefined;
19
+ headers?: Record<string, string> | undefined;
20
+ body?: unknown;
21
+ }, {
22
+ url: string;
23
+ params?: Record<string, unknown> | undefined;
24
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
25
+ headers?: Record<string, string> | undefined;
26
+ body?: unknown;
27
+ }>;
28
+ /**
29
+ * View Data Source Configuration
30
+ * Supports three modes:
31
+ * 1. 'object': Standard Protocol - Auto-connects to ObjectStack Metadata and Data APIs
32
+ * 2. 'api': Custom API - Explicitly provided API URLs
33
+ * 3. 'value': Static Data - Hardcoded data array
34
+ */
35
+ export declare const ViewDataSchema: z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
36
+ provider: z.ZodLiteral<"object">;
37
+ object: z.ZodString;
38
+ }, "strip", z.ZodTypeAny, {
39
+ object: string;
40
+ provider: "object";
41
+ }, {
42
+ object: string;
43
+ provider: "object";
44
+ }>, z.ZodObject<{
45
+ provider: z.ZodLiteral<"api">;
46
+ read: z.ZodOptional<z.ZodObject<{
47
+ url: z.ZodString;
48
+ method: z.ZodDefault<z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>>;
49
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
50
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
51
+ body: z.ZodOptional<z.ZodUnknown>;
52
+ }, "strip", z.ZodTypeAny, {
53
+ url: string;
54
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
55
+ params?: Record<string, unknown> | undefined;
56
+ headers?: Record<string, string> | undefined;
57
+ body?: unknown;
58
+ }, {
59
+ url: string;
60
+ params?: Record<string, unknown> | undefined;
61
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
62
+ headers?: Record<string, string> | undefined;
63
+ body?: unknown;
64
+ }>>;
65
+ write: z.ZodOptional<z.ZodObject<{
66
+ url: z.ZodString;
67
+ method: z.ZodDefault<z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>>;
68
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
69
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
70
+ body: z.ZodOptional<z.ZodUnknown>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ url: string;
73
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
74
+ params?: Record<string, unknown> | undefined;
75
+ headers?: Record<string, string> | undefined;
76
+ body?: unknown;
77
+ }, {
78
+ url: string;
79
+ params?: Record<string, unknown> | undefined;
80
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
81
+ headers?: Record<string, string> | undefined;
82
+ body?: unknown;
83
+ }>>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ provider: "api";
86
+ read?: {
87
+ url: string;
88
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
89
+ params?: Record<string, unknown> | undefined;
90
+ headers?: Record<string, string> | undefined;
91
+ body?: unknown;
92
+ } | undefined;
93
+ write?: {
94
+ url: string;
95
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
96
+ params?: Record<string, unknown> | undefined;
97
+ headers?: Record<string, string> | undefined;
98
+ body?: unknown;
99
+ } | undefined;
100
+ }, {
101
+ provider: "api";
102
+ read?: {
103
+ url: string;
104
+ params?: Record<string, unknown> | undefined;
105
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
106
+ headers?: Record<string, string> | undefined;
107
+ body?: unknown;
108
+ } | undefined;
109
+ write?: {
110
+ url: string;
111
+ params?: Record<string, unknown> | undefined;
112
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
113
+ headers?: Record<string, string> | undefined;
114
+ body?: unknown;
115
+ } | undefined;
116
+ }>, z.ZodObject<{
117
+ provider: z.ZodLiteral<"value">;
118
+ items: z.ZodArray<z.ZodUnknown, "many">;
119
+ }, "strip", z.ZodTypeAny, {
120
+ provider: "value";
121
+ items: unknown[];
122
+ }, {
123
+ provider: "value";
124
+ items: unknown[];
125
+ }>]>;
126
+ /**
127
+ * List Column Configuration Schema
128
+ * Detailed configuration for individual list view columns
129
+ */
130
+ export declare const ListColumnSchema: z.ZodObject<{
131
+ field: z.ZodString;
132
+ label: z.ZodOptional<z.ZodString>;
133
+ width: z.ZodOptional<z.ZodNumber>;
134
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
135
+ hidden: z.ZodOptional<z.ZodBoolean>;
136
+ sortable: z.ZodOptional<z.ZodBoolean>;
137
+ resizable: z.ZodOptional<z.ZodBoolean>;
138
+ wrap: z.ZodOptional<z.ZodBoolean>;
139
+ type: z.ZodOptional<z.ZodString>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ field: string;
142
+ type?: string | undefined;
143
+ label?: string | undefined;
144
+ hidden?: boolean | undefined;
145
+ width?: number | undefined;
146
+ align?: "left" | "right" | "center" | undefined;
147
+ sortable?: boolean | undefined;
148
+ resizable?: boolean | undefined;
149
+ wrap?: boolean | undefined;
150
+ }, {
151
+ field: string;
152
+ type?: string | undefined;
153
+ label?: string | undefined;
154
+ hidden?: boolean | undefined;
155
+ width?: number | undefined;
156
+ align?: "left" | "right" | "center" | undefined;
157
+ sortable?: boolean | undefined;
158
+ resizable?: boolean | undefined;
159
+ wrap?: boolean | undefined;
160
+ }>;
161
+ /**
162
+ * List View Selection Configuration
163
+ */
164
+ export declare const SelectionConfigSchema: z.ZodObject<{
165
+ type: z.ZodDefault<z.ZodEnum<["none", "single", "multiple"]>>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ type: "multiple" | "none" | "single";
168
+ }, {
169
+ type?: "multiple" | "none" | "single" | undefined;
170
+ }>;
171
+ /**
172
+ * List View Pagination Configuration
173
+ */
174
+ export declare const PaginationConfigSchema: z.ZodObject<{
175
+ pageSize: z.ZodDefault<z.ZodNumber>;
176
+ pageSizeOptions: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ pageSize: number;
179
+ pageSizeOptions?: number[] | undefined;
180
+ }, {
181
+ pageSize?: number | undefined;
182
+ pageSizeOptions?: number[] | undefined;
183
+ }>;
2
184
  /**
3
185
  * Kanban Settings
4
186
  */
@@ -63,8 +245,130 @@ export declare const ListViewSchema: z.ZodObject<{
63
245
  name: z.ZodOptional<z.ZodString>;
64
246
  label: z.ZodOptional<z.ZodString>;
65
247
  type: z.ZodDefault<z.ZodEnum<["grid", "kanban", "calendar", "gantt", "map"]>>;
248
+ /** Data Source Configuration */
249
+ data: z.ZodOptional<z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
250
+ provider: z.ZodLiteral<"object">;
251
+ object: z.ZodString;
252
+ }, "strip", z.ZodTypeAny, {
253
+ object: string;
254
+ provider: "object";
255
+ }, {
256
+ object: string;
257
+ provider: "object";
258
+ }>, z.ZodObject<{
259
+ provider: z.ZodLiteral<"api">;
260
+ read: z.ZodOptional<z.ZodObject<{
261
+ url: z.ZodString;
262
+ method: z.ZodDefault<z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>>;
263
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
264
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
265
+ body: z.ZodOptional<z.ZodUnknown>;
266
+ }, "strip", z.ZodTypeAny, {
267
+ url: string;
268
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
269
+ params?: Record<string, unknown> | undefined;
270
+ headers?: Record<string, string> | undefined;
271
+ body?: unknown;
272
+ }, {
273
+ url: string;
274
+ params?: Record<string, unknown> | undefined;
275
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
276
+ headers?: Record<string, string> | undefined;
277
+ body?: unknown;
278
+ }>>;
279
+ write: z.ZodOptional<z.ZodObject<{
280
+ url: z.ZodString;
281
+ method: z.ZodDefault<z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>>;
282
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
283
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
284
+ body: z.ZodOptional<z.ZodUnknown>;
285
+ }, "strip", z.ZodTypeAny, {
286
+ url: string;
287
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
288
+ params?: Record<string, unknown> | undefined;
289
+ headers?: Record<string, string> | undefined;
290
+ body?: unknown;
291
+ }, {
292
+ url: string;
293
+ params?: Record<string, unknown> | undefined;
294
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
295
+ headers?: Record<string, string> | undefined;
296
+ body?: unknown;
297
+ }>>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ provider: "api";
300
+ read?: {
301
+ url: string;
302
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
303
+ params?: Record<string, unknown> | undefined;
304
+ headers?: Record<string, string> | undefined;
305
+ body?: unknown;
306
+ } | undefined;
307
+ write?: {
308
+ url: string;
309
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
310
+ params?: Record<string, unknown> | undefined;
311
+ headers?: Record<string, string> | undefined;
312
+ body?: unknown;
313
+ } | undefined;
314
+ }, {
315
+ provider: "api";
316
+ read?: {
317
+ url: string;
318
+ params?: Record<string, unknown> | undefined;
319
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
320
+ headers?: Record<string, string> | undefined;
321
+ body?: unknown;
322
+ } | undefined;
323
+ write?: {
324
+ url: string;
325
+ params?: Record<string, unknown> | undefined;
326
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
327
+ headers?: Record<string, string> | undefined;
328
+ body?: unknown;
329
+ } | undefined;
330
+ }>, z.ZodObject<{
331
+ provider: z.ZodLiteral<"value">;
332
+ items: z.ZodArray<z.ZodUnknown, "many">;
333
+ }, "strip", z.ZodTypeAny, {
334
+ provider: "value";
335
+ items: unknown[];
336
+ }, {
337
+ provider: "value";
338
+ items: unknown[];
339
+ }>]>>;
66
340
  /** Shared Query Config */
67
- columns: z.ZodArray<z.ZodString, "many">;
341
+ columns: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodObject<{
342
+ field: z.ZodString;
343
+ label: z.ZodOptional<z.ZodString>;
344
+ width: z.ZodOptional<z.ZodNumber>;
345
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
346
+ hidden: z.ZodOptional<z.ZodBoolean>;
347
+ sortable: z.ZodOptional<z.ZodBoolean>;
348
+ resizable: z.ZodOptional<z.ZodBoolean>;
349
+ wrap: z.ZodOptional<z.ZodBoolean>;
350
+ type: z.ZodOptional<z.ZodString>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ field: string;
353
+ type?: string | undefined;
354
+ label?: string | undefined;
355
+ hidden?: boolean | undefined;
356
+ width?: number | undefined;
357
+ align?: "left" | "right" | "center" | undefined;
358
+ sortable?: boolean | undefined;
359
+ resizable?: boolean | undefined;
360
+ wrap?: boolean | undefined;
361
+ }, {
362
+ field: string;
363
+ type?: string | undefined;
364
+ label?: string | undefined;
365
+ hidden?: boolean | undefined;
366
+ width?: number | undefined;
367
+ align?: "left" | "right" | "center" | undefined;
368
+ sortable?: boolean | undefined;
369
+ resizable?: boolean | undefined;
370
+ wrap?: boolean | undefined;
371
+ }>, "many">]>;
68
372
  filter: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
69
373
  sort: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
70
374
  field: z.ZodString;
@@ -78,6 +382,29 @@ export declare const ListViewSchema: z.ZodObject<{
78
382
  }>, "many">]>>;
79
383
  /** Search */
80
384
  searchableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
385
+ /** Grid Features */
386
+ resizable: z.ZodOptional<z.ZodBoolean>;
387
+ striped: z.ZodOptional<z.ZodBoolean>;
388
+ bordered: z.ZodOptional<z.ZodBoolean>;
389
+ /** Selection */
390
+ selection: z.ZodOptional<z.ZodObject<{
391
+ type: z.ZodDefault<z.ZodEnum<["none", "single", "multiple"]>>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ type: "multiple" | "none" | "single";
394
+ }, {
395
+ type?: "multiple" | "none" | "single" | undefined;
396
+ }>>;
397
+ /** Pagination */
398
+ pagination: z.ZodOptional<z.ZodObject<{
399
+ pageSize: z.ZodDefault<z.ZodNumber>;
400
+ pageSizeOptions: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
401
+ }, "strip", z.ZodTypeAny, {
402
+ pageSize: number;
403
+ pageSizeOptions?: number[] | undefined;
404
+ }, {
405
+ pageSize?: number | undefined;
406
+ pageSizeOptions?: number[] | undefined;
407
+ }>>;
81
408
  /** Type Specific Config */
82
409
  kanban: z.ZodOptional<z.ZodObject<{
83
410
  groupByField: z.ZodString;
@@ -129,7 +456,17 @@ export declare const ListViewSchema: z.ZodObject<{
129
456
  }>>;
130
457
  }, "strip", z.ZodTypeAny, {
131
458
  type: "map" | "grid" | "kanban" | "calendar" | "gantt";
132
- columns: string[];
459
+ columns: string[] | {
460
+ field: string;
461
+ type?: string | undefined;
462
+ label?: string | undefined;
463
+ hidden?: boolean | undefined;
464
+ width?: number | undefined;
465
+ align?: "left" | "right" | "center" | undefined;
466
+ sortable?: boolean | undefined;
467
+ resizable?: boolean | undefined;
468
+ wrap?: boolean | undefined;
469
+ }[];
133
470
  sort?: string | {
134
471
  field: string;
135
472
  order: "asc" | "desc";
@@ -137,6 +474,30 @@ export declare const ListViewSchema: z.ZodObject<{
137
474
  filter?: any[] | undefined;
138
475
  label?: string | undefined;
139
476
  name?: string | undefined;
477
+ data?: {
478
+ object: string;
479
+ provider: "object";
480
+ } | {
481
+ provider: "api";
482
+ read?: {
483
+ url: string;
484
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
485
+ params?: Record<string, unknown> | undefined;
486
+ headers?: Record<string, string> | undefined;
487
+ body?: unknown;
488
+ } | undefined;
489
+ write?: {
490
+ url: string;
491
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
492
+ params?: Record<string, unknown> | undefined;
493
+ headers?: Record<string, string> | undefined;
494
+ body?: unknown;
495
+ } | undefined;
496
+ } | {
497
+ provider: "value";
498
+ items: unknown[];
499
+ } | undefined;
500
+ resizable?: boolean | undefined;
140
501
  kanban?: {
141
502
  groupByField: string;
142
503
  columns: string[];
@@ -156,8 +517,27 @@ export declare const ListViewSchema: z.ZodObject<{
156
517
  dependenciesField?: string | undefined;
157
518
  } | undefined;
158
519
  searchableFields?: string[] | undefined;
520
+ striped?: boolean | undefined;
521
+ bordered?: boolean | undefined;
522
+ selection?: {
523
+ type: "multiple" | "none" | "single";
524
+ } | undefined;
525
+ pagination?: {
526
+ pageSize: number;
527
+ pageSizeOptions?: number[] | undefined;
528
+ } | undefined;
159
529
  }, {
160
- columns: string[];
530
+ columns: string[] | {
531
+ field: string;
532
+ type?: string | undefined;
533
+ label?: string | undefined;
534
+ hidden?: boolean | undefined;
535
+ width?: number | undefined;
536
+ align?: "left" | "right" | "center" | undefined;
537
+ sortable?: boolean | undefined;
538
+ resizable?: boolean | undefined;
539
+ wrap?: boolean | undefined;
540
+ }[];
161
541
  sort?: string | {
162
542
  field: string;
163
543
  order: "asc" | "desc";
@@ -166,6 +546,30 @@ export declare const ListViewSchema: z.ZodObject<{
166
546
  type?: "map" | "grid" | "kanban" | "calendar" | "gantt" | undefined;
167
547
  label?: string | undefined;
168
548
  name?: string | undefined;
549
+ data?: {
550
+ object: string;
551
+ provider: "object";
552
+ } | {
553
+ provider: "api";
554
+ read?: {
555
+ url: string;
556
+ params?: Record<string, unknown> | undefined;
557
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
558
+ headers?: Record<string, string> | undefined;
559
+ body?: unknown;
560
+ } | undefined;
561
+ write?: {
562
+ url: string;
563
+ params?: Record<string, unknown> | undefined;
564
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
565
+ headers?: Record<string, string> | undefined;
566
+ body?: unknown;
567
+ } | undefined;
568
+ } | {
569
+ provider: "value";
570
+ items: unknown[];
571
+ } | undefined;
572
+ resizable?: boolean | undefined;
169
573
  kanban?: {
170
574
  groupByField: string;
171
575
  columns: string[];
@@ -185,6 +589,56 @@ export declare const ListViewSchema: z.ZodObject<{
185
589
  dependenciesField?: string | undefined;
186
590
  } | undefined;
187
591
  searchableFields?: string[] | undefined;
592
+ striped?: boolean | undefined;
593
+ bordered?: boolean | undefined;
594
+ selection?: {
595
+ type?: "multiple" | "none" | "single" | undefined;
596
+ } | undefined;
597
+ pagination?: {
598
+ pageSize?: number | undefined;
599
+ pageSizeOptions?: number[] | undefined;
600
+ } | undefined;
601
+ }>;
602
+ /**
603
+ * Form Field Configuration Schema
604
+ * Detailed configuration for individual form fields
605
+ */
606
+ export declare const FormFieldSchema: z.ZodObject<{
607
+ field: z.ZodString;
608
+ label: z.ZodOptional<z.ZodString>;
609
+ placeholder: z.ZodOptional<z.ZodString>;
610
+ helpText: z.ZodOptional<z.ZodString>;
611
+ readonly: z.ZodOptional<z.ZodBoolean>;
612
+ required: z.ZodOptional<z.ZodBoolean>;
613
+ hidden: z.ZodOptional<z.ZodBoolean>;
614
+ colSpan: z.ZodOptional<z.ZodNumber>;
615
+ widget: z.ZodOptional<z.ZodString>;
616
+ dependsOn: z.ZodOptional<z.ZodString>;
617
+ visibleOn: z.ZodOptional<z.ZodString>;
618
+ }, "strip", z.ZodTypeAny, {
619
+ field: string;
620
+ label?: string | undefined;
621
+ required?: boolean | undefined;
622
+ hidden?: boolean | undefined;
623
+ readonly?: boolean | undefined;
624
+ placeholder?: string | undefined;
625
+ helpText?: string | undefined;
626
+ colSpan?: number | undefined;
627
+ widget?: string | undefined;
628
+ dependsOn?: string | undefined;
629
+ visibleOn?: string | undefined;
630
+ }, {
631
+ field: string;
632
+ label?: string | undefined;
633
+ required?: boolean | undefined;
634
+ hidden?: boolean | undefined;
635
+ readonly?: boolean | undefined;
636
+ placeholder?: string | undefined;
637
+ helpText?: string | undefined;
638
+ colSpan?: number | undefined;
639
+ widget?: string | undefined;
640
+ dependsOn?: string | undefined;
641
+ visibleOn?: string | undefined;
188
642
  }>;
189
643
  /**
190
644
  * Form Layout Section
@@ -194,15 +648,75 @@ export declare const FormSectionSchema: z.ZodObject<{
194
648
  collapsible: z.ZodDefault<z.ZodBoolean>;
195
649
  collapsed: z.ZodDefault<z.ZodBoolean>;
196
650
  columns: z.ZodEffects<z.ZodDefault<z.ZodEnum<["1", "2", "3", "4"]>>, 1 | 2 | 3 | 4, "1" | "2" | "3" | "4" | undefined>;
197
- fields: z.ZodArray<z.ZodString, "many">;
651
+ fields: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
652
+ field: z.ZodString;
653
+ label: z.ZodOptional<z.ZodString>;
654
+ placeholder: z.ZodOptional<z.ZodString>;
655
+ helpText: z.ZodOptional<z.ZodString>;
656
+ readonly: z.ZodOptional<z.ZodBoolean>;
657
+ required: z.ZodOptional<z.ZodBoolean>;
658
+ hidden: z.ZodOptional<z.ZodBoolean>;
659
+ colSpan: z.ZodOptional<z.ZodNumber>;
660
+ widget: z.ZodOptional<z.ZodString>;
661
+ dependsOn: z.ZodOptional<z.ZodString>;
662
+ visibleOn: z.ZodOptional<z.ZodString>;
663
+ }, "strip", z.ZodTypeAny, {
664
+ field: string;
665
+ label?: string | undefined;
666
+ required?: boolean | undefined;
667
+ hidden?: boolean | undefined;
668
+ readonly?: boolean | undefined;
669
+ placeholder?: string | undefined;
670
+ helpText?: string | undefined;
671
+ colSpan?: number | undefined;
672
+ widget?: string | undefined;
673
+ dependsOn?: string | undefined;
674
+ visibleOn?: string | undefined;
675
+ }, {
676
+ field: string;
677
+ label?: string | undefined;
678
+ required?: boolean | undefined;
679
+ hidden?: boolean | undefined;
680
+ readonly?: boolean | undefined;
681
+ placeholder?: string | undefined;
682
+ helpText?: string | undefined;
683
+ colSpan?: number | undefined;
684
+ widget?: string | undefined;
685
+ dependsOn?: string | undefined;
686
+ visibleOn?: string | undefined;
687
+ }>]>, "many">;
198
688
  }, "strip", z.ZodTypeAny, {
199
- fields: string[];
689
+ fields: (string | {
690
+ field: string;
691
+ label?: string | undefined;
692
+ required?: boolean | undefined;
693
+ hidden?: boolean | undefined;
694
+ readonly?: boolean | undefined;
695
+ placeholder?: string | undefined;
696
+ helpText?: string | undefined;
697
+ colSpan?: number | undefined;
698
+ widget?: string | undefined;
699
+ dependsOn?: string | undefined;
700
+ visibleOn?: string | undefined;
701
+ })[];
200
702
  columns: 1 | 2 | 3 | 4;
201
703
  collapsible: boolean;
202
704
  collapsed: boolean;
203
705
  label?: string | undefined;
204
706
  }, {
205
- fields: string[];
707
+ fields: (string | {
708
+ field: string;
709
+ label?: string | undefined;
710
+ required?: boolean | undefined;
711
+ hidden?: boolean | undefined;
712
+ readonly?: boolean | undefined;
713
+ placeholder?: string | undefined;
714
+ helpText?: string | undefined;
715
+ colSpan?: number | undefined;
716
+ widget?: string | undefined;
717
+ dependsOn?: string | undefined;
718
+ visibleOn?: string | undefined;
719
+ })[];
206
720
  label?: string | undefined;
207
721
  columns?: "1" | "2" | "3" | "4" | undefined;
208
722
  collapsible?: boolean | undefined;
@@ -213,20 +727,172 @@ export declare const FormSectionSchema: z.ZodObject<{
213
727
  */
214
728
  export declare const FormViewSchema: z.ZodObject<{
215
729
  type: z.ZodDefault<z.ZodEnum<["simple", "tabbed", "wizard"]>>;
730
+ /** Data Source Configuration */
731
+ data: z.ZodOptional<z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
732
+ provider: z.ZodLiteral<"object">;
733
+ object: z.ZodString;
734
+ }, "strip", z.ZodTypeAny, {
735
+ object: string;
736
+ provider: "object";
737
+ }, {
738
+ object: string;
739
+ provider: "object";
740
+ }>, z.ZodObject<{
741
+ provider: z.ZodLiteral<"api">;
742
+ read: z.ZodOptional<z.ZodObject<{
743
+ url: z.ZodString;
744
+ method: z.ZodDefault<z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>>;
745
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
746
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
747
+ body: z.ZodOptional<z.ZodUnknown>;
748
+ }, "strip", z.ZodTypeAny, {
749
+ url: string;
750
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
751
+ params?: Record<string, unknown> | undefined;
752
+ headers?: Record<string, string> | undefined;
753
+ body?: unknown;
754
+ }, {
755
+ url: string;
756
+ params?: Record<string, unknown> | undefined;
757
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
758
+ headers?: Record<string, string> | undefined;
759
+ body?: unknown;
760
+ }>>;
761
+ write: z.ZodOptional<z.ZodObject<{
762
+ url: z.ZodString;
763
+ method: z.ZodDefault<z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>>;
764
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
765
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
766
+ body: z.ZodOptional<z.ZodUnknown>;
767
+ }, "strip", z.ZodTypeAny, {
768
+ url: string;
769
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
770
+ params?: Record<string, unknown> | undefined;
771
+ headers?: Record<string, string> | undefined;
772
+ body?: unknown;
773
+ }, {
774
+ url: string;
775
+ params?: Record<string, unknown> | undefined;
776
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
777
+ headers?: Record<string, string> | undefined;
778
+ body?: unknown;
779
+ }>>;
780
+ }, "strip", z.ZodTypeAny, {
781
+ provider: "api";
782
+ read?: {
783
+ url: string;
784
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
785
+ params?: Record<string, unknown> | undefined;
786
+ headers?: Record<string, string> | undefined;
787
+ body?: unknown;
788
+ } | undefined;
789
+ write?: {
790
+ url: string;
791
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
792
+ params?: Record<string, unknown> | undefined;
793
+ headers?: Record<string, string> | undefined;
794
+ body?: unknown;
795
+ } | undefined;
796
+ }, {
797
+ provider: "api";
798
+ read?: {
799
+ url: string;
800
+ params?: Record<string, unknown> | undefined;
801
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
802
+ headers?: Record<string, string> | undefined;
803
+ body?: unknown;
804
+ } | undefined;
805
+ write?: {
806
+ url: string;
807
+ params?: Record<string, unknown> | undefined;
808
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
809
+ headers?: Record<string, string> | undefined;
810
+ body?: unknown;
811
+ } | undefined;
812
+ }>, z.ZodObject<{
813
+ provider: z.ZodLiteral<"value">;
814
+ items: z.ZodArray<z.ZodUnknown, "many">;
815
+ }, "strip", z.ZodTypeAny, {
816
+ provider: "value";
817
+ items: unknown[];
818
+ }, {
819
+ provider: "value";
820
+ items: unknown[];
821
+ }>]>>;
216
822
  sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
217
823
  label: z.ZodOptional<z.ZodString>;
218
824
  collapsible: z.ZodDefault<z.ZodBoolean>;
219
825
  collapsed: z.ZodDefault<z.ZodBoolean>;
220
826
  columns: z.ZodEffects<z.ZodDefault<z.ZodEnum<["1", "2", "3", "4"]>>, 1 | 2 | 3 | 4, "1" | "2" | "3" | "4" | undefined>;
221
- fields: z.ZodArray<z.ZodString, "many">;
827
+ fields: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
828
+ field: z.ZodString;
829
+ label: z.ZodOptional<z.ZodString>;
830
+ placeholder: z.ZodOptional<z.ZodString>;
831
+ helpText: z.ZodOptional<z.ZodString>;
832
+ readonly: z.ZodOptional<z.ZodBoolean>;
833
+ required: z.ZodOptional<z.ZodBoolean>;
834
+ hidden: z.ZodOptional<z.ZodBoolean>;
835
+ colSpan: z.ZodOptional<z.ZodNumber>;
836
+ widget: z.ZodOptional<z.ZodString>;
837
+ dependsOn: z.ZodOptional<z.ZodString>;
838
+ visibleOn: z.ZodOptional<z.ZodString>;
839
+ }, "strip", z.ZodTypeAny, {
840
+ field: string;
841
+ label?: string | undefined;
842
+ required?: boolean | undefined;
843
+ hidden?: boolean | undefined;
844
+ readonly?: boolean | undefined;
845
+ placeholder?: string | undefined;
846
+ helpText?: string | undefined;
847
+ colSpan?: number | undefined;
848
+ widget?: string | undefined;
849
+ dependsOn?: string | undefined;
850
+ visibleOn?: string | undefined;
851
+ }, {
852
+ field: string;
853
+ label?: string | undefined;
854
+ required?: boolean | undefined;
855
+ hidden?: boolean | undefined;
856
+ readonly?: boolean | undefined;
857
+ placeholder?: string | undefined;
858
+ helpText?: string | undefined;
859
+ colSpan?: number | undefined;
860
+ widget?: string | undefined;
861
+ dependsOn?: string | undefined;
862
+ visibleOn?: string | undefined;
863
+ }>]>, "many">;
222
864
  }, "strip", z.ZodTypeAny, {
223
- fields: string[];
865
+ fields: (string | {
866
+ field: string;
867
+ label?: string | undefined;
868
+ required?: boolean | undefined;
869
+ hidden?: boolean | undefined;
870
+ readonly?: boolean | undefined;
871
+ placeholder?: string | undefined;
872
+ helpText?: string | undefined;
873
+ colSpan?: number | undefined;
874
+ widget?: string | undefined;
875
+ dependsOn?: string | undefined;
876
+ visibleOn?: string | undefined;
877
+ })[];
224
878
  columns: 1 | 2 | 3 | 4;
225
879
  collapsible: boolean;
226
880
  collapsed: boolean;
227
881
  label?: string | undefined;
228
882
  }, {
229
- fields: string[];
883
+ fields: (string | {
884
+ field: string;
885
+ label?: string | undefined;
886
+ required?: boolean | undefined;
887
+ hidden?: boolean | undefined;
888
+ readonly?: boolean | undefined;
889
+ placeholder?: string | undefined;
890
+ helpText?: string | undefined;
891
+ colSpan?: number | undefined;
892
+ widget?: string | undefined;
893
+ dependsOn?: string | undefined;
894
+ visibleOn?: string | undefined;
895
+ })[];
230
896
  label?: string | undefined;
231
897
  columns?: "1" | "2" | "3" | "4" | undefined;
232
898
  collapsible?: boolean | undefined;
@@ -237,15 +903,75 @@ export declare const FormViewSchema: z.ZodObject<{
237
903
  collapsible: z.ZodDefault<z.ZodBoolean>;
238
904
  collapsed: z.ZodDefault<z.ZodBoolean>;
239
905
  columns: z.ZodEffects<z.ZodDefault<z.ZodEnum<["1", "2", "3", "4"]>>, 1 | 2 | 3 | 4, "1" | "2" | "3" | "4" | undefined>;
240
- fields: z.ZodArray<z.ZodString, "many">;
906
+ fields: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
907
+ field: z.ZodString;
908
+ label: z.ZodOptional<z.ZodString>;
909
+ placeholder: z.ZodOptional<z.ZodString>;
910
+ helpText: z.ZodOptional<z.ZodString>;
911
+ readonly: z.ZodOptional<z.ZodBoolean>;
912
+ required: z.ZodOptional<z.ZodBoolean>;
913
+ hidden: z.ZodOptional<z.ZodBoolean>;
914
+ colSpan: z.ZodOptional<z.ZodNumber>;
915
+ widget: z.ZodOptional<z.ZodString>;
916
+ dependsOn: z.ZodOptional<z.ZodString>;
917
+ visibleOn: z.ZodOptional<z.ZodString>;
918
+ }, "strip", z.ZodTypeAny, {
919
+ field: string;
920
+ label?: string | undefined;
921
+ required?: boolean | undefined;
922
+ hidden?: boolean | undefined;
923
+ readonly?: boolean | undefined;
924
+ placeholder?: string | undefined;
925
+ helpText?: string | undefined;
926
+ colSpan?: number | undefined;
927
+ widget?: string | undefined;
928
+ dependsOn?: string | undefined;
929
+ visibleOn?: string | undefined;
930
+ }, {
931
+ field: string;
932
+ label?: string | undefined;
933
+ required?: boolean | undefined;
934
+ hidden?: boolean | undefined;
935
+ readonly?: boolean | undefined;
936
+ placeholder?: string | undefined;
937
+ helpText?: string | undefined;
938
+ colSpan?: number | undefined;
939
+ widget?: string | undefined;
940
+ dependsOn?: string | undefined;
941
+ visibleOn?: string | undefined;
942
+ }>]>, "many">;
241
943
  }, "strip", z.ZodTypeAny, {
242
- fields: string[];
944
+ fields: (string | {
945
+ field: string;
946
+ label?: string | undefined;
947
+ required?: boolean | undefined;
948
+ hidden?: boolean | undefined;
949
+ readonly?: boolean | undefined;
950
+ placeholder?: string | undefined;
951
+ helpText?: string | undefined;
952
+ colSpan?: number | undefined;
953
+ widget?: string | undefined;
954
+ dependsOn?: string | undefined;
955
+ visibleOn?: string | undefined;
956
+ })[];
243
957
  columns: 1 | 2 | 3 | 4;
244
958
  collapsible: boolean;
245
959
  collapsed: boolean;
246
960
  label?: string | undefined;
247
961
  }, {
248
- fields: string[];
962
+ fields: (string | {
963
+ field: string;
964
+ label?: string | undefined;
965
+ required?: boolean | undefined;
966
+ hidden?: boolean | undefined;
967
+ readonly?: boolean | undefined;
968
+ placeholder?: string | undefined;
969
+ helpText?: string | undefined;
970
+ colSpan?: number | undefined;
971
+ widget?: string | undefined;
972
+ dependsOn?: string | undefined;
973
+ visibleOn?: string | undefined;
974
+ })[];
249
975
  label?: string | undefined;
250
976
  columns?: "1" | "2" | "3" | "4" | undefined;
251
977
  collapsible?: boolean | undefined;
@@ -253,15 +979,62 @@ export declare const FormViewSchema: z.ZodObject<{
253
979
  }>, "many">>;
254
980
  }, "strip", z.ZodTypeAny, {
255
981
  type: "simple" | "tabbed" | "wizard";
982
+ data?: {
983
+ object: string;
984
+ provider: "object";
985
+ } | {
986
+ provider: "api";
987
+ read?: {
988
+ url: string;
989
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
990
+ params?: Record<string, unknown> | undefined;
991
+ headers?: Record<string, string> | undefined;
992
+ body?: unknown;
993
+ } | undefined;
994
+ write?: {
995
+ url: string;
996
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
997
+ params?: Record<string, unknown> | undefined;
998
+ headers?: Record<string, string> | undefined;
999
+ body?: unknown;
1000
+ } | undefined;
1001
+ } | {
1002
+ provider: "value";
1003
+ items: unknown[];
1004
+ } | undefined;
256
1005
  sections?: {
257
- fields: string[];
1006
+ fields: (string | {
1007
+ field: string;
1008
+ label?: string | undefined;
1009
+ required?: boolean | undefined;
1010
+ hidden?: boolean | undefined;
1011
+ readonly?: boolean | undefined;
1012
+ placeholder?: string | undefined;
1013
+ helpText?: string | undefined;
1014
+ colSpan?: number | undefined;
1015
+ widget?: string | undefined;
1016
+ dependsOn?: string | undefined;
1017
+ visibleOn?: string | undefined;
1018
+ })[];
258
1019
  columns: 1 | 2 | 3 | 4;
259
1020
  collapsible: boolean;
260
1021
  collapsed: boolean;
261
1022
  label?: string | undefined;
262
1023
  }[] | undefined;
263
1024
  groups?: {
264
- fields: string[];
1025
+ fields: (string | {
1026
+ field: string;
1027
+ label?: string | undefined;
1028
+ required?: boolean | undefined;
1029
+ hidden?: boolean | undefined;
1030
+ readonly?: boolean | undefined;
1031
+ placeholder?: string | undefined;
1032
+ helpText?: string | undefined;
1033
+ colSpan?: number | undefined;
1034
+ widget?: string | undefined;
1035
+ dependsOn?: string | undefined;
1036
+ visibleOn?: string | undefined;
1037
+ })[];
265
1038
  columns: 1 | 2 | 3 | 4;
266
1039
  collapsible: boolean;
267
1040
  collapsed: boolean;
@@ -269,15 +1042,62 @@ export declare const FormViewSchema: z.ZodObject<{
269
1042
  }[] | undefined;
270
1043
  }, {
271
1044
  type?: "simple" | "tabbed" | "wizard" | undefined;
1045
+ data?: {
1046
+ object: string;
1047
+ provider: "object";
1048
+ } | {
1049
+ provider: "api";
1050
+ read?: {
1051
+ url: string;
1052
+ params?: Record<string, unknown> | undefined;
1053
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
1054
+ headers?: Record<string, string> | undefined;
1055
+ body?: unknown;
1056
+ } | undefined;
1057
+ write?: {
1058
+ url: string;
1059
+ params?: Record<string, unknown> | undefined;
1060
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
1061
+ headers?: Record<string, string> | undefined;
1062
+ body?: unknown;
1063
+ } | undefined;
1064
+ } | {
1065
+ provider: "value";
1066
+ items: unknown[];
1067
+ } | undefined;
272
1068
  sections?: {
273
- fields: string[];
1069
+ fields: (string | {
1070
+ field: string;
1071
+ label?: string | undefined;
1072
+ required?: boolean | undefined;
1073
+ hidden?: boolean | undefined;
1074
+ readonly?: boolean | undefined;
1075
+ placeholder?: string | undefined;
1076
+ helpText?: string | undefined;
1077
+ colSpan?: number | undefined;
1078
+ widget?: string | undefined;
1079
+ dependsOn?: string | undefined;
1080
+ visibleOn?: string | undefined;
1081
+ })[];
274
1082
  label?: string | undefined;
275
1083
  columns?: "1" | "2" | "3" | "4" | undefined;
276
1084
  collapsible?: boolean | undefined;
277
1085
  collapsed?: boolean | undefined;
278
1086
  }[] | undefined;
279
1087
  groups?: {
280
- fields: string[];
1088
+ fields: (string | {
1089
+ field: string;
1090
+ label?: string | undefined;
1091
+ required?: boolean | undefined;
1092
+ hidden?: boolean | undefined;
1093
+ readonly?: boolean | undefined;
1094
+ placeholder?: string | undefined;
1095
+ helpText?: string | undefined;
1096
+ colSpan?: number | undefined;
1097
+ widget?: string | undefined;
1098
+ dependsOn?: string | undefined;
1099
+ visibleOn?: string | undefined;
1100
+ })[];
281
1101
  label?: string | undefined;
282
1102
  columns?: "1" | "2" | "3" | "4" | undefined;
283
1103
  collapsible?: boolean | undefined;
@@ -293,8 +1113,130 @@ export declare const ViewSchema: z.ZodObject<{
293
1113
  name: z.ZodOptional<z.ZodString>;
294
1114
  label: z.ZodOptional<z.ZodString>;
295
1115
  type: z.ZodDefault<z.ZodEnum<["grid", "kanban", "calendar", "gantt", "map"]>>;
1116
+ /** Data Source Configuration */
1117
+ data: z.ZodOptional<z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
1118
+ provider: z.ZodLiteral<"object">;
1119
+ object: z.ZodString;
1120
+ }, "strip", z.ZodTypeAny, {
1121
+ object: string;
1122
+ provider: "object";
1123
+ }, {
1124
+ object: string;
1125
+ provider: "object";
1126
+ }>, z.ZodObject<{
1127
+ provider: z.ZodLiteral<"api">;
1128
+ read: z.ZodOptional<z.ZodObject<{
1129
+ url: z.ZodString;
1130
+ method: z.ZodDefault<z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>>;
1131
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1132
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1133
+ body: z.ZodOptional<z.ZodUnknown>;
1134
+ }, "strip", z.ZodTypeAny, {
1135
+ url: string;
1136
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1137
+ params?: Record<string, unknown> | undefined;
1138
+ headers?: Record<string, string> | undefined;
1139
+ body?: unknown;
1140
+ }, {
1141
+ url: string;
1142
+ params?: Record<string, unknown> | undefined;
1143
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
1144
+ headers?: Record<string, string> | undefined;
1145
+ body?: unknown;
1146
+ }>>;
1147
+ write: z.ZodOptional<z.ZodObject<{
1148
+ url: z.ZodString;
1149
+ method: z.ZodDefault<z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>>;
1150
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1151
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1152
+ body: z.ZodOptional<z.ZodUnknown>;
1153
+ }, "strip", z.ZodTypeAny, {
1154
+ url: string;
1155
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1156
+ params?: Record<string, unknown> | undefined;
1157
+ headers?: Record<string, string> | undefined;
1158
+ body?: unknown;
1159
+ }, {
1160
+ url: string;
1161
+ params?: Record<string, unknown> | undefined;
1162
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
1163
+ headers?: Record<string, string> | undefined;
1164
+ body?: unknown;
1165
+ }>>;
1166
+ }, "strip", z.ZodTypeAny, {
1167
+ provider: "api";
1168
+ read?: {
1169
+ url: string;
1170
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1171
+ params?: Record<string, unknown> | undefined;
1172
+ headers?: Record<string, string> | undefined;
1173
+ body?: unknown;
1174
+ } | undefined;
1175
+ write?: {
1176
+ url: string;
1177
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1178
+ params?: Record<string, unknown> | undefined;
1179
+ headers?: Record<string, string> | undefined;
1180
+ body?: unknown;
1181
+ } | undefined;
1182
+ }, {
1183
+ provider: "api";
1184
+ read?: {
1185
+ url: string;
1186
+ params?: Record<string, unknown> | undefined;
1187
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
1188
+ headers?: Record<string, string> | undefined;
1189
+ body?: unknown;
1190
+ } | undefined;
1191
+ write?: {
1192
+ url: string;
1193
+ params?: Record<string, unknown> | undefined;
1194
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
1195
+ headers?: Record<string, string> | undefined;
1196
+ body?: unknown;
1197
+ } | undefined;
1198
+ }>, z.ZodObject<{
1199
+ provider: z.ZodLiteral<"value">;
1200
+ items: z.ZodArray<z.ZodUnknown, "many">;
1201
+ }, "strip", z.ZodTypeAny, {
1202
+ provider: "value";
1203
+ items: unknown[];
1204
+ }, {
1205
+ provider: "value";
1206
+ items: unknown[];
1207
+ }>]>>;
296
1208
  /** Shared Query Config */
297
- columns: z.ZodArray<z.ZodString, "many">;
1209
+ columns: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodObject<{
1210
+ field: z.ZodString;
1211
+ label: z.ZodOptional<z.ZodString>;
1212
+ width: z.ZodOptional<z.ZodNumber>;
1213
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1214
+ hidden: z.ZodOptional<z.ZodBoolean>;
1215
+ sortable: z.ZodOptional<z.ZodBoolean>;
1216
+ resizable: z.ZodOptional<z.ZodBoolean>;
1217
+ wrap: z.ZodOptional<z.ZodBoolean>;
1218
+ type: z.ZodOptional<z.ZodString>;
1219
+ }, "strip", z.ZodTypeAny, {
1220
+ field: string;
1221
+ type?: string | undefined;
1222
+ label?: string | undefined;
1223
+ hidden?: boolean | undefined;
1224
+ width?: number | undefined;
1225
+ align?: "left" | "right" | "center" | undefined;
1226
+ sortable?: boolean | undefined;
1227
+ resizable?: boolean | undefined;
1228
+ wrap?: boolean | undefined;
1229
+ }, {
1230
+ field: string;
1231
+ type?: string | undefined;
1232
+ label?: string | undefined;
1233
+ hidden?: boolean | undefined;
1234
+ width?: number | undefined;
1235
+ align?: "left" | "right" | "center" | undefined;
1236
+ sortable?: boolean | undefined;
1237
+ resizable?: boolean | undefined;
1238
+ wrap?: boolean | undefined;
1239
+ }>, "many">]>;
298
1240
  filter: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
299
1241
  sort: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
300
1242
  field: z.ZodString;
@@ -308,6 +1250,29 @@ export declare const ViewSchema: z.ZodObject<{
308
1250
  }>, "many">]>>;
309
1251
  /** Search */
310
1252
  searchableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1253
+ /** Grid Features */
1254
+ resizable: z.ZodOptional<z.ZodBoolean>;
1255
+ striped: z.ZodOptional<z.ZodBoolean>;
1256
+ bordered: z.ZodOptional<z.ZodBoolean>;
1257
+ /** Selection */
1258
+ selection: z.ZodOptional<z.ZodObject<{
1259
+ type: z.ZodDefault<z.ZodEnum<["none", "single", "multiple"]>>;
1260
+ }, "strip", z.ZodTypeAny, {
1261
+ type: "multiple" | "none" | "single";
1262
+ }, {
1263
+ type?: "multiple" | "none" | "single" | undefined;
1264
+ }>>;
1265
+ /** Pagination */
1266
+ pagination: z.ZodOptional<z.ZodObject<{
1267
+ pageSize: z.ZodDefault<z.ZodNumber>;
1268
+ pageSizeOptions: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1269
+ }, "strip", z.ZodTypeAny, {
1270
+ pageSize: number;
1271
+ pageSizeOptions?: number[] | undefined;
1272
+ }, {
1273
+ pageSize?: number | undefined;
1274
+ pageSizeOptions?: number[] | undefined;
1275
+ }>>;
311
1276
  /** Type Specific Config */
312
1277
  kanban: z.ZodOptional<z.ZodObject<{
313
1278
  groupByField: z.ZodString;
@@ -359,7 +1324,17 @@ export declare const ViewSchema: z.ZodObject<{
359
1324
  }>>;
360
1325
  }, "strip", z.ZodTypeAny, {
361
1326
  type: "map" | "grid" | "kanban" | "calendar" | "gantt";
362
- columns: string[];
1327
+ columns: string[] | {
1328
+ field: string;
1329
+ type?: string | undefined;
1330
+ label?: string | undefined;
1331
+ hidden?: boolean | undefined;
1332
+ width?: number | undefined;
1333
+ align?: "left" | "right" | "center" | undefined;
1334
+ sortable?: boolean | undefined;
1335
+ resizable?: boolean | undefined;
1336
+ wrap?: boolean | undefined;
1337
+ }[];
363
1338
  sort?: string | {
364
1339
  field: string;
365
1340
  order: "asc" | "desc";
@@ -367,6 +1342,30 @@ export declare const ViewSchema: z.ZodObject<{
367
1342
  filter?: any[] | undefined;
368
1343
  label?: string | undefined;
369
1344
  name?: string | undefined;
1345
+ data?: {
1346
+ object: string;
1347
+ provider: "object";
1348
+ } | {
1349
+ provider: "api";
1350
+ read?: {
1351
+ url: string;
1352
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1353
+ params?: Record<string, unknown> | undefined;
1354
+ headers?: Record<string, string> | undefined;
1355
+ body?: unknown;
1356
+ } | undefined;
1357
+ write?: {
1358
+ url: string;
1359
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1360
+ params?: Record<string, unknown> | undefined;
1361
+ headers?: Record<string, string> | undefined;
1362
+ body?: unknown;
1363
+ } | undefined;
1364
+ } | {
1365
+ provider: "value";
1366
+ items: unknown[];
1367
+ } | undefined;
1368
+ resizable?: boolean | undefined;
370
1369
  kanban?: {
371
1370
  groupByField: string;
372
1371
  columns: string[];
@@ -386,8 +1385,27 @@ export declare const ViewSchema: z.ZodObject<{
386
1385
  dependenciesField?: string | undefined;
387
1386
  } | undefined;
388
1387
  searchableFields?: string[] | undefined;
1388
+ striped?: boolean | undefined;
1389
+ bordered?: boolean | undefined;
1390
+ selection?: {
1391
+ type: "multiple" | "none" | "single";
1392
+ } | undefined;
1393
+ pagination?: {
1394
+ pageSize: number;
1395
+ pageSizeOptions?: number[] | undefined;
1396
+ } | undefined;
389
1397
  }, {
390
- columns: string[];
1398
+ columns: string[] | {
1399
+ field: string;
1400
+ type?: string | undefined;
1401
+ label?: string | undefined;
1402
+ hidden?: boolean | undefined;
1403
+ width?: number | undefined;
1404
+ align?: "left" | "right" | "center" | undefined;
1405
+ sortable?: boolean | undefined;
1406
+ resizable?: boolean | undefined;
1407
+ wrap?: boolean | undefined;
1408
+ }[];
391
1409
  sort?: string | {
392
1410
  field: string;
393
1411
  order: "asc" | "desc";
@@ -396,6 +1414,30 @@ export declare const ViewSchema: z.ZodObject<{
396
1414
  type?: "map" | "grid" | "kanban" | "calendar" | "gantt" | undefined;
397
1415
  label?: string | undefined;
398
1416
  name?: string | undefined;
1417
+ data?: {
1418
+ object: string;
1419
+ provider: "object";
1420
+ } | {
1421
+ provider: "api";
1422
+ read?: {
1423
+ url: string;
1424
+ params?: Record<string, unknown> | undefined;
1425
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
1426
+ headers?: Record<string, string> | undefined;
1427
+ body?: unknown;
1428
+ } | undefined;
1429
+ write?: {
1430
+ url: string;
1431
+ params?: Record<string, unknown> | undefined;
1432
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
1433
+ headers?: Record<string, string> | undefined;
1434
+ body?: unknown;
1435
+ } | undefined;
1436
+ } | {
1437
+ provider: "value";
1438
+ items: unknown[];
1439
+ } | undefined;
1440
+ resizable?: boolean | undefined;
399
1441
  kanban?: {
400
1442
  groupByField: string;
401
1443
  columns: string[];
@@ -415,23 +1457,184 @@ export declare const ViewSchema: z.ZodObject<{
415
1457
  dependenciesField?: string | undefined;
416
1458
  } | undefined;
417
1459
  searchableFields?: string[] | undefined;
1460
+ striped?: boolean | undefined;
1461
+ bordered?: boolean | undefined;
1462
+ selection?: {
1463
+ type?: "multiple" | "none" | "single" | undefined;
1464
+ } | undefined;
1465
+ pagination?: {
1466
+ pageSize?: number | undefined;
1467
+ pageSizeOptions?: number[] | undefined;
1468
+ } | undefined;
418
1469
  }>>;
419
1470
  form: z.ZodOptional<z.ZodObject<{
420
1471
  type: z.ZodDefault<z.ZodEnum<["simple", "tabbed", "wizard"]>>;
1472
+ /** Data Source Configuration */
1473
+ data: z.ZodOptional<z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
1474
+ provider: z.ZodLiteral<"object">;
1475
+ object: z.ZodString;
1476
+ }, "strip", z.ZodTypeAny, {
1477
+ object: string;
1478
+ provider: "object";
1479
+ }, {
1480
+ object: string;
1481
+ provider: "object";
1482
+ }>, z.ZodObject<{
1483
+ provider: z.ZodLiteral<"api">;
1484
+ read: z.ZodOptional<z.ZodObject<{
1485
+ url: z.ZodString;
1486
+ method: z.ZodDefault<z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>>;
1487
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1488
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1489
+ body: z.ZodOptional<z.ZodUnknown>;
1490
+ }, "strip", z.ZodTypeAny, {
1491
+ url: string;
1492
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1493
+ params?: Record<string, unknown> | undefined;
1494
+ headers?: Record<string, string> | undefined;
1495
+ body?: unknown;
1496
+ }, {
1497
+ url: string;
1498
+ params?: Record<string, unknown> | undefined;
1499
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
1500
+ headers?: Record<string, string> | undefined;
1501
+ body?: unknown;
1502
+ }>>;
1503
+ write: z.ZodOptional<z.ZodObject<{
1504
+ url: z.ZodString;
1505
+ method: z.ZodDefault<z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>>;
1506
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1507
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1508
+ body: z.ZodOptional<z.ZodUnknown>;
1509
+ }, "strip", z.ZodTypeAny, {
1510
+ url: string;
1511
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1512
+ params?: Record<string, unknown> | undefined;
1513
+ headers?: Record<string, string> | undefined;
1514
+ body?: unknown;
1515
+ }, {
1516
+ url: string;
1517
+ params?: Record<string, unknown> | undefined;
1518
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
1519
+ headers?: Record<string, string> | undefined;
1520
+ body?: unknown;
1521
+ }>>;
1522
+ }, "strip", z.ZodTypeAny, {
1523
+ provider: "api";
1524
+ read?: {
1525
+ url: string;
1526
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1527
+ params?: Record<string, unknown> | undefined;
1528
+ headers?: Record<string, string> | undefined;
1529
+ body?: unknown;
1530
+ } | undefined;
1531
+ write?: {
1532
+ url: string;
1533
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1534
+ params?: Record<string, unknown> | undefined;
1535
+ headers?: Record<string, string> | undefined;
1536
+ body?: unknown;
1537
+ } | undefined;
1538
+ }, {
1539
+ provider: "api";
1540
+ read?: {
1541
+ url: string;
1542
+ params?: Record<string, unknown> | undefined;
1543
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
1544
+ headers?: Record<string, string> | undefined;
1545
+ body?: unknown;
1546
+ } | undefined;
1547
+ write?: {
1548
+ url: string;
1549
+ params?: Record<string, unknown> | undefined;
1550
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
1551
+ headers?: Record<string, string> | undefined;
1552
+ body?: unknown;
1553
+ } | undefined;
1554
+ }>, z.ZodObject<{
1555
+ provider: z.ZodLiteral<"value">;
1556
+ items: z.ZodArray<z.ZodUnknown, "many">;
1557
+ }, "strip", z.ZodTypeAny, {
1558
+ provider: "value";
1559
+ items: unknown[];
1560
+ }, {
1561
+ provider: "value";
1562
+ items: unknown[];
1563
+ }>]>>;
421
1564
  sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
422
1565
  label: z.ZodOptional<z.ZodString>;
423
1566
  collapsible: z.ZodDefault<z.ZodBoolean>;
424
1567
  collapsed: z.ZodDefault<z.ZodBoolean>;
425
1568
  columns: z.ZodEffects<z.ZodDefault<z.ZodEnum<["1", "2", "3", "4"]>>, 1 | 2 | 3 | 4, "1" | "2" | "3" | "4" | undefined>;
426
- fields: z.ZodArray<z.ZodString, "many">;
1569
+ fields: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1570
+ field: z.ZodString;
1571
+ label: z.ZodOptional<z.ZodString>;
1572
+ placeholder: z.ZodOptional<z.ZodString>;
1573
+ helpText: z.ZodOptional<z.ZodString>;
1574
+ readonly: z.ZodOptional<z.ZodBoolean>;
1575
+ required: z.ZodOptional<z.ZodBoolean>;
1576
+ hidden: z.ZodOptional<z.ZodBoolean>;
1577
+ colSpan: z.ZodOptional<z.ZodNumber>;
1578
+ widget: z.ZodOptional<z.ZodString>;
1579
+ dependsOn: z.ZodOptional<z.ZodString>;
1580
+ visibleOn: z.ZodOptional<z.ZodString>;
1581
+ }, "strip", z.ZodTypeAny, {
1582
+ field: string;
1583
+ label?: string | undefined;
1584
+ required?: boolean | undefined;
1585
+ hidden?: boolean | undefined;
1586
+ readonly?: boolean | undefined;
1587
+ placeholder?: string | undefined;
1588
+ helpText?: string | undefined;
1589
+ colSpan?: number | undefined;
1590
+ widget?: string | undefined;
1591
+ dependsOn?: string | undefined;
1592
+ visibleOn?: string | undefined;
1593
+ }, {
1594
+ field: string;
1595
+ label?: string | undefined;
1596
+ required?: boolean | undefined;
1597
+ hidden?: boolean | undefined;
1598
+ readonly?: boolean | undefined;
1599
+ placeholder?: string | undefined;
1600
+ helpText?: string | undefined;
1601
+ colSpan?: number | undefined;
1602
+ widget?: string | undefined;
1603
+ dependsOn?: string | undefined;
1604
+ visibleOn?: string | undefined;
1605
+ }>]>, "many">;
427
1606
  }, "strip", z.ZodTypeAny, {
428
- fields: string[];
1607
+ fields: (string | {
1608
+ field: string;
1609
+ label?: string | undefined;
1610
+ required?: boolean | undefined;
1611
+ hidden?: boolean | undefined;
1612
+ readonly?: boolean | undefined;
1613
+ placeholder?: string | undefined;
1614
+ helpText?: string | undefined;
1615
+ colSpan?: number | undefined;
1616
+ widget?: string | undefined;
1617
+ dependsOn?: string | undefined;
1618
+ visibleOn?: string | undefined;
1619
+ })[];
429
1620
  columns: 1 | 2 | 3 | 4;
430
1621
  collapsible: boolean;
431
1622
  collapsed: boolean;
432
1623
  label?: string | undefined;
433
1624
  }, {
434
- fields: string[];
1625
+ fields: (string | {
1626
+ field: string;
1627
+ label?: string | undefined;
1628
+ required?: boolean | undefined;
1629
+ hidden?: boolean | undefined;
1630
+ readonly?: boolean | undefined;
1631
+ placeholder?: string | undefined;
1632
+ helpText?: string | undefined;
1633
+ colSpan?: number | undefined;
1634
+ widget?: string | undefined;
1635
+ dependsOn?: string | undefined;
1636
+ visibleOn?: string | undefined;
1637
+ })[];
435
1638
  label?: string | undefined;
436
1639
  columns?: "1" | "2" | "3" | "4" | undefined;
437
1640
  collapsible?: boolean | undefined;
@@ -442,15 +1645,75 @@ export declare const ViewSchema: z.ZodObject<{
442
1645
  collapsible: z.ZodDefault<z.ZodBoolean>;
443
1646
  collapsed: z.ZodDefault<z.ZodBoolean>;
444
1647
  columns: z.ZodEffects<z.ZodDefault<z.ZodEnum<["1", "2", "3", "4"]>>, 1 | 2 | 3 | 4, "1" | "2" | "3" | "4" | undefined>;
445
- fields: z.ZodArray<z.ZodString, "many">;
1648
+ fields: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1649
+ field: z.ZodString;
1650
+ label: z.ZodOptional<z.ZodString>;
1651
+ placeholder: z.ZodOptional<z.ZodString>;
1652
+ helpText: z.ZodOptional<z.ZodString>;
1653
+ readonly: z.ZodOptional<z.ZodBoolean>;
1654
+ required: z.ZodOptional<z.ZodBoolean>;
1655
+ hidden: z.ZodOptional<z.ZodBoolean>;
1656
+ colSpan: z.ZodOptional<z.ZodNumber>;
1657
+ widget: z.ZodOptional<z.ZodString>;
1658
+ dependsOn: z.ZodOptional<z.ZodString>;
1659
+ visibleOn: z.ZodOptional<z.ZodString>;
1660
+ }, "strip", z.ZodTypeAny, {
1661
+ field: string;
1662
+ label?: string | undefined;
1663
+ required?: boolean | undefined;
1664
+ hidden?: boolean | undefined;
1665
+ readonly?: boolean | undefined;
1666
+ placeholder?: string | undefined;
1667
+ helpText?: string | undefined;
1668
+ colSpan?: number | undefined;
1669
+ widget?: string | undefined;
1670
+ dependsOn?: string | undefined;
1671
+ visibleOn?: string | undefined;
1672
+ }, {
1673
+ field: string;
1674
+ label?: string | undefined;
1675
+ required?: boolean | undefined;
1676
+ hidden?: boolean | undefined;
1677
+ readonly?: boolean | undefined;
1678
+ placeholder?: string | undefined;
1679
+ helpText?: string | undefined;
1680
+ colSpan?: number | undefined;
1681
+ widget?: string | undefined;
1682
+ dependsOn?: string | undefined;
1683
+ visibleOn?: string | undefined;
1684
+ }>]>, "many">;
446
1685
  }, "strip", z.ZodTypeAny, {
447
- fields: string[];
1686
+ fields: (string | {
1687
+ field: string;
1688
+ label?: string | undefined;
1689
+ required?: boolean | undefined;
1690
+ hidden?: boolean | undefined;
1691
+ readonly?: boolean | undefined;
1692
+ placeholder?: string | undefined;
1693
+ helpText?: string | undefined;
1694
+ colSpan?: number | undefined;
1695
+ widget?: string | undefined;
1696
+ dependsOn?: string | undefined;
1697
+ visibleOn?: string | undefined;
1698
+ })[];
448
1699
  columns: 1 | 2 | 3 | 4;
449
1700
  collapsible: boolean;
450
1701
  collapsed: boolean;
451
1702
  label?: string | undefined;
452
1703
  }, {
453
- fields: string[];
1704
+ fields: (string | {
1705
+ field: string;
1706
+ label?: string | undefined;
1707
+ required?: boolean | undefined;
1708
+ hidden?: boolean | undefined;
1709
+ readonly?: boolean | undefined;
1710
+ placeholder?: string | undefined;
1711
+ helpText?: string | undefined;
1712
+ colSpan?: number | undefined;
1713
+ widget?: string | undefined;
1714
+ dependsOn?: string | undefined;
1715
+ visibleOn?: string | undefined;
1716
+ })[];
454
1717
  label?: string | undefined;
455
1718
  columns?: "1" | "2" | "3" | "4" | undefined;
456
1719
  collapsible?: boolean | undefined;
@@ -458,15 +1721,62 @@ export declare const ViewSchema: z.ZodObject<{
458
1721
  }>, "many">>;
459
1722
  }, "strip", z.ZodTypeAny, {
460
1723
  type: "simple" | "tabbed" | "wizard";
1724
+ data?: {
1725
+ object: string;
1726
+ provider: "object";
1727
+ } | {
1728
+ provider: "api";
1729
+ read?: {
1730
+ url: string;
1731
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1732
+ params?: Record<string, unknown> | undefined;
1733
+ headers?: Record<string, string> | undefined;
1734
+ body?: unknown;
1735
+ } | undefined;
1736
+ write?: {
1737
+ url: string;
1738
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1739
+ params?: Record<string, unknown> | undefined;
1740
+ headers?: Record<string, string> | undefined;
1741
+ body?: unknown;
1742
+ } | undefined;
1743
+ } | {
1744
+ provider: "value";
1745
+ items: unknown[];
1746
+ } | undefined;
461
1747
  sections?: {
462
- fields: string[];
1748
+ fields: (string | {
1749
+ field: string;
1750
+ label?: string | undefined;
1751
+ required?: boolean | undefined;
1752
+ hidden?: boolean | undefined;
1753
+ readonly?: boolean | undefined;
1754
+ placeholder?: string | undefined;
1755
+ helpText?: string | undefined;
1756
+ colSpan?: number | undefined;
1757
+ widget?: string | undefined;
1758
+ dependsOn?: string | undefined;
1759
+ visibleOn?: string | undefined;
1760
+ })[];
463
1761
  columns: 1 | 2 | 3 | 4;
464
1762
  collapsible: boolean;
465
1763
  collapsed: boolean;
466
1764
  label?: string | undefined;
467
1765
  }[] | undefined;
468
1766
  groups?: {
469
- fields: string[];
1767
+ fields: (string | {
1768
+ field: string;
1769
+ label?: string | undefined;
1770
+ required?: boolean | undefined;
1771
+ hidden?: boolean | undefined;
1772
+ readonly?: boolean | undefined;
1773
+ placeholder?: string | undefined;
1774
+ helpText?: string | undefined;
1775
+ colSpan?: number | undefined;
1776
+ widget?: string | undefined;
1777
+ dependsOn?: string | undefined;
1778
+ visibleOn?: string | undefined;
1779
+ })[];
470
1780
  columns: 1 | 2 | 3 | 4;
471
1781
  collapsible: boolean;
472
1782
  collapsed: boolean;
@@ -474,15 +1784,62 @@ export declare const ViewSchema: z.ZodObject<{
474
1784
  }[] | undefined;
475
1785
  }, {
476
1786
  type?: "simple" | "tabbed" | "wizard" | undefined;
1787
+ data?: {
1788
+ object: string;
1789
+ provider: "object";
1790
+ } | {
1791
+ provider: "api";
1792
+ read?: {
1793
+ url: string;
1794
+ params?: Record<string, unknown> | undefined;
1795
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
1796
+ headers?: Record<string, string> | undefined;
1797
+ body?: unknown;
1798
+ } | undefined;
1799
+ write?: {
1800
+ url: string;
1801
+ params?: Record<string, unknown> | undefined;
1802
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
1803
+ headers?: Record<string, string> | undefined;
1804
+ body?: unknown;
1805
+ } | undefined;
1806
+ } | {
1807
+ provider: "value";
1808
+ items: unknown[];
1809
+ } | undefined;
477
1810
  sections?: {
478
- fields: string[];
1811
+ fields: (string | {
1812
+ field: string;
1813
+ label?: string | undefined;
1814
+ required?: boolean | undefined;
1815
+ hidden?: boolean | undefined;
1816
+ readonly?: boolean | undefined;
1817
+ placeholder?: string | undefined;
1818
+ helpText?: string | undefined;
1819
+ colSpan?: number | undefined;
1820
+ widget?: string | undefined;
1821
+ dependsOn?: string | undefined;
1822
+ visibleOn?: string | undefined;
1823
+ })[];
479
1824
  label?: string | undefined;
480
1825
  columns?: "1" | "2" | "3" | "4" | undefined;
481
1826
  collapsible?: boolean | undefined;
482
1827
  collapsed?: boolean | undefined;
483
1828
  }[] | undefined;
484
1829
  groups?: {
485
- fields: string[];
1830
+ fields: (string | {
1831
+ field: string;
1832
+ label?: string | undefined;
1833
+ required?: boolean | undefined;
1834
+ hidden?: boolean | undefined;
1835
+ readonly?: boolean | undefined;
1836
+ placeholder?: string | undefined;
1837
+ helpText?: string | undefined;
1838
+ colSpan?: number | undefined;
1839
+ widget?: string | undefined;
1840
+ dependsOn?: string | undefined;
1841
+ visibleOn?: string | undefined;
1842
+ })[];
486
1843
  label?: string | undefined;
487
1844
  columns?: "1" | "2" | "3" | "4" | undefined;
488
1845
  collapsible?: boolean | undefined;
@@ -493,8 +1850,130 @@ export declare const ViewSchema: z.ZodObject<{
493
1850
  name: z.ZodOptional<z.ZodString>;
494
1851
  label: z.ZodOptional<z.ZodString>;
495
1852
  type: z.ZodDefault<z.ZodEnum<["grid", "kanban", "calendar", "gantt", "map"]>>;
1853
+ /** Data Source Configuration */
1854
+ data: z.ZodOptional<z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
1855
+ provider: z.ZodLiteral<"object">;
1856
+ object: z.ZodString;
1857
+ }, "strip", z.ZodTypeAny, {
1858
+ object: string;
1859
+ provider: "object";
1860
+ }, {
1861
+ object: string;
1862
+ provider: "object";
1863
+ }>, z.ZodObject<{
1864
+ provider: z.ZodLiteral<"api">;
1865
+ read: z.ZodOptional<z.ZodObject<{
1866
+ url: z.ZodString;
1867
+ method: z.ZodDefault<z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>>;
1868
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1869
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1870
+ body: z.ZodOptional<z.ZodUnknown>;
1871
+ }, "strip", z.ZodTypeAny, {
1872
+ url: string;
1873
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1874
+ params?: Record<string, unknown> | undefined;
1875
+ headers?: Record<string, string> | undefined;
1876
+ body?: unknown;
1877
+ }, {
1878
+ url: string;
1879
+ params?: Record<string, unknown> | undefined;
1880
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
1881
+ headers?: Record<string, string> | undefined;
1882
+ body?: unknown;
1883
+ }>>;
1884
+ write: z.ZodOptional<z.ZodObject<{
1885
+ url: z.ZodString;
1886
+ method: z.ZodDefault<z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>>;
1887
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1888
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1889
+ body: z.ZodOptional<z.ZodUnknown>;
1890
+ }, "strip", z.ZodTypeAny, {
1891
+ url: string;
1892
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1893
+ params?: Record<string, unknown> | undefined;
1894
+ headers?: Record<string, string> | undefined;
1895
+ body?: unknown;
1896
+ }, {
1897
+ url: string;
1898
+ params?: Record<string, unknown> | undefined;
1899
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
1900
+ headers?: Record<string, string> | undefined;
1901
+ body?: unknown;
1902
+ }>>;
1903
+ }, "strip", z.ZodTypeAny, {
1904
+ provider: "api";
1905
+ read?: {
1906
+ url: string;
1907
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1908
+ params?: Record<string, unknown> | undefined;
1909
+ headers?: Record<string, string> | undefined;
1910
+ body?: unknown;
1911
+ } | undefined;
1912
+ write?: {
1913
+ url: string;
1914
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1915
+ params?: Record<string, unknown> | undefined;
1916
+ headers?: Record<string, string> | undefined;
1917
+ body?: unknown;
1918
+ } | undefined;
1919
+ }, {
1920
+ provider: "api";
1921
+ read?: {
1922
+ url: string;
1923
+ params?: Record<string, unknown> | undefined;
1924
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
1925
+ headers?: Record<string, string> | undefined;
1926
+ body?: unknown;
1927
+ } | undefined;
1928
+ write?: {
1929
+ url: string;
1930
+ params?: Record<string, unknown> | undefined;
1931
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
1932
+ headers?: Record<string, string> | undefined;
1933
+ body?: unknown;
1934
+ } | undefined;
1935
+ }>, z.ZodObject<{
1936
+ provider: z.ZodLiteral<"value">;
1937
+ items: z.ZodArray<z.ZodUnknown, "many">;
1938
+ }, "strip", z.ZodTypeAny, {
1939
+ provider: "value";
1940
+ items: unknown[];
1941
+ }, {
1942
+ provider: "value";
1943
+ items: unknown[];
1944
+ }>]>>;
496
1945
  /** Shared Query Config */
497
- columns: z.ZodArray<z.ZodString, "many">;
1946
+ columns: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodObject<{
1947
+ field: z.ZodString;
1948
+ label: z.ZodOptional<z.ZodString>;
1949
+ width: z.ZodOptional<z.ZodNumber>;
1950
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1951
+ hidden: z.ZodOptional<z.ZodBoolean>;
1952
+ sortable: z.ZodOptional<z.ZodBoolean>;
1953
+ resizable: z.ZodOptional<z.ZodBoolean>;
1954
+ wrap: z.ZodOptional<z.ZodBoolean>;
1955
+ type: z.ZodOptional<z.ZodString>;
1956
+ }, "strip", z.ZodTypeAny, {
1957
+ field: string;
1958
+ type?: string | undefined;
1959
+ label?: string | undefined;
1960
+ hidden?: boolean | undefined;
1961
+ width?: number | undefined;
1962
+ align?: "left" | "right" | "center" | undefined;
1963
+ sortable?: boolean | undefined;
1964
+ resizable?: boolean | undefined;
1965
+ wrap?: boolean | undefined;
1966
+ }, {
1967
+ field: string;
1968
+ type?: string | undefined;
1969
+ label?: string | undefined;
1970
+ hidden?: boolean | undefined;
1971
+ width?: number | undefined;
1972
+ align?: "left" | "right" | "center" | undefined;
1973
+ sortable?: boolean | undefined;
1974
+ resizable?: boolean | undefined;
1975
+ wrap?: boolean | undefined;
1976
+ }>, "many">]>;
498
1977
  filter: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
499
1978
  sort: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
500
1979
  field: z.ZodString;
@@ -508,6 +1987,29 @@ export declare const ViewSchema: z.ZodObject<{
508
1987
  }>, "many">]>>;
509
1988
  /** Search */
510
1989
  searchableFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1990
+ /** Grid Features */
1991
+ resizable: z.ZodOptional<z.ZodBoolean>;
1992
+ striped: z.ZodOptional<z.ZodBoolean>;
1993
+ bordered: z.ZodOptional<z.ZodBoolean>;
1994
+ /** Selection */
1995
+ selection: z.ZodOptional<z.ZodObject<{
1996
+ type: z.ZodDefault<z.ZodEnum<["none", "single", "multiple"]>>;
1997
+ }, "strip", z.ZodTypeAny, {
1998
+ type: "multiple" | "none" | "single";
1999
+ }, {
2000
+ type?: "multiple" | "none" | "single" | undefined;
2001
+ }>>;
2002
+ /** Pagination */
2003
+ pagination: z.ZodOptional<z.ZodObject<{
2004
+ pageSize: z.ZodDefault<z.ZodNumber>;
2005
+ pageSizeOptions: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2006
+ }, "strip", z.ZodTypeAny, {
2007
+ pageSize: number;
2008
+ pageSizeOptions?: number[] | undefined;
2009
+ }, {
2010
+ pageSize?: number | undefined;
2011
+ pageSizeOptions?: number[] | undefined;
2012
+ }>>;
511
2013
  /** Type Specific Config */
512
2014
  kanban: z.ZodOptional<z.ZodObject<{
513
2015
  groupByField: z.ZodString;
@@ -559,7 +2061,17 @@ export declare const ViewSchema: z.ZodObject<{
559
2061
  }>>;
560
2062
  }, "strip", z.ZodTypeAny, {
561
2063
  type: "map" | "grid" | "kanban" | "calendar" | "gantt";
562
- columns: string[];
2064
+ columns: string[] | {
2065
+ field: string;
2066
+ type?: string | undefined;
2067
+ label?: string | undefined;
2068
+ hidden?: boolean | undefined;
2069
+ width?: number | undefined;
2070
+ align?: "left" | "right" | "center" | undefined;
2071
+ sortable?: boolean | undefined;
2072
+ resizable?: boolean | undefined;
2073
+ wrap?: boolean | undefined;
2074
+ }[];
563
2075
  sort?: string | {
564
2076
  field: string;
565
2077
  order: "asc" | "desc";
@@ -567,6 +2079,30 @@ export declare const ViewSchema: z.ZodObject<{
567
2079
  filter?: any[] | undefined;
568
2080
  label?: string | undefined;
569
2081
  name?: string | undefined;
2082
+ data?: {
2083
+ object: string;
2084
+ provider: "object";
2085
+ } | {
2086
+ provider: "api";
2087
+ read?: {
2088
+ url: string;
2089
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2090
+ params?: Record<string, unknown> | undefined;
2091
+ headers?: Record<string, string> | undefined;
2092
+ body?: unknown;
2093
+ } | undefined;
2094
+ write?: {
2095
+ url: string;
2096
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2097
+ params?: Record<string, unknown> | undefined;
2098
+ headers?: Record<string, string> | undefined;
2099
+ body?: unknown;
2100
+ } | undefined;
2101
+ } | {
2102
+ provider: "value";
2103
+ items: unknown[];
2104
+ } | undefined;
2105
+ resizable?: boolean | undefined;
570
2106
  kanban?: {
571
2107
  groupByField: string;
572
2108
  columns: string[];
@@ -586,8 +2122,27 @@ export declare const ViewSchema: z.ZodObject<{
586
2122
  dependenciesField?: string | undefined;
587
2123
  } | undefined;
588
2124
  searchableFields?: string[] | undefined;
2125
+ striped?: boolean | undefined;
2126
+ bordered?: boolean | undefined;
2127
+ selection?: {
2128
+ type: "multiple" | "none" | "single";
2129
+ } | undefined;
2130
+ pagination?: {
2131
+ pageSize: number;
2132
+ pageSizeOptions?: number[] | undefined;
2133
+ } | undefined;
589
2134
  }, {
590
- columns: string[];
2135
+ columns: string[] | {
2136
+ field: string;
2137
+ type?: string | undefined;
2138
+ label?: string | undefined;
2139
+ hidden?: boolean | undefined;
2140
+ width?: number | undefined;
2141
+ align?: "left" | "right" | "center" | undefined;
2142
+ sortable?: boolean | undefined;
2143
+ resizable?: boolean | undefined;
2144
+ wrap?: boolean | undefined;
2145
+ }[];
591
2146
  sort?: string | {
592
2147
  field: string;
593
2148
  order: "asc" | "desc";
@@ -596,6 +2151,30 @@ export declare const ViewSchema: z.ZodObject<{
596
2151
  type?: "map" | "grid" | "kanban" | "calendar" | "gantt" | undefined;
597
2152
  label?: string | undefined;
598
2153
  name?: string | undefined;
2154
+ data?: {
2155
+ object: string;
2156
+ provider: "object";
2157
+ } | {
2158
+ provider: "api";
2159
+ read?: {
2160
+ url: string;
2161
+ params?: Record<string, unknown> | undefined;
2162
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
2163
+ headers?: Record<string, string> | undefined;
2164
+ body?: unknown;
2165
+ } | undefined;
2166
+ write?: {
2167
+ url: string;
2168
+ params?: Record<string, unknown> | undefined;
2169
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
2170
+ headers?: Record<string, string> | undefined;
2171
+ body?: unknown;
2172
+ } | undefined;
2173
+ } | {
2174
+ provider: "value";
2175
+ items: unknown[];
2176
+ } | undefined;
2177
+ resizable?: boolean | undefined;
599
2178
  kanban?: {
600
2179
  groupByField: string;
601
2180
  columns: string[];
@@ -615,23 +2194,184 @@ export declare const ViewSchema: z.ZodObject<{
615
2194
  dependenciesField?: string | undefined;
616
2195
  } | undefined;
617
2196
  searchableFields?: string[] | undefined;
2197
+ striped?: boolean | undefined;
2198
+ bordered?: boolean | undefined;
2199
+ selection?: {
2200
+ type?: "multiple" | "none" | "single" | undefined;
2201
+ } | undefined;
2202
+ pagination?: {
2203
+ pageSize?: number | undefined;
2204
+ pageSizeOptions?: number[] | undefined;
2205
+ } | undefined;
618
2206
  }>>>;
619
2207
  formViews: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
620
2208
  type: z.ZodDefault<z.ZodEnum<["simple", "tabbed", "wizard"]>>;
2209
+ /** Data Source Configuration */
2210
+ data: z.ZodOptional<z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
2211
+ provider: z.ZodLiteral<"object">;
2212
+ object: z.ZodString;
2213
+ }, "strip", z.ZodTypeAny, {
2214
+ object: string;
2215
+ provider: "object";
2216
+ }, {
2217
+ object: string;
2218
+ provider: "object";
2219
+ }>, z.ZodObject<{
2220
+ provider: z.ZodLiteral<"api">;
2221
+ read: z.ZodOptional<z.ZodObject<{
2222
+ url: z.ZodString;
2223
+ method: z.ZodDefault<z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>>;
2224
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2225
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2226
+ body: z.ZodOptional<z.ZodUnknown>;
2227
+ }, "strip", z.ZodTypeAny, {
2228
+ url: string;
2229
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2230
+ params?: Record<string, unknown> | undefined;
2231
+ headers?: Record<string, string> | undefined;
2232
+ body?: unknown;
2233
+ }, {
2234
+ url: string;
2235
+ params?: Record<string, unknown> | undefined;
2236
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
2237
+ headers?: Record<string, string> | undefined;
2238
+ body?: unknown;
2239
+ }>>;
2240
+ write: z.ZodOptional<z.ZodObject<{
2241
+ url: z.ZodString;
2242
+ method: z.ZodDefault<z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>>;
2243
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2244
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2245
+ body: z.ZodOptional<z.ZodUnknown>;
2246
+ }, "strip", z.ZodTypeAny, {
2247
+ url: string;
2248
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2249
+ params?: Record<string, unknown> | undefined;
2250
+ headers?: Record<string, string> | undefined;
2251
+ body?: unknown;
2252
+ }, {
2253
+ url: string;
2254
+ params?: Record<string, unknown> | undefined;
2255
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
2256
+ headers?: Record<string, string> | undefined;
2257
+ body?: unknown;
2258
+ }>>;
2259
+ }, "strip", z.ZodTypeAny, {
2260
+ provider: "api";
2261
+ read?: {
2262
+ url: string;
2263
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2264
+ params?: Record<string, unknown> | undefined;
2265
+ headers?: Record<string, string> | undefined;
2266
+ body?: unknown;
2267
+ } | undefined;
2268
+ write?: {
2269
+ url: string;
2270
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2271
+ params?: Record<string, unknown> | undefined;
2272
+ headers?: Record<string, string> | undefined;
2273
+ body?: unknown;
2274
+ } | undefined;
2275
+ }, {
2276
+ provider: "api";
2277
+ read?: {
2278
+ url: string;
2279
+ params?: Record<string, unknown> | undefined;
2280
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
2281
+ headers?: Record<string, string> | undefined;
2282
+ body?: unknown;
2283
+ } | undefined;
2284
+ write?: {
2285
+ url: string;
2286
+ params?: Record<string, unknown> | undefined;
2287
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
2288
+ headers?: Record<string, string> | undefined;
2289
+ body?: unknown;
2290
+ } | undefined;
2291
+ }>, z.ZodObject<{
2292
+ provider: z.ZodLiteral<"value">;
2293
+ items: z.ZodArray<z.ZodUnknown, "many">;
2294
+ }, "strip", z.ZodTypeAny, {
2295
+ provider: "value";
2296
+ items: unknown[];
2297
+ }, {
2298
+ provider: "value";
2299
+ items: unknown[];
2300
+ }>]>>;
621
2301
  sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
622
2302
  label: z.ZodOptional<z.ZodString>;
623
2303
  collapsible: z.ZodDefault<z.ZodBoolean>;
624
2304
  collapsed: z.ZodDefault<z.ZodBoolean>;
625
2305
  columns: z.ZodEffects<z.ZodDefault<z.ZodEnum<["1", "2", "3", "4"]>>, 1 | 2 | 3 | 4, "1" | "2" | "3" | "4" | undefined>;
626
- fields: z.ZodArray<z.ZodString, "many">;
2306
+ fields: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2307
+ field: z.ZodString;
2308
+ label: z.ZodOptional<z.ZodString>;
2309
+ placeholder: z.ZodOptional<z.ZodString>;
2310
+ helpText: z.ZodOptional<z.ZodString>;
2311
+ readonly: z.ZodOptional<z.ZodBoolean>;
2312
+ required: z.ZodOptional<z.ZodBoolean>;
2313
+ hidden: z.ZodOptional<z.ZodBoolean>;
2314
+ colSpan: z.ZodOptional<z.ZodNumber>;
2315
+ widget: z.ZodOptional<z.ZodString>;
2316
+ dependsOn: z.ZodOptional<z.ZodString>;
2317
+ visibleOn: z.ZodOptional<z.ZodString>;
2318
+ }, "strip", z.ZodTypeAny, {
2319
+ field: string;
2320
+ label?: string | undefined;
2321
+ required?: boolean | undefined;
2322
+ hidden?: boolean | undefined;
2323
+ readonly?: boolean | undefined;
2324
+ placeholder?: string | undefined;
2325
+ helpText?: string | undefined;
2326
+ colSpan?: number | undefined;
2327
+ widget?: string | undefined;
2328
+ dependsOn?: string | undefined;
2329
+ visibleOn?: string | undefined;
2330
+ }, {
2331
+ field: string;
2332
+ label?: string | undefined;
2333
+ required?: boolean | undefined;
2334
+ hidden?: boolean | undefined;
2335
+ readonly?: boolean | undefined;
2336
+ placeholder?: string | undefined;
2337
+ helpText?: string | undefined;
2338
+ colSpan?: number | undefined;
2339
+ widget?: string | undefined;
2340
+ dependsOn?: string | undefined;
2341
+ visibleOn?: string | undefined;
2342
+ }>]>, "many">;
627
2343
  }, "strip", z.ZodTypeAny, {
628
- fields: string[];
2344
+ fields: (string | {
2345
+ field: string;
2346
+ label?: string | undefined;
2347
+ required?: boolean | undefined;
2348
+ hidden?: boolean | undefined;
2349
+ readonly?: boolean | undefined;
2350
+ placeholder?: string | undefined;
2351
+ helpText?: string | undefined;
2352
+ colSpan?: number | undefined;
2353
+ widget?: string | undefined;
2354
+ dependsOn?: string | undefined;
2355
+ visibleOn?: string | undefined;
2356
+ })[];
629
2357
  columns: 1 | 2 | 3 | 4;
630
2358
  collapsible: boolean;
631
2359
  collapsed: boolean;
632
2360
  label?: string | undefined;
633
2361
  }, {
634
- fields: string[];
2362
+ fields: (string | {
2363
+ field: string;
2364
+ label?: string | undefined;
2365
+ required?: boolean | undefined;
2366
+ hidden?: boolean | undefined;
2367
+ readonly?: boolean | undefined;
2368
+ placeholder?: string | undefined;
2369
+ helpText?: string | undefined;
2370
+ colSpan?: number | undefined;
2371
+ widget?: string | undefined;
2372
+ dependsOn?: string | undefined;
2373
+ visibleOn?: string | undefined;
2374
+ })[];
635
2375
  label?: string | undefined;
636
2376
  columns?: "1" | "2" | "3" | "4" | undefined;
637
2377
  collapsible?: boolean | undefined;
@@ -642,15 +2382,75 @@ export declare const ViewSchema: z.ZodObject<{
642
2382
  collapsible: z.ZodDefault<z.ZodBoolean>;
643
2383
  collapsed: z.ZodDefault<z.ZodBoolean>;
644
2384
  columns: z.ZodEffects<z.ZodDefault<z.ZodEnum<["1", "2", "3", "4"]>>, 1 | 2 | 3 | 4, "1" | "2" | "3" | "4" | undefined>;
645
- fields: z.ZodArray<z.ZodString, "many">;
2385
+ fields: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2386
+ field: z.ZodString;
2387
+ label: z.ZodOptional<z.ZodString>;
2388
+ placeholder: z.ZodOptional<z.ZodString>;
2389
+ helpText: z.ZodOptional<z.ZodString>;
2390
+ readonly: z.ZodOptional<z.ZodBoolean>;
2391
+ required: z.ZodOptional<z.ZodBoolean>;
2392
+ hidden: z.ZodOptional<z.ZodBoolean>;
2393
+ colSpan: z.ZodOptional<z.ZodNumber>;
2394
+ widget: z.ZodOptional<z.ZodString>;
2395
+ dependsOn: z.ZodOptional<z.ZodString>;
2396
+ visibleOn: z.ZodOptional<z.ZodString>;
2397
+ }, "strip", z.ZodTypeAny, {
2398
+ field: string;
2399
+ label?: string | undefined;
2400
+ required?: boolean | undefined;
2401
+ hidden?: boolean | undefined;
2402
+ readonly?: boolean | undefined;
2403
+ placeholder?: string | undefined;
2404
+ helpText?: string | undefined;
2405
+ colSpan?: number | undefined;
2406
+ widget?: string | undefined;
2407
+ dependsOn?: string | undefined;
2408
+ visibleOn?: string | undefined;
2409
+ }, {
2410
+ field: string;
2411
+ label?: string | undefined;
2412
+ required?: boolean | undefined;
2413
+ hidden?: boolean | undefined;
2414
+ readonly?: boolean | undefined;
2415
+ placeholder?: string | undefined;
2416
+ helpText?: string | undefined;
2417
+ colSpan?: number | undefined;
2418
+ widget?: string | undefined;
2419
+ dependsOn?: string | undefined;
2420
+ visibleOn?: string | undefined;
2421
+ }>]>, "many">;
646
2422
  }, "strip", z.ZodTypeAny, {
647
- fields: string[];
2423
+ fields: (string | {
2424
+ field: string;
2425
+ label?: string | undefined;
2426
+ required?: boolean | undefined;
2427
+ hidden?: boolean | undefined;
2428
+ readonly?: boolean | undefined;
2429
+ placeholder?: string | undefined;
2430
+ helpText?: string | undefined;
2431
+ colSpan?: number | undefined;
2432
+ widget?: string | undefined;
2433
+ dependsOn?: string | undefined;
2434
+ visibleOn?: string | undefined;
2435
+ })[];
648
2436
  columns: 1 | 2 | 3 | 4;
649
2437
  collapsible: boolean;
650
2438
  collapsed: boolean;
651
2439
  label?: string | undefined;
652
2440
  }, {
653
- fields: string[];
2441
+ fields: (string | {
2442
+ field: string;
2443
+ label?: string | undefined;
2444
+ required?: boolean | undefined;
2445
+ hidden?: boolean | undefined;
2446
+ readonly?: boolean | undefined;
2447
+ placeholder?: string | undefined;
2448
+ helpText?: string | undefined;
2449
+ colSpan?: number | undefined;
2450
+ widget?: string | undefined;
2451
+ dependsOn?: string | undefined;
2452
+ visibleOn?: string | undefined;
2453
+ })[];
654
2454
  label?: string | undefined;
655
2455
  columns?: "1" | "2" | "3" | "4" | undefined;
656
2456
  collapsible?: boolean | undefined;
@@ -658,15 +2458,62 @@ export declare const ViewSchema: z.ZodObject<{
658
2458
  }>, "many">>;
659
2459
  }, "strip", z.ZodTypeAny, {
660
2460
  type: "simple" | "tabbed" | "wizard";
2461
+ data?: {
2462
+ object: string;
2463
+ provider: "object";
2464
+ } | {
2465
+ provider: "api";
2466
+ read?: {
2467
+ url: string;
2468
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2469
+ params?: Record<string, unknown> | undefined;
2470
+ headers?: Record<string, string> | undefined;
2471
+ body?: unknown;
2472
+ } | undefined;
2473
+ write?: {
2474
+ url: string;
2475
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2476
+ params?: Record<string, unknown> | undefined;
2477
+ headers?: Record<string, string> | undefined;
2478
+ body?: unknown;
2479
+ } | undefined;
2480
+ } | {
2481
+ provider: "value";
2482
+ items: unknown[];
2483
+ } | undefined;
661
2484
  sections?: {
662
- fields: string[];
2485
+ fields: (string | {
2486
+ field: string;
2487
+ label?: string | undefined;
2488
+ required?: boolean | undefined;
2489
+ hidden?: boolean | undefined;
2490
+ readonly?: boolean | undefined;
2491
+ placeholder?: string | undefined;
2492
+ helpText?: string | undefined;
2493
+ colSpan?: number | undefined;
2494
+ widget?: string | undefined;
2495
+ dependsOn?: string | undefined;
2496
+ visibleOn?: string | undefined;
2497
+ })[];
663
2498
  columns: 1 | 2 | 3 | 4;
664
2499
  collapsible: boolean;
665
2500
  collapsed: boolean;
666
2501
  label?: string | undefined;
667
2502
  }[] | undefined;
668
2503
  groups?: {
669
- fields: string[];
2504
+ fields: (string | {
2505
+ field: string;
2506
+ label?: string | undefined;
2507
+ required?: boolean | undefined;
2508
+ hidden?: boolean | undefined;
2509
+ readonly?: boolean | undefined;
2510
+ placeholder?: string | undefined;
2511
+ helpText?: string | undefined;
2512
+ colSpan?: number | undefined;
2513
+ widget?: string | undefined;
2514
+ dependsOn?: string | undefined;
2515
+ visibleOn?: string | undefined;
2516
+ })[];
670
2517
  columns: 1 | 2 | 3 | 4;
671
2518
  collapsible: boolean;
672
2519
  collapsed: boolean;
@@ -674,15 +2521,62 @@ export declare const ViewSchema: z.ZodObject<{
674
2521
  }[] | undefined;
675
2522
  }, {
676
2523
  type?: "simple" | "tabbed" | "wizard" | undefined;
2524
+ data?: {
2525
+ object: string;
2526
+ provider: "object";
2527
+ } | {
2528
+ provider: "api";
2529
+ read?: {
2530
+ url: string;
2531
+ params?: Record<string, unknown> | undefined;
2532
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
2533
+ headers?: Record<string, string> | undefined;
2534
+ body?: unknown;
2535
+ } | undefined;
2536
+ write?: {
2537
+ url: string;
2538
+ params?: Record<string, unknown> | undefined;
2539
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
2540
+ headers?: Record<string, string> | undefined;
2541
+ body?: unknown;
2542
+ } | undefined;
2543
+ } | {
2544
+ provider: "value";
2545
+ items: unknown[];
2546
+ } | undefined;
677
2547
  sections?: {
678
- fields: string[];
2548
+ fields: (string | {
2549
+ field: string;
2550
+ label?: string | undefined;
2551
+ required?: boolean | undefined;
2552
+ hidden?: boolean | undefined;
2553
+ readonly?: boolean | undefined;
2554
+ placeholder?: string | undefined;
2555
+ helpText?: string | undefined;
2556
+ colSpan?: number | undefined;
2557
+ widget?: string | undefined;
2558
+ dependsOn?: string | undefined;
2559
+ visibleOn?: string | undefined;
2560
+ })[];
679
2561
  label?: string | undefined;
680
2562
  columns?: "1" | "2" | "3" | "4" | undefined;
681
2563
  collapsible?: boolean | undefined;
682
2564
  collapsed?: boolean | undefined;
683
2565
  }[] | undefined;
684
2566
  groups?: {
685
- fields: string[];
2567
+ fields: (string | {
2568
+ field: string;
2569
+ label?: string | undefined;
2570
+ required?: boolean | undefined;
2571
+ hidden?: boolean | undefined;
2572
+ readonly?: boolean | undefined;
2573
+ placeholder?: string | undefined;
2574
+ helpText?: string | undefined;
2575
+ colSpan?: number | undefined;
2576
+ widget?: string | undefined;
2577
+ dependsOn?: string | undefined;
2578
+ visibleOn?: string | undefined;
2579
+ })[];
686
2580
  label?: string | undefined;
687
2581
  columns?: "1" | "2" | "3" | "4" | undefined;
688
2582
  collapsible?: boolean | undefined;
@@ -692,7 +2586,17 @@ export declare const ViewSchema: z.ZodObject<{
692
2586
  }, "strip", z.ZodTypeAny, {
693
2587
  list?: {
694
2588
  type: "map" | "grid" | "kanban" | "calendar" | "gantt";
695
- columns: string[];
2589
+ columns: string[] | {
2590
+ field: string;
2591
+ type?: string | undefined;
2592
+ label?: string | undefined;
2593
+ hidden?: boolean | undefined;
2594
+ width?: number | undefined;
2595
+ align?: "left" | "right" | "center" | undefined;
2596
+ sortable?: boolean | undefined;
2597
+ resizable?: boolean | undefined;
2598
+ wrap?: boolean | undefined;
2599
+ }[];
696
2600
  sort?: string | {
697
2601
  field: string;
698
2602
  order: "asc" | "desc";
@@ -700,6 +2604,30 @@ export declare const ViewSchema: z.ZodObject<{
700
2604
  filter?: any[] | undefined;
701
2605
  label?: string | undefined;
702
2606
  name?: string | undefined;
2607
+ data?: {
2608
+ object: string;
2609
+ provider: "object";
2610
+ } | {
2611
+ provider: "api";
2612
+ read?: {
2613
+ url: string;
2614
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2615
+ params?: Record<string, unknown> | undefined;
2616
+ headers?: Record<string, string> | undefined;
2617
+ body?: unknown;
2618
+ } | undefined;
2619
+ write?: {
2620
+ url: string;
2621
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2622
+ params?: Record<string, unknown> | undefined;
2623
+ headers?: Record<string, string> | undefined;
2624
+ body?: unknown;
2625
+ } | undefined;
2626
+ } | {
2627
+ provider: "value";
2628
+ items: unknown[];
2629
+ } | undefined;
2630
+ resizable?: boolean | undefined;
703
2631
  kanban?: {
704
2632
  groupByField: string;
705
2633
  columns: string[];
@@ -719,18 +2647,74 @@ export declare const ViewSchema: z.ZodObject<{
719
2647
  dependenciesField?: string | undefined;
720
2648
  } | undefined;
721
2649
  searchableFields?: string[] | undefined;
2650
+ striped?: boolean | undefined;
2651
+ bordered?: boolean | undefined;
2652
+ selection?: {
2653
+ type: "multiple" | "none" | "single";
2654
+ } | undefined;
2655
+ pagination?: {
2656
+ pageSize: number;
2657
+ pageSizeOptions?: number[] | undefined;
2658
+ } | undefined;
722
2659
  } | undefined;
723
2660
  form?: {
724
2661
  type: "simple" | "tabbed" | "wizard";
2662
+ data?: {
2663
+ object: string;
2664
+ provider: "object";
2665
+ } | {
2666
+ provider: "api";
2667
+ read?: {
2668
+ url: string;
2669
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2670
+ params?: Record<string, unknown> | undefined;
2671
+ headers?: Record<string, string> | undefined;
2672
+ body?: unknown;
2673
+ } | undefined;
2674
+ write?: {
2675
+ url: string;
2676
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2677
+ params?: Record<string, unknown> | undefined;
2678
+ headers?: Record<string, string> | undefined;
2679
+ body?: unknown;
2680
+ } | undefined;
2681
+ } | {
2682
+ provider: "value";
2683
+ items: unknown[];
2684
+ } | undefined;
725
2685
  sections?: {
726
- fields: string[];
2686
+ fields: (string | {
2687
+ field: string;
2688
+ label?: string | undefined;
2689
+ required?: boolean | undefined;
2690
+ hidden?: boolean | undefined;
2691
+ readonly?: boolean | undefined;
2692
+ placeholder?: string | undefined;
2693
+ helpText?: string | undefined;
2694
+ colSpan?: number | undefined;
2695
+ widget?: string | undefined;
2696
+ dependsOn?: string | undefined;
2697
+ visibleOn?: string | undefined;
2698
+ })[];
727
2699
  columns: 1 | 2 | 3 | 4;
728
2700
  collapsible: boolean;
729
2701
  collapsed: boolean;
730
2702
  label?: string | undefined;
731
2703
  }[] | undefined;
732
2704
  groups?: {
733
- fields: string[];
2705
+ fields: (string | {
2706
+ field: string;
2707
+ label?: string | undefined;
2708
+ required?: boolean | undefined;
2709
+ hidden?: boolean | undefined;
2710
+ readonly?: boolean | undefined;
2711
+ placeholder?: string | undefined;
2712
+ helpText?: string | undefined;
2713
+ colSpan?: number | undefined;
2714
+ widget?: string | undefined;
2715
+ dependsOn?: string | undefined;
2716
+ visibleOn?: string | undefined;
2717
+ })[];
734
2718
  columns: 1 | 2 | 3 | 4;
735
2719
  collapsible: boolean;
736
2720
  collapsed: boolean;
@@ -739,7 +2723,17 @@ export declare const ViewSchema: z.ZodObject<{
739
2723
  } | undefined;
740
2724
  listViews?: Record<string, {
741
2725
  type: "map" | "grid" | "kanban" | "calendar" | "gantt";
742
- columns: string[];
2726
+ columns: string[] | {
2727
+ field: string;
2728
+ type?: string | undefined;
2729
+ label?: string | undefined;
2730
+ hidden?: boolean | undefined;
2731
+ width?: number | undefined;
2732
+ align?: "left" | "right" | "center" | undefined;
2733
+ sortable?: boolean | undefined;
2734
+ resizable?: boolean | undefined;
2735
+ wrap?: boolean | undefined;
2736
+ }[];
743
2737
  sort?: string | {
744
2738
  field: string;
745
2739
  order: "asc" | "desc";
@@ -747,6 +2741,30 @@ export declare const ViewSchema: z.ZodObject<{
747
2741
  filter?: any[] | undefined;
748
2742
  label?: string | undefined;
749
2743
  name?: string | undefined;
2744
+ data?: {
2745
+ object: string;
2746
+ provider: "object";
2747
+ } | {
2748
+ provider: "api";
2749
+ read?: {
2750
+ url: string;
2751
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2752
+ params?: Record<string, unknown> | undefined;
2753
+ headers?: Record<string, string> | undefined;
2754
+ body?: unknown;
2755
+ } | undefined;
2756
+ write?: {
2757
+ url: string;
2758
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2759
+ params?: Record<string, unknown> | undefined;
2760
+ headers?: Record<string, string> | undefined;
2761
+ body?: unknown;
2762
+ } | undefined;
2763
+ } | {
2764
+ provider: "value";
2765
+ items: unknown[];
2766
+ } | undefined;
2767
+ resizable?: boolean | undefined;
750
2768
  kanban?: {
751
2769
  groupByField: string;
752
2770
  columns: string[];
@@ -766,18 +2784,74 @@ export declare const ViewSchema: z.ZodObject<{
766
2784
  dependenciesField?: string | undefined;
767
2785
  } | undefined;
768
2786
  searchableFields?: string[] | undefined;
2787
+ striped?: boolean | undefined;
2788
+ bordered?: boolean | undefined;
2789
+ selection?: {
2790
+ type: "multiple" | "none" | "single";
2791
+ } | undefined;
2792
+ pagination?: {
2793
+ pageSize: number;
2794
+ pageSizeOptions?: number[] | undefined;
2795
+ } | undefined;
769
2796
  }> | undefined;
770
2797
  formViews?: Record<string, {
771
2798
  type: "simple" | "tabbed" | "wizard";
2799
+ data?: {
2800
+ object: string;
2801
+ provider: "object";
2802
+ } | {
2803
+ provider: "api";
2804
+ read?: {
2805
+ url: string;
2806
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2807
+ params?: Record<string, unknown> | undefined;
2808
+ headers?: Record<string, string> | undefined;
2809
+ body?: unknown;
2810
+ } | undefined;
2811
+ write?: {
2812
+ url: string;
2813
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2814
+ params?: Record<string, unknown> | undefined;
2815
+ headers?: Record<string, string> | undefined;
2816
+ body?: unknown;
2817
+ } | undefined;
2818
+ } | {
2819
+ provider: "value";
2820
+ items: unknown[];
2821
+ } | undefined;
772
2822
  sections?: {
773
- fields: string[];
2823
+ fields: (string | {
2824
+ field: string;
2825
+ label?: string | undefined;
2826
+ required?: boolean | undefined;
2827
+ hidden?: boolean | undefined;
2828
+ readonly?: boolean | undefined;
2829
+ placeholder?: string | undefined;
2830
+ helpText?: string | undefined;
2831
+ colSpan?: number | undefined;
2832
+ widget?: string | undefined;
2833
+ dependsOn?: string | undefined;
2834
+ visibleOn?: string | undefined;
2835
+ })[];
774
2836
  columns: 1 | 2 | 3 | 4;
775
2837
  collapsible: boolean;
776
2838
  collapsed: boolean;
777
2839
  label?: string | undefined;
778
2840
  }[] | undefined;
779
2841
  groups?: {
780
- fields: string[];
2842
+ fields: (string | {
2843
+ field: string;
2844
+ label?: string | undefined;
2845
+ required?: boolean | undefined;
2846
+ hidden?: boolean | undefined;
2847
+ readonly?: boolean | undefined;
2848
+ placeholder?: string | undefined;
2849
+ helpText?: string | undefined;
2850
+ colSpan?: number | undefined;
2851
+ widget?: string | undefined;
2852
+ dependsOn?: string | undefined;
2853
+ visibleOn?: string | undefined;
2854
+ })[];
781
2855
  columns: 1 | 2 | 3 | 4;
782
2856
  collapsible: boolean;
783
2857
  collapsed: boolean;
@@ -786,7 +2860,17 @@ export declare const ViewSchema: z.ZodObject<{
786
2860
  }> | undefined;
787
2861
  }, {
788
2862
  list?: {
789
- columns: string[];
2863
+ columns: string[] | {
2864
+ field: string;
2865
+ type?: string | undefined;
2866
+ label?: string | undefined;
2867
+ hidden?: boolean | undefined;
2868
+ width?: number | undefined;
2869
+ align?: "left" | "right" | "center" | undefined;
2870
+ sortable?: boolean | undefined;
2871
+ resizable?: boolean | undefined;
2872
+ wrap?: boolean | undefined;
2873
+ }[];
790
2874
  sort?: string | {
791
2875
  field: string;
792
2876
  order: "asc" | "desc";
@@ -795,6 +2879,30 @@ export declare const ViewSchema: z.ZodObject<{
795
2879
  type?: "map" | "grid" | "kanban" | "calendar" | "gantt" | undefined;
796
2880
  label?: string | undefined;
797
2881
  name?: string | undefined;
2882
+ data?: {
2883
+ object: string;
2884
+ provider: "object";
2885
+ } | {
2886
+ provider: "api";
2887
+ read?: {
2888
+ url: string;
2889
+ params?: Record<string, unknown> | undefined;
2890
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
2891
+ headers?: Record<string, string> | undefined;
2892
+ body?: unknown;
2893
+ } | undefined;
2894
+ write?: {
2895
+ url: string;
2896
+ params?: Record<string, unknown> | undefined;
2897
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
2898
+ headers?: Record<string, string> | undefined;
2899
+ body?: unknown;
2900
+ } | undefined;
2901
+ } | {
2902
+ provider: "value";
2903
+ items: unknown[];
2904
+ } | undefined;
2905
+ resizable?: boolean | undefined;
798
2906
  kanban?: {
799
2907
  groupByField: string;
800
2908
  columns: string[];
@@ -814,18 +2922,74 @@ export declare const ViewSchema: z.ZodObject<{
814
2922
  dependenciesField?: string | undefined;
815
2923
  } | undefined;
816
2924
  searchableFields?: string[] | undefined;
2925
+ striped?: boolean | undefined;
2926
+ bordered?: boolean | undefined;
2927
+ selection?: {
2928
+ type?: "multiple" | "none" | "single" | undefined;
2929
+ } | undefined;
2930
+ pagination?: {
2931
+ pageSize?: number | undefined;
2932
+ pageSizeOptions?: number[] | undefined;
2933
+ } | undefined;
817
2934
  } | undefined;
818
2935
  form?: {
819
2936
  type?: "simple" | "tabbed" | "wizard" | undefined;
2937
+ data?: {
2938
+ object: string;
2939
+ provider: "object";
2940
+ } | {
2941
+ provider: "api";
2942
+ read?: {
2943
+ url: string;
2944
+ params?: Record<string, unknown> | undefined;
2945
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
2946
+ headers?: Record<string, string> | undefined;
2947
+ body?: unknown;
2948
+ } | undefined;
2949
+ write?: {
2950
+ url: string;
2951
+ params?: Record<string, unknown> | undefined;
2952
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
2953
+ headers?: Record<string, string> | undefined;
2954
+ body?: unknown;
2955
+ } | undefined;
2956
+ } | {
2957
+ provider: "value";
2958
+ items: unknown[];
2959
+ } | undefined;
820
2960
  sections?: {
821
- fields: string[];
2961
+ fields: (string | {
2962
+ field: string;
2963
+ label?: string | undefined;
2964
+ required?: boolean | undefined;
2965
+ hidden?: boolean | undefined;
2966
+ readonly?: boolean | undefined;
2967
+ placeholder?: string | undefined;
2968
+ helpText?: string | undefined;
2969
+ colSpan?: number | undefined;
2970
+ widget?: string | undefined;
2971
+ dependsOn?: string | undefined;
2972
+ visibleOn?: string | undefined;
2973
+ })[];
822
2974
  label?: string | undefined;
823
2975
  columns?: "1" | "2" | "3" | "4" | undefined;
824
2976
  collapsible?: boolean | undefined;
825
2977
  collapsed?: boolean | undefined;
826
2978
  }[] | undefined;
827
2979
  groups?: {
828
- fields: string[];
2980
+ fields: (string | {
2981
+ field: string;
2982
+ label?: string | undefined;
2983
+ required?: boolean | undefined;
2984
+ hidden?: boolean | undefined;
2985
+ readonly?: boolean | undefined;
2986
+ placeholder?: string | undefined;
2987
+ helpText?: string | undefined;
2988
+ colSpan?: number | undefined;
2989
+ widget?: string | undefined;
2990
+ dependsOn?: string | undefined;
2991
+ visibleOn?: string | undefined;
2992
+ })[];
829
2993
  label?: string | undefined;
830
2994
  columns?: "1" | "2" | "3" | "4" | undefined;
831
2995
  collapsible?: boolean | undefined;
@@ -833,7 +2997,17 @@ export declare const ViewSchema: z.ZodObject<{
833
2997
  }[] | undefined;
834
2998
  } | undefined;
835
2999
  listViews?: Record<string, {
836
- columns: string[];
3000
+ columns: string[] | {
3001
+ field: string;
3002
+ type?: string | undefined;
3003
+ label?: string | undefined;
3004
+ hidden?: boolean | undefined;
3005
+ width?: number | undefined;
3006
+ align?: "left" | "right" | "center" | undefined;
3007
+ sortable?: boolean | undefined;
3008
+ resizable?: boolean | undefined;
3009
+ wrap?: boolean | undefined;
3010
+ }[];
837
3011
  sort?: string | {
838
3012
  field: string;
839
3013
  order: "asc" | "desc";
@@ -842,6 +3016,30 @@ export declare const ViewSchema: z.ZodObject<{
842
3016
  type?: "map" | "grid" | "kanban" | "calendar" | "gantt" | undefined;
843
3017
  label?: string | undefined;
844
3018
  name?: string | undefined;
3019
+ data?: {
3020
+ object: string;
3021
+ provider: "object";
3022
+ } | {
3023
+ provider: "api";
3024
+ read?: {
3025
+ url: string;
3026
+ params?: Record<string, unknown> | undefined;
3027
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
3028
+ headers?: Record<string, string> | undefined;
3029
+ body?: unknown;
3030
+ } | undefined;
3031
+ write?: {
3032
+ url: string;
3033
+ params?: Record<string, unknown> | undefined;
3034
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
3035
+ headers?: Record<string, string> | undefined;
3036
+ body?: unknown;
3037
+ } | undefined;
3038
+ } | {
3039
+ provider: "value";
3040
+ items: unknown[];
3041
+ } | undefined;
3042
+ resizable?: boolean | undefined;
845
3043
  kanban?: {
846
3044
  groupByField: string;
847
3045
  columns: string[];
@@ -861,18 +3059,74 @@ export declare const ViewSchema: z.ZodObject<{
861
3059
  dependenciesField?: string | undefined;
862
3060
  } | undefined;
863
3061
  searchableFields?: string[] | undefined;
3062
+ striped?: boolean | undefined;
3063
+ bordered?: boolean | undefined;
3064
+ selection?: {
3065
+ type?: "multiple" | "none" | "single" | undefined;
3066
+ } | undefined;
3067
+ pagination?: {
3068
+ pageSize?: number | undefined;
3069
+ pageSizeOptions?: number[] | undefined;
3070
+ } | undefined;
864
3071
  }> | undefined;
865
3072
  formViews?: Record<string, {
866
3073
  type?: "simple" | "tabbed" | "wizard" | undefined;
3074
+ data?: {
3075
+ object: string;
3076
+ provider: "object";
3077
+ } | {
3078
+ provider: "api";
3079
+ read?: {
3080
+ url: string;
3081
+ params?: Record<string, unknown> | undefined;
3082
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
3083
+ headers?: Record<string, string> | undefined;
3084
+ body?: unknown;
3085
+ } | undefined;
3086
+ write?: {
3087
+ url: string;
3088
+ params?: Record<string, unknown> | undefined;
3089
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
3090
+ headers?: Record<string, string> | undefined;
3091
+ body?: unknown;
3092
+ } | undefined;
3093
+ } | {
3094
+ provider: "value";
3095
+ items: unknown[];
3096
+ } | undefined;
867
3097
  sections?: {
868
- fields: string[];
3098
+ fields: (string | {
3099
+ field: string;
3100
+ label?: string | undefined;
3101
+ required?: boolean | undefined;
3102
+ hidden?: boolean | undefined;
3103
+ readonly?: boolean | undefined;
3104
+ placeholder?: string | undefined;
3105
+ helpText?: string | undefined;
3106
+ colSpan?: number | undefined;
3107
+ widget?: string | undefined;
3108
+ dependsOn?: string | undefined;
3109
+ visibleOn?: string | undefined;
3110
+ })[];
869
3111
  label?: string | undefined;
870
3112
  columns?: "1" | "2" | "3" | "4" | undefined;
871
3113
  collapsible?: boolean | undefined;
872
3114
  collapsed?: boolean | undefined;
873
3115
  }[] | undefined;
874
3116
  groups?: {
875
- fields: string[];
3117
+ fields: (string | {
3118
+ field: string;
3119
+ label?: string | undefined;
3120
+ required?: boolean | undefined;
3121
+ hidden?: boolean | undefined;
3122
+ readonly?: boolean | undefined;
3123
+ placeholder?: string | undefined;
3124
+ helpText?: string | undefined;
3125
+ colSpan?: number | undefined;
3126
+ widget?: string | undefined;
3127
+ dependsOn?: string | undefined;
3128
+ visibleOn?: string | undefined;
3129
+ })[];
876
3130
  label?: string | undefined;
877
3131
  columns?: "1" | "2" | "3" | "4" | undefined;
878
3132
  collapsible?: boolean | undefined;
@@ -884,4 +3138,11 @@ export type View = z.infer<typeof ViewSchema>;
884
3138
  export type ListView = z.infer<typeof ListViewSchema>;
885
3139
  export type FormView = z.infer<typeof FormViewSchema>;
886
3140
  export type FormSection = z.infer<typeof FormSectionSchema>;
3141
+ export type ListColumn = z.infer<typeof ListColumnSchema>;
3142
+ export type FormField = z.infer<typeof FormFieldSchema>;
3143
+ export type SelectionConfig = z.infer<typeof SelectionConfigSchema>;
3144
+ export type PaginationConfig = z.infer<typeof PaginationConfigSchema>;
3145
+ export type ViewData = z.infer<typeof ViewDataSchema>;
3146
+ export type HttpRequest = z.infer<typeof HttpRequestSchema>;
3147
+ export type HttpMethod = z.infer<typeof HttpMethodSchema>;
887
3148
  //# sourceMappingURL=view.zod.d.ts.map