vr-commons 1.0.112 → 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,10 +25,9 @@ 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
- email?: string | null | undefined;
29
31
  password?: string | undefined;
30
32
  plateNumber?: string | null | undefined;
31
33
  }, {
@@ -35,10 +37,9 @@ 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
- email?: string | null | undefined;
42
43
  password?: string | undefined;
43
44
  plateNumber?: string | null | undefined;
44
45
  }>, {
@@ -48,10 +49,9 @@ 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
- email?: string | null | undefined;
55
55
  password?: string | undefined;
56
56
  plateNumber?: string | null | undefined;
57
57
  }, {
@@ -61,10 +61,9 @@ 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
- email?: string | null | undefined;
68
67
  password?: string | undefined;
69
68
  plateNumber?: string | null | undefined;
70
69
  }>;
@@ -83,10 +82,9 @@ 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
- email?: string | null | undefined;
90
88
  password?: string | undefined;
91
89
  plateNumber?: string | null | undefined;
92
90
  };
@@ -101,10 +99,9 @@ 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
- email?: string | null | undefined;
108
105
  password?: string | undefined;
109
106
  plateNumber?: string | null | undefined;
110
107
  };
@@ -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"]>>;
@@ -167,7 +162,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
167
162
  }, "strip", z.ZodTypeAny, {
168
163
  firstName?: string | undefined;
169
164
  lastName?: string | undefined;
170
- email?: string | null | undefined;
171
165
  password?: string | undefined;
172
166
  plateNumber?: string | null | undefined;
173
167
  gender?: "male" | "female" | undefined;
@@ -176,12 +170,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
176
170
  birthYear?: number | undefined;
177
171
  isActive?: boolean | undefined;
178
172
  isDeactivated?: boolean | undefined;
179
- phoneNumber?: string | undefined;
180
- isSuspended?: boolean | undefined;
173
+ contactValue?: string | undefined;
181
174
  }, {
182
175
  firstName?: string | undefined;
183
176
  lastName?: string | undefined;
184
- email?: string | null | undefined;
185
177
  password?: string | undefined;
186
178
  plateNumber?: string | null | undefined;
187
179
  gender?: "male" | "female" | undefined;
@@ -190,12 +182,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
190
182
  birthYear?: number | undefined;
191
183
  isActive?: boolean | undefined;
192
184
  isDeactivated?: boolean | undefined;
193
- phoneNumber?: string | undefined;
194
- isSuspended?: boolean | undefined;
185
+ contactValue?: string | undefined;
195
186
  }>, {
196
187
  firstName?: string | undefined;
197
188
  lastName?: string | undefined;
198
- email?: string | null | undefined;
199
189
  password?: string | undefined;
200
190
  plateNumber?: string | null | undefined;
201
191
  gender?: "male" | "female" | undefined;
@@ -204,12 +194,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
204
194
  birthYear?: number | undefined;
205
195
  isActive?: boolean | undefined;
206
196
  isDeactivated?: boolean | undefined;
207
- phoneNumber?: string | undefined;
208
- isSuspended?: boolean | undefined;
197
+ contactValue?: string | undefined;
209
198
  }, {
210
199
  firstName?: string | undefined;
211
200
  lastName?: string | undefined;
212
- email?: string | null | undefined;
213
201
  password?: string | undefined;
214
202
  plateNumber?: string | null | undefined;
215
203
  gender?: "male" | "female" | undefined;
@@ -218,12 +206,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
218
206
  birthYear?: number | undefined;
219
207
  isActive?: boolean | undefined;
220
208
  isDeactivated?: boolean | undefined;
221
- phoneNumber?: string | undefined;
222
- isSuspended?: boolean | undefined;
209
+ contactValue?: string | undefined;
223
210
  }>, {
224
211
  firstName?: string | undefined;
225
212
  lastName?: string | undefined;
226
- email?: string | null | undefined;
227
213
  password?: string | undefined;
228
214
  plateNumber?: string | null | undefined;
229
215
  gender?: "male" | "female" | undefined;
@@ -232,12 +218,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
232
218
  birthYear?: number | undefined;
233
219
  isActive?: boolean | undefined;
234
220
  isDeactivated?: boolean | undefined;
235
- phoneNumber?: string | undefined;
236
- isSuspended?: boolean | undefined;
221
+ contactValue?: string | undefined;
237
222
  }, {
238
223
  firstName?: string | undefined;
239
224
  lastName?: string | undefined;
240
- email?: string | null | undefined;
241
225
  password?: string | undefined;
242
226
  plateNumber?: string | null | undefined;
243
227
  gender?: "male" | "female" | undefined;
@@ -246,8 +230,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
246
230
  birthYear?: number | undefined;
247
231
  isActive?: boolean | undefined;
248
232
  isDeactivated?: boolean | undefined;
249
- phoneNumber?: string | undefined;
250
- isSuspended?: boolean | undefined;
233
+ contactValue?: string | undefined;
251
234
  }>;
252
235
  headers: z.ZodObject<{
253
236
  authorization: z.ZodString;
@@ -263,7 +246,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
263
246
  body: {
264
247
  firstName?: string | undefined;
265
248
  lastName?: string | undefined;
266
- email?: string | null | undefined;
267
249
  password?: string | undefined;
268
250
  plateNumber?: string | null | undefined;
269
251
  gender?: "male" | "female" | undefined;
@@ -272,8 +254,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
272
254
  birthYear?: number | undefined;
273
255
  isActive?: boolean | undefined;
274
256
  isDeactivated?: boolean | undefined;
275
- phoneNumber?: string | undefined;
276
- isSuspended?: boolean | undefined;
257
+ contactValue?: string | undefined;
277
258
  };
278
259
  headers: {
279
260
  authorization: string;
@@ -285,7 +266,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
285
266
  body: {
286
267
  firstName?: string | undefined;
287
268
  lastName?: string | undefined;
288
- email?: string | null | undefined;
289
269
  password?: string | undefined;
290
270
  plateNumber?: string | null | undefined;
291
271
  gender?: "male" | "female" | undefined;
@@ -294,8 +274,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
294
274
  birthYear?: number | undefined;
295
275
  isActive?: boolean | undefined;
296
276
  isDeactivated?: boolean | undefined;
297
- phoneNumber?: string | undefined;
298
- isSuspended?: boolean | undefined;
277
+ contactValue?: string | undefined;
299
278
  };
300
279
  headers: {
301
280
  authorization: string;
@@ -307,38 +286,38 @@ 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>;
316
295
  sortBy: z.ZodDefault<z.ZodEnum<["firstName", "lastLoginAt", "createdAt", "gender"]>>;
317
296
  order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
318
297
  }, "strip", z.ZodTypeAny, {
319
- sortBy: "createdAt" | "firstName" | "gender" | "lastLoginAt";
320
298
  order: "asc" | "desc";
321
- page?: number | undefined;
322
- limit?: number | undefined;
299
+ sortBy: "firstName" | "gender" | "lastLoginAt" | "createdAt";
323
300
  search?: string | undefined;
301
+ limit?: number | undefined;
324
302
  gender?: "male" | "female" | undefined;
325
303
  isActive?: boolean | undefined;
326
- role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
327
- isBanned?: boolean | undefined;
328
- isSuspended?: boolean | undefined;
304
+ isDeactivated?: boolean | undefined;
305
+ role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
306
+ page?: number | undefined;
307
+ contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
329
308
  startDate?: string | undefined;
330
309
  endDate?: string | undefined;
331
310
  }, {
332
- page?: string | undefined;
333
- limit?: string | undefined;
334
311
  search?: string | undefined;
335
- sortBy?: "createdAt" | "firstName" | "gender" | "lastLoginAt" | undefined;
336
312
  order?: "asc" | "desc" | undefined;
313
+ limit?: string | undefined;
337
314
  gender?: "male" | "female" | undefined;
338
315
  isActive?: "true" | "false" | undefined;
339
- role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
340
- isBanned?: "true" | "false" | undefined;
341
- isSuspended?: "true" | "false" | undefined;
316
+ isDeactivated?: "true" | "false" | undefined;
317
+ role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
318
+ page?: string | undefined;
319
+ contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
320
+ sortBy?: "firstName" | "gender" | "lastLoginAt" | "createdAt" | undefined;
342
321
  startDate?: string | undefined;
343
322
  endDate?: string | undefined;
344
323
  }>;
@@ -351,16 +330,16 @@ export declare const getAllUsersSchema: z.ZodObject<{
351
330
  }>;
352
331
  }, "strip", z.ZodTypeAny, {
353
332
  query: {
354
- sortBy: "createdAt" | "firstName" | "gender" | "lastLoginAt";
355
333
  order: "asc" | "desc";
356
- page?: number | undefined;
357
- limit?: number | undefined;
334
+ sortBy: "firstName" | "gender" | "lastLoginAt" | "createdAt";
358
335
  search?: string | undefined;
336
+ limit?: number | undefined;
359
337
  gender?: "male" | "female" | undefined;
360
338
  isActive?: boolean | undefined;
361
- role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
362
- isBanned?: boolean | undefined;
363
- isSuspended?: boolean | undefined;
339
+ isDeactivated?: boolean | undefined;
340
+ role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
341
+ page?: number | undefined;
342
+ contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
364
343
  startDate?: string | undefined;
365
344
  endDate?: string | undefined;
366
345
  };
@@ -369,16 +348,16 @@ export declare const getAllUsersSchema: z.ZodObject<{
369
348
  };
370
349
  }, {
371
350
  query: {
372
- page?: string | undefined;
373
- limit?: string | undefined;
374
351
  search?: string | undefined;
375
- sortBy?: "createdAt" | "firstName" | "gender" | "lastLoginAt" | undefined;
376
352
  order?: "asc" | "desc" | undefined;
353
+ limit?: string | undefined;
377
354
  gender?: "male" | "female" | undefined;
378
355
  isActive?: "true" | "false" | undefined;
379
- role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
380
- isBanned?: "true" | "false" | undefined;
381
- isSuspended?: "true" | "false" | undefined;
356
+ isDeactivated?: "true" | "false" | undefined;
357
+ role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
358
+ page?: string | undefined;
359
+ contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
360
+ sortBy?: "firstName" | "gender" | "lastLoginAt" | "createdAt" | undefined;
382
361
  startDate?: string | undefined;
383
362
  endDate?: string | undefined;
384
363
  };
@@ -416,9 +395,8 @@ 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,9 +410,8 @@ 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
- email?: string | null | undefined;
438
415
  password?: string | null | undefined;
439
416
  plateNumber?: string | null | undefined;
440
417
  }, {
@@ -444,9 +421,8 @@ 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
- email?: string | null | undefined;
450
426
  password?: string | null | undefined;
451
427
  plateNumber?: string | null | undefined;
452
428
  }>, {
@@ -456,9 +432,8 @@ 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
- email?: string | null | undefined;
462
437
  password?: string | null | undefined;
463
438
  plateNumber?: string | null | undefined;
464
439
  }, {
@@ -468,9 +443,8 @@ 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
- email?: string | null | undefined;
474
448
  password?: string | null | undefined;
475
449
  plateNumber?: string | null | undefined;
476
450
  }>;
@@ -483,9 +457,8 @@ 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
- email?: string | null | undefined;
489
462
  password?: string | null | undefined;
490
463
  plateNumber?: string | null | undefined;
491
464
  };
@@ -498,9 +471,8 @@ 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
- email?: string | null | undefined;
504
476
  password?: string | null | undefined;
505
477
  plateNumber?: string | null | undefined;
506
478
  };
@@ -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,7 +637,7 @@ 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
642
  params?: {} | undefined;
662
643
  query?: {} | undefined;
@@ -670,7 +651,7 @@ 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
656
  params?: {} | undefined;
676
657
  query?: {} | undefined;
@@ -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<{
@@ -775,7 +756,7 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
775
756
  birthDate?: number | undefined;
776
757
  birthMonth?: number | undefined;
777
758
  birthYear?: number | undefined;
778
- phoneNumber?: string | undefined;
759
+ contactValue?: string | undefined;
779
760
  };
780
761
  headers: {
781
762
  authorization: string;
@@ -794,7 +775,7 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
794
775
  birthDate?: number | undefined;
795
776
  birthMonth?: number | undefined;
796
777
  birthYear?: number | undefined;
797
- phoneNumber?: string | undefined;
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>;
@@ -890,61 +870,223 @@ export declare const updateProfileSchema: z.ZodObject<{
890
870
  }, "strict", z.ZodTypeAny, {
891
871
  firstName?: string | undefined;
892
872
  lastName?: string | undefined;
893
- email?: string | undefined;
894
873
  gender?: "male" | "female" | undefined;
895
874
  birthDate?: number | undefined;
896
875
  birthMonth?: number | undefined;
897
876
  birthYear?: number | undefined;
898
- phoneNumber?: string | undefined;
877
+ contactValue?: string | undefined;
899
878
  }, {
900
879
  firstName?: string | undefined;
901
880
  lastName?: string | undefined;
902
- email?: string | undefined;
903
881
  gender?: "male" | "female" | undefined;
904
882
  birthDate?: number | undefined;
905
883
  birthMonth?: number | undefined;
906
884
  birthYear?: number | undefined;
907
- phoneNumber?: string | undefined;
885
+ contactValue?: string | undefined;
908
886
  }>, {
909
887
  firstName?: string | undefined;
910
888
  lastName?: string | undefined;
911
- email?: string | undefined;
912
889
  gender?: "male" | "female" | undefined;
913
890
  birthDate?: number | undefined;
914
891
  birthMonth?: number | undefined;
915
892
  birthYear?: number | undefined;
916
- phoneNumber?: string | undefined;
893
+ contactValue?: string | undefined;
917
894
  }, {
918
895
  firstName?: string | undefined;
919
896
  lastName?: string | undefined;
920
- email?: string | undefined;
921
897
  gender?: "male" | "female" | undefined;
922
898
  birthDate?: number | undefined;
923
899
  birthMonth?: number | undefined;
924
900
  birthYear?: number | undefined;
925
- phoneNumber?: string | undefined;
901
+ contactValue?: string | undefined;
926
902
  }>;
927
903
  }, "strip", z.ZodTypeAny, {
928
904
  body: {
929
905
  firstName?: string | undefined;
930
906
  lastName?: string | undefined;
931
- email?: string | undefined;
932
907
  gender?: "male" | "female" | undefined;
933
908
  birthDate?: number | undefined;
934
909
  birthMonth?: number | undefined;
935
910
  birthYear?: number | undefined;
936
- phoneNumber?: string | undefined;
911
+ contactValue?: string | undefined;
937
912
  };
938
913
  }, {
939
914
  body: {
940
915
  firstName?: string | undefined;
941
916
  lastName?: string | undefined;
942
- email?: string | undefined;
943
917
  gender?: "male" | "female" | undefined;
944
918
  birthDate?: number | undefined;
945
919
  birthMonth?: number | undefined;
946
920
  birthYear?: number | 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>;