@nyig/models 0.6.0 → 0.6.1
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/index.d.mts +7304 -596
- package/index.d.ts +7304 -596
- package/index.js +2 -2
- package/index.mjs +2 -2
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -286,13 +286,13 @@ var zBUserProfile = import_zod6.z.object({
|
|
|
286
286
|
firstName: import_zod6.z.string().min(2).max(50).or(import_zod6.z.literal("")).optional(),
|
|
287
287
|
lastName: import_zod6.z.string().min(2).max(50).or(import_zod6.z.literal("")).optional(),
|
|
288
288
|
address: import_zod6.z.string().or(import_zod6.z.literal("")).optional(),
|
|
289
|
-
rank: import_zod6.z.
|
|
289
|
+
rank: import_zod6.z.nativeEnum(GoRank).optional(),
|
|
290
290
|
agaId: import_zod6.z.string().regex(/^\d{4,5}$/, {
|
|
291
291
|
message: `Please enter a valid AGA ID`
|
|
292
292
|
}).or(import_zod6.z.literal("")).optional(),
|
|
293
293
|
participateAs: import_zod6.z.enum(["adult", "youth"]).optional(),
|
|
294
294
|
showOnWhoIsComing: import_zod6.z.boolean().optional(),
|
|
295
|
-
preferredEmail: import_zod6.z.email().optional(),
|
|
295
|
+
preferredEmail: import_zod6.z.string().email().optional(),
|
|
296
296
|
phoneNumber: import_zod6.z.string().regex(/^\d{10}/, {
|
|
297
297
|
message: `Please enter a valid 10-digit US phone number with numbers only`
|
|
298
298
|
}).or(import_zod6.z.literal("")).optional(),
|
package/index.mjs
CHANGED
|
@@ -175,13 +175,13 @@ var zBUserProfile = z6.object({
|
|
|
175
175
|
firstName: z6.string().min(2).max(50).or(z6.literal("")).optional(),
|
|
176
176
|
lastName: z6.string().min(2).max(50).or(z6.literal("")).optional(),
|
|
177
177
|
address: z6.string().or(z6.literal("")).optional(),
|
|
178
|
-
rank: z6.
|
|
178
|
+
rank: z6.nativeEnum(GoRank).optional(),
|
|
179
179
|
agaId: z6.string().regex(/^\d{4,5}$/, {
|
|
180
180
|
message: `Please enter a valid AGA ID`
|
|
181
181
|
}).or(z6.literal("")).optional(),
|
|
182
182
|
participateAs: z6.enum(["adult", "youth"]).optional(),
|
|
183
183
|
showOnWhoIsComing: z6.boolean().optional(),
|
|
184
|
-
preferredEmail: z6.email().optional(),
|
|
184
|
+
preferredEmail: z6.string().email().optional(),
|
|
185
185
|
phoneNumber: z6.string().regex(/^\d{10}/, {
|
|
186
186
|
message: `Please enter a valid 10-digit US phone number with numbers only`
|
|
187
187
|
}).or(z6.literal("")).optional(),
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nyig/models",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
7
7
|
"types": "index.d.ts",
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"zod": "
|
|
9
|
+
"zod": "^3.25.76"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@changesets/cli": "^2.29.8",
|