swoop-common 2.2.105 → 2.2.107

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.
@@ -1,4 +1,5 @@
1
- export type Currency_jsonld = {
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.2.105",
3
+ "version": "2.2.107",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {