vr-commons 1.0.32 → 1.0.34
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.
|
@@ -14,22 +14,22 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
14
14
|
firstName: string;
|
|
15
15
|
lastName: string;
|
|
16
16
|
phoneNumber: string;
|
|
17
|
-
password: string;
|
|
18
17
|
nationalId: string;
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
password: string;
|
|
19
|
+
role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
|
|
21
20
|
email?: string | null | undefined;
|
|
22
21
|
plateNumber?: string | null | undefined;
|
|
22
|
+
jacketId?: string | null | undefined;
|
|
23
23
|
}, {
|
|
24
24
|
firstName: string;
|
|
25
25
|
lastName: string;
|
|
26
26
|
phoneNumber: string;
|
|
27
|
-
password: string;
|
|
28
27
|
nationalId: string;
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
password: string;
|
|
29
|
+
role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
|
|
31
30
|
email?: string | null | undefined;
|
|
32
31
|
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
|
-
password: string;
|
|
47
46
|
nationalId: string;
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
password: string;
|
|
48
|
+
role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
|
|
50
49
|
email?: string | null | undefined;
|
|
51
50
|
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
|
-
password: string;
|
|
62
61
|
nationalId: string;
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
password: string;
|
|
63
|
+
role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
|
|
65
64
|
email?: string | null | undefined;
|
|
66
65
|
plateNumber?: string | null | undefined;
|
|
66
|
+
jacketId?: string | null | undefined;
|
|
67
67
|
};
|
|
68
68
|
headers: {
|
|
69
69
|
authorization: string;
|
|
@@ -166,6 +166,9 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
166
166
|
authorization: string;
|
|
167
167
|
}>;
|
|
168
168
|
}, "strip", z.ZodTypeAny, {
|
|
169
|
+
params: {
|
|
170
|
+
userId: string;
|
|
171
|
+
};
|
|
169
172
|
body: {
|
|
170
173
|
firstName?: string | undefined;
|
|
171
174
|
lastName?: string | undefined;
|
|
@@ -177,13 +180,13 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
177
180
|
isSuspended?: boolean | undefined;
|
|
178
181
|
isDeactivated?: boolean | undefined;
|
|
179
182
|
};
|
|
180
|
-
params: {
|
|
181
|
-
userId: string;
|
|
182
|
-
};
|
|
183
183
|
headers: {
|
|
184
184
|
authorization: string;
|
|
185
185
|
};
|
|
186
186
|
}, {
|
|
187
|
+
params: {
|
|
188
|
+
userId: string;
|
|
189
|
+
};
|
|
187
190
|
body: {
|
|
188
191
|
firstName?: string | undefined;
|
|
189
192
|
lastName?: string | undefined;
|
|
@@ -195,9 +198,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
195
198
|
isSuspended?: boolean | undefined;
|
|
196
199
|
isDeactivated?: boolean | undefined;
|
|
197
200
|
};
|
|
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
|
-
order: "asc" | "desc";
|
|
220
219
|
sortBy: "firstName" | "lastLoginAt" | "createdAt";
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
order: "asc" | "desc";
|
|
221
|
+
role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
|
|
223
222
|
isActive?: boolean | undefined;
|
|
224
223
|
isSuspended?: boolean | undefined;
|
|
225
|
-
role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
226
224
|
page?: number | undefined;
|
|
225
|
+
limit?: number | undefined;
|
|
227
226
|
isBanned?: boolean | undefined;
|
|
227
|
+
search?: string | undefined;
|
|
228
228
|
startDate?: string | undefined;
|
|
229
229
|
endDate?: string | undefined;
|
|
230
230
|
}, {
|
|
231
|
-
|
|
232
|
-
order?: "asc" | "desc" | undefined;
|
|
233
|
-
limit?: string | undefined;
|
|
231
|
+
role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
|
|
234
232
|
isActive?: "true" | "false" | undefined;
|
|
235
233
|
isSuspended?: "true" | "false" | undefined;
|
|
236
|
-
role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
237
234
|
page?: string | undefined;
|
|
235
|
+
limit?: string | undefined;
|
|
238
236
|
isBanned?: "true" | "false" | undefined;
|
|
237
|
+
search?: string | undefined;
|
|
239
238
|
startDate?: string | undefined;
|
|
240
239
|
endDate?: string | undefined;
|
|
241
240
|
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
|
+
};
|
|
251
254
|
query: {
|
|
252
|
-
order: "asc" | "desc";
|
|
253
255
|
sortBy: "firstName" | "lastLoginAt" | "createdAt";
|
|
254
|
-
|
|
255
|
-
|
|
256
|
+
order: "asc" | "desc";
|
|
257
|
+
role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
|
|
256
258
|
isActive?: boolean | undefined;
|
|
257
259
|
isSuspended?: boolean | undefined;
|
|
258
|
-
role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
259
260
|
page?: number | undefined;
|
|
261
|
+
limit?: number | undefined;
|
|
260
262
|
isBanned?: boolean | undefined;
|
|
263
|
+
search?: string | undefined;
|
|
261
264
|
startDate?: string | undefined;
|
|
262
265
|
endDate?: string | undefined;
|
|
263
266
|
};
|
|
267
|
+
}, {
|
|
264
268
|
headers: {
|
|
265
269
|
authorization: string;
|
|
266
270
|
};
|
|
267
|
-
}, {
|
|
268
271
|
query: {
|
|
269
|
-
|
|
270
|
-
order?: "asc" | "desc" | undefined;
|
|
271
|
-
limit?: string | undefined;
|
|
272
|
+
role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
|
|
272
273
|
isActive?: "true" | "false" | undefined;
|
|
273
274
|
isSuspended?: "true" | "false" | undefined;
|
|
274
|
-
role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
275
275
|
page?: string | undefined;
|
|
276
|
+
limit?: string | undefined;
|
|
276
277
|
isBanned?: "true" | "false" | undefined;
|
|
278
|
+
search?: string | undefined;
|
|
277
279
|
startDate?: string | undefined;
|
|
278
280
|
endDate?: string | undefined;
|
|
279
281
|
sortBy?: "firstName" | "lastLoginAt" | "createdAt" | undefined;
|
|
280
|
-
|
|
281
|
-
headers: {
|
|
282
|
-
authorization: string;
|
|
282
|
+
order?: "asc" | "desc" | undefined;
|
|
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;
|
|
300
301
|
body?: {} | undefined;
|
|
301
302
|
query?: {} | undefined;
|
|
302
|
-
params?: {} | undefined;
|
|
303
303
|
}, {
|
|
304
304
|
headers: {
|
|
305
305
|
authorization: string;
|
|
306
306
|
};
|
|
307
|
+
params?: {} | undefined;
|
|
307
308
|
body?: {} | undefined;
|
|
308
309
|
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;
|
|
327
326
|
email?: string | null | undefined;
|
|
328
327
|
password?: string | null | undefined;
|
|
329
328
|
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;
|
|
336
335
|
email?: string | null | undefined;
|
|
337
336
|
password?: string | null | undefined;
|
|
338
337
|
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;
|
|
348
347
|
email?: string | null | undefined;
|
|
349
348
|
password?: string | null | undefined;
|
|
350
349
|
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;
|
|
360
359
|
email?: string | null | undefined;
|
|
361
360
|
password?: string | null | undefined;
|
|
362
361
|
plateNumber?: string | null | undefined;
|
|
362
|
+
jacketId?: string | undefined;
|
|
363
363
|
};
|
|
364
364
|
headers?: {} | undefined;
|
|
365
365
|
}>;
|
|
@@ -416,20 +416,23 @@ export declare const createRiderSchema: z.ZodObject<{
|
|
|
416
416
|
email: z.ZodUnion<[z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodLiteral<"">]>;
|
|
417
417
|
password: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
418
418
|
plateNumber: z.ZodString;
|
|
419
|
+
securityClearanceId: z.ZodString;
|
|
419
420
|
}, "strip", z.ZodTypeAny, {
|
|
420
421
|
firstName: string;
|
|
421
422
|
lastName: string;
|
|
422
423
|
phoneNumber: string;
|
|
423
|
-
plateNumber: string;
|
|
424
424
|
nationalId: string;
|
|
425
|
+
plateNumber: string;
|
|
426
|
+
securityClearanceId: string;
|
|
425
427
|
email?: string | null | undefined;
|
|
426
428
|
password?: string | null | undefined;
|
|
427
429
|
}, {
|
|
428
430
|
firstName: string;
|
|
429
431
|
lastName: string;
|
|
430
432
|
phoneNumber: string;
|
|
431
|
-
plateNumber: string;
|
|
432
433
|
nationalId: string;
|
|
434
|
+
plateNumber: string;
|
|
435
|
+
securityClearanceId: string;
|
|
433
436
|
email?: string | null | undefined;
|
|
434
437
|
password?: string | null | undefined;
|
|
435
438
|
}>;
|
|
@@ -440,25 +443,27 @@ export declare const createRiderSchema: z.ZodObject<{
|
|
|
440
443
|
firstName: string;
|
|
441
444
|
lastName: string;
|
|
442
445
|
phoneNumber: string;
|
|
443
|
-
plateNumber: string;
|
|
444
446
|
nationalId: string;
|
|
447
|
+
plateNumber: string;
|
|
448
|
+
securityClearanceId: string;
|
|
445
449
|
email?: string | null | undefined;
|
|
446
450
|
password?: string | null | undefined;
|
|
447
451
|
};
|
|
448
|
-
query?: {} | undefined;
|
|
449
452
|
params?: {} | undefined;
|
|
453
|
+
query?: {} | undefined;
|
|
450
454
|
}, {
|
|
451
455
|
body: {
|
|
452
456
|
firstName: string;
|
|
453
457
|
lastName: string;
|
|
454
458
|
phoneNumber: string;
|
|
455
|
-
plateNumber: string;
|
|
456
459
|
nationalId: string;
|
|
460
|
+
plateNumber: string;
|
|
461
|
+
securityClearanceId: string;
|
|
457
462
|
email?: string | null | undefined;
|
|
458
463
|
password?: string | null | undefined;
|
|
459
464
|
};
|
|
460
|
-
query?: {} | undefined;
|
|
461
465
|
params?: {} | undefined;
|
|
466
|
+
query?: {} | undefined;
|
|
462
467
|
}>;
|
|
463
468
|
export declare const changePasswordSchema: z.ZodObject<{
|
|
464
469
|
params: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
@@ -617,29 +622,29 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
|
617
622
|
authorization: string;
|
|
618
623
|
}>;
|
|
619
624
|
}, "strip", z.ZodTypeAny, {
|
|
625
|
+
params: {
|
|
626
|
+
riderId: string;
|
|
627
|
+
};
|
|
620
628
|
body: {
|
|
621
629
|
firstName?: string | undefined;
|
|
622
630
|
lastName?: string | undefined;
|
|
623
631
|
email?: string | null | undefined;
|
|
624
632
|
plateNumber?: string | null | undefined;
|
|
625
633
|
};
|
|
626
|
-
params: {
|
|
627
|
-
riderId: string;
|
|
628
|
-
};
|
|
629
634
|
headers: {
|
|
630
635
|
authorization: string;
|
|
631
636
|
};
|
|
632
637
|
query?: {} | undefined;
|
|
633
638
|
}, {
|
|
639
|
+
params: {
|
|
640
|
+
riderId: string;
|
|
641
|
+
};
|
|
634
642
|
body: {
|
|
635
643
|
firstName?: string | undefined;
|
|
636
644
|
lastName?: string | undefined;
|
|
637
645
|
email?: string | null | undefined;
|
|
638
646
|
plateNumber?: string | null | undefined;
|
|
639
647
|
};
|
|
640
|
-
params: {
|
|
641
|
-
riderId: string;
|
|
642
|
-
};
|
|
643
648
|
headers: {
|
|
644
649
|
authorization: string;
|
|
645
650
|
};
|
|
@@ -268,6 +268,7 @@ exports.createRiderSchema = zod_1.z.object({
|
|
|
268
268
|
.optional()
|
|
269
269
|
.nullable(),
|
|
270
270
|
plateNumber: zod_1.z.string().max(20, "Plate number cannot exceed 20 characters"),
|
|
271
|
+
securityClearanceId: zod_1.z.string().max(50, "SecurityClearanceId required"),
|
|
271
272
|
}),
|
|
272
273
|
params: zod_1.z.object({}).optional(),
|
|
273
274
|
query: zod_1.z.object({}).optional(),
|