@tripian/model 9.1.53 → 9.1.61
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/api/v4/models/ConfigList.d.ts +1 -0
- package/api/v4/models/TranslationList.d.ts +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/providers/index.d.ts +2 -1
- package/providers/kiwi/Availability.d.ts +80 -0
- package/providers/kiwi/CancelReservation.d.ts +13 -0
- package/providers/kiwi/Child.d.ts +3 -0
- package/providers/kiwi/CreateReservation.d.ts +98 -0
- package/providers/kiwi/ImageURL.d.ts +7 -0
- package/providers/kiwi/PropertyDetail.d.ts +79 -0
- package/providers/kiwi/PropertyLive.d.ts +24 -0
- package/providers/kiwi/PropertySearch.d.ts +46 -0
- package/providers/kiwi/Rating.d.ts +21 -0
- package/providers/kiwi/ViewReservation.d.ts +54 -0
- package/providers/kiwi/ViewReservationByExternalId.d.ts +7 -0
- package/providers/kiwi/index.d.ts +11 -0
package/package.json
CHANGED
package/providers/index.d.ts
CHANGED
|
@@ -6,4 +6,5 @@ import * as Rezdy from './rezdy';
|
|
|
6
6
|
import * as Videreo from './videreo';
|
|
7
7
|
import * as Toristy from './toristy';
|
|
8
8
|
import * as Victory from './victory';
|
|
9
|
-
|
|
9
|
+
import * as Kiwi from './kiwi';
|
|
10
|
+
export { Yelp, Gyg, Bb, Viator, Rezdy, Videreo, Toristy, Victory, Kiwi };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export type AvailabilityResponse = {
|
|
2
|
+
AvailabilityResponse: {
|
|
3
|
+
InDate: string;
|
|
4
|
+
OutDate: string;
|
|
5
|
+
NumAdults: number;
|
|
6
|
+
NumChildren: number;
|
|
7
|
+
NumRooms: number;
|
|
8
|
+
Note?: string;
|
|
9
|
+
Children?: {
|
|
10
|
+
Child: Array<{
|
|
11
|
+
Age: string;
|
|
12
|
+
}>;
|
|
13
|
+
};
|
|
14
|
+
PropertyInfo: AvailabilityPropertyInfo;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type AvailabilityPropertyInfo = {
|
|
18
|
+
Code: string;
|
|
19
|
+
AvailabilityInfo: {
|
|
20
|
+
Available: boolean;
|
|
21
|
+
LowestAverageRate: number;
|
|
22
|
+
LowestNightRate: number;
|
|
23
|
+
CurrencyCode: string;
|
|
24
|
+
};
|
|
25
|
+
Rooms: {
|
|
26
|
+
Room: AvailabilityRoom | AvailabilityRoom[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export type AvailabilityRoom = {
|
|
30
|
+
Code: string;
|
|
31
|
+
Title: string;
|
|
32
|
+
Description: string;
|
|
33
|
+
Rate: AvailabilityRate | AvailabilityRate[];
|
|
34
|
+
};
|
|
35
|
+
export type AvailabilityRate = {
|
|
36
|
+
Code: string;
|
|
37
|
+
Title: string;
|
|
38
|
+
Description: string;
|
|
39
|
+
SpecialOfferRate?: boolean;
|
|
40
|
+
RateType?: string;
|
|
41
|
+
CorpCode?: string;
|
|
42
|
+
Policies: {
|
|
43
|
+
Guarantee?: string;
|
|
44
|
+
Cancellation?: string;
|
|
45
|
+
Deposit?: string;
|
|
46
|
+
Prepay?: string;
|
|
47
|
+
Tax?: string;
|
|
48
|
+
ServiceCharges?: string;
|
|
49
|
+
SpecialRequirements?: string;
|
|
50
|
+
Children?: string;
|
|
51
|
+
Pets?: string;
|
|
52
|
+
Checkin?: string;
|
|
53
|
+
Miscellaneous?: string;
|
|
54
|
+
};
|
|
55
|
+
Price: {
|
|
56
|
+
CurrencyCode: string;
|
|
57
|
+
ExclusiveNightlyAverage: number;
|
|
58
|
+
ExclusiveTotal: number;
|
|
59
|
+
InclusiveNightlyAverage: number;
|
|
60
|
+
InclusiveTotal: number;
|
|
61
|
+
TotalTaxes: number;
|
|
62
|
+
TotalFeesAndSurcharges: number;
|
|
63
|
+
NightlyRate: NightlyRate[] | NightlyRate;
|
|
64
|
+
};
|
|
65
|
+
AcceptedPayments?: {
|
|
66
|
+
AcceptedPayment: {
|
|
67
|
+
PaymentCard: {
|
|
68
|
+
CardCode: string;
|
|
69
|
+
};
|
|
70
|
+
} | Array<{
|
|
71
|
+
PaymentCard: {
|
|
72
|
+
CardCode: string;
|
|
73
|
+
};
|
|
74
|
+
}>;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export type NightlyRate = {
|
|
78
|
+
Date: string;
|
|
79
|
+
ExclusiveRate: number;
|
|
80
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type CancelReservationRequest = {
|
|
2
|
+
CancelReservationRequest: {
|
|
3
|
+
ConfirmationId: string;
|
|
4
|
+
Reason?: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export type CancelReservationResponse = {
|
|
8
|
+
CancelReservationResponse: {
|
|
9
|
+
CancelledSuccess: boolean;
|
|
10
|
+
ConfirmationId: string;
|
|
11
|
+
CancellationId: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { Child } from './Child';
|
|
2
|
+
export type CreateReservationRequest = {
|
|
3
|
+
CreateReservationRequest: {
|
|
4
|
+
PropertyCode: string;
|
|
5
|
+
InDate: string;
|
|
6
|
+
OutDate: string;
|
|
7
|
+
Adults: number;
|
|
8
|
+
Rooms: number;
|
|
9
|
+
RateCode: string;
|
|
10
|
+
RoomCode: string;
|
|
11
|
+
ExternalId: string;
|
|
12
|
+
CorpCode?: string;
|
|
13
|
+
Children?: Child[];
|
|
14
|
+
Guests: Guest[];
|
|
15
|
+
PaymentInfo: PaymentInfo;
|
|
16
|
+
MessageToHotel?: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export type Guest = {
|
|
20
|
+
FirstName: string;
|
|
21
|
+
LastName: string;
|
|
22
|
+
Title: string;
|
|
23
|
+
ContactInfo: ContactInfo;
|
|
24
|
+
};
|
|
25
|
+
export type ContactInfo = {
|
|
26
|
+
AddressLine1: string;
|
|
27
|
+
AddressLine2?: string;
|
|
28
|
+
City: string;
|
|
29
|
+
Country: string;
|
|
30
|
+
Email: string;
|
|
31
|
+
PhoneCountryCode: string;
|
|
32
|
+
PhoneAreaCode: string;
|
|
33
|
+
Phone: string;
|
|
34
|
+
State: string;
|
|
35
|
+
ZipPostal: string;
|
|
36
|
+
};
|
|
37
|
+
export type PaymentInfo = {
|
|
38
|
+
CardNumber: string;
|
|
39
|
+
CardType: 'VI' | 'AX' | 'MC' | string;
|
|
40
|
+
CardSecurity: string;
|
|
41
|
+
CardholderName: string;
|
|
42
|
+
ExpiryMonth: string;
|
|
43
|
+
ExpiryYear: string;
|
|
44
|
+
};
|
|
45
|
+
export type CreateReservationResponse = {
|
|
46
|
+
CreateReservationResponse: {
|
|
47
|
+
ReservationSuccess: boolean;
|
|
48
|
+
ReservationSummary: ReservationSummary;
|
|
49
|
+
PropertyInfo: ReservationPropertyInfo;
|
|
50
|
+
Room: ReservedRoom;
|
|
51
|
+
Policies: ReservationPolicies;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export type ReservationSummary = {
|
|
55
|
+
ConfirmationId: string;
|
|
56
|
+
Status: string;
|
|
57
|
+
CurrencyCode: string;
|
|
58
|
+
InDate: string;
|
|
59
|
+
OutDate: string;
|
|
60
|
+
TotalCostExclusive: number;
|
|
61
|
+
TotalCostInclusive: number;
|
|
62
|
+
Adults: number;
|
|
63
|
+
Children: number;
|
|
64
|
+
Rooms: number;
|
|
65
|
+
ExternalId: string;
|
|
66
|
+
ChildrenAges: Child[];
|
|
67
|
+
};
|
|
68
|
+
export type ReservationPropertyInfo = {
|
|
69
|
+
Code: string;
|
|
70
|
+
};
|
|
71
|
+
export type ReservedRoom = {
|
|
72
|
+
Code: string;
|
|
73
|
+
Title: string;
|
|
74
|
+
Description: string;
|
|
75
|
+
RoomRate: RoomRate;
|
|
76
|
+
};
|
|
77
|
+
export type RoomRate = {
|
|
78
|
+
Code: string;
|
|
79
|
+
Title: string;
|
|
80
|
+
Description: string;
|
|
81
|
+
Price: RoomRatePrice;
|
|
82
|
+
};
|
|
83
|
+
export type RoomRatePrice = {
|
|
84
|
+
CurrencyCode: string;
|
|
85
|
+
ExclusiveNightlyAverage: number;
|
|
86
|
+
ExclusiveTotal: number;
|
|
87
|
+
InclusiveNightlyAverage: number;
|
|
88
|
+
InclusiveTotal: number;
|
|
89
|
+
TotalTaxes: number;
|
|
90
|
+
};
|
|
91
|
+
export type ReservationPolicies = {
|
|
92
|
+
Guarantee: string;
|
|
93
|
+
Cancellation: string;
|
|
94
|
+
Deposit?: string;
|
|
95
|
+
Prepay?: string;
|
|
96
|
+
Tax?: string;
|
|
97
|
+
ServiceCharges?: string;
|
|
98
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ImageURL } from './ImageURL';
|
|
2
|
+
import { Rating } from './Rating';
|
|
3
|
+
export type PropertyDetailResponse = {
|
|
4
|
+
PropertyDetailResponse: {
|
|
5
|
+
PropertyInfo: PropertyDetailInfo;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export type PropertyDetailInfo = {
|
|
9
|
+
Code: string;
|
|
10
|
+
hasBenefit: boolean;
|
|
11
|
+
hasSpecialOffer: boolean;
|
|
12
|
+
PropertyDetails: PropertyDetails;
|
|
13
|
+
SpecialOffers?: unknown;
|
|
14
|
+
Benefits?: unknown;
|
|
15
|
+
};
|
|
16
|
+
export type PropertyDetails = {
|
|
17
|
+
Brand?: string;
|
|
18
|
+
CurrencyCode: string;
|
|
19
|
+
MaximumRate?: string;
|
|
20
|
+
MinimumRate: string;
|
|
21
|
+
NumberOfRooms: string;
|
|
22
|
+
PropertyLogoURL?: string;
|
|
23
|
+
RateDisclaimer?: string;
|
|
24
|
+
Recognition?: string;
|
|
25
|
+
Title: string;
|
|
26
|
+
WebsiteURL: string;
|
|
27
|
+
DreamText: string;
|
|
28
|
+
Description: string;
|
|
29
|
+
Rating: Rating;
|
|
30
|
+
LocationInfo: PropertyDetailLocationInfo;
|
|
31
|
+
ImageUrls: {
|
|
32
|
+
ImageURL: ImageURL[];
|
|
33
|
+
};
|
|
34
|
+
Features: PropertyDetailFeatures;
|
|
35
|
+
PhoneNumbers: {
|
|
36
|
+
PhoneNumber: PhoneNumber[];
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export type PropertyDetailLocationInfo = {
|
|
40
|
+
Latitude: string;
|
|
41
|
+
Longitude: string;
|
|
42
|
+
LocationDescription?: string;
|
|
43
|
+
TimeZone?: string;
|
|
44
|
+
Address: PropertyDetailAddress;
|
|
45
|
+
};
|
|
46
|
+
export type PropertyDetailAddress = {
|
|
47
|
+
AddressLine1: string;
|
|
48
|
+
AddressLine2?: string;
|
|
49
|
+
AddressLine3?: string;
|
|
50
|
+
City: string;
|
|
51
|
+
Region: string;
|
|
52
|
+
Country: string;
|
|
53
|
+
Zone?: string;
|
|
54
|
+
ZipCode: string;
|
|
55
|
+
};
|
|
56
|
+
export type PropertyDetailFeatures = {
|
|
57
|
+
Amenities?: {
|
|
58
|
+
Amenity: string[];
|
|
59
|
+
};
|
|
60
|
+
RoomAmenities?: {
|
|
61
|
+
RoomAmenity: string[];
|
|
62
|
+
};
|
|
63
|
+
Facilities?: {
|
|
64
|
+
Facility: string[];
|
|
65
|
+
};
|
|
66
|
+
Interests?: {
|
|
67
|
+
Interest: string[];
|
|
68
|
+
};
|
|
69
|
+
Styles?: {
|
|
70
|
+
Style: string[];
|
|
71
|
+
};
|
|
72
|
+
Settings?: {
|
|
73
|
+
Setting: string[];
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export type PhoneNumber = {
|
|
77
|
+
Type: string;
|
|
78
|
+
Number: string;
|
|
79
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type PropertyLiveResponse = {
|
|
2
|
+
PropertyLiveResponse: {
|
|
3
|
+
NumProperties: string;
|
|
4
|
+
Property: PropertyLive[];
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export type PropertyLive = {
|
|
8
|
+
Code: string;
|
|
9
|
+
Title: string;
|
|
10
|
+
Address: Address;
|
|
11
|
+
};
|
|
12
|
+
export type Address = {
|
|
13
|
+
AddressLine1: string;
|
|
14
|
+
AddressLine2?: string;
|
|
15
|
+
AddressLine3?: string;
|
|
16
|
+
City: string;
|
|
17
|
+
Region?: string;
|
|
18
|
+
RegionIsoCode?: string;
|
|
19
|
+
Country: string;
|
|
20
|
+
CountryIsoCode: string;
|
|
21
|
+
Area?: string;
|
|
22
|
+
Zone?: string;
|
|
23
|
+
ZipCode?: string;
|
|
24
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ImageURL } from './ImageURL';
|
|
2
|
+
import { Rating } from './Rating';
|
|
3
|
+
export type PropertySearchResponse = {
|
|
4
|
+
NumProperties: number;
|
|
5
|
+
PropertyInfo: PropertyInfo[];
|
|
6
|
+
};
|
|
7
|
+
export type PropertyInfo = {
|
|
8
|
+
Code: string;
|
|
9
|
+
hasSpecialOffer: boolean;
|
|
10
|
+
hasBenefit: boolean;
|
|
11
|
+
PropertyDetails: PropertySearchDetails;
|
|
12
|
+
};
|
|
13
|
+
export type PropertySearchDetails = {
|
|
14
|
+
CurrencyCode: string;
|
|
15
|
+
MaximumRate?: number;
|
|
16
|
+
MinimumRate: number;
|
|
17
|
+
NumberOfRooms: number;
|
|
18
|
+
Title: string;
|
|
19
|
+
URL: string;
|
|
20
|
+
DreamText: string;
|
|
21
|
+
Rating: Rating;
|
|
22
|
+
LocationInfo: LocationInfo;
|
|
23
|
+
ImageUrls: ImageURL[];
|
|
24
|
+
Features: Features;
|
|
25
|
+
};
|
|
26
|
+
export type LocationInfo = {
|
|
27
|
+
Latitude: number;
|
|
28
|
+
Longitude: number;
|
|
29
|
+
Address: PropertySearchAddress;
|
|
30
|
+
};
|
|
31
|
+
export type PropertySearchAddress = {
|
|
32
|
+
City: string;
|
|
33
|
+
Region: string;
|
|
34
|
+
RegionIsoCode: string;
|
|
35
|
+
Country: string;
|
|
36
|
+
CountryIsoCode: string;
|
|
37
|
+
Area: string;
|
|
38
|
+
Zone: string;
|
|
39
|
+
ZipCode: string;
|
|
40
|
+
};
|
|
41
|
+
export type Features = {
|
|
42
|
+
Amenities: string[];
|
|
43
|
+
Interests: string[];
|
|
44
|
+
Styles: string[];
|
|
45
|
+
Settings: string[];
|
|
46
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type LocalRating = {
|
|
2
|
+
Source?: string;
|
|
3
|
+
};
|
|
4
|
+
export type KiwiRating = {
|
|
5
|
+
ArchitectureDesign: number;
|
|
6
|
+
AttentionToDetail: number;
|
|
7
|
+
FitToPromise: number;
|
|
8
|
+
FoodBeverage: number;
|
|
9
|
+
GenerosityValue: number;
|
|
10
|
+
Location: number;
|
|
11
|
+
Rooms: number;
|
|
12
|
+
Service: number;
|
|
13
|
+
SpaFitness: number;
|
|
14
|
+
WowHipFactor: number;
|
|
15
|
+
_: number;
|
|
16
|
+
};
|
|
17
|
+
export type Rating = {
|
|
18
|
+
KiwiRating: KiwiRating;
|
|
19
|
+
LocalRating?: LocalRating;
|
|
20
|
+
StarRating: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Child } from './Child';
|
|
2
|
+
export type ViewReservationRequest = {
|
|
3
|
+
ViewReservationRequest: {
|
|
4
|
+
ConfirmationId: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export type ViewReservationResponse = {
|
|
8
|
+
ViewReservationResponse: {
|
|
9
|
+
ReservationSummary: {
|
|
10
|
+
ConfirmationId: string;
|
|
11
|
+
Status: string;
|
|
12
|
+
CurrencyCode: string;
|
|
13
|
+
InDate: string;
|
|
14
|
+
OutDate: string;
|
|
15
|
+
TotalCostExclusive: string;
|
|
16
|
+
TotalCostInclusive: string;
|
|
17
|
+
Rooms: number;
|
|
18
|
+
ExternalId: string;
|
|
19
|
+
Adults: number;
|
|
20
|
+
Children?: {
|
|
21
|
+
Child: Child[];
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
PropertyInfo: {
|
|
25
|
+
Code: string;
|
|
26
|
+
};
|
|
27
|
+
Room: {
|
|
28
|
+
Code: string;
|
|
29
|
+
Title?: string;
|
|
30
|
+
Description?: string;
|
|
31
|
+
RoomRate: {
|
|
32
|
+
Code: string;
|
|
33
|
+
Title?: string;
|
|
34
|
+
Description?: string;
|
|
35
|
+
Price: {
|
|
36
|
+
CurrencyCode: string;
|
|
37
|
+
ExclusiveNightlyAverage: string;
|
|
38
|
+
ExclusiveTotal: string;
|
|
39
|
+
InclusiveNightlyAverage: string;
|
|
40
|
+
InclusiveTotal: string;
|
|
41
|
+
TotalTaxes: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
Policies?: {
|
|
46
|
+
Guarantee?: string;
|
|
47
|
+
Cancellation?: string;
|
|
48
|
+
Deposit?: string;
|
|
49
|
+
Prepay?: string;
|
|
50
|
+
Tax?: string;
|
|
51
|
+
ServiceCharges?: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './Availability';
|
|
2
|
+
export * from './CancelReservation';
|
|
3
|
+
export * from './Child';
|
|
4
|
+
export * from './CreateReservation';
|
|
5
|
+
export * from './ImageURL';
|
|
6
|
+
export * from './PropertyDetail';
|
|
7
|
+
export * from './PropertyLive';
|
|
8
|
+
export * from './PropertySearch';
|
|
9
|
+
export * from './Rating';
|
|
10
|
+
export * from './ViewReservation';
|
|
11
|
+
export * from './ViewReservationByExternalId';
|