sm-types 1.11.39 → 1.11.41
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 +22 -6
- package/common/index.js +11 -5
- package/package.json +1 -1
package/common/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ISmCarContractDetails, ISmCarDetails, ISmCarRentalDetails, ISmCarSupplierInfo } from
|
|
2
|
-
import { EventPrivacy } from
|
|
3
|
-
import { IRailTrip } from
|
|
4
|
-
import { CabinClass, JustificationPolicy } from
|
|
5
|
-
import * as SharedTypes from
|
|
6
|
-
export * from
|
|
1
|
+
import { ISmCarContractDetails, ISmCarDetails, ISmCarRentalDetails, ISmCarSupplierInfo } from "../sm-car-rentals";
|
|
2
|
+
import { EventPrivacy } from "../sm-company-events/enums";
|
|
3
|
+
import { IRailTrip } from "../sm-rails";
|
|
4
|
+
import { CabinClass, JustificationPolicy } from "./enums";
|
|
5
|
+
import * as SharedTypes from "./shared";
|
|
6
|
+
export * from "./enums";
|
|
7
7
|
export type Nullable<T> = T | null;
|
|
8
8
|
export interface IPaymentMethod {
|
|
9
9
|
holderName?: string;
|
|
@@ -16,15 +16,31 @@ export interface IPaymentMethod {
|
|
|
16
16
|
cardType?: string;
|
|
17
17
|
payment_type: SharedTypes.PaymentMethodType;
|
|
18
18
|
}
|
|
19
|
+
export declare enum FieldVisibility {
|
|
20
|
+
NONE = "NONE",
|
|
21
|
+
OPTIONAL = "OPTIONAL",
|
|
22
|
+
REQUIRED = "REQUIRED"
|
|
23
|
+
}
|
|
19
24
|
export type ConfigOptions = {
|
|
20
25
|
travels: {
|
|
21
26
|
homePageWarning?: string;
|
|
22
27
|
justificationPolicy?: JustificationPolicy;
|
|
28
|
+
tripPurpose: FieldVisibility;
|
|
29
|
+
flightPurpose: FieldVisibility;
|
|
30
|
+
hotelPurpose: FieldVisibility;
|
|
23
31
|
};
|
|
24
32
|
flights: {
|
|
25
33
|
samePlaneLimit: number;
|
|
26
34
|
allowedClasses: CabinClass[];
|
|
27
35
|
};
|
|
36
|
+
individualCreditCards: {
|
|
37
|
+
bus: boolean;
|
|
38
|
+
car: boolean;
|
|
39
|
+
flight: boolean;
|
|
40
|
+
hotel: boolean;
|
|
41
|
+
other: boolean;
|
|
42
|
+
ride: boolean;
|
|
43
|
+
};
|
|
28
44
|
};
|
|
29
45
|
export declare const CABIN_CLASS_TYPES: {
|
|
30
46
|
readonly ECONOMY: {
|
package/common/index.js
CHANGED
|
@@ -14,11 +14,17 @@ 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 = void 0;
|
|
17
|
+
exports.CABIN_CLASS_TYPES = exports.FieldVisibility = void 0;
|
|
18
18
|
__exportStar(require("./enums"), exports);
|
|
19
|
+
var FieldVisibility;
|
|
20
|
+
(function (FieldVisibility) {
|
|
21
|
+
FieldVisibility["NONE"] = "NONE";
|
|
22
|
+
FieldVisibility["OPTIONAL"] = "OPTIONAL";
|
|
23
|
+
FieldVisibility["REQUIRED"] = "REQUIRED";
|
|
24
|
+
})(FieldVisibility = exports.FieldVisibility || (exports.FieldVisibility = {}));
|
|
19
25
|
exports.CABIN_CLASS_TYPES = {
|
|
20
|
-
ECONOMY: { name:
|
|
21
|
-
PREMIUM_ECONOMY: { name:
|
|
22
|
-
BUSINESS: { name:
|
|
23
|
-
FIRST: { name:
|
|
26
|
+
ECONOMY: { name: "Econômica", value: "economy" },
|
|
27
|
+
PREMIUM_ECONOMY: { name: "Econômica premium", value: "premium_economy" },
|
|
28
|
+
BUSINESS: { name: "Business", value: "business" },
|
|
29
|
+
FIRST: { name: "Primeira classe", value: "first" },
|
|
24
30
|
};
|