@jh-tech/be-content-shared 0.0.46 → 0.0.48
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/creatorProjectRelation.zod.d.ts +7 -0
- package/dist/definitions/creatorProjectRelation.zod.js +6 -0
- package/dist/definitions/project.zod.d.ts +16 -0
- package/dist/definitions/update.zod.d.ts +36 -3
- package/dist/definitions/update.zod.js +8 -6
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/route-definitions/creator/creatorProjects.list.d.ts +19 -3
- package/dist/route-definitions/creator-project-relation/creatorProjectRelations.list.d.ts +62 -0
- package/dist/route-definitions/creator-project-relation/creatorProjectRelations.list.js +25 -0
- 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 +86 -6
- package/dist/route-definitions/update/update.get.d.ts +51 -4
- package/dist/route-definitions/update/update.update.d.ts +86 -6
- package/dist/route-definitions/update/updates.bulkCreate.d.ts +86 -6
- package/dist/route-definitions/update/updates.list.d.ts +57 -10
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const creatorProjectRelationFilters: z.ZodObject<{
|
|
3
|
+
creatorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4
|
+
projectIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5
|
+
primaryOnly: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type CreatorProjectRelationFilters = z.infer<typeof creatorProjectRelationFilters>;
|
|
@@ -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,12 +1,45 @@
|
|
|
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";
|
|
5
|
-
trailer: "trailer";
|
|
6
|
-
teaser: "teaser";
|
|
7
7
|
}>;
|
|
8
8
|
title: z.ZodString;
|
|
9
9
|
projectId: z.ZodUUID;
|
|
10
|
+
subType: z.ZodUnion<readonly [z.ZodEnum<{
|
|
11
|
+
trailer: "trailer";
|
|
12
|
+
teaser: "teaser";
|
|
13
|
+
poster: "poster";
|
|
14
|
+
clip: "clip";
|
|
15
|
+
gameplay: "gameplay";
|
|
16
|
+
screenshots: "screenshots";
|
|
17
|
+
"behind-the-scenes": "behind-the-scenes";
|
|
18
|
+
"first-look": "first-look";
|
|
19
|
+
"key-art": "key-art";
|
|
20
|
+
"music-video": "music-video";
|
|
21
|
+
"cover-reveal": "cover-reveal";
|
|
22
|
+
"pre-order": "pre-order";
|
|
23
|
+
update: "update";
|
|
24
|
+
article: "article";
|
|
25
|
+
}>, z.ZodEnum<{
|
|
26
|
+
"final-release": "final-release";
|
|
27
|
+
"early-access": "early-access";
|
|
28
|
+
installment: "installment";
|
|
29
|
+
patch: "patch";
|
|
30
|
+
"special-edition": "special-edition";
|
|
31
|
+
season: "season";
|
|
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
|
+
}>]>;
|
|
10
43
|
links: z.ZodArray<z.ZodString>;
|
|
11
44
|
publishedAt: z.ZodOptional<z.ZodString>;
|
|
12
45
|
}, z.core.$strip>;
|
|
@@ -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 });
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * as UpdateProjectDef from './route-definitions/project/project.update.js
|
|
|
16
16
|
export * as BulkCreateProjectsDef from './route-definitions/project/projects.bulkCreate.js';
|
|
17
17
|
export * as ListProjectsDef from './route-definitions/project/projects.list.js';
|
|
18
18
|
export * as CreateCreatorProjectRelationDef from './route-definitions/creator-project-relation/creatorProjectRelation.create.js';
|
|
19
|
+
export * as ListCreatorProjectRelationsDef from './route-definitions/creator-project-relation/creatorProjectRelations.list.js';
|
|
19
20
|
export * as ListProjectCreatorsDef from './route-definitions/project-creator/projectCreators.list.js';
|
|
20
21
|
export * as CreateUpdateDef from './route-definitions/update/update.create.js';
|
|
21
22
|
export * as GetUpdateDef from './route-definitions/update/update.get.js';
|
|
@@ -28,3 +29,4 @@ export * from './definitions/update.zod.js';
|
|
|
28
29
|
export * from './definitions/collection.zod.js';
|
|
29
30
|
export * from './definitions/collectionItem.zod.js';
|
|
30
31
|
export * from './definitions/pagination.zod.js';
|
|
32
|
+
export * from './definitions/creatorProjectRelation.zod.js';
|
package/dist/index.js
CHANGED
|
@@ -16,6 +16,7 @@ export * as UpdateProjectDef from './route-definitions/project/project.update.js
|
|
|
16
16
|
export * as BulkCreateProjectsDef from './route-definitions/project/projects.bulkCreate.js';
|
|
17
17
|
export * as ListProjectsDef from './route-definitions/project/projects.list.js';
|
|
18
18
|
export * as CreateCreatorProjectRelationDef from './route-definitions/creator-project-relation/creatorProjectRelation.create.js';
|
|
19
|
+
export * as ListCreatorProjectRelationsDef from './route-definitions/creator-project-relation/creatorProjectRelations.list.js';
|
|
19
20
|
export * as ListProjectCreatorsDef from './route-definitions/project-creator/projectCreators.list.js';
|
|
20
21
|
export * as CreateUpdateDef from './route-definitions/update/update.create.js';
|
|
21
22
|
export * as GetUpdateDef from './route-definitions/update/update.get.js';
|
|
@@ -28,3 +29,4 @@ export * from './definitions/update.zod.js';
|
|
|
28
29
|
export * from './definitions/collection.zod.js';
|
|
29
30
|
export * from './definitions/collectionItem.zod.js';
|
|
30
31
|
export * from './definitions/pagination.zod.js';
|
|
32
|
+
export * from './definitions/creatorProjectRelation.zod.js';
|
|
@@ -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;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { type RouteSchema, type RouteDef } from '@jh-tech/util-tools-be';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
declare const query: z.ZodObject<{
|
|
4
|
+
filters: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
creatorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
projectIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
primaryOnly: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const request: z.ZodObject<{
|
|
11
|
+
query: z.ZodObject<{
|
|
12
|
+
filters: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
creatorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
+
projectIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
|
+
primaryOnly: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const response: z.ZodObject<{
|
|
20
|
+
data: z.ZodArray<z.ZodObject<{
|
|
21
|
+
creatorId: z.ZodUUID;
|
|
22
|
+
projectId: z.ZodUUID;
|
|
23
|
+
primary: z.ZodBoolean;
|
|
24
|
+
role: z.ZodUnion<readonly [z.ZodEnum<{
|
|
25
|
+
"film-director": "film-director";
|
|
26
|
+
"film-producer": "film-producer";
|
|
27
|
+
"film-writer": "film-writer";
|
|
28
|
+
"film-actor": "film-actor";
|
|
29
|
+
"film-studio": "film-studio";
|
|
30
|
+
"film-publisher": "film-publisher";
|
|
31
|
+
}>, z.ZodEnum<{
|
|
32
|
+
"video_game-studio": "video_game-studio";
|
|
33
|
+
"video_game-publisher": "video_game-publisher";
|
|
34
|
+
"video_game-developer": "video_game-developer";
|
|
35
|
+
}>, z.ZodEnum<{
|
|
36
|
+
"music-artist": "music-artist";
|
|
37
|
+
"music-producer": "music-producer";
|
|
38
|
+
"music-label": "music-label";
|
|
39
|
+
"music-band": "music-band";
|
|
40
|
+
}>, z.ZodEnum<{
|
|
41
|
+
"tv-director": "tv-director";
|
|
42
|
+
"tv-producer": "tv-producer";
|
|
43
|
+
"tv-writer": "tv-writer";
|
|
44
|
+
"tv-actor": "tv-actor";
|
|
45
|
+
"tv-studio": "tv-studio";
|
|
46
|
+
"tv-network": "tv-network";
|
|
47
|
+
}>, z.ZodEnum<{
|
|
48
|
+
"comic-artist": "comic-artist";
|
|
49
|
+
"comic-writer": "comic-writer";
|
|
50
|
+
"comic-publisher": "comic-publisher";
|
|
51
|
+
}>, z.ZodEnum<{
|
|
52
|
+
"book-author": "book-author";
|
|
53
|
+
"book-publisher": "book-publisher";
|
|
54
|
+
}>]>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export declare const routeSchema: RouteSchema;
|
|
58
|
+
export type Request = z.infer<typeof request>;
|
|
59
|
+
export type Response = z.infer<typeof response>;
|
|
60
|
+
export type Query = z.infer<typeof query>;
|
|
61
|
+
export declare const definition: RouteDef;
|
|
62
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { creatorProjectRelation } from '@jackhayes/util-types';
|
|
2
|
+
import {} from '@jh-tech/util-tools-be';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { creatorProjectRelationFilters } from '../../definitions/creatorProjectRelation.zod.js';
|
|
5
|
+
const query = z
|
|
6
|
+
.object({
|
|
7
|
+
filters: creatorProjectRelationFilters.optional(),
|
|
8
|
+
})
|
|
9
|
+
.refine((q) => Object.values(q.filters ?? {}).some((value) => value !== undefined), {
|
|
10
|
+
message: 'At least one filter must be provided',
|
|
11
|
+
path: ['filters'],
|
|
12
|
+
});
|
|
13
|
+
const request = z.object({
|
|
14
|
+
query: query,
|
|
15
|
+
});
|
|
16
|
+
const response = z.object({
|
|
17
|
+
data: z.array(creatorProjectRelation),
|
|
18
|
+
});
|
|
19
|
+
export const routeSchema = {
|
|
20
|
+
request,
|
|
21
|
+
response,
|
|
22
|
+
};
|
|
23
|
+
const path = '/creator-project-relations';
|
|
24
|
+
const method = 'get';
|
|
25
|
+
export const definition = { method, path, 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,111 @@ 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";
|
|
9
|
-
trailer: "trailer";
|
|
10
|
-
teaser: "teaser";
|
|
11
11
|
}>;
|
|
12
12
|
title: z.ZodString;
|
|
13
13
|
projectId: z.ZodUUID;
|
|
14
|
+
subType: z.ZodUnion<readonly [z.ZodEnum<{
|
|
15
|
+
trailer: "trailer";
|
|
16
|
+
teaser: "teaser";
|
|
17
|
+
poster: "poster";
|
|
18
|
+
clip: "clip";
|
|
19
|
+
gameplay: "gameplay";
|
|
20
|
+
screenshots: "screenshots";
|
|
21
|
+
"behind-the-scenes": "behind-the-scenes";
|
|
22
|
+
"first-look": "first-look";
|
|
23
|
+
"key-art": "key-art";
|
|
24
|
+
"music-video": "music-video";
|
|
25
|
+
"cover-reveal": "cover-reveal";
|
|
26
|
+
"pre-order": "pre-order";
|
|
27
|
+
update: "update";
|
|
28
|
+
article: "article";
|
|
29
|
+
}>, z.ZodEnum<{
|
|
30
|
+
"final-release": "final-release";
|
|
31
|
+
"early-access": "early-access";
|
|
32
|
+
installment: "installment";
|
|
33
|
+
patch: "patch";
|
|
34
|
+
"special-edition": "special-edition";
|
|
35
|
+
season: "season";
|
|
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
|
+
}>]>;
|
|
14
47
|
links: z.ZodArray<z.ZodString>;
|
|
15
48
|
publishedAt: z.ZodOptional<z.ZodString>;
|
|
16
49
|
}, z.core.$strip>;
|
|
17
50
|
}, z.core.$strip>;
|
|
18
51
|
}, z.core.$strip>;
|
|
19
52
|
declare const response: z.ZodObject<{
|
|
20
|
-
data: z.ZodObject<{
|
|
53
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
21
54
|
id: z.ZodUUID;
|
|
22
|
-
|
|
23
|
-
|
|
55
|
+
title: z.ZodString;
|
|
56
|
+
links: z.ZodArray<z.ZodString>;
|
|
57
|
+
projectId: z.ZodUUID;
|
|
58
|
+
publishedAt: z.ZodOptional<z.ZodString>;
|
|
59
|
+
createdAt: z.ZodString;
|
|
60
|
+
type: z.ZodLiteral<"marketing">;
|
|
61
|
+
subType: z.ZodEnum<{
|
|
24
62
|
trailer: "trailer";
|
|
25
63
|
teaser: "teaser";
|
|
64
|
+
poster: "poster";
|
|
65
|
+
clip: "clip";
|
|
66
|
+
gameplay: "gameplay";
|
|
67
|
+
screenshots: "screenshots";
|
|
68
|
+
"behind-the-scenes": "behind-the-scenes";
|
|
69
|
+
"first-look": "first-look";
|
|
70
|
+
"key-art": "key-art";
|
|
71
|
+
"music-video": "music-video";
|
|
72
|
+
"cover-reveal": "cover-reveal";
|
|
73
|
+
"pre-order": "pre-order";
|
|
74
|
+
update: "update";
|
|
75
|
+
article: "article";
|
|
26
76
|
}>;
|
|
77
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
+
id: z.ZodUUID;
|
|
27
79
|
title: z.ZodString;
|
|
28
80
|
links: z.ZodArray<z.ZodString>;
|
|
29
81
|
projectId: z.ZodUUID;
|
|
30
82
|
publishedAt: z.ZodOptional<z.ZodString>;
|
|
31
83
|
createdAt: z.ZodString;
|
|
32
|
-
|
|
84
|
+
type: z.ZodLiteral<"associated-project">;
|
|
85
|
+
subType: z.ZodEnum<{
|
|
86
|
+
dlc: "dlc";
|
|
87
|
+
remaster: "remaster";
|
|
88
|
+
remake: "remake";
|
|
89
|
+
"spin-off": "spin-off";
|
|
90
|
+
crossover: "crossover";
|
|
91
|
+
prequel: "prequel";
|
|
92
|
+
sequel: "sequel";
|
|
93
|
+
}>;
|
|
94
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
+
id: z.ZodUUID;
|
|
96
|
+
title: z.ZodString;
|
|
97
|
+
links: z.ZodArray<z.ZodString>;
|
|
98
|
+
projectId: z.ZodUUID;
|
|
99
|
+
publishedAt: z.ZodOptional<z.ZodString>;
|
|
100
|
+
createdAt: z.ZodString;
|
|
101
|
+
type: z.ZodLiteral<"release">;
|
|
102
|
+
subType: z.ZodEnum<{
|
|
103
|
+
"final-release": "final-release";
|
|
104
|
+
"early-access": "early-access";
|
|
105
|
+
installment: "installment";
|
|
106
|
+
patch: "patch";
|
|
107
|
+
"special-edition": "special-edition";
|
|
108
|
+
season: "season";
|
|
109
|
+
beta: "beta";
|
|
110
|
+
demo: "demo";
|
|
111
|
+
}>;
|
|
112
|
+
}, z.core.$strip>], "type">;
|
|
33
113
|
}, z.core.$strip>;
|
|
34
114
|
export declare const routeSchema: RouteSchema;
|
|
35
115
|
export type CreateUpdateRequestData = z.infer<typeof updateCreationData>;
|