vr-commons 1.0.149 → 1.0.150

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.
@@ -49,6 +49,9 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
49
49
  plateNumber?: string | undefined;
50
50
  }>;
51
51
  }, "strip", z.ZodTypeAny, {
52
+ params: {
53
+ userId: string;
54
+ };
52
55
  body: {
53
56
  jacketId: string;
54
57
  gender: "male" | "female";
@@ -58,10 +61,10 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
58
61
  contactValue: string;
59
62
  plateNumber?: string | undefined;
60
63
  };
64
+ }, {
61
65
  params: {
62
66
  userId: string;
63
67
  };
64
- }, {
65
68
  body: {
66
69
  jacketId: string;
67
70
  gender: "male" | "female";
@@ -71,9 +74,6 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
71
74
  contactValue: string;
72
75
  plateNumber?: string | undefined;
73
76
  };
74
- params: {
75
- userId: string;
76
- };
77
77
  }>;
78
78
  export declare const updateRiderSchema: z.ZodObject<{
79
79
  params: z.ZodObject<{
@@ -135,6 +135,9 @@ export declare const updateRiderSchema: z.ZodObject<{
135
135
  contactValue?: string | undefined;
136
136
  }>;
137
137
  }, "strip", z.ZodTypeAny, {
138
+ params: {
139
+ userId: string;
140
+ };
138
141
  body: {
139
142
  firstName?: string | undefined;
140
143
  lastName?: string | undefined;
@@ -146,10 +149,10 @@ export declare const updateRiderSchema: z.ZodObject<{
146
149
  birthYear?: number | undefined;
147
150
  contactValue?: string | undefined;
148
151
  };
152
+ }, {
149
153
  params: {
150
154
  userId: string;
151
155
  };
152
- }, {
153
156
  body: {
154
157
  firstName?: string | undefined;
155
158
  lastName?: string | undefined;
@@ -161,9 +164,6 @@ export declare const updateRiderSchema: z.ZodObject<{
161
164
  birthYear?: number | undefined;
162
165
  contactValue?: string | undefined;
163
166
  };
164
- params: {
165
- userId: string;
166
- };
167
167
  }>;
168
168
  export declare const deleteUserSchema: z.ZodObject<{
169
169
  params: z.ZodObject<{
@@ -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
+ page?: number | undefined;
215
216
  limit?: number | undefined;
216
217
  search?: string | undefined;
218
+ sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
219
+ sortOrder?: "ASC" | "DESC" | undefined;
217
220
  isActive?: "true" | "false" | undefined;
218
221
  gender?: "male" | "female" | undefined;
219
222
  isDeactivated?: "true" | "false" | undefined;
220
223
  role?: string | undefined;
221
- page?: number | undefined;
222
224
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
223
- sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
224
- sortOrder?: "DESC" | "ASC" | undefined;
225
225
  }, {
226
+ page?: string | undefined;
226
227
  limit?: string | undefined;
227
228
  search?: string | undefined;
229
+ sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
230
+ sortOrder?: "ASC" | "DESC" | undefined;
228
231
  isActive?: "true" | "false" | undefined;
229
232
  gender?: "male" | "female" | undefined;
230
233
  isDeactivated?: "true" | "false" | undefined;
231
234
  role?: string | undefined;
232
- page?: string | undefined;
233
235
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
234
- sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
235
- sortOrder?: "DESC" | "ASC" | undefined;
236
236
  }>;
237
237
  }, "strip", z.ZodTypeAny, {
238
238
  query: {
239
+ page?: number | undefined;
239
240
  limit?: number | undefined;
240
241
  search?: string | undefined;
242
+ sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
243
+ sortOrder?: "ASC" | "DESC" | undefined;
241
244
  isActive?: "true" | "false" | undefined;
242
245
  gender?: "male" | "female" | undefined;
243
246
  isDeactivated?: "true" | "false" | undefined;
244
247
  role?: string | undefined;
245
- page?: number | undefined;
246
248
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
247
- sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
248
- sortOrder?: "DESC" | "ASC" | undefined;
249
249
  };
250
250
  }, {
251
251
  query: {
252
+ page?: string | undefined;
252
253
  limit?: string | undefined;
253
254
  search?: string | undefined;
255
+ sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
256
+ sortOrder?: "ASC" | "DESC" | undefined;
254
257
  isActive?: "true" | "false" | undefined;
255
258
  gender?: "male" | "female" | undefined;
256
259
  isDeactivated?: "true" | "false" | undefined;
257
260
  role?: string | undefined;
258
- page?: string | undefined;
259
261
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
260
- sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
261
- sortOrder?: "DESC" | "ASC" | undefined;
262
262
  };
263
263
  }>;
264
264
  export declare const hireAdminSchema: z.ZodObject<{
@@ -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
+ };
380
383
  body: {
381
384
  targetRole: "ADMIN" | "SUPER_ADMIN";
382
385
  password?: string | undefined;
383
386
  };
387
+ }, {
384
388
  params: {
385
389
  userId: string;
386
390
  };
387
- }, {
388
391
  body: {
389
392
  targetRole: "ADMIN" | "SUPER_ADMIN";
390
393
  password?: string | undefined;
391
394
  };
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
- body: {
413
- targetRole: "ADMIN" | "AGENT";
414
- };
415
412
  params: {
416
413
  userId: string;
417
414
  };
418
- }, {
419
415
  body: {
420
416
  targetRole: "ADMIN" | "AGENT";
421
417
  };
418
+ }, {
422
419
  params: {
423
420
  userId: string;
424
421
  };
422
+ body: {
423
+ targetRole: "ADMIN" | "AGENT";
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
- body: {
443
- reason?: string | undefined;
444
- };
445
442
  params: {
446
443
  userId: string;
447
444
  };
448
- }, {
449
445
  body: {
450
446
  reason?: string | undefined;
451
447
  };
448
+ }, {
452
449
  params: {
453
450
  userId: string;
454
451
  };
452
+ body: {
453
+ reason?: string | undefined;
454
+ };
455
455
  }>;
456
456
  export declare const updateAdminSchema: z.ZodObject<{
457
457
  params: z.ZodObject<{
@@ -503,6 +503,9 @@ export declare const updateAdminSchema: z.ZodObject<{
503
503
  contactValue?: string | undefined;
504
504
  }>;
505
505
  }, "strip", z.ZodTypeAny, {
506
+ params: {
507
+ userId: string;
508
+ };
506
509
  body: {
507
510
  firstName?: string | undefined;
508
511
  lastName?: string | undefined;
@@ -512,10 +515,10 @@ export declare const updateAdminSchema: z.ZodObject<{
512
515
  birthYear?: number | undefined;
513
516
  contactValue?: string | undefined;
514
517
  };
518
+ }, {
515
519
  params: {
516
520
  userId: string;
517
521
  };
518
- }, {
519
522
  body: {
520
523
  firstName?: string | undefined;
521
524
  lastName?: string | undefined;
@@ -525,9 +528,6 @@ export declare const updateAdminSchema: z.ZodObject<{
525
528
  birthYear?: number | undefined;
526
529
  contactValue?: string | undefined;
527
530
  };
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
+ };
609
612
  body: {
610
613
  contactValue: string;
611
614
  type?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
612
615
  isVerified?: boolean | undefined;
613
616
  isPrimary?: boolean | undefined;
614
617
  };
618
+ }, {
615
619
  params: {
616
620
  userId: string;
617
621
  };
618
- }, {
619
622
  body: {
620
623
  contactValue: string;
621
624
  type?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
622
625
  isVerified?: boolean | undefined;
623
626
  isPrimary?: boolean | undefined;
624
627
  };
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.149",
3
+ "version": "1.0.150",
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.75",
106
+ "vr-models": "^1.0.78",
107
107
  "zod": "^3.25.20"
108
108
  },
109
109
  "dependencies": {