@evergis/api 3.0.210 → 3.0.213
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 +21 -10
- 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 +232 -222
- package/dist/api.esm.js.map +1 -1
- package/dist/utils/location.d.ts +1 -0
- 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';
|
|
@@ -4842,6 +4850,7 @@ function isString(v) {
|
|
|
4842
4850
|
}
|
|
4843
4851
|
|
|
4844
4852
|
const addSubDomainToLocation = subDomain => window.location.protocol + "//" + subDomain + "." + window.location.host;
|
|
4853
|
+
const getFetchingUrlPath = urlPath => urlPath === exports.UrlPath.Presentation ? exports.UrlPath.Base : urlPath;
|
|
4845
4854
|
|
|
4846
4855
|
const parseJwt = token => {
|
|
4847
4856
|
const base64Url = token.split(".")[1];
|
|
@@ -5220,8 +5229,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
|
|
|
5220
5229
|
|| event.code === 4002
|
|
5221
5230
|
/* InvalidSession */
|
|
5222
5231
|
) {
|
|
5223
|
-
|
|
5224
|
-
|
|
5232
|
+
_this.connectStatus = exports.ConnectionStatus.SessionClosed;
|
|
5233
|
+
} else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
|
|
5225
5234
|
_this.connectStatus = exports.ConnectionStatus.Break;
|
|
5226
5235
|
_this.reconnectTries++;
|
|
5227
5236
|
|
|
@@ -6075,12 +6084,12 @@ let Resources = /*#__PURE__*/function () {
|
|
|
6075
6084
|
}, {
|
|
6076
6085
|
key: "getDependentNames",
|
|
6077
6086
|
value: function getDependentNames(deps, depType) {
|
|
6078
|
-
return deps.filter(
|
|
6087
|
+
return deps.filter(_ref => {
|
|
6079
6088
|
let {
|
|
6080
6089
|
type
|
|
6081
6090
|
} = _ref;
|
|
6082
6091
|
return type === depType;
|
|
6083
|
-
}).map(
|
|
6092
|
+
}).map(_ref2 => {
|
|
6084
6093
|
let {
|
|
6085
6094
|
name
|
|
6086
6095
|
} = _ref2;
|
|
@@ -6536,7 +6545,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
|
|
|
6536
6545
|
const taskProgress = await this.getTaskProgress(id);
|
|
6537
6546
|
this.resolveTaskStatus(taskProgress, resolve, reject);
|
|
6538
6547
|
|
|
6539
|
-
const taskResultCallback = async
|
|
6548
|
+
const taskResultCallback = async _ref => {
|
|
6540
6549
|
let {
|
|
6541
6550
|
data
|
|
6542
6551
|
} = _ref;
|
|
@@ -7683,6 +7692,7 @@ let VectorTiles = /*#__PURE__*/function (_VectorTileService) {
|
|
|
7683
7692
|
const apiEventsByResponseStatus = {
|
|
7684
7693
|
401: exports.ApiEvent.Unauthorized
|
|
7685
7694
|
};
|
|
7695
|
+
const SHARED_PORT = "8082";
|
|
7686
7696
|
const URL_PATHS = /*#__PURE__*/Object.values(exports.UrlPath);
|
|
7687
7697
|
const DEFAULT_URL_PATH = URL_PATHS[0];
|
|
7688
7698
|
let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
@@ -7814,7 +7824,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7814
7824
|
|
|
7815
7825
|
if (fetchSettings) {
|
|
7816
7826
|
await this.clientSettings.fetchClientSettings({
|
|
7817
|
-
urlPath: this.urlPath
|
|
7827
|
+
urlPath: getFetchingUrlPath(this.urlPath)
|
|
7818
7828
|
});
|
|
7819
7829
|
}
|
|
7820
7830
|
|
|
@@ -7893,7 +7903,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
7893
7903
|
}, {
|
|
7894
7904
|
key: "isPresentation",
|
|
7895
7905
|
get: function get() {
|
|
7896
|
-
return this.urlPath === exports.UrlPath.Presentation;
|
|
7906
|
+
return this.urlPath === exports.UrlPath.Presentation || window.location.port === SHARED_PORT;
|
|
7897
7907
|
}
|
|
7898
7908
|
}]);
|
|
7899
7909
|
|
|
@@ -8662,6 +8672,7 @@ exports.addSubDomainToLocation = addSubDomainToLocation;
|
|
|
8662
8672
|
exports.errorHandler = errorHandler;
|
|
8663
8673
|
exports.formDataFromFile = formDataFromFile;
|
|
8664
8674
|
exports.generateId = generateId;
|
|
8675
|
+
exports.getFetchingUrlPath = getFetchingUrlPath;
|
|
8665
8676
|
exports.isEvergisDynamicLayer = isEvergisDynamicLayer;
|
|
8666
8677
|
exports.isEvergisTileLayer = isEvergisTileLayer;
|
|
8667
8678
|
exports.isFeatureLayer = isFeatureLayer;
|