@evergis/api 3.0.78 → 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 */
@@ -862,8 +854,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
862
854
  || event.code === 4002
863
855
  /* InvalidSession */
864
856
  ) {
865
- _this.connectStatus = ConnectionStatus.SessionClosed;
866
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
857
+ _this.connectStatus = ConnectionStatus.SessionClosed;
858
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
867
859
  _this.connectStatus = ConnectionStatus.Break;
868
860
  _this.reconnectTries++;
869
861
 
@@ -1369,7 +1361,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
1369
1361
  const taskProgress = await this.getTaskProgress(id);
1370
1362
  this.resolveTaskStatus(taskProgress, resolve, reject);
1371
1363
 
1372
- const taskResultCallback = async _ref => {
1364
+ const taskResultCallback = async (_ref) => {
1373
1365
  let {
1374
1366
  data
1375
1367
  } = _ref;
@@ -1449,38 +1441,8 @@ let LayersService = /*#__PURE__*/function (_Service) {
1449
1441
  }
1450
1442
 
1451
1443
  _createClass(LayersService, [{
1452
- key: "getLayerInfo",
1444
+ key: "getLayersList",
1453
1445
  value:
1454
- /**
1455
- * No description
1456
- *
1457
- * @tags Layers
1458
- * @name GetLayerInfo
1459
- * @operationId LayersController_GetLayerInfoAsync
1460
- * @summary Returns the layer information.
1461
- * @request GET:/layers/{name}
1462
- * @response `200` Success
1463
- * @response `default` Error
1464
- */
1465
- function getLayerInfo(name) {
1466
- return this.http.get("/layers/" + name).json();
1467
- }
1468
- /**
1469
- * No description
1470
- *
1471
- * @tags Layers
1472
- * @name DeleteResource
1473
- * @operationId LayersController_DeleteResource
1474
- * @summary Deletes resource.
1475
- * @request DELETE:/layers/{name}
1476
- * @response `200` Success
1477
- */
1478
-
1479
- }, {
1480
- key: "deleteResource",
1481
- value: function deleteResource(name) {
1482
- return this.http.delete("/layers/" + name, null).then(() => {});
1483
- }
1484
1446
  /**
1485
1447
  * No description
1486
1448
  *
@@ -1491,10 +1453,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
1491
1453
  * @request GET:/layers
1492
1454
  * @response `200` Success
1493
1455
  */
1494
-
1495
- }, {
1496
- key: "getLayersList",
1497
- value: function getLayersList(query) {
1456
+ function getLayersList(query) {
1498
1457
  return this.http.get("/layers", query).json();
1499
1458
  }
1500
1459
  /**
@@ -1529,6 +1488,38 @@ let LayersService = /*#__PURE__*/function (_Service) {
1529
1488
  value: function deleteResources(query) {
1530
1489
  return this.http.delete("/layers", null, query).json();
1531
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
+ }
1532
1523
  /**
1533
1524
  * No description
1534
1525
  *
@@ -3024,53 +3015,8 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
3024
3015
  }
3025
3016
 
3026
3017
  _createClass(ProjectsService, [{
3027
- key: "getProjectLayersExtendedInfo",
3018
+ key: "getProjectsList",
3028
3019
  value:
3029
- /**
3030
- * No description
3031
- *
3032
- * @tags Projects
3033
- * @name GetProjectLayersExtendedInfo
3034
- * @operationId ProjectsController_GetProjectLayersExtendedInfo
3035
- * @summary Gets extended project info with layers info.
3036
- * @request GET:/projects/{name}/extended-info
3037
- * @response `200` Success
3038
- */
3039
- function getProjectLayersExtendedInfo(name) {
3040
- return this.http.get("/projects/" + name + "/extended-info").json();
3041
- }
3042
- /**
3043
- * No description
3044
- *
3045
- * @tags Projects
3046
- * @name CreateShareProject
3047
- * @operationId ProjectsController_CreateShareProject
3048
- * @summary Create shared project.
3049
- * @request POST:/projects/{name}/share
3050
- * @response `200` Success
3051
- */
3052
-
3053
- }, {
3054
- key: "createShareProject",
3055
- value: function createShareProject(name, data) {
3056
- return this.http.post("/projects/" + name + "/share", data).json();
3057
- }
3058
- /**
3059
- * No description
3060
- *
3061
- * @tags Projects
3062
- * @name RemoveShareProject
3063
- * @operationId ProjectsController_RemoveShareProject
3064
- * @summary Delete shared project.
3065
- * @request DELETE:/projects/{name}/share
3066
- * @response `200` Success
3067
- */
3068
-
3069
- }, {
3070
- key: "removeShareProject",
3071
- value: function removeShareProject(name) {
3072
- return this.http.delete("/projects/" + name + "/share", null).then(() => {});
3073
- }
3074
3020
  /**
3075
3021
  * No description
3076
3022
  *
@@ -3081,10 +3027,7 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
3081
3027
  * @request GET:/projects
3082
3028
  * @response `200` Success
3083
3029
  */
3084
-
3085
- }, {
3086
- key: "getProjectsList",
3087
- value: function getProjectsList(query) {
3030
+ function getProjectsList(query) {
3088
3031
  return this.http.get("/projects", query).json();
3089
3032
  }
3090
3033
  /**
@@ -3183,6 +3126,22 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
3183
3126
  value: function deleteResource(name) {
3184
3127
  return this.http.delete("/projects/" + name, null).then(() => {});
3185
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
+ }
3186
3145
  /**
3187
3146
  * No description
3188
3147
  *
@@ -3482,12 +3441,12 @@ let Resources = /*#__PURE__*/function () {
3482
3441
  }, {
3483
3442
  key: "getDependentNames",
3484
3443
  value: function getDependentNames(deps, depType) {
3485
- return deps.filter(_ref => {
3444
+ return deps.filter((_ref) => {
3486
3445
  let {
3487
3446
  type
3488
3447
  } = _ref;
3489
3448
  return type === depType;
3490
- }).map(_ref2 => {
3449
+ }).map((_ref2) => {
3491
3450
  let {
3492
3451
  name
3493
3452
  } = _ref2;
@@ -6347,41 +6306,41 @@ function isFeatureLayer(layer) {
6347
6306
 
6348
6307
  /**
6349
6308
  *
6350
-
6309
+
6351
6310
  None
6352
-
6311
+
6353
6312
  Array
6354
-
6313
+
6355
6314
  Min
6356
-
6315
+
6357
6316
  Max
6358
-
6317
+
6359
6318
  Avg
6360
-
6319
+
6361
6320
  Sum
6362
-
6321
+
6363
6322
  Extent
6364
-
6323
+
6365
6324
  Count
6366
-
6325
+
6367
6326
  First
6368
-
6327
+
6369
6328
  Last
6370
-
6329
+
6371
6330
  Median
6372
-
6331
+
6373
6332
  Mod
6374
-
6333
+
6375
6334
  StdDeviation
6376
-
6335
+
6377
6336
  SumOfProduct
6378
-
6337
+
6379
6338
  OnlyValue
6380
-
6339
+
6381
6340
  WeightedAvg
6382
-
6341
+
6383
6342
  DensityIndicators
6384
-
6343
+
6385
6344
  DividedSum
6386
6345
  */
6387
6346
  var AggregationFunction;
@@ -6408,27 +6367,27 @@ var AggregationFunction;
6408
6367
  })(AggregationFunction || (AggregationFunction = {}));
6409
6368
  /**
6410
6369
  * Types of the attributes that are supported by the system.
6411
-
6370
+
6412
6371
  Unknown
6413
-
6372
+
6414
6373
  String
6415
-
6374
+
6416
6375
  Int32
6417
-
6376
+
6418
6377
  Int64
6419
-
6378
+
6420
6379
  Double
6421
-
6380
+
6422
6381
  DateTime
6423
-
6382
+
6424
6383
  Boolean
6425
-
6384
+
6426
6385
  Point
6427
-
6386
+
6428
6387
  Polyline
6429
-
6388
+
6430
6389
  Polygon
6431
-
6390
+
6432
6391
  Multipoint
6433
6392
  */
6434
6393
 
@@ -6450,15 +6409,15 @@ var AttributeType;
6450
6409
  })(AttributeType || (AttributeType = {}));
6451
6410
  /**
6452
6411
  * Describes classification methods.
6453
-
6412
+
6454
6413
  none
6455
-
6414
+
6456
6415
  naturalBreaks
6457
-
6416
+
6458
6417
  equalInterval
6459
-
6418
+
6460
6419
  quantile
6461
-
6420
+
6462
6421
  unique
6463
6422
  */
6464
6423
 
@@ -6474,11 +6433,11 @@ var ClassificationType;
6474
6433
  })(ClassificationType || (ClassificationType = {}));
6475
6434
  /**
6476
6435
  * Type of attribute.
6477
-
6436
+
6478
6437
  decimal
6479
-
6438
+
6480
6439
  dateTime
6481
-
6440
+
6482
6441
  text
6483
6442
  */
6484
6443
 
@@ -6521,15 +6480,15 @@ var ConfigurationErrorEnum;
6521
6480
  })(ConfigurationErrorEnum || (ConfigurationErrorEnum = {}));
6522
6481
  /**
6523
6482
  * Type of the error.
6524
-
6483
+
6525
6484
  ResourceLimitExceeded
6526
-
6485
+
6527
6486
  ResourceNotFound
6528
-
6487
+
6529
6488
  InternalError
6530
-
6489
+
6531
6490
  BadRequest
6532
-
6491
+
6533
6492
  DuplicateContent
6534
6493
  */
6535
6494
 
@@ -6584,9 +6543,9 @@ var ErrorType;
6584
6543
  })(ErrorType || (ErrorType = {}));
6585
6544
  /**
6586
6545
  * Type of the feature.
6587
-
6546
+
6588
6547
  Unknown
6589
-
6548
+
6590
6549
  GeometricFeature
6591
6550
  */
6592
6551
 
@@ -6631,17 +6590,17 @@ var FontWeight;
6631
6590
  })(FontWeight || (FontWeight = {}));
6632
6591
  /**
6633
6592
  *
6634
-
6593
+
6635
6594
  unknown
6636
-
6595
+
6637
6596
  point
6638
-
6597
+
6639
6598
  polyline
6640
-
6599
+
6641
6600
  polygon
6642
-
6601
+
6643
6602
  envelope
6644
-
6603
+
6645
6604
  multipoint
6646
6605
  */
6647
6606
 
@@ -6658,13 +6617,13 @@ var GeometryType;
6658
6617
  })(GeometryType || (GeometryType = {}));
6659
6618
  /**
6660
6619
  * Resource group.
6661
-
6620
+
6662
6621
  my
6663
-
6622
+
6664
6623
  role
6665
-
6624
+
6666
6625
  public
6667
-
6626
+
6668
6627
  all
6669
6628
  */
6670
6629
 
@@ -6707,15 +6666,15 @@ var LineEndingType;
6707
6666
  })(LineEndingType || (LineEndingType = {}));
6708
6667
  /**
6709
6668
  *
6710
-
6669
+
6711
6670
  Unknown
6712
-
6671
+
6713
6672
  union
6714
-
6673
+
6715
6674
  intersection
6716
-
6675
+
6717
6676
  subtraction
6718
-
6677
+
6719
6678
  symDifference
6720
6679
  */
6721
6680
 
@@ -6731,19 +6690,19 @@ var Operation;
6731
6690
  })(Operation || (Operation = {}));
6732
6691
  /**
6733
6692
  * User permissions for server security objects (services, projects etc.)
6734
-
6693
+
6735
6694
  none
6736
-
6695
+
6737
6696
  configure
6738
-
6697
+
6739
6698
  write
6740
-
6699
+
6741
6700
  read
6742
-
6701
+
6743
6702
  read,configure
6744
-
6703
+
6745
6704
  read,write
6746
-
6705
+
6747
6706
  read,write,configure
6748
6707
  */
6749
6708
 
@@ -6761,15 +6720,15 @@ var Permissions;
6761
6720
  })(Permissions || (Permissions = {}));
6762
6721
  /**
6763
6722
  * Type of the authorization policy.
6764
-
6723
+
6765
6724
  Unknown
6766
-
6725
+
6767
6726
  CreateTable
6768
-
6727
+
6769
6728
  CreateLayer
6770
-
6729
+
6771
6730
  CreateProject
6772
-
6731
+
6773
6732
  MaxFeaturesInOneTable
6774
6733
  */
6775
6734
 
@@ -6785,17 +6744,17 @@ var PolicyType;
6785
6744
  })(PolicyType || (PolicyType = {}));
6786
6745
  /**
6787
6746
  * The `ResourceType` represents resource manager supports types.
6788
-
6747
+
6789
6748
  Unknown
6790
-
6749
+
6791
6750
  table
6792
-
6751
+
6793
6752
  layer
6794
-
6753
+
6795
6754
  project
6796
-
6755
+
6797
6756
  file
6798
-
6757
+
6799
6758
  feature
6800
6759
  */
6801
6760
 
@@ -6819,37 +6778,22 @@ var ResourceTypeLink;
6819
6778
  ResourceTypeLink["Project"] = "projects";
6820
6779
  })(ResourceTypeLink || (ResourceTypeLink = {}));
6821
6780
  /**
6822
- * Save mode (create or update).
6823
-
6824
- create
6825
-
6826
- update
6827
- */
6828
-
6829
-
6830
- var SaveMode;
6831
-
6832
- (function (SaveMode) {
6833
- SaveMode["Create"] = "create";
6834
- SaveMode["Update"] = "update";
6835
- })(SaveMode || (SaveMode = {}));
6836
- /**
6837
6781
  * Status of the server task.
6838
-
6782
+
6839
6783
  None
6840
-
6784
+
6841
6785
  Scheduled
6842
-
6786
+
6843
6787
  Planning
6844
-
6788
+
6845
6789
  Executing
6846
-
6790
+
6847
6791
  Completed
6848
-
6792
+
6849
6793
  Failed
6850
-
6794
+
6851
6795
  Canceled
6852
-
6796
+
6853
6797
  Timeout
6854
6798
  */
6855
6799
 
@@ -6868,11 +6812,11 @@ var ServerTaskStatus;
6868
6812
  })(ServerTaskStatus || (ServerTaskStatus = {}));
6869
6813
  /**
6870
6814
  * The `StringSubType` provides information about string attribute subtype.
6871
-
6815
+
6872
6816
  None
6873
-
6817
+
6874
6818
  Image
6875
-
6819
+
6876
6820
  PkkCode
6877
6821
  */
6878
6822
 
@@ -6910,5 +6854,5 @@ var TextVerticalAlignment;
6910
6854
  TextVerticalAlignment["Middle"] = "middle";
6911
6855
  })(TextVerticalAlignment || (TextVerticalAlignment = {}));
6912
6856
 
6913
- 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, Feedback, 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, SaveMode, 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 };
6857
+ 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, Feedback, 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 };
6914
6858
  //# sourceMappingURL=api.esm.js.map