@nyig/models 0.6.5 → 0.6.6
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 +64 -34
- package/index.d.ts +64 -34
- package/index.js +4 -2
- package/index.mjs +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -157,7 +157,9 @@ var zBUserInfo = import_zod2.z.object({
|
|
|
157
157
|
showOnWhoIsComing: import_zod2.z.boolean().optional(),
|
|
158
158
|
participateAs: import_zod2.z.enum(["adult", "youth"]).optional(),
|
|
159
159
|
// Required for youth tournaments
|
|
160
|
-
dateOfBirth: import_zod2.z.string().optional()
|
|
160
|
+
dateOfBirth: import_zod2.z.string().optional(),
|
|
161
|
+
// Track the selected user profile
|
|
162
|
+
profileId: import_zod2.z.string().optional()
|
|
161
163
|
});
|
|
162
164
|
|
|
163
165
|
// src/interface/booking/bookingType.ts
|
|
@@ -442,7 +444,7 @@ var zBTeacher = zBUser.extend({
|
|
|
442
444
|
* Schools the teacher is affiliated with
|
|
443
445
|
* Required for showing on the aurora "about" page
|
|
444
446
|
*/
|
|
445
|
-
schools: import_zod10.z.array(import_zod10.z.nativeEnum(NYIGSchool)).
|
|
447
|
+
schools: import_zod10.z.array(import_zod10.z.nativeEnum(NYIGSchool)).min(1, "Teachers must be affiliated with at least one school")
|
|
446
448
|
});
|
|
447
449
|
var zTeacher = addAutoProps(zBTeacher);
|
|
448
450
|
var zTeacherResponse = zTeacher.omit({ roles: true, editedBy: true, updatedAt: true, createdAt: true }).extend({
|
package/index.mjs
CHANGED
|
@@ -48,7 +48,9 @@ var zBUserInfo = z2.object({
|
|
|
48
48
|
showOnWhoIsComing: z2.boolean().optional(),
|
|
49
49
|
participateAs: z2.enum(["adult", "youth"]).optional(),
|
|
50
50
|
// Required for youth tournaments
|
|
51
|
-
dateOfBirth: z2.string().optional()
|
|
51
|
+
dateOfBirth: z2.string().optional(),
|
|
52
|
+
// Track the selected user profile
|
|
53
|
+
profileId: z2.string().optional()
|
|
52
54
|
});
|
|
53
55
|
|
|
54
56
|
// src/interface/booking/bookingType.ts
|
|
@@ -333,7 +335,7 @@ var zBTeacher = zBUser.extend({
|
|
|
333
335
|
* Schools the teacher is affiliated with
|
|
334
336
|
* Required for showing on the aurora "about" page
|
|
335
337
|
*/
|
|
336
|
-
schools: z10.array(z10.nativeEnum(NYIGSchool)).
|
|
338
|
+
schools: z10.array(z10.nativeEnum(NYIGSchool)).min(1, "Teachers must be affiliated with at least one school")
|
|
337
339
|
});
|
|
338
340
|
var zTeacher = addAutoProps(zBTeacher);
|
|
339
341
|
var zTeacherResponse = zTeacher.omit({ roles: true, editedBy: true, updatedAt: true, createdAt: true }).extend({
|