vr-commons 1.0.29 → 1.0.31

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.
@@ -18,16 +18,16 @@ export declare const riderLoginSchema: z.ZodObject<{
18
18
  phoneNumber: string;
19
19
  nationalId: string;
20
20
  };
21
- params?: {} | undefined;
22
21
  query?: {} | undefined;
22
+ params?: {} | undefined;
23
23
  headers?: {} | undefined;
24
24
  }, {
25
25
  body: {
26
26
  phoneNumber: string;
27
27
  nationalId: string;
28
28
  };
29
- params?: {} | undefined;
30
29
  query?: {} | undefined;
30
+ params?: {} | undefined;
31
31
  headers?: {} | undefined;
32
32
  }>;
33
33
  export declare const userLoginSchema: z.ZodObject<{
@@ -14,22 +14,22 @@ export declare const createUserSchema: z.ZodObject<{
14
14
  firstName: string;
15
15
  lastName: string;
16
16
  phoneNumber: string;
17
- nationalId: string;
18
17
  password: string;
19
- role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
18
+ nationalId: string;
19
+ role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
20
+ jacketId?: string | null | undefined;
20
21
  email?: string | null | undefined;
21
22
  plateNumber?: string | null | undefined;
22
- jacketId?: string | null | undefined;
23
23
  }, {
24
24
  firstName: string;
25
25
  lastName: string;
26
26
  phoneNumber: string;
27
- nationalId: string;
28
27
  password: string;
29
- role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
28
+ nationalId: string;
29
+ role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
30
+ jacketId?: string | null | undefined;
30
31
  email?: string | null | undefined;
31
32
  plateNumber?: string | null | undefined;
32
- jacketId?: string | null | undefined;
33
33
  }>;
34
34
  headers: z.ZodObject<{
35
35
  authorization: z.ZodString;
@@ -43,12 +43,12 @@ export declare const createUserSchema: z.ZodObject<{
43
43
  firstName: string;
44
44
  lastName: string;
45
45
  phoneNumber: string;
46
- nationalId: string;
47
46
  password: string;
48
- role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
47
+ nationalId: string;
48
+ role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
49
+ jacketId?: string | null | undefined;
49
50
  email?: string | null | undefined;
50
51
  plateNumber?: string | null | undefined;
51
- jacketId?: string | null | undefined;
52
52
  };
53
53
  headers: {
54
54
  authorization: string;
@@ -58,12 +58,12 @@ export declare const createUserSchema: z.ZodObject<{
58
58
  firstName: string;
59
59
  lastName: string;
60
60
  phoneNumber: string;
61
- nationalId: string;
62
61
  password: string;
63
- role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
62
+ nationalId: string;
63
+ role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
64
+ jacketId?: string | null | undefined;
64
65
  email?: string | null | undefined;
65
66
  plateNumber?: string | null | undefined;
66
- jacketId?: string | null | undefined;
67
67
  };
68
68
  headers: {
69
69
  authorization: string;
@@ -166,9 +166,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
166
166
  authorization: string;
167
167
  }>;
168
168
  }, "strip", z.ZodTypeAny, {
169
- params: {
170
- userId: string;
171
- };
172
169
  body: {
173
170
  firstName?: string | undefined;
174
171
  lastName?: string | undefined;
@@ -180,13 +177,13 @@ export declare const updateUserProfileSchema: z.ZodObject<{
180
177
  isSuspended?: boolean | undefined;
181
178
  isDeactivated?: boolean | undefined;
182
179
  };
180
+ params: {
181
+ userId: string;
182
+ };
183
183
  headers: {
184
184
  authorization: string;
185
185
  };
186
186
  }, {
187
- params: {
188
- userId: string;
189
- };
190
187
  body: {
191
188
  firstName?: string | undefined;
192
189
  lastName?: string | undefined;
@@ -198,6 +195,9 @@ export declare const updateUserProfileSchema: z.ZodObject<{
198
195
  isSuspended?: boolean | undefined;
199
196
  isDeactivated?: boolean | undefined;
200
197
  };
198
+ params: {
199
+ userId: string;
200
+ };
201
201
  headers: {
202
202
  authorization: string;
203
203
  };
@@ -216,29 +216,29 @@ export declare const getAllUsersSchema: z.ZodObject<{
216
216
  sortBy: z.ZodDefault<z.ZodEnum<["firstName", "lastLoginAt", "createdAt"]>>;
217
217
  order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
218
218
  }, "strip", z.ZodTypeAny, {
219
- sortBy: "firstName" | "lastLoginAt" | "createdAt";
220
219
  order: "asc" | "desc";
221
- role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
220
+ sortBy: "firstName" | "lastLoginAt" | "createdAt";
221
+ search?: string | undefined;
222
+ limit?: number | undefined;
222
223
  isActive?: boolean | undefined;
223
224
  isSuspended?: boolean | undefined;
225
+ role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
224
226
  page?: number | undefined;
225
- limit?: number | undefined;
226
227
  isBanned?: boolean | undefined;
227
- search?: string | undefined;
228
228
  startDate?: string | undefined;
229
229
  endDate?: string | undefined;
230
230
  }, {
231
- role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
231
+ search?: string | undefined;
232
+ order?: "asc" | "desc" | undefined;
233
+ limit?: string | undefined;
232
234
  isActive?: "true" | "false" | undefined;
233
235
  isSuspended?: "true" | "false" | undefined;
236
+ role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
234
237
  page?: string | undefined;
235
- limit?: string | undefined;
236
238
  isBanned?: "true" | "false" | undefined;
237
- search?: string | undefined;
238
239
  startDate?: string | undefined;
239
240
  endDate?: string | undefined;
240
241
  sortBy?: "firstName" | "lastLoginAt" | "createdAt" | undefined;
241
- order?: "asc" | "desc" | undefined;
242
242
  }>;
243
243
  headers: z.ZodObject<{
244
244
  authorization: z.ZodString;
@@ -248,38 +248,38 @@ export declare const getAllUsersSchema: z.ZodObject<{
248
248
  authorization: string;
249
249
  }>;
250
250
  }, "strip", z.ZodTypeAny, {
251
- headers: {
252
- authorization: string;
253
- };
254
251
  query: {
255
- sortBy: "firstName" | "lastLoginAt" | "createdAt";
256
252
  order: "asc" | "desc";
257
- role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
253
+ sortBy: "firstName" | "lastLoginAt" | "createdAt";
254
+ search?: string | undefined;
255
+ limit?: number | undefined;
258
256
  isActive?: boolean | undefined;
259
257
  isSuspended?: boolean | undefined;
258
+ role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
260
259
  page?: number | undefined;
261
- limit?: number | undefined;
262
260
  isBanned?: boolean | undefined;
263
- search?: string | undefined;
264
261
  startDate?: string | undefined;
265
262
  endDate?: string | undefined;
266
263
  };
267
- }, {
268
264
  headers: {
269
265
  authorization: string;
270
266
  };
267
+ }, {
271
268
  query: {
272
- role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
269
+ search?: string | undefined;
270
+ order?: "asc" | "desc" | undefined;
271
+ limit?: string | undefined;
273
272
  isActive?: "true" | "false" | undefined;
274
273
  isSuspended?: "true" | "false" | undefined;
274
+ role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
275
275
  page?: string | undefined;
276
- limit?: string | undefined;
277
276
  isBanned?: "true" | "false" | undefined;
278
- search?: string | undefined;
279
277
  startDate?: string | undefined;
280
278
  endDate?: string | undefined;
281
279
  sortBy?: "firstName" | "lastLoginAt" | "createdAt" | undefined;
282
- order?: "asc" | "desc" | undefined;
280
+ };
281
+ headers: {
282
+ authorization: string;
283
283
  };
284
284
  }>;
285
285
  export declare const viewProfileSchema: z.ZodObject<{
@@ -297,16 +297,16 @@ export declare const viewProfileSchema: z.ZodObject<{
297
297
  headers: {
298
298
  authorization: string;
299
299
  };
300
- params?: {} | undefined;
301
300
  body?: {} | undefined;
302
301
  query?: {} | undefined;
302
+ params?: {} | undefined;
303
303
  }, {
304
304
  headers: {
305
305
  authorization: string;
306
306
  };
307
- params?: {} | undefined;
308
307
  body?: {} | undefined;
309
308
  query?: {} | undefined;
309
+ params?: {} | undefined;
310
310
  }>;
311
311
  export declare const passengerSignupSchema: z.ZodObject<{
312
312
  body: z.ZodObject<{
@@ -323,19 +323,19 @@ export declare const passengerSignupSchema: z.ZodObject<{
323
323
  lastName: string;
324
324
  phoneNumber: string;
325
325
  nationalId: string;
326
+ jacketId?: string | undefined;
326
327
  email?: string | null | undefined;
327
328
  password?: string | null | undefined;
328
329
  plateNumber?: string | null | undefined;
329
- jacketId?: string | undefined;
330
330
  }, {
331
331
  firstName: string;
332
332
  lastName: string;
333
333
  phoneNumber: string;
334
334
  nationalId: string;
335
+ jacketId?: string | undefined;
335
336
  email?: string | null | undefined;
336
337
  password?: string | null | undefined;
337
338
  plateNumber?: string | null | undefined;
338
- jacketId?: string | undefined;
339
339
  }>;
340
340
  headers: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
341
341
  }, "strip", z.ZodTypeAny, {
@@ -344,10 +344,10 @@ export declare const passengerSignupSchema: z.ZodObject<{
344
344
  lastName: string;
345
345
  phoneNumber: string;
346
346
  nationalId: string;
347
+ jacketId?: string | undefined;
347
348
  email?: string | null | undefined;
348
349
  password?: string | null | undefined;
349
350
  plateNumber?: string | null | undefined;
350
- jacketId?: string | undefined;
351
351
  };
352
352
  headers?: {} | undefined;
353
353
  }, {
@@ -356,10 +356,10 @@ export declare const passengerSignupSchema: z.ZodObject<{
356
356
  lastName: string;
357
357
  phoneNumber: string;
358
358
  nationalId: string;
359
+ jacketId?: string | undefined;
359
360
  email?: string | null | undefined;
360
361
  password?: string | null | undefined;
361
362
  plateNumber?: string | null | undefined;
362
- jacketId?: string | undefined;
363
363
  };
364
364
  headers?: {} | undefined;
365
365
  }>;
@@ -436,16 +436,16 @@ export declare const getRiderProfileSchema: z.ZodObject<{
436
436
  headers: {
437
437
  authorization: string;
438
438
  };
439
- params?: {} | undefined;
440
439
  body?: {} | undefined;
441
440
  query?: {} | undefined;
441
+ params?: {} | undefined;
442
442
  }, {
443
443
  headers: {
444
444
  authorization: string;
445
445
  };
446
- params?: {} | undefined;
447
446
  body?: {} | undefined;
448
447
  query?: {} | undefined;
448
+ params?: {} | undefined;
449
449
  }>;
450
450
  export declare const changePasswordSchema: z.ZodObject<{
451
451
  params: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-commons",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "description": "Shared functions package",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -98,7 +98,7 @@
98
98
  "@types/uuid": "^10.0.0",
99
99
  "axios": "^1.9.0",
100
100
  "date-fns": "^4.1.0",
101
- "vr-models": "^1.0.6",
101
+ "vr-models": "^1.0.8",
102
102
  "rimraf": "^5.0.5",
103
103
  "typescript": "^5.3.3",
104
104
  "zod": "^3.25.20"