vr-commons 1.0.60 → 1.0.62

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.
@@ -14,81 +14,81 @@ export declare const listBansSchema: z.ZodObject<{
14
14
  sortBy: z.ZodOptional<z.ZodEnum<["bannedAt", "createdAt", "reason"]>>;
15
15
  sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- page: number;
18
17
  limit: number;
19
- status?: "active" | "revoked" | undefined;
20
- sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
21
- sortOrder?: "ASC" | "DESC" | undefined;
18
+ page: number;
22
19
  search?: string | undefined;
23
20
  userId?: string | undefined;
24
21
  isPermanent?: "true" | "false" | undefined;
25
22
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
23
+ status?: "active" | "revoked" | undefined;
24
+ sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
26
25
  fromDate?: string | undefined;
27
26
  toDate?: string | undefined;
27
+ sortOrder?: "DESC" | "ASC" | undefined;
28
28
  }, {
29
- status?: "active" | "revoked" | undefined;
30
- page?: string | undefined;
31
- limit?: string | undefined;
32
- sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
33
- sortOrder?: "ASC" | "DESC" | undefined;
34
29
  search?: string | undefined;
30
+ limit?: string | undefined;
35
31
  userId?: string | undefined;
36
32
  isPermanent?: "true" | "false" | undefined;
37
33
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
34
+ status?: "active" | "revoked" | undefined;
35
+ page?: string | undefined;
36
+ sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
38
37
  fromDate?: string | undefined;
39
38
  toDate?: string | undefined;
39
+ sortOrder?: "DESC" | "ASC" | undefined;
40
40
  }>, {
41
- page: number;
42
41
  limit: number;
43
- status?: "active" | "revoked" | undefined;
44
- sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
45
- sortOrder?: "ASC" | "DESC" | undefined;
42
+ page: number;
46
43
  search?: string | undefined;
47
44
  userId?: string | undefined;
48
45
  isPermanent?: "true" | "false" | undefined;
49
46
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
47
+ status?: "active" | "revoked" | undefined;
48
+ sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
50
49
  fromDate?: string | undefined;
51
50
  toDate?: string | undefined;
51
+ sortOrder?: "DESC" | "ASC" | undefined;
52
52
  }, {
53
- status?: "active" | "revoked" | undefined;
54
- page?: string | undefined;
55
- limit?: string | undefined;
56
- sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
57
- sortOrder?: "ASC" | "DESC" | undefined;
58
53
  search?: string | undefined;
54
+ limit?: string | undefined;
59
55
  userId?: string | undefined;
60
56
  isPermanent?: "true" | "false" | undefined;
61
57
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
58
+ status?: "active" | "revoked" | undefined;
59
+ page?: string | undefined;
60
+ sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
62
61
  fromDate?: string | undefined;
63
62
  toDate?: string | undefined;
63
+ sortOrder?: "DESC" | "ASC" | undefined;
64
64
  }>;
65
65
  }, "strip", z.ZodTypeAny, {
66
66
  query: {
67
- page: number;
68
67
  limit: number;
69
- status?: "active" | "revoked" | undefined;
70
- sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
71
- sortOrder?: "ASC" | "DESC" | undefined;
68
+ page: number;
72
69
  search?: string | undefined;
73
70
  userId?: string | undefined;
74
71
  isPermanent?: "true" | "false" | undefined;
75
72
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
73
+ status?: "active" | "revoked" | undefined;
74
+ sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
76
75
  fromDate?: string | undefined;
77
76
  toDate?: string | undefined;
77
+ sortOrder?: "DESC" | "ASC" | undefined;
78
78
  };
79
79
  }, {
80
80
  query: {
81
- status?: "active" | "revoked" | undefined;
82
- page?: string | undefined;
83
- limit?: string | undefined;
84
- sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
85
- sortOrder?: "ASC" | "DESC" | undefined;
86
81
  search?: string | undefined;
82
+ limit?: string | undefined;
87
83
  userId?: string | undefined;
88
84
  isPermanent?: "true" | "false" | undefined;
89
85
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
86
+ status?: "active" | "revoked" | undefined;
87
+ page?: string | undefined;
88
+ sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
90
89
  fromDate?: string | undefined;
91
90
  toDate?: string | undefined;
91
+ sortOrder?: "DESC" | "ASC" | undefined;
92
92
  };
93
93
  }>;
94
94
  export declare const listSuspensionsSchema: z.ZodObject<{
@@ -105,75 +105,75 @@ export declare const listSuspensionsSchema: z.ZodObject<{
105
105
  sortBy: z.ZodOptional<z.ZodEnum<["startedAt", "endsAt", "createdAt", "reason"]>>;
106
106
  sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
107
107
  }, "strip", z.ZodTypeAny, {
108
- page: number;
109
108
  limit: number;
110
- status?: "active" | "revoked" | "expired" | undefined;
111
- sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
112
- sortOrder?: "ASC" | "DESC" | undefined;
109
+ page: number;
113
110
  search?: string | undefined;
114
111
  userId?: string | undefined;
115
112
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
113
+ status?: "active" | "revoked" | "expired" | undefined;
114
+ sortBy?: "createdAt" | "startedAt" | "reason" | "endsAt" | undefined;
116
115
  fromDate?: string | undefined;
117
116
  toDate?: string | undefined;
117
+ sortOrder?: "DESC" | "ASC" | undefined;
118
118
  }, {
119
- status?: "active" | "revoked" | "expired" | undefined;
120
- page?: string | undefined;
121
- limit?: string | undefined;
122
- sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
123
- sortOrder?: "ASC" | "DESC" | undefined;
124
119
  search?: string | undefined;
120
+ limit?: string | undefined;
125
121
  userId?: string | undefined;
126
122
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
123
+ status?: "active" | "revoked" | "expired" | undefined;
124
+ page?: string | undefined;
125
+ sortBy?: "createdAt" | "startedAt" | "reason" | "endsAt" | undefined;
127
126
  fromDate?: string | undefined;
128
127
  toDate?: string | undefined;
128
+ sortOrder?: "DESC" | "ASC" | undefined;
129
129
  }>, {
130
- page: number;
131
130
  limit: number;
132
- status?: "active" | "revoked" | "expired" | undefined;
133
- sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
134
- sortOrder?: "ASC" | "DESC" | undefined;
131
+ page: number;
135
132
  search?: string | undefined;
136
133
  userId?: string | undefined;
137
134
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
135
+ status?: "active" | "revoked" | "expired" | undefined;
136
+ sortBy?: "createdAt" | "startedAt" | "reason" | "endsAt" | undefined;
138
137
  fromDate?: string | undefined;
139
138
  toDate?: string | undefined;
139
+ sortOrder?: "DESC" | "ASC" | undefined;
140
140
  }, {
141
- status?: "active" | "revoked" | "expired" | undefined;
142
- page?: string | undefined;
143
- limit?: string | undefined;
144
- sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
145
- sortOrder?: "ASC" | "DESC" | undefined;
146
141
  search?: string | undefined;
142
+ limit?: string | undefined;
147
143
  userId?: string | undefined;
148
144
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
145
+ status?: "active" | "revoked" | "expired" | undefined;
146
+ page?: string | undefined;
147
+ sortBy?: "createdAt" | "startedAt" | "reason" | "endsAt" | undefined;
149
148
  fromDate?: string | undefined;
150
149
  toDate?: string | undefined;
150
+ sortOrder?: "DESC" | "ASC" | undefined;
151
151
  }>;
152
152
  }, "strip", z.ZodTypeAny, {
153
153
  query: {
154
- page: number;
155
154
  limit: number;
156
- status?: "active" | "revoked" | "expired" | undefined;
157
- sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
158
- sortOrder?: "ASC" | "DESC" | undefined;
155
+ page: number;
159
156
  search?: string | undefined;
160
157
  userId?: string | undefined;
161
158
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
159
+ status?: "active" | "revoked" | "expired" | undefined;
160
+ sortBy?: "createdAt" | "startedAt" | "reason" | "endsAt" | undefined;
162
161
  fromDate?: string | undefined;
163
162
  toDate?: string | undefined;
163
+ sortOrder?: "DESC" | "ASC" | undefined;
164
164
  };
165
165
  }, {
166
166
  query: {
167
- status?: "active" | "revoked" | "expired" | undefined;
168
- page?: string | undefined;
169
- limit?: string | undefined;
170
- sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
171
- sortOrder?: "ASC" | "DESC" | undefined;
172
167
  search?: string | undefined;
168
+ limit?: string | undefined;
173
169
  userId?: string | undefined;
174
170
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
171
+ status?: "active" | "revoked" | "expired" | undefined;
172
+ page?: string | undefined;
173
+ sortBy?: "createdAt" | "startedAt" | "reason" | "endsAt" | undefined;
175
174
  fromDate?: string | undefined;
176
175
  toDate?: string | undefined;
176
+ sortOrder?: "DESC" | "ASC" | undefined;
177
177
  };
178
178
  }>;
179
179
  export declare const revokeBanSchema: z.ZodObject<{
@@ -192,19 +192,19 @@ export declare const revokeBanSchema: z.ZodObject<{
192
192
  revocationReason?: string | undefined;
193
193
  }>;
194
194
  }, "strip", z.ZodTypeAny, {
195
- params: {
196
- banId: string;
197
- };
198
195
  body: {
199
196
  revocationReason?: string | undefined;
200
197
  };
201
- }, {
202
198
  params: {
203
199
  banId: string;
204
200
  };
201
+ }, {
205
202
  body: {
206
203
  revocationReason?: string | undefined;
207
204
  };
205
+ params: {
206
+ banId: string;
207
+ };
208
208
  }>;
209
209
  export declare const revokeSuspensionSchema: z.ZodObject<{
210
210
  params: z.ZodObject<{
@@ -222,19 +222,19 @@ export declare const revokeSuspensionSchema: z.ZodObject<{
222
222
  revocationReason?: string | undefined;
223
223
  }>;
224
224
  }, "strip", z.ZodTypeAny, {
225
- params: {
226
- suspensionId: string;
227
- };
228
225
  body: {
229
226
  revocationReason?: string | undefined;
230
227
  };
231
- }, {
232
228
  params: {
233
229
  suspensionId: string;
234
230
  };
231
+ }, {
235
232
  body: {
236
233
  revocationReason?: string | undefined;
237
234
  };
235
+ params: {
236
+ suspensionId: string;
237
+ };
238
238
  }>;
239
239
  export declare const extendSuspensionSchema: z.ZodObject<{
240
240
  params: z.ZodObject<{
@@ -261,21 +261,21 @@ export declare const extendSuspensionSchema: z.ZodObject<{
261
261
  extensionReason?: string | undefined;
262
262
  }>;
263
263
  }, "strip", z.ZodTypeAny, {
264
- params: {
265
- suspensionId: string;
266
- };
267
264
  body: {
268
265
  newEndDate: string;
269
266
  extensionReason?: string | undefined;
270
267
  };
271
- }, {
272
268
  params: {
273
269
  suspensionId: string;
274
270
  };
271
+ }, {
275
272
  body: {
276
273
  newEndDate: string;
277
274
  extensionReason?: string | undefined;
278
275
  };
276
+ params: {
277
+ suspensionId: string;
278
+ };
279
279
  }>;
280
280
  export declare const listPendingAppealsSchema: z.ZodObject<{
281
281
  query: z.ZodEffects<z.ZodObject<{
@@ -286,34 +286,34 @@ export declare const listPendingAppealsSchema: z.ZodObject<{
286
286
  fromDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
287
287
  toDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
288
288
  }, "strip", z.ZodTypeAny, {
289
- page: number;
290
289
  limit: number;
290
+ page: number;
291
291
  type?: "ban" | "suspension" | undefined;
292
292
  fromDate?: string | undefined;
293
293
  toDate?: string | undefined;
294
294
  }, {
295
295
  type?: "ban" | "suspension" | undefined;
296
- page?: string | undefined;
297
296
  limit?: string | undefined;
297
+ page?: string | undefined;
298
298
  fromDate?: string | undefined;
299
299
  toDate?: string | undefined;
300
300
  }>, {
301
- page: number;
302
301
  limit: number;
302
+ page: number;
303
303
  type?: "ban" | "suspension" | undefined;
304
304
  fromDate?: string | undefined;
305
305
  toDate?: string | undefined;
306
306
  }, {
307
307
  type?: "ban" | "suspension" | undefined;
308
- page?: string | undefined;
309
308
  limit?: string | undefined;
309
+ page?: string | undefined;
310
310
  fromDate?: string | undefined;
311
311
  toDate?: string | undefined;
312
312
  }>;
313
313
  }, "strip", z.ZodTypeAny, {
314
314
  query: {
315
- page: number;
316
315
  limit: number;
316
+ page: number;
317
317
  type?: "ban" | "suspension" | undefined;
318
318
  fromDate?: string | undefined;
319
319
  toDate?: string | undefined;
@@ -321,8 +321,8 @@ export declare const listPendingAppealsSchema: z.ZodObject<{
321
321
  }, {
322
322
  query: {
323
323
  type?: "ban" | "suspension" | undefined;
324
- page?: string | undefined;
325
324
  limit?: string | undefined;
325
+ page?: string | undefined;
326
326
  fromDate?: string | undefined;
327
327
  toDate?: string | undefined;
328
328
  };
@@ -349,23 +349,23 @@ export declare const reviewAppealSchema: z.ZodObject<{
349
349
  adminNotes?: string | undefined;
350
350
  }>;
351
351
  }, "strip", z.ZodTypeAny, {
352
- params: {
353
- banId?: string | undefined;
354
- suspensionId?: string | undefined;
355
- };
356
352
  body: {
357
353
  appealStatus: "approved" | "rejected";
358
354
  adminNotes?: string | undefined;
359
355
  };
360
- }, {
361
356
  params: {
362
357
  banId?: string | undefined;
363
358
  suspensionId?: string | undefined;
364
359
  };
360
+ }, {
365
361
  body: {
366
362
  appealStatus: "approved" | "rejected";
367
363
  adminNotes?: string | undefined;
368
364
  };
365
+ params: {
366
+ banId?: string | undefined;
367
+ suspensionId?: string | undefined;
368
+ };
369
369
  }>;
370
370
  export declare const exportBansSchema: z.ZodObject<{
371
371
  query: z.ZodEffects<z.ZodObject<{
@@ -21,21 +21,21 @@ export declare const payInstallmentSchema: z.ZodObject<{
21
21
  provider?: "mtn_momo" | "airtel_money" | undefined;
22
22
  }>;
23
23
  }, "strip", z.ZodTypeAny, {
24
- params: {
25
- planId: string;
26
- installmentId: string;
27
- };
28
24
  body: {
29
25
  phoneNumber: string;
30
26
  provider: "mtn_momo" | "airtel_money";
31
27
  };
32
- }, {
33
28
  params: {
34
29
  planId: string;
35
30
  installmentId: string;
36
31
  };
32
+ }, {
37
33
  body: {
38
34
  phoneNumber: string;
39
35
  provider?: "mtn_momo" | "airtel_money" | undefined;
40
36
  };
37
+ params: {
38
+ planId: string;
39
+ installmentId: string;
40
+ };
41
41
  }>;
@@ -20,7 +20,7 @@ export declare const createUserSchema: z.ZodObject<{
20
20
  phoneNumber: string;
21
21
  password: string;
22
22
  nationalId: string;
23
- role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
23
+ role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
24
24
  jacketId?: string | null | undefined;
25
25
  email?: string | null | undefined;
26
26
  plateNumber?: string | null | undefined;
@@ -30,7 +30,7 @@ export declare const createUserSchema: z.ZodObject<{
30
30
  phoneNumber: string;
31
31
  password: string;
32
32
  nationalId: string;
33
- role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
33
+ role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
34
34
  jacketId?: string | null | undefined;
35
35
  email?: string | null | undefined;
36
36
  plateNumber?: string | null | undefined;
@@ -49,7 +49,7 @@ export declare const createUserSchema: z.ZodObject<{
49
49
  phoneNumber: string;
50
50
  password: string;
51
51
  nationalId: string;
52
- role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
52
+ role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
53
53
  jacketId?: string | null | undefined;
54
54
  email?: string | null | undefined;
55
55
  plateNumber?: string | null | undefined;
@@ -64,7 +64,7 @@ export declare const createUserSchema: z.ZodObject<{
64
64
  phoneNumber: string;
65
65
  password: string;
66
66
  nationalId: string;
67
- role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
67
+ role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
68
68
  jacketId?: string | null | undefined;
69
69
  email?: string | null | undefined;
70
70
  plateNumber?: string | null | undefined;
@@ -170,9 +170,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
170
170
  authorization: string;
171
171
  }>;
172
172
  }, "strip", z.ZodTypeAny, {
173
- params: {
174
- userId: string;
175
- };
176
173
  body: {
177
174
  firstName?: string | undefined;
178
175
  lastName?: string | undefined;
@@ -184,13 +181,13 @@ export declare const updateUserProfileSchema: z.ZodObject<{
184
181
  isDeactivated?: boolean | undefined;
185
182
  isSuspended?: boolean | undefined;
186
183
  };
184
+ params: {
185
+ userId: string;
186
+ };
187
187
  headers: {
188
188
  authorization: string;
189
189
  };
190
190
  }, {
191
- params: {
192
- userId: string;
193
- };
194
191
  body: {
195
192
  firstName?: string | undefined;
196
193
  lastName?: string | undefined;
@@ -202,6 +199,9 @@ export declare const updateUserProfileSchema: z.ZodObject<{
202
199
  isDeactivated?: boolean | undefined;
203
200
  isSuspended?: boolean | undefined;
204
201
  };
202
+ params: {
203
+ userId: string;
204
+ };
205
205
  headers: {
206
206
  authorization: string;
207
207
  };
@@ -220,29 +220,29 @@ export declare const getAllUsersSchema: z.ZodObject<{
220
220
  sortBy: z.ZodDefault<z.ZodEnum<["firstName", "lastLoginAt", "createdAt"]>>;
221
221
  order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
222
222
  }, "strip", z.ZodTypeAny, {
223
- sortBy: "createdAt" | "firstName" | "lastLoginAt";
224
223
  order: "asc" | "desc";
225
- page?: number | undefined;
226
- limit?: number | undefined;
224
+ sortBy: "createdAt" | "firstName" | "lastLoginAt";
227
225
  search?: string | undefined;
226
+ limit?: number | undefined;
228
227
  isActive?: boolean | undefined;
229
- role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
228
+ role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
230
229
  isBanned?: boolean | undefined;
231
230
  isSuspended?: boolean | undefined;
231
+ page?: number | undefined;
232
232
  startDate?: string | undefined;
233
233
  endDate?: string | undefined;
234
234
  }, {
235
- page?: string | undefined;
236
- limit?: string | undefined;
237
- sortBy?: "createdAt" | "firstName" | "lastLoginAt" | undefined;
238
235
  search?: string | undefined;
239
236
  order?: "asc" | "desc" | undefined;
237
+ limit?: string | undefined;
240
238
  isActive?: "true" | "false" | undefined;
241
- role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
239
+ role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
242
240
  isBanned?: "true" | "false" | undefined;
243
241
  isSuspended?: "true" | "false" | undefined;
242
+ page?: string | undefined;
244
243
  startDate?: string | undefined;
245
244
  endDate?: string | undefined;
245
+ sortBy?: "createdAt" | "firstName" | "lastLoginAt" | undefined;
246
246
  }>;
247
247
  headers: z.ZodObject<{
248
248
  authorization: z.ZodString;
@@ -253,15 +253,15 @@ export declare const getAllUsersSchema: z.ZodObject<{
253
253
  }>;
254
254
  }, "strip", z.ZodTypeAny, {
255
255
  query: {
256
- sortBy: "createdAt" | "firstName" | "lastLoginAt";
257
256
  order: "asc" | "desc";
258
- page?: number | undefined;
259
- limit?: number | undefined;
257
+ sortBy: "createdAt" | "firstName" | "lastLoginAt";
260
258
  search?: string | undefined;
259
+ limit?: number | undefined;
261
260
  isActive?: boolean | undefined;
262
- role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
261
+ role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
263
262
  isBanned?: boolean | undefined;
264
263
  isSuspended?: boolean | undefined;
264
+ page?: number | undefined;
265
265
  startDate?: string | undefined;
266
266
  endDate?: string | undefined;
267
267
  };
@@ -270,17 +270,17 @@ export declare const getAllUsersSchema: z.ZodObject<{
270
270
  };
271
271
  }, {
272
272
  query: {
273
- page?: string | undefined;
274
- limit?: string | undefined;
275
- sortBy?: "createdAt" | "firstName" | "lastLoginAt" | undefined;
276
273
  search?: string | undefined;
277
274
  order?: "asc" | "desc" | undefined;
275
+ limit?: string | undefined;
278
276
  isActive?: "true" | "false" | undefined;
279
- role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
277
+ role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
280
278
  isBanned?: "true" | "false" | undefined;
281
279
  isSuspended?: "true" | "false" | undefined;
280
+ page?: string | undefined;
282
281
  startDate?: string | undefined;
283
282
  endDate?: string | undefined;
283
+ sortBy?: "createdAt" | "firstName" | "lastLoginAt" | undefined;
284
284
  };
285
285
  headers: {
286
286
  authorization: string;
@@ -301,16 +301,16 @@ export declare const viewProfileSchema: z.ZodObject<{
301
301
  headers: {
302
302
  authorization: string;
303
303
  };
304
- params?: {} | undefined;
305
- query?: {} | undefined;
306
304
  body?: {} | undefined;
305
+ query?: {} | undefined;
306
+ params?: {} | undefined;
307
307
  }, {
308
308
  headers: {
309
309
  authorization: string;
310
310
  };
311
- params?: {} | undefined;
312
- query?: {} | undefined;
313
311
  body?: {} | undefined;
312
+ query?: {} | undefined;
313
+ params?: {} | undefined;
314
314
  }>;
315
315
  export declare const passengerSignupSchema: z.ZodObject<{
316
316
  body: z.ZodObject<{
@@ -445,8 +445,8 @@ export declare const createRiderSchema: z.ZodObject<{
445
445
  plateNumber: string;
446
446
  nationalId: string;
447
447
  };
448
- params?: {} | undefined;
449
448
  query?: {} | undefined;
449
+ params?: {} | undefined;
450
450
  }, {
451
451
  body: {
452
452
  firstName: string;
@@ -456,8 +456,8 @@ export declare const createRiderSchema: z.ZodObject<{
456
456
  plateNumber: string;
457
457
  nationalId: string;
458
458
  };
459
- params?: {} | undefined;
460
459
  query?: {} | undefined;
460
+ params?: {} | undefined;
461
461
  }>;
462
462
  export declare const updateRiderProfileSchema: z.ZodObject<{
463
463
  params: z.ZodObject<{
@@ -512,9 +512,6 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
512
512
  authorization: string;
513
513
  }>;
514
514
  }, "strip", z.ZodTypeAny, {
515
- params: {
516
- id: string;
517
- };
518
515
  body: {
519
516
  firstName: string;
520
517
  lastName: string;
@@ -523,14 +520,14 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
523
520
  plateNumber: string;
524
521
  nationalId: string;
525
522
  };
523
+ params: {
524
+ id: string;
525
+ };
526
526
  headers: {
527
527
  authorization: string;
528
528
  };
529
529
  query?: {} | undefined;
530
530
  }, {
531
- params: {
532
- id: string;
533
- };
534
531
  body: {
535
532
  firstName: string;
536
533
  lastName: string;
@@ -539,6 +536,9 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
539
536
  plateNumber: string;
540
537
  nationalId: string;
541
538
  };
539
+ params: {
540
+ id: string;
541
+ };
542
542
  headers: {
543
543
  authorization: string;
544
544
  };
@@ -35,21 +35,21 @@ export declare const getUserSuspensionsSchema: z.ZodObject<{
35
35
  includeResolved?: "true" | "false" | undefined;
36
36
  }>;
37
37
  }, "strip", z.ZodTypeAny, {
38
- params: {
39
- userId: string;
40
- };
41
38
  query: {
42
39
  status?: "active" | "revoked" | "expired" | undefined;
43
40
  includeResolved?: "true" | "false" | undefined;
44
41
  };
45
- }, {
46
42
  params: {
47
43
  userId: string;
48
44
  };
45
+ }, {
49
46
  query: {
50
47
  status?: "active" | "revoked" | "expired" | undefined;
51
48
  includeResolved?: "true" | "false" | undefined;
52
49
  };
50
+ params: {
51
+ userId: string;
52
+ };
53
53
  }>;
54
54
  export declare const createSuspensionSchema: z.ZodObject<{
55
55
  params: z.ZodObject<{
@@ -70,19 +70,19 @@ export declare const createSuspensionSchema: z.ZodObject<{
70
70
  endsAt: string;
71
71
  }>;
72
72
  }, "strip", z.ZodTypeAny, {
73
- params: {
74
- userId: string;
75
- };
76
73
  body: {
77
74
  reason: string;
78
75
  endsAt: string;
79
76
  };
80
- }, {
81
77
  params: {
82
78
  userId: string;
83
79
  };
80
+ }, {
84
81
  body: {
85
82
  reason: string;
86
83
  endsAt: string;
87
84
  };
85
+ params: {
86
+ userId: string;
87
+ };
88
88
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-commons",
3
- "version": "1.0.60",
3
+ "version": "1.0.62",
4
4
  "description": "Shared functions package",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -100,7 +100,7 @@
100
100
  "date-fns": "^4.1.0",
101
101
  "rimraf": "^5.0.5",
102
102
  "typescript": "^5.3.3",
103
- "vr-models": "^1.0.39",
103
+ "vr-models": "^1.0.42",
104
104
  "zod": "^3.25.20"
105
105
  },
106
106
  "dependencies": {