vr-commons 1.0.83 → 1.0.85
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.
|
@@ -6,30 +6,30 @@ export declare const riderLoginSchema: z.ZodObject<{
|
|
|
6
6
|
phoneNumber: z.ZodString;
|
|
7
7
|
nationalId: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
nationalId: string;
|
|
10
9
|
phoneNumber: string;
|
|
11
|
-
}, {
|
|
12
10
|
nationalId: string;
|
|
11
|
+
}, {
|
|
13
12
|
phoneNumber: string;
|
|
13
|
+
nationalId: string;
|
|
14
14
|
}>;
|
|
15
15
|
query: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
16
16
|
params: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
17
17
|
headers: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
19
|
body: {
|
|
20
|
-
nationalId: string;
|
|
21
20
|
phoneNumber: string;
|
|
21
|
+
nationalId: string;
|
|
22
22
|
};
|
|
23
|
-
query?: {} | undefined;
|
|
24
23
|
params?: {} | undefined;
|
|
24
|
+
query?: {} | undefined;
|
|
25
25
|
headers?: {} | undefined;
|
|
26
26
|
}, {
|
|
27
27
|
body: {
|
|
28
|
-
nationalId: string;
|
|
29
28
|
phoneNumber: string;
|
|
29
|
+
nationalId: string;
|
|
30
30
|
};
|
|
31
|
-
query?: {} | undefined;
|
|
32
31
|
params?: {} | undefined;
|
|
32
|
+
query?: {} | undefined;
|
|
33
33
|
headers?: {} | undefined;
|
|
34
34
|
}>;
|
|
35
35
|
export declare const userLoginSchema: z.ZodObject<{
|
|
@@ -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;
|
|
99
101
|
firstName: string;
|
|
100
102
|
lastName: string;
|
|
101
|
-
password: string;
|
|
102
|
-
phoneNumber: string;
|
|
103
103
|
email?: string | undefined;
|
|
104
104
|
}, {
|
|
105
|
+
phoneNumber: string;
|
|
106
|
+
password: string;
|
|
105
107
|
firstName: string;
|
|
106
108
|
lastName: string;
|
|
107
|
-
password: string;
|
|
108
|
-
phoneNumber: string;
|
|
109
109
|
email?: string | undefined;
|
|
110
110
|
}>;
|
|
111
111
|
}, "strip", z.ZodTypeAny, {
|
|
112
112
|
body: {
|
|
113
|
+
phoneNumber: string;
|
|
114
|
+
password: string;
|
|
113
115
|
firstName: string;
|
|
114
116
|
lastName: string;
|
|
115
|
-
password: string;
|
|
116
|
-
phoneNumber: string;
|
|
117
117
|
email?: string | undefined;
|
|
118
118
|
};
|
|
119
119
|
}, {
|
|
120
120
|
body: {
|
|
121
|
+
phoneNumber: string;
|
|
122
|
+
password: string;
|
|
121
123
|
firstName: string;
|
|
122
124
|
lastName: string;
|
|
123
|
-
password: string;
|
|
124
|
-
phoneNumber: string;
|
|
125
125
|
email?: string | undefined;
|
|
126
126
|
};
|
|
127
127
|
}>;
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const listUserPaymentPlansSchema: z.ZodObject<{
|
|
3
3
|
query: z.ZodObject<{
|
|
4
|
-
status: z.ZodOptional<z.ZodEnum<["
|
|
4
|
+
status: z.ZodOptional<z.ZodEnum<["ACTIVE", "COMPLETED", "DEFAULTED", "CANCELLED"]>>;
|
|
5
5
|
page: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, z.ZodNumber>;
|
|
6
6
|
limit: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, z.ZodNumber>;
|
|
7
7
|
sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "nextInstallmentDueAt", "status"]>>;
|
|
8
8
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
limit: number;
|
|
11
10
|
page: number;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
limit: number;
|
|
12
|
+
status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
13
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
14
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
15
15
|
}, {
|
|
16
|
-
|
|
17
|
-
status?: "PENDING" | "SUCCESSFUL" | "FAILED" | undefined;
|
|
16
|
+
status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
18
17
|
page?: string | undefined;
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
limit?: string | undefined;
|
|
19
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
20
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
query: {
|
|
24
|
-
limit: number;
|
|
25
24
|
page: number;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
limit: number;
|
|
26
|
+
status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
27
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
28
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
29
29
|
};
|
|
30
30
|
}, {
|
|
31
31
|
query: {
|
|
32
|
-
|
|
33
|
-
status?: "PENDING" | "SUCCESSFUL" | "FAILED" | undefined;
|
|
32
|
+
status?: "ACTIVE" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
34
33
|
page?: string | undefined;
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
limit?: string | undefined;
|
|
35
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
36
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
37
37
|
};
|
|
38
38
|
}>;
|
|
39
39
|
export declare const getUserPaymentPlanSchema: z.ZodObject<{
|
|
@@ -6,7 +6,7 @@ const vr_models_1 = require("vr-models");
|
|
|
6
6
|
const uuidSchema = zod_1.z.string().uuid("Invalid ID format");
|
|
7
7
|
exports.listUserPaymentPlansSchema = zod_1.z.object({
|
|
8
8
|
query: zod_1.z.object({
|
|
9
|
-
status: zod_1.z.enum(vr_models_1.
|
|
9
|
+
status: zod_1.z.enum(vr_models_1.PAYMENT_PLAN_STATUS).optional(),
|
|
10
10
|
page: zod_1.z
|
|
11
11
|
.string()
|
|
12
12
|
.optional()
|
|
@@ -13,44 +13,44 @@ export declare const upgradeToRiderSchema: z.ZodObject<{
|
|
|
13
13
|
phoneNumber: z.ZodEffects<z.ZodString, string, string>;
|
|
14
14
|
plateNumber: z.ZodOptional<z.ZodString>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
jacketId: string;
|
|
17
|
-
nationalId: string;
|
|
18
16
|
phoneNumber: string;
|
|
17
|
+
nationalId: string;
|
|
18
|
+
jacketId: string;
|
|
19
19
|
plateNumber?: string | undefined;
|
|
20
20
|
}, {
|
|
21
|
-
jacketId: string;
|
|
22
|
-
nationalId: string;
|
|
23
21
|
phoneNumber: string;
|
|
22
|
+
nationalId: string;
|
|
23
|
+
jacketId: string;
|
|
24
24
|
plateNumber?: string | undefined;
|
|
25
25
|
}>, {
|
|
26
|
-
jacketId: string;
|
|
27
|
-
nationalId: string;
|
|
28
26
|
phoneNumber: string;
|
|
27
|
+
nationalId: string;
|
|
28
|
+
jacketId: string;
|
|
29
29
|
plateNumber?: string | undefined;
|
|
30
30
|
}, {
|
|
31
|
-
jacketId: string;
|
|
32
|
-
nationalId: string;
|
|
33
31
|
phoneNumber: string;
|
|
32
|
+
nationalId: string;
|
|
33
|
+
jacketId: string;
|
|
34
34
|
plateNumber?: string | undefined;
|
|
35
35
|
}>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
params: {
|
|
38
|
+
userId: string;
|
|
39
|
+
};
|
|
37
40
|
body: {
|
|
38
|
-
jacketId: string;
|
|
39
|
-
nationalId: string;
|
|
40
41
|
phoneNumber: string;
|
|
42
|
+
nationalId: string;
|
|
43
|
+
jacketId: string;
|
|
41
44
|
plateNumber?: string | undefined;
|
|
42
45
|
};
|
|
46
|
+
}, {
|
|
43
47
|
params: {
|
|
44
48
|
userId: string;
|
|
45
49
|
};
|
|
46
|
-
}, {
|
|
47
50
|
body: {
|
|
48
|
-
jacketId: string;
|
|
49
|
-
nationalId: string;
|
|
50
51
|
phoneNumber: string;
|
|
52
|
+
nationalId: string;
|
|
53
|
+
jacketId: string;
|
|
51
54
|
plateNumber?: string | undefined;
|
|
52
55
|
};
|
|
53
|
-
params: {
|
|
54
|
-
userId: string;
|
|
55
|
-
};
|
|
56
56
|
}>;
|