vr-commons 1.0.155 → 1.0.157

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.
Files changed (27) hide show
  1. package/dist/utils/admin.device.utils.d.ts +23 -0
  2. package/dist/utils/admin.device.utils.js +200 -0
  3. package/dist/utils/index.d.ts +1 -0
  4. package/dist/utils/index.js +13 -1
  5. package/dist/utils/systemLog.utils.d.ts +60 -0
  6. package/dist/utils/systemLog.utils.js +148 -0
  7. package/dist/validations/admin.devicePayment.validations.d.ts +50 -50
  8. package/dist/validations/admin.devicePayment.validations.js +0 -1
  9. package/dist/validations/admin.devices.validations.d.ts +39 -0
  10. package/dist/validations/admin.devices.validations.js +28 -1
  11. package/dist/validations/admin.installment.validations.d.ts +8 -8
  12. package/dist/validations/admin.installment.validations.js +0 -1
  13. package/dist/validations/appSpecs.validations.d.ts +18 -18
  14. package/dist/validations/appeals.validations.d.ts +8 -8
  15. package/dist/validations/auth.validations.d.ts +4 -4
  16. package/dist/validations/bans.validations.d.ts +8 -8
  17. package/dist/validations/devicePaymentPlan.validations.d.ts +16 -16
  18. package/dist/validations/eventlogs.admin.validations.d.ts +31 -31
  19. package/dist/validations/index.d.ts +1 -1
  20. package/dist/validations/index.js +3 -1
  21. package/dist/validations/moderation.validations.d.ts +105 -105
  22. package/dist/validations/pricings.validations.d.ts +36 -36
  23. package/dist/validations/product.validations.d.ts +36 -36
  24. package/dist/validations/profiles.validations.d.ts +56 -56
  25. package/dist/validations/suspensions.validations.d.ts +8 -8
  26. package/dist/validations/users.admin.validations.d.ts +48 -48
  27. package/package.json +2 -2
@@ -6,24 +6,24 @@ export declare const createPlanSchema: z.ZodObject<{
6
6
  productId: z.ZodString;
7
7
  }, "strip", z.ZodTypeAny, {
8
8
  userId: string;
9
- pricingId: string;
10
9
  productId: string;
10
+ pricingId: string;
11
11
  }, {
12
12
  userId: string;
13
- pricingId: string;
14
13
  productId: string;
14
+ pricingId: string;
15
15
  }>;
16
16
  }, "strip", z.ZodTypeAny, {
17
17
  body: {
18
18
  userId: string;
19
- pricingId: string;
20
19
  productId: string;
20
+ pricingId: string;
21
21
  };
22
22
  }, {
23
23
  body: {
24
24
  userId: string;
25
- pricingId: string;
26
25
  productId: string;
26
+ pricingId: string;
27
27
  };
28
28
  }>;
29
29
  export declare const listPlansSchema: z.ZodObject<{
@@ -38,49 +38,49 @@ export declare const listPlansSchema: z.ZodObject<{
38
38
  sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "nextInstallmentDueAt", "paidAmount", "outstandingAmount"]>>;
39
39
  sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
40
40
  }, "strip", z.ZodTypeAny, {
41
- page: number;
42
41
  limit: number;
43
- status?: "PENDING" | "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
42
+ page: number;
43
+ search?: string | undefined;
44
44
  userId?: string | undefined;
45
- deviceId?: string | undefined;
45
+ status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
46
46
  isOverdue?: "true" | "false" | undefined;
47
- search?: string | undefined;
48
- sortBy?: "createdAt" | "updatedAt" | "nextInstallmentDueAt" | "paidAmount" | "outstandingAmount" | undefined;
49
- sortOrder?: "ASC" | "DESC" | undefined;
47
+ sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
48
+ sortOrder?: "DESC" | "ASC" | undefined;
49
+ deviceId?: string | undefined;
50
50
  }, {
51
- status?: "PENDING" | "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
51
+ search?: string | undefined;
52
+ limit?: string | undefined;
52
53
  userId?: string | undefined;
54
+ status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
55
+ isOverdue?: "true" | "false" | undefined;
53
56
  page?: string | undefined;
54
- limit?: string | undefined;
57
+ sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
58
+ sortOrder?: "DESC" | "ASC" | undefined;
55
59
  deviceId?: string | undefined;
56
- isOverdue?: "true" | "false" | undefined;
57
- search?: string | undefined;
58
- sortBy?: "createdAt" | "updatedAt" | "nextInstallmentDueAt" | "paidAmount" | "outstandingAmount" | undefined;
59
- sortOrder?: "ASC" | "DESC" | undefined;
60
60
  }>;
61
61
  }, "strip", z.ZodTypeAny, {
62
62
  query: {
63
- page: number;
64
63
  limit: number;
65
- status?: "PENDING" | "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
64
+ page: number;
65
+ search?: string | undefined;
66
66
  userId?: string | undefined;
67
- deviceId?: string | undefined;
67
+ status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
68
68
  isOverdue?: "true" | "false" | undefined;
69
- search?: string | undefined;
70
- sortBy?: "createdAt" | "updatedAt" | "nextInstallmentDueAt" | "paidAmount" | "outstandingAmount" | undefined;
71
- sortOrder?: "ASC" | "DESC" | undefined;
69
+ sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
70
+ sortOrder?: "DESC" | "ASC" | undefined;
71
+ deviceId?: string | undefined;
72
72
  };
73
73
  }, {
74
74
  query: {
75
- status?: "PENDING" | "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
75
+ search?: string | undefined;
76
+ limit?: string | undefined;
76
77
  userId?: string | undefined;
78
+ status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
79
+ isOverdue?: "true" | "false" | undefined;
77
80
  page?: string | undefined;
78
- limit?: string | undefined;
81
+ sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
82
+ sortOrder?: "DESC" | "ASC" | undefined;
79
83
  deviceId?: string | undefined;
80
- isOverdue?: "true" | "false" | undefined;
81
- search?: string | undefined;
82
- sortBy?: "createdAt" | "updatedAt" | "nextInstallmentDueAt" | "paidAmount" | "outstandingAmount" | undefined;
83
- sortOrder?: "ASC" | "DESC" | undefined;
84
84
  };
85
85
  }>;
86
86
  export declare const getPlanSchema: z.ZodObject<{
@@ -112,10 +112,10 @@ export declare const getUserPlansSchema: z.ZodObject<{
112
112
  status: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "COMPLETED", "DEFAULTED", "CANCELLED"]>>;
113
113
  includeCompleted: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
114
114
  }, "strip", z.ZodTypeAny, {
115
- status?: "PENDING" | "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
115
+ status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
116
116
  includeCompleted?: "true" | "false" | undefined;
117
117
  }, {
118
- status?: "PENDING" | "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
118
+ status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
119
119
  includeCompleted?: "true" | "false" | undefined;
120
120
  }>>;
121
121
  }, "strip", z.ZodTypeAny, {
@@ -123,7 +123,7 @@ export declare const getUserPlansSchema: z.ZodObject<{
123
123
  userId: string;
124
124
  };
125
125
  query?: {
126
- status?: "PENDING" | "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
126
+ status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
127
127
  includeCompleted?: "true" | "false" | undefined;
128
128
  } | undefined;
129
129
  }, {
@@ -131,7 +131,7 @@ export declare const getUserPlansSchema: z.ZodObject<{
131
131
  userId: string;
132
132
  };
133
133
  query?: {
134
- status?: "PENDING" | "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
134
+ status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
135
135
  includeCompleted?: "true" | "false" | undefined;
136
136
  } | undefined;
137
137
  }>;
@@ -166,38 +166,38 @@ export declare const limitedUpdateSchema: z.ZodObject<{
166
166
  userId: z.ZodOptional<z.ZodString>;
167
167
  }, "strip", z.ZodTypeAny, {
168
168
  userId?: string | undefined;
169
- pricingId?: string | undefined;
170
169
  productId?: string | undefined;
170
+ pricingId?: string | undefined;
171
171
  }, {
172
172
  userId?: string | undefined;
173
- pricingId?: string | undefined;
174
173
  productId?: string | undefined;
174
+ pricingId?: string | undefined;
175
175
  }>, {
176
176
  userId?: string | undefined;
177
- pricingId?: string | undefined;
178
177
  productId?: string | undefined;
178
+ pricingId?: string | undefined;
179
179
  }, {
180
180
  userId?: string | undefined;
181
- pricingId?: string | undefined;
182
181
  productId?: string | undefined;
182
+ pricingId?: string | undefined;
183
183
  }>;
184
184
  }, "strip", z.ZodTypeAny, {
185
- params: {
186
- id: string;
187
- };
188
185
  body: {
189
186
  userId?: string | undefined;
190
- pricingId?: string | undefined;
191
187
  productId?: string | undefined;
188
+ pricingId?: string | undefined;
192
189
  };
193
- }, {
194
190
  params: {
195
191
  id: string;
196
192
  };
193
+ }, {
197
194
  body: {
198
195
  userId?: string | undefined;
199
- pricingId?: string | undefined;
200
196
  productId?: string | undefined;
197
+ pricingId?: string | undefined;
198
+ };
199
+ params: {
200
+ id: string;
201
201
  };
202
202
  }>;
203
203
  export declare const recordPaymentSchema: z.ZodObject<{
@@ -219,45 +219,45 @@ export declare const recordPaymentSchema: z.ZodObject<{
219
219
  }, "strip", z.ZodTypeAny, {
220
220
  amount: number;
221
221
  provider: "AIRTEL_MONEY" | "CASH" | "MOMO_PAY";
222
+ metadata?: Record<string, any> | undefined;
222
223
  providerReference?: string | undefined;
223
224
  customerPhone?: string | undefined;
224
225
  customerName?: string | undefined;
225
226
  notes?: string | undefined;
226
- metadata?: Record<string, any> | undefined;
227
227
  }, {
228
228
  amount: number;
229
+ metadata?: Record<string, any> | undefined;
229
230
  provider?: "AIRTEL_MONEY" | "CASH" | "MOMO_PAY" | undefined;
230
231
  providerReference?: string | undefined;
231
232
  customerPhone?: string | undefined;
232
233
  customerName?: string | undefined;
233
234
  notes?: string | undefined;
234
- metadata?: Record<string, any> | undefined;
235
235
  }>;
236
236
  }, "strip", z.ZodTypeAny, {
237
- params: {
238
- id: string;
239
- };
240
237
  body: {
241
238
  amount: number;
242
239
  provider: "AIRTEL_MONEY" | "CASH" | "MOMO_PAY";
240
+ metadata?: Record<string, any> | undefined;
243
241
  providerReference?: string | undefined;
244
242
  customerPhone?: string | undefined;
245
243
  customerName?: string | undefined;
246
244
  notes?: string | undefined;
247
- metadata?: Record<string, any> | undefined;
248
245
  };
249
- }, {
250
246
  params: {
251
247
  id: string;
252
248
  };
249
+ }, {
253
250
  body: {
254
251
  amount: number;
252
+ metadata?: Record<string, any> | undefined;
255
253
  provider?: "AIRTEL_MONEY" | "CASH" | "MOMO_PAY" | undefined;
256
254
  providerReference?: string | undefined;
257
255
  customerPhone?: string | undefined;
258
256
  customerName?: string | undefined;
259
257
  notes?: string | undefined;
260
- metadata?: Record<string, any> | undefined;
258
+ };
259
+ params: {
260
+ id: string;
261
261
  };
262
262
  }>;
263
263
  export declare const deletePlanSchema: z.ZodObject<{
@@ -71,7 +71,6 @@ exports.limitedUpdateSchema = zod_1.z.object({
71
71
  message: "At least one field to update is required",
72
72
  }),
73
73
  });
74
- // src/modules/devicePaymentPlans/validations/devicePaymentPlans.validations.ts
75
74
  exports.recordPaymentSchema = zod_1.z.object({
76
75
  params: zod_1.z.object({
77
76
  id: zod_1.z.string().uuid("Invalid payment plan ID"),
@@ -293,3 +293,42 @@ export declare const checkAvailabilitySchema: z.ZodObject<{
293
293
  productId: string;
294
294
  };
295
295
  }>;
296
+ export declare const triggerDeviceLockSchema: z.ZodObject<{
297
+ body: z.ZodOptional<z.ZodObject<{
298
+ batchSize: z.ZodOptional<z.ZodNumber>;
299
+ maxRetries: z.ZodOptional<z.ZodNumber>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ batchSize?: number | undefined;
302
+ maxRetries?: number | undefined;
303
+ }, {
304
+ batchSize?: number | undefined;
305
+ maxRetries?: number | undefined;
306
+ }>>;
307
+ }, "strip", z.ZodTypeAny, {
308
+ body?: {
309
+ batchSize?: number | undefined;
310
+ maxRetries?: number | undefined;
311
+ } | undefined;
312
+ }, {
313
+ body?: {
314
+ batchSize?: number | undefined;
315
+ maxRetries?: number | undefined;
316
+ } | undefined;
317
+ }>;
318
+ export declare const retryFailedLocksSchema: z.ZodObject<{
319
+ body: z.ZodObject<{
320
+ pairIds: z.ZodArray<z.ZodString, "many">;
321
+ }, "strip", z.ZodTypeAny, {
322
+ pairIds: string[];
323
+ }, {
324
+ pairIds: string[];
325
+ }>;
326
+ }, "strip", z.ZodTypeAny, {
327
+ body: {
328
+ pairIds: string[];
329
+ };
330
+ }, {
331
+ body: {
332
+ pairIds: string[];
333
+ };
334
+ }>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.checkAvailabilitySchema = exports.makeDevicesPermanentSchema = exports.enableDevicesSchema = exports.disableDevicesSchema = exports.unlockDevicesSchema = exports.lockDevicesSchema = exports.permanentDeleteDevicesByPairsSchema = exports.deleteDevicesByPairsSchema = exports.getDevicesSchema = exports.getDeviceSchema = exports.createDevicePairsSchema = exports.deduplicatePairIds = exports.PAIR_ID_REGEX = void 0;
3
+ exports.retryFailedLocksSchema = exports.triggerDeviceLockSchema = exports.checkAvailabilitySchema = exports.makeDevicesPermanentSchema = exports.enableDevicesSchema = exports.disableDevicesSchema = exports.unlockDevicesSchema = exports.lockDevicesSchema = exports.permanentDeleteDevicesByPairsSchema = exports.deleteDevicesByPairsSchema = exports.getDevicesSchema = exports.getDeviceSchema = exports.createDevicePairsSchema = exports.deduplicatePairIds = exports.PAIR_ID_REGEX = void 0;
4
4
  // src/validations/device.validations.ts
5
5
  const zod_1 = require("zod");
6
6
  const vr_models_1 = require("vr-models");
@@ -143,3 +143,30 @@ exports.checkAvailabilitySchema = zod_1.z.object({
143
143
  productId: zod_1.z.string().uuid("Invalid product ID"),
144
144
  }),
145
145
  });
146
+ // ======================== CRON JOB RELATED VALIDATIONS ===========================
147
+ exports.triggerDeviceLockSchema = zod_1.z.object({
148
+ body: zod_1.z
149
+ .object({
150
+ batchSize: zod_1.z
151
+ .number()
152
+ .int()
153
+ .min(1, "Batch size must be at least 1")
154
+ .max(500, "Batch size cannot exceed 500")
155
+ .optional(),
156
+ maxRetries: zod_1.z
157
+ .number()
158
+ .int()
159
+ .min(1, "Max retries must be at least 1")
160
+ .max(5, "Max retries cannot exceed 5")
161
+ .optional(),
162
+ })
163
+ .optional(),
164
+ });
165
+ exports.retryFailedLocksSchema = zod_1.z.object({
166
+ body: zod_1.z.object({
167
+ pairIds: zod_1.z
168
+ .array(zod_1.z.string().regex(exports.PAIR_ID_REGEX, PAIR_ID_ERROR))
169
+ .min(1, "At least one pair ID required")
170
+ .max(500, "Cannot LOCK more than 500 pairs at once"),
171
+ }),
172
+ });
@@ -6,28 +6,28 @@ export declare const getInstallmentsSchema: z.ZodObject<{
6
6
  page: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
7
7
  limit: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
8
8
  }, "strip", z.ZodTypeAny, {
9
+ limit?: number | undefined;
9
10
  status?: "PENDING" | "PAID" | "OVERDUE" | "SKIPPED" | undefined;
10
11
  page?: number | undefined;
11
- limit?: number | undefined;
12
12
  planId?: string | undefined;
13
13
  }, {
14
+ limit?: string | undefined;
14
15
  status?: "PENDING" | "PAID" | "OVERDUE" | "SKIPPED" | undefined;
15
16
  page?: string | undefined;
16
- limit?: string | undefined;
17
17
  planId?: string | undefined;
18
18
  }>;
19
19
  }, "strip", z.ZodTypeAny, {
20
20
  query: {
21
+ limit?: number | undefined;
21
22
  status?: "PENDING" | "PAID" | "OVERDUE" | "SKIPPED" | undefined;
22
23
  page?: number | undefined;
23
- limit?: number | undefined;
24
24
  planId?: string | undefined;
25
25
  };
26
26
  }, {
27
27
  query: {
28
+ limit?: string | undefined;
28
29
  status?: "PENDING" | "PAID" | "OVERDUE" | "SKIPPED" | undefined;
29
30
  page?: string | undefined;
30
- limit?: string | undefined;
31
31
  planId?: string | undefined;
32
32
  };
33
33
  }>;
@@ -79,9 +79,6 @@ export declare const payInstallmentSchema: z.ZodObject<{
79
79
  notes?: string | undefined;
80
80
  }>;
81
81
  }, "strip", z.ZodTypeAny, {
82
- params: {
83
- id: string;
84
- };
85
82
  body: {
86
83
  amount: number;
87
84
  provider: "AIRTEL_MONEY" | "CASH" | "MOMO_PAY";
@@ -90,10 +87,10 @@ export declare const payInstallmentSchema: z.ZodObject<{
90
87
  metadata?: Record<string, any> | undefined;
91
88
  notes?: string | undefined;
92
89
  };
93
- }, {
94
90
  params: {
95
91
  id: string;
96
92
  };
93
+ }, {
97
94
  body: {
98
95
  amount: number;
99
96
  providerReference: string;
@@ -102,4 +99,7 @@ export declare const payInstallmentSchema: z.ZodObject<{
102
99
  provider?: "AIRTEL_MONEY" | "CASH" | "MOMO_PAY" | undefined;
103
100
  notes?: string | undefined;
104
101
  };
102
+ params: {
103
+ id: string;
104
+ };
105
105
  }>;
@@ -18,7 +18,6 @@ exports.getInstallmentByIdSchema = zod_1.z.object({
18
18
  id: zod_1.z.string().uuid(),
19
19
  }),
20
20
  });
21
- // src/modules/installments/validations/installments.validations.ts
22
21
  exports.payInstallmentSchema = zod_1.z.object({
23
22
  params: zod_1.z.object({
24
23
  id: zod_1.z.string().uuid("Invalid installment ID"),
@@ -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
- sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
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
- sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
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
  }>;
@@ -362,7 +362,7 @@ export declare const createUserSchema: z.ZodObject<{
362
362
  firstName: string;
363
363
  lastName: string;
364
364
  password: string;
365
- role: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
365
+ role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
366
366
  contactValue: string;
367
367
  jacketId?: string | undefined;
368
368
  plateNumber?: string | undefined;
@@ -374,7 +374,7 @@ export declare const createUserSchema: z.ZodObject<{
374
374
  firstName: string;
375
375
  lastName: string;
376
376
  password: string;
377
- role: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
377
+ role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
378
378
  contactValue: string;
379
379
  jacketId?: string | undefined;
380
380
  plateNumber?: string | undefined;
@@ -388,7 +388,7 @@ export declare const createUserSchema: z.ZodObject<{
388
388
  firstName: string;
389
389
  lastName: string;
390
390
  password: string;
391
- role: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
391
+ role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
392
392
  contactValue: string;
393
393
  jacketId?: string | undefined;
394
394
  plateNumber?: string | undefined;
@@ -402,7 +402,7 @@ export declare const createUserSchema: z.ZodObject<{
402
402
  firstName: string;
403
403
  lastName: string;
404
404
  password: string;
405
- role: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
405
+ role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
406
406
  contactValue: string;
407
407
  jacketId?: string | undefined;
408
408
  plateNumber?: string | undefined;
@@ -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
  }>;
@@ -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
- page: number;
11
10
  limit: number;
12
- status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
13
- sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
14
- sortOrder?: "ASC" | "DESC" | undefined;
11
+ page: number;
12
+ status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
13
+ sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
14
+ sortOrder?: "DESC" | "ASC" | undefined;
15
15
  }, {
16
- status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
17
- page?: string | undefined;
18
16
  limit?: string | undefined;
19
- sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
20
- sortOrder?: "ASC" | "DESC" | undefined;
17
+ status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
18
+ page?: string | undefined;
19
+ sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
20
+ sortOrder?: "DESC" | "ASC" | undefined;
21
21
  }>;
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  query: {
24
- page: number;
25
24
  limit: number;
26
- status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
27
- sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
28
- sortOrder?: "ASC" | "DESC" | undefined;
25
+ page: number;
26
+ status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
27
+ sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
28
+ sortOrder?: "DESC" | "ASC" | undefined;
29
29
  };
30
30
  }, {
31
31
  query: {
32
- status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
33
- page?: string | undefined;
34
32
  limit?: string | undefined;
35
- sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
36
- sortOrder?: "ASC" | "DESC" | undefined;
33
+ status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
34
+ page?: string | undefined;
35
+ sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
36
+ sortOrder?: "DESC" | "ASC" | undefined;
37
37
  };
38
38
  }>;
39
39
  export declare const getUserPaymentPlanSchema: z.ZodObject<{