@vulog/aima-booking 1.1.81 → 1.1.82
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/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +6 -6
- package/src/getBookingRequests.ts +14 -12
package/dist/index.js
CHANGED
|
@@ -68,7 +68,7 @@ var getBookingRequests = async (client, status, options) => {
|
|
|
68
68
|
startDate: import_zod.z.string().datetime({ offset: false, precision: 0 }).default(startDate),
|
|
69
69
|
endDate: import_zod.z.string().datetime({ offset: false, precision: 0 }).default(endDate),
|
|
70
70
|
includeProducts: import_zod.z.enum(["true", "false"]).optional()
|
|
71
|
-
});
|
|
71
|
+
}).default({});
|
|
72
72
|
const PaginableOptionsSchema = (0, import_aima_core.createPaginableOptionsSchema)(BookingRequestFiltersSchema).default({});
|
|
73
73
|
const resultOptions = PaginableOptionsSchema.safeParse(preparedOptions);
|
|
74
74
|
if (!resultOptions.success) {
|
package/dist/index.mjs
CHANGED
|
@@ -35,7 +35,7 @@ var getBookingRequests = async (client, status, options) => {
|
|
|
35
35
|
startDate: z.string().datetime({ offset: false, precision: 0 }).default(startDate),
|
|
36
36
|
endDate: z.string().datetime({ offset: false, precision: 0 }).default(endDate),
|
|
37
37
|
includeProducts: z.enum(["true", "false"]).optional()
|
|
38
|
-
});
|
|
38
|
+
}).default({});
|
|
39
39
|
const PaginableOptionsSchema = createPaginableOptionsSchema(BookingRequestFiltersSchema).default({});
|
|
40
40
|
const resultOptions = PaginableOptionsSchema.safeParse(preparedOptions);
|
|
41
41
|
if (!resultOptions.success) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vulog/aima-booking",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.82",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"author": "Vulog",
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@vulog/aima-client": "1.1.
|
|
23
|
-
"@vulog/aima-core": "1.1.
|
|
22
|
+
"@vulog/aima-client": "1.1.82",
|
|
23
|
+
"@vulog/aima-core": "1.1.82"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"es-toolkit": "^1.
|
|
27
|
-
"zod": "^3.
|
|
26
|
+
"es-toolkit": "^1.39.9",
|
|
27
|
+
"zod": "^3.25.76"
|
|
28
28
|
},
|
|
29
29
|
"description": ""
|
|
30
|
-
}
|
|
30
|
+
}
|
|
@@ -62,18 +62,20 @@ export const getBookingRequests = async (
|
|
|
62
62
|
const startDate = date.toISOString().replace('.000Z', 'Z');
|
|
63
63
|
date.setMonth(date.getMonth() + 2);
|
|
64
64
|
const endDate = date.toISOString().replace('.000Z', 'Z');
|
|
65
|
-
const BookingRequestFiltersSchema = z
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
65
|
+
const BookingRequestFiltersSchema = z
|
|
66
|
+
.object({
|
|
67
|
+
serviceTypes: z.array(ServiceTypeSchema).optional(),
|
|
68
|
+
serviceIds: z.array(z.string().uuid()).optional(),
|
|
69
|
+
userId: z.string().uuid().optional(),
|
|
70
|
+
modelId: z.number().positive().optional(),
|
|
71
|
+
vehicleId: z.string().uuid().optional(),
|
|
72
|
+
stationId: z.string().uuid().optional(),
|
|
73
|
+
creationDate: z.string().date().optional(),
|
|
74
|
+
startDate: z.string().datetime({ offset: false, precision: 0 }).default(startDate),
|
|
75
|
+
endDate: z.string().datetime({ offset: false, precision: 0 }).default(endDate),
|
|
76
|
+
includeProducts: z.enum(['true', 'false']).optional(),
|
|
77
|
+
})
|
|
78
|
+
.default({});
|
|
77
79
|
|
|
78
80
|
const PaginableOptionsSchema = createPaginableOptionsSchema(BookingRequestFiltersSchema).default({});
|
|
79
81
|
|