@evergis/api 3.0.91 → 3.0.92

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
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from '@evergis/event-emitter';
2
- import { HubConnectionBuilder, HubConnectionState } from '@microsoft/signalr';
2
+ import { HubConnectionBuilder, HttpTransportType, HubConnectionState } from '@microsoft/signalr';
3
3
  import ky, { HTTPError } from 'ky';
4
4
  export { HTTPError, TimeoutError } from 'ky';
5
5
  import { stringify } from 'query-string';
@@ -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 () {
@@ -851,8 +859,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
851
859
  || event.code === 4002
852
860
  /* InvalidSession */
853
861
  ) {
854
- _this.connectStatus = ConnectionStatus.SessionClosed;
855
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
862
+ _this.connectStatus = ConnectionStatus.SessionClosed;
863
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
856
864
  _this.connectStatus = ConnectionStatus.Break;
857
865
  _this.reconnectTries++;
858
866
 
@@ -1358,7 +1366,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
1358
1366
  const taskProgress = await this.getTaskProgress(id);
1359
1367
  this.resolveTaskStatus(taskProgress, resolve, reject);
1360
1368
 
1361
- const taskResultCallback = async (_ref) => {
1369
+ const taskResultCallback = async _ref => {
1362
1370
  let {
1363
1371
  data
1364
1372
  } = _ref;
@@ -3438,12 +3446,12 @@ let Resources = /*#__PURE__*/function () {
3438
3446
  }, {
3439
3447
  key: "getDependentNames",
3440
3448
  value: function getDependentNames(deps, depType) {
3441
- return deps.filter((_ref) => {
3449
+ return deps.filter(_ref => {
3442
3450
  let {
3443
3451
  type
3444
3452
  } = _ref;
3445
3453
  return type === depType;
3446
- }).map((_ref2) => {
3454
+ }).map(_ref2 => {
3447
3455
  let {
3448
3456
  name
3449
3457
  } = _ref2;
@@ -5366,7 +5374,9 @@ let Names = /*#__PURE__*/function () {
5366
5374
  value: function extractResource(resourceName) {
5367
5375
  if (resourceName) {
5368
5376
  if (resourceName.includes(ResourceSeparator.Server)) {
5369
- const [workspace, name] = resourceName.split(ResourceSeparator.Server, 2);
5377
+ const matches = resourceName.split(ResourceSeparator.Server);
5378
+ const name = matches.pop();
5379
+ const workspace = matches.join(ResourceSeparator.Server);
5370
5380
  return {
5371
5381
  workspace,
5372
5382
  name
@@ -5870,7 +5880,9 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
5870
5880
  account: _this.account
5871
5881
  });
5872
5882
  _this.snappingHub = snappingHubUrl ? new HubConnectionBuilder().withUrl(snappingHubUrl, {
5873
- withCredentials: true
5883
+ withCredentials: true,
5884
+ skipNegotiation: true,
5885
+ transport: HttpTransportType.WebSockets
5874
5886
  }).withAutomaticReconnect().build() : null;
5875
5887
  return _this;
5876
5888
  }
@@ -6306,41 +6318,41 @@ function isFeatureLayer(layer) {
6306
6318
 
6307
6319
  /**
6308
6320
  *
6309
-
6321
+
6310
6322
  None
6311
-
6323
+
6312
6324
  Array
6313
-
6325
+
6314
6326
  Min
6315
-
6327
+
6316
6328
  Max
6317
-
6329
+
6318
6330
  Avg
6319
-
6331
+
6320
6332
  Sum
6321
-
6333
+
6322
6334
  Extent
6323
-
6335
+
6324
6336
  Count
6325
-
6337
+
6326
6338
  First
6327
-
6339
+
6328
6340
  Last
6329
-
6341
+
6330
6342
  Median
6331
-
6343
+
6332
6344
  Mod
6333
-
6345
+
6334
6346
  StdDeviation
6335
-
6347
+
6336
6348
  SumOfProduct
6337
-
6349
+
6338
6350
  OnlyValue
6339
-
6351
+
6340
6352
  WeightedAvg
6341
-
6353
+
6342
6354
  DensityIndicators
6343
-
6355
+
6344
6356
  DividedSum
6345
6357
  */
6346
6358
  var AggregationFunction;
@@ -6367,27 +6379,27 @@ var AggregationFunction;
6367
6379
  })(AggregationFunction || (AggregationFunction = {}));
6368
6380
  /**
6369
6381
  * Types of the attributes that are supported by the system.
6370
-
6382
+
6371
6383
  Unknown
6372
-
6384
+
6373
6385
  String
6374
-
6386
+
6375
6387
  Int32
6376
-
6388
+
6377
6389
  Int64
6378
-
6390
+
6379
6391
  Double
6380
-
6392
+
6381
6393
  DateTime
6382
-
6394
+
6383
6395
  Boolean
6384
-
6396
+
6385
6397
  Point
6386
-
6398
+
6387
6399
  Polyline
6388
-
6400
+
6389
6401
  Polygon
6390
-
6402
+
6391
6403
  Multipoint
6392
6404
  */
6393
6405
 
@@ -6409,15 +6421,15 @@ var AttributeType;
6409
6421
  })(AttributeType || (AttributeType = {}));
6410
6422
  /**
6411
6423
  * Describes classification methods.
6412
-
6424
+
6413
6425
  none
6414
-
6426
+
6415
6427
  naturalBreaks
6416
-
6428
+
6417
6429
  equalInterval
6418
-
6430
+
6419
6431
  quantile
6420
-
6432
+
6421
6433
  unique
6422
6434
  */
6423
6435
 
@@ -6433,11 +6445,11 @@ var ClassificationType;
6433
6445
  })(ClassificationType || (ClassificationType = {}));
6434
6446
  /**
6435
6447
  * Type of attribute.
6436
-
6448
+
6437
6449
  decimal
6438
-
6450
+
6439
6451
  dateTime
6440
-
6452
+
6441
6453
  text
6442
6454
  */
6443
6455
 
@@ -6480,15 +6492,15 @@ var ConfigurationErrorEnum;
6480
6492
  })(ConfigurationErrorEnum || (ConfigurationErrorEnum = {}));
6481
6493
  /**
6482
6494
  * Type of the error.
6483
-
6495
+
6484
6496
  ResourceLimitExceeded
6485
-
6497
+
6486
6498
  ResourceNotFound
6487
-
6499
+
6488
6500
  InternalError
6489
-
6501
+
6490
6502
  BadRequest
6491
-
6503
+
6492
6504
  DuplicateContent
6493
6505
  */
6494
6506
 
@@ -6543,9 +6555,9 @@ var ErrorType;
6543
6555
  })(ErrorType || (ErrorType = {}));
6544
6556
  /**
6545
6557
  * Type of the feature.
6546
-
6558
+
6547
6559
  Unknown
6548
-
6560
+
6549
6561
  GeometricFeature
6550
6562
  */
6551
6563
 
@@ -6590,17 +6602,17 @@ var FontWeight;
6590
6602
  })(FontWeight || (FontWeight = {}));
6591
6603
  /**
6592
6604
  *
6593
-
6605
+
6594
6606
  unknown
6595
-
6607
+
6596
6608
  point
6597
-
6609
+
6598
6610
  polyline
6599
-
6611
+
6600
6612
  polygon
6601
-
6613
+
6602
6614
  envelope
6603
-
6615
+
6604
6616
  multipoint
6605
6617
  */
6606
6618
 
@@ -6617,13 +6629,13 @@ var GeometryType;
6617
6629
  })(GeometryType || (GeometryType = {}));
6618
6630
  /**
6619
6631
  * Resource group.
6620
-
6632
+
6621
6633
  my
6622
-
6634
+
6623
6635
  role
6624
-
6636
+
6625
6637
  public
6626
-
6638
+
6627
6639
  all
6628
6640
  */
6629
6641
 
@@ -6666,15 +6678,15 @@ var LineEndingType;
6666
6678
  })(LineEndingType || (LineEndingType = {}));
6667
6679
  /**
6668
6680
  *
6669
-
6681
+
6670
6682
  Unknown
6671
-
6683
+
6672
6684
  union
6673
-
6685
+
6674
6686
  intersection
6675
-
6687
+
6676
6688
  subtraction
6677
-
6689
+
6678
6690
  symDifference
6679
6691
  */
6680
6692
 
@@ -6690,19 +6702,19 @@ var Operation;
6690
6702
  })(Operation || (Operation = {}));
6691
6703
  /**
6692
6704
  * User permissions for server security objects (services, projects etc.)
6693
-
6705
+
6694
6706
  none
6695
-
6707
+
6696
6708
  configure
6697
-
6709
+
6698
6710
  write
6699
-
6711
+
6700
6712
  read
6701
-
6713
+
6702
6714
  read,configure
6703
-
6715
+
6704
6716
  read,write
6705
-
6717
+
6706
6718
  read,write,configure
6707
6719
  */
6708
6720
 
@@ -6720,17 +6732,17 @@ var Permissions;
6720
6732
  })(Permissions || (Permissions = {}));
6721
6733
  /**
6722
6734
  * Type of the authorization policy.
6723
-
6735
+
6724
6736
  Unknown
6725
-
6737
+
6726
6738
  CreateTable
6727
-
6739
+
6728
6740
  CreateLayer
6729
-
6741
+
6730
6742
  CreateProject
6731
-
6743
+
6732
6744
  MaxFeaturesInOneTable
6733
-
6745
+
6734
6746
  MaxObjectsToExport
6735
6747
  */
6736
6748
 
@@ -6747,17 +6759,17 @@ var PolicyType;
6747
6759
  })(PolicyType || (PolicyType = {}));
6748
6760
  /**
6749
6761
  * The `ResourceType` represents resource manager supports types.
6750
-
6762
+
6751
6763
  Unknown
6752
-
6764
+
6753
6765
  table
6754
-
6766
+
6755
6767
  layer
6756
-
6768
+
6757
6769
  project
6758
-
6770
+
6759
6771
  file
6760
-
6772
+
6761
6773
  feature
6762
6774
  */
6763
6775
 
@@ -6782,21 +6794,21 @@ var ResourceTypeLink;
6782
6794
  })(ResourceTypeLink || (ResourceTypeLink = {}));
6783
6795
  /**
6784
6796
  * Status of the server task.
6785
-
6797
+
6786
6798
  None
6787
-
6799
+
6788
6800
  Scheduled
6789
-
6801
+
6790
6802
  Planning
6791
-
6803
+
6792
6804
  Executing
6793
-
6805
+
6794
6806
  Completed
6795
-
6807
+
6796
6808
  Failed
6797
-
6809
+
6798
6810
  Canceled
6799
-
6811
+
6800
6812
  Timeout
6801
6813
  */
6802
6814
 
@@ -6815,11 +6827,11 @@ var ServerTaskStatus;
6815
6827
  })(ServerTaskStatus || (ServerTaskStatus = {}));
6816
6828
  /**
6817
6829
  * The `StringSubType` provides information about string attribute subtype.
6818
-
6830
+
6819
6831
  None
6820
-
6832
+
6821
6833
  Image
6822
-
6834
+
6823
6835
  PkkCode
6824
6836
  */
6825
6837