@nyig/models 0.2.25 → 0.2.27
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 +107 -78
- package/index.d.ts +107 -78
- package/index.js +34 -24
- package/index.mjs +32 -23
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -1659,7 +1659,7 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
1659
1659
|
width: number;
|
|
1660
1660
|
} | undefined;
|
|
1661
1661
|
}>;
|
|
1662
|
-
declare const
|
|
1662
|
+
declare const zMEventConfig: z.ZodObject<{
|
|
1663
1663
|
description: z.ZodString;
|
|
1664
1664
|
title: z.ZodString;
|
|
1665
1665
|
url: z.ZodString;
|
|
@@ -1688,6 +1688,7 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1688
1688
|
data: Record<string, {}[]>;
|
|
1689
1689
|
fields: string[];
|
|
1690
1690
|
}>;
|
|
1691
|
+
tickets: z.ZodArray<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>, "many">;
|
|
1691
1692
|
canRegister: z.ZodBoolean;
|
|
1692
1693
|
donationsDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
1693
1694
|
image: z.ZodOptional<z.ZodObject<{
|
|
@@ -1703,35 +1704,11 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1703
1704
|
height: number;
|
|
1704
1705
|
width: number;
|
|
1705
1706
|
}>>;
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
1712
|
-
_id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
1713
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1714
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1715
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1716
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1717
|
-
price: number;
|
|
1718
|
-
name: string;
|
|
1719
|
-
description?: string | undefined;
|
|
1720
|
-
isNotBuyable?: boolean | undefined;
|
|
1721
|
-
lastBuyableDate?: Date | undefined;
|
|
1722
|
-
createdAt?: Date | undefined;
|
|
1723
|
-
updatedAt?: Date | undefined;
|
|
1724
|
-
}, {
|
|
1725
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1726
|
-
price: number;
|
|
1727
|
-
name: string;
|
|
1728
|
-
description?: string | undefined;
|
|
1729
|
-
isNotBuyable?: boolean | undefined;
|
|
1730
|
-
lastBuyableDate?: Date | undefined;
|
|
1731
|
-
createdAt?: Date | undefined;
|
|
1732
|
-
updatedAt?: Date | undefined;
|
|
1733
|
-
}>, "many">;
|
|
1734
|
-
}, "strip", z.ZodTypeAny, {
|
|
1707
|
+
_id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
1708
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1709
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1710
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1711
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1735
1712
|
description: string;
|
|
1736
1713
|
title: string;
|
|
1737
1714
|
url: string;
|
|
@@ -1747,16 +1724,7 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1747
1724
|
data: Record<string, {}[]>;
|
|
1748
1725
|
fields: string[];
|
|
1749
1726
|
};
|
|
1750
|
-
tickets:
|
|
1751
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1752
|
-
price: number;
|
|
1753
|
-
name: string;
|
|
1754
|
-
description?: string | undefined;
|
|
1755
|
-
isNotBuyable?: boolean | undefined;
|
|
1756
|
-
lastBuyableDate?: Date | undefined;
|
|
1757
|
-
createdAt?: Date | undefined;
|
|
1758
|
-
updatedAt?: Date | undefined;
|
|
1759
|
-
}[];
|
|
1727
|
+
tickets: (string | Types.ObjectId)[];
|
|
1760
1728
|
canRegister: boolean;
|
|
1761
1729
|
location?: string | undefined;
|
|
1762
1730
|
donationsDisabled?: boolean | undefined;
|
|
@@ -1765,7 +1733,10 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1765
1733
|
height: number;
|
|
1766
1734
|
width: number;
|
|
1767
1735
|
} | undefined;
|
|
1736
|
+
createdAt?: Date | undefined;
|
|
1737
|
+
updatedAt?: Date | undefined;
|
|
1768
1738
|
}, {
|
|
1739
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1769
1740
|
description: string;
|
|
1770
1741
|
title: string;
|
|
1771
1742
|
url: string;
|
|
@@ -1781,16 +1752,7 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1781
1752
|
data: Record<string, {}[]>;
|
|
1782
1753
|
fields: string[];
|
|
1783
1754
|
};
|
|
1784
|
-
tickets:
|
|
1785
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1786
|
-
price: number;
|
|
1787
|
-
name: string;
|
|
1788
|
-
description?: string | undefined;
|
|
1789
|
-
isNotBuyable?: boolean | undefined;
|
|
1790
|
-
lastBuyableDate?: Date | undefined;
|
|
1791
|
-
createdAt?: Date | undefined;
|
|
1792
|
-
updatedAt?: Date | undefined;
|
|
1793
|
-
}[];
|
|
1755
|
+
tickets: (string | Types.ObjectId)[];
|
|
1794
1756
|
canRegister: boolean;
|
|
1795
1757
|
location?: string | undefined;
|
|
1796
1758
|
donationsDisabled?: boolean | undefined;
|
|
@@ -1799,8 +1761,10 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1799
1761
|
height: number;
|
|
1800
1762
|
width: number;
|
|
1801
1763
|
} | undefined;
|
|
1764
|
+
createdAt?: Date | undefined;
|
|
1765
|
+
updatedAt?: Date | undefined;
|
|
1802
1766
|
}>;
|
|
1803
|
-
declare const
|
|
1767
|
+
declare const zEventConfigResponse: z.ZodObject<{
|
|
1804
1768
|
description: z.ZodString;
|
|
1805
1769
|
title: z.ZodString;
|
|
1806
1770
|
url: z.ZodString;
|
|
@@ -1829,7 +1793,6 @@ declare const zMEventConfig: z.ZodObject<{
|
|
|
1829
1793
|
data: Record<string, {}[]>;
|
|
1830
1794
|
fields: string[];
|
|
1831
1795
|
}>;
|
|
1832
|
-
tickets: z.ZodArray<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>, "many">;
|
|
1833
1796
|
canRegister: z.ZodBoolean;
|
|
1834
1797
|
donationsDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
1835
1798
|
image: z.ZodOptional<z.ZodObject<{
|
|
@@ -1845,11 +1808,35 @@ declare const zMEventConfig: z.ZodObject<{
|
|
|
1845
1808
|
height: number;
|
|
1846
1809
|
width: number;
|
|
1847
1810
|
}>>;
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1811
|
+
tickets: z.ZodArray<z.ZodObject<{
|
|
1812
|
+
price: z.ZodNumber;
|
|
1813
|
+
name: z.ZodString;
|
|
1814
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1815
|
+
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
1816
|
+
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
1817
|
+
_id: z.ZodString;
|
|
1818
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1819
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1820
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1821
|
+
_id: string;
|
|
1822
|
+
price: number;
|
|
1823
|
+
name: string;
|
|
1824
|
+
description?: string | undefined;
|
|
1825
|
+
isNotBuyable?: boolean | undefined;
|
|
1826
|
+
lastBuyableDate?: Date | undefined;
|
|
1827
|
+
createdAt?: Date | undefined;
|
|
1828
|
+
updatedAt?: Date | undefined;
|
|
1829
|
+
}, {
|
|
1830
|
+
_id: string;
|
|
1831
|
+
price: number;
|
|
1832
|
+
name: string;
|
|
1833
|
+
description?: string | undefined;
|
|
1834
|
+
isNotBuyable?: boolean | undefined;
|
|
1835
|
+
lastBuyableDate?: Date | undefined;
|
|
1836
|
+
createdAt?: Date | undefined;
|
|
1837
|
+
updatedAt?: Date | undefined;
|
|
1838
|
+
}>, "many">;
|
|
1839
|
+
}, "strip", z.ZodTypeAny, {
|
|
1853
1840
|
description: string;
|
|
1854
1841
|
title: string;
|
|
1855
1842
|
url: string;
|
|
@@ -1865,7 +1852,16 @@ declare const zMEventConfig: z.ZodObject<{
|
|
|
1865
1852
|
data: Record<string, {}[]>;
|
|
1866
1853
|
fields: string[];
|
|
1867
1854
|
};
|
|
1868
|
-
tickets:
|
|
1855
|
+
tickets: {
|
|
1856
|
+
_id: string;
|
|
1857
|
+
price: number;
|
|
1858
|
+
name: string;
|
|
1859
|
+
description?: string | undefined;
|
|
1860
|
+
isNotBuyable?: boolean | undefined;
|
|
1861
|
+
lastBuyableDate?: Date | undefined;
|
|
1862
|
+
createdAt?: Date | undefined;
|
|
1863
|
+
updatedAt?: Date | undefined;
|
|
1864
|
+
}[];
|
|
1869
1865
|
canRegister: boolean;
|
|
1870
1866
|
location?: string | undefined;
|
|
1871
1867
|
donationsDisabled?: boolean | undefined;
|
|
@@ -1874,10 +1870,7 @@ declare const zMEventConfig: z.ZodObject<{
|
|
|
1874
1870
|
height: number;
|
|
1875
1871
|
width: number;
|
|
1876
1872
|
} | undefined;
|
|
1877
|
-
createdAt?: Date | undefined;
|
|
1878
|
-
updatedAt?: Date | undefined;
|
|
1879
1873
|
}, {
|
|
1880
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1881
1874
|
description: string;
|
|
1882
1875
|
title: string;
|
|
1883
1876
|
url: string;
|
|
@@ -1893,7 +1886,16 @@ declare const zMEventConfig: z.ZodObject<{
|
|
|
1893
1886
|
data: Record<string, {}[]>;
|
|
1894
1887
|
fields: string[];
|
|
1895
1888
|
};
|
|
1896
|
-
tickets:
|
|
1889
|
+
tickets: {
|
|
1890
|
+
_id: string;
|
|
1891
|
+
price: number;
|
|
1892
|
+
name: string;
|
|
1893
|
+
description?: string | undefined;
|
|
1894
|
+
isNotBuyable?: boolean | undefined;
|
|
1895
|
+
lastBuyableDate?: Date | undefined;
|
|
1896
|
+
createdAt?: Date | undefined;
|
|
1897
|
+
updatedAt?: Date | undefined;
|
|
1898
|
+
}[];
|
|
1897
1899
|
canRegister: boolean;
|
|
1898
1900
|
location?: string | undefined;
|
|
1899
1901
|
donationsDisabled?: boolean | undefined;
|
|
@@ -1902,10 +1904,8 @@ declare const zMEventConfig: z.ZodObject<{
|
|
|
1902
1904
|
height: number;
|
|
1903
1905
|
width: number;
|
|
1904
1906
|
} | undefined;
|
|
1905
|
-
createdAt?: Date | undefined;
|
|
1906
|
-
updatedAt?: Date | undefined;
|
|
1907
1907
|
}>;
|
|
1908
|
-
declare const
|
|
1908
|
+
declare const zMEventConfigResponse: z.ZodObject<{
|
|
1909
1909
|
description: z.ZodString;
|
|
1910
1910
|
title: z.ZodString;
|
|
1911
1911
|
url: z.ZodString;
|
|
@@ -1940,11 +1940,11 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
1940
1940
|
description: z.ZodOptional<z.ZodString>;
|
|
1941
1941
|
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
1942
1942
|
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
1943
|
-
_id: z.
|
|
1943
|
+
_id: z.ZodString;
|
|
1944
1944
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1945
1945
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1946
1946
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1947
|
-
_id:
|
|
1947
|
+
_id: string;
|
|
1948
1948
|
price: number;
|
|
1949
1949
|
name: string;
|
|
1950
1950
|
description?: string | undefined;
|
|
@@ -1953,7 +1953,7 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
1953
1953
|
createdAt?: Date | undefined;
|
|
1954
1954
|
updatedAt?: Date | undefined;
|
|
1955
1955
|
}, {
|
|
1956
|
-
_id:
|
|
1956
|
+
_id: string;
|
|
1957
1957
|
price: number;
|
|
1958
1958
|
name: string;
|
|
1959
1959
|
description?: string | undefined;
|
|
@@ -1977,11 +1977,11 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
1977
1977
|
height: number;
|
|
1978
1978
|
width: number;
|
|
1979
1979
|
}>>;
|
|
1980
|
-
_id: z.
|
|
1980
|
+
_id: z.ZodString;
|
|
1981
1981
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1982
1982
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1983
1983
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1984
|
-
_id:
|
|
1984
|
+
_id: string;
|
|
1985
1985
|
description: string;
|
|
1986
1986
|
title: string;
|
|
1987
1987
|
url: string;
|
|
@@ -1998,7 +1998,7 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
1998
1998
|
fields: string[];
|
|
1999
1999
|
};
|
|
2000
2000
|
tickets: {
|
|
2001
|
-
_id:
|
|
2001
|
+
_id: string;
|
|
2002
2002
|
price: number;
|
|
2003
2003
|
name: string;
|
|
2004
2004
|
description?: string | undefined;
|
|
@@ -2018,7 +2018,7 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
2018
2018
|
createdAt?: Date | undefined;
|
|
2019
2019
|
updatedAt?: Date | undefined;
|
|
2020
2020
|
}, {
|
|
2021
|
-
_id:
|
|
2021
|
+
_id: string;
|
|
2022
2022
|
description: string;
|
|
2023
2023
|
title: string;
|
|
2024
2024
|
url: string;
|
|
@@ -2035,7 +2035,7 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
2035
2035
|
fields: string[];
|
|
2036
2036
|
};
|
|
2037
2037
|
tickets: {
|
|
2038
|
-
_id:
|
|
2038
|
+
_id: string;
|
|
2039
2039
|
price: number;
|
|
2040
2040
|
name: string;
|
|
2041
2041
|
description?: string | undefined;
|
|
@@ -2058,7 +2058,7 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
2058
2058
|
type EventConfig = z.infer<typeof zEventConfig>;
|
|
2059
2059
|
type EventConfigResponse = z.infer<typeof zEventConfigResponse>;
|
|
2060
2060
|
type MEventConfig = z.infer<typeof zMEventConfig>;
|
|
2061
|
-
type MEventConfigResponse = z.infer<typeof
|
|
2061
|
+
type MEventConfigResponse = z.infer<typeof zMEventConfigResponse>;
|
|
2062
2062
|
|
|
2063
2063
|
declare const zDetailsTable: z.ZodObject<{
|
|
2064
2064
|
fields: z.ZodArray<z.ZodString, "many">;
|
|
@@ -2437,7 +2437,7 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2437
2437
|
donation: z.ZodOptional<z.ZodNumber>;
|
|
2438
2438
|
createMethod: z.ZodOptional<z.ZodString>;
|
|
2439
2439
|
edited: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
|
|
2440
|
-
_id: z.
|
|
2440
|
+
_id: z.ZodString;
|
|
2441
2441
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2442
2442
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2443
2443
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
@@ -2446,7 +2446,7 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2446
2446
|
lastName: string;
|
|
2447
2447
|
rank: string;
|
|
2448
2448
|
email: string;
|
|
2449
|
-
_id:
|
|
2449
|
+
_id: string;
|
|
2450
2450
|
tickets: {
|
|
2451
2451
|
amount: number;
|
|
2452
2452
|
ticket: {
|
|
@@ -2479,7 +2479,7 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2479
2479
|
lastName: string;
|
|
2480
2480
|
rank: string;
|
|
2481
2481
|
email: string;
|
|
2482
|
-
_id:
|
|
2482
|
+
_id: string;
|
|
2483
2483
|
tickets: {
|
|
2484
2484
|
amount: number;
|
|
2485
2485
|
ticket: {
|
|
@@ -2642,8 +2642,37 @@ declare const zMEventTicket: z.ZodObject<{
|
|
|
2642
2642
|
createdAt?: Date | undefined;
|
|
2643
2643
|
updatedAt?: Date | undefined;
|
|
2644
2644
|
}>;
|
|
2645
|
+
declare const zMEventTicketResponse: z.ZodObject<{
|
|
2646
|
+
price: z.ZodNumber;
|
|
2647
|
+
name: z.ZodString;
|
|
2648
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2649
|
+
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
2650
|
+
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
2651
|
+
_id: z.ZodString;
|
|
2652
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2653
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2654
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2655
|
+
_id: string;
|
|
2656
|
+
price: number;
|
|
2657
|
+
name: string;
|
|
2658
|
+
description?: string | undefined;
|
|
2659
|
+
isNotBuyable?: boolean | undefined;
|
|
2660
|
+
lastBuyableDate?: Date | undefined;
|
|
2661
|
+
createdAt?: Date | undefined;
|
|
2662
|
+
updatedAt?: Date | undefined;
|
|
2663
|
+
}, {
|
|
2664
|
+
_id: string;
|
|
2665
|
+
price: number;
|
|
2666
|
+
name: string;
|
|
2667
|
+
description?: string | undefined;
|
|
2668
|
+
isNotBuyable?: boolean | undefined;
|
|
2669
|
+
lastBuyableDate?: Date | undefined;
|
|
2670
|
+
createdAt?: Date | undefined;
|
|
2671
|
+
updatedAt?: Date | undefined;
|
|
2672
|
+
}>;
|
|
2645
2673
|
type EventTicket = z.infer<typeof zEventTicket>;
|
|
2646
2674
|
type MEventTicket = z.infer<typeof zMEventTicket>;
|
|
2675
|
+
type MEventTicketResponse = z.infer<typeof zMEventTicketResponse>;
|
|
2647
2676
|
|
|
2648
2677
|
declare enum GoRank {
|
|
2649
2678
|
KYU1 = "1k",
|
|
@@ -2966,4 +2995,4 @@ declare const zUserRoles: z.ZodObject<{
|
|
|
2966
2995
|
}>;
|
|
2967
2996
|
type UserRoles = z.infer<typeof zUserRoles>;
|
|
2968
2997
|
|
|
2969
|
-
export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type BPaymentInfo, 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 MAttendance, type MCampBooking, type MCampTracker, type MClassTracker, type MCourse, type MEventConfig, type MEventConfigResponse, type MEventReg, type MEventRegResponse, type MEventTicket, type MGroupBooking, type MGroupTracker, type MInvoice, type MNYIGMission, type MPrivateBooking, type MReportTicket, type MSemester, type MStudent, type MTeacher, type MTeacherPayment, type MUser, 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 TeacherPaymentRow, TicketStatus, type Tuition, type User, type UserRoles, zAttendance, zBPaymentInfo, zBUserInfo, zCampBooking, zCampTracker, zClassTracker, zCourse, zCourseTable, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zMAttendance, zMCampBooking, zMCampTracker, zMClassTracker, zMCourse, zMEventConfig, zMEventReg, zMEventRegResponse, zMEventTicket, zMGroupBooking, zMGroupTracker, zMInvoice, zMPrivateBooking, zMReportTicket, zMSemester, zMStudent,
|
|
2998
|
+
export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type BPaymentInfo, 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 MAttendance, type MCampBooking, type MCampTracker, type MClassTracker, type MCourse, type MEventConfig, type MEventConfigResponse, type MEventReg, type MEventRegResponse, type MEventTicket, type MEventTicketResponse, type MGroupBooking, type MGroupTracker, type MInvoice, type MNYIGMission, type MPrivateBooking, type MReportTicket, type MSemester, type MStudent, type MTeacher, type MTeacherPayment, type MUser, 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 TeacherPaymentRow, TicketStatus, type Tuition, type User, type UserRoles, zAttendance, zBPaymentInfo, zBUserInfo, zCampBooking, zCampTracker, zClassTracker, zCourse, zCourseTable, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zMAttendance, zMCampBooking, zMCampTracker, zMClassTracker, zMCourse, zMEventConfig, zMEventConfigResponse, zMEventReg, zMEventRegResponse, zMEventTicket, zMEventTicketResponse, zMGroupBooking, zMGroupTracker, zMInvoice, zMPrivateBooking, zMReportTicket, zMSemester, zMStudent, zMTeacher, zMTeacherPayment, zMUser, zPrivateBooking, zReportTicket, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentRow, zTuition, zUser, zUserRoles };
|
package/index.d.ts
CHANGED
|
@@ -1659,7 +1659,7 @@ declare const zEventConfig: z.ZodObject<{
|
|
|
1659
1659
|
width: number;
|
|
1660
1660
|
} | undefined;
|
|
1661
1661
|
}>;
|
|
1662
|
-
declare const
|
|
1662
|
+
declare const zMEventConfig: z.ZodObject<{
|
|
1663
1663
|
description: z.ZodString;
|
|
1664
1664
|
title: z.ZodString;
|
|
1665
1665
|
url: z.ZodString;
|
|
@@ -1688,6 +1688,7 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1688
1688
|
data: Record<string, {}[]>;
|
|
1689
1689
|
fields: string[];
|
|
1690
1690
|
}>;
|
|
1691
|
+
tickets: z.ZodArray<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>, "many">;
|
|
1691
1692
|
canRegister: z.ZodBoolean;
|
|
1692
1693
|
donationsDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
1693
1694
|
image: z.ZodOptional<z.ZodObject<{
|
|
@@ -1703,35 +1704,11 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1703
1704
|
height: number;
|
|
1704
1705
|
width: number;
|
|
1705
1706
|
}>>;
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
1712
|
-
_id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
1713
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1714
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1715
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1716
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1717
|
-
price: number;
|
|
1718
|
-
name: string;
|
|
1719
|
-
description?: string | undefined;
|
|
1720
|
-
isNotBuyable?: boolean | undefined;
|
|
1721
|
-
lastBuyableDate?: Date | undefined;
|
|
1722
|
-
createdAt?: Date | undefined;
|
|
1723
|
-
updatedAt?: Date | undefined;
|
|
1724
|
-
}, {
|
|
1725
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1726
|
-
price: number;
|
|
1727
|
-
name: string;
|
|
1728
|
-
description?: string | undefined;
|
|
1729
|
-
isNotBuyable?: boolean | undefined;
|
|
1730
|
-
lastBuyableDate?: Date | undefined;
|
|
1731
|
-
createdAt?: Date | undefined;
|
|
1732
|
-
updatedAt?: Date | undefined;
|
|
1733
|
-
}>, "many">;
|
|
1734
|
-
}, "strip", z.ZodTypeAny, {
|
|
1707
|
+
_id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
1708
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1709
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1710
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1711
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1735
1712
|
description: string;
|
|
1736
1713
|
title: string;
|
|
1737
1714
|
url: string;
|
|
@@ -1747,16 +1724,7 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1747
1724
|
data: Record<string, {}[]>;
|
|
1748
1725
|
fields: string[];
|
|
1749
1726
|
};
|
|
1750
|
-
tickets:
|
|
1751
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1752
|
-
price: number;
|
|
1753
|
-
name: string;
|
|
1754
|
-
description?: string | undefined;
|
|
1755
|
-
isNotBuyable?: boolean | undefined;
|
|
1756
|
-
lastBuyableDate?: Date | undefined;
|
|
1757
|
-
createdAt?: Date | undefined;
|
|
1758
|
-
updatedAt?: Date | undefined;
|
|
1759
|
-
}[];
|
|
1727
|
+
tickets: (string | Types.ObjectId)[];
|
|
1760
1728
|
canRegister: boolean;
|
|
1761
1729
|
location?: string | undefined;
|
|
1762
1730
|
donationsDisabled?: boolean | undefined;
|
|
@@ -1765,7 +1733,10 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1765
1733
|
height: number;
|
|
1766
1734
|
width: number;
|
|
1767
1735
|
} | undefined;
|
|
1736
|
+
createdAt?: Date | undefined;
|
|
1737
|
+
updatedAt?: Date | undefined;
|
|
1768
1738
|
}, {
|
|
1739
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1769
1740
|
description: string;
|
|
1770
1741
|
title: string;
|
|
1771
1742
|
url: string;
|
|
@@ -1781,16 +1752,7 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1781
1752
|
data: Record<string, {}[]>;
|
|
1782
1753
|
fields: string[];
|
|
1783
1754
|
};
|
|
1784
|
-
tickets:
|
|
1785
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1786
|
-
price: number;
|
|
1787
|
-
name: string;
|
|
1788
|
-
description?: string | undefined;
|
|
1789
|
-
isNotBuyable?: boolean | undefined;
|
|
1790
|
-
lastBuyableDate?: Date | undefined;
|
|
1791
|
-
createdAt?: Date | undefined;
|
|
1792
|
-
updatedAt?: Date | undefined;
|
|
1793
|
-
}[];
|
|
1755
|
+
tickets: (string | Types.ObjectId)[];
|
|
1794
1756
|
canRegister: boolean;
|
|
1795
1757
|
location?: string | undefined;
|
|
1796
1758
|
donationsDisabled?: boolean | undefined;
|
|
@@ -1799,8 +1761,10 @@ declare const zEventConfigResponse: z.ZodObject<{
|
|
|
1799
1761
|
height: number;
|
|
1800
1762
|
width: number;
|
|
1801
1763
|
} | undefined;
|
|
1764
|
+
createdAt?: Date | undefined;
|
|
1765
|
+
updatedAt?: Date | undefined;
|
|
1802
1766
|
}>;
|
|
1803
|
-
declare const
|
|
1767
|
+
declare const zEventConfigResponse: z.ZodObject<{
|
|
1804
1768
|
description: z.ZodString;
|
|
1805
1769
|
title: z.ZodString;
|
|
1806
1770
|
url: z.ZodString;
|
|
@@ -1829,7 +1793,6 @@ declare const zMEventConfig: z.ZodObject<{
|
|
|
1829
1793
|
data: Record<string, {}[]>;
|
|
1830
1794
|
fields: string[];
|
|
1831
1795
|
}>;
|
|
1832
|
-
tickets: z.ZodArray<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>, "many">;
|
|
1833
1796
|
canRegister: z.ZodBoolean;
|
|
1834
1797
|
donationsDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
1835
1798
|
image: z.ZodOptional<z.ZodObject<{
|
|
@@ -1845,11 +1808,35 @@ declare const zMEventConfig: z.ZodObject<{
|
|
|
1845
1808
|
height: number;
|
|
1846
1809
|
width: number;
|
|
1847
1810
|
}>>;
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1811
|
+
tickets: z.ZodArray<z.ZodObject<{
|
|
1812
|
+
price: z.ZodNumber;
|
|
1813
|
+
name: z.ZodString;
|
|
1814
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1815
|
+
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
1816
|
+
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
1817
|
+
_id: z.ZodString;
|
|
1818
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1819
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1820
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1821
|
+
_id: string;
|
|
1822
|
+
price: number;
|
|
1823
|
+
name: string;
|
|
1824
|
+
description?: string | undefined;
|
|
1825
|
+
isNotBuyable?: boolean | undefined;
|
|
1826
|
+
lastBuyableDate?: Date | undefined;
|
|
1827
|
+
createdAt?: Date | undefined;
|
|
1828
|
+
updatedAt?: Date | undefined;
|
|
1829
|
+
}, {
|
|
1830
|
+
_id: string;
|
|
1831
|
+
price: number;
|
|
1832
|
+
name: string;
|
|
1833
|
+
description?: string | undefined;
|
|
1834
|
+
isNotBuyable?: boolean | undefined;
|
|
1835
|
+
lastBuyableDate?: Date | undefined;
|
|
1836
|
+
createdAt?: Date | undefined;
|
|
1837
|
+
updatedAt?: Date | undefined;
|
|
1838
|
+
}>, "many">;
|
|
1839
|
+
}, "strip", z.ZodTypeAny, {
|
|
1853
1840
|
description: string;
|
|
1854
1841
|
title: string;
|
|
1855
1842
|
url: string;
|
|
@@ -1865,7 +1852,16 @@ declare const zMEventConfig: z.ZodObject<{
|
|
|
1865
1852
|
data: Record<string, {}[]>;
|
|
1866
1853
|
fields: string[];
|
|
1867
1854
|
};
|
|
1868
|
-
tickets:
|
|
1855
|
+
tickets: {
|
|
1856
|
+
_id: string;
|
|
1857
|
+
price: number;
|
|
1858
|
+
name: string;
|
|
1859
|
+
description?: string | undefined;
|
|
1860
|
+
isNotBuyable?: boolean | undefined;
|
|
1861
|
+
lastBuyableDate?: Date | undefined;
|
|
1862
|
+
createdAt?: Date | undefined;
|
|
1863
|
+
updatedAt?: Date | undefined;
|
|
1864
|
+
}[];
|
|
1869
1865
|
canRegister: boolean;
|
|
1870
1866
|
location?: string | undefined;
|
|
1871
1867
|
donationsDisabled?: boolean | undefined;
|
|
@@ -1874,10 +1870,7 @@ declare const zMEventConfig: z.ZodObject<{
|
|
|
1874
1870
|
height: number;
|
|
1875
1871
|
width: number;
|
|
1876
1872
|
} | undefined;
|
|
1877
|
-
createdAt?: Date | undefined;
|
|
1878
|
-
updatedAt?: Date | undefined;
|
|
1879
1873
|
}, {
|
|
1880
|
-
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1881
1874
|
description: string;
|
|
1882
1875
|
title: string;
|
|
1883
1876
|
url: string;
|
|
@@ -1893,7 +1886,16 @@ declare const zMEventConfig: z.ZodObject<{
|
|
|
1893
1886
|
data: Record<string, {}[]>;
|
|
1894
1887
|
fields: string[];
|
|
1895
1888
|
};
|
|
1896
|
-
tickets:
|
|
1889
|
+
tickets: {
|
|
1890
|
+
_id: string;
|
|
1891
|
+
price: number;
|
|
1892
|
+
name: string;
|
|
1893
|
+
description?: string | undefined;
|
|
1894
|
+
isNotBuyable?: boolean | undefined;
|
|
1895
|
+
lastBuyableDate?: Date | undefined;
|
|
1896
|
+
createdAt?: Date | undefined;
|
|
1897
|
+
updatedAt?: Date | undefined;
|
|
1898
|
+
}[];
|
|
1897
1899
|
canRegister: boolean;
|
|
1898
1900
|
location?: string | undefined;
|
|
1899
1901
|
donationsDisabled?: boolean | undefined;
|
|
@@ -1902,10 +1904,8 @@ declare const zMEventConfig: z.ZodObject<{
|
|
|
1902
1904
|
height: number;
|
|
1903
1905
|
width: number;
|
|
1904
1906
|
} | undefined;
|
|
1905
|
-
createdAt?: Date | undefined;
|
|
1906
|
-
updatedAt?: Date | undefined;
|
|
1907
1907
|
}>;
|
|
1908
|
-
declare const
|
|
1908
|
+
declare const zMEventConfigResponse: z.ZodObject<{
|
|
1909
1909
|
description: z.ZodString;
|
|
1910
1910
|
title: z.ZodString;
|
|
1911
1911
|
url: z.ZodString;
|
|
@@ -1940,11 +1940,11 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
1940
1940
|
description: z.ZodOptional<z.ZodString>;
|
|
1941
1941
|
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
1942
1942
|
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
1943
|
-
_id: z.
|
|
1943
|
+
_id: z.ZodString;
|
|
1944
1944
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1945
1945
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1946
1946
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1947
|
-
_id:
|
|
1947
|
+
_id: string;
|
|
1948
1948
|
price: number;
|
|
1949
1949
|
name: string;
|
|
1950
1950
|
description?: string | undefined;
|
|
@@ -1953,7 +1953,7 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
1953
1953
|
createdAt?: Date | undefined;
|
|
1954
1954
|
updatedAt?: Date | undefined;
|
|
1955
1955
|
}, {
|
|
1956
|
-
_id:
|
|
1956
|
+
_id: string;
|
|
1957
1957
|
price: number;
|
|
1958
1958
|
name: string;
|
|
1959
1959
|
description?: string | undefined;
|
|
@@ -1977,11 +1977,11 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
1977
1977
|
height: number;
|
|
1978
1978
|
width: number;
|
|
1979
1979
|
}>>;
|
|
1980
|
-
_id: z.
|
|
1980
|
+
_id: z.ZodString;
|
|
1981
1981
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1982
1982
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1983
1983
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1984
|
-
_id:
|
|
1984
|
+
_id: string;
|
|
1985
1985
|
description: string;
|
|
1986
1986
|
title: string;
|
|
1987
1987
|
url: string;
|
|
@@ -1998,7 +1998,7 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
1998
1998
|
fields: string[];
|
|
1999
1999
|
};
|
|
2000
2000
|
tickets: {
|
|
2001
|
-
_id:
|
|
2001
|
+
_id: string;
|
|
2002
2002
|
price: number;
|
|
2003
2003
|
name: string;
|
|
2004
2004
|
description?: string | undefined;
|
|
@@ -2018,7 +2018,7 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
2018
2018
|
createdAt?: Date | undefined;
|
|
2019
2019
|
updatedAt?: Date | undefined;
|
|
2020
2020
|
}, {
|
|
2021
|
-
_id:
|
|
2021
|
+
_id: string;
|
|
2022
2022
|
description: string;
|
|
2023
2023
|
title: string;
|
|
2024
2024
|
url: string;
|
|
@@ -2035,7 +2035,7 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
2035
2035
|
fields: string[];
|
|
2036
2036
|
};
|
|
2037
2037
|
tickets: {
|
|
2038
|
-
_id:
|
|
2038
|
+
_id: string;
|
|
2039
2039
|
price: number;
|
|
2040
2040
|
name: string;
|
|
2041
2041
|
description?: string | undefined;
|
|
@@ -2058,7 +2058,7 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
2058
2058
|
type EventConfig = z.infer<typeof zEventConfig>;
|
|
2059
2059
|
type EventConfigResponse = z.infer<typeof zEventConfigResponse>;
|
|
2060
2060
|
type MEventConfig = z.infer<typeof zMEventConfig>;
|
|
2061
|
-
type MEventConfigResponse = z.infer<typeof
|
|
2061
|
+
type MEventConfigResponse = z.infer<typeof zMEventConfigResponse>;
|
|
2062
2062
|
|
|
2063
2063
|
declare const zDetailsTable: z.ZodObject<{
|
|
2064
2064
|
fields: z.ZodArray<z.ZodString, "many">;
|
|
@@ -2437,7 +2437,7 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2437
2437
|
donation: z.ZodOptional<z.ZodNumber>;
|
|
2438
2438
|
createMethod: z.ZodOptional<z.ZodString>;
|
|
2439
2439
|
edited: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
|
|
2440
|
-
_id: z.
|
|
2440
|
+
_id: z.ZodString;
|
|
2441
2441
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2442
2442
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2443
2443
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
@@ -2446,7 +2446,7 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2446
2446
|
lastName: string;
|
|
2447
2447
|
rank: string;
|
|
2448
2448
|
email: string;
|
|
2449
|
-
_id:
|
|
2449
|
+
_id: string;
|
|
2450
2450
|
tickets: {
|
|
2451
2451
|
amount: number;
|
|
2452
2452
|
ticket: {
|
|
@@ -2479,7 +2479,7 @@ declare const zMEventRegResponse: z.ZodObject<{
|
|
|
2479
2479
|
lastName: string;
|
|
2480
2480
|
rank: string;
|
|
2481
2481
|
email: string;
|
|
2482
|
-
_id:
|
|
2482
|
+
_id: string;
|
|
2483
2483
|
tickets: {
|
|
2484
2484
|
amount: number;
|
|
2485
2485
|
ticket: {
|
|
@@ -2642,8 +2642,37 @@ declare const zMEventTicket: z.ZodObject<{
|
|
|
2642
2642
|
createdAt?: Date | undefined;
|
|
2643
2643
|
updatedAt?: Date | undefined;
|
|
2644
2644
|
}>;
|
|
2645
|
+
declare const zMEventTicketResponse: z.ZodObject<{
|
|
2646
|
+
price: z.ZodNumber;
|
|
2647
|
+
name: z.ZodString;
|
|
2648
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2649
|
+
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
2650
|
+
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
2651
|
+
_id: z.ZodString;
|
|
2652
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2653
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2654
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2655
|
+
_id: string;
|
|
2656
|
+
price: number;
|
|
2657
|
+
name: string;
|
|
2658
|
+
description?: string | undefined;
|
|
2659
|
+
isNotBuyable?: boolean | undefined;
|
|
2660
|
+
lastBuyableDate?: Date | undefined;
|
|
2661
|
+
createdAt?: Date | undefined;
|
|
2662
|
+
updatedAt?: Date | undefined;
|
|
2663
|
+
}, {
|
|
2664
|
+
_id: string;
|
|
2665
|
+
price: number;
|
|
2666
|
+
name: string;
|
|
2667
|
+
description?: string | undefined;
|
|
2668
|
+
isNotBuyable?: boolean | undefined;
|
|
2669
|
+
lastBuyableDate?: Date | undefined;
|
|
2670
|
+
createdAt?: Date | undefined;
|
|
2671
|
+
updatedAt?: Date | undefined;
|
|
2672
|
+
}>;
|
|
2645
2673
|
type EventTicket = z.infer<typeof zEventTicket>;
|
|
2646
2674
|
type MEventTicket = z.infer<typeof zMEventTicket>;
|
|
2675
|
+
type MEventTicketResponse = z.infer<typeof zMEventTicketResponse>;
|
|
2647
2676
|
|
|
2648
2677
|
declare enum GoRank {
|
|
2649
2678
|
KYU1 = "1k",
|
|
@@ -2966,4 +2995,4 @@ declare const zUserRoles: z.ZodObject<{
|
|
|
2966
2995
|
}>;
|
|
2967
2996
|
type UserRoles = z.infer<typeof zUserRoles>;
|
|
2968
2997
|
|
|
2969
|
-
export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type BPaymentInfo, 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 MAttendance, type MCampBooking, type MCampTracker, type MClassTracker, type MCourse, type MEventConfig, type MEventConfigResponse, type MEventReg, type MEventRegResponse, type MEventTicket, type MGroupBooking, type MGroupTracker, type MInvoice, type MNYIGMission, type MPrivateBooking, type MReportTicket, type MSemester, type MStudent, type MTeacher, type MTeacherPayment, type MUser, 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 TeacherPaymentRow, TicketStatus, type Tuition, type User, type UserRoles, zAttendance, zBPaymentInfo, zBUserInfo, zCampBooking, zCampTracker, zClassTracker, zCourse, zCourseTable, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zMAttendance, zMCampBooking, zMCampTracker, zMClassTracker, zMCourse, zMEventConfig, zMEventReg, zMEventRegResponse, zMEventTicket, zMGroupBooking, zMGroupTracker, zMInvoice, zMPrivateBooking, zMReportTicket, zMSemester, zMStudent,
|
|
2998
|
+
export { AgeGroup, AttendState, type Attendance, type AuroraCourses, type BPaymentInfo, 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 MAttendance, type MCampBooking, type MCampTracker, type MClassTracker, type MCourse, type MEventConfig, type MEventConfigResponse, type MEventReg, type MEventRegResponse, type MEventTicket, type MEventTicketResponse, type MGroupBooking, type MGroupTracker, type MInvoice, type MNYIGMission, type MPrivateBooking, type MReportTicket, type MSemester, type MStudent, type MTeacher, type MTeacherPayment, type MUser, 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 TeacherPaymentRow, TicketStatus, type Tuition, type User, type UserRoles, zAttendance, zBPaymentInfo, zBUserInfo, zCampBooking, zCampTracker, zClassTracker, zCourse, zCourseTable, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zMAttendance, zMCampBooking, zMCampTracker, zMClassTracker, zMCourse, zMEventConfig, zMEventConfigResponse, zMEventReg, zMEventRegResponse, zMEventTicket, zMEventTicketResponse, zMGroupBooking, zMGroupTracker, zMInvoice, zMPrivateBooking, zMReportTicket, zMSemester, zMStudent, zMTeacher, zMTeacherPayment, zMUser, zPrivateBooking, zReportTicket, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentRow, zTuition, zUser, zUserRoles };
|
package/index.js
CHANGED
|
@@ -59,9 +59,11 @@ __export(src_exports, {
|
|
|
59
59
|
zMClassTracker: () => zMClassTracker,
|
|
60
60
|
zMCourse: () => zMCourse,
|
|
61
61
|
zMEventConfig: () => zMEventConfig,
|
|
62
|
+
zMEventConfigResponse: () => zMEventConfigResponse,
|
|
62
63
|
zMEventReg: () => zMEventReg,
|
|
63
64
|
zMEventRegResponse: () => zMEventRegResponse,
|
|
64
65
|
zMEventTicket: () => zMEventTicket,
|
|
66
|
+
zMEventTicketResponse: () => zMEventTicketResponse,
|
|
65
67
|
zMGroupBooking: () => zMGroupBooking,
|
|
66
68
|
zMGroupTracker: () => zMGroupTracker,
|
|
67
69
|
zMInvoice: () => zMInvoice,
|
|
@@ -69,7 +71,6 @@ __export(src_exports, {
|
|
|
69
71
|
zMReportTicket: () => zMReportTicket,
|
|
70
72
|
zMSemester: () => zMSemester,
|
|
71
73
|
zMStudent: () => zMStudent,
|
|
72
|
-
zMTConfigResponse: () => zMTConfigResponse,
|
|
73
74
|
zMTeacher: () => zMTeacher,
|
|
74
75
|
zMTeacherPayment: () => zMTeacherPayment,
|
|
75
76
|
zMUser: () => zMUser,
|
|
@@ -137,13 +138,20 @@ var import_zod13 = require("zod");
|
|
|
137
138
|
// src/interface/mongoose/mongoose.ts
|
|
138
139
|
var import_zod3 = require("zod");
|
|
139
140
|
var import_mongoose2 = require("mongoose");
|
|
140
|
-
function
|
|
141
|
+
function addMongooseProps(original) {
|
|
141
142
|
return original.extend({
|
|
142
143
|
_id: import_zod3.z.instanceof(import_mongoose2.Types.ObjectId).or(import_zod3.z.string()),
|
|
143
144
|
createdAt: import_zod3.z.coerce.date().optional(),
|
|
144
145
|
updatedAt: import_zod3.z.coerce.date().optional()
|
|
145
146
|
});
|
|
146
147
|
}
|
|
148
|
+
function addMongoosePropsToResponse(original) {
|
|
149
|
+
return original.extend({
|
|
150
|
+
_id: import_zod3.z.string(),
|
|
151
|
+
createdAt: import_zod3.z.coerce.date().optional(),
|
|
152
|
+
updatedAt: import_zod3.z.coerce.date().optional()
|
|
153
|
+
});
|
|
154
|
+
}
|
|
147
155
|
|
|
148
156
|
// src/interface/tracking/attendState.ts
|
|
149
157
|
var AttendState = /* @__PURE__ */ ((AttendState2) => {
|
|
@@ -181,7 +189,7 @@ var zAttendance = import_zod5.z.object({
|
|
|
181
189
|
paid: import_zod5.z.boolean().optional(),
|
|
182
190
|
campOption: import_zod5.z.nativeEnum(CampOption)
|
|
183
191
|
});
|
|
184
|
-
var zMAttendance =
|
|
192
|
+
var zMAttendance = addMongooseProps(zAttendance);
|
|
185
193
|
|
|
186
194
|
// src/interface/tracking/campTracker.ts
|
|
187
195
|
var import_mongoose5 = require("mongoose");
|
|
@@ -200,7 +208,7 @@ var zCampTracker = import_zod6.z.object({
|
|
|
200
208
|
attendances: import_zod6.z.array(import_zod6.z.string()),
|
|
201
209
|
notes: import_zod6.z.string().optional()
|
|
202
210
|
});
|
|
203
|
-
var zMCampTracker =
|
|
211
|
+
var zMCampTracker = addMongooseProps(zCampTracker);
|
|
204
212
|
|
|
205
213
|
// src/interface/tracking/classTracker.ts
|
|
206
214
|
var import_mongoose11 = require("mongoose");
|
|
@@ -244,7 +252,7 @@ var zInvoice = import_zod7.z.object({
|
|
|
244
252
|
createdBy: import_zod7.z.instanceof(import_mongoose7.Types.ObjectId).or(import_zod7.z.string()),
|
|
245
253
|
lastEditBy: import_zod7.z.instanceof(import_mongoose7.Types.ObjectId).or(import_zod7.z.string()).optional()
|
|
246
254
|
});
|
|
247
|
-
var zMInvoice =
|
|
255
|
+
var zMInvoice = addMongooseProps(zInvoice);
|
|
248
256
|
|
|
249
257
|
// src/interface/payment/teacherPayment.ts
|
|
250
258
|
var import_mongoose9 = require("mongoose");
|
|
@@ -260,7 +268,7 @@ var zTeacherPayment = import_zod8.z.object({
|
|
|
260
268
|
rows: import_zod8.z.array(zTeacherPaymentRow),
|
|
261
269
|
paid: import_zod8.z.boolean().optional()
|
|
262
270
|
});
|
|
263
|
-
var zMTeacherPayment =
|
|
271
|
+
var zMTeacherPayment = addMongooseProps(zTeacherPayment);
|
|
264
272
|
|
|
265
273
|
// src/interface/tracking/classTracker.ts
|
|
266
274
|
var zClassTracker = import_zod9.z.object({
|
|
@@ -278,7 +286,7 @@ var zClassTracker = import_zod9.z.object({
|
|
|
278
286
|
paused: import_zod9.z.boolean().optional(),
|
|
279
287
|
notes: import_zod9.z.string().optional()
|
|
280
288
|
});
|
|
281
|
-
var zMClassTracker =
|
|
289
|
+
var zMClassTracker = addMongooseProps(zClassTracker);
|
|
282
290
|
|
|
283
291
|
// src/interface/tracking/groupTracker.ts
|
|
284
292
|
var import_zod12 = require("zod");
|
|
@@ -347,7 +355,7 @@ var zCourse = import_zod11.z.object({
|
|
|
347
355
|
*/
|
|
348
356
|
fullCampTuition: import_zod11.z.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional()
|
|
349
357
|
});
|
|
350
|
-
var zMCourse =
|
|
358
|
+
var zMCourse = addMongooseProps(zCourse);
|
|
351
359
|
|
|
352
360
|
// src/interface/tracking/groupTracker.ts
|
|
353
361
|
var import_mongoose15 = require("mongoose");
|
|
@@ -378,7 +386,7 @@ var zGroupTracker = import_zod12.z.object({
|
|
|
378
386
|
isNonPublic: import_zod12.z.boolean().optional(),
|
|
379
387
|
notes: import_zod12.z.string().optional()
|
|
380
388
|
});
|
|
381
|
-
var zMGroupTracker =
|
|
389
|
+
var zMGroupTracker = addMongooseProps(zGroupTracker);
|
|
382
390
|
|
|
383
391
|
// src/interface/booking/campBooking.ts
|
|
384
392
|
var zCampBooking = import_zod13.z.object({
|
|
@@ -388,7 +396,7 @@ var zCampBooking = import_zod13.z.object({
|
|
|
388
396
|
campOption: import_zod13.z.nativeEnum(CampOption),
|
|
389
397
|
shipping: import_zod13.z.boolean().optional()
|
|
390
398
|
}).merge(zBUserInfo).merge(zBPaymentInfo);
|
|
391
|
-
var zMCampBooking =
|
|
399
|
+
var zMCampBooking = addMongooseProps(zCampBooking);
|
|
392
400
|
|
|
393
401
|
// src/interface/booking/groupBooking.ts
|
|
394
402
|
var import_mongoose17 = require("mongoose");
|
|
@@ -400,7 +408,7 @@ var zGroupBooking = import_zod14.z.object({
|
|
|
400
408
|
classDate: import_zod14.z.string().optional(),
|
|
401
409
|
shipping: import_zod14.z.boolean().optional()
|
|
402
410
|
}).merge(zBUserInfo).merge(zBPaymentInfo);
|
|
403
|
-
var zMGroupBooking =
|
|
411
|
+
var zMGroupBooking = addMongooseProps(zGroupBooking);
|
|
404
412
|
|
|
405
413
|
// src/interface/booking/privateBooking.ts
|
|
406
414
|
var import_mongoose19 = require("mongoose");
|
|
@@ -410,7 +418,7 @@ var zPrivateBooking = import_zod15.z.object({
|
|
|
410
418
|
teacherId: import_zod15.z.instanceof(import_mongoose19.Types.ObjectId).or(import_zod15.z.string()),
|
|
411
419
|
classDate: import_zod15.z.string().optional()
|
|
412
420
|
}).merge(zBUserInfo).merge(zBPaymentInfo);
|
|
413
|
-
var zMPrivateBooking =
|
|
421
|
+
var zMPrivateBooking = addMongooseProps(zPrivateBooking);
|
|
414
422
|
|
|
415
423
|
// src/interface/public/aurora.ts
|
|
416
424
|
var import_zod16 = require("zod");
|
|
@@ -459,7 +467,7 @@ var zReportTicket = import_zod18.z.object({
|
|
|
459
467
|
title: import_zod18.z.string(),
|
|
460
468
|
description: import_zod18.z.string()
|
|
461
469
|
});
|
|
462
|
-
var zMReportTicket =
|
|
470
|
+
var zMReportTicket = addMongooseProps(zReportTicket);
|
|
463
471
|
|
|
464
472
|
// src/interface/semester/season.ts
|
|
465
473
|
var Season = /* @__PURE__ */ ((Season2) => {
|
|
@@ -485,7 +493,7 @@ var zSemester = import_zod19.z.object({
|
|
|
485
493
|
*/
|
|
486
494
|
importantDates: import_zod19.z.array(import_zod19.z.string())
|
|
487
495
|
});
|
|
488
|
-
var zMSemester =
|
|
496
|
+
var zMSemester = addMongooseProps(zSemester);
|
|
489
497
|
|
|
490
498
|
// src/interface/event/eConfig.ts
|
|
491
499
|
var import_mongoose25 = require("mongoose");
|
|
@@ -512,7 +520,8 @@ var zEventTicket = import_zod20.z.object({
|
|
|
512
520
|
*/
|
|
513
521
|
lastBuyableDate: import_zod20.z.coerce.date().optional()
|
|
514
522
|
});
|
|
515
|
-
var zMEventTicket =
|
|
523
|
+
var zMEventTicket = addMongooseProps(zEventTicket);
|
|
524
|
+
var zMEventTicketResponse = addMongoosePropsToResponse(zEventTicket);
|
|
516
525
|
|
|
517
526
|
// src/interface/event/table.ts
|
|
518
527
|
var import_zod21 = require("zod");
|
|
@@ -588,11 +597,11 @@ var zEventConfig = import_zod22.z.object({
|
|
|
588
597
|
*/
|
|
589
598
|
image: zImageDef.optional()
|
|
590
599
|
});
|
|
600
|
+
var zMEventConfig = addMongooseProps(zEventConfig);
|
|
591
601
|
var zEventConfigResponse = zEventConfig.extend({
|
|
592
|
-
tickets: import_zod22.z.array(
|
|
602
|
+
tickets: import_zod22.z.array(zMEventTicketResponse)
|
|
593
603
|
});
|
|
594
|
-
var
|
|
595
|
-
var zMTConfigResponse = extendZodObjectForMongoose(zEventConfigResponse);
|
|
604
|
+
var zMEventConfigResponse = addMongoosePropsToResponse(zEventConfigResponse);
|
|
596
605
|
|
|
597
606
|
// src/interface/event/eReg.ts
|
|
598
607
|
var import_mongoose28 = require("mongoose");
|
|
@@ -633,8 +642,8 @@ var zEventReg = import_zod24.z.object({
|
|
|
633
642
|
var zEventRegResponse = zEventReg.extend({
|
|
634
643
|
tickets: import_zod24.z.array(zEventTicketRegResponse)
|
|
635
644
|
});
|
|
636
|
-
var zMEventReg =
|
|
637
|
-
var zMEventRegResponse =
|
|
645
|
+
var zMEventReg = addMongooseProps(zEventReg);
|
|
646
|
+
var zMEventRegResponse = addMongoosePropsToResponse(zEventRegResponse);
|
|
638
647
|
|
|
639
648
|
// src/interface/user/goRank.ts
|
|
640
649
|
var GoRank = /* @__PURE__ */ ((GoRank2) => {
|
|
@@ -702,12 +711,12 @@ var zUser = import_zod25.z.object({
|
|
|
702
711
|
message: "Enter a valid date in yyyy-mm-dd format"
|
|
703
712
|
}).optional()
|
|
704
713
|
});
|
|
705
|
-
var zMUser =
|
|
714
|
+
var zMUser = addMongooseProps(zUser);
|
|
706
715
|
var zStudent = zUser.extend({
|
|
707
716
|
rank: import_zod25.z.nativeEnum(GoRank),
|
|
708
717
|
guardian: import_zod25.z.instanceof(import_mongoose31.Types.ObjectId).optional()
|
|
709
718
|
});
|
|
710
|
-
var zMStudent =
|
|
719
|
+
var zMStudent = addMongooseProps(zStudent);
|
|
711
720
|
var zTeacher = zUser.extend({
|
|
712
721
|
rank: import_zod25.z.nativeEnum(GoRank),
|
|
713
722
|
/**
|
|
@@ -737,7 +746,7 @@ var zTeacher = zUser.extend({
|
|
|
737
746
|
*/
|
|
738
747
|
available: import_zod25.z.array(import_zod25.z.array(import_zod25.z.array(import_zod25.z.number()))).optional()
|
|
739
748
|
});
|
|
740
|
-
var zMTeacher =
|
|
749
|
+
var zMTeacher = addMongooseProps(zTeacher);
|
|
741
750
|
|
|
742
751
|
// src/interface/user/userRoles.ts
|
|
743
752
|
var import_zod26 = require("zod");
|
|
@@ -787,9 +796,11 @@ var zUserRoles = import_zod26.z.object({
|
|
|
787
796
|
zMClassTracker,
|
|
788
797
|
zMCourse,
|
|
789
798
|
zMEventConfig,
|
|
799
|
+
zMEventConfigResponse,
|
|
790
800
|
zMEventReg,
|
|
791
801
|
zMEventRegResponse,
|
|
792
802
|
zMEventTicket,
|
|
803
|
+
zMEventTicketResponse,
|
|
793
804
|
zMGroupBooking,
|
|
794
805
|
zMGroupTracker,
|
|
795
806
|
zMInvoice,
|
|
@@ -797,7 +808,6 @@ var zUserRoles = import_zod26.z.object({
|
|
|
797
808
|
zMReportTicket,
|
|
798
809
|
zMSemester,
|
|
799
810
|
zMStudent,
|
|
800
|
-
zMTConfigResponse,
|
|
801
811
|
zMTeacher,
|
|
802
812
|
zMTeacherPayment,
|
|
803
813
|
zMUser,
|
package/index.mjs
CHANGED
|
@@ -46,13 +46,20 @@ import { z as z13 } from "zod";
|
|
|
46
46
|
// src/interface/mongoose/mongoose.ts
|
|
47
47
|
import { z as z3 } from "zod";
|
|
48
48
|
import { Types as Types2 } from "mongoose";
|
|
49
|
-
function
|
|
49
|
+
function addMongooseProps(original) {
|
|
50
50
|
return original.extend({
|
|
51
51
|
_id: z3.instanceof(Types2.ObjectId).or(z3.string()),
|
|
52
52
|
createdAt: z3.coerce.date().optional(),
|
|
53
53
|
updatedAt: z3.coerce.date().optional()
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
+
function addMongoosePropsToResponse(original) {
|
|
57
|
+
return original.extend({
|
|
58
|
+
_id: z3.string(),
|
|
59
|
+
createdAt: z3.coerce.date().optional(),
|
|
60
|
+
updatedAt: z3.coerce.date().optional()
|
|
61
|
+
});
|
|
62
|
+
}
|
|
56
63
|
|
|
57
64
|
// src/interface/tracking/attendState.ts
|
|
58
65
|
var AttendState = /* @__PURE__ */ ((AttendState2) => {
|
|
@@ -90,7 +97,7 @@ var zAttendance = z5.object({
|
|
|
90
97
|
paid: z5.boolean().optional(),
|
|
91
98
|
campOption: z5.nativeEnum(CampOption)
|
|
92
99
|
});
|
|
93
|
-
var zMAttendance =
|
|
100
|
+
var zMAttendance = addMongooseProps(zAttendance);
|
|
94
101
|
|
|
95
102
|
// src/interface/tracking/campTracker.ts
|
|
96
103
|
import { Types as Types4 } from "mongoose";
|
|
@@ -109,7 +116,7 @@ var zCampTracker = z6.object({
|
|
|
109
116
|
attendances: z6.array(z6.string()),
|
|
110
117
|
notes: z6.string().optional()
|
|
111
118
|
});
|
|
112
|
-
var zMCampTracker =
|
|
119
|
+
var zMCampTracker = addMongooseProps(zCampTracker);
|
|
113
120
|
|
|
114
121
|
// src/interface/tracking/classTracker.ts
|
|
115
122
|
import { Types as Types7 } from "mongoose";
|
|
@@ -153,7 +160,7 @@ var zInvoice = z7.object({
|
|
|
153
160
|
createdBy: z7.instanceof(Types5.ObjectId).or(z7.string()),
|
|
154
161
|
lastEditBy: z7.instanceof(Types5.ObjectId).or(z7.string()).optional()
|
|
155
162
|
});
|
|
156
|
-
var zMInvoice =
|
|
163
|
+
var zMInvoice = addMongooseProps(zInvoice);
|
|
157
164
|
|
|
158
165
|
// src/interface/payment/teacherPayment.ts
|
|
159
166
|
import { Types as Types6 } from "mongoose";
|
|
@@ -169,7 +176,7 @@ var zTeacherPayment = z8.object({
|
|
|
169
176
|
rows: z8.array(zTeacherPaymentRow),
|
|
170
177
|
paid: z8.boolean().optional()
|
|
171
178
|
});
|
|
172
|
-
var zMTeacherPayment =
|
|
179
|
+
var zMTeacherPayment = addMongooseProps(zTeacherPayment);
|
|
173
180
|
|
|
174
181
|
// src/interface/tracking/classTracker.ts
|
|
175
182
|
var zClassTracker = z9.object({
|
|
@@ -187,7 +194,7 @@ var zClassTracker = z9.object({
|
|
|
187
194
|
paused: z9.boolean().optional(),
|
|
188
195
|
notes: z9.string().optional()
|
|
189
196
|
});
|
|
190
|
-
var zMClassTracker =
|
|
197
|
+
var zMClassTracker = addMongooseProps(zClassTracker);
|
|
191
198
|
|
|
192
199
|
// src/interface/tracking/groupTracker.ts
|
|
193
200
|
import { z as z12 } from "zod";
|
|
@@ -256,7 +263,7 @@ var zCourse = z11.object({
|
|
|
256
263
|
*/
|
|
257
264
|
fullCampTuition: z11.number().int("Tuition must be a whole number in cents").min(1, "Tuition must not be less than or equal to 0").optional()
|
|
258
265
|
});
|
|
259
|
-
var zMCourse =
|
|
266
|
+
var zMCourse = addMongooseProps(zCourse);
|
|
260
267
|
|
|
261
268
|
// src/interface/tracking/groupTracker.ts
|
|
262
269
|
import { Types as Types8 } from "mongoose";
|
|
@@ -287,7 +294,7 @@ var zGroupTracker = z12.object({
|
|
|
287
294
|
isNonPublic: z12.boolean().optional(),
|
|
288
295
|
notes: z12.string().optional()
|
|
289
296
|
});
|
|
290
|
-
var zMGroupTracker =
|
|
297
|
+
var zMGroupTracker = addMongooseProps(zGroupTracker);
|
|
291
298
|
|
|
292
299
|
// src/interface/booking/campBooking.ts
|
|
293
300
|
var zCampBooking = z13.object({
|
|
@@ -297,7 +304,7 @@ var zCampBooking = z13.object({
|
|
|
297
304
|
campOption: z13.nativeEnum(CampOption),
|
|
298
305
|
shipping: z13.boolean().optional()
|
|
299
306
|
}).merge(zBUserInfo).merge(zBPaymentInfo);
|
|
300
|
-
var zMCampBooking =
|
|
307
|
+
var zMCampBooking = addMongooseProps(zCampBooking);
|
|
301
308
|
|
|
302
309
|
// src/interface/booking/groupBooking.ts
|
|
303
310
|
import { Types as Types9 } from "mongoose";
|
|
@@ -309,7 +316,7 @@ var zGroupBooking = z14.object({
|
|
|
309
316
|
classDate: z14.string().optional(),
|
|
310
317
|
shipping: z14.boolean().optional()
|
|
311
318
|
}).merge(zBUserInfo).merge(zBPaymentInfo);
|
|
312
|
-
var zMGroupBooking =
|
|
319
|
+
var zMGroupBooking = addMongooseProps(zGroupBooking);
|
|
313
320
|
|
|
314
321
|
// src/interface/booking/privateBooking.ts
|
|
315
322
|
import { Types as Types10 } from "mongoose";
|
|
@@ -319,7 +326,7 @@ var zPrivateBooking = z15.object({
|
|
|
319
326
|
teacherId: z15.instanceof(Types10.ObjectId).or(z15.string()),
|
|
320
327
|
classDate: z15.string().optional()
|
|
321
328
|
}).merge(zBUserInfo).merge(zBPaymentInfo);
|
|
322
|
-
var zMPrivateBooking =
|
|
329
|
+
var zMPrivateBooking = addMongooseProps(zPrivateBooking);
|
|
323
330
|
|
|
324
331
|
// src/interface/public/aurora.ts
|
|
325
332
|
import { z as z16 } from "zod";
|
|
@@ -368,7 +375,7 @@ var zReportTicket = z18.object({
|
|
|
368
375
|
title: z18.string(),
|
|
369
376
|
description: z18.string()
|
|
370
377
|
});
|
|
371
|
-
var zMReportTicket =
|
|
378
|
+
var zMReportTicket = addMongooseProps(zReportTicket);
|
|
372
379
|
|
|
373
380
|
// src/interface/semester/season.ts
|
|
374
381
|
var Season = /* @__PURE__ */ ((Season2) => {
|
|
@@ -394,7 +401,7 @@ var zSemester = z19.object({
|
|
|
394
401
|
*/
|
|
395
402
|
importantDates: z19.array(z19.string())
|
|
396
403
|
});
|
|
397
|
-
var zMSemester =
|
|
404
|
+
var zMSemester = addMongooseProps(zSemester);
|
|
398
405
|
|
|
399
406
|
// src/interface/event/eConfig.ts
|
|
400
407
|
import { Types as Types12 } from "mongoose";
|
|
@@ -421,7 +428,8 @@ var zEventTicket = z20.object({
|
|
|
421
428
|
*/
|
|
422
429
|
lastBuyableDate: z20.coerce.date().optional()
|
|
423
430
|
});
|
|
424
|
-
var zMEventTicket =
|
|
431
|
+
var zMEventTicket = addMongooseProps(zEventTicket);
|
|
432
|
+
var zMEventTicketResponse = addMongoosePropsToResponse(zEventTicket);
|
|
425
433
|
|
|
426
434
|
// src/interface/event/table.ts
|
|
427
435
|
import { z as z21 } from "zod";
|
|
@@ -497,11 +505,11 @@ var zEventConfig = z22.object({
|
|
|
497
505
|
*/
|
|
498
506
|
image: zImageDef.optional()
|
|
499
507
|
});
|
|
508
|
+
var zMEventConfig = addMongooseProps(zEventConfig);
|
|
500
509
|
var zEventConfigResponse = zEventConfig.extend({
|
|
501
|
-
tickets: z22.array(
|
|
510
|
+
tickets: z22.array(zMEventTicketResponse)
|
|
502
511
|
});
|
|
503
|
-
var
|
|
504
|
-
var zMTConfigResponse = extendZodObjectForMongoose(zEventConfigResponse);
|
|
512
|
+
var zMEventConfigResponse = addMongoosePropsToResponse(zEventConfigResponse);
|
|
505
513
|
|
|
506
514
|
// src/interface/event/eReg.ts
|
|
507
515
|
import { Types as Types14 } from "mongoose";
|
|
@@ -542,8 +550,8 @@ var zEventReg = z24.object({
|
|
|
542
550
|
var zEventRegResponse = zEventReg.extend({
|
|
543
551
|
tickets: z24.array(zEventTicketRegResponse)
|
|
544
552
|
});
|
|
545
|
-
var zMEventReg =
|
|
546
|
-
var zMEventRegResponse =
|
|
553
|
+
var zMEventReg = addMongooseProps(zEventReg);
|
|
554
|
+
var zMEventRegResponse = addMongoosePropsToResponse(zEventRegResponse);
|
|
547
555
|
|
|
548
556
|
// src/interface/user/goRank.ts
|
|
549
557
|
var GoRank = /* @__PURE__ */ ((GoRank2) => {
|
|
@@ -611,12 +619,12 @@ var zUser = z25.object({
|
|
|
611
619
|
message: "Enter a valid date in yyyy-mm-dd format"
|
|
612
620
|
}).optional()
|
|
613
621
|
});
|
|
614
|
-
var zMUser =
|
|
622
|
+
var zMUser = addMongooseProps(zUser);
|
|
615
623
|
var zStudent = zUser.extend({
|
|
616
624
|
rank: z25.nativeEnum(GoRank),
|
|
617
625
|
guardian: z25.instanceof(Types15.ObjectId).optional()
|
|
618
626
|
});
|
|
619
|
-
var zMStudent =
|
|
627
|
+
var zMStudent = addMongooseProps(zStudent);
|
|
620
628
|
var zTeacher = zUser.extend({
|
|
621
629
|
rank: z25.nativeEnum(GoRank),
|
|
622
630
|
/**
|
|
@@ -646,7 +654,7 @@ var zTeacher = zUser.extend({
|
|
|
646
654
|
*/
|
|
647
655
|
available: z25.array(z25.array(z25.array(z25.number()))).optional()
|
|
648
656
|
});
|
|
649
|
-
var zMTeacher =
|
|
657
|
+
var zMTeacher = addMongooseProps(zTeacher);
|
|
650
658
|
|
|
651
659
|
// src/interface/user/userRoles.ts
|
|
652
660
|
import { z as z26 } from "zod";
|
|
@@ -695,9 +703,11 @@ export {
|
|
|
695
703
|
zMClassTracker,
|
|
696
704
|
zMCourse,
|
|
697
705
|
zMEventConfig,
|
|
706
|
+
zMEventConfigResponse,
|
|
698
707
|
zMEventReg,
|
|
699
708
|
zMEventRegResponse,
|
|
700
709
|
zMEventTicket,
|
|
710
|
+
zMEventTicketResponse,
|
|
701
711
|
zMGroupBooking,
|
|
702
712
|
zMGroupTracker,
|
|
703
713
|
zMInvoice,
|
|
@@ -705,7 +715,6 @@ export {
|
|
|
705
715
|
zMReportTicket,
|
|
706
716
|
zMSemester,
|
|
707
717
|
zMStudent,
|
|
708
|
-
zMTConfigResponse,
|
|
709
718
|
zMTeacher,
|
|
710
719
|
zMTeacherPayment,
|
|
711
720
|
zMUser,
|