@evergis/api 3.0.210 → 3.0.212
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 +213 -213
- package/dist/api.cjs.development.js +18 -9
- 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 +229 -220
- package/dist/api.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -36,6 +36,9 @@ function _defineProperties(target, props) {
|
|
|
36
36
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
37
37
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38
38
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
39
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
40
|
+
writable: false
|
|
41
|
+
});
|
|
39
42
|
return Constructor;
|
|
40
43
|
}
|
|
41
44
|
|
|
@@ -69,6 +72,9 @@ function _inherits(subClass, superClass) {
|
|
|
69
72
|
configurable: true
|
|
70
73
|
}
|
|
71
74
|
});
|
|
75
|
+
Object.defineProperty(subClass, "prototype", {
|
|
76
|
+
writable: false
|
|
77
|
+
});
|
|
72
78
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
73
79
|
}
|
|
74
80
|
|
|
@@ -127,6 +133,8 @@ function _assertThisInitialized(self) {
|
|
|
127
133
|
function _possibleConstructorReturn(self, call) {
|
|
128
134
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
129
135
|
return call;
|
|
136
|
+
} else if (call !== void 0) {
|
|
137
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
130
138
|
}
|
|
131
139
|
|
|
132
140
|
return _assertThisInitialized(self);
|
|
@@ -160,7 +168,7 @@ function _superPropBase(object, property) {
|
|
|
160
168
|
return object;
|
|
161
169
|
}
|
|
162
170
|
|
|
163
|
-
function _get(
|
|
171
|
+
function _get() {
|
|
164
172
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
165
173
|
_get = Reflect.get;
|
|
166
174
|
} else {
|
|
@@ -171,14 +179,14 @@ function _get(target, property, receiver) {
|
|
|
171
179
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
172
180
|
|
|
173
181
|
if (desc.get) {
|
|
174
|
-
return desc.get.call(receiver);
|
|
182
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
|
175
183
|
}
|
|
176
184
|
|
|
177
185
|
return desc.value;
|
|
178
186
|
};
|
|
179
187
|
}
|
|
180
188
|
|
|
181
|
-
return _get(
|
|
189
|
+
return _get.apply(this, arguments);
|
|
182
190
|
}
|
|
183
191
|
|
|
184
192
|
const API_USER_INFO_KEY = '@evergis/user-info';
|
|
@@ -5220,8 +5228,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
|
|
|
5220
5228
|
|| event.code === 4002
|
|
5221
5229
|
/* InvalidSession */
|
|
5222
5230
|
) {
|
|
5223
|
-
|
|
5224
|
-
|
|
5231
|
+
_this.connectStatus = exports.ConnectionStatus.SessionClosed;
|
|
5232
|
+
} else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
|
|
5225
5233
|
_this.connectStatus = exports.ConnectionStatus.Break;
|
|
5226
5234
|
_this.reconnectTries++;
|
|
5227
5235
|
|
|
@@ -6075,12 +6083,12 @@ let Resources = /*#__PURE__*/function () {
|
|
|
6075
6083
|
}, {
|
|
6076
6084
|
key: "getDependentNames",
|
|
6077
6085
|
value: function getDependentNames(deps, depType) {
|
|
6078
|
-
return deps.filter(
|
|
6086
|
+
return deps.filter(_ref => {
|
|
6079
6087
|
let {
|
|
6080
6088
|
type
|
|
6081
6089
|
} = _ref;
|
|
6082
6090
|
return type === depType;
|
|
6083
|
-
}).map(
|
|
6091
|
+
}).map(_ref2 => {
|
|
6084
6092
|
let {
|
|
6085
6093
|
name
|
|
6086
6094
|
} = _ref2;
|
|
@@ -6536,7 +6544,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
|
|
|
6536
6544
|
const taskProgress = await this.getTaskProgress(id);
|
|
6537
6545
|
this.resolveTaskStatus(taskProgress, resolve, reject);
|
|
6538
6546
|
|
|
6539
|
-
const taskResultCallback = async
|
|
6547
|
+
const taskResultCallback = async _ref => {
|
|
6540
6548
|
let {
|
|
6541
6549
|
data
|
|
6542
6550
|
} = _ref;
|
|
@@ -7683,6 +7691,7 @@ let VectorTiles = /*#__PURE__*/function (_VectorTileService) {
|
|
|
7683
7691
|
const apiEventsByResponseStatus = {
|
|
7684
7692
|
401: exports.ApiEvent.Unauthorized
|
|
7685
7693
|
};
|
|
7694
|
+
const SHARED_PORT = "8082";
|
|
7686
7695
|
const URL_PATHS = /*#__PURE__*/Object.values(exports.UrlPath);
|
|
7687
7696
|
const DEFAULT_URL_PATH = URL_PATHS[0];
|
|
7688
7697
|
let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
@@ -7893,7 +7902,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7893
7902
|
}, {
|
|
7894
7903
|
key: "isPresentation",
|
|
7895
7904
|
get: function get() {
|
|
7896
|
-
return this.urlPath === exports.UrlPath.Presentation;
|
|
7905
|
+
return this.urlPath === exports.UrlPath.Presentation || window.location.port === SHARED_PORT;
|
|
7897
7906
|
}
|
|
7898
7907
|
}]);
|
|
7899
7908
|
|