vr-commons 1.0.112 → 1.0.114
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/middlewares/auth.users.middlewares.js +2 -2
- package/dist/utils/profiles.utils.d.ts +1 -2
- package/dist/utils/profiles.utils.js +3 -4
- package/dist/validations/account.validations.d.ts +231 -0
- package/dist/validations/account.validations.js +136 -3
- package/dist/validations/admin.devicePayment.validations.d.ts +50 -50
- package/dist/validations/admin.devices.validations.d.ts +28 -28
- 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 +189 -47
- package/dist/validations/auth.validations.js +133 -18
- 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 +14 -14
- package/dist/validations/moderation.validations.d.ts +114 -114
- package/dist/validations/payinstallment.validations.d.ts +5 -5
- package/dist/validations/pricing.validations.d.ts +30 -30
- package/dist/validations/pricings.validations.d.ts +30 -30
- package/dist/validations/product.validations.d.ts +28 -28
- package/dist/validations/profiles.validations.d.ts +265 -117
- package/dist/validations/profiles.validations.js +135 -46
- package/dist/validations/suspensions.validations.d.ts +8 -8
- package/dist/validations/users.admin.validations.d.ts +213 -62
- package/dist/validations/users.admin.validations.js +105 -13
- package/package.json +2 -2
|
@@ -9,7 +9,7 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
9
9
|
}>;
|
|
10
10
|
body: z.ZodEffects<z.ZodObject<{
|
|
11
11
|
jacketId: z.ZodString;
|
|
12
|
-
|
|
12
|
+
contactValue: z.ZodEffects<z.ZodString, string, string>;
|
|
13
13
|
plateNumber: z.ZodOptional<z.ZodString>;
|
|
14
14
|
gender: z.ZodEnum<["male", "female"]>;
|
|
15
15
|
birthDate: z.ZodNumber;
|
|
@@ -21,7 +21,7 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
21
21
|
birthDate: number;
|
|
22
22
|
birthMonth: number;
|
|
23
23
|
birthYear: number;
|
|
24
|
-
|
|
24
|
+
contactValue: string;
|
|
25
25
|
plateNumber?: string | undefined;
|
|
26
26
|
}, {
|
|
27
27
|
jacketId: string;
|
|
@@ -29,7 +29,7 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
29
29
|
birthDate: number;
|
|
30
30
|
birthMonth: number;
|
|
31
31
|
birthYear: number;
|
|
32
|
-
|
|
32
|
+
contactValue: string;
|
|
33
33
|
plateNumber?: string | undefined;
|
|
34
34
|
}>, {
|
|
35
35
|
jacketId: string;
|
|
@@ -37,7 +37,7 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
37
37
|
birthDate: number;
|
|
38
38
|
birthMonth: number;
|
|
39
39
|
birthYear: number;
|
|
40
|
-
|
|
40
|
+
contactValue: string;
|
|
41
41
|
plateNumber?: string | undefined;
|
|
42
42
|
}, {
|
|
43
43
|
jacketId: string;
|
|
@@ -45,7 +45,7 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
45
45
|
birthDate: number;
|
|
46
46
|
birthMonth: number;
|
|
47
47
|
birthYear: number;
|
|
48
|
-
|
|
48
|
+
contactValue: string;
|
|
49
49
|
plateNumber?: string | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -58,7 +58,7 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
58
58
|
birthDate: number;
|
|
59
59
|
birthMonth: number;
|
|
60
60
|
birthYear: number;
|
|
61
|
-
|
|
61
|
+
contactValue: string;
|
|
62
62
|
plateNumber?: string | undefined;
|
|
63
63
|
};
|
|
64
64
|
}, {
|
|
@@ -71,7 +71,7 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
71
71
|
birthDate: number;
|
|
72
72
|
birthMonth: number;
|
|
73
73
|
birthYear: number;
|
|
74
|
-
|
|
74
|
+
contactValue: string;
|
|
75
75
|
plateNumber?: string | undefined;
|
|
76
76
|
};
|
|
77
77
|
}>;
|
|
@@ -86,10 +86,9 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
86
86
|
body: z.ZodEffects<z.ZodObject<{
|
|
87
87
|
firstName: z.ZodOptional<z.ZodString>;
|
|
88
88
|
lastName: z.ZodOptional<z.ZodString>;
|
|
89
|
-
|
|
89
|
+
contactValue: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
90
90
|
jacketId: z.ZodOptional<z.ZodString>;
|
|
91
91
|
plateNumber: z.ZodOptional<z.ZodString>;
|
|
92
|
-
email: z.ZodOptional<z.ZodString>;
|
|
93
92
|
gender: z.ZodOptional<z.ZodEnum<["male", "female"]>>;
|
|
94
93
|
birthDate: z.ZodOptional<z.ZodNumber>;
|
|
95
94
|
birthMonth: z.ZodOptional<z.ZodNumber>;
|
|
@@ -98,46 +97,42 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
98
97
|
firstName?: string | undefined;
|
|
99
98
|
lastName?: string | undefined;
|
|
100
99
|
jacketId?: string | undefined;
|
|
101
|
-
email?: string | undefined;
|
|
102
100
|
plateNumber?: string | undefined;
|
|
103
101
|
gender?: "male" | "female" | undefined;
|
|
104
102
|
birthDate?: number | undefined;
|
|
105
103
|
birthMonth?: number | undefined;
|
|
106
104
|
birthYear?: number | undefined;
|
|
107
|
-
|
|
105
|
+
contactValue?: string | undefined;
|
|
108
106
|
}, {
|
|
109
107
|
firstName?: string | undefined;
|
|
110
108
|
lastName?: string | undefined;
|
|
111
109
|
jacketId?: string | undefined;
|
|
112
|
-
email?: string | undefined;
|
|
113
110
|
plateNumber?: string | undefined;
|
|
114
111
|
gender?: "male" | "female" | undefined;
|
|
115
112
|
birthDate?: number | undefined;
|
|
116
113
|
birthMonth?: number | undefined;
|
|
117
114
|
birthYear?: number | undefined;
|
|
118
|
-
|
|
115
|
+
contactValue?: string | undefined;
|
|
119
116
|
}>, {
|
|
120
117
|
firstName?: string | undefined;
|
|
121
118
|
lastName?: string | undefined;
|
|
122
119
|
jacketId?: string | undefined;
|
|
123
|
-
email?: string | undefined;
|
|
124
120
|
plateNumber?: string | undefined;
|
|
125
121
|
gender?: "male" | "female" | undefined;
|
|
126
122
|
birthDate?: number | undefined;
|
|
127
123
|
birthMonth?: number | undefined;
|
|
128
124
|
birthYear?: number | undefined;
|
|
129
|
-
|
|
125
|
+
contactValue?: string | undefined;
|
|
130
126
|
}, {
|
|
131
127
|
firstName?: string | undefined;
|
|
132
128
|
lastName?: string | undefined;
|
|
133
129
|
jacketId?: string | undefined;
|
|
134
|
-
email?: string | undefined;
|
|
135
130
|
plateNumber?: string | undefined;
|
|
136
131
|
gender?: "male" | "female" | undefined;
|
|
137
132
|
birthDate?: number | undefined;
|
|
138
133
|
birthMonth?: number | undefined;
|
|
139
134
|
birthYear?: number | undefined;
|
|
140
|
-
|
|
135
|
+
contactValue?: string | undefined;
|
|
141
136
|
}>;
|
|
142
137
|
}, "strip", z.ZodTypeAny, {
|
|
143
138
|
params: {
|
|
@@ -147,13 +142,12 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
147
142
|
firstName?: string | undefined;
|
|
148
143
|
lastName?: string | undefined;
|
|
149
144
|
jacketId?: string | undefined;
|
|
150
|
-
email?: string | undefined;
|
|
151
145
|
plateNumber?: string | undefined;
|
|
152
146
|
gender?: "male" | "female" | undefined;
|
|
153
147
|
birthDate?: number | undefined;
|
|
154
148
|
birthMonth?: number | undefined;
|
|
155
149
|
birthYear?: number | undefined;
|
|
156
|
-
|
|
150
|
+
contactValue?: string | undefined;
|
|
157
151
|
};
|
|
158
152
|
}, {
|
|
159
153
|
params: {
|
|
@@ -163,13 +157,12 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
163
157
|
firstName?: string | undefined;
|
|
164
158
|
lastName?: string | undefined;
|
|
165
159
|
jacketId?: string | undefined;
|
|
166
|
-
email?: string | undefined;
|
|
167
160
|
plateNumber?: string | undefined;
|
|
168
161
|
gender?: "male" | "female" | undefined;
|
|
169
162
|
birthDate?: number | undefined;
|
|
170
163
|
birthMonth?: number | undefined;
|
|
171
164
|
birthYear?: number | undefined;
|
|
172
|
-
|
|
165
|
+
contactValue?: string | undefined;
|
|
173
166
|
};
|
|
174
167
|
}>;
|
|
175
168
|
export declare const deleteUserSchema: z.ZodObject<{
|
|
@@ -215,60 +208,64 @@ export declare const getUsersSchema: z.ZodObject<{
|
|
|
215
208
|
isDeactivated: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
|
|
216
209
|
role: z.ZodOptional<z.ZodString>;
|
|
217
210
|
gender: z.ZodOptional<z.ZodEnum<["male", "female"]>>;
|
|
211
|
+
contactType: z.ZodOptional<z.ZodEnum<["EMAIL", "PHONE", "WHATSAPP"]>>;
|
|
218
212
|
sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "firstName", "lastName", "gender"]>>;
|
|
219
213
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
220
214
|
}, "strip", z.ZodTypeAny, {
|
|
221
|
-
page?: number | undefined;
|
|
222
|
-
limit?: number | undefined;
|
|
223
215
|
search?: string | undefined;
|
|
224
|
-
|
|
225
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
216
|
+
limit?: number | undefined;
|
|
226
217
|
gender?: "male" | "female" | undefined;
|
|
227
218
|
isActive?: "true" | "false" | undefined;
|
|
228
219
|
isDeactivated?: "true" | "false" | undefined;
|
|
229
220
|
role?: string | undefined;
|
|
221
|
+
page?: number | undefined;
|
|
222
|
+
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
223
|
+
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
224
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
230
225
|
}, {
|
|
231
|
-
page?: string | undefined;
|
|
232
|
-
limit?: string | undefined;
|
|
233
226
|
search?: string | undefined;
|
|
234
|
-
|
|
235
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
227
|
+
limit?: string | undefined;
|
|
236
228
|
gender?: "male" | "female" | undefined;
|
|
237
229
|
isActive?: "true" | "false" | undefined;
|
|
238
230
|
isDeactivated?: "true" | "false" | undefined;
|
|
239
231
|
role?: string | undefined;
|
|
232
|
+
page?: string | undefined;
|
|
233
|
+
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
234
|
+
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
235
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
240
236
|
}>;
|
|
241
237
|
}, "strip", z.ZodTypeAny, {
|
|
242
238
|
query: {
|
|
243
|
-
page?: number | undefined;
|
|
244
|
-
limit?: number | undefined;
|
|
245
239
|
search?: string | undefined;
|
|
246
|
-
|
|
247
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
240
|
+
limit?: number | undefined;
|
|
248
241
|
gender?: "male" | "female" | undefined;
|
|
249
242
|
isActive?: "true" | "false" | undefined;
|
|
250
243
|
isDeactivated?: "true" | "false" | undefined;
|
|
251
244
|
role?: string | undefined;
|
|
245
|
+
page?: number | undefined;
|
|
246
|
+
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
247
|
+
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
248
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
252
249
|
};
|
|
253
250
|
}, {
|
|
254
251
|
query: {
|
|
255
|
-
page?: string | undefined;
|
|
256
|
-
limit?: string | undefined;
|
|
257
252
|
search?: string | undefined;
|
|
258
|
-
|
|
259
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
253
|
+
limit?: string | undefined;
|
|
260
254
|
gender?: "male" | "female" | undefined;
|
|
261
255
|
isActive?: "true" | "false" | undefined;
|
|
262
256
|
isDeactivated?: "true" | "false" | undefined;
|
|
263
257
|
role?: string | undefined;
|
|
258
|
+
page?: string | undefined;
|
|
259
|
+
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
260
|
+
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
261
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
264
262
|
};
|
|
265
263
|
}>;
|
|
266
264
|
export declare const hireAdminSchema: z.ZodObject<{
|
|
267
265
|
body: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
268
|
-
|
|
266
|
+
contactValue: z.ZodEffects<z.ZodString, string, string>;
|
|
269
267
|
firstName: z.ZodString;
|
|
270
268
|
lastName: z.ZodString;
|
|
271
|
-
phoneNumber: z.ZodString;
|
|
272
269
|
password: z.ZodString;
|
|
273
270
|
role: z.ZodEnum<["AGENT", "ADMIN", "SUPER_ADMIN"]>;
|
|
274
271
|
superAdminPassword: z.ZodOptional<z.ZodString>;
|
|
@@ -279,102 +276,94 @@ export declare const hireAdminSchema: z.ZodObject<{
|
|
|
279
276
|
}, "strip", z.ZodTypeAny, {
|
|
280
277
|
firstName: string;
|
|
281
278
|
lastName: string;
|
|
282
|
-
email: string;
|
|
283
279
|
password: string;
|
|
284
280
|
gender: "male" | "female";
|
|
285
281
|
birthDate: number;
|
|
286
282
|
birthMonth: number;
|
|
287
283
|
birthYear: number;
|
|
288
284
|
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
289
|
-
|
|
285
|
+
contactValue: string;
|
|
290
286
|
superAdminPassword?: string | undefined;
|
|
291
287
|
}, {
|
|
292
288
|
firstName: string;
|
|
293
289
|
lastName: string;
|
|
294
|
-
email: string;
|
|
295
290
|
password: string;
|
|
296
291
|
gender: "male" | "female";
|
|
297
292
|
birthDate: number;
|
|
298
293
|
birthMonth: number;
|
|
299
294
|
birthYear: number;
|
|
300
295
|
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
301
|
-
|
|
296
|
+
contactValue: string;
|
|
302
297
|
superAdminPassword?: string | undefined;
|
|
303
298
|
}>, {
|
|
304
299
|
firstName: string;
|
|
305
300
|
lastName: string;
|
|
306
|
-
email: string;
|
|
307
301
|
password: string;
|
|
308
302
|
gender: "male" | "female";
|
|
309
303
|
birthDate: number;
|
|
310
304
|
birthMonth: number;
|
|
311
305
|
birthYear: number;
|
|
312
306
|
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
313
|
-
|
|
307
|
+
contactValue: string;
|
|
314
308
|
superAdminPassword?: string | undefined;
|
|
315
309
|
}, {
|
|
316
310
|
firstName: string;
|
|
317
311
|
lastName: string;
|
|
318
|
-
email: string;
|
|
319
312
|
password: string;
|
|
320
313
|
gender: "male" | "female";
|
|
321
314
|
birthDate: number;
|
|
322
315
|
birthMonth: number;
|
|
323
316
|
birthYear: number;
|
|
324
317
|
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
325
|
-
|
|
318
|
+
contactValue: string;
|
|
326
319
|
superAdminPassword?: string | undefined;
|
|
327
320
|
}>, {
|
|
328
321
|
firstName: string;
|
|
329
322
|
lastName: string;
|
|
330
|
-
email: string;
|
|
331
323
|
password: string;
|
|
332
324
|
gender: "male" | "female";
|
|
333
325
|
birthDate: number;
|
|
334
326
|
birthMonth: number;
|
|
335
327
|
birthYear: number;
|
|
336
328
|
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
337
|
-
|
|
329
|
+
contactValue: string;
|
|
338
330
|
superAdminPassword?: string | undefined;
|
|
339
331
|
}, {
|
|
340
332
|
firstName: string;
|
|
341
333
|
lastName: string;
|
|
342
|
-
email: string;
|
|
343
334
|
password: string;
|
|
344
335
|
gender: "male" | "female";
|
|
345
336
|
birthDate: number;
|
|
346
337
|
birthMonth: number;
|
|
347
338
|
birthYear: number;
|
|
348
339
|
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
349
|
-
|
|
340
|
+
contactValue: string;
|
|
350
341
|
superAdminPassword?: string | undefined;
|
|
351
342
|
}>;
|
|
352
343
|
}, "strip", z.ZodTypeAny, {
|
|
353
344
|
body: {
|
|
354
345
|
firstName: string;
|
|
355
346
|
lastName: string;
|
|
356
|
-
email: string;
|
|
357
347
|
password: string;
|
|
358
348
|
gender: "male" | "female";
|
|
359
349
|
birthDate: number;
|
|
360
350
|
birthMonth: number;
|
|
361
351
|
birthYear: number;
|
|
362
352
|
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
363
|
-
|
|
353
|
+
contactValue: string;
|
|
364
354
|
superAdminPassword?: string | undefined;
|
|
365
355
|
};
|
|
366
356
|
}, {
|
|
367
357
|
body: {
|
|
368
358
|
firstName: string;
|
|
369
359
|
lastName: string;
|
|
370
|
-
email: string;
|
|
371
360
|
password: string;
|
|
372
361
|
gender: "male" | "female";
|
|
373
362
|
birthDate: number;
|
|
374
363
|
birthMonth: number;
|
|
375
364
|
birthYear: number;
|
|
376
365
|
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
377
|
-
|
|
366
|
+
contactValue: string;
|
|
378
367
|
superAdminPassword?: string | undefined;
|
|
379
368
|
};
|
|
380
369
|
}>;
|
|
@@ -484,7 +473,7 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
484
473
|
body: z.ZodEffects<z.ZodObject<{
|
|
485
474
|
firstName: z.ZodOptional<z.ZodString>;
|
|
486
475
|
lastName: z.ZodOptional<z.ZodString>;
|
|
487
|
-
|
|
476
|
+
contactValue: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
488
477
|
gender: z.ZodOptional<z.ZodEnum<["male", "female"]>>;
|
|
489
478
|
birthDate: z.ZodOptional<z.ZodNumber>;
|
|
490
479
|
birthMonth: z.ZodOptional<z.ZodNumber>;
|
|
@@ -492,35 +481,35 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
492
481
|
}, "strip", z.ZodTypeAny, {
|
|
493
482
|
firstName?: string | undefined;
|
|
494
483
|
lastName?: string | undefined;
|
|
495
|
-
email?: string | undefined;
|
|
496
484
|
gender?: "male" | "female" | undefined;
|
|
497
485
|
birthDate?: number | undefined;
|
|
498
486
|
birthMonth?: number | undefined;
|
|
499
487
|
birthYear?: number | undefined;
|
|
488
|
+
contactValue?: string | undefined;
|
|
500
489
|
}, {
|
|
501
490
|
firstName?: string | undefined;
|
|
502
491
|
lastName?: string | undefined;
|
|
503
|
-
email?: string | undefined;
|
|
504
492
|
gender?: "male" | "female" | undefined;
|
|
505
493
|
birthDate?: number | undefined;
|
|
506
494
|
birthMonth?: number | undefined;
|
|
507
495
|
birthYear?: number | undefined;
|
|
496
|
+
contactValue?: string | undefined;
|
|
508
497
|
}>, {
|
|
509
498
|
firstName?: string | undefined;
|
|
510
499
|
lastName?: string | undefined;
|
|
511
|
-
email?: string | undefined;
|
|
512
500
|
gender?: "male" | "female" | undefined;
|
|
513
501
|
birthDate?: number | undefined;
|
|
514
502
|
birthMonth?: number | undefined;
|
|
515
503
|
birthYear?: number | undefined;
|
|
504
|
+
contactValue?: string | undefined;
|
|
516
505
|
}, {
|
|
517
506
|
firstName?: string | undefined;
|
|
518
507
|
lastName?: string | undefined;
|
|
519
|
-
email?: string | undefined;
|
|
520
508
|
gender?: "male" | "female" | undefined;
|
|
521
509
|
birthDate?: number | undefined;
|
|
522
510
|
birthMonth?: number | undefined;
|
|
523
511
|
birthYear?: number | undefined;
|
|
512
|
+
contactValue?: string | undefined;
|
|
524
513
|
}>;
|
|
525
514
|
}, "strip", z.ZodTypeAny, {
|
|
526
515
|
params: {
|
|
@@ -529,11 +518,11 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
529
518
|
body: {
|
|
530
519
|
firstName?: string | undefined;
|
|
531
520
|
lastName?: string | undefined;
|
|
532
|
-
email?: string | undefined;
|
|
533
521
|
gender?: "male" | "female" | undefined;
|
|
534
522
|
birthDate?: number | undefined;
|
|
535
523
|
birthMonth?: number | undefined;
|
|
536
524
|
birthYear?: number | undefined;
|
|
525
|
+
contactValue?: string | undefined;
|
|
537
526
|
};
|
|
538
527
|
}, {
|
|
539
528
|
params: {
|
|
@@ -542,11 +531,11 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
542
531
|
body: {
|
|
543
532
|
firstName?: string | undefined;
|
|
544
533
|
lastName?: string | undefined;
|
|
545
|
-
email?: string | undefined;
|
|
546
534
|
gender?: "male" | "female" | undefined;
|
|
547
535
|
birthDate?: number | undefined;
|
|
548
536
|
birthMonth?: number | undefined;
|
|
549
537
|
birthYear?: number | undefined;
|
|
538
|
+
contactValue?: string | undefined;
|
|
550
539
|
};
|
|
551
540
|
}>;
|
|
552
541
|
export declare const resetPasswordSchema: z.ZodObject<{
|
|
@@ -566,3 +555,165 @@ export declare const resetPasswordSchema: z.ZodObject<{
|
|
|
566
555
|
userId: string;
|
|
567
556
|
};
|
|
568
557
|
}>;
|
|
558
|
+
export declare const bulkResetPasswordsSchema: z.ZodObject<{
|
|
559
|
+
body: z.ZodObject<{
|
|
560
|
+
userIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
561
|
+
allUsers: z.ZodOptional<z.ZodBoolean>;
|
|
562
|
+
}, "strip", z.ZodTypeAny, {
|
|
563
|
+
userIds?: string[] | undefined;
|
|
564
|
+
allUsers?: boolean | undefined;
|
|
565
|
+
}, {
|
|
566
|
+
userIds?: string[] | undefined;
|
|
567
|
+
allUsers?: boolean | undefined;
|
|
568
|
+
}>;
|
|
569
|
+
headers: z.ZodObject<{
|
|
570
|
+
authorization: z.ZodString;
|
|
571
|
+
}, "strip", z.ZodTypeAny, {
|
|
572
|
+
authorization: string;
|
|
573
|
+
}, {
|
|
574
|
+
authorization: string;
|
|
575
|
+
}>;
|
|
576
|
+
}, "strip", z.ZodTypeAny, {
|
|
577
|
+
body: {
|
|
578
|
+
userIds?: string[] | undefined;
|
|
579
|
+
allUsers?: boolean | undefined;
|
|
580
|
+
};
|
|
581
|
+
headers: {
|
|
582
|
+
authorization: string;
|
|
583
|
+
};
|
|
584
|
+
}, {
|
|
585
|
+
body: {
|
|
586
|
+
userIds?: string[] | undefined;
|
|
587
|
+
allUsers?: boolean | undefined;
|
|
588
|
+
};
|
|
589
|
+
headers: {
|
|
590
|
+
authorization: string;
|
|
591
|
+
};
|
|
592
|
+
}>;
|
|
593
|
+
export declare const addUserContactSchema: z.ZodObject<{
|
|
594
|
+
params: z.ZodObject<{
|
|
595
|
+
userId: z.ZodString;
|
|
596
|
+
}, "strip", z.ZodTypeAny, {
|
|
597
|
+
userId: string;
|
|
598
|
+
}, {
|
|
599
|
+
userId: string;
|
|
600
|
+
}>;
|
|
601
|
+
body: z.ZodObject<{
|
|
602
|
+
contactValue: z.ZodEffects<z.ZodString, string, string>;
|
|
603
|
+
type: z.ZodOptional<z.ZodEnum<["EMAIL", "PHONE", "WHATSAPP"]>>;
|
|
604
|
+
isVerified: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
605
|
+
isPrimary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
606
|
+
}, "strip", z.ZodTypeAny, {
|
|
607
|
+
contactValue: string;
|
|
608
|
+
type?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
609
|
+
isVerified?: boolean | undefined;
|
|
610
|
+
isPrimary?: boolean | undefined;
|
|
611
|
+
}, {
|
|
612
|
+
contactValue: string;
|
|
613
|
+
type?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
614
|
+
isVerified?: boolean | undefined;
|
|
615
|
+
isPrimary?: boolean | undefined;
|
|
616
|
+
}>;
|
|
617
|
+
}, "strip", z.ZodTypeAny, {
|
|
618
|
+
params: {
|
|
619
|
+
userId: string;
|
|
620
|
+
};
|
|
621
|
+
body: {
|
|
622
|
+
contactValue: string;
|
|
623
|
+
type?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
624
|
+
isVerified?: boolean | undefined;
|
|
625
|
+
isPrimary?: boolean | undefined;
|
|
626
|
+
};
|
|
627
|
+
}, {
|
|
628
|
+
params: {
|
|
629
|
+
userId: string;
|
|
630
|
+
};
|
|
631
|
+
body: {
|
|
632
|
+
contactValue: string;
|
|
633
|
+
type?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
634
|
+
isVerified?: boolean | undefined;
|
|
635
|
+
isPrimary?: boolean | undefined;
|
|
636
|
+
};
|
|
637
|
+
}>;
|
|
638
|
+
export declare const verifyUserContactSchema: z.ZodObject<{
|
|
639
|
+
params: z.ZodObject<{
|
|
640
|
+
userId: z.ZodString;
|
|
641
|
+
contactId: z.ZodString;
|
|
642
|
+
}, "strip", z.ZodTypeAny, {
|
|
643
|
+
userId: string;
|
|
644
|
+
contactId: string;
|
|
645
|
+
}, {
|
|
646
|
+
userId: string;
|
|
647
|
+
contactId: string;
|
|
648
|
+
}>;
|
|
649
|
+
}, "strip", z.ZodTypeAny, {
|
|
650
|
+
params: {
|
|
651
|
+
userId: string;
|
|
652
|
+
contactId: string;
|
|
653
|
+
};
|
|
654
|
+
}, {
|
|
655
|
+
params: {
|
|
656
|
+
userId: string;
|
|
657
|
+
contactId: string;
|
|
658
|
+
};
|
|
659
|
+
}>;
|
|
660
|
+
export declare const deleteUserContactSchema: z.ZodObject<{
|
|
661
|
+
params: z.ZodObject<{
|
|
662
|
+
userId: z.ZodString;
|
|
663
|
+
contactId: z.ZodString;
|
|
664
|
+
}, "strip", z.ZodTypeAny, {
|
|
665
|
+
userId: string;
|
|
666
|
+
contactId: string;
|
|
667
|
+
}, {
|
|
668
|
+
userId: string;
|
|
669
|
+
contactId: string;
|
|
670
|
+
}>;
|
|
671
|
+
}, "strip", z.ZodTypeAny, {
|
|
672
|
+
params: {
|
|
673
|
+
userId: string;
|
|
674
|
+
contactId: string;
|
|
675
|
+
};
|
|
676
|
+
}, {
|
|
677
|
+
params: {
|
|
678
|
+
userId: string;
|
|
679
|
+
contactId: string;
|
|
680
|
+
};
|
|
681
|
+
}>;
|
|
682
|
+
export declare const setUserPrimaryContactSchema: z.ZodObject<{
|
|
683
|
+
params: z.ZodObject<{
|
|
684
|
+
userId: z.ZodString;
|
|
685
|
+
contactId: z.ZodString;
|
|
686
|
+
}, "strip", z.ZodTypeAny, {
|
|
687
|
+
userId: string;
|
|
688
|
+
contactId: string;
|
|
689
|
+
}, {
|
|
690
|
+
userId: string;
|
|
691
|
+
contactId: string;
|
|
692
|
+
}>;
|
|
693
|
+
}, "strip", z.ZodTypeAny, {
|
|
694
|
+
params: {
|
|
695
|
+
userId: string;
|
|
696
|
+
contactId: string;
|
|
697
|
+
};
|
|
698
|
+
}, {
|
|
699
|
+
params: {
|
|
700
|
+
userId: string;
|
|
701
|
+
contactId: string;
|
|
702
|
+
};
|
|
703
|
+
}>;
|
|
704
|
+
export type UpgradeToRiderInput = z.infer<typeof upgradeToRiderSchema>;
|
|
705
|
+
export type UpdateRiderInput = z.infer<typeof updateRiderSchema>;
|
|
706
|
+
export type DeleteUserInput = z.infer<typeof deleteUserSchema>;
|
|
707
|
+
export type GetUserInput = z.infer<typeof getUserSchema>;
|
|
708
|
+
export type GetUsersInput = z.infer<typeof getUsersSchema>;
|
|
709
|
+
export type HireAdminInput = z.infer<typeof hireAdminSchema>;
|
|
710
|
+
export type PromoteAdminInput = z.infer<typeof promoteAdminSchema>;
|
|
711
|
+
export type DemoteAdminInput = z.infer<typeof demoteAdminSchema>;
|
|
712
|
+
export type FireEmployeeInput = z.infer<typeof fireEmployeeSchema>;
|
|
713
|
+
export type UpdateAdminInput = z.infer<typeof updateAdminSchema>;
|
|
714
|
+
export type ResetPasswordInput = z.infer<typeof resetPasswordSchema>;
|
|
715
|
+
export type BulkResetPasswordsInput = z.infer<typeof bulkResetPasswordsSchema>;
|
|
716
|
+
export type AddUserContactInput = z.infer<typeof addUserContactSchema>;
|
|
717
|
+
export type VerifyUserContactInput = z.infer<typeof verifyUserContactSchema>;
|
|
718
|
+
export type DeleteUserContactInput = z.infer<typeof deleteUserContactSchema>;
|
|
719
|
+
export type SetUserPrimaryContactInput = z.infer<typeof setUserPrimaryContactSchema>;
|