@jh-tech/be-content-shared 0.0.38 → 0.0.40
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 +3 -1
- package/dist/definitions/project.zod.d.ts +58 -56
- package/dist/definitions/update.zod.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/route-definitions/creator/creator.create.d.ts +5 -1
- package/dist/route-definitions/creator/creator.get.d.ts +2 -0
- package/dist/route-definitions/{project-creator/projectCreator.create.d.ts → creator/creator.update.d.ts} +18 -7
- package/dist/route-definitions/creator/creator.update.js +21 -0
- package/dist/route-definitions/creator/creatorProjects.list.d.ts +2 -0
- package/dist/route-definitions/creator/creators.bulkCreate.d.ts +5 -1
- package/dist/route-definitions/creator/creators.list.d.ts +10 -2
- package/dist/route-definitions/creator/creators.list.js +2 -0
- package/dist/route-definitions/project/project.create.d.ts +60 -56
- package/dist/route-definitions/project/project.get.d.ts +2 -0
- package/dist/route-definitions/project/project.update.d.ts +60 -56
- package/dist/route-definitions/project/projects.bulkCreate.d.ts +60 -56
- package/dist/route-definitions/project/projects.list.d.ts +8 -0
- package/dist/route-definitions/project/projects.list.js +2 -0
- package/dist/route-definitions/update/update.create.d.ts +1 -1
- package/dist/route-definitions/update/updates.bulkCreate.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/definitions/projectCreator.zod.d.ts +0 -37
- package/dist/definitions/projectCreator.zod.js +0 -5
- package/dist/route-definitions/creator-project-relation/creatorProjectRelation.d.ts +0 -85
- package/dist/route-definitions/creator-project-relation/creatorProjectRelation.js +0 -17
- package/dist/route-definitions/creator-project-relation/projectCreatorRelation.create.d.ts +0 -85
- package/dist/route-definitions/creator-project-relation/projectCreatorRelation.create.js +0 -17
- package/dist/route-definitions/project-creator/projectCreator.create.js +0 -18
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -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";
|
|
@@ -34,5 +34,7 @@ export declare const creatorCreationData: z.ZodObject<{
|
|
|
34
34
|
"book-publisher": "book-publisher";
|
|
35
35
|
}>]>;
|
|
36
36
|
originCountry: z.ZodOptional<z.ZodString>;
|
|
37
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
+
doNotIngest: z.ZodOptional<z.ZodBoolean>;
|
|
37
39
|
}, z.core.$strip>;
|
|
38
40
|
export type CreatorCreationData = z.infer<typeof creatorCreationData>;
|
|
@@ -36,7 +36,6 @@ export declare const projectCreatorRelation: z.ZodObject<{
|
|
|
36
36
|
}, z.core.$strip>;
|
|
37
37
|
export type ProjectCreatorRelation = z.infer<typeof projectCreatorRelation>;
|
|
38
38
|
export declare const projectCreationData: z.ZodObject<{
|
|
39
|
-
title: z.ZodString;
|
|
40
39
|
type: z.ZodEnum<{
|
|
41
40
|
film: "film";
|
|
42
41
|
video_game: "video_game";
|
|
@@ -45,62 +44,8 @@ export declare const projectCreationData: z.ZodObject<{
|
|
|
45
44
|
comic: "comic";
|
|
46
45
|
book: "book";
|
|
47
46
|
}>;
|
|
47
|
+
title: z.ZodString;
|
|
48
48
|
description: z.ZodOptional<z.ZodString>;
|
|
49
|
-
releaseDate: z.ZodOptional<z.ZodString>;
|
|
50
|
-
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
51
|
-
id: "id";
|
|
52
|
-
af: "af";
|
|
53
|
-
am: "am";
|
|
54
|
-
ar: "ar";
|
|
55
|
-
bg: "bg";
|
|
56
|
-
bn: "bn";
|
|
57
|
-
ca: "ca";
|
|
58
|
-
cs: "cs";
|
|
59
|
-
cy: "cy";
|
|
60
|
-
da: "da";
|
|
61
|
-
de: "de";
|
|
62
|
-
el: "el";
|
|
63
|
-
en: "en";
|
|
64
|
-
eo: "eo";
|
|
65
|
-
es: "es";
|
|
66
|
-
fa: "fa";
|
|
67
|
-
fi: "fi";
|
|
68
|
-
fr: "fr";
|
|
69
|
-
ga: "ga";
|
|
70
|
-
he: "he";
|
|
71
|
-
hi: "hi";
|
|
72
|
-
hr: "hr";
|
|
73
|
-
hu: "hu";
|
|
74
|
-
is: "is";
|
|
75
|
-
it: "it";
|
|
76
|
-
ja: "ja";
|
|
77
|
-
ko: "ko";
|
|
78
|
-
la: "la";
|
|
79
|
-
lb: "lb";
|
|
80
|
-
mk: "mk";
|
|
81
|
-
mr: "mr";
|
|
82
|
-
ms: "ms";
|
|
83
|
-
mt: "mt";
|
|
84
|
-
nl: "nl";
|
|
85
|
-
no: "no";
|
|
86
|
-
pl: "pl";
|
|
87
|
-
pt: "pt";
|
|
88
|
-
ro: "ro";
|
|
89
|
-
ru: "ru";
|
|
90
|
-
sk: "sk";
|
|
91
|
-
sr: "sr";
|
|
92
|
-
sv: "sv";
|
|
93
|
-
sw: "sw";
|
|
94
|
-
ta: "ta";
|
|
95
|
-
te: "te";
|
|
96
|
-
th: "th";
|
|
97
|
-
tl: "tl";
|
|
98
|
-
tr: "tr";
|
|
99
|
-
uk: "uk";
|
|
100
|
-
ur: "ur";
|
|
101
|
-
vi: "vi";
|
|
102
|
-
zh: "zh";
|
|
103
|
-
}>>;
|
|
104
49
|
originCountry: z.ZodOptional<z.ZodEnum<{
|
|
105
50
|
AF: "AF";
|
|
106
51
|
AX: "AX";
|
|
@@ -352,5 +297,62 @@ export declare const projectCreationData: z.ZodObject<{
|
|
|
352
297
|
ZM: "ZM";
|
|
353
298
|
ZW: "ZW";
|
|
354
299
|
}>>;
|
|
300
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
301
|
+
doNotIngest: z.ZodOptional<z.ZodBoolean>;
|
|
302
|
+
releaseDate: z.ZodOptional<z.ZodString>;
|
|
303
|
+
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
304
|
+
id: "id";
|
|
305
|
+
af: "af";
|
|
306
|
+
am: "am";
|
|
307
|
+
ar: "ar";
|
|
308
|
+
bg: "bg";
|
|
309
|
+
bn: "bn";
|
|
310
|
+
ca: "ca";
|
|
311
|
+
cs: "cs";
|
|
312
|
+
cy: "cy";
|
|
313
|
+
da: "da";
|
|
314
|
+
de: "de";
|
|
315
|
+
el: "el";
|
|
316
|
+
en: "en";
|
|
317
|
+
eo: "eo";
|
|
318
|
+
es: "es";
|
|
319
|
+
fa: "fa";
|
|
320
|
+
fi: "fi";
|
|
321
|
+
fr: "fr";
|
|
322
|
+
ga: "ga";
|
|
323
|
+
he: "he";
|
|
324
|
+
hi: "hi";
|
|
325
|
+
hr: "hr";
|
|
326
|
+
hu: "hu";
|
|
327
|
+
is: "is";
|
|
328
|
+
it: "it";
|
|
329
|
+
ja: "ja";
|
|
330
|
+
ko: "ko";
|
|
331
|
+
la: "la";
|
|
332
|
+
lb: "lb";
|
|
333
|
+
mk: "mk";
|
|
334
|
+
mr: "mr";
|
|
335
|
+
ms: "ms";
|
|
336
|
+
mt: "mt";
|
|
337
|
+
nl: "nl";
|
|
338
|
+
no: "no";
|
|
339
|
+
pl: "pl";
|
|
340
|
+
pt: "pt";
|
|
341
|
+
ro: "ro";
|
|
342
|
+
ru: "ru";
|
|
343
|
+
sk: "sk";
|
|
344
|
+
sr: "sr";
|
|
345
|
+
sv: "sv";
|
|
346
|
+
sw: "sw";
|
|
347
|
+
ta: "ta";
|
|
348
|
+
te: "te";
|
|
349
|
+
th: "th";
|
|
350
|
+
tl: "tl";
|
|
351
|
+
tr: "tr";
|
|
352
|
+
uk: "uk";
|
|
353
|
+
ur: "ur";
|
|
354
|
+
vi: "vi";
|
|
355
|
+
zh: "zh";
|
|
356
|
+
}>>;
|
|
355
357
|
}, z.core.$strip>;
|
|
356
358
|
export type ProjectCreationData = z.infer<typeof projectCreationData>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type z } from 'zod';
|
|
2
2
|
export declare const updateCreationData: z.ZodObject<{
|
|
3
|
-
projectId: z.ZodUUID;
|
|
4
3
|
type: z.ZodEnum<{
|
|
5
4
|
release: "release";
|
|
6
5
|
trailer: "trailer";
|
|
7
6
|
teaser: "teaser";
|
|
8
7
|
}>;
|
|
9
8
|
title: z.ZodString;
|
|
9
|
+
projectId: z.ZodUUID;
|
|
10
10
|
links: z.ZodArray<z.ZodString>;
|
|
11
11
|
publishedAt: z.ZodOptional<z.ZodString>;
|
|
12
12
|
}, z.core.$strip>;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * as CreateCollectionItemDef from './route-definitions/collection-item/co
|
|
|
5
5
|
export * as ListCollectionItemsDef from './route-definitions/collection-item/collectionItem.list.js';
|
|
6
6
|
export * as CreateCreatorDef from './route-definitions/creator/creator.create.js';
|
|
7
7
|
export * as GetCreatorDef from './route-definitions/creator/creator.get.js';
|
|
8
|
+
export * as UpdateCreatorDef from './route-definitions/creator/creator.update.js';
|
|
8
9
|
export * as BulkCreateCreatorsDef from './route-definitions/creator/creators.bulkCreate.js';
|
|
9
10
|
export * as ListCreatorsDef from './route-definitions/creator/creators.list.js';
|
|
10
11
|
export * as ListCreatorProjectsDef from './route-definitions/creator/creatorProjects.list.js';
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export * as CreateCollectionItemDef from './route-definitions/collection-item/co
|
|
|
5
5
|
export * as ListCollectionItemsDef from './route-definitions/collection-item/collectionItem.list.js';
|
|
6
6
|
export * as CreateCreatorDef from './route-definitions/creator/creator.create.js';
|
|
7
7
|
export * as GetCreatorDef from './route-definitions/creator/creator.get.js';
|
|
8
|
+
export * as UpdateCreatorDef from './route-definitions/creator/creator.update.js';
|
|
8
9
|
export * as BulkCreateCreatorsDef from './route-definitions/creator/creators.bulkCreate.js';
|
|
9
10
|
export * as ListCreatorsDef from './route-definitions/creator/creators.list.js';
|
|
10
11
|
export * as ListCreatorProjectsDef from './route-definitions/creator/creatorProjects.list.js';
|
|
@@ -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";
|
|
@@ -37,6 +37,8 @@ declare const request: z.ZodObject<{
|
|
|
37
37
|
"book-publisher": "book-publisher";
|
|
38
38
|
}>]>;
|
|
39
39
|
originCountry: z.ZodOptional<z.ZodString>;
|
|
40
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
doNotIngest: z.ZodOptional<z.ZodBoolean>;
|
|
40
42
|
}, z.core.$strip>;
|
|
41
43
|
}, z.core.$strip>;
|
|
42
44
|
}, z.core.$strip>;
|
|
@@ -79,6 +81,8 @@ declare const response: z.ZodObject<{
|
|
|
79
81
|
originCountry: z.ZodOptional<z.ZodString>;
|
|
80
82
|
createdAt: z.ZodString;
|
|
81
83
|
updatedAt: z.ZodString;
|
|
84
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
doNotIngest: z.ZodOptional<z.ZodBoolean>;
|
|
82
86
|
}, z.core.$strip>;
|
|
83
87
|
}, z.core.$strip>;
|
|
84
88
|
export declare const routeSchema: RouteSchema;
|
|
@@ -44,6 +44,8 @@ declare const response: z.ZodObject<{
|
|
|
44
44
|
originCountry: z.ZodOptional<z.ZodString>;
|
|
45
45
|
createdAt: z.ZodString;
|
|
46
46
|
updatedAt: z.ZodString;
|
|
47
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
doNotIngest: z.ZodOptional<z.ZodBoolean>;
|
|
47
49
|
}, z.core.$strip>;
|
|
48
50
|
}, z.core.$strip>;
|
|
49
51
|
export declare const routeSchema: RouteSchema;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import type {
|
|
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
|
+
params: z.ZodObject<{
|
|
5
|
+
creatorId: z.ZodUUID;
|
|
6
|
+
}, z.core.$strip>;
|
|
4
7
|
body: z.ZodObject<{
|
|
5
8
|
data: z.ZodObject<{
|
|
6
|
-
name: z.ZodString
|
|
7
|
-
|
|
9
|
+
name: z.ZodOptional<z.ZodString>;
|
|
10
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
11
|
+
primaryRole: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
8
12
|
"film-director": "film-director";
|
|
9
13
|
"film-producer": "film-producer";
|
|
10
14
|
"film-writer": "film-writer";
|
|
@@ -34,8 +38,10 @@ declare const request: z.ZodObject<{
|
|
|
34
38
|
}>, z.ZodEnum<{
|
|
35
39
|
"book-author": "book-author";
|
|
36
40
|
"book-publisher": "book-publisher";
|
|
37
|
-
}>]
|
|
38
|
-
|
|
41
|
+
}>]>>;
|
|
42
|
+
originCountry: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
43
|
+
hidden: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
44
|
+
doNotIngest: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
39
45
|
}, z.core.$strip>;
|
|
40
46
|
}, z.core.$strip>;
|
|
41
47
|
}, z.core.$strip>;
|
|
@@ -43,7 +49,7 @@ declare const response: z.ZodObject<{
|
|
|
43
49
|
data: z.ZodObject<{
|
|
44
50
|
id: z.ZodUUID;
|
|
45
51
|
name: z.ZodString;
|
|
46
|
-
|
|
52
|
+
primaryRole: z.ZodUnion<readonly [z.ZodEnum<{
|
|
47
53
|
"film-director": "film-director";
|
|
48
54
|
"film-producer": "film-producer";
|
|
49
55
|
"film-writer": "film-writer";
|
|
@@ -74,7 +80,12 @@ declare const response: z.ZodObject<{
|
|
|
74
80
|
"book-author": "book-author";
|
|
75
81
|
"book-publisher": "book-publisher";
|
|
76
82
|
}>]>;
|
|
77
|
-
|
|
83
|
+
description: z.ZodOptional<z.ZodString>;
|
|
84
|
+
originCountry: z.ZodOptional<z.ZodString>;
|
|
85
|
+
createdAt: z.ZodString;
|
|
86
|
+
updatedAt: z.ZodString;
|
|
87
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
+
doNotIngest: z.ZodOptional<z.ZodBoolean>;
|
|
78
89
|
}, z.core.$strip>;
|
|
79
90
|
}, z.core.$strip>;
|
|
80
91
|
export declare const routeSchema: RouteSchema;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { creator } from '@jackhayes/util-types';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { creatorCreationData } from '../../definitions/creator.zod.js';
|
|
4
|
+
const request = z.object({
|
|
5
|
+
params: z.object({
|
|
6
|
+
creatorId: z.uuid(),
|
|
7
|
+
}),
|
|
8
|
+
body: z.object({
|
|
9
|
+
data: creatorCreationData.partial(),
|
|
10
|
+
}),
|
|
11
|
+
});
|
|
12
|
+
const response = z.object({
|
|
13
|
+
data: creator,
|
|
14
|
+
});
|
|
15
|
+
export const routeSchema = {
|
|
16
|
+
request,
|
|
17
|
+
response,
|
|
18
|
+
};
|
|
19
|
+
const path = '/creator/:creatorId';
|
|
20
|
+
const method = 'put';
|
|
21
|
+
export const definition = { method, path, routeSchema };
|
|
@@ -326,6 +326,8 @@ declare const response: z.ZodObject<{
|
|
|
326
326
|
ZM: "ZM";
|
|
327
327
|
ZW: "ZW";
|
|
328
328
|
}>>;
|
|
329
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
330
|
+
doNotIngest: z.ZodOptional<z.ZodBoolean>;
|
|
329
331
|
}, z.core.$strip>>;
|
|
330
332
|
}, z.core.$strip>;
|
|
331
333
|
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";
|
|
@@ -37,6 +37,8 @@ declare const request: z.ZodObject<{
|
|
|
37
37
|
"book-publisher": "book-publisher";
|
|
38
38
|
}>]>;
|
|
39
39
|
originCountry: z.ZodOptional<z.ZodString>;
|
|
40
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
doNotIngest: z.ZodOptional<z.ZodBoolean>;
|
|
40
42
|
}, z.core.$strip>>;
|
|
41
43
|
}, z.core.$strip>;
|
|
42
44
|
}, z.core.$strip>;
|
|
@@ -79,6 +81,8 @@ declare const response: z.ZodObject<{
|
|
|
79
81
|
originCountry: z.ZodOptional<z.ZodString>;
|
|
80
82
|
createdAt: z.ZodString;
|
|
81
83
|
updatedAt: z.ZodString;
|
|
84
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
doNotIngest: z.ZodOptional<z.ZodBoolean>;
|
|
82
86
|
}, z.core.$strip>>;
|
|
83
87
|
}, z.core.$strip>;
|
|
84
88
|
export declare const routeSchema: RouteSchema;
|
|
@@ -3,6 +3,8 @@ import { z } from 'zod';
|
|
|
3
3
|
declare const filters: z.ZodObject<{
|
|
4
4
|
creatorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5
5
|
projectIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
doNotIngest: z.ZodOptional<z.ZodBoolean>;
|
|
6
8
|
}, z.core.$strip>;
|
|
7
9
|
declare const query: z.ZodObject<{
|
|
8
10
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -12,11 +14,13 @@ declare const query: z.ZodObject<{
|
|
|
12
14
|
filters: z.ZodOptional<z.ZodObject<{
|
|
13
15
|
creatorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
16
|
projectIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
doNotIngest: z.ZodOptional<z.ZodBoolean>;
|
|
15
19
|
}, z.core.$strip>>;
|
|
16
20
|
sorting: z.ZodOptional<z.ZodObject<{
|
|
17
21
|
sortBy: z.ZodEnum<{
|
|
18
|
-
createdAt: "createdAt";
|
|
19
22
|
name: "name";
|
|
23
|
+
createdAt: "createdAt";
|
|
20
24
|
}>;
|
|
21
25
|
order: z.ZodEnum<{
|
|
22
26
|
asc: "asc";
|
|
@@ -33,11 +37,13 @@ declare const request: z.ZodObject<{
|
|
|
33
37
|
filters: z.ZodOptional<z.ZodObject<{
|
|
34
38
|
creatorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
35
39
|
projectIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
doNotIngest: z.ZodOptional<z.ZodBoolean>;
|
|
36
42
|
}, z.core.$strip>>;
|
|
37
43
|
sorting: z.ZodOptional<z.ZodObject<{
|
|
38
44
|
sortBy: z.ZodEnum<{
|
|
39
|
-
createdAt: "createdAt";
|
|
40
45
|
name: "name";
|
|
46
|
+
createdAt: "createdAt";
|
|
41
47
|
}>;
|
|
42
48
|
order: z.ZodEnum<{
|
|
43
49
|
asc: "asc";
|
|
@@ -85,6 +91,8 @@ declare const response: z.ZodObject<{
|
|
|
85
91
|
originCountry: z.ZodOptional<z.ZodString>;
|
|
86
92
|
createdAt: z.ZodString;
|
|
87
93
|
updatedAt: z.ZodString;
|
|
94
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
+
doNotIngest: z.ZodOptional<z.ZodBoolean>;
|
|
88
96
|
}, z.core.$strip>>;
|
|
89
97
|
meta: z.ZodOptional<z.ZodObject<{
|
|
90
98
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -4,6 +4,8 @@ import { z } from 'zod';
|
|
|
4
4
|
const filters = z.object({
|
|
5
5
|
creatorIds: z.array(z.string()).optional(),
|
|
6
6
|
projectIds: z.array(z.string()).optional(),
|
|
7
|
+
hidden: z.boolean().optional(),
|
|
8
|
+
doNotIngest: z.boolean().optional(),
|
|
7
9
|
});
|
|
8
10
|
const sorting = z.object({
|
|
9
11
|
sortBy: z.enum(['name', 'createdAt']),
|
|
@@ -3,7 +3,6 @@ import { z } from 'zod';
|
|
|
3
3
|
declare const request: z.ZodObject<{
|
|
4
4
|
body: z.ZodObject<{
|
|
5
5
|
data: z.ZodObject<{
|
|
6
|
-
title: z.ZodString;
|
|
7
6
|
type: z.ZodEnum<{
|
|
8
7
|
film: "film";
|
|
9
8
|
video_game: "video_game";
|
|
@@ -12,62 +11,8 @@ declare const request: z.ZodObject<{
|
|
|
12
11
|
comic: "comic";
|
|
13
12
|
book: "book";
|
|
14
13
|
}>;
|
|
14
|
+
title: z.ZodString;
|
|
15
15
|
description: z.ZodOptional<z.ZodString>;
|
|
16
|
-
releaseDate: z.ZodOptional<z.ZodString>;
|
|
17
|
-
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
18
|
-
id: "id";
|
|
19
|
-
af: "af";
|
|
20
|
-
am: "am";
|
|
21
|
-
ar: "ar";
|
|
22
|
-
bg: "bg";
|
|
23
|
-
bn: "bn";
|
|
24
|
-
ca: "ca";
|
|
25
|
-
cs: "cs";
|
|
26
|
-
cy: "cy";
|
|
27
|
-
da: "da";
|
|
28
|
-
de: "de";
|
|
29
|
-
el: "el";
|
|
30
|
-
en: "en";
|
|
31
|
-
eo: "eo";
|
|
32
|
-
es: "es";
|
|
33
|
-
fa: "fa";
|
|
34
|
-
fi: "fi";
|
|
35
|
-
fr: "fr";
|
|
36
|
-
ga: "ga";
|
|
37
|
-
he: "he";
|
|
38
|
-
hi: "hi";
|
|
39
|
-
hr: "hr";
|
|
40
|
-
hu: "hu";
|
|
41
|
-
is: "is";
|
|
42
|
-
it: "it";
|
|
43
|
-
ja: "ja";
|
|
44
|
-
ko: "ko";
|
|
45
|
-
la: "la";
|
|
46
|
-
lb: "lb";
|
|
47
|
-
mk: "mk";
|
|
48
|
-
mr: "mr";
|
|
49
|
-
ms: "ms";
|
|
50
|
-
mt: "mt";
|
|
51
|
-
nl: "nl";
|
|
52
|
-
no: "no";
|
|
53
|
-
pl: "pl";
|
|
54
|
-
pt: "pt";
|
|
55
|
-
ro: "ro";
|
|
56
|
-
ru: "ru";
|
|
57
|
-
sk: "sk";
|
|
58
|
-
sr: "sr";
|
|
59
|
-
sv: "sv";
|
|
60
|
-
sw: "sw";
|
|
61
|
-
ta: "ta";
|
|
62
|
-
te: "te";
|
|
63
|
-
th: "th";
|
|
64
|
-
tl: "tl";
|
|
65
|
-
tr: "tr";
|
|
66
|
-
uk: "uk";
|
|
67
|
-
ur: "ur";
|
|
68
|
-
vi: "vi";
|
|
69
|
-
zh: "zh";
|
|
70
|
-
}>>;
|
|
71
16
|
originCountry: z.ZodOptional<z.ZodEnum<{
|
|
72
17
|
AF: "AF";
|
|
73
18
|
AX: "AX";
|
|
@@ -319,6 +264,63 @@ declare const request: z.ZodObject<{
|
|
|
319
264
|
ZM: "ZM";
|
|
320
265
|
ZW: "ZW";
|
|
321
266
|
}>>;
|
|
267
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
268
|
+
doNotIngest: z.ZodOptional<z.ZodBoolean>;
|
|
269
|
+
releaseDate: z.ZodOptional<z.ZodString>;
|
|
270
|
+
originalLanguage: z.ZodOptional<z.ZodEnum<{
|
|
271
|
+
id: "id";
|
|
272
|
+
af: "af";
|
|
273
|
+
am: "am";
|
|
274
|
+
ar: "ar";
|
|
275
|
+
bg: "bg";
|
|
276
|
+
bn: "bn";
|
|
277
|
+
ca: "ca";
|
|
278
|
+
cs: "cs";
|
|
279
|
+
cy: "cy";
|
|
280
|
+
da: "da";
|
|
281
|
+
de: "de";
|
|
282
|
+
el: "el";
|
|
283
|
+
en: "en";
|
|
284
|
+
eo: "eo";
|
|
285
|
+
es: "es";
|
|
286
|
+
fa: "fa";
|
|
287
|
+
fi: "fi";
|
|
288
|
+
fr: "fr";
|
|
289
|
+
ga: "ga";
|
|
290
|
+
he: "he";
|
|
291
|
+
hi: "hi";
|
|
292
|
+
hr: "hr";
|
|
293
|
+
hu: "hu";
|
|
294
|
+
is: "is";
|
|
295
|
+
it: "it";
|
|
296
|
+
ja: "ja";
|
|
297
|
+
ko: "ko";
|
|
298
|
+
la: "la";
|
|
299
|
+
lb: "lb";
|
|
300
|
+
mk: "mk";
|
|
301
|
+
mr: "mr";
|
|
302
|
+
ms: "ms";
|
|
303
|
+
mt: "mt";
|
|
304
|
+
nl: "nl";
|
|
305
|
+
no: "no";
|
|
306
|
+
pl: "pl";
|
|
307
|
+
pt: "pt";
|
|
308
|
+
ro: "ro";
|
|
309
|
+
ru: "ru";
|
|
310
|
+
sk: "sk";
|
|
311
|
+
sr: "sr";
|
|
312
|
+
sv: "sv";
|
|
313
|
+
sw: "sw";
|
|
314
|
+
ta: "ta";
|
|
315
|
+
te: "te";
|
|
316
|
+
th: "th";
|
|
317
|
+
tl: "tl";
|
|
318
|
+
tr: "tr";
|
|
319
|
+
uk: "uk";
|
|
320
|
+
ur: "ur";
|
|
321
|
+
vi: "vi";
|
|
322
|
+
zh: "zh";
|
|
323
|
+
}>>;
|
|
322
324
|
}, z.core.$strip>;
|
|
323
325
|
}, z.core.$strip>;
|
|
324
326
|
}, z.core.$strip>;
|
|
@@ -643,6 +645,8 @@ declare const response: z.ZodObject<{
|
|
|
643
645
|
ZM: "ZM";
|
|
644
646
|
ZW: "ZW";
|
|
645
647
|
}>>;
|
|
648
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
649
|
+
doNotIngest: z.ZodOptional<z.ZodBoolean>;
|
|
646
650
|
}, z.core.$strip>;
|
|
647
651
|
}, z.core.$strip>;
|
|
648
652
|
export declare const routeSchema: RouteSchema;
|