sm-types 1.11.58 → 1.11.60
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/common/index.d.ts +7 -21
- package/package.json +1 -1
- package/sm-airlines/dtos/response.d.ts +1 -0
package/common/index.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export declare const CABIN_CLASS_TYPES: {
|
|
|
71
71
|
};
|
|
72
72
|
export interface IFlightJSON {
|
|
73
73
|
price: number;
|
|
74
|
-
search:
|
|
74
|
+
search: IOfferSearch;
|
|
75
75
|
international: boolean;
|
|
76
76
|
inbound?: IFlightBound;
|
|
77
77
|
outbound: IFlightBound;
|
|
@@ -160,31 +160,17 @@ export interface IStop {
|
|
|
160
160
|
durationHours: string;
|
|
161
161
|
durationMinutes: number;
|
|
162
162
|
}
|
|
163
|
-
export interface
|
|
164
|
-
pickupCountryCode: string;
|
|
165
|
-
dropoffCountryCode: string;
|
|
166
|
-
}
|
|
167
|
-
export interface IHotelOfferSearch extends IBaseOfferSearch {
|
|
168
|
-
hotelCountryCode: string;
|
|
169
|
-
}
|
|
170
|
-
export interface IBusOfferSearch extends IBaseOfferSearch {
|
|
171
|
-
originCountryCode: string;
|
|
172
|
-
destinationCountryCode: string;
|
|
173
|
-
}
|
|
174
|
-
export interface IFlightOfferSearch extends IBaseOfferSearch {
|
|
175
|
-
originCountryCode: string;
|
|
176
|
-
destinationCountryCode: string;
|
|
177
|
-
}
|
|
178
|
-
export interface IBaseOfferSearch {
|
|
163
|
+
export interface IOfferSearch {
|
|
179
164
|
initialDate: string | Date;
|
|
180
165
|
initialHour?: string;
|
|
181
166
|
endDate?: string | Date;
|
|
182
167
|
endHour?: string;
|
|
183
168
|
international: boolean;
|
|
169
|
+
originCountryCode?: string;
|
|
170
|
+
destinationCountryCode: string;
|
|
184
171
|
}
|
|
185
|
-
export type IOfferSearch = ICarOfferSearch | IHotelOfferSearch | IBusOfferSearch | IFlightOfferSearch;
|
|
186
172
|
export interface IHotelJSON {
|
|
187
|
-
search:
|
|
173
|
+
search: IOfferSearch;
|
|
188
174
|
id: number;
|
|
189
175
|
city: string;
|
|
190
176
|
name: string;
|
|
@@ -231,7 +217,7 @@ export type additionalDriver = {
|
|
|
231
217
|
cpf: Nullable<string>;
|
|
232
218
|
};
|
|
233
219
|
export interface ICarJSON {
|
|
234
|
-
search:
|
|
220
|
+
search: IOfferSearch;
|
|
235
221
|
additionalDrivers: additionalDriver[];
|
|
236
222
|
pickup: {
|
|
237
223
|
date: string;
|
|
@@ -279,7 +265,7 @@ export interface IHotelSearchMetadata {
|
|
|
279
265
|
};
|
|
280
266
|
}
|
|
281
267
|
export interface IBusJSON {
|
|
282
|
-
search:
|
|
268
|
+
search: IOfferSearch;
|
|
283
269
|
returnTrip: IBusTrip;
|
|
284
270
|
departureTrip: IBusTrip;
|
|
285
271
|
}
|
package/package.json
CHANGED