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