vr-commons 1.0.148 → 1.0.150
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 +17 -0
- package/dist/utils/admin.device.utils.js +57 -0
- package/dist/validations/admin.devicePayment.validations.d.ts +24 -24
- package/dist/validations/admin.devices.validations.d.ts +137 -83
- package/dist/validations/admin.devices.validations.js +67 -36
- package/dist/validations/admin.installment.validations.d.ts +8 -8
- 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 +8 -8
- package/dist/validations/bans.validations.d.ts +8 -8
- package/dist/validations/devicePaymentPlan.validations.d.ts +12 -12
- package/dist/validations/eventlogs.admin.validations.d.ts +15 -15
- package/dist/validations/index.d.ts +1 -1
- package/dist/validations/index.js +8 -7
- package/dist/validations/moderation.validations.d.ts +99 -99
- package/dist/validations/pricings.validations.d.ts +30 -30
- package/dist/validations/product.validations.d.ts +24 -24
- package/dist/validations/profiles.validations.d.ts +42 -42
- package/dist/validations/suspensions.validations.d.ts +8 -8
- package/dist/validations/users.admin.validations.d.ts +40 -40
- package/package.json +2 -2
|
@@ -6,28 +6,28 @@ export declare const getInstallmentsSchema: z.ZodObject<{
|
|
|
6
6
|
page: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
|
|
7
7
|
limit: z.ZodOptional<z.ZodEffects<z.ZodString, number, string>>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
limit?: number | undefined;
|
|
10
9
|
status?: "PENDING" | "PAID" | "OVERDUE" | "SKIPPED" | undefined;
|
|
11
10
|
page?: number | undefined;
|
|
11
|
+
limit?: number | undefined;
|
|
12
12
|
planId?: string | undefined;
|
|
13
13
|
}, {
|
|
14
|
-
limit?: string | undefined;
|
|
15
14
|
status?: "PENDING" | "PAID" | "OVERDUE" | "SKIPPED" | undefined;
|
|
16
15
|
page?: string | undefined;
|
|
16
|
+
limit?: string | undefined;
|
|
17
17
|
planId?: string | undefined;
|
|
18
18
|
}>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
query: {
|
|
21
|
-
limit?: number | undefined;
|
|
22
21
|
status?: "PENDING" | "PAID" | "OVERDUE" | "SKIPPED" | undefined;
|
|
23
22
|
page?: number | undefined;
|
|
23
|
+
limit?: number | undefined;
|
|
24
24
|
planId?: string | undefined;
|
|
25
25
|
};
|
|
26
26
|
}, {
|
|
27
27
|
query: {
|
|
28
|
-
limit?: string | undefined;
|
|
29
28
|
status?: "PENDING" | "PAID" | "OVERDUE" | "SKIPPED" | undefined;
|
|
30
29
|
page?: string | undefined;
|
|
30
|
+
limit?: string | undefined;
|
|
31
31
|
planId?: string | undefined;
|
|
32
32
|
};
|
|
33
33
|
}>;
|
|
@@ -79,6 +79,9 @@ export declare const payInstallmentSchema: z.ZodObject<{
|
|
|
79
79
|
notes?: string | undefined;
|
|
80
80
|
}>;
|
|
81
81
|
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
params: {
|
|
83
|
+
id: string;
|
|
84
|
+
};
|
|
82
85
|
body: {
|
|
83
86
|
amount: number;
|
|
84
87
|
provider: "AIRTEL_MONEY" | "CASH" | "MOMO_PAY";
|
|
@@ -87,10 +90,10 @@ export declare const payInstallmentSchema: z.ZodObject<{
|
|
|
87
90
|
metadata?: Record<string, any> | undefined;
|
|
88
91
|
notes?: string | undefined;
|
|
89
92
|
};
|
|
93
|
+
}, {
|
|
90
94
|
params: {
|
|
91
95
|
id: string;
|
|
92
96
|
};
|
|
93
|
-
}, {
|
|
94
97
|
body: {
|
|
95
98
|
amount: number;
|
|
96
99
|
providerReference: string;
|
|
@@ -99,7 +102,4 @@ export declare const payInstallmentSchema: z.ZodObject<{
|
|
|
99
102
|
provider?: "AIRTEL_MONEY" | "CASH" | "MOMO_PAY" | undefined;
|
|
100
103
|
notes?: string | undefined;
|
|
101
104
|
};
|
|
102
|
-
params: {
|
|
103
|
-
id: string;
|
|
104
|
-
};
|
|
105
105
|
}>;
|
|
@@ -616,6 +616,9 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
616
616
|
sentryDsn?: string | null | undefined;
|
|
617
617
|
}>;
|
|
618
618
|
}, "strip", z.ZodTypeAny, {
|
|
619
|
+
params: {
|
|
620
|
+
id: string;
|
|
621
|
+
};
|
|
619
622
|
body: {
|
|
620
623
|
appName?: string | undefined;
|
|
621
624
|
appShortName?: string | null | undefined;
|
|
@@ -692,10 +695,10 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
692
695
|
facebookPixelId?: string | null | undefined;
|
|
693
696
|
sentryDsn?: string | null | undefined;
|
|
694
697
|
};
|
|
698
|
+
}, {
|
|
695
699
|
params: {
|
|
696
700
|
id: string;
|
|
697
701
|
};
|
|
698
|
-
}, {
|
|
699
702
|
body: {
|
|
700
703
|
appName?: string | undefined;
|
|
701
704
|
appShortName?: string | null | undefined;
|
|
@@ -772,9 +775,6 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
772
775
|
facebookPixelId?: string | null | undefined;
|
|
773
776
|
sentryDsn?: string | null | undefined;
|
|
774
777
|
};
|
|
775
|
-
params: {
|
|
776
|
-
id: string;
|
|
777
|
-
};
|
|
778
778
|
}>;
|
|
779
779
|
export declare const listAppSpecsSchema: z.ZodObject<{
|
|
780
780
|
query: z.ZodObject<{
|
|
@@ -785,37 +785,37 @@ export declare const listAppSpecsSchema: z.ZodObject<{
|
|
|
785
785
|
sortBy: z.ZodOptional<z.ZodEnum<["version", "createdAt", "updatedAt"]>>;
|
|
786
786
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
787
787
|
}, "strip", z.ZodTypeAny, {
|
|
788
|
-
limit: number;
|
|
789
788
|
page: number;
|
|
789
|
+
limit: number;
|
|
790
790
|
search?: string | undefined;
|
|
791
|
-
isActive?: "true" | "false" | undefined;
|
|
792
791
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
793
|
-
sortOrder?: "
|
|
792
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
793
|
+
isActive?: "true" | "false" | undefined;
|
|
794
794
|
}, {
|
|
795
|
+
page?: string | undefined;
|
|
795
796
|
limit?: string | undefined;
|
|
796
797
|
search?: string | undefined;
|
|
797
|
-
isActive?: "true" | "false" | undefined;
|
|
798
|
-
page?: string | undefined;
|
|
799
798
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
800
|
-
sortOrder?: "
|
|
799
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
800
|
+
isActive?: "true" | "false" | undefined;
|
|
801
801
|
}>;
|
|
802
802
|
}, "strip", z.ZodTypeAny, {
|
|
803
803
|
query: {
|
|
804
|
-
limit: number;
|
|
805
804
|
page: number;
|
|
805
|
+
limit: number;
|
|
806
806
|
search?: string | undefined;
|
|
807
|
-
isActive?: "true" | "false" | undefined;
|
|
808
807
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
809
|
-
sortOrder?: "
|
|
808
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
809
|
+
isActive?: "true" | "false" | undefined;
|
|
810
810
|
};
|
|
811
811
|
}, {
|
|
812
812
|
query: {
|
|
813
|
+
page?: string | undefined;
|
|
813
814
|
limit?: string | undefined;
|
|
814
815
|
search?: string | undefined;
|
|
815
|
-
isActive?: "true" | "false" | undefined;
|
|
816
|
-
page?: string | undefined;
|
|
817
816
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
818
|
-
sortOrder?: "
|
|
817
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
818
|
+
isActive?: "true" | "false" | undefined;
|
|
819
819
|
};
|
|
820
820
|
}>;
|
|
821
821
|
export declare const getAppSpecsSchema: z.ZodObject<{
|
|
@@ -15,19 +15,19 @@ export declare const submitBanAppealSchema: z.ZodObject<{
|
|
|
15
15
|
appealReason: string;
|
|
16
16
|
}>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
body: {
|
|
19
|
-
appealReason: string;
|
|
20
|
-
};
|
|
21
18
|
params: {
|
|
22
19
|
banId: string;
|
|
23
20
|
};
|
|
24
|
-
}, {
|
|
25
21
|
body: {
|
|
26
22
|
appealReason: string;
|
|
27
23
|
};
|
|
24
|
+
}, {
|
|
28
25
|
params: {
|
|
29
26
|
banId: string;
|
|
30
27
|
};
|
|
28
|
+
body: {
|
|
29
|
+
appealReason: string;
|
|
30
|
+
};
|
|
31
31
|
}>;
|
|
32
32
|
export declare const submitSuspensionAppealSchema: z.ZodObject<{
|
|
33
33
|
params: z.ZodObject<{
|
|
@@ -45,17 +45,17 @@ export declare const submitSuspensionAppealSchema: z.ZodObject<{
|
|
|
45
45
|
appealReason: string;
|
|
46
46
|
}>;
|
|
47
47
|
}, "strip", z.ZodTypeAny, {
|
|
48
|
-
body: {
|
|
49
|
-
appealReason: string;
|
|
50
|
-
};
|
|
51
48
|
params: {
|
|
52
49
|
suspensionId: string;
|
|
53
50
|
};
|
|
54
|
-
}, {
|
|
55
51
|
body: {
|
|
56
52
|
appealReason: string;
|
|
57
53
|
};
|
|
54
|
+
}, {
|
|
58
55
|
params: {
|
|
59
56
|
suspensionId: string;
|
|
60
57
|
};
|
|
58
|
+
body: {
|
|
59
|
+
appealReason: string;
|
|
60
|
+
};
|
|
61
61
|
}>;
|
|
@@ -98,7 +98,7 @@ export declare const registerSchema: z.ZodObject<{
|
|
|
98
98
|
firstName: string;
|
|
99
99
|
lastName: string;
|
|
100
100
|
password: string;
|
|
101
|
-
role: "
|
|
101
|
+
role: "PASSENGER" | "RIDER";
|
|
102
102
|
contactValue: string;
|
|
103
103
|
gender?: "male" | "female" | undefined;
|
|
104
104
|
birthDate?: number | undefined;
|
|
@@ -113,14 +113,14 @@ export declare const registerSchema: z.ZodObject<{
|
|
|
113
113
|
birthDate?: number | undefined;
|
|
114
114
|
birthMonth?: number | undefined;
|
|
115
115
|
birthYear?: number | undefined;
|
|
116
|
-
role?: "
|
|
116
|
+
role?: "PASSENGER" | "RIDER" | undefined;
|
|
117
117
|
}>;
|
|
118
118
|
}, "strip", z.ZodTypeAny, {
|
|
119
119
|
body: {
|
|
120
120
|
firstName: string;
|
|
121
121
|
lastName: string;
|
|
122
122
|
password: string;
|
|
123
|
-
role: "
|
|
123
|
+
role: "PASSENGER" | "RIDER";
|
|
124
124
|
contactValue: string;
|
|
125
125
|
gender?: "male" | "female" | undefined;
|
|
126
126
|
birthDate?: number | undefined;
|
|
@@ -137,7 +137,7 @@ export declare const registerSchema: z.ZodObject<{
|
|
|
137
137
|
birthDate?: number | undefined;
|
|
138
138
|
birthMonth?: number | undefined;
|
|
139
139
|
birthYear?: number | undefined;
|
|
140
|
-
role?: "
|
|
140
|
+
role?: "PASSENGER" | "RIDER" | undefined;
|
|
141
141
|
};
|
|
142
142
|
}>;
|
|
143
143
|
export declare const riderPasswordRegex: RegExp;
|
|
@@ -362,7 +362,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
362
362
|
firstName: string;
|
|
363
363
|
lastName: string;
|
|
364
364
|
password: string;
|
|
365
|
-
role: "
|
|
365
|
+
role: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
366
366
|
contactValue: string;
|
|
367
367
|
jacketId?: string | undefined;
|
|
368
368
|
plateNumber?: string | undefined;
|
|
@@ -374,7 +374,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
374
374
|
firstName: string;
|
|
375
375
|
lastName: string;
|
|
376
376
|
password: string;
|
|
377
|
-
role: "
|
|
377
|
+
role: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
378
378
|
contactValue: string;
|
|
379
379
|
jacketId?: string | undefined;
|
|
380
380
|
plateNumber?: string | undefined;
|
|
@@ -388,7 +388,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
388
388
|
firstName: string;
|
|
389
389
|
lastName: string;
|
|
390
390
|
password: string;
|
|
391
|
-
role: "
|
|
391
|
+
role: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
392
392
|
contactValue: string;
|
|
393
393
|
jacketId?: string | undefined;
|
|
394
394
|
plateNumber?: string | undefined;
|
|
@@ -402,7 +402,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
402
402
|
firstName: string;
|
|
403
403
|
lastName: string;
|
|
404
404
|
password: string;
|
|
405
|
-
role: "
|
|
405
|
+
role: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
406
406
|
contactValue: string;
|
|
407
407
|
jacketId?: string | undefined;
|
|
408
408
|
plateNumber?: string | undefined;
|
|
@@ -32,19 +32,19 @@ export declare const getUserRestrictionsSchema: z.ZodObject<{
|
|
|
32
32
|
includeResolved?: "true" | "false" | undefined;
|
|
33
33
|
}>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
query: {
|
|
36
|
-
includeResolved?: "true" | "false" | undefined;
|
|
37
|
-
};
|
|
38
35
|
params: {
|
|
39
36
|
userId: string;
|
|
40
37
|
};
|
|
41
|
-
}, {
|
|
42
38
|
query: {
|
|
43
39
|
includeResolved?: "true" | "false" | undefined;
|
|
44
40
|
};
|
|
41
|
+
}, {
|
|
45
42
|
params: {
|
|
46
43
|
userId: string;
|
|
47
44
|
};
|
|
45
|
+
query: {
|
|
46
|
+
includeResolved?: "true" | "false" | undefined;
|
|
47
|
+
};
|
|
48
48
|
}>;
|
|
49
49
|
export declare const createBanSchema: z.ZodObject<{
|
|
50
50
|
params: z.ZodObject<{
|
|
@@ -65,19 +65,19 @@ export declare const createBanSchema: z.ZodObject<{
|
|
|
65
65
|
isPermanent?: boolean | undefined;
|
|
66
66
|
}>;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
params: {
|
|
69
|
+
userId: string;
|
|
70
|
+
};
|
|
68
71
|
body: {
|
|
69
72
|
reason: string;
|
|
70
73
|
isPermanent: boolean;
|
|
71
74
|
};
|
|
75
|
+
}, {
|
|
72
76
|
params: {
|
|
73
77
|
userId: string;
|
|
74
78
|
};
|
|
75
|
-
}, {
|
|
76
79
|
body: {
|
|
77
80
|
reason: string;
|
|
78
81
|
isPermanent?: boolean | undefined;
|
|
79
82
|
};
|
|
80
|
-
params: {
|
|
81
|
-
userId: string;
|
|
82
|
-
};
|
|
83
83
|
}>;
|
|
@@ -7,33 +7,33 @@ export declare const listUserPaymentPlansSchema: z.ZodObject<{
|
|
|
7
7
|
sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "nextInstallmentDueAt", "status"]>>;
|
|
8
8
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
limit: number;
|
|
11
10
|
page: number;
|
|
11
|
+
limit: number;
|
|
12
12
|
status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
13
|
-
sortBy?: "
|
|
14
|
-
sortOrder?: "
|
|
13
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
14
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
15
15
|
}, {
|
|
16
|
-
limit?: string | undefined;
|
|
17
16
|
status?: "ACTIVE" | "PENDING" | "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;
|
|
25
|
+
limit: number;
|
|
26
26
|
status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
27
|
-
sortBy?: "
|
|
28
|
-
sortOrder?: "
|
|
27
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
28
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
29
29
|
};
|
|
30
30
|
}, {
|
|
31
31
|
query: {
|
|
32
|
-
limit?: string | undefined;
|
|
33
32
|
status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
34
33
|
page?: string | undefined;
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
limit?: string | undefined;
|
|
35
|
+
sortBy?: "status" | "createdAt" | "updatedAt" | "nextInstallmentDueAt" | undefined;
|
|
36
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
37
37
|
};
|
|
38
38
|
}>;
|
|
39
39
|
export declare const getUserPaymentPlanSchema: z.ZodObject<{
|
|
@@ -18,14 +18,14 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
18
18
|
sortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
|
|
19
19
|
hasDeviceSession: z.ZodEffects<z.ZodOptional<z.ZodString>, boolean, string | undefined>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
limit: number;
|
|
22
21
|
page: number;
|
|
22
|
+
limit: number;
|
|
23
23
|
sortBy: "createdAt" | "actorType" | "action" | "entity";
|
|
24
|
-
sortOrder: "
|
|
24
|
+
sortOrder: "ASC" | "DESC";
|
|
25
25
|
hasDeviceSession: boolean;
|
|
26
26
|
search?: string | undefined;
|
|
27
27
|
actorId?: string | undefined;
|
|
28
|
-
actorType?: "
|
|
28
|
+
actorType?: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
29
29
|
action?: string | undefined;
|
|
30
30
|
entity?: string | undefined;
|
|
31
31
|
entityId?: string | undefined;
|
|
@@ -35,37 +35,37 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
35
35
|
toDate?: string | undefined;
|
|
36
36
|
actorName?: string | undefined;
|
|
37
37
|
}, {
|
|
38
|
+
page?: string | undefined;
|
|
38
39
|
limit?: string | undefined;
|
|
39
40
|
search?: string | undefined;
|
|
41
|
+
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
42
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
40
43
|
actorId?: string | undefined;
|
|
41
|
-
actorType?: "
|
|
44
|
+
actorType?: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
42
45
|
action?: string | undefined;
|
|
43
46
|
entity?: string | undefined;
|
|
44
47
|
entityId?: string | undefined;
|
|
45
48
|
firstName?: string | undefined;
|
|
46
49
|
lastName?: string | undefined;
|
|
47
|
-
page?: string | undefined;
|
|
48
|
-
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
49
50
|
fromDate?: string | undefined;
|
|
50
51
|
toDate?: string | undefined;
|
|
51
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
52
52
|
actorName?: string | undefined;
|
|
53
53
|
hasDeviceSession?: string | undefined;
|
|
54
54
|
}>, any, {
|
|
55
|
+
page?: string | undefined;
|
|
55
56
|
limit?: string | undefined;
|
|
56
57
|
search?: string | undefined;
|
|
58
|
+
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
59
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
57
60
|
actorId?: string | undefined;
|
|
58
|
-
actorType?: "
|
|
61
|
+
actorType?: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
59
62
|
action?: string | undefined;
|
|
60
63
|
entity?: string | undefined;
|
|
61
64
|
entityId?: string | undefined;
|
|
62
65
|
firstName?: string | undefined;
|
|
63
66
|
lastName?: string | undefined;
|
|
64
|
-
page?: string | undefined;
|
|
65
|
-
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
66
67
|
fromDate?: string | undefined;
|
|
67
68
|
toDate?: string | undefined;
|
|
68
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
69
69
|
actorName?: string | undefined;
|
|
70
70
|
hasDeviceSession?: string | undefined;
|
|
71
71
|
}>;
|
|
@@ -73,20 +73,20 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
73
73
|
query?: any;
|
|
74
74
|
}, {
|
|
75
75
|
query: {
|
|
76
|
+
page?: string | undefined;
|
|
76
77
|
limit?: string | undefined;
|
|
77
78
|
search?: string | undefined;
|
|
79
|
+
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
80
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
78
81
|
actorId?: string | undefined;
|
|
79
|
-
actorType?: "
|
|
82
|
+
actorType?: "PASSENGER" | "RIDER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
80
83
|
action?: string | undefined;
|
|
81
84
|
entity?: string | undefined;
|
|
82
85
|
entityId?: string | undefined;
|
|
83
86
|
firstName?: string | undefined;
|
|
84
87
|
lastName?: string | undefined;
|
|
85
|
-
page?: string | undefined;
|
|
86
|
-
sortBy?: "createdAt" | "actorType" | "action" | "entity" | undefined;
|
|
87
88
|
fromDate?: string | undefined;
|
|
88
89
|
toDate?: string | undefined;
|
|
89
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
90
90
|
actorName?: string | undefined;
|
|
91
91
|
hasDeviceSession?: string | undefined;
|
|
92
92
|
};
|
|
@@ -10,6 +10,6 @@ export { updateProfileSchema, requestPhoneChangeSchema, verifyPhoneChangeSchema,
|
|
|
10
10
|
export { updateAdminSchema, updateRiderSchema, deleteUserSchema, getUserSchema, getUsersSchema, hireAdminSchema, promoteAdminSchema, demoteAdminSchema, fireEmployeeSchema, upgradeToRiderSchema, resetPasswordSchema, } from "./users.admin.validations";
|
|
11
11
|
export { createProductSchema, updateProductSchema, getProductSchema, getProductsSchema, deactivateProductSchema, activateProductSchema, deleteProductSchema, updateStockSchema, } from "./product.validations";
|
|
12
12
|
export { createPricingSchema, updatePricingSchema, getPricingSchema, getPricingsSchema, deletePricingSchema, } from "./pricings.validations";
|
|
13
|
-
export { checkAvailabilitySchema, createDevicePairsSchema,
|
|
13
|
+
export { checkAvailabilitySchema, createDevicePairsSchema, lockDevicesSchema, unlockDevicesSchema, deleteDevicesByPairsSchema, makeDevicesPermanentSchema, permanentDeleteDevicesByPairsSchema, disableDevicesSchema, getDeviceSchema, getDevicesSchema, } from "./admin.devices.validations";
|
|
14
14
|
export { createPlanSchema, limitedUpdateSchema, getDevicePlanSchema, getPlanSchema, getUserPlansSchema, listPlansSchema, recordPaymentSchema, deletePlanSchema, } from "./admin.devicePayment.validations";
|
|
15
15
|
export { listEventLogsSchema, getEventLogSchema, } from "./eventlogs.admin.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.getDevicesSchema = exports.getDeviceSchema = exports.disableDevicesSchema = exports.permanentDeleteDevicesByPairsSchema = exports.makeDevicesPermanentSchema = exports.deleteDevicesByPairsSchema = exports.unlockDevicesSchema = exports.lockDevicesSchema = exports.createDevicePairsSchema = 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 = 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");
|
|
@@ -116,13 +116,14 @@ Object.defineProperty(exports, "deletePricingSchema", { enumerable: true, get: f
|
|
|
116
116
|
var admin_devices_validations_1 = require("./admin.devices.validations");
|
|
117
117
|
Object.defineProperty(exports, "checkAvailabilitySchema", { enumerable: true, get: function () { return admin_devices_validations_1.checkAvailabilitySchema; } });
|
|
118
118
|
Object.defineProperty(exports, "createDevicePairsSchema", { enumerable: true, get: function () { return admin_devices_validations_1.createDevicePairsSchema; } });
|
|
119
|
-
Object.defineProperty(exports, "
|
|
120
|
-
Object.defineProperty(exports, "
|
|
119
|
+
Object.defineProperty(exports, "lockDevicesSchema", { enumerable: true, get: function () { return admin_devices_validations_1.lockDevicesSchema; } });
|
|
120
|
+
Object.defineProperty(exports, "unlockDevicesSchema", { enumerable: true, get: function () { return admin_devices_validations_1.unlockDevicesSchema; } });
|
|
121
|
+
Object.defineProperty(exports, "deleteDevicesByPairsSchema", { enumerable: true, get: function () { return admin_devices_validations_1.deleteDevicesByPairsSchema; } });
|
|
122
|
+
Object.defineProperty(exports, "makeDevicesPermanentSchema", { enumerable: true, get: function () { return admin_devices_validations_1.makeDevicesPermanentSchema; } });
|
|
123
|
+
Object.defineProperty(exports, "permanentDeleteDevicesByPairsSchema", { enumerable: true, get: function () { return admin_devices_validations_1.permanentDeleteDevicesByPairsSchema; } });
|
|
124
|
+
Object.defineProperty(exports, "disableDevicesSchema", { enumerable: true, get: function () { return admin_devices_validations_1.disableDevicesSchema; } });
|
|
121
125
|
Object.defineProperty(exports, "getDeviceSchema", { enumerable: true, get: function () { return admin_devices_validations_1.getDeviceSchema; } });
|
|
122
126
|
Object.defineProperty(exports, "getDevicesSchema", { enumerable: true, get: function () { return admin_devices_validations_1.getDevicesSchema; } });
|
|
123
|
-
Object.defineProperty(exports, "deleteDeviceSchema", { enumerable: true, get: function () { return admin_devices_validations_1.deleteDeviceSchema; } });
|
|
124
|
-
Object.defineProperty(exports, "disableDeviceSchema", { enumerable: true, get: function () { return admin_devices_validations_1.disableDeviceSchema; } });
|
|
125
|
-
Object.defineProperty(exports, "makePermanentSchema", { enumerable: true, get: function () { return admin_devices_validations_1.makePermanentSchema; } });
|
|
126
127
|
var admin_devicePayment_validations_1 = require("./admin.devicePayment.validations");
|
|
127
128
|
Object.defineProperty(exports, "createPlanSchema", { enumerable: true, get: function () { return admin_devicePayment_validations_1.createPlanSchema; } });
|
|
128
129
|
Object.defineProperty(exports, "limitedUpdateSchema", { enumerable: true, get: function () { return admin_devicePayment_validations_1.limitedUpdateSchema; } });
|