@nyig/models 0.2.24 → 0.2.25
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 +385 -21
- package/index.d.ts +385 -21
- package/index.js +63 -50
- package/index.mjs +52 -42
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -1518,7 +1518,7 @@ declare const zMSemester: z.ZodObject<{
|
|
|
1518
1518
|
type Semester = z.infer<typeof zSemester>;
|
|
1519
1519
|
type MSemester = z.infer<typeof zMSemester>;
|
|
1520
1520
|
|
|
1521
|
-
declare const
|
|
1521
|
+
declare const zEventConfig: z.ZodObject<{
|
|
1522
1522
|
/**
|
|
1523
1523
|
* Location of the event
|
|
1524
1524
|
*/
|
|
@@ -1659,7 +1659,7 @@ declare const zTConfig: z.ZodObject<{
|
|
|
1659
1659
|
width: number;
|
|
1660
1660
|
} | undefined;
|
|
1661
1661
|
}>;
|
|
1662
|
-
declare const
|
|
1662
|
+
declare const zEventConfigResponse: z.ZodObject<{
|
|
1663
1663
|
description: z.ZodString;
|
|
1664
1664
|
title: z.ZodString;
|
|
1665
1665
|
url: z.ZodString;
|
|
@@ -1704,23 +1704,32 @@ declare const zTConfigResponse: z.ZodObject<{
|
|
|
1704
1704
|
width: number;
|
|
1705
1705
|
}>>;
|
|
1706
1706
|
tickets: z.ZodArray<z.ZodObject<{
|
|
1707
|
-
name: z.ZodString;
|
|
1708
1707
|
price: z.ZodNumber;
|
|
1708
|
+
name: z.ZodString;
|
|
1709
1709
|
description: z.ZodOptional<z.ZodString>;
|
|
1710
1710
|
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
1711
1711
|
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
1712
|
-
|
|
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);
|
|
1713
1717
|
price: number;
|
|
1714
1718
|
name: string;
|
|
1715
1719
|
description?: string | undefined;
|
|
1716
1720
|
isNotBuyable?: boolean | undefined;
|
|
1717
1721
|
lastBuyableDate?: Date | undefined;
|
|
1722
|
+
createdAt?: Date | undefined;
|
|
1723
|
+
updatedAt?: Date | undefined;
|
|
1718
1724
|
}, {
|
|
1725
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1719
1726
|
price: number;
|
|
1720
1727
|
name: string;
|
|
1721
1728
|
description?: string | undefined;
|
|
1722
1729
|
isNotBuyable?: boolean | undefined;
|
|
1723
1730
|
lastBuyableDate?: Date | undefined;
|
|
1731
|
+
createdAt?: Date | undefined;
|
|
1732
|
+
updatedAt?: Date | undefined;
|
|
1724
1733
|
}>, "many">;
|
|
1725
1734
|
}, "strip", z.ZodTypeAny, {
|
|
1726
1735
|
description: string;
|
|
@@ -1739,11 +1748,14 @@ declare const zTConfigResponse: z.ZodObject<{
|
|
|
1739
1748
|
fields: string[];
|
|
1740
1749
|
};
|
|
1741
1750
|
tickets: {
|
|
1751
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1742
1752
|
price: number;
|
|
1743
1753
|
name: string;
|
|
1744
1754
|
description?: string | undefined;
|
|
1745
1755
|
isNotBuyable?: boolean | undefined;
|
|
1746
1756
|
lastBuyableDate?: Date | undefined;
|
|
1757
|
+
createdAt?: Date | undefined;
|
|
1758
|
+
updatedAt?: Date | undefined;
|
|
1747
1759
|
}[];
|
|
1748
1760
|
canRegister: boolean;
|
|
1749
1761
|
location?: string | undefined;
|
|
@@ -1770,11 +1782,14 @@ declare const zTConfigResponse: z.ZodObject<{
|
|
|
1770
1782
|
fields: string[];
|
|
1771
1783
|
};
|
|
1772
1784
|
tickets: {
|
|
1785
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1773
1786
|
price: number;
|
|
1774
1787
|
name: string;
|
|
1775
1788
|
description?: string | undefined;
|
|
1776
1789
|
isNotBuyable?: boolean | undefined;
|
|
1777
1790
|
lastBuyableDate?: Date | undefined;
|
|
1791
|
+
createdAt?: Date | undefined;
|
|
1792
|
+
updatedAt?: Date | undefined;
|
|
1778
1793
|
}[];
|
|
1779
1794
|
canRegister: boolean;
|
|
1780
1795
|
location?: string | undefined;
|
|
@@ -1785,7 +1800,7 @@ declare const zTConfigResponse: z.ZodObject<{
|
|
|
1785
1800
|
width: number;
|
|
1786
1801
|
} | undefined;
|
|
1787
1802
|
}>;
|
|
1788
|
-
declare const
|
|
1803
|
+
declare const zMEventConfig: z.ZodObject<{
|
|
1789
1804
|
description: z.ZodString;
|
|
1790
1805
|
title: z.ZodString;
|
|
1791
1806
|
url: z.ZodString;
|
|
@@ -1920,23 +1935,32 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
1920
1935
|
fields: string[];
|
|
1921
1936
|
}>;
|
|
1922
1937
|
tickets: z.ZodArray<z.ZodObject<{
|
|
1923
|
-
name: z.ZodString;
|
|
1924
1938
|
price: z.ZodNumber;
|
|
1939
|
+
name: z.ZodString;
|
|
1925
1940
|
description: z.ZodOptional<z.ZodString>;
|
|
1926
1941
|
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
1927
1942
|
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
1928
|
-
|
|
1943
|
+
_id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
1944
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1945
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
1946
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1947
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1929
1948
|
price: number;
|
|
1930
1949
|
name: string;
|
|
1931
1950
|
description?: string | undefined;
|
|
1932
1951
|
isNotBuyable?: boolean | undefined;
|
|
1933
1952
|
lastBuyableDate?: Date | undefined;
|
|
1953
|
+
createdAt?: Date | undefined;
|
|
1954
|
+
updatedAt?: Date | undefined;
|
|
1934
1955
|
}, {
|
|
1956
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1935
1957
|
price: number;
|
|
1936
1958
|
name: string;
|
|
1937
1959
|
description?: string | undefined;
|
|
1938
1960
|
isNotBuyable?: boolean | undefined;
|
|
1939
1961
|
lastBuyableDate?: Date | undefined;
|
|
1962
|
+
createdAt?: Date | undefined;
|
|
1963
|
+
updatedAt?: Date | undefined;
|
|
1940
1964
|
}>, "many">;
|
|
1941
1965
|
canRegister: z.ZodBoolean;
|
|
1942
1966
|
donationsDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1974,11 +1998,14 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
1974
1998
|
fields: string[];
|
|
1975
1999
|
};
|
|
1976
2000
|
tickets: {
|
|
2001
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
1977
2002
|
price: number;
|
|
1978
2003
|
name: string;
|
|
1979
2004
|
description?: string | undefined;
|
|
1980
2005
|
isNotBuyable?: boolean | undefined;
|
|
1981
2006
|
lastBuyableDate?: Date | undefined;
|
|
2007
|
+
createdAt?: Date | undefined;
|
|
2008
|
+
updatedAt?: Date | undefined;
|
|
1982
2009
|
}[];
|
|
1983
2010
|
canRegister: boolean;
|
|
1984
2011
|
location?: string | undefined;
|
|
@@ -2008,11 +2035,14 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
2008
2035
|
fields: string[];
|
|
2009
2036
|
};
|
|
2010
2037
|
tickets: {
|
|
2038
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2011
2039
|
price: number;
|
|
2012
2040
|
name: string;
|
|
2013
2041
|
description?: string | undefined;
|
|
2014
2042
|
isNotBuyable?: boolean | undefined;
|
|
2015
2043
|
lastBuyableDate?: Date | undefined;
|
|
2044
|
+
createdAt?: Date | undefined;
|
|
2045
|
+
updatedAt?: Date | undefined;
|
|
2016
2046
|
}[];
|
|
2017
2047
|
canRegister: boolean;
|
|
2018
2048
|
location?: string | undefined;
|
|
@@ -2025,9 +2055,10 @@ declare const zMTConfigResponse: z.ZodObject<{
|
|
|
2025
2055
|
createdAt?: Date | undefined;
|
|
2026
2056
|
updatedAt?: Date | undefined;
|
|
2027
2057
|
}>;
|
|
2028
|
-
type
|
|
2029
|
-
type
|
|
2030
|
-
type
|
|
2058
|
+
type EventConfig = z.infer<typeof zEventConfig>;
|
|
2059
|
+
type EventConfigResponse = z.infer<typeof zEventConfigResponse>;
|
|
2060
|
+
type MEventConfig = z.infer<typeof zMEventConfig>;
|
|
2061
|
+
type MEventConfigResponse = z.infer<typeof zMTConfigResponse>;
|
|
2031
2062
|
|
|
2032
2063
|
declare const zDetailsTable: z.ZodObject<{
|
|
2033
2064
|
fields: z.ZodArray<z.ZodString, "many">;
|
|
@@ -2052,7 +2083,7 @@ declare const zScheduleTable: z.ZodObject<{
|
|
|
2052
2083
|
type DetailsTable = z.infer<typeof zDetailsTable>;
|
|
2053
2084
|
type ScheduleTable = z.infer<typeof zScheduleTable>;
|
|
2054
2085
|
|
|
2055
|
-
declare const
|
|
2086
|
+
declare const zEventReg: z.ZodObject<{
|
|
2056
2087
|
userId: z.ZodOptional<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>>;
|
|
2057
2088
|
firstName: z.ZodString;
|
|
2058
2089
|
lastName: z.ZodString;
|
|
@@ -2122,7 +2153,140 @@ declare const zTReg: z.ZodObject<{
|
|
|
2122
2153
|
paymentReceived?: boolean | undefined;
|
|
2123
2154
|
expireAt?: Date | undefined;
|
|
2124
2155
|
}>;
|
|
2125
|
-
declare const
|
|
2156
|
+
declare const zEventRegResponse: z.ZodObject<{
|
|
2157
|
+
paymentAmount: z.ZodNumber;
|
|
2158
|
+
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
2159
|
+
expireAt: z.ZodOptional<z.ZodDate>;
|
|
2160
|
+
userId: z.ZodOptional<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>>;
|
|
2161
|
+
firstName: z.ZodString;
|
|
2162
|
+
lastName: z.ZodString;
|
|
2163
|
+
rank: z.ZodString;
|
|
2164
|
+
email: z.ZodString;
|
|
2165
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
2166
|
+
address: z.ZodOptional<z.ZodString>;
|
|
2167
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
2168
|
+
agaId: z.ZodString;
|
|
2169
|
+
tournamentId: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
2170
|
+
donation: z.ZodOptional<z.ZodNumber>;
|
|
2171
|
+
createMethod: z.ZodOptional<z.ZodString>;
|
|
2172
|
+
edited: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
|
|
2173
|
+
tickets: z.ZodArray<z.ZodObject<{
|
|
2174
|
+
amount: z.ZodNumber;
|
|
2175
|
+
ticket: z.ZodObject<{
|
|
2176
|
+
price: z.ZodNumber;
|
|
2177
|
+
name: z.ZodString;
|
|
2178
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2179
|
+
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
2180
|
+
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
2181
|
+
_id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
2182
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2183
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2184
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2185
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2186
|
+
price: number;
|
|
2187
|
+
name: string;
|
|
2188
|
+
description?: string | undefined;
|
|
2189
|
+
isNotBuyable?: boolean | undefined;
|
|
2190
|
+
lastBuyableDate?: Date | undefined;
|
|
2191
|
+
createdAt?: Date | undefined;
|
|
2192
|
+
updatedAt?: Date | undefined;
|
|
2193
|
+
}, {
|
|
2194
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2195
|
+
price: number;
|
|
2196
|
+
name: string;
|
|
2197
|
+
description?: string | undefined;
|
|
2198
|
+
isNotBuyable?: boolean | undefined;
|
|
2199
|
+
lastBuyableDate?: Date | undefined;
|
|
2200
|
+
createdAt?: Date | undefined;
|
|
2201
|
+
updatedAt?: Date | undefined;
|
|
2202
|
+
}>;
|
|
2203
|
+
}, "strip", z.ZodTypeAny, {
|
|
2204
|
+
amount: number;
|
|
2205
|
+
ticket: {
|
|
2206
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2207
|
+
price: number;
|
|
2208
|
+
name: string;
|
|
2209
|
+
description?: string | undefined;
|
|
2210
|
+
isNotBuyable?: boolean | undefined;
|
|
2211
|
+
lastBuyableDate?: Date | undefined;
|
|
2212
|
+
createdAt?: Date | undefined;
|
|
2213
|
+
updatedAt?: Date | undefined;
|
|
2214
|
+
};
|
|
2215
|
+
}, {
|
|
2216
|
+
amount: number;
|
|
2217
|
+
ticket: {
|
|
2218
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2219
|
+
price: number;
|
|
2220
|
+
name: string;
|
|
2221
|
+
description?: string | undefined;
|
|
2222
|
+
isNotBuyable?: boolean | undefined;
|
|
2223
|
+
lastBuyableDate?: Date | undefined;
|
|
2224
|
+
createdAt?: Date | undefined;
|
|
2225
|
+
updatedAt?: Date | undefined;
|
|
2226
|
+
};
|
|
2227
|
+
}>, "many">;
|
|
2228
|
+
}, "strip", z.ZodTypeAny, {
|
|
2229
|
+
paymentAmount: number;
|
|
2230
|
+
firstName: string;
|
|
2231
|
+
lastName: string;
|
|
2232
|
+
rank: string;
|
|
2233
|
+
email: string;
|
|
2234
|
+
tickets: {
|
|
2235
|
+
amount: number;
|
|
2236
|
+
ticket: {
|
|
2237
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2238
|
+
price: number;
|
|
2239
|
+
name: string;
|
|
2240
|
+
description?: string | undefined;
|
|
2241
|
+
isNotBuyable?: boolean | undefined;
|
|
2242
|
+
lastBuyableDate?: Date | undefined;
|
|
2243
|
+
createdAt?: Date | undefined;
|
|
2244
|
+
updatedAt?: Date | undefined;
|
|
2245
|
+
};
|
|
2246
|
+
}[];
|
|
2247
|
+
agaId: string;
|
|
2248
|
+
tournamentId: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2249
|
+
paymentReceived?: boolean | undefined;
|
|
2250
|
+
expireAt?: Date | undefined;
|
|
2251
|
+
userId?: string | Types.ObjectId | undefined;
|
|
2252
|
+
phone?: string | undefined;
|
|
2253
|
+
address?: string | undefined;
|
|
2254
|
+
notes?: string | undefined;
|
|
2255
|
+
donation?: number | undefined;
|
|
2256
|
+
createMethod?: string | undefined;
|
|
2257
|
+
edited?: Types.ObjectId | undefined;
|
|
2258
|
+
}, {
|
|
2259
|
+
paymentAmount: number;
|
|
2260
|
+
firstName: string;
|
|
2261
|
+
lastName: string;
|
|
2262
|
+
rank: string;
|
|
2263
|
+
email: string;
|
|
2264
|
+
tickets: {
|
|
2265
|
+
amount: number;
|
|
2266
|
+
ticket: {
|
|
2267
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2268
|
+
price: number;
|
|
2269
|
+
name: string;
|
|
2270
|
+
description?: string | undefined;
|
|
2271
|
+
isNotBuyable?: boolean | undefined;
|
|
2272
|
+
lastBuyableDate?: Date | undefined;
|
|
2273
|
+
createdAt?: Date | undefined;
|
|
2274
|
+
updatedAt?: Date | undefined;
|
|
2275
|
+
};
|
|
2276
|
+
}[];
|
|
2277
|
+
agaId: string;
|
|
2278
|
+
tournamentId: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2279
|
+
paymentReceived?: boolean | undefined;
|
|
2280
|
+
expireAt?: Date | undefined;
|
|
2281
|
+
userId?: string | Types.ObjectId | undefined;
|
|
2282
|
+
phone?: string | undefined;
|
|
2283
|
+
address?: string | undefined;
|
|
2284
|
+
notes?: string | undefined;
|
|
2285
|
+
donation?: number | undefined;
|
|
2286
|
+
createMethod?: string | undefined;
|
|
2287
|
+
edited?: Types.ObjectId | undefined;
|
|
2288
|
+
}>;
|
|
2289
|
+
declare const zMEventReg: z.ZodObject<{
|
|
2126
2290
|
paymentAmount: z.ZodNumber;
|
|
2127
2291
|
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
2128
2292
|
expireAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -2201,10 +2365,154 @@ declare const zMTReg: z.ZodObject<{
|
|
|
2201
2365
|
createdAt?: Date | undefined;
|
|
2202
2366
|
updatedAt?: Date | undefined;
|
|
2203
2367
|
}>;
|
|
2204
|
-
|
|
2205
|
-
|
|
2368
|
+
declare const zMEventRegResponse: z.ZodObject<{
|
|
2369
|
+
paymentAmount: z.ZodNumber;
|
|
2370
|
+
paymentReceived: z.ZodOptional<z.ZodBoolean>;
|
|
2371
|
+
expireAt: z.ZodOptional<z.ZodDate>;
|
|
2372
|
+
userId: z.ZodOptional<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>>;
|
|
2373
|
+
firstName: z.ZodString;
|
|
2374
|
+
lastName: z.ZodString;
|
|
2375
|
+
rank: z.ZodString;
|
|
2376
|
+
email: z.ZodString;
|
|
2377
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
2378
|
+
address: z.ZodOptional<z.ZodString>;
|
|
2379
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
2380
|
+
tickets: z.ZodArray<z.ZodObject<{
|
|
2381
|
+
amount: z.ZodNumber;
|
|
2382
|
+
ticket: z.ZodObject<{
|
|
2383
|
+
price: z.ZodNumber;
|
|
2384
|
+
name: z.ZodString;
|
|
2385
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2386
|
+
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
2387
|
+
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
2388
|
+
_id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
2389
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2390
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2391
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2392
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2393
|
+
price: number;
|
|
2394
|
+
name: string;
|
|
2395
|
+
description?: string | undefined;
|
|
2396
|
+
isNotBuyable?: boolean | undefined;
|
|
2397
|
+
lastBuyableDate?: Date | undefined;
|
|
2398
|
+
createdAt?: Date | undefined;
|
|
2399
|
+
updatedAt?: Date | undefined;
|
|
2400
|
+
}, {
|
|
2401
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2402
|
+
price: number;
|
|
2403
|
+
name: string;
|
|
2404
|
+
description?: string | undefined;
|
|
2405
|
+
isNotBuyable?: boolean | undefined;
|
|
2406
|
+
lastBuyableDate?: Date | undefined;
|
|
2407
|
+
createdAt?: Date | undefined;
|
|
2408
|
+
updatedAt?: Date | undefined;
|
|
2409
|
+
}>;
|
|
2410
|
+
}, "strip", z.ZodTypeAny, {
|
|
2411
|
+
amount: number;
|
|
2412
|
+
ticket: {
|
|
2413
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2414
|
+
price: number;
|
|
2415
|
+
name: string;
|
|
2416
|
+
description?: string | undefined;
|
|
2417
|
+
isNotBuyable?: boolean | undefined;
|
|
2418
|
+
lastBuyableDate?: Date | undefined;
|
|
2419
|
+
createdAt?: Date | undefined;
|
|
2420
|
+
updatedAt?: Date | undefined;
|
|
2421
|
+
};
|
|
2422
|
+
}, {
|
|
2423
|
+
amount: number;
|
|
2424
|
+
ticket: {
|
|
2425
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2426
|
+
price: number;
|
|
2427
|
+
name: string;
|
|
2428
|
+
description?: string | undefined;
|
|
2429
|
+
isNotBuyable?: boolean | undefined;
|
|
2430
|
+
lastBuyableDate?: Date | undefined;
|
|
2431
|
+
createdAt?: Date | undefined;
|
|
2432
|
+
updatedAt?: Date | undefined;
|
|
2433
|
+
};
|
|
2434
|
+
}>, "many">;
|
|
2435
|
+
agaId: z.ZodString;
|
|
2436
|
+
tournamentId: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
2437
|
+
donation: z.ZodOptional<z.ZodNumber>;
|
|
2438
|
+
createMethod: z.ZodOptional<z.ZodString>;
|
|
2439
|
+
edited: z.ZodOptional<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>>;
|
|
2440
|
+
_id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
2441
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2442
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2443
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2444
|
+
paymentAmount: number;
|
|
2445
|
+
firstName: string;
|
|
2446
|
+
lastName: string;
|
|
2447
|
+
rank: string;
|
|
2448
|
+
email: string;
|
|
2449
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2450
|
+
tickets: {
|
|
2451
|
+
amount: number;
|
|
2452
|
+
ticket: {
|
|
2453
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2454
|
+
price: number;
|
|
2455
|
+
name: string;
|
|
2456
|
+
description?: string | undefined;
|
|
2457
|
+
isNotBuyable?: boolean | undefined;
|
|
2458
|
+
lastBuyableDate?: Date | undefined;
|
|
2459
|
+
createdAt?: Date | undefined;
|
|
2460
|
+
updatedAt?: Date | undefined;
|
|
2461
|
+
};
|
|
2462
|
+
}[];
|
|
2463
|
+
agaId: string;
|
|
2464
|
+
tournamentId: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2465
|
+
paymentReceived?: boolean | undefined;
|
|
2466
|
+
expireAt?: Date | undefined;
|
|
2467
|
+
userId?: string | Types.ObjectId | undefined;
|
|
2468
|
+
phone?: string | undefined;
|
|
2469
|
+
address?: string | undefined;
|
|
2470
|
+
notes?: string | undefined;
|
|
2471
|
+
donation?: number | undefined;
|
|
2472
|
+
createMethod?: string | undefined;
|
|
2473
|
+
edited?: Types.ObjectId | undefined;
|
|
2474
|
+
createdAt?: Date | undefined;
|
|
2475
|
+
updatedAt?: Date | undefined;
|
|
2476
|
+
}, {
|
|
2477
|
+
paymentAmount: number;
|
|
2478
|
+
firstName: string;
|
|
2479
|
+
lastName: string;
|
|
2480
|
+
rank: string;
|
|
2481
|
+
email: string;
|
|
2482
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2483
|
+
tickets: {
|
|
2484
|
+
amount: number;
|
|
2485
|
+
ticket: {
|
|
2486
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2487
|
+
price: number;
|
|
2488
|
+
name: string;
|
|
2489
|
+
description?: string | undefined;
|
|
2490
|
+
isNotBuyable?: boolean | undefined;
|
|
2491
|
+
lastBuyableDate?: Date | undefined;
|
|
2492
|
+
createdAt?: Date | undefined;
|
|
2493
|
+
updatedAt?: Date | undefined;
|
|
2494
|
+
};
|
|
2495
|
+
}[];
|
|
2496
|
+
agaId: string;
|
|
2497
|
+
tournamentId: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2498
|
+
paymentReceived?: boolean | undefined;
|
|
2499
|
+
expireAt?: Date | undefined;
|
|
2500
|
+
userId?: string | Types.ObjectId | undefined;
|
|
2501
|
+
phone?: string | undefined;
|
|
2502
|
+
address?: string | undefined;
|
|
2503
|
+
notes?: string | undefined;
|
|
2504
|
+
donation?: number | undefined;
|
|
2505
|
+
createMethod?: string | undefined;
|
|
2506
|
+
edited?: Types.ObjectId | undefined;
|
|
2507
|
+
createdAt?: Date | undefined;
|
|
2508
|
+
updatedAt?: Date | undefined;
|
|
2509
|
+
}>;
|
|
2510
|
+
type EventReg = z.infer<typeof zEventReg>;
|
|
2511
|
+
type EventRegResponse = z.infer<typeof zEventRegResponse>;
|
|
2512
|
+
type MEventReg = z.infer<typeof zMEventReg>;
|
|
2513
|
+
type MEventRegResponse = z.infer<typeof zMEventRegResponse>;
|
|
2206
2514
|
|
|
2207
|
-
declare const
|
|
2515
|
+
declare const zEventTicketReg: z.ZodObject<{
|
|
2208
2516
|
ticket: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
2209
2517
|
/**
|
|
2210
2518
|
* integer minimum 1, otherwise no ticket is being bought
|
|
@@ -2217,9 +2525,65 @@ declare const zTTicketReg: z.ZodObject<{
|
|
|
2217
2525
|
amount: number;
|
|
2218
2526
|
ticket: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2219
2527
|
}>;
|
|
2220
|
-
|
|
2528
|
+
declare const zEventTicketRegResponse: z.ZodObject<{
|
|
2529
|
+
amount: z.ZodNumber;
|
|
2530
|
+
ticket: z.ZodObject<{
|
|
2531
|
+
price: z.ZodNumber;
|
|
2532
|
+
name: z.ZodString;
|
|
2533
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2534
|
+
isNotBuyable: z.ZodOptional<z.ZodBoolean>;
|
|
2535
|
+
lastBuyableDate: z.ZodOptional<z.ZodDate>;
|
|
2536
|
+
_id: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
|
|
2537
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2538
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
2539
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2540
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2541
|
+
price: number;
|
|
2542
|
+
name: string;
|
|
2543
|
+
description?: string | undefined;
|
|
2544
|
+
isNotBuyable?: boolean | undefined;
|
|
2545
|
+
lastBuyableDate?: Date | undefined;
|
|
2546
|
+
createdAt?: Date | undefined;
|
|
2547
|
+
updatedAt?: Date | undefined;
|
|
2548
|
+
}, {
|
|
2549
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2550
|
+
price: number;
|
|
2551
|
+
name: string;
|
|
2552
|
+
description?: string | undefined;
|
|
2553
|
+
isNotBuyable?: boolean | undefined;
|
|
2554
|
+
lastBuyableDate?: Date | undefined;
|
|
2555
|
+
createdAt?: Date | undefined;
|
|
2556
|
+
updatedAt?: Date | undefined;
|
|
2557
|
+
}>;
|
|
2558
|
+
}, "strip", z.ZodTypeAny, {
|
|
2559
|
+
amount: number;
|
|
2560
|
+
ticket: {
|
|
2561
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2562
|
+
price: number;
|
|
2563
|
+
name: string;
|
|
2564
|
+
description?: string | undefined;
|
|
2565
|
+
isNotBuyable?: boolean | undefined;
|
|
2566
|
+
lastBuyableDate?: Date | undefined;
|
|
2567
|
+
createdAt?: Date | undefined;
|
|
2568
|
+
updatedAt?: Date | undefined;
|
|
2569
|
+
};
|
|
2570
|
+
}, {
|
|
2571
|
+
amount: number;
|
|
2572
|
+
ticket: {
|
|
2573
|
+
_id: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
|
|
2574
|
+
price: number;
|
|
2575
|
+
name: string;
|
|
2576
|
+
description?: string | undefined;
|
|
2577
|
+
isNotBuyable?: boolean | undefined;
|
|
2578
|
+
lastBuyableDate?: Date | undefined;
|
|
2579
|
+
createdAt?: Date | undefined;
|
|
2580
|
+
updatedAt?: Date | undefined;
|
|
2581
|
+
};
|
|
2582
|
+
}>;
|
|
2583
|
+
type EventTicketRegResponse = z.infer<typeof zEventTicketRegResponse>;
|
|
2584
|
+
type EventTicketReg = z.infer<typeof zEventTicketReg>;
|
|
2221
2585
|
|
|
2222
|
-
declare const
|
|
2586
|
+
declare const zEventTicket: z.ZodObject<{
|
|
2223
2587
|
name: z.ZodString;
|
|
2224
2588
|
/**
|
|
2225
2589
|
* Price in cents
|
|
@@ -2250,7 +2614,7 @@ declare const zTTicket: z.ZodObject<{
|
|
|
2250
2614
|
isNotBuyable?: boolean | undefined;
|
|
2251
2615
|
lastBuyableDate?: Date | undefined;
|
|
2252
2616
|
}>;
|
|
2253
|
-
declare const
|
|
2617
|
+
declare const zMEventTicket: z.ZodObject<{
|
|
2254
2618
|
price: z.ZodNumber;
|
|
2255
2619
|
name: z.ZodString;
|
|
2256
2620
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2278,8 +2642,8 @@ declare const zMTTicket: z.ZodObject<{
|
|
|
2278
2642
|
createdAt?: Date | undefined;
|
|
2279
2643
|
updatedAt?: Date | undefined;
|
|
2280
2644
|
}>;
|
|
2281
|
-
type
|
|
2282
|
-
type
|
|
2645
|
+
type EventTicket = z.infer<typeof zEventTicket>;
|
|
2646
|
+
type MEventTicket = z.infer<typeof zMEventTicket>;
|
|
2283
2647
|
|
|
2284
2648
|
declare enum GoRank {
|
|
2285
2649
|
KYU1 = "1k",
|
|
@@ -2602,4 +2966,4 @@ declare const zUserRoles: z.ZodObject<{
|
|
|
2602
2966
|
}>;
|
|
2603
2967
|
type UserRoles = z.infer<typeof zUserRoles>;
|
|
2604
2968
|
|
|
2605
|
-
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, GoRank, type GroupBooking, type GroupTracker, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type MAttendance, type MCampBooking, type MCampTracker, type MClassTracker, type MCourse, type
|
|
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, zMTConfigResponse, zMTeacher, zMTeacherPayment, zMUser, zPrivateBooking, zReportTicket, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentRow, zTuition, zUser, zUserRoles };
|