@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.
@@ -0,0 +1,109 @@
1
+ import { z } from 'zod';
2
+ export const languageCode = z.enum([
3
+ 'af', // Afrikaans
4
+ 'am', // Amharic
5
+ 'ar', // Arabic
6
+ 'bg', // Bulgarian
7
+ 'bn', // Bengali
8
+ 'ca', // Catalan
9
+ 'cs', // Czech
10
+ 'cy', // Welsh
11
+ 'da', // Danish
12
+ 'de', // German
13
+ 'el', // Greek
14
+ 'en', // English
15
+ 'eo', // Esperanto
16
+ 'es', // Spanish
17
+ 'fa', // Persian (Farsi)
18
+ 'fi', // Finnish
19
+ 'fr', // French
20
+ 'ga', // Irish
21
+ 'he', // Hebrew
22
+ 'hi', // Hindi
23
+ 'hr', // Croatian
24
+ 'hu', // Hungarian
25
+ 'id', // Indonesian
26
+ 'is', // Icelandic
27
+ 'it', // Italian
28
+ 'ja', // Japanese
29
+ 'ko', // Korean
30
+ 'la', // Latin
31
+ 'lb', // Luxembourgish
32
+ 'mk', // Macedonian
33
+ 'mr', // Marathi
34
+ 'ms', // Malay
35
+ 'mt', // Maltese
36
+ 'nl', // Dutch
37
+ 'no', // Norwegian
38
+ 'pl', // Polish
39
+ 'pt', // Portuguese
40
+ 'ro', // Romanian
41
+ 'ru', // Russian
42
+ 'sk', // Slovak
43
+ 'sr', // Serbian
44
+ 'sv', // Swedish
45
+ 'sw', // Swahili
46
+ 'ta', // Tamil
47
+ 'te', // Telugu
48
+ 'th', // Thai
49
+ 'tl', // Filipino (Tagalog)
50
+ 'tr', // Turkish
51
+ 'uk', // Ukrainian
52
+ 'ur', // Urdu
53
+ 'vi', // Vietnamese
54
+ 'zh', // Chinese
55
+ ]);
56
+ export const languageNames = {
57
+ af: 'Afrikaans',
58
+ am: 'Amharic',
59
+ ar: 'Arabic',
60
+ bg: 'Bulgarian',
61
+ bn: 'Bengali',
62
+ ca: 'Catalan',
63
+ cs: 'Czech',
64
+ cy: 'Welsh',
65
+ da: 'Danish',
66
+ de: 'German',
67
+ el: 'Greek',
68
+ en: 'English',
69
+ eo: 'Esperanto',
70
+ es: 'Spanish',
71
+ fa: 'Persian (Farsi)',
72
+ fi: 'Finnish',
73
+ fr: 'French',
74
+ ga: 'Irish',
75
+ he: 'Hebrew',
76
+ hi: 'Hindi',
77
+ hr: 'Croatian',
78
+ hu: 'Hungarian',
79
+ id: 'Indonesian',
80
+ is: 'Icelandic',
81
+ it: 'Italian',
82
+ ja: 'Japanese',
83
+ ko: 'Korean',
84
+ la: 'Latin',
85
+ lb: 'Luxembourgish',
86
+ mk: 'Macedonian',
87
+ mr: 'Marathi',
88
+ ms: 'Malay',
89
+ mt: 'Maltese',
90
+ nl: 'Dutch',
91
+ no: 'Norwegian',
92
+ pl: 'Polish',
93
+ pt: 'Portuguese',
94
+ ro: 'Romanian',
95
+ ru: 'Russian',
96
+ sk: 'Slovak',
97
+ sr: 'Serbian',
98
+ sv: 'Swedish',
99
+ sw: 'Swahili',
100
+ ta: 'Tamil',
101
+ te: 'Telugu',
102
+ th: 'Thai',
103
+ tl: 'Filipino (Tagalog)',
104
+ tr: 'Turkish',
105
+ uk: 'Ukrainian',
106
+ ur: 'Urdu',
107
+ vi: 'Vietnamese',
108
+ zh: 'Chinese',
109
+ };
@@ -0,0 +1,37 @@
1
+ import { z } from 'zod';
2
+ export declare const projectType: z.ZodEnum<{
3
+ film: "film";
4
+ video_game: "video_game";
5
+ music: "music";
6
+ tv: "tv";
7
+ }>;
8
+ export type ProjectType = z.infer<typeof projectType>;
9
+ export declare const filmSubtype: z.ZodEnum<{
10
+ "film-short": "film-short";
11
+ "film-feature": "film-feature";
12
+ "film-documentary": "film-documentary";
13
+ "film-animated": "film-animated";
14
+ }>;
15
+ export type FilmSubtype = z.infer<typeof filmSubtype>;
16
+ export declare const videoGameSubtype: z.ZodEnum<{
17
+ video_game: "video_game";
18
+ }>;
19
+ export type VideoGameSubtype = z.infer<typeof videoGameSubtype>;
20
+ export declare const musicSubtype: z.ZodEnum<{
21
+ "music-album": "music-album";
22
+ "music-single": "music-single";
23
+ "music-ep": "music-ep";
24
+ "music-mixtape": "music-mixtape";
25
+ }>;
26
+ export type MusicSubtype = z.infer<typeof musicSubtype>;
27
+ export declare const tvSubtype: z.ZodEnum<{
28
+ "tv-series": "tv-series";
29
+ "tv-miniseries": "tv-miniseries";
30
+ "tv-movie": "tv-movie";
31
+ "tv-documentary": "tv-documentary";
32
+ "tv-animated": "tv-animated";
33
+ "tv-reality": "tv-reality";
34
+ "tv-talk-show": "tv-talk-show";
35
+ "tv-anime": "tv-anime";
36
+ }>;
37
+ export type TvSubtype = z.infer<typeof tvSubtype>;
@@ -0,0 +1,6 @@
1
+ import { z } from 'zod';
2
+ export const projectType = z.enum(['film', 'video_game', 'music', 'tv']);
3
+ export const filmSubtype = z.enum(['film-short', 'film-feature', 'film-documentary', 'film-animated']);
4
+ export const videoGameSubtype = z.enum(['video_game']);
5
+ export const musicSubtype = z.enum(['music-album', 'music-single', 'music-ep', 'music-mixtape']);
6
+ export const tvSubtype = z.enum(['tv-series', 'tv-miniseries', 'tv-movie', 'tv-documentary', 'tv-animated', 'tv-reality', 'tv-talk-show', 'tv-anime']);
@@ -0,0 +1,14 @@
1
+ export * from './be-content/collection.zod.js';
2
+ export * from './be-content/collectionItem.zod.js';
3
+ export * from './be-content/creator.zod.js';
4
+ export * from './be-content/creatorProjectRelation.zod.js';
5
+ export * from './be-content/project.zod.js';
6
+ export * from './be-content/projectCreator.zod.js';
7
+ export * from './be-content/update.zod.js';
8
+ export * from './be-feed/contentUpdate.zod.js';
9
+ export * from './be-search/mainSearch.zod.js';
10
+ export * from './be-user/subscription.zod.js';
11
+ export * from './common/countries.zod.js';
12
+ export * from './common/languages.zod.js';
13
+ export * from './common/creatorTypes.zod.js';
14
+ export * from './common/projectTypes.zod.js';
package/dist/index.js ADDED
@@ -0,0 +1,14 @@
1
+ export * from './be-content/collection.zod.js';
2
+ export * from './be-content/collectionItem.zod.js';
3
+ export * from './be-content/creator.zod.js';
4
+ export * from './be-content/creatorProjectRelation.zod.js';
5
+ export * from './be-content/project.zod.js';
6
+ export * from './be-content/projectCreator.zod.js';
7
+ export * from './be-content/update.zod.js';
8
+ export * from './be-feed/contentUpdate.zod.js';
9
+ export * from './be-search/mainSearch.zod.js';
10
+ export * from './be-user/subscription.zod.js';
11
+ export * from './common/countries.zod.js';
12
+ export * from './common/languages.zod.js';
13
+ export * from './common/creatorTypes.zod.js';
14
+ export * from './common/projectTypes.zod.js';
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@jackhayes/util-types",
3
- "version": "0.0.35",
3
+ "version": "0.0.36",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "sideEffects": false,
7
7
  "scripts": {
8
8
  "test": "echo \"Error: no test specified\" && exit 1",
9
9
  "build": "npx tsc --build",
10
- "build:publish": "rm -rf ./dist && npx tsc --build && npm version patch && npm publish --access=public"
10
+ "build:publish": "npx tsc --build && npm version patch && npm publish --access=public"
11
11
  },
12
12
  "author": "",
13
13
  "license": "ISC",