vr-commons 1.0.93 → 1.0.94

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.
@@ -61,47 +61,47 @@ export declare const updateRiderSchema: z.ZodObject<{
61
61
  nationalId: z.ZodOptional<z.ZodString>;
62
62
  email: z.ZodOptional<z.ZodString>;
63
63
  }, "strip", z.ZodTypeAny, {
64
- jacketId?: string | undefined;
65
- nationalId?: string | undefined;
66
- phoneNumber?: string | undefined;
67
- plateNumber?: string | undefined;
68
64
  firstName?: string | undefined;
69
65
  lastName?: string | undefined;
70
- email?: string | undefined;
71
- }, {
72
66
  jacketId?: string | undefined;
67
+ email?: string | undefined;
68
+ plateNumber?: string | undefined;
73
69
  nationalId?: string | undefined;
74
70
  phoneNumber?: string | undefined;
75
- plateNumber?: string | undefined;
71
+ }, {
76
72
  firstName?: string | undefined;
77
73
  lastName?: string | undefined;
74
+ jacketId?: string | undefined;
78
75
  email?: string | undefined;
76
+ plateNumber?: string | undefined;
77
+ nationalId?: string | undefined;
78
+ phoneNumber?: string | undefined;
79
79
  }>;
80
80
  }, "strip", z.ZodTypeAny, {
81
81
  params: {
82
82
  userId: string;
83
83
  };
84
84
  body: {
85
- jacketId?: string | undefined;
86
- nationalId?: string | undefined;
87
- phoneNumber?: string | undefined;
88
- plateNumber?: string | undefined;
89
85
  firstName?: string | undefined;
90
86
  lastName?: string | undefined;
87
+ jacketId?: string | undefined;
91
88
  email?: string | undefined;
89
+ plateNumber?: string | undefined;
90
+ nationalId?: string | undefined;
91
+ phoneNumber?: string | undefined;
92
92
  };
93
93
  }, {
94
94
  params: {
95
95
  userId: string;
96
96
  };
97
97
  body: {
98
- jacketId?: string | undefined;
99
- nationalId?: string | undefined;
100
- phoneNumber?: string | undefined;
101
- plateNumber?: string | undefined;
102
98
  firstName?: string | undefined;
103
99
  lastName?: string | undefined;
100
+ jacketId?: string | undefined;
104
101
  email?: string | undefined;
102
+ plateNumber?: string | undefined;
103
+ nationalId?: string | undefined;
104
+ phoneNumber?: string | undefined;
105
105
  };
106
106
  }>;
107
107
  export declare const deleteUserSchema: 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;
152
153
  page?: number | undefined;
153
154
  limit?: number | undefined;
154
155
  search?: string | undefined;
155
- isActive?: "true" | "false" | undefined;
156
+ sortBy?: "createdAt" | "firstName" | "lastName" | undefined;
157
+ sortOrder?: "ASC" | "DESC" | undefined;
156
158
  isDeactivated?: "true" | "false" | undefined;
157
159
  role?: string | undefined;
158
- sortBy?: "firstName" | "lastName" | "createdAt" | undefined;
159
- sortOrder?: "ASC" | "DESC" | undefined;
160
160
  }, {
161
+ isActive?: "true" | "false" | undefined;
161
162
  page?: string | undefined;
162
163
  limit?: string | undefined;
163
164
  search?: string | undefined;
164
- isActive?: "true" | "false" | undefined;
165
+ sortBy?: "createdAt" | "firstName" | "lastName" | undefined;
166
+ sortOrder?: "ASC" | "DESC" | undefined;
165
167
  isDeactivated?: "true" | "false" | undefined;
166
168
  role?: string | undefined;
167
- sortBy?: "firstName" | "lastName" | "createdAt" | undefined;
168
- sortOrder?: "ASC" | "DESC" | undefined;
169
169
  }>;
170
170
  }, "strip", z.ZodTypeAny, {
171
171
  query: {
172
+ isActive?: "true" | "false" | undefined;
172
173
  page?: number | undefined;
173
174
  limit?: number | undefined;
174
175
  search?: string | undefined;
175
- isActive?: "true" | "false" | undefined;
176
+ sortBy?: "createdAt" | "firstName" | "lastName" | undefined;
177
+ sortOrder?: "ASC" | "DESC" | undefined;
176
178
  isDeactivated?: "true" | "false" | undefined;
177
179
  role?: string | undefined;
178
- sortBy?: "firstName" | "lastName" | "createdAt" | undefined;
179
- sortOrder?: "ASC" | "DESC" | undefined;
180
180
  };
181
181
  }, {
182
182
  query: {
183
+ isActive?: "true" | "false" | undefined;
183
184
  page?: string | undefined;
184
185
  limit?: string | undefined;
185
186
  search?: string | undefined;
186
- isActive?: "true" | "false" | undefined;
187
+ sortBy?: "createdAt" | "firstName" | "lastName" | undefined;
188
+ sortOrder?: "ASC" | "DESC" | undefined;
187
189
  isDeactivated?: "true" | "false" | undefined;
188
190
  role?: string | undefined;
189
- sortBy?: "firstName" | "lastName" | "createdAt" | undefined;
190
- sortOrder?: "ASC" | "DESC" | undefined;
191
191
  };
192
192
  }>;
193
193
  export declare const hireAdminSchema: z.ZodObject<{
@@ -200,56 +200,56 @@ export declare const hireAdminSchema: z.ZodObject<{
200
200
  role: z.ZodEnum<["AGENT", "ADMIN", "SUPER_ADMIN"]>;
201
201
  superAdminPassword: z.ZodOptional<z.ZodString>;
202
202
  }, "strip", z.ZodTypeAny, {
203
- phoneNumber: string;
204
203
  firstName: string;
205
204
  lastName: string;
206
205
  email: string;
207
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
208
206
  password: string;
207
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
208
+ phoneNumber: string;
209
209
  superAdminPassword?: string | undefined;
210
210
  }, {
211
- phoneNumber: string;
212
211
  firstName: string;
213
212
  lastName: string;
214
213
  email: string;
215
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
216
214
  password: string;
215
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
216
+ phoneNumber: string;
217
217
  superAdminPassword?: string | undefined;
218
218
  }>, {
219
- phoneNumber: string;
220
219
  firstName: string;
221
220
  lastName: string;
222
221
  email: string;
223
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
224
222
  password: string;
223
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
224
+ phoneNumber: string;
225
225
  superAdminPassword?: string | undefined;
226
226
  }, {
227
- phoneNumber: string;
228
227
  firstName: string;
229
228
  lastName: string;
230
229
  email: string;
231
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
232
230
  password: string;
231
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
232
+ phoneNumber: string;
233
233
  superAdminPassword?: string | undefined;
234
234
  }>;
235
235
  }, "strip", z.ZodTypeAny, {
236
236
  body: {
237
- phoneNumber: string;
238
237
  firstName: string;
239
238
  lastName: string;
240
239
  email: string;
241
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
242
240
  password: string;
241
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
242
+ phoneNumber: string;
243
243
  superAdminPassword?: string | undefined;
244
244
  };
245
245
  }, {
246
246
  body: {
247
- phoneNumber: string;
248
247
  firstName: string;
249
248
  lastName: string;
250
249
  email: string;
251
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
252
250
  password: string;
251
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
252
+ phoneNumber: string;
253
253
  superAdminPassword?: string | undefined;
254
254
  };
255
255
  }>;
@@ -299,23 +299,23 @@ export declare const demoteAdminSchema: z.ZodObject<{
299
299
  body: z.ZodObject<{
300
300
  targetRole: z.ZodEnum<["AGENT", "ADMIN"]>;
301
301
  }, "strip", z.ZodTypeAny, {
302
- targetRole: "AGENT" | "ADMIN";
302
+ targetRole: "ADMIN" | "AGENT";
303
303
  }, {
304
- targetRole: "AGENT" | "ADMIN";
304
+ targetRole: "ADMIN" | "AGENT";
305
305
  }>;
306
306
  }, "strip", z.ZodTypeAny, {
307
307
  params: {
308
308
  userId: string;
309
309
  };
310
310
  body: {
311
- targetRole: "AGENT" | "ADMIN";
311
+ targetRole: "ADMIN" | "AGENT";
312
312
  };
313
313
  }, {
314
314
  params: {
315
315
  userId: string;
316
316
  };
317
317
  body: {
318
- targetRole: "AGENT" | "ADMIN";
318
+ targetRole: "ADMIN" | "AGENT";
319
319
  };
320
320
  }>;
321
321
  export declare const fireEmployeeSchema: z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-commons",
3
- "version": "1.0.93",
3
+ "version": "1.0.94",
4
4
  "description": "Shared functions package",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -94,11 +94,14 @@
94
94
  "@types/jsonwebtoken": "^9.0.9",
95
95
  "@types/node": "^22.15.21",
96
96
  "@types/nodemailer": "^6.4.17",
97
+ "@types/streamifier": "^0.1.2",
97
98
  "@types/ua-parser-js": "^0.7.36",
98
99
  "@types/uuid": "^10.0.0",
99
100
  "axios": "^1.9.0",
101
+ "cloudinary": "^2.9.0",
100
102
  "date-fns": "^4.1.0",
101
103
  "rimraf": "^5.0.5",
104
+ "streamifier": "^0.1.1",
102
105
  "typescript": "^5.3.3",
103
106
  "vr-models": "^1.0.51",
104
107
  "zod": "^3.25.20"