@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,1164 +1,436 @@
1
1
  import { z } from 'zod';
2
2
  import type { def } from '#src/schema/creator/index.js';
3
- export declare const createAdminCrudEmbeddedObjectSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodObject<{
4
- id: z.ZodString;
5
- name: z.ZodString;
6
- modelRef: z.ZodEffects<z.ZodString, string, string>;
7
- includeIdField: z.ZodOptional<z.ZodBoolean>;
8
- type: z.ZodLiteral<"object">;
9
- form: z.ZodObject<{
10
- fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
11
- id: z.ZodDefault<z.ZodString>;
12
- type: z.ZodString;
13
- label: z.ZodString;
14
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
15
- id: z.ZodDefault<z.ZodString>;
16
- type: z.ZodString;
17
- label: z.ZodString;
18
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
19
- id: z.ZodDefault<z.ZodString>;
20
- type: z.ZodString;
21
- label: z.ZodString;
22
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
23
- id: z.ZodDefault<z.ZodString>;
24
- type: z.ZodString;
25
- label: z.ZodString;
26
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
27
- id: z.ZodDefault<z.ZodString>;
28
- type: z.ZodString;
29
- label: z.ZodString;
30
- }, z.ZodTypeAny, "passthrough">>, {
31
- type: string;
32
- id: string;
33
- label: string;
34
- }, z.objectInputType<{
35
- id: z.ZodDefault<z.ZodString>;
36
- type: z.ZodString;
37
- label: z.ZodString;
38
- }, z.ZodTypeAny, "passthrough">>, "many">;
39
- }, "strip", z.ZodTypeAny, {
40
- fields: {
41
- type: string;
42
- id: string;
43
- label: string;
44
- }[];
45
- }, {
46
- fields: z.objectInputType<{
47
- id: z.ZodDefault<z.ZodString>;
48
- type: z.ZodString;
49
- label: z.ZodString;
50
- }, z.ZodTypeAny, "passthrough">[];
51
- }>;
52
- }, "strip", z.ZodTypeAny, {
53
- type: "object";
54
- name: string;
3
+ export declare const createAdminCrudEmbeddedFormSchema: import("#src/schema/creator/index.js").DefinitionSchemaCreatorWithSlots<z.ZodType<{
55
4
  id: string;
5
+ name: string;
56
6
  modelRef: string;
7
+ type: "object";
57
8
  form: {
58
9
  fields: {
59
- type: string;
10
+ [x: string]: unknown;
60
11
  id: string;
12
+ type: string;
61
13
  label: string;
62
14
  }[];
63
15
  };
64
16
  includeIdField?: boolean | undefined;
65
- }, {
66
- type: "object";
67
- name: string;
17
+ } | {
68
18
  id: string;
19
+ name: string;
69
20
  modelRef: string;
70
- form: {
71
- fields: z.objectInputType<{
72
- id: z.ZodDefault<z.ZodString>;
73
- type: z.ZodString;
74
- label: z.ZodString;
75
- }, z.ZodTypeAny, "passthrough">[];
76
- };
77
- includeIdField?: boolean | undefined;
78
- }>;
79
- export declare const createAdminCrudEmbeddedListSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodObject<{
80
- id: z.ZodString;
81
- name: z.ZodString;
82
- modelRef: z.ZodEffects<z.ZodString, string, string>;
83
- includeIdField: z.ZodOptional<z.ZodBoolean>;
84
- type: z.ZodLiteral<"list">;
85
- table: z.ZodObject<{
86
- columns: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
87
- id: z.ZodDefault<z.ZodString>;
88
- type: z.ZodString;
89
- label: z.ZodString;
90
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
91
- id: z.ZodDefault<z.ZodString>;
92
- type: z.ZodString;
93
- label: z.ZodString;
94
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
95
- id: z.ZodDefault<z.ZodString>;
96
- type: z.ZodString;
97
- label: z.ZodString;
98
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
99
- id: z.ZodDefault<z.ZodString>;
100
- type: z.ZodString;
101
- label: z.ZodString;
102
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
103
- id: z.ZodDefault<z.ZodString>;
104
- type: z.ZodString;
105
- label: z.ZodString;
106
- }, z.ZodTypeAny, "passthrough">>, {
107
- type: string;
108
- id: string;
109
- label: string;
110
- }, z.objectInputType<{
111
- id: z.ZodDefault<z.ZodString>;
112
- type: z.ZodString;
113
- label: z.ZodString;
114
- }, z.ZodTypeAny, "passthrough">>, "many">;
115
- }, "strip", z.ZodTypeAny, {
21
+ type: "list";
22
+ table: {
116
23
  columns: {
117
- type: string;
24
+ [x: string]: unknown;
118
25
  id: string;
119
- label: string;
120
- }[];
121
- }, {
122
- columns: z.objectInputType<{
123
- id: z.ZodDefault<z.ZodString>;
124
- type: z.ZodString;
125
- label: z.ZodString;
126
- }, z.ZodTypeAny, "passthrough">[];
127
- }>;
128
- form: z.ZodObject<{
129
- fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
130
- id: z.ZodDefault<z.ZodString>;
131
- type: z.ZodString;
132
- label: z.ZodString;
133
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
134
- id: z.ZodDefault<z.ZodString>;
135
- type: z.ZodString;
136
- label: z.ZodString;
137
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
138
- id: z.ZodDefault<z.ZodString>;
139
- type: z.ZodString;
140
- label: z.ZodString;
141
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
142
- id: z.ZodDefault<z.ZodString>;
143
- type: z.ZodString;
144
- label: z.ZodString;
145
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
146
- id: z.ZodDefault<z.ZodString>;
147
- type: z.ZodString;
148
- label: z.ZodString;
149
- }, z.ZodTypeAny, "passthrough">>, {
150
26
  type: string;
151
- id: string;
152
27
  label: string;
153
- }, z.objectInputType<{
154
- id: z.ZodDefault<z.ZodString>;
155
- type: z.ZodString;
156
- label: z.ZodString;
157
- }, z.ZodTypeAny, "passthrough">>, "many">;
158
- }, "strip", z.ZodTypeAny, {
28
+ }[];
29
+ };
30
+ form: {
159
31
  fields: {
160
- type: string;
32
+ [x: string]: unknown;
161
33
  id: string;
34
+ type: string;
162
35
  label: string;
163
36
  }[];
164
- }, {
165
- fields: z.objectInputType<{
166
- id: z.ZodDefault<z.ZodString>;
167
- type: z.ZodString;
168
- label: z.ZodString;
169
- }, z.ZodTypeAny, "passthrough">[];
170
- }>;
171
- }, "strip", z.ZodTypeAny, {
172
- type: "list";
173
- name: string;
37
+ };
38
+ includeIdField?: boolean | undefined;
39
+ }, {
174
40
  id: string;
41
+ name: string;
175
42
  modelRef: string;
43
+ type: "object";
176
44
  form: {
177
45
  fields: {
46
+ [x: string]: unknown;
178
47
  type: string;
179
- id: string;
180
48
  label: string;
49
+ id?: string | undefined;
181
50
  }[];
182
51
  };
52
+ includeIdField?: boolean | undefined;
53
+ } | {
54
+ id: string;
55
+ name: string;
56
+ modelRef: string;
57
+ type: "list";
183
58
  table: {
184
59
  columns: {
60
+ [x: string]: unknown;
185
61
  type: string;
186
- id: string;
187
62
  label: string;
63
+ id?: string | undefined;
188
64
  }[];
189
65
  };
190
- includeIdField?: boolean | undefined;
191
- }, {
192
- type: "list";
193
- name: string;
194
- id: string;
195
- modelRef: string;
196
66
  form: {
197
- fields: z.objectInputType<{
198
- id: z.ZodDefault<z.ZodString>;
199
- type: z.ZodString;
200
- label: z.ZodString;
201
- }, z.ZodTypeAny, "passthrough">[];
202
- };
203
- table: {
204
- columns: z.objectInputType<{
205
- id: z.ZodDefault<z.ZodString>;
206
- type: z.ZodString;
207
- label: z.ZodString;
208
- }, z.ZodTypeAny, "passthrough">[];
209
- };
210
- includeIdField?: boolean | undefined;
211
- }>;
212
- export declare const createAdminCrudEmbeddedFormSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
213
- id: z.ZodString;
214
- name: z.ZodString;
215
- modelRef: z.ZodEffects<z.ZodString, string, string>;
216
- includeIdField: z.ZodOptional<z.ZodBoolean>;
217
- type: z.ZodLiteral<"object">;
218
- form: z.ZodObject<{
219
- fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
220
- id: z.ZodDefault<z.ZodString>;
221
- type: z.ZodString;
222
- label: z.ZodString;
223
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
224
- id: z.ZodDefault<z.ZodString>;
225
- type: z.ZodString;
226
- label: z.ZodString;
227
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
228
- id: z.ZodDefault<z.ZodString>;
229
- type: z.ZodString;
230
- label: z.ZodString;
231
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
232
- id: z.ZodDefault<z.ZodString>;
233
- type: z.ZodString;
234
- label: z.ZodString;
235
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
236
- id: z.ZodDefault<z.ZodString>;
237
- type: z.ZodString;
238
- label: z.ZodString;
239
- }, z.ZodTypeAny, "passthrough">>, {
240
- type: string;
241
- id: string;
242
- label: string;
243
- }, z.objectInputType<{
244
- id: z.ZodDefault<z.ZodString>;
245
- type: z.ZodString;
246
- label: z.ZodString;
247
- }, z.ZodTypeAny, "passthrough">>, "many">;
248
- }, "strip", z.ZodTypeAny, {
249
67
  fields: {
68
+ [x: string]: unknown;
250
69
  type: string;
251
- id: string;
252
70
  label: string;
71
+ id?: string | undefined;
253
72
  }[];
254
- }, {
255
- fields: z.objectInputType<{
256
- id: z.ZodDefault<z.ZodString>;
257
- type: z.ZodString;
258
- label: z.ZodString;
259
- }, z.ZodTypeAny, "passthrough">[];
260
- }>;
261
- }, "strip", z.ZodTypeAny, {
262
- type: "object";
263
- name: string;
73
+ };
74
+ includeIdField?: boolean | undefined;
75
+ }, z.core.$ZodTypeInternals<{
264
76
  id: string;
77
+ name: string;
265
78
  modelRef: string;
79
+ type: "object";
266
80
  form: {
267
81
  fields: {
268
- type: string;
82
+ [x: string]: unknown;
269
83
  id: string;
84
+ type: string;
270
85
  label: string;
271
86
  }[];
272
87
  };
273
88
  includeIdField?: boolean | undefined;
274
- }, {
275
- type: "object";
276
- name: string;
89
+ } | {
277
90
  id: string;
91
+ name: string;
278
92
  modelRef: string;
279
- form: {
280
- fields: z.objectInputType<{
281
- id: z.ZodDefault<z.ZodString>;
282
- type: z.ZodString;
283
- label: z.ZodString;
284
- }, z.ZodTypeAny, "passthrough">[];
285
- };
286
- includeIdField?: boolean | undefined;
287
- }>, z.ZodObject<{
288
- id: z.ZodString;
289
- name: z.ZodString;
290
- modelRef: z.ZodEffects<z.ZodString, string, string>;
291
- includeIdField: z.ZodOptional<z.ZodBoolean>;
292
- type: z.ZodLiteral<"list">;
293
- table: z.ZodObject<{
294
- columns: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
295
- id: z.ZodDefault<z.ZodString>;
296
- type: z.ZodString;
297
- label: z.ZodString;
298
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
299
- id: z.ZodDefault<z.ZodString>;
300
- type: z.ZodString;
301
- label: z.ZodString;
302
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
303
- id: z.ZodDefault<z.ZodString>;
304
- type: z.ZodString;
305
- label: z.ZodString;
306
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
307
- id: z.ZodDefault<z.ZodString>;
308
- type: z.ZodString;
309
- label: z.ZodString;
310
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
311
- id: z.ZodDefault<z.ZodString>;
312
- type: z.ZodString;
313
- label: z.ZodString;
314
- }, z.ZodTypeAny, "passthrough">>, {
315
- type: string;
316
- id: string;
317
- label: string;
318
- }, z.objectInputType<{
319
- id: z.ZodDefault<z.ZodString>;
320
- type: z.ZodString;
321
- label: z.ZodString;
322
- }, z.ZodTypeAny, "passthrough">>, "many">;
323
- }, "strip", z.ZodTypeAny, {
93
+ type: "list";
94
+ table: {
324
95
  columns: {
325
- type: string;
326
- id: string;
327
- label: string;
328
- }[];
329
- }, {
330
- columns: z.objectInputType<{
331
- id: z.ZodDefault<z.ZodString>;
332
- type: z.ZodString;
333
- label: z.ZodString;
334
- }, z.ZodTypeAny, "passthrough">[];
335
- }>;
336
- form: z.ZodObject<{
337
- fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
338
- id: z.ZodDefault<z.ZodString>;
339
- type: z.ZodString;
340
- label: z.ZodString;
341
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
342
- id: z.ZodDefault<z.ZodString>;
343
- type: z.ZodString;
344
- label: z.ZodString;
345
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
346
- id: z.ZodDefault<z.ZodString>;
347
- type: z.ZodString;
348
- label: z.ZodString;
349
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
350
- id: z.ZodDefault<z.ZodString>;
351
- type: z.ZodString;
352
- label: z.ZodString;
353
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
354
- id: z.ZodDefault<z.ZodString>;
355
- type: z.ZodString;
356
- label: z.ZodString;
357
- }, z.ZodTypeAny, "passthrough">>, {
358
- type: string;
96
+ [x: string]: unknown;
359
97
  id: string;
360
- label: string;
361
- }, z.objectInputType<{
362
- id: z.ZodDefault<z.ZodString>;
363
- type: z.ZodString;
364
- label: z.ZodString;
365
- }, z.ZodTypeAny, "passthrough">>, "many">;
366
- }, "strip", z.ZodTypeAny, {
367
- fields: {
368
98
  type: string;
369
- id: string;
370
99
  label: string;
371
100
  }[];
372
- }, {
373
- fields: z.objectInputType<{
374
- id: z.ZodDefault<z.ZodString>;
375
- type: z.ZodString;
376
- label: z.ZodString;
377
- }, z.ZodTypeAny, "passthrough">[];
378
- }>;
379
- }, "strip", z.ZodTypeAny, {
380
- type: "list";
381
- name: string;
382
- id: string;
383
- modelRef: string;
101
+ };
384
102
  form: {
385
103
  fields: {
386
- type: string;
104
+ [x: string]: unknown;
387
105
  id: string;
388
- label: string;
389
- }[];
390
- };
391
- table: {
392
- columns: {
393
106
  type: string;
394
- id: string;
395
107
  label: string;
396
108
  }[];
397
109
  };
398
110
  includeIdField?: boolean | undefined;
399
111
  }, {
400
- type: "list";
401
- name: string;
402
112
  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
- table: {
412
- columns: z.objectInputType<{
413
- id: z.ZodDefault<z.ZodString>;
414
- type: z.ZodString;
415
- label: z.ZodString;
416
- }, z.ZodTypeAny, "passthrough">[];
417
- };
418
- includeIdField?: boolean | undefined;
419
- }>]>, {
420
- type: "object";
421
113
  name: string;
422
- id: string;
423
114
  modelRef: string;
115
+ type: "object";
424
116
  form: {
425
117
  fields: {
118
+ [x: string]: unknown;
426
119
  type: string;
427
- id: string;
428
120
  label: string;
121
+ id?: string | undefined;
429
122
  }[];
430
123
  };
431
124
  includeIdField?: boolean | undefined;
432
125
  } | {
433
- type: "list";
434
- name: string;
435
126
  id: string;
127
+ name: string;
436
128
  modelRef: string;
437
- form: {
438
- fields: {
439
- type: string;
440
- id: string;
441
- label: string;
442
- }[];
443
- };
129
+ type: "list";
444
130
  table: {
445
131
  columns: {
132
+ [x: string]: unknown;
446
133
  type: string;
447
- id: string;
448
134
  label: string;
135
+ id?: string | undefined;
449
136
  }[];
450
137
  };
451
- includeIdField?: boolean | undefined;
452
- }, {
453
- type: "object";
454
- name: string;
455
- id: string;
456
- modelRef: string;
457
138
  form: {
458
- fields: z.objectInputType<{
459
- id: z.ZodDefault<z.ZodString>;
460
- type: z.ZodString;
461
- label: z.ZodString;
462
- }, z.ZodTypeAny, "passthrough">[];
463
- };
464
- includeIdField?: boolean | undefined;
465
- } | {
466
- type: "list";
467
- name: string;
468
- id: string;
469
- modelRef: string;
470
- form: {
471
- fields: z.objectInputType<{
472
- id: z.ZodDefault<z.ZodString>;
473
- type: z.ZodString;
474
- label: z.ZodString;
475
- }, z.ZodTypeAny, "passthrough">[];
476
- };
477
- table: {
478
- columns: z.objectInputType<{
479
- id: z.ZodDefault<z.ZodString>;
480
- type: z.ZodString;
481
- label: z.ZodString;
482
- }, z.ZodTypeAny, "passthrough">[];
139
+ fields: {
140
+ [x: string]: unknown;
141
+ type: string;
142
+ label: string;
143
+ id?: string | undefined;
144
+ }[];
483
145
  };
484
146
  includeIdField?: boolean | undefined;
147
+ }>>, {
148
+ adminSectionSlot: import("../../../../../index.js").DefinitionEntityType<true>;
485
149
  }>;
486
150
  export type AdminCrudEmbeddedFormConfig = def.InferOutput<typeof createAdminCrudEmbeddedFormSchema>;
487
151
  export type AdminCrudEmbeddedFormConfigInput = def.InferInput<typeof createAdminCrudEmbeddedFormSchema>;
488
- export declare const createAdminCrudSectionSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodEffects<z.ZodIntersection<z.ZodObject<{
489
- id: z.ZodDefault<z.ZodString>;
490
- name: z.ZodString;
491
- featureRef: z.ZodEffects<z.ZodString, string, string>;
492
- icon: z.ZodOptional<z.ZodString>;
493
- type: z.ZodString;
494
- }, "strip", z.ZodTypeAny, {
495
- type: string;
496
- name: string;
152
+ export declare const createAdminCrudSectionSchema: import("#src/schema/creator/index.js").DefinitionSchemaCreatorWithSlots<z.ZodType<{
497
153
  id: string;
498
- featureRef: string;
499
- icon?: string | undefined;
500
- }, {
501
- type: string;
502
154
  name: string;
503
155
  featureRef: string;
156
+ type: string;
504
157
  icon?: string | undefined;
505
- id?: string | undefined;
506
- }>, z.ZodObject<{
507
- type: z.ZodLiteral<"crud">;
508
- modelRef: z.ZodEffects<z.ZodString, string, string>;
509
- nameFieldRef: z.ZodEffects<z.ZodString, string, string>;
510
- disableCreate: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
511
- table: z.ZodObject<{
512
- columns: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
513
- id: z.ZodDefault<z.ZodString>;
514
- type: z.ZodString;
515
- label: z.ZodString;
516
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
517
- id: z.ZodDefault<z.ZodString>;
518
- type: z.ZodString;
519
- label: z.ZodString;
520
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
521
- id: z.ZodDefault<z.ZodString>;
522
- type: z.ZodString;
523
- label: z.ZodString;
524
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
525
- id: z.ZodDefault<z.ZodString>;
526
- type: z.ZodString;
527
- label: z.ZodString;
528
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
529
- id: z.ZodDefault<z.ZodString>;
530
- type: z.ZodString;
531
- label: z.ZodString;
532
- }, z.ZodTypeAny, "passthrough">>, {
533
- type: string;
534
- id: string;
535
- label: string;
536
- }, z.objectInputType<{
537
- id: z.ZodDefault<z.ZodString>;
538
- type: z.ZodString;
539
- label: z.ZodString;
540
- }, z.ZodTypeAny, "passthrough">>, "many">;
541
- actions: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
542
- id: z.ZodDefault<z.ZodString>;
543
- type: z.ZodString;
544
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
545
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
546
- id: z.ZodDefault<z.ZodString>;
547
- type: z.ZodString;
548
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
549
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
550
- id: z.ZodDefault<z.ZodString>;
551
- type: z.ZodString;
552
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
553
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
554
- id: z.ZodDefault<z.ZodString>;
555
- type: z.ZodString;
556
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
557
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
558
- id: z.ZodDefault<z.ZodString>;
559
- type: z.ZodString;
560
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
561
- }, z.ZodTypeAny, "passthrough">>, {
562
- type: string;
563
- id: string;
564
- position: "inline" | "dropdown";
565
- }, z.objectInputType<{
566
- id: z.ZodDefault<z.ZodString>;
567
- type: z.ZodString;
568
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
569
- }, z.ZodTypeAny, "passthrough">>, "many">>, {
570
- type: string;
571
- id: string;
572
- position: "inline" | "dropdown";
573
- }[] | undefined, z.objectInputType<{
574
- id: z.ZodDefault<z.ZodString>;
575
- type: z.ZodString;
576
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
577
- }, z.ZodTypeAny, "passthrough">[] | undefined>;
578
- }, "strip", z.ZodTypeAny, {
158
+ } & {
159
+ type: "crud";
160
+ modelRef: string;
161
+ nameFieldRef: string;
162
+ table: {
579
163
  columns: {
580
- type: string;
164
+ [x: string]: unknown;
581
165
  id: string;
166
+ type: string;
582
167
  label: string;
583
168
  }[];
584
169
  actions?: {
585
- type: string;
170
+ [x: string]: unknown;
586
171
  id: string;
172
+ type: string;
587
173
  position: "inline" | "dropdown";
588
174
  }[] | undefined;
589
- }, {
590
- columns: z.objectInputType<{
591
- id: z.ZodDefault<z.ZodString>;
592
- type: z.ZodString;
593
- label: z.ZodString;
594
- }, z.ZodTypeAny, "passthrough">[];
595
- actions?: z.objectInputType<{
596
- id: z.ZodDefault<z.ZodString>;
597
- type: z.ZodString;
598
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
599
- }, z.ZodTypeAny, "passthrough">[] | undefined;
600
- }>;
601
- form: z.ZodObject<{
602
- fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
603
- id: z.ZodDefault<z.ZodString>;
604
- type: z.ZodString;
605
- label: z.ZodString;
606
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
607
- id: z.ZodDefault<z.ZodString>;
608
- type: z.ZodString;
609
- label: z.ZodString;
610
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
611
- id: z.ZodDefault<z.ZodString>;
612
- type: z.ZodString;
613
- label: z.ZodString;
614
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
615
- id: z.ZodDefault<z.ZodString>;
616
- type: z.ZodString;
617
- label: z.ZodString;
618
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
619
- id: z.ZodDefault<z.ZodString>;
620
- type: z.ZodString;
621
- label: z.ZodString;
622
- }, z.ZodTypeAny, "passthrough">>, {
623
- type: string;
624
- id: string;
625
- label: string;
626
- }, z.objectInputType<{
627
- id: z.ZodDefault<z.ZodString>;
628
- type: z.ZodString;
629
- label: z.ZodString;
630
- }, z.ZodTypeAny, "passthrough">>, "many">;
631
- }, "strip", z.ZodTypeAny, {
175
+ };
176
+ form: {
632
177
  fields: {
633
- type: string;
178
+ [x: string]: unknown;
634
179
  id: string;
180
+ type: string;
635
181
  label: string;
636
182
  }[];
637
- }, {
638
- fields: z.objectInputType<{
639
- id: z.ZodDefault<z.ZodString>;
640
- type: z.ZodString;
641
- label: z.ZodString;
642
- }, z.ZodTypeAny, "passthrough">[];
643
- }>;
644
- embeddedForms: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
645
- id: z.ZodString;
646
- name: z.ZodString;
647
- modelRef: z.ZodEffects<z.ZodString, string, string>;
648
- includeIdField: z.ZodOptional<z.ZodBoolean>;
649
- type: z.ZodLiteral<"object">;
650
- form: z.ZodObject<{
651
- fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
652
- id: z.ZodDefault<z.ZodString>;
653
- type: z.ZodString;
654
- label: z.ZodString;
655
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
656
- id: z.ZodDefault<z.ZodString>;
657
- type: z.ZodString;
658
- label: z.ZodString;
659
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
660
- id: z.ZodDefault<z.ZodString>;
661
- type: z.ZodString;
662
- label: z.ZodString;
663
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
664
- id: z.ZodDefault<z.ZodString>;
665
- type: z.ZodString;
666
- label: z.ZodString;
667
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
668
- id: z.ZodDefault<z.ZodString>;
669
- type: z.ZodString;
670
- label: z.ZodString;
671
- }, z.ZodTypeAny, "passthrough">>, {
672
- type: string;
673
- id: string;
674
- label: string;
675
- }, z.objectInputType<{
676
- id: z.ZodDefault<z.ZodString>;
677
- type: z.ZodString;
678
- label: z.ZodString;
679
- }, z.ZodTypeAny, "passthrough">>, "many">;
680
- }, "strip", z.ZodTypeAny, {
681
- fields: {
682
- type: string;
683
- id: string;
684
- label: string;
685
- }[];
686
- }, {
687
- fields: z.objectInputType<{
688
- id: z.ZodDefault<z.ZodString>;
689
- type: z.ZodString;
690
- label: z.ZodString;
691
- }, z.ZodTypeAny, "passthrough">[];
692
- }>;
693
- }, "strip", z.ZodTypeAny, {
694
- type: "object";
695
- name: string;
183
+ };
184
+ disableCreate?: boolean | undefined;
185
+ embeddedForms?: ({
696
186
  id: string;
187
+ name: string;
697
188
  modelRef: string;
189
+ type: "object";
698
190
  form: {
699
191
  fields: {
700
- type: string;
192
+ [x: string]: unknown;
701
193
  id: string;
194
+ type: string;
702
195
  label: string;
703
196
  }[];
704
197
  };
705
198
  includeIdField?: boolean | undefined;
706
- }, {
707
- type: "object";
708
- name: string;
199
+ } | {
709
200
  id: string;
710
- modelRef: string;
711
- form: {
712
- fields: z.objectInputType<{
713
- id: z.ZodDefault<z.ZodString>;
714
- type: z.ZodString;
715
- label: z.ZodString;
716
- }, z.ZodTypeAny, "passthrough">[];
717
- };
718
- includeIdField?: boolean | undefined;
719
- }>, z.ZodObject<{
720
- id: z.ZodString;
721
- name: z.ZodString;
722
- modelRef: z.ZodEffects<z.ZodString, string, string>;
723
- includeIdField: z.ZodOptional<z.ZodBoolean>;
724
- type: z.ZodLiteral<"list">;
725
- table: z.ZodObject<{
726
- columns: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
727
- id: z.ZodDefault<z.ZodString>;
728
- type: z.ZodString;
729
- label: z.ZodString;
730
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
731
- id: z.ZodDefault<z.ZodString>;
732
- type: z.ZodString;
733
- label: z.ZodString;
734
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
735
- id: z.ZodDefault<z.ZodString>;
736
- type: z.ZodString;
737
- label: z.ZodString;
738
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
739
- id: z.ZodDefault<z.ZodString>;
740
- type: z.ZodString;
741
- label: z.ZodString;
742
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
743
- id: z.ZodDefault<z.ZodString>;
744
- type: z.ZodString;
745
- label: z.ZodString;
746
- }, z.ZodTypeAny, "passthrough">>, {
747
- type: string;
748
- id: string;
749
- label: string;
750
- }, z.objectInputType<{
751
- id: z.ZodDefault<z.ZodString>;
752
- type: z.ZodString;
753
- label: z.ZodString;
754
- }, z.ZodTypeAny, "passthrough">>, "many">;
755
- }, "strip", z.ZodTypeAny, {
756
- columns: {
757
- type: string;
758
- id: string;
759
- label: string;
760
- }[];
761
- }, {
762
- columns: z.objectInputType<{
763
- id: z.ZodDefault<z.ZodString>;
764
- type: z.ZodString;
765
- label: z.ZodString;
766
- }, z.ZodTypeAny, "passthrough">[];
767
- }>;
768
- form: z.ZodObject<{
769
- fields: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
770
- id: z.ZodDefault<z.ZodString>;
771
- type: z.ZodString;
772
- label: z.ZodString;
773
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
774
- id: z.ZodDefault<z.ZodString>;
775
- type: z.ZodString;
776
- label: z.ZodString;
777
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
778
- id: z.ZodDefault<z.ZodString>;
779
- type: z.ZodString;
780
- label: z.ZodString;
781
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
782
- id: z.ZodDefault<z.ZodString>;
783
- type: z.ZodString;
784
- label: z.ZodString;
785
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
786
- id: z.ZodDefault<z.ZodString>;
787
- type: z.ZodString;
788
- label: z.ZodString;
789
- }, z.ZodTypeAny, "passthrough">>, {
790
- type: string;
791
- id: string;
792
- label: string;
793
- }, z.objectInputType<{
794
- id: z.ZodDefault<z.ZodString>;
795
- type: z.ZodString;
796
- label: z.ZodString;
797
- }, z.ZodTypeAny, "passthrough">>, "many">;
798
- }, "strip", z.ZodTypeAny, {
799
- fields: {
800
- type: string;
801
- id: string;
802
- label: string;
803
- }[];
804
- }, {
805
- fields: z.objectInputType<{
806
- id: z.ZodDefault<z.ZodString>;
807
- type: z.ZodString;
808
- label: z.ZodString;
809
- }, z.ZodTypeAny, "passthrough">[];
810
- }>;
811
- }, "strip", z.ZodTypeAny, {
812
- type: "list";
813
201
  name: string;
814
- id: string;
815
202
  modelRef: string;
816
- form: {
817
- fields: {
818
- type: string;
819
- id: string;
820
- label: string;
821
- }[];
822
- };
203
+ type: "list";
823
204
  table: {
824
205
  columns: {
825
- type: string;
206
+ [x: string]: unknown;
826
207
  id: string;
827
- label: string;
828
- }[];
829
- };
830
- includeIdField?: boolean | undefined;
831
- }, {
832
- type: "list";
833
- name: string;
834
- id: string;
835
- modelRef: string;
836
- form: {
837
- fields: z.objectInputType<{
838
- id: z.ZodDefault<z.ZodString>;
839
- type: z.ZodString;
840
- label: z.ZodString;
841
- }, z.ZodTypeAny, "passthrough">[];
842
- };
843
- table: {
844
- columns: z.objectInputType<{
845
- id: z.ZodDefault<z.ZodString>;
846
- type: z.ZodString;
847
- label: z.ZodString;
848
- }, z.ZodTypeAny, "passthrough">[];
849
- };
850
- includeIdField?: boolean | undefined;
851
- }>]>, {
852
- type: "object";
853
- name: string;
854
- id: string;
855
- modelRef: string;
856
- form: {
857
- fields: {
858
208
  type: string;
859
- id: string;
860
209
  label: string;
861
210
  }[];
862
211
  };
863
- includeIdField?: boolean | undefined;
864
- } | {
865
- type: "list";
866
- name: string;
867
- id: string;
868
- modelRef: string;
869
212
  form: {
870
213
  fields: {
871
- type: string;
214
+ [x: string]: unknown;
872
215
  id: string;
873
- label: string;
874
- }[];
875
- };
876
- table: {
877
- columns: {
878
216
  type: string;
879
- id: string;
880
217
  label: string;
881
218
  }[];
882
219
  };
883
220
  includeIdField?: boolean | undefined;
884
- }, {
885
- type: "object";
886
- name: string;
887
- id: string;
888
- modelRef: string;
889
- form: {
890
- fields: z.objectInputType<{
891
- id: z.ZodDefault<z.ZodString>;
892
- type: z.ZodString;
893
- label: z.ZodString;
894
- }, z.ZodTypeAny, "passthrough">[];
895
- };
896
- includeIdField?: boolean | undefined;
897
- } | {
898
- type: "list";
899
- name: string;
900
- id: string;
901
- modelRef: string;
902
- form: {
903
- fields: z.objectInputType<{
904
- id: z.ZodDefault<z.ZodString>;
905
- type: z.ZodString;
906
- label: z.ZodString;
907
- }, z.ZodTypeAny, "passthrough">[];
908
- };
909
- table: {
910
- columns: z.objectInputType<{
911
- id: z.ZodDefault<z.ZodString>;
912
- type: z.ZodString;
913
- label: z.ZodString;
914
- }, z.ZodTypeAny, "passthrough">[];
915
- };
916
- includeIdField?: boolean | undefined;
917
- }>, "many">>;
918
- }, "strip", z.ZodTypeAny, {
221
+ })[] | undefined;
222
+ }, {
223
+ name: string;
224
+ featureRef: string;
225
+ type: string;
226
+ id?: string | undefined;
227
+ icon?: string | undefined;
228
+ } & {
919
229
  type: "crud";
920
230
  modelRef: string;
921
- form: {
922
- fields: {
923
- type: string;
924
- id: string;
925
- label: string;
926
- }[];
927
- };
231
+ nameFieldRef: string;
928
232
  table: {
929
233
  columns: {
234
+ [x: string]: unknown;
930
235
  type: string;
931
- id: string;
932
236
  label: string;
237
+ id?: string | undefined;
933
238
  }[];
934
239
  actions?: {
240
+ [x: string]: unknown;
935
241
  type: string;
936
- id: string;
937
- position: "inline" | "dropdown";
242
+ id?: string | undefined;
243
+ position?: "inline" | "dropdown" | undefined;
938
244
  }[] | undefined;
939
245
  };
940
- nameFieldRef: string;
246
+ form: {
247
+ fields: {
248
+ [x: string]: unknown;
249
+ type: string;
250
+ label: string;
251
+ id?: string | undefined;
252
+ }[];
253
+ };
941
254
  disableCreate?: boolean | undefined;
942
255
  embeddedForms?: ({
943
- type: "object";
944
- name: string;
945
256
  id: string;
257
+ name: string;
946
258
  modelRef: string;
259
+ type: "object";
947
260
  form: {
948
261
  fields: {
262
+ [x: string]: unknown;
949
263
  type: string;
950
- id: string;
951
264
  label: string;
265
+ id?: string | undefined;
952
266
  }[];
953
267
  };
954
268
  includeIdField?: boolean | undefined;
955
269
  } | {
956
- type: "list";
957
- name: string;
958
270
  id: string;
271
+ name: string;
959
272
  modelRef: string;
960
- form: {
961
- fields: {
962
- type: string;
963
- id: string;
964
- label: string;
965
- }[];
966
- };
273
+ type: "list";
967
274
  table: {
968
275
  columns: {
276
+ [x: string]: unknown;
969
277
  type: string;
970
- id: string;
971
278
  label: string;
279
+ id?: string | undefined;
972
280
  }[];
973
281
  };
974
- includeIdField?: boolean | undefined;
975
- })[] | undefined;
976
- }, {
977
- type: "crud";
978
- modelRef: string;
979
- form: {
980
- fields: z.objectInputType<{
981
- id: z.ZodDefault<z.ZodString>;
982
- type: z.ZodString;
983
- label: z.ZodString;
984
- }, z.ZodTypeAny, "passthrough">[];
985
- };
986
- table: {
987
- columns: z.objectInputType<{
988
- id: z.ZodDefault<z.ZodString>;
989
- type: z.ZodString;
990
- label: z.ZodString;
991
- }, z.ZodTypeAny, "passthrough">[];
992
- actions?: z.objectInputType<{
993
- id: z.ZodDefault<z.ZodString>;
994
- type: z.ZodString;
995
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
996
- }, z.ZodTypeAny, "passthrough">[] | undefined;
997
- };
998
- nameFieldRef: string;
999
- disableCreate?: boolean | undefined;
1000
- embeddedForms?: ({
1001
- type: "object";
1002
- name: string;
1003
- id: string;
1004
- modelRef: string;
1005
- form: {
1006
- fields: z.objectInputType<{
1007
- id: z.ZodDefault<z.ZodString>;
1008
- type: z.ZodString;
1009
- label: z.ZodString;
1010
- }, z.ZodTypeAny, "passthrough">[];
1011
- };
1012
- includeIdField?: boolean | undefined;
1013
- } | {
1014
- type: "list";
1015
- name: string;
1016
- id: string;
1017
- modelRef: string;
1018
282
  form: {
1019
- fields: z.objectInputType<{
1020
- id: z.ZodDefault<z.ZodString>;
1021
- type: z.ZodString;
1022
- label: z.ZodString;
1023
- }, z.ZodTypeAny, "passthrough">[];
1024
- };
1025
- table: {
1026
- columns: z.objectInputType<{
1027
- id: z.ZodDefault<z.ZodString>;
1028
- type: z.ZodString;
1029
- label: z.ZodString;
1030
- }, z.ZodTypeAny, "passthrough">[];
283
+ fields: {
284
+ [x: string]: unknown;
285
+ type: string;
286
+ label: string;
287
+ id?: string | undefined;
288
+ }[];
1031
289
  };
1032
290
  includeIdField?: boolean | undefined;
1033
291
  })[] | undefined;
1034
- }>>, {
1035
- type: string;
1036
- name: string;
292
+ }, z.core.$ZodTypeInternals<{
1037
293
  id: string;
294
+ name: string;
1038
295
  featureRef: string;
296
+ type: string;
1039
297
  icon?: string | undefined;
1040
298
  } & {
1041
299
  type: "crud";
1042
300
  modelRef: string;
1043
- form: {
1044
- fields: {
1045
- type: string;
1046
- id: string;
1047
- label: string;
1048
- }[];
1049
- };
301
+ nameFieldRef: string;
1050
302
  table: {
1051
303
  columns: {
1052
- type: string;
304
+ [x: string]: unknown;
1053
305
  id: string;
306
+ type: string;
1054
307
  label: string;
1055
308
  }[];
1056
309
  actions?: {
1057
- type: string;
310
+ [x: string]: unknown;
1058
311
  id: string;
312
+ type: string;
1059
313
  position: "inline" | "dropdown";
1060
314
  }[] | undefined;
1061
315
  };
1062
- nameFieldRef: string;
316
+ form: {
317
+ fields: {
318
+ [x: string]: unknown;
319
+ id: string;
320
+ type: string;
321
+ label: string;
322
+ }[];
323
+ };
1063
324
  disableCreate?: boolean | undefined;
1064
325
  embeddedForms?: ({
1065
- type: "object";
1066
- name: string;
1067
326
  id: string;
327
+ name: string;
1068
328
  modelRef: string;
329
+ type: "object";
1069
330
  form: {
1070
331
  fields: {
1071
- type: string;
332
+ [x: string]: unknown;
1072
333
  id: string;
334
+ type: string;
1073
335
  label: string;
1074
336
  }[];
1075
337
  };
1076
338
  includeIdField?: boolean | undefined;
1077
339
  } | {
1078
- type: "list";
1079
- name: string;
1080
340
  id: string;
341
+ name: string;
1081
342
  modelRef: string;
1082
- form: {
1083
- fields: {
1084
- type: string;
343
+ type: "list";
344
+ table: {
345
+ columns: {
346
+ [x: string]: unknown;
1085
347
  id: string;
348
+ type: string;
1086
349
  label: string;
1087
350
  }[];
1088
351
  };
1089
- table: {
1090
- columns: {
1091
- type: string;
352
+ form: {
353
+ fields: {
354
+ [x: string]: unknown;
1092
355
  id: string;
356
+ type: string;
1093
357
  label: string;
1094
358
  }[];
1095
359
  };
1096
360
  includeIdField?: boolean | undefined;
1097
361
  })[] | undefined;
1098
362
  }, {
1099
- type: string;
1100
363
  name: string;
1101
364
  featureRef: string;
1102
- icon?: string | undefined;
365
+ type: string;
1103
366
  id?: string | undefined;
367
+ icon?: string | undefined;
1104
368
  } & {
1105
369
  type: "crud";
1106
370
  modelRef: string;
1107
- form: {
1108
- fields: z.objectInputType<{
1109
- id: z.ZodDefault<z.ZodString>;
1110
- type: z.ZodString;
1111
- label: z.ZodString;
1112
- }, z.ZodTypeAny, "passthrough">[];
1113
- };
371
+ nameFieldRef: string;
1114
372
  table: {
1115
- columns: z.objectInputType<{
1116
- id: z.ZodDefault<z.ZodString>;
1117
- type: z.ZodString;
1118
- label: z.ZodString;
1119
- }, z.ZodTypeAny, "passthrough">[];
1120
- actions?: z.objectInputType<{
1121
- id: z.ZodDefault<z.ZodString>;
1122
- type: z.ZodString;
1123
- position: z.ZodDefault<z.ZodEnum<["inline", "dropdown"]>>;
1124
- }, z.ZodTypeAny, "passthrough">[] | undefined;
373
+ columns: {
374
+ [x: string]: unknown;
375
+ type: string;
376
+ label: string;
377
+ id?: string | undefined;
378
+ }[];
379
+ actions?: {
380
+ [x: string]: unknown;
381
+ type: string;
382
+ id?: string | undefined;
383
+ position?: "inline" | "dropdown" | undefined;
384
+ }[] | undefined;
385
+ };
386
+ form: {
387
+ fields: {
388
+ [x: string]: unknown;
389
+ type: string;
390
+ label: string;
391
+ id?: string | undefined;
392
+ }[];
1125
393
  };
1126
- nameFieldRef: string;
1127
394
  disableCreate?: boolean | undefined;
1128
395
  embeddedForms?: ({
1129
- type: "object";
1130
- name: string;
1131
396
  id: string;
397
+ name: string;
1132
398
  modelRef: string;
399
+ type: "object";
1133
400
  form: {
1134
- fields: z.objectInputType<{
1135
- id: z.ZodDefault<z.ZodString>;
1136
- type: z.ZodString;
1137
- label: z.ZodString;
1138
- }, z.ZodTypeAny, "passthrough">[];
401
+ fields: {
402
+ [x: string]: unknown;
403
+ type: string;
404
+ label: string;
405
+ id?: string | undefined;
406
+ }[];
1139
407
  };
1140
408
  includeIdField?: boolean | undefined;
1141
409
  } | {
1142
- type: "list";
1143
- name: string;
1144
410
  id: string;
411
+ name: string;
1145
412
  modelRef: string;
1146
- form: {
1147
- fields: z.objectInputType<{
1148
- id: z.ZodDefault<z.ZodString>;
1149
- type: z.ZodString;
1150
- label: z.ZodString;
1151
- }, z.ZodTypeAny, "passthrough">[];
1152
- };
413
+ type: "list";
1153
414
  table: {
1154
- columns: z.objectInputType<{
1155
- id: z.ZodDefault<z.ZodString>;
1156
- type: z.ZodString;
1157
- label: z.ZodString;
1158
- }, z.ZodTypeAny, "passthrough">[];
415
+ columns: {
416
+ [x: string]: unknown;
417
+ type: string;
418
+ label: string;
419
+ id?: string | undefined;
420
+ }[];
421
+ };
422
+ form: {
423
+ fields: {
424
+ [x: string]: unknown;
425
+ type: string;
426
+ label: string;
427
+ id?: string | undefined;
428
+ }[];
1159
429
  };
1160
430
  includeIdField?: boolean | undefined;
1161
431
  })[] | undefined;
432
+ }>>, {
433
+ adminSectionSlot: import("../../../../../index.js").DefinitionEntityType<true>;
1162
434
  }>;
1163
435
  export type AdminCrudSectionConfig = def.InferOutput<typeof createAdminCrudSectionSchema>;
1164
436
  export type AdminCrudSectionConfigInput = def.InferInput<typeof createAdminCrudSectionSchema>;