@eway-crm/connector 1.0.121 → 1.0.122

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.
Files changed (98) hide show
  1. package/lib/AnonymousSessionHandler.js +5 -10
  2. package/lib/ApiConnection.js +115 -129
  3. package/lib/ApiMethods.js +35 -40
  4. package/lib/CredentialsSessionHandler.js +22 -28
  5. package/lib/HttpMethod.js +2 -5
  6. package/lib/ISessionHandler.js +1 -2
  7. package/lib/OAuthSessionHandler.js +16 -39
  8. package/lib/OAuthSessionHandlerBase.js +30 -36
  9. package/lib/ReturnCodes.js +10 -15
  10. package/lib/axios/AxiosInstance.js +3 -5
  11. package/lib/constants/ActionEventTypes.js +9 -14
  12. package/lib/constants/ColumnPermissionRules.js +15 -22
  13. package/lib/constants/CompletionLevels.js +6 -11
  14. package/lib/constants/CustomizationStatsItemKeys.js +12 -17
  15. package/lib/constants/Edition.js +2 -5
  16. package/lib/constants/EnumTypes.js +33 -38
  17. package/lib/constants/ExpirationReason.js +1 -3
  18. package/lib/constants/Feature.js +2 -5
  19. package/lib/constants/FieldNames.js +421 -426
  20. package/lib/constants/FieldTypes.js +15 -20
  21. package/lib/constants/FolderNames.js +82 -87
  22. package/lib/constants/Functionality.js +55 -60
  23. package/lib/constants/GlobalSettingsNames.js +71 -76
  24. package/lib/constants/LicenseKeyInvoiceSeverity.js +1 -3
  25. package/lib/constants/LicenseRestrictionKeys.js +63 -68
  26. package/lib/constants/RelationTypes.js +11 -16
  27. package/lib/data/EWItem.js +29 -34
  28. package/lib/data/IApiAdditionalField.js +1 -2
  29. package/lib/data/IApiAvailableBundle.js +1 -2
  30. package/lib/data/IApiAvailableVersionResponse.js +1 -2
  31. package/lib/data/IApiBooleanResponse.js +1 -2
  32. package/lib/data/IApiCapacityAvailableBundle.js +1 -2
  33. package/lib/data/IApiCart.js +1 -2
  34. package/lib/data/IApiColumn.js +1 -2
  35. package/lib/data/IApiColumnPermission.js +1 -2
  36. package/lib/data/IApiCompany.js +1 -2
  37. package/lib/data/IApiContact.js +1 -2
  38. package/lib/data/IApiCurrencyExchangeRate.js +1 -2
  39. package/lib/data/IApiCustomizationStatsItem.js +1 -2
  40. package/lib/data/IApiDataResponse.js +1 -2
  41. package/lib/data/IApiDatumResponse.js +1 -2
  42. package/lib/data/IApiDocument.js +1 -2
  43. package/lib/data/IApiEmail.js +1 -2
  44. package/lib/data/IApiEnumType.js +2 -5
  45. package/lib/data/IApiEnumValue.js +1 -2
  46. package/lib/data/IApiEnumValuesRelation.js +1 -2
  47. package/lib/data/IApiFeature.js +1 -2
  48. package/lib/data/IApiFeaturesLicenseBundle.js +1 -2
  49. package/lib/data/IApiFlow.js +1 -2
  50. package/lib/data/IApiGlobalSetting.js +1 -2
  51. package/lib/data/IApiGoal.js +1 -2
  52. package/lib/data/IApiGood.js +1 -2
  53. package/lib/data/IApiGoodInCart.js +1 -2
  54. package/lib/data/IApiGroup.js +1 -2
  55. package/lib/data/IApiItemBase.js +1 -2
  56. package/lib/data/IApiItemIdentifier.js +1 -2
  57. package/lib/data/IApiItemUsageStatus.js +1 -2
  58. package/lib/data/IApiJournal.js +1 -2
  59. package/lib/data/IApiLead.js +1 -2
  60. package/lib/data/IApiLicense.js +1 -2
  61. package/lib/data/IApiLicenseBundleBase.js +1 -2
  62. package/lib/data/IApiLocalizedLicenseBundle.js +1 -2
  63. package/lib/data/IApiLoginResponse.js +1 -2
  64. package/lib/data/IApiMarketingCampaign.js +1 -2
  65. package/lib/data/IApiMarketingList.js +1 -2
  66. package/lib/data/IApiModulePermission.js +1 -2
  67. package/lib/data/IApiObjectType.js +1 -2
  68. package/lib/data/IApiPasswordStrength.js +1 -2
  69. package/lib/data/IApiPayment.js +1 -2
  70. package/lib/data/IApiProject.js +1 -2
  71. package/lib/data/IApiRecurrencePattern.js +1 -2
  72. package/lib/data/IApiResult.js +1 -2
  73. package/lib/data/IApiSaveResponse.js +1 -2
  74. package/lib/data/IApiTask.js +1 -2
  75. package/lib/data/IApiUser.js +1 -2
  76. package/lib/data/IApiUserSetting.js +1 -2
  77. package/lib/data/IApiWebServiceTaskStatus.js +1 -2
  78. package/lib/data/IApiWorkReport.js +1 -2
  79. package/lib/data/IApiWorkflowActionDerivedItem.js +1 -2
  80. package/lib/data/IApiWorkflowModel.js +1 -2
  81. package/lib/data/query/IApiQuery.js +1 -2
  82. package/lib/data/query/IApiQueryFilters.js +1 -2
  83. package/lib/data/workflowActions/IApiAction.js +1 -2
  84. package/lib/exceptions/HttpRequestError.js +6 -28
  85. package/lib/exceptions/WebServiceError.js +6 -28
  86. package/lib/helpers/ErrorHelper.js +15 -20
  87. package/lib/helpers/OAuthHelper.js +49 -54
  88. package/lib/helpers/VersionHelperBase.js +15 -20
  89. package/lib/index.js +83 -123
  90. package/lib/interfaces/IEWJwtPayload.js +1 -2
  91. package/lib/interfaces/IItemPreview.js +1 -2
  92. package/lib/interfaces/ITokenData.js +1 -2
  93. package/lib/interfaces/ITranslatableString.js +1 -2
  94. package/lib/interfaces/TNumericValidatorType.js +1 -2
  95. package/lib/tokenizedServices/CommonDataConnection.js +11 -17
  96. package/lib/tokenizedServices/ITokenizedApiResult.js +1 -2
  97. package/lib/tokenizedServices/TokenizedServiceConnection.js +53 -59
  98. package/package.json +1 -1
@@ -1,52 +1,29 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.OAuthSessionHandler = void 0;
19
- var _1 = require(".");
20
- var OAuthSessionHandlerBase_1 = require("./OAuthSessionHandlerBase");
21
- var OAuthSessionHandler = /** @class */ (function (_super) {
22
- __extends(OAuthSessionHandler, _super);
23
- function OAuthSessionHandler(username, clientId, clientSecret, refreshToken, accessToken, appVersion, errorCallback, refreshTokenCallback) {
24
- var _this = this;
1
+ import { OAuthHelper } from '.';
2
+ import { OAuthSessionHandlerBase } from './OAuthSessionHandlerBase';
3
+ export class OAuthSessionHandler extends OAuthSessionHandlerBase {
4
+ constructor(username, clientId, clientSecret, refreshToken, accessToken, appVersion, errorCallback, refreshTokenCallback) {
25
5
  if (!username || !refreshToken || !clientId || !clientSecret) {
26
6
  throw new Error("Non of the arguments 'username', 'clientId', 'clientSecret', 'refreshToken' can be empty.");
27
7
  }
28
- var getNewAccessToken = function (connection, callback) {
29
- _1.OAuthHelper.refreshToken(connection.wsUrl, _this.clientId, _this.clientSecret, _this.refreshToken, function (tokenData) {
8
+ const getNewAccessToken = (connection, callback) => {
9
+ OAuthHelper.refreshToken(connection.wsUrl, this.clientId, this.clientSecret, this.refreshToken, (tokenData) => {
30
10
  try {
31
- if (_this.refreshTokenCallback) {
32
- _this.refreshTokenCallback(tokenData);
11
+ if (this.refreshTokenCallback) {
12
+ this.refreshTokenCallback(tokenData);
33
13
  }
34
14
  }
35
15
  catch (error) {
36
- if (_this.errorCallback) {
37
- _this.errorCallback(new Error('Refresh token callback failed.\n' + JSON.stringify(error)));
16
+ if (this.errorCallback) {
17
+ this.errorCallback(new Error('Refresh token callback failed.\n' + JSON.stringify(error)));
38
18
  }
39
19
  }
40
20
  callback(tokenData.access_token, tokenData.error);
41
21
  });
42
22
  };
43
- _this = _super.call(this, username, accessToken, appVersion, getNewAccessToken, errorCallback) || this;
44
- _this.refreshToken = refreshToken;
45
- _this.clientId = clientId;
46
- _this.clientSecret = clientSecret;
47
- _this.refreshTokenCallback = refreshTokenCallback;
48
- return _this;
23
+ super(username, accessToken, appVersion, getNewAccessToken, errorCallback);
24
+ this.refreshToken = refreshToken;
25
+ this.clientId = clientId;
26
+ this.clientSecret = clientSecret;
27
+ this.refreshTokenCallback = refreshTokenCallback;
49
28
  }
50
- return OAuthSessionHandler;
51
- }(OAuthSessionHandlerBase_1.OAuthSessionHandlerBase));
52
- exports.OAuthSessionHandler = OAuthSessionHandler;
29
+ }
@@ -1,25 +1,21 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OAuthSessionHandlerBase = void 0;
4
- var _1 = require(".");
5
- var WebServiceError_1 = require("./exceptions/WebServiceError");
6
- var OAuthSessionHandlerBase = /** @class */ (function () {
7
- function OAuthSessionHandlerBase(username, accessToken, appVersion, getNewAccessTokenCallback, errorCallback) {
8
- var _this = this;
9
- this.invalidateSessionId = function (_, callback) {
1
+ import { ApiMethods } from '.';
2
+ import { WebServiceError } from './exceptions/WebServiceError';
3
+ export class OAuthSessionHandlerBase {
4
+ constructor(username, accessToken, appVersion, getNewAccessTokenCallback, errorCallback) {
5
+ this.invalidateSessionId = (_, callback) => {
10
6
  // Nothing to invalidate.
11
7
  if (callback) {
12
8
  callback();
13
9
  }
14
10
  };
15
- this.getSessionId = function (connection, callback) {
16
- var successCallbackHandler = function (result) {
17
- _this.lastSuccessfulLoginResponse = result;
18
- var newSessionId = result.SessionId;
11
+ this.getSessionId = (connection, callback) => {
12
+ const successCallbackHandler = (result) => {
13
+ this.lastSuccessfulLoginResponse = result;
14
+ const newSessionId = result.SessionId;
19
15
  if (!newSessionId) {
20
- var error = new Error('Successful login but no session came.');
21
- if (_this.errorCallback) {
22
- _this.errorCallback(error);
16
+ const error = new Error('Successful login but no session came.');
17
+ if (this.errorCallback) {
18
+ this.errorCallback(error);
23
19
  }
24
20
  else {
25
21
  throw error;
@@ -30,38 +26,38 @@ var OAuthSessionHandlerBase = /** @class */ (function () {
30
26
  callback(newSessionId);
31
27
  }
32
28
  };
33
- var unsuccessCallbackHandler = function (result) {
34
- var error = new WebServiceError_1.WebServiceError(result.ReturnCode, 'Unable to login. Error response follows.\n' + JSON.stringify(result));
35
- if (_this.errorCallback) {
36
- _this.errorCallback(error);
29
+ const unsuccessCallbackHandler = (result) => {
30
+ const error = new WebServiceError(result.ReturnCode, 'Unable to login. Error response follows.\n' + JSON.stringify(result));
31
+ if (this.errorCallback) {
32
+ this.errorCallback(error);
37
33
  }
38
34
  else {
39
35
  throw error;
40
36
  }
41
37
  };
42
- var errorCallbackHandler = function (error) {
38
+ const errorCallbackHandler = (error) => {
43
39
  if ((error === null || error === void 0 ? void 0 : error.statusCode) === 401) {
44
- _this.getNewAccessTokenCallback(connection, function (accessToken, error) {
45
- _this.accessToken = accessToken;
40
+ this.getNewAccessTokenCallback(connection, (accessToken, error) => {
41
+ this.accessToken = accessToken;
46
42
  if (!error) {
47
- _this.getSessionId(connection, callback);
43
+ this.getSessionId(connection, callback);
48
44
  }
49
45
  });
50
46
  return;
51
47
  }
52
- if (!_this.errorCallback)
48
+ if (!this.errorCallback)
53
49
  throw error;
54
- _this.errorCallback(error);
50
+ this.errorCallback(error);
55
51
  };
56
- var loginInputData = {
57
- userName: _this.username,
58
- appVersion: _this.appVersion,
52
+ const loginInputData = {
53
+ userName: this.username,
54
+ appVersion: this.appVersion,
59
55
  createSessionCookie: connection.supportsGetItemPreviewMethod
60
56
  };
61
- var loginHeaders = {
62
- 'Authorization': 'Bearer ' + _this.accessToken
57
+ const loginHeaders = {
58
+ 'Authorization': 'Bearer ' + this.accessToken
63
59
  };
64
- connection.callWithoutSession(_1.ApiMethods.logIn, loginInputData, successCallbackHandler, unsuccessCallbackHandler, loginHeaders, undefined, errorCallbackHandler);
60
+ connection.callWithoutSession(ApiMethods.logIn, loginInputData, successCallbackHandler, unsuccessCallbackHandler, loginHeaders, undefined, errorCallbackHandler);
65
61
  };
66
62
  if (!username) {
67
63
  throw new Error("Non of the arguments 'username', 'clientId', 'clientSecret', 'refreshToken' can be empty.");
@@ -72,7 +68,5 @@ var OAuthSessionHandlerBase = /** @class */ (function () {
72
68
  this.getNewAccessTokenCallback = getNewAccessTokenCallback;
73
69
  this.errorCallback = errorCallback;
74
70
  }
75
- return OAuthSessionHandlerBase;
76
- }());
77
- exports.OAuthSessionHandlerBase = OAuthSessionHandlerBase;
78
- exports.default = OAuthSessionHandlerBase;
71
+ }
72
+ export default OAuthSessionHandlerBase;
@@ -1,15 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReturnCodes = void 0;
4
- var ReturnCodes = exports.ReturnCodes = /** @class */ (function () {
5
- function ReturnCodes() {
6
- }
7
- ReturnCodes.rcSuccess = 'rcSuccess';
8
- ReturnCodes.rcBadSession = 'rcBadSession';
9
- ReturnCodes.rcDuplicateContact = 'rcDuplicateContact';
10
- ReturnCodes.rcWebServiceMoved = 'rcWebServiceMoved';
11
- ReturnCodes.rcAccessDenied = 'rcAccessDenied';
12
- ReturnCodes.rcLoginUserNameChanged = 'rcLoginUserNameChanged';
13
- ReturnCodes.rcLicenseExpired = 'rcLicenseExpired';
14
- return ReturnCodes;
15
- }());
1
+ class ReturnCodes {
2
+ }
3
+ ReturnCodes.rcSuccess = 'rcSuccess';
4
+ ReturnCodes.rcBadSession = 'rcBadSession';
5
+ ReturnCodes.rcDuplicateContact = 'rcDuplicateContact';
6
+ ReturnCodes.rcWebServiceMoved = 'rcWebServiceMoved';
7
+ ReturnCodes.rcAccessDenied = 'rcAccessDenied';
8
+ ReturnCodes.rcLoginUserNameChanged = 'rcLoginUserNameChanged';
9
+ ReturnCodes.rcLicenseExpired = 'rcLicenseExpired';
10
+ export { ReturnCodes };
@@ -1,5 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var axios_1 = require("axios");
4
- var axiosInstance = axios_1.default.create();
5
- exports.default = axiosInstance;
1
+ import Axios from 'axios';
2
+ const axiosInstance = Axios.create();
3
+ export default axiosInstance;
@@ -1,14 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var ActionEventTypes = /** @class */ (function () {
4
- function ActionEventTypes() {
5
- }
6
- ActionEventTypes.onValueChanging = 'OnValueChanging';
7
- ActionEventTypes.onValueChanged = 'OnValueChanged';
8
- ActionEventTypes.onSaving = 'OnSaving';
9
- ActionEventTypes.onSaved = 'OnSaved';
10
- ActionEventTypes.onLoad = 'OnLoad';
11
- ActionEventTypes.onLoading = 'OnLoading';
12
- return ActionEventTypes;
13
- }());
14
- exports.default = ActionEventTypes;
1
+ class ActionEventTypes {
2
+ }
3
+ ActionEventTypes.onValueChanging = 'OnValueChanging';
4
+ ActionEventTypes.onValueChanged = 'OnValueChanged';
5
+ ActionEventTypes.onSaving = 'OnSaving';
6
+ ActionEventTypes.onSaved = 'OnSaved';
7
+ ActionEventTypes.onLoad = 'OnLoad';
8
+ ActionEventTypes.onLoading = 'OnLoading';
9
+ export default ActionEventTypes;
@@ -1,22 +1,15 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ColumnPermissionMandatoryRules = exports.ColumnPermissionPermissionRules = void 0;
4
- var ColumnPermissionPermissionRules = exports.ColumnPermissionPermissionRules = /** @class */ (function () {
5
- function ColumnPermissionPermissionRules() {
6
- }
7
- ColumnPermissionPermissionRules.all = 'All';
8
- ColumnPermissionPermissionRules.own = 'Own';
9
- ColumnPermissionPermissionRules.readonly = 'Readonly';
10
- ColumnPermissionPermissionRules.invisible = 'Invisible';
11
- ColumnPermissionPermissionRules.none = 'None';
12
- return ColumnPermissionPermissionRules;
13
- }());
14
- var ColumnPermissionMandatoryRules = exports.ColumnPermissionMandatoryRules = /** @class */ (function () {
15
- function ColumnPermissionMandatoryRules() {
16
- }
17
- ColumnPermissionMandatoryRules.mandatory = 'Mandatory';
18
- ColumnPermissionMandatoryRules.optional = 'Optional';
19
- ColumnPermissionMandatoryRules.unique = 'Unique';
20
- ColumnPermissionMandatoryRules.none = 'None';
21
- return ColumnPermissionMandatoryRules;
22
- }());
1
+ class ColumnPermissionPermissionRules {
2
+ }
3
+ ColumnPermissionPermissionRules.all = 'All';
4
+ ColumnPermissionPermissionRules.own = 'Own';
5
+ ColumnPermissionPermissionRules.readonly = 'Readonly';
6
+ ColumnPermissionPermissionRules.invisible = 'Invisible';
7
+ ColumnPermissionPermissionRules.none = 'None';
8
+ export { ColumnPermissionPermissionRules };
9
+ class ColumnPermissionMandatoryRules {
10
+ }
11
+ ColumnPermissionMandatoryRules.mandatory = 'Mandatory';
12
+ ColumnPermissionMandatoryRules.optional = 'Optional';
13
+ ColumnPermissionMandatoryRules.unique = 'Unique';
14
+ ColumnPermissionMandatoryRules.none = 'None';
15
+ export { ColumnPermissionMandatoryRules };
@@ -1,11 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var CompletionLevels = /** @class */ (function () {
4
- function CompletionLevels() {
5
- }
6
- CompletionLevels.doNothing = 'DoNothing';
7
- CompletionLevels.canIgnore = 'CanIgnore';
8
- CompletionLevels.cannotIgnore = 'CannotIgnore';
9
- return CompletionLevels;
10
- }());
11
- exports.default = CompletionLevels;
1
+ class CompletionLevels {
2
+ }
3
+ CompletionLevels.doNothing = 'DoNothing';
4
+ CompletionLevels.canIgnore = 'CanIgnore';
5
+ CompletionLevels.cannotIgnore = 'CannotIgnore';
6
+ export default CompletionLevels;
@@ -1,17 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var CustomizationStatsItemKeys = /** @class */ (function () {
4
- function CustomizationStatsItemKeys() {
5
- }
6
- CustomizationStatsItemKeys.customAdditionalFieldsCount = 'CustomAdditionalFieldsCount';
7
- CustomizationStatsItemKeys.customEnabledAdvancedWorkflowsCount = 'CustomEnabledAdvancedWorkflowsCount';
8
- CustomizationStatsItemKeys.customEnabledBasicWorkflowsCount = 'CustomEnabledBasicWorkflowsCount';
9
- CustomizationStatsItemKeys.customMandatoryFieldsCount = 'CustomMandatoryFieldsCount';
10
- CustomizationStatsItemKeys.customOptionalFieldsCount = 'CustomOptionalFieldsCount';
11
- CustomizationStatsItemKeys.customReadonlyFieldsCount = 'CustomReadonlyFieldsCount';
12
- CustomizationStatsItemKeys.customUniqueFieldsCount = 'CustomUniqueFieldsCount';
13
- CustomizationStatsItemKeys.customVisibleTypesCount = 'CustomVisibleTypesCount';
14
- CustomizationStatsItemKeys.visibleCurrenciesCount = 'VisibleCurrenciesCount';
15
- return CustomizationStatsItemKeys;
16
- }());
17
- exports.default = CustomizationStatsItemKeys;
1
+ class CustomizationStatsItemKeys {
2
+ }
3
+ CustomizationStatsItemKeys.customAdditionalFieldsCount = 'CustomAdditionalFieldsCount';
4
+ CustomizationStatsItemKeys.customEnabledAdvancedWorkflowsCount = 'CustomEnabledAdvancedWorkflowsCount';
5
+ CustomizationStatsItemKeys.customEnabledBasicWorkflowsCount = 'CustomEnabledBasicWorkflowsCount';
6
+ CustomizationStatsItemKeys.customMandatoryFieldsCount = 'CustomMandatoryFieldsCount';
7
+ CustomizationStatsItemKeys.customOptionalFieldsCount = 'CustomOptionalFieldsCount';
8
+ CustomizationStatsItemKeys.customReadonlyFieldsCount = 'CustomReadonlyFieldsCount';
9
+ CustomizationStatsItemKeys.customUniqueFieldsCount = 'CustomUniqueFieldsCount';
10
+ CustomizationStatsItemKeys.customVisibleTypesCount = 'CustomVisibleTypesCount';
11
+ CustomizationStatsItemKeys.visibleCurrenciesCount = 'VisibleCurrenciesCount';
12
+ export default CustomizationStatsItemKeys;
@@ -1,10 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Edition = void 0;
4
- var Edition;
1
+ export var Edition;
5
2
  (function (Edition) {
6
3
  Edition["Free"] = "Free";
7
4
  Edition["Basic"] = "Basic";
8
5
  Edition["Professional"] = "Professional";
9
6
  Edition["Enterprise"] = "Enterprise";
10
- })(Edition = exports.Edition || (exports.Edition = {}));
7
+ })(Edition || (Edition = {}));
@@ -1,38 +1,33 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var EnumTypes = /** @class */ (function () {
4
- function EnumTypes() {
5
- }
6
- EnumTypes.bonusType = 'BonusType';
7
- EnumTypes.busyStatus = 'BusyStatus';
8
- EnumTypes.cartType = 'CartType';
9
- EnumTypes.companyType = 'CompanyType';
10
- EnumTypes.contactType = 'ContactType';
11
- EnumTypes.countryCode = 'CountryCode';
12
- EnumTypes.customFieldCategory = 'CustomFieldCategory';
13
- EnumTypes.documentOfflineState = 'DocumentOfflineState';
14
- EnumTypes.documentType = 'DocumentType';
15
- EnumTypes.emailOfflineState = 'EmailOfflineState';
16
- EnumTypes.emailType = 'EmailType';
17
- EnumTypes.globalSettingsCategory = 'GlobalSettingsCategory';
18
- EnumTypes.goalType = 'GoalType';
19
- EnumTypes.journalType = 'JournalType';
20
- EnumTypes.knowledgeType = 'KnowledgeType';
21
- EnumTypes.leadType = 'LeadType';
22
- EnumTypes.marketingType = 'MarketingType';
23
- EnumTypes.paymentType = 'PaymentType';
24
- EnumTypes.prefixType = 'PrefixType';
25
- EnumTypes.productType = 'ProductType';
26
- EnumTypes.projectType = 'ProjectType';
27
- EnumTypes.salaryType = 'SalaryType';
28
- EnumTypes.salePriceType = 'SalePriceType';
29
- EnumTypes.suffixType = 'SuffixType';
30
- EnumTypes.taskType = 'TaskType';
31
- EnumTypes.trainingTitle = 'TrainingTitle';
32
- EnumTypes.userType = 'UserType';
33
- EnumTypes.usStatesDistrictsTerritories = 'USStatesDistrictsTerritories';
34
- EnumTypes.vacationType = 'VacationType';
35
- EnumTypes.workReportType = 'WorkReportType';
36
- return EnumTypes;
37
- }());
38
- exports.default = EnumTypes;
1
+ class EnumTypes {
2
+ }
3
+ EnumTypes.bonusType = 'BonusType';
4
+ EnumTypes.busyStatus = 'BusyStatus';
5
+ EnumTypes.cartType = 'CartType';
6
+ EnumTypes.companyType = 'CompanyType';
7
+ EnumTypes.contactType = 'ContactType';
8
+ EnumTypes.countryCode = 'CountryCode';
9
+ EnumTypes.customFieldCategory = 'CustomFieldCategory';
10
+ EnumTypes.documentOfflineState = 'DocumentOfflineState';
11
+ EnumTypes.documentType = 'DocumentType';
12
+ EnumTypes.emailOfflineState = 'EmailOfflineState';
13
+ EnumTypes.emailType = 'EmailType';
14
+ EnumTypes.globalSettingsCategory = 'GlobalSettingsCategory';
15
+ EnumTypes.goalType = 'GoalType';
16
+ EnumTypes.journalType = 'JournalType';
17
+ EnumTypes.knowledgeType = 'KnowledgeType';
18
+ EnumTypes.leadType = 'LeadType';
19
+ EnumTypes.marketingType = 'MarketingType';
20
+ EnumTypes.paymentType = 'PaymentType';
21
+ EnumTypes.prefixType = 'PrefixType';
22
+ EnumTypes.productType = 'ProductType';
23
+ EnumTypes.projectType = 'ProjectType';
24
+ EnumTypes.salaryType = 'SalaryType';
25
+ EnumTypes.salePriceType = 'SalePriceType';
26
+ EnumTypes.suffixType = 'SuffixType';
27
+ EnumTypes.taskType = 'TaskType';
28
+ EnumTypes.trainingTitle = 'TrainingTitle';
29
+ EnumTypes.userType = 'UserType';
30
+ EnumTypes.usStatesDistrictsTerritories = 'USStatesDistrictsTerritories';
31
+ EnumTypes.vacationType = 'VacationType';
32
+ EnumTypes.workReportType = 'WorkReportType';
33
+ export default EnumTypes;
@@ -1,5 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  var ExpirationReason;
4
2
  (function (ExpirationReason) {
5
3
  ExpirationReason["UnpaidImportantInvoices"] = "UnpaidImportantInvoices";
@@ -7,4 +5,4 @@ var ExpirationReason;
7
5
  ExpirationReason["UncollectableSubscriptionPaymentWithExpiredCard"] = "UncollectableSubscriptionPaymentWithExpiredCard";
8
6
  ExpirationReason["StandardSubscriptionPeriod"] = "StandardSubscriptionPeriod";
9
7
  })(ExpirationReason || (ExpirationReason = {}));
10
- exports.default = ExpirationReason;
8
+ export default ExpirationReason;
@@ -1,10 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Feature = void 0;
4
- var Feature;
1
+ export var Feature;
5
2
  (function (Feature) {
6
3
  Feature["ContactsAndCompanies"] = "ContactsAndCompanies";
7
4
  Feature["Sales"] = "Sales";
8
5
  Feature["Projects"] = "Projects";
9
6
  Feature["Marketing"] = "Marketing";
10
- })(Feature = exports.Feature || (exports.Feature = {}));
7
+ })(Feature || (Feature = {}));