@jh-tech/be-content-shared 0.0.35 → 0.0.37

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,7 @@ import { z } from 'zod';
3
3
  declare const request: z.ZodObject<{
4
4
  body: z.ZodObject<{
5
5
  data: z.ZodArray<z.ZodObject<{
6
+ title: z.ZodString;
6
7
  type: z.ZodEnum<{
7
8
  film: "film";
8
9
  video_game: "video_game";
@@ -11,8 +12,62 @@ declare const request: z.ZodObject<{
11
12
  comic: "comic";
12
13
  book: "book";
13
14
  }>;
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
+ }>>;
16
71
  originCountry: z.ZodOptional<z.ZodEnum<{
17
72
  AF: "AF";
18
73
  AX: "AX";
@@ -264,61 +319,6 @@ declare const request: z.ZodObject<{
264
319
  ZM: "ZM";
265
320
  ZW: "ZW";
266
321
  }>>;
267
- releaseDate: z.ZodOptional<z.ZodString>;
268
- originalLanguage: z.ZodOptional<z.ZodEnum<{
269
- id: "id";
270
- af: "af";
271
- am: "am";
272
- ar: "ar";
273
- bg: "bg";
274
- bn: "bn";
275
- ca: "ca";
276
- cs: "cs";
277
- cy: "cy";
278
- da: "da";
279
- de: "de";
280
- el: "el";
281
- en: "en";
282
- eo: "eo";
283
- es: "es";
284
- fa: "fa";
285
- fi: "fi";
286
- fr: "fr";
287
- ga: "ga";
288
- he: "he";
289
- hi: "hi";
290
- hr: "hr";
291
- hu: "hu";
292
- is: "is";
293
- it: "it";
294
- ja: "ja";
295
- ko: "ko";
296
- la: "la";
297
- lb: "lb";
298
- mk: "mk";
299
- mr: "mr";
300
- ms: "ms";
301
- mt: "mt";
302
- nl: "nl";
303
- no: "no";
304
- pl: "pl";
305
- pt: "pt";
306
- ro: "ro";
307
- ru: "ru";
308
- sk: "sk";
309
- sr: "sr";
310
- sv: "sv";
311
- sw: "sw";
312
- ta: "ta";
313
- te: "te";
314
- th: "th";
315
- tl: "tl";
316
- tr: "tr";
317
- uk: "uk";
318
- ur: "ur";
319
- vi: "vi";
320
- zh: "zh";
321
- }>>;
322
322
  }, z.core.$strip>>;
323
323
  }, z.core.$strip>;
324
324
  }, z.core.$strip>;
@@ -323,6 +323,7 @@ declare const filters: z.ZodObject<{
323
323
  to: z.ZodOptional<z.ZodISODateTime>;
324
324
  }, z.core.$strip>>;
325
325
  projectIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
326
+ creatorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
326
327
  }, z.core.$strip>;
327
328
  declare const sorting: z.ZodObject<{
328
329
  sortBy: z.ZodEnum<{
@@ -673,6 +674,7 @@ declare const query: z.ZodObject<{
673
674
  to: z.ZodOptional<z.ZodISODateTime>;
674
675
  }, z.core.$strip>>;
675
676
  projectIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
677
+ creatorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
676
678
  }, z.core.$strip>>;
677
679
  }, z.core.$strip>;
678
680
  declare const request: z.ZodObject<{
@@ -1015,6 +1017,7 @@ declare const request: z.ZodObject<{
1015
1017
  to: z.ZodOptional<z.ZodISODateTime>;
1016
1018
  }, z.core.$strip>>;
1017
1019
  projectIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1020
+ creatorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1018
1021
  }, z.core.$strip>>;
1019
1022
  }, z.core.$strip>;
1020
1023
  }, z.core.$strip>;
@@ -8,6 +8,7 @@ const filters = z.object({
8
8
  releaseDate: dateRange.optional(),
9
9
  createdAt: dateRange.optional(),
10
10
  projectIds: z.array(z.string()).optional(),
11
+ creatorIds: z.array(z.string()).optional(),
11
12
  });
12
13
  const sorting = z.object({
13
14
  sortBy: z.enum(['createdAt', 'releaseDate']),
@@ -0,0 +1,84 @@
1
+ import type { RouteDef, RouteSchema } from '@jh-tech/util-tools-be';
2
+ import { z } from 'zod';
3
+ declare const request: z.ZodObject<{
4
+ body: z.ZodObject<{
5
+ data: z.ZodObject<{
6
+ name: z.ZodString;
7
+ role: 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
+ primary: z.ZodBoolean;
39
+ }, z.core.$strip>;
40
+ }, z.core.$strip>;
41
+ }, z.core.$strip>;
42
+ declare const response: z.ZodObject<{
43
+ data: z.ZodObject<{
44
+ id: z.ZodUUID;
45
+ name: z.ZodString;
46
+ role: z.ZodUnion<readonly [z.ZodEnum<{
47
+ "film-director": "film-director";
48
+ "film-producer": "film-producer";
49
+ "film-writer": "film-writer";
50
+ "film-actor": "film-actor";
51
+ "film-studio": "film-studio";
52
+ "film-publisher": "film-publisher";
53
+ }>, z.ZodEnum<{
54
+ "video_game-studio": "video_game-studio";
55
+ "video_game-publisher": "video_game-publisher";
56
+ "video_game-developer": "video_game-developer";
57
+ }>, z.ZodEnum<{
58
+ "music-artist": "music-artist";
59
+ "music-producer": "music-producer";
60
+ "music-label": "music-label";
61
+ "music-band": "music-band";
62
+ }>, z.ZodEnum<{
63
+ "tv-director": "tv-director";
64
+ "tv-producer": "tv-producer";
65
+ "tv-writer": "tv-writer";
66
+ "tv-actor": "tv-actor";
67
+ "tv-studio": "tv-studio";
68
+ "tv-network": "tv-network";
69
+ }>, z.ZodEnum<{
70
+ "comic-artist": "comic-artist";
71
+ "comic-writer": "comic-writer";
72
+ "comic-publisher": "comic-publisher";
73
+ }>, z.ZodEnum<{
74
+ "book-author": "book-author";
75
+ "book-publisher": "book-publisher";
76
+ }>]>;
77
+ primary: z.ZodBoolean;
78
+ }, z.core.$strip>;
79
+ }, z.core.$strip>;
80
+ export declare const routeSchema: RouteSchema;
81
+ export type Request = z.infer<typeof request>;
82
+ export type Response = z.infer<typeof response>;
83
+ export declare const definition: RouteDef;
84
+ export {};
@@ -0,0 +1,18 @@
1
+ import { projectCreator } from '@jackhayes/util-types';
2
+ import { z } from 'zod';
3
+ import { projectCreatorCreationData } from '../../index.js';
4
+ const request = z.object({
5
+ body: z.object({
6
+ data: projectCreatorCreationData,
7
+ }),
8
+ });
9
+ const response = z.object({
10
+ data: projectCreator,
11
+ });
12
+ export const routeSchema = {
13
+ request,
14
+ response,
15
+ };
16
+ const method = 'post';
17
+ const path = '/project-creator';
18
+ export const definition = { method, path, routeSchema };
@@ -51,6 +51,6 @@ export type Request = z.infer<typeof request>;
51
51
  export type Response = z.infer<typeof response>;
52
52
  export type Query = z.infer<typeof query>;
53
53
  export declare const method = "get";
54
- export declare const path = "/project-creators";
54
+ export declare const path = "/project-creator";
55
55
  export declare const definition: RouteDef;
56
56
  export {};
@@ -14,5 +14,5 @@ export const routeSchema = {
14
14
  response,
15
15
  };
16
16
  export const method = 'get';
17
- export const path = '/project-creators';
17
+ export const path = '/project-creator';
18
18
  export const definition = { method, path, routeSchema };