swoop-common 2.2.96 → 2.2.98

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.
@@ -11,6 +11,8 @@ export { BookingStatus } from './index';
11
11
  export type { Branches } from './index';
12
12
  export type { BranchId } from './index';
13
13
  export type { BranchTag } from './index';
14
+ export type { ComponentBatchRequest } from './index';
15
+ export type { ComponentBatchResponse } from './index';
14
16
  export type { ComponentDescription } from './index';
15
17
  export type { ComponentFAQ } from './index';
16
18
  export type { ComponentId } from './index';
@@ -11,6 +11,8 @@ export { BookingStatus } from './models/BookingStatus';
11
11
  export type { Branches } from './models/Branches';
12
12
  export type { BranchId } from './models/BranchId';
13
13
  export type { BranchTag } from './models/BranchTag';
14
+ export type { ComponentBatchRequest } from './models/ComponentBatchRequest';
15
+ export type { ComponentBatchResponse } from './models/ComponentBatchResponse';
14
16
  export type { ComponentDescription } from './models/ComponentDescription';
15
17
  export type { ComponentFAQ } from './models/ComponentFAQ';
16
18
  export type { ComponentId } from './models/ComponentId';
@@ -0,0 +1,4 @@
1
+ import type { ComponentId } from './ComponentId';
2
+ export type ComponentBatchRequest = {
3
+ componentIds: Array<ComponentId>;
4
+ };
@@ -0,0 +1,4 @@
1
+ import type { DTOComponentRead } from './DTOComponentRead';
2
+ export type ComponentBatchResponse = {
3
+ data: Array<DTOComponentRead>;
4
+ };
@@ -5,4 +5,5 @@ export type DTOTripComparisonCreate = {
5
5
  headerContent: string;
6
6
  trips: Array<Trip>;
7
7
  selectedSalesStaff: Record<string, any>;
8
+ versionName?: string;
8
9
  };
@@ -5,4 +5,5 @@ export type DTOTripComparisonRead = {
5
5
  headerContent: string;
6
6
  trips: Array<Trip>;
7
7
  selectedSalesStaff: Record<string, any>;
8
+ versionName?: string;
8
9
  };
@@ -5,4 +5,5 @@ export type DTOTripComparisonUpdate = {
5
5
  headerContent: string;
6
6
  trips: Array<Trip>;
7
7
  selectedSalesStaff: Record<string, any>;
8
+ versionName?: string;
8
9
  };
@@ -5,4 +5,9 @@ export type Trip = {
5
5
  selectedDeparture?: Record<string, any>;
6
6
  selectedCabin?: Record<string, any>;
7
7
  selectedImageUrl?: string;
8
+ alternativeCabinOptions?: Array<Record<string, any>>;
9
+ selectedVesselImageUrl?: string;
10
+ vesselComponent?: Record<string, any>;
11
+ activities?: Array<Record<string, any>>;
12
+ price?: Record<string, any>;
8
13
  };
@@ -5,4 +5,5 @@ export type TripComparisonItem = {
5
5
  headerContent: string;
6
6
  trips: Array<Trip>;
7
7
  selectedSalesStaff: Record<string, any>;
8
+ versionName?: string;
8
9
  };
@@ -1,3 +1,5 @@
1
+ import type { ComponentBatchRequest } from '../models/ComponentBatchRequest';
2
+ import type { ComponentBatchResponse } from '../models/ComponentBatchResponse';
1
3
  import type { ComponentId } from '../models/ComponentId';
2
4
  import type { ComponentState } from '../models/ComponentState';
3
5
  import type { DTOComponentCreate } from '../models/DTOComponentCreate';
@@ -30,6 +32,14 @@ export declare class ComponentService {
30
32
  * @throws ApiError
31
33
  */
32
34
  static componentCreate(requestBody: DTOComponentCreate): CancelablePromise<DTOComponentRead>;
35
+ /**
36
+ * Get Components by IDs
37
+ * Get multiple components by providing an array of component IDs
38
+ * @param requestBody
39
+ * @returns ComponentBatchResponse Successfully retrieved components
40
+ * @throws ApiError
41
+ */
42
+ static componentBatchGet(requestBody: ComponentBatchRequest): CancelablePromise<ComponentBatchResponse>;
33
43
  /**
34
44
  * Get Component
35
45
  * Get Component via ID
@@ -53,6 +53,27 @@ export class ComponentService {
53
53
  },
54
54
  });
55
55
  }
56
+ /**
57
+ * Get Components by IDs
58
+ * Get multiple components by providing an array of component IDs
59
+ * @param requestBody
60
+ * @returns ComponentBatchResponse Successfully retrieved components
61
+ * @throws ApiError
62
+ */
63
+ static componentBatchGet(requestBody) {
64
+ return __request(OpenAPI, {
65
+ method: 'POST',
66
+ url: '/component/batch',
67
+ body: requestBody,
68
+ mediaType: 'application/json',
69
+ errors: {
70
+ 400: `If the payload is malformed`,
71
+ 401: `Unauthorized - Missing or invalid Authorization header`,
72
+ 403: `Forbidden - The client is authenticated but not authorized to access this resource`,
73
+ 500: `Internal Server Error`,
74
+ },
75
+ });
76
+ }
56
77
  /**
57
78
  * Get Component
58
79
  * Get Component via ID
@@ -1,5 +1,7 @@
1
1
  import type { Branches } from '../models/Branches';
2
2
  import type { BranchTag } from '../models/BranchTag';
3
+ import type { ComponentBatchRequest } from '../models/ComponentBatchRequest';
4
+ import type { ComponentBatchResponse } from '../models/ComponentBatchResponse';
3
5
  import type { ComponentId } from '../models/ComponentId';
4
6
  import type { ComponentState } from '../models/ComponentState';
5
7
  import type { DTOComponentCreate } from '../models/DTOComponentCreate';
@@ -253,6 +255,14 @@ export declare class CoreService {
253
255
  * @throws ApiError
254
256
  */
255
257
  componentCreate(requestBody: DTOComponentCreate): CancelablePromise<DTOComponentRead>;
258
+ /**
259
+ * Get Components by IDs
260
+ * Get multiple components by providing an array of component IDs
261
+ * @param requestBody
262
+ * @returns ComponentBatchResponse Successfully retrieved components
263
+ * @throws ApiError
264
+ */
265
+ componentBatchGet(requestBody: ComponentBatchRequest): CancelablePromise<ComponentBatchResponse>;
256
266
  /**
257
267
  * Get Component
258
268
  * Get Component via ID
@@ -552,6 +552,27 @@ export class CoreService {
552
552
  },
553
553
  });
554
554
  }
555
+ /**
556
+ * Get Components by IDs
557
+ * Get multiple components by providing an array of component IDs
558
+ * @param requestBody
559
+ * @returns ComponentBatchResponse Successfully retrieved components
560
+ * @throws ApiError
561
+ */
562
+ componentBatchGet(requestBody) {
563
+ return __request(OpenAPI, {
564
+ method: 'POST',
565
+ url: '/component/batch',
566
+ body: requestBody,
567
+ mediaType: 'application/json',
568
+ errors: {
569
+ 400: `If the payload is malformed`,
570
+ 401: `Unauthorized - Missing or invalid Authorization header`,
571
+ 403: `Forbidden - The client is authenticated but not authorized to access this resource`,
572
+ 500: `Internal Server Error`,
573
+ },
574
+ });
575
+ }
555
576
  /**
556
577
  * Get Component
557
578
  * Get Component via ID
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.2.96",
3
+ "version": "2.2.98",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {