swoop-common 2.2.221 → 2.2.222

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.
@@ -112,7 +112,7 @@ export type { PublicSnapShotPayment } from './index';
112
112
  export type { PublicSnapshotPerson } from './index';
113
113
  export type { PublicSnapshotPricing } from './index';
114
114
  export type { PublicSnapshotTraveller } from './index';
115
- export type { QuoteOptions } from './index';
115
+ export { QuoteOptions } from './index';
116
116
  export type { RegionId } from './index';
117
117
  export type { ReserveTripRequest } from './index';
118
118
  export type { SalesActionedRequest } from './index';
@@ -12,4 +12,5 @@ export { Destination } from './index';
12
12
  export { InfoNote } from './index';
13
13
  export { OrderQueryParam } from './index';
14
14
  export { OrgId } from './index';
15
+ export { QuoteOptions } from './index';
15
16
  export { UrgencyCTA } from './index';
@@ -112,7 +112,7 @@ export type { PublicSnapShotPayment } from './models/PublicSnapShotPayment';
112
112
  export type { PublicSnapshotPerson } from './models/PublicSnapshotPerson';
113
113
  export type { PublicSnapshotPricing } from './models/PublicSnapshotPricing';
114
114
  export type { PublicSnapshotTraveller } from './models/PublicSnapshotTraveller';
115
- export type { QuoteOptions } from './models/QuoteOptions';
115
+ export { QuoteOptions } from './models/QuoteOptions';
116
116
  export type { RegionId } from './models/RegionId';
117
117
  export type { ReserveTripRequest } from './models/ReserveTripRequest';
118
118
  export type { SalesActionedRequest } from './models/SalesActionedRequest';
@@ -15,6 +15,7 @@ export { Destination } from './models/Destination';
15
15
  export { InfoNote } from './models/InfoNote';
16
16
  export { OrderQueryParam } from './models/OrderQueryParam';
17
17
  export { OrgId } from './models/OrgId';
18
+ export { QuoteOptions } from './models/QuoteOptions';
18
19
  export { UrgencyCTA } from './models/UrgencyCTA';
19
20
  export { ComponentService } from './services/ComponentService';
20
21
  export { CoreService } from './services/CoreService';
@@ -34,6 +34,7 @@ export type ComponentInstance = {
34
34
  flag: Flag;
35
35
  bookingStatus: BookingStatus;
36
36
  isCancellationFee?: boolean;
37
+ hideFromCustomer?: boolean;
37
38
  sortOrder?: number;
38
39
  creditEntries?: Array<CreditEntry>;
39
40
  topLevelNotes?: Array<InfoNote>;
@@ -10,4 +10,12 @@ export type QuoteOptions = {
10
10
  savingMade: string;
11
11
  currency?: Currency;
12
12
  onBehalfOf?: string;
13
+ feeVisibility?: QuoteOptions.feeVisibility;
13
14
  };
15
+ export declare namespace QuoteOptions {
16
+ enum feeVisibility {
17
+ DEFAULT = "default",
18
+ SHOW_ALL = "showAll",
19
+ HIDE_ALL = "hideAll"
20
+ }
21
+ }
@@ -1 +1,9 @@
1
- export {};
1
+ export var QuoteOptions;
2
+ (function (QuoteOptions) {
3
+ let feeVisibility;
4
+ (function (feeVisibility) {
5
+ feeVisibility["DEFAULT"] = "default";
6
+ feeVisibility["SHOW_ALL"] = "showAll";
7
+ feeVisibility["HIDE_ALL"] = "hideAll";
8
+ })(feeVisibility = QuoteOptions.feeVisibility || (QuoteOptions.feeVisibility = {}));
9
+ })(QuoteOptions || (QuoteOptions = {}));
@@ -52,6 +52,10 @@ export type { ExchangeRateSwoop } from './index';
52
52
  export type { ExchangeRate_jsonldSwoop } from './index';
53
53
  export type { HydraCollectionBaseSchemaSwoop } from './index';
54
54
  export type { HydraItemBaseSchemaSwoop } from './index';
55
+ export type { IbAudit_jsonld_readSwoop } from './index';
56
+ export type { IbAudit_jsonld_writeSwoop } from './index';
57
+ export type { IbAudit_readSwoop } from './index';
58
+ export type { IbAudit_writeSwoop } from './index';
55
59
  export type { Itinerary_ItinerarySaveInputSwoop } from './index';
56
60
  export type { Itinerary_ItinerarySaveInput_jsonldSwoop } from './index';
57
61
  export type { Itinerary_ItinerarySaveOutputSwoop } from './index';
@@ -56,6 +56,10 @@ export type { ExchangeRate as ExchangeRateSwoop } from './models/ExchangeRate';
56
56
  export type { ExchangeRate_jsonld as ExchangeRate_jsonldSwoop } from './models/ExchangeRate_jsonld';
57
57
  export type { HydraCollectionBaseSchema as HydraCollectionBaseSchemaSwoop } from './models/HydraCollectionBaseSchema';
58
58
  export type { HydraItemBaseSchema as HydraItemBaseSchemaSwoop } from './models/HydraItemBaseSchema';
59
+ export type { IbAudit_jsonld_read as IbAudit_jsonld_readSwoop } from './models/IbAudit_jsonld_read';
60
+ export type { IbAudit_jsonld_write as IbAudit_jsonld_writeSwoop } from './models/IbAudit_jsonld_write';
61
+ export type { IbAudit_read as IbAudit_readSwoop } from './models/IbAudit_read';
62
+ export type { IbAudit_write as IbAudit_writeSwoop } from './models/IbAudit_write';
59
63
  export type { Itinerary_ItinerarySaveInput as Itinerary_ItinerarySaveInputSwoop } from './models/Itinerary_ItinerarySaveInput';
60
64
  export type { Itinerary_ItinerarySaveInput_jsonld as Itinerary_ItinerarySaveInput_jsonldSwoop } from './models/Itinerary_ItinerarySaveInput_jsonld';
61
65
  export type { Itinerary_ItinerarySaveOutput as Itinerary_ItinerarySaveOutputSwoop } from './models/Itinerary_ItinerarySaveOutput';
@@ -0,0 +1,12 @@
1
+ import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
2
+ export type IbAudit_jsonld_read = (HydraItemBaseSchema & {
3
+ id?: string;
4
+ enquiryId?: string | null;
5
+ entityId?: string | null;
6
+ entityType?: string | null;
7
+ action?: string | null;
8
+ changes?: Array<null>;
9
+ userEmail?: string | null;
10
+ userId?: string | null;
11
+ createdAt?: string | null;
12
+ });
@@ -0,0 +1,9 @@
1
+ export type IbAudit_jsonld_write = {
2
+ enquiryId?: string | null;
3
+ entityId?: string | null;
4
+ entityType?: string | null;
5
+ action?: string | null;
6
+ changes?: Array<null>;
7
+ userEmail?: string | null;
8
+ userId?: string | null;
9
+ };
@@ -0,0 +1,11 @@
1
+ export type IbAudit_read = {
2
+ id?: string;
3
+ enquiryId?: string | null;
4
+ entityId?: string | null;
5
+ entityType?: string | null;
6
+ action?: string | null;
7
+ changes?: Array<null>;
8
+ userEmail?: string | null;
9
+ userId?: string | null;
10
+ createdAt?: string | null;
11
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ export type IbAudit_write = {
2
+ enquiryId?: string | null;
3
+ entityId?: string | null;
4
+ entityType?: string | null;
5
+ action?: string | null;
6
+ changes?: Array<null>;
7
+ userEmail?: string | null;
8
+ userId?: string | null;
9
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -14,6 +14,8 @@ import type { Departure } from '../models/Departure';
14
14
  import type { Enquiry } from '../models/Enquiry';
15
15
  import type { EnquiryStatus } from '../models/EnquiryStatus';
16
16
  import type { ExchangeRate } from '../models/ExchangeRate';
17
+ import type { IbAudit_read } from '../models/IbAudit_read';
18
+ import type { IbAudit_write } from '../models/IbAudit_write';
17
19
  import type { Itinerary_ItinerarySaveInput } from '../models/Itinerary_ItinerarySaveInput';
18
20
  import type { Itinerary_ItinerarySaveOutput } from '../models/Itinerary_ItinerarySaveOutput';
19
21
  import type { MediaAsset } from '../models/MediaAsset';
@@ -239,6 +241,23 @@ export declare class SwoopService {
239
241
  * @throws ApiError
240
242
  */
241
243
  exchangeRateGetCollection(): CancelablePromise<Array<ExchangeRate>>;
244
+ /**
245
+ * Retrieves the collection of IbAudit resources.
246
+ * Retrieves the collection of IbAudit resources.
247
+ * @param enquiryId Enquiry external id, e.g. PAT-62076
248
+ * @param entityId Entity external id to filter by
249
+ * @returns IbAudit_read IbAudit collection
250
+ * @throws ApiError
251
+ */
252
+ ibAuditGetCollection(enquiryId?: string, entityId?: string): CancelablePromise<Array<IbAudit_read>>;
253
+ /**
254
+ * Creates a IbAudit resource.
255
+ * Creates a IbAudit resource.
256
+ * @param requestBody The new IbAudit resource
257
+ * @returns IbAudit_read IbAudit resource created
258
+ * @throws ApiError
259
+ */
260
+ ibAuditPost(requestBody: IbAudit_write): CancelablePromise<IbAudit_read>;
242
261
  /**
243
262
  * Replaces the Itinerary resource.
244
263
  * Replaces the Itinerary resource.
@@ -343,6 +343,43 @@ export class SwoopService {
343
343
  url: '/api/exchange-rate',
344
344
  });
345
345
  }
346
+ /**
347
+ * Retrieves the collection of IbAudit resources.
348
+ * Retrieves the collection of IbAudit resources.
349
+ * @param enquiryId Enquiry external id, e.g. PAT-62076
350
+ * @param entityId Entity external id to filter by
351
+ * @returns IbAudit_read IbAudit collection
352
+ * @throws ApiError
353
+ */
354
+ ibAuditGetCollection(enquiryId, entityId) {
355
+ return __request(OpenAPI, {
356
+ method: 'GET',
357
+ url: '/api/ib-audit',
358
+ query: {
359
+ 'enquiryId': enquiryId,
360
+ 'entityId': entityId,
361
+ },
362
+ });
363
+ }
364
+ /**
365
+ * Creates a IbAudit resource.
366
+ * Creates a IbAudit resource.
367
+ * @param requestBody The new IbAudit resource
368
+ * @returns IbAudit_read IbAudit resource created
369
+ * @throws ApiError
370
+ */
371
+ ibAuditPost(requestBody) {
372
+ return __request(OpenAPI, {
373
+ method: 'POST',
374
+ url: '/api/ib-audit',
375
+ body: requestBody,
376
+ mediaType: 'application/json',
377
+ errors: {
378
+ 400: `Invalid input`,
379
+ 422: `Validation Error`,
380
+ },
381
+ });
382
+ }
346
383
  /**
347
384
  * Replaces the Itinerary resource.
348
385
  * Replaces the Itinerary resource.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.2.221",
3
+ "version": "2.2.222",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {