@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.
- 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
package/lib/data/IApiPayment.js
CHANGED
|
@@ -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
|
-
|
|
7
|
+
export {};
|
package/lib/data/IApiProject.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
7
|
+
export {};
|
package/lib/data/IApiResult.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/lib/data/IApiTask.js
CHANGED
|
@@ -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
|
-
|
|
7
|
+
export {};
|
package/lib/data/IApiUser.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
7
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,29 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
28
|
-
}(Error));
|
|
29
|
-
exports.HttpRequestError = HttpRequestError;
|
|
7
|
+
}
|
|
@@ -1,29 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
28
|
-
}(Error));
|
|
29
|
-
exports.WebServiceError = WebServiceError;
|
|
7
|
+
}
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
7
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
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
|
-
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
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
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
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|