@evergis/api 3.0.206 → 3.0.207

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,108 @@ 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
+
417
+ return DataSourceService;
418
+ }(Service);
419
+
326
420
  /**
327
421
  * @title Spatial Processing Core API
328
422
  * @version 1.5.1.0
@@ -5078,8 +5172,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
5078
5172
  || event.code === 4002
5079
5173
  /* InvalidSession */
5080
5174
  ) {
5081
- _this.connectStatus = exports.ConnectionStatus.SessionClosed;
5082
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
5175
+ _this.connectStatus = exports.ConnectionStatus.SessionClosed;
5176
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
5083
5177
  _this.connectStatus = exports.ConnectionStatus.Break;
5084
5178
  _this.reconnectTries++;
5085
5179
 
@@ -5911,12 +6005,12 @@ let Resources = /*#__PURE__*/function () {
5911
6005
  }, {
5912
6006
  key: "getDependentNames",
5913
6007
  value: function getDependentNames(deps, depType) {
5914
- return deps.filter(_ref => {
6008
+ return deps.filter((_ref) => {
5915
6009
  let {
5916
6010
  type
5917
6011
  } = _ref;
5918
6012
  return type === depType;
5919
- }).map(_ref2 => {
6013
+ }).map((_ref2) => {
5920
6014
  let {
5921
6015
  name
5922
6016
  } = _ref2;
@@ -6372,7 +6466,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
6372
6466
  const taskProgress = await this.getTaskProgress(id);
6373
6467
  this.resolveTaskStatus(taskProgress, resolve, reject);
6374
6468
 
6375
- const taskResultCallback = async _ref => {
6469
+ const taskResultCallback = async (_ref) => {
6376
6470
  let {
6377
6471
  data
6378
6472
  } = _ref;
@@ -7608,6 +7702,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
7608
7702
  _this.eql = new Eql(_this.http);
7609
7703
  _this.catalog = new CatalogService(_this.http);
7610
7704
  _this.queryToken = new QueryTokenAccessService(_this.http);
7705
+ _this.dataSource = new DataSourceService(_this.http);
7611
7706
  _this.names = new Names({
7612
7707
  account: _this.account
7613
7708
  });
@@ -8152,6 +8247,7 @@ function isFeatureLayer(layer) {
8152
8247
  CatalogResourceType["Table"] = "Table";
8153
8248
  CatalogResourceType["File"] = "File";
8154
8249
  CatalogResourceType["TaskPrototype"] = "TaskPrototype";
8250
+ CatalogResourceType["DataSource"] = "DataSource";
8155
8251
  })(exports.CatalogResourceType || (exports.CatalogResourceType = {}));
8156
8252
 
8157
8253
  (function (ClassificationType) {
@@ -8198,6 +8294,7 @@ function isFeatureLayer(layer) {
8198
8294
 
8199
8295
  (function (DataSourceType) {
8200
8296
  DataSourceType["Postgres"] = "Postgres";
8297
+ DataSourceType["Trino"] = "Trino";
8201
8298
  DataSourceType["S3"] = "S3";
8202
8299
  DataSourceType["GisServer"] = "GisServer";
8203
8300
  })(exports.DataSourceType || (exports.DataSourceType = {}));