swoop-common 2.2.72 → 2.2.74
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 +1 -0
- package/dist/api/generated/core/index.d.ts +1 -0
- package/dist/api/generated/core/models/DTOPublicSnapshotCreate.d.ts +2 -0
- package/dist/api/generated/core/models/DTOPublicSnapshotEntity.d.ts +2 -0
- package/dist/api/generated/core/models/DTOPublicSnapshotRead.d.ts +2 -0
- package/dist/api/generated/core/models/Destination.d.ts +1 -1
- package/dist/api/generated/core/models/Destination.js +1 -1
- package/dist/api/generated/core/models/IsTwinCentre.d.ts +1 -0
- package/dist/api/generated/core/models/IsTwinCentre.js +1 -0
- package/dist/api/generated/swoop/exports.d.ts +18 -0
- package/dist/api/generated/swoop/index.d.ts +18 -0
- package/dist/api/generated/swoop/models/BookingGroup.d.ts +7 -0
- package/dist/api/generated/swoop/models/BookingGroup.js +1 -0
- package/dist/api/generated/swoop/models/BookingGroup_jsonld.d.ts +8 -0
- package/dist/api/generated/swoop/models/BookingGroup_jsonld.js +1 -0
- package/dist/api/generated/swoop/models/CabinData.d.ts +9 -0
- package/dist/api/generated/swoop/models/CabinData.js +1 -0
- package/dist/api/generated/swoop/models/CabinData_jsonld.d.ts +10 -0
- package/dist/api/generated/swoop/models/CabinData_jsonld.js +1 -0
- package/dist/api/generated/swoop/models/CabinType.d.ts +4 -0
- package/dist/api/generated/swoop/models/CabinType.js +1 -0
- package/dist/api/generated/swoop/models/CabinType_jsonld.d.ts +5 -0
- package/dist/api/generated/swoop/models/CabinType_jsonld.js +1 -0
- package/dist/api/generated/swoop/models/CustomerLookup.d.ts +2 -1
- package/dist/api/generated/swoop/models/CustomerLookupCXPerson.d.ts +4 -0
- package/dist/api/generated/swoop/models/CustomerLookupCXPerson.js +1 -0
- package/dist/api/generated/swoop/models/CustomerLookupCXPerson_jsonld.d.ts +5 -0
- package/dist/api/generated/swoop/models/CustomerLookupCXPerson_jsonld.js +1 -0
- package/dist/api/generated/swoop/models/CustomerLookupEnquiry.d.ts +11 -0
- package/dist/api/generated/swoop/models/CustomerLookupEnquiry.js +1 -0
- package/dist/api/generated/swoop/models/CustomerLookupEnquiry_jsonld.d.ts +12 -0
- package/dist/api/generated/swoop/models/CustomerLookupEnquiry_jsonld.js +1 -0
- package/dist/api/generated/swoop/models/CustomerLookupSalesPerson.d.ts +4 -0
- package/dist/api/generated/swoop/models/CustomerLookupSalesPerson.js +1 -0
- package/dist/api/generated/swoop/models/CustomerLookupSalesPerson_jsonld.d.ts +5 -0
- package/dist/api/generated/swoop/models/CustomerLookupSalesPerson_jsonld.js +1 -0
- package/dist/api/generated/swoop/models/CustomerLookup_jsonld.d.ts +2 -1
- package/dist/api/generated/swoop/models/DayByDay.d.ts +8 -0
- package/dist/api/generated/swoop/models/DayByDay.js +1 -0
- package/dist/api/generated/swoop/models/DayByDayType.d.ts +6 -0
- package/dist/api/generated/swoop/models/DayByDayType.js +1 -0
- package/dist/api/generated/swoop/models/DayByDayType_jsonld.d.ts +7 -0
- package/dist/api/generated/swoop/models/DayByDayType_jsonld.js +1 -0
- package/dist/api/generated/swoop/models/DayByDay_jsonld.d.ts +9 -0
- package/dist/api/generated/swoop/models/DayByDay_jsonld.js +1 -0
- package/dist/api/generated/swoop/models/Departure.d.ts +2 -1
- package/dist/api/generated/swoop/models/Departure_jsonld.d.ts +2 -1
- package/dist/api/generated/swoop/models/Discount.d.ts +6 -0
- package/dist/api/generated/swoop/models/Discount.js +1 -0
- package/dist/api/generated/swoop/models/Discount_jsonld.d.ts +7 -0
- package/dist/api/generated/swoop/models/Discount_jsonld.js +1 -0
- package/dist/api/generated/swoop/models/Enquiry.d.ts +2 -9
- package/dist/api/generated/swoop/models/EnquiryStatus_jsonld.d.ts +3 -0
- package/dist/api/generated/swoop/models/Enquiry_jsonld.d.ts +2 -9
- package/dist/api/generated/swoop/models/Itinerary_ItinerarySaveInput.d.ts +1 -1
- package/dist/api/generated/swoop/models/Itinerary_ItinerarySaveInput_jsonld.d.ts +1 -1
- package/dist/api/generated/swoop/models/Itinerary_ItinerarySaveOutput.d.ts +2 -2
- package/dist/api/generated/swoop/models/Itinerary_ItinerarySaveOutput_jsonld.d.ts +2 -2
- package/dist/api/generated/swoop/models/Partner.d.ts +7 -0
- package/dist/api/generated/swoop/models/Partner_jsonld.d.ts +7 -0
- package/dist/api/generated/swoop/models/TripVariant.d.ts +2 -1
- package/dist/api/generated/swoop/models/TripVariant_jsonld.d.ts +2 -1
- package/dist/api/generated/swoop/services/SwoopService.d.ts +99 -78
- package/dist/api/generated/swoop/services/SwoopService.js +105 -10
- package/dist/api/specsgen.d.ts +1 -0
- package/dist/api/specsgen.js +22 -0
- package/package.json +57 -56
|
@@ -60,6 +60,7 @@ export type { Fee } from './index';
|
|
|
60
60
|
export type { Field } from './index';
|
|
61
61
|
export type { Flag } from './index';
|
|
62
62
|
export type { InternalSwoopId } from './index';
|
|
63
|
+
export type { IsTwinCentre } from './index';
|
|
63
64
|
export type { ItineraryCreateResponse } from './index';
|
|
64
65
|
export type { ItineraryId } from './index';
|
|
65
66
|
export type { ItineraryIdPathParam } from './index';
|
|
@@ -60,6 +60,7 @@ export type { Fee } from './models/Fee';
|
|
|
60
60
|
export type { Field } from './models/Field';
|
|
61
61
|
export type { Flag } from './models/Flag';
|
|
62
62
|
export type { InternalSwoopId } from './models/InternalSwoopId';
|
|
63
|
+
export type { IsTwinCentre } from './models/IsTwinCentre';
|
|
63
64
|
export type { ItineraryCreateResponse } from './models/ItineraryCreateResponse';
|
|
64
65
|
export type { ItineraryId } from './models/ItineraryId';
|
|
65
66
|
export type { ItineraryIdPathParam } from './models/ItineraryIdPathParam';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DTOItineraryRead } from './DTOItineraryRead';
|
|
2
2
|
import type { ExpandedMap } from './ExpandedMap';
|
|
3
3
|
import type { InternalSwoopId } from './InternalSwoopId';
|
|
4
|
+
import type { IsTwinCentre } from './IsTwinCentre';
|
|
4
5
|
import type { PublicSnapShotEnquiryStatus } from './PublicSnapShotEnquiryStatus';
|
|
5
6
|
import type { PublicSnapShotPayment } from './PublicSnapShotPayment';
|
|
6
7
|
import type { PublicSnapshotPerson } from './PublicSnapshotPerson';
|
|
@@ -18,5 +19,6 @@ export type DTOPublicSnapshotCreate = {
|
|
|
18
19
|
enquiryStatus: PublicSnapShotEnquiryStatus;
|
|
19
20
|
salesPerson?: PublicSnapshotPerson;
|
|
20
21
|
cxPerson?: PublicSnapshotPerson;
|
|
22
|
+
isTwinCentre: IsTwinCentre;
|
|
21
23
|
payments?: Array<PublicSnapShotPayment>;
|
|
22
24
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DTOItineraryRead } from './DTOItineraryRead';
|
|
2
2
|
import type { ExpandedMap } from './ExpandedMap';
|
|
3
3
|
import type { InternalSwoopId } from './InternalSwoopId';
|
|
4
|
+
import type { IsTwinCentre } from './IsTwinCentre';
|
|
4
5
|
import type { Metadata } from './Metadata';
|
|
5
6
|
import type { PublicSnapShotEnquiryStatus } from './PublicSnapShotEnquiryStatus';
|
|
6
7
|
import type { PublicSnapshotId } from './PublicSnapshotId';
|
|
@@ -22,5 +23,6 @@ export type DTOPublicSnapshotEntity = {
|
|
|
22
23
|
enquiryStatus: PublicSnapShotEnquiryStatus;
|
|
23
24
|
salesPerson?: PublicSnapshotPerson;
|
|
24
25
|
cxPerson?: PublicSnapshotPerson;
|
|
26
|
+
isTwinCentre: IsTwinCentre;
|
|
25
27
|
payments?: Array<PublicSnapShotPayment>;
|
|
26
28
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DTOItineraryRead } from './DTOItineraryRead';
|
|
2
2
|
import type { ExpandedMap } from './ExpandedMap';
|
|
3
3
|
import type { InternalSwoopId } from './InternalSwoopId';
|
|
4
|
+
import type { IsTwinCentre } from './IsTwinCentre';
|
|
4
5
|
import type { Metadata } from './Metadata';
|
|
5
6
|
import type { PublicSnapShotEnquiryStatus } from './PublicSnapShotEnquiryStatus';
|
|
6
7
|
import type { PublicSnapshotId } from './PublicSnapshotId';
|
|
@@ -22,5 +23,6 @@ export type DTOPublicSnapshotRead = {
|
|
|
22
23
|
enquiryStatus: PublicSnapShotEnquiryStatus;
|
|
23
24
|
salesPerson?: PublicSnapshotPerson;
|
|
24
25
|
cxPerson?: PublicSnapshotPerson;
|
|
26
|
+
isTwinCentre: IsTwinCentre;
|
|
25
27
|
payments?: Array<PublicSnapShotPayment>;
|
|
26
28
|
};
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
export var Destination;
|
|
6
6
|
(function (Destination) {
|
|
7
7
|
Destination["PATAGONIA"] = "patagonia";
|
|
8
|
-
Destination["
|
|
8
|
+
Destination["ANTARCTICA"] = "antarctica";
|
|
9
9
|
Destination["REST_OF_CHILE_ARGENTINA"] = "rest of chile/argentina";
|
|
10
10
|
})(Destination || (Destination = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type IsTwinCentre = boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
export type { AddressSwoop } from './index';
|
|
2
2
|
export type { Address_jsonldSwoop } from './index';
|
|
3
|
+
export type { BookingGroupSwoop } from './index';
|
|
4
|
+
export type { BookingGroup_jsonldSwoop } from './index';
|
|
3
5
|
export type { BookingItemTypeSwoop } from './index';
|
|
4
6
|
export type { BookingItemType_jsonldSwoop } from './index';
|
|
7
|
+
export type { CabinDataSwoop } from './index';
|
|
8
|
+
export type { CabinData_jsonldSwoop } from './index';
|
|
9
|
+
export type { CabinTypeSwoop } from './index';
|
|
10
|
+
export type { CabinType_jsonldSwoop } from './index';
|
|
5
11
|
export type { CategorySwoop } from './index';
|
|
6
12
|
export type { Category_jsonldSwoop } from './index';
|
|
7
13
|
export type { CountrySwoop } from './index';
|
|
@@ -16,8 +22,20 @@ export type { CustomerSwoop } from './index';
|
|
|
16
22
|
export type { Customer_jsonldSwoop } from './index';
|
|
17
23
|
export type { CustomerLookupSwoop } from './index';
|
|
18
24
|
export type { CustomerLookup_jsonldSwoop } from './index';
|
|
25
|
+
export type { CustomerLookupCXPersonSwoop } from './index';
|
|
26
|
+
export type { CustomerLookupCXPerson_jsonldSwoop } from './index';
|
|
27
|
+
export type { CustomerLookupEnquirySwoop } from './index';
|
|
28
|
+
export type { CustomerLookupEnquiry_jsonldSwoop } from './index';
|
|
29
|
+
export type { CustomerLookupSalesPersonSwoop } from './index';
|
|
30
|
+
export type { CustomerLookupSalesPerson_jsonldSwoop } from './index';
|
|
31
|
+
export type { DayByDaySwoop } from './index';
|
|
32
|
+
export type { DayByDay_jsonldSwoop } from './index';
|
|
33
|
+
export type { DayByDayTypeSwoop } from './index';
|
|
34
|
+
export type { DayByDayType_jsonldSwoop } from './index';
|
|
19
35
|
export type { DepartureSwoop } from './index';
|
|
20
36
|
export type { Departure_jsonldSwoop } from './index';
|
|
37
|
+
export type { DiscountSwoop } from './index';
|
|
38
|
+
export type { Discount_jsonldSwoop } from './index';
|
|
21
39
|
export type { EmergencyDetailsSwoop } from './index';
|
|
22
40
|
export type { EmergencyDetails_jsonldSwoop } from './index';
|
|
23
41
|
export type { EnquirySwoop } from './index';
|
|
@@ -4,8 +4,14 @@ export { OpenAPI } from './core/OpenAPI';
|
|
|
4
4
|
export type { OpenAPIConfig } from './core/OpenAPI';
|
|
5
5
|
export type { Address as AddressSwoop } from './models/Address';
|
|
6
6
|
export type { Address_jsonld as Address_jsonldSwoop } from './models/Address_jsonld';
|
|
7
|
+
export type { BookingGroup as BookingGroupSwoop } from './models/BookingGroup';
|
|
8
|
+
export type { BookingGroup_jsonld as BookingGroup_jsonldSwoop } from './models/BookingGroup_jsonld';
|
|
7
9
|
export type { BookingItemType as BookingItemTypeSwoop } from './models/BookingItemType';
|
|
8
10
|
export type { BookingItemType_jsonld as BookingItemType_jsonldSwoop } from './models/BookingItemType_jsonld';
|
|
11
|
+
export type { CabinData as CabinDataSwoop } from './models/CabinData';
|
|
12
|
+
export type { CabinData_jsonld as CabinData_jsonldSwoop } from './models/CabinData_jsonld';
|
|
13
|
+
export type { CabinType as CabinTypeSwoop } from './models/CabinType';
|
|
14
|
+
export type { CabinType_jsonld as CabinType_jsonldSwoop } from './models/CabinType_jsonld';
|
|
9
15
|
export type { Category as CategorySwoop } from './models/Category';
|
|
10
16
|
export type { Category_jsonld as Category_jsonldSwoop } from './models/Category_jsonld';
|
|
11
17
|
export type { Country as CountrySwoop } from './models/Country';
|
|
@@ -20,8 +26,20 @@ export type { Customer as CustomerSwoop } from './models/Customer';
|
|
|
20
26
|
export type { Customer_jsonld as Customer_jsonldSwoop } from './models/Customer_jsonld';
|
|
21
27
|
export type { CustomerLookup as CustomerLookupSwoop } from './models/CustomerLookup';
|
|
22
28
|
export type { CustomerLookup_jsonld as CustomerLookup_jsonldSwoop } from './models/CustomerLookup_jsonld';
|
|
29
|
+
export type { CustomerLookupCXPerson as CustomerLookupCXPersonSwoop } from './models/CustomerLookupCXPerson';
|
|
30
|
+
export type { CustomerLookupCXPerson_jsonld as CustomerLookupCXPerson_jsonldSwoop } from './models/CustomerLookupCXPerson_jsonld';
|
|
31
|
+
export type { CustomerLookupEnquiry as CustomerLookupEnquirySwoop } from './models/CustomerLookupEnquiry';
|
|
32
|
+
export type { CustomerLookupEnquiry_jsonld as CustomerLookupEnquiry_jsonldSwoop } from './models/CustomerLookupEnquiry_jsonld';
|
|
33
|
+
export type { CustomerLookupSalesPerson as CustomerLookupSalesPersonSwoop } from './models/CustomerLookupSalesPerson';
|
|
34
|
+
export type { CustomerLookupSalesPerson_jsonld as CustomerLookupSalesPerson_jsonldSwoop } from './models/CustomerLookupSalesPerson_jsonld';
|
|
35
|
+
export type { DayByDay as DayByDaySwoop } from './models/DayByDay';
|
|
36
|
+
export type { DayByDay_jsonld as DayByDay_jsonldSwoop } from './models/DayByDay_jsonld';
|
|
37
|
+
export type { DayByDayType as DayByDayTypeSwoop } from './models/DayByDayType';
|
|
38
|
+
export type { DayByDayType_jsonld as DayByDayType_jsonldSwoop } from './models/DayByDayType_jsonld';
|
|
23
39
|
export type { Departure as DepartureSwoop } from './models/Departure';
|
|
24
40
|
export type { Departure_jsonld as Departure_jsonldSwoop } from './models/Departure_jsonld';
|
|
41
|
+
export type { Discount as DiscountSwoop } from './models/Discount';
|
|
42
|
+
export type { Discount_jsonld as Discount_jsonldSwoop } from './models/Discount_jsonld';
|
|
25
43
|
export type { EmergencyDetails as EmergencyDetailsSwoop } from './models/EmergencyDetails';
|
|
26
44
|
export type { EmergencyDetails_jsonld as EmergencyDetails_jsonldSwoop } from './models/EmergencyDetails_jsonld';
|
|
27
45
|
export type { Enquiry as EnquirySwoop } from './models/Enquiry';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
|
+
import type { Status_jsonld } from './Status_jsonld';
|
|
3
|
+
export type BookingGroup_jsonld = (HydraItemBaseSchema & {
|
|
4
|
+
id?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
status?: (Status_jsonld | null);
|
|
7
|
+
region?: string;
|
|
8
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CabinType_jsonld } from './CabinType_jsonld';
|
|
2
|
+
import type { Discount_jsonld } from './Discount_jsonld';
|
|
3
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
4
|
+
export type CabinData_jsonld = (HydraItemBaseSchema & {
|
|
5
|
+
id?: string;
|
|
6
|
+
price?: number;
|
|
7
|
+
discountPrice?: (Discount_jsonld | null);
|
|
8
|
+
isFull?: boolean;
|
|
9
|
+
cabinType?: CabinType_jsonld;
|
|
10
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CustomerLookupCXPerson } from './CustomerLookupCXPerson';
|
|
2
|
+
import type { CustomerLookupSalesPerson } from './CustomerLookupSalesPerson';
|
|
3
|
+
export type CustomerLookupEnquiry = {
|
|
4
|
+
id?: string;
|
|
5
|
+
crmLink?: string;
|
|
6
|
+
bookingStatus?: string;
|
|
7
|
+
dateOfTravel?: string;
|
|
8
|
+
destination?: string;
|
|
9
|
+
salesPerson?: (CustomerLookupSalesPerson | null);
|
|
10
|
+
cxPerson?: (CustomerLookupCXPerson | null);
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CustomerLookupCXPerson_jsonld } from './CustomerLookupCXPerson_jsonld';
|
|
2
|
+
import type { CustomerLookupSalesPerson_jsonld } from './CustomerLookupSalesPerson_jsonld';
|
|
3
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
4
|
+
export type CustomerLookupEnquiry_jsonld = (HydraItemBaseSchema & {
|
|
5
|
+
id?: string;
|
|
6
|
+
crmLink?: string;
|
|
7
|
+
bookingStatus?: string;
|
|
8
|
+
dateOfTravel?: string;
|
|
9
|
+
destination?: string;
|
|
10
|
+
salesPerson?: (CustomerLookupSalesPerson_jsonld | null);
|
|
11
|
+
cxPerson?: (CustomerLookupCXPerson_jsonld | null);
|
|
12
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { CustomerLookupEnquiry } from './CustomerLookupEnquiry';
|
|
1
2
|
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
3
|
export type CustomerLookup_jsonld = (HydraItemBaseSchema & {
|
|
3
4
|
id?: string;
|
|
4
5
|
fullName?: string;
|
|
5
6
|
telephoneNumber?: string;
|
|
6
7
|
email?: string;
|
|
7
|
-
enquiries?: Array<
|
|
8
|
+
enquiries?: Array<CustomerLookupEnquiry>;
|
|
8
9
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CabinData } from './CabinData';
|
|
1
2
|
import type { Status } from './Status';
|
|
2
3
|
import type { Vessel } from './Vessel';
|
|
3
4
|
export type Departure = {
|
|
@@ -18,7 +19,7 @@ export type Departure = {
|
|
|
18
19
|
/**
|
|
19
20
|
* The Cabins associated with this departure
|
|
20
21
|
*/
|
|
21
|
-
cabins?: Array<
|
|
22
|
+
cabins?: Array<CabinData>;
|
|
22
23
|
vessel?: (Vessel | null);
|
|
23
24
|
/**
|
|
24
25
|
* The Trip Variant ID associated with this departure
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CabinData } from './CabinData';
|
|
1
2
|
import type { Status_jsonld } from './Status_jsonld';
|
|
2
3
|
import type { Vessel_jsonld } from './Vessel_jsonld';
|
|
3
4
|
export type Departure_jsonld = {
|
|
@@ -18,7 +19,7 @@ export type Departure_jsonld = {
|
|
|
18
19
|
/**
|
|
19
20
|
* The Cabins associated with this departure
|
|
20
21
|
*/
|
|
21
|
-
cabins?: Array<
|
|
22
|
+
cabins?: Array<CabinData>;
|
|
22
23
|
vessel?: (Vessel_jsonld | null);
|
|
23
24
|
/**
|
|
24
25
|
* The Trip Variant ID associated with this departure
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BookingGroup } from './BookingGroup';
|
|
1
2
|
import type { Customer } from './Customer';
|
|
2
3
|
import type { EnquiryPerson } from './EnquiryPerson';
|
|
3
4
|
import type { EnquiryStatus } from './EnquiryStatus';
|
|
@@ -10,13 +11,5 @@ export type Enquiry = {
|
|
|
10
11
|
cxPerson?: (EnquiryPerson | null);
|
|
11
12
|
enquiryStatus?: (EnquiryStatus | null);
|
|
12
13
|
customer?: (Customer | null);
|
|
13
|
-
bookingGroups?: Array<
|
|
14
|
-
id?: string;
|
|
15
|
-
name?: string;
|
|
16
|
-
status?: {
|
|
17
|
-
id?: string;
|
|
18
|
-
title?: string;
|
|
19
|
-
alias?: string;
|
|
20
|
-
};
|
|
21
|
-
}>;
|
|
14
|
+
bookingGroups?: Array<BookingGroup>;
|
|
22
15
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BookingGroup } from './BookingGroup';
|
|
1
2
|
import type { Customer_jsonld } from './Customer_jsonld';
|
|
2
3
|
import type { EnquiryPerson_jsonld } from './EnquiryPerson_jsonld';
|
|
3
4
|
import type { EnquiryStatus_jsonld } from './EnquiryStatus_jsonld';
|
|
@@ -11,13 +12,5 @@ export type Enquiry_jsonld = (HydraItemBaseSchema & {
|
|
|
11
12
|
cxPerson?: (EnquiryPerson_jsonld | null);
|
|
12
13
|
enquiryStatus?: (EnquiryStatus_jsonld | null);
|
|
13
14
|
customer?: (Customer_jsonld | null);
|
|
14
|
-
bookingGroups?: Array<
|
|
15
|
-
id?: string;
|
|
16
|
-
name?: string;
|
|
17
|
-
status?: {
|
|
18
|
-
id?: string;
|
|
19
|
-
title?: string;
|
|
20
|
-
alias?: string;
|
|
21
|
-
};
|
|
22
|
-
}>;
|
|
15
|
+
bookingGroups?: Array<BookingGroup>;
|
|
23
16
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
2
|
export type Itinerary_ItinerarySaveOutput_jsonld = (HydraItemBaseSchema & {
|
|
3
3
|
status?: string;
|
|
4
|
-
messages?:
|
|
5
|
-
errors?:
|
|
4
|
+
messages?: any[] | null;
|
|
5
|
+
errors?: any[] | null;
|
|
6
6
|
});
|
|
@@ -9,4 +9,11 @@ export type Partner = {
|
|
|
9
9
|
telephone?: string | null;
|
|
10
10
|
email?: string | null;
|
|
11
11
|
isActive?: boolean;
|
|
12
|
+
commissionRateIndependent?: number;
|
|
13
|
+
commissionRateEnhanced?: number;
|
|
14
|
+
hasIndependentSupport?: boolean;
|
|
15
|
+
hasEnhancedSupport?: boolean;
|
|
16
|
+
balanceDueDays?: number;
|
|
17
|
+
depositType?: string;
|
|
18
|
+
depositValue?: number;
|
|
12
19
|
};
|
|
@@ -10,4 +10,11 @@ export type Partner_jsonld = (HydraItemBaseSchema & {
|
|
|
10
10
|
telephone?: string | null;
|
|
11
11
|
email?: string | null;
|
|
12
12
|
isActive?: boolean;
|
|
13
|
+
commissionRateIndependent?: number;
|
|
14
|
+
commissionRateEnhanced?: number;
|
|
15
|
+
hasIndependentSupport?: boolean;
|
|
16
|
+
hasEnhancedSupport?: boolean;
|
|
17
|
+
balanceDueDays?: number;
|
|
18
|
+
depositType?: string;
|
|
19
|
+
depositValue?: number;
|
|
13
20
|
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { DayByDayType } from './DayByDayType';
|
|
1
2
|
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
3
|
export type TripVariant_jsonld = (HydraItemBaseSchema & {
|
|
3
4
|
id?: string;
|
|
4
5
|
tripVariantId?: number;
|
|
5
6
|
title?: string;
|
|
6
|
-
dayByDayTypes?: Array<
|
|
7
|
+
dayByDayTypes?: Array<DayByDayType>;
|
|
7
8
|
});
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import type { BookingGroup } from '../models/BookingGroup';
|
|
1
2
|
import type { BookingItemType } from '../models/BookingItemType';
|
|
3
|
+
import type { CabinData } from '../models/CabinData';
|
|
2
4
|
import type { Category } from '../models/Category';
|
|
5
|
+
import type { Currency } from '../models/Currency';
|
|
3
6
|
import type { CurrencyConversion } from '../models/CurrencyConversion';
|
|
4
|
-
import type { CurrencyConversionBatch } from '../models/CurrencyConversionBatch';
|
|
5
7
|
import type { Customer } from '../models/Customer';
|
|
6
8
|
import type { CustomerLookup } from '../models/CustomerLookup';
|
|
9
|
+
import type { CustomerLookupEnquiry } from '../models/CustomerLookupEnquiry';
|
|
10
|
+
import type { DayByDay } from '../models/DayByDay';
|
|
11
|
+
import type { DayByDayType } from '../models/DayByDayType';
|
|
7
12
|
import type { Departure } from '../models/Departure';
|
|
8
13
|
import type { Enquiry } from '../models/Enquiry';
|
|
9
14
|
import type { EnquiryStatus } from '../models/EnquiryStatus';
|
|
@@ -18,23 +23,43 @@ import type { TripVariant } from '../models/TripVariant';
|
|
|
18
23
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
19
24
|
export declare class SwoopService {
|
|
20
25
|
/**
|
|
21
|
-
* Retrieves
|
|
26
|
+
* Retrieves a BookingGroup resource.
|
|
27
|
+
* Retrieves a BookingGroup resource.
|
|
28
|
+
* @param id BookingGroup identifier
|
|
29
|
+
* @returns BookingGroup BookingGroup resource
|
|
30
|
+
* @throws ApiError
|
|
31
|
+
*/
|
|
32
|
+
bookingGroupsIdGet(id: string): CancelablePromise<BookingGroup>;
|
|
33
|
+
/**
|
|
34
|
+
* Booking Item Type Collection
|
|
22
35
|
* Retrieves the collection of BookingItemType resources.
|
|
23
36
|
* @param region antarctica, arctic, patagonia
|
|
24
37
|
* @param active 1,0
|
|
25
|
-
* @returns
|
|
38
|
+
* @returns any Successful response
|
|
39
|
+
* @throws ApiError
|
|
40
|
+
*/
|
|
41
|
+
bookingItemTypesGetCollection(region?: string, active?: string): CancelablePromise<{
|
|
42
|
+
bookingItemTypes?: Array<BookingItemType>;
|
|
43
|
+
}>;
|
|
44
|
+
/**
|
|
45
|
+
* Retrieves a CabinData resource.
|
|
46
|
+
* Retrieves a CabinData resource.
|
|
47
|
+
* @param id The unique identifier example: ANT-12345 ({REGION}-{cabindata_id}})
|
|
48
|
+
* @returns CabinData CabinData resource
|
|
26
49
|
* @throws ApiError
|
|
27
50
|
*/
|
|
28
|
-
|
|
51
|
+
cabinDataGet(id: string): CancelablePromise<CabinData>;
|
|
29
52
|
/**
|
|
30
|
-
*
|
|
53
|
+
* Category Collection
|
|
31
54
|
* Retrieves the collection of Category resources.
|
|
32
55
|
* @param region antarctica, arctic, patagonia
|
|
33
56
|
* @param active 1,0
|
|
34
|
-
* @returns
|
|
57
|
+
* @returns any Successful response
|
|
35
58
|
* @throws ApiError
|
|
36
59
|
*/
|
|
37
|
-
categoriesGetCollection(region?: string, active?: string): CancelablePromise<
|
|
60
|
+
categoriesGetCollection(region?: string, active?: string): CancelablePromise<{
|
|
61
|
+
categories?: Array<Category>;
|
|
62
|
+
}>;
|
|
38
63
|
/**
|
|
39
64
|
* Currency collection
|
|
40
65
|
* Retrieves the collection of Currency resources.
|
|
@@ -44,14 +69,7 @@ export declare class SwoopService {
|
|
|
44
69
|
* @throws ApiError
|
|
45
70
|
*/
|
|
46
71
|
currenciesGetCollection(region?: string, active?: string): CancelablePromise<{
|
|
47
|
-
currencies?: Array<
|
|
48
|
-
id?: string;
|
|
49
|
-
title?: string;
|
|
50
|
-
alias?: string;
|
|
51
|
-
iso3?: string;
|
|
52
|
-
symbol?: string;
|
|
53
|
-
active?: boolean;
|
|
54
|
-
}>;
|
|
72
|
+
currencies?: Array<Currency>;
|
|
55
73
|
}>;
|
|
56
74
|
/**
|
|
57
75
|
* Retrieves a CurrencyConversion resource.
|
|
@@ -67,7 +85,7 @@ export declare class SwoopService {
|
|
|
67
85
|
* Convert multiple amounts to a target currency
|
|
68
86
|
* Converts multiple amounts from different currencies to a single target currency
|
|
69
87
|
* @param requestBody Currency conversion batch request
|
|
70
|
-
* @returns
|
|
88
|
+
* @returns any Successful response
|
|
71
89
|
* @throws ApiError
|
|
72
90
|
*/
|
|
73
91
|
currencyConversionbatchPost(requestBody?: {
|
|
@@ -88,7 +106,34 @@ export declare class SwoopService {
|
|
|
88
106
|
*/
|
|
89
107
|
amount: number;
|
|
90
108
|
}>;
|
|
91
|
-
}): CancelablePromise<
|
|
109
|
+
}): CancelablePromise<{
|
|
110
|
+
convertedAmounts?: Array<{
|
|
111
|
+
/**
|
|
112
|
+
* Original currency code in ISO 3 format
|
|
113
|
+
*/
|
|
114
|
+
original_currency?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Original amount before conversion
|
|
117
|
+
*/
|
|
118
|
+
original_amount?: number;
|
|
119
|
+
/**
|
|
120
|
+
* Converted amount in target currency
|
|
121
|
+
*/
|
|
122
|
+
converted_amount?: number;
|
|
123
|
+
/**
|
|
124
|
+
* Conversion rate used
|
|
125
|
+
*/
|
|
126
|
+
conversion_rate?: number;
|
|
127
|
+
}>;
|
|
128
|
+
/**
|
|
129
|
+
* Total amount in target currency
|
|
130
|
+
*/
|
|
131
|
+
total?: number;
|
|
132
|
+
/**
|
|
133
|
+
* Formatted total with currency symbol
|
|
134
|
+
*/
|
|
135
|
+
formattedTotal?: string;
|
|
136
|
+
}>;
|
|
92
137
|
/**
|
|
93
138
|
* Retrieves the collection of Customer resources.
|
|
94
139
|
* Retrieves the collection of Customer resources.
|
|
@@ -117,6 +162,30 @@ export declare class SwoopService {
|
|
|
117
162
|
* @throws ApiError
|
|
118
163
|
*/
|
|
119
164
|
customersLookUpGet(telephone?: string, region?: string): CancelablePromise<CustomerLookup>;
|
|
165
|
+
/**
|
|
166
|
+
* Retrieves a CustomerLookupEnquiry resource.
|
|
167
|
+
* Retrieves a CustomerLookupEnquiry resource.
|
|
168
|
+
* @param id CustomerLookupEnquiry identifier
|
|
169
|
+
* @returns CustomerLookupEnquiry CustomerLookupEnquiry resource
|
|
170
|
+
* @throws ApiError
|
|
171
|
+
*/
|
|
172
|
+
customerLookupEnquiriesIdGet(id: string): CancelablePromise<CustomerLookupEnquiry>;
|
|
173
|
+
/**
|
|
174
|
+
* Retrieves a DayByDay resource.
|
|
175
|
+
* Retrieves a DayByDay resource.
|
|
176
|
+
* @param id DayByDay identifier
|
|
177
|
+
* @returns DayByDay DayByDay resource
|
|
178
|
+
* @throws ApiError
|
|
179
|
+
*/
|
|
180
|
+
dayByDayIdGet(id: string): CancelablePromise<DayByDay>;
|
|
181
|
+
/**
|
|
182
|
+
* Retrieves a DayByDayType resource.
|
|
183
|
+
* Retrieves a DayByDayType resource.
|
|
184
|
+
* @param type DayByDayType identifier
|
|
185
|
+
* @returns DayByDayType DayByDayType resource
|
|
186
|
+
* @throws ApiError
|
|
187
|
+
*/
|
|
188
|
+
dayByDayTypesTypeGet(type: string): CancelablePromise<DayByDayType>;
|
|
120
189
|
/**
|
|
121
190
|
* Retrieves the collection of Departure resources.
|
|
122
191
|
* Retrieves the collection of Departure resources.
|
|
@@ -136,13 +205,15 @@ export declare class SwoopService {
|
|
|
136
205
|
*/
|
|
137
206
|
enquiryIdGet(id: string): CancelablePromise<Enquiry>;
|
|
138
207
|
/**
|
|
139
|
-
*
|
|
208
|
+
* Enquiry Status Collection
|
|
140
209
|
* Retrieves the collection of EnquiryStatus resources.
|
|
141
210
|
* @param region antarctica, arctic, patagonia
|
|
142
|
-
* @returns
|
|
211
|
+
* @returns any Successful response
|
|
143
212
|
* @throws ApiError
|
|
144
213
|
*/
|
|
145
|
-
enquiryStatusesGetCollection(region?: string): CancelablePromise<
|
|
214
|
+
enquiryStatusesGetCollection(region?: string): CancelablePromise<{
|
|
215
|
+
enquiryStatuses?: Array<EnquiryStatus>;
|
|
216
|
+
}>;
|
|
146
217
|
/**
|
|
147
218
|
* Replaces the Itinerary resource.
|
|
148
219
|
* Replaces the Itinerary resource.
|
|
@@ -172,15 +243,17 @@ export declare class SwoopService {
|
|
|
172
243
|
*/
|
|
173
244
|
partnersIdGet(id: string): CancelablePromise<Partner>;
|
|
174
245
|
/**
|
|
175
|
-
*
|
|
246
|
+
* Payment collection
|
|
176
247
|
* Retrieves the collection of Payment resources.
|
|
177
248
|
* @param enquiryId The unique identifier example: ANT-12345 ({REGION}-{enquiry_id}})
|
|
178
249
|
* @param status Optional: payment status filter. Supports comma-separated values for multiple statuses (e.g. pending,completed)
|
|
179
250
|
* @param withDeleted Optional: Include deleted records (1 = include, 0 = exclude)
|
|
180
|
-
* @returns
|
|
251
|
+
* @returns any Successful response
|
|
181
252
|
* @throws ApiError
|
|
182
253
|
*/
|
|
183
|
-
paymentsGetCollection(enquiryId?: string, status?: string, withDeleted?: string): CancelablePromise<
|
|
254
|
+
paymentsGetCollection(enquiryId?: string, status?: string, withDeleted?: string): CancelablePromise<{
|
|
255
|
+
payments?: Array<Payment>;
|
|
256
|
+
}>;
|
|
184
257
|
/**
|
|
185
258
|
* List people
|
|
186
259
|
* Retrieves the collection of Person resources.
|
|
@@ -190,21 +263,7 @@ export declare class SwoopService {
|
|
|
190
263
|
* @throws ApiError
|
|
191
264
|
*/
|
|
192
265
|
peopleGetCollection(region?: string, all?: string): CancelablePromise<{
|
|
193
|
-
people?: Array<
|
|
194
|
-
id?: string;
|
|
195
|
-
personId?: number;
|
|
196
|
-
firstName?: string;
|
|
197
|
-
lastName?: string;
|
|
198
|
-
shortName?: string;
|
|
199
|
-
email?: string;
|
|
200
|
-
telephone1?: string;
|
|
201
|
-
telephone2?: string;
|
|
202
|
-
role?: string;
|
|
203
|
-
avatarUrl?: string;
|
|
204
|
-
calendarLink?: string;
|
|
205
|
-
welcomeNote?: string;
|
|
206
|
-
aboutMeText?: string;
|
|
207
|
-
}>;
|
|
266
|
+
people?: Array<Person>;
|
|
208
267
|
}>;
|
|
209
268
|
/**
|
|
210
269
|
* Retrieves a Person resource.
|
|
@@ -215,7 +274,7 @@ export declare class SwoopService {
|
|
|
215
274
|
*/
|
|
216
275
|
peopleIdGet(id: string): CancelablePromise<Person>;
|
|
217
276
|
/**
|
|
218
|
-
* List
|
|
277
|
+
* List travellers
|
|
219
278
|
* Retrieves the collection of Traveller resources.
|
|
220
279
|
* @param enquiryId by enquiry ID
|
|
221
280
|
* @param region antarctica, arctic, patagonia
|
|
@@ -223,45 +282,7 @@ export declare class SwoopService {
|
|
|
223
282
|
* @throws ApiError
|
|
224
283
|
*/
|
|
225
284
|
travellersGetCollection(enquiryId?: string, region?: string): CancelablePromise<{
|
|
226
|
-
travellers?: Array<
|
|
227
|
-
id?: string;
|
|
228
|
-
travellerId?: number;
|
|
229
|
-
isPayer?: boolean;
|
|
230
|
-
customer?: {
|
|
231
|
-
id?: string;
|
|
232
|
-
customerId?: number;
|
|
233
|
-
title?: string;
|
|
234
|
-
firstName?: string;
|
|
235
|
-
lastName?: string;
|
|
236
|
-
preferredName?: string;
|
|
237
|
-
email?: string;
|
|
238
|
-
telephone1?: string;
|
|
239
|
-
created?: string;
|
|
240
|
-
modified?: string;
|
|
241
|
-
whatsappNumber?: string;
|
|
242
|
-
dateOfBirth?: string;
|
|
243
|
-
region?: string;
|
|
244
|
-
timeZone?: string;
|
|
245
|
-
dietaryRequirements?: string;
|
|
246
|
-
foodAllergies?: string;
|
|
247
|
-
medicalConditions?: string;
|
|
248
|
-
specialOccasion?: string;
|
|
249
|
-
roomType?: string;
|
|
250
|
-
roomNotes?: string;
|
|
251
|
-
address?: any | null;
|
|
252
|
-
passport?: any | null;
|
|
253
|
-
emergencyDetails?: any | null;
|
|
254
|
-
};
|
|
255
|
-
travellerGroup?: {
|
|
256
|
-
id?: string;
|
|
257
|
-
traveller_group_id?: number;
|
|
258
|
-
enquiry_id?: number;
|
|
259
|
-
title?: string;
|
|
260
|
-
payment_status?: string;
|
|
261
|
-
srf_completed_at?: string;
|
|
262
|
-
srf_pg2_ompleted_at?: string;
|
|
263
|
-
};
|
|
264
|
-
}>;
|
|
285
|
+
travellers?: Array<Traveller>;
|
|
265
286
|
}>;
|
|
266
287
|
/**
|
|
267
288
|
* Retrieves a Traveller resource.
|
|
@@ -2,11 +2,30 @@ import { OpenAPI } from '../core/OpenAPI';
|
|
|
2
2
|
import { request as __request } from '../core/request';
|
|
3
3
|
export class SwoopService {
|
|
4
4
|
/**
|
|
5
|
-
* Retrieves
|
|
5
|
+
* Retrieves a BookingGroup resource.
|
|
6
|
+
* Retrieves a BookingGroup resource.
|
|
7
|
+
* @param id BookingGroup identifier
|
|
8
|
+
* @returns BookingGroup BookingGroup resource
|
|
9
|
+
* @throws ApiError
|
|
10
|
+
*/
|
|
11
|
+
bookingGroupsIdGet(id) {
|
|
12
|
+
return __request(OpenAPI, {
|
|
13
|
+
method: 'GET',
|
|
14
|
+
url: '/api/booking-groups/{id}',
|
|
15
|
+
path: {
|
|
16
|
+
'id': id,
|
|
17
|
+
},
|
|
18
|
+
errors: {
|
|
19
|
+
404: `Not found`,
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Booking Item Type Collection
|
|
6
25
|
* Retrieves the collection of BookingItemType resources.
|
|
7
26
|
* @param region antarctica, arctic, patagonia
|
|
8
27
|
* @param active 1,0
|
|
9
|
-
* @returns
|
|
28
|
+
* @returns any Successful response
|
|
10
29
|
* @throws ApiError
|
|
11
30
|
*/
|
|
12
31
|
bookingItemTypesGetCollection(region, active) {
|
|
@@ -20,11 +39,30 @@ export class SwoopService {
|
|
|
20
39
|
});
|
|
21
40
|
}
|
|
22
41
|
/**
|
|
23
|
-
* Retrieves
|
|
42
|
+
* Retrieves a CabinData resource.
|
|
43
|
+
* Retrieves a CabinData resource.
|
|
44
|
+
* @param id The unique identifier example: ANT-12345 ({REGION}-{cabindata_id}})
|
|
45
|
+
* @returns CabinData CabinData resource
|
|
46
|
+
* @throws ApiError
|
|
47
|
+
*/
|
|
48
|
+
cabinDataGet(id) {
|
|
49
|
+
return __request(OpenAPI, {
|
|
50
|
+
method: 'GET',
|
|
51
|
+
url: '/api/cabin-data',
|
|
52
|
+
path: {
|
|
53
|
+
'id': id,
|
|
54
|
+
},
|
|
55
|
+
errors: {
|
|
56
|
+
404: `Not found`,
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Category Collection
|
|
24
62
|
* Retrieves the collection of Category resources.
|
|
25
63
|
* @param region antarctica, arctic, patagonia
|
|
26
64
|
* @param active 1,0
|
|
27
|
-
* @returns
|
|
65
|
+
* @returns any Successful response
|
|
28
66
|
* @throws ApiError
|
|
29
67
|
*/
|
|
30
68
|
categoriesGetCollection(region, active) {
|
|
@@ -82,7 +120,7 @@ export class SwoopService {
|
|
|
82
120
|
* Convert multiple amounts to a target currency
|
|
83
121
|
* Converts multiple amounts from different currencies to a single target currency
|
|
84
122
|
* @param requestBody Currency conversion batch request
|
|
85
|
-
* @returns
|
|
123
|
+
* @returns any Successful response
|
|
86
124
|
* @throws ApiError
|
|
87
125
|
*/
|
|
88
126
|
currencyConversionbatchPost(requestBody) {
|
|
@@ -159,6 +197,63 @@ export class SwoopService {
|
|
|
159
197
|
},
|
|
160
198
|
});
|
|
161
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* Retrieves a CustomerLookupEnquiry resource.
|
|
202
|
+
* Retrieves a CustomerLookupEnquiry resource.
|
|
203
|
+
* @param id CustomerLookupEnquiry identifier
|
|
204
|
+
* @returns CustomerLookupEnquiry CustomerLookupEnquiry resource
|
|
205
|
+
* @throws ApiError
|
|
206
|
+
*/
|
|
207
|
+
customerLookupEnquiriesIdGet(id) {
|
|
208
|
+
return __request(OpenAPI, {
|
|
209
|
+
method: 'GET',
|
|
210
|
+
url: '/api/customer-lookup-enquiries/{id}',
|
|
211
|
+
path: {
|
|
212
|
+
'id': id,
|
|
213
|
+
},
|
|
214
|
+
errors: {
|
|
215
|
+
404: `Not found`,
|
|
216
|
+
},
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Retrieves a DayByDay resource.
|
|
221
|
+
* Retrieves a DayByDay resource.
|
|
222
|
+
* @param id DayByDay identifier
|
|
223
|
+
* @returns DayByDay DayByDay resource
|
|
224
|
+
* @throws ApiError
|
|
225
|
+
*/
|
|
226
|
+
dayByDayIdGet(id) {
|
|
227
|
+
return __request(OpenAPI, {
|
|
228
|
+
method: 'GET',
|
|
229
|
+
url: '/api/day-by-day/{id}',
|
|
230
|
+
path: {
|
|
231
|
+
'id': id,
|
|
232
|
+
},
|
|
233
|
+
errors: {
|
|
234
|
+
404: `Not found`,
|
|
235
|
+
},
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Retrieves a DayByDayType resource.
|
|
240
|
+
* Retrieves a DayByDayType resource.
|
|
241
|
+
* @param type DayByDayType identifier
|
|
242
|
+
* @returns DayByDayType DayByDayType resource
|
|
243
|
+
* @throws ApiError
|
|
244
|
+
*/
|
|
245
|
+
dayByDayTypesTypeGet(type) {
|
|
246
|
+
return __request(OpenAPI, {
|
|
247
|
+
method: 'GET',
|
|
248
|
+
url: '/api/day-by-day-types/{type}',
|
|
249
|
+
path: {
|
|
250
|
+
'type': type,
|
|
251
|
+
},
|
|
252
|
+
errors: {
|
|
253
|
+
404: `Not found`,
|
|
254
|
+
},
|
|
255
|
+
});
|
|
256
|
+
}
|
|
162
257
|
/**
|
|
163
258
|
* Retrieves the collection of Departure resources.
|
|
164
259
|
* Retrieves the collection of Departure resources.
|
|
@@ -199,10 +294,10 @@ export class SwoopService {
|
|
|
199
294
|
});
|
|
200
295
|
}
|
|
201
296
|
/**
|
|
202
|
-
*
|
|
297
|
+
* Enquiry Status Collection
|
|
203
298
|
* Retrieves the collection of EnquiryStatus resources.
|
|
204
299
|
* @param region antarctica, arctic, patagonia
|
|
205
|
-
* @returns
|
|
300
|
+
* @returns any Successful response
|
|
206
301
|
* @throws ApiError
|
|
207
302
|
*/
|
|
208
303
|
enquiryStatusesGetCollection(region) {
|
|
@@ -278,12 +373,12 @@ export class SwoopService {
|
|
|
278
373
|
});
|
|
279
374
|
}
|
|
280
375
|
/**
|
|
281
|
-
*
|
|
376
|
+
* Payment collection
|
|
282
377
|
* Retrieves the collection of Payment resources.
|
|
283
378
|
* @param enquiryId The unique identifier example: ANT-12345 ({REGION}-{enquiry_id}})
|
|
284
379
|
* @param status Optional: payment status filter. Supports comma-separated values for multiple statuses (e.g. pending,completed)
|
|
285
380
|
* @param withDeleted Optional: Include deleted records (1 = include, 0 = exclude)
|
|
286
|
-
* @returns
|
|
381
|
+
* @returns any Successful response
|
|
287
382
|
* @throws ApiError
|
|
288
383
|
*/
|
|
289
384
|
paymentsGetCollection(enquiryId, status, withDeleted) {
|
|
@@ -335,7 +430,7 @@ export class SwoopService {
|
|
|
335
430
|
});
|
|
336
431
|
}
|
|
337
432
|
/**
|
|
338
|
-
* List
|
|
433
|
+
* List travellers
|
|
339
434
|
* Retrieves the collection of Traveller resources.
|
|
340
435
|
* @param enquiryId by enquiry ID
|
|
341
436
|
* @param region antarctica, arctic, patagonia
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import fs from "fs";
|
|
2
|
+
import yaml from "js-yaml";
|
|
3
|
+
fetch("https://data-test.swoop-adventures.com/api/docs.jsonopenapi").then(res => {
|
|
4
|
+
res.text().then(json => {
|
|
5
|
+
// I should really use ast or properly parse it, but I have found that its more effort than it is worth
|
|
6
|
+
// api_api is on each opertaion name. (Makes the generated sdk wordy and annoying to use)
|
|
7
|
+
const cleaned = json.replace(/api_api/g, "");
|
|
8
|
+
// All tags are set to "Swoop", again bc it makes using the sdk annoying (makes a bunch of seperate classes)
|
|
9
|
+
const parsed = JSON.parse(cleaned);
|
|
10
|
+
// Root def of all tags
|
|
11
|
+
parsed.tags = [{
|
|
12
|
+
"name": "Swoop",
|
|
13
|
+
"description": "Swoop service"
|
|
14
|
+
}];
|
|
15
|
+
Object.keys(parsed.paths).forEach(path => {
|
|
16
|
+
Object.keys(parsed.paths[path]).forEach(operation => {
|
|
17
|
+
parsed.paths[path][operation].tags = ["Swoop"];
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
fs.writeFileSync(`./openapi/swoop_service.yaml`, yaml.dump(parsed));
|
|
21
|
+
});
|
|
22
|
+
});
|
package/package.json
CHANGED
|
@@ -1,60 +1,61 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
"./rendering": {
|
|
13
|
-
"import": "./dist/rendering/index.js",
|
|
14
|
-
"require": "./dist/rendering/index.js",
|
|
15
|
-
"types": "./dist/rendering/index.d.ts"
|
|
16
|
-
}
|
|
2
|
+
"name": "swoop-common",
|
|
3
|
+
"version": "2.2.74",
|
|
4
|
+
"main": "dist/api/index.js",
|
|
5
|
+
"types": "dist/api/index.d.ts",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"import": "./dist/api/index.js",
|
|
9
|
+
"require": "./dist/api/index.js",
|
|
10
|
+
"types": "./dist/api/index.d.ts"
|
|
17
11
|
},
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
23
|
-
"build": "rimraf ./dist && tsc",
|
|
24
|
-
"build-imports": "tsx ./src/rendering/prebuild/import.ts",
|
|
25
|
-
"build-core-sdk": "npx openapi-typescript-codegen --input ./openapi/core_service.yaml --output ./src/api/generated/core --client fetch",
|
|
26
|
-
"build-swoop-sdk": "npx openapi-typescript-codegen --input ./openapi/swoop_service.yaml --output ./src/api/generated/swoop --client fetch --postfixModels Swoop --request ./src/api/templates/request.ts",
|
|
27
|
-
"prebuild": "npm run build-imports && npm run build-sdk",
|
|
28
|
-
"build-sdk-exports": "tsx ./src/api/gen.ts",
|
|
29
|
-
"build-sdk": "npm run build-core-sdk && npm run build-swoop-sdk && npm run build-sdk-exports"
|
|
30
|
-
},
|
|
31
|
-
"author": "",
|
|
32
|
-
"license": "ISC",
|
|
33
|
-
"description": "",
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"@apidevtools/swagger-parser": "^12.0.0",
|
|
36
|
-
"@emotion/react": "^11.14.0",
|
|
37
|
-
"@emotion/styled": "^11.14.1",
|
|
38
|
-
"@jsonforms/core": "^3.5.1",
|
|
39
|
-
"@jsonforms/material-renderers": "^3.5.1",
|
|
40
|
-
"@jsonforms/react": "^3.5.1",
|
|
41
|
-
"ajv": "^8.17.1",
|
|
42
|
-
"js-yaml": "^4.1.0",
|
|
43
|
-
"lodash.merge": "^4.6.2",
|
|
44
|
-
"openapi-ts": "^0.3.4",
|
|
45
|
-
"react": "^19.0.0",
|
|
46
|
-
"rimraf": "^6.0.1",
|
|
47
|
-
"swoop-common": "^2.1.55"
|
|
48
|
-
},
|
|
49
|
-
"devDependencies": {
|
|
50
|
-
"@apidevtools/swagger-cli": "^4.0.4",
|
|
51
|
-
"@hey-api/openapi-ts": "^0.80.2",
|
|
52
|
-
"@types/js-yaml": "^4.0.9",
|
|
53
|
-
"@types/lodash.merge": "^4.6.9",
|
|
54
|
-
"@types/node": "^24.0.14",
|
|
55
|
-
"@types/react": "^19",
|
|
56
|
-
"openapi-typescript-codegen": "^0.29.0",
|
|
57
|
-
"tsx": "^4.20.3",
|
|
58
|
-
"typescript": "^5.8.3"
|
|
12
|
+
"./rendering": {
|
|
13
|
+
"import": "./dist/rendering/index.js",
|
|
14
|
+
"require": "./dist/rendering/index.js",
|
|
15
|
+
"types": "./dist/rendering/index.d.ts"
|
|
59
16
|
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
23
|
+
"build": "rimraf ./dist && tsc",
|
|
24
|
+
"build-imports": "tsx ./src/rendering/prebuild/import.ts",
|
|
25
|
+
"generate-swoop-specs": "tsx ./src/api/specsgen.ts",
|
|
26
|
+
"build-core-sdk": "npx openapi-typescript-codegen --input ./openapi/core_service.yaml --output ./src/api/generated/core --client fetch",
|
|
27
|
+
"build-swoop-sdk": "npm run generate-swoop-specs && npx openapi-typescript-codegen --input ./openapi/swoop_service.yaml --output ./src/api/generated/swoop --client fetch --postfixModels Swoop --request ./src/api/templates/request.ts",
|
|
28
|
+
"prebuild": "npm run build-imports && npm run build-sdk",
|
|
29
|
+
"build-sdk-exports": "tsx ./src/api/gen.ts",
|
|
30
|
+
"build-sdk": "npm run build-core-sdk && npm run build-swoop-sdk && npm run build-sdk-exports"
|
|
31
|
+
},
|
|
32
|
+
"author": "",
|
|
33
|
+
"license": "ISC",
|
|
34
|
+
"description": "",
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@apidevtools/swagger-parser": "^12.0.0",
|
|
37
|
+
"@emotion/react": "^11.14.0",
|
|
38
|
+
"@emotion/styled": "^11.14.1",
|
|
39
|
+
"@jsonforms/core": "^3.5.1",
|
|
40
|
+
"@jsonforms/material-renderers": "^3.5.1",
|
|
41
|
+
"@jsonforms/react": "^3.5.1",
|
|
42
|
+
"ajv": "^8.17.1",
|
|
43
|
+
"js-yaml": "^4.1.1",
|
|
44
|
+
"lodash.merge": "^4.6.2",
|
|
45
|
+
"openapi-ts": "^0.3.4",
|
|
46
|
+
"react": "^19.0.0",
|
|
47
|
+
"rimraf": "^6.0.1",
|
|
48
|
+
"swoop-common": "^2.1.55"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@apidevtools/swagger-cli": "^4.0.4",
|
|
52
|
+
"@hey-api/openapi-ts": "^0.80.2",
|
|
53
|
+
"@types/js-yaml": "^4.0.9",
|
|
54
|
+
"@types/lodash.merge": "^4.6.9",
|
|
55
|
+
"@types/node": "^24.0.14",
|
|
56
|
+
"@types/react": "^19",
|
|
57
|
+
"openapi-typescript-codegen": "^0.29.0",
|
|
58
|
+
"tsx": "^4.20.3",
|
|
59
|
+
"typescript": "^5.8.3"
|
|
60
|
+
}
|
|
60
61
|
}
|