@baseplate-dev/project-builder-lib 0.2.4 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/migrations/index.d.ts.map +1 -1
  2. package/dist/migrations/index.js +2 -0
  3. package/dist/migrations/index.js.map +1 -1
  4. package/dist/migrations/migration-016-web-admin-config.d.ts +34 -0
  5. package/dist/migrations/migration-016-web-admin-config.d.ts.map +1 -0
  6. package/dist/migrations/migration-016-web-admin-config.js +43 -0
  7. package/dist/migrations/migration-016-web-admin-config.js.map +1 -0
  8. package/dist/plugins/migrations/run-migrations.d.ts.map +1 -1
  9. package/dist/plugins/migrations/run-migrations.js +8 -3
  10. package/dist/plugins/migrations/run-migrations.js.map +1 -1
  11. package/dist/plugins/plugins.test-utils.d.ts +27 -0
  12. package/dist/plugins/plugins.test-utils.d.ts.map +1 -0
  13. package/dist/plugins/plugins.test-utils.js +59 -0
  14. package/dist/plugins/plugins.test-utils.js.map +1 -0
  15. package/dist/plugins/spec/config-spec.d.ts +8 -6
  16. package/dist/plugins/spec/config-spec.d.ts.map +1 -1
  17. package/dist/plugins/spec/config-spec.js.map +1 -1
  18. package/dist/schema/apps/index.d.ts +1 -1
  19. package/dist/schema/apps/index.d.ts.map +1 -1
  20. package/dist/schema/apps/index.js +2 -1
  21. package/dist/schema/apps/index.js.map +1 -1
  22. package/dist/schema/apps/{admin/app.d.ts → web/admin/admin.d.ts} +231 -30
  23. package/dist/schema/apps/{admin/app.d.ts.map → web/admin/admin.d.ts.map} +1 -1
  24. package/dist/schema/apps/web/admin/admin.js +22 -0
  25. package/dist/schema/apps/web/admin/admin.js.map +1 -0
  26. package/dist/schema/apps/web/admin/index.d.ts +3 -0
  27. package/dist/schema/apps/web/admin/index.d.ts.map +1 -0
  28. package/dist/schema/apps/web/admin/index.js +3 -0
  29. package/dist/schema/apps/web/admin/index.js.map +1 -0
  30. package/dist/schema/apps/{admin → web/admin}/sections/base.d.ts +1 -1
  31. package/dist/schema/apps/web/admin/sections/base.d.ts.map +1 -0
  32. package/dist/schema/apps/web/admin/sections/base.js.map +1 -0
  33. package/dist/schema/apps/{admin → web/admin}/sections/crud-form/admin-crud-input.d.ts +1 -1
  34. package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.d.ts.map +1 -0
  35. package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.js.map +1 -0
  36. package/dist/schema/apps/web/admin/sections/crud-form/admin-input-spec.d.ts.map +1 -0
  37. package/dist/schema/apps/web/admin/sections/crud-form/admin-input-spec.js.map +1 -0
  38. package/dist/schema/apps/web/admin/sections/crud-form/built-in-input.d.ts.map +1 -0
  39. package/dist/schema/apps/web/admin/sections/crud-form/built-in-input.js.map +1 -0
  40. package/dist/schema/apps/web/admin/sections/crud-form/index.d.ts.map +1 -0
  41. package/dist/schema/apps/web/admin/sections/crud-form/index.js.map +1 -0
  42. package/dist/schema/apps/web/admin/sections/crud-form/types.d.ts.map +1 -0
  43. package/dist/schema/apps/web/admin/sections/crud-form/types.js.map +1 -0
  44. package/dist/schema/apps/web/admin/sections/crud.d.ts.map +1 -0
  45. package/dist/schema/apps/web/admin/sections/crud.js.map +1 -0
  46. package/dist/schema/apps/web/admin/sections/index.d.ts.map +1 -0
  47. package/dist/schema/apps/web/admin/sections/index.js.map +1 -0
  48. package/dist/schema/apps/web/admin/sections/types.d.ts.map +1 -0
  49. package/dist/schema/apps/{admin → web/admin}/sections/types.js +1 -1
  50. package/dist/schema/apps/web/admin/sections/types.js.map +1 -0
  51. package/dist/schema/apps/web/index.d.ts +1 -49
  52. package/dist/schema/apps/web/index.d.ts.map +1 -1
  53. package/dist/schema/apps/web/index.js +1 -21
  54. package/dist/schema/apps/web/index.js.map +1 -1
  55. package/dist/schema/apps/web/web-app.d.ts +1544 -0
  56. package/dist/schema/apps/web/web-app.d.ts.map +1 -0
  57. package/dist/schema/apps/web/web-app.js +22 -0
  58. package/dist/schema/apps/web/web-app.js.map +1 -0
  59. package/dist/schema/features/theme.d.ts +11 -11
  60. package/dist/schema/models/index.d.ts +6 -6
  61. package/dist/schema/project-definition.d.ts +2644 -1788
  62. package/dist/schema/project-definition.d.ts.map +1 -1
  63. package/dist/schema/project-definition.js +0 -2
  64. package/dist/schema/project-definition.js.map +1 -1
  65. package/dist/schema/settings.d.ts +14 -14
  66. package/dist/tools/model-merger/model-merger.d.ts +7 -7
  67. package/dist/tools/model-merger/model-merger.d.ts.map +1 -1
  68. package/dist/tools/model-merger/model-merger.js +37 -13
  69. package/dist/tools/model-merger/model-merger.js.map +1 -1
  70. package/package.json +5 -5
  71. package/dist/schema/apps/admin/app.js +0 -27
  72. package/dist/schema/apps/admin/app.js.map +0 -1
  73. package/dist/schema/apps/admin/index.d.ts +0 -3
  74. package/dist/schema/apps/admin/index.d.ts.map +0 -1
  75. package/dist/schema/apps/admin/index.js +0 -3
  76. package/dist/schema/apps/admin/index.js.map +0 -1
  77. package/dist/schema/apps/admin/sections/base.d.ts.map +0 -1
  78. package/dist/schema/apps/admin/sections/base.js.map +0 -1
  79. package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.d.ts.map +0 -1
  80. package/dist/schema/apps/admin/sections/crud-form/admin-crud-input.js.map +0 -1
  81. package/dist/schema/apps/admin/sections/crud-form/admin-input-spec.d.ts.map +0 -1
  82. package/dist/schema/apps/admin/sections/crud-form/admin-input-spec.js.map +0 -1
  83. package/dist/schema/apps/admin/sections/crud-form/built-in-input.d.ts.map +0 -1
  84. package/dist/schema/apps/admin/sections/crud-form/built-in-input.js.map +0 -1
  85. package/dist/schema/apps/admin/sections/crud-form/index.d.ts.map +0 -1
  86. package/dist/schema/apps/admin/sections/crud-form/index.js.map +0 -1
  87. package/dist/schema/apps/admin/sections/crud-form/types.d.ts.map +0 -1
  88. package/dist/schema/apps/admin/sections/crud-form/types.js.map +0 -1
  89. package/dist/schema/apps/admin/sections/crud.d.ts.map +0 -1
  90. package/dist/schema/apps/admin/sections/crud.js.map +0 -1
  91. package/dist/schema/apps/admin/sections/index.d.ts.map +0 -1
  92. package/dist/schema/apps/admin/sections/index.js.map +0 -1
  93. package/dist/schema/apps/admin/sections/types.d.ts.map +0 -1
  94. package/dist/schema/apps/admin/sections/types.js.map +0 -1
  95. /package/dist/schema/apps/{admin → web/admin}/sections/base.js +0 -0
  96. /package/dist/schema/apps/{admin → web/admin}/sections/crud-form/admin-crud-input.js +0 -0
  97. /package/dist/schema/apps/{admin → web/admin}/sections/crud-form/admin-input-spec.d.ts +0 -0
  98. /package/dist/schema/apps/{admin → web/admin}/sections/crud-form/admin-input-spec.js +0 -0
  99. /package/dist/schema/apps/{admin → web/admin}/sections/crud-form/built-in-input.d.ts +0 -0
  100. /package/dist/schema/apps/{admin → web/admin}/sections/crud-form/built-in-input.js +0 -0
  101. /package/dist/schema/apps/{admin → web/admin}/sections/crud-form/index.d.ts +0 -0
  102. /package/dist/schema/apps/{admin → web/admin}/sections/crud-form/index.js +0 -0
  103. /package/dist/schema/apps/{admin → web/admin}/sections/crud-form/types.d.ts +0 -0
  104. /package/dist/schema/apps/{admin → web/admin}/sections/crud-form/types.js +0 -0
  105. /package/dist/schema/apps/{admin → web/admin}/sections/crud.d.ts +0 -0
  106. /package/dist/schema/apps/{admin → web/admin}/sections/crud.js +0 -0
  107. /package/dist/schema/apps/{admin → web/admin}/sections/index.d.ts +0 -0
  108. /package/dist/schema/apps/{admin → web/admin}/sections/index.js +0 -0
  109. /package/dist/schema/apps/{admin → web/admin}/sections/types.d.ts +0 -0
@@ -35,232 +35,38 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
35
35
  enableAxios?: boolean | undefined;
36
36
  }>, z.ZodObject<{
37
37
  type: z.ZodLiteral<"web">;
38
- includeAuth: z.ZodOptional<z.ZodBoolean>;
39
- title: z.ZodOptional<z.ZodString>;
40
- description: z.ZodOptional<z.ZodString>;
41
- allowedRoles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
42
- includeUploadComponents: z.ZodOptional<z.ZodBoolean>;
43
- enableSubscriptions: z.ZodOptional<z.ZodBoolean>;
44
- id: z.ZodDefault<z.ZodString>;
45
- name: z.ZodString;
46
- packageLocation: z.ZodOptional<z.ZodString>;
47
- }, "strip", z.ZodTypeAny, {
48
- type: "web";
49
- name: string;
50
- id: string;
51
- description?: string | undefined;
52
- packageLocation?: string | undefined;
53
- allowedRoles?: string[] | undefined;
54
- enableSubscriptions?: boolean | undefined;
55
- includeAuth?: boolean | undefined;
56
- title?: string | undefined;
57
- includeUploadComponents?: boolean | undefined;
58
- }, {
59
- type: "web";
60
- name: string;
61
- description?: string | undefined;
62
- id?: string | undefined;
63
- packageLocation?: string | undefined;
64
- allowedRoles?: string[] | undefined;
65
- enableSubscriptions?: boolean | undefined;
66
- includeAuth?: boolean | undefined;
67
- title?: string | undefined;
68
- includeUploadComponents?: boolean | undefined;
69
- }>, z.ZodObject<{
70
- type: z.ZodLiteral<"admin">;
71
- allowedRoles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
72
- sections: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodObject<{
73
- id: z.ZodDefault<z.ZodString>;
74
- name: z.ZodString;
75
- featureRef: z.ZodEffects<z.ZodString, string, string>;
76
- icon: z.ZodOptional<z.ZodString>;
77
- type: z.ZodString;
78
- }, "strip", z.ZodTypeAny, {
79
- type: string;
80
- name: string;
81
- id: string;
82
- featureRef: string;
83
- icon?: string | undefined;
84
- }, {
85
- type: string;
86
- name: string;
87
- featureRef: string;
88
- icon?: string | undefined;
89
- id?: string | undefined;
90
- }>, z.ZodObject<{
91
- type: z.ZodLiteral<"crud">;
92
- modelRef: z.ZodEffects<z.ZodString, string, string>;
93
- disableCreate: z.ZodOptional<z.ZodBoolean>;
94
- table: z.ZodObject<{
95
- columns: z.ZodArray<z.ZodObject<{
96
- label: z.ZodString;
97
- display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
98
- type: z.ZodLiteral<"text">;
99
- modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
100
- }, "strip", z.ZodTypeAny, {
101
- type: "text";
102
- modelFieldRef: string;
103
- }, {
104
- type: "text";
105
- modelFieldRef: string;
106
- }>, z.ZodObject<{
107
- type: z.ZodLiteral<"foreign">;
108
- localRelationRef: z.ZodEffects<z.ZodString, string, string>;
109
- labelExpression: z.ZodString;
110
- valueExpression: z.ZodString;
111
- }, "strip", z.ZodTypeAny, {
112
- type: "foreign";
113
- localRelationRef: string;
114
- labelExpression: string;
115
- valueExpression: string;
116
- }, {
117
- type: "foreign";
118
- localRelationRef: string;
119
- labelExpression: string;
120
- valueExpression: string;
121
- }>]>;
122
- }, "strip", z.ZodTypeAny, {
123
- label: string;
124
- display: {
125
- type: "foreign";
126
- localRelationRef: string;
127
- labelExpression: string;
128
- valueExpression: string;
129
- } | {
130
- type: "text";
131
- modelFieldRef: string;
132
- };
133
- }, {
134
- label: string;
135
- display: {
136
- type: "foreign";
137
- localRelationRef: string;
138
- labelExpression: string;
139
- valueExpression: string;
140
- } | {
141
- type: "text";
142
- modelFieldRef: string;
143
- };
144
- }>, "many">;
145
- }, "strip", z.ZodTypeAny, {
146
- columns: {
147
- label: string;
148
- display: {
149
- type: "foreign";
150
- localRelationRef: string;
151
- labelExpression: string;
152
- valueExpression: string;
153
- } | {
154
- type: "text";
155
- modelFieldRef: string;
156
- };
157
- }[];
158
- }, {
159
- columns: {
160
- label: string;
161
- display: {
162
- type: "foreign";
163
- localRelationRef: string;
164
- labelExpression: string;
165
- valueExpression: string;
166
- } | {
167
- type: "text";
168
- modelFieldRef: string;
169
- };
170
- }[];
171
- }>;
172
- form: z.ZodObject<{
173
- fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
174
- type: z.ZodString;
175
- label: z.ZodString;
176
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
177
- type: z.ZodString;
178
- label: z.ZodString;
179
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
180
- type: z.ZodString;
181
- label: z.ZodString;
182
- }, z.ZodTypeAny, "passthrough">>, {
183
- type: string;
184
- label: string;
185
- }, z.objectInputType<{
186
- type: z.ZodString;
187
- label: z.ZodString;
188
- }, z.ZodTypeAny, "passthrough">>, "many">;
189
- }, "strip", z.ZodTypeAny, {
190
- fields: {
191
- type: string;
192
- label: string;
193
- }[];
194
- }, {
195
- fields: z.objectInputType<{
196
- type: z.ZodString;
197
- label: z.ZodString;
198
- }, z.ZodTypeAny, "passthrough">[];
199
- }>;
200
- embeddedForms: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
201
- id: z.ZodString;
38
+ includeAuth: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
39
+ title: z.ZodDefault<z.ZodString>;
40
+ description: z.ZodDefault<z.ZodString>;
41
+ allowedRoles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
42
+ includeUploadComponents: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
43
+ enableSubscriptions: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
44
+ adminApp: z.ZodEffects<z.ZodOptional<z.ZodObject<{
45
+ enabled: z.ZodBoolean;
46
+ pathPrefix: z.ZodDefault<z.ZodString>;
47
+ allowedRoles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
48
+ sections: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodObject<{
49
+ id: z.ZodDefault<z.ZodString>;
202
50
  name: z.ZodString;
203
- modelRef: z.ZodEffects<z.ZodString, string, string>;
204
- includeIdField: z.ZodOptional<z.ZodBoolean>;
205
- type: z.ZodLiteral<"object">;
206
- form: z.ZodObject<{
207
- fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
208
- type: z.ZodString;
209
- label: z.ZodString;
210
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
211
- type: z.ZodString;
212
- label: z.ZodString;
213
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
214
- type: z.ZodString;
215
- label: z.ZodString;
216
- }, z.ZodTypeAny, "passthrough">>, {
217
- type: string;
218
- label: string;
219
- }, z.objectInputType<{
220
- type: z.ZodString;
221
- label: z.ZodString;
222
- }, z.ZodTypeAny, "passthrough">>, "many">;
223
- }, "strip", z.ZodTypeAny, {
224
- fields: {
225
- type: string;
226
- label: string;
227
- }[];
228
- }, {
229
- fields: z.objectInputType<{
230
- type: z.ZodString;
231
- label: z.ZodString;
232
- }, z.ZodTypeAny, "passthrough">[];
233
- }>;
51
+ featureRef: z.ZodEffects<z.ZodString, string, string>;
52
+ icon: z.ZodOptional<z.ZodString>;
53
+ type: z.ZodString;
234
54
  }, "strip", z.ZodTypeAny, {
235
- type: "object";
55
+ type: string;
236
56
  name: string;
237
57
  id: string;
238
- modelRef: string;
239
- form: {
240
- fields: {
241
- type: string;
242
- label: string;
243
- }[];
244
- };
245
- includeIdField?: boolean | undefined;
58
+ featureRef: string;
59
+ icon?: string | undefined;
246
60
  }, {
247
- type: "object";
61
+ type: string;
248
62
  name: string;
249
- id: string;
250
- modelRef: string;
251
- form: {
252
- fields: z.objectInputType<{
253
- type: z.ZodString;
254
- label: z.ZodString;
255
- }, z.ZodTypeAny, "passthrough">[];
256
- };
257
- includeIdField?: boolean | undefined;
63
+ featureRef: string;
64
+ icon?: string | undefined;
65
+ id?: string | undefined;
258
66
  }>, z.ZodObject<{
259
- id: z.ZodString;
260
- name: z.ZodString;
67
+ type: z.ZodLiteral<"crud">;
261
68
  modelRef: z.ZodEffects<z.ZodString, string, string>;
262
- includeIdField: z.ZodOptional<z.ZodBoolean>;
263
- type: z.ZodLiteral<"list">;
69
+ disableCreate: z.ZodOptional<z.ZodBoolean>;
264
70
  table: z.ZodObject<{
265
71
  columns: z.ZodArray<z.ZodObject<{
266
72
  label: z.ZodString;
@@ -367,175 +173,439 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
367
173
  label: z.ZodString;
368
174
  }, z.ZodTypeAny, "passthrough">[];
369
175
  }>;
370
- }, "strip", z.ZodTypeAny, {
371
- type: "list";
372
- name: string;
373
- id: string;
374
- modelRef: string;
375
- form: {
376
- fields: {
377
- type: string;
378
- label: string;
379
- }[];
380
- };
381
- table: {
382
- columns: {
383
- label: string;
384
- display: {
385
- type: "foreign";
386
- localRelationRef: string;
387
- labelExpression: string;
388
- valueExpression: string;
389
- } | {
390
- type: "text";
391
- modelFieldRef: string;
392
- };
393
- }[];
394
- };
395
- includeIdField?: boolean | undefined;
396
- }, {
397
- type: "list";
398
- name: string;
399
- id: string;
400
- modelRef: string;
401
- form: {
402
- fields: z.objectInputType<{
403
- type: z.ZodString;
404
- label: z.ZodString;
405
- }, z.ZodTypeAny, "passthrough">[];
406
- };
407
- table: {
408
- columns: {
409
- label: string;
410
- display: {
411
- type: "foreign";
412
- localRelationRef: string;
413
- labelExpression: string;
414
- valueExpression: string;
415
- } | {
416
- type: "text";
417
- modelFieldRef: string;
418
- };
419
- }[];
420
- };
421
- includeIdField?: boolean | undefined;
422
- }>]>, {
423
- type: "object";
424
- name: string;
425
- id: string;
426
- modelRef: string;
427
- form: {
428
- fields: {
429
- type: string;
430
- label: string;
431
- }[];
432
- };
433
- includeIdField?: boolean | undefined;
434
- } | {
435
- type: "list";
436
- name: string;
437
- id: string;
438
- modelRef: string;
439
- form: {
440
- fields: {
441
- type: string;
442
- label: string;
443
- }[];
444
- };
445
- table: {
446
- columns: {
447
- label: string;
448
- display: {
449
- type: "foreign";
450
- localRelationRef: string;
451
- labelExpression: string;
452
- valueExpression: string;
453
- } | {
454
- type: "text";
455
- modelFieldRef: string;
456
- };
457
- }[];
458
- };
459
- includeIdField?: boolean | undefined;
460
- }, {
461
- type: "object";
462
- name: string;
463
- id: string;
464
- modelRef: string;
465
- form: {
466
- fields: z.objectInputType<{
467
- type: z.ZodString;
468
- label: z.ZodString;
469
- }, z.ZodTypeAny, "passthrough">[];
470
- };
471
- includeIdField?: boolean | undefined;
472
- } | {
473
- type: "list";
474
- name: string;
475
- id: string;
476
- modelRef: string;
477
- form: {
478
- fields: z.objectInputType<{
479
- type: z.ZodString;
480
- label: z.ZodString;
481
- }, z.ZodTypeAny, "passthrough">[];
482
- };
483
- table: {
484
- columns: {
485
- label: string;
486
- display: {
487
- type: "foreign";
488
- localRelationRef: string;
489
- labelExpression: string;
490
- valueExpression: string;
491
- } | {
492
- type: "text";
493
- modelFieldRef: string;
494
- };
495
- }[];
496
- };
497
- includeIdField?: boolean | undefined;
498
- }>, "many">>;
499
- }, "strip", z.ZodTypeAny, {
500
- type: "crud";
501
- modelRef: string;
502
- form: {
503
- fields: {
504
- type: string;
505
- label: string;
506
- }[];
507
- };
508
- table: {
509
- columns: {
510
- label: string;
511
- display: {
512
- type: "foreign";
513
- localRelationRef: string;
514
- labelExpression: string;
515
- valueExpression: string;
516
- } | {
517
- type: "text";
518
- modelFieldRef: string;
519
- };
520
- }[];
521
- };
522
- disableCreate?: boolean | undefined;
523
- embeddedForms?: ({
524
- type: "object";
525
- name: string;
526
- id: string;
176
+ embeddedForms: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
177
+ id: z.ZodString;
178
+ name: z.ZodString;
179
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
180
+ includeIdField: z.ZodOptional<z.ZodBoolean>;
181
+ type: z.ZodLiteral<"object">;
182
+ form: z.ZodObject<{
183
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
184
+ type: z.ZodString;
185
+ label: z.ZodString;
186
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
187
+ type: z.ZodString;
188
+ label: z.ZodString;
189
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
190
+ type: z.ZodString;
191
+ label: z.ZodString;
192
+ }, z.ZodTypeAny, "passthrough">>, {
193
+ type: string;
194
+ label: string;
195
+ }, z.objectInputType<{
196
+ type: z.ZodString;
197
+ label: z.ZodString;
198
+ }, z.ZodTypeAny, "passthrough">>, "many">;
199
+ }, "strip", z.ZodTypeAny, {
200
+ fields: {
201
+ type: string;
202
+ label: string;
203
+ }[];
204
+ }, {
205
+ fields: z.objectInputType<{
206
+ type: z.ZodString;
207
+ label: z.ZodString;
208
+ }, z.ZodTypeAny, "passthrough">[];
209
+ }>;
210
+ }, "strip", z.ZodTypeAny, {
211
+ type: "object";
212
+ name: string;
213
+ id: string;
214
+ modelRef: string;
215
+ form: {
216
+ fields: {
217
+ type: string;
218
+ label: string;
219
+ }[];
220
+ };
221
+ includeIdField?: boolean | undefined;
222
+ }, {
223
+ type: "object";
224
+ name: string;
225
+ id: string;
226
+ modelRef: string;
227
+ form: {
228
+ fields: z.objectInputType<{
229
+ type: z.ZodString;
230
+ label: z.ZodString;
231
+ }, z.ZodTypeAny, "passthrough">[];
232
+ };
233
+ includeIdField?: boolean | undefined;
234
+ }>, z.ZodObject<{
235
+ id: z.ZodString;
236
+ name: z.ZodString;
237
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
238
+ includeIdField: z.ZodOptional<z.ZodBoolean>;
239
+ type: z.ZodLiteral<"list">;
240
+ table: z.ZodObject<{
241
+ columns: z.ZodArray<z.ZodObject<{
242
+ label: z.ZodString;
243
+ display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
244
+ type: z.ZodLiteral<"text">;
245
+ modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
246
+ }, "strip", z.ZodTypeAny, {
247
+ type: "text";
248
+ modelFieldRef: string;
249
+ }, {
250
+ type: "text";
251
+ modelFieldRef: string;
252
+ }>, z.ZodObject<{
253
+ type: z.ZodLiteral<"foreign">;
254
+ localRelationRef: z.ZodEffects<z.ZodString, string, string>;
255
+ labelExpression: z.ZodString;
256
+ valueExpression: z.ZodString;
257
+ }, "strip", z.ZodTypeAny, {
258
+ type: "foreign";
259
+ localRelationRef: string;
260
+ labelExpression: string;
261
+ valueExpression: string;
262
+ }, {
263
+ type: "foreign";
264
+ localRelationRef: string;
265
+ labelExpression: string;
266
+ valueExpression: string;
267
+ }>]>;
268
+ }, "strip", z.ZodTypeAny, {
269
+ label: string;
270
+ display: {
271
+ type: "foreign";
272
+ localRelationRef: string;
273
+ labelExpression: string;
274
+ valueExpression: string;
275
+ } | {
276
+ type: "text";
277
+ modelFieldRef: string;
278
+ };
279
+ }, {
280
+ label: string;
281
+ display: {
282
+ type: "foreign";
283
+ localRelationRef: string;
284
+ labelExpression: string;
285
+ valueExpression: string;
286
+ } | {
287
+ type: "text";
288
+ modelFieldRef: string;
289
+ };
290
+ }>, "many">;
291
+ }, "strip", z.ZodTypeAny, {
292
+ columns: {
293
+ label: string;
294
+ display: {
295
+ type: "foreign";
296
+ localRelationRef: string;
297
+ labelExpression: string;
298
+ valueExpression: string;
299
+ } | {
300
+ type: "text";
301
+ modelFieldRef: string;
302
+ };
303
+ }[];
304
+ }, {
305
+ columns: {
306
+ label: string;
307
+ display: {
308
+ type: "foreign";
309
+ localRelationRef: string;
310
+ labelExpression: string;
311
+ valueExpression: string;
312
+ } | {
313
+ type: "text";
314
+ modelFieldRef: string;
315
+ };
316
+ }[];
317
+ }>;
318
+ form: z.ZodObject<{
319
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
320
+ type: z.ZodString;
321
+ label: z.ZodString;
322
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
323
+ type: z.ZodString;
324
+ label: z.ZodString;
325
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
326
+ type: z.ZodString;
327
+ label: z.ZodString;
328
+ }, z.ZodTypeAny, "passthrough">>, {
329
+ type: string;
330
+ label: string;
331
+ }, z.objectInputType<{
332
+ type: z.ZodString;
333
+ label: z.ZodString;
334
+ }, z.ZodTypeAny, "passthrough">>, "many">;
335
+ }, "strip", z.ZodTypeAny, {
336
+ fields: {
337
+ type: string;
338
+ label: string;
339
+ }[];
340
+ }, {
341
+ fields: z.objectInputType<{
342
+ type: z.ZodString;
343
+ label: z.ZodString;
344
+ }, z.ZodTypeAny, "passthrough">[];
345
+ }>;
346
+ }, "strip", z.ZodTypeAny, {
347
+ type: "list";
348
+ name: string;
349
+ id: string;
350
+ modelRef: string;
351
+ form: {
352
+ fields: {
353
+ type: string;
354
+ label: string;
355
+ }[];
356
+ };
357
+ table: {
358
+ columns: {
359
+ label: string;
360
+ display: {
361
+ type: "foreign";
362
+ localRelationRef: string;
363
+ labelExpression: string;
364
+ valueExpression: string;
365
+ } | {
366
+ type: "text";
367
+ modelFieldRef: string;
368
+ };
369
+ }[];
370
+ };
371
+ includeIdField?: boolean | undefined;
372
+ }, {
373
+ type: "list";
374
+ name: string;
375
+ id: string;
376
+ modelRef: string;
377
+ form: {
378
+ fields: z.objectInputType<{
379
+ type: z.ZodString;
380
+ label: z.ZodString;
381
+ }, z.ZodTypeAny, "passthrough">[];
382
+ };
383
+ table: {
384
+ columns: {
385
+ label: string;
386
+ display: {
387
+ type: "foreign";
388
+ localRelationRef: string;
389
+ labelExpression: string;
390
+ valueExpression: string;
391
+ } | {
392
+ type: "text";
393
+ modelFieldRef: string;
394
+ };
395
+ }[];
396
+ };
397
+ includeIdField?: boolean | undefined;
398
+ }>]>, {
399
+ type: "object";
400
+ name: string;
401
+ id: string;
402
+ modelRef: string;
403
+ form: {
404
+ fields: {
405
+ type: string;
406
+ label: string;
407
+ }[];
408
+ };
409
+ includeIdField?: boolean | undefined;
410
+ } | {
411
+ type: "list";
412
+ name: string;
413
+ id: string;
414
+ modelRef: string;
415
+ form: {
416
+ fields: {
417
+ type: string;
418
+ label: string;
419
+ }[];
420
+ };
421
+ table: {
422
+ columns: {
423
+ label: string;
424
+ display: {
425
+ type: "foreign";
426
+ localRelationRef: string;
427
+ labelExpression: string;
428
+ valueExpression: string;
429
+ } | {
430
+ type: "text";
431
+ modelFieldRef: string;
432
+ };
433
+ }[];
434
+ };
435
+ includeIdField?: boolean | undefined;
436
+ }, {
437
+ type: "object";
438
+ name: string;
439
+ id: string;
440
+ modelRef: string;
441
+ form: {
442
+ fields: z.objectInputType<{
443
+ type: z.ZodString;
444
+ label: z.ZodString;
445
+ }, z.ZodTypeAny, "passthrough">[];
446
+ };
447
+ includeIdField?: boolean | undefined;
448
+ } | {
449
+ type: "list";
450
+ name: string;
451
+ id: string;
452
+ modelRef: string;
453
+ form: {
454
+ fields: z.objectInputType<{
455
+ type: z.ZodString;
456
+ label: z.ZodString;
457
+ }, z.ZodTypeAny, "passthrough">[];
458
+ };
459
+ table: {
460
+ columns: {
461
+ label: string;
462
+ display: {
463
+ type: "foreign";
464
+ localRelationRef: string;
465
+ labelExpression: string;
466
+ valueExpression: string;
467
+ } | {
468
+ type: "text";
469
+ modelFieldRef: string;
470
+ };
471
+ }[];
472
+ };
473
+ includeIdField?: boolean | undefined;
474
+ }>, "many">>;
475
+ }, "strip", z.ZodTypeAny, {
476
+ type: "crud";
477
+ modelRef: string;
478
+ form: {
479
+ fields: {
480
+ type: string;
481
+ label: string;
482
+ }[];
483
+ };
484
+ table: {
485
+ columns: {
486
+ label: string;
487
+ display: {
488
+ type: "foreign";
489
+ localRelationRef: string;
490
+ labelExpression: string;
491
+ valueExpression: string;
492
+ } | {
493
+ type: "text";
494
+ modelFieldRef: string;
495
+ };
496
+ }[];
497
+ };
498
+ disableCreate?: boolean | undefined;
499
+ embeddedForms?: ({
500
+ type: "object";
501
+ name: string;
502
+ id: string;
503
+ modelRef: string;
504
+ form: {
505
+ fields: {
506
+ type: string;
507
+ label: string;
508
+ }[];
509
+ };
510
+ includeIdField?: boolean | undefined;
511
+ } | {
512
+ type: "list";
513
+ name: string;
514
+ id: string;
515
+ modelRef: string;
516
+ form: {
517
+ fields: {
518
+ type: string;
519
+ label: string;
520
+ }[];
521
+ };
522
+ table: {
523
+ columns: {
524
+ label: string;
525
+ display: {
526
+ type: "foreign";
527
+ localRelationRef: string;
528
+ labelExpression: string;
529
+ valueExpression: string;
530
+ } | {
531
+ type: "text";
532
+ modelFieldRef: string;
533
+ };
534
+ }[];
535
+ };
536
+ includeIdField?: boolean | undefined;
537
+ })[] | undefined;
538
+ }, {
539
+ type: "crud";
527
540
  modelRef: string;
528
541
  form: {
529
- fields: {
530
- type: string;
542
+ fields: z.objectInputType<{
543
+ type: z.ZodString;
544
+ label: z.ZodString;
545
+ }, z.ZodTypeAny, "passthrough">[];
546
+ };
547
+ table: {
548
+ columns: {
531
549
  label: string;
550
+ display: {
551
+ type: "foreign";
552
+ localRelationRef: string;
553
+ labelExpression: string;
554
+ valueExpression: string;
555
+ } | {
556
+ type: "text";
557
+ modelFieldRef: string;
558
+ };
532
559
  }[];
533
560
  };
534
- includeIdField?: boolean | undefined;
535
- } | {
536
- type: "list";
561
+ disableCreate?: boolean | undefined;
562
+ embeddedForms?: ({
563
+ type: "object";
564
+ name: string;
565
+ id: string;
566
+ modelRef: string;
567
+ form: {
568
+ fields: z.objectInputType<{
569
+ type: z.ZodString;
570
+ label: z.ZodString;
571
+ }, z.ZodTypeAny, "passthrough">[];
572
+ };
573
+ includeIdField?: boolean | undefined;
574
+ } | {
575
+ type: "list";
576
+ name: string;
577
+ id: string;
578
+ modelRef: string;
579
+ form: {
580
+ fields: z.objectInputType<{
581
+ type: z.ZodString;
582
+ label: z.ZodString;
583
+ }, z.ZodTypeAny, "passthrough">[];
584
+ };
585
+ table: {
586
+ columns: {
587
+ label: string;
588
+ display: {
589
+ type: "foreign";
590
+ localRelationRef: string;
591
+ labelExpression: string;
592
+ valueExpression: string;
593
+ } | {
594
+ type: "text";
595
+ modelFieldRef: string;
596
+ };
597
+ }[];
598
+ };
599
+ includeIdField?: boolean | undefined;
600
+ })[] | undefined;
601
+ }>>, {
602
+ type: string;
537
603
  name: string;
538
604
  id: string;
605
+ featureRef: string;
606
+ icon?: string | undefined;
607
+ } & {
608
+ type: "crud";
539
609
  modelRef: string;
540
610
  form: {
541
611
  fields: {
@@ -557,36 +627,54 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
557
627
  };
558
628
  }[];
559
629
  };
560
- includeIdField?: boolean | undefined;
561
- })[] | undefined;
562
- }, {
563
- type: "crud";
564
- modelRef: string;
565
- form: {
566
- fields: z.objectInputType<{
567
- type: z.ZodString;
568
- label: z.ZodString;
569
- }, z.ZodTypeAny, "passthrough">[];
570
- };
571
- table: {
572
- columns: {
573
- label: string;
574
- display: {
575
- type: "foreign";
576
- localRelationRef: string;
577
- labelExpression: string;
578
- valueExpression: string;
579
- } | {
580
- type: "text";
581
- modelFieldRef: string;
630
+ disableCreate?: boolean | undefined;
631
+ embeddedForms?: ({
632
+ type: "object";
633
+ name: string;
634
+ id: string;
635
+ modelRef: string;
636
+ form: {
637
+ fields: {
638
+ type: string;
639
+ label: string;
640
+ }[];
582
641
  };
583
- }[];
584
- };
585
- disableCreate?: boolean | undefined;
586
- embeddedForms?: ({
587
- type: "object";
642
+ includeIdField?: boolean | undefined;
643
+ } | {
644
+ type: "list";
645
+ name: string;
646
+ id: string;
647
+ modelRef: string;
648
+ form: {
649
+ fields: {
650
+ type: string;
651
+ label: string;
652
+ }[];
653
+ };
654
+ table: {
655
+ columns: {
656
+ label: string;
657
+ display: {
658
+ type: "foreign";
659
+ localRelationRef: string;
660
+ labelExpression: string;
661
+ valueExpression: string;
662
+ } | {
663
+ type: "text";
664
+ modelFieldRef: string;
665
+ };
666
+ }[];
667
+ };
668
+ includeIdField?: boolean | undefined;
669
+ })[] | undefined;
670
+ }, {
671
+ type: string;
588
672
  name: string;
589
- id: string;
673
+ featureRef: string;
674
+ icon?: string | undefined;
675
+ id?: string | undefined;
676
+ } & {
677
+ type: "crud";
590
678
  modelRef: string;
591
679
  form: {
592
680
  fields: z.objectInputType<{
@@ -594,11 +682,137 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
594
682
  label: z.ZodString;
595
683
  }, z.ZodTypeAny, "passthrough">[];
596
684
  };
597
- includeIdField?: boolean | undefined;
598
- } | {
599
- type: "list";
685
+ table: {
686
+ columns: {
687
+ label: string;
688
+ display: {
689
+ type: "foreign";
690
+ localRelationRef: string;
691
+ labelExpression: string;
692
+ valueExpression: string;
693
+ } | {
694
+ type: "text";
695
+ modelFieldRef: string;
696
+ };
697
+ }[];
698
+ };
699
+ disableCreate?: boolean | undefined;
700
+ embeddedForms?: ({
701
+ type: "object";
702
+ name: string;
703
+ id: string;
704
+ modelRef: string;
705
+ form: {
706
+ fields: z.objectInputType<{
707
+ type: z.ZodString;
708
+ label: z.ZodString;
709
+ }, z.ZodTypeAny, "passthrough">[];
710
+ };
711
+ includeIdField?: boolean | undefined;
712
+ } | {
713
+ type: "list";
714
+ name: string;
715
+ id: string;
716
+ modelRef: string;
717
+ form: {
718
+ fields: z.objectInputType<{
719
+ type: z.ZodString;
720
+ label: z.ZodString;
721
+ }, z.ZodTypeAny, "passthrough">[];
722
+ };
723
+ table: {
724
+ columns: {
725
+ label: string;
726
+ display: {
727
+ type: "foreign";
728
+ localRelationRef: string;
729
+ labelExpression: string;
730
+ valueExpression: string;
731
+ } | {
732
+ type: "text";
733
+ modelFieldRef: string;
734
+ };
735
+ }[];
736
+ };
737
+ includeIdField?: boolean | undefined;
738
+ })[] | undefined;
739
+ }>, {
740
+ type: string;
741
+ name: string;
742
+ id: string;
743
+ featureRef: string;
744
+ icon?: string | undefined;
745
+ } & {
746
+ type: "crud";
747
+ modelRef: string;
748
+ form: {
749
+ fields: {
750
+ type: string;
751
+ label: string;
752
+ }[];
753
+ };
754
+ table: {
755
+ columns: {
756
+ label: string;
757
+ display: {
758
+ type: "foreign";
759
+ localRelationRef: string;
760
+ labelExpression: string;
761
+ valueExpression: string;
762
+ } | {
763
+ type: "text";
764
+ modelFieldRef: string;
765
+ };
766
+ }[];
767
+ };
768
+ disableCreate?: boolean | undefined;
769
+ embeddedForms?: ({
770
+ type: "object";
771
+ name: string;
772
+ id: string;
773
+ modelRef: string;
774
+ form: {
775
+ fields: {
776
+ type: string;
777
+ label: string;
778
+ }[];
779
+ };
780
+ includeIdField?: boolean | undefined;
781
+ } | {
782
+ type: "list";
783
+ name: string;
784
+ id: string;
785
+ modelRef: string;
786
+ form: {
787
+ fields: {
788
+ type: string;
789
+ label: string;
790
+ }[];
791
+ };
792
+ table: {
793
+ columns: {
794
+ label: string;
795
+ display: {
796
+ type: "foreign";
797
+ localRelationRef: string;
798
+ labelExpression: string;
799
+ valueExpression: string;
800
+ } | {
801
+ type: "text";
802
+ modelFieldRef: string;
803
+ };
804
+ }[];
805
+ };
806
+ includeIdField?: boolean | undefined;
807
+ })[] | undefined;
808
+ }, {
809
+ type: string;
600
810
  name: string;
601
- id: string;
811
+ featureRef: string;
812
+ icon?: string | undefined;
813
+ id?: string | undefined;
814
+ } & {
815
+ type: "crud";
602
816
  modelRef: string;
603
817
  form: {
604
818
  fields: z.objectInputType<{
@@ -620,54 +834,54 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
620
834
  };
621
835
  }[];
622
836
  };
623
- includeIdField?: boolean | undefined;
624
- })[] | undefined;
625
- }>>, {
626
- type: string;
627
- name: string;
628
- id: string;
629
- featureRef: string;
630
- icon?: string | undefined;
631
- } & {
632
- type: "crud";
633
- modelRef: string;
634
- form: {
635
- fields: {
636
- type: string;
637
- label: string;
638
- }[];
639
- };
640
- table: {
641
- columns: {
642
- label: string;
643
- display: {
644
- type: "foreign";
645
- localRelationRef: string;
646
- labelExpression: string;
647
- valueExpression: string;
648
- } | {
649
- type: "text";
650
- modelFieldRef: string;
837
+ disableCreate?: boolean | undefined;
838
+ embeddedForms?: ({
839
+ type: "object";
840
+ name: string;
841
+ id: string;
842
+ modelRef: string;
843
+ form: {
844
+ fields: z.objectInputType<{
845
+ type: z.ZodString;
846
+ label: z.ZodString;
847
+ }, z.ZodTypeAny, "passthrough">[];
651
848
  };
652
- }[];
653
- };
654
- disableCreate?: boolean | undefined;
655
- embeddedForms?: ({
656
- type: "object";
657
- name: string;
658
- id: string;
659
- modelRef: string;
660
- form: {
661
- fields: {
662
- type: string;
663
- label: string;
664
- }[];
665
- };
666
- includeIdField?: boolean | undefined;
667
- } | {
668
- type: "list";
849
+ includeIdField?: boolean | undefined;
850
+ } | {
851
+ type: "list";
852
+ name: string;
853
+ id: string;
854
+ modelRef: string;
855
+ form: {
856
+ fields: z.objectInputType<{
857
+ type: z.ZodString;
858
+ label: z.ZodString;
859
+ }, z.ZodTypeAny, "passthrough">[];
860
+ };
861
+ table: {
862
+ columns: {
863
+ label: string;
864
+ display: {
865
+ type: "foreign";
866
+ localRelationRef: string;
867
+ labelExpression: string;
868
+ valueExpression: string;
869
+ } | {
870
+ type: "text";
871
+ modelFieldRef: string;
872
+ };
873
+ }[];
874
+ };
875
+ includeIdField?: boolean | undefined;
876
+ })[] | undefined;
877
+ }>, "many">>, ({
878
+ type: string;
669
879
  name: string;
670
880
  id: string;
881
+ featureRef: string;
882
+ icon?: string | undefined;
883
+ } & {
884
+ type: "crud";
671
885
  modelRef: string;
672
886
  form: {
673
887
  fields: {
@@ -689,42 +903,54 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
689
903
  };
690
904
  }[];
691
905
  };
692
- includeIdField?: boolean | undefined;
693
- })[] | undefined;
694
- }, {
695
- type: string;
696
- name: string;
697
- featureRef: string;
698
- icon?: string | undefined;
699
- id?: string | undefined;
700
- } & {
701
- type: "crud";
702
- modelRef: string;
703
- form: {
704
- fields: z.objectInputType<{
705
- type: z.ZodString;
706
- label: z.ZodString;
707
- }, z.ZodTypeAny, "passthrough">[];
708
- };
709
- table: {
710
- columns: {
711
- label: string;
712
- display: {
713
- type: "foreign";
714
- localRelationRef: string;
715
- labelExpression: string;
716
- valueExpression: string;
717
- } | {
718
- type: "text";
719
- modelFieldRef: string;
906
+ disableCreate?: boolean | undefined;
907
+ embeddedForms?: ({
908
+ type: "object";
909
+ name: string;
910
+ id: string;
911
+ modelRef: string;
912
+ form: {
913
+ fields: {
914
+ type: string;
915
+ label: string;
916
+ }[];
720
917
  };
721
- }[];
722
- };
723
- disableCreate?: boolean | undefined;
724
- embeddedForms?: ({
725
- type: "object";
918
+ includeIdField?: boolean | undefined;
919
+ } | {
920
+ type: "list";
921
+ name: string;
922
+ id: string;
923
+ modelRef: string;
924
+ form: {
925
+ fields: {
926
+ type: string;
927
+ label: string;
928
+ }[];
929
+ };
930
+ table: {
931
+ columns: {
932
+ label: string;
933
+ display: {
934
+ type: "foreign";
935
+ localRelationRef: string;
936
+ labelExpression: string;
937
+ valueExpression: string;
938
+ } | {
939
+ type: "text";
940
+ modelFieldRef: string;
941
+ };
942
+ }[];
943
+ };
944
+ includeIdField?: boolean | undefined;
945
+ })[] | undefined;
946
+ })[] | undefined, ({
947
+ type: string;
726
948
  name: string;
727
- id: string;
949
+ featureRef: string;
950
+ icon?: string | undefined;
951
+ id?: string | undefined;
952
+ } & {
953
+ type: "crud";
728
954
  modelRef: string;
729
955
  form: {
730
956
  fields: z.objectInputType<{
@@ -732,17 +958,79 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
732
958
  label: z.ZodString;
733
959
  }, z.ZodTypeAny, "passthrough">[];
734
960
  };
735
- includeIdField?: boolean | undefined;
736
- } | {
737
- type: "list";
961
+ table: {
962
+ columns: {
963
+ label: string;
964
+ display: {
965
+ type: "foreign";
966
+ localRelationRef: string;
967
+ labelExpression: string;
968
+ valueExpression: string;
969
+ } | {
970
+ type: "text";
971
+ modelFieldRef: string;
972
+ };
973
+ }[];
974
+ };
975
+ disableCreate?: boolean | undefined;
976
+ embeddedForms?: ({
977
+ type: "object";
978
+ name: string;
979
+ id: string;
980
+ modelRef: string;
981
+ form: {
982
+ fields: z.objectInputType<{
983
+ type: z.ZodString;
984
+ label: z.ZodString;
985
+ }, z.ZodTypeAny, "passthrough">[];
986
+ };
987
+ includeIdField?: boolean | undefined;
988
+ } | {
989
+ type: "list";
990
+ name: string;
991
+ id: string;
992
+ modelRef: string;
993
+ form: {
994
+ fields: z.objectInputType<{
995
+ type: z.ZodString;
996
+ label: z.ZodString;
997
+ }, z.ZodTypeAny, "passthrough">[];
998
+ };
999
+ table: {
1000
+ columns: {
1001
+ label: string;
1002
+ display: {
1003
+ type: "foreign";
1004
+ localRelationRef: string;
1005
+ labelExpression: string;
1006
+ valueExpression: string;
1007
+ } | {
1008
+ type: "text";
1009
+ modelFieldRef: string;
1010
+ };
1011
+ }[];
1012
+ };
1013
+ includeIdField?: boolean | undefined;
1014
+ })[] | undefined;
1015
+ })[] | undefined>;
1016
+ }, "strip", z.ZodTypeAny, {
1017
+ enabled: boolean;
1018
+ pathPrefix: string;
1019
+ allowedRoles?: string[] | undefined;
1020
+ sections?: ({
1021
+ type: string;
738
1022
  name: string;
739
1023
  id: string;
1024
+ featureRef: string;
1025
+ icon?: string | undefined;
1026
+ } & {
1027
+ type: "crud";
740
1028
  modelRef: string;
741
1029
  form: {
742
- fields: z.objectInputType<{
743
- type: z.ZodString;
744
- label: z.ZodString;
745
- }, z.ZodTypeAny, "passthrough">[];
1030
+ fields: {
1031
+ type: string;
1032
+ label: string;
1033
+ }[];
746
1034
  };
747
1035
  table: {
748
1036
  columns: {
@@ -758,123 +1046,59 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
758
1046
  };
759
1047
  }[];
760
1048
  };
761
- includeIdField?: boolean | undefined;
762
- })[] | undefined;
763
- }>, {
764
- type: string;
765
- name: string;
766
- id: string;
767
- featureRef: string;
768
- icon?: string | undefined;
769
- } & {
770
- type: "crud";
771
- modelRef: string;
772
- form: {
773
- fields: {
774
- type: string;
775
- label: string;
776
- }[];
777
- };
778
- table: {
779
- columns: {
780
- label: string;
781
- display: {
782
- type: "foreign";
783
- localRelationRef: string;
784
- labelExpression: string;
785
- valueExpression: string;
786
- } | {
787
- type: "text";
788
- modelFieldRef: string;
1049
+ disableCreate?: boolean | undefined;
1050
+ embeddedForms?: ({
1051
+ type: "object";
1052
+ name: string;
1053
+ id: string;
1054
+ modelRef: string;
1055
+ form: {
1056
+ fields: {
1057
+ type: string;
1058
+ label: string;
1059
+ }[];
1060
+ };
1061
+ includeIdField?: boolean | undefined;
1062
+ } | {
1063
+ type: "list";
1064
+ name: string;
1065
+ id: string;
1066
+ modelRef: string;
1067
+ form: {
1068
+ fields: {
1069
+ type: string;
1070
+ label: string;
1071
+ }[];
1072
+ };
1073
+ table: {
1074
+ columns: {
1075
+ label: string;
1076
+ display: {
1077
+ type: "foreign";
1078
+ localRelationRef: string;
1079
+ labelExpression: string;
1080
+ valueExpression: string;
1081
+ } | {
1082
+ type: "text";
1083
+ modelFieldRef: string;
1084
+ };
1085
+ }[];
789
1086
  };
790
- }[];
791
- };
792
- disableCreate?: boolean | undefined;
793
- embeddedForms?: ({
794
- type: "object";
795
- name: string;
796
- id: string;
797
- modelRef: string;
798
- form: {
799
- fields: {
800
- type: string;
801
- label: string;
802
- }[];
803
- };
804
- includeIdField?: boolean | undefined;
805
- } | {
806
- type: "list";
807
- name: string;
808
- id: string;
809
- modelRef: string;
810
- form: {
811
- fields: {
812
- type: string;
813
- label: string;
814
- }[];
815
- };
816
- table: {
817
- columns: {
818
- label: string;
819
- display: {
820
- type: "foreign";
821
- localRelationRef: string;
822
- labelExpression: string;
823
- valueExpression: string;
824
- } | {
825
- type: "text";
826
- modelFieldRef: string;
827
- };
828
- }[];
829
- };
830
- includeIdField?: boolean | undefined;
1087
+ includeIdField?: boolean | undefined;
1088
+ })[] | undefined;
831
1089
  })[] | undefined;
832
1090
  }, {
833
- type: string;
834
- name: string;
835
- featureRef: string;
836
- icon?: string | undefined;
837
- id?: string | undefined;
838
- } & {
839
- type: "crud";
840
- modelRef: string;
841
- form: {
842
- fields: z.objectInputType<{
843
- type: z.ZodString;
844
- label: z.ZodString;
845
- }, z.ZodTypeAny, "passthrough">[];
846
- };
847
- table: {
848
- columns: {
849
- label: string;
850
- display: {
851
- type: "foreign";
852
- localRelationRef: string;
853
- labelExpression: string;
854
- valueExpression: string;
855
- } | {
856
- type: "text";
857
- modelFieldRef: string;
858
- };
859
- }[];
860
- };
861
- disableCreate?: boolean | undefined;
862
- embeddedForms?: ({
863
- type: "object";
864
- name: string;
865
- id: string;
866
- modelRef: string;
867
- form: {
868
- fields: z.objectInputType<{
869
- type: z.ZodString;
870
- label: z.ZodString;
871
- }, z.ZodTypeAny, "passthrough">[];
872
- };
873
- includeIdField?: boolean | undefined;
874
- } | {
875
- type: "list";
1091
+ enabled: boolean;
1092
+ pathPrefix?: string | undefined;
1093
+ allowedRoles?: string[] | undefined;
1094
+ sections?: ({
1095
+ type: string;
876
1096
  name: string;
877
- id: string;
1097
+ featureRef: string;
1098
+ icon?: string | undefined;
1099
+ id?: string | undefined;
1100
+ } & {
1101
+ type: "crud";
878
1102
  modelRef: string;
879
1103
  form: {
880
1104
  fields: z.objectInputType<{
@@ -896,64 +1120,59 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
896
1120
  };
897
1121
  }[];
898
1122
  };
899
- includeIdField?: boolean | undefined;
900
- })[] | undefined;
901
- }>, "many">>;
902
- id: z.ZodDefault<z.ZodString>;
903
- name: z.ZodString;
904
- packageLocation: z.ZodOptional<z.ZodString>;
905
- }, "strip", z.ZodTypeAny, {
906
- type: "admin";
907
- name: string;
908
- id: string;
909
- packageLocation?: string | undefined;
910
- allowedRoles?: string[] | undefined;
911
- sections?: ({
912
- type: string;
913
- name: string;
914
- id: string;
915
- featureRef: string;
916
- icon?: string | undefined;
917
- } & {
918
- type: "crud";
919
- modelRef: string;
920
- form: {
921
- fields: {
922
- type: string;
923
- label: string;
924
- }[];
925
- };
926
- table: {
927
- columns: {
928
- label: string;
929
- display: {
930
- type: "foreign";
931
- localRelationRef: string;
932
- labelExpression: string;
933
- valueExpression: string;
934
- } | {
935
- type: "text";
936
- modelFieldRef: string;
1123
+ disableCreate?: boolean | undefined;
1124
+ embeddedForms?: ({
1125
+ type: "object";
1126
+ name: string;
1127
+ id: string;
1128
+ modelRef: string;
1129
+ form: {
1130
+ fields: z.objectInputType<{
1131
+ type: z.ZodString;
1132
+ label: z.ZodString;
1133
+ }, z.ZodTypeAny, "passthrough">[];
937
1134
  };
938
- }[];
939
- };
940
- disableCreate?: boolean | undefined;
941
- embeddedForms?: ({
942
- type: "object";
943
- name: string;
944
- id: string;
945
- modelRef: string;
946
- form: {
947
- fields: {
948
- type: string;
949
- label: string;
950
- }[];
951
- };
952
- includeIdField?: boolean | undefined;
953
- } | {
954
- type: "list";
1135
+ includeIdField?: boolean | undefined;
1136
+ } | {
1137
+ type: "list";
1138
+ name: string;
1139
+ id: string;
1140
+ modelRef: string;
1141
+ form: {
1142
+ fields: z.objectInputType<{
1143
+ type: z.ZodString;
1144
+ label: z.ZodString;
1145
+ }, z.ZodTypeAny, "passthrough">[];
1146
+ };
1147
+ table: {
1148
+ columns: {
1149
+ label: string;
1150
+ display: {
1151
+ type: "foreign";
1152
+ localRelationRef: string;
1153
+ labelExpression: string;
1154
+ valueExpression: string;
1155
+ } | {
1156
+ type: "text";
1157
+ modelFieldRef: string;
1158
+ };
1159
+ }[];
1160
+ };
1161
+ includeIdField?: boolean | undefined;
1162
+ })[] | undefined;
1163
+ })[] | undefined;
1164
+ }>>, {
1165
+ enabled: boolean;
1166
+ pathPrefix: string;
1167
+ allowedRoles?: string[] | undefined;
1168
+ sections?: ({
1169
+ type: string;
955
1170
  name: string;
956
1171
  id: string;
1172
+ featureRef: string;
1173
+ icon?: string | undefined;
1174
+ } & {
1175
+ type: "crud";
957
1176
  modelRef: string;
958
1177
  form: {
959
1178
  fields: {
@@ -975,61 +1194,59 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
975
1194
  };
976
1195
  }[];
977
1196
  };
978
- includeIdField?: boolean | undefined;
979
- })[] | undefined;
980
- })[] | undefined;
981
- }, {
982
- type: "admin";
983
- name: string;
984
- id?: string | undefined;
985
- packageLocation?: string | undefined;
986
- allowedRoles?: string[] | undefined;
987
- sections?: ({
988
- type: string;
989
- name: string;
990
- featureRef: string;
991
- icon?: string | undefined;
992
- id?: string | undefined;
993
- } & {
994
- type: "crud";
995
- modelRef: string;
996
- form: {
997
- fields: z.objectInputType<{
998
- type: z.ZodString;
999
- label: z.ZodString;
1000
- }, z.ZodTypeAny, "passthrough">[];
1001
- };
1002
- table: {
1003
- columns: {
1004
- label: string;
1005
- display: {
1006
- type: "foreign";
1007
- localRelationRef: string;
1008
- labelExpression: string;
1009
- valueExpression: string;
1010
- } | {
1011
- type: "text";
1012
- modelFieldRef: string;
1197
+ disableCreate?: boolean | undefined;
1198
+ embeddedForms?: ({
1199
+ type: "object";
1200
+ name: string;
1201
+ id: string;
1202
+ modelRef: string;
1203
+ form: {
1204
+ fields: {
1205
+ type: string;
1206
+ label: string;
1207
+ }[];
1013
1208
  };
1014
- }[];
1015
- };
1016
- disableCreate?: boolean | undefined;
1017
- embeddedForms?: ({
1018
- type: "object";
1019
- name: string;
1020
- id: string;
1021
- modelRef: string;
1022
- form: {
1023
- fields: z.objectInputType<{
1024
- type: z.ZodString;
1025
- label: z.ZodString;
1026
- }, z.ZodTypeAny, "passthrough">[];
1027
- };
1028
- includeIdField?: boolean | undefined;
1029
- } | {
1030
- type: "list";
1209
+ includeIdField?: boolean | undefined;
1210
+ } | {
1211
+ type: "list";
1212
+ name: string;
1213
+ id: string;
1214
+ modelRef: string;
1215
+ form: {
1216
+ fields: {
1217
+ type: string;
1218
+ label: string;
1219
+ }[];
1220
+ };
1221
+ table: {
1222
+ columns: {
1223
+ label: string;
1224
+ display: {
1225
+ type: "foreign";
1226
+ localRelationRef: string;
1227
+ labelExpression: string;
1228
+ valueExpression: string;
1229
+ } | {
1230
+ type: "text";
1231
+ modelFieldRef: string;
1232
+ };
1233
+ }[];
1234
+ };
1235
+ includeIdField?: boolean | undefined;
1236
+ })[] | undefined;
1237
+ })[] | undefined;
1238
+ } | undefined, {
1239
+ enabled: boolean;
1240
+ pathPrefix?: string | undefined;
1241
+ allowedRoles?: string[] | undefined;
1242
+ sections?: ({
1243
+ type: string;
1031
1244
  name: string;
1032
- id: string;
1245
+ featureRef: string;
1246
+ icon?: string | undefined;
1247
+ id?: string | undefined;
1248
+ } & {
1249
+ type: "crud";
1033
1250
  modelRef: string;
1034
1251
  form: {
1035
1252
  fields: z.objectInputType<{
@@ -1051,61 +1268,74 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
1051
1268
  };
1052
1269
  }[];
1053
1270
  };
1054
- includeIdField?: boolean | undefined;
1055
- })[] | undefined;
1056
- })[] | undefined;
1057
- }>]>, {
1058
- type: "admin";
1271
+ disableCreate?: boolean | undefined;
1272
+ embeddedForms?: ({
1273
+ type: "object";
1274
+ name: string;
1275
+ id: string;
1276
+ modelRef: string;
1277
+ form: {
1278
+ fields: z.objectInputType<{
1279
+ type: z.ZodString;
1280
+ label: z.ZodString;
1281
+ }, z.ZodTypeAny, "passthrough">[];
1282
+ };
1283
+ includeIdField?: boolean | undefined;
1284
+ } | {
1285
+ type: "list";
1286
+ name: string;
1287
+ id: string;
1288
+ modelRef: string;
1289
+ form: {
1290
+ fields: z.objectInputType<{
1291
+ type: z.ZodString;
1292
+ label: z.ZodString;
1293
+ }, z.ZodTypeAny, "passthrough">[];
1294
+ };
1295
+ table: {
1296
+ columns: {
1297
+ label: string;
1298
+ display: {
1299
+ type: "foreign";
1300
+ localRelationRef: string;
1301
+ labelExpression: string;
1302
+ valueExpression: string;
1303
+ } | {
1304
+ type: "text";
1305
+ modelFieldRef: string;
1306
+ };
1307
+ }[];
1308
+ };
1309
+ includeIdField?: boolean | undefined;
1310
+ })[] | undefined;
1311
+ })[] | undefined;
1312
+ } | undefined>;
1313
+ id: z.ZodDefault<z.ZodString>;
1314
+ name: z.ZodString;
1315
+ packageLocation: z.ZodOptional<z.ZodString>;
1316
+ }, "strip", z.ZodTypeAny, {
1317
+ type: "web";
1059
1318
  name: string;
1319
+ description: string;
1060
1320
  id: string;
1321
+ title: string;
1061
1322
  packageLocation?: string | undefined;
1323
+ enableSubscriptions?: boolean | undefined;
1062
1324
  allowedRoles?: string[] | undefined;
1063
- sections?: ({
1064
- type: string;
1065
- name: string;
1066
- id: string;
1067
- featureRef: string;
1068
- icon?: string | undefined;
1069
- } & {
1070
- type: "crud";
1071
- modelRef: string;
1072
- form: {
1073
- fields: {
1074
- type: string;
1075
- label: string;
1076
- }[];
1077
- };
1078
- table: {
1079
- columns: {
1080
- label: string;
1081
- display: {
1082
- type: "foreign";
1083
- localRelationRef: string;
1084
- labelExpression: string;
1085
- valueExpression: string;
1086
- } | {
1087
- type: "text";
1088
- modelFieldRef: string;
1089
- };
1090
- }[];
1091
- };
1092
- disableCreate?: boolean | undefined;
1093
- embeddedForms?: ({
1094
- type: "object";
1095
- name: string;
1096
- id: string;
1097
- modelRef: string;
1098
- form: {
1099
- fields: {
1100
- type: string;
1101
- label: string;
1102
- }[];
1103
- };
1104
- includeIdField?: boolean | undefined;
1105
- } | {
1106
- type: "list";
1325
+ includeAuth?: boolean | undefined;
1326
+ includeUploadComponents?: boolean | undefined;
1327
+ adminApp?: {
1328
+ enabled: boolean;
1329
+ pathPrefix: string;
1330
+ allowedRoles?: string[] | undefined;
1331
+ sections?: ({
1332
+ type: string;
1107
1333
  name: string;
1108
1334
  id: string;
1335
+ featureRef: string;
1336
+ icon?: string | undefined;
1337
+ } & {
1338
+ type: "crud";
1109
1339
  modelRef: string;
1110
1340
  form: {
1111
1341
  fields: {
@@ -1127,83 +1357,71 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
1127
1357
  };
1128
1358
  }[];
1129
1359
  };
1130
- includeIdField?: boolean | undefined;
1360
+ disableCreate?: boolean | undefined;
1361
+ embeddedForms?: ({
1362
+ type: "object";
1363
+ name: string;
1364
+ id: string;
1365
+ modelRef: string;
1366
+ form: {
1367
+ fields: {
1368
+ type: string;
1369
+ label: string;
1370
+ }[];
1371
+ };
1372
+ includeIdField?: boolean | undefined;
1373
+ } | {
1374
+ type: "list";
1375
+ name: string;
1376
+ id: string;
1377
+ modelRef: string;
1378
+ form: {
1379
+ fields: {
1380
+ type: string;
1381
+ label: string;
1382
+ }[];
1383
+ };
1384
+ table: {
1385
+ columns: {
1386
+ label: string;
1387
+ display: {
1388
+ type: "foreign";
1389
+ localRelationRef: string;
1390
+ labelExpression: string;
1391
+ valueExpression: string;
1392
+ } | {
1393
+ type: "text";
1394
+ modelFieldRef: string;
1395
+ };
1396
+ }[];
1397
+ };
1398
+ includeIdField?: boolean | undefined;
1399
+ })[] | undefined;
1131
1400
  })[] | undefined;
1132
- })[] | undefined;
1133
- } | {
1134
- type: "backend";
1135
- name: string;
1136
- id: string;
1137
- packageLocation?: string | undefined;
1138
- enableStripe?: boolean | undefined;
1139
- enableRedis?: boolean | undefined;
1140
- enableBullQueue?: boolean | undefined;
1141
- enablePostmark?: boolean | undefined;
1142
- enableSubscriptions?: boolean | undefined;
1143
- enableAxios?: boolean | undefined;
1144
- } | {
1401
+ } | undefined;
1402
+ }, {
1145
1403
  type: "web";
1146
1404
  name: string;
1147
- id: string;
1148
1405
  description?: string | undefined;
1406
+ id?: string | undefined;
1149
1407
  packageLocation?: string | undefined;
1150
- allowedRoles?: string[] | undefined;
1151
1408
  enableSubscriptions?: boolean | undefined;
1409
+ allowedRoles?: string[] | undefined;
1152
1410
  includeAuth?: boolean | undefined;
1153
1411
  title?: string | undefined;
1154
1412
  includeUploadComponents?: boolean | undefined;
1155
- }, {
1156
- type: "admin";
1157
- name: string;
1158
- id?: string | undefined;
1159
- packageLocation?: string | undefined;
1160
- allowedRoles?: string[] | undefined;
1161
- sections?: ({
1162
- type: string;
1163
- name: string;
1164
- featureRef: string;
1165
- icon?: string | undefined;
1166
- id?: string | undefined;
1167
- } & {
1168
- type: "crud";
1169
- modelRef: string;
1170
- form: {
1171
- fields: z.objectInputType<{
1172
- type: z.ZodString;
1173
- label: z.ZodString;
1174
- }, z.ZodTypeAny, "passthrough">[];
1175
- };
1176
- table: {
1177
- columns: {
1178
- label: string;
1179
- display: {
1180
- type: "foreign";
1181
- localRelationRef: string;
1182
- labelExpression: string;
1183
- valueExpression: string;
1184
- } | {
1185
- type: "text";
1186
- modelFieldRef: string;
1187
- };
1188
- }[];
1189
- };
1190
- disableCreate?: boolean | undefined;
1191
- embeddedForms?: ({
1192
- type: "object";
1193
- name: string;
1194
- id: string;
1195
- modelRef: string;
1196
- form: {
1197
- fields: z.objectInputType<{
1198
- type: z.ZodString;
1199
- label: z.ZodString;
1200
- }, z.ZodTypeAny, "passthrough">[];
1201
- };
1202
- includeIdField?: boolean | undefined;
1203
- } | {
1204
- type: "list";
1413
+ adminApp?: {
1414
+ enabled: boolean;
1415
+ pathPrefix?: string | undefined;
1416
+ allowedRoles?: string[] | undefined;
1417
+ sections?: ({
1418
+ type: string;
1205
1419
  name: string;
1206
- id: string;
1420
+ featureRef: string;
1421
+ icon?: string | undefined;
1422
+ id?: string | undefined;
1423
+ } & {
1424
+ type: "crud";
1207
1425
  modelRef: string;
1208
1426
  form: {
1209
1427
  fields: z.objectInputType<{
@@ -1225,13 +1443,52 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
1225
1443
  };
1226
1444
  }[];
1227
1445
  };
1228
- includeIdField?: boolean | undefined;
1446
+ disableCreate?: boolean | undefined;
1447
+ embeddedForms?: ({
1448
+ type: "object";
1449
+ name: string;
1450
+ id: string;
1451
+ modelRef: string;
1452
+ form: {
1453
+ fields: z.objectInputType<{
1454
+ type: z.ZodString;
1455
+ label: z.ZodString;
1456
+ }, z.ZodTypeAny, "passthrough">[];
1457
+ };
1458
+ includeIdField?: boolean | undefined;
1459
+ } | {
1460
+ type: "list";
1461
+ name: string;
1462
+ id: string;
1463
+ modelRef: string;
1464
+ form: {
1465
+ fields: z.objectInputType<{
1466
+ type: z.ZodString;
1467
+ label: z.ZodString;
1468
+ }, z.ZodTypeAny, "passthrough">[];
1469
+ };
1470
+ table: {
1471
+ columns: {
1472
+ label: string;
1473
+ display: {
1474
+ type: "foreign";
1475
+ localRelationRef: string;
1476
+ labelExpression: string;
1477
+ valueExpression: string;
1478
+ } | {
1479
+ type: "text";
1480
+ modelFieldRef: string;
1481
+ };
1482
+ }[];
1483
+ };
1484
+ includeIdField?: boolean | undefined;
1485
+ })[] | undefined;
1229
1486
  })[] | undefined;
1230
- })[] | undefined;
1231
- } | {
1487
+ } | undefined;
1488
+ }>]>, {
1232
1489
  type: "backend";
1233
1490
  name: string;
1234
- id?: string | undefined;
1491
+ id: string;
1235
1492
  packageLocation?: string | undefined;
1236
1493
  enableStripe?: boolean | undefined;
1237
1494
  enableRedis?: boolean | undefined;
@@ -1242,161 +1499,34 @@ export declare const createAppSchema: (context: import("./creator/types.js").Def
1242
1499
  } | {
1243
1500
  type: "web";
1244
1501
  name: string;
1245
- description?: string | undefined;
1246
- id?: string | undefined;
1502
+ description: string;
1503
+ id: string;
1504
+ title: string;
1247
1505
  packageLocation?: string | undefined;
1248
- allowedRoles?: string[] | undefined;
1249
1506
  enableSubscriptions?: boolean | undefined;
1507
+ allowedRoles?: string[] | undefined;
1250
1508
  includeAuth?: boolean | undefined;
1251
- title?: string | undefined;
1252
- includeUploadComponents?: boolean | undefined;
1253
- }>;
1254
- export type AppConfig = def.InferOutput<typeof createAppSchema>;
1255
- export declare const createProjectDefinitionSchema: (context: import("./creator/types.js").DefinitionSchemaParserContext) => z.ZodObject<{
1256
- cliVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1257
- apps: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1258
- type: z.ZodLiteral<"backend">;
1259
- enableStripe: z.ZodOptional<z.ZodBoolean>;
1260
- enableRedis: z.ZodOptional<z.ZodBoolean>;
1261
- enableBullQueue: z.ZodOptional<z.ZodBoolean>;
1262
- enablePostmark: z.ZodOptional<z.ZodBoolean>;
1263
- enableSubscriptions: z.ZodOptional<z.ZodBoolean>;
1264
- enableAxios: z.ZodOptional<z.ZodBoolean>;
1265
- id: z.ZodDefault<z.ZodString>;
1266
- name: z.ZodString;
1267
- packageLocation: z.ZodOptional<z.ZodString>;
1268
- }, "strip", z.ZodTypeAny, {
1269
- type: "backend";
1270
- name: string;
1271
- id: string;
1272
- packageLocation?: string | undefined;
1273
- enableStripe?: boolean | undefined;
1274
- enableRedis?: boolean | undefined;
1275
- enableBullQueue?: boolean | undefined;
1276
- enablePostmark?: boolean | undefined;
1277
- enableSubscriptions?: boolean | undefined;
1278
- enableAxios?: boolean | undefined;
1279
- }, {
1280
- type: "backend";
1281
- name: string;
1282
- id?: string | undefined;
1283
- packageLocation?: string | undefined;
1284
- enableStripe?: boolean | undefined;
1285
- enableRedis?: boolean | undefined;
1286
- enableBullQueue?: boolean | undefined;
1287
- enablePostmark?: boolean | undefined;
1288
- enableSubscriptions?: boolean | undefined;
1289
- enableAxios?: boolean | undefined;
1290
- }>, z.ZodObject<{
1291
- type: z.ZodLiteral<"web">;
1292
- includeAuth: z.ZodOptional<z.ZodBoolean>;
1293
- title: z.ZodOptional<z.ZodString>;
1294
- description: z.ZodOptional<z.ZodString>;
1295
- allowedRoles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1296
- includeUploadComponents: z.ZodOptional<z.ZodBoolean>;
1297
- enableSubscriptions: z.ZodOptional<z.ZodBoolean>;
1298
- id: z.ZodDefault<z.ZodString>;
1299
- name: z.ZodString;
1300
- packageLocation: z.ZodOptional<z.ZodString>;
1301
- }, "strip", z.ZodTypeAny, {
1302
- type: "web";
1303
- name: string;
1304
- id: string;
1305
- description?: string | undefined;
1306
- packageLocation?: string | undefined;
1307
- allowedRoles?: string[] | undefined;
1308
- enableSubscriptions?: boolean | undefined;
1309
- includeAuth?: boolean | undefined;
1310
- title?: string | undefined;
1311
- includeUploadComponents?: boolean | undefined;
1312
- }, {
1313
- type: "web";
1314
- name: string;
1315
- description?: string | undefined;
1316
- id?: string | undefined;
1317
- packageLocation?: string | undefined;
1318
- allowedRoles?: string[] | undefined;
1319
- enableSubscriptions?: boolean | undefined;
1320
- includeAuth?: boolean | undefined;
1321
- title?: string | undefined;
1322
- includeUploadComponents?: boolean | undefined;
1323
- }>, z.ZodObject<{
1324
- type: z.ZodLiteral<"admin">;
1325
- allowedRoles: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1326
- sections: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodObject<{
1327
- id: z.ZodDefault<z.ZodString>;
1328
- name: z.ZodString;
1329
- featureRef: z.ZodEffects<z.ZodString, string, string>;
1330
- icon: z.ZodOptional<z.ZodString>;
1331
- type: z.ZodString;
1332
- }, "strip", z.ZodTypeAny, {
1333
- type: string;
1334
- name: string;
1335
- id: string;
1336
- featureRef: string;
1337
- icon?: string | undefined;
1338
- }, {
1509
+ includeUploadComponents?: boolean | undefined;
1510
+ adminApp?: {
1511
+ enabled: boolean;
1512
+ pathPrefix: string;
1513
+ allowedRoles?: string[] | undefined;
1514
+ sections?: ({
1339
1515
  type: string;
1340
1516
  name: string;
1517
+ id: string;
1341
1518
  featureRef: string;
1342
1519
  icon?: string | undefined;
1343
- id?: string | undefined;
1344
- }>, z.ZodObject<{
1345
- type: z.ZodLiteral<"crud">;
1346
- modelRef: z.ZodEffects<z.ZodString, string, string>;
1347
- disableCreate: z.ZodOptional<z.ZodBoolean>;
1348
- table: z.ZodObject<{
1349
- columns: z.ZodArray<z.ZodObject<{
1350
- label: z.ZodString;
1351
- display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1352
- type: z.ZodLiteral<"text">;
1353
- modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
1354
- }, "strip", z.ZodTypeAny, {
1355
- type: "text";
1356
- modelFieldRef: string;
1357
- }, {
1358
- type: "text";
1359
- modelFieldRef: string;
1360
- }>, z.ZodObject<{
1361
- type: z.ZodLiteral<"foreign">;
1362
- localRelationRef: z.ZodEffects<z.ZodString, string, string>;
1363
- labelExpression: z.ZodString;
1364
- valueExpression: z.ZodString;
1365
- }, "strip", z.ZodTypeAny, {
1366
- type: "foreign";
1367
- localRelationRef: string;
1368
- labelExpression: string;
1369
- valueExpression: string;
1370
- }, {
1371
- type: "foreign";
1372
- localRelationRef: string;
1373
- labelExpression: string;
1374
- valueExpression: string;
1375
- }>]>;
1376
- }, "strip", z.ZodTypeAny, {
1377
- label: string;
1378
- display: {
1379
- type: "foreign";
1380
- localRelationRef: string;
1381
- labelExpression: string;
1382
- valueExpression: string;
1383
- } | {
1384
- type: "text";
1385
- modelFieldRef: string;
1386
- };
1387
- }, {
1520
+ } & {
1521
+ type: "crud";
1522
+ modelRef: string;
1523
+ form: {
1524
+ fields: {
1525
+ type: string;
1388
1526
  label: string;
1389
- display: {
1390
- type: "foreign";
1391
- localRelationRef: string;
1392
- labelExpression: string;
1393
- valueExpression: string;
1394
- } | {
1395
- type: "text";
1396
- modelFieldRef: string;
1397
- };
1398
- }>, "many">;
1399
- }, "strip", z.ZodTypeAny, {
1527
+ }[];
1528
+ };
1529
+ table: {
1400
1530
  columns: {
1401
1531
  label: string;
1402
1532
  display: {
@@ -1409,7 +1539,91 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
1409
1539
  modelFieldRef: string;
1410
1540
  };
1411
1541
  }[];
1412
- }, {
1542
+ };
1543
+ disableCreate?: boolean | undefined;
1544
+ embeddedForms?: ({
1545
+ type: "object";
1546
+ name: string;
1547
+ id: string;
1548
+ modelRef: string;
1549
+ form: {
1550
+ fields: {
1551
+ type: string;
1552
+ label: string;
1553
+ }[];
1554
+ };
1555
+ includeIdField?: boolean | undefined;
1556
+ } | {
1557
+ type: "list";
1558
+ name: string;
1559
+ id: string;
1560
+ modelRef: string;
1561
+ form: {
1562
+ fields: {
1563
+ type: string;
1564
+ label: string;
1565
+ }[];
1566
+ };
1567
+ table: {
1568
+ columns: {
1569
+ label: string;
1570
+ display: {
1571
+ type: "foreign";
1572
+ localRelationRef: string;
1573
+ labelExpression: string;
1574
+ valueExpression: string;
1575
+ } | {
1576
+ type: "text";
1577
+ modelFieldRef: string;
1578
+ };
1579
+ }[];
1580
+ };
1581
+ includeIdField?: boolean | undefined;
1582
+ })[] | undefined;
1583
+ })[] | undefined;
1584
+ } | undefined;
1585
+ }, {
1586
+ type: "backend";
1587
+ name: string;
1588
+ id?: string | undefined;
1589
+ packageLocation?: string | undefined;
1590
+ enableStripe?: boolean | undefined;
1591
+ enableRedis?: boolean | undefined;
1592
+ enableBullQueue?: boolean | undefined;
1593
+ enablePostmark?: boolean | undefined;
1594
+ enableSubscriptions?: boolean | undefined;
1595
+ enableAxios?: boolean | undefined;
1596
+ } | {
1597
+ type: "web";
1598
+ name: string;
1599
+ description?: string | undefined;
1600
+ id?: string | undefined;
1601
+ packageLocation?: string | undefined;
1602
+ enableSubscriptions?: boolean | undefined;
1603
+ allowedRoles?: string[] | undefined;
1604
+ includeAuth?: boolean | undefined;
1605
+ title?: string | undefined;
1606
+ includeUploadComponents?: boolean | undefined;
1607
+ adminApp?: {
1608
+ enabled: boolean;
1609
+ pathPrefix?: string | undefined;
1610
+ allowedRoles?: string[] | undefined;
1611
+ sections?: ({
1612
+ type: string;
1613
+ name: string;
1614
+ featureRef: string;
1615
+ icon?: string | undefined;
1616
+ id?: string | undefined;
1617
+ } & {
1618
+ type: "crud";
1619
+ modelRef: string;
1620
+ form: {
1621
+ fields: z.objectInputType<{
1622
+ type: z.ZodString;
1623
+ label: z.ZodString;
1624
+ }, z.ZodTypeAny, "passthrough">[];
1625
+ };
1626
+ table: {
1413
1627
  columns: {
1414
1628
  label: string;
1415
1629
  display: {
@@ -1422,99 +1636,120 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
1422
1636
  modelFieldRef: string;
1423
1637
  };
1424
1638
  }[];
1425
- }>;
1426
- form: z.ZodObject<{
1427
- fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
1428
- type: z.ZodString;
1429
- label: z.ZodString;
1430
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1431
- type: z.ZodString;
1432
- label: z.ZodString;
1433
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1434
- type: z.ZodString;
1435
- label: z.ZodString;
1436
- }, z.ZodTypeAny, "passthrough">>, {
1437
- type: string;
1438
- label: string;
1439
- }, z.objectInputType<{
1440
- type: z.ZodString;
1441
- label: z.ZodString;
1442
- }, z.ZodTypeAny, "passthrough">>, "many">;
1443
- }, "strip", z.ZodTypeAny, {
1444
- fields: {
1445
- type: string;
1446
- label: string;
1447
- }[];
1448
- }, {
1449
- fields: z.objectInputType<{
1450
- type: z.ZodString;
1451
- label: z.ZodString;
1452
- }, z.ZodTypeAny, "passthrough">[];
1453
- }>;
1454
- embeddedForms: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1455
- id: z.ZodString;
1456
- name: z.ZodString;
1457
- modelRef: z.ZodEffects<z.ZodString, string, string>;
1458
- includeIdField: z.ZodOptional<z.ZodBoolean>;
1459
- type: z.ZodLiteral<"object">;
1460
- form: z.ZodObject<{
1461
- fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
1462
- type: z.ZodString;
1463
- label: z.ZodString;
1464
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1465
- type: z.ZodString;
1466
- label: z.ZodString;
1467
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1468
- type: z.ZodString;
1469
- label: z.ZodString;
1470
- }, z.ZodTypeAny, "passthrough">>, {
1471
- type: string;
1472
- label: string;
1473
- }, z.objectInputType<{
1639
+ };
1640
+ disableCreate?: boolean | undefined;
1641
+ embeddedForms?: ({
1642
+ type: "object";
1643
+ name: string;
1644
+ id: string;
1645
+ modelRef: string;
1646
+ form: {
1647
+ fields: z.objectInputType<{
1474
1648
  type: z.ZodString;
1475
1649
  label: z.ZodString;
1476
- }, z.ZodTypeAny, "passthrough">>, "many">;
1477
- }, "strip", z.ZodTypeAny, {
1478
- fields: {
1479
- type: string;
1480
- label: string;
1481
- }[];
1482
- }, {
1650
+ }, z.ZodTypeAny, "passthrough">[];
1651
+ };
1652
+ includeIdField?: boolean | undefined;
1653
+ } | {
1654
+ type: "list";
1655
+ name: string;
1656
+ id: string;
1657
+ modelRef: string;
1658
+ form: {
1483
1659
  fields: z.objectInputType<{
1484
1660
  type: z.ZodString;
1485
1661
  label: z.ZodString;
1486
1662
  }, z.ZodTypeAny, "passthrough">[];
1487
- }>;
1663
+ };
1664
+ table: {
1665
+ columns: {
1666
+ label: string;
1667
+ display: {
1668
+ type: "foreign";
1669
+ localRelationRef: string;
1670
+ labelExpression: string;
1671
+ valueExpression: string;
1672
+ } | {
1673
+ type: "text";
1674
+ modelFieldRef: string;
1675
+ };
1676
+ }[];
1677
+ };
1678
+ includeIdField?: boolean | undefined;
1679
+ })[] | undefined;
1680
+ })[] | undefined;
1681
+ } | undefined;
1682
+ }>;
1683
+ export type AppConfig = def.InferOutput<typeof createAppSchema>;
1684
+ export declare const createProjectDefinitionSchema: (context: import("./creator/types.js").DefinitionSchemaParserContext) => z.ZodObject<{
1685
+ cliVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1686
+ apps: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1687
+ type: z.ZodLiteral<"backend">;
1688
+ enableStripe: z.ZodOptional<z.ZodBoolean>;
1689
+ enableRedis: z.ZodOptional<z.ZodBoolean>;
1690
+ enableBullQueue: z.ZodOptional<z.ZodBoolean>;
1691
+ enablePostmark: z.ZodOptional<z.ZodBoolean>;
1692
+ enableSubscriptions: z.ZodOptional<z.ZodBoolean>;
1693
+ enableAxios: z.ZodOptional<z.ZodBoolean>;
1694
+ id: z.ZodDefault<z.ZodString>;
1695
+ name: z.ZodString;
1696
+ packageLocation: z.ZodOptional<z.ZodString>;
1697
+ }, "strip", z.ZodTypeAny, {
1698
+ type: "backend";
1699
+ name: string;
1700
+ id: string;
1701
+ packageLocation?: string | undefined;
1702
+ enableStripe?: boolean | undefined;
1703
+ enableRedis?: boolean | undefined;
1704
+ enableBullQueue?: boolean | undefined;
1705
+ enablePostmark?: boolean | undefined;
1706
+ enableSubscriptions?: boolean | undefined;
1707
+ enableAxios?: boolean | undefined;
1708
+ }, {
1709
+ type: "backend";
1710
+ name: string;
1711
+ id?: string | undefined;
1712
+ packageLocation?: string | undefined;
1713
+ enableStripe?: boolean | undefined;
1714
+ enableRedis?: boolean | undefined;
1715
+ enableBullQueue?: boolean | undefined;
1716
+ enablePostmark?: boolean | undefined;
1717
+ enableSubscriptions?: boolean | undefined;
1718
+ enableAxios?: boolean | undefined;
1719
+ }>, z.ZodObject<{
1720
+ type: z.ZodLiteral<"web">;
1721
+ includeAuth: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
1722
+ title: z.ZodDefault<z.ZodString>;
1723
+ description: z.ZodDefault<z.ZodString>;
1724
+ allowedRoles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
1725
+ includeUploadComponents: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
1726
+ enableSubscriptions: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
1727
+ adminApp: z.ZodEffects<z.ZodOptional<z.ZodObject<{
1728
+ enabled: z.ZodBoolean;
1729
+ pathPrefix: z.ZodDefault<z.ZodString>;
1730
+ allowedRoles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
1731
+ sections: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodObject<{
1732
+ id: z.ZodDefault<z.ZodString>;
1733
+ name: z.ZodString;
1734
+ featureRef: z.ZodEffects<z.ZodString, string, string>;
1735
+ icon: z.ZodOptional<z.ZodString>;
1736
+ type: z.ZodString;
1488
1737
  }, "strip", z.ZodTypeAny, {
1489
- type: "object";
1738
+ type: string;
1490
1739
  name: string;
1491
1740
  id: string;
1492
- modelRef: string;
1493
- form: {
1494
- fields: {
1495
- type: string;
1496
- label: string;
1497
- }[];
1498
- };
1499
- includeIdField?: boolean | undefined;
1741
+ featureRef: string;
1742
+ icon?: string | undefined;
1500
1743
  }, {
1501
- type: "object";
1744
+ type: string;
1502
1745
  name: string;
1503
- id: string;
1504
- modelRef: string;
1505
- form: {
1506
- fields: z.objectInputType<{
1507
- type: z.ZodString;
1508
- label: z.ZodString;
1509
- }, z.ZodTypeAny, "passthrough">[];
1510
- };
1511
- includeIdField?: boolean | undefined;
1746
+ featureRef: string;
1747
+ icon?: string | undefined;
1748
+ id?: string | undefined;
1512
1749
  }>, z.ZodObject<{
1513
- id: z.ZodString;
1514
- name: z.ZodString;
1750
+ type: z.ZodLiteral<"crud">;
1515
1751
  modelRef: z.ZodEffects<z.ZodString, string, string>;
1516
- includeIdField: z.ZodOptional<z.ZodBoolean>;
1517
- type: z.ZodLiteral<"list">;
1752
+ disableCreate: z.ZodOptional<z.ZodBoolean>;
1518
1753
  table: z.ZodObject<{
1519
1754
  columns: z.ZodArray<z.ZodObject<{
1520
1755
  label: z.ZodString;
@@ -1621,74 +1856,307 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
1621
1856
  label: z.ZodString;
1622
1857
  }, z.ZodTypeAny, "passthrough">[];
1623
1858
  }>;
1859
+ embeddedForms: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1860
+ id: z.ZodString;
1861
+ name: z.ZodString;
1862
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
1863
+ includeIdField: z.ZodOptional<z.ZodBoolean>;
1864
+ type: z.ZodLiteral<"object">;
1865
+ form: z.ZodObject<{
1866
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
1867
+ type: z.ZodString;
1868
+ label: z.ZodString;
1869
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1870
+ type: z.ZodString;
1871
+ label: z.ZodString;
1872
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1873
+ type: z.ZodString;
1874
+ label: z.ZodString;
1875
+ }, z.ZodTypeAny, "passthrough">>, {
1876
+ type: string;
1877
+ label: string;
1878
+ }, z.objectInputType<{
1879
+ type: z.ZodString;
1880
+ label: z.ZodString;
1881
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1882
+ }, "strip", z.ZodTypeAny, {
1883
+ fields: {
1884
+ type: string;
1885
+ label: string;
1886
+ }[];
1887
+ }, {
1888
+ fields: z.objectInputType<{
1889
+ type: z.ZodString;
1890
+ label: z.ZodString;
1891
+ }, z.ZodTypeAny, "passthrough">[];
1892
+ }>;
1893
+ }, "strip", z.ZodTypeAny, {
1894
+ type: "object";
1895
+ name: string;
1896
+ id: string;
1897
+ modelRef: string;
1898
+ form: {
1899
+ fields: {
1900
+ type: string;
1901
+ label: string;
1902
+ }[];
1903
+ };
1904
+ includeIdField?: boolean | undefined;
1905
+ }, {
1906
+ type: "object";
1907
+ name: string;
1908
+ id: string;
1909
+ modelRef: string;
1910
+ form: {
1911
+ fields: z.objectInputType<{
1912
+ type: z.ZodString;
1913
+ label: z.ZodString;
1914
+ }, z.ZodTypeAny, "passthrough">[];
1915
+ };
1916
+ includeIdField?: boolean | undefined;
1917
+ }>, z.ZodObject<{
1918
+ id: z.ZodString;
1919
+ name: z.ZodString;
1920
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
1921
+ includeIdField: z.ZodOptional<z.ZodBoolean>;
1922
+ type: z.ZodLiteral<"list">;
1923
+ table: z.ZodObject<{
1924
+ columns: z.ZodArray<z.ZodObject<{
1925
+ label: z.ZodString;
1926
+ display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1927
+ type: z.ZodLiteral<"text">;
1928
+ modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
1929
+ }, "strip", z.ZodTypeAny, {
1930
+ type: "text";
1931
+ modelFieldRef: string;
1932
+ }, {
1933
+ type: "text";
1934
+ modelFieldRef: string;
1935
+ }>, z.ZodObject<{
1936
+ type: z.ZodLiteral<"foreign">;
1937
+ localRelationRef: z.ZodEffects<z.ZodString, string, string>;
1938
+ labelExpression: z.ZodString;
1939
+ valueExpression: z.ZodString;
1940
+ }, "strip", z.ZodTypeAny, {
1941
+ type: "foreign";
1942
+ localRelationRef: string;
1943
+ labelExpression: string;
1944
+ valueExpression: string;
1945
+ }, {
1946
+ type: "foreign";
1947
+ localRelationRef: string;
1948
+ labelExpression: string;
1949
+ valueExpression: string;
1950
+ }>]>;
1951
+ }, "strip", z.ZodTypeAny, {
1952
+ label: string;
1953
+ display: {
1954
+ type: "foreign";
1955
+ localRelationRef: string;
1956
+ labelExpression: string;
1957
+ valueExpression: string;
1958
+ } | {
1959
+ type: "text";
1960
+ modelFieldRef: string;
1961
+ };
1962
+ }, {
1963
+ label: string;
1964
+ display: {
1965
+ type: "foreign";
1966
+ localRelationRef: string;
1967
+ labelExpression: string;
1968
+ valueExpression: string;
1969
+ } | {
1970
+ type: "text";
1971
+ modelFieldRef: string;
1972
+ };
1973
+ }>, "many">;
1974
+ }, "strip", z.ZodTypeAny, {
1975
+ columns: {
1976
+ label: string;
1977
+ display: {
1978
+ type: "foreign";
1979
+ localRelationRef: string;
1980
+ labelExpression: string;
1981
+ valueExpression: string;
1982
+ } | {
1983
+ type: "text";
1984
+ modelFieldRef: string;
1985
+ };
1986
+ }[];
1987
+ }, {
1988
+ columns: {
1989
+ label: string;
1990
+ display: {
1991
+ type: "foreign";
1992
+ localRelationRef: string;
1993
+ labelExpression: string;
1994
+ valueExpression: string;
1995
+ } | {
1996
+ type: "text";
1997
+ modelFieldRef: string;
1998
+ };
1999
+ }[];
2000
+ }>;
2001
+ form: z.ZodObject<{
2002
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
2003
+ type: z.ZodString;
2004
+ label: z.ZodString;
2005
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2006
+ type: z.ZodString;
2007
+ label: z.ZodString;
2008
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2009
+ type: z.ZodString;
2010
+ label: z.ZodString;
2011
+ }, z.ZodTypeAny, "passthrough">>, {
2012
+ type: string;
2013
+ label: string;
2014
+ }, z.objectInputType<{
2015
+ type: z.ZodString;
2016
+ label: z.ZodString;
2017
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2018
+ }, "strip", z.ZodTypeAny, {
2019
+ fields: {
2020
+ type: string;
2021
+ label: string;
2022
+ }[];
2023
+ }, {
2024
+ fields: z.objectInputType<{
2025
+ type: z.ZodString;
2026
+ label: z.ZodString;
2027
+ }, z.ZodTypeAny, "passthrough">[];
2028
+ }>;
2029
+ }, "strip", z.ZodTypeAny, {
2030
+ type: "list";
2031
+ name: string;
2032
+ id: string;
2033
+ modelRef: string;
2034
+ form: {
2035
+ fields: {
2036
+ type: string;
2037
+ label: string;
2038
+ }[];
2039
+ };
2040
+ table: {
2041
+ columns: {
2042
+ label: string;
2043
+ display: {
2044
+ type: "foreign";
2045
+ localRelationRef: string;
2046
+ labelExpression: string;
2047
+ valueExpression: string;
2048
+ } | {
2049
+ type: "text";
2050
+ modelFieldRef: string;
2051
+ };
2052
+ }[];
2053
+ };
2054
+ includeIdField?: boolean | undefined;
2055
+ }, {
2056
+ type: "list";
2057
+ name: string;
2058
+ id: string;
2059
+ modelRef: string;
2060
+ form: {
2061
+ fields: z.objectInputType<{
2062
+ type: z.ZodString;
2063
+ label: z.ZodString;
2064
+ }, z.ZodTypeAny, "passthrough">[];
2065
+ };
2066
+ table: {
2067
+ columns: {
2068
+ label: string;
2069
+ display: {
2070
+ type: "foreign";
2071
+ localRelationRef: string;
2072
+ labelExpression: string;
2073
+ valueExpression: string;
2074
+ } | {
2075
+ type: "text";
2076
+ modelFieldRef: string;
2077
+ };
2078
+ }[];
2079
+ };
2080
+ includeIdField?: boolean | undefined;
2081
+ }>]>, {
2082
+ type: "object";
2083
+ name: string;
2084
+ id: string;
2085
+ modelRef: string;
2086
+ form: {
2087
+ fields: {
2088
+ type: string;
2089
+ label: string;
2090
+ }[];
2091
+ };
2092
+ includeIdField?: boolean | undefined;
2093
+ } | {
2094
+ type: "list";
2095
+ name: string;
2096
+ id: string;
2097
+ modelRef: string;
2098
+ form: {
2099
+ fields: {
2100
+ type: string;
2101
+ label: string;
2102
+ }[];
2103
+ };
2104
+ table: {
2105
+ columns: {
2106
+ label: string;
2107
+ display: {
2108
+ type: "foreign";
2109
+ localRelationRef: string;
2110
+ labelExpression: string;
2111
+ valueExpression: string;
2112
+ } | {
2113
+ type: "text";
2114
+ modelFieldRef: string;
2115
+ };
2116
+ }[];
2117
+ };
2118
+ includeIdField?: boolean | undefined;
2119
+ }, {
2120
+ type: "object";
2121
+ name: string;
2122
+ id: string;
2123
+ modelRef: string;
2124
+ form: {
2125
+ fields: z.objectInputType<{
2126
+ type: z.ZodString;
2127
+ label: z.ZodString;
2128
+ }, z.ZodTypeAny, "passthrough">[];
2129
+ };
2130
+ includeIdField?: boolean | undefined;
2131
+ } | {
2132
+ type: "list";
2133
+ name: string;
2134
+ id: string;
2135
+ modelRef: string;
2136
+ form: {
2137
+ fields: z.objectInputType<{
2138
+ type: z.ZodString;
2139
+ label: z.ZodString;
2140
+ }, z.ZodTypeAny, "passthrough">[];
2141
+ };
2142
+ table: {
2143
+ columns: {
2144
+ label: string;
2145
+ display: {
2146
+ type: "foreign";
2147
+ localRelationRef: string;
2148
+ labelExpression: string;
2149
+ valueExpression: string;
2150
+ } | {
2151
+ type: "text";
2152
+ modelFieldRef: string;
2153
+ };
2154
+ }[];
2155
+ };
2156
+ includeIdField?: boolean | undefined;
2157
+ }>, "many">>;
1624
2158
  }, "strip", z.ZodTypeAny, {
1625
- type: "list";
1626
- name: string;
1627
- id: string;
1628
- modelRef: string;
1629
- form: {
1630
- fields: {
1631
- type: string;
1632
- label: string;
1633
- }[];
1634
- };
1635
- table: {
1636
- columns: {
1637
- label: string;
1638
- display: {
1639
- type: "foreign";
1640
- localRelationRef: string;
1641
- labelExpression: string;
1642
- valueExpression: string;
1643
- } | {
1644
- type: "text";
1645
- modelFieldRef: string;
1646
- };
1647
- }[];
1648
- };
1649
- includeIdField?: boolean | undefined;
1650
- }, {
1651
- type: "list";
1652
- name: string;
1653
- id: string;
1654
- modelRef: string;
1655
- form: {
1656
- fields: z.objectInputType<{
1657
- type: z.ZodString;
1658
- label: z.ZodString;
1659
- }, z.ZodTypeAny, "passthrough">[];
1660
- };
1661
- table: {
1662
- columns: {
1663
- label: string;
1664
- display: {
1665
- type: "foreign";
1666
- localRelationRef: string;
1667
- labelExpression: string;
1668
- valueExpression: string;
1669
- } | {
1670
- type: "text";
1671
- modelFieldRef: string;
1672
- };
1673
- }[];
1674
- };
1675
- includeIdField?: boolean | undefined;
1676
- }>]>, {
1677
- type: "object";
1678
- name: string;
1679
- id: string;
1680
- modelRef: string;
1681
- form: {
1682
- fields: {
1683
- type: string;
1684
- label: string;
1685
- }[];
1686
- };
1687
- includeIdField?: boolean | undefined;
1688
- } | {
1689
- type: "list";
1690
- name: string;
1691
- id: string;
2159
+ type: "crud";
1692
2160
  modelRef: string;
1693
2161
  form: {
1694
2162
  fields: {
@@ -1710,23 +2178,48 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
1710
2178
  };
1711
2179
  }[];
1712
2180
  };
1713
- includeIdField?: boolean | undefined;
2181
+ disableCreate?: boolean | undefined;
2182
+ embeddedForms?: ({
2183
+ type: "object";
2184
+ name: string;
2185
+ id: string;
2186
+ modelRef: string;
2187
+ form: {
2188
+ fields: {
2189
+ type: string;
2190
+ label: string;
2191
+ }[];
2192
+ };
2193
+ includeIdField?: boolean | undefined;
2194
+ } | {
2195
+ type: "list";
2196
+ name: string;
2197
+ id: string;
2198
+ modelRef: string;
2199
+ form: {
2200
+ fields: {
2201
+ type: string;
2202
+ label: string;
2203
+ }[];
2204
+ };
2205
+ table: {
2206
+ columns: {
2207
+ label: string;
2208
+ display: {
2209
+ type: "foreign";
2210
+ localRelationRef: string;
2211
+ labelExpression: string;
2212
+ valueExpression: string;
2213
+ } | {
2214
+ type: "text";
2215
+ modelFieldRef: string;
2216
+ };
2217
+ }[];
2218
+ };
2219
+ includeIdField?: boolean | undefined;
2220
+ })[] | undefined;
1714
2221
  }, {
1715
- type: "object";
1716
- name: string;
1717
- id: string;
1718
- modelRef: string;
1719
- form: {
1720
- fields: z.objectInputType<{
1721
- type: z.ZodString;
1722
- label: z.ZodString;
1723
- }, z.ZodTypeAny, "passthrough">[];
1724
- };
1725
- includeIdField?: boolean | undefined;
1726
- } | {
1727
- type: "list";
1728
- name: string;
1729
- id: string;
2222
+ type: "crud";
1730
2223
  modelRef: string;
1731
2224
  form: {
1732
2225
  fields: z.objectInputType<{
@@ -1748,48 +2241,54 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
1748
2241
  };
1749
2242
  }[];
1750
2243
  };
1751
- includeIdField?: boolean | undefined;
1752
- }>, "many">>;
1753
- }, "strip", z.ZodTypeAny, {
1754
- type: "crud";
1755
- modelRef: string;
1756
- form: {
1757
- fields: {
1758
- type: string;
1759
- label: string;
1760
- }[];
1761
- };
1762
- table: {
1763
- columns: {
1764
- label: string;
1765
- display: {
1766
- type: "foreign";
1767
- localRelationRef: string;
1768
- labelExpression: string;
1769
- valueExpression: string;
1770
- } | {
1771
- type: "text";
1772
- modelFieldRef: string;
2244
+ disableCreate?: boolean | undefined;
2245
+ embeddedForms?: ({
2246
+ type: "object";
2247
+ name: string;
2248
+ id: string;
2249
+ modelRef: string;
2250
+ form: {
2251
+ fields: z.objectInputType<{
2252
+ type: z.ZodString;
2253
+ label: z.ZodString;
2254
+ }, z.ZodTypeAny, "passthrough">[];
1773
2255
  };
1774
- }[];
1775
- };
1776
- disableCreate?: boolean | undefined;
1777
- embeddedForms?: ({
1778
- type: "object";
1779
- name: string;
1780
- id: string;
1781
- modelRef: string;
1782
- form: {
1783
- fields: {
1784
- type: string;
1785
- label: string;
1786
- }[];
1787
- };
1788
- includeIdField?: boolean | undefined;
1789
- } | {
1790
- type: "list";
2256
+ includeIdField?: boolean | undefined;
2257
+ } | {
2258
+ type: "list";
2259
+ name: string;
2260
+ id: string;
2261
+ modelRef: string;
2262
+ form: {
2263
+ fields: z.objectInputType<{
2264
+ type: z.ZodString;
2265
+ label: z.ZodString;
2266
+ }, z.ZodTypeAny, "passthrough">[];
2267
+ };
2268
+ table: {
2269
+ columns: {
2270
+ label: string;
2271
+ display: {
2272
+ type: "foreign";
2273
+ localRelationRef: string;
2274
+ labelExpression: string;
2275
+ valueExpression: string;
2276
+ } | {
2277
+ type: "text";
2278
+ modelFieldRef: string;
2279
+ };
2280
+ }[];
2281
+ };
2282
+ includeIdField?: boolean | undefined;
2283
+ })[] | undefined;
2284
+ }>>, {
2285
+ type: string;
1791
2286
  name: string;
1792
2287
  id: string;
2288
+ featureRef: string;
2289
+ icon?: string | undefined;
2290
+ } & {
2291
+ type: "crud";
1793
2292
  modelRef: string;
1794
2293
  form: {
1795
2294
  fields: {
@@ -1811,48 +2310,54 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
1811
2310
  };
1812
2311
  }[];
1813
2312
  };
1814
- includeIdField?: boolean | undefined;
1815
- })[] | undefined;
1816
- }, {
1817
- type: "crud";
1818
- modelRef: string;
1819
- form: {
1820
- fields: z.objectInputType<{
1821
- type: z.ZodString;
1822
- label: z.ZodString;
1823
- }, z.ZodTypeAny, "passthrough">[];
1824
- };
1825
- table: {
1826
- columns: {
1827
- label: string;
1828
- display: {
1829
- type: "foreign";
1830
- localRelationRef: string;
1831
- labelExpression: string;
1832
- valueExpression: string;
1833
- } | {
1834
- type: "text";
1835
- modelFieldRef: string;
2313
+ disableCreate?: boolean | undefined;
2314
+ embeddedForms?: ({
2315
+ type: "object";
2316
+ name: string;
2317
+ id: string;
2318
+ modelRef: string;
2319
+ form: {
2320
+ fields: {
2321
+ type: string;
2322
+ label: string;
2323
+ }[];
1836
2324
  };
1837
- }[];
1838
- };
1839
- disableCreate?: boolean | undefined;
1840
- embeddedForms?: ({
1841
- type: "object";
1842
- name: string;
1843
- id: string;
1844
- modelRef: string;
1845
- form: {
1846
- fields: z.objectInputType<{
1847
- type: z.ZodString;
1848
- label: z.ZodString;
1849
- }, z.ZodTypeAny, "passthrough">[];
1850
- };
1851
- includeIdField?: boolean | undefined;
1852
- } | {
1853
- type: "list";
2325
+ includeIdField?: boolean | undefined;
2326
+ } | {
2327
+ type: "list";
2328
+ name: string;
2329
+ id: string;
2330
+ modelRef: string;
2331
+ form: {
2332
+ fields: {
2333
+ type: string;
2334
+ label: string;
2335
+ }[];
2336
+ };
2337
+ table: {
2338
+ columns: {
2339
+ label: string;
2340
+ display: {
2341
+ type: "foreign";
2342
+ localRelationRef: string;
2343
+ labelExpression: string;
2344
+ valueExpression: string;
2345
+ } | {
2346
+ type: "text";
2347
+ modelFieldRef: string;
2348
+ };
2349
+ }[];
2350
+ };
2351
+ includeIdField?: boolean | undefined;
2352
+ })[] | undefined;
2353
+ }, {
2354
+ type: string;
1854
2355
  name: string;
1855
- id: string;
2356
+ featureRef: string;
2357
+ icon?: string | undefined;
2358
+ id?: string | undefined;
2359
+ } & {
2360
+ type: "crud";
1856
2361
  modelRef: string;
1857
2362
  form: {
1858
2363
  fields: z.objectInputType<{
@@ -1874,54 +2379,54 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
1874
2379
  };
1875
2380
  }[];
1876
2381
  };
1877
- includeIdField?: boolean | undefined;
1878
- })[] | undefined;
1879
- }>>, {
1880
- type: string;
1881
- name: string;
1882
- id: string;
1883
- featureRef: string;
1884
- icon?: string | undefined;
1885
- } & {
1886
- type: "crud";
1887
- modelRef: string;
1888
- form: {
1889
- fields: {
1890
- type: string;
1891
- label: string;
1892
- }[];
1893
- };
1894
- table: {
1895
- columns: {
1896
- label: string;
1897
- display: {
1898
- type: "foreign";
1899
- localRelationRef: string;
1900
- labelExpression: string;
1901
- valueExpression: string;
1902
- } | {
1903
- type: "text";
1904
- modelFieldRef: string;
2382
+ disableCreate?: boolean | undefined;
2383
+ embeddedForms?: ({
2384
+ type: "object";
2385
+ name: string;
2386
+ id: string;
2387
+ modelRef: string;
2388
+ form: {
2389
+ fields: z.objectInputType<{
2390
+ type: z.ZodString;
2391
+ label: z.ZodString;
2392
+ }, z.ZodTypeAny, "passthrough">[];
1905
2393
  };
1906
- }[];
1907
- };
1908
- disableCreate?: boolean | undefined;
1909
- embeddedForms?: ({
1910
- type: "object";
1911
- name: string;
1912
- id: string;
1913
- modelRef: string;
1914
- form: {
1915
- fields: {
1916
- type: string;
1917
- label: string;
1918
- }[];
1919
- };
1920
- includeIdField?: boolean | undefined;
1921
- } | {
1922
- type: "list";
2394
+ includeIdField?: boolean | undefined;
2395
+ } | {
2396
+ type: "list";
2397
+ name: string;
2398
+ id: string;
2399
+ modelRef: string;
2400
+ form: {
2401
+ fields: z.objectInputType<{
2402
+ type: z.ZodString;
2403
+ label: z.ZodString;
2404
+ }, z.ZodTypeAny, "passthrough">[];
2405
+ };
2406
+ table: {
2407
+ columns: {
2408
+ label: string;
2409
+ display: {
2410
+ type: "foreign";
2411
+ localRelationRef: string;
2412
+ labelExpression: string;
2413
+ valueExpression: string;
2414
+ } | {
2415
+ type: "text";
2416
+ modelFieldRef: string;
2417
+ };
2418
+ }[];
2419
+ };
2420
+ includeIdField?: boolean | undefined;
2421
+ })[] | undefined;
2422
+ }>, {
2423
+ type: string;
1923
2424
  name: string;
1924
2425
  id: string;
2426
+ featureRef: string;
2427
+ icon?: string | undefined;
2428
+ } & {
2429
+ type: "crud";
1925
2430
  modelRef: string;
1926
2431
  form: {
1927
2432
  fields: {
@@ -1943,54 +2448,54 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
1943
2448
  };
1944
2449
  }[];
1945
2450
  };
1946
- includeIdField?: boolean | undefined;
1947
- })[] | undefined;
1948
- }, {
1949
- type: string;
1950
- name: string;
1951
- featureRef: string;
1952
- icon?: string | undefined;
1953
- id?: string | undefined;
1954
- } & {
1955
- type: "crud";
1956
- modelRef: string;
1957
- form: {
1958
- fields: z.objectInputType<{
1959
- type: z.ZodString;
1960
- label: z.ZodString;
1961
- }, z.ZodTypeAny, "passthrough">[];
1962
- };
1963
- table: {
1964
- columns: {
1965
- label: string;
1966
- display: {
1967
- type: "foreign";
1968
- localRelationRef: string;
1969
- labelExpression: string;
1970
- valueExpression: string;
1971
- } | {
1972
- type: "text";
1973
- modelFieldRef: string;
2451
+ disableCreate?: boolean | undefined;
2452
+ embeddedForms?: ({
2453
+ type: "object";
2454
+ name: string;
2455
+ id: string;
2456
+ modelRef: string;
2457
+ form: {
2458
+ fields: {
2459
+ type: string;
2460
+ label: string;
2461
+ }[];
1974
2462
  };
1975
- }[];
1976
- };
1977
- disableCreate?: boolean | undefined;
1978
- embeddedForms?: ({
1979
- type: "object";
1980
- name: string;
1981
- id: string;
1982
- modelRef: string;
1983
- form: {
1984
- fields: z.objectInputType<{
1985
- type: z.ZodString;
1986
- label: z.ZodString;
1987
- }, z.ZodTypeAny, "passthrough">[];
1988
- };
1989
- includeIdField?: boolean | undefined;
1990
- } | {
1991
- type: "list";
2463
+ includeIdField?: boolean | undefined;
2464
+ } | {
2465
+ type: "list";
2466
+ name: string;
2467
+ id: string;
2468
+ modelRef: string;
2469
+ form: {
2470
+ fields: {
2471
+ type: string;
2472
+ label: string;
2473
+ }[];
2474
+ };
2475
+ table: {
2476
+ columns: {
2477
+ label: string;
2478
+ display: {
2479
+ type: "foreign";
2480
+ localRelationRef: string;
2481
+ labelExpression: string;
2482
+ valueExpression: string;
2483
+ } | {
2484
+ type: "text";
2485
+ modelFieldRef: string;
2486
+ };
2487
+ }[];
2488
+ };
2489
+ includeIdField?: boolean | undefined;
2490
+ })[] | undefined;
2491
+ }, {
2492
+ type: string;
1992
2493
  name: string;
1993
- id: string;
2494
+ featureRef: string;
2495
+ icon?: string | undefined;
2496
+ id?: string | undefined;
2497
+ } & {
2498
+ type: "crud";
1994
2499
  modelRef: string;
1995
2500
  form: {
1996
2501
  fields: z.objectInputType<{
@@ -2012,54 +2517,54 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
2012
2517
  };
2013
2518
  }[];
2014
2519
  };
2015
- includeIdField?: boolean | undefined;
2016
- })[] | undefined;
2017
- }>, {
2018
- type: string;
2019
- name: string;
2020
- id: string;
2021
- featureRef: string;
2022
- icon?: string | undefined;
2023
- } & {
2024
- type: "crud";
2025
- modelRef: string;
2026
- form: {
2027
- fields: {
2028
- type: string;
2029
- label: string;
2030
- }[];
2031
- };
2032
- table: {
2033
- columns: {
2034
- label: string;
2035
- display: {
2036
- type: "foreign";
2037
- localRelationRef: string;
2038
- labelExpression: string;
2039
- valueExpression: string;
2040
- } | {
2041
- type: "text";
2042
- modelFieldRef: string;
2520
+ disableCreate?: boolean | undefined;
2521
+ embeddedForms?: ({
2522
+ type: "object";
2523
+ name: string;
2524
+ id: string;
2525
+ modelRef: string;
2526
+ form: {
2527
+ fields: z.objectInputType<{
2528
+ type: z.ZodString;
2529
+ label: z.ZodString;
2530
+ }, z.ZodTypeAny, "passthrough">[];
2043
2531
  };
2044
- }[];
2045
- };
2046
- disableCreate?: boolean | undefined;
2047
- embeddedForms?: ({
2048
- type: "object";
2049
- name: string;
2050
- id: string;
2051
- modelRef: string;
2052
- form: {
2053
- fields: {
2054
- type: string;
2055
- label: string;
2056
- }[];
2057
- };
2058
- includeIdField?: boolean | undefined;
2059
- } | {
2060
- type: "list";
2532
+ includeIdField?: boolean | undefined;
2533
+ } | {
2534
+ type: "list";
2535
+ name: string;
2536
+ id: string;
2537
+ modelRef: string;
2538
+ form: {
2539
+ fields: z.objectInputType<{
2540
+ type: z.ZodString;
2541
+ label: z.ZodString;
2542
+ }, z.ZodTypeAny, "passthrough">[];
2543
+ };
2544
+ table: {
2545
+ columns: {
2546
+ label: string;
2547
+ display: {
2548
+ type: "foreign";
2549
+ localRelationRef: string;
2550
+ labelExpression: string;
2551
+ valueExpression: string;
2552
+ } | {
2553
+ type: "text";
2554
+ modelFieldRef: string;
2555
+ };
2556
+ }[];
2557
+ };
2558
+ includeIdField?: boolean | undefined;
2559
+ })[] | undefined;
2560
+ }>, "many">>, ({
2561
+ type: string;
2061
2562
  name: string;
2062
2563
  id: string;
2564
+ featureRef: string;
2565
+ icon?: string | undefined;
2566
+ } & {
2567
+ type: "crud";
2063
2568
  modelRef: string;
2064
2569
  form: {
2065
2570
  fields: {
@@ -2081,54 +2586,54 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
2081
2586
  };
2082
2587
  }[];
2083
2588
  };
2084
- includeIdField?: boolean | undefined;
2085
- })[] | undefined;
2086
- }, {
2087
- type: string;
2088
- name: string;
2089
- featureRef: string;
2090
- icon?: string | undefined;
2091
- id?: string | undefined;
2092
- } & {
2093
- type: "crud";
2094
- modelRef: string;
2095
- form: {
2096
- fields: z.objectInputType<{
2097
- type: z.ZodString;
2098
- label: z.ZodString;
2099
- }, z.ZodTypeAny, "passthrough">[];
2100
- };
2101
- table: {
2102
- columns: {
2103
- label: string;
2104
- display: {
2105
- type: "foreign";
2106
- localRelationRef: string;
2107
- labelExpression: string;
2108
- valueExpression: string;
2109
- } | {
2110
- type: "text";
2111
- modelFieldRef: string;
2589
+ disableCreate?: boolean | undefined;
2590
+ embeddedForms?: ({
2591
+ type: "object";
2592
+ name: string;
2593
+ id: string;
2594
+ modelRef: string;
2595
+ form: {
2596
+ fields: {
2597
+ type: string;
2598
+ label: string;
2599
+ }[];
2112
2600
  };
2113
- }[];
2114
- };
2115
- disableCreate?: boolean | undefined;
2116
- embeddedForms?: ({
2117
- type: "object";
2118
- name: string;
2119
- id: string;
2120
- modelRef: string;
2121
- form: {
2122
- fields: z.objectInputType<{
2123
- type: z.ZodString;
2124
- label: z.ZodString;
2125
- }, z.ZodTypeAny, "passthrough">[];
2126
- };
2127
- includeIdField?: boolean | undefined;
2128
- } | {
2129
- type: "list";
2601
+ includeIdField?: boolean | undefined;
2602
+ } | {
2603
+ type: "list";
2604
+ name: string;
2605
+ id: string;
2606
+ modelRef: string;
2607
+ form: {
2608
+ fields: {
2609
+ type: string;
2610
+ label: string;
2611
+ }[];
2612
+ };
2613
+ table: {
2614
+ columns: {
2615
+ label: string;
2616
+ display: {
2617
+ type: "foreign";
2618
+ localRelationRef: string;
2619
+ labelExpression: string;
2620
+ valueExpression: string;
2621
+ } | {
2622
+ type: "text";
2623
+ modelFieldRef: string;
2624
+ };
2625
+ }[];
2626
+ };
2627
+ includeIdField?: boolean | undefined;
2628
+ })[] | undefined;
2629
+ })[] | undefined, ({
2630
+ type: string;
2130
2631
  name: string;
2131
- id: string;
2632
+ featureRef: string;
2633
+ icon?: string | undefined;
2634
+ id?: string | undefined;
2635
+ } & {
2636
+ type: "crud";
2132
2637
  modelRef: string;
2133
2638
  form: {
2134
2639
  fields: z.objectInputType<{
@@ -2150,64 +2655,59 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
2150
2655
  };
2151
2656
  }[];
2152
2657
  };
2153
- includeIdField?: boolean | undefined;
2154
- })[] | undefined;
2155
- }>, "many">>;
2156
- id: z.ZodDefault<z.ZodString>;
2157
- name: z.ZodString;
2158
- packageLocation: z.ZodOptional<z.ZodString>;
2159
- }, "strip", z.ZodTypeAny, {
2160
- type: "admin";
2161
- name: string;
2162
- id: string;
2163
- packageLocation?: string | undefined;
2164
- allowedRoles?: string[] | undefined;
2165
- sections?: ({
2166
- type: string;
2167
- name: string;
2168
- id: string;
2169
- featureRef: string;
2170
- icon?: string | undefined;
2171
- } & {
2172
- type: "crud";
2173
- modelRef: string;
2174
- form: {
2175
- fields: {
2176
- type: string;
2177
- label: string;
2178
- }[];
2179
- };
2180
- table: {
2181
- columns: {
2182
- label: string;
2183
- display: {
2184
- type: "foreign";
2185
- localRelationRef: string;
2186
- labelExpression: string;
2187
- valueExpression: string;
2188
- } | {
2189
- type: "text";
2190
- modelFieldRef: string;
2191
- };
2192
- }[];
2193
- };
2194
- disableCreate?: boolean | undefined;
2195
- embeddedForms?: ({
2196
- type: "object";
2197
- name: string;
2198
- id: string;
2199
- modelRef: string;
2200
- form: {
2201
- fields: {
2202
- type: string;
2203
- label: string;
2204
- }[];
2205
- };
2206
- includeIdField?: boolean | undefined;
2207
- } | {
2208
- type: "list";
2658
+ disableCreate?: boolean | undefined;
2659
+ embeddedForms?: ({
2660
+ type: "object";
2661
+ name: string;
2662
+ id: string;
2663
+ modelRef: string;
2664
+ form: {
2665
+ fields: z.objectInputType<{
2666
+ type: z.ZodString;
2667
+ label: z.ZodString;
2668
+ }, z.ZodTypeAny, "passthrough">[];
2669
+ };
2670
+ includeIdField?: boolean | undefined;
2671
+ } | {
2672
+ type: "list";
2673
+ name: string;
2674
+ id: string;
2675
+ modelRef: string;
2676
+ form: {
2677
+ fields: z.objectInputType<{
2678
+ type: z.ZodString;
2679
+ label: z.ZodString;
2680
+ }, z.ZodTypeAny, "passthrough">[];
2681
+ };
2682
+ table: {
2683
+ columns: {
2684
+ label: string;
2685
+ display: {
2686
+ type: "foreign";
2687
+ localRelationRef: string;
2688
+ labelExpression: string;
2689
+ valueExpression: string;
2690
+ } | {
2691
+ type: "text";
2692
+ modelFieldRef: string;
2693
+ };
2694
+ }[];
2695
+ };
2696
+ includeIdField?: boolean | undefined;
2697
+ })[] | undefined;
2698
+ })[] | undefined>;
2699
+ }, "strip", z.ZodTypeAny, {
2700
+ enabled: boolean;
2701
+ pathPrefix: string;
2702
+ allowedRoles?: string[] | undefined;
2703
+ sections?: ({
2704
+ type: string;
2209
2705
  name: string;
2210
2706
  id: string;
2707
+ featureRef: string;
2708
+ icon?: string | undefined;
2709
+ } & {
2710
+ type: "crud";
2211
2711
  modelRef: string;
2212
2712
  form: {
2213
2713
  fields: {
@@ -2229,49 +2729,59 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
2229
2729
  };
2230
2730
  }[];
2231
2731
  };
2232
- includeIdField?: boolean | undefined;
2233
- })[] | undefined;
2234
- })[] | undefined;
2235
- }, {
2236
- type: "admin";
2237
- name: string;
2238
- id?: string | undefined;
2239
- packageLocation?: string | undefined;
2240
- allowedRoles?: string[] | undefined;
2241
- sections?: ({
2242
- type: string;
2243
- name: string;
2244
- featureRef: string;
2245
- icon?: string | undefined;
2246
- id?: string | undefined;
2247
- } & {
2248
- type: "crud";
2249
- modelRef: string;
2250
- form: {
2251
- fields: z.objectInputType<{
2252
- type: z.ZodString;
2253
- label: z.ZodString;
2254
- }, z.ZodTypeAny, "passthrough">[];
2255
- };
2256
- table: {
2257
- columns: {
2258
- label: string;
2259
- display: {
2260
- type: "foreign";
2261
- localRelationRef: string;
2262
- labelExpression: string;
2263
- valueExpression: string;
2264
- } | {
2265
- type: "text";
2266
- modelFieldRef: string;
2732
+ disableCreate?: boolean | undefined;
2733
+ embeddedForms?: ({
2734
+ type: "object";
2735
+ name: string;
2736
+ id: string;
2737
+ modelRef: string;
2738
+ form: {
2739
+ fields: {
2740
+ type: string;
2741
+ label: string;
2742
+ }[];
2267
2743
  };
2268
- }[];
2269
- };
2270
- disableCreate?: boolean | undefined;
2271
- embeddedForms?: ({
2272
- type: "object";
2744
+ includeIdField?: boolean | undefined;
2745
+ } | {
2746
+ type: "list";
2747
+ name: string;
2748
+ id: string;
2749
+ modelRef: string;
2750
+ form: {
2751
+ fields: {
2752
+ type: string;
2753
+ label: string;
2754
+ }[];
2755
+ };
2756
+ table: {
2757
+ columns: {
2758
+ label: string;
2759
+ display: {
2760
+ type: "foreign";
2761
+ localRelationRef: string;
2762
+ labelExpression: string;
2763
+ valueExpression: string;
2764
+ } | {
2765
+ type: "text";
2766
+ modelFieldRef: string;
2767
+ };
2768
+ }[];
2769
+ };
2770
+ includeIdField?: boolean | undefined;
2771
+ })[] | undefined;
2772
+ })[] | undefined;
2773
+ }, {
2774
+ enabled: boolean;
2775
+ pathPrefix?: string | undefined;
2776
+ allowedRoles?: string[] | undefined;
2777
+ sections?: ({
2778
+ type: string;
2273
2779
  name: string;
2274
- id: string;
2780
+ featureRef: string;
2781
+ icon?: string | undefined;
2782
+ id?: string | undefined;
2783
+ } & {
2784
+ type: "crud";
2275
2785
  modelRef: string;
2276
2786
  form: {
2277
2787
  fields: z.objectInputType<{
@@ -2279,11 +2789,147 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
2279
2789
  label: z.ZodString;
2280
2790
  }, z.ZodTypeAny, "passthrough">[];
2281
2791
  };
2282
- includeIdField?: boolean | undefined;
2283
- } | {
2284
- type: "list";
2792
+ table: {
2793
+ columns: {
2794
+ label: string;
2795
+ display: {
2796
+ type: "foreign";
2797
+ localRelationRef: string;
2798
+ labelExpression: string;
2799
+ valueExpression: string;
2800
+ } | {
2801
+ type: "text";
2802
+ modelFieldRef: string;
2803
+ };
2804
+ }[];
2805
+ };
2806
+ disableCreate?: boolean | undefined;
2807
+ embeddedForms?: ({
2808
+ type: "object";
2809
+ name: string;
2810
+ id: string;
2811
+ modelRef: string;
2812
+ form: {
2813
+ fields: z.objectInputType<{
2814
+ type: z.ZodString;
2815
+ label: z.ZodString;
2816
+ }, z.ZodTypeAny, "passthrough">[];
2817
+ };
2818
+ includeIdField?: boolean | undefined;
2819
+ } | {
2820
+ type: "list";
2821
+ name: string;
2822
+ id: string;
2823
+ modelRef: string;
2824
+ form: {
2825
+ fields: z.objectInputType<{
2826
+ type: z.ZodString;
2827
+ label: z.ZodString;
2828
+ }, z.ZodTypeAny, "passthrough">[];
2829
+ };
2830
+ table: {
2831
+ columns: {
2832
+ label: string;
2833
+ display: {
2834
+ type: "foreign";
2835
+ localRelationRef: string;
2836
+ labelExpression: string;
2837
+ valueExpression: string;
2838
+ } | {
2839
+ type: "text";
2840
+ modelFieldRef: string;
2841
+ };
2842
+ }[];
2843
+ };
2844
+ includeIdField?: boolean | undefined;
2845
+ })[] | undefined;
2846
+ })[] | undefined;
2847
+ }>>, {
2848
+ enabled: boolean;
2849
+ pathPrefix: string;
2850
+ allowedRoles?: string[] | undefined;
2851
+ sections?: ({
2852
+ type: string;
2285
2853
  name: string;
2286
2854
  id: string;
2855
+ featureRef: string;
2856
+ icon?: string | undefined;
2857
+ } & {
2858
+ type: "crud";
2859
+ modelRef: string;
2860
+ form: {
2861
+ fields: {
2862
+ type: string;
2863
+ label: string;
2864
+ }[];
2865
+ };
2866
+ table: {
2867
+ columns: {
2868
+ label: string;
2869
+ display: {
2870
+ type: "foreign";
2871
+ localRelationRef: string;
2872
+ labelExpression: string;
2873
+ valueExpression: string;
2874
+ } | {
2875
+ type: "text";
2876
+ modelFieldRef: string;
2877
+ };
2878
+ }[];
2879
+ };
2880
+ disableCreate?: boolean | undefined;
2881
+ embeddedForms?: ({
2882
+ type: "object";
2883
+ name: string;
2884
+ id: string;
2885
+ modelRef: string;
2886
+ form: {
2887
+ fields: {
2888
+ type: string;
2889
+ label: string;
2890
+ }[];
2891
+ };
2892
+ includeIdField?: boolean | undefined;
2893
+ } | {
2894
+ type: "list";
2895
+ name: string;
2896
+ id: string;
2897
+ modelRef: string;
2898
+ form: {
2899
+ fields: {
2900
+ type: string;
2901
+ label: string;
2902
+ }[];
2903
+ };
2904
+ table: {
2905
+ columns: {
2906
+ label: string;
2907
+ display: {
2908
+ type: "foreign";
2909
+ localRelationRef: string;
2910
+ labelExpression: string;
2911
+ valueExpression: string;
2912
+ } | {
2913
+ type: "text";
2914
+ modelFieldRef: string;
2915
+ };
2916
+ }[];
2917
+ };
2918
+ includeIdField?: boolean | undefined;
2919
+ })[] | undefined;
2920
+ })[] | undefined;
2921
+ } | undefined, {
2922
+ enabled: boolean;
2923
+ pathPrefix?: string | undefined;
2924
+ allowedRoles?: string[] | undefined;
2925
+ sections?: ({
2926
+ type: string;
2927
+ name: string;
2928
+ featureRef: string;
2929
+ icon?: string | undefined;
2930
+ id?: string | undefined;
2931
+ } & {
2932
+ type: "crud";
2287
2933
  modelRef: string;
2288
2934
  form: {
2289
2935
  fields: z.objectInputType<{
@@ -2305,61 +2951,74 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
2305
2951
  };
2306
2952
  }[];
2307
2953
  };
2308
- includeIdField?: boolean | undefined;
2954
+ disableCreate?: boolean | undefined;
2955
+ embeddedForms?: ({
2956
+ type: "object";
2957
+ name: string;
2958
+ id: string;
2959
+ modelRef: string;
2960
+ form: {
2961
+ fields: z.objectInputType<{
2962
+ type: z.ZodString;
2963
+ label: z.ZodString;
2964
+ }, z.ZodTypeAny, "passthrough">[];
2965
+ };
2966
+ includeIdField?: boolean | undefined;
2967
+ } | {
2968
+ type: "list";
2969
+ name: string;
2970
+ id: string;
2971
+ modelRef: string;
2972
+ form: {
2973
+ fields: z.objectInputType<{
2974
+ type: z.ZodString;
2975
+ label: z.ZodString;
2976
+ }, z.ZodTypeAny, "passthrough">[];
2977
+ };
2978
+ table: {
2979
+ columns: {
2980
+ label: string;
2981
+ display: {
2982
+ type: "foreign";
2983
+ localRelationRef: string;
2984
+ labelExpression: string;
2985
+ valueExpression: string;
2986
+ } | {
2987
+ type: "text";
2988
+ modelFieldRef: string;
2989
+ };
2990
+ }[];
2991
+ };
2992
+ includeIdField?: boolean | undefined;
2993
+ })[] | undefined;
2309
2994
  })[] | undefined;
2310
- })[] | undefined;
2311
- }>]>, {
2312
- type: "admin";
2995
+ } | undefined>;
2996
+ id: z.ZodDefault<z.ZodString>;
2997
+ name: z.ZodString;
2998
+ packageLocation: z.ZodOptional<z.ZodString>;
2999
+ }, "strip", z.ZodTypeAny, {
3000
+ type: "web";
2313
3001
  name: string;
3002
+ description: string;
2314
3003
  id: string;
3004
+ title: string;
2315
3005
  packageLocation?: string | undefined;
3006
+ enableSubscriptions?: boolean | undefined;
2316
3007
  allowedRoles?: string[] | undefined;
2317
- sections?: ({
2318
- type: string;
2319
- name: string;
2320
- id: string;
2321
- featureRef: string;
2322
- icon?: string | undefined;
2323
- } & {
2324
- type: "crud";
2325
- modelRef: string;
2326
- form: {
2327
- fields: {
2328
- type: string;
2329
- label: string;
2330
- }[];
2331
- };
2332
- table: {
2333
- columns: {
2334
- label: string;
2335
- display: {
2336
- type: "foreign";
2337
- localRelationRef: string;
2338
- labelExpression: string;
2339
- valueExpression: string;
2340
- } | {
2341
- type: "text";
2342
- modelFieldRef: string;
2343
- };
2344
- }[];
2345
- };
2346
- disableCreate?: boolean | undefined;
2347
- embeddedForms?: ({
2348
- type: "object";
2349
- name: string;
2350
- id: string;
2351
- modelRef: string;
2352
- form: {
2353
- fields: {
2354
- type: string;
2355
- label: string;
2356
- }[];
2357
- };
2358
- includeIdField?: boolean | undefined;
2359
- } | {
2360
- type: "list";
3008
+ includeAuth?: boolean | undefined;
3009
+ includeUploadComponents?: boolean | undefined;
3010
+ adminApp?: {
3011
+ enabled: boolean;
3012
+ pathPrefix: string;
3013
+ allowedRoles?: string[] | undefined;
3014
+ sections?: ({
3015
+ type: string;
2361
3016
  name: string;
2362
3017
  id: string;
3018
+ featureRef: string;
3019
+ icon?: string | undefined;
3020
+ } & {
3021
+ type: "crud";
2363
3022
  modelRef: string;
2364
3023
  form: {
2365
3024
  fields: {
@@ -2381,71 +3040,71 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
2381
3040
  };
2382
3041
  }[];
2383
3042
  };
2384
- includeIdField?: boolean | undefined;
3043
+ disableCreate?: boolean | undefined;
3044
+ embeddedForms?: ({
3045
+ type: "object";
3046
+ name: string;
3047
+ id: string;
3048
+ modelRef: string;
3049
+ form: {
3050
+ fields: {
3051
+ type: string;
3052
+ label: string;
3053
+ }[];
3054
+ };
3055
+ includeIdField?: boolean | undefined;
3056
+ } | {
3057
+ type: "list";
3058
+ name: string;
3059
+ id: string;
3060
+ modelRef: string;
3061
+ form: {
3062
+ fields: {
3063
+ type: string;
3064
+ label: string;
3065
+ }[];
3066
+ };
3067
+ table: {
3068
+ columns: {
3069
+ label: string;
3070
+ display: {
3071
+ type: "foreign";
3072
+ localRelationRef: string;
3073
+ labelExpression: string;
3074
+ valueExpression: string;
3075
+ } | {
3076
+ type: "text";
3077
+ modelFieldRef: string;
3078
+ };
3079
+ }[];
3080
+ };
3081
+ includeIdField?: boolean | undefined;
3082
+ })[] | undefined;
2385
3083
  })[] | undefined;
2386
- })[] | undefined;
2387
- } | {
2388
- type: "backend";
2389
- name: string;
2390
- id: string;
2391
- packageLocation?: string | undefined;
2392
- enableStripe?: boolean | undefined;
2393
- enableRedis?: boolean | undefined;
2394
- enableBullQueue?: boolean | undefined;
2395
- enablePostmark?: boolean | undefined;
2396
- enableSubscriptions?: boolean | undefined;
2397
- enableAxios?: boolean | undefined;
2398
- } | {
3084
+ } | undefined;
3085
+ }, {
2399
3086
  type: "web";
2400
3087
  name: string;
2401
- id: string;
2402
3088
  description?: string | undefined;
3089
+ id?: string | undefined;
2403
3090
  packageLocation?: string | undefined;
2404
- allowedRoles?: string[] | undefined;
2405
3091
  enableSubscriptions?: boolean | undefined;
3092
+ allowedRoles?: string[] | undefined;
2406
3093
  includeAuth?: boolean | undefined;
2407
3094
  title?: string | undefined;
2408
3095
  includeUploadComponents?: boolean | undefined;
2409
- }, {
2410
- type: "admin";
2411
- name: string;
2412
- id?: string | undefined;
2413
- packageLocation?: string | undefined;
2414
- allowedRoles?: string[] | undefined;
2415
- sections?: ({
2416
- type: string;
2417
- name: string;
2418
- featureRef: string;
2419
- icon?: string | undefined;
2420
- id?: string | undefined;
2421
- } & {
2422
- type: "crud";
2423
- modelRef: string;
2424
- form: {
2425
- fields: z.objectInputType<{
2426
- type: z.ZodString;
2427
- label: z.ZodString;
2428
- }, z.ZodTypeAny, "passthrough">[];
2429
- };
2430
- table: {
2431
- columns: {
2432
- label: string;
2433
- display: {
2434
- type: "foreign";
2435
- localRelationRef: string;
2436
- labelExpression: string;
2437
- valueExpression: string;
2438
- } | {
2439
- type: "text";
2440
- modelFieldRef: string;
2441
- };
2442
- }[];
2443
- };
2444
- disableCreate?: boolean | undefined;
2445
- embeddedForms?: ({
2446
- type: "object";
3096
+ adminApp?: {
3097
+ enabled: boolean;
3098
+ pathPrefix?: string | undefined;
3099
+ allowedRoles?: string[] | undefined;
3100
+ sections?: ({
3101
+ type: string;
2447
3102
  name: string;
2448
- id: string;
3103
+ featureRef: string;
3104
+ icon?: string | undefined;
3105
+ id?: string | undefined;
3106
+ } & {
3107
+ type: "crud";
2449
3108
  modelRef: string;
2450
3109
  form: {
2451
3110
  fields: z.objectInputType<{
@@ -2453,17 +3112,102 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
2453
3112
  label: z.ZodString;
2454
3113
  }, z.ZodTypeAny, "passthrough">[];
2455
3114
  };
2456
- includeIdField?: boolean | undefined;
2457
- } | {
2458
- type: "list";
3115
+ table: {
3116
+ columns: {
3117
+ label: string;
3118
+ display: {
3119
+ type: "foreign";
3120
+ localRelationRef: string;
3121
+ labelExpression: string;
3122
+ valueExpression: string;
3123
+ } | {
3124
+ type: "text";
3125
+ modelFieldRef: string;
3126
+ };
3127
+ }[];
3128
+ };
3129
+ disableCreate?: boolean | undefined;
3130
+ embeddedForms?: ({
3131
+ type: "object";
3132
+ name: string;
3133
+ id: string;
3134
+ modelRef: string;
3135
+ form: {
3136
+ fields: z.objectInputType<{
3137
+ type: z.ZodString;
3138
+ label: z.ZodString;
3139
+ }, z.ZodTypeAny, "passthrough">[];
3140
+ };
3141
+ includeIdField?: boolean | undefined;
3142
+ } | {
3143
+ type: "list";
3144
+ name: string;
3145
+ id: string;
3146
+ modelRef: string;
3147
+ form: {
3148
+ fields: z.objectInputType<{
3149
+ type: z.ZodString;
3150
+ label: z.ZodString;
3151
+ }, z.ZodTypeAny, "passthrough">[];
3152
+ };
3153
+ table: {
3154
+ columns: {
3155
+ label: string;
3156
+ display: {
3157
+ type: "foreign";
3158
+ localRelationRef: string;
3159
+ labelExpression: string;
3160
+ valueExpression: string;
3161
+ } | {
3162
+ type: "text";
3163
+ modelFieldRef: string;
3164
+ };
3165
+ }[];
3166
+ };
3167
+ includeIdField?: boolean | undefined;
3168
+ })[] | undefined;
3169
+ })[] | undefined;
3170
+ } | undefined;
3171
+ }>]>, {
3172
+ type: "backend";
3173
+ name: string;
3174
+ id: string;
3175
+ packageLocation?: string | undefined;
3176
+ enableStripe?: boolean | undefined;
3177
+ enableRedis?: boolean | undefined;
3178
+ enableBullQueue?: boolean | undefined;
3179
+ enablePostmark?: boolean | undefined;
3180
+ enableSubscriptions?: boolean | undefined;
3181
+ enableAxios?: boolean | undefined;
3182
+ } | {
3183
+ type: "web";
3184
+ name: string;
3185
+ description: string;
3186
+ id: string;
3187
+ title: string;
3188
+ packageLocation?: string | undefined;
3189
+ enableSubscriptions?: boolean | undefined;
3190
+ allowedRoles?: string[] | undefined;
3191
+ includeAuth?: boolean | undefined;
3192
+ includeUploadComponents?: boolean | undefined;
3193
+ adminApp?: {
3194
+ enabled: boolean;
3195
+ pathPrefix: string;
3196
+ allowedRoles?: string[] | undefined;
3197
+ sections?: ({
3198
+ type: string;
2459
3199
  name: string;
2460
3200
  id: string;
3201
+ featureRef: string;
3202
+ icon?: string | undefined;
3203
+ } & {
3204
+ type: "crud";
2461
3205
  modelRef: string;
2462
3206
  form: {
2463
- fields: z.objectInputType<{
2464
- type: z.ZodString;
2465
- label: z.ZodString;
2466
- }, z.ZodTypeAny, "passthrough">[];
3207
+ fields: {
3208
+ type: string;
3209
+ label: string;
3210
+ }[];
2467
3211
  };
2468
3212
  table: {
2469
3213
  columns: {
@@ -2479,10 +3223,49 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
2479
3223
  };
2480
3224
  }[];
2481
3225
  };
2482
- includeIdField?: boolean | undefined;
3226
+ disableCreate?: boolean | undefined;
3227
+ embeddedForms?: ({
3228
+ type: "object";
3229
+ name: string;
3230
+ id: string;
3231
+ modelRef: string;
3232
+ form: {
3233
+ fields: {
3234
+ type: string;
3235
+ label: string;
3236
+ }[];
3237
+ };
3238
+ includeIdField?: boolean | undefined;
3239
+ } | {
3240
+ type: "list";
3241
+ name: string;
3242
+ id: string;
3243
+ modelRef: string;
3244
+ form: {
3245
+ fields: {
3246
+ type: string;
3247
+ label: string;
3248
+ }[];
3249
+ };
3250
+ table: {
3251
+ columns: {
3252
+ label: string;
3253
+ display: {
3254
+ type: "foreign";
3255
+ localRelationRef: string;
3256
+ labelExpression: string;
3257
+ valueExpression: string;
3258
+ } | {
3259
+ type: "text";
3260
+ modelFieldRef: string;
3261
+ };
3262
+ }[];
3263
+ };
3264
+ includeIdField?: boolean | undefined;
3265
+ })[] | undefined;
2483
3266
  })[] | undefined;
2484
- })[] | undefined;
2485
- } | {
3267
+ } | undefined;
3268
+ }, {
2486
3269
  type: "backend";
2487
3270
  name: string;
2488
3271
  id?: string | undefined;
@@ -2499,11 +3282,86 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
2499
3282
  description?: string | undefined;
2500
3283
  id?: string | undefined;
2501
3284
  packageLocation?: string | undefined;
2502
- allowedRoles?: string[] | undefined;
2503
3285
  enableSubscriptions?: boolean | undefined;
3286
+ allowedRoles?: string[] | undefined;
2504
3287
  includeAuth?: boolean | undefined;
2505
3288
  title?: string | undefined;
2506
3289
  includeUploadComponents?: boolean | undefined;
3290
+ adminApp?: {
3291
+ enabled: boolean;
3292
+ pathPrefix?: string | undefined;
3293
+ allowedRoles?: string[] | undefined;
3294
+ sections?: ({
3295
+ type: string;
3296
+ name: string;
3297
+ featureRef: string;
3298
+ icon?: string | undefined;
3299
+ id?: string | undefined;
3300
+ } & {
3301
+ type: "crud";
3302
+ modelRef: string;
3303
+ form: {
3304
+ fields: z.objectInputType<{
3305
+ type: z.ZodString;
3306
+ label: z.ZodString;
3307
+ }, z.ZodTypeAny, "passthrough">[];
3308
+ };
3309
+ table: {
3310
+ columns: {
3311
+ label: string;
3312
+ display: {
3313
+ type: "foreign";
3314
+ localRelationRef: string;
3315
+ labelExpression: string;
3316
+ valueExpression: string;
3317
+ } | {
3318
+ type: "text";
3319
+ modelFieldRef: string;
3320
+ };
3321
+ }[];
3322
+ };
3323
+ disableCreate?: boolean | undefined;
3324
+ embeddedForms?: ({
3325
+ type: "object";
3326
+ name: string;
3327
+ id: string;
3328
+ modelRef: string;
3329
+ form: {
3330
+ fields: z.objectInputType<{
3331
+ type: z.ZodString;
3332
+ label: z.ZodString;
3333
+ }, z.ZodTypeAny, "passthrough">[];
3334
+ };
3335
+ includeIdField?: boolean | undefined;
3336
+ } | {
3337
+ type: "list";
3338
+ name: string;
3339
+ id: string;
3340
+ modelRef: string;
3341
+ form: {
3342
+ fields: z.objectInputType<{
3343
+ type: z.ZodString;
3344
+ label: z.ZodString;
3345
+ }, z.ZodTypeAny, "passthrough">[];
3346
+ };
3347
+ table: {
3348
+ columns: {
3349
+ label: string;
3350
+ display: {
3351
+ type: "foreign";
3352
+ localRelationRef: string;
3353
+ labelExpression: string;
3354
+ valueExpression: string;
3355
+ } | {
3356
+ type: "text";
3357
+ modelFieldRef: string;
3358
+ };
3359
+ }[];
3360
+ };
3361
+ includeIdField?: boolean | undefined;
3362
+ })[] | undefined;
3363
+ })[] | undefined;
3364
+ } | undefined;
2507
3365
  }>, "many">>;
2508
3366
  features: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
2509
3367
  id: z.ZodString;
@@ -3212,7 +4070,6 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3212
4070
  }, "strip", z.ZodTypeAny, {
3213
4071
  name: string;
3214
4072
  id: string;
3215
- featureRef: string;
3216
4073
  model: {
3217
4074
  fields: {
3218
4075
  options: {
@@ -3249,6 +4106,7 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3249
4106
  }[];
3250
4107
  }[] | undefined;
3251
4108
  };
4109
+ featureRef: string;
3252
4110
  service: {
3253
4111
  delete: {
3254
4112
  enabled: boolean;
@@ -3303,7 +4161,6 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3303
4161
  }, {
3304
4162
  name: string;
3305
4163
  id: string;
3306
- featureRef: string;
3307
4164
  model: {
3308
4165
  fields: {
3309
4166
  type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
@@ -3340,6 +4197,7 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3340
4197
  }[];
3341
4198
  }[] | undefined;
3342
4199
  };
4200
+ featureRef: string;
3343
4201
  service?: {
3344
4202
  delete?: {
3345
4203
  enabled?: boolean | undefined;
@@ -3394,7 +4252,6 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3394
4252
  }>, {
3395
4253
  name: string;
3396
4254
  id: string;
3397
- featureRef: string;
3398
4255
  model: {
3399
4256
  fields: {
3400
4257
  options: {
@@ -3431,6 +4288,7 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3431
4288
  }[];
3432
4289
  }[] | undefined;
3433
4290
  };
4291
+ featureRef: string;
3434
4292
  service: {
3435
4293
  delete: {
3436
4294
  enabled: boolean;
@@ -3485,7 +4343,6 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3485
4343
  }, {
3486
4344
  name: string;
3487
4345
  id: string;
3488
- featureRef: string;
3489
4346
  model: {
3490
4347
  fields: {
3491
4348
  type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
@@ -3522,6 +4379,7 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3522
4379
  }[];
3523
4380
  }[] | undefined;
3524
4381
  };
4382
+ featureRef: string;
3525
4383
  service?: {
3526
4384
  delete?: {
3527
4385
  enabled?: boolean | undefined;
@@ -3785,14 +4643,14 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3785
4643
  };
3786
4644
  }>;
3787
4645
  colors: z.ZodObject<{
3788
- light: z.ZodRecord<z.ZodEnum<["link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", ...("link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring")[]]>, z.ZodString>;
3789
- dark: z.ZodRecord<z.ZodEnum<["link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", ...("link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring")[]]>, z.ZodString>;
4646
+ light: z.ZodRecord<z.ZodEnum<["link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", ...("link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring")[]]>, z.ZodString>;
4647
+ dark: z.ZodRecord<z.ZodEnum<["link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", ...("link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring")[]]>, z.ZodString>;
3790
4648
  }, "strip", z.ZodTypeAny, {
3791
- light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3792
- dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4649
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4650
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3793
4651
  }, {
3794
- light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3795
- dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4652
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4653
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3796
4654
  }>;
3797
4655
  }, "strip", z.ZodTypeAny, {
3798
4656
  palettes: {
@@ -3808,8 +4666,8 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3808
4666
  };
3809
4667
  };
3810
4668
  colors: {
3811
- light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3812
- dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4669
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4670
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3813
4671
  };
3814
4672
  }, {
3815
4673
  palettes: {
@@ -3825,8 +4683,8 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3825
4683
  };
3826
4684
  };
3827
4685
  colors: {
3828
- light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3829
- dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4686
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4687
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3830
4688
  };
3831
4689
  }>>;
3832
4690
  }, "strip", z.ZodTypeAny, {
@@ -3853,8 +4711,8 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3853
4711
  };
3854
4712
  };
3855
4713
  colors: {
3856
- light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3857
- dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4714
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4715
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3858
4716
  };
3859
4717
  } | undefined;
3860
4718
  }, {
@@ -3881,64 +4739,46 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3881
4739
  };
3882
4740
  };
3883
4741
  colors: {
3884
- light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3885
- dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4742
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4743
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
3886
4744
  };
3887
4745
  } | undefined;
3888
4746
  }>;
3889
4747
  }, "strip", z.ZodTypeAny, {
3890
4748
  apps: ({
3891
- type: "admin";
4749
+ type: "backend";
4750
+ name: string;
4751
+ id: string;
4752
+ packageLocation?: string | undefined;
4753
+ enableStripe?: boolean | undefined;
4754
+ enableRedis?: boolean | undefined;
4755
+ enableBullQueue?: boolean | undefined;
4756
+ enablePostmark?: boolean | undefined;
4757
+ enableSubscriptions?: boolean | undefined;
4758
+ enableAxios?: boolean | undefined;
4759
+ } | {
4760
+ type: "web";
3892
4761
  name: string;
4762
+ description: string;
3893
4763
  id: string;
4764
+ title: string;
3894
4765
  packageLocation?: string | undefined;
4766
+ enableSubscriptions?: boolean | undefined;
3895
4767
  allowedRoles?: string[] | undefined;
3896
- sections?: ({
3897
- type: string;
3898
- name: string;
3899
- id: string;
3900
- featureRef: string;
3901
- icon?: string | undefined;
3902
- } & {
3903
- type: "crud";
3904
- modelRef: string;
3905
- form: {
3906
- fields: {
3907
- type: string;
3908
- label: string;
3909
- }[];
3910
- };
3911
- table: {
3912
- columns: {
3913
- label: string;
3914
- display: {
3915
- type: "foreign";
3916
- localRelationRef: string;
3917
- labelExpression: string;
3918
- valueExpression: string;
3919
- } | {
3920
- type: "text";
3921
- modelFieldRef: string;
3922
- };
3923
- }[];
3924
- };
3925
- disableCreate?: boolean | undefined;
3926
- embeddedForms?: ({
3927
- type: "object";
3928
- name: string;
3929
- id: string;
3930
- modelRef: string;
3931
- form: {
3932
- fields: {
3933
- type: string;
3934
- label: string;
3935
- }[];
3936
- };
3937
- includeIdField?: boolean | undefined;
3938
- } | {
3939
- type: "list";
4768
+ includeAuth?: boolean | undefined;
4769
+ includeUploadComponents?: boolean | undefined;
4770
+ adminApp?: {
4771
+ enabled: boolean;
4772
+ pathPrefix: string;
4773
+ allowedRoles?: string[] | undefined;
4774
+ sections?: ({
4775
+ type: string;
3940
4776
  name: string;
3941
4777
  id: string;
4778
+ featureRef: string;
4779
+ icon?: string | undefined;
4780
+ } & {
4781
+ type: "crud";
3942
4782
  modelRef: string;
3943
4783
  form: {
3944
4784
  fields: {
@@ -3960,31 +4800,48 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3960
4800
  };
3961
4801
  }[];
3962
4802
  };
3963
- includeIdField?: boolean | undefined;
4803
+ disableCreate?: boolean | undefined;
4804
+ embeddedForms?: ({
4805
+ type: "object";
4806
+ name: string;
4807
+ id: string;
4808
+ modelRef: string;
4809
+ form: {
4810
+ fields: {
4811
+ type: string;
4812
+ label: string;
4813
+ }[];
4814
+ };
4815
+ includeIdField?: boolean | undefined;
4816
+ } | {
4817
+ type: "list";
4818
+ name: string;
4819
+ id: string;
4820
+ modelRef: string;
4821
+ form: {
4822
+ fields: {
4823
+ type: string;
4824
+ label: string;
4825
+ }[];
4826
+ };
4827
+ table: {
4828
+ columns: {
4829
+ label: string;
4830
+ display: {
4831
+ type: "foreign";
4832
+ localRelationRef: string;
4833
+ labelExpression: string;
4834
+ valueExpression: string;
4835
+ } | {
4836
+ type: "text";
4837
+ modelFieldRef: string;
4838
+ };
4839
+ }[];
4840
+ };
4841
+ includeIdField?: boolean | undefined;
4842
+ })[] | undefined;
3964
4843
  })[] | undefined;
3965
- })[] | undefined;
3966
- } | {
3967
- type: "backend";
3968
- name: string;
3969
- id: string;
3970
- packageLocation?: string | undefined;
3971
- enableStripe?: boolean | undefined;
3972
- enableRedis?: boolean | undefined;
3973
- enableBullQueue?: boolean | undefined;
3974
- enablePostmark?: boolean | undefined;
3975
- enableSubscriptions?: boolean | undefined;
3976
- enableAxios?: boolean | undefined;
3977
- } | {
3978
- type: "web";
3979
- name: string;
3980
- id: string;
3981
- description?: string | undefined;
3982
- packageLocation?: string | undefined;
3983
- allowedRoles?: string[] | undefined;
3984
- enableSubscriptions?: boolean | undefined;
3985
- includeAuth?: boolean | undefined;
3986
- title?: string | undefined;
3987
- includeUploadComponents?: boolean | undefined;
4844
+ } | undefined;
3988
4845
  })[];
3989
4846
  features: {
3990
4847
  name: string;
@@ -3994,7 +4851,6 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
3994
4851
  models: {
3995
4852
  name: string;
3996
4853
  id: string;
3997
- featureRef: string;
3998
4854
  model: {
3999
4855
  fields: {
4000
4856
  options: {
@@ -4031,6 +4887,7 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
4031
4887
  }[];
4032
4888
  }[] | undefined;
4033
4889
  };
4890
+ featureRef: string;
4034
4891
  service: {
4035
4892
  delete: {
4036
4893
  enabled: boolean;
@@ -4109,8 +4966,8 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
4109
4966
  };
4110
4967
  };
4111
4968
  colors: {
4112
- light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4113
- dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4969
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4970
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4114
4971
  };
4115
4972
  } | undefined;
4116
4973
  };
@@ -4160,8 +5017,8 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
4160
5017
  };
4161
5018
  };
4162
5019
  colors: {
4163
- light: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4164
- dark: Partial<Record<"link" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "success" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
5020
+ light: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
5021
+ dark: Partial<Record<"link" | "success" | "background" | "foreground" | "muted" | "mutedForeground" | "card" | "cardForeground" | "popover" | "popoverForeground" | "accent" | "accentForeground" | "successForeground" | "warning" | "warningForeground" | "error" | "errorForeground" | "primary" | "primaryHover" | "primaryForeground" | "secondary" | "secondaryHover" | "secondaryForeground" | "destructive" | "destructiveHover" | "destructiveForeground" | "linkVisited" | "border" | "input" | "ring", string>>;
4165
5022
  };
4166
5023
  } | undefined;
4167
5024
  };
@@ -4175,57 +5032,39 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
4175
5032
  }, z.ZodTypeAny, "passthrough">[] | undefined;
4176
5033
  cliVersion?: string | null | undefined;
4177
5034
  apps?: ({
4178
- type: "admin";
5035
+ type: "backend";
5036
+ name: string;
5037
+ id?: string | undefined;
5038
+ packageLocation?: string | undefined;
5039
+ enableStripe?: boolean | undefined;
5040
+ enableRedis?: boolean | undefined;
5041
+ enableBullQueue?: boolean | undefined;
5042
+ enablePostmark?: boolean | undefined;
5043
+ enableSubscriptions?: boolean | undefined;
5044
+ enableAxios?: boolean | undefined;
5045
+ } | {
5046
+ type: "web";
4179
5047
  name: string;
5048
+ description?: string | undefined;
4180
5049
  id?: string | undefined;
4181
5050
  packageLocation?: string | undefined;
5051
+ enableSubscriptions?: boolean | undefined;
4182
5052
  allowedRoles?: string[] | undefined;
4183
- sections?: ({
4184
- type: string;
4185
- name: string;
4186
- featureRef: string;
4187
- icon?: string | undefined;
4188
- id?: string | undefined;
4189
- } & {
4190
- type: "crud";
4191
- modelRef: string;
4192
- form: {
4193
- fields: z.objectInputType<{
4194
- type: z.ZodString;
4195
- label: z.ZodString;
4196
- }, z.ZodTypeAny, "passthrough">[];
4197
- };
4198
- table: {
4199
- columns: {
4200
- label: string;
4201
- display: {
4202
- type: "foreign";
4203
- localRelationRef: string;
4204
- labelExpression: string;
4205
- valueExpression: string;
4206
- } | {
4207
- type: "text";
4208
- modelFieldRef: string;
4209
- };
4210
- }[];
4211
- };
4212
- disableCreate?: boolean | undefined;
4213
- embeddedForms?: ({
4214
- type: "object";
4215
- name: string;
4216
- id: string;
4217
- modelRef: string;
4218
- form: {
4219
- fields: z.objectInputType<{
4220
- type: z.ZodString;
4221
- label: z.ZodString;
4222
- }, z.ZodTypeAny, "passthrough">[];
4223
- };
4224
- includeIdField?: boolean | undefined;
4225
- } | {
4226
- type: "list";
5053
+ includeAuth?: boolean | undefined;
5054
+ title?: string | undefined;
5055
+ includeUploadComponents?: boolean | undefined;
5056
+ adminApp?: {
5057
+ enabled: boolean;
5058
+ pathPrefix?: string | undefined;
5059
+ allowedRoles?: string[] | undefined;
5060
+ sections?: ({
5061
+ type: string;
4227
5062
  name: string;
4228
- id: string;
5063
+ featureRef: string;
5064
+ icon?: string | undefined;
5065
+ id?: string | undefined;
5066
+ } & {
5067
+ type: "crud";
4229
5068
  modelRef: string;
4230
5069
  form: {
4231
5070
  fields: z.objectInputType<{
@@ -4247,31 +5086,48 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
4247
5086
  };
4248
5087
  }[];
4249
5088
  };
4250
- includeIdField?: boolean | undefined;
5089
+ disableCreate?: boolean | undefined;
5090
+ embeddedForms?: ({
5091
+ type: "object";
5092
+ name: string;
5093
+ id: string;
5094
+ modelRef: string;
5095
+ form: {
5096
+ fields: z.objectInputType<{
5097
+ type: z.ZodString;
5098
+ label: z.ZodString;
5099
+ }, z.ZodTypeAny, "passthrough">[];
5100
+ };
5101
+ includeIdField?: boolean | undefined;
5102
+ } | {
5103
+ type: "list";
5104
+ name: string;
5105
+ id: string;
5106
+ modelRef: string;
5107
+ form: {
5108
+ fields: z.objectInputType<{
5109
+ type: z.ZodString;
5110
+ label: z.ZodString;
5111
+ }, z.ZodTypeAny, "passthrough">[];
5112
+ };
5113
+ table: {
5114
+ columns: {
5115
+ label: string;
5116
+ display: {
5117
+ type: "foreign";
5118
+ localRelationRef: string;
5119
+ labelExpression: string;
5120
+ valueExpression: string;
5121
+ } | {
5122
+ type: "text";
5123
+ modelFieldRef: string;
5124
+ };
5125
+ }[];
5126
+ };
5127
+ includeIdField?: boolean | undefined;
5128
+ })[] | undefined;
4251
5129
  })[] | undefined;
4252
- })[] | undefined;
4253
- } | {
4254
- type: "backend";
4255
- name: string;
4256
- id?: string | undefined;
4257
- packageLocation?: string | undefined;
4258
- enableStripe?: boolean | undefined;
4259
- enableRedis?: boolean | undefined;
4260
- enableBullQueue?: boolean | undefined;
4261
- enablePostmark?: boolean | undefined;
4262
- enableSubscriptions?: boolean | undefined;
4263
- enableAxios?: boolean | undefined;
4264
- } | {
4265
- type: "web";
4266
- name: string;
4267
- description?: string | undefined;
4268
- id?: string | undefined;
4269
- packageLocation?: string | undefined;
4270
- allowedRoles?: string[] | undefined;
4271
- enableSubscriptions?: boolean | undefined;
4272
- includeAuth?: boolean | undefined;
4273
- title?: string | undefined;
4274
- includeUploadComponents?: boolean | undefined;
5130
+ } | undefined;
4275
5131
  })[] | undefined;
4276
5132
  features?: {
4277
5133
  name: string;
@@ -4281,7 +5137,6 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
4281
5137
  models?: {
4282
5138
  name: string;
4283
5139
  id: string;
4284
- featureRef: string;
4285
5140
  model: {
4286
5141
  fields: {
4287
5142
  type: "string" | "boolean" | "float" | "date" | "uuid" | "int" | "dateTime" | "decimal" | "json" | "enum";
@@ -4318,6 +5173,7 @@ export declare const createProjectDefinitionSchema: (context: import("./creator/
4318
5173
  }[];
4319
5174
  }[] | undefined;
4320
5175
  };
5176
+ featureRef: string;
4321
5177
  service?: {
4322
5178
  delete?: {
4323
5179
  enabled?: boolean | undefined;