@jh-tech/be-content-shared 0.0.36 → 0.0.38

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.
@@ -6,6 +6,7 @@ declare const request: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  body: z.ZodObject<{
8
8
  data: z.ZodObject<{
9
+ title: z.ZodOptional<z.ZodString>;
9
10
  type: z.ZodOptional<z.ZodEnum<{
10
11
  film: "film";
11
12
  video_game: "video_game";
@@ -14,8 +15,62 @@ declare const request: z.ZodObject<{
14
15
  comic: "comic";
15
16
  book: "book";
16
17
  }>>;
17
- title: z.ZodOptional<z.ZodString>;
18
18
  description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
19
+ releaseDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
20
+ originalLanguage: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
21
+ id: "id";
22
+ af: "af";
23
+ am: "am";
24
+ ar: "ar";
25
+ bg: "bg";
26
+ bn: "bn";
27
+ ca: "ca";
28
+ cs: "cs";
29
+ cy: "cy";
30
+ da: "da";
31
+ de: "de";
32
+ el: "el";
33
+ en: "en";
34
+ eo: "eo";
35
+ es: "es";
36
+ fa: "fa";
37
+ fi: "fi";
38
+ fr: "fr";
39
+ ga: "ga";
40
+ he: "he";
41
+ hi: "hi";
42
+ hr: "hr";
43
+ hu: "hu";
44
+ is: "is";
45
+ it: "it";
46
+ ja: "ja";
47
+ ko: "ko";
48
+ la: "la";
49
+ lb: "lb";
50
+ mk: "mk";
51
+ mr: "mr";
52
+ ms: "ms";
53
+ mt: "mt";
54
+ nl: "nl";
55
+ no: "no";
56
+ pl: "pl";
57
+ pt: "pt";
58
+ ro: "ro";
59
+ ru: "ru";
60
+ sk: "sk";
61
+ sr: "sr";
62
+ sv: "sv";
63
+ sw: "sw";
64
+ ta: "ta";
65
+ te: "te";
66
+ th: "th";
67
+ tl: "tl";
68
+ tr: "tr";
69
+ uk: "uk";
70
+ ur: "ur";
71
+ vi: "vi";
72
+ zh: "zh";
73
+ }>>>;
19
74
  originCountry: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
20
75
  AF: "AF";
21
76
  AX: "AX";
@@ -267,61 +322,6 @@ declare const request: z.ZodObject<{
267
322
  ZM: "ZM";
268
323
  ZW: "ZW";
269
324
  }>>>;
270
- releaseDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
271
- originalLanguage: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
272
- id: "id";
273
- af: "af";
274
- am: "am";
275
- ar: "ar";
276
- bg: "bg";
277
- bn: "bn";
278
- ca: "ca";
279
- cs: "cs";
280
- cy: "cy";
281
- da: "da";
282
- de: "de";
283
- el: "el";
284
- en: "en";
285
- eo: "eo";
286
- es: "es";
287
- fa: "fa";
288
- fi: "fi";
289
- fr: "fr";
290
- ga: "ga";
291
- he: "he";
292
- hi: "hi";
293
- hr: "hr";
294
- hu: "hu";
295
- is: "is";
296
- it: "it";
297
- ja: "ja";
298
- ko: "ko";
299
- la: "la";
300
- lb: "lb";
301
- mk: "mk";
302
- mr: "mr";
303
- ms: "ms";
304
- mt: "mt";
305
- nl: "nl";
306
- no: "no";
307
- pl: "pl";
308
- pt: "pt";
309
- ro: "ro";
310
- ru: "ru";
311
- sk: "sk";
312
- sr: "sr";
313
- sv: "sv";
314
- sw: "sw";
315
- ta: "ta";
316
- te: "te";
317
- th: "th";
318
- tl: "tl";
319
- tr: "tr";
320
- uk: "uk";
321
- ur: "ur";
322
- vi: "vi";
323
- zh: "zh";
324
- }>>>;
325
325
  }, z.core.$strip>;
326
326
  }, z.core.$strip>;
327
327
  }, z.core.$strip>;
@@ -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>;
@@ -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 };