vr-commons 1.0.154 → 1.0.156

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.
@@ -18,7 +18,6 @@ exports.getInstallmentByIdSchema = zod_1.z.object({
18
18
  id: zod_1.z.string().uuid(),
19
19
  }),
20
20
  });
21
- // src/modules/installments/validations/installments.validations.ts
22
21
  exports.payInstallmentSchema = zod_1.z.object({
23
22
  params: zod_1.z.object({
24
23
  id: zod_1.z.string().uuid("Invalid installment ID"),
@@ -616,9 +616,6 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
616
616
  sentryDsn?: string | null | undefined;
617
617
  }>;
618
618
  }, "strip", z.ZodTypeAny, {
619
- params: {
620
- id: string;
621
- };
622
619
  body: {
623
620
  appName?: string | undefined;
624
621
  appShortName?: string | null | undefined;
@@ -695,10 +692,10 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
695
692
  facebookPixelId?: string | null | undefined;
696
693
  sentryDsn?: string | null | undefined;
697
694
  };
698
- }, {
699
695
  params: {
700
696
  id: string;
701
697
  };
698
+ }, {
702
699
  body: {
703
700
  appName?: string | undefined;
704
701
  appShortName?: string | null | undefined;
@@ -775,6 +772,9 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
775
772
  facebookPixelId?: string | null | undefined;
776
773
  sentryDsn?: string | null | undefined;
777
774
  };
775
+ params: {
776
+ id: string;
777
+ };
778
778
  }>;
779
779
  export declare const listAppSpecsSchema: z.ZodObject<{
780
780
  query: z.ZodObject<{
@@ -785,37 +785,37 @@ export declare const listAppSpecsSchema: z.ZodObject<{
785
785
  sortBy: z.ZodOptional<z.ZodEnum<["version", "createdAt", "updatedAt"]>>;
786
786
  sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
787
787
  }, "strip", z.ZodTypeAny, {
788
- page: number;
789
788
  limit: number;
789
+ page: number;
790
790
  search?: string | undefined;
791
- sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
792
- sortOrder?: "ASC" | "DESC" | undefined;
793
791
  isActive?: "true" | "false" | undefined;
792
+ sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
793
+ sortOrder?: "DESC" | "ASC" | undefined;
794
794
  }, {
795
- page?: string | undefined;
796
- limit?: string | undefined;
797
795
  search?: string | undefined;
798
- sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
799
- sortOrder?: "ASC" | "DESC" | undefined;
796
+ limit?: string | undefined;
800
797
  isActive?: "true" | "false" | undefined;
798
+ page?: string | undefined;
799
+ sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
800
+ sortOrder?: "DESC" | "ASC" | undefined;
801
801
  }>;
802
802
  }, "strip", z.ZodTypeAny, {
803
803
  query: {
804
- page: number;
805
804
  limit: number;
805
+ page: number;
806
806
  search?: string | undefined;
807
- sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
808
- sortOrder?: "ASC" | "DESC" | undefined;
809
807
  isActive?: "true" | "false" | undefined;
808
+ sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
809
+ sortOrder?: "DESC" | "ASC" | undefined;
810
810
  };
811
811
  }, {
812
812
  query: {
813
- page?: string | undefined;
814
- limit?: string | undefined;
815
813
  search?: string | undefined;
816
- sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
817
- sortOrder?: "ASC" | "DESC" | undefined;
814
+ limit?: string | undefined;
818
815
  isActive?: "true" | "false" | undefined;
816
+ page?: string | undefined;
817
+ sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
818
+ sortOrder?: "DESC" | "ASC" | undefined;
819
819
  };
820
820
  }>;
821
821
  export declare const getAppSpecsSchema: z.ZodObject<{
@@ -15,19 +15,19 @@ export declare const submitBanAppealSchema: z.ZodObject<{
15
15
  appealReason: string;
16
16
  }>;
17
17
  }, "strip", z.ZodTypeAny, {
18
- params: {
19
- banId: string;
20
- };
21
18
  body: {
22
19
  appealReason: string;
23
20
  };
24
- }, {
25
21
  params: {
26
22
  banId: string;
27
23
  };
24
+ }, {
28
25
  body: {
29
26
  appealReason: string;
30
27
  };
28
+ params: {
29
+ banId: string;
30
+ };
31
31
  }>;
32
32
  export declare const submitSuspensionAppealSchema: z.ZodObject<{
33
33
  params: z.ZodObject<{
@@ -45,17 +45,17 @@ export declare const submitSuspensionAppealSchema: z.ZodObject<{
45
45
  appealReason: string;
46
46
  }>;
47
47
  }, "strip", z.ZodTypeAny, {
48
- params: {
49
- suspensionId: string;
50
- };
51
48
  body: {
52
49
  appealReason: string;
53
50
  };
54
- }, {
55
51
  params: {
56
52
  suspensionId: string;
57
53
  };
54
+ }, {
58
55
  body: {
59
56
  appealReason: string;
60
57
  };
58
+ params: {
59
+ suspensionId: string;
60
+ };
61
61
  }>;
@@ -362,7 +362,7 @@ export declare const createUserSchema: z.ZodObject<{
362
362
  firstName: string;
363
363
  lastName: string;
364
364
  password: string;
365
- role: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
365
+ role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
366
366
  contactValue: string;
367
367
  jacketId?: string | undefined;
368
368
  plateNumber?: string | undefined;
@@ -374,7 +374,7 @@ export declare const createUserSchema: z.ZodObject<{
374
374
  firstName: string;
375
375
  lastName: string;
376
376
  password: string;
377
- role: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
377
+ role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
378
378
  contactValue: string;
379
379
  jacketId?: string | undefined;
380
380
  plateNumber?: string | undefined;
@@ -388,7 +388,7 @@ export declare const createUserSchema: z.ZodObject<{
388
388
  firstName: string;
389
389
  lastName: string;
390
390
  password: string;
391
- role: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
391
+ role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
392
392
  contactValue: string;
393
393
  jacketId?: string | undefined;
394
394
  plateNumber?: string | undefined;
@@ -402,7 +402,7 @@ export declare const createUserSchema: z.ZodObject<{
402
402
  firstName: string;
403
403
  lastName: string;
404
404
  password: string;
405
- role: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
405
+ role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
406
406
  contactValue: string;
407
407
  jacketId?: string | undefined;
408
408
  plateNumber?: string | undefined;
@@ -32,19 +32,19 @@ export declare const getUserRestrictionsSchema: z.ZodObject<{
32
32
  includeResolved?: "true" | "false" | undefined;
33
33
  }>;
34
34
  }, "strip", z.ZodTypeAny, {
35
- params: {
36
- userId: string;
37
- };
38
35
  query: {
39
36
  includeResolved?: "true" | "false" | undefined;
40
37
  };
41
- }, {
42
38
  params: {
43
39
  userId: string;
44
40
  };
41
+ }, {
45
42
  query: {
46
43
  includeResolved?: "true" | "false" | undefined;
47
44
  };
45
+ params: {
46
+ userId: string;
47
+ };
48
48
  }>;
49
49
  export declare const createBanSchema: z.ZodObject<{
50
50
  params: z.ZodObject<{
@@ -65,19 +65,19 @@ export declare const createBanSchema: z.ZodObject<{
65
65
  isPermanent?: boolean | undefined;
66
66
  }>;
67
67
  }, "strip", z.ZodTypeAny, {
68
- params: {
69
- userId: string;
70
- };
71
68
  body: {
72
69
  reason: string;
73
70
  isPermanent: boolean;
74
71
  };
75
- }, {
76
72
  params: {
77
73
  userId: string;
78
74
  };
75
+ }, {
79
76
  body: {
80
77
  reason: string;
81
78
  isPermanent?: boolean | undefined;
82
79
  };
80
+ params: {
81
+ userId: string;
82
+ };
83
83
  }>;
@@ -7,33 +7,33 @@ export declare const listUserPaymentPlansSchema: z.ZodObject<{
7
7
  sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "nextInstallmentDueAt", "status"]>>;
8
8
  sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
9
9
  }, "strip", z.ZodTypeAny, {
10
- page: number;
11
10
  limit: number;
12
- status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
13
- sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
14
- sortOrder?: "ASC" | "DESC" | undefined;
11
+ page: number;
12
+ status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
13
+ sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
14
+ sortOrder?: "DESC" | "ASC" | undefined;
15
15
  }, {
16
- status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
17
- page?: string | undefined;
18
16
  limit?: string | undefined;
19
- sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
20
- sortOrder?: "ASC" | "DESC" | undefined;
17
+ status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
18
+ page?: string | undefined;
19
+ sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
20
+ sortOrder?: "DESC" | "ASC" | undefined;
21
21
  }>;
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  query: {
24
- page: number;
25
24
  limit: number;
26
- status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
27
- sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
28
- sortOrder?: "ASC" | "DESC" | undefined;
25
+ page: number;
26
+ status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
27
+ sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
28
+ sortOrder?: "DESC" | "ASC" | undefined;
29
29
  };
30
30
  }, {
31
31
  query: {
32
- status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
33
- page?: string | undefined;
34
32
  limit?: string | undefined;
35
- sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
36
- sortOrder?: "ASC" | "DESC" | undefined;
33
+ status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
34
+ page?: string | undefined;
35
+ sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
36
+ sortOrder?: "DESC" | "ASC" | undefined;
37
37
  };
38
38
  }>;
39
39
  export declare const getUserPaymentPlanSchema: z.ZodObject<{
@@ -18,54 +18,54 @@ export declare const listEventLogsSchema: z.ZodObject<{
18
18
  sortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
19
19
  hasDeviceSession: z.ZodEffects<z.ZodOptional<z.ZodString>, boolean, string | undefined>;
20
20
  }, "strip", z.ZodTypeAny, {
21
- page: number;
22
21
  limit: number;
22
+ page: number;
23
23
  sortBy: "createdAt" | "actorType" | "action" | "entity";
24
- sortOrder: "ASC" | "DESC";
24
+ sortOrder: "DESC" | "ASC";
25
25
  hasDeviceSession: boolean;
26
26
  search?: string | undefined;
27
- actorId?: string | undefined;
28
- actorType?: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
29
- action?: string | undefined;
30
- entity?: string | undefined;
31
- entityId?: string | undefined;
32
27
  firstName?: string | undefined;
33
28
  lastName?: string | undefined;
34
29
  fromDate?: string | undefined;
35
30
  toDate?: string | undefined;
36
- actorName?: string | undefined;
37
- }, {
38
- page?: string | undefined;
39
- limit?: string | undefined;
40
- search?: string | undefined;
41
- sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
42
- sortOrder?: "ASC" | "DESC" | undefined;
31
+ actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
43
32
  actorId?: string | undefined;
44
- actorType?: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
45
33
  action?: string | undefined;
46
34
  entity?: string | undefined;
47
35
  entityId?: string | undefined;
36
+ actorName?: string | undefined;
37
+ }, {
38
+ search?: string | undefined;
39
+ limit?: string | undefined;
48
40
  firstName?: string | undefined;
49
41
  lastName?: string | undefined;
42
+ page?: string | undefined;
43
+ sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
50
44
  fromDate?: string | undefined;
51
45
  toDate?: string | undefined;
46
+ sortOrder?: "DESC" | "ASC" | undefined;
47
+ actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
48
+ actorId?: string | undefined;
49
+ action?: string | undefined;
50
+ entity?: string | undefined;
51
+ entityId?: string | undefined;
52
52
  actorName?: string | undefined;
53
53
  hasDeviceSession?: string | undefined;
54
54
  }>, any, {
55
- page?: string | undefined;
56
- limit?: string | undefined;
57
55
  search?: string | undefined;
56
+ limit?: string | undefined;
57
+ firstName?: string | undefined;
58
+ lastName?: string | undefined;
59
+ page?: string | undefined;
58
60
  sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
59
- sortOrder?: "ASC" | "DESC" | undefined;
61
+ fromDate?: string | undefined;
62
+ toDate?: string | undefined;
63
+ sortOrder?: "DESC" | "ASC" | undefined;
64
+ actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
60
65
  actorId?: string | undefined;
61
- actorType?: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
62
66
  action?: string | undefined;
63
67
  entity?: string | undefined;
64
68
  entityId?: string | undefined;
65
- firstName?: string | undefined;
66
- lastName?: string | undefined;
67
- fromDate?: string | undefined;
68
- toDate?: string | undefined;
69
69
  actorName?: string | undefined;
70
70
  hasDeviceSession?: string | undefined;
71
71
  }>;
@@ -73,20 +73,20 @@ export declare const listEventLogsSchema: z.ZodObject<{
73
73
  query?: any;
74
74
  }, {
75
75
  query: {
76
- page?: string | undefined;
77
- limit?: string | undefined;
78
76
  search?: string | undefined;
77
+ limit?: string | undefined;
78
+ firstName?: string | undefined;
79
+ lastName?: string | undefined;
80
+ page?: string | undefined;
79
81
  sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
80
- sortOrder?: "ASC" | "DESC" | undefined;
82
+ fromDate?: string | undefined;
83
+ toDate?: string | undefined;
84
+ sortOrder?: "DESC" | "ASC" | undefined;
85
+ actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
81
86
  actorId?: string | undefined;
82
- actorType?: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
83
87
  action?: string | undefined;
84
88
  entity?: string | undefined;
85
89
  entityId?: string | undefined;
86
- firstName?: string | undefined;
87
- lastName?: string | undefined;
88
- fromDate?: string | undefined;
89
- toDate?: string | undefined;
90
90
  actorName?: string | undefined;
91
91
  hasDeviceSession?: string | undefined;
92
92
  };