vr-commons 1.0.115 → 1.0.117
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.
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { ContactType } from "vr-models";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
export declare const phoneNumberRegex: RegExp;
|
|
3
4
|
export declare const emailRegex: RegExp;
|
|
4
5
|
export declare const jacketIdRegex: RegExp;
|
|
5
6
|
export declare const strongPasswordRegex: RegExp;
|
|
6
|
-
export declare const detectContactType: (value: string) =>
|
|
7
|
+
export declare const detectContactType: (value: string) => ContactType;
|
|
7
8
|
export declare const validateContactValue: (value: string) => boolean;
|
|
8
9
|
export declare const createUserSchema: z.ZodObject<{
|
|
9
10
|
body: z.ZodEffects<z.ZodObject<{
|
|
@@ -21,51 +22,51 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
21
22
|
}, "strip", z.ZodTypeAny, {
|
|
22
23
|
firstName: string;
|
|
23
24
|
lastName: string;
|
|
25
|
+
contactValue: string;
|
|
26
|
+
role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
|
|
24
27
|
gender: "male" | "female";
|
|
25
28
|
birthDate: number;
|
|
26
29
|
birthMonth: number;
|
|
27
30
|
birthYear: number;
|
|
28
|
-
role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
29
|
-
contactValue: string;
|
|
30
|
-
jacketId?: string | null | undefined;
|
|
31
31
|
password?: string | undefined;
|
|
32
32
|
plateNumber?: string | null | undefined;
|
|
33
|
+
jacketId?: string | null | undefined;
|
|
33
34
|
}, {
|
|
34
35
|
firstName: string;
|
|
35
36
|
lastName: string;
|
|
37
|
+
contactValue: string;
|
|
38
|
+
role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
|
|
36
39
|
gender: "male" | "female";
|
|
37
40
|
birthDate: number;
|
|
38
41
|
birthMonth: number;
|
|
39
42
|
birthYear: number;
|
|
40
|
-
role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
41
|
-
contactValue: string;
|
|
42
|
-
jacketId?: string | null | undefined;
|
|
43
43
|
password?: string | undefined;
|
|
44
44
|
plateNumber?: string | null | undefined;
|
|
45
|
+
jacketId?: string | null | undefined;
|
|
45
46
|
}>, {
|
|
46
47
|
firstName: string;
|
|
47
48
|
lastName: string;
|
|
49
|
+
contactValue: string;
|
|
50
|
+
role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
|
|
48
51
|
gender: "male" | "female";
|
|
49
52
|
birthDate: number;
|
|
50
53
|
birthMonth: number;
|
|
51
54
|
birthYear: number;
|
|
52
|
-
role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
53
|
-
contactValue: string;
|
|
54
|
-
jacketId?: string | null | undefined;
|
|
55
55
|
password?: string | undefined;
|
|
56
56
|
plateNumber?: string | null | undefined;
|
|
57
|
+
jacketId?: string | null | undefined;
|
|
57
58
|
}, {
|
|
58
59
|
firstName: string;
|
|
59
60
|
lastName: string;
|
|
61
|
+
contactValue: string;
|
|
62
|
+
role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
|
|
60
63
|
gender: "male" | "female";
|
|
61
64
|
birthDate: number;
|
|
62
65
|
birthMonth: number;
|
|
63
66
|
birthYear: number;
|
|
64
|
-
role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
65
|
-
contactValue: string;
|
|
66
|
-
jacketId?: string | null | undefined;
|
|
67
67
|
password?: string | undefined;
|
|
68
68
|
plateNumber?: string | null | undefined;
|
|
69
|
+
jacketId?: string | null | undefined;
|
|
69
70
|
}>;
|
|
70
71
|
headers: z.ZodObject<{
|
|
71
72
|
authorization: z.ZodString;
|
|
@@ -78,15 +79,15 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
78
79
|
body: {
|
|
79
80
|
firstName: string;
|
|
80
81
|
lastName: string;
|
|
82
|
+
contactValue: string;
|
|
83
|
+
role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
|
|
81
84
|
gender: "male" | "female";
|
|
82
85
|
birthDate: number;
|
|
83
86
|
birthMonth: number;
|
|
84
87
|
birthYear: number;
|
|
85
|
-
role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
86
|
-
contactValue: string;
|
|
87
|
-
jacketId?: string | null | undefined;
|
|
88
88
|
password?: string | undefined;
|
|
89
89
|
plateNumber?: string | null | undefined;
|
|
90
|
+
jacketId?: string | null | undefined;
|
|
90
91
|
};
|
|
91
92
|
headers: {
|
|
92
93
|
authorization: string;
|
|
@@ -95,15 +96,15 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
95
96
|
body: {
|
|
96
97
|
firstName: string;
|
|
97
98
|
lastName: string;
|
|
99
|
+
contactValue: string;
|
|
100
|
+
role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
|
|
98
101
|
gender: "male" | "female";
|
|
99
102
|
birthDate: number;
|
|
100
103
|
birthMonth: number;
|
|
101
104
|
birthYear: number;
|
|
102
|
-
role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
103
|
-
contactValue: string;
|
|
104
|
-
jacketId?: string | null | undefined;
|
|
105
105
|
password?: string | undefined;
|
|
106
106
|
plateNumber?: string | null | undefined;
|
|
107
|
+
jacketId?: string | null | undefined;
|
|
107
108
|
};
|
|
108
109
|
headers: {
|
|
109
110
|
authorization: string;
|
|
@@ -162,6 +163,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
162
163
|
}, "strip", z.ZodTypeAny, {
|
|
163
164
|
firstName?: string | undefined;
|
|
164
165
|
lastName?: string | undefined;
|
|
166
|
+
contactValue?: string | undefined;
|
|
165
167
|
password?: string | undefined;
|
|
166
168
|
plateNumber?: string | null | undefined;
|
|
167
169
|
gender?: "male" | "female" | undefined;
|
|
@@ -170,10 +172,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
170
172
|
birthYear?: number | undefined;
|
|
171
173
|
isActive?: boolean | undefined;
|
|
172
174
|
isDeactivated?: boolean | undefined;
|
|
173
|
-
contactValue?: string | undefined;
|
|
174
175
|
}, {
|
|
175
176
|
firstName?: string | undefined;
|
|
176
177
|
lastName?: string | undefined;
|
|
178
|
+
contactValue?: string | undefined;
|
|
177
179
|
password?: string | undefined;
|
|
178
180
|
plateNumber?: string | null | undefined;
|
|
179
181
|
gender?: "male" | "female" | undefined;
|
|
@@ -182,10 +184,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
182
184
|
birthYear?: number | undefined;
|
|
183
185
|
isActive?: boolean | undefined;
|
|
184
186
|
isDeactivated?: boolean | undefined;
|
|
185
|
-
contactValue?: string | undefined;
|
|
186
187
|
}>, {
|
|
187
188
|
firstName?: string | undefined;
|
|
188
189
|
lastName?: string | undefined;
|
|
190
|
+
contactValue?: string | undefined;
|
|
189
191
|
password?: string | undefined;
|
|
190
192
|
plateNumber?: string | null | undefined;
|
|
191
193
|
gender?: "male" | "female" | undefined;
|
|
@@ -194,10 +196,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
194
196
|
birthYear?: number | undefined;
|
|
195
197
|
isActive?: boolean | undefined;
|
|
196
198
|
isDeactivated?: boolean | undefined;
|
|
197
|
-
contactValue?: string | undefined;
|
|
198
199
|
}, {
|
|
199
200
|
firstName?: string | undefined;
|
|
200
201
|
lastName?: string | undefined;
|
|
202
|
+
contactValue?: string | undefined;
|
|
201
203
|
password?: string | undefined;
|
|
202
204
|
plateNumber?: string | null | undefined;
|
|
203
205
|
gender?: "male" | "female" | undefined;
|
|
@@ -206,10 +208,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
206
208
|
birthYear?: number | undefined;
|
|
207
209
|
isActive?: boolean | undefined;
|
|
208
210
|
isDeactivated?: boolean | undefined;
|
|
209
|
-
contactValue?: string | undefined;
|
|
210
211
|
}>, {
|
|
211
212
|
firstName?: string | undefined;
|
|
212
213
|
lastName?: string | undefined;
|
|
214
|
+
contactValue?: string | undefined;
|
|
213
215
|
password?: string | undefined;
|
|
214
216
|
plateNumber?: string | null | undefined;
|
|
215
217
|
gender?: "male" | "female" | undefined;
|
|
@@ -218,10 +220,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
218
220
|
birthYear?: number | undefined;
|
|
219
221
|
isActive?: boolean | undefined;
|
|
220
222
|
isDeactivated?: boolean | undefined;
|
|
221
|
-
contactValue?: string | undefined;
|
|
222
223
|
}, {
|
|
223
224
|
firstName?: string | undefined;
|
|
224
225
|
lastName?: string | undefined;
|
|
226
|
+
contactValue?: string | undefined;
|
|
225
227
|
password?: string | undefined;
|
|
226
228
|
plateNumber?: string | null | undefined;
|
|
227
229
|
gender?: "male" | "female" | undefined;
|
|
@@ -230,7 +232,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
230
232
|
birthYear?: number | undefined;
|
|
231
233
|
isActive?: boolean | undefined;
|
|
232
234
|
isDeactivated?: boolean | undefined;
|
|
233
|
-
contactValue?: string | undefined;
|
|
234
235
|
}>;
|
|
235
236
|
headers: z.ZodObject<{
|
|
236
237
|
authorization: z.ZodString;
|
|
@@ -246,6 +247,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
246
247
|
body: {
|
|
247
248
|
firstName?: string | undefined;
|
|
248
249
|
lastName?: string | undefined;
|
|
250
|
+
contactValue?: string | undefined;
|
|
249
251
|
password?: string | undefined;
|
|
250
252
|
plateNumber?: string | null | undefined;
|
|
251
253
|
gender?: "male" | "female" | undefined;
|
|
@@ -254,7 +256,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
254
256
|
birthYear?: number | undefined;
|
|
255
257
|
isActive?: boolean | undefined;
|
|
256
258
|
isDeactivated?: boolean | undefined;
|
|
257
|
-
contactValue?: string | undefined;
|
|
258
259
|
};
|
|
259
260
|
headers: {
|
|
260
261
|
authorization: string;
|
|
@@ -266,6 +267,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
266
267
|
body: {
|
|
267
268
|
firstName?: string | undefined;
|
|
268
269
|
lastName?: string | undefined;
|
|
270
|
+
contactValue?: string | undefined;
|
|
269
271
|
password?: string | undefined;
|
|
270
272
|
plateNumber?: string | null | undefined;
|
|
271
273
|
gender?: "male" | "female" | undefined;
|
|
@@ -274,7 +276,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
274
276
|
birthYear?: number | undefined;
|
|
275
277
|
isActive?: boolean | undefined;
|
|
276
278
|
isDeactivated?: boolean | undefined;
|
|
277
|
-
contactValue?: string | undefined;
|
|
278
279
|
};
|
|
279
280
|
headers: {
|
|
280
281
|
authorization: string;
|
|
@@ -295,31 +296,31 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
295
296
|
sortBy: z.ZodDefault<z.ZodEnum<["firstName", "lastLoginAt", "createdAt", "gender"]>>;
|
|
296
297
|
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
297
298
|
}, "strip", z.ZodTypeAny, {
|
|
298
|
-
order: "asc" | "desc";
|
|
299
299
|
sortBy: "firstName" | "gender" | "lastLoginAt" | "createdAt";
|
|
300
|
-
|
|
301
|
-
|
|
300
|
+
order: "asc" | "desc";
|
|
301
|
+
role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
|
|
302
302
|
gender?: "male" | "female" | undefined;
|
|
303
303
|
isActive?: boolean | undefined;
|
|
304
304
|
isDeactivated?: boolean | undefined;
|
|
305
|
-
role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
306
305
|
page?: number | undefined;
|
|
306
|
+
limit?: number | undefined;
|
|
307
307
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
308
|
+
search?: string | undefined;
|
|
308
309
|
startDate?: string | undefined;
|
|
309
310
|
endDate?: string | undefined;
|
|
310
311
|
}, {
|
|
311
|
-
|
|
312
|
-
order?: "asc" | "desc" | undefined;
|
|
313
|
-
limit?: string | undefined;
|
|
312
|
+
role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
|
|
314
313
|
gender?: "male" | "female" | undefined;
|
|
315
314
|
isActive?: "true" | "false" | undefined;
|
|
316
315
|
isDeactivated?: "true" | "false" | undefined;
|
|
317
|
-
role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
318
316
|
page?: string | undefined;
|
|
317
|
+
limit?: string | undefined;
|
|
319
318
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
320
|
-
|
|
319
|
+
search?: string | undefined;
|
|
321
320
|
startDate?: string | undefined;
|
|
322
321
|
endDate?: string | undefined;
|
|
322
|
+
sortBy?: "firstName" | "gender" | "lastLoginAt" | "createdAt" | undefined;
|
|
323
|
+
order?: "asc" | "desc" | undefined;
|
|
323
324
|
}>;
|
|
324
325
|
headers: z.ZodObject<{
|
|
325
326
|
authorization: z.ZodString;
|
|
@@ -329,40 +330,40 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
329
330
|
authorization: string;
|
|
330
331
|
}>;
|
|
331
332
|
}, "strip", z.ZodTypeAny, {
|
|
333
|
+
headers: {
|
|
334
|
+
authorization: string;
|
|
335
|
+
};
|
|
332
336
|
query: {
|
|
333
|
-
order: "asc" | "desc";
|
|
334
337
|
sortBy: "firstName" | "gender" | "lastLoginAt" | "createdAt";
|
|
335
|
-
|
|
336
|
-
|
|
338
|
+
order: "asc" | "desc";
|
|
339
|
+
role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
|
|
337
340
|
gender?: "male" | "female" | undefined;
|
|
338
341
|
isActive?: boolean | undefined;
|
|
339
342
|
isDeactivated?: boolean | undefined;
|
|
340
|
-
role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
341
343
|
page?: number | undefined;
|
|
344
|
+
limit?: number | undefined;
|
|
342
345
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
346
|
+
search?: string | undefined;
|
|
343
347
|
startDate?: string | undefined;
|
|
344
348
|
endDate?: string | undefined;
|
|
345
349
|
};
|
|
350
|
+
}, {
|
|
346
351
|
headers: {
|
|
347
352
|
authorization: string;
|
|
348
353
|
};
|
|
349
|
-
}, {
|
|
350
354
|
query: {
|
|
351
|
-
|
|
352
|
-
order?: "asc" | "desc" | undefined;
|
|
353
|
-
limit?: string | undefined;
|
|
355
|
+
role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
|
|
354
356
|
gender?: "male" | "female" | undefined;
|
|
355
357
|
isActive?: "true" | "false" | undefined;
|
|
356
358
|
isDeactivated?: "true" | "false" | undefined;
|
|
357
|
-
role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
358
359
|
page?: string | undefined;
|
|
360
|
+
limit?: string | undefined;
|
|
359
361
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
360
|
-
|
|
362
|
+
search?: string | undefined;
|
|
361
363
|
startDate?: string | undefined;
|
|
362
364
|
endDate?: string | undefined;
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
authorization: string;
|
|
365
|
+
sortBy?: "firstName" | "gender" | "lastLoginAt" | "createdAt" | undefined;
|
|
366
|
+
order?: "asc" | "desc" | undefined;
|
|
366
367
|
};
|
|
367
368
|
}>;
|
|
368
369
|
export declare const viewProfileSchema: z.ZodObject<{
|
|
@@ -406,75 +407,75 @@ export declare const passengerSignupSchema: z.ZodObject<{
|
|
|
406
407
|
}, "strip", z.ZodTypeAny, {
|
|
407
408
|
firstName: string;
|
|
408
409
|
lastName: string;
|
|
410
|
+
contactValue: string;
|
|
409
411
|
gender: "male" | "female";
|
|
410
412
|
birthDate: number;
|
|
411
413
|
birthMonth: number;
|
|
412
414
|
birthYear: number;
|
|
413
|
-
contactValue: string;
|
|
414
|
-
jacketId?: string | undefined;
|
|
415
415
|
password?: string | null | undefined;
|
|
416
416
|
plateNumber?: string | null | undefined;
|
|
417
|
+
jacketId?: string | undefined;
|
|
417
418
|
}, {
|
|
418
419
|
firstName: string;
|
|
419
420
|
lastName: string;
|
|
421
|
+
contactValue: string;
|
|
420
422
|
gender: "male" | "female";
|
|
421
423
|
birthDate: number;
|
|
422
424
|
birthMonth: number;
|
|
423
425
|
birthYear: number;
|
|
424
|
-
contactValue: string;
|
|
425
|
-
jacketId?: string | undefined;
|
|
426
426
|
password?: string | null | undefined;
|
|
427
427
|
plateNumber?: string | null | undefined;
|
|
428
|
+
jacketId?: string | undefined;
|
|
428
429
|
}>, {
|
|
429
430
|
firstName: string;
|
|
430
431
|
lastName: string;
|
|
432
|
+
contactValue: string;
|
|
431
433
|
gender: "male" | "female";
|
|
432
434
|
birthDate: number;
|
|
433
435
|
birthMonth: number;
|
|
434
436
|
birthYear: number;
|
|
435
|
-
contactValue: string;
|
|
436
|
-
jacketId?: string | undefined;
|
|
437
437
|
password?: string | null | undefined;
|
|
438
438
|
plateNumber?: string | null | undefined;
|
|
439
|
+
jacketId?: string | undefined;
|
|
439
440
|
}, {
|
|
440
441
|
firstName: string;
|
|
441
442
|
lastName: string;
|
|
443
|
+
contactValue: string;
|
|
442
444
|
gender: "male" | "female";
|
|
443
445
|
birthDate: number;
|
|
444
446
|
birthMonth: number;
|
|
445
447
|
birthYear: number;
|
|
446
|
-
contactValue: string;
|
|
447
|
-
jacketId?: string | undefined;
|
|
448
448
|
password?: string | null | undefined;
|
|
449
449
|
plateNumber?: string | null | undefined;
|
|
450
|
+
jacketId?: string | undefined;
|
|
450
451
|
}>;
|
|
451
452
|
headers: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
452
453
|
}, "strip", z.ZodTypeAny, {
|
|
453
454
|
body: {
|
|
454
455
|
firstName: string;
|
|
455
456
|
lastName: string;
|
|
457
|
+
contactValue: string;
|
|
456
458
|
gender: "male" | "female";
|
|
457
459
|
birthDate: number;
|
|
458
460
|
birthMonth: number;
|
|
459
461
|
birthYear: number;
|
|
460
|
-
contactValue: string;
|
|
461
|
-
jacketId?: string | undefined;
|
|
462
462
|
password?: string | null | undefined;
|
|
463
463
|
plateNumber?: string | null | undefined;
|
|
464
|
+
jacketId?: string | undefined;
|
|
464
465
|
};
|
|
465
466
|
headers?: {} | undefined;
|
|
466
467
|
}, {
|
|
467
468
|
body: {
|
|
468
469
|
firstName: string;
|
|
469
470
|
lastName: string;
|
|
471
|
+
contactValue: string;
|
|
470
472
|
gender: "male" | "female";
|
|
471
473
|
birthDate: number;
|
|
472
474
|
birthMonth: number;
|
|
473
475
|
birthYear: number;
|
|
474
|
-
contactValue: string;
|
|
475
|
-
jacketId?: string | undefined;
|
|
476
476
|
password?: string | null | undefined;
|
|
477
477
|
plateNumber?: string | null | undefined;
|
|
478
|
+
jacketId?: string | undefined;
|
|
478
479
|
};
|
|
479
480
|
headers?: {} | undefined;
|
|
480
481
|
}>;
|
|
@@ -491,51 +492,51 @@ export declare const updatePassengerProfileSchema: z.ZodObject<{
|
|
|
491
492
|
}, "strip", z.ZodTypeAny, {
|
|
492
493
|
firstName?: string | undefined;
|
|
493
494
|
lastName?: string | undefined;
|
|
495
|
+
contactValue?: string | undefined;
|
|
494
496
|
gender?: "male" | "female" | undefined;
|
|
495
497
|
birthDate?: number | undefined;
|
|
496
498
|
birthMonth?: number | undefined;
|
|
497
499
|
birthYear?: number | undefined;
|
|
498
|
-
contactValue?: string | undefined;
|
|
499
500
|
}, {
|
|
500
501
|
firstName?: string | undefined;
|
|
501
502
|
lastName?: string | undefined;
|
|
503
|
+
contactValue?: string | undefined;
|
|
502
504
|
gender?: "male" | "female" | undefined;
|
|
503
505
|
birthDate?: number | undefined;
|
|
504
506
|
birthMonth?: number | undefined;
|
|
505
507
|
birthYear?: number | undefined;
|
|
506
|
-
contactValue?: string | undefined;
|
|
507
508
|
}>, {
|
|
508
509
|
firstName?: string | undefined;
|
|
509
510
|
lastName?: string | undefined;
|
|
511
|
+
contactValue?: string | undefined;
|
|
510
512
|
gender?: "male" | "female" | undefined;
|
|
511
513
|
birthDate?: number | undefined;
|
|
512
514
|
birthMonth?: number | undefined;
|
|
513
515
|
birthYear?: number | undefined;
|
|
514
|
-
contactValue?: string | undefined;
|
|
515
516
|
}, {
|
|
516
517
|
firstName?: string | undefined;
|
|
517
518
|
lastName?: string | undefined;
|
|
519
|
+
contactValue?: string | undefined;
|
|
518
520
|
gender?: "male" | "female" | undefined;
|
|
519
521
|
birthDate?: number | undefined;
|
|
520
522
|
birthMonth?: number | undefined;
|
|
521
523
|
birthYear?: number | undefined;
|
|
522
|
-
contactValue?: string | undefined;
|
|
523
524
|
}>, {
|
|
524
525
|
firstName?: string | undefined;
|
|
525
526
|
lastName?: string | undefined;
|
|
527
|
+
contactValue?: string | undefined;
|
|
526
528
|
gender?: "male" | "female" | undefined;
|
|
527
529
|
birthDate?: number | undefined;
|
|
528
530
|
birthMonth?: number | undefined;
|
|
529
531
|
birthYear?: number | undefined;
|
|
530
|
-
contactValue?: string | undefined;
|
|
531
532
|
}, {
|
|
532
533
|
firstName?: string | undefined;
|
|
533
534
|
lastName?: string | undefined;
|
|
535
|
+
contactValue?: string | undefined;
|
|
534
536
|
gender?: "male" | "female" | undefined;
|
|
535
537
|
birthDate?: number | undefined;
|
|
536
538
|
birthMonth?: number | undefined;
|
|
537
539
|
birthYear?: number | undefined;
|
|
538
|
-
contactValue?: string | undefined;
|
|
539
540
|
}>;
|
|
540
541
|
headers: z.ZodObject<{
|
|
541
542
|
authorization: z.ZodString;
|
|
@@ -548,11 +549,11 @@ export declare const updatePassengerProfileSchema: z.ZodObject<{
|
|
|
548
549
|
body: {
|
|
549
550
|
firstName?: string | undefined;
|
|
550
551
|
lastName?: string | undefined;
|
|
552
|
+
contactValue?: string | undefined;
|
|
551
553
|
gender?: "male" | "female" | undefined;
|
|
552
554
|
birthDate?: number | undefined;
|
|
553
555
|
birthMonth?: number | undefined;
|
|
554
556
|
birthYear?: number | undefined;
|
|
555
|
-
contactValue?: string | undefined;
|
|
556
557
|
};
|
|
557
558
|
headers: {
|
|
558
559
|
authorization: string;
|
|
@@ -562,11 +563,11 @@ export declare const updatePassengerProfileSchema: z.ZodObject<{
|
|
|
562
563
|
body: {
|
|
563
564
|
firstName?: string | undefined;
|
|
564
565
|
lastName?: string | undefined;
|
|
566
|
+
contactValue?: string | undefined;
|
|
565
567
|
gender?: "male" | "female" | undefined;
|
|
566
568
|
birthDate?: number | undefined;
|
|
567
569
|
birthMonth?: number | undefined;
|
|
568
570
|
birthYear?: number | undefined;
|
|
569
|
-
contactValue?: string | undefined;
|
|
570
571
|
};
|
|
571
572
|
headers: {
|
|
572
573
|
authorization: string;
|
|
@@ -587,43 +588,43 @@ export declare const createRiderSchema: z.ZodObject<{
|
|
|
587
588
|
}, "strip", z.ZodTypeAny, {
|
|
588
589
|
firstName: string;
|
|
589
590
|
lastName: string;
|
|
590
|
-
|
|
591
|
+
contactValue: string;
|
|
591
592
|
plateNumber: string;
|
|
593
|
+
jacketId: string;
|
|
592
594
|
gender: "male" | "female";
|
|
593
595
|
birthDate: number;
|
|
594
596
|
birthMonth: number;
|
|
595
597
|
birthYear: number;
|
|
596
|
-
contactValue: string;
|
|
597
598
|
}, {
|
|
598
599
|
firstName: string;
|
|
599
600
|
lastName: string;
|
|
600
|
-
|
|
601
|
+
contactValue: string;
|
|
601
602
|
plateNumber: string;
|
|
603
|
+
jacketId: string;
|
|
602
604
|
gender: "male" | "female";
|
|
603
605
|
birthDate: number;
|
|
604
606
|
birthMonth: number;
|
|
605
607
|
birthYear: number;
|
|
606
|
-
contactValue: string;
|
|
607
608
|
}>, {
|
|
608
609
|
firstName: string;
|
|
609
610
|
lastName: string;
|
|
610
|
-
|
|
611
|
+
contactValue: string;
|
|
611
612
|
plateNumber: string;
|
|
613
|
+
jacketId: string;
|
|
612
614
|
gender: "male" | "female";
|
|
613
615
|
birthDate: number;
|
|
614
616
|
birthMonth: number;
|
|
615
617
|
birthYear: number;
|
|
616
|
-
contactValue: string;
|
|
617
618
|
}, {
|
|
618
619
|
firstName: string;
|
|
619
620
|
lastName: string;
|
|
620
|
-
|
|
621
|
+
contactValue: string;
|
|
621
622
|
plateNumber: string;
|
|
623
|
+
jacketId: string;
|
|
622
624
|
gender: "male" | "female";
|
|
623
625
|
birthDate: number;
|
|
624
626
|
birthMonth: number;
|
|
625
627
|
birthYear: number;
|
|
626
|
-
contactValue: string;
|
|
627
628
|
}>;
|
|
628
629
|
params: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
629
630
|
query: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
@@ -631,13 +632,13 @@ export declare const createRiderSchema: z.ZodObject<{
|
|
|
631
632
|
body: {
|
|
632
633
|
firstName: string;
|
|
633
634
|
lastName: string;
|
|
634
|
-
|
|
635
|
+
contactValue: string;
|
|
635
636
|
plateNumber: string;
|
|
637
|
+
jacketId: string;
|
|
636
638
|
gender: "male" | "female";
|
|
637
639
|
birthDate: number;
|
|
638
640
|
birthMonth: number;
|
|
639
641
|
birthYear: number;
|
|
640
|
-
contactValue: string;
|
|
641
642
|
};
|
|
642
643
|
params?: {} | undefined;
|
|
643
644
|
query?: {} | undefined;
|
|
@@ -645,13 +646,13 @@ export declare const createRiderSchema: z.ZodObject<{
|
|
|
645
646
|
body: {
|
|
646
647
|
firstName: string;
|
|
647
648
|
lastName: string;
|
|
648
|
-
|
|
649
|
+
contactValue: string;
|
|
649
650
|
plateNumber: string;
|
|
651
|
+
jacketId: string;
|
|
650
652
|
gender: "male" | "female";
|
|
651
653
|
birthDate: number;
|
|
652
654
|
birthMonth: number;
|
|
653
655
|
birthYear: number;
|
|
654
|
-
contactValue: string;
|
|
655
656
|
};
|
|
656
657
|
params?: {} | undefined;
|
|
657
658
|
query?: {} | undefined;
|
|
@@ -677,63 +678,63 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
|
677
678
|
}, "strip", z.ZodTypeAny, {
|
|
678
679
|
firstName?: string | undefined;
|
|
679
680
|
lastName?: string | undefined;
|
|
680
|
-
|
|
681
|
+
contactValue?: string | undefined;
|
|
681
682
|
plateNumber?: string | undefined;
|
|
683
|
+
jacketId?: string | undefined;
|
|
682
684
|
gender?: "male" | "female" | undefined;
|
|
683
685
|
birthDate?: number | undefined;
|
|
684
686
|
birthMonth?: number | undefined;
|
|
685
687
|
birthYear?: number | undefined;
|
|
686
|
-
contactValue?: string | undefined;
|
|
687
688
|
}, {
|
|
688
689
|
firstName?: string | undefined;
|
|
689
690
|
lastName?: string | undefined;
|
|
690
|
-
|
|
691
|
+
contactValue?: string | undefined;
|
|
691
692
|
plateNumber?: string | undefined;
|
|
693
|
+
jacketId?: string | undefined;
|
|
692
694
|
gender?: "male" | "female" | undefined;
|
|
693
695
|
birthDate?: number | undefined;
|
|
694
696
|
birthMonth?: number | undefined;
|
|
695
697
|
birthYear?: number | undefined;
|
|
696
|
-
contactValue?: string | undefined;
|
|
697
698
|
}>, {
|
|
698
699
|
firstName?: string | undefined;
|
|
699
700
|
lastName?: string | undefined;
|
|
700
|
-
|
|
701
|
+
contactValue?: string | undefined;
|
|
701
702
|
plateNumber?: string | undefined;
|
|
703
|
+
jacketId?: string | undefined;
|
|
702
704
|
gender?: "male" | "female" | undefined;
|
|
703
705
|
birthDate?: number | undefined;
|
|
704
706
|
birthMonth?: number | undefined;
|
|
705
707
|
birthYear?: number | undefined;
|
|
706
|
-
contactValue?: string | undefined;
|
|
707
708
|
}, {
|
|
708
709
|
firstName?: string | undefined;
|
|
709
710
|
lastName?: string | undefined;
|
|
710
|
-
|
|
711
|
+
contactValue?: string | undefined;
|
|
711
712
|
plateNumber?: string | undefined;
|
|
713
|
+
jacketId?: string | undefined;
|
|
712
714
|
gender?: "male" | "female" | undefined;
|
|
713
715
|
birthDate?: number | undefined;
|
|
714
716
|
birthMonth?: number | undefined;
|
|
715
717
|
birthYear?: number | undefined;
|
|
716
|
-
contactValue?: string | undefined;
|
|
717
718
|
}>, {
|
|
718
719
|
firstName?: string | undefined;
|
|
719
720
|
lastName?: string | undefined;
|
|
720
|
-
|
|
721
|
+
contactValue?: string | undefined;
|
|
721
722
|
plateNumber?: string | undefined;
|
|
723
|
+
jacketId?: string | undefined;
|
|
722
724
|
gender?: "male" | "female" | undefined;
|
|
723
725
|
birthDate?: number | undefined;
|
|
724
726
|
birthMonth?: number | undefined;
|
|
725
727
|
birthYear?: number | undefined;
|
|
726
|
-
contactValue?: string | undefined;
|
|
727
728
|
}, {
|
|
728
729
|
firstName?: string | undefined;
|
|
729
730
|
lastName?: string | undefined;
|
|
730
|
-
|
|
731
|
+
contactValue?: string | undefined;
|
|
731
732
|
plateNumber?: string | undefined;
|
|
733
|
+
jacketId?: string | undefined;
|
|
732
734
|
gender?: "male" | "female" | undefined;
|
|
733
735
|
birthDate?: number | undefined;
|
|
734
736
|
birthMonth?: number | undefined;
|
|
735
737
|
birthYear?: number | undefined;
|
|
736
|
-
contactValue?: string | undefined;
|
|
737
738
|
}>;
|
|
738
739
|
query: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
739
740
|
headers: z.ZodObject<{
|
|
@@ -750,13 +751,13 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
|
750
751
|
body: {
|
|
751
752
|
firstName?: string | undefined;
|
|
752
753
|
lastName?: string | undefined;
|
|
753
|
-
|
|
754
|
+
contactValue?: string | undefined;
|
|
754
755
|
plateNumber?: string | undefined;
|
|
756
|
+
jacketId?: string | undefined;
|
|
755
757
|
gender?: "male" | "female" | undefined;
|
|
756
758
|
birthDate?: number | undefined;
|
|
757
759
|
birthMonth?: number | undefined;
|
|
758
760
|
birthYear?: number | undefined;
|
|
759
|
-
contactValue?: string | undefined;
|
|
760
761
|
};
|
|
761
762
|
headers: {
|
|
762
763
|
authorization: string;
|
|
@@ -769,13 +770,13 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
|
769
770
|
body: {
|
|
770
771
|
firstName?: string | undefined;
|
|
771
772
|
lastName?: string | undefined;
|
|
772
|
-
|
|
773
|
+
contactValue?: string | undefined;
|
|
773
774
|
plateNumber?: string | undefined;
|
|
775
|
+
jacketId?: string | undefined;
|
|
774
776
|
gender?: "male" | "female" | undefined;
|
|
775
777
|
birthDate?: number | undefined;
|
|
776
778
|
birthMonth?: number | undefined;
|
|
777
779
|
birthYear?: number | undefined;
|
|
778
|
-
contactValue?: string | undefined;
|
|
779
780
|
};
|
|
780
781
|
headers: {
|
|
781
782
|
authorization: string;
|
|
@@ -870,55 +871,55 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
870
871
|
}, "strict", z.ZodTypeAny, {
|
|
871
872
|
firstName?: string | undefined;
|
|
872
873
|
lastName?: string | undefined;
|
|
874
|
+
contactValue?: string | undefined;
|
|
873
875
|
gender?: "male" | "female" | undefined;
|
|
874
876
|
birthDate?: number | undefined;
|
|
875
877
|
birthMonth?: number | undefined;
|
|
876
878
|
birthYear?: number | undefined;
|
|
877
|
-
contactValue?: string | undefined;
|
|
878
879
|
}, {
|
|
879
880
|
firstName?: string | undefined;
|
|
880
881
|
lastName?: string | undefined;
|
|
882
|
+
contactValue?: string | undefined;
|
|
881
883
|
gender?: "male" | "female" | undefined;
|
|
882
884
|
birthDate?: number | undefined;
|
|
883
885
|
birthMonth?: number | undefined;
|
|
884
886
|
birthYear?: number | undefined;
|
|
885
|
-
contactValue?: string | undefined;
|
|
886
887
|
}>, {
|
|
887
888
|
firstName?: string | undefined;
|
|
888
889
|
lastName?: string | undefined;
|
|
890
|
+
contactValue?: string | undefined;
|
|
889
891
|
gender?: "male" | "female" | undefined;
|
|
890
892
|
birthDate?: number | undefined;
|
|
891
893
|
birthMonth?: number | undefined;
|
|
892
894
|
birthYear?: number | undefined;
|
|
893
|
-
contactValue?: string | undefined;
|
|
894
895
|
}, {
|
|
895
896
|
firstName?: string | undefined;
|
|
896
897
|
lastName?: string | undefined;
|
|
898
|
+
contactValue?: string | undefined;
|
|
897
899
|
gender?: "male" | "female" | undefined;
|
|
898
900
|
birthDate?: number | undefined;
|
|
899
901
|
birthMonth?: number | undefined;
|
|
900
902
|
birthYear?: number | undefined;
|
|
901
|
-
contactValue?: string | undefined;
|
|
902
903
|
}>;
|
|
903
904
|
}, "strip", z.ZodTypeAny, {
|
|
904
905
|
body: {
|
|
905
906
|
firstName?: string | undefined;
|
|
906
907
|
lastName?: string | undefined;
|
|
908
|
+
contactValue?: string | undefined;
|
|
907
909
|
gender?: "male" | "female" | undefined;
|
|
908
910
|
birthDate?: number | undefined;
|
|
909
911
|
birthMonth?: number | undefined;
|
|
910
912
|
birthYear?: number | undefined;
|
|
911
|
-
contactValue?: string | undefined;
|
|
912
913
|
};
|
|
913
914
|
}, {
|
|
914
915
|
body: {
|
|
915
916
|
firstName?: string | undefined;
|
|
916
917
|
lastName?: string | undefined;
|
|
918
|
+
contactValue?: string | undefined;
|
|
917
919
|
gender?: "male" | "female" | undefined;
|
|
918
920
|
birthDate?: number | undefined;
|
|
919
921
|
birthMonth?: number | undefined;
|
|
920
922
|
birthYear?: number | undefined;
|
|
921
|
-
contactValue?: string | undefined;
|
|
922
923
|
};
|
|
923
924
|
}>;
|
|
924
925
|
export declare const addContactSchema: z.ZodObject<{
|
|
@@ -15,14 +15,14 @@ exports.strongPasswordRegex = /^(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&#^()_\-+=])[A-Za
|
|
|
15
15
|
// ============================================================================
|
|
16
16
|
const detectContactType = (value) => {
|
|
17
17
|
if (!value)
|
|
18
|
-
return "
|
|
18
|
+
return "EMAIL";
|
|
19
19
|
if (exports.emailRegex.test(value)) {
|
|
20
20
|
return "EMAIL";
|
|
21
21
|
}
|
|
22
22
|
if (exports.phoneNumberRegex.test(value)) {
|
|
23
23
|
return "PHONE";
|
|
24
24
|
}
|
|
25
|
-
return "
|
|
25
|
+
return "EMAIL";
|
|
26
26
|
};
|
|
27
27
|
exports.detectContactType = detectContactType;
|
|
28
28
|
const validateContactValue = (value) => {
|
|
@@ -16,36 +16,36 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
16
16
|
birthMonth: z.ZodNumber;
|
|
17
17
|
birthYear: z.ZodNumber;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
contactValue: string;
|
|
19
20
|
jacketId: string;
|
|
20
21
|
gender: "male" | "female";
|
|
21
22
|
birthDate: number;
|
|
22
23
|
birthMonth: number;
|
|
23
24
|
birthYear: number;
|
|
24
|
-
contactValue: string;
|
|
25
25
|
plateNumber?: string | undefined;
|
|
26
26
|
}, {
|
|
27
|
+
contactValue: string;
|
|
27
28
|
jacketId: string;
|
|
28
29
|
gender: "male" | "female";
|
|
29
30
|
birthDate: number;
|
|
30
31
|
birthMonth: number;
|
|
31
32
|
birthYear: number;
|
|
32
|
-
contactValue: string;
|
|
33
33
|
plateNumber?: string | undefined;
|
|
34
34
|
}>, {
|
|
35
|
+
contactValue: string;
|
|
35
36
|
jacketId: string;
|
|
36
37
|
gender: "male" | "female";
|
|
37
38
|
birthDate: number;
|
|
38
39
|
birthMonth: number;
|
|
39
40
|
birthYear: number;
|
|
40
|
-
contactValue: string;
|
|
41
41
|
plateNumber?: string | undefined;
|
|
42
42
|
}, {
|
|
43
|
+
contactValue: string;
|
|
43
44
|
jacketId: string;
|
|
44
45
|
gender: "male" | "female";
|
|
45
46
|
birthDate: number;
|
|
46
47
|
birthMonth: number;
|
|
47
48
|
birthYear: number;
|
|
48
|
-
contactValue: string;
|
|
49
49
|
plateNumber?: string | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -53,12 +53,12 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
53
53
|
userId: string;
|
|
54
54
|
};
|
|
55
55
|
body: {
|
|
56
|
+
contactValue: string;
|
|
56
57
|
jacketId: string;
|
|
57
58
|
gender: "male" | "female";
|
|
58
59
|
birthDate: number;
|
|
59
60
|
birthMonth: number;
|
|
60
61
|
birthYear: number;
|
|
61
|
-
contactValue: string;
|
|
62
62
|
plateNumber?: string | undefined;
|
|
63
63
|
};
|
|
64
64
|
}, {
|
|
@@ -66,12 +66,12 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
66
66
|
userId: string;
|
|
67
67
|
};
|
|
68
68
|
body: {
|
|
69
|
+
contactValue: string;
|
|
69
70
|
jacketId: string;
|
|
70
71
|
gender: "male" | "female";
|
|
71
72
|
birthDate: number;
|
|
72
73
|
birthMonth: number;
|
|
73
74
|
birthYear: number;
|
|
74
|
-
contactValue: string;
|
|
75
75
|
plateNumber?: string | undefined;
|
|
76
76
|
};
|
|
77
77
|
}>;
|
|
@@ -96,43 +96,43 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
97
|
firstName?: string | undefined;
|
|
98
98
|
lastName?: string | undefined;
|
|
99
|
-
|
|
99
|
+
contactValue?: string | undefined;
|
|
100
100
|
plateNumber?: string | undefined;
|
|
101
|
+
jacketId?: string | undefined;
|
|
101
102
|
gender?: "male" | "female" | undefined;
|
|
102
103
|
birthDate?: number | undefined;
|
|
103
104
|
birthMonth?: number | undefined;
|
|
104
105
|
birthYear?: number | undefined;
|
|
105
|
-
contactValue?: string | undefined;
|
|
106
106
|
}, {
|
|
107
107
|
firstName?: string | undefined;
|
|
108
108
|
lastName?: string | undefined;
|
|
109
|
-
|
|
109
|
+
contactValue?: string | undefined;
|
|
110
110
|
plateNumber?: string | undefined;
|
|
111
|
+
jacketId?: string | undefined;
|
|
111
112
|
gender?: "male" | "female" | undefined;
|
|
112
113
|
birthDate?: number | undefined;
|
|
113
114
|
birthMonth?: number | undefined;
|
|
114
115
|
birthYear?: number | undefined;
|
|
115
|
-
contactValue?: string | undefined;
|
|
116
116
|
}>, {
|
|
117
117
|
firstName?: string | undefined;
|
|
118
118
|
lastName?: string | undefined;
|
|
119
|
-
|
|
119
|
+
contactValue?: string | undefined;
|
|
120
120
|
plateNumber?: string | undefined;
|
|
121
|
+
jacketId?: string | undefined;
|
|
121
122
|
gender?: "male" | "female" | undefined;
|
|
122
123
|
birthDate?: number | undefined;
|
|
123
124
|
birthMonth?: number | undefined;
|
|
124
125
|
birthYear?: number | undefined;
|
|
125
|
-
contactValue?: string | undefined;
|
|
126
126
|
}, {
|
|
127
127
|
firstName?: string | undefined;
|
|
128
128
|
lastName?: string | undefined;
|
|
129
|
-
|
|
129
|
+
contactValue?: string | undefined;
|
|
130
130
|
plateNumber?: string | undefined;
|
|
131
|
+
jacketId?: string | undefined;
|
|
131
132
|
gender?: "male" | "female" | undefined;
|
|
132
133
|
birthDate?: number | undefined;
|
|
133
134
|
birthMonth?: number | undefined;
|
|
134
135
|
birthYear?: number | undefined;
|
|
135
|
-
contactValue?: string | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
138
|
params: {
|
|
@@ -141,13 +141,13 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
141
141
|
body: {
|
|
142
142
|
firstName?: string | undefined;
|
|
143
143
|
lastName?: string | undefined;
|
|
144
|
-
|
|
144
|
+
contactValue?: string | undefined;
|
|
145
145
|
plateNumber?: string | undefined;
|
|
146
|
+
jacketId?: string | undefined;
|
|
146
147
|
gender?: "male" | "female" | undefined;
|
|
147
148
|
birthDate?: number | undefined;
|
|
148
149
|
birthMonth?: number | undefined;
|
|
149
150
|
birthYear?: number | undefined;
|
|
150
|
-
contactValue?: string | undefined;
|
|
151
151
|
};
|
|
152
152
|
}, {
|
|
153
153
|
params: {
|
|
@@ -156,13 +156,13 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
156
156
|
body: {
|
|
157
157
|
firstName?: string | undefined;
|
|
158
158
|
lastName?: string | undefined;
|
|
159
|
-
|
|
159
|
+
contactValue?: string | undefined;
|
|
160
160
|
plateNumber?: string | undefined;
|
|
161
|
+
jacketId?: string | undefined;
|
|
161
162
|
gender?: "male" | "female" | undefined;
|
|
162
163
|
birthDate?: number | undefined;
|
|
163
164
|
birthMonth?: number | undefined;
|
|
164
165
|
birthYear?: number | undefined;
|
|
165
|
-
contactValue?: string | undefined;
|
|
166
166
|
};
|
|
167
167
|
}>;
|
|
168
168
|
export declare const deleteUserSchema: z.ZodObject<{
|
|
@@ -212,51 +212,51 @@ export declare const getUsersSchema: z.ZodObject<{
|
|
|
212
212
|
sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "firstName", "lastName", "gender"]>>;
|
|
213
213
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
214
214
|
}, "strip", z.ZodTypeAny, {
|
|
215
|
-
|
|
216
|
-
limit?: number | undefined;
|
|
215
|
+
role?: string | undefined;
|
|
217
216
|
gender?: "male" | "female" | undefined;
|
|
218
217
|
isActive?: "true" | "false" | undefined;
|
|
219
218
|
isDeactivated?: "true" | "false" | undefined;
|
|
220
|
-
role?: string | undefined;
|
|
221
219
|
page?: number | undefined;
|
|
220
|
+
limit?: number | undefined;
|
|
222
221
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
222
|
+
search?: string | undefined;
|
|
223
223
|
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
224
224
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
225
225
|
}, {
|
|
226
|
-
|
|
227
|
-
limit?: string | undefined;
|
|
226
|
+
role?: string | undefined;
|
|
228
227
|
gender?: "male" | "female" | undefined;
|
|
229
228
|
isActive?: "true" | "false" | undefined;
|
|
230
229
|
isDeactivated?: "true" | "false" | undefined;
|
|
231
|
-
role?: string | undefined;
|
|
232
230
|
page?: string | undefined;
|
|
231
|
+
limit?: string | undefined;
|
|
233
232
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
233
|
+
search?: string | undefined;
|
|
234
234
|
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
235
235
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
236
236
|
}>;
|
|
237
237
|
}, "strip", z.ZodTypeAny, {
|
|
238
238
|
query: {
|
|
239
|
-
|
|
240
|
-
limit?: number | undefined;
|
|
239
|
+
role?: string | undefined;
|
|
241
240
|
gender?: "male" | "female" | undefined;
|
|
242
241
|
isActive?: "true" | "false" | undefined;
|
|
243
242
|
isDeactivated?: "true" | "false" | undefined;
|
|
244
|
-
role?: string | undefined;
|
|
245
243
|
page?: number | undefined;
|
|
244
|
+
limit?: number | undefined;
|
|
246
245
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
246
|
+
search?: string | undefined;
|
|
247
247
|
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
248
248
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
249
249
|
};
|
|
250
250
|
}, {
|
|
251
251
|
query: {
|
|
252
|
-
|
|
253
|
-
limit?: string | undefined;
|
|
252
|
+
role?: string | undefined;
|
|
254
253
|
gender?: "male" | "female" | undefined;
|
|
255
254
|
isActive?: "true" | "false" | undefined;
|
|
256
255
|
isDeactivated?: "true" | "false" | undefined;
|
|
257
|
-
role?: string | undefined;
|
|
258
256
|
page?: string | undefined;
|
|
257
|
+
limit?: string | undefined;
|
|
259
258
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
259
|
+
search?: string | undefined;
|
|
260
260
|
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
261
261
|
sortOrder?: "ASC" | "DESC" | undefined;
|
|
262
262
|
};
|
|
@@ -276,94 +276,94 @@ export declare const hireAdminSchema: z.ZodObject<{
|
|
|
276
276
|
}, "strip", z.ZodTypeAny, {
|
|
277
277
|
firstName: string;
|
|
278
278
|
lastName: string;
|
|
279
|
+
contactValue: string;
|
|
279
280
|
password: string;
|
|
281
|
+
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
280
282
|
gender: "male" | "female";
|
|
281
283
|
birthDate: number;
|
|
282
284
|
birthMonth: number;
|
|
283
285
|
birthYear: number;
|
|
284
|
-
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
285
|
-
contactValue: string;
|
|
286
286
|
superAdminPassword?: string | undefined;
|
|
287
287
|
}, {
|
|
288
288
|
firstName: string;
|
|
289
289
|
lastName: string;
|
|
290
|
+
contactValue: string;
|
|
290
291
|
password: string;
|
|
292
|
+
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
291
293
|
gender: "male" | "female";
|
|
292
294
|
birthDate: number;
|
|
293
295
|
birthMonth: number;
|
|
294
296
|
birthYear: number;
|
|
295
|
-
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
296
|
-
contactValue: string;
|
|
297
297
|
superAdminPassword?: string | undefined;
|
|
298
298
|
}>, {
|
|
299
299
|
firstName: string;
|
|
300
300
|
lastName: string;
|
|
301
|
+
contactValue: string;
|
|
301
302
|
password: string;
|
|
303
|
+
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
302
304
|
gender: "male" | "female";
|
|
303
305
|
birthDate: number;
|
|
304
306
|
birthMonth: number;
|
|
305
307
|
birthYear: number;
|
|
306
|
-
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
307
|
-
contactValue: string;
|
|
308
308
|
superAdminPassword?: string | undefined;
|
|
309
309
|
}, {
|
|
310
310
|
firstName: string;
|
|
311
311
|
lastName: string;
|
|
312
|
+
contactValue: string;
|
|
312
313
|
password: string;
|
|
314
|
+
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
313
315
|
gender: "male" | "female";
|
|
314
316
|
birthDate: number;
|
|
315
317
|
birthMonth: number;
|
|
316
318
|
birthYear: number;
|
|
317
|
-
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
318
|
-
contactValue: string;
|
|
319
319
|
superAdminPassword?: string | undefined;
|
|
320
320
|
}>, {
|
|
321
321
|
firstName: string;
|
|
322
322
|
lastName: string;
|
|
323
|
+
contactValue: string;
|
|
323
324
|
password: string;
|
|
325
|
+
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
324
326
|
gender: "male" | "female";
|
|
325
327
|
birthDate: number;
|
|
326
328
|
birthMonth: number;
|
|
327
329
|
birthYear: number;
|
|
328
|
-
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
329
|
-
contactValue: string;
|
|
330
330
|
superAdminPassword?: string | undefined;
|
|
331
331
|
}, {
|
|
332
332
|
firstName: string;
|
|
333
333
|
lastName: string;
|
|
334
|
+
contactValue: string;
|
|
334
335
|
password: string;
|
|
336
|
+
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
335
337
|
gender: "male" | "female";
|
|
336
338
|
birthDate: number;
|
|
337
339
|
birthMonth: number;
|
|
338
340
|
birthYear: number;
|
|
339
|
-
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
340
|
-
contactValue: string;
|
|
341
341
|
superAdminPassword?: string | undefined;
|
|
342
342
|
}>;
|
|
343
343
|
}, "strip", z.ZodTypeAny, {
|
|
344
344
|
body: {
|
|
345
345
|
firstName: string;
|
|
346
346
|
lastName: string;
|
|
347
|
+
contactValue: string;
|
|
347
348
|
password: string;
|
|
349
|
+
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
348
350
|
gender: "male" | "female";
|
|
349
351
|
birthDate: number;
|
|
350
352
|
birthMonth: number;
|
|
351
353
|
birthYear: number;
|
|
352
|
-
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
353
|
-
contactValue: string;
|
|
354
354
|
superAdminPassword?: string | undefined;
|
|
355
355
|
};
|
|
356
356
|
}, {
|
|
357
357
|
body: {
|
|
358
358
|
firstName: string;
|
|
359
359
|
lastName: string;
|
|
360
|
+
contactValue: string;
|
|
360
361
|
password: string;
|
|
362
|
+
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
361
363
|
gender: "male" | "female";
|
|
362
364
|
birthDate: number;
|
|
363
365
|
birthMonth: number;
|
|
364
366
|
birthYear: number;
|
|
365
|
-
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
366
|
-
contactValue: string;
|
|
367
367
|
superAdminPassword?: string | undefined;
|
|
368
368
|
};
|
|
369
369
|
}>;
|
|
@@ -413,23 +413,23 @@ export declare const demoteAdminSchema: z.ZodObject<{
|
|
|
413
413
|
body: z.ZodObject<{
|
|
414
414
|
targetRole: z.ZodEnum<["AGENT", "ADMIN"]>;
|
|
415
415
|
}, "strip", z.ZodTypeAny, {
|
|
416
|
-
targetRole: "
|
|
416
|
+
targetRole: "AGENT" | "ADMIN";
|
|
417
417
|
}, {
|
|
418
|
-
targetRole: "
|
|
418
|
+
targetRole: "AGENT" | "ADMIN";
|
|
419
419
|
}>;
|
|
420
420
|
}, "strip", z.ZodTypeAny, {
|
|
421
421
|
params: {
|
|
422
422
|
userId: string;
|
|
423
423
|
};
|
|
424
424
|
body: {
|
|
425
|
-
targetRole: "
|
|
425
|
+
targetRole: "AGENT" | "ADMIN";
|
|
426
426
|
};
|
|
427
427
|
}, {
|
|
428
428
|
params: {
|
|
429
429
|
userId: string;
|
|
430
430
|
};
|
|
431
431
|
body: {
|
|
432
|
-
targetRole: "
|
|
432
|
+
targetRole: "AGENT" | "ADMIN";
|
|
433
433
|
};
|
|
434
434
|
}>;
|
|
435
435
|
export declare const fireEmployeeSchema: z.ZodObject<{
|
|
@@ -481,35 +481,35 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
481
481
|
}, "strip", z.ZodTypeAny, {
|
|
482
482
|
firstName?: string | undefined;
|
|
483
483
|
lastName?: string | undefined;
|
|
484
|
+
contactValue?: string | undefined;
|
|
484
485
|
gender?: "male" | "female" | undefined;
|
|
485
486
|
birthDate?: number | undefined;
|
|
486
487
|
birthMonth?: number | undefined;
|
|
487
488
|
birthYear?: number | undefined;
|
|
488
|
-
contactValue?: string | undefined;
|
|
489
489
|
}, {
|
|
490
490
|
firstName?: string | undefined;
|
|
491
491
|
lastName?: string | undefined;
|
|
492
|
+
contactValue?: string | undefined;
|
|
492
493
|
gender?: "male" | "female" | undefined;
|
|
493
494
|
birthDate?: number | undefined;
|
|
494
495
|
birthMonth?: number | undefined;
|
|
495
496
|
birthYear?: number | undefined;
|
|
496
|
-
contactValue?: string | undefined;
|
|
497
497
|
}>, {
|
|
498
498
|
firstName?: string | undefined;
|
|
499
499
|
lastName?: string | undefined;
|
|
500
|
+
contactValue?: string | undefined;
|
|
500
501
|
gender?: "male" | "female" | undefined;
|
|
501
502
|
birthDate?: number | undefined;
|
|
502
503
|
birthMonth?: number | undefined;
|
|
503
504
|
birthYear?: number | undefined;
|
|
504
|
-
contactValue?: string | undefined;
|
|
505
505
|
}, {
|
|
506
506
|
firstName?: string | undefined;
|
|
507
507
|
lastName?: string | undefined;
|
|
508
|
+
contactValue?: string | undefined;
|
|
508
509
|
gender?: "male" | "female" | undefined;
|
|
509
510
|
birthDate?: number | undefined;
|
|
510
511
|
birthMonth?: number | undefined;
|
|
511
512
|
birthYear?: number | undefined;
|
|
512
|
-
contactValue?: string | undefined;
|
|
513
513
|
}>;
|
|
514
514
|
}, "strip", z.ZodTypeAny, {
|
|
515
515
|
params: {
|
|
@@ -518,11 +518,11 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
518
518
|
body: {
|
|
519
519
|
firstName?: string | undefined;
|
|
520
520
|
lastName?: string | undefined;
|
|
521
|
+
contactValue?: string | undefined;
|
|
521
522
|
gender?: "male" | "female" | undefined;
|
|
522
523
|
birthDate?: number | undefined;
|
|
523
524
|
birthMonth?: number | undefined;
|
|
524
525
|
birthYear?: number | undefined;
|
|
525
|
-
contactValue?: string | undefined;
|
|
526
526
|
};
|
|
527
527
|
}, {
|
|
528
528
|
params: {
|
|
@@ -531,11 +531,11 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
531
531
|
body: {
|
|
532
532
|
firstName?: string | undefined;
|
|
533
533
|
lastName?: string | undefined;
|
|
534
|
+
contactValue?: string | undefined;
|
|
534
535
|
gender?: "male" | "female" | undefined;
|
|
535
536
|
birthDate?: number | undefined;
|
|
536
537
|
birthMonth?: number | undefined;
|
|
537
538
|
birthYear?: number | undefined;
|
|
538
|
-
contactValue?: string | undefined;
|
|
539
539
|
};
|
|
540
540
|
}>;
|
|
541
541
|
export declare const resetPasswordSchema: z.ZodObject<{
|