swoop-common 2.2.43 → 2.2.46
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/exports.d.ts +4 -0
- package/dist/api/generated/core/exports.js +1 -0
- package/dist/api/generated/core/index.d.ts +4 -0
- package/dist/api/generated/core/index.js +1 -0
- package/dist/api/generated/core/models/Amendment.d.ts +8 -6
- package/dist/api/generated/core/models/AmendmentTravellers.d.ts +5 -0
- package/dist/api/generated/core/models/AmendmentTravellers.js +1 -0
- package/dist/api/generated/core/models/AmendmentType.d.ts +3 -0
- package/dist/api/generated/core/models/AmendmentType.js +8 -0
- package/dist/api/generated/core/models/AssignedPassenger.d.ts +3 -2
- package/dist/api/generated/core/models/AssignedTravellerGroup.d.ts +2 -1
- package/dist/api/generated/core/models/Branches.d.ts +2 -2
- package/dist/api/generated/core/models/ComponentInstance.d.ts +7 -7
- package/dist/api/generated/core/models/ComponentInstanceId.d.ts +1 -0
- package/dist/api/generated/core/models/ComponentInstanceId.js +1 -0
- package/dist/api/generated/core/models/DTOComponentCreate.d.ts +2 -2
- package/dist/api/generated/core/models/DTOComponentEntity.d.ts +2 -2
- package/dist/api/generated/core/models/DTOComponentRead.d.ts +2 -2
- package/dist/api/generated/core/models/DTOComponentUpdate.d.ts +2 -2
- package/dist/api/generated/core/models/DTOItineraryCreate.d.ts +4 -2
- package/dist/api/generated/core/models/DTOItineraryEntity.d.ts +4 -2
- package/dist/api/generated/core/models/DTOItineraryRead.d.ts +4 -2
- package/dist/api/generated/core/models/DTOItineraryUpdate.d.ts +2 -0
- package/dist/api/generated/core/models/DTOPublicSnapshotCreate.d.ts +2 -2
- package/dist/api/generated/core/models/DTOPublicSnapshotEntity.d.ts +2 -2
- package/dist/api/generated/core/models/DTOPublicSnapshotRead.d.ts +2 -2
- package/dist/api/generated/core/models/DTOSnapshotCreate.d.ts +2 -2
- package/dist/api/generated/core/models/DTOSnapshotEntity.d.ts +2 -2
- package/dist/api/generated/core/models/DTOSnapshotRead.d.ts +2 -2
- package/dist/api/generated/core/models/DTOSwoopSync.d.ts +2 -2
- package/dist/api/generated/core/models/EnquiryId.d.ts +2 -1
- package/dist/api/generated/core/models/EnquiryIdPathParam.d.ts +2 -2
- package/dist/api/generated/core/models/InternalSwoopId.d.ts +1 -0
- package/dist/api/generated/core/models/InternalSwoopId.js +1 -0
- package/dist/api/generated/core/models/ItineraryCreateResponse.d.ts +2 -2
- package/dist/api/generated/core/models/Partner.d.ts +2 -1
- package/dist/api/generated/core/models/Partners.d.ts +2 -2
- package/dist/api/generated/core/models/SwoopSyncComponentInstance.d.ts +4 -4
- package/dist/api/generated/core/models/TripId.d.ts +2 -1
- package/dist/api/generated/core/services/CoreService.d.ts +8 -8
- package/dist/api/generated/core/services/ItineraryService.d.ts +8 -8
- package/dist/rendering/renderers/ComponentPicker.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,8 @@ export { CancelablePromise, CancelError } from './index';
|
|
|
3
3
|
export { OpenAPI } from './index';
|
|
4
4
|
export type { OpenAPIConfig } from './index';
|
|
5
5
|
export type { Amendment } from './index';
|
|
6
|
+
export type { AmendmentTravellers } from './index';
|
|
7
|
+
export { AmendmentType } from './index';
|
|
6
8
|
export type { AssignedPassenger } from './index';
|
|
7
9
|
export type { AssignedTravellerGroup } from './index';
|
|
8
10
|
export { BookingStatus } from './index';
|
|
@@ -14,6 +16,7 @@ export type { ComponentFAQ } from './index';
|
|
|
14
16
|
export type { ComponentId } from './index';
|
|
15
17
|
export type { ComponentIdPathParam } from './index';
|
|
16
18
|
export type { ComponentInstance } from './index';
|
|
19
|
+
export type { ComponentInstanceId } from './index';
|
|
17
20
|
export type { ComponentNotes } from './index';
|
|
18
21
|
export type { ComponentRevisionGroupId } from './index';
|
|
19
22
|
export { ComponentState } from './index';
|
|
@@ -60,6 +63,7 @@ export type { Error } from './index';
|
|
|
60
63
|
export type { Fee } from './index';
|
|
61
64
|
export type { Field } from './index';
|
|
62
65
|
export type { IdMap } from './index';
|
|
66
|
+
export type { InternalSwoopId } from './index';
|
|
63
67
|
export type { ItineraryCreateResponse } from './index';
|
|
64
68
|
export type { ItineraryId } from './index';
|
|
65
69
|
export type { ItineraryIdPathParam } from './index';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export { ApiError } from './index';
|
|
3
3
|
export { CancelablePromise, CancelError } from './index';
|
|
4
4
|
export { OpenAPI } from './index';
|
|
5
|
+
export { AmendmentType } from './index';
|
|
5
6
|
export { BookingStatus } from './index';
|
|
6
7
|
export { ComponentState } from './index';
|
|
7
8
|
export { Currency } from './index';
|
|
@@ -3,6 +3,8 @@ export { CancelablePromise, CancelError } from './core/CancelablePromise';
|
|
|
3
3
|
export { OpenAPI } from './core/OpenAPI';
|
|
4
4
|
export type { OpenAPIConfig } from './core/OpenAPI';
|
|
5
5
|
export type { Amendment } from './models/Amendment';
|
|
6
|
+
export type { AmendmentTravellers } from './models/AmendmentTravellers';
|
|
7
|
+
export { AmendmentType } from './models/AmendmentType';
|
|
6
8
|
export type { AssignedPassenger } from './models/AssignedPassenger';
|
|
7
9
|
export type { AssignedTravellerGroup } from './models/AssignedTravellerGroup';
|
|
8
10
|
export { BookingStatus } from './models/BookingStatus';
|
|
@@ -14,6 +16,7 @@ export type { ComponentFAQ } from './models/ComponentFAQ';
|
|
|
14
16
|
export type { ComponentId } from './models/ComponentId';
|
|
15
17
|
export type { ComponentIdPathParam } from './models/ComponentIdPathParam';
|
|
16
18
|
export type { ComponentInstance } from './models/ComponentInstance';
|
|
19
|
+
export type { ComponentInstanceId } from './models/ComponentInstanceId';
|
|
17
20
|
export type { ComponentNotes } from './models/ComponentNotes';
|
|
18
21
|
export type { ComponentRevisionGroupId } from './models/ComponentRevisionGroupId';
|
|
19
22
|
export { ComponentState } from './models/ComponentState';
|
|
@@ -60,6 +63,7 @@ export type { Error } from './models/Error';
|
|
|
60
63
|
export type { Fee } from './models/Fee';
|
|
61
64
|
export type { Field } from './models/Field';
|
|
62
65
|
export type { IdMap } from './models/IdMap';
|
|
66
|
+
export type { InternalSwoopId } from './models/InternalSwoopId';
|
|
63
67
|
export type { ItineraryCreateResponse } from './models/ItineraryCreateResponse';
|
|
64
68
|
export type { ItineraryId } from './models/ItineraryId';
|
|
65
69
|
export type { ItineraryIdPathParam } from './models/ItineraryIdPathParam';
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
export { ApiError } from './core/ApiError';
|
|
6
6
|
export { CancelablePromise, CancelError } from './core/CancelablePromise';
|
|
7
7
|
export { OpenAPI } from './core/OpenAPI';
|
|
8
|
+
export { AmendmentType } from './models/AmendmentType';
|
|
8
9
|
export { BookingStatus } from './models/BookingStatus';
|
|
9
10
|
export { ComponentState } from './models/ComponentState';
|
|
10
11
|
export { Currency } from './models/Currency';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import type { AmendmentTravellers } from './AmendmentTravellers';
|
|
2
|
+
import type { AmendmentType } from './AmendmentType';
|
|
3
|
+
import type { ComponentInstanceId } from './ComponentInstanceId';
|
|
4
4
|
export type Amendment = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
type: AmendmentType;
|
|
6
|
+
componentInstanceId: ComponentInstanceId;
|
|
7
|
+
date: string;
|
|
8
|
+
description: string;
|
|
9
|
+
assignedTravellers: Array<AmendmentTravellers>;
|
|
8
10
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var AmendmentType;
|
|
6
|
+
(function (AmendmentType) {
|
|
7
|
+
AmendmentType["CANCELLATION"] = "cancellation";
|
|
8
|
+
})(AmendmentType || (AmendmentType = {}));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
1
2
|
export type AssignedPassenger = {
|
|
2
|
-
travellerId:
|
|
3
|
-
travellerGroupId:
|
|
3
|
+
travellerId: InternalSwoopId;
|
|
4
|
+
travellerGroupId: InternalSwoopId;
|
|
4
5
|
firstName: string;
|
|
5
6
|
lastName: string;
|
|
6
7
|
email: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { BranchTag } from './BranchTag';
|
|
2
|
-
import type {
|
|
2
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
3
3
|
import type { ItineraryId } from './ItineraryId';
|
|
4
4
|
import type { Metadata } from './Metadata';
|
|
5
5
|
export type Branches = {
|
|
6
|
-
enquiryId:
|
|
6
|
+
enquiryId: InternalSwoopId;
|
|
7
7
|
tag: BranchTag;
|
|
8
8
|
version: number;
|
|
9
9
|
itineraryId: ItineraryId;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import type { Amendment } from './Amendment';
|
|
2
1
|
import type { AssignedPassenger } from './AssignedPassenger';
|
|
3
2
|
import type { AssignedTravellerGroup } from './AssignedTravellerGroup';
|
|
4
3
|
import type { BookingStatus } from './BookingStatus';
|
|
5
4
|
import type { ComponentId } from './ComponentId';
|
|
5
|
+
import type { ComponentInstanceId } from './ComponentInstanceId';
|
|
6
6
|
import type { Field } from './Field';
|
|
7
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
7
8
|
import type { Price } from './Price';
|
|
8
9
|
import type { UserComponentInstanceField } from './UserComponentInstanceField';
|
|
9
10
|
export type ComponentInstance = {
|
|
10
|
-
id:
|
|
11
|
-
parentId?:
|
|
11
|
+
id: ComponentInstanceId;
|
|
12
|
+
parentId?: ComponentInstanceId;
|
|
12
13
|
componentId: ComponentId;
|
|
13
|
-
partnerId:
|
|
14
|
+
partnerId: InternalSwoopId;
|
|
14
15
|
componentInstanceFields: Array<Field>;
|
|
15
16
|
userComponentInstanceFields: Array<UserComponentInstanceField>;
|
|
16
17
|
assignedPassengers: Array<AssignedPassenger>;
|
|
@@ -21,10 +22,9 @@ export type ComponentInstance = {
|
|
|
21
22
|
negotiatedDiscount: number;
|
|
22
23
|
nonCommissionableAmount: number;
|
|
23
24
|
};
|
|
24
|
-
amendments?: Array<Amendment>;
|
|
25
25
|
bookingGroup: string;
|
|
26
|
-
startDate
|
|
27
|
-
endDate
|
|
26
|
+
startDate?: string;
|
|
27
|
+
endDate?: string;
|
|
28
28
|
isNew: boolean;
|
|
29
29
|
bookingStatus: BookingStatus;
|
|
30
30
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ComponentInstanceId = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,6 +4,7 @@ import type { ComponentNotes } from './ComponentNotes';
|
|
|
4
4
|
import type { ComponentState } from './ComponentState';
|
|
5
5
|
import type { Destination } from './Destination';
|
|
6
6
|
import type { Field } from './Field';
|
|
7
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
7
8
|
import type { Media } from './Media';
|
|
8
9
|
import type { OrgId } from './OrgId';
|
|
9
10
|
import type { Package } from './Package';
|
|
@@ -12,10 +13,9 @@ import type { Price } from './Price';
|
|
|
12
13
|
import type { RegionId } from './RegionId';
|
|
13
14
|
import type { TemplateId } from './TemplateId';
|
|
14
15
|
import type { Title } from './Title';
|
|
15
|
-
import type { TripId } from './TripId';
|
|
16
16
|
export type DTOComponentCreate = {
|
|
17
17
|
orgId: OrgId;
|
|
18
|
-
tripId?:
|
|
18
|
+
tripId?: InternalSwoopId;
|
|
19
19
|
templateId: TemplateId;
|
|
20
20
|
name: Title;
|
|
21
21
|
destination: Destination;
|
|
@@ -6,6 +6,7 @@ import type { ComponentRevisionGroupId } from './ComponentRevisionGroupId';
|
|
|
6
6
|
import type { ComponentState } from './ComponentState';
|
|
7
7
|
import type { Destination } from './Destination';
|
|
8
8
|
import type { Field } from './Field';
|
|
9
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
9
10
|
import type { Media } from './Media';
|
|
10
11
|
import type { Metadata } from './Metadata';
|
|
11
12
|
import type { OrgId } from './OrgId';
|
|
@@ -15,11 +16,10 @@ import type { Price } from './Price';
|
|
|
15
16
|
import type { RegionId } from './RegionId';
|
|
16
17
|
import type { TemplateId } from './TemplateId';
|
|
17
18
|
import type { Title } from './Title';
|
|
18
|
-
import type { TripId } from './TripId';
|
|
19
19
|
export type DTOComponentEntity = {
|
|
20
20
|
id: ComponentId;
|
|
21
21
|
orgId: OrgId;
|
|
22
|
-
tripId?:
|
|
22
|
+
tripId?: InternalSwoopId;
|
|
23
23
|
templateId: TemplateId;
|
|
24
24
|
revisionGroupId: ComponentRevisionGroupId;
|
|
25
25
|
revision: number;
|
|
@@ -6,6 +6,7 @@ import type { ComponentRevisionGroupId } from './ComponentRevisionGroupId';
|
|
|
6
6
|
import type { ComponentState } from './ComponentState';
|
|
7
7
|
import type { Destination } from './Destination';
|
|
8
8
|
import type { Field } from './Field';
|
|
9
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
9
10
|
import type { Media } from './Media';
|
|
10
11
|
import type { Metadata } from './Metadata';
|
|
11
12
|
import type { OrgId } from './OrgId';
|
|
@@ -15,11 +16,10 @@ import type { Price } from './Price';
|
|
|
15
16
|
import type { RegionId } from './RegionId';
|
|
16
17
|
import type { TemplateId } from './TemplateId';
|
|
17
18
|
import type { Title } from './Title';
|
|
18
|
-
import type { TripId } from './TripId';
|
|
19
19
|
export type DTOComponentRead = {
|
|
20
20
|
id: ComponentId;
|
|
21
21
|
orgId: OrgId;
|
|
22
|
-
tripId?:
|
|
22
|
+
tripId?: InternalSwoopId;
|
|
23
23
|
templateId: TemplateId;
|
|
24
24
|
revisionGroupId: ComponentRevisionGroupId;
|
|
25
25
|
revision: number;
|
|
@@ -4,15 +4,15 @@ import type { ComponentNotes } from './ComponentNotes';
|
|
|
4
4
|
import type { ComponentState } from './ComponentState';
|
|
5
5
|
import type { Destination } from './Destination';
|
|
6
6
|
import type { Field } from './Field';
|
|
7
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
7
8
|
import type { Media } from './Media';
|
|
8
9
|
import type { Package } from './Package';
|
|
9
10
|
import type { Partners } from './Partners';
|
|
10
11
|
import type { Price } from './Price';
|
|
11
12
|
import type { Title } from './Title';
|
|
12
|
-
import type { TripId } from './TripId';
|
|
13
13
|
export type DTOComponentUpdate = {
|
|
14
14
|
name?: Title;
|
|
15
|
-
tripId?:
|
|
15
|
+
tripId?: InternalSwoopId;
|
|
16
16
|
destination?: Destination;
|
|
17
17
|
description?: ComponentDescription;
|
|
18
18
|
notes?: ComponentNotes;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
import type { Amendment } from './Amendment';
|
|
1
2
|
import type { ComponentInstance } from './ComponentInstance';
|
|
2
3
|
import type { Discount } from './Discount';
|
|
3
|
-
import type { EnquiryId } from './EnquiryId';
|
|
4
4
|
import type { Fee } from './Fee';
|
|
5
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
5
6
|
import type { ItineraryValue } from './ItineraryValue';
|
|
6
7
|
import type { QuoteOptions } from './QuoteOptions';
|
|
7
8
|
import type { Title } from './Title';
|
|
8
9
|
export type DTOItineraryCreate = {
|
|
9
|
-
enquiryId?:
|
|
10
|
+
enquiryId?: InternalSwoopId;
|
|
10
11
|
title: Title;
|
|
11
12
|
welcomeNote?: string;
|
|
12
13
|
values?: Array<ItineraryValue>;
|
|
14
|
+
amendments?: Array<Amendment>;
|
|
13
15
|
componentInstances?: Array<ComponentInstance>;
|
|
14
16
|
fees?: Array<Fee>;
|
|
15
17
|
quoteOption?: QuoteOptions;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { Amendment } from './Amendment';
|
|
1
2
|
import type { ComponentInstance } from './ComponentInstance';
|
|
2
3
|
import type { Discount } from './Discount';
|
|
3
|
-
import type { EnquiryId } from './EnquiryId';
|
|
4
4
|
import type { Fee } from './Fee';
|
|
5
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
5
6
|
import type { ItineraryId } from './ItineraryId';
|
|
6
7
|
import type { ItineraryRevisionGroupId } from './ItineraryRevisionGroupId';
|
|
7
8
|
import type { ItineraryValue } from './ItineraryValue';
|
|
@@ -12,11 +13,12 @@ export type DTOItineraryEntity = {
|
|
|
12
13
|
id: ItineraryId;
|
|
13
14
|
revisionGroupId: ItineraryRevisionGroupId;
|
|
14
15
|
revision: number;
|
|
15
|
-
enquiryId:
|
|
16
|
+
enquiryId: InternalSwoopId;
|
|
16
17
|
metadata: Metadata;
|
|
17
18
|
title: Title;
|
|
18
19
|
welcomeNote: string;
|
|
19
20
|
values: Array<ItineraryValue>;
|
|
21
|
+
amendments?: Array<Amendment>;
|
|
20
22
|
componentInstances: Array<ComponentInstance>;
|
|
21
23
|
fees: Array<Fee>;
|
|
22
24
|
quoteOption?: QuoteOptions;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { Amendment } from './Amendment';
|
|
1
2
|
import type { ComponentInstance } from './ComponentInstance';
|
|
2
3
|
import type { Discount } from './Discount';
|
|
3
|
-
import type { EnquiryId } from './EnquiryId';
|
|
4
4
|
import type { Fee } from './Fee';
|
|
5
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
5
6
|
import type { ItineraryId } from './ItineraryId';
|
|
6
7
|
import type { ItineraryRevisionGroupId } from './ItineraryRevisionGroupId';
|
|
7
8
|
import type { ItineraryValue } from './ItineraryValue';
|
|
@@ -12,11 +13,12 @@ export type DTOItineraryRead = {
|
|
|
12
13
|
id: ItineraryId;
|
|
13
14
|
revisionGroupId: ItineraryRevisionGroupId;
|
|
14
15
|
revision: number;
|
|
15
|
-
enquiryId:
|
|
16
|
+
enquiryId: InternalSwoopId;
|
|
16
17
|
metadata: Metadata;
|
|
17
18
|
title: Title;
|
|
18
19
|
welcomeNote: string;
|
|
19
20
|
values: Array<ItineraryValue>;
|
|
21
|
+
amendments?: Array<Amendment>;
|
|
20
22
|
componentInstances: Array<ComponentInstance>;
|
|
21
23
|
fees: Array<Fee>;
|
|
22
24
|
quoteOption?: QuoteOptions;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Amendment } from './Amendment';
|
|
1
2
|
import type { ComponentInstance } from './ComponentInstance';
|
|
2
3
|
import type { Discount } from './Discount';
|
|
3
4
|
import type { Fee } from './Fee';
|
|
@@ -9,6 +10,7 @@ export type DTOItineraryUpdate = {
|
|
|
9
10
|
welcomeNote?: string;
|
|
10
11
|
values?: Array<ItineraryValue>;
|
|
11
12
|
componentInstances?: Array<ComponentInstance>;
|
|
13
|
+
amendments?: Array<Amendment>;
|
|
12
14
|
fees?: Array<Fee>;
|
|
13
15
|
quoteOption?: QuoteOptions;
|
|
14
16
|
discounts?: Array<Discount>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { DTOItineraryRead } from './DTOItineraryRead';
|
|
2
|
-
import type { EnquiryId } from './EnquiryId';
|
|
3
2
|
import type { IdMap } from './IdMap';
|
|
3
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
4
4
|
import type { SnapshotId } from './SnapshotId';
|
|
5
5
|
import type { Title } from './Title';
|
|
6
6
|
export type DTOPublicSnapshotCreate = {
|
|
7
7
|
snapshotId: SnapshotId;
|
|
8
8
|
name: Title;
|
|
9
|
-
enquiryId:
|
|
9
|
+
enquiryId: InternalSwoopId;
|
|
10
10
|
itinerary: DTOItineraryRead;
|
|
11
11
|
map: IdMap;
|
|
12
12
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DTOItineraryRead } from './DTOItineraryRead';
|
|
2
|
-
import type { EnquiryId } from './EnquiryId';
|
|
3
2
|
import type { IdMap } from './IdMap';
|
|
3
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
4
4
|
import type { Metadata } from './Metadata';
|
|
5
5
|
import type { PublicSnapshotId } from './PublicSnapshotId';
|
|
6
6
|
import type { SnapshotId } from './SnapshotId';
|
|
@@ -10,7 +10,7 @@ export type DTOPublicSnapshotEntity = {
|
|
|
10
10
|
snapshotId: SnapshotId;
|
|
11
11
|
metadata: Metadata;
|
|
12
12
|
name: Title;
|
|
13
|
-
enquiryId:
|
|
13
|
+
enquiryId: InternalSwoopId;
|
|
14
14
|
itinerary: DTOItineraryRead;
|
|
15
15
|
map: IdMap;
|
|
16
16
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DTOItineraryRead } from './DTOItineraryRead';
|
|
2
|
-
import type { EnquiryId } from './EnquiryId';
|
|
3
2
|
import type { IdMap } from './IdMap';
|
|
3
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
4
4
|
import type { Metadata } from './Metadata';
|
|
5
5
|
import type { PublicSnapshotId } from './PublicSnapshotId';
|
|
6
6
|
import type { SnapshotId } from './SnapshotId';
|
|
@@ -10,7 +10,7 @@ export type DTOPublicSnapshotRead = {
|
|
|
10
10
|
snapshotId: SnapshotId;
|
|
11
11
|
metadata: Metadata;
|
|
12
12
|
name: Title;
|
|
13
|
-
enquiryId:
|
|
13
|
+
enquiryId: InternalSwoopId;
|
|
14
14
|
itinerary: DTOItineraryRead;
|
|
15
15
|
map: IdMap;
|
|
16
16
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
2
2
|
import type { ItineraryId } from './ItineraryId';
|
|
3
3
|
import type { Title } from './Title';
|
|
4
4
|
export type DTOSnapshotCreate = {
|
|
5
5
|
name: Title;
|
|
6
6
|
itineraryId: ItineraryId;
|
|
7
|
-
enquiryId:
|
|
7
|
+
enquiryId: InternalSwoopId;
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
2
2
|
import type { ItineraryId } from './ItineraryId';
|
|
3
3
|
import type { Metadata } from './Metadata';
|
|
4
4
|
import type { SnapshotId } from './SnapshotId';
|
|
@@ -8,5 +8,5 @@ export type DTOSnapshotEntity = {
|
|
|
8
8
|
metadata: Metadata;
|
|
9
9
|
name: Title;
|
|
10
10
|
itineraryId: ItineraryId;
|
|
11
|
-
enquiryId:
|
|
11
|
+
enquiryId: InternalSwoopId;
|
|
12
12
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
2
2
|
import type { ItineraryId } from './ItineraryId';
|
|
3
3
|
import type { Metadata } from './Metadata';
|
|
4
4
|
import type { SnapshotId } from './SnapshotId';
|
|
@@ -8,5 +8,5 @@ export type DTOSnapshotRead = {
|
|
|
8
8
|
metadata: Metadata;
|
|
9
9
|
name: Title;
|
|
10
10
|
itineraryId: ItineraryId;
|
|
11
|
-
enquiryId:
|
|
11
|
+
enquiryId: InternalSwoopId;
|
|
12
12
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Discount } from './Discount';
|
|
2
|
-
import type { EnquiryId } from './EnquiryId';
|
|
3
2
|
import type { Fee } from './Fee';
|
|
3
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
4
4
|
import type { ItineraryId } from './ItineraryId';
|
|
5
5
|
import type { ItineraryRevisionGroupId } from './ItineraryRevisionGroupId';
|
|
6
6
|
import type { ItineraryValue } from './ItineraryValue';
|
|
@@ -12,7 +12,7 @@ export type DTOSwoopSync = {
|
|
|
12
12
|
id: ItineraryId;
|
|
13
13
|
revisionGroupId: ItineraryRevisionGroupId;
|
|
14
14
|
revision: number;
|
|
15
|
-
enquiryId:
|
|
15
|
+
enquiryId: InternalSwoopId;
|
|
16
16
|
metadata: Metadata;
|
|
17
17
|
title: Title;
|
|
18
18
|
welcomeNote: string;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
2
|
+
export type EnquiryId = InternalSwoopId;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type InternalSwoopId = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { BranchTag } from './BranchTag';
|
|
2
2
|
import type { DTOItineraryRead } from './DTOItineraryRead';
|
|
3
|
-
import type {
|
|
3
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
4
4
|
export type ItineraryCreateResponse = {
|
|
5
5
|
itinerary: DTOItineraryRead;
|
|
6
6
|
tag: BranchTag;
|
|
7
|
-
enquiryId:
|
|
7
|
+
enquiryId: InternalSwoopId;
|
|
8
8
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
2
|
+
export type Partner = InternalSwoopId;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type Partners = Array<
|
|
1
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
2
|
+
export type Partners = Array<InternalSwoopId>;
|
|
@@ -4,15 +4,15 @@ import type { AssignedTravellerGroup } from './AssignedTravellerGroup';
|
|
|
4
4
|
import type { BookingStatus } from './BookingStatus';
|
|
5
5
|
import type { ComponentId } from './ComponentId';
|
|
6
6
|
import type { Field } from './Field';
|
|
7
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
7
8
|
import type { Price } from './Price';
|
|
8
|
-
import type { TripId } from './TripId';
|
|
9
9
|
import type { UserComponentInstanceField } from './UserComponentInstanceField';
|
|
10
10
|
export type SwoopSyncComponentInstance = {
|
|
11
11
|
id: string;
|
|
12
12
|
componentId: ComponentId;
|
|
13
|
-
bookingItemTypeId:
|
|
14
|
-
tripId?:
|
|
15
|
-
partnerId:
|
|
13
|
+
bookingItemTypeId: InternalSwoopId;
|
|
14
|
+
tripId?: InternalSwoopId;
|
|
15
|
+
partnerId: InternalSwoopId;
|
|
16
16
|
componentInstanceFields: Array<Field>;
|
|
17
17
|
userComponentInstanceFields: Array<UserComponentInstanceField>;
|
|
18
18
|
assignedPassengers: Array<AssignedPassenger>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { InternalSwoopId } from './InternalSwoopId';
|
|
2
|
+
export type TripId = InternalSwoopId;
|
|
@@ -18,7 +18,7 @@ import type { DTOSwooperUpdate } from '../models/DTOSwooperUpdate';
|
|
|
18
18
|
import type { DTOTemplateCreate } from '../models/DTOTemplateCreate';
|
|
19
19
|
import { DTOTemplateRead } from '../models/DTOTemplateRead';
|
|
20
20
|
import type { DTOTemplateUpdate } from '../models/DTOTemplateUpdate';
|
|
21
|
-
import type {
|
|
21
|
+
import type { InternalSwoopId } from '../models/InternalSwoopId';
|
|
22
22
|
import type { ItineraryCreateResponse } from '../models/ItineraryCreateResponse';
|
|
23
23
|
import type { Pagination } from '../models/Pagination';
|
|
24
24
|
import type { SnapshotId } from '../models/SnapshotId';
|
|
@@ -88,7 +88,7 @@ export declare class CoreService {
|
|
|
88
88
|
* @returns any The tree list view of all itineraries. This response is not paginated.
|
|
89
89
|
* @throws ApiError
|
|
90
90
|
*/
|
|
91
|
-
itineraryList(enquiryId:
|
|
91
|
+
itineraryList(enquiryId: InternalSwoopId): CancelablePromise<{
|
|
92
92
|
tree?: Array<Branches>;
|
|
93
93
|
}>;
|
|
94
94
|
/**
|
|
@@ -100,7 +100,7 @@ export declare class CoreService {
|
|
|
100
100
|
* @returns ItineraryCreateResponse When a itinerary is created an object containing the tag, enquiry id, and the associated itinerary is returned. This will also sync with the Swoop CRM.
|
|
101
101
|
* @throws ApiError
|
|
102
102
|
*/
|
|
103
|
-
itineraryCreate(enquiryId:
|
|
103
|
+
itineraryCreate(enquiryId: InternalSwoopId, requestBody: DTOItineraryCreate, error?: number): CancelablePromise<ItineraryCreateResponse>;
|
|
104
104
|
/**
|
|
105
105
|
* Get Itinerary
|
|
106
106
|
* Get itinerary via ID
|
|
@@ -110,7 +110,7 @@ export declare class CoreService {
|
|
|
110
110
|
* @returns any The corresponding itinerary that matches the enquiry id, tag, and version
|
|
111
111
|
* @throws ApiError
|
|
112
112
|
*/
|
|
113
|
-
itineraryGet(enquiryId:
|
|
113
|
+
itineraryGet(enquiryId: InternalSwoopId, tag: string, version: string): CancelablePromise<any>;
|
|
114
114
|
/**
|
|
115
115
|
* Update Itinerary as New Revision
|
|
116
116
|
* Updates an itinerary as a new revision on the latest version of a branch. This will also sync with the Swoop CRM.
|
|
@@ -121,7 +121,7 @@ export declare class CoreService {
|
|
|
121
121
|
* @returns DTOItineraryRead When a new revision is created successfully
|
|
122
122
|
* @throws ApiError
|
|
123
123
|
*/
|
|
124
|
-
itineraryUpdateAsNewRevision(enquiryId:
|
|
124
|
+
itineraryUpdateAsNewRevision(enquiryId: InternalSwoopId, tag: string, requestBody: DTOItineraryUpdate, error?: number): CancelablePromise<DTOItineraryRead>;
|
|
125
125
|
/**
|
|
126
126
|
* Fork an Itinerary
|
|
127
127
|
* this will create a new sub branch off the corresponding itinerary (enquiry id/tag/version). This does not sync with the Swoop CRM.
|
|
@@ -132,10 +132,10 @@ export declare class CoreService {
|
|
|
132
132
|
* @returns any When the fork was successful
|
|
133
133
|
* @throws ApiError
|
|
134
134
|
*/
|
|
135
|
-
forkItinerary(enquiryId:
|
|
135
|
+
forkItinerary(enquiryId: InternalSwoopId, tag: string, version: string, error?: number): CancelablePromise<{
|
|
136
136
|
itinerary?: DTOItineraryRead;
|
|
137
137
|
tag?: BranchTag;
|
|
138
|
-
enquiryId?:
|
|
138
|
+
enquiryId?: InternalSwoopId;
|
|
139
139
|
}>;
|
|
140
140
|
/**
|
|
141
141
|
* Promote an Itinerary
|
|
@@ -147,7 +147,7 @@ export declare class CoreService {
|
|
|
147
147
|
* @returns DTOItineraryRead The new head of the parent branch
|
|
148
148
|
* @throws ApiError
|
|
149
149
|
*/
|
|
150
|
-
promoteItinerary(enquiryId:
|
|
150
|
+
promoteItinerary(enquiryId: InternalSwoopId, tag: string, version: string, error?: number): CancelablePromise<DTOItineraryRead>;
|
|
151
151
|
/**
|
|
152
152
|
* List Regions
|
|
153
153
|
* List all regions
|
|
@@ -3,7 +3,7 @@ import type { BranchTag } from '../models/BranchTag';
|
|
|
3
3
|
import type { DTOItineraryCreate } from '../models/DTOItineraryCreate';
|
|
4
4
|
import type { DTOItineraryRead } from '../models/DTOItineraryRead';
|
|
5
5
|
import type { DTOItineraryUpdate } from '../models/DTOItineraryUpdate';
|
|
6
|
-
import type {
|
|
6
|
+
import type { InternalSwoopId } from '../models/InternalSwoopId';
|
|
7
7
|
import type { ItineraryCreateResponse } from '../models/ItineraryCreateResponse';
|
|
8
8
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
9
9
|
export declare class ItineraryService {
|
|
@@ -14,7 +14,7 @@ export declare class ItineraryService {
|
|
|
14
14
|
* @returns any The tree list view of all itineraries. This response is not paginated.
|
|
15
15
|
* @throws ApiError
|
|
16
16
|
*/
|
|
17
|
-
static itineraryList(enquiryId:
|
|
17
|
+
static itineraryList(enquiryId: InternalSwoopId): CancelablePromise<{
|
|
18
18
|
tree?: Array<Branches>;
|
|
19
19
|
}>;
|
|
20
20
|
/**
|
|
@@ -26,7 +26,7 @@ export declare class ItineraryService {
|
|
|
26
26
|
* @returns ItineraryCreateResponse When a itinerary is created an object containing the tag, enquiry id, and the associated itinerary is returned. This will also sync with the Swoop CRM.
|
|
27
27
|
* @throws ApiError
|
|
28
28
|
*/
|
|
29
|
-
static itineraryCreate(enquiryId:
|
|
29
|
+
static itineraryCreate(enquiryId: InternalSwoopId, requestBody: DTOItineraryCreate, error?: number): CancelablePromise<ItineraryCreateResponse>;
|
|
30
30
|
/**
|
|
31
31
|
* Get Itinerary
|
|
32
32
|
* Get itinerary via ID
|
|
@@ -36,7 +36,7 @@ export declare class ItineraryService {
|
|
|
36
36
|
* @returns any The corresponding itinerary that matches the enquiry id, tag, and version
|
|
37
37
|
* @throws ApiError
|
|
38
38
|
*/
|
|
39
|
-
static itineraryGet(enquiryId:
|
|
39
|
+
static itineraryGet(enquiryId: InternalSwoopId, tag: string, version: string): CancelablePromise<any>;
|
|
40
40
|
/**
|
|
41
41
|
* Update Itinerary as New Revision
|
|
42
42
|
* Updates an itinerary as a new revision on the latest version of a branch. This will also sync with the Swoop CRM.
|
|
@@ -47,7 +47,7 @@ export declare class ItineraryService {
|
|
|
47
47
|
* @returns DTOItineraryRead When a new revision is created successfully
|
|
48
48
|
* @throws ApiError
|
|
49
49
|
*/
|
|
50
|
-
static itineraryUpdateAsNewRevision(enquiryId:
|
|
50
|
+
static itineraryUpdateAsNewRevision(enquiryId: InternalSwoopId, tag: string, requestBody: DTOItineraryUpdate, error?: number): CancelablePromise<DTOItineraryRead>;
|
|
51
51
|
/**
|
|
52
52
|
* Fork an Itinerary
|
|
53
53
|
* this will create a new sub branch off the corresponding itinerary (enquiry id/tag/version). This does not sync with the Swoop CRM.
|
|
@@ -58,10 +58,10 @@ export declare class ItineraryService {
|
|
|
58
58
|
* @returns any When the fork was successful
|
|
59
59
|
* @throws ApiError
|
|
60
60
|
*/
|
|
61
|
-
static forkItinerary(enquiryId:
|
|
61
|
+
static forkItinerary(enquiryId: InternalSwoopId, tag: string, version: string, error?: number): CancelablePromise<{
|
|
62
62
|
itinerary?: DTOItineraryRead;
|
|
63
63
|
tag?: BranchTag;
|
|
64
|
-
enquiryId?:
|
|
64
|
+
enquiryId?: InternalSwoopId;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
67
67
|
* Promote an Itinerary
|
|
@@ -73,5 +73,5 @@ export declare class ItineraryService {
|
|
|
73
73
|
* @returns DTOItineraryRead The new head of the parent branch
|
|
74
74
|
* @throws ApiError
|
|
75
75
|
*/
|
|
76
|
-
static promoteItinerary(enquiryId:
|
|
76
|
+
static promoteItinerary(enquiryId: InternalSwoopId, tag: string, version: string, error?: number): CancelablePromise<DTOItineraryRead>;
|
|
77
77
|
}
|
|
@@ -4,7 +4,7 @@ export declare const fetchComponents: () => Promise<{
|
|
|
4
4
|
revisions: DTOComponentRead[];
|
|
5
5
|
id: import("../../api/generated/core").ComponentId;
|
|
6
6
|
orgId: import("../../api/generated/core").OrgId;
|
|
7
|
-
tripId?: import("../../api/generated/core").
|
|
7
|
+
tripId?: import("../../api/generated/core").InternalSwoopId;
|
|
8
8
|
templateId: import("../../api/generated/core").TemplateId;
|
|
9
9
|
revisionGroupId: import("../../api/generated/core").ComponentRevisionGroupId;
|
|
10
10
|
revision: number;
|