vr-commons 1.0.133 → 1.0.135
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/validations/account.validations.d.ts +16 -16
- package/dist/validations/admin.devicePayment.validations.d.ts +37 -27
- package/dist/validations/admin.devicePayment.validations.js +4 -4
- package/dist/validations/admin.devices.validations.d.ts +16 -16
- package/dist/validations/appSpecs.validations.d.ts +4 -4
- package/dist/validations/appeals.validations.d.ts +8 -8
- package/dist/validations/bans.validations.d.ts +8 -8
- package/dist/validations/devicePaymentPlan.validations.d.ts +9 -9
- package/dist/validations/moderation.validations.d.ts +57 -57
- package/dist/validations/payinstallment.validations.d.ts +38 -23
- package/dist/validations/payinstallment.validations.js +10 -6
- package/dist/validations/pricing.validations.d.ts +30 -30
- package/dist/validations/pricings.validations.d.ts +8 -8
- package/dist/validations/product.validations.d.ts +12 -12
- package/dist/validations/profiles.validations.d.ts +22 -22
- package/dist/validations/suspensions.validations.d.ts +8 -8
- package/dist/validations/users.admin.validations.d.ts +52 -52
- package/package.json +2 -2
|
@@ -280,21 +280,21 @@ export declare const loginSchema: z.ZodObject<{
|
|
|
280
280
|
contactValue: z.ZodEffects<z.ZodString, string, string>;
|
|
281
281
|
password: z.ZodString;
|
|
282
282
|
}, "strip", z.ZodTypeAny, {
|
|
283
|
-
contactValue: string;
|
|
284
283
|
password: string;
|
|
285
|
-
}, {
|
|
286
284
|
contactValue: string;
|
|
285
|
+
}, {
|
|
287
286
|
password: string;
|
|
287
|
+
contactValue: string;
|
|
288
288
|
}>;
|
|
289
289
|
}, "strip", z.ZodTypeAny, {
|
|
290
290
|
body: {
|
|
291
|
-
contactValue: string;
|
|
292
291
|
password: string;
|
|
292
|
+
contactValue: string;
|
|
293
293
|
};
|
|
294
294
|
}, {
|
|
295
295
|
body: {
|
|
296
|
-
contactValue: string;
|
|
297
296
|
password: string;
|
|
297
|
+
contactValue: string;
|
|
298
298
|
};
|
|
299
299
|
}>;
|
|
300
300
|
export declare const forgotPasswordSchema: z.ZodObject<{
|
|
@@ -367,9 +367,9 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
367
367
|
birthMonth: number;
|
|
368
368
|
birthYear: number;
|
|
369
369
|
phoneNumber: string;
|
|
370
|
-
plateNumber?: string | null | undefined;
|
|
371
|
-
password?: string | undefined;
|
|
372
370
|
jacketId?: string | null | undefined;
|
|
371
|
+
password?: string | undefined;
|
|
372
|
+
plateNumber?: string | null | undefined;
|
|
373
373
|
}, {
|
|
374
374
|
firstName: string;
|
|
375
375
|
lastName: string;
|
|
@@ -378,9 +378,9 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
378
378
|
birthMonth: number;
|
|
379
379
|
birthYear: number;
|
|
380
380
|
phoneNumber: string;
|
|
381
|
-
plateNumber?: string | null | undefined;
|
|
382
|
-
password?: string | undefined;
|
|
383
381
|
jacketId?: string | null | undefined;
|
|
382
|
+
password?: string | undefined;
|
|
383
|
+
plateNumber?: string | null | undefined;
|
|
384
384
|
}>, {
|
|
385
385
|
firstName: string;
|
|
386
386
|
lastName: string;
|
|
@@ -389,9 +389,9 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
389
389
|
birthMonth: number;
|
|
390
390
|
birthYear: number;
|
|
391
391
|
phoneNumber: string;
|
|
392
|
-
plateNumber?: string | null | undefined;
|
|
393
|
-
password?: string | undefined;
|
|
394
392
|
jacketId?: string | null | undefined;
|
|
393
|
+
password?: string | undefined;
|
|
394
|
+
plateNumber?: string | null | undefined;
|
|
395
395
|
}, {
|
|
396
396
|
firstName: string;
|
|
397
397
|
lastName: string;
|
|
@@ -400,9 +400,9 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
400
400
|
birthMonth: number;
|
|
401
401
|
birthYear: number;
|
|
402
402
|
phoneNumber: string;
|
|
403
|
-
plateNumber?: string | null | undefined;
|
|
404
|
-
password?: string | undefined;
|
|
405
403
|
jacketId?: string | null | undefined;
|
|
404
|
+
password?: string | undefined;
|
|
405
|
+
plateNumber?: string | null | undefined;
|
|
406
406
|
}>;
|
|
407
407
|
}, "strip", z.ZodTypeAny, {
|
|
408
408
|
body: {
|
|
@@ -413,9 +413,9 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
413
413
|
birthMonth: number;
|
|
414
414
|
birthYear: number;
|
|
415
415
|
phoneNumber: string;
|
|
416
|
-
plateNumber?: string | null | undefined;
|
|
417
|
-
password?: string | undefined;
|
|
418
416
|
jacketId?: string | null | undefined;
|
|
417
|
+
password?: string | undefined;
|
|
418
|
+
plateNumber?: string | null | undefined;
|
|
419
419
|
};
|
|
420
420
|
}, {
|
|
421
421
|
body: {
|
|
@@ -426,9 +426,9 @@ export declare const registerRiderSchema: z.ZodObject<{
|
|
|
426
426
|
birthMonth: number;
|
|
427
427
|
birthYear: number;
|
|
428
428
|
phoneNumber: string;
|
|
429
|
-
plateNumber?: string | null | undefined;
|
|
430
|
-
password?: string | undefined;
|
|
431
429
|
jacketId?: string | null | undefined;
|
|
430
|
+
password?: string | undefined;
|
|
431
|
+
plateNumber?: string | null | undefined;
|
|
432
432
|
};
|
|
433
433
|
}>;
|
|
434
434
|
export type UpdateProfileSchema = z.infer<typeof updateProfileSchema>;
|
|
@@ -37,7 +37,7 @@ export declare const listPlansSchema: z.ZodObject<{
|
|
|
37
37
|
limit: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>>;
|
|
38
38
|
userId: z.ZodOptional<z.ZodString>;
|
|
39
39
|
deviceId: z.ZodOptional<z.ZodString>;
|
|
40
|
-
status: z.ZodOptional<z.ZodEnum<["ACTIVE", "COMPLETED", "DEFAULTED", "CANCELLED"]>>;
|
|
40
|
+
status: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "COMPLETED", "DEFAULTED", "CANCELLED"]>>;
|
|
41
41
|
isOverdue: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
|
|
42
42
|
search: z.ZodOptional<z.ZodString>;
|
|
43
43
|
sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "nextInstallmentDueAt", "paidAmount", "outstandingAmount"]>>;
|
|
@@ -45,18 +45,18 @@ export declare const listPlansSchema: z.ZodObject<{
|
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
46
|
limit: number;
|
|
47
47
|
page: number;
|
|
48
|
+
status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
48
49
|
search?: string | undefined;
|
|
49
50
|
userId?: string | undefined;
|
|
50
|
-
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
51
51
|
isOverdue?: "true" | "false" | undefined;
|
|
52
52
|
sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
|
|
53
53
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
54
54
|
deviceId?: string | undefined;
|
|
55
55
|
}, {
|
|
56
|
+
status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
56
57
|
search?: string | undefined;
|
|
57
58
|
limit?: string | undefined;
|
|
58
59
|
userId?: string | undefined;
|
|
59
|
-
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
60
60
|
isOverdue?: "true" | "false" | undefined;
|
|
61
61
|
page?: string | undefined;
|
|
62
62
|
sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
|
|
@@ -67,9 +67,9 @@ export declare const listPlansSchema: z.ZodObject<{
|
|
|
67
67
|
query: {
|
|
68
68
|
limit: number;
|
|
69
69
|
page: number;
|
|
70
|
+
status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
70
71
|
search?: string | undefined;
|
|
71
72
|
userId?: string | undefined;
|
|
72
|
-
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
73
73
|
isOverdue?: "true" | "false" | undefined;
|
|
74
74
|
sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
|
|
75
75
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
@@ -77,10 +77,10 @@ export declare const listPlansSchema: z.ZodObject<{
|
|
|
77
77
|
};
|
|
78
78
|
}, {
|
|
79
79
|
query: {
|
|
80
|
+
status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
80
81
|
search?: string | undefined;
|
|
81
82
|
limit?: string | undefined;
|
|
82
83
|
userId?: string | undefined;
|
|
83
|
-
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
84
84
|
isOverdue?: "true" | "false" | undefined;
|
|
85
85
|
page?: string | undefined;
|
|
86
86
|
sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
|
|
@@ -114,13 +114,13 @@ export declare const getUserPlansSchema: z.ZodObject<{
|
|
|
114
114
|
userId: string;
|
|
115
115
|
}>;
|
|
116
116
|
query: z.ZodOptional<z.ZodObject<{
|
|
117
|
-
status: z.ZodOptional<z.ZodEnum<["ACTIVE", "COMPLETED", "DEFAULTED", "CANCELLED"]>>;
|
|
117
|
+
status: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "COMPLETED", "DEFAULTED", "CANCELLED"]>>;
|
|
118
118
|
includeCompleted: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
|
|
119
119
|
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
120
|
+
status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
121
121
|
includeCompleted?: "true" | "false" | undefined;
|
|
122
122
|
}, {
|
|
123
|
-
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
123
|
+
status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "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" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
131
|
+
status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "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" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
139
|
+
status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
140
140
|
includeCompleted?: "true" | "false" | undefined;
|
|
141
141
|
} | undefined;
|
|
142
142
|
}>;
|
|
@@ -192,25 +192,25 @@ export declare const limitedUpdateSchema: z.ZodObject<{
|
|
|
192
192
|
pricingId?: string | undefined;
|
|
193
193
|
}>;
|
|
194
194
|
}, "strip", z.ZodTypeAny, {
|
|
195
|
+
params: {
|
|
196
|
+
id: string;
|
|
197
|
+
};
|
|
195
198
|
body: {
|
|
196
199
|
userId?: string | undefined;
|
|
197
200
|
productId?: string | undefined;
|
|
198
201
|
deviceIds?: string[] | undefined;
|
|
199
202
|
pricingId?: string | undefined;
|
|
200
203
|
};
|
|
204
|
+
}, {
|
|
201
205
|
params: {
|
|
202
206
|
id: string;
|
|
203
207
|
};
|
|
204
|
-
}, {
|
|
205
208
|
body: {
|
|
206
209
|
userId?: string | undefined;
|
|
207
210
|
productId?: string | undefined;
|
|
208
211
|
deviceIds?: string[] | undefined;
|
|
209
212
|
pricingId?: string | undefined;
|
|
210
213
|
};
|
|
211
|
-
params: {
|
|
212
|
-
id: string;
|
|
213
|
-
};
|
|
214
214
|
}>;
|
|
215
215
|
export declare const recordPaymentSchema: z.ZodObject<{
|
|
216
216
|
params: z.ZodObject<{
|
|
@@ -222,44 +222,54 @@ 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.ZodDefault<z.ZodEnum<["AIRTEL_MONEY", "CASH", "MOMO_PAY"]>>;
|
|
226
226
|
providerReference: z.ZodOptional<z.ZodString>;
|
|
227
227
|
customerPhone: z.ZodOptional<z.ZodString>;
|
|
228
|
+
customerName: z.ZodOptional<z.ZodString>;
|
|
229
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
228
230
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
229
231
|
}, "strip", z.ZodTypeAny, {
|
|
230
232
|
amount: number;
|
|
231
|
-
provider: "
|
|
232
|
-
metadata?: Record<string, any> | undefined;
|
|
233
|
+
provider: "AIRTEL_MONEY" | "CASH" | "MOMO_PAY";
|
|
233
234
|
providerReference?: string | undefined;
|
|
234
235
|
customerPhone?: string | undefined;
|
|
236
|
+
notes?: string | undefined;
|
|
237
|
+
metadata?: Record<string, any> | undefined;
|
|
238
|
+
customerName?: string | undefined;
|
|
235
239
|
}, {
|
|
236
240
|
amount: number;
|
|
237
|
-
provider
|
|
238
|
-
metadata?: Record<string, any> | undefined;
|
|
241
|
+
provider?: "AIRTEL_MONEY" | "CASH" | "MOMO_PAY" | undefined;
|
|
239
242
|
providerReference?: string | undefined;
|
|
240
243
|
customerPhone?: string | undefined;
|
|
244
|
+
notes?: string | undefined;
|
|
245
|
+
metadata?: Record<string, any> | undefined;
|
|
246
|
+
customerName?: string | undefined;
|
|
241
247
|
}>;
|
|
242
248
|
}, "strip", z.ZodTypeAny, {
|
|
249
|
+
params: {
|
|
250
|
+
id: string;
|
|
251
|
+
};
|
|
243
252
|
body: {
|
|
244
253
|
amount: number;
|
|
245
|
-
provider: "
|
|
246
|
-
metadata?: Record<string, any> | undefined;
|
|
254
|
+
provider: "AIRTEL_MONEY" | "CASH" | "MOMO_PAY";
|
|
247
255
|
providerReference?: string | undefined;
|
|
248
256
|
customerPhone?: string | undefined;
|
|
257
|
+
notes?: string | undefined;
|
|
258
|
+
metadata?: Record<string, any> | undefined;
|
|
259
|
+
customerName?: string | undefined;
|
|
249
260
|
};
|
|
261
|
+
}, {
|
|
250
262
|
params: {
|
|
251
263
|
id: string;
|
|
252
264
|
};
|
|
253
|
-
}, {
|
|
254
265
|
body: {
|
|
255
266
|
amount: number;
|
|
256
|
-
provider
|
|
257
|
-
metadata?: Record<string, any> | undefined;
|
|
267
|
+
provider?: "AIRTEL_MONEY" | "CASH" | "MOMO_PAY" | undefined;
|
|
258
268
|
providerReference?: string | undefined;
|
|
259
269
|
customerPhone?: string | undefined;
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
270
|
+
notes?: string | undefined;
|
|
271
|
+
metadata?: Record<string, any> | undefined;
|
|
272
|
+
customerName?: string | undefined;
|
|
263
273
|
};
|
|
264
274
|
}>;
|
|
265
275
|
export declare const deletePlanSchema: z.ZodObject<{
|
|
@@ -80,21 +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/
|
|
83
|
+
// src/modules/devicePaymentPlans/validations/devicePaymentPlans.validations.ts
|
|
84
84
|
exports.recordPaymentSchema = zod_1.z.object({
|
|
85
85
|
params: zod_1.z.object({
|
|
86
86
|
id: zod_1.z.string().uuid("Invalid payment plan ID"),
|
|
87
87
|
}),
|
|
88
88
|
body: zod_1.z.object({
|
|
89
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
|
+
provider: zod_1.z.enum(vr_models_1.PAYMENT_PROVIDER).default("MOMO_PAY"),
|
|
93
91
|
providerReference: zod_1.z.string().optional(),
|
|
94
92
|
customerPhone: zod_1.z
|
|
95
93
|
.string()
|
|
96
94
|
.regex(/^\+?250[0-9]{9}$/, "Invalid MTN Rwanda phone number")
|
|
97
95
|
.optional(),
|
|
96
|
+
customerName: zod_1.z.string().min(2).max(100).optional(),
|
|
97
|
+
notes: zod_1.z.string().optional(),
|
|
98
98
|
metadata: zod_1.z.record(zod_1.z.any()).optional(),
|
|
99
99
|
}),
|
|
100
100
|
});
|
|
@@ -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
|
+
};
|
|
68
71
|
body: {
|
|
69
72
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
70
73
|
serialNumber?: string | undefined;
|
|
71
74
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | null | undefined;
|
|
72
75
|
};
|
|
76
|
+
}, {
|
|
73
77
|
params: {
|
|
74
78
|
id: string;
|
|
75
79
|
};
|
|
76
|
-
}, {
|
|
77
80
|
body: {
|
|
78
81
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
79
82
|
serialNumber?: string | undefined;
|
|
80
83
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | null | undefined;
|
|
81
84
|
};
|
|
82
|
-
params: {
|
|
83
|
-
id: string;
|
|
84
|
-
};
|
|
85
85
|
}>;
|
|
86
86
|
export declare const getDeviceSchema: z.ZodObject<{
|
|
87
87
|
params: z.ZodObject<{
|
|
@@ -113,22 +113,22 @@ 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
|
+
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
116
117
|
search?: string | undefined;
|
|
117
118
|
limit?: number | undefined;
|
|
118
|
-
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
119
119
|
page?: number | undefined;
|
|
120
|
-
sortBy?: "
|
|
120
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "serialNumber" | undefined;
|
|
121
121
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
122
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
|
+
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
127
128
|
search?: string | undefined;
|
|
128
129
|
limit?: string | undefined;
|
|
129
|
-
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
130
130
|
page?: string | undefined;
|
|
131
|
-
sortBy?: "
|
|
131
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "serialNumber" | undefined;
|
|
132
132
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
133
133
|
productId?: string | undefined;
|
|
134
134
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
@@ -137,11 +137,11 @@ export declare const getDevicesSchema: z.ZodObject<{
|
|
|
137
137
|
}>;
|
|
138
138
|
}, "strip", z.ZodTypeAny, {
|
|
139
139
|
query: {
|
|
140
|
+
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
140
141
|
search?: string | undefined;
|
|
141
142
|
limit?: number | undefined;
|
|
142
|
-
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
143
143
|
page?: number | undefined;
|
|
144
|
-
sortBy?: "
|
|
144
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "serialNumber" | undefined;
|
|
145
145
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
146
146
|
productId?: string | undefined;
|
|
147
147
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
@@ -150,11 +150,11 @@ export declare const getDevicesSchema: z.ZodObject<{
|
|
|
150
150
|
};
|
|
151
151
|
}, {
|
|
152
152
|
query: {
|
|
153
|
+
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
153
154
|
search?: string | undefined;
|
|
154
155
|
limit?: string | undefined;
|
|
155
|
-
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
156
156
|
page?: string | undefined;
|
|
157
|
-
sortBy?: "
|
|
157
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "serialNumber" | undefined;
|
|
158
158
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
159
159
|
productId?: string | undefined;
|
|
160
160
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
@@ -242,19 +242,19 @@ export declare const disableDeviceSchema: z.ZodObject<{
|
|
|
242
242
|
reason: string;
|
|
243
243
|
}>;
|
|
244
244
|
}, "strip", z.ZodTypeAny, {
|
|
245
|
-
body: {
|
|
246
|
-
reason: string;
|
|
247
|
-
};
|
|
248
245
|
params: {
|
|
249
246
|
id: string;
|
|
250
247
|
};
|
|
251
|
-
}, {
|
|
252
248
|
body: {
|
|
253
249
|
reason: string;
|
|
254
250
|
};
|
|
251
|
+
}, {
|
|
255
252
|
params: {
|
|
256
253
|
id: string;
|
|
257
254
|
};
|
|
255
|
+
body: {
|
|
256
|
+
reason: string;
|
|
257
|
+
};
|
|
258
258
|
}>;
|
|
259
259
|
export declare const makePermanentSchema: z.ZodObject<{
|
|
260
260
|
params: z.ZodObject<{
|
|
@@ -616,6 +616,9 @@ 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
|
+
};
|
|
619
622
|
body: {
|
|
620
623
|
appName?: string | undefined;
|
|
621
624
|
appShortName?: string | null | undefined;
|
|
@@ -692,10 +695,10 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
692
695
|
facebookPixelId?: string | null | undefined;
|
|
693
696
|
sentryDsn?: string | null | undefined;
|
|
694
697
|
};
|
|
698
|
+
}, {
|
|
695
699
|
params: {
|
|
696
700
|
id: string;
|
|
697
701
|
};
|
|
698
|
-
}, {
|
|
699
702
|
body: {
|
|
700
703
|
appName?: string | undefined;
|
|
701
704
|
appShortName?: string | null | undefined;
|
|
@@ -772,9 +775,6 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
772
775
|
facebookPixelId?: string | null | undefined;
|
|
773
776
|
sentryDsn?: string | null | undefined;
|
|
774
777
|
};
|
|
775
|
-
params: {
|
|
776
|
-
id: string;
|
|
777
|
-
};
|
|
778
778
|
}>;
|
|
779
779
|
export declare const listAppSpecsSchema: z.ZodObject<{
|
|
780
780
|
query: z.ZodObject<{
|
|
@@ -15,19 +15,19 @@ export declare const submitBanAppealSchema: z.ZodObject<{
|
|
|
15
15
|
appealReason: string;
|
|
16
16
|
}>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
body: {
|
|
19
|
-
appealReason: string;
|
|
20
|
-
};
|
|
21
18
|
params: {
|
|
22
19
|
banId: string;
|
|
23
20
|
};
|
|
24
|
-
}, {
|
|
25
21
|
body: {
|
|
26
22
|
appealReason: string;
|
|
27
23
|
};
|
|
24
|
+
}, {
|
|
28
25
|
params: {
|
|
29
26
|
banId: string;
|
|
30
27
|
};
|
|
28
|
+
body: {
|
|
29
|
+
appealReason: 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
|
-
body: {
|
|
49
|
-
appealReason: string;
|
|
50
|
-
};
|
|
51
48
|
params: {
|
|
52
49
|
suspensionId: string;
|
|
53
50
|
};
|
|
54
|
-
}, {
|
|
55
51
|
body: {
|
|
56
52
|
appealReason: string;
|
|
57
53
|
};
|
|
54
|
+
}, {
|
|
58
55
|
params: {
|
|
59
56
|
suspensionId: string;
|
|
60
57
|
};
|
|
58
|
+
body: {
|
|
59
|
+
appealReason: string;
|
|
60
|
+
};
|
|
61
61
|
}>;
|
|
@@ -32,19 +32,19 @@ export declare const getUserRestrictionsSchema: z.ZodObject<{
|
|
|
32
32
|
includeResolved?: "true" | "false" | undefined;
|
|
33
33
|
}>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
query: {
|
|
36
|
-
includeResolved?: "true" | "false" | undefined;
|
|
37
|
-
};
|
|
38
35
|
params: {
|
|
39
36
|
userId: string;
|
|
40
37
|
};
|
|
41
|
-
}, {
|
|
42
38
|
query: {
|
|
43
39
|
includeResolved?: "true" | "false" | undefined;
|
|
44
40
|
};
|
|
41
|
+
}, {
|
|
45
42
|
params: {
|
|
46
43
|
userId: string;
|
|
47
44
|
};
|
|
45
|
+
query: {
|
|
46
|
+
includeResolved?: "true" | "false" | undefined;
|
|
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
|
+
};
|
|
68
71
|
body: {
|
|
69
72
|
reason: string;
|
|
70
73
|
isPermanent: boolean;
|
|
71
74
|
};
|
|
75
|
+
}, {
|
|
72
76
|
params: {
|
|
73
77
|
userId: string;
|
|
74
78
|
};
|
|
75
|
-
}, {
|
|
76
79
|
body: {
|
|
77
80
|
reason: string;
|
|
78
81
|
isPermanent?: boolean | undefined;
|
|
79
82
|
};
|
|
80
|
-
params: {
|
|
81
|
-
userId: string;
|
|
82
|
-
};
|
|
83
83
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const listUserPaymentPlansSchema: z.ZodObject<{
|
|
3
3
|
query: z.ZodObject<{
|
|
4
|
-
status: z.ZodOptional<z.ZodEnum<["ACTIVE", "COMPLETED", "DEFAULTED", "CANCELLED"]>>;
|
|
4
|
+
status: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "COMPLETED", "DEFAULTED", "CANCELLED"]>>;
|
|
5
5
|
page: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, z.ZodNumber>;
|
|
6
6
|
limit: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, z.ZodNumber>;
|
|
7
7
|
sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "nextInstallmentDueAt", "status"]>>;
|
|
@@ -9,30 +9,30 @@ export declare const listUserPaymentPlansSchema: z.ZodObject<{
|
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
limit: number;
|
|
11
11
|
page: number;
|
|
12
|
-
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
13
|
-
sortBy?: "
|
|
12
|
+
status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
13
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
14
14
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
15
15
|
}, {
|
|
16
|
+
status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
16
17
|
limit?: string | undefined;
|
|
17
|
-
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
18
18
|
page?: string | undefined;
|
|
19
|
-
sortBy?: "
|
|
19
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
20
20
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
query: {
|
|
24
24
|
limit: number;
|
|
25
25
|
page: number;
|
|
26
|
-
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
27
|
-
sortBy?: "
|
|
26
|
+
status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
27
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
28
28
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
29
29
|
};
|
|
30
30
|
}, {
|
|
31
31
|
query: {
|
|
32
|
+
status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
32
33
|
limit?: string | undefined;
|
|
33
|
-
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
34
34
|
page?: string | undefined;
|
|
35
|
-
sortBy?: "
|
|
35
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
36
36
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
37
37
|
};
|
|
38
38
|
}>;
|