@evergis/api 3.0.142 → 3.0.144

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 () {
@@ -292,12 +300,6 @@ function toFormData(input) {
292
300
  }, new FormData());
293
301
  }
294
302
 
295
- (function (ApiEvent) {
296
- ApiEvent["ConnectionLost"] = "ConnectionLost";
297
- ApiEvent["Unauthorized"] = "Unauthorized";
298
- ApiEvent["SessionClosed"] = "SessionClosed";
299
- })(exports.ApiEvent || (exports.ApiEvent = {}));
300
-
301
303
  /* eslint-disable */
302
304
 
303
305
  /* tslint:disable */
@@ -316,6 +318,73 @@ let Service = /*#__PURE__*/_createClass(function Service(http) {
316
318
  this.http = http;
317
319
  });
318
320
 
321
+ const _excluded = ["taskId", "layerName"];
322
+ /**
323
+ * @title Spatial Processing Core API
324
+ * @version 1.0.0
325
+ * @baseUrl /sp
326
+ */
327
+
328
+ let UniversalSearchService = /*#__PURE__*/function (_Service) {
329
+ _inherits(UniversalSearchService, _Service);
330
+
331
+ var _super = /*#__PURE__*/_createSuper(UniversalSearchService);
332
+
333
+ function UniversalSearchService() {
334
+ _classCallCheck(this, UniversalSearchService);
335
+
336
+ return _super.apply(this, arguments);
337
+ }
338
+
339
+ _createClass(UniversalSearchService, [{
340
+ key: "getSearchResult",
341
+ value:
342
+ /**
343
+ * No description
344
+ *
345
+ * @tags UniversalSearch
346
+ * @name GetSearchResult
347
+ * @operationId UniversalSearchController_GetSearchResult
348
+ * @summary Returns search result.
349
+ * @request GET:/search/{taskId}/{layerName}
350
+ * @response `200` Success
351
+ */
352
+ function getSearchResult(_ref) {
353
+ let {
354
+ taskId,
355
+ layerName
356
+ } = _ref,
357
+ query = _objectWithoutPropertiesLoose(_ref, _excluded);
358
+
359
+ return this.http.get("/search/" + taskId + "/" + layerName, query).json();
360
+ }
361
+ /**
362
+ * No description
363
+ *
364
+ * @tags UniversalSearch
365
+ * @name GetSearchResult1
366
+ * @operationId UniversalSearchController_GetSearchResult_1
367
+ * @summary Returns search result.
368
+ * @request GET:/search/{taskId}
369
+ * @response `200` Success
370
+ */
371
+
372
+ }, {
373
+ key: "getSearchResult1",
374
+ value: function getSearchResult1(taskId) {
375
+ return this.http.get("/search/" + taskId).json();
376
+ }
377
+ }]);
378
+
379
+ return UniversalSearchService;
380
+ }(Service);
381
+
382
+ (function (ApiEvent) {
383
+ ApiEvent["ConnectionLost"] = "ConnectionLost";
384
+ ApiEvent["Unauthorized"] = "Unauthorized";
385
+ ApiEvent["SessionClosed"] = "SessionClosed";
386
+ })(exports.ApiEvent || (exports.ApiEvent = {}));
387
+
319
388
  /**
320
389
  * @title Spatial Processing Core API
321
390
  * @version 1.0.0
@@ -843,6 +912,22 @@ let ImportService = /*#__PURE__*/function (_Service) {
843
912
  value: function getRasterAttributes(query) {
844
913
  return this.http.get("/import/rasterAttributes", query).json();
845
914
  }
915
+ /**
916
+ * No description
917
+ *
918
+ * @tags ImportService
919
+ * @name GetRasterMeta
920
+ * @operationId ImportServiceController_GetRasterMeta
921
+ * @summary Get raster meta data.
922
+ * @request GET:/import/rasterMeta
923
+ * @response `200` Success
924
+ */
925
+
926
+ }, {
927
+ key: "getRasterMeta",
928
+ value: function getRasterMeta(query) {
929
+ return this.http.get("/import/rasterMeta", query).json();
930
+ }
846
931
  }]);
847
932
 
848
933
  return ImportService;
@@ -1018,8 +1103,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
1018
1103
  || event.code === 4002
1019
1104
  /* InvalidSession */
1020
1105
  ) {
1021
- _this.connectStatus = exports.ConnectionStatus.SessionClosed;
1022
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
1106
+ _this.connectStatus = exports.ConnectionStatus.SessionClosed;
1107
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
1023
1108
  _this.connectStatus = exports.ConnectionStatus.Break;
1024
1109
  _this.reconnectTries++;
1025
1110
 
@@ -1313,6 +1398,24 @@ let SchedulerService = /*#__PURE__*/function (_Service) {
1313
1398
  type: 'tiling'
1314
1399
  }).json();
1315
1400
  }
1401
+ /**
1402
+ * No description
1403
+ *
1404
+ * @tags SchedulerService
1405
+ * @name StartNetCdfTask
1406
+ * @operationId SchedulerServiceController_StartNetCdfTask
1407
+ * @summary Plans the execution of a 'netcdf' server task.
1408
+ * @request POST:/scheduler/tasks#type=netcdf
1409
+ * @response `200` Success
1410
+ */
1411
+
1412
+ }, {
1413
+ key: "startNetCdfTask",
1414
+ value: function startNetCdfTask(data) {
1415
+ return this.http.post("/scheduler/tasks", data, {
1416
+ type: 'netcdf'
1417
+ }).json();
1418
+ }
1316
1419
  /**
1317
1420
  * No description
1318
1421
  *
@@ -1421,6 +1524,24 @@ let SchedulerService = /*#__PURE__*/function (_Service) {
1421
1524
  type: 'editAttributes'
1422
1525
  }).json();
1423
1526
  }
1527
+ /**
1528
+ * No description
1529
+ *
1530
+ * @tags SchedulerService
1531
+ * @name UniversalSearchTask
1532
+ * @operationId SchedulerServiceController_UniversalSearchTask
1533
+ * @summary Plans the execution of a 'edit attributes' server task.
1534
+ * @request POST:/scheduler/tasks#type=universalSearch
1535
+ * @response `200` Success
1536
+ */
1537
+
1538
+ }, {
1539
+ key: "universalSearchTask",
1540
+ value: function universalSearchTask(data) {
1541
+ return this.http.post("/scheduler/tasks", data, {
1542
+ type: 'universalSearch'
1543
+ }).json();
1544
+ }
1424
1545
  }]);
1425
1546
 
1426
1547
  return SchedulerService;
@@ -1532,7 +1653,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
1532
1653
  const taskProgress = await this.getTaskProgress(id);
1533
1654
  this.resolveTaskStatus(taskProgress, resolve, reject);
1534
1655
 
1535
- const taskResultCallback = async (_ref) => {
1656
+ const taskResultCallback = async _ref => {
1536
1657
  let {
1537
1658
  data
1538
1659
  } = _ref;
@@ -1575,7 +1696,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
1575
1696
  return Scheduler;
1576
1697
  }(SchedulerService);
1577
1698
 
1578
- const _excluded = ["name"],
1699
+ const _excluded$1 = ["name"],
1579
1700
  _excluded2 = ["name"],
1580
1701
  _excluded3 = ["name"],
1581
1702
  _excluded4 = ["name", "id"],
@@ -1593,7 +1714,8 @@ const _excluded = ["name"],
1593
1714
  _excluded16 = ["name"],
1594
1715
  _excluded17 = ["name"],
1595
1716
  _excluded18 = ["name"],
1596
- _excluded19 = ["layerName"];
1717
+ _excluded19 = ["layerName"],
1718
+ _excluded20 = ["name", "id"];
1597
1719
  /**
1598
1720
  * @title Spatial Processing Core API
1599
1721
  * @version 1.0.0
@@ -2010,7 +2132,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
2010
2132
  let {
2011
2133
  name
2012
2134
  } = _ref,
2013
- query = _objectWithoutPropertiesLoose(_ref, _excluded);
2135
+ query = _objectWithoutPropertiesLoose(_ref, _excluded$1);
2014
2136
 
2015
2137
  return this.http.get("/layers/" + name + "/features", query).json();
2016
2138
  }
@@ -2463,6 +2585,28 @@ let LayersService = /*#__PURE__*/function (_Service) {
2463
2585
 
2464
2586
  return this.http.get("/layers/" + layerName + "/validateExpression", query).json();
2465
2587
  }
2588
+ /**
2589
+ * No description
2590
+ *
2591
+ * @tags Layers
2592
+ * @name GetRasterMeta
2593
+ * @operationId LayersController_GetRasterMeta
2594
+ * @summary Get raster metadata.
2595
+ * @request GET:/layers/{name}/{id}/metadata
2596
+ * @response `200` Success
2597
+ */
2598
+
2599
+ }, {
2600
+ key: "getRasterMeta",
2601
+ value: function getRasterMeta(_ref20) {
2602
+ let {
2603
+ name,
2604
+ id
2605
+ } = _ref20,
2606
+ query = _objectWithoutPropertiesLoose(_ref20, _excluded20);
2607
+
2608
+ return this.http.get("/layers/" + name + "/" + id + "/metadata", query).json();
2609
+ }
2466
2610
  /**
2467
2611
  * No description
2468
2612
  *
@@ -2657,7 +2801,7 @@ function notError(v) {
2657
2801
  return !isError(v);
2658
2802
  }
2659
2803
 
2660
- const _excluded$1 = ["remote"];
2804
+ const _excluded$2 = ["remote"];
2661
2805
  let Layers = /*#__PURE__*/function (_LayersService) {
2662
2806
  _inherits(Layers, _LayersService);
2663
2807
 
@@ -2697,7 +2841,7 @@ let Layers = /*#__PURE__*/function (_LayersService) {
2697
2841
  let {
2698
2842
  remote
2699
2843
  } = _ref,
2700
- configuration = _objectWithoutPropertiesLoose(_ref, _excluded$1);
2844
+ configuration = _objectWithoutPropertiesLoose(_ref, _excluded$2);
2701
2845
 
2702
2846
  if (remote) {
2703
2847
  return this.publishRemoteTileService(configuration);
@@ -2746,7 +2890,7 @@ function isTileLayerService(layer) {
2746
2890
  return layer.type && /TileService/.test(layer.type);
2747
2891
  }
2748
2892
 
2749
- const _excluded$2 = ["name"],
2893
+ const _excluded$3 = ["name"],
2750
2894
  _excluded2$1 = ["name"],
2751
2895
  _excluded3$1 = ["name"],
2752
2896
  _excluded4$1 = ["name"];
@@ -2928,7 +3072,7 @@ let TablesService = /*#__PURE__*/function (_Service) {
2928
3072
  let {
2929
3073
  name
2930
3074
  } = _ref,
2931
- query = _objectWithoutPropertiesLoose(_ref, _excluded$2);
3075
+ query = _objectWithoutPropertiesLoose(_ref, _excluded$3);
2932
3076
 
2933
3077
  return this.http.get("/tables/" + name + "/data", query).json();
2934
3078
  }
@@ -3753,12 +3897,12 @@ let Resources = /*#__PURE__*/function () {
3753
3897
  }, {
3754
3898
  key: "getDependentNames",
3755
3899
  value: function getDependentNames(deps, depType) {
3756
- return deps.filter((_ref) => {
3900
+ return deps.filter(_ref => {
3757
3901
  let {
3758
3902
  type
3759
3903
  } = _ref;
3760
3904
  return type === depType;
3761
- }).map((_ref2) => {
3905
+ }).map(_ref2 => {
3762
3906
  let {
3763
3907
  name
3764
3908
  } = _ref2;
@@ -3902,7 +4046,7 @@ let Styles = /*#__PURE__*/function (_StyleService) {
3902
4046
  return _createClass(Styles);
3903
4047
  }(StyleService);
3904
4048
 
3905
- const _excluded$3 = ["providerName"],
4049
+ const _excluded$4 = ["providerName"],
3906
4050
  _excluded2$2 = ["providerName"],
3907
4051
  _excluded3$2 = ["providerName"];
3908
4052
  /**
@@ -3939,7 +4083,7 @@ let GeocodeService = /*#__PURE__*/function (_Service) {
3939
4083
  let {
3940
4084
  providerName
3941
4085
  } = _ref,
3942
- query = _objectWithoutPropertiesLoose(_ref, _excluded$3);
4086
+ query = _objectWithoutPropertiesLoose(_ref, _excluded$4);
3943
4087
 
3944
4088
  return this.http.get("/geocode/" + providerName, query).json();
3945
4089
  }
@@ -4982,7 +5126,7 @@ let Account = /*#__PURE__*/function (_AccountService) {
4982
5126
  return Account;
4983
5127
  }(AccountService);
4984
5128
 
4985
- const _excluded$4 = ["username"];
5129
+ const _excluded$5 = ["username"];
4986
5130
  /**
4987
5131
  * @title Spatial Processing Core API
4988
5132
  * @version 1.0.0
@@ -5033,7 +5177,7 @@ let AccountPreviewService = /*#__PURE__*/function (_Service) {
5033
5177
  let {
5034
5178
  username
5035
5179
  } = _ref,
5036
- query = _objectWithoutPropertiesLoose(_ref, _excluded$4);
5180
+ query = _objectWithoutPropertiesLoose(_ref, _excluded$5);
5037
5181
 
5038
5182
  return this.http.post("/account/user/preview/" + username, toFormData(data), query).json();
5039
5183
  }
@@ -5980,7 +6124,7 @@ let Feedback = /*#__PURE__*/function (_FeedbackService) {
5980
6124
  return Feedback;
5981
6125
  }(FeedbackService);
5982
6126
 
5983
- const _excluded$5 = ["name", "z", "x", "y"];
6127
+ const _excluded$6 = ["name", "z", "x", "y"];
5984
6128
  /**
5985
6129
  * @title Spatial Processing Core API
5986
6130
  * @version 1.0.0
@@ -6018,7 +6162,7 @@ let VectorTileService = /*#__PURE__*/function (_Service) {
6018
6162
  x,
6019
6163
  y
6020
6164
  } = _ref,
6021
- query = _objectWithoutPropertiesLoose(_ref, _excluded$5);
6165
+ query = _objectWithoutPropertiesLoose(_ref, _excluded$6);
6022
6166
 
6023
6167
  return this.http.get("/vt/" + name + "/" + z + "/" + x + "/" + y + ".pbf", query).then(() => {});
6024
6168
  }
@@ -6268,6 +6412,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
6268
6412
  _this.statistic = new Statistic(_this.http);
6269
6413
  _this.feedback = new Feedback(_this.http);
6270
6414
  _this.vectorTiles = new VectorTiles(_this.http);
6415
+ _this.universalSearch = new UniversalSearchService(_this.http);
6271
6416
  _this.names = new Names({
6272
6417
  account: _this.account
6273
6418
  });
@@ -6444,7 +6589,7 @@ let EvergisTileLayer = /*#__PURE__*/function (_TileLayer) {
6444
6589
  return EvergisTileLayer;
6445
6590
  }(TileLayer.TileLayer);
6446
6591
 
6447
- const _excluded$6 = ["name", "style", "condition", "dataFilterId"];
6592
+ const _excluded$7 = ["name", "style", "condition", "dataFilterId"];
6448
6593
  let EvergisDynamicLayer = /*#__PURE__*/function (_DynamicLayer) {
6449
6594
  _inherits(EvergisDynamicLayer, _DynamicLayer);
6450
6595
 
@@ -6459,7 +6604,7 @@ let EvergisDynamicLayer = /*#__PURE__*/function (_DynamicLayer) {
6459
6604
  condition,
6460
6605
  dataFilterId
6461
6606
  } = _ref,
6462
- layerProps = _objectWithoutPropertiesLoose(_ref, _excluded$6);
6607
+ layerProps = _objectWithoutPropertiesLoose(_ref, _excluded$7);
6463
6608
 
6464
6609
  _classCallCheck(this, EvergisDynamicLayer);
6465
6610
 
@@ -6771,7 +6916,7 @@ function isFeatureLayer(layer) {
6771
6916
  AttributeType["Boolean"] = "Boolean";
6772
6917
  AttributeType["Point"] = "Point";
6773
6918
  AttributeType["Polyline"] = "Polyline";
6774
- AttributeType["Polygon"] = "Polygon";
6919
+ AttributeType["MultiPolygon"] = "Polygon";
6775
6920
  AttributeType["Multipoint"] = "Multipoint";
6776
6921
  AttributeType["H3Index"] = "H3Index";
6777
6922
  })(exports.AttributeType || (exports.AttributeType = {}));