vr-commons 1.0.147 → 1.0.148
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 -1
- package/dist/utils/admin.device.utils.js +45 -0
- package/dist/validations/admin.devicePayment.validations.d.ts +20 -20
- package/dist/validations/admin.devices.validations.d.ts +28 -28
- package/dist/validations/appSpecs.validations.d.ts +2 -2
- package/dist/validations/auth.validations.d.ts +8 -8
- package/dist/validations/devicePaymentPlan.validations.d.ts +4 -4
- package/dist/validations/eventlogs.admin.validations.d.ts +22 -22
- package/dist/validations/moderation.validations.d.ts +21 -21
- package/dist/validations/pricings.validations.d.ts +22 -22
- package/dist/validations/product.validations.d.ts +16 -16
- package/dist/validations/profiles.validations.d.ts +30 -30
- package/dist/validations/users.admin.validations.d.ts +12 -12
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UserRole } from "vr-models";
|
|
1
|
+
import { Device, UserRole } from "vr-models";
|
|
2
2
|
import { Transaction } from "sequelize";
|
|
3
3
|
import { StockChangeResult } from "./types";
|
|
4
4
|
export declare const stockUtil: {
|
|
@@ -66,4 +66,20 @@ export declare const stockUtil: {
|
|
|
66
66
|
* No letter 'O' to avoid confusion with 0
|
|
67
67
|
*/
|
|
68
68
|
validatePairIdFormat(pairId: string): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Get devices by pair IDs (returns both RIDER and PASSENGER)
|
|
71
|
+
*/
|
|
72
|
+
getDevicesByPairIds(pairIds: string[], transaction?: any): Promise<Device[]>;
|
|
73
|
+
/**
|
|
74
|
+
* Get devices by serial numbers
|
|
75
|
+
*/
|
|
76
|
+
getDevicesBySerialNumbers(serialNumbers: string[], transaction?: any): Promise<Device[]>;
|
|
77
|
+
/**
|
|
78
|
+
* Validate that exactly one identifier type is provided
|
|
79
|
+
*/
|
|
80
|
+
validateIdentifiers(pairIds?: string[], serialNumbers?: string[]): {
|
|
81
|
+
valid: boolean;
|
|
82
|
+
error?: string | undefined;
|
|
83
|
+
devices?: Device[] | undefined;
|
|
84
|
+
};
|
|
69
85
|
};
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.stockUtil = void 0;
|
|
4
4
|
// src/utils/stock.util.ts
|
|
5
5
|
const vr_models_1 = require("vr-models");
|
|
6
|
+
const sequelize_1 = require("sequelize");
|
|
6
7
|
const eventLog_utils_1 = require("./eventLog.utils");
|
|
7
8
|
const admin_devices_validations_1 = require("../validations/admin.devices.validations");
|
|
8
9
|
exports.stockUtil = {
|
|
@@ -243,4 +244,48 @@ exports.stockUtil = {
|
|
|
243
244
|
validatePairIdFormat(pairId) {
|
|
244
245
|
return admin_devices_validations_1.PAIR_ID_REGEX.test(pairId);
|
|
245
246
|
},
|
|
247
|
+
/**
|
|
248
|
+
* Get devices by pair IDs (returns both RIDER and PASSENGER)
|
|
249
|
+
*/
|
|
250
|
+
async getDevicesByPairIds(pairIds, transaction) {
|
|
251
|
+
return await vr_models_1.Device.findAll({
|
|
252
|
+
where: {
|
|
253
|
+
pairId: { [sequelize_1.Op.in]: pairIds },
|
|
254
|
+
},
|
|
255
|
+
include: [{ model: vr_models_1.DevicePaymentPlan, as: "paymentPlan" }],
|
|
256
|
+
transaction,
|
|
257
|
+
});
|
|
258
|
+
},
|
|
259
|
+
/**
|
|
260
|
+
* Get devices by serial numbers
|
|
261
|
+
*/
|
|
262
|
+
async getDevicesBySerialNumbers(serialNumbers, transaction) {
|
|
263
|
+
return await vr_models_1.Device.findAll({
|
|
264
|
+
where: {
|
|
265
|
+
serialNumber: { [sequelize_1.Op.in]: serialNumbers },
|
|
266
|
+
},
|
|
267
|
+
include: [{ model: vr_models_1.DevicePaymentPlan, as: "paymentPlan" }],
|
|
268
|
+
transaction,
|
|
269
|
+
});
|
|
270
|
+
},
|
|
271
|
+
/**
|
|
272
|
+
* Validate that exactly one identifier type is provided
|
|
273
|
+
*/
|
|
274
|
+
validateIdentifiers(pairIds, serialNumbers) {
|
|
275
|
+
const hasPairIds = pairIds && pairIds.length > 0;
|
|
276
|
+
const hasSerialNumbers = serialNumbers && serialNumbers.length > 0;
|
|
277
|
+
if (!hasPairIds && !hasSerialNumbers) {
|
|
278
|
+
return {
|
|
279
|
+
valid: false,
|
|
280
|
+
error: "Either pairIds or serialNumbers must be provided",
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
if (hasPairIds && hasSerialNumbers) {
|
|
284
|
+
return {
|
|
285
|
+
valid: false,
|
|
286
|
+
error: "Cannot provide both pairIds and serialNumbers. Choose one.",
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
return { valid: true };
|
|
290
|
+
},
|
|
246
291
|
};
|
|
@@ -6,27 +6,27 @@ export declare const createPlanSchema: z.ZodObject<{
|
|
|
6
6
|
pricingId: z.ZodString;
|
|
7
7
|
productId: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
userId: string;
|
|
10
9
|
productId: string;
|
|
10
|
+
userId: string;
|
|
11
11
|
deviceIds: string[];
|
|
12
12
|
pricingId: string;
|
|
13
13
|
}, {
|
|
14
|
-
userId: string;
|
|
15
14
|
productId: string;
|
|
15
|
+
userId: string;
|
|
16
16
|
deviceIds: string[];
|
|
17
17
|
pricingId: string;
|
|
18
18
|
}>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
body: {
|
|
21
|
-
userId: string;
|
|
22
21
|
productId: string;
|
|
22
|
+
userId: string;
|
|
23
23
|
deviceIds: string[];
|
|
24
24
|
pricingId: string;
|
|
25
25
|
};
|
|
26
26
|
}, {
|
|
27
27
|
body: {
|
|
28
|
-
userId: string;
|
|
29
28
|
productId: string;
|
|
29
|
+
userId: string;
|
|
30
30
|
deviceIds: string[];
|
|
31
31
|
pricingId: string;
|
|
32
32
|
};
|
|
@@ -46,17 +46,17 @@ export declare const listPlansSchema: z.ZodObject<{
|
|
|
46
46
|
limit: number;
|
|
47
47
|
page: number;
|
|
48
48
|
search?: string | undefined;
|
|
49
|
+
status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
49
50
|
userId?: string | undefined;
|
|
50
|
-
status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
51
51
|
isOverdue?: "true" | "false" | undefined;
|
|
52
52
|
sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
|
|
53
53
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
54
54
|
deviceId?: string | undefined;
|
|
55
55
|
}, {
|
|
56
|
-
search?: string | undefined;
|
|
57
56
|
limit?: string | undefined;
|
|
57
|
+
search?: string | undefined;
|
|
58
|
+
status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
58
59
|
userId?: string | undefined;
|
|
59
|
-
status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
60
60
|
isOverdue?: "true" | "false" | undefined;
|
|
61
61
|
page?: string | undefined;
|
|
62
62
|
sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
|
|
@@ -68,8 +68,8 @@ export declare const listPlansSchema: z.ZodObject<{
|
|
|
68
68
|
limit: number;
|
|
69
69
|
page: number;
|
|
70
70
|
search?: string | undefined;
|
|
71
|
+
status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
71
72
|
userId?: string | undefined;
|
|
72
|
-
status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
73
73
|
isOverdue?: "true" | "false" | undefined;
|
|
74
74
|
sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | undefined;
|
|
75
75
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
@@ -77,10 +77,10 @@ export declare const listPlansSchema: z.ZodObject<{
|
|
|
77
77
|
};
|
|
78
78
|
}, {
|
|
79
79
|
query: {
|
|
80
|
-
search?: string | undefined;
|
|
81
80
|
limit?: string | undefined;
|
|
81
|
+
search?: string | undefined;
|
|
82
|
+
status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
82
83
|
userId?: string | undefined;
|
|
83
|
-
status?: "ACTIVE" | "DEFAULTED" | "PENDING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
84
84
|
isOverdue?: "true" | "false" | undefined;
|
|
85
85
|
page?: string | undefined;
|
|
86
86
|
sortBy?: "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "nextInstallmentDueAt" | 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?: "ACTIVE" | "
|
|
120
|
+
status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
121
121
|
includeCompleted?: "true" | "false" | undefined;
|
|
122
122
|
}, {
|
|
123
|
-
status?: "ACTIVE" | "
|
|
123
|
+
status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "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?: "ACTIVE" | "
|
|
131
|
+
status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "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?: "ACTIVE" | "
|
|
139
|
+
status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
140
140
|
includeCompleted?: "true" | "false" | undefined;
|
|
141
141
|
} | undefined;
|
|
142
142
|
}>;
|
|
@@ -171,30 +171,30 @@ export declare const limitedUpdateSchema: z.ZodObject<{
|
|
|
171
171
|
deviceIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
172
172
|
userId: z.ZodOptional<z.ZodString>;
|
|
173
173
|
}, "strip", z.ZodTypeAny, {
|
|
174
|
-
userId?: string | undefined;
|
|
175
174
|
productId?: string | undefined;
|
|
175
|
+
userId?: string | undefined;
|
|
176
176
|
deviceIds?: string[] | undefined;
|
|
177
177
|
pricingId?: string | undefined;
|
|
178
178
|
}, {
|
|
179
|
-
userId?: string | undefined;
|
|
180
179
|
productId?: string | undefined;
|
|
180
|
+
userId?: string | undefined;
|
|
181
181
|
deviceIds?: string[] | undefined;
|
|
182
182
|
pricingId?: string | undefined;
|
|
183
183
|
}>, {
|
|
184
|
-
userId?: string | undefined;
|
|
185
184
|
productId?: string | undefined;
|
|
185
|
+
userId?: string | undefined;
|
|
186
186
|
deviceIds?: string[] | undefined;
|
|
187
187
|
pricingId?: string | undefined;
|
|
188
188
|
}, {
|
|
189
|
-
userId?: string | undefined;
|
|
190
189
|
productId?: string | undefined;
|
|
190
|
+
userId?: string | undefined;
|
|
191
191
|
deviceIds?: string[] | undefined;
|
|
192
192
|
pricingId?: string | undefined;
|
|
193
193
|
}>;
|
|
194
194
|
}, "strip", z.ZodTypeAny, {
|
|
195
195
|
body: {
|
|
196
|
-
userId?: string | undefined;
|
|
197
196
|
productId?: string | undefined;
|
|
197
|
+
userId?: string | undefined;
|
|
198
198
|
deviceIds?: string[] | undefined;
|
|
199
199
|
pricingId?: string | undefined;
|
|
200
200
|
};
|
|
@@ -203,8 +203,8 @@ export declare const limitedUpdateSchema: z.ZodObject<{
|
|
|
203
203
|
};
|
|
204
204
|
}, {
|
|
205
205
|
body: {
|
|
206
|
-
userId?: string | undefined;
|
|
207
206
|
productId?: string | undefined;
|
|
207
|
+
userId?: string | undefined;
|
|
208
208
|
deviceIds?: string[] | undefined;
|
|
209
209
|
pricingId?: string | undefined;
|
|
210
210
|
};
|
|
@@ -59,53 +59,53 @@ export declare const getDevicesSchema: z.ZodObject<{
|
|
|
59
59
|
sortBy: z.ZodOptional<z.ZodEnum<["serialNumber", "status", "createdAt", "updatedAt"]>>;
|
|
60
60
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
limit?: number | undefined;
|
|
63
|
+
search?: string | undefined;
|
|
62
64
|
productId?: string | undefined;
|
|
63
65
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
64
|
-
page?: number | undefined;
|
|
65
|
-
limit?: number | undefined;
|
|
66
|
-
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
67
66
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
67
|
+
dedicatedUser?: "RIDER" | "PASSENGER" | "N/A" | undefined;
|
|
68
68
|
isAssigned?: "true" | "false" | undefined;
|
|
69
|
-
|
|
70
|
-
sortBy?: "
|
|
71
|
-
sortOrder?: "
|
|
69
|
+
page?: number | undefined;
|
|
70
|
+
sortBy?: "createdAt" | "updatedAt" | "serialNumber" | "status" | undefined;
|
|
71
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
72
72
|
}, {
|
|
73
|
+
limit?: string | undefined;
|
|
74
|
+
search?: string | undefined;
|
|
73
75
|
productId?: string | undefined;
|
|
74
76
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
75
|
-
page?: string | undefined;
|
|
76
|
-
limit?: string | undefined;
|
|
77
|
-
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
78
77
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
78
|
+
dedicatedUser?: "RIDER" | "PASSENGER" | "N/A" | undefined;
|
|
79
79
|
isAssigned?: "true" | "false" | undefined;
|
|
80
|
-
|
|
81
|
-
sortBy?: "
|
|
82
|
-
sortOrder?: "
|
|
80
|
+
page?: string | undefined;
|
|
81
|
+
sortBy?: "createdAt" | "updatedAt" | "serialNumber" | "status" | undefined;
|
|
82
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
83
83
|
}>;
|
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
|
85
85
|
query: {
|
|
86
|
+
limit?: number | undefined;
|
|
87
|
+
search?: string | undefined;
|
|
86
88
|
productId?: string | undefined;
|
|
87
89
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
88
|
-
page?: number | undefined;
|
|
89
|
-
limit?: number | undefined;
|
|
90
|
-
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
91
90
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
91
|
+
dedicatedUser?: "RIDER" | "PASSENGER" | "N/A" | undefined;
|
|
92
92
|
isAssigned?: "true" | "false" | undefined;
|
|
93
|
-
|
|
94
|
-
sortBy?: "
|
|
95
|
-
sortOrder?: "
|
|
93
|
+
page?: number | undefined;
|
|
94
|
+
sortBy?: "createdAt" | "updatedAt" | "serialNumber" | "status" | undefined;
|
|
95
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
96
96
|
};
|
|
97
97
|
}, {
|
|
98
98
|
query: {
|
|
99
|
+
limit?: string | undefined;
|
|
100
|
+
search?: string | undefined;
|
|
99
101
|
productId?: string | undefined;
|
|
100
102
|
status?: "locked" | "unlocked" | "disabled" | undefined;
|
|
101
|
-
page?: string | undefined;
|
|
102
|
-
limit?: string | undefined;
|
|
103
|
-
dedicatedUser?: "PASSENGER" | "RIDER" | "N/A" | undefined;
|
|
104
103
|
isPermanentlyUnlocked?: "true" | "false" | undefined;
|
|
104
|
+
dedicatedUser?: "RIDER" | "PASSENGER" | "N/A" | undefined;
|
|
105
105
|
isAssigned?: "true" | "false" | undefined;
|
|
106
|
-
|
|
107
|
-
sortBy?: "
|
|
108
|
-
sortOrder?: "
|
|
106
|
+
page?: string | undefined;
|
|
107
|
+
sortBy?: "createdAt" | "updatedAt" | "serialNumber" | "status" | undefined;
|
|
108
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
109
109
|
};
|
|
110
110
|
}>;
|
|
111
111
|
export declare const deleteDeviceSchema: z.ZodObject<{
|
|
@@ -188,19 +188,19 @@ export declare const disableDeviceSchema: z.ZodObject<{
|
|
|
188
188
|
reason: string;
|
|
189
189
|
}>;
|
|
190
190
|
}, "strip", z.ZodTypeAny, {
|
|
191
|
-
params: {
|
|
192
|
-
id: string;
|
|
193
|
-
};
|
|
194
191
|
body: {
|
|
195
192
|
reason: string;
|
|
196
193
|
};
|
|
197
|
-
}, {
|
|
198
194
|
params: {
|
|
199
195
|
id: string;
|
|
200
196
|
};
|
|
197
|
+
}, {
|
|
201
198
|
body: {
|
|
202
199
|
reason: string;
|
|
203
200
|
};
|
|
201
|
+
params: {
|
|
202
|
+
id: string;
|
|
203
|
+
};
|
|
204
204
|
}>;
|
|
205
205
|
export declare const makePermanentSchema: z.ZodObject<{
|
|
206
206
|
params: z.ZodObject<{
|
|
@@ -792,8 +792,8 @@ export declare const listAppSpecsSchema: z.ZodObject<{
|
|
|
792
792
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
793
793
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
794
794
|
}, {
|
|
795
|
-
search?: string | undefined;
|
|
796
795
|
limit?: string | undefined;
|
|
796
|
+
search?: string | undefined;
|
|
797
797
|
isActive?: "true" | "false" | undefined;
|
|
798
798
|
page?: string | undefined;
|
|
799
799
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
@@ -810,8 +810,8 @@ export declare const listAppSpecsSchema: z.ZodObject<{
|
|
|
810
810
|
};
|
|
811
811
|
}, {
|
|
812
812
|
query: {
|
|
813
|
-
search?: string | undefined;
|
|
814
813
|
limit?: string | undefined;
|
|
814
|
+
search?: string | undefined;
|
|
815
815
|
isActive?: "true" | "false" | undefined;
|
|
816
816
|
page?: string | undefined;
|
|
817
817
|
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
@@ -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: "RIDER" | "PASSENGER";
|
|
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?: "RIDER" | "PASSENGER" | 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: "RIDER" | "PASSENGER";
|
|
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?: "RIDER" | "PASSENGER" | 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: "RIDER" | "PASSENGER" | "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: "RIDER" | "PASSENGER" | "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: "RIDER" | "PASSENGER" | "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: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
406
406
|
contactValue: string;
|
|
407
407
|
jacketId?: string | undefined;
|
|
408
408
|
plateNumber?: string | undefined;
|
|
@@ -9,12 +9,12 @@ export declare const listUserPaymentPlansSchema: z.ZodObject<{
|
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
limit: number;
|
|
11
11
|
page: number;
|
|
12
|
-
status?: "ACTIVE" | "
|
|
12
|
+
status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
13
13
|
sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
|
|
14
14
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
15
15
|
}, {
|
|
16
16
|
limit?: string | undefined;
|
|
17
|
-
status?: "ACTIVE" | "
|
|
17
|
+
status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
18
18
|
page?: string | undefined;
|
|
19
19
|
sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
|
|
20
20
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
@@ -23,14 +23,14 @@ export declare const listUserPaymentPlansSchema: z.ZodObject<{
|
|
|
23
23
|
query: {
|
|
24
24
|
limit: number;
|
|
25
25
|
page: number;
|
|
26
|
-
status?: "ACTIVE" | "
|
|
26
|
+
status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
27
27
|
sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
|
|
28
28
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
29
29
|
};
|
|
30
30
|
}, {
|
|
31
31
|
query: {
|
|
32
32
|
limit?: string | undefined;
|
|
33
|
-
status?: "ACTIVE" | "
|
|
33
|
+
status?: "ACTIVE" | "PENDING" | "COMPLETED" | "DEFAULTED" | "CANCELLED" | undefined;
|
|
34
34
|
page?: string | undefined;
|
|
35
35
|
sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
|
|
36
36
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
@@ -24,19 +24,24 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
24
24
|
sortOrder: "DESC" | "ASC";
|
|
25
25
|
hasDeviceSession: boolean;
|
|
26
26
|
search?: string | undefined;
|
|
27
|
+
actorId?: string | undefined;
|
|
28
|
+
actorType?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
29
|
+
action?: string | undefined;
|
|
30
|
+
entity?: string | undefined;
|
|
31
|
+
entityId?: string | undefined;
|
|
27
32
|
firstName?: string | undefined;
|
|
28
33
|
lastName?: string | undefined;
|
|
29
34
|
fromDate?: string | undefined;
|
|
30
35
|
toDate?: string | undefined;
|
|
31
|
-
|
|
36
|
+
actorName?: string | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
limit?: string | undefined;
|
|
39
|
+
search?: string | undefined;
|
|
32
40
|
actorId?: string | undefined;
|
|
41
|
+
actorType?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
33
42
|
action?: string | undefined;
|
|
34
43
|
entity?: string | undefined;
|
|
35
44
|
entityId?: string | undefined;
|
|
36
|
-
actorName?: string | undefined;
|
|
37
|
-
}, {
|
|
38
|
-
search?: string | undefined;
|
|
39
|
-
limit?: string | undefined;
|
|
40
45
|
firstName?: string | undefined;
|
|
41
46
|
lastName?: string | undefined;
|
|
42
47
|
page?: string | undefined;
|
|
@@ -44,16 +49,16 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
44
49
|
fromDate?: string | undefined;
|
|
45
50
|
toDate?: string | undefined;
|
|
46
51
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
47
|
-
actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
48
|
-
actorId?: string | undefined;
|
|
49
|
-
action?: string | undefined;
|
|
50
|
-
entity?: string | undefined;
|
|
51
|
-
entityId?: string | undefined;
|
|
52
52
|
actorName?: string | undefined;
|
|
53
53
|
hasDeviceSession?: string | undefined;
|
|
54
54
|
}>, any, {
|
|
55
|
-
search?: string | undefined;
|
|
56
55
|
limit?: string | undefined;
|
|
56
|
+
search?: string | undefined;
|
|
57
|
+
actorId?: string | undefined;
|
|
58
|
+
actorType?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
59
|
+
action?: string | undefined;
|
|
60
|
+
entity?: string | undefined;
|
|
61
|
+
entityId?: string | undefined;
|
|
57
62
|
firstName?: string | undefined;
|
|
58
63
|
lastName?: string | undefined;
|
|
59
64
|
page?: string | undefined;
|
|
@@ -61,11 +66,6 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
61
66
|
fromDate?: string | undefined;
|
|
62
67
|
toDate?: string | undefined;
|
|
63
68
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
64
|
-
actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
65
|
-
actorId?: string | undefined;
|
|
66
|
-
action?: string | undefined;
|
|
67
|
-
entity?: string | undefined;
|
|
68
|
-
entityId?: string | undefined;
|
|
69
69
|
actorName?: string | undefined;
|
|
70
70
|
hasDeviceSession?: string | undefined;
|
|
71
71
|
}>;
|
|
@@ -73,8 +73,13 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
73
73
|
query?: any;
|
|
74
74
|
}, {
|
|
75
75
|
query: {
|
|
76
|
-
search?: string | undefined;
|
|
77
76
|
limit?: string | undefined;
|
|
77
|
+
search?: string | undefined;
|
|
78
|
+
actorId?: string | undefined;
|
|
79
|
+
actorType?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
80
|
+
action?: string | undefined;
|
|
81
|
+
entity?: string | undefined;
|
|
82
|
+
entityId?: string | undefined;
|
|
78
83
|
firstName?: string | undefined;
|
|
79
84
|
lastName?: string | undefined;
|
|
80
85
|
page?: string | undefined;
|
|
@@ -82,11 +87,6 @@ export declare const listEventLogsSchema: z.ZodObject<{
|
|
|
82
87
|
fromDate?: string | undefined;
|
|
83
88
|
toDate?: string | undefined;
|
|
84
89
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
85
|
-
actorType?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
86
|
-
actorId?: string | undefined;
|
|
87
|
-
action?: string | undefined;
|
|
88
|
-
entity?: string | undefined;
|
|
89
|
-
entityId?: string | undefined;
|
|
90
90
|
actorName?: string | undefined;
|
|
91
91
|
hasDeviceSession?: string | undefined;
|
|
92
92
|
};
|
|
@@ -276,21 +276,21 @@ export declare const listBansSchema: z.ZodObject<{
|
|
|
276
276
|
limit: number;
|
|
277
277
|
page: number;
|
|
278
278
|
search?: string | undefined;
|
|
279
|
+
status?: "active" | "revoked" | undefined;
|
|
279
280
|
userId?: string | undefined;
|
|
280
281
|
isPermanent?: "true" | "false" | undefined;
|
|
281
282
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
282
|
-
status?: "active" | "revoked" | undefined;
|
|
283
283
|
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
284
284
|
fromDate?: string | undefined;
|
|
285
285
|
toDate?: string | undefined;
|
|
286
286
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
287
287
|
}, {
|
|
288
|
-
search?: string | undefined;
|
|
289
288
|
limit?: string | undefined;
|
|
289
|
+
search?: string | undefined;
|
|
290
|
+
status?: "active" | "revoked" | undefined;
|
|
290
291
|
userId?: string | undefined;
|
|
291
292
|
isPermanent?: "true" | "false" | undefined;
|
|
292
293
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
293
|
-
status?: "active" | "revoked" | undefined;
|
|
294
294
|
page?: string | undefined;
|
|
295
295
|
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
296
296
|
fromDate?: string | undefined;
|
|
@@ -300,21 +300,21 @@ export declare const listBansSchema: z.ZodObject<{
|
|
|
300
300
|
limit: number;
|
|
301
301
|
page: number;
|
|
302
302
|
search?: string | undefined;
|
|
303
|
+
status?: "active" | "revoked" | undefined;
|
|
303
304
|
userId?: string | undefined;
|
|
304
305
|
isPermanent?: "true" | "false" | undefined;
|
|
305
306
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
306
|
-
status?: "active" | "revoked" | undefined;
|
|
307
307
|
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
308
308
|
fromDate?: string | undefined;
|
|
309
309
|
toDate?: string | undefined;
|
|
310
310
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
311
311
|
}, {
|
|
312
|
-
search?: string | undefined;
|
|
313
312
|
limit?: string | undefined;
|
|
313
|
+
search?: string | undefined;
|
|
314
|
+
status?: "active" | "revoked" | undefined;
|
|
314
315
|
userId?: string | undefined;
|
|
315
316
|
isPermanent?: "true" | "false" | undefined;
|
|
316
317
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
317
|
-
status?: "active" | "revoked" | undefined;
|
|
318
318
|
page?: string | undefined;
|
|
319
319
|
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
320
320
|
fromDate?: string | undefined;
|
|
@@ -326,10 +326,10 @@ export declare const listBansSchema: z.ZodObject<{
|
|
|
326
326
|
limit: number;
|
|
327
327
|
page: number;
|
|
328
328
|
search?: string | undefined;
|
|
329
|
+
status?: "active" | "revoked" | undefined;
|
|
329
330
|
userId?: string | undefined;
|
|
330
331
|
isPermanent?: "true" | "false" | undefined;
|
|
331
332
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
332
|
-
status?: "active" | "revoked" | undefined;
|
|
333
333
|
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
334
334
|
fromDate?: string | undefined;
|
|
335
335
|
toDate?: string | undefined;
|
|
@@ -337,12 +337,12 @@ export declare const listBansSchema: z.ZodObject<{
|
|
|
337
337
|
};
|
|
338
338
|
}, {
|
|
339
339
|
query: {
|
|
340
|
-
search?: string | undefined;
|
|
341
340
|
limit?: string | undefined;
|
|
341
|
+
search?: string | undefined;
|
|
342
|
+
status?: "active" | "revoked" | undefined;
|
|
342
343
|
userId?: string | undefined;
|
|
343
344
|
isPermanent?: "true" | "false" | undefined;
|
|
344
345
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
345
|
-
status?: "active" | "revoked" | undefined;
|
|
346
346
|
page?: string | undefined;
|
|
347
347
|
sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
|
|
348
348
|
fromDate?: string | undefined;
|
|
@@ -367,19 +367,19 @@ export declare const listSuspensionsSchema: z.ZodObject<{
|
|
|
367
367
|
limit: number;
|
|
368
368
|
page: number;
|
|
369
369
|
search?: string | undefined;
|
|
370
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
370
371
|
userId?: string | undefined;
|
|
371
372
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
372
|
-
status?: "active" | "expired" | "revoked" | undefined;
|
|
373
373
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
374
374
|
fromDate?: string | undefined;
|
|
375
375
|
toDate?: string | undefined;
|
|
376
376
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
377
377
|
}, {
|
|
378
|
-
search?: string | undefined;
|
|
379
378
|
limit?: string | undefined;
|
|
379
|
+
search?: string | undefined;
|
|
380
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
380
381
|
userId?: string | undefined;
|
|
381
382
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
382
|
-
status?: "active" | "expired" | "revoked" | undefined;
|
|
383
383
|
page?: string | undefined;
|
|
384
384
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
385
385
|
fromDate?: string | undefined;
|
|
@@ -389,19 +389,19 @@ export declare const listSuspensionsSchema: z.ZodObject<{
|
|
|
389
389
|
limit: number;
|
|
390
390
|
page: number;
|
|
391
391
|
search?: string | undefined;
|
|
392
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
392
393
|
userId?: string | undefined;
|
|
393
394
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
394
|
-
status?: "active" | "expired" | "revoked" | undefined;
|
|
395
395
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
396
396
|
fromDate?: string | undefined;
|
|
397
397
|
toDate?: string | undefined;
|
|
398
398
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
399
399
|
}, {
|
|
400
|
-
search?: string | undefined;
|
|
401
400
|
limit?: string | undefined;
|
|
401
|
+
search?: string | undefined;
|
|
402
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
402
403
|
userId?: string | undefined;
|
|
403
404
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
404
|
-
status?: "active" | "expired" | "revoked" | undefined;
|
|
405
405
|
page?: string | undefined;
|
|
406
406
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
407
407
|
fromDate?: string | undefined;
|
|
@@ -413,9 +413,9 @@ export declare const listSuspensionsSchema: z.ZodObject<{
|
|
|
413
413
|
limit: number;
|
|
414
414
|
page: number;
|
|
415
415
|
search?: string | undefined;
|
|
416
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
416
417
|
userId?: string | undefined;
|
|
417
418
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
418
|
-
status?: "active" | "expired" | "revoked" | undefined;
|
|
419
419
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
420
420
|
fromDate?: string | undefined;
|
|
421
421
|
toDate?: string | undefined;
|
|
@@ -423,11 +423,11 @@ export declare const listSuspensionsSchema: z.ZodObject<{
|
|
|
423
423
|
};
|
|
424
424
|
}, {
|
|
425
425
|
query: {
|
|
426
|
-
search?: string | undefined;
|
|
427
426
|
limit?: string | undefined;
|
|
427
|
+
search?: string | undefined;
|
|
428
|
+
status?: "active" | "expired" | "revoked" | undefined;
|
|
428
429
|
userId?: string | undefined;
|
|
429
430
|
appealStatus?: "pending" | "approved" | "rejected" | undefined;
|
|
430
|
-
status?: "active" | "expired" | "revoked" | undefined;
|
|
431
431
|
page?: string | undefined;
|
|
432
432
|
sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
|
|
433
433
|
fromDate?: string | undefined;
|
|
@@ -450,8 +450,8 @@ export declare const listPendingAppealsSchema: z.ZodObject<{
|
|
|
450
450
|
fromDate?: string | undefined;
|
|
451
451
|
toDate?: string | undefined;
|
|
452
452
|
}, {
|
|
453
|
-
type?: "ban" | "suspension" | undefined;
|
|
454
453
|
limit?: string | undefined;
|
|
454
|
+
type?: "ban" | "suspension" | undefined;
|
|
455
455
|
page?: string | undefined;
|
|
456
456
|
fromDate?: string | undefined;
|
|
457
457
|
toDate?: string | undefined;
|
|
@@ -462,8 +462,8 @@ export declare const listPendingAppealsSchema: z.ZodObject<{
|
|
|
462
462
|
fromDate?: string | undefined;
|
|
463
463
|
toDate?: string | undefined;
|
|
464
464
|
}, {
|
|
465
|
-
type?: "ban" | "suspension" | undefined;
|
|
466
465
|
limit?: string | undefined;
|
|
466
|
+
type?: "ban" | "suspension" | undefined;
|
|
467
467
|
page?: string | undefined;
|
|
468
468
|
fromDate?: string | undefined;
|
|
469
469
|
toDate?: string | undefined;
|
|
@@ -478,8 +478,8 @@ export declare const listPendingAppealsSchema: z.ZodObject<{
|
|
|
478
478
|
};
|
|
479
479
|
}, {
|
|
480
480
|
query: {
|
|
481
|
-
type?: "ban" | "suspension" | undefined;
|
|
482
481
|
limit?: string | undefined;
|
|
482
|
+
type?: "ban" | "suspension" | undefined;
|
|
483
483
|
page?: string | undefined;
|
|
484
484
|
fromDate?: string | undefined;
|
|
485
485
|
toDate?: string | undefined;
|
|
@@ -127,8 +127,8 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
127
127
|
isActive: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
128
128
|
}, "strip", z.ZodTypeAny, {
|
|
129
129
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
130
|
-
isActive?: boolean | undefined;
|
|
131
130
|
name?: string | undefined;
|
|
131
|
+
isActive?: boolean | undefined;
|
|
132
132
|
unitPrice?: number | undefined;
|
|
133
133
|
downPayment?: number | undefined;
|
|
134
134
|
installmentAmount?: number | null | undefined;
|
|
@@ -140,8 +140,8 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
140
140
|
maxOrderQuantity?: number | undefined;
|
|
141
141
|
}, {
|
|
142
142
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
143
|
-
isActive?: boolean | undefined;
|
|
144
143
|
name?: string | undefined;
|
|
144
|
+
isActive?: boolean | undefined;
|
|
145
145
|
unitPrice?: number | undefined;
|
|
146
146
|
downPayment?: number | undefined;
|
|
147
147
|
installmentAmount?: number | null | undefined;
|
|
@@ -153,8 +153,8 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
153
153
|
maxOrderQuantity?: number | undefined;
|
|
154
154
|
}>, {
|
|
155
155
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
156
|
-
isActive?: boolean | undefined;
|
|
157
156
|
name?: string | undefined;
|
|
157
|
+
isActive?: boolean | undefined;
|
|
158
158
|
unitPrice?: number | undefined;
|
|
159
159
|
downPayment?: number | undefined;
|
|
160
160
|
installmentAmount?: number | null | undefined;
|
|
@@ -166,8 +166,8 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
166
166
|
maxOrderQuantity?: number | undefined;
|
|
167
167
|
}, {
|
|
168
168
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
169
|
-
isActive?: boolean | undefined;
|
|
170
169
|
name?: string | undefined;
|
|
170
|
+
isActive?: boolean | undefined;
|
|
171
171
|
unitPrice?: number | undefined;
|
|
172
172
|
downPayment?: number | undefined;
|
|
173
173
|
installmentAmount?: number | null | undefined;
|
|
@@ -181,8 +181,8 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
181
181
|
}, "strip", z.ZodTypeAny, {
|
|
182
182
|
body: {
|
|
183
183
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
184
|
-
isActive?: boolean | undefined;
|
|
185
184
|
name?: string | undefined;
|
|
185
|
+
isActive?: boolean | undefined;
|
|
186
186
|
unitPrice?: number | undefined;
|
|
187
187
|
downPayment?: number | undefined;
|
|
188
188
|
installmentAmount?: number | null | undefined;
|
|
@@ -199,8 +199,8 @@ export declare const updatePricingSchema: z.ZodObject<{
|
|
|
199
199
|
}, {
|
|
200
200
|
body: {
|
|
201
201
|
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
202
|
-
isActive?: boolean | undefined;
|
|
203
202
|
name?: string | undefined;
|
|
203
|
+
isActive?: boolean | undefined;
|
|
204
204
|
unitPrice?: number | undefined;
|
|
205
205
|
downPayment?: number | undefined;
|
|
206
206
|
installmentAmount?: number | null | undefined;
|
|
@@ -245,51 +245,51 @@ export declare const getPricingsSchema: z.ZodObject<{
|
|
|
245
245
|
sortBy: z.ZodOptional<z.ZodEnum<["name", "unitPrice", "createdAt", "updatedAt"]>>;
|
|
246
246
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
247
247
|
}, "strip", z.ZodTypeAny, {
|
|
248
|
-
search?: string | undefined;
|
|
249
|
-
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
250
248
|
limit?: number | undefined;
|
|
249
|
+
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
250
|
+
search?: string | undefined;
|
|
251
251
|
isActive?: "true" | "false" | undefined;
|
|
252
|
+
productId?: string | undefined;
|
|
252
253
|
page?: number | undefined;
|
|
253
|
-
sortBy?: "
|
|
254
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "unitPrice" | undefined;
|
|
254
255
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
255
|
-
productId?: string | undefined;
|
|
256
256
|
minAmount?: number | undefined;
|
|
257
257
|
maxAmount?: number | undefined;
|
|
258
258
|
}, {
|
|
259
|
-
search?: string | undefined;
|
|
260
|
-
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
261
259
|
limit?: string | undefined;
|
|
260
|
+
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
261
|
+
search?: string | undefined;
|
|
262
262
|
isActive?: "true" | "false" | undefined;
|
|
263
|
+
productId?: string | undefined;
|
|
263
264
|
page?: string | undefined;
|
|
264
|
-
sortBy?: "
|
|
265
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "unitPrice" | undefined;
|
|
265
266
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
266
|
-
productId?: string | undefined;
|
|
267
267
|
minAmount?: string | undefined;
|
|
268
268
|
maxAmount?: string | undefined;
|
|
269
269
|
}>;
|
|
270
270
|
}, "strip", z.ZodTypeAny, {
|
|
271
271
|
query: {
|
|
272
|
-
search?: string | undefined;
|
|
273
|
-
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
274
272
|
limit?: number | undefined;
|
|
273
|
+
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
274
|
+
search?: string | undefined;
|
|
275
275
|
isActive?: "true" | "false" | undefined;
|
|
276
|
+
productId?: string | undefined;
|
|
276
277
|
page?: number | undefined;
|
|
277
|
-
sortBy?: "
|
|
278
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "unitPrice" | undefined;
|
|
278
279
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
279
|
-
productId?: string | undefined;
|
|
280
280
|
minAmount?: number | undefined;
|
|
281
281
|
maxAmount?: number | undefined;
|
|
282
282
|
};
|
|
283
283
|
}, {
|
|
284
284
|
query: {
|
|
285
|
-
search?: string | undefined;
|
|
286
|
-
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
287
285
|
limit?: string | undefined;
|
|
286
|
+
type?: "HIRE_PURCHASE" | "FULL_PAYMENT" | undefined;
|
|
287
|
+
search?: string | undefined;
|
|
288
288
|
isActive?: "true" | "false" | undefined;
|
|
289
|
+
productId?: string | undefined;
|
|
289
290
|
page?: string | undefined;
|
|
290
|
-
sortBy?: "
|
|
291
|
+
sortBy?: "name" | "createdAt" | "updatedAt" | "unitPrice" | undefined;
|
|
291
292
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
292
|
-
productId?: string | undefined;
|
|
293
293
|
minAmount?: string | undefined;
|
|
294
294
|
maxAmount?: string | undefined;
|
|
295
295
|
};
|
|
@@ -40,32 +40,32 @@ export declare const updateProductSchema: z.ZodObject<{
|
|
|
40
40
|
stock: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
41
41
|
isActive: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
isActive?: boolean | undefined;
|
|
44
|
-
description?: string | null | undefined;
|
|
45
43
|
name?: string | undefined;
|
|
44
|
+
description?: string | null | undefined;
|
|
46
45
|
stock?: number | undefined;
|
|
46
|
+
isActive?: boolean | undefined;
|
|
47
47
|
}, {
|
|
48
|
-
isActive?: unknown;
|
|
49
|
-
description?: unknown;
|
|
50
48
|
name?: unknown;
|
|
49
|
+
description?: unknown;
|
|
51
50
|
stock?: unknown;
|
|
51
|
+
isActive?: unknown;
|
|
52
52
|
}>;
|
|
53
53
|
}, "strip", z.ZodTypeAny, {
|
|
54
54
|
body: {
|
|
55
|
-
isActive?: boolean | undefined;
|
|
56
|
-
description?: string | null | undefined;
|
|
57
55
|
name?: string | undefined;
|
|
56
|
+
description?: string | null | undefined;
|
|
58
57
|
stock?: number | undefined;
|
|
58
|
+
isActive?: boolean | undefined;
|
|
59
59
|
};
|
|
60
60
|
params: {
|
|
61
61
|
id: string;
|
|
62
62
|
};
|
|
63
63
|
}, {
|
|
64
64
|
body: {
|
|
65
|
-
isActive?: unknown;
|
|
66
|
-
description?: unknown;
|
|
67
65
|
name?: unknown;
|
|
66
|
+
description?: unknown;
|
|
68
67
|
stock?: unknown;
|
|
68
|
+
isActive?: unknown;
|
|
69
69
|
};
|
|
70
70
|
params: {
|
|
71
71
|
id: string;
|
|
@@ -98,39 +98,39 @@ 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
|
-
search?: string | undefined;
|
|
102
101
|
limit?: number | undefined;
|
|
102
|
+
search?: string | undefined;
|
|
103
103
|
isActive?: "true" | "false" | undefined;
|
|
104
104
|
page?: number | undefined;
|
|
105
|
-
sortBy?: "
|
|
105
|
+
sortBy?: "name" | "stock" | "createdAt" | "updatedAt" | undefined;
|
|
106
106
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
107
107
|
minStock?: number | undefined;
|
|
108
108
|
}, {
|
|
109
|
-
search?: string | undefined;
|
|
110
109
|
limit?: string | undefined;
|
|
110
|
+
search?: string | undefined;
|
|
111
111
|
isActive?: "true" | "false" | undefined;
|
|
112
112
|
page?: string | undefined;
|
|
113
|
-
sortBy?: "
|
|
113
|
+
sortBy?: "name" | "stock" | "createdAt" | "updatedAt" | undefined;
|
|
114
114
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
115
115
|
minStock?: string | undefined;
|
|
116
116
|
}>;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
118
|
query: {
|
|
119
|
-
search?: string | undefined;
|
|
120
119
|
limit?: number | undefined;
|
|
120
|
+
search?: string | undefined;
|
|
121
121
|
isActive?: "true" | "false" | undefined;
|
|
122
122
|
page?: number | undefined;
|
|
123
|
-
sortBy?: "
|
|
123
|
+
sortBy?: "name" | "stock" | "createdAt" | "updatedAt" | undefined;
|
|
124
124
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
125
125
|
minStock?: number | undefined;
|
|
126
126
|
};
|
|
127
127
|
}, {
|
|
128
128
|
query: {
|
|
129
|
-
search?: string | undefined;
|
|
130
129
|
limit?: string | undefined;
|
|
130
|
+
search?: string | undefined;
|
|
131
131
|
isActive?: "true" | "false" | undefined;
|
|
132
132
|
page?: string | undefined;
|
|
133
|
-
sortBy?: "
|
|
133
|
+
sortBy?: "name" | "stock" | "createdAt" | "updatedAt" | undefined;
|
|
134
134
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
135
135
|
minStock?: string | undefined;
|
|
136
136
|
};
|
|
@@ -26,7 +26,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
26
26
|
birthDate: number;
|
|
27
27
|
birthMonth: number;
|
|
28
28
|
birthYear: number;
|
|
29
|
-
role: "
|
|
29
|
+
role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
30
30
|
contactValue: string;
|
|
31
31
|
jacketId?: string | null | undefined;
|
|
32
32
|
password?: string | undefined;
|
|
@@ -38,7 +38,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
38
38
|
birthDate: number;
|
|
39
39
|
birthMonth: number;
|
|
40
40
|
birthYear: number;
|
|
41
|
-
role: "
|
|
41
|
+
role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
42
42
|
contactValue: string;
|
|
43
43
|
jacketId?: string | null | undefined;
|
|
44
44
|
password?: string | undefined;
|
|
@@ -50,7 +50,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
50
50
|
birthDate: number;
|
|
51
51
|
birthMonth: number;
|
|
52
52
|
birthYear: number;
|
|
53
|
-
role: "
|
|
53
|
+
role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
54
54
|
contactValue: string;
|
|
55
55
|
jacketId?: string | null | undefined;
|
|
56
56
|
password?: string | undefined;
|
|
@@ -62,7 +62,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
62
62
|
birthDate: number;
|
|
63
63
|
birthMonth: number;
|
|
64
64
|
birthYear: number;
|
|
65
|
-
role: "
|
|
65
|
+
role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
66
66
|
contactValue: string;
|
|
67
67
|
jacketId?: string | null | undefined;
|
|
68
68
|
password?: string | undefined;
|
|
@@ -83,7 +83,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
83
83
|
birthDate: number;
|
|
84
84
|
birthMonth: number;
|
|
85
85
|
birthYear: number;
|
|
86
|
-
role: "
|
|
86
|
+
role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
87
87
|
contactValue: string;
|
|
88
88
|
jacketId?: string | null | undefined;
|
|
89
89
|
password?: string | undefined;
|
|
@@ -100,7 +100,7 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
100
100
|
birthDate: number;
|
|
101
101
|
birthMonth: number;
|
|
102
102
|
birthYear: number;
|
|
103
|
-
role: "
|
|
103
|
+
role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
|
|
104
104
|
contactValue: string;
|
|
105
105
|
jacketId?: string | null | undefined;
|
|
106
106
|
password?: string | undefined;
|
|
@@ -161,6 +161,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
161
161
|
birthMonth: z.ZodOptional<z.ZodNumber>;
|
|
162
162
|
birthYear: z.ZodOptional<z.ZodNumber>;
|
|
163
163
|
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
isActive?: boolean | undefined;
|
|
164
165
|
firstName?: string | undefined;
|
|
165
166
|
lastName?: string | undefined;
|
|
166
167
|
password?: string | undefined;
|
|
@@ -169,10 +170,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
169
170
|
birthDate?: number | undefined;
|
|
170
171
|
birthMonth?: number | undefined;
|
|
171
172
|
birthYear?: number | undefined;
|
|
172
|
-
isActive?: boolean | undefined;
|
|
173
173
|
isDeactivated?: boolean | undefined;
|
|
174
174
|
contactValue?: string | undefined;
|
|
175
175
|
}, {
|
|
176
|
+
isActive?: boolean | undefined;
|
|
176
177
|
firstName?: string | undefined;
|
|
177
178
|
lastName?: string | undefined;
|
|
178
179
|
password?: string | undefined;
|
|
@@ -181,10 +182,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
181
182
|
birthDate?: number | undefined;
|
|
182
183
|
birthMonth?: number | undefined;
|
|
183
184
|
birthYear?: number | undefined;
|
|
184
|
-
isActive?: boolean | undefined;
|
|
185
185
|
isDeactivated?: boolean | undefined;
|
|
186
186
|
contactValue?: string | undefined;
|
|
187
187
|
}>, {
|
|
188
|
+
isActive?: boolean | undefined;
|
|
188
189
|
firstName?: string | undefined;
|
|
189
190
|
lastName?: string | undefined;
|
|
190
191
|
password?: string | undefined;
|
|
@@ -193,10 +194,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
193
194
|
birthDate?: number | undefined;
|
|
194
195
|
birthMonth?: number | undefined;
|
|
195
196
|
birthYear?: number | undefined;
|
|
196
|
-
isActive?: boolean | undefined;
|
|
197
197
|
isDeactivated?: boolean | undefined;
|
|
198
198
|
contactValue?: string | undefined;
|
|
199
199
|
}, {
|
|
200
|
+
isActive?: boolean | undefined;
|
|
200
201
|
firstName?: string | undefined;
|
|
201
202
|
lastName?: string | undefined;
|
|
202
203
|
password?: string | undefined;
|
|
@@ -205,10 +206,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
205
206
|
birthDate?: number | undefined;
|
|
206
207
|
birthMonth?: number | undefined;
|
|
207
208
|
birthYear?: number | undefined;
|
|
208
|
-
isActive?: boolean | undefined;
|
|
209
209
|
isDeactivated?: boolean | undefined;
|
|
210
210
|
contactValue?: string | undefined;
|
|
211
211
|
}>, {
|
|
212
|
+
isActive?: boolean | undefined;
|
|
212
213
|
firstName?: string | undefined;
|
|
213
214
|
lastName?: string | undefined;
|
|
214
215
|
password?: string | undefined;
|
|
@@ -217,10 +218,10 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
217
218
|
birthDate?: number | undefined;
|
|
218
219
|
birthMonth?: number | undefined;
|
|
219
220
|
birthYear?: number | undefined;
|
|
220
|
-
isActive?: boolean | undefined;
|
|
221
221
|
isDeactivated?: boolean | undefined;
|
|
222
222
|
contactValue?: string | undefined;
|
|
223
223
|
}, {
|
|
224
|
+
isActive?: boolean | undefined;
|
|
224
225
|
firstName?: string | undefined;
|
|
225
226
|
lastName?: string | undefined;
|
|
226
227
|
password?: string | undefined;
|
|
@@ -229,7 +230,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
229
230
|
birthDate?: number | undefined;
|
|
230
231
|
birthMonth?: number | undefined;
|
|
231
232
|
birthYear?: number | undefined;
|
|
232
|
-
isActive?: boolean | undefined;
|
|
233
233
|
isDeactivated?: boolean | undefined;
|
|
234
234
|
contactValue?: string | undefined;
|
|
235
235
|
}>;
|
|
@@ -242,6 +242,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
242
242
|
}>;
|
|
243
243
|
}, "strip", z.ZodTypeAny, {
|
|
244
244
|
body: {
|
|
245
|
+
isActive?: boolean | undefined;
|
|
245
246
|
firstName?: string | undefined;
|
|
246
247
|
lastName?: string | undefined;
|
|
247
248
|
password?: string | undefined;
|
|
@@ -250,7 +251,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
250
251
|
birthDate?: number | undefined;
|
|
251
252
|
birthMonth?: number | undefined;
|
|
252
253
|
birthYear?: number | undefined;
|
|
253
|
-
isActive?: boolean | undefined;
|
|
254
254
|
isDeactivated?: boolean | undefined;
|
|
255
255
|
contactValue?: string | undefined;
|
|
256
256
|
};
|
|
@@ -262,6 +262,7 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
262
262
|
};
|
|
263
263
|
}, {
|
|
264
264
|
body: {
|
|
265
|
+
isActive?: boolean | undefined;
|
|
265
266
|
firstName?: string | undefined;
|
|
266
267
|
lastName?: string | undefined;
|
|
267
268
|
password?: string | undefined;
|
|
@@ -270,7 +271,6 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
270
271
|
birthDate?: number | undefined;
|
|
271
272
|
birthMonth?: number | undefined;
|
|
272
273
|
birthYear?: number | undefined;
|
|
273
|
-
isActive?: boolean | undefined;
|
|
274
274
|
isDeactivated?: boolean | undefined;
|
|
275
275
|
contactValue?: string | undefined;
|
|
276
276
|
};
|
|
@@ -297,30 +297,30 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
297
297
|
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
298
298
|
}, "strip", z.ZodTypeAny, {
|
|
299
299
|
order: "asc" | "desc";
|
|
300
|
-
sortBy: "
|
|
301
|
-
search?: string | undefined;
|
|
300
|
+
sortBy: "createdAt" | "firstName" | "gender" | "lastLoginAt";
|
|
302
301
|
limit?: number | undefined;
|
|
303
|
-
|
|
302
|
+
search?: string | undefined;
|
|
304
303
|
isActive?: boolean | undefined;
|
|
304
|
+
gender?: "male" | "female" | undefined;
|
|
305
305
|
isDeactivated?: boolean | undefined;
|
|
306
|
-
role?: "
|
|
306
|
+
role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
307
307
|
page?: number | undefined;
|
|
308
308
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
309
309
|
startDate?: string | undefined;
|
|
310
310
|
endDate?: string | undefined;
|
|
311
311
|
}, {
|
|
312
|
-
search?: string | undefined;
|
|
313
312
|
order?: "asc" | "desc" | undefined;
|
|
314
313
|
limit?: string | undefined;
|
|
315
|
-
|
|
314
|
+
search?: string | undefined;
|
|
316
315
|
isActive?: "true" | "false" | undefined;
|
|
316
|
+
gender?: "male" | "female" | undefined;
|
|
317
317
|
isDeactivated?: "true" | "false" | undefined;
|
|
318
|
-
role?: "
|
|
318
|
+
role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
319
319
|
page?: string | undefined;
|
|
320
320
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
321
321
|
startDate?: string | undefined;
|
|
322
322
|
endDate?: string | undefined;
|
|
323
|
-
sortBy?: "
|
|
323
|
+
sortBy?: "createdAt" | "firstName" | "gender" | "lastLoginAt" | undefined;
|
|
324
324
|
}>;
|
|
325
325
|
headers: z.ZodObject<{
|
|
326
326
|
authorization: z.ZodString;
|
|
@@ -332,13 +332,13 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
332
332
|
}, "strip", z.ZodTypeAny, {
|
|
333
333
|
query: {
|
|
334
334
|
order: "asc" | "desc";
|
|
335
|
-
sortBy: "
|
|
336
|
-
search?: string | undefined;
|
|
335
|
+
sortBy: "createdAt" | "firstName" | "gender" | "lastLoginAt";
|
|
337
336
|
limit?: number | undefined;
|
|
338
|
-
|
|
337
|
+
search?: string | undefined;
|
|
339
338
|
isActive?: boolean | undefined;
|
|
339
|
+
gender?: "male" | "female" | undefined;
|
|
340
340
|
isDeactivated?: boolean | undefined;
|
|
341
|
-
role?: "
|
|
341
|
+
role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
342
342
|
page?: number | undefined;
|
|
343
343
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
344
344
|
startDate?: string | undefined;
|
|
@@ -349,18 +349,18 @@ export declare const getAllUsersSchema: z.ZodObject<{
|
|
|
349
349
|
};
|
|
350
350
|
}, {
|
|
351
351
|
query: {
|
|
352
|
-
search?: string | undefined;
|
|
353
352
|
order?: "asc" | "desc" | undefined;
|
|
354
353
|
limit?: string | undefined;
|
|
355
|
-
|
|
354
|
+
search?: string | undefined;
|
|
356
355
|
isActive?: "true" | "false" | undefined;
|
|
356
|
+
gender?: "male" | "female" | undefined;
|
|
357
357
|
isDeactivated?: "true" | "false" | undefined;
|
|
358
|
-
role?: "
|
|
358
|
+
role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
|
|
359
359
|
page?: string | undefined;
|
|
360
360
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
361
361
|
startDate?: string | undefined;
|
|
362
362
|
endDate?: string | undefined;
|
|
363
|
-
sortBy?: "
|
|
363
|
+
sortBy?: "createdAt" | "firstName" | "gender" | "lastLoginAt" | undefined;
|
|
364
364
|
};
|
|
365
365
|
headers: {
|
|
366
366
|
authorization: string;
|
|
@@ -212,52 +212,52 @@ 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
|
-
search?: string | undefined;
|
|
216
215
|
limit?: number | undefined;
|
|
217
|
-
|
|
216
|
+
search?: string | undefined;
|
|
218
217
|
isActive?: "true" | "false" | undefined;
|
|
218
|
+
gender?: "male" | "female" | undefined;
|
|
219
219
|
isDeactivated?: "true" | "false" | undefined;
|
|
220
220
|
role?: string | undefined;
|
|
221
221
|
page?: number | undefined;
|
|
222
222
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
223
|
-
sortBy?: "
|
|
223
|
+
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
224
224
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
225
225
|
}, {
|
|
226
|
-
search?: string | undefined;
|
|
227
226
|
limit?: string | undefined;
|
|
228
|
-
|
|
227
|
+
search?: string | undefined;
|
|
229
228
|
isActive?: "true" | "false" | undefined;
|
|
229
|
+
gender?: "male" | "female" | undefined;
|
|
230
230
|
isDeactivated?: "true" | "false" | undefined;
|
|
231
231
|
role?: string | undefined;
|
|
232
232
|
page?: string | undefined;
|
|
233
233
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
234
|
-
sortBy?: "
|
|
234
|
+
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
235
235
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
236
236
|
}>;
|
|
237
237
|
}, "strip", z.ZodTypeAny, {
|
|
238
238
|
query: {
|
|
239
|
-
search?: string | undefined;
|
|
240
239
|
limit?: number | undefined;
|
|
241
|
-
|
|
240
|
+
search?: string | undefined;
|
|
242
241
|
isActive?: "true" | "false" | undefined;
|
|
242
|
+
gender?: "male" | "female" | undefined;
|
|
243
243
|
isDeactivated?: "true" | "false" | undefined;
|
|
244
244
|
role?: string | undefined;
|
|
245
245
|
page?: number | undefined;
|
|
246
246
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
247
|
-
sortBy?: "
|
|
247
|
+
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
248
248
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
249
249
|
};
|
|
250
250
|
}, {
|
|
251
251
|
query: {
|
|
252
|
-
search?: string | undefined;
|
|
253
252
|
limit?: string | undefined;
|
|
254
|
-
|
|
253
|
+
search?: string | undefined;
|
|
255
254
|
isActive?: "true" | "false" | undefined;
|
|
255
|
+
gender?: "male" | "female" | undefined;
|
|
256
256
|
isDeactivated?: "true" | "false" | undefined;
|
|
257
257
|
role?: string | undefined;
|
|
258
258
|
page?: string | undefined;
|
|
259
259
|
contactType?: "EMAIL" | "PHONE" | "WHATSAPP" | undefined;
|
|
260
|
-
sortBy?: "
|
|
260
|
+
sortBy?: "createdAt" | "firstName" | "lastName" | "gender" | undefined;
|
|
261
261
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
262
262
|
};
|
|
263
263
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vr-commons",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.148",
|
|
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.75",
|
|
107
107
|
"zod": "^3.25.20"
|
|
108
108
|
},
|
|
109
109
|
"dependencies": {
|