@evergis/api 3.0.117 → 3.0.118

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.
@@ -35,6 +35,9 @@ function _defineProperties(target, props) {
35
35
  function _createClass(Constructor, protoProps, staticProps) {
36
36
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
37
37
  if (staticProps) _defineProperties(Constructor, staticProps);
38
+ Object.defineProperty(Constructor, "prototype", {
39
+ writable: false
40
+ });
38
41
  return Constructor;
39
42
  }
40
43
 
@@ -68,6 +71,9 @@ function _inherits(subClass, superClass) {
68
71
  configurable: true
69
72
  }
70
73
  });
74
+ Object.defineProperty(subClass, "prototype", {
75
+ writable: false
76
+ });
71
77
  if (superClass) _setPrototypeOf(subClass, superClass);
72
78
  }
73
79
 
@@ -126,6 +132,8 @@ function _assertThisInitialized(self) {
126
132
  function _possibleConstructorReturn(self, call) {
127
133
  if (call && (typeof call === "object" || typeof call === "function")) {
128
134
  return call;
135
+ } else if (call !== void 0) {
136
+ throw new TypeError("Derived constructors may only return object or undefined");
129
137
  }
130
138
 
131
139
  return _assertThisInitialized(self);
@@ -159,7 +167,7 @@ function _superPropBase(object, property) {
159
167
  return object;
160
168
  }
161
169
 
162
- function _get(target, property, receiver) {
170
+ function _get() {
163
171
  if (typeof Reflect !== "undefined" && Reflect.get) {
164
172
  _get = Reflect.get;
165
173
  } else {
@@ -170,14 +178,14 @@ function _get(target, property, receiver) {
170
178
  var desc = Object.getOwnPropertyDescriptor(base, property);
171
179
 
172
180
  if (desc.get) {
173
- return desc.get.call(receiver);
181
+ return desc.get.call(arguments.length < 3 ? target : receiver);
174
182
  }
175
183
 
176
184
  return desc.value;
177
185
  };
178
186
  }
179
187
 
180
- return _get(target, property, receiver || target);
188
+ return _get.apply(this, arguments);
181
189
  }
182
190
 
183
191
  let HttpClient = /*#__PURE__*/function () {
@@ -969,8 +977,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
969
977
  || event.code === 4002
970
978
  /* InvalidSession */
971
979
  ) {
972
- _this.connectStatus = exports.ConnectionStatus.SessionClosed;
973
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
980
+ _this.connectStatus = exports.ConnectionStatus.SessionClosed;
981
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
974
982
  _this.connectStatus = exports.ConnectionStatus.Break;
975
983
  _this.reconnectTries++;
976
984
 
@@ -1476,7 +1484,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
1476
1484
  const taskProgress = await this.getTaskProgress(id);
1477
1485
  this.resolveTaskStatus(taskProgress, resolve, reject);
1478
1486
 
1479
- const taskResultCallback = async (_ref) => {
1487
+ const taskResultCallback = async _ref => {
1480
1488
  let {
1481
1489
  data
1482
1490
  } = _ref;
@@ -3617,12 +3625,12 @@ let Resources = /*#__PURE__*/function () {
3617
3625
  }, {
3618
3626
  key: "getDependentNames",
3619
3627
  value: function getDependentNames(deps, depType) {
3620
- return deps.filter((_ref) => {
3628
+ return deps.filter(_ref => {
3621
3629
  let {
3622
3630
  type
3623
3631
  } = _ref;
3624
3632
  return type === depType;
3625
- }).map((_ref2) => {
3633
+ }).map(_ref2 => {
3626
3634
  let {
3627
3635
  name
3628
3636
  } = _ref2;
@@ -5860,6 +5868,80 @@ let Feedback = /*#__PURE__*/function (_FeedbackService) {
5860
5868
  return Feedback;
5861
5869
  }(FeedbackService);
5862
5870
 
5871
+ const _excluded$5 = ["name", "z", "x", "y"];
5872
+ /**
5873
+ * @title Spatial Processing Core API
5874
+ * @version 1.0.0
5875
+ * @baseUrl /sp
5876
+ */
5877
+
5878
+ let VectorTileService = /*#__PURE__*/function (_Service) {
5879
+ _inherits(VectorTileService, _Service);
5880
+
5881
+ var _super = /*#__PURE__*/_createSuper(VectorTileService);
5882
+
5883
+ function VectorTileService() {
5884
+ _classCallCheck(this, VectorTileService);
5885
+
5886
+ return _super.apply(this, arguments);
5887
+ }
5888
+
5889
+ _createClass(VectorTileService, [{
5890
+ key: "getVectorTile",
5891
+ value:
5892
+ /**
5893
+ * No description
5894
+ *
5895
+ * @tags VectorTileService
5896
+ * @name GetVectorTile
5897
+ * @operationId VectorTileServiceController_GetVectorTile
5898
+ * @summary Get vector tile from visible project layers or single layer.
5899
+ * @request GET:/vt/{name}/{z}/{x}/{y}.pbf
5900
+ * @response `200` Success
5901
+ */
5902
+ function getVectorTile(_ref) {
5903
+ let {
5904
+ name,
5905
+ z,
5906
+ x,
5907
+ y
5908
+ } = _ref,
5909
+ query = _objectWithoutPropertiesLoose(_ref, _excluded$5);
5910
+
5911
+ return this.http.get("/vt/" + name + "/" + z + "/" + x + "/" + y + ".pbf", query).then(() => {});
5912
+ }
5913
+ }]);
5914
+
5915
+ return VectorTileService;
5916
+ }(Service);
5917
+
5918
+ let VectorTiles = /*#__PURE__*/function (_VectorTileService) {
5919
+ _inherits(VectorTiles, _VectorTileService);
5920
+
5921
+ var _super = /*#__PURE__*/_createSuper(VectorTiles);
5922
+
5923
+ function VectorTiles() {
5924
+ _classCallCheck(this, VectorTiles);
5925
+
5926
+ return _super.apply(this, arguments);
5927
+ }
5928
+
5929
+ _createClass(VectorTiles, [{
5930
+ key: "getVt",
5931
+ value: function getVt(name, z, x, y, isProject) {
5932
+ return this.getVectorTile({
5933
+ name,
5934
+ z,
5935
+ x,
5936
+ y,
5937
+ isProject
5938
+ });
5939
+ }
5940
+ }]);
5941
+
5942
+ return VectorTiles;
5943
+ }(VectorTileService);
5944
+
5863
5945
  /**
5864
5946
  * @title Spatial Processing Core API
5865
5947
  * @version 1.0.0
@@ -6072,6 +6154,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
6072
6154
  _this.iceRouter = new IceRouter(_this.http);
6073
6155
  _this.statistic = new Statistic(_this.http);
6074
6156
  _this.feedback = new Feedback(_this.http);
6157
+ _this.vectorTiles = new VectorTiles(_this.http);
6075
6158
  _this.names = new Names({
6076
6159
  account: _this.account
6077
6160
  });
@@ -6236,7 +6319,7 @@ let EvergisTileLayer = /*#__PURE__*/function (_TileLayer) {
6236
6319
  return EvergisTileLayer;
6237
6320
  }(TileLayer.TileLayer);
6238
6321
 
6239
- const _excluded$5 = ["name", "style", "condition", "dataFilterId"];
6322
+ const _excluded$6 = ["name", "style", "condition", "dataFilterId"];
6240
6323
  let EvergisDynamicLayer = /*#__PURE__*/function (_DynamicLayer) {
6241
6324
  _inherits(EvergisDynamicLayer, _DynamicLayer);
6242
6325
 
@@ -6251,7 +6334,7 @@ let EvergisDynamicLayer = /*#__PURE__*/function (_DynamicLayer) {
6251
6334
  condition,
6252
6335
  dataFilterId
6253
6336
  } = _ref,
6254
- layerProps = _objectWithoutPropertiesLoose(_ref, _excluded$5);
6337
+ layerProps = _objectWithoutPropertiesLoose(_ref, _excluded$6);
6255
6338
 
6256
6339
  _classCallCheck(this, EvergisDynamicLayer);
6257
6340
 
@@ -6835,6 +6918,7 @@ exports.Statistic = Statistic;
6835
6918
  exports.Styles = Styles;
6836
6919
  exports.Tables = Tables;
6837
6920
  exports.Tools = Tools;
6921
+ exports.VectorTiles = VectorTiles;
6838
6922
  exports.addSubDomainToLocation = addSubDomainToLocation;
6839
6923
  exports.errorHandler = errorHandler;
6840
6924
  exports.formDataFromFile = formDataFromFile;