@evergis/api 3.0.76 → 3.0.79

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,9 +28,6 @@ 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
- });
34
31
  return Constructor;
35
32
  }
36
33
 
@@ -64,9 +61,6 @@ function _inherits(subClass, superClass) {
64
61
  configurable: true
65
62
  }
66
63
  });
67
- Object.defineProperty(subClass, "prototype", {
68
- writable: false
69
- });
70
64
  if (superClass) _setPrototypeOf(subClass, superClass);
71
65
  }
72
66
 
@@ -125,8 +119,6 @@ function _assertThisInitialized(self) {
125
119
  function _possibleConstructorReturn(self, call) {
126
120
  if (call && (typeof call === "object" || typeof call === "function")) {
127
121
  return call;
128
- } else if (call !== void 0) {
129
- throw new TypeError("Derived constructors may only return object or undefined");
130
122
  }
131
123
 
132
124
  return _assertThisInitialized(self);
@@ -160,7 +152,7 @@ function _superPropBase(object, property) {
160
152
  return object;
161
153
  }
162
154
 
163
- function _get() {
155
+ function _get(target, property, receiver) {
164
156
  if (typeof Reflect !== "undefined" && Reflect.get) {
165
157
  _get = Reflect.get;
166
158
  } else {
@@ -171,14 +163,14 @@ function _get() {
171
163
  var desc = Object.getOwnPropertyDescriptor(base, property);
172
164
 
173
165
  if (desc.get) {
174
- return desc.get.call(arguments.length < 3 ? target : receiver);
166
+ return desc.get.call(receiver);
175
167
  }
176
168
 
177
169
  return desc.value;
178
170
  };
179
171
  }
180
172
 
181
- return _get.apply(this, arguments);
173
+ return _get(target, property, receiver || target);
182
174
  }
183
175
 
184
176
  /* eslint-disable */
@@ -839,12 +831,13 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
839
831
 
840
832
  var _super = /*#__PURE__*/_createSuper(Notification);
841
833
 
842
- function Notification(http) {
834
+ function Notification(http, api) {
843
835
  var _this;
844
836
 
845
837
  _classCallCheck(this, Notification);
846
838
 
847
839
  _this = _super.call(this, http);
840
+ _this.api = api;
848
841
  _this.MAX_WS_RECONNECT_TRIES = 10;
849
842
  _this.reconnectTries = 0;
850
843
  _this.subscriptions = [];
@@ -861,8 +854,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
861
854
  || event.code === 4002
862
855
  /* InvalidSession */
863
856
  ) {
864
- _this.connectStatus = ConnectionStatus.SessionClosed;
865
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
857
+ _this.connectStatus = ConnectionStatus.SessionClosed;
858
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
866
859
  _this.connectStatus = ConnectionStatus.Break;
867
860
  _this.reconnectTries++;
868
861
 
@@ -931,7 +924,7 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
931
924
  value: async function subscribe(tag) {
932
925
  this.subscriptions.push(tag);
933
926
  setTimeout(() => {
934
- if (this.subscriptions.length) {
927
+ if (!this.api.isShared && this.subscriptions.length) {
935
928
  this.subscribeListOperation(this.subscriptions);
936
929
  }
937
930
 
@@ -1368,7 +1361,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
1368
1361
  const taskProgress = await this.getTaskProgress(id);
1369
1362
  this.resolveTaskStatus(taskProgress, resolve, reject);
1370
1363
 
1371
- const taskResultCallback = async _ref => {
1364
+ const taskResultCallback = async (_ref) => {
1372
1365
  let {
1373
1366
  data
1374
1367
  } = _ref;
@@ -1448,38 +1441,8 @@ let LayersService = /*#__PURE__*/function (_Service) {
1448
1441
  }
1449
1442
 
1450
1443
  _createClass(LayersService, [{
1451
- key: "getLayerInfo",
1444
+ key: "getLayersList",
1452
1445
  value:
1453
- /**
1454
- * No description
1455
- *
1456
- * @tags Layers
1457
- * @name GetLayerInfo
1458
- * @operationId LayersController_GetLayerInfoAsync
1459
- * @summary Returns the layer information.
1460
- * @request GET:/layers/{name}
1461
- * @response `200` Success
1462
- * @response `default` Error
1463
- */
1464
- function getLayerInfo(name) {
1465
- return this.http.get("/layers/" + name).json();
1466
- }
1467
- /**
1468
- * No description
1469
- *
1470
- * @tags Layers
1471
- * @name DeleteResource
1472
- * @operationId LayersController_DeleteResource
1473
- * @summary Deletes resource.
1474
- * @request DELETE:/layers/{name}
1475
- * @response `200` Success
1476
- */
1477
-
1478
- }, {
1479
- key: "deleteResource",
1480
- value: function deleteResource(name) {
1481
- return this.http.delete("/layers/" + name, null).then(() => {});
1482
- }
1483
1446
  /**
1484
1447
  * No description
1485
1448
  *
@@ -1490,10 +1453,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
1490
1453
  * @request GET:/layers
1491
1454
  * @response `200` Success
1492
1455
  */
1493
-
1494
- }, {
1495
- key: "getLayersList",
1496
- value: function getLayersList(query) {
1456
+ function getLayersList(query) {
1497
1457
  return this.http.get("/layers", query).json();
1498
1458
  }
1499
1459
  /**
@@ -1528,6 +1488,38 @@ let LayersService = /*#__PURE__*/function (_Service) {
1528
1488
  value: function deleteResources(query) {
1529
1489
  return this.http.delete("/layers", null, query).json();
1530
1490
  }
1491
+ /**
1492
+ * No description
1493
+ *
1494
+ * @tags Layers
1495
+ * @name GetLayerInfo
1496
+ * @operationId LayersController_GetLayerInfoAsync
1497
+ * @summary Returns the layer information.
1498
+ * @request GET:/layers/{name}
1499
+ * @response `200` Success
1500
+ */
1501
+
1502
+ }, {
1503
+ key: "getLayerInfo",
1504
+ value: function getLayerInfo(name) {
1505
+ return this.http.get("/layers/" + name).json();
1506
+ }
1507
+ /**
1508
+ * No description
1509
+ *
1510
+ * @tags Layers
1511
+ * @name DeleteResource
1512
+ * @operationId LayersController_DeleteResource
1513
+ * @summary Deletes resource.
1514
+ * @request DELETE:/layers/{name}
1515
+ * @response `200` Success
1516
+ */
1517
+
1518
+ }, {
1519
+ key: "deleteResource",
1520
+ value: function deleteResource(name) {
1521
+ return this.http.delete("/layers/" + name, null).then(() => {});
1522
+ }
1531
1523
  /**
1532
1524
  * No description
1533
1525
  *
@@ -3023,53 +3015,8 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
3023
3015
  }
3024
3016
 
3025
3017
  _createClass(ProjectsService, [{
3026
- key: "getProjectLayersExtendedInfo",
3018
+ key: "getProjectsList",
3027
3019
  value:
3028
- /**
3029
- * No description
3030
- *
3031
- * @tags Projects
3032
- * @name GetProjectLayersExtendedInfo
3033
- * @operationId ProjectsController_GetProjectLayersExtendedInfo
3034
- * @summary Gets extended project info with layers info.
3035
- * @request GET:/projects/{name}/extended-info
3036
- * @response `200` Success
3037
- */
3038
- function getProjectLayersExtendedInfo(name) {
3039
- return this.http.get("/projects/" + name + "/extended-info").json();
3040
- }
3041
- /**
3042
- * No description
3043
- *
3044
- * @tags Projects
3045
- * @name CreateShareProject
3046
- * @operationId ProjectsController_CreateShareProject
3047
- * @summary Create shared project.
3048
- * @request POST:/projects/{name}/share
3049
- * @response `200` Success
3050
- */
3051
-
3052
- }, {
3053
- key: "createShareProject",
3054
- value: function createShareProject(name, data) {
3055
- return this.http.post("/projects/" + name + "/share", data).json();
3056
- }
3057
- /**
3058
- * No description
3059
- *
3060
- * @tags Projects
3061
- * @name RemoveShareProject
3062
- * @operationId ProjectsController_RemoveShareProject
3063
- * @summary Delete shared project.
3064
- * @request DELETE:/projects/{name}/share
3065
- * @response `200` Success
3066
- */
3067
-
3068
- }, {
3069
- key: "removeShareProject",
3070
- value: function removeShareProject(name) {
3071
- return this.http.delete("/projects/" + name + "/share", null).then(() => {});
3072
- }
3073
3020
  /**
3074
3021
  * No description
3075
3022
  *
@@ -3080,10 +3027,7 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
3080
3027
  * @request GET:/projects
3081
3028
  * @response `200` Success
3082
3029
  */
3083
-
3084
- }, {
3085
- key: "getProjectsList",
3086
- value: function getProjectsList(query) {
3030
+ function getProjectsList(query) {
3087
3031
  return this.http.get("/projects", query).json();
3088
3032
  }
3089
3033
  /**
@@ -3182,6 +3126,22 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
3182
3126
  value: function deleteResource(name) {
3183
3127
  return this.http.delete("/projects/" + name, null).then(() => {});
3184
3128
  }
3129
+ /**
3130
+ * No description
3131
+ *
3132
+ * @tags Projects
3133
+ * @name GetProjectLayersExtendedInfo
3134
+ * @operationId ProjectsController_GetProjectLayersExtendedInfo
3135
+ * @summary Gets extended project info with layers info.
3136
+ * @request GET:/projects/{name}/extended-info
3137
+ * @response `200` Success
3138
+ */
3139
+
3140
+ }, {
3141
+ key: "getProjectLayersExtendedInfo",
3142
+ value: function getProjectLayersExtendedInfo(name) {
3143
+ return this.http.get("/projects/" + name + "/extended-info").json();
3144
+ }
3185
3145
  /**
3186
3146
  * No description
3187
3147
  *
@@ -3481,12 +3441,12 @@ let Resources = /*#__PURE__*/function () {
3481
3441
  }, {
3482
3442
  key: "getDependentNames",
3483
3443
  value: function getDependentNames(deps, depType) {
3484
- return deps.filter(_ref => {
3444
+ return deps.filter((_ref) => {
3485
3445
  let {
3486
3446
  type
3487
3447
  } = _ref;
3488
3448
  return type === depType;
3489
- }).map(_ref2 => {
3449
+ }).map((_ref2) => {
3490
3450
  let {
3491
3451
  name
3492
3452
  } = _ref2;
@@ -5900,7 +5860,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
5900
5860
  _this.accountPreview = new AccountPreview(_this.http, _this.account);
5901
5861
  _this.bulk = new BulkOperations(_this.http);
5902
5862
  _this.security = new Security(_this.http, _this.account);
5903
- _this.notification = new Notification(_this.http);
5863
+ _this.notification = new Notification(_this.http, _assertThisInitialized(_this));
5904
5864
  _this.scheduler = new Scheduler(_this.http);
5905
5865
  _this.file = new FileUpload(_this.http);
5906
5866
  _this.import = new Import(_this.http);
@@ -6346,41 +6306,41 @@ function isFeatureLayer(layer) {
6346
6306
 
6347
6307
  /**
6348
6308
  *
6349
-
6309
+
6350
6310
  None
6351
-
6311
+
6352
6312
  Array
6353
-
6313
+
6354
6314
  Min
6355
-
6315
+
6356
6316
  Max
6357
-
6317
+
6358
6318
  Avg
6359
-
6319
+
6360
6320
  Sum
6361
-
6321
+
6362
6322
  Extent
6363
-
6323
+
6364
6324
  Count
6365
-
6325
+
6366
6326
  First
6367
-
6327
+
6368
6328
  Last
6369
-
6329
+
6370
6330
  Median
6371
-
6331
+
6372
6332
  Mod
6373
-
6333
+
6374
6334
  StdDeviation
6375
-
6335
+
6376
6336
  SumOfProduct
6377
-
6337
+
6378
6338
  OnlyValue
6379
-
6339
+
6380
6340
  WeightedAvg
6381
-
6341
+
6382
6342
  DensityIndicators
6383
-
6343
+
6384
6344
  DividedSum
6385
6345
  */
6386
6346
  var AggregationFunction;
@@ -6407,27 +6367,27 @@ var AggregationFunction;
6407
6367
  })(AggregationFunction || (AggregationFunction = {}));
6408
6368
  /**
6409
6369
  * Types of the attributes that are supported by the system.
6410
-
6370
+
6411
6371
  Unknown
6412
-
6372
+
6413
6373
  String
6414
-
6374
+
6415
6375
  Int32
6416
-
6376
+
6417
6377
  Int64
6418
-
6378
+
6419
6379
  Double
6420
-
6380
+
6421
6381
  DateTime
6422
-
6382
+
6423
6383
  Boolean
6424
-
6384
+
6425
6385
  Point
6426
-
6386
+
6427
6387
  Polyline
6428
-
6388
+
6429
6389
  Polygon
6430
-
6390
+
6431
6391
  Multipoint
6432
6392
  */
6433
6393
 
@@ -6449,14 +6409,16 @@ var AttributeType;
6449
6409
  })(AttributeType || (AttributeType = {}));
6450
6410
  /**
6451
6411
  * Describes classification methods.
6452
-
6412
+
6453
6413
  none
6454
-
6414
+
6455
6415
  naturalBreaks
6456
-
6416
+
6457
6417
  equalInterval
6458
-
6418
+
6459
6419
  quantile
6420
+
6421
+ unique
6460
6422
  */
6461
6423
 
6462
6424
 
@@ -6467,13 +6429,16 @@ var ClassificationType;
6467
6429
  ClassificationType["NaturalBreaks"] = "naturalBreaks";
6468
6430
  ClassificationType["EqualInterval"] = "equalInterval";
6469
6431
  ClassificationType["Quantile"] = "quantile";
6432
+ ClassificationType["Distinct"] = "unique";
6470
6433
  })(ClassificationType || (ClassificationType = {}));
6471
6434
  /**
6472
6435
  * Type of attribute.
6473
-
6436
+
6474
6437
  decimal
6475
-
6438
+
6476
6439
  dateTime
6440
+
6441
+ text
6477
6442
  */
6478
6443
 
6479
6444
 
@@ -6482,6 +6447,7 @@ var ClassifyAttributeType;
6482
6447
  (function (ClassifyAttributeType) {
6483
6448
  ClassifyAttributeType["Decimal"] = "decimal";
6484
6449
  ClassifyAttributeType["DateTime"] = "dateTime";
6450
+ ClassifyAttributeType["Text"] = "text";
6485
6451
  })(ClassifyAttributeType || (ClassifyAttributeType = {}));
6486
6452
  /**
6487
6453
  * Types of errors that can occur during layer initialize.
@@ -6514,15 +6480,15 @@ var ConfigurationErrorEnum;
6514
6480
  })(ConfigurationErrorEnum || (ConfigurationErrorEnum = {}));
6515
6481
  /**
6516
6482
  * Type of the error.
6517
-
6483
+
6518
6484
  ResourceLimitExceeded
6519
-
6485
+
6520
6486
  ResourceNotFound
6521
-
6487
+
6522
6488
  InternalError
6523
-
6489
+
6524
6490
  BadRequest
6525
-
6491
+
6526
6492
  DuplicateContent
6527
6493
  */
6528
6494
 
@@ -6577,9 +6543,9 @@ var ErrorType;
6577
6543
  })(ErrorType || (ErrorType = {}));
6578
6544
  /**
6579
6545
  * Type of the feature.
6580
-
6546
+
6581
6547
  Unknown
6582
-
6548
+
6583
6549
  GeometricFeature
6584
6550
  */
6585
6551
 
@@ -6624,17 +6590,17 @@ var FontWeight;
6624
6590
  })(FontWeight || (FontWeight = {}));
6625
6591
  /**
6626
6592
  *
6627
-
6593
+
6628
6594
  unknown
6629
-
6595
+
6630
6596
  point
6631
-
6597
+
6632
6598
  polyline
6633
-
6599
+
6634
6600
  polygon
6635
-
6601
+
6636
6602
  envelope
6637
-
6603
+
6638
6604
  multipoint
6639
6605
  */
6640
6606
 
@@ -6651,13 +6617,13 @@ var GeometryType;
6651
6617
  })(GeometryType || (GeometryType = {}));
6652
6618
  /**
6653
6619
  * Resource group.
6654
-
6620
+
6655
6621
  my
6656
-
6622
+
6657
6623
  role
6658
-
6624
+
6659
6625
  public
6660
-
6626
+
6661
6627
  all
6662
6628
  */
6663
6629
 
@@ -6700,15 +6666,15 @@ var LineEndingType;
6700
6666
  })(LineEndingType || (LineEndingType = {}));
6701
6667
  /**
6702
6668
  *
6703
-
6669
+
6704
6670
  Unknown
6705
-
6671
+
6706
6672
  union
6707
-
6673
+
6708
6674
  intersection
6709
-
6675
+
6710
6676
  subtraction
6711
-
6677
+
6712
6678
  symDifference
6713
6679
  */
6714
6680
 
@@ -6724,19 +6690,19 @@ var Operation;
6724
6690
  })(Operation || (Operation = {}));
6725
6691
  /**
6726
6692
  * User permissions for server security objects (services, projects etc.)
6727
-
6693
+
6728
6694
  none
6729
-
6695
+
6730
6696
  configure
6731
-
6697
+
6732
6698
  write
6733
-
6699
+
6734
6700
  read
6735
-
6701
+
6736
6702
  read,configure
6737
-
6703
+
6738
6704
  read,write
6739
-
6705
+
6740
6706
  read,write,configure
6741
6707
  */
6742
6708
 
@@ -6754,15 +6720,15 @@ var Permissions;
6754
6720
  })(Permissions || (Permissions = {}));
6755
6721
  /**
6756
6722
  * Type of the authorization policy.
6757
-
6723
+
6758
6724
  Unknown
6759
-
6725
+
6760
6726
  CreateTable
6761
-
6727
+
6762
6728
  CreateLayer
6763
-
6729
+
6764
6730
  CreateProject
6765
-
6731
+
6766
6732
  MaxFeaturesInOneTable
6767
6733
  */
6768
6734
 
@@ -6778,17 +6744,17 @@ var PolicyType;
6778
6744
  })(PolicyType || (PolicyType = {}));
6779
6745
  /**
6780
6746
  * The `ResourceType` represents resource manager supports types.
6781
-
6747
+
6782
6748
  Unknown
6783
-
6749
+
6784
6750
  table
6785
-
6751
+
6786
6752
  layer
6787
-
6753
+
6788
6754
  project
6789
-
6755
+
6790
6756
  file
6791
-
6757
+
6792
6758
  feature
6793
6759
  */
6794
6760
 
@@ -6813,21 +6779,21 @@ var ResourceTypeLink;
6813
6779
  })(ResourceTypeLink || (ResourceTypeLink = {}));
6814
6780
  /**
6815
6781
  * Status of the server task.
6816
-
6782
+
6817
6783
  None
6818
-
6784
+
6819
6785
  Scheduled
6820
-
6786
+
6821
6787
  Planning
6822
-
6788
+
6823
6789
  Executing
6824
-
6790
+
6825
6791
  Completed
6826
-
6792
+
6827
6793
  Failed
6828
-
6794
+
6829
6795
  Canceled
6830
-
6796
+
6831
6797
  Timeout
6832
6798
  */
6833
6799
 
@@ -6846,11 +6812,11 @@ var ServerTaskStatus;
6846
6812
  })(ServerTaskStatus || (ServerTaskStatus = {}));
6847
6813
  /**
6848
6814
  * The `StringSubType` provides information about string attribute subtype.
6849
-
6815
+
6850
6816
  None
6851
-
6817
+
6852
6818
  Image
6853
-
6819
+
6854
6820
  PkkCode
6855
6821
  */
6856
6822