@jh-tech/be-content-shared 0.0.56 → 0.0.58

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.
@@ -3,6 +3,39 @@ 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
+ names: z.ZodOptional<z.ZodArray<z.ZodString>>;
7
+ primaryRoles: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
8
+ "film-director": "film-director";
9
+ "film-producer": "film-producer";
10
+ "film-writer": "film-writer";
11
+ "film-actor": "film-actor";
12
+ "film-studio": "film-studio";
13
+ "film-publisher": "film-publisher";
14
+ }>, z.ZodEnum<{
15
+ "video_game-studio": "video_game-studio";
16
+ "video_game-publisher": "video_game-publisher";
17
+ "video_game-developer": "video_game-developer";
18
+ }>, z.ZodEnum<{
19
+ "music-artist": "music-artist";
20
+ "music-producer": "music-producer";
21
+ "music-label": "music-label";
22
+ "music-band": "music-band";
23
+ }>, z.ZodEnum<{
24
+ "tv-director": "tv-director";
25
+ "tv-producer": "tv-producer";
26
+ "tv-writer": "tv-writer";
27
+ "tv-actor": "tv-actor";
28
+ "tv-studio": "tv-studio";
29
+ "tv-network": "tv-network";
30
+ }>, z.ZodEnum<{
31
+ "comic-artist": "comic-artist";
32
+ "comic-writer": "comic-writer";
33
+ "comic-publisher": "comic-publisher";
34
+ }>, z.ZodEnum<{
35
+ "book-author": "book-author";
36
+ "book-publisher": "book-publisher";
37
+ }>]>>>;
38
+ name: z.ZodOptional<z.ZodString>;
6
39
  showHidden: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
7
40
  }, z.core.$strip>;
8
41
  declare const query: z.ZodObject<{
@@ -13,6 +46,39 @@ declare const query: z.ZodObject<{
13
46
  filters: z.ZodOptional<z.ZodObject<{
14
47
  creatorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
48
  projectIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
49
+ names: z.ZodOptional<z.ZodArray<z.ZodString>>;
50
+ primaryRoles: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
51
+ "film-director": "film-director";
52
+ "film-producer": "film-producer";
53
+ "film-writer": "film-writer";
54
+ "film-actor": "film-actor";
55
+ "film-studio": "film-studio";
56
+ "film-publisher": "film-publisher";
57
+ }>, z.ZodEnum<{
58
+ "video_game-studio": "video_game-studio";
59
+ "video_game-publisher": "video_game-publisher";
60
+ "video_game-developer": "video_game-developer";
61
+ }>, z.ZodEnum<{
62
+ "music-artist": "music-artist";
63
+ "music-producer": "music-producer";
64
+ "music-label": "music-label";
65
+ "music-band": "music-band";
66
+ }>, z.ZodEnum<{
67
+ "tv-director": "tv-director";
68
+ "tv-producer": "tv-producer";
69
+ "tv-writer": "tv-writer";
70
+ "tv-actor": "tv-actor";
71
+ "tv-studio": "tv-studio";
72
+ "tv-network": "tv-network";
73
+ }>, z.ZodEnum<{
74
+ "comic-artist": "comic-artist";
75
+ "comic-writer": "comic-writer";
76
+ "comic-publisher": "comic-publisher";
77
+ }>, z.ZodEnum<{
78
+ "book-author": "book-author";
79
+ "book-publisher": "book-publisher";
80
+ }>]>>>;
81
+ name: z.ZodOptional<z.ZodString>;
16
82
  showHidden: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
17
83
  }, z.core.$strip>>;
18
84
  sorting: z.ZodOptional<z.ZodObject<{
@@ -35,6 +101,39 @@ declare const request: z.ZodObject<{
35
101
  filters: z.ZodOptional<z.ZodObject<{
36
102
  creatorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
103
  projectIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
104
+ names: z.ZodOptional<z.ZodArray<z.ZodString>>;
105
+ primaryRoles: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
106
+ "film-director": "film-director";
107
+ "film-producer": "film-producer";
108
+ "film-writer": "film-writer";
109
+ "film-actor": "film-actor";
110
+ "film-studio": "film-studio";
111
+ "film-publisher": "film-publisher";
112
+ }>, z.ZodEnum<{
113
+ "video_game-studio": "video_game-studio";
114
+ "video_game-publisher": "video_game-publisher";
115
+ "video_game-developer": "video_game-developer";
116
+ }>, z.ZodEnum<{
117
+ "music-artist": "music-artist";
118
+ "music-producer": "music-producer";
119
+ "music-label": "music-label";
120
+ "music-band": "music-band";
121
+ }>, z.ZodEnum<{
122
+ "tv-director": "tv-director";
123
+ "tv-producer": "tv-producer";
124
+ "tv-writer": "tv-writer";
125
+ "tv-actor": "tv-actor";
126
+ "tv-studio": "tv-studio";
127
+ "tv-network": "tv-network";
128
+ }>, z.ZodEnum<{
129
+ "comic-artist": "comic-artist";
130
+ "comic-writer": "comic-writer";
131
+ "comic-publisher": "comic-publisher";
132
+ }>, z.ZodEnum<{
133
+ "book-author": "book-author";
134
+ "book-publisher": "book-publisher";
135
+ }>]>>>;
136
+ name: z.ZodOptional<z.ZodString>;
38
137
  showHidden: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
39
138
  }, z.core.$strip>>;
40
139
  sorting: z.ZodOptional<z.ZodObject<{
@@ -1,9 +1,12 @@
1
- import { creator } from '@jackhayes/util-types';
1
+ import { creator, creatorRole } from '@jackhayes/util-types';
2
2
  import { paginationMeta, withPagination } from '@jh-tech/util-tools-be';
3
3
  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
+ names: z.array(z.string()).optional(),
8
+ primaryRoles: z.array(creatorRole).optional(),
9
+ name: z.string().optional(),
7
10
  showHidden: z.coerce.boolean().optional(),
8
11
  });
9
12
  const sorting = z.object({