@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,8 +1,7 @@
1
- "use strict";
2
1
  ////////////////////////////////////////////
3
2
  // //
4
3
  // Do not modify this file. //
5
4
  // This file is generated by a generator. //
6
5
  // //
7
6
  ////////////////////////////////////////////
8
- Object.defineProperty(exports, "__esModule", { value: true });
7
+ export {};
@@ -1,8 +1,7 @@
1
- "use strict";
2
1
  ////////////////////////////////////////////
3
2
  // //
4
3
  // Do not modify this file. //
5
4
  // This file is generated by a generator. //
6
5
  // //
7
6
  ////////////////////////////////////////////
8
- Object.defineProperty(exports, "__esModule", { value: true });
7
+ export {};
@@ -1,8 +1,7 @@
1
- "use strict";
2
1
  ////////////////////////////////////////////
3
2
  // //
4
3
  // Do not modify this file. //
5
4
  // This file is generated by a generator. //
6
5
  // //
7
6
  ////////////////////////////////////////////
8
- Object.defineProperty(exports, "__esModule", { value: true });
7
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,8 +1,7 @@
1
- "use strict";
2
1
  ////////////////////////////////////////////
3
2
  // //
4
3
  // Do not modify this file. //
5
4
  // This file is generated by a generator. //
6
5
  // //
7
6
  ////////////////////////////////////////////
8
- Object.defineProperty(exports, "__esModule", { value: true });
7
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,8 +1,7 @@
1
- "use strict";
2
1
  ////////////////////////////////////////////
3
2
  // //
4
3
  // Do not modify this file. //
5
4
  // This file is generated by a generator. //
6
5
  // //
7
6
  ////////////////////////////////////////////
8
- Object.defineProperty(exports, "__esModule", { value: true });
7
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,29 +1,7 @@
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.HttpRequestError = void 0;
19
- var HttpRequestError = /** @class */ (function (_super) {
20
- __extends(HttpRequestError, _super);
21
- function HttpRequestError(statusCode, message) {
22
- var _this = _super.call(this) || this;
23
- _this.statusCode = statusCode;
24
- _this.message = message;
25
- return _this;
1
+ export class HttpRequestError extends Error {
2
+ constructor(statusCode, message) {
3
+ super();
4
+ this.statusCode = statusCode;
5
+ this.message = message;
26
6
  }
27
- return HttpRequestError;
28
- }(Error));
29
- exports.HttpRequestError = HttpRequestError;
7
+ }
@@ -1,29 +1,7 @@
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.WebServiceError = void 0;
19
- var WebServiceError = /** @class */ (function (_super) {
20
- __extends(WebServiceError, _super);
21
- function WebServiceError(returnCode, message) {
22
- var _this = _super.call(this) || this;
23
- _this.returnCode = returnCode;
24
- _this.message = message;
25
- return _this;
1
+ export class WebServiceError extends Error {
2
+ constructor(returnCode, message) {
3
+ super();
4
+ this.returnCode = returnCode;
5
+ this.message = message;
26
6
  }
27
- return WebServiceError;
28
- }(Error));
29
- exports.WebServiceError = WebServiceError;
7
+ }
@@ -1,21 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var ErrorHelper = /** @class */ (function () {
4
- function ErrorHelper() {
1
+ class ErrorHelper {
2
+ }
3
+ ErrorHelper.stringifyError = (error) => {
4
+ return JSON.stringify(error, ErrorHelper.replaceErrors);
5
+ };
6
+ ErrorHelper.replaceErrors = (_key, value) => {
7
+ if (value instanceof Error) {
8
+ const error = {};
9
+ Object.getOwnPropertyNames(value).forEach((propName) => {
10
+ error[propName] = value[propName];
11
+ });
12
+ return error;
5
13
  }
6
- ErrorHelper.stringifyError = function (error) {
7
- return JSON.stringify(error, ErrorHelper.replaceErrors);
8
- };
9
- ErrorHelper.replaceErrors = function (_key, value) {
10
- if (value instanceof Error) {
11
- var error_1 = {};
12
- Object.getOwnPropertyNames(value).forEach(function (propName) {
13
- error_1[propName] = value[propName];
14
- });
15
- return error_1;
16
- }
17
- return value;
18
- };
19
- return ErrorHelper;
20
- }());
21
- exports.default = ErrorHelper;
14
+ return value;
15
+ };
16
+ export default ErrorHelper;
@@ -1,57 +1,52 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OAuthHelper = void 0;
4
- var base64url = require("universal-base64url");
5
- var jwt_decode_1 = require("jwt-decode");
6
- var AxiosInstance_1 = require("../axios/AxiosInstance");
7
- var OAuthHelper = exports.OAuthHelper = /** @class */ (function () {
8
- function OAuthHelper() {
1
+ import * as base64url from 'universal-base64url';
2
+ import jwt_decode from 'jwt-decode';
3
+ import axiosInstance from '../axios/AxiosInstance';
4
+ class OAuthHelper {
5
+ }
6
+ OAuthHelper.finishAuthorization = (wsUrl, clientId, clientSecret, codeVerifier, authorizationCode, redirectUrl, callback) => {
7
+ const params = new URLSearchParams();
8
+ params.append('code_verifier', codeVerifier);
9
+ params.append('client_id', clientId);
10
+ params.append('client_secret', clientSecret);
11
+ params.append('code', authorizationCode);
12
+ params.append('redirect_uri', redirectUrl);
13
+ params.append('grant_type', 'authorization_code');
14
+ OAuthHelper.callTokenEndpoint(wsUrl, params, callback);
15
+ };
16
+ OAuthHelper.refreshToken = (wsUrl, clientId, clientSecret, refreshToken, callback) => {
17
+ const params = new URLSearchParams();
18
+ params.append('client_id', clientId);
19
+ params.append('client_secret', clientSecret);
20
+ params.append('refresh_token', refreshToken);
21
+ params.append('grant_type', 'refresh_token');
22
+ OAuthHelper.callTokenEndpoint(wsUrl, params, callback);
23
+ };
24
+ OAuthHelper.getWebServiceUrl = (refreshToken) => {
25
+ const parts = refreshToken.split('.');
26
+ if (parts.length !== 2) {
27
+ throw new Error('Invalid token supplied');
9
28
  }
10
- OAuthHelper.finishAuthorization = function (wsUrl, clientId, clientSecret, codeVerifier, authorizationCode, redirectUrl, callback) {
11
- var params = new URLSearchParams();
12
- params.append('code_verifier', codeVerifier);
13
- params.append('client_id', clientId);
14
- params.append('client_secret', clientSecret);
15
- params.append('code', authorizationCode);
16
- params.append('redirect_uri', redirectUrl);
17
- params.append('grant_type', 'authorization_code');
18
- OAuthHelper.callTokenEndpoint(wsUrl, params, callback);
19
- };
20
- OAuthHelper.refreshToken = function (wsUrl, clientId, clientSecret, refreshToken, callback) {
21
- var params = new URLSearchParams();
22
- params.append('client_id', clientId);
23
- params.append('client_secret', clientSecret);
24
- params.append('refresh_token', refreshToken);
25
- params.append('grant_type', 'refresh_token');
26
- OAuthHelper.callTokenEndpoint(wsUrl, params, callback);
27
- };
28
- OAuthHelper.getWebServiceUrl = function (refreshToken) {
29
- var parts = refreshToken.split('.');
30
- if (parts.length !== 2) {
31
- throw new Error('Invalid token supplied');
29
+ return base64url.decode(parts[1]);
30
+ };
31
+ OAuthHelper.getUserName = (accessToken) => {
32
+ const parts = jwt_decode(accessToken);
33
+ return parts.username;
34
+ };
35
+ OAuthHelper.callTokenEndpoint = (wsUrl, params, callback) => {
36
+ axiosInstance.post(wsUrl + '/auth/connect/token', params, {
37
+ headers: {
38
+ 'Content-Type': 'application/x-www-form-urlencoded'
32
39
  }
33
- return base64url.decode(parts[1]);
34
- };
35
- OAuthHelper.getUserName = function (accessToken) {
36
- var parts = (0, jwt_decode_1.default)(accessToken);
37
- return parts.username;
38
- };
39
- OAuthHelper.callTokenEndpoint = function (wsUrl, params, callback) {
40
- AxiosInstance_1.default.post(wsUrl + '/auth/connect/token', params, {
41
- headers: {
42
- 'Content-Type': 'application/x-www-form-urlencoded'
40
+ }).then((response) => {
41
+ callback(response.data);
42
+ }).catch((error) => {
43
+ if (error.response) {
44
+ if (error.response.status == 400) {
45
+ callback(error.response.data);
46
+ return;
43
47
  }
44
- }).then(function (response) {
45
- callback(response.data);
46
- }).catch(function (error) {
47
- if (error.response) {
48
- if (error.response.status == 400) {
49
- callback(error.response.data);
50
- return;
51
- }
52
- }
53
- throw new Error('Token request failed');
54
- });
55
- };
56
- return OAuthHelper;
57
- }());
48
+ }
49
+ throw new Error('Token request failed');
50
+ });
51
+ };
52
+ export { OAuthHelper };
@@ -1,21 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var compare_versions_1 = require("compare-versions");
4
- var VersionHelperBase = /** @class */ (function () {
5
- function VersionHelperBase() {
1
+ import { compare } from "compare-versions";
2
+ class VersionHelperBase {
3
+ }
4
+ VersionHelperBase.getIsDebug = (connection) => {
5
+ var _a;
6
+ return !!((_a = connection === null || connection === void 0 ? void 0 : connection.sessionHandler.lastSuccessfulLoginResponse) === null || _a === void 0 ? void 0 : _a.Debug);
7
+ };
8
+ VersionHelperBase.supportsFeaturesOf = (connection, version) => {
9
+ var _a;
10
+ const wcfVersion = (_a = connection.sessionHandler.lastSuccessfulLoginResponse) === null || _a === void 0 ? void 0 : _a.WcfVersion;
11
+ if (!wcfVersion) {
12
+ return false;
6
13
  }
7
- VersionHelperBase.getIsDebug = function (connection) {
8
- var _a;
9
- return !!((_a = connection === null || connection === void 0 ? void 0 : connection.sessionHandler.lastSuccessfulLoginResponse) === null || _a === void 0 ? void 0 : _a.Debug);
10
- };
11
- VersionHelperBase.supportsFeaturesOf = function (connection, version) {
12
- var _a;
13
- var wcfVersion = (_a = connection.sessionHandler.lastSuccessfulLoginResponse) === null || _a === void 0 ? void 0 : _a.WcfVersion;
14
- if (!wcfVersion) {
15
- return false;
16
- }
17
- return (0, compare_versions_1.compare)(wcfVersion, version, ">=") || (0, compare_versions_1.compare)(wcfVersion, "1.0.0.0", "=");
18
- };
19
- return VersionHelperBase;
20
- }());
21
- exports.default = VersionHelperBase;
14
+ return compare(wcfVersion, version, ">=") || compare(wcfVersion, "1.0.0.0", "=");
15
+ };
16
+ export default VersionHelperBase;
package/lib/index.js CHANGED
@@ -1,124 +1,84 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.OAuthSessionHandlerBase = exports.VersionHelperBase = exports.ErrorHelper = exports.LicenseKeyInvoiceSeverity = exports.ExpirationReason = exports.LicenseRestrictionKeys = exports.CustomizationStatsItemKeys = exports.Functionality = exports.Feature = exports.Edition = exports.ColumnPermissionMandatoryRules = exports.ColumnPermissionPermissionRules = exports.RelationTypes = exports.EnumTypes = exports.FieldNames = exports.HttpRequestError = exports.OAuthHelper = exports.FolderNames = exports.GlobalSettingsNames = exports.ApiMethods = exports.CommonDataConnection = exports.TokenizedServiceConnection = exports.ReturnCodes = exports.HttpMethod = void 0;
18
- var Promise = require("es6-promise");
19
- var ApiConnection_1 = require("./ApiConnection");
20
- var HttpMethod_1 = require("./HttpMethod");
21
- Object.defineProperty(exports, "HttpMethod", { enumerable: true, get: function () { return HttpMethod_1.HttpMethod; } });
22
- var ReturnCodes_1 = require("./ReturnCodes");
23
- Object.defineProperty(exports, "ReturnCodes", { enumerable: true, get: function () { return ReturnCodes_1.ReturnCodes; } });
24
- var TokenizedServiceConnection_1 = require("./tokenizedServices/TokenizedServiceConnection");
25
- Object.defineProperty(exports, "TokenizedServiceConnection", { enumerable: true, get: function () { return TokenizedServiceConnection_1.TokenizedServiceConnection; } });
26
- var CommonDataConnection_1 = require("./tokenizedServices/CommonDataConnection");
27
- Object.defineProperty(exports, "CommonDataConnection", { enumerable: true, get: function () { return CommonDataConnection_1.CommonDataConnection; } });
28
- var ApiMethods_1 = require("./ApiMethods");
29
- Object.defineProperty(exports, "ApiMethods", { enumerable: true, get: function () { return ApiMethods_1.ApiMethods; } });
30
- var GlobalSettingsNames_1 = require("./constants/GlobalSettingsNames");
31
- exports.GlobalSettingsNames = GlobalSettingsNames_1.default;
32
- var FieldNames_1 = require("./constants/FieldNames");
33
- exports.FieldNames = FieldNames_1.default;
34
- var FolderNames_1 = require("./constants/FolderNames");
35
- Object.defineProperty(exports, "FolderNames", { enumerable: true, get: function () { return FolderNames_1.FolderNames; } });
36
- var OAuthHelper_1 = require("./helpers/OAuthHelper");
37
- Object.defineProperty(exports, "OAuthHelper", { enumerable: true, get: function () { return OAuthHelper_1.OAuthHelper; } });
38
- var HttpRequestError_1 = require("./exceptions/HttpRequestError");
39
- Object.defineProperty(exports, "HttpRequestError", { enumerable: true, get: function () { return HttpRequestError_1.HttpRequestError; } });
40
- var EnumTypes_1 = require("./constants/EnumTypes");
41
- exports.EnumTypes = EnumTypes_1.default;
42
- var RelationTypes_1 = require("./constants/RelationTypes");
43
- exports.RelationTypes = RelationTypes_1.default;
44
- var ColumnPermissionRules_1 = require("./constants/ColumnPermissionRules");
45
- Object.defineProperty(exports, "ColumnPermissionPermissionRules", { enumerable: true, get: function () { return ColumnPermissionRules_1.ColumnPermissionPermissionRules; } });
46
- Object.defineProperty(exports, "ColumnPermissionMandatoryRules", { enumerable: true, get: function () { return ColumnPermissionRules_1.ColumnPermissionMandatoryRules; } });
47
- var Edition_1 = require("./constants/Edition");
48
- Object.defineProperty(exports, "Edition", { enumerable: true, get: function () { return Edition_1.Edition; } });
49
- var Feature_1 = require("./constants/Feature");
50
- Object.defineProperty(exports, "Feature", { enumerable: true, get: function () { return Feature_1.Feature; } });
51
- var Functionality_1 = require("./constants/Functionality");
52
- exports.Functionality = Functionality_1.default;
53
- var CustomizationStatsItemKeys_1 = require("./constants/CustomizationStatsItemKeys");
54
- exports.CustomizationStatsItemKeys = CustomizationStatsItemKeys_1.default;
55
- var LicenseRestrictionKeys_1 = require("./constants/LicenseRestrictionKeys");
56
- exports.LicenseRestrictionKeys = LicenseRestrictionKeys_1.default;
57
- var ExpirationReason_1 = require("./constants/ExpirationReason");
58
- exports.ExpirationReason = ExpirationReason_1.default;
59
- var LicenseKeyInvoiceSeverity_1 = require("./constants/LicenseKeyInvoiceSeverity");
60
- exports.LicenseKeyInvoiceSeverity = LicenseKeyInvoiceSeverity_1.default;
61
- var ErrorHelper_1 = require("./helpers/ErrorHelper");
62
- exports.ErrorHelper = ErrorHelper_1.default;
63
- var VersionHelperBase_1 = require("./helpers/VersionHelperBase");
64
- exports.VersionHelperBase = VersionHelperBase_1.default;
65
- var OAuthSessionHandlerBase_1 = require("./OAuthSessionHandlerBase");
66
- Object.defineProperty(exports, "OAuthSessionHandlerBase", { enumerable: true, get: function () { return OAuthSessionHandlerBase_1.OAuthSessionHandlerBase; } });
1
+ import * as Promise from 'es6-promise';
2
+ import { ApiConnection } from './ApiConnection';
3
+ import { HttpMethod } from './HttpMethod';
4
+ import { ReturnCodes } from './ReturnCodes';
5
+ import { TokenizedServiceConnection } from './tokenizedServices/TokenizedServiceConnection';
6
+ import { CommonDataConnection } from './tokenizedServices/CommonDataConnection';
7
+ import { ApiMethods } from './ApiMethods';
8
+ import GlobalSettingsNames from './constants/GlobalSettingsNames';
9
+ import FieldNames from './constants/FieldNames';
10
+ import { FolderNames } from './constants/FolderNames';
11
+ import { OAuthHelper } from './helpers/OAuthHelper';
12
+ import { HttpRequestError } from './exceptions/HttpRequestError';
13
+ import EnumTypes from './constants/EnumTypes';
14
+ import RelationTypes from './constants/RelationTypes';
15
+ import { ColumnPermissionPermissionRules, ColumnPermissionMandatoryRules } from './constants/ColumnPermissionRules';
16
+ import { Edition } from './constants/Edition';
17
+ import { Feature } from './constants/Feature';
18
+ import Functionality from './constants/Functionality';
19
+ import CustomizationStatsItemKeys from './constants/CustomizationStatsItemKeys';
20
+ import LicenseRestrictionKeys from './constants/LicenseRestrictionKeys';
21
+ import ExpirationReason from './constants/ExpirationReason';
22
+ import LicenseKeyInvoiceSeverity from './constants/LicenseKeyInvoiceSeverity';
23
+ import ErrorHelper from './helpers/ErrorHelper';
24
+ import VersionHelperBase from './helpers/VersionHelperBase';
25
+ import { OAuthSessionHandlerBase } from './OAuthSessionHandlerBase';
67
26
  Promise.polyfill();
68
- exports.default = ApiConnection_1.ApiConnection;
69
- __exportStar(require("./data/EWItem"), exports);
70
- __exportStar(require("./data/IApiAdditionalField"), exports);
71
- __exportStar(require("./data/IApiAvailableBundle"), exports);
72
- __exportStar(require("./data/IApiAvailableVersionResponse"), exports);
73
- __exportStar(require("./data/IApiCapacityAvailableBundle"), exports);
74
- __exportStar(require("./data/IApiCart"), exports);
75
- __exportStar(require("./data/IApiColumn"), exports);
76
- __exportStar(require("./data/IApiColumnPermission"), exports);
77
- __exportStar(require("./data/IApiCompany"), exports);
78
- __exportStar(require("./data/IApiContact"), exports);
79
- __exportStar(require("./data/IApiCustomizationStatsItem"), exports);
80
- __exportStar(require("./data/IApiCurrencyExchangeRate"), exports);
81
- __exportStar(require("./data/IApiBooleanResponse"), exports);
82
- __exportStar(require("./data/IApiDataResponse"), exports);
83
- __exportStar(require("./data/IApiDatumResponse"), exports);
84
- __exportStar(require("./data/IApiDocument"), exports);
85
- __exportStar(require("./data/IApiEmail"), exports);
86
- __exportStar(require("./data/IApiEnumType"), exports);
87
- __exportStar(require("./data/IApiEnumValue"), exports);
88
- __exportStar(require("./data/IApiEnumValuesRelation"), exports);
89
- __exportStar(require("./data/IApiFeature"), exports);
90
- __exportStar(require("./data/IApiFeaturesLicenseBundle"), exports);
91
- __exportStar(require("./data/IApiFlow"), exports);
92
- __exportStar(require("./data/IApiGlobalSetting"), exports);
93
- __exportStar(require("./data/IApiGoal"), exports);
94
- __exportStar(require("./data/IApiGood"), exports);
95
- __exportStar(require("./data/IApiGoodInCart"), exports);
96
- __exportStar(require("./data/IApiGroup"), exports);
97
- __exportStar(require("./data/IApiItemBase"), exports);
98
- __exportStar(require("./data/IApiItemIdentifier"), exports);
99
- __exportStar(require("./data/IApiItemUsageStatus"), exports);
100
- __exportStar(require("./data/IApiJournal"), exports);
101
- __exportStar(require("./data/IApiLead"), exports);
102
- __exportStar(require("./data/IApiLicense"), exports);
103
- __exportStar(require("./data/IApiLicenseBundleBase"), exports);
104
- __exportStar(require("./data/IApiLocalizedLicenseBundle"), exports);
105
- __exportStar(require("./data/IApiLoginResponse"), exports);
106
- __exportStar(require("./data/IApiMarketingList"), exports);
107
- __exportStar(require("./data/IApiModulePermission"), exports);
108
- __exportStar(require("./data/IApiObjectType"), exports);
109
- __exportStar(require("./data/IApiPasswordStrength"), exports);
110
- __exportStar(require("./data/IApiPayment"), exports);
111
- __exportStar(require("./data/IApiProject"), exports);
112
- __exportStar(require("./data/IApiRecurrencePattern"), exports);
113
- __exportStar(require("./data/IApiResult"), exports);
114
- __exportStar(require("./data/IApiSaveResponse"), exports);
115
- __exportStar(require("./data/IApiTask"), exports);
116
- __exportStar(require("./data/IApiUser"), exports);
117
- __exportStar(require("./data/IApiUserSetting"), exports);
118
- __exportStar(require("./data/IApiWebServiceTaskStatus"), exports);
119
- __exportStar(require("./data/IApiWorkflowActionDerivedItem"), exports);
120
- __exportStar(require("./data/IApiWorkflowModel"), exports);
121
- __exportStar(require("./data/IApiWorkReport"), exports);
122
- __exportStar(require("./data/query/IApiQuery"), exports);
123
- __exportStar(require("./data/query/IApiQueryFilters"), exports);
124
- __exportStar(require("./interfaces/ITranslatableString"), exports);
27
+ export default ApiConnection;
28
+ export * from './data/EWItem';
29
+ export * from './data/IApiAdditionalField';
30
+ export * from './data/IApiAvailableBundle';
31
+ export * from './data/IApiAvailableVersionResponse';
32
+ export * from './data/IApiCapacityAvailableBundle';
33
+ export * from './data/IApiCart';
34
+ export * from './data/IApiColumn';
35
+ export * from './data/IApiColumnPermission';
36
+ export * from './data/IApiCompany';
37
+ export * from './data/IApiContact';
38
+ export * from './data/IApiCustomizationStatsItem';
39
+ export * from './data/IApiCurrencyExchangeRate';
40
+ export * from './data/IApiBooleanResponse';
41
+ export * from './data/IApiDataResponse';
42
+ export * from './data/IApiDatumResponse';
43
+ export * from './data/IApiDocument';
44
+ export * from './data/IApiEmail';
45
+ export * from './data/IApiEnumType';
46
+ export * from './data/IApiEnumValue';
47
+ export * from './data/IApiEnumValuesRelation';
48
+ export * from './data/IApiFeature';
49
+ export * from './data/IApiFeaturesLicenseBundle';
50
+ export * from './data/IApiFlow';
51
+ export * from './data/IApiGlobalSetting';
52
+ export * from './data/IApiGoal';
53
+ export * from './data/IApiGood';
54
+ export * from './data/IApiGoodInCart';
55
+ export * from './data/IApiGroup';
56
+ export * from './data/IApiItemBase';
57
+ export * from './data/IApiItemIdentifier';
58
+ export * from './data/IApiItemUsageStatus';
59
+ export * from './data/IApiJournal';
60
+ export * from './data/IApiLead';
61
+ export * from './data/IApiLicense';
62
+ export * from './data/IApiLicenseBundleBase';
63
+ export * from './data/IApiLocalizedLicenseBundle';
64
+ export * from './data/IApiLoginResponse';
65
+ export * from './data/IApiMarketingList';
66
+ export * from './data/IApiModulePermission';
67
+ export * from './data/IApiObjectType';
68
+ export * from './data/IApiPasswordStrength';
69
+ export * from './data/IApiPayment';
70
+ export * from './data/IApiProject';
71
+ export * from './data/IApiRecurrencePattern';
72
+ export * from './data/IApiResult';
73
+ export * from './data/IApiSaveResponse';
74
+ export * from './data/IApiTask';
75
+ export * from './data/IApiUser';
76
+ export * from './data/IApiUserSetting';
77
+ export * from './data/IApiWebServiceTaskStatus';
78
+ export * from './data/IApiWorkflowActionDerivedItem';
79
+ export * from './data/IApiWorkflowModel';
80
+ export * from './data/IApiWorkReport';
81
+ export * from './data/query/IApiQuery';
82
+ export * from './data/query/IApiQueryFilters';
83
+ export * from './interfaces/ITranslatableString';
84
+ export { HttpMethod, ReturnCodes, TokenizedServiceConnection, CommonDataConnection, ApiMethods, GlobalSettingsNames, FolderNames, OAuthHelper, HttpRequestError, FieldNames, EnumTypes, RelationTypes, ColumnPermissionPermissionRules, ColumnPermissionMandatoryRules, Edition, Feature, Functionality, CustomizationStatsItemKeys, LicenseRestrictionKeys, ExpirationReason, LicenseKeyInvoiceSeverity, ErrorHelper, VersionHelperBase, OAuthSessionHandlerBase };
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};