@nyig/models 0.3.8 → 0.3.10
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 +1323 -386
- package/index.d.ts +1323 -386
- package/index.js +233 -200
- package/index.mjs +229 -200
- 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
|
|
43
|
+
import { z as z19 } from "zod";
|
|
44
44
|
|
|
45
45
|
// src/interface/tracking/attendState.ts
|
|
46
46
|
var AttendState = /* @__PURE__ */ ((AttendState2) => {
|
|
@@ -235,40 +235,142 @@ var zLoginResponse = z9.object({
|
|
|
235
235
|
var zBAttendance = z10.object({
|
|
236
236
|
student: z10.string(),
|
|
237
237
|
states: z10.array(z10.nativeEnum(AttendState)),
|
|
238
|
-
|
|
238
|
+
/**
|
|
239
|
+
* @deprecated This field is no longer used
|
|
240
|
+
*/
|
|
241
|
+
tuition: zTuition.optional(),
|
|
239
242
|
paid: z10.boolean().optional(),
|
|
240
243
|
campOption: z10.nativeEnum(CampOption).optional()
|
|
241
244
|
});
|
|
242
245
|
var zAttendance = addAutoProps(zBAttendance);
|
|
246
|
+
var zAttendanceRequest = zAttendance.extend({
|
|
247
|
+
_id: z10.string().optional()
|
|
248
|
+
});
|
|
243
249
|
var zAttendanceResponse = zAttendance.extend({
|
|
244
250
|
student: zStudent
|
|
245
251
|
});
|
|
246
252
|
|
|
247
253
|
// src/interface/tracking/campTracker.ts
|
|
254
|
+
import { z as z13 } from "zod";
|
|
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
|
|
248
265
|
import { z as z11 } from "zod";
|
|
249
|
-
var
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
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
|
+
// src/interface/course/ageGroup.ts
|
|
283
|
+
var AgeGroup = /* @__PURE__ */ ((AgeGroup2) => {
|
|
284
|
+
AgeGroup2["ADULT"] = "Adult";
|
|
285
|
+
AgeGroup2["YOUTH"] = "Youth";
|
|
286
|
+
return AgeGroup2;
|
|
287
|
+
})(AgeGroup || {});
|
|
288
|
+
|
|
289
|
+
// src/interface/course/category.ts
|
|
290
|
+
var CourseCategory = /* @__PURE__ */ ((CourseCategory2) => {
|
|
291
|
+
CourseCategory2["GROUP"] = "group";
|
|
292
|
+
CourseCategory2["PRIVATE"] = "private";
|
|
293
|
+
CourseCategory2["SEMIPRIVATE"] = "semiprivate";
|
|
294
|
+
CourseCategory2["CAMP"] = "camp";
|
|
295
|
+
CourseCategory2["EVENT"] = "event";
|
|
296
|
+
return CourseCategory2;
|
|
297
|
+
})(CourseCategory || {});
|
|
298
|
+
|
|
299
|
+
// src/interface/course/school.ts
|
|
300
|
+
var NYIGSchool = /* @__PURE__ */ ((NYIGSchool2) => {
|
|
301
|
+
NYIGSchool2["MANHATTAN"] = "Manhattan";
|
|
302
|
+
NYIGSchool2["LITTLENECK"] = "Little Neck";
|
|
303
|
+
NYIGSchool2["ONLINE"] = "Online";
|
|
304
|
+
return NYIGSchool2;
|
|
305
|
+
})(NYIGSchool || {});
|
|
306
|
+
|
|
307
|
+
// src/interface/course/course.ts
|
|
308
|
+
import { z as z12 } from "zod";
|
|
309
|
+
var zBCourse = z12.object({
|
|
310
|
+
name: z12.string(),
|
|
311
|
+
category: z12.nativeEnum(CourseCategory),
|
|
312
|
+
/**
|
|
313
|
+
* @unit SECONDS - Duration of the course in seconds
|
|
314
|
+
*/
|
|
315
|
+
duration: z12.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
|
+
/**
|
|
317
|
+
* @unit CENTS - Price of the course in cents
|
|
318
|
+
*/
|
|
319
|
+
price: z12.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0"),
|
|
320
|
+
description: z12.string().or(z12.literal("")).optional(),
|
|
321
|
+
/**
|
|
322
|
+
* NYIG School locations
|
|
323
|
+
*/
|
|
324
|
+
nyigSchool: z12.nativeEnum(NYIGSchool),
|
|
325
|
+
/**
|
|
326
|
+
* Recommended level before taking this course
|
|
327
|
+
*/
|
|
328
|
+
recLevel: z12.string().or(z12.literal("")).optional(),
|
|
329
|
+
/**
|
|
330
|
+
* Camp tuition for half-day option
|
|
331
|
+
*/
|
|
332
|
+
halfCampTuition: z12.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
|
+
/**
|
|
334
|
+
* Camp tuition for full-day option
|
|
335
|
+
*/
|
|
336
|
+
fullCampTuition: z12.coerce.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional(),
|
|
337
|
+
superadminOnly: z12.boolean().optional()
|
|
338
|
+
});
|
|
339
|
+
var zCourse = addAutoProps(zBCourse);
|
|
340
|
+
|
|
341
|
+
// src/interface/tracking/campTracker.ts
|
|
342
|
+
var zBCampTracker = z13.object({
|
|
343
|
+
course: z13.string(),
|
|
344
|
+
teacher: z13.string(),
|
|
345
|
+
semester: z13.string(),
|
|
253
346
|
/**
|
|
254
347
|
* occurrences are tracked by week for camps
|
|
255
348
|
*/
|
|
256
|
-
occurrences:
|
|
349
|
+
occurrences: z13.array(z13.string()).min(1, "Camp must have at least 1 date range"),
|
|
257
350
|
/**
|
|
258
351
|
* attendances are tracked by week for camps
|
|
259
352
|
*/
|
|
260
|
-
attendances:
|
|
261
|
-
publicDescription:
|
|
262
|
-
isNonPublic:
|
|
263
|
-
notes:
|
|
353
|
+
attendances: z13.array(z13.string()),
|
|
354
|
+
publicDescription: z13.string().optional(),
|
|
355
|
+
isNonPublic: z13.boolean().optional(),
|
|
356
|
+
notes: z13.string().optional()
|
|
264
357
|
});
|
|
265
358
|
var zCampTracker = addAutoProps(zBCampTracker);
|
|
359
|
+
var zCampTrackerRequest = zCampTracker.extend({
|
|
360
|
+
attendances: zAttendanceRequest
|
|
361
|
+
});
|
|
362
|
+
var zCampTrackerResponse = zCampTracker.extend({
|
|
363
|
+
course: zCourse,
|
|
364
|
+
teacher: zTeacher,
|
|
365
|
+
semester: zSemester,
|
|
366
|
+
attendances: zAttendance
|
|
367
|
+
});
|
|
266
368
|
|
|
267
369
|
// src/interface/tracking/classTracker.ts
|
|
268
|
-
import { z as
|
|
370
|
+
import { z as z16 } from "zod";
|
|
269
371
|
|
|
270
372
|
// src/interface/payment/invoice.ts
|
|
271
|
-
import { z as
|
|
373
|
+
import { z as z14 } from "zod";
|
|
272
374
|
|
|
273
375
|
// src/interface/payment/paymentMethod.ts
|
|
274
376
|
var PaymentMethod = /* @__PURE__ */ ((PaymentMethod2) => {
|
|
@@ -280,53 +382,53 @@ var PaymentMethod = /* @__PURE__ */ ((PaymentMethod2) => {
|
|
|
280
382
|
})(PaymentMethod || {});
|
|
281
383
|
|
|
282
384
|
// src/interface/payment/invoice.ts
|
|
283
|
-
var zDiscount =
|
|
284
|
-
desc:
|
|
285
|
-
amount:
|
|
385
|
+
var zDiscount = z14.object({
|
|
386
|
+
desc: z14.string().min(1, "Discount description cannot be empty"),
|
|
387
|
+
amount: z14.coerce.number()
|
|
286
388
|
});
|
|
287
|
-
var zInvoiceItem =
|
|
288
|
-
course:
|
|
289
|
-
price:
|
|
290
|
-
units:
|
|
389
|
+
var zInvoiceItem = z14.object({
|
|
390
|
+
course: z14.string().min(1, "Course description cannot be empty"),
|
|
391
|
+
price: z14.coerce.number(),
|
|
392
|
+
units: z14.coerce.number()
|
|
291
393
|
});
|
|
292
|
-
var zInvoicePackage =
|
|
293
|
-
student:
|
|
294
|
-
items:
|
|
394
|
+
var zInvoicePackage = z14.object({
|
|
395
|
+
student: z14.string(),
|
|
396
|
+
items: z14.array(zInvoiceItem).min(1, "Package must contain at least one item")
|
|
295
397
|
});
|
|
296
398
|
var zInvoicePackageResponse = zInvoicePackage.extend({
|
|
297
399
|
student: zStudent
|
|
298
400
|
});
|
|
299
|
-
var zBInvoice =
|
|
300
|
-
billTo:
|
|
301
|
-
packages:
|
|
302
|
-
discounts:
|
|
303
|
-
textbook:
|
|
304
|
-
shipping:
|
|
305
|
-
paid:
|
|
306
|
-
showEin:
|
|
307
|
-
notes:
|
|
308
|
-
createdBy:
|
|
309
|
-
lastEditBy:
|
|
401
|
+
var zBInvoice = z14.object({
|
|
402
|
+
billTo: z14.string().min(1, "The 'Bill To' field must not be empty"),
|
|
403
|
+
packages: z14.array(zInvoicePackage).min(1, "Invoice must include at least one package"),
|
|
404
|
+
discounts: z14.array(zDiscount),
|
|
405
|
+
textbook: z14.coerce.number().int().min(0).optional(),
|
|
406
|
+
shipping: z14.coerce.number().int().min(0).optional(),
|
|
407
|
+
paid: z14.nativeEnum(PaymentMethod).optional(),
|
|
408
|
+
showEin: z14.boolean().optional(),
|
|
409
|
+
notes: z14.string().or(z14.literal("")).optional(),
|
|
410
|
+
createdBy: z14.string(),
|
|
411
|
+
lastEditBy: z14.string().optional()
|
|
310
412
|
});
|
|
311
413
|
var zInvoice = addAutoProps(zBInvoice);
|
|
312
414
|
var zInvoiceResponse = zInvoice.extend({
|
|
313
415
|
createdBy: zTeacher,
|
|
314
416
|
lastEditBy: zTeacher.optional(),
|
|
315
|
-
packages:
|
|
417
|
+
packages: z14.array(zInvoicePackageResponse)
|
|
316
418
|
});
|
|
317
419
|
|
|
318
420
|
// src/interface/payment/teacherPayment.ts
|
|
319
|
-
import { z as
|
|
320
|
-
var zTeacherPaymentRow =
|
|
321
|
-
course:
|
|
322
|
-
length:
|
|
323
|
-
count:
|
|
324
|
-
wage:
|
|
421
|
+
import { z as z15 } from "zod";
|
|
422
|
+
var zTeacherPaymentRow = z15.object({
|
|
423
|
+
course: z15.string().min(1, "select or enter a course"),
|
|
424
|
+
length: z15.coerce.number().gt(0, "must be > 0"),
|
|
425
|
+
count: z15.coerce.number().int().gt(0, "must be > 0"),
|
|
426
|
+
wage: z15.coerce.number().gt(0, "wage must be > 0")
|
|
325
427
|
});
|
|
326
|
-
var zBTeacherPayment =
|
|
327
|
-
teacher:
|
|
328
|
-
rows:
|
|
329
|
-
paid:
|
|
428
|
+
var zBTeacherPayment = z15.object({
|
|
429
|
+
teacher: z15.string().min(1, "select or enter a teacher"),
|
|
430
|
+
rows: z15.array(zTeacherPaymentRow),
|
|
431
|
+
paid: z15.boolean().optional()
|
|
330
432
|
});
|
|
331
433
|
var zTeacherPayment = addAutoProps(zBTeacherPayment);
|
|
332
434
|
var zTeacherPaymentResponse = zTeacherPayment.extend({
|
|
@@ -334,182 +436,131 @@ var zTeacherPaymentResponse = zTeacherPayment.extend({
|
|
|
334
436
|
});
|
|
335
437
|
|
|
336
438
|
// src/interface/tracking/classTracker.ts
|
|
337
|
-
var zBClassTracker =
|
|
338
|
-
course:
|
|
339
|
-
teacher:
|
|
340
|
-
student:
|
|
341
|
-
classTimes:
|
|
342
|
-
completedList:
|
|
439
|
+
var zBClassTracker = z16.object({
|
|
440
|
+
course: z16.string(),
|
|
441
|
+
teacher: z16.string(),
|
|
442
|
+
student: z16.string(),
|
|
443
|
+
classTimes: z16.array(z16.coerce.date()),
|
|
444
|
+
completedList: z16.array(z16.boolean()),
|
|
343
445
|
/**
|
|
344
446
|
* Virtual mongoose field when all values in completedList is true
|
|
345
447
|
*/
|
|
346
|
-
completed:
|
|
448
|
+
completed: z16.boolean().optional(),
|
|
449
|
+
/**
|
|
450
|
+
* @deprecated This field is no longer used
|
|
451
|
+
*/
|
|
347
452
|
tuition: zTuition.optional(),
|
|
348
|
-
paid:
|
|
349
|
-
paused:
|
|
350
|
-
notes:
|
|
453
|
+
paid: z16.boolean().optional(),
|
|
454
|
+
paused: z16.boolean().optional(),
|
|
455
|
+
notes: z16.string().optional()
|
|
351
456
|
});
|
|
352
457
|
var zClassTracker = addAutoProps(zBClassTracker);
|
|
458
|
+
var zClassTrackerResponse = zClassTracker.extend({
|
|
459
|
+
course: zCourse,
|
|
460
|
+
teacher: zTeacher,
|
|
461
|
+
student: zStudent
|
|
462
|
+
});
|
|
353
463
|
|
|
354
464
|
// src/interface/tracking/groupTracker.ts
|
|
355
|
-
import { z as
|
|
465
|
+
import { z as z18 } from "zod";
|
|
356
466
|
|
|
357
467
|
// src/interface/tracking/scheduleData.ts
|
|
358
|
-
import { z as
|
|
359
|
-
var zScheduleData =
|
|
360
|
-
startTime:
|
|
468
|
+
import { z as z17 } from "zod";
|
|
469
|
+
var zScheduleData = z17.object({
|
|
470
|
+
startTime: z17.string(),
|
|
361
471
|
// String in 24 hour "HH:mm" format
|
|
362
|
-
dayOfWeek:
|
|
472
|
+
dayOfWeek: z17.number().int().min(0).max(6)
|
|
363
473
|
// integeters in 0 - 6
|
|
364
474
|
});
|
|
365
475
|
|
|
366
|
-
// src/interface/course/ageGroup.ts
|
|
367
|
-
var AgeGroup = /* @__PURE__ */ ((AgeGroup2) => {
|
|
368
|
-
AgeGroup2["ADULT"] = "Adult";
|
|
369
|
-
AgeGroup2["YOUTH"] = "Youth";
|
|
370
|
-
return AgeGroup2;
|
|
371
|
-
})(AgeGroup || {});
|
|
372
|
-
|
|
373
|
-
// src/interface/course/category.ts
|
|
374
|
-
var CourseCategory = /* @__PURE__ */ ((CourseCategory2) => {
|
|
375
|
-
CourseCategory2["GROUP"] = "group";
|
|
376
|
-
CourseCategory2["PRIVATE"] = "private";
|
|
377
|
-
CourseCategory2["SEMIPRIVATE"] = "semiprivate";
|
|
378
|
-
CourseCategory2["CAMP"] = "camp";
|
|
379
|
-
CourseCategory2["EVENT"] = "event";
|
|
380
|
-
return CourseCategory2;
|
|
381
|
-
})(CourseCategory || {});
|
|
382
|
-
|
|
383
|
-
// src/interface/course/school.ts
|
|
384
|
-
var NYIGSchool = /* @__PURE__ */ ((NYIGSchool2) => {
|
|
385
|
-
NYIGSchool2["MANHATTAN"] = "Manhattan";
|
|
386
|
-
NYIGSchool2["LITTLENECK"] = "Little Neck";
|
|
387
|
-
NYIGSchool2["ONLINE"] = "Online";
|
|
388
|
-
return NYIGSchool2;
|
|
389
|
-
})(NYIGSchool || {});
|
|
390
|
-
|
|
391
|
-
// src/interface/course/course.ts
|
|
392
|
-
import { z as z16 } from "zod";
|
|
393
|
-
var zBCourse = z16.object({
|
|
394
|
-
name: z16.string(),
|
|
395
|
-
category: z16.nativeEnum(CourseCategory),
|
|
396
|
-
/**
|
|
397
|
-
* @unit SECONDS - Duration of the course in seconds
|
|
398
|
-
*/
|
|
399
|
-
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"),
|
|
400
|
-
/**
|
|
401
|
-
* @unit CENTS - Price of the course in cents
|
|
402
|
-
*/
|
|
403
|
-
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"),
|
|
404
|
-
description: z16.string().or(z16.literal("")).optional(),
|
|
405
|
-
/**
|
|
406
|
-
* NYIG School locations
|
|
407
|
-
*/
|
|
408
|
-
nyigSchool: z16.nativeEnum(NYIGSchool),
|
|
409
|
-
/**
|
|
410
|
-
* Recommended level before taking this course
|
|
411
|
-
*/
|
|
412
|
-
recLevel: z16.string().or(z16.literal("")).optional(),
|
|
413
|
-
/**
|
|
414
|
-
* Camp tuition for half-day option
|
|
415
|
-
*/
|
|
416
|
-
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(),
|
|
417
|
-
/**
|
|
418
|
-
* Camp tuition for full-day option
|
|
419
|
-
*/
|
|
420
|
-
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(),
|
|
421
|
-
superadminOnly: z16.boolean().optional()
|
|
422
|
-
});
|
|
423
|
-
var zCourse = addAutoProps(zBCourse);
|
|
424
|
-
|
|
425
476
|
// src/interface/tracking/groupTracker.ts
|
|
426
|
-
var zBGroupTracker =
|
|
427
|
-
course:
|
|
428
|
-
teacher:
|
|
429
|
-
semester:
|
|
477
|
+
var zBGroupTracker = z18.object({
|
|
478
|
+
course: z18.string(),
|
|
479
|
+
teacher: z18.string(),
|
|
480
|
+
semester: z18.string(),
|
|
430
481
|
scheduleData: zScheduleData,
|
|
431
482
|
/**
|
|
432
483
|
* occurrences are tracked by week for Groups
|
|
433
484
|
*/
|
|
434
|
-
occurrences:
|
|
485
|
+
occurrences: z18.array(z18.coerce.date()),
|
|
435
486
|
/**
|
|
436
487
|
* attendances are tracked by week for Groups
|
|
437
488
|
*/
|
|
438
|
-
attendances:
|
|
489
|
+
attendances: z18.array(z18.string()),
|
|
439
490
|
/**
|
|
440
491
|
* public-facing ID of the course instance, e.g., 101
|
|
441
492
|
*/
|
|
442
|
-
courseId:
|
|
493
|
+
courseId: z18.string().optional(),
|
|
443
494
|
/**
|
|
444
495
|
* Age group of the class instance, e.g. "adult", "youth"
|
|
445
496
|
*/
|
|
446
|
-
ageGroup:
|
|
497
|
+
ageGroup: z18.nativeEnum(AgeGroup).optional(),
|
|
447
498
|
/**
|
|
448
499
|
* If true, the course is hidden from public view
|
|
449
500
|
*/
|
|
450
|
-
isNonPublic:
|
|
451
|
-
notes:
|
|
501
|
+
isNonPublic: z18.boolean().optional(),
|
|
502
|
+
notes: z18.string().optional()
|
|
452
503
|
});
|
|
453
504
|
var zGroupTracker = addAutoProps(zBGroupTracker);
|
|
454
505
|
|
|
455
506
|
// src/interface/booking/campBooking.ts
|
|
456
|
-
var zBCampBooking =
|
|
457
|
-
ctId:
|
|
458
|
-
isOnline:
|
|
459
|
-
classDates:
|
|
460
|
-
campOption:
|
|
461
|
-
shipping:
|
|
507
|
+
var zBCampBooking = z19.object({
|
|
508
|
+
ctId: z19.string().optional(),
|
|
509
|
+
isOnline: z19.boolean(),
|
|
510
|
+
classDates: z19.string(),
|
|
511
|
+
campOption: z19.nativeEnum(CampOption),
|
|
512
|
+
shipping: z19.boolean().optional()
|
|
462
513
|
}).merge(zBUserInfo).merge(zBPaymentInfo);
|
|
463
514
|
var zCampBooking = addAutoProps(zBCampBooking);
|
|
464
515
|
|
|
465
516
|
// src/interface/booking/groupBooking.ts
|
|
466
|
-
import { z as
|
|
467
|
-
var zBGroupBooking =
|
|
468
|
-
gtId:
|
|
469
|
-
isTrial:
|
|
470
|
-
isOnline:
|
|
471
|
-
classDate:
|
|
472
|
-
shipping:
|
|
517
|
+
import { z as z20 } from "zod";
|
|
518
|
+
var zBGroupBooking = z20.object({
|
|
519
|
+
gtId: z20.string().optional(),
|
|
520
|
+
isTrial: z20.boolean().optional(),
|
|
521
|
+
isOnline: z20.boolean(),
|
|
522
|
+
classDate: z20.string().optional(),
|
|
523
|
+
shipping: z20.boolean().optional()
|
|
473
524
|
}).merge(zBUserInfo).merge(zBPaymentInfo);
|
|
474
525
|
var zGroupBooking = addAutoProps(zBGroupBooking);
|
|
475
526
|
|
|
476
527
|
// src/interface/booking/privateBooking.ts
|
|
477
|
-
import { z as
|
|
478
|
-
var zBPrivateBooking =
|
|
479
|
-
courseId:
|
|
480
|
-
teacherId:
|
|
481
|
-
classDate:
|
|
528
|
+
import { z as z21 } from "zod";
|
|
529
|
+
var zBPrivateBooking = z21.object({
|
|
530
|
+
courseId: z21.string(),
|
|
531
|
+
teacherId: z21.string(),
|
|
532
|
+
classDate: z21.string().optional()
|
|
482
533
|
}).merge(zBUserInfo).merge(zBPaymentInfo);
|
|
483
534
|
var zPrivateBooking = addAutoProps(zBPrivateBooking);
|
|
484
535
|
|
|
485
536
|
// src/interface/public/aurora.ts
|
|
486
|
-
import { z as
|
|
487
|
-
var zTeacherDisplay =
|
|
488
|
-
name:
|
|
489
|
-
email:
|
|
490
|
-
title:
|
|
491
|
-
imageUrl:
|
|
492
|
-
bio:
|
|
493
|
-
});
|
|
494
|
-
var zCourseTable =
|
|
495
|
-
id:
|
|
496
|
-
name:
|
|
497
|
-
duration:
|
|
498
|
-
dateAndTime:
|
|
499
|
-
recommendedLevel:
|
|
500
|
-
tuition:
|
|
537
|
+
import { z as z22 } from "zod";
|
|
538
|
+
var zTeacherDisplay = z22.object({
|
|
539
|
+
name: z22.string(),
|
|
540
|
+
email: z22.string().email(),
|
|
541
|
+
title: z22.string(),
|
|
542
|
+
imageUrl: z22.string(),
|
|
543
|
+
bio: z22.string()
|
|
544
|
+
});
|
|
545
|
+
var zCourseTable = z22.object({
|
|
546
|
+
id: z22.string(),
|
|
547
|
+
name: z22.string(),
|
|
548
|
+
duration: z22.number(),
|
|
549
|
+
dateAndTime: z22.string(),
|
|
550
|
+
recommendedLevel: z22.string(),
|
|
551
|
+
tuition: z22.string()
|
|
501
552
|
});
|
|
502
553
|
|
|
503
554
|
// src/interface/public/imageDef.ts
|
|
504
|
-
import { z as
|
|
505
|
-
var zImageDef =
|
|
506
|
-
url:
|
|
507
|
-
height:
|
|
508
|
-
width:
|
|
555
|
+
import { z as z23 } from "zod";
|
|
556
|
+
var zImageDef = z23.object({
|
|
557
|
+
url: z23.string(),
|
|
558
|
+
height: z23.number(),
|
|
559
|
+
width: z23.number()
|
|
509
560
|
});
|
|
510
561
|
|
|
511
562
|
// src/interface/reporting/reportTicket.ts
|
|
512
|
-
import { z as
|
|
563
|
+
import { z as z24 } from "zod";
|
|
513
564
|
|
|
514
565
|
// src/interface/reporting/ticketStatus.ts
|
|
515
566
|
var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
|
|
@@ -521,12 +572,12 @@ var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
|
|
|
521
572
|
})(TicketStatus || {});
|
|
522
573
|
|
|
523
574
|
// src/interface/reporting/reportTicket.ts
|
|
524
|
-
var zBReportTicket =
|
|
525
|
-
requester:
|
|
526
|
-
resolver:
|
|
527
|
-
status:
|
|
528
|
-
title:
|
|
529
|
-
description:
|
|
575
|
+
var zBReportTicket = z24.object({
|
|
576
|
+
requester: z24.string(),
|
|
577
|
+
resolver: z24.string().optional(),
|
|
578
|
+
status: z24.nativeEnum(TicketStatus),
|
|
579
|
+
title: z24.string(),
|
|
580
|
+
description: z24.string()
|
|
530
581
|
});
|
|
531
582
|
var zReportTicket = addAutoProps(zBReportTicket);
|
|
532
583
|
var zReportTicketResponse = zReportTicket.extend({
|
|
@@ -534,32 +585,6 @@ var zReportTicketResponse = zReportTicket.extend({
|
|
|
534
585
|
resolver: zUser.optional()
|
|
535
586
|
});
|
|
536
587
|
|
|
537
|
-
// src/interface/semester/season.ts
|
|
538
|
-
var Season = /* @__PURE__ */ ((Season2) => {
|
|
539
|
-
Season2["FALL"] = "fall";
|
|
540
|
-
Season2["SPRING"] = "spring";
|
|
541
|
-
Season2["SUMMER"] = "summer";
|
|
542
|
-
return Season2;
|
|
543
|
-
})(Season || {});
|
|
544
|
-
|
|
545
|
-
// src/interface/semester/semester.ts
|
|
546
|
-
import { z as z24 } from "zod";
|
|
547
|
-
var zBSemester = z24.object({
|
|
548
|
-
season: z24.nativeEnum(Season),
|
|
549
|
-
year: z24.number().min(2022).max(2999),
|
|
550
|
-
startDate: z24.coerce.date(),
|
|
551
|
-
endDate: z24.coerce.date(),
|
|
552
|
-
/**
|
|
553
|
-
* Format: start, end, start, end, ...
|
|
554
|
-
*/
|
|
555
|
-
blackoutDates: z24.array(z24.coerce.date()),
|
|
556
|
-
/**
|
|
557
|
-
* List of names of some break: date range
|
|
558
|
-
*/
|
|
559
|
-
importantDates: z24.array(z24.string())
|
|
560
|
-
});
|
|
561
|
-
var zSemester = addAutoProps(zBSemester);
|
|
562
|
-
|
|
563
588
|
// src/interface/event/eConfig.ts
|
|
564
589
|
import { z as z27 } from "zod";
|
|
565
590
|
|
|
@@ -712,6 +737,7 @@ export {
|
|
|
712
737
|
Season,
|
|
713
738
|
TicketStatus,
|
|
714
739
|
zAttendance,
|
|
740
|
+
zAttendanceRequest,
|
|
715
741
|
zAttendanceResponse,
|
|
716
742
|
zBAttendance,
|
|
717
743
|
zBCampBooking,
|
|
@@ -735,8 +761,11 @@ export {
|
|
|
735
761
|
zBUserInfo,
|
|
736
762
|
zCampBooking,
|
|
737
763
|
zCampTracker,
|
|
764
|
+
zCampTrackerRequest,
|
|
765
|
+
zCampTrackerResponse,
|
|
738
766
|
zChangePasswordRequest,
|
|
739
767
|
zClassTracker,
|
|
768
|
+
zClassTrackerResponse,
|
|
740
769
|
zCourse,
|
|
741
770
|
zCourseTable,
|
|
742
771
|
zCreateAdminAccountRequest,
|