vr-commons 1.0.112 → 1.0.114

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;
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
- status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
47
+ page: number;
48
+ search?: string | undefined;
49
49
  userId?: string | undefined;
50
- deviceId?: string | undefined;
50
+ status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
51
51
  isOverdue?: "true" | "false" | undefined;
52
- search?: string | undefined;
53
- sortBy?: "createdAt" | "updatedAt" | "nextInstallmentDueAt" | "paidAmount" | "outstandingAmount" | undefined;
54
- sortOrder?: "ASC" | "DESC" | undefined;
52
+ sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
53
+ sortOrder?: "DESC" | "ASC" | undefined;
54
+ deviceId?: string | undefined;
55
55
  }, {
56
- status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
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
- limit?: string | undefined;
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
- status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
69
+ page: number;
70
+ search?: string | undefined;
71
71
  userId?: string | undefined;
72
- deviceId?: string | undefined;
72
+ status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
73
73
  isOverdue?: "true" | "false" | undefined;
74
- search?: string | undefined;
75
- sortBy?: "createdAt" | "updatedAt" | "nextInstallmentDueAt" | "paidAmount" | "outstandingAmount" | undefined;
76
- sortOrder?: "ASC" | "DESC" | undefined;
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
- status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
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
- limit?: string | undefined;
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" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
120
+ status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
121
121
  includeCompleted?: "true" | "false" | undefined;
122
122
  }, {
123
- status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
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" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
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" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
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
- productId: string;
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
- metadata?: Record<string, any> | undefined;
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
- limit?: number | undefined;
120
- search?: string | undefined;
121
- sortBy?: "status" | "createdAt" | "updatedAt" | "serialNumber" | undefined;
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
- limit?: string | undefined;
131
- search?: string | undefined;
132
- sortBy?: "status" | "createdAt" | "updatedAt" | "serialNumber" | undefined;
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
- limit?: number | undefined;
144
- search?: string | undefined;
145
- sortBy?: "status" | "createdAt" | "updatedAt" | "serialNumber" | undefined;
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
- limit?: string | undefined;
157
- search?: string | undefined;
158
- sortBy?: "status" | "createdAt" | "updatedAt" | "serialNumber" | undefined;
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
- 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
  }>;