@evergis/api 3.0.70 → 3.0.73

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.
@@ -34,6 +34,9 @@ function _defineProperties(target, props) {
34
34
  function _createClass(Constructor, protoProps, staticProps) {
35
35
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
36
36
  if (staticProps) _defineProperties(Constructor, staticProps);
37
+ Object.defineProperty(Constructor, "prototype", {
38
+ writable: false
39
+ });
37
40
  return Constructor;
38
41
  }
39
42
 
@@ -67,6 +70,9 @@ function _inherits(subClass, superClass) {
67
70
  configurable: true
68
71
  }
69
72
  });
73
+ Object.defineProperty(subClass, "prototype", {
74
+ writable: false
75
+ });
70
76
  if (superClass) _setPrototypeOf(subClass, superClass);
71
77
  }
72
78
 
@@ -125,6 +131,8 @@ function _assertThisInitialized(self) {
125
131
  function _possibleConstructorReturn(self, call) {
126
132
  if (call && (typeof call === "object" || typeof call === "function")) {
127
133
  return call;
134
+ } else if (call !== void 0) {
135
+ throw new TypeError("Derived constructors may only return object or undefined");
128
136
  }
129
137
 
130
138
  return _assertThisInitialized(self);
@@ -158,7 +166,7 @@ function _superPropBase(object, property) {
158
166
  return object;
159
167
  }
160
168
 
161
- function _get(target, property, receiver) {
169
+ function _get() {
162
170
  if (typeof Reflect !== "undefined" && Reflect.get) {
163
171
  _get = Reflect.get;
164
172
  } else {
@@ -169,14 +177,14 @@ function _get(target, property, receiver) {
169
177
  var desc = Object.getOwnPropertyDescriptor(base, property);
170
178
 
171
179
  if (desc.get) {
172
- return desc.get.call(receiver);
180
+ return desc.get.call(arguments.length < 3 ? target : receiver);
173
181
  }
174
182
 
175
183
  return desc.value;
176
184
  };
177
185
  }
178
186
 
179
- return _get(target, property, receiver || target);
187
+ return _get.apply(this, arguments);
180
188
  }
181
189
 
182
190
  /* eslint-disable */
@@ -857,8 +865,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
857
865
  || event.code === 4002
858
866
  /* InvalidSession */
859
867
  ) {
860
- _this.connectStatus = exports.ConnectionStatus.SessionClosed;
861
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
868
+ _this.connectStatus = exports.ConnectionStatus.SessionClosed;
869
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
862
870
  _this.connectStatus = exports.ConnectionStatus.Break;
863
871
  _this.reconnectTries++;
864
872
 
@@ -1364,7 +1372,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
1364
1372
  const taskProgress = await this.getTaskProgress(id);
1365
1373
  this.resolveTaskStatus(taskProgress, resolve, reject);
1366
1374
 
1367
- const taskResultCallback = async (_ref) => {
1375
+ const taskResultCallback = async _ref => {
1368
1376
  let {
1369
1377
  data
1370
1378
  } = _ref;
@@ -3475,12 +3483,12 @@ let Resources = /*#__PURE__*/function () {
3475
3483
  }, {
3476
3484
  key: "getDependentNames",
3477
3485
  value: function getDependentNames(deps, depType) {
3478
- return deps.filter((_ref) => {
3486
+ return deps.filter(_ref => {
3479
3487
  let {
3480
3488
  type
3481
3489
  } = _ref;
3482
3490
  return type === depType;
3483
- }).map((_ref2) => {
3491
+ }).map(_ref2 => {
3484
3492
  let {
3485
3493
  name
3486
3494
  } = _ref2;
@@ -3573,6 +3581,38 @@ let StyleService = /*#__PURE__*/function (_Service) {
3573
3581
  value: function getAllFonts() {
3574
3582
  return this.http.get("/styles/fonts").json();
3575
3583
  }
3584
+ /**
3585
+ * No description
3586
+ *
3587
+ * @tags StyleService
3588
+ * @name AddFont
3589
+ * @operationId StyleServiceController_AddFont
3590
+ * @summary Install new font.
3591
+ * @request POST:/styles/fonts
3592
+ * @response `200` Success
3593
+ */
3594
+
3595
+ }, {
3596
+ key: "addFont",
3597
+ value: function addFont(data) {
3598
+ return this.http.post("/styles/fonts", toFormData(data)).then(() => {});
3599
+ }
3600
+ /**
3601
+ * No description
3602
+ *
3603
+ * @tags StyleService
3604
+ * @name RemoveFont
3605
+ * @operationId StyleServiceController_RemoveFont
3606
+ * @summary Remove installed font.
3607
+ * @request DELETE:/styles/fonts
3608
+ * @response `200` Success
3609
+ */
3610
+
3611
+ }, {
3612
+ key: "removeFont",
3613
+ value: function removeFont(query) {
3614
+ return this.http.delete("/styles/fonts", null, query).then(() => {});
3615
+ }
3576
3616
  }]);
3577
3617
 
3578
3618
  return StyleService;
@@ -5468,6 +5508,86 @@ let IceRouter = /*#__PURE__*/function (_IceRouterService) {
5468
5508
  return _createClass(IceRouter);
5469
5509
  }(IceRouterService);
5470
5510
 
5511
+ /**
5512
+ * @title Spatial Processing Core API
5513
+ * @version v0.6.0
5514
+ * @baseUrl /sp
5515
+ */
5516
+
5517
+ let StatisticService = /*#__PURE__*/function (_Service) {
5518
+ _inherits(StatisticService, _Service);
5519
+
5520
+ var _super = /*#__PURE__*/_createSuper(StatisticService);
5521
+
5522
+ function StatisticService() {
5523
+ _classCallCheck(this, StatisticService);
5524
+
5525
+ return _super.apply(this, arguments);
5526
+ }
5527
+
5528
+ _createClass(StatisticService, [{
5529
+ key: "statisticsDb",
5530
+ value:
5531
+ /**
5532
+ * No description
5533
+ *
5534
+ * @tags Statistic
5535
+ * @name StatisticsDb
5536
+ * @operationId StatisticController_StatisticsDb
5537
+ * @summary Calculates statistics for layer attribute.
5538
+ * @request GET:/statistics
5539
+ * @response `200` Success
5540
+ */
5541
+ function statisticsDb(query) {
5542
+ return this.http.get("/statistics", query).json();
5543
+ }
5544
+ /**
5545
+ * No description
5546
+ *
5547
+ * @tags Statistic
5548
+ * @name Classify
5549
+ * @operationId StatisticController_Classify
5550
+ * @summary Returns the classified attribute values that correspond to the given number of classes and given condition.
5551
+ * @request GET:/classify
5552
+ * @response `200` Success
5553
+ */
5554
+
5555
+ }, {
5556
+ key: "classify",
5557
+ value: function classify(query) {
5558
+ return this.http.get("/classify", query).json();
5559
+ }
5560
+ }]);
5561
+
5562
+ return StatisticService;
5563
+ }(Service);
5564
+
5565
+ let Statistic = /*#__PURE__*/function (_StatisticService) {
5566
+ _inherits(Statistic, _StatisticService);
5567
+
5568
+ var _super = /*#__PURE__*/_createSuper(Statistic);
5569
+
5570
+ function Statistic() {
5571
+ _classCallCheck(this, Statistic);
5572
+
5573
+ return _super.apply(this, arguments);
5574
+ }
5575
+
5576
+ _createClass(Statistic, [{
5577
+ key: "getStatistic",
5578
+ value: function getStatistic(params) {
5579
+ return this.statisticsDb(params);
5580
+ }
5581
+ }, {
5582
+ key: "getClassify",
5583
+ value: function getClassify(params) {
5584
+ return this.classify(params);
5585
+ }
5586
+ }]);
5587
+
5588
+ return Statistic;
5589
+ }(StatisticService);
5590
+
5471
5591
  /**
5472
5592
  * @title Spatial Processing Core API
5473
5593
  * @version v0.6.0
@@ -5682,6 +5802,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
5682
5802
  _this.clientSettings = new ClientSettings(_this.http);
5683
5803
  _this.portalSettings = new PortalSettings(_this.http);
5684
5804
  _this.iceRouter = new IceRouter(_this.http);
5805
+ _this.statistic = new Statistic(_this.http);
5685
5806
  _this.names = new Names({
5686
5807
  account: _this.account
5687
5808
  });
@@ -6108,6 +6229,12 @@ function isFeatureLayer(layer) {
6108
6229
  AggregationFunction["Sum"] = "Sum";
6109
6230
  AggregationFunction["Extent"] = "Extent";
6110
6231
  AggregationFunction["Count"] = "Count";
6232
+ AggregationFunction["First"] = "First";
6233
+ AggregationFunction["Last"] = "Last";
6234
+ AggregationFunction["Median"] = "Median";
6235
+ AggregationFunction["Mod"] = "Mod";
6236
+ AggregationFunction["StdDeviation"] = "StdDeviation";
6237
+ AggregationFunction["SumOfProduct"] = "SumOfProduct";
6111
6238
  AggregationFunction["OnlyValue"] = "OnlyValue";
6112
6239
  AggregationFunction["WeightedAvg"] = "WeightedAvg";
6113
6240
  AggregationFunction["DensityIndicators"] = "DensityIndicators";
@@ -6129,11 +6256,17 @@ function isFeatureLayer(layer) {
6129
6256
  })(exports.AttributeType || (exports.AttributeType = {}));
6130
6257
 
6131
6258
  (function (ClassificationType) {
6259
+ ClassificationType["None"] = "none";
6132
6260
  ClassificationType["NaturalBreaks"] = "naturalBreaks";
6133
6261
  ClassificationType["EqualInterval"] = "equalInterval";
6134
6262
  ClassificationType["Quantile"] = "quantile";
6135
6263
  })(exports.ClassificationType || (exports.ClassificationType = {}));
6136
6264
 
6265
+ (function (ClassifyAttributeType) {
6266
+ ClassifyAttributeType["Decimal"] = "decimal";
6267
+ ClassifyAttributeType["DateTime"] = "dateTime";
6268
+ })(exports.ClassifyAttributeType || (exports.ClassifyAttributeType = {}));
6269
+
6137
6270
  (function (ConfigurationErrorEnum) {
6138
6271
  ConfigurationErrorEnum["Unknown"] = "Unknown";
6139
6272
  ConfigurationErrorEnum["SerializeError"] = "SerializeError";
@@ -6212,21 +6345,15 @@ function isFeatureLayer(layer) {
6212
6345
  (function (FontWeight) {
6213
6346
  FontWeight["Thin"] = "Thin";
6214
6347
  FontWeight["ExtraLight"] = "ExtraLight";
6215
- FontWeight["UltraLight"] = "UltraLight";
6216
6348
  FontWeight["Light"] = "Light";
6217
6349
  FontWeight["SemiLight"] = "SemiLight";
6218
6350
  FontWeight["Normal"] = "Normal";
6219
- FontWeight["Regular"] = "Regular";
6220
6351
  FontWeight["Medium"] = "Medium";
6221
6352
  FontWeight["DemiBold"] = "DemiBold";
6222
- FontWeight["SemiBold"] = "SemiBold";
6223
6353
  FontWeight["Bold"] = "Bold";
6224
6354
  FontWeight["ExtraBold"] = "ExtraBold";
6225
- FontWeight["UltraBold"] = "UltraBold";
6226
6355
  FontWeight["Black"] = "Black";
6227
- FontWeight["Heavy"] = "Heavy";
6228
6356
  FontWeight["ExtraBlack"] = "ExtraBlack";
6229
- FontWeight["UltraBlack"] = "UltraBlack";
6230
6357
  })(exports.FontWeight || (exports.FontWeight = {}));
6231
6358
 
6232
6359
  (function (GeometryType) {
@@ -6312,19 +6439,6 @@ function isFeatureLayer(layer) {
6312
6439
  ServerTaskStatus["Timeout"] = "Timeout";
6313
6440
  })(exports.ServerTaskStatus || (exports.ServerTaskStatus = {}));
6314
6441
 
6315
- (function (StatisticsType) {
6316
- StatisticsType["Min"] = "min";
6317
- StatisticsType["Max"] = "max";
6318
- StatisticsType["Avg"] = "avg";
6319
- StatisticsType["Med"] = "med";
6320
- StatisticsType["Mod"] = "mod";
6321
- StatisticsType["Sum"] = "sum";
6322
- StatisticsType["SumOfProduct"] = "sumOfProduct";
6323
- StatisticsType["Count"] = "count";
6324
- StatisticsType["FirstLast"] = "firstLast";
6325
- StatisticsType["StandardDeviation"] = "standardDeviation";
6326
- })(exports.StatisticsType || (exports.StatisticsType = {}));
6327
-
6328
6442
  (function (StringSubType) {
6329
6443
  StringSubType["None"] = "None";
6330
6444
  StringSubType["Image"] = "Image";
@@ -6385,6 +6499,7 @@ exports.Resources = Resources;
6385
6499
  exports.Scheduler = Scheduler;
6386
6500
  exports.Security = Security;
6387
6501
  exports.SpatialProcessor = SpatialProcessor;
6502
+ exports.Statistic = Statistic;
6388
6503
  exports.Styles = Styles;
6389
6504
  exports.Tables = Tables;
6390
6505
  exports.Tools = Tools;