@eway-crm/connector 1.0.121 → 1.0.123
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/lib/AnonymousSessionHandler.js +5 -10
- package/lib/ApiConnection.js +115 -129
- package/lib/ApiMethods.js +35 -40
- package/lib/CredentialsSessionHandler.js +22 -28
- package/lib/HttpMethod.js +2 -5
- package/lib/ISessionHandler.js +1 -2
- package/lib/OAuthSessionHandler.js +16 -39
- package/lib/OAuthSessionHandlerBase.js +30 -36
- package/lib/ReturnCodes.js +10 -15
- package/lib/axios/AxiosInstance.js +3 -5
- package/lib/constants/ActionEventTypes.js +9 -14
- package/lib/constants/ColumnPermissionRules.js +15 -22
- package/lib/constants/CompletionLevels.js +6 -11
- package/lib/constants/CustomizationStatsItemKeys.js +12 -17
- package/lib/constants/Edition.js +2 -5
- package/lib/constants/EnumTypes.js +33 -38
- package/lib/constants/ExpirationReason.js +1 -3
- package/lib/constants/Feature.js +2 -5
- package/lib/constants/FieldNames.js +421 -426
- package/lib/constants/FieldTypes.js +15 -20
- package/lib/constants/FolderNames.js +82 -87
- package/lib/constants/Functionality.js +55 -60
- package/lib/constants/GlobalSettingsNames.js +71 -76
- package/lib/constants/LicenseKeyInvoiceSeverity.js +1 -3
- package/lib/constants/LicenseRestrictionKeys.js +63 -68
- package/lib/constants/RelationTypes.js +11 -16
- package/lib/data/EWItem.js +29 -34
- package/lib/data/IApiAdditionalField.js +1 -2
- package/lib/data/IApiAvailableBundle.js +1 -2
- package/lib/data/IApiAvailableVersionResponse.js +1 -2
- package/lib/data/IApiBooleanResponse.js +1 -2
- package/lib/data/IApiCapacityAvailableBundle.js +1 -2
- package/lib/data/IApiCart.js +1 -2
- package/lib/data/IApiColumn.js +1 -2
- package/lib/data/IApiColumnPermission.js +1 -2
- package/lib/data/IApiCompany.js +1 -2
- package/lib/data/IApiContact.js +1 -2
- package/lib/data/IApiCurrencyExchangeRate.js +1 -2
- package/lib/data/IApiCustomizationStatsItem.js +1 -2
- package/lib/data/IApiDataResponse.js +1 -2
- package/lib/data/IApiDatumResponse.js +1 -2
- package/lib/data/IApiDocument.js +1 -2
- package/lib/data/IApiEmail.js +1 -2
- package/lib/data/IApiEnumType.js +2 -5
- package/lib/data/IApiEnumValue.js +1 -2
- package/lib/data/IApiEnumValuesRelation.js +1 -2
- package/lib/data/IApiFeature.js +1 -2
- package/lib/data/IApiFeaturesLicenseBundle.js +1 -2
- package/lib/data/IApiFlow.js +1 -2
- package/lib/data/IApiGlobalSetting.js +1 -2
- package/lib/data/IApiGoal.js +1 -2
- package/lib/data/IApiGood.js +1 -2
- package/lib/data/IApiGoodInCart.js +1 -2
- package/lib/data/IApiGroup.js +1 -2
- package/lib/data/IApiItemBase.js +1 -2
- package/lib/data/IApiItemIdentifier.js +1 -2
- package/lib/data/IApiItemUsageStatus.js +1 -2
- package/lib/data/IApiJournal.js +1 -2
- package/lib/data/IApiLead.js +1 -2
- package/lib/data/IApiLicense.js +1 -2
- package/lib/data/IApiLicenseBundleBase.js +1 -2
- package/lib/data/IApiLocalizedLicenseBundle.js +1 -2
- package/lib/data/IApiLoginResponse.js +1 -2
- package/lib/data/IApiMarketingCampaign.js +1 -2
- package/lib/data/IApiMarketingList.js +1 -2
- package/lib/data/IApiModulePermission.js +1 -2
- package/lib/data/IApiObjectType.js +1 -2
- package/lib/data/IApiPasswordStrength.js +1 -2
- package/lib/data/IApiPayment.js +1 -2
- package/lib/data/IApiProject.js +1 -2
- package/lib/data/IApiRecurrencePattern.js +1 -2
- package/lib/data/IApiResult.js +1 -2
- package/lib/data/IApiSaveResponse.js +1 -2
- package/lib/data/IApiTask.js +1 -2
- package/lib/data/IApiUser.js +1 -2
- package/lib/data/IApiUserSetting.js +1 -2
- package/lib/data/IApiWebServiceTaskStatus.js +1 -2
- package/lib/data/IApiWorkReport.js +1 -2
- package/lib/data/IApiWorkflowActionDerivedItem.js +1 -2
- package/lib/data/IApiWorkflowModel.js +1 -2
- package/lib/data/query/IApiQuery.js +1 -2
- package/lib/data/query/IApiQueryFilters.js +1 -2
- package/lib/data/workflowActions/IApiAction.js +1 -2
- package/lib/exceptions/HttpRequestError.js +6 -28
- package/lib/exceptions/WebServiceError.js +6 -28
- package/lib/helpers/ErrorHelper.js +15 -20
- package/lib/helpers/OAuthHelper.js +49 -54
- package/lib/helpers/VersionHelperBase.js +15 -20
- package/lib/index.js +83 -123
- package/lib/interfaces/IEWJwtPayload.js +1 -2
- package/lib/interfaces/IItemPreview.js +1 -2
- package/lib/interfaces/ITokenData.js +1 -2
- package/lib/interfaces/ITranslatableString.js +1 -2
- package/lib/interfaces/TNumericValidatorType.js +1 -2
- package/lib/tokenizedServices/CommonDataConnection.js +11 -17
- package/lib/tokenizedServices/ITokenizedApiResult.js +1 -2
- package/lib/tokenizedServices/TokenizedServiceConnection.js +53 -59
- package/package.json +1 -1
|
@@ -1,52 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
29
|
-
|
|
8
|
+
const getNewAccessToken = (connection, callback) => {
|
|
9
|
+
OAuthHelper.refreshToken(connection.wsUrl, this.clientId, this.clientSecret, this.refreshToken, (tokenData) => {
|
|
30
10
|
try {
|
|
31
|
-
if (
|
|
32
|
-
|
|
11
|
+
if (this.refreshTokenCallback) {
|
|
12
|
+
this.refreshTokenCallback(tokenData);
|
|
33
13
|
}
|
|
34
14
|
}
|
|
35
15
|
catch (error) {
|
|
36
|
-
if (
|
|
37
|
-
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
|
|
51
|
-
}(OAuthSessionHandlerBase_1.OAuthSessionHandlerBase));
|
|
52
|
-
exports.OAuthSessionHandler = OAuthSessionHandler;
|
|
29
|
+
}
|
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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 =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
this.getSessionId = (connection, callback) => {
|
|
12
|
+
const successCallbackHandler = (result) => {
|
|
13
|
+
this.lastSuccessfulLoginResponse = result;
|
|
14
|
+
const newSessionId = result.SessionId;
|
|
19
15
|
if (!newSessionId) {
|
|
20
|
-
|
|
21
|
-
if (
|
|
22
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
if (
|
|
36
|
-
|
|
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
|
-
|
|
38
|
+
const errorCallbackHandler = (error) => {
|
|
43
39
|
if ((error === null || error === void 0 ? void 0 : error.statusCode) === 401) {
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
this.getNewAccessTokenCallback(connection, (accessToken, error) => {
|
|
41
|
+
this.accessToken = accessToken;
|
|
46
42
|
if (!error) {
|
|
47
|
-
|
|
43
|
+
this.getSessionId(connection, callback);
|
|
48
44
|
}
|
|
49
45
|
});
|
|
50
46
|
return;
|
|
51
47
|
}
|
|
52
|
-
if (!
|
|
48
|
+
if (!this.errorCallback)
|
|
53
49
|
throw error;
|
|
54
|
-
|
|
50
|
+
this.errorCallback(error);
|
|
55
51
|
};
|
|
56
|
-
|
|
57
|
-
userName:
|
|
58
|
-
appVersion:
|
|
52
|
+
const loginInputData = {
|
|
53
|
+
userName: this.username,
|
|
54
|
+
appVersion: this.appVersion,
|
|
59
55
|
createSessionCookie: connection.supportsGetItemPreviewMethod
|
|
60
56
|
};
|
|
61
|
-
|
|
62
|
-
'Authorization': 'Bearer ' +
|
|
57
|
+
const loginHeaders = {
|
|
58
|
+
'Authorization': 'Bearer ' + this.accessToken
|
|
63
59
|
};
|
|
64
|
-
connection.callWithoutSession(
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
exports.OAuthSessionHandlerBase = OAuthSessionHandlerBase;
|
|
78
|
-
exports.default = OAuthSessionHandlerBase;
|
|
71
|
+
}
|
|
72
|
+
export default OAuthSessionHandlerBase;
|
package/lib/ReturnCodes.js
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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;
|
package/lib/constants/Edition.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
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
|
|
7
|
+
})(Edition || (Edition = {}));
|
|
@@ -1,38 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
8
|
+
export default ExpirationReason;
|
package/lib/constants/Feature.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
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
|
|
7
|
+
})(Feature || (Feature = {}));
|