@evergis/api 4.0.20 → 4.0.21
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/LICENSE +20 -20
- package/README.md +21 -21
- package/dist/__generated__/data-contracts.d.ts +237 -237
- package/dist/api.cjs.development.js +16 -8
- package/dist/api.cjs.development.js.map +1 -1
- package/dist/api.cjs.production.min.js +1 -1
- package/dist/api.cjs.production.min.js.map +1 -1
- package/dist/api.esm.js +251 -243
- package/dist/api.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -30,6 +30,9 @@ function _defineProperties(target, props) {
|
|
|
30
30
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
31
31
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
32
32
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
33
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
34
|
+
writable: false
|
|
35
|
+
});
|
|
33
36
|
return Constructor;
|
|
34
37
|
}
|
|
35
38
|
|
|
@@ -63,6 +66,9 @@ function _inherits(subClass, superClass) {
|
|
|
63
66
|
configurable: true
|
|
64
67
|
}
|
|
65
68
|
});
|
|
69
|
+
Object.defineProperty(subClass, "prototype", {
|
|
70
|
+
writable: false
|
|
71
|
+
});
|
|
66
72
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
67
73
|
}
|
|
68
74
|
|
|
@@ -121,6 +127,8 @@ function _assertThisInitialized(self) {
|
|
|
121
127
|
function _possibleConstructorReturn(self, call) {
|
|
122
128
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
123
129
|
return call;
|
|
130
|
+
} else if (call !== void 0) {
|
|
131
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
124
132
|
}
|
|
125
133
|
|
|
126
134
|
return _assertThisInitialized(self);
|
|
@@ -154,7 +162,7 @@ function _superPropBase(object, property) {
|
|
|
154
162
|
return object;
|
|
155
163
|
}
|
|
156
164
|
|
|
157
|
-
function _get(
|
|
165
|
+
function _get() {
|
|
158
166
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
159
167
|
_get = Reflect.get;
|
|
160
168
|
} else {
|
|
@@ -165,14 +173,14 @@ function _get(target, property, receiver) {
|
|
|
165
173
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
166
174
|
|
|
167
175
|
if (desc.get) {
|
|
168
|
-
return desc.get.call(receiver);
|
|
176
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
|
169
177
|
}
|
|
170
178
|
|
|
171
179
|
return desc.value;
|
|
172
180
|
};
|
|
173
181
|
}
|
|
174
182
|
|
|
175
|
-
return _get(
|
|
183
|
+
return _get.apply(this, arguments);
|
|
176
184
|
}
|
|
177
185
|
|
|
178
186
|
const API_USER_INFO_KEY = "@evergis/user-info";
|
|
@@ -5023,8 +5031,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
|
|
|
5023
5031
|
|| event.code === 4002
|
|
5024
5032
|
/* InvalidSession */
|
|
5025
5033
|
) {
|
|
5026
|
-
|
|
5027
|
-
|
|
5034
|
+
_this.connectStatus = exports.ConnectionStatus.SessionClosed;
|
|
5035
|
+
} else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
|
|
5028
5036
|
_this.connectStatus = exports.ConnectionStatus.Break;
|
|
5029
5037
|
_this.reconnectTries++;
|
|
5030
5038
|
|
|
@@ -6086,12 +6094,12 @@ let Resources = /*#__PURE__*/function () {
|
|
|
6086
6094
|
}, {
|
|
6087
6095
|
key: "getDependentNames",
|
|
6088
6096
|
value: function getDependentNames(deps, depType) {
|
|
6089
|
-
return deps.filter(
|
|
6097
|
+
return deps.filter(_ref => {
|
|
6090
6098
|
let {
|
|
6091
6099
|
type
|
|
6092
6100
|
} = _ref;
|
|
6093
6101
|
return type === depType;
|
|
6094
|
-
}).map(
|
|
6102
|
+
}).map(_ref2 => {
|
|
6095
6103
|
let {
|
|
6096
6104
|
name
|
|
6097
6105
|
} = _ref2;
|
|
@@ -7254,7 +7262,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7254
7262
|
(_request$headers = request.headers) == null ? void 0 : _request$headers.set("Authorization", "Bearer " + (token || ""));
|
|
7255
7263
|
}
|
|
7256
7264
|
}, ...((_hooks$beforeRequest = hooks == null ? void 0 : hooks.beforeRequest) != null ? _hooks$beforeRequest : [])],
|
|
7257
|
-
beforeRetry: [async
|
|
7265
|
+
beforeRetry: [async _ref2 => {
|
|
7258
7266
|
let {
|
|
7259
7267
|
request,
|
|
7260
7268
|
error,
|