vr-commons 1.0.56 → 1.0.57
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/validations/appSpecs.validations.d.ts +18 -18
- package/dist/validations/appeals.validations.d.ts +8 -8
- package/dist/validations/auth.validations.d.ts +8 -8
- package/dist/validations/bans.validations.d.ts +8 -8
- package/dist/validations/devicePaymentPlan.validations.d.ts +55 -0
- package/dist/validations/devicePaymentPlan.validations.js +30 -0
- package/dist/validations/index.d.ts +1 -0
- package/dist/validations/index.js +4 -1
- package/dist/validations/moderation.validations.d.ts +77 -77
- package/dist/validations/profiles.validations.d.ts +74 -74
- package/dist/validations/suspensions.validations.d.ts +8 -8
- package/package.json +2 -2
|
@@ -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;
|
|
790
|
-
|
|
791
|
-
isActive?: "true" | "false" | undefined;
|
|
789
|
+
limit: number;
|
|
792
790
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
793
|
-
sortOrder?: "
|
|
794
|
-
}, {
|
|
791
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
795
792
|
search?: string | undefined;
|
|
796
|
-
limit?: string | undefined;
|
|
797
793
|
isActive?: "true" | "false" | undefined;
|
|
794
|
+
}, {
|
|
798
795
|
page?: string | undefined;
|
|
796
|
+
limit?: string | undefined;
|
|
799
797
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
800
|
-
sortOrder?: "
|
|
798
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
799
|
+
search?: string | 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
|
+
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
807
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
806
808
|
search?: string | undefined;
|
|
807
809
|
isActive?: "true" | "false" | undefined;
|
|
808
|
-
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
809
|
-
sortOrder?: "DESC" | "ASC" | 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;
|
|
817
815
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
818
|
-
sortOrder?: "
|
|
816
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
817
|
+
search?: string | 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
|
}>;
|
|
@@ -96,32 +96,32 @@ export declare const registerSchema: z.ZodObject<{
|
|
|
96
96
|
email: z.ZodOptional<z.ZodString>;
|
|
97
97
|
password: z.ZodString;
|
|
98
98
|
}, "strict", z.ZodTypeAny, {
|
|
99
|
-
phoneNumber: string;
|
|
100
|
-
password: string;
|
|
101
99
|
firstName: string;
|
|
102
100
|
lastName: string;
|
|
103
|
-
email?: string | undefined;
|
|
104
|
-
}, {
|
|
105
101
|
phoneNumber: string;
|
|
106
102
|
password: string;
|
|
103
|
+
email?: string | undefined;
|
|
104
|
+
}, {
|
|
107
105
|
firstName: string;
|
|
108
106
|
lastName: string;
|
|
107
|
+
phoneNumber: string;
|
|
108
|
+
password: string;
|
|
109
109
|
email?: string | undefined;
|
|
110
110
|
}>;
|
|
111
111
|
}, "strip", z.ZodTypeAny, {
|
|
112
112
|
body: {
|
|
113
|
-
phoneNumber: string;
|
|
114
|
-
password: string;
|
|
115
113
|
firstName: string;
|
|
116
114
|
lastName: string;
|
|
115
|
+
phoneNumber: string;
|
|
116
|
+
password: string;
|
|
117
117
|
email?: string | undefined;
|
|
118
118
|
};
|
|
119
119
|
}, {
|
|
120
120
|
body: {
|
|
121
|
-
phoneNumber: string;
|
|
122
|
-
password: string;
|
|
123
121
|
firstName: string;
|
|
124
122
|
lastName: string;
|
|
123
|
+
phoneNumber: string;
|
|
124
|
+
password: string;
|
|
125
125
|
email?: string | undefined;
|
|
126
126
|
};
|
|
127
127
|
}>;
|
|
@@ -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
|
}>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const listUserPaymentPlansSchema: z.ZodObject<{
|
|
3
|
+
query: z.ZodObject<{
|
|
4
|
+
status: z.ZodOptional<z.ZodEnum<["ACTIVE", "COMPLETED", "DEFAULTED", "CANCELLED"]>>;
|
|
5
|
+
page: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, z.ZodNumber>;
|
|
6
|
+
limit: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, z.ZodNumber>;
|
|
7
|
+
sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "nextInstallmentDueAt", "status"]>>;
|
|
8
|
+
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
page: number;
|
|
11
|
+
limit: number;
|
|
12
|
+
status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
13
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
14
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
17
|
+
page?: string | undefined;
|
|
18
|
+
limit?: string | undefined;
|
|
19
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
20
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
query: {
|
|
24
|
+
page: number;
|
|
25
|
+
limit: number;
|
|
26
|
+
status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
27
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
28
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
query: {
|
|
32
|
+
status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
33
|
+
page?: string | undefined;
|
|
34
|
+
limit?: string | undefined;
|
|
35
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
36
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
37
|
+
};
|
|
38
|
+
}>;
|
|
39
|
+
export declare const getUserPaymentPlanSchema: z.ZodObject<{
|
|
40
|
+
params: z.ZodObject<{
|
|
41
|
+
planId: z.ZodString;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
planId: string;
|
|
44
|
+
}, {
|
|
45
|
+
planId: string;
|
|
46
|
+
}>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
params: {
|
|
49
|
+
planId: string;
|
|
50
|
+
};
|
|
51
|
+
}, {
|
|
52
|
+
params: {
|
|
53
|
+
planId: string;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getUserPaymentPlanSchema = exports.listUserPaymentPlansSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const vr_models_1 = require("vr-models");
|
|
6
|
+
const uuidSchema = zod_1.z.string().uuid("Invalid ID format");
|
|
7
|
+
exports.listUserPaymentPlansSchema = zod_1.z.object({
|
|
8
|
+
query: zod_1.z.object({
|
|
9
|
+
status: zod_1.z.enum(vr_models_1.PAYMENT_STATUS).optional(),
|
|
10
|
+
page: zod_1.z
|
|
11
|
+
.string()
|
|
12
|
+
.optional()
|
|
13
|
+
.transform((val) => (val ? parseInt(val) : 1))
|
|
14
|
+
.pipe(zod_1.z.number().min(1, "Page must be at least 1")),
|
|
15
|
+
limit: zod_1.z
|
|
16
|
+
.string()
|
|
17
|
+
.optional()
|
|
18
|
+
.transform((val) => (val ? parseInt(val) : 10))
|
|
19
|
+
.pipe(zod_1.z.number().min(1).max(50, "Limit cannot exceed 50")),
|
|
20
|
+
sortBy: zod_1.z
|
|
21
|
+
.enum(["createdAt", "updatedAt", "nextInstallmentDueAt", "status"])
|
|
22
|
+
.optional(),
|
|
23
|
+
sortOrder: zod_1.z.enum(["ASC", "DESC"]).optional(),
|
|
24
|
+
}),
|
|
25
|
+
});
|
|
26
|
+
exports.getUserPaymentPlanSchema = zod_1.z.object({
|
|
27
|
+
params: zod_1.z.object({
|
|
28
|
+
planId: uuidSchema,
|
|
29
|
+
}),
|
|
30
|
+
});
|
|
@@ -6,3 +6,4 @@ export { submitBanAppealSchema, submitSuspensionAppealSchema, } from "./appeals.
|
|
|
6
6
|
export { getBanSchema, getUserRestrictionsSchema, createBanSchema, } from "./bans.validations";
|
|
7
7
|
export { getSuspensionSchema, getUserSuspensionsSchema, createSuspensionSchema, } from "./suspensions.validations";
|
|
8
8
|
export { createAppSpecsSchema, updateAppSpecsSchema, listAppSpecsSchema, getActiveAppSpecsSchema, activateAppSpecsSchema, getAppSpecsSchema, } from "./appSpecs.validations";
|
|
9
|
+
export { listUserPaymentPlansSchema, getUserPaymentPlanSchema, } from "./devicePaymentPlan.validations";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAppSpecsSchema = exports.activateAppSpecsSchema = exports.getActiveAppSpecsSchema = exports.listAppSpecsSchema = exports.updateAppSpecsSchema = exports.createAppSpecsSchema = exports.createSuspensionSchema = exports.getUserSuspensionsSchema = exports.getSuspensionSchema = exports.createBanSchema = exports.getUserRestrictionsSchema = exports.getBanSchema = exports.submitSuspensionAppealSchema = exports.submitBanAppealSchema = exports.exportBansSchema = exports.extendSuspensionSchema = exports.revokeSuspensionSchema = exports.revokeBanSchema = exports.reviewAppealSchema = exports.listSuspensionsSchema = exports.listPendingAppealsSchema = exports.listBansSchema = exports.updateProfileSchema = exports.deleteAccountSchema = exports.deactivateAccountSchema = exports.changePasswordSchema = exports.createRiderSchema = exports.updateRiderProfileSchema = exports.updatePassengerProfileSchema = exports.passengerSignupSchema = exports.viewProfileSchema = exports.getAllUsersSchema = exports.updateUserProfileSchema = exports.getUserByIdSchema = exports.createUserSchema = exports.resendOtpSchema = exports.verifySchema = exports.confirmSchema = exports.registerSchema = exports.refreshTokenSchema = exports.userLoginSchema = exports.forgotPasswordSchema = exports.riderLoginSchema = exports.validate = void 0;
|
|
3
|
+
exports.getUserPaymentPlanSchema = exports.listUserPaymentPlansSchema = exports.getAppSpecsSchema = exports.activateAppSpecsSchema = exports.getActiveAppSpecsSchema = exports.listAppSpecsSchema = exports.updateAppSpecsSchema = exports.createAppSpecsSchema = exports.createSuspensionSchema = exports.getUserSuspensionsSchema = exports.getSuspensionSchema = exports.createBanSchema = exports.getUserRestrictionsSchema = exports.getBanSchema = exports.submitSuspensionAppealSchema = exports.submitBanAppealSchema = exports.exportBansSchema = exports.extendSuspensionSchema = exports.revokeSuspensionSchema = exports.revokeBanSchema = exports.reviewAppealSchema = exports.listSuspensionsSchema = exports.listPendingAppealsSchema = exports.listBansSchema = exports.updateProfileSchema = exports.deleteAccountSchema = exports.deactivateAccountSchema = exports.changePasswordSchema = exports.createRiderSchema = exports.updateRiderProfileSchema = exports.updatePassengerProfileSchema = exports.passengerSignupSchema = exports.viewProfileSchema = exports.getAllUsersSchema = exports.updateUserProfileSchema = exports.getUserByIdSchema = exports.createUserSchema = exports.resendOtpSchema = exports.verifySchema = exports.confirmSchema = exports.registerSchema = exports.refreshTokenSchema = exports.userLoginSchema = exports.forgotPasswordSchema = exports.riderLoginSchema = exports.validate = void 0;
|
|
4
4
|
var validate_validations_1 = require("./validate.validations");
|
|
5
5
|
Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return validate_validations_1.validate; } });
|
|
6
6
|
var auth_validations_1 = require("./auth.validations");
|
|
@@ -58,3 +58,6 @@ Object.defineProperty(exports, "listAppSpecsSchema", { enumerable: true, get: fu
|
|
|
58
58
|
Object.defineProperty(exports, "getActiveAppSpecsSchema", { enumerable: true, get: function () { return appSpecs_validations_1.getActiveAppSpecsSchema; } });
|
|
59
59
|
Object.defineProperty(exports, "activateAppSpecsSchema", { enumerable: true, get: function () { return appSpecs_validations_1.activateAppSpecsSchema; } });
|
|
60
60
|
Object.defineProperty(exports, "getAppSpecsSchema", { enumerable: true, get: function () { return appSpecs_validations_1.getAppSpecsSchema; } });
|
|
61
|
+
var devicePaymentPlan_validations_1 = require("./devicePaymentPlan.validations");
|
|
62
|
+
Object.defineProperty(exports, "listUserPaymentPlansSchema", { enumerable: true, get: function () { return devicePaymentPlan_validations_1.listUserPaymentPlansSchema; } });
|
|
63
|
+
Object.defineProperty(exports, "getUserPaymentPlanSchema", { enumerable: true, get: function () { return devicePaymentPlan_validations_1.getUserPaymentPlanSchema; } });
|
|
@@ -14,81 +14,81 @@ export declare const listBansSchema: z.ZodObject<{
|
|
|
14
14
|
sortBy: z.ZodOptional<z.ZodEnum<["bannedAt", "createdAt", "reason"]>>;
|
|
15
15
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
limit: number;
|
|
18
17
|
page: number;
|
|
18
|
+
limit: number;
|
|
19
|
+
status?: "active" | "revoked" | undefined;
|
|
20
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
21
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
19
22
|
search?: string | undefined;
|
|
20
23
|
userId?: string | undefined;
|
|
21
24
|
isPermanent?: "true" | "false" | undefined;
|
|
22
25
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
23
|
-
status?: "active" | "revoked" | undefined;
|
|
24
|
-
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
25
26
|
fromDate?: string | undefined;
|
|
26
27
|
toDate?: string | undefined;
|
|
27
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
28
28
|
}, {
|
|
29
|
-
|
|
29
|
+
status?: "active" | "revoked" | undefined;
|
|
30
|
+
page?: string | undefined;
|
|
30
31
|
limit?: string | undefined;
|
|
32
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
33
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
34
|
+
search?: string | undefined;
|
|
31
35
|
userId?: string | undefined;
|
|
32
36
|
isPermanent?: "true" | "false" | undefined;
|
|
33
37
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
34
|
-
status?: "active" | "revoked" | undefined;
|
|
35
|
-
page?: string | undefined;
|
|
36
|
-
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
37
38
|
fromDate?: string | undefined;
|
|
38
39
|
toDate?: string | undefined;
|
|
39
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
40
40
|
}>, {
|
|
41
|
-
limit: number;
|
|
42
41
|
page: number;
|
|
42
|
+
limit: number;
|
|
43
|
+
status?: "active" | "revoked" | undefined;
|
|
44
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
45
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
43
46
|
search?: string | undefined;
|
|
44
47
|
userId?: string | undefined;
|
|
45
48
|
isPermanent?: "true" | "false" | undefined;
|
|
46
49
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
47
|
-
status?: "active" | "revoked" | undefined;
|
|
48
|
-
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
49
50
|
fromDate?: string | undefined;
|
|
50
51
|
toDate?: string | undefined;
|
|
51
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
52
52
|
}, {
|
|
53
|
-
|
|
53
|
+
status?: "active" | "revoked" | undefined;
|
|
54
|
+
page?: string | undefined;
|
|
54
55
|
limit?: string | undefined;
|
|
56
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
57
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
58
|
+
search?: string | undefined;
|
|
55
59
|
userId?: string | undefined;
|
|
56
60
|
isPermanent?: "true" | "false" | undefined;
|
|
57
61
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
58
|
-
status?: "active" | "revoked" | undefined;
|
|
59
|
-
page?: string | undefined;
|
|
60
|
-
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
61
62
|
fromDate?: string | undefined;
|
|
62
63
|
toDate?: string | undefined;
|
|
63
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
64
64
|
}>;
|
|
65
65
|
}, "strip", z.ZodTypeAny, {
|
|
66
66
|
query: {
|
|
67
|
-
limit: number;
|
|
68
67
|
page: number;
|
|
68
|
+
limit: number;
|
|
69
|
+
status?: "active" | "revoked" | undefined;
|
|
70
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
71
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
69
72
|
search?: string | undefined;
|
|
70
73
|
userId?: string | undefined;
|
|
71
74
|
isPermanent?: "true" | "false" | undefined;
|
|
72
75
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
73
|
-
status?: "active" | "revoked" | undefined;
|
|
74
|
-
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
75
76
|
fromDate?: string | undefined;
|
|
76
77
|
toDate?: string | undefined;
|
|
77
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
78
78
|
};
|
|
79
79
|
}, {
|
|
80
80
|
query: {
|
|
81
|
-
|
|
81
|
+
status?: "active" | "revoked" | undefined;
|
|
82
|
+
page?: string | undefined;
|
|
82
83
|
limit?: string | undefined;
|
|
84
|
+
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
85
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
86
|
+
search?: string | undefined;
|
|
83
87
|
userId?: string | undefined;
|
|
84
88
|
isPermanent?: "true" | "false" | undefined;
|
|
85
89
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
86
|
-
status?: "active" | "revoked" | undefined;
|
|
87
|
-
page?: string | undefined;
|
|
88
|
-
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
89
90
|
fromDate?: string | undefined;
|
|
90
91
|
toDate?: string | undefined;
|
|
91
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
92
92
|
};
|
|
93
93
|
}>;
|
|
94
94
|
export declare const listSuspensionsSchema: z.ZodObject<{
|
|
@@ -105,75 +105,75 @@ export declare const listSuspensionsSchema: z.ZodObject<{
|
|
|
105
105
|
sortBy: z.ZodOptional<z.ZodEnum<["startedAt", "endsAt", "createdAt", "reason"]>>;
|
|
106
106
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
107
107
|
}, "strip", z.ZodTypeAny, {
|
|
108
|
-
limit: number;
|
|
109
108
|
page: number;
|
|
109
|
+
limit: number;
|
|
110
|
+
status?: "active" | "revoked" | "expired" | undefined;
|
|
111
|
+
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
112
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
110
113
|
search?: string | undefined;
|
|
111
114
|
userId?: string | undefined;
|
|
112
115
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
113
|
-
status?: "active" | "revoked" | "expired" | undefined;
|
|
114
|
-
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
115
116
|
fromDate?: string | undefined;
|
|
116
117
|
toDate?: string | undefined;
|
|
117
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
118
118
|
}, {
|
|
119
|
-
search?: string | undefined;
|
|
120
|
-
limit?: string | undefined;
|
|
121
|
-
userId?: string | undefined;
|
|
122
|
-
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
123
119
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
124
120
|
page?: string | undefined;
|
|
121
|
+
limit?: string | undefined;
|
|
125
122
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
123
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
124
|
+
search?: string | undefined;
|
|
125
|
+
userId?: string | undefined;
|
|
126
|
+
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
126
127
|
fromDate?: string | undefined;
|
|
127
128
|
toDate?: string | undefined;
|
|
128
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
129
129
|
}>, {
|
|
130
|
-
limit: number;
|
|
131
130
|
page: number;
|
|
131
|
+
limit: number;
|
|
132
|
+
status?: "active" | "revoked" | "expired" | undefined;
|
|
133
|
+
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
134
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
132
135
|
search?: string | undefined;
|
|
133
136
|
userId?: string | undefined;
|
|
134
137
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
135
|
-
status?: "active" | "revoked" | "expired" | undefined;
|
|
136
|
-
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
137
138
|
fromDate?: string | undefined;
|
|
138
139
|
toDate?: string | undefined;
|
|
139
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
140
140
|
}, {
|
|
141
|
-
search?: string | undefined;
|
|
142
|
-
limit?: string | undefined;
|
|
143
|
-
userId?: string | undefined;
|
|
144
|
-
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
145
141
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
146
142
|
page?: string | undefined;
|
|
143
|
+
limit?: string | undefined;
|
|
147
144
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
145
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
146
|
+
search?: string | undefined;
|
|
147
|
+
userId?: string | undefined;
|
|
148
|
+
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
148
149
|
fromDate?: string | undefined;
|
|
149
150
|
toDate?: string | undefined;
|
|
150
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
151
151
|
}>;
|
|
152
152
|
}, "strip", z.ZodTypeAny, {
|
|
153
153
|
query: {
|
|
154
|
-
limit: number;
|
|
155
154
|
page: number;
|
|
155
|
+
limit: number;
|
|
156
|
+
status?: "active" | "revoked" | "expired" | undefined;
|
|
157
|
+
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
158
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
156
159
|
search?: string | undefined;
|
|
157
160
|
userId?: string | undefined;
|
|
158
161
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
159
|
-
status?: "active" | "revoked" | "expired" | undefined;
|
|
160
|
-
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
161
162
|
fromDate?: string | undefined;
|
|
162
163
|
toDate?: string | undefined;
|
|
163
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
164
164
|
};
|
|
165
165
|
}, {
|
|
166
166
|
query: {
|
|
167
|
-
search?: string | undefined;
|
|
168
|
-
limit?: string | undefined;
|
|
169
|
-
userId?: string | undefined;
|
|
170
|
-
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
171
167
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
172
168
|
page?: string | undefined;
|
|
169
|
+
limit?: string | undefined;
|
|
173
170
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
171
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
172
|
+
search?: string | undefined;
|
|
173
|
+
userId?: string | undefined;
|
|
174
|
+
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
174
175
|
fromDate?: string | undefined;
|
|
175
176
|
toDate?: string | undefined;
|
|
176
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
177
177
|
};
|
|
178
178
|
}>;
|
|
179
179
|
export declare const revokeBanSchema: z.ZodObject<{
|
|
@@ -192,19 +192,19 @@ export declare const revokeBanSchema: z.ZodObject<{
|
|
|
192
192
|
revocationReason?: string | undefined;
|
|
193
193
|
}>;
|
|
194
194
|
}, "strip", z.ZodTypeAny, {
|
|
195
|
-
body: {
|
|
196
|
-
revocationReason?: string | undefined;
|
|
197
|
-
};
|
|
198
195
|
params: {
|
|
199
196
|
banId: string;
|
|
200
197
|
};
|
|
201
|
-
}, {
|
|
202
198
|
body: {
|
|
203
199
|
revocationReason?: string | undefined;
|
|
204
200
|
};
|
|
201
|
+
}, {
|
|
205
202
|
params: {
|
|
206
203
|
banId: string;
|
|
207
204
|
};
|
|
205
|
+
body: {
|
|
206
|
+
revocationReason?: string | undefined;
|
|
207
|
+
};
|
|
208
208
|
}>;
|
|
209
209
|
export declare const revokeSuspensionSchema: z.ZodObject<{
|
|
210
210
|
params: z.ZodObject<{
|
|
@@ -222,19 +222,19 @@ export declare const revokeSuspensionSchema: z.ZodObject<{
|
|
|
222
222
|
revocationReason?: string | undefined;
|
|
223
223
|
}>;
|
|
224
224
|
}, "strip", z.ZodTypeAny, {
|
|
225
|
-
body: {
|
|
226
|
-
revocationReason?: string | undefined;
|
|
227
|
-
};
|
|
228
225
|
params: {
|
|
229
226
|
suspensionId: string;
|
|
230
227
|
};
|
|
231
|
-
}, {
|
|
232
228
|
body: {
|
|
233
229
|
revocationReason?: string | undefined;
|
|
234
230
|
};
|
|
231
|
+
}, {
|
|
235
232
|
params: {
|
|
236
233
|
suspensionId: string;
|
|
237
234
|
};
|
|
235
|
+
body: {
|
|
236
|
+
revocationReason?: string | undefined;
|
|
237
|
+
};
|
|
238
238
|
}>;
|
|
239
239
|
export declare const extendSuspensionSchema: z.ZodObject<{
|
|
240
240
|
params: z.ZodObject<{
|
|
@@ -261,21 +261,21 @@ export declare const extendSuspensionSchema: z.ZodObject<{
|
|
|
261
261
|
extensionReason?: string | undefined;
|
|
262
262
|
}>;
|
|
263
263
|
}, "strip", z.ZodTypeAny, {
|
|
264
|
+
params: {
|
|
265
|
+
suspensionId: string;
|
|
266
|
+
};
|
|
264
267
|
body: {
|
|
265
268
|
newEndDate: string;
|
|
266
269
|
extensionReason?: string | undefined;
|
|
267
270
|
};
|
|
271
|
+
}, {
|
|
268
272
|
params: {
|
|
269
273
|
suspensionId: string;
|
|
270
274
|
};
|
|
271
|
-
}, {
|
|
272
275
|
body: {
|
|
273
276
|
newEndDate: string;
|
|
274
277
|
extensionReason?: string | undefined;
|
|
275
278
|
};
|
|
276
|
-
params: {
|
|
277
|
-
suspensionId: string;
|
|
278
|
-
};
|
|
279
279
|
}>;
|
|
280
280
|
export declare const listPendingAppealsSchema: z.ZodObject<{
|
|
281
281
|
query: z.ZodEffects<z.ZodObject<{
|
|
@@ -286,34 +286,34 @@ export declare const listPendingAppealsSchema: z.ZodObject<{
|
|
|
286
286
|
fromDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
287
287
|
toDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
288
288
|
}, "strip", z.ZodTypeAny, {
|
|
289
|
-
limit: number;
|
|
290
289
|
page: number;
|
|
290
|
+
limit: number;
|
|
291
291
|
type?: "ban" | "suspension" | undefined;
|
|
292
292
|
fromDate?: string | undefined;
|
|
293
293
|
toDate?: string | undefined;
|
|
294
294
|
}, {
|
|
295
295
|
type?: "ban" | "suspension" | undefined;
|
|
296
|
-
limit?: string | undefined;
|
|
297
296
|
page?: string | undefined;
|
|
297
|
+
limit?: string | undefined;
|
|
298
298
|
fromDate?: string | undefined;
|
|
299
299
|
toDate?: string | undefined;
|
|
300
300
|
}>, {
|
|
301
|
-
limit: number;
|
|
302
301
|
page: number;
|
|
302
|
+
limit: number;
|
|
303
303
|
type?: "ban" | "suspension" | undefined;
|
|
304
304
|
fromDate?: string | undefined;
|
|
305
305
|
toDate?: string | undefined;
|
|
306
306
|
}, {
|
|
307
307
|
type?: "ban" | "suspension" | undefined;
|
|
308
|
-
limit?: string | undefined;
|
|
309
308
|
page?: string | undefined;
|
|
309
|
+
limit?: string | undefined;
|
|
310
310
|
fromDate?: string | undefined;
|
|
311
311
|
toDate?: string | undefined;
|
|
312
312
|
}>;
|
|
313
313
|
}, "strip", z.ZodTypeAny, {
|
|
314
314
|
query: {
|
|
315
|
-
limit: number;
|
|
316
315
|
page: number;
|
|
316
|
+
limit: number;
|
|
317
317
|
type?: "ban" | "suspension" | undefined;
|
|
318
318
|
fromDate?: string | undefined;
|
|
319
319
|
toDate?: string | undefined;
|
|
@@ -321,8 +321,8 @@ export declare const listPendingAppealsSchema: z.ZodObject<{
|
|
|
321
321
|
}, {
|
|
322
322
|
query: {
|
|
323
323
|
type?: "ban" | "suspension" | undefined;
|
|
324
|
-
limit?: string | undefined;
|
|
325
324
|
page?: string | undefined;
|
|
325
|
+
limit?: string | undefined;
|
|
326
326
|
fromDate?: string | undefined;
|
|
327
327
|
toDate?: string | undefined;
|
|
328
328
|
};
|
|
@@ -349,23 +349,23 @@ export declare const reviewAppealSchema: z.ZodObject<{
|
|
|
349
349
|
adminNotes?: string | undefined;
|
|
350
350
|
}>;
|
|
351
351
|
}, "strip", z.ZodTypeAny, {
|
|
352
|
-
body: {
|
|
353
|
-
appealStatus: "approved" | "rejected";
|
|
354
|
-
adminNotes?: string | undefined;
|
|
355
|
-
};
|
|
356
352
|
params: {
|
|
357
353
|
banId?: string | undefined;
|
|
358
354
|
suspensionId?: string | undefined;
|
|
359
355
|
};
|
|
360
|
-
}, {
|
|
361
356
|
body: {
|
|
362
357
|
appealStatus: "approved" | "rejected";
|
|
363
358
|
adminNotes?: string | undefined;
|
|
364
359
|
};
|
|
360
|
+
}, {
|
|
365
361
|
params: {
|
|
366
362
|
banId?: string | undefined;
|
|
367
363
|
suspensionId?: string | undefined;
|
|
368
364
|
};
|
|
365
|
+
body: {
|
|
366
|
+
appealStatus: "approved" | "rejected";
|
|
367
|
+
adminNotes?: string | undefined;
|
|
368
|
+
};
|
|
369
369
|
}>;
|
|
370
370
|
export declare const exportBansSchema: z.ZodObject<{
|
|
371
371
|
query: z.ZodEffects<z.ZodObject<{
|
|
@@ -18,22 +18,22 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
18
18
|
firstName: string;
|
|
19
19
|
lastName: string;
|
|
20
20
|
phoneNumber: string;
|
|
21
|
-
nationalId: string;
|
|
22
21
|
password: string;
|
|
23
|
-
|
|
22
|
+
nationalId: string;
|
|
23
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
24
|
+
jacketId?: string | null | undefined;
|
|
24
25
|
email?: string | null | undefined;
|
|
25
26
|
plateNumber?: string | null | undefined;
|
|
26
|
-
jacketId?: string | null | undefined;
|
|
27
27
|
}, {
|
|
28
28
|
firstName: string;
|
|
29
29
|
lastName: string;
|
|
30
30
|
phoneNumber: string;
|
|
31
|
-
nationalId: string;
|
|
32
31
|
password: string;
|
|
33
|
-
|
|
32
|
+
nationalId: string;
|
|
33
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
34
|
+
jacketId?: string | null | undefined;
|
|
34
35
|
email?: string | null | undefined;
|
|
35
36
|
plateNumber?: string | null | undefined;
|
|
36
|
-
jacketId?: string | null | undefined;
|
|
37
37
|
}>;
|
|
38
38
|
headers: z.ZodObject<{
|
|
39
39
|
authorization: z.ZodString;
|
|
@@ -47,12 +47,12 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
47
47
|
firstName: string;
|
|
48
48
|
lastName: string;
|
|
49
49
|
phoneNumber: string;
|
|
50
|
-
nationalId: string;
|
|
51
50
|
password: string;
|
|
52
|
-
|
|
51
|
+
nationalId: string;
|
|
52
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
53
|
+
jacketId?: string | null | undefined;
|
|
53
54
|
email?: string | null | undefined;
|
|
54
55
|
plateNumber?: string | null | undefined;
|
|
55
|
-
jacketId?: string | null | undefined;
|
|
56
56
|
};
|
|
57
57
|
headers: {
|
|
58
58
|
authorization: string;
|
|
@@ -62,12 +62,12 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
62
62
|
firstName: string;
|
|
63
63
|
lastName: string;
|
|
64
64
|
phoneNumber: string;
|
|
65
|
-
nationalId: string;
|
|
66
65
|
password: string;
|
|
67
|
-
|
|
66
|
+
nationalId: string;
|
|
67
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
68
|
+
jacketId?: string | null | undefined;
|
|
68
69
|
email?: string | null | undefined;
|
|
69
70
|
plateNumber?: string | null | undefined;
|
|
70
|
-
jacketId?: string | null | undefined;
|
|
71
71
|
};
|
|
72
72
|
headers: {
|
|
73
73
|
authorization: string;
|
|
@@ -129,8 +129,8 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
129
129
|
password?: string | undefined;
|
|
130
130
|
plateNumber?: string | null | undefined;
|
|
131
131
|
isActive?: boolean | undefined;
|
|
132
|
-
isSuspended?: boolean | undefined;
|
|
133
132
|
isDeactivated?: boolean | undefined;
|
|
133
|
+
isSuspended?: boolean | undefined;
|
|
134
134
|
}, {
|
|
135
135
|
firstName?: string | undefined;
|
|
136
136
|
lastName?: string | undefined;
|
|
@@ -139,8 +139,8 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
139
139
|
password?: string | undefined;
|
|
140
140
|
plateNumber?: string | null | undefined;
|
|
141
141
|
isActive?: boolean | undefined;
|
|
142
|
-
isSuspended?: boolean | undefined;
|
|
143
142
|
isDeactivated?: boolean | undefined;
|
|
143
|
+
isSuspended?: boolean | undefined;
|
|
144
144
|
}>, {
|
|
145
145
|
firstName?: string | undefined;
|
|
146
146
|
lastName?: string | undefined;
|
|
@@ -149,8 +149,8 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
149
149
|
password?: string | undefined;
|
|
150
150
|
plateNumber?: string | null | undefined;
|
|
151
151
|
isActive?: boolean | undefined;
|
|
152
|
-
isSuspended?: boolean | undefined;
|
|
153
152
|
isDeactivated?: boolean | undefined;
|
|
153
|
+
isSuspended?: boolean | undefined;
|
|
154
154
|
}, {
|
|
155
155
|
firstName?: string | undefined;
|
|
156
156
|
lastName?: string | undefined;
|
|
@@ -159,8 +159,8 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
159
159
|
password?: string | undefined;
|
|
160
160
|
plateNumber?: string | null | undefined;
|
|
161
161
|
isActive?: boolean | undefined;
|
|
162
|
-
isSuspended?: boolean | undefined;
|
|
163
162
|
isDeactivated?: boolean | undefined;
|
|
163
|
+
isSuspended?: boolean | undefined;
|
|
164
164
|
}>;
|
|
165
165
|
headers: z.ZodObject<{
|
|
166
166
|
authorization: z.ZodString;
|
|
@@ -181,8 +181,8 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
181
181
|
password?: string | undefined;
|
|
182
182
|
plateNumber?: string | null | undefined;
|
|
183
183
|
isActive?: boolean | undefined;
|
|
184
|
-
isSuspended?: boolean | undefined;
|
|
185
184
|
isDeactivated?: boolean | undefined;
|
|
185
|
+
isSuspended?: boolean | undefined;
|
|
186
186
|
};
|
|
187
187
|
headers: {
|
|
188
188
|
authorization: string;
|
|
@@ -199,8 +199,8 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
199
199
|
password?: string | undefined;
|
|
200
200
|
plateNumber?: string | null | undefined;
|
|
201
201
|
isActive?: boolean | undefined;
|
|
202
|
-
isSuspended?: boolean | undefined;
|
|
203
202
|
isDeactivated?: boolean | undefined;
|
|
203
|
+
isSuspended?: boolean | undefined;
|
|
204
204
|
};
|
|
205
205
|
headers: {
|
|
206
206
|
authorization: string;
|
|
@@ -220,29 +220,29 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
220
220
|
sortBy: z.ZodDefault<z.ZodEnum<["firstName", "lastLoginAt", "createdAt"]>>;
|
|
221
221
|
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
222
222
|
}, "strip", z.ZodTypeAny, {
|
|
223
|
-
sortBy: "
|
|
223
|
+
sortBy: "createdAt" | "firstName" | "lastLoginAt";
|
|
224
224
|
order: "asc" | "desc";
|
|
225
|
-
role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
|
|
226
|
-
isActive?: boolean | undefined;
|
|
227
|
-
isSuspended?: boolean | undefined;
|
|
228
225
|
page?: number | undefined;
|
|
229
226
|
limit?: number | undefined;
|
|
230
|
-
isBanned?: boolean | undefined;
|
|
231
227
|
search?: string | undefined;
|
|
228
|
+
isActive?: boolean | undefined;
|
|
229
|
+
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
230
|
+
isBanned?: boolean | undefined;
|
|
231
|
+
isSuspended?: boolean | undefined;
|
|
232
232
|
startDate?: string | undefined;
|
|
233
233
|
endDate?: string | undefined;
|
|
234
234
|
}, {
|
|
235
|
-
role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
|
|
236
|
-
isActive?: "true" | "false" | undefined;
|
|
237
|
-
isSuspended?: "true" | "false" | undefined;
|
|
238
235
|
page?: string | undefined;
|
|
239
236
|
limit?: string | undefined;
|
|
240
|
-
|
|
237
|
+
sortBy?: "createdAt" | "firstName" | "lastLoginAt" | undefined;
|
|
241
238
|
search?: string | undefined;
|
|
239
|
+
order?: "asc" | "desc" | undefined;
|
|
240
|
+
isActive?: "true" | "false" | undefined;
|
|
241
|
+
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
242
|
+
isBanned?: "true" | "false" | undefined;
|
|
243
|
+
isSuspended?: "true" | "false" | undefined;
|
|
242
244
|
startDate?: string | undefined;
|
|
243
245
|
endDate?: string | undefined;
|
|
244
|
-
sortBy?: "firstName" | "lastLoginAt" | "createdAt" | undefined;
|
|
245
|
-
order?: "asc" | "desc" | undefined;
|
|
246
246
|
}>;
|
|
247
247
|
headers: z.ZodObject<{
|
|
248
248
|
authorization: z.ZodString;
|
|
@@ -252,38 +252,38 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
252
252
|
authorization: string;
|
|
253
253
|
}>;
|
|
254
254
|
}, "strip", z.ZodTypeAny, {
|
|
255
|
-
headers: {
|
|
256
|
-
authorization: string;
|
|
257
|
-
};
|
|
258
255
|
query: {
|
|
259
|
-
sortBy: "
|
|
256
|
+
sortBy: "createdAt" | "firstName" | "lastLoginAt";
|
|
260
257
|
order: "asc" | "desc";
|
|
261
|
-
role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
|
|
262
|
-
isActive?: boolean | undefined;
|
|
263
|
-
isSuspended?: boolean | undefined;
|
|
264
258
|
page?: number | undefined;
|
|
265
259
|
limit?: number | undefined;
|
|
266
|
-
isBanned?: boolean | undefined;
|
|
267
260
|
search?: string | undefined;
|
|
261
|
+
isActive?: boolean | undefined;
|
|
262
|
+
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
263
|
+
isBanned?: boolean | undefined;
|
|
264
|
+
isSuspended?: boolean | undefined;
|
|
268
265
|
startDate?: string | undefined;
|
|
269
266
|
endDate?: string | undefined;
|
|
270
267
|
};
|
|
271
|
-
}, {
|
|
272
268
|
headers: {
|
|
273
269
|
authorization: string;
|
|
274
270
|
};
|
|
271
|
+
}, {
|
|
275
272
|
query: {
|
|
276
|
-
role?: "AGENT" | "RIDER" | "PASSENGER" | "ADMIN" | "SUPER_ADMIN" | undefined;
|
|
277
|
-
isActive?: "true" | "false" | undefined;
|
|
278
|
-
isSuspended?: "true" | "false" | undefined;
|
|
279
273
|
page?: string | undefined;
|
|
280
274
|
limit?: string | undefined;
|
|
281
|
-
|
|
275
|
+
sortBy?: "createdAt" | "firstName" | "lastLoginAt" | undefined;
|
|
282
276
|
search?: string | undefined;
|
|
277
|
+
order?: "asc" | "desc" | undefined;
|
|
278
|
+
isActive?: "true" | "false" | undefined;
|
|
279
|
+
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
280
|
+
isBanned?: "true" | "false" | undefined;
|
|
281
|
+
isSuspended?: "true" | "false" | undefined;
|
|
283
282
|
startDate?: string | undefined;
|
|
284
283
|
endDate?: string | undefined;
|
|
285
|
-
|
|
286
|
-
|
|
284
|
+
};
|
|
285
|
+
headers: {
|
|
286
|
+
authorization: string;
|
|
287
287
|
};
|
|
288
288
|
}>;
|
|
289
289
|
export declare const viewProfileSchema: z.ZodObject<{
|
|
@@ -302,15 +302,15 @@ export declare const viewProfileSchema: z.ZodObject<{
|
|
|
302
302
|
authorization: string;
|
|
303
303
|
};
|
|
304
304
|
params?: {} | undefined;
|
|
305
|
-
body?: {} | undefined;
|
|
306
305
|
query?: {} | undefined;
|
|
306
|
+
body?: {} | undefined;
|
|
307
307
|
}, {
|
|
308
308
|
headers: {
|
|
309
309
|
authorization: string;
|
|
310
310
|
};
|
|
311
311
|
params?: {} | undefined;
|
|
312
|
-
body?: {} | undefined;
|
|
313
312
|
query?: {} | undefined;
|
|
313
|
+
body?: {} | undefined;
|
|
314
314
|
}>;
|
|
315
315
|
export declare const passengerSignupSchema: z.ZodObject<{
|
|
316
316
|
body: z.ZodObject<{
|
|
@@ -327,19 +327,19 @@ export declare const passengerSignupSchema: z.ZodObject<{
|
|
|
327
327
|
lastName: string;
|
|
328
328
|
phoneNumber: string;
|
|
329
329
|
nationalId: string;
|
|
330
|
+
jacketId?: string | undefined;
|
|
330
331
|
email?: string | null | undefined;
|
|
331
332
|
password?: string | null | undefined;
|
|
332
333
|
plateNumber?: string | null | undefined;
|
|
333
|
-
jacketId?: string | undefined;
|
|
334
334
|
}, {
|
|
335
335
|
firstName: string;
|
|
336
336
|
lastName: string;
|
|
337
337
|
phoneNumber: string;
|
|
338
338
|
nationalId: string;
|
|
339
|
+
jacketId?: string | undefined;
|
|
339
340
|
email?: string | null | undefined;
|
|
340
341
|
password?: string | null | undefined;
|
|
341
342
|
plateNumber?: string | null | undefined;
|
|
342
|
-
jacketId?: string | undefined;
|
|
343
343
|
}>;
|
|
344
344
|
headers: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
345
345
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -348,10 +348,10 @@ export declare const passengerSignupSchema: z.ZodObject<{
|
|
|
348
348
|
lastName: string;
|
|
349
349
|
phoneNumber: string;
|
|
350
350
|
nationalId: string;
|
|
351
|
+
jacketId?: string | undefined;
|
|
351
352
|
email?: string | null | undefined;
|
|
352
353
|
password?: string | null | undefined;
|
|
353
354
|
plateNumber?: string | null | undefined;
|
|
354
|
-
jacketId?: string | undefined;
|
|
355
355
|
};
|
|
356
356
|
headers?: {} | undefined;
|
|
357
357
|
}, {
|
|
@@ -360,10 +360,10 @@ export declare const passengerSignupSchema: z.ZodObject<{
|
|
|
360
360
|
lastName: string;
|
|
361
361
|
phoneNumber: string;
|
|
362
362
|
nationalId: string;
|
|
363
|
+
jacketId?: string | undefined;
|
|
363
364
|
email?: string | null | undefined;
|
|
364
365
|
password?: string | null | undefined;
|
|
365
366
|
plateNumber?: string | null | undefined;
|
|
366
|
-
jacketId?: string | undefined;
|
|
367
367
|
};
|
|
368
368
|
headers?: {} | undefined;
|
|
369
369
|
}>;
|
|
@@ -423,16 +423,16 @@ export declare const createRiderSchema: z.ZodObject<{
|
|
|
423
423
|
firstName: string;
|
|
424
424
|
lastName: string;
|
|
425
425
|
phoneNumber: string;
|
|
426
|
-
nationalId: string;
|
|
427
|
-
plateNumber: string;
|
|
428
426
|
jacketId: string;
|
|
427
|
+
plateNumber: string;
|
|
428
|
+
nationalId: string;
|
|
429
429
|
}, {
|
|
430
430
|
firstName: string;
|
|
431
431
|
lastName: string;
|
|
432
432
|
phoneNumber: string;
|
|
433
|
-
nationalId: string;
|
|
434
|
-
plateNumber: string;
|
|
435
433
|
jacketId: string;
|
|
434
|
+
plateNumber: string;
|
|
435
|
+
nationalId: string;
|
|
436
436
|
}>;
|
|
437
437
|
params: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
438
438
|
query: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
@@ -441,9 +441,9 @@ export declare const createRiderSchema: z.ZodObject<{
|
|
|
441
441
|
firstName: string;
|
|
442
442
|
lastName: string;
|
|
443
443
|
phoneNumber: string;
|
|
444
|
-
nationalId: string;
|
|
445
|
-
plateNumber: string;
|
|
446
444
|
jacketId: string;
|
|
445
|
+
plateNumber: string;
|
|
446
|
+
nationalId: string;
|
|
447
447
|
};
|
|
448
448
|
params?: {} | undefined;
|
|
449
449
|
query?: {} | undefined;
|
|
@@ -452,9 +452,9 @@ export declare const createRiderSchema: z.ZodObject<{
|
|
|
452
452
|
firstName: string;
|
|
453
453
|
lastName: string;
|
|
454
454
|
phoneNumber: string;
|
|
455
|
-
nationalId: string;
|
|
456
|
-
plateNumber: string;
|
|
457
455
|
jacketId: string;
|
|
456
|
+
plateNumber: string;
|
|
457
|
+
nationalId: string;
|
|
458
458
|
};
|
|
459
459
|
params?: {} | undefined;
|
|
460
460
|
query?: {} | undefined;
|
|
@@ -478,30 +478,30 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
|
478
478
|
firstName: string;
|
|
479
479
|
lastName: string;
|
|
480
480
|
phoneNumber: string;
|
|
481
|
-
nationalId: string;
|
|
482
|
-
plateNumber: string;
|
|
483
481
|
jacketId: string;
|
|
482
|
+
plateNumber: string;
|
|
483
|
+
nationalId: string;
|
|
484
484
|
}, {
|
|
485
485
|
firstName: string;
|
|
486
486
|
lastName: string;
|
|
487
487
|
phoneNumber: string;
|
|
488
|
-
nationalId: string;
|
|
489
|
-
plateNumber: string;
|
|
490
488
|
jacketId: string;
|
|
489
|
+
plateNumber: string;
|
|
490
|
+
nationalId: string;
|
|
491
491
|
}>, {
|
|
492
492
|
firstName: string;
|
|
493
493
|
lastName: string;
|
|
494
494
|
phoneNumber: string;
|
|
495
|
-
nationalId: string;
|
|
496
|
-
plateNumber: string;
|
|
497
495
|
jacketId: string;
|
|
496
|
+
plateNumber: string;
|
|
497
|
+
nationalId: string;
|
|
498
498
|
}, {
|
|
499
499
|
firstName: string;
|
|
500
500
|
lastName: string;
|
|
501
501
|
phoneNumber: string;
|
|
502
|
-
nationalId: string;
|
|
503
|
-
plateNumber: string;
|
|
504
502
|
jacketId: string;
|
|
503
|
+
plateNumber: string;
|
|
504
|
+
nationalId: string;
|
|
505
505
|
}>;
|
|
506
506
|
query: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
507
507
|
headers: z.ZodObject<{
|
|
@@ -519,9 +519,9 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
|
519
519
|
firstName: string;
|
|
520
520
|
lastName: string;
|
|
521
521
|
phoneNumber: string;
|
|
522
|
-
nationalId: string;
|
|
523
|
-
plateNumber: string;
|
|
524
522
|
jacketId: string;
|
|
523
|
+
plateNumber: string;
|
|
524
|
+
nationalId: string;
|
|
525
525
|
};
|
|
526
526
|
headers: {
|
|
527
527
|
authorization: string;
|
|
@@ -535,9 +535,9 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
|
|
|
535
535
|
firstName: string;
|
|
536
536
|
lastName: string;
|
|
537
537
|
phoneNumber: string;
|
|
538
|
-
nationalId: string;
|
|
539
|
-
plateNumber: string;
|
|
540
538
|
jacketId: string;
|
|
539
|
+
plateNumber: string;
|
|
540
|
+
nationalId: string;
|
|
541
541
|
};
|
|
542
542
|
headers: {
|
|
543
543
|
authorization: string;
|
|
@@ -669,30 +669,30 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
669
669
|
firstName?: string | undefined;
|
|
670
670
|
lastName?: string | undefined;
|
|
671
671
|
phoneNumber?: string | undefined;
|
|
672
|
-
nationalId?: string | undefined;
|
|
673
672
|
email?: string | undefined;
|
|
673
|
+
nationalId?: string | undefined;
|
|
674
674
|
}, {
|
|
675
675
|
firstName?: string | undefined;
|
|
676
676
|
lastName?: string | undefined;
|
|
677
677
|
phoneNumber?: string | undefined;
|
|
678
|
-
nationalId?: string | undefined;
|
|
679
678
|
email?: string | undefined;
|
|
679
|
+
nationalId?: string | undefined;
|
|
680
680
|
}>;
|
|
681
681
|
}, "strip", z.ZodTypeAny, {
|
|
682
682
|
body: {
|
|
683
683
|
firstName?: string | undefined;
|
|
684
684
|
lastName?: string | undefined;
|
|
685
685
|
phoneNumber?: string | undefined;
|
|
686
|
-
nationalId?: string | undefined;
|
|
687
686
|
email?: string | undefined;
|
|
687
|
+
nationalId?: string | undefined;
|
|
688
688
|
};
|
|
689
689
|
}, {
|
|
690
690
|
body: {
|
|
691
691
|
firstName?: string | undefined;
|
|
692
692
|
lastName?: string | undefined;
|
|
693
693
|
phoneNumber?: string | undefined;
|
|
694
|
-
nationalId?: string | undefined;
|
|
695
694
|
email?: string | undefined;
|
|
695
|
+
nationalId?: string | undefined;
|
|
696
696
|
};
|
|
697
697
|
}>;
|
|
698
698
|
export type CreateUserInput = z.infer<typeof createUserSchema>;
|
|
@@ -35,21 +35,21 @@ export declare const getUserSuspensionsSchema: z.ZodObject<{
|
|
|
35
35
|
includeResolved?: "true" | "false" | undefined;
|
|
36
36
|
}>;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
params: {
|
|
39
|
+
userId: string;
|
|
40
|
+
};
|
|
38
41
|
query: {
|
|
39
42
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
40
43
|
includeResolved?: "true" | "false" | undefined;
|
|
41
44
|
};
|
|
45
|
+
}, {
|
|
42
46
|
params: {
|
|
43
47
|
userId: string;
|
|
44
48
|
};
|
|
45
|
-
}, {
|
|
46
49
|
query: {
|
|
47
50
|
status?: "active" | "revoked" | "expired" | undefined;
|
|
48
51
|
includeResolved?: "true" | "false" | undefined;
|
|
49
52
|
};
|
|
50
|
-
params: {
|
|
51
|
-
userId: string;
|
|
52
|
-
};
|
|
53
53
|
}>;
|
|
54
54
|
export declare const createSuspensionSchema: z.ZodObject<{
|
|
55
55
|
params: z.ZodObject<{
|
|
@@ -70,19 +70,19 @@ export declare const createSuspensionSchema: z.ZodObject<{
|
|
|
70
70
|
endsAt: string;
|
|
71
71
|
}>;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
params: {
|
|
74
|
+
userId: string;
|
|
75
|
+
};
|
|
73
76
|
body: {
|
|
74
77
|
reason: string;
|
|
75
78
|
endsAt: string;
|
|
76
79
|
};
|
|
80
|
+
}, {
|
|
77
81
|
params: {
|
|
78
82
|
userId: string;
|
|
79
83
|
};
|
|
80
|
-
}, {
|
|
81
84
|
body: {
|
|
82
85
|
reason: string;
|
|
83
86
|
endsAt: string;
|
|
84
87
|
};
|
|
85
|
-
params: {
|
|
86
|
-
userId: string;
|
|
87
|
-
};
|
|
88
88
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vr-commons",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.57",
|
|
4
4
|
"description": "Shared functions package",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"date-fns": "^4.1.0",
|
|
101
101
|
"rimraf": "^5.0.5",
|
|
102
102
|
"typescript": "^5.3.3",
|
|
103
|
-
"vr-models": "^1.0.
|
|
103
|
+
"vr-models": "^1.0.39",
|
|
104
104
|
"zod": "^3.25.20"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|