@nyig/models 0.2.38 → 0.2.39
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 +256 -33
- package/index.d.ts +256 -33
- package/index.js +7 -1
- package/index.mjs +6 -1
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -1268,6 +1268,116 @@ declare const zInvoicePackage: z.ZodObject<{
|
|
|
1268
1268
|
units: number;
|
|
1269
1269
|
}[];
|
|
1270
1270
|
}>;
|
|
1271
|
+
declare const zInvoicePackageResponse: z.ZodObject<{
|
|
1272
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1273
|
+
course: z.ZodString;
|
|
1274
|
+
price: z.ZodNumber;
|
|
1275
|
+
units: z.ZodNumber;
|
|
1276
|
+
}, "strip", z.ZodTypeAny, {
|
|
1277
|
+
course: string;
|
|
1278
|
+
price: number;
|
|
1279
|
+
units: number;
|
|
1280
|
+
}, {
|
|
1281
|
+
course: string;
|
|
1282
|
+
price: number;
|
|
1283
|
+
units: number;
|
|
1284
|
+
}>, "many">;
|
|
1285
|
+
student: z.ZodObject<{
|
|
1286
|
+
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1287
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1288
|
+
_id: z.ZodString;
|
|
1289
|
+
editedBy: z.ZodOptional<z.ZodString>;
|
|
1290
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1291
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1292
|
+
name: z.ZodString;
|
|
1293
|
+
username: z.ZodOptional<z.ZodString>;
|
|
1294
|
+
password: z.ZodOptional<z.ZodString>;
|
|
1295
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1296
|
+
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1297
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1298
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1299
|
+
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
1300
|
+
guardian: z.ZodOptional<z.ZodString>;
|
|
1301
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1302
|
+
rank: GoRank;
|
|
1303
|
+
_id: string;
|
|
1304
|
+
name: string;
|
|
1305
|
+
email?: string | undefined;
|
|
1306
|
+
address?: string | undefined;
|
|
1307
|
+
editedBy?: string | undefined;
|
|
1308
|
+
createdAt?: Date | undefined;
|
|
1309
|
+
updatedAt?: Date | undefined;
|
|
1310
|
+
username?: string | undefined;
|
|
1311
|
+
password?: string | undefined;
|
|
1312
|
+
roles?: number[] | undefined;
|
|
1313
|
+
country?: string | undefined;
|
|
1314
|
+
phoneNumber?: string | undefined;
|
|
1315
|
+
birthDate?: string | undefined;
|
|
1316
|
+
guardian?: string | undefined;
|
|
1317
|
+
}, {
|
|
1318
|
+
rank: GoRank;
|
|
1319
|
+
_id: string;
|
|
1320
|
+
name: string;
|
|
1321
|
+
email?: string | undefined;
|
|
1322
|
+
address?: string | undefined;
|
|
1323
|
+
editedBy?: string | undefined;
|
|
1324
|
+
createdAt?: Date | undefined;
|
|
1325
|
+
updatedAt?: Date | undefined;
|
|
1326
|
+
username?: string | undefined;
|
|
1327
|
+
password?: string | undefined;
|
|
1328
|
+
roles?: number[] | undefined;
|
|
1329
|
+
country?: string | undefined;
|
|
1330
|
+
phoneNumber?: string | undefined;
|
|
1331
|
+
birthDate?: string | undefined;
|
|
1332
|
+
guardian?: string | undefined;
|
|
1333
|
+
}>;
|
|
1334
|
+
}, "strip", z.ZodTypeAny, {
|
|
1335
|
+
student: {
|
|
1336
|
+
rank: GoRank;
|
|
1337
|
+
_id: string;
|
|
1338
|
+
name: string;
|
|
1339
|
+
email?: string | undefined;
|
|
1340
|
+
address?: string | undefined;
|
|
1341
|
+
editedBy?: string | undefined;
|
|
1342
|
+
createdAt?: Date | undefined;
|
|
1343
|
+
updatedAt?: Date | undefined;
|
|
1344
|
+
username?: string | undefined;
|
|
1345
|
+
password?: string | undefined;
|
|
1346
|
+
roles?: number[] | undefined;
|
|
1347
|
+
country?: string | undefined;
|
|
1348
|
+
phoneNumber?: string | undefined;
|
|
1349
|
+
birthDate?: string | undefined;
|
|
1350
|
+
guardian?: string | undefined;
|
|
1351
|
+
};
|
|
1352
|
+
items: {
|
|
1353
|
+
course: string;
|
|
1354
|
+
price: number;
|
|
1355
|
+
units: number;
|
|
1356
|
+
}[];
|
|
1357
|
+
}, {
|
|
1358
|
+
student: {
|
|
1359
|
+
rank: GoRank;
|
|
1360
|
+
_id: string;
|
|
1361
|
+
name: string;
|
|
1362
|
+
email?: string | undefined;
|
|
1363
|
+
address?: string | undefined;
|
|
1364
|
+
editedBy?: string | undefined;
|
|
1365
|
+
createdAt?: Date | undefined;
|
|
1366
|
+
updatedAt?: Date | undefined;
|
|
1367
|
+
username?: string | undefined;
|
|
1368
|
+
password?: string | undefined;
|
|
1369
|
+
roles?: number[] | undefined;
|
|
1370
|
+
country?: string | undefined;
|
|
1371
|
+
phoneNumber?: string | undefined;
|
|
1372
|
+
birthDate?: string | undefined;
|
|
1373
|
+
guardian?: string | undefined;
|
|
1374
|
+
};
|
|
1375
|
+
items: {
|
|
1376
|
+
course: string;
|
|
1377
|
+
price: number;
|
|
1378
|
+
units: number;
|
|
1379
|
+
}[];
|
|
1380
|
+
}>;
|
|
1271
1381
|
declare const zBInvoice: z.ZodObject<{
|
|
1272
1382
|
billTo: z.ZodString;
|
|
1273
1383
|
packages: z.ZodArray<z.ZodObject<{
|
|
@@ -1468,36 +1578,6 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
1468
1578
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1469
1579
|
paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
|
|
1470
1580
|
billTo: z.ZodString;
|
|
1471
|
-
packages: z.ZodArray<z.ZodObject<{
|
|
1472
|
-
student: z.ZodString;
|
|
1473
|
-
items: z.ZodArray<z.ZodObject<{
|
|
1474
|
-
course: z.ZodString;
|
|
1475
|
-
price: z.ZodNumber;
|
|
1476
|
-
units: z.ZodNumber;
|
|
1477
|
-
}, "strip", z.ZodTypeAny, {
|
|
1478
|
-
course: string;
|
|
1479
|
-
price: number;
|
|
1480
|
-
units: number;
|
|
1481
|
-
}, {
|
|
1482
|
-
course: string;
|
|
1483
|
-
price: number;
|
|
1484
|
-
units: number;
|
|
1485
|
-
}>, "many">;
|
|
1486
|
-
}, "strip", z.ZodTypeAny, {
|
|
1487
|
-
student: string;
|
|
1488
|
-
items: {
|
|
1489
|
-
course: string;
|
|
1490
|
-
price: number;
|
|
1491
|
-
units: number;
|
|
1492
|
-
}[];
|
|
1493
|
-
}, {
|
|
1494
|
-
student: string;
|
|
1495
|
-
items: {
|
|
1496
|
-
course: string;
|
|
1497
|
-
price: number;
|
|
1498
|
-
units: number;
|
|
1499
|
-
}[];
|
|
1500
|
-
}>, "many">;
|
|
1501
1581
|
discounts: z.ZodArray<z.ZodObject<{
|
|
1502
1582
|
desc: z.ZodString;
|
|
1503
1583
|
amount: z.ZodNumber;
|
|
@@ -1624,11 +1704,137 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
1624
1704
|
bio?: string | undefined;
|
|
1625
1705
|
available?: number[][][] | undefined;
|
|
1626
1706
|
}>>;
|
|
1707
|
+
packages: z.ZodArray<z.ZodObject<{
|
|
1708
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1709
|
+
course: z.ZodString;
|
|
1710
|
+
price: z.ZodNumber;
|
|
1711
|
+
units: z.ZodNumber;
|
|
1712
|
+
}, "strip", z.ZodTypeAny, {
|
|
1713
|
+
course: string;
|
|
1714
|
+
price: number;
|
|
1715
|
+
units: number;
|
|
1716
|
+
}, {
|
|
1717
|
+
course: string;
|
|
1718
|
+
price: number;
|
|
1719
|
+
units: number;
|
|
1720
|
+
}>, "many">;
|
|
1721
|
+
student: z.ZodObject<{
|
|
1722
|
+
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1723
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1724
|
+
_id: z.ZodString;
|
|
1725
|
+
editedBy: z.ZodOptional<z.ZodString>;
|
|
1726
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1727
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1728
|
+
name: z.ZodString;
|
|
1729
|
+
username: z.ZodOptional<z.ZodString>;
|
|
1730
|
+
password: z.ZodOptional<z.ZodString>;
|
|
1731
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1732
|
+
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1733
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1734
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1735
|
+
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
1736
|
+
guardian: z.ZodOptional<z.ZodString>;
|
|
1737
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1738
|
+
rank: GoRank;
|
|
1739
|
+
_id: string;
|
|
1740
|
+
name: string;
|
|
1741
|
+
email?: string | undefined;
|
|
1742
|
+
address?: string | undefined;
|
|
1743
|
+
editedBy?: string | undefined;
|
|
1744
|
+
createdAt?: Date | undefined;
|
|
1745
|
+
updatedAt?: Date | undefined;
|
|
1746
|
+
username?: string | undefined;
|
|
1747
|
+
password?: string | undefined;
|
|
1748
|
+
roles?: number[] | undefined;
|
|
1749
|
+
country?: string | undefined;
|
|
1750
|
+
phoneNumber?: string | undefined;
|
|
1751
|
+
birthDate?: string | undefined;
|
|
1752
|
+
guardian?: string | undefined;
|
|
1753
|
+
}, {
|
|
1754
|
+
rank: GoRank;
|
|
1755
|
+
_id: string;
|
|
1756
|
+
name: string;
|
|
1757
|
+
email?: string | undefined;
|
|
1758
|
+
address?: string | undefined;
|
|
1759
|
+
editedBy?: string | undefined;
|
|
1760
|
+
createdAt?: Date | undefined;
|
|
1761
|
+
updatedAt?: Date | undefined;
|
|
1762
|
+
username?: string | undefined;
|
|
1763
|
+
password?: string | undefined;
|
|
1764
|
+
roles?: number[] | undefined;
|
|
1765
|
+
country?: string | undefined;
|
|
1766
|
+
phoneNumber?: string | undefined;
|
|
1767
|
+
birthDate?: string | undefined;
|
|
1768
|
+
guardian?: string | undefined;
|
|
1769
|
+
}>;
|
|
1770
|
+
}, "strip", z.ZodTypeAny, {
|
|
1771
|
+
student: {
|
|
1772
|
+
rank: GoRank;
|
|
1773
|
+
_id: string;
|
|
1774
|
+
name: string;
|
|
1775
|
+
email?: string | undefined;
|
|
1776
|
+
address?: string | undefined;
|
|
1777
|
+
editedBy?: string | undefined;
|
|
1778
|
+
createdAt?: Date | undefined;
|
|
1779
|
+
updatedAt?: Date | undefined;
|
|
1780
|
+
username?: string | undefined;
|
|
1781
|
+
password?: string | undefined;
|
|
1782
|
+
roles?: number[] | undefined;
|
|
1783
|
+
country?: string | undefined;
|
|
1784
|
+
phoneNumber?: string | undefined;
|
|
1785
|
+
birthDate?: string | undefined;
|
|
1786
|
+
guardian?: string | undefined;
|
|
1787
|
+
};
|
|
1788
|
+
items: {
|
|
1789
|
+
course: string;
|
|
1790
|
+
price: number;
|
|
1791
|
+
units: number;
|
|
1792
|
+
}[];
|
|
1793
|
+
}, {
|
|
1794
|
+
student: {
|
|
1795
|
+
rank: GoRank;
|
|
1796
|
+
_id: string;
|
|
1797
|
+
name: string;
|
|
1798
|
+
email?: string | undefined;
|
|
1799
|
+
address?: string | undefined;
|
|
1800
|
+
editedBy?: string | undefined;
|
|
1801
|
+
createdAt?: Date | undefined;
|
|
1802
|
+
updatedAt?: Date | undefined;
|
|
1803
|
+
username?: string | undefined;
|
|
1804
|
+
password?: string | undefined;
|
|
1805
|
+
roles?: number[] | undefined;
|
|
1806
|
+
country?: string | undefined;
|
|
1807
|
+
phoneNumber?: string | undefined;
|
|
1808
|
+
birthDate?: string | undefined;
|
|
1809
|
+
guardian?: string | undefined;
|
|
1810
|
+
};
|
|
1811
|
+
items: {
|
|
1812
|
+
course: string;
|
|
1813
|
+
price: number;
|
|
1814
|
+
units: number;
|
|
1815
|
+
}[];
|
|
1816
|
+
}>, "many">;
|
|
1627
1817
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1628
1818
|
_id: string;
|
|
1629
1819
|
billTo: string;
|
|
1630
1820
|
packages: {
|
|
1631
|
-
student:
|
|
1821
|
+
student: {
|
|
1822
|
+
rank: GoRank;
|
|
1823
|
+
_id: string;
|
|
1824
|
+
name: string;
|
|
1825
|
+
email?: string | undefined;
|
|
1826
|
+
address?: string | undefined;
|
|
1827
|
+
editedBy?: string | undefined;
|
|
1828
|
+
createdAt?: Date | undefined;
|
|
1829
|
+
updatedAt?: Date | undefined;
|
|
1830
|
+
username?: string | undefined;
|
|
1831
|
+
password?: string | undefined;
|
|
1832
|
+
roles?: number[] | undefined;
|
|
1833
|
+
country?: string | undefined;
|
|
1834
|
+
phoneNumber?: string | undefined;
|
|
1835
|
+
birthDate?: string | undefined;
|
|
1836
|
+
guardian?: string | undefined;
|
|
1837
|
+
};
|
|
1632
1838
|
items: {
|
|
1633
1839
|
course: string;
|
|
1634
1840
|
price: number;
|
|
@@ -1690,7 +1896,23 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
1690
1896
|
_id: string;
|
|
1691
1897
|
billTo: string;
|
|
1692
1898
|
packages: {
|
|
1693
|
-
student:
|
|
1899
|
+
student: {
|
|
1900
|
+
rank: GoRank;
|
|
1901
|
+
_id: string;
|
|
1902
|
+
name: string;
|
|
1903
|
+
email?: string | undefined;
|
|
1904
|
+
address?: string | undefined;
|
|
1905
|
+
editedBy?: string | undefined;
|
|
1906
|
+
createdAt?: Date | undefined;
|
|
1907
|
+
updatedAt?: Date | undefined;
|
|
1908
|
+
username?: string | undefined;
|
|
1909
|
+
password?: string | undefined;
|
|
1910
|
+
roles?: number[] | undefined;
|
|
1911
|
+
country?: string | undefined;
|
|
1912
|
+
phoneNumber?: string | undefined;
|
|
1913
|
+
birthDate?: string | undefined;
|
|
1914
|
+
guardian?: string | undefined;
|
|
1915
|
+
};
|
|
1694
1916
|
items: {
|
|
1695
1917
|
course: string;
|
|
1696
1918
|
price: number;
|
|
@@ -1752,6 +1974,7 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
1752
1974
|
type Discount = z.infer<typeof zDiscount>;
|
|
1753
1975
|
type InvoiceItem = z.infer<typeof zInvoiceItem>;
|
|
1754
1976
|
type InvoicePackage = z.infer<typeof zInvoicePackage>;
|
|
1977
|
+
type InvoicePackageResponse = z.infer<typeof zInvoicePackageResponse>;
|
|
1755
1978
|
type BInvoice = z.infer<typeof zBInvoice>;
|
|
1756
1979
|
type Invoice = z.infer<typeof zInvoice>;
|
|
1757
1980
|
type InvoiceResponse = z.infer<typeof zInvoiceResponse>;
|
|
@@ -3112,4 +3335,4 @@ declare const zEventTicket: z.ZodObject<{
|
|
|
3112
3335
|
type BEventTicket = z.infer<typeof zBEventTicket>;
|
|
3113
3336
|
type EventTicket = z.infer<typeof zEventTicket>;
|
|
3114
3337
|
|
|
3115
|
-
export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type BAttendance, type BCampBooking, type BCampTracker, type BClassTracker, type BCourse, type BEventConfig, type BEventReg, type BEventTicket, type BGroupBooking, type BGroupTracker, type BInvoice, type BPaymentInfo, type BPrivateBooking, type BReportTicket, type BSemester, type BTeacherPayment, type BUser, type BUserInfo, BookingType, type CampBooking, CampOption, type CampTracker, type ClassTracker, type Course, CourseCategory, type CourseTable, type DetailsTable, type Discount, type EventConfig, type EventConfigResponse, type EventReg, type EventRegResponse, type EventTicket, type EventTicketReg, type EventTicketRegResponse, GoRank, type GroupBooking, type GroupTracker, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type InvoiceResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type ReportTicket, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, TicketStatus, type Tuition, type User, type UserRoles, zAttendance, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zClassTracker, zCourse, zCourseTable, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoiceResponse, zPrivateBooking, zReportTicket, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTuition, zUser, zUserRoles };
|
|
3338
|
+
export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type BAttendance, type BCampBooking, type BCampTracker, type BClassTracker, type BCourse, type BEventConfig, type BEventReg, type BEventTicket, type BGroupBooking, type BGroupTracker, type BInvoice, type BPaymentInfo, type BPrivateBooking, type BReportTicket, type BSemester, type BTeacherPayment, type BUser, type BUserInfo, BookingType, type CampBooking, CampOption, type CampTracker, type ClassTracker, type Course, CourseCategory, type CourseTable, type DetailsTable, type Discount, type EventConfig, type EventConfigResponse, type EventReg, type EventRegResponse, type EventTicket, type EventTicketReg, type EventTicketRegResponse, GoRank, type GroupBooking, type GroupTracker, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type InvoicePackageResponse, type InvoiceResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type ReportTicket, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, TicketStatus, type Tuition, type User, type UserRoles, zAttendance, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zClassTracker, zCourse, zCourseTable, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zPrivateBooking, zReportTicket, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTuition, zUser, zUserRoles };
|
package/index.d.ts
CHANGED
|
@@ -1268,6 +1268,116 @@ declare const zInvoicePackage: z.ZodObject<{
|
|
|
1268
1268
|
units: number;
|
|
1269
1269
|
}[];
|
|
1270
1270
|
}>;
|
|
1271
|
+
declare const zInvoicePackageResponse: z.ZodObject<{
|
|
1272
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1273
|
+
course: z.ZodString;
|
|
1274
|
+
price: z.ZodNumber;
|
|
1275
|
+
units: z.ZodNumber;
|
|
1276
|
+
}, "strip", z.ZodTypeAny, {
|
|
1277
|
+
course: string;
|
|
1278
|
+
price: number;
|
|
1279
|
+
units: number;
|
|
1280
|
+
}, {
|
|
1281
|
+
course: string;
|
|
1282
|
+
price: number;
|
|
1283
|
+
units: number;
|
|
1284
|
+
}>, "many">;
|
|
1285
|
+
student: z.ZodObject<{
|
|
1286
|
+
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1287
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1288
|
+
_id: z.ZodString;
|
|
1289
|
+
editedBy: z.ZodOptional<z.ZodString>;
|
|
1290
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1291
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1292
|
+
name: z.ZodString;
|
|
1293
|
+
username: z.ZodOptional<z.ZodString>;
|
|
1294
|
+
password: z.ZodOptional<z.ZodString>;
|
|
1295
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1296
|
+
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1297
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1298
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1299
|
+
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
1300
|
+
guardian: z.ZodOptional<z.ZodString>;
|
|
1301
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1302
|
+
rank: GoRank;
|
|
1303
|
+
_id: string;
|
|
1304
|
+
name: string;
|
|
1305
|
+
email?: string | undefined;
|
|
1306
|
+
address?: string | undefined;
|
|
1307
|
+
editedBy?: string | undefined;
|
|
1308
|
+
createdAt?: Date | undefined;
|
|
1309
|
+
updatedAt?: Date | undefined;
|
|
1310
|
+
username?: string | undefined;
|
|
1311
|
+
password?: string | undefined;
|
|
1312
|
+
roles?: number[] | undefined;
|
|
1313
|
+
country?: string | undefined;
|
|
1314
|
+
phoneNumber?: string | undefined;
|
|
1315
|
+
birthDate?: string | undefined;
|
|
1316
|
+
guardian?: string | undefined;
|
|
1317
|
+
}, {
|
|
1318
|
+
rank: GoRank;
|
|
1319
|
+
_id: string;
|
|
1320
|
+
name: string;
|
|
1321
|
+
email?: string | undefined;
|
|
1322
|
+
address?: string | undefined;
|
|
1323
|
+
editedBy?: string | undefined;
|
|
1324
|
+
createdAt?: Date | undefined;
|
|
1325
|
+
updatedAt?: Date | undefined;
|
|
1326
|
+
username?: string | undefined;
|
|
1327
|
+
password?: string | undefined;
|
|
1328
|
+
roles?: number[] | undefined;
|
|
1329
|
+
country?: string | undefined;
|
|
1330
|
+
phoneNumber?: string | undefined;
|
|
1331
|
+
birthDate?: string | undefined;
|
|
1332
|
+
guardian?: string | undefined;
|
|
1333
|
+
}>;
|
|
1334
|
+
}, "strip", z.ZodTypeAny, {
|
|
1335
|
+
student: {
|
|
1336
|
+
rank: GoRank;
|
|
1337
|
+
_id: string;
|
|
1338
|
+
name: string;
|
|
1339
|
+
email?: string | undefined;
|
|
1340
|
+
address?: string | undefined;
|
|
1341
|
+
editedBy?: string | undefined;
|
|
1342
|
+
createdAt?: Date | undefined;
|
|
1343
|
+
updatedAt?: Date | undefined;
|
|
1344
|
+
username?: string | undefined;
|
|
1345
|
+
password?: string | undefined;
|
|
1346
|
+
roles?: number[] | undefined;
|
|
1347
|
+
country?: string | undefined;
|
|
1348
|
+
phoneNumber?: string | undefined;
|
|
1349
|
+
birthDate?: string | undefined;
|
|
1350
|
+
guardian?: string | undefined;
|
|
1351
|
+
};
|
|
1352
|
+
items: {
|
|
1353
|
+
course: string;
|
|
1354
|
+
price: number;
|
|
1355
|
+
units: number;
|
|
1356
|
+
}[];
|
|
1357
|
+
}, {
|
|
1358
|
+
student: {
|
|
1359
|
+
rank: GoRank;
|
|
1360
|
+
_id: string;
|
|
1361
|
+
name: string;
|
|
1362
|
+
email?: string | undefined;
|
|
1363
|
+
address?: string | undefined;
|
|
1364
|
+
editedBy?: string | undefined;
|
|
1365
|
+
createdAt?: Date | undefined;
|
|
1366
|
+
updatedAt?: Date | undefined;
|
|
1367
|
+
username?: string | undefined;
|
|
1368
|
+
password?: string | undefined;
|
|
1369
|
+
roles?: number[] | undefined;
|
|
1370
|
+
country?: string | undefined;
|
|
1371
|
+
phoneNumber?: string | undefined;
|
|
1372
|
+
birthDate?: string | undefined;
|
|
1373
|
+
guardian?: string | undefined;
|
|
1374
|
+
};
|
|
1375
|
+
items: {
|
|
1376
|
+
course: string;
|
|
1377
|
+
price: number;
|
|
1378
|
+
units: number;
|
|
1379
|
+
}[];
|
|
1380
|
+
}>;
|
|
1271
1381
|
declare const zBInvoice: z.ZodObject<{
|
|
1272
1382
|
billTo: z.ZodString;
|
|
1273
1383
|
packages: z.ZodArray<z.ZodObject<{
|
|
@@ -1468,36 +1578,6 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
1468
1578
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1469
1579
|
paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
|
|
1470
1580
|
billTo: z.ZodString;
|
|
1471
|
-
packages: z.ZodArray<z.ZodObject<{
|
|
1472
|
-
student: z.ZodString;
|
|
1473
|
-
items: z.ZodArray<z.ZodObject<{
|
|
1474
|
-
course: z.ZodString;
|
|
1475
|
-
price: z.ZodNumber;
|
|
1476
|
-
units: z.ZodNumber;
|
|
1477
|
-
}, "strip", z.ZodTypeAny, {
|
|
1478
|
-
course: string;
|
|
1479
|
-
price: number;
|
|
1480
|
-
units: number;
|
|
1481
|
-
}, {
|
|
1482
|
-
course: string;
|
|
1483
|
-
price: number;
|
|
1484
|
-
units: number;
|
|
1485
|
-
}>, "many">;
|
|
1486
|
-
}, "strip", z.ZodTypeAny, {
|
|
1487
|
-
student: string;
|
|
1488
|
-
items: {
|
|
1489
|
-
course: string;
|
|
1490
|
-
price: number;
|
|
1491
|
-
units: number;
|
|
1492
|
-
}[];
|
|
1493
|
-
}, {
|
|
1494
|
-
student: string;
|
|
1495
|
-
items: {
|
|
1496
|
-
course: string;
|
|
1497
|
-
price: number;
|
|
1498
|
-
units: number;
|
|
1499
|
-
}[];
|
|
1500
|
-
}>, "many">;
|
|
1501
1581
|
discounts: z.ZodArray<z.ZodObject<{
|
|
1502
1582
|
desc: z.ZodString;
|
|
1503
1583
|
amount: z.ZodNumber;
|
|
@@ -1624,11 +1704,137 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
1624
1704
|
bio?: string | undefined;
|
|
1625
1705
|
available?: number[][][] | undefined;
|
|
1626
1706
|
}>>;
|
|
1707
|
+
packages: z.ZodArray<z.ZodObject<{
|
|
1708
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1709
|
+
course: z.ZodString;
|
|
1710
|
+
price: z.ZodNumber;
|
|
1711
|
+
units: z.ZodNumber;
|
|
1712
|
+
}, "strip", z.ZodTypeAny, {
|
|
1713
|
+
course: string;
|
|
1714
|
+
price: number;
|
|
1715
|
+
units: number;
|
|
1716
|
+
}, {
|
|
1717
|
+
course: string;
|
|
1718
|
+
price: number;
|
|
1719
|
+
units: number;
|
|
1720
|
+
}>, "many">;
|
|
1721
|
+
student: z.ZodObject<{
|
|
1722
|
+
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1723
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1724
|
+
_id: z.ZodString;
|
|
1725
|
+
editedBy: z.ZodOptional<z.ZodString>;
|
|
1726
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1727
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1728
|
+
name: z.ZodString;
|
|
1729
|
+
username: z.ZodOptional<z.ZodString>;
|
|
1730
|
+
password: z.ZodOptional<z.ZodString>;
|
|
1731
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1732
|
+
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1733
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1734
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1735
|
+
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
1736
|
+
guardian: z.ZodOptional<z.ZodString>;
|
|
1737
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1738
|
+
rank: GoRank;
|
|
1739
|
+
_id: string;
|
|
1740
|
+
name: string;
|
|
1741
|
+
email?: string | undefined;
|
|
1742
|
+
address?: string | undefined;
|
|
1743
|
+
editedBy?: string | undefined;
|
|
1744
|
+
createdAt?: Date | undefined;
|
|
1745
|
+
updatedAt?: Date | undefined;
|
|
1746
|
+
username?: string | undefined;
|
|
1747
|
+
password?: string | undefined;
|
|
1748
|
+
roles?: number[] | undefined;
|
|
1749
|
+
country?: string | undefined;
|
|
1750
|
+
phoneNumber?: string | undefined;
|
|
1751
|
+
birthDate?: string | undefined;
|
|
1752
|
+
guardian?: string | undefined;
|
|
1753
|
+
}, {
|
|
1754
|
+
rank: GoRank;
|
|
1755
|
+
_id: string;
|
|
1756
|
+
name: string;
|
|
1757
|
+
email?: string | undefined;
|
|
1758
|
+
address?: string | undefined;
|
|
1759
|
+
editedBy?: string | undefined;
|
|
1760
|
+
createdAt?: Date | undefined;
|
|
1761
|
+
updatedAt?: Date | undefined;
|
|
1762
|
+
username?: string | undefined;
|
|
1763
|
+
password?: string | undefined;
|
|
1764
|
+
roles?: number[] | undefined;
|
|
1765
|
+
country?: string | undefined;
|
|
1766
|
+
phoneNumber?: string | undefined;
|
|
1767
|
+
birthDate?: string | undefined;
|
|
1768
|
+
guardian?: string | undefined;
|
|
1769
|
+
}>;
|
|
1770
|
+
}, "strip", z.ZodTypeAny, {
|
|
1771
|
+
student: {
|
|
1772
|
+
rank: GoRank;
|
|
1773
|
+
_id: string;
|
|
1774
|
+
name: string;
|
|
1775
|
+
email?: string | undefined;
|
|
1776
|
+
address?: string | undefined;
|
|
1777
|
+
editedBy?: string | undefined;
|
|
1778
|
+
createdAt?: Date | undefined;
|
|
1779
|
+
updatedAt?: Date | undefined;
|
|
1780
|
+
username?: string | undefined;
|
|
1781
|
+
password?: string | undefined;
|
|
1782
|
+
roles?: number[] | undefined;
|
|
1783
|
+
country?: string | undefined;
|
|
1784
|
+
phoneNumber?: string | undefined;
|
|
1785
|
+
birthDate?: string | undefined;
|
|
1786
|
+
guardian?: string | undefined;
|
|
1787
|
+
};
|
|
1788
|
+
items: {
|
|
1789
|
+
course: string;
|
|
1790
|
+
price: number;
|
|
1791
|
+
units: number;
|
|
1792
|
+
}[];
|
|
1793
|
+
}, {
|
|
1794
|
+
student: {
|
|
1795
|
+
rank: GoRank;
|
|
1796
|
+
_id: string;
|
|
1797
|
+
name: string;
|
|
1798
|
+
email?: string | undefined;
|
|
1799
|
+
address?: string | undefined;
|
|
1800
|
+
editedBy?: string | undefined;
|
|
1801
|
+
createdAt?: Date | undefined;
|
|
1802
|
+
updatedAt?: Date | undefined;
|
|
1803
|
+
username?: string | undefined;
|
|
1804
|
+
password?: string | undefined;
|
|
1805
|
+
roles?: number[] | undefined;
|
|
1806
|
+
country?: string | undefined;
|
|
1807
|
+
phoneNumber?: string | undefined;
|
|
1808
|
+
birthDate?: string | undefined;
|
|
1809
|
+
guardian?: string | undefined;
|
|
1810
|
+
};
|
|
1811
|
+
items: {
|
|
1812
|
+
course: string;
|
|
1813
|
+
price: number;
|
|
1814
|
+
units: number;
|
|
1815
|
+
}[];
|
|
1816
|
+
}>, "many">;
|
|
1627
1817
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1628
1818
|
_id: string;
|
|
1629
1819
|
billTo: string;
|
|
1630
1820
|
packages: {
|
|
1631
|
-
student:
|
|
1821
|
+
student: {
|
|
1822
|
+
rank: GoRank;
|
|
1823
|
+
_id: string;
|
|
1824
|
+
name: string;
|
|
1825
|
+
email?: string | undefined;
|
|
1826
|
+
address?: string | undefined;
|
|
1827
|
+
editedBy?: string | undefined;
|
|
1828
|
+
createdAt?: Date | undefined;
|
|
1829
|
+
updatedAt?: Date | undefined;
|
|
1830
|
+
username?: string | undefined;
|
|
1831
|
+
password?: string | undefined;
|
|
1832
|
+
roles?: number[] | undefined;
|
|
1833
|
+
country?: string | undefined;
|
|
1834
|
+
phoneNumber?: string | undefined;
|
|
1835
|
+
birthDate?: string | undefined;
|
|
1836
|
+
guardian?: string | undefined;
|
|
1837
|
+
};
|
|
1632
1838
|
items: {
|
|
1633
1839
|
course: string;
|
|
1634
1840
|
price: number;
|
|
@@ -1690,7 +1896,23 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
1690
1896
|
_id: string;
|
|
1691
1897
|
billTo: string;
|
|
1692
1898
|
packages: {
|
|
1693
|
-
student:
|
|
1899
|
+
student: {
|
|
1900
|
+
rank: GoRank;
|
|
1901
|
+
_id: string;
|
|
1902
|
+
name: string;
|
|
1903
|
+
email?: string | undefined;
|
|
1904
|
+
address?: string | undefined;
|
|
1905
|
+
editedBy?: string | undefined;
|
|
1906
|
+
createdAt?: Date | undefined;
|
|
1907
|
+
updatedAt?: Date | undefined;
|
|
1908
|
+
username?: string | undefined;
|
|
1909
|
+
password?: string | undefined;
|
|
1910
|
+
roles?: number[] | undefined;
|
|
1911
|
+
country?: string | undefined;
|
|
1912
|
+
phoneNumber?: string | undefined;
|
|
1913
|
+
birthDate?: string | undefined;
|
|
1914
|
+
guardian?: string | undefined;
|
|
1915
|
+
};
|
|
1694
1916
|
items: {
|
|
1695
1917
|
course: string;
|
|
1696
1918
|
price: number;
|
|
@@ -1752,6 +1974,7 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
1752
1974
|
type Discount = z.infer<typeof zDiscount>;
|
|
1753
1975
|
type InvoiceItem = z.infer<typeof zInvoiceItem>;
|
|
1754
1976
|
type InvoicePackage = z.infer<typeof zInvoicePackage>;
|
|
1977
|
+
type InvoicePackageResponse = z.infer<typeof zInvoicePackageResponse>;
|
|
1755
1978
|
type BInvoice = z.infer<typeof zBInvoice>;
|
|
1756
1979
|
type Invoice = z.infer<typeof zInvoice>;
|
|
1757
1980
|
type InvoiceResponse = z.infer<typeof zInvoiceResponse>;
|
|
@@ -3112,4 +3335,4 @@ declare const zEventTicket: z.ZodObject<{
|
|
|
3112
3335
|
type BEventTicket = z.infer<typeof zBEventTicket>;
|
|
3113
3336
|
type EventTicket = z.infer<typeof zEventTicket>;
|
|
3114
3337
|
|
|
3115
|
-
export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type BAttendance, type BCampBooking, type BCampTracker, type BClassTracker, type BCourse, type BEventConfig, type BEventReg, type BEventTicket, type BGroupBooking, type BGroupTracker, type BInvoice, type BPaymentInfo, type BPrivateBooking, type BReportTicket, type BSemester, type BTeacherPayment, type BUser, type BUserInfo, BookingType, type CampBooking, CampOption, type CampTracker, type ClassTracker, type Course, CourseCategory, type CourseTable, type DetailsTable, type Discount, type EventConfig, type EventConfigResponse, type EventReg, type EventRegResponse, type EventTicket, type EventTicketReg, type EventTicketRegResponse, GoRank, type GroupBooking, type GroupTracker, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type InvoiceResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type ReportTicket, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, TicketStatus, type Tuition, type User, type UserRoles, zAttendance, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zClassTracker, zCourse, zCourseTable, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoiceResponse, zPrivateBooking, zReportTicket, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTuition, zUser, zUserRoles };
|
|
3338
|
+
export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type BAttendance, type BCampBooking, type BCampTracker, type BClassTracker, type BCourse, type BEventConfig, type BEventReg, type BEventTicket, type BGroupBooking, type BGroupTracker, type BInvoice, type BPaymentInfo, type BPrivateBooking, type BReportTicket, type BSemester, type BTeacherPayment, type BUser, type BUserInfo, BookingType, type CampBooking, CampOption, type CampTracker, type ClassTracker, type Course, CourseCategory, type CourseTable, type DetailsTable, type Discount, type EventConfig, type EventConfigResponse, type EventReg, type EventRegResponse, type EventTicket, type EventTicketReg, type EventTicketRegResponse, GoRank, type GroupBooking, type GroupTracker, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type InvoicePackageResponse, type InvoiceResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type ReportTicket, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, TicketStatus, type Tuition, type User, type UserRoles, zAttendance, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zClassTracker, zCourse, zCourseTable, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zPrivateBooking, zReportTicket, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTuition, zUser, zUserRoles };
|
package/index.js
CHANGED
|
@@ -69,6 +69,7 @@ __export(src_exports, {
|
|
|
69
69
|
zInvoice: () => zInvoice,
|
|
70
70
|
zInvoiceItem: () => zInvoiceItem,
|
|
71
71
|
zInvoicePackage: () => zInvoicePackage,
|
|
72
|
+
zInvoicePackageResponse: () => zInvoicePackageResponse,
|
|
72
73
|
zInvoiceResponse: () => zInvoiceResponse,
|
|
73
74
|
zPrivateBooking: () => zPrivateBooking,
|
|
74
75
|
zReportTicket: () => zReportTicket,
|
|
@@ -335,6 +336,9 @@ var zInvoicePackage = import_zod9.z.object({
|
|
|
335
336
|
student: import_zod9.z.string(),
|
|
336
337
|
items: import_zod9.z.array(zInvoiceItem).min(1, "Package must contain at least one item")
|
|
337
338
|
});
|
|
339
|
+
var zInvoicePackageResponse = zInvoicePackage.extend({
|
|
340
|
+
student: zStudent
|
|
341
|
+
});
|
|
338
342
|
var zBInvoice = import_zod9.z.object({
|
|
339
343
|
billTo: import_zod9.z.string().min(1, "The 'Bill To' field must not be empty"),
|
|
340
344
|
packages: import_zod9.z.array(zInvoicePackage).min(1, "Invoice must include at least one package"),
|
|
@@ -349,7 +353,8 @@ var zBInvoice = import_zod9.z.object({
|
|
|
349
353
|
var zInvoice = addAutoProps(zBInvoice);
|
|
350
354
|
var zInvoiceResponse = zInvoice.extend({
|
|
351
355
|
createdBy: zTeacher,
|
|
352
|
-
lastEditBy: zTeacher.optional()
|
|
356
|
+
lastEditBy: zTeacher.optional(),
|
|
357
|
+
packages: import_zod9.z.array(zInvoicePackageResponse)
|
|
353
358
|
});
|
|
354
359
|
|
|
355
360
|
// src/interface/payment/teacherPayment.ts
|
|
@@ -781,6 +786,7 @@ var zEventRegResponse = zEventReg.extend({
|
|
|
781
786
|
zInvoice,
|
|
782
787
|
zInvoiceItem,
|
|
783
788
|
zInvoicePackage,
|
|
789
|
+
zInvoicePackageResponse,
|
|
784
790
|
zInvoiceResponse,
|
|
785
791
|
zPrivateBooking,
|
|
786
792
|
zReportTicket,
|
package/index.mjs
CHANGED
|
@@ -246,6 +246,9 @@ var zInvoicePackage = z9.object({
|
|
|
246
246
|
student: z9.string(),
|
|
247
247
|
items: z9.array(zInvoiceItem).min(1, "Package must contain at least one item")
|
|
248
248
|
});
|
|
249
|
+
var zInvoicePackageResponse = zInvoicePackage.extend({
|
|
250
|
+
student: zStudent
|
|
251
|
+
});
|
|
249
252
|
var zBInvoice = z9.object({
|
|
250
253
|
billTo: z9.string().min(1, "The 'Bill To' field must not be empty"),
|
|
251
254
|
packages: z9.array(zInvoicePackage).min(1, "Invoice must include at least one package"),
|
|
@@ -260,7 +263,8 @@ var zBInvoice = z9.object({
|
|
|
260
263
|
var zInvoice = addAutoProps(zBInvoice);
|
|
261
264
|
var zInvoiceResponse = zInvoice.extend({
|
|
262
265
|
createdBy: zTeacher,
|
|
263
|
-
lastEditBy: zTeacher.optional()
|
|
266
|
+
lastEditBy: zTeacher.optional(),
|
|
267
|
+
packages: z9.array(zInvoicePackageResponse)
|
|
264
268
|
});
|
|
265
269
|
|
|
266
270
|
// src/interface/payment/teacherPayment.ts
|
|
@@ -691,6 +695,7 @@ export {
|
|
|
691
695
|
zInvoice,
|
|
692
696
|
zInvoiceItem,
|
|
693
697
|
zInvoicePackage,
|
|
698
|
+
zInvoicePackageResponse,
|
|
694
699
|
zInvoiceResponse,
|
|
695
700
|
zPrivateBooking,
|
|
696
701
|
zReportTicket,
|