@nyig/models 0.2.46 → 0.3.1
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 +530 -76
- package/index.d.ts +530 -76
- package/index.js +253 -206
- package/index.mjs +248 -206
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -117,7 +117,19 @@ declare const zBUser: z.ZodObject<{
|
|
|
117
117
|
name: z.ZodString;
|
|
118
118
|
username: z.ZodOptional<z.ZodString>;
|
|
119
119
|
password: z.ZodOptional<z.ZodString>;
|
|
120
|
-
roles: z.ZodOptional<z.
|
|
120
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
121
|
+
user: z.ZodNumber;
|
|
122
|
+
admin: z.ZodNumber;
|
|
123
|
+
superadmin: z.ZodNumber;
|
|
124
|
+
}, "strip", z.ZodTypeAny, {
|
|
125
|
+
user: number;
|
|
126
|
+
admin: number;
|
|
127
|
+
superadmin: number;
|
|
128
|
+
}, {
|
|
129
|
+
user: number;
|
|
130
|
+
admin: number;
|
|
131
|
+
superadmin: number;
|
|
132
|
+
}>>;
|
|
121
133
|
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
122
134
|
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
123
135
|
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
@@ -127,7 +139,11 @@ declare const zBUser: z.ZodObject<{
|
|
|
127
139
|
name: string;
|
|
128
140
|
username?: string | undefined;
|
|
129
141
|
password?: string | undefined;
|
|
130
|
-
roles?:
|
|
142
|
+
roles?: {
|
|
143
|
+
user: number;
|
|
144
|
+
admin: number;
|
|
145
|
+
superadmin: number;
|
|
146
|
+
} | undefined;
|
|
131
147
|
email?: string | undefined;
|
|
132
148
|
address?: string | undefined;
|
|
133
149
|
country?: string | undefined;
|
|
@@ -137,7 +153,11 @@ declare const zBUser: z.ZodObject<{
|
|
|
137
153
|
name: string;
|
|
138
154
|
username?: string | undefined;
|
|
139
155
|
password?: string | undefined;
|
|
140
|
-
roles?:
|
|
156
|
+
roles?: {
|
|
157
|
+
user: number;
|
|
158
|
+
admin: number;
|
|
159
|
+
superadmin: number;
|
|
160
|
+
} | undefined;
|
|
141
161
|
email?: string | undefined;
|
|
142
162
|
address?: string | undefined;
|
|
143
163
|
country?: string | undefined;
|
|
@@ -150,7 +170,19 @@ declare const zUser: z.ZodObject<{
|
|
|
150
170
|
name: z.ZodString;
|
|
151
171
|
username: z.ZodOptional<z.ZodString>;
|
|
152
172
|
password: z.ZodOptional<z.ZodString>;
|
|
153
|
-
roles: z.ZodOptional<z.
|
|
173
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
174
|
+
user: z.ZodNumber;
|
|
175
|
+
admin: z.ZodNumber;
|
|
176
|
+
superadmin: z.ZodNumber;
|
|
177
|
+
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
user: number;
|
|
179
|
+
admin: number;
|
|
180
|
+
superadmin: number;
|
|
181
|
+
}, {
|
|
182
|
+
user: number;
|
|
183
|
+
admin: number;
|
|
184
|
+
superadmin: number;
|
|
185
|
+
}>>;
|
|
154
186
|
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
155
187
|
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
156
188
|
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
@@ -165,7 +197,11 @@ declare const zUser: z.ZodObject<{
|
|
|
165
197
|
address?: string | undefined;
|
|
166
198
|
username?: string | undefined;
|
|
167
199
|
password?: string | undefined;
|
|
168
|
-
roles?:
|
|
200
|
+
roles?: {
|
|
201
|
+
user: number;
|
|
202
|
+
admin: number;
|
|
203
|
+
superadmin: number;
|
|
204
|
+
} | undefined;
|
|
169
205
|
country?: string | undefined;
|
|
170
206
|
phoneNumber?: string | undefined;
|
|
171
207
|
birthDate?: string | undefined;
|
|
@@ -179,7 +215,11 @@ declare const zUser: z.ZodObject<{
|
|
|
179
215
|
address?: string | undefined;
|
|
180
216
|
username?: string | undefined;
|
|
181
217
|
password?: string | undefined;
|
|
182
|
-
roles?:
|
|
218
|
+
roles?: {
|
|
219
|
+
user: number;
|
|
220
|
+
admin: number;
|
|
221
|
+
superadmin: number;
|
|
222
|
+
} | undefined;
|
|
183
223
|
country?: string | undefined;
|
|
184
224
|
phoneNumber?: string | undefined;
|
|
185
225
|
birthDate?: string | undefined;
|
|
@@ -187,13 +227,48 @@ declare const zUser: z.ZodObject<{
|
|
|
187
227
|
createdAt?: string | undefined;
|
|
188
228
|
updatedAt?: string | undefined;
|
|
189
229
|
}>;
|
|
230
|
+
type BUser = z.infer<typeof zBUser>;
|
|
231
|
+
type User = z.infer<typeof zUser>;
|
|
232
|
+
|
|
233
|
+
declare enum Role {
|
|
234
|
+
SUPERADMIN = 7926,
|
|
235
|
+
ADMIN = 2023,
|
|
236
|
+
USER = 2014
|
|
237
|
+
}
|
|
238
|
+
declare const zUserRoles: z.ZodObject<{
|
|
239
|
+
user: z.ZodNumber;
|
|
240
|
+
admin: z.ZodNumber;
|
|
241
|
+
superadmin: z.ZodNumber;
|
|
242
|
+
}, "strip", z.ZodTypeAny, {
|
|
243
|
+
user: number;
|
|
244
|
+
admin: number;
|
|
245
|
+
superadmin: number;
|
|
246
|
+
}, {
|
|
247
|
+
user: number;
|
|
248
|
+
admin: number;
|
|
249
|
+
superadmin: number;
|
|
250
|
+
}>;
|
|
251
|
+
type UserRoles = z.infer<typeof zUserRoles>;
|
|
252
|
+
|
|
190
253
|
declare const zBStudent: z.ZodObject<{
|
|
191
254
|
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
192
255
|
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
193
256
|
name: z.ZodString;
|
|
194
257
|
username: z.ZodOptional<z.ZodString>;
|
|
195
258
|
password: z.ZodOptional<z.ZodString>;
|
|
196
|
-
roles: z.ZodOptional<z.
|
|
259
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
260
|
+
user: z.ZodNumber;
|
|
261
|
+
admin: z.ZodNumber;
|
|
262
|
+
superadmin: z.ZodNumber;
|
|
263
|
+
}, "strip", z.ZodTypeAny, {
|
|
264
|
+
user: number;
|
|
265
|
+
admin: number;
|
|
266
|
+
superadmin: number;
|
|
267
|
+
}, {
|
|
268
|
+
user: number;
|
|
269
|
+
admin: number;
|
|
270
|
+
superadmin: number;
|
|
271
|
+
}>>;
|
|
197
272
|
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
198
273
|
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
199
274
|
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
@@ -206,7 +281,11 @@ declare const zBStudent: z.ZodObject<{
|
|
|
206
281
|
address?: string | undefined;
|
|
207
282
|
username?: string | undefined;
|
|
208
283
|
password?: string | undefined;
|
|
209
|
-
roles?:
|
|
284
|
+
roles?: {
|
|
285
|
+
user: number;
|
|
286
|
+
admin: number;
|
|
287
|
+
superadmin: number;
|
|
288
|
+
} | undefined;
|
|
210
289
|
country?: string | undefined;
|
|
211
290
|
phoneNumber?: string | undefined;
|
|
212
291
|
birthDate?: string | undefined;
|
|
@@ -218,7 +297,11 @@ declare const zBStudent: z.ZodObject<{
|
|
|
218
297
|
address?: string | undefined;
|
|
219
298
|
username?: string | undefined;
|
|
220
299
|
password?: string | undefined;
|
|
221
|
-
roles?:
|
|
300
|
+
roles?: {
|
|
301
|
+
user: number;
|
|
302
|
+
admin: number;
|
|
303
|
+
superadmin: number;
|
|
304
|
+
} | undefined;
|
|
222
305
|
country?: string | undefined;
|
|
223
306
|
phoneNumber?: string | undefined;
|
|
224
307
|
birthDate?: string | undefined;
|
|
@@ -231,7 +314,19 @@ declare const zStudent: z.ZodObject<{
|
|
|
231
314
|
name: z.ZodString;
|
|
232
315
|
username: z.ZodOptional<z.ZodString>;
|
|
233
316
|
password: z.ZodOptional<z.ZodString>;
|
|
234
|
-
roles: z.ZodOptional<z.
|
|
317
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
318
|
+
user: z.ZodNumber;
|
|
319
|
+
admin: z.ZodNumber;
|
|
320
|
+
superadmin: z.ZodNumber;
|
|
321
|
+
}, "strip", z.ZodTypeAny, {
|
|
322
|
+
user: number;
|
|
323
|
+
admin: number;
|
|
324
|
+
superadmin: number;
|
|
325
|
+
}, {
|
|
326
|
+
user: number;
|
|
327
|
+
admin: number;
|
|
328
|
+
superadmin: number;
|
|
329
|
+
}>>;
|
|
235
330
|
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
236
331
|
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
237
332
|
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
@@ -248,7 +343,11 @@ declare const zStudent: z.ZodObject<{
|
|
|
248
343
|
address?: string | undefined;
|
|
249
344
|
username?: string | undefined;
|
|
250
345
|
password?: string | undefined;
|
|
251
|
-
roles?:
|
|
346
|
+
roles?: {
|
|
347
|
+
user: number;
|
|
348
|
+
admin: number;
|
|
349
|
+
superadmin: number;
|
|
350
|
+
} | undefined;
|
|
252
351
|
country?: string | undefined;
|
|
253
352
|
phoneNumber?: string | undefined;
|
|
254
353
|
birthDate?: string | undefined;
|
|
@@ -264,7 +363,11 @@ declare const zStudent: z.ZodObject<{
|
|
|
264
363
|
address?: string | undefined;
|
|
265
364
|
username?: string | undefined;
|
|
266
365
|
password?: string | undefined;
|
|
267
|
-
roles?:
|
|
366
|
+
roles?: {
|
|
367
|
+
user: number;
|
|
368
|
+
admin: number;
|
|
369
|
+
superadmin: number;
|
|
370
|
+
} | undefined;
|
|
268
371
|
country?: string | undefined;
|
|
269
372
|
phoneNumber?: string | undefined;
|
|
270
373
|
birthDate?: string | undefined;
|
|
@@ -273,13 +376,28 @@ declare const zStudent: z.ZodObject<{
|
|
|
273
376
|
createdAt?: string | undefined;
|
|
274
377
|
updatedAt?: string | undefined;
|
|
275
378
|
}>;
|
|
379
|
+
type BStudent = z.infer<typeof zBStudent>;
|
|
380
|
+
type Student = z.infer<typeof zStudent>;
|
|
381
|
+
|
|
276
382
|
declare const zBTeacher: z.ZodObject<{
|
|
277
383
|
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
278
384
|
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
279
385
|
name: z.ZodString;
|
|
280
386
|
username: z.ZodOptional<z.ZodString>;
|
|
281
387
|
password: z.ZodOptional<z.ZodString>;
|
|
282
|
-
roles: z.ZodOptional<z.
|
|
388
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
389
|
+
user: z.ZodNumber;
|
|
390
|
+
admin: z.ZodNumber;
|
|
391
|
+
superadmin: z.ZodNumber;
|
|
392
|
+
}, "strip", z.ZodTypeAny, {
|
|
393
|
+
user: number;
|
|
394
|
+
admin: number;
|
|
395
|
+
superadmin: number;
|
|
396
|
+
}, {
|
|
397
|
+
user: number;
|
|
398
|
+
admin: number;
|
|
399
|
+
superadmin: number;
|
|
400
|
+
}>>;
|
|
283
401
|
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
284
402
|
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
285
403
|
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
@@ -295,7 +413,11 @@ declare const zBTeacher: z.ZodObject<{
|
|
|
295
413
|
address?: string | undefined;
|
|
296
414
|
username?: string | undefined;
|
|
297
415
|
password?: string | undefined;
|
|
298
|
-
roles?:
|
|
416
|
+
roles?: {
|
|
417
|
+
user: number;
|
|
418
|
+
admin: number;
|
|
419
|
+
superadmin: number;
|
|
420
|
+
} | undefined;
|
|
299
421
|
country?: string | undefined;
|
|
300
422
|
phoneNumber?: string | undefined;
|
|
301
423
|
birthDate?: string | undefined;
|
|
@@ -310,7 +432,11 @@ declare const zBTeacher: z.ZodObject<{
|
|
|
310
432
|
address?: string | undefined;
|
|
311
433
|
username?: string | undefined;
|
|
312
434
|
password?: string | undefined;
|
|
313
|
-
roles?:
|
|
435
|
+
roles?: {
|
|
436
|
+
user: number;
|
|
437
|
+
admin: number;
|
|
438
|
+
superadmin: number;
|
|
439
|
+
} | undefined;
|
|
314
440
|
country?: string | undefined;
|
|
315
441
|
phoneNumber?: string | undefined;
|
|
316
442
|
birthDate?: string | undefined;
|
|
@@ -326,7 +452,19 @@ declare const zTeacher: z.ZodObject<{
|
|
|
326
452
|
name: z.ZodString;
|
|
327
453
|
username: z.ZodOptional<z.ZodString>;
|
|
328
454
|
password: z.ZodOptional<z.ZodString>;
|
|
329
|
-
roles: z.ZodOptional<z.
|
|
455
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
456
|
+
user: z.ZodNumber;
|
|
457
|
+
admin: z.ZodNumber;
|
|
458
|
+
superadmin: z.ZodNumber;
|
|
459
|
+
}, "strip", z.ZodTypeAny, {
|
|
460
|
+
user: number;
|
|
461
|
+
admin: number;
|
|
462
|
+
superadmin: number;
|
|
463
|
+
}, {
|
|
464
|
+
user: number;
|
|
465
|
+
admin: number;
|
|
466
|
+
superadmin: number;
|
|
467
|
+
}>>;
|
|
330
468
|
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
331
469
|
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
332
470
|
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
@@ -346,7 +484,11 @@ declare const zTeacher: z.ZodObject<{
|
|
|
346
484
|
address?: string | undefined;
|
|
347
485
|
username?: string | undefined;
|
|
348
486
|
password?: string | undefined;
|
|
349
|
-
roles?:
|
|
487
|
+
roles?: {
|
|
488
|
+
user: number;
|
|
489
|
+
admin: number;
|
|
490
|
+
superadmin: number;
|
|
491
|
+
} | undefined;
|
|
350
492
|
country?: string | undefined;
|
|
351
493
|
phoneNumber?: string | undefined;
|
|
352
494
|
birthDate?: string | undefined;
|
|
@@ -365,7 +507,11 @@ declare const zTeacher: z.ZodObject<{
|
|
|
365
507
|
address?: string | undefined;
|
|
366
508
|
username?: string | undefined;
|
|
367
509
|
password?: string | undefined;
|
|
368
|
-
roles?:
|
|
510
|
+
roles?: {
|
|
511
|
+
user: number;
|
|
512
|
+
admin: number;
|
|
513
|
+
superadmin: number;
|
|
514
|
+
} | undefined;
|
|
369
515
|
country?: string | undefined;
|
|
370
516
|
phoneNumber?: string | undefined;
|
|
371
517
|
birthDate?: string | undefined;
|
|
@@ -377,27 +523,103 @@ declare const zTeacher: z.ZodObject<{
|
|
|
377
523
|
createdAt?: string | undefined;
|
|
378
524
|
updatedAt?: string | undefined;
|
|
379
525
|
}>;
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
526
|
+
declare const zTeacherResponse: z.ZodObject<{
|
|
527
|
+
rank: z.ZodNativeEnum<typeof GoRank>;
|
|
528
|
+
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
529
|
+
address: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
530
|
+
_id: z.ZodString;
|
|
531
|
+
name: z.ZodString;
|
|
532
|
+
username: z.ZodOptional<z.ZodString>;
|
|
533
|
+
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
534
|
+
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
535
|
+
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
536
|
+
isInactive: z.ZodOptional<z.ZodBoolean>;
|
|
537
|
+
title: z.ZodOptional<z.ZodString>;
|
|
538
|
+
bio: z.ZodOptional<z.ZodString>;
|
|
539
|
+
available: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">>;
|
|
540
|
+
role: z.ZodString;
|
|
541
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
542
|
+
rank: GoRank;
|
|
543
|
+
_id: string;
|
|
544
|
+
name: string;
|
|
545
|
+
role: string;
|
|
546
|
+
email?: string | undefined;
|
|
547
|
+
address?: string | undefined;
|
|
548
|
+
username?: string | undefined;
|
|
549
|
+
country?: string | undefined;
|
|
550
|
+
phoneNumber?: string | undefined;
|
|
551
|
+
birthDate?: string | undefined;
|
|
552
|
+
isInactive?: boolean | undefined;
|
|
553
|
+
title?: string | undefined;
|
|
554
|
+
bio?: string | undefined;
|
|
555
|
+
available?: number[][][] | undefined;
|
|
556
|
+
}, {
|
|
557
|
+
rank: GoRank;
|
|
558
|
+
_id: string;
|
|
559
|
+
name: string;
|
|
560
|
+
role: string;
|
|
561
|
+
email?: string | undefined;
|
|
562
|
+
address?: string | undefined;
|
|
563
|
+
username?: string | undefined;
|
|
564
|
+
country?: string | undefined;
|
|
565
|
+
phoneNumber?: string | undefined;
|
|
566
|
+
birthDate?: string | undefined;
|
|
567
|
+
isInactive?: boolean | undefined;
|
|
568
|
+
title?: string | undefined;
|
|
569
|
+
bio?: string | undefined;
|
|
570
|
+
available?: number[][][] | undefined;
|
|
571
|
+
}>;
|
|
384
572
|
type BTeacher = z.infer<typeof zBTeacher>;
|
|
385
573
|
type Teacher = z.infer<typeof zTeacher>;
|
|
574
|
+
type TeacherResponse = z.infer<typeof zTeacherResponse>;
|
|
386
575
|
|
|
387
|
-
declare const
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
576
|
+
declare const zCreateAdminAccountRequest: z.ZodObject<{
|
|
577
|
+
_id: z.ZodString;
|
|
578
|
+
user: z.ZodString;
|
|
579
|
+
pwd: z.ZodString;
|
|
391
580
|
}, "strip", z.ZodTypeAny, {
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
581
|
+
_id: string;
|
|
582
|
+
user: string;
|
|
583
|
+
pwd: string;
|
|
395
584
|
}, {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
585
|
+
_id: string;
|
|
586
|
+
user: string;
|
|
587
|
+
pwd: string;
|
|
399
588
|
}>;
|
|
400
|
-
|
|
589
|
+
declare const zChangePasswordRequest: z.ZodObject<{
|
|
590
|
+
prev: z.ZodString;
|
|
591
|
+
next: z.ZodString;
|
|
592
|
+
}, "strip", z.ZodTypeAny, {
|
|
593
|
+
prev: string;
|
|
594
|
+
next: string;
|
|
595
|
+
}, {
|
|
596
|
+
prev: string;
|
|
597
|
+
next: string;
|
|
598
|
+
}>;
|
|
599
|
+
declare const zLoginRequest: z.ZodObject<{
|
|
600
|
+
user: z.ZodString;
|
|
601
|
+
pwd: z.ZodString;
|
|
602
|
+
}, "strip", z.ZodTypeAny, {
|
|
603
|
+
user: string;
|
|
604
|
+
pwd: string;
|
|
605
|
+
}, {
|
|
606
|
+
user: string;
|
|
607
|
+
pwd: string;
|
|
608
|
+
}>;
|
|
609
|
+
declare const zLoginResponse: z.ZodObject<{
|
|
610
|
+
user: z.ZodString;
|
|
611
|
+
token: z.ZodString;
|
|
612
|
+
}, "strip", z.ZodTypeAny, {
|
|
613
|
+
user: string;
|
|
614
|
+
token: string;
|
|
615
|
+
}, {
|
|
616
|
+
user: string;
|
|
617
|
+
token: string;
|
|
618
|
+
}>;
|
|
619
|
+
type CreateAdminAccountRequest = z.infer<typeof zCreateAdminAccountRequest>;
|
|
620
|
+
type ChangePasswordRequest = z.infer<typeof zChangePasswordRequest>;
|
|
621
|
+
type LoginRequest = z.infer<typeof zLoginRequest>;
|
|
622
|
+
type LoginResponse = z.infer<typeof zLoginResponse>;
|
|
401
623
|
|
|
402
624
|
declare enum CampOption {
|
|
403
625
|
AM = "am",
|
|
@@ -523,7 +745,19 @@ declare const zAttendanceResponse: z.ZodObject<{
|
|
|
523
745
|
name: z.ZodString;
|
|
524
746
|
username: z.ZodOptional<z.ZodString>;
|
|
525
747
|
password: z.ZodOptional<z.ZodString>;
|
|
526
|
-
roles: z.ZodOptional<z.
|
|
748
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
749
|
+
user: z.ZodNumber;
|
|
750
|
+
admin: z.ZodNumber;
|
|
751
|
+
superadmin: z.ZodNumber;
|
|
752
|
+
}, "strip", z.ZodTypeAny, {
|
|
753
|
+
user: number;
|
|
754
|
+
admin: number;
|
|
755
|
+
superadmin: number;
|
|
756
|
+
}, {
|
|
757
|
+
user: number;
|
|
758
|
+
admin: number;
|
|
759
|
+
superadmin: number;
|
|
760
|
+
}>>;
|
|
527
761
|
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
528
762
|
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
529
763
|
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
@@ -540,7 +774,11 @@ declare const zAttendanceResponse: z.ZodObject<{
|
|
|
540
774
|
address?: string | undefined;
|
|
541
775
|
username?: string | undefined;
|
|
542
776
|
password?: string | undefined;
|
|
543
|
-
roles?:
|
|
777
|
+
roles?: {
|
|
778
|
+
user: number;
|
|
779
|
+
admin: number;
|
|
780
|
+
superadmin: number;
|
|
781
|
+
} | undefined;
|
|
544
782
|
country?: string | undefined;
|
|
545
783
|
phoneNumber?: string | undefined;
|
|
546
784
|
birthDate?: string | undefined;
|
|
@@ -556,7 +794,11 @@ declare const zAttendanceResponse: z.ZodObject<{
|
|
|
556
794
|
address?: string | undefined;
|
|
557
795
|
username?: string | undefined;
|
|
558
796
|
password?: string | undefined;
|
|
559
|
-
roles?:
|
|
797
|
+
roles?: {
|
|
798
|
+
user: number;
|
|
799
|
+
admin: number;
|
|
800
|
+
superadmin: number;
|
|
801
|
+
} | undefined;
|
|
560
802
|
country?: string | undefined;
|
|
561
803
|
phoneNumber?: string | undefined;
|
|
562
804
|
birthDate?: string | undefined;
|
|
@@ -575,7 +817,11 @@ declare const zAttendanceResponse: z.ZodObject<{
|
|
|
575
817
|
address?: string | undefined;
|
|
576
818
|
username?: string | undefined;
|
|
577
819
|
password?: string | undefined;
|
|
578
|
-
roles?:
|
|
820
|
+
roles?: {
|
|
821
|
+
user: number;
|
|
822
|
+
admin: number;
|
|
823
|
+
superadmin: number;
|
|
824
|
+
} | undefined;
|
|
579
825
|
country?: string | undefined;
|
|
580
826
|
phoneNumber?: string | undefined;
|
|
581
827
|
birthDate?: string | undefined;
|
|
@@ -605,7 +851,11 @@ declare const zAttendanceResponse: z.ZodObject<{
|
|
|
605
851
|
address?: string | undefined;
|
|
606
852
|
username?: string | undefined;
|
|
607
853
|
password?: string | undefined;
|
|
608
|
-
roles?:
|
|
854
|
+
roles?: {
|
|
855
|
+
user: number;
|
|
856
|
+
admin: number;
|
|
857
|
+
superadmin: number;
|
|
858
|
+
} | undefined;
|
|
609
859
|
country?: string | undefined;
|
|
610
860
|
phoneNumber?: string | undefined;
|
|
611
861
|
birthDate?: string | undefined;
|
|
@@ -1512,7 +1762,19 @@ declare const zInvoicePackageResponse: z.ZodObject<{
|
|
|
1512
1762
|
name: z.ZodString;
|
|
1513
1763
|
username: z.ZodOptional<z.ZodString>;
|
|
1514
1764
|
password: z.ZodOptional<z.ZodString>;
|
|
1515
|
-
roles: z.ZodOptional<z.
|
|
1765
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
1766
|
+
user: z.ZodNumber;
|
|
1767
|
+
admin: z.ZodNumber;
|
|
1768
|
+
superadmin: z.ZodNumber;
|
|
1769
|
+
}, "strip", z.ZodTypeAny, {
|
|
1770
|
+
user: number;
|
|
1771
|
+
admin: number;
|
|
1772
|
+
superadmin: number;
|
|
1773
|
+
}, {
|
|
1774
|
+
user: number;
|
|
1775
|
+
admin: number;
|
|
1776
|
+
superadmin: number;
|
|
1777
|
+
}>>;
|
|
1516
1778
|
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1517
1779
|
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1518
1780
|
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
@@ -1529,7 +1791,11 @@ declare const zInvoicePackageResponse: z.ZodObject<{
|
|
|
1529
1791
|
address?: string | undefined;
|
|
1530
1792
|
username?: string | undefined;
|
|
1531
1793
|
password?: string | undefined;
|
|
1532
|
-
roles?:
|
|
1794
|
+
roles?: {
|
|
1795
|
+
user: number;
|
|
1796
|
+
admin: number;
|
|
1797
|
+
superadmin: number;
|
|
1798
|
+
} | undefined;
|
|
1533
1799
|
country?: string | undefined;
|
|
1534
1800
|
phoneNumber?: string | undefined;
|
|
1535
1801
|
birthDate?: string | undefined;
|
|
@@ -1545,7 +1811,11 @@ declare const zInvoicePackageResponse: z.ZodObject<{
|
|
|
1545
1811
|
address?: string | undefined;
|
|
1546
1812
|
username?: string | undefined;
|
|
1547
1813
|
password?: string | undefined;
|
|
1548
|
-
roles?:
|
|
1814
|
+
roles?: {
|
|
1815
|
+
user: number;
|
|
1816
|
+
admin: number;
|
|
1817
|
+
superadmin: number;
|
|
1818
|
+
} | undefined;
|
|
1549
1819
|
country?: string | undefined;
|
|
1550
1820
|
phoneNumber?: string | undefined;
|
|
1551
1821
|
birthDate?: string | undefined;
|
|
@@ -1563,7 +1833,11 @@ declare const zInvoicePackageResponse: z.ZodObject<{
|
|
|
1563
1833
|
address?: string | undefined;
|
|
1564
1834
|
username?: string | undefined;
|
|
1565
1835
|
password?: string | undefined;
|
|
1566
|
-
roles?:
|
|
1836
|
+
roles?: {
|
|
1837
|
+
user: number;
|
|
1838
|
+
admin: number;
|
|
1839
|
+
superadmin: number;
|
|
1840
|
+
} | undefined;
|
|
1567
1841
|
country?: string | undefined;
|
|
1568
1842
|
phoneNumber?: string | undefined;
|
|
1569
1843
|
birthDate?: string | undefined;
|
|
@@ -1586,7 +1860,11 @@ declare const zInvoicePackageResponse: z.ZodObject<{
|
|
|
1586
1860
|
address?: string | undefined;
|
|
1587
1861
|
username?: string | undefined;
|
|
1588
1862
|
password?: string | undefined;
|
|
1589
|
-
roles?:
|
|
1863
|
+
roles?: {
|
|
1864
|
+
user: number;
|
|
1865
|
+
admin: number;
|
|
1866
|
+
superadmin: number;
|
|
1867
|
+
} | undefined;
|
|
1590
1868
|
country?: string | undefined;
|
|
1591
1869
|
phoneNumber?: string | undefined;
|
|
1592
1870
|
birthDate?: string | undefined;
|
|
@@ -1825,7 +2103,19 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
1825
2103
|
name: z.ZodString;
|
|
1826
2104
|
username: z.ZodOptional<z.ZodString>;
|
|
1827
2105
|
password: z.ZodOptional<z.ZodString>;
|
|
1828
|
-
roles: z.ZodOptional<z.
|
|
2106
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
2107
|
+
user: z.ZodNumber;
|
|
2108
|
+
admin: z.ZodNumber;
|
|
2109
|
+
superadmin: z.ZodNumber;
|
|
2110
|
+
}, "strip", z.ZodTypeAny, {
|
|
2111
|
+
user: number;
|
|
2112
|
+
admin: number;
|
|
2113
|
+
superadmin: number;
|
|
2114
|
+
}, {
|
|
2115
|
+
user: number;
|
|
2116
|
+
admin: number;
|
|
2117
|
+
superadmin: number;
|
|
2118
|
+
}>>;
|
|
1829
2119
|
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1830
2120
|
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1831
2121
|
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
@@ -1845,7 +2135,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
1845
2135
|
address?: string | undefined;
|
|
1846
2136
|
username?: string | undefined;
|
|
1847
2137
|
password?: string | undefined;
|
|
1848
|
-
roles?:
|
|
2138
|
+
roles?: {
|
|
2139
|
+
user: number;
|
|
2140
|
+
admin: number;
|
|
2141
|
+
superadmin: number;
|
|
2142
|
+
} | undefined;
|
|
1849
2143
|
country?: string | undefined;
|
|
1850
2144
|
phoneNumber?: string | undefined;
|
|
1851
2145
|
birthDate?: string | undefined;
|
|
@@ -1864,7 +2158,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
1864
2158
|
address?: string | undefined;
|
|
1865
2159
|
username?: string | undefined;
|
|
1866
2160
|
password?: string | undefined;
|
|
1867
|
-
roles?:
|
|
2161
|
+
roles?: {
|
|
2162
|
+
user: number;
|
|
2163
|
+
admin: number;
|
|
2164
|
+
superadmin: number;
|
|
2165
|
+
} | undefined;
|
|
1868
2166
|
country?: string | undefined;
|
|
1869
2167
|
phoneNumber?: string | undefined;
|
|
1870
2168
|
birthDate?: string | undefined;
|
|
@@ -1883,7 +2181,19 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
1883
2181
|
name: z.ZodString;
|
|
1884
2182
|
username: z.ZodOptional<z.ZodString>;
|
|
1885
2183
|
password: z.ZodOptional<z.ZodString>;
|
|
1886
|
-
roles: z.ZodOptional<z.
|
|
2184
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
2185
|
+
user: z.ZodNumber;
|
|
2186
|
+
admin: z.ZodNumber;
|
|
2187
|
+
superadmin: z.ZodNumber;
|
|
2188
|
+
}, "strip", z.ZodTypeAny, {
|
|
2189
|
+
user: number;
|
|
2190
|
+
admin: number;
|
|
2191
|
+
superadmin: number;
|
|
2192
|
+
}, {
|
|
2193
|
+
user: number;
|
|
2194
|
+
admin: number;
|
|
2195
|
+
superadmin: number;
|
|
2196
|
+
}>>;
|
|
1887
2197
|
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1888
2198
|
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1889
2199
|
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
@@ -1903,7 +2213,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
1903
2213
|
address?: string | undefined;
|
|
1904
2214
|
username?: string | undefined;
|
|
1905
2215
|
password?: string | undefined;
|
|
1906
|
-
roles?:
|
|
2216
|
+
roles?: {
|
|
2217
|
+
user: number;
|
|
2218
|
+
admin: number;
|
|
2219
|
+
superadmin: number;
|
|
2220
|
+
} | undefined;
|
|
1907
2221
|
country?: string | undefined;
|
|
1908
2222
|
phoneNumber?: string | undefined;
|
|
1909
2223
|
birthDate?: string | undefined;
|
|
@@ -1922,7 +2236,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
1922
2236
|
address?: string | undefined;
|
|
1923
2237
|
username?: string | undefined;
|
|
1924
2238
|
password?: string | undefined;
|
|
1925
|
-
roles?:
|
|
2239
|
+
roles?: {
|
|
2240
|
+
user: number;
|
|
2241
|
+
admin: number;
|
|
2242
|
+
superadmin: number;
|
|
2243
|
+
} | undefined;
|
|
1926
2244
|
country?: string | undefined;
|
|
1927
2245
|
phoneNumber?: string | undefined;
|
|
1928
2246
|
birthDate?: string | undefined;
|
|
@@ -1955,7 +2273,19 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
1955
2273
|
name: z.ZodString;
|
|
1956
2274
|
username: z.ZodOptional<z.ZodString>;
|
|
1957
2275
|
password: z.ZodOptional<z.ZodString>;
|
|
1958
|
-
roles: z.ZodOptional<z.
|
|
2276
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
2277
|
+
user: z.ZodNumber;
|
|
2278
|
+
admin: z.ZodNumber;
|
|
2279
|
+
superadmin: z.ZodNumber;
|
|
2280
|
+
}, "strip", z.ZodTypeAny, {
|
|
2281
|
+
user: number;
|
|
2282
|
+
admin: number;
|
|
2283
|
+
superadmin: number;
|
|
2284
|
+
}, {
|
|
2285
|
+
user: number;
|
|
2286
|
+
admin: number;
|
|
2287
|
+
superadmin: number;
|
|
2288
|
+
}>>;
|
|
1959
2289
|
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1960
2290
|
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
1961
2291
|
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
@@ -1972,7 +2302,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
1972
2302
|
address?: string | undefined;
|
|
1973
2303
|
username?: string | undefined;
|
|
1974
2304
|
password?: string | undefined;
|
|
1975
|
-
roles?:
|
|
2305
|
+
roles?: {
|
|
2306
|
+
user: number;
|
|
2307
|
+
admin: number;
|
|
2308
|
+
superadmin: number;
|
|
2309
|
+
} | undefined;
|
|
1976
2310
|
country?: string | undefined;
|
|
1977
2311
|
phoneNumber?: string | undefined;
|
|
1978
2312
|
birthDate?: string | undefined;
|
|
@@ -1988,7 +2322,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
1988
2322
|
address?: string | undefined;
|
|
1989
2323
|
username?: string | undefined;
|
|
1990
2324
|
password?: string | undefined;
|
|
1991
|
-
roles?:
|
|
2325
|
+
roles?: {
|
|
2326
|
+
user: number;
|
|
2327
|
+
admin: number;
|
|
2328
|
+
superadmin: number;
|
|
2329
|
+
} | undefined;
|
|
1992
2330
|
country?: string | undefined;
|
|
1993
2331
|
phoneNumber?: string | undefined;
|
|
1994
2332
|
birthDate?: string | undefined;
|
|
@@ -2006,7 +2344,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
2006
2344
|
address?: string | undefined;
|
|
2007
2345
|
username?: string | undefined;
|
|
2008
2346
|
password?: string | undefined;
|
|
2009
|
-
roles?:
|
|
2347
|
+
roles?: {
|
|
2348
|
+
user: number;
|
|
2349
|
+
admin: number;
|
|
2350
|
+
superadmin: number;
|
|
2351
|
+
} | undefined;
|
|
2010
2352
|
country?: string | undefined;
|
|
2011
2353
|
phoneNumber?: string | undefined;
|
|
2012
2354
|
birthDate?: string | undefined;
|
|
@@ -2029,7 +2371,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
2029
2371
|
address?: string | undefined;
|
|
2030
2372
|
username?: string | undefined;
|
|
2031
2373
|
password?: string | undefined;
|
|
2032
|
-
roles?:
|
|
2374
|
+
roles?: {
|
|
2375
|
+
user: number;
|
|
2376
|
+
admin: number;
|
|
2377
|
+
superadmin: number;
|
|
2378
|
+
} | undefined;
|
|
2033
2379
|
country?: string | undefined;
|
|
2034
2380
|
phoneNumber?: string | undefined;
|
|
2035
2381
|
birthDate?: string | undefined;
|
|
@@ -2056,7 +2402,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
2056
2402
|
address?: string | undefined;
|
|
2057
2403
|
username?: string | undefined;
|
|
2058
2404
|
password?: string | undefined;
|
|
2059
|
-
roles?:
|
|
2405
|
+
roles?: {
|
|
2406
|
+
user: number;
|
|
2407
|
+
admin: number;
|
|
2408
|
+
superadmin: number;
|
|
2409
|
+
} | undefined;
|
|
2060
2410
|
country?: string | undefined;
|
|
2061
2411
|
phoneNumber?: string | undefined;
|
|
2062
2412
|
birthDate?: string | undefined;
|
|
@@ -2083,7 +2433,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
2083
2433
|
address?: string | undefined;
|
|
2084
2434
|
username?: string | undefined;
|
|
2085
2435
|
password?: string | undefined;
|
|
2086
|
-
roles?:
|
|
2436
|
+
roles?: {
|
|
2437
|
+
user: number;
|
|
2438
|
+
admin: number;
|
|
2439
|
+
superadmin: number;
|
|
2440
|
+
} | undefined;
|
|
2087
2441
|
country?: string | undefined;
|
|
2088
2442
|
phoneNumber?: string | undefined;
|
|
2089
2443
|
birthDate?: string | undefined;
|
|
@@ -2111,7 +2465,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
2111
2465
|
address?: string | undefined;
|
|
2112
2466
|
username?: string | undefined;
|
|
2113
2467
|
password?: string | undefined;
|
|
2114
|
-
roles?:
|
|
2468
|
+
roles?: {
|
|
2469
|
+
user: number;
|
|
2470
|
+
admin: number;
|
|
2471
|
+
superadmin: number;
|
|
2472
|
+
} | undefined;
|
|
2115
2473
|
country?: string | undefined;
|
|
2116
2474
|
phoneNumber?: string | undefined;
|
|
2117
2475
|
birthDate?: string | undefined;
|
|
@@ -2135,7 +2493,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
2135
2493
|
address?: string | undefined;
|
|
2136
2494
|
username?: string | undefined;
|
|
2137
2495
|
password?: string | undefined;
|
|
2138
|
-
roles?:
|
|
2496
|
+
roles?: {
|
|
2497
|
+
user: number;
|
|
2498
|
+
admin: number;
|
|
2499
|
+
superadmin: number;
|
|
2500
|
+
} | undefined;
|
|
2139
2501
|
country?: string | undefined;
|
|
2140
2502
|
phoneNumber?: string | undefined;
|
|
2141
2503
|
birthDate?: string | undefined;
|
|
@@ -2162,7 +2524,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
2162
2524
|
address?: string | undefined;
|
|
2163
2525
|
username?: string | undefined;
|
|
2164
2526
|
password?: string | undefined;
|
|
2165
|
-
roles?:
|
|
2527
|
+
roles?: {
|
|
2528
|
+
user: number;
|
|
2529
|
+
admin: number;
|
|
2530
|
+
superadmin: number;
|
|
2531
|
+
} | undefined;
|
|
2166
2532
|
country?: string | undefined;
|
|
2167
2533
|
phoneNumber?: string | undefined;
|
|
2168
2534
|
birthDate?: string | undefined;
|
|
@@ -2190,7 +2556,11 @@ declare const zInvoiceResponse: z.ZodObject<{
|
|
|
2190
2556
|
address?: string | undefined;
|
|
2191
2557
|
username?: string | undefined;
|
|
2192
2558
|
password?: string | undefined;
|
|
2193
|
-
roles?:
|
|
2559
|
+
roles?: {
|
|
2560
|
+
user: number;
|
|
2561
|
+
admin: number;
|
|
2562
|
+
superadmin: number;
|
|
2563
|
+
} | undefined;
|
|
2194
2564
|
country?: string | undefined;
|
|
2195
2565
|
phoneNumber?: string | undefined;
|
|
2196
2566
|
birthDate?: string | undefined;
|
|
@@ -2349,7 +2719,19 @@ declare const zTeacherPaymentResponse: z.ZodObject<{
|
|
|
2349
2719
|
name: z.ZodString;
|
|
2350
2720
|
username: z.ZodOptional<z.ZodString>;
|
|
2351
2721
|
password: z.ZodOptional<z.ZodString>;
|
|
2352
|
-
roles: z.ZodOptional<z.
|
|
2722
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
2723
|
+
user: z.ZodNumber;
|
|
2724
|
+
admin: z.ZodNumber;
|
|
2725
|
+
superadmin: z.ZodNumber;
|
|
2726
|
+
}, "strip", z.ZodTypeAny, {
|
|
2727
|
+
user: number;
|
|
2728
|
+
admin: number;
|
|
2729
|
+
superadmin: number;
|
|
2730
|
+
}, {
|
|
2731
|
+
user: number;
|
|
2732
|
+
admin: number;
|
|
2733
|
+
superadmin: number;
|
|
2734
|
+
}>>;
|
|
2353
2735
|
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2354
2736
|
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2355
2737
|
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
@@ -2369,7 +2751,11 @@ declare const zTeacherPaymentResponse: z.ZodObject<{
|
|
|
2369
2751
|
address?: string | undefined;
|
|
2370
2752
|
username?: string | undefined;
|
|
2371
2753
|
password?: string | undefined;
|
|
2372
|
-
roles?:
|
|
2754
|
+
roles?: {
|
|
2755
|
+
user: number;
|
|
2756
|
+
admin: number;
|
|
2757
|
+
superadmin: number;
|
|
2758
|
+
} | undefined;
|
|
2373
2759
|
country?: string | undefined;
|
|
2374
2760
|
phoneNumber?: string | undefined;
|
|
2375
2761
|
birthDate?: string | undefined;
|
|
@@ -2388,7 +2774,11 @@ declare const zTeacherPaymentResponse: z.ZodObject<{
|
|
|
2388
2774
|
address?: string | undefined;
|
|
2389
2775
|
username?: string | undefined;
|
|
2390
2776
|
password?: string | undefined;
|
|
2391
|
-
roles?:
|
|
2777
|
+
roles?: {
|
|
2778
|
+
user: number;
|
|
2779
|
+
admin: number;
|
|
2780
|
+
superadmin: number;
|
|
2781
|
+
} | undefined;
|
|
2392
2782
|
country?: string | undefined;
|
|
2393
2783
|
phoneNumber?: string | undefined;
|
|
2394
2784
|
birthDate?: string | undefined;
|
|
@@ -2410,7 +2800,11 @@ declare const zTeacherPaymentResponse: z.ZodObject<{
|
|
|
2410
2800
|
address?: string | undefined;
|
|
2411
2801
|
username?: string | undefined;
|
|
2412
2802
|
password?: string | undefined;
|
|
2413
|
-
roles?:
|
|
2803
|
+
roles?: {
|
|
2804
|
+
user: number;
|
|
2805
|
+
admin: number;
|
|
2806
|
+
superadmin: number;
|
|
2807
|
+
} | undefined;
|
|
2414
2808
|
country?: string | undefined;
|
|
2415
2809
|
phoneNumber?: string | undefined;
|
|
2416
2810
|
birthDate?: string | undefined;
|
|
@@ -2442,7 +2836,11 @@ declare const zTeacherPaymentResponse: z.ZodObject<{
|
|
|
2442
2836
|
address?: string | undefined;
|
|
2443
2837
|
username?: string | undefined;
|
|
2444
2838
|
password?: string | undefined;
|
|
2445
|
-
roles?:
|
|
2839
|
+
roles?: {
|
|
2840
|
+
user: number;
|
|
2841
|
+
admin: number;
|
|
2842
|
+
superadmin: number;
|
|
2843
|
+
} | undefined;
|
|
2446
2844
|
country?: string | undefined;
|
|
2447
2845
|
phoneNumber?: string | undefined;
|
|
2448
2846
|
birthDate?: string | undefined;
|
|
@@ -2633,7 +3031,19 @@ declare const zReportTicketResponse: z.ZodObject<{
|
|
|
2633
3031
|
name: z.ZodString;
|
|
2634
3032
|
username: z.ZodOptional<z.ZodString>;
|
|
2635
3033
|
password: z.ZodOptional<z.ZodString>;
|
|
2636
|
-
roles: z.ZodOptional<z.
|
|
3034
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
3035
|
+
user: z.ZodNumber;
|
|
3036
|
+
admin: z.ZodNumber;
|
|
3037
|
+
superadmin: z.ZodNumber;
|
|
3038
|
+
}, "strip", z.ZodTypeAny, {
|
|
3039
|
+
user: number;
|
|
3040
|
+
admin: number;
|
|
3041
|
+
superadmin: number;
|
|
3042
|
+
}, {
|
|
3043
|
+
user: number;
|
|
3044
|
+
admin: number;
|
|
3045
|
+
superadmin: number;
|
|
3046
|
+
}>>;
|
|
2637
3047
|
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2638
3048
|
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2639
3049
|
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
@@ -2648,7 +3058,11 @@ declare const zReportTicketResponse: z.ZodObject<{
|
|
|
2648
3058
|
address?: string | undefined;
|
|
2649
3059
|
username?: string | undefined;
|
|
2650
3060
|
password?: string | undefined;
|
|
2651
|
-
roles?:
|
|
3061
|
+
roles?: {
|
|
3062
|
+
user: number;
|
|
3063
|
+
admin: number;
|
|
3064
|
+
superadmin: number;
|
|
3065
|
+
} | undefined;
|
|
2652
3066
|
country?: string | undefined;
|
|
2653
3067
|
phoneNumber?: string | undefined;
|
|
2654
3068
|
birthDate?: string | undefined;
|
|
@@ -2662,7 +3076,11 @@ declare const zReportTicketResponse: z.ZodObject<{
|
|
|
2662
3076
|
address?: string | undefined;
|
|
2663
3077
|
username?: string | undefined;
|
|
2664
3078
|
password?: string | undefined;
|
|
2665
|
-
roles?:
|
|
3079
|
+
roles?: {
|
|
3080
|
+
user: number;
|
|
3081
|
+
admin: number;
|
|
3082
|
+
superadmin: number;
|
|
3083
|
+
} | undefined;
|
|
2666
3084
|
country?: string | undefined;
|
|
2667
3085
|
phoneNumber?: string | undefined;
|
|
2668
3086
|
birthDate?: string | undefined;
|
|
@@ -2676,7 +3094,19 @@ declare const zReportTicketResponse: z.ZodObject<{
|
|
|
2676
3094
|
name: z.ZodString;
|
|
2677
3095
|
username: z.ZodOptional<z.ZodString>;
|
|
2678
3096
|
password: z.ZodOptional<z.ZodString>;
|
|
2679
|
-
roles: z.ZodOptional<z.
|
|
3097
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
3098
|
+
user: z.ZodNumber;
|
|
3099
|
+
admin: z.ZodNumber;
|
|
3100
|
+
superadmin: z.ZodNumber;
|
|
3101
|
+
}, "strip", z.ZodTypeAny, {
|
|
3102
|
+
user: number;
|
|
3103
|
+
admin: number;
|
|
3104
|
+
superadmin: number;
|
|
3105
|
+
}, {
|
|
3106
|
+
user: number;
|
|
3107
|
+
admin: number;
|
|
3108
|
+
superadmin: number;
|
|
3109
|
+
}>>;
|
|
2680
3110
|
country: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2681
3111
|
phoneNumber: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
2682
3112
|
birthDate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
@@ -2691,7 +3121,11 @@ declare const zReportTicketResponse: z.ZodObject<{
|
|
|
2691
3121
|
address?: string | undefined;
|
|
2692
3122
|
username?: string | undefined;
|
|
2693
3123
|
password?: string | undefined;
|
|
2694
|
-
roles?:
|
|
3124
|
+
roles?: {
|
|
3125
|
+
user: number;
|
|
3126
|
+
admin: number;
|
|
3127
|
+
superadmin: number;
|
|
3128
|
+
} | undefined;
|
|
2695
3129
|
country?: string | undefined;
|
|
2696
3130
|
phoneNumber?: string | undefined;
|
|
2697
3131
|
birthDate?: string | undefined;
|
|
@@ -2705,7 +3139,11 @@ declare const zReportTicketResponse: z.ZodObject<{
|
|
|
2705
3139
|
address?: string | undefined;
|
|
2706
3140
|
username?: string | undefined;
|
|
2707
3141
|
password?: string | undefined;
|
|
2708
|
-
roles?:
|
|
3142
|
+
roles?: {
|
|
3143
|
+
user: number;
|
|
3144
|
+
admin: number;
|
|
3145
|
+
superadmin: number;
|
|
3146
|
+
} | undefined;
|
|
2709
3147
|
country?: string | undefined;
|
|
2710
3148
|
phoneNumber?: string | undefined;
|
|
2711
3149
|
birthDate?: string | undefined;
|
|
@@ -2725,7 +3163,11 @@ declare const zReportTicketResponse: z.ZodObject<{
|
|
|
2725
3163
|
address?: string | undefined;
|
|
2726
3164
|
username?: string | undefined;
|
|
2727
3165
|
password?: string | undefined;
|
|
2728
|
-
roles?:
|
|
3166
|
+
roles?: {
|
|
3167
|
+
user: number;
|
|
3168
|
+
admin: number;
|
|
3169
|
+
superadmin: number;
|
|
3170
|
+
} | undefined;
|
|
2729
3171
|
country?: string | undefined;
|
|
2730
3172
|
phoneNumber?: string | undefined;
|
|
2731
3173
|
birthDate?: string | undefined;
|
|
@@ -2743,7 +3185,11 @@ declare const zReportTicketResponse: z.ZodObject<{
|
|
|
2743
3185
|
address?: string | undefined;
|
|
2744
3186
|
username?: string | undefined;
|
|
2745
3187
|
password?: string | undefined;
|
|
2746
|
-
roles?:
|
|
3188
|
+
roles?: {
|
|
3189
|
+
user: number;
|
|
3190
|
+
admin: number;
|
|
3191
|
+
superadmin: number;
|
|
3192
|
+
} | undefined;
|
|
2747
3193
|
country?: string | undefined;
|
|
2748
3194
|
phoneNumber?: string | undefined;
|
|
2749
3195
|
birthDate?: string | undefined;
|
|
@@ -2763,7 +3209,11 @@ declare const zReportTicketResponse: z.ZodObject<{
|
|
|
2763
3209
|
address?: string | undefined;
|
|
2764
3210
|
username?: string | undefined;
|
|
2765
3211
|
password?: string | undefined;
|
|
2766
|
-
roles?:
|
|
3212
|
+
roles?: {
|
|
3213
|
+
user: number;
|
|
3214
|
+
admin: number;
|
|
3215
|
+
superadmin: number;
|
|
3216
|
+
} | undefined;
|
|
2767
3217
|
country?: string | undefined;
|
|
2768
3218
|
phoneNumber?: string | undefined;
|
|
2769
3219
|
birthDate?: string | undefined;
|
|
@@ -2781,7 +3231,11 @@ declare const zReportTicketResponse: z.ZodObject<{
|
|
|
2781
3231
|
address?: string | undefined;
|
|
2782
3232
|
username?: string | undefined;
|
|
2783
3233
|
password?: string | undefined;
|
|
2784
|
-
roles?:
|
|
3234
|
+
roles?: {
|
|
3235
|
+
user: number;
|
|
3236
|
+
admin: number;
|
|
3237
|
+
superadmin: number;
|
|
3238
|
+
} | undefined;
|
|
2785
3239
|
country?: string | undefined;
|
|
2786
3240
|
phoneNumber?: string | undefined;
|
|
2787
3241
|
birthDate?: string | undefined;
|
|
@@ -3739,4 +4193,4 @@ declare const zEventTicket: z.ZodObject<{
|
|
|
3739
4193
|
type BEventTicket = z.infer<typeof zBEventTicket>;
|
|
3740
4194
|
type EventTicket = z.infer<typeof zEventTicket>;
|
|
3741
4195
|
|
|
3742
|
-
export { AgeGroup, AttendState, type Attendance, 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 ClassTracker, type Course, CourseCategory, type CourseTable, type DetailsTable, type Discount, type EventConfig, type EventConfigResponse, type EventReg, type EventRegResponse, type EventTicket, type EventTicketReg, type EventTicketRegResponse, GoRank, type GroupBooking, type GroupTracker, type ImageDef, type Invoice, type InvoiceItem, type InvoicePackage, type InvoicePackageResponse, type InvoiceResponse, type NYIGMission, NYIGSchool, type PaymentIntent, PaymentMethod, type PrivateBooking, type ReportTicket, type ReportTicketResponse, type ScheduleData, type ScheduleTable, Season, type Semester, type Student, type Teacher, type TeacherDisplay, type TeacherPayment, type TeacherPaymentResponse, type TeacherPaymentRow, TicketStatus, type Tuition, type User, type UserRoles, zAttendance, zAttendanceResponse, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBStudent, zBTeacher, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zClassTracker, zCourse, zCourseTable, zDetailsTable, zDiscount, zEventConfig, zEventConfigResponse, zEventReg, zEventRegResponse, zEventTicket, zEventTicketReg, zEventTicketRegResponse, zGroupBooking, zGroupTracker, zImageDef, zInvoice, zInvoiceItem, zInvoicePackage, zInvoicePackageResponse, zInvoiceResponse, zPrivateBooking, zReportTicket, zReportTicketResponse, zScheduleData, zScheduleTable, zSemester, zStudent, zTeacher, zTeacherDisplay, zTeacherPayment, zTeacherPaymentResponse, zTeacherPaymentRow, zTuition, zUser, zUserRoles };
|
|
4196
|
+
export { AgeGroup, AttendState, type Attendance, 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 ChangePasswordRequest, type ClassTracker, 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, zAttendanceResponse, zBAttendance, zBCampBooking, zBCampTracker, zBClassTracker, zBCourse, zBEventConfig, zBEventReg, zBEventTicket, zBGroupBooking, zBGroupTracker, zBInvoice, zBPaymentInfo, zBPrivateBooking, zBReportTicket, zBSemester, zBStudent, zBTeacher, zBTeacherPayment, zBUser, zBUserInfo, zCampBooking, zCampTracker, zChangePasswordRequest, zClassTracker, 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 };
|