@evergis/api 3.0.104 → 3.0.108

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
@@ -29,6 +29,9 @@ function _defineProperties(target, props) {
29
29
  function _createClass(Constructor, protoProps, staticProps) {
30
30
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
31
31
  if (staticProps) _defineProperties(Constructor, staticProps);
32
+ Object.defineProperty(Constructor, "prototype", {
33
+ writable: false
34
+ });
32
35
  return Constructor;
33
36
  }
34
37
 
@@ -62,6 +65,9 @@ function _inherits(subClass, superClass) {
62
65
  configurable: true
63
66
  }
64
67
  });
68
+ Object.defineProperty(subClass, "prototype", {
69
+ writable: false
70
+ });
65
71
  if (superClass) _setPrototypeOf(subClass, superClass);
66
72
  }
67
73
 
@@ -120,6 +126,8 @@ function _assertThisInitialized(self) {
120
126
  function _possibleConstructorReturn(self, call) {
121
127
  if (call && (typeof call === "object" || typeof call === "function")) {
122
128
  return call;
129
+ } else if (call !== void 0) {
130
+ throw new TypeError("Derived constructors may only return object or undefined");
123
131
  }
124
132
 
125
133
  return _assertThisInitialized(self);
@@ -153,7 +161,7 @@ function _superPropBase(object, property) {
153
161
  return object;
154
162
  }
155
163
 
156
- function _get(target, property, receiver) {
164
+ function _get() {
157
165
  if (typeof Reflect !== "undefined" && Reflect.get) {
158
166
  _get = Reflect.get;
159
167
  } else {
@@ -164,14 +172,14 @@ function _get(target, property, receiver) {
164
172
  var desc = Object.getOwnPropertyDescriptor(base, property);
165
173
 
166
174
  if (desc.get) {
167
- return desc.get.call(receiver);
175
+ return desc.get.call(arguments.length < 3 ? target : receiver);
168
176
  }
169
177
 
170
178
  return desc.value;
171
179
  };
172
180
  }
173
181
 
174
- return _get(target, property, receiver || target);
182
+ return _get.apply(this, arguments);
175
183
  }
176
184
 
177
185
  let HttpClient = /*#__PURE__*/function () {
@@ -883,8 +891,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
883
891
  || event.code === 4002
884
892
  /* InvalidSession */
885
893
  ) {
886
- _this.connectStatus = ConnectionStatus.SessionClosed;
887
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
894
+ _this.connectStatus = ConnectionStatus.SessionClosed;
895
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
888
896
  _this.connectStatus = ConnectionStatus.Break;
889
897
  _this.reconnectTries++;
890
898
 
@@ -1390,7 +1398,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
1390
1398
  const taskProgress = await this.getTaskProgress(id);
1391
1399
  this.resolveTaskStatus(taskProgress, resolve, reject);
1392
1400
 
1393
- const taskResultCallback = async (_ref) => {
1401
+ const taskResultCallback = async _ref => {
1394
1402
  let {
1395
1403
  data
1396
1404
  } = _ref;
@@ -3532,12 +3540,12 @@ let Resources = /*#__PURE__*/function () {
3532
3540
  }, {
3533
3541
  key: "getDependentNames",
3534
3542
  value: function getDependentNames(deps, depType) {
3535
- return deps.filter((_ref) => {
3543
+ return deps.filter(_ref => {
3536
3544
  let {
3537
3545
  type
3538
3546
  } = _ref;
3539
3547
  return type === depType;
3540
- }).map((_ref2) => {
3548
+ }).map(_ref2 => {
3541
3549
  let {
3542
3550
  name
3543
3551
  } = _ref2;
@@ -4684,6 +4692,8 @@ let AccountService = /*#__PURE__*/function (_Service) {
4684
4692
  return AccountService;
4685
4693
  }(Service);
4686
4694
 
4695
+ const API_USER_INFO_KEY = '@evergis/user-info';
4696
+
4687
4697
  const getUserInfo = () => JSON.parse(localStorage.getItem(API_USER_INFO_KEY) || 'null') || void 0;
4688
4698
  const updateUserInfo = newUserInfo => {
4689
4699
  if (newUserInfo) {
@@ -4694,7 +4704,6 @@ const updateUserInfo = newUserInfo => {
4694
4704
  }
4695
4705
  };
4696
4706
 
4697
- const API_USER_INFO_KEY = '@evergis/user-info';
4698
4707
  let Account = /*#__PURE__*/function (_AccountService) {
4699
4708
  _inherits(Account, _AccountService);
4700
4709
 
@@ -4909,7 +4918,7 @@ let AccountPreview = /*#__PURE__*/function (_AccountPreviewServic) {
4909
4918
  value: async function fetchPreview1() {
4910
4919
  var _response$headers$get;
4911
4920
 
4912
- const url = this.getPreview("");
4921
+ const url = this.getPreview('');
4913
4922
  const response = await fetch(url);
4914
4923
  const profile_photo = (_response$headers$get = response.headers.get('content-type')) != null && _response$headers$get.includes('text/plain') ? await response.text() : url + "?r=" + Math.random();
4915
4924
  updateUserInfo({
@@ -6432,45 +6441,45 @@ function isFeatureLayer(layer) {
6432
6441
 
6433
6442
  /**
6434
6443
  *
6435
-
6444
+
6436
6445
  None
6437
-
6446
+
6438
6447
  Array
6439
-
6448
+
6440
6449
  Min
6441
-
6450
+
6442
6451
  Max
6443
-
6452
+
6444
6453
  Avg
6445
-
6454
+
6446
6455
  Sum
6447
-
6456
+
6448
6457
  Extent
6449
-
6458
+
6450
6459
  Count
6451
-
6460
+
6452
6461
  TotalCount
6453
-
6462
+
6454
6463
  DistinctCount
6455
-
6464
+
6456
6465
  First
6457
-
6466
+
6458
6467
  Last
6459
-
6468
+
6460
6469
  Median
6461
-
6470
+
6462
6471
  Mod
6463
-
6472
+
6464
6473
  StdDeviation
6465
-
6474
+
6466
6475
  SumOfProduct
6467
-
6476
+
6468
6477
  OnlyValue
6469
-
6478
+
6470
6479
  WeightedAvg
6471
-
6480
+
6472
6481
  DensityIndicators
6473
-
6482
+
6474
6483
  DividedSum
6475
6484
  */
6476
6485
  var AggregationFunction;
@@ -6499,27 +6508,27 @@ var AggregationFunction;
6499
6508
  })(AggregationFunction || (AggregationFunction = {}));
6500
6509
  /**
6501
6510
  * Types of the attributes that are supported by the system.
6502
-
6511
+
6503
6512
  Unknown
6504
-
6513
+
6505
6514
  String
6506
-
6515
+
6507
6516
  Int32
6508
-
6517
+
6509
6518
  Int64
6510
-
6519
+
6511
6520
  Double
6512
-
6521
+
6513
6522
  DateTime
6514
-
6523
+
6515
6524
  Boolean
6516
-
6525
+
6517
6526
  Point
6518
-
6527
+
6519
6528
  Polyline
6520
-
6529
+
6521
6530
  Polygon
6522
-
6531
+
6523
6532
  Multipoint
6524
6533
  */
6525
6534
 
@@ -6541,15 +6550,15 @@ var AttributeType;
6541
6550
  })(AttributeType || (AttributeType = {}));
6542
6551
  /**
6543
6552
  * Describes classification methods.
6544
-
6553
+
6545
6554
  none
6546
-
6555
+
6547
6556
  naturalBreaks
6548
-
6557
+
6549
6558
  equalInterval
6550
-
6559
+
6551
6560
  quantile
6552
-
6561
+
6553
6562
  unique
6554
6563
  */
6555
6564
 
@@ -6565,11 +6574,11 @@ var ClassificationType;
6565
6574
  })(ClassificationType || (ClassificationType = {}));
6566
6575
  /**
6567
6576
  * Type of attribute.
6568
-
6577
+
6569
6578
  decimal
6570
-
6579
+
6571
6580
  dateTime
6572
-
6581
+
6573
6582
  text
6574
6583
  */
6575
6584
 
@@ -6583,51 +6592,51 @@ var ClassifyAttributeType;
6583
6592
  })(ClassifyAttributeType || (ClassifyAttributeType = {}));
6584
6593
  /**
6585
6594
  * Types of errors that can occur during layer initialize.
6586
-
6595
+
6587
6596
  Unknown
6588
-
6597
+
6589
6598
  SerializeError
6590
-
6599
+
6591
6600
  InvalidDataService
6592
-
6601
+
6593
6602
  InvalidConfiguration
6594
-
6603
+
6595
6604
  InvalidDataServiceName
6596
-
6605
+
6597
6606
  InvalidTableName
6598
-
6607
+
6599
6608
  InvalidLayerName
6600
-
6609
+
6601
6610
  ResourceNotFound
6602
-
6611
+
6603
6612
  InvalidCondition
6604
-
6613
+
6605
6614
  InvalidAttributes
6606
-
6615
+
6607
6616
  InvalidIdAttribute
6608
-
6617
+
6609
6618
  InvalidGeometryAttribute
6610
-
6619
+
6611
6620
  InvalidGeometryAttributeType
6612
-
6621
+
6613
6622
  InvalidColumnName
6614
-
6623
+
6615
6624
  InvalidIdColumnSettings
6616
-
6625
+
6617
6626
  ColumnNotExistsInTable
6618
-
6627
+
6619
6628
  InvalidStyle
6620
-
6629
+
6621
6630
  InvalidLayerType
6622
-
6631
+
6623
6632
  ColumnLoadingError
6624
-
6633
+
6625
6634
  InvalidAttributeFormat
6626
-
6635
+
6627
6636
  DataSourceNotFound
6628
-
6637
+
6629
6638
  DuplicateColumns
6630
-
6639
+
6631
6640
  TableWithoutColumns
6632
6641
  */
6633
6642
 
@@ -6661,15 +6670,15 @@ var ConfigurationErrorEnum;
6661
6670
  })(ConfigurationErrorEnum || (ConfigurationErrorEnum = {}));
6662
6671
  /**
6663
6672
  * Type of the error.
6664
-
6673
+
6665
6674
  ResourceLimitExceeded
6666
-
6675
+
6667
6676
  ResourceNotFound
6668
-
6677
+
6669
6678
  InternalError
6670
-
6679
+
6671
6680
  BadRequest
6672
-
6681
+
6673
6682
  DuplicateContent
6674
6683
  */
6675
6684
 
@@ -6724,9 +6733,9 @@ var ErrorType;
6724
6733
  })(ErrorType || (ErrorType = {}));
6725
6734
  /**
6726
6735
  * Type of the feature.
6727
-
6736
+
6728
6737
  Unknown
6729
-
6738
+
6730
6739
  GeometricFeature
6731
6740
  */
6732
6741
 
@@ -6739,11 +6748,11 @@ var FeatureType;
6739
6748
  })(FeatureType || (FeatureType = {}));
6740
6749
  /**
6741
6750
  * Sets whether font should be styled.
6742
-
6751
+
6743
6752
  normal
6744
-
6753
+
6745
6754
  oblique
6746
-
6755
+
6747
6756
  italic
6748
6757
  */
6749
6758
 
@@ -6757,27 +6766,27 @@ var FontStyle;
6757
6766
  })(FontStyle || (FontStyle = {}));
6758
6767
  /**
6759
6768
  * Specifies the weight (or boldness) of the font.
6760
-
6769
+
6761
6770
  Thin
6762
-
6771
+
6763
6772
  ExtraLight
6764
-
6773
+
6765
6774
  Light
6766
-
6775
+
6767
6776
  SemiLight
6768
-
6777
+
6769
6778
  Normal
6770
-
6779
+
6771
6780
  Medium
6772
-
6781
+
6773
6782
  DemiBold
6774
-
6783
+
6775
6784
  Bold
6776
-
6785
+
6777
6786
  ExtraBold
6778
-
6787
+
6779
6788
  Black
6780
-
6789
+
6781
6790
  ExtraBlack
6782
6791
  */
6783
6792
 
@@ -6799,17 +6808,17 @@ var FontWeight;
6799
6808
  })(FontWeight || (FontWeight = {}));
6800
6809
  /**
6801
6810
  *
6802
-
6811
+
6803
6812
  unknown
6804
-
6813
+
6805
6814
  point
6806
-
6815
+
6807
6816
  polyline
6808
-
6817
+
6809
6818
  polygon
6810
-
6819
+
6811
6820
  envelope
6812
-
6821
+
6813
6822
  multipoint
6814
6823
  */
6815
6824
 
@@ -6826,13 +6835,13 @@ var GeometryType;
6826
6835
  })(GeometryType || (GeometryType = {}));
6827
6836
  /**
6828
6837
  * Resource group.
6829
-
6838
+
6830
6839
  my
6831
-
6840
+
6832
6841
  role
6833
-
6842
+
6834
6843
  public
6835
-
6844
+
6836
6845
  all
6837
6846
  */
6838
6847
 
@@ -6848,9 +6857,9 @@ var Group;
6848
6857
  /**
6849
6858
  * The size of the line ending in a SPCore.Kernel.Rendering.Symbols.SimplePolylineSymbol. The values sent here can be one
6850
6859
  of the preset values, or a number representing the size of the ending in pixels for 1px wide lines.
6851
-
6860
+
6852
6861
  small
6853
-
6862
+
6854
6863
  large
6855
6864
  */
6856
6865
 
@@ -6863,19 +6872,19 @@ var LineEndingSize;
6863
6872
  })(LineEndingSize || (LineEndingSize = {}));
6864
6873
  /**
6865
6874
  * Type of the line ending.
6866
-
6875
+
6867
6876
  none
6868
-
6877
+
6869
6878
  arrow
6870
-
6879
+
6871
6880
  filledArrow
6872
-
6881
+
6873
6882
  square
6874
-
6883
+
6875
6884
  filledSquare
6876
-
6885
+
6877
6886
  circle
6878
-
6887
+
6879
6888
  filledCircle
6880
6889
  */
6881
6890
 
@@ -6893,15 +6902,15 @@ var LineEndingType;
6893
6902
  })(LineEndingType || (LineEndingType = {}));
6894
6903
  /**
6895
6904
  *
6896
-
6905
+
6897
6906
  Unknown
6898
-
6907
+
6899
6908
  union
6900
-
6909
+
6901
6910
  intersection
6902
-
6911
+
6903
6912
  subtraction
6904
-
6913
+
6905
6914
  symDifference
6906
6915
  */
6907
6916
 
@@ -6917,19 +6926,19 @@ var Operation;
6917
6926
  })(Operation || (Operation = {}));
6918
6927
  /**
6919
6928
  * User permissions for server security objects (services, projects etc.)
6920
-
6929
+
6921
6930
  none
6922
-
6931
+
6923
6932
  configure
6924
-
6933
+
6925
6934
  write
6926
-
6935
+
6927
6936
  read
6928
-
6937
+
6929
6938
  read,configure
6930
-
6939
+
6931
6940
  read,write
6932
-
6941
+
6933
6942
  read,write,configure
6934
6943
  */
6935
6944
 
@@ -6947,19 +6956,19 @@ var Permissions;
6947
6956
  })(Permissions || (Permissions = {}));
6948
6957
  /**
6949
6958
  * Type of the authorization policy.
6950
-
6959
+
6951
6960
  Unknown
6952
-
6961
+
6953
6962
  CreateTable
6954
-
6963
+
6955
6964
  CreateLayer
6956
-
6965
+
6957
6966
  CreateProject
6958
-
6967
+
6959
6968
  MaxFeaturesInOneTable
6960
-
6969
+
6961
6970
  MaxObjectsToExport
6962
-
6971
+
6963
6972
  MaxUploadContentSize
6964
6973
  */
6965
6974
 
@@ -6977,19 +6986,19 @@ var PolicyType;
6977
6986
  })(PolicyType || (PolicyType = {}));
6978
6987
  /**
6979
6988
  * The `ResourceType` represents resource manager supports types.
6980
-
6989
+
6981
6990
  Unknown
6982
-
6991
+
6983
6992
  table
6984
-
6993
+
6985
6994
  layer
6986
-
6995
+
6987
6996
  project
6988
-
6997
+
6989
6998
  file
6990
-
6999
+
6991
7000
  feature
6992
-
7001
+
6993
7002
  tag
6994
7003
  */
6995
7004
 
@@ -7015,21 +7024,21 @@ var ResourceTypeLink;
7015
7024
  })(ResourceTypeLink || (ResourceTypeLink = {}));
7016
7025
  /**
7017
7026
  * Status of the server task.
7018
-
7027
+
7019
7028
  None
7020
-
7029
+
7021
7030
  Scheduled
7022
-
7031
+
7023
7032
  Planning
7024
-
7033
+
7025
7034
  Executing
7026
-
7035
+
7027
7036
  Completed
7028
-
7037
+
7029
7038
  Failed
7030
-
7039
+
7031
7040
  Canceled
7032
-
7041
+
7033
7042
  Timeout
7034
7043
  */
7035
7044
 
@@ -7048,11 +7057,11 @@ var ServerTaskStatus;
7048
7057
  })(ServerTaskStatus || (ServerTaskStatus = {}));
7049
7058
  /**
7050
7059
  * The `StringSubType` provides information about string attribute subtype.
7051
-
7060
+
7052
7061
  None
7053
-
7062
+
7054
7063
  Image
7055
-
7064
+
7056
7065
  PkkCode
7057
7066
  */
7058
7067
 
@@ -7066,13 +7075,13 @@ var StringSubType;
7066
7075
  })(StringSubType || (StringSubType = {}));
7067
7076
  /**
7068
7077
  * Sets the horizontal alignment of text.
7069
-
7078
+
7070
7079
  right
7071
-
7080
+
7072
7081
  left
7073
-
7082
+
7074
7083
  center
7075
-
7084
+
7076
7085
  justified
7077
7086
  */
7078
7087
 
@@ -7087,11 +7096,11 @@ var TextAlignment;
7087
7096
  })(TextAlignment || (TextAlignment = {}));
7088
7097
  /**
7089
7098
  * Sets the vertical alignment of text.
7090
-
7099
+
7091
7100
  top
7092
-
7101
+
7093
7102
  bottom
7094
-
7103
+
7095
7104
  middle
7096
7105
  */
7097
7106
 
@@ -7104,5 +7113,5 @@ var TextVerticalAlignment;
7104
7113
  TextVerticalAlignment["Middle"] = "middle";
7105
7114
  })(TextVerticalAlignment || (TextVerticalAlignment = {}));
7106
7115
 
7107
- 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 };
7116
+ export { 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 };
7108
7117
  //# sourceMappingURL=api.esm.js.map