@vulog/aima-booking 1.1.55 → 1.1.57

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.d.mts CHANGED
@@ -17,6 +17,14 @@ type PaymentReceipts = {
17
17
  scope: string;
18
18
  };
19
19
  };
20
+ type CustomPrice = {
21
+ id: string;
22
+ fleetId: string;
23
+ type: 'CUSTOM_FIXED_PRICE' | 'EXTENDED_FIXED_PRICE';
24
+ amount: number;
25
+ reason: string;
26
+ pricingReferenceId: string | null;
27
+ };
20
28
  type BookingRequest = {
21
29
  id: string;
22
30
  startDate: string;
@@ -52,7 +60,7 @@ type BookingRequest = {
52
60
  rollingContract: boolean;
53
61
  planDurationInMonths?: number;
54
62
  contractType?: string;
55
- customPrice?: string;
63
+ customPrice: CustomPrice | null;
56
64
  productIds: string[];
57
65
  bookingReferenceId?: string;
58
66
  pricingDetails: {
package/dist/index.d.ts CHANGED
@@ -17,6 +17,14 @@ type PaymentReceipts = {
17
17
  scope: string;
18
18
  };
19
19
  };
20
+ type CustomPrice = {
21
+ id: string;
22
+ fleetId: string;
23
+ type: 'CUSTOM_FIXED_PRICE' | 'EXTENDED_FIXED_PRICE';
24
+ amount: number;
25
+ reason: string;
26
+ pricingReferenceId: string | null;
27
+ };
20
28
  type BookingRequest = {
21
29
  id: string;
22
30
  startDate: string;
@@ -52,7 +60,7 @@ type BookingRequest = {
52
60
  rollingContract: boolean;
53
61
  planDurationInMonths?: number;
54
62
  contractType?: string;
55
- customPrice?: string;
63
+ customPrice: CustomPrice | null;
56
64
  productIds: string[];
57
65
  bookingReferenceId?: string;
58
66
  pricingDetails: {
package/dist/index.js CHANGED
@@ -235,7 +235,7 @@ var getStations = async (client, includes = []) => {
235
235
  }
236
236
  acc[service.station.id].services.push({
237
237
  id: service.serviceId,
238
- models: service.models
238
+ models: service.station.models
239
239
  });
240
240
  return acc;
241
241
  }, {})
package/dist/index.mjs CHANGED
@@ -203,7 +203,7 @@ var getStations = async (client, includes = []) => {
203
203
  }
204
204
  acc[service.station.id].services.push({
205
205
  id: service.serviceId,
206
- models: service.models
206
+ models: service.station.models
207
207
  });
208
208
  return acc;
209
209
  }, {})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vulog/aima-booking",
3
- "version": "1.1.55",
3
+ "version": "1.1.57",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -19,8 +19,8 @@
19
19
  "author": "Vulog",
20
20
  "license": "ISC",
21
21
  "dependencies": {
22
- "@vulog/aima-client": "1.1.55",
23
- "@vulog/aima-core": "1.1.55"
22
+ "@vulog/aima-client": "1.1.57",
23
+ "@vulog/aima-core": "1.1.57"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "es-toolkit": "^1.33.0",
@@ -149,7 +149,7 @@ export const getStations = async (client: Client, includes: Include[] = []): Pro
149
149
  }
150
150
  acc[service.station.id].services.push({
151
151
  id: service.serviceId,
152
- models: service.models,
152
+ models: service.station.models,
153
153
  });
154
154
  return acc;
155
155
  }, {})
package/src/types.ts CHANGED
@@ -15,6 +15,15 @@ export type PaymentReceipts = {
15
15
  };
16
16
  };
17
17
 
18
+ export type CustomPrice = {
19
+ id: string;
20
+ fleetId: string;
21
+ type: 'CUSTOM_FIXED_PRICE' | 'EXTENDED_FIXED_PRICE';
22
+ amount: number;
23
+ reason: string;
24
+ pricingReferenceId: string | null;
25
+ };
26
+
18
27
  export type BookingRequest = {
19
28
  id: string;
20
29
  startDate: string;
@@ -50,7 +59,7 @@ export type BookingRequest = {
50
59
  rollingContract: boolean;
51
60
  planDurationInMonths?: number;
52
61
  contractType?: string;
53
- customPrice?: string;
62
+ customPrice: CustomPrice | null;
54
63
  productIds: string[];
55
64
  bookingReferenceId?: string;
56
65
  pricingDetails: {