vr-commons 1.0.178 → 1.0.182

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
  };
@@ -296,31 +296,31 @@ export declare const getAllUsersSchema: z.ZodObject<{
296
296
  sortBy: z.ZodDefault<z.ZodEnum<["firstName", "lastLoginAt", "createdAt", "gender"]>>;
297
297
  order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
298
298
  }, "strip", z.ZodTypeAny, {
299
- sortBy: "createdAt" | "firstName" | "gender" | "lastLoginAt";
300
299
  order: "asc" | "desc";
301
- page?: number | undefined;
302
- limit?: number | undefined;
300
+ sortBy: "firstName" | "gender" | "lastLoginAt" | "createdAt";
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
- sortBy?: "createdAt" | "firstName" | "gender" | "lastLoginAt" | undefined;
316
313
  order?: "asc" | "desc" | undefined;
314
+ limit?: string | undefined;
317
315
  gender?: "male" | "female" | undefined;
318
316
  isActive?: "true" | "false" | undefined;
319
317
  isDeactivated?: "true" | "false" | undefined;
320
318
  role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
319
+ page?: string | undefined;
321
320
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
322
321
  startDate?: string | undefined;
323
322
  endDate?: string | undefined;
323
+ sortBy?: "firstName" | "gender" | "lastLoginAt" | "createdAt" | undefined;
324
324
  }>;
325
325
  headers: z.ZodObject<{
326
326
  authorization: z.ZodString;
@@ -331,15 +331,15 @@ export declare const getAllUsersSchema: z.ZodObject<{
331
331
  }>;
332
332
  }, "strip", z.ZodTypeAny, {
333
333
  query: {
334
- sortBy: "createdAt" | "firstName" | "gender" | "lastLoginAt";
335
334
  order: "asc" | "desc";
336
- page?: number | undefined;
337
- limit?: number | undefined;
335
+ sortBy: "firstName" | "gender" | "lastLoginAt" | "createdAt";
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,18 +349,18 @@ 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
- sortBy?: "createdAt" | "firstName" | "gender" | "lastLoginAt" | undefined;
356
353
  order?: "asc" | "desc" | undefined;
354
+ limit?: string | undefined;
357
355
  gender?: "male" | "female" | undefined;
358
356
  isActive?: "true" | "false" | undefined;
359
357
  isDeactivated?: "true" | "false" | undefined;
360
358
  role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
359
+ page?: string | undefined;
361
360
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
362
361
  startDate?: string | undefined;
363
362
  endDate?: string | undefined;
363
+ sortBy?: "firstName" | "gender" | "lastLoginAt" | "createdAt" | undefined;
364
364
  };
365
365
  headers: {
366
366
  authorization: string;
@@ -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
  };
@@ -7,33 +7,33 @@ export declare const listUserPaymentPlansSchema: z.ZodObject<{
7
7
  sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "nextInstallmentDueAt", "status"]>>;
8
8
  sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
9
9
  }, "strip", z.ZodTypeAny, {
10
- page: number;
11
10
  limit: number;
12
- status?: "PENDING" | "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
13
- sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
14
- sortOrder?: "ASC" | "DESC" | undefined;
11
+ page: number;
12
+ status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
13
+ sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
14
+ sortOrder?: "DESC" | "ASC" | undefined;
15
15
  }, {
16
- status?: "PENDING" | "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
17
- page?: string | undefined;
18
16
  limit?: string | undefined;
19
- sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
20
- sortOrder?: "ASC" | "DESC" | undefined;
17
+ status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
18
+ page?: string | undefined;
19
+ sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
20
+ sortOrder?: "DESC" | "ASC" | undefined;
21
21
  }>;
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  query: {
24
- page: number;
25
24
  limit: number;
26
- status?: "PENDING" | "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
27
- sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
28
- sortOrder?: "ASC" | "DESC" | undefined;
25
+ page: number;
26
+ status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
27
+ sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
28
+ sortOrder?: "DESC" | "ASC" | undefined;
29
29
  };
30
30
  }, {
31
31
  query: {
32
- status?: "PENDING" | "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
33
- page?: string | undefined;
34
32
  limit?: string | undefined;
35
- sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
36
- sortOrder?: "ASC" | "DESC" | undefined;
33
+ status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
34
+ page?: string | undefined;
35
+ sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
36
+ sortOrder?: "DESC" | "ASC" | undefined;
37
37
  };
38
38
  }>;
39
39
  export declare const getUserPaymentPlanSchema: z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-commons",
3
- "version": "1.0.178",
3
+ "version": "1.0.182",
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.99",
106
+ "vr-models": "^1.0.108",
107
107
  "zod": "^3.25.20"
108
108
  },
109
109
  "dependencies": {