@evergis/api 3.0.175 → 3.0.177

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
@@ -30,6 +30,9 @@ function _defineProperties(target, props) {
30
30
  function _createClass(Constructor, protoProps, staticProps) {
31
31
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
32
32
  if (staticProps) _defineProperties(Constructor, staticProps);
33
+ Object.defineProperty(Constructor, "prototype", {
34
+ writable: false
35
+ });
33
36
  return Constructor;
34
37
  }
35
38
 
@@ -63,6 +66,9 @@ function _inherits(subClass, superClass) {
63
66
  configurable: true
64
67
  }
65
68
  });
69
+ Object.defineProperty(subClass, "prototype", {
70
+ writable: false
71
+ });
66
72
  if (superClass) _setPrototypeOf(subClass, superClass);
67
73
  }
68
74
 
@@ -121,6 +127,8 @@ function _assertThisInitialized(self) {
121
127
  function _possibleConstructorReturn(self, call) {
122
128
  if (call && (typeof call === "object" || typeof call === "function")) {
123
129
  return call;
130
+ } else if (call !== void 0) {
131
+ throw new TypeError("Derived constructors may only return object or undefined");
124
132
  }
125
133
 
126
134
  return _assertThisInitialized(self);
@@ -154,7 +162,7 @@ function _superPropBase(object, property) {
154
162
  return object;
155
163
  }
156
164
 
157
- function _get(target, property, receiver) {
165
+ function _get() {
158
166
  if (typeof Reflect !== "undefined" && Reflect.get) {
159
167
  _get = Reflect.get;
160
168
  } else {
@@ -165,14 +173,14 @@ function _get(target, property, receiver) {
165
173
  var desc = Object.getOwnPropertyDescriptor(base, property);
166
174
 
167
175
  if (desc.get) {
168
- return desc.get.call(receiver);
176
+ return desc.get.call(arguments.length < 3 ? target : receiver);
169
177
  }
170
178
 
171
179
  return desc.value;
172
180
  };
173
181
  }
174
182
 
175
- return _get(target, property, receiver || target);
183
+ return _get.apply(this, arguments);
176
184
  }
177
185
 
178
186
  let HttpClient = /*#__PURE__*/function () {
@@ -3969,7 +3977,8 @@ function notError(v) {
3969
3977
  return !isError(v);
3970
3978
  }
3971
3979
 
3972
- const _excluded$5 = ["remote"];
3980
+ const _excluded$5 = ["remote"],
3981
+ _excluded2$3 = ["remote"];
3973
3982
  let Layers = /*#__PURE__*/function (_LayersService) {
3974
3983
  _inherits(Layers, _LayersService);
3975
3984
 
@@ -4017,6 +4026,20 @@ let Layers = /*#__PURE__*/function (_LayersService) {
4017
4026
 
4018
4027
  return this.publishLocalTileService(configuration);
4019
4028
  }
4029
+ }, {
4030
+ key: "updateTileLayer",
4031
+ value: function updateTileLayer(_ref2) {
4032
+ let {
4033
+ remote
4034
+ } = _ref2,
4035
+ configuration = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
4036
+
4037
+ if (remote) {
4038
+ return this.updateRemoteTileService(configuration.name, configuration);
4039
+ }
4040
+
4041
+ return this.updateLocalTileService(configuration.name, configuration);
4042
+ }
4020
4043
  }, {
4021
4044
  key: "uploadPreview",
4022
4045
  value: function uploadPreview(name, file) {
@@ -4044,6 +4067,26 @@ let Layers = /*#__PURE__*/function (_LayersService) {
4044
4067
  value: function update(configuration) {
4045
4068
  return this.updatePostgresLayerService(configuration.name, configuration);
4046
4069
  }
4070
+ }, {
4071
+ key: "createQueryLayer",
4072
+ value: function createQueryLayer(configuration) {
4073
+ return this.publishQueryLayerService(configuration);
4074
+ }
4075
+ }, {
4076
+ key: "updateQueryLayer",
4077
+ value: function updateQueryLayer(configuration) {
4078
+ return this.updateQueryLayerService(configuration.name, configuration);
4079
+ }
4080
+ }, {
4081
+ key: "createProxyLayer",
4082
+ value: function createProxyLayer(configuration) {
4083
+ return this.publishProxyService(configuration);
4084
+ }
4085
+ }, {
4086
+ key: "updateProxyLayer",
4087
+ value: function updateProxyLayer(configuration) {
4088
+ return this.updateProxyService(configuration.name, configuration);
4089
+ }
4047
4090
  }, {
4048
4091
  key: "remove",
4049
4092
  value: async function remove(name) {
@@ -4501,8 +4544,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
4501
4544
  || event.code === 4002
4502
4545
  /* InvalidSession */
4503
4546
  ) {
4504
- _this.connectStatus = ConnectionStatus.SessionClosed;
4505
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
4547
+ _this.connectStatus = ConnectionStatus.SessionClosed;
4548
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
4506
4549
  _this.connectStatus = ConnectionStatus.Break;
4507
4550
  _this.reconnectTries++;
4508
4551
 
@@ -5336,12 +5379,12 @@ let Resources = /*#__PURE__*/function () {
5336
5379
  }, {
5337
5380
  key: "getDependentNames",
5338
5381
  value: function getDependentNames(deps, depType) {
5339
- return deps.filter((_ref) => {
5382
+ return deps.filter(_ref => {
5340
5383
  let {
5341
5384
  type
5342
5385
  } = _ref;
5343
5386
  return type === depType;
5344
- }).map((_ref2) => {
5387
+ }).map(_ref2 => {
5345
5388
  let {
5346
5389
  name
5347
5390
  } = _ref2;
@@ -5797,7 +5840,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
5797
5840
  const taskProgress = await this.getTaskProgress(id);
5798
5841
  this.resolveTaskStatus(taskProgress, resolve, reject);
5799
5842
 
5800
- const taskResultCallback = async (_ref) => {
5843
+ const taskResultCallback = async _ref => {
5801
5844
  let {
5802
5845
  data
5803
5846
  } = _ref;
@@ -6221,7 +6264,7 @@ let Styles = /*#__PURE__*/function (_StyleService) {
6221
6264
  }(StyleService);
6222
6265
 
6223
6266
  const _excluded$6 = ["name"],
6224
- _excluded2$3 = ["name"],
6267
+ _excluded2$4 = ["name"],
6225
6268
  _excluded3$3 = ["name"],
6226
6269
  _excluded4$2 = ["name"];
6227
6270
  /**
@@ -6439,7 +6482,7 @@ let TablesService = /*#__PURE__*/function (_Service) {
6439
6482
  let {
6440
6483
  name
6441
6484
  } = _ref2,
6442
- query = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
6485
+ query = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
6443
6486
 
6444
6487
  return this.http.patch("/tables/" + name + "/data", data, query).then(() => {});
6445
6488
  }
@@ -7416,47 +7459,47 @@ function isFeatureLayer(layer) {
7416
7459
 
7417
7460
  /**
7418
7461
  *
7419
-
7462
+
7420
7463
  None
7421
-
7464
+
7422
7465
  Array
7423
-
7466
+
7424
7467
  Min
7425
-
7468
+
7426
7469
  Max
7427
-
7470
+
7428
7471
  Avg
7429
-
7472
+
7430
7473
  Sum
7431
-
7474
+
7432
7475
  Extent
7433
-
7476
+
7434
7477
  H3
7435
-
7478
+
7436
7479
  Count
7437
-
7480
+
7438
7481
  TotalCount
7439
-
7482
+
7440
7483
  DistinctCount
7441
-
7484
+
7442
7485
  First
7443
-
7486
+
7444
7487
  Last
7445
-
7488
+
7446
7489
  Median
7447
-
7490
+
7448
7491
  Mod
7449
-
7492
+
7450
7493
  StdDeviation
7451
-
7494
+
7452
7495
  SumOfProduct
7453
-
7496
+
7454
7497
  OnlyValue
7455
-
7498
+
7456
7499
  WeightedAvg
7457
-
7500
+
7458
7501
  DensityIndicators
7459
-
7502
+
7460
7503
  DividedSum
7461
7504
  */
7462
7505
  var AggregationFunction;
@@ -7486,13 +7529,13 @@ var AggregationFunction;
7486
7529
  })(AggregationFunction || (AggregationFunction = {}));
7487
7530
  /**
7488
7531
  * Attribute selector type.
7489
-
7532
+
7490
7533
  None
7491
-
7534
+
7492
7535
  SelectFromHandBook
7493
-
7536
+
7494
7537
  SelectFromRange
7495
-
7538
+
7496
7539
  ViewHandBook
7497
7540
  */
7498
7541
 
@@ -7507,31 +7550,31 @@ var AttributeSelectorType;
7507
7550
  })(AttributeSelectorType || (AttributeSelectorType = {}));
7508
7551
  /**
7509
7552
  * Types of the attributes that are supported by the system.
7510
-
7553
+
7511
7554
  Unknown
7512
-
7555
+
7513
7556
  String
7514
-
7557
+
7515
7558
  Int32
7516
-
7559
+
7517
7560
  Int64
7518
-
7561
+
7519
7562
  Double
7520
-
7563
+
7521
7564
  DateTime
7522
-
7565
+
7523
7566
  Boolean
7524
-
7567
+
7525
7568
  Point
7526
-
7569
+
7527
7570
  Polyline
7528
-
7571
+
7529
7572
  MultiPolygon
7530
-
7573
+
7531
7574
  Multipoint
7532
-
7575
+
7533
7576
  H3Index
7534
-
7577
+
7535
7578
  Json
7536
7579
  */
7537
7580
 
@@ -7555,15 +7598,15 @@ var AttributeType;
7555
7598
  })(AttributeType || (AttributeType = {}));
7556
7599
  /**
7557
7600
  * Describes classification methods.
7558
-
7601
+
7559
7602
  none
7560
-
7603
+
7561
7604
  naturalBreaks
7562
-
7605
+
7563
7606
  equalInterval
7564
-
7607
+
7565
7608
  quantile
7566
-
7609
+
7567
7610
  unique
7568
7611
  */
7569
7612
 
@@ -7579,11 +7622,11 @@ var ClassificationType;
7579
7622
  })(ClassificationType || (ClassificationType = {}));
7580
7623
  /**
7581
7624
  *
7582
-
7625
+
7583
7626
  decimal
7584
-
7627
+
7585
7628
  dateTime
7586
-
7629
+
7587
7630
  text
7588
7631
  */
7589
7632
 
@@ -7597,55 +7640,55 @@ var ClassifyAttributeType;
7597
7640
  })(ClassifyAttributeType || (ClassifyAttributeType = {}));
7598
7641
  /**
7599
7642
  * Types of errors that can occur during layer initialize.
7600
-
7643
+
7601
7644
  Unknown
7602
-
7645
+
7603
7646
  SerializeError
7604
-
7647
+
7605
7648
  InvalidDataService
7606
-
7649
+
7607
7650
  InvalidConfiguration
7608
-
7651
+
7609
7652
  InvalidDataServiceName
7610
-
7653
+
7611
7654
  InvalidTableName
7612
-
7655
+
7613
7656
  InvalidLayerName
7614
-
7657
+
7615
7658
  ResourceNotFound
7616
-
7659
+
7617
7660
  InvalidCondition
7618
-
7661
+
7619
7662
  InvalidAttributes
7620
-
7663
+
7621
7664
  InvalidIdAttribute
7622
-
7665
+
7623
7666
  InvalidGeometryAttribute
7624
-
7667
+
7625
7668
  InvalidGeometryAttributeType
7626
-
7669
+
7627
7670
  InvalidColumnName
7628
-
7671
+
7629
7672
  InvalidIdColumnSettings
7630
-
7673
+
7631
7674
  ColumnNotExistsInTable
7632
-
7675
+
7633
7676
  InvalidStyle
7634
-
7677
+
7635
7678
  InvalidLayerType
7636
-
7679
+
7637
7680
  ColumnLoadingError
7638
-
7681
+
7639
7682
  InvalidAttributeFormat
7640
-
7683
+
7641
7684
  DataSourceNotFound
7642
-
7685
+
7643
7686
  DuplicateColumns
7644
-
7687
+
7645
7688
  DuplicateAttributes
7646
-
7689
+
7647
7690
  TableWithoutColumns
7648
-
7691
+
7649
7692
  InvalidTableReferenceConfiguration
7650
7693
  */
7651
7694
 
@@ -7681,15 +7724,15 @@ var ConfigurationErrorEnum;
7681
7724
  })(ConfigurationErrorEnum || (ConfigurationErrorEnum = {}));
7682
7725
  /**
7683
7726
  * Type of the error.
7684
-
7727
+
7685
7728
  ResourceLimitExceeded
7686
-
7729
+
7687
7730
  ResourceNotFound
7688
-
7731
+
7689
7732
  InternalError
7690
-
7733
+
7691
7734
  BadRequest
7692
-
7735
+
7693
7736
  DuplicateContent
7694
7737
  */
7695
7738
 
@@ -7740,9 +7783,9 @@ var ErrorType;
7740
7783
  })(ErrorType || (ErrorType = {}));
7741
7784
  /**
7742
7785
  * Type of the feature.
7743
-
7786
+
7744
7787
  Unknown
7745
-
7788
+
7746
7789
  GeometricFeature
7747
7790
  */
7748
7791
 
@@ -7755,11 +7798,11 @@ var FeatureType;
7755
7798
  })(FeatureType || (FeatureType = {}));
7756
7799
  /**
7757
7800
  * Sets whether font should be styled.
7758
-
7801
+
7759
7802
  normal
7760
-
7803
+
7761
7804
  oblique
7762
-
7805
+
7763
7806
  italic
7764
7807
  */
7765
7808
 
@@ -7773,27 +7816,27 @@ var FontStyle;
7773
7816
  })(FontStyle || (FontStyle = {}));
7774
7817
  /**
7775
7818
  * Specifies the weight (or boldness) of the font.
7776
-
7819
+
7777
7820
  Thin
7778
-
7821
+
7779
7822
  ExtraLight
7780
-
7823
+
7781
7824
  Light
7782
-
7825
+
7783
7826
  SemiLight
7784
-
7827
+
7785
7828
  Normal
7786
-
7829
+
7787
7830
  Medium
7788
-
7831
+
7789
7832
  DemiBold
7790
-
7833
+
7791
7834
  Bold
7792
-
7835
+
7793
7836
  ExtraBold
7794
-
7837
+
7795
7838
  Black
7796
-
7839
+
7797
7840
  ExtraBlack
7798
7841
  */
7799
7842
 
@@ -7815,17 +7858,17 @@ var FontWeight;
7815
7858
  })(FontWeight || (FontWeight = {}));
7816
7859
  /**
7817
7860
  *
7818
-
7861
+
7819
7862
  unknown
7820
-
7863
+
7821
7864
  point
7822
-
7865
+
7823
7866
  polyline
7824
-
7867
+
7825
7868
  multipolygon
7826
-
7869
+
7827
7870
  envelope
7828
-
7871
+
7829
7872
  multipoint
7830
7873
  */
7831
7874
 
@@ -7842,13 +7885,13 @@ var GeometryType;
7842
7885
  })(GeometryType || (GeometryType = {}));
7843
7886
  /**
7844
7887
  * Resource group.
7845
-
7888
+
7846
7889
  my
7847
-
7890
+
7848
7891
  role
7849
-
7892
+
7850
7893
  public
7851
-
7894
+
7852
7895
  all
7853
7896
  */
7854
7897
 
@@ -7863,13 +7906,13 @@ var Group;
7863
7906
  })(Group || (Group = {}));
7864
7907
  /**
7865
7908
  * Specifies the settings of line cap. This is applied to the beginning and end of each non-closed line.
7866
-
7909
+
7867
7910
  Flat
7868
-
7911
+
7869
7912
  Square
7870
-
7913
+
7871
7914
  Round
7872
-
7915
+
7873
7916
  Triangle
7874
7917
  */
7875
7918
 
@@ -7884,29 +7927,29 @@ var LineCapStyle;
7884
7927
  })(LineCapStyle || (LineCapStyle = {}));
7885
7928
  /**
7886
7929
  * Type of the line ending.
7887
-
7930
+
7888
7931
  none
7889
-
7932
+
7890
7933
  arrow
7891
-
7934
+
7892
7935
  filledArrow
7893
-
7936
+
7894
7937
  square
7895
-
7938
+
7896
7939
  filledSquare
7897
-
7940
+
7898
7941
  circle
7899
-
7942
+
7900
7943
  filledCircle
7901
-
7944
+
7902
7945
  diamond
7903
-
7946
+
7904
7947
  filledDiamond
7905
-
7948
+
7906
7949
  roundSquare
7907
-
7950
+
7908
7951
  filledRoundSquare
7909
-
7952
+
7910
7953
  svg
7911
7954
  */
7912
7955
 
@@ -7929,11 +7972,11 @@ var LineEndingType;
7929
7972
  })(LineEndingType || (LineEndingType = {}));
7930
7973
  /**
7931
7974
  * Specifies the settings of lines join. This is applied to corners in lines and rectangles.
7932
-
7975
+
7933
7976
  Miter
7934
-
7977
+
7935
7978
  Bevel
7936
-
7979
+
7937
7980
  Round
7938
7981
  */
7939
7982
 
@@ -7947,15 +7990,15 @@ var LineJoinType;
7947
7990
  })(LineJoinType || (LineJoinType = {}));
7948
7991
  /**
7949
7992
  *
7950
-
7993
+
7951
7994
  Unknown
7952
-
7995
+
7953
7996
  union
7954
-
7997
+
7955
7998
  intersection
7956
-
7999
+
7957
8000
  subtraction
7958
-
8001
+
7959
8002
  symDifference
7960
8003
  */
7961
8004
 
@@ -7971,9 +8014,9 @@ var Operation;
7971
8014
  })(Operation || (Operation = {}));
7972
8015
  /**
7973
8016
  * Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed.
7974
-
8017
+
7975
8018
  xyz
7976
-
8019
+
7977
8020
  tms
7978
8021
  */
7979
8022
 
@@ -7986,19 +8029,19 @@ var PbfSchema;
7986
8029
  })(PbfSchema || (PbfSchema = {}));
7987
8030
  /**
7988
8031
  * User permissions for server security objects (services, projects etc.)
7989
-
8032
+
7990
8033
  none
7991
-
8034
+
7992
8035
  configure
7993
-
8036
+
7994
8037
  write
7995
-
8038
+
7996
8039
  read
7997
-
8040
+
7998
8041
  read,configure
7999
-
8042
+
8000
8043
  read,write
8001
-
8044
+
8002
8045
  read,write,configure
8003
8046
  */
8004
8047
 
@@ -8016,19 +8059,19 @@ var Permissions;
8016
8059
  })(Permissions || (Permissions = {}));
8017
8060
  /**
8018
8061
  * Type of the authorization policy.
8019
-
8062
+
8020
8063
  Unknown
8021
-
8064
+
8022
8065
  CreateTable
8023
-
8066
+
8024
8067
  CreateLayer
8025
-
8068
+
8026
8069
  CreateProject
8027
-
8070
+
8028
8071
  MaxFeaturesInOneTable
8029
-
8072
+
8030
8073
  MaxObjectsToExport
8031
-
8074
+
8032
8075
  MaxUploadContentSize
8033
8076
  */
8034
8077
 
@@ -8046,17 +8089,17 @@ var PolicyType;
8046
8089
  })(PolicyType || (PolicyType = {}));
8047
8090
  /**
8048
8091
  * Types of table reference.
8049
-
8092
+
8050
8093
  OneToMany
8051
-
8094
+
8052
8095
  OneToOne
8053
-
8096
+
8054
8097
  Intersect
8055
-
8098
+
8056
8099
  RightJoin
8057
-
8100
+
8058
8101
  FullJoin
8059
-
8102
+
8060
8103
  CrossJoin
8061
8104
  */
8062
8105
 
@@ -8073,19 +8116,19 @@ var ReferenceJoinType;
8073
8116
  })(ReferenceJoinType || (ReferenceJoinType = {}));
8074
8117
  /**
8075
8118
  * The `ResourceType` represents resource manager supports types.
8076
-
8119
+
8077
8120
  Unknown
8078
-
8121
+
8079
8122
  table
8080
-
8123
+
8081
8124
  layer
8082
-
8125
+
8083
8126
  project
8084
-
8127
+
8085
8128
  file
8086
-
8129
+
8087
8130
  feature
8088
-
8131
+
8089
8132
  tag
8090
8133
  */
8091
8134
 
@@ -8111,21 +8154,21 @@ var ResourceTypeLink;
8111
8154
  })(ResourceTypeLink || (ResourceTypeLink = {}));
8112
8155
  /**
8113
8156
  * Status of the server task.
8114
-
8157
+
8115
8158
  None
8116
-
8159
+
8117
8160
  Scheduled
8118
-
8161
+
8119
8162
  Planning
8120
-
8163
+
8121
8164
  Executing
8122
-
8165
+
8123
8166
  Completed
8124
-
8167
+
8125
8168
  Failed
8126
-
8169
+
8127
8170
  Canceled
8128
-
8171
+
8129
8172
  Timeout
8130
8173
  */
8131
8174
 
@@ -8144,11 +8187,11 @@ var ServerTaskStatus;
8144
8187
  })(ServerTaskStatus || (ServerTaskStatus = {}));
8145
8188
  /**
8146
8189
  * Simplify type.
8147
-
8190
+
8148
8191
  Basic
8149
-
8192
+
8150
8193
  PreserveTopology
8151
-
8194
+
8152
8195
  VW
8153
8196
  */
8154
8197
 
@@ -8162,13 +8205,13 @@ var SimplifyType;
8162
8205
  })(SimplifyType || (SimplifyType = {}));
8163
8206
  /**
8164
8207
  * The `StringSubType` provides information about string attribute subtype.
8165
-
8208
+
8166
8209
  None
8167
-
8210
+
8168
8211
  Image
8169
-
8212
+
8170
8213
  PkkCode
8171
-
8214
+
8172
8215
  Attachments
8173
8216
  */
8174
8217
 
@@ -8183,9 +8226,9 @@ var StringSubType;
8183
8226
  })(StringSubType || (StringSubType = {}));
8184
8227
  /**
8185
8228
  * Task owner group.
8186
-
8229
+
8187
8230
  my
8188
-
8231
+
8189
8232
  all
8190
8233
  */
8191
8234
 
@@ -8198,13 +8241,13 @@ var TaskGroup;
8198
8241
  })(TaskGroup || (TaskGroup = {}));
8199
8242
  /**
8200
8243
  * Sets the horizontal alignment of text.
8201
-
8244
+
8202
8245
  right
8203
-
8246
+
8204
8247
  left
8205
-
8248
+
8206
8249
  center
8207
-
8250
+
8208
8251
  justified
8209
8252
  */
8210
8253
 
@@ -8219,11 +8262,11 @@ var TextAlignment;
8219
8262
  })(TextAlignment || (TextAlignment = {}));
8220
8263
  /**
8221
8264
  * Sets the vertical alignment of text.
8222
-
8265
+
8223
8266
  top
8224
-
8267
+
8225
8268
  bottom
8226
-
8269
+
8227
8270
  middle
8228
8271
  */
8229
8272