@jackhayes/util-types 0.0.35 → 0.0.36
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/be-content/collection.zod.d.ts +8 -0
- package/dist/be-content/collection.zod.js +7 -0
- package/dist/be-content/collectionItem.zod.d.ts +8 -0
- package/dist/be-content/collectionItem.zod.js +7 -0
- package/dist/be-content/creator.zod.d.ts +34 -0
- package/dist/be-content/creator.zod.js +14 -0
- package/dist/be-content/creatorProjectRelation.zod.d.ts +31 -0
- package/dist/be-content/creatorProjectRelation.zod.js +8 -0
- package/dist/be-content/project.zod.d.ts +700 -0
- package/dist/be-content/project.zod.js +22 -0
- package/dist/be-content/projectCreator.zod.d.ts +31 -0
- package/dist/be-content/projectCreator.zod.js +8 -0
- package/dist/be-content/update.zod.d.ts +10 -0
- package/dist/be-content/update.zod.js +9 -0
- package/dist/be-feed/contentUpdate.zod.d.ts +24 -0
- package/dist/be-feed/contentUpdate.zod.js +22 -0
- package/dist/be-search/mainSearch.zod.d.ts +38 -0
- package/dist/be-search/mainSearch.zod.js +11 -0
- package/dist/be-user/subscription.zod.d.ts +9 -0
- package/dist/be-user/subscription.zod.js +8 -0
- package/dist/common/countries.zod.d.ts +254 -0
- package/dist/common/countries.zod.js +503 -0
- package/dist/common/creatorTypes.zod.d.ts +57 -0
- package/dist/common/creatorTypes.zod.js +6 -0
- package/dist/common/languages.zod.d.ts +57 -0
- package/dist/common/languages.zod.js +109 -0
- package/dist/common/projectTypes.zod.d.ts +37 -0
- package/dist/common/projectTypes.zod.js +6 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +14 -0
- package/package.json +2 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const collectionItem: z.ZodObject<{
|
|
3
|
+
collectionId: z.ZodUUID;
|
|
4
|
+
projectId: z.ZodOptional<z.ZodUUID>;
|
|
5
|
+
subCollectionId: z.ZodOptional<z.ZodUUID>;
|
|
6
|
+
createdAt: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type CollectionItem = z.infer<typeof collectionItem>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const creator: z.ZodObject<{
|
|
3
|
+
id: z.ZodUUID;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
primaryRole: z.ZodUnion<readonly [z.ZodEnum<{
|
|
6
|
+
"film-director": "film-director";
|
|
7
|
+
"film-producer": "film-producer";
|
|
8
|
+
"film-writer": "film-writer";
|
|
9
|
+
"film-actor": "film-actor";
|
|
10
|
+
"film-studio": "film-studio";
|
|
11
|
+
"film-publisher": "film-publisher";
|
|
12
|
+
}>, z.ZodEnum<{
|
|
13
|
+
"video_game-studio": "video_game-studio";
|
|
14
|
+
"video_game-publisher": "video_game-publisher";
|
|
15
|
+
"video_game-developer": "video_game-developer";
|
|
16
|
+
}>, z.ZodEnum<{
|
|
17
|
+
"music-artist": "music-artist";
|
|
18
|
+
"music-producer": "music-producer";
|
|
19
|
+
"music-label": "music-label";
|
|
20
|
+
"music-band": "music-band";
|
|
21
|
+
}>, z.ZodEnum<{
|
|
22
|
+
"tv-director": "tv-director";
|
|
23
|
+
"tv-producer": "tv-producer";
|
|
24
|
+
"tv-writer": "tv-writer";
|
|
25
|
+
"tv-actor": "tv-actor";
|
|
26
|
+
"tv-studio": "tv-studio";
|
|
27
|
+
"tv-network": "tv-network";
|
|
28
|
+
}>]>;
|
|
29
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30
|
+
originCountry: z.ZodOptional<z.ZodString>;
|
|
31
|
+
createdAt: z.ZodString;
|
|
32
|
+
updatedAt: z.ZodString;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export type Creator = z.infer<typeof creator>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { creatorRole } from '../common/creatorTypes.zod.js';
|
|
3
|
+
export const creator = z.object({
|
|
4
|
+
id: z.uuid(),
|
|
5
|
+
name: z.string(),
|
|
6
|
+
/**
|
|
7
|
+
* What type of content the creator is mostly known for.
|
|
8
|
+
*/
|
|
9
|
+
primaryRole: creatorRole,
|
|
10
|
+
description: z.string().optional(),
|
|
11
|
+
originCountry: z.string().length(2).optional(),
|
|
12
|
+
createdAt: z.string(),
|
|
13
|
+
updatedAt: z.string(),
|
|
14
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const creatorProjectRelation: z.ZodObject<{
|
|
3
|
+
creatorId: z.ZodUUID;
|
|
4
|
+
projectId: z.ZodUUID;
|
|
5
|
+
primary: z.ZodBoolean;
|
|
6
|
+
role: z.ZodUnion<readonly [z.ZodEnum<{
|
|
7
|
+
"film-director": "film-director";
|
|
8
|
+
"film-producer": "film-producer";
|
|
9
|
+
"film-writer": "film-writer";
|
|
10
|
+
"film-actor": "film-actor";
|
|
11
|
+
"film-studio": "film-studio";
|
|
12
|
+
"film-publisher": "film-publisher";
|
|
13
|
+
}>, z.ZodEnum<{
|
|
14
|
+
"video_game-studio": "video_game-studio";
|
|
15
|
+
"video_game-publisher": "video_game-publisher";
|
|
16
|
+
"video_game-developer": "video_game-developer";
|
|
17
|
+
}>, z.ZodEnum<{
|
|
18
|
+
"music-artist": "music-artist";
|
|
19
|
+
"music-producer": "music-producer";
|
|
20
|
+
"music-label": "music-label";
|
|
21
|
+
"music-band": "music-band";
|
|
22
|
+
}>, z.ZodEnum<{
|
|
23
|
+
"tv-director": "tv-director";
|
|
24
|
+
"tv-producer": "tv-producer";
|
|
25
|
+
"tv-writer": "tv-writer";
|
|
26
|
+
"tv-actor": "tv-actor";
|
|
27
|
+
"tv-studio": "tv-studio";
|
|
28
|
+
"tv-network": "tv-network";
|
|
29
|
+
}>]>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type CreatorProjectRelation = z.infer<typeof creatorProjectRelation>;
|