@baseplate-dev/project-builder-lib 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/dist/definition/model/model-field-utils.d.ts.map +1 -1
  2. package/dist/definition/model/model-field-utils.js +3 -7
  3. package/dist/definition/model/model-field-utils.js.map +1 -1
  4. package/dist/definition/plugins/plugin-utils.d.ts +3 -2
  5. package/dist/definition/plugins/plugin-utils.d.ts.map +1 -1
  6. package/dist/definition/plugins/plugin-utils.js +15 -6
  7. package/dist/definition/plugins/plugin-utils.js.map +1 -1
  8. package/dist/definition/project-definition-container.test-utils.d.ts.map +1 -1
  9. package/dist/definition/project-definition-container.test-utils.js +2 -2
  10. package/dist/definition/project-definition-container.test-utils.js.map +1 -1
  11. package/dist/migrations/index.d.ts.map +1 -1
  12. package/dist/migrations/index.js +2 -0
  13. package/dist/migrations/index.js.map +1 -1
  14. package/dist/migrations/migration-021-migrate-bullmq-to-plugin.d.ts +42 -0
  15. package/dist/migrations/migration-021-migrate-bullmq-to-plugin.d.ts.map +1 -0
  16. package/dist/migrations/migration-021-migrate-bullmq-to-plugin.js +76 -0
  17. package/dist/migrations/migration-021-migrate-bullmq-to-plugin.js.map +1 -0
  18. package/dist/parser/parser.d.ts.map +1 -1
  19. package/dist/parser/parser.js +1 -0
  20. package/dist/parser/parser.js.map +1 -1
  21. package/dist/plugins/metadata/types.d.ts +7 -126
  22. package/dist/plugins/metadata/types.d.ts.map +1 -1
  23. package/dist/plugins/plugins.test-utils.d.ts +0 -8
  24. package/dist/plugins/plugins.test-utils.d.ts.map +1 -1
  25. package/dist/plugins/plugins.test-utils.js +0 -19
  26. package/dist/plugins/plugins.test-utils.js.map +1 -1
  27. package/dist/references/collect-refs.d.ts +20 -0
  28. package/dist/references/collect-refs.d.ts.map +1 -0
  29. package/dist/references/collect-refs.js +67 -0
  30. package/dist/references/collect-refs.js.map +1 -0
  31. package/dist/references/definition-ref-builder.d.ts +24 -154
  32. package/dist/references/definition-ref-builder.d.ts.map +1 -1
  33. package/dist/references/definition-ref-builder.js +0 -207
  34. package/dist/references/definition-ref-builder.js.map +1 -1
  35. package/dist/references/deserialize-schema.d.ts +2 -2
  36. package/dist/references/deserialize-schema.d.ts.map +1 -1
  37. package/dist/references/deserialize-schema.js +3 -0
  38. package/dist/references/deserialize-schema.js.map +1 -1
  39. package/dist/references/extend-parser-context-with-refs.d.ts +12 -7
  40. package/dist/references/extend-parser-context-with-refs.d.ts.map +1 -1
  41. package/dist/references/extend-parser-context-with-refs.js +111 -58
  42. package/dist/references/extend-parser-context-with-refs.js.map +1 -1
  43. package/dist/references/extract-definition-refs.d.ts +20 -13
  44. package/dist/references/extract-definition-refs.d.ts.map +1 -1
  45. package/dist/references/extract-definition-refs.js +50 -58
  46. package/dist/references/extract-definition-refs.js.map +1 -1
  47. package/dist/references/fix-ref-deletions.js.map +1 -1
  48. package/dist/references/index.d.ts +1 -0
  49. package/dist/references/index.d.ts.map +1 -1
  50. package/dist/references/index.js +1 -0
  51. package/dist/references/index.js.map +1 -1
  52. package/dist/references/markers.d.ts +28 -14
  53. package/dist/references/markers.d.ts.map +1 -1
  54. package/dist/references/markers.js.map +1 -1
  55. package/dist/references/parse-schema-with-references.d.ts.map +1 -1
  56. package/dist/references/parse-schema-with-references.js +0 -2
  57. package/dist/references/parse-schema-with-references.js.map +1 -1
  58. package/dist/references/ref-context-slot.d.ts +84 -0
  59. package/dist/references/ref-context-slot.d.ts.map +1 -0
  60. package/dist/references/ref-context-slot.js +38 -0
  61. package/dist/references/ref-context-slot.js.map +1 -0
  62. package/dist/references/resolve-slots.d.ts +38 -0
  63. package/dist/references/resolve-slots.d.ts.map +1 -0
  64. package/dist/references/resolve-slots.js +86 -0
  65. package/dist/references/resolve-slots.js.map +1 -0
  66. package/dist/references/resolve-zod-ref-payload-names.d.ts +2 -2
  67. package/dist/references/resolve-zod-ref-payload-names.d.ts.map +1 -1
  68. package/dist/references/resolve-zod-ref-payload-names.js +18 -7
  69. package/dist/references/resolve-zod-ref-payload-names.js.map +1 -1
  70. package/dist/references/serialize-schema.d.ts +1 -1
  71. package/dist/references/serialize-schema.d.ts.map +1 -1
  72. package/dist/references/serialize-schema.js +3 -1
  73. package/dist/references/serialize-schema.js.map +1 -1
  74. package/dist/references/types.d.ts +5 -6
  75. package/dist/references/types.d.ts.map +1 -1
  76. package/dist/schema/apps/backend/index.d.ts +4 -22
  77. package/dist/schema/apps/backend/index.d.ts.map +1 -1
  78. package/dist/schema/apps/backend/index.js +3 -4
  79. package/dist/schema/apps/backend/index.js.map +1 -1
  80. package/dist/schema/apps/base.d.ts +4 -12
  81. package/dist/schema/apps/base.d.ts.map +1 -1
  82. package/dist/schema/apps/web/admin/admin.d.ts +270 -1699
  83. package/dist/schema/apps/web/admin/admin.d.ts.map +1 -1
  84. package/dist/schema/apps/web/admin/admin.js +9 -10
  85. package/dist/schema/apps/web/admin/admin.js.map +1 -1
  86. package/dist/schema/apps/web/admin/sections/base.d.ts +2 -14
  87. package/dist/schema/apps/web/admin/sections/base.d.ts.map +1 -1
  88. package/dist/schema/apps/web/admin/sections/crud-actions/admin-action-spec.d.ts +2 -2
  89. package/dist/schema/apps/web/admin/sections/crud-actions/admin-action-spec.d.ts.map +1 -1
  90. package/dist/schema/apps/web/admin/sections/crud-actions/admin-action-spec.js.map +1 -1
  91. package/dist/schema/apps/web/admin/sections/crud-actions/admin-crud-action.d.ts +13 -24
  92. package/dist/schema/apps/web/admin/sections/crud-actions/admin-crud-action.d.ts.map +1 -1
  93. package/dist/schema/apps/web/admin/sections/crud-actions/admin-crud-action.js +10 -19
  94. package/dist/schema/apps/web/admin/sections/crud-actions/admin-crud-action.js.map +1 -1
  95. package/dist/schema/apps/web/admin/sections/crud-actions/built-in-actions.d.ts +10 -22
  96. package/dist/schema/apps/web/admin/sections/crud-actions/built-in-actions.d.ts.map +1 -1
  97. package/dist/schema/apps/web/admin/sections/crud-actions/types.d.ts +8 -12
  98. package/dist/schema/apps/web/admin/sections/crud-actions/types.d.ts.map +1 -1
  99. package/dist/schema/apps/web/admin/sections/crud-actions/types.js +1 -1
  100. package/dist/schema/apps/web/admin/sections/crud-actions/types.js.map +1 -1
  101. package/dist/schema/apps/web/admin/sections/crud-columns/admin-column-spec.d.ts +2 -3
  102. package/dist/schema/apps/web/admin/sections/crud-columns/admin-column-spec.d.ts.map +1 -1
  103. package/dist/schema/apps/web/admin/sections/crud-columns/admin-column-spec.js.map +1 -1
  104. package/dist/schema/apps/web/admin/sections/crud-columns/admin-crud-column.d.ts +11 -23
  105. package/dist/schema/apps/web/admin/sections/crud-columns/admin-crud-column.d.ts.map +1 -1
  106. package/dist/schema/apps/web/admin/sections/crud-columns/admin-crud-column.js +12 -20
  107. package/dist/schema/apps/web/admin/sections/crud-columns/admin-crud-column.js.map +1 -1
  108. package/dist/schema/apps/web/admin/sections/crud-columns/built-in-columns.d.ts +8 -30
  109. package/dist/schema/apps/web/admin/sections/crud-columns/built-in-columns.d.ts.map +1 -1
  110. package/dist/schema/apps/web/admin/sections/crud-columns/built-in-columns.js +6 -6
  111. package/dist/schema/apps/web/admin/sections/crud-columns/built-in-columns.js.map +1 -1
  112. package/dist/schema/apps/web/admin/sections/crud-columns/types.d.ts +15 -12
  113. package/dist/schema/apps/web/admin/sections/crud-columns/types.d.ts.map +1 -1
  114. package/dist/schema/apps/web/admin/sections/crud-columns/types.js +1 -1
  115. package/dist/schema/apps/web/admin/sections/crud-columns/types.js.map +1 -1
  116. package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.d.ts +12 -23
  117. package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.d.ts.map +1 -1
  118. package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.js +13 -20
  119. package/dist/schema/apps/web/admin/sections/crud-form/admin-crud-input.js.map +1 -1
  120. package/dist/schema/apps/web/admin/sections/crud-form/admin-input-spec.d.ts +2 -3
  121. package/dist/schema/apps/web/admin/sections/crud-form/admin-input-spec.d.ts.map +1 -1
  122. package/dist/schema/apps/web/admin/sections/crud-form/admin-input-spec.js.map +1 -1
  123. package/dist/schema/apps/web/admin/sections/crud-form/built-in-input.d.ts +40 -123
  124. package/dist/schema/apps/web/admin/sections/crud-form/built-in-input.d.ts.map +1 -1
  125. package/dist/schema/apps/web/admin/sections/crud-form/built-in-input.js +15 -14
  126. package/dist/schema/apps/web/admin/sections/crud-form/built-in-input.js.map +1 -1
  127. package/dist/schema/apps/web/admin/sections/crud-form/types.d.ts +17 -12
  128. package/dist/schema/apps/web/admin/sections/crud-form/types.d.ts.map +1 -1
  129. package/dist/schema/apps/web/admin/sections/crud-form/types.js +1 -1
  130. package/dist/schema/apps/web/admin/sections/crud-form/types.js.map +1 -1
  131. package/dist/schema/apps/web/admin/sections/crud.d.ts +202 -930
  132. package/dist/schema/apps/web/admin/sections/crud.d.ts.map +1 -1
  133. package/dist/schema/apps/web/admin/sections/crud.js +32 -26
  134. package/dist/schema/apps/web/admin/sections/crud.js.map +1 -1
  135. package/dist/schema/apps/web/web-app.d.ts +196 -1257
  136. package/dist/schema/apps/web/web-app.d.ts.map +1 -1
  137. package/dist/schema/apps/web/web-app.js +4 -4
  138. package/dist/schema/apps/web/web-app.js.map +1 -1
  139. package/dist/schema/creator/extend-parser-context-with-defaults.d.ts +2 -2
  140. package/dist/schema/creator/extend-parser-context-with-defaults.d.ts.map +1 -1
  141. package/dist/schema/creator/extend-parser-context-with-defaults.js +8 -15
  142. package/dist/schema/creator/extend-parser-context-with-defaults.js.map +1 -1
  143. package/dist/schema/creator/infer-types.d.ts +21 -4
  144. package/dist/schema/creator/infer-types.d.ts.map +1 -1
  145. package/dist/schema/creator/schema-creator.d.ts +46 -2
  146. package/dist/schema/creator/schema-creator.d.ts.map +1 -1
  147. package/dist/schema/creator/schema-creator.js +53 -0
  148. package/dist/schema/creator/schema-creator.js.map +1 -1
  149. package/dist/schema/creator/types.d.ts +11 -6
  150. package/dist/schema/creator/types.d.ts.map +1 -1
  151. package/dist/schema/features/feature.d.ts +14 -22
  152. package/dist/schema/features/feature.d.ts.map +1 -1
  153. package/dist/schema/models/enums.d.ts +34 -84
  154. package/dist/schema/models/enums.d.ts.map +1 -1
  155. package/dist/schema/models/enums.js +8 -8
  156. package/dist/schema/models/enums.js.map +1 -1
  157. package/dist/schema/models/graphql.d.ts +16 -163
  158. package/dist/schema/models/graphql.d.ts.map +1 -1
  159. package/dist/schema/models/graphql.js +8 -6
  160. package/dist/schema/models/graphql.js.map +1 -1
  161. package/dist/schema/models/index.d.ts +293 -1827
  162. package/dist/schema/models/index.d.ts.map +1 -1
  163. package/dist/schema/models/index.js +53 -54
  164. package/dist/schema/models/index.js.map +1 -1
  165. package/dist/schema/models/transformers/built-in-transformers.d.ts +20 -58
  166. package/dist/schema/models/transformers/built-in-transformers.d.ts.map +1 -1
  167. package/dist/schema/models/transformers/built-in-transformers.js +8 -9
  168. package/dist/schema/models/transformers/built-in-transformers.js.map +1 -1
  169. package/dist/schema/models/transformers/model-transformer-spec.d.ts +3 -4
  170. package/dist/schema/models/transformers/model-transformer-spec.d.ts.map +1 -1
  171. package/dist/schema/models/transformers/model-transformer-spec.js +3 -4
  172. package/dist/schema/models/transformers/model-transformer-spec.js.map +1 -1
  173. package/dist/schema/models/transformers/transformers.d.ts +7 -16
  174. package/dist/schema/models/transformers/transformers.d.ts.map +1 -1
  175. package/dist/schema/models/transformers/transformers.js +8 -13
  176. package/dist/schema/models/transformers/transformers.js.map +1 -1
  177. package/dist/schema/models/transformers/types.d.ts +14 -10
  178. package/dist/schema/models/transformers/types.d.ts.map +1 -1
  179. package/dist/schema/models/transformers/types.js +1 -1
  180. package/dist/schema/models/transformers/types.js.map +1 -1
  181. package/dist/schema/plugins/definition.d.ts +67 -95
  182. package/dist/schema/plugins/definition.d.ts.map +1 -1
  183. package/dist/schema/plugins/definition.js +8 -11
  184. package/dist/schema/plugins/definition.js.map +1 -1
  185. package/dist/schema/project-definition.d.ts +869 -4669
  186. package/dist/schema/project-definition.d.ts.map +1 -1
  187. package/dist/schema/project-definition.js +7 -9
  188. package/dist/schema/project-definition.js.map +1 -1
  189. package/dist/schema/settings/general.d.ts +3 -33
  190. package/dist/schema/settings/general.d.ts.map +1 -1
  191. package/dist/schema/settings/infrastructure.d.ts +2 -24
  192. package/dist/schema/settings/infrastructure.d.ts.map +1 -1
  193. package/dist/schema/settings/monorepo.d.ts +1 -15
  194. package/dist/schema/settings/monorepo.d.ts.map +1 -1
  195. package/dist/schema/settings/settings.d.ts +105 -242
  196. package/dist/schema/settings/settings.d.ts.map +1 -1
  197. package/dist/schema/settings/template-extractor.d.ts +1 -36
  198. package/dist/schema/settings/template-extractor.d.ts.map +1 -1
  199. package/dist/schema/settings/theme.d.ts +175 -259
  200. package/dist/schema/settings/theme.d.ts.map +1 -1
  201. package/dist/schema/settings/theme.js +1 -1
  202. package/dist/schema/settings/theme.js.map +1 -1
  203. package/dist/tools/model-merger/model-merger.d.ts +28 -28
  204. package/dist/tools/model-merger/model-merger.d.ts.map +1 -1
  205. package/dist/tools/model-merger/model-merger.js +5 -2
  206. package/dist/tools/model-merger/model-merger.js.map +1 -1
  207. package/dist/utils/theme.d.ts.map +1 -1
  208. package/dist/utils/theme.js +3 -4
  209. package/dist/utils/theme.js.map +1 -1
  210. package/dist/web/hooks/use-definition-schema.d.ts +9 -2
  211. package/dist/web/hooks/use-definition-schema.d.ts.map +1 -1
  212. package/dist/web/hooks/use-definition-schema.js +7 -1
  213. package/dist/web/hooks/use-definition-schema.js.map +1 -1
  214. package/package.json +7 -7
  215. package/dist/index.js.map +0 -1
@@ -1,1946 +1,509 @@
1
1
  import { z } from 'zod';
2
2
  import type { def } from '#src/schema/index.js';
3
- export declare const createWebAdminSectionSchema: (context: import("#src/schema/index.js").DefinitionSchemaParserContext) => z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodObject<{
4
- id: z.ZodDefault<z.ZodString>;
5
- name: z.ZodString;
6
- featureRef: z.ZodEffects<z.ZodString, string, string>;
7
- icon: z.ZodOptional<z.ZodString>;
8
- type: z.ZodString;
9
- }, "strip", z.ZodTypeAny, {
10
- type: string;
11
- name: string;
3
+ export declare const createWebAdminSectionSchema: import("#src/schema/index.js").DefinitionSchemaCreatorWithSlots<z.ZodType<{
12
4
  id: string;
13
- featureRef: string;
14
- icon?: string | undefined;
15
- }, {
16
- type: string;
17
5
  name: string;
18
6
  featureRef: string;
7
+ type: string;
19
8
  icon?: string | undefined;
20
- id?: string | undefined;
21
- }>, z.ZodObject<{
22
- type: z.ZodLiteral<"crud">;
23
- modelRef: z.ZodEffects<z.ZodString, string, string>;
24
- nameFieldRef: z.ZodEffects<z.ZodString, string, string>;
25
- disableCreate: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
26
- table: z.ZodObject<{
27
- columns: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
28
- id: z.ZodDefault<z.ZodString>;
29
- type: z.ZodString;
30
- label: z.ZodString;
31
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
32
- id: z.ZodDefault<z.ZodString>;
33
- type: z.ZodString;
34
- label: z.ZodString;
35
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
36
- id: z.ZodDefault<z.ZodString>;
37
- type: z.ZodString;
38
- label: z.ZodString;
39
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
40
- id: z.ZodDefault<z.ZodString>;
41
- type: z.ZodString;
42
- label: z.ZodString;
43
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
44
- id: z.ZodDefault<z.ZodString>;
45
- type: z.ZodString;
46
- label: z.ZodString;
47
- }, z.ZodTypeAny, "passthrough">>, {
48
- type: string;
49
- id: string;
50
- label: string;
51
- }, z.objectInputType<{
52
- id: z.ZodDefault<z.ZodString>;
53
- type: z.ZodString;
54
- label: z.ZodString;
55
- }, z.ZodTypeAny, "passthrough">>, "many">;
56
- actions: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
57
- id: z.ZodDefault<z.ZodString>;
58
- type: z.ZodString;
59
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
60
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
61
- id: z.ZodDefault<z.ZodString>;
62
- type: z.ZodString;
63
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
64
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
65
- id: z.ZodDefault<z.ZodString>;
66
- type: z.ZodString;
67
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
68
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
69
- id: z.ZodDefault<z.ZodString>;
70
- type: z.ZodString;
71
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
72
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
73
- id: z.ZodDefault<z.ZodString>;
74
- type: z.ZodString;
75
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
76
- }, z.ZodTypeAny, "passthrough">>, {
77
- type: string;
78
- id: string;
79
- position: "inline" | "dropdown";
80
- }, z.objectInputType<{
81
- id: z.ZodDefault<z.ZodString>;
82
- type: z.ZodString;
83
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
84
- }, z.ZodTypeAny, "passthrough">>, "many">>, {
85
- type: string;
86
- id: string;
87
- position: "inline" | "dropdown";
88
- }[] | undefined, z.objectInputType<{
89
- id: z.ZodDefault<z.ZodString>;
90
- type: z.ZodString;
91
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
92
- }, z.ZodTypeAny, "passthrough">[] | undefined>;
93
- }, "strip", z.ZodTypeAny, {
9
+ } & {
10
+ type: "crud";
11
+ modelRef: string;
12
+ nameFieldRef: string;
13
+ table: {
94
14
  columns: {
95
- type: string;
15
+ [x: string]: unknown;
96
16
  id: string;
17
+ type: string;
97
18
  label: string;
98
19
  }[];
99
20
  actions?: {
100
- type: string;
21
+ [x: string]: unknown;
101
22
  id: string;
23
+ type: string;
102
24
  position: "inline" | "dropdown";
103
25
  }[] | undefined;
104
- }, {
105
- columns: z.objectInputType<{
106
- id: z.ZodDefault<z.ZodString>;
107
- type: z.ZodString;
108
- label: z.ZodString;
109
- }, z.ZodTypeAny, "passthrough">[];
110
- actions?: z.objectInputType<{
111
- id: z.ZodDefault<z.ZodString>;
112
- type: z.ZodString;
113
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
114
- }, z.ZodTypeAny, "passthrough">[] | undefined;
115
- }>;
116
- form: z.ZodObject<{
117
- fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
118
- id: z.ZodDefault<z.ZodString>;
119
- type: z.ZodString;
120
- label: z.ZodString;
121
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
122
- id: z.ZodDefault<z.ZodString>;
123
- type: z.ZodString;
124
- label: z.ZodString;
125
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
126
- id: z.ZodDefault<z.ZodString>;
127
- type: z.ZodString;
128
- label: z.ZodString;
129
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
130
- id: z.ZodDefault<z.ZodString>;
131
- type: z.ZodString;
132
- label: z.ZodString;
133
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
134
- id: z.ZodDefault<z.ZodString>;
135
- type: z.ZodString;
136
- label: z.ZodString;
137
- }, z.ZodTypeAny, "passthrough">>, {
138
- type: string;
139
- id: string;
140
- label: string;
141
- }, z.objectInputType<{
142
- id: z.ZodDefault<z.ZodString>;
143
- type: z.ZodString;
144
- label: z.ZodString;
145
- }, z.ZodTypeAny, "passthrough">>, "many">;
146
- }, "strip", z.ZodTypeAny, {
26
+ };
27
+ form: {
147
28
  fields: {
148
- type: string;
29
+ [x: string]: unknown;
149
30
  id: string;
31
+ type: string;
150
32
  label: string;
151
33
  }[];
152
- }, {
153
- fields: z.objectInputType<{
154
- id: z.ZodDefault<z.ZodString>;
155
- type: z.ZodString;
156
- label: z.ZodString;
157
- }, z.ZodTypeAny, "passthrough">[];
158
- }>;
159
- embeddedForms: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
160
- id: z.ZodString;
161
- name: z.ZodString;
162
- modelRef: z.ZodEffects<z.ZodString, string, string>;
163
- includeIdField: z.ZodOptional<z.ZodBoolean>;
164
- type: z.ZodLiteral<"object">;
165
- form: z.ZodObject<{
166
- fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
167
- id: z.ZodDefault<z.ZodString>;
168
- type: z.ZodString;
169
- label: z.ZodString;
170
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
171
- id: z.ZodDefault<z.ZodString>;
172
- type: z.ZodString;
173
- label: z.ZodString;
174
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
175
- id: z.ZodDefault<z.ZodString>;
176
- type: z.ZodString;
177
- label: z.ZodString;
178
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
179
- id: z.ZodDefault<z.ZodString>;
180
- type: z.ZodString;
181
- label: z.ZodString;
182
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
183
- id: z.ZodDefault<z.ZodString>;
184
- type: z.ZodString;
185
- label: z.ZodString;
186
- }, z.ZodTypeAny, "passthrough">>, {
187
- type: string;
188
- id: string;
189
- label: string;
190
- }, z.objectInputType<{
191
- id: z.ZodDefault<z.ZodString>;
192
- type: z.ZodString;
193
- label: z.ZodString;
194
- }, z.ZodTypeAny, "passthrough">>, "many">;
195
- }, "strip", z.ZodTypeAny, {
196
- fields: {
197
- type: string;
198
- id: string;
199
- label: string;
200
- }[];
201
- }, {
202
- fields: z.objectInputType<{
203
- id: z.ZodDefault<z.ZodString>;
204
- type: z.ZodString;
205
- label: z.ZodString;
206
- }, z.ZodTypeAny, "passthrough">[];
207
- }>;
208
- }, "strip", z.ZodTypeAny, {
209
- type: "object";
210
- name: string;
34
+ };
35
+ disableCreate?: boolean | undefined;
36
+ embeddedForms?: ({
211
37
  id: string;
38
+ name: string;
212
39
  modelRef: string;
40
+ type: "object";
213
41
  form: {
214
42
  fields: {
215
- type: string;
43
+ [x: string]: unknown;
216
44
  id: string;
45
+ type: string;
217
46
  label: string;
218
47
  }[];
219
48
  };
220
49
  includeIdField?: boolean | undefined;
221
- }, {
222
- type: "object";
223
- name: string;
50
+ } | {
224
51
  id: string;
225
- modelRef: string;
226
- form: {
227
- fields: z.objectInputType<{
228
- id: z.ZodDefault<z.ZodString>;
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.ZodEffects<z.ZodEffects<z.ZodObject<{
242
- id: z.ZodDefault<z.ZodString>;
243
- type: z.ZodString;
244
- label: z.ZodString;
245
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
246
- id: z.ZodDefault<z.ZodString>;
247
- type: z.ZodString;
248
- label: z.ZodString;
249
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
250
- id: z.ZodDefault<z.ZodString>;
251
- type: z.ZodString;
252
- label: z.ZodString;
253
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
254
- id: z.ZodDefault<z.ZodString>;
255
- type: z.ZodString;
256
- label: z.ZodString;
257
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
258
- id: z.ZodDefault<z.ZodString>;
259
- type: z.ZodString;
260
- label: z.ZodString;
261
- }, z.ZodTypeAny, "passthrough">>, {
262
- type: string;
263
- id: string;
264
- label: string;
265
- }, z.objectInputType<{
266
- id: z.ZodDefault<z.ZodString>;
267
- type: z.ZodString;
268
- label: z.ZodString;
269
- }, z.ZodTypeAny, "passthrough">>, "many">;
270
- }, "strip", z.ZodTypeAny, {
271
- columns: {
272
- type: string;
273
- id: string;
274
- label: string;
275
- }[];
276
- }, {
277
- columns: z.objectInputType<{
278
- id: z.ZodDefault<z.ZodString>;
279
- type: z.ZodString;
280
- label: z.ZodString;
281
- }, z.ZodTypeAny, "passthrough">[];
282
- }>;
283
- form: z.ZodObject<{
284
- fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
285
- id: z.ZodDefault<z.ZodString>;
286
- type: z.ZodString;
287
- label: z.ZodString;
288
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
289
- id: z.ZodDefault<z.ZodString>;
290
- type: z.ZodString;
291
- label: z.ZodString;
292
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
293
- id: z.ZodDefault<z.ZodString>;
294
- type: z.ZodString;
295
- label: z.ZodString;
296
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
297
- id: z.ZodDefault<z.ZodString>;
298
- type: z.ZodString;
299
- label: z.ZodString;
300
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
301
- id: z.ZodDefault<z.ZodString>;
302
- type: z.ZodString;
303
- label: z.ZodString;
304
- }, z.ZodTypeAny, "passthrough">>, {
305
- type: string;
306
- id: string;
307
- label: string;
308
- }, z.objectInputType<{
309
- id: z.ZodDefault<z.ZodString>;
310
- type: z.ZodString;
311
- label: z.ZodString;
312
- }, z.ZodTypeAny, "passthrough">>, "many">;
313
- }, "strip", z.ZodTypeAny, {
314
- fields: {
315
- type: string;
316
- id: string;
317
- label: string;
318
- }[];
319
- }, {
320
- fields: z.objectInputType<{
321
- id: z.ZodDefault<z.ZodString>;
322
- type: z.ZodString;
323
- label: z.ZodString;
324
- }, z.ZodTypeAny, "passthrough">[];
325
- }>;
326
- }, "strip", z.ZodTypeAny, {
327
- type: "list";
328
52
  name: string;
329
- id: string;
330
53
  modelRef: string;
331
- form: {
332
- fields: {
333
- type: string;
334
- id: string;
335
- label: string;
336
- }[];
337
- };
54
+ type: "list";
338
55
  table: {
339
56
  columns: {
340
- type: string;
57
+ [x: string]: unknown;
341
58
  id: string;
342
- label: string;
343
- }[];
344
- };
345
- includeIdField?: boolean | undefined;
346
- }, {
347
- type: "list";
348
- name: string;
349
- id: string;
350
- modelRef: string;
351
- form: {
352
- fields: z.objectInputType<{
353
- id: z.ZodDefault<z.ZodString>;
354
- type: z.ZodString;
355
- label: z.ZodString;
356
- }, z.ZodTypeAny, "passthrough">[];
357
- };
358
- table: {
359
- columns: z.objectInputType<{
360
- id: z.ZodDefault<z.ZodString>;
361
- type: z.ZodString;
362
- label: z.ZodString;
363
- }, z.ZodTypeAny, "passthrough">[];
364
- };
365
- includeIdField?: boolean | undefined;
366
- }>]>, {
367
- type: "object";
368
- name: string;
369
- id: string;
370
- modelRef: string;
371
- form: {
372
- fields: {
373
59
  type: string;
374
- id: string;
375
60
  label: string;
376
61
  }[];
377
62
  };
378
- includeIdField?: boolean | undefined;
379
- } | {
380
- type: "list";
381
- name: string;
382
- id: string;
383
- modelRef: string;
384
63
  form: {
385
64
  fields: {
386
- type: string;
65
+ [x: string]: unknown;
387
66
  id: string;
388
- label: string;
389
- }[];
390
- };
391
- table: {
392
- columns: {
393
67
  type: string;
394
- id: string;
395
68
  label: string;
396
69
  }[];
397
70
  };
398
71
  includeIdField?: boolean | undefined;
399
- }, {
400
- type: "object";
401
- name: string;
402
- id: string;
403
- modelRef: string;
404
- form: {
405
- fields: z.objectInputType<{
406
- id: z.ZodDefault<z.ZodString>;
407
- type: z.ZodString;
408
- label: z.ZodString;
409
- }, z.ZodTypeAny, "passthrough">[];
410
- };
411
- includeIdField?: boolean | undefined;
412
- } | {
413
- type: "list";
414
- name: string;
415
- id: string;
416
- modelRef: string;
417
- form: {
418
- fields: z.objectInputType<{
419
- id: z.ZodDefault<z.ZodString>;
420
- type: z.ZodString;
421
- label: z.ZodString;
422
- }, z.ZodTypeAny, "passthrough">[];
423
- };
424
- table: {
425
- columns: z.objectInputType<{
426
- id: z.ZodDefault<z.ZodString>;
427
- type: z.ZodString;
428
- label: z.ZodString;
429
- }, z.ZodTypeAny, "passthrough">[];
430
- };
431
- includeIdField?: boolean | undefined;
432
- }>, "many">>;
433
- }, "strip", z.ZodTypeAny, {
72
+ })[] | undefined;
73
+ }, {
74
+ name: string;
75
+ featureRef: string;
76
+ type: string;
77
+ id?: string | undefined;
78
+ icon?: string | undefined;
79
+ } & {
434
80
  type: "crud";
435
81
  modelRef: string;
436
- form: {
437
- fields: {
438
- type: string;
439
- id: string;
440
- label: string;
441
- }[];
442
- };
82
+ nameFieldRef: string;
443
83
  table: {
444
84
  columns: {
85
+ [x: string]: unknown;
445
86
  type: string;
446
- id: string;
447
87
  label: string;
88
+ id?: string | undefined;
448
89
  }[];
449
90
  actions?: {
91
+ [x: string]: unknown;
450
92
  type: string;
451
- id: string;
452
- position: "inline" | "dropdown";
93
+ id?: string | undefined;
94
+ position?: "inline" | "dropdown" | undefined;
453
95
  }[] | undefined;
454
96
  };
455
- nameFieldRef: string;
97
+ form: {
98
+ fields: {
99
+ [x: string]: unknown;
100
+ type: string;
101
+ label: string;
102
+ id?: string | undefined;
103
+ }[];
104
+ };
456
105
  disableCreate?: boolean | undefined;
457
106
  embeddedForms?: ({
458
- type: "object";
459
- name: string;
460
107
  id: string;
108
+ name: string;
461
109
  modelRef: string;
110
+ type: "object";
462
111
  form: {
463
112
  fields: {
113
+ [x: string]: unknown;
464
114
  type: string;
465
- id: string;
466
115
  label: string;
116
+ id?: string | undefined;
467
117
  }[];
468
118
  };
469
119
  includeIdField?: boolean | undefined;
470
120
  } | {
471
- type: "list";
472
- name: string;
473
121
  id: string;
122
+ name: string;
474
123
  modelRef: string;
475
- form: {
476
- fields: {
477
- type: string;
478
- id: string;
479
- label: string;
480
- }[];
481
- };
124
+ type: "list";
482
125
  table: {
483
126
  columns: {
127
+ [x: string]: unknown;
484
128
  type: string;
485
- id: string;
486
129
  label: string;
130
+ id?: string | undefined;
487
131
  }[];
488
132
  };
489
- includeIdField?: boolean | undefined;
490
- })[] | undefined;
491
- }, {
492
- type: "crud";
493
- modelRef: string;
494
- form: {
495
- fields: z.objectInputType<{
496
- id: z.ZodDefault<z.ZodString>;
497
- type: z.ZodString;
498
- label: z.ZodString;
499
- }, z.ZodTypeAny, "passthrough">[];
500
- };
501
- table: {
502
- columns: z.objectInputType<{
503
- id: z.ZodDefault<z.ZodString>;
504
- type: z.ZodString;
505
- label: z.ZodString;
506
- }, z.ZodTypeAny, "passthrough">[];
507
- actions?: z.objectInputType<{
508
- id: z.ZodDefault<z.ZodString>;
509
- type: z.ZodString;
510
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
511
- }, z.ZodTypeAny, "passthrough">[] | undefined;
512
- };
513
- nameFieldRef: string;
514
- disableCreate?: boolean | undefined;
515
- embeddedForms?: ({
516
- type: "object";
517
- name: string;
518
- id: string;
519
- modelRef: string;
520
- form: {
521
- fields: z.objectInputType<{
522
- id: z.ZodDefault<z.ZodString>;
523
- type: z.ZodString;
524
- label: z.ZodString;
525
- }, z.ZodTypeAny, "passthrough">[];
526
- };
527
- includeIdField?: boolean | undefined;
528
- } | {
529
- type: "list";
530
- name: string;
531
- id: string;
532
- modelRef: string;
533
133
  form: {
534
- fields: z.objectInputType<{
535
- id: z.ZodDefault<z.ZodString>;
536
- type: z.ZodString;
537
- label: z.ZodString;
538
- }, z.ZodTypeAny, "passthrough">[];
539
- };
540
- table: {
541
- columns: z.objectInputType<{
542
- id: z.ZodDefault<z.ZodString>;
543
- type: z.ZodString;
544
- label: z.ZodString;
545
- }, z.ZodTypeAny, "passthrough">[];
134
+ fields: {
135
+ [x: string]: unknown;
136
+ type: string;
137
+ label: string;
138
+ id?: string | undefined;
139
+ }[];
546
140
  };
547
141
  includeIdField?: boolean | undefined;
548
142
  })[] | undefined;
549
- }>>, {
550
- type: string;
551
- name: string;
143
+ }, z.core.$ZodTypeInternals<{
552
144
  id: string;
145
+ name: string;
553
146
  featureRef: string;
147
+ type: string;
554
148
  icon?: string | undefined;
555
149
  } & {
556
150
  type: "crud";
557
151
  modelRef: string;
558
- form: {
559
- fields: {
560
- type: string;
561
- id: string;
562
- label: string;
563
- }[];
564
- };
152
+ nameFieldRef: string;
565
153
  table: {
566
154
  columns: {
567
- type: string;
155
+ [x: string]: unknown;
568
156
  id: string;
157
+ type: string;
569
158
  label: string;
570
159
  }[];
571
160
  actions?: {
572
- type: string;
161
+ [x: string]: unknown;
573
162
  id: string;
163
+ type: string;
574
164
  position: "inline" | "dropdown";
575
165
  }[] | undefined;
576
166
  };
577
- nameFieldRef: string;
167
+ form: {
168
+ fields: {
169
+ [x: string]: unknown;
170
+ id: string;
171
+ type: string;
172
+ label: string;
173
+ }[];
174
+ };
578
175
  disableCreate?: boolean | undefined;
579
176
  embeddedForms?: ({
580
- type: "object";
581
- name: string;
582
177
  id: string;
178
+ name: string;
583
179
  modelRef: string;
180
+ type: "object";
584
181
  form: {
585
182
  fields: {
586
- type: string;
183
+ [x: string]: unknown;
587
184
  id: string;
185
+ type: string;
588
186
  label: string;
589
187
  }[];
590
188
  };
591
189
  includeIdField?: boolean | undefined;
592
190
  } | {
593
- type: "list";
594
- name: string;
595
191
  id: string;
192
+ name: string;
596
193
  modelRef: string;
597
- form: {
598
- fields: {
599
- type: string;
194
+ type: "list";
195
+ table: {
196
+ columns: {
197
+ [x: string]: unknown;
600
198
  id: string;
199
+ type: string;
601
200
  label: string;
602
201
  }[];
603
202
  };
604
- table: {
605
- columns: {
606
- type: string;
203
+ form: {
204
+ fields: {
205
+ [x: string]: unknown;
607
206
  id: string;
207
+ type: string;
608
208
  label: string;
609
209
  }[];
610
210
  };
611
211
  includeIdField?: boolean | undefined;
612
212
  })[] | undefined;
613
213
  }, {
614
- type: string;
615
214
  name: string;
616
215
  featureRef: string;
617
- icon?: string | undefined;
618
- id?: string | undefined;
619
- } & {
620
- type: "crud";
621
- modelRef: string;
622
- form: {
623
- fields: z.objectInputType<{
624
- id: z.ZodDefault<z.ZodString>;
625
- type: z.ZodString;
626
- label: z.ZodString;
627
- }, z.ZodTypeAny, "passthrough">[];
628
- };
629
- table: {
630
- columns: z.objectInputType<{
631
- id: z.ZodDefault<z.ZodString>;
632
- type: z.ZodString;
633
- label: z.ZodString;
634
- }, z.ZodTypeAny, "passthrough">[];
635
- actions?: z.objectInputType<{
636
- id: z.ZodDefault<z.ZodString>;
637
- type: z.ZodString;
638
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
639
- }, z.ZodTypeAny, "passthrough">[] | undefined;
640
- };
641
- nameFieldRef: string;
642
- disableCreate?: boolean | undefined;
643
- embeddedForms?: ({
644
- type: "object";
645
- name: string;
646
- id: string;
647
- modelRef: string;
648
- form: {
649
- fields: z.objectInputType<{
650
- id: z.ZodDefault<z.ZodString>;
651
- type: z.ZodString;
652
- label: z.ZodString;
653
- }, z.ZodTypeAny, "passthrough">[];
654
- };
655
- includeIdField?: boolean | undefined;
656
- } | {
657
- type: "list";
658
- name: string;
659
- id: string;
660
- modelRef: string;
661
- form: {
662
- fields: z.objectInputType<{
663
- id: z.ZodDefault<z.ZodString>;
664
- type: z.ZodString;
665
- label: z.ZodString;
666
- }, z.ZodTypeAny, "passthrough">[];
667
- };
668
- table: {
669
- columns: z.objectInputType<{
670
- id: z.ZodDefault<z.ZodString>;
671
- type: z.ZodString;
672
- label: z.ZodString;
673
- }, z.ZodTypeAny, "passthrough">[];
674
- };
675
- includeIdField?: boolean | undefined;
676
- })[] | undefined;
677
- }>, {
678
216
  type: string;
679
- name: string;
680
- id: string;
681
- featureRef: string;
217
+ id?: string | undefined;
682
218
  icon?: string | undefined;
683
219
  } & {
684
220
  type: "crud";
685
221
  modelRef: string;
686
- form: {
687
- fields: {
688
- type: string;
689
- id: string;
690
- label: string;
691
- }[];
692
- };
222
+ nameFieldRef: string;
693
223
  table: {
694
224
  columns: {
225
+ [x: string]: unknown;
695
226
  type: string;
696
- id: string;
697
227
  label: string;
228
+ id?: string | undefined;
698
229
  }[];
699
230
  actions?: {
231
+ [x: string]: unknown;
700
232
  type: string;
701
- id: string;
702
- position: "inline" | "dropdown";
233
+ id?: string | undefined;
234
+ position?: "inline" | "dropdown" | undefined;
703
235
  }[] | undefined;
704
236
  };
705
- nameFieldRef: string;
237
+ form: {
238
+ fields: {
239
+ [x: string]: unknown;
240
+ type: string;
241
+ label: string;
242
+ id?: string | undefined;
243
+ }[];
244
+ };
706
245
  disableCreate?: boolean | undefined;
707
246
  embeddedForms?: ({
708
- type: "object";
709
- name: string;
710
247
  id: string;
248
+ name: string;
711
249
  modelRef: string;
250
+ type: "object";
712
251
  form: {
713
252
  fields: {
253
+ [x: string]: unknown;
714
254
  type: string;
715
- id: string;
716
255
  label: string;
256
+ id?: string | undefined;
717
257
  }[];
718
258
  };
719
259
  includeIdField?: boolean | undefined;
720
260
  } | {
721
- type: "list";
722
- name: string;
723
261
  id: string;
262
+ name: string;
724
263
  modelRef: string;
725
- form: {
726
- fields: {
727
- type: string;
728
- id: string;
729
- label: string;
730
- }[];
731
- };
264
+ type: "list";
732
265
  table: {
733
266
  columns: {
267
+ [x: string]: unknown;
734
268
  type: string;
735
- id: string;
736
269
  label: string;
270
+ id?: string | undefined;
737
271
  }[];
738
272
  };
739
- includeIdField?: boolean | undefined;
740
- })[] | undefined;
741
- }, {
742
- type: string;
743
- name: string;
744
- featureRef: string;
745
- icon?: string | undefined;
746
- id?: string | undefined;
747
- } & {
748
- type: "crud";
749
- modelRef: string;
750
- form: {
751
- fields: z.objectInputType<{
752
- id: z.ZodDefault<z.ZodString>;
753
- type: z.ZodString;
754
- label: z.ZodString;
755
- }, z.ZodTypeAny, "passthrough">[];
756
- };
757
- table: {
758
- columns: z.objectInputType<{
759
- id: z.ZodDefault<z.ZodString>;
760
- type: z.ZodString;
761
- label: z.ZodString;
762
- }, z.ZodTypeAny, "passthrough">[];
763
- actions?: z.objectInputType<{
764
- id: z.ZodDefault<z.ZodString>;
765
- type: z.ZodString;
766
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
767
- }, z.ZodTypeAny, "passthrough">[] | undefined;
768
- };
769
- nameFieldRef: string;
770
- disableCreate?: boolean | undefined;
771
- embeddedForms?: ({
772
- type: "object";
773
- name: string;
774
- id: string;
775
- modelRef: string;
776
- form: {
777
- fields: z.objectInputType<{
778
- id: z.ZodDefault<z.ZodString>;
779
- type: z.ZodString;
780
- label: z.ZodString;
781
- }, z.ZodTypeAny, "passthrough">[];
782
- };
783
- includeIdField?: boolean | undefined;
784
- } | {
785
- type: "list";
786
- name: string;
787
- id: string;
788
- modelRef: string;
789
273
  form: {
790
- fields: z.objectInputType<{
791
- id: z.ZodDefault<z.ZodString>;
792
- type: z.ZodString;
793
- label: z.ZodString;
794
- }, z.ZodTypeAny, "passthrough">[];
795
- };
796
- table: {
797
- columns: z.objectInputType<{
798
- id: z.ZodDefault<z.ZodString>;
799
- type: z.ZodString;
800
- label: z.ZodString;
801
- }, z.ZodTypeAny, "passthrough">[];
274
+ fields: {
275
+ [x: string]: unknown;
276
+ type: string;
277
+ label: string;
278
+ id?: string | undefined;
279
+ }[];
802
280
  };
803
281
  includeIdField?: boolean | undefined;
804
282
  })[] | undefined;
283
+ }>>, {
284
+ appSlot: import("../../../../index.js").DefinitionEntityType<false>;
805
285
  }>;
806
286
  export type WebAdminSectionConfig = def.InferOutput<typeof createWebAdminSectionSchema>;
807
287
  export type WebAdminSectionConfigInput = def.InferInput<typeof createWebAdminSectionSchema>;
808
- export declare const createAdminAppSchema: (context: import("#src/schema/index.js").DefinitionSchemaParserContext) => z.ZodEffects<z.ZodOptional<z.ZodObject<{
809
- enabled: z.ZodBoolean;
810
- pathPrefix: z.ZodDefault<z.ZodString>;
811
- allowedRoles: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>, string[] | undefined, string[] | undefined>;
812
- sections: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodIntersection<z.ZodObject<{
813
- id: z.ZodDefault<z.ZodString>;
814
- name: z.ZodString;
815
- featureRef: z.ZodEffects<z.ZodString, string, string>;
816
- icon: z.ZodOptional<z.ZodString>;
817
- type: z.ZodString;
818
- }, "strip", z.ZodTypeAny, {
819
- type: string;
820
- name: string;
821
- id: string;
822
- featureRef: string;
823
- icon?: string | undefined;
824
- }, {
825
- type: string;
826
- name: string;
827
- featureRef: string;
828
- icon?: string | undefined;
829
- id?: string | undefined;
830
- }>, z.ZodObject<{
831
- type: z.ZodLiteral<"crud">;
832
- modelRef: z.ZodEffects<z.ZodString, string, string>;
833
- nameFieldRef: z.ZodEffects<z.ZodString, string, string>;
834
- disableCreate: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
835
- table: z.ZodObject<{
836
- columns: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
837
- id: z.ZodDefault<z.ZodString>;
838
- type: z.ZodString;
839
- label: z.ZodString;
840
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
841
- id: z.ZodDefault<z.ZodString>;
842
- type: z.ZodString;
843
- label: z.ZodString;
844
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
845
- id: z.ZodDefault<z.ZodString>;
846
- type: z.ZodString;
847
- label: z.ZodString;
848
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
849
- id: z.ZodDefault<z.ZodString>;
850
- type: z.ZodString;
851
- label: z.ZodString;
852
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
853
- id: z.ZodDefault<z.ZodString>;
854
- type: z.ZodString;
855
- label: z.ZodString;
856
- }, z.ZodTypeAny, "passthrough">>, {
857
- type: string;
858
- id: string;
859
- label: string;
860
- }, z.objectInputType<{
861
- id: z.ZodDefault<z.ZodString>;
862
- type: z.ZodString;
863
- label: z.ZodString;
864
- }, z.ZodTypeAny, "passthrough">>, "many">;
865
- actions: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
866
- id: z.ZodDefault<z.ZodString>;
867
- type: z.ZodString;
868
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
869
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
870
- id: z.ZodDefault<z.ZodString>;
871
- type: z.ZodString;
872
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
873
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
874
- id: z.ZodDefault<z.ZodString>;
875
- type: z.ZodString;
876
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
877
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
878
- id: z.ZodDefault<z.ZodString>;
879
- type: z.ZodString;
880
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
881
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
882
- id: z.ZodDefault<z.ZodString>;
883
- type: z.ZodString;
884
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
885
- }, z.ZodTypeAny, "passthrough">>, {
886
- type: string;
887
- id: string;
888
- position: "inline" | "dropdown";
889
- }, z.objectInputType<{
890
- id: z.ZodDefault<z.ZodString>;
891
- type: z.ZodString;
892
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
893
- }, z.ZodTypeAny, "passthrough">>, "many">>, {
894
- type: string;
895
- id: string;
896
- position: "inline" | "dropdown";
897
- }[] | undefined, z.objectInputType<{
898
- id: z.ZodDefault<z.ZodString>;
899
- type: z.ZodString;
900
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
901
- }, z.ZodTypeAny, "passthrough">[] | undefined>;
902
- }, "strip", z.ZodTypeAny, {
903
- columns: {
904
- type: string;
905
- id: string;
906
- label: string;
907
- }[];
908
- actions?: {
909
- type: string;
910
- id: string;
911
- position: "inline" | "dropdown";
912
- }[] | undefined;
913
- }, {
914
- columns: z.objectInputType<{
915
- id: z.ZodDefault<z.ZodString>;
916
- type: z.ZodString;
917
- label: z.ZodString;
918
- }, z.ZodTypeAny, "passthrough">[];
919
- actions?: z.objectInputType<{
920
- id: z.ZodDefault<z.ZodString>;
921
- type: z.ZodString;
922
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
923
- }, z.ZodTypeAny, "passthrough">[] | undefined;
924
- }>;
925
- form: z.ZodObject<{
926
- fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
927
- id: z.ZodDefault<z.ZodString>;
928
- type: z.ZodString;
929
- label: z.ZodString;
930
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
931
- id: z.ZodDefault<z.ZodString>;
932
- type: z.ZodString;
933
- label: z.ZodString;
934
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
935
- id: z.ZodDefault<z.ZodString>;
936
- type: z.ZodString;
937
- label: z.ZodString;
938
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
939
- id: z.ZodDefault<z.ZodString>;
940
- type: z.ZodString;
941
- label: z.ZodString;
942
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
943
- id: z.ZodDefault<z.ZodString>;
944
- type: z.ZodString;
945
- label: z.ZodString;
946
- }, z.ZodTypeAny, "passthrough">>, {
947
- type: string;
948
- id: string;
949
- label: string;
950
- }, z.objectInputType<{
951
- id: z.ZodDefault<z.ZodString>;
952
- type: z.ZodString;
953
- label: z.ZodString;
954
- }, z.ZodTypeAny, "passthrough">>, "many">;
955
- }, "strip", z.ZodTypeAny, {
956
- fields: {
957
- type: string;
958
- id: string;
959
- label: string;
960
- }[];
961
- }, {
962
- fields: z.objectInputType<{
963
- id: z.ZodDefault<z.ZodString>;
964
- type: z.ZodString;
965
- label: z.ZodString;
966
- }, z.ZodTypeAny, "passthrough">[];
967
- }>;
968
- embeddedForms: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
969
- id: z.ZodString;
970
- name: z.ZodString;
971
- modelRef: z.ZodEffects<z.ZodString, string, string>;
972
- includeIdField: z.ZodOptional<z.ZodBoolean>;
973
- type: z.ZodLiteral<"object">;
974
- form: z.ZodObject<{
975
- fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
976
- id: z.ZodDefault<z.ZodString>;
977
- type: z.ZodString;
978
- label: z.ZodString;
979
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
980
- id: z.ZodDefault<z.ZodString>;
981
- type: z.ZodString;
982
- label: z.ZodString;
983
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
984
- id: z.ZodDefault<z.ZodString>;
985
- type: z.ZodString;
986
- label: z.ZodString;
987
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
988
- id: z.ZodDefault<z.ZodString>;
989
- type: z.ZodString;
990
- label: z.ZodString;
991
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
992
- id: z.ZodDefault<z.ZodString>;
993
- type: z.ZodString;
994
- label: z.ZodString;
995
- }, z.ZodTypeAny, "passthrough">>, {
996
- type: string;
997
- id: string;
998
- label: string;
999
- }, z.objectInputType<{
1000
- id: z.ZodDefault<z.ZodString>;
1001
- type: z.ZodString;
1002
- label: z.ZodString;
1003
- }, z.ZodTypeAny, "passthrough">>, "many">;
1004
- }, "strip", z.ZodTypeAny, {
1005
- fields: {
1006
- type: string;
1007
- id: string;
1008
- label: string;
1009
- }[];
1010
- }, {
1011
- fields: z.objectInputType<{
1012
- id: z.ZodDefault<z.ZodString>;
1013
- type: z.ZodString;
1014
- label: z.ZodString;
1015
- }, z.ZodTypeAny, "passthrough">[];
1016
- }>;
1017
- }, "strip", z.ZodTypeAny, {
1018
- type: "object";
1019
- name: string;
1020
- id: string;
1021
- modelRef: string;
1022
- form: {
1023
- fields: {
1024
- type: string;
1025
- id: string;
1026
- label: string;
1027
- }[];
1028
- };
1029
- includeIdField?: boolean | undefined;
1030
- }, {
1031
- type: "object";
1032
- name: string;
1033
- id: string;
1034
- modelRef: string;
1035
- form: {
1036
- fields: z.objectInputType<{
1037
- id: z.ZodDefault<z.ZodString>;
1038
- type: z.ZodString;
1039
- label: z.ZodString;
1040
- }, z.ZodTypeAny, "passthrough">[];
1041
- };
1042
- includeIdField?: boolean | undefined;
1043
- }>, z.ZodObject<{
1044
- id: z.ZodString;
1045
- name: z.ZodString;
1046
- modelRef: z.ZodEffects<z.ZodString, string, string>;
1047
- includeIdField: z.ZodOptional<z.ZodBoolean>;
1048
- type: z.ZodLiteral<"list">;
1049
- table: z.ZodObject<{
1050
- columns: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1051
- id: z.ZodDefault<z.ZodString>;
1052
- type: z.ZodString;
1053
- label: z.ZodString;
1054
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1055
- id: z.ZodDefault<z.ZodString>;
1056
- type: z.ZodString;
1057
- label: z.ZodString;
1058
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1059
- id: z.ZodDefault<z.ZodString>;
1060
- type: z.ZodString;
1061
- label: z.ZodString;
1062
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
1063
- id: z.ZodDefault<z.ZodString>;
1064
- type: z.ZodString;
1065
- label: z.ZodString;
1066
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1067
- id: z.ZodDefault<z.ZodString>;
1068
- type: z.ZodString;
1069
- label: z.ZodString;
1070
- }, z.ZodTypeAny, "passthrough">>, {
1071
- type: string;
1072
- id: string;
1073
- label: string;
1074
- }, z.objectInputType<{
1075
- id: z.ZodDefault<z.ZodString>;
1076
- type: z.ZodString;
1077
- label: z.ZodString;
1078
- }, z.ZodTypeAny, "passthrough">>, "many">;
1079
- }, "strip", z.ZodTypeAny, {
1080
- columns: {
1081
- type: string;
1082
- id: string;
1083
- label: string;
1084
- }[];
1085
- }, {
1086
- columns: z.objectInputType<{
1087
- id: z.ZodDefault<z.ZodString>;
1088
- type: z.ZodString;
1089
- label: z.ZodString;
1090
- }, z.ZodTypeAny, "passthrough">[];
1091
- }>;
1092
- form: z.ZodObject<{
1093
- fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1094
- id: z.ZodDefault<z.ZodString>;
1095
- type: z.ZodString;
1096
- label: z.ZodString;
1097
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1098
- id: z.ZodDefault<z.ZodString>;
1099
- type: z.ZodString;
1100
- label: z.ZodString;
1101
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1102
- id: z.ZodDefault<z.ZodString>;
1103
- type: z.ZodString;
1104
- label: z.ZodString;
1105
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
1106
- id: z.ZodDefault<z.ZodString>;
1107
- type: z.ZodString;
1108
- label: z.ZodString;
1109
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1110
- id: z.ZodDefault<z.ZodString>;
1111
- type: z.ZodString;
1112
- label: z.ZodString;
1113
- }, z.ZodTypeAny, "passthrough">>, {
1114
- type: string;
1115
- id: string;
1116
- label: string;
1117
- }, z.objectInputType<{
1118
- id: z.ZodDefault<z.ZodString>;
1119
- type: z.ZodString;
1120
- label: z.ZodString;
1121
- }, z.ZodTypeAny, "passthrough">>, "many">;
1122
- }, "strip", z.ZodTypeAny, {
1123
- fields: {
1124
- type: string;
1125
- id: string;
1126
- label: string;
1127
- }[];
1128
- }, {
1129
- fields: z.objectInputType<{
1130
- id: z.ZodDefault<z.ZodString>;
1131
- type: z.ZodString;
1132
- label: z.ZodString;
1133
- }, z.ZodTypeAny, "passthrough">[];
1134
- }>;
1135
- }, "strip", z.ZodTypeAny, {
1136
- type: "list";
1137
- name: string;
1138
- id: string;
1139
- modelRef: string;
1140
- form: {
1141
- fields: {
1142
- type: string;
1143
- id: string;
1144
- label: string;
1145
- }[];
1146
- };
1147
- table: {
1148
- columns: {
1149
- type: string;
1150
- id: string;
1151
- label: string;
1152
- }[];
1153
- };
1154
- includeIdField?: boolean | undefined;
1155
- }, {
1156
- type: "list";
1157
- name: string;
1158
- id: string;
1159
- modelRef: string;
1160
- form: {
1161
- fields: z.objectInputType<{
1162
- id: z.ZodDefault<z.ZodString>;
1163
- type: z.ZodString;
1164
- label: z.ZodString;
1165
- }, z.ZodTypeAny, "passthrough">[];
1166
- };
1167
- table: {
1168
- columns: z.objectInputType<{
1169
- id: z.ZodDefault<z.ZodString>;
1170
- type: z.ZodString;
1171
- label: z.ZodString;
1172
- }, z.ZodTypeAny, "passthrough">[];
1173
- };
1174
- includeIdField?: boolean | undefined;
1175
- }>]>, {
1176
- type: "object";
1177
- name: string;
1178
- id: string;
1179
- modelRef: string;
1180
- form: {
1181
- fields: {
1182
- type: string;
1183
- id: string;
1184
- label: string;
1185
- }[];
1186
- };
1187
- includeIdField?: boolean | undefined;
1188
- } | {
1189
- type: "list";
1190
- name: string;
1191
- id: string;
1192
- modelRef: string;
1193
- form: {
1194
- fields: {
1195
- type: string;
1196
- id: string;
1197
- label: string;
1198
- }[];
1199
- };
1200
- table: {
1201
- columns: {
1202
- type: string;
1203
- id: string;
1204
- label: string;
1205
- }[];
1206
- };
1207
- includeIdField?: boolean | undefined;
1208
- }, {
1209
- type: "object";
1210
- name: string;
1211
- id: string;
1212
- modelRef: string;
1213
- form: {
1214
- fields: z.objectInputType<{
1215
- id: z.ZodDefault<z.ZodString>;
1216
- type: z.ZodString;
1217
- label: z.ZodString;
1218
- }, z.ZodTypeAny, "passthrough">[];
1219
- };
1220
- includeIdField?: boolean | undefined;
1221
- } | {
1222
- type: "list";
1223
- name: string;
1224
- id: string;
1225
- modelRef: string;
1226
- form: {
1227
- fields: z.objectInputType<{
1228
- id: z.ZodDefault<z.ZodString>;
1229
- type: z.ZodString;
1230
- label: z.ZodString;
1231
- }, z.ZodTypeAny, "passthrough">[];
1232
- };
1233
- table: {
1234
- columns: z.objectInputType<{
1235
- id: z.ZodDefault<z.ZodString>;
1236
- type: z.ZodString;
1237
- label: z.ZodString;
1238
- }, z.ZodTypeAny, "passthrough">[];
1239
- };
1240
- includeIdField?: boolean | undefined;
1241
- }>, "many">>;
1242
- }, "strip", z.ZodTypeAny, {
1243
- type: "crud";
1244
- modelRef: string;
1245
- form: {
1246
- fields: {
1247
- type: string;
1248
- id: string;
1249
- label: string;
1250
- }[];
1251
- };
1252
- table: {
1253
- columns: {
1254
- type: string;
1255
- id: string;
1256
- label: string;
1257
- }[];
1258
- actions?: {
1259
- type: string;
1260
- id: string;
1261
- position: "inline" | "dropdown";
1262
- }[] | undefined;
1263
- };
1264
- nameFieldRef: string;
1265
- disableCreate?: boolean | undefined;
1266
- embeddedForms?: ({
1267
- type: "object";
1268
- name: string;
1269
- id: string;
1270
- modelRef: string;
1271
- form: {
1272
- fields: {
1273
- type: string;
1274
- id: string;
1275
- label: string;
1276
- }[];
1277
- };
1278
- includeIdField?: boolean | undefined;
1279
- } | {
1280
- type: "list";
1281
- name: string;
1282
- id: string;
1283
- modelRef: string;
1284
- form: {
1285
- fields: {
1286
- type: string;
1287
- id: string;
1288
- label: string;
1289
- }[];
1290
- };
1291
- table: {
1292
- columns: {
1293
- type: string;
1294
- id: string;
1295
- label: string;
1296
- }[];
1297
- };
1298
- includeIdField?: boolean | undefined;
1299
- })[] | undefined;
1300
- }, {
1301
- type: "crud";
1302
- modelRef: string;
1303
- form: {
1304
- fields: z.objectInputType<{
1305
- id: z.ZodDefault<z.ZodString>;
1306
- type: z.ZodString;
1307
- label: z.ZodString;
1308
- }, z.ZodTypeAny, "passthrough">[];
1309
- };
1310
- table: {
1311
- columns: z.objectInputType<{
1312
- id: z.ZodDefault<z.ZodString>;
1313
- type: z.ZodString;
1314
- label: z.ZodString;
1315
- }, z.ZodTypeAny, "passthrough">[];
1316
- actions?: z.objectInputType<{
1317
- id: z.ZodDefault<z.ZodString>;
1318
- type: z.ZodString;
1319
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
1320
- }, z.ZodTypeAny, "passthrough">[] | undefined;
1321
- };
1322
- nameFieldRef: string;
1323
- disableCreate?: boolean | undefined;
1324
- embeddedForms?: ({
1325
- type: "object";
1326
- name: string;
1327
- id: string;
1328
- modelRef: string;
1329
- form: {
1330
- fields: z.objectInputType<{
1331
- id: z.ZodDefault<z.ZodString>;
1332
- type: z.ZodString;
1333
- label: z.ZodString;
1334
- }, z.ZodTypeAny, "passthrough">[];
1335
- };
1336
- includeIdField?: boolean | undefined;
1337
- } | {
1338
- type: "list";
1339
- name: string;
1340
- id: string;
1341
- modelRef: string;
1342
- form: {
1343
- fields: z.objectInputType<{
1344
- id: z.ZodDefault<z.ZodString>;
1345
- type: z.ZodString;
1346
- label: z.ZodString;
1347
- }, z.ZodTypeAny, "passthrough">[];
1348
- };
1349
- table: {
1350
- columns: z.objectInputType<{
1351
- id: z.ZodDefault<z.ZodString>;
1352
- type: z.ZodString;
1353
- label: z.ZodString;
1354
- }, z.ZodTypeAny, "passthrough">[];
1355
- };
1356
- includeIdField?: boolean | undefined;
1357
- })[] | undefined;
1358
- }>>, {
1359
- type: string;
1360
- name: string;
1361
- id: string;
1362
- featureRef: string;
1363
- icon?: string | undefined;
1364
- } & {
1365
- type: "crud";
1366
- modelRef: string;
1367
- form: {
1368
- fields: {
1369
- type: string;
1370
- id: string;
1371
- label: string;
1372
- }[];
1373
- };
1374
- table: {
1375
- columns: {
1376
- type: string;
1377
- id: string;
1378
- label: string;
1379
- }[];
1380
- actions?: {
1381
- type: string;
1382
- id: string;
1383
- position: "inline" | "dropdown";
1384
- }[] | undefined;
1385
- };
1386
- nameFieldRef: string;
1387
- disableCreate?: boolean | undefined;
1388
- embeddedForms?: ({
1389
- type: "object";
1390
- name: string;
1391
- id: string;
1392
- modelRef: string;
1393
- form: {
1394
- fields: {
1395
- type: string;
1396
- id: string;
1397
- label: string;
1398
- }[];
1399
- };
1400
- includeIdField?: boolean | undefined;
1401
- } | {
1402
- type: "list";
1403
- name: string;
1404
- id: string;
1405
- modelRef: string;
1406
- form: {
1407
- fields: {
1408
- type: string;
1409
- id: string;
1410
- label: string;
1411
- }[];
1412
- };
1413
- table: {
1414
- columns: {
1415
- type: string;
1416
- id: string;
1417
- label: string;
1418
- }[];
1419
- };
1420
- includeIdField?: boolean | undefined;
1421
- })[] | undefined;
1422
- }, {
1423
- type: string;
1424
- name: string;
1425
- featureRef: string;
1426
- icon?: string | undefined;
1427
- id?: string | undefined;
1428
- } & {
1429
- type: "crud";
1430
- modelRef: string;
1431
- form: {
1432
- fields: z.objectInputType<{
1433
- id: z.ZodDefault<z.ZodString>;
1434
- type: z.ZodString;
1435
- label: z.ZodString;
1436
- }, z.ZodTypeAny, "passthrough">[];
1437
- };
1438
- table: {
1439
- columns: z.objectInputType<{
1440
- id: z.ZodDefault<z.ZodString>;
1441
- type: z.ZodString;
1442
- label: z.ZodString;
1443
- }, z.ZodTypeAny, "passthrough">[];
1444
- actions?: z.objectInputType<{
1445
- id: z.ZodDefault<z.ZodString>;
1446
- type: z.ZodString;
1447
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
1448
- }, z.ZodTypeAny, "passthrough">[] | undefined;
1449
- };
1450
- nameFieldRef: string;
1451
- disableCreate?: boolean | undefined;
1452
- embeddedForms?: ({
1453
- type: "object";
1454
- name: string;
1455
- id: string;
1456
- modelRef: string;
1457
- form: {
1458
- fields: z.objectInputType<{
1459
- id: z.ZodDefault<z.ZodString>;
1460
- type: z.ZodString;
1461
- label: z.ZodString;
1462
- }, z.ZodTypeAny, "passthrough">[];
1463
- };
1464
- includeIdField?: boolean | undefined;
1465
- } | {
1466
- type: "list";
1467
- name: string;
1468
- id: string;
1469
- modelRef: string;
1470
- form: {
1471
- fields: z.objectInputType<{
1472
- id: z.ZodDefault<z.ZodString>;
1473
- type: z.ZodString;
1474
- label: z.ZodString;
1475
- }, z.ZodTypeAny, "passthrough">[];
1476
- };
1477
- table: {
1478
- columns: z.objectInputType<{
1479
- id: z.ZodDefault<z.ZodString>;
1480
- type: z.ZodString;
1481
- label: z.ZodString;
1482
- }, z.ZodTypeAny, "passthrough">[];
1483
- };
1484
- includeIdField?: boolean | undefined;
1485
- })[] | undefined;
1486
- }>, {
1487
- type: string;
1488
- name: string;
1489
- id: string;
1490
- featureRef: string;
1491
- icon?: string | undefined;
1492
- } & {
1493
- type: "crud";
1494
- modelRef: string;
1495
- form: {
1496
- fields: {
1497
- type: string;
1498
- id: string;
1499
- label: string;
1500
- }[];
1501
- };
1502
- table: {
1503
- columns: {
1504
- type: string;
1505
- id: string;
1506
- label: string;
1507
- }[];
1508
- actions?: {
1509
- type: string;
1510
- id: string;
1511
- position: "inline" | "dropdown";
1512
- }[] | undefined;
1513
- };
1514
- nameFieldRef: string;
1515
- disableCreate?: boolean | undefined;
1516
- embeddedForms?: ({
1517
- type: "object";
1518
- name: string;
1519
- id: string;
1520
- modelRef: string;
1521
- form: {
1522
- fields: {
1523
- type: string;
1524
- id: string;
1525
- label: string;
1526
- }[];
1527
- };
1528
- includeIdField?: boolean | undefined;
1529
- } | {
1530
- type: "list";
1531
- name: string;
1532
- id: string;
1533
- modelRef: string;
1534
- form: {
1535
- fields: {
1536
- type: string;
1537
- id: string;
1538
- label: string;
1539
- }[];
1540
- };
1541
- table: {
1542
- columns: {
1543
- type: string;
1544
- id: string;
1545
- label: string;
1546
- }[];
1547
- };
1548
- includeIdField?: boolean | undefined;
1549
- })[] | undefined;
1550
- }, {
1551
- type: string;
1552
- name: string;
1553
- featureRef: string;
1554
- icon?: string | undefined;
1555
- id?: string | undefined;
1556
- } & {
1557
- type: "crud";
1558
- modelRef: string;
1559
- form: {
1560
- fields: z.objectInputType<{
1561
- id: z.ZodDefault<z.ZodString>;
1562
- type: z.ZodString;
1563
- label: z.ZodString;
1564
- }, z.ZodTypeAny, "passthrough">[];
1565
- };
1566
- table: {
1567
- columns: z.objectInputType<{
1568
- id: z.ZodDefault<z.ZodString>;
1569
- type: z.ZodString;
1570
- label: z.ZodString;
1571
- }, z.ZodTypeAny, "passthrough">[];
1572
- actions?: z.objectInputType<{
1573
- id: z.ZodDefault<z.ZodString>;
1574
- type: z.ZodString;
1575
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
1576
- }, z.ZodTypeAny, "passthrough">[] | undefined;
1577
- };
1578
- nameFieldRef: string;
1579
- disableCreate?: boolean | undefined;
1580
- embeddedForms?: ({
1581
- type: "object";
1582
- name: string;
1583
- id: string;
1584
- modelRef: string;
1585
- form: {
1586
- fields: z.objectInputType<{
1587
- id: z.ZodDefault<z.ZodString>;
1588
- type: z.ZodString;
1589
- label: z.ZodString;
1590
- }, z.ZodTypeAny, "passthrough">[];
1591
- };
1592
- includeIdField?: boolean | undefined;
1593
- } | {
1594
- type: "list";
1595
- name: string;
1596
- id: string;
1597
- modelRef: string;
1598
- form: {
1599
- fields: z.objectInputType<{
1600
- id: z.ZodDefault<z.ZodString>;
1601
- type: z.ZodString;
1602
- label: z.ZodString;
1603
- }, z.ZodTypeAny, "passthrough">[];
1604
- };
1605
- table: {
1606
- columns: z.objectInputType<{
1607
- id: z.ZodDefault<z.ZodString>;
1608
- type: z.ZodString;
1609
- label: z.ZodString;
1610
- }, z.ZodTypeAny, "passthrough">[];
1611
- };
1612
- includeIdField?: boolean | undefined;
1613
- })[] | undefined;
1614
- }>, "many">>, ({
1615
- type: string;
1616
- name: string;
288
+ export declare const createAdminAppSchema: import("#src/schema/index.js").DefinitionSchemaCreatorWithSlots<z.ZodOptional<z.ZodType<{
289
+ enabled: boolean;
290
+ pathPrefix: string;
291
+ allowedRoles?: string[] | undefined;
292
+ sections?: ({
1617
293
  id: string;
294
+ name: string;
1618
295
  featureRef: string;
296
+ type: string;
1619
297
  icon?: string | undefined;
1620
298
  } & {
1621
299
  type: "crud";
1622
300
  modelRef: string;
1623
- form: {
1624
- fields: {
1625
- type: string;
1626
- id: string;
1627
- label: string;
1628
- }[];
1629
- };
301
+ nameFieldRef: string;
1630
302
  table: {
1631
303
  columns: {
1632
- type: string;
304
+ [x: string]: unknown;
1633
305
  id: string;
306
+ type: string;
1634
307
  label: string;
1635
308
  }[];
1636
309
  actions?: {
1637
- type: string;
310
+ [x: string]: unknown;
1638
311
  id: string;
312
+ type: string;
1639
313
  position: "inline" | "dropdown";
1640
314
  }[] | undefined;
1641
315
  };
1642
- nameFieldRef: string;
316
+ form: {
317
+ fields: {
318
+ [x: string]: unknown;
319
+ id: string;
320
+ type: string;
321
+ label: string;
322
+ }[];
323
+ };
1643
324
  disableCreate?: boolean | undefined;
1644
325
  embeddedForms?: ({
1645
- type: "object";
1646
- name: string;
1647
326
  id: string;
327
+ name: string;
1648
328
  modelRef: string;
329
+ type: "object";
1649
330
  form: {
1650
331
  fields: {
1651
- type: string;
332
+ [x: string]: unknown;
1652
333
  id: string;
334
+ type: string;
1653
335
  label: string;
1654
336
  }[];
1655
337
  };
1656
338
  includeIdField?: boolean | undefined;
1657
339
  } | {
1658
- type: "list";
1659
- name: string;
1660
340
  id: string;
341
+ name: string;
1661
342
  modelRef: string;
1662
- form: {
1663
- fields: {
1664
- type: string;
1665
- id: string;
1666
- label: string;
1667
- }[];
1668
- };
343
+ type: "list";
1669
344
  table: {
1670
345
  columns: {
1671
- type: string;
346
+ [x: string]: unknown;
1672
347
  id: string;
348
+ type: string;
1673
349
  label: string;
1674
350
  }[];
1675
351
  };
1676
- includeIdField?: boolean | undefined;
1677
- })[] | undefined;
1678
- })[] | undefined, ({
1679
- type: string;
1680
- name: string;
1681
- featureRef: string;
1682
- icon?: string | undefined;
1683
- id?: string | undefined;
1684
- } & {
1685
- type: "crud";
1686
- modelRef: string;
1687
- form: {
1688
- fields: z.objectInputType<{
1689
- id: z.ZodDefault<z.ZodString>;
1690
- type: z.ZodString;
1691
- label: z.ZodString;
1692
- }, z.ZodTypeAny, "passthrough">[];
1693
- };
1694
- table: {
1695
- columns: z.objectInputType<{
1696
- id: z.ZodDefault<z.ZodString>;
1697
- type: z.ZodString;
1698
- label: z.ZodString;
1699
- }, z.ZodTypeAny, "passthrough">[];
1700
- actions?: z.objectInputType<{
1701
- id: z.ZodDefault<z.ZodString>;
1702
- type: z.ZodString;
1703
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
1704
- }, z.ZodTypeAny, "passthrough">[] | undefined;
1705
- };
1706
- nameFieldRef: string;
1707
- disableCreate?: boolean | undefined;
1708
- embeddedForms?: ({
1709
- type: "object";
1710
- name: string;
1711
- id: string;
1712
- modelRef: string;
1713
- form: {
1714
- fields: z.objectInputType<{
1715
- id: z.ZodDefault<z.ZodString>;
1716
- type: z.ZodString;
1717
- label: z.ZodString;
1718
- }, z.ZodTypeAny, "passthrough">[];
1719
- };
1720
- includeIdField?: boolean | undefined;
1721
- } | {
1722
- type: "list";
1723
- name: string;
1724
- id: string;
1725
- modelRef: string;
1726
352
  form: {
1727
- fields: z.objectInputType<{
1728
- id: z.ZodDefault<z.ZodString>;
1729
- type: z.ZodString;
1730
- label: z.ZodString;
1731
- }, z.ZodTypeAny, "passthrough">[];
1732
- };
1733
- table: {
1734
- columns: z.objectInputType<{
1735
- id: z.ZodDefault<z.ZodString>;
1736
- type: z.ZodString;
1737
- label: z.ZodString;
1738
- }, z.ZodTypeAny, "passthrough">[];
353
+ fields: {
354
+ [x: string]: unknown;
355
+ id: string;
356
+ type: string;
357
+ label: string;
358
+ }[];
1739
359
  };
1740
360
  includeIdField?: boolean | undefined;
1741
361
  })[] | undefined;
1742
- })[] | undefined>;
1743
- }, "strip", z.ZodTypeAny, {
362
+ })[] | undefined;
363
+ } | undefined, {
1744
364
  enabled: boolean;
1745
- pathPrefix: string;
365
+ pathPrefix?: string | undefined;
1746
366
  allowedRoles?: string[] | undefined;
1747
367
  sections?: ({
1748
- type: string;
1749
368
  name: string;
1750
- id: string;
1751
369
  featureRef: string;
370
+ type: string;
371
+ id?: string | undefined;
1752
372
  icon?: string | undefined;
1753
373
  } & {
1754
374
  type: "crud";
1755
375
  modelRef: string;
1756
- form: {
1757
- fields: {
1758
- type: string;
1759
- id: string;
1760
- label: string;
1761
- }[];
1762
- };
376
+ nameFieldRef: string;
1763
377
  table: {
1764
378
  columns: {
379
+ [x: string]: unknown;
1765
380
  type: string;
1766
- id: string;
1767
381
  label: string;
382
+ id?: string | undefined;
1768
383
  }[];
1769
384
  actions?: {
385
+ [x: string]: unknown;
1770
386
  type: string;
1771
- id: string;
1772
- position: "inline" | "dropdown";
387
+ id?: string | undefined;
388
+ position?: "inline" | "dropdown" | undefined;
1773
389
  }[] | undefined;
1774
390
  };
1775
- nameFieldRef: string;
391
+ form: {
392
+ fields: {
393
+ [x: string]: unknown;
394
+ type: string;
395
+ label: string;
396
+ id?: string | undefined;
397
+ }[];
398
+ };
1776
399
  disableCreate?: boolean | undefined;
1777
400
  embeddedForms?: ({
1778
- type: "object";
1779
- name: string;
1780
401
  id: string;
402
+ name: string;
1781
403
  modelRef: string;
404
+ type: "object";
1782
405
  form: {
1783
406
  fields: {
407
+ [x: string]: unknown;
1784
408
  type: string;
1785
- id: string;
1786
409
  label: string;
410
+ id?: string | undefined;
1787
411
  }[];
1788
412
  };
1789
413
  includeIdField?: boolean | undefined;
1790
414
  } | {
1791
- type: "list";
1792
- name: string;
1793
415
  id: string;
416
+ name: string;
1794
417
  modelRef: string;
1795
- form: {
1796
- fields: {
1797
- type: string;
1798
- id: string;
1799
- label: string;
1800
- }[];
1801
- };
418
+ type: "list";
1802
419
  table: {
1803
420
  columns: {
421
+ [x: string]: unknown;
1804
422
  type: string;
1805
- id: string;
1806
423
  label: string;
424
+ id?: string | undefined;
1807
425
  }[];
1808
426
  };
1809
- includeIdField?: boolean | undefined;
1810
- })[] | undefined;
1811
- })[] | undefined;
1812
- }, {
1813
- enabled: boolean;
1814
- pathPrefix?: string | undefined;
1815
- allowedRoles?: string[] | undefined;
1816
- sections?: ({
1817
- type: string;
1818
- name: string;
1819
- featureRef: string;
1820
- icon?: string | undefined;
1821
- id?: string | undefined;
1822
- } & {
1823
- type: "crud";
1824
- modelRef: string;
1825
- form: {
1826
- fields: z.objectInputType<{
1827
- id: z.ZodDefault<z.ZodString>;
1828
- type: z.ZodString;
1829
- label: z.ZodString;
1830
- }, z.ZodTypeAny, "passthrough">[];
1831
- };
1832
- table: {
1833
- columns: z.objectInputType<{
1834
- id: z.ZodDefault<z.ZodString>;
1835
- type: z.ZodString;
1836
- label: z.ZodString;
1837
- }, z.ZodTypeAny, "passthrough">[];
1838
- actions?: z.objectInputType<{
1839
- id: z.ZodDefault<z.ZodString>;
1840
- type: z.ZodString;
1841
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
1842
- }, z.ZodTypeAny, "passthrough">[] | undefined;
1843
- };
1844
- nameFieldRef: string;
1845
- disableCreate?: boolean | undefined;
1846
- embeddedForms?: ({
1847
- type: "object";
1848
- name: string;
1849
- id: string;
1850
- modelRef: string;
1851
- form: {
1852
- fields: z.objectInputType<{
1853
- id: z.ZodDefault<z.ZodString>;
1854
- type: z.ZodString;
1855
- label: z.ZodString;
1856
- }, z.ZodTypeAny, "passthrough">[];
1857
- };
1858
- includeIdField?: boolean | undefined;
1859
- } | {
1860
- type: "list";
1861
- name: string;
1862
- id: string;
1863
- modelRef: string;
1864
427
  form: {
1865
- fields: z.objectInputType<{
1866
- id: z.ZodDefault<z.ZodString>;
1867
- type: z.ZodString;
1868
- label: z.ZodString;
1869
- }, z.ZodTypeAny, "passthrough">[];
1870
- };
1871
- table: {
1872
- columns: z.objectInputType<{
1873
- id: z.ZodDefault<z.ZodString>;
1874
- type: z.ZodString;
1875
- label: z.ZodString;
1876
- }, z.ZodTypeAny, "passthrough">[];
428
+ fields: {
429
+ [x: string]: unknown;
430
+ type: string;
431
+ label: string;
432
+ id?: string | undefined;
433
+ }[];
1877
434
  };
1878
435
  includeIdField?: boolean | undefined;
1879
436
  })[] | undefined;
1880
437
  })[] | undefined;
1881
- }>>, {
438
+ } | undefined, z.core.$ZodTypeInternals<{
1882
439
  enabled: boolean;
1883
440
  pathPrefix: string;
1884
441
  allowedRoles?: string[] | undefined;
1885
442
  sections?: ({
1886
- type: string;
1887
- name: string;
1888
443
  id: string;
444
+ name: string;
1889
445
  featureRef: string;
446
+ type: string;
1890
447
  icon?: string | undefined;
1891
448
  } & {
1892
449
  type: "crud";
1893
450
  modelRef: string;
1894
- form: {
1895
- fields: {
1896
- type: string;
1897
- id: string;
1898
- label: string;
1899
- }[];
1900
- };
451
+ nameFieldRef: string;
1901
452
  table: {
1902
453
  columns: {
1903
- type: string;
454
+ [x: string]: unknown;
1904
455
  id: string;
456
+ type: string;
1905
457
  label: string;
1906
458
  }[];
1907
459
  actions?: {
1908
- type: string;
460
+ [x: string]: unknown;
1909
461
  id: string;
462
+ type: string;
1910
463
  position: "inline" | "dropdown";
1911
464
  }[] | undefined;
1912
465
  };
1913
- nameFieldRef: string;
466
+ form: {
467
+ fields: {
468
+ [x: string]: unknown;
469
+ id: string;
470
+ type: string;
471
+ label: string;
472
+ }[];
473
+ };
1914
474
  disableCreate?: boolean | undefined;
1915
475
  embeddedForms?: ({
1916
- type: "object";
1917
- name: string;
1918
476
  id: string;
477
+ name: string;
1919
478
  modelRef: string;
479
+ type: "object";
1920
480
  form: {
1921
481
  fields: {
1922
- type: string;
482
+ [x: string]: unknown;
1923
483
  id: string;
484
+ type: string;
1924
485
  label: string;
1925
486
  }[];
1926
487
  };
1927
488
  includeIdField?: boolean | undefined;
1928
489
  } | {
1929
- type: "list";
1930
- name: string;
1931
490
  id: string;
491
+ name: string;
1932
492
  modelRef: string;
1933
- form: {
1934
- fields: {
1935
- type: string;
493
+ type: "list";
494
+ table: {
495
+ columns: {
496
+ [x: string]: unknown;
1936
497
  id: string;
498
+ type: string;
1937
499
  label: string;
1938
500
  }[];
1939
501
  };
1940
- table: {
1941
- columns: {
1942
- type: string;
502
+ form: {
503
+ fields: {
504
+ [x: string]: unknown;
1943
505
  id: string;
506
+ type: string;
1944
507
  label: string;
1945
508
  }[];
1946
509
  };
@@ -1952,69 +515,77 @@ export declare const createAdminAppSchema: (context: import("#src/schema/index.j
1952
515
  pathPrefix?: string | undefined;
1953
516
  allowedRoles?: string[] | undefined;
1954
517
  sections?: ({
1955
- type: string;
1956
518
  name: string;
1957
519
  featureRef: string;
1958
- icon?: string | undefined;
520
+ type: string;
1959
521
  id?: string | undefined;
522
+ icon?: string | undefined;
1960
523
  } & {
1961
524
  type: "crud";
1962
525
  modelRef: string;
1963
- form: {
1964
- fields: z.objectInputType<{
1965
- id: z.ZodDefault<z.ZodString>;
1966
- type: z.ZodString;
1967
- label: z.ZodString;
1968
- }, z.ZodTypeAny, "passthrough">[];
1969
- };
526
+ nameFieldRef: string;
1970
527
  table: {
1971
- columns: z.objectInputType<{
1972
- id: z.ZodDefault<z.ZodString>;
1973
- type: z.ZodString;
1974
- label: z.ZodString;
1975
- }, z.ZodTypeAny, "passthrough">[];
1976
- actions?: z.objectInputType<{
1977
- id: z.ZodDefault<z.ZodString>;
1978
- type: z.ZodString;
1979
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
1980
- }, z.ZodTypeAny, "passthrough">[] | undefined;
528
+ columns: {
529
+ [x: string]: unknown;
530
+ type: string;
531
+ label: string;
532
+ id?: string | undefined;
533
+ }[];
534
+ actions?: {
535
+ [x: string]: unknown;
536
+ type: string;
537
+ id?: string | undefined;
538
+ position?: "inline" | "dropdown" | undefined;
539
+ }[] | undefined;
540
+ };
541
+ form: {
542
+ fields: {
543
+ [x: string]: unknown;
544
+ type: string;
545
+ label: string;
546
+ id?: string | undefined;
547
+ }[];
1981
548
  };
1982
- nameFieldRef: string;
1983
549
  disableCreate?: boolean | undefined;
1984
550
  embeddedForms?: ({
1985
- type: "object";
1986
- name: string;
1987
551
  id: string;
552
+ name: string;
1988
553
  modelRef: string;
554
+ type: "object";
1989
555
  form: {
1990
- fields: z.objectInputType<{
1991
- id: z.ZodDefault<z.ZodString>;
1992
- type: z.ZodString;
1993
- label: z.ZodString;
1994
- }, z.ZodTypeAny, "passthrough">[];
556
+ fields: {
557
+ [x: string]: unknown;
558
+ type: string;
559
+ label: string;
560
+ id?: string | undefined;
561
+ }[];
1995
562
  };
1996
563
  includeIdField?: boolean | undefined;
1997
564
  } | {
1998
- type: "list";
1999
- name: string;
2000
565
  id: string;
566
+ name: string;
2001
567
  modelRef: string;
2002
- form: {
2003
- fields: z.objectInputType<{
2004
- id: z.ZodDefault<z.ZodString>;
2005
- type: z.ZodString;
2006
- label: z.ZodString;
2007
- }, z.ZodTypeAny, "passthrough">[];
2008
- };
568
+ type: "list";
2009
569
  table: {
2010
- columns: z.objectInputType<{
2011
- id: z.ZodDefault<z.ZodString>;
2012
- type: z.ZodString;
2013
- label: z.ZodString;
2014
- }, z.ZodTypeAny, "passthrough">[];
570
+ columns: {
571
+ [x: string]: unknown;
572
+ type: string;
573
+ label: string;
574
+ id?: string | undefined;
575
+ }[];
576
+ };
577
+ form: {
578
+ fields: {
579
+ [x: string]: unknown;
580
+ type: string;
581
+ label: string;
582
+ id?: string | undefined;
583
+ }[];
2015
584
  };
2016
585
  includeIdField?: boolean | undefined;
2017
586
  })[] | undefined;
2018
587
  })[] | undefined;
2019
- } | undefined>;
588
+ } | undefined>>>, {
589
+ appSlot: import("../../../../index.js").DefinitionEntityType<false>;
590
+ }>;
2020
591
  //# sourceMappingURL=admin.d.ts.map