vr-commons 1.0.132 → 1.0.134
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.
- package/dist/utils/hierarchy.utils.d.ts +10 -0
- package/dist/utils/hierarchy.utils.js +27 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +2 -1
- package/dist/validations/account.validations.d.ts +89 -4
- package/dist/validations/account.validations.js +71 -1
- package/dist/validations/admin.devicePayment.validations.d.ts +65 -55
- package/dist/validations/admin.devicePayment.validations.js +4 -4
- package/dist/validations/admin.devices.validations.d.ts +28 -28
- package/dist/validations/appSpecs.validations.d.ts +18 -18
- package/dist/validations/appeals.validations.d.ts +8 -8
- package/dist/validations/bans.validations.d.ts +8 -8
- package/dist/validations/devicePaymentPlan.validations.d.ts +16 -16
- package/dist/validations/eventlogs.admin.validations.d.ts +14 -14
- package/dist/validations/index.d.ts +1 -1
- package/dist/validations/index.js +4 -2
- package/dist/validations/moderation.validations.d.ts +114 -114
- package/dist/validations/payinstallment.validations.d.ts +43 -23
- package/dist/validations/payinstallment.validations.js +13 -5
- package/dist/validations/pricing.validations.d.ts +30 -30
- package/dist/validations/pricings.validations.d.ts +30 -30
- package/dist/validations/product.validations.d.ts +28 -28
- package/dist/validations/profiles.validations.d.ts +34 -34
- package/dist/validations/suspensions.validations.d.ts +8 -8
- package/dist/validations/users.admin.validations.d.ts +48 -48
- package/package.json +2 -2
|
@@ -65,23 +65,23 @@ export declare const updateDeviceSchema: z.ZodObject<{
|
|
|
65
65
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | null | undefined;
|
|
66
66
|
}>;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
params: {
|
|
69
|
+
id: string;
|
|
70
|
+
};
|
|
68
71
|
body: {
|
|
69
72
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
70
73
|
serialNumber?: string | undefined;
|
|
71
74
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | null | undefined;
|
|
72
75
|
};
|
|
76
|
+
}, {
|
|
73
77
|
params: {
|
|
74
78
|
id: string;
|
|
75
79
|
};
|
|
76
|
-
}, {
|
|
77
80
|
body: {
|
|
78
81
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
79
82
|
serialNumber?: string | undefined;
|
|
80
83
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | null | undefined;
|
|
81
84
|
};
|
|
82
|
-
params: {
|
|
83
|
-
id: string;
|
|
84
|
-
};
|
|
85
85
|
}>;
|
|
86
86
|
export declare const getDeviceSchema: z.ZodObject<{
|
|
87
87
|
params: z.ZodObject<{
|
|
@@ -113,50 +113,50 @@ export declare const getDevicesSchema: z.ZodObject<{
|
|
|
113
113
|
sortBy: z.ZodOptional<z.ZodEnum<["serialNumber", "status", "createdAt", "updatedAt"]>>;
|
|
114
114
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
search?: string | undefined;
|
|
117
|
-
limit?: number | undefined;
|
|
118
116
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
119
|
-
page?: number | undefined;
|
|
120
|
-
sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
|
|
121
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
122
117
|
productId?: string | undefined;
|
|
118
|
+
page?: number | undefined;
|
|
119
|
+
limit?: number | undefined;
|
|
120
|
+
search?: string | undefined;
|
|
121
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "serialNumber" | undefined;
|
|
122
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
123
123
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
124
124
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
125
125
|
isAssigned?: "true" | "false" | undefined;
|
|
126
126
|
}, {
|
|
127
|
-
search?: string | undefined;
|
|
128
|
-
limit?: string | undefined;
|
|
129
127
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
130
|
-
page?: string | undefined;
|
|
131
|
-
sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
|
|
132
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
133
128
|
productId?: string | undefined;
|
|
129
|
+
page?: string | undefined;
|
|
130
|
+
limit?: string | undefined;
|
|
131
|
+
search?: string | undefined;
|
|
132
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "serialNumber" | undefined;
|
|
133
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
134
134
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
135
135
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
136
136
|
isAssigned?: "true" | "false" | undefined;
|
|
137
137
|
}>;
|
|
138
138
|
}, "strip", z.ZodTypeAny, {
|
|
139
139
|
query: {
|
|
140
|
-
search?: string | undefined;
|
|
141
|
-
limit?: number | undefined;
|
|
142
140
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
143
|
-
page?: number | undefined;
|
|
144
|
-
sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
|
|
145
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
146
141
|
productId?: string | undefined;
|
|
142
|
+
page?: number | undefined;
|
|
143
|
+
limit?: number | undefined;
|
|
144
|
+
search?: string | undefined;
|
|
145
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "serialNumber" | undefined;
|
|
146
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
147
147
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
148
148
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
149
149
|
isAssigned?: "true" | "false" | undefined;
|
|
150
150
|
};
|
|
151
151
|
}, {
|
|
152
152
|
query: {
|
|
153
|
-
search?: string | undefined;
|
|
154
|
-
limit?: string | undefined;
|
|
155
153
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
156
|
-
page?: string | undefined;
|
|
157
|
-
sortBy?: "createdAt" | "updatedAt" | "status" | "serialNumber" | undefined;
|
|
158
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
159
154
|
productId?: string | undefined;
|
|
155
|
+
page?: string | undefined;
|
|
156
|
+
limit?: string | undefined;
|
|
157
|
+
search?: string | undefined;
|
|
158
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "serialNumber" | undefined;
|
|
159
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
160
160
|
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
161
161
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
162
162
|
isAssigned?: "true" | "false" | undefined;
|
|
@@ -242,19 +242,19 @@ export declare const disableDeviceSchema: z.ZodObject<{
|
|
|
242
242
|
reason: string;
|
|
243
243
|
}>;
|
|
244
244
|
}, "strip", z.ZodTypeAny, {
|
|
245
|
-
body: {
|
|
246
|
-
reason: string;
|
|
247
|
-
};
|
|
248
245
|
params: {
|
|
249
246
|
id: string;
|
|
250
247
|
};
|
|
251
|
-
}, {
|
|
252
248
|
body: {
|
|
253
249
|
reason: string;
|
|
254
250
|
};
|
|
251
|
+
}, {
|
|
255
252
|
params: {
|
|
256
253
|
id: string;
|
|
257
254
|
};
|
|
255
|
+
body: {
|
|
256
|
+
reason: string;
|
|
257
|
+
};
|
|
258
258
|
}>;
|
|
259
259
|
export declare const makePermanentSchema: z.ZodObject<{
|
|
260
260
|
params: z.ZodObject<{
|
|
@@ -616,6 +616,9 @@ 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
|
+
};
|
|
619
622
|
body: {
|
|
620
623
|
appName?: string | undefined;
|
|
621
624
|
appShortName?: string | null | undefined;
|
|
@@ -692,10 +695,10 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
692
695
|
facebookPixelId?: string | null | undefined;
|
|
693
696
|
sentryDsn?: string | null | undefined;
|
|
694
697
|
};
|
|
698
|
+
}, {
|
|
695
699
|
params: {
|
|
696
700
|
id: string;
|
|
697
701
|
};
|
|
698
|
-
}, {
|
|
699
702
|
body: {
|
|
700
703
|
appName?: string | undefined;
|
|
701
704
|
appShortName?: string | null | undefined;
|
|
@@ -772,9 +775,6 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
772
775
|
facebookPixelId?: string | null | undefined;
|
|
773
776
|
sentryDsn?: string | null | undefined;
|
|
774
777
|
};
|
|
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
|
-
limit: number;
|
|
789
788
|
page: number;
|
|
789
|
+
limit: number;
|
|
790
790
|
search?: string | undefined;
|
|
791
|
-
isActive?: "true" | "false" | undefined;
|
|
792
791
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
793
|
-
sortOrder?: "
|
|
794
|
-
}, {
|
|
795
|
-
search?: string | undefined;
|
|
796
|
-
limit?: string | undefined;
|
|
792
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
797
793
|
isActive?: "true" | "false" | undefined;
|
|
794
|
+
}, {
|
|
798
795
|
page?: string | undefined;
|
|
796
|
+
limit?: string | undefined;
|
|
797
|
+
search?: string | undefined;
|
|
799
798
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
800
|
-
sortOrder?: "
|
|
799
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
800
|
+
isActive?: "true" | "false" | undefined;
|
|
801
801
|
}>;
|
|
802
802
|
}, "strip", z.ZodTypeAny, {
|
|
803
803
|
query: {
|
|
804
|
-
limit: number;
|
|
805
804
|
page: number;
|
|
805
|
+
limit: number;
|
|
806
806
|
search?: string | undefined;
|
|
807
|
-
isActive?: "true" | "false" | undefined;
|
|
808
807
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
809
|
-
sortOrder?: "
|
|
808
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
809
|
+
isActive?: "true" | "false" | undefined;
|
|
810
810
|
};
|
|
811
811
|
}, {
|
|
812
812
|
query: {
|
|
813
|
-
search?: string | undefined;
|
|
814
|
-
limit?: string | undefined;
|
|
815
|
-
isActive?: "true" | "false" | undefined;
|
|
816
813
|
page?: string | undefined;
|
|
814
|
+
limit?: string | undefined;
|
|
815
|
+
search?: string | undefined;
|
|
817
816
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
818
|
-
sortOrder?: "
|
|
817
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
818
|
+
isActive?: "true" | "false" | 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
|
-
body: {
|
|
19
|
-
appealReason: string;
|
|
20
|
-
};
|
|
21
18
|
params: {
|
|
22
19
|
banId: string;
|
|
23
20
|
};
|
|
24
|
-
}, {
|
|
25
21
|
body: {
|
|
26
22
|
appealReason: string;
|
|
27
23
|
};
|
|
24
|
+
}, {
|
|
28
25
|
params: {
|
|
29
26
|
banId: string;
|
|
30
27
|
};
|
|
28
|
+
body: {
|
|
29
|
+
appealReason: 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
|
-
body: {
|
|
49
|
-
appealReason: string;
|
|
50
|
-
};
|
|
51
48
|
params: {
|
|
52
49
|
suspensionId: string;
|
|
53
50
|
};
|
|
54
|
-
}, {
|
|
55
51
|
body: {
|
|
56
52
|
appealReason: string;
|
|
57
53
|
};
|
|
54
|
+
}, {
|
|
58
55
|
params: {
|
|
59
56
|
suspensionId: string;
|
|
60
57
|
};
|
|
58
|
+
body: {
|
|
59
|
+
appealReason: string;
|
|
60
|
+
};
|
|
61
61
|
}>;
|
|
@@ -32,19 +32,19 @@ export declare const getUserRestrictionsSchema: z.ZodObject<{
|
|
|
32
32
|
includeResolved?: "true" | "false" | undefined;
|
|
33
33
|
}>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
query: {
|
|
36
|
-
includeResolved?: "true" | "false" | undefined;
|
|
37
|
-
};
|
|
38
35
|
params: {
|
|
39
36
|
userId: string;
|
|
40
37
|
};
|
|
41
|
-
}, {
|
|
42
38
|
query: {
|
|
43
39
|
includeResolved?: "true" | "false" | undefined;
|
|
44
40
|
};
|
|
41
|
+
}, {
|
|
45
42
|
params: {
|
|
46
43
|
userId: string;
|
|
47
44
|
};
|
|
45
|
+
query: {
|
|
46
|
+
includeResolved?: "true" | "false" | undefined;
|
|
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
|
+
};
|
|
68
71
|
body: {
|
|
69
72
|
reason: string;
|
|
70
73
|
isPermanent: boolean;
|
|
71
74
|
};
|
|
75
|
+
}, {
|
|
72
76
|
params: {
|
|
73
77
|
userId: string;
|
|
74
78
|
};
|
|
75
|
-
}, {
|
|
76
79
|
body: {
|
|
77
80
|
reason: string;
|
|
78
81
|
isPermanent?: boolean | undefined;
|
|
79
82
|
};
|
|
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
|
-
limit: number;
|
|
11
10
|
page: number;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
limit: number;
|
|
12
|
+
status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
13
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
14
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
15
15
|
}, {
|
|
16
|
-
|
|
17
|
-
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
16
|
+
status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
18
17
|
page?: string | undefined;
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
limit?: string | undefined;
|
|
19
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
20
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
query: {
|
|
24
|
-
limit: number;
|
|
25
24
|
page: number;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
limit: number;
|
|
26
|
+
status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
27
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
28
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
29
29
|
};
|
|
30
30
|
}, {
|
|
31
31
|
query: {
|
|
32
|
-
|
|
33
|
-
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
32
|
+
status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
34
33
|
page?: string | undefined;
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
limit?: string | undefined;
|
|
35
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
36
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
37
37
|
};
|
|
38
38
|
}>;
|
|
39
39
|
export declare const getUserPaymentPlanSchema: z.ZodObject<{
|
|
@@ -18,10 +18,10 @@ 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
|
-
limit: number;
|
|
22
21
|
page: number;
|
|
22
|
+
limit: number;
|
|
23
23
|
sortBy: "createdAt" | "actorType" | "action" | "entity";
|
|
24
|
-
sortOrder: "
|
|
24
|
+
sortOrder: "ASC" | "DESC";
|
|
25
25
|
hasDeviceSession: boolean;
|
|
26
26
|
search?: string | undefined;
|
|
27
27
|
firstName?: string | undefined;
|
|
@@ -35,15 +35,15 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
35
35
|
entityId?: string | undefined;
|
|
36
36
|
actorName?: string | undefined;
|
|
37
37
|
}, {
|
|
38
|
-
|
|
38
|
+
page?: string | undefined;
|
|
39
39
|
limit?: string | undefined;
|
|
40
|
+
search?: string | undefined;
|
|
41
|
+
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
42
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
40
43
|
firstName?: string | undefined;
|
|
41
44
|
lastName?: string | undefined;
|
|
42
|
-
page?: string | undefined;
|
|
43
|
-
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
44
45
|
fromDate?: string | undefined;
|
|
45
46
|
toDate?: string | undefined;
|
|
46
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
47
47
|
actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
48
48
|
actorId?: string | undefined;
|
|
49
49
|
action?: string | undefined;
|
|
@@ -52,15 +52,15 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
52
52
|
actorName?: string | undefined;
|
|
53
53
|
hasDeviceSession?: string | undefined;
|
|
54
54
|
}>, any, {
|
|
55
|
-
|
|
55
|
+
page?: string | undefined;
|
|
56
56
|
limit?: string | undefined;
|
|
57
|
+
search?: string | undefined;
|
|
58
|
+
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
59
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
57
60
|
firstName?: string | undefined;
|
|
58
61
|
lastName?: string | undefined;
|
|
59
|
-
page?: string | undefined;
|
|
60
|
-
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
61
62
|
fromDate?: string | undefined;
|
|
62
63
|
toDate?: string | undefined;
|
|
63
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
64
64
|
actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
65
65
|
actorId?: string | undefined;
|
|
66
66
|
action?: string | undefined;
|
|
@@ -73,15 +73,15 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
73
73
|
query?: any;
|
|
74
74
|
}, {
|
|
75
75
|
query: {
|
|
76
|
-
|
|
76
|
+
page?: string | undefined;
|
|
77
77
|
limit?: string | undefined;
|
|
78
|
+
search?: string | undefined;
|
|
79
|
+
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
80
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
78
81
|
firstName?: string | undefined;
|
|
79
82
|
lastName?: string | undefined;
|
|
80
|
-
page?: string | undefined;
|
|
81
|
-
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
82
83
|
fromDate?: string | undefined;
|
|
83
84
|
toDate?: string | undefined;
|
|
84
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
85
85
|
actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
86
86
|
actorId?: string | undefined;
|
|
87
87
|
action?: string | undefined;
|
|
@@ -6,7 +6,7 @@ export { createAppSpecsSchema, updateAppSpecsSchema, listAppSpecsSchema, getActi
|
|
|
6
6
|
export { listUserPaymentPlansSchema, getUserPaymentPlanSchema, } from "./devicePaymentPlan.validations";
|
|
7
7
|
export { unlockDeviceSchema, extendSessionSchema, serialRegex, } from "./devices.validations";
|
|
8
8
|
export { payInstallmentSchema } from "./payinstallment.validations";
|
|
9
|
-
export { updateProfileSchema, requestPhoneChangeSchema, verifyPhoneChangeSchema, deleteAccountSchema, strongPasswordRegex, changePasswordSchema, } from "./account.validations";
|
|
9
|
+
export { updateProfileSchema, requestPhoneChangeSchema, verifyPhoneChangeSchema, deleteAccountSchema, strongPasswordRegex, changePasswordSchema, riderPasswordSchema, registerRiderSchema, } from "./account.validations";
|
|
10
10
|
export { updateAdminSchema, updateRiderSchema, deleteUserSchema, getUserSchema, getUsersSchema, hireAdminSchema, promoteAdminSchema, demoteAdminSchema, fireEmployeeSchema, upgradeToRiderSchema, resetPasswordSchema, } from "./users.admin.validations";
|
|
11
11
|
export { createProductSchema, updateProductSchema, getProductSchema, getProductsSchema, deactivateProductSchema, activateProductSchema, deleteProductSchema, updateStockSchema, } from "./product.validations";
|
|
12
12
|
export { createPricingSchema, updatePricingSchema, getPricingSchema, getPricingsSchema, deletePricingSchema, } from "./pricings.validations";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAppSpecsSchema = exports.activateAppSpecsSchema = exports.getActiveAppSpecsSchema = exports.listAppSpecsSchema = exports.updateAppSpecsSchema = exports.createAppSpecsSchema = exports.exportBansSchema = exports.createSuspensionSchema = exports.createBanSchema = exports.extendSuspensionSchema = exports.revokeSuspensionSchema = exports.revokeBanSchema = exports.reviewAppealSchema = exports.listSuspensionsSchema = exports.listPendingAppealsSchema = exports.listBansSchema = exports.getUserBansSchema = exports.getUserSuspensionsSchema = exports.getSuspensionSchema = exports.getUserRestrictionsSchema = exports.getBanSchema = exports.submitSuspensionAppealSchema = exports.submitBanAppealSchema = exports.deactivateAccountSchema = exports.createRiderSchema = exports.updateRiderProfileSchema = exports.updatePassengerProfileSchema = exports.passengerSignupSchema = exports.viewProfileSchema = exports.getAllUsersSchema = exports.updateUserProfileSchema = exports.getUserByIdSchema = exports.createUserSchema = exports.googleLoginSchema = exports.completePassengerProfileSchema = exports.checkRiderAccountSchema = exports.setRiderPasswordSchema = exports.riderPasswordRegex = exports.passwordRegex = exports.emailRegex = exports.phoneRegex = exports.requestOtpSchema = exports.resendOtpSchema = exports.verifyOtpSchema = exports.registerSchema = exports.refreshTokenSchema = exports.userLoginSchema = exports.forgotPasswordSchema = exports.riderLoginSchema = exports.validate = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.getEventLogSchema = exports.listEventLogsSchema = exports.deletePlanSchema = exports.recordPaymentSchema = exports.listPlansSchema = exports.getUserPlansSchema = exports.getPlanSchema = void 0;
|
|
4
|
+
exports.createPlanSchema = exports.createDeviceSchema = exports.makePermanentSchema = exports.disableDeviceSchema = exports.deleteDeviceSchema = exports.getDevicesSchema = exports.getDeviceSchema = exports.updateDeviceSchema = exports.adminUnlockDeviceSchema = exports.adminLockDeviceSchema = exports.bulkCreateDevicesSchema = exports.checkAvailabilitySchema = exports.deletePricingSchema = exports.getPricingsSchema = exports.getPricingSchema = exports.updatePricingSchema = exports.createPricingSchema = exports.updateStockSchema = exports.deleteProductSchema = exports.activateProductSchema = exports.deactivateProductSchema = exports.getProductsSchema = exports.getProductSchema = exports.updateProductSchema = exports.createProductSchema = exports.resetPasswordSchema = exports.upgradeToRiderSchema = exports.fireEmployeeSchema = exports.demoteAdminSchema = exports.promoteAdminSchema = exports.hireAdminSchema = exports.getUsersSchema = exports.getUserSchema = exports.deleteUserSchema = exports.updateRiderSchema = exports.updateAdminSchema = exports.registerRiderSchema = exports.riderPasswordSchema = exports.changePasswordSchema = exports.strongPasswordRegex = exports.deleteAccountSchema = exports.verifyPhoneChangeSchema = exports.requestPhoneChangeSchema = exports.updateProfileSchema = exports.payInstallmentSchema = exports.serialRegex = exports.extendSessionSchema = exports.unlockDeviceSchema = exports.getUserPaymentPlanSchema = exports.listUserPaymentPlansSchema = void 0;
|
|
5
|
+
exports.getEventLogSchema = exports.listEventLogsSchema = exports.deletePlanSchema = exports.recordPaymentSchema = exports.listPlansSchema = exports.getUserPlansSchema = exports.getPlanSchema = exports.getDevicePlanSchema = exports.limitedUpdateSchema = void 0;
|
|
6
6
|
var validate_validations_1 = require("./validate.validations");
|
|
7
7
|
Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return validate_validations_1.validate; } });
|
|
8
8
|
var auth_validations_1 = require("./auth.validations");
|
|
@@ -82,6 +82,8 @@ Object.defineProperty(exports, "verifyPhoneChangeSchema", { enumerable: true, ge
|
|
|
82
82
|
Object.defineProperty(exports, "deleteAccountSchema", { enumerable: true, get: function () { return account_validations_1.deleteAccountSchema; } });
|
|
83
83
|
Object.defineProperty(exports, "strongPasswordRegex", { enumerable: true, get: function () { return account_validations_1.strongPasswordRegex; } });
|
|
84
84
|
Object.defineProperty(exports, "changePasswordSchema", { enumerable: true, get: function () { return account_validations_1.changePasswordSchema; } });
|
|
85
|
+
Object.defineProperty(exports, "riderPasswordSchema", { enumerable: true, get: function () { return account_validations_1.riderPasswordSchema; } });
|
|
86
|
+
Object.defineProperty(exports, "registerRiderSchema", { enumerable: true, get: function () { return account_validations_1.registerRiderSchema; } });
|
|
85
87
|
var users_admin_validations_1 = require("./users.admin.validations");
|
|
86
88
|
Object.defineProperty(exports, "updateAdminSchema", { enumerable: true, get: function () { return users_admin_validations_1.updateAdminSchema; } });
|
|
87
89
|
Object.defineProperty(exports, "updateRiderSchema", { enumerable: true, get: function () { return users_admin_validations_1.updateRiderSchema; } });
|