vr-commons 1.0.111 → 1.0.112

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.
@@ -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;
11
10
  deviceIds: string[];
12
11
  pricingId: string;
12
+ productId: string;
13
13
  }, {
14
14
  userId: string;
15
- productId: string;
16
15
  deviceIds: string[];
17
16
  pricingId: string;
17
+ productId: string;
18
18
  }>;
19
19
  }, "strip", z.ZodTypeAny, {
20
20
  body: {
21
21
  userId: string;
22
- productId: string;
23
22
  deviceIds: string[];
24
23
  pricingId: string;
24
+ productId: string;
25
25
  };
26
26
  }, {
27
27
  body: {
28
28
  userId: string;
29
- productId: string;
30
29
  deviceIds: string[];
31
30
  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
- limit: number;
47
46
  page: number;
48
- search?: string | undefined;
47
+ limit: number;
48
+ status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
49
49
  userId?: string | undefined;
50
- status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
51
- sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
52
- sortOrder?: "DESC" | "ASC" | undefined;
53
50
  deviceId?: string | undefined;
54
51
  isOverdue?: "true" | "false" | undefined;
55
- }, {
56
52
  search?: string | undefined;
57
- limit?: string | undefined;
53
+ sortBy?: "createdAt" | "updatedAt" | "nextInstallmentDueAt" | "paidAmount" | "outstandingAmount" | undefined;
54
+ sortOrder?: "ASC" | "DESC" | undefined;
55
+ }, {
56
+ status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
58
57
  userId?: string | undefined;
59
- status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
60
58
  page?: string | undefined;
61
- sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
62
- sortOrder?: "DESC" | "ASC" | undefined;
59
+ limit?: string | undefined;
63
60
  deviceId?: string | undefined;
64
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
- limit: number;
69
68
  page: number;
70
- search?: string | undefined;
69
+ limit: number;
70
+ status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
71
71
  userId?: string | undefined;
72
- status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
73
- sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
74
- sortOrder?: "DESC" | "ASC" | undefined;
75
72
  deviceId?: string | undefined;
76
73
  isOverdue?: "true" | "false" | undefined;
74
+ search?: string | undefined;
75
+ sortBy?: "createdAt" | "updatedAt" | "nextInstallmentDueAt" | "paidAmount" | "outstandingAmount" | undefined;
76
+ sortOrder?: "ASC" | "DESC" | undefined;
77
77
  };
78
78
  }, {
79
79
  query: {
80
- search?: string | undefined;
81
- limit?: string | undefined;
80
+ status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
82
81
  userId?: string | undefined;
83
- status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
84
82
  page?: string | undefined;
85
- sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
86
- sortOrder?: "DESC" | "ASC" | undefined;
83
+ limit?: string | undefined;
87
84
  deviceId?: string | undefined;
88
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" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
120
+ status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
121
121
  includeCompleted?: "true" | "false" | undefined;
122
122
  }, {
123
- status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
123
+ status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "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" | "COMPLETED" | "DEFAULTED" | "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" | "COMPLETED" | "DEFAULTED" | "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;
176
175
  deviceIds: string[];
177
176
  pricingId: string;
177
+ productId: string;
178
178
  }, {
179
179
  userId: string;
180
- productId: string;
181
180
  deviceIds: string[];
182
181
  pricingId: string;
182
+ productId: string;
183
183
  }>, {
184
184
  userId: string;
185
- productId: string;
186
185
  deviceIds: string[];
187
186
  pricingId: string;
187
+ productId: string;
188
188
  }, {
189
189
  userId: string;
190
- productId: string;
191
190
  deviceIds: string[];
192
191
  pricingId: string;
192
+ productId: string;
193
193
  }>;
194
194
  }, "strip", z.ZodTypeAny, {
195
+ params: {
196
+ id: string;
197
+ };
195
198
  body: {
196
199
  userId: string;
197
- productId: string;
198
200
  deviceIds: string[];
199
201
  pricingId: string;
202
+ productId: string;
200
203
  };
204
+ }, {
201
205
  params: {
202
206
  id: string;
203
207
  };
204
- }, {
205
208
  body: {
206
209
  userId: string;
207
- productId: string;
208
210
  deviceIds: string[];
209
211
  pricingId: string;
210
- };
211
- params: {
212
- id: string;
212
+ productId: string;
213
213
  };
214
214
  }>;
215
215
  export declare const recordPaymentSchema: z.ZodObject<{
@@ -222,39 +222,44 @@ export declare const recordPaymentSchema: z.ZodObject<{
222
222
  }>;
223
223
  body: z.ZodObject<{
224
224
  amount: z.ZodNumber;
225
- provider: z.ZodEnum<["mtn_momo", "airtel_money"]>;
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: "mtn_momo" | "airtel_money";
231
- metadata?: Record<string, any> | undefined;
231
+ provider: "MTN_MOMO" | "AIRTEL_MONEY" | "DPO" | "FLUTTERWAVE";
232
232
  providerReference?: string | undefined;
233
+ customerPhone?: string | undefined;
234
+ metadata?: Record<string, any> | undefined;
233
235
  }, {
234
236
  amount: number;
235
- provider: "mtn_momo" | "airtel_money";
236
- metadata?: Record<string, any> | undefined;
237
+ provider: "MTN_MOMO" | "AIRTEL_MONEY" | "DPO" | "FLUTTERWAVE";
237
238
  providerReference?: string | undefined;
239
+ customerPhone?: string | undefined;
240
+ metadata?: Record<string, any> | undefined;
238
241
  }>;
239
242
  }, "strip", z.ZodTypeAny, {
243
+ params: {
244
+ id: string;
245
+ };
240
246
  body: {
241
247
  amount: number;
242
- provider: "mtn_momo" | "airtel_money";
243
- metadata?: Record<string, any> | undefined;
248
+ provider: "MTN_MOMO" | "AIRTEL_MONEY" | "DPO" | "FLUTTERWAVE";
244
249
  providerReference?: string | undefined;
250
+ customerPhone?: string | undefined;
251
+ metadata?: Record<string, any> | undefined;
245
252
  };
253
+ }, {
246
254
  params: {
247
255
  id: string;
248
256
  };
249
- }, {
250
257
  body: {
251
258
  amount: number;
252
- provider: "mtn_momo" | "airtel_money";
253
- metadata?: Record<string, any> | undefined;
259
+ provider: "MTN_MOMO" | "AIRTEL_MONEY" | "DPO" | "FLUTTERWAVE";
254
260
  providerReference?: string | undefined;
255
- };
256
- params: {
257
- id: string;
261
+ customerPhone?: string | undefined;
262
+ metadata?: Record<string, any> | undefined;
258
263
  };
259
264
  }>;
260
265
  export declare const deletePlanSchema: z.ZodObject<{
@@ -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().positive("Payment amount must be positive"),
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,29 +58,29 @@ 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?: "RIDER" | "PASSENGER" | "N/A" | null | undefined;
61
+ dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | null | undefined;
62
62
  }, {
63
63
  status?: "locked" | "unlocked" | "disabled" | undefined;
64
64
  serialNumber?: string | undefined;
65
- dedicatedUser?: "RIDER" | "PASSENGER" | "N/A" | null | undefined;
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
- dedicatedUser?: "RIDER" | "PASSENGER" | "N/A" | null | undefined;
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
- dedicatedUser?: "RIDER" | "PASSENGER" | "N/A" | null | undefined;
81
- };
82
- params: {
83
- id: string;
83
+ dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | null | undefined;
84
84
  };
85
85
  }>;
86
86
  export declare const getDeviceSchema: z.ZodObject<{
@@ -113,51 +113,51 @@ 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;
118
116
  status?: "locked" | "unlocked" | "disabled" | undefined;
119
- page?: number | undefined;
120
- sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
121
- sortOrder?: "DESC" | "ASC" | undefined;
122
117
  productId?: string | undefined;
123
- dedicatedUser?: "RIDER" | "PASSENGER" | "N/A" | undefined;
118
+ page?: number | undefined;
119
+ limit?: number | undefined;
120
+ search?: string | undefined;
121
+ sortBy?: "status" | "createdAt" | "updatedAt" | "serialNumber" | undefined;
122
+ sortOrder?: "ASC" | "DESC" | undefined;
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;
129
127
  status?: "locked" | "unlocked" | "disabled" | undefined;
130
- page?: string | undefined;
131
- sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
132
- sortOrder?: "DESC" | "ASC" | undefined;
133
128
  productId?: string | undefined;
134
- dedicatedUser?: "RIDER" | "PASSENGER" | "N/A" | undefined;
129
+ page?: string | undefined;
130
+ limit?: string | undefined;
131
+ search?: string | undefined;
132
+ sortBy?: "status" | "createdAt" | "updatedAt" | "serialNumber" | undefined;
133
+ sortOrder?: "ASC" | "DESC" | undefined;
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;
142
140
  status?: "locked" | "unlocked" | "disabled" | undefined;
143
- page?: number | undefined;
144
- sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
145
- sortOrder?: "DESC" | "ASC" | undefined;
146
141
  productId?: string | undefined;
147
- dedicatedUser?: "RIDER" | "PASSENGER" | "N/A" | undefined;
142
+ page?: number | undefined;
143
+ limit?: number | undefined;
144
+ search?: string | undefined;
145
+ sortBy?: "status" | "createdAt" | "updatedAt" | "serialNumber" | undefined;
146
+ sortOrder?: "ASC" | "DESC" | undefined;
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;
155
153
  status?: "locked" | "unlocked" | "disabled" | undefined;
156
- page?: string | undefined;
157
- sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
158
- sortOrder?: "DESC" | "ASC" | undefined;
159
154
  productId?: string | undefined;
160
- dedicatedUser?: "RIDER" | "PASSENGER" | "N/A" | undefined;
155
+ page?: string | undefined;
156
+ limit?: string | undefined;
157
+ search?: string | undefined;
158
+ sortBy?: "status" | "createdAt" | "updatedAt" | "serialNumber" | undefined;
159
+ sortOrder?: "ASC" | "DESC" | undefined;
160
+ dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
161
161
  isPermanentlyUnlocked?: "true" | "false" | undefined;
162
162
  isAssigned?: "true" | "false" | undefined;
163
163
  };
@@ -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<{
@@ -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
- limit: number;
789
788
  page: number;
789
+ limit: number;
790
790
  search?: string | undefined;
791
- isActive?: "true" | "false" | undefined;
792
791
  sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
793
- sortOrder?: "DESC" | "ASC" | undefined;
794
- }, {
795
- search?: string | undefined;
796
- limit?: string | undefined;
792
+ sortOrder?: "ASC" | "DESC" | undefined;
797
793
  isActive?: "true" | "false" | undefined;
794
+ }, {
798
795
  page?: string | undefined;
796
+ limit?: string | undefined;
797
+ search?: string | undefined;
799
798
  sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
800
- sortOrder?: "DESC" | "ASC" | undefined;
799
+ sortOrder?: "ASC" | "DESC" | undefined;
800
+ isActive?: "true" | "false" | undefined;
801
801
  }>;
802
802
  }, "strip", z.ZodTypeAny, {
803
803
  query: {
804
- limit: number;
805
804
  page: number;
805
+ limit: number;
806
806
  search?: string | undefined;
807
- isActive?: "true" | "false" | undefined;
808
807
  sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
809
- sortOrder?: "DESC" | "ASC" | undefined;
808
+ sortOrder?: "ASC" | "DESC" | undefined;
809
+ isActive?: "true" | "false" | undefined;
810
810
  };
811
811
  }, {
812
812
  query: {
813
- search?: string | undefined;
814
- limit?: string | undefined;
815
- isActive?: "true" | "false" | undefined;
816
813
  page?: string | undefined;
814
+ limit?: string | undefined;
815
+ search?: string | undefined;
817
816
  sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
818
- sortOrder?: "DESC" | "ASC" | undefined;
817
+ sortOrder?: "ASC" | "DESC" | undefined;
818
+ isActive?: "true" | "false" | 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
- 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
  }>;
@@ -135,16 +135,16 @@ export declare const riderLoginSchema: z.ZodObject<{
135
135
  phoneNumber: string;
136
136
  nationalId: string;
137
137
  };
138
- query?: {} | undefined;
139
138
  params?: {} | undefined;
139
+ query?: {} | undefined;
140
140
  headers?: {} | undefined;
141
141
  }, {
142
142
  body: {
143
143
  phoneNumber: string;
144
144
  nationalId: string;
145
145
  };
146
- query?: {} | undefined;
147
146
  params?: {} | undefined;
147
+ query?: {} | undefined;
148
148
  headers?: {} | undefined;
149
149
  }>;
150
150
  export declare const requestOtpSchema: z.ZodObject<{
@@ -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
  }>;
@@ -7,33 +7,33 @@ export declare const listUserPaymentPlansSchema: z.ZodObject<{
7
7
  sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "nextInstallmentDueAt", "status"]>>;
8
8
  sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
9
9
  }, "strip", z.ZodTypeAny, {
10
- limit: number;
11
10
  page: number;
12
- status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
13
- sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
14
- sortOrder?: "DESC" | "ASC" | undefined;
11
+ limit: number;
12
+ status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
13
+ sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
14
+ sortOrder?: "ASC" | "DESC" | undefined;
15
15
  }, {
16
- limit?: string | undefined;
17
- status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
16
+ status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
18
17
  page?: string | undefined;
19
- sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
20
- sortOrder?: "DESC" | "ASC" | undefined;
18
+ limit?: string | undefined;
19
+ sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
20
+ sortOrder?: "ASC" | "DESC" | undefined;
21
21
  }>;
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  query: {
24
- limit: number;
25
24
  page: number;
26
- status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
27
- sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
28
- sortOrder?: "DESC" | "ASC" | undefined;
25
+ limit: number;
26
+ status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
27
+ sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
28
+ sortOrder?: "ASC" | "DESC" | undefined;
29
29
  };
30
30
  }, {
31
31
  query: {
32
- limit?: string | undefined;
33
- status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
32
+ status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
34
33
  page?: string | undefined;
35
- sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
36
- sortOrder?: "DESC" | "ASC" | undefined;
34
+ limit?: string | undefined;
35
+ sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
36
+ sortOrder?: "ASC" | "DESC" | undefined;
37
37
  };
38
38
  }>;
39
39
  export declare const getUserPaymentPlanSchema: z.ZodObject<{