@evergis/api 3.0.120 → 3.0.122

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 () {
@@ -967,8 +975,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
967
975
  || event.code === 4002
968
976
  /* InvalidSession */
969
977
  ) {
970
- _this.connectStatus = ConnectionStatus.SessionClosed;
971
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
978
+ _this.connectStatus = ConnectionStatus.SessionClosed;
979
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
972
980
  _this.connectStatus = ConnectionStatus.Break;
973
981
  _this.reconnectTries++;
974
982
 
@@ -1474,7 +1482,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
1474
1482
  const taskProgress = await this.getTaskProgress(id);
1475
1483
  this.resolveTaskStatus(taskProgress, resolve, reject);
1476
1484
 
1477
- const taskResultCallback = async (_ref) => {
1485
+ const taskResultCallback = async _ref => {
1478
1486
  let {
1479
1487
  data
1480
1488
  } = _ref;
@@ -3617,12 +3625,12 @@ let Resources = /*#__PURE__*/function () {
3617
3625
  }, {
3618
3626
  key: "getDependentNames",
3619
3627
  value: function getDependentNames(deps, depType) {
3620
- return deps.filter((_ref) => {
3628
+ return deps.filter(_ref => {
3621
3629
  let {
3622
3630
  type
3623
3631
  } = _ref;
3624
3632
  return type === depType;
3625
- }).map((_ref2) => {
3633
+ }).map(_ref2 => {
3626
3634
  let {
3627
3635
  name
3628
3636
  } = _ref2;
@@ -6622,45 +6630,47 @@ function isFeatureLayer(layer) {
6622
6630
 
6623
6631
  /**
6624
6632
  *
6625
-
6633
+
6626
6634
  None
6627
-
6635
+
6628
6636
  Array
6629
-
6637
+
6630
6638
  Min
6631
-
6639
+
6632
6640
  Max
6633
-
6641
+
6634
6642
  Avg
6635
-
6643
+
6636
6644
  Sum
6637
-
6645
+
6638
6646
  Extent
6639
-
6647
+
6648
+ H3
6649
+
6640
6650
  Count
6641
-
6651
+
6642
6652
  TotalCount
6643
-
6653
+
6644
6654
  DistinctCount
6645
-
6655
+
6646
6656
  First
6647
-
6657
+
6648
6658
  Last
6649
-
6659
+
6650
6660
  Median
6651
-
6661
+
6652
6662
  Mod
6653
-
6663
+
6654
6664
  StdDeviation
6655
-
6665
+
6656
6666
  SumOfProduct
6657
-
6667
+
6658
6668
  OnlyValue
6659
-
6669
+
6660
6670
  WeightedAvg
6661
-
6671
+
6662
6672
  DensityIndicators
6663
-
6673
+
6664
6674
  DividedSum
6665
6675
  */
6666
6676
  var AggregationFunction;
@@ -6673,6 +6683,7 @@ var AggregationFunction;
6673
6683
  AggregationFunction["Avg"] = "Avg";
6674
6684
  AggregationFunction["Sum"] = "Sum";
6675
6685
  AggregationFunction["Extent"] = "Extent";
6686
+ AggregationFunction["H3"] = "H3";
6676
6687
  AggregationFunction["Count"] = "Count";
6677
6688
  AggregationFunction["TotalCount"] = "TotalCount";
6678
6689
  AggregationFunction["DistinctCount"] = "DistinctCount";
@@ -6689,28 +6700,30 @@ var AggregationFunction;
6689
6700
  })(AggregationFunction || (AggregationFunction = {}));
6690
6701
  /**
6691
6702
  * Types of the attributes that are supported by the system.
6692
-
6703
+
6693
6704
  Unknown
6694
-
6705
+
6695
6706
  String
6696
-
6707
+
6697
6708
  Int32
6698
-
6709
+
6699
6710
  Int64
6700
-
6711
+
6701
6712
  Double
6702
-
6713
+
6703
6714
  DateTime
6704
-
6715
+
6705
6716
  Boolean
6706
-
6717
+
6707
6718
  Point
6708
-
6719
+
6709
6720
  Polyline
6710
-
6721
+
6711
6722
  Polygon
6712
-
6723
+
6713
6724
  Multipoint
6725
+
6726
+ H3Index
6714
6727
  */
6715
6728
 
6716
6729
 
@@ -6728,18 +6741,19 @@ var AttributeType;
6728
6741
  AttributeType["Polyline"] = "Polyline";
6729
6742
  AttributeType["Polygon"] = "Polygon";
6730
6743
  AttributeType["Multipoint"] = "Multipoint";
6744
+ AttributeType["H3Index"] = "H3Index";
6731
6745
  })(AttributeType || (AttributeType = {}));
6732
6746
  /**
6733
6747
  * Describes classification methods.
6734
-
6748
+
6735
6749
  none
6736
-
6750
+
6737
6751
  naturalBreaks
6738
-
6752
+
6739
6753
  equalInterval
6740
-
6754
+
6741
6755
  quantile
6742
-
6756
+
6743
6757
  unique
6744
6758
  */
6745
6759
 
@@ -6755,11 +6769,11 @@ var ClassificationType;
6755
6769
  })(ClassificationType || (ClassificationType = {}));
6756
6770
  /**
6757
6771
  * Type of attribute.
6758
-
6772
+
6759
6773
  decimal
6760
-
6774
+
6761
6775
  dateTime
6762
-
6776
+
6763
6777
  text
6764
6778
  */
6765
6779
 
@@ -6773,53 +6787,55 @@ var ClassifyAttributeType;
6773
6787
  })(ClassifyAttributeType || (ClassifyAttributeType = {}));
6774
6788
  /**
6775
6789
  * Types of errors that can occur during layer initialize.
6776
-
6790
+
6777
6791
  Unknown
6778
-
6792
+
6779
6793
  SerializeError
6780
-
6794
+
6781
6795
  InvalidDataService
6782
-
6796
+
6783
6797
  InvalidConfiguration
6784
-
6798
+
6785
6799
  InvalidDataServiceName
6786
-
6800
+
6787
6801
  InvalidTableName
6788
-
6802
+
6789
6803
  InvalidLayerName
6790
-
6804
+
6791
6805
  ResourceNotFound
6792
-
6806
+
6793
6807
  InvalidCondition
6794
-
6808
+
6795
6809
  InvalidAttributes
6796
-
6810
+
6797
6811
  InvalidIdAttribute
6798
-
6812
+
6799
6813
  InvalidGeometryAttribute
6800
-
6814
+
6801
6815
  InvalidGeometryAttributeType
6802
-
6816
+
6803
6817
  InvalidColumnName
6804
-
6818
+
6805
6819
  InvalidIdColumnSettings
6806
-
6820
+
6807
6821
  ColumnNotExistsInTable
6808
-
6822
+
6809
6823
  InvalidStyle
6810
-
6824
+
6811
6825
  InvalidLayerType
6812
-
6826
+
6813
6827
  ColumnLoadingError
6814
-
6828
+
6815
6829
  InvalidAttributeFormat
6816
-
6830
+
6817
6831
  DataSourceNotFound
6818
-
6832
+
6819
6833
  DuplicateColumns
6820
-
6834
+
6835
+ DuplicateAttributes
6836
+
6821
6837
  TableWithoutColumns
6822
-
6838
+
6823
6839
  InvalidTableReferenceConfiguration
6824
6840
  */
6825
6841
 
@@ -6849,20 +6865,21 @@ var ConfigurationErrorEnum;
6849
6865
  ConfigurationErrorEnum["InvalidAttributeFormat"] = "InvalidAttributeFormat";
6850
6866
  ConfigurationErrorEnum["DataSourceNotFound"] = "DataSourceNotFound";
6851
6867
  ConfigurationErrorEnum["DuplicateColumns"] = "DuplicateColumns";
6868
+ ConfigurationErrorEnum["DuplicateAttributes"] = "DuplicateAttributes";
6852
6869
  ConfigurationErrorEnum["TableWithoutColumns"] = "TableWithoutColumns";
6853
6870
  ConfigurationErrorEnum["InvalidTableReferenceConfiguration"] = "InvalidTableReferenceConfiguration";
6854
6871
  })(ConfigurationErrorEnum || (ConfigurationErrorEnum = {}));
6855
6872
  /**
6856
6873
  * Type of the error.
6857
-
6874
+
6858
6875
  ResourceLimitExceeded
6859
-
6876
+
6860
6877
  ResourceNotFound
6861
-
6878
+
6862
6879
  InternalError
6863
-
6880
+
6864
6881
  BadRequest
6865
-
6882
+
6866
6883
  DuplicateContent
6867
6884
  */
6868
6885
 
@@ -6917,9 +6934,9 @@ var ErrorType;
6917
6934
  })(ErrorType || (ErrorType = {}));
6918
6935
  /**
6919
6936
  * Type of the feature.
6920
-
6937
+
6921
6938
  Unknown
6922
-
6939
+
6923
6940
  GeometricFeature
6924
6941
  */
6925
6942
 
@@ -6932,11 +6949,11 @@ var FeatureType;
6932
6949
  })(FeatureType || (FeatureType = {}));
6933
6950
  /**
6934
6951
  * Sets whether font should be styled.
6935
-
6952
+
6936
6953
  normal
6937
-
6954
+
6938
6955
  oblique
6939
-
6956
+
6940
6957
  italic
6941
6958
  */
6942
6959
 
@@ -6950,27 +6967,27 @@ var FontStyle;
6950
6967
  })(FontStyle || (FontStyle = {}));
6951
6968
  /**
6952
6969
  * Specifies the weight (or boldness) of the font.
6953
-
6970
+
6954
6971
  Thin
6955
-
6972
+
6956
6973
  ExtraLight
6957
-
6974
+
6958
6975
  Light
6959
-
6976
+
6960
6977
  SemiLight
6961
-
6978
+
6962
6979
  Normal
6963
-
6980
+
6964
6981
  Medium
6965
-
6982
+
6966
6983
  DemiBold
6967
-
6984
+
6968
6985
  Bold
6969
-
6986
+
6970
6987
  ExtraBold
6971
-
6988
+
6972
6989
  Black
6973
-
6990
+
6974
6991
  ExtraBlack
6975
6992
  */
6976
6993
 
@@ -6992,17 +7009,17 @@ var FontWeight;
6992
7009
  })(FontWeight || (FontWeight = {}));
6993
7010
  /**
6994
7011
  *
6995
-
7012
+
6996
7013
  unknown
6997
-
7014
+
6998
7015
  point
6999
-
7016
+
7000
7017
  polyline
7001
-
7018
+
7002
7019
  polygon
7003
-
7020
+
7004
7021
  envelope
7005
-
7022
+
7006
7023
  multipoint
7007
7024
  */
7008
7025
 
@@ -7019,13 +7036,13 @@ var GeometryType;
7019
7036
  })(GeometryType || (GeometryType = {}));
7020
7037
  /**
7021
7038
  * Resource group.
7022
-
7039
+
7023
7040
  my
7024
-
7041
+
7025
7042
  role
7026
-
7043
+
7027
7044
  public
7028
-
7045
+
7029
7046
  all
7030
7047
  */
7031
7048
 
@@ -7041,9 +7058,9 @@ var Group;
7041
7058
  /**
7042
7059
  * The size of the line ending in a SPCore.Kernel.Rendering.Symbols.SimplePolylineSymbol. The values sent here can be one
7043
7060
  of the preset values, or a number representing the size of the ending in pixels for 1px wide lines.
7044
-
7061
+
7045
7062
  small
7046
-
7063
+
7047
7064
  large
7048
7065
  */
7049
7066
 
@@ -7056,19 +7073,19 @@ var LineEndingSize;
7056
7073
  })(LineEndingSize || (LineEndingSize = {}));
7057
7074
  /**
7058
7075
  * Type of the line ending.
7059
-
7076
+
7060
7077
  none
7061
-
7078
+
7062
7079
  arrow
7063
-
7080
+
7064
7081
  filledArrow
7065
-
7082
+
7066
7083
  square
7067
-
7084
+
7068
7085
  filledSquare
7069
-
7086
+
7070
7087
  circle
7071
-
7088
+
7072
7089
  filledCircle
7073
7090
  */
7074
7091
 
@@ -7086,15 +7103,15 @@ var LineEndingType;
7086
7103
  })(LineEndingType || (LineEndingType = {}));
7087
7104
  /**
7088
7105
  *
7089
-
7106
+
7090
7107
  Unknown
7091
-
7108
+
7092
7109
  union
7093
-
7110
+
7094
7111
  intersection
7095
-
7112
+
7096
7113
  subtraction
7097
-
7114
+
7098
7115
  symDifference
7099
7116
  */
7100
7117
 
@@ -7110,19 +7127,19 @@ var Operation;
7110
7127
  })(Operation || (Operation = {}));
7111
7128
  /**
7112
7129
  * User permissions for server security objects (services, projects etc.)
7113
-
7130
+
7114
7131
  none
7115
-
7132
+
7116
7133
  configure
7117
-
7134
+
7118
7135
  write
7119
-
7136
+
7120
7137
  read
7121
-
7138
+
7122
7139
  read,configure
7123
-
7140
+
7124
7141
  read,write
7125
-
7142
+
7126
7143
  read,write,configure
7127
7144
  */
7128
7145
 
@@ -7140,19 +7157,19 @@ var Permissions;
7140
7157
  })(Permissions || (Permissions = {}));
7141
7158
  /**
7142
7159
  * Type of the authorization policy.
7143
-
7160
+
7144
7161
  Unknown
7145
-
7162
+
7146
7163
  CreateTable
7147
-
7164
+
7148
7165
  CreateLayer
7149
-
7166
+
7150
7167
  CreateProject
7151
-
7168
+
7152
7169
  MaxFeaturesInOneTable
7153
-
7170
+
7154
7171
  MaxObjectsToExport
7155
-
7172
+
7156
7173
  MaxUploadContentSize
7157
7174
  */
7158
7175
 
@@ -7170,11 +7187,11 @@ var PolicyType;
7170
7187
  })(PolicyType || (PolicyType = {}));
7171
7188
  /**
7172
7189
  * Types of table reference.
7173
-
7190
+
7174
7191
  OneToMany
7175
-
7192
+
7176
7193
  OneToOne
7177
-
7194
+
7178
7195
  Intersect
7179
7196
  */
7180
7197
 
@@ -7188,19 +7205,19 @@ var ReferenceJoinType;
7188
7205
  })(ReferenceJoinType || (ReferenceJoinType = {}));
7189
7206
  /**
7190
7207
  * The `ResourceType` represents resource manager supports types.
7191
-
7208
+
7192
7209
  Unknown
7193
-
7210
+
7194
7211
  table
7195
-
7212
+
7196
7213
  layer
7197
-
7214
+
7198
7215
  project
7199
-
7216
+
7200
7217
  file
7201
-
7218
+
7202
7219
  feature
7203
-
7220
+
7204
7221
  tag
7205
7222
  */
7206
7223
 
@@ -7226,21 +7243,21 @@ var ResourceTypeLink;
7226
7243
  })(ResourceTypeLink || (ResourceTypeLink = {}));
7227
7244
  /**
7228
7245
  * Status of the server task.
7229
-
7246
+
7230
7247
  None
7231
-
7248
+
7232
7249
  Scheduled
7233
-
7250
+
7234
7251
  Planning
7235
-
7252
+
7236
7253
  Executing
7237
-
7254
+
7238
7255
  Completed
7239
-
7256
+
7240
7257
  Failed
7241
-
7258
+
7242
7259
  Canceled
7243
-
7260
+
7244
7261
  Timeout
7245
7262
  */
7246
7263
 
@@ -7258,12 +7275,27 @@ var ServerTaskStatus;
7258
7275
  ServerTaskStatus["Timeout"] = "Timeout";
7259
7276
  })(ServerTaskStatus || (ServerTaskStatus = {}));
7260
7277
  /**
7261
- * The `StringSubType` provides information about string attribute subtype.
7278
+ * Simplify type.
7279
+
7280
+ Basic
7281
+
7282
+ PreserveTopology
7283
+ */
7262
7284
 
7263
- None
7264
7285
 
7265
- Image
7286
+ var SimplifyType;
7266
7287
 
7288
+ (function (SimplifyType) {
7289
+ SimplifyType["Basic"] = "Basic";
7290
+ SimplifyType["PreserveTopology"] = "PreserveTopology";
7291
+ })(SimplifyType || (SimplifyType = {}));
7292
+ /**
7293
+ * The `StringSubType` provides information about string attribute subtype.
7294
+
7295
+ None
7296
+
7297
+ Image
7298
+
7267
7299
  PkkCode
7268
7300
  */
7269
7301
 
@@ -7277,9 +7309,9 @@ var StringSubType;
7277
7309
  })(StringSubType || (StringSubType = {}));
7278
7310
  /**
7279
7311
  * Task owner group.
7280
-
7312
+
7281
7313
  my
7282
-
7314
+
7283
7315
  all
7284
7316
  */
7285
7317
 
@@ -7292,13 +7324,13 @@ var TaskGroup;
7292
7324
  })(TaskGroup || (TaskGroup = {}));
7293
7325
  /**
7294
7326
  * Sets the horizontal alignment of text.
7295
-
7327
+
7296
7328
  right
7297
-
7329
+
7298
7330
  left
7299
-
7331
+
7300
7332
  center
7301
-
7333
+
7302
7334
  justified
7303
7335
  */
7304
7336
 
@@ -7313,11 +7345,11 @@ var TextAlignment;
7313
7345
  })(TextAlignment || (TextAlignment = {}));
7314
7346
  /**
7315
7347
  * Sets the vertical alignment of text.
7316
-
7348
+
7317
7349
  top
7318
-
7350
+
7319
7351
  bottom
7320
-
7352
+
7321
7353
  middle
7322
7354
  */
7323
7355
 
@@ -7330,5 +7362,5 @@ var TextVerticalAlignment;
7330
7362
  TextVerticalAlignment["Middle"] = "middle";
7331
7363
  })(TextVerticalAlignment || (TextVerticalAlignment = {}));
7332
7364
 
7333
- export { Account, AccountPreview, AggregationFunction, Api, ApiEvent, AttributeType, BulkOperations, ClassificationType, ClassifyAttributeType, ClientSettings, ConfigurationErrorEnum, ConnectionStatus, DependencyType, ErrorDetailsType, ErrorReason, ErrorType, EvergisDynamicLayer, EvergisTileLayer, External, FeatureType, Feedback, FileUpload, Filters, FontStyle, FontWeight, GEOCODE_PROVIDER, General, Geocode, GeometryType, Group, HttpClient, IceRouter, Import, Layers, LayersManager, LineEndingSize, LineEndingType, Names, Namespace, Notification, NotificationEvent, Operation, Permissions, PolicyType, PortalSettings, Projects, ReferenceJoinType, ResourceCatalog, ResourceSeparator, ResourceType, ResourceTypeLink, Resources, Scheduler, Security, ServerTaskStatus, SpatialProcessor, Statistic, StringSubType, Styles, Tables, TaskGroup, TextAlignment, TextVerticalAlignment, Tools, UrlPath, VectorTiles, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, isEvergisDynamicLayer, isEvergisTileLayer, isFeatureLayer, isHTTPError, isHandledError, isLayer, isProjectContentItems, isString, isTileLayerService, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique };
7365
+ export { Account, AccountPreview, AggregationFunction, Api, ApiEvent, AttributeType, BulkOperations, ClassificationType, ClassifyAttributeType, ClientSettings, ConfigurationErrorEnum, ConnectionStatus, DependencyType, ErrorDetailsType, ErrorReason, ErrorType, EvergisDynamicLayer, EvergisTileLayer, External, FeatureType, Feedback, FileUpload, Filters, FontStyle, FontWeight, GEOCODE_PROVIDER, General, Geocode, GeometryType, Group, HttpClient, IceRouter, Import, Layers, LayersManager, LineEndingSize, LineEndingType, Names, Namespace, Notification, NotificationEvent, Operation, Permissions, PolicyType, PortalSettings, Projects, ReferenceJoinType, ResourceCatalog, ResourceSeparator, ResourceType, ResourceTypeLink, Resources, Scheduler, Security, ServerTaskStatus, SimplifyType, SpatialProcessor, Statistic, StringSubType, Styles, Tables, TaskGroup, TextAlignment, TextVerticalAlignment, Tools, UrlPath, VectorTiles, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, isEvergisDynamicLayer, isEvergisTileLayer, isFeatureLayer, isHTTPError, isHandledError, isLayer, isProjectContentItems, isString, isTileLayerService, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique };
7334
7366
  //# sourceMappingURL=api.esm.js.map