@nyig/models 0.2.32 → 0.2.34
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 +28 -28
- package/index.d.ts +28 -28
- package/index.js +9 -9
- package/index.mjs +9 -9
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -394,7 +394,7 @@ declare const zBCourse: z.ZodObject<{
|
|
|
394
394
|
* @unit CENTS - Price of the course in cents
|
|
395
395
|
*/
|
|
396
396
|
price: z.ZodNumber;
|
|
397
|
-
description: z.ZodOptional<z.ZodString
|
|
397
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
398
398
|
/**
|
|
399
399
|
* NYIG School locations
|
|
400
400
|
*/
|
|
@@ -402,7 +402,7 @@ declare const zBCourse: z.ZodObject<{
|
|
|
402
402
|
/**
|
|
403
403
|
* Recommended level before taking this course
|
|
404
404
|
*/
|
|
405
|
-
recLevel: z.ZodString
|
|
405
|
+
recLevel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
406
406
|
/**
|
|
407
407
|
* Camp tuition for half-day option
|
|
408
408
|
*/
|
|
@@ -417,8 +417,8 @@ declare const zBCourse: z.ZodObject<{
|
|
|
417
417
|
category: CourseCategory;
|
|
418
418
|
duration: number;
|
|
419
419
|
nyigSchool: NYIGSchool;
|
|
420
|
-
recLevel: string;
|
|
421
420
|
description?: string | undefined;
|
|
421
|
+
recLevel?: string | undefined;
|
|
422
422
|
halfCampTuition?: number | undefined;
|
|
423
423
|
fullCampTuition?: number | undefined;
|
|
424
424
|
}, {
|
|
@@ -427,8 +427,8 @@ declare const zBCourse: z.ZodObject<{
|
|
|
427
427
|
category: CourseCategory;
|
|
428
428
|
duration: number;
|
|
429
429
|
nyigSchool: NYIGSchool;
|
|
430
|
-
recLevel: string;
|
|
431
430
|
description?: string | undefined;
|
|
431
|
+
recLevel?: string | undefined;
|
|
432
432
|
halfCampTuition?: number | undefined;
|
|
433
433
|
fullCampTuition?: number | undefined;
|
|
434
434
|
}>;
|
|
@@ -437,9 +437,9 @@ declare const zCourse: z.ZodObject<{
|
|
|
437
437
|
name: z.ZodString;
|
|
438
438
|
category: z.ZodNativeEnum<typeof CourseCategory>;
|
|
439
439
|
duration: z.ZodNumber;
|
|
440
|
-
description: z.ZodOptional<z.ZodString
|
|
440
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
441
441
|
nyigSchool: z.ZodNativeEnum<typeof NYIGSchool>;
|
|
442
|
-
recLevel: z.ZodString
|
|
442
|
+
recLevel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
443
443
|
halfCampTuition: z.ZodOptional<z.ZodNumber>;
|
|
444
444
|
fullCampTuition: z.ZodOptional<z.ZodNumber>;
|
|
445
445
|
_id: z.ZodString;
|
|
@@ -453,8 +453,8 @@ declare const zCourse: z.ZodObject<{
|
|
|
453
453
|
category: CourseCategory;
|
|
454
454
|
duration: number;
|
|
455
455
|
nyigSchool: NYIGSchool;
|
|
456
|
-
recLevel: string;
|
|
457
456
|
description?: string | undefined;
|
|
457
|
+
recLevel?: string | undefined;
|
|
458
458
|
halfCampTuition?: number | undefined;
|
|
459
459
|
fullCampTuition?: number | undefined;
|
|
460
460
|
editedBy?: string | undefined;
|
|
@@ -467,8 +467,8 @@ declare const zCourse: z.ZodObject<{
|
|
|
467
467
|
category: CourseCategory;
|
|
468
468
|
duration: number;
|
|
469
469
|
nyigSchool: NYIGSchool;
|
|
470
|
-
recLevel: string;
|
|
471
470
|
description?: string | undefined;
|
|
471
|
+
recLevel?: string | undefined;
|
|
472
472
|
halfCampTuition?: number | undefined;
|
|
473
473
|
fullCampTuition?: number | undefined;
|
|
474
474
|
editedBy?: string | undefined;
|
|
@@ -2478,11 +2478,11 @@ declare const zBUser: z.ZodObject<{
|
|
|
2478
2478
|
username: z.ZodOptional<z.ZodString>;
|
|
2479
2479
|
password: z.ZodOptional<z.ZodString>;
|
|
2480
2480
|
roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
2481
|
-
email: z.ZodOptional<z.ZodString
|
|
2482
|
-
address: z.ZodOptional<z.ZodString
|
|
2483
|
-
country: z.ZodOptional<z.ZodString
|
|
2484
|
-
phoneNumber: z.ZodOptional<z.ZodString
|
|
2485
|
-
birthDate: z.ZodOptional<z.ZodString
|
|
2481
|
+
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2482
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2483
|
+
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2484
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2485
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2486
2486
|
}, "strip", z.ZodTypeAny, {
|
|
2487
2487
|
name: string;
|
|
2488
2488
|
username?: string | undefined;
|
|
@@ -2505,15 +2505,15 @@ declare const zBUser: z.ZodObject<{
|
|
|
2505
2505
|
birthDate?: string | undefined;
|
|
2506
2506
|
}>;
|
|
2507
2507
|
declare const zUser: z.ZodObject<{
|
|
2508
|
-
email: z.ZodOptional<z.ZodString
|
|
2509
|
-
address: z.ZodOptional<z.ZodString
|
|
2508
|
+
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2509
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2510
2510
|
name: z.ZodString;
|
|
2511
2511
|
username: z.ZodOptional<z.ZodString>;
|
|
2512
2512
|
password: z.ZodOptional<z.ZodString>;
|
|
2513
2513
|
roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
2514
|
-
country: z.ZodOptional<z.ZodString
|
|
2515
|
-
phoneNumber: z.ZodOptional<z.ZodString
|
|
2516
|
-
birthDate: z.ZodOptional<z.ZodString
|
|
2514
|
+
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2515
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2516
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2517
2517
|
_id: z.ZodString;
|
|
2518
2518
|
editedBy: z.ZodOptional<z.ZodString>;
|
|
2519
2519
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -2548,8 +2548,8 @@ declare const zUser: z.ZodObject<{
|
|
|
2548
2548
|
updatedAt?: Date | undefined;
|
|
2549
2549
|
}>;
|
|
2550
2550
|
declare const zStudent: z.ZodObject<{
|
|
2551
|
-
email: z.ZodOptional<z.ZodString
|
|
2552
|
-
address: z.ZodOptional<z.ZodString
|
|
2551
|
+
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2552
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2553
2553
|
_id: z.ZodString;
|
|
2554
2554
|
editedBy: z.ZodOptional<z.ZodString>;
|
|
2555
2555
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -2558,9 +2558,9 @@ declare const zStudent: z.ZodObject<{
|
|
|
2558
2558
|
username: z.ZodOptional<z.ZodString>;
|
|
2559
2559
|
password: z.ZodOptional<z.ZodString>;
|
|
2560
2560
|
roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
2561
|
-
country: z.ZodOptional<z.ZodString
|
|
2562
|
-
phoneNumber: z.ZodOptional<z.ZodString
|
|
2563
|
-
birthDate: z.ZodOptional<z.ZodString
|
|
2561
|
+
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2562
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2563
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2564
2564
|
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
2565
2565
|
guardian: z.ZodOptional<z.ZodString>;
|
|
2566
2566
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
@@ -2597,8 +2597,8 @@ declare const zStudent: z.ZodObject<{
|
|
|
2597
2597
|
guardian?: string | undefined;
|
|
2598
2598
|
}>;
|
|
2599
2599
|
declare const zTeacher: z.ZodObject<{
|
|
2600
|
-
email: z.ZodOptional<z.ZodString
|
|
2601
|
-
address: z.ZodOptional<z.ZodString
|
|
2600
|
+
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2601
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2602
2602
|
_id: z.ZodString;
|
|
2603
2603
|
editedBy: z.ZodOptional<z.ZodString>;
|
|
2604
2604
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -2607,9 +2607,9 @@ declare const zTeacher: z.ZodObject<{
|
|
|
2607
2607
|
username: z.ZodOptional<z.ZodString>;
|
|
2608
2608
|
password: z.ZodOptional<z.ZodString>;
|
|
2609
2609
|
roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
2610
|
-
country: z.ZodOptional<z.ZodString
|
|
2611
|
-
phoneNumber: z.ZodOptional<z.ZodString
|
|
2612
|
-
birthDate: z.ZodOptional<z.ZodString
|
|
2610
|
+
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2611
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2612
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2613
2613
|
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
2614
2614
|
isInactive: z.ZodOptional<z.ZodBoolean>;
|
|
2615
2615
|
title: z.ZodOptional<z.ZodString>;
|
package/index.d.ts
CHANGED
|
@@ -394,7 +394,7 @@ declare const zBCourse: z.ZodObject<{
|
|
|
394
394
|
* @unit CENTS - Price of the course in cents
|
|
395
395
|
*/
|
|
396
396
|
price: z.ZodNumber;
|
|
397
|
-
description: z.ZodOptional<z.ZodString
|
|
397
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
398
398
|
/**
|
|
399
399
|
* NYIG School locations
|
|
400
400
|
*/
|
|
@@ -402,7 +402,7 @@ declare const zBCourse: z.ZodObject<{
|
|
|
402
402
|
/**
|
|
403
403
|
* Recommended level before taking this course
|
|
404
404
|
*/
|
|
405
|
-
recLevel: z.ZodString
|
|
405
|
+
recLevel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
406
406
|
/**
|
|
407
407
|
* Camp tuition for half-day option
|
|
408
408
|
*/
|
|
@@ -417,8 +417,8 @@ declare const zBCourse: z.ZodObject<{
|
|
|
417
417
|
category: CourseCategory;
|
|
418
418
|
duration: number;
|
|
419
419
|
nyigSchool: NYIGSchool;
|
|
420
|
-
recLevel: string;
|
|
421
420
|
description?: string | undefined;
|
|
421
|
+
recLevel?: string | undefined;
|
|
422
422
|
halfCampTuition?: number | undefined;
|
|
423
423
|
fullCampTuition?: number | undefined;
|
|
424
424
|
}, {
|
|
@@ -427,8 +427,8 @@ declare const zBCourse: z.ZodObject<{
|
|
|
427
427
|
category: CourseCategory;
|
|
428
428
|
duration: number;
|
|
429
429
|
nyigSchool: NYIGSchool;
|
|
430
|
-
recLevel: string;
|
|
431
430
|
description?: string | undefined;
|
|
431
|
+
recLevel?: string | undefined;
|
|
432
432
|
halfCampTuition?: number | undefined;
|
|
433
433
|
fullCampTuition?: number | undefined;
|
|
434
434
|
}>;
|
|
@@ -437,9 +437,9 @@ declare const zCourse: z.ZodObject<{
|
|
|
437
437
|
name: z.ZodString;
|
|
438
438
|
category: z.ZodNativeEnum<typeof CourseCategory>;
|
|
439
439
|
duration: z.ZodNumber;
|
|
440
|
-
description: z.ZodOptional<z.ZodString
|
|
440
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
441
441
|
nyigSchool: z.ZodNativeEnum<typeof NYIGSchool>;
|
|
442
|
-
recLevel: z.ZodString
|
|
442
|
+
recLevel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
443
443
|
halfCampTuition: z.ZodOptional<z.ZodNumber>;
|
|
444
444
|
fullCampTuition: z.ZodOptional<z.ZodNumber>;
|
|
445
445
|
_id: z.ZodString;
|
|
@@ -453,8 +453,8 @@ declare const zCourse: z.ZodObject<{
|
|
|
453
453
|
category: CourseCategory;
|
|
454
454
|
duration: number;
|
|
455
455
|
nyigSchool: NYIGSchool;
|
|
456
|
-
recLevel: string;
|
|
457
456
|
description?: string | undefined;
|
|
457
|
+
recLevel?: string | undefined;
|
|
458
458
|
halfCampTuition?: number | undefined;
|
|
459
459
|
fullCampTuition?: number | undefined;
|
|
460
460
|
editedBy?: string | undefined;
|
|
@@ -467,8 +467,8 @@ declare const zCourse: z.ZodObject<{
|
|
|
467
467
|
category: CourseCategory;
|
|
468
468
|
duration: number;
|
|
469
469
|
nyigSchool: NYIGSchool;
|
|
470
|
-
recLevel: string;
|
|
471
470
|
description?: string | undefined;
|
|
471
|
+
recLevel?: string | undefined;
|
|
472
472
|
halfCampTuition?: number | undefined;
|
|
473
473
|
fullCampTuition?: number | undefined;
|
|
474
474
|
editedBy?: string | undefined;
|
|
@@ -2478,11 +2478,11 @@ declare const zBUser: z.ZodObject<{
|
|
|
2478
2478
|
username: z.ZodOptional<z.ZodString>;
|
|
2479
2479
|
password: z.ZodOptional<z.ZodString>;
|
|
2480
2480
|
roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
2481
|
-
email: z.ZodOptional<z.ZodString
|
|
2482
|
-
address: z.ZodOptional<z.ZodString
|
|
2483
|
-
country: z.ZodOptional<z.ZodString
|
|
2484
|
-
phoneNumber: z.ZodOptional<z.ZodString
|
|
2485
|
-
birthDate: z.ZodOptional<z.ZodString
|
|
2481
|
+
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2482
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2483
|
+
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2484
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2485
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2486
2486
|
}, "strip", z.ZodTypeAny, {
|
|
2487
2487
|
name: string;
|
|
2488
2488
|
username?: string | undefined;
|
|
@@ -2505,15 +2505,15 @@ declare const zBUser: z.ZodObject<{
|
|
|
2505
2505
|
birthDate?: string | undefined;
|
|
2506
2506
|
}>;
|
|
2507
2507
|
declare const zUser: z.ZodObject<{
|
|
2508
|
-
email: z.ZodOptional<z.ZodString
|
|
2509
|
-
address: z.ZodOptional<z.ZodString
|
|
2508
|
+
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2509
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2510
2510
|
name: z.ZodString;
|
|
2511
2511
|
username: z.ZodOptional<z.ZodString>;
|
|
2512
2512
|
password: z.ZodOptional<z.ZodString>;
|
|
2513
2513
|
roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
2514
|
-
country: z.ZodOptional<z.ZodString
|
|
2515
|
-
phoneNumber: z.ZodOptional<z.ZodString
|
|
2516
|
-
birthDate: z.ZodOptional<z.ZodString
|
|
2514
|
+
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2515
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2516
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2517
2517
|
_id: z.ZodString;
|
|
2518
2518
|
editedBy: z.ZodOptional<z.ZodString>;
|
|
2519
2519
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -2548,8 +2548,8 @@ declare const zUser: z.ZodObject<{
|
|
|
2548
2548
|
updatedAt?: Date | undefined;
|
|
2549
2549
|
}>;
|
|
2550
2550
|
declare const zStudent: z.ZodObject<{
|
|
2551
|
-
email: z.ZodOptional<z.ZodString
|
|
2552
|
-
address: z.ZodOptional<z.ZodString
|
|
2551
|
+
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2552
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2553
2553
|
_id: z.ZodString;
|
|
2554
2554
|
editedBy: z.ZodOptional<z.ZodString>;
|
|
2555
2555
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -2558,9 +2558,9 @@ declare const zStudent: z.ZodObject<{
|
|
|
2558
2558
|
username: z.ZodOptional<z.ZodString>;
|
|
2559
2559
|
password: z.ZodOptional<z.ZodString>;
|
|
2560
2560
|
roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
2561
|
-
country: z.ZodOptional<z.ZodString
|
|
2562
|
-
phoneNumber: z.ZodOptional<z.ZodString
|
|
2563
|
-
birthDate: z.ZodOptional<z.ZodString
|
|
2561
|
+
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2562
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2563
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2564
2564
|
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
2565
2565
|
guardian: z.ZodOptional<z.ZodString>;
|
|
2566
2566
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
@@ -2597,8 +2597,8 @@ declare const zStudent: z.ZodObject<{
|
|
|
2597
2597
|
guardian?: string | undefined;
|
|
2598
2598
|
}>;
|
|
2599
2599
|
declare const zTeacher: z.ZodObject<{
|
|
2600
|
-
email: z.ZodOptional<z.ZodString
|
|
2601
|
-
address: z.ZodOptional<z.ZodString
|
|
2600
|
+
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2601
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2602
2602
|
_id: z.ZodString;
|
|
2603
2603
|
editedBy: z.ZodOptional<z.ZodString>;
|
|
2604
2604
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -2607,9 +2607,9 @@ declare const zTeacher: z.ZodObject<{
|
|
|
2607
2607
|
username: z.ZodOptional<z.ZodString>;
|
|
2608
2608
|
password: z.ZodOptional<z.ZodString>;
|
|
2609
2609
|
roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
2610
|
-
country: z.ZodOptional<z.ZodString
|
|
2611
|
-
phoneNumber: z.ZodOptional<z.ZodString
|
|
2612
|
-
birthDate: z.ZodOptional<z.ZodString
|
|
2610
|
+
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2611
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2612
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2613
2613
|
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
2614
2614
|
isInactive: z.ZodOptional<z.ZodBoolean>;
|
|
2615
2615
|
title: z.ZodOptional<z.ZodString>;
|
package/index.js
CHANGED
|
@@ -315,12 +315,12 @@ var zBCourse = import_zod11.z.object({
|
|
|
315
315
|
/**
|
|
316
316
|
* @unit SECONDS - Duration of the course in seconds
|
|
317
317
|
*/
|
|
318
|
-
duration: import_zod11.z.number().int("Duration in seconds must be a whole number").min(1, "Duration in seconds must not be less than or equal to 0"),
|
|
318
|
+
duration: import_zod11.z.coerce.number().int("Duration in seconds must be a whole number").min(1, "Duration in seconds must not be less than or equal to 0"),
|
|
319
319
|
/**
|
|
320
320
|
* @unit CENTS - Price of the course in cents
|
|
321
321
|
*/
|
|
322
|
-
price: import_zod11.z.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0"),
|
|
323
|
-
description: import_zod11.z.string().optional(),
|
|
322
|
+
price: import_zod11.z.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0"),
|
|
323
|
+
description: import_zod11.z.string().or(import_zod11.z.literal("")).optional(),
|
|
324
324
|
/**
|
|
325
325
|
* NYIG School locations
|
|
326
326
|
*/
|
|
@@ -328,7 +328,7 @@ var zBCourse = import_zod11.z.object({
|
|
|
328
328
|
/**
|
|
329
329
|
* Recommended level before taking this course
|
|
330
330
|
*/
|
|
331
|
-
recLevel: import_zod11.z.string(),
|
|
331
|
+
recLevel: import_zod11.z.string().or(import_zod11.z.literal("")).optional(),
|
|
332
332
|
/**
|
|
333
333
|
* Camp tuition for half-day option
|
|
334
334
|
*/
|
|
@@ -667,17 +667,17 @@ var zBUser = import_zod25.z.object({
|
|
|
667
667
|
username: import_zod25.z.string().optional(),
|
|
668
668
|
password: import_zod25.z.string().optional(),
|
|
669
669
|
roles: import_zod25.z.array(import_zod25.z.number().int()).optional(),
|
|
670
|
-
email: import_zod25.z.string().email().
|
|
671
|
-
address: import_zod25.z.string().optional(),
|
|
670
|
+
email: import_zod25.z.string().max(100).email().or(import_zod25.z.literal("")).optional(),
|
|
671
|
+
address: import_zod25.z.string().or(import_zod25.z.literal("")).optional(),
|
|
672
672
|
country: import_zod25.z.string().length(2, {
|
|
673
673
|
message: "Enter the 2-letter country code"
|
|
674
|
-
}).optional(),
|
|
674
|
+
}).or(import_zod25.z.literal("")).optional(),
|
|
675
675
|
phoneNumber: import_zod25.z.string().regex(/^\d{10}/, {
|
|
676
676
|
message: `Please enter a valid 10-digit US phone number with numbers only`
|
|
677
|
-
}).optional(),
|
|
677
|
+
}).or(import_zod25.z.literal("")).optional(),
|
|
678
678
|
birthDate: import_zod25.z.string().regex(/^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/, {
|
|
679
679
|
message: "Enter a valid date in yyyy-mm-dd format"
|
|
680
|
-
}).optional()
|
|
680
|
+
}).or(import_zod25.z.literal("")).optional()
|
|
681
681
|
});
|
|
682
682
|
var zUser = addAutoProps(zBUser);
|
|
683
683
|
var zStudent = zUser.extend({
|
package/index.mjs
CHANGED
|
@@ -228,12 +228,12 @@ var zBCourse = z11.object({
|
|
|
228
228
|
/**
|
|
229
229
|
* @unit SECONDS - Duration of the course in seconds
|
|
230
230
|
*/
|
|
231
|
-
duration: z11.number().int("Duration in seconds must be a whole number").min(1, "Duration in seconds must not be less than or equal to 0"),
|
|
231
|
+
duration: z11.coerce.number().int("Duration in seconds must be a whole number").min(1, "Duration in seconds must not be less than or equal to 0"),
|
|
232
232
|
/**
|
|
233
233
|
* @unit CENTS - Price of the course in cents
|
|
234
234
|
*/
|
|
235
|
-
price: z11.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0"),
|
|
236
|
-
description: z11.string().optional(),
|
|
235
|
+
price: z11.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0"),
|
|
236
|
+
description: z11.string().or(z11.literal("")).optional(),
|
|
237
237
|
/**
|
|
238
238
|
* NYIG School locations
|
|
239
239
|
*/
|
|
@@ -241,7 +241,7 @@ var zBCourse = z11.object({
|
|
|
241
241
|
/**
|
|
242
242
|
* Recommended level before taking this course
|
|
243
243
|
*/
|
|
244
|
-
recLevel: z11.string(),
|
|
244
|
+
recLevel: z11.string().or(z11.literal("")).optional(),
|
|
245
245
|
/**
|
|
246
246
|
* Camp tuition for half-day option
|
|
247
247
|
*/
|
|
@@ -580,17 +580,17 @@ var zBUser = z25.object({
|
|
|
580
580
|
username: z25.string().optional(),
|
|
581
581
|
password: z25.string().optional(),
|
|
582
582
|
roles: z25.array(z25.number().int()).optional(),
|
|
583
|
-
email: z25.string().email().
|
|
584
|
-
address: z25.string().optional(),
|
|
583
|
+
email: z25.string().max(100).email().or(z25.literal("")).optional(),
|
|
584
|
+
address: z25.string().or(z25.literal("")).optional(),
|
|
585
585
|
country: z25.string().length(2, {
|
|
586
586
|
message: "Enter the 2-letter country code"
|
|
587
|
-
}).optional(),
|
|
587
|
+
}).or(z25.literal("")).optional(),
|
|
588
588
|
phoneNumber: z25.string().regex(/^\d{10}/, {
|
|
589
589
|
message: `Please enter a valid 10-digit US phone number with numbers only`
|
|
590
|
-
}).optional(),
|
|
590
|
+
}).or(z25.literal("")).optional(),
|
|
591
591
|
birthDate: z25.string().regex(/^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/, {
|
|
592
592
|
message: "Enter a valid date in yyyy-mm-dd format"
|
|
593
|
-
}).optional()
|
|
593
|
+
}).or(z25.literal("")).optional()
|
|
594
594
|
});
|
|
595
595
|
var zUser = addAutoProps(zBUser);
|
|
596
596
|
var zStudent = zUser.extend({
|