vr-commons 1.0.113 → 1.0.114

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,12 +1,15 @@
1
1
  import { z } from "zod";
2
2
  export declare const phoneNumberRegex: RegExp;
3
+ export declare const emailRegex: RegExp;
3
4
  export declare const jacketIdRegex: RegExp;
5
+ export declare const strongPasswordRegex: RegExp;
6
+ export declare const detectContactType: (value: string) => "EMAIL" | "PHONE" | "WHATSAPP" | "UNKNOWN";
7
+ export declare const validateContactValue: (value: string) => boolean;
4
8
  export declare const createUserSchema: z.ZodObject<{
5
9
  body: z.ZodEffects<z.ZodObject<{
6
10
  firstName: z.ZodString;
7
11
  lastName: z.ZodString;
8
- phoneNumber: z.ZodString;
9
- email: z.ZodUnion<[z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodLiteral<"">]>;
12
+ contactValue: z.ZodEffects<z.ZodString, string, string>;
10
13
  password: z.ZodOptional<z.ZodString>;
11
14
  role: z.ZodEnum<["AGENT", "RIDER", "PASSENGER", "ADMIN", "SUPER_ADMIN"]>;
12
15
  plateNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -22,12 +25,11 @@ export declare const createUserSchema: z.ZodObject<{
22
25
  birthDate: number;
23
26
  birthMonth: number;
24
27
  birthYear: number;
25
- role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
26
- phoneNumber: string;
28
+ role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
29
+ contactValue: string;
27
30
  jacketId?: string | null | undefined;
28
31
  password?: string | undefined;
29
32
  plateNumber?: string | null | undefined;
30
- email?: string | null | undefined;
31
33
  }, {
32
34
  firstName: string;
33
35
  lastName: string;
@@ -35,12 +37,11 @@ export declare const createUserSchema: z.ZodObject<{
35
37
  birthDate: number;
36
38
  birthMonth: number;
37
39
  birthYear: number;
38
- role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
39
- phoneNumber: string;
40
+ role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
41
+ contactValue: string;
40
42
  jacketId?: string | null | undefined;
41
43
  password?: string | undefined;
42
44
  plateNumber?: string | null | undefined;
43
- email?: string | null | undefined;
44
45
  }>, {
45
46
  firstName: string;
46
47
  lastName: string;
@@ -48,12 +49,11 @@ export declare const createUserSchema: z.ZodObject<{
48
49
  birthDate: number;
49
50
  birthMonth: number;
50
51
  birthYear: number;
51
- role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
52
- phoneNumber: string;
52
+ role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
53
+ contactValue: string;
53
54
  jacketId?: string | null | undefined;
54
55
  password?: string | undefined;
55
56
  plateNumber?: string | null | undefined;
56
- email?: string | null | undefined;
57
57
  }, {
58
58
  firstName: string;
59
59
  lastName: string;
@@ -61,12 +61,11 @@ export declare const createUserSchema: z.ZodObject<{
61
61
  birthDate: number;
62
62
  birthMonth: number;
63
63
  birthYear: number;
64
- role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
65
- phoneNumber: string;
64
+ role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
65
+ contactValue: string;
66
66
  jacketId?: string | null | undefined;
67
67
  password?: string | undefined;
68
68
  plateNumber?: string | null | undefined;
69
- email?: string | null | undefined;
70
69
  }>;
71
70
  headers: z.ZodObject<{
72
71
  authorization: z.ZodString;
@@ -83,12 +82,11 @@ export declare const createUserSchema: z.ZodObject<{
83
82
  birthDate: number;
84
83
  birthMonth: number;
85
84
  birthYear: number;
86
- role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
87
- phoneNumber: string;
85
+ role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
86
+ contactValue: string;
88
87
  jacketId?: string | null | undefined;
89
88
  password?: string | undefined;
90
89
  plateNumber?: string | null | undefined;
91
- email?: string | null | undefined;
92
90
  };
93
91
  headers: {
94
92
  authorization: string;
@@ -101,12 +99,11 @@ export declare const createUserSchema: z.ZodObject<{
101
99
  birthDate: number;
102
100
  birthMonth: number;
103
101
  birthYear: number;
104
- role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
105
- phoneNumber: string;
102
+ role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
103
+ contactValue: string;
106
104
  jacketId?: string | null | undefined;
107
105
  password?: string | undefined;
108
106
  plateNumber?: string | null | undefined;
109
- email?: string | null | undefined;
110
107
  };
111
108
  headers: {
112
109
  authorization: string;
@@ -153,11 +150,9 @@ export declare const updateUserProfileSchema: z.ZodObject<{
153
150
  body: z.ZodEffects<z.ZodEffects<z.ZodObject<{
154
151
  firstName: z.ZodOptional<z.ZodString>;
155
152
  lastName: z.ZodOptional<z.ZodString>;
156
- email: z.ZodUnion<[z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodLiteral<"">]>;
157
- phoneNumber: z.ZodOptional<z.ZodString>;
153
+ contactValue: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
158
154
  plateNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
159
155
  isActive: z.ZodOptional<z.ZodBoolean>;
160
- isSuspended: z.ZodOptional<z.ZodBoolean>;
161
156
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
162
157
  password: z.ZodOptional<z.ZodString>;
163
158
  gender: z.ZodOptional<z.ZodEnum<["male", "female"]>>;
@@ -175,9 +170,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
175
170
  birthYear?: number | undefined;
176
171
  isActive?: boolean | undefined;
177
172
  isDeactivated?: boolean | undefined;
178
- isSuspended?: boolean | undefined;
179
- email?: string | null | undefined;
180
- phoneNumber?: string | undefined;
173
+ contactValue?: string | undefined;
181
174
  }, {
182
175
  firstName?: string | undefined;
183
176
  lastName?: string | undefined;
@@ -189,9 +182,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
189
182
  birthYear?: number | undefined;
190
183
  isActive?: boolean | undefined;
191
184
  isDeactivated?: boolean | undefined;
192
- isSuspended?: boolean | undefined;
193
- email?: string | null | undefined;
194
- phoneNumber?: string | undefined;
185
+ contactValue?: string | undefined;
195
186
  }>, {
196
187
  firstName?: string | undefined;
197
188
  lastName?: string | undefined;
@@ -203,9 +194,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
203
194
  birthYear?: number | undefined;
204
195
  isActive?: boolean | undefined;
205
196
  isDeactivated?: boolean | undefined;
206
- isSuspended?: boolean | undefined;
207
- email?: string | null | undefined;
208
- phoneNumber?: string | undefined;
197
+ contactValue?: string | undefined;
209
198
  }, {
210
199
  firstName?: string | undefined;
211
200
  lastName?: string | undefined;
@@ -217,9 +206,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
217
206
  birthYear?: number | undefined;
218
207
  isActive?: boolean | undefined;
219
208
  isDeactivated?: boolean | undefined;
220
- isSuspended?: boolean | undefined;
221
- email?: string | null | undefined;
222
- phoneNumber?: string | undefined;
209
+ contactValue?: string | undefined;
223
210
  }>, {
224
211
  firstName?: string | undefined;
225
212
  lastName?: string | undefined;
@@ -231,9 +218,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
231
218
  birthYear?: number | undefined;
232
219
  isActive?: boolean | undefined;
233
220
  isDeactivated?: boolean | undefined;
234
- isSuspended?: boolean | undefined;
235
- email?: string | null | undefined;
236
- phoneNumber?: string | undefined;
221
+ contactValue?: string | undefined;
237
222
  }, {
238
223
  firstName?: string | undefined;
239
224
  lastName?: string | undefined;
@@ -245,9 +230,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
245
230
  birthYear?: number | undefined;
246
231
  isActive?: boolean | undefined;
247
232
  isDeactivated?: boolean | undefined;
248
- isSuspended?: boolean | undefined;
249
- email?: string | null | undefined;
250
- phoneNumber?: string | undefined;
233
+ contactValue?: string | undefined;
251
234
  }>;
252
235
  headers: z.ZodObject<{
253
236
  authorization: z.ZodString;
@@ -257,6 +240,9 @@ export declare const updateUserProfileSchema: z.ZodObject<{
257
240
  authorization: string;
258
241
  }>;
259
242
  }, "strip", z.ZodTypeAny, {
243
+ params: {
244
+ userId: string;
245
+ };
260
246
  body: {
261
247
  firstName?: string | undefined;
262
248
  lastName?: string | undefined;
@@ -268,17 +254,15 @@ export declare const updateUserProfileSchema: z.ZodObject<{
268
254
  birthYear?: number | undefined;
269
255
  isActive?: boolean | undefined;
270
256
  isDeactivated?: boolean | undefined;
271
- isSuspended?: boolean | undefined;
272
- email?: string | null | undefined;
273
- phoneNumber?: string | undefined;
274
- };
275
- params: {
276
- userId: string;
257
+ contactValue?: string | undefined;
277
258
  };
278
259
  headers: {
279
260
  authorization: string;
280
261
  };
281
262
  }, {
263
+ params: {
264
+ userId: string;
265
+ };
282
266
  body: {
283
267
  firstName?: string | undefined;
284
268
  lastName?: string | undefined;
@@ -290,12 +274,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
290
274
  birthYear?: number | undefined;
291
275
  isActive?: boolean | undefined;
292
276
  isDeactivated?: boolean | undefined;
293
- isSuspended?: boolean | undefined;
294
- email?: string | null | undefined;
295
- phoneNumber?: string | undefined;
296
- };
297
- params: {
298
- userId: string;
277
+ contactValue?: string | undefined;
299
278
  };
300
279
  headers: {
301
280
  authorization: string;
@@ -307,9 +286,9 @@ export declare const getAllUsersSchema: z.ZodObject<{
307
286
  limit: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodString>, number, string | undefined>>;
308
287
  role: z.ZodOptional<z.ZodEnum<["RIDER", "PASSENGER", "AGENT", "ADMIN", "SUPER_ADMIN"]>>;
309
288
  isActive: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
310
- isSuspended: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
311
- isBanned: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
289
+ isDeactivated: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
312
290
  gender: z.ZodOptional<z.ZodEnum<["male", "female"]>>;
291
+ contactType: z.ZodOptional<z.ZodEnum<["EMAIL", "PHONE", "WHATSAPP"]>>;
313
292
  search: z.ZodOptional<z.ZodString>;
314
293
  startDate: z.ZodOptional<z.ZodString>;
315
294
  endDate: z.ZodOptional<z.ZodString>;
@@ -322,10 +301,10 @@ export declare const getAllUsersSchema: z.ZodObject<{
322
301
  limit?: number | undefined;
323
302
  gender?: "male" | "female" | undefined;
324
303
  isActive?: boolean | undefined;
325
- role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
326
- isBanned?: boolean | undefined;
327
- isSuspended?: boolean | undefined;
304
+ isDeactivated?: boolean | undefined;
305
+ role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
328
306
  page?: number | undefined;
307
+ contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
329
308
  startDate?: string | undefined;
330
309
  endDate?: string | undefined;
331
310
  }, {
@@ -334,13 +313,13 @@ export declare const getAllUsersSchema: z.ZodObject<{
334
313
  limit?: string | undefined;
335
314
  gender?: "male" | "female" | undefined;
336
315
  isActive?: "true" | "false" | undefined;
337
- role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
338
- isBanned?: "true" | "false" | undefined;
339
- isSuspended?: "true" | "false" | undefined;
316
+ isDeactivated?: "true" | "false" | undefined;
317
+ role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
340
318
  page?: string | undefined;
319
+ contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
320
+ sortBy?: "firstName" | "gender" | "lastLoginAt" | "createdAt" | undefined;
341
321
  startDate?: string | undefined;
342
322
  endDate?: string | undefined;
343
- sortBy?: "firstName" | "gender" | "lastLoginAt" | "createdAt" | undefined;
344
323
  }>;
345
324
  headers: z.ZodObject<{
346
325
  authorization: z.ZodString;
@@ -357,10 +336,10 @@ export declare const getAllUsersSchema: z.ZodObject<{
357
336
  limit?: number | undefined;
358
337
  gender?: "male" | "female" | undefined;
359
338
  isActive?: boolean | undefined;
360
- role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
361
- isBanned?: boolean | undefined;
362
- isSuspended?: boolean | undefined;
339
+ isDeactivated?: boolean | undefined;
340
+ role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
363
341
  page?: number | undefined;
342
+ contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
364
343
  startDate?: string | undefined;
365
344
  endDate?: string | undefined;
366
345
  };
@@ -374,13 +353,13 @@ export declare const getAllUsersSchema: z.ZodObject<{
374
353
  limit?: string | undefined;
375
354
  gender?: "male" | "female" | undefined;
376
355
  isActive?: "true" | "false" | undefined;
377
- role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
378
- isBanned?: "true" | "false" | undefined;
379
- isSuspended?: "true" | "false" | undefined;
356
+ isDeactivated?: "true" | "false" | undefined;
357
+ role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
380
358
  page?: string | undefined;
359
+ contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
360
+ sortBy?: "firstName" | "gender" | "lastLoginAt" | "createdAt" | undefined;
381
361
  startDate?: string | undefined;
382
362
  endDate?: string | undefined;
383
- sortBy?: "firstName" | "gender" | "lastLoginAt" | "createdAt" | undefined;
384
363
  };
385
364
  headers: {
386
365
  authorization: string;
@@ -401,24 +380,23 @@ export declare const viewProfileSchema: z.ZodObject<{
401
380
  headers: {
402
381
  authorization: string;
403
382
  };
383
+ params?: {} | undefined;
404
384
  body?: {} | undefined;
405
385
  query?: {} | undefined;
406
- params?: {} | undefined;
407
386
  }, {
408
387
  headers: {
409
388
  authorization: string;
410
389
  };
390
+ params?: {} | undefined;
411
391
  body?: {} | undefined;
412
392
  query?: {} | undefined;
413
- params?: {} | undefined;
414
393
  }>;
415
394
  export declare const passengerSignupSchema: z.ZodObject<{
416
395
  body: z.ZodEffects<z.ZodObject<{
417
396
  firstName: z.ZodString;
418
397
  lastName: z.ZodString;
419
- phoneNumber: z.ZodString;
398
+ contactValue: z.ZodEffects<z.ZodString, string, string>;
420
399
  jacketId: z.ZodOptional<z.ZodString>;
421
- email: z.ZodUnion<[z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodLiteral<"">]>;
422
400
  password: z.ZodNullable<z.ZodOptional<z.ZodString>>;
423
401
  plateNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
424
402
  gender: z.ZodEnum<["male", "female"]>;
@@ -432,11 +410,10 @@ export declare const passengerSignupSchema: z.ZodObject<{
432
410
  birthDate: number;
433
411
  birthMonth: number;
434
412
  birthYear: number;
435
- phoneNumber: string;
413
+ contactValue: string;
436
414
  jacketId?: string | undefined;
437
415
  password?: string | null | undefined;
438
416
  plateNumber?: string | null | undefined;
439
- email?: string | null | undefined;
440
417
  }, {
441
418
  firstName: string;
442
419
  lastName: string;
@@ -444,11 +421,10 @@ export declare const passengerSignupSchema: z.ZodObject<{
444
421
  birthDate: number;
445
422
  birthMonth: number;
446
423
  birthYear: number;
447
- phoneNumber: string;
424
+ contactValue: string;
448
425
  jacketId?: string | undefined;
449
426
  password?: string | null | undefined;
450
427
  plateNumber?: string | null | undefined;
451
- email?: string | null | undefined;
452
428
  }>, {
453
429
  firstName: string;
454
430
  lastName: string;
@@ -456,11 +432,10 @@ export declare const passengerSignupSchema: z.ZodObject<{
456
432
  birthDate: number;
457
433
  birthMonth: number;
458
434
  birthYear: number;
459
- phoneNumber: string;
435
+ contactValue: string;
460
436
  jacketId?: string | undefined;
461
437
  password?: string | null | undefined;
462
438
  plateNumber?: string | null | undefined;
463
- email?: string | null | undefined;
464
439
  }, {
465
440
  firstName: string;
466
441
  lastName: string;
@@ -468,11 +443,10 @@ export declare const passengerSignupSchema: z.ZodObject<{
468
443
  birthDate: number;
469
444
  birthMonth: number;
470
445
  birthYear: number;
471
- phoneNumber: string;
446
+ contactValue: string;
472
447
  jacketId?: string | undefined;
473
448
  password?: string | null | undefined;
474
449
  plateNumber?: string | null | undefined;
475
- email?: string | null | undefined;
476
450
  }>;
477
451
  headers: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
478
452
  }, "strip", z.ZodTypeAny, {
@@ -483,11 +457,10 @@ export declare const passengerSignupSchema: z.ZodObject<{
483
457
  birthDate: number;
484
458
  birthMonth: number;
485
459
  birthYear: number;
486
- phoneNumber: string;
460
+ contactValue: string;
487
461
  jacketId?: string | undefined;
488
462
  password?: string | null | undefined;
489
463
  plateNumber?: string | null | undefined;
490
- email?: string | null | undefined;
491
464
  };
492
465
  headers?: {} | undefined;
493
466
  }, {
@@ -498,11 +471,10 @@ export declare const passengerSignupSchema: z.ZodObject<{
498
471
  birthDate: number;
499
472
  birthMonth: number;
500
473
  birthYear: number;
501
- phoneNumber: string;
474
+ contactValue: string;
502
475
  jacketId?: string | undefined;
503
476
  password?: string | null | undefined;
504
477
  plateNumber?: string | null | undefined;
505
- email?: string | null | undefined;
506
478
  };
507
479
  headers?: {} | undefined;
508
480
  }>;
@@ -511,6 +483,7 @@ export declare const updatePassengerProfileSchema: z.ZodObject<{
511
483
  body: z.ZodEffects<z.ZodEffects<z.ZodObject<{
512
484
  firstName: z.ZodOptional<z.ZodString>;
513
485
  lastName: z.ZodOptional<z.ZodString>;
486
+ contactValue: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
514
487
  gender: z.ZodOptional<z.ZodEnum<["male", "female"]>>;
515
488
  birthDate: z.ZodOptional<z.ZodNumber>;
516
489
  birthMonth: z.ZodOptional<z.ZodNumber>;
@@ -522,6 +495,7 @@ export declare const updatePassengerProfileSchema: z.ZodObject<{
522
495
  birthDate?: number | undefined;
523
496
  birthMonth?: number | undefined;
524
497
  birthYear?: number | undefined;
498
+ contactValue?: string | undefined;
525
499
  }, {
526
500
  firstName?: string | undefined;
527
501
  lastName?: string | undefined;
@@ -529,6 +503,7 @@ export declare const updatePassengerProfileSchema: z.ZodObject<{
529
503
  birthDate?: number | undefined;
530
504
  birthMonth?: number | undefined;
531
505
  birthYear?: number | undefined;
506
+ contactValue?: string | undefined;
532
507
  }>, {
533
508
  firstName?: string | undefined;
534
509
  lastName?: string | undefined;
@@ -536,6 +511,7 @@ export declare const updatePassengerProfileSchema: z.ZodObject<{
536
511
  birthDate?: number | undefined;
537
512
  birthMonth?: number | undefined;
538
513
  birthYear?: number | undefined;
514
+ contactValue?: string | undefined;
539
515
  }, {
540
516
  firstName?: string | undefined;
541
517
  lastName?: string | undefined;
@@ -543,6 +519,7 @@ export declare const updatePassengerProfileSchema: z.ZodObject<{
543
519
  birthDate?: number | undefined;
544
520
  birthMonth?: number | undefined;
545
521
  birthYear?: number | undefined;
522
+ contactValue?: string | undefined;
546
523
  }>, {
547
524
  firstName?: string | undefined;
548
525
  lastName?: string | undefined;
@@ -550,6 +527,7 @@ export declare const updatePassengerProfileSchema: z.ZodObject<{
550
527
  birthDate?: number | undefined;
551
528
  birthMonth?: number | undefined;
552
529
  birthYear?: number | undefined;
530
+ contactValue?: string | undefined;
553
531
  }, {
554
532
  firstName?: string | undefined;
555
533
  lastName?: string | undefined;
@@ -557,6 +535,7 @@ export declare const updatePassengerProfileSchema: z.ZodObject<{
557
535
  birthDate?: number | undefined;
558
536
  birthMonth?: number | undefined;
559
537
  birthYear?: number | undefined;
538
+ contactValue?: string | undefined;
560
539
  }>;
561
540
  headers: z.ZodObject<{
562
541
  authorization: z.ZodString;
@@ -573,6 +552,7 @@ export declare const updatePassengerProfileSchema: z.ZodObject<{
573
552
  birthDate?: number | undefined;
574
553
  birthMonth?: number | undefined;
575
554
  birthYear?: number | undefined;
555
+ contactValue?: string | undefined;
576
556
  };
577
557
  headers: {
578
558
  authorization: string;
@@ -586,6 +566,7 @@ export declare const updatePassengerProfileSchema: z.ZodObject<{
586
566
  birthDate?: number | undefined;
587
567
  birthMonth?: number | undefined;
588
568
  birthYear?: number | undefined;
569
+ contactValue?: string | undefined;
589
570
  };
590
571
  headers: {
591
572
  authorization: string;
@@ -596,7 +577,7 @@ export declare const createRiderSchema: z.ZodObject<{
596
577
  body: z.ZodEffects<z.ZodObject<{
597
578
  firstName: z.ZodString;
598
579
  lastName: z.ZodString;
599
- phoneNumber: z.ZodString;
580
+ contactValue: z.ZodEffects<z.ZodString, string, string>;
600
581
  plateNumber: z.ZodString;
601
582
  jacketId: z.ZodString;
602
583
  gender: z.ZodEnum<["male", "female"]>;
@@ -612,7 +593,7 @@ export declare const createRiderSchema: z.ZodObject<{
612
593
  birthDate: number;
613
594
  birthMonth: number;
614
595
  birthYear: number;
615
- phoneNumber: string;
596
+ contactValue: string;
616
597
  }, {
617
598
  firstName: string;
618
599
  lastName: string;
@@ -622,7 +603,7 @@ export declare const createRiderSchema: z.ZodObject<{
622
603
  birthDate: number;
623
604
  birthMonth: number;
624
605
  birthYear: number;
625
- phoneNumber: string;
606
+ contactValue: string;
626
607
  }>, {
627
608
  firstName: string;
628
609
  lastName: string;
@@ -632,7 +613,7 @@ export declare const createRiderSchema: z.ZodObject<{
632
613
  birthDate: number;
633
614
  birthMonth: number;
634
615
  birthYear: number;
635
- phoneNumber: string;
616
+ contactValue: string;
636
617
  }, {
637
618
  firstName: string;
638
619
  lastName: string;
@@ -642,7 +623,7 @@ export declare const createRiderSchema: z.ZodObject<{
642
623
  birthDate: number;
643
624
  birthMonth: number;
644
625
  birthYear: number;
645
- phoneNumber: string;
626
+ contactValue: string;
646
627
  }>;
647
628
  params: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
648
629
  query: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
@@ -656,10 +637,10 @@ export declare const createRiderSchema: z.ZodObject<{
656
637
  birthDate: number;
657
638
  birthMonth: number;
658
639
  birthYear: number;
659
- phoneNumber: string;
640
+ contactValue: string;
660
641
  };
661
- query?: {} | undefined;
662
642
  params?: {} | undefined;
643
+ query?: {} | undefined;
663
644
  }, {
664
645
  body: {
665
646
  firstName: string;
@@ -670,10 +651,10 @@ export declare const createRiderSchema: z.ZodObject<{
670
651
  birthDate: number;
671
652
  birthMonth: number;
672
653
  birthYear: number;
673
- phoneNumber: string;
654
+ contactValue: string;
674
655
  };
675
- query?: {} | undefined;
676
656
  params?: {} | undefined;
657
+ query?: {} | undefined;
677
658
  }>;
678
659
  export declare const updateRiderProfileSchema: z.ZodObject<{
679
660
  params: z.ZodObject<{
@@ -686,7 +667,7 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
686
667
  body: z.ZodEffects<z.ZodEffects<z.ZodObject<{
687
668
  firstName: z.ZodOptional<z.ZodString>;
688
669
  lastName: z.ZodOptional<z.ZodString>;
689
- phoneNumber: z.ZodOptional<z.ZodString>;
670
+ contactValue: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
690
671
  plateNumber: z.ZodOptional<z.ZodString>;
691
672
  jacketId: z.ZodOptional<z.ZodString>;
692
673
  gender: z.ZodOptional<z.ZodEnum<["male", "female"]>>;
@@ -702,7 +683,7 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
702
683
  birthDate?: number | undefined;
703
684
  birthMonth?: number | undefined;
704
685
  birthYear?: number | undefined;
705
- phoneNumber?: string | undefined;
686
+ contactValue?: string | undefined;
706
687
  }, {
707
688
  firstName?: string | undefined;
708
689
  lastName?: string | undefined;
@@ -712,7 +693,7 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
712
693
  birthDate?: number | undefined;
713
694
  birthMonth?: number | undefined;
714
695
  birthYear?: number | undefined;
715
- phoneNumber?: string | undefined;
696
+ contactValue?: string | undefined;
716
697
  }>, {
717
698
  firstName?: string | undefined;
718
699
  lastName?: string | undefined;
@@ -722,7 +703,7 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
722
703
  birthDate?: number | undefined;
723
704
  birthMonth?: number | undefined;
724
705
  birthYear?: number | undefined;
725
- phoneNumber?: string | undefined;
706
+ contactValue?: string | undefined;
726
707
  }, {
727
708
  firstName?: string | undefined;
728
709
  lastName?: string | undefined;
@@ -732,7 +713,7 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
732
713
  birthDate?: number | undefined;
733
714
  birthMonth?: number | undefined;
734
715
  birthYear?: number | undefined;
735
- phoneNumber?: string | undefined;
716
+ contactValue?: string | undefined;
736
717
  }>, {
737
718
  firstName?: string | undefined;
738
719
  lastName?: string | undefined;
@@ -742,7 +723,7 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
742
723
  birthDate?: number | undefined;
743
724
  birthMonth?: number | undefined;
744
725
  birthYear?: number | undefined;
745
- phoneNumber?: string | undefined;
726
+ contactValue?: string | undefined;
746
727
  }, {
747
728
  firstName?: string | undefined;
748
729
  lastName?: string | undefined;
@@ -752,7 +733,7 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
752
733
  birthDate?: number | undefined;
753
734
  birthMonth?: number | undefined;
754
735
  birthYear?: number | undefined;
755
- phoneNumber?: string | undefined;
736
+ contactValue?: string | undefined;
756
737
  }>;
757
738
  query: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
758
739
  headers: z.ZodObject<{
@@ -763,6 +744,9 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
763
744
  authorization: string;
764
745
  }>;
765
746
  }, "strip", z.ZodTypeAny, {
747
+ params: {
748
+ id: string;
749
+ };
766
750
  body: {
767
751
  firstName?: string | undefined;
768
752
  lastName?: string | undefined;
@@ -772,16 +756,16 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
772
756
  birthDate?: number | undefined;
773
757
  birthMonth?: number | undefined;
774
758
  birthYear?: number | undefined;
775
- phoneNumber?: string | undefined;
776
- };
777
- params: {
778
- id: string;
759
+ contactValue?: string | undefined;
779
760
  };
780
761
  headers: {
781
762
  authorization: string;
782
763
  };
783
764
  query?: {} | undefined;
784
765
  }, {
766
+ params: {
767
+ id: string;
768
+ };
785
769
  body: {
786
770
  firstName?: string | undefined;
787
771
  lastName?: string | undefined;
@@ -791,10 +775,7 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
791
775
  birthDate?: number | undefined;
792
776
  birthMonth?: number | undefined;
793
777
  birthYear?: number | undefined;
794
- phoneNumber?: string | undefined;
795
- };
796
- params: {
797
- id: string;
778
+ contactValue?: string | undefined;
798
779
  };
799
780
  headers: {
800
781
  authorization: string;
@@ -881,8 +862,7 @@ export declare const updateProfileSchema: z.ZodObject<{
881
862
  body: z.ZodEffects<z.ZodObject<{
882
863
  firstName: z.ZodOptional<z.ZodString>;
883
864
  lastName: z.ZodOptional<z.ZodString>;
884
- phoneNumber: z.ZodOptional<z.ZodString>;
885
- email: z.ZodOptional<z.ZodString>;
865
+ contactValue: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
886
866
  gender: z.ZodOptional<z.ZodEnum<["male", "female"]>>;
887
867
  birthDate: z.ZodOptional<z.ZodNumber>;
888
868
  birthMonth: z.ZodOptional<z.ZodNumber>;
@@ -894,8 +874,7 @@ export declare const updateProfileSchema: z.ZodObject<{
894
874
  birthDate?: number | undefined;
895
875
  birthMonth?: number | undefined;
896
876
  birthYear?: number | undefined;
897
- email?: string | undefined;
898
- phoneNumber?: string | undefined;
877
+ contactValue?: string | undefined;
899
878
  }, {
900
879
  firstName?: string | undefined;
901
880
  lastName?: string | undefined;
@@ -903,8 +882,7 @@ export declare const updateProfileSchema: z.ZodObject<{
903
882
  birthDate?: number | undefined;
904
883
  birthMonth?: number | undefined;
905
884
  birthYear?: number | undefined;
906
- email?: string | undefined;
907
- phoneNumber?: string | undefined;
885
+ contactValue?: string | undefined;
908
886
  }>, {
909
887
  firstName?: string | undefined;
910
888
  lastName?: string | undefined;
@@ -912,8 +890,7 @@ export declare const updateProfileSchema: z.ZodObject<{
912
890
  birthDate?: number | undefined;
913
891
  birthMonth?: number | undefined;
914
892
  birthYear?: number | undefined;
915
- email?: string | undefined;
916
- phoneNumber?: string | undefined;
893
+ contactValue?: string | undefined;
917
894
  }, {
918
895
  firstName?: string | undefined;
919
896
  lastName?: string | undefined;
@@ -921,8 +898,7 @@ export declare const updateProfileSchema: z.ZodObject<{
921
898
  birthDate?: number | undefined;
922
899
  birthMonth?: number | undefined;
923
900
  birthYear?: number | undefined;
924
- email?: string | undefined;
925
- phoneNumber?: string | undefined;
901
+ contactValue?: string | undefined;
926
902
  }>;
927
903
  }, "strip", z.ZodTypeAny, {
928
904
  body: {
@@ -932,8 +908,7 @@ export declare const updateProfileSchema: z.ZodObject<{
932
908
  birthDate?: number | undefined;
933
909
  birthMonth?: number | undefined;
934
910
  birthYear?: number | undefined;
935
- email?: string | undefined;
936
- phoneNumber?: string | undefined;
911
+ contactValue?: string | undefined;
937
912
  };
938
913
  }, {
939
914
  body: {
@@ -943,8 +918,175 @@ export declare const updateProfileSchema: z.ZodObject<{
943
918
  birthDate?: number | undefined;
944
919
  birthMonth?: number | undefined;
945
920
  birthYear?: number | undefined;
946
- email?: string | undefined;
947
- phoneNumber?: string | undefined;
921
+ contactValue?: string | undefined;
922
+ };
923
+ }>;
924
+ export declare const addContactSchema: z.ZodObject<{
925
+ body: z.ZodObject<{
926
+ contactValue: z.ZodEffects<z.ZodString, string, string>;
927
+ type: z.ZodOptional<z.ZodEnum<["EMAIL", "PHONE", "WHATSAPP"]>>;
928
+ }, "strip", z.ZodTypeAny, {
929
+ contactValue: string;
930
+ type?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
931
+ }, {
932
+ contactValue: string;
933
+ type?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
934
+ }>;
935
+ headers: z.ZodObject<{
936
+ authorization: z.ZodString;
937
+ }, "strip", z.ZodTypeAny, {
938
+ authorization: string;
939
+ }, {
940
+ authorization: string;
941
+ }>;
942
+ }, "strip", z.ZodTypeAny, {
943
+ body: {
944
+ contactValue: string;
945
+ type?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
946
+ };
947
+ headers: {
948
+ authorization: string;
949
+ };
950
+ }, {
951
+ body: {
952
+ contactValue: string;
953
+ type?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
954
+ };
955
+ headers: {
956
+ authorization: string;
957
+ };
958
+ }>;
959
+ export declare const verifyContactSchema: z.ZodObject<{
960
+ params: z.ZodObject<{
961
+ contactId: z.ZodString;
962
+ }, "strip", z.ZodTypeAny, {
963
+ contactId: string;
964
+ }, {
965
+ contactId: string;
966
+ }>;
967
+ headers: z.ZodObject<{
968
+ authorization: z.ZodString;
969
+ }, "strip", z.ZodTypeAny, {
970
+ authorization: string;
971
+ }, {
972
+ authorization: string;
973
+ }>;
974
+ }, "strip", z.ZodTypeAny, {
975
+ params: {
976
+ contactId: string;
977
+ };
978
+ headers: {
979
+ authorization: string;
980
+ };
981
+ }, {
982
+ params: {
983
+ contactId: string;
984
+ };
985
+ headers: {
986
+ authorization: string;
987
+ };
988
+ }>;
989
+ export declare const confirmVerificationSchema: z.ZodObject<{
990
+ body: z.ZodObject<{
991
+ otp: z.ZodString;
992
+ }, "strip", z.ZodTypeAny, {
993
+ otp: string;
994
+ }, {
995
+ otp: string;
996
+ }>;
997
+ params: z.ZodObject<{
998
+ contactId: z.ZodString;
999
+ }, "strip", z.ZodTypeAny, {
1000
+ contactId: string;
1001
+ }, {
1002
+ contactId: string;
1003
+ }>;
1004
+ headers: z.ZodObject<{
1005
+ authorization: z.ZodString;
1006
+ }, "strip", z.ZodTypeAny, {
1007
+ authorization: string;
1008
+ }, {
1009
+ authorization: string;
1010
+ }>;
1011
+ }, "strip", z.ZodTypeAny, {
1012
+ params: {
1013
+ contactId: string;
1014
+ };
1015
+ body: {
1016
+ otp: string;
1017
+ };
1018
+ headers: {
1019
+ authorization: string;
1020
+ };
1021
+ }, {
1022
+ params: {
1023
+ contactId: string;
1024
+ };
1025
+ body: {
1026
+ otp: string;
1027
+ };
1028
+ headers: {
1029
+ authorization: string;
1030
+ };
1031
+ }>;
1032
+ export declare const deleteContactSchema: z.ZodObject<{
1033
+ params: z.ZodObject<{
1034
+ contactId: z.ZodString;
1035
+ }, "strip", z.ZodTypeAny, {
1036
+ contactId: string;
1037
+ }, {
1038
+ contactId: string;
1039
+ }>;
1040
+ headers: z.ZodObject<{
1041
+ authorization: z.ZodString;
1042
+ }, "strip", z.ZodTypeAny, {
1043
+ authorization: string;
1044
+ }, {
1045
+ authorization: string;
1046
+ }>;
1047
+ }, "strip", z.ZodTypeAny, {
1048
+ params: {
1049
+ contactId: string;
1050
+ };
1051
+ headers: {
1052
+ authorization: string;
1053
+ };
1054
+ }, {
1055
+ params: {
1056
+ contactId: string;
1057
+ };
1058
+ headers: {
1059
+ authorization: string;
1060
+ };
1061
+ }>;
1062
+ export declare const setPrimaryContactSchema: z.ZodObject<{
1063
+ params: z.ZodObject<{
1064
+ contactId: z.ZodString;
1065
+ }, "strip", z.ZodTypeAny, {
1066
+ contactId: string;
1067
+ }, {
1068
+ contactId: string;
1069
+ }>;
1070
+ headers: z.ZodObject<{
1071
+ authorization: z.ZodString;
1072
+ }, "strip", z.ZodTypeAny, {
1073
+ authorization: string;
1074
+ }, {
1075
+ authorization: string;
1076
+ }>;
1077
+ }, "strip", z.ZodTypeAny, {
1078
+ params: {
1079
+ contactId: string;
1080
+ };
1081
+ headers: {
1082
+ authorization: string;
1083
+ };
1084
+ }, {
1085
+ params: {
1086
+ contactId: string;
1087
+ };
1088
+ headers: {
1089
+ authorization: string;
948
1090
  };
949
1091
  }>;
950
1092
  export type CreateUserInput = z.infer<typeof createUserSchema>;
@@ -958,3 +1100,9 @@ export type CreateRiderInput = z.infer<typeof createRiderSchema>;
958
1100
  export type UpdateRiderProfileInput = z.infer<typeof updateRiderProfileSchema>;
959
1101
  export type DeactivateAccountInput = z.infer<typeof deactivateAccountSchema>;
960
1102
  export type DeleteAccountInput = z.infer<typeof deleteAccountSchema>;
1103
+ export type UpdateProfileInput = z.infer<typeof updateProfileSchema>;
1104
+ export type AddContactInput = z.infer<typeof addContactSchema>;
1105
+ export type VerifyContactInput = z.infer<typeof verifyContactSchema>;
1106
+ export type ConfirmVerificationInput = z.infer<typeof confirmVerificationSchema>;
1107
+ export type DeleteContactInput = z.infer<typeof deleteContactSchema>;
1108
+ export type SetPrimaryContactInput = z.infer<typeof setPrimaryContactSchema>;