vr-commons 1.0.133 → 1.0.135

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,36 +16,36 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
16
16
  birthMonth: z.ZodNumber;
17
17
  birthYear: z.ZodNumber;
18
18
  }, "strip", z.ZodTypeAny, {
19
+ jacketId: string;
19
20
  gender: "male" | "female";
20
21
  birthDate: number;
21
22
  birthMonth: number;
22
23
  birthYear: number;
23
24
  contactValue: string;
24
- jacketId: string;
25
25
  plateNumber?: string | undefined;
26
26
  }, {
27
+ jacketId: string;
27
28
  gender: "male" | "female";
28
29
  birthDate: number;
29
30
  birthMonth: number;
30
31
  birthYear: number;
31
32
  contactValue: string;
32
- jacketId: string;
33
33
  plateNumber?: string | undefined;
34
34
  }>, {
35
+ jacketId: string;
35
36
  gender: "male" | "female";
36
37
  birthDate: number;
37
38
  birthMonth: number;
38
39
  birthYear: number;
39
40
  contactValue: string;
40
- jacketId: string;
41
41
  plateNumber?: string | undefined;
42
42
  }, {
43
+ jacketId: string;
43
44
  gender: "male" | "female";
44
45
  birthDate: number;
45
46
  birthMonth: number;
46
47
  birthYear: number;
47
48
  contactValue: string;
48
- jacketId: string;
49
49
  plateNumber?: string | undefined;
50
50
  }>;
51
51
  }, "strip", z.ZodTypeAny, {
@@ -53,12 +53,12 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
53
53
  userId: string;
54
54
  };
55
55
  body: {
56
+ jacketId: string;
56
57
  gender: "male" | "female";
57
58
  birthDate: number;
58
59
  birthMonth: number;
59
60
  birthYear: number;
60
61
  contactValue: string;
61
- jacketId: string;
62
62
  plateNumber?: string | undefined;
63
63
  };
64
64
  }, {
@@ -66,12 +66,12 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
66
66
  userId: string;
67
67
  };
68
68
  body: {
69
+ jacketId: string;
69
70
  gender: "male" | "female";
70
71
  birthDate: number;
71
72
  birthMonth: number;
72
73
  birthYear: number;
73
74
  contactValue: string;
74
- jacketId: string;
75
75
  plateNumber?: string | undefined;
76
76
  };
77
77
  }>;
@@ -96,43 +96,43 @@ export declare const updateRiderSchema: z.ZodObject<{
96
96
  }, "strip", z.ZodTypeAny, {
97
97
  firstName?: string | undefined;
98
98
  lastName?: string | undefined;
99
+ jacketId?: string | undefined;
99
100
  plateNumber?: string | undefined;
100
101
  gender?: "male" | "female" | undefined;
101
102
  birthDate?: number | undefined;
102
103
  birthMonth?: number | undefined;
103
104
  birthYear?: number | undefined;
104
105
  contactValue?: string | undefined;
105
- jacketId?: string | undefined;
106
106
  }, {
107
107
  firstName?: string | undefined;
108
108
  lastName?: string | undefined;
109
+ jacketId?: string | undefined;
109
110
  plateNumber?: string | undefined;
110
111
  gender?: "male" | "female" | undefined;
111
112
  birthDate?: number | undefined;
112
113
  birthMonth?: number | undefined;
113
114
  birthYear?: number | undefined;
114
115
  contactValue?: string | undefined;
115
- jacketId?: string | undefined;
116
116
  }>, {
117
117
  firstName?: string | undefined;
118
118
  lastName?: string | undefined;
119
+ jacketId?: string | undefined;
119
120
  plateNumber?: string | undefined;
120
121
  gender?: "male" | "female" | undefined;
121
122
  birthDate?: number | undefined;
122
123
  birthMonth?: number | undefined;
123
124
  birthYear?: number | undefined;
124
125
  contactValue?: string | undefined;
125
- jacketId?: string | undefined;
126
126
  }, {
127
127
  firstName?: string | undefined;
128
128
  lastName?: string | undefined;
129
+ jacketId?: string | undefined;
129
130
  plateNumber?: string | undefined;
130
131
  gender?: "male" | "female" | undefined;
131
132
  birthDate?: number | undefined;
132
133
  birthMonth?: number | undefined;
133
134
  birthYear?: number | undefined;
134
135
  contactValue?: string | undefined;
135
- jacketId?: string | undefined;
136
136
  }>;
137
137
  }, "strip", z.ZodTypeAny, {
138
138
  params: {
@@ -141,13 +141,13 @@ export declare const updateRiderSchema: z.ZodObject<{
141
141
  body: {
142
142
  firstName?: string | undefined;
143
143
  lastName?: string | undefined;
144
+ jacketId?: string | undefined;
144
145
  plateNumber?: string | undefined;
145
146
  gender?: "male" | "female" | undefined;
146
147
  birthDate?: number | undefined;
147
148
  birthMonth?: number | undefined;
148
149
  birthYear?: number | undefined;
149
150
  contactValue?: string | undefined;
150
- jacketId?: string | undefined;
151
151
  };
152
152
  }, {
153
153
  params: {
@@ -156,13 +156,13 @@ export declare const updateRiderSchema: z.ZodObject<{
156
156
  body: {
157
157
  firstName?: string | undefined;
158
158
  lastName?: string | undefined;
159
+ jacketId?: string | undefined;
159
160
  plateNumber?: string | undefined;
160
161
  gender?: "male" | "female" | undefined;
161
162
  birthDate?: number | undefined;
162
163
  birthMonth?: number | undefined;
163
164
  birthYear?: number | undefined;
164
165
  contactValue?: string | undefined;
165
- jacketId?: string | undefined;
166
166
  };
167
167
  }>;
168
168
  export declare const deleteUserSchema: 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
- gender?: "male" | "female" | undefined;
216
- page?: number | undefined;
217
- limit?: number | undefined;
218
215
  search?: string | undefined;
216
+ limit?: number | undefined;
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
- sortOrder?: "ASC" | "DESC" | undefined;
224
+ sortOrder?: "DESC" | "ASC" | undefined;
225
225
  }, {
226
- gender?: "male" | "female" | undefined;
227
- page?: string | undefined;
228
- limit?: string | undefined;
229
226
  search?: string | undefined;
227
+ limit?: string | undefined;
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
- sortOrder?: "ASC" | "DESC" | undefined;
235
+ sortOrder?: "DESC" | "ASC" | undefined;
236
236
  }>;
237
237
  }, "strip", z.ZodTypeAny, {
238
238
  query: {
239
- gender?: "male" | "female" | undefined;
240
- page?: number | undefined;
241
- limit?: number | undefined;
242
239
  search?: string | undefined;
240
+ limit?: number | undefined;
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
- sortOrder?: "ASC" | "DESC" | undefined;
248
+ sortOrder?: "DESC" | "ASC" | undefined;
249
249
  };
250
250
  }, {
251
251
  query: {
252
- gender?: "male" | "female" | undefined;
253
- page?: string | undefined;
254
- limit?: string | undefined;
255
252
  search?: string | undefined;
253
+ limit?: string | undefined;
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
- sortOrder?: "ASC" | "DESC" | undefined;
261
+ sortOrder?: "DESC" | "ASC" | undefined;
262
262
  };
263
263
  }>;
264
264
  export declare const hireAdminSchema: z.ZodObject<{
@@ -279,8 +279,8 @@ export declare const hireAdminSchema: z.ZodObject<{
279
279
  birthDate: number;
280
280
  birthMonth: number;
281
281
  birthYear: number;
282
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
282
283
  contactValue: string;
283
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
284
284
  superAdminPassword?: string | undefined;
285
285
  }, {
286
286
  firstName: string;
@@ -289,8 +289,8 @@ export declare const hireAdminSchema: z.ZodObject<{
289
289
  birthDate: number;
290
290
  birthMonth: number;
291
291
  birthYear: number;
292
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
292
293
  contactValue: string;
293
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
294
294
  superAdminPassword?: string | undefined;
295
295
  }>, {
296
296
  firstName: string;
@@ -299,8 +299,8 @@ export declare const hireAdminSchema: z.ZodObject<{
299
299
  birthDate: number;
300
300
  birthMonth: number;
301
301
  birthYear: number;
302
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
302
303
  contactValue: string;
303
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
304
304
  superAdminPassword?: string | undefined;
305
305
  }, {
306
306
  firstName: string;
@@ -309,8 +309,8 @@ export declare const hireAdminSchema: z.ZodObject<{
309
309
  birthDate: number;
310
310
  birthMonth: number;
311
311
  birthYear: number;
312
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
312
313
  contactValue: string;
313
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
314
314
  superAdminPassword?: string | undefined;
315
315
  }>, {
316
316
  firstName: string;
@@ -319,8 +319,8 @@ export declare const hireAdminSchema: z.ZodObject<{
319
319
  birthDate: number;
320
320
  birthMonth: number;
321
321
  birthYear: number;
322
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
322
323
  contactValue: string;
323
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
324
324
  superAdminPassword?: string | undefined;
325
325
  }, {
326
326
  firstName: string;
@@ -329,8 +329,8 @@ export declare const hireAdminSchema: z.ZodObject<{
329
329
  birthDate: number;
330
330
  birthMonth: number;
331
331
  birthYear: number;
332
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
332
333
  contactValue: string;
333
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
334
334
  superAdminPassword?: string | undefined;
335
335
  }>;
336
336
  }, "strip", z.ZodTypeAny, {
@@ -341,8 +341,8 @@ export declare const hireAdminSchema: z.ZodObject<{
341
341
  birthDate: number;
342
342
  birthMonth: number;
343
343
  birthYear: number;
344
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
344
345
  contactValue: string;
345
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
346
346
  superAdminPassword?: string | undefined;
347
347
  };
348
348
  }, {
@@ -353,8 +353,8 @@ export declare const hireAdminSchema: z.ZodObject<{
353
353
  birthDate: number;
354
354
  birthMonth: number;
355
355
  birthYear: number;
356
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
356
357
  contactValue: string;
357
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
358
358
  superAdminPassword?: string | undefined;
359
359
  };
360
360
  }>;
@@ -404,23 +404,23 @@ 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: "AGENT" | "ADMIN";
407
+ targetRole: "ADMIN" | "AGENT";
408
408
  }, {
409
- targetRole: "AGENT" | "ADMIN";
409
+ targetRole: "ADMIN" | "AGENT";
410
410
  }>;
411
411
  }, "strip", z.ZodTypeAny, {
412
412
  params: {
413
413
  userId: string;
414
414
  };
415
415
  body: {
416
- targetRole: "AGENT" | "ADMIN";
416
+ targetRole: "ADMIN" | "AGENT";
417
417
  };
418
418
  }, {
419
419
  params: {
420
420
  userId: string;
421
421
  };
422
422
  body: {
423
- targetRole: "AGENT" | "ADMIN";
423
+ targetRole: "ADMIN" | "AGENT";
424
424
  };
425
425
  }>;
426
426
  export declare const fireEmployeeSchema: z.ZodObject<{
@@ -631,21 +631,21 @@ export declare const verifyUserContactSchema: z.ZodObject<{
631
631
  userId: z.ZodString;
632
632
  contactId: z.ZodString;
633
633
  }, "strip", z.ZodTypeAny, {
634
- contactId: string;
635
634
  userId: string;
636
- }, {
637
635
  contactId: string;
636
+ }, {
638
637
  userId: string;
638
+ contactId: string;
639
639
  }>;
640
640
  }, "strip", z.ZodTypeAny, {
641
641
  params: {
642
- contactId: string;
643
642
  userId: string;
643
+ contactId: string;
644
644
  };
645
645
  }, {
646
646
  params: {
647
- contactId: string;
648
647
  userId: string;
648
+ contactId: string;
649
649
  };
650
650
  }>;
651
651
  export declare const deleteUserContactSchema: z.ZodObject<{
@@ -653,21 +653,21 @@ export declare const deleteUserContactSchema: z.ZodObject<{
653
653
  userId: z.ZodString;
654
654
  contactId: z.ZodString;
655
655
  }, "strip", z.ZodTypeAny, {
656
- contactId: string;
657
656
  userId: string;
658
- }, {
659
657
  contactId: string;
658
+ }, {
660
659
  userId: string;
660
+ contactId: string;
661
661
  }>;
662
662
  }, "strip", z.ZodTypeAny, {
663
663
  params: {
664
- contactId: string;
665
664
  userId: string;
665
+ contactId: string;
666
666
  };
667
667
  }, {
668
668
  params: {
669
- contactId: string;
670
669
  userId: string;
670
+ contactId: string;
671
671
  };
672
672
  }>;
673
673
  export declare const setUserPrimaryContactSchema: z.ZodObject<{
@@ -675,21 +675,21 @@ export declare const setUserPrimaryContactSchema: z.ZodObject<{
675
675
  userId: z.ZodString;
676
676
  contactId: z.ZodString;
677
677
  }, "strip", z.ZodTypeAny, {
678
- contactId: string;
679
678
  userId: string;
680
- }, {
681
679
  contactId: string;
680
+ }, {
682
681
  userId: string;
682
+ contactId: string;
683
683
  }>;
684
684
  }, "strip", z.ZodTypeAny, {
685
685
  params: {
686
- contactId: string;
687
686
  userId: string;
687
+ contactId: string;
688
688
  };
689
689
  }, {
690
690
  params: {
691
- contactId: string;
692
691
  userId: string;
692
+ contactId: string;
693
693
  };
694
694
  }>;
695
695
  export type UpgradeToRiderInput = z.infer<typeof upgradeToRiderSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-commons",
3
- "version": "1.0.133",
3
+ "version": "1.0.135",
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.66",
106
+ "vr-models": "^1.0.69",
107
107
  "zod": "^3.25.20"
108
108
  },
109
109
  "dependencies": {