swoop-common 2.2.11 → 2.2.12
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/swoop/exports.d.ts +8 -8
- package/dist/api/generated/swoop/index.d.ts +8 -8
- package/dist/api/generated/swoop/models/Address_jsonld.d.ts +3 -5
- package/dist/api/generated/swoop/models/BookingItemType_jsonld.d.ts +0 -2
- package/dist/api/generated/swoop/models/Category_jsonld.d.ts +0 -2
- package/dist/api/generated/swoop/models/Country_jsonld.d.ts +3 -5
- package/dist/api/generated/swoop/models/CurrencyConversionBatch.d.ts +1 -10
- package/dist/api/generated/swoop/models/CurrencyConversionBatch_jsonld.d.ts +4 -15
- package/dist/api/generated/swoop/models/CurrencyConversion_jsonld.d.ts +3 -5
- package/dist/api/generated/swoop/models/Currency_jsonld.d.ts +0 -2
- package/dist/api/generated/swoop/models/CustomerLookup.d.ts +1 -2
- package/dist/api/generated/swoop/models/CustomerLookup_jsonld.d.ts +4 -7
- package/dist/api/generated/swoop/models/Customer_jsonld.d.ts +3 -5
- package/dist/api/generated/swoop/models/Departure.d.ts +7 -5
- package/dist/api/generated/swoop/models/Departure_jsonld.d.ts +7 -7
- package/dist/api/generated/swoop/models/EmergencyDetails_jsonld.d.ts +3 -5
- package/dist/api/generated/swoop/models/Enquiry.d.ts +1 -2
- package/dist/api/generated/swoop/models/EnquiryPerson_jsonld.d.ts +3 -5
- package/dist/api/generated/swoop/models/EnquiryStatus_jsonld.d.ts +3 -5
- package/dist/api/generated/swoop/models/Enquiry_jsonld.d.ts +4 -7
- package/dist/api/generated/swoop/models/HydraCollectionBaseSchema.d.ts +23 -0
- package/dist/api/generated/swoop/models/HydraItemBaseSchema.d.ts +5 -0
- package/dist/api/generated/swoop/models/Itinerary_ItinerarySaveInput.d.ts +8 -0
- package/dist/api/generated/swoop/models/Itinerary_ItinerarySaveInput_jsonld.d.ts +8 -0
- package/dist/api/generated/swoop/models/Itinerary_ItinerarySaveOutput.d.ts +5 -0
- package/dist/api/generated/swoop/models/Itinerary_ItinerarySaveOutput_jsonld.d.ts +6 -0
- package/dist/api/generated/swoop/models/Partner_jsonld.d.ts +3 -5
- package/dist/api/generated/swoop/models/Passport_jsonld.d.ts +3 -5
- package/dist/api/generated/swoop/models/PaymentType_jsonld.d.ts +3 -5
- package/dist/api/generated/swoop/models/Payment_jsonld.d.ts +0 -2
- package/dist/api/generated/swoop/models/Person_jsonld.d.ts +3 -5
- package/dist/api/generated/swoop/models/PublishState_jsonld.d.ts +3 -5
- package/dist/api/generated/swoop/models/Status_jsonld.d.ts +3 -5
- package/dist/api/generated/swoop/models/TravellerGroup_jsonld.d.ts +3 -5
- package/dist/api/generated/swoop/models/Traveller_jsonld.d.ts +3 -5
- package/dist/api/generated/swoop/models/TripVariant.d.ts +6 -0
- package/dist/api/generated/swoop/models/TripVariant_jsonld.d.ts +7 -0
- package/dist/api/generated/swoop/models/Trip_jsonld.d.ts +3 -5
- package/dist/api/generated/swoop/models/Vessel_jsonld.d.ts +3 -5
- package/dist/api/generated/swoop/services/SwoopService.d.ts +19 -0
- package/dist/api/generated/swoop/services/SwoopService.js +39 -0
- package/package.json +1 -1
- package/dist/api/generated/swoop/models/BookingGroup.d.ts +0 -6
- package/dist/api/generated/swoop/models/BookingGroup_jsonld.d.ts +0 -9
- package/dist/api/generated/swoop/models/CustomerLookupCXPerson.d.ts +0 -4
- package/dist/api/generated/swoop/models/CustomerLookupCXPerson_jsonld.d.ts +0 -7
- package/dist/api/generated/swoop/models/CustomerLookupEnquiry.d.ts +0 -10
- package/dist/api/generated/swoop/models/CustomerLookupEnquiry_jsonld.d.ts +0 -13
- package/dist/api/generated/swoop/models/CustomerLookupSalesPerson.d.ts +0 -4
- package/dist/api/generated/swoop/models/CustomerLookupSalesPerson_jsonld.d.ts +0 -7
- /package/dist/api/generated/swoop/models/{BookingGroup.js → HydraCollectionBaseSchema.js} +0 -0
- /package/dist/api/generated/swoop/models/{BookingGroup_jsonld.js → HydraItemBaseSchema.js} +0 -0
- /package/dist/api/generated/swoop/models/{CustomerLookupCXPerson.js → Itinerary_ItinerarySaveInput.js} +0 -0
- /package/dist/api/generated/swoop/models/{CustomerLookupCXPerson_jsonld.js → Itinerary_ItinerarySaveInput_jsonld.js} +0 -0
- /package/dist/api/generated/swoop/models/{CustomerLookupEnquiry.js → Itinerary_ItinerarySaveOutput.js} +0 -0
- /package/dist/api/generated/swoop/models/{CustomerLookupEnquiry_jsonld.js → Itinerary_ItinerarySaveOutput_jsonld.js} +0 -0
- /package/dist/api/generated/swoop/models/{CustomerLookupSalesPerson.js → TripVariant.js} +0 -0
- /package/dist/api/generated/swoop/models/{CustomerLookupSalesPerson_jsonld.js → TripVariant_jsonld.js} +0 -0
|
@@ -1,7 +1,5 @@
|
|
|
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';
|
|
5
3
|
export type { BookingItemTypeSwoop } from './index';
|
|
6
4
|
export type { BookingItemType_jsonldSwoop } from './index';
|
|
7
5
|
export type { CategorySwoop } from './index';
|
|
@@ -18,12 +16,6 @@ export type { CustomerSwoop } from './index';
|
|
|
18
16
|
export type { Customer_jsonldSwoop } from './index';
|
|
19
17
|
export type { CustomerLookupSwoop } from './index';
|
|
20
18
|
export type { CustomerLookup_jsonldSwoop } from './index';
|
|
21
|
-
export type { CustomerLookupCXPersonSwoop } from './index';
|
|
22
|
-
export type { CustomerLookupCXPerson_jsonldSwoop } from './index';
|
|
23
|
-
export type { CustomerLookupEnquirySwoop } from './index';
|
|
24
|
-
export type { CustomerLookupEnquiry_jsonldSwoop } from './index';
|
|
25
|
-
export type { CustomerLookupSalesPersonSwoop } from './index';
|
|
26
|
-
export type { CustomerLookupSalesPerson_jsonldSwoop } from './index';
|
|
27
19
|
export type { DepartureSwoop } from './index';
|
|
28
20
|
export type { Departure_jsonldSwoop } from './index';
|
|
29
21
|
export type { EmergencyDetailsSwoop } from './index';
|
|
@@ -34,6 +26,12 @@ export type { EnquiryPersonSwoop } from './index';
|
|
|
34
26
|
export type { EnquiryPerson_jsonldSwoop } from './index';
|
|
35
27
|
export type { EnquiryStatusSwoop } from './index';
|
|
36
28
|
export type { EnquiryStatus_jsonldSwoop } from './index';
|
|
29
|
+
export type { HydraCollectionBaseSchemaSwoop } from './index';
|
|
30
|
+
export type { HydraItemBaseSchemaSwoop } from './index';
|
|
31
|
+
export type { Itinerary_ItinerarySaveInputSwoop } from './index';
|
|
32
|
+
export type { Itinerary_ItinerarySaveInput_jsonldSwoop } from './index';
|
|
33
|
+
export type { Itinerary_ItinerarySaveOutputSwoop } from './index';
|
|
34
|
+
export type { Itinerary_ItinerarySaveOutput_jsonldSwoop } from './index';
|
|
37
35
|
export type { PartnerSwoop } from './index';
|
|
38
36
|
export type { Partner_jsonldSwoop } from './index';
|
|
39
37
|
export type { PassportSwoop } from './index';
|
|
@@ -54,5 +52,7 @@ export type { TravellerGroupSwoop } from './index';
|
|
|
54
52
|
export type { TravellerGroup_jsonldSwoop } from './index';
|
|
55
53
|
export type { TripSwoop } from './index';
|
|
56
54
|
export type { Trip_jsonldSwoop } from './index';
|
|
55
|
+
export type { TripVariantSwoop } from './index';
|
|
56
|
+
export type { TripVariant_jsonldSwoop } from './index';
|
|
57
57
|
export type { VesselSwoop } from './index';
|
|
58
58
|
export type { Vessel_jsonldSwoop } from './index';
|
|
@@ -4,8 +4,6 @@ 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';
|
|
9
7
|
export type { BookingItemType as BookingItemTypeSwoop } from './models/BookingItemType';
|
|
10
8
|
export type { BookingItemType_jsonld as BookingItemType_jsonldSwoop } from './models/BookingItemType_jsonld';
|
|
11
9
|
export type { Category as CategorySwoop } from './models/Category';
|
|
@@ -22,12 +20,6 @@ export type { Customer as CustomerSwoop } from './models/Customer';
|
|
|
22
20
|
export type { Customer_jsonld as Customer_jsonldSwoop } from './models/Customer_jsonld';
|
|
23
21
|
export type { CustomerLookup as CustomerLookupSwoop } from './models/CustomerLookup';
|
|
24
22
|
export type { CustomerLookup_jsonld as CustomerLookup_jsonldSwoop } from './models/CustomerLookup_jsonld';
|
|
25
|
-
export type { CustomerLookupCXPerson as CustomerLookupCXPersonSwoop } from './models/CustomerLookupCXPerson';
|
|
26
|
-
export type { CustomerLookupCXPerson_jsonld as CustomerLookupCXPerson_jsonldSwoop } from './models/CustomerLookupCXPerson_jsonld';
|
|
27
|
-
export type { CustomerLookupEnquiry as CustomerLookupEnquirySwoop } from './models/CustomerLookupEnquiry';
|
|
28
|
-
export type { CustomerLookupEnquiry_jsonld as CustomerLookupEnquiry_jsonldSwoop } from './models/CustomerLookupEnquiry_jsonld';
|
|
29
|
-
export type { CustomerLookupSalesPerson as CustomerLookupSalesPersonSwoop } from './models/CustomerLookupSalesPerson';
|
|
30
|
-
export type { CustomerLookupSalesPerson_jsonld as CustomerLookupSalesPerson_jsonldSwoop } from './models/CustomerLookupSalesPerson_jsonld';
|
|
31
23
|
export type { Departure as DepartureSwoop } from './models/Departure';
|
|
32
24
|
export type { Departure_jsonld as Departure_jsonldSwoop } from './models/Departure_jsonld';
|
|
33
25
|
export type { EmergencyDetails as EmergencyDetailsSwoop } from './models/EmergencyDetails';
|
|
@@ -38,6 +30,12 @@ export type { EnquiryPerson as EnquiryPersonSwoop } from './models/EnquiryPerson
|
|
|
38
30
|
export type { EnquiryPerson_jsonld as EnquiryPerson_jsonldSwoop } from './models/EnquiryPerson_jsonld';
|
|
39
31
|
export type { EnquiryStatus as EnquiryStatusSwoop } from './models/EnquiryStatus';
|
|
40
32
|
export type { EnquiryStatus_jsonld as EnquiryStatus_jsonldSwoop } from './models/EnquiryStatus_jsonld';
|
|
33
|
+
export type { HydraCollectionBaseSchema as HydraCollectionBaseSchemaSwoop } from './models/HydraCollectionBaseSchema';
|
|
34
|
+
export type { HydraItemBaseSchema as HydraItemBaseSchemaSwoop } from './models/HydraItemBaseSchema';
|
|
35
|
+
export type { Itinerary_ItinerarySaveInput as Itinerary_ItinerarySaveInputSwoop } from './models/Itinerary_ItinerarySaveInput';
|
|
36
|
+
export type { Itinerary_ItinerarySaveInput_jsonld as Itinerary_ItinerarySaveInput_jsonldSwoop } from './models/Itinerary_ItinerarySaveInput_jsonld';
|
|
37
|
+
export type { Itinerary_ItinerarySaveOutput as Itinerary_ItinerarySaveOutputSwoop } from './models/Itinerary_ItinerarySaveOutput';
|
|
38
|
+
export type { Itinerary_ItinerarySaveOutput_jsonld as Itinerary_ItinerarySaveOutput_jsonldSwoop } from './models/Itinerary_ItinerarySaveOutput_jsonld';
|
|
41
39
|
export type { Partner as PartnerSwoop } from './models/Partner';
|
|
42
40
|
export type { Partner_jsonld as Partner_jsonldSwoop } from './models/Partner_jsonld';
|
|
43
41
|
export type { Passport as PassportSwoop } from './models/Passport';
|
|
@@ -58,6 +56,8 @@ export type { TravellerGroup as TravellerGroupSwoop } from './models/TravellerGr
|
|
|
58
56
|
export type { TravellerGroup_jsonld as TravellerGroup_jsonldSwoop } from './models/TravellerGroup_jsonld';
|
|
59
57
|
export type { Trip as TripSwoop } from './models/Trip';
|
|
60
58
|
export type { Trip_jsonld as Trip_jsonldSwoop } from './models/Trip_jsonld';
|
|
59
|
+
export type { TripVariant as TripVariantSwoop } from './models/TripVariant';
|
|
60
|
+
export type { TripVariant_jsonld as TripVariant_jsonldSwoop } from './models/TripVariant_jsonld';
|
|
61
61
|
export type { Vessel as VesselSwoop } from './models/Vessel';
|
|
62
62
|
export type { Vessel_jsonld as Vessel_jsonldSwoop } from './models/Vessel_jsonld';
|
|
63
63
|
export { SwoopService } from './services/SwoopService';
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import type { Country_jsonld } from './Country_jsonld';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
readonly '@id'?: string;
|
|
5
|
-
readonly '@type'?: string;
|
|
2
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
3
|
+
export type Address_jsonld = (HydraItemBaseSchema & {
|
|
6
4
|
address1?: string | null;
|
|
7
5
|
address2?: string | null;
|
|
8
6
|
town?: string | null;
|
|
9
7
|
state?: string | null;
|
|
10
8
|
postcode?: string | null;
|
|
11
9
|
country?: (Country_jsonld | null);
|
|
12
|
-
};
|
|
10
|
+
});
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
readonly '@id'?: string;
|
|
4
|
-
readonly '@type'?: string;
|
|
1
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
|
+
export type Country_jsonld = (HydraItemBaseSchema & {
|
|
5
3
|
countryId?: number;
|
|
6
4
|
title?: string;
|
|
7
5
|
alias?: string;
|
|
8
|
-
};
|
|
6
|
+
});
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
export type CurrencyConversionBatch = {
|
|
2
|
-
|
|
3
|
-
* Array of converted amounts with details
|
|
4
|
-
*/
|
|
5
|
-
convertedAmounts?: Array<string>;
|
|
6
|
-
/**
|
|
7
|
-
* Total amount in target currency
|
|
8
|
-
*/
|
|
2
|
+
convertedAmounts?: Array<null>;
|
|
9
3
|
total?: number;
|
|
10
|
-
/**
|
|
11
|
-
* Formatted total with currency symbol
|
|
12
|
-
*/
|
|
13
4
|
formattedTotal?: string;
|
|
14
5
|
};
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
readonly '@type'?: string;
|
|
5
|
-
/**
|
|
6
|
-
* Array of converted amounts with details
|
|
7
|
-
*/
|
|
8
|
-
convertedAmounts?: Array<string>;
|
|
9
|
-
/**
|
|
10
|
-
* Total amount in target currency
|
|
11
|
-
*/
|
|
1
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
|
+
export type CurrencyConversionBatch_jsonld = (HydraItemBaseSchema & {
|
|
3
|
+
convertedAmounts?: Array<null>;
|
|
12
4
|
total?: number;
|
|
13
|
-
/**
|
|
14
|
-
* Formatted total with currency symbol
|
|
15
|
-
*/
|
|
16
5
|
formattedTotal?: string;
|
|
17
|
-
};
|
|
6
|
+
});
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
readonly '@id'?: string;
|
|
4
|
-
readonly '@type'?: string;
|
|
1
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
|
+
export type CurrencyConversion_jsonld = (HydraItemBaseSchema & {
|
|
5
3
|
fromCurrency?: string;
|
|
6
4
|
toCurrency?: string;
|
|
7
5
|
conversion?: number;
|
|
8
6
|
amount?: number | null;
|
|
9
7
|
convertedAmount?: number | null;
|
|
10
8
|
formattedAmount?: string | null;
|
|
11
|
-
};
|
|
9
|
+
});
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type CustomerLookup_jsonld = {
|
|
3
|
-
readonly '@context'?: (string | Record<string, any>);
|
|
4
|
-
readonly '@id'?: string;
|
|
5
|
-
readonly '@type'?: string;
|
|
1
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
|
+
export type CustomerLookup_jsonld = (HydraItemBaseSchema & {
|
|
6
3
|
id?: string;
|
|
7
4
|
fullName?: string;
|
|
8
5
|
telephoneNumber?: string;
|
|
9
6
|
email?: string;
|
|
10
|
-
enquiries?: Array<
|
|
11
|
-
};
|
|
7
|
+
enquiries?: Array<null>;
|
|
8
|
+
});
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { Address_jsonld } from './Address_jsonld';
|
|
2
2
|
import type { EmergencyDetails_jsonld } from './EmergencyDetails_jsonld';
|
|
3
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
3
4
|
import type { Passport_jsonld } from './Passport_jsonld';
|
|
4
|
-
export type Customer_jsonld = {
|
|
5
|
-
readonly '@context'?: (string | Record<string, any>);
|
|
6
|
-
readonly '@id'?: string;
|
|
7
|
-
readonly '@type'?: string;
|
|
5
|
+
export type Customer_jsonld = (HydraItemBaseSchema & {
|
|
8
6
|
id?: string;
|
|
9
7
|
customerId?: number;
|
|
10
8
|
title?: string | null;
|
|
@@ -28,4 +26,4 @@ export type Customer_jsonld = {
|
|
|
28
26
|
address?: (Address_jsonld | null);
|
|
29
27
|
passport?: (Passport_jsonld | null);
|
|
30
28
|
emergencyDetails?: (EmergencyDetails_jsonld | null);
|
|
31
|
-
};
|
|
29
|
+
});
|
|
@@ -9,17 +9,19 @@ export type Departure = {
|
|
|
9
9
|
/**
|
|
10
10
|
* The date of the departure in YYYY-MM-DD format
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
startDate?: string;
|
|
13
13
|
/**
|
|
14
|
-
* The
|
|
14
|
+
* The end date of the departure in YYYY-MM-DD format
|
|
15
15
|
*/
|
|
16
|
+
endDate?: string | null;
|
|
16
17
|
status?: (Status | null);
|
|
17
18
|
/**
|
|
18
19
|
* The Cabins associated with this departure
|
|
19
20
|
*/
|
|
20
|
-
cabins?: Array<
|
|
21
|
+
cabins?: Array<null>;
|
|
22
|
+
vessel?: (Vessel | null);
|
|
21
23
|
/**
|
|
22
|
-
* The
|
|
24
|
+
* The Trip Variant ID associated with this departure
|
|
23
25
|
*/
|
|
24
|
-
|
|
26
|
+
tripVariantId?: number | null;
|
|
25
27
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { Status_jsonld } from './Status_jsonld';
|
|
2
2
|
import type { Vessel_jsonld } from './Vessel_jsonld';
|
|
3
3
|
export type Departure_jsonld = {
|
|
4
|
-
readonly '@id'?: string;
|
|
5
|
-
readonly '@type'?: string;
|
|
6
4
|
/**
|
|
7
5
|
* The external ID of the departure, formatted as {region}-{id}, e.g., ANT-12345
|
|
8
6
|
*/
|
|
@@ -11,17 +9,19 @@ export type Departure_jsonld = {
|
|
|
11
9
|
/**
|
|
12
10
|
* The date of the departure in YYYY-MM-DD format
|
|
13
11
|
*/
|
|
14
|
-
|
|
12
|
+
startDate?: string;
|
|
15
13
|
/**
|
|
16
|
-
* The
|
|
14
|
+
* The end date of the departure in YYYY-MM-DD format
|
|
17
15
|
*/
|
|
16
|
+
endDate?: string | null;
|
|
18
17
|
status?: (Status_jsonld | null);
|
|
19
18
|
/**
|
|
20
19
|
* The Cabins associated with this departure
|
|
21
20
|
*/
|
|
22
|
-
cabins?: Array<
|
|
21
|
+
cabins?: Array<null>;
|
|
22
|
+
vessel?: (Vessel_jsonld | null);
|
|
23
23
|
/**
|
|
24
|
-
* The
|
|
24
|
+
* The Trip Variant ID associated with this departure
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
tripVariantId?: number | null;
|
|
27
27
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
readonly '@id'?: string;
|
|
4
|
-
readonly '@type'?: string;
|
|
1
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
|
+
export type EmergencyDetails_jsonld = (HydraItemBaseSchema & {
|
|
5
3
|
name?: string | null;
|
|
6
4
|
phoneNumber?: string | null;
|
|
7
5
|
relationship?: string | null;
|
|
8
6
|
email?: string | null;
|
|
9
|
-
};
|
|
7
|
+
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { BookingGroup } from './BookingGroup';
|
|
2
1
|
import type { Customer } from './Customer';
|
|
3
2
|
import type { EnquiryPerson } from './EnquiryPerson';
|
|
4
3
|
import type { EnquiryStatus } from './EnquiryStatus';
|
|
@@ -9,5 +8,5 @@ export type Enquiry = {
|
|
|
9
8
|
cxPerson?: (EnquiryPerson | null);
|
|
10
9
|
enquiryStatus?: (EnquiryStatus | null);
|
|
11
10
|
customer?: (Customer | null);
|
|
12
|
-
bookingGroups?: Array<
|
|
11
|
+
bookingGroups?: Array<null>;
|
|
13
12
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
readonly '@id'?: string;
|
|
4
|
-
readonly '@type'?: string;
|
|
1
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
|
+
export type EnquiryPerson_jsonld = (HydraItemBaseSchema & {
|
|
5
3
|
id?: string;
|
|
6
4
|
firstName?: string | null;
|
|
7
5
|
lastName?: string | null;
|
|
8
|
-
};
|
|
6
|
+
});
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
readonly '@type'?: string;
|
|
4
|
-
readonly '@context'?: (string | Record<string, any>);
|
|
1
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
|
+
export type EnquiryStatus_jsonld = (HydraItemBaseSchema & {
|
|
5
3
|
id?: string;
|
|
6
4
|
enquirystatusId?: number;
|
|
7
5
|
shortTitle?: string;
|
|
8
6
|
alias?: string;
|
|
9
7
|
groupName?: string;
|
|
10
8
|
position?: number;
|
|
11
|
-
};
|
|
9
|
+
});
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import type { BookingGroup_jsonld } from './BookingGroup_jsonld';
|
|
2
1
|
import type { Customer_jsonld } from './Customer_jsonld';
|
|
3
2
|
import type { EnquiryPerson_jsonld } from './EnquiryPerson_jsonld';
|
|
4
3
|
import type { EnquiryStatus_jsonld } from './EnquiryStatus_jsonld';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
readonly '@id'?: string;
|
|
8
|
-
readonly '@type'?: string;
|
|
4
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
5
|
+
export type Enquiry_jsonld = (HydraItemBaseSchema & {
|
|
9
6
|
id?: string;
|
|
10
7
|
enquiryId?: number;
|
|
11
8
|
salesPerson?: (EnquiryPerson_jsonld | null);
|
|
12
9
|
cxPerson?: (EnquiryPerson_jsonld | null);
|
|
13
10
|
enquiryStatus?: (EnquiryStatus_jsonld | null);
|
|
14
11
|
customer?: (Customer_jsonld | null);
|
|
15
|
-
bookingGroups?: Array<
|
|
16
|
-
};
|
|
12
|
+
bookingGroups?: Array<null>;
|
|
13
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type HydraCollectionBaseSchema = {
|
|
2
|
+
member: any[];
|
|
3
|
+
totalItems?: number;
|
|
4
|
+
view?: {
|
|
5
|
+
'@id'?: string;
|
|
6
|
+
'@type'?: string;
|
|
7
|
+
first?: string;
|
|
8
|
+
last?: string;
|
|
9
|
+
previous?: string;
|
|
10
|
+
next?: string;
|
|
11
|
+
};
|
|
12
|
+
search?: {
|
|
13
|
+
'@type'?: string;
|
|
14
|
+
template?: string;
|
|
15
|
+
variableRepresentation?: string;
|
|
16
|
+
mapping?: Array<{
|
|
17
|
+
'@type'?: string;
|
|
18
|
+
variable?: string;
|
|
19
|
+
property?: string | null;
|
|
20
|
+
required?: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
readonly '@id'?: string;
|
|
4
|
-
readonly '@type'?: string;
|
|
1
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
|
+
export type Partner_jsonld = (HydraItemBaseSchema & {
|
|
5
3
|
id?: string;
|
|
6
4
|
partnerId?: number;
|
|
7
5
|
title?: string | null;
|
|
@@ -12,4 +10,4 @@ export type Partner_jsonld = {
|
|
|
12
10
|
telephone?: string | null;
|
|
13
11
|
email?: string | null;
|
|
14
12
|
isActive?: boolean;
|
|
15
|
-
};
|
|
13
|
+
});
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { Country_jsonld } from './Country_jsonld';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
readonly '@id'?: string;
|
|
5
|
-
readonly '@type'?: string;
|
|
2
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
3
|
+
export type Passport_jsonld = (HydraItemBaseSchema & {
|
|
6
4
|
passportNumber?: string | null;
|
|
7
5
|
passportExpiryDate?: string | null;
|
|
8
6
|
passportIssueDate?: string | null;
|
|
9
7
|
country?: (Country_jsonld | null);
|
|
10
|
-
};
|
|
8
|
+
});
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
readonly '@id'?: string;
|
|
4
|
-
readonly '@type'?: string;
|
|
1
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
|
+
export type PaymentType_jsonld = (HydraItemBaseSchema & {
|
|
5
3
|
id?: string;
|
|
6
4
|
title?: string | null;
|
|
7
5
|
alias?: string | null;
|
|
8
|
-
};
|
|
6
|
+
});
|
|
@@ -2,8 +2,6 @@ import type { Customer_jsonld } from './Customer_jsonld';
|
|
|
2
2
|
import type { PaymentType_jsonld } from './PaymentType_jsonld';
|
|
3
3
|
import type { Status_jsonld } from './Status_jsonld';
|
|
4
4
|
export type Payment_jsonld = {
|
|
5
|
-
readonly '@id'?: string;
|
|
6
|
-
readonly '@type'?: string;
|
|
7
5
|
id?: string;
|
|
8
6
|
paymentId?: number;
|
|
9
7
|
description?: string;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
readonly '@id'?: string;
|
|
4
|
-
readonly '@type'?: string;
|
|
1
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
|
+
export type Person_jsonld = (HydraItemBaseSchema & {
|
|
5
3
|
id?: string;
|
|
6
4
|
personId?: number;
|
|
7
5
|
firstName?: string | null;
|
|
@@ -13,4 +11,4 @@ export type Person_jsonld = {
|
|
|
13
11
|
role?: string | null;
|
|
14
12
|
avatarUrl?: string | null;
|
|
15
13
|
welcomeNote?: string | null;
|
|
16
|
-
};
|
|
14
|
+
});
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
readonly '@id'?: string;
|
|
4
|
-
readonly '@type'?: string;
|
|
1
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
|
+
export type PublishState_jsonld = (HydraItemBaseSchema & {
|
|
5
3
|
publishstateId?: number;
|
|
6
4
|
title?: string;
|
|
7
|
-
};
|
|
5
|
+
});
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
readonly '@id'?: string;
|
|
4
|
-
readonly '@type'?: string;
|
|
1
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
|
+
export type Status_jsonld = (HydraItemBaseSchema & {
|
|
5
3
|
id?: string;
|
|
6
4
|
title?: string | null;
|
|
7
5
|
alias?: string | null;
|
|
8
|
-
};
|
|
6
|
+
});
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
readonly '@id'?: string;
|
|
4
|
-
readonly '@type'?: string;
|
|
1
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
|
+
export type TravellerGroup_jsonld = (HydraItemBaseSchema & {
|
|
5
3
|
id?: string;
|
|
6
4
|
travellerGroupId?: number;
|
|
7
5
|
enquiryId?: number;
|
|
@@ -9,4 +7,4 @@ export type TravellerGroup_jsonld = {
|
|
|
9
7
|
paymentStatus?: string | null;
|
|
10
8
|
srfCompletedAt?: string | null;
|
|
11
9
|
srfPg2CompletedAt?: string | null;
|
|
12
|
-
};
|
|
10
|
+
});
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import type { Customer_jsonld } from './Customer_jsonld';
|
|
2
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
3
|
import type { TravellerGroup_jsonld } from './TravellerGroup_jsonld';
|
|
3
|
-
export type Traveller_jsonld = {
|
|
4
|
-
readonly '@context'?: (string | Record<string, any>);
|
|
5
|
-
readonly '@id'?: string;
|
|
6
|
-
readonly '@type'?: string;
|
|
4
|
+
export type Traveller_jsonld = (HydraItemBaseSchema & {
|
|
7
5
|
id?: string;
|
|
8
6
|
travellerId?: number;
|
|
9
7
|
isPayer?: boolean;
|
|
10
8
|
customer?: (Customer_jsonld | null);
|
|
11
9
|
travellerGroup?: (TravellerGroup_jsonld | null);
|
|
12
|
-
};
|
|
10
|
+
});
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
1
2
|
import type { PublishState_jsonld } from './PublishState_jsonld';
|
|
2
|
-
export type Trip_jsonld = {
|
|
3
|
-
readonly '@context'?: (string | Record<string, any>);
|
|
4
|
-
readonly '@id'?: string;
|
|
5
|
-
readonly '@type'?: string;
|
|
3
|
+
export type Trip_jsonld = (HydraItemBaseSchema & {
|
|
6
4
|
id?: string;
|
|
7
5
|
tripId?: number;
|
|
8
6
|
title?: string;
|
|
9
7
|
alias?: string | null;
|
|
10
8
|
publishState?: (PublishState_jsonld | null);
|
|
11
9
|
partner?: string | null;
|
|
12
|
-
};
|
|
10
|
+
});
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
readonly '@id'?: string;
|
|
4
|
-
readonly '@type'?: string;
|
|
1
|
+
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
|
+
export type Vessel_jsonld = (HydraItemBaseSchema & {
|
|
5
3
|
id?: string;
|
|
6
4
|
title?: string | null;
|
|
7
5
|
alias?: string | null;
|
|
8
|
-
};
|
|
6
|
+
});
|
|
@@ -8,11 +8,14 @@ import type { CustomerLookup } from '../models/CustomerLookup';
|
|
|
8
8
|
import type { Departure } from '../models/Departure';
|
|
9
9
|
import type { Enquiry } from '../models/Enquiry';
|
|
10
10
|
import type { EnquiryStatus } from '../models/EnquiryStatus';
|
|
11
|
+
import type { Itinerary_ItinerarySaveInput } from '../models/Itinerary_ItinerarySaveInput';
|
|
12
|
+
import type { Itinerary_ItinerarySaveOutput } from '../models/Itinerary_ItinerarySaveOutput';
|
|
11
13
|
import type { Partner } from '../models/Partner';
|
|
12
14
|
import type { Payment } from '../models/Payment';
|
|
13
15
|
import type { Person } from '../models/Person';
|
|
14
16
|
import type { Traveller } from '../models/Traveller';
|
|
15
17
|
import type { Trip } from '../models/Trip';
|
|
18
|
+
import type { TripVariant } from '../models/TripVariant';
|
|
16
19
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
17
20
|
export declare class SwoopService {
|
|
18
21
|
/**
|
|
@@ -132,6 +135,14 @@ export declare class SwoopService {
|
|
|
132
135
|
* @throws ApiError
|
|
133
136
|
*/
|
|
134
137
|
enquiryStatusesGetCollection(region?: string): CancelablePromise<Array<EnquiryStatus>>;
|
|
138
|
+
/**
|
|
139
|
+
* Replaces the Itinerary resource.
|
|
140
|
+
* Replaces the Itinerary resource.
|
|
141
|
+
* @param requestBody The updated Itinerary resource
|
|
142
|
+
* @returns Itinerary_ItinerarySaveOutput Itinerary resource updated
|
|
143
|
+
* @throws ApiError
|
|
144
|
+
*/
|
|
145
|
+
saveItinerary(requestBody: Itinerary_ItinerarySaveInput): CancelablePromise<Itinerary_ItinerarySaveOutput>;
|
|
135
146
|
/**
|
|
136
147
|
* Retrieves the collection of Partner resources.
|
|
137
148
|
* Retrieves the collection of Partner resources.
|
|
@@ -215,4 +226,12 @@ export declare class SwoopService {
|
|
|
215
226
|
* @throws ApiError
|
|
216
227
|
*/
|
|
217
228
|
tripsIdGet(id: string): CancelablePromise<Trip>;
|
|
229
|
+
/**
|
|
230
|
+
* Retrieves a TripVariant resource.
|
|
231
|
+
* Retrieves a TripVariant resource.
|
|
232
|
+
* @param id The unique identifier example: ANT-12345 ({REGION}-{trip_variant_id}})
|
|
233
|
+
* @returns TripVariant TripVariant resource
|
|
234
|
+
* @throws ApiError
|
|
235
|
+
*/
|
|
236
|
+
tripVariantsIdGet(id: string): CancelablePromise<TripVariant>;
|
|
218
237
|
}
|
|
@@ -214,6 +214,26 @@ export class SwoopService {
|
|
|
214
214
|
},
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
+
/**
|
|
218
|
+
* Replaces the Itinerary resource.
|
|
219
|
+
* Replaces the Itinerary resource.
|
|
220
|
+
* @param requestBody The updated Itinerary resource
|
|
221
|
+
* @returns Itinerary_ItinerarySaveOutput Itinerary resource updated
|
|
222
|
+
* @throws ApiError
|
|
223
|
+
*/
|
|
224
|
+
saveItinerary(requestBody) {
|
|
225
|
+
return __request(OpenAPI, {
|
|
226
|
+
method: 'PUT',
|
|
227
|
+
url: '/api/itinerary',
|
|
228
|
+
body: requestBody,
|
|
229
|
+
mediaType: 'application/json',
|
|
230
|
+
errors: {
|
|
231
|
+
400: `Invalid input`,
|
|
232
|
+
404: `Not found`,
|
|
233
|
+
422: `Validation Error`,
|
|
234
|
+
},
|
|
235
|
+
});
|
|
236
|
+
}
|
|
217
237
|
/**
|
|
218
238
|
* Retrieves the collection of Partner resources.
|
|
219
239
|
* Retrieves the collection of Partner resources.
|
|
@@ -392,4 +412,23 @@ export class SwoopService {
|
|
|
392
412
|
},
|
|
393
413
|
});
|
|
394
414
|
}
|
|
415
|
+
/**
|
|
416
|
+
* Retrieves a TripVariant resource.
|
|
417
|
+
* Retrieves a TripVariant resource.
|
|
418
|
+
* @param id The unique identifier example: ANT-12345 ({REGION}-{trip_variant_id}})
|
|
419
|
+
* @returns TripVariant TripVariant resource
|
|
420
|
+
* @throws ApiError
|
|
421
|
+
*/
|
|
422
|
+
tripVariantsIdGet(id) {
|
|
423
|
+
return __request(OpenAPI, {
|
|
424
|
+
method: 'GET',
|
|
425
|
+
url: '/api/trip-variants/{id}',
|
|
426
|
+
path: {
|
|
427
|
+
'id': id,
|
|
428
|
+
},
|
|
429
|
+
errors: {
|
|
430
|
+
404: `Not found`,
|
|
431
|
+
},
|
|
432
|
+
});
|
|
433
|
+
}
|
|
395
434
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Status_jsonld } from './Status_jsonld';
|
|
2
|
-
export type BookingGroup_jsonld = {
|
|
3
|
-
readonly '@context'?: (string | Record<string, any>);
|
|
4
|
-
readonly '@id'?: string;
|
|
5
|
-
readonly '@type'?: string;
|
|
6
|
-
id?: string;
|
|
7
|
-
name?: string;
|
|
8
|
-
status?: Status_jsonld;
|
|
9
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { CustomerLookupCXPerson } from './CustomerLookupCXPerson';
|
|
2
|
-
import type { CustomerLookupSalesPerson } from './CustomerLookupSalesPerson';
|
|
3
|
-
export type CustomerLookupEnquiry = {
|
|
4
|
-
crmLink?: string;
|
|
5
|
-
bookingStatus?: string;
|
|
6
|
-
dateOfTravel?: string;
|
|
7
|
-
destination?: string;
|
|
8
|
-
salesPerson?: (CustomerLookupSalesPerson | null);
|
|
9
|
-
cxPerson?: (CustomerLookupCXPerson | null);
|
|
10
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { CustomerLookupCXPerson_jsonld } from './CustomerLookupCXPerson_jsonld';
|
|
2
|
-
import type { CustomerLookupSalesPerson_jsonld } from './CustomerLookupSalesPerson_jsonld';
|
|
3
|
-
export type CustomerLookupEnquiry_jsonld = {
|
|
4
|
-
readonly '@context'?: (string | Record<string, any>);
|
|
5
|
-
readonly '@id'?: string;
|
|
6
|
-
readonly '@type'?: string;
|
|
7
|
-
crmLink?: string;
|
|
8
|
-
bookingStatus?: string;
|
|
9
|
-
dateOfTravel?: string;
|
|
10
|
-
destination?: string;
|
|
11
|
-
salesPerson?: (CustomerLookupSalesPerson_jsonld | null);
|
|
12
|
-
cxPerson?: (CustomerLookupCXPerson_jsonld | null);
|
|
13
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|