vr-commons 1.0.111 → 1.0.113
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/profiles.utils.d.ts +1 -2
- package/dist/utils/profiles.utils.js +3 -4
- package/dist/validations/admin.devicePayment.validations.d.ts +14 -9
- package/dist/validations/admin.devicePayment.validations.js +10 -3
- package/dist/validations/admin.devices.validations.d.ts +8 -8
- package/dist/validations/auth.validations.d.ts +10 -10
- package/dist/validations/eventlogs.admin.validations.d.ts +4 -4
- package/dist/validations/payinstallment.validations.d.ts +6 -6
- package/dist/validations/profiles.validations.d.ts +48 -48
- package/dist/validations/users.admin.validations.d.ts +24 -24
- package/package.json +2 -2
|
@@ -11,8 +11,7 @@ export interface BaseUserProfile {
|
|
|
11
11
|
id: string;
|
|
12
12
|
firstName: string;
|
|
13
13
|
lastName: string;
|
|
14
|
-
|
|
15
|
-
email: string | null;
|
|
14
|
+
primaryContact: string;
|
|
16
15
|
gender: "male" | "female";
|
|
17
16
|
birthDate: number | null;
|
|
18
17
|
birthMonth: number | null;
|
|
@@ -24,8 +24,7 @@ const formatUserProfile = (user, viewerType = "ADMIN", options = {}) => {
|
|
|
24
24
|
id: user.id,
|
|
25
25
|
firstName: user.firstName,
|
|
26
26
|
lastName: user.lastName,
|
|
27
|
-
|
|
28
|
-
email: user.email,
|
|
27
|
+
primaryContact: user.primaryContact?.contactValue,
|
|
29
28
|
gender: user.gender || "male",
|
|
30
29
|
birthDate: user.birthDate || null,
|
|
31
30
|
birthMonth: user.birthMonth || null,
|
|
@@ -394,11 +393,11 @@ const validateUniqueFields = async (fields, excludeUserId) => {
|
|
|
394
393
|
const errors = [];
|
|
395
394
|
// Check phone number (in PhoneContact table)
|
|
396
395
|
if (fields.phoneNumber) {
|
|
397
|
-
const phoneWhere = {
|
|
396
|
+
const phoneWhere = { conactValue: fields.phoneNumber, isActive: true };
|
|
398
397
|
if (excludeUserId) {
|
|
399
398
|
phoneWhere.userId = { [sequelize_1.Op.ne]: excludeUserId };
|
|
400
399
|
}
|
|
401
|
-
const existingPhone = await vr_models_1.
|
|
400
|
+
const existingPhone = await vr_models_1.Contact.findOne({
|
|
402
401
|
where: phoneWhere,
|
|
403
402
|
include: [{ model: vr_models_1.User, as: "user", attributes: ["id"] }],
|
|
404
403
|
});
|
|
@@ -48,20 +48,20 @@ export declare const listPlansSchema: z.ZodObject<{
|
|
|
48
48
|
search?: string | undefined;
|
|
49
49
|
userId?: string | undefined;
|
|
50
50
|
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
51
|
+
isOverdue?: "true" | "false" | undefined;
|
|
51
52
|
sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
|
|
52
53
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
53
54
|
deviceId?: string | undefined;
|
|
54
|
-
isOverdue?: "true" | "false" | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
search?: string | undefined;
|
|
57
57
|
limit?: string | undefined;
|
|
58
58
|
userId?: string | undefined;
|
|
59
59
|
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
60
|
+
isOverdue?: "true" | "false" | undefined;
|
|
60
61
|
page?: string | undefined;
|
|
61
62
|
sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
|
|
62
63
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
63
64
|
deviceId?: string | undefined;
|
|
64
|
-
isOverdue?: "true" | "false" | undefined;
|
|
65
65
|
}>;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
67
|
query: {
|
|
@@ -70,10 +70,10 @@ export declare const listPlansSchema: z.ZodObject<{
|
|
|
70
70
|
search?: string | undefined;
|
|
71
71
|
userId?: string | undefined;
|
|
72
72
|
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
73
|
+
isOverdue?: "true" | "false" | undefined;
|
|
73
74
|
sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
|
|
74
75
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
75
76
|
deviceId?: string | undefined;
|
|
76
|
-
isOverdue?: "true" | "false" | undefined;
|
|
77
77
|
};
|
|
78
78
|
}, {
|
|
79
79
|
query: {
|
|
@@ -81,11 +81,11 @@ export declare const listPlansSchema: z.ZodObject<{
|
|
|
81
81
|
limit?: string | undefined;
|
|
82
82
|
userId?: string | undefined;
|
|
83
83
|
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
84
|
+
isOverdue?: "true" | "false" | undefined;
|
|
84
85
|
page?: string | undefined;
|
|
85
86
|
sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
|
|
86
87
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
87
88
|
deviceId?: string | undefined;
|
|
88
|
-
isOverdue?: "true" | "false" | undefined;
|
|
89
89
|
};
|
|
90
90
|
}>;
|
|
91
91
|
export declare const getPlanSchema: z.ZodObject<{
|
|
@@ -222,26 +222,30 @@ export declare const recordPaymentSchema: z.ZodObject<{
|
|
|
222
222
|
}>;
|
|
223
223
|
body: z.ZodObject<{
|
|
224
224
|
amount: z.ZodNumber;
|
|
225
|
-
provider: z.ZodEnum<["
|
|
225
|
+
provider: z.ZodEnum<["MTN_MOMO", "AIRTEL_MONEY", "DPO", "FLUTTERWAVE"]>;
|
|
226
226
|
providerReference: z.ZodOptional<z.ZodString>;
|
|
227
|
+
customerPhone: z.ZodOptional<z.ZodString>;
|
|
227
228
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
228
229
|
}, "strip", z.ZodTypeAny, {
|
|
229
230
|
amount: number;
|
|
230
|
-
provider: "
|
|
231
|
+
provider: "MTN_MOMO" | "AIRTEL_MONEY" | "DPO" | "FLUTTERWAVE";
|
|
231
232
|
metadata?: Record<string, any> | undefined;
|
|
232
233
|
providerReference?: string | undefined;
|
|
234
|
+
customerPhone?: string | undefined;
|
|
233
235
|
}, {
|
|
234
236
|
amount: number;
|
|
235
|
-
provider: "
|
|
237
|
+
provider: "MTN_MOMO" | "AIRTEL_MONEY" | "DPO" | "FLUTTERWAVE";
|
|
236
238
|
metadata?: Record<string, any> | undefined;
|
|
237
239
|
providerReference?: string | undefined;
|
|
240
|
+
customerPhone?: string | undefined;
|
|
238
241
|
}>;
|
|
239
242
|
}, "strip", z.ZodTypeAny, {
|
|
240
243
|
body: {
|
|
241
244
|
amount: number;
|
|
242
|
-
provider: "
|
|
245
|
+
provider: "MTN_MOMO" | "AIRTEL_MONEY" | "DPO" | "FLUTTERWAVE";
|
|
243
246
|
metadata?: Record<string, any> | undefined;
|
|
244
247
|
providerReference?: string | undefined;
|
|
248
|
+
customerPhone?: string | undefined;
|
|
245
249
|
};
|
|
246
250
|
params: {
|
|
247
251
|
id: string;
|
|
@@ -249,9 +253,10 @@ export declare const recordPaymentSchema: z.ZodObject<{
|
|
|
249
253
|
}, {
|
|
250
254
|
body: {
|
|
251
255
|
amount: number;
|
|
252
|
-
provider: "
|
|
256
|
+
provider: "MTN_MOMO" | "AIRTEL_MONEY" | "DPO" | "FLUTTERWAVE";
|
|
253
257
|
metadata?: Record<string, any> | undefined;
|
|
254
258
|
providerReference?: string | undefined;
|
|
259
|
+
customerPhone?: string | undefined;
|
|
255
260
|
};
|
|
256
261
|
params: {
|
|
257
262
|
id: string;
|
|
@@ -80,14 +80,21 @@ exports.limitedUpdateSchema = zod_1.z.object({
|
|
|
80
80
|
message: "At least one field to update is required",
|
|
81
81
|
}),
|
|
82
82
|
});
|
|
83
|
+
// src/modules/device-payment-plans/validations/devicePaymentPlan.validations.ts
|
|
83
84
|
exports.recordPaymentSchema = zod_1.z.object({
|
|
84
85
|
params: zod_1.z.object({
|
|
85
|
-
id: zod_1.z.string().uuid("Invalid plan ID"),
|
|
86
|
+
id: zod_1.z.string().uuid("Invalid payment plan ID"),
|
|
86
87
|
}),
|
|
87
88
|
body: zod_1.z.object({
|
|
88
|
-
amount: zod_1.z.number().
|
|
89
|
-
provider: zod_1.z.enum(vr_models_1.PAYMENT_PROVIDER
|
|
89
|
+
amount: zod_1.z.number().min(0.01, "Amount must be greater than 0"),
|
|
90
|
+
provider: zod_1.z.enum(vr_models_1.PAYMENT_PROVIDER, {
|
|
91
|
+
errorMap: () => ({ message: "Invalid payment provider" }),
|
|
92
|
+
}),
|
|
90
93
|
providerReference: zod_1.z.string().optional(),
|
|
94
|
+
customerPhone: zod_1.z
|
|
95
|
+
.string()
|
|
96
|
+
.regex(/^\+?250[0-9]{9}$/, "Invalid MTN Rwanda phone number")
|
|
97
|
+
.optional(),
|
|
91
98
|
metadata: zod_1.z.record(zod_1.z.any()).optional(),
|
|
92
99
|
}),
|
|
93
100
|
});
|
|
@@ -58,17 +58,17 @@ export declare const updateDeviceSchema: z.ZodObject<{
|
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
59
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
60
60
|
serialNumber?: string | undefined;
|
|
61
|
-
dedicatedUser?: "
|
|
61
|
+
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | null | undefined;
|
|
62
62
|
}, {
|
|
63
63
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
64
64
|
serialNumber?: string | undefined;
|
|
65
|
-
dedicatedUser?: "
|
|
65
|
+
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | null | undefined;
|
|
66
66
|
}>;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
68
|
body: {
|
|
69
69
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
70
70
|
serialNumber?: string | undefined;
|
|
71
|
-
dedicatedUser?: "
|
|
71
|
+
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | null | undefined;
|
|
72
72
|
};
|
|
73
73
|
params: {
|
|
74
74
|
id: string;
|
|
@@ -77,7 +77,7 @@ export declare const updateDeviceSchema: z.ZodObject<{
|
|
|
77
77
|
body: {
|
|
78
78
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
79
79
|
serialNumber?: string | undefined;
|
|
80
|
-
dedicatedUser?: "
|
|
80
|
+
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | null | undefined;
|
|
81
81
|
};
|
|
82
82
|
params: {
|
|
83
83
|
id: string;
|
|
@@ -120,7 +120,7 @@ export declare const getDevicesSchema: z.ZodObject<{
|
|
|
120
120
|
sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
|
|
121
121
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
122
122
|
productId?: string | undefined;
|
|
123
|
-
dedicatedUser?: "
|
|
123
|
+
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
124
124
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
125
125
|
isAssigned?: "true" | "false" | undefined;
|
|
126
126
|
}, {
|
|
@@ -131,7 +131,7 @@ export declare const getDevicesSchema: z.ZodObject<{
|
|
|
131
131
|
sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
|
|
132
132
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
133
133
|
productId?: string | undefined;
|
|
134
|
-
dedicatedUser?: "
|
|
134
|
+
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
135
135
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
136
136
|
isAssigned?: "true" | "false" | undefined;
|
|
137
137
|
}>;
|
|
@@ -144,7 +144,7 @@ export declare const getDevicesSchema: z.ZodObject<{
|
|
|
144
144
|
sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
|
|
145
145
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
146
146
|
productId?: string | undefined;
|
|
147
|
-
dedicatedUser?: "
|
|
147
|
+
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
148
148
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
149
149
|
isAssigned?: "true" | "false" | undefined;
|
|
150
150
|
};
|
|
@@ -157,7 +157,7 @@ export declare const getDevicesSchema: z.ZodObject<{
|
|
|
157
157
|
sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
|
|
158
158
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
159
159
|
productId?: string | undefined;
|
|
160
|
-
dedicatedUser?: "
|
|
160
|
+
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
161
161
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
162
162
|
isAssigned?: "true" | "false" | undefined;
|
|
163
163
|
};
|
|
@@ -6,21 +6,21 @@ export declare const userLoginSchema: z.ZodObject<{
|
|
|
6
6
|
email: z.ZodString;
|
|
7
7
|
password: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
email: string;
|
|
10
9
|
password: string;
|
|
11
|
-
}, {
|
|
12
10
|
email: string;
|
|
11
|
+
}, {
|
|
13
12
|
password: string;
|
|
13
|
+
email: string;
|
|
14
14
|
}>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
16
|
body: {
|
|
17
|
-
email: string;
|
|
18
17
|
password: string;
|
|
18
|
+
email: string;
|
|
19
19
|
};
|
|
20
20
|
}, {
|
|
21
21
|
body: {
|
|
22
|
-
email: string;
|
|
23
22
|
password: string;
|
|
23
|
+
email: string;
|
|
24
24
|
};
|
|
25
25
|
}>;
|
|
26
26
|
export declare const forgotPasswordSchema: z.ZodObject<{
|
|
@@ -171,37 +171,37 @@ export declare const verifyOtpSchema: z.ZodObject<{
|
|
|
171
171
|
firstName: z.ZodOptional<z.ZodString>;
|
|
172
172
|
lastName: z.ZodOptional<z.ZodString>;
|
|
173
173
|
}, "strip", z.ZodTypeAny, {
|
|
174
|
-
phoneNumber: string;
|
|
175
174
|
otp: string;
|
|
175
|
+
phoneNumber: string;
|
|
176
176
|
firstName?: string | undefined;
|
|
177
177
|
lastName?: string | undefined;
|
|
178
178
|
}, {
|
|
179
|
-
phoneNumber: string;
|
|
180
179
|
otp: string;
|
|
180
|
+
phoneNumber: string;
|
|
181
181
|
firstName?: string | undefined;
|
|
182
182
|
lastName?: string | undefined;
|
|
183
183
|
}>, {
|
|
184
|
-
phoneNumber: string;
|
|
185
184
|
otp: string;
|
|
185
|
+
phoneNumber: string;
|
|
186
186
|
firstName?: string | undefined;
|
|
187
187
|
lastName?: string | undefined;
|
|
188
188
|
}, {
|
|
189
|
-
phoneNumber: string;
|
|
190
189
|
otp: string;
|
|
190
|
+
phoneNumber: string;
|
|
191
191
|
firstName?: string | undefined;
|
|
192
192
|
lastName?: string | undefined;
|
|
193
193
|
}>;
|
|
194
194
|
}, "strip", z.ZodTypeAny, {
|
|
195
195
|
body: {
|
|
196
|
-
phoneNumber: string;
|
|
197
196
|
otp: string;
|
|
197
|
+
phoneNumber: string;
|
|
198
198
|
firstName?: string | undefined;
|
|
199
199
|
lastName?: string | undefined;
|
|
200
200
|
};
|
|
201
201
|
}, {
|
|
202
202
|
body: {
|
|
203
|
-
phoneNumber: string;
|
|
204
203
|
otp: string;
|
|
204
|
+
phoneNumber: string;
|
|
205
205
|
firstName?: string | undefined;
|
|
206
206
|
lastName?: string | undefined;
|
|
207
207
|
};
|
|
@@ -28,7 +28,7 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
28
28
|
lastName?: string | undefined;
|
|
29
29
|
fromDate?: string | undefined;
|
|
30
30
|
toDate?: string | undefined;
|
|
31
|
-
actorType?: "
|
|
31
|
+
actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
32
32
|
actorId?: string | undefined;
|
|
33
33
|
action?: string | undefined;
|
|
34
34
|
entity?: string | undefined;
|
|
@@ -44,7 +44,7 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
44
44
|
fromDate?: string | undefined;
|
|
45
45
|
toDate?: string | undefined;
|
|
46
46
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
47
|
-
actorType?: "
|
|
47
|
+
actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
48
48
|
actorId?: string | undefined;
|
|
49
49
|
action?: string | undefined;
|
|
50
50
|
entity?: string | undefined;
|
|
@@ -61,7 +61,7 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
61
61
|
fromDate?: string | undefined;
|
|
62
62
|
toDate?: string | undefined;
|
|
63
63
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
64
|
-
actorType?: "
|
|
64
|
+
actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
65
65
|
actorId?: string | undefined;
|
|
66
66
|
action?: string | undefined;
|
|
67
67
|
entity?: string | undefined;
|
|
@@ -82,7 +82,7 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
82
82
|
fromDate?: string | undefined;
|
|
83
83
|
toDate?: string | undefined;
|
|
84
84
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
85
|
-
actorType?: "
|
|
85
|
+
actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
86
86
|
actorId?: string | undefined;
|
|
87
87
|
action?: string | undefined;
|
|
88
88
|
entity?: string | undefined;
|
|
@@ -4,30 +4,30 @@ export declare const payInstallmentSchema: z.ZodObject<{
|
|
|
4
4
|
planId: z.ZodString;
|
|
5
5
|
installmentId: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
planId: string;
|
|
8
7
|
installmentId: string;
|
|
9
|
-
}, {
|
|
10
8
|
planId: string;
|
|
9
|
+
}, {
|
|
11
10
|
installmentId: string;
|
|
11
|
+
planId: string;
|
|
12
12
|
}>;
|
|
13
13
|
body: z.ZodObject<{
|
|
14
14
|
phoneNumber: z.ZodString;
|
|
15
15
|
provider: z.ZodDefault<z.ZodEnum<["mtn_momo", "airtel_money"]>>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
phoneNumber: string;
|
|
18
17
|
provider: "mtn_momo" | "airtel_money";
|
|
18
|
+
phoneNumber: string;
|
|
19
19
|
}, {
|
|
20
20
|
phoneNumber: string;
|
|
21
21
|
provider?: "mtn_momo" | "airtel_money" | undefined;
|
|
22
22
|
}>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
24
|
body: {
|
|
25
|
-
phoneNumber: string;
|
|
26
25
|
provider: "mtn_momo" | "airtel_money";
|
|
26
|
+
phoneNumber: string;
|
|
27
27
|
};
|
|
28
28
|
params: {
|
|
29
|
-
planId: string;
|
|
30
29
|
installmentId: string;
|
|
30
|
+
planId: string;
|
|
31
31
|
};
|
|
32
32
|
}, {
|
|
33
33
|
body: {
|
|
@@ -35,7 +35,7 @@ export declare const payInstallmentSchema: z.ZodObject<{
|
|
|
35
35
|
provider?: "mtn_momo" | "airtel_money" | undefined;
|
|
36
36
|
};
|
|
37
37
|
params: {
|
|
38
|
-
planId: string;
|
|
39
38
|
installmentId: string;
|
|
39
|
+
planId: string;
|
|
40
40
|
};
|
|
41
41
|
}>;
|
|
@@ -22,12 +22,12 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
22
22
|
birthDate: number;
|
|
23
23
|
birthMonth: number;
|
|
24
24
|
birthYear: number;
|
|
25
|
-
role: "
|
|
25
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
26
26
|
phoneNumber: string;
|
|
27
27
|
jacketId?: string | null | undefined;
|
|
28
|
-
email?: string | null | undefined;
|
|
29
28
|
password?: string | undefined;
|
|
30
29
|
plateNumber?: string | null | undefined;
|
|
30
|
+
email?: string | null | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
firstName: string;
|
|
33
33
|
lastName: string;
|
|
@@ -35,12 +35,12 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
35
35
|
birthDate: number;
|
|
36
36
|
birthMonth: number;
|
|
37
37
|
birthYear: number;
|
|
38
|
-
role: "
|
|
38
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
39
39
|
phoneNumber: string;
|
|
40
40
|
jacketId?: string | null | undefined;
|
|
41
|
-
email?: string | null | undefined;
|
|
42
41
|
password?: string | undefined;
|
|
43
42
|
plateNumber?: string | null | undefined;
|
|
43
|
+
email?: string | null | undefined;
|
|
44
44
|
}>, {
|
|
45
45
|
firstName: string;
|
|
46
46
|
lastName: string;
|
|
@@ -48,12 +48,12 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
48
48
|
birthDate: number;
|
|
49
49
|
birthMonth: number;
|
|
50
50
|
birthYear: number;
|
|
51
|
-
role: "
|
|
51
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
52
52
|
phoneNumber: string;
|
|
53
53
|
jacketId?: string | null | undefined;
|
|
54
|
-
email?: string | null | undefined;
|
|
55
54
|
password?: string | undefined;
|
|
56
55
|
plateNumber?: string | null | undefined;
|
|
56
|
+
email?: string | null | undefined;
|
|
57
57
|
}, {
|
|
58
58
|
firstName: string;
|
|
59
59
|
lastName: string;
|
|
@@ -61,12 +61,12 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
61
61
|
birthDate: number;
|
|
62
62
|
birthMonth: number;
|
|
63
63
|
birthYear: number;
|
|
64
|
-
role: "
|
|
64
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
65
65
|
phoneNumber: string;
|
|
66
66
|
jacketId?: string | null | undefined;
|
|
67
|
-
email?: string | null | undefined;
|
|
68
67
|
password?: string | undefined;
|
|
69
68
|
plateNumber?: string | null | undefined;
|
|
69
|
+
email?: string | null | undefined;
|
|
70
70
|
}>;
|
|
71
71
|
headers: z.ZodObject<{
|
|
72
72
|
authorization: z.ZodString;
|
|
@@ -83,12 +83,12 @@ 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
|
phoneNumber: string;
|
|
88
88
|
jacketId?: string | null | undefined;
|
|
89
|
-
email?: string | null | undefined;
|
|
90
89
|
password?: string | undefined;
|
|
91
90
|
plateNumber?: string | null | undefined;
|
|
91
|
+
email?: string | null | undefined;
|
|
92
92
|
};
|
|
93
93
|
headers: {
|
|
94
94
|
authorization: string;
|
|
@@ -101,12 +101,12 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
101
101
|
birthDate: number;
|
|
102
102
|
birthMonth: number;
|
|
103
103
|
birthYear: number;
|
|
104
|
-
role: "
|
|
104
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
105
105
|
phoneNumber: string;
|
|
106
106
|
jacketId?: string | null | undefined;
|
|
107
|
-
email?: string | null | undefined;
|
|
108
107
|
password?: string | undefined;
|
|
109
108
|
plateNumber?: string | null | undefined;
|
|
109
|
+
email?: string | null | undefined;
|
|
110
110
|
};
|
|
111
111
|
headers: {
|
|
112
112
|
authorization: string;
|
|
@@ -167,7 +167,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
167
167
|
}, "strip", z.ZodTypeAny, {
|
|
168
168
|
firstName?: string | undefined;
|
|
169
169
|
lastName?: string | undefined;
|
|
170
|
-
email?: string | null | undefined;
|
|
171
170
|
password?: string | undefined;
|
|
172
171
|
plateNumber?: string | null | undefined;
|
|
173
172
|
gender?: "male" | "female" | undefined;
|
|
@@ -176,12 +175,12 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
176
175
|
birthYear?: number | undefined;
|
|
177
176
|
isActive?: boolean | undefined;
|
|
178
177
|
isDeactivated?: boolean | undefined;
|
|
179
|
-
phoneNumber?: string | undefined;
|
|
180
178
|
isSuspended?: boolean | undefined;
|
|
179
|
+
email?: string | null | undefined;
|
|
180
|
+
phoneNumber?: string | undefined;
|
|
181
181
|
}, {
|
|
182
182
|
firstName?: string | undefined;
|
|
183
183
|
lastName?: string | undefined;
|
|
184
|
-
email?: string | null | undefined;
|
|
185
184
|
password?: string | undefined;
|
|
186
185
|
plateNumber?: string | null | undefined;
|
|
187
186
|
gender?: "male" | "female" | undefined;
|
|
@@ -190,12 +189,12 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
190
189
|
birthYear?: number | undefined;
|
|
191
190
|
isActive?: boolean | undefined;
|
|
192
191
|
isDeactivated?: boolean | undefined;
|
|
193
|
-
phoneNumber?: string | undefined;
|
|
194
192
|
isSuspended?: boolean | undefined;
|
|
193
|
+
email?: string | null | undefined;
|
|
194
|
+
phoneNumber?: string | undefined;
|
|
195
195
|
}>, {
|
|
196
196
|
firstName?: string | undefined;
|
|
197
197
|
lastName?: string | undefined;
|
|
198
|
-
email?: string | null | undefined;
|
|
199
198
|
password?: string | undefined;
|
|
200
199
|
plateNumber?: string | null | undefined;
|
|
201
200
|
gender?: "male" | "female" | undefined;
|
|
@@ -204,12 +203,12 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
204
203
|
birthYear?: number | undefined;
|
|
205
204
|
isActive?: boolean | undefined;
|
|
206
205
|
isDeactivated?: boolean | undefined;
|
|
207
|
-
phoneNumber?: string | undefined;
|
|
208
206
|
isSuspended?: boolean | undefined;
|
|
207
|
+
email?: string | null | undefined;
|
|
208
|
+
phoneNumber?: string | undefined;
|
|
209
209
|
}, {
|
|
210
210
|
firstName?: string | undefined;
|
|
211
211
|
lastName?: string | undefined;
|
|
212
|
-
email?: string | null | undefined;
|
|
213
212
|
password?: string | undefined;
|
|
214
213
|
plateNumber?: string | null | undefined;
|
|
215
214
|
gender?: "male" | "female" | undefined;
|
|
@@ -218,12 +217,12 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
218
217
|
birthYear?: number | undefined;
|
|
219
218
|
isActive?: boolean | undefined;
|
|
220
219
|
isDeactivated?: boolean | undefined;
|
|
221
|
-
phoneNumber?: string | undefined;
|
|
222
220
|
isSuspended?: boolean | undefined;
|
|
221
|
+
email?: string | null | undefined;
|
|
222
|
+
phoneNumber?: string | undefined;
|
|
223
223
|
}>, {
|
|
224
224
|
firstName?: string | undefined;
|
|
225
225
|
lastName?: string | undefined;
|
|
226
|
-
email?: string | null | undefined;
|
|
227
226
|
password?: string | undefined;
|
|
228
227
|
plateNumber?: string | null | undefined;
|
|
229
228
|
gender?: "male" | "female" | undefined;
|
|
@@ -232,12 +231,12 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
232
231
|
birthYear?: number | undefined;
|
|
233
232
|
isActive?: boolean | undefined;
|
|
234
233
|
isDeactivated?: boolean | undefined;
|
|
235
|
-
phoneNumber?: string | undefined;
|
|
236
234
|
isSuspended?: boolean | undefined;
|
|
235
|
+
email?: string | null | undefined;
|
|
236
|
+
phoneNumber?: string | undefined;
|
|
237
237
|
}, {
|
|
238
238
|
firstName?: string | undefined;
|
|
239
239
|
lastName?: string | undefined;
|
|
240
|
-
email?: string | null | undefined;
|
|
241
240
|
password?: string | undefined;
|
|
242
241
|
plateNumber?: string | null | undefined;
|
|
243
242
|
gender?: "male" | "female" | undefined;
|
|
@@ -246,8 +245,9 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
246
245
|
birthYear?: number | undefined;
|
|
247
246
|
isActive?: boolean | undefined;
|
|
248
247
|
isDeactivated?: boolean | undefined;
|
|
249
|
-
phoneNumber?: string | undefined;
|
|
250
248
|
isSuspended?: boolean | undefined;
|
|
249
|
+
email?: string | null | undefined;
|
|
250
|
+
phoneNumber?: string | undefined;
|
|
251
251
|
}>;
|
|
252
252
|
headers: z.ZodObject<{
|
|
253
253
|
authorization: z.ZodString;
|
|
@@ -260,7 +260,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
260
260
|
body: {
|
|
261
261
|
firstName?: string | undefined;
|
|
262
262
|
lastName?: string | undefined;
|
|
263
|
-
email?: string | null | undefined;
|
|
264
263
|
password?: string | undefined;
|
|
265
264
|
plateNumber?: string | null | undefined;
|
|
266
265
|
gender?: "male" | "female" | undefined;
|
|
@@ -269,8 +268,9 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
269
268
|
birthYear?: number | undefined;
|
|
270
269
|
isActive?: boolean | undefined;
|
|
271
270
|
isDeactivated?: boolean | undefined;
|
|
272
|
-
phoneNumber?: string | undefined;
|
|
273
271
|
isSuspended?: boolean | undefined;
|
|
272
|
+
email?: string | null | undefined;
|
|
273
|
+
phoneNumber?: string | undefined;
|
|
274
274
|
};
|
|
275
275
|
params: {
|
|
276
276
|
userId: string;
|
|
@@ -282,7 +282,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
282
282
|
body: {
|
|
283
283
|
firstName?: string | undefined;
|
|
284
284
|
lastName?: string | undefined;
|
|
285
|
-
email?: string | null | undefined;
|
|
286
285
|
password?: string | undefined;
|
|
287
286
|
plateNumber?: string | null | undefined;
|
|
288
287
|
gender?: "male" | "female" | undefined;
|
|
@@ -291,8 +290,9 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
291
290
|
birthYear?: number | undefined;
|
|
292
291
|
isActive?: boolean | undefined;
|
|
293
292
|
isDeactivated?: boolean | undefined;
|
|
294
|
-
phoneNumber?: string | undefined;
|
|
295
293
|
isSuspended?: boolean | undefined;
|
|
294
|
+
email?: string | null | undefined;
|
|
295
|
+
phoneNumber?: string | undefined;
|
|
296
296
|
};
|
|
297
297
|
params: {
|
|
298
298
|
userId: string;
|
|
@@ -317,12 +317,12 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
317
317
|
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
318
318
|
}, "strip", z.ZodTypeAny, {
|
|
319
319
|
order: "asc" | "desc";
|
|
320
|
-
sortBy: "
|
|
320
|
+
sortBy: "firstName" | "gender" | "lastLoginAt" | "createdAt";
|
|
321
321
|
search?: string | undefined;
|
|
322
322
|
limit?: number | undefined;
|
|
323
323
|
gender?: "male" | "female" | undefined;
|
|
324
324
|
isActive?: boolean | undefined;
|
|
325
|
-
role?: "
|
|
325
|
+
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
326
326
|
isBanned?: boolean | undefined;
|
|
327
327
|
isSuspended?: boolean | undefined;
|
|
328
328
|
page?: number | undefined;
|
|
@@ -334,13 +334,13 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
334
334
|
limit?: string | undefined;
|
|
335
335
|
gender?: "male" | "female" | undefined;
|
|
336
336
|
isActive?: "true" | "false" | undefined;
|
|
337
|
-
role?: "
|
|
337
|
+
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
338
338
|
isBanned?: "true" | "false" | undefined;
|
|
339
339
|
isSuspended?: "true" | "false" | undefined;
|
|
340
340
|
page?: string | undefined;
|
|
341
341
|
startDate?: string | undefined;
|
|
342
342
|
endDate?: string | undefined;
|
|
343
|
-
sortBy?: "
|
|
343
|
+
sortBy?: "firstName" | "gender" | "lastLoginAt" | "createdAt" | undefined;
|
|
344
344
|
}>;
|
|
345
345
|
headers: z.ZodObject<{
|
|
346
346
|
authorization: z.ZodString;
|
|
@@ -352,12 +352,12 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
352
352
|
}, "strip", z.ZodTypeAny, {
|
|
353
353
|
query: {
|
|
354
354
|
order: "asc" | "desc";
|
|
355
|
-
sortBy: "
|
|
355
|
+
sortBy: "firstName" | "gender" | "lastLoginAt" | "createdAt";
|
|
356
356
|
search?: string | undefined;
|
|
357
357
|
limit?: number | undefined;
|
|
358
358
|
gender?: "male" | "female" | undefined;
|
|
359
359
|
isActive?: boolean | undefined;
|
|
360
|
-
role?: "
|
|
360
|
+
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
361
361
|
isBanned?: boolean | undefined;
|
|
362
362
|
isSuspended?: boolean | undefined;
|
|
363
363
|
page?: number | undefined;
|
|
@@ -374,13 +374,13 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
374
374
|
limit?: string | undefined;
|
|
375
375
|
gender?: "male" | "female" | undefined;
|
|
376
376
|
isActive?: "true" | "false" | undefined;
|
|
377
|
-
role?: "
|
|
377
|
+
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
378
378
|
isBanned?: "true" | "false" | undefined;
|
|
379
379
|
isSuspended?: "true" | "false" | undefined;
|
|
380
380
|
page?: string | undefined;
|
|
381
381
|
startDate?: string | undefined;
|
|
382
382
|
endDate?: string | undefined;
|
|
383
|
-
sortBy?: "
|
|
383
|
+
sortBy?: "firstName" | "gender" | "lastLoginAt" | "createdAt" | undefined;
|
|
384
384
|
};
|
|
385
385
|
headers: {
|
|
386
386
|
authorization: string;
|
|
@@ -434,9 +434,9 @@ export declare const passengerSignupSchema: z.ZodObject<{
|
|
|
434
434
|
birthYear: number;
|
|
435
435
|
phoneNumber: string;
|
|
436
436
|
jacketId?: string | undefined;
|
|
437
|
-
email?: string | null | undefined;
|
|
438
437
|
password?: string | null | undefined;
|
|
439
438
|
plateNumber?: string | null | undefined;
|
|
439
|
+
email?: string | null | undefined;
|
|
440
440
|
}, {
|
|
441
441
|
firstName: string;
|
|
442
442
|
lastName: string;
|
|
@@ -446,9 +446,9 @@ export declare const passengerSignupSchema: z.ZodObject<{
|
|
|
446
446
|
birthYear: number;
|
|
447
447
|
phoneNumber: string;
|
|
448
448
|
jacketId?: string | undefined;
|
|
449
|
-
email?: string | null | undefined;
|
|
450
449
|
password?: string | null | undefined;
|
|
451
450
|
plateNumber?: string | null | undefined;
|
|
451
|
+
email?: string | null | undefined;
|
|
452
452
|
}>, {
|
|
453
453
|
firstName: string;
|
|
454
454
|
lastName: string;
|
|
@@ -458,9 +458,9 @@ export declare const passengerSignupSchema: z.ZodObject<{
|
|
|
458
458
|
birthYear: number;
|
|
459
459
|
phoneNumber: string;
|
|
460
460
|
jacketId?: string | undefined;
|
|
461
|
-
email?: string | null | undefined;
|
|
462
461
|
password?: string | null | undefined;
|
|
463
462
|
plateNumber?: string | null | undefined;
|
|
463
|
+
email?: string | null | undefined;
|
|
464
464
|
}, {
|
|
465
465
|
firstName: string;
|
|
466
466
|
lastName: string;
|
|
@@ -470,9 +470,9 @@ export declare const passengerSignupSchema: z.ZodObject<{
|
|
|
470
470
|
birthYear: number;
|
|
471
471
|
phoneNumber: string;
|
|
472
472
|
jacketId?: string | undefined;
|
|
473
|
-
email?: string | null | undefined;
|
|
474
473
|
password?: string | null | undefined;
|
|
475
474
|
plateNumber?: string | null | undefined;
|
|
475
|
+
email?: string | null | undefined;
|
|
476
476
|
}>;
|
|
477
477
|
headers: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
478
478
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -485,9 +485,9 @@ export declare const passengerSignupSchema: z.ZodObject<{
|
|
|
485
485
|
birthYear: number;
|
|
486
486
|
phoneNumber: string;
|
|
487
487
|
jacketId?: string | undefined;
|
|
488
|
-
email?: string | null | undefined;
|
|
489
488
|
password?: string | null | undefined;
|
|
490
489
|
plateNumber?: string | null | undefined;
|
|
490
|
+
email?: string | null | undefined;
|
|
491
491
|
};
|
|
492
492
|
headers?: {} | undefined;
|
|
493
493
|
}, {
|
|
@@ -500,9 +500,9 @@ export declare const passengerSignupSchema: z.ZodObject<{
|
|
|
500
500
|
birthYear: number;
|
|
501
501
|
phoneNumber: string;
|
|
502
502
|
jacketId?: string | undefined;
|
|
503
|
-
email?: string | null | undefined;
|
|
504
503
|
password?: string | null | undefined;
|
|
505
504
|
plateNumber?: string | null | undefined;
|
|
505
|
+
email?: string | null | undefined;
|
|
506
506
|
};
|
|
507
507
|
headers?: {} | undefined;
|
|
508
508
|
}>;
|
|
@@ -890,60 +890,60 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
890
890
|
}, "strict", z.ZodTypeAny, {
|
|
891
891
|
firstName?: string | undefined;
|
|
892
892
|
lastName?: string | undefined;
|
|
893
|
-
email?: string | undefined;
|
|
894
893
|
gender?: "male" | "female" | undefined;
|
|
895
894
|
birthDate?: number | undefined;
|
|
896
895
|
birthMonth?: number | undefined;
|
|
897
896
|
birthYear?: number | undefined;
|
|
897
|
+
email?: string | undefined;
|
|
898
898
|
phoneNumber?: string | undefined;
|
|
899
899
|
}, {
|
|
900
900
|
firstName?: string | undefined;
|
|
901
901
|
lastName?: string | undefined;
|
|
902
|
-
email?: string | undefined;
|
|
903
902
|
gender?: "male" | "female" | undefined;
|
|
904
903
|
birthDate?: number | undefined;
|
|
905
904
|
birthMonth?: number | undefined;
|
|
906
905
|
birthYear?: number | undefined;
|
|
906
|
+
email?: string | undefined;
|
|
907
907
|
phoneNumber?: string | undefined;
|
|
908
908
|
}>, {
|
|
909
909
|
firstName?: string | undefined;
|
|
910
910
|
lastName?: string | undefined;
|
|
911
|
-
email?: string | undefined;
|
|
912
911
|
gender?: "male" | "female" | undefined;
|
|
913
912
|
birthDate?: number | undefined;
|
|
914
913
|
birthMonth?: number | undefined;
|
|
915
914
|
birthYear?: number | undefined;
|
|
915
|
+
email?: string | undefined;
|
|
916
916
|
phoneNumber?: string | undefined;
|
|
917
917
|
}, {
|
|
918
918
|
firstName?: string | undefined;
|
|
919
919
|
lastName?: string | undefined;
|
|
920
|
-
email?: string | undefined;
|
|
921
920
|
gender?: "male" | "female" | undefined;
|
|
922
921
|
birthDate?: number | undefined;
|
|
923
922
|
birthMonth?: number | undefined;
|
|
924
923
|
birthYear?: number | undefined;
|
|
924
|
+
email?: string | undefined;
|
|
925
925
|
phoneNumber?: string | undefined;
|
|
926
926
|
}>;
|
|
927
927
|
}, "strip", z.ZodTypeAny, {
|
|
928
928
|
body: {
|
|
929
929
|
firstName?: string | undefined;
|
|
930
930
|
lastName?: string | undefined;
|
|
931
|
-
email?: string | undefined;
|
|
932
931
|
gender?: "male" | "female" | undefined;
|
|
933
932
|
birthDate?: number | undefined;
|
|
934
933
|
birthMonth?: number | undefined;
|
|
935
934
|
birthYear?: number | undefined;
|
|
935
|
+
email?: string | undefined;
|
|
936
936
|
phoneNumber?: string | undefined;
|
|
937
937
|
};
|
|
938
938
|
}, {
|
|
939
939
|
body: {
|
|
940
940
|
firstName?: string | undefined;
|
|
941
941
|
lastName?: string | undefined;
|
|
942
|
-
email?: string | undefined;
|
|
943
942
|
gender?: "male" | "female" | undefined;
|
|
944
943
|
birthDate?: number | undefined;
|
|
945
944
|
birthMonth?: number | undefined;
|
|
946
945
|
birthYear?: number | undefined;
|
|
946
|
+
email?: string | undefined;
|
|
947
947
|
phoneNumber?: string | undefined;
|
|
948
948
|
};
|
|
949
949
|
}>;
|
|
@@ -98,45 +98,45 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
98
98
|
firstName?: string | undefined;
|
|
99
99
|
lastName?: string | undefined;
|
|
100
100
|
jacketId?: string | undefined;
|
|
101
|
-
email?: string | undefined;
|
|
102
101
|
plateNumber?: string | undefined;
|
|
103
102
|
gender?: "male" | "female" | undefined;
|
|
104
103
|
birthDate?: number | undefined;
|
|
105
104
|
birthMonth?: number | undefined;
|
|
106
105
|
birthYear?: number | undefined;
|
|
106
|
+
email?: string | undefined;
|
|
107
107
|
phoneNumber?: string | undefined;
|
|
108
108
|
}, {
|
|
109
109
|
firstName?: string | undefined;
|
|
110
110
|
lastName?: string | undefined;
|
|
111
111
|
jacketId?: string | undefined;
|
|
112
|
-
email?: string | undefined;
|
|
113
112
|
plateNumber?: string | undefined;
|
|
114
113
|
gender?: "male" | "female" | undefined;
|
|
115
114
|
birthDate?: number | undefined;
|
|
116
115
|
birthMonth?: number | undefined;
|
|
117
116
|
birthYear?: number | undefined;
|
|
117
|
+
email?: string | undefined;
|
|
118
118
|
phoneNumber?: string | undefined;
|
|
119
119
|
}>, {
|
|
120
120
|
firstName?: string | undefined;
|
|
121
121
|
lastName?: string | undefined;
|
|
122
122
|
jacketId?: string | undefined;
|
|
123
|
-
email?: string | undefined;
|
|
124
123
|
plateNumber?: string | undefined;
|
|
125
124
|
gender?: "male" | "female" | undefined;
|
|
126
125
|
birthDate?: number | undefined;
|
|
127
126
|
birthMonth?: number | undefined;
|
|
128
127
|
birthYear?: number | undefined;
|
|
128
|
+
email?: string | undefined;
|
|
129
129
|
phoneNumber?: string | undefined;
|
|
130
130
|
}, {
|
|
131
131
|
firstName?: string | undefined;
|
|
132
132
|
lastName?: string | undefined;
|
|
133
133
|
jacketId?: string | undefined;
|
|
134
|
-
email?: string | undefined;
|
|
135
134
|
plateNumber?: string | undefined;
|
|
136
135
|
gender?: "male" | "female" | undefined;
|
|
137
136
|
birthDate?: number | undefined;
|
|
138
137
|
birthMonth?: number | undefined;
|
|
139
138
|
birthYear?: number | undefined;
|
|
139
|
+
email?: string | undefined;
|
|
140
140
|
phoneNumber?: string | undefined;
|
|
141
141
|
}>;
|
|
142
142
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -144,12 +144,12 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
144
144
|
firstName?: string | undefined;
|
|
145
145
|
lastName?: string | undefined;
|
|
146
146
|
jacketId?: string | undefined;
|
|
147
|
-
email?: string | undefined;
|
|
148
147
|
plateNumber?: string | undefined;
|
|
149
148
|
gender?: "male" | "female" | undefined;
|
|
150
149
|
birthDate?: number | undefined;
|
|
151
150
|
birthMonth?: number | undefined;
|
|
152
151
|
birthYear?: number | undefined;
|
|
152
|
+
email?: string | undefined;
|
|
153
153
|
phoneNumber?: string | undefined;
|
|
154
154
|
};
|
|
155
155
|
params: {
|
|
@@ -160,12 +160,12 @@ export declare const updateRiderSchema: z.ZodObject<{
|
|
|
160
160
|
firstName?: string | undefined;
|
|
161
161
|
lastName?: string | undefined;
|
|
162
162
|
jacketId?: string | undefined;
|
|
163
|
-
email?: string | undefined;
|
|
164
163
|
plateNumber?: string | undefined;
|
|
165
164
|
gender?: "male" | "female" | undefined;
|
|
166
165
|
birthDate?: number | undefined;
|
|
167
166
|
birthMonth?: number | undefined;
|
|
168
167
|
birthYear?: number | undefined;
|
|
168
|
+
email?: string | undefined;
|
|
169
169
|
phoneNumber?: string | undefined;
|
|
170
170
|
};
|
|
171
171
|
params: {
|
|
@@ -225,7 +225,7 @@ export declare const getUsersSchema: z.ZodObject<{
|
|
|
225
225
|
isDeactivated?: "true" | "false" | undefined;
|
|
226
226
|
role?: string | undefined;
|
|
227
227
|
page?: number | undefined;
|
|
228
|
-
sortBy?: "
|
|
228
|
+
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
229
229
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
230
230
|
}, {
|
|
231
231
|
search?: string | undefined;
|
|
@@ -235,7 +235,7 @@ export declare const getUsersSchema: z.ZodObject<{
|
|
|
235
235
|
isDeactivated?: "true" | "false" | undefined;
|
|
236
236
|
role?: string | undefined;
|
|
237
237
|
page?: string | undefined;
|
|
238
|
-
sortBy?: "
|
|
238
|
+
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
239
239
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
240
240
|
}>;
|
|
241
241
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -247,7 +247,7 @@ export declare const getUsersSchema: z.ZodObject<{
|
|
|
247
247
|
isDeactivated?: "true" | "false" | undefined;
|
|
248
248
|
role?: string | undefined;
|
|
249
249
|
page?: number | undefined;
|
|
250
|
-
sortBy?: "
|
|
250
|
+
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
251
251
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
252
252
|
};
|
|
253
253
|
}, {
|
|
@@ -259,7 +259,7 @@ export declare const getUsersSchema: z.ZodObject<{
|
|
|
259
259
|
isDeactivated?: "true" | "false" | undefined;
|
|
260
260
|
role?: string | undefined;
|
|
261
261
|
page?: string | undefined;
|
|
262
|
-
sortBy?: "
|
|
262
|
+
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
263
263
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
264
264
|
};
|
|
265
265
|
}>;
|
|
@@ -279,73 +279,73 @@ export declare const hireAdminSchema: z.ZodObject<{
|
|
|
279
279
|
}, "strip", z.ZodTypeAny, {
|
|
280
280
|
firstName: string;
|
|
281
281
|
lastName: string;
|
|
282
|
-
email: string;
|
|
283
282
|
password: string;
|
|
284
283
|
gender: "male" | "female";
|
|
285
284
|
birthDate: number;
|
|
286
285
|
birthMonth: number;
|
|
287
286
|
birthYear: number;
|
|
288
287
|
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
288
|
+
email: string;
|
|
289
289
|
phoneNumber: string;
|
|
290
290
|
superAdminPassword?: string | undefined;
|
|
291
291
|
}, {
|
|
292
292
|
firstName: string;
|
|
293
293
|
lastName: string;
|
|
294
|
-
email: string;
|
|
295
294
|
password: string;
|
|
296
295
|
gender: "male" | "female";
|
|
297
296
|
birthDate: number;
|
|
298
297
|
birthMonth: number;
|
|
299
298
|
birthYear: number;
|
|
300
299
|
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
300
|
+
email: string;
|
|
301
301
|
phoneNumber: string;
|
|
302
302
|
superAdminPassword?: string | undefined;
|
|
303
303
|
}>, {
|
|
304
304
|
firstName: string;
|
|
305
305
|
lastName: string;
|
|
306
|
-
email: string;
|
|
307
306
|
password: string;
|
|
308
307
|
gender: "male" | "female";
|
|
309
308
|
birthDate: number;
|
|
310
309
|
birthMonth: number;
|
|
311
310
|
birthYear: number;
|
|
312
311
|
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
312
|
+
email: string;
|
|
313
313
|
phoneNumber: string;
|
|
314
314
|
superAdminPassword?: string | undefined;
|
|
315
315
|
}, {
|
|
316
316
|
firstName: string;
|
|
317
317
|
lastName: string;
|
|
318
|
-
email: string;
|
|
319
318
|
password: string;
|
|
320
319
|
gender: "male" | "female";
|
|
321
320
|
birthDate: number;
|
|
322
321
|
birthMonth: number;
|
|
323
322
|
birthYear: number;
|
|
324
323
|
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
324
|
+
email: string;
|
|
325
325
|
phoneNumber: string;
|
|
326
326
|
superAdminPassword?: string | undefined;
|
|
327
327
|
}>, {
|
|
328
328
|
firstName: string;
|
|
329
329
|
lastName: string;
|
|
330
|
-
email: string;
|
|
331
330
|
password: string;
|
|
332
331
|
gender: "male" | "female";
|
|
333
332
|
birthDate: number;
|
|
334
333
|
birthMonth: number;
|
|
335
334
|
birthYear: number;
|
|
336
335
|
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
336
|
+
email: string;
|
|
337
337
|
phoneNumber: string;
|
|
338
338
|
superAdminPassword?: string | undefined;
|
|
339
339
|
}, {
|
|
340
340
|
firstName: string;
|
|
341
341
|
lastName: string;
|
|
342
|
-
email: string;
|
|
343
342
|
password: string;
|
|
344
343
|
gender: "male" | "female";
|
|
345
344
|
birthDate: number;
|
|
346
345
|
birthMonth: number;
|
|
347
346
|
birthYear: number;
|
|
348
347
|
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
348
|
+
email: string;
|
|
349
349
|
phoneNumber: string;
|
|
350
350
|
superAdminPassword?: string | undefined;
|
|
351
351
|
}>;
|
|
@@ -353,13 +353,13 @@ export declare const hireAdminSchema: z.ZodObject<{
|
|
|
353
353
|
body: {
|
|
354
354
|
firstName: string;
|
|
355
355
|
lastName: string;
|
|
356
|
-
email: string;
|
|
357
356
|
password: string;
|
|
358
357
|
gender: "male" | "female";
|
|
359
358
|
birthDate: number;
|
|
360
359
|
birthMonth: number;
|
|
361
360
|
birthYear: number;
|
|
362
361
|
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
362
|
+
email: string;
|
|
363
363
|
phoneNumber: string;
|
|
364
364
|
superAdminPassword?: string | undefined;
|
|
365
365
|
};
|
|
@@ -367,13 +367,13 @@ export declare const hireAdminSchema: z.ZodObject<{
|
|
|
367
367
|
body: {
|
|
368
368
|
firstName: string;
|
|
369
369
|
lastName: string;
|
|
370
|
-
email: string;
|
|
371
370
|
password: string;
|
|
372
371
|
gender: "male" | "female";
|
|
373
372
|
birthDate: number;
|
|
374
373
|
birthMonth: number;
|
|
375
374
|
birthYear: number;
|
|
376
375
|
role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
376
|
+
email: string;
|
|
377
377
|
phoneNumber: string;
|
|
378
378
|
superAdminPassword?: string | undefined;
|
|
379
379
|
};
|
|
@@ -492,45 +492,45 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
492
492
|
}, "strip", z.ZodTypeAny, {
|
|
493
493
|
firstName?: string | undefined;
|
|
494
494
|
lastName?: string | undefined;
|
|
495
|
-
email?: string | undefined;
|
|
496
495
|
gender?: "male" | "female" | undefined;
|
|
497
496
|
birthDate?: number | undefined;
|
|
498
497
|
birthMonth?: number | undefined;
|
|
499
498
|
birthYear?: number | undefined;
|
|
499
|
+
email?: string | undefined;
|
|
500
500
|
}, {
|
|
501
501
|
firstName?: string | undefined;
|
|
502
502
|
lastName?: string | undefined;
|
|
503
|
-
email?: string | undefined;
|
|
504
503
|
gender?: "male" | "female" | undefined;
|
|
505
504
|
birthDate?: number | undefined;
|
|
506
505
|
birthMonth?: number | undefined;
|
|
507
506
|
birthYear?: number | undefined;
|
|
507
|
+
email?: string | undefined;
|
|
508
508
|
}>, {
|
|
509
509
|
firstName?: string | undefined;
|
|
510
510
|
lastName?: string | undefined;
|
|
511
|
-
email?: string | undefined;
|
|
512
511
|
gender?: "male" | "female" | undefined;
|
|
513
512
|
birthDate?: number | undefined;
|
|
514
513
|
birthMonth?: number | undefined;
|
|
515
514
|
birthYear?: number | undefined;
|
|
515
|
+
email?: string | undefined;
|
|
516
516
|
}, {
|
|
517
517
|
firstName?: string | undefined;
|
|
518
518
|
lastName?: string | undefined;
|
|
519
|
-
email?: string | undefined;
|
|
520
519
|
gender?: "male" | "female" | undefined;
|
|
521
520
|
birthDate?: number | undefined;
|
|
522
521
|
birthMonth?: number | undefined;
|
|
523
522
|
birthYear?: number | undefined;
|
|
523
|
+
email?: string | undefined;
|
|
524
524
|
}>;
|
|
525
525
|
}, "strip", z.ZodTypeAny, {
|
|
526
526
|
body: {
|
|
527
527
|
firstName?: string | undefined;
|
|
528
528
|
lastName?: string | undefined;
|
|
529
|
-
email?: string | undefined;
|
|
530
529
|
gender?: "male" | "female" | undefined;
|
|
531
530
|
birthDate?: number | undefined;
|
|
532
531
|
birthMonth?: number | undefined;
|
|
533
532
|
birthYear?: number | undefined;
|
|
533
|
+
email?: string | undefined;
|
|
534
534
|
};
|
|
535
535
|
params: {
|
|
536
536
|
userId: string;
|
|
@@ -539,11 +539,11 @@ export declare const updateAdminSchema: z.ZodObject<{
|
|
|
539
539
|
body: {
|
|
540
540
|
firstName?: string | undefined;
|
|
541
541
|
lastName?: string | undefined;
|
|
542
|
-
email?: string | undefined;
|
|
543
542
|
gender?: "male" | "female" | undefined;
|
|
544
543
|
birthDate?: number | undefined;
|
|
545
544
|
birthMonth?: number | undefined;
|
|
546
545
|
birthYear?: number | undefined;
|
|
546
|
+
email?: string | undefined;
|
|
547
547
|
};
|
|
548
548
|
params: {
|
|
549
549
|
userId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vr-commons",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.113",
|
|
4
4
|
"description": "Shared functions package",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"rimraf": "^5.0.5",
|
|
104
104
|
"streamifier": "^0.1.1",
|
|
105
105
|
"typescript": "^5.3.3",
|
|
106
|
-
"vr-models": "^1.0.
|
|
106
|
+
"vr-models": "^1.0.58",
|
|
107
107
|
"zod": "^3.25.20"
|
|
108
108
|
},
|
|
109
109
|
"dependencies": {
|