@evergis/api 3.0.91 → 3.0.93

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;
@@ -1535,6 +1543,24 @@ let LayersService = /*#__PURE__*/function (_Service) {
1535
1543
  type: 'ProxyService'
1536
1544
  }).json();
1537
1545
  }
1546
+ /**
1547
+ * No description
1548
+ *
1549
+ * @tags Layers
1550
+ * @name PublishRouteService
1551
+ * @operationId LayersController_PublishRouteService
1552
+ * @summary Creates new Route Service.
1553
+ * @request POST:/layers#type=RouteService
1554
+ * @response `200` Success
1555
+ */
1556
+
1557
+ }, {
1558
+ key: "publishRouteService",
1559
+ value: function publishRouteService(data) {
1560
+ return this.http.post("/layers", data, {
1561
+ type: 'RouteService'
1562
+ }).then(() => {});
1563
+ }
1538
1564
  /**
1539
1565
  * No description
1540
1566
  *
@@ -2237,6 +2263,22 @@ let LayersService = /*#__PURE__*/function (_Service) {
2237
2263
 
2238
2264
  return this.http.get("/layers/" + layerName + "/validateExpression", query).json();
2239
2265
  }
2266
+ /**
2267
+ * No description
2268
+ *
2269
+ * @tags Layers
2270
+ * @name CreateRoute
2271
+ * @operationId LayersController_CreateRoute
2272
+ * @summary Create new route (feature) from source features.
2273
+ * @request POST:/layers/{name}/createRoute
2274
+ * @response `200` Success
2275
+ */
2276
+
2277
+ }, {
2278
+ key: "createRoute",
2279
+ value: function createRoute(name, data) {
2280
+ return this.http.post("/layers/" + name + "/createRoute", data).json();
2281
+ }
2240
2282
  /**
2241
2283
  * No description
2242
2284
  *
@@ -3438,12 +3480,12 @@ let Resources = /*#__PURE__*/function () {
3438
3480
  }, {
3439
3481
  key: "getDependentNames",
3440
3482
  value: function getDependentNames(deps, depType) {
3441
- return deps.filter((_ref) => {
3483
+ return deps.filter(_ref => {
3442
3484
  let {
3443
3485
  type
3444
3486
  } = _ref;
3445
3487
  return type === depType;
3446
- }).map((_ref2) => {
3488
+ }).map(_ref2 => {
3447
3489
  let {
3448
3490
  name
3449
3491
  } = _ref2;
@@ -3854,8 +3896,24 @@ let GeneralService = /*#__PURE__*/function (_Service) {
3854
3896
 
3855
3897
  }, {
3856
3898
  key: "favicon",
3857
- value: function favicon() {
3858
- return this.http.createUrl("/favicon.ico");
3899
+ value: function favicon(query) {
3900
+ return this.http.createUrl("/favicon.ico", query);
3901
+ }
3902
+ /**
3903
+ * No description
3904
+ *
3905
+ * @tags General
3906
+ * @name Logo
3907
+ * @operationId GeneralController_Logo
3908
+ * @summary Returns logo.
3909
+ * @request GET:/logo.png
3910
+ * @response `200` Success
3911
+ */
3912
+
3913
+ }, {
3914
+ key: "logo",
3915
+ value: function logo(query) {
3916
+ return this.http.createUrl("/logo.png", query);
3859
3917
  }
3860
3918
  /**
3861
3919
  * No description
@@ -5366,7 +5424,9 @@ let Names = /*#__PURE__*/function () {
5366
5424
  value: function extractResource(resourceName) {
5367
5425
  if (resourceName) {
5368
5426
  if (resourceName.includes(ResourceSeparator.Server)) {
5369
- const [workspace, name] = resourceName.split(ResourceSeparator.Server, 2);
5427
+ const matches = resourceName.split(ResourceSeparator.Server);
5428
+ const name = matches.pop();
5429
+ const workspace = matches.join(ResourceSeparator.Server);
5370
5430
  return {
5371
5431
  workspace,
5372
5432
  name
@@ -5870,7 +5930,9 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
5870
5930
  account: _this.account
5871
5931
  });
5872
5932
  _this.snappingHub = snappingHubUrl ? new HubConnectionBuilder().withUrl(snappingHubUrl, {
5873
- withCredentials: true
5933
+ withCredentials: true,
5934
+ skipNegotiation: true,
5935
+ transport: HttpTransportType.WebSockets
5874
5936
  }).withAutomaticReconnect().build() : null;
5875
5937
  return _this;
5876
5938
  }
@@ -6306,41 +6368,43 @@ function isFeatureLayer(layer) {
6306
6368
 
6307
6369
  /**
6308
6370
  *
6309
-
6371
+
6310
6372
  None
6311
-
6373
+
6312
6374
  Array
6313
-
6375
+
6314
6376
  Min
6315
-
6377
+
6316
6378
  Max
6317
-
6379
+
6318
6380
  Avg
6319
-
6381
+
6320
6382
  Sum
6321
-
6383
+
6322
6384
  Extent
6323
-
6385
+
6324
6386
  Count
6325
-
6387
+
6388
+ DistinctCount
6389
+
6326
6390
  First
6327
-
6391
+
6328
6392
  Last
6329
-
6393
+
6330
6394
  Median
6331
-
6395
+
6332
6396
  Mod
6333
-
6397
+
6334
6398
  StdDeviation
6335
-
6399
+
6336
6400
  SumOfProduct
6337
-
6401
+
6338
6402
  OnlyValue
6339
-
6403
+
6340
6404
  WeightedAvg
6341
-
6405
+
6342
6406
  DensityIndicators
6343
-
6407
+
6344
6408
  DividedSum
6345
6409
  */
6346
6410
  var AggregationFunction;
@@ -6354,6 +6418,7 @@ var AggregationFunction;
6354
6418
  AggregationFunction["Sum"] = "Sum";
6355
6419
  AggregationFunction["Extent"] = "Extent";
6356
6420
  AggregationFunction["Count"] = "Count";
6421
+ AggregationFunction["DistinctCount"] = "DistinctCount";
6357
6422
  AggregationFunction["First"] = "First";
6358
6423
  AggregationFunction["Last"] = "Last";
6359
6424
  AggregationFunction["Median"] = "Median";
@@ -6367,27 +6432,27 @@ var AggregationFunction;
6367
6432
  })(AggregationFunction || (AggregationFunction = {}));
6368
6433
  /**
6369
6434
  * Types of the attributes that are supported by the system.
6370
-
6435
+
6371
6436
  Unknown
6372
-
6437
+
6373
6438
  String
6374
-
6439
+
6375
6440
  Int32
6376
-
6441
+
6377
6442
  Int64
6378
-
6443
+
6379
6444
  Double
6380
-
6445
+
6381
6446
  DateTime
6382
-
6447
+
6383
6448
  Boolean
6384
-
6449
+
6385
6450
  Point
6386
-
6451
+
6387
6452
  Polyline
6388
-
6453
+
6389
6454
  Polygon
6390
-
6455
+
6391
6456
  Multipoint
6392
6457
  */
6393
6458
 
@@ -6409,15 +6474,15 @@ var AttributeType;
6409
6474
  })(AttributeType || (AttributeType = {}));
6410
6475
  /**
6411
6476
  * Describes classification methods.
6412
-
6477
+
6413
6478
  none
6414
-
6479
+
6415
6480
  naturalBreaks
6416
-
6481
+
6417
6482
  equalInterval
6418
-
6483
+
6419
6484
  quantile
6420
-
6485
+
6421
6486
  unique
6422
6487
  */
6423
6488
 
@@ -6429,15 +6494,15 @@ var ClassificationType;
6429
6494
  ClassificationType["NaturalBreaks"] = "naturalBreaks";
6430
6495
  ClassificationType["EqualInterval"] = "equalInterval";
6431
6496
  ClassificationType["Quantile"] = "quantile";
6432
- ClassificationType["Distinct"] = "unique";
6497
+ ClassificationType["Unique"] = "unique";
6433
6498
  })(ClassificationType || (ClassificationType = {}));
6434
6499
  /**
6435
6500
  * Type of attribute.
6436
-
6501
+
6437
6502
  decimal
6438
-
6503
+
6439
6504
  dateTime
6440
-
6505
+
6441
6506
  text
6442
6507
  */
6443
6508
 
@@ -6450,8 +6515,50 @@ var ClassifyAttributeType;
6450
6515
  ClassifyAttributeType["Text"] = "text";
6451
6516
  })(ClassifyAttributeType || (ClassifyAttributeType = {}));
6452
6517
  /**
6453
- * Types of errors that can occur during layer initialize.
6454
- */
6518
+ * Types of errors that can occur during layer initialize.
6519
+
6520
+ Unknown
6521
+
6522
+ SerializeError
6523
+
6524
+ InvalidDataService
6525
+
6526
+ InvalidConfiguration
6527
+
6528
+ InvalidDataServiceName
6529
+
6530
+ InvalidTableName
6531
+
6532
+ ResourceNotFound
6533
+
6534
+ InvalidCondition
6535
+
6536
+ InvalidAttributes
6537
+
6538
+ InvalidIdAttribute
6539
+
6540
+ InvalidGeometryAttribute
6541
+
6542
+ InvalidGeometryAttributeType
6543
+
6544
+ InvalidColumnName
6545
+
6546
+ InvalidIdColumnSettings
6547
+
6548
+ ColumnNotExistsInTable
6549
+
6550
+ InvalidStyle
6551
+
6552
+ InvalidLayerType
6553
+
6554
+ ColumnLoadingError
6555
+
6556
+ InvalidAttributeFormat
6557
+
6558
+ DataSourceNotFound
6559
+
6560
+ DuplicateColumns
6561
+ */
6455
6562
 
6456
6563
 
6457
6564
  var ConfigurationErrorEnum;
@@ -6477,18 +6584,19 @@ var ConfigurationErrorEnum;
6477
6584
  ConfigurationErrorEnum["ColumnLoadingError"] = "ColumnLoadingError";
6478
6585
  ConfigurationErrorEnum["InvalidAttributeFormat"] = "InvalidAttributeFormat";
6479
6586
  ConfigurationErrorEnum["DataSourceNotFound"] = "DataSourceNotFound";
6587
+ ConfigurationErrorEnum["DuplicateColumns"] = "DuplicateColumns";
6480
6588
  })(ConfigurationErrorEnum || (ConfigurationErrorEnum = {}));
6481
6589
  /**
6482
6590
  * Type of the error.
6483
-
6591
+
6484
6592
  ResourceLimitExceeded
6485
-
6593
+
6486
6594
  ResourceNotFound
6487
-
6595
+
6488
6596
  InternalError
6489
-
6597
+
6490
6598
  BadRequest
6491
-
6599
+
6492
6600
  DuplicateContent
6493
6601
  */
6494
6602
 
@@ -6543,9 +6651,9 @@ var ErrorType;
6543
6651
  })(ErrorType || (ErrorType = {}));
6544
6652
  /**
6545
6653
  * Type of the feature.
6546
-
6654
+
6547
6655
  Unknown
6548
-
6656
+
6549
6657
  GeometricFeature
6550
6658
  */
6551
6659
 
@@ -6557,8 +6665,14 @@ var FeatureType;
6557
6665
  FeatureType["GeometricFeature"] = "GeometricFeature";
6558
6666
  })(FeatureType || (FeatureType = {}));
6559
6667
  /**
6560
- * Sets whether font should be styled.
6561
- */
6668
+ * Sets whether font should be styled.
6669
+
6670
+ normal
6671
+
6672
+ oblique
6673
+
6674
+ italic
6675
+ */
6562
6676
 
6563
6677
 
6564
6678
  var FontStyle;
@@ -6569,8 +6683,30 @@ var FontStyle;
6569
6683
  FontStyle["Italic"] = "italic";
6570
6684
  })(FontStyle || (FontStyle = {}));
6571
6685
  /**
6572
- * Specifies the weight (or boldness) of the font.
6573
- */
6686
+ * Specifies the weight (or boldness) of the font.
6687
+
6688
+ Thin
6689
+
6690
+ ExtraLight
6691
+
6692
+ Light
6693
+
6694
+ SemiLight
6695
+
6696
+ Normal
6697
+
6698
+ Medium
6699
+
6700
+ DemiBold
6701
+
6702
+ Bold
6703
+
6704
+ ExtraBold
6705
+
6706
+ Black
6707
+
6708
+ ExtraBlack
6709
+ */
6574
6710
 
6575
6711
 
6576
6712
  var FontWeight;
@@ -6590,17 +6726,17 @@ var FontWeight;
6590
6726
  })(FontWeight || (FontWeight = {}));
6591
6727
  /**
6592
6728
  *
6593
-
6729
+
6594
6730
  unknown
6595
-
6731
+
6596
6732
  point
6597
-
6733
+
6598
6734
  polyline
6599
-
6735
+
6600
6736
  polygon
6601
-
6737
+
6602
6738
  envelope
6603
-
6739
+
6604
6740
  multipoint
6605
6741
  */
6606
6742
 
@@ -6617,13 +6753,13 @@ var GeometryType;
6617
6753
  })(GeometryType || (GeometryType = {}));
6618
6754
  /**
6619
6755
  * Resource group.
6620
-
6756
+
6621
6757
  my
6622
-
6758
+
6623
6759
  role
6624
-
6760
+
6625
6761
  public
6626
-
6762
+
6627
6763
  all
6628
6764
  */
6629
6765
 
@@ -6639,6 +6775,10 @@ var Group;
6639
6775
  /**
6640
6776
  * The size of the line ending in a SPCore.Kernel.Rendering.Symbols.SimplePolylineSymbol. The values sent here can be one
6641
6777
  of the preset values, or a number representing the size of the ending in pixels for 1px wide lines.
6778
+
6779
+ small
6780
+
6781
+ large
6642
6782
  */
6643
6783
 
6644
6784
 
@@ -6649,8 +6789,22 @@ var LineEndingSize;
6649
6789
  LineEndingSize["Large"] = "large";
6650
6790
  })(LineEndingSize || (LineEndingSize = {}));
6651
6791
  /**
6652
- * Type of the line ending.
6653
- */
6792
+ * Type of the line ending.
6793
+
6794
+ none
6795
+
6796
+ arrow
6797
+
6798
+ filledArrow
6799
+
6800
+ square
6801
+
6802
+ filledSquare
6803
+
6804
+ circle
6805
+
6806
+ filledCircle
6807
+ */
6654
6808
 
6655
6809
 
6656
6810
  var LineEndingType;
@@ -6666,15 +6820,15 @@ var LineEndingType;
6666
6820
  })(LineEndingType || (LineEndingType = {}));
6667
6821
  /**
6668
6822
  *
6669
-
6823
+
6670
6824
  Unknown
6671
-
6825
+
6672
6826
  union
6673
-
6827
+
6674
6828
  intersection
6675
-
6829
+
6676
6830
  subtraction
6677
-
6831
+
6678
6832
  symDifference
6679
6833
  */
6680
6834
 
@@ -6690,19 +6844,19 @@ var Operation;
6690
6844
  })(Operation || (Operation = {}));
6691
6845
  /**
6692
6846
  * User permissions for server security objects (services, projects etc.)
6693
-
6847
+
6694
6848
  none
6695
-
6849
+
6696
6850
  configure
6697
-
6851
+
6698
6852
  write
6699
-
6853
+
6700
6854
  read
6701
-
6855
+
6702
6856
  read,configure
6703
-
6857
+
6704
6858
  read,write
6705
-
6859
+
6706
6860
  read,write,configure
6707
6861
  */
6708
6862
 
@@ -6720,17 +6874,17 @@ var Permissions;
6720
6874
  })(Permissions || (Permissions = {}));
6721
6875
  /**
6722
6876
  * Type of the authorization policy.
6723
-
6877
+
6724
6878
  Unknown
6725
-
6879
+
6726
6880
  CreateTable
6727
-
6881
+
6728
6882
  CreateLayer
6729
-
6883
+
6730
6884
  CreateProject
6731
-
6885
+
6732
6886
  MaxFeaturesInOneTable
6733
-
6887
+
6734
6888
  MaxObjectsToExport
6735
6889
  */
6736
6890
 
@@ -6747,18 +6901,20 @@ var PolicyType;
6747
6901
  })(PolicyType || (PolicyType = {}));
6748
6902
  /**
6749
6903
  * The `ResourceType` represents resource manager supports types.
6750
-
6904
+
6751
6905
  Unknown
6752
-
6906
+
6753
6907
  table
6754
-
6908
+
6755
6909
  layer
6756
-
6910
+
6757
6911
  project
6758
-
6912
+
6759
6913
  file
6760
-
6914
+
6761
6915
  feature
6916
+
6917
+ tag
6762
6918
  */
6763
6919
 
6764
6920
 
@@ -6771,6 +6927,7 @@ var ResourceType;
6771
6927
  ResourceType["Project"] = "project";
6772
6928
  ResourceType["File"] = "file";
6773
6929
  ResourceType["Feature"] = "feature";
6930
+ ResourceType["Tag"] = "tag";
6774
6931
  })(ResourceType || (ResourceType = {}));
6775
6932
 
6776
6933
  var ResourceTypeLink;
@@ -6782,21 +6939,21 @@ var ResourceTypeLink;
6782
6939
  })(ResourceTypeLink || (ResourceTypeLink = {}));
6783
6940
  /**
6784
6941
  * Status of the server task.
6785
-
6942
+
6786
6943
  None
6787
-
6944
+
6788
6945
  Scheduled
6789
-
6946
+
6790
6947
  Planning
6791
-
6948
+
6792
6949
  Executing
6793
-
6950
+
6794
6951
  Completed
6795
-
6952
+
6796
6953
  Failed
6797
-
6954
+
6798
6955
  Canceled
6799
-
6956
+
6800
6957
  Timeout
6801
6958
  */
6802
6959
 
@@ -6815,11 +6972,11 @@ var ServerTaskStatus;
6815
6972
  })(ServerTaskStatus || (ServerTaskStatus = {}));
6816
6973
  /**
6817
6974
  * The `StringSubType` provides information about string attribute subtype.
6818
-
6975
+
6819
6976
  None
6820
-
6977
+
6821
6978
  Image
6822
-
6979
+
6823
6980
  PkkCode
6824
6981
  */
6825
6982
 
@@ -6832,8 +6989,16 @@ var StringSubType;
6832
6989
  StringSubType["PkkCode"] = "PkkCode";
6833
6990
  })(StringSubType || (StringSubType = {}));
6834
6991
  /**
6835
- * Sets the horizontal alignment of text.
6836
- */
6992
+ * Sets the horizontal alignment of text.
6993
+
6994
+ right
6995
+
6996
+ left
6997
+
6998
+ center
6999
+
7000
+ justified
7001
+ */
6837
7002
 
6838
7003
 
6839
7004
  var TextAlignment;
@@ -6845,8 +7010,14 @@ var TextAlignment;
6845
7010
  TextAlignment["Justified"] = "justified";
6846
7011
  })(TextAlignment || (TextAlignment = {}));
6847
7012
  /**
6848
- * Sets the vertical alignment of text.
6849
- */
7013
+ * Sets the vertical alignment of text.
7014
+
7015
+ top
7016
+
7017
+ bottom
7018
+
7019
+ middle
7020
+ */
6850
7021
 
6851
7022
 
6852
7023
  var TextVerticalAlignment;