vr-commons 1.0.24 → 1.0.26
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 -1
- package/dist/utils/index.js +24 -10
- package/dist/utils/profiles.utils.d.ts +193 -34
- package/dist/utils/profiles.utils.js +439 -132
- package/dist/validations/auth.validations.d.ts +42 -3
- package/dist/validations/auth.validations.js +15 -4
- package/dist/validations/index.d.ts +2 -2
- package/dist/validations/index.js +16 -3
- package/dist/validations/profiles.validations.d.ts +362 -75
- package/dist/validations/profiles.validations.js +202 -25
- package/package.json +1 -1
|
@@ -7,29 +7,30 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
7
7
|
nationalId: z.ZodString;
|
|
8
8
|
email: z.ZodUnion<[z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodLiteral<"">]>;
|
|
9
9
|
password: z.ZodString;
|
|
10
|
-
role: z.ZodEnum<["AGENT", "RIDER"]>;
|
|
10
|
+
role: z.ZodEnum<["AGENT", "RIDER", "PASSENGER", "ADMIN", "SUPER_ADMIN"]>;
|
|
11
11
|
plateNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
|
+
jacketId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
13
|
}, "strip", z.ZodTypeAny, {
|
|
13
14
|
firstName: string;
|
|
14
15
|
lastName: string;
|
|
15
16
|
phoneNumber: string;
|
|
16
|
-
password: string;
|
|
17
17
|
nationalId: string;
|
|
18
|
-
|
|
18
|
+
password: string;
|
|
19
|
+
role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
|
|
19
20
|
email?: string | null | undefined;
|
|
20
21
|
plateNumber?: string | null | undefined;
|
|
22
|
+
jacketId?: string | null | undefined;
|
|
21
23
|
}, {
|
|
22
24
|
firstName: string;
|
|
23
25
|
lastName: string;
|
|
24
26
|
phoneNumber: string;
|
|
25
|
-
password: string;
|
|
26
27
|
nationalId: string;
|
|
27
|
-
|
|
28
|
+
password: string;
|
|
29
|
+
role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
|
|
28
30
|
email?: string | null | undefined;
|
|
29
31
|
plateNumber?: string | null | undefined;
|
|
32
|
+
jacketId?: string | null | undefined;
|
|
30
33
|
}>;
|
|
31
|
-
params: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
32
|
-
query: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
33
34
|
headers: z.ZodObject<{
|
|
34
35
|
authorization: z.ZodString;
|
|
35
36
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -42,33 +43,31 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
42
43
|
firstName: string;
|
|
43
44
|
lastName: string;
|
|
44
45
|
phoneNumber: string;
|
|
45
|
-
password: string;
|
|
46
46
|
nationalId: string;
|
|
47
|
-
|
|
47
|
+
password: string;
|
|
48
|
+
role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
|
|
48
49
|
email?: string | null | undefined;
|
|
49
50
|
plateNumber?: string | null | undefined;
|
|
51
|
+
jacketId?: string | null | undefined;
|
|
50
52
|
};
|
|
51
53
|
headers: {
|
|
52
54
|
authorization: string;
|
|
53
55
|
};
|
|
54
|
-
query?: {} | undefined;
|
|
55
|
-
params?: {} | undefined;
|
|
56
56
|
}, {
|
|
57
57
|
body: {
|
|
58
58
|
firstName: string;
|
|
59
59
|
lastName: string;
|
|
60
60
|
phoneNumber: string;
|
|
61
|
-
password: string;
|
|
62
61
|
nationalId: string;
|
|
63
|
-
|
|
62
|
+
password: string;
|
|
63
|
+
role: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN";
|
|
64
64
|
email?: string | null | undefined;
|
|
65
65
|
plateNumber?: string | null | undefined;
|
|
66
|
+
jacketId?: string | null | undefined;
|
|
66
67
|
};
|
|
67
68
|
headers: {
|
|
68
69
|
authorization: string;
|
|
69
70
|
};
|
|
70
|
-
query?: {} | undefined;
|
|
71
|
-
params?: {} | undefined;
|
|
72
71
|
}>;
|
|
73
72
|
export declare const getUserByIdSchema: z.ZodObject<{
|
|
74
73
|
params: z.ZodObject<{
|
|
@@ -78,8 +77,6 @@ export declare const getUserByIdSchema: z.ZodObject<{
|
|
|
78
77
|
}, {
|
|
79
78
|
userId: string;
|
|
80
79
|
}>;
|
|
81
|
-
body: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
82
|
-
query: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
83
80
|
headers: z.ZodObject<{
|
|
84
81
|
authorization: z.ZodString;
|
|
85
82
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -94,8 +91,6 @@ export declare const getUserByIdSchema: z.ZodObject<{
|
|
|
94
91
|
headers: {
|
|
95
92
|
authorization: string;
|
|
96
93
|
};
|
|
97
|
-
body?: {} | undefined;
|
|
98
|
-
query?: {} | undefined;
|
|
99
94
|
}, {
|
|
100
95
|
params: {
|
|
101
96
|
userId: string;
|
|
@@ -103,34 +98,6 @@ export declare const getUserByIdSchema: z.ZodObject<{
|
|
|
103
98
|
headers: {
|
|
104
99
|
authorization: string;
|
|
105
100
|
};
|
|
106
|
-
body?: {} | undefined;
|
|
107
|
-
query?: {} | undefined;
|
|
108
|
-
}>;
|
|
109
|
-
export declare const getAdminProfileSchema: z.ZodObject<{
|
|
110
|
-
params: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
111
|
-
body: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
112
|
-
query: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
113
|
-
headers: z.ZodObject<{
|
|
114
|
-
authorization: z.ZodString;
|
|
115
|
-
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
authorization: string;
|
|
117
|
-
}, {
|
|
118
|
-
authorization: string;
|
|
119
|
-
}>;
|
|
120
|
-
}, "strip", z.ZodTypeAny, {
|
|
121
|
-
headers: {
|
|
122
|
-
authorization: string;
|
|
123
|
-
};
|
|
124
|
-
body?: {} | undefined;
|
|
125
|
-
query?: {} | undefined;
|
|
126
|
-
params?: {} | undefined;
|
|
127
|
-
}, {
|
|
128
|
-
headers: {
|
|
129
|
-
authorization: string;
|
|
130
|
-
};
|
|
131
|
-
body?: {} | undefined;
|
|
132
|
-
query?: {} | undefined;
|
|
133
|
-
params?: {} | undefined;
|
|
134
101
|
}>;
|
|
135
102
|
export declare const updateUserProfileSchema: z.ZodObject<{
|
|
136
103
|
params: z.ZodObject<{
|
|
@@ -144,44 +111,53 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
144
111
|
firstName: z.ZodOptional<z.ZodString>;
|
|
145
112
|
lastName: z.ZodOptional<z.ZodString>;
|
|
146
113
|
email: z.ZodUnion<[z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodLiteral<"">]>;
|
|
114
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
147
115
|
plateNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
148
116
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
149
117
|
isSuspended: z.ZodOptional<z.ZodBoolean>;
|
|
118
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
150
119
|
password: z.ZodOptional<z.ZodString>;
|
|
151
120
|
}, "strip", z.ZodTypeAny, {
|
|
152
121
|
firstName?: string | undefined;
|
|
153
122
|
lastName?: string | undefined;
|
|
123
|
+
phoneNumber?: string | undefined;
|
|
154
124
|
email?: string | null | undefined;
|
|
155
125
|
password?: string | undefined;
|
|
156
126
|
plateNumber?: string | null | undefined;
|
|
157
127
|
isActive?: boolean | undefined;
|
|
158
128
|
isSuspended?: boolean | undefined;
|
|
129
|
+
isDeactivated?: boolean | undefined;
|
|
159
130
|
}, {
|
|
160
131
|
firstName?: string | undefined;
|
|
161
132
|
lastName?: string | undefined;
|
|
133
|
+
phoneNumber?: string | undefined;
|
|
162
134
|
email?: string | null | undefined;
|
|
163
135
|
password?: string | undefined;
|
|
164
136
|
plateNumber?: string | null | undefined;
|
|
165
137
|
isActive?: boolean | undefined;
|
|
166
138
|
isSuspended?: boolean | undefined;
|
|
139
|
+
isDeactivated?: boolean | undefined;
|
|
167
140
|
}>, {
|
|
168
141
|
firstName?: string | undefined;
|
|
169
142
|
lastName?: string | undefined;
|
|
143
|
+
phoneNumber?: string | undefined;
|
|
170
144
|
email?: string | null | undefined;
|
|
171
145
|
password?: string | undefined;
|
|
172
146
|
plateNumber?: string | null | undefined;
|
|
173
147
|
isActive?: boolean | undefined;
|
|
174
148
|
isSuspended?: boolean | undefined;
|
|
149
|
+
isDeactivated?: boolean | undefined;
|
|
175
150
|
}, {
|
|
176
151
|
firstName?: string | undefined;
|
|
177
152
|
lastName?: string | undefined;
|
|
153
|
+
phoneNumber?: string | undefined;
|
|
178
154
|
email?: string | null | undefined;
|
|
179
155
|
password?: string | undefined;
|
|
180
156
|
plateNumber?: string | null | undefined;
|
|
181
157
|
isActive?: boolean | undefined;
|
|
182
158
|
isSuspended?: boolean | undefined;
|
|
159
|
+
isDeactivated?: boolean | undefined;
|
|
183
160
|
}>;
|
|
184
|
-
query: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
185
161
|
headers: z.ZodObject<{
|
|
186
162
|
authorization: z.ZodString;
|
|
187
163
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -190,61 +166,79 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
190
166
|
authorization: string;
|
|
191
167
|
}>;
|
|
192
168
|
}, "strip", z.ZodTypeAny, {
|
|
169
|
+
params: {
|
|
170
|
+
userId: string;
|
|
171
|
+
};
|
|
193
172
|
body: {
|
|
194
173
|
firstName?: string | undefined;
|
|
195
174
|
lastName?: string | undefined;
|
|
175
|
+
phoneNumber?: string | undefined;
|
|
196
176
|
email?: string | null | undefined;
|
|
197
177
|
password?: string | undefined;
|
|
198
178
|
plateNumber?: string | null | undefined;
|
|
199
179
|
isActive?: boolean | undefined;
|
|
200
180
|
isSuspended?: boolean | undefined;
|
|
201
|
-
|
|
202
|
-
params: {
|
|
203
|
-
userId: string;
|
|
181
|
+
isDeactivated?: boolean | undefined;
|
|
204
182
|
};
|
|
205
183
|
headers: {
|
|
206
184
|
authorization: string;
|
|
207
185
|
};
|
|
208
|
-
query?: {} | undefined;
|
|
209
186
|
}, {
|
|
187
|
+
params: {
|
|
188
|
+
userId: string;
|
|
189
|
+
};
|
|
210
190
|
body: {
|
|
211
191
|
firstName?: string | undefined;
|
|
212
192
|
lastName?: string | undefined;
|
|
193
|
+
phoneNumber?: string | undefined;
|
|
213
194
|
email?: string | null | undefined;
|
|
214
195
|
password?: string | undefined;
|
|
215
196
|
plateNumber?: string | null | undefined;
|
|
216
197
|
isActive?: boolean | undefined;
|
|
217
198
|
isSuspended?: boolean | undefined;
|
|
218
|
-
|
|
219
|
-
params: {
|
|
220
|
-
userId: string;
|
|
199
|
+
isDeactivated?: boolean | undefined;
|
|
221
200
|
};
|
|
222
201
|
headers: {
|
|
223
202
|
authorization: string;
|
|
224
203
|
};
|
|
225
|
-
query?: {} | undefined;
|
|
226
204
|
}>;
|
|
227
205
|
export declare const getAllUsersSchema: z.ZodObject<{
|
|
228
|
-
params: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
229
|
-
body: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
230
206
|
query: z.ZodObject<{
|
|
231
207
|
page: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodString>, number, string | undefined>>;
|
|
232
208
|
limit: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodString>, number, string | undefined>>;
|
|
233
|
-
role: z.ZodOptional<z.ZodEnum<["RIDER", "PASSENGER", "AGENT", "ADMIN"]>>;
|
|
209
|
+
role: z.ZodOptional<z.ZodEnum<["RIDER", "PASSENGER", "AGENT", "ADMIN", "SUPER_ADMIN"]>>;
|
|
234
210
|
isActive: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
|
|
211
|
+
isSuspended: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
|
|
212
|
+
isBanned: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
|
|
235
213
|
search: z.ZodOptional<z.ZodString>;
|
|
214
|
+
startDate: z.ZodOptional<z.ZodString>;
|
|
215
|
+
endDate: z.ZodOptional<z.ZodString>;
|
|
216
|
+
sortBy: z.ZodDefault<z.ZodEnum<["firstName", "lastLoginAt", "createdAt"]>>;
|
|
217
|
+
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
236
218
|
}, "strip", z.ZodTypeAny, {
|
|
237
|
-
|
|
238
|
-
|
|
219
|
+
sortBy: "firstName" | "lastLoginAt" | "createdAt";
|
|
220
|
+
order: "asc" | "desc";
|
|
221
|
+
role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
|
|
239
222
|
isActive?: boolean | undefined;
|
|
240
|
-
|
|
223
|
+
isSuspended?: boolean | undefined;
|
|
241
224
|
page?: number | undefined;
|
|
242
|
-
|
|
225
|
+
limit?: number | undefined;
|
|
226
|
+
isBanned?: boolean | undefined;
|
|
243
227
|
search?: string | undefined;
|
|
244
|
-
|
|
228
|
+
startDate?: string | undefined;
|
|
229
|
+
endDate?: string | undefined;
|
|
230
|
+
}, {
|
|
231
|
+
role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
|
|
245
232
|
isActive?: "true" | "false" | undefined;
|
|
246
|
-
|
|
233
|
+
isSuspended?: "true" | "false" | undefined;
|
|
247
234
|
page?: string | undefined;
|
|
235
|
+
limit?: string | undefined;
|
|
236
|
+
isBanned?: "true" | "false" | undefined;
|
|
237
|
+
search?: string | undefined;
|
|
238
|
+
startDate?: string | undefined;
|
|
239
|
+
endDate?: string | undefined;
|
|
240
|
+
sortBy?: "firstName" | "lastLoginAt" | "createdAt" | undefined;
|
|
241
|
+
order?: "asc" | "desc" | undefined;
|
|
248
242
|
}>;
|
|
249
243
|
headers: z.ZodObject<{
|
|
250
244
|
authorization: z.ZodString;
|
|
@@ -254,34 +248,327 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
254
248
|
authorization: string;
|
|
255
249
|
}>;
|
|
256
250
|
}, "strip", z.ZodTypeAny, {
|
|
251
|
+
headers: {
|
|
252
|
+
authorization: string;
|
|
253
|
+
};
|
|
257
254
|
query: {
|
|
258
|
-
|
|
259
|
-
|
|
255
|
+
sortBy: "firstName" | "lastLoginAt" | "createdAt";
|
|
256
|
+
order: "asc" | "desc";
|
|
257
|
+
role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
|
|
260
258
|
isActive?: boolean | undefined;
|
|
261
|
-
|
|
259
|
+
isSuspended?: boolean | undefined;
|
|
262
260
|
page?: number | undefined;
|
|
261
|
+
limit?: number | undefined;
|
|
262
|
+
isBanned?: boolean | undefined;
|
|
263
|
+
search?: string | undefined;
|
|
264
|
+
startDate?: string | undefined;
|
|
265
|
+
endDate?: string | undefined;
|
|
263
266
|
};
|
|
267
|
+
}, {
|
|
264
268
|
headers: {
|
|
265
269
|
authorization: string;
|
|
266
270
|
};
|
|
267
|
-
body?: {} | undefined;
|
|
268
|
-
params?: {} | undefined;
|
|
269
|
-
}, {
|
|
270
271
|
query: {
|
|
271
|
-
|
|
272
|
-
limit?: string | undefined;
|
|
272
|
+
role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
|
|
273
273
|
isActive?: "true" | "false" | undefined;
|
|
274
|
-
|
|
274
|
+
isSuspended?: "true" | "false" | undefined;
|
|
275
275
|
page?: string | undefined;
|
|
276
|
+
limit?: string | undefined;
|
|
277
|
+
isBanned?: "true" | "false" | undefined;
|
|
278
|
+
search?: string | undefined;
|
|
279
|
+
startDate?: string | undefined;
|
|
280
|
+
endDate?: string | undefined;
|
|
281
|
+
sortBy?: "firstName" | "lastLoginAt" | "createdAt" | undefined;
|
|
282
|
+
order?: "asc" | "desc" | undefined;
|
|
276
283
|
};
|
|
284
|
+
}>;
|
|
285
|
+
export declare const viewProfileSchema: z.ZodObject<{
|
|
286
|
+
params: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
287
|
+
body: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
288
|
+
query: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
289
|
+
headers: z.ZodObject<{
|
|
290
|
+
authorization: z.ZodString;
|
|
291
|
+
}, "strip", z.ZodTypeAny, {
|
|
292
|
+
authorization: string;
|
|
293
|
+
}, {
|
|
294
|
+
authorization: string;
|
|
295
|
+
}>;
|
|
296
|
+
}, "strip", z.ZodTypeAny, {
|
|
297
|
+
headers: {
|
|
298
|
+
authorization: string;
|
|
299
|
+
};
|
|
300
|
+
params?: {} | undefined;
|
|
301
|
+
body?: {} | undefined;
|
|
302
|
+
query?: {} | undefined;
|
|
303
|
+
}, {
|
|
277
304
|
headers: {
|
|
278
305
|
authorization: string;
|
|
279
306
|
};
|
|
307
|
+
params?: {} | undefined;
|
|
280
308
|
body?: {} | undefined;
|
|
309
|
+
query?: {} | undefined;
|
|
310
|
+
}>;
|
|
311
|
+
export declare const passengerSignupSchema: z.ZodObject<{
|
|
312
|
+
body: z.ZodObject<{
|
|
313
|
+
firstName: z.ZodString;
|
|
314
|
+
lastName: z.ZodString;
|
|
315
|
+
phoneNumber: z.ZodString;
|
|
316
|
+
nationalId: z.ZodString;
|
|
317
|
+
jacketId: z.ZodOptional<z.ZodString>;
|
|
318
|
+
email: z.ZodUnion<[z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodLiteral<"">]>;
|
|
319
|
+
password: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
320
|
+
plateNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
321
|
+
}, "strip", z.ZodTypeAny, {
|
|
322
|
+
firstName: string;
|
|
323
|
+
lastName: string;
|
|
324
|
+
phoneNumber: string;
|
|
325
|
+
nationalId: string;
|
|
326
|
+
email?: string | null | undefined;
|
|
327
|
+
password?: string | null | undefined;
|
|
328
|
+
plateNumber?: string | null | undefined;
|
|
329
|
+
jacketId?: string | undefined;
|
|
330
|
+
}, {
|
|
331
|
+
firstName: string;
|
|
332
|
+
lastName: string;
|
|
333
|
+
phoneNumber: string;
|
|
334
|
+
nationalId: string;
|
|
335
|
+
email?: string | null | undefined;
|
|
336
|
+
password?: string | null | undefined;
|
|
337
|
+
plateNumber?: string | null | undefined;
|
|
338
|
+
jacketId?: string | undefined;
|
|
339
|
+
}>;
|
|
340
|
+
headers: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
341
|
+
}, "strip", z.ZodTypeAny, {
|
|
342
|
+
body: {
|
|
343
|
+
firstName: string;
|
|
344
|
+
lastName: string;
|
|
345
|
+
phoneNumber: string;
|
|
346
|
+
nationalId: string;
|
|
347
|
+
email?: string | null | undefined;
|
|
348
|
+
password?: string | null | undefined;
|
|
349
|
+
plateNumber?: string | null | undefined;
|
|
350
|
+
jacketId?: string | undefined;
|
|
351
|
+
};
|
|
352
|
+
headers?: {} | undefined;
|
|
353
|
+
}, {
|
|
354
|
+
body: {
|
|
355
|
+
firstName: string;
|
|
356
|
+
lastName: string;
|
|
357
|
+
phoneNumber: string;
|
|
358
|
+
nationalId: string;
|
|
359
|
+
email?: string | null | undefined;
|
|
360
|
+
password?: string | null | undefined;
|
|
361
|
+
plateNumber?: string | null | undefined;
|
|
362
|
+
jacketId?: string | undefined;
|
|
363
|
+
};
|
|
364
|
+
headers?: {} | undefined;
|
|
365
|
+
}>;
|
|
366
|
+
export declare const updatePassengerProfileSchema: z.ZodObject<{
|
|
367
|
+
params: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
368
|
+
body: z.ZodEffects<z.ZodObject<{
|
|
369
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
370
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
371
|
+
email: z.ZodUnion<[z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodLiteral<"">]>;
|
|
372
|
+
plateNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
373
|
+
}, "strip", z.ZodTypeAny, {
|
|
374
|
+
firstName?: string | undefined;
|
|
375
|
+
lastName?: string | undefined;
|
|
376
|
+
email?: string | null | undefined;
|
|
377
|
+
plateNumber?: string | null | undefined;
|
|
378
|
+
}, {
|
|
379
|
+
firstName?: string | undefined;
|
|
380
|
+
lastName?: string | undefined;
|
|
381
|
+
email?: string | null | undefined;
|
|
382
|
+
plateNumber?: string | null | undefined;
|
|
383
|
+
}>, {
|
|
384
|
+
firstName?: string | undefined;
|
|
385
|
+
lastName?: string | undefined;
|
|
386
|
+
email?: string | null | undefined;
|
|
387
|
+
plateNumber?: string | null | undefined;
|
|
388
|
+
}, {
|
|
389
|
+
firstName?: string | undefined;
|
|
390
|
+
lastName?: string | undefined;
|
|
391
|
+
email?: string | null | undefined;
|
|
392
|
+
plateNumber?: string | null | undefined;
|
|
393
|
+
}>;
|
|
394
|
+
headers: z.ZodObject<{
|
|
395
|
+
authorization: z.ZodString;
|
|
396
|
+
}, "strip", z.ZodTypeAny, {
|
|
397
|
+
authorization: string;
|
|
398
|
+
}, {
|
|
399
|
+
authorization: string;
|
|
400
|
+
}>;
|
|
401
|
+
}, "strip", z.ZodTypeAny, {
|
|
402
|
+
body: {
|
|
403
|
+
firstName?: string | undefined;
|
|
404
|
+
lastName?: string | undefined;
|
|
405
|
+
email?: string | null | undefined;
|
|
406
|
+
plateNumber?: string | null | undefined;
|
|
407
|
+
};
|
|
408
|
+
headers: {
|
|
409
|
+
authorization: string;
|
|
410
|
+
};
|
|
411
|
+
params?: {} | undefined;
|
|
412
|
+
}, {
|
|
413
|
+
body: {
|
|
414
|
+
firstName?: string | undefined;
|
|
415
|
+
lastName?: string | undefined;
|
|
416
|
+
email?: string | null | undefined;
|
|
417
|
+
plateNumber?: string | null | undefined;
|
|
418
|
+
};
|
|
419
|
+
headers: {
|
|
420
|
+
authorization: string;
|
|
421
|
+
};
|
|
422
|
+
params?: {} | undefined;
|
|
423
|
+
}>;
|
|
424
|
+
export declare const getRiderProfileSchema: z.ZodObject<{
|
|
425
|
+
params: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
426
|
+
body: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
427
|
+
query: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
428
|
+
headers: z.ZodObject<{
|
|
429
|
+
authorization: z.ZodString;
|
|
430
|
+
}, "strip", z.ZodTypeAny, {
|
|
431
|
+
authorization: string;
|
|
432
|
+
}, {
|
|
433
|
+
authorization: string;
|
|
434
|
+
}>;
|
|
435
|
+
}, "strip", z.ZodTypeAny, {
|
|
436
|
+
headers: {
|
|
437
|
+
authorization: string;
|
|
438
|
+
};
|
|
439
|
+
params?: {} | undefined;
|
|
440
|
+
body?: {} | undefined;
|
|
441
|
+
query?: {} | undefined;
|
|
442
|
+
}, {
|
|
443
|
+
headers: {
|
|
444
|
+
authorization: string;
|
|
445
|
+
};
|
|
446
|
+
params?: {} | undefined;
|
|
447
|
+
body?: {} | undefined;
|
|
448
|
+
query?: {} | undefined;
|
|
449
|
+
}>;
|
|
450
|
+
export declare const changePasswordSchema: z.ZodObject<{
|
|
451
|
+
params: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
452
|
+
body: z.ZodObject<{
|
|
453
|
+
currentPassword: z.ZodString;
|
|
454
|
+
newPassword: z.ZodString;
|
|
455
|
+
}, "strip", z.ZodTypeAny, {
|
|
456
|
+
currentPassword: string;
|
|
457
|
+
newPassword: string;
|
|
458
|
+
}, {
|
|
459
|
+
currentPassword: string;
|
|
460
|
+
newPassword: string;
|
|
461
|
+
}>;
|
|
462
|
+
headers: z.ZodObject<{
|
|
463
|
+
authorization: z.ZodString;
|
|
464
|
+
}, "strip", z.ZodTypeAny, {
|
|
465
|
+
authorization: string;
|
|
466
|
+
}, {
|
|
467
|
+
authorization: string;
|
|
468
|
+
}>;
|
|
469
|
+
}, "strip", z.ZodTypeAny, {
|
|
470
|
+
body: {
|
|
471
|
+
currentPassword: string;
|
|
472
|
+
newPassword: string;
|
|
473
|
+
};
|
|
474
|
+
headers: {
|
|
475
|
+
authorization: string;
|
|
476
|
+
};
|
|
477
|
+
params?: {} | undefined;
|
|
478
|
+
}, {
|
|
479
|
+
body: {
|
|
480
|
+
currentPassword: string;
|
|
481
|
+
newPassword: string;
|
|
482
|
+
};
|
|
483
|
+
headers: {
|
|
484
|
+
authorization: string;
|
|
485
|
+
};
|
|
486
|
+
params?: {} | undefined;
|
|
487
|
+
}>;
|
|
488
|
+
export declare const deactivateAccountSchema: z.ZodObject<{
|
|
489
|
+
params: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
490
|
+
body: z.ZodObject<{
|
|
491
|
+
confirm: z.ZodEffects<z.ZodBoolean, boolean, boolean>;
|
|
492
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
493
|
+
}, "strip", z.ZodTypeAny, {
|
|
494
|
+
confirm: boolean;
|
|
495
|
+
reason?: string | undefined;
|
|
496
|
+
}, {
|
|
497
|
+
confirm: boolean;
|
|
498
|
+
reason?: string | undefined;
|
|
499
|
+
}>;
|
|
500
|
+
headers: z.ZodObject<{
|
|
501
|
+
authorization: z.ZodString;
|
|
502
|
+
}, "strip", z.ZodTypeAny, {
|
|
503
|
+
authorization: string;
|
|
504
|
+
}, {
|
|
505
|
+
authorization: string;
|
|
506
|
+
}>;
|
|
507
|
+
}, "strip", z.ZodTypeAny, {
|
|
508
|
+
body: {
|
|
509
|
+
confirm: boolean;
|
|
510
|
+
reason?: string | undefined;
|
|
511
|
+
};
|
|
512
|
+
headers: {
|
|
513
|
+
authorization: string;
|
|
514
|
+
};
|
|
515
|
+
params?: {} | undefined;
|
|
516
|
+
}, {
|
|
517
|
+
body: {
|
|
518
|
+
confirm: boolean;
|
|
519
|
+
reason?: string | undefined;
|
|
520
|
+
};
|
|
521
|
+
headers: {
|
|
522
|
+
authorization: string;
|
|
523
|
+
};
|
|
524
|
+
params?: {} | undefined;
|
|
525
|
+
}>;
|
|
526
|
+
export declare const deleteAccountSchema: z.ZodObject<{
|
|
527
|
+
params: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
528
|
+
body: z.ZodObject<{
|
|
529
|
+
confirm: z.ZodEffects<z.ZodBoolean, boolean, boolean>;
|
|
530
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
531
|
+
}, "strip", z.ZodTypeAny, {
|
|
532
|
+
confirm: boolean;
|
|
533
|
+
reason?: string | undefined;
|
|
534
|
+
}, {
|
|
535
|
+
confirm: boolean;
|
|
536
|
+
reason?: string | undefined;
|
|
537
|
+
}>;
|
|
538
|
+
headers: z.ZodObject<{
|
|
539
|
+
authorization: z.ZodString;
|
|
540
|
+
}, "strip", z.ZodTypeAny, {
|
|
541
|
+
authorization: string;
|
|
542
|
+
}, {
|
|
543
|
+
authorization: string;
|
|
544
|
+
}>;
|
|
545
|
+
}, "strip", z.ZodTypeAny, {
|
|
546
|
+
body: {
|
|
547
|
+
confirm: boolean;
|
|
548
|
+
reason?: string | undefined;
|
|
549
|
+
};
|
|
550
|
+
headers: {
|
|
551
|
+
authorization: string;
|
|
552
|
+
};
|
|
553
|
+
params?: {} | undefined;
|
|
554
|
+
}, {
|
|
555
|
+
body: {
|
|
556
|
+
confirm: boolean;
|
|
557
|
+
reason?: string | undefined;
|
|
558
|
+
};
|
|
559
|
+
headers: {
|
|
560
|
+
authorization: string;
|
|
561
|
+
};
|
|
281
562
|
params?: {} | undefined;
|
|
282
563
|
}>;
|
|
283
564
|
export type CreateUserInput = z.infer<typeof createUserSchema>;
|
|
284
565
|
export type GetUserByIdInput = z.infer<typeof getUserByIdSchema>;
|
|
285
|
-
export type GetAdminProfileInput = z.infer<typeof getAdminProfileSchema>;
|
|
286
566
|
export type UpdateUserProfileInput = z.infer<typeof updateUserProfileSchema>;
|
|
287
567
|
export type GetAllUsersInput = z.infer<typeof getAllUsersSchema>;
|
|
568
|
+
export type ViewProfileInput = z.infer<typeof viewProfileSchema>;
|
|
569
|
+
export type PassengerSignupInput = z.infer<typeof passengerSignupSchema>;
|
|
570
|
+
export type UpdatePassengerProfileInput = z.infer<typeof updatePassengerProfileSchema>;
|
|
571
|
+
export type GetRiderProfileInput = z.infer<typeof getRiderProfileSchema>;
|
|
572
|
+
export type ChangePasswordInput = z.infer<typeof changePasswordSchema>;
|
|
573
|
+
export type DeactivateAccountInput = z.infer<typeof deactivateAccountSchema>;
|
|
574
|
+
export type DeleteAccountInput = z.infer<typeof deleteAccountSchema>;
|