@evergis/api 3.0.205 → 3.0.206

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.
@@ -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(target, property, receiver) {
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(target, property, receiver || target);
189
+ return _get.apply(this, arguments);
182
190
  }
183
191
 
184
192
  const API_USER_INFO_KEY = '@evergis/user-info';
@@ -5070,8 +5078,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
5070
5078
  || event.code === 4002
5071
5079
  /* InvalidSession */
5072
5080
  ) {
5073
- _this.connectStatus = exports.ConnectionStatus.SessionClosed;
5074
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
5081
+ _this.connectStatus = exports.ConnectionStatus.SessionClosed;
5082
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
5075
5083
  _this.connectStatus = exports.ConnectionStatus.Break;
5076
5084
  _this.reconnectTries++;
5077
5085
 
@@ -5147,7 +5155,7 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
5147
5155
  value: async function subscribe(tag) {
5148
5156
  this.subscriptions.push(tag);
5149
5157
  setTimeout(() => {
5150
- if (!this.api.isShared && this.subscriptions.length) {
5158
+ if (!this.api.isShared && !this.api.isPresentation && this.subscriptions.length) {
5151
5159
  this.subscribeListOperation(this.subscriptions);
5152
5160
  }
5153
5161
 
@@ -5903,12 +5911,12 @@ let Resources = /*#__PURE__*/function () {
5903
5911
  }, {
5904
5912
  key: "getDependentNames",
5905
5913
  value: function getDependentNames(deps, depType) {
5906
- return deps.filter((_ref) => {
5914
+ return deps.filter(_ref => {
5907
5915
  let {
5908
5916
  type
5909
5917
  } = _ref;
5910
5918
  return type === depType;
5911
- }).map((_ref2) => {
5919
+ }).map(_ref2 => {
5912
5920
  let {
5913
5921
  name
5914
5922
  } = _ref2;
@@ -6364,7 +6372,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
6364
6372
  const taskProgress = await this.getTaskProgress(id);
6365
6373
  this.resolveTaskStatus(taskProgress, resolve, reject);
6366
6374
 
6367
- const taskResultCallback = async (_ref) => {
6375
+ const taskResultCallback = async _ref => {
6368
6376
  let {
6369
6377
  data
6370
6378
  } = _ref;
@@ -7504,6 +7512,7 @@ let VectorTiles = /*#__PURE__*/function (_VectorTileService) {
7504
7512
  (function (UrlPath) {
7505
7513
  UrlPath["Base"] = "/map";
7506
7514
  UrlPath["Shared"] = "/shared";
7515
+ UrlPath["Presentation"] = "/presentation";
7507
7516
  UrlPath["Portal"] = "/portal";
7508
7517
  })(exports.UrlPath || (exports.UrlPath = {}));
7509
7518
 
@@ -7716,6 +7725,11 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7716
7725
  get: function get() {
7717
7726
  return this.urlPath === exports.UrlPath.Shared;
7718
7727
  }
7728
+ }, {
7729
+ key: "isPresentation",
7730
+ get: function get() {
7731
+ return this.urlPath === exports.UrlPath.Presentation;
7732
+ }
7719
7733
  }]);
7720
7734
 
7721
7735
  return Api;