@jh-tech/be-content-shared 0.0.22 → 0.0.24
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/dist/definitions/collection.zod.d.ts +1 -1
- package/dist/definitions/collection.zod.js +1 -0
- package/dist/definitions/collectionItem.zod.d.ts +1 -1
- package/dist/definitions/collectionItem.zod.js +1 -0
- package/dist/definitions/creator.zod.d.ts +2 -2
- package/dist/definitions/creator.zod.js +1 -0
- package/dist/definitions/project.zod.d.ts +4 -349
- package/dist/definitions/project.zod.js +2 -5
- package/dist/definitions/update.zod.d.ts +2 -2
- package/dist/definitions/update.zod.js +1 -0
- package/dist/route-definitions/collection/collection.create.d.ts +1 -1
- package/dist/route-definitions/collection/collection.get.d.ts +1 -1
- package/dist/route-definitions/collection/collection.list.d.ts +1 -1
- package/dist/route-definitions/collection-item/collectionItem.create.d.ts +1 -1
- package/dist/route-definitions/collection-item/collectionItem.list.d.ts +1 -1
- package/dist/route-definitions/creator/creator.create.d.ts +2 -2
- package/dist/route-definitions/creator/creator.get.d.ts +1 -1
- package/dist/route-definitions/creator/creatorProjects.list.d.ts +1 -1
- package/dist/route-definitions/creator/creators.bulkCreate.d.ts +2 -2
- package/dist/route-definitions/creator/creators.list.d.ts +1 -1
- package/dist/route-definitions/project/creatorProjectRelation.bulkCreate.d.ts +1 -1
- package/dist/route-definitions/project/project.create.d.ts +3 -31
- package/dist/route-definitions/project/project.create.js +2 -2
- package/dist/route-definitions/project/project.get.d.ts +1 -1
- package/dist/route-definitions/project/project.update.d.ts +3 -3
- package/dist/route-definitions/project/projects.bulkCreate.d.ts +3 -31
- package/dist/route-definitions/project/projects.bulkCreate.js +2 -2
- package/dist/route-definitions/project/projects.list.d.ts +1 -1
- package/dist/route-definitions/project-creator/projectCreators.list.d.ts +1 -1
- package/dist/route-definitions/update/update.create.d.ts +2 -2
- package/dist/route-definitions/update/updates.bulkCreate.d.ts +2 -2
- package/dist/route-definitions/update/updates.list.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { type z } from 'zod';
|
|
2
2
|
export declare const creatorCreationData: z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
4
|
-
description: z.ZodOptional<z.ZodString>;
|
|
5
4
|
primaryRole: z.ZodUnion<readonly [z.ZodEnum<{
|
|
6
5
|
"film-director": "film-director";
|
|
7
6
|
"film-producer": "film-producer";
|
|
@@ -26,5 +25,6 @@ export declare const creatorCreationData: z.ZodObject<{
|
|
|
26
25
|
"tv-studio": "tv-studio";
|
|
27
26
|
"tv-network": "tv-network";
|
|
28
27
|
}>]>;
|
|
28
|
+
description: z.ZodOptional<z.ZodString>;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
30
|
export type CreatorCreationData = z.infer<typeof creatorCreationData>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
declare const projectCreatorRelation: z.ZodObject<{
|
|
1
|
+
import { type z } from 'zod';
|
|
2
|
+
export declare const projectCreatorRelation: z.ZodObject<{
|
|
3
3
|
creatorId: z.ZodUUID;
|
|
4
4
|
primary: z.ZodBoolean;
|
|
5
5
|
role: z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -29,330 +29,14 @@ declare const projectCreatorRelation: z.ZodObject<{
|
|
|
29
29
|
}, z.core.$strip>;
|
|
30
30
|
export type ProjectCreatorRelation = z.infer<typeof projectCreatorRelation>;
|
|
31
31
|
export declare const projectCreationData: z.ZodObject<{
|
|
32
|
-
type: z.ZodEnum<{
|
|
33
|
-
film: "film";
|
|
34
|
-
video_game: "video_game";
|
|
35
|
-
music: "music";
|
|
36
|
-
tv: "tv";
|
|
37
|
-
}>;
|
|
38
|
-
title: z.ZodString;
|
|
39
32
|
description: z.ZodOptional<z.ZodString>;
|
|
40
|
-
|
|
41
|
-
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
42
|
-
id: "id";
|
|
43
|
-
af: "af";
|
|
44
|
-
am: "am";
|
|
45
|
-
ar: "ar";
|
|
46
|
-
bg: "bg";
|
|
47
|
-
bn: "bn";
|
|
48
|
-
ca: "ca";
|
|
49
|
-
cs: "cs";
|
|
50
|
-
cy: "cy";
|
|
51
|
-
da: "da";
|
|
52
|
-
de: "de";
|
|
53
|
-
el: "el";
|
|
54
|
-
en: "en";
|
|
55
|
-
eo: "eo";
|
|
56
|
-
es: "es";
|
|
57
|
-
fa: "fa";
|
|
58
|
-
fi: "fi";
|
|
59
|
-
fr: "fr";
|
|
60
|
-
ga: "ga";
|
|
61
|
-
he: "he";
|
|
62
|
-
hi: "hi";
|
|
63
|
-
hr: "hr";
|
|
64
|
-
hu: "hu";
|
|
65
|
-
is: "is";
|
|
66
|
-
it: "it";
|
|
67
|
-
ja: "ja";
|
|
68
|
-
ko: "ko";
|
|
69
|
-
la: "la";
|
|
70
|
-
lb: "lb";
|
|
71
|
-
mr: "mr";
|
|
72
|
-
ms: "ms";
|
|
73
|
-
mt: "mt";
|
|
74
|
-
nl: "nl";
|
|
75
|
-
no: "no";
|
|
76
|
-
pl: "pl";
|
|
77
|
-
pt: "pt";
|
|
78
|
-
ro: "ro";
|
|
79
|
-
ru: "ru";
|
|
80
|
-
sk: "sk";
|
|
81
|
-
sr: "sr";
|
|
82
|
-
sv: "sv";
|
|
83
|
-
sw: "sw";
|
|
84
|
-
ta: "ta";
|
|
85
|
-
te: "te";
|
|
86
|
-
th: "th";
|
|
87
|
-
tl: "tl";
|
|
88
|
-
tr: "tr";
|
|
89
|
-
uk: "uk";
|
|
90
|
-
ur: "ur";
|
|
91
|
-
vi: "vi";
|
|
92
|
-
zh: "zh";
|
|
93
|
-
}>>;
|
|
94
|
-
originCountry: z.ZodOptional<z.ZodEnum<{
|
|
95
|
-
AF: "AF";
|
|
96
|
-
AX: "AX";
|
|
97
|
-
AL: "AL";
|
|
98
|
-
DZ: "DZ";
|
|
99
|
-
AS: "AS";
|
|
100
|
-
AD: "AD";
|
|
101
|
-
AO: "AO";
|
|
102
|
-
AI: "AI";
|
|
103
|
-
AQ: "AQ";
|
|
104
|
-
AG: "AG";
|
|
105
|
-
AR: "AR";
|
|
106
|
-
AM: "AM";
|
|
107
|
-
AW: "AW";
|
|
108
|
-
AU: "AU";
|
|
109
|
-
AT: "AT";
|
|
110
|
-
AZ: "AZ";
|
|
111
|
-
BS: "BS";
|
|
112
|
-
BH: "BH";
|
|
113
|
-
BD: "BD";
|
|
114
|
-
BB: "BB";
|
|
115
|
-
BY: "BY";
|
|
116
|
-
BE: "BE";
|
|
117
|
-
BZ: "BZ";
|
|
118
|
-
BJ: "BJ";
|
|
119
|
-
BM: "BM";
|
|
120
|
-
BT: "BT";
|
|
121
|
-
BO: "BO";
|
|
122
|
-
BQ: "BQ";
|
|
123
|
-
BA: "BA";
|
|
124
|
-
BW: "BW";
|
|
125
|
-
BV: "BV";
|
|
126
|
-
BR: "BR";
|
|
127
|
-
IO: "IO";
|
|
128
|
-
BN: "BN";
|
|
129
|
-
BG: "BG";
|
|
130
|
-
BF: "BF";
|
|
131
|
-
BI: "BI";
|
|
132
|
-
CV: "CV";
|
|
133
|
-
KH: "KH";
|
|
134
|
-
CM: "CM";
|
|
135
|
-
CA: "CA";
|
|
136
|
-
KY: "KY";
|
|
137
|
-
CF: "CF";
|
|
138
|
-
TD: "TD";
|
|
139
|
-
CL: "CL";
|
|
140
|
-
CN: "CN";
|
|
141
|
-
CX: "CX";
|
|
142
|
-
CC: "CC";
|
|
143
|
-
CO: "CO";
|
|
144
|
-
KM: "KM";
|
|
145
|
-
CG: "CG";
|
|
146
|
-
CD: "CD";
|
|
147
|
-
CK: "CK";
|
|
148
|
-
CR: "CR";
|
|
149
|
-
CI: "CI";
|
|
150
|
-
HR: "HR";
|
|
151
|
-
CU: "CU";
|
|
152
|
-
CW: "CW";
|
|
153
|
-
CY: "CY";
|
|
154
|
-
CZ: "CZ";
|
|
155
|
-
DK: "DK";
|
|
156
|
-
DJ: "DJ";
|
|
157
|
-
DM: "DM";
|
|
158
|
-
DO: "DO";
|
|
159
|
-
EC: "EC";
|
|
160
|
-
EG: "EG";
|
|
161
|
-
SV: "SV";
|
|
162
|
-
GQ: "GQ";
|
|
163
|
-
ER: "ER";
|
|
164
|
-
EE: "EE";
|
|
165
|
-
SZ: "SZ";
|
|
166
|
-
ET: "ET";
|
|
167
|
-
FK: "FK";
|
|
168
|
-
FO: "FO";
|
|
169
|
-
FJ: "FJ";
|
|
170
|
-
FI: "FI";
|
|
171
|
-
FR: "FR";
|
|
172
|
-
GF: "GF";
|
|
173
|
-
PF: "PF";
|
|
174
|
-
TF: "TF";
|
|
175
|
-
GA: "GA";
|
|
176
|
-
GM: "GM";
|
|
177
|
-
GE: "GE";
|
|
178
|
-
DE: "DE";
|
|
179
|
-
GH: "GH";
|
|
180
|
-
GI: "GI";
|
|
181
|
-
GR: "GR";
|
|
182
|
-
GL: "GL";
|
|
183
|
-
GD: "GD";
|
|
184
|
-
GP: "GP";
|
|
185
|
-
GU: "GU";
|
|
186
|
-
GT: "GT";
|
|
187
|
-
GG: "GG";
|
|
188
|
-
GN: "GN";
|
|
189
|
-
GW: "GW";
|
|
190
|
-
GY: "GY";
|
|
191
|
-
HT: "HT";
|
|
192
|
-
HM: "HM";
|
|
193
|
-
VA: "VA";
|
|
194
|
-
HN: "HN";
|
|
195
|
-
HK: "HK";
|
|
196
|
-
HU: "HU";
|
|
197
|
-
IS: "IS";
|
|
198
|
-
IN: "IN";
|
|
199
|
-
ID: "ID";
|
|
200
|
-
IR: "IR";
|
|
201
|
-
IQ: "IQ";
|
|
202
|
-
IE: "IE";
|
|
203
|
-
IM: "IM";
|
|
204
|
-
IL: "IL";
|
|
205
|
-
IT: "IT";
|
|
206
|
-
JM: "JM";
|
|
207
|
-
JP: "JP";
|
|
208
|
-
JE: "JE";
|
|
209
|
-
JO: "JO";
|
|
210
|
-
KZ: "KZ";
|
|
211
|
-
KE: "KE";
|
|
212
|
-
KI: "KI";
|
|
213
|
-
KP: "KP";
|
|
214
|
-
KR: "KR";
|
|
215
|
-
KW: "KW";
|
|
216
|
-
KG: "KG";
|
|
217
|
-
LA: "LA";
|
|
218
|
-
LV: "LV";
|
|
219
|
-
LB: "LB";
|
|
220
|
-
LS: "LS";
|
|
221
|
-
LR: "LR";
|
|
222
|
-
LY: "LY";
|
|
223
|
-
LI: "LI";
|
|
224
|
-
LT: "LT";
|
|
225
|
-
LU: "LU";
|
|
226
|
-
MO: "MO";
|
|
227
|
-
MG: "MG";
|
|
228
|
-
MW: "MW";
|
|
229
|
-
MY: "MY";
|
|
230
|
-
MV: "MV";
|
|
231
|
-
ML: "ML";
|
|
232
|
-
MT: "MT";
|
|
233
|
-
MH: "MH";
|
|
234
|
-
MQ: "MQ";
|
|
235
|
-
MR: "MR";
|
|
236
|
-
MU: "MU";
|
|
237
|
-
YT: "YT";
|
|
238
|
-
MX: "MX";
|
|
239
|
-
FM: "FM";
|
|
240
|
-
MD: "MD";
|
|
241
|
-
MC: "MC";
|
|
242
|
-
MN: "MN";
|
|
243
|
-
ME: "ME";
|
|
244
|
-
MS: "MS";
|
|
245
|
-
MA: "MA";
|
|
246
|
-
MZ: "MZ";
|
|
247
|
-
MM: "MM";
|
|
248
|
-
NA: "NA";
|
|
249
|
-
NR: "NR";
|
|
250
|
-
NP: "NP";
|
|
251
|
-
NL: "NL";
|
|
252
|
-
NC: "NC";
|
|
253
|
-
NZ: "NZ";
|
|
254
|
-
NI: "NI";
|
|
255
|
-
NE: "NE";
|
|
256
|
-
NG: "NG";
|
|
257
|
-
NU: "NU";
|
|
258
|
-
NF: "NF";
|
|
259
|
-
MK: "MK";
|
|
260
|
-
MP: "MP";
|
|
261
|
-
NO: "NO";
|
|
262
|
-
OM: "OM";
|
|
263
|
-
PK: "PK";
|
|
264
|
-
PW: "PW";
|
|
265
|
-
PS: "PS";
|
|
266
|
-
PA: "PA";
|
|
267
|
-
PG: "PG";
|
|
268
|
-
PY: "PY";
|
|
269
|
-
PE: "PE";
|
|
270
|
-
PH: "PH";
|
|
271
|
-
PN: "PN";
|
|
272
|
-
PL: "PL";
|
|
273
|
-
PT: "PT";
|
|
274
|
-
PR: "PR";
|
|
275
|
-
QA: "QA";
|
|
276
|
-
RE: "RE";
|
|
277
|
-
RO: "RO";
|
|
278
|
-
RU: "RU";
|
|
279
|
-
RW: "RW";
|
|
280
|
-
BL: "BL";
|
|
281
|
-
SH: "SH";
|
|
282
|
-
KN: "KN";
|
|
283
|
-
LC: "LC";
|
|
284
|
-
MF: "MF";
|
|
285
|
-
PM: "PM";
|
|
286
|
-
VC: "VC";
|
|
287
|
-
WS: "WS";
|
|
288
|
-
SM: "SM";
|
|
289
|
-
ST: "ST";
|
|
290
|
-
SA: "SA";
|
|
291
|
-
SN: "SN";
|
|
292
|
-
RS: "RS";
|
|
293
|
-
SC: "SC";
|
|
294
|
-
SL: "SL";
|
|
295
|
-
SG: "SG";
|
|
296
|
-
SX: "SX";
|
|
297
|
-
SK: "SK";
|
|
298
|
-
SI: "SI";
|
|
299
|
-
SB: "SB";
|
|
300
|
-
SO: "SO";
|
|
301
|
-
ZA: "ZA";
|
|
302
|
-
GS: "GS";
|
|
303
|
-
SS: "SS";
|
|
304
|
-
ES: "ES";
|
|
305
|
-
LK: "LK";
|
|
306
|
-
SD: "SD";
|
|
307
|
-
SR: "SR";
|
|
308
|
-
SJ: "SJ";
|
|
309
|
-
SE: "SE";
|
|
310
|
-
CH: "CH";
|
|
311
|
-
SY: "SY";
|
|
312
|
-
TW: "TW";
|
|
313
|
-
TJ: "TJ";
|
|
314
|
-
TZ: "TZ";
|
|
315
|
-
TH: "TH";
|
|
316
|
-
TL: "TL";
|
|
317
|
-
TG: "TG";
|
|
318
|
-
TK: "TK";
|
|
319
|
-
TO: "TO";
|
|
320
|
-
TT: "TT";
|
|
321
|
-
TN: "TN";
|
|
322
|
-
TR: "TR";
|
|
323
|
-
TM: "TM";
|
|
324
|
-
TC: "TC";
|
|
325
|
-
TV: "TV";
|
|
326
|
-
UG: "UG";
|
|
327
|
-
UA: "UA";
|
|
328
|
-
AE: "AE";
|
|
329
|
-
GB: "GB";
|
|
330
|
-
US: "US";
|
|
331
|
-
UM: "UM";
|
|
332
|
-
UY: "UY";
|
|
333
|
-
UZ: "UZ";
|
|
334
|
-
VU: "VU";
|
|
335
|
-
VE: "VE";
|
|
336
|
-
VN: "VN";
|
|
337
|
-
VG: "VG";
|
|
338
|
-
VI: "VI";
|
|
339
|
-
WF: "WF";
|
|
340
|
-
EH: "EH";
|
|
341
|
-
YE: "YE";
|
|
342
|
-
ZM: "ZM";
|
|
343
|
-
ZW: "ZW";
|
|
344
|
-
}>>;
|
|
345
|
-
}, z.core.$strip>;
|
|
346
|
-
export type ProjectCreationData = z.infer<typeof projectCreationData>;
|
|
347
|
-
export declare const projectWithCreatorRelationCreationData: z.ZodObject<{
|
|
33
|
+
title: z.ZodString;
|
|
348
34
|
type: z.ZodEnum<{
|
|
349
35
|
film: "film";
|
|
350
36
|
video_game: "video_game";
|
|
351
37
|
music: "music";
|
|
352
38
|
tv: "tv";
|
|
353
39
|
}>;
|
|
354
|
-
title: z.ZodString;
|
|
355
|
-
description: z.ZodOptional<z.ZodString>;
|
|
356
40
|
releaseDate: z.ZodOptional<z.ZodString>;
|
|
357
41
|
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
358
42
|
id: "id";
|
|
@@ -658,34 +342,5 @@ export declare const projectWithCreatorRelationCreationData: z.ZodObject<{
|
|
|
658
342
|
ZM: "ZM";
|
|
659
343
|
ZW: "ZW";
|
|
660
344
|
}>>;
|
|
661
|
-
creators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
662
|
-
creatorId: z.ZodUUID;
|
|
663
|
-
primary: z.ZodBoolean;
|
|
664
|
-
role: z.ZodUnion<readonly [z.ZodEnum<{
|
|
665
|
-
"film-director": "film-director";
|
|
666
|
-
"film-producer": "film-producer";
|
|
667
|
-
"film-writer": "film-writer";
|
|
668
|
-
"film-actor": "film-actor";
|
|
669
|
-
"film-studio": "film-studio";
|
|
670
|
-
"film-publisher": "film-publisher";
|
|
671
|
-
}>, z.ZodEnum<{
|
|
672
|
-
"video_game-studio": "video_game-studio";
|
|
673
|
-
"video_game-publisher": "video_game-publisher";
|
|
674
|
-
"video_game-developer": "video_game-developer";
|
|
675
|
-
}>, z.ZodEnum<{
|
|
676
|
-
"music-artist": "music-artist";
|
|
677
|
-
"music-producer": "music-producer";
|
|
678
|
-
"music-label": "music-label";
|
|
679
|
-
"music-band": "music-band";
|
|
680
|
-
}>, z.ZodEnum<{
|
|
681
|
-
"tv-director": "tv-director";
|
|
682
|
-
"tv-producer": "tv-producer";
|
|
683
|
-
"tv-writer": "tv-writer";
|
|
684
|
-
"tv-actor": "tv-actor";
|
|
685
|
-
"tv-studio": "tv-studio";
|
|
686
|
-
"tv-network": "tv-network";
|
|
687
|
-
}>]>;
|
|
688
|
-
}, z.core.$strip>>>;
|
|
689
345
|
}, z.core.$strip>;
|
|
690
|
-
export type
|
|
691
|
-
export {};
|
|
346
|
+
export type ProjectCreationData = z.infer<typeof projectCreationData>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { project, creatorProjectRelation } from '@jackhayes/util-types';
|
|
2
|
-
import {
|
|
3
|
-
const projectCreatorRelation = creatorProjectRelation.omit({
|
|
2
|
+
import {} from 'zod';
|
|
3
|
+
export const projectCreatorRelation = creatorProjectRelation.omit({
|
|
4
4
|
projectId: true,
|
|
5
5
|
});
|
|
6
6
|
export const projectCreationData = project.omit({
|
|
@@ -8,6 +8,3 @@ export const projectCreationData = project.omit({
|
|
|
8
8
|
createdAt: true,
|
|
9
9
|
updatedAt: true,
|
|
10
10
|
});
|
|
11
|
-
export const projectWithCreatorRelationCreationData = projectCreationData.extend({
|
|
12
|
-
creators: z.array(projectCreatorRelation).optional(),
|
|
13
|
-
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { type z } from 'zod';
|
|
2
2
|
export declare const updateCreationData: z.ZodObject<{
|
|
3
|
-
title: z.ZodString;
|
|
4
3
|
projectId: z.ZodUUID;
|
|
4
|
+
title: z.ZodString;
|
|
5
5
|
links: z.ZodArray<z.ZodString>;
|
|
6
6
|
publishedAt: z.ZodString;
|
|
7
7
|
}, z.core.$strip>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { RouteDef, RouteSchema } from 'jh-
|
|
1
|
+
import type { RouteDef, RouteSchema } from '@jh-tech/util-tools-be';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
declare const request: z.ZodObject<{
|
|
4
4
|
body: z.ZodObject<{
|
|
5
5
|
data: z.ZodObject<{
|
|
6
6
|
name: z.ZodString;
|
|
7
|
-
description: z.ZodOptional<z.ZodString>;
|
|
8
7
|
primaryRole: z.ZodUnion<readonly [z.ZodEnum<{
|
|
9
8
|
"film-director": "film-director";
|
|
10
9
|
"film-producer": "film-producer";
|
|
@@ -29,6 +28,7 @@ declare const request: z.ZodObject<{
|
|
|
29
28
|
"tv-studio": "tv-studio";
|
|
30
29
|
"tv-network": "tv-network";
|
|
31
30
|
}>]>;
|
|
31
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
}, z.core.$strip>;
|
|
34
34
|
}, z.core.$strip>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { RouteDef, RouteSchema } from 'jh-
|
|
1
|
+
import type { RouteDef, RouteSchema } from '@jh-tech/util-tools-be';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
declare const request: z.ZodObject<{
|
|
4
4
|
body: z.ZodObject<{
|
|
5
5
|
data: z.ZodArray<z.ZodObject<{
|
|
6
6
|
name: z.ZodString;
|
|
7
|
-
description: z.ZodOptional<z.ZodString>;
|
|
8
7
|
primaryRole: z.ZodUnion<readonly [z.ZodEnum<{
|
|
9
8
|
"film-director": "film-director";
|
|
10
9
|
"film-producer": "film-producer";
|
|
@@ -29,6 +28,7 @@ declare const request: z.ZodObject<{
|
|
|
29
28
|
"tv-studio": "tv-studio";
|
|
30
29
|
"tv-network": "tv-network";
|
|
31
30
|
}>]>;
|
|
31
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32
32
|
}, z.core.$strip>>;
|
|
33
33
|
}, z.core.$strip>;
|
|
34
34
|
}, z.core.$strip>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { RouteSchema, RouteDef } from 'jh-
|
|
1
|
+
import type { RouteSchema, RouteDef } from '@jh-tech/util-tools-be';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
declare const request: z.ZodObject<{
|
|
4
4
|
body: z.ZodObject<{
|
|
5
5
|
data: z.ZodObject<{
|
|
6
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7
|
+
title: z.ZodString;
|
|
6
8
|
type: z.ZodEnum<{
|
|
7
9
|
film: "film";
|
|
8
10
|
video_game: "video_game";
|
|
9
11
|
music: "music";
|
|
10
12
|
tv: "tv";
|
|
11
13
|
}>;
|
|
12
|
-
title: z.ZodString;
|
|
13
|
-
description: z.ZodOptional<z.ZodString>;
|
|
14
14
|
releaseDate: z.ZodOptional<z.ZodString>;
|
|
15
15
|
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
16
16
|
id: "id";
|
|
@@ -316,34 +316,6 @@ declare const request: z.ZodObject<{
|
|
|
316
316
|
ZM: "ZM";
|
|
317
317
|
ZW: "ZW";
|
|
318
318
|
}>>;
|
|
319
|
-
creators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
320
|
-
creatorId: z.ZodUUID;
|
|
321
|
-
primary: z.ZodBoolean;
|
|
322
|
-
role: z.ZodUnion<readonly [z.ZodEnum<{
|
|
323
|
-
"film-director": "film-director";
|
|
324
|
-
"film-producer": "film-producer";
|
|
325
|
-
"film-writer": "film-writer";
|
|
326
|
-
"film-actor": "film-actor";
|
|
327
|
-
"film-studio": "film-studio";
|
|
328
|
-
"film-publisher": "film-publisher";
|
|
329
|
-
}>, z.ZodEnum<{
|
|
330
|
-
"video_game-studio": "video_game-studio";
|
|
331
|
-
"video_game-publisher": "video_game-publisher";
|
|
332
|
-
"video_game-developer": "video_game-developer";
|
|
333
|
-
}>, z.ZodEnum<{
|
|
334
|
-
"music-artist": "music-artist";
|
|
335
|
-
"music-producer": "music-producer";
|
|
336
|
-
"music-label": "music-label";
|
|
337
|
-
"music-band": "music-band";
|
|
338
|
-
}>, z.ZodEnum<{
|
|
339
|
-
"tv-director": "tv-director";
|
|
340
|
-
"tv-producer": "tv-producer";
|
|
341
|
-
"tv-writer": "tv-writer";
|
|
342
|
-
"tv-actor": "tv-actor";
|
|
343
|
-
"tv-studio": "tv-studio";
|
|
344
|
-
"tv-network": "tv-network";
|
|
345
|
-
}>]>;
|
|
346
|
-
}, z.core.$strip>>>;
|
|
347
319
|
}, z.core.$strip>;
|
|
348
320
|
}, z.core.$strip>;
|
|
349
321
|
}, z.core.$strip>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { project } from '@jackhayes/util-types';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import {
|
|
3
|
+
import { projectCreationData } from '../../definitions/project.zod.js';
|
|
4
4
|
const request = z.object({
|
|
5
5
|
body: z.object({
|
|
6
|
-
data:
|
|
6
|
+
data: projectCreationData,
|
|
7
7
|
}),
|
|
8
8
|
});
|
|
9
9
|
const response = z.object({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RouteSchema, RouteDef } from 'jh-
|
|
1
|
+
import type { RouteSchema, RouteDef } from '@jh-tech/util-tools-be';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
declare const request: z.ZodObject<{
|
|
4
4
|
params: z.ZodObject<{
|
|
@@ -6,14 +6,14 @@ declare const request: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
body: z.ZodObject<{
|
|
8
8
|
data: z.ZodObject<{
|
|
9
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
10
|
+
title: z.ZodOptional<z.ZodString>;
|
|
9
11
|
type: z.ZodOptional<z.ZodEnum<{
|
|
10
12
|
film: "film";
|
|
11
13
|
video_game: "video_game";
|
|
12
14
|
music: "music";
|
|
13
15
|
tv: "tv";
|
|
14
16
|
}>>;
|
|
15
|
-
title: z.ZodOptional<z.ZodString>;
|
|
16
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
17
17
|
releaseDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
18
18
|
originalLanguage: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
19
19
|
id: "id";
|