vr-commons 1.0.155 → 1.0.156
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.
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +13 -1
- package/dist/utils/systemLog.utils.d.ts +60 -0
- package/dist/utils/systemLog.utils.js +148 -0
- package/dist/validations/admin.devicePayment.validations.d.ts +50 -50
- package/dist/validations/admin.devicePayment.validations.js +0 -1
- package/dist/validations/admin.devices.validations.d.ts +26 -26
- package/dist/validations/admin.installment.validations.d.ts +8 -8
- package/dist/validations/admin.installment.validations.js +0 -1
- package/dist/validations/appSpecs.validations.d.ts +18 -18
- package/dist/validations/appeals.validations.d.ts +8 -8
- package/dist/validations/auth.validations.d.ts +4 -4
- package/dist/validations/bans.validations.d.ts +8 -8
- package/dist/validations/devicePaymentPlan.validations.d.ts +16 -16
- package/dist/validations/eventlogs.admin.validations.d.ts +31 -31
- package/dist/validations/moderation.validations.d.ts +105 -105
- package/dist/validations/pricings.validations.d.ts +36 -36
- package/dist/validations/product.validations.d.ts +36 -36
- package/dist/validations/profiles.validations.d.ts +56 -56
- package/dist/validations/suspensions.validations.d.ts +8 -8
- package/dist/validations/users.admin.validations.d.ts +48 -48
- package/package.json +2 -2
|
@@ -26,7 +26,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
26
26
|
birthDate: number;
|
|
27
27
|
birthMonth: number;
|
|
28
28
|
birthYear: number;
|
|
29
|
-
role: "
|
|
29
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
30
30
|
contactValue: string;
|
|
31
31
|
jacketId?: string | null | undefined;
|
|
32
32
|
password?: string | undefined;
|
|
@@ -38,7 +38,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
38
38
|
birthDate: number;
|
|
39
39
|
birthMonth: number;
|
|
40
40
|
birthYear: number;
|
|
41
|
-
role: "
|
|
41
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
42
42
|
contactValue: string;
|
|
43
43
|
jacketId?: string | null | undefined;
|
|
44
44
|
password?: string | undefined;
|
|
@@ -50,7 +50,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
50
50
|
birthDate: number;
|
|
51
51
|
birthMonth: number;
|
|
52
52
|
birthYear: number;
|
|
53
|
-
role: "
|
|
53
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
54
54
|
contactValue: string;
|
|
55
55
|
jacketId?: string | null | undefined;
|
|
56
56
|
password?: string | undefined;
|
|
@@ -62,7 +62,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
62
62
|
birthDate: number;
|
|
63
63
|
birthMonth: number;
|
|
64
64
|
birthYear: number;
|
|
65
|
-
role: "
|
|
65
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
66
66
|
contactValue: string;
|
|
67
67
|
jacketId?: string | null | undefined;
|
|
68
68
|
password?: string | undefined;
|
|
@@ -83,7 +83,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
83
83
|
birthDate: number;
|
|
84
84
|
birthMonth: number;
|
|
85
85
|
birthYear: number;
|
|
86
|
-
role: "
|
|
86
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
87
87
|
contactValue: string;
|
|
88
88
|
jacketId?: string | null | undefined;
|
|
89
89
|
password?: string | undefined;
|
|
@@ -100,7 +100,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
100
100
|
birthDate: number;
|
|
101
101
|
birthMonth: number;
|
|
102
102
|
birthYear: number;
|
|
103
|
-
role: "
|
|
103
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
104
104
|
contactValue: string;
|
|
105
105
|
jacketId?: string | null | undefined;
|
|
106
106
|
password?: string | undefined;
|
|
@@ -161,7 +161,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
161
161
|
birthMonth: z.ZodOptional<z.ZodNumber>;
|
|
162
162
|
birthYear: z.ZodOptional<z.ZodNumber>;
|
|
163
163
|
}, "strip", z.ZodTypeAny, {
|
|
164
|
-
isActive?: boolean | undefined;
|
|
165
164
|
firstName?: string | undefined;
|
|
166
165
|
lastName?: string | undefined;
|
|
167
166
|
password?: string | undefined;
|
|
@@ -170,10 +169,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
170
169
|
birthDate?: number | undefined;
|
|
171
170
|
birthMonth?: number | undefined;
|
|
172
171
|
birthYear?: number | undefined;
|
|
172
|
+
isActive?: boolean | undefined;
|
|
173
173
|
isDeactivated?: boolean | undefined;
|
|
174
174
|
contactValue?: string | undefined;
|
|
175
175
|
}, {
|
|
176
|
-
isActive?: boolean | undefined;
|
|
177
176
|
firstName?: string | undefined;
|
|
178
177
|
lastName?: string | undefined;
|
|
179
178
|
password?: string | undefined;
|
|
@@ -182,10 +181,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
182
181
|
birthDate?: number | undefined;
|
|
183
182
|
birthMonth?: number | undefined;
|
|
184
183
|
birthYear?: number | undefined;
|
|
184
|
+
isActive?: boolean | undefined;
|
|
185
185
|
isDeactivated?: boolean | undefined;
|
|
186
186
|
contactValue?: string | undefined;
|
|
187
187
|
}>, {
|
|
188
|
-
isActive?: boolean | undefined;
|
|
189
188
|
firstName?: string | undefined;
|
|
190
189
|
lastName?: string | undefined;
|
|
191
190
|
password?: string | undefined;
|
|
@@ -194,10 +193,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
194
193
|
birthDate?: number | undefined;
|
|
195
194
|
birthMonth?: number | undefined;
|
|
196
195
|
birthYear?: number | undefined;
|
|
196
|
+
isActive?: boolean | undefined;
|
|
197
197
|
isDeactivated?: boolean | undefined;
|
|
198
198
|
contactValue?: string | undefined;
|
|
199
199
|
}, {
|
|
200
|
-
isActive?: boolean | undefined;
|
|
201
200
|
firstName?: string | undefined;
|
|
202
201
|
lastName?: string | undefined;
|
|
203
202
|
password?: string | undefined;
|
|
@@ -206,10 +205,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
206
205
|
birthDate?: number | undefined;
|
|
207
206
|
birthMonth?: number | undefined;
|
|
208
207
|
birthYear?: number | undefined;
|
|
208
|
+
isActive?: boolean | undefined;
|
|
209
209
|
isDeactivated?: boolean | undefined;
|
|
210
210
|
contactValue?: string | undefined;
|
|
211
211
|
}>, {
|
|
212
|
-
isActive?: boolean | undefined;
|
|
213
212
|
firstName?: string | undefined;
|
|
214
213
|
lastName?: string | undefined;
|
|
215
214
|
password?: string | undefined;
|
|
@@ -218,10 +217,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
218
217
|
birthDate?: number | undefined;
|
|
219
218
|
birthMonth?: number | undefined;
|
|
220
219
|
birthYear?: number | undefined;
|
|
220
|
+
isActive?: boolean | undefined;
|
|
221
221
|
isDeactivated?: boolean | undefined;
|
|
222
222
|
contactValue?: string | undefined;
|
|
223
223
|
}, {
|
|
224
|
-
isActive?: boolean | undefined;
|
|
225
224
|
firstName?: string | undefined;
|
|
226
225
|
lastName?: string | undefined;
|
|
227
226
|
password?: string | undefined;
|
|
@@ -230,6 +229,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
230
229
|
birthDate?: number | undefined;
|
|
231
230
|
birthMonth?: number | undefined;
|
|
232
231
|
birthYear?: number | undefined;
|
|
232
|
+
isActive?: boolean | undefined;
|
|
233
233
|
isDeactivated?: boolean | undefined;
|
|
234
234
|
contactValue?: string | undefined;
|
|
235
235
|
}>;
|
|
@@ -241,11 +241,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
241
241
|
authorization: string;
|
|
242
242
|
}>;
|
|
243
243
|
}, "strip", z.ZodTypeAny, {
|
|
244
|
-
params: {
|
|
245
|
-
userId: string;
|
|
246
|
-
};
|
|
247
244
|
body: {
|
|
248
|
-
isActive?: boolean | undefined;
|
|
249
245
|
firstName?: string | undefined;
|
|
250
246
|
lastName?: string | undefined;
|
|
251
247
|
password?: string | undefined;
|
|
@@ -254,18 +250,18 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
254
250
|
birthDate?: number | undefined;
|
|
255
251
|
birthMonth?: number | undefined;
|
|
256
252
|
birthYear?: number | undefined;
|
|
253
|
+
isActive?: boolean | undefined;
|
|
257
254
|
isDeactivated?: boolean | undefined;
|
|
258
255
|
contactValue?: string | undefined;
|
|
259
256
|
};
|
|
257
|
+
params: {
|
|
258
|
+
userId: string;
|
|
259
|
+
};
|
|
260
260
|
headers: {
|
|
261
261
|
authorization: string;
|
|
262
262
|
};
|
|
263
263
|
}, {
|
|
264
|
-
params: {
|
|
265
|
-
userId: string;
|
|
266
|
-
};
|
|
267
264
|
body: {
|
|
268
|
-
isActive?: boolean | undefined;
|
|
269
265
|
firstName?: string | undefined;
|
|
270
266
|
lastName?: string | undefined;
|
|
271
267
|
password?: string | undefined;
|
|
@@ -274,9 +270,13 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
274
270
|
birthDate?: number | undefined;
|
|
275
271
|
birthMonth?: number | undefined;
|
|
276
272
|
birthYear?: number | undefined;
|
|
273
|
+
isActive?: boolean | undefined;
|
|
277
274
|
isDeactivated?: boolean | undefined;
|
|
278
275
|
contactValue?: string | undefined;
|
|
279
276
|
};
|
|
277
|
+
params: {
|
|
278
|
+
userId: string;
|
|
279
|
+
};
|
|
280
280
|
headers: {
|
|
281
281
|
authorization: string;
|
|
282
282
|
};
|
|
@@ -296,31 +296,31 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
296
296
|
sortBy: z.ZodDefault<z.ZodEnum<["firstName", "lastLoginAt", "createdAt", "gender"]>>;
|
|
297
297
|
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
298
298
|
}, "strip", z.ZodTypeAny, {
|
|
299
|
-
sortBy: "createdAt" | "firstName" | "gender" | "lastLoginAt";
|
|
300
299
|
order: "asc" | "desc";
|
|
301
|
-
|
|
302
|
-
limit?: number | undefined;
|
|
300
|
+
sortBy: "firstName" | "gender" | "lastLoginAt" | "createdAt";
|
|
303
301
|
search?: string | undefined;
|
|
304
|
-
|
|
302
|
+
limit?: number | undefined;
|
|
305
303
|
gender?: "male" | "female" | undefined;
|
|
304
|
+
isActive?: boolean | undefined;
|
|
306
305
|
isDeactivated?: boolean | undefined;
|
|
307
|
-
role?: "
|
|
306
|
+
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
307
|
+
page?: number | undefined;
|
|
308
308
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
309
309
|
startDate?: string | undefined;
|
|
310
310
|
endDate?: string | undefined;
|
|
311
311
|
}, {
|
|
312
|
-
page?: string | undefined;
|
|
313
|
-
limit?: string | undefined;
|
|
314
312
|
search?: string | undefined;
|
|
315
|
-
sortBy?: "createdAt" | "firstName" | "gender" | "lastLoginAt" | undefined;
|
|
316
313
|
order?: "asc" | "desc" | undefined;
|
|
317
|
-
|
|
314
|
+
limit?: string | undefined;
|
|
318
315
|
gender?: "male" | "female" | undefined;
|
|
316
|
+
isActive?: "true" | "false" | undefined;
|
|
319
317
|
isDeactivated?: "true" | "false" | undefined;
|
|
320
|
-
role?: "
|
|
318
|
+
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
319
|
+
page?: string | undefined;
|
|
321
320
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
322
321
|
startDate?: string | undefined;
|
|
323
322
|
endDate?: string | undefined;
|
|
323
|
+
sortBy?: "firstName" | "gender" | "lastLoginAt" | "createdAt" | undefined;
|
|
324
324
|
}>;
|
|
325
325
|
headers: z.ZodObject<{
|
|
326
326
|
authorization: z.ZodString;
|
|
@@ -331,15 +331,15 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
331
331
|
}>;
|
|
332
332
|
}, "strip", z.ZodTypeAny, {
|
|
333
333
|
query: {
|
|
334
|
-
sortBy: "createdAt" | "firstName" | "gender" | "lastLoginAt";
|
|
335
334
|
order: "asc" | "desc";
|
|
336
|
-
|
|
337
|
-
limit?: number | undefined;
|
|
335
|
+
sortBy: "firstName" | "gender" | "lastLoginAt" | "createdAt";
|
|
338
336
|
search?: string | undefined;
|
|
339
|
-
|
|
337
|
+
limit?: number | undefined;
|
|
340
338
|
gender?: "male" | "female" | undefined;
|
|
339
|
+
isActive?: boolean | undefined;
|
|
341
340
|
isDeactivated?: boolean | undefined;
|
|
342
|
-
role?: "
|
|
341
|
+
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
342
|
+
page?: number | undefined;
|
|
343
343
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
344
344
|
startDate?: string | undefined;
|
|
345
345
|
endDate?: string | undefined;
|
|
@@ -349,18 +349,18 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
349
349
|
};
|
|
350
350
|
}, {
|
|
351
351
|
query: {
|
|
352
|
-
page?: string | undefined;
|
|
353
|
-
limit?: string | undefined;
|
|
354
352
|
search?: string | undefined;
|
|
355
|
-
sortBy?: "createdAt" | "firstName" | "gender" | "lastLoginAt" | undefined;
|
|
356
353
|
order?: "asc" | "desc" | undefined;
|
|
357
|
-
|
|
354
|
+
limit?: string | undefined;
|
|
358
355
|
gender?: "male" | "female" | undefined;
|
|
356
|
+
isActive?: "true" | "false" | undefined;
|
|
359
357
|
isDeactivated?: "true" | "false" | undefined;
|
|
360
|
-
role?: "
|
|
358
|
+
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
359
|
+
page?: string | undefined;
|
|
361
360
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
362
361
|
startDate?: string | undefined;
|
|
363
362
|
endDate?: string | undefined;
|
|
363
|
+
sortBy?: "firstName" | "gender" | "lastLoginAt" | "createdAt" | undefined;
|
|
364
364
|
};
|
|
365
365
|
headers: {
|
|
366
366
|
authorization: string;
|
|
@@ -381,16 +381,16 @@ export declare const viewProfileSchema: z.ZodObject<{
|
|
|
381
381
|
headers: {
|
|
382
382
|
authorization: string;
|
|
383
383
|
};
|
|
384
|
-
params?: {} | undefined;
|
|
385
384
|
body?: {} | undefined;
|
|
386
385
|
query?: {} | undefined;
|
|
386
|
+
params?: {} | undefined;
|
|
387
387
|
}, {
|
|
388
388
|
headers: {
|
|
389
389
|
authorization: string;
|
|
390
390
|
};
|
|
391
|
-
params?: {} | undefined;
|
|
392
391
|
body?: {} | undefined;
|
|
393
392
|
query?: {} | undefined;
|
|
393
|
+
params?: {} | undefined;
|
|
394
394
|
}>;
|
|
395
395
|
export declare const passengerSignupSchema: z.ZodObject<{
|
|
396
396
|
body: z.ZodEffects<z.ZodObject<{
|
|
@@ -640,8 +640,8 @@ export declare const createRiderSchema: z.ZodObject<{
|
|
|
640
640
|
birthYear: number;
|
|
641
641
|
contactValue: string;
|
|
642
642
|
};
|
|
643
|
-
params?: {} | undefined;
|
|
644
643
|
query?: {} | undefined;
|
|
644
|
+
params?: {} | undefined;
|
|
645
645
|
}, {
|
|
646
646
|
body: {
|
|
647
647
|
firstName: string;
|
|
@@ -654,8 +654,8 @@ export declare const createRiderSchema: z.ZodObject<{
|
|
|
654
654
|
birthYear: number;
|
|
655
655
|
contactValue: string;
|
|
656
656
|
};
|
|
657
|
-
params?: {} | undefined;
|
|
658
657
|
query?: {} | undefined;
|
|
658
|
+
params?: {} | undefined;
|
|
659
659
|
}>;
|
|
660
660
|
export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
661
661
|
params: z.ZodObject<{
|
|
@@ -745,9 +745,6 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
|
745
745
|
authorization: string;
|
|
746
746
|
}>;
|
|
747
747
|
}, "strip", z.ZodTypeAny, {
|
|
748
|
-
params: {
|
|
749
|
-
id: string;
|
|
750
|
-
};
|
|
751
748
|
body: {
|
|
752
749
|
firstName?: string | undefined;
|
|
753
750
|
lastName?: string | undefined;
|
|
@@ -759,14 +756,14 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
|
759
756
|
birthYear?: number | undefined;
|
|
760
757
|
contactValue?: string | undefined;
|
|
761
758
|
};
|
|
759
|
+
params: {
|
|
760
|
+
id: string;
|
|
761
|
+
};
|
|
762
762
|
headers: {
|
|
763
763
|
authorization: string;
|
|
764
764
|
};
|
|
765
765
|
query?: {} | undefined;
|
|
766
766
|
}, {
|
|
767
|
-
params: {
|
|
768
|
-
id: string;
|
|
769
|
-
};
|
|
770
767
|
body: {
|
|
771
768
|
firstName?: string | undefined;
|
|
772
769
|
lastName?: string | undefined;
|
|
@@ -778,6 +775,9 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
|
778
775
|
birthYear?: number | undefined;
|
|
779
776
|
contactValue?: string | undefined;
|
|
780
777
|
};
|
|
778
|
+
params: {
|
|
779
|
+
id: string;
|
|
780
|
+
};
|
|
781
781
|
headers: {
|
|
782
782
|
authorization: string;
|
|
783
783
|
};
|
|
@@ -1010,22 +1010,22 @@ export declare const confirmVerificationSchema: z.ZodObject<{
|
|
|
1010
1010
|
authorization: string;
|
|
1011
1011
|
}>;
|
|
1012
1012
|
}, "strip", z.ZodTypeAny, {
|
|
1013
|
-
params: {
|
|
1014
|
-
contactId: string;
|
|
1015
|
-
};
|
|
1016
1013
|
body: {
|
|
1017
1014
|
otp: string;
|
|
1018
1015
|
};
|
|
1016
|
+
params: {
|
|
1017
|
+
contactId: string;
|
|
1018
|
+
};
|
|
1019
1019
|
headers: {
|
|
1020
1020
|
authorization: string;
|
|
1021
1021
|
};
|
|
1022
1022
|
}, {
|
|
1023
|
-
params: {
|
|
1024
|
-
contactId: string;
|
|
1025
|
-
};
|
|
1026
1023
|
body: {
|
|
1027
1024
|
otp: string;
|
|
1028
1025
|
};
|
|
1026
|
+
params: {
|
|
1027
|
+
contactId: string;
|
|
1028
|
+
};
|
|
1029
1029
|
headers: {
|
|
1030
1030
|
authorization: string;
|
|
1031
1031
|
};
|
|
@@ -35,21 +35,21 @@ export declare const getUserSuspensionsSchema: z.ZodObject<{
|
|
|
35
35
|
includeResolved?: "true" | "false" | undefined;
|
|
36
36
|
}>;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
params: {
|
|
39
|
-
userId: string;
|
|
40
|
-
};
|
|
41
38
|
query: {
|
|
42
39
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
43
40
|
includeResolved?: "true" | "false" | undefined;
|
|
44
41
|
};
|
|
45
|
-
}, {
|
|
46
42
|
params: {
|
|
47
43
|
userId: string;
|
|
48
44
|
};
|
|
45
|
+
}, {
|
|
49
46
|
query: {
|
|
50
47
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
51
48
|
includeResolved?: "true" | "false" | undefined;
|
|
52
49
|
};
|
|
50
|
+
params: {
|
|
51
|
+
userId: string;
|
|
52
|
+
};
|
|
53
53
|
}>;
|
|
54
54
|
export declare const createSuspensionSchema: z.ZodObject<{
|
|
55
55
|
params: z.ZodObject<{
|
|
@@ -70,19 +70,19 @@ export declare const createSuspensionSchema: z.ZodObject<{
|
|
|
70
70
|
endsAt: string;
|
|
71
71
|
}>;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
params: {
|
|
74
|
-
userId: string;
|
|
75
|
-
};
|
|
76
73
|
body: {
|
|
77
74
|
reason: string;
|
|
78
75
|
endsAt: string;
|
|
79
76
|
};
|
|
80
|
-
}, {
|
|
81
77
|
params: {
|
|
82
78
|
userId: string;
|
|
83
79
|
};
|
|
80
|
+
}, {
|
|
84
81
|
body: {
|
|
85
82
|
reason: string;
|
|
86
83
|
endsAt: string;
|
|
87
84
|
};
|
|
85
|
+
params: {
|
|
86
|
+
userId: string;
|
|
87
|
+
};
|
|
88
88
|
}>;
|
|
@@ -49,9 +49,6 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
49
49
|
plateNumber?: string | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
params: {
|
|
53
|
-
userId: string;
|
|
54
|
-
};
|
|
55
52
|
body: {
|
|
56
53
|
jacketId: string;
|
|
57
54
|
gender: "male" | "female";
|
|
@@ -61,10 +58,10 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
61
58
|
contactValue: string;
|
|
62
59
|
plateNumber?: string | undefined;
|
|
63
60
|
};
|
|
64
|
-
}, {
|
|
65
61
|
params: {
|
|
66
62
|
userId: string;
|
|
67
63
|
};
|
|
64
|
+
}, {
|
|
68
65
|
body: {
|
|
69
66
|
jacketId: string;
|
|
70
67
|
gender: "male" | "female";
|
|
@@ -74,6 +71,9 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
74
71
|
contactValue: string;
|
|
75
72
|
plateNumber?: string | undefined;
|
|
76
73
|
};
|
|
74
|
+
params: {
|
|
75
|
+
userId: string;
|
|
76
|
+
};
|
|
77
77
|
}>;
|
|
78
78
|
export declare const updateRiderSchema: z.ZodObject<{
|
|
79
79
|
params: z.ZodObject<{
|
|
@@ -135,9 +135,6 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
135
135
|
contactValue?: string | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
|
-
params: {
|
|
139
|
-
userId: string;
|
|
140
|
-
};
|
|
141
138
|
body: {
|
|
142
139
|
firstName?: string | undefined;
|
|
143
140
|
lastName?: string | undefined;
|
|
@@ -149,10 +146,10 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
149
146
|
birthYear?: number | undefined;
|
|
150
147
|
contactValue?: string | undefined;
|
|
151
148
|
};
|
|
152
|
-
}, {
|
|
153
149
|
params: {
|
|
154
150
|
userId: string;
|
|
155
151
|
};
|
|
152
|
+
}, {
|
|
156
153
|
body: {
|
|
157
154
|
firstName?: string | undefined;
|
|
158
155
|
lastName?: string | undefined;
|
|
@@ -164,6 +161,9 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
164
161
|
birthYear?: number | undefined;
|
|
165
162
|
contactValue?: string | undefined;
|
|
166
163
|
};
|
|
164
|
+
params: {
|
|
165
|
+
userId: string;
|
|
166
|
+
};
|
|
167
167
|
}>;
|
|
168
168
|
export declare const deleteUserSchema: z.ZodObject<{
|
|
169
169
|
params: 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
|
-
page?: number | undefined;
|
|
216
|
-
limit?: number | undefined;
|
|
217
215
|
search?: string | undefined;
|
|
218
|
-
|
|
219
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
220
|
-
isActive?: "true" | "false" | undefined;
|
|
216
|
+
limit?: number | undefined;
|
|
221
217
|
gender?: "male" | "female" | undefined;
|
|
218
|
+
isActive?: "true" | "false" | undefined;
|
|
222
219
|
isDeactivated?: "true" | "false" | undefined;
|
|
223
220
|
role?: string | undefined;
|
|
221
|
+
page?: number | undefined;
|
|
224
222
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
223
|
+
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
224
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
225
225
|
}, {
|
|
226
|
-
page?: string | undefined;
|
|
227
|
-
limit?: string | undefined;
|
|
228
226
|
search?: string | undefined;
|
|
229
|
-
|
|
230
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
231
|
-
isActive?: "true" | "false" | undefined;
|
|
227
|
+
limit?: string | undefined;
|
|
232
228
|
gender?: "male" | "female" | undefined;
|
|
229
|
+
isActive?: "true" | "false" | undefined;
|
|
233
230
|
isDeactivated?: "true" | "false" | undefined;
|
|
234
231
|
role?: string | undefined;
|
|
232
|
+
page?: string | undefined;
|
|
235
233
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
234
|
+
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
235
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
236
236
|
}>;
|
|
237
237
|
}, "strip", z.ZodTypeAny, {
|
|
238
238
|
query: {
|
|
239
|
-
page?: number | undefined;
|
|
240
|
-
limit?: number | undefined;
|
|
241
239
|
search?: string | undefined;
|
|
242
|
-
|
|
243
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
244
|
-
isActive?: "true" | "false" | undefined;
|
|
240
|
+
limit?: number | undefined;
|
|
245
241
|
gender?: "male" | "female" | undefined;
|
|
242
|
+
isActive?: "true" | "false" | undefined;
|
|
246
243
|
isDeactivated?: "true" | "false" | undefined;
|
|
247
244
|
role?: string | undefined;
|
|
245
|
+
page?: number | undefined;
|
|
248
246
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
247
|
+
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
248
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
249
249
|
};
|
|
250
250
|
}, {
|
|
251
251
|
query: {
|
|
252
|
-
page?: string | undefined;
|
|
253
|
-
limit?: string | undefined;
|
|
254
252
|
search?: string | undefined;
|
|
255
|
-
|
|
256
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
257
|
-
isActive?: "true" | "false" | undefined;
|
|
253
|
+
limit?: string | undefined;
|
|
258
254
|
gender?: "male" | "female" | undefined;
|
|
255
|
+
isActive?: "true" | "false" | undefined;
|
|
259
256
|
isDeactivated?: "true" | "false" | undefined;
|
|
260
257
|
role?: string | undefined;
|
|
258
|
+
page?: string | undefined;
|
|
261
259
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
260
|
+
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
261
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
262
262
|
};
|
|
263
263
|
}>;
|
|
264
264
|
export declare const hireAdminSchema: z.ZodObject<{
|
|
@@ -377,21 +377,21 @@ export declare const promoteAdminSchema: z.ZodObject<{
|
|
|
377
377
|
password?: string | undefined;
|
|
378
378
|
}>;
|
|
379
379
|
}, "strip", z.ZodTypeAny, {
|
|
380
|
-
params: {
|
|
381
|
-
userId: string;
|
|
382
|
-
};
|
|
383
380
|
body: {
|
|
384
381
|
targetRole: "ADMIN" | "SUPER_ADMIN";
|
|
385
382
|
password?: string | undefined;
|
|
386
383
|
};
|
|
387
|
-
}, {
|
|
388
384
|
params: {
|
|
389
385
|
userId: string;
|
|
390
386
|
};
|
|
387
|
+
}, {
|
|
391
388
|
body: {
|
|
392
389
|
targetRole: "ADMIN" | "SUPER_ADMIN";
|
|
393
390
|
password?: string | undefined;
|
|
394
391
|
};
|
|
392
|
+
params: {
|
|
393
|
+
userId: string;
|
|
394
|
+
};
|
|
395
395
|
}>;
|
|
396
396
|
export declare const demoteAdminSchema: z.ZodObject<{
|
|
397
397
|
params: z.ZodObject<{
|
|
@@ -409,19 +409,19 @@ export declare const demoteAdminSchema: z.ZodObject<{
|
|
|
409
409
|
targetRole: "ADMIN" | "AGENT";
|
|
410
410
|
}>;
|
|
411
411
|
}, "strip", z.ZodTypeAny, {
|
|
412
|
-
params: {
|
|
413
|
-
userId: string;
|
|
414
|
-
};
|
|
415
412
|
body: {
|
|
416
413
|
targetRole: "ADMIN" | "AGENT";
|
|
417
414
|
};
|
|
418
|
-
}, {
|
|
419
415
|
params: {
|
|
420
416
|
userId: string;
|
|
421
417
|
};
|
|
418
|
+
}, {
|
|
422
419
|
body: {
|
|
423
420
|
targetRole: "ADMIN" | "AGENT";
|
|
424
421
|
};
|
|
422
|
+
params: {
|
|
423
|
+
userId: string;
|
|
424
|
+
};
|
|
425
425
|
}>;
|
|
426
426
|
export declare const fireEmployeeSchema: z.ZodObject<{
|
|
427
427
|
params: z.ZodObject<{
|
|
@@ -439,19 +439,19 @@ export declare const fireEmployeeSchema: z.ZodObject<{
|
|
|
439
439
|
reason?: string | undefined;
|
|
440
440
|
}>;
|
|
441
441
|
}, "strip", z.ZodTypeAny, {
|
|
442
|
-
params: {
|
|
443
|
-
userId: string;
|
|
444
|
-
};
|
|
445
442
|
body: {
|
|
446
443
|
reason?: string | undefined;
|
|
447
444
|
};
|
|
448
|
-
}, {
|
|
449
445
|
params: {
|
|
450
446
|
userId: string;
|
|
451
447
|
};
|
|
448
|
+
}, {
|
|
452
449
|
body: {
|
|
453
450
|
reason?: string | undefined;
|
|
454
451
|
};
|
|
452
|
+
params: {
|
|
453
|
+
userId: string;
|
|
454
|
+
};
|
|
455
455
|
}>;
|
|
456
456
|
export declare const updateAdminSchema: z.ZodObject<{
|
|
457
457
|
params: z.ZodObject<{
|
|
@@ -503,9 +503,6 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
503
503
|
contactValue?: string | undefined;
|
|
504
504
|
}>;
|
|
505
505
|
}, "strip", z.ZodTypeAny, {
|
|
506
|
-
params: {
|
|
507
|
-
userId: string;
|
|
508
|
-
};
|
|
509
506
|
body: {
|
|
510
507
|
firstName?: string | undefined;
|
|
511
508
|
lastName?: string | undefined;
|
|
@@ -515,10 +512,10 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
515
512
|
birthYear?: number | undefined;
|
|
516
513
|
contactValue?: string | undefined;
|
|
517
514
|
};
|
|
518
|
-
}, {
|
|
519
515
|
params: {
|
|
520
516
|
userId: string;
|
|
521
517
|
};
|
|
518
|
+
}, {
|
|
522
519
|
body: {
|
|
523
520
|
firstName?: string | undefined;
|
|
524
521
|
lastName?: string | undefined;
|
|
@@ -528,6 +525,9 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
528
525
|
birthYear?: number | undefined;
|
|
529
526
|
contactValue?: string | undefined;
|
|
530
527
|
};
|
|
528
|
+
params: {
|
|
529
|
+
userId: string;
|
|
530
|
+
};
|
|
531
531
|
}>;
|
|
532
532
|
export declare const resetPasswordSchema: z.ZodObject<{
|
|
533
533
|
params: z.ZodObject<{
|
|
@@ -606,25 +606,25 @@ export declare const addUserContactSchema: z.ZodObject<{
|
|
|
606
606
|
isPrimary?: boolean | undefined;
|
|
607
607
|
}>;
|
|
608
608
|
}, "strip", z.ZodTypeAny, {
|
|
609
|
-
params: {
|
|
610
|
-
userId: string;
|
|
611
|
-
};
|
|
612
609
|
body: {
|
|
613
610
|
contactValue: string;
|
|
614
611
|
type?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
615
612
|
isVerified?: boolean | undefined;
|
|
616
613
|
isPrimary?: boolean | undefined;
|
|
617
614
|
};
|
|
618
|
-
}, {
|
|
619
615
|
params: {
|
|
620
616
|
userId: string;
|
|
621
617
|
};
|
|
618
|
+
}, {
|
|
622
619
|
body: {
|
|
623
620
|
contactValue: string;
|
|
624
621
|
type?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
625
622
|
isVerified?: boolean | undefined;
|
|
626
623
|
isPrimary?: boolean | undefined;
|
|
627
624
|
};
|
|
625
|
+
params: {
|
|
626
|
+
userId: string;
|
|
627
|
+
};
|
|
628
628
|
}>;
|
|
629
629
|
export declare const verifyUserContactSchema: z.ZodObject<{
|
|
630
630
|
params: z.ZodObject<{
|