@oak-digital/types-4-strapi-2 0.5.4 → 1.0.0-beta.1

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 (116) hide show
  1. package/.eslintrc.json +2 -1
  2. package/CHANGELOG.md +7 -0
  3. package/README.md +21 -8
  4. package/lib/attributes/Attributes.d.ts +4 -3
  5. package/lib/attributes/Attributes.js +102 -78
  6. package/lib/content-types/reader.js +49 -145
  7. package/lib/extra-types/ExtraType.d.ts +2 -2
  8. package/lib/extra-types/ExtraType.js +19 -38
  9. package/lib/extra-types/createExtraTypes.d.ts +1 -1
  10. package/lib/extra-types/createExtraTypes.js +11 -12
  11. package/lib/file/File.d.ts +1 -1
  12. package/lib/file/File.js +44 -43
  13. package/lib/index.js +57 -19
  14. package/lib/interface/BuiltinComponentInterface.js +9 -27
  15. package/lib/interface/BuiltinInterface.d.ts +0 -1
  16. package/lib/interface/BuiltinInterface.js +5 -26
  17. package/lib/interface/ComponentInterface.d.ts +2 -1
  18. package/lib/interface/ComponentInterface.js +30 -48
  19. package/lib/interface/Interface.d.ts +6 -2
  20. package/lib/interface/Interface.js +69 -70
  21. package/lib/interface/builtinInterfaces.d.ts +1941 -2
  22. package/lib/interface/builtinInterfaces.js +56 -46
  23. package/lib/plugins/PluginManager.d.ts +8 -2
  24. package/lib/plugins/PluginManager.js +28 -35
  25. package/lib/plugins/draft-and-publish/index.d.ts +1 -1
  26. package/lib/plugins/draft-and-publish/index.js +17 -21
  27. package/lib/plugins/i18n/index.d.ts +1 -1
  28. package/lib/plugins/i18n/index.js +17 -22
  29. package/lib/plugins/index.js +4 -4
  30. package/lib/plugins/types.d.ts +1 -1
  31. package/lib/plugins/types.js +1 -4
  32. package/lib/plugins/url-alias/index.js +12 -15
  33. package/lib/plugins/url-alias/type.js +21 -32
  34. package/lib/program/InterfaceManager.d.ts +374 -24
  35. package/lib/program/InterfaceManager.js +128 -376
  36. package/lib/readers/by-file.d.ts +321 -0
  37. package/lib/readers/by-file.js +116 -0
  38. package/lib/readers/load-strapi/index.d.ts +319 -0
  39. package/lib/readers/load-strapi/index.js +106 -0
  40. package/lib/readers/types/attributes.d.ts +1639 -0
  41. package/lib/readers/types/attributes.js +144 -0
  42. package/lib/readers/types/component.d.ts +723 -0
  43. package/lib/readers/types/component.js +11 -0
  44. package/lib/readers/types/content-type-reader.d.ts +16 -0
  45. package/lib/readers/types/content-type-reader.js +2 -0
  46. package/lib/readers/types/content-type.d.ts +766 -0
  47. package/lib/readers/types/content-type.js +16 -0
  48. package/lib/utils/casing/index.js +2 -2
  49. package/lib/utils/index.js +5 -39
  50. package/lib/writers/basic-writer.d.ts +24 -0
  51. package/lib/writers/basic-writer.js +75 -0
  52. package/lib/writers/types/writer.d.ts +4 -0
  53. package/lib/writers/types/writer.js +2 -0
  54. package/package.json +12 -9
  55. package/tests/strapi-project/.editorconfig +16 -0
  56. package/tests/strapi-project/.env.example +6 -0
  57. package/tests/strapi-project/README.md +57 -0
  58. package/tests/strapi-project/config/admin.ts +13 -0
  59. package/tests/strapi-project/config/api.ts +7 -0
  60. package/tests/strapi-project/config/database.ts +93 -0
  61. package/tests/strapi-project/config/middlewares.ts +12 -0
  62. package/tests/strapi-project/config/server.ts +10 -0
  63. package/tests/strapi-project/favicon.png +0 -0
  64. package/tests/strapi-project/package-lock.json +16125 -0
  65. package/tests/strapi-project/package.json +30 -0
  66. package/tests/strapi-project/public/robots.txt +3 -0
  67. package/tests/strapi-project/public/uploads/.gitkeep +0 -0
  68. package/tests/strapi-project/src/admin/app.example.tsx +35 -0
  69. package/tests/strapi-project/src/admin/webpack.config.example.js +9 -0
  70. package/tests/strapi-project/src/api/.gitkeep +0 -0
  71. package/tests/strapi-project/src/api/collection-1/content-types/collection-1/schema.json +18 -0
  72. package/tests/strapi-project/src/api/collection-1/content-types/generated-type/schema.json +18 -0
  73. package/tests/strapi-project/src/api/collection-1/controllers/collection-1.ts +7 -0
  74. package/tests/strapi-project/src/api/collection-1/controllers/generated-type.ts +7 -0
  75. package/tests/strapi-project/src/api/collection-1/routes/collection-1.ts +7 -0
  76. package/tests/strapi-project/src/api/collection-1/routes/generated-type.ts +7 -0
  77. package/tests/strapi-project/src/api/collection-1/services/collection-1.ts +7 -0
  78. package/tests/strapi-project/src/api/collection-1/services/generated-type.ts +7 -0
  79. package/tests/strapi-project/src/api/standalone-controller/controllers/standalone-controller.ts +13 -0
  80. package/tests/strapi-project/src/components/my-category/all-types.json +88 -0
  81. package/tests/strapi-project/src/components/other-category/sub-component.json +12 -0
  82. package/tests/strapi-project/src/extensions/.gitkeep +0 -0
  83. package/tests/strapi-project/src/index.ts +18 -0
  84. package/lib/.prettierrc.json +0 -7
  85. package/lib/case/index.d.ts +0 -4
  86. package/lib/case/index.js +0 -47
  87. package/lib/interface/Attributes.d.ts +0 -11
  88. package/lib/interface/Attributes.js +0 -167
  89. package/lib/interface/InterfaceManager.d.ts +0 -39
  90. package/lib/interface/InterfaceManager.js +0 -396
  91. package/lib/interface/interfaceCreator.js +0 -7
  92. package/lib/interface/interfaceWriter.d.ts +0 -2
  93. package/lib/interface/interfaceWriter.js +0 -46
  94. package/lib/interface/schemaReader.d.ts +0 -14
  95. package/lib/interface/schemaReader.js +0 -177
  96. package/lib/src/index.d.ts +0 -1
  97. package/lib/src/index.js +0 -25
  98. package/lib/src/interface/Attributes.d.ts +0 -11
  99. package/lib/src/interface/Attributes.js +0 -148
  100. package/lib/src/interface/BuiltinComponentInterface.d.ts +0 -5
  101. package/lib/src/interface/BuiltinComponentInterface.js +0 -36
  102. package/lib/src/interface/BuiltinInterface.d.ts +0 -5
  103. package/lib/src/interface/BuiltinInterface.js +0 -33
  104. package/lib/src/interface/ComponentInterface.d.ts +0 -8
  105. package/lib/src/interface/ComponentInterface.js +0 -58
  106. package/lib/src/interface/Interface.d.ts +0 -31
  107. package/lib/src/interface/Interface.js +0 -112
  108. package/lib/src/interface/InterfaceManager.d.ts +0 -25
  109. package/lib/src/interface/InterfaceManager.js +0 -288
  110. package/lib/src/interface/builtinInterfaces.d.ts +0 -4
  111. package/lib/src/interface/builtinInterfaces.js +0 -81
  112. package/lib/src/interface/schemaReader.d.ts +0 -14
  113. package/lib/src/interface/schemaReader.js +0 -172
  114. package/lib/src/utils/index.d.ts +0 -3
  115. package/lib/src/utils/index.js +0 -67
  116. /package/{lib/interface/interfaceCreator.d.ts → tests/strapi-project/database/migrations/.gitkeep} +0 -0
@@ -0,0 +1,766 @@
1
+ import { z } from 'zod';
2
+ export declare const strapiContentType: z.ZodObject<{
3
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
4
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
5
+ pluginOptions: z.ZodAny;
6
+ required: z.ZodOptional<z.ZodBoolean>;
7
+ type: z.ZodEnum<["text", "string"]>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ __t4s_required?: boolean;
10
+ pluginOptions?: any;
11
+ required?: boolean;
12
+ type?: "text" | "string";
13
+ }, {
14
+ __t4s_required?: boolean;
15
+ pluginOptions?: any;
16
+ required?: boolean;
17
+ type?: "text" | "string";
18
+ }>, z.ZodObject<{
19
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
20
+ pluginOptions: z.ZodAny;
21
+ required: z.ZodOptional<z.ZodBoolean>;
22
+ type: z.ZodLiteral<"email">;
23
+ }, "strip", z.ZodTypeAny, {
24
+ __t4s_required?: boolean;
25
+ pluginOptions?: any;
26
+ required?: boolean;
27
+ type?: "email";
28
+ }, {
29
+ __t4s_required?: boolean;
30
+ pluginOptions?: any;
31
+ required?: boolean;
32
+ type?: "email";
33
+ }>, z.ZodObject<{
34
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
35
+ pluginOptions: z.ZodAny;
36
+ required: z.ZodOptional<z.ZodBoolean>;
37
+ type: z.ZodLiteral<"uid">;
38
+ targetField: z.ZodOptional<z.ZodString>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ __t4s_required?: boolean;
41
+ pluginOptions?: any;
42
+ required?: boolean;
43
+ type?: "uid";
44
+ targetField?: string;
45
+ }, {
46
+ __t4s_required?: boolean;
47
+ pluginOptions?: any;
48
+ required?: boolean;
49
+ type?: "uid";
50
+ targetField?: string;
51
+ }>, z.ZodObject<{
52
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
53
+ pluginOptions: z.ZodAny;
54
+ required: z.ZodOptional<z.ZodBoolean>;
55
+ type: z.ZodLiteral<"richtext">;
56
+ }, "strip", z.ZodTypeAny, {
57
+ __t4s_required?: boolean;
58
+ pluginOptions?: any;
59
+ required?: boolean;
60
+ type?: "richtext";
61
+ }, {
62
+ __t4s_required?: boolean;
63
+ pluginOptions?: any;
64
+ required?: boolean;
65
+ type?: "richtext";
66
+ }>, z.ZodObject<{
67
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
68
+ pluginOptions: z.ZodAny;
69
+ required: z.ZodOptional<z.ZodBoolean>;
70
+ type: z.ZodLiteral<"json">;
71
+ }, "strip", z.ZodTypeAny, {
72
+ __t4s_required?: boolean;
73
+ pluginOptions?: any;
74
+ required?: boolean;
75
+ type?: "json";
76
+ }, {
77
+ __t4s_required?: boolean;
78
+ pluginOptions?: any;
79
+ required?: boolean;
80
+ type?: "json";
81
+ }>, z.ZodObject<{
82
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
83
+ pluginOptions: z.ZodAny;
84
+ required: z.ZodOptional<z.ZodBoolean>;
85
+ type: z.ZodLiteral<"password">;
86
+ }, "strip", z.ZodTypeAny, {
87
+ __t4s_required?: boolean;
88
+ pluginOptions?: any;
89
+ required?: boolean;
90
+ type?: "password";
91
+ }, {
92
+ __t4s_required?: boolean;
93
+ pluginOptions?: any;
94
+ required?: boolean;
95
+ type?: "password";
96
+ }>, z.ZodUnion<[z.ZodObject<{
97
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
98
+ pluginOptions: z.ZodAny;
99
+ required: z.ZodOptional<z.ZodBoolean>;
100
+ type: z.ZodLiteral<"integer">;
101
+ }, "strip", z.ZodTypeAny, {
102
+ __t4s_required?: boolean;
103
+ pluginOptions?: any;
104
+ required?: boolean;
105
+ type?: "integer";
106
+ }, {
107
+ __t4s_required?: boolean;
108
+ pluginOptions?: any;
109
+ required?: boolean;
110
+ type?: "integer";
111
+ }>, z.ZodObject<{
112
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
113
+ pluginOptions: z.ZodAny;
114
+ required: z.ZodOptional<z.ZodBoolean>;
115
+ type: z.ZodLiteral<"float">;
116
+ }, "strip", z.ZodTypeAny, {
117
+ __t4s_required?: boolean;
118
+ pluginOptions?: any;
119
+ required?: boolean;
120
+ type?: "float";
121
+ }, {
122
+ __t4s_required?: boolean;
123
+ pluginOptions?: any;
124
+ required?: boolean;
125
+ type?: "float";
126
+ }>, z.ZodObject<{
127
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
128
+ pluginOptions: z.ZodAny;
129
+ required: z.ZodOptional<z.ZodBoolean>;
130
+ type: z.ZodLiteral<"biginteger">;
131
+ }, "strip", z.ZodTypeAny, {
132
+ __t4s_required?: boolean;
133
+ pluginOptions?: any;
134
+ required?: boolean;
135
+ type?: "biginteger";
136
+ }, {
137
+ __t4s_required?: boolean;
138
+ pluginOptions?: any;
139
+ required?: boolean;
140
+ type?: "biginteger";
141
+ }>, z.ZodObject<{
142
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
143
+ pluginOptions: z.ZodAny;
144
+ required: z.ZodOptional<z.ZodBoolean>;
145
+ type: z.ZodLiteral<"decimal">;
146
+ }, "strip", z.ZodTypeAny, {
147
+ __t4s_required?: boolean;
148
+ pluginOptions?: any;
149
+ required?: boolean;
150
+ type?: "decimal";
151
+ }, {
152
+ __t4s_required?: boolean;
153
+ pluginOptions?: any;
154
+ required?: boolean;
155
+ type?: "decimal";
156
+ }>]>, z.ZodObject<{
157
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
158
+ pluginOptions: z.ZodAny;
159
+ required: z.ZodOptional<z.ZodBoolean>;
160
+ type: z.ZodLiteral<"enumeration">;
161
+ enum: z.ZodArray<z.ZodString, "many">;
162
+ }, "strip", z.ZodTypeAny, {
163
+ __t4s_required?: boolean;
164
+ pluginOptions?: any;
165
+ required?: boolean;
166
+ type?: "enumeration";
167
+ enum?: string[];
168
+ }, {
169
+ __t4s_required?: boolean;
170
+ pluginOptions?: any;
171
+ required?: boolean;
172
+ type?: "enumeration";
173
+ enum?: string[];
174
+ }>, z.ZodUnion<[z.ZodObject<{
175
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
176
+ pluginOptions: z.ZodAny;
177
+ required: z.ZodOptional<z.ZodBoolean>;
178
+ type: z.ZodLiteral<"date">;
179
+ }, "strip", z.ZodTypeAny, {
180
+ __t4s_required?: boolean;
181
+ pluginOptions?: any;
182
+ required?: boolean;
183
+ type?: "date";
184
+ }, {
185
+ __t4s_required?: boolean;
186
+ pluginOptions?: any;
187
+ required?: boolean;
188
+ type?: "date";
189
+ }>, z.ZodObject<{
190
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
191
+ pluginOptions: z.ZodAny;
192
+ required: z.ZodOptional<z.ZodBoolean>;
193
+ type: z.ZodLiteral<"datetime">;
194
+ }, "strip", z.ZodTypeAny, {
195
+ __t4s_required?: boolean;
196
+ pluginOptions?: any;
197
+ required?: boolean;
198
+ type?: "datetime";
199
+ }, {
200
+ __t4s_required?: boolean;
201
+ pluginOptions?: any;
202
+ required?: boolean;
203
+ type?: "datetime";
204
+ }>, z.ZodObject<{
205
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
206
+ pluginOptions: z.ZodAny;
207
+ required: z.ZodOptional<z.ZodBoolean>;
208
+ type: z.ZodLiteral<"time">;
209
+ }, "strip", z.ZodTypeAny, {
210
+ __t4s_required?: boolean;
211
+ pluginOptions?: any;
212
+ required?: boolean;
213
+ type?: "time";
214
+ }, {
215
+ __t4s_required?: boolean;
216
+ pluginOptions?: any;
217
+ required?: boolean;
218
+ type?: "time";
219
+ }>]>, z.ZodObject<{
220
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
221
+ pluginOptions: z.ZodAny;
222
+ required: z.ZodOptional<z.ZodBoolean>;
223
+ type: z.ZodLiteral<"media">;
224
+ multiple: z.ZodOptional<z.ZodBoolean>;
225
+ allowedTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">>>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ __t4s_required?: boolean;
228
+ pluginOptions?: any;
229
+ required?: boolean;
230
+ type?: "media";
231
+ multiple?: boolean;
232
+ allowedTypes?: ("images" | "videos" | "audios" | "files")[];
233
+ }, {
234
+ __t4s_required?: boolean;
235
+ pluginOptions?: any;
236
+ required?: boolean;
237
+ type?: "media";
238
+ multiple?: boolean;
239
+ allowedTypes?: ("images" | "videos" | "audios" | "files")[];
240
+ }>, z.ZodObject<{
241
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
242
+ pluginOptions: z.ZodAny;
243
+ required: z.ZodOptional<z.ZodBoolean>;
244
+ type: z.ZodLiteral<"boolean">;
245
+ }, "strip", z.ZodTypeAny, {
246
+ __t4s_required?: boolean;
247
+ pluginOptions?: any;
248
+ required?: boolean;
249
+ type?: "boolean";
250
+ }, {
251
+ __t4s_required?: boolean;
252
+ pluginOptions?: any;
253
+ required?: boolean;
254
+ type?: "boolean";
255
+ }>, z.ZodUnion<[z.ZodObject<{
256
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
257
+ pluginOptions: z.ZodAny;
258
+ required: z.ZodOptional<z.ZodBoolean>;
259
+ type: z.ZodLiteral<"relation">;
260
+ target: z.ZodString;
261
+ relation: z.ZodLiteral<"oneToOne">;
262
+ }, "strip", z.ZodTypeAny, {
263
+ __t4s_required?: boolean;
264
+ pluginOptions?: any;
265
+ required?: boolean;
266
+ type?: "relation";
267
+ target?: string;
268
+ relation?: "oneToOne";
269
+ }, {
270
+ __t4s_required?: boolean;
271
+ pluginOptions?: any;
272
+ required?: boolean;
273
+ type?: "relation";
274
+ target?: string;
275
+ relation?: "oneToOne";
276
+ }>, z.ZodObject<{
277
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
278
+ pluginOptions: z.ZodAny;
279
+ required: z.ZodOptional<z.ZodBoolean>;
280
+ type: z.ZodLiteral<"relation">;
281
+ target: z.ZodString;
282
+ relation: z.ZodLiteral<"oneToOne">;
283
+ inversedBy: z.ZodString;
284
+ }, "strip", z.ZodTypeAny, {
285
+ __t4s_required?: boolean;
286
+ pluginOptions?: any;
287
+ required?: boolean;
288
+ type?: "relation";
289
+ target?: string;
290
+ relation?: "oneToOne";
291
+ inversedBy?: string;
292
+ }, {
293
+ __t4s_required?: boolean;
294
+ pluginOptions?: any;
295
+ required?: boolean;
296
+ type?: "relation";
297
+ target?: string;
298
+ relation?: "oneToOne";
299
+ inversedBy?: string;
300
+ }>, z.ZodObject<{
301
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
302
+ pluginOptions: z.ZodAny;
303
+ required: z.ZodOptional<z.ZodBoolean>;
304
+ type: z.ZodLiteral<"relation">;
305
+ target: z.ZodString;
306
+ mappedBy: z.ZodString;
307
+ relation: z.ZodLiteral<"oneToMany">;
308
+ }, "strip", z.ZodTypeAny, {
309
+ __t4s_required?: boolean;
310
+ pluginOptions?: any;
311
+ required?: boolean;
312
+ type?: "relation";
313
+ target?: string;
314
+ mappedBy?: string;
315
+ relation?: "oneToMany";
316
+ }, {
317
+ __t4s_required?: boolean;
318
+ pluginOptions?: any;
319
+ required?: boolean;
320
+ type?: "relation";
321
+ target?: string;
322
+ mappedBy?: string;
323
+ relation?: "oneToMany";
324
+ }>, z.ZodObject<{
325
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
326
+ pluginOptions: z.ZodAny;
327
+ required: z.ZodOptional<z.ZodBoolean>;
328
+ type: z.ZodLiteral<"relation">;
329
+ target: z.ZodString;
330
+ relation: z.ZodLiteral<"manyToOne">;
331
+ inversedBy: z.ZodString;
332
+ }, "strip", z.ZodTypeAny, {
333
+ __t4s_required?: boolean;
334
+ pluginOptions?: any;
335
+ required?: boolean;
336
+ type?: "relation";
337
+ target?: string;
338
+ relation?: "manyToOne";
339
+ inversedBy?: string;
340
+ }, {
341
+ __t4s_required?: boolean;
342
+ pluginOptions?: any;
343
+ required?: boolean;
344
+ type?: "relation";
345
+ target?: string;
346
+ relation?: "manyToOne";
347
+ inversedBy?: string;
348
+ }>, z.ZodObject<{
349
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
350
+ pluginOptions: z.ZodAny;
351
+ required: z.ZodOptional<z.ZodBoolean>;
352
+ type: z.ZodLiteral<"relation">;
353
+ target: z.ZodString;
354
+ relation: z.ZodLiteral<"manyToMany">;
355
+ inversedBy: z.ZodOptional<z.ZodString>;
356
+ mappedBy: z.ZodOptional<z.ZodString>;
357
+ }, "strip", z.ZodTypeAny, {
358
+ __t4s_required?: boolean;
359
+ pluginOptions?: any;
360
+ required?: boolean;
361
+ type?: "relation";
362
+ target?: string;
363
+ relation?: "manyToMany";
364
+ inversedBy?: string;
365
+ mappedBy?: string;
366
+ }, {
367
+ __t4s_required?: boolean;
368
+ pluginOptions?: any;
369
+ required?: boolean;
370
+ type?: "relation";
371
+ target?: string;
372
+ relation?: "manyToMany";
373
+ inversedBy?: string;
374
+ mappedBy?: string;
375
+ }>, z.ZodObject<{
376
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
377
+ pluginOptions: z.ZodAny;
378
+ required: z.ZodOptional<z.ZodBoolean>;
379
+ type: z.ZodLiteral<"relation">;
380
+ target: z.ZodString;
381
+ relation: z.ZodLiteral<"oneToMany">;
382
+ }, "strip", z.ZodTypeAny, {
383
+ __t4s_required?: boolean;
384
+ pluginOptions?: any;
385
+ required?: boolean;
386
+ type?: "relation";
387
+ target?: string;
388
+ relation?: "oneToMany";
389
+ }, {
390
+ __t4s_required?: boolean;
391
+ pluginOptions?: any;
392
+ required?: boolean;
393
+ type?: "relation";
394
+ target?: string;
395
+ relation?: "oneToMany";
396
+ }>, z.ZodObject<{
397
+ type: z.ZodLiteral<"relation">;
398
+ relation: z.ZodLiteral<"morphToMany">;
399
+ }, "strip", z.ZodTypeAny, {
400
+ type?: "relation";
401
+ relation?: "morphToMany";
402
+ }, {
403
+ type?: "relation";
404
+ relation?: "morphToMany";
405
+ }>]>, z.ZodObject<{
406
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
407
+ pluginOptions: z.ZodAny;
408
+ required: z.ZodOptional<z.ZodBoolean>;
409
+ type: z.ZodLiteral<"component">;
410
+ repeatable: z.ZodOptional<z.ZodBoolean>;
411
+ component: z.ZodString;
412
+ }, "strip", z.ZodTypeAny, {
413
+ __t4s_required?: boolean;
414
+ pluginOptions?: any;
415
+ required?: boolean;
416
+ type?: "component";
417
+ repeatable?: boolean;
418
+ component?: string;
419
+ }, {
420
+ __t4s_required?: boolean;
421
+ pluginOptions?: any;
422
+ required?: boolean;
423
+ type?: "component";
424
+ repeatable?: boolean;
425
+ component?: string;
426
+ }>]>, z.ZodObject<{
427
+ __t4s_required: z.ZodOptional<z.ZodBoolean>;
428
+ pluginOptions: z.ZodAny;
429
+ required: z.ZodOptional<z.ZodBoolean>;
430
+ type: z.ZodLiteral<"dynamiczone">;
431
+ components: z.ZodArray<z.ZodString, "many">;
432
+ }, "strip", z.ZodTypeAny, {
433
+ __t4s_required?: boolean;
434
+ pluginOptions?: any;
435
+ required?: boolean;
436
+ type?: "dynamiczone";
437
+ components?: string[];
438
+ }, {
439
+ __t4s_required?: boolean;
440
+ pluginOptions?: any;
441
+ required?: boolean;
442
+ type?: "dynamiczone";
443
+ components?: string[];
444
+ }>]>>;
445
+ collectionName: z.ZodString;
446
+ options: z.ZodOptional<z.ZodObject<{
447
+ draftAndPublish: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
448
+ }, "strip", z.ZodTypeAny, {
449
+ draftAndPublish?: boolean;
450
+ }, {
451
+ draftAndPublish?: boolean;
452
+ }>>;
453
+ pluginOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
454
+ uid: z.ZodOptional<z.ZodString>;
455
+ }, "strip", z.ZodTypeAny, {
456
+ attributes?: Record<string, {
457
+ __t4s_required?: boolean;
458
+ pluginOptions?: any;
459
+ required?: boolean;
460
+ type?: "text" | "string";
461
+ } | {
462
+ __t4s_required?: boolean;
463
+ pluginOptions?: any;
464
+ required?: boolean;
465
+ type?: "email";
466
+ } | {
467
+ __t4s_required?: boolean;
468
+ pluginOptions?: any;
469
+ required?: boolean;
470
+ type?: "uid";
471
+ targetField?: string;
472
+ } | {
473
+ __t4s_required?: boolean;
474
+ pluginOptions?: any;
475
+ required?: boolean;
476
+ type?: "richtext";
477
+ } | {
478
+ __t4s_required?: boolean;
479
+ pluginOptions?: any;
480
+ required?: boolean;
481
+ type?: "json";
482
+ } | {
483
+ __t4s_required?: boolean;
484
+ pluginOptions?: any;
485
+ required?: boolean;
486
+ type?: "password";
487
+ } | {
488
+ __t4s_required?: boolean;
489
+ pluginOptions?: any;
490
+ required?: boolean;
491
+ type?: "integer";
492
+ } | {
493
+ __t4s_required?: boolean;
494
+ pluginOptions?: any;
495
+ required?: boolean;
496
+ type?: "float";
497
+ } | {
498
+ __t4s_required?: boolean;
499
+ pluginOptions?: any;
500
+ required?: boolean;
501
+ type?: "biginteger";
502
+ } | {
503
+ __t4s_required?: boolean;
504
+ pluginOptions?: any;
505
+ required?: boolean;
506
+ type?: "decimal";
507
+ } | {
508
+ __t4s_required?: boolean;
509
+ pluginOptions?: any;
510
+ required?: boolean;
511
+ type?: "enumeration";
512
+ enum?: string[];
513
+ } | {
514
+ __t4s_required?: boolean;
515
+ pluginOptions?: any;
516
+ required?: boolean;
517
+ type?: "date";
518
+ } | {
519
+ __t4s_required?: boolean;
520
+ pluginOptions?: any;
521
+ required?: boolean;
522
+ type?: "datetime";
523
+ } | {
524
+ __t4s_required?: boolean;
525
+ pluginOptions?: any;
526
+ required?: boolean;
527
+ type?: "time";
528
+ } | {
529
+ __t4s_required?: boolean;
530
+ pluginOptions?: any;
531
+ required?: boolean;
532
+ type?: "media";
533
+ multiple?: boolean;
534
+ allowedTypes?: ("images" | "videos" | "audios" | "files")[];
535
+ } | {
536
+ __t4s_required?: boolean;
537
+ pluginOptions?: any;
538
+ required?: boolean;
539
+ type?: "boolean";
540
+ } | {
541
+ __t4s_required?: boolean;
542
+ pluginOptions?: any;
543
+ required?: boolean;
544
+ type?: "relation";
545
+ target?: string;
546
+ relation?: "oneToOne";
547
+ } | {
548
+ __t4s_required?: boolean;
549
+ pluginOptions?: any;
550
+ required?: boolean;
551
+ type?: "relation";
552
+ target?: string;
553
+ relation?: "oneToOne";
554
+ inversedBy?: string;
555
+ } | {
556
+ __t4s_required?: boolean;
557
+ pluginOptions?: any;
558
+ required?: boolean;
559
+ type?: "relation";
560
+ target?: string;
561
+ mappedBy?: string;
562
+ relation?: "oneToMany";
563
+ } | {
564
+ __t4s_required?: boolean;
565
+ pluginOptions?: any;
566
+ required?: boolean;
567
+ type?: "relation";
568
+ target?: string;
569
+ relation?: "manyToOne";
570
+ inversedBy?: string;
571
+ } | {
572
+ __t4s_required?: boolean;
573
+ pluginOptions?: any;
574
+ required?: boolean;
575
+ type?: "relation";
576
+ target?: string;
577
+ relation?: "manyToMany";
578
+ inversedBy?: string;
579
+ mappedBy?: string;
580
+ } | {
581
+ __t4s_required?: boolean;
582
+ pluginOptions?: any;
583
+ required?: boolean;
584
+ type?: "relation";
585
+ target?: string;
586
+ relation?: "oneToMany";
587
+ } | {
588
+ type?: "relation";
589
+ relation?: "morphToMany";
590
+ } | {
591
+ __t4s_required?: boolean;
592
+ pluginOptions?: any;
593
+ required?: boolean;
594
+ type?: "component";
595
+ repeatable?: boolean;
596
+ component?: string;
597
+ } | {
598
+ __t4s_required?: boolean;
599
+ pluginOptions?: any;
600
+ required?: boolean;
601
+ type?: "dynamiczone";
602
+ components?: string[];
603
+ }>;
604
+ collectionName?: string;
605
+ options?: {
606
+ draftAndPublish?: boolean;
607
+ };
608
+ pluginOptions?: Record<string, any>;
609
+ uid?: string;
610
+ }, {
611
+ attributes?: Record<string, {
612
+ __t4s_required?: boolean;
613
+ pluginOptions?: any;
614
+ required?: boolean;
615
+ type?: "text" | "string";
616
+ } | {
617
+ __t4s_required?: boolean;
618
+ pluginOptions?: any;
619
+ required?: boolean;
620
+ type?: "email";
621
+ } | {
622
+ __t4s_required?: boolean;
623
+ pluginOptions?: any;
624
+ required?: boolean;
625
+ type?: "uid";
626
+ targetField?: string;
627
+ } | {
628
+ __t4s_required?: boolean;
629
+ pluginOptions?: any;
630
+ required?: boolean;
631
+ type?: "richtext";
632
+ } | {
633
+ __t4s_required?: boolean;
634
+ pluginOptions?: any;
635
+ required?: boolean;
636
+ type?: "json";
637
+ } | {
638
+ __t4s_required?: boolean;
639
+ pluginOptions?: any;
640
+ required?: boolean;
641
+ type?: "password";
642
+ } | {
643
+ __t4s_required?: boolean;
644
+ pluginOptions?: any;
645
+ required?: boolean;
646
+ type?: "integer";
647
+ } | {
648
+ __t4s_required?: boolean;
649
+ pluginOptions?: any;
650
+ required?: boolean;
651
+ type?: "float";
652
+ } | {
653
+ __t4s_required?: boolean;
654
+ pluginOptions?: any;
655
+ required?: boolean;
656
+ type?: "biginteger";
657
+ } | {
658
+ __t4s_required?: boolean;
659
+ pluginOptions?: any;
660
+ required?: boolean;
661
+ type?: "decimal";
662
+ } | {
663
+ __t4s_required?: boolean;
664
+ pluginOptions?: any;
665
+ required?: boolean;
666
+ type?: "enumeration";
667
+ enum?: string[];
668
+ } | {
669
+ __t4s_required?: boolean;
670
+ pluginOptions?: any;
671
+ required?: boolean;
672
+ type?: "date";
673
+ } | {
674
+ __t4s_required?: boolean;
675
+ pluginOptions?: any;
676
+ required?: boolean;
677
+ type?: "datetime";
678
+ } | {
679
+ __t4s_required?: boolean;
680
+ pluginOptions?: any;
681
+ required?: boolean;
682
+ type?: "time";
683
+ } | {
684
+ __t4s_required?: boolean;
685
+ pluginOptions?: any;
686
+ required?: boolean;
687
+ type?: "media";
688
+ multiple?: boolean;
689
+ allowedTypes?: ("images" | "videos" | "audios" | "files")[];
690
+ } | {
691
+ __t4s_required?: boolean;
692
+ pluginOptions?: any;
693
+ required?: boolean;
694
+ type?: "boolean";
695
+ } | {
696
+ __t4s_required?: boolean;
697
+ pluginOptions?: any;
698
+ required?: boolean;
699
+ type?: "relation";
700
+ target?: string;
701
+ relation?: "oneToOne";
702
+ } | {
703
+ __t4s_required?: boolean;
704
+ pluginOptions?: any;
705
+ required?: boolean;
706
+ type?: "relation";
707
+ target?: string;
708
+ relation?: "oneToOne";
709
+ inversedBy?: string;
710
+ } | {
711
+ __t4s_required?: boolean;
712
+ pluginOptions?: any;
713
+ required?: boolean;
714
+ type?: "relation";
715
+ target?: string;
716
+ mappedBy?: string;
717
+ relation?: "oneToMany";
718
+ } | {
719
+ __t4s_required?: boolean;
720
+ pluginOptions?: any;
721
+ required?: boolean;
722
+ type?: "relation";
723
+ target?: string;
724
+ relation?: "manyToOne";
725
+ inversedBy?: string;
726
+ } | {
727
+ __t4s_required?: boolean;
728
+ pluginOptions?: any;
729
+ required?: boolean;
730
+ type?: "relation";
731
+ target?: string;
732
+ relation?: "manyToMany";
733
+ inversedBy?: string;
734
+ mappedBy?: string;
735
+ } | {
736
+ __t4s_required?: boolean;
737
+ pluginOptions?: any;
738
+ required?: boolean;
739
+ type?: "relation";
740
+ target?: string;
741
+ relation?: "oneToMany";
742
+ } | {
743
+ type?: "relation";
744
+ relation?: "morphToMany";
745
+ } | {
746
+ __t4s_required?: boolean;
747
+ pluginOptions?: any;
748
+ required?: boolean;
749
+ type?: "component";
750
+ repeatable?: boolean;
751
+ component?: string;
752
+ } | {
753
+ __t4s_required?: boolean;
754
+ pluginOptions?: any;
755
+ required?: boolean;
756
+ type?: "dynamiczone";
757
+ components?: string[];
758
+ }>;
759
+ collectionName?: string;
760
+ options?: {
761
+ draftAndPublish?: boolean;
762
+ };
763
+ pluginOptions?: Record<string, any>;
764
+ uid?: string;
765
+ }>;
766
+ export declare type StrapiContentType = z.infer<typeof strapiContentType>;