vr-commons 1.0.186 → 1.0.188

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,9 +7,9 @@ const optionalUrl = zod_1.z.preprocess((value) => typeof value === "string" && v
7
7
  const optionalEmail = zod_1.z.preprocess((value) => typeof value === "string" && value.trim() === "" ? null : value, zod_1.z.string().email().nullable().optional());
8
8
  const speedLimitSchema = zod_1.z.number().positive().max(300);
9
9
  const speedGovernorDayScheduleSchema = zod_1.z.object({
10
- morningRushHourLimitKmh: speedLimitSchema.optional(),
10
+ morningRushHourLimitKmh: speedLimitSchema,
11
11
  daytimeLimitKmh: speedLimitSchema,
12
- eveningRushHourLimitKmh: speedLimitSchema.optional(),
12
+ eveningRushHourLimitKmh: speedLimitSchema,
13
13
  nighttimeLimitKmh: speedLimitSchema,
14
14
  });
15
15
  const speedGovernorWeeklyScheduleSchema = zod_1.z.object({
@@ -24,7 +24,7 @@ const speedGovernorWeeklyScheduleSchema = zod_1.z.object({
24
24
  const speedGovernorSchema = zod_1.z.object({
25
25
  isActive: zod_1.z.boolean(),
26
26
  fallbackSpeedLimit: speedLimitSchema.optional(),
27
- weeklySchedule: speedGovernorWeeklyScheduleSchema.optional(),
27
+ weeklySchedule: speedGovernorWeeklyScheduleSchema,
28
28
  exceptions: zod_1.z.array(zod_1.z.string().trim().min(1).max(100)).optional(),
29
29
  });
30
30
  const appSpecsBaseSchema = {
@@ -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
- password: string;
14
13
  contactValue: string;
15
- }, {
16
14
  password: string;
15
+ }, {
17
16
  contactValue: string;
17
+ password: string;
18
18
  }>;
19
19
  }, "strip", z.ZodTypeAny, {
20
20
  body: {
21
- password: string;
22
21
  contactValue: string;
22
+ password: string;
23
23
  };
24
24
  }, {
25
25
  body: {
26
- password: string;
27
26
  contactValue: string;
27
+ password: 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
+ role: "RIDER" | "PASSENGER";
100
+ password: string;
98
101
  firstName: string;
99
102
  lastName: string;
100
- password: string;
101
- role: "RIDER" | "PASSENGER";
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;
108
110
  firstName: string;
109
111
  lastName: string;
110
- password: string;
111
- contactValue: string;
112
+ role?: "RIDER" | "PASSENGER" | undefined;
112
113
  gender?: "male" | "female" | undefined;
113
114
  birthDate?: number | undefined;
114
115
  birthMonth?: number | undefined;
115
116
  birthYear?: number | undefined;
116
- role?: "RIDER" | "PASSENGER" | undefined;
117
117
  }>;
118
118
  }, "strip", z.ZodTypeAny, {
119
119
  body: {
120
+ contactValue: string;
121
+ role: "RIDER" | "PASSENGER";
122
+ password: string;
120
123
  firstName: string;
121
124
  lastName: string;
122
- password: string;
123
- role: "RIDER" | "PASSENGER";
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;
132
134
  firstName: string;
133
135
  lastName: string;
134
- password: string;
135
- contactValue: string;
136
+ role?: "RIDER" | "PASSENGER" | undefined;
136
137
  gender?: "male" | "female" | undefined;
137
138
  birthDate?: number | undefined;
138
139
  birthMonth?: number | undefined;
139
140
  birthYear?: number | undefined;
140
- role?: "RIDER" | "PASSENGER" | undefined;
141
141
  };
142
142
  }>;
143
143
  export declare const riderPasswordRegex: RegExp;
@@ -359,11 +359,11 @@ 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
+ role: "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN";
364
+ password: string;
362
365
  firstName: string;
363
366
  lastName: string;
364
- password: string;
365
- role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
366
- contactValue: string;
367
367
  jacketId?: string | undefined;
368
368
  plateNumber?: string | undefined;
369
369
  gender?: "male" | "female" | undefined;
@@ -371,11 +371,11 @@ export declare const createUserSchema: z.ZodObject<{
371
371
  birthMonth?: number | undefined;
372
372
  birthYear?: number | undefined;
373
373
  }, {
374
+ contactValue: string;
375
+ role: "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN";
376
+ password: string;
374
377
  firstName: string;
375
378
  lastName: string;
376
- password: string;
377
- role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
378
- contactValue: string;
379
379
  jacketId?: string | undefined;
380
380
  plateNumber?: string | undefined;
381
381
  gender?: "male" | "female" | undefined;
@@ -385,11 +385,11 @@ export declare const createUserSchema: z.ZodObject<{
385
385
  }>;
386
386
  }, "strip", z.ZodTypeAny, {
387
387
  body: {
388
+ contactValue: string;
389
+ role: "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN";
390
+ password: string;
388
391
  firstName: string;
389
392
  lastName: string;
390
- password: string;
391
- role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
392
- contactValue: string;
393
393
  jacketId?: string | undefined;
394
394
  plateNumber?: string | undefined;
395
395
  gender?: "male" | "female" | undefined;
@@ -399,11 +399,11 @@ export declare const createUserSchema: z.ZodObject<{
399
399
  };
400
400
  }, {
401
401
  body: {
402
+ contactValue: string;
403
+ role: "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN";
404
+ password: string;
402
405
  firstName: string;
403
406
  lastName: string;
404
- password: string;
405
- role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
406
- contactValue: string;
407
407
  jacketId?: string | undefined;
408
408
  plateNumber?: string | undefined;
409
409
  gender?: "male" | "female" | undefined;
@@ -283,19 +283,19 @@ export declare const listBansSchema: z.ZodObject<{
283
283
  sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
284
284
  fromDate?: string | undefined;
285
285
  toDate?: string | undefined;
286
- sortOrder?: "DESC" | "ASC" | undefined;
286
+ sortOrder?: "ASC" | "DESC" | undefined;
287
287
  }, {
288
288
  search?: string | undefined;
289
289
  limit?: string | undefined;
290
290
  userId?: string | undefined;
291
+ page?: string | undefined;
291
292
  isPermanent?: "true" | "false" | undefined;
292
293
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
293
294
  status?: "active" | "revoked" | undefined;
294
- page?: string | undefined;
295
295
  sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
296
296
  fromDate?: string | undefined;
297
297
  toDate?: string | undefined;
298
- sortOrder?: "DESC" | "ASC" | undefined;
298
+ sortOrder?: "ASC" | "DESC" | undefined;
299
299
  }>, {
300
300
  limit: number;
301
301
  page: number;
@@ -307,19 +307,19 @@ export declare const listBansSchema: z.ZodObject<{
307
307
  sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
308
308
  fromDate?: string | undefined;
309
309
  toDate?: string | undefined;
310
- sortOrder?: "DESC" | "ASC" | undefined;
310
+ sortOrder?: "ASC" | "DESC" | undefined;
311
311
  }, {
312
312
  search?: string | undefined;
313
313
  limit?: string | undefined;
314
314
  userId?: string | undefined;
315
+ page?: string | undefined;
315
316
  isPermanent?: "true" | "false" | undefined;
316
317
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
317
318
  status?: "active" | "revoked" | undefined;
318
- page?: string | undefined;
319
319
  sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
320
320
  fromDate?: string | undefined;
321
321
  toDate?: string | undefined;
322
- sortOrder?: "DESC" | "ASC" | undefined;
322
+ sortOrder?: "ASC" | "DESC" | undefined;
323
323
  }>;
324
324
  }, "strip", z.ZodTypeAny, {
325
325
  query: {
@@ -333,21 +333,21 @@ export declare const listBansSchema: z.ZodObject<{
333
333
  sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
334
334
  fromDate?: string | undefined;
335
335
  toDate?: string | undefined;
336
- sortOrder?: "DESC" | "ASC" | undefined;
336
+ sortOrder?: "ASC" | "DESC" | undefined;
337
337
  };
338
338
  }, {
339
339
  query: {
340
340
  search?: string | undefined;
341
341
  limit?: string | undefined;
342
342
  userId?: string | undefined;
343
+ page?: string | undefined;
343
344
  isPermanent?: "true" | "false" | undefined;
344
345
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
345
346
  status?: "active" | "revoked" | undefined;
346
- page?: string | undefined;
347
347
  sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
348
348
  fromDate?: string | undefined;
349
349
  toDate?: string | undefined;
350
- sortOrder?: "DESC" | "ASC" | undefined;
350
+ sortOrder?: "ASC" | "DESC" | undefined;
351
351
  };
352
352
  }>;
353
353
  export declare const listSuspensionsSchema: z.ZodObject<{
@@ -373,18 +373,18 @@ export declare const listSuspensionsSchema: z.ZodObject<{
373
373
  sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
374
374
  fromDate?: string | undefined;
375
375
  toDate?: string | undefined;
376
- sortOrder?: "DESC" | "ASC" | undefined;
376
+ sortOrder?: "ASC" | "DESC" | undefined;
377
377
  }, {
378
378
  search?: string | undefined;
379
379
  limit?: string | undefined;
380
380
  userId?: string | undefined;
381
+ page?: string | undefined;
381
382
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
382
383
  status?: "active" | "expired" | "revoked" | undefined;
383
- page?: string | undefined;
384
384
  sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
385
385
  fromDate?: string | undefined;
386
386
  toDate?: string | undefined;
387
- sortOrder?: "DESC" | "ASC" | undefined;
387
+ sortOrder?: "ASC" | "DESC" | undefined;
388
388
  }>, {
389
389
  limit: number;
390
390
  page: number;
@@ -395,18 +395,18 @@ export declare const listSuspensionsSchema: z.ZodObject<{
395
395
  sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
396
396
  fromDate?: string | undefined;
397
397
  toDate?: string | undefined;
398
- sortOrder?: "DESC" | "ASC" | undefined;
398
+ sortOrder?: "ASC" | "DESC" | undefined;
399
399
  }, {
400
400
  search?: string | undefined;
401
401
  limit?: string | undefined;
402
402
  userId?: string | undefined;
403
+ page?: string | undefined;
403
404
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
404
405
  status?: "active" | "expired" | "revoked" | undefined;
405
- page?: string | undefined;
406
406
  sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
407
407
  fromDate?: string | undefined;
408
408
  toDate?: string | undefined;
409
- sortOrder?: "DESC" | "ASC" | undefined;
409
+ sortOrder?: "ASC" | "DESC" | undefined;
410
410
  }>;
411
411
  }, "strip", z.ZodTypeAny, {
412
412
  query: {
@@ -419,20 +419,20 @@ export declare const listSuspensionsSchema: z.ZodObject<{
419
419
  sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
420
420
  fromDate?: string | undefined;
421
421
  toDate?: string | undefined;
422
- sortOrder?: "DESC" | "ASC" | undefined;
422
+ sortOrder?: "ASC" | "DESC" | undefined;
423
423
  };
424
424
  }, {
425
425
  query: {
426
426
  search?: string | undefined;
427
427
  limit?: string | undefined;
428
428
  userId?: string | undefined;
429
+ page?: string | undefined;
429
430
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
430
431
  status?: "active" | "expired" | "revoked" | undefined;
431
- page?: string | undefined;
432
432
  sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
433
433
  fromDate?: string | undefined;
434
434
  toDate?: string | undefined;
435
- sortOrder?: "DESC" | "ASC" | undefined;
435
+ sortOrder?: "ASC" | "DESC" | undefined;
436
436
  };
437
437
  }>;
438
438
  export declare const listPendingAppealsSchema: z.ZodObject<{