swoop-common 2.2.10 → 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/README.md +225 -225
- 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 +60 -60
- 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,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,60 +1,60 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "swoop-common",
|
|
3
|
-
"version": "2.2.
|
|
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"
|
|
11
|
-
},
|
|
12
|
-
"./rendering": {
|
|
13
|
-
"import": "./dist/rendering/index.js",
|
|
14
|
-
"require": "./dist/rendering/index.js",
|
|
15
|
-
"types": "./dist/rendering/index.d.ts"
|
|
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
|
-
"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"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "swoop-common",
|
|
3
|
+
"version": "2.2.12",
|
|
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"
|
|
11
|
+
},
|
|
12
|
+
"./rendering": {
|
|
13
|
+
"import": "./dist/rendering/index.js",
|
|
14
|
+
"require": "./dist/rendering/index.js",
|
|
15
|
+
"types": "./dist/rendering/index.d.ts"
|
|
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
|
+
"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"
|
|
59
|
+
}
|
|
60
|
+
}
|