@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
@@ -0,0 +1,1544 @@
1
+ import { z } from 'zod';
2
+ import type { def } from '#src/schema/creator/index.js';
3
+ export declare const createWebAppSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodObject<{
4
+ type: z.ZodLiteral<"web">;
5
+ includeAuth: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
6
+ title: z.ZodDefault<z.ZodString>;
7
+ description: z.ZodDefault<z.ZodString>;
8
+ allowedRoles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
9
+ includeUploadComponents: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
10
+ enableSubscriptions: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
11
+ adminApp: z.ZodEffects<z.ZodOptional<z.ZodObject<{
12
+ enabled: z.ZodBoolean;
13
+ pathPrefix: z.ZodDefault<z.ZodString>;
14
+ allowedRoles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
15
+ sections: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodObject<{
16
+ id: z.ZodDefault<z.ZodString>;
17
+ name: z.ZodString;
18
+ featureRef: z.ZodEffects<z.ZodString, string, string>;
19
+ icon: z.ZodOptional<z.ZodString>;
20
+ type: z.ZodString;
21
+ }, "strip", z.ZodTypeAny, {
22
+ type: string;
23
+ name: string;
24
+ id: string;
25
+ featureRef: string;
26
+ icon?: string | undefined;
27
+ }, {
28
+ type: string;
29
+ name: string;
30
+ featureRef: string;
31
+ icon?: string | undefined;
32
+ id?: string | undefined;
33
+ }>, z.ZodObject<{
34
+ type: z.ZodLiteral<"crud">;
35
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
36
+ disableCreate: z.ZodOptional<z.ZodBoolean>;
37
+ table: z.ZodObject<{
38
+ columns: z.ZodArray<z.ZodObject<{
39
+ label: z.ZodString;
40
+ display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
41
+ type: z.ZodLiteral<"text">;
42
+ modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ type: "text";
45
+ modelFieldRef: string;
46
+ }, {
47
+ type: "text";
48
+ modelFieldRef: string;
49
+ }>, z.ZodObject<{
50
+ type: z.ZodLiteral<"foreign">;
51
+ localRelationRef: z.ZodEffects<z.ZodString, string, string>;
52
+ labelExpression: z.ZodString;
53
+ valueExpression: z.ZodString;
54
+ }, "strip", z.ZodTypeAny, {
55
+ type: "foreign";
56
+ localRelationRef: string;
57
+ labelExpression: string;
58
+ valueExpression: string;
59
+ }, {
60
+ type: "foreign";
61
+ localRelationRef: string;
62
+ labelExpression: string;
63
+ valueExpression: string;
64
+ }>]>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ label: string;
67
+ display: {
68
+ type: "foreign";
69
+ localRelationRef: string;
70
+ labelExpression: string;
71
+ valueExpression: string;
72
+ } | {
73
+ type: "text";
74
+ modelFieldRef: string;
75
+ };
76
+ }, {
77
+ label: string;
78
+ display: {
79
+ type: "foreign";
80
+ localRelationRef: string;
81
+ labelExpression: string;
82
+ valueExpression: string;
83
+ } | {
84
+ type: "text";
85
+ modelFieldRef: string;
86
+ };
87
+ }>, "many">;
88
+ }, "strip", z.ZodTypeAny, {
89
+ columns: {
90
+ label: string;
91
+ display: {
92
+ type: "foreign";
93
+ localRelationRef: string;
94
+ labelExpression: string;
95
+ valueExpression: string;
96
+ } | {
97
+ type: "text";
98
+ modelFieldRef: string;
99
+ };
100
+ }[];
101
+ }, {
102
+ columns: {
103
+ label: string;
104
+ display: {
105
+ type: "foreign";
106
+ localRelationRef: string;
107
+ labelExpression: string;
108
+ valueExpression: string;
109
+ } | {
110
+ type: "text";
111
+ modelFieldRef: string;
112
+ };
113
+ }[];
114
+ }>;
115
+ form: z.ZodObject<{
116
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
117
+ type: z.ZodString;
118
+ label: z.ZodString;
119
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
120
+ type: z.ZodString;
121
+ label: z.ZodString;
122
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
123
+ type: z.ZodString;
124
+ label: z.ZodString;
125
+ }, z.ZodTypeAny, "passthrough">>, {
126
+ type: string;
127
+ label: string;
128
+ }, z.objectInputType<{
129
+ type: z.ZodString;
130
+ label: z.ZodString;
131
+ }, z.ZodTypeAny, "passthrough">>, "many">;
132
+ }, "strip", z.ZodTypeAny, {
133
+ fields: {
134
+ type: string;
135
+ label: string;
136
+ }[];
137
+ }, {
138
+ fields: z.objectInputType<{
139
+ type: z.ZodString;
140
+ label: z.ZodString;
141
+ }, z.ZodTypeAny, "passthrough">[];
142
+ }>;
143
+ embeddedForms: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
144
+ id: z.ZodString;
145
+ name: z.ZodString;
146
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
147
+ includeIdField: z.ZodOptional<z.ZodBoolean>;
148
+ type: z.ZodLiteral<"object">;
149
+ form: z.ZodObject<{
150
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
151
+ type: z.ZodString;
152
+ label: z.ZodString;
153
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
154
+ type: z.ZodString;
155
+ label: z.ZodString;
156
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
157
+ type: z.ZodString;
158
+ label: z.ZodString;
159
+ }, z.ZodTypeAny, "passthrough">>, {
160
+ type: string;
161
+ label: string;
162
+ }, z.objectInputType<{
163
+ type: z.ZodString;
164
+ label: z.ZodString;
165
+ }, z.ZodTypeAny, "passthrough">>, "many">;
166
+ }, "strip", z.ZodTypeAny, {
167
+ fields: {
168
+ type: string;
169
+ label: string;
170
+ }[];
171
+ }, {
172
+ fields: z.objectInputType<{
173
+ type: z.ZodString;
174
+ label: z.ZodString;
175
+ }, z.ZodTypeAny, "passthrough">[];
176
+ }>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ type: "object";
179
+ name: string;
180
+ id: string;
181
+ modelRef: string;
182
+ form: {
183
+ fields: {
184
+ type: string;
185
+ label: string;
186
+ }[];
187
+ };
188
+ includeIdField?: boolean | undefined;
189
+ }, {
190
+ type: "object";
191
+ name: string;
192
+ id: string;
193
+ modelRef: string;
194
+ form: {
195
+ fields: z.objectInputType<{
196
+ type: z.ZodString;
197
+ label: z.ZodString;
198
+ }, z.ZodTypeAny, "passthrough">[];
199
+ };
200
+ includeIdField?: boolean | undefined;
201
+ }>, z.ZodObject<{
202
+ id: z.ZodString;
203
+ name: z.ZodString;
204
+ modelRef: z.ZodEffects<z.ZodString, string, string>;
205
+ includeIdField: z.ZodOptional<z.ZodBoolean>;
206
+ type: z.ZodLiteral<"list">;
207
+ table: z.ZodObject<{
208
+ columns: z.ZodArray<z.ZodObject<{
209
+ label: z.ZodString;
210
+ display: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
211
+ type: z.ZodLiteral<"text">;
212
+ modelFieldRef: z.ZodEffects<z.ZodString, string, string>;
213
+ }, "strip", z.ZodTypeAny, {
214
+ type: "text";
215
+ modelFieldRef: string;
216
+ }, {
217
+ type: "text";
218
+ modelFieldRef: string;
219
+ }>, z.ZodObject<{
220
+ type: z.ZodLiteral<"foreign">;
221
+ localRelationRef: z.ZodEffects<z.ZodString, string, string>;
222
+ labelExpression: z.ZodString;
223
+ valueExpression: z.ZodString;
224
+ }, "strip", z.ZodTypeAny, {
225
+ type: "foreign";
226
+ localRelationRef: string;
227
+ labelExpression: string;
228
+ valueExpression: string;
229
+ }, {
230
+ type: "foreign";
231
+ localRelationRef: string;
232
+ labelExpression: string;
233
+ valueExpression: string;
234
+ }>]>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ label: string;
237
+ display: {
238
+ type: "foreign";
239
+ localRelationRef: string;
240
+ labelExpression: string;
241
+ valueExpression: string;
242
+ } | {
243
+ type: "text";
244
+ modelFieldRef: string;
245
+ };
246
+ }, {
247
+ label: string;
248
+ display: {
249
+ type: "foreign";
250
+ localRelationRef: string;
251
+ labelExpression: string;
252
+ valueExpression: string;
253
+ } | {
254
+ type: "text";
255
+ modelFieldRef: string;
256
+ };
257
+ }>, "many">;
258
+ }, "strip", z.ZodTypeAny, {
259
+ columns: {
260
+ label: string;
261
+ display: {
262
+ type: "foreign";
263
+ localRelationRef: string;
264
+ labelExpression: string;
265
+ valueExpression: string;
266
+ } | {
267
+ type: "text";
268
+ modelFieldRef: string;
269
+ };
270
+ }[];
271
+ }, {
272
+ columns: {
273
+ label: string;
274
+ display: {
275
+ type: "foreign";
276
+ localRelationRef: string;
277
+ labelExpression: string;
278
+ valueExpression: string;
279
+ } | {
280
+ type: "text";
281
+ modelFieldRef: string;
282
+ };
283
+ }[];
284
+ }>;
285
+ form: z.ZodObject<{
286
+ fields: z.ZodArray<z.ZodEffects<z.ZodObject<{
287
+ type: z.ZodString;
288
+ label: z.ZodString;
289
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
290
+ type: z.ZodString;
291
+ label: z.ZodString;
292
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
293
+ type: z.ZodString;
294
+ label: z.ZodString;
295
+ }, z.ZodTypeAny, "passthrough">>, {
296
+ type: string;
297
+ label: string;
298
+ }, z.objectInputType<{
299
+ type: z.ZodString;
300
+ label: z.ZodString;
301
+ }, z.ZodTypeAny, "passthrough">>, "many">;
302
+ }, "strip", z.ZodTypeAny, {
303
+ fields: {
304
+ type: string;
305
+ label: string;
306
+ }[];
307
+ }, {
308
+ fields: z.objectInputType<{
309
+ type: z.ZodString;
310
+ label: z.ZodString;
311
+ }, z.ZodTypeAny, "passthrough">[];
312
+ }>;
313
+ }, "strip", z.ZodTypeAny, {
314
+ type: "list";
315
+ name: string;
316
+ id: string;
317
+ modelRef: string;
318
+ form: {
319
+ fields: {
320
+ type: string;
321
+ label: string;
322
+ }[];
323
+ };
324
+ table: {
325
+ columns: {
326
+ label: string;
327
+ display: {
328
+ type: "foreign";
329
+ localRelationRef: string;
330
+ labelExpression: string;
331
+ valueExpression: string;
332
+ } | {
333
+ type: "text";
334
+ modelFieldRef: string;
335
+ };
336
+ }[];
337
+ };
338
+ includeIdField?: boolean | undefined;
339
+ }, {
340
+ type: "list";
341
+ name: string;
342
+ id: string;
343
+ modelRef: string;
344
+ form: {
345
+ fields: z.objectInputType<{
346
+ type: z.ZodString;
347
+ label: z.ZodString;
348
+ }, z.ZodTypeAny, "passthrough">[];
349
+ };
350
+ table: {
351
+ columns: {
352
+ label: string;
353
+ display: {
354
+ type: "foreign";
355
+ localRelationRef: string;
356
+ labelExpression: string;
357
+ valueExpression: string;
358
+ } | {
359
+ type: "text";
360
+ modelFieldRef: string;
361
+ };
362
+ }[];
363
+ };
364
+ includeIdField?: boolean | undefined;
365
+ }>]>, {
366
+ type: "object";
367
+ name: string;
368
+ id: string;
369
+ modelRef: string;
370
+ form: {
371
+ fields: {
372
+ type: string;
373
+ label: string;
374
+ }[];
375
+ };
376
+ includeIdField?: boolean | undefined;
377
+ } | {
378
+ type: "list";
379
+ name: string;
380
+ id: string;
381
+ modelRef: string;
382
+ form: {
383
+ fields: {
384
+ type: string;
385
+ label: string;
386
+ }[];
387
+ };
388
+ table: {
389
+ columns: {
390
+ label: string;
391
+ display: {
392
+ type: "foreign";
393
+ localRelationRef: string;
394
+ labelExpression: string;
395
+ valueExpression: string;
396
+ } | {
397
+ type: "text";
398
+ modelFieldRef: string;
399
+ };
400
+ }[];
401
+ };
402
+ includeIdField?: boolean | undefined;
403
+ }, {
404
+ type: "object";
405
+ name: string;
406
+ id: string;
407
+ modelRef: string;
408
+ form: {
409
+ fields: z.objectInputType<{
410
+ type: z.ZodString;
411
+ label: z.ZodString;
412
+ }, z.ZodTypeAny, "passthrough">[];
413
+ };
414
+ includeIdField?: boolean | undefined;
415
+ } | {
416
+ type: "list";
417
+ name: string;
418
+ id: string;
419
+ modelRef: string;
420
+ form: {
421
+ fields: z.objectInputType<{
422
+ type: z.ZodString;
423
+ label: z.ZodString;
424
+ }, z.ZodTypeAny, "passthrough">[];
425
+ };
426
+ table: {
427
+ columns: {
428
+ label: string;
429
+ display: {
430
+ type: "foreign";
431
+ localRelationRef: string;
432
+ labelExpression: string;
433
+ valueExpression: string;
434
+ } | {
435
+ type: "text";
436
+ modelFieldRef: string;
437
+ };
438
+ }[];
439
+ };
440
+ includeIdField?: boolean | undefined;
441
+ }>, "many">>;
442
+ }, "strip", z.ZodTypeAny, {
443
+ type: "crud";
444
+ modelRef: string;
445
+ form: {
446
+ fields: {
447
+ type: string;
448
+ label: string;
449
+ }[];
450
+ };
451
+ table: {
452
+ columns: {
453
+ label: string;
454
+ display: {
455
+ type: "foreign";
456
+ localRelationRef: string;
457
+ labelExpression: string;
458
+ valueExpression: string;
459
+ } | {
460
+ type: "text";
461
+ modelFieldRef: string;
462
+ };
463
+ }[];
464
+ };
465
+ disableCreate?: boolean | undefined;
466
+ embeddedForms?: ({
467
+ type: "object";
468
+ name: string;
469
+ id: string;
470
+ modelRef: string;
471
+ form: {
472
+ fields: {
473
+ type: string;
474
+ label: string;
475
+ }[];
476
+ };
477
+ includeIdField?: boolean | undefined;
478
+ } | {
479
+ type: "list";
480
+ name: string;
481
+ id: string;
482
+ modelRef: string;
483
+ form: {
484
+ fields: {
485
+ type: string;
486
+ label: string;
487
+ }[];
488
+ };
489
+ table: {
490
+ columns: {
491
+ label: string;
492
+ display: {
493
+ type: "foreign";
494
+ localRelationRef: string;
495
+ labelExpression: string;
496
+ valueExpression: string;
497
+ } | {
498
+ type: "text";
499
+ modelFieldRef: string;
500
+ };
501
+ }[];
502
+ };
503
+ includeIdField?: boolean | undefined;
504
+ })[] | undefined;
505
+ }, {
506
+ type: "crud";
507
+ modelRef: string;
508
+ form: {
509
+ fields: z.objectInputType<{
510
+ type: z.ZodString;
511
+ label: z.ZodString;
512
+ }, z.ZodTypeAny, "passthrough">[];
513
+ };
514
+ table: {
515
+ columns: {
516
+ label: string;
517
+ display: {
518
+ type: "foreign";
519
+ localRelationRef: string;
520
+ labelExpression: string;
521
+ valueExpression: string;
522
+ } | {
523
+ type: "text";
524
+ modelFieldRef: string;
525
+ };
526
+ }[];
527
+ };
528
+ disableCreate?: boolean | undefined;
529
+ embeddedForms?: ({
530
+ type: "object";
531
+ name: string;
532
+ id: string;
533
+ modelRef: string;
534
+ form: {
535
+ fields: z.objectInputType<{
536
+ type: z.ZodString;
537
+ label: z.ZodString;
538
+ }, z.ZodTypeAny, "passthrough">[];
539
+ };
540
+ includeIdField?: boolean | undefined;
541
+ } | {
542
+ type: "list";
543
+ name: string;
544
+ id: string;
545
+ modelRef: string;
546
+ form: {
547
+ fields: z.objectInputType<{
548
+ type: z.ZodString;
549
+ label: z.ZodString;
550
+ }, z.ZodTypeAny, "passthrough">[];
551
+ };
552
+ table: {
553
+ columns: {
554
+ label: string;
555
+ display: {
556
+ type: "foreign";
557
+ localRelationRef: string;
558
+ labelExpression: string;
559
+ valueExpression: string;
560
+ } | {
561
+ type: "text";
562
+ modelFieldRef: string;
563
+ };
564
+ }[];
565
+ };
566
+ includeIdField?: boolean | undefined;
567
+ })[] | undefined;
568
+ }>>, {
569
+ type: string;
570
+ name: string;
571
+ id: string;
572
+ featureRef: string;
573
+ icon?: string | undefined;
574
+ } & {
575
+ type: "crud";
576
+ modelRef: string;
577
+ form: {
578
+ fields: {
579
+ type: string;
580
+ label: string;
581
+ }[];
582
+ };
583
+ table: {
584
+ columns: {
585
+ label: string;
586
+ display: {
587
+ type: "foreign";
588
+ localRelationRef: string;
589
+ labelExpression: string;
590
+ valueExpression: string;
591
+ } | {
592
+ type: "text";
593
+ modelFieldRef: string;
594
+ };
595
+ }[];
596
+ };
597
+ disableCreate?: boolean | undefined;
598
+ embeddedForms?: ({
599
+ type: "object";
600
+ name: string;
601
+ id: string;
602
+ modelRef: string;
603
+ form: {
604
+ fields: {
605
+ type: string;
606
+ label: string;
607
+ }[];
608
+ };
609
+ includeIdField?: boolean | undefined;
610
+ } | {
611
+ type: "list";
612
+ name: string;
613
+ id: string;
614
+ modelRef: string;
615
+ form: {
616
+ fields: {
617
+ type: string;
618
+ label: string;
619
+ }[];
620
+ };
621
+ table: {
622
+ columns: {
623
+ label: string;
624
+ display: {
625
+ type: "foreign";
626
+ localRelationRef: string;
627
+ labelExpression: string;
628
+ valueExpression: string;
629
+ } | {
630
+ type: "text";
631
+ modelFieldRef: string;
632
+ };
633
+ }[];
634
+ };
635
+ includeIdField?: boolean | undefined;
636
+ })[] | undefined;
637
+ }, {
638
+ type: string;
639
+ name: string;
640
+ featureRef: string;
641
+ icon?: string | undefined;
642
+ id?: string | undefined;
643
+ } & {
644
+ type: "crud";
645
+ modelRef: string;
646
+ form: {
647
+ fields: z.objectInputType<{
648
+ type: z.ZodString;
649
+ label: z.ZodString;
650
+ }, z.ZodTypeAny, "passthrough">[];
651
+ };
652
+ table: {
653
+ columns: {
654
+ label: string;
655
+ display: {
656
+ type: "foreign";
657
+ localRelationRef: string;
658
+ labelExpression: string;
659
+ valueExpression: string;
660
+ } | {
661
+ type: "text";
662
+ modelFieldRef: string;
663
+ };
664
+ }[];
665
+ };
666
+ disableCreate?: boolean | undefined;
667
+ embeddedForms?: ({
668
+ type: "object";
669
+ name: string;
670
+ id: string;
671
+ modelRef: string;
672
+ form: {
673
+ fields: z.objectInputType<{
674
+ type: z.ZodString;
675
+ label: z.ZodString;
676
+ }, z.ZodTypeAny, "passthrough">[];
677
+ };
678
+ includeIdField?: boolean | undefined;
679
+ } | {
680
+ type: "list";
681
+ name: string;
682
+ id: string;
683
+ modelRef: string;
684
+ form: {
685
+ fields: z.objectInputType<{
686
+ type: z.ZodString;
687
+ label: z.ZodString;
688
+ }, z.ZodTypeAny, "passthrough">[];
689
+ };
690
+ table: {
691
+ columns: {
692
+ label: string;
693
+ display: {
694
+ type: "foreign";
695
+ localRelationRef: string;
696
+ labelExpression: string;
697
+ valueExpression: string;
698
+ } | {
699
+ type: "text";
700
+ modelFieldRef: string;
701
+ };
702
+ }[];
703
+ };
704
+ includeIdField?: boolean | undefined;
705
+ })[] | undefined;
706
+ }>, {
707
+ type: string;
708
+ name: string;
709
+ id: string;
710
+ featureRef: string;
711
+ icon?: string | undefined;
712
+ } & {
713
+ type: "crud";
714
+ modelRef: string;
715
+ form: {
716
+ fields: {
717
+ type: string;
718
+ label: string;
719
+ }[];
720
+ };
721
+ table: {
722
+ columns: {
723
+ label: string;
724
+ display: {
725
+ type: "foreign";
726
+ localRelationRef: string;
727
+ labelExpression: string;
728
+ valueExpression: string;
729
+ } | {
730
+ type: "text";
731
+ modelFieldRef: string;
732
+ };
733
+ }[];
734
+ };
735
+ disableCreate?: boolean | undefined;
736
+ embeddedForms?: ({
737
+ type: "object";
738
+ name: string;
739
+ id: string;
740
+ modelRef: string;
741
+ form: {
742
+ fields: {
743
+ type: string;
744
+ label: string;
745
+ }[];
746
+ };
747
+ includeIdField?: boolean | undefined;
748
+ } | {
749
+ type: "list";
750
+ name: string;
751
+ id: string;
752
+ modelRef: string;
753
+ form: {
754
+ fields: {
755
+ type: string;
756
+ label: string;
757
+ }[];
758
+ };
759
+ table: {
760
+ columns: {
761
+ label: string;
762
+ display: {
763
+ type: "foreign";
764
+ localRelationRef: string;
765
+ labelExpression: string;
766
+ valueExpression: string;
767
+ } | {
768
+ type: "text";
769
+ modelFieldRef: string;
770
+ };
771
+ }[];
772
+ };
773
+ includeIdField?: boolean | undefined;
774
+ })[] | undefined;
775
+ }, {
776
+ type: string;
777
+ name: string;
778
+ featureRef: string;
779
+ icon?: string | undefined;
780
+ id?: string | undefined;
781
+ } & {
782
+ type: "crud";
783
+ modelRef: string;
784
+ form: {
785
+ fields: z.objectInputType<{
786
+ type: z.ZodString;
787
+ label: z.ZodString;
788
+ }, z.ZodTypeAny, "passthrough">[];
789
+ };
790
+ table: {
791
+ columns: {
792
+ label: string;
793
+ display: {
794
+ type: "foreign";
795
+ localRelationRef: string;
796
+ labelExpression: string;
797
+ valueExpression: string;
798
+ } | {
799
+ type: "text";
800
+ modelFieldRef: string;
801
+ };
802
+ }[];
803
+ };
804
+ disableCreate?: boolean | undefined;
805
+ embeddedForms?: ({
806
+ type: "object";
807
+ name: string;
808
+ id: string;
809
+ modelRef: string;
810
+ form: {
811
+ fields: z.objectInputType<{
812
+ type: z.ZodString;
813
+ label: z.ZodString;
814
+ }, z.ZodTypeAny, "passthrough">[];
815
+ };
816
+ includeIdField?: boolean | undefined;
817
+ } | {
818
+ type: "list";
819
+ name: string;
820
+ id: string;
821
+ modelRef: string;
822
+ form: {
823
+ fields: z.objectInputType<{
824
+ type: z.ZodString;
825
+ label: z.ZodString;
826
+ }, z.ZodTypeAny, "passthrough">[];
827
+ };
828
+ table: {
829
+ columns: {
830
+ label: string;
831
+ display: {
832
+ type: "foreign";
833
+ localRelationRef: string;
834
+ labelExpression: string;
835
+ valueExpression: string;
836
+ } | {
837
+ type: "text";
838
+ modelFieldRef: string;
839
+ };
840
+ }[];
841
+ };
842
+ includeIdField?: boolean | undefined;
843
+ })[] | undefined;
844
+ }>, "many">>, ({
845
+ type: string;
846
+ name: string;
847
+ id: string;
848
+ featureRef: string;
849
+ icon?: string | undefined;
850
+ } & {
851
+ type: "crud";
852
+ modelRef: string;
853
+ form: {
854
+ fields: {
855
+ type: string;
856
+ label: string;
857
+ }[];
858
+ };
859
+ table: {
860
+ columns: {
861
+ label: string;
862
+ display: {
863
+ type: "foreign";
864
+ localRelationRef: string;
865
+ labelExpression: string;
866
+ valueExpression: string;
867
+ } | {
868
+ type: "text";
869
+ modelFieldRef: string;
870
+ };
871
+ }[];
872
+ };
873
+ disableCreate?: boolean | undefined;
874
+ embeddedForms?: ({
875
+ type: "object";
876
+ name: string;
877
+ id: string;
878
+ modelRef: string;
879
+ form: {
880
+ fields: {
881
+ type: string;
882
+ label: string;
883
+ }[];
884
+ };
885
+ includeIdField?: boolean | undefined;
886
+ } | {
887
+ type: "list";
888
+ name: string;
889
+ id: string;
890
+ modelRef: string;
891
+ form: {
892
+ fields: {
893
+ type: string;
894
+ label: string;
895
+ }[];
896
+ };
897
+ table: {
898
+ columns: {
899
+ label: string;
900
+ display: {
901
+ type: "foreign";
902
+ localRelationRef: string;
903
+ labelExpression: string;
904
+ valueExpression: string;
905
+ } | {
906
+ type: "text";
907
+ modelFieldRef: string;
908
+ };
909
+ }[];
910
+ };
911
+ includeIdField?: boolean | undefined;
912
+ })[] | undefined;
913
+ })[] | undefined, ({
914
+ type: string;
915
+ name: string;
916
+ featureRef: string;
917
+ icon?: string | undefined;
918
+ id?: string | undefined;
919
+ } & {
920
+ type: "crud";
921
+ modelRef: string;
922
+ form: {
923
+ fields: z.objectInputType<{
924
+ type: z.ZodString;
925
+ label: z.ZodString;
926
+ }, z.ZodTypeAny, "passthrough">[];
927
+ };
928
+ table: {
929
+ columns: {
930
+ label: string;
931
+ display: {
932
+ type: "foreign";
933
+ localRelationRef: string;
934
+ labelExpression: string;
935
+ valueExpression: string;
936
+ } | {
937
+ type: "text";
938
+ modelFieldRef: string;
939
+ };
940
+ }[];
941
+ };
942
+ disableCreate?: boolean | undefined;
943
+ embeddedForms?: ({
944
+ type: "object";
945
+ name: string;
946
+ id: string;
947
+ modelRef: string;
948
+ form: {
949
+ fields: z.objectInputType<{
950
+ type: z.ZodString;
951
+ label: z.ZodString;
952
+ }, z.ZodTypeAny, "passthrough">[];
953
+ };
954
+ includeIdField?: boolean | undefined;
955
+ } | {
956
+ type: "list";
957
+ name: string;
958
+ id: string;
959
+ modelRef: string;
960
+ form: {
961
+ fields: z.objectInputType<{
962
+ type: z.ZodString;
963
+ label: z.ZodString;
964
+ }, z.ZodTypeAny, "passthrough">[];
965
+ };
966
+ table: {
967
+ columns: {
968
+ label: string;
969
+ display: {
970
+ type: "foreign";
971
+ localRelationRef: string;
972
+ labelExpression: string;
973
+ valueExpression: string;
974
+ } | {
975
+ type: "text";
976
+ modelFieldRef: string;
977
+ };
978
+ }[];
979
+ };
980
+ includeIdField?: boolean | undefined;
981
+ })[] | undefined;
982
+ })[] | undefined>;
983
+ }, "strip", z.ZodTypeAny, {
984
+ enabled: boolean;
985
+ pathPrefix: string;
986
+ allowedRoles?: string[] | undefined;
987
+ sections?: ({
988
+ type: string;
989
+ name: string;
990
+ id: string;
991
+ featureRef: string;
992
+ icon?: string | undefined;
993
+ } & {
994
+ type: "crud";
995
+ modelRef: string;
996
+ form: {
997
+ fields: {
998
+ type: string;
999
+ label: string;
1000
+ }[];
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;
1013
+ };
1014
+ }[];
1015
+ };
1016
+ disableCreate?: boolean | undefined;
1017
+ embeddedForms?: ({
1018
+ type: "object";
1019
+ name: string;
1020
+ id: string;
1021
+ modelRef: string;
1022
+ form: {
1023
+ fields: {
1024
+ type: string;
1025
+ label: string;
1026
+ }[];
1027
+ };
1028
+ includeIdField?: boolean | undefined;
1029
+ } | {
1030
+ type: "list";
1031
+ name: string;
1032
+ id: string;
1033
+ modelRef: string;
1034
+ form: {
1035
+ fields: {
1036
+ type: string;
1037
+ label: string;
1038
+ }[];
1039
+ };
1040
+ table: {
1041
+ columns: {
1042
+ label: string;
1043
+ display: {
1044
+ type: "foreign";
1045
+ localRelationRef: string;
1046
+ labelExpression: string;
1047
+ valueExpression: string;
1048
+ } | {
1049
+ type: "text";
1050
+ modelFieldRef: string;
1051
+ };
1052
+ }[];
1053
+ };
1054
+ includeIdField?: boolean | undefined;
1055
+ })[] | undefined;
1056
+ })[] | undefined;
1057
+ }, {
1058
+ enabled: boolean;
1059
+ pathPrefix?: string | undefined;
1060
+ allowedRoles?: string[] | undefined;
1061
+ sections?: ({
1062
+ type: string;
1063
+ name: string;
1064
+ featureRef: string;
1065
+ icon?: string | undefined;
1066
+ id?: string | undefined;
1067
+ } & {
1068
+ type: "crud";
1069
+ modelRef: string;
1070
+ form: {
1071
+ fields: z.objectInputType<{
1072
+ type: z.ZodString;
1073
+ label: z.ZodString;
1074
+ }, z.ZodTypeAny, "passthrough">[];
1075
+ };
1076
+ table: {
1077
+ columns: {
1078
+ label: string;
1079
+ display: {
1080
+ type: "foreign";
1081
+ localRelationRef: string;
1082
+ labelExpression: string;
1083
+ valueExpression: string;
1084
+ } | {
1085
+ type: "text";
1086
+ modelFieldRef: string;
1087
+ };
1088
+ }[];
1089
+ };
1090
+ disableCreate?: boolean | undefined;
1091
+ embeddedForms?: ({
1092
+ type: "object";
1093
+ name: string;
1094
+ id: string;
1095
+ modelRef: string;
1096
+ form: {
1097
+ fields: z.objectInputType<{
1098
+ type: z.ZodString;
1099
+ label: z.ZodString;
1100
+ }, z.ZodTypeAny, "passthrough">[];
1101
+ };
1102
+ includeIdField?: boolean | undefined;
1103
+ } | {
1104
+ type: "list";
1105
+ name: string;
1106
+ id: string;
1107
+ modelRef: string;
1108
+ form: {
1109
+ fields: z.objectInputType<{
1110
+ type: z.ZodString;
1111
+ label: z.ZodString;
1112
+ }, z.ZodTypeAny, "passthrough">[];
1113
+ };
1114
+ table: {
1115
+ columns: {
1116
+ label: string;
1117
+ display: {
1118
+ type: "foreign";
1119
+ localRelationRef: string;
1120
+ labelExpression: string;
1121
+ valueExpression: string;
1122
+ } | {
1123
+ type: "text";
1124
+ modelFieldRef: string;
1125
+ };
1126
+ }[];
1127
+ };
1128
+ includeIdField?: boolean | undefined;
1129
+ })[] | undefined;
1130
+ })[] | undefined;
1131
+ }>>, {
1132
+ enabled: boolean;
1133
+ pathPrefix: string;
1134
+ allowedRoles?: string[] | undefined;
1135
+ sections?: ({
1136
+ type: string;
1137
+ name: string;
1138
+ id: string;
1139
+ featureRef: string;
1140
+ icon?: string | undefined;
1141
+ } & {
1142
+ type: "crud";
1143
+ modelRef: string;
1144
+ form: {
1145
+ fields: {
1146
+ type: string;
1147
+ label: string;
1148
+ }[];
1149
+ };
1150
+ table: {
1151
+ columns: {
1152
+ label: string;
1153
+ display: {
1154
+ type: "foreign";
1155
+ localRelationRef: string;
1156
+ labelExpression: string;
1157
+ valueExpression: string;
1158
+ } | {
1159
+ type: "text";
1160
+ modelFieldRef: string;
1161
+ };
1162
+ }[];
1163
+ };
1164
+ disableCreate?: boolean | undefined;
1165
+ embeddedForms?: ({
1166
+ type: "object";
1167
+ name: string;
1168
+ id: string;
1169
+ modelRef: string;
1170
+ form: {
1171
+ fields: {
1172
+ type: string;
1173
+ label: string;
1174
+ }[];
1175
+ };
1176
+ includeIdField?: boolean | undefined;
1177
+ } | {
1178
+ type: "list";
1179
+ name: string;
1180
+ id: string;
1181
+ modelRef: string;
1182
+ form: {
1183
+ fields: {
1184
+ type: string;
1185
+ label: string;
1186
+ }[];
1187
+ };
1188
+ table: {
1189
+ columns: {
1190
+ label: string;
1191
+ display: {
1192
+ type: "foreign";
1193
+ localRelationRef: string;
1194
+ labelExpression: string;
1195
+ valueExpression: string;
1196
+ } | {
1197
+ type: "text";
1198
+ modelFieldRef: string;
1199
+ };
1200
+ }[];
1201
+ };
1202
+ includeIdField?: boolean | undefined;
1203
+ })[] | undefined;
1204
+ })[] | undefined;
1205
+ } | undefined, {
1206
+ enabled: boolean;
1207
+ pathPrefix?: string | undefined;
1208
+ allowedRoles?: string[] | undefined;
1209
+ sections?: ({
1210
+ type: string;
1211
+ name: string;
1212
+ featureRef: string;
1213
+ icon?: string | undefined;
1214
+ id?: string | undefined;
1215
+ } & {
1216
+ type: "crud";
1217
+ modelRef: string;
1218
+ form: {
1219
+ fields: z.objectInputType<{
1220
+ type: z.ZodString;
1221
+ label: z.ZodString;
1222
+ }, z.ZodTypeAny, "passthrough">[];
1223
+ };
1224
+ table: {
1225
+ columns: {
1226
+ label: string;
1227
+ display: {
1228
+ type: "foreign";
1229
+ localRelationRef: string;
1230
+ labelExpression: string;
1231
+ valueExpression: string;
1232
+ } | {
1233
+ type: "text";
1234
+ modelFieldRef: string;
1235
+ };
1236
+ }[];
1237
+ };
1238
+ disableCreate?: boolean | undefined;
1239
+ embeddedForms?: ({
1240
+ type: "object";
1241
+ name: string;
1242
+ id: string;
1243
+ modelRef: string;
1244
+ form: {
1245
+ fields: z.objectInputType<{
1246
+ type: z.ZodString;
1247
+ label: z.ZodString;
1248
+ }, z.ZodTypeAny, "passthrough">[];
1249
+ };
1250
+ includeIdField?: boolean | undefined;
1251
+ } | {
1252
+ type: "list";
1253
+ name: string;
1254
+ id: string;
1255
+ modelRef: string;
1256
+ form: {
1257
+ fields: z.objectInputType<{
1258
+ type: z.ZodString;
1259
+ label: z.ZodString;
1260
+ }, z.ZodTypeAny, "passthrough">[];
1261
+ };
1262
+ table: {
1263
+ columns: {
1264
+ label: string;
1265
+ display: {
1266
+ type: "foreign";
1267
+ localRelationRef: string;
1268
+ labelExpression: string;
1269
+ valueExpression: string;
1270
+ } | {
1271
+ type: "text";
1272
+ modelFieldRef: string;
1273
+ };
1274
+ }[];
1275
+ };
1276
+ includeIdField?: boolean | undefined;
1277
+ })[] | undefined;
1278
+ })[] | undefined;
1279
+ } | undefined>;
1280
+ id: z.ZodDefault<z.ZodString>;
1281
+ name: z.ZodString;
1282
+ packageLocation: z.ZodOptional<z.ZodString>;
1283
+ }, "strip", z.ZodTypeAny, {
1284
+ type: "web";
1285
+ name: string;
1286
+ description: string;
1287
+ id: string;
1288
+ title: string;
1289
+ packageLocation?: string | undefined;
1290
+ enableSubscriptions?: boolean | undefined;
1291
+ allowedRoles?: string[] | undefined;
1292
+ includeAuth?: boolean | undefined;
1293
+ includeUploadComponents?: boolean | undefined;
1294
+ adminApp?: {
1295
+ enabled: boolean;
1296
+ pathPrefix: string;
1297
+ allowedRoles?: string[] | undefined;
1298
+ sections?: ({
1299
+ type: string;
1300
+ name: string;
1301
+ id: string;
1302
+ featureRef: string;
1303
+ icon?: string | undefined;
1304
+ } & {
1305
+ type: "crud";
1306
+ modelRef: string;
1307
+ form: {
1308
+ fields: {
1309
+ type: string;
1310
+ label: string;
1311
+ }[];
1312
+ };
1313
+ table: {
1314
+ columns: {
1315
+ label: string;
1316
+ display: {
1317
+ type: "foreign";
1318
+ localRelationRef: string;
1319
+ labelExpression: string;
1320
+ valueExpression: string;
1321
+ } | {
1322
+ type: "text";
1323
+ modelFieldRef: string;
1324
+ };
1325
+ }[];
1326
+ };
1327
+ disableCreate?: boolean | undefined;
1328
+ embeddedForms?: ({
1329
+ type: "object";
1330
+ name: string;
1331
+ id: string;
1332
+ modelRef: string;
1333
+ form: {
1334
+ fields: {
1335
+ type: string;
1336
+ label: string;
1337
+ }[];
1338
+ };
1339
+ includeIdField?: boolean | undefined;
1340
+ } | {
1341
+ type: "list";
1342
+ name: string;
1343
+ id: string;
1344
+ modelRef: string;
1345
+ form: {
1346
+ fields: {
1347
+ type: string;
1348
+ label: string;
1349
+ }[];
1350
+ };
1351
+ table: {
1352
+ columns: {
1353
+ label: string;
1354
+ display: {
1355
+ type: "foreign";
1356
+ localRelationRef: string;
1357
+ labelExpression: string;
1358
+ valueExpression: string;
1359
+ } | {
1360
+ type: "text";
1361
+ modelFieldRef: string;
1362
+ };
1363
+ }[];
1364
+ };
1365
+ includeIdField?: boolean | undefined;
1366
+ })[] | undefined;
1367
+ })[] | undefined;
1368
+ } | undefined;
1369
+ }, {
1370
+ type: "web";
1371
+ name: string;
1372
+ description?: string | undefined;
1373
+ id?: string | undefined;
1374
+ packageLocation?: string | undefined;
1375
+ enableSubscriptions?: boolean | undefined;
1376
+ allowedRoles?: string[] | undefined;
1377
+ includeAuth?: boolean | undefined;
1378
+ title?: string | undefined;
1379
+ includeUploadComponents?: boolean | undefined;
1380
+ adminApp?: {
1381
+ enabled: boolean;
1382
+ pathPrefix?: string | undefined;
1383
+ allowedRoles?: string[] | undefined;
1384
+ sections?: ({
1385
+ type: string;
1386
+ name: string;
1387
+ featureRef: string;
1388
+ icon?: string | undefined;
1389
+ id?: string | undefined;
1390
+ } & {
1391
+ type: "crud";
1392
+ modelRef: string;
1393
+ form: {
1394
+ fields: z.objectInputType<{
1395
+ type: z.ZodString;
1396
+ label: z.ZodString;
1397
+ }, z.ZodTypeAny, "passthrough">[];
1398
+ };
1399
+ table: {
1400
+ columns: {
1401
+ label: string;
1402
+ display: {
1403
+ type: "foreign";
1404
+ localRelationRef: string;
1405
+ labelExpression: string;
1406
+ valueExpression: string;
1407
+ } | {
1408
+ type: "text";
1409
+ modelFieldRef: string;
1410
+ };
1411
+ }[];
1412
+ };
1413
+ disableCreate?: boolean | undefined;
1414
+ embeddedForms?: ({
1415
+ type: "object";
1416
+ name: string;
1417
+ id: string;
1418
+ modelRef: string;
1419
+ form: {
1420
+ fields: z.objectInputType<{
1421
+ type: z.ZodString;
1422
+ label: z.ZodString;
1423
+ }, z.ZodTypeAny, "passthrough">[];
1424
+ };
1425
+ includeIdField?: boolean | undefined;
1426
+ } | {
1427
+ type: "list";
1428
+ name: string;
1429
+ id: string;
1430
+ modelRef: string;
1431
+ form: {
1432
+ fields: z.objectInputType<{
1433
+ type: z.ZodString;
1434
+ label: z.ZodString;
1435
+ }, z.ZodTypeAny, "passthrough">[];
1436
+ };
1437
+ table: {
1438
+ columns: {
1439
+ label: string;
1440
+ display: {
1441
+ type: "foreign";
1442
+ localRelationRef: string;
1443
+ labelExpression: string;
1444
+ valueExpression: string;
1445
+ } | {
1446
+ type: "text";
1447
+ modelFieldRef: string;
1448
+ };
1449
+ }[];
1450
+ };
1451
+ includeIdField?: boolean | undefined;
1452
+ })[] | undefined;
1453
+ })[] | undefined;
1454
+ } | undefined;
1455
+ }>;
1456
+ export type WebAppConfig = def.InferOutput<typeof createWebAppSchema>;
1457
+ export declare const webAppEntryType: import("../types.js").AppEntryType<{
1458
+ type: "web";
1459
+ name: string;
1460
+ description: string;
1461
+ id: string;
1462
+ title: string;
1463
+ packageLocation?: string | undefined;
1464
+ enableSubscriptions?: boolean | undefined;
1465
+ allowedRoles?: string[] | undefined;
1466
+ includeAuth?: boolean | undefined;
1467
+ includeUploadComponents?: boolean | undefined;
1468
+ adminApp?: {
1469
+ enabled: boolean;
1470
+ pathPrefix: string;
1471
+ allowedRoles?: string[] | undefined;
1472
+ sections?: ({
1473
+ type: string;
1474
+ name: string;
1475
+ id: string;
1476
+ featureRef: string;
1477
+ icon?: string | undefined;
1478
+ } & {
1479
+ type: "crud";
1480
+ modelRef: string;
1481
+ form: {
1482
+ fields: {
1483
+ type: string;
1484
+ label: string;
1485
+ }[];
1486
+ };
1487
+ table: {
1488
+ columns: {
1489
+ label: string;
1490
+ display: {
1491
+ type: "foreign";
1492
+ localRelationRef: string;
1493
+ labelExpression: string;
1494
+ valueExpression: string;
1495
+ } | {
1496
+ type: "text";
1497
+ modelFieldRef: string;
1498
+ };
1499
+ }[];
1500
+ };
1501
+ disableCreate?: boolean | undefined;
1502
+ embeddedForms?: ({
1503
+ type: "object";
1504
+ name: string;
1505
+ id: string;
1506
+ modelRef: string;
1507
+ form: {
1508
+ fields: {
1509
+ type: string;
1510
+ label: string;
1511
+ }[];
1512
+ };
1513
+ includeIdField?: boolean | undefined;
1514
+ } | {
1515
+ type: "list";
1516
+ name: string;
1517
+ id: string;
1518
+ modelRef: string;
1519
+ form: {
1520
+ fields: {
1521
+ type: string;
1522
+ label: string;
1523
+ }[];
1524
+ };
1525
+ table: {
1526
+ columns: {
1527
+ label: string;
1528
+ display: {
1529
+ type: "foreign";
1530
+ localRelationRef: string;
1531
+ labelExpression: string;
1532
+ valueExpression: string;
1533
+ } | {
1534
+ type: "text";
1535
+ modelFieldRef: string;
1536
+ };
1537
+ }[];
1538
+ };
1539
+ includeIdField?: boolean | undefined;
1540
+ })[] | undefined;
1541
+ })[] | undefined;
1542
+ } | undefined;
1543
+ }>;
1544
+ //# sourceMappingURL=web-app.d.ts.map