vr-commons 1.0.181 → 1.0.183
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/validations/admin/admin.devicePayments.validations.d.ts +54 -54
- package/dist/validations/admin/admin.devices.validations.d.ts +51 -51
- package/dist/validations/admin/admin.users.validations.d.ts +103 -103
- package/dist/validations/shared/shared.account.validations.d.ts +16 -16
- package/dist/validations/shared/shared.appSpecs.validations.d.ts +50 -0
- package/dist/validations/shared/shared.appSpecs.validations.js +1 -0
- package/dist/validations/shared/shared.auth.validations.d.ts +34 -34
- package/package.json +2 -2
|
@@ -16,64 +16,64 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
16
16
|
birthMonth: z.ZodNumber;
|
|
17
17
|
birthYear: z.ZodNumber;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
|
|
19
|
+
jacketId: string;
|
|
20
20
|
gender: "male" | "female";
|
|
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;
|
|
28
28
|
gender: "male" | "female";
|
|
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;
|
|
36
36
|
gender: "male" | "female";
|
|
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;
|
|
44
44
|
gender: "male" | "female";
|
|
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, {
|
|
52
|
-
params: {
|
|
53
|
-
userId: string;
|
|
54
|
-
};
|
|
55
52
|
body: {
|
|
56
|
-
|
|
53
|
+
jacketId: string;
|
|
57
54
|
gender: "male" | "female";
|
|
58
55
|
birthDate: number;
|
|
59
56
|
birthMonth: number;
|
|
60
57
|
birthYear: number;
|
|
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";
|
|
71
68
|
birthDate: number;
|
|
72
69
|
birthMonth: number;
|
|
73
70
|
birthYear: number;
|
|
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<{
|
|
@@ -94,75 +94,75 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
94
94
|
birthMonth: z.ZodOptional<z.ZodNumber>;
|
|
95
95
|
birthYear: z.ZodOptional<z.ZodNumber>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
contactValue?: string | undefined;
|
|
98
97
|
firstName?: string | undefined;
|
|
99
98
|
lastName?: string | undefined;
|
|
99
|
+
jacketId?: string | undefined;
|
|
100
|
+
plateNumber?: string | undefined;
|
|
100
101
|
gender?: "male" | "female" | undefined;
|
|
101
102
|
birthDate?: number | undefined;
|
|
102
103
|
birthMonth?: number | undefined;
|
|
103
104
|
birthYear?: number | undefined;
|
|
104
|
-
jacketId?: string | undefined;
|
|
105
|
-
plateNumber?: string | undefined;
|
|
106
|
-
}, {
|
|
107
105
|
contactValue?: string | undefined;
|
|
106
|
+
}, {
|
|
108
107
|
firstName?: string | undefined;
|
|
109
108
|
lastName?: string | undefined;
|
|
109
|
+
jacketId?: string | undefined;
|
|
110
|
+
plateNumber?: string | undefined;
|
|
110
111
|
gender?: "male" | "female" | undefined;
|
|
111
112
|
birthDate?: number | undefined;
|
|
112
113
|
birthMonth?: number | undefined;
|
|
113
114
|
birthYear?: number | undefined;
|
|
114
|
-
jacketId?: string | undefined;
|
|
115
|
-
plateNumber?: string | undefined;
|
|
116
|
-
}>, {
|
|
117
115
|
contactValue?: string | undefined;
|
|
116
|
+
}>, {
|
|
118
117
|
firstName?: string | undefined;
|
|
119
118
|
lastName?: string | undefined;
|
|
119
|
+
jacketId?: string | undefined;
|
|
120
|
+
plateNumber?: string | undefined;
|
|
120
121
|
gender?: "male" | "female" | undefined;
|
|
121
122
|
birthDate?: number | undefined;
|
|
122
123
|
birthMonth?: number | undefined;
|
|
123
124
|
birthYear?: number | undefined;
|
|
124
|
-
jacketId?: string | undefined;
|
|
125
|
-
plateNumber?: string | undefined;
|
|
126
|
-
}, {
|
|
127
125
|
contactValue?: string | undefined;
|
|
126
|
+
}, {
|
|
128
127
|
firstName?: string | undefined;
|
|
129
128
|
lastName?: string | undefined;
|
|
129
|
+
jacketId?: string | undefined;
|
|
130
|
+
plateNumber?: string | undefined;
|
|
130
131
|
gender?: "male" | "female" | undefined;
|
|
131
132
|
birthDate?: number | undefined;
|
|
132
133
|
birthMonth?: number | undefined;
|
|
133
134
|
birthYear?: number | undefined;
|
|
134
|
-
|
|
135
|
-
plateNumber?: string | undefined;
|
|
135
|
+
contactValue?: string | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
|
-
params: {
|
|
139
|
-
userId: string;
|
|
140
|
-
};
|
|
141
138
|
body: {
|
|
142
|
-
contactValue?: string | undefined;
|
|
143
139
|
firstName?: string | undefined;
|
|
144
140
|
lastName?: string | undefined;
|
|
141
|
+
jacketId?: string | undefined;
|
|
142
|
+
plateNumber?: string | undefined;
|
|
145
143
|
gender?: "male" | "female" | undefined;
|
|
146
144
|
birthDate?: number | undefined;
|
|
147
145
|
birthMonth?: number | undefined;
|
|
148
146
|
birthYear?: number | undefined;
|
|
149
|
-
|
|
150
|
-
plateNumber?: string | undefined;
|
|
147
|
+
contactValue?: string | undefined;
|
|
151
148
|
};
|
|
152
|
-
}, {
|
|
153
149
|
params: {
|
|
154
150
|
userId: string;
|
|
155
151
|
};
|
|
152
|
+
}, {
|
|
156
153
|
body: {
|
|
157
|
-
contactValue?: string | undefined;
|
|
158
154
|
firstName?: string | undefined;
|
|
159
155
|
lastName?: string | undefined;
|
|
156
|
+
jacketId?: string | undefined;
|
|
157
|
+
plateNumber?: string | undefined;
|
|
160
158
|
gender?: "male" | "female" | undefined;
|
|
161
159
|
birthDate?: number | undefined;
|
|
162
160
|
birthMonth?: number | undefined;
|
|
163
161
|
birthYear?: number | undefined;
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
contactValue?: string | undefined;
|
|
163
|
+
};
|
|
164
|
+
params: {
|
|
165
|
+
userId: string;
|
|
166
166
|
};
|
|
167
167
|
}>;
|
|
168
168
|
export declare const deleteUserSchema: 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
|
-
role?: string | undefined;
|
|
216
|
-
gender?: "male" | "female" | undefined;
|
|
217
|
-
page?: number | undefined;
|
|
218
|
-
limit?: number | undefined;
|
|
219
215
|
search?: string | undefined;
|
|
216
|
+
limit?: number | undefined;
|
|
217
|
+
gender?: "male" | "female" | undefined;
|
|
220
218
|
isActive?: "true" | "false" | undefined;
|
|
221
219
|
isDeactivated?: "true" | "false" | undefined;
|
|
220
|
+
role?: string | undefined;
|
|
221
|
+
page?: number | undefined;
|
|
222
222
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
223
223
|
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
224
|
-
sortOrder?: "
|
|
224
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
225
225
|
}, {
|
|
226
|
-
role?: string | undefined;
|
|
227
|
-
gender?: "male" | "female" | undefined;
|
|
228
|
-
page?: string | undefined;
|
|
229
|
-
limit?: string | undefined;
|
|
230
226
|
search?: string | undefined;
|
|
227
|
+
limit?: string | undefined;
|
|
228
|
+
gender?: "male" | "female" | undefined;
|
|
231
229
|
isActive?: "true" | "false" | undefined;
|
|
232
230
|
isDeactivated?: "true" | "false" | undefined;
|
|
231
|
+
role?: string | undefined;
|
|
232
|
+
page?: string | undefined;
|
|
233
233
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
234
234
|
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
235
|
-
sortOrder?: "
|
|
235
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
236
236
|
}>;
|
|
237
237
|
}, "strip", z.ZodTypeAny, {
|
|
238
238
|
query: {
|
|
239
|
-
role?: string | undefined;
|
|
240
|
-
gender?: "male" | "female" | undefined;
|
|
241
|
-
page?: number | undefined;
|
|
242
|
-
limit?: number | undefined;
|
|
243
239
|
search?: string | undefined;
|
|
240
|
+
limit?: number | undefined;
|
|
241
|
+
gender?: "male" | "female" | undefined;
|
|
244
242
|
isActive?: "true" | "false" | undefined;
|
|
245
243
|
isDeactivated?: "true" | "false" | undefined;
|
|
244
|
+
role?: string | undefined;
|
|
245
|
+
page?: number | undefined;
|
|
246
246
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
247
247
|
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
248
|
-
sortOrder?: "
|
|
248
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
249
249
|
};
|
|
250
250
|
}, {
|
|
251
251
|
query: {
|
|
252
|
-
role?: string | undefined;
|
|
253
|
-
gender?: "male" | "female" | undefined;
|
|
254
|
-
page?: string | undefined;
|
|
255
|
-
limit?: string | undefined;
|
|
256
252
|
search?: string | undefined;
|
|
253
|
+
limit?: string | undefined;
|
|
254
|
+
gender?: "male" | "female" | undefined;
|
|
257
255
|
isActive?: "true" | "false" | undefined;
|
|
258
256
|
isDeactivated?: "true" | "false" | undefined;
|
|
257
|
+
role?: string | undefined;
|
|
258
|
+
page?: string | undefined;
|
|
259
259
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
260
260
|
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
261
|
-
sortOrder?: "
|
|
261
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
262
262
|
};
|
|
263
263
|
}>;
|
|
264
264
|
export declare const hireAdminSchema: z.ZodObject<{
|
|
@@ -273,88 +273,88 @@ export declare const hireAdminSchema: z.ZodObject<{
|
|
|
273
273
|
birthMonth: z.ZodNumber;
|
|
274
274
|
birthYear: z.ZodNumber;
|
|
275
275
|
}, "strip", z.ZodTypeAny, {
|
|
276
|
-
contactValue: string;
|
|
277
276
|
firstName: string;
|
|
278
277
|
lastName: string;
|
|
279
|
-
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
280
278
|
gender: "male" | "female";
|
|
281
279
|
birthDate: number;
|
|
282
280
|
birthMonth: number;
|
|
283
281
|
birthYear: number;
|
|
282
|
+
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
283
|
+
contactValue: string;
|
|
284
284
|
superAdminPassword?: string | undefined;
|
|
285
285
|
}, {
|
|
286
|
-
contactValue: string;
|
|
287
286
|
firstName: string;
|
|
288
287
|
lastName: string;
|
|
289
|
-
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
290
288
|
gender: "male" | "female";
|
|
291
289
|
birthDate: number;
|
|
292
290
|
birthMonth: number;
|
|
293
291
|
birthYear: number;
|
|
292
|
+
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
293
|
+
contactValue: string;
|
|
294
294
|
superAdminPassword?: string | undefined;
|
|
295
295
|
}>, {
|
|
296
|
-
contactValue: string;
|
|
297
296
|
firstName: string;
|
|
298
297
|
lastName: string;
|
|
299
|
-
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
300
298
|
gender: "male" | "female";
|
|
301
299
|
birthDate: number;
|
|
302
300
|
birthMonth: number;
|
|
303
301
|
birthYear: number;
|
|
302
|
+
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
303
|
+
contactValue: string;
|
|
304
304
|
superAdminPassword?: string | undefined;
|
|
305
305
|
}, {
|
|
306
|
-
contactValue: string;
|
|
307
306
|
firstName: string;
|
|
308
307
|
lastName: string;
|
|
309
|
-
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
310
308
|
gender: "male" | "female";
|
|
311
309
|
birthDate: number;
|
|
312
310
|
birthMonth: number;
|
|
313
311
|
birthYear: number;
|
|
312
|
+
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
313
|
+
contactValue: string;
|
|
314
314
|
superAdminPassword?: string | undefined;
|
|
315
315
|
}>, {
|
|
316
|
-
contactValue: string;
|
|
317
316
|
firstName: string;
|
|
318
317
|
lastName: string;
|
|
319
|
-
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
320
318
|
gender: "male" | "female";
|
|
321
319
|
birthDate: number;
|
|
322
320
|
birthMonth: number;
|
|
323
321
|
birthYear: number;
|
|
322
|
+
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
323
|
+
contactValue: string;
|
|
324
324
|
superAdminPassword?: string | undefined;
|
|
325
325
|
}, {
|
|
326
|
-
contactValue: string;
|
|
327
326
|
firstName: string;
|
|
328
327
|
lastName: string;
|
|
329
|
-
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
330
328
|
gender: "male" | "female";
|
|
331
329
|
birthDate: number;
|
|
332
330
|
birthMonth: number;
|
|
333
331
|
birthYear: number;
|
|
332
|
+
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
333
|
+
contactValue: string;
|
|
334
334
|
superAdminPassword?: string | undefined;
|
|
335
335
|
}>;
|
|
336
336
|
}, "strip", z.ZodTypeAny, {
|
|
337
337
|
body: {
|
|
338
|
-
contactValue: string;
|
|
339
338
|
firstName: string;
|
|
340
339
|
lastName: string;
|
|
341
|
-
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
342
340
|
gender: "male" | "female";
|
|
343
341
|
birthDate: number;
|
|
344
342
|
birthMonth: number;
|
|
345
343
|
birthYear: number;
|
|
344
|
+
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
345
|
+
contactValue: string;
|
|
346
346
|
superAdminPassword?: string | undefined;
|
|
347
347
|
};
|
|
348
348
|
}, {
|
|
349
349
|
body: {
|
|
350
|
-
contactValue: string;
|
|
351
350
|
firstName: string;
|
|
352
351
|
lastName: string;
|
|
353
|
-
role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
354
352
|
gender: "male" | "female";
|
|
355
353
|
birthDate: number;
|
|
356
354
|
birthMonth: number;
|
|
357
355
|
birthYear: number;
|
|
356
|
+
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
357
|
+
contactValue: string;
|
|
358
358
|
superAdminPassword?: string | undefined;
|
|
359
359
|
};
|
|
360
360
|
}>;
|
|
@@ -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<{
|
|
@@ -404,24 +404,24 @@ export declare const demoteAdminSchema: z.ZodObject<{
|
|
|
404
404
|
body: z.ZodObject<{
|
|
405
405
|
targetRole: z.ZodEnum<["AGENT", "ADMIN"]>;
|
|
406
406
|
}, "strip", z.ZodTypeAny, {
|
|
407
|
-
targetRole: "
|
|
407
|
+
targetRole: "ADMIN" | "AGENT";
|
|
408
408
|
}, {
|
|
409
|
-
targetRole: "
|
|
409
|
+
targetRole: "ADMIN" | "AGENT";
|
|
410
410
|
}>;
|
|
411
411
|
}, "strip", z.ZodTypeAny, {
|
|
412
|
+
body: {
|
|
413
|
+
targetRole: "ADMIN" | "AGENT";
|
|
414
|
+
};
|
|
412
415
|
params: {
|
|
413
416
|
userId: string;
|
|
414
417
|
};
|
|
418
|
+
}, {
|
|
415
419
|
body: {
|
|
416
|
-
targetRole: "
|
|
420
|
+
targetRole: "ADMIN" | "AGENT";
|
|
417
421
|
};
|
|
418
|
-
}, {
|
|
419
422
|
params: {
|
|
420
423
|
userId: string;
|
|
421
424
|
};
|
|
422
|
-
body: {
|
|
423
|
-
targetRole: "AGENT" | "ADMIN";
|
|
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<{
|
|
@@ -470,63 +470,63 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
470
470
|
birthMonth: z.ZodOptional<z.ZodNumber>;
|
|
471
471
|
birthYear: z.ZodOptional<z.ZodNumber>;
|
|
472
472
|
}, "strip", z.ZodTypeAny, {
|
|
473
|
-
contactValue?: string | undefined;
|
|
474
473
|
firstName?: string | undefined;
|
|
475
474
|
lastName?: string | undefined;
|
|
476
475
|
gender?: "male" | "female" | undefined;
|
|
477
476
|
birthDate?: number | undefined;
|
|
478
477
|
birthMonth?: number | undefined;
|
|
479
478
|
birthYear?: number | undefined;
|
|
480
|
-
}, {
|
|
481
479
|
contactValue?: string | undefined;
|
|
480
|
+
}, {
|
|
482
481
|
firstName?: string | undefined;
|
|
483
482
|
lastName?: string | undefined;
|
|
484
483
|
gender?: "male" | "female" | undefined;
|
|
485
484
|
birthDate?: number | undefined;
|
|
486
485
|
birthMonth?: number | undefined;
|
|
487
486
|
birthYear?: number | undefined;
|
|
488
|
-
}>, {
|
|
489
487
|
contactValue?: string | undefined;
|
|
488
|
+
}>, {
|
|
490
489
|
firstName?: string | undefined;
|
|
491
490
|
lastName?: string | undefined;
|
|
492
491
|
gender?: "male" | "female" | undefined;
|
|
493
492
|
birthDate?: number | undefined;
|
|
494
493
|
birthMonth?: number | undefined;
|
|
495
494
|
birthYear?: number | undefined;
|
|
496
|
-
}, {
|
|
497
495
|
contactValue?: string | undefined;
|
|
496
|
+
}, {
|
|
498
497
|
firstName?: string | undefined;
|
|
499
498
|
lastName?: string | undefined;
|
|
500
499
|
gender?: "male" | "female" | undefined;
|
|
501
500
|
birthDate?: number | undefined;
|
|
502
501
|
birthMonth?: number | undefined;
|
|
503
502
|
birthYear?: number | undefined;
|
|
503
|
+
contactValue?: string | undefined;
|
|
504
504
|
}>;
|
|
505
505
|
}, "strip", z.ZodTypeAny, {
|
|
506
|
-
params: {
|
|
507
|
-
userId: string;
|
|
508
|
-
};
|
|
509
506
|
body: {
|
|
510
|
-
contactValue?: string | undefined;
|
|
511
507
|
firstName?: string | undefined;
|
|
512
508
|
lastName?: string | undefined;
|
|
513
509
|
gender?: "male" | "female" | undefined;
|
|
514
510
|
birthDate?: number | undefined;
|
|
515
511
|
birthMonth?: number | undefined;
|
|
516
512
|
birthYear?: number | undefined;
|
|
513
|
+
contactValue?: string | undefined;
|
|
517
514
|
};
|
|
518
|
-
}, {
|
|
519
515
|
params: {
|
|
520
516
|
userId: string;
|
|
521
517
|
};
|
|
518
|
+
}, {
|
|
522
519
|
body: {
|
|
523
|
-
contactValue?: string | undefined;
|
|
524
520
|
firstName?: string | undefined;
|
|
525
521
|
lastName?: string | undefined;
|
|
526
522
|
gender?: "male" | "female" | undefined;
|
|
527
523
|
birthDate?: number | undefined;
|
|
528
524
|
birthMonth?: number | undefined;
|
|
529
525
|
birthYear?: number | undefined;
|
|
526
|
+
contactValue?: string | undefined;
|
|
527
|
+
};
|
|
528
|
+
params: {
|
|
529
|
+
userId: string;
|
|
530
530
|
};
|
|
531
531
|
}>;
|
|
532
532
|
export declare const resetPasswordSchema: 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<{
|
|
@@ -280,21 +280,21 @@ export declare const loginSchema: z.ZodObject<{
|
|
|
280
280
|
contactValue: z.ZodEffects<z.ZodString, string, string>;
|
|
281
281
|
password: z.ZodString;
|
|
282
282
|
}, "strip", z.ZodTypeAny, {
|
|
283
|
-
contactValue: string;
|
|
284
283
|
password: string;
|
|
285
|
-
}, {
|
|
286
284
|
contactValue: string;
|
|
285
|
+
}, {
|
|
287
286
|
password: string;
|
|
287
|
+
contactValue: string;
|
|
288
288
|
}>;
|
|
289
289
|
}, "strip", z.ZodTypeAny, {
|
|
290
290
|
body: {
|
|
291
|
-
contactValue: string;
|
|
292
291
|
password: string;
|
|
292
|
+
contactValue: string;
|
|
293
293
|
};
|
|
294
294
|
}, {
|
|
295
295
|
body: {
|
|
296
|
-
contactValue: string;
|
|
297
296
|
password: string;
|
|
297
|
+
contactValue: string;
|
|
298
298
|
};
|
|
299
299
|
}>;
|
|
300
300
|
export declare const forgotPasswordSchema: z.ZodObject<{
|
|
@@ -367,9 +367,9 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
367
367
|
birthMonth: number;
|
|
368
368
|
birthYear: number;
|
|
369
369
|
phoneNumber: string;
|
|
370
|
-
plateNumber?: string | null | undefined;
|
|
371
|
-
password?: string | undefined;
|
|
372
370
|
jacketId?: string | null | undefined;
|
|
371
|
+
password?: string | undefined;
|
|
372
|
+
plateNumber?: string | null | undefined;
|
|
373
373
|
}, {
|
|
374
374
|
firstName: string;
|
|
375
375
|
lastName: string;
|
|
@@ -378,9 +378,9 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
378
378
|
birthMonth: number;
|
|
379
379
|
birthYear: number;
|
|
380
380
|
phoneNumber: string;
|
|
381
|
-
plateNumber?: string | null | undefined;
|
|
382
|
-
password?: string | undefined;
|
|
383
381
|
jacketId?: string | null | undefined;
|
|
382
|
+
password?: string | undefined;
|
|
383
|
+
plateNumber?: string | null | undefined;
|
|
384
384
|
}>, {
|
|
385
385
|
firstName: string;
|
|
386
386
|
lastName: string;
|
|
@@ -389,9 +389,9 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
389
389
|
birthMonth: number;
|
|
390
390
|
birthYear: number;
|
|
391
391
|
phoneNumber: string;
|
|
392
|
-
plateNumber?: string | null | undefined;
|
|
393
|
-
password?: string | undefined;
|
|
394
392
|
jacketId?: string | null | undefined;
|
|
393
|
+
password?: string | undefined;
|
|
394
|
+
plateNumber?: string | null | undefined;
|
|
395
395
|
}, {
|
|
396
396
|
firstName: string;
|
|
397
397
|
lastName: string;
|
|
@@ -400,9 +400,9 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
400
400
|
birthMonth: number;
|
|
401
401
|
birthYear: number;
|
|
402
402
|
phoneNumber: string;
|
|
403
|
-
plateNumber?: string | null | undefined;
|
|
404
|
-
password?: string | undefined;
|
|
405
403
|
jacketId?: string | null | undefined;
|
|
404
|
+
password?: string | undefined;
|
|
405
|
+
plateNumber?: string | null | undefined;
|
|
406
406
|
}>;
|
|
407
407
|
}, "strip", z.ZodTypeAny, {
|
|
408
408
|
body: {
|
|
@@ -413,9 +413,9 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
413
413
|
birthMonth: number;
|
|
414
414
|
birthYear: number;
|
|
415
415
|
phoneNumber: string;
|
|
416
|
-
plateNumber?: string | null | undefined;
|
|
417
|
-
password?: string | undefined;
|
|
418
416
|
jacketId?: string | null | undefined;
|
|
417
|
+
password?: string | undefined;
|
|
418
|
+
plateNumber?: string | null | undefined;
|
|
419
419
|
};
|
|
420
420
|
}, {
|
|
421
421
|
body: {
|
|
@@ -426,9 +426,9 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
426
426
|
birthMonth: number;
|
|
427
427
|
birthYear: number;
|
|
428
428
|
phoneNumber: string;
|
|
429
|
-
plateNumber?: string | null | undefined;
|
|
430
|
-
password?: string | undefined;
|
|
431
429
|
jacketId?: string | null | undefined;
|
|
430
|
+
password?: string | undefined;
|
|
431
|
+
plateNumber?: string | null | undefined;
|
|
432
432
|
};
|
|
433
433
|
}>;
|
|
434
434
|
export type UpdateProfileSchema = z.infer<typeof updateProfileSchema>;
|