sm-types 1.9.4 → 1.9.6

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.js CHANGED
@@ -1,6 +1,107 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BookingConfirmationStatus = exports.CredentialTypeEnum = void 0;
3
+ exports.BookingConfirmationStatus = exports.CredentialTypeEnum = exports.OfferStatus = exports.ServiceType = exports.BookingStatus = exports.NavanStatus = exports.BookingFeeStatus = exports.EmailType = exports.IndicationStatus = exports.IndicationRewardStatus = exports.JustificationPolicy = exports.CabinClass = exports.DealOwnerEnum = exports.SuppliersEnum = exports.RentabilityTypeEnum = exports.TravelCustomFieldEnum = void 0;
4
+ var TravelCustomFieldEnum;
5
+ (function (TravelCustomFieldEnum) {
6
+ TravelCustomFieldEnum["TRIP_PURPOSE"] = "TRIP_PURPOSE";
7
+ TravelCustomFieldEnum["HOTEL_PURPOSE"] = "HOTEL_PURPOSE";
8
+ TravelCustomFieldEnum["FLIGHT_PURPOSE"] = "FLIGHT_PURPOSE";
9
+ })(TravelCustomFieldEnum = exports.TravelCustomFieldEnum || (exports.TravelCustomFieldEnum = {}));
10
+ var RentabilityTypeEnum;
11
+ (function (RentabilityTypeEnum) {
12
+ RentabilityTypeEnum["MARK_UP"] = "MARK_UP";
13
+ RentabilityTypeEnum["MARGIN"] = "MARGIN";
14
+ })(RentabilityTypeEnum = exports.RentabilityTypeEnum || (exports.RentabilityTypeEnum = {}));
15
+ var SuppliersEnum;
16
+ (function (SuppliersEnum) {
17
+ SuppliersEnum["SKYTEAM"] = "skyteam";
18
+ SuppliersEnum["AZUL"] = "azul";
19
+ SuppliersEnum["TTECH"] = "tech-travel";
20
+ })(SuppliersEnum = exports.SuppliersEnum || (exports.SuppliersEnum = {}));
21
+ var DealOwnerEnum;
22
+ (function (DealOwnerEnum) {
23
+ DealOwnerEnum["AGENCY"] = "AGENCY";
24
+ DealOwnerEnum["CUSTOMER"] = "CUSTOMER";
25
+ DealOwnerEnum["PUBLIC"] = "PUBLIC";
26
+ })(DealOwnerEnum = exports.DealOwnerEnum || (exports.DealOwnerEnum = {}));
27
+ var CabinClass;
28
+ (function (CabinClass) {
29
+ CabinClass["ECONOMY"] = "economy";
30
+ CabinClass["PREMIUM_ECONOMY"] = "premium_economy";
31
+ CabinClass["BUSINESS"] = "business";
32
+ CabinClass["FIRST"] = "first";
33
+ })(CabinClass = exports.CabinClass || (exports.CabinClass = {}));
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 = {}));
42
+ var IndicationRewardStatus;
43
+ (function (IndicationRewardStatus) {
44
+ IndicationRewardStatus["UNAVAILABLE"] = "UNAVAILABLE";
45
+ IndicationRewardStatus["ALMOST_READY"] = "ALMOST_READY";
46
+ IndicationRewardStatus["READY"] = "READY";
47
+ IndicationRewardStatus["RESERVED"] = "RESERVED";
48
+ IndicationRewardStatus["USED"] = "USED";
49
+ IndicationRewardStatus["DROPPED"] = "DROPPED";
50
+ })(IndicationRewardStatus = exports.IndicationRewardStatus || (exports.IndicationRewardStatus = {}));
51
+ var IndicationStatus;
52
+ (function (IndicationStatus) {
53
+ IndicationStatus["IN_NEGOTIATION"] = "IN_NEGOTIATION";
54
+ IndicationStatus["CONVERTED"] = "CONVERTED";
55
+ IndicationStatus["REWARD_REACHED"] = "REWARD_REACHED";
56
+ IndicationStatus["NOT_REACHED"] = "NOT_REACHED";
57
+ })(IndicationStatus = exports.IndicationStatus || (exports.IndicationStatus = {}));
58
+ var EmailType;
59
+ (function (EmailType) {
60
+ EmailType["INVITE_EVENT"] = "INVITE_EVENT";
61
+ EmailType["UPDATE_EVENT"] = "UPDATE_EVENT";
62
+ })(EmailType = exports.EmailType || (exports.EmailType = {}));
63
+ var BookingFeeStatus;
64
+ (function (BookingFeeStatus) {
65
+ BookingFeeStatus["NONE"] = "NONE";
66
+ BookingFeeStatus["UNITIATED"] = "UNITIATED";
67
+ BookingFeeStatus["PENDING"] = "PENDING";
68
+ BookingFeeStatus["PAID"] = "PAID";
69
+ BookingFeeStatus["FAILED"] = "FAILED";
70
+ })(BookingFeeStatus = exports.BookingFeeStatus || (exports.BookingFeeStatus = {}));
71
+ var NavanStatus;
72
+ (function (NavanStatus) {
73
+ NavanStatus["UNITIATED"] = "UNITIATED";
74
+ NavanStatus["EXPORTED"] = "EXPORTED";
75
+ NavanStatus["FAILED"] = "FAILED";
76
+ })(NavanStatus = exports.NavanStatus || (exports.NavanStatus = {}));
77
+ var BookingStatus;
78
+ (function (BookingStatus) {
79
+ BookingStatus["UNITIATED"] = "UNITIATED";
80
+ BookingStatus["PENDING"] = "PENDING";
81
+ BookingStatus["FAILED"] = "FAILED";
82
+ BookingStatus["DROPPED"] = "DROPPED";
83
+ BookingStatus["EMITTED"] = "EMITTED";
84
+ })(BookingStatus = exports.BookingStatus || (exports.BookingStatus = {}));
85
+ var ServiceType;
86
+ (function (ServiceType) {
87
+ ServiceType["FLIGHT"] = "flight";
88
+ ServiceType["HOTEL"] = "hotel";
89
+ ServiceType["CAR"] = "car";
90
+ ServiceType["BUS"] = "bus";
91
+ ServiceType["RIDE"] = "ride";
92
+ ServiceType["SMARTRIPS"] = "smartrips";
93
+ ServiceType["INSURANCE"] = "insurance";
94
+ })(ServiceType = exports.ServiceType || (exports.ServiceType = {}));
95
+ var OfferStatus;
96
+ (function (OfferStatus) {
97
+ OfferStatus["APPROVAL_DECLINED"] = "APPROVAL_DECLINED";
98
+ OfferStatus["BOOKING_FAILED"] = "BOOKING_FAILED";
99
+ OfferStatus["DRAFT"] = "DRAFT";
100
+ OfferStatus["BOOKING_PROCESSING"] = "BOOKING_PROCESSING";
101
+ OfferStatus["CANCELING"] = "CANCELING";
102
+ OfferStatus["EMITTED"] = "EMITTED";
103
+ OfferStatus["CANCELED"] = "CANCELED";
104
+ })(OfferStatus = exports.OfferStatus || (exports.OfferStatus = {}));
4
105
  var CredentialTypeEnum;
5
106
  (function (CredentialTypeEnum) {
6
107
  CredentialTypeEnum["AGENCY"] = "AGENCY";
package/errors/index.d.ts CHANGED
@@ -1 +1,26 @@
1
- export * as USER_ERRORS from './user';
1
+ export * as USER_ERRORS from "./user";
2
+ export declare const SUPPORT_ERROR_CODES: {
3
+ SUPPLIER_CONFIG_REPLICATION: {
4
+ MISSING_CONFIGS: {
5
+ usecase: string;
6
+ type: string;
7
+ messageLangMap: {
8
+ "PT-BR": string;
9
+ };
10
+ };
11
+ ALREADY_HAS_CONFIGS: {
12
+ usecase: string;
13
+ type: string;
14
+ messageLangMap: {
15
+ "PT-BR": string;
16
+ };
17
+ };
18
+ SUPPORT_USER_NOT_FOUND: {
19
+ usecase: string;
20
+ type: string;
21
+ messageLangMap: {
22
+ "PT-BR": string;
23
+ };
24
+ };
25
+ };
26
+ };
package/errors/index.js CHANGED
@@ -23,5 +23,30 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.USER_ERRORS = void 0;
26
+ exports.SUPPORT_ERROR_CODES = exports.USER_ERRORS = void 0;
27
27
  exports.USER_ERRORS = __importStar(require("./user"));
28
+ exports.SUPPORT_ERROR_CODES = {
29
+ SUPPLIER_CONFIG_REPLICATION: {
30
+ MISSING_CONFIGS: {
31
+ usecase: "SUPPLIER_CONFIG_REPLICATION",
32
+ type: "MISSING_CONFIGS",
33
+ messageLangMap: {
34
+ "PT-BR": "Perfil de cobrança selecionado deve ter todos os fornecedores configurados para ser replicado.",
35
+ },
36
+ },
37
+ ALREADY_HAS_CONFIGS: {
38
+ usecase: "SUPPLIER_CONFIG_REPLICATION",
39
+ type: "ALREADY_HAS_CONFIGS",
40
+ messageLangMap: {
41
+ "PT-BR": "Este perfil de cobrança já possui fornecedores configurados.",
42
+ },
43
+ },
44
+ SUPPORT_USER_NOT_FOUND: {
45
+ usecase: "SUPPLIER_CONFIG_REPLICATION",
46
+ type: "SUPPORT_USER_NOT_FOUND",
47
+ messageLangMap: {
48
+ "PT-BR": "Aconteceu um erro inesperado.",
49
+ },
50
+ },
51
+ },
52
+ };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Smartrips",
4
4
  "license": "ISC",
5
5
  "keywords": [],
6
- "version": "1.9.4",
6
+ "version": "1.9.6",
7
7
  "description": "",
8
8
  "repository": {
9
9
  "type": "git",