@oak-digital/types-4-strapi-2 1.0.5 → 1.0.7

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