sm-types 1.7.6 → 1.7.8

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/enums.d.ts CHANGED
@@ -23,8 +23,10 @@ export declare enum CabinClass {
23
23
  BUSINESS = "business",
24
24
  FIRST = "first"
25
25
  }
26
- export declare enum PolicyWarning {
27
- REASON_REQUIRED = "REASON_REQUIRED",
28
- VISIBLE = "VISIBLE",
29
- DISABLED = "DISABLED"
26
+ export declare enum JustificationPolicy {
27
+ ALWAYS = "ALWAYS",
28
+ OUTSIDE_POLICY = "OUTSIDE_POLICY",
29
+ ALWAYS_ON_APPROVAL = "ALWAYS_ON_APPROVAL",
30
+ OUTSIDE_POLICY_ON_APPROVAL = "OUTSIDE_POLICY_ON_APPROVAL",
31
+ NEVER = "NEVER"
30
32
  }
package/common/enums.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PolicyWarning = exports.CabinClass = exports.DealOwnerEnum = exports.SuppliersEnum = exports.RentabilityTypeEnum = exports.TravelCustomFieldEnum = void 0;
3
+ exports.JustificationPolicy = exports.CabinClass = exports.DealOwnerEnum = exports.SuppliersEnum = exports.RentabilityTypeEnum = exports.TravelCustomFieldEnum = void 0;
4
4
  var TravelCustomFieldEnum;
5
5
  (function (TravelCustomFieldEnum) {
6
6
  TravelCustomFieldEnum["TRIP_PURPOSE"] = "TRIP_PURPOSE";
@@ -31,9 +31,11 @@ var CabinClass;
31
31
  CabinClass["BUSINESS"] = "business";
32
32
  CabinClass["FIRST"] = "first";
33
33
  })(CabinClass = exports.CabinClass || (exports.CabinClass = {}));
34
- var PolicyWarning;
35
- (function (PolicyWarning) {
36
- PolicyWarning["REASON_REQUIRED"] = "REASON_REQUIRED";
37
- PolicyWarning["VISIBLE"] = "VISIBLE";
38
- PolicyWarning["DISABLED"] = "DISABLED";
39
- })(PolicyWarning = exports.PolicyWarning || (exports.PolicyWarning = {}));
34
+ var JustificationPolicy;
35
+ (function (JustificationPolicy) {
36
+ JustificationPolicy["ALWAYS"] = "ALWAYS";
37
+ JustificationPolicy["OUTSIDE_POLICY"] = "OUTSIDE_POLICY";
38
+ JustificationPolicy["ALWAYS_ON_APPROVAL"] = "ALWAYS_ON_APPROVAL";
39
+ JustificationPolicy["OUTSIDE_POLICY_ON_APPROVAL"] = "OUTSIDE_POLICY_ON_APPROVAL";
40
+ JustificationPolicy["NEVER"] = "NEVER";
41
+ })(JustificationPolicy = exports.JustificationPolicy || (exports.JustificationPolicy = {}));
package/common/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CabinClass } from './enums';
1
+ import { CabinClass, JustificationPolicy } from './enums';
2
2
  import * as SharedTypes from './shared';
3
3
  export * from './enums';
4
4
  export interface IPaymentMethod {
@@ -15,6 +15,7 @@ export interface IPaymentMethod {
15
15
  export type ConfigOptions = {
16
16
  travels: {
17
17
  homePageWarning?: string;
18
+ justificationPolicy?: JustificationPolicy;
18
19
  };
19
20
  flights: {
20
21
  samePlaneLimit: number;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Smartrips",
4
4
  "license": "ISC",
5
5
  "keywords": [],
6
- "version": "1.7.6",
6
+ "version": "1.7.8",
7
7
  "description": "",
8
8
  "repository": {
9
9
  "type": "git",