sm-types 1.9.1 → 1.9.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/common/index.d.ts +13 -58
- package/package.json +1 -1
package/common/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ISmCarContractDetails, ISmCarDetails, ISmCarRentalDetails, ISmCarSupplierInfo } from '../sm-car-rentals';
|
|
1
2
|
import { EventPrivacy } from '../sm-company-events/enums';
|
|
2
3
|
import { CabinClass, JustificationPolicy } from './enums';
|
|
3
4
|
import * as SharedTypes from './shared';
|
|
@@ -179,8 +180,16 @@ export interface IHotelJSON {
|
|
|
179
180
|
mainPictureUrl: string;
|
|
180
181
|
freeCancelationUntil: Date;
|
|
181
182
|
}
|
|
183
|
+
export type additionalDriver = {
|
|
184
|
+
userToken: string;
|
|
185
|
+
firstName: string;
|
|
186
|
+
lastName: string;
|
|
187
|
+
email: string;
|
|
188
|
+
cpf: Nullable<string>;
|
|
189
|
+
};
|
|
182
190
|
export interface ICarJSON {
|
|
183
191
|
search: IOfferSearch;
|
|
192
|
+
additionalDrivers: additionalDriver[];
|
|
184
193
|
pickup: {
|
|
185
194
|
date: string;
|
|
186
195
|
time: string;
|
|
@@ -199,64 +208,10 @@ export interface ICarJSON {
|
|
|
199
208
|
storeCode: number;
|
|
200
209
|
storeName: string;
|
|
201
210
|
};
|
|
202
|
-
carDetails:
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
features: {
|
|
207
|
-
abs: unknown;
|
|
208
|
-
air: boolean;
|
|
209
|
-
doors: number;
|
|
210
|
-
airbag: unknown;
|
|
211
|
-
baggages: unknown;
|
|
212
|
-
steering: unknown;
|
|
213
|
-
passengers: number;
|
|
214
|
-
transmission: string;
|
|
215
|
-
};
|
|
216
|
-
sippCode: string;
|
|
217
|
-
modelTitle: string;
|
|
218
|
-
modelDescription: string;
|
|
219
|
-
supplierCarGroupCode: string;
|
|
220
|
-
};
|
|
221
|
-
supplierInfo: {
|
|
222
|
-
id: number;
|
|
223
|
-
supplier: string;
|
|
224
|
-
};
|
|
225
|
-
rentalDetails: {
|
|
226
|
-
id: string;
|
|
227
|
-
logo: string;
|
|
228
|
-
name: string;
|
|
229
|
-
};
|
|
230
|
-
contractDetails: {
|
|
231
|
-
features: {
|
|
232
|
-
ali: boolean;
|
|
233
|
-
ldw: boolean;
|
|
234
|
-
unlimitedKm: boolean;
|
|
235
|
-
mandatoryDriverCreditCard: number;
|
|
236
|
-
};
|
|
237
|
-
feesInfo: any[];
|
|
238
|
-
dailyInfo: {
|
|
239
|
-
total: unknown;
|
|
240
|
-
discount: number;
|
|
241
|
-
netPrice: unknown;
|
|
242
|
-
quantity: unknown;
|
|
243
|
-
rawPrice: unknown;
|
|
244
|
-
};
|
|
245
|
-
extraHoursInfo: {
|
|
246
|
-
total: number;
|
|
247
|
-
discount: number;
|
|
248
|
-
netPrice: number;
|
|
249
|
-
quantity: number;
|
|
250
|
-
rawPrice: number;
|
|
251
|
-
};
|
|
252
|
-
finalPriceInfo: {
|
|
253
|
-
discount: number;
|
|
254
|
-
netTotal: number;
|
|
255
|
-
rawTotal: number;
|
|
256
|
-
};
|
|
257
|
-
additionalsInfo: any[];
|
|
258
|
-
freeCancelationUntil: Date;
|
|
259
|
-
};
|
|
211
|
+
carDetails: ISmCarDetails;
|
|
212
|
+
supplierInfo: ISmCarSupplierInfo;
|
|
213
|
+
rentalDetails: ISmCarRentalDetails;
|
|
214
|
+
contractDetails: ISmCarContractDetails;
|
|
260
215
|
}
|
|
261
216
|
export interface IFlightSearchMetadata {
|
|
262
217
|
average_price: number;
|