@nyig/models 0.6.0 → 0.6.2
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 +7370 -662
- package/index.d.ts +7370 -662
- package/index.js +7 -7
- package/index.mjs +7 -7
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -283,16 +283,16 @@ var zUserRoles = import_zod5.z.object({
|
|
|
283
283
|
// src/interface/user/userProfile.ts
|
|
284
284
|
var import_zod6 = require("zod");
|
|
285
285
|
var zBUserProfile = import_zod6.z.object({
|
|
286
|
-
firstName: import_zod6.z.string().min(2).max(50)
|
|
287
|
-
lastName: import_zod6.z.string().min(2).max(50)
|
|
288
|
-
|
|
289
|
-
rank: import_zod6.z.enum(GoRank).optional(),
|
|
286
|
+
firstName: import_zod6.z.string().min(2).max(50),
|
|
287
|
+
lastName: import_zod6.z.string().min(2).max(50),
|
|
288
|
+
rank: import_zod6.z.nativeEnum(GoRank).optional(),
|
|
290
289
|
agaId: import_zod6.z.string().regex(/^\d{4,5}$/, {
|
|
291
290
|
message: `Please enter a valid AGA ID`
|
|
292
|
-
})
|
|
293
|
-
|
|
291
|
+
}),
|
|
292
|
+
address: import_zod6.z.string().or(import_zod6.z.literal("")).optional(),
|
|
293
|
+
participateAs: import_zod6.z.enum(["adult", "youth"]).or(import_zod6.z.literal("")).optional(),
|
|
294
294
|
showOnWhoIsComing: import_zod6.z.boolean().optional(),
|
|
295
|
-
preferredEmail: import_zod6.z.email().optional(),
|
|
295
|
+
preferredEmail: import_zod6.z.string().email().or(import_zod6.z.literal("")).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
|
@@ -172,16 +172,16 @@ var zUserRoles = z5.object({
|
|
|
172
172
|
// src/interface/user/userProfile.ts
|
|
173
173
|
import { z as z6 } from "zod";
|
|
174
174
|
var zBUserProfile = z6.object({
|
|
175
|
-
firstName: z6.string().min(2).max(50)
|
|
176
|
-
lastName: z6.string().min(2).max(50)
|
|
177
|
-
|
|
178
|
-
rank: z6.enum(GoRank).optional(),
|
|
175
|
+
firstName: z6.string().min(2).max(50),
|
|
176
|
+
lastName: z6.string().min(2).max(50),
|
|
177
|
+
rank: z6.nativeEnum(GoRank).optional(),
|
|
179
178
|
agaId: z6.string().regex(/^\d{4,5}$/, {
|
|
180
179
|
message: `Please enter a valid AGA ID`
|
|
181
|
-
})
|
|
182
|
-
|
|
180
|
+
}),
|
|
181
|
+
address: z6.string().or(z6.literal("")).optional(),
|
|
182
|
+
participateAs: z6.enum(["adult", "youth"]).or(z6.literal("")).optional(),
|
|
183
183
|
showOnWhoIsComing: z6.boolean().optional(),
|
|
184
|
-
preferredEmail: z6.email().optional(),
|
|
184
|
+
preferredEmail: z6.string().email().or(z6.literal("")).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.2",
|
|
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",
|