@evergis/api 4.0.9 → 4.0.11

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.
@@ -30,9 +30,6 @@ 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
- });
36
33
  return Constructor;
37
34
  }
38
35
 
@@ -66,9 +63,6 @@ function _inherits(subClass, superClass) {
66
63
  configurable: true
67
64
  }
68
65
  });
69
- Object.defineProperty(subClass, "prototype", {
70
- writable: false
71
- });
72
66
  if (superClass) _setPrototypeOf(subClass, superClass);
73
67
  }
74
68
 
@@ -127,8 +121,6 @@ function _assertThisInitialized(self) {
127
121
  function _possibleConstructorReturn(self, call) {
128
122
  if (call && (typeof call === "object" || typeof call === "function")) {
129
123
  return call;
130
- } else if (call !== void 0) {
131
- throw new TypeError("Derived constructors may only return object or undefined");
132
124
  }
133
125
 
134
126
  return _assertThisInitialized(self);
@@ -162,7 +154,7 @@ function _superPropBase(object, property) {
162
154
  return object;
163
155
  }
164
156
 
165
- function _get() {
157
+ function _get(target, property, receiver) {
166
158
  if (typeof Reflect !== "undefined" && Reflect.get) {
167
159
  _get = Reflect.get;
168
160
  } else {
@@ -173,14 +165,14 @@ function _get() {
173
165
  var desc = Object.getOwnPropertyDescriptor(base, property);
174
166
 
175
167
  if (desc.get) {
176
- return desc.get.call(arguments.length < 3 ? target : receiver);
168
+ return desc.get.call(receiver);
177
169
  }
178
170
 
179
171
  return desc.value;
180
172
  };
181
173
  }
182
174
 
183
- return _get.apply(this, arguments);
175
+ return _get(target, property, receiver || target);
184
176
  }
185
177
 
186
178
  const API_USER_INFO_KEY = "@evergis/user-info";
@@ -2811,7 +2803,7 @@ let FiltersService = /*#__PURE__*/function (_Service) {
2811
2803
  }, {
2812
2804
  key: "update",
2813
2805
  value: function update(id, data) {
2814
- return this.http.post("/filters/" + id, data).json();
2806
+ return this.http.post("/filters/" + id, data).then(() => {});
2815
2807
  }
2816
2808
  /**
2817
2809
  * No description
@@ -2848,58 +2840,6 @@ let Filters = /*#__PURE__*/function (_FiltersService) {
2848
2840
  return _createClass(Filters);
2849
2841
  }(FiltersService);
2850
2842
 
2851
- /**
2852
- * @title Spatial Processing Core API
2853
- * @version 1.5.1.0
2854
- * @baseUrl /sp
2855
- */
2856
-
2857
- let GeneralService = /*#__PURE__*/function (_Service) {
2858
- _inherits(GeneralService, _Service);
2859
-
2860
- var _super = /*#__PURE__*/_createSuper(GeneralService);
2861
-
2862
- function GeneralService() {
2863
- _classCallCheck(this, GeneralService);
2864
-
2865
- return _super.apply(this, arguments);
2866
- }
2867
-
2868
- _createClass(GeneralService, [{
2869
- key: "getServerInfo",
2870
- value:
2871
- /**
2872
- * No description
2873
- *
2874
- * @tags General
2875
- * @name GetServerInfo
2876
- * @operationId GeneralController_GetServerInfo
2877
- * @summary Returns basic information about the server.
2878
- * @request GET:/
2879
- * @response `200` OK
2880
- */
2881
- function getServerInfo() {
2882
- return this.http.get("/").json();
2883
- }
2884
- }]);
2885
-
2886
- return GeneralService;
2887
- }(Service);
2888
-
2889
- let General = /*#__PURE__*/function (_GeneralService) {
2890
- _inherits(General, _GeneralService);
2891
-
2892
- var _super = /*#__PURE__*/_createSuper(General);
2893
-
2894
- function General() {
2895
- _classCallCheck(this, General);
2896
-
2897
- return _super.apply(this, arguments);
2898
- }
2899
-
2900
- return _createClass(General);
2901
- }(GeneralService);
2902
-
2903
2843
  const _excluded$2 = ["providerName"],
2904
2844
  _excluded2$1 = ["providerName"],
2905
2845
  _excluded3$1 = ["providerName"];
@@ -3582,7 +3522,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
3582
3522
  * @operationId LayersController_UpdateMapboxService
3583
3523
  * @summary Update mapbox service.
3584
3524
  * @request PATCH:/layers/{name}#type=Mapbox
3585
- * @response `default` Error
3525
+ * @response `200` OK
3586
3526
  */
3587
3527
 
3588
3528
  }, {
@@ -3600,7 +3540,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
3600
3540
  * @operationId LayersController_UpdatePythonService
3601
3541
  * @summary Update python service.
3602
3542
  * @request PATCH:/layers/{name}#type=Python
3603
- * @response `default` Error
3543
+ * @response `200` OK
3604
3544
  */
3605
3545
 
3606
3546
  }, {
@@ -3618,7 +3558,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
3618
3558
  * @operationId LayersController_UpdateProxyService
3619
3559
  * @summary Update Proxy Service.
3620
3560
  * @request PATCH:/layers/{name}#type=ProxyService
3621
- * @response `default` Error
3561
+ * @response `200` OK
3622
3562
  */
3623
3563
 
3624
3564
  }, {
@@ -3636,7 +3576,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
3636
3576
  * @operationId LayersController_UpdateTileCatalogService
3637
3577
  * @summary Update Postgres Tile Catalog Service.
3638
3578
  * @request PATCH:/layers/{name}#type=PostgresTileLayerService
3639
- * @response `default` Error
3579
+ * @response `200` OK
3640
3580
  */
3641
3581
 
3642
3582
  }, {
@@ -3654,7 +3594,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
3654
3594
  * @operationId LayersController_UpdateRemoteTileService
3655
3595
  * @summary Update Remote Tile Service.
3656
3596
  * @request PATCH:/layers/{name}#type=RemoteTileService
3657
- * @response `default` Error
3597
+ * @response `200` OK
3658
3598
  */
3659
3599
 
3660
3600
  }, {
@@ -3672,7 +3612,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
3672
3612
  * @operationId LayersController_UpdateQueryLayerService
3673
3613
  * @summary Update EQL-based Query Layer Service.
3674
3614
  * @request PATCH:/layers/{name}#type=QueryLayerService
3675
- * @response `default` Error
3615
+ * @response `200` OK
3676
3616
  */
3677
3617
 
3678
3618
  }, {
@@ -4138,7 +4078,6 @@ let LayersService = /*#__PURE__*/function (_Service) {
4138
4078
  * @summary Validates the given EQL expression against the requested layer. If the expression is valid, it can be executed on the features in the layer to produce a value of some type. The type of the resulting value will be also returned in the validation result.
4139
4079
  * @request GET:/layers/{layerName}/validateExpression
4140
4080
  * @response `200` OK
4141
- * @response `400` Bad Request
4142
4081
  */
4143
4082
 
4144
4083
  }, {
@@ -4736,8 +4675,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
4736
4675
  || event.code === 4002
4737
4676
  /* InvalidSession */
4738
4677
  ) {
4739
- _this.connectStatus = exports.ConnectionStatus.SessionClosed;
4740
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
4678
+ _this.connectStatus = exports.ConnectionStatus.SessionClosed;
4679
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
4741
4680
  _this.connectStatus = exports.ConnectionStatus.Break;
4742
4681
  _this.reconnectTries++;
4743
4682
 
@@ -4917,7 +4856,7 @@ let PrintService = /*#__PURE__*/function (_Service) {
4917
4856
  * @response `200` OK
4918
4857
  */
4919
4858
  function print(data) {
4920
- return this.http.post("/print/print", data).blob();
4859
+ return this.http.post("/print/print", data).then(() => {});
4921
4860
  }
4922
4861
  /**
4923
4862
  * No description
@@ -5796,12 +5735,12 @@ let Resources = /*#__PURE__*/function () {
5796
5735
  }, {
5797
5736
  key: "getDependentNames",
5798
5737
  value: function getDependentNames(deps, depType) {
5799
- return deps.filter(_ref => {
5738
+ return deps.filter((_ref) => {
5800
5739
  let {
5801
5740
  type
5802
5741
  } = _ref;
5803
5742
  return type === depType;
5804
- }).map(_ref2 => {
5743
+ }).map((_ref2) => {
5805
5744
  let {
5806
5745
  name
5807
5746
  } = _ref2;
@@ -6871,7 +6810,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
6871
6810
  (_request$headers = request.headers) == null ? void 0 : _request$headers.set("Authorization", "Bearer " + (token || ""));
6872
6811
  }
6873
6812
  }, ...((_hooks$beforeRequest = hooks == null ? void 0 : hooks.beforeRequest) != null ? _hooks$beforeRequest : [])],
6874
- beforeRetry: [async _ref2 => {
6813
+ beforeRetry: [async (_ref2) => {
6875
6814
  let {
6876
6815
  request,
6877
6816
  error,
@@ -6933,7 +6872,6 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
6933
6872
  _this.print = new Print(_this.http);
6934
6873
  _this.tools = new Tools(_this.http);
6935
6874
  _this.resourceCatalog = new ResourceCatalog(_this.http);
6936
- _this.general = new General(_this.http);
6937
6875
  _this.external = new External(_this.http);
6938
6876
  _this.clientSettings = new ClientSettings(_this.http);
6939
6877
  _this.portalSettings = new PortalSettings(_this.http);
@@ -7467,7 +7405,6 @@ exports.Feedback = Feedback;
7467
7405
  exports.FileUpload = FileUpload;
7468
7406
  exports.Filters = Filters;
7469
7407
  exports.GEOCODE_PROVIDER = GEOCODE_PROVIDER;
7470
- exports.General = General;
7471
7408
  exports.Geocode = Geocode;
7472
7409
  exports.HttpClient = HttpClient;
7473
7410
  exports.IceRouter = IceRouter;