vr-commons 1.0.181 → 1.0.182

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.
@@ -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
  }>;
@@ -171,21 +171,21 @@ export declare const replacePlanDevicesSchema: z.ZodObject<{
171
171
  replacementPairID: string;
172
172
  }>;
173
173
  }, "strip", z.ZodTypeAny, {
174
- params: {
175
- id: string;
176
- };
177
174
  body: {
178
175
  replacementPrefix: "VBRD" | "VIBERIDE";
179
176
  replacementPairID: string;
180
177
  };
181
- }, {
182
178
  params: {
183
179
  id: string;
184
180
  };
181
+ }, {
185
182
  body: {
186
183
  replacementPrefix: "VBRD" | "VIBERIDE";
187
184
  replacementPairID: string;
188
185
  };
186
+ params: {
187
+ id: string;
188
+ };
189
189
  }>;
190
190
  export declare const limitedUpdateSchema: z.ZodObject<{
191
191
  params: z.ZodObject<{
@@ -201,38 +201,38 @@ export declare const limitedUpdateSchema: z.ZodObject<{
201
201
  userId: z.ZodOptional<z.ZodString>;
202
202
  }, "strip", z.ZodTypeAny, {
203
203
  userId?: string | undefined;
204
- pricingId?: string | undefined;
205
204
  productId?: string | undefined;
205
+ pricingId?: string | undefined;
206
206
  }, {
207
207
  userId?: string | undefined;
208
- pricingId?: string | undefined;
209
208
  productId?: string | undefined;
209
+ pricingId?: string | undefined;
210
210
  }>, {
211
211
  userId?: string | undefined;
212
- pricingId?: string | undefined;
213
212
  productId?: string | undefined;
213
+ pricingId?: string | undefined;
214
214
  }, {
215
215
  userId?: string | undefined;
216
- pricingId?: string | undefined;
217
216
  productId?: string | undefined;
217
+ pricingId?: string | undefined;
218
218
  }>;
219
219
  }, "strip", z.ZodTypeAny, {
220
- params: {
221
- id: string;
222
- };
223
220
  body: {
224
221
  userId?: string | undefined;
225
- pricingId?: string | undefined;
226
222
  productId?: string | undefined;
223
+ pricingId?: string | undefined;
227
224
  };
228
- }, {
229
225
  params: {
230
226
  id: string;
231
227
  };
228
+ }, {
232
229
  body: {
233
230
  userId?: string | undefined;
234
- pricingId?: string | undefined;
235
231
  productId?: string | undefined;
232
+ pricingId?: string | undefined;
233
+ };
234
+ params: {
235
+ id: string;
236
236
  };
237
237
  }>;
238
238
  export declare const recordPaymentSchema: z.ZodObject<{
@@ -255,44 +255,44 @@ export declare const recordPaymentSchema: z.ZodObject<{
255
255
  amount: number;
256
256
  provider: "AIRTEL_MONEY" | "CASH" | "MOMO_PAY";
257
257
  providerReference: string;
258
+ metadata?: Record<string, any> | undefined;
258
259
  customerPhone?: string | undefined;
259
260
  customerName?: string | undefined;
260
261
  notes?: string | undefined;
261
- metadata?: Record<string, any> | undefined;
262
262
  }, {
263
263
  amount: number;
264
264
  providerReference: string;
265
+ metadata?: Record<string, any> | undefined;
265
266
  provider?: "AIRTEL_MONEY" | "CASH" | "MOMO_PAY" | undefined;
266
267
  customerPhone?: string | undefined;
267
268
  customerName?: string | undefined;
268
269
  notes?: string | undefined;
269
- metadata?: Record<string, any> | undefined;
270
270
  }>;
271
271
  }, "strip", z.ZodTypeAny, {
272
- params: {
273
- id: string;
274
- };
275
272
  body: {
276
273
  amount: number;
277
274
  provider: "AIRTEL_MONEY" | "CASH" | "MOMO_PAY";
278
275
  providerReference: string;
276
+ metadata?: Record<string, any> | undefined;
279
277
  customerPhone?: string | undefined;
280
278
  customerName?: string | undefined;
281
279
  notes?: string | undefined;
282
- metadata?: Record<string, any> | undefined;
283
280
  };
284
- }, {
285
281
  params: {
286
282
  id: string;
287
283
  };
284
+ }, {
288
285
  body: {
289
286
  amount: number;
290
287
  providerReference: string;
288
+ metadata?: Record<string, any> | undefined;
291
289
  provider?: "AIRTEL_MONEY" | "CASH" | "MOMO_PAY" | undefined;
292
290
  customerPhone?: string | undefined;
293
291
  customerName?: string | undefined;
294
292
  notes?: string | undefined;
295
- metadata?: Record<string, any> | undefined;
293
+ };
294
+ params: {
295
+ id: string;
296
296
  };
297
297
  }>;
298
298
  export declare const deletePlanSchema: z.ZodObject<{
@@ -66,53 +66,53 @@ export declare const getDevicesSchema: z.ZodObject<{
66
66
  sortBy: z.ZodOptional<z.ZodEnum<["serialNumber", "status", "createdAt", "updatedAt"]>>;
67
67
  sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
68
68
  }, "strip", z.ZodTypeAny, {
69
- productId?: string | undefined;
69
+ search?: string | undefined;
70
+ limit?: number | undefined;
70
71
  status?: "locked" | "unlocked" | "disabled" | undefined;
72
+ productId?: string | undefined;
71
73
  page?: number | undefined;
72
- limit?: number | undefined;
74
+ sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
75
+ sortOrder?: "DESC" | "ASC" | undefined;
73
76
  dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
74
77
  isPermanentlyUnlocked?: "true" | "false" | undefined;
75
78
  isAssigned?: "true" | "false" | undefined;
76
- search?: string | undefined;
77
- sortBy?: "status" | "serialNumber" | "createdAt" | "updatedAt" | undefined;
78
- sortOrder?: "ASC" | "DESC" | undefined;
79
79
  }, {
80
- productId?: string | undefined;
80
+ search?: string | undefined;
81
+ limit?: string | undefined;
81
82
  status?: "locked" | "unlocked" | "disabled" | undefined;
83
+ productId?: string | undefined;
82
84
  page?: string | undefined;
83
- limit?: string | undefined;
85
+ sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
86
+ sortOrder?: "DESC" | "ASC" | undefined;
84
87
  dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
85
88
  isPermanentlyUnlocked?: "true" | "false" | undefined;
86
89
  isAssigned?: "true" | "false" | undefined;
87
- search?: string | undefined;
88
- sortBy?: "status" | "serialNumber" | "createdAt" | "updatedAt" | undefined;
89
- sortOrder?: "ASC" | "DESC" | undefined;
90
90
  }>;
91
91
  }, "strip", z.ZodTypeAny, {
92
92
  query: {
93
- productId?: string | undefined;
93
+ search?: string | undefined;
94
+ limit?: number | undefined;
94
95
  status?: "locked" | "unlocked" | "disabled" | undefined;
96
+ productId?: string | undefined;
95
97
  page?: number | undefined;
96
- limit?: number | undefined;
98
+ sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
99
+ sortOrder?: "DESC" | "ASC" | undefined;
97
100
  dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
98
101
  isPermanentlyUnlocked?: "true" | "false" | undefined;
99
102
  isAssigned?: "true" | "false" | undefined;
100
- search?: string | undefined;
101
- sortBy?: "status" | "serialNumber" | "createdAt" | "updatedAt" | undefined;
102
- sortOrder?: "ASC" | "DESC" | undefined;
103
103
  };
104
104
  }, {
105
105
  query: {
106
- productId?: string | undefined;
106
+ search?: string | undefined;
107
+ limit?: string | undefined;
107
108
  status?: "locked" | "unlocked" | "disabled" | undefined;
109
+ productId?: string | undefined;
108
110
  page?: string | undefined;
109
- limit?: string | undefined;
111
+ sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
112
+ sortOrder?: "DESC" | "ASC" | undefined;
110
113
  dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
111
114
  isPermanentlyUnlocked?: "true" | "false" | undefined;
112
115
  isAssigned?: "true" | "false" | undefined;
113
- search?: string | undefined;
114
- sortBy?: "status" | "serialNumber" | "createdAt" | "updatedAt" | undefined;
115
- sortOrder?: "ASC" | "DESC" | undefined;
116
116
  };
117
117
  }>;
118
118
  export declare const deleteDevicesByPairsSchema: z.ZodObject<{
@@ -160,32 +160,32 @@ export declare const lockDevicesSchema: z.ZodObject<{
160
160
  pairIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
161
161
  serialNumbers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
162
162
  }, "strip", z.ZodTypeAny, {
163
- pairIds?: string[] | undefined;
164
163
  reason?: string | undefined;
164
+ pairIds?: string[] | undefined;
165
165
  serialNumbers?: string[] | undefined;
166
166
  }, {
167
- pairIds?: string[] | undefined;
168
167
  reason?: string | undefined;
168
+ pairIds?: string[] | undefined;
169
169
  serialNumbers?: string[] | undefined;
170
170
  }>, {
171
- pairIds?: string[] | undefined;
172
171
  reason?: string | undefined;
172
+ pairIds?: string[] | undefined;
173
173
  serialNumbers?: string[] | undefined;
174
174
  }, {
175
- pairIds?: string[] | undefined;
176
175
  reason?: string | undefined;
176
+ pairIds?: string[] | undefined;
177
177
  serialNumbers?: string[] | undefined;
178
178
  }>;
179
179
  }, "strip", z.ZodTypeAny, {
180
180
  body: {
181
- pairIds?: string[] | undefined;
182
181
  reason?: string | undefined;
182
+ pairIds?: string[] | undefined;
183
183
  serialNumbers?: string[] | undefined;
184
184
  };
185
185
  }, {
186
186
  body: {
187
- pairIds?: string[] | undefined;
188
187
  reason?: string | undefined;
188
+ pairIds?: string[] | undefined;
189
189
  serialNumbers?: string[] | undefined;
190
190
  };
191
191
  }>;
@@ -335,8 +335,8 @@ export declare const customDeviceResetSchema: z.ZodObject<{
335
335
  createdBefore: z.ZodOptional<z.ZodString>;
336
336
  createdAfter: z.ZodOptional<z.ZodString>;
337
337
  }, "strip", z.ZodTypeAny, {
338
- productId?: string | string[] | undefined;
339
338
  status?: string | string[] | undefined;
339
+ productId?: string | string[] | undefined;
340
340
  dedicatedUser?: string | string[] | undefined;
341
341
  isPermanentlyUnlocked?: boolean | undefined;
342
342
  excludeStatus?: string | string[] | undefined;
@@ -345,8 +345,8 @@ export declare const customDeviceResetSchema: z.ZodObject<{
345
345
  createdBefore?: string | undefined;
346
346
  createdAfter?: string | undefined;
347
347
  }, {
348
- productId?: string | string[] | undefined;
349
348
  status?: string | string[] | undefined;
349
+ productId?: string | string[] | undefined;
350
350
  dedicatedUser?: string | string[] | undefined;
351
351
  isPermanentlyUnlocked?: boolean | undefined;
352
352
  excludeStatus?: string | string[] | undefined;
@@ -363,25 +363,32 @@ export declare const customDeviceResetSchema: z.ZodObject<{
363
363
  activatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
364
364
  }, "strip", z.ZodTypeAny, {
365
365
  status?: string | undefined;
366
+ devicePaymentPlanId?: string | null | undefined;
366
367
  dedicatedUser?: string | undefined;
367
368
  isPermanentlyUnlocked?: boolean | undefined;
368
- devicePaymentPlanId?: string | null | undefined;
369
369
  activatedAt?: string | null | undefined;
370
370
  }, {
371
371
  status?: string | undefined;
372
+ devicePaymentPlanId?: string | null | undefined;
372
373
  dedicatedUser?: string | undefined;
373
374
  isPermanentlyUnlocked?: boolean | undefined;
374
- devicePaymentPlanId?: string | null | undefined;
375
375
  activatedAt?: string | null | undefined;
376
376
  }>>;
377
377
  batchSize: z.ZodOptional<z.ZodNumber>;
378
378
  maxRetries: z.ZodOptional<z.ZodNumber>;
379
379
  }, "strip", z.ZodTypeAny, {
380
+ update?: {
381
+ status?: string | undefined;
382
+ devicePaymentPlanId?: string | null | undefined;
383
+ dedicatedUser?: string | undefined;
384
+ isPermanentlyUnlocked?: boolean | undefined;
385
+ activatedAt?: string | null | undefined;
386
+ } | undefined;
380
387
  batchSize?: number | undefined;
381
388
  maxRetries?: number | undefined;
382
389
  condition?: {
383
- productId?: string | string[] | undefined;
384
390
  status?: string | string[] | undefined;
391
+ productId?: string | string[] | undefined;
385
392
  dedicatedUser?: string | string[] | undefined;
386
393
  isPermanentlyUnlocked?: boolean | undefined;
387
394
  excludeStatus?: string | string[] | undefined;
@@ -390,19 +397,19 @@ export declare const customDeviceResetSchema: z.ZodObject<{
390
397
  createdBefore?: string | undefined;
391
398
  createdAfter?: string | undefined;
392
399
  } | undefined;
400
+ }, {
393
401
  update?: {
394
402
  status?: string | undefined;
403
+ devicePaymentPlanId?: string | null | undefined;
395
404
  dedicatedUser?: string | undefined;
396
405
  isPermanentlyUnlocked?: boolean | undefined;
397
- devicePaymentPlanId?: string | null | undefined;
398
406
  activatedAt?: string | null | undefined;
399
407
  } | undefined;
400
- }, {
401
408
  batchSize?: number | undefined;
402
409
  maxRetries?: number | undefined;
403
410
  condition?: {
404
- productId?: string | string[] | undefined;
405
411
  status?: string | string[] | undefined;
412
+ productId?: string | string[] | undefined;
406
413
  dedicatedUser?: string | string[] | undefined;
407
414
  isPermanentlyUnlocked?: boolean | undefined;
408
415
  excludeStatus?: string | string[] | undefined;
@@ -411,21 +418,21 @@ export declare const customDeviceResetSchema: z.ZodObject<{
411
418
  createdBefore?: string | undefined;
412
419
  createdAfter?: string | undefined;
413
420
  } | undefined;
421
+ }>;
422
+ }, "strip", z.ZodTypeAny, {
423
+ body: {
414
424
  update?: {
415
425
  status?: string | undefined;
426
+ devicePaymentPlanId?: string | null | undefined;
416
427
  dedicatedUser?: string | undefined;
417
428
  isPermanentlyUnlocked?: boolean | undefined;
418
- devicePaymentPlanId?: string | null | undefined;
419
429
  activatedAt?: string | null | undefined;
420
430
  } | undefined;
421
- }>;
422
- }, "strip", z.ZodTypeAny, {
423
- body: {
424
431
  batchSize?: number | undefined;
425
432
  maxRetries?: number | undefined;
426
433
  condition?: {
427
- productId?: string | string[] | undefined;
428
434
  status?: string | string[] | undefined;
435
+ productId?: string | string[] | undefined;
429
436
  dedicatedUser?: string | string[] | undefined;
430
437
  isPermanentlyUnlocked?: boolean | undefined;
431
438
  excludeStatus?: string | string[] | undefined;
@@ -434,21 +441,21 @@ export declare const customDeviceResetSchema: z.ZodObject<{
434
441
  createdBefore?: string | undefined;
435
442
  createdAfter?: string | undefined;
436
443
  } | undefined;
444
+ };
445
+ }, {
446
+ body: {
437
447
  update?: {
438
448
  status?: string | undefined;
449
+ devicePaymentPlanId?: string | null | undefined;
439
450
  dedicatedUser?: string | undefined;
440
451
  isPermanentlyUnlocked?: boolean | undefined;
441
- devicePaymentPlanId?: string | null | undefined;
442
452
  activatedAt?: string | null | undefined;
443
453
  } | undefined;
444
- };
445
- }, {
446
- body: {
447
454
  batchSize?: number | undefined;
448
455
  maxRetries?: number | undefined;
449
456
  condition?: {
450
- productId?: string | string[] | undefined;
451
457
  status?: string | string[] | undefined;
458
+ productId?: string | string[] | undefined;
452
459
  dedicatedUser?: string | string[] | undefined;
453
460
  isPermanentlyUnlocked?: boolean | undefined;
454
461
  excludeStatus?: string | string[] | undefined;
@@ -457,12 +464,5 @@ export declare const customDeviceResetSchema: z.ZodObject<{
457
464
  createdBefore?: string | undefined;
458
465
  createdAfter?: string | undefined;
459
466
  } | undefined;
460
- update?: {
461
- status?: string | undefined;
462
- dedicatedUser?: string | undefined;
463
- isPermanentlyUnlocked?: boolean | undefined;
464
- devicePaymentPlanId?: string | null | undefined;
465
- activatedAt?: string | null | undefined;
466
- } | undefined;
467
467
  };
468
468
  }>;
@@ -16,64 +16,64 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
16
16
  birthMonth: z.ZodNumber;
17
17
  birthYear: z.ZodNumber;
18
18
  }, "strip", z.ZodTypeAny, {
19
- contactValue: string;
19
+ jacketId: string;
20
20
  gender: "male" | "female";
21
21
  birthDate: number;
22
22
  birthMonth: number;
23
23
  birthYear: number;
24
- jacketId: string;
24
+ contactValue: string;
25
25
  plateNumber?: string | undefined;
26
26
  }, {
27
- contactValue: string;
27
+ jacketId: string;
28
28
  gender: "male" | "female";
29
29
  birthDate: number;
30
30
  birthMonth: number;
31
31
  birthYear: number;
32
- jacketId: string;
32
+ contactValue: string;
33
33
  plateNumber?: string | undefined;
34
34
  }>, {
35
- contactValue: string;
35
+ jacketId: string;
36
36
  gender: "male" | "female";
37
37
  birthDate: number;
38
38
  birthMonth: number;
39
39
  birthYear: number;
40
- jacketId: string;
40
+ contactValue: string;
41
41
  plateNumber?: string | undefined;
42
42
  }, {
43
- contactValue: string;
43
+ jacketId: string;
44
44
  gender: "male" | "female";
45
45
  birthDate: number;
46
46
  birthMonth: number;
47
47
  birthYear: number;
48
- jacketId: string;
48
+ contactValue: string;
49
49
  plateNumber?: string | undefined;
50
50
  }>;
51
51
  }, "strip", z.ZodTypeAny, {
52
- params: {
53
- userId: string;
54
- };
55
52
  body: {
56
- contactValue: string;
53
+ jacketId: string;
57
54
  gender: "male" | "female";
58
55
  birthDate: number;
59
56
  birthMonth: number;
60
57
  birthYear: number;
61
- jacketId: string;
58
+ contactValue: string;
62
59
  plateNumber?: string | undefined;
63
60
  };
64
- }, {
65
61
  params: {
66
62
  userId: string;
67
63
  };
64
+ }, {
68
65
  body: {
69
- contactValue: string;
66
+ jacketId: string;
70
67
  gender: "male" | "female";
71
68
  birthDate: number;
72
69
  birthMonth: number;
73
70
  birthYear: number;
74
- jacketId: string;
71
+ contactValue: string;
75
72
  plateNumber?: string | undefined;
76
73
  };
74
+ params: {
75
+ userId: string;
76
+ };
77
77
  }>;
78
78
  export declare const updateRiderSchema: z.ZodObject<{
79
79
  params: z.ZodObject<{
@@ -94,75 +94,75 @@ export declare const updateRiderSchema: z.ZodObject<{
94
94
  birthMonth: z.ZodOptional<z.ZodNumber>;
95
95
  birthYear: z.ZodOptional<z.ZodNumber>;
96
96
  }, "strip", z.ZodTypeAny, {
97
- contactValue?: string | undefined;
98
97
  firstName?: string | undefined;
99
98
  lastName?: string | undefined;
99
+ jacketId?: string | undefined;
100
+ plateNumber?: string | undefined;
100
101
  gender?: "male" | "female" | undefined;
101
102
  birthDate?: number | undefined;
102
103
  birthMonth?: number | undefined;
103
104
  birthYear?: number | undefined;
104
- jacketId?: string | undefined;
105
- plateNumber?: string | undefined;
106
- }, {
107
105
  contactValue?: string | undefined;
106
+ }, {
108
107
  firstName?: string | undefined;
109
108
  lastName?: string | undefined;
109
+ jacketId?: string | undefined;
110
+ plateNumber?: string | undefined;
110
111
  gender?: "male" | "female" | undefined;
111
112
  birthDate?: number | undefined;
112
113
  birthMonth?: number | undefined;
113
114
  birthYear?: number | undefined;
114
- jacketId?: string | undefined;
115
- plateNumber?: string | undefined;
116
- }>, {
117
115
  contactValue?: string | undefined;
116
+ }>, {
118
117
  firstName?: string | undefined;
119
118
  lastName?: string | undefined;
119
+ jacketId?: string | undefined;
120
+ plateNumber?: string | undefined;
120
121
  gender?: "male" | "female" | undefined;
121
122
  birthDate?: number | undefined;
122
123
  birthMonth?: number | undefined;
123
124
  birthYear?: number | undefined;
124
- jacketId?: string | undefined;
125
- plateNumber?: string | undefined;
126
- }, {
127
125
  contactValue?: string | undefined;
126
+ }, {
128
127
  firstName?: string | undefined;
129
128
  lastName?: string | undefined;
129
+ jacketId?: string | undefined;
130
+ plateNumber?: string | undefined;
130
131
  gender?: "male" | "female" | undefined;
131
132
  birthDate?: number | undefined;
132
133
  birthMonth?: number | undefined;
133
134
  birthYear?: number | undefined;
134
- jacketId?: string | undefined;
135
- plateNumber?: string | undefined;
135
+ contactValue?: string | undefined;
136
136
  }>;
137
137
  }, "strip", z.ZodTypeAny, {
138
- params: {
139
- userId: string;
140
- };
141
138
  body: {
142
- contactValue?: string | undefined;
143
139
  firstName?: string | undefined;
144
140
  lastName?: string | undefined;
141
+ jacketId?: string | undefined;
142
+ plateNumber?: string | undefined;
145
143
  gender?: "male" | "female" | undefined;
146
144
  birthDate?: number | undefined;
147
145
  birthMonth?: number | undefined;
148
146
  birthYear?: number | undefined;
149
- jacketId?: string | undefined;
150
- plateNumber?: string | undefined;
147
+ contactValue?: string | undefined;
151
148
  };
152
- }, {
153
149
  params: {
154
150
  userId: string;
155
151
  };
152
+ }, {
156
153
  body: {
157
- contactValue?: string | undefined;
158
154
  firstName?: string | undefined;
159
155
  lastName?: string | undefined;
156
+ jacketId?: string | undefined;
157
+ plateNumber?: string | undefined;
160
158
  gender?: "male" | "female" | undefined;
161
159
  birthDate?: number | undefined;
162
160
  birthMonth?: number | undefined;
163
161
  birthYear?: number | undefined;
164
- jacketId?: string | undefined;
165
- plateNumber?: string | undefined;
162
+ contactValue?: string | undefined;
163
+ };
164
+ params: {
165
+ userId: string;
166
166
  };
167
167
  }>;
168
168
  export declare const deleteUserSchema: z.ZodObject<{
@@ -212,53 +212,53 @@ export declare const getUsersSchema: z.ZodObject<{
212
212
  sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "firstName", "lastName", "gender"]>>;
213
213
  sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
214
214
  }, "strip", z.ZodTypeAny, {
215
- role?: string | undefined;
216
- gender?: "male" | "female" | undefined;
217
- page?: number | undefined;
218
- limit?: number | undefined;
219
215
  search?: string | undefined;
216
+ limit?: number | undefined;
217
+ gender?: "male" | "female" | undefined;
220
218
  isActive?: "true" | "false" | undefined;
221
219
  isDeactivated?: "true" | "false" | undefined;
220
+ role?: string | undefined;
221
+ page?: number | undefined;
222
222
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
223
223
  sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
224
- sortOrder?: "ASC" | "DESC" | undefined;
224
+ sortOrder?: "DESC" | "ASC" | undefined;
225
225
  }, {
226
- role?: string | undefined;
227
- gender?: "male" | "female" | undefined;
228
- page?: string | undefined;
229
- limit?: string | undefined;
230
226
  search?: string | undefined;
227
+ limit?: string | undefined;
228
+ gender?: "male" | "female" | undefined;
231
229
  isActive?: "true" | "false" | undefined;
232
230
  isDeactivated?: "true" | "false" | undefined;
231
+ role?: string | undefined;
232
+ page?: string | undefined;
233
233
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
234
234
  sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
235
- sortOrder?: "ASC" | "DESC" | undefined;
235
+ sortOrder?: "DESC" | "ASC" | undefined;
236
236
  }>;
237
237
  }, "strip", z.ZodTypeAny, {
238
238
  query: {
239
- role?: string | undefined;
240
- gender?: "male" | "female" | undefined;
241
- page?: number | undefined;
242
- limit?: number | undefined;
243
239
  search?: string | undefined;
240
+ limit?: number | undefined;
241
+ gender?: "male" | "female" | undefined;
244
242
  isActive?: "true" | "false" | undefined;
245
243
  isDeactivated?: "true" | "false" | undefined;
244
+ role?: string | undefined;
245
+ page?: number | undefined;
246
246
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
247
247
  sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
248
- sortOrder?: "ASC" | "DESC" | undefined;
248
+ sortOrder?: "DESC" | "ASC" | undefined;
249
249
  };
250
250
  }, {
251
251
  query: {
252
- role?: string | undefined;
253
- gender?: "male" | "female" | undefined;
254
- page?: string | undefined;
255
- limit?: string | undefined;
256
252
  search?: string | undefined;
253
+ limit?: string | undefined;
254
+ gender?: "male" | "female" | undefined;
257
255
  isActive?: "true" | "false" | undefined;
258
256
  isDeactivated?: "true" | "false" | undefined;
257
+ role?: string | undefined;
258
+ page?: string | undefined;
259
259
  contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
260
260
  sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
261
- sortOrder?: "ASC" | "DESC" | undefined;
261
+ sortOrder?: "DESC" | "ASC" | undefined;
262
262
  };
263
263
  }>;
264
264
  export declare const hireAdminSchema: z.ZodObject<{
@@ -273,88 +273,88 @@ export declare const hireAdminSchema: z.ZodObject<{
273
273
  birthMonth: z.ZodNumber;
274
274
  birthYear: z.ZodNumber;
275
275
  }, "strip", z.ZodTypeAny, {
276
- contactValue: string;
277
276
  firstName: string;
278
277
  lastName: string;
279
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
280
278
  gender: "male" | "female";
281
279
  birthDate: number;
282
280
  birthMonth: number;
283
281
  birthYear: number;
282
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
283
+ contactValue: string;
284
284
  superAdminPassword?: string | undefined;
285
285
  }, {
286
- contactValue: string;
287
286
  firstName: string;
288
287
  lastName: string;
289
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
290
288
  gender: "male" | "female";
291
289
  birthDate: number;
292
290
  birthMonth: number;
293
291
  birthYear: number;
292
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
293
+ contactValue: string;
294
294
  superAdminPassword?: string | undefined;
295
295
  }>, {
296
- contactValue: string;
297
296
  firstName: string;
298
297
  lastName: string;
299
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
300
298
  gender: "male" | "female";
301
299
  birthDate: number;
302
300
  birthMonth: number;
303
301
  birthYear: number;
302
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
303
+ contactValue: string;
304
304
  superAdminPassword?: string | undefined;
305
305
  }, {
306
- contactValue: string;
307
306
  firstName: string;
308
307
  lastName: string;
309
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
310
308
  gender: "male" | "female";
311
309
  birthDate: number;
312
310
  birthMonth: number;
313
311
  birthYear: number;
312
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
313
+ contactValue: string;
314
314
  superAdminPassword?: string | undefined;
315
315
  }>, {
316
- contactValue: string;
317
316
  firstName: string;
318
317
  lastName: string;
319
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
320
318
  gender: "male" | "female";
321
319
  birthDate: number;
322
320
  birthMonth: number;
323
321
  birthYear: number;
322
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
323
+ contactValue: string;
324
324
  superAdminPassword?: string | undefined;
325
325
  }, {
326
- contactValue: string;
327
326
  firstName: string;
328
327
  lastName: string;
329
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
330
328
  gender: "male" | "female";
331
329
  birthDate: number;
332
330
  birthMonth: number;
333
331
  birthYear: number;
332
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
333
+ contactValue: string;
334
334
  superAdminPassword?: string | undefined;
335
335
  }>;
336
336
  }, "strip", z.ZodTypeAny, {
337
337
  body: {
338
- contactValue: string;
339
338
  firstName: string;
340
339
  lastName: string;
341
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
342
340
  gender: "male" | "female";
343
341
  birthDate: number;
344
342
  birthMonth: number;
345
343
  birthYear: number;
344
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
345
+ contactValue: string;
346
346
  superAdminPassword?: string | undefined;
347
347
  };
348
348
  }, {
349
349
  body: {
350
- contactValue: string;
351
350
  firstName: string;
352
351
  lastName: string;
353
- role: "AGENT" | "ADMIN" | "SUPER_ADMIN";
354
352
  gender: "male" | "female";
355
353
  birthDate: number;
356
354
  birthMonth: number;
357
355
  birthYear: number;
356
+ role: "ADMIN" | "AGENT" | "SUPER_ADMIN";
357
+ contactValue: string;
358
358
  superAdminPassword?: string | undefined;
359
359
  };
360
360
  }>;
@@ -377,21 +377,21 @@ export declare const promoteAdminSchema: z.ZodObject<{
377
377
  password?: string | undefined;
378
378
  }>;
379
379
  }, "strip", z.ZodTypeAny, {
380
- params: {
381
- userId: string;
382
- };
383
380
  body: {
384
381
  targetRole: "ADMIN" | "SUPER_ADMIN";
385
382
  password?: string | undefined;
386
383
  };
387
- }, {
388
384
  params: {
389
385
  userId: string;
390
386
  };
387
+ }, {
391
388
  body: {
392
389
  targetRole: "ADMIN" | "SUPER_ADMIN";
393
390
  password?: string | undefined;
394
391
  };
392
+ params: {
393
+ userId: string;
394
+ };
395
395
  }>;
396
396
  export declare const demoteAdminSchema: z.ZodObject<{
397
397
  params: z.ZodObject<{
@@ -404,24 +404,24 @@ export declare const demoteAdminSchema: z.ZodObject<{
404
404
  body: z.ZodObject<{
405
405
  targetRole: z.ZodEnum<["AGENT", "ADMIN"]>;
406
406
  }, "strip", z.ZodTypeAny, {
407
- targetRole: "AGENT" | "ADMIN";
407
+ targetRole: "ADMIN" | "AGENT";
408
408
  }, {
409
- targetRole: "AGENT" | "ADMIN";
409
+ targetRole: "ADMIN" | "AGENT";
410
410
  }>;
411
411
  }, "strip", z.ZodTypeAny, {
412
+ body: {
413
+ targetRole: "ADMIN" | "AGENT";
414
+ };
412
415
  params: {
413
416
  userId: string;
414
417
  };
418
+ }, {
415
419
  body: {
416
- targetRole: "AGENT" | "ADMIN";
420
+ targetRole: "ADMIN" | "AGENT";
417
421
  };
418
- }, {
419
422
  params: {
420
423
  userId: string;
421
424
  };
422
- body: {
423
- targetRole: "AGENT" | "ADMIN";
424
- };
425
425
  }>;
426
426
  export declare const fireEmployeeSchema: z.ZodObject<{
427
427
  params: z.ZodObject<{
@@ -439,19 +439,19 @@ export declare const fireEmployeeSchema: z.ZodObject<{
439
439
  reason?: string | undefined;
440
440
  }>;
441
441
  }, "strip", z.ZodTypeAny, {
442
- params: {
443
- userId: string;
444
- };
445
442
  body: {
446
443
  reason?: string | undefined;
447
444
  };
448
- }, {
449
445
  params: {
450
446
  userId: string;
451
447
  };
448
+ }, {
452
449
  body: {
453
450
  reason?: string | undefined;
454
451
  };
452
+ params: {
453
+ userId: string;
454
+ };
455
455
  }>;
456
456
  export declare const updateAdminSchema: z.ZodObject<{
457
457
  params: z.ZodObject<{
@@ -470,63 +470,63 @@ export declare const updateAdminSchema: z.ZodObject<{
470
470
  birthMonth: z.ZodOptional<z.ZodNumber>;
471
471
  birthYear: z.ZodOptional<z.ZodNumber>;
472
472
  }, "strip", z.ZodTypeAny, {
473
- contactValue?: string | undefined;
474
473
  firstName?: string | undefined;
475
474
  lastName?: string | undefined;
476
475
  gender?: "male" | "female" | undefined;
477
476
  birthDate?: number | undefined;
478
477
  birthMonth?: number | undefined;
479
478
  birthYear?: number | undefined;
480
- }, {
481
479
  contactValue?: string | undefined;
480
+ }, {
482
481
  firstName?: string | undefined;
483
482
  lastName?: string | undefined;
484
483
  gender?: "male" | "female" | undefined;
485
484
  birthDate?: number | undefined;
486
485
  birthMonth?: number | undefined;
487
486
  birthYear?: number | undefined;
488
- }>, {
489
487
  contactValue?: string | undefined;
488
+ }>, {
490
489
  firstName?: string | undefined;
491
490
  lastName?: string | undefined;
492
491
  gender?: "male" | "female" | undefined;
493
492
  birthDate?: number | undefined;
494
493
  birthMonth?: number | undefined;
495
494
  birthYear?: number | undefined;
496
- }, {
497
495
  contactValue?: string | undefined;
496
+ }, {
498
497
  firstName?: string | undefined;
499
498
  lastName?: string | undefined;
500
499
  gender?: "male" | "female" | undefined;
501
500
  birthDate?: number | undefined;
502
501
  birthMonth?: number | undefined;
503
502
  birthYear?: number | undefined;
503
+ contactValue?: string | undefined;
504
504
  }>;
505
505
  }, "strip", z.ZodTypeAny, {
506
- params: {
507
- userId: string;
508
- };
509
506
  body: {
510
- contactValue?: string | undefined;
511
507
  firstName?: string | undefined;
512
508
  lastName?: string | undefined;
513
509
  gender?: "male" | "female" | undefined;
514
510
  birthDate?: number | undefined;
515
511
  birthMonth?: number | undefined;
516
512
  birthYear?: number | undefined;
513
+ contactValue?: string | undefined;
517
514
  };
518
- }, {
519
515
  params: {
520
516
  userId: string;
521
517
  };
518
+ }, {
522
519
  body: {
523
- contactValue?: string | undefined;
524
520
  firstName?: string | undefined;
525
521
  lastName?: string | undefined;
526
522
  gender?: "male" | "female" | undefined;
527
523
  birthDate?: number | undefined;
528
524
  birthMonth?: number | undefined;
529
525
  birthYear?: number | undefined;
526
+ contactValue?: string | undefined;
527
+ };
528
+ params: {
529
+ userId: string;
530
530
  };
531
531
  }>;
532
532
  export declare const resetPasswordSchema: z.ZodObject<{
@@ -606,25 +606,25 @@ export declare const addUserContactSchema: z.ZodObject<{
606
606
  isPrimary?: boolean | undefined;
607
607
  }>;
608
608
  }, "strip", z.ZodTypeAny, {
609
- params: {
610
- userId: string;
611
- };
612
609
  body: {
613
610
  contactValue: string;
614
611
  type?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
615
612
  isVerified?: boolean | undefined;
616
613
  isPrimary?: boolean | undefined;
617
614
  };
618
- }, {
619
615
  params: {
620
616
  userId: string;
621
617
  };
618
+ }, {
622
619
  body: {
623
620
  contactValue: string;
624
621
  type?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
625
622
  isVerified?: boolean | undefined;
626
623
  isPrimary?: boolean | undefined;
627
624
  };
625
+ params: {
626
+ userId: string;
627
+ };
628
628
  }>;
629
629
  export declare const verifyUserContactSchema: z.ZodObject<{
630
630
  params: z.ZodObject<{
@@ -280,21 +280,21 @@ export declare const loginSchema: z.ZodObject<{
280
280
  contactValue: z.ZodEffects<z.ZodString, string, string>;
281
281
  password: z.ZodString;
282
282
  }, "strip", z.ZodTypeAny, {
283
- contactValue: string;
284
283
  password: string;
285
- }, {
286
284
  contactValue: string;
285
+ }, {
287
286
  password: string;
287
+ contactValue: string;
288
288
  }>;
289
289
  }, "strip", z.ZodTypeAny, {
290
290
  body: {
291
- contactValue: string;
292
291
  password: string;
292
+ contactValue: string;
293
293
  };
294
294
  }, {
295
295
  body: {
296
- contactValue: string;
297
296
  password: string;
297
+ contactValue: string;
298
298
  };
299
299
  }>;
300
300
  export declare const forgotPasswordSchema: z.ZodObject<{
@@ -367,9 +367,9 @@ export declare const registerRiderSchema: z.ZodObject<{
367
367
  birthMonth: number;
368
368
  birthYear: number;
369
369
  phoneNumber: string;
370
- plateNumber?: string | null | undefined;
371
- password?: string | undefined;
372
370
  jacketId?: string | null | undefined;
371
+ password?: string | undefined;
372
+ plateNumber?: string | null | undefined;
373
373
  }, {
374
374
  firstName: string;
375
375
  lastName: string;
@@ -378,9 +378,9 @@ export declare const registerRiderSchema: z.ZodObject<{
378
378
  birthMonth: number;
379
379
  birthYear: number;
380
380
  phoneNumber: string;
381
- plateNumber?: string | null | undefined;
382
- password?: string | undefined;
383
381
  jacketId?: string | null | undefined;
382
+ password?: string | undefined;
383
+ plateNumber?: string | null | undefined;
384
384
  }>, {
385
385
  firstName: string;
386
386
  lastName: string;
@@ -389,9 +389,9 @@ export declare const registerRiderSchema: z.ZodObject<{
389
389
  birthMonth: number;
390
390
  birthYear: number;
391
391
  phoneNumber: string;
392
- plateNumber?: string | null | undefined;
393
- password?: string | undefined;
394
392
  jacketId?: string | null | undefined;
393
+ password?: string | undefined;
394
+ plateNumber?: string | null | undefined;
395
395
  }, {
396
396
  firstName: string;
397
397
  lastName: string;
@@ -400,9 +400,9 @@ export declare const registerRiderSchema: z.ZodObject<{
400
400
  birthMonth: number;
401
401
  birthYear: number;
402
402
  phoneNumber: string;
403
- plateNumber?: string | null | undefined;
404
- password?: string | undefined;
405
403
  jacketId?: string | null | undefined;
404
+ password?: string | undefined;
405
+ plateNumber?: string | null | undefined;
406
406
  }>;
407
407
  }, "strip", z.ZodTypeAny, {
408
408
  body: {
@@ -413,9 +413,9 @@ export declare const registerRiderSchema: z.ZodObject<{
413
413
  birthMonth: number;
414
414
  birthYear: number;
415
415
  phoneNumber: string;
416
- plateNumber?: string | null | undefined;
417
- password?: string | undefined;
418
416
  jacketId?: string | null | undefined;
417
+ password?: string | undefined;
418
+ plateNumber?: string | null | undefined;
419
419
  };
420
420
  }, {
421
421
  body: {
@@ -426,9 +426,9 @@ export declare const registerRiderSchema: z.ZodObject<{
426
426
  birthMonth: number;
427
427
  birthYear: number;
428
428
  phoneNumber: string;
429
- plateNumber?: string | null | undefined;
430
- password?: string | undefined;
431
429
  jacketId?: string | null | undefined;
430
+ password?: string | undefined;
431
+ plateNumber?: string | null | undefined;
432
432
  };
433
433
  }>;
434
434
  export type UpdateProfileSchema = z.infer<typeof updateProfileSchema>;
@@ -10,21 +10,21 @@ export declare const userLoginSchema: z.ZodObject<{
10
10
  contactValue: z.ZodEffects<z.ZodString, string, string>;
11
11
  password: z.ZodString;
12
12
  }, "strip", z.ZodTypeAny, {
13
- contactValue: string;
14
13
  password: string;
15
- }, {
16
14
  contactValue: string;
15
+ }, {
17
16
  password: string;
17
+ contactValue: string;
18
18
  }>;
19
19
  }, "strip", z.ZodTypeAny, {
20
20
  body: {
21
- contactValue: string;
22
21
  password: string;
22
+ contactValue: string;
23
23
  };
24
24
  }, {
25
25
  body: {
26
- contactValue: string;
27
26
  password: string;
27
+ contactValue: string;
28
28
  };
29
29
  }>;
30
30
  export declare const forgotPasswordSchema: z.ZodObject<{
@@ -95,33 +95,33 @@ export declare const registerSchema: z.ZodObject<{
95
95
  birthMonth: z.ZodOptional<z.ZodNumber>;
96
96
  birthYear: z.ZodOptional<z.ZodNumber>;
97
97
  }, "strict", z.ZodTypeAny, {
98
- contactValue: string;
99
- password: string;
100
98
  firstName: string;
101
99
  lastName: string;
100
+ password: string;
102
101
  role: "PASSENGER" | "RIDER";
102
+ contactValue: string;
103
103
  gender?: "male" | "female" | undefined;
104
104
  birthDate?: number | undefined;
105
105
  birthMonth?: number | undefined;
106
106
  birthYear?: number | undefined;
107
107
  }, {
108
- contactValue: string;
109
- password: string;
110
108
  firstName: string;
111
109
  lastName: string;
112
- role?: "PASSENGER" | "RIDER" | undefined;
110
+ password: string;
111
+ contactValue: string;
113
112
  gender?: "male" | "female" | undefined;
114
113
  birthDate?: number | undefined;
115
114
  birthMonth?: number | undefined;
116
115
  birthYear?: number | undefined;
116
+ role?: "PASSENGER" | "RIDER" | undefined;
117
117
  }>;
118
118
  }, "strip", z.ZodTypeAny, {
119
119
  body: {
120
- contactValue: string;
121
- password: string;
122
120
  firstName: string;
123
121
  lastName: string;
122
+ password: string;
124
123
  role: "PASSENGER" | "RIDER";
124
+ contactValue: string;
125
125
  gender?: "male" | "female" | undefined;
126
126
  birthDate?: number | undefined;
127
127
  birthMonth?: number | undefined;
@@ -129,15 +129,15 @@ export declare const registerSchema: z.ZodObject<{
129
129
  };
130
130
  }, {
131
131
  body: {
132
- contactValue: string;
133
- password: string;
134
132
  firstName: string;
135
133
  lastName: string;
136
- role?: "PASSENGER" | "RIDER" | undefined;
134
+ password: string;
135
+ contactValue: string;
137
136
  gender?: "male" | "female" | undefined;
138
137
  birthDate?: number | undefined;
139
138
  birthMonth?: number | undefined;
140
139
  birthYear?: number | undefined;
140
+ role?: "PASSENGER" | "RIDER" | undefined;
141
141
  };
142
142
  }>;
143
143
  export declare const riderPasswordRegex: RegExp;
@@ -359,57 +359,57 @@ export declare const createUserSchema: z.ZodObject<{
359
359
  jacketId: z.ZodOptional<z.ZodString>;
360
360
  plateNumber: z.ZodOptional<z.ZodString>;
361
361
  }, "strip", z.ZodTypeAny, {
362
- contactValue: string;
363
- password: string;
364
362
  firstName: string;
365
363
  lastName: string;
366
- role: "PASSENGER" | "RIDER" | "AGENT" | "ADMIN" | "SUPER_ADMIN";
364
+ password: string;
365
+ role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
366
+ contactValue: string;
367
+ jacketId?: string | undefined;
368
+ plateNumber?: string | undefined;
367
369
  gender?: "male" | "female" | undefined;
368
370
  birthDate?: number | undefined;
369
371
  birthMonth?: number | undefined;
370
372
  birthYear?: number | undefined;
371
- jacketId?: string | undefined;
372
- plateNumber?: string | undefined;
373
373
  }, {
374
- contactValue: string;
375
- password: string;
376
374
  firstName: string;
377
375
  lastName: string;
378
- role: "PASSENGER" | "RIDER" | "AGENT" | "ADMIN" | "SUPER_ADMIN";
376
+ password: string;
377
+ role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
378
+ contactValue: string;
379
+ jacketId?: string | undefined;
380
+ plateNumber?: string | undefined;
379
381
  gender?: "male" | "female" | undefined;
380
382
  birthDate?: number | undefined;
381
383
  birthMonth?: number | undefined;
382
384
  birthYear?: number | undefined;
383
- jacketId?: string | undefined;
384
- plateNumber?: string | undefined;
385
385
  }>;
386
386
  }, "strip", z.ZodTypeAny, {
387
387
  body: {
388
- contactValue: string;
389
- password: string;
390
388
  firstName: string;
391
389
  lastName: string;
392
- role: "PASSENGER" | "RIDER" | "AGENT" | "ADMIN" | "SUPER_ADMIN";
390
+ password: string;
391
+ role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
392
+ contactValue: string;
393
+ jacketId?: string | undefined;
394
+ plateNumber?: string | undefined;
393
395
  gender?: "male" | "female" | undefined;
394
396
  birthDate?: number | undefined;
395
397
  birthMonth?: number | undefined;
396
398
  birthYear?: number | undefined;
397
- jacketId?: string | undefined;
398
- plateNumber?: string | undefined;
399
399
  };
400
400
  }, {
401
401
  body: {
402
- contactValue: string;
403
- password: string;
404
402
  firstName: string;
405
403
  lastName: string;
406
- role: "PASSENGER" | "RIDER" | "AGENT" | "ADMIN" | "SUPER_ADMIN";
404
+ password: string;
405
+ role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
406
+ contactValue: string;
407
+ jacketId?: string | undefined;
408
+ plateNumber?: string | undefined;
407
409
  gender?: "male" | "female" | undefined;
408
410
  birthDate?: number | undefined;
409
411
  birthMonth?: number | undefined;
410
412
  birthYear?: number | undefined;
411
- jacketId?: string | undefined;
412
- plateNumber?: string | undefined;
413
413
  };
414
414
  }>;
415
415
  export declare const updateContactSchema: z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-commons",
3
- "version": "1.0.181",
3
+ "version": "1.0.182",
4
4
  "description": "Shared functions package",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -103,7 +103,7 @@
103
103
  "rimraf": "^5.0.5",
104
104
  "streamifier": "^0.1.1",
105
105
  "typescript": "^5.3.3",
106
- "vr-models": "^1.0.99",
106
+ "vr-models": "^1.0.108",
107
107
  "zod": "^3.25.20"
108
108
  },
109
109
  "dependencies": {