@oak-digital/types-4-strapi-2 1.0.6 → 1.0.8
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.
- package/lib/content-types/reader.js +5 -6
- package/lib/interface/builtinInterfaces.d.ts +330 -218
- package/lib/interface/builtinInterfaces.js +3 -3
- package/lib/program/InterfaceManager.d.ts +13 -186
- package/lib/readers/by-file.d.ts +13 -186
- package/lib/readers/load-strapi/index.d.ts +14 -186
- package/lib/readers/types/attributes.d.ts +374 -528
- package/lib/readers/types/attributes.js +1 -1
- package/lib/readers/types/component.d.ts +99 -62
- package/lib/readers/types/content-type.d.ts +125 -87
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/utils/casing/index.js +3 -3
- package/lib/utils/index.js +2 -3
- package/package.json +57 -49
- package/.editorconfig +0 -9
- package/.eslintrc.json +0 -49
- package/.github/workflows/publish.yml +0 -48
- package/.prettierrc.json +0 -8
|
@@ -156,4 +156,4 @@ const isKnownAttribute = (attributeObject) => {
|
|
|
156
156
|
return exports.attribute.safeParse(attributeObject).success;
|
|
157
157
|
};
|
|
158
158
|
exports.isKnownAttribute = isKnownAttribute;
|
|
159
|
-
exports.contentTypeAttribute = zod_1.z.union([exports.
|
|
159
|
+
exports.contentTypeAttribute = zod_1.z.union([exports.dynamiczoneAttribute, exports.attribute]);
|
|
@@ -2,9 +2,10 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const strapiComponent: z.ZodObject<{
|
|
3
3
|
collectionName: z.ZodString;
|
|
4
4
|
attributes: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
5
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
6
5
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
7
6
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
} & {
|
|
8
9
|
type: z.ZodEnum<["text", "string"]>;
|
|
9
10
|
}, "strip", z.ZodTypeAny, {
|
|
10
11
|
__t4s_required?: boolean;
|
|
@@ -17,9 +18,10 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
17
18
|
required?: boolean;
|
|
18
19
|
type?: "string" | "text";
|
|
19
20
|
}>, z.ZodObject<{
|
|
20
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
21
21
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
22
22
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
} & {
|
|
23
25
|
type: z.ZodLiteral<"email">;
|
|
24
26
|
}, "strip", z.ZodTypeAny, {
|
|
25
27
|
__t4s_required?: boolean;
|
|
@@ -32,9 +34,10 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
32
34
|
required?: boolean;
|
|
33
35
|
type?: "email";
|
|
34
36
|
}>, z.ZodObject<{
|
|
35
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
36
37
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
37
38
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
} & {
|
|
38
41
|
type: z.ZodLiteral<"uid">;
|
|
39
42
|
targetField: z.ZodOptional<z.ZodString>;
|
|
40
43
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -50,9 +53,10 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
50
53
|
type?: "uid";
|
|
51
54
|
targetField?: string;
|
|
52
55
|
}>, z.ZodObject<{
|
|
53
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
54
56
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
55
57
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
} & {
|
|
56
60
|
type: z.ZodLiteral<"richtext">;
|
|
57
61
|
}, "strip", z.ZodTypeAny, {
|
|
58
62
|
__t4s_required?: boolean;
|
|
@@ -65,9 +69,10 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
65
69
|
required?: boolean;
|
|
66
70
|
type?: "richtext";
|
|
67
71
|
}>, z.ZodObject<{
|
|
68
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
69
72
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
70
73
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
+
} & {
|
|
71
76
|
type: z.ZodLiteral<"blocks">;
|
|
72
77
|
}, "strip", z.ZodTypeAny, {
|
|
73
78
|
__t4s_required?: boolean;
|
|
@@ -80,9 +85,10 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
80
85
|
required?: boolean;
|
|
81
86
|
type?: "blocks";
|
|
82
87
|
}>, z.ZodObject<{
|
|
83
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
84
88
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
85
89
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
+
} & {
|
|
86
92
|
type: z.ZodLiteral<"json">;
|
|
87
93
|
}, "strip", z.ZodTypeAny, {
|
|
88
94
|
__t4s_required?: boolean;
|
|
@@ -95,9 +101,10 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
95
101
|
required?: boolean;
|
|
96
102
|
type?: "json";
|
|
97
103
|
}>, z.ZodObject<{
|
|
98
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
99
104
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
100
105
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
+
} & {
|
|
101
108
|
type: z.ZodLiteral<"password">;
|
|
102
109
|
}, "strip", z.ZodTypeAny, {
|
|
103
110
|
__t4s_required?: boolean;
|
|
@@ -110,9 +117,10 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
110
117
|
required?: boolean;
|
|
111
118
|
type?: "password";
|
|
112
119
|
}>, z.ZodObject<{
|
|
113
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
114
120
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
115
121
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
122
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
123
|
+
} & {
|
|
116
124
|
type: z.ZodLiteral<"integer">;
|
|
117
125
|
}, "strip", z.ZodTypeAny, {
|
|
118
126
|
__t4s_required?: boolean;
|
|
@@ -125,9 +133,10 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
125
133
|
required?: boolean;
|
|
126
134
|
type?: "integer";
|
|
127
135
|
}>, z.ZodObject<{
|
|
128
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
129
136
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
130
137
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
138
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
139
|
+
} & {
|
|
131
140
|
type: z.ZodLiteral<"float">;
|
|
132
141
|
}, "strip", z.ZodTypeAny, {
|
|
133
142
|
__t4s_required?: boolean;
|
|
@@ -140,9 +149,10 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
140
149
|
required?: boolean;
|
|
141
150
|
type?: "float";
|
|
142
151
|
}>, z.ZodObject<{
|
|
143
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
144
152
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
145
153
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
155
|
+
} & {
|
|
146
156
|
type: z.ZodLiteral<"biginteger">;
|
|
147
157
|
}, "strip", z.ZodTypeAny, {
|
|
148
158
|
__t4s_required?: boolean;
|
|
@@ -155,9 +165,10 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
155
165
|
required?: boolean;
|
|
156
166
|
type?: "biginteger";
|
|
157
167
|
}>, z.ZodObject<{
|
|
158
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
159
168
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
160
169
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
170
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
171
|
+
} & {
|
|
161
172
|
type: z.ZodLiteral<"decimal">;
|
|
162
173
|
}, "strip", z.ZodTypeAny, {
|
|
163
174
|
__t4s_required?: boolean;
|
|
@@ -170,9 +181,10 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
170
181
|
required?: boolean;
|
|
171
182
|
type?: "decimal";
|
|
172
183
|
}>, z.ZodObject<{
|
|
173
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
174
184
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
175
185
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
186
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
187
|
+
} & {
|
|
176
188
|
type: z.ZodLiteral<"enumeration">;
|
|
177
189
|
enum: z.ZodArray<z.ZodString, "many">;
|
|
178
190
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -188,9 +200,10 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
188
200
|
type?: "enumeration";
|
|
189
201
|
enum?: string[];
|
|
190
202
|
}>, z.ZodObject<{
|
|
191
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
192
203
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
193
204
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
205
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
206
|
+
} & {
|
|
194
207
|
type: z.ZodLiteral<"date">;
|
|
195
208
|
}, "strip", z.ZodTypeAny, {
|
|
196
209
|
__t4s_required?: boolean;
|
|
@@ -203,9 +216,10 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
203
216
|
required?: boolean;
|
|
204
217
|
type?: "date";
|
|
205
218
|
}>, z.ZodObject<{
|
|
206
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
207
219
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
208
220
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
221
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
222
|
+
} & {
|
|
209
223
|
type: z.ZodLiteral<"datetime">;
|
|
210
224
|
}, "strip", z.ZodTypeAny, {
|
|
211
225
|
__t4s_required?: boolean;
|
|
@@ -218,9 +232,10 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
218
232
|
required?: boolean;
|
|
219
233
|
type?: "datetime";
|
|
220
234
|
}>, z.ZodObject<{
|
|
221
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
222
235
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
223
236
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
237
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
238
|
+
} & {
|
|
224
239
|
type: z.ZodLiteral<"time">;
|
|
225
240
|
}, "strip", z.ZodTypeAny, {
|
|
226
241
|
__t4s_required?: boolean;
|
|
@@ -233,9 +248,10 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
233
248
|
required?: boolean;
|
|
234
249
|
type?: "time";
|
|
235
250
|
}>, z.ZodObject<{
|
|
236
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
237
251
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
238
252
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
253
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
254
|
+
} & {
|
|
239
255
|
type: z.ZodLiteral<"media">;
|
|
240
256
|
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
241
257
|
allowedTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["images", "videos", "audios", "files"]>, "many">>>;
|
|
@@ -254,9 +270,10 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
254
270
|
multiple?: boolean;
|
|
255
271
|
allowedTypes?: ("images" | "videos" | "audios" | "files")[];
|
|
256
272
|
}>, z.ZodObject<{
|
|
257
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
258
273
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
259
274
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
275
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
276
|
+
} & {
|
|
260
277
|
type: z.ZodLiteral<"boolean">;
|
|
261
278
|
}, "strip", z.ZodTypeAny, {
|
|
262
279
|
__t4s_required?: boolean;
|
|
@@ -269,32 +286,36 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
269
286
|
required?: boolean;
|
|
270
287
|
type?: "boolean";
|
|
271
288
|
}>, z.ZodObject<{
|
|
272
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
273
289
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
274
290
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
291
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
292
|
+
} & {
|
|
275
293
|
type: z.ZodLiteral<"relation">;
|
|
276
294
|
target: z.ZodString;
|
|
295
|
+
} & {
|
|
277
296
|
relation: z.ZodLiteral<"oneToOne">;
|
|
278
297
|
}, "strip", z.ZodTypeAny, {
|
|
279
298
|
__t4s_required?: boolean;
|
|
280
299
|
pluginOptions?: any;
|
|
281
300
|
required?: boolean;
|
|
282
301
|
type?: "relation";
|
|
283
|
-
target?: string;
|
|
284
302
|
relation?: "oneToOne";
|
|
303
|
+
target?: string;
|
|
285
304
|
}, {
|
|
286
305
|
__t4s_required?: boolean;
|
|
287
306
|
pluginOptions?: any;
|
|
288
307
|
required?: boolean;
|
|
289
308
|
type?: "relation";
|
|
290
|
-
target?: string;
|
|
291
309
|
relation?: "oneToOne";
|
|
310
|
+
target?: string;
|
|
292
311
|
}>, z.ZodObject<{
|
|
293
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
294
312
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
295
313
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
314
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
315
|
+
} & {
|
|
296
316
|
type: z.ZodLiteral<"relation">;
|
|
297
317
|
target: z.ZodString;
|
|
318
|
+
} & {
|
|
298
319
|
relation: z.ZodLiteral<"oneToOne">;
|
|
299
320
|
inversedBy: z.ZodString;
|
|
300
321
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -302,23 +323,25 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
302
323
|
pluginOptions?: any;
|
|
303
324
|
required?: boolean;
|
|
304
325
|
type?: "relation";
|
|
305
|
-
target?: string;
|
|
306
326
|
relation?: "oneToOne";
|
|
327
|
+
target?: string;
|
|
307
328
|
inversedBy?: string;
|
|
308
329
|
}, {
|
|
309
330
|
__t4s_required?: boolean;
|
|
310
331
|
pluginOptions?: any;
|
|
311
332
|
required?: boolean;
|
|
312
333
|
type?: "relation";
|
|
313
|
-
target?: string;
|
|
314
334
|
relation?: "oneToOne";
|
|
335
|
+
target?: string;
|
|
315
336
|
inversedBy?: string;
|
|
316
337
|
}>, z.ZodObject<{
|
|
317
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
318
338
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
319
339
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
340
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
341
|
+
} & {
|
|
320
342
|
type: z.ZodLiteral<"relation">;
|
|
321
343
|
target: z.ZodString;
|
|
344
|
+
} & {
|
|
322
345
|
mappedBy: z.ZodString;
|
|
323
346
|
relation: z.ZodLiteral<"oneToMany">;
|
|
324
347
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -326,23 +349,25 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
326
349
|
pluginOptions?: any;
|
|
327
350
|
required?: boolean;
|
|
328
351
|
type?: "relation";
|
|
352
|
+
relation?: "oneToMany";
|
|
329
353
|
target?: string;
|
|
330
354
|
mappedBy?: string;
|
|
331
|
-
relation?: "oneToMany";
|
|
332
355
|
}, {
|
|
333
356
|
__t4s_required?: boolean;
|
|
334
357
|
pluginOptions?: any;
|
|
335
358
|
required?: boolean;
|
|
336
359
|
type?: "relation";
|
|
360
|
+
relation?: "oneToMany";
|
|
337
361
|
target?: string;
|
|
338
362
|
mappedBy?: string;
|
|
339
|
-
relation?: "oneToMany";
|
|
340
363
|
}>, z.ZodObject<{
|
|
341
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
342
364
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
343
365
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
366
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
367
|
+
} & {
|
|
344
368
|
type: z.ZodLiteral<"relation">;
|
|
345
369
|
target: z.ZodString;
|
|
370
|
+
} & {
|
|
346
371
|
relation: z.ZodLiteral<"manyToOne">;
|
|
347
372
|
inversedBy: z.ZodString;
|
|
348
373
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -350,23 +375,25 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
350
375
|
pluginOptions?: any;
|
|
351
376
|
required?: boolean;
|
|
352
377
|
type?: "relation";
|
|
353
|
-
target?: string;
|
|
354
378
|
relation?: "manyToOne";
|
|
379
|
+
target?: string;
|
|
355
380
|
inversedBy?: string;
|
|
356
381
|
}, {
|
|
357
382
|
__t4s_required?: boolean;
|
|
358
383
|
pluginOptions?: any;
|
|
359
384
|
required?: boolean;
|
|
360
385
|
type?: "relation";
|
|
361
|
-
target?: string;
|
|
362
386
|
relation?: "manyToOne";
|
|
387
|
+
target?: string;
|
|
363
388
|
inversedBy?: string;
|
|
364
389
|
}>, z.ZodObject<{
|
|
365
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
366
390
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
367
391
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
392
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
393
|
+
} & {
|
|
368
394
|
type: z.ZodLiteral<"relation">;
|
|
369
395
|
target: z.ZodString;
|
|
396
|
+
} & {
|
|
370
397
|
relation: z.ZodLiteral<"manyToMany">;
|
|
371
398
|
inversedBy: z.ZodOptional<z.ZodString>;
|
|
372
399
|
mappedBy: z.ZodOptional<z.ZodString>;
|
|
@@ -375,8 +402,8 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
375
402
|
pluginOptions?: any;
|
|
376
403
|
required?: boolean;
|
|
377
404
|
type?: "relation";
|
|
378
|
-
target?: string;
|
|
379
405
|
relation?: "manyToMany";
|
|
406
|
+
target?: string;
|
|
380
407
|
inversedBy?: string;
|
|
381
408
|
mappedBy?: string;
|
|
382
409
|
}, {
|
|
@@ -384,35 +411,38 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
384
411
|
pluginOptions?: any;
|
|
385
412
|
required?: boolean;
|
|
386
413
|
type?: "relation";
|
|
387
|
-
target?: string;
|
|
388
414
|
relation?: "manyToMany";
|
|
415
|
+
target?: string;
|
|
389
416
|
inversedBy?: string;
|
|
390
417
|
mappedBy?: string;
|
|
391
418
|
}>, z.ZodObject<{
|
|
392
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
393
419
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
394
420
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
421
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
422
|
+
} & {
|
|
395
423
|
type: z.ZodLiteral<"relation">;
|
|
396
424
|
target: z.ZodString;
|
|
425
|
+
} & {
|
|
397
426
|
relation: z.ZodLiteral<"oneToMany">;
|
|
398
427
|
}, "strip", z.ZodTypeAny, {
|
|
399
428
|
__t4s_required?: boolean;
|
|
400
429
|
pluginOptions?: any;
|
|
401
430
|
required?: boolean;
|
|
402
431
|
type?: "relation";
|
|
403
|
-
target?: string;
|
|
404
432
|
relation?: "oneToMany";
|
|
433
|
+
target?: string;
|
|
405
434
|
}, {
|
|
406
435
|
__t4s_required?: boolean;
|
|
407
436
|
pluginOptions?: any;
|
|
408
437
|
required?: boolean;
|
|
409
438
|
type?: "relation";
|
|
410
|
-
target?: string;
|
|
411
439
|
relation?: "oneToMany";
|
|
440
|
+
target?: string;
|
|
412
441
|
}>, z.ZodObject<{
|
|
413
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
414
442
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
415
443
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
444
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
445
|
+
} & {
|
|
416
446
|
type: z.ZodLiteral<"relation">;
|
|
417
447
|
relation: z.ZodLiteral<"morphToMany">;
|
|
418
448
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -428,9 +458,10 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
428
458
|
type?: "relation";
|
|
429
459
|
relation?: "morphToMany";
|
|
430
460
|
}>, z.ZodObject<{
|
|
431
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
432
461
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
433
462
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
463
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
464
|
+
} & {
|
|
434
465
|
type: z.ZodLiteral<"relation">;
|
|
435
466
|
relation: z.ZodLiteral<"morphToOne">;
|
|
436
467
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -446,9 +477,10 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
446
477
|
type?: "relation";
|
|
447
478
|
relation?: "morphToOne";
|
|
448
479
|
}>, z.ZodObject<{
|
|
449
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
450
480
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
451
481
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
482
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
483
|
+
} & {
|
|
452
484
|
type: z.ZodLiteral<"component">;
|
|
453
485
|
repeatable: z.ZodOptional<z.ZodBoolean>;
|
|
454
486
|
component: z.ZodString;
|
|
@@ -457,34 +489,39 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
457
489
|
pluginOptions?: any;
|
|
458
490
|
required?: boolean;
|
|
459
491
|
type?: "component";
|
|
460
|
-
repeatable?: boolean;
|
|
461
492
|
component?: string;
|
|
493
|
+
repeatable?: boolean;
|
|
462
494
|
}, {
|
|
463
495
|
__t4s_required?: boolean;
|
|
464
496
|
pluginOptions?: any;
|
|
465
497
|
required?: boolean;
|
|
466
498
|
type?: "component";
|
|
467
|
-
repeatable?: boolean;
|
|
468
499
|
component?: string;
|
|
500
|
+
repeatable?: boolean;
|
|
469
501
|
}>, z.ZodObject<{
|
|
470
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
471
502
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
472
503
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
504
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
505
|
+
} & {
|
|
473
506
|
type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
|
|
474
507
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
475
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
476
508
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
477
509
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
510
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
511
|
+
} & {
|
|
478
512
|
type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
|
|
479
513
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
480
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
481
514
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
482
515
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
516
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
517
|
+
} & {
|
|
483
518
|
type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
|
|
484
519
|
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
485
520
|
options: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
486
521
|
uid: z.ZodOptional<z.ZodString>;
|
|
487
522
|
}, "strip", z.ZodTypeAny, {
|
|
523
|
+
options?: {};
|
|
524
|
+
uid?: string;
|
|
488
525
|
collectionName?: string;
|
|
489
526
|
attributes?: Record<string, {
|
|
490
527
|
__t4s_required?: boolean;
|
|
@@ -580,39 +617,39 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
580
617
|
pluginOptions?: any;
|
|
581
618
|
required?: boolean;
|
|
582
619
|
type?: "relation";
|
|
583
|
-
target?: string;
|
|
584
620
|
relation?: "oneToOne";
|
|
621
|
+
target?: string;
|
|
585
622
|
} | {
|
|
586
623
|
__t4s_required?: boolean;
|
|
587
624
|
pluginOptions?: any;
|
|
588
625
|
required?: boolean;
|
|
589
626
|
type?: "relation";
|
|
590
|
-
target?: string;
|
|
591
627
|
relation?: "oneToOne";
|
|
628
|
+
target?: string;
|
|
592
629
|
inversedBy?: string;
|
|
593
630
|
} | {
|
|
594
631
|
__t4s_required?: boolean;
|
|
595
632
|
pluginOptions?: any;
|
|
596
633
|
required?: boolean;
|
|
597
634
|
type?: "relation";
|
|
635
|
+
relation?: "oneToMany";
|
|
598
636
|
target?: string;
|
|
599
637
|
mappedBy?: string;
|
|
600
|
-
relation?: "oneToMany";
|
|
601
638
|
} | {
|
|
602
639
|
__t4s_required?: boolean;
|
|
603
640
|
pluginOptions?: any;
|
|
604
641
|
required?: boolean;
|
|
605
642
|
type?: "relation";
|
|
606
|
-
target?: string;
|
|
607
643
|
relation?: "manyToOne";
|
|
644
|
+
target?: string;
|
|
608
645
|
inversedBy?: string;
|
|
609
646
|
} | {
|
|
610
647
|
__t4s_required?: boolean;
|
|
611
648
|
pluginOptions?: any;
|
|
612
649
|
required?: boolean;
|
|
613
650
|
type?: "relation";
|
|
614
|
-
target?: string;
|
|
615
651
|
relation?: "manyToMany";
|
|
652
|
+
target?: string;
|
|
616
653
|
inversedBy?: string;
|
|
617
654
|
mappedBy?: string;
|
|
618
655
|
} | {
|
|
@@ -620,8 +657,8 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
620
657
|
pluginOptions?: any;
|
|
621
658
|
required?: boolean;
|
|
622
659
|
type?: "relation";
|
|
623
|
-
target?: string;
|
|
624
660
|
relation?: "oneToMany";
|
|
661
|
+
target?: string;
|
|
625
662
|
} | {
|
|
626
663
|
__t4s_required?: boolean;
|
|
627
664
|
pluginOptions?: any;
|
|
@@ -639,17 +676,18 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
639
676
|
pluginOptions?: any;
|
|
640
677
|
required?: boolean;
|
|
641
678
|
type?: "component";
|
|
642
|
-
repeatable?: boolean;
|
|
643
679
|
component?: string;
|
|
680
|
+
repeatable?: boolean;
|
|
644
681
|
} | z.objectOutputType<{
|
|
645
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
646
682
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
647
683
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
684
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
685
|
+
} & {
|
|
648
686
|
type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
|
|
649
687
|
}, z.ZodTypeAny, "passthrough">>;
|
|
688
|
+
}, {
|
|
650
689
|
options?: {};
|
|
651
690
|
uid?: string;
|
|
652
|
-
}, {
|
|
653
691
|
collectionName?: string;
|
|
654
692
|
attributes?: Record<string, {
|
|
655
693
|
__t4s_required?: boolean;
|
|
@@ -745,39 +783,39 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
745
783
|
pluginOptions?: any;
|
|
746
784
|
required?: boolean;
|
|
747
785
|
type?: "relation";
|
|
748
|
-
target?: string;
|
|
749
786
|
relation?: "oneToOne";
|
|
787
|
+
target?: string;
|
|
750
788
|
} | {
|
|
751
789
|
__t4s_required?: boolean;
|
|
752
790
|
pluginOptions?: any;
|
|
753
791
|
required?: boolean;
|
|
754
792
|
type?: "relation";
|
|
755
|
-
target?: string;
|
|
756
793
|
relation?: "oneToOne";
|
|
794
|
+
target?: string;
|
|
757
795
|
inversedBy?: string;
|
|
758
796
|
} | {
|
|
759
797
|
__t4s_required?: boolean;
|
|
760
798
|
pluginOptions?: any;
|
|
761
799
|
required?: boolean;
|
|
762
800
|
type?: "relation";
|
|
801
|
+
relation?: "oneToMany";
|
|
763
802
|
target?: string;
|
|
764
803
|
mappedBy?: string;
|
|
765
|
-
relation?: "oneToMany";
|
|
766
804
|
} | {
|
|
767
805
|
__t4s_required?: boolean;
|
|
768
806
|
pluginOptions?: any;
|
|
769
807
|
required?: boolean;
|
|
770
808
|
type?: "relation";
|
|
771
|
-
target?: string;
|
|
772
809
|
relation?: "manyToOne";
|
|
810
|
+
target?: string;
|
|
773
811
|
inversedBy?: string;
|
|
774
812
|
} | {
|
|
775
813
|
__t4s_required?: boolean;
|
|
776
814
|
pluginOptions?: any;
|
|
777
815
|
required?: boolean;
|
|
778
816
|
type?: "relation";
|
|
779
|
-
target?: string;
|
|
780
817
|
relation?: "manyToMany";
|
|
818
|
+
target?: string;
|
|
781
819
|
inversedBy?: string;
|
|
782
820
|
mappedBy?: string;
|
|
783
821
|
} | {
|
|
@@ -785,8 +823,8 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
785
823
|
pluginOptions?: any;
|
|
786
824
|
required?: boolean;
|
|
787
825
|
type?: "relation";
|
|
788
|
-
target?: string;
|
|
789
826
|
relation?: "oneToMany";
|
|
827
|
+
target?: string;
|
|
790
828
|
} | {
|
|
791
829
|
__t4s_required?: boolean;
|
|
792
830
|
pluginOptions?: any;
|
|
@@ -804,15 +842,14 @@ export declare const strapiComponent: z.ZodObject<{
|
|
|
804
842
|
pluginOptions?: any;
|
|
805
843
|
required?: boolean;
|
|
806
844
|
type?: "component";
|
|
807
|
-
repeatable?: boolean;
|
|
808
845
|
component?: string;
|
|
846
|
+
repeatable?: boolean;
|
|
809
847
|
} | z.objectInputType<{
|
|
810
|
-
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
811
848
|
pluginOptions: z.ZodOptional<z.ZodAny>;
|
|
812
849
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
850
|
+
__t4s_required: z.ZodOptional<z.ZodBoolean>;
|
|
851
|
+
} & {
|
|
813
852
|
type: z.ZodEffects<z.ZodType<"any", z.ZodTypeDef, "any">, "any", "any">;
|
|
814
853
|
}, z.ZodTypeAny, "passthrough">>;
|
|
815
|
-
options?: {};
|
|
816
|
-
uid?: string;
|
|
817
854
|
}>;
|
|
818
855
|
export type StrapiComponent = z.infer<typeof strapiComponent>;
|