vr-commons 1.0.112 → 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 +50 -50
- package/dist/validations/admin.devices.validations.d.ts +28 -28
- package/dist/validations/appSpecs.validations.d.ts +18 -18
- package/dist/validations/appeals.validations.d.ts +8 -8
- package/dist/validations/auth.validations.d.ts +12 -12
- package/dist/validations/bans.validations.d.ts +8 -8
- package/dist/validations/devicePaymentPlan.validations.d.ts +16 -16
- package/dist/validations/eventlogs.admin.validations.d.ts +14 -14
- package/dist/validations/moderation.validations.d.ts +114 -114
- package/dist/validations/payinstallment.validations.d.ts +5 -5
- package/dist/validations/pricing.validations.d.ts +30 -30
- package/dist/validations/pricings.validations.d.ts +30 -30
- package/dist/validations/product.validations.d.ts +28 -28
- package/dist/validations/profiles.validations.d.ts +62 -62
- package/dist/validations/suspensions.validations.d.ts +8 -8
- package/dist/validations/users.admin.validations.d.ts +60 -60
- 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
|
});
|
|
@@ -7,28 +7,28 @@ export declare const createPlanSchema: z.ZodObject<{
|
|
|
7
7
|
productId: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
userId: string;
|
|
10
|
+
productId: string;
|
|
10
11
|
deviceIds: string[];
|
|
11
12
|
pricingId: string;
|
|
12
|
-
productId: string;
|
|
13
13
|
}, {
|
|
14
14
|
userId: string;
|
|
15
|
+
productId: string;
|
|
15
16
|
deviceIds: string[];
|
|
16
17
|
pricingId: string;
|
|
17
|
-
productId: string;
|
|
18
18
|
}>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
body: {
|
|
21
21
|
userId: string;
|
|
22
|
+
productId: string;
|
|
22
23
|
deviceIds: string[];
|
|
23
24
|
pricingId: string;
|
|
24
|
-
productId: string;
|
|
25
25
|
};
|
|
26
26
|
}, {
|
|
27
27
|
body: {
|
|
28
28
|
userId: string;
|
|
29
|
+
productId: string;
|
|
29
30
|
deviceIds: string[];
|
|
30
31
|
pricingId: string;
|
|
31
|
-
productId: string;
|
|
32
32
|
};
|
|
33
33
|
}>;
|
|
34
34
|
export declare const listPlansSchema: z.ZodObject<{
|
|
@@ -43,49 +43,49 @@ export declare const listPlansSchema: z.ZodObject<{
|
|
|
43
43
|
sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "nextInstallmentDueAt", "paidAmount", "outstandingAmount"]>>;
|
|
44
44
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
page: number;
|
|
47
46
|
limit: number;
|
|
48
|
-
|
|
47
|
+
page: number;
|
|
48
|
+
search?: string | undefined;
|
|
49
49
|
userId?: string | undefined;
|
|
50
|
-
|
|
50
|
+
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
51
51
|
isOverdue?: "true" | "false" | undefined;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
|
|
53
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
54
|
+
deviceId?: string | undefined;
|
|
55
55
|
}, {
|
|
56
|
-
|
|
56
|
+
search?: string | undefined;
|
|
57
|
+
limit?: string | undefined;
|
|
57
58
|
userId?: string | undefined;
|
|
59
|
+
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
60
|
+
isOverdue?: "true" | "false" | undefined;
|
|
58
61
|
page?: string | undefined;
|
|
59
|
-
|
|
62
|
+
sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
|
|
63
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
60
64
|
deviceId?: string | undefined;
|
|
61
|
-
isOverdue?: "true" | "false" | undefined;
|
|
62
|
-
search?: string | undefined;
|
|
63
|
-
sortBy?: "createdAt" | "updatedAt" | "nextInstallmentDueAt" | "paidAmount" | "outstandingAmount" | undefined;
|
|
64
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
65
65
|
}>;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
67
|
query: {
|
|
68
|
-
page: number;
|
|
69
68
|
limit: number;
|
|
70
|
-
|
|
69
|
+
page: number;
|
|
70
|
+
search?: string | undefined;
|
|
71
71
|
userId?: string | undefined;
|
|
72
|
-
|
|
72
|
+
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
73
73
|
isOverdue?: "true" | "false" | undefined;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
|
|
75
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
76
|
+
deviceId?: string | undefined;
|
|
77
77
|
};
|
|
78
78
|
}, {
|
|
79
79
|
query: {
|
|
80
|
-
|
|
80
|
+
search?: string | undefined;
|
|
81
|
+
limit?: string | undefined;
|
|
81
82
|
userId?: string | undefined;
|
|
83
|
+
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
84
|
+
isOverdue?: "true" | "false" | undefined;
|
|
82
85
|
page?: string | undefined;
|
|
83
|
-
|
|
86
|
+
sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
|
|
87
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
84
88
|
deviceId?: string | undefined;
|
|
85
|
-
isOverdue?: "true" | "false" | undefined;
|
|
86
|
-
search?: string | undefined;
|
|
87
|
-
sortBy?: "createdAt" | "updatedAt" | "nextInstallmentDueAt" | "paidAmount" | "outstandingAmount" | undefined;
|
|
88
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
89
89
|
};
|
|
90
90
|
}>;
|
|
91
91
|
export declare const getPlanSchema: z.ZodObject<{
|
|
@@ -117,10 +117,10 @@ export declare const getUserPlansSchema: z.ZodObject<{
|
|
|
117
117
|
status: z.ZodOptional<z.ZodEnum<["ACTIVE", "COMPLETED", "DEFAULTED", "CANCELLED"]>>;
|
|
118
118
|
includeCompleted: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
|
|
119
119
|
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
status?: "ACTIVE" | "
|
|
120
|
+
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
121
121
|
includeCompleted?: "true" | "false" | undefined;
|
|
122
122
|
}, {
|
|
123
|
-
status?: "ACTIVE" | "
|
|
123
|
+
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
124
124
|
includeCompleted?: "true" | "false" | undefined;
|
|
125
125
|
}>>;
|
|
126
126
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -128,7 +128,7 @@ export declare const getUserPlansSchema: z.ZodObject<{
|
|
|
128
128
|
userId: string;
|
|
129
129
|
};
|
|
130
130
|
query?: {
|
|
131
|
-
status?: "ACTIVE" | "
|
|
131
|
+
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
132
132
|
includeCompleted?: "true" | "false" | undefined;
|
|
133
133
|
} | undefined;
|
|
134
134
|
}, {
|
|
@@ -136,7 +136,7 @@ export declare const getUserPlansSchema: z.ZodObject<{
|
|
|
136
136
|
userId: string;
|
|
137
137
|
};
|
|
138
138
|
query?: {
|
|
139
|
-
status?: "ACTIVE" | "
|
|
139
|
+
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
140
140
|
includeCompleted?: "true" | "false" | undefined;
|
|
141
141
|
} | undefined;
|
|
142
142
|
}>;
|
|
@@ -172,44 +172,44 @@ export declare const limitedUpdateSchema: z.ZodObject<{
|
|
|
172
172
|
userId: z.ZodString;
|
|
173
173
|
}, "strip", z.ZodTypeAny, {
|
|
174
174
|
userId: string;
|
|
175
|
+
productId: string;
|
|
175
176
|
deviceIds: string[];
|
|
176
177
|
pricingId: string;
|
|
177
|
-
productId: string;
|
|
178
178
|
}, {
|
|
179
179
|
userId: string;
|
|
180
|
+
productId: string;
|
|
180
181
|
deviceIds: string[];
|
|
181
182
|
pricingId: string;
|
|
182
|
-
productId: string;
|
|
183
183
|
}>, {
|
|
184
184
|
userId: string;
|
|
185
|
+
productId: string;
|
|
185
186
|
deviceIds: string[];
|
|
186
187
|
pricingId: string;
|
|
187
|
-
productId: string;
|
|
188
188
|
}, {
|
|
189
189
|
userId: string;
|
|
190
|
+
productId: string;
|
|
190
191
|
deviceIds: string[];
|
|
191
192
|
pricingId: string;
|
|
192
|
-
productId: string;
|
|
193
193
|
}>;
|
|
194
194
|
}, "strip", z.ZodTypeAny, {
|
|
195
|
-
params: {
|
|
196
|
-
id: string;
|
|
197
|
-
};
|
|
198
195
|
body: {
|
|
199
196
|
userId: string;
|
|
197
|
+
productId: string;
|
|
200
198
|
deviceIds: string[];
|
|
201
199
|
pricingId: string;
|
|
202
|
-
productId: string;
|
|
203
200
|
};
|
|
204
|
-
}, {
|
|
205
201
|
params: {
|
|
206
202
|
id: string;
|
|
207
203
|
};
|
|
204
|
+
}, {
|
|
208
205
|
body: {
|
|
209
206
|
userId: string;
|
|
207
|
+
productId: string;
|
|
210
208
|
deviceIds: string[];
|
|
211
209
|
pricingId: string;
|
|
212
|
-
|
|
210
|
+
};
|
|
211
|
+
params: {
|
|
212
|
+
id: string;
|
|
213
213
|
};
|
|
214
214
|
}>;
|
|
215
215
|
export declare const recordPaymentSchema: z.ZodObject<{
|
|
@@ -229,37 +229,37 @@ export declare const recordPaymentSchema: z.ZodObject<{
|
|
|
229
229
|
}, "strip", z.ZodTypeAny, {
|
|
230
230
|
amount: number;
|
|
231
231
|
provider: "MTN_MOMO" | "AIRTEL_MONEY" | "DPO" | "FLUTTERWAVE";
|
|
232
|
+
metadata?: Record<string, any> | undefined;
|
|
232
233
|
providerReference?: string | undefined;
|
|
233
234
|
customerPhone?: string | undefined;
|
|
234
|
-
metadata?: Record<string, any> | undefined;
|
|
235
235
|
}, {
|
|
236
236
|
amount: number;
|
|
237
237
|
provider: "MTN_MOMO" | "AIRTEL_MONEY" | "DPO" | "FLUTTERWAVE";
|
|
238
|
+
metadata?: Record<string, any> | undefined;
|
|
238
239
|
providerReference?: string | undefined;
|
|
239
240
|
customerPhone?: string | undefined;
|
|
240
|
-
metadata?: Record<string, any> | undefined;
|
|
241
241
|
}>;
|
|
242
242
|
}, "strip", z.ZodTypeAny, {
|
|
243
|
-
params: {
|
|
244
|
-
id: string;
|
|
245
|
-
};
|
|
246
243
|
body: {
|
|
247
244
|
amount: number;
|
|
248
245
|
provider: "MTN_MOMO" | "AIRTEL_MONEY" | "DPO" | "FLUTTERWAVE";
|
|
246
|
+
metadata?: Record<string, any> | undefined;
|
|
249
247
|
providerReference?: string | undefined;
|
|
250
248
|
customerPhone?: string | undefined;
|
|
251
|
-
metadata?: Record<string, any> | undefined;
|
|
252
249
|
};
|
|
253
|
-
}, {
|
|
254
250
|
params: {
|
|
255
251
|
id: string;
|
|
256
252
|
};
|
|
253
|
+
}, {
|
|
257
254
|
body: {
|
|
258
255
|
amount: number;
|
|
259
256
|
provider: "MTN_MOMO" | "AIRTEL_MONEY" | "DPO" | "FLUTTERWAVE";
|
|
257
|
+
metadata?: Record<string, any> | undefined;
|
|
260
258
|
providerReference?: string | undefined;
|
|
261
259
|
customerPhone?: string | undefined;
|
|
262
|
-
|
|
260
|
+
};
|
|
261
|
+
params: {
|
|
262
|
+
id: string;
|
|
263
263
|
};
|
|
264
264
|
}>;
|
|
265
265
|
export declare const deletePlanSchema: z.ZodObject<{
|
|
@@ -65,23 +65,23 @@ export declare const updateDeviceSchema: z.ZodObject<{
|
|
|
65
65
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | null | undefined;
|
|
66
66
|
}>;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
|
-
params: {
|
|
69
|
-
id: string;
|
|
70
|
-
};
|
|
71
68
|
body: {
|
|
72
69
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
73
70
|
serialNumber?: string | undefined;
|
|
74
71
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | null | undefined;
|
|
75
72
|
};
|
|
76
|
-
}, {
|
|
77
73
|
params: {
|
|
78
74
|
id: string;
|
|
79
75
|
};
|
|
76
|
+
}, {
|
|
80
77
|
body: {
|
|
81
78
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
82
79
|
serialNumber?: string | undefined;
|
|
83
80
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | null | undefined;
|
|
84
81
|
};
|
|
82
|
+
params: {
|
|
83
|
+
id: string;
|
|
84
|
+
};
|
|
85
85
|
}>;
|
|
86
86
|
export declare const getDeviceSchema: z.ZodObject<{
|
|
87
87
|
params: z.ZodObject<{
|
|
@@ -113,50 +113,50 @@ export declare const getDevicesSchema: z.ZodObject<{
|
|
|
113
113
|
sortBy: z.ZodOptional<z.ZodEnum<["serialNumber", "status", "createdAt", "updatedAt"]>>;
|
|
114
114
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
search?: string | undefined;
|
|
117
|
+
limit?: number | undefined;
|
|
116
118
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
117
|
-
productId?: string | undefined;
|
|
118
119
|
page?: number | undefined;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
120
|
+
sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
|
|
121
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
122
|
+
productId?: string | undefined;
|
|
123
123
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
124
124
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
125
125
|
isAssigned?: "true" | "false" | undefined;
|
|
126
126
|
}, {
|
|
127
|
+
search?: string | undefined;
|
|
128
|
+
limit?: string | undefined;
|
|
127
129
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
128
|
-
productId?: string | undefined;
|
|
129
130
|
page?: string | undefined;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
131
|
+
sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
|
|
132
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
133
|
+
productId?: string | undefined;
|
|
134
134
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
135
135
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
136
136
|
isAssigned?: "true" | "false" | undefined;
|
|
137
137
|
}>;
|
|
138
138
|
}, "strip", z.ZodTypeAny, {
|
|
139
139
|
query: {
|
|
140
|
+
search?: string | undefined;
|
|
141
|
+
limit?: number | undefined;
|
|
140
142
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
141
|
-
productId?: string | undefined;
|
|
142
143
|
page?: number | undefined;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
144
|
+
sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
|
|
145
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
146
|
+
productId?: string | undefined;
|
|
147
147
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
148
148
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
149
149
|
isAssigned?: "true" | "false" | undefined;
|
|
150
150
|
};
|
|
151
151
|
}, {
|
|
152
152
|
query: {
|
|
153
|
+
search?: string | undefined;
|
|
154
|
+
limit?: string | undefined;
|
|
153
155
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
154
|
-
productId?: string | undefined;
|
|
155
156
|
page?: string | undefined;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
157
|
+
sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
|
|
158
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
159
|
+
productId?: string | undefined;
|
|
160
160
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
161
161
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
162
162
|
isAssigned?: "true" | "false" | undefined;
|
|
@@ -242,19 +242,19 @@ export declare const disableDeviceSchema: z.ZodObject<{
|
|
|
242
242
|
reason: string;
|
|
243
243
|
}>;
|
|
244
244
|
}, "strip", z.ZodTypeAny, {
|
|
245
|
-
params: {
|
|
246
|
-
id: string;
|
|
247
|
-
};
|
|
248
245
|
body: {
|
|
249
246
|
reason: string;
|
|
250
247
|
};
|
|
251
|
-
}, {
|
|
252
248
|
params: {
|
|
253
249
|
id: string;
|
|
254
250
|
};
|
|
251
|
+
}, {
|
|
255
252
|
body: {
|
|
256
253
|
reason: string;
|
|
257
254
|
};
|
|
255
|
+
params: {
|
|
256
|
+
id: string;
|
|
257
|
+
};
|
|
258
258
|
}>;
|
|
259
259
|
export declare const makePermanentSchema: z.ZodObject<{
|
|
260
260
|
params: z.ZodObject<{
|
|
@@ -616,9 +616,6 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
616
616
|
sentryDsn?: string | null | undefined;
|
|
617
617
|
}>;
|
|
618
618
|
}, "strip", z.ZodTypeAny, {
|
|
619
|
-
params: {
|
|
620
|
-
id: string;
|
|
621
|
-
};
|
|
622
619
|
body: {
|
|
623
620
|
appName?: string | undefined;
|
|
624
621
|
appShortName?: string | null | undefined;
|
|
@@ -695,10 +692,10 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
695
692
|
facebookPixelId?: string | null | undefined;
|
|
696
693
|
sentryDsn?: string | null | undefined;
|
|
697
694
|
};
|
|
698
|
-
}, {
|
|
699
695
|
params: {
|
|
700
696
|
id: string;
|
|
701
697
|
};
|
|
698
|
+
}, {
|
|
702
699
|
body: {
|
|
703
700
|
appName?: string | undefined;
|
|
704
701
|
appShortName?: string | null | undefined;
|
|
@@ -775,6 +772,9 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
775
772
|
facebookPixelId?: string | null | undefined;
|
|
776
773
|
sentryDsn?: string | null | undefined;
|
|
777
774
|
};
|
|
775
|
+
params: {
|
|
776
|
+
id: string;
|
|
777
|
+
};
|
|
778
778
|
}>;
|
|
779
779
|
export declare const listAppSpecsSchema: z.ZodObject<{
|
|
780
780
|
query: z.ZodObject<{
|
|
@@ -785,37 +785,37 @@ export declare const listAppSpecsSchema: z.ZodObject<{
|
|
|
785
785
|
sortBy: z.ZodOptional<z.ZodEnum<["version", "createdAt", "updatedAt"]>>;
|
|
786
786
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
787
787
|
}, "strip", z.ZodTypeAny, {
|
|
788
|
-
page: number;
|
|
789
788
|
limit: number;
|
|
789
|
+
page: number;
|
|
790
790
|
search?: string | undefined;
|
|
791
|
-
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
792
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
793
791
|
isActive?: "true" | "false" | undefined;
|
|
792
|
+
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
793
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
794
794
|
}, {
|
|
795
|
-
page?: string | undefined;
|
|
796
|
-
limit?: string | undefined;
|
|
797
795
|
search?: string | undefined;
|
|
798
|
-
|
|
799
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
796
|
+
limit?: string | undefined;
|
|
800
797
|
isActive?: "true" | "false" | undefined;
|
|
798
|
+
page?: string | undefined;
|
|
799
|
+
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
800
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
801
801
|
}>;
|
|
802
802
|
}, "strip", z.ZodTypeAny, {
|
|
803
803
|
query: {
|
|
804
|
-
page: number;
|
|
805
804
|
limit: number;
|
|
805
|
+
page: number;
|
|
806
806
|
search?: string | undefined;
|
|
807
|
-
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
808
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
809
807
|
isActive?: "true" | "false" | undefined;
|
|
808
|
+
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
809
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
810
810
|
};
|
|
811
811
|
}, {
|
|
812
812
|
query: {
|
|
813
|
-
page?: string | undefined;
|
|
814
|
-
limit?: string | undefined;
|
|
815
813
|
search?: string | undefined;
|
|
816
|
-
|
|
817
|
-
sortOrder?: "ASC" | "DESC" | undefined;
|
|
814
|
+
limit?: string | undefined;
|
|
818
815
|
isActive?: "true" | "false" | undefined;
|
|
816
|
+
page?: string | undefined;
|
|
817
|
+
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
818
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
819
819
|
};
|
|
820
820
|
}>;
|
|
821
821
|
export declare const getAppSpecsSchema: z.ZodObject<{
|
|
@@ -15,19 +15,19 @@ export declare const submitBanAppealSchema: z.ZodObject<{
|
|
|
15
15
|
appealReason: string;
|
|
16
16
|
}>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
params: {
|
|
19
|
-
banId: string;
|
|
20
|
-
};
|
|
21
18
|
body: {
|
|
22
19
|
appealReason: string;
|
|
23
20
|
};
|
|
24
|
-
}, {
|
|
25
21
|
params: {
|
|
26
22
|
banId: string;
|
|
27
23
|
};
|
|
24
|
+
}, {
|
|
28
25
|
body: {
|
|
29
26
|
appealReason: string;
|
|
30
27
|
};
|
|
28
|
+
params: {
|
|
29
|
+
banId: string;
|
|
30
|
+
};
|
|
31
31
|
}>;
|
|
32
32
|
export declare const submitSuspensionAppealSchema: z.ZodObject<{
|
|
33
33
|
params: z.ZodObject<{
|
|
@@ -45,17 +45,17 @@ export declare const submitSuspensionAppealSchema: z.ZodObject<{
|
|
|
45
45
|
appealReason: string;
|
|
46
46
|
}>;
|
|
47
47
|
}, "strip", z.ZodTypeAny, {
|
|
48
|
-
params: {
|
|
49
|
-
suspensionId: string;
|
|
50
|
-
};
|
|
51
48
|
body: {
|
|
52
49
|
appealReason: string;
|
|
53
50
|
};
|
|
54
|
-
}, {
|
|
55
51
|
params: {
|
|
56
52
|
suspensionId: string;
|
|
57
53
|
};
|
|
54
|
+
}, {
|
|
58
55
|
body: {
|
|
59
56
|
appealReason: string;
|
|
60
57
|
};
|
|
58
|
+
params: {
|
|
59
|
+
suspensionId: string;
|
|
60
|
+
};
|
|
61
61
|
}>;
|
|
@@ -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<{
|
|
@@ -135,16 +135,16 @@ export declare const riderLoginSchema: z.ZodObject<{
|
|
|
135
135
|
phoneNumber: string;
|
|
136
136
|
nationalId: string;
|
|
137
137
|
};
|
|
138
|
-
params?: {} | undefined;
|
|
139
138
|
query?: {} | undefined;
|
|
139
|
+
params?: {} | undefined;
|
|
140
140
|
headers?: {} | undefined;
|
|
141
141
|
}, {
|
|
142
142
|
body: {
|
|
143
143
|
phoneNumber: string;
|
|
144
144
|
nationalId: string;
|
|
145
145
|
};
|
|
146
|
-
params?: {} | undefined;
|
|
147
146
|
query?: {} | undefined;
|
|
147
|
+
params?: {} | undefined;
|
|
148
148
|
headers?: {} | undefined;
|
|
149
149
|
}>;
|
|
150
150
|
export declare const requestOtpSchema: 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
|
};
|
|
@@ -32,19 +32,19 @@ export declare const getUserRestrictionsSchema: z.ZodObject<{
|
|
|
32
32
|
includeResolved?: "true" | "false" | undefined;
|
|
33
33
|
}>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
params: {
|
|
36
|
-
userId: string;
|
|
37
|
-
};
|
|
38
35
|
query: {
|
|
39
36
|
includeResolved?: "true" | "false" | undefined;
|
|
40
37
|
};
|
|
41
|
-
}, {
|
|
42
38
|
params: {
|
|
43
39
|
userId: string;
|
|
44
40
|
};
|
|
41
|
+
}, {
|
|
45
42
|
query: {
|
|
46
43
|
includeResolved?: "true" | "false" | undefined;
|
|
47
44
|
};
|
|
45
|
+
params: {
|
|
46
|
+
userId: string;
|
|
47
|
+
};
|
|
48
48
|
}>;
|
|
49
49
|
export declare const createBanSchema: z.ZodObject<{
|
|
50
50
|
params: z.ZodObject<{
|
|
@@ -65,19 +65,19 @@ export declare const createBanSchema: z.ZodObject<{
|
|
|
65
65
|
isPermanent?: boolean | undefined;
|
|
66
66
|
}>;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
|
-
params: {
|
|
69
|
-
userId: string;
|
|
70
|
-
};
|
|
71
68
|
body: {
|
|
72
69
|
reason: string;
|
|
73
70
|
isPermanent: boolean;
|
|
74
71
|
};
|
|
75
|
-
}, {
|
|
76
72
|
params: {
|
|
77
73
|
userId: string;
|
|
78
74
|
};
|
|
75
|
+
}, {
|
|
79
76
|
body: {
|
|
80
77
|
reason: string;
|
|
81
78
|
isPermanent?: boolean | undefined;
|
|
82
79
|
};
|
|
80
|
+
params: {
|
|
81
|
+
userId: string;
|
|
82
|
+
};
|
|
83
83
|
}>;
|