@evergis/api 3.0.206 → 3.0.208

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,9 +36,6 @@ 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
- });
42
39
  return Constructor;
43
40
  }
44
41
 
@@ -72,9 +69,6 @@ function _inherits(subClass, superClass) {
72
69
  configurable: true
73
70
  }
74
71
  });
75
- Object.defineProperty(subClass, "prototype", {
76
- writable: false
77
- });
78
72
  if (superClass) _setPrototypeOf(subClass, superClass);
79
73
  }
80
74
 
@@ -133,8 +127,6 @@ function _assertThisInitialized(self) {
133
127
  function _possibleConstructorReturn(self, call) {
134
128
  if (call && (typeof call === "object" || typeof call === "function")) {
135
129
  return call;
136
- } else if (call !== void 0) {
137
- throw new TypeError("Derived constructors may only return object or undefined");
138
130
  }
139
131
 
140
132
  return _assertThisInitialized(self);
@@ -168,7 +160,7 @@ function _superPropBase(object, property) {
168
160
  return object;
169
161
  }
170
162
 
171
- function _get() {
163
+ function _get(target, property, receiver) {
172
164
  if (typeof Reflect !== "undefined" && Reflect.get) {
173
165
  _get = Reflect.get;
174
166
  } else {
@@ -179,14 +171,14 @@ function _get() {
179
171
  var desc = Object.getOwnPropertyDescriptor(base, property);
180
172
 
181
173
  if (desc.get) {
182
- return desc.get.call(arguments.length < 3 ? target : receiver);
174
+ return desc.get.call(receiver);
183
175
  }
184
176
 
185
177
  return desc.value;
186
178
  };
187
179
  }
188
180
 
189
- return _get.apply(this, arguments);
181
+ return _get(target, property, receiver || target);
190
182
  }
191
183
 
192
184
  const API_USER_INFO_KEY = '@evergis/user-info';
@@ -323,6 +315,124 @@ let Service = /*#__PURE__*/_createClass(function Service(http) {
323
315
  this.http = http;
324
316
  });
325
317
 
318
+ /**
319
+ * @title Spatial Processing Core API
320
+ * @version 1.5.1.0
321
+ * @baseUrl /sp
322
+ */
323
+
324
+ let DataSourceService = /*#__PURE__*/function (_Service) {
325
+ _inherits(DataSourceService, _Service);
326
+
327
+ var _super = /*#__PURE__*/_createSuper(DataSourceService);
328
+
329
+ function DataSourceService() {
330
+ _classCallCheck(this, DataSourceService);
331
+
332
+ return _super.apply(this, arguments);
333
+ }
334
+
335
+ _createClass(DataSourceService, [{
336
+ key: "getDataSourcesList",
337
+ value:
338
+ /**
339
+ * No description
340
+ *
341
+ * @tags DataSource
342
+ * @name GetDataSourcesList
343
+ * @operationId DataSourceController_GetDataSourcesList
344
+ * @summary Returns list of the available data sources.
345
+ * @request GET:/ds
346
+ * @response `200` OK
347
+ */
348
+ function getDataSourcesList(query) {
349
+ return this.http.get("/ds", query).json();
350
+ }
351
+ /**
352
+ * No description
353
+ *
354
+ * @tags DataSource
355
+ * @name CreateDataSource
356
+ * @operationId DataSourceController_CreateDataSource
357
+ * @summary Create data source.
358
+ * @request POST:/ds
359
+ * @response `200` OK
360
+ */
361
+
362
+ }, {
363
+ key: "createDataSource",
364
+ value: function createDataSource(data) {
365
+ return this.http.post("/ds", data).then(() => {});
366
+ }
367
+ /**
368
+ * No description
369
+ *
370
+ * @tags DataSource
371
+ * @name UpdateDataSource
372
+ * @operationId DataSourceController_UpdateDataSource
373
+ * @summary Update data source.
374
+ * @request PATCH:/ds
375
+ * @response `200` OK
376
+ */
377
+
378
+ }, {
379
+ key: "updateDataSource",
380
+ value: function updateDataSource(data) {
381
+ return this.http.patch("/ds", data).then(() => {});
382
+ }
383
+ /**
384
+ * No description
385
+ *
386
+ * @tags DataSource
387
+ * @name GetDataSource
388
+ * @operationId DataSourceController_GetDataSource
389
+ * @summary Get data source by name.
390
+ * @request GET:/ds/{name}
391
+ * @response `200` OK
392
+ */
393
+
394
+ }, {
395
+ key: "getDataSource",
396
+ value: function getDataSource(name) {
397
+ return this.http.get("/ds/" + name).json();
398
+ }
399
+ /**
400
+ * No description
401
+ *
402
+ * @tags DataSource
403
+ * @name RemoveDataSource
404
+ * @operationId DataSourceController_RemoveDataSource
405
+ * @summary Remove data source by name.
406
+ * @request DELETE:/ds/{name}
407
+ * @response `200` OK
408
+ */
409
+
410
+ }, {
411
+ key: "removeDataSource",
412
+ value: function removeDataSource(name) {
413
+ return this.http.delete("/ds/" + name, null).then(() => {});
414
+ }
415
+ /**
416
+ * No description
417
+ *
418
+ * @tags DataSource
419
+ * @name TestConnection
420
+ * @operationId DataSourceController_TestConnection
421
+ * @summary Test ds connection.
422
+ * @request POST:/ds/testConnection
423
+ * @response `200` OK
424
+ */
425
+
426
+ }, {
427
+ key: "testConnection",
428
+ value: function testConnection(data) {
429
+ return this.http.post("/ds/testConnection", data).json();
430
+ }
431
+ }]);
432
+
433
+ return DataSourceService;
434
+ }(Service);
435
+
326
436
  /**
327
437
  * @title Spatial Processing Core API
328
438
  * @version 1.5.1.0
@@ -5078,8 +5188,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
5078
5188
  || event.code === 4002
5079
5189
  /* InvalidSession */
5080
5190
  ) {
5081
- _this.connectStatus = exports.ConnectionStatus.SessionClosed;
5082
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
5191
+ _this.connectStatus = exports.ConnectionStatus.SessionClosed;
5192
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
5083
5193
  _this.connectStatus = exports.ConnectionStatus.Break;
5084
5194
  _this.reconnectTries++;
5085
5195
 
@@ -5911,12 +6021,12 @@ let Resources = /*#__PURE__*/function () {
5911
6021
  }, {
5912
6022
  key: "getDependentNames",
5913
6023
  value: function getDependentNames(deps, depType) {
5914
- return deps.filter(_ref => {
6024
+ return deps.filter((_ref) => {
5915
6025
  let {
5916
6026
  type
5917
6027
  } = _ref;
5918
6028
  return type === depType;
5919
- }).map(_ref2 => {
6029
+ }).map((_ref2) => {
5920
6030
  let {
5921
6031
  name
5922
6032
  } = _ref2;
@@ -6372,7 +6482,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
6372
6482
  const taskProgress = await this.getTaskProgress(id);
6373
6483
  this.resolveTaskStatus(taskProgress, resolve, reject);
6374
6484
 
6375
- const taskResultCallback = async _ref => {
6485
+ const taskResultCallback = async (_ref) => {
6376
6486
  let {
6377
6487
  data
6378
6488
  } = _ref;
@@ -7608,6 +7718,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7608
7718
  _this.eql = new Eql(_this.http);
7609
7719
  _this.catalog = new CatalogService(_this.http);
7610
7720
  _this.queryToken = new QueryTokenAccessService(_this.http);
7721
+ _this.dataSource = new DataSourceService(_this.http);
7611
7722
  _this.names = new Names({
7612
7723
  account: _this.account
7613
7724
  });
@@ -8152,6 +8263,7 @@ function isFeatureLayer(layer) {
8152
8263
  CatalogResourceType["Table"] = "Table";
8153
8264
  CatalogResourceType["File"] = "File";
8154
8265
  CatalogResourceType["TaskPrototype"] = "TaskPrototype";
8266
+ CatalogResourceType["DataSource"] = "DataSource";
8155
8267
  })(exports.CatalogResourceType || (exports.CatalogResourceType = {}));
8156
8268
 
8157
8269
  (function (ClassificationType) {
@@ -8198,6 +8310,7 @@ function isFeatureLayer(layer) {
8198
8310
 
8199
8311
  (function (DataSourceType) {
8200
8312
  DataSourceType["Postgres"] = "Postgres";
8313
+ DataSourceType["Trino"] = "Trino";
8201
8314
  DataSourceType["S3"] = "S3";
8202
8315
  DataSourceType["GisServer"] = "GisServer";
8203
8316
  })(exports.DataSourceType || (exports.DataSourceType = {}));
@@ -8383,6 +8496,7 @@ function isFeatureLayer(layer) {
8383
8496
  ResourceTypeFilter["ProxyService"] = "ProxyService";
8384
8497
  ResourceTypeFilter["RemoteTileService"] = "RemoteTileService";
8385
8498
  ResourceTypeFilter["File"] = "File";
8499
+ ResourceTypeFilter["DataSource"] = "DataSource";
8386
8500
  })(exports.ResourceTypeFilter || (exports.ResourceTypeFilter = {}));
8387
8501
 
8388
8502
  (function (ResourceTypeLink) {