vr-commons 1.0.136 → 1.0.137
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/admin.devicePayment.validations.d.ts +14 -14
- package/dist/validations/admin.devices.validations.d.ts +8 -8
- package/dist/validations/admin.installment.validations.d.ts +105 -0
- package/dist/validations/admin.installment.validations.js +36 -0
- package/dist/validations/appSpecs.validations.d.ts +6 -6
- package/dist/validations/devicePaymentPlan.validations.d.ts +8 -8
- package/dist/validations/eventlogs.admin.validations.d.ts +7 -7
- package/dist/validations/index.d.ts +1 -1
- package/dist/validations/index.js +6 -4
- package/dist/validations/moderation.validations.d.ts +24 -24
- package/dist/validations/pricings.validations.d.ts +8 -8
- package/dist/validations/product.validations.d.ts +8 -8
- package/dist/validations/profiles.validations.d.ts +10 -10
- package/dist/validations/users.admin.validations.d.ts +8 -8
- package/package.json +2 -2
|
@@ -43,9 +43,9 @@ export declare const listPlansSchema: z.ZodObject<{
|
|
|
43
43
|
sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "nextInstallmentDueAt", "paidAmount", "outstandingAmount"]>>;
|
|
44
44
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
limit: number;
|
|
47
46
|
page: number;
|
|
48
|
-
|
|
47
|
+
limit: number;
|
|
48
|
+
status?: "PENDING" | "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
49
49
|
search?: string | undefined;
|
|
50
50
|
userId?: string | undefined;
|
|
51
51
|
isOverdue?: "true" | "false" | undefined;
|
|
@@ -53,21 +53,21 @@ export declare const listPlansSchema: z.ZodObject<{
|
|
|
53
53
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
54
54
|
deviceId?: string | undefined;
|
|
55
55
|
}, {
|
|
56
|
-
status?: "
|
|
57
|
-
|
|
56
|
+
status?: "PENDING" | "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
57
|
+
page?: string | undefined;
|
|
58
58
|
limit?: string | undefined;
|
|
59
|
+
search?: string | undefined;
|
|
59
60
|
userId?: string | undefined;
|
|
60
61
|
isOverdue?: "true" | "false" | undefined;
|
|
61
|
-
page?: string | undefined;
|
|
62
62
|
sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
|
|
63
63
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
64
64
|
deviceId?: string | undefined;
|
|
65
65
|
}>;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
67
|
query: {
|
|
68
|
-
limit: number;
|
|
69
68
|
page: number;
|
|
70
|
-
|
|
69
|
+
limit: number;
|
|
70
|
+
status?: "PENDING" | "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
71
71
|
search?: string | undefined;
|
|
72
72
|
userId?: string | undefined;
|
|
73
73
|
isOverdue?: "true" | "false" | undefined;
|
|
@@ -77,12 +77,12 @@ export declare const listPlansSchema: z.ZodObject<{
|
|
|
77
77
|
};
|
|
78
78
|
}, {
|
|
79
79
|
query: {
|
|
80
|
-
status?: "
|
|
81
|
-
|
|
80
|
+
status?: "PENDING" | "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
81
|
+
page?: string | undefined;
|
|
82
82
|
limit?: string | undefined;
|
|
83
|
+
search?: string | undefined;
|
|
83
84
|
userId?: string | undefined;
|
|
84
85
|
isOverdue?: "true" | "false" | undefined;
|
|
85
|
-
page?: string | undefined;
|
|
86
86
|
sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
|
|
87
87
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
88
88
|
deviceId?: string | undefined;
|
|
@@ -117,10 +117,10 @@ export declare const getUserPlansSchema: z.ZodObject<{
|
|
|
117
117
|
status: z.ZodOptional<z.ZodEnum<["PENDING", "ACTIVE", "COMPLETED", "DEFAULTED", "CANCELLED"]>>;
|
|
118
118
|
includeCompleted: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
|
|
119
119
|
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
status?: "
|
|
120
|
+
status?: "PENDING" | "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
121
121
|
includeCompleted?: "true" | "false" | undefined;
|
|
122
122
|
}, {
|
|
123
|
-
status?: "
|
|
123
|
+
status?: "PENDING" | "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
124
124
|
includeCompleted?: "true" | "false" | undefined;
|
|
125
125
|
}>>;
|
|
126
126
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -128,7 +128,7 @@ export declare const getUserPlansSchema: z.ZodObject<{
|
|
|
128
128
|
userId: string;
|
|
129
129
|
};
|
|
130
130
|
query?: {
|
|
131
|
-
status?: "
|
|
131
|
+
status?: "PENDING" | "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
132
132
|
includeCompleted?: "true" | "false" | undefined;
|
|
133
133
|
} | undefined;
|
|
134
134
|
}, {
|
|
@@ -136,7 +136,7 @@ export declare const getUserPlansSchema: z.ZodObject<{
|
|
|
136
136
|
userId: string;
|
|
137
137
|
};
|
|
138
138
|
query?: {
|
|
139
|
-
status?: "
|
|
139
|
+
status?: "PENDING" | "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
140
140
|
includeCompleted?: "true" | "false" | undefined;
|
|
141
141
|
} | undefined;
|
|
142
142
|
}>;
|
|
@@ -114,9 +114,9 @@ export declare const getDevicesSchema: z.ZodObject<{
|
|
|
114
114
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
116
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
117
|
-
search?: string | undefined;
|
|
118
|
-
limit?: number | undefined;
|
|
119
117
|
page?: number | undefined;
|
|
118
|
+
limit?: number | undefined;
|
|
119
|
+
search?: string | undefined;
|
|
120
120
|
sortBy?: "status" | "createdAt" | "updatedAt" | "serialNumber" | undefined;
|
|
121
121
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
122
122
|
productId?: string | undefined;
|
|
@@ -125,9 +125,9 @@ export declare const getDevicesSchema: z.ZodObject<{
|
|
|
125
125
|
isAssigned?: "true" | "false" | undefined;
|
|
126
126
|
}, {
|
|
127
127
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
128
|
-
search?: string | undefined;
|
|
129
|
-
limit?: string | undefined;
|
|
130
128
|
page?: string | undefined;
|
|
129
|
+
limit?: string | undefined;
|
|
130
|
+
search?: string | undefined;
|
|
131
131
|
sortBy?: "status" | "createdAt" | "updatedAt" | "serialNumber" | undefined;
|
|
132
132
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
133
133
|
productId?: string | undefined;
|
|
@@ -138,9 +138,9 @@ export declare const getDevicesSchema: z.ZodObject<{
|
|
|
138
138
|
}, "strip", z.ZodTypeAny, {
|
|
139
139
|
query: {
|
|
140
140
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
141
|
-
search?: string | undefined;
|
|
142
|
-
limit?: number | undefined;
|
|
143
141
|
page?: number | undefined;
|
|
142
|
+
limit?: number | undefined;
|
|
143
|
+
search?: string | undefined;
|
|
144
144
|
sortBy?: "status" | "createdAt" | "updatedAt" | "serialNumber" | undefined;
|
|
145
145
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
146
146
|
productId?: string | undefined;
|
|
@@ -151,9 +151,9 @@ export declare const getDevicesSchema: z.ZodObject<{
|
|
|
151
151
|
}, {
|
|
152
152
|
query: {
|
|
153
153
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
154
|
-
search?: string | undefined;
|
|
155
|
-
limit?: string | undefined;
|
|
156
154
|
page?: string | undefined;
|
|
155
|
+
limit?: string | undefined;
|
|
156
|
+
search?: string | undefined;
|
|
157
157
|
sortBy?: "status" | "createdAt" | "updatedAt" | "serialNumber" | undefined;
|
|
158
158
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
159
159
|
productId?: string | undefined;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const getInstallmentsSchema: z.ZodObject<{
|
|
3
|
+
query: z.ZodObject<{
|
|
4
|
+
planId: z.ZodOptional<z.ZodString>;
|
|
5
|
+
status: z.ZodOptional<z.ZodEnum<["PENDING", "PAID", "OVERDUE", "SKIPPED"]>>;
|
|
6
|
+
page: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
|
|
7
|
+
limit: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
status?: "PENDING" | "PAID" | "OVERDUE" | "SKIPPED" | undefined;
|
|
10
|
+
planId?: string | undefined;
|
|
11
|
+
page?: number | undefined;
|
|
12
|
+
limit?: number | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
status?: "PENDING" | "PAID" | "OVERDUE" | "SKIPPED" | undefined;
|
|
15
|
+
planId?: string | undefined;
|
|
16
|
+
page?: string | undefined;
|
|
17
|
+
limit?: string | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
query: {
|
|
21
|
+
status?: "PENDING" | "PAID" | "OVERDUE" | "SKIPPED" | undefined;
|
|
22
|
+
planId?: string | undefined;
|
|
23
|
+
page?: number | undefined;
|
|
24
|
+
limit?: number | undefined;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
query: {
|
|
28
|
+
status?: "PENDING" | "PAID" | "OVERDUE" | "SKIPPED" | undefined;
|
|
29
|
+
planId?: string | undefined;
|
|
30
|
+
page?: string | undefined;
|
|
31
|
+
limit?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
}>;
|
|
34
|
+
export declare const getInstallmentByIdSchema: z.ZodObject<{
|
|
35
|
+
params: z.ZodObject<{
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
id: string;
|
|
39
|
+
}, {
|
|
40
|
+
id: string;
|
|
41
|
+
}>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
params: {
|
|
44
|
+
id: string;
|
|
45
|
+
};
|
|
46
|
+
}, {
|
|
47
|
+
params: {
|
|
48
|
+
id: string;
|
|
49
|
+
};
|
|
50
|
+
}>;
|
|
51
|
+
export declare const payInstallmentSchema: z.ZodObject<{
|
|
52
|
+
params: z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
id: string;
|
|
56
|
+
}, {
|
|
57
|
+
id: string;
|
|
58
|
+
}>;
|
|
59
|
+
body: z.ZodObject<{
|
|
60
|
+
amount: z.ZodNumber;
|
|
61
|
+
provider: z.ZodDefault<z.ZodEnum<["AIRTEL_MONEY", "CASH", "MOMO_PAY"]>>;
|
|
62
|
+
providerReference: z.ZodString;
|
|
63
|
+
customerPhone: z.ZodString;
|
|
64
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
65
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
amount: number;
|
|
68
|
+
provider: "AIRTEL_MONEY" | "CASH" | "MOMO_PAY";
|
|
69
|
+
providerReference: string;
|
|
70
|
+
customerPhone: string;
|
|
71
|
+
notes?: string | undefined;
|
|
72
|
+
metadata?: Record<string, any> | undefined;
|
|
73
|
+
}, {
|
|
74
|
+
amount: number;
|
|
75
|
+
providerReference: string;
|
|
76
|
+
customerPhone: string;
|
|
77
|
+
provider?: "AIRTEL_MONEY" | "CASH" | "MOMO_PAY" | undefined;
|
|
78
|
+
notes?: string | undefined;
|
|
79
|
+
metadata?: Record<string, any> | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
params: {
|
|
83
|
+
id: string;
|
|
84
|
+
};
|
|
85
|
+
body: {
|
|
86
|
+
amount: number;
|
|
87
|
+
provider: "AIRTEL_MONEY" | "CASH" | "MOMO_PAY";
|
|
88
|
+
providerReference: string;
|
|
89
|
+
customerPhone: string;
|
|
90
|
+
notes?: string | undefined;
|
|
91
|
+
metadata?: Record<string, any> | undefined;
|
|
92
|
+
};
|
|
93
|
+
}, {
|
|
94
|
+
params: {
|
|
95
|
+
id: string;
|
|
96
|
+
};
|
|
97
|
+
body: {
|
|
98
|
+
amount: number;
|
|
99
|
+
providerReference: string;
|
|
100
|
+
customerPhone: string;
|
|
101
|
+
provider?: "AIRTEL_MONEY" | "CASH" | "MOMO_PAY" | undefined;
|
|
102
|
+
notes?: string | undefined;
|
|
103
|
+
metadata?: Record<string, any> | undefined;
|
|
104
|
+
};
|
|
105
|
+
}>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.payInstallmentSchema = exports.getInstallmentByIdSchema = exports.getInstallmentsSchema = void 0;
|
|
4
|
+
const vr_models_1 = require("vr-models");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const phoneRegex = /^\+250(78|79|73|72)[0-9]{7}$/;
|
|
7
|
+
console.log("from vr-commons", vr_models_1.PAYMENT_PROVIDER);
|
|
8
|
+
exports.getInstallmentsSchema = zod_1.z.object({
|
|
9
|
+
query: zod_1.z.object({
|
|
10
|
+
planId: zod_1.z.string().uuid().optional(),
|
|
11
|
+
status: zod_1.z.enum([...vr_models_1.INSTALLMENT_STATUS]).optional(),
|
|
12
|
+
page: zod_1.z.string().regex(/^\d+$/).transform(Number).optional(),
|
|
13
|
+
limit: zod_1.z.string().regex(/^\d+$/).transform(Number).optional(),
|
|
14
|
+
}),
|
|
15
|
+
});
|
|
16
|
+
exports.getInstallmentByIdSchema = zod_1.z.object({
|
|
17
|
+
params: zod_1.z.object({
|
|
18
|
+
id: zod_1.z.string().uuid(),
|
|
19
|
+
}),
|
|
20
|
+
});
|
|
21
|
+
// src/modules/installments/validations/installments.validations.ts
|
|
22
|
+
exports.payInstallmentSchema = zod_1.z.object({
|
|
23
|
+
params: zod_1.z.object({
|
|
24
|
+
id: zod_1.z.string().uuid("Invalid installment ID"),
|
|
25
|
+
}),
|
|
26
|
+
body: zod_1.z.object({
|
|
27
|
+
amount: zod_1.z.number().min(0.01, "Amount must be greater than 0"),
|
|
28
|
+
provider: zod_1.z.enum([...vr_models_1.PAYMENT_PROVIDER]).default("MOMO_PAY"),
|
|
29
|
+
providerReference: zod_1.z.string(),
|
|
30
|
+
customerPhone: zod_1.z
|
|
31
|
+
.string()
|
|
32
|
+
.regex(phoneRegex, "Invalid MTN Rwanda phone number"),
|
|
33
|
+
notes: zod_1.z.string().optional(),
|
|
34
|
+
metadata: zod_1.z.record(zod_1.z.any()).optional(),
|
|
35
|
+
}),
|
|
36
|
+
});
|
|
@@ -785,24 +785,24 @@ 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
791
|
isActive?: "true" | "false" | undefined;
|
|
792
792
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
793
793
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
794
794
|
}, {
|
|
795
|
-
|
|
795
|
+
page?: string | undefined;
|
|
796
796
|
limit?: string | undefined;
|
|
797
|
+
search?: string | undefined;
|
|
797
798
|
isActive?: "true" | "false" | undefined;
|
|
798
|
-
page?: string | undefined;
|
|
799
799
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
800
800
|
sortOrder?: "DESC" | "ASC" | 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
807
|
isActive?: "true" | "false" | undefined;
|
|
808
808
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
@@ -810,10 +810,10 @@ export declare const listAppSpecsSchema: z.ZodObject<{
|
|
|
810
810
|
};
|
|
811
811
|
}, {
|
|
812
812
|
query: {
|
|
813
|
-
|
|
813
|
+
page?: string | undefined;
|
|
814
814
|
limit?: string | undefined;
|
|
815
|
+
search?: string | undefined;
|
|
815
816
|
isActive?: "true" | "false" | undefined;
|
|
816
|
-
page?: string | undefined;
|
|
817
817
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
818
818
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
819
819
|
};
|
|
@@ -7,31 +7,31 @@ 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
|
-
|
|
11
|
+
limit: number;
|
|
12
|
+
status?: "PENDING" | "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
13
13
|
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
14
14
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
15
15
|
}, {
|
|
16
|
-
status?: "
|
|
17
|
-
limit?: string | undefined;
|
|
16
|
+
status?: "PENDING" | "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
18
17
|
page?: string | undefined;
|
|
18
|
+
limit?: string | undefined;
|
|
19
19
|
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
20
20
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
query: {
|
|
24
|
-
limit: number;
|
|
25
24
|
page: number;
|
|
26
|
-
|
|
25
|
+
limit: number;
|
|
26
|
+
status?: "PENDING" | "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
27
27
|
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
28
28
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
29
29
|
};
|
|
30
30
|
}, {
|
|
31
31
|
query: {
|
|
32
|
-
status?: "
|
|
33
|
-
limit?: string | undefined;
|
|
32
|
+
status?: "PENDING" | "ACTIVE" | "DEFAULTED" | "COMPLETED" | "CANCELLED" | undefined;
|
|
34
33
|
page?: string | undefined;
|
|
34
|
+
limit?: string | undefined;
|
|
35
35
|
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
36
36
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
37
37
|
};
|
|
@@ -18,8 +18,8 @@ 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
24
|
sortOrder: "DESC" | "ASC";
|
|
25
25
|
hasDeviceSession: boolean;
|
|
@@ -35,11 +35,11 @@ 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;
|
|
40
41
|
firstName?: string | undefined;
|
|
41
42
|
lastName?: string | undefined;
|
|
42
|
-
page?: string | undefined;
|
|
43
43
|
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
44
44
|
fromDate?: string | undefined;
|
|
45
45
|
toDate?: string | undefined;
|
|
@@ -52,11 +52,11 @@ 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;
|
|
57
58
|
firstName?: string | undefined;
|
|
58
59
|
lastName?: string | undefined;
|
|
59
|
-
page?: string | undefined;
|
|
60
60
|
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
61
61
|
fromDate?: string | undefined;
|
|
62
62
|
toDate?: string | undefined;
|
|
@@ -73,11 +73,11 @@ 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;
|
|
78
79
|
firstName?: string | undefined;
|
|
79
80
|
lastName?: string | undefined;
|
|
80
|
-
page?: string | undefined;
|
|
81
81
|
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
82
82
|
fromDate?: string | undefined;
|
|
83
83
|
toDate?: string | undefined;
|
|
@@ -5,7 +5,7 @@ export { submitBanAppealSchema, submitSuspensionAppealSchema, getBanSchema, getU
|
|
|
5
5
|
export { createAppSpecsSchema, updateAppSpecsSchema, listAppSpecsSchema, getActiveAppSpecsSchema, activateAppSpecsSchema, getAppSpecsSchema, } from "./appSpecs.validations";
|
|
6
6
|
export { listUserPaymentPlansSchema, getUserPaymentPlanSchema, } from "./devicePaymentPlan.validations";
|
|
7
7
|
export { unlockDeviceSchema, extendSessionSchema, serialRegex, } from "./devices.validations";
|
|
8
|
-
export { payInstallmentSchema } from "./
|
|
8
|
+
export { payInstallmentSchema, getInstallmentByIdSchema, getInstallmentsSchema, } from "./admin.installment.validations";
|
|
9
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";
|
|
@@ -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 = exports.getDevicePlanSchema = exports.limitedUpdateSchema = void 0;
|
|
4
|
+
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.getInstallmentsSchema = exports.getInstallmentByIdSchema = 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 = exports.createPlanSchema = exports.createDeviceSchema = 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");
|
|
@@ -73,8 +73,10 @@ var devices_validations_1 = require("./devices.validations");
|
|
|
73
73
|
Object.defineProperty(exports, "unlockDeviceSchema", { enumerable: true, get: function () { return devices_validations_1.unlockDeviceSchema; } });
|
|
74
74
|
Object.defineProperty(exports, "extendSessionSchema", { enumerable: true, get: function () { return devices_validations_1.extendSessionSchema; } });
|
|
75
75
|
Object.defineProperty(exports, "serialRegex", { enumerable: true, get: function () { return devices_validations_1.serialRegex; } });
|
|
76
|
-
var
|
|
77
|
-
Object.defineProperty(exports, "payInstallmentSchema", { enumerable: true, get: function () { return
|
|
76
|
+
var admin_installment_validations_1 = require("./admin.installment.validations");
|
|
77
|
+
Object.defineProperty(exports, "payInstallmentSchema", { enumerable: true, get: function () { return admin_installment_validations_1.payInstallmentSchema; } });
|
|
78
|
+
Object.defineProperty(exports, "getInstallmentByIdSchema", { enumerable: true, get: function () { return admin_installment_validations_1.getInstallmentByIdSchema; } });
|
|
79
|
+
Object.defineProperty(exports, "getInstallmentsSchema", { enumerable: true, get: function () { return admin_installment_validations_1.getInstallmentsSchema; } });
|
|
78
80
|
var account_validations_1 = require("./account.validations");
|
|
79
81
|
Object.defineProperty(exports, "updateProfileSchema", { enumerable: true, get: function () { return account_validations_1.updateProfileSchema; } });
|
|
80
82
|
Object.defineProperty(exports, "requestPhoneChangeSchema", { enumerable: true, get: function () { return account_validations_1.requestPhoneChangeSchema; } });
|
|
@@ -273,8 +273,8 @@ export declare const listBansSchema: z.ZodObject<{
|
|
|
273
273
|
sortBy: z.ZodOptional<z.ZodEnum<["bannedAt", "createdAt", "reason"]>>;
|
|
274
274
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
275
275
|
}, "strip", z.ZodTypeAny, {
|
|
276
|
-
limit: number;
|
|
277
276
|
page: number;
|
|
277
|
+
limit: number;
|
|
278
278
|
status?: "active" | "revoked" | undefined;
|
|
279
279
|
search?: string | undefined;
|
|
280
280
|
userId?: string | undefined;
|
|
@@ -286,19 +286,19 @@ export declare const listBansSchema: z.ZodObject<{
|
|
|
286
286
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
287
287
|
}, {
|
|
288
288
|
status?: "active" | "revoked" | undefined;
|
|
289
|
-
|
|
289
|
+
page?: string | undefined;
|
|
290
290
|
limit?: string | undefined;
|
|
291
|
+
search?: string | undefined;
|
|
291
292
|
userId?: string | undefined;
|
|
292
293
|
isPermanent?: "true" | "false" | undefined;
|
|
293
294
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
294
|
-
page?: string | undefined;
|
|
295
295
|
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
296
296
|
fromDate?: string | undefined;
|
|
297
297
|
toDate?: string | undefined;
|
|
298
298
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
299
299
|
}>, {
|
|
300
|
-
limit: number;
|
|
301
300
|
page: number;
|
|
301
|
+
limit: number;
|
|
302
302
|
status?: "active" | "revoked" | undefined;
|
|
303
303
|
search?: string | undefined;
|
|
304
304
|
userId?: string | undefined;
|
|
@@ -310,12 +310,12 @@ export declare const listBansSchema: z.ZodObject<{
|
|
|
310
310
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
311
311
|
}, {
|
|
312
312
|
status?: "active" | "revoked" | undefined;
|
|
313
|
-
|
|
313
|
+
page?: string | undefined;
|
|
314
314
|
limit?: string | undefined;
|
|
315
|
+
search?: string | undefined;
|
|
315
316
|
userId?: string | undefined;
|
|
316
317
|
isPermanent?: "true" | "false" | undefined;
|
|
317
318
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
318
|
-
page?: string | undefined;
|
|
319
319
|
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
320
320
|
fromDate?: string | undefined;
|
|
321
321
|
toDate?: string | undefined;
|
|
@@ -323,8 +323,8 @@ export declare const listBansSchema: z.ZodObject<{
|
|
|
323
323
|
}>;
|
|
324
324
|
}, "strip", z.ZodTypeAny, {
|
|
325
325
|
query: {
|
|
326
|
-
limit: number;
|
|
327
326
|
page: number;
|
|
327
|
+
limit: number;
|
|
328
328
|
status?: "active" | "revoked" | undefined;
|
|
329
329
|
search?: string | undefined;
|
|
330
330
|
userId?: string | undefined;
|
|
@@ -338,12 +338,12 @@ export declare const listBansSchema: z.ZodObject<{
|
|
|
338
338
|
}, {
|
|
339
339
|
query: {
|
|
340
340
|
status?: "active" | "revoked" | undefined;
|
|
341
|
-
|
|
341
|
+
page?: string | undefined;
|
|
342
342
|
limit?: string | undefined;
|
|
343
|
+
search?: string | undefined;
|
|
343
344
|
userId?: string | undefined;
|
|
344
345
|
isPermanent?: "true" | "false" | undefined;
|
|
345
346
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
346
|
-
page?: string | undefined;
|
|
347
347
|
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
348
348
|
fromDate?: string | undefined;
|
|
349
349
|
toDate?: string | undefined;
|
|
@@ -364,8 +364,8 @@ export declare const listSuspensionsSchema: z.ZodObject<{
|
|
|
364
364
|
sortBy: z.ZodOptional<z.ZodEnum<["startedAt", "endsAt", "createdAt", "reason"]>>;
|
|
365
365
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
366
366
|
}, "strip", z.ZodTypeAny, {
|
|
367
|
-
limit: number;
|
|
368
367
|
page: number;
|
|
368
|
+
limit: number;
|
|
369
369
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
370
370
|
search?: string | undefined;
|
|
371
371
|
userId?: string | undefined;
|
|
@@ -376,18 +376,18 @@ export declare const listSuspensionsSchema: z.ZodObject<{
|
|
|
376
376
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
377
377
|
}, {
|
|
378
378
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
379
|
-
|
|
379
|
+
page?: string | undefined;
|
|
380
380
|
limit?: string | undefined;
|
|
381
|
+
search?: string | undefined;
|
|
381
382
|
userId?: string | undefined;
|
|
382
383
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
383
|
-
page?: string | undefined;
|
|
384
384
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
385
385
|
fromDate?: string | undefined;
|
|
386
386
|
toDate?: string | undefined;
|
|
387
387
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
388
388
|
}>, {
|
|
389
|
-
limit: number;
|
|
390
389
|
page: number;
|
|
390
|
+
limit: number;
|
|
391
391
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
392
392
|
search?: string | undefined;
|
|
393
393
|
userId?: string | undefined;
|
|
@@ -398,11 +398,11 @@ export declare const listSuspensionsSchema: z.ZodObject<{
|
|
|
398
398
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
399
399
|
}, {
|
|
400
400
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
401
|
-
|
|
401
|
+
page?: string | undefined;
|
|
402
402
|
limit?: string | undefined;
|
|
403
|
+
search?: string | undefined;
|
|
403
404
|
userId?: string | undefined;
|
|
404
405
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
405
|
-
page?: string | undefined;
|
|
406
406
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
407
407
|
fromDate?: string | undefined;
|
|
408
408
|
toDate?: string | undefined;
|
|
@@ -410,8 +410,8 @@ export declare const listSuspensionsSchema: z.ZodObject<{
|
|
|
410
410
|
}>;
|
|
411
411
|
}, "strip", z.ZodTypeAny, {
|
|
412
412
|
query: {
|
|
413
|
-
limit: number;
|
|
414
413
|
page: number;
|
|
414
|
+
limit: number;
|
|
415
415
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
416
416
|
search?: string | undefined;
|
|
417
417
|
userId?: string | undefined;
|
|
@@ -424,11 +424,11 @@ export declare const listSuspensionsSchema: z.ZodObject<{
|
|
|
424
424
|
}, {
|
|
425
425
|
query: {
|
|
426
426
|
status?: "active" | "expired" | "revoked" | undefined;
|
|
427
|
-
|
|
427
|
+
page?: string | undefined;
|
|
428
428
|
limit?: string | undefined;
|
|
429
|
+
search?: string | undefined;
|
|
429
430
|
userId?: string | undefined;
|
|
430
431
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
431
|
-
page?: string | undefined;
|
|
432
432
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
433
433
|
fromDate?: string | undefined;
|
|
434
434
|
toDate?: string | undefined;
|
|
@@ -444,34 +444,34 @@ export declare const listPendingAppealsSchema: z.ZodObject<{
|
|
|
444
444
|
fromDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
445
445
|
toDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
446
446
|
}, "strip", z.ZodTypeAny, {
|
|
447
|
-
limit: number;
|
|
448
447
|
page: number;
|
|
448
|
+
limit: number;
|
|
449
449
|
type?: "ban" | "suspension" | undefined;
|
|
450
450
|
fromDate?: string | undefined;
|
|
451
451
|
toDate?: string | undefined;
|
|
452
452
|
}, {
|
|
453
453
|
type?: "ban" | "suspension" | undefined;
|
|
454
|
-
limit?: string | undefined;
|
|
455
454
|
page?: string | undefined;
|
|
455
|
+
limit?: string | undefined;
|
|
456
456
|
fromDate?: string | undefined;
|
|
457
457
|
toDate?: string | undefined;
|
|
458
458
|
}>, {
|
|
459
|
-
limit: number;
|
|
460
459
|
page: number;
|
|
460
|
+
limit: number;
|
|
461
461
|
type?: "ban" | "suspension" | undefined;
|
|
462
462
|
fromDate?: string | undefined;
|
|
463
463
|
toDate?: string | undefined;
|
|
464
464
|
}, {
|
|
465
465
|
type?: "ban" | "suspension" | undefined;
|
|
466
|
-
limit?: string | undefined;
|
|
467
466
|
page?: string | undefined;
|
|
467
|
+
limit?: string | undefined;
|
|
468
468
|
fromDate?: string | undefined;
|
|
469
469
|
toDate?: string | undefined;
|
|
470
470
|
}>;
|
|
471
471
|
}, "strip", z.ZodTypeAny, {
|
|
472
472
|
query: {
|
|
473
|
-
limit: number;
|
|
474
473
|
page: number;
|
|
474
|
+
limit: number;
|
|
475
475
|
type?: "ban" | "suspension" | undefined;
|
|
476
476
|
fromDate?: string | undefined;
|
|
477
477
|
toDate?: string | undefined;
|
|
@@ -479,8 +479,8 @@ export declare const listPendingAppealsSchema: z.ZodObject<{
|
|
|
479
479
|
}, {
|
|
480
480
|
query: {
|
|
481
481
|
type?: "ban" | "suspension" | undefined;
|
|
482
|
-
limit?: string | undefined;
|
|
483
482
|
page?: string | undefined;
|
|
483
|
+
limit?: string | undefined;
|
|
484
484
|
fromDate?: string | undefined;
|
|
485
485
|
toDate?: string | undefined;
|
|
486
486
|
};
|
|
@@ -246,10 +246,10 @@ export declare const getPricingsSchema: z.ZodObject<{
|
|
|
246
246
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
247
247
|
}, "strip", z.ZodTypeAny, {
|
|
248
248
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
249
|
-
|
|
249
|
+
page?: number | undefined;
|
|
250
250
|
limit?: number | undefined;
|
|
251
|
+
search?: string | undefined;
|
|
251
252
|
isActive?: "true" | "false" | undefined;
|
|
252
|
-
page?: number | undefined;
|
|
253
253
|
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
254
254
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
255
255
|
productId?: string | undefined;
|
|
@@ -257,10 +257,10 @@ export declare const getPricingsSchema: z.ZodObject<{
|
|
|
257
257
|
maxAmount?: number | undefined;
|
|
258
258
|
}, {
|
|
259
259
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
260
|
-
|
|
260
|
+
page?: string | undefined;
|
|
261
261
|
limit?: string | undefined;
|
|
262
|
+
search?: string | undefined;
|
|
262
263
|
isActive?: "true" | "false" | undefined;
|
|
263
|
-
page?: string | undefined;
|
|
264
264
|
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
265
265
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
266
266
|
productId?: string | undefined;
|
|
@@ -270,10 +270,10 @@ export declare const getPricingsSchema: z.ZodObject<{
|
|
|
270
270
|
}, "strip", z.ZodTypeAny, {
|
|
271
271
|
query: {
|
|
272
272
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
273
|
-
|
|
273
|
+
page?: number | undefined;
|
|
274
274
|
limit?: number | undefined;
|
|
275
|
+
search?: string | undefined;
|
|
275
276
|
isActive?: "true" | "false" | undefined;
|
|
276
|
-
page?: number | undefined;
|
|
277
277
|
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
278
278
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
279
279
|
productId?: string | undefined;
|
|
@@ -283,10 +283,10 @@ export declare const getPricingsSchema: z.ZodObject<{
|
|
|
283
283
|
}, {
|
|
284
284
|
query: {
|
|
285
285
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
286
|
-
|
|
286
|
+
page?: string | undefined;
|
|
287
287
|
limit?: string | undefined;
|
|
288
|
+
search?: string | undefined;
|
|
288
289
|
isActive?: "true" | "false" | undefined;
|
|
289
|
-
page?: string | undefined;
|
|
290
290
|
sortBy?: "createdAt" | "updatedAt" | "name" | "totalAmount" | undefined;
|
|
291
291
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
292
292
|
productId?: string | undefined;
|
|
@@ -98,38 +98,38 @@ export declare const getProductsSchema: z.ZodObject<{
|
|
|
98
98
|
sortBy: z.ZodOptional<z.ZodEnum<["name", "stock", "createdAt", "updatedAt"]>>;
|
|
99
99
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
100
100
|
}, "strip", z.ZodTypeAny, {
|
|
101
|
-
|
|
101
|
+
page?: number | undefined;
|
|
102
102
|
limit?: number | undefined;
|
|
103
|
+
search?: string | undefined;
|
|
103
104
|
isActive?: "true" | "false" | undefined;
|
|
104
|
-
page?: number | undefined;
|
|
105
105
|
sortBy?: "createdAt" | "updatedAt" | "name" | "stock" | undefined;
|
|
106
106
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
107
107
|
minStock?: number | undefined;
|
|
108
108
|
}, {
|
|
109
|
-
|
|
109
|
+
page?: string | undefined;
|
|
110
110
|
limit?: string | undefined;
|
|
111
|
+
search?: string | undefined;
|
|
111
112
|
isActive?: "true" | "false" | undefined;
|
|
112
|
-
page?: string | undefined;
|
|
113
113
|
sortBy?: "createdAt" | "updatedAt" | "name" | "stock" | undefined;
|
|
114
114
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
115
115
|
minStock?: string | undefined;
|
|
116
116
|
}>;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
118
|
query: {
|
|
119
|
-
|
|
119
|
+
page?: number | undefined;
|
|
120
120
|
limit?: number | undefined;
|
|
121
|
+
search?: string | undefined;
|
|
121
122
|
isActive?: "true" | "false" | undefined;
|
|
122
|
-
page?: number | undefined;
|
|
123
123
|
sortBy?: "createdAt" | "updatedAt" | "name" | "stock" | undefined;
|
|
124
124
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
125
125
|
minStock?: number | undefined;
|
|
126
126
|
};
|
|
127
127
|
}, {
|
|
128
128
|
query: {
|
|
129
|
-
|
|
129
|
+
page?: string | undefined;
|
|
130
130
|
limit?: string | undefined;
|
|
131
|
+
search?: string | undefined;
|
|
131
132
|
isActive?: "true" | "false" | undefined;
|
|
132
|
-
page?: string | undefined;
|
|
133
133
|
sortBy?: "createdAt" | "updatedAt" | "name" | "stock" | undefined;
|
|
134
134
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
135
135
|
minStock?: string | undefined;
|
|
@@ -298,25 +298,25 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
298
298
|
}, "strip", z.ZodTypeAny, {
|
|
299
299
|
order: "asc" | "desc";
|
|
300
300
|
sortBy: "firstName" | "gender" | "lastLoginAt" | "createdAt";
|
|
301
|
-
|
|
301
|
+
page?: number | undefined;
|
|
302
302
|
limit?: number | undefined;
|
|
303
|
+
search?: string | undefined;
|
|
303
304
|
gender?: "male" | "female" | undefined;
|
|
304
305
|
isActive?: boolean | undefined;
|
|
305
306
|
isDeactivated?: boolean | undefined;
|
|
306
307
|
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
307
|
-
page?: number | undefined;
|
|
308
308
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
309
309
|
startDate?: string | undefined;
|
|
310
310
|
endDate?: string | undefined;
|
|
311
311
|
}, {
|
|
312
|
+
page?: string | undefined;
|
|
313
|
+
limit?: string | undefined;
|
|
312
314
|
search?: string | undefined;
|
|
313
315
|
order?: "asc" | "desc" | undefined;
|
|
314
|
-
limit?: string | undefined;
|
|
315
316
|
gender?: "male" | "female" | undefined;
|
|
316
317
|
isActive?: "true" | "false" | undefined;
|
|
317
318
|
isDeactivated?: "true" | "false" | undefined;
|
|
318
319
|
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
319
|
-
page?: string | undefined;
|
|
320
320
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
321
321
|
startDate?: string | undefined;
|
|
322
322
|
endDate?: string | undefined;
|
|
@@ -333,13 +333,13 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
333
333
|
query: {
|
|
334
334
|
order: "asc" | "desc";
|
|
335
335
|
sortBy: "firstName" | "gender" | "lastLoginAt" | "createdAt";
|
|
336
|
-
|
|
336
|
+
page?: number | undefined;
|
|
337
337
|
limit?: number | undefined;
|
|
338
|
+
search?: string | undefined;
|
|
338
339
|
gender?: "male" | "female" | undefined;
|
|
339
340
|
isActive?: boolean | undefined;
|
|
340
341
|
isDeactivated?: boolean | undefined;
|
|
341
342
|
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
342
|
-
page?: number | undefined;
|
|
343
343
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
344
344
|
startDate?: string | undefined;
|
|
345
345
|
endDate?: string | undefined;
|
|
@@ -349,14 +349,14 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
349
349
|
};
|
|
350
350
|
}, {
|
|
351
351
|
query: {
|
|
352
|
+
page?: string | undefined;
|
|
353
|
+
limit?: string | undefined;
|
|
352
354
|
search?: string | undefined;
|
|
353
355
|
order?: "asc" | "desc" | undefined;
|
|
354
|
-
limit?: string | undefined;
|
|
355
356
|
gender?: "male" | "female" | undefined;
|
|
356
357
|
isActive?: "true" | "false" | undefined;
|
|
357
358
|
isDeactivated?: "true" | "false" | undefined;
|
|
358
359
|
role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
359
|
-
page?: string | undefined;
|
|
360
360
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
361
361
|
startDate?: string | undefined;
|
|
362
362
|
endDate?: string | undefined;
|
|
@@ -382,15 +382,15 @@ export declare const viewProfileSchema: z.ZodObject<{
|
|
|
382
382
|
authorization: string;
|
|
383
383
|
};
|
|
384
384
|
params?: {} | undefined;
|
|
385
|
-
body?: {} | undefined;
|
|
386
385
|
query?: {} | undefined;
|
|
386
|
+
body?: {} | undefined;
|
|
387
387
|
}, {
|
|
388
388
|
headers: {
|
|
389
389
|
authorization: string;
|
|
390
390
|
};
|
|
391
391
|
params?: {} | undefined;
|
|
392
|
-
body?: {} | undefined;
|
|
393
392
|
query?: {} | undefined;
|
|
393
|
+
body?: {} | undefined;
|
|
394
394
|
}>;
|
|
395
395
|
export declare const passengerSignupSchema: z.ZodObject<{
|
|
396
396
|
body: z.ZodEffects<z.ZodObject<{
|
|
@@ -212,50 +212,50 @@ export declare const getUsersSchema: z.ZodObject<{
|
|
|
212
212
|
sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "firstName", "lastName", "gender"]>>;
|
|
213
213
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
214
214
|
}, "strip", z.ZodTypeAny, {
|
|
215
|
-
|
|
215
|
+
page?: number | undefined;
|
|
216
216
|
limit?: number | undefined;
|
|
217
|
+
search?: string | undefined;
|
|
217
218
|
gender?: "male" | "female" | undefined;
|
|
218
219
|
isActive?: "true" | "false" | undefined;
|
|
219
220
|
isDeactivated?: "true" | "false" | undefined;
|
|
220
221
|
role?: string | undefined;
|
|
221
|
-
page?: number | undefined;
|
|
222
222
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
223
223
|
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
224
224
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
225
225
|
}, {
|
|
226
|
-
|
|
226
|
+
page?: string | undefined;
|
|
227
227
|
limit?: string | undefined;
|
|
228
|
+
search?: string | undefined;
|
|
228
229
|
gender?: "male" | "female" | undefined;
|
|
229
230
|
isActive?: "true" | "false" | undefined;
|
|
230
231
|
isDeactivated?: "true" | "false" | undefined;
|
|
231
232
|
role?: string | undefined;
|
|
232
|
-
page?: string | undefined;
|
|
233
233
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
234
234
|
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
235
235
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
236
236
|
}>;
|
|
237
237
|
}, "strip", z.ZodTypeAny, {
|
|
238
238
|
query: {
|
|
239
|
-
|
|
239
|
+
page?: number | undefined;
|
|
240
240
|
limit?: number | undefined;
|
|
241
|
+
search?: string | undefined;
|
|
241
242
|
gender?: "male" | "female" | undefined;
|
|
242
243
|
isActive?: "true" | "false" | undefined;
|
|
243
244
|
isDeactivated?: "true" | "false" | undefined;
|
|
244
245
|
role?: string | undefined;
|
|
245
|
-
page?: number | undefined;
|
|
246
246
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
247
247
|
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
248
248
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
249
249
|
};
|
|
250
250
|
}, {
|
|
251
251
|
query: {
|
|
252
|
-
|
|
252
|
+
page?: string | undefined;
|
|
253
253
|
limit?: string | undefined;
|
|
254
|
+
search?: string | undefined;
|
|
254
255
|
gender?: "male" | "female" | undefined;
|
|
255
256
|
isActive?: "true" | "false" | undefined;
|
|
256
257
|
isDeactivated?: "true" | "false" | undefined;
|
|
257
258
|
role?: string | undefined;
|
|
258
|
-
page?: string | undefined;
|
|
259
259
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
260
260
|
sortBy?: "firstName" | "lastName" | "gender" | "createdAt" | undefined;
|
|
261
261
|
sortOrder?: "DESC" | "ASC" | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vr-commons",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.137",
|
|
4
4
|
"description": "Shared functions package",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"rimraf": "^5.0.5",
|
|
104
104
|
"streamifier": "^0.1.1",
|
|
105
105
|
"typescript": "^5.3.3",
|
|
106
|
-
"vr-models": "^1.0.
|
|
106
|
+
"vr-models": "^1.0.70",
|
|
107
107
|
"zod": "^3.25.20"
|
|
108
108
|
},
|
|
109
109
|
"dependencies": {
|