sm-types 1.11.62 → 1.11.64
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 +23 -0
- package/common/index.js +12 -1
- package/package.json +1 -1
- package/sm-airlines/dtos/response.d.ts +2 -1
package/common/index.d.ts
CHANGED
|
@@ -21,6 +21,15 @@ export declare enum FieldVisibility {
|
|
|
21
21
|
OPTIONAL = "OPTIONAL",
|
|
22
22
|
REQUIRED = "REQUIRED"
|
|
23
23
|
}
|
|
24
|
+
export declare enum InsuranceSelectionPreference {
|
|
25
|
+
NONE = "NONE",
|
|
26
|
+
REQUIRED = "REQUIRED"
|
|
27
|
+
}
|
|
28
|
+
export declare enum InsuranceTypePreference {
|
|
29
|
+
TOTAL = "TOTAL",
|
|
30
|
+
NONE = "NONE",
|
|
31
|
+
WINDOW_AND_TIRES = "WINDOW_AND_TIRES"
|
|
32
|
+
}
|
|
24
33
|
export type ConfigOptions = {
|
|
25
34
|
travels: {
|
|
26
35
|
homePageWarning?: string;
|
|
@@ -40,6 +49,20 @@ export type ConfigOptions = {
|
|
|
40
49
|
refund: AmenitiesPreference;
|
|
41
50
|
};
|
|
42
51
|
};
|
|
52
|
+
cars?: {
|
|
53
|
+
localiza_additional_preferences: {
|
|
54
|
+
insurance: {
|
|
55
|
+
selection: InsuranceSelectionPreference;
|
|
56
|
+
type: InsuranceTypePreference;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
movida_additional_preferences: {
|
|
60
|
+
insurance: {
|
|
61
|
+
selection: InsuranceSelectionPreference;
|
|
62
|
+
type: InsuranceTypePreference;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
43
66
|
};
|
|
44
67
|
export declare enum AmenitiesPreference {
|
|
45
68
|
NONE = "NONE",
|
package/common/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.CABIN_CLASS_TYPES = exports.TravelerSelection = exports.AmenitiesPreference = exports.FieldVisibility = void 0;
|
|
17
|
+
exports.CABIN_CLASS_TYPES = exports.TravelerSelection = exports.AmenitiesPreference = exports.InsuranceTypePreference = exports.InsuranceSelectionPreference = exports.FieldVisibility = void 0;
|
|
18
18
|
__exportStar(require("./enums"), exports);
|
|
19
19
|
var FieldVisibility;
|
|
20
20
|
(function (FieldVisibility) {
|
|
@@ -22,6 +22,17 @@ var FieldVisibility;
|
|
|
22
22
|
FieldVisibility["OPTIONAL"] = "OPTIONAL";
|
|
23
23
|
FieldVisibility["REQUIRED"] = "REQUIRED";
|
|
24
24
|
})(FieldVisibility = exports.FieldVisibility || (exports.FieldVisibility = {}));
|
|
25
|
+
var InsuranceSelectionPreference;
|
|
26
|
+
(function (InsuranceSelectionPreference) {
|
|
27
|
+
InsuranceSelectionPreference["NONE"] = "NONE";
|
|
28
|
+
InsuranceSelectionPreference["REQUIRED"] = "REQUIRED";
|
|
29
|
+
})(InsuranceSelectionPreference = exports.InsuranceSelectionPreference || (exports.InsuranceSelectionPreference = {}));
|
|
30
|
+
var InsuranceTypePreference;
|
|
31
|
+
(function (InsuranceTypePreference) {
|
|
32
|
+
InsuranceTypePreference["TOTAL"] = "TOTAL";
|
|
33
|
+
InsuranceTypePreference["NONE"] = "NONE";
|
|
34
|
+
InsuranceTypePreference["WINDOW_AND_TIRES"] = "WINDOW_AND_TIRES";
|
|
35
|
+
})(InsuranceTypePreference = exports.InsuranceTypePreference || (exports.InsuranceTypePreference = {}));
|
|
25
36
|
var AmenitiesPreference;
|
|
26
37
|
(function (AmenitiesPreference) {
|
|
27
38
|
AmenitiesPreference["NONE"] = "NONE";
|
package/package.json
CHANGED
|
@@ -25,12 +25,13 @@ export interface IAddOfferResDto {
|
|
|
25
25
|
}
|
|
26
26
|
export declare type IGetOfferDetailsResDto = ISmAzulOffer | ISmWcfOffer | SmAmadeusOffer;
|
|
27
27
|
export interface IRefreshAvailabilityResDto {
|
|
28
|
+
couldCheck: boolean;
|
|
28
29
|
availability: boolean;
|
|
29
30
|
reservedUntil?: Date;
|
|
30
31
|
currentPrice: number;
|
|
31
32
|
selectedPrice: number;
|
|
32
33
|
isSamePrice: boolean;
|
|
33
|
-
refreshedOffer
|
|
34
|
+
refreshedOffer?: ISmWcfOffer;
|
|
34
35
|
stillReserved: boolean;
|
|
35
36
|
}
|
|
36
37
|
export interface IReplaceOfferResDto {
|