@nyig/models 0.2.45 → 0.3.0

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 +746 -554
  2. package/index.d.ts +746 -554
  3. package/index.js +255 -232
  4. package/index.mjs +253 -232
  5. package/package.json +1 -1
package/index.js CHANGED
@@ -28,9 +28,11 @@ __export(src_exports, {
28
28
  GoRank: () => GoRank,
29
29
  NYIGSchool: () => NYIGSchool,
30
30
  PaymentMethod: () => PaymentMethod,
31
+ Role: () => Role,
31
32
  Season: () => Season,
32
33
  TicketStatus: () => TicketStatus,
33
34
  zAttendance: () => zAttendance,
35
+ zAttendanceResponse: () => zAttendanceResponse,
34
36
  zBAttendance: () => zBAttendance,
35
37
  zBCampBooking: () => zBCampBooking,
36
38
  zBCampTracker: () => zBCampTracker,
@@ -133,7 +135,7 @@ var BookingType = /* @__PURE__ */ ((BookingType2) => {
133
135
  })(BookingType || {});
134
136
 
135
137
  // src/interface/booking/campBooking.ts
136
- var import_zod15 = require("zod");
138
+ var import_zod17 = require("zod");
137
139
 
138
140
  // src/interface/tracking/attendState.ts
139
141
  var AttendState = /* @__PURE__ */ ((AttendState2) => {
@@ -144,7 +146,7 @@ var AttendState = /* @__PURE__ */ ((AttendState2) => {
144
146
  })(AttendState || {});
145
147
 
146
148
  // src/interface/tracking/attendance.ts
147
- var import_zod5 = require("zod");
149
+ var import_zod9 = require("zod");
148
150
 
149
151
  // src/interface/payment/tuition.ts
150
152
  var import_zod3 = require("zod");
@@ -173,50 +175,6 @@ function addAutoProps(original) {
173
175
  });
174
176
  }
175
177
 
176
- // src/interface/tracking/attendance.ts
177
- var zBAttendance = import_zod5.z.object({
178
- student: import_zod5.z.string(),
179
- states: import_zod5.z.array(import_zod5.z.nativeEnum(AttendState)),
180
- tuition: zTuition,
181
- paid: import_zod5.z.boolean().optional(),
182
- campOption: import_zod5.z.nativeEnum(CampOption)
183
- });
184
- var zAttendance = addAutoProps(zBAttendance);
185
-
186
- // src/interface/tracking/campTracker.ts
187
- var import_zod6 = require("zod");
188
- var zBCampTracker = import_zod6.z.object({
189
- course: import_zod6.z.string(),
190
- teacher: import_zod6.z.string(),
191
- semester: import_zod6.z.string(),
192
- /**
193
- * occurrences are tracked by week for camps
194
- */
195
- occurrences: import_zod6.z.array(import_zod6.z.string()),
196
- /**
197
- * attendances are tracked by week for camps
198
- */
199
- attendances: import_zod6.z.array(import_zod6.z.string()),
200
- isNonPublic: import_zod6.z.boolean().optional(),
201
- notes: import_zod6.z.string().optional()
202
- });
203
- var zCampTracker = addAutoProps(zBCampTracker);
204
-
205
- // src/interface/tracking/classTracker.ts
206
- var import_zod11 = require("zod");
207
-
208
- // src/interface/payment/invoice.ts
209
- var import_zod9 = require("zod");
210
-
211
- // src/interface/payment/paymentMethod.ts
212
- var PaymentMethod = /* @__PURE__ */ ((PaymentMethod2) => {
213
- PaymentMethod2["CASH"] = "Cash";
214
- PaymentMethod2["CHECK"] = "Check";
215
- PaymentMethod2["VENMO"] = "Venmo";
216
- PaymentMethod2["ZELLE"] = "Zelle Transfer";
217
- return PaymentMethod2;
218
- })(PaymentMethod || {});
219
-
220
178
  // src/interface/user/goRank.ts
221
179
  var GoRank = /* @__PURE__ */ ((GoRank2) => {
222
180
  GoRank2["KYU1"] = "1k";
@@ -264,45 +222,65 @@ var GoRank = /* @__PURE__ */ ((GoRank2) => {
264
222
  })(GoRank || {});
265
223
 
266
224
  // src/interface/user/user.ts
267
- var import_zod7 = require("zod");
268
- var zBUser = import_zod7.z.object({
269
- name: import_zod7.z.string().min(2).max(100),
270
- username: import_zod7.z.string().optional(),
271
- password: import_zod7.z.string().optional(),
272
- roles: import_zod7.z.array(import_zod7.z.number().int()).optional(),
273
- email: import_zod7.z.string().max(100).email().or(import_zod7.z.literal("")).optional(),
274
- address: import_zod7.z.string().or(import_zod7.z.literal("")).optional(),
275
- country: import_zod7.z.string().length(2, {
225
+ var import_zod5 = require("zod");
226
+ var zBUser = import_zod5.z.object({
227
+ name: import_zod5.z.string().min(2).max(100),
228
+ username: import_zod5.z.string().optional(),
229
+ password: import_zod5.z.string().optional(),
230
+ roles: import_zod5.z.array(import_zod5.z.number().int()).optional(),
231
+ email: import_zod5.z.string().max(100).email().or(import_zod5.z.literal("")).optional(),
232
+ address: import_zod5.z.string().or(import_zod5.z.literal("")).optional(),
233
+ country: import_zod5.z.string().length(2, {
276
234
  message: "Enter the 2-letter country code"
277
- }).or(import_zod7.z.literal("")).optional(),
278
- phoneNumber: import_zod7.z.string().regex(/^\d{10}/, {
235
+ }).or(import_zod5.z.literal("")).optional(),
236
+ phoneNumber: import_zod5.z.string().regex(/^\d{10}/, {
279
237
  message: `Please enter a valid 10-digit US phone number with numbers only`
280
- }).or(import_zod7.z.literal("")).optional(),
281
- birthDate: import_zod7.z.string().regex(/^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/, {
238
+ }).or(import_zod5.z.literal("")).optional(),
239
+ birthDate: import_zod5.z.string().regex(/^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/, {
282
240
  message: "Enter a valid date in yyyy-mm-dd format"
283
- }).or(import_zod7.z.literal("")).optional()
241
+ }).or(import_zod5.z.literal("")).optional()
284
242
  });
285
243
  var zUser = addAutoProps(zBUser);
244
+
245
+ // src/interface/user/roles.ts
246
+ var import_zod6 = require("zod");
247
+ var Role = /* @__PURE__ */ ((Role2) => {
248
+ Role2[Role2["SUPERADMIN"] = 7926] = "SUPERADMIN";
249
+ Role2[Role2["ADMIN"] = 2023] = "ADMIN";
250
+ Role2[Role2["USER"] = 2014] = "USER";
251
+ return Role2;
252
+ })(Role || {});
253
+ var zUserRoles = import_zod6.z.object({
254
+ user: import_zod6.z.number().int(),
255
+ admin: import_zod6.z.number().int(),
256
+ superadmin: import_zod6.z.number().int()
257
+ });
258
+
259
+ // src/interface/user/student.ts
260
+ var import_zod7 = require("zod");
286
261
  var zBStudent = zBUser.extend({
287
262
  rank: import_zod7.z.nativeEnum(GoRank),
288
263
  guardian: import_zod7.z.string().optional()
289
264
  });
290
265
  var zStudent = addAutoProps(zBStudent);
266
+
267
+ // src/interface/user/teacher.ts
268
+ var import_zod8 = require("zod");
291
269
  var zBTeacher = zBUser.extend({
292
- rank: import_zod7.z.nativeEnum(GoRank),
270
+ rank: import_zod8.z.nativeEnum(GoRank),
293
271
  /**
294
272
  * Inactive teachers are not shown on public endpoints
295
273
  */
296
- isInactive: import_zod7.z.boolean().optional(),
274
+ isInactive: import_zod8.z.boolean().optional(),
297
275
  /**
298
276
  * Teacher's position, e.g., instructor, president
299
277
  */
300
- title: import_zod7.z.string().optional(),
278
+ title: import_zod8.z.string().optional(),
301
279
  /**
302
280
  * Teacher's bio text describing experience
303
281
  * new lines will be rendered as paragraphs
304
282
  */
305
- bio: import_zod7.z.string().optional(),
283
+ bio: import_zod8.z.string().optional(),
306
284
  /** Format is illustrated below, where teacher is available
307
285
  * Mon 9-12am 3-6pm & Tue 10-12am 6-10pm
308
286
  * [
@@ -315,66 +293,109 @@ var zBTeacher = zBUser.extend({
315
293
  * [],
316
294
  * ]
317
295
  */
318
- available: import_zod7.z.array(import_zod7.z.array(import_zod7.z.array(import_zod7.z.number()))).optional()
296
+ available: import_zod8.z.array(import_zod8.z.array(import_zod8.z.array(import_zod8.z.number()))).optional()
319
297
  });
320
298
  var zTeacher = addAutoProps(zBTeacher);
299
+ var zTeacherResponse = zTeacher.omit({ password: true, roles: true, editedBy: true, updatedAt: true, createdAt: true }).extend({
300
+ role: import_zod8.z.string()
301
+ });
321
302
 
322
- // src/interface/user/userRoles.ts
323
- var import_zod8 = require("zod");
324
- var zUserRoles = import_zod8.z.object({
325
- user: import_zod8.z.number().int(),
326
- admin: import_zod8.z.number().int(),
327
- superadmin: import_zod8.z.number().int()
303
+ // src/interface/tracking/attendance.ts
304
+ var zBAttendance = import_zod9.z.object({
305
+ student: import_zod9.z.string(),
306
+ states: import_zod9.z.array(import_zod9.z.nativeEnum(AttendState)),
307
+ tuition: zTuition,
308
+ paid: import_zod9.z.boolean().optional(),
309
+ campOption: import_zod9.z.nativeEnum(CampOption).optional()
310
+ });
311
+ var zAttendance = addAutoProps(zBAttendance);
312
+ var zAttendanceResponse = zAttendance.extend({
313
+ student: zStudent
328
314
  });
329
315
 
316
+ // src/interface/tracking/campTracker.ts
317
+ var import_zod10 = require("zod");
318
+ var zBCampTracker = import_zod10.z.object({
319
+ course: import_zod10.z.string(),
320
+ teacher: import_zod10.z.string(),
321
+ semester: import_zod10.z.string(),
322
+ /**
323
+ * occurrences are tracked by week for camps
324
+ */
325
+ occurrences: import_zod10.z.array(import_zod10.z.string()),
326
+ /**
327
+ * attendances are tracked by week for camps
328
+ */
329
+ attendances: import_zod10.z.array(import_zod10.z.string()),
330
+ publicDescription: import_zod10.z.string().optional(),
331
+ isNonPublic: import_zod10.z.boolean().optional(),
332
+ notes: import_zod10.z.string().optional()
333
+ });
334
+ var zCampTracker = addAutoProps(zBCampTracker);
335
+
336
+ // src/interface/tracking/classTracker.ts
337
+ var import_zod13 = require("zod");
338
+
339
+ // src/interface/payment/invoice.ts
340
+ var import_zod11 = require("zod");
341
+
342
+ // src/interface/payment/paymentMethod.ts
343
+ var PaymentMethod = /* @__PURE__ */ ((PaymentMethod2) => {
344
+ PaymentMethod2["CASH"] = "Cash";
345
+ PaymentMethod2["CHECK"] = "Check";
346
+ PaymentMethod2["VENMO"] = "Venmo";
347
+ PaymentMethod2["ZELLE"] = "Zelle Transfer";
348
+ return PaymentMethod2;
349
+ })(PaymentMethod || {});
350
+
330
351
  // src/interface/payment/invoice.ts
331
- var zDiscount = import_zod9.z.object({
332
- desc: import_zod9.z.string().min(1, "Discount description cannot be empty"),
333
- amount: import_zod9.z.coerce.number()
352
+ var zDiscount = import_zod11.z.object({
353
+ desc: import_zod11.z.string().min(1, "Discount description cannot be empty"),
354
+ amount: import_zod11.z.coerce.number()
334
355
  });
335
- var zInvoiceItem = import_zod9.z.object({
336
- course: import_zod9.z.string().min(1, "Course description cannot be empty"),
337
- price: import_zod9.z.coerce.number(),
338
- units: import_zod9.z.coerce.number()
356
+ var zInvoiceItem = import_zod11.z.object({
357
+ course: import_zod11.z.string().min(1, "Course description cannot be empty"),
358
+ price: import_zod11.z.coerce.number(),
359
+ units: import_zod11.z.coerce.number()
339
360
  });
340
- var zInvoicePackage = import_zod9.z.object({
341
- student: import_zod9.z.string(),
342
- items: import_zod9.z.array(zInvoiceItem).min(1, "Package must contain at least one item")
361
+ var zInvoicePackage = import_zod11.z.object({
362
+ student: import_zod11.z.string(),
363
+ items: import_zod11.z.array(zInvoiceItem).min(1, "Package must contain at least one item")
343
364
  });
344
365
  var zInvoicePackageResponse = zInvoicePackage.extend({
345
366
  student: zStudent
346
367
  });
347
- var zBInvoice = import_zod9.z.object({
348
- billTo: import_zod9.z.string().min(1, "The 'Bill To' field must not be empty"),
349
- packages: import_zod9.z.array(zInvoicePackage).min(1, "Invoice must include at least one package"),
350
- discounts: import_zod9.z.array(zDiscount),
351
- textbook: import_zod9.z.coerce.number().int().min(0).optional(),
352
- shipping: import_zod9.z.coerce.number().int().min(0).optional(),
353
- paid: import_zod9.z.nativeEnum(PaymentMethod).optional(),
354
- showEin: import_zod9.z.boolean().optional(),
355
- notes: import_zod9.z.string().or(import_zod9.z.literal("")).optional(),
356
- createdBy: import_zod9.z.string(),
357
- lastEditBy: import_zod9.z.string().optional()
368
+ var zBInvoice = import_zod11.z.object({
369
+ billTo: import_zod11.z.string().min(1, "The 'Bill To' field must not be empty"),
370
+ packages: import_zod11.z.array(zInvoicePackage).min(1, "Invoice must include at least one package"),
371
+ discounts: import_zod11.z.array(zDiscount),
372
+ textbook: import_zod11.z.coerce.number().int().min(0).optional(),
373
+ shipping: import_zod11.z.coerce.number().int().min(0).optional(),
374
+ paid: import_zod11.z.nativeEnum(PaymentMethod).optional(),
375
+ showEin: import_zod11.z.boolean().optional(),
376
+ notes: import_zod11.z.string().or(import_zod11.z.literal("")).optional(),
377
+ createdBy: import_zod11.z.string(),
378
+ lastEditBy: import_zod11.z.string().optional()
358
379
  });
359
380
  var zInvoice = addAutoProps(zBInvoice);
360
381
  var zInvoiceResponse = zInvoice.extend({
361
382
  createdBy: zTeacher,
362
383
  lastEditBy: zTeacher.optional(),
363
- packages: import_zod9.z.array(zInvoicePackageResponse)
384
+ packages: import_zod11.z.array(zInvoicePackageResponse)
364
385
  });
365
386
 
366
387
  // src/interface/payment/teacherPayment.ts
367
- var import_zod10 = require("zod");
368
- var zTeacherPaymentRow = import_zod10.z.object({
369
- course: import_zod10.z.string().min(1, "select or enter a course"),
370
- length: import_zod10.z.coerce.number().gt(0, "must be > 0"),
371
- count: import_zod10.z.coerce.number().int().gt(0, "must be > 0"),
372
- wage: import_zod10.z.coerce.number().gt(0, "wage must be > 0")
388
+ var import_zod12 = require("zod");
389
+ var zTeacherPaymentRow = import_zod12.z.object({
390
+ course: import_zod12.z.string().min(1, "select or enter a course"),
391
+ length: import_zod12.z.coerce.number().gt(0, "must be > 0"),
392
+ count: import_zod12.z.coerce.number().int().gt(0, "must be > 0"),
393
+ wage: import_zod12.z.coerce.number().gt(0, "wage must be > 0")
373
394
  });
374
- var zBTeacherPayment = import_zod10.z.object({
375
- teacher: import_zod10.z.string().min(1, "select or enter a teacher"),
376
- rows: import_zod10.z.array(zTeacherPaymentRow),
377
- paid: import_zod10.z.boolean().optional()
395
+ var zBTeacherPayment = import_zod12.z.object({
396
+ teacher: import_zod12.z.string().min(1, "select or enter a teacher"),
397
+ rows: import_zod12.z.array(zTeacherPaymentRow),
398
+ paid: import_zod12.z.boolean().optional()
378
399
  });
379
400
  var zTeacherPayment = addAutoProps(zBTeacherPayment);
380
401
  var zTeacherPaymentResponse = zTeacherPayment.extend({
@@ -382,32 +403,32 @@ var zTeacherPaymentResponse = zTeacherPayment.extend({
382
403
  });
383
404
 
384
405
  // src/interface/tracking/classTracker.ts
385
- var zBClassTracker = import_zod11.z.object({
386
- course: import_zod11.z.string(),
387
- teacher: import_zod11.z.string(),
388
- student: import_zod11.z.string(),
389
- classTimes: import_zod11.z.array(import_zod11.z.coerce.date()),
390
- completedList: import_zod11.z.array(import_zod11.z.boolean()),
406
+ var zBClassTracker = import_zod13.z.object({
407
+ course: import_zod13.z.string(),
408
+ teacher: import_zod13.z.string(),
409
+ student: import_zod13.z.string(),
410
+ classTimes: import_zod13.z.array(import_zod13.z.coerce.date()),
411
+ completedList: import_zod13.z.array(import_zod13.z.boolean()),
391
412
  /**
392
413
  * Virtual mongoose field when all values in completedList is true
393
414
  */
394
- completed: import_zod11.z.boolean().optional(),
415
+ completed: import_zod13.z.boolean().optional(),
395
416
  tuition: zTuition.optional(),
396
- paid: import_zod11.z.boolean().optional(),
397
- paused: import_zod11.z.boolean().optional(),
398
- notes: import_zod11.z.string().optional()
417
+ paid: import_zod13.z.boolean().optional(),
418
+ paused: import_zod13.z.boolean().optional(),
419
+ notes: import_zod13.z.string().optional()
399
420
  });
400
421
  var zClassTracker = addAutoProps(zBClassTracker);
401
422
 
402
423
  // src/interface/tracking/groupTracker.ts
403
- var import_zod14 = require("zod");
424
+ var import_zod16 = require("zod");
404
425
 
405
426
  // src/interface/tracking/scheduleData.ts
406
- var import_zod12 = require("zod");
407
- var zScheduleData = import_zod12.z.object({
408
- startTime: import_zod12.z.string(),
427
+ var import_zod14 = require("zod");
428
+ var zScheduleData = import_zod14.z.object({
429
+ startTime: import_zod14.z.string(),
409
430
  // String in 24 hour "HH:mm" format
410
- dayOfWeek: import_zod12.z.number().int().min(0).max(6)
431
+ dayOfWeek: import_zod14.z.number().int().min(0).max(6)
411
432
  // integeters in 0 - 6
412
433
  });
413
434
 
@@ -436,126 +457,126 @@ var NYIGSchool = /* @__PURE__ */ ((NYIGSchool2) => {
436
457
  })(NYIGSchool || {});
437
458
 
438
459
  // src/interface/course/course.ts
439
- var import_zod13 = require("zod");
440
- var zBCourse = import_zod13.z.object({
441
- name: import_zod13.z.string(),
442
- category: import_zod13.z.nativeEnum(CourseCategory),
460
+ var import_zod15 = require("zod");
461
+ var zBCourse = import_zod15.z.object({
462
+ name: import_zod15.z.string(),
463
+ category: import_zod15.z.nativeEnum(CourseCategory),
443
464
  /**
444
465
  * @unit SECONDS - Duration of the course in seconds
445
466
  */
446
- duration: import_zod13.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"),
467
+ duration: import_zod15.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"),
447
468
  /**
448
469
  * @unit CENTS - Price of the course in cents
449
470
  */
450
- price: import_zod13.z.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0"),
451
- description: import_zod13.z.string().or(import_zod13.z.literal("")).optional(),
471
+ price: import_zod15.z.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0"),
472
+ description: import_zod15.z.string().or(import_zod15.z.literal("")).optional(),
452
473
  /**
453
474
  * NYIG School locations
454
475
  */
455
- nyigSchool: import_zod13.z.nativeEnum(NYIGSchool),
476
+ nyigSchool: import_zod15.z.nativeEnum(NYIGSchool),
456
477
  /**
457
478
  * Recommended level before taking this course
458
479
  */
459
- recLevel: import_zod13.z.string().or(import_zod13.z.literal("")).optional(),
480
+ recLevel: import_zod15.z.string().or(import_zod15.z.literal("")).optional(),
460
481
  /**
461
482
  * Camp tuition for half-day option
462
483
  */
463
- halfCampTuition: import_zod13.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(),
484
+ halfCampTuition: import_zod15.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(),
464
485
  /**
465
486
  * Camp tuition for full-day option
466
487
  */
467
- fullCampTuition: import_zod13.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()
488
+ fullCampTuition: import_zod15.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()
468
489
  });
469
490
  var zCourse = addAutoProps(zBCourse);
470
491
 
471
492
  // src/interface/tracking/groupTracker.ts
472
- var zBGroupTracker = import_zod14.z.object({
473
- course: import_zod14.z.string(),
474
- teacher: import_zod14.z.string(),
475
- semester: import_zod14.z.string(),
493
+ var zBGroupTracker = import_zod16.z.object({
494
+ course: import_zod16.z.string(),
495
+ teacher: import_zod16.z.string(),
496
+ semester: import_zod16.z.string(),
476
497
  scheduleData: zScheduleData,
477
498
  /**
478
499
  * occurrences are tracked by week for Groups
479
500
  */
480
- occurrences: import_zod14.z.array(import_zod14.z.coerce.date()),
501
+ occurrences: import_zod16.z.array(import_zod16.z.coerce.date()),
481
502
  /**
482
503
  * attendances are tracked by week for Groups
483
504
  */
484
- attendances: import_zod14.z.array(import_zod14.z.string()),
505
+ attendances: import_zod16.z.array(import_zod16.z.string()),
485
506
  /**
486
507
  * public-facing ID of the course instance, e.g., 101
487
508
  */
488
- courseId: import_zod14.z.string().optional(),
509
+ courseId: import_zod16.z.string().optional(),
489
510
  /**
490
511
  * Age group of the class instance, e.g. "adult", "youth"
491
512
  */
492
- ageGroup: import_zod14.z.nativeEnum(AgeGroup).optional(),
513
+ ageGroup: import_zod16.z.nativeEnum(AgeGroup).optional(),
493
514
  /**
494
515
  * If true, the course is hidden from public view
495
516
  */
496
- isNonPublic: import_zod14.z.boolean().optional(),
497
- notes: import_zod14.z.string().optional()
517
+ isNonPublic: import_zod16.z.boolean().optional(),
518
+ notes: import_zod16.z.string().optional()
498
519
  });
499
520
  var zGroupTracker = addAutoProps(zBGroupTracker);
500
521
 
501
522
  // src/interface/booking/campBooking.ts
502
- var zBCampBooking = import_zod15.z.object({
503
- ctId: import_zod15.z.string().optional(),
504
- isOnline: import_zod15.z.boolean(),
505
- classDates: import_zod15.z.string(),
506
- campOption: import_zod15.z.nativeEnum(CampOption),
507
- shipping: import_zod15.z.boolean().optional()
523
+ var zBCampBooking = import_zod17.z.object({
524
+ ctId: import_zod17.z.string().optional(),
525
+ isOnline: import_zod17.z.boolean(),
526
+ classDates: import_zod17.z.string(),
527
+ campOption: import_zod17.z.nativeEnum(CampOption),
528
+ shipping: import_zod17.z.boolean().optional()
508
529
  }).merge(zBUserInfo).merge(zBPaymentInfo);
509
530
  var zCampBooking = addAutoProps(zBCampBooking);
510
531
 
511
532
  // src/interface/booking/groupBooking.ts
512
- var import_zod16 = require("zod");
513
- var zBGroupBooking = import_zod16.z.object({
514
- gtId: import_zod16.z.string().optional(),
515
- isTrial: import_zod16.z.boolean().optional(),
516
- isOnline: import_zod16.z.boolean(),
517
- classDate: import_zod16.z.string().optional(),
518
- shipping: import_zod16.z.boolean().optional()
533
+ var import_zod18 = require("zod");
534
+ var zBGroupBooking = import_zod18.z.object({
535
+ gtId: import_zod18.z.string().optional(),
536
+ isTrial: import_zod18.z.boolean().optional(),
537
+ isOnline: import_zod18.z.boolean(),
538
+ classDate: import_zod18.z.string().optional(),
539
+ shipping: import_zod18.z.boolean().optional()
519
540
  }).merge(zBUserInfo).merge(zBPaymentInfo);
520
541
  var zGroupBooking = addAutoProps(zBGroupBooking);
521
542
 
522
543
  // src/interface/booking/privateBooking.ts
523
- var import_zod17 = require("zod");
524
- var zBPrivateBooking = import_zod17.z.object({
525
- courseId: import_zod17.z.string(),
526
- teacherId: import_zod17.z.string(),
527
- classDate: import_zod17.z.string().optional()
544
+ var import_zod19 = require("zod");
545
+ var zBPrivateBooking = import_zod19.z.object({
546
+ courseId: import_zod19.z.string(),
547
+ teacherId: import_zod19.z.string(),
548
+ classDate: import_zod19.z.string().optional()
528
549
  }).merge(zBUserInfo).merge(zBPaymentInfo);
529
550
  var zPrivateBooking = addAutoProps(zBPrivateBooking);
530
551
 
531
552
  // src/interface/public/aurora.ts
532
- var import_zod18 = require("zod");
533
- var zTeacherDisplay = import_zod18.z.object({
534
- name: import_zod18.z.string(),
535
- email: import_zod18.z.string().email(),
536
- title: import_zod18.z.string(),
537
- imageUrl: import_zod18.z.string(),
538
- bio: import_zod18.z.string()
539
- });
540
- var zCourseTable = import_zod18.z.object({
541
- id: import_zod18.z.string(),
542
- name: import_zod18.z.string(),
543
- duration: import_zod18.z.number(),
544
- dateAndTime: import_zod18.z.string(),
545
- recommendedLevel: import_zod18.z.string(),
546
- tuition: import_zod18.z.string()
553
+ var import_zod20 = require("zod");
554
+ var zTeacherDisplay = import_zod20.z.object({
555
+ name: import_zod20.z.string(),
556
+ email: import_zod20.z.string().email(),
557
+ title: import_zod20.z.string(),
558
+ imageUrl: import_zod20.z.string(),
559
+ bio: import_zod20.z.string()
560
+ });
561
+ var zCourseTable = import_zod20.z.object({
562
+ id: import_zod20.z.string(),
563
+ name: import_zod20.z.string(),
564
+ duration: import_zod20.z.number(),
565
+ dateAndTime: import_zod20.z.string(),
566
+ recommendedLevel: import_zod20.z.string(),
567
+ tuition: import_zod20.z.string()
547
568
  });
548
569
 
549
570
  // src/interface/public/imageDef.ts
550
- var import_zod19 = require("zod");
551
- var zImageDef = import_zod19.z.object({
552
- url: import_zod19.z.string(),
553
- height: import_zod19.z.number(),
554
- width: import_zod19.z.number()
571
+ var import_zod21 = require("zod");
572
+ var zImageDef = import_zod21.z.object({
573
+ url: import_zod21.z.string(),
574
+ height: import_zod21.z.number(),
575
+ width: import_zod21.z.number()
555
576
  });
556
577
 
557
578
  // src/interface/reporting/reportTicket.ts
558
- var import_zod20 = require("zod");
579
+ var import_zod22 = require("zod");
559
580
 
560
581
  // src/interface/reporting/ticketStatus.ts
561
582
  var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
@@ -567,12 +588,12 @@ var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
567
588
  })(TicketStatus || {});
568
589
 
569
590
  // src/interface/reporting/reportTicket.ts
570
- var zBReportTicket = import_zod20.z.object({
571
- requester: import_zod20.z.string(),
572
- resolver: import_zod20.z.string().optional(),
573
- status: import_zod20.z.nativeEnum(TicketStatus),
574
- title: import_zod20.z.string(),
575
- description: import_zod20.z.string()
591
+ var zBReportTicket = import_zod22.z.object({
592
+ requester: import_zod22.z.string(),
593
+ resolver: import_zod22.z.string().optional(),
594
+ status: import_zod22.z.nativeEnum(TicketStatus),
595
+ title: import_zod22.z.string(),
596
+ description: import_zod22.z.string()
576
597
  });
577
598
  var zReportTicket = addAutoProps(zBReportTicket);
578
599
  var zReportTicketResponse = zReportTicket.extend({
@@ -589,96 +610,96 @@ var Season = /* @__PURE__ */ ((Season2) => {
589
610
  })(Season || {});
590
611
 
591
612
  // src/interface/semester/semester.ts
592
- var import_zod21 = require("zod");
593
- var zBSemester = import_zod21.z.object({
594
- season: import_zod21.z.nativeEnum(Season),
595
- year: import_zod21.z.number().min(2022).max(2999),
596
- startDate: import_zod21.z.coerce.date(),
597
- endDate: import_zod21.z.coerce.date(),
613
+ var import_zod23 = require("zod");
614
+ var zBSemester = import_zod23.z.object({
615
+ season: import_zod23.z.nativeEnum(Season),
616
+ year: import_zod23.z.number().min(2022).max(2999),
617
+ startDate: import_zod23.z.coerce.date(),
618
+ endDate: import_zod23.z.coerce.date(),
598
619
  /**
599
620
  * Format: start, end, start, end, ...
600
621
  */
601
- blackoutDates: import_zod21.z.array(import_zod21.z.coerce.date()),
622
+ blackoutDates: import_zod23.z.array(import_zod23.z.coerce.date()),
602
623
  /**
603
624
  * List of names of some break: date range
604
625
  */
605
- importantDates: import_zod21.z.array(import_zod21.z.string())
626
+ importantDates: import_zod23.z.array(import_zod23.z.string())
606
627
  });
607
628
  var zSemester = addAutoProps(zBSemester);
608
629
 
609
630
  // src/interface/event/eConfig.ts
610
- var import_zod24 = require("zod");
631
+ var import_zod26 = require("zod");
611
632
 
612
633
  // src/interface/event/eTicket.ts
613
- var import_zod22 = require("zod");
614
- var zBEventTicket = import_zod22.z.object({
615
- name: import_zod22.z.string().min(5, "Name must be at least 5 characters"),
634
+ var import_zod24 = require("zod");
635
+ var zBEventTicket = import_zod24.z.object({
636
+ name: import_zod24.z.string().min(5, "Name must be at least 5 characters"),
616
637
  /**
617
638
  * Price in cents
618
639
  */
619
- price: import_zod22.z.number().min(1, "Price must be at least $1"),
640
+ price: import_zod24.z.number().min(1, "Price must be at least $1"),
620
641
  /**
621
642
  * @optional description of the ticket
622
643
  */
623
- description: import_zod22.z.string().optional(),
644
+ description: import_zod24.z.string().optional(),
624
645
  /**
625
646
  * @optional The ticket cannot be purchased if true
626
647
  */
627
- isNotBuyable: import_zod22.z.boolean().optional(),
648
+ isNotBuyable: import_zod24.z.boolean().optional(),
628
649
  /**
629
650
  * @optional If date is provided and in the past, ticket cannot be purchased
630
651
  */
631
- lastBuyableDate: import_zod22.z.coerce.date().optional()
652
+ lastBuyableDate: import_zod24.z.coerce.date().optional()
632
653
  });
633
654
  var zEventTicket = addAutoProps(zBEventTicket);
634
655
 
635
656
  // src/interface/event/table.ts
636
- var import_zod23 = require("zod");
637
- var zTable = import_zod23.z.array(import_zod23.z.record(import_zod23.z.string(), import_zod23.z.string()));
638
- var zDetailsTable = import_zod23.z.object({
639
- fields: import_zod23.z.array(import_zod23.z.string()).length(2),
657
+ var import_zod25 = require("zod");
658
+ var zTable = import_zod25.z.array(import_zod25.z.record(import_zod25.z.string(), import_zod25.z.string()));
659
+ var zDetailsTable = import_zod25.z.object({
660
+ fields: import_zod25.z.array(import_zod25.z.string()).length(2),
640
661
  data: zTable
641
662
  });
642
- var zScheduleTable = import_zod23.z.object({
643
- fields: import_zod23.z.array(import_zod23.z.string()).length(2),
644
- data: import_zod23.z.record(import_zod23.z.string(), zTable)
663
+ var zScheduleTable = import_zod25.z.object({
664
+ fields: import_zod25.z.array(import_zod25.z.string()).length(2),
665
+ data: import_zod25.z.record(import_zod25.z.string(), zTable)
645
666
  });
646
667
 
647
668
  // src/interface/event/eConfig.ts
648
- var zBEventConfig = import_zod24.z.object({
669
+ var zBEventConfig = import_zod26.z.object({
649
670
  /**
650
671
  * Location of the event
651
672
  */
652
- location: import_zod24.z.string().optional(),
673
+ location: import_zod26.z.string().optional(),
653
674
  /**
654
675
  * URL of the tournament on the official website
655
676
  * Must be a valid URL link
656
677
  */
657
- url: import_zod24.z.string(),
678
+ url: import_zod26.z.string(),
658
679
  /**
659
680
  * Full name of the tournament
660
681
  */
661
- title: import_zod24.z.string(),
682
+ title: import_zod26.z.string(),
662
683
  /**
663
684
  * Abbreviated title of the tournament
664
685
  */
665
- shortTitle: import_zod24.z.string(),
686
+ shortTitle: import_zod26.z.string(),
666
687
  /**
667
688
  * Tournament start date and time
668
689
  */
669
- tStart: import_zod24.z.coerce.date(),
690
+ tStart: import_zod26.z.coerce.date(),
670
691
  /**
671
692
  * Tournament end date and time
672
693
  */
673
- tEnd: import_zod24.z.coerce.date(),
694
+ tEnd: import_zod26.z.coerce.date(),
674
695
  /**
675
696
  * Short description for tournament card
676
697
  */
677
- shortDescription: import_zod24.z.string(),
698
+ shortDescription: import_zod26.z.string(),
678
699
  /**
679
700
  * Full description
680
701
  */
681
- description: import_zod24.z.string(),
702
+ description: import_zod26.z.string(),
682
703
  /**
683
704
  * Defines the tournament details table with 2 columns
684
705
  * typically Time and Event
@@ -692,15 +713,15 @@ var zBEventConfig = import_zod24.z.object({
692
713
  /**
693
714
  * List of ticket object IDs for this tournament
694
715
  */
695
- tickets: import_zod24.z.array(import_zod24.z.string()),
716
+ tickets: import_zod26.z.array(import_zod26.z.string()),
696
717
  /**
697
718
  * If false, the tournament registration is closed
698
719
  */
699
- canRegister: import_zod24.z.boolean(),
720
+ canRegister: import_zod26.z.boolean(),
700
721
  /**
701
722
  * If true, free form donation amounts are disabled.
702
723
  */
703
- donationsDisabled: import_zod24.z.boolean().optional(),
724
+ donationsDisabled: import_zod26.z.boolean().optional(),
704
725
  /**
705
726
  * Defines URL, height, width of the image
706
727
  */
@@ -708,42 +729,42 @@ var zBEventConfig = import_zod24.z.object({
708
729
  });
709
730
  var zEventConfig = addAutoProps(zBEventConfig);
710
731
  var zEventConfigResponse = zEventConfig.extend({
711
- tickets: import_zod24.z.array(zEventTicket)
732
+ tickets: import_zod26.z.array(zEventTicket)
712
733
  });
713
734
 
714
735
  // src/interface/event/eReg.ts
715
- var import_zod26 = require("zod");
736
+ var import_zod28 = require("zod");
716
737
 
717
738
  // src/interface/event/eTicketReg.ts
718
- var import_zod25 = require("zod");
719
- var zEventTicketReg = import_zod25.z.object({
720
- ticket: import_zod25.z.string(),
739
+ var import_zod27 = require("zod");
740
+ var zEventTicketReg = import_zod27.z.object({
741
+ ticket: import_zod27.z.string(),
721
742
  /**
722
743
  * integer minimum 1, otherwise no ticket is being bought
723
744
  */
724
- amount: import_zod25.z.number().int().min(1)
745
+ amount: import_zod27.z.number().int().min(1)
725
746
  });
726
747
  var zEventTicketRegResponse = zEventTicketReg.extend({
727
748
  ticket: zEventTicket
728
749
  });
729
750
 
730
751
  // src/interface/event/eReg.ts
731
- var zBEventReg = import_zod26.z.object({
732
- agaId: import_zod26.z.string(),
733
- tournamentId: import_zod26.z.string(),
734
- tickets: import_zod26.z.array(zEventTicketReg),
752
+ var zBEventReg = import_zod28.z.object({
753
+ agaId: import_zod28.z.string(),
754
+ tournamentId: import_zod28.z.string(),
755
+ tickets: import_zod28.z.array(zEventTicketReg),
735
756
  /**
736
757
  * @units CENTS - Donation in cents
737
758
  */
738
- donation: import_zod26.z.coerce.number().optional(),
759
+ donation: import_zod28.z.coerce.number().optional(),
739
760
  /**
740
761
  * How the registration was created, through public endpoint or admin
741
762
  */
742
- createMethod: import_zod26.z.string().optional()
763
+ createMethod: import_zod28.z.string().optional()
743
764
  }).merge(zBUserInfo).merge(zBPaymentInfo);
744
765
  var zEventReg = addAutoProps(zBEventReg);
745
766
  var zEventRegResponse = zEventReg.extend({
746
- tickets: import_zod26.z.array(zEventTicketRegResponse)
767
+ tickets: import_zod28.z.array(zEventTicketRegResponse)
747
768
  });
748
769
  // Annotate the CommonJS export names for ESM import in node:
749
770
  0 && (module.exports = {
@@ -755,9 +776,11 @@ var zEventRegResponse = zEventReg.extend({
755
776
  GoRank,
756
777
  NYIGSchool,
757
778
  PaymentMethod,
779
+ Role,
758
780
  Season,
759
781
  TicketStatus,
760
782
  zAttendance,
783
+ zAttendanceResponse,
761
784
  zBAttendance,
762
785
  zBCampBooking,
763
786
  zBCampTracker,