@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.
package/dist/api.esm.js CHANGED
@@ -28,6 +28,9 @@ function _defineProperties(target, props) {
28
28
  function _createClass(Constructor, protoProps, staticProps) {
29
29
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
30
30
  if (staticProps) _defineProperties(Constructor, staticProps);
31
+ Object.defineProperty(Constructor, "prototype", {
32
+ writable: false
33
+ });
31
34
  return Constructor;
32
35
  }
33
36
 
@@ -61,6 +64,9 @@ function _inherits(subClass, superClass) {
61
64
  configurable: true
62
65
  }
63
66
  });
67
+ Object.defineProperty(subClass, "prototype", {
68
+ writable: false
69
+ });
64
70
  if (superClass) _setPrototypeOf(subClass, superClass);
65
71
  }
66
72
 
@@ -119,6 +125,8 @@ function _assertThisInitialized(self) {
119
125
  function _possibleConstructorReturn(self, call) {
120
126
  if (call && (typeof call === "object" || typeof call === "function")) {
121
127
  return call;
128
+ } else if (call !== void 0) {
129
+ throw new TypeError("Derived constructors may only return object or undefined");
122
130
  }
123
131
 
124
132
  return _assertThisInitialized(self);
@@ -152,7 +160,7 @@ function _superPropBase(object, property) {
152
160
  return object;
153
161
  }
154
162
 
155
- function _get(target, property, receiver) {
163
+ function _get() {
156
164
  if (typeof Reflect !== "undefined" && Reflect.get) {
157
165
  _get = Reflect.get;
158
166
  } else {
@@ -163,14 +171,14 @@ function _get(target, property, receiver) {
163
171
  var desc = Object.getOwnPropertyDescriptor(base, property);
164
172
 
165
173
  if (desc.get) {
166
- return desc.get.call(receiver);
174
+ return desc.get.call(arguments.length < 3 ? target : receiver);
167
175
  }
168
176
 
169
177
  return desc.value;
170
178
  };
171
179
  }
172
180
 
173
- return _get(target, property, receiver || target);
181
+ return _get.apply(this, arguments);
174
182
  }
175
183
 
176
184
  /* eslint-disable */
@@ -853,8 +861,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
853
861
  || event.code === 4002
854
862
  /* InvalidSession */
855
863
  ) {
856
- _this.connectStatus = ConnectionStatus.SessionClosed;
857
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
864
+ _this.connectStatus = ConnectionStatus.SessionClosed;
865
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
858
866
  _this.connectStatus = 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;
@@ -3473,12 +3481,12 @@ let Resources = /*#__PURE__*/function () {
3473
3481
  }, {
3474
3482
  key: "getDependentNames",
3475
3483
  value: function getDependentNames(deps, depType) {
3476
- return deps.filter((_ref) => {
3484
+ return deps.filter(_ref => {
3477
3485
  let {
3478
3486
  type
3479
3487
  } = _ref;
3480
3488
  return type === depType;
3481
- }).map((_ref2) => {
3489
+ }).map(_ref2 => {
3482
3490
  let {
3483
3491
  name
3484
3492
  } = _ref2;
@@ -3571,6 +3579,38 @@ let StyleService = /*#__PURE__*/function (_Service) {
3571
3579
  value: function getAllFonts() {
3572
3580
  return this.http.get("/styles/fonts").json();
3573
3581
  }
3582
+ /**
3583
+ * No description
3584
+ *
3585
+ * @tags StyleService
3586
+ * @name AddFont
3587
+ * @operationId StyleServiceController_AddFont
3588
+ * @summary Install new font.
3589
+ * @request POST:/styles/fonts
3590
+ * @response `200` Success
3591
+ */
3592
+
3593
+ }, {
3594
+ key: "addFont",
3595
+ value: function addFont(data) {
3596
+ return this.http.post("/styles/fonts", toFormData(data)).then(() => {});
3597
+ }
3598
+ /**
3599
+ * No description
3600
+ *
3601
+ * @tags StyleService
3602
+ * @name RemoveFont
3603
+ * @operationId StyleServiceController_RemoveFont
3604
+ * @summary Remove installed font.
3605
+ * @request DELETE:/styles/fonts
3606
+ * @response `200` Success
3607
+ */
3608
+
3609
+ }, {
3610
+ key: "removeFont",
3611
+ value: function removeFont(query) {
3612
+ return this.http.delete("/styles/fonts", null, query).then(() => {});
3613
+ }
3574
3614
  }]);
3575
3615
 
3576
3616
  return StyleService;
@@ -5469,6 +5509,86 @@ let IceRouter = /*#__PURE__*/function (_IceRouterService) {
5469
5509
  return _createClass(IceRouter);
5470
5510
  }(IceRouterService);
5471
5511
 
5512
+ /**
5513
+ * @title Spatial Processing Core API
5514
+ * @version v0.6.0
5515
+ * @baseUrl /sp
5516
+ */
5517
+
5518
+ let StatisticService = /*#__PURE__*/function (_Service) {
5519
+ _inherits(StatisticService, _Service);
5520
+
5521
+ var _super = /*#__PURE__*/_createSuper(StatisticService);
5522
+
5523
+ function StatisticService() {
5524
+ _classCallCheck(this, StatisticService);
5525
+
5526
+ return _super.apply(this, arguments);
5527
+ }
5528
+
5529
+ _createClass(StatisticService, [{
5530
+ key: "statisticsDb",
5531
+ value:
5532
+ /**
5533
+ * No description
5534
+ *
5535
+ * @tags Statistic
5536
+ * @name StatisticsDb
5537
+ * @operationId StatisticController_StatisticsDb
5538
+ * @summary Calculates statistics for layer attribute.
5539
+ * @request GET:/statistics
5540
+ * @response `200` Success
5541
+ */
5542
+ function statisticsDb(query) {
5543
+ return this.http.get("/statistics", query).json();
5544
+ }
5545
+ /**
5546
+ * No description
5547
+ *
5548
+ * @tags Statistic
5549
+ * @name Classify
5550
+ * @operationId StatisticController_Classify
5551
+ * @summary Returns the classified attribute values that correspond to the given number of classes and given condition.
5552
+ * @request GET:/classify
5553
+ * @response `200` Success
5554
+ */
5555
+
5556
+ }, {
5557
+ key: "classify",
5558
+ value: function classify(query) {
5559
+ return this.http.get("/classify", query).json();
5560
+ }
5561
+ }]);
5562
+
5563
+ return StatisticService;
5564
+ }(Service);
5565
+
5566
+ let Statistic = /*#__PURE__*/function (_StatisticService) {
5567
+ _inherits(Statistic, _StatisticService);
5568
+
5569
+ var _super = /*#__PURE__*/_createSuper(Statistic);
5570
+
5571
+ function Statistic() {
5572
+ _classCallCheck(this, Statistic);
5573
+
5574
+ return _super.apply(this, arguments);
5575
+ }
5576
+
5577
+ _createClass(Statistic, [{
5578
+ key: "getStatistic",
5579
+ value: function getStatistic(params) {
5580
+ return this.statisticsDb(params);
5581
+ }
5582
+ }, {
5583
+ key: "getClassify",
5584
+ value: function getClassify(params) {
5585
+ return this.classify(params);
5586
+ }
5587
+ }]);
5588
+
5589
+ return Statistic;
5590
+ }(StatisticService);
5591
+
5472
5592
  /**
5473
5593
  * @title Spatial Processing Core API
5474
5594
  * @version v0.6.0
@@ -5687,6 +5807,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
5687
5807
  _this.clientSettings = new ClientSettings(_this.http);
5688
5808
  _this.portalSettings = new PortalSettings(_this.http);
5689
5809
  _this.iceRouter = new IceRouter(_this.http);
5810
+ _this.statistic = new Statistic(_this.http);
5690
5811
  _this.names = new Names({
5691
5812
  account: _this.account
5692
5813
  });
@@ -6117,29 +6238,41 @@ function isFeatureLayer(layer) {
6117
6238
 
6118
6239
  /**
6119
6240
  *
6120
-
6241
+
6121
6242
  None
6122
-
6243
+
6123
6244
  Array
6124
-
6245
+
6125
6246
  Min
6126
-
6247
+
6127
6248
  Max
6128
-
6249
+
6129
6250
  Avg
6130
-
6251
+
6131
6252
  Sum
6132
-
6253
+
6133
6254
  Extent
6134
-
6255
+
6135
6256
  Count
6136
-
6257
+
6258
+ First
6259
+
6260
+ Last
6261
+
6262
+ Median
6263
+
6264
+ Mod
6265
+
6266
+ StdDeviation
6267
+
6268
+ SumOfProduct
6269
+
6137
6270
  OnlyValue
6138
-
6271
+
6139
6272
  WeightedAvg
6140
-
6273
+
6141
6274
  DensityIndicators
6142
-
6275
+
6143
6276
  DividedSum
6144
6277
  */
6145
6278
  var AggregationFunction;
@@ -6153,6 +6286,12 @@ var AggregationFunction;
6153
6286
  AggregationFunction["Sum"] = "Sum";
6154
6287
  AggregationFunction["Extent"] = "Extent";
6155
6288
  AggregationFunction["Count"] = "Count";
6289
+ AggregationFunction["First"] = "First";
6290
+ AggregationFunction["Last"] = "Last";
6291
+ AggregationFunction["Median"] = "Median";
6292
+ AggregationFunction["Mod"] = "Mod";
6293
+ AggregationFunction["StdDeviation"] = "StdDeviation";
6294
+ AggregationFunction["SumOfProduct"] = "SumOfProduct";
6156
6295
  AggregationFunction["OnlyValue"] = "OnlyValue";
6157
6296
  AggregationFunction["WeightedAvg"] = "WeightedAvg";
6158
6297
  AggregationFunction["DensityIndicators"] = "DensityIndicators";
@@ -6160,27 +6299,27 @@ var AggregationFunction;
6160
6299
  })(AggregationFunction || (AggregationFunction = {}));
6161
6300
  /**
6162
6301
  * Types of the attributes that are supported by the system.
6163
-
6302
+
6164
6303
  Unknown
6165
-
6304
+
6166
6305
  String
6167
-
6306
+
6168
6307
  Int32
6169
-
6308
+
6170
6309
  Int64
6171
-
6310
+
6172
6311
  Double
6173
-
6312
+
6174
6313
  DateTime
6175
-
6314
+
6176
6315
  Boolean
6177
-
6316
+
6178
6317
  Point
6179
-
6318
+
6180
6319
  Polyline
6181
-
6320
+
6182
6321
  Polygon
6183
-
6322
+
6184
6323
  Multipoint
6185
6324
  */
6186
6325
 
@@ -6202,11 +6341,13 @@ var AttributeType;
6202
6341
  })(AttributeType || (AttributeType = {}));
6203
6342
  /**
6204
6343
  * Describes classification methods.
6205
-
6344
+
6345
+ none
6346
+
6206
6347
  naturalBreaks
6207
-
6348
+
6208
6349
  equalInterval
6209
-
6350
+
6210
6351
  quantile
6211
6352
  */
6212
6353
 
@@ -6214,10 +6355,26 @@ quantile
6214
6355
  var ClassificationType;
6215
6356
 
6216
6357
  (function (ClassificationType) {
6358
+ ClassificationType["None"] = "none";
6217
6359
  ClassificationType["NaturalBreaks"] = "naturalBreaks";
6218
6360
  ClassificationType["EqualInterval"] = "equalInterval";
6219
6361
  ClassificationType["Quantile"] = "quantile";
6220
6362
  })(ClassificationType || (ClassificationType = {}));
6363
+ /**
6364
+ * Type of attribute.
6365
+
6366
+ decimal
6367
+
6368
+ dateTime
6369
+ */
6370
+
6371
+
6372
+ var ClassifyAttributeType;
6373
+
6374
+ (function (ClassifyAttributeType) {
6375
+ ClassifyAttributeType["Decimal"] = "decimal";
6376
+ ClassifyAttributeType["DateTime"] = "dateTime";
6377
+ })(ClassifyAttributeType || (ClassifyAttributeType = {}));
6221
6378
  /**
6222
6379
  * Types of errors that can occur during layer initialize.
6223
6380
  */
@@ -6249,15 +6406,15 @@ var ConfigurationErrorEnum;
6249
6406
  })(ConfigurationErrorEnum || (ConfigurationErrorEnum = {}));
6250
6407
  /**
6251
6408
  * Type of the error.
6252
-
6409
+
6253
6410
  ResourceLimitExceeded
6254
-
6411
+
6255
6412
  ResourceNotFound
6256
-
6413
+
6257
6414
  InternalError
6258
-
6415
+
6259
6416
  BadRequest
6260
-
6417
+
6261
6418
  DuplicateContent
6262
6419
  */
6263
6420
 
@@ -6312,9 +6469,9 @@ var ErrorType;
6312
6469
  })(ErrorType || (ErrorType = {}));
6313
6470
  /**
6314
6471
  * Type of the feature.
6315
-
6472
+
6316
6473
  Unknown
6317
-
6474
+
6318
6475
  GeometricFeature
6319
6476
  */
6320
6477
 
@@ -6347,35 +6504,29 @@ var FontWeight;
6347
6504
  (function (FontWeight) {
6348
6505
  FontWeight["Thin"] = "Thin";
6349
6506
  FontWeight["ExtraLight"] = "ExtraLight";
6350
- FontWeight["UltraLight"] = "UltraLight";
6351
6507
  FontWeight["Light"] = "Light";
6352
6508
  FontWeight["SemiLight"] = "SemiLight";
6353
6509
  FontWeight["Normal"] = "Normal";
6354
- FontWeight["Regular"] = "Regular";
6355
6510
  FontWeight["Medium"] = "Medium";
6356
6511
  FontWeight["DemiBold"] = "DemiBold";
6357
- FontWeight["SemiBold"] = "SemiBold";
6358
6512
  FontWeight["Bold"] = "Bold";
6359
6513
  FontWeight["ExtraBold"] = "ExtraBold";
6360
- FontWeight["UltraBold"] = "UltraBold";
6361
6514
  FontWeight["Black"] = "Black";
6362
- FontWeight["Heavy"] = "Heavy";
6363
6515
  FontWeight["ExtraBlack"] = "ExtraBlack";
6364
- FontWeight["UltraBlack"] = "UltraBlack";
6365
6516
  })(FontWeight || (FontWeight = {}));
6366
6517
  /**
6367
6518
  *
6368
-
6519
+
6369
6520
  unknown
6370
-
6521
+
6371
6522
  point
6372
-
6523
+
6373
6524
  polyline
6374
-
6525
+
6375
6526
  polygon
6376
-
6527
+
6377
6528
  envelope
6378
-
6529
+
6379
6530
  multipoint
6380
6531
  */
6381
6532
 
@@ -6392,13 +6543,13 @@ var GeometryType;
6392
6543
  })(GeometryType || (GeometryType = {}));
6393
6544
  /**
6394
6545
  * Resource group.
6395
-
6546
+
6396
6547
  my
6397
-
6548
+
6398
6549
  role
6399
-
6550
+
6400
6551
  public
6401
-
6552
+
6402
6553
  all
6403
6554
  */
6404
6555
 
@@ -6441,15 +6592,15 @@ var LineEndingType;
6441
6592
  })(LineEndingType || (LineEndingType = {}));
6442
6593
  /**
6443
6594
  *
6444
-
6595
+
6445
6596
  Unknown
6446
-
6597
+
6447
6598
  union
6448
-
6599
+
6449
6600
  intersection
6450
-
6601
+
6451
6602
  subtraction
6452
-
6603
+
6453
6604
  symDifference
6454
6605
  */
6455
6606
 
@@ -6465,19 +6616,19 @@ var Operation;
6465
6616
  })(Operation || (Operation = {}));
6466
6617
  /**
6467
6618
  * User permissions for server security objects (services, projects etc.)
6468
-
6619
+
6469
6620
  none
6470
-
6621
+
6471
6622
  configure
6472
-
6623
+
6473
6624
  write
6474
-
6625
+
6475
6626
  read
6476
-
6627
+
6477
6628
  read,configure
6478
-
6629
+
6479
6630
  read,write
6480
-
6631
+
6481
6632
  read,write,configure
6482
6633
  */
6483
6634
 
@@ -6495,15 +6646,15 @@ var Permissions;
6495
6646
  })(Permissions || (Permissions = {}));
6496
6647
  /**
6497
6648
  * Type of the authorization policy.
6498
-
6649
+
6499
6650
  Unknown
6500
-
6651
+
6501
6652
  CreateTable
6502
-
6653
+
6503
6654
  CreateLayer
6504
-
6655
+
6505
6656
  CreateProject
6506
-
6657
+
6507
6658
  MaxFeaturesInOneTable
6508
6659
  */
6509
6660
 
@@ -6519,17 +6670,17 @@ var PolicyType;
6519
6670
  })(PolicyType || (PolicyType = {}));
6520
6671
  /**
6521
6672
  * The `ResourceType` represents resource manager supports types.
6522
-
6673
+
6523
6674
  Unknown
6524
-
6675
+
6525
6676
  table
6526
-
6677
+
6527
6678
  layer
6528
-
6679
+
6529
6680
  project
6530
-
6681
+
6531
6682
  file
6532
-
6683
+
6533
6684
  feature
6534
6685
  */
6535
6686
 
@@ -6554,21 +6705,21 @@ var ResourceTypeLink;
6554
6705
  })(ResourceTypeLink || (ResourceTypeLink = {}));
6555
6706
  /**
6556
6707
  * Status of the server task.
6557
-
6708
+
6558
6709
  None
6559
-
6710
+
6560
6711
  Scheduled
6561
-
6712
+
6562
6713
  Planning
6563
-
6714
+
6564
6715
  Executing
6565
-
6716
+
6566
6717
  Completed
6567
-
6718
+
6568
6719
  Failed
6569
-
6720
+
6570
6721
  Canceled
6571
-
6722
+
6572
6723
  Timeout
6573
6724
  */
6574
6725
 
@@ -6586,51 +6737,12 @@ var ServerTaskStatus;
6586
6737
  ServerTaskStatus["Timeout"] = "Timeout";
6587
6738
  })(ServerTaskStatus || (ServerTaskStatus = {}));
6588
6739
  /**
6589
- * Describes statistics methods.
6590
-
6591
- min
6592
-
6593
- max
6594
-
6595
- avg
6596
-
6597
- med
6598
-
6599
- mod
6600
-
6601
- sum
6602
-
6603
- sumOfProduct
6604
-
6605
- count
6606
-
6607
- firstLast
6608
-
6609
- standardDeviation
6610
- */
6611
-
6612
-
6613
- var StatisticsType;
6614
-
6615
- (function (StatisticsType) {
6616
- StatisticsType["Min"] = "min";
6617
- StatisticsType["Max"] = "max";
6618
- StatisticsType["Avg"] = "avg";
6619
- StatisticsType["Med"] = "med";
6620
- StatisticsType["Mod"] = "mod";
6621
- StatisticsType["Sum"] = "sum";
6622
- StatisticsType["SumOfProduct"] = "sumOfProduct";
6623
- StatisticsType["Count"] = "count";
6624
- StatisticsType["FirstLast"] = "firstLast";
6625
- StatisticsType["StandardDeviation"] = "standardDeviation";
6626
- })(StatisticsType || (StatisticsType = {}));
6627
- /**
6628
6740
  * The `StringSubType` provides information about string attribute subtype.
6629
-
6741
+
6630
6742
  None
6631
-
6743
+
6632
6744
  Image
6633
-
6745
+
6634
6746
  PkkCode
6635
6747
  */
6636
6748
 
@@ -6668,5 +6780,5 @@ var TextVerticalAlignment;
6668
6780
  TextVerticalAlignment["Middle"] = "middle";
6669
6781
  })(TextVerticalAlignment || (TextVerticalAlignment = {}));
6670
6782
 
6671
- export { API_USER_INFO_KEY, Account, AccountPreview, AggregationFunction, Api, ApiEvent, AttributeType, BulkOperations, ClassificationType, ClientSettings, ConfigurationErrorEnum, ConnectionStatus, DependencyType, ErrorDetailsType, ErrorReason, ErrorType, EvergisDynamicLayer, EvergisTileLayer, External, FeatureType, FileUpload, FontStyle, FontWeight, GEOCODE_PROVIDER, General, Geocode, GeometryType, Group, HttpClient, IceRouter, Import, Layers, LayersManager, LineEndingSize, LineEndingType, Names, Namespace, Notification, NotificationEvent, Operation, Permissions, PolicyType, PortalSettings, Projects, ResourceCatalog, ResourceSeparator, ResourceType, ResourceTypeLink, Resources, Scheduler, Security, ServerTaskStatus, SpatialProcessor, StatisticsType, StringSubType, Styles, Tables, TextAlignment, TextVerticalAlignment, Tools, UrlPath, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, isEvergisDynamicLayer, isEvergisTileLayer, isFeatureLayer, isHTTPError, isHandledError, isLayer, isProjectContentItems, isString, isTileLayerService, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique };
6783
+ export { API_USER_INFO_KEY, Account, AccountPreview, AggregationFunction, Api, ApiEvent, AttributeType, BulkOperations, ClassificationType, ClassifyAttributeType, ClientSettings, ConfigurationErrorEnum, ConnectionStatus, DependencyType, ErrorDetailsType, ErrorReason, ErrorType, EvergisDynamicLayer, EvergisTileLayer, External, FeatureType, FileUpload, FontStyle, FontWeight, GEOCODE_PROVIDER, General, Geocode, GeometryType, Group, HttpClient, IceRouter, Import, Layers, LayersManager, LineEndingSize, LineEndingType, Names, Namespace, Notification, NotificationEvent, Operation, Permissions, PolicyType, PortalSettings, Projects, ResourceCatalog, ResourceSeparator, ResourceType, ResourceTypeLink, Resources, Scheduler, Security, ServerTaskStatus, SpatialProcessor, Statistic, StringSubType, Styles, Tables, TextAlignment, TextVerticalAlignment, Tools, UrlPath, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, isEvergisDynamicLayer, isEvergisTileLayer, isFeatureLayer, isHTTPError, isHandledError, isLayer, isProjectContentItems, isString, isTileLayerService, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique };
6672
6784
  //# sourceMappingURL=api.esm.js.map