@nicertravel/sdk 0.0.0 → 1.0.0-beta.2
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 +89 -3
- package/dist/_/codec.d.ts +93 -0
- package/dist/_/codec.js +298 -0
- package/dist/_/error.d.ts +27 -0
- package/dist/_/error.js +68 -0
- package/dist/_/hooks/envelope.d.ts +11 -0
- package/dist/_/hooks/envelope.js +15 -0
- package/dist/_/index.d.ts +3 -0
- package/dist/_/index.js +5 -0
- package/dist/_/transport.d.ts +146 -0
- package/dist/_/transport.js +220 -0
- package/dist/activities/client.d.ts +35 -0
- package/dist/activities/client.js +23 -0
- package/dist/activities/index.d.ts +5 -0
- package/dist/activities/index.js +4 -0
- package/dist/activities/models.d.ts +27 -0
- package/dist/activities/models.js +3 -0
- package/dist/activityDestinations/client.d.ts +24 -0
- package/dist/activityDestinations/client.js +17 -0
- package/dist/activityDestinations/index.d.ts +4 -0
- package/dist/activityDestinations/index.js +4 -0
- package/dist/balances/client.d.ts +29 -0
- package/dist/balances/client.js +18 -0
- package/dist/balances/index.d.ts +5 -0
- package/dist/balances/index.js +4 -0
- package/dist/balances/models.d.ts +12 -0
- package/dist/balances/models.js +3 -0
- package/dist/bookingSelections/client.d.ts +54 -0
- package/dist/bookingSelections/client.js +25 -0
- package/dist/bookingSelections/index.d.ts +5 -0
- package/dist/bookingSelections/index.js +4 -0
- package/dist/bookingSelections/models.d.ts +35 -0
- package/dist/bookingSelections/models.js +3 -0
- package/dist/carRentals/client.d.ts +55 -0
- package/dist/carRentals/client.js +25 -0
- package/dist/carRentals/index.d.ts +5 -0
- package/dist/carRentals/index.js +4 -0
- package/dist/carRentals/models.d.ts +157 -0
- package/dist/carRentals/models.js +3 -0
- package/dist/carriers/client.d.ts +32 -0
- package/dist/carriers/client.js +18 -0
- package/dist/carriers/index.d.ts +5 -0
- package/dist/carriers/index.js +4 -0
- package/dist/carriers/models.d.ts +9 -0
- package/dist/carriers/models.js +3 -0
- package/dist/chats/client.d.ts +69 -0
- package/dist/chats/client.js +38 -0
- package/dist/chats/index.d.ts +5 -0
- package/dist/chats/index.js +4 -0
- package/dist/chats/models.d.ts +25 -0
- package/dist/chats/models.js +3 -0
- package/dist/checkouts/client.d.ts +27 -0
- package/dist/checkouts/client.js +18 -0
- package/dist/checkouts/index.d.ts +5 -0
- package/dist/checkouts/index.js +4 -0
- package/dist/checkouts/models.d.ts +23 -0
- package/dist/checkouts/models.js +3 -0
- package/dist/client.d.ts +95 -0
- package/dist/client.js +220 -0
- package/dist/commissionExports/client.d.ts +62 -0
- package/dist/commissionExports/client.js +33 -0
- package/dist/commissionExports/index.d.ts +5 -0
- package/dist/commissionExports/index.js +4 -0
- package/dist/commissionExports/models.d.ts +165 -0
- package/dist/commissionExports/models.js +3 -0
- package/dist/commissionImports/client.d.ts +61 -0
- package/dist/commissionImports/client.js +34 -0
- package/dist/commissionImports/index.d.ts +5 -0
- package/dist/commissionImports/index.js +4 -0
- package/dist/commissionImports/models.d.ts +118 -0
- package/dist/commissionImports/models.js +3 -0
- package/dist/commissionItems/client.d.ts +128 -0
- package/dist/commissionItems/client.js +41 -0
- package/dist/commissionItems/index.d.ts +5 -0
- package/dist/commissionItems/index.js +4 -0
- package/dist/commissionItems/models.d.ts +217 -0
- package/dist/commissionItems/models.js +3 -0
- package/dist/commissionReports/client.d.ts +76 -0
- package/dist/commissionReports/client.js +18 -0
- package/dist/commissionReports/index.d.ts +5 -0
- package/dist/commissionReports/index.js +4 -0
- package/dist/commissionReports/models.d.ts +208 -0
- package/dist/commissionReports/models.js +3 -0
- package/dist/crmSettings/client.d.ts +50 -0
- package/dist/crmSettings/client.js +25 -0
- package/dist/crmSettings/index.d.ts +5 -0
- package/dist/crmSettings/index.js +4 -0
- package/dist/crmSettings/models.d.ts +313 -0
- package/dist/crmSettings/models.js +3 -0
- package/dist/earnings/client.d.ts +30 -0
- package/dist/earnings/client.js +18 -0
- package/dist/earnings/index.d.ts +5 -0
- package/dist/earnings/index.js +4 -0
- package/dist/earnings/models.d.ts +16 -0
- package/dist/earnings/models.js +3 -0
- package/dist/externalBookings/client.d.ts +56 -0
- package/dist/externalBookings/client.js +33 -0
- package/dist/externalBookings/index.d.ts +5 -0
- package/dist/externalBookings/index.js +4 -0
- package/dist/externalBookings/models.d.ts +93 -0
- package/dist/externalBookings/models.js +3 -0
- package/dist/externalPayments/client.d.ts +23 -0
- package/dist/externalPayments/client.js +18 -0
- package/dist/externalPayments/index.d.ts +5 -0
- package/dist/externalPayments/index.js +4 -0
- package/dist/externalPayments/models.d.ts +47 -0
- package/dist/externalPayments/models.js +3 -0
- package/dist/favorites/client.d.ts +87 -0
- package/dist/favorites/client.js +63 -0
- package/dist/favorites/index.d.ts +5 -0
- package/dist/favorites/index.js +4 -0
- package/dist/favorites/models.d.ts +79 -0
- package/dist/favorites/models.js +3 -0
- package/dist/flightSchedules/client.d.ts +29 -0
- package/dist/flightSchedules/client.js +18 -0
- package/dist/flightSchedules/index.d.ts +5 -0
- package/dist/flightSchedules/index.js +4 -0
- package/dist/flightSchedules/models.d.ts +25 -0
- package/dist/flightSchedules/models.js +3 -0
- package/dist/flights/client.d.ts +73 -0
- package/dist/flights/client.js +25 -0
- package/dist/flights/index.d.ts +5 -0
- package/dist/flights/index.js +4 -0
- package/dist/flights/models.d.ts +345 -0
- package/dist/flights/models.js +3 -0
- package/dist/hotels/client.d.ts +104 -0
- package/dist/hotels/client.js +26 -0
- package/dist/hotels/index.d.ts +5 -0
- package/dist/hotels/index.js +4 -0
- package/dist/hotels/models.d.ts +355 -0
- package/dist/hotels/models.js +3 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +4 -0
- package/dist/insuranceQuotes/client.d.ts +27 -0
- package/dist/insuranceQuotes/client.js +18 -0
- package/dist/insuranceQuotes/index.d.ts +5 -0
- package/dist/insuranceQuotes/index.js +4 -0
- package/dist/insuranceQuotes/models.d.ts +76 -0
- package/dist/insuranceQuotes/models.js +3 -0
- package/dist/itineraries/client.d.ts +165 -0
- package/dist/itineraries/client.js +86 -0
- package/dist/itineraries/index.d.ts +5 -0
- package/dist/itineraries/index.js +4 -0
- package/dist/itineraries/models.d.ts +1619 -0
- package/dist/itineraries/models.js +4 -0
- package/dist/models.d.ts +1361 -0
- package/dist/models.js +3 -0
- package/dist/notes/client.d.ts +82 -0
- package/dist/notes/client.js +41 -0
- package/dist/notes/index.d.ts +5 -0
- package/dist/notes/index.js +4 -0
- package/dist/notes/models.d.ts +116 -0
- package/dist/notes/models.js +3 -0
- package/dist/offers/client.d.ts +27 -0
- package/dist/offers/client.js +17 -0
- package/dist/offers/index.d.ts +5 -0
- package/dist/offers/index.js +4 -0
- package/dist/offers/models.d.ts +19 -0
- package/dist/offers/models.js +3 -0
- package/dist/options/index.d.ts +114 -0
- package/dist/options/index.js +115 -0
- package/dist/orders/client.d.ts +154 -0
- package/dist/orders/client.js +65 -0
- package/dist/orders/index.d.ts +5 -0
- package/dist/orders/index.js +4 -0
- package/dist/orders/models.d.ts +2510 -0
- package/dist/orders/models.js +3 -0
- package/dist/payees/client.d.ts +48 -0
- package/dist/payees/client.js +26 -0
- package/dist/payees/index.d.ts +5 -0
- package/dist/payees/index.js +4 -0
- package/dist/payees/models.d.ts +50 -0
- package/dist/payees/models.js +3 -0
- package/dist/paymentMethods/client.d.ts +24 -0
- package/dist/paymentMethods/client.js +18 -0
- package/dist/paymentMethods/index.d.ts +5 -0
- package/dist/paymentMethods/index.js +4 -0
- package/dist/paymentMethods/models.d.ts +60 -0
- package/dist/paymentMethods/models.js +3 -0
- package/dist/places/client.d.ts +61 -0
- package/dist/places/client.js +25 -0
- package/dist/places/index.d.ts +5 -0
- package/dist/places/index.js +4 -0
- package/dist/places/models.d.ts +51 -0
- package/dist/places/models.js +3 -0
- package/dist/profileForms/client.d.ts +38 -0
- package/dist/profileForms/client.js +25 -0
- package/dist/profileForms/index.d.ts +5 -0
- package/dist/profileForms/index.js +4 -0
- package/dist/profileForms/models.d.ts +24 -0
- package/dist/profileForms/models.js +3 -0
- package/dist/quotes/client.d.ts +30 -0
- package/dist/quotes/client.js +18 -0
- package/dist/quotes/index.d.ts +5 -0
- package/dist/quotes/index.js +4 -0
- package/dist/quotes/models.d.ts +47 -0
- package/dist/quotes/models.js +3 -0
- package/dist/remittanceBatches/client.d.ts +78 -0
- package/dist/remittanceBatches/client.js +42 -0
- package/dist/remittanceBatches/index.d.ts +5 -0
- package/dist/remittanceBatches/index.js +4 -0
- package/dist/remittanceBatches/models.d.ts +131 -0
- package/dist/remittanceBatches/models.js +3 -0
- package/dist/remittanceClaims/client.d.ts +27 -0
- package/dist/remittanceClaims/client.js +18 -0
- package/dist/remittanceClaims/index.d.ts +5 -0
- package/dist/remittanceClaims/index.js +4 -0
- package/dist/remittanceClaims/models.d.ts +5 -0
- package/dist/remittanceClaims/models.js +3 -0
- package/dist/remittanceLines/client.d.ts +27 -0
- package/dist/remittanceLines/client.js +18 -0
- package/dist/remittanceLines/index.d.ts +5 -0
- package/dist/remittanceLines/index.js +4 -0
- package/dist/remittanceLines/models.d.ts +5 -0
- package/dist/remittanceLines/models.js +3 -0
- package/dist/remittances/client.d.ts +78 -0
- package/dist/remittances/client.js +42 -0
- package/dist/remittances/index.d.ts +5 -0
- package/dist/remittances/index.js +4 -0
- package/dist/remittances/models.d.ts +116 -0
- package/dist/remittances/models.js +3 -0
- package/dist/statements/client.d.ts +75 -0
- package/dist/statements/client.js +34 -0
- package/dist/statements/index.d.ts +5 -0
- package/dist/statements/index.js +4 -0
- package/dist/statements/models.d.ts +147 -0
- package/dist/statements/models.js +3 -0
- package/dist/suppliers/client.d.ts +71 -0
- package/dist/suppliers/client.js +41 -0
- package/dist/suppliers/index.d.ts +5 -0
- package/dist/suppliers/index.js +4 -0
- package/dist/suppliers/models.d.ts +130 -0
- package/dist/suppliers/models.js +3 -0
- package/dist/taskTemplates/client.d.ts +36 -0
- package/dist/taskTemplates/client.js +18 -0
- package/dist/taskTemplates/index.d.ts +5 -0
- package/dist/taskTemplates/index.js +4 -0
- package/dist/taskTemplates/models.d.ts +15 -0
- package/dist/taskTemplates/models.js +3 -0
- package/dist/tasks/client.d.ts +105 -0
- package/dist/tasks/client.js +41 -0
- package/dist/tasks/index.d.ts +5 -0
- package/dist/tasks/index.js +4 -0
- package/dist/tasks/models.d.ts +59 -0
- package/dist/tasks/models.js +3 -0
- package/dist/timeline/client.d.ts +42 -0
- package/dist/timeline/client.js +18 -0
- package/dist/timeline/index.d.ts +5 -0
- package/dist/timeline/index.js +4 -0
- package/dist/timeline/models.d.ts +65 -0
- package/dist/timeline/models.js +3 -0
- package/dist/travelProfile/client.d.ts +56 -0
- package/dist/travelProfile/client.js +25 -0
- package/dist/travelProfile/index.d.ts +5 -0
- package/dist/travelProfile/index.js +4 -0
- package/dist/travelProfile/models.d.ts +95 -0
- package/dist/travelProfile/models.js +3 -0
- package/dist/travelers/client.d.ts +214 -0
- package/dist/travelers/client.js +76 -0
- package/dist/travelers/index.d.ts +5 -0
- package/dist/travelers/index.js +4 -0
- package/dist/travelers/models.d.ts +576 -0
- package/dist/travelers/models.js +3 -0
- package/dist/trips/client.d.ts +224 -0
- package/dist/trips/client.js +88 -0
- package/dist/trips/index.d.ts +5 -0
- package/dist/trips/index.js +4 -0
- package/dist/trips/models.d.ts +486 -0
- package/dist/trips/models.js +3 -0
- package/package.json +35 -2
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import type { CountryCode, CurrencyCode, EstimatedCommission, HotelBookingRequirements, Money } from "../models.js";
|
|
2
|
+
export type DiscoverHotelDetailsResponse = HotelDetailsResponse | HotelRatesResponse;
|
|
3
|
+
export interface HotelDetailsResponse {
|
|
4
|
+
address: string | null;
|
|
5
|
+
amenities: string[];
|
|
6
|
+
chainName: string | null;
|
|
7
|
+
city: string | null;
|
|
8
|
+
countryCode: CountryCode | null;
|
|
9
|
+
description: string | null;
|
|
10
|
+
hotelReference: string;
|
|
11
|
+
images: {
|
|
12
|
+
url: string;
|
|
13
|
+
}[];
|
|
14
|
+
latitude: number;
|
|
15
|
+
longitude: number;
|
|
16
|
+
name: string;
|
|
17
|
+
offers: HotelStayOffer[];
|
|
18
|
+
singleRoomOnly: boolean;
|
|
19
|
+
starRating: number | null;
|
|
20
|
+
}
|
|
21
|
+
export interface HotelDiscoveryResponse {
|
|
22
|
+
filters: {
|
|
23
|
+
applied: {
|
|
24
|
+
amenities?: string[];
|
|
25
|
+
breakfastIncludedOnly?: boolean;
|
|
26
|
+
chainNames?: string[];
|
|
27
|
+
commissionableOnly?: boolean;
|
|
28
|
+
hotelReferences?: string[];
|
|
29
|
+
maximumDistanceKm?: number;
|
|
30
|
+
maximumPriceMinor?: number;
|
|
31
|
+
maximumStars?: number;
|
|
32
|
+
minimumPriceMinor?: number;
|
|
33
|
+
minimumStars?: number;
|
|
34
|
+
rateCodes?: string[];
|
|
35
|
+
refundableOnly?: boolean;
|
|
36
|
+
requireRateCodeMatch?: boolean;
|
|
37
|
+
};
|
|
38
|
+
available: {
|
|
39
|
+
amenities: string[];
|
|
40
|
+
breakfastIncludedCount: number;
|
|
41
|
+
chainNames: string[];
|
|
42
|
+
commission: {
|
|
43
|
+
commissionableCount: number;
|
|
44
|
+
grossAmountRanges: {
|
|
45
|
+
currency: CurrencyCode;
|
|
46
|
+
maximumAmountMinor: number;
|
|
47
|
+
minimumAmountMinor: number;
|
|
48
|
+
}[];
|
|
49
|
+
} | null;
|
|
50
|
+
distanceKm: {
|
|
51
|
+
maximum: number;
|
|
52
|
+
minimum: number;
|
|
53
|
+
} | null;
|
|
54
|
+
priceRanges: {
|
|
55
|
+
currency: CurrencyCode;
|
|
56
|
+
maximumAmountMinor: number;
|
|
57
|
+
minimumAmountMinor: number;
|
|
58
|
+
}[];
|
|
59
|
+
rateCodes: string[];
|
|
60
|
+
ratings: number[];
|
|
61
|
+
refundableCount: number;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
focus?: {
|
|
65
|
+
hotelReference: string | null;
|
|
66
|
+
name: string;
|
|
67
|
+
status: "SEARCHING" | "AVAILABLE" | "UNAVAILABLE" | "INCOMPLETE";
|
|
68
|
+
type: "HOTEL" | "POINT_OF_INTEREST";
|
|
69
|
+
};
|
|
70
|
+
items: HotelSummary[];
|
|
71
|
+
page: {
|
|
72
|
+
hasMore: boolean;
|
|
73
|
+
number: number;
|
|
74
|
+
size: number;
|
|
75
|
+
total: {
|
|
76
|
+
exact: boolean;
|
|
77
|
+
value: number;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
pins?: {
|
|
81
|
+
displayCommission?: {
|
|
82
|
+
amountMinor: number;
|
|
83
|
+
currency: CurrencyCode;
|
|
84
|
+
};
|
|
85
|
+
displayPrice?: {
|
|
86
|
+
averageNightlyMinor: number | null;
|
|
87
|
+
breakdown: {
|
|
88
|
+
baseMinor: number | null;
|
|
89
|
+
discountMinor: number;
|
|
90
|
+
nicerAdjustmentMinor: number;
|
|
91
|
+
supplierFeesMinor: number | null;
|
|
92
|
+
taxesMinor: number | null;
|
|
93
|
+
};
|
|
94
|
+
currency: CurrencyCode;
|
|
95
|
+
nightly: {
|
|
96
|
+
breakdown: {
|
|
97
|
+
baseMinor: number | null;
|
|
98
|
+
discountMinor: number;
|
|
99
|
+
nicerAdjustmentMinor: number;
|
|
100
|
+
supplierFeesMinor: number | null;
|
|
101
|
+
taxesMinor: number | null;
|
|
102
|
+
};
|
|
103
|
+
date: string;
|
|
104
|
+
totalMinor: number;
|
|
105
|
+
}[];
|
|
106
|
+
totalMinor: number;
|
|
107
|
+
};
|
|
108
|
+
hotelReference: string;
|
|
109
|
+
imageUrl: string | null;
|
|
110
|
+
latitude: number;
|
|
111
|
+
longitude: number;
|
|
112
|
+
name: string;
|
|
113
|
+
price: {
|
|
114
|
+
averageNightlyMinor: number | null;
|
|
115
|
+
breakdown: {
|
|
116
|
+
baseMinor: number | null;
|
|
117
|
+
discountMinor: number;
|
|
118
|
+
nicerAdjustmentMinor: number;
|
|
119
|
+
supplierFeesMinor: number | null;
|
|
120
|
+
taxesMinor: number | null;
|
|
121
|
+
};
|
|
122
|
+
currency: CurrencyCode;
|
|
123
|
+
nightly: {
|
|
124
|
+
breakdown: {
|
|
125
|
+
baseMinor: number | null;
|
|
126
|
+
discountMinor: number;
|
|
127
|
+
nicerAdjustmentMinor: number;
|
|
128
|
+
supplierFeesMinor: number | null;
|
|
129
|
+
taxesMinor: number | null;
|
|
130
|
+
};
|
|
131
|
+
date: string;
|
|
132
|
+
totalMinor: number;
|
|
133
|
+
}[];
|
|
134
|
+
totalMinor: number;
|
|
135
|
+
};
|
|
136
|
+
selected: boolean;
|
|
137
|
+
starRating: number | null;
|
|
138
|
+
}[];
|
|
139
|
+
pollAfterMs: number | null;
|
|
140
|
+
progress: {
|
|
141
|
+
failed: number;
|
|
142
|
+
live: number;
|
|
143
|
+
pending: number;
|
|
144
|
+
};
|
|
145
|
+
status: "COMPLETE" | "FAILED" | "PARTIAL" | "PENDING";
|
|
146
|
+
}
|
|
147
|
+
export interface HotelRatesResponse {
|
|
148
|
+
hotelReference: string;
|
|
149
|
+
offers: HotelStayOffer[];
|
|
150
|
+
singleRoomOnly: boolean;
|
|
151
|
+
}
|
|
152
|
+
export interface HotelStayOffer {
|
|
153
|
+
breakfastIncluded: boolean | null;
|
|
154
|
+
cancellation: {
|
|
155
|
+
allowed: boolean | null;
|
|
156
|
+
deadline: string | null;
|
|
157
|
+
penalty: Money | null;
|
|
158
|
+
summary: string | null;
|
|
159
|
+
};
|
|
160
|
+
commission: {
|
|
161
|
+
perRoom: EstimatedCommission | null;
|
|
162
|
+
total: EstimatedCommission | null;
|
|
163
|
+
};
|
|
164
|
+
displayCommission?: {
|
|
165
|
+
amountMinor: number;
|
|
166
|
+
currency: CurrencyCode;
|
|
167
|
+
};
|
|
168
|
+
displayPrice?: {
|
|
169
|
+
averageNightlyMinor: number | null;
|
|
170
|
+
breakdown: {
|
|
171
|
+
baseMinor: number | null;
|
|
172
|
+
discountMinor: number;
|
|
173
|
+
nicerAdjustmentMinor: number;
|
|
174
|
+
supplierFeesMinor: number | null;
|
|
175
|
+
taxesMinor: number | null;
|
|
176
|
+
};
|
|
177
|
+
currency: CurrencyCode;
|
|
178
|
+
nightly: {
|
|
179
|
+
breakdown: {
|
|
180
|
+
baseMinor: number | null;
|
|
181
|
+
discountMinor: number;
|
|
182
|
+
nicerAdjustmentMinor: number;
|
|
183
|
+
supplierFeesMinor: number | null;
|
|
184
|
+
taxesMinor: number | null;
|
|
185
|
+
};
|
|
186
|
+
date: string;
|
|
187
|
+
totalMinor: number;
|
|
188
|
+
}[];
|
|
189
|
+
totalMinor: number;
|
|
190
|
+
};
|
|
191
|
+
expiresAt: string;
|
|
192
|
+
offerReference: string;
|
|
193
|
+
paymentPolicy: {
|
|
194
|
+
kind: "PREPAID";
|
|
195
|
+
summary: string | null;
|
|
196
|
+
} | {
|
|
197
|
+
kind: "PAY_AT_PROPERTY";
|
|
198
|
+
requiresGuarantee: boolean;
|
|
199
|
+
summary: string | null;
|
|
200
|
+
} | {
|
|
201
|
+
deadline?: string | null;
|
|
202
|
+
deposit: Money | null;
|
|
203
|
+
kind: "DEPOSIT";
|
|
204
|
+
summary: string | null;
|
|
205
|
+
} | {
|
|
206
|
+
kind: "GUARANTEE_ONLY";
|
|
207
|
+
summary: string | null;
|
|
208
|
+
} | {
|
|
209
|
+
kind: "UNKNOWN";
|
|
210
|
+
summary: string | null;
|
|
211
|
+
};
|
|
212
|
+
price: {
|
|
213
|
+
averageNightlyMinor: number | null;
|
|
214
|
+
breakdown: {
|
|
215
|
+
baseMinor: number | null;
|
|
216
|
+
discountMinor: number;
|
|
217
|
+
nicerAdjustmentMinor: number;
|
|
218
|
+
supplierFeesMinor: number | null;
|
|
219
|
+
taxesMinor: number | null;
|
|
220
|
+
};
|
|
221
|
+
currency: CurrencyCode;
|
|
222
|
+
nightly: {
|
|
223
|
+
breakdown: {
|
|
224
|
+
baseMinor: number | null;
|
|
225
|
+
discountMinor: number;
|
|
226
|
+
nicerAdjustmentMinor: number;
|
|
227
|
+
supplierFeesMinor: number | null;
|
|
228
|
+
taxesMinor: number | null;
|
|
229
|
+
};
|
|
230
|
+
date: string;
|
|
231
|
+
totalMinor: number;
|
|
232
|
+
}[];
|
|
233
|
+
totalMinor: number;
|
|
234
|
+
};
|
|
235
|
+
refundable: boolean;
|
|
236
|
+
rooms: {
|
|
237
|
+
amenities: string[];
|
|
238
|
+
availabilityRemaining: number | null;
|
|
239
|
+
bedTypes: string[];
|
|
240
|
+
bookingRequirements?: HotelBookingRequirements;
|
|
241
|
+
category?: string | null;
|
|
242
|
+
description: string | null;
|
|
243
|
+
images: {
|
|
244
|
+
url: string;
|
|
245
|
+
}[];
|
|
246
|
+
name: string;
|
|
247
|
+
occupancy: {
|
|
248
|
+
childAgeRestrictions: string | null;
|
|
249
|
+
maximumAdults: number | null;
|
|
250
|
+
maximumChildren: number | null;
|
|
251
|
+
maximumGuests: number | null;
|
|
252
|
+
};
|
|
253
|
+
price: {
|
|
254
|
+
averageNightlyMinor: number | null;
|
|
255
|
+
breakdown: {
|
|
256
|
+
baseMinor: number | null;
|
|
257
|
+
discountMinor: number;
|
|
258
|
+
nicerAdjustmentMinor: number;
|
|
259
|
+
supplierFeesMinor: number | null;
|
|
260
|
+
taxesMinor: number | null;
|
|
261
|
+
};
|
|
262
|
+
currency: CurrencyCode;
|
|
263
|
+
nightly: {
|
|
264
|
+
breakdown: {
|
|
265
|
+
baseMinor: number | null;
|
|
266
|
+
discountMinor: number;
|
|
267
|
+
nicerAdjustmentMinor: number;
|
|
268
|
+
supplierFeesMinor: number | null;
|
|
269
|
+
taxesMinor: number | null;
|
|
270
|
+
};
|
|
271
|
+
date: string;
|
|
272
|
+
totalMinor: number;
|
|
273
|
+
}[];
|
|
274
|
+
totalMinor: number;
|
|
275
|
+
} | null;
|
|
276
|
+
ratePlanClientId?: string | null;
|
|
277
|
+
ratePlanCode: string | null;
|
|
278
|
+
ratePlanName: string | null;
|
|
279
|
+
restrictions: string | null;
|
|
280
|
+
roomNumber: number;
|
|
281
|
+
roomReference: string | null;
|
|
282
|
+
}[];
|
|
283
|
+
}
|
|
284
|
+
export interface HotelSummary {
|
|
285
|
+
address: string | null;
|
|
286
|
+
amenities: string[];
|
|
287
|
+
chainName: string | null;
|
|
288
|
+
city: string | null;
|
|
289
|
+
commission: EstimatedCommission | null;
|
|
290
|
+
countryCode: CountryCode | null;
|
|
291
|
+
displayCommission?: {
|
|
292
|
+
amountMinor: number;
|
|
293
|
+
currency: CurrencyCode;
|
|
294
|
+
};
|
|
295
|
+
displayPrice?: {
|
|
296
|
+
averageNightlyMinor: number | null;
|
|
297
|
+
breakdown: {
|
|
298
|
+
baseMinor: number | null;
|
|
299
|
+
discountMinor: number;
|
|
300
|
+
nicerAdjustmentMinor: number;
|
|
301
|
+
supplierFeesMinor: number | null;
|
|
302
|
+
taxesMinor: number | null;
|
|
303
|
+
};
|
|
304
|
+
currency: CurrencyCode;
|
|
305
|
+
nightly: {
|
|
306
|
+
breakdown: {
|
|
307
|
+
baseMinor: number | null;
|
|
308
|
+
discountMinor: number;
|
|
309
|
+
nicerAdjustmentMinor: number;
|
|
310
|
+
supplierFeesMinor: number | null;
|
|
311
|
+
taxesMinor: number | null;
|
|
312
|
+
};
|
|
313
|
+
date: string;
|
|
314
|
+
totalMinor: number;
|
|
315
|
+
}[];
|
|
316
|
+
totalMinor: number;
|
|
317
|
+
};
|
|
318
|
+
distanceKm: number | null;
|
|
319
|
+
hotelReference: string;
|
|
320
|
+
images: {
|
|
321
|
+
source: string;
|
|
322
|
+
url: string;
|
|
323
|
+
}[];
|
|
324
|
+
latitude: number;
|
|
325
|
+
linkedHotelReferences?: string[];
|
|
326
|
+
longitude: number;
|
|
327
|
+
name: string;
|
|
328
|
+
nightCount: number;
|
|
329
|
+
price: {
|
|
330
|
+
averageNightlyMinor: number | null;
|
|
331
|
+
breakdown: {
|
|
332
|
+
baseMinor: number | null;
|
|
333
|
+
discountMinor: number;
|
|
334
|
+
nicerAdjustmentMinor: number;
|
|
335
|
+
supplierFeesMinor: number | null;
|
|
336
|
+
taxesMinor: number | null;
|
|
337
|
+
};
|
|
338
|
+
currency: CurrencyCode;
|
|
339
|
+
nightly: {
|
|
340
|
+
breakdown: {
|
|
341
|
+
baseMinor: number | null;
|
|
342
|
+
discountMinor: number;
|
|
343
|
+
nicerAdjustmentMinor: number;
|
|
344
|
+
supplierFeesMinor: number | null;
|
|
345
|
+
taxesMinor: number | null;
|
|
346
|
+
};
|
|
347
|
+
date: string;
|
|
348
|
+
totalMinor: number;
|
|
349
|
+
}[];
|
|
350
|
+
totalMinor: number;
|
|
351
|
+
};
|
|
352
|
+
programmeCodes?: string[];
|
|
353
|
+
rateCodes?: string[];
|
|
354
|
+
starRating: number | null;
|
|
355
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "./_/index.js";
|
|
2
|
+
export type { RequestOptions } from "./_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, } from "./client.js";
|
|
5
|
+
export type { Accessibility, AgingBucket, AirPreferences, AirportCode, AllocationRequest, AllocationSplit, AttachmentContentType, BaggageSize, BaggageWeight, BookingCommercialSnapshot, BookingPriceSnapshot, BookingProductSnapshot, CarRentalLocationSnapshot, CarRentalProductSnapshot, CarrierCode, CommissionAttachment, CommissionCategory, CommissionChannel, CommissionFileStatus, CommissionIdentifierRef, CommissionItemKind, CommissionItemSource, CommissionItemSummary, CommissionNote, CommissionPaymentStatus, CommissionTag, CountryCode, CurrencyCode, Deleted, Dietary, E164Phone, EmergencyContact, ErrorResponse, EstimatedCommission, FlightAirportSnapshot, FlightBaggageCharge, FlightBaggageSnapshot, FlightBrandFeatureSnapshot, FlightCarrierSnapshot, FlightEndpointSnapshot, FlightFareRuleSnapshot, FlightHiddenStopSnapshot, FlightLegSnapshot, FlightPassengerSnapshot, FlightProductSnapshot, FlightRules, FlightSelectedSeat, FlightSelectedService, FlightSliceSnapshot, FrequentFlyerProgram, FxRate, GrantScopeKind, HotelBookingRequirements, HotelMembership, HotelPreferences, HotelProductSnapshot, ImportantDate, ImportantDateInput, ImportantDateKind, InsuranceProductSnapshot, Interests, LanguageTag, LineExclusionReason, LoyaltyProgram, MarketingConsent, MatchFeatures, MatchProposal, Money, ParticipantField, ParticipantRequirements, ParticipantSex, ParticipantSlotRequirement, PaymentMethodSummary, PaymentTerms, PayoutMethod, PersonAddress, PersonContact, PersonName, Pet, PreferredChannel, PriceComponent, ProductKind, ProviderKey, QuoteImage, QuotePolicy, RemittanceAllocation, RemittanceClaim, RemittanceLine, RemittanceLineMatchState, RemittanceLineReceived, SalesStage, SupplierAddress, SupplierKind, Task, TaskList, TaskOrigin, TermsDigest, TravelDocument, TravelDocumentKind, TravelProfile, TravelProfileUpdate, TravelerDocument, TravelerDocumentInput, TravelerId, TravelerRelationshipKind, TravelerSelf, TravelerSelfUpdate, TravelerStage, TravelerTag, TravelerVisibility, TravelersTripRelationship, TripItineraryStatus, UploadLink, } from "./models.js";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../_/index.js";
|
|
2
|
+
import type { CreateInsuranceQuotesBody, CreateInsuranceQuotesResponse } from "./models.js";
|
|
3
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The URL the paths of the API are relative to.
|
|
6
|
+
*/
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Client {
|
|
10
|
+
/**
|
|
11
|
+
* Quote travel insurance for a trip
|
|
12
|
+
*
|
|
13
|
+
* Requests travel-insurance quotes for the trip's insurable itinerary items
|
|
14
|
+
* plus any `customItems`, using the trip's start and end dates as coverage
|
|
15
|
+
* dates. Requires an authenticated company user with access to the trip, an
|
|
16
|
+
* `Idempotency-Key`, and a trip that has both dates (otherwise 409
|
|
17
|
+
* `INSURANCE_TRIP_DATES_REQUIRED`). Returns the quotes, which segments were
|
|
18
|
+
* insurable and selected, and the per-traveler fields still missing.
|
|
19
|
+
*/
|
|
20
|
+
create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
|
|
21
|
+
}
|
|
22
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
23
|
+
export declare function bind(transport: Transport): Client;
|
|
24
|
+
export type CreateRequest = {
|
|
25
|
+
travelersTripId: string;
|
|
26
|
+
} & CreateInsuranceQuotesBody;
|
|
27
|
+
export type CreateResponse = CreateInsuranceQuotesResponse;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../_/index.js";
|
|
4
|
+
export function createClient(options) {
|
|
5
|
+
return bind(new Transport(options));
|
|
6
|
+
}
|
|
7
|
+
export function bind(transport) {
|
|
8
|
+
return {
|
|
9
|
+
create: (request, options) => transport.send(CreateOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const CreateOperation = {
|
|
13
|
+
method: "POST",
|
|
14
|
+
route: "/booking/trips/{travelersTripId}/insurance-quotes",
|
|
15
|
+
body: "flat",
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true },
|
|
18
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, CreateRequest, CreateResponse, } from "./client.js";
|
|
5
|
+
export type { CreateInsuranceQuotesBody, CreateInsuranceQuotesResponse, InsuranceCoverageOption, } from "./models.js";
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { CurrencyCode, Money } from "../models.js";
|
|
2
|
+
export interface CreateInsuranceQuotesBody {
|
|
3
|
+
customItems?: {
|
|
4
|
+
amountMinor: number;
|
|
5
|
+
countryCode: string;
|
|
6
|
+
currency: CurrencyCode;
|
|
7
|
+
reference: string;
|
|
8
|
+
startsOn?: string;
|
|
9
|
+
title: string;
|
|
10
|
+
}[];
|
|
11
|
+
depositDate: string;
|
|
12
|
+
language?: "en-us" | "es-es";
|
|
13
|
+
planId?: string;
|
|
14
|
+
segmentIds?: string[];
|
|
15
|
+
selectedCoverageCodes?: string[];
|
|
16
|
+
travelers: {
|
|
17
|
+
address?: {
|
|
18
|
+
address1?: string;
|
|
19
|
+
city?: string;
|
|
20
|
+
countryCode?: string;
|
|
21
|
+
postalCode?: string;
|
|
22
|
+
stateCode?: string;
|
|
23
|
+
};
|
|
24
|
+
birthDate?: string;
|
|
25
|
+
email?: string;
|
|
26
|
+
familyName?: string;
|
|
27
|
+
givenName?: string;
|
|
28
|
+
phoneNumber?: string;
|
|
29
|
+
travelerId: string;
|
|
30
|
+
}[];
|
|
31
|
+
}
|
|
32
|
+
export interface CreateInsuranceQuotesResponse {
|
|
33
|
+
insurableSegmentIds: string[];
|
|
34
|
+
missingFields: {
|
|
35
|
+
fields: ("ADDRESS" | "BIRTH_DATE" | "CITY" | "COUNTRY" | "EMAIL" | "FAMILY_NAME" | "GIVEN_NAME" | "PHONE_NUMBER" | "POSTAL_CODE" | "STATE")[];
|
|
36
|
+
travelerId: string;
|
|
37
|
+
}[];
|
|
38
|
+
quotes: {
|
|
39
|
+
availableOptions: InsuranceCoverageOption[];
|
|
40
|
+
description: string;
|
|
41
|
+
expiresAt: string;
|
|
42
|
+
planId: string;
|
|
43
|
+
planName: string;
|
|
44
|
+
price: {
|
|
45
|
+
breakdown: {
|
|
46
|
+
baseMinor: number | null;
|
|
47
|
+
discountMinor: number;
|
|
48
|
+
nicerAdjustmentMinor: number;
|
|
49
|
+
supplierFeesMinor: number | null;
|
|
50
|
+
taxesMinor: number | null;
|
|
51
|
+
};
|
|
52
|
+
currency: CurrencyCode;
|
|
53
|
+
insuredTripCostMinor: number;
|
|
54
|
+
totalMinor: number;
|
|
55
|
+
};
|
|
56
|
+
productKind: "INSURANCE";
|
|
57
|
+
providerKey: string;
|
|
58
|
+
quoteId: string;
|
|
59
|
+
selectedOptions: InsuranceCoverageOption[];
|
|
60
|
+
travelerPricing: {
|
|
61
|
+
coverageAmountMinor: number;
|
|
62
|
+
policyCostMinor: number;
|
|
63
|
+
travelerId: string;
|
|
64
|
+
}[];
|
|
65
|
+
}[];
|
|
66
|
+
selectedSegmentIds: string[];
|
|
67
|
+
}
|
|
68
|
+
export interface InsuranceCoverageOption {
|
|
69
|
+
coverageCode: string;
|
|
70
|
+
coverageName?: string;
|
|
71
|
+
description?: string;
|
|
72
|
+
effectiveDate?: string;
|
|
73
|
+
expirationDate?: string;
|
|
74
|
+
isSelected: boolean;
|
|
75
|
+
price: Money | null;
|
|
76
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../_/index.js";
|
|
2
|
+
import { type AddOfferBody, type AddOfferResponse as AddOfferResponse$, type ApproveSegmentBody, type ApproveSegmentResponse as ApproveSegmentResponse$, type CreateItineraryDocumentBody, type CreateItineraryDocumentResponse, type GetTripItineraryAgentViewResponse, type SegmentOpBody, type SelectOptionBody, type SelectOptionResponse as SelectOptionResponse$, type SendTripItineraryBody, type UpdateTripItineraryBody, type UpdateTripItineraryResponse } from "./models.js";
|
|
3
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The URL the paths of the API are relative to.
|
|
6
|
+
*/
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Client {
|
|
10
|
+
/**
|
|
11
|
+
* Add a live offer to the itinerary
|
|
12
|
+
*
|
|
13
|
+
* Adds a live offer (hotel room, flight or car rental) to the itinerary as a
|
|
14
|
+
* bookable segment: it re-validates the offer with the provider, saves it as
|
|
15
|
+
* a booking selection and writes the segment, in one call. Adding the same
|
|
16
|
+
* offer to the same trip again returns the segment already there. `status` is
|
|
17
|
+
* `OK` with the segment id, or `UNAVAILABLE` when the offer is gone (search
|
|
18
|
+
* again). A Sabre offer with no DK to book with (the advisor has none and the
|
|
19
|
+
* agency has no default DK) is refused with 422 `BOOKING_SABRE_DK_REQUIRED`.
|
|
20
|
+
*/
|
|
21
|
+
addOffer(request: AddOfferRequest, options?: RequestOptions): Promise<AddOfferResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Approve a segment from a shared link
|
|
24
|
+
*
|
|
25
|
+
* Marks one segment of a shared itinerary as approved by the traveler.
|
|
26
|
+
* Reachable without a token so it works from the traveler's itinerary link,
|
|
27
|
+
* where the itinerary id is the only credential, and rate-limited per IP
|
|
28
|
+
* address.
|
|
29
|
+
*/
|
|
30
|
+
approveSegment(request: ApproveSegmentRequest, options?: RequestOptions): Promise<ApproveSegmentResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Get a trip itinerary
|
|
33
|
+
*
|
|
34
|
+
* Returns an itinerary with each segment once — priced in USD, with its image
|
|
35
|
+
* URLs and the purchase behind it — plus the trip it belongs to and the
|
|
36
|
+
* policies that govern the traveler-facing view. Reachable without a token so
|
|
37
|
+
* a traveler can open a shared itinerary link, in which case the itinerary id
|
|
38
|
+
* is the only credential. A segment's commission (`commercialSnapshot`) and
|
|
39
|
+
* the provider's references are answered only to the agency's own advisors
|
|
40
|
+
* and admins and to Nicer staff, and which provider it comes from
|
|
41
|
+
* (`provider`, `metadata.provider`) only to Nicer staff.
|
|
42
|
+
*/
|
|
43
|
+
get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Compact itinerary with lock reasons
|
|
46
|
+
*
|
|
47
|
+
* A compact view of one trip: its dates, destinations and travellers, plus
|
|
48
|
+
* one line per segment with the reason it is frozen when it is. A frozen
|
|
49
|
+
* segment has been paid for, held or booked — plan around it, never change or
|
|
50
|
+
* remove it. Carries no prices, commissions or provider payloads.
|
|
51
|
+
*/
|
|
52
|
+
getOutline(request: GetOutlineRequest, options?: RequestOptions): Promise<GetOutlineResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* Upload an itinerary PDF for import
|
|
55
|
+
*
|
|
56
|
+
* Starts importing an itinerary PDF: returns a presigned S3 form that the
|
|
57
|
+
* browser posts one PDF of up to 25 MB to. Once it is uploaded, the segments
|
|
58
|
+
* read from the PDF are added to the itinerary (mode merge) or replace its
|
|
59
|
+
* segments (mode replace). Requires the trip's advisor or an admin.
|
|
60
|
+
*/
|
|
61
|
+
importDocument(request: ImportDocumentRequest, options?: RequestOptions): Promise<ImportDocumentResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* List trip itineraries
|
|
64
|
+
*
|
|
65
|
+
* Returns the itineraries the caller can see, each paired with its trip: ids,
|
|
66
|
+
* name, status, mode, counts, cost and the trip's title and dates, newest
|
|
67
|
+
* first. One page of 20 by default (`limit`, at most 100; `nextToken` for the
|
|
68
|
+
* next), so a caller never receives the whole account at once. The plan
|
|
69
|
+
* itself is not included — ask for `fields=itinerary.segments` to add it, or
|
|
70
|
+
* fetch one itinerary with GET /trip-itinerary/{tripItineraryId}. Segments
|
|
71
|
+
* follow that route's rule: commission and the provider's references for the
|
|
72
|
+
* agency's own advisors and admins and Nicer staff, which provider a segment
|
|
73
|
+
* comes from for Nicer staff only. `fields` names the parts of an item to
|
|
74
|
+
* return (dotted for nested, `-` to remove one; `nextToken` is always
|
|
75
|
+
* answered), `filter` takes `field||$op||value` expressions and `search`
|
|
76
|
+
* matches the itinerary or trip title.
|
|
77
|
+
*/
|
|
78
|
+
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
79
|
+
/**
|
|
80
|
+
* Choose an option from a shared link
|
|
81
|
+
*
|
|
82
|
+
* Records the traveler's choice among the options offered on a segment of a
|
|
83
|
+
* shared itinerary. Reachable without a token so it works from the traveler's
|
|
84
|
+
* itinerary link, where the itinerary id is the only credential, and
|
|
85
|
+
* rate-limited per IP address.
|
|
86
|
+
*/
|
|
87
|
+
selectOption(request: SelectOptionRequest, options?: RequestOptions): Promise<SelectOptionResponse>;
|
|
88
|
+
/**
|
|
89
|
+
* Send an itinerary to travelers
|
|
90
|
+
*
|
|
91
|
+
* Emails the itinerary to the travelers and records the delivery, returning
|
|
92
|
+
* the itinerary together with the addresses it went to. Requires an advisor.
|
|
93
|
+
*/
|
|
94
|
+
send(request: SendRequest, options?: RequestOptions): Promise<SendResponse>;
|
|
95
|
+
/**
|
|
96
|
+
* Update a trip itinerary
|
|
97
|
+
*
|
|
98
|
+
* Changes the itinerary's status, mode, trip cost, notes or attachments, and
|
|
99
|
+
* re-synchronizes the trip's start and end dates with the segments. A field
|
|
100
|
+
* left out keeps its stored value; in AUTO mode the trip cost is always the
|
|
101
|
+
* sum of the segments. Requires an advisor.
|
|
102
|
+
*/
|
|
103
|
+
update(request: UpdateRequest, options?: RequestOptions): Promise<UpdateResponse>;
|
|
104
|
+
/**
|
|
105
|
+
* Add, edit or remove segments
|
|
106
|
+
*
|
|
107
|
+
* Applies a list of operations to one itinerary's segments and
|
|
108
|
+
* re-synchronises the trip dates. `add` may omit the segment id — the API
|
|
109
|
+
* derives a stable one from the content, so repeating the same add is a no-op
|
|
110
|
+
* rather than a duplicate. A segment that is paid, held or booked is frozen:
|
|
111
|
+
* `update` and `delete` on it are refused. Prices are minor units (cents).
|
|
112
|
+
*/
|
|
113
|
+
updateSegments(request: UpdateSegmentsRequest, options?: RequestOptions): Promise<UpdateSegmentsResponse>;
|
|
114
|
+
}
|
|
115
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
116
|
+
export declare function bind(transport: Transport): Client;
|
|
117
|
+
export type AddOfferRequest = {
|
|
118
|
+
tripItineraryId: string;
|
|
119
|
+
} & AddOfferBody;
|
|
120
|
+
export type AddOfferResponse = AddOfferResponse$;
|
|
121
|
+
export type ApproveSegmentRequest = {
|
|
122
|
+
tripItineraryId: string;
|
|
123
|
+
} & ApproveSegmentBody;
|
|
124
|
+
export type ApproveSegmentResponse = ApproveSegmentResponse$;
|
|
125
|
+
export interface GetRequest {
|
|
126
|
+
tripItineraryId: string;
|
|
127
|
+
/**
|
|
128
|
+
* Comma-separated response fields to return, dotted for nested ones and
|
|
129
|
+
* applied to every array element — for example
|
|
130
|
+
* `status,tripCost,travelersTrip.tripTitle,itinerary.segments.purchase`. A
|
|
131
|
+
* leading `-` removes a path from what is kept
|
|
132
|
+
* (`itinerary.segments,-itinerary.segments.rate`). Only the reads those
|
|
133
|
+
* fields need are made. Omit for the whole response.
|
|
134
|
+
*/
|
|
135
|
+
fields?: string;
|
|
136
|
+
}
|
|
137
|
+
export type GetResponse = void;
|
|
138
|
+
export interface GetOutlineRequest {
|
|
139
|
+
tripItineraryId: string;
|
|
140
|
+
}
|
|
141
|
+
export type GetOutlineResponse = GetTripItineraryAgentViewResponse;
|
|
142
|
+
export type ImportDocumentRequest = {
|
|
143
|
+
tripItineraryId: string;
|
|
144
|
+
} & CreateItineraryDocumentBody;
|
|
145
|
+
export type ImportDocumentResponse = CreateItineraryDocumentResponse;
|
|
146
|
+
export interface ListRequest {
|
|
147
|
+
}
|
|
148
|
+
export type ListResponse = void;
|
|
149
|
+
export type SelectOptionRequest = {
|
|
150
|
+
tripItineraryId: string;
|
|
151
|
+
} & SelectOptionBody;
|
|
152
|
+
export type SelectOptionResponse = SelectOptionResponse$;
|
|
153
|
+
export type SendRequest = {
|
|
154
|
+
tripItineraryId: string;
|
|
155
|
+
} & SendTripItineraryBody;
|
|
156
|
+
export type SendResponse = void;
|
|
157
|
+
export type UpdateRequest = {
|
|
158
|
+
tripItineraryId: string;
|
|
159
|
+
} & UpdateTripItineraryBody;
|
|
160
|
+
export type UpdateResponse = UpdateTripItineraryResponse;
|
|
161
|
+
export interface UpdateSegmentsRequest {
|
|
162
|
+
tripItineraryId: string;
|
|
163
|
+
body: SegmentOpBody;
|
|
164
|
+
}
|
|
165
|
+
export type UpdateSegmentsResponse = void;
|