vr-commons 1.0.95 → 1.0.97
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/admin.device.utils.d.ts +59 -0
- package/dist/utils/admin.device.utils.js +231 -0
- package/dist/utils/admin.devicePayment.utils.d.ts +46 -0
- package/dist/utils/admin.devicePayment.utils.js +206 -0
- package/dist/utils/index.d.ts +3 -1
- package/dist/utils/index.js +5 -1
- package/dist/utils/types.d.ts +7 -0
- package/dist/validations/admin.devicePayment.validations.d.ts +270 -0
- package/dist/validations/admin.devicePayment.validations.js +98 -0
- package/dist/validations/admin.devices.validations.d.ts +250 -0
- package/dist/validations/admin.devices.validations.js +118 -0
- package/dist/validations/appSpecs.validations.d.ts +16 -16
- package/dist/validations/appeals.validations.d.ts +8 -8
- package/dist/validations/auth.validations.d.ts +2 -2
- package/dist/validations/bans.validations.d.ts +8 -8
- package/dist/validations/devicePaymentPlan.validations.d.ts +12 -12
- package/dist/validations/index.d.ts +3 -0
- package/dist/validations/index.js +26 -1
- package/dist/validations/moderation.validations.d.ts +105 -105
- package/dist/validations/payinstallment.validations.d.ts +5 -5
- package/dist/validations/pricing.validations.d.ts +313 -0
- package/dist/validations/pricing.validations.js +376 -0
- package/dist/validations/pricings.validations.d.ts +313 -0
- package/dist/validations/pricings.validations.js +376 -0
- package/dist/validations/product.validations.d.ts +42 -42
- package/dist/validations/profiles.validations.d.ts +46 -46
- package/dist/validations/suspensions.validations.d.ts +8 -8
- package/dist/validations/users.admin.validations.d.ts +44 -44
- package/package.json +2 -2
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.checkAvailabilitySchema = exports.makePermanentSchema = exports.disableDeviceSchema = exports.deleteDeviceSchema = exports.getDevicesSchema = exports.getDeviceSchema = exports.updateDeviceSchema = exports.bulkCreateDevicesSchema = exports.createDeviceSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const vr_models_1 = require("vr-models");
|
|
6
|
+
// Constants
|
|
7
|
+
// Base device schema
|
|
8
|
+
const deviceBaseSchema = {
|
|
9
|
+
serialNumber: zod_1.z
|
|
10
|
+
.string()
|
|
11
|
+
.min(5, "Serial number must be at least 5 characters")
|
|
12
|
+
.max(64, "Serial number too long")
|
|
13
|
+
.regex(/^[A-Z0-9-]+$/, "Serial number must contain only uppercase letters, numbers, and hyphens"),
|
|
14
|
+
productId: zod_1.z.string().uuid("Invalid product ID"),
|
|
15
|
+
status: zod_1.z.enum(vr_models_1.DEVICE_STATUS).optional(),
|
|
16
|
+
isPermanentlyUnlocked: zod_1.z.boolean().optional(),
|
|
17
|
+
dedicatedUser: zod_1.z.enum(vr_models_1.DEVICE_DEDICATION).nullable().optional(),
|
|
18
|
+
};
|
|
19
|
+
// Create device schema (admin adds new stock)
|
|
20
|
+
exports.createDeviceSchema = zod_1.z.object({
|
|
21
|
+
body: zod_1.z.object({
|
|
22
|
+
serialNumber: deviceBaseSchema.serialNumber,
|
|
23
|
+
productId: deviceBaseSchema.productId,
|
|
24
|
+
// Status defaults to "locked" in model
|
|
25
|
+
// dedicatedUser starts as null
|
|
26
|
+
}),
|
|
27
|
+
});
|
|
28
|
+
// Bulk create devices schema
|
|
29
|
+
exports.bulkCreateDevicesSchema = zod_1.z.object({
|
|
30
|
+
body: zod_1.z.object({
|
|
31
|
+
productId: deviceBaseSchema.productId,
|
|
32
|
+
serialNumbers: zod_1.z
|
|
33
|
+
.array(zod_1.z
|
|
34
|
+
.string()
|
|
35
|
+
.min(5, "Serial number must be at least 5 characters")
|
|
36
|
+
.max(64, "Serial number too long")
|
|
37
|
+
.regex(/^[A-Z0-9-]+$/, "Serial number must contain only uppercase letters, numbers, and hyphens"))
|
|
38
|
+
.min(1, "At least one serial number required")
|
|
39
|
+
.max(100, "Cannot create more than 100 devices at once"),
|
|
40
|
+
}),
|
|
41
|
+
});
|
|
42
|
+
// Update device schema
|
|
43
|
+
exports.updateDeviceSchema = zod_1.z.object({
|
|
44
|
+
params: zod_1.z.object({
|
|
45
|
+
id: zod_1.z.string().uuid("Invalid device ID"),
|
|
46
|
+
}),
|
|
47
|
+
body: zod_1.z.object({
|
|
48
|
+
serialNumber: deviceBaseSchema.serialNumber.optional(),
|
|
49
|
+
status: deviceBaseSchema.status,
|
|
50
|
+
dedicatedUser: deviceBaseSchema.dedicatedUser,
|
|
51
|
+
}),
|
|
52
|
+
});
|
|
53
|
+
// Get device by ID schema
|
|
54
|
+
exports.getDeviceSchema = zod_1.z.object({
|
|
55
|
+
params: zod_1.z.object({
|
|
56
|
+
id: zod_1.z.string().uuid("Invalid device ID"),
|
|
57
|
+
}),
|
|
58
|
+
});
|
|
59
|
+
// Get all devices schema (with pagination and filters)
|
|
60
|
+
exports.getDevicesSchema = zod_1.z.object({
|
|
61
|
+
query: zod_1.z.object({
|
|
62
|
+
page: zod_1.z.string().regex(/^\d+$/).transform(Number).optional(),
|
|
63
|
+
limit: zod_1.z.string().regex(/^\d+$/).transform(Number).optional(),
|
|
64
|
+
// Filters
|
|
65
|
+
productId: zod_1.z.string().uuid().optional(),
|
|
66
|
+
status: zod_1.z.enum(vr_models_1.DEVICE_STATUS).optional(),
|
|
67
|
+
dedicatedUser: zod_1.z.enum(vr_models_1.DEVICE_DEDICATION).optional(),
|
|
68
|
+
isPermanentlyUnlocked: zod_1.z.enum(["true", "false"]).optional(),
|
|
69
|
+
isAssigned: zod_1.z.enum(["true", "false"]).optional(), // Has active payment plan?
|
|
70
|
+
search: zod_1.z.string().optional(), // Search by serial number
|
|
71
|
+
sortBy: zod_1.z
|
|
72
|
+
.enum(["serialNumber", "status", "createdAt", "updatedAt"])
|
|
73
|
+
.optional(),
|
|
74
|
+
sortOrder: zod_1.z.enum(["ASC", "DESC"]).optional(),
|
|
75
|
+
}),
|
|
76
|
+
});
|
|
77
|
+
// Delete device schema
|
|
78
|
+
exports.deleteDeviceSchema = zod_1.z.object({
|
|
79
|
+
params: zod_1.z.object({
|
|
80
|
+
id: zod_1.z.string().uuid("Invalid device ID"),
|
|
81
|
+
}),
|
|
82
|
+
});
|
|
83
|
+
// Device status management schemas
|
|
84
|
+
// export const lockDeviceSchema = z.object({
|
|
85
|
+
// params: z.object({
|
|
86
|
+
// id: z.string().uuid("Invalid device ID"),
|
|
87
|
+
// }),
|
|
88
|
+
// body: z
|
|
89
|
+
// .object({
|
|
90
|
+
// reason: z.string().optional(), // Why locking? Maintenance, lost, etc.
|
|
91
|
+
// })
|
|
92
|
+
// .optional(),
|
|
93
|
+
// });
|
|
94
|
+
// export const unlockDeviceSchema = z.object({
|
|
95
|
+
// params: z.object({
|
|
96
|
+
// id: z.string().uuid("Invalid device ID"),
|
|
97
|
+
// }),
|
|
98
|
+
// });
|
|
99
|
+
exports.disableDeviceSchema = zod_1.z.object({
|
|
100
|
+
params: zod_1.z.object({
|
|
101
|
+
id: zod_1.z.string().uuid("Invalid device ID"),
|
|
102
|
+
}),
|
|
103
|
+
body: zod_1.z.object({
|
|
104
|
+
reason: zod_1.z.string().min(1, "Reason required for disabling"),
|
|
105
|
+
}),
|
|
106
|
+
});
|
|
107
|
+
exports.makePermanentSchema = zod_1.z.object({
|
|
108
|
+
params: zod_1.z.object({
|
|
109
|
+
id: zod_1.z.string().uuid("Invalid device ID"),
|
|
110
|
+
}),
|
|
111
|
+
});
|
|
112
|
+
// Check availability schema (for assignment flow)
|
|
113
|
+
exports.checkAvailabilitySchema = zod_1.z.object({
|
|
114
|
+
query: zod_1.z.object({
|
|
115
|
+
productId: zod_1.z.string().uuid("Invalid product ID"),
|
|
116
|
+
quantity: zod_1.z.enum(["1", "2"]).transform(Number), // 1 or 2 devices
|
|
117
|
+
}),
|
|
118
|
+
});
|
|
@@ -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;
|
|
790
|
-
|
|
789
|
+
page: number;
|
|
791
790
|
search?: string | undefined;
|
|
791
|
+
isActive?: "true" | "false" | undefined;
|
|
792
792
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
793
|
-
sortOrder?: "
|
|
793
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
794
794
|
}, {
|
|
795
|
+
search?: string | undefined;
|
|
796
|
+
limit?: string | undefined;
|
|
795
797
|
isActive?: "true" | "false" | undefined;
|
|
796
798
|
page?: string | undefined;
|
|
797
|
-
limit?: string | undefined;
|
|
798
|
-
search?: string | undefined;
|
|
799
799
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
800
|
-
sortOrder?: "
|
|
800
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
801
801
|
}>;
|
|
802
802
|
}, "strip", z.ZodTypeAny, {
|
|
803
803
|
query: {
|
|
804
|
-
page: number;
|
|
805
804
|
limit: number;
|
|
806
|
-
|
|
805
|
+
page: number;
|
|
807
806
|
search?: string | undefined;
|
|
807
|
+
isActive?: "true" | "false" | undefined;
|
|
808
808
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
809
|
-
sortOrder?: "
|
|
809
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
810
810
|
};
|
|
811
811
|
}, {
|
|
812
812
|
query: {
|
|
813
|
+
search?: string | undefined;
|
|
814
|
+
limit?: string | undefined;
|
|
813
815
|
isActive?: "true" | "false" | undefined;
|
|
814
816
|
page?: string | undefined;
|
|
815
|
-
limit?: string | undefined;
|
|
816
|
-
search?: string | undefined;
|
|
817
817
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
818
|
-
sortOrder?: "
|
|
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
|
}>;
|
|
@@ -135,16 +135,16 @@ export declare const riderLoginSchema: z.ZodObject<{
|
|
|
135
135
|
nationalId: string;
|
|
136
136
|
phoneNumber: string;
|
|
137
137
|
};
|
|
138
|
-
params?: {} | undefined;
|
|
139
138
|
query?: {} | undefined;
|
|
139
|
+
params?: {} | undefined;
|
|
140
140
|
headers?: {} | undefined;
|
|
141
141
|
}, {
|
|
142
142
|
body: {
|
|
143
143
|
nationalId: string;
|
|
144
144
|
phoneNumber: string;
|
|
145
145
|
};
|
|
146
|
-
params?: {} | undefined;
|
|
147
146
|
query?: {} | undefined;
|
|
147
|
+
params?: {} | undefined;
|
|
148
148
|
headers?: {} | undefined;
|
|
149
149
|
}>;
|
|
150
150
|
export declare const requestOtpSchema: z.ZodObject<{
|
|
@@ -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;
|
|
11
|
+
page: number;
|
|
12
12
|
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
13
|
-
sortBy?: "
|
|
14
|
-
sortOrder?: "
|
|
13
|
+
sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
|
|
14
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
15
15
|
}, {
|
|
16
|
+
limit?: string | undefined;
|
|
16
17
|
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
17
18
|
page?: string | undefined;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
sortOrder?: "ASC" | "DESC" | 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;
|
|
25
|
+
page: number;
|
|
26
26
|
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
27
|
-
sortBy?: "
|
|
28
|
-
sortOrder?: "
|
|
27
|
+
sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
|
|
28
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
29
29
|
};
|
|
30
30
|
}, {
|
|
31
31
|
query: {
|
|
32
|
+
limit?: string | undefined;
|
|
32
33
|
status?: "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
33
34
|
page?: string | undefined;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
sortOrder?: "ASC" | "DESC" | 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<{
|
|
@@ -9,3 +9,6 @@ export { payInstallmentSchema } from "./payinstallment.validations";
|
|
|
9
9
|
export { updateProfileSchema, requestPhoneChangeSchema, verifyPhoneChangeSchema, deleteAccountSchema, strongPasswordRegex, changePasswordSchema, } 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
|
+
export { createPricingSchema, updatePricingSchema, getPricingSchema, getPricingsSchema, deletePricingSchema, } from "./pricings.validations";
|
|
13
|
+
export { checkAvailabilitySchema, bulkCreateDevicesSchema, updateDeviceSchema, getDeviceSchema, getDevicesSchema, deleteDeviceSchema, disableDeviceSchema, makePermanentSchema, createDeviceSchema, } from "./admin.devices.validations";
|
|
14
|
+
export { createPlanSchema, limitedUpdateSchema, getDevicePlanSchema, getPlanSchema, getUserPlansSchema, listPlansSchema, recordPaymentSchema, deletePlanSchema, } from "./admin.devicePayment.validations";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.verifyPhoneChangeSchema = exports.requestPhoneChangeSchema = exports.updateProfileSchema = exports.payInstallmentSchema = exports.extendSessionSchema = exports.unlockDeviceSchema = exports.getUserPaymentPlanSchema = exports.listUserPaymentPlansSchema = 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.requestOtpSchema = exports.resendOtpSchema = exports.verifyOtpSchema = exports.registerSchema = exports.refreshTokenSchema = exports.userLoginSchema = exports.forgotPasswordSchema = exports.riderLoginSchema = exports.validate = void 0;
|
|
4
|
-
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.changePasswordSchema = exports.strongPasswordRegex = exports.deleteAccountSchema = void 0;
|
|
4
|
+
exports.deletePlanSchema = exports.recordPaymentSchema = exports.listPlansSchema = exports.getUserPlansSchema = exports.getPlanSchema = exports.getDevicePlanSchema = exports.limitedUpdateSchema = exports.createPlanSchema = exports.createDeviceSchema = exports.makePermanentSchema = exports.disableDeviceSchema = exports.deleteDeviceSchema = exports.getDevicesSchema = exports.getDeviceSchema = exports.updateDeviceSchema = 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.changePasswordSchema = exports.strongPasswordRegex = exports.deleteAccountSchema = void 0;
|
|
5
5
|
var validate_validations_1 = require("./validate.validations");
|
|
6
6
|
Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return validate_validations_1.validate; } });
|
|
7
7
|
var auth_validations_1 = require("./auth.validations");
|
|
@@ -93,3 +93,28 @@ Object.defineProperty(exports, "deactivateProductSchema", { enumerable: true, ge
|
|
|
93
93
|
Object.defineProperty(exports, "activateProductSchema", { enumerable: true, get: function () { return product_validations_1.activateProductSchema; } });
|
|
94
94
|
Object.defineProperty(exports, "deleteProductSchema", { enumerable: true, get: function () { return product_validations_1.deleteProductSchema; } });
|
|
95
95
|
Object.defineProperty(exports, "updateStockSchema", { enumerable: true, get: function () { return product_validations_1.updateStockSchema; } });
|
|
96
|
+
var pricings_validations_1 = require("./pricings.validations");
|
|
97
|
+
Object.defineProperty(exports, "createPricingSchema", { enumerable: true, get: function () { return pricings_validations_1.createPricingSchema; } });
|
|
98
|
+
Object.defineProperty(exports, "updatePricingSchema", { enumerable: true, get: function () { return pricings_validations_1.updatePricingSchema; } });
|
|
99
|
+
Object.defineProperty(exports, "getPricingSchema", { enumerable: true, get: function () { return pricings_validations_1.getPricingSchema; } });
|
|
100
|
+
Object.defineProperty(exports, "getPricingsSchema", { enumerable: true, get: function () { return pricings_validations_1.getPricingsSchema; } });
|
|
101
|
+
Object.defineProperty(exports, "deletePricingSchema", { enumerable: true, get: function () { return pricings_validations_1.deletePricingSchema; } });
|
|
102
|
+
var admin_devices_validations_1 = require("./admin.devices.validations");
|
|
103
|
+
Object.defineProperty(exports, "checkAvailabilitySchema", { enumerable: true, get: function () { return admin_devices_validations_1.checkAvailabilitySchema; } });
|
|
104
|
+
Object.defineProperty(exports, "bulkCreateDevicesSchema", { enumerable: true, get: function () { return admin_devices_validations_1.bulkCreateDevicesSchema; } });
|
|
105
|
+
Object.defineProperty(exports, "updateDeviceSchema", { enumerable: true, get: function () { return admin_devices_validations_1.updateDeviceSchema; } });
|
|
106
|
+
Object.defineProperty(exports, "getDeviceSchema", { enumerable: true, get: function () { return admin_devices_validations_1.getDeviceSchema; } });
|
|
107
|
+
Object.defineProperty(exports, "getDevicesSchema", { enumerable: true, get: function () { return admin_devices_validations_1.getDevicesSchema; } });
|
|
108
|
+
Object.defineProperty(exports, "deleteDeviceSchema", { enumerable: true, get: function () { return admin_devices_validations_1.deleteDeviceSchema; } });
|
|
109
|
+
Object.defineProperty(exports, "disableDeviceSchema", { enumerable: true, get: function () { return admin_devices_validations_1.disableDeviceSchema; } });
|
|
110
|
+
Object.defineProperty(exports, "makePermanentSchema", { enumerable: true, get: function () { return admin_devices_validations_1.makePermanentSchema; } });
|
|
111
|
+
Object.defineProperty(exports, "createDeviceSchema", { enumerable: true, get: function () { return admin_devices_validations_1.createDeviceSchema; } });
|
|
112
|
+
var admin_devicePayment_validations_1 = require("./admin.devicePayment.validations");
|
|
113
|
+
Object.defineProperty(exports, "createPlanSchema", { enumerable: true, get: function () { return admin_devicePayment_validations_1.createPlanSchema; } });
|
|
114
|
+
Object.defineProperty(exports, "limitedUpdateSchema", { enumerable: true, get: function () { return admin_devicePayment_validations_1.limitedUpdateSchema; } });
|
|
115
|
+
Object.defineProperty(exports, "getDevicePlanSchema", { enumerable: true, get: function () { return admin_devicePayment_validations_1.getDevicePlanSchema; } });
|
|
116
|
+
Object.defineProperty(exports, "getPlanSchema", { enumerable: true, get: function () { return admin_devicePayment_validations_1.getPlanSchema; } });
|
|
117
|
+
Object.defineProperty(exports, "getUserPlansSchema", { enumerable: true, get: function () { return admin_devicePayment_validations_1.getUserPlansSchema; } });
|
|
118
|
+
Object.defineProperty(exports, "listPlansSchema", { enumerable: true, get: function () { return admin_devicePayment_validations_1.listPlansSchema; } });
|
|
119
|
+
Object.defineProperty(exports, "recordPaymentSchema", { enumerable: true, get: function () { return admin_devicePayment_validations_1.recordPaymentSchema; } });
|
|
120
|
+
Object.defineProperty(exports, "deletePlanSchema", { enumerable: true, get: function () { return admin_devicePayment_validations_1.deletePlanSchema; } });
|