@jh-tech/be-content-shared 0.0.45 → 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/creator.zod.d.ts +1 -1
- 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/creator.create.d.ts +1 -1
- package/dist/route-definitions/creator/creator.update.d.ts +1 -1
- package/dist/route-definitions/creator/creatorProjects.list.d.ts +19 -3
- package/dist/route-definitions/creator/creators.bulkCreate.d.ts +1 -1
- package/dist/route-definitions/creator/creators.list.d.ts +2 -2
- 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 +22 -3
- package/dist/route-definitions/project/projects.list.js +1 -0
- 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 +89 -5
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type z } from 'zod';
|
|
2
2
|
export declare const creatorCreationData: z.ZodObject<{
|
|
3
|
-
description: z.ZodOptional<z.ZodString>;
|
|
4
3
|
name: z.ZodString;
|
|
4
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5
5
|
primaryRole: z.ZodUnion<readonly [z.ZodEnum<{
|
|
6
6
|
"film-director": "film-director";
|
|
7
7
|
"film-producer": "film-producer";
|
|
@@ -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
|
-
projectId: z.ZodUUID;
|
|
4
3
|
type: z.ZodEnum<{
|
|
4
|
+
marketing: "marketing";
|
|
5
|
+
"associated-project": "associated-project";
|
|
5
6
|
release: "release";
|
|
7
|
+
}>;
|
|
8
|
+
subType: z.ZodUnion<readonly [z.ZodEnum<{
|
|
6
9
|
trailer: "trailer";
|
|
7
10
|
teaser: "teaser";
|
|
8
|
-
|
|
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
|
+
}>]>;
|
|
9
43
|
title: z.ZodString;
|
|
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 });
|
|
@@ -3,8 +3,8 @@ 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
6
|
name: z.ZodString;
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
8
|
primaryRole: z.ZodUnion<readonly [z.ZodEnum<{
|
|
9
9
|
"film-director": "film-director";
|
|
10
10
|
"film-producer": "film-producer";
|
|
@@ -6,8 +6,8 @@ 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
9
|
name: z.ZodOptional<z.ZodString>;
|
|
10
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
11
11
|
primaryRole: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
12
12
|
"film-director": "film-director";
|
|
13
13
|
"film-producer": "film-producer";
|
|
@@ -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;
|
|
@@ -3,8 +3,8 @@ import { z } from 'zod';
|
|
|
3
3
|
declare const request: z.ZodObject<{
|
|
4
4
|
body: z.ZodObject<{
|
|
5
5
|
data: z.ZodArray<z.ZodObject<{
|
|
6
|
-
description: z.ZodOptional<z.ZodString>;
|
|
7
6
|
name: z.ZodString;
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
8
|
primaryRole: z.ZodUnion<readonly [z.ZodEnum<{
|
|
9
9
|
"film-director": "film-director";
|
|
10
10
|
"film-producer": "film-producer";
|
|
@@ -17,8 +17,8 @@ declare const query: z.ZodObject<{
|
|
|
17
17
|
}, z.core.$strip>>;
|
|
18
18
|
sorting: z.ZodOptional<z.ZodObject<{
|
|
19
19
|
sortBy: z.ZodEnum<{
|
|
20
|
-
createdAt: "createdAt";
|
|
21
20
|
name: "name";
|
|
21
|
+
createdAt: "createdAt";
|
|
22
22
|
}>;
|
|
23
23
|
order: z.ZodEnum<{
|
|
24
24
|
asc: "asc";
|
|
@@ -39,8 +39,8 @@ declare const request: z.ZodObject<{
|
|
|
39
39
|
}, z.core.$strip>>;
|
|
40
40
|
sorting: z.ZodOptional<z.ZodObject<{
|
|
41
41
|
sortBy: z.ZodEnum<{
|
|
42
|
-
createdAt: "createdAt";
|
|
43
42
|
name: "name";
|
|
43
|
+
createdAt: "createdAt";
|
|
44
44
|
}>;
|
|
45
45
|
order: z.ZodEnum<{
|
|
46
46
|
asc: "asc";
|
|
@@ -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;
|
|
@@ -327,6 +327,7 @@ declare const filters: z.ZodObject<{
|
|
|
327
327
|
projectIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
328
328
|
creatorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
329
329
|
showHidden: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
330
|
+
title: z.ZodOptional<z.ZodString>;
|
|
330
331
|
}, z.core.$strip>;
|
|
331
332
|
declare const sorting: z.ZodObject<{
|
|
332
333
|
sortBy: z.ZodEnum<{
|
|
@@ -681,6 +682,7 @@ declare const query: z.ZodObject<{
|
|
|
681
682
|
projectIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
682
683
|
creatorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
683
684
|
showHidden: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
685
|
+
title: z.ZodOptional<z.ZodString>;
|
|
684
686
|
}, z.core.$strip>>;
|
|
685
687
|
}, z.core.$strip>;
|
|
686
688
|
declare const request: z.ZodObject<{
|
|
@@ -1027,6 +1029,7 @@ declare const request: z.ZodObject<{
|
|
|
1027
1029
|
projectIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1028
1030
|
creatorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1029
1031
|
showHidden: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
1032
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1030
1033
|
}, z.core.$strip>>;
|
|
1031
1034
|
}, z.core.$strip>;
|
|
1032
1035
|
}, z.core.$strip>;
|
|
@@ -1042,10 +1045,26 @@ declare const response: z.ZodObject<{
|
|
|
1042
1045
|
comic: "comic";
|
|
1043
1046
|
book: "book";
|
|
1044
1047
|
}>;
|
|
1045
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1046
|
-
releaseDate: z.ZodOptional<z.ZodString>;
|
|
1047
1048
|
createdAt: z.ZodString;
|
|
1048
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>;
|
|
1049
1068
|
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
1050
1069
|
id: "id";
|
|
1051
1070
|
af: "af";
|
|
@@ -1353,7 +1372,7 @@ declare const response: z.ZodObject<{
|
|
|
1353
1372
|
ZM: "ZM";
|
|
1354
1373
|
ZW: "ZW";
|
|
1355
1374
|
}>>;
|
|
1356
|
-
|
|
1375
|
+
parentProjectId: z.ZodOptional<z.ZodUUID>;
|
|
1357
1376
|
creators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1358
1377
|
id: z.ZodUUID;
|
|
1359
1378
|
name: z.ZodString;
|
|
@@ -10,6 +10,7 @@ const filters = z.object({
|
|
|
10
10
|
projectIds: z.array(z.string()).optional(),
|
|
11
11
|
creatorIds: z.array(z.string()).optional(),
|
|
12
12
|
showHidden: z.coerce.boolean().optional(),
|
|
13
|
+
title: z.string().optional(),
|
|
13
14
|
});
|
|
14
15
|
const sorting = z.object({
|
|
15
16
|
sortBy: z.enum(['createdAt', 'releaseDate']),
|
|
@@ -4,32 +4,116 @@ import { updateCreationData } from '../../definitions/update.zod.js';
|
|
|
4
4
|
declare const request: z.ZodObject<{
|
|
5
5
|
body: z.ZodObject<{
|
|
6
6
|
data: z.ZodObject<{
|
|
7
|
-
projectId: z.ZodUUID;
|
|
8
7
|
type: z.ZodEnum<{
|
|
8
|
+
marketing: "marketing";
|
|
9
|
+
"associated-project": "associated-project";
|
|
9
10
|
release: "release";
|
|
11
|
+
}>;
|
|
12
|
+
subType: z.ZodUnion<readonly [z.ZodEnum<{
|
|
10
13
|
trailer: "trailer";
|
|
11
14
|
teaser: "teaser";
|
|
12
|
-
|
|
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
|
+
}>]>;
|
|
13
47
|
title: z.ZodString;
|
|
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>;
|