vr-commons 1.0.186 → 1.0.188

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.
@@ -16,46 +16,46 @@ 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, {
52
52
  body: {
53
+ contactValue: string;
53
54
  jacketId: string;
54
55
  gender: "male" | "female";
55
56
  birthDate: number;
56
57
  birthMonth: number;
57
58
  birthYear: number;
58
- contactValue: string;
59
59
  plateNumber?: string | undefined;
60
60
  };
61
61
  params: {
@@ -63,12 +63,12 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
63
63
  };
64
64
  }, {
65
65
  body: {
66
+ contactValue: string;
66
67
  jacketId: string;
67
68
  gender: "male" | "female";
68
69
  birthDate: number;
69
70
  birthMonth: number;
70
71
  birthYear: number;
71
- contactValue: string;
72
72
  plateNumber?: string | undefined;
73
73
  };
74
74
  params: {
@@ -94,6 +94,7 @@ export declare const updateRiderSchema: z.ZodObject<{
94
94
  birthMonth: z.ZodOptional<z.ZodNumber>;
95
95
  birthYear: z.ZodOptional<z.ZodNumber>;
96
96
  }, "strip", z.ZodTypeAny, {
97
+ contactValue?: string | undefined;
97
98
  firstName?: string | undefined;
98
99
  lastName?: string | undefined;
99
100
  jacketId?: string | undefined;
@@ -102,8 +103,8 @@ export declare const updateRiderSchema: z.ZodObject<{
102
103
  birthDate?: number | undefined;
103
104
  birthMonth?: number | undefined;
104
105
  birthYear?: number | undefined;
105
- contactValue?: string | undefined;
106
106
  }, {
107
+ contactValue?: string | undefined;
107
108
  firstName?: string | undefined;
108
109
  lastName?: string | undefined;
109
110
  jacketId?: string | undefined;
@@ -112,8 +113,8 @@ export declare const updateRiderSchema: z.ZodObject<{
112
113
  birthDate?: number | undefined;
113
114
  birthMonth?: number | undefined;
114
115
  birthYear?: number | undefined;
115
- contactValue?: string | undefined;
116
116
  }>, {
117
+ contactValue?: string | undefined;
117
118
  firstName?: string | undefined;
118
119
  lastName?: string | undefined;
119
120
  jacketId?: string | undefined;
@@ -122,8 +123,8 @@ export declare const updateRiderSchema: z.ZodObject<{
122
123
  birthDate?: number | undefined;
123
124
  birthMonth?: number | undefined;
124
125
  birthYear?: number | undefined;
125
- contactValue?: string | undefined;
126
126
  }, {
127
+ contactValue?: string | undefined;
127
128
  firstName?: string | undefined;
128
129
  lastName?: string | undefined;
129
130
  jacketId?: string | undefined;
@@ -132,10 +133,10 @@ export declare const updateRiderSchema: z.ZodObject<{
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
  body: {
139
+ contactValue?: string | undefined;
139
140
  firstName?: string | undefined;
140
141
  lastName?: string | undefined;
141
142
  jacketId?: string | undefined;
@@ -144,13 +145,13 @@ export declare const updateRiderSchema: z.ZodObject<{
144
145
  birthDate?: number | undefined;
145
146
  birthMonth?: number | undefined;
146
147
  birthYear?: number | undefined;
147
- contactValue?: string | undefined;
148
148
  };
149
149
  params: {
150
150
  userId: string;
151
151
  };
152
152
  }, {
153
153
  body: {
154
+ contactValue?: string | undefined;
154
155
  firstName?: string | undefined;
155
156
  lastName?: string | undefined;
156
157
  jacketId?: string | undefined;
@@ -159,7 +160,6 @@ export declare const updateRiderSchema: z.ZodObject<{
159
160
  birthDate?: number | undefined;
160
161
  birthMonth?: number | undefined;
161
162
  birthYear?: number | undefined;
162
- contactValue?: string | undefined;
163
163
  };
164
164
  params: {
165
165
  userId: string;
@@ -212,53 +212,53 @@ 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
+ role?: string | undefined;
215
216
  search?: string | undefined;
216
217
  limit?: number | undefined;
217
218
  gender?: "male" | "female" | undefined;
218
219
  isActive?: "true" | "false" | undefined;
219
220
  isDeactivated?: "true" | "false" | undefined;
220
- role?: string | undefined;
221
221
  page?: number | undefined;
222
222
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
223
- sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
224
- sortOrder?: "DESC" | "ASC" | undefined;
223
+ sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
224
+ sortOrder?: "ASC" | "DESC" | undefined;
225
225
  }, {
226
+ role?: string | undefined;
226
227
  search?: string | undefined;
227
228
  limit?: string | undefined;
228
229
  gender?: "male" | "female" | undefined;
229
230
  isActive?: "true" | "false" | undefined;
230
231
  isDeactivated?: "true" | "false" | undefined;
231
- role?: string | undefined;
232
232
  page?: string | undefined;
233
233
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
234
- sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
235
- sortOrder?: "DESC" | "ASC" | undefined;
234
+ sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
235
+ sortOrder?: "ASC" | "DESC" | undefined;
236
236
  }>;
237
237
  }, "strip", z.ZodTypeAny, {
238
238
  query: {
239
+ role?: string | undefined;
239
240
  search?: string | undefined;
240
241
  limit?: number | undefined;
241
242
  gender?: "male" | "female" | undefined;
242
243
  isActive?: "true" | "false" | undefined;
243
244
  isDeactivated?: "true" | "false" | undefined;
244
- role?: string | undefined;
245
245
  page?: number | undefined;
246
246
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
247
- sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
248
- sortOrder?: "DESC" | "ASC" | undefined;
247
+ sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
248
+ sortOrder?: "ASC" | "DESC" | undefined;
249
249
  };
250
250
  }, {
251
251
  query: {
252
+ role?: string | undefined;
252
253
  search?: string | undefined;
253
254
  limit?: string | undefined;
254
255
  gender?: "male" | "female" | undefined;
255
256
  isActive?: "true" | "false" | undefined;
256
257
  isDeactivated?: "true" | "false" | undefined;
257
- role?: string | undefined;
258
258
  page?: string | undefined;
259
259
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
260
- sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
261
- sortOrder?: "DESC" | "ASC" | undefined;
260
+ sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
261
+ sortOrder?: "ASC" | "DESC" | undefined;
262
262
  };
263
263
  }>;
264
264
  export declare const hireAdminSchema: z.ZodObject<{
@@ -273,88 +273,88 @@ export declare const hireAdminSchema: z.ZodObject<{
273
273
  birthMonth: z.ZodNumber;
274
274
  birthYear: z.ZodNumber;
275
275
  }, "strip", z.ZodTypeAny, {
276
+ contactValue: string;
277
+ role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
276
278
  firstName: string;
277
279
  lastName: string;
278
280
  gender: "male" | "female";
279
281
  birthDate: number;
280
282
  birthMonth: number;
281
283
  birthYear: number;
282
- role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
283
- contactValue: string;
284
284
  superAdminPassword?: string | undefined;
285
285
  }, {
286
+ contactValue: string;
287
+ role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
286
288
  firstName: string;
287
289
  lastName: string;
288
290
  gender: "male" | "female";
289
291
  birthDate: number;
290
292
  birthMonth: number;
291
293
  birthYear: number;
292
- role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
293
- contactValue: string;
294
294
  superAdminPassword?: string | undefined;
295
295
  }>, {
296
+ contactValue: string;
297
+ role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
296
298
  firstName: string;
297
299
  lastName: string;
298
300
  gender: "male" | "female";
299
301
  birthDate: number;
300
302
  birthMonth: number;
301
303
  birthYear: number;
302
- role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
303
- contactValue: string;
304
304
  superAdminPassword?: string | undefined;
305
305
  }, {
306
+ contactValue: string;
307
+ role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
306
308
  firstName: string;
307
309
  lastName: string;
308
310
  gender: "male" | "female";
309
311
  birthDate: number;
310
312
  birthMonth: number;
311
313
  birthYear: number;
312
- role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
313
- contactValue: string;
314
314
  superAdminPassword?: string | undefined;
315
315
  }>, {
316
+ contactValue: string;
317
+ role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
316
318
  firstName: string;
317
319
  lastName: string;
318
320
  gender: "male" | "female";
319
321
  birthDate: number;
320
322
  birthMonth: number;
321
323
  birthYear: number;
322
- role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
323
- contactValue: string;
324
324
  superAdminPassword?: string | undefined;
325
325
  }, {
326
+ contactValue: string;
327
+ role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
326
328
  firstName: string;
327
329
  lastName: string;
328
330
  gender: "male" | "female";
329
331
  birthDate: number;
330
332
  birthMonth: number;
331
333
  birthYear: number;
332
- role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
333
- contactValue: string;
334
334
  superAdminPassword?: string | undefined;
335
335
  }>;
336
336
  }, "strip", z.ZodTypeAny, {
337
337
  body: {
338
+ contactValue: string;
339
+ role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
338
340
  firstName: string;
339
341
  lastName: string;
340
342
  gender: "male" | "female";
341
343
  birthDate: number;
342
344
  birthMonth: number;
343
345
  birthYear: number;
344
- role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
345
- contactValue: string;
346
346
  superAdminPassword?: string | undefined;
347
347
  };
348
348
  }, {
349
349
  body: {
350
+ contactValue: string;
351
+ role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
350
352
  firstName: string;
351
353
  lastName: string;
352
354
  gender: "male" | "female";
353
355
  birthDate: number;
354
356
  birthMonth: number;
355
357
  birthYear: number;
356
- role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
357
- contactValue: string;
358
358
  superAdminPassword?: string | undefined;
359
359
  };
360
360
  }>;
@@ -404,20 +404,20 @@ export declare const demoteAdminSchema: z.ZodObject<{
404
404
  body: z.ZodObject<{
405
405
  targetRole: z.ZodEnum<["AGENT", "ADMIN"]>;
406
406
  }, "strip", z.ZodTypeAny, {
407
- targetRole: "ADMIN" | "AGENT";
407
+ targetRole: "AGENT" | "ADMIN";
408
408
  }, {
409
- targetRole: "ADMIN" | "AGENT";
409
+ targetRole: "AGENT" | "ADMIN";
410
410
  }>;
411
411
  }, "strip", z.ZodTypeAny, {
412
412
  body: {
413
- targetRole: "ADMIN" | "AGENT";
413
+ targetRole: "AGENT" | "ADMIN";
414
414
  };
415
415
  params: {
416
416
  userId: string;
417
417
  };
418
418
  }, {
419
419
  body: {
420
- targetRole: "ADMIN" | "AGENT";
420
+ targetRole: "AGENT" | "ADMIN";
421
421
  };
422
422
  params: {
423
423
  userId: string;
@@ -470,60 +470,60 @@ export declare const updateAdminSchema: z.ZodObject<{
470
470
  birthMonth: z.ZodOptional<z.ZodNumber>;
471
471
  birthYear: z.ZodOptional<z.ZodNumber>;
472
472
  }, "strip", z.ZodTypeAny, {
473
+ contactValue?: string | undefined;
473
474
  firstName?: string | undefined;
474
475
  lastName?: string | undefined;
475
476
  gender?: "male" | "female" | undefined;
476
477
  birthDate?: number | undefined;
477
478
  birthMonth?: number | undefined;
478
479
  birthYear?: number | undefined;
479
- contactValue?: string | undefined;
480
480
  }, {
481
+ contactValue?: string | undefined;
481
482
  firstName?: string | undefined;
482
483
  lastName?: string | undefined;
483
484
  gender?: "male" | "female" | undefined;
484
485
  birthDate?: number | undefined;
485
486
  birthMonth?: number | undefined;
486
487
  birthYear?: number | undefined;
487
- contactValue?: string | undefined;
488
488
  }>, {
489
+ contactValue?: string | undefined;
489
490
  firstName?: string | undefined;
490
491
  lastName?: string | undefined;
491
492
  gender?: "male" | "female" | undefined;
492
493
  birthDate?: number | undefined;
493
494
  birthMonth?: number | undefined;
494
495
  birthYear?: number | undefined;
495
- contactValue?: string | undefined;
496
496
  }, {
497
+ contactValue?: string | undefined;
497
498
  firstName?: string | undefined;
498
499
  lastName?: string | undefined;
499
500
  gender?: "male" | "female" | undefined;
500
501
  birthDate?: number | undefined;
501
502
  birthMonth?: number | undefined;
502
503
  birthYear?: number | undefined;
503
- contactValue?: string | undefined;
504
504
  }>;
505
505
  }, "strip", z.ZodTypeAny, {
506
506
  body: {
507
+ contactValue?: string | undefined;
507
508
  firstName?: string | undefined;
508
509
  lastName?: string | undefined;
509
510
  gender?: "male" | "female" | undefined;
510
511
  birthDate?: number | undefined;
511
512
  birthMonth?: number | undefined;
512
513
  birthYear?: number | undefined;
513
- contactValue?: string | undefined;
514
514
  };
515
515
  params: {
516
516
  userId: string;
517
517
  };
518
518
  }, {
519
519
  body: {
520
+ contactValue?: string | undefined;
520
521
  firstName?: string | undefined;
521
522
  lastName?: string | undefined;
522
523
  gender?: "male" | "female" | undefined;
523
524
  birthDate?: number | undefined;
524
525
  birthMonth?: number | undefined;
525
526
  birthYear?: number | undefined;
526
- contactValue?: string | undefined;
527
527
  };
528
528
  params: {
529
529
  userId: string;
@@ -280,21 +280,21 @@ export declare const loginSchema: z.ZodObject<{
280
280
  contactValue: z.ZodEffects<z.ZodString, string, string>;
281
281
  password: z.ZodString;
282
282
  }, "strip", z.ZodTypeAny, {
283
- password: string;
284
283
  contactValue: string;
285
- }, {
286
284
  password: string;
285
+ }, {
287
286
  contactValue: string;
287
+ password: string;
288
288
  }>;
289
289
  }, "strip", z.ZodTypeAny, {
290
290
  body: {
291
- password: string;
292
291
  contactValue: string;
292
+ password: string;
293
293
  };
294
294
  }, {
295
295
  body: {
296
- password: string;
297
296
  contactValue: string;
297
+ password: string;
298
298
  };
299
299
  }>;
300
300
  export declare const forgotPasswordSchema: z.ZodObject<{
@@ -367,8 +367,8 @@ export declare const registerRiderSchema: z.ZodObject<{
367
367
  birthMonth: number;
368
368
  birthYear: number;
369
369
  phoneNumber: string;
370
- jacketId?: string | null | undefined;
371
370
  password?: string | undefined;
371
+ jacketId?: string | null | undefined;
372
372
  plateNumber?: string | null | undefined;
373
373
  }, {
374
374
  firstName: string;
@@ -378,8 +378,8 @@ export declare const registerRiderSchema: z.ZodObject<{
378
378
  birthMonth: number;
379
379
  birthYear: number;
380
380
  phoneNumber: string;
381
- jacketId?: string | null | undefined;
382
381
  password?: string | undefined;
382
+ jacketId?: string | null | undefined;
383
383
  plateNumber?: string | null | undefined;
384
384
  }>, {
385
385
  firstName: string;
@@ -389,8 +389,8 @@ export declare const registerRiderSchema: z.ZodObject<{
389
389
  birthMonth: number;
390
390
  birthYear: number;
391
391
  phoneNumber: string;
392
- jacketId?: string | null | undefined;
393
392
  password?: string | undefined;
393
+ jacketId?: string | null | undefined;
394
394
  plateNumber?: string | null | undefined;
395
395
  }, {
396
396
  firstName: string;
@@ -400,8 +400,8 @@ export declare const registerRiderSchema: z.ZodObject<{
400
400
  birthMonth: number;
401
401
  birthYear: number;
402
402
  phoneNumber: string;
403
- jacketId?: string | null | undefined;
404
403
  password?: string | undefined;
404
+ jacketId?: string | null | undefined;
405
405
  plateNumber?: string | null | undefined;
406
406
  }>;
407
407
  }, "strip", z.ZodTypeAny, {
@@ -413,8 +413,8 @@ export declare const registerRiderSchema: z.ZodObject<{
413
413
  birthMonth: number;
414
414
  birthYear: number;
415
415
  phoneNumber: string;
416
- jacketId?: string | null | undefined;
417
416
  password?: string | undefined;
417
+ jacketId?: string | null | undefined;
418
418
  plateNumber?: string | null | undefined;
419
419
  };
420
420
  }, {
@@ -426,8 +426,8 @@ export declare const registerRiderSchema: z.ZodObject<{
426
426
  birthMonth: number;
427
427
  birthYear: number;
428
428
  phoneNumber: string;
429
- jacketId?: string | null | undefined;
430
429
  password?: string | undefined;
430
+ jacketId?: string | null | undefined;
431
431
  plateNumber?: string | null | undefined;
432
432
  };
433
433
  }>;