@nyig/models 0.3.12 → 0.3.14
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 +268 -76
- package/index.d.ts +268 -76
- package/index.js +2 -7
- package/index.mjs +2 -6
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -1166,7 +1166,57 @@ declare const zBCampTracker: z.ZodObject<{
|
|
|
1166
1166
|
/**
|
|
1167
1167
|
* attendances are tracked by week for camps
|
|
1168
1168
|
*/
|
|
1169
|
-
attendances: z.ZodArray<z.
|
|
1169
|
+
attendances: z.ZodArray<z.ZodObject<{
|
|
1170
|
+
editedBy: z.ZodOptional<z.ZodString>;
|
|
1171
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1172
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1173
|
+
student: z.ZodString;
|
|
1174
|
+
states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
|
|
1175
|
+
tuition: z.ZodOptional<z.ZodObject<{
|
|
1176
|
+
primary: z.ZodNumber;
|
|
1177
|
+
textbook: z.ZodOptional<z.ZodBoolean>;
|
|
1178
|
+
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
1179
|
+
}, "strip", z.ZodTypeAny, {
|
|
1180
|
+
primary: number;
|
|
1181
|
+
textbook?: boolean | undefined;
|
|
1182
|
+
shipping?: boolean | undefined;
|
|
1183
|
+
}, {
|
|
1184
|
+
primary: number;
|
|
1185
|
+
textbook?: boolean | undefined;
|
|
1186
|
+
shipping?: boolean | undefined;
|
|
1187
|
+
}>>;
|
|
1188
|
+
paid: z.ZodOptional<z.ZodBoolean>;
|
|
1189
|
+
campOption: z.ZodOptional<z.ZodNativeEnum<typeof CampOption>>;
|
|
1190
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
1191
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1192
|
+
student: string;
|
|
1193
|
+
states: AttendState[];
|
|
1194
|
+
editedBy?: string | undefined;
|
|
1195
|
+
createdAt?: string | undefined;
|
|
1196
|
+
updatedAt?: string | undefined;
|
|
1197
|
+
tuition?: {
|
|
1198
|
+
primary: number;
|
|
1199
|
+
textbook?: boolean | undefined;
|
|
1200
|
+
shipping?: boolean | undefined;
|
|
1201
|
+
} | undefined;
|
|
1202
|
+
paid?: boolean | undefined;
|
|
1203
|
+
campOption?: CampOption | undefined;
|
|
1204
|
+
_id?: string | undefined;
|
|
1205
|
+
}, {
|
|
1206
|
+
student: string;
|
|
1207
|
+
states: AttendState[];
|
|
1208
|
+
editedBy?: string | undefined;
|
|
1209
|
+
createdAt?: string | undefined;
|
|
1210
|
+
updatedAt?: string | undefined;
|
|
1211
|
+
tuition?: {
|
|
1212
|
+
primary: number;
|
|
1213
|
+
textbook?: boolean | undefined;
|
|
1214
|
+
shipping?: boolean | undefined;
|
|
1215
|
+
} | undefined;
|
|
1216
|
+
paid?: boolean | undefined;
|
|
1217
|
+
campOption?: CampOption | undefined;
|
|
1218
|
+
_id?: string | undefined;
|
|
1219
|
+
}>, "many">;
|
|
1170
1220
|
publicDescription: z.ZodOptional<z.ZodString>;
|
|
1171
1221
|
isNonPublic: z.ZodOptional<z.ZodBoolean>;
|
|
1172
1222
|
notes: z.ZodOptional<z.ZodString>;
|
|
@@ -1175,7 +1225,21 @@ declare const zBCampTracker: z.ZodObject<{
|
|
|
1175
1225
|
teacher: string;
|
|
1176
1226
|
semester: string;
|
|
1177
1227
|
occurrences: string[];
|
|
1178
|
-
attendances:
|
|
1228
|
+
attendances: {
|
|
1229
|
+
student: string;
|
|
1230
|
+
states: AttendState[];
|
|
1231
|
+
editedBy?: string | undefined;
|
|
1232
|
+
createdAt?: string | undefined;
|
|
1233
|
+
updatedAt?: string | undefined;
|
|
1234
|
+
tuition?: {
|
|
1235
|
+
primary: number;
|
|
1236
|
+
textbook?: boolean | undefined;
|
|
1237
|
+
shipping?: boolean | undefined;
|
|
1238
|
+
} | undefined;
|
|
1239
|
+
paid?: boolean | undefined;
|
|
1240
|
+
campOption?: CampOption | undefined;
|
|
1241
|
+
_id?: string | undefined;
|
|
1242
|
+
}[];
|
|
1179
1243
|
publicDescription?: string | undefined;
|
|
1180
1244
|
isNonPublic?: boolean | undefined;
|
|
1181
1245
|
notes?: string | undefined;
|
|
@@ -1184,7 +1248,21 @@ declare const zBCampTracker: z.ZodObject<{
|
|
|
1184
1248
|
teacher: string;
|
|
1185
1249
|
semester: string;
|
|
1186
1250
|
occurrences: string[];
|
|
1187
|
-
attendances:
|
|
1251
|
+
attendances: {
|
|
1252
|
+
student: string;
|
|
1253
|
+
states: AttendState[];
|
|
1254
|
+
editedBy?: string | undefined;
|
|
1255
|
+
createdAt?: string | undefined;
|
|
1256
|
+
updatedAt?: string | undefined;
|
|
1257
|
+
tuition?: {
|
|
1258
|
+
primary: number;
|
|
1259
|
+
textbook?: boolean | undefined;
|
|
1260
|
+
shipping?: boolean | undefined;
|
|
1261
|
+
} | undefined;
|
|
1262
|
+
paid?: boolean | undefined;
|
|
1263
|
+
campOption?: CampOption | undefined;
|
|
1264
|
+
_id?: string | undefined;
|
|
1265
|
+
}[];
|
|
1188
1266
|
publicDescription?: string | undefined;
|
|
1189
1267
|
isNonPublic?: boolean | undefined;
|
|
1190
1268
|
notes?: string | undefined;
|
|
@@ -1195,52 +1273,6 @@ declare const zCampTracker: z.ZodObject<{
|
|
|
1195
1273
|
teacher: z.ZodString;
|
|
1196
1274
|
semester: z.ZodString;
|
|
1197
1275
|
occurrences: z.ZodArray<z.ZodString, "many">;
|
|
1198
|
-
attendances: z.ZodArray<z.ZodString, "many">;
|
|
1199
|
-
publicDescription: z.ZodOptional<z.ZodString>;
|
|
1200
|
-
isNonPublic: z.ZodOptional<z.ZodBoolean>;
|
|
1201
|
-
_id: z.ZodString;
|
|
1202
|
-
editedBy: z.ZodOptional<z.ZodString>;
|
|
1203
|
-
createdAt: z.ZodOptional<z.ZodString>;
|
|
1204
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1205
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1206
|
-
_id: string;
|
|
1207
|
-
course: string;
|
|
1208
|
-
teacher: string;
|
|
1209
|
-
semester: string;
|
|
1210
|
-
occurrences: string[];
|
|
1211
|
-
attendances: string[];
|
|
1212
|
-
notes?: string | undefined;
|
|
1213
|
-
publicDescription?: string | undefined;
|
|
1214
|
-
isNonPublic?: boolean | undefined;
|
|
1215
|
-
editedBy?: string | undefined;
|
|
1216
|
-
createdAt?: string | undefined;
|
|
1217
|
-
updatedAt?: string | undefined;
|
|
1218
|
-
}, {
|
|
1219
|
-
_id: string;
|
|
1220
|
-
course: string;
|
|
1221
|
-
teacher: string;
|
|
1222
|
-
semester: string;
|
|
1223
|
-
occurrences: string[];
|
|
1224
|
-
attendances: string[];
|
|
1225
|
-
notes?: string | undefined;
|
|
1226
|
-
publicDescription?: string | undefined;
|
|
1227
|
-
isNonPublic?: boolean | undefined;
|
|
1228
|
-
editedBy?: string | undefined;
|
|
1229
|
-
createdAt?: string | undefined;
|
|
1230
|
-
updatedAt?: string | undefined;
|
|
1231
|
-
}>;
|
|
1232
|
-
declare const zCampTrackerRequest: z.ZodObject<{
|
|
1233
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
1234
|
-
_id: z.ZodString;
|
|
1235
|
-
editedBy: z.ZodOptional<z.ZodString>;
|
|
1236
|
-
createdAt: z.ZodOptional<z.ZodString>;
|
|
1237
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1238
|
-
course: z.ZodString;
|
|
1239
|
-
teacher: z.ZodString;
|
|
1240
|
-
semester: z.ZodString;
|
|
1241
|
-
occurrences: z.ZodArray<z.ZodString, "many">;
|
|
1242
|
-
publicDescription: z.ZodOptional<z.ZodString>;
|
|
1243
|
-
isNonPublic: z.ZodOptional<z.ZodBoolean>;
|
|
1244
1276
|
attendances: z.ZodArray<z.ZodObject<{
|
|
1245
1277
|
editedBy: z.ZodOptional<z.ZodString>;
|
|
1246
1278
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -1292,6 +1324,12 @@ declare const zCampTrackerRequest: z.ZodObject<{
|
|
|
1292
1324
|
campOption?: CampOption | undefined;
|
|
1293
1325
|
_id?: string | undefined;
|
|
1294
1326
|
}>, "many">;
|
|
1327
|
+
publicDescription: z.ZodOptional<z.ZodString>;
|
|
1328
|
+
isNonPublic: z.ZodOptional<z.ZodBoolean>;
|
|
1329
|
+
_id: z.ZodString;
|
|
1330
|
+
editedBy: z.ZodOptional<z.ZodString>;
|
|
1331
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1332
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1295
1333
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1296
1334
|
_id: string;
|
|
1297
1335
|
course: string;
|
|
@@ -1314,11 +1352,11 @@ declare const zCampTrackerRequest: z.ZodObject<{
|
|
|
1314
1352
|
_id?: string | undefined;
|
|
1315
1353
|
}[];
|
|
1316
1354
|
notes?: string | undefined;
|
|
1355
|
+
publicDescription?: string | undefined;
|
|
1356
|
+
isNonPublic?: boolean | undefined;
|
|
1317
1357
|
editedBy?: string | undefined;
|
|
1318
1358
|
createdAt?: string | undefined;
|
|
1319
1359
|
updatedAt?: string | undefined;
|
|
1320
|
-
publicDescription?: string | undefined;
|
|
1321
|
-
isNonPublic?: boolean | undefined;
|
|
1322
1360
|
}, {
|
|
1323
1361
|
_id: string;
|
|
1324
1362
|
course: string;
|
|
@@ -1341,11 +1379,11 @@ declare const zCampTrackerRequest: z.ZodObject<{
|
|
|
1341
1379
|
_id?: string | undefined;
|
|
1342
1380
|
}[];
|
|
1343
1381
|
notes?: string | undefined;
|
|
1382
|
+
publicDescription?: string | undefined;
|
|
1383
|
+
isNonPublic?: boolean | undefined;
|
|
1344
1384
|
editedBy?: string | undefined;
|
|
1345
1385
|
createdAt?: string | undefined;
|
|
1346
1386
|
updatedAt?: string | undefined;
|
|
1347
|
-
publicDescription?: string | undefined;
|
|
1348
|
-
isNonPublic?: boolean | undefined;
|
|
1349
1387
|
}>;
|
|
1350
1388
|
declare const zCampTrackerResponse: z.ZodObject<{
|
|
1351
1389
|
notes: z.ZodOptional<z.ZodString>;
|
|
@@ -1518,7 +1556,10 @@ declare const zCampTrackerResponse: z.ZodObject<{
|
|
|
1518
1556
|
updatedAt?: string | undefined;
|
|
1519
1557
|
}>;
|
|
1520
1558
|
attendances: z.ZodArray<z.ZodObject<{
|
|
1521
|
-
|
|
1559
|
+
_id: z.ZodString;
|
|
1560
|
+
editedBy: z.ZodOptional<z.ZodString>;
|
|
1561
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1562
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1522
1563
|
states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
|
|
1523
1564
|
tuition: z.ZodOptional<z.ZodObject<{
|
|
1524
1565
|
primary: z.ZodNumber;
|
|
@@ -1535,14 +1576,106 @@ declare const zCampTrackerResponse: z.ZodObject<{
|
|
|
1535
1576
|
}>>;
|
|
1536
1577
|
paid: z.ZodOptional<z.ZodBoolean>;
|
|
1537
1578
|
campOption: z.ZodOptional<z.ZodNativeEnum<typeof CampOption>>;
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1579
|
+
student: z.ZodObject<{
|
|
1580
|
+
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
1581
|
+
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1582
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1583
|
+
name: z.ZodString;
|
|
1584
|
+
username: z.ZodOptional<z.ZodString>;
|
|
1585
|
+
password: z.ZodOptional<z.ZodString>;
|
|
1586
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
1587
|
+
user: z.ZodNumber;
|
|
1588
|
+
admin: z.ZodOptional<z.ZodNumber>;
|
|
1589
|
+
superadmin: z.ZodOptional<z.ZodNumber>;
|
|
1590
|
+
}, "strip", z.ZodTypeAny, {
|
|
1591
|
+
user: number;
|
|
1592
|
+
admin?: number | undefined;
|
|
1593
|
+
superadmin?: number | undefined;
|
|
1594
|
+
}, {
|
|
1595
|
+
user: number;
|
|
1596
|
+
admin?: number | undefined;
|
|
1597
|
+
superadmin?: number | undefined;
|
|
1598
|
+
}>>;
|
|
1599
|
+
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1600
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1601
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1602
|
+
shouldChangePassword: z.ZodOptional<z.ZodBoolean>;
|
|
1603
|
+
guardian: z.ZodOptional<z.ZodString>;
|
|
1604
|
+
_id: z.ZodString;
|
|
1605
|
+
editedBy: z.ZodOptional<z.ZodString>;
|
|
1606
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1607
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1608
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1609
|
+
rank: GoRank;
|
|
1610
|
+
_id: string;
|
|
1611
|
+
name: string;
|
|
1612
|
+
email?: string | undefined;
|
|
1613
|
+
address?: string | undefined;
|
|
1614
|
+
username?: string | undefined;
|
|
1615
|
+
password?: string | undefined;
|
|
1616
|
+
roles?: {
|
|
1617
|
+
user: number;
|
|
1618
|
+
admin?: number | undefined;
|
|
1619
|
+
superadmin?: number | undefined;
|
|
1620
|
+
} | undefined;
|
|
1621
|
+
country?: string | undefined;
|
|
1622
|
+
phoneNumber?: string | undefined;
|
|
1623
|
+
birthDate?: string | undefined;
|
|
1624
|
+
shouldChangePassword?: boolean | undefined;
|
|
1625
|
+
guardian?: string | undefined;
|
|
1626
|
+
editedBy?: string | undefined;
|
|
1627
|
+
createdAt?: string | undefined;
|
|
1628
|
+
updatedAt?: string | undefined;
|
|
1629
|
+
}, {
|
|
1630
|
+
rank: GoRank;
|
|
1631
|
+
_id: string;
|
|
1632
|
+
name: string;
|
|
1633
|
+
email?: string | undefined;
|
|
1634
|
+
address?: string | undefined;
|
|
1635
|
+
username?: string | undefined;
|
|
1636
|
+
password?: string | undefined;
|
|
1637
|
+
roles?: {
|
|
1638
|
+
user: number;
|
|
1639
|
+
admin?: number | undefined;
|
|
1640
|
+
superadmin?: number | undefined;
|
|
1641
|
+
} | undefined;
|
|
1642
|
+
country?: string | undefined;
|
|
1643
|
+
phoneNumber?: string | undefined;
|
|
1644
|
+
birthDate?: string | undefined;
|
|
1645
|
+
shouldChangePassword?: boolean | undefined;
|
|
1646
|
+
guardian?: string | undefined;
|
|
1647
|
+
editedBy?: string | undefined;
|
|
1648
|
+
createdAt?: string | undefined;
|
|
1649
|
+
updatedAt?: string | undefined;
|
|
1650
|
+
}>;
|
|
1542
1651
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1543
1652
|
_id: string;
|
|
1544
|
-
student:
|
|
1653
|
+
student: {
|
|
1654
|
+
rank: GoRank;
|
|
1655
|
+
_id: string;
|
|
1656
|
+
name: string;
|
|
1657
|
+
email?: string | undefined;
|
|
1658
|
+
address?: string | undefined;
|
|
1659
|
+
username?: string | undefined;
|
|
1660
|
+
password?: string | undefined;
|
|
1661
|
+
roles?: {
|
|
1662
|
+
user: number;
|
|
1663
|
+
admin?: number | undefined;
|
|
1664
|
+
superadmin?: number | undefined;
|
|
1665
|
+
} | undefined;
|
|
1666
|
+
country?: string | undefined;
|
|
1667
|
+
phoneNumber?: string | undefined;
|
|
1668
|
+
birthDate?: string | undefined;
|
|
1669
|
+
shouldChangePassword?: boolean | undefined;
|
|
1670
|
+
guardian?: string | undefined;
|
|
1671
|
+
editedBy?: string | undefined;
|
|
1672
|
+
createdAt?: string | undefined;
|
|
1673
|
+
updatedAt?: string | undefined;
|
|
1674
|
+
};
|
|
1545
1675
|
states: AttendState[];
|
|
1676
|
+
editedBy?: string | undefined;
|
|
1677
|
+
createdAt?: string | undefined;
|
|
1678
|
+
updatedAt?: string | undefined;
|
|
1546
1679
|
tuition?: {
|
|
1547
1680
|
primary: number;
|
|
1548
1681
|
textbook?: boolean | undefined;
|
|
@@ -1550,13 +1683,34 @@ declare const zCampTrackerResponse: z.ZodObject<{
|
|
|
1550
1683
|
} | undefined;
|
|
1551
1684
|
paid?: boolean | undefined;
|
|
1552
1685
|
campOption?: CampOption | undefined;
|
|
1553
|
-
editedBy?: string | undefined;
|
|
1554
|
-
createdAt?: string | undefined;
|
|
1555
|
-
updatedAt?: string | undefined;
|
|
1556
1686
|
}, {
|
|
1557
1687
|
_id: string;
|
|
1558
|
-
student:
|
|
1688
|
+
student: {
|
|
1689
|
+
rank: GoRank;
|
|
1690
|
+
_id: string;
|
|
1691
|
+
name: string;
|
|
1692
|
+
email?: string | undefined;
|
|
1693
|
+
address?: string | undefined;
|
|
1694
|
+
username?: string | undefined;
|
|
1695
|
+
password?: string | undefined;
|
|
1696
|
+
roles?: {
|
|
1697
|
+
user: number;
|
|
1698
|
+
admin?: number | undefined;
|
|
1699
|
+
superadmin?: number | undefined;
|
|
1700
|
+
} | undefined;
|
|
1701
|
+
country?: string | undefined;
|
|
1702
|
+
phoneNumber?: string | undefined;
|
|
1703
|
+
birthDate?: string | undefined;
|
|
1704
|
+
shouldChangePassword?: boolean | undefined;
|
|
1705
|
+
guardian?: string | undefined;
|
|
1706
|
+
editedBy?: string | undefined;
|
|
1707
|
+
createdAt?: string | undefined;
|
|
1708
|
+
updatedAt?: string | undefined;
|
|
1709
|
+
};
|
|
1559
1710
|
states: AttendState[];
|
|
1711
|
+
editedBy?: string | undefined;
|
|
1712
|
+
createdAt?: string | undefined;
|
|
1713
|
+
updatedAt?: string | undefined;
|
|
1560
1714
|
tuition?: {
|
|
1561
1715
|
primary: number;
|
|
1562
1716
|
textbook?: boolean | undefined;
|
|
@@ -1564,9 +1718,6 @@ declare const zCampTrackerResponse: z.ZodObject<{
|
|
|
1564
1718
|
} | undefined;
|
|
1565
1719
|
paid?: boolean | undefined;
|
|
1566
1720
|
campOption?: CampOption | undefined;
|
|
1567
|
-
editedBy?: string | undefined;
|
|
1568
|
-
createdAt?: string | undefined;
|
|
1569
|
-
updatedAt?: string | undefined;
|
|
1570
1721
|
}>, "many">;
|
|
1571
1722
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1572
1723
|
_id: string;
|
|
@@ -1626,8 +1777,32 @@ declare const zCampTrackerResponse: z.ZodObject<{
|
|
|
1626
1777
|
occurrences: string[];
|
|
1627
1778
|
attendances: {
|
|
1628
1779
|
_id: string;
|
|
1629
|
-
student:
|
|
1780
|
+
student: {
|
|
1781
|
+
rank: GoRank;
|
|
1782
|
+
_id: string;
|
|
1783
|
+
name: string;
|
|
1784
|
+
email?: string | undefined;
|
|
1785
|
+
address?: string | undefined;
|
|
1786
|
+
username?: string | undefined;
|
|
1787
|
+
password?: string | undefined;
|
|
1788
|
+
roles?: {
|
|
1789
|
+
user: number;
|
|
1790
|
+
admin?: number | undefined;
|
|
1791
|
+
superadmin?: number | undefined;
|
|
1792
|
+
} | undefined;
|
|
1793
|
+
country?: string | undefined;
|
|
1794
|
+
phoneNumber?: string | undefined;
|
|
1795
|
+
birthDate?: string | undefined;
|
|
1796
|
+
shouldChangePassword?: boolean | undefined;
|
|
1797
|
+
guardian?: string | undefined;
|
|
1798
|
+
editedBy?: string | undefined;
|
|
1799
|
+
createdAt?: string | undefined;
|
|
1800
|
+
updatedAt?: string | undefined;
|
|
1801
|
+
};
|
|
1630
1802
|
states: AttendState[];
|
|
1803
|
+
editedBy?: string | undefined;
|
|
1804
|
+
createdAt?: string | undefined;
|
|
1805
|
+
updatedAt?: string | undefined;
|
|
1631
1806
|
tuition?: {
|
|
1632
1807
|
primary: number;
|
|
1633
1808
|
textbook?: boolean | undefined;
|
|
@@ -1635,9 +1810,6 @@ declare const zCampTrackerResponse: z.ZodObject<{
|
|
|
1635
1810
|
} | undefined;
|
|
1636
1811
|
paid?: boolean | undefined;
|
|
1637
1812
|
campOption?: CampOption | undefined;
|
|
1638
|
-
editedBy?: string | undefined;
|
|
1639
|
-
createdAt?: string | undefined;
|
|
1640
|
-
updatedAt?: string | undefined;
|
|
1641
1813
|
}[];
|
|
1642
1814
|
notes?: string | undefined;
|
|
1643
1815
|
editedBy?: string | undefined;
|
|
@@ -1703,8 +1875,32 @@ declare const zCampTrackerResponse: z.ZodObject<{
|
|
|
1703
1875
|
occurrences: string[];
|
|
1704
1876
|
attendances: {
|
|
1705
1877
|
_id: string;
|
|
1706
|
-
student:
|
|
1878
|
+
student: {
|
|
1879
|
+
rank: GoRank;
|
|
1880
|
+
_id: string;
|
|
1881
|
+
name: string;
|
|
1882
|
+
email?: string | undefined;
|
|
1883
|
+
address?: string | undefined;
|
|
1884
|
+
username?: string | undefined;
|
|
1885
|
+
password?: string | undefined;
|
|
1886
|
+
roles?: {
|
|
1887
|
+
user: number;
|
|
1888
|
+
admin?: number | undefined;
|
|
1889
|
+
superadmin?: number | undefined;
|
|
1890
|
+
} | undefined;
|
|
1891
|
+
country?: string | undefined;
|
|
1892
|
+
phoneNumber?: string | undefined;
|
|
1893
|
+
birthDate?: string | undefined;
|
|
1894
|
+
shouldChangePassword?: boolean | undefined;
|
|
1895
|
+
guardian?: string | undefined;
|
|
1896
|
+
editedBy?: string | undefined;
|
|
1897
|
+
createdAt?: string | undefined;
|
|
1898
|
+
updatedAt?: string | undefined;
|
|
1899
|
+
};
|
|
1707
1900
|
states: AttendState[];
|
|
1901
|
+
editedBy?: string | undefined;
|
|
1902
|
+
createdAt?: string | undefined;
|
|
1903
|
+
updatedAt?: string | undefined;
|
|
1708
1904
|
tuition?: {
|
|
1709
1905
|
primary: number;
|
|
1710
1906
|
textbook?: boolean | undefined;
|
|
@@ -1712,9 +1908,6 @@ declare const zCampTrackerResponse: z.ZodObject<{
|
|
|
1712
1908
|
} | undefined;
|
|
1713
1909
|
paid?: boolean | undefined;
|
|
1714
1910
|
campOption?: CampOption | undefined;
|
|
1715
|
-
editedBy?: string | undefined;
|
|
1716
|
-
createdAt?: string | undefined;
|
|
1717
|
-
updatedAt?: string | undefined;
|
|
1718
1911
|
}[];
|
|
1719
1912
|
notes?: string | undefined;
|
|
1720
1913
|
editedBy?: string | undefined;
|
|
@@ -1725,7 +1918,6 @@ declare const zCampTrackerResponse: z.ZodObject<{
|
|
|
1725
1918
|
}>;
|
|
1726
1919
|
type BCampTracker = z.infer<typeof zBCampTracker>;
|
|
1727
1920
|
type CampTracker = z.infer<typeof zCampTracker>;
|
|
1728
|
-
type CampTrackerRequest = z.infer<typeof zCampTrackerRequest>;
|
|
1729
1921
|
type CampTrackerResponse = z.infer<typeof zCampTrackerResponse>;
|
|
1730
1922
|
|
|
1731
1923
|
declare const zBClassTracker: z.ZodObject<{
|
|
@@ -5203,4 +5395,4 @@ declare const zEventTicket: z.ZodObject<{
|
|
|
5203
5395
|
type BEventTicket = z.infer<typeof zBEventTicket>;
|
|
5204
5396
|
type EventTicket = z.infer<typeof zEventTicket>;
|
|
5205
5397
|
|
|
5206
|
-
export { AgeGroup, AttendState, type Attendance, type AttendanceRequest, type AttendanceResponse, 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 BStudent, type BTeacher, type BTeacherPayment, type BUser, type BUserInfo, BookingType, type CampBooking, CampOption, type CampTracker, type
|
|
5398
|
+
export { AgeGroup, AttendState, type Attendance, type AttendanceRequest, type AttendanceResponse, 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 BStudent, type BTeacher, type BTeacherPayment, type BUser, type BUserInfo, BookingType, type CampBooking, CampOption, type CampTracker, type CampTrackerResponse, type ChangePasswordRequest, type ClassTracker, type ClassTrackerResponse, type Course, CourseCategory, type CourseTable, type CreateAdminAccountRequest, 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 LoginRequest, type LoginResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type ReportTicket, type ReportTicketResponse, Role, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, type TeacherResponse, TicketStatus, type Tuition, type User, type UserRoles, zAttendance, zAttendanceRequest, zAttendanceResponse, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBStudent, zBTeacher, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zCampTrackerResponse, zChangePasswordRequest, zClassTracker, zClassTrackerResponse, zCourse, zCourseTable, zCreateAdminAccountRequest, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zLoginRequest, zLoginResponse, zPrivateBooking, zReportTicket, zReportTicketResponse, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTuition, zUser, zUserRoles };
|
package/index.d.ts
CHANGED
|
@@ -1166,7 +1166,57 @@ declare const zBCampTracker: z.ZodObject<{
|
|
|
1166
1166
|
/**
|
|
1167
1167
|
* attendances are tracked by week for camps
|
|
1168
1168
|
*/
|
|
1169
|
-
attendances: z.ZodArray<z.
|
|
1169
|
+
attendances: z.ZodArray<z.ZodObject<{
|
|
1170
|
+
editedBy: z.ZodOptional<z.ZodString>;
|
|
1171
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1172
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1173
|
+
student: z.ZodString;
|
|
1174
|
+
states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
|
|
1175
|
+
tuition: z.ZodOptional<z.ZodObject<{
|
|
1176
|
+
primary: z.ZodNumber;
|
|
1177
|
+
textbook: z.ZodOptional<z.ZodBoolean>;
|
|
1178
|
+
shipping: z.ZodOptional<z.ZodBoolean>;
|
|
1179
|
+
}, "strip", z.ZodTypeAny, {
|
|
1180
|
+
primary: number;
|
|
1181
|
+
textbook?: boolean | undefined;
|
|
1182
|
+
shipping?: boolean | undefined;
|
|
1183
|
+
}, {
|
|
1184
|
+
primary: number;
|
|
1185
|
+
textbook?: boolean | undefined;
|
|
1186
|
+
shipping?: boolean | undefined;
|
|
1187
|
+
}>>;
|
|
1188
|
+
paid: z.ZodOptional<z.ZodBoolean>;
|
|
1189
|
+
campOption: z.ZodOptional<z.ZodNativeEnum<typeof CampOption>>;
|
|
1190
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
1191
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1192
|
+
student: string;
|
|
1193
|
+
states: AttendState[];
|
|
1194
|
+
editedBy?: string | undefined;
|
|
1195
|
+
createdAt?: string | undefined;
|
|
1196
|
+
updatedAt?: string | undefined;
|
|
1197
|
+
tuition?: {
|
|
1198
|
+
primary: number;
|
|
1199
|
+
textbook?: boolean | undefined;
|
|
1200
|
+
shipping?: boolean | undefined;
|
|
1201
|
+
} | undefined;
|
|
1202
|
+
paid?: boolean | undefined;
|
|
1203
|
+
campOption?: CampOption | undefined;
|
|
1204
|
+
_id?: string | undefined;
|
|
1205
|
+
}, {
|
|
1206
|
+
student: string;
|
|
1207
|
+
states: AttendState[];
|
|
1208
|
+
editedBy?: string | undefined;
|
|
1209
|
+
createdAt?: string | undefined;
|
|
1210
|
+
updatedAt?: string | undefined;
|
|
1211
|
+
tuition?: {
|
|
1212
|
+
primary: number;
|
|
1213
|
+
textbook?: boolean | undefined;
|
|
1214
|
+
shipping?: boolean | undefined;
|
|
1215
|
+
} | undefined;
|
|
1216
|
+
paid?: boolean | undefined;
|
|
1217
|
+
campOption?: CampOption | undefined;
|
|
1218
|
+
_id?: string | undefined;
|
|
1219
|
+
}>, "many">;
|
|
1170
1220
|
publicDescription: z.ZodOptional<z.ZodString>;
|
|
1171
1221
|
isNonPublic: z.ZodOptional<z.ZodBoolean>;
|
|
1172
1222
|
notes: z.ZodOptional<z.ZodString>;
|
|
@@ -1175,7 +1225,21 @@ declare const zBCampTracker: z.ZodObject<{
|
|
|
1175
1225
|
teacher: string;
|
|
1176
1226
|
semester: string;
|
|
1177
1227
|
occurrences: string[];
|
|
1178
|
-
attendances:
|
|
1228
|
+
attendances: {
|
|
1229
|
+
student: string;
|
|
1230
|
+
states: AttendState[];
|
|
1231
|
+
editedBy?: string | undefined;
|
|
1232
|
+
createdAt?: string | undefined;
|
|
1233
|
+
updatedAt?: string | undefined;
|
|
1234
|
+
tuition?: {
|
|
1235
|
+
primary: number;
|
|
1236
|
+
textbook?: boolean | undefined;
|
|
1237
|
+
shipping?: boolean | undefined;
|
|
1238
|
+
} | undefined;
|
|
1239
|
+
paid?: boolean | undefined;
|
|
1240
|
+
campOption?: CampOption | undefined;
|
|
1241
|
+
_id?: string | undefined;
|
|
1242
|
+
}[];
|
|
1179
1243
|
publicDescription?: string | undefined;
|
|
1180
1244
|
isNonPublic?: boolean | undefined;
|
|
1181
1245
|
notes?: string | undefined;
|
|
@@ -1184,7 +1248,21 @@ declare const zBCampTracker: z.ZodObject<{
|
|
|
1184
1248
|
teacher: string;
|
|
1185
1249
|
semester: string;
|
|
1186
1250
|
occurrences: string[];
|
|
1187
|
-
attendances:
|
|
1251
|
+
attendances: {
|
|
1252
|
+
student: string;
|
|
1253
|
+
states: AttendState[];
|
|
1254
|
+
editedBy?: string | undefined;
|
|
1255
|
+
createdAt?: string | undefined;
|
|
1256
|
+
updatedAt?: string | undefined;
|
|
1257
|
+
tuition?: {
|
|
1258
|
+
primary: number;
|
|
1259
|
+
textbook?: boolean | undefined;
|
|
1260
|
+
shipping?: boolean | undefined;
|
|
1261
|
+
} | undefined;
|
|
1262
|
+
paid?: boolean | undefined;
|
|
1263
|
+
campOption?: CampOption | undefined;
|
|
1264
|
+
_id?: string | undefined;
|
|
1265
|
+
}[];
|
|
1188
1266
|
publicDescription?: string | undefined;
|
|
1189
1267
|
isNonPublic?: boolean | undefined;
|
|
1190
1268
|
notes?: string | undefined;
|
|
@@ -1195,52 +1273,6 @@ declare const zCampTracker: z.ZodObject<{
|
|
|
1195
1273
|
teacher: z.ZodString;
|
|
1196
1274
|
semester: z.ZodString;
|
|
1197
1275
|
occurrences: z.ZodArray<z.ZodString, "many">;
|
|
1198
|
-
attendances: z.ZodArray<z.ZodString, "many">;
|
|
1199
|
-
publicDescription: z.ZodOptional<z.ZodString>;
|
|
1200
|
-
isNonPublic: z.ZodOptional<z.ZodBoolean>;
|
|
1201
|
-
_id: z.ZodString;
|
|
1202
|
-
editedBy: z.ZodOptional<z.ZodString>;
|
|
1203
|
-
createdAt: z.ZodOptional<z.ZodString>;
|
|
1204
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1205
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1206
|
-
_id: string;
|
|
1207
|
-
course: string;
|
|
1208
|
-
teacher: string;
|
|
1209
|
-
semester: string;
|
|
1210
|
-
occurrences: string[];
|
|
1211
|
-
attendances: string[];
|
|
1212
|
-
notes?: string | undefined;
|
|
1213
|
-
publicDescription?: string | undefined;
|
|
1214
|
-
isNonPublic?: boolean | undefined;
|
|
1215
|
-
editedBy?: string | undefined;
|
|
1216
|
-
createdAt?: string | undefined;
|
|
1217
|
-
updatedAt?: string | undefined;
|
|
1218
|
-
}, {
|
|
1219
|
-
_id: string;
|
|
1220
|
-
course: string;
|
|
1221
|
-
teacher: string;
|
|
1222
|
-
semester: string;
|
|
1223
|
-
occurrences: string[];
|
|
1224
|
-
attendances: string[];
|
|
1225
|
-
notes?: string | undefined;
|
|
1226
|
-
publicDescription?: string | undefined;
|
|
1227
|
-
isNonPublic?: boolean | undefined;
|
|
1228
|
-
editedBy?: string | undefined;
|
|
1229
|
-
createdAt?: string | undefined;
|
|
1230
|
-
updatedAt?: string | undefined;
|
|
1231
|
-
}>;
|
|
1232
|
-
declare const zCampTrackerRequest: z.ZodObject<{
|
|
1233
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
1234
|
-
_id: z.ZodString;
|
|
1235
|
-
editedBy: z.ZodOptional<z.ZodString>;
|
|
1236
|
-
createdAt: z.ZodOptional<z.ZodString>;
|
|
1237
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1238
|
-
course: z.ZodString;
|
|
1239
|
-
teacher: z.ZodString;
|
|
1240
|
-
semester: z.ZodString;
|
|
1241
|
-
occurrences: z.ZodArray<z.ZodString, "many">;
|
|
1242
|
-
publicDescription: z.ZodOptional<z.ZodString>;
|
|
1243
|
-
isNonPublic: z.ZodOptional<z.ZodBoolean>;
|
|
1244
1276
|
attendances: z.ZodArray<z.ZodObject<{
|
|
1245
1277
|
editedBy: z.ZodOptional<z.ZodString>;
|
|
1246
1278
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -1292,6 +1324,12 @@ declare const zCampTrackerRequest: z.ZodObject<{
|
|
|
1292
1324
|
campOption?: CampOption | undefined;
|
|
1293
1325
|
_id?: string | undefined;
|
|
1294
1326
|
}>, "many">;
|
|
1327
|
+
publicDescription: z.ZodOptional<z.ZodString>;
|
|
1328
|
+
isNonPublic: z.ZodOptional<z.ZodBoolean>;
|
|
1329
|
+
_id: z.ZodString;
|
|
1330
|
+
editedBy: z.ZodOptional<z.ZodString>;
|
|
1331
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1332
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1295
1333
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1296
1334
|
_id: string;
|
|
1297
1335
|
course: string;
|
|
@@ -1314,11 +1352,11 @@ declare const zCampTrackerRequest: z.ZodObject<{
|
|
|
1314
1352
|
_id?: string | undefined;
|
|
1315
1353
|
}[];
|
|
1316
1354
|
notes?: string | undefined;
|
|
1355
|
+
publicDescription?: string | undefined;
|
|
1356
|
+
isNonPublic?: boolean | undefined;
|
|
1317
1357
|
editedBy?: string | undefined;
|
|
1318
1358
|
createdAt?: string | undefined;
|
|
1319
1359
|
updatedAt?: string | undefined;
|
|
1320
|
-
publicDescription?: string | undefined;
|
|
1321
|
-
isNonPublic?: boolean | undefined;
|
|
1322
1360
|
}, {
|
|
1323
1361
|
_id: string;
|
|
1324
1362
|
course: string;
|
|
@@ -1341,11 +1379,11 @@ declare const zCampTrackerRequest: z.ZodObject<{
|
|
|
1341
1379
|
_id?: string | undefined;
|
|
1342
1380
|
}[];
|
|
1343
1381
|
notes?: string | undefined;
|
|
1382
|
+
publicDescription?: string | undefined;
|
|
1383
|
+
isNonPublic?: boolean | undefined;
|
|
1344
1384
|
editedBy?: string | undefined;
|
|
1345
1385
|
createdAt?: string | undefined;
|
|
1346
1386
|
updatedAt?: string | undefined;
|
|
1347
|
-
publicDescription?: string | undefined;
|
|
1348
|
-
isNonPublic?: boolean | undefined;
|
|
1349
1387
|
}>;
|
|
1350
1388
|
declare const zCampTrackerResponse: z.ZodObject<{
|
|
1351
1389
|
notes: z.ZodOptional<z.ZodString>;
|
|
@@ -1518,7 +1556,10 @@ declare const zCampTrackerResponse: z.ZodObject<{
|
|
|
1518
1556
|
updatedAt?: string | undefined;
|
|
1519
1557
|
}>;
|
|
1520
1558
|
attendances: z.ZodArray<z.ZodObject<{
|
|
1521
|
-
|
|
1559
|
+
_id: z.ZodString;
|
|
1560
|
+
editedBy: z.ZodOptional<z.ZodString>;
|
|
1561
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1562
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1522
1563
|
states: z.ZodArray<z.ZodNativeEnum<typeof AttendState>, "many">;
|
|
1523
1564
|
tuition: z.ZodOptional<z.ZodObject<{
|
|
1524
1565
|
primary: z.ZodNumber;
|
|
@@ -1535,14 +1576,106 @@ declare const zCampTrackerResponse: z.ZodObject<{
|
|
|
1535
1576
|
}>>;
|
|
1536
1577
|
paid: z.ZodOptional<z.ZodBoolean>;
|
|
1537
1578
|
campOption: z.ZodOptional<z.ZodNativeEnum<typeof CampOption>>;
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1579
|
+
student: z.ZodObject<{
|
|
1580
|
+
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
1581
|
+
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1582
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1583
|
+
name: z.ZodString;
|
|
1584
|
+
username: z.ZodOptional<z.ZodString>;
|
|
1585
|
+
password: z.ZodOptional<z.ZodString>;
|
|
1586
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
1587
|
+
user: z.ZodNumber;
|
|
1588
|
+
admin: z.ZodOptional<z.ZodNumber>;
|
|
1589
|
+
superadmin: z.ZodOptional<z.ZodNumber>;
|
|
1590
|
+
}, "strip", z.ZodTypeAny, {
|
|
1591
|
+
user: number;
|
|
1592
|
+
admin?: number | undefined;
|
|
1593
|
+
superadmin?: number | undefined;
|
|
1594
|
+
}, {
|
|
1595
|
+
user: number;
|
|
1596
|
+
admin?: number | undefined;
|
|
1597
|
+
superadmin?: number | undefined;
|
|
1598
|
+
}>>;
|
|
1599
|
+
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1600
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1601
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1602
|
+
shouldChangePassword: z.ZodOptional<z.ZodBoolean>;
|
|
1603
|
+
guardian: z.ZodOptional<z.ZodString>;
|
|
1604
|
+
_id: z.ZodString;
|
|
1605
|
+
editedBy: z.ZodOptional<z.ZodString>;
|
|
1606
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1607
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1608
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1609
|
+
rank: GoRank;
|
|
1610
|
+
_id: string;
|
|
1611
|
+
name: string;
|
|
1612
|
+
email?: string | undefined;
|
|
1613
|
+
address?: string | undefined;
|
|
1614
|
+
username?: string | undefined;
|
|
1615
|
+
password?: string | undefined;
|
|
1616
|
+
roles?: {
|
|
1617
|
+
user: number;
|
|
1618
|
+
admin?: number | undefined;
|
|
1619
|
+
superadmin?: number | undefined;
|
|
1620
|
+
} | undefined;
|
|
1621
|
+
country?: string | undefined;
|
|
1622
|
+
phoneNumber?: string | undefined;
|
|
1623
|
+
birthDate?: string | undefined;
|
|
1624
|
+
shouldChangePassword?: boolean | undefined;
|
|
1625
|
+
guardian?: string | undefined;
|
|
1626
|
+
editedBy?: string | undefined;
|
|
1627
|
+
createdAt?: string | undefined;
|
|
1628
|
+
updatedAt?: string | undefined;
|
|
1629
|
+
}, {
|
|
1630
|
+
rank: GoRank;
|
|
1631
|
+
_id: string;
|
|
1632
|
+
name: string;
|
|
1633
|
+
email?: string | undefined;
|
|
1634
|
+
address?: string | undefined;
|
|
1635
|
+
username?: string | undefined;
|
|
1636
|
+
password?: string | undefined;
|
|
1637
|
+
roles?: {
|
|
1638
|
+
user: number;
|
|
1639
|
+
admin?: number | undefined;
|
|
1640
|
+
superadmin?: number | undefined;
|
|
1641
|
+
} | undefined;
|
|
1642
|
+
country?: string | undefined;
|
|
1643
|
+
phoneNumber?: string | undefined;
|
|
1644
|
+
birthDate?: string | undefined;
|
|
1645
|
+
shouldChangePassword?: boolean | undefined;
|
|
1646
|
+
guardian?: string | undefined;
|
|
1647
|
+
editedBy?: string | undefined;
|
|
1648
|
+
createdAt?: string | undefined;
|
|
1649
|
+
updatedAt?: string | undefined;
|
|
1650
|
+
}>;
|
|
1542
1651
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1543
1652
|
_id: string;
|
|
1544
|
-
student:
|
|
1653
|
+
student: {
|
|
1654
|
+
rank: GoRank;
|
|
1655
|
+
_id: string;
|
|
1656
|
+
name: string;
|
|
1657
|
+
email?: string | undefined;
|
|
1658
|
+
address?: string | undefined;
|
|
1659
|
+
username?: string | undefined;
|
|
1660
|
+
password?: string | undefined;
|
|
1661
|
+
roles?: {
|
|
1662
|
+
user: number;
|
|
1663
|
+
admin?: number | undefined;
|
|
1664
|
+
superadmin?: number | undefined;
|
|
1665
|
+
} | undefined;
|
|
1666
|
+
country?: string | undefined;
|
|
1667
|
+
phoneNumber?: string | undefined;
|
|
1668
|
+
birthDate?: string | undefined;
|
|
1669
|
+
shouldChangePassword?: boolean | undefined;
|
|
1670
|
+
guardian?: string | undefined;
|
|
1671
|
+
editedBy?: string | undefined;
|
|
1672
|
+
createdAt?: string | undefined;
|
|
1673
|
+
updatedAt?: string | undefined;
|
|
1674
|
+
};
|
|
1545
1675
|
states: AttendState[];
|
|
1676
|
+
editedBy?: string | undefined;
|
|
1677
|
+
createdAt?: string | undefined;
|
|
1678
|
+
updatedAt?: string | undefined;
|
|
1546
1679
|
tuition?: {
|
|
1547
1680
|
primary: number;
|
|
1548
1681
|
textbook?: boolean | undefined;
|
|
@@ -1550,13 +1683,34 @@ declare const zCampTrackerResponse: z.ZodObject<{
|
|
|
1550
1683
|
} | undefined;
|
|
1551
1684
|
paid?: boolean | undefined;
|
|
1552
1685
|
campOption?: CampOption | undefined;
|
|
1553
|
-
editedBy?: string | undefined;
|
|
1554
|
-
createdAt?: string | undefined;
|
|
1555
|
-
updatedAt?: string | undefined;
|
|
1556
1686
|
}, {
|
|
1557
1687
|
_id: string;
|
|
1558
|
-
student:
|
|
1688
|
+
student: {
|
|
1689
|
+
rank: GoRank;
|
|
1690
|
+
_id: string;
|
|
1691
|
+
name: string;
|
|
1692
|
+
email?: string | undefined;
|
|
1693
|
+
address?: string | undefined;
|
|
1694
|
+
username?: string | undefined;
|
|
1695
|
+
password?: string | undefined;
|
|
1696
|
+
roles?: {
|
|
1697
|
+
user: number;
|
|
1698
|
+
admin?: number | undefined;
|
|
1699
|
+
superadmin?: number | undefined;
|
|
1700
|
+
} | undefined;
|
|
1701
|
+
country?: string | undefined;
|
|
1702
|
+
phoneNumber?: string | undefined;
|
|
1703
|
+
birthDate?: string | undefined;
|
|
1704
|
+
shouldChangePassword?: boolean | undefined;
|
|
1705
|
+
guardian?: string | undefined;
|
|
1706
|
+
editedBy?: string | undefined;
|
|
1707
|
+
createdAt?: string | undefined;
|
|
1708
|
+
updatedAt?: string | undefined;
|
|
1709
|
+
};
|
|
1559
1710
|
states: AttendState[];
|
|
1711
|
+
editedBy?: string | undefined;
|
|
1712
|
+
createdAt?: string | undefined;
|
|
1713
|
+
updatedAt?: string | undefined;
|
|
1560
1714
|
tuition?: {
|
|
1561
1715
|
primary: number;
|
|
1562
1716
|
textbook?: boolean | undefined;
|
|
@@ -1564,9 +1718,6 @@ declare const zCampTrackerResponse: z.ZodObject<{
|
|
|
1564
1718
|
} | undefined;
|
|
1565
1719
|
paid?: boolean | undefined;
|
|
1566
1720
|
campOption?: CampOption | undefined;
|
|
1567
|
-
editedBy?: string | undefined;
|
|
1568
|
-
createdAt?: string | undefined;
|
|
1569
|
-
updatedAt?: string | undefined;
|
|
1570
1721
|
}>, "many">;
|
|
1571
1722
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1572
1723
|
_id: string;
|
|
@@ -1626,8 +1777,32 @@ declare const zCampTrackerResponse: z.ZodObject<{
|
|
|
1626
1777
|
occurrences: string[];
|
|
1627
1778
|
attendances: {
|
|
1628
1779
|
_id: string;
|
|
1629
|
-
student:
|
|
1780
|
+
student: {
|
|
1781
|
+
rank: GoRank;
|
|
1782
|
+
_id: string;
|
|
1783
|
+
name: string;
|
|
1784
|
+
email?: string | undefined;
|
|
1785
|
+
address?: string | undefined;
|
|
1786
|
+
username?: string | undefined;
|
|
1787
|
+
password?: string | undefined;
|
|
1788
|
+
roles?: {
|
|
1789
|
+
user: number;
|
|
1790
|
+
admin?: number | undefined;
|
|
1791
|
+
superadmin?: number | undefined;
|
|
1792
|
+
} | undefined;
|
|
1793
|
+
country?: string | undefined;
|
|
1794
|
+
phoneNumber?: string | undefined;
|
|
1795
|
+
birthDate?: string | undefined;
|
|
1796
|
+
shouldChangePassword?: boolean | undefined;
|
|
1797
|
+
guardian?: string | undefined;
|
|
1798
|
+
editedBy?: string | undefined;
|
|
1799
|
+
createdAt?: string | undefined;
|
|
1800
|
+
updatedAt?: string | undefined;
|
|
1801
|
+
};
|
|
1630
1802
|
states: AttendState[];
|
|
1803
|
+
editedBy?: string | undefined;
|
|
1804
|
+
createdAt?: string | undefined;
|
|
1805
|
+
updatedAt?: string | undefined;
|
|
1631
1806
|
tuition?: {
|
|
1632
1807
|
primary: number;
|
|
1633
1808
|
textbook?: boolean | undefined;
|
|
@@ -1635,9 +1810,6 @@ declare const zCampTrackerResponse: z.ZodObject<{
|
|
|
1635
1810
|
} | undefined;
|
|
1636
1811
|
paid?: boolean | undefined;
|
|
1637
1812
|
campOption?: CampOption | undefined;
|
|
1638
|
-
editedBy?: string | undefined;
|
|
1639
|
-
createdAt?: string | undefined;
|
|
1640
|
-
updatedAt?: string | undefined;
|
|
1641
1813
|
}[];
|
|
1642
1814
|
notes?: string | undefined;
|
|
1643
1815
|
editedBy?: string | undefined;
|
|
@@ -1703,8 +1875,32 @@ declare const zCampTrackerResponse: z.ZodObject<{
|
|
|
1703
1875
|
occurrences: string[];
|
|
1704
1876
|
attendances: {
|
|
1705
1877
|
_id: string;
|
|
1706
|
-
student:
|
|
1878
|
+
student: {
|
|
1879
|
+
rank: GoRank;
|
|
1880
|
+
_id: string;
|
|
1881
|
+
name: string;
|
|
1882
|
+
email?: string | undefined;
|
|
1883
|
+
address?: string | undefined;
|
|
1884
|
+
username?: string | undefined;
|
|
1885
|
+
password?: string | undefined;
|
|
1886
|
+
roles?: {
|
|
1887
|
+
user: number;
|
|
1888
|
+
admin?: number | undefined;
|
|
1889
|
+
superadmin?: number | undefined;
|
|
1890
|
+
} | undefined;
|
|
1891
|
+
country?: string | undefined;
|
|
1892
|
+
phoneNumber?: string | undefined;
|
|
1893
|
+
birthDate?: string | undefined;
|
|
1894
|
+
shouldChangePassword?: boolean | undefined;
|
|
1895
|
+
guardian?: string | undefined;
|
|
1896
|
+
editedBy?: string | undefined;
|
|
1897
|
+
createdAt?: string | undefined;
|
|
1898
|
+
updatedAt?: string | undefined;
|
|
1899
|
+
};
|
|
1707
1900
|
states: AttendState[];
|
|
1901
|
+
editedBy?: string | undefined;
|
|
1902
|
+
createdAt?: string | undefined;
|
|
1903
|
+
updatedAt?: string | undefined;
|
|
1708
1904
|
tuition?: {
|
|
1709
1905
|
primary: number;
|
|
1710
1906
|
textbook?: boolean | undefined;
|
|
@@ -1712,9 +1908,6 @@ declare const zCampTrackerResponse: z.ZodObject<{
|
|
|
1712
1908
|
} | undefined;
|
|
1713
1909
|
paid?: boolean | undefined;
|
|
1714
1910
|
campOption?: CampOption | undefined;
|
|
1715
|
-
editedBy?: string | undefined;
|
|
1716
|
-
createdAt?: string | undefined;
|
|
1717
|
-
updatedAt?: string | undefined;
|
|
1718
1911
|
}[];
|
|
1719
1912
|
notes?: string | undefined;
|
|
1720
1913
|
editedBy?: string | undefined;
|
|
@@ -1725,7 +1918,6 @@ declare const zCampTrackerResponse: z.ZodObject<{
|
|
|
1725
1918
|
}>;
|
|
1726
1919
|
type BCampTracker = z.infer<typeof zBCampTracker>;
|
|
1727
1920
|
type CampTracker = z.infer<typeof zCampTracker>;
|
|
1728
|
-
type CampTrackerRequest = z.infer<typeof zCampTrackerRequest>;
|
|
1729
1921
|
type CampTrackerResponse = z.infer<typeof zCampTrackerResponse>;
|
|
1730
1922
|
|
|
1731
1923
|
declare const zBClassTracker: z.ZodObject<{
|
|
@@ -5203,4 +5395,4 @@ declare const zEventTicket: z.ZodObject<{
|
|
|
5203
5395
|
type BEventTicket = z.infer<typeof zBEventTicket>;
|
|
5204
5396
|
type EventTicket = z.infer<typeof zEventTicket>;
|
|
5205
5397
|
|
|
5206
|
-
export { AgeGroup, AttendState, type Attendance, type AttendanceRequest, type AttendanceResponse, 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 BStudent, type BTeacher, type BTeacherPayment, type BUser, type BUserInfo, BookingType, type CampBooking, CampOption, type CampTracker, type
|
|
5398
|
+
export { AgeGroup, AttendState, type Attendance, type AttendanceRequest, type AttendanceResponse, 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 BStudent, type BTeacher, type BTeacherPayment, type BUser, type BUserInfo, BookingType, type CampBooking, CampOption, type CampTracker, type CampTrackerResponse, type ChangePasswordRequest, type ClassTracker, type ClassTrackerResponse, type Course, CourseCategory, type CourseTable, type CreateAdminAccountRequest, 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 LoginRequest, type LoginResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type ReportTicket, type ReportTicketResponse, Role, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, type TeacherResponse, TicketStatus, type Tuition, type User, type UserRoles, zAttendance, zAttendanceRequest, zAttendanceResponse, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBStudent, zBTeacher, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zCampTrackerResponse, zChangePasswordRequest, zClassTracker, zClassTrackerResponse, zCourse, zCourseTable, zCreateAdminAccountRequest, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zLoginRequest, zLoginResponse, zPrivateBooking, zReportTicket, zReportTicketResponse, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTuition, zUser, zUserRoles };
|
package/index.js
CHANGED
|
@@ -56,7 +56,6 @@ __export(src_exports, {
|
|
|
56
56
|
zBUserInfo: () => zBUserInfo,
|
|
57
57
|
zCampBooking: () => zCampBooking,
|
|
58
58
|
zCampTracker: () => zCampTracker,
|
|
59
|
-
zCampTrackerRequest: () => zCampTrackerRequest,
|
|
60
59
|
zCampTrackerResponse: () => zCampTrackerResponse,
|
|
61
60
|
zChangePasswordRequest: () => zChangePasswordRequest,
|
|
62
61
|
zClassTracker: () => zClassTracker,
|
|
@@ -453,20 +452,17 @@ var zBCampTracker = import_zod13.z.object({
|
|
|
453
452
|
/**
|
|
454
453
|
* attendances are tracked by week for camps
|
|
455
454
|
*/
|
|
456
|
-
attendances: import_zod13.z.array(
|
|
455
|
+
attendances: import_zod13.z.array(zAttendanceRequest),
|
|
457
456
|
publicDescription: import_zod13.z.string().optional(),
|
|
458
457
|
isNonPublic: import_zod13.z.boolean().optional(),
|
|
459
458
|
notes: import_zod13.z.string().optional()
|
|
460
459
|
});
|
|
461
460
|
var zCampTracker = addAutoProps(zBCampTracker);
|
|
462
|
-
var zCampTrackerRequest = zCampTracker.extend({
|
|
463
|
-
attendances: import_zod13.z.array(zAttendanceRequest)
|
|
464
|
-
});
|
|
465
461
|
var zCampTrackerResponse = zCampTracker.extend({
|
|
466
462
|
course: zCourse,
|
|
467
463
|
teacher: zTeacher,
|
|
468
464
|
semester: zSemester,
|
|
469
|
-
attendances: import_zod13.z.array(
|
|
465
|
+
attendances: import_zod13.z.array(zAttendanceResponse)
|
|
470
466
|
});
|
|
471
467
|
|
|
472
468
|
// src/interface/tracking/classTracker.ts
|
|
@@ -865,7 +861,6 @@ var zEventRegResponse = zEventReg.extend({
|
|
|
865
861
|
zBUserInfo,
|
|
866
862
|
zCampBooking,
|
|
867
863
|
zCampTracker,
|
|
868
|
-
zCampTrackerRequest,
|
|
869
864
|
zCampTrackerResponse,
|
|
870
865
|
zChangePasswordRequest,
|
|
871
866
|
zClassTracker,
|
package/index.mjs
CHANGED
|
@@ -350,20 +350,17 @@ var zBCampTracker = z13.object({
|
|
|
350
350
|
/**
|
|
351
351
|
* attendances are tracked by week for camps
|
|
352
352
|
*/
|
|
353
|
-
attendances: z13.array(
|
|
353
|
+
attendances: z13.array(zAttendanceRequest),
|
|
354
354
|
publicDescription: z13.string().optional(),
|
|
355
355
|
isNonPublic: z13.boolean().optional(),
|
|
356
356
|
notes: z13.string().optional()
|
|
357
357
|
});
|
|
358
358
|
var zCampTracker = addAutoProps(zBCampTracker);
|
|
359
|
-
var zCampTrackerRequest = zCampTracker.extend({
|
|
360
|
-
attendances: z13.array(zAttendanceRequest)
|
|
361
|
-
});
|
|
362
359
|
var zCampTrackerResponse = zCampTracker.extend({
|
|
363
360
|
course: zCourse,
|
|
364
361
|
teacher: zTeacher,
|
|
365
362
|
semester: zSemester,
|
|
366
|
-
attendances: z13.array(
|
|
363
|
+
attendances: z13.array(zAttendanceResponse)
|
|
367
364
|
});
|
|
368
365
|
|
|
369
366
|
// src/interface/tracking/classTracker.ts
|
|
@@ -761,7 +758,6 @@ export {
|
|
|
761
758
|
zBUserInfo,
|
|
762
759
|
zCampBooking,
|
|
763
760
|
zCampTracker,
|
|
764
|
-
zCampTrackerRequest,
|
|
765
761
|
zCampTrackerResponse,
|
|
766
762
|
zChangePasswordRequest,
|
|
767
763
|
zClassTracker,
|