vr-commons 1.0.95 → 1.0.97

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.
Files changed (29) hide show
  1. package/dist/utils/admin.device.utils.d.ts +59 -0
  2. package/dist/utils/admin.device.utils.js +231 -0
  3. package/dist/utils/admin.devicePayment.utils.d.ts +46 -0
  4. package/dist/utils/admin.devicePayment.utils.js +206 -0
  5. package/dist/utils/index.d.ts +3 -1
  6. package/dist/utils/index.js +5 -1
  7. package/dist/utils/types.d.ts +7 -0
  8. package/dist/validations/admin.devicePayment.validations.d.ts +270 -0
  9. package/dist/validations/admin.devicePayment.validations.js +98 -0
  10. package/dist/validations/admin.devices.validations.d.ts +250 -0
  11. package/dist/validations/admin.devices.validations.js +118 -0
  12. package/dist/validations/appSpecs.validations.d.ts +16 -16
  13. package/dist/validations/appeals.validations.d.ts +8 -8
  14. package/dist/validations/auth.validations.d.ts +2 -2
  15. package/dist/validations/bans.validations.d.ts +8 -8
  16. package/dist/validations/devicePaymentPlan.validations.d.ts +12 -12
  17. package/dist/validations/index.d.ts +3 -0
  18. package/dist/validations/index.js +26 -1
  19. package/dist/validations/moderation.validations.d.ts +105 -105
  20. package/dist/validations/payinstallment.validations.d.ts +5 -5
  21. package/dist/validations/pricing.validations.d.ts +313 -0
  22. package/dist/validations/pricing.validations.js +376 -0
  23. package/dist/validations/pricings.validations.d.ts +313 -0
  24. package/dist/validations/pricings.validations.js +376 -0
  25. package/dist/validations/product.validations.d.ts +42 -42
  26. package/dist/validations/profiles.validations.d.ts +46 -46
  27. package/dist/validations/suspensions.validations.d.ts +8 -8
  28. package/dist/validations/users.admin.validations.d.ts +44 -44
  29. package/package.json +2 -2
@@ -24,25 +24,25 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
24
24
  plateNumber?: string | undefined;
25
25
  }>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- params: {
28
- userId: string;
29
- };
30
27
  body: {
31
28
  jacketId: string;
32
29
  nationalId: string;
33
30
  phoneNumber: string;
34
31
  plateNumber?: string | undefined;
35
32
  };
36
- }, {
37
33
  params: {
38
34
  userId: string;
39
35
  };
36
+ }, {
40
37
  body: {
41
38
  jacketId: string;
42
39
  nationalId: string;
43
40
  phoneNumber: string;
44
41
  plateNumber?: string | undefined;
45
42
  };
43
+ params: {
44
+ userId: string;
45
+ };
46
46
  }>;
47
47
  export declare const updateRiderSchema: z.ZodObject<{
48
48
  params: z.ZodObject<{
@@ -78,9 +78,6 @@ export declare const updateRiderSchema: z.ZodObject<{
78
78
  phoneNumber?: string | undefined;
79
79
  }>;
80
80
  }, "strip", z.ZodTypeAny, {
81
- params: {
82
- userId: string;
83
- };
84
81
  body: {
85
82
  firstName?: string | undefined;
86
83
  lastName?: string | undefined;
@@ -90,10 +87,10 @@ export declare const updateRiderSchema: z.ZodObject<{
90
87
  nationalId?: string | undefined;
91
88
  phoneNumber?: string | undefined;
92
89
  };
93
- }, {
94
90
  params: {
95
91
  userId: string;
96
92
  };
93
+ }, {
97
94
  body: {
98
95
  firstName?: string | undefined;
99
96
  lastName?: string | undefined;
@@ -103,6 +100,9 @@ export declare const updateRiderSchema: z.ZodObject<{
103
100
  nationalId?: string | undefined;
104
101
  phoneNumber?: string | undefined;
105
102
  };
103
+ params: {
104
+ userId: string;
105
+ };
106
106
  }>;
107
107
  export declare const deleteUserSchema: z.ZodObject<{
108
108
  params: z.ZodObject<{
@@ -149,45 +149,45 @@ export declare const getUsersSchema: z.ZodObject<{
149
149
  sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "firstName", "lastName"]>>;
150
150
  sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
151
151
  }, "strip", z.ZodTypeAny, {
152
- isActive?: "true" | "false" | undefined;
153
- page?: number | undefined;
154
- limit?: number | undefined;
155
152
  search?: string | undefined;
156
- sortBy?: "createdAt" | "firstName" | "lastName" | undefined;
157
- sortOrder?: "ASC" | "DESC" | undefined;
153
+ limit?: number | undefined;
154
+ isActive?: "true" | "false" | undefined;
158
155
  isDeactivated?: "true" | "false" | undefined;
159
156
  role?: string | undefined;
157
+ page?: number | undefined;
158
+ sortBy?: "firstName" | "lastName" | "createdAt" | undefined;
159
+ sortOrder?: "DESC" | "ASC" | undefined;
160
160
  }, {
161
- isActive?: "true" | "false" | undefined;
162
- page?: string | undefined;
163
- limit?: string | undefined;
164
161
  search?: string | undefined;
165
- sortBy?: "createdAt" | "firstName" | "lastName" | undefined;
166
- sortOrder?: "ASC" | "DESC" | undefined;
162
+ limit?: string | undefined;
163
+ isActive?: "true" | "false" | undefined;
167
164
  isDeactivated?: "true" | "false" | undefined;
168
165
  role?: string | undefined;
166
+ page?: string | undefined;
167
+ sortBy?: "firstName" | "lastName" | "createdAt" | undefined;
168
+ sortOrder?: "DESC" | "ASC" | undefined;
169
169
  }>;
170
170
  }, "strip", z.ZodTypeAny, {
171
171
  query: {
172
- isActive?: "true" | "false" | undefined;
173
- page?: number | undefined;
174
- limit?: number | undefined;
175
172
  search?: string | undefined;
176
- sortBy?: "createdAt" | "firstName" | "lastName" | undefined;
177
- sortOrder?: "ASC" | "DESC" | undefined;
173
+ limit?: number | undefined;
174
+ isActive?: "true" | "false" | undefined;
178
175
  isDeactivated?: "true" | "false" | undefined;
179
176
  role?: string | undefined;
177
+ page?: number | undefined;
178
+ sortBy?: "firstName" | "lastName" | "createdAt" | undefined;
179
+ sortOrder?: "DESC" | "ASC" | undefined;
180
180
  };
181
181
  }, {
182
182
  query: {
183
- isActive?: "true" | "false" | undefined;
184
- page?: string | undefined;
185
- limit?: string | undefined;
186
183
  search?: string | undefined;
187
- sortBy?: "createdAt" | "firstName" | "lastName" | undefined;
188
- sortOrder?: "ASC" | "DESC" | undefined;
184
+ limit?: string | undefined;
185
+ isActive?: "true" | "false" | undefined;
189
186
  isDeactivated?: "true" | "false" | undefined;
190
187
  role?: string | undefined;
188
+ page?: string | undefined;
189
+ sortBy?: "firstName" | "lastName" | "createdAt" | undefined;
190
+ sortOrder?: "DESC" | "ASC" | undefined;
191
191
  };
192
192
  }>;
193
193
  export declare const hireAdminSchema: z.ZodObject<{
@@ -272,21 +272,21 @@ export declare const promoteAdminSchema: z.ZodObject<{
272
272
  password?: string | undefined;
273
273
  }>;
274
274
  }, "strip", z.ZodTypeAny, {
275
- params: {
276
- userId: string;
277
- };
278
275
  body: {
279
276
  targetRole: "ADMIN" | "SUPER_ADMIN";
280
277
  password?: string | undefined;
281
278
  };
282
- }, {
283
279
  params: {
284
280
  userId: string;
285
281
  };
282
+ }, {
286
283
  body: {
287
284
  targetRole: "ADMIN" | "SUPER_ADMIN";
288
285
  password?: string | undefined;
289
286
  };
287
+ params: {
288
+ userId: string;
289
+ };
290
290
  }>;
291
291
  export declare const demoteAdminSchema: z.ZodObject<{
292
292
  params: z.ZodObject<{
@@ -304,19 +304,19 @@ export declare const demoteAdminSchema: z.ZodObject<{
304
304
  targetRole: "ADMIN" | "AGENT";
305
305
  }>;
306
306
  }, "strip", z.ZodTypeAny, {
307
- params: {
308
- userId: string;
309
- };
310
307
  body: {
311
308
  targetRole: "ADMIN" | "AGENT";
312
309
  };
313
- }, {
314
310
  params: {
315
311
  userId: string;
316
312
  };
313
+ }, {
317
314
  body: {
318
315
  targetRole: "ADMIN" | "AGENT";
319
316
  };
317
+ params: {
318
+ userId: string;
319
+ };
320
320
  }>;
321
321
  export declare const fireEmployeeSchema: z.ZodObject<{
322
322
  params: z.ZodObject<{
@@ -334,19 +334,19 @@ export declare const fireEmployeeSchema: z.ZodObject<{
334
334
  reason?: string | undefined;
335
335
  }>;
336
336
  }, "strip", z.ZodTypeAny, {
337
- params: {
338
- userId: string;
339
- };
340
337
  body: {
341
338
  reason?: string | undefined;
342
339
  };
343
- }, {
344
340
  params: {
345
341
  userId: string;
346
342
  };
343
+ }, {
347
344
  body: {
348
345
  reason?: string | undefined;
349
346
  };
347
+ params: {
348
+ userId: string;
349
+ };
350
350
  }>;
351
351
  export declare const updateAdminSchema: z.ZodObject<{
352
352
  params: z.ZodObject<{
@@ -370,23 +370,23 @@ export declare const updateAdminSchema: z.ZodObject<{
370
370
  email?: string | undefined;
371
371
  }>;
372
372
  }, "strip", z.ZodTypeAny, {
373
- params: {
374
- userId: string;
375
- };
376
373
  body: {
377
374
  firstName?: string | undefined;
378
375
  lastName?: string | undefined;
379
376
  email?: string | undefined;
380
377
  };
381
- }, {
382
378
  params: {
383
379
  userId: string;
384
380
  };
381
+ }, {
385
382
  body: {
386
383
  firstName?: string | undefined;
387
384
  lastName?: string | undefined;
388
385
  email?: string | undefined;
389
386
  };
387
+ params: {
388
+ userId: string;
389
+ };
390
390
  }>;
391
391
  export declare const resetPasswordSchema: z.ZodObject<{
392
392
  params: z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-commons",
3
- "version": "1.0.95",
3
+ "version": "1.0.97",
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.51",
106
+ "vr-models": "^1.0.52",
107
107
  "zod": "^3.25.20"
108
108
  },
109
109
  "dependencies": {