@jackhayes/util-types 0.0.32 → 0.0.35
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/eslint.config.mjs +2 -2
- package/package.json +2 -2
- package/src/be-content/creator.zod.ts +2 -1
- package/src/common/languages.zod.ts +2 -0
- package/tsconfig.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/be-content/collection.zod.d.ts +0 -8
- package/dist/be-content/collection.zod.js +0 -7
- package/dist/be-content/collectionItem.zod.d.ts +0 -8
- package/dist/be-content/collectionItem.zod.js +0 -7
- package/dist/be-content/creator.zod.d.ts +0 -33
- package/dist/be-content/creator.zod.js +0 -13
- package/dist/be-content/creatorProjectRelation.zod.d.ts +0 -31
- package/dist/be-content/creatorProjectRelation.zod.js +0 -8
- package/dist/be-content/project.zod.d.ts +0 -698
- package/dist/be-content/project.zod.js +0 -22
- package/dist/be-content/projectCreator.zod.d.ts +0 -31
- package/dist/be-content/projectCreator.zod.js +0 -8
- package/dist/be-content/update.zod.d.ts +0 -10
- package/dist/be-content/update.zod.js +0 -9
- package/dist/be-feed/contentUpdate.zod.d.ts +0 -24
- package/dist/be-feed/contentUpdate.zod.js +0 -22
- package/dist/be-search/mainSearch.zod.d.ts +0 -38
- package/dist/be-search/mainSearch.zod.js +0 -11
- package/dist/be-user/subscription.zod.d.ts +0 -9
- package/dist/be-user/subscription.zod.js +0 -8
- package/dist/common/countries.zod.d.ts +0 -254
- package/dist/common/countries.zod.js +0 -503
- package/dist/common/creatorTypes.zod.d.ts +0 -57
- package/dist/common/creatorTypes.zod.js +0 -6
- package/dist/common/languages.zod.d.ts +0 -56
- package/dist/common/languages.zod.js +0 -107
- package/dist/common/projectTypes.zod.d.ts +0 -37
- package/dist/common/projectTypes.zod.js +0 -6
- package/dist/index.d.ts +0 -14
- package/dist/index.js +0 -14
|
@@ -1,698 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const project: z.ZodObject<{
|
|
3
|
-
id: z.ZodUUID;
|
|
4
|
-
title: z.ZodString;
|
|
5
|
-
type: z.ZodEnum<{
|
|
6
|
-
film: "film";
|
|
7
|
-
video_game: "video_game";
|
|
8
|
-
music: "music";
|
|
9
|
-
tv: "tv";
|
|
10
|
-
}>;
|
|
11
|
-
description: z.ZodOptional<z.ZodString>;
|
|
12
|
-
releaseDate: z.ZodOptional<z.ZodString>;
|
|
13
|
-
createdAt: z.ZodString;
|
|
14
|
-
updatedAt: z.ZodString;
|
|
15
|
-
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
16
|
-
id: "id";
|
|
17
|
-
af: "af";
|
|
18
|
-
am: "am";
|
|
19
|
-
ar: "ar";
|
|
20
|
-
bg: "bg";
|
|
21
|
-
bn: "bn";
|
|
22
|
-
ca: "ca";
|
|
23
|
-
cs: "cs";
|
|
24
|
-
cy: "cy";
|
|
25
|
-
da: "da";
|
|
26
|
-
de: "de";
|
|
27
|
-
el: "el";
|
|
28
|
-
en: "en";
|
|
29
|
-
eo: "eo";
|
|
30
|
-
es: "es";
|
|
31
|
-
fa: "fa";
|
|
32
|
-
fi: "fi";
|
|
33
|
-
fr: "fr";
|
|
34
|
-
ga: "ga";
|
|
35
|
-
he: "he";
|
|
36
|
-
hi: "hi";
|
|
37
|
-
hr: "hr";
|
|
38
|
-
hu: "hu";
|
|
39
|
-
is: "is";
|
|
40
|
-
it: "it";
|
|
41
|
-
ja: "ja";
|
|
42
|
-
ko: "ko";
|
|
43
|
-
la: "la";
|
|
44
|
-
lb: "lb";
|
|
45
|
-
mr: "mr";
|
|
46
|
-
ms: "ms";
|
|
47
|
-
mt: "mt";
|
|
48
|
-
nl: "nl";
|
|
49
|
-
no: "no";
|
|
50
|
-
pl: "pl";
|
|
51
|
-
pt: "pt";
|
|
52
|
-
ro: "ro";
|
|
53
|
-
ru: "ru";
|
|
54
|
-
sk: "sk";
|
|
55
|
-
sr: "sr";
|
|
56
|
-
sv: "sv";
|
|
57
|
-
sw: "sw";
|
|
58
|
-
ta: "ta";
|
|
59
|
-
te: "te";
|
|
60
|
-
th: "th";
|
|
61
|
-
tl: "tl";
|
|
62
|
-
tr: "tr";
|
|
63
|
-
uk: "uk";
|
|
64
|
-
ur: "ur";
|
|
65
|
-
vi: "vi";
|
|
66
|
-
zh: "zh";
|
|
67
|
-
}>>;
|
|
68
|
-
originCountry: z.ZodOptional<z.ZodEnum<{
|
|
69
|
-
AF: "AF";
|
|
70
|
-
AX: "AX";
|
|
71
|
-
AL: "AL";
|
|
72
|
-
DZ: "DZ";
|
|
73
|
-
AS: "AS";
|
|
74
|
-
AD: "AD";
|
|
75
|
-
AO: "AO";
|
|
76
|
-
AI: "AI";
|
|
77
|
-
AQ: "AQ";
|
|
78
|
-
AG: "AG";
|
|
79
|
-
AR: "AR";
|
|
80
|
-
AM: "AM";
|
|
81
|
-
AW: "AW";
|
|
82
|
-
AU: "AU";
|
|
83
|
-
AT: "AT";
|
|
84
|
-
AZ: "AZ";
|
|
85
|
-
BS: "BS";
|
|
86
|
-
BH: "BH";
|
|
87
|
-
BD: "BD";
|
|
88
|
-
BB: "BB";
|
|
89
|
-
BY: "BY";
|
|
90
|
-
BE: "BE";
|
|
91
|
-
BZ: "BZ";
|
|
92
|
-
BJ: "BJ";
|
|
93
|
-
BM: "BM";
|
|
94
|
-
BT: "BT";
|
|
95
|
-
BO: "BO";
|
|
96
|
-
BQ: "BQ";
|
|
97
|
-
BA: "BA";
|
|
98
|
-
BW: "BW";
|
|
99
|
-
BV: "BV";
|
|
100
|
-
BR: "BR";
|
|
101
|
-
IO: "IO";
|
|
102
|
-
BN: "BN";
|
|
103
|
-
BG: "BG";
|
|
104
|
-
BF: "BF";
|
|
105
|
-
BI: "BI";
|
|
106
|
-
CV: "CV";
|
|
107
|
-
KH: "KH";
|
|
108
|
-
CM: "CM";
|
|
109
|
-
CA: "CA";
|
|
110
|
-
KY: "KY";
|
|
111
|
-
CF: "CF";
|
|
112
|
-
TD: "TD";
|
|
113
|
-
CL: "CL";
|
|
114
|
-
CN: "CN";
|
|
115
|
-
CX: "CX";
|
|
116
|
-
CC: "CC";
|
|
117
|
-
CO: "CO";
|
|
118
|
-
KM: "KM";
|
|
119
|
-
CG: "CG";
|
|
120
|
-
CD: "CD";
|
|
121
|
-
CK: "CK";
|
|
122
|
-
CR: "CR";
|
|
123
|
-
CI: "CI";
|
|
124
|
-
HR: "HR";
|
|
125
|
-
CU: "CU";
|
|
126
|
-
CW: "CW";
|
|
127
|
-
CY: "CY";
|
|
128
|
-
CZ: "CZ";
|
|
129
|
-
DK: "DK";
|
|
130
|
-
DJ: "DJ";
|
|
131
|
-
DM: "DM";
|
|
132
|
-
DO: "DO";
|
|
133
|
-
EC: "EC";
|
|
134
|
-
EG: "EG";
|
|
135
|
-
SV: "SV";
|
|
136
|
-
GQ: "GQ";
|
|
137
|
-
ER: "ER";
|
|
138
|
-
EE: "EE";
|
|
139
|
-
SZ: "SZ";
|
|
140
|
-
ET: "ET";
|
|
141
|
-
FK: "FK";
|
|
142
|
-
FO: "FO";
|
|
143
|
-
FJ: "FJ";
|
|
144
|
-
FI: "FI";
|
|
145
|
-
FR: "FR";
|
|
146
|
-
GF: "GF";
|
|
147
|
-
PF: "PF";
|
|
148
|
-
TF: "TF";
|
|
149
|
-
GA: "GA";
|
|
150
|
-
GM: "GM";
|
|
151
|
-
GE: "GE";
|
|
152
|
-
DE: "DE";
|
|
153
|
-
GH: "GH";
|
|
154
|
-
GI: "GI";
|
|
155
|
-
GR: "GR";
|
|
156
|
-
GL: "GL";
|
|
157
|
-
GD: "GD";
|
|
158
|
-
GP: "GP";
|
|
159
|
-
GU: "GU";
|
|
160
|
-
GT: "GT";
|
|
161
|
-
GG: "GG";
|
|
162
|
-
GN: "GN";
|
|
163
|
-
GW: "GW";
|
|
164
|
-
GY: "GY";
|
|
165
|
-
HT: "HT";
|
|
166
|
-
HM: "HM";
|
|
167
|
-
VA: "VA";
|
|
168
|
-
HN: "HN";
|
|
169
|
-
HK: "HK";
|
|
170
|
-
HU: "HU";
|
|
171
|
-
IS: "IS";
|
|
172
|
-
IN: "IN";
|
|
173
|
-
ID: "ID";
|
|
174
|
-
IR: "IR";
|
|
175
|
-
IQ: "IQ";
|
|
176
|
-
IE: "IE";
|
|
177
|
-
IM: "IM";
|
|
178
|
-
IL: "IL";
|
|
179
|
-
IT: "IT";
|
|
180
|
-
JM: "JM";
|
|
181
|
-
JP: "JP";
|
|
182
|
-
JE: "JE";
|
|
183
|
-
JO: "JO";
|
|
184
|
-
KZ: "KZ";
|
|
185
|
-
KE: "KE";
|
|
186
|
-
KI: "KI";
|
|
187
|
-
KP: "KP";
|
|
188
|
-
KR: "KR";
|
|
189
|
-
KW: "KW";
|
|
190
|
-
KG: "KG";
|
|
191
|
-
LA: "LA";
|
|
192
|
-
LV: "LV";
|
|
193
|
-
LB: "LB";
|
|
194
|
-
LS: "LS";
|
|
195
|
-
LR: "LR";
|
|
196
|
-
LY: "LY";
|
|
197
|
-
LI: "LI";
|
|
198
|
-
LT: "LT";
|
|
199
|
-
LU: "LU";
|
|
200
|
-
MO: "MO";
|
|
201
|
-
MG: "MG";
|
|
202
|
-
MW: "MW";
|
|
203
|
-
MY: "MY";
|
|
204
|
-
MV: "MV";
|
|
205
|
-
ML: "ML";
|
|
206
|
-
MT: "MT";
|
|
207
|
-
MH: "MH";
|
|
208
|
-
MQ: "MQ";
|
|
209
|
-
MR: "MR";
|
|
210
|
-
MU: "MU";
|
|
211
|
-
YT: "YT";
|
|
212
|
-
MX: "MX";
|
|
213
|
-
FM: "FM";
|
|
214
|
-
MD: "MD";
|
|
215
|
-
MC: "MC";
|
|
216
|
-
MN: "MN";
|
|
217
|
-
ME: "ME";
|
|
218
|
-
MS: "MS";
|
|
219
|
-
MA: "MA";
|
|
220
|
-
MZ: "MZ";
|
|
221
|
-
MM: "MM";
|
|
222
|
-
NA: "NA";
|
|
223
|
-
NR: "NR";
|
|
224
|
-
NP: "NP";
|
|
225
|
-
NL: "NL";
|
|
226
|
-
NC: "NC";
|
|
227
|
-
NZ: "NZ";
|
|
228
|
-
NI: "NI";
|
|
229
|
-
NE: "NE";
|
|
230
|
-
NG: "NG";
|
|
231
|
-
NU: "NU";
|
|
232
|
-
NF: "NF";
|
|
233
|
-
MK: "MK";
|
|
234
|
-
MP: "MP";
|
|
235
|
-
NO: "NO";
|
|
236
|
-
OM: "OM";
|
|
237
|
-
PK: "PK";
|
|
238
|
-
PW: "PW";
|
|
239
|
-
PS: "PS";
|
|
240
|
-
PA: "PA";
|
|
241
|
-
PG: "PG";
|
|
242
|
-
PY: "PY";
|
|
243
|
-
PE: "PE";
|
|
244
|
-
PH: "PH";
|
|
245
|
-
PN: "PN";
|
|
246
|
-
PL: "PL";
|
|
247
|
-
PT: "PT";
|
|
248
|
-
PR: "PR";
|
|
249
|
-
QA: "QA";
|
|
250
|
-
RE: "RE";
|
|
251
|
-
RO: "RO";
|
|
252
|
-
RU: "RU";
|
|
253
|
-
RW: "RW";
|
|
254
|
-
BL: "BL";
|
|
255
|
-
SH: "SH";
|
|
256
|
-
KN: "KN";
|
|
257
|
-
LC: "LC";
|
|
258
|
-
MF: "MF";
|
|
259
|
-
PM: "PM";
|
|
260
|
-
VC: "VC";
|
|
261
|
-
WS: "WS";
|
|
262
|
-
SM: "SM";
|
|
263
|
-
ST: "ST";
|
|
264
|
-
SA: "SA";
|
|
265
|
-
SN: "SN";
|
|
266
|
-
RS: "RS";
|
|
267
|
-
SC: "SC";
|
|
268
|
-
SL: "SL";
|
|
269
|
-
SG: "SG";
|
|
270
|
-
SX: "SX";
|
|
271
|
-
SK: "SK";
|
|
272
|
-
SI: "SI";
|
|
273
|
-
SB: "SB";
|
|
274
|
-
SO: "SO";
|
|
275
|
-
ZA: "ZA";
|
|
276
|
-
GS: "GS";
|
|
277
|
-
SS: "SS";
|
|
278
|
-
ES: "ES";
|
|
279
|
-
LK: "LK";
|
|
280
|
-
SD: "SD";
|
|
281
|
-
SR: "SR";
|
|
282
|
-
SJ: "SJ";
|
|
283
|
-
SE: "SE";
|
|
284
|
-
CH: "CH";
|
|
285
|
-
SY: "SY";
|
|
286
|
-
TW: "TW";
|
|
287
|
-
TJ: "TJ";
|
|
288
|
-
TZ: "TZ";
|
|
289
|
-
TH: "TH";
|
|
290
|
-
TL: "TL";
|
|
291
|
-
TG: "TG";
|
|
292
|
-
TK: "TK";
|
|
293
|
-
TO: "TO";
|
|
294
|
-
TT: "TT";
|
|
295
|
-
TN: "TN";
|
|
296
|
-
TR: "TR";
|
|
297
|
-
TM: "TM";
|
|
298
|
-
TC: "TC";
|
|
299
|
-
TV: "TV";
|
|
300
|
-
UG: "UG";
|
|
301
|
-
UA: "UA";
|
|
302
|
-
AE: "AE";
|
|
303
|
-
GB: "GB";
|
|
304
|
-
US: "US";
|
|
305
|
-
UM: "UM";
|
|
306
|
-
UY: "UY";
|
|
307
|
-
UZ: "UZ";
|
|
308
|
-
VU: "VU";
|
|
309
|
-
VE: "VE";
|
|
310
|
-
VN: "VN";
|
|
311
|
-
VG: "VG";
|
|
312
|
-
VI: "VI";
|
|
313
|
-
WF: "WF";
|
|
314
|
-
EH: "EH";
|
|
315
|
-
YE: "YE";
|
|
316
|
-
ZM: "ZM";
|
|
317
|
-
ZW: "ZW";
|
|
318
|
-
}>>;
|
|
319
|
-
}, z.core.$strip>;
|
|
320
|
-
declare const projectCreatorRelation: z.ZodObject<{
|
|
321
|
-
role: z.ZodUnion<readonly [z.ZodEnum<{
|
|
322
|
-
"film-director": "film-director";
|
|
323
|
-
"film-producer": "film-producer";
|
|
324
|
-
"film-writer": "film-writer";
|
|
325
|
-
"film-actor": "film-actor";
|
|
326
|
-
"film-studio": "film-studio";
|
|
327
|
-
"film-publisher": "film-publisher";
|
|
328
|
-
}>, z.ZodEnum<{
|
|
329
|
-
"video_game-studio": "video_game-studio";
|
|
330
|
-
"video_game-publisher": "video_game-publisher";
|
|
331
|
-
"video_game-developer": "video_game-developer";
|
|
332
|
-
}>, z.ZodEnum<{
|
|
333
|
-
"music-artist": "music-artist";
|
|
334
|
-
"music-producer": "music-producer";
|
|
335
|
-
"music-label": "music-label";
|
|
336
|
-
"music-band": "music-band";
|
|
337
|
-
}>, z.ZodEnum<{
|
|
338
|
-
"tv-director": "tv-director";
|
|
339
|
-
"tv-producer": "tv-producer";
|
|
340
|
-
"tv-writer": "tv-writer";
|
|
341
|
-
"tv-actor": "tv-actor";
|
|
342
|
-
"tv-studio": "tv-studio";
|
|
343
|
-
"tv-network": "tv-network";
|
|
344
|
-
}>]>;
|
|
345
|
-
creatorId: z.ZodUUID;
|
|
346
|
-
primary: z.ZodBoolean;
|
|
347
|
-
}, z.core.$strip>;
|
|
348
|
-
export declare const projectWithCreators: z.ZodObject<{
|
|
349
|
-
id: z.ZodUUID;
|
|
350
|
-
title: z.ZodString;
|
|
351
|
-
type: z.ZodEnum<{
|
|
352
|
-
film: "film";
|
|
353
|
-
video_game: "video_game";
|
|
354
|
-
music: "music";
|
|
355
|
-
tv: "tv";
|
|
356
|
-
}>;
|
|
357
|
-
description: z.ZodOptional<z.ZodString>;
|
|
358
|
-
releaseDate: z.ZodOptional<z.ZodString>;
|
|
359
|
-
createdAt: z.ZodString;
|
|
360
|
-
updatedAt: z.ZodString;
|
|
361
|
-
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
362
|
-
id: "id";
|
|
363
|
-
af: "af";
|
|
364
|
-
am: "am";
|
|
365
|
-
ar: "ar";
|
|
366
|
-
bg: "bg";
|
|
367
|
-
bn: "bn";
|
|
368
|
-
ca: "ca";
|
|
369
|
-
cs: "cs";
|
|
370
|
-
cy: "cy";
|
|
371
|
-
da: "da";
|
|
372
|
-
de: "de";
|
|
373
|
-
el: "el";
|
|
374
|
-
en: "en";
|
|
375
|
-
eo: "eo";
|
|
376
|
-
es: "es";
|
|
377
|
-
fa: "fa";
|
|
378
|
-
fi: "fi";
|
|
379
|
-
fr: "fr";
|
|
380
|
-
ga: "ga";
|
|
381
|
-
he: "he";
|
|
382
|
-
hi: "hi";
|
|
383
|
-
hr: "hr";
|
|
384
|
-
hu: "hu";
|
|
385
|
-
is: "is";
|
|
386
|
-
it: "it";
|
|
387
|
-
ja: "ja";
|
|
388
|
-
ko: "ko";
|
|
389
|
-
la: "la";
|
|
390
|
-
lb: "lb";
|
|
391
|
-
mr: "mr";
|
|
392
|
-
ms: "ms";
|
|
393
|
-
mt: "mt";
|
|
394
|
-
nl: "nl";
|
|
395
|
-
no: "no";
|
|
396
|
-
pl: "pl";
|
|
397
|
-
pt: "pt";
|
|
398
|
-
ro: "ro";
|
|
399
|
-
ru: "ru";
|
|
400
|
-
sk: "sk";
|
|
401
|
-
sr: "sr";
|
|
402
|
-
sv: "sv";
|
|
403
|
-
sw: "sw";
|
|
404
|
-
ta: "ta";
|
|
405
|
-
te: "te";
|
|
406
|
-
th: "th";
|
|
407
|
-
tl: "tl";
|
|
408
|
-
tr: "tr";
|
|
409
|
-
uk: "uk";
|
|
410
|
-
ur: "ur";
|
|
411
|
-
vi: "vi";
|
|
412
|
-
zh: "zh";
|
|
413
|
-
}>>;
|
|
414
|
-
originCountry: z.ZodOptional<z.ZodEnum<{
|
|
415
|
-
AF: "AF";
|
|
416
|
-
AX: "AX";
|
|
417
|
-
AL: "AL";
|
|
418
|
-
DZ: "DZ";
|
|
419
|
-
AS: "AS";
|
|
420
|
-
AD: "AD";
|
|
421
|
-
AO: "AO";
|
|
422
|
-
AI: "AI";
|
|
423
|
-
AQ: "AQ";
|
|
424
|
-
AG: "AG";
|
|
425
|
-
AR: "AR";
|
|
426
|
-
AM: "AM";
|
|
427
|
-
AW: "AW";
|
|
428
|
-
AU: "AU";
|
|
429
|
-
AT: "AT";
|
|
430
|
-
AZ: "AZ";
|
|
431
|
-
BS: "BS";
|
|
432
|
-
BH: "BH";
|
|
433
|
-
BD: "BD";
|
|
434
|
-
BB: "BB";
|
|
435
|
-
BY: "BY";
|
|
436
|
-
BE: "BE";
|
|
437
|
-
BZ: "BZ";
|
|
438
|
-
BJ: "BJ";
|
|
439
|
-
BM: "BM";
|
|
440
|
-
BT: "BT";
|
|
441
|
-
BO: "BO";
|
|
442
|
-
BQ: "BQ";
|
|
443
|
-
BA: "BA";
|
|
444
|
-
BW: "BW";
|
|
445
|
-
BV: "BV";
|
|
446
|
-
BR: "BR";
|
|
447
|
-
IO: "IO";
|
|
448
|
-
BN: "BN";
|
|
449
|
-
BG: "BG";
|
|
450
|
-
BF: "BF";
|
|
451
|
-
BI: "BI";
|
|
452
|
-
CV: "CV";
|
|
453
|
-
KH: "KH";
|
|
454
|
-
CM: "CM";
|
|
455
|
-
CA: "CA";
|
|
456
|
-
KY: "KY";
|
|
457
|
-
CF: "CF";
|
|
458
|
-
TD: "TD";
|
|
459
|
-
CL: "CL";
|
|
460
|
-
CN: "CN";
|
|
461
|
-
CX: "CX";
|
|
462
|
-
CC: "CC";
|
|
463
|
-
CO: "CO";
|
|
464
|
-
KM: "KM";
|
|
465
|
-
CG: "CG";
|
|
466
|
-
CD: "CD";
|
|
467
|
-
CK: "CK";
|
|
468
|
-
CR: "CR";
|
|
469
|
-
CI: "CI";
|
|
470
|
-
HR: "HR";
|
|
471
|
-
CU: "CU";
|
|
472
|
-
CW: "CW";
|
|
473
|
-
CY: "CY";
|
|
474
|
-
CZ: "CZ";
|
|
475
|
-
DK: "DK";
|
|
476
|
-
DJ: "DJ";
|
|
477
|
-
DM: "DM";
|
|
478
|
-
DO: "DO";
|
|
479
|
-
EC: "EC";
|
|
480
|
-
EG: "EG";
|
|
481
|
-
SV: "SV";
|
|
482
|
-
GQ: "GQ";
|
|
483
|
-
ER: "ER";
|
|
484
|
-
EE: "EE";
|
|
485
|
-
SZ: "SZ";
|
|
486
|
-
ET: "ET";
|
|
487
|
-
FK: "FK";
|
|
488
|
-
FO: "FO";
|
|
489
|
-
FJ: "FJ";
|
|
490
|
-
FI: "FI";
|
|
491
|
-
FR: "FR";
|
|
492
|
-
GF: "GF";
|
|
493
|
-
PF: "PF";
|
|
494
|
-
TF: "TF";
|
|
495
|
-
GA: "GA";
|
|
496
|
-
GM: "GM";
|
|
497
|
-
GE: "GE";
|
|
498
|
-
DE: "DE";
|
|
499
|
-
GH: "GH";
|
|
500
|
-
GI: "GI";
|
|
501
|
-
GR: "GR";
|
|
502
|
-
GL: "GL";
|
|
503
|
-
GD: "GD";
|
|
504
|
-
GP: "GP";
|
|
505
|
-
GU: "GU";
|
|
506
|
-
GT: "GT";
|
|
507
|
-
GG: "GG";
|
|
508
|
-
GN: "GN";
|
|
509
|
-
GW: "GW";
|
|
510
|
-
GY: "GY";
|
|
511
|
-
HT: "HT";
|
|
512
|
-
HM: "HM";
|
|
513
|
-
VA: "VA";
|
|
514
|
-
HN: "HN";
|
|
515
|
-
HK: "HK";
|
|
516
|
-
HU: "HU";
|
|
517
|
-
IS: "IS";
|
|
518
|
-
IN: "IN";
|
|
519
|
-
ID: "ID";
|
|
520
|
-
IR: "IR";
|
|
521
|
-
IQ: "IQ";
|
|
522
|
-
IE: "IE";
|
|
523
|
-
IM: "IM";
|
|
524
|
-
IL: "IL";
|
|
525
|
-
IT: "IT";
|
|
526
|
-
JM: "JM";
|
|
527
|
-
JP: "JP";
|
|
528
|
-
JE: "JE";
|
|
529
|
-
JO: "JO";
|
|
530
|
-
KZ: "KZ";
|
|
531
|
-
KE: "KE";
|
|
532
|
-
KI: "KI";
|
|
533
|
-
KP: "KP";
|
|
534
|
-
KR: "KR";
|
|
535
|
-
KW: "KW";
|
|
536
|
-
KG: "KG";
|
|
537
|
-
LA: "LA";
|
|
538
|
-
LV: "LV";
|
|
539
|
-
LB: "LB";
|
|
540
|
-
LS: "LS";
|
|
541
|
-
LR: "LR";
|
|
542
|
-
LY: "LY";
|
|
543
|
-
LI: "LI";
|
|
544
|
-
LT: "LT";
|
|
545
|
-
LU: "LU";
|
|
546
|
-
MO: "MO";
|
|
547
|
-
MG: "MG";
|
|
548
|
-
MW: "MW";
|
|
549
|
-
MY: "MY";
|
|
550
|
-
MV: "MV";
|
|
551
|
-
ML: "ML";
|
|
552
|
-
MT: "MT";
|
|
553
|
-
MH: "MH";
|
|
554
|
-
MQ: "MQ";
|
|
555
|
-
MR: "MR";
|
|
556
|
-
MU: "MU";
|
|
557
|
-
YT: "YT";
|
|
558
|
-
MX: "MX";
|
|
559
|
-
FM: "FM";
|
|
560
|
-
MD: "MD";
|
|
561
|
-
MC: "MC";
|
|
562
|
-
MN: "MN";
|
|
563
|
-
ME: "ME";
|
|
564
|
-
MS: "MS";
|
|
565
|
-
MA: "MA";
|
|
566
|
-
MZ: "MZ";
|
|
567
|
-
MM: "MM";
|
|
568
|
-
NA: "NA";
|
|
569
|
-
NR: "NR";
|
|
570
|
-
NP: "NP";
|
|
571
|
-
NL: "NL";
|
|
572
|
-
NC: "NC";
|
|
573
|
-
NZ: "NZ";
|
|
574
|
-
NI: "NI";
|
|
575
|
-
NE: "NE";
|
|
576
|
-
NG: "NG";
|
|
577
|
-
NU: "NU";
|
|
578
|
-
NF: "NF";
|
|
579
|
-
MK: "MK";
|
|
580
|
-
MP: "MP";
|
|
581
|
-
NO: "NO";
|
|
582
|
-
OM: "OM";
|
|
583
|
-
PK: "PK";
|
|
584
|
-
PW: "PW";
|
|
585
|
-
PS: "PS";
|
|
586
|
-
PA: "PA";
|
|
587
|
-
PG: "PG";
|
|
588
|
-
PY: "PY";
|
|
589
|
-
PE: "PE";
|
|
590
|
-
PH: "PH";
|
|
591
|
-
PN: "PN";
|
|
592
|
-
PL: "PL";
|
|
593
|
-
PT: "PT";
|
|
594
|
-
PR: "PR";
|
|
595
|
-
QA: "QA";
|
|
596
|
-
RE: "RE";
|
|
597
|
-
RO: "RO";
|
|
598
|
-
RU: "RU";
|
|
599
|
-
RW: "RW";
|
|
600
|
-
BL: "BL";
|
|
601
|
-
SH: "SH";
|
|
602
|
-
KN: "KN";
|
|
603
|
-
LC: "LC";
|
|
604
|
-
MF: "MF";
|
|
605
|
-
PM: "PM";
|
|
606
|
-
VC: "VC";
|
|
607
|
-
WS: "WS";
|
|
608
|
-
SM: "SM";
|
|
609
|
-
ST: "ST";
|
|
610
|
-
SA: "SA";
|
|
611
|
-
SN: "SN";
|
|
612
|
-
RS: "RS";
|
|
613
|
-
SC: "SC";
|
|
614
|
-
SL: "SL";
|
|
615
|
-
SG: "SG";
|
|
616
|
-
SX: "SX";
|
|
617
|
-
SK: "SK";
|
|
618
|
-
SI: "SI";
|
|
619
|
-
SB: "SB";
|
|
620
|
-
SO: "SO";
|
|
621
|
-
ZA: "ZA";
|
|
622
|
-
GS: "GS";
|
|
623
|
-
SS: "SS";
|
|
624
|
-
ES: "ES";
|
|
625
|
-
LK: "LK";
|
|
626
|
-
SD: "SD";
|
|
627
|
-
SR: "SR";
|
|
628
|
-
SJ: "SJ";
|
|
629
|
-
SE: "SE";
|
|
630
|
-
CH: "CH";
|
|
631
|
-
SY: "SY";
|
|
632
|
-
TW: "TW";
|
|
633
|
-
TJ: "TJ";
|
|
634
|
-
TZ: "TZ";
|
|
635
|
-
TH: "TH";
|
|
636
|
-
TL: "TL";
|
|
637
|
-
TG: "TG";
|
|
638
|
-
TK: "TK";
|
|
639
|
-
TO: "TO";
|
|
640
|
-
TT: "TT";
|
|
641
|
-
TN: "TN";
|
|
642
|
-
TR: "TR";
|
|
643
|
-
TM: "TM";
|
|
644
|
-
TC: "TC";
|
|
645
|
-
TV: "TV";
|
|
646
|
-
UG: "UG";
|
|
647
|
-
UA: "UA";
|
|
648
|
-
AE: "AE";
|
|
649
|
-
GB: "GB";
|
|
650
|
-
US: "US";
|
|
651
|
-
UM: "UM";
|
|
652
|
-
UY: "UY";
|
|
653
|
-
UZ: "UZ";
|
|
654
|
-
VU: "VU";
|
|
655
|
-
VE: "VE";
|
|
656
|
-
VN: "VN";
|
|
657
|
-
VG: "VG";
|
|
658
|
-
VI: "VI";
|
|
659
|
-
WF: "WF";
|
|
660
|
-
EH: "EH";
|
|
661
|
-
YE: "YE";
|
|
662
|
-
ZM: "ZM";
|
|
663
|
-
ZW: "ZW";
|
|
664
|
-
}>>;
|
|
665
|
-
creators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
666
|
-
id: z.ZodUUID;
|
|
667
|
-
name: z.ZodString;
|
|
668
|
-
role: z.ZodUnion<readonly [z.ZodEnum<{
|
|
669
|
-
"film-director": "film-director";
|
|
670
|
-
"film-producer": "film-producer";
|
|
671
|
-
"film-writer": "film-writer";
|
|
672
|
-
"film-actor": "film-actor";
|
|
673
|
-
"film-studio": "film-studio";
|
|
674
|
-
"film-publisher": "film-publisher";
|
|
675
|
-
}>, z.ZodEnum<{
|
|
676
|
-
"video_game-studio": "video_game-studio";
|
|
677
|
-
"video_game-publisher": "video_game-publisher";
|
|
678
|
-
"video_game-developer": "video_game-developer";
|
|
679
|
-
}>, z.ZodEnum<{
|
|
680
|
-
"music-artist": "music-artist";
|
|
681
|
-
"music-producer": "music-producer";
|
|
682
|
-
"music-label": "music-label";
|
|
683
|
-
"music-band": "music-band";
|
|
684
|
-
}>, z.ZodEnum<{
|
|
685
|
-
"tv-director": "tv-director";
|
|
686
|
-
"tv-producer": "tv-producer";
|
|
687
|
-
"tv-writer": "tv-writer";
|
|
688
|
-
"tv-actor": "tv-actor";
|
|
689
|
-
"tv-studio": "tv-studio";
|
|
690
|
-
"tv-network": "tv-network";
|
|
691
|
-
}>]>;
|
|
692
|
-
primary: z.ZodBoolean;
|
|
693
|
-
}, z.core.$strip>>>;
|
|
694
|
-
}, z.core.$strip>;
|
|
695
|
-
export type ProjectCreatorRelation = z.infer<typeof projectCreatorRelation>;
|
|
696
|
-
export type Project = z.infer<typeof project>;
|
|
697
|
-
export type ProjectWithCreators = z.infer<typeof projectWithCreators>;
|
|
698
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { countryCode } from '../common/countries.zod.js';
|
|
3
|
-
import { languageCode } from '../common/languages.zod.js';
|
|
4
|
-
import { projectType } from '../common/projectTypes.zod.js';
|
|
5
|
-
import { creatorProjectRelation } from './creatorProjectRelation.zod.js';
|
|
6
|
-
import { projectCreator } from './projectCreator.zod.js';
|
|
7
|
-
export const project = z.object({
|
|
8
|
-
id: z.uuid(),
|
|
9
|
-
title: z.string(),
|
|
10
|
-
type: projectType,
|
|
11
|
-
description: z.string().optional(),
|
|
12
|
-
releaseDate: z.string().optional(),
|
|
13
|
-
createdAt: z.string(),
|
|
14
|
-
updatedAt: z.string(),
|
|
15
|
-
originalLanguage: languageCode.optional(),
|
|
16
|
-
originCountry: countryCode.optional(),
|
|
17
|
-
});
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
19
|
-
const projectCreatorRelation = creatorProjectRelation.omit({ projectId: true });
|
|
20
|
-
export const projectWithCreators = project.extend({
|
|
21
|
-
creators: z.array(projectCreator).optional(),
|
|
22
|
-
});
|