vr-commons 1.0.138 → 1.0.140

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.
@@ -241,9 +241,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
241
241
  authorization: string;
242
242
  }>;
243
243
  }, "strip", z.ZodTypeAny, {
244
- params: {
245
- userId: string;
246
- };
247
244
  body: {
248
245
  firstName?: string | undefined;
249
246
  lastName?: string | undefined;
@@ -257,13 +254,13 @@ export declare const updateUserProfileSchema: z.ZodObject<{
257
254
  isDeactivated?: boolean | undefined;
258
255
  contactValue?: string | undefined;
259
256
  };
257
+ params: {
258
+ userId: string;
259
+ };
260
260
  headers: {
261
261
  authorization: string;
262
262
  };
263
263
  }, {
264
- params: {
265
- userId: string;
266
- };
267
264
  body: {
268
265
  firstName?: string | undefined;
269
266
  lastName?: string | undefined;
@@ -277,6 +274,9 @@ export declare const updateUserProfileSchema: z.ZodObject<{
277
274
  isDeactivated?: boolean | undefined;
278
275
  contactValue?: string | undefined;
279
276
  };
277
+ params: {
278
+ userId: string;
279
+ };
280
280
  headers: {
281
281
  authorization: string;
282
282
  };
@@ -298,25 +298,25 @@ export declare const getAllUsersSchema: z.ZodObject<{
298
298
  }, "strip", z.ZodTypeAny, {
299
299
  order: "asc" | "desc";
300
300
  sortBy: "firstName" | "gender" | "lastLoginAt" | "createdAt";
301
- page?: number | undefined;
302
- limit?: number | undefined;
303
301
  search?: string | undefined;
302
+ limit?: number | undefined;
304
303
  gender?: "male" | "female" | undefined;
305
304
  isActive?: boolean | undefined;
306
305
  isDeactivated?: boolean | undefined;
307
306
  role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
307
+ page?: number | undefined;
308
308
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
309
309
  startDate?: string | undefined;
310
310
  endDate?: string | undefined;
311
311
  }, {
312
- page?: string | undefined;
313
- limit?: string | undefined;
314
312
  search?: string | undefined;
315
313
  order?: "asc" | "desc" | undefined;
314
+ limit?: string | undefined;
316
315
  gender?: "male" | "female" | undefined;
317
316
  isActive?: "true" | "false" | undefined;
318
317
  isDeactivated?: "true" | "false" | undefined;
319
318
  role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
319
+ page?: string | undefined;
320
320
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
321
321
  startDate?: string | undefined;
322
322
  endDate?: string | undefined;
@@ -333,13 +333,13 @@ export declare const getAllUsersSchema: z.ZodObject<{
333
333
  query: {
334
334
  order: "asc" | "desc";
335
335
  sortBy: "firstName" | "gender" | "lastLoginAt" | "createdAt";
336
- page?: number | undefined;
337
- limit?: number | undefined;
338
336
  search?: string | undefined;
337
+ limit?: number | undefined;
339
338
  gender?: "male" | "female" | undefined;
340
339
  isActive?: boolean | undefined;
341
340
  isDeactivated?: boolean | undefined;
342
341
  role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
342
+ page?: number | undefined;
343
343
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
344
344
  startDate?: string | undefined;
345
345
  endDate?: string | undefined;
@@ -349,14 +349,14 @@ export declare const getAllUsersSchema: z.ZodObject<{
349
349
  };
350
350
  }, {
351
351
  query: {
352
- page?: string | undefined;
353
- limit?: string | undefined;
354
352
  search?: string | undefined;
355
353
  order?: "asc" | "desc" | undefined;
354
+ limit?: string | undefined;
356
355
  gender?: "male" | "female" | undefined;
357
356
  isActive?: "true" | "false" | undefined;
358
357
  isDeactivated?: "true" | "false" | undefined;
359
358
  role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
359
+ page?: string | undefined;
360
360
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
361
361
  startDate?: string | undefined;
362
362
  endDate?: string | undefined;
@@ -381,16 +381,16 @@ export declare const viewProfileSchema: z.ZodObject<{
381
381
  headers: {
382
382
  authorization: string;
383
383
  };
384
- params?: {} | undefined;
385
- query?: {} | undefined;
386
384
  body?: {} | undefined;
385
+ query?: {} | undefined;
386
+ params?: {} | undefined;
387
387
  }, {
388
388
  headers: {
389
389
  authorization: string;
390
390
  };
391
- params?: {} | undefined;
392
- query?: {} | undefined;
393
391
  body?: {} | undefined;
392
+ query?: {} | undefined;
393
+ params?: {} | undefined;
394
394
  }>;
395
395
  export declare const passengerSignupSchema: z.ZodObject<{
396
396
  body: z.ZodEffects<z.ZodObject<{
@@ -640,8 +640,8 @@ export declare const createRiderSchema: z.ZodObject<{
640
640
  birthYear: number;
641
641
  contactValue: string;
642
642
  };
643
- params?: {} | undefined;
644
643
  query?: {} | undefined;
644
+ params?: {} | undefined;
645
645
  }, {
646
646
  body: {
647
647
  firstName: string;
@@ -654,8 +654,8 @@ export declare const createRiderSchema: z.ZodObject<{
654
654
  birthYear: number;
655
655
  contactValue: string;
656
656
  };
657
- params?: {} | undefined;
658
657
  query?: {} | undefined;
658
+ params?: {} | undefined;
659
659
  }>;
660
660
  export declare const updateRiderProfileSchema: z.ZodObject<{
661
661
  params: z.ZodObject<{
@@ -745,9 +745,6 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
745
745
  authorization: string;
746
746
  }>;
747
747
  }, "strip", z.ZodTypeAny, {
748
- params: {
749
- id: string;
750
- };
751
748
  body: {
752
749
  firstName?: string | undefined;
753
750
  lastName?: string | undefined;
@@ -759,14 +756,14 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
759
756
  birthYear?: number | undefined;
760
757
  contactValue?: string | undefined;
761
758
  };
759
+ params: {
760
+ id: string;
761
+ };
762
762
  headers: {
763
763
  authorization: string;
764
764
  };
765
765
  query?: {} | undefined;
766
766
  }, {
767
- params: {
768
- id: string;
769
- };
770
767
  body: {
771
768
  firstName?: string | undefined;
772
769
  lastName?: string | undefined;
@@ -778,6 +775,9 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
778
775
  birthYear?: number | undefined;
779
776
  contactValue?: string | undefined;
780
777
  };
778
+ params: {
779
+ id: string;
780
+ };
781
781
  headers: {
782
782
  authorization: string;
783
783
  };
@@ -1010,22 +1010,22 @@ export declare const confirmVerificationSchema: z.ZodObject<{
1010
1010
  authorization: string;
1011
1011
  }>;
1012
1012
  }, "strip", z.ZodTypeAny, {
1013
- params: {
1014
- contactId: string;
1015
- };
1016
1013
  body: {
1017
1014
  otp: string;
1018
1015
  };
1016
+ params: {
1017
+ contactId: string;
1018
+ };
1019
1019
  headers: {
1020
1020
  authorization: string;
1021
1021
  };
1022
1022
  }, {
1023
- params: {
1024
- contactId: string;
1025
- };
1026
1023
  body: {
1027
1024
  otp: string;
1028
1025
  };
1026
+ params: {
1027
+ contactId: string;
1028
+ };
1029
1029
  headers: {
1030
1030
  authorization: string;
1031
1031
  };
@@ -35,21 +35,21 @@ export declare const getUserSuspensionsSchema: z.ZodObject<{
35
35
  includeResolved?: "true" | "false" | undefined;
36
36
  }>;
37
37
  }, "strip", z.ZodTypeAny, {
38
- params: {
39
- userId: string;
40
- };
41
38
  query: {
42
39
  status?: "active" | "expired" | "revoked" | undefined;
43
40
  includeResolved?: "true" | "false" | undefined;
44
41
  };
45
- }, {
46
42
  params: {
47
43
  userId: string;
48
44
  };
45
+ }, {
49
46
  query: {
50
47
  status?: "active" | "expired" | "revoked" | undefined;
51
48
  includeResolved?: "true" | "false" | undefined;
52
49
  };
50
+ params: {
51
+ userId: string;
52
+ };
53
53
  }>;
54
54
  export declare const createSuspensionSchema: z.ZodObject<{
55
55
  params: z.ZodObject<{
@@ -70,19 +70,19 @@ export declare const createSuspensionSchema: z.ZodObject<{
70
70
  endsAt: string;
71
71
  }>;
72
72
  }, "strip", z.ZodTypeAny, {
73
- params: {
74
- userId: string;
75
- };
76
73
  body: {
77
74
  reason: string;
78
75
  endsAt: string;
79
76
  };
80
- }, {
81
77
  params: {
82
78
  userId: string;
83
79
  };
80
+ }, {
84
81
  body: {
85
82
  reason: string;
86
83
  endsAt: string;
87
84
  };
85
+ params: {
86
+ userId: string;
87
+ };
88
88
  }>;
@@ -49,9 +49,6 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
49
49
  plateNumber?: string | undefined;
50
50
  }>;
51
51
  }, "strip", z.ZodTypeAny, {
52
- params: {
53
- userId: string;
54
- };
55
52
  body: {
56
53
  jacketId: string;
57
54
  gender: "male" | "female";
@@ -61,10 +58,10 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
61
58
  contactValue: string;
62
59
  plateNumber?: string | undefined;
63
60
  };
64
- }, {
65
61
  params: {
66
62
  userId: string;
67
63
  };
64
+ }, {
68
65
  body: {
69
66
  jacketId: string;
70
67
  gender: "male" | "female";
@@ -74,6 +71,9 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
74
71
  contactValue: string;
75
72
  plateNumber?: string | undefined;
76
73
  };
74
+ params: {
75
+ userId: string;
76
+ };
77
77
  }>;
78
78
  export declare const updateRiderSchema: z.ZodObject<{
79
79
  params: z.ZodObject<{
@@ -135,9 +135,6 @@ export declare const updateRiderSchema: z.ZodObject<{
135
135
  contactValue?: string | undefined;
136
136
  }>;
137
137
  }, "strip", z.ZodTypeAny, {
138
- params: {
139
- userId: string;
140
- };
141
138
  body: {
142
139
  firstName?: string | undefined;
143
140
  lastName?: string | undefined;
@@ -149,10 +146,10 @@ export declare const updateRiderSchema: z.ZodObject<{
149
146
  birthYear?: number | undefined;
150
147
  contactValue?: string | undefined;
151
148
  };
152
- }, {
153
149
  params: {
154
150
  userId: string;
155
151
  };
152
+ }, {
156
153
  body: {
157
154
  firstName?: string | undefined;
158
155
  lastName?: string | undefined;
@@ -164,6 +161,9 @@ export declare const updateRiderSchema: z.ZodObject<{
164
161
  birthYear?: number | undefined;
165
162
  contactValue?: string | undefined;
166
163
  };
164
+ params: {
165
+ userId: string;
166
+ };
167
167
  }>;
168
168
  export declare const deleteUserSchema: z.ZodObject<{
169
169
  params: z.ZodObject<{
@@ -212,50 +212,50 @@ 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
- page?: number | undefined;
216
- limit?: number | undefined;
217
215
  search?: string | undefined;
216
+ limit?: number | undefined;
218
217
  gender?: "male" | "female" | undefined;
219
218
  isActive?: "true" | "false" | undefined;
220
219
  isDeactivated?: "true" | "false" | undefined;
221
220
  role?: string | undefined;
221
+ page?: number | undefined;
222
222
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
223
223
  sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
224
224
  sortOrder?: "DESC" | "ASC" | undefined;
225
225
  }, {
226
- page?: string | undefined;
227
- limit?: string | undefined;
228
226
  search?: string | undefined;
227
+ limit?: string | undefined;
229
228
  gender?: "male" | "female" | undefined;
230
229
  isActive?: "true" | "false" | undefined;
231
230
  isDeactivated?: "true" | "false" | undefined;
232
231
  role?: string | undefined;
232
+ page?: string | undefined;
233
233
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
234
234
  sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
235
235
  sortOrder?: "DESC" | "ASC" | undefined;
236
236
  }>;
237
237
  }, "strip", z.ZodTypeAny, {
238
238
  query: {
239
- page?: number | undefined;
240
- limit?: number | undefined;
241
239
  search?: string | undefined;
240
+ limit?: number | undefined;
242
241
  gender?: "male" | "female" | undefined;
243
242
  isActive?: "true" | "false" | undefined;
244
243
  isDeactivated?: "true" | "false" | undefined;
245
244
  role?: string | undefined;
245
+ page?: number | undefined;
246
246
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
247
247
  sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
248
248
  sortOrder?: "DESC" | "ASC" | undefined;
249
249
  };
250
250
  }, {
251
251
  query: {
252
- page?: string | undefined;
253
- limit?: string | undefined;
254
252
  search?: string | undefined;
253
+ limit?: string | undefined;
255
254
  gender?: "male" | "female" | undefined;
256
255
  isActive?: "true" | "false" | undefined;
257
256
  isDeactivated?: "true" | "false" | undefined;
258
257
  role?: string | undefined;
258
+ page?: string | undefined;
259
259
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
260
260
  sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
261
261
  sortOrder?: "DESC" | "ASC" | undefined;
@@ -377,21 +377,21 @@ export declare const promoteAdminSchema: z.ZodObject<{
377
377
  password?: string | undefined;
378
378
  }>;
379
379
  }, "strip", z.ZodTypeAny, {
380
- params: {
381
- userId: string;
382
- };
383
380
  body: {
384
381
  targetRole: "ADMIN" | "SUPER_ADMIN";
385
382
  password?: string | undefined;
386
383
  };
387
- }, {
388
384
  params: {
389
385
  userId: string;
390
386
  };
387
+ }, {
391
388
  body: {
392
389
  targetRole: "ADMIN" | "SUPER_ADMIN";
393
390
  password?: string | undefined;
394
391
  };
392
+ params: {
393
+ userId: string;
394
+ };
395
395
  }>;
396
396
  export declare const demoteAdminSchema: z.ZodObject<{
397
397
  params: z.ZodObject<{
@@ -409,19 +409,19 @@ export declare const demoteAdminSchema: z.ZodObject<{
409
409
  targetRole: "ADMIN" | "AGENT";
410
410
  }>;
411
411
  }, "strip", z.ZodTypeAny, {
412
- params: {
413
- userId: string;
414
- };
415
412
  body: {
416
413
  targetRole: "ADMIN" | "AGENT";
417
414
  };
418
- }, {
419
415
  params: {
420
416
  userId: string;
421
417
  };
418
+ }, {
422
419
  body: {
423
420
  targetRole: "ADMIN" | "AGENT";
424
421
  };
422
+ params: {
423
+ userId: string;
424
+ };
425
425
  }>;
426
426
  export declare const fireEmployeeSchema: z.ZodObject<{
427
427
  params: z.ZodObject<{
@@ -439,19 +439,19 @@ export declare const fireEmployeeSchema: z.ZodObject<{
439
439
  reason?: string | undefined;
440
440
  }>;
441
441
  }, "strip", z.ZodTypeAny, {
442
- params: {
443
- userId: string;
444
- };
445
442
  body: {
446
443
  reason?: string | undefined;
447
444
  };
448
- }, {
449
445
  params: {
450
446
  userId: string;
451
447
  };
448
+ }, {
452
449
  body: {
453
450
  reason?: string | undefined;
454
451
  };
452
+ params: {
453
+ userId: string;
454
+ };
455
455
  }>;
456
456
  export declare const updateAdminSchema: z.ZodObject<{
457
457
  params: z.ZodObject<{
@@ -503,9 +503,6 @@ export declare const updateAdminSchema: z.ZodObject<{
503
503
  contactValue?: string | undefined;
504
504
  }>;
505
505
  }, "strip", z.ZodTypeAny, {
506
- params: {
507
- userId: string;
508
- };
509
506
  body: {
510
507
  firstName?: string | undefined;
511
508
  lastName?: string | undefined;
@@ -515,10 +512,10 @@ export declare const updateAdminSchema: z.ZodObject<{
515
512
  birthYear?: number | undefined;
516
513
  contactValue?: string | undefined;
517
514
  };
518
- }, {
519
515
  params: {
520
516
  userId: string;
521
517
  };
518
+ }, {
522
519
  body: {
523
520
  firstName?: string | undefined;
524
521
  lastName?: string | undefined;
@@ -528,6 +525,9 @@ export declare const updateAdminSchema: z.ZodObject<{
528
525
  birthYear?: number | undefined;
529
526
  contactValue?: string | undefined;
530
527
  };
528
+ params: {
529
+ userId: string;
530
+ };
531
531
  }>;
532
532
  export declare const resetPasswordSchema: z.ZodObject<{
533
533
  params: z.ZodObject<{
@@ -606,25 +606,25 @@ export declare const addUserContactSchema: z.ZodObject<{
606
606
  isPrimary?: boolean | undefined;
607
607
  }>;
608
608
  }, "strip", z.ZodTypeAny, {
609
- params: {
610
- userId: string;
611
- };
612
609
  body: {
613
610
  contactValue: string;
614
611
  type?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
615
612
  isVerified?: boolean | undefined;
616
613
  isPrimary?: boolean | undefined;
617
614
  };
618
- }, {
619
615
  params: {
620
616
  userId: string;
621
617
  };
618
+ }, {
622
619
  body: {
623
620
  contactValue: string;
624
621
  type?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
625
622
  isVerified?: boolean | undefined;
626
623
  isPrimary?: boolean | undefined;
627
624
  };
625
+ params: {
626
+ userId: string;
627
+ };
628
628
  }>;
629
629
  export declare const verifyUserContactSchema: z.ZodObject<{
630
630
  params: z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-commons",
3
- "version": "1.0.138",
3
+ "version": "1.0.140",
4
4
  "description": "Shared functions package",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -103,7 +103,7 @@
103
103
  "rimraf": "^5.0.5",
104
104
  "streamifier": "^0.1.1",
105
105
  "typescript": "^5.3.3",
106
- "vr-models": "^1.0.70",
106
+ "vr-models": "^1.0.72",
107
107
  "zod": "^3.25.20"
108
108
  },
109
109
  "dependencies": {