@eway-crm/connector 1.0.87 → 1.0.88
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/constants/ExpirationReason.d.ts +6 -0
- package/lib/constants/ExpirationReason.js +9 -0
- package/lib/constants/LicenseKeyInvoiceSeverity.d.ts +8 -0
- package/lib/constants/LicenseKeyInvoiceSeverity.js +11 -0
- package/lib/data/IApiLicense.d.ts +23 -0
- package/lib/index.d.ts +3 -1
- package/lib/index.js +5 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var ExpirationReason;
|
|
4
|
+
(function (ExpirationReason) {
|
|
5
|
+
ExpirationReason["UnpaidImportantInvoices"] = "UnpaidImportantInvoices";
|
|
6
|
+
ExpirationReason["UncollectableSubscriptionPayment"] = "UncollectableSubscriptionPayment";
|
|
7
|
+
ExpirationReason["StandardSubscriptionPeriod"] = "StandardSubscriptionPeriod";
|
|
8
|
+
})(ExpirationReason || (ExpirationReason = {}));
|
|
9
|
+
exports.default = ExpirationReason;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var LicenseKeyInvoiceSeverity;
|
|
4
|
+
(function (LicenseKeyInvoiceSeverity) {
|
|
5
|
+
LicenseKeyInvoiceSeverity["License"] = "License";
|
|
6
|
+
LicenseKeyInvoiceSeverity["CloudLicense"] = "CloudLicense";
|
|
7
|
+
LicenseKeyInvoiceSeverity["MiscLicense"] = "MiscLicense";
|
|
8
|
+
LicenseKeyInvoiceSeverity["Support"] = "Support";
|
|
9
|
+
LicenseKeyInvoiceSeverity["Service"] = "Service";
|
|
10
|
+
})(LicenseKeyInvoiceSeverity || (LicenseKeyInvoiceSeverity = {}));
|
|
11
|
+
exports.default = LicenseKeyInvoiceSeverity;
|
|
@@ -4,6 +4,8 @@ import { TFeatureWithEdition } from './IApiFeaturesLicenseBundle';
|
|
|
4
4
|
import { Edition } from '../constants/Edition';
|
|
5
5
|
import { Feature } from '../constants/Feature';
|
|
6
6
|
import { TFolderName } from '../constants/FolderNames';
|
|
7
|
+
import ExpirationReason from '../constants/ExpirationReason';
|
|
8
|
+
import LicenseKeyInvoiceSeverity from '../constants/LicenseKeyInvoiceSeverity';
|
|
7
9
|
declare type LicenceBusinessType = 'Premium' | 'Trial' | 'Free';
|
|
8
10
|
interface IApiRestrictionBase {
|
|
9
11
|
AvailableInEdition: Edition;
|
|
@@ -21,6 +23,24 @@ interface IApiRestrictionsClass {
|
|
|
21
23
|
FolderName: TFolderName;
|
|
22
24
|
})[];
|
|
23
25
|
}
|
|
26
|
+
interface IApiLicenseExpiration {
|
|
27
|
+
ExpiresOn: string;
|
|
28
|
+
Reason: ExpirationReason;
|
|
29
|
+
}
|
|
30
|
+
interface IApiCurrentUserLicenseInfo {
|
|
31
|
+
ReceivesAdminLicenseNotifications: boolean;
|
|
32
|
+
ReceivesBillingLicenseNotifications: boolean;
|
|
33
|
+
}
|
|
34
|
+
interface IApiLicenseKeyInvoices {
|
|
35
|
+
UnpaidInvoices: IApiLicenseKeyInvoice[] | null;
|
|
36
|
+
BillingEmails: string[] | null;
|
|
37
|
+
}
|
|
38
|
+
interface IApiLicenseKeyInvoice {
|
|
39
|
+
Name: string;
|
|
40
|
+
Url: string;
|
|
41
|
+
DueDate: string;
|
|
42
|
+
Severity: LicenseKeyInvoiceSeverity;
|
|
43
|
+
}
|
|
24
44
|
export interface IApiLicense {
|
|
25
45
|
AvailableBundles: (IApiCapacityAvailableBundle & {
|
|
26
46
|
Name: ITranslatableString;
|
|
@@ -29,5 +49,8 @@ export interface IApiLicense {
|
|
|
29
49
|
Features: TFeatureWithEdition[];
|
|
30
50
|
CurrentUserRestrictions: IApiRestrictionsClass;
|
|
31
51
|
Restrictions: IApiRestrictionsClass;
|
|
52
|
+
CurrentUserLicenseInfo: IApiCurrentUserLicenseInfo;
|
|
53
|
+
Expiration: IApiLicenseExpiration | null;
|
|
54
|
+
Invoices: IApiLicenseKeyInvoices | null;
|
|
32
55
|
}
|
|
33
56
|
export {};
|
package/lib/index.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ import { Feature } from './constants/Feature';
|
|
|
20
20
|
import Functionality from './constants/Functionality';
|
|
21
21
|
import CustomizationStatsItemKeys from './constants/CustomizationStatsItemKeys';
|
|
22
22
|
import LicenseRestrictionKeys from './constants/LicenseRestrictionKeys';
|
|
23
|
+
import ExpirationReason from './constants/ExpirationReason';
|
|
24
|
+
import LicenseKeyInvoiceSeverity from './constants/LicenseKeyInvoiceSeverity';
|
|
23
25
|
export default ApiConnection;
|
|
24
26
|
export * from './data/EWItem';
|
|
25
27
|
export * from './data/IApiAdditionalField';
|
|
@@ -74,4 +76,4 @@ export * from './data/IApiWorkReport';
|
|
|
74
76
|
export * from './data/query/IApiQuery';
|
|
75
77
|
export * from './data/query/IApiQueryFilters';
|
|
76
78
|
export * from './interfaces/ITranslatableString';
|
|
77
|
-
export { HttpMethod, ISessionHandler, ReturnCodes, ITokenizedApiResult, TokenizedServiceConnection, CommonDataConnection, ApiMethods, GlobalSettingsNames, FolderNames, TFolderName, OAuthHelper, HttpRequestError, TUnionError, TInputData, FieldNames, EnumTypes, RelationTypes, ColumnPermissionPermissionRules, ColumnPermissionMandatoryRules, Edition, Feature, Functionality, CustomizationStatsItemKeys, LicenseRestrictionKeys };
|
|
79
|
+
export { HttpMethod, ISessionHandler, ReturnCodes, ITokenizedApiResult, TokenizedServiceConnection, CommonDataConnection, ApiMethods, GlobalSettingsNames, FolderNames, TFolderName, OAuthHelper, HttpRequestError, TUnionError, TInputData, FieldNames, EnumTypes, RelationTypes, ColumnPermissionPermissionRules, ColumnPermissionMandatoryRules, Edition, Feature, Functionality, CustomizationStatsItemKeys, LicenseRestrictionKeys, ExpirationReason, LicenseKeyInvoiceSeverity };
|
package/lib/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
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;
|
|
17
|
+
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
18
|
var Promise = require("es6-promise");
|
|
19
19
|
var ApiConnection_1 = require("./ApiConnection");
|
|
20
20
|
var HttpMethod_1 = require("./HttpMethod");
|
|
@@ -54,6 +54,10 @@ var CustomizationStatsItemKeys_1 = require("./constants/CustomizationStatsItemKe
|
|
|
54
54
|
exports.CustomizationStatsItemKeys = CustomizationStatsItemKeys_1.default;
|
|
55
55
|
var LicenseRestrictionKeys_1 = require("./constants/LicenseRestrictionKeys");
|
|
56
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;
|
|
57
61
|
Promise.polyfill();
|
|
58
62
|
exports.default = ApiConnection_1.ApiConnection;
|
|
59
63
|
__exportStar(require("./data/EWItem"), exports);
|