swoop-common 2.2.106 → 2.2.108
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/api/generated/core/models/DTOTripComparisonCreate.d.ts +1 -0
- package/dist/api/generated/core/models/DTOTripComparisonRead.d.ts +3 -0
- package/dist/api/generated/core/models/DTOTripComparisonUpdate.d.ts +1 -0
- package/dist/api/generated/core/models/TripComparisonItem.d.ts +3 -0
- package/dist/api/generated/swoop/models/Currency_jsonld.d.ts +3 -2
- package/dist/api/generated/swoop/models/Departure.d.ts +2 -0
- package/dist/api/generated/swoop/models/Departure_jsonld.d.ts +2 -0
- package/dist/api/generated/swoop/services/SwoopService.d.ts +2 -1
- package/dist/api/generated/swoop/services/SwoopService.js +3 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Metadata } from './Metadata';
|
|
1
2
|
import type { Trip } from './Trip';
|
|
2
3
|
import type { TripComparisonItemId } from './TripComparisonItemId';
|
|
3
4
|
export type DTOTripComparisonRead = {
|
|
@@ -6,4 +7,6 @@ export type DTOTripComparisonRead = {
|
|
|
6
7
|
trips: Array<Trip>;
|
|
7
8
|
selectedSalesStaff: Record<string, any>;
|
|
8
9
|
versionName?: string;
|
|
10
|
+
selectedCurrency: Record<string, any>;
|
|
11
|
+
metadata: Metadata;
|
|
9
12
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Metadata } from './Metadata';
|
|
1
2
|
import type { Trip } from './Trip';
|
|
2
3
|
import type { TripComparisonItemId } from './TripComparisonItemId';
|
|
3
4
|
export type TripComparisonItem = {
|
|
@@ -6,4 +7,6 @@ export type TripComparisonItem = {
|
|
|
6
7
|
trips: Array<Trip>;
|
|
7
8
|
selectedSalesStaff: Record<string, any>;
|
|
8
9
|
versionName?: string;
|
|
10
|
+
selectedCurrency: Record<string, any>;
|
|
11
|
+
metadata: Metadata;
|
|
9
12
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
|
+
export type Currency_jsonld = (HydraItemBaseSchema & {
|
|
2
3
|
id?: string;
|
|
3
4
|
currencyId?: number;
|
|
4
5
|
title?: string;
|
|
@@ -6,4 +7,4 @@ export type Currency_jsonld = {
|
|
|
6
7
|
iso3?: string;
|
|
7
8
|
symbol?: string;
|
|
8
9
|
active?: boolean;
|
|
9
|
-
};
|
|
10
|
+
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CabinData } from './CabinData';
|
|
2
|
+
import type { Currency } from './Currency';
|
|
2
3
|
import type { Status } from './Status';
|
|
3
4
|
import type { Vessel } from './Vessel';
|
|
4
5
|
export type Departure = {
|
|
@@ -25,4 +26,5 @@ export type Departure = {
|
|
|
25
26
|
* The Trip Variant ID associated with this departure
|
|
26
27
|
*/
|
|
27
28
|
tripVariantId?: number | null;
|
|
29
|
+
currency?: (Currency | null);
|
|
28
30
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CabinData } from './CabinData';
|
|
2
|
+
import type { Currency_jsonld } from './Currency_jsonld';
|
|
2
3
|
import type { Status_jsonld } from './Status_jsonld';
|
|
3
4
|
import type { Vessel_jsonld } from './Vessel_jsonld';
|
|
4
5
|
export type Departure_jsonld = {
|
|
@@ -25,4 +26,5 @@ export type Departure_jsonld = {
|
|
|
25
26
|
* The Trip Variant ID associated with this departure
|
|
26
27
|
*/
|
|
27
28
|
tripVariantId?: number | null;
|
|
29
|
+
currency?: (Currency_jsonld | null);
|
|
28
30
|
};
|
|
@@ -204,10 +204,11 @@ export declare class SwoopService {
|
|
|
204
204
|
* @param page The collection page number
|
|
205
205
|
* @param itemsPerPage The number of items per page
|
|
206
206
|
* @param tripId Trip ID: ANT-5
|
|
207
|
+
* @param iso3 Optional: Convert all prices to this currency (ISO 3 code, e.g., USD, GBP, EUR)
|
|
207
208
|
* @returns Departure Departure collection
|
|
208
209
|
* @throws ApiError
|
|
209
210
|
*/
|
|
210
|
-
departuresGetCollection(page?: number, itemsPerPage?: number, tripId?: string): CancelablePromise<Array<Departure>>;
|
|
211
|
+
departuresGetCollection(page?: number, itemsPerPage?: number, tripId?: string, iso3?: string): CancelablePromise<Array<Departure>>;
|
|
211
212
|
/**
|
|
212
213
|
* Retrieves a Enquiry resource.
|
|
213
214
|
* Retrieves a Enquiry resource.
|
|
@@ -280,10 +280,11 @@ export class SwoopService {
|
|
|
280
280
|
* @param page The collection page number
|
|
281
281
|
* @param itemsPerPage The number of items per page
|
|
282
282
|
* @param tripId Trip ID: ANT-5
|
|
283
|
+
* @param iso3 Optional: Convert all prices to this currency (ISO 3 code, e.g., USD, GBP, EUR)
|
|
283
284
|
* @returns Departure Departure collection
|
|
284
285
|
* @throws ApiError
|
|
285
286
|
*/
|
|
286
|
-
departuresGetCollection(page = 1, itemsPerPage = 30, tripId) {
|
|
287
|
+
departuresGetCollection(page = 1, itemsPerPage = 30, tripId, iso3) {
|
|
287
288
|
return __request(OpenAPI, {
|
|
288
289
|
method: 'GET',
|
|
289
290
|
url: '/api/departures',
|
|
@@ -291,6 +292,7 @@ export class SwoopService {
|
|
|
291
292
|
'page': page,
|
|
292
293
|
'itemsPerPage': itemsPerPage,
|
|
293
294
|
'tripId': tripId,
|
|
295
|
+
'iso_3': iso3,
|
|
294
296
|
},
|
|
295
297
|
});
|
|
296
298
|
}
|