@jh-tech/be-content-shared 0.0.23 → 0.0.25

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.
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { type z } from 'zod';
2
2
  export declare const collectionCreationData: z.ZodObject<{
3
3
  name: z.ZodString;
4
4
  }, z.core.$strip>;
@@ -1,3 +1,3 @@
1
1
  import { collection } from '@jackhayes/util-types';
2
- import { z } from 'zod';
2
+ import {} from 'zod';
3
3
  export const collectionCreationData = collection.omit({ id: true, createdAt: true, updatedAt: true });
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { type z } from 'zod';
2
2
  export declare const collectionItemCreationData: z.ZodObject<{
3
3
  collectionId: z.ZodUUID;
4
4
  projectId: z.ZodOptional<z.ZodUUID>;
@@ -1,3 +1,3 @@
1
1
  import { collectionItem } from '@jackhayes/util-types';
2
- import { z } from 'zod';
2
+ import {} from 'zod';
3
3
  export const collectionItemCreationData = collectionItem.omit({ createdAt: true });
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { type z } from 'zod';
2
2
  export declare const creatorCreationData: z.ZodObject<{
3
3
  name: z.ZodString;
4
4
  description: z.ZodOptional<z.ZodString>;
@@ -26,5 +26,6 @@ export declare const creatorCreationData: z.ZodObject<{
26
26
  "tv-studio": "tv-studio";
27
27
  "tv-network": "tv-network";
28
28
  }>]>;
29
+ originCountry: z.ZodOptional<z.ZodString>;
29
30
  }, z.core.$strip>;
30
31
  export type CreatorCreationData = z.infer<typeof creatorCreationData>;
@@ -1,5 +1,5 @@
1
1
  import { creator } from '@jackhayes/util-types';
2
- import { z } from 'zod';
2
+ import {} from 'zod';
3
3
  export const creatorCreationData = creator.omit({
4
4
  id: true,
5
5
  createdAt: true,
@@ -1,5 +1,5 @@
1
- import { z } from 'zod';
2
- declare const projectCreatorRelation: z.ZodObject<{
1
+ import { type z } from 'zod';
2
+ export declare const projectCreatorRelation: z.ZodObject<{
3
3
  creatorId: z.ZodUUID;
4
4
  primary: z.ZodBoolean;
5
5
  role: z.ZodUnion<readonly [z.ZodEnum<{
@@ -37,60 +37,6 @@ export declare const projectCreationData: z.ZodObject<{
37
37
  }>;
38
38
  title: z.ZodString;
39
39
  description: z.ZodOptional<z.ZodString>;
40
- releaseDate: z.ZodOptional<z.ZodString>;
41
- originalLanguage: z.ZodOptional<z.ZodEnum<{
42
- id: "id";
43
- af: "af";
44
- am: "am";
45
- ar: "ar";
46
- bg: "bg";
47
- bn: "bn";
48
- ca: "ca";
49
- cs: "cs";
50
- cy: "cy";
51
- da: "da";
52
- de: "de";
53
- el: "el";
54
- en: "en";
55
- eo: "eo";
56
- es: "es";
57
- fa: "fa";
58
- fi: "fi";
59
- fr: "fr";
60
- ga: "ga";
61
- he: "he";
62
- hi: "hi";
63
- hr: "hr";
64
- hu: "hu";
65
- is: "is";
66
- it: "it";
67
- ja: "ja";
68
- ko: "ko";
69
- la: "la";
70
- lb: "lb";
71
- mr: "mr";
72
- ms: "ms";
73
- mt: "mt";
74
- nl: "nl";
75
- no: "no";
76
- pl: "pl";
77
- pt: "pt";
78
- ro: "ro";
79
- ru: "ru";
80
- sk: "sk";
81
- sr: "sr";
82
- sv: "sv";
83
- sw: "sw";
84
- ta: "ta";
85
- te: "te";
86
- th: "th";
87
- tl: "tl";
88
- tr: "tr";
89
- uk: "uk";
90
- ur: "ur";
91
- vi: "vi";
92
- zh: "zh";
93
- }>>;
94
40
  originCountry: z.ZodOptional<z.ZodEnum<{
95
41
  AF: "AF";
96
42
  AX: "AX";
@@ -342,17 +288,6 @@ export declare const projectCreationData: z.ZodObject<{
342
288
  ZM: "ZM";
343
289
  ZW: "ZW";
344
290
  }>>;
345
- }, z.core.$strip>;
346
- export type ProjectCreationData = z.infer<typeof projectCreationData>;
347
- export declare const projectWithCreatorRelationCreationData: z.ZodObject<{
348
- type: z.ZodEnum<{
349
- film: "film";
350
- video_game: "video_game";
351
- music: "music";
352
- tv: "tv";
353
- }>;
354
- title: z.ZodString;
355
- description: z.ZodOptional<z.ZodString>;
356
291
  releaseDate: z.ZodOptional<z.ZodString>;
357
292
  originalLanguage: z.ZodOptional<z.ZodEnum<{
358
293
  id: "id";
@@ -384,6 +319,7 @@ export declare const projectWithCreatorRelationCreationData: z.ZodObject<{
384
319
  ko: "ko";
385
320
  la: "la";
386
321
  lb: "lb";
322
+ mk: "mk";
387
323
  mr: "mr";
388
324
  ms: "ms";
389
325
  mt: "mt";
@@ -407,285 +343,5 @@ export declare const projectWithCreatorRelationCreationData: z.ZodObject<{
407
343
  vi: "vi";
408
344
  zh: "zh";
409
345
  }>>;
410
- originCountry: z.ZodOptional<z.ZodEnum<{
411
- AF: "AF";
412
- AX: "AX";
413
- AL: "AL";
414
- DZ: "DZ";
415
- AS: "AS";
416
- AD: "AD";
417
- AO: "AO";
418
- AI: "AI";
419
- AQ: "AQ";
420
- AG: "AG";
421
- AR: "AR";
422
- AM: "AM";
423
- AW: "AW";
424
- AU: "AU";
425
- AT: "AT";
426
- AZ: "AZ";
427
- BS: "BS";
428
- BH: "BH";
429
- BD: "BD";
430
- BB: "BB";
431
- BY: "BY";
432
- BE: "BE";
433
- BZ: "BZ";
434
- BJ: "BJ";
435
- BM: "BM";
436
- BT: "BT";
437
- BO: "BO";
438
- BQ: "BQ";
439
- BA: "BA";
440
- BW: "BW";
441
- BV: "BV";
442
- BR: "BR";
443
- IO: "IO";
444
- BN: "BN";
445
- BG: "BG";
446
- BF: "BF";
447
- BI: "BI";
448
- CV: "CV";
449
- KH: "KH";
450
- CM: "CM";
451
- CA: "CA";
452
- KY: "KY";
453
- CF: "CF";
454
- TD: "TD";
455
- CL: "CL";
456
- CN: "CN";
457
- CX: "CX";
458
- CC: "CC";
459
- CO: "CO";
460
- KM: "KM";
461
- CG: "CG";
462
- CD: "CD";
463
- CK: "CK";
464
- CR: "CR";
465
- CI: "CI";
466
- HR: "HR";
467
- CU: "CU";
468
- CW: "CW";
469
- CY: "CY";
470
- CZ: "CZ";
471
- DK: "DK";
472
- DJ: "DJ";
473
- DM: "DM";
474
- DO: "DO";
475
- EC: "EC";
476
- EG: "EG";
477
- SV: "SV";
478
- GQ: "GQ";
479
- ER: "ER";
480
- EE: "EE";
481
- SZ: "SZ";
482
- ET: "ET";
483
- FK: "FK";
484
- FO: "FO";
485
- FJ: "FJ";
486
- FI: "FI";
487
- FR: "FR";
488
- GF: "GF";
489
- PF: "PF";
490
- TF: "TF";
491
- GA: "GA";
492
- GM: "GM";
493
- GE: "GE";
494
- DE: "DE";
495
- GH: "GH";
496
- GI: "GI";
497
- GR: "GR";
498
- GL: "GL";
499
- GD: "GD";
500
- GP: "GP";
501
- GU: "GU";
502
- GT: "GT";
503
- GG: "GG";
504
- GN: "GN";
505
- GW: "GW";
506
- GY: "GY";
507
- HT: "HT";
508
- HM: "HM";
509
- VA: "VA";
510
- HN: "HN";
511
- HK: "HK";
512
- HU: "HU";
513
- IS: "IS";
514
- IN: "IN";
515
- ID: "ID";
516
- IR: "IR";
517
- IQ: "IQ";
518
- IE: "IE";
519
- IM: "IM";
520
- IL: "IL";
521
- IT: "IT";
522
- JM: "JM";
523
- JP: "JP";
524
- JE: "JE";
525
- JO: "JO";
526
- KZ: "KZ";
527
- KE: "KE";
528
- KI: "KI";
529
- KP: "KP";
530
- KR: "KR";
531
- KW: "KW";
532
- KG: "KG";
533
- LA: "LA";
534
- LV: "LV";
535
- LB: "LB";
536
- LS: "LS";
537
- LR: "LR";
538
- LY: "LY";
539
- LI: "LI";
540
- LT: "LT";
541
- LU: "LU";
542
- MO: "MO";
543
- MG: "MG";
544
- MW: "MW";
545
- MY: "MY";
546
- MV: "MV";
547
- ML: "ML";
548
- MT: "MT";
549
- MH: "MH";
550
- MQ: "MQ";
551
- MR: "MR";
552
- MU: "MU";
553
- YT: "YT";
554
- MX: "MX";
555
- FM: "FM";
556
- MD: "MD";
557
- MC: "MC";
558
- MN: "MN";
559
- ME: "ME";
560
- MS: "MS";
561
- MA: "MA";
562
- MZ: "MZ";
563
- MM: "MM";
564
- NA: "NA";
565
- NR: "NR";
566
- NP: "NP";
567
- NL: "NL";
568
- NC: "NC";
569
- NZ: "NZ";
570
- NI: "NI";
571
- NE: "NE";
572
- NG: "NG";
573
- NU: "NU";
574
- NF: "NF";
575
- MK: "MK";
576
- MP: "MP";
577
- NO: "NO";
578
- OM: "OM";
579
- PK: "PK";
580
- PW: "PW";
581
- PS: "PS";
582
- PA: "PA";
583
- PG: "PG";
584
- PY: "PY";
585
- PE: "PE";
586
- PH: "PH";
587
- PN: "PN";
588
- PL: "PL";
589
- PT: "PT";
590
- PR: "PR";
591
- QA: "QA";
592
- RE: "RE";
593
- RO: "RO";
594
- RU: "RU";
595
- RW: "RW";
596
- BL: "BL";
597
- SH: "SH";
598
- KN: "KN";
599
- LC: "LC";
600
- MF: "MF";
601
- PM: "PM";
602
- VC: "VC";
603
- WS: "WS";
604
- SM: "SM";
605
- ST: "ST";
606
- SA: "SA";
607
- SN: "SN";
608
- RS: "RS";
609
- SC: "SC";
610
- SL: "SL";
611
- SG: "SG";
612
- SX: "SX";
613
- SK: "SK";
614
- SI: "SI";
615
- SB: "SB";
616
- SO: "SO";
617
- ZA: "ZA";
618
- GS: "GS";
619
- SS: "SS";
620
- ES: "ES";
621
- LK: "LK";
622
- SD: "SD";
623
- SR: "SR";
624
- SJ: "SJ";
625
- SE: "SE";
626
- CH: "CH";
627
- SY: "SY";
628
- TW: "TW";
629
- TJ: "TJ";
630
- TZ: "TZ";
631
- TH: "TH";
632
- TL: "TL";
633
- TG: "TG";
634
- TK: "TK";
635
- TO: "TO";
636
- TT: "TT";
637
- TN: "TN";
638
- TR: "TR";
639
- TM: "TM";
640
- TC: "TC";
641
- TV: "TV";
642
- UG: "UG";
643
- UA: "UA";
644
- AE: "AE";
645
- GB: "GB";
646
- US: "US";
647
- UM: "UM";
648
- UY: "UY";
649
- UZ: "UZ";
650
- VU: "VU";
651
- VE: "VE";
652
- VN: "VN";
653
- VG: "VG";
654
- VI: "VI";
655
- WF: "WF";
656
- EH: "EH";
657
- YE: "YE";
658
- ZM: "ZM";
659
- ZW: "ZW";
660
- }>>;
661
- creators: z.ZodOptional<z.ZodArray<z.ZodObject<{
662
- creatorId: z.ZodUUID;
663
- primary: z.ZodBoolean;
664
- role: z.ZodUnion<readonly [z.ZodEnum<{
665
- "film-director": "film-director";
666
- "film-producer": "film-producer";
667
- "film-writer": "film-writer";
668
- "film-actor": "film-actor";
669
- "film-studio": "film-studio";
670
- "film-publisher": "film-publisher";
671
- }>, z.ZodEnum<{
672
- "video_game-studio": "video_game-studio";
673
- "video_game-publisher": "video_game-publisher";
674
- "video_game-developer": "video_game-developer";
675
- }>, z.ZodEnum<{
676
- "music-artist": "music-artist";
677
- "music-producer": "music-producer";
678
- "music-label": "music-label";
679
- "music-band": "music-band";
680
- }>, z.ZodEnum<{
681
- "tv-director": "tv-director";
682
- "tv-producer": "tv-producer";
683
- "tv-writer": "tv-writer";
684
- "tv-actor": "tv-actor";
685
- "tv-studio": "tv-studio";
686
- "tv-network": "tv-network";
687
- }>]>;
688
- }, z.core.$strip>>>;
689
346
  }, z.core.$strip>;
690
- export type ProjectWithCreatorRelationCreationData = z.infer<typeof projectWithCreatorRelationCreationData>;
691
- export {};
347
+ export type ProjectCreationData = z.infer<typeof projectCreationData>;
@@ -1,6 +1,6 @@
1
1
  import { project, creatorProjectRelation } from '@jackhayes/util-types';
2
- import { z } from 'zod';
3
- const projectCreatorRelation = creatorProjectRelation.omit({
2
+ import {} from 'zod';
3
+ export const projectCreatorRelation = creatorProjectRelation.omit({
4
4
  projectId: true,
5
5
  });
6
6
  export const projectCreationData = project.omit({
@@ -8,6 +8,3 @@ export const projectCreationData = project.omit({
8
8
  createdAt: true,
9
9
  updatedAt: true,
10
10
  });
11
- export const projectWithCreatorRelationCreationData = projectCreationData.extend({
12
- creators: z.array(projectCreatorRelation).optional(),
13
- });
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { type z } from 'zod';
2
2
  export declare const updateCreationData: z.ZodObject<{
3
3
  title: z.ZodString;
4
4
  projectId: z.ZodUUID;
@@ -1,5 +1,5 @@
1
1
  import { update } from '@jackhayes/util-types';
2
- import { z } from 'zod';
2
+ import {} from 'zod';
3
3
  export const updateCreationData = update.omit({
4
4
  id: true,
5
5
  createdAt: true,
@@ -29,6 +29,7 @@ declare const request: z.ZodObject<{
29
29
  "tv-studio": "tv-studio";
30
30
  "tv-network": "tv-network";
31
31
  }>]>;
32
+ originCountry: z.ZodOptional<z.ZodString>;
32
33
  }, z.core.$strip>;
33
34
  }, z.core.$strip>;
34
35
  }, z.core.$strip>;
@@ -61,6 +62,7 @@ declare const response: z.ZodObject<{
61
62
  "tv-network": "tv-network";
62
63
  }>]>;
63
64
  description: z.ZodOptional<z.ZodString>;
65
+ originCountry: z.ZodOptional<z.ZodString>;
64
66
  createdAt: z.ZodString;
65
67
  updatedAt: z.ZodString;
66
68
  }, z.core.$strip>;
@@ -34,6 +34,7 @@ declare const response: z.ZodObject<{
34
34
  "tv-network": "tv-network";
35
35
  }>]>;
36
36
  description: z.ZodOptional<z.ZodString>;
37
+ originCountry: z.ZodOptional<z.ZodString>;
37
38
  createdAt: z.ZodString;
38
39
  updatedAt: z.ZodString;
39
40
  }, z.core.$strip>;
@@ -49,6 +49,7 @@ declare const response: z.ZodObject<{
49
49
  ko: "ko";
50
50
  la: "la";
51
51
  lb: "lb";
52
+ mk: "mk";
52
53
  mr: "mr";
53
54
  ms: "ms";
54
55
  mt: "mt";
@@ -29,6 +29,7 @@ declare const request: z.ZodObject<{
29
29
  "tv-studio": "tv-studio";
30
30
  "tv-network": "tv-network";
31
31
  }>]>;
32
+ originCountry: z.ZodOptional<z.ZodString>;
32
33
  }, z.core.$strip>>;
33
34
  }, z.core.$strip>;
34
35
  }, z.core.$strip>;
@@ -61,6 +62,7 @@ declare const response: z.ZodObject<{
61
62
  "tv-network": "tv-network";
62
63
  }>]>;
63
64
  description: z.ZodOptional<z.ZodString>;
65
+ originCountry: z.ZodOptional<z.ZodString>;
64
66
  createdAt: z.ZodString;
65
67
  updatedAt: z.ZodString;
66
68
  }, z.core.$strip>>;
@@ -39,6 +39,7 @@ declare const response: z.ZodObject<{
39
39
  "tv-network": "tv-network";
40
40
  }>]>;
41
41
  description: z.ZodOptional<z.ZodString>;
42
+ originCountry: z.ZodOptional<z.ZodString>;
42
43
  createdAt: z.ZodString;
43
44
  updatedAt: z.ZodString;
44
45
  }, z.core.$strip>>;
@@ -11,60 +11,6 @@ declare const request: z.ZodObject<{
11
11
  }>;
12
12
  title: z.ZodString;
13
13
  description: z.ZodOptional<z.ZodString>;
14
- releaseDate: z.ZodOptional<z.ZodString>;
15
- originalLanguage: z.ZodOptional<z.ZodEnum<{
16
- id: "id";
17
- af: "af";
18
- am: "am";
19
- ar: "ar";
20
- bg: "bg";
21
- bn: "bn";
22
- ca: "ca";
23
- cs: "cs";
24
- cy: "cy";
25
- da: "da";
26
- de: "de";
27
- el: "el";
28
- en: "en";
29
- eo: "eo";
30
- es: "es";
31
- fa: "fa";
32
- fi: "fi";
33
- fr: "fr";
34
- ga: "ga";
35
- he: "he";
36
- hi: "hi";
37
- hr: "hr";
38
- hu: "hu";
39
- is: "is";
40
- it: "it";
41
- ja: "ja";
42
- ko: "ko";
43
- la: "la";
44
- lb: "lb";
45
- mr: "mr";
46
- ms: "ms";
47
- mt: "mt";
48
- nl: "nl";
49
- no: "no";
50
- pl: "pl";
51
- pt: "pt";
52
- ro: "ro";
53
- ru: "ru";
54
- sk: "sk";
55
- sr: "sr";
56
- sv: "sv";
57
- sw: "sw";
58
- ta: "ta";
59
- te: "te";
60
- th: "th";
61
- tl: "tl";
62
- tr: "tr";
63
- uk: "uk";
64
- ur: "ur";
65
- vi: "vi";
66
- zh: "zh";
67
- }>>;
68
14
  originCountry: z.ZodOptional<z.ZodEnum<{
69
15
  AF: "AF";
70
16
  AX: "AX";
@@ -316,34 +262,61 @@ declare const request: z.ZodObject<{
316
262
  ZM: "ZM";
317
263
  ZW: "ZW";
318
264
  }>>;
319
- creators: z.ZodOptional<z.ZodArray<z.ZodObject<{
320
- creatorId: z.ZodUUID;
321
- primary: z.ZodBoolean;
322
- role: z.ZodUnion<readonly [z.ZodEnum<{
323
- "film-director": "film-director";
324
- "film-producer": "film-producer";
325
- "film-writer": "film-writer";
326
- "film-actor": "film-actor";
327
- "film-studio": "film-studio";
328
- "film-publisher": "film-publisher";
329
- }>, z.ZodEnum<{
330
- "video_game-studio": "video_game-studio";
331
- "video_game-publisher": "video_game-publisher";
332
- "video_game-developer": "video_game-developer";
333
- }>, z.ZodEnum<{
334
- "music-artist": "music-artist";
335
- "music-producer": "music-producer";
336
- "music-label": "music-label";
337
- "music-band": "music-band";
338
- }>, z.ZodEnum<{
339
- "tv-director": "tv-director";
340
- "tv-producer": "tv-producer";
341
- "tv-writer": "tv-writer";
342
- "tv-actor": "tv-actor";
343
- "tv-studio": "tv-studio";
344
- "tv-network": "tv-network";
345
- }>]>;
346
- }, z.core.$strip>>>;
265
+ releaseDate: z.ZodOptional<z.ZodString>;
266
+ originalLanguage: z.ZodOptional<z.ZodEnum<{
267
+ id: "id";
268
+ af: "af";
269
+ am: "am";
270
+ ar: "ar";
271
+ bg: "bg";
272
+ bn: "bn";
273
+ ca: "ca";
274
+ cs: "cs";
275
+ cy: "cy";
276
+ da: "da";
277
+ de: "de";
278
+ el: "el";
279
+ en: "en";
280
+ eo: "eo";
281
+ es: "es";
282
+ fa: "fa";
283
+ fi: "fi";
284
+ fr: "fr";
285
+ ga: "ga";
286
+ he: "he";
287
+ hi: "hi";
288
+ hr: "hr";
289
+ hu: "hu";
290
+ is: "is";
291
+ it: "it";
292
+ ja: "ja";
293
+ ko: "ko";
294
+ la: "la";
295
+ lb: "lb";
296
+ mk: "mk";
297
+ mr: "mr";
298
+ ms: "ms";
299
+ mt: "mt";
300
+ nl: "nl";
301
+ no: "no";
302
+ pl: "pl";
303
+ pt: "pt";
304
+ ro: "ro";
305
+ ru: "ru";
306
+ sk: "sk";
307
+ sr: "sr";
308
+ sv: "sv";
309
+ sw: "sw";
310
+ ta: "ta";
311
+ te: "te";
312
+ th: "th";
313
+ tl: "tl";
314
+ tr: "tr";
315
+ uk: "uk";
316
+ ur: "ur";
317
+ vi: "vi";
318
+ zh: "zh";
319
+ }>>;
347
320
  }, z.core.$strip>;
348
321
  }, z.core.$strip>;
349
322
  }, z.core.$strip>;
@@ -391,6 +364,7 @@ declare const response: z.ZodObject<{
391
364
  ko: "ko";
392
365
  la: "la";
393
366
  lb: "lb";
367
+ mk: "mk";
394
368
  mr: "mr";
395
369
  ms: "ms";
396
370
  mt: "mt";