@nyig/models 0.6.4 → 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.
Files changed (5) hide show
  1. package/index.d.mts +145 -221
  2. package/index.d.ts +145 -221
  3. package/index.js +104 -91
  4. package/index.mjs +104 -91
  5. 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
@@ -181,7 +183,7 @@ var AttendState = /* @__PURE__ */ ((AttendState2) => {
181
183
  })(AttendState || {});
182
184
 
183
185
  // src/interface/tracking/attendance.ts
184
- var import_zod11 = require("zod");
186
+ var import_zod12 = require("zod");
185
187
 
186
188
  // src/interface/payment/tuition.ts
187
189
  var import_zod3 = require("zod");
@@ -303,8 +305,6 @@ var zUserProfile = addAutoProps(zBUserProfile);
303
305
  // src/interface/user/user.ts
304
306
  var zBUser = import_zod7.z.object({
305
307
  name: import_zod7.z.string().min(2).max(100),
306
- username: import_zod7.z.string().optional(),
307
- password: import_zod7.z.string().optional(),
308
308
  roles: zUserRoles.optional(),
309
309
  email: import_zod7.z.string().max(100).email().or(import_zod7.z.literal("")).optional(),
310
310
  address: import_zod7.z.string().or(import_zod7.z.literal("")).optional(),
@@ -337,30 +337,96 @@ var zBStudent = zBUser.extend({
337
337
  var zStudent = addAutoProps(zBStudent);
338
338
 
339
339
  // src/interface/user/teacher.ts
340
+ var import_zod10 = require("zod");
341
+
342
+ // src/interface/course/ageGroup.ts
343
+ var AgeGroup = /* @__PURE__ */ ((AgeGroup2) => {
344
+ AgeGroup2["ADULT"] = "Adult";
345
+ AgeGroup2["YOUTH"] = "Youth";
346
+ return AgeGroup2;
347
+ })(AgeGroup || {});
348
+
349
+ // src/interface/course/category.ts
350
+ var CourseCategory = /* @__PURE__ */ ((CourseCategory2) => {
351
+ CourseCategory2["GROUP"] = "group";
352
+ CourseCategory2["PRIVATE"] = "private";
353
+ CourseCategory2["SEMIPRIVATE"] = "semiprivate";
354
+ CourseCategory2["CAMP"] = "camp";
355
+ CourseCategory2["EVENT"] = "event";
356
+ return CourseCategory2;
357
+ })(CourseCategory || {});
358
+
359
+ // src/interface/course/school.ts
360
+ var NYIGSchool = /* @__PURE__ */ ((NYIGSchool2) => {
361
+ NYIGSchool2["MANHATTAN"] = "Manhattan";
362
+ NYIGSchool2["LITTLENECK"] = "Little Neck";
363
+ NYIGSchool2["ONLINE"] = "Online";
364
+ return NYIGSchool2;
365
+ })(NYIGSchool || {});
366
+
367
+ // src/interface/course/course.ts
340
368
  var import_zod9 = require("zod");
369
+ var zBCourse = import_zod9.z.object({
370
+ name: import_zod9.z.string(),
371
+ category: import_zod9.z.nativeEnum(CourseCategory),
372
+ /**
373
+ * @unit SECONDS - Duration of the course in seconds
374
+ */
375
+ duration: import_zod9.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"),
376
+ /**
377
+ * @unit CENTS - Price of the course in cents
378
+ */
379
+ price: import_zod9.z.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0"),
380
+ description: import_zod9.z.string().or(import_zod9.z.literal("")).optional(),
381
+ /**
382
+ * NYIG School location
383
+ * @deprecated
384
+ */
385
+ nyigSchool: import_zod9.z.nativeEnum(NYIGSchool).optional(),
386
+ /**
387
+ * NYIG School locations the course is offered at
388
+ */
389
+ schools: import_zod9.z.array(import_zod9.z.nativeEnum(NYIGSchool)).optional(),
390
+ /**
391
+ * Recommended level before taking this course
392
+ */
393
+ recLevel: import_zod9.z.string().or(import_zod9.z.literal("")).optional(),
394
+ /**
395
+ * Camp tuition for half-day option
396
+ */
397
+ halfCampTuition: import_zod9.z.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
398
+ /**
399
+ * Camp tuition for full-day option
400
+ */
401
+ fullCampTuition: import_zod9.z.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
402
+ superadminOnly: import_zod9.z.boolean().optional()
403
+ });
404
+ var zCourse = addAutoProps(zBCourse);
405
+
406
+ // src/interface/user/teacher.ts
341
407
  var zBTeacher = zBUser.extend({
342
- rank: import_zod9.z.nativeEnum(GoRank),
408
+ rank: import_zod10.z.nativeEnum(GoRank),
343
409
  /**
344
410
  * Inactive teachers are not shown on public endpoints
345
411
  */
346
- isInactive: import_zod9.z.boolean().optional(),
412
+ isInactive: import_zod10.z.boolean().optional(),
347
413
  /**
348
414
  * If true, teacher is never available for booking
349
415
  */
350
- doesNotTeachPrivateLessons: import_zod9.z.boolean().optional(),
416
+ doesNotTeachPrivateLessons: import_zod10.z.boolean().optional(),
351
417
  /**
352
418
  * Teacher's position, e.g., instructor, president
353
419
  */
354
- title: import_zod9.z.string().optional(),
420
+ title: import_zod10.z.string().optional(),
355
421
  /**
356
422
  * Teacher's bio text describing experience
357
423
  * new lines will be rendered as paragraphs
358
424
  */
359
- bio: import_zod9.z.string().optional(),
425
+ bio: import_zod10.z.string().optional(),
360
426
  /**
361
427
  * Permanent URL of the image
362
428
  */
363
- imageUrl: import_zod9.z.string().optional(),
429
+ imageUrl: import_zod10.z.string().optional(),
364
430
  /** Format is illustrated below, where teacher is available
365
431
  * Mon 9-12am 3-6pm & Tue 10-12am 6-10pm
366
432
  * [
@@ -373,47 +439,52 @@ var zBTeacher = zBUser.extend({
373
439
  * [],
374
440
  * ]
375
441
  */
376
- available: import_zod9.z.array(import_zod9.z.array(import_zod9.z.array(import_zod9.z.number()))).optional()
442
+ available: import_zod10.z.array(import_zod10.z.array(import_zod10.z.array(import_zod10.z.number()))).optional(),
443
+ /**
444
+ * Schools the teacher is affiliated with
445
+ * Required for showing on the aurora "about" page
446
+ */
447
+ schools: import_zod10.z.array(import_zod10.z.nativeEnum(NYIGSchool)).min(1, "Teachers must be affiliated with at least one school")
377
448
  });
378
449
  var zTeacher = addAutoProps(zBTeacher);
379
- var zTeacherResponse = zTeacher.omit({ password: true, roles: true, editedBy: true, updatedAt: true, createdAt: true }).extend({
380
- role: import_zod9.z.number().int()
450
+ var zTeacherResponse = zTeacher.omit({ roles: true, editedBy: true, updatedAt: true, createdAt: true }).extend({
451
+ role: import_zod10.z.number().int()
381
452
  });
382
453
 
383
454
  // src/interface/user/auth.ts
384
- var import_zod10 = require("zod");
385
- var zCreateAdminAccountRequest = import_zod10.z.object({
386
- _id: import_zod10.z.string(),
387
- user: import_zod10.z.string().min(3, "Username must be at least 3 characters"),
388
- pwd: import_zod10.z.string().min(6)
455
+ var import_zod11 = require("zod");
456
+ var zCreateAdminAccountRequest = import_zod11.z.object({
457
+ _id: import_zod11.z.string(),
458
+ user: import_zod11.z.string().min(3, "Username must be at least 3 characters"),
459
+ pwd: import_zod11.z.string().min(6)
389
460
  });
390
- var zChangePasswordRequest = import_zod10.z.object({
391
- prev: import_zod10.z.string().min(6),
392
- next: import_zod10.z.string().min(6)
461
+ var zChangePasswordRequest = import_zod11.z.object({
462
+ prev: import_zod11.z.string().min(6),
463
+ next: import_zod11.z.string().min(6)
393
464
  });
394
- var zLoginRequest = import_zod10.z.object({
395
- user: import_zod10.z.string().min(3, "Username must be at least 3 characters"),
396
- pwd: import_zod10.z.string().min(6)
465
+ var zLoginRequest = import_zod11.z.object({
466
+ user: import_zod11.z.string().min(3, "Username must be at least 3 characters"),
467
+ pwd: import_zod11.z.string().min(6)
397
468
  });
398
- var zLoginResponse = import_zod10.z.object({
399
- user: import_zod10.z.string(),
400
- token: import_zod10.z.string()
469
+ var zLoginResponse = import_zod11.z.object({
470
+ user: import_zod11.z.string(),
471
+ token: import_zod11.z.string()
401
472
  });
402
473
 
403
474
  // src/interface/tracking/attendance.ts
404
- var zBAttendance = import_zod11.z.object({
405
- student: import_zod11.z.string(),
406
- states: import_zod11.z.array(import_zod11.z.nativeEnum(AttendState)),
475
+ var zBAttendance = import_zod12.z.object({
476
+ student: import_zod12.z.string(),
477
+ states: import_zod12.z.array(import_zod12.z.nativeEnum(AttendState)),
407
478
  /**
408
479
  * @deprecated This field is no longer used
409
480
  */
410
481
  tuition: zTuition.optional(),
411
- paid: import_zod11.z.boolean().optional(),
412
- campOption: import_zod11.z.nativeEnum(CampOption).optional()
482
+ paid: import_zod12.z.boolean().optional(),
483
+ campOption: import_zod12.z.nativeEnum(CampOption).optional()
413
484
  });
414
485
  var zAttendance = addAutoProps(zBAttendance);
415
486
  var zAttendanceRequest = zAttendance.extend({
416
- _id: import_zod11.z.string().optional()
487
+ _id: import_zod12.z.string().optional()
417
488
  });
418
489
  var zAttendanceResponse = zAttendance.extend({
419
490
  student: zStudent
@@ -422,64 +493,6 @@ var zAttendanceResponse = zAttendance.extend({
422
493
  // src/interface/tracking/campTracker.ts
423
494
  var import_zod14 = require("zod");
424
495
 
425
- // src/interface/course/ageGroup.ts
426
- var AgeGroup = /* @__PURE__ */ ((AgeGroup2) => {
427
- AgeGroup2["ADULT"] = "Adult";
428
- AgeGroup2["YOUTH"] = "Youth";
429
- return AgeGroup2;
430
- })(AgeGroup || {});
431
-
432
- // src/interface/course/category.ts
433
- var CourseCategory = /* @__PURE__ */ ((CourseCategory2) => {
434
- CourseCategory2["GROUP"] = "group";
435
- CourseCategory2["PRIVATE"] = "private";
436
- CourseCategory2["SEMIPRIVATE"] = "semiprivate";
437
- CourseCategory2["CAMP"] = "camp";
438
- CourseCategory2["EVENT"] = "event";
439
- return CourseCategory2;
440
- })(CourseCategory || {});
441
-
442
- // src/interface/course/school.ts
443
- var NYIGSchool = /* @__PURE__ */ ((NYIGSchool2) => {
444
- NYIGSchool2["MANHATTAN"] = "Manhattan";
445
- NYIGSchool2["LITTLENECK"] = "Little Neck";
446
- return NYIGSchool2;
447
- })(NYIGSchool || {});
448
-
449
- // src/interface/course/course.ts
450
- var import_zod12 = require("zod");
451
- var zBCourse = import_zod12.z.object({
452
- name: import_zod12.z.string(),
453
- category: import_zod12.z.nativeEnum(CourseCategory),
454
- /**
455
- * @unit SECONDS - Duration of the course in seconds
456
- */
457
- duration: import_zod12.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"),
458
- /**
459
- * @unit CENTS - Price of the course in cents
460
- */
461
- price: import_zod12.z.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0"),
462
- description: import_zod12.z.string().or(import_zod12.z.literal("")).optional(),
463
- /**
464
- * NYIG School locations
465
- */
466
- nyigSchool: import_zod12.z.nativeEnum(NYIGSchool),
467
- /**
468
- * Recommended level before taking this course
469
- */
470
- recLevel: import_zod12.z.string().or(import_zod12.z.literal("")).optional(),
471
- /**
472
- * Camp tuition for half-day option
473
- */
474
- halfCampTuition: import_zod12.z.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
475
- /**
476
- * Camp tuition for full-day option
477
- */
478
- fullCampTuition: import_zod12.z.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
479
- superadminOnly: import_zod12.z.boolean().optional()
480
- });
481
- var zCourse = addAutoProps(zBCourse);
482
-
483
496
  // src/interface/semester/season.ts
484
497
  var Season = /* @__PURE__ */ ((Season2) => {
485
498
  Season2["FALL"] = "fall";
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
@@ -72,7 +74,7 @@ var AttendState = /* @__PURE__ */ ((AttendState2) => {
72
74
  })(AttendState || {});
73
75
 
74
76
  // src/interface/tracking/attendance.ts
75
- import { z as z11 } from "zod";
77
+ import { z as z12 } from "zod";
76
78
 
77
79
  // src/interface/payment/tuition.ts
78
80
  import { z as z3 } from "zod";
@@ -194,8 +196,6 @@ var zUserProfile = addAutoProps(zBUserProfile);
194
196
  // src/interface/user/user.ts
195
197
  var zBUser = z7.object({
196
198
  name: z7.string().min(2).max(100),
197
- username: z7.string().optional(),
198
- password: z7.string().optional(),
199
199
  roles: zUserRoles.optional(),
200
200
  email: z7.string().max(100).email().or(z7.literal("")).optional(),
201
201
  address: z7.string().or(z7.literal("")).optional(),
@@ -228,30 +228,96 @@ var zBStudent = zBUser.extend({
228
228
  var zStudent = addAutoProps(zBStudent);
229
229
 
230
230
  // src/interface/user/teacher.ts
231
+ import { z as z10 } from "zod";
232
+
233
+ // src/interface/course/ageGroup.ts
234
+ var AgeGroup = /* @__PURE__ */ ((AgeGroup2) => {
235
+ AgeGroup2["ADULT"] = "Adult";
236
+ AgeGroup2["YOUTH"] = "Youth";
237
+ return AgeGroup2;
238
+ })(AgeGroup || {});
239
+
240
+ // src/interface/course/category.ts
241
+ var CourseCategory = /* @__PURE__ */ ((CourseCategory2) => {
242
+ CourseCategory2["GROUP"] = "group";
243
+ CourseCategory2["PRIVATE"] = "private";
244
+ CourseCategory2["SEMIPRIVATE"] = "semiprivate";
245
+ CourseCategory2["CAMP"] = "camp";
246
+ CourseCategory2["EVENT"] = "event";
247
+ return CourseCategory2;
248
+ })(CourseCategory || {});
249
+
250
+ // src/interface/course/school.ts
251
+ var NYIGSchool = /* @__PURE__ */ ((NYIGSchool2) => {
252
+ NYIGSchool2["MANHATTAN"] = "Manhattan";
253
+ NYIGSchool2["LITTLENECK"] = "Little Neck";
254
+ NYIGSchool2["ONLINE"] = "Online";
255
+ return NYIGSchool2;
256
+ })(NYIGSchool || {});
257
+
258
+ // src/interface/course/course.ts
231
259
  import { z as z9 } from "zod";
260
+ var zBCourse = z9.object({
261
+ name: z9.string(),
262
+ category: z9.nativeEnum(CourseCategory),
263
+ /**
264
+ * @unit SECONDS - Duration of the course in seconds
265
+ */
266
+ duration: z9.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"),
267
+ /**
268
+ * @unit CENTS - Price of the course in cents
269
+ */
270
+ price: z9.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0"),
271
+ description: z9.string().or(z9.literal("")).optional(),
272
+ /**
273
+ * NYIG School location
274
+ * @deprecated
275
+ */
276
+ nyigSchool: z9.nativeEnum(NYIGSchool).optional(),
277
+ /**
278
+ * NYIG School locations the course is offered at
279
+ */
280
+ schools: z9.array(z9.nativeEnum(NYIGSchool)).optional(),
281
+ /**
282
+ * Recommended level before taking this course
283
+ */
284
+ recLevel: z9.string().or(z9.literal("")).optional(),
285
+ /**
286
+ * Camp tuition for half-day option
287
+ */
288
+ halfCampTuition: z9.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
289
+ /**
290
+ * Camp tuition for full-day option
291
+ */
292
+ fullCampTuition: z9.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
293
+ superadminOnly: z9.boolean().optional()
294
+ });
295
+ var zCourse = addAutoProps(zBCourse);
296
+
297
+ // src/interface/user/teacher.ts
232
298
  var zBTeacher = zBUser.extend({
233
- rank: z9.nativeEnum(GoRank),
299
+ rank: z10.nativeEnum(GoRank),
234
300
  /**
235
301
  * Inactive teachers are not shown on public endpoints
236
302
  */
237
- isInactive: z9.boolean().optional(),
303
+ isInactive: z10.boolean().optional(),
238
304
  /**
239
305
  * If true, teacher is never available for booking
240
306
  */
241
- doesNotTeachPrivateLessons: z9.boolean().optional(),
307
+ doesNotTeachPrivateLessons: z10.boolean().optional(),
242
308
  /**
243
309
  * Teacher's position, e.g., instructor, president
244
310
  */
245
- title: z9.string().optional(),
311
+ title: z10.string().optional(),
246
312
  /**
247
313
  * Teacher's bio text describing experience
248
314
  * new lines will be rendered as paragraphs
249
315
  */
250
- bio: z9.string().optional(),
316
+ bio: z10.string().optional(),
251
317
  /**
252
318
  * Permanent URL of the image
253
319
  */
254
- imageUrl: z9.string().optional(),
320
+ imageUrl: z10.string().optional(),
255
321
  /** Format is illustrated below, where teacher is available
256
322
  * Mon 9-12am 3-6pm & Tue 10-12am 6-10pm
257
323
  * [
@@ -264,47 +330,52 @@ var zBTeacher = zBUser.extend({
264
330
  * [],
265
331
  * ]
266
332
  */
267
- available: z9.array(z9.array(z9.array(z9.number()))).optional()
333
+ available: z10.array(z10.array(z10.array(z10.number()))).optional(),
334
+ /**
335
+ * Schools the teacher is affiliated with
336
+ * Required for showing on the aurora "about" page
337
+ */
338
+ schools: z10.array(z10.nativeEnum(NYIGSchool)).min(1, "Teachers must be affiliated with at least one school")
268
339
  });
269
340
  var zTeacher = addAutoProps(zBTeacher);
270
- var zTeacherResponse = zTeacher.omit({ password: true, roles: true, editedBy: true, updatedAt: true, createdAt: true }).extend({
271
- role: z9.number().int()
341
+ var zTeacherResponse = zTeacher.omit({ roles: true, editedBy: true, updatedAt: true, createdAt: true }).extend({
342
+ role: z10.number().int()
272
343
  });
273
344
 
274
345
  // src/interface/user/auth.ts
275
- import { z as z10 } from "zod";
276
- var zCreateAdminAccountRequest = z10.object({
277
- _id: z10.string(),
278
- user: z10.string().min(3, "Username must be at least 3 characters"),
279
- pwd: z10.string().min(6)
346
+ import { z as z11 } from "zod";
347
+ var zCreateAdminAccountRequest = z11.object({
348
+ _id: z11.string(),
349
+ user: z11.string().min(3, "Username must be at least 3 characters"),
350
+ pwd: z11.string().min(6)
280
351
  });
281
- var zChangePasswordRequest = z10.object({
282
- prev: z10.string().min(6),
283
- next: z10.string().min(6)
352
+ var zChangePasswordRequest = z11.object({
353
+ prev: z11.string().min(6),
354
+ next: z11.string().min(6)
284
355
  });
285
- var zLoginRequest = z10.object({
286
- user: z10.string().min(3, "Username must be at least 3 characters"),
287
- pwd: z10.string().min(6)
356
+ var zLoginRequest = z11.object({
357
+ user: z11.string().min(3, "Username must be at least 3 characters"),
358
+ pwd: z11.string().min(6)
288
359
  });
289
- var zLoginResponse = z10.object({
290
- user: z10.string(),
291
- token: z10.string()
360
+ var zLoginResponse = z11.object({
361
+ user: z11.string(),
362
+ token: z11.string()
292
363
  });
293
364
 
294
365
  // src/interface/tracking/attendance.ts
295
- var zBAttendance = z11.object({
296
- student: z11.string(),
297
- states: z11.array(z11.nativeEnum(AttendState)),
366
+ var zBAttendance = z12.object({
367
+ student: z12.string(),
368
+ states: z12.array(z12.nativeEnum(AttendState)),
298
369
  /**
299
370
  * @deprecated This field is no longer used
300
371
  */
301
372
  tuition: zTuition.optional(),
302
- paid: z11.boolean().optional(),
303
- campOption: z11.nativeEnum(CampOption).optional()
373
+ paid: z12.boolean().optional(),
374
+ campOption: z12.nativeEnum(CampOption).optional()
304
375
  });
305
376
  var zAttendance = addAutoProps(zBAttendance);
306
377
  var zAttendanceRequest = zAttendance.extend({
307
- _id: z11.string().optional()
378
+ _id: z12.string().optional()
308
379
  });
309
380
  var zAttendanceResponse = zAttendance.extend({
310
381
  student: zStudent
@@ -313,64 +384,6 @@ var zAttendanceResponse = zAttendance.extend({
313
384
  // src/interface/tracking/campTracker.ts
314
385
  import { z as z14 } from "zod";
315
386
 
316
- // src/interface/course/ageGroup.ts
317
- var AgeGroup = /* @__PURE__ */ ((AgeGroup2) => {
318
- AgeGroup2["ADULT"] = "Adult";
319
- AgeGroup2["YOUTH"] = "Youth";
320
- return AgeGroup2;
321
- })(AgeGroup || {});
322
-
323
- // src/interface/course/category.ts
324
- var CourseCategory = /* @__PURE__ */ ((CourseCategory2) => {
325
- CourseCategory2["GROUP"] = "group";
326
- CourseCategory2["PRIVATE"] = "private";
327
- CourseCategory2["SEMIPRIVATE"] = "semiprivate";
328
- CourseCategory2["CAMP"] = "camp";
329
- CourseCategory2["EVENT"] = "event";
330
- return CourseCategory2;
331
- })(CourseCategory || {});
332
-
333
- // src/interface/course/school.ts
334
- var NYIGSchool = /* @__PURE__ */ ((NYIGSchool2) => {
335
- NYIGSchool2["MANHATTAN"] = "Manhattan";
336
- NYIGSchool2["LITTLENECK"] = "Little Neck";
337
- return NYIGSchool2;
338
- })(NYIGSchool || {});
339
-
340
- // src/interface/course/course.ts
341
- import { z as z12 } from "zod";
342
- var zBCourse = z12.object({
343
- name: z12.string(),
344
- category: z12.nativeEnum(CourseCategory),
345
- /**
346
- * @unit SECONDS - Duration of the course in seconds
347
- */
348
- duration: z12.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"),
349
- /**
350
- * @unit CENTS - Price of the course in cents
351
- */
352
- price: z12.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0"),
353
- description: z12.string().or(z12.literal("")).optional(),
354
- /**
355
- * NYIG School locations
356
- */
357
- nyigSchool: z12.nativeEnum(NYIGSchool),
358
- /**
359
- * Recommended level before taking this course
360
- */
361
- recLevel: z12.string().or(z12.literal("")).optional(),
362
- /**
363
- * Camp tuition for half-day option
364
- */
365
- halfCampTuition: z12.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
366
- /**
367
- * Camp tuition for full-day option
368
- */
369
- fullCampTuition: z12.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
370
- superadminOnly: z12.boolean().optional()
371
- });
372
- var zCourse = addAutoProps(zBCourse);
373
-
374
387
  // src/interface/semester/season.ts
375
388
  var Season = /* @__PURE__ */ ((Season2) => {
376
389
  Season2["FALL"] = "fall";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",