@evergis/api 3.0.91 → 3.0.93

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 () {
@@ -853,8 +861,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
853
861
  || event.code === 4002
854
862
  /* InvalidSession */
855
863
  ) {
856
- _this.connectStatus = exports.ConnectionStatus.SessionClosed;
857
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
864
+ _this.connectStatus = exports.ConnectionStatus.SessionClosed;
865
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
858
866
  _this.connectStatus = exports.ConnectionStatus.Break;
859
867
  _this.reconnectTries++;
860
868
 
@@ -1360,7 +1368,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
1360
1368
  const taskProgress = await this.getTaskProgress(id);
1361
1369
  this.resolveTaskStatus(taskProgress, resolve, reject);
1362
1370
 
1363
- const taskResultCallback = async (_ref) => {
1371
+ const taskResultCallback = async _ref => {
1364
1372
  let {
1365
1373
  data
1366
1374
  } = _ref;
@@ -1537,6 +1545,24 @@ let LayersService = /*#__PURE__*/function (_Service) {
1537
1545
  type: 'ProxyService'
1538
1546
  }).json();
1539
1547
  }
1548
+ /**
1549
+ * No description
1550
+ *
1551
+ * @tags Layers
1552
+ * @name PublishRouteService
1553
+ * @operationId LayersController_PublishRouteService
1554
+ * @summary Creates new Route Service.
1555
+ * @request POST:/layers#type=RouteService
1556
+ * @response `200` Success
1557
+ */
1558
+
1559
+ }, {
1560
+ key: "publishRouteService",
1561
+ value: function publishRouteService(data) {
1562
+ return this.http.post("/layers", data, {
1563
+ type: 'RouteService'
1564
+ }).then(() => {});
1565
+ }
1540
1566
  /**
1541
1567
  * No description
1542
1568
  *
@@ -2239,6 +2265,22 @@ let LayersService = /*#__PURE__*/function (_Service) {
2239
2265
 
2240
2266
  return this.http.get("/layers/" + layerName + "/validateExpression", query).json();
2241
2267
  }
2268
+ /**
2269
+ * No description
2270
+ *
2271
+ * @tags Layers
2272
+ * @name CreateRoute
2273
+ * @operationId LayersController_CreateRoute
2274
+ * @summary Create new route (feature) from source features.
2275
+ * @request POST:/layers/{name}/createRoute
2276
+ * @response `200` Success
2277
+ */
2278
+
2279
+ }, {
2280
+ key: "createRoute",
2281
+ value: function createRoute(name, data) {
2282
+ return this.http.post("/layers/" + name + "/createRoute", data).json();
2283
+ }
2242
2284
  /**
2243
2285
  * No description
2244
2286
  *
@@ -3438,12 +3480,12 @@ let Resources = /*#__PURE__*/function () {
3438
3480
  }, {
3439
3481
  key: "getDependentNames",
3440
3482
  value: function getDependentNames(deps, depType) {
3441
- return deps.filter((_ref) => {
3483
+ return deps.filter(_ref => {
3442
3484
  let {
3443
3485
  type
3444
3486
  } = _ref;
3445
3487
  return type === depType;
3446
- }).map((_ref2) => {
3488
+ }).map(_ref2 => {
3447
3489
  let {
3448
3490
  name
3449
3491
  } = _ref2;
@@ -3854,8 +3896,24 @@ let GeneralService = /*#__PURE__*/function (_Service) {
3854
3896
 
3855
3897
  }, {
3856
3898
  key: "favicon",
3857
- value: function favicon() {
3858
- return this.http.createUrl("/favicon.ico");
3899
+ value: function favicon(query) {
3900
+ return this.http.createUrl("/favicon.ico", query);
3901
+ }
3902
+ /**
3903
+ * No description
3904
+ *
3905
+ * @tags General
3906
+ * @name Logo
3907
+ * @operationId GeneralController_Logo
3908
+ * @summary Returns logo.
3909
+ * @request GET:/logo.png
3910
+ * @response `200` Success
3911
+ */
3912
+
3913
+ }, {
3914
+ key: "logo",
3915
+ value: function logo(query) {
3916
+ return this.http.createUrl("/logo.png", query);
3859
3917
  }
3860
3918
  /**
3861
3919
  * No description
@@ -5363,7 +5421,9 @@ let Names = /*#__PURE__*/function () {
5363
5421
  value: function extractResource(resourceName) {
5364
5422
  if (resourceName) {
5365
5423
  if (resourceName.includes(exports.ResourceSeparator.Server)) {
5366
- const [workspace, name] = resourceName.split(exports.ResourceSeparator.Server, 2);
5424
+ const matches = resourceName.split(exports.ResourceSeparator.Server);
5425
+ const name = matches.pop();
5426
+ const workspace = matches.join(exports.ResourceSeparator.Server);
5367
5427
  return {
5368
5428
  workspace,
5369
5429
  name
@@ -5865,7 +5925,9 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
5865
5925
  account: _this.account
5866
5926
  });
5867
5927
  _this.snappingHub = snappingHubUrl ? new signalr.HubConnectionBuilder().withUrl(snappingHubUrl, {
5868
- withCredentials: true
5928
+ withCredentials: true,
5929
+ skipNegotiation: true,
5930
+ transport: signalr.HttpTransportType.WebSockets
5869
5931
  }).withAutomaticReconnect().build() : null;
5870
5932
  return _this;
5871
5933
  }
@@ -6297,6 +6359,7 @@ function isFeatureLayer(layer) {
6297
6359
  AggregationFunction["Sum"] = "Sum";
6298
6360
  AggregationFunction["Extent"] = "Extent";
6299
6361
  AggregationFunction["Count"] = "Count";
6362
+ AggregationFunction["DistinctCount"] = "DistinctCount";
6300
6363
  AggregationFunction["First"] = "First";
6301
6364
  AggregationFunction["Last"] = "Last";
6302
6365
  AggregationFunction["Median"] = "Median";
@@ -6328,7 +6391,7 @@ function isFeatureLayer(layer) {
6328
6391
  ClassificationType["NaturalBreaks"] = "naturalBreaks";
6329
6392
  ClassificationType["EqualInterval"] = "equalInterval";
6330
6393
  ClassificationType["Quantile"] = "quantile";
6331
- ClassificationType["Distinct"] = "unique";
6394
+ ClassificationType["Unique"] = "unique";
6332
6395
  })(exports.ClassificationType || (exports.ClassificationType = {}));
6333
6396
 
6334
6397
  (function (ClassifyAttributeType) {
@@ -6358,6 +6421,7 @@ function isFeatureLayer(layer) {
6358
6421
  ConfigurationErrorEnum["ColumnLoadingError"] = "ColumnLoadingError";
6359
6422
  ConfigurationErrorEnum["InvalidAttributeFormat"] = "InvalidAttributeFormat";
6360
6423
  ConfigurationErrorEnum["DataSourceNotFound"] = "DataSourceNotFound";
6424
+ ConfigurationErrorEnum["DuplicateColumns"] = "DuplicateColumns";
6361
6425
  })(exports.ConfigurationErrorEnum || (exports.ConfigurationErrorEnum = {}));
6362
6426
 
6363
6427
  (function (ErrorDetailsType) {
@@ -6491,6 +6555,7 @@ function isFeatureLayer(layer) {
6491
6555
  ResourceType["Project"] = "project";
6492
6556
  ResourceType["File"] = "file";
6493
6557
  ResourceType["Feature"] = "feature";
6558
+ ResourceType["Tag"] = "tag";
6494
6559
  })(exports.ResourceType || (exports.ResourceType = {}));
6495
6560
 
6496
6561
  (function (ResourceTypeLink) {