@nyig/models 0.2.46 → 0.3.1

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