@jackhayes/util-types 0.0.26 → 0.0.28

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.
@@ -2,16 +2,30 @@ import { z } from 'zod';
2
2
  export declare const projectCreator: z.ZodObject<{
3
3
  id: z.ZodUUID;
4
4
  name: z.ZodString;
5
- role: z.ZodEnum<{
6
- studio: "studio";
7
- director: "director";
8
- writer: "writer";
9
- actor: "actor";
10
- band: "band";
11
- author: "author";
12
- publisher: "publisher";
13
- developer: "developer";
14
- }>;
5
+ role: z.ZodUnion<readonly [z.ZodEnum<{
6
+ "film-director": "film-director";
7
+ "film-producer": "film-producer";
8
+ "film-writer": "film-writer";
9
+ "film-actor": "film-actor";
10
+ "film-studio": "film-studio";
11
+ "film-publisher": "film-publisher";
12
+ }>, z.ZodEnum<{
13
+ "video_game-studio": "video_game-studio";
14
+ "video_game-publisher": "video_game-publisher";
15
+ "video_game-developer": "video_game-developer";
16
+ }>, z.ZodEnum<{
17
+ "music-artist": "music-artist";
18
+ "music-producer": "music-producer";
19
+ "music-label": "music-label";
20
+ "music-band": "music-band";
21
+ }>, z.ZodEnum<{
22
+ "tv-director": "tv-director";
23
+ "tv-producer": "tv-producer";
24
+ "tv-writer": "tv-writer";
25
+ "tv-actor": "tv-actor";
26
+ "tv-studio": "tv-studio";
27
+ "tv-network": "tv-network";
28
+ }>]>;
15
29
  primary: z.ZodBoolean;
16
30
  }, z.core.$strip>;
17
31
  export type ProjectCreator = z.infer<typeof projectCreator>;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { creatorRole } from './creator.zod.js';
2
+ import { creatorRole } from '../common/creatorTypes.zod.js';
3
3
  export const projectCreator = z.object({
4
4
  id: z.uuid(),
5
5
  name: z.string(),
@@ -1,11 +1,9 @@
1
1
  import { z } from 'zod';
2
2
  export declare const contentUpdateTypes: z.ZodUnion<readonly [z.ZodEnum<{
3
- movie: "movie";
4
- album: "album";
5
- single: "single";
6
- game: "game";
7
- book: "book";
8
- "tv show": "tv show";
3
+ film: "film";
4
+ video_game: "video_game";
5
+ music: "music";
6
+ tv: "tv";
9
7
  }>, z.ZodLiteral<"collection">]>;
10
8
  export declare const contentUpdate: z.ZodObject<{
11
9
  creatorId: z.ZodOptional<z.ZodUUID>;
@@ -15,12 +13,10 @@ export declare const contentUpdate: z.ZodObject<{
15
13
  projectContentId: z.ZodOptional<z.ZodUUID>;
16
14
  collectionContentId: z.ZodOptional<z.ZodUUID>;
17
15
  type: z.ZodUnion<readonly [z.ZodEnum<{
18
- movie: "movie";
19
- album: "album";
20
- single: "single";
21
- game: "game";
22
- book: "book";
23
- "tv show": "tv show";
16
+ film: "film";
17
+ video_game: "video_game";
18
+ music: "music";
19
+ tv: "tv";
24
20
  }>, z.ZodLiteral<"collection">]>;
25
21
  createdAt: z.ZodString;
26
22
  }, z.core.$strip>;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { projectType } from '../be-content/project.zod.js';
2
+ import { projectType } from '../common/projectTypes.zod.js';
3
3
  export const contentUpdateTypes = z.union([projectType, z.literal('collection')]);
4
4
  export const contentUpdate = z.object({
5
5
  creatorId: z.uuid().optional(),
@@ -5,22 +5,34 @@ export declare const mainSearchDoc: z.ZodObject<{
5
5
  collectionId: z.ZodOptional<z.ZodUUID>;
6
6
  name: z.ZodString;
7
7
  projectType: z.ZodOptional<z.ZodEnum<{
8
- movie: "movie";
9
- album: "album";
10
- single: "single";
11
- game: "game";
12
- book: "book";
13
- "tv show": "tv show";
14
- }>>;
15
- creatorRole: z.ZodOptional<z.ZodEnum<{
16
- studio: "studio";
17
- director: "director";
18
- writer: "writer";
19
- actor: "actor";
20
- band: "band";
21
- author: "author";
22
- publisher: "publisher";
23
- developer: "developer";
8
+ film: "film";
9
+ video_game: "video_game";
10
+ music: "music";
11
+ tv: "tv";
24
12
  }>>;
13
+ creatorRole: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
14
+ "film-director": "film-director";
15
+ "film-producer": "film-producer";
16
+ "film-writer": "film-writer";
17
+ "film-actor": "film-actor";
18
+ "film-studio": "film-studio";
19
+ "film-publisher": "film-publisher";
20
+ }>, z.ZodEnum<{
21
+ "video_game-studio": "video_game-studio";
22
+ "video_game-publisher": "video_game-publisher";
23
+ "video_game-developer": "video_game-developer";
24
+ }>, z.ZodEnum<{
25
+ "music-artist": "music-artist";
26
+ "music-producer": "music-producer";
27
+ "music-label": "music-label";
28
+ "music-band": "music-band";
29
+ }>, z.ZodEnum<{
30
+ "tv-director": "tv-director";
31
+ "tv-producer": "tv-producer";
32
+ "tv-writer": "tv-writer";
33
+ "tv-actor": "tv-actor";
34
+ "tv-studio": "tv-studio";
35
+ "tv-network": "tv-network";
36
+ }>]>>;
25
37
  }, z.core.$strip>;
26
38
  export type MainSearchDoc = z.infer<typeof mainSearchDoc>;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { creatorRole } from '../be-content/creator.zod.js';
3
- import { projectType } from '../be-content/project.zod.js';
2
+ import { creatorRole } from '../common/creatorTypes.zod.js';
3
+ import { projectType } from '../common/projectTypes.zod.js';
4
4
  export const mainSearchDoc = z.object({
5
5
  creatorId: z.uuid().optional(),
6
6
  projectId: z.uuid().optional(),
@@ -0,0 +1,254 @@
1
+ import { z } from 'zod';
2
+ export declare const countryCode: z.ZodEnum<{
3
+ AF: "AF";
4
+ AX: "AX";
5
+ AL: "AL";
6
+ DZ: "DZ";
7
+ AS: "AS";
8
+ AD: "AD";
9
+ AO: "AO";
10
+ AI: "AI";
11
+ AQ: "AQ";
12
+ AG: "AG";
13
+ AR: "AR";
14
+ AM: "AM";
15
+ AW: "AW";
16
+ AU: "AU";
17
+ AT: "AT";
18
+ AZ: "AZ";
19
+ BS: "BS";
20
+ BH: "BH";
21
+ BD: "BD";
22
+ BB: "BB";
23
+ BY: "BY";
24
+ BE: "BE";
25
+ BZ: "BZ";
26
+ BJ: "BJ";
27
+ BM: "BM";
28
+ BT: "BT";
29
+ BO: "BO";
30
+ BQ: "BQ";
31
+ BA: "BA";
32
+ BW: "BW";
33
+ BV: "BV";
34
+ BR: "BR";
35
+ IO: "IO";
36
+ BN: "BN";
37
+ BG: "BG";
38
+ BF: "BF";
39
+ BI: "BI";
40
+ CV: "CV";
41
+ KH: "KH";
42
+ CM: "CM";
43
+ CA: "CA";
44
+ KY: "KY";
45
+ CF: "CF";
46
+ TD: "TD";
47
+ CL: "CL";
48
+ CN: "CN";
49
+ CX: "CX";
50
+ CC: "CC";
51
+ CO: "CO";
52
+ KM: "KM";
53
+ CG: "CG";
54
+ CD: "CD";
55
+ CK: "CK";
56
+ CR: "CR";
57
+ CI: "CI";
58
+ HR: "HR";
59
+ CU: "CU";
60
+ CW: "CW";
61
+ CY: "CY";
62
+ CZ: "CZ";
63
+ DK: "DK";
64
+ DJ: "DJ";
65
+ DM: "DM";
66
+ DO: "DO";
67
+ EC: "EC";
68
+ EG: "EG";
69
+ SV: "SV";
70
+ GQ: "GQ";
71
+ ER: "ER";
72
+ EE: "EE";
73
+ SZ: "SZ";
74
+ ET: "ET";
75
+ FK: "FK";
76
+ FO: "FO";
77
+ FJ: "FJ";
78
+ FI: "FI";
79
+ FR: "FR";
80
+ GF: "GF";
81
+ PF: "PF";
82
+ TF: "TF";
83
+ GA: "GA";
84
+ GM: "GM";
85
+ GE: "GE";
86
+ DE: "DE";
87
+ GH: "GH";
88
+ GI: "GI";
89
+ GR: "GR";
90
+ GL: "GL";
91
+ GD: "GD";
92
+ GP: "GP";
93
+ GU: "GU";
94
+ GT: "GT";
95
+ GG: "GG";
96
+ GN: "GN";
97
+ GW: "GW";
98
+ GY: "GY";
99
+ HT: "HT";
100
+ HM: "HM";
101
+ VA: "VA";
102
+ HN: "HN";
103
+ HK: "HK";
104
+ HU: "HU";
105
+ IS: "IS";
106
+ IN: "IN";
107
+ ID: "ID";
108
+ IR: "IR";
109
+ IQ: "IQ";
110
+ IE: "IE";
111
+ IM: "IM";
112
+ IL: "IL";
113
+ IT: "IT";
114
+ JM: "JM";
115
+ JP: "JP";
116
+ JE: "JE";
117
+ JO: "JO";
118
+ KZ: "KZ";
119
+ KE: "KE";
120
+ KI: "KI";
121
+ KP: "KP";
122
+ KR: "KR";
123
+ KW: "KW";
124
+ KG: "KG";
125
+ LA: "LA";
126
+ LV: "LV";
127
+ LB: "LB";
128
+ LS: "LS";
129
+ LR: "LR";
130
+ LY: "LY";
131
+ LI: "LI";
132
+ LT: "LT";
133
+ LU: "LU";
134
+ MO: "MO";
135
+ MG: "MG";
136
+ MW: "MW";
137
+ MY: "MY";
138
+ MV: "MV";
139
+ ML: "ML";
140
+ MT: "MT";
141
+ MH: "MH";
142
+ MQ: "MQ";
143
+ MR: "MR";
144
+ MU: "MU";
145
+ YT: "YT";
146
+ MX: "MX";
147
+ FM: "FM";
148
+ MD: "MD";
149
+ MC: "MC";
150
+ MN: "MN";
151
+ ME: "ME";
152
+ MS: "MS";
153
+ MA: "MA";
154
+ MZ: "MZ";
155
+ MM: "MM";
156
+ NA: "NA";
157
+ NR: "NR";
158
+ NP: "NP";
159
+ NL: "NL";
160
+ NC: "NC";
161
+ NZ: "NZ";
162
+ NI: "NI";
163
+ NE: "NE";
164
+ NG: "NG";
165
+ NU: "NU";
166
+ NF: "NF";
167
+ MK: "MK";
168
+ MP: "MP";
169
+ NO: "NO";
170
+ OM: "OM";
171
+ PK: "PK";
172
+ PW: "PW";
173
+ PS: "PS";
174
+ PA: "PA";
175
+ PG: "PG";
176
+ PY: "PY";
177
+ PE: "PE";
178
+ PH: "PH";
179
+ PN: "PN";
180
+ PL: "PL";
181
+ PT: "PT";
182
+ PR: "PR";
183
+ QA: "QA";
184
+ RE: "RE";
185
+ RO: "RO";
186
+ RU: "RU";
187
+ RW: "RW";
188
+ BL: "BL";
189
+ SH: "SH";
190
+ KN: "KN";
191
+ LC: "LC";
192
+ MF: "MF";
193
+ PM: "PM";
194
+ VC: "VC";
195
+ WS: "WS";
196
+ SM: "SM";
197
+ ST: "ST";
198
+ SA: "SA";
199
+ SN: "SN";
200
+ RS: "RS";
201
+ SC: "SC";
202
+ SL: "SL";
203
+ SG: "SG";
204
+ SX: "SX";
205
+ SK: "SK";
206
+ SI: "SI";
207
+ SB: "SB";
208
+ SO: "SO";
209
+ ZA: "ZA";
210
+ GS: "GS";
211
+ SS: "SS";
212
+ ES: "ES";
213
+ LK: "LK";
214
+ SD: "SD";
215
+ SR: "SR";
216
+ SJ: "SJ";
217
+ SE: "SE";
218
+ CH: "CH";
219
+ SY: "SY";
220
+ TW: "TW";
221
+ TJ: "TJ";
222
+ TZ: "TZ";
223
+ TH: "TH";
224
+ TL: "TL";
225
+ TG: "TG";
226
+ TK: "TK";
227
+ TO: "TO";
228
+ TT: "TT";
229
+ TN: "TN";
230
+ TR: "TR";
231
+ TM: "TM";
232
+ TC: "TC";
233
+ TV: "TV";
234
+ UG: "UG";
235
+ UA: "UA";
236
+ AE: "AE";
237
+ GB: "GB";
238
+ US: "US";
239
+ UM: "UM";
240
+ UY: "UY";
241
+ UZ: "UZ";
242
+ VU: "VU";
243
+ VE: "VE";
244
+ VN: "VN";
245
+ VG: "VG";
246
+ VI: "VI";
247
+ WF: "WF";
248
+ EH: "EH";
249
+ YE: "YE";
250
+ ZM: "ZM";
251
+ ZW: "ZW";
252
+ }>;
253
+ export type CountryCode = z.infer<typeof countryCode>;
254
+ export declare const countryNames: Record<CountryCode, string>;