@nyig/models 0.3.14 → 0.4.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.
- package/index.d.mts +813 -84
- package/index.d.ts +813 -84
- package/index.js +212 -171
- package/index.mjs +208 -171
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -253,32 +253,6 @@ var zAttendanceResponse = zAttendance.extend({
|
|
|
253
253
|
// src/interface/tracking/campTracker.ts
|
|
254
254
|
import { z as z13 } from "zod";
|
|
255
255
|
|
|
256
|
-
// src/interface/semester/season.ts
|
|
257
|
-
var Season = /* @__PURE__ */ ((Season2) => {
|
|
258
|
-
Season2["FALL"] = "fall";
|
|
259
|
-
Season2["SPRING"] = "spring";
|
|
260
|
-
Season2["SUMMER"] = "summer";
|
|
261
|
-
return Season2;
|
|
262
|
-
})(Season || {});
|
|
263
|
-
|
|
264
|
-
// src/interface/semester/semester.ts
|
|
265
|
-
import { z as z11 } from "zod";
|
|
266
|
-
var zBSemester = z11.object({
|
|
267
|
-
season: z11.nativeEnum(Season),
|
|
268
|
-
year: z11.number().min(2022).max(2999),
|
|
269
|
-
startDate: z11.coerce.date(),
|
|
270
|
-
endDate: z11.coerce.date(),
|
|
271
|
-
/**
|
|
272
|
-
* Format: start, end, start, end, ...
|
|
273
|
-
*/
|
|
274
|
-
blackoutDates: z11.array(z11.coerce.date()),
|
|
275
|
-
/**
|
|
276
|
-
* List of names of some break: date range
|
|
277
|
-
*/
|
|
278
|
-
importantDates: z11.array(z11.string())
|
|
279
|
-
});
|
|
280
|
-
var zSemester = addAutoProps(zBSemester);
|
|
281
|
-
|
|
282
256
|
// src/interface/course/ageGroup.ts
|
|
283
257
|
var AgeGroup = /* @__PURE__ */ ((AgeGroup2) => {
|
|
284
258
|
AgeGroup2["ADULT"] = "Adult";
|
|
@@ -305,39 +279,65 @@ var NYIGSchool = /* @__PURE__ */ ((NYIGSchool2) => {
|
|
|
305
279
|
})(NYIGSchool || {});
|
|
306
280
|
|
|
307
281
|
// src/interface/course/course.ts
|
|
308
|
-
import { z as
|
|
309
|
-
var zBCourse =
|
|
310
|
-
name:
|
|
311
|
-
category:
|
|
282
|
+
import { z as z11 } from "zod";
|
|
283
|
+
var zBCourse = z11.object({
|
|
284
|
+
name: z11.string(),
|
|
285
|
+
category: z11.nativeEnum(CourseCategory),
|
|
312
286
|
/**
|
|
313
287
|
* @unit SECONDS - Duration of the course in seconds
|
|
314
288
|
*/
|
|
315
|
-
duration:
|
|
289
|
+
duration: z11.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"),
|
|
316
290
|
/**
|
|
317
291
|
* @unit CENTS - Price of the course in cents
|
|
318
292
|
*/
|
|
319
|
-
price:
|
|
320
|
-
description:
|
|
293
|
+
price: z11.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0"),
|
|
294
|
+
description: z11.string().or(z11.literal("")).optional(),
|
|
321
295
|
/**
|
|
322
296
|
* NYIG School locations
|
|
323
297
|
*/
|
|
324
|
-
nyigSchool:
|
|
298
|
+
nyigSchool: z11.nativeEnum(NYIGSchool),
|
|
325
299
|
/**
|
|
326
300
|
* Recommended level before taking this course
|
|
327
301
|
*/
|
|
328
|
-
recLevel:
|
|
302
|
+
recLevel: z11.string().or(z11.literal("")).optional(),
|
|
329
303
|
/**
|
|
330
304
|
* Camp tuition for half-day option
|
|
331
305
|
*/
|
|
332
|
-
halfCampTuition:
|
|
306
|
+
halfCampTuition: z11.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
|
|
333
307
|
/**
|
|
334
308
|
* Camp tuition for full-day option
|
|
335
309
|
*/
|
|
336
|
-
fullCampTuition:
|
|
337
|
-
superadminOnly:
|
|
310
|
+
fullCampTuition: z11.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
|
|
311
|
+
superadminOnly: z11.boolean().optional()
|
|
338
312
|
});
|
|
339
313
|
var zCourse = addAutoProps(zBCourse);
|
|
340
314
|
|
|
315
|
+
// src/interface/semester/season.ts
|
|
316
|
+
var Season = /* @__PURE__ */ ((Season2) => {
|
|
317
|
+
Season2["FALL"] = "fall";
|
|
318
|
+
Season2["SPRING"] = "spring";
|
|
319
|
+
Season2["SUMMER"] = "summer";
|
|
320
|
+
return Season2;
|
|
321
|
+
})(Season || {});
|
|
322
|
+
|
|
323
|
+
// src/interface/semester/semester.ts
|
|
324
|
+
import { z as z12 } from "zod";
|
|
325
|
+
var zBSemester = z12.object({
|
|
326
|
+
season: z12.nativeEnum(Season),
|
|
327
|
+
year: z12.number().min(2022).max(2999),
|
|
328
|
+
startDate: z12.coerce.date(),
|
|
329
|
+
endDate: z12.coerce.date(),
|
|
330
|
+
/**
|
|
331
|
+
* Format: start, end, start, end, ...
|
|
332
|
+
*/
|
|
333
|
+
blackoutDates: z12.array(z12.coerce.date()),
|
|
334
|
+
/**
|
|
335
|
+
* List of names of some break: date range
|
|
336
|
+
*/
|
|
337
|
+
importantDates: z12.array(z12.string())
|
|
338
|
+
});
|
|
339
|
+
var zSemester = addAutoProps(zBSemester);
|
|
340
|
+
|
|
341
341
|
// src/interface/tracking/campTracker.ts
|
|
342
342
|
var zBCampTracker = z13.object({
|
|
343
343
|
course: z13.string(),
|
|
@@ -366,70 +366,29 @@ var zCampTrackerResponse = zCampTracker.extend({
|
|
|
366
366
|
// src/interface/tracking/classTracker.ts
|
|
367
367
|
import { z as z16 } from "zod";
|
|
368
368
|
|
|
369
|
-
// src/interface/
|
|
370
|
-
import { z as z14 } from "zod";
|
|
371
|
-
|
|
372
|
-
// src/interface/payment/paymentMethod.ts
|
|
373
|
-
var PaymentMethod = /* @__PURE__ */ ((PaymentMethod2) => {
|
|
374
|
-
PaymentMethod2["CASH"] = "Cash";
|
|
375
|
-
PaymentMethod2["CHECK"] = "Check";
|
|
376
|
-
PaymentMethod2["VENMO"] = "Venmo";
|
|
377
|
-
PaymentMethod2["ZELLE"] = "Zelle Transfer";
|
|
378
|
-
return PaymentMethod2;
|
|
379
|
-
})(PaymentMethod || {});
|
|
380
|
-
|
|
381
|
-
// src/interface/payment/invoice.ts
|
|
382
|
-
var zDiscount = z14.object({
|
|
383
|
-
desc: z14.string().min(1, "Discount description cannot be empty"),
|
|
384
|
-
amount: z14.coerce.number()
|
|
385
|
-
});
|
|
386
|
-
var zInvoiceItem = z14.object({
|
|
387
|
-
course: z14.string().min(1, "Course description cannot be empty"),
|
|
388
|
-
price: z14.coerce.number(),
|
|
389
|
-
units: z14.coerce.number()
|
|
390
|
-
});
|
|
391
|
-
var zInvoicePackage = z14.object({
|
|
392
|
-
student: z14.string(),
|
|
393
|
-
items: z14.array(zInvoiceItem).min(1, "Package must contain at least one item")
|
|
394
|
-
});
|
|
395
|
-
var zInvoicePackageResponse = zInvoicePackage.extend({
|
|
396
|
-
student: zStudent
|
|
397
|
-
});
|
|
398
|
-
var zBInvoice = z14.object({
|
|
399
|
-
billTo: z14.string().min(1, "The 'Bill To' field must not be empty"),
|
|
400
|
-
packages: z14.array(zInvoicePackage).min(1, "Invoice must include at least one package"),
|
|
401
|
-
discounts: z14.array(zDiscount),
|
|
402
|
-
textbook: z14.coerce.number().int().min(0).optional(),
|
|
403
|
-
shipping: z14.coerce.number().int().min(0).optional(),
|
|
404
|
-
paid: z14.nativeEnum(PaymentMethod).optional(),
|
|
405
|
-
showEin: z14.boolean().optional(),
|
|
406
|
-
notes: z14.string().or(z14.literal("")).optional(),
|
|
407
|
-
createdBy: z14.string(),
|
|
408
|
-
lastEditBy: z14.string().optional()
|
|
409
|
-
});
|
|
410
|
-
var zInvoice = addAutoProps(zBInvoice);
|
|
411
|
-
var zInvoiceResponse = zInvoice.extend({
|
|
412
|
-
createdBy: zTeacher,
|
|
413
|
-
lastEditBy: zTeacher.optional(),
|
|
414
|
-
packages: z14.array(zInvoicePackageResponse)
|
|
415
|
-
});
|
|
416
|
-
|
|
417
|
-
// src/interface/payment/teacherPayment.ts
|
|
369
|
+
// src/interface/tracking/classTimesInput.ts
|
|
418
370
|
import { z as z15 } from "zod";
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
371
|
+
|
|
372
|
+
// src/interface/tracking/dayOfWeek.ts
|
|
373
|
+
import { z as z14 } from "zod";
|
|
374
|
+
var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
|
|
375
|
+
DayOfWeek2[DayOfWeek2["SUNDAY"] = 0] = "SUNDAY";
|
|
376
|
+
DayOfWeek2[DayOfWeek2["MONDAY"] = 1] = "MONDAY";
|
|
377
|
+
DayOfWeek2[DayOfWeek2["TUESDAY"] = 2] = "TUESDAY";
|
|
378
|
+
DayOfWeek2[DayOfWeek2["WEDNESDAY"] = 3] = "WEDNESDAY";
|
|
379
|
+
DayOfWeek2[DayOfWeek2["THURSDAY"] = 4] = "THURSDAY";
|
|
380
|
+
DayOfWeek2[DayOfWeek2["FRIDAY"] = 5] = "FRIDAY";
|
|
381
|
+
DayOfWeek2[DayOfWeek2["SATURDAY"] = 6] = "SATURDAY";
|
|
382
|
+
return DayOfWeek2;
|
|
383
|
+
})(DayOfWeek || {});
|
|
384
|
+
var zDayOfWeek = z14.nativeEnum(DayOfWeek);
|
|
385
|
+
|
|
386
|
+
// src/interface/tracking/classTimesInput.ts
|
|
387
|
+
var zClassTimesInput = z15.object({
|
|
388
|
+
startDate: z15.date(),
|
|
389
|
+
freq: z15.coerce.number().min(1, "Please select a valid frequency"),
|
|
390
|
+
daysOfWeek: z15.array(zDayOfWeek),
|
|
391
|
+
numberOfClasses: z15.coerce.number().int().min(1, "Must enroll in at least one class")
|
|
433
392
|
});
|
|
434
393
|
|
|
435
394
|
// src/interface/tracking/classTracker.ts
|
|
@@ -446,7 +405,6 @@ var zBClassTracker = z16.object({
|
|
|
446
405
|
/**
|
|
447
406
|
* @deprecated This field is no longer used
|
|
448
407
|
*/
|
|
449
|
-
tuition: zTuition.optional(),
|
|
450
408
|
paid: z16.boolean().optional(),
|
|
451
409
|
paused: z16.boolean().optional(),
|
|
452
410
|
notes: z16.string().optional()
|
|
@@ -457,6 +415,9 @@ var zClassTrackerResponse = zClassTracker.extend({
|
|
|
457
415
|
teacher: zTeacher,
|
|
458
416
|
student: zStudent
|
|
459
417
|
});
|
|
418
|
+
var zTrackerCreate = zBClassTracker.extend({
|
|
419
|
+
classTimesInput: zClassTimesInput
|
|
420
|
+
});
|
|
460
421
|
|
|
461
422
|
// src/interface/tracking/groupTracker.ts
|
|
462
423
|
import { z as z18 } from "zod";
|
|
@@ -479,11 +440,11 @@ var zBGroupTracker = z18.object({
|
|
|
479
440
|
/**
|
|
480
441
|
* occurrences are tracked by week for Groups
|
|
481
442
|
*/
|
|
482
|
-
occurrences: z18.array(z18.
|
|
443
|
+
occurrences: z18.array(z18.string()),
|
|
483
444
|
/**
|
|
484
445
|
* attendances are tracked by week for Groups
|
|
485
446
|
*/
|
|
486
|
-
attendances: z18.array(
|
|
447
|
+
attendances: z18.array(zAttendanceRequest),
|
|
487
448
|
/**
|
|
488
449
|
* public-facing ID of the course instance, e.g., 101
|
|
489
450
|
*/
|
|
@@ -499,6 +460,12 @@ var zBGroupTracker = z18.object({
|
|
|
499
460
|
notes: z18.string().optional()
|
|
500
461
|
});
|
|
501
462
|
var zGroupTracker = addAutoProps(zBGroupTracker);
|
|
463
|
+
var zGroupTrackerResponse = zGroupTracker.extend({
|
|
464
|
+
course: zCourse,
|
|
465
|
+
teacher: zTeacher,
|
|
466
|
+
semester: zSemester,
|
|
467
|
+
attendances: z18.array(zAttendanceResponse)
|
|
468
|
+
});
|
|
502
469
|
|
|
503
470
|
// src/interface/booking/campBooking.ts
|
|
504
471
|
var zBCampBooking = z19.object({
|
|
@@ -530,34 +497,100 @@ var zBPrivateBooking = z21.object({
|
|
|
530
497
|
}).merge(zBUserInfo).merge(zBPaymentInfo);
|
|
531
498
|
var zPrivateBooking = addAutoProps(zBPrivateBooking);
|
|
532
499
|
|
|
533
|
-
// src/interface/
|
|
500
|
+
// src/interface/payment/invoice.ts
|
|
534
501
|
import { z as z22 } from "zod";
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
502
|
+
|
|
503
|
+
// src/interface/payment/paymentMethod.ts
|
|
504
|
+
var PaymentMethod = /* @__PURE__ */ ((PaymentMethod2) => {
|
|
505
|
+
PaymentMethod2["CASH"] = "Cash";
|
|
506
|
+
PaymentMethod2["CHECK"] = "Check";
|
|
507
|
+
PaymentMethod2["VENMO"] = "Venmo";
|
|
508
|
+
PaymentMethod2["ZELLE"] = "Zelle Transfer";
|
|
509
|
+
return PaymentMethod2;
|
|
510
|
+
})(PaymentMethod || {});
|
|
511
|
+
|
|
512
|
+
// src/interface/payment/invoice.ts
|
|
513
|
+
var zDiscount = z22.object({
|
|
514
|
+
desc: z22.string().min(1, "Discount description cannot be empty"),
|
|
515
|
+
amount: z22.coerce.number()
|
|
516
|
+
});
|
|
517
|
+
var zInvoiceItem = z22.object({
|
|
518
|
+
course: z22.string().min(1, "Course description cannot be empty"),
|
|
519
|
+
price: z22.coerce.number(),
|
|
520
|
+
units: z22.coerce.number()
|
|
521
|
+
});
|
|
522
|
+
var zInvoicePackage = z22.object({
|
|
523
|
+
student: z22.string(),
|
|
524
|
+
items: z22.array(zInvoiceItem).min(1, "Package must contain at least one item")
|
|
525
|
+
});
|
|
526
|
+
var zInvoicePackageResponse = zInvoicePackage.extend({
|
|
527
|
+
student: zStudent
|
|
528
|
+
});
|
|
529
|
+
var zBInvoice = z22.object({
|
|
530
|
+
billTo: z22.string().min(1, "The 'Bill To' field must not be empty"),
|
|
531
|
+
packages: z22.array(zInvoicePackage).min(1, "Invoice must include at least one package"),
|
|
532
|
+
discounts: z22.array(zDiscount),
|
|
533
|
+
textbook: z22.coerce.number().int().min(0).optional(),
|
|
534
|
+
shipping: z22.coerce.number().int().min(0).optional(),
|
|
535
|
+
paid: z22.nativeEnum(PaymentMethod).optional(),
|
|
536
|
+
showEin: z22.boolean().optional(),
|
|
537
|
+
notes: z22.string().or(z22.literal("")).optional(),
|
|
538
|
+
createdBy: z22.string(),
|
|
539
|
+
lastEditBy: z22.string().optional()
|
|
540
|
+
});
|
|
541
|
+
var zInvoice = addAutoProps(zBInvoice);
|
|
542
|
+
var zInvoiceResponse = zInvoice.extend({
|
|
543
|
+
createdBy: zTeacher,
|
|
544
|
+
lastEditBy: zTeacher.optional(),
|
|
545
|
+
packages: z22.array(zInvoicePackageResponse)
|
|
549
546
|
});
|
|
550
547
|
|
|
551
|
-
// src/interface/
|
|
548
|
+
// src/interface/payment/teacherPayment.ts
|
|
552
549
|
import { z as z23 } from "zod";
|
|
553
|
-
var
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
550
|
+
var zTeacherPaymentRow = z23.object({
|
|
551
|
+
course: z23.string().min(1, "select or enter a course"),
|
|
552
|
+
length: z23.coerce.number().gt(0, "must be > 0"),
|
|
553
|
+
count: z23.coerce.number().int().gt(0, "must be > 0"),
|
|
554
|
+
wage: z23.coerce.number().gt(0, "wage must be > 0")
|
|
555
|
+
});
|
|
556
|
+
var zBTeacherPayment = z23.object({
|
|
557
|
+
teacher: z23.string().min(1, "select or enter a teacher"),
|
|
558
|
+
rows: z23.array(zTeacherPaymentRow),
|
|
559
|
+
paid: z23.boolean().optional()
|
|
560
|
+
});
|
|
561
|
+
var zTeacherPayment = addAutoProps(zBTeacherPayment);
|
|
562
|
+
var zTeacherPaymentResponse = zTeacherPayment.extend({
|
|
563
|
+
teacher: zTeacher
|
|
557
564
|
});
|
|
558
565
|
|
|
559
|
-
// src/interface/
|
|
566
|
+
// src/interface/public/aurora.ts
|
|
560
567
|
import { z as z24 } from "zod";
|
|
568
|
+
var zTeacherDisplay = z24.object({
|
|
569
|
+
name: z24.string(),
|
|
570
|
+
email: z24.string().email(),
|
|
571
|
+
title: z24.string(),
|
|
572
|
+
imageUrl: z24.string(),
|
|
573
|
+
bio: z24.string()
|
|
574
|
+
});
|
|
575
|
+
var zCourseTable = z24.object({
|
|
576
|
+
id: z24.string(),
|
|
577
|
+
name: z24.string(),
|
|
578
|
+
duration: z24.number(),
|
|
579
|
+
dateAndTime: z24.string(),
|
|
580
|
+
recommendedLevel: z24.string(),
|
|
581
|
+
tuition: z24.string()
|
|
582
|
+
});
|
|
583
|
+
|
|
584
|
+
// src/interface/public/imageDef.ts
|
|
585
|
+
import { z as z25 } from "zod";
|
|
586
|
+
var zImageDef = z25.object({
|
|
587
|
+
url: z25.string(),
|
|
588
|
+
height: z25.number(),
|
|
589
|
+
width: z25.number()
|
|
590
|
+
});
|
|
591
|
+
|
|
592
|
+
// src/interface/reporting/reportTicket.ts
|
|
593
|
+
import { z as z26 } from "zod";
|
|
561
594
|
|
|
562
595
|
// src/interface/reporting/ticketStatus.ts
|
|
563
596
|
var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
|
|
@@ -569,12 +602,12 @@ var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
|
|
|
569
602
|
})(TicketStatus || {});
|
|
570
603
|
|
|
571
604
|
// src/interface/reporting/reportTicket.ts
|
|
572
|
-
var zBReportTicket =
|
|
573
|
-
requester:
|
|
574
|
-
resolver:
|
|
575
|
-
status:
|
|
576
|
-
title:
|
|
577
|
-
description:
|
|
605
|
+
var zBReportTicket = z26.object({
|
|
606
|
+
requester: z26.string(),
|
|
607
|
+
resolver: z26.string().optional(),
|
|
608
|
+
status: z26.nativeEnum(TicketStatus),
|
|
609
|
+
title: z26.string(),
|
|
610
|
+
description: z26.string()
|
|
578
611
|
});
|
|
579
612
|
var zReportTicket = addAutoProps(zBReportTicket);
|
|
580
613
|
var zReportTicketResponse = zReportTicket.extend({
|
|
@@ -583,78 +616,78 @@ var zReportTicketResponse = zReportTicket.extend({
|
|
|
583
616
|
});
|
|
584
617
|
|
|
585
618
|
// src/interface/event/eConfig.ts
|
|
586
|
-
import { z as
|
|
619
|
+
import { z as z29 } from "zod";
|
|
587
620
|
|
|
588
621
|
// src/interface/event/eTicket.ts
|
|
589
|
-
import { z as
|
|
590
|
-
var zBEventTicket =
|
|
591
|
-
name:
|
|
622
|
+
import { z as z27 } from "zod";
|
|
623
|
+
var zBEventTicket = z27.object({
|
|
624
|
+
name: z27.string().min(5, "Name must be at least 5 characters"),
|
|
592
625
|
/**
|
|
593
626
|
* Price in cents
|
|
594
627
|
*/
|
|
595
|
-
price:
|
|
628
|
+
price: z27.number().min(1, "Price must be at least $1"),
|
|
596
629
|
/**
|
|
597
630
|
* @optional description of the ticket
|
|
598
631
|
*/
|
|
599
|
-
description:
|
|
632
|
+
description: z27.string().optional(),
|
|
600
633
|
/**
|
|
601
634
|
* @optional The ticket cannot be purchased if true
|
|
602
635
|
*/
|
|
603
|
-
isNotBuyable:
|
|
636
|
+
isNotBuyable: z27.boolean().optional(),
|
|
604
637
|
/**
|
|
605
638
|
* @optional If date is provided and in the past, ticket cannot be purchased
|
|
606
639
|
*/
|
|
607
|
-
lastBuyableDate:
|
|
640
|
+
lastBuyableDate: z27.coerce.date().optional()
|
|
608
641
|
});
|
|
609
642
|
var zEventTicket = addAutoProps(zBEventTicket);
|
|
610
643
|
|
|
611
644
|
// src/interface/event/table.ts
|
|
612
|
-
import { z as
|
|
613
|
-
var zTable =
|
|
614
|
-
var zDetailsTable =
|
|
615
|
-
fields:
|
|
645
|
+
import { z as z28 } from "zod";
|
|
646
|
+
var zTable = z28.array(z28.record(z28.string(), z28.string()));
|
|
647
|
+
var zDetailsTable = z28.object({
|
|
648
|
+
fields: z28.array(z28.string()).length(2),
|
|
616
649
|
data: zTable
|
|
617
650
|
});
|
|
618
|
-
var zScheduleTable =
|
|
619
|
-
fields:
|
|
620
|
-
data:
|
|
651
|
+
var zScheduleTable = z28.object({
|
|
652
|
+
fields: z28.array(z28.string()).length(2),
|
|
653
|
+
data: z28.record(z28.string(), zTable)
|
|
621
654
|
});
|
|
622
655
|
|
|
623
656
|
// src/interface/event/eConfig.ts
|
|
624
|
-
var zBEventConfig =
|
|
657
|
+
var zBEventConfig = z29.object({
|
|
625
658
|
/**
|
|
626
659
|
* Location of the event
|
|
627
660
|
*/
|
|
628
|
-
location:
|
|
661
|
+
location: z29.string().optional(),
|
|
629
662
|
/**
|
|
630
663
|
* URL of the tournament on the official website
|
|
631
664
|
* Must be a valid URL link
|
|
632
665
|
*/
|
|
633
|
-
url:
|
|
666
|
+
url: z29.string(),
|
|
634
667
|
/**
|
|
635
668
|
* Full name of the tournament
|
|
636
669
|
*/
|
|
637
|
-
title:
|
|
670
|
+
title: z29.string(),
|
|
638
671
|
/**
|
|
639
672
|
* Abbreviated title of the tournament
|
|
640
673
|
*/
|
|
641
|
-
shortTitle:
|
|
674
|
+
shortTitle: z29.string(),
|
|
642
675
|
/**
|
|
643
676
|
* Tournament start date and time
|
|
644
677
|
*/
|
|
645
|
-
tStart:
|
|
678
|
+
tStart: z29.coerce.date(),
|
|
646
679
|
/**
|
|
647
680
|
* Tournament end date and time
|
|
648
681
|
*/
|
|
649
|
-
tEnd:
|
|
682
|
+
tEnd: z29.coerce.date(),
|
|
650
683
|
/**
|
|
651
684
|
* Short description for tournament card
|
|
652
685
|
*/
|
|
653
|
-
shortDescription:
|
|
686
|
+
shortDescription: z29.string(),
|
|
654
687
|
/**
|
|
655
688
|
* Full description
|
|
656
689
|
*/
|
|
657
|
-
description:
|
|
690
|
+
description: z29.string(),
|
|
658
691
|
/**
|
|
659
692
|
* Defines the tournament details table with 2 columns
|
|
660
693
|
* typically Time and Event
|
|
@@ -668,15 +701,15 @@ var zBEventConfig = z27.object({
|
|
|
668
701
|
/**
|
|
669
702
|
* List of ticket object IDs for this tournament
|
|
670
703
|
*/
|
|
671
|
-
tickets:
|
|
704
|
+
tickets: z29.array(z29.string()),
|
|
672
705
|
/**
|
|
673
706
|
* If false, the tournament registration is closed
|
|
674
707
|
*/
|
|
675
|
-
canRegister:
|
|
708
|
+
canRegister: z29.boolean(),
|
|
676
709
|
/**
|
|
677
710
|
* If true, free form donation amounts are disabled.
|
|
678
711
|
*/
|
|
679
|
-
donationsDisabled:
|
|
712
|
+
donationsDisabled: z29.boolean().optional(),
|
|
680
713
|
/**
|
|
681
714
|
* Defines URL, height, width of the image
|
|
682
715
|
*/
|
|
@@ -684,42 +717,42 @@ var zBEventConfig = z27.object({
|
|
|
684
717
|
});
|
|
685
718
|
var zEventConfig = addAutoProps(zBEventConfig);
|
|
686
719
|
var zEventConfigResponse = zEventConfig.extend({
|
|
687
|
-
tickets:
|
|
720
|
+
tickets: z29.array(zEventTicket)
|
|
688
721
|
});
|
|
689
722
|
|
|
690
723
|
// src/interface/event/eReg.ts
|
|
691
|
-
import { z as
|
|
724
|
+
import { z as z31 } from "zod";
|
|
692
725
|
|
|
693
726
|
// src/interface/event/eTicketReg.ts
|
|
694
|
-
import { z as
|
|
695
|
-
var zEventTicketReg =
|
|
696
|
-
ticket:
|
|
727
|
+
import { z as z30 } from "zod";
|
|
728
|
+
var zEventTicketReg = z30.object({
|
|
729
|
+
ticket: z30.string(),
|
|
697
730
|
/**
|
|
698
731
|
* integer minimum 1, otherwise no ticket is being bought
|
|
699
732
|
*/
|
|
700
|
-
amount:
|
|
733
|
+
amount: z30.number().int().min(1)
|
|
701
734
|
});
|
|
702
735
|
var zEventTicketRegResponse = zEventTicketReg.extend({
|
|
703
736
|
ticket: zEventTicket
|
|
704
737
|
});
|
|
705
738
|
|
|
706
739
|
// src/interface/event/eReg.ts
|
|
707
|
-
var zBEventReg =
|
|
708
|
-
agaId:
|
|
709
|
-
tournamentId:
|
|
710
|
-
tickets:
|
|
740
|
+
var zBEventReg = z31.object({
|
|
741
|
+
agaId: z31.string(),
|
|
742
|
+
tournamentId: z31.string(),
|
|
743
|
+
tickets: z31.array(zEventTicketReg),
|
|
711
744
|
/**
|
|
712
745
|
* @units CENTS - Donation in cents
|
|
713
746
|
*/
|
|
714
|
-
donation:
|
|
747
|
+
donation: z31.coerce.number().optional(),
|
|
715
748
|
/**
|
|
716
749
|
* How the registration was created, through public endpoint or admin
|
|
717
750
|
*/
|
|
718
|
-
createMethod:
|
|
751
|
+
createMethod: z31.string().optional()
|
|
719
752
|
}).merge(zBUserInfo).merge(zBPaymentInfo);
|
|
720
753
|
var zEventReg = addAutoProps(zBEventReg);
|
|
721
754
|
var zEventRegResponse = zEventReg.extend({
|
|
722
|
-
tickets:
|
|
755
|
+
tickets: z31.array(zEventTicketRegResponse)
|
|
723
756
|
});
|
|
724
757
|
export {
|
|
725
758
|
AgeGroup,
|
|
@@ -727,6 +760,7 @@ export {
|
|
|
727
760
|
BookingType,
|
|
728
761
|
CampOption,
|
|
729
762
|
CourseCategory,
|
|
763
|
+
DayOfWeek,
|
|
730
764
|
GoRank,
|
|
731
765
|
NYIGSchool,
|
|
732
766
|
PaymentMethod,
|
|
@@ -765,6 +799,7 @@ export {
|
|
|
765
799
|
zCourse,
|
|
766
800
|
zCourseTable,
|
|
767
801
|
zCreateAdminAccountRequest,
|
|
802
|
+
zDayOfWeek,
|
|
768
803
|
zDetailsTable,
|
|
769
804
|
zDiscount,
|
|
770
805
|
zEventConfig,
|
|
@@ -776,6 +811,7 @@ export {
|
|
|
776
811
|
zEventTicketRegResponse,
|
|
777
812
|
zGroupBooking,
|
|
778
813
|
zGroupTracker,
|
|
814
|
+
zGroupTrackerResponse,
|
|
779
815
|
zImageDef,
|
|
780
816
|
zInvoice,
|
|
781
817
|
zInvoiceItem,
|
|
@@ -796,6 +832,7 @@ export {
|
|
|
796
832
|
zTeacherPayment,
|
|
797
833
|
zTeacherPaymentResponse,
|
|
798
834
|
zTeacherPaymentRow,
|
|
835
|
+
zTrackerCreate,
|
|
799
836
|
zTuition,
|
|
800
837
|
zUser,
|
|
801
838
|
zUserRoles
|