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