@nyig/models 0.2.46 → 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 +74 -20
  2. package/index.d.ts +74 -20
  3. package/index.js +211 -194
  4. package/index.mjs +210 -194
  5. package/package.json +1 -1
package/index.mjs CHANGED
@@ -40,7 +40,7 @@ var BookingType = /* @__PURE__ */ ((BookingType2) => {
40
40
  })(BookingType || {});
41
41
 
42
42
  // src/interface/booking/campBooking.ts
43
- import { z as z15 } from "zod";
43
+ import { z as z17 } from "zod";
44
44
 
45
45
  // src/interface/tracking/attendState.ts
46
46
  var AttendState = /* @__PURE__ */ ((AttendState2) => {
@@ -51,7 +51,7 @@ var AttendState = /* @__PURE__ */ ((AttendState2) => {
51
51
  })(AttendState || {});
52
52
 
53
53
  // src/interface/tracking/attendance.ts
54
- import { z as z7 } from "zod";
54
+ import { z as z9 } from "zod";
55
55
 
56
56
  // src/interface/payment/tuition.ts
57
57
  import { z as z3 } from "zod";
@@ -146,26 +146,46 @@ var zBUser = z5.object({
146
146
  }).or(z5.literal("")).optional()
147
147
  });
148
148
  var zUser = addAutoProps(zBUser);
149
+
150
+ // src/interface/user/roles.ts
151
+ import { z as z6 } from "zod";
152
+ var Role = /* @__PURE__ */ ((Role2) => {
153
+ Role2[Role2["SUPERADMIN"] = 7926] = "SUPERADMIN";
154
+ Role2[Role2["ADMIN"] = 2023] = "ADMIN";
155
+ Role2[Role2["USER"] = 2014] = "USER";
156
+ return Role2;
157
+ })(Role || {});
158
+ var zUserRoles = z6.object({
159
+ user: z6.number().int(),
160
+ admin: z6.number().int(),
161
+ superadmin: z6.number().int()
162
+ });
163
+
164
+ // src/interface/user/student.ts
165
+ import { z as z7 } from "zod";
149
166
  var zBStudent = zBUser.extend({
150
- rank: z5.nativeEnum(GoRank),
151
- guardian: z5.string().optional()
167
+ rank: z7.nativeEnum(GoRank),
168
+ guardian: z7.string().optional()
152
169
  });
153
170
  var zStudent = addAutoProps(zBStudent);
171
+
172
+ // src/interface/user/teacher.ts
173
+ import { z as z8 } from "zod";
154
174
  var zBTeacher = zBUser.extend({
155
- rank: z5.nativeEnum(GoRank),
175
+ rank: z8.nativeEnum(GoRank),
156
176
  /**
157
177
  * Inactive teachers are not shown on public endpoints
158
178
  */
159
- isInactive: z5.boolean().optional(),
179
+ isInactive: z8.boolean().optional(),
160
180
  /**
161
181
  * Teacher's position, e.g., instructor, president
162
182
  */
163
- title: z5.string().optional(),
183
+ title: z8.string().optional(),
164
184
  /**
165
185
  * Teacher's bio text describing experience
166
186
  * new lines will be rendered as paragraphs
167
187
  */
168
- bio: z5.string().optional(),
188
+ bio: z8.string().optional(),
169
189
  /** Format is illustrated below, where teacher is available
170
190
  * Mon 9-12am 3-6pm & Tue 10-12am 6-10pm
171
191
  * [
@@ -178,25 +198,20 @@ var zBTeacher = zBUser.extend({
178
198
  * [],
179
199
  * ]
180
200
  */
181
- available: z5.array(z5.array(z5.array(z5.number()))).optional()
201
+ available: z8.array(z8.array(z8.array(z8.number()))).optional()
182
202
  });
183
203
  var zTeacher = addAutoProps(zBTeacher);
184
-
185
- // src/interface/user/userRoles.ts
186
- import { z as z6 } from "zod";
187
- var zUserRoles = z6.object({
188
- user: z6.number().int(),
189
- admin: z6.number().int(),
190
- superadmin: z6.number().int()
204
+ var zTeacherResponse = zTeacher.omit({ password: true, roles: true, editedBy: true, updatedAt: true, createdAt: true }).extend({
205
+ role: z8.string()
191
206
  });
192
207
 
193
208
  // src/interface/tracking/attendance.ts
194
- var zBAttendance = z7.object({
195
- student: z7.string(),
196
- states: z7.array(z7.nativeEnum(AttendState)),
209
+ var zBAttendance = z9.object({
210
+ student: z9.string(),
211
+ states: z9.array(z9.nativeEnum(AttendState)),
197
212
  tuition: zTuition,
198
- paid: z7.boolean().optional(),
199
- campOption: z7.nativeEnum(CampOption).optional()
213
+ paid: z9.boolean().optional(),
214
+ campOption: z9.nativeEnum(CampOption).optional()
200
215
  });
201
216
  var zAttendance = addAutoProps(zBAttendance);
202
217
  var zAttendanceResponse = zAttendance.extend({
@@ -204,30 +219,30 @@ var zAttendanceResponse = zAttendance.extend({
204
219
  });
205
220
 
206
221
  // src/interface/tracking/campTracker.ts
207
- import { z as z8 } from "zod";
208
- var zBCampTracker = z8.object({
209
- course: z8.string(),
210
- teacher: z8.string(),
211
- semester: z8.string(),
222
+ import { z as z10 } from "zod";
223
+ var zBCampTracker = z10.object({
224
+ course: z10.string(),
225
+ teacher: z10.string(),
226
+ semester: z10.string(),
212
227
  /**
213
228
  * occurrences are tracked by week for camps
214
229
  */
215
- occurrences: z8.array(z8.string()),
230
+ occurrences: z10.array(z10.string()),
216
231
  /**
217
232
  * attendances are tracked by week for camps
218
233
  */
219
- attendances: z8.array(z8.string()),
220
- publicDescription: z8.string().optional(),
221
- isNonPublic: z8.boolean().optional(),
222
- notes: z8.string().optional()
234
+ attendances: z10.array(z10.string()),
235
+ publicDescription: z10.string().optional(),
236
+ isNonPublic: z10.boolean().optional(),
237
+ notes: z10.string().optional()
223
238
  });
224
239
  var zCampTracker = addAutoProps(zBCampTracker);
225
240
 
226
241
  // src/interface/tracking/classTracker.ts
227
- import { z as z11 } from "zod";
242
+ import { z as z13 } from "zod";
228
243
 
229
244
  // src/interface/payment/invoice.ts
230
- import { z as z9 } from "zod";
245
+ import { z as z11 } from "zod";
231
246
 
232
247
  // src/interface/payment/paymentMethod.ts
233
248
  var PaymentMethod = /* @__PURE__ */ ((PaymentMethod2) => {
@@ -239,53 +254,53 @@ var PaymentMethod = /* @__PURE__ */ ((PaymentMethod2) => {
239
254
  })(PaymentMethod || {});
240
255
 
241
256
  // src/interface/payment/invoice.ts
242
- var zDiscount = z9.object({
243
- desc: z9.string().min(1, "Discount description cannot be empty"),
244
- amount: z9.coerce.number()
257
+ var zDiscount = z11.object({
258
+ desc: z11.string().min(1, "Discount description cannot be empty"),
259
+ amount: z11.coerce.number()
245
260
  });
246
- var zInvoiceItem = z9.object({
247
- course: z9.string().min(1, "Course description cannot be empty"),
248
- price: z9.coerce.number(),
249
- units: z9.coerce.number()
261
+ var zInvoiceItem = z11.object({
262
+ course: z11.string().min(1, "Course description cannot be empty"),
263
+ price: z11.coerce.number(),
264
+ units: z11.coerce.number()
250
265
  });
251
- var zInvoicePackage = z9.object({
252
- student: z9.string(),
253
- items: z9.array(zInvoiceItem).min(1, "Package must contain at least one item")
266
+ var zInvoicePackage = z11.object({
267
+ student: z11.string(),
268
+ items: z11.array(zInvoiceItem).min(1, "Package must contain at least one item")
254
269
  });
255
270
  var zInvoicePackageResponse = zInvoicePackage.extend({
256
271
  student: zStudent
257
272
  });
258
- var zBInvoice = z9.object({
259
- billTo: z9.string().min(1, "The 'Bill To' field must not be empty"),
260
- packages: z9.array(zInvoicePackage).min(1, "Invoice must include at least one package"),
261
- discounts: z9.array(zDiscount),
262
- textbook: z9.coerce.number().int().min(0).optional(),
263
- shipping: z9.coerce.number().int().min(0).optional(),
264
- paid: z9.nativeEnum(PaymentMethod).optional(),
265
- showEin: z9.boolean().optional(),
266
- notes: z9.string().or(z9.literal("")).optional(),
267
- createdBy: z9.string(),
268
- lastEditBy: z9.string().optional()
273
+ var zBInvoice = z11.object({
274
+ billTo: z11.string().min(1, "The 'Bill To' field must not be empty"),
275
+ packages: z11.array(zInvoicePackage).min(1, "Invoice must include at least one package"),
276
+ discounts: z11.array(zDiscount),
277
+ textbook: z11.coerce.number().int().min(0).optional(),
278
+ shipping: z11.coerce.number().int().min(0).optional(),
279
+ paid: z11.nativeEnum(PaymentMethod).optional(),
280
+ showEin: z11.boolean().optional(),
281
+ notes: z11.string().or(z11.literal("")).optional(),
282
+ createdBy: z11.string(),
283
+ lastEditBy: z11.string().optional()
269
284
  });
270
285
  var zInvoice = addAutoProps(zBInvoice);
271
286
  var zInvoiceResponse = zInvoice.extend({
272
287
  createdBy: zTeacher,
273
288
  lastEditBy: zTeacher.optional(),
274
- packages: z9.array(zInvoicePackageResponse)
289
+ packages: z11.array(zInvoicePackageResponse)
275
290
  });
276
291
 
277
292
  // src/interface/payment/teacherPayment.ts
278
- import { z as z10 } from "zod";
279
- var zTeacherPaymentRow = z10.object({
280
- course: z10.string().min(1, "select or enter a course"),
281
- length: z10.coerce.number().gt(0, "must be > 0"),
282
- count: z10.coerce.number().int().gt(0, "must be > 0"),
283
- wage: z10.coerce.number().gt(0, "wage must be > 0")
293
+ import { z as z12 } from "zod";
294
+ var zTeacherPaymentRow = z12.object({
295
+ course: z12.string().min(1, "select or enter a course"),
296
+ length: z12.coerce.number().gt(0, "must be > 0"),
297
+ count: z12.coerce.number().int().gt(0, "must be > 0"),
298
+ wage: z12.coerce.number().gt(0, "wage must be > 0")
284
299
  });
285
- var zBTeacherPayment = z10.object({
286
- teacher: z10.string().min(1, "select or enter a teacher"),
287
- rows: z10.array(zTeacherPaymentRow),
288
- paid: z10.boolean().optional()
300
+ var zBTeacherPayment = z12.object({
301
+ teacher: z12.string().min(1, "select or enter a teacher"),
302
+ rows: z12.array(zTeacherPaymentRow),
303
+ paid: z12.boolean().optional()
289
304
  });
290
305
  var zTeacherPayment = addAutoProps(zBTeacherPayment);
291
306
  var zTeacherPaymentResponse = zTeacherPayment.extend({
@@ -293,32 +308,32 @@ var zTeacherPaymentResponse = zTeacherPayment.extend({
293
308
  });
294
309
 
295
310
  // src/interface/tracking/classTracker.ts
296
- var zBClassTracker = z11.object({
297
- course: z11.string(),
298
- teacher: z11.string(),
299
- student: z11.string(),
300
- classTimes: z11.array(z11.coerce.date()),
301
- completedList: z11.array(z11.boolean()),
311
+ var zBClassTracker = z13.object({
312
+ course: z13.string(),
313
+ teacher: z13.string(),
314
+ student: z13.string(),
315
+ classTimes: z13.array(z13.coerce.date()),
316
+ completedList: z13.array(z13.boolean()),
302
317
  /**
303
318
  * Virtual mongoose field when all values in completedList is true
304
319
  */
305
- completed: z11.boolean().optional(),
320
+ completed: z13.boolean().optional(),
306
321
  tuition: zTuition.optional(),
307
- paid: z11.boolean().optional(),
308
- paused: z11.boolean().optional(),
309
- notes: z11.string().optional()
322
+ paid: z13.boolean().optional(),
323
+ paused: z13.boolean().optional(),
324
+ notes: z13.string().optional()
310
325
  });
311
326
  var zClassTracker = addAutoProps(zBClassTracker);
312
327
 
313
328
  // src/interface/tracking/groupTracker.ts
314
- import { z as z14 } from "zod";
329
+ import { z as z16 } from "zod";
315
330
 
316
331
  // src/interface/tracking/scheduleData.ts
317
- import { z as z12 } from "zod";
318
- var zScheduleData = z12.object({
319
- startTime: z12.string(),
332
+ import { z as z14 } from "zod";
333
+ var zScheduleData = z14.object({
334
+ startTime: z14.string(),
320
335
  // String in 24 hour "HH:mm" format
321
- dayOfWeek: z12.number().int().min(0).max(6)
336
+ dayOfWeek: z14.number().int().min(0).max(6)
322
337
  // integeters in 0 - 6
323
338
  });
324
339
 
@@ -347,126 +362,126 @@ var NYIGSchool = /* @__PURE__ */ ((NYIGSchool2) => {
347
362
  })(NYIGSchool || {});
348
363
 
349
364
  // src/interface/course/course.ts
350
- import { z as z13 } from "zod";
351
- var zBCourse = z13.object({
352
- name: z13.string(),
353
- category: z13.nativeEnum(CourseCategory),
365
+ import { z as z15 } from "zod";
366
+ var zBCourse = z15.object({
367
+ name: z15.string(),
368
+ category: z15.nativeEnum(CourseCategory),
354
369
  /**
355
370
  * @unit SECONDS - Duration of the course in seconds
356
371
  */
357
- duration: z13.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"),
372
+ duration: z15.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"),
358
373
  /**
359
374
  * @unit CENTS - Price of the course in cents
360
375
  */
361
- price: z13.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0"),
362
- description: z13.string().or(z13.literal("")).optional(),
376
+ price: z15.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0"),
377
+ description: z15.string().or(z15.literal("")).optional(),
363
378
  /**
364
379
  * NYIG School locations
365
380
  */
366
- nyigSchool: z13.nativeEnum(NYIGSchool),
381
+ nyigSchool: z15.nativeEnum(NYIGSchool),
367
382
  /**
368
383
  * Recommended level before taking this course
369
384
  */
370
- recLevel: z13.string().or(z13.literal("")).optional(),
385
+ recLevel: z15.string().or(z15.literal("")).optional(),
371
386
  /**
372
387
  * Camp tuition for half-day option
373
388
  */
374
- halfCampTuition: z13.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
389
+ halfCampTuition: z15.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
375
390
  /**
376
391
  * Camp tuition for full-day option
377
392
  */
378
- fullCampTuition: z13.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional()
393
+ fullCampTuition: z15.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional()
379
394
  });
380
395
  var zCourse = addAutoProps(zBCourse);
381
396
 
382
397
  // src/interface/tracking/groupTracker.ts
383
- var zBGroupTracker = z14.object({
384
- course: z14.string(),
385
- teacher: z14.string(),
386
- semester: z14.string(),
398
+ var zBGroupTracker = z16.object({
399
+ course: z16.string(),
400
+ teacher: z16.string(),
401
+ semester: z16.string(),
387
402
  scheduleData: zScheduleData,
388
403
  /**
389
404
  * occurrences are tracked by week for Groups
390
405
  */
391
- occurrences: z14.array(z14.coerce.date()),
406
+ occurrences: z16.array(z16.coerce.date()),
392
407
  /**
393
408
  * attendances are tracked by week for Groups
394
409
  */
395
- attendances: z14.array(z14.string()),
410
+ attendances: z16.array(z16.string()),
396
411
  /**
397
412
  * public-facing ID of the course instance, e.g., 101
398
413
  */
399
- courseId: z14.string().optional(),
414
+ courseId: z16.string().optional(),
400
415
  /**
401
416
  * Age group of the class instance, e.g. "adult", "youth"
402
417
  */
403
- ageGroup: z14.nativeEnum(AgeGroup).optional(),
418
+ ageGroup: z16.nativeEnum(AgeGroup).optional(),
404
419
  /**
405
420
  * If true, the course is hidden from public view
406
421
  */
407
- isNonPublic: z14.boolean().optional(),
408
- notes: z14.string().optional()
422
+ isNonPublic: z16.boolean().optional(),
423
+ notes: z16.string().optional()
409
424
  });
410
425
  var zGroupTracker = addAutoProps(zBGroupTracker);
411
426
 
412
427
  // src/interface/booking/campBooking.ts
413
- var zBCampBooking = z15.object({
414
- ctId: z15.string().optional(),
415
- isOnline: z15.boolean(),
416
- classDates: z15.string(),
417
- campOption: z15.nativeEnum(CampOption),
418
- shipping: z15.boolean().optional()
428
+ var zBCampBooking = z17.object({
429
+ ctId: z17.string().optional(),
430
+ isOnline: z17.boolean(),
431
+ classDates: z17.string(),
432
+ campOption: z17.nativeEnum(CampOption),
433
+ shipping: z17.boolean().optional()
419
434
  }).merge(zBUserInfo).merge(zBPaymentInfo);
420
435
  var zCampBooking = addAutoProps(zBCampBooking);
421
436
 
422
437
  // src/interface/booking/groupBooking.ts
423
- import { z as z16 } from "zod";
424
- var zBGroupBooking = z16.object({
425
- gtId: z16.string().optional(),
426
- isTrial: z16.boolean().optional(),
427
- isOnline: z16.boolean(),
428
- classDate: z16.string().optional(),
429
- shipping: z16.boolean().optional()
438
+ import { z as z18 } from "zod";
439
+ var zBGroupBooking = z18.object({
440
+ gtId: z18.string().optional(),
441
+ isTrial: z18.boolean().optional(),
442
+ isOnline: z18.boolean(),
443
+ classDate: z18.string().optional(),
444
+ shipping: z18.boolean().optional()
430
445
  }).merge(zBUserInfo).merge(zBPaymentInfo);
431
446
  var zGroupBooking = addAutoProps(zBGroupBooking);
432
447
 
433
448
  // src/interface/booking/privateBooking.ts
434
- import { z as z17 } from "zod";
435
- var zBPrivateBooking = z17.object({
436
- courseId: z17.string(),
437
- teacherId: z17.string(),
438
- classDate: z17.string().optional()
449
+ import { z as z19 } from "zod";
450
+ var zBPrivateBooking = z19.object({
451
+ courseId: z19.string(),
452
+ teacherId: z19.string(),
453
+ classDate: z19.string().optional()
439
454
  }).merge(zBUserInfo).merge(zBPaymentInfo);
440
455
  var zPrivateBooking = addAutoProps(zBPrivateBooking);
441
456
 
442
457
  // src/interface/public/aurora.ts
443
- import { z as z18 } from "zod";
444
- var zTeacherDisplay = z18.object({
445
- name: z18.string(),
446
- email: z18.string().email(),
447
- title: z18.string(),
448
- imageUrl: z18.string(),
449
- bio: z18.string()
450
- });
451
- var zCourseTable = z18.object({
452
- id: z18.string(),
453
- name: z18.string(),
454
- duration: z18.number(),
455
- dateAndTime: z18.string(),
456
- recommendedLevel: z18.string(),
457
- tuition: z18.string()
458
+ import { z as z20 } from "zod";
459
+ var zTeacherDisplay = z20.object({
460
+ name: z20.string(),
461
+ email: z20.string().email(),
462
+ title: z20.string(),
463
+ imageUrl: z20.string(),
464
+ bio: z20.string()
465
+ });
466
+ var zCourseTable = z20.object({
467
+ id: z20.string(),
468
+ name: z20.string(),
469
+ duration: z20.number(),
470
+ dateAndTime: z20.string(),
471
+ recommendedLevel: z20.string(),
472
+ tuition: z20.string()
458
473
  });
459
474
 
460
475
  // src/interface/public/imageDef.ts
461
- import { z as z19 } from "zod";
462
- var zImageDef = z19.object({
463
- url: z19.string(),
464
- height: z19.number(),
465
- width: z19.number()
476
+ import { z as z21 } from "zod";
477
+ var zImageDef = z21.object({
478
+ url: z21.string(),
479
+ height: z21.number(),
480
+ width: z21.number()
466
481
  });
467
482
 
468
483
  // src/interface/reporting/reportTicket.ts
469
- import { z as z20 } from "zod";
484
+ import { z as z22 } from "zod";
470
485
 
471
486
  // src/interface/reporting/ticketStatus.ts
472
487
  var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
@@ -478,12 +493,12 @@ var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
478
493
  })(TicketStatus || {});
479
494
 
480
495
  // src/interface/reporting/reportTicket.ts
481
- var zBReportTicket = z20.object({
482
- requester: z20.string(),
483
- resolver: z20.string().optional(),
484
- status: z20.nativeEnum(TicketStatus),
485
- title: z20.string(),
486
- description: z20.string()
496
+ var zBReportTicket = z22.object({
497
+ requester: z22.string(),
498
+ resolver: z22.string().optional(),
499
+ status: z22.nativeEnum(TicketStatus),
500
+ title: z22.string(),
501
+ description: z22.string()
487
502
  });
488
503
  var zReportTicket = addAutoProps(zBReportTicket);
489
504
  var zReportTicketResponse = zReportTicket.extend({
@@ -500,96 +515,96 @@ var Season = /* @__PURE__ */ ((Season2) => {
500
515
  })(Season || {});
501
516
 
502
517
  // src/interface/semester/semester.ts
503
- import { z as z21 } from "zod";
504
- var zBSemester = z21.object({
505
- season: z21.nativeEnum(Season),
506
- year: z21.number().min(2022).max(2999),
507
- startDate: z21.coerce.date(),
508
- endDate: z21.coerce.date(),
518
+ import { z as z23 } from "zod";
519
+ var zBSemester = z23.object({
520
+ season: z23.nativeEnum(Season),
521
+ year: z23.number().min(2022).max(2999),
522
+ startDate: z23.coerce.date(),
523
+ endDate: z23.coerce.date(),
509
524
  /**
510
525
  * Format: start, end, start, end, ...
511
526
  */
512
- blackoutDates: z21.array(z21.coerce.date()),
527
+ blackoutDates: z23.array(z23.coerce.date()),
513
528
  /**
514
529
  * List of names of some break: date range
515
530
  */
516
- importantDates: z21.array(z21.string())
531
+ importantDates: z23.array(z23.string())
517
532
  });
518
533
  var zSemester = addAutoProps(zBSemester);
519
534
 
520
535
  // src/interface/event/eConfig.ts
521
- import { z as z24 } from "zod";
536
+ import { z as z26 } from "zod";
522
537
 
523
538
  // src/interface/event/eTicket.ts
524
- import { z as z22 } from "zod";
525
- var zBEventTicket = z22.object({
526
- name: z22.string().min(5, "Name must be at least 5 characters"),
539
+ import { z as z24 } from "zod";
540
+ var zBEventTicket = z24.object({
541
+ name: z24.string().min(5, "Name must be at least 5 characters"),
527
542
  /**
528
543
  * Price in cents
529
544
  */
530
- price: z22.number().min(1, "Price must be at least $1"),
545
+ price: z24.number().min(1, "Price must be at least $1"),
531
546
  /**
532
547
  * @optional description of the ticket
533
548
  */
534
- description: z22.string().optional(),
549
+ description: z24.string().optional(),
535
550
  /**
536
551
  * @optional The ticket cannot be purchased if true
537
552
  */
538
- isNotBuyable: z22.boolean().optional(),
553
+ isNotBuyable: z24.boolean().optional(),
539
554
  /**
540
555
  * @optional If date is provided and in the past, ticket cannot be purchased
541
556
  */
542
- lastBuyableDate: z22.coerce.date().optional()
557
+ lastBuyableDate: z24.coerce.date().optional()
543
558
  });
544
559
  var zEventTicket = addAutoProps(zBEventTicket);
545
560
 
546
561
  // src/interface/event/table.ts
547
- import { z as z23 } from "zod";
548
- var zTable = z23.array(z23.record(z23.string(), z23.string()));
549
- var zDetailsTable = z23.object({
550
- fields: z23.array(z23.string()).length(2),
562
+ import { z as z25 } from "zod";
563
+ var zTable = z25.array(z25.record(z25.string(), z25.string()));
564
+ var zDetailsTable = z25.object({
565
+ fields: z25.array(z25.string()).length(2),
551
566
  data: zTable
552
567
  });
553
- var zScheduleTable = z23.object({
554
- fields: z23.array(z23.string()).length(2),
555
- data: z23.record(z23.string(), zTable)
568
+ var zScheduleTable = z25.object({
569
+ fields: z25.array(z25.string()).length(2),
570
+ data: z25.record(z25.string(), zTable)
556
571
  });
557
572
 
558
573
  // src/interface/event/eConfig.ts
559
- var zBEventConfig = z24.object({
574
+ var zBEventConfig = z26.object({
560
575
  /**
561
576
  * Location of the event
562
577
  */
563
- location: z24.string().optional(),
578
+ location: z26.string().optional(),
564
579
  /**
565
580
  * URL of the tournament on the official website
566
581
  * Must be a valid URL link
567
582
  */
568
- url: z24.string(),
583
+ url: z26.string(),
569
584
  /**
570
585
  * Full name of the tournament
571
586
  */
572
- title: z24.string(),
587
+ title: z26.string(),
573
588
  /**
574
589
  * Abbreviated title of the tournament
575
590
  */
576
- shortTitle: z24.string(),
591
+ shortTitle: z26.string(),
577
592
  /**
578
593
  * Tournament start date and time
579
594
  */
580
- tStart: z24.coerce.date(),
595
+ tStart: z26.coerce.date(),
581
596
  /**
582
597
  * Tournament end date and time
583
598
  */
584
- tEnd: z24.coerce.date(),
599
+ tEnd: z26.coerce.date(),
585
600
  /**
586
601
  * Short description for tournament card
587
602
  */
588
- shortDescription: z24.string(),
603
+ shortDescription: z26.string(),
589
604
  /**
590
605
  * Full description
591
606
  */
592
- description: z24.string(),
607
+ description: z26.string(),
593
608
  /**
594
609
  * Defines the tournament details table with 2 columns
595
610
  * typically Time and Event
@@ -603,15 +618,15 @@ var zBEventConfig = z24.object({
603
618
  /**
604
619
  * List of ticket object IDs for this tournament
605
620
  */
606
- tickets: z24.array(z24.string()),
621
+ tickets: z26.array(z26.string()),
607
622
  /**
608
623
  * If false, the tournament registration is closed
609
624
  */
610
- canRegister: z24.boolean(),
625
+ canRegister: z26.boolean(),
611
626
  /**
612
627
  * If true, free form donation amounts are disabled.
613
628
  */
614
- donationsDisabled: z24.boolean().optional(),
629
+ donationsDisabled: z26.boolean().optional(),
615
630
  /**
616
631
  * Defines URL, height, width of the image
617
632
  */
@@ -619,42 +634,42 @@ var zBEventConfig = z24.object({
619
634
  });
620
635
  var zEventConfig = addAutoProps(zBEventConfig);
621
636
  var zEventConfigResponse = zEventConfig.extend({
622
- tickets: z24.array(zEventTicket)
637
+ tickets: z26.array(zEventTicket)
623
638
  });
624
639
 
625
640
  // src/interface/event/eReg.ts
626
- import { z as z26 } from "zod";
641
+ import { z as z28 } from "zod";
627
642
 
628
643
  // src/interface/event/eTicketReg.ts
629
- import { z as z25 } from "zod";
630
- var zEventTicketReg = z25.object({
631
- ticket: z25.string(),
644
+ import { z as z27 } from "zod";
645
+ var zEventTicketReg = z27.object({
646
+ ticket: z27.string(),
632
647
  /**
633
648
  * integer minimum 1, otherwise no ticket is being bought
634
649
  */
635
- amount: z25.number().int().min(1)
650
+ amount: z27.number().int().min(1)
636
651
  });
637
652
  var zEventTicketRegResponse = zEventTicketReg.extend({
638
653
  ticket: zEventTicket
639
654
  });
640
655
 
641
656
  // src/interface/event/eReg.ts
642
- var zBEventReg = z26.object({
643
- agaId: z26.string(),
644
- tournamentId: z26.string(),
645
- tickets: z26.array(zEventTicketReg),
657
+ var zBEventReg = z28.object({
658
+ agaId: z28.string(),
659
+ tournamentId: z28.string(),
660
+ tickets: z28.array(zEventTicketReg),
646
661
  /**
647
662
  * @units CENTS - Donation in cents
648
663
  */
649
- donation: z26.coerce.number().optional(),
664
+ donation: z28.coerce.number().optional(),
650
665
  /**
651
666
  * How the registration was created, through public endpoint or admin
652
667
  */
653
- createMethod: z26.string().optional()
668
+ createMethod: z28.string().optional()
654
669
  }).merge(zBUserInfo).merge(zBPaymentInfo);
655
670
  var zEventReg = addAutoProps(zBEventReg);
656
671
  var zEventRegResponse = zEventReg.extend({
657
- tickets: z26.array(zEventTicketRegResponse)
672
+ tickets: z28.array(zEventTicketRegResponse)
658
673
  });
659
674
  export {
660
675
  AgeGroup,
@@ -665,6 +680,7 @@ export {
665
680
  GoRank,
666
681
  NYIGSchool,
667
682
  PaymentMethod,
683
+ Role,
668
684
  Season,
669
685
  TicketStatus,
670
686
  zAttendance,