@jh-tech/be-content-shared 0.0.46 → 0.0.47
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/project.zod.d.ts +16 -0
- package/dist/definitions/update.zod.d.ts +38 -3
- package/dist/definitions/update.zod.js +8 -6
- package/dist/route-definitions/creator/creatorProjects.list.d.ts +19 -3
- package/dist/route-definitions/project/project.create.d.ts +35 -3
- package/dist/route-definitions/project/project.get.d.ts +19 -3
- package/dist/route-definitions/project/project.update.d.ts +35 -3
- package/dist/route-definitions/project/projects.bulkCreate.d.ts +35 -3
- package/dist/route-definitions/project/projects.list.d.ts +19 -3
- package/dist/route-definitions/update/update.create.d.ts +90 -6
- package/dist/route-definitions/update/update.get.d.ts +53 -4
- package/dist/route-definitions/update/update.update.d.ts +90 -6
- package/dist/route-definitions/update/updates.bulkCreate.d.ts +90 -6
- package/dist/route-definitions/update/updates.list.d.ts +59 -10
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +2 -2
|
@@ -298,6 +298,21 @@ export declare const projectCreationData: z.ZodObject<{
|
|
|
298
298
|
ZW: "ZW";
|
|
299
299
|
}>>;
|
|
300
300
|
hidden: z.ZodBoolean;
|
|
301
|
+
releaseType: z.ZodOptional<z.ZodEnum<{
|
|
302
|
+
standalone: "standalone";
|
|
303
|
+
serialized: "serialized";
|
|
304
|
+
}>>;
|
|
305
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
306
|
+
announced: "announced";
|
|
307
|
+
"in-development": "in-development";
|
|
308
|
+
"in-production": "in-production";
|
|
309
|
+
"post-production": "post-production";
|
|
310
|
+
released: "released";
|
|
311
|
+
releasing: "releasing";
|
|
312
|
+
ended: "ended";
|
|
313
|
+
"on-hold": "on-hold";
|
|
314
|
+
cancelled: "cancelled";
|
|
315
|
+
}>>;
|
|
301
316
|
releaseDate: z.ZodOptional<z.ZodString>;
|
|
302
317
|
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
303
318
|
id: "id";
|
|
@@ -355,5 +370,6 @@ export declare const projectCreationData: z.ZodObject<{
|
|
|
355
370
|
vi: "vi";
|
|
356
371
|
zh: "zh";
|
|
357
372
|
}>>;
|
|
373
|
+
parentProjectId: z.ZodOptional<z.ZodUUID>;
|
|
358
374
|
}, z.core.$strip>;
|
|
359
375
|
export type ProjectCreationData = z.infer<typeof projectCreationData>;
|
|
@@ -1,13 +1,48 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const updateCreationData: z.ZodObject<{
|
|
3
3
|
type: z.ZodEnum<{
|
|
4
|
+
marketing: "marketing";
|
|
5
|
+
"associated-project": "associated-project";
|
|
4
6
|
release: "release";
|
|
7
|
+
}>;
|
|
8
|
+
subType: z.ZodUnion<readonly [z.ZodEnum<{
|
|
5
9
|
trailer: "trailer";
|
|
6
10
|
teaser: "teaser";
|
|
7
|
-
|
|
11
|
+
poster: "poster";
|
|
12
|
+
clip: "clip";
|
|
13
|
+
gameplay: "gameplay";
|
|
14
|
+
screenshots: "screenshots";
|
|
15
|
+
"behind-the-scenes": "behind-the-scenes";
|
|
16
|
+
"first-look": "first-look";
|
|
17
|
+
"key-art": "key-art";
|
|
18
|
+
"music-video": "music-video";
|
|
19
|
+
"cover-reveal": "cover-reveal";
|
|
20
|
+
"pre-order": "pre-order";
|
|
21
|
+
update: "update";
|
|
22
|
+
article: "article";
|
|
23
|
+
}>, z.ZodEnum<{
|
|
24
|
+
"final-release": "final-release";
|
|
25
|
+
"early-access": "early-access";
|
|
26
|
+
installment: "installment";
|
|
27
|
+
patch: "patch";
|
|
28
|
+
"special-edition": "special-edition";
|
|
29
|
+
season: "season";
|
|
30
|
+
adaptation: "adaptation";
|
|
31
|
+
reboot: "reboot";
|
|
32
|
+
beta: "beta";
|
|
33
|
+
demo: "demo";
|
|
34
|
+
}>, z.ZodEnum<{
|
|
35
|
+
dlc: "dlc";
|
|
36
|
+
remaster: "remaster";
|
|
37
|
+
remake: "remake";
|
|
38
|
+
"spin-off": "spin-off";
|
|
39
|
+
crossover: "crossover";
|
|
40
|
+
prequel: "prequel";
|
|
41
|
+
sequel: "sequel";
|
|
42
|
+
}>]>;
|
|
8
43
|
title: z.ZodString;
|
|
9
|
-
projectId: z.ZodUUID;
|
|
10
44
|
links: z.ZodArray<z.ZodString>;
|
|
45
|
+
projectId: z.ZodUUID;
|
|
11
46
|
publishedAt: z.ZodOptional<z.ZodString>;
|
|
12
47
|
}, z.core.$strip>;
|
|
13
48
|
export type UpdateCreationData = z.infer<typeof updateCreationData>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {} from 'zod';
|
|
3
|
-
export const updateCreationData =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { updateBase, updateType, marketingReleaseSubTypes, releaseSubTypes, associatedProjectReleaseSubTypes } from '@jackhayes/util-types';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export const updateCreationData = updateBase
|
|
4
|
+
.extend({
|
|
5
|
+
type: updateType,
|
|
6
|
+
subType: z.union([marketingReleaseSubTypes, releaseSubTypes, associatedProjectReleaseSubTypes]),
|
|
7
|
+
})
|
|
8
|
+
.omit({ id: true, createdAt: true });
|
|
@@ -17,10 +17,26 @@ declare const response: z.ZodObject<{
|
|
|
17
17
|
comic: "comic";
|
|
18
18
|
book: "book";
|
|
19
19
|
}>;
|
|
20
|
-
description: z.ZodOptional<z.ZodString>;
|
|
21
|
-
releaseDate: z.ZodOptional<z.ZodString>;
|
|
22
20
|
createdAt: z.ZodString;
|
|
23
21
|
updatedAt: z.ZodString;
|
|
22
|
+
hidden: z.ZodBoolean;
|
|
23
|
+
description: z.ZodOptional<z.ZodString>;
|
|
24
|
+
releaseType: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
standalone: "standalone";
|
|
26
|
+
serialized: "serialized";
|
|
27
|
+
}>>;
|
|
28
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
announced: "announced";
|
|
30
|
+
"in-development": "in-development";
|
|
31
|
+
"in-production": "in-production";
|
|
32
|
+
"post-production": "post-production";
|
|
33
|
+
released: "released";
|
|
34
|
+
releasing: "releasing";
|
|
35
|
+
ended: "ended";
|
|
36
|
+
"on-hold": "on-hold";
|
|
37
|
+
cancelled: "cancelled";
|
|
38
|
+
}>>;
|
|
39
|
+
releaseDate: z.ZodOptional<z.ZodString>;
|
|
24
40
|
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
25
41
|
id: "id";
|
|
26
42
|
af: "af";
|
|
@@ -328,7 +344,7 @@ declare const response: z.ZodObject<{
|
|
|
328
344
|
ZM: "ZM";
|
|
329
345
|
ZW: "ZW";
|
|
330
346
|
}>>;
|
|
331
|
-
|
|
347
|
+
parentProjectId: z.ZodOptional<z.ZodUUID>;
|
|
332
348
|
}, z.core.$strip>>;
|
|
333
349
|
}, z.core.$strip>;
|
|
334
350
|
export declare const routeSchema: RouteSchema;
|
|
@@ -265,6 +265,21 @@ declare const request: z.ZodObject<{
|
|
|
265
265
|
ZW: "ZW";
|
|
266
266
|
}>>;
|
|
267
267
|
hidden: z.ZodBoolean;
|
|
268
|
+
releaseType: z.ZodOptional<z.ZodEnum<{
|
|
269
|
+
standalone: "standalone";
|
|
270
|
+
serialized: "serialized";
|
|
271
|
+
}>>;
|
|
272
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
273
|
+
announced: "announced";
|
|
274
|
+
"in-development": "in-development";
|
|
275
|
+
"in-production": "in-production";
|
|
276
|
+
"post-production": "post-production";
|
|
277
|
+
released: "released";
|
|
278
|
+
releasing: "releasing";
|
|
279
|
+
ended: "ended";
|
|
280
|
+
"on-hold": "on-hold";
|
|
281
|
+
cancelled: "cancelled";
|
|
282
|
+
}>>;
|
|
268
283
|
releaseDate: z.ZodOptional<z.ZodString>;
|
|
269
284
|
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
270
285
|
id: "id";
|
|
@@ -322,6 +337,7 @@ declare const request: z.ZodObject<{
|
|
|
322
337
|
vi: "vi";
|
|
323
338
|
zh: "zh";
|
|
324
339
|
}>>;
|
|
340
|
+
parentProjectId: z.ZodOptional<z.ZodUUID>;
|
|
325
341
|
}, z.core.$strip>;
|
|
326
342
|
}, z.core.$strip>;
|
|
327
343
|
}, z.core.$strip>;
|
|
@@ -337,10 +353,26 @@ declare const response: z.ZodObject<{
|
|
|
337
353
|
comic: "comic";
|
|
338
354
|
book: "book";
|
|
339
355
|
}>;
|
|
340
|
-
description: z.ZodOptional<z.ZodString>;
|
|
341
|
-
releaseDate: z.ZodOptional<z.ZodString>;
|
|
342
356
|
createdAt: z.ZodString;
|
|
343
357
|
updatedAt: z.ZodString;
|
|
358
|
+
hidden: z.ZodBoolean;
|
|
359
|
+
description: z.ZodOptional<z.ZodString>;
|
|
360
|
+
releaseType: z.ZodOptional<z.ZodEnum<{
|
|
361
|
+
standalone: "standalone";
|
|
362
|
+
serialized: "serialized";
|
|
363
|
+
}>>;
|
|
364
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
365
|
+
announced: "announced";
|
|
366
|
+
"in-development": "in-development";
|
|
367
|
+
"in-production": "in-production";
|
|
368
|
+
"post-production": "post-production";
|
|
369
|
+
released: "released";
|
|
370
|
+
releasing: "releasing";
|
|
371
|
+
ended: "ended";
|
|
372
|
+
"on-hold": "on-hold";
|
|
373
|
+
cancelled: "cancelled";
|
|
374
|
+
}>>;
|
|
375
|
+
releaseDate: z.ZodOptional<z.ZodString>;
|
|
344
376
|
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
345
377
|
id: "id";
|
|
346
378
|
af: "af";
|
|
@@ -648,7 +680,7 @@ declare const response: z.ZodObject<{
|
|
|
648
680
|
ZM: "ZM";
|
|
649
681
|
ZW: "ZW";
|
|
650
682
|
}>>;
|
|
651
|
-
|
|
683
|
+
parentProjectId: z.ZodOptional<z.ZodUUID>;
|
|
652
684
|
}, z.core.$strip>;
|
|
653
685
|
}, z.core.$strip>;
|
|
654
686
|
export declare const routeSchema: RouteSchema;
|
|
@@ -12,10 +12,26 @@ declare const response: z.ZodObject<{
|
|
|
12
12
|
comic: "comic";
|
|
13
13
|
book: "book";
|
|
14
14
|
}>;
|
|
15
|
-
description: z.ZodOptional<z.ZodString>;
|
|
16
|
-
releaseDate: z.ZodOptional<z.ZodString>;
|
|
17
15
|
createdAt: z.ZodString;
|
|
18
16
|
updatedAt: z.ZodString;
|
|
17
|
+
hidden: z.ZodBoolean;
|
|
18
|
+
description: z.ZodOptional<z.ZodString>;
|
|
19
|
+
releaseType: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
standalone: "standalone";
|
|
21
|
+
serialized: "serialized";
|
|
22
|
+
}>>;
|
|
23
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
24
|
+
announced: "announced";
|
|
25
|
+
"in-development": "in-development";
|
|
26
|
+
"in-production": "in-production";
|
|
27
|
+
"post-production": "post-production";
|
|
28
|
+
released: "released";
|
|
29
|
+
releasing: "releasing";
|
|
30
|
+
ended: "ended";
|
|
31
|
+
"on-hold": "on-hold";
|
|
32
|
+
cancelled: "cancelled";
|
|
33
|
+
}>>;
|
|
34
|
+
releaseDate: z.ZodOptional<z.ZodString>;
|
|
19
35
|
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
20
36
|
id: "id";
|
|
21
37
|
af: "af";
|
|
@@ -323,7 +339,7 @@ declare const response: z.ZodObject<{
|
|
|
323
339
|
ZM: "ZM";
|
|
324
340
|
ZW: "ZW";
|
|
325
341
|
}>>;
|
|
326
|
-
|
|
342
|
+
parentProjectId: z.ZodOptional<z.ZodUUID>;
|
|
327
343
|
}, z.core.$strip>;
|
|
328
344
|
}, z.core.$strip>;
|
|
329
345
|
declare const request: z.ZodObject<{
|
|
@@ -268,6 +268,21 @@ declare const request: z.ZodObject<{
|
|
|
268
268
|
ZW: "ZW";
|
|
269
269
|
}>>>;
|
|
270
270
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
271
|
+
releaseType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
272
|
+
standalone: "standalone";
|
|
273
|
+
serialized: "serialized";
|
|
274
|
+
}>>>;
|
|
275
|
+
status: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
276
|
+
announced: "announced";
|
|
277
|
+
"in-development": "in-development";
|
|
278
|
+
"in-production": "in-production";
|
|
279
|
+
"post-production": "post-production";
|
|
280
|
+
released: "released";
|
|
281
|
+
releasing: "releasing";
|
|
282
|
+
ended: "ended";
|
|
283
|
+
"on-hold": "on-hold";
|
|
284
|
+
cancelled: "cancelled";
|
|
285
|
+
}>>>;
|
|
271
286
|
releaseDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
272
287
|
originalLanguage: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
273
288
|
id: "id";
|
|
@@ -325,6 +340,7 @@ declare const request: z.ZodObject<{
|
|
|
325
340
|
vi: "vi";
|
|
326
341
|
zh: "zh";
|
|
327
342
|
}>>>;
|
|
343
|
+
parentProjectId: z.ZodOptional<z.ZodOptional<z.ZodUUID>>;
|
|
328
344
|
}, z.core.$strip>;
|
|
329
345
|
}, z.core.$strip>;
|
|
330
346
|
}, z.core.$strip>;
|
|
@@ -340,10 +356,26 @@ declare const response: z.ZodObject<{
|
|
|
340
356
|
comic: "comic";
|
|
341
357
|
book: "book";
|
|
342
358
|
}>;
|
|
343
|
-
description: z.ZodOptional<z.ZodString>;
|
|
344
|
-
releaseDate: z.ZodOptional<z.ZodString>;
|
|
345
359
|
createdAt: z.ZodString;
|
|
346
360
|
updatedAt: z.ZodString;
|
|
361
|
+
hidden: z.ZodBoolean;
|
|
362
|
+
description: z.ZodOptional<z.ZodString>;
|
|
363
|
+
releaseType: z.ZodOptional<z.ZodEnum<{
|
|
364
|
+
standalone: "standalone";
|
|
365
|
+
serialized: "serialized";
|
|
366
|
+
}>>;
|
|
367
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
368
|
+
announced: "announced";
|
|
369
|
+
"in-development": "in-development";
|
|
370
|
+
"in-production": "in-production";
|
|
371
|
+
"post-production": "post-production";
|
|
372
|
+
released: "released";
|
|
373
|
+
releasing: "releasing";
|
|
374
|
+
ended: "ended";
|
|
375
|
+
"on-hold": "on-hold";
|
|
376
|
+
cancelled: "cancelled";
|
|
377
|
+
}>>;
|
|
378
|
+
releaseDate: z.ZodOptional<z.ZodString>;
|
|
347
379
|
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
348
380
|
id: "id";
|
|
349
381
|
af: "af";
|
|
@@ -651,7 +683,7 @@ declare const response: z.ZodObject<{
|
|
|
651
683
|
ZM: "ZM";
|
|
652
684
|
ZW: "ZW";
|
|
653
685
|
}>>;
|
|
654
|
-
|
|
686
|
+
parentProjectId: z.ZodOptional<z.ZodUUID>;
|
|
655
687
|
}, z.core.$strip>;
|
|
656
688
|
}, z.core.$strip>;
|
|
657
689
|
export declare const routeSchema: RouteSchema;
|
|
@@ -265,6 +265,21 @@ declare const request: z.ZodObject<{
|
|
|
265
265
|
ZW: "ZW";
|
|
266
266
|
}>>;
|
|
267
267
|
hidden: z.ZodBoolean;
|
|
268
|
+
releaseType: z.ZodOptional<z.ZodEnum<{
|
|
269
|
+
standalone: "standalone";
|
|
270
|
+
serialized: "serialized";
|
|
271
|
+
}>>;
|
|
272
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
273
|
+
announced: "announced";
|
|
274
|
+
"in-development": "in-development";
|
|
275
|
+
"in-production": "in-production";
|
|
276
|
+
"post-production": "post-production";
|
|
277
|
+
released: "released";
|
|
278
|
+
releasing: "releasing";
|
|
279
|
+
ended: "ended";
|
|
280
|
+
"on-hold": "on-hold";
|
|
281
|
+
cancelled: "cancelled";
|
|
282
|
+
}>>;
|
|
268
283
|
releaseDate: z.ZodOptional<z.ZodString>;
|
|
269
284
|
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
270
285
|
id: "id";
|
|
@@ -322,6 +337,7 @@ declare const request: z.ZodObject<{
|
|
|
322
337
|
vi: "vi";
|
|
323
338
|
zh: "zh";
|
|
324
339
|
}>>;
|
|
340
|
+
parentProjectId: z.ZodOptional<z.ZodUUID>;
|
|
325
341
|
}, z.core.$strip>>;
|
|
326
342
|
}, z.core.$strip>;
|
|
327
343
|
}, z.core.$strip>;
|
|
@@ -337,10 +353,26 @@ declare const response: z.ZodObject<{
|
|
|
337
353
|
comic: "comic";
|
|
338
354
|
book: "book";
|
|
339
355
|
}>;
|
|
340
|
-
description: z.ZodOptional<z.ZodString>;
|
|
341
|
-
releaseDate: z.ZodOptional<z.ZodString>;
|
|
342
356
|
createdAt: z.ZodString;
|
|
343
357
|
updatedAt: z.ZodString;
|
|
358
|
+
hidden: z.ZodBoolean;
|
|
359
|
+
description: z.ZodOptional<z.ZodString>;
|
|
360
|
+
releaseType: z.ZodOptional<z.ZodEnum<{
|
|
361
|
+
standalone: "standalone";
|
|
362
|
+
serialized: "serialized";
|
|
363
|
+
}>>;
|
|
364
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
365
|
+
announced: "announced";
|
|
366
|
+
"in-development": "in-development";
|
|
367
|
+
"in-production": "in-production";
|
|
368
|
+
"post-production": "post-production";
|
|
369
|
+
released: "released";
|
|
370
|
+
releasing: "releasing";
|
|
371
|
+
ended: "ended";
|
|
372
|
+
"on-hold": "on-hold";
|
|
373
|
+
cancelled: "cancelled";
|
|
374
|
+
}>>;
|
|
375
|
+
releaseDate: z.ZodOptional<z.ZodString>;
|
|
344
376
|
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
345
377
|
id: "id";
|
|
346
378
|
af: "af";
|
|
@@ -648,7 +680,7 @@ declare const response: z.ZodObject<{
|
|
|
648
680
|
ZM: "ZM";
|
|
649
681
|
ZW: "ZW";
|
|
650
682
|
}>>;
|
|
651
|
-
|
|
683
|
+
parentProjectId: z.ZodOptional<z.ZodUUID>;
|
|
652
684
|
}, z.core.$strip>>;
|
|
653
685
|
}, z.core.$strip>;
|
|
654
686
|
export declare const routeSchema: RouteSchema;
|
|
@@ -1045,10 +1045,26 @@ declare const response: z.ZodObject<{
|
|
|
1045
1045
|
comic: "comic";
|
|
1046
1046
|
book: "book";
|
|
1047
1047
|
}>;
|
|
1048
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1049
|
-
releaseDate: z.ZodOptional<z.ZodString>;
|
|
1050
1048
|
createdAt: z.ZodString;
|
|
1051
1049
|
updatedAt: z.ZodString;
|
|
1050
|
+
hidden: z.ZodBoolean;
|
|
1051
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1052
|
+
releaseType: z.ZodOptional<z.ZodEnum<{
|
|
1053
|
+
standalone: "standalone";
|
|
1054
|
+
serialized: "serialized";
|
|
1055
|
+
}>>;
|
|
1056
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
1057
|
+
announced: "announced";
|
|
1058
|
+
"in-development": "in-development";
|
|
1059
|
+
"in-production": "in-production";
|
|
1060
|
+
"post-production": "post-production";
|
|
1061
|
+
released: "released";
|
|
1062
|
+
releasing: "releasing";
|
|
1063
|
+
ended: "ended";
|
|
1064
|
+
"on-hold": "on-hold";
|
|
1065
|
+
cancelled: "cancelled";
|
|
1066
|
+
}>>;
|
|
1067
|
+
releaseDate: z.ZodOptional<z.ZodString>;
|
|
1052
1068
|
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
1053
1069
|
id: "id";
|
|
1054
1070
|
af: "af";
|
|
@@ -1356,7 +1372,7 @@ declare const response: z.ZodObject<{
|
|
|
1356
1372
|
ZM: "ZM";
|
|
1357
1373
|
ZW: "ZW";
|
|
1358
1374
|
}>>;
|
|
1359
|
-
|
|
1375
|
+
parentProjectId: z.ZodOptional<z.ZodUUID>;
|
|
1360
1376
|
creators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1361
1377
|
id: z.ZodUUID;
|
|
1362
1378
|
name: z.ZodString;
|
|
@@ -5,31 +5,115 @@ declare const request: z.ZodObject<{
|
|
|
5
5
|
body: z.ZodObject<{
|
|
6
6
|
data: z.ZodObject<{
|
|
7
7
|
type: z.ZodEnum<{
|
|
8
|
+
marketing: "marketing";
|
|
9
|
+
"associated-project": "associated-project";
|
|
8
10
|
release: "release";
|
|
11
|
+
}>;
|
|
12
|
+
subType: z.ZodUnion<readonly [z.ZodEnum<{
|
|
9
13
|
trailer: "trailer";
|
|
10
14
|
teaser: "teaser";
|
|
11
|
-
|
|
15
|
+
poster: "poster";
|
|
16
|
+
clip: "clip";
|
|
17
|
+
gameplay: "gameplay";
|
|
18
|
+
screenshots: "screenshots";
|
|
19
|
+
"behind-the-scenes": "behind-the-scenes";
|
|
20
|
+
"first-look": "first-look";
|
|
21
|
+
"key-art": "key-art";
|
|
22
|
+
"music-video": "music-video";
|
|
23
|
+
"cover-reveal": "cover-reveal";
|
|
24
|
+
"pre-order": "pre-order";
|
|
25
|
+
update: "update";
|
|
26
|
+
article: "article";
|
|
27
|
+
}>, z.ZodEnum<{
|
|
28
|
+
"final-release": "final-release";
|
|
29
|
+
"early-access": "early-access";
|
|
30
|
+
installment: "installment";
|
|
31
|
+
patch: "patch";
|
|
32
|
+
"special-edition": "special-edition";
|
|
33
|
+
season: "season";
|
|
34
|
+
adaptation: "adaptation";
|
|
35
|
+
reboot: "reboot";
|
|
36
|
+
beta: "beta";
|
|
37
|
+
demo: "demo";
|
|
38
|
+
}>, z.ZodEnum<{
|
|
39
|
+
dlc: "dlc";
|
|
40
|
+
remaster: "remaster";
|
|
41
|
+
remake: "remake";
|
|
42
|
+
"spin-off": "spin-off";
|
|
43
|
+
crossover: "crossover";
|
|
44
|
+
prequel: "prequel";
|
|
45
|
+
sequel: "sequel";
|
|
46
|
+
}>]>;
|
|
12
47
|
title: z.ZodString;
|
|
13
|
-
projectId: z.ZodUUID;
|
|
14
48
|
links: z.ZodArray<z.ZodString>;
|
|
49
|
+
projectId: z.ZodUUID;
|
|
15
50
|
publishedAt: z.ZodOptional<z.ZodString>;
|
|
16
51
|
}, z.core.$strip>;
|
|
17
52
|
}, z.core.$strip>;
|
|
18
53
|
}, z.core.$strip>;
|
|
19
54
|
declare const response: z.ZodObject<{
|
|
20
|
-
data: z.ZodObject<{
|
|
55
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
21
56
|
id: z.ZodUUID;
|
|
22
|
-
|
|
23
|
-
|
|
57
|
+
title: z.ZodString;
|
|
58
|
+
links: z.ZodArray<z.ZodString>;
|
|
59
|
+
projectId: z.ZodUUID;
|
|
60
|
+
publishedAt: z.ZodOptional<z.ZodString>;
|
|
61
|
+
createdAt: z.ZodString;
|
|
62
|
+
type: z.ZodLiteral<"marketing">;
|
|
63
|
+
subType: z.ZodEnum<{
|
|
24
64
|
trailer: "trailer";
|
|
25
65
|
teaser: "teaser";
|
|
66
|
+
poster: "poster";
|
|
67
|
+
clip: "clip";
|
|
68
|
+
gameplay: "gameplay";
|
|
69
|
+
screenshots: "screenshots";
|
|
70
|
+
"behind-the-scenes": "behind-the-scenes";
|
|
71
|
+
"first-look": "first-look";
|
|
72
|
+
"key-art": "key-art";
|
|
73
|
+
"music-video": "music-video";
|
|
74
|
+
"cover-reveal": "cover-reveal";
|
|
75
|
+
"pre-order": "pre-order";
|
|
76
|
+
update: "update";
|
|
77
|
+
article: "article";
|
|
26
78
|
}>;
|
|
79
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
80
|
+
id: z.ZodUUID;
|
|
27
81
|
title: z.ZodString;
|
|
28
82
|
links: z.ZodArray<z.ZodString>;
|
|
29
83
|
projectId: z.ZodUUID;
|
|
30
84
|
publishedAt: z.ZodOptional<z.ZodString>;
|
|
31
85
|
createdAt: z.ZodString;
|
|
32
|
-
|
|
86
|
+
type: z.ZodLiteral<"associated-project">;
|
|
87
|
+
subType: z.ZodEnum<{
|
|
88
|
+
dlc: "dlc";
|
|
89
|
+
remaster: "remaster";
|
|
90
|
+
remake: "remake";
|
|
91
|
+
"spin-off": "spin-off";
|
|
92
|
+
crossover: "crossover";
|
|
93
|
+
prequel: "prequel";
|
|
94
|
+
sequel: "sequel";
|
|
95
|
+
}>;
|
|
96
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
97
|
+
id: z.ZodUUID;
|
|
98
|
+
title: z.ZodString;
|
|
99
|
+
links: z.ZodArray<z.ZodString>;
|
|
100
|
+
projectId: z.ZodUUID;
|
|
101
|
+
publishedAt: z.ZodOptional<z.ZodString>;
|
|
102
|
+
createdAt: z.ZodString;
|
|
103
|
+
type: z.ZodLiteral<"release">;
|
|
104
|
+
subType: z.ZodEnum<{
|
|
105
|
+
"final-release": "final-release";
|
|
106
|
+
"early-access": "early-access";
|
|
107
|
+
installment: "installment";
|
|
108
|
+
patch: "patch";
|
|
109
|
+
"special-edition": "special-edition";
|
|
110
|
+
season: "season";
|
|
111
|
+
adaptation: "adaptation";
|
|
112
|
+
reboot: "reboot";
|
|
113
|
+
beta: "beta";
|
|
114
|
+
demo: "demo";
|
|
115
|
+
}>;
|
|
116
|
+
}, z.core.$strip>], "type">;
|
|
33
117
|
}, z.core.$strip>;
|
|
34
118
|
export declare const routeSchema: RouteSchema;
|
|
35
119
|
export type CreateUpdateRequestData = z.infer<typeof updateCreationData>;
|
|
@@ -1,19 +1,68 @@
|
|
|
1
1
|
import type { RouteSchema, RouteDef } from '@jh-tech/util-tools-be';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
declare const response: z.ZodObject<{
|
|
4
|
-
data: z.ZodObject<{
|
|
4
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5
5
|
id: z.ZodUUID;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
links: z.ZodArray<z.ZodString>;
|
|
8
|
+
projectId: z.ZodUUID;
|
|
9
|
+
publishedAt: z.ZodOptional<z.ZodString>;
|
|
10
|
+
createdAt: z.ZodString;
|
|
11
|
+
type: z.ZodLiteral<"marketing">;
|
|
12
|
+
subType: z.ZodEnum<{
|
|
8
13
|
trailer: "trailer";
|
|
9
14
|
teaser: "teaser";
|
|
15
|
+
poster: "poster";
|
|
16
|
+
clip: "clip";
|
|
17
|
+
gameplay: "gameplay";
|
|
18
|
+
screenshots: "screenshots";
|
|
19
|
+
"behind-the-scenes": "behind-the-scenes";
|
|
20
|
+
"first-look": "first-look";
|
|
21
|
+
"key-art": "key-art";
|
|
22
|
+
"music-video": "music-video";
|
|
23
|
+
"cover-reveal": "cover-reveal";
|
|
24
|
+
"pre-order": "pre-order";
|
|
25
|
+
update: "update";
|
|
26
|
+
article: "article";
|
|
10
27
|
}>;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
id: z.ZodUUID;
|
|
11
30
|
title: z.ZodString;
|
|
12
31
|
links: z.ZodArray<z.ZodString>;
|
|
13
32
|
projectId: z.ZodUUID;
|
|
14
33
|
publishedAt: z.ZodOptional<z.ZodString>;
|
|
15
34
|
createdAt: z.ZodString;
|
|
16
|
-
|
|
35
|
+
type: z.ZodLiteral<"associated-project">;
|
|
36
|
+
subType: z.ZodEnum<{
|
|
37
|
+
dlc: "dlc";
|
|
38
|
+
remaster: "remaster";
|
|
39
|
+
remake: "remake";
|
|
40
|
+
"spin-off": "spin-off";
|
|
41
|
+
crossover: "crossover";
|
|
42
|
+
prequel: "prequel";
|
|
43
|
+
sequel: "sequel";
|
|
44
|
+
}>;
|
|
45
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
+
id: z.ZodUUID;
|
|
47
|
+
title: z.ZodString;
|
|
48
|
+
links: z.ZodArray<z.ZodString>;
|
|
49
|
+
projectId: z.ZodUUID;
|
|
50
|
+
publishedAt: z.ZodOptional<z.ZodString>;
|
|
51
|
+
createdAt: z.ZodString;
|
|
52
|
+
type: z.ZodLiteral<"release">;
|
|
53
|
+
subType: z.ZodEnum<{
|
|
54
|
+
"final-release": "final-release";
|
|
55
|
+
"early-access": "early-access";
|
|
56
|
+
installment: "installment";
|
|
57
|
+
patch: "patch";
|
|
58
|
+
"special-edition": "special-edition";
|
|
59
|
+
season: "season";
|
|
60
|
+
adaptation: "adaptation";
|
|
61
|
+
reboot: "reboot";
|
|
62
|
+
beta: "beta";
|
|
63
|
+
demo: "demo";
|
|
64
|
+
}>;
|
|
65
|
+
}, z.core.$strip>], "type">;
|
|
17
66
|
}, z.core.$strip>;
|
|
18
67
|
declare const request: z.ZodObject<{
|
|
19
68
|
params: z.ZodObject<{
|