@jackhayes/util-types 0.0.32 → 0.0.35
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.
- package/eslint.config.mjs +2 -2
- package/package.json +2 -2
- package/src/be-content/creator.zod.ts +2 -1
- package/src/common/languages.zod.ts +2 -0
- package/tsconfig.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/be-content/collection.zod.d.ts +0 -8
- package/dist/be-content/collection.zod.js +0 -7
- package/dist/be-content/collectionItem.zod.d.ts +0 -8
- package/dist/be-content/collectionItem.zod.js +0 -7
- package/dist/be-content/creator.zod.d.ts +0 -33
- package/dist/be-content/creator.zod.js +0 -13
- package/dist/be-content/creatorProjectRelation.zod.d.ts +0 -31
- package/dist/be-content/creatorProjectRelation.zod.js +0 -8
- package/dist/be-content/project.zod.d.ts +0 -698
- package/dist/be-content/project.zod.js +0 -22
- package/dist/be-content/projectCreator.zod.d.ts +0 -31
- package/dist/be-content/projectCreator.zod.js +0 -8
- package/dist/be-content/update.zod.d.ts +0 -10
- package/dist/be-content/update.zod.js +0 -9
- package/dist/be-feed/contentUpdate.zod.d.ts +0 -24
- package/dist/be-feed/contentUpdate.zod.js +0 -22
- package/dist/be-search/mainSearch.zod.d.ts +0 -38
- package/dist/be-search/mainSearch.zod.js +0 -11
- package/dist/be-user/subscription.zod.d.ts +0 -9
- package/dist/be-user/subscription.zod.js +0 -8
- package/dist/common/countries.zod.d.ts +0 -254
- package/dist/common/countries.zod.js +0 -503
- package/dist/common/creatorTypes.zod.d.ts +0 -57
- package/dist/common/creatorTypes.zod.js +0 -6
- package/dist/common/languages.zod.d.ts +0 -56
- package/dist/common/languages.zod.js +0 -107
- package/dist/common/projectTypes.zod.d.ts +0 -37
- package/dist/common/projectTypes.zod.js +0 -6
- package/dist/index.d.ts +0 -14
- package/dist/index.js +0 -14
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const projectCreator: z.ZodObject<{
|
|
3
|
-
id: z.ZodUUID;
|
|
4
|
-
name: z.ZodString;
|
|
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
|
-
}>]>;
|
|
29
|
-
primary: z.ZodBoolean;
|
|
30
|
-
}, z.core.$strip>;
|
|
31
|
-
export type ProjectCreator = z.infer<typeof projectCreator>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const update: z.ZodObject<{
|
|
3
|
-
id: z.ZodUUID;
|
|
4
|
-
title: z.ZodString;
|
|
5
|
-
links: z.ZodArray<z.ZodString>;
|
|
6
|
-
projectId: z.ZodUUID;
|
|
7
|
-
publishedAt: z.ZodString;
|
|
8
|
-
createdAt: z.ZodString;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
export type Update = z.infer<typeof update>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const contentUpdateTypes: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3
|
-
film: "film";
|
|
4
|
-
video_game: "video_game";
|
|
5
|
-
music: "music";
|
|
6
|
-
tv: "tv";
|
|
7
|
-
}>, z.ZodLiteral<"collection">]>;
|
|
8
|
-
export declare const contentUpdate: z.ZodObject<{
|
|
9
|
-
creatorId: z.ZodOptional<z.ZodUUID>;
|
|
10
|
-
projectId: z.ZodOptional<z.ZodUUID>;
|
|
11
|
-
collectionId: z.ZodOptional<z.ZodUUID>;
|
|
12
|
-
updateContentId: z.ZodOptional<z.ZodUUID>;
|
|
13
|
-
projectContentId: z.ZodOptional<z.ZodUUID>;
|
|
14
|
-
collectionContentId: z.ZodOptional<z.ZodUUID>;
|
|
15
|
-
type: z.ZodUnion<readonly [z.ZodEnum<{
|
|
16
|
-
film: "film";
|
|
17
|
-
video_game: "video_game";
|
|
18
|
-
music: "music";
|
|
19
|
-
tv: "tv";
|
|
20
|
-
}>, z.ZodLiteral<"collection">]>;
|
|
21
|
-
createdAt: z.ZodString;
|
|
22
|
-
}, z.core.$strip>;
|
|
23
|
-
export type ContentUpdate = z.infer<typeof contentUpdate>;
|
|
24
|
-
export type ContentUpdateTypes = z.infer<typeof contentUpdateTypes>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { projectType } from '../common/projectTypes.zod.js';
|
|
3
|
-
export const contentUpdateTypes = z.union([projectType, z.literal('collection')]);
|
|
4
|
-
export const contentUpdate = z.object({
|
|
5
|
-
creatorId: z.uuid().optional(),
|
|
6
|
-
projectId: z.uuid().optional(),
|
|
7
|
-
collectionId: z.uuid().optional(),
|
|
8
|
-
/**
|
|
9
|
-
* When set this represents an update made to a project.
|
|
10
|
-
*/
|
|
11
|
-
updateContentId: z.uuid().optional(),
|
|
12
|
-
/**
|
|
13
|
-
* When set this represents a project was created or added to a collection.
|
|
14
|
-
*/
|
|
15
|
-
projectContentId: z.uuid().optional(),
|
|
16
|
-
/**
|
|
17
|
-
* When set this represents a sub collection was added to a collection
|
|
18
|
-
*/
|
|
19
|
-
collectionContentId: z.uuid().optional(),
|
|
20
|
-
type: contentUpdateTypes,
|
|
21
|
-
createdAt: z.string(),
|
|
22
|
-
});
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const mainSearchDoc: z.ZodObject<{
|
|
3
|
-
creatorId: z.ZodOptional<z.ZodUUID>;
|
|
4
|
-
projectId: z.ZodOptional<z.ZodUUID>;
|
|
5
|
-
collectionId: z.ZodOptional<z.ZodUUID>;
|
|
6
|
-
name: z.ZodString;
|
|
7
|
-
projectType: z.ZodOptional<z.ZodEnum<{
|
|
8
|
-
film: "film";
|
|
9
|
-
video_game: "video_game";
|
|
10
|
-
music: "music";
|
|
11
|
-
tv: "tv";
|
|
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
|
-
}>]>>;
|
|
37
|
-
}, z.core.$strip>;
|
|
38
|
-
export type MainSearchDoc = z.infer<typeof mainSearchDoc>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { creatorRole } from '../common/creatorTypes.zod.js';
|
|
3
|
-
import { projectType } from '../common/projectTypes.zod.js';
|
|
4
|
-
export const mainSearchDoc = z.object({
|
|
5
|
-
creatorId: z.uuid().optional(),
|
|
6
|
-
projectId: z.uuid().optional(),
|
|
7
|
-
collectionId: z.uuid().optional(),
|
|
8
|
-
name: z.string(),
|
|
9
|
-
projectType: projectType.optional(),
|
|
10
|
-
creatorRole: creatorRole.optional(),
|
|
11
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const subscription: z.ZodObject<{
|
|
3
|
-
userId: z.ZodUUID;
|
|
4
|
-
creatorId: z.ZodOptional<z.ZodUUID>;
|
|
5
|
-
projectId: z.ZodOptional<z.ZodUUID>;
|
|
6
|
-
collectionId: z.ZodOptional<z.ZodUUID>;
|
|
7
|
-
createdAt: z.ZodString;
|
|
8
|
-
}, z.core.$strip>;
|
|
9
|
-
export type Subscription = z.infer<typeof subscription>;
|
|
@@ -1,254 +0,0 @@
|
|
|
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>;
|