@evergis/api 3.0.92 → 3.0.94

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,9 +29,6 @@ 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
- });
35
32
  return Constructor;
36
33
  }
37
34
 
@@ -65,9 +62,6 @@ function _inherits(subClass, superClass) {
65
62
  configurable: true
66
63
  }
67
64
  });
68
- Object.defineProperty(subClass, "prototype", {
69
- writable: false
70
- });
71
65
  if (superClass) _setPrototypeOf(subClass, superClass);
72
66
  }
73
67
 
@@ -126,8 +120,6 @@ function _assertThisInitialized(self) {
126
120
  function _possibleConstructorReturn(self, call) {
127
121
  if (call && (typeof call === "object" || typeof call === "function")) {
128
122
  return call;
129
- } else if (call !== void 0) {
130
- throw new TypeError("Derived constructors may only return object or undefined");
131
123
  }
132
124
 
133
125
  return _assertThisInitialized(self);
@@ -161,7 +153,7 @@ function _superPropBase(object, property) {
161
153
  return object;
162
154
  }
163
155
 
164
- function _get() {
156
+ function _get(target, property, receiver) {
165
157
  if (typeof Reflect !== "undefined" && Reflect.get) {
166
158
  _get = Reflect.get;
167
159
  } else {
@@ -172,14 +164,14 @@ function _get() {
172
164
  var desc = Object.getOwnPropertyDescriptor(base, property);
173
165
 
174
166
  if (desc.get) {
175
- return desc.get.call(arguments.length < 3 ? target : receiver);
167
+ return desc.get.call(receiver);
176
168
  }
177
169
 
178
170
  return desc.value;
179
171
  };
180
172
  }
181
173
 
182
- return _get.apply(this, arguments);
174
+ return _get(target, property, receiver || target);
183
175
  }
184
176
 
185
177
  let HttpClient = /*#__PURE__*/function () {
@@ -859,8 +851,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
859
851
  || event.code === 4002
860
852
  /* InvalidSession */
861
853
  ) {
862
- _this.connectStatus = ConnectionStatus.SessionClosed;
863
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
854
+ _this.connectStatus = ConnectionStatus.SessionClosed;
855
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
864
856
  _this.connectStatus = ConnectionStatus.Break;
865
857
  _this.reconnectTries++;
866
858
 
@@ -1366,7 +1358,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
1366
1358
  const taskProgress = await this.getTaskProgress(id);
1367
1359
  this.resolveTaskStatus(taskProgress, resolve, reject);
1368
1360
 
1369
- const taskResultCallback = async _ref => {
1361
+ const taskResultCallback = async (_ref) => {
1370
1362
  let {
1371
1363
  data
1372
1364
  } = _ref;
@@ -1543,6 +1535,42 @@ let LayersService = /*#__PURE__*/function (_Service) {
1543
1535
  type: 'ProxyService'
1544
1536
  }).json();
1545
1537
  }
1538
+ /**
1539
+ * No description
1540
+ *
1541
+ * @tags Layers
1542
+ * @name PublishRouteService
1543
+ * @operationId LayersController_PublishRouteService
1544
+ * @summary Creates new Route Service.
1545
+ * @request POST:/layers#type=RouteService
1546
+ * @response `200` Success
1547
+ */
1548
+
1549
+ }, {
1550
+ key: "publishRouteService",
1551
+ value: function publishRouteService(data) {
1552
+ return this.http.post("/layers", data, {
1553
+ type: 'RouteService'
1554
+ }).then(() => {});
1555
+ }
1556
+ /**
1557
+ * No description
1558
+ *
1559
+ * @tags Layers
1560
+ * @name PublishLinearService
1561
+ * @operationId LayersController_PublishLinearService
1562
+ * @summary Creates new Linear Service.
1563
+ * @request POST:/layers#type=LinearService
1564
+ * @response `200` Success
1565
+ */
1566
+
1567
+ }, {
1568
+ key: "publishLinearService",
1569
+ value: function publishLinearService(data) {
1570
+ return this.http.post("/layers", data, {
1571
+ type: 'LinearService'
1572
+ }).then(() => {});
1573
+ }
1546
1574
  /**
1547
1575
  * No description
1548
1576
  *
@@ -2245,6 +2273,22 @@ let LayersService = /*#__PURE__*/function (_Service) {
2245
2273
 
2246
2274
  return this.http.get("/layers/" + layerName + "/validateExpression", query).json();
2247
2275
  }
2276
+ /**
2277
+ * No description
2278
+ *
2279
+ * @tags Layers
2280
+ * @name CreateRoute
2281
+ * @operationId LayersController_CreateRoute
2282
+ * @summary Create new route (feature) from source features.
2283
+ * @request POST:/layers/{name}/createRoute
2284
+ * @response `200` Success
2285
+ */
2286
+
2287
+ }, {
2288
+ key: "createRoute",
2289
+ value: function createRoute(name, data) {
2290
+ return this.http.post("/layers/" + name + "/createRoute", data).json();
2291
+ }
2248
2292
  /**
2249
2293
  * No description
2250
2294
  *
@@ -3446,12 +3490,12 @@ let Resources = /*#__PURE__*/function () {
3446
3490
  }, {
3447
3491
  key: "getDependentNames",
3448
3492
  value: function getDependentNames(deps, depType) {
3449
- return deps.filter(_ref => {
3493
+ return deps.filter((_ref) => {
3450
3494
  let {
3451
3495
  type
3452
3496
  } = _ref;
3453
3497
  return type === depType;
3454
- }).map(_ref2 => {
3498
+ }).map((_ref2) => {
3455
3499
  let {
3456
3500
  name
3457
3501
  } = _ref2;
@@ -3862,8 +3906,24 @@ let GeneralService = /*#__PURE__*/function (_Service) {
3862
3906
 
3863
3907
  }, {
3864
3908
  key: "favicon",
3865
- value: function favicon() {
3866
- return this.http.createUrl("/favicon.ico");
3909
+ value: function favicon(query) {
3910
+ return this.http.createUrl("/favicon.ico", query);
3911
+ }
3912
+ /**
3913
+ * No description
3914
+ *
3915
+ * @tags General
3916
+ * @name Logo
3917
+ * @operationId GeneralController_Logo
3918
+ * @summary Returns logo.
3919
+ * @request GET:/logo.png
3920
+ * @response `200` Success
3921
+ */
3922
+
3923
+ }, {
3924
+ key: "logo",
3925
+ value: function logo(query) {
3926
+ return this.http.createUrl("/logo.png", query);
3867
3927
  }
3868
3928
  /**
3869
3929
  * No description
@@ -6318,41 +6378,45 @@ function isFeatureLayer(layer) {
6318
6378
 
6319
6379
  /**
6320
6380
  *
6321
-
6381
+
6322
6382
  None
6323
-
6383
+
6324
6384
  Array
6325
-
6385
+
6326
6386
  Min
6327
-
6387
+
6328
6388
  Max
6329
-
6389
+
6330
6390
  Avg
6331
-
6391
+
6332
6392
  Sum
6333
-
6393
+
6334
6394
  Extent
6335
-
6395
+
6336
6396
  Count
6337
-
6397
+
6398
+ TotalCount
6399
+
6400
+ DistinctCount
6401
+
6338
6402
  First
6339
-
6403
+
6340
6404
  Last
6341
-
6405
+
6342
6406
  Median
6343
-
6407
+
6344
6408
  Mod
6345
-
6409
+
6346
6410
  StdDeviation
6347
-
6411
+
6348
6412
  SumOfProduct
6349
-
6413
+
6350
6414
  OnlyValue
6351
-
6415
+
6352
6416
  WeightedAvg
6353
-
6417
+
6354
6418
  DensityIndicators
6355
-
6419
+
6356
6420
  DividedSum
6357
6421
  */
6358
6422
  var AggregationFunction;
@@ -6366,6 +6430,8 @@ var AggregationFunction;
6366
6430
  AggregationFunction["Sum"] = "Sum";
6367
6431
  AggregationFunction["Extent"] = "Extent";
6368
6432
  AggregationFunction["Count"] = "Count";
6433
+ AggregationFunction["TotalCount"] = "TotalCount";
6434
+ AggregationFunction["DistinctCount"] = "DistinctCount";
6369
6435
  AggregationFunction["First"] = "First";
6370
6436
  AggregationFunction["Last"] = "Last";
6371
6437
  AggregationFunction["Median"] = "Median";
@@ -6379,27 +6445,27 @@ var AggregationFunction;
6379
6445
  })(AggregationFunction || (AggregationFunction = {}));
6380
6446
  /**
6381
6447
  * Types of the attributes that are supported by the system.
6382
-
6448
+
6383
6449
  Unknown
6384
-
6450
+
6385
6451
  String
6386
-
6452
+
6387
6453
  Int32
6388
-
6454
+
6389
6455
  Int64
6390
-
6456
+
6391
6457
  Double
6392
-
6458
+
6393
6459
  DateTime
6394
-
6460
+
6395
6461
  Boolean
6396
-
6462
+
6397
6463
  Point
6398
-
6464
+
6399
6465
  Polyline
6400
-
6466
+
6401
6467
  Polygon
6402
-
6468
+
6403
6469
  Multipoint
6404
6470
  */
6405
6471
 
@@ -6421,15 +6487,15 @@ var AttributeType;
6421
6487
  })(AttributeType || (AttributeType = {}));
6422
6488
  /**
6423
6489
  * Describes classification methods.
6424
-
6490
+
6425
6491
  none
6426
-
6492
+
6427
6493
  naturalBreaks
6428
-
6494
+
6429
6495
  equalInterval
6430
-
6496
+
6431
6497
  quantile
6432
-
6498
+
6433
6499
  unique
6434
6500
  */
6435
6501
 
@@ -6441,15 +6507,15 @@ var ClassificationType;
6441
6507
  ClassificationType["NaturalBreaks"] = "naturalBreaks";
6442
6508
  ClassificationType["EqualInterval"] = "equalInterval";
6443
6509
  ClassificationType["Quantile"] = "quantile";
6444
- ClassificationType["Distinct"] = "unique";
6510
+ ClassificationType["Unique"] = "unique";
6445
6511
  })(ClassificationType || (ClassificationType = {}));
6446
6512
  /**
6447
6513
  * Type of attribute.
6448
-
6514
+
6449
6515
  decimal
6450
-
6516
+
6451
6517
  dateTime
6452
-
6518
+
6453
6519
  text
6454
6520
  */
6455
6521
 
@@ -6462,8 +6528,50 @@ var ClassifyAttributeType;
6462
6528
  ClassifyAttributeType["Text"] = "text";
6463
6529
  })(ClassifyAttributeType || (ClassifyAttributeType = {}));
6464
6530
  /**
6465
- * Types of errors that can occur during layer initialize.
6466
- */
6531
+ * Types of errors that can occur during layer initialize.
6532
+
6533
+ Unknown
6534
+
6535
+ SerializeError
6536
+
6537
+ InvalidDataService
6538
+
6539
+ InvalidConfiguration
6540
+
6541
+ InvalidDataServiceName
6542
+
6543
+ InvalidTableName
6544
+
6545
+ ResourceNotFound
6546
+
6547
+ InvalidCondition
6548
+
6549
+ InvalidAttributes
6550
+
6551
+ InvalidIdAttribute
6552
+
6553
+ InvalidGeometryAttribute
6554
+
6555
+ InvalidGeometryAttributeType
6556
+
6557
+ InvalidColumnName
6558
+
6559
+ InvalidIdColumnSettings
6560
+
6561
+ ColumnNotExistsInTable
6562
+
6563
+ InvalidStyle
6564
+
6565
+ InvalidLayerType
6566
+
6567
+ ColumnLoadingError
6568
+
6569
+ InvalidAttributeFormat
6570
+
6571
+ DataSourceNotFound
6572
+
6573
+ DuplicateColumns
6574
+ */
6467
6575
 
6468
6576
 
6469
6577
  var ConfigurationErrorEnum;
@@ -6489,18 +6597,19 @@ var ConfigurationErrorEnum;
6489
6597
  ConfigurationErrorEnum["ColumnLoadingError"] = "ColumnLoadingError";
6490
6598
  ConfigurationErrorEnum["InvalidAttributeFormat"] = "InvalidAttributeFormat";
6491
6599
  ConfigurationErrorEnum["DataSourceNotFound"] = "DataSourceNotFound";
6600
+ ConfigurationErrorEnum["DuplicateColumns"] = "DuplicateColumns";
6492
6601
  })(ConfigurationErrorEnum || (ConfigurationErrorEnum = {}));
6493
6602
  /**
6494
6603
  * Type of the error.
6495
-
6604
+
6496
6605
  ResourceLimitExceeded
6497
-
6606
+
6498
6607
  ResourceNotFound
6499
-
6608
+
6500
6609
  InternalError
6501
-
6610
+
6502
6611
  BadRequest
6503
-
6612
+
6504
6613
  DuplicateContent
6505
6614
  */
6506
6615
 
@@ -6555,9 +6664,9 @@ var ErrorType;
6555
6664
  })(ErrorType || (ErrorType = {}));
6556
6665
  /**
6557
6666
  * Type of the feature.
6558
-
6667
+
6559
6668
  Unknown
6560
-
6669
+
6561
6670
  GeometricFeature
6562
6671
  */
6563
6672
 
@@ -6569,8 +6678,14 @@ var FeatureType;
6569
6678
  FeatureType["GeometricFeature"] = "GeometricFeature";
6570
6679
  })(FeatureType || (FeatureType = {}));
6571
6680
  /**
6572
- * Sets whether font should be styled.
6573
- */
6681
+ * Sets whether font should be styled.
6682
+
6683
+ normal
6684
+
6685
+ oblique
6686
+
6687
+ italic
6688
+ */
6574
6689
 
6575
6690
 
6576
6691
  var FontStyle;
@@ -6581,8 +6696,30 @@ var FontStyle;
6581
6696
  FontStyle["Italic"] = "italic";
6582
6697
  })(FontStyle || (FontStyle = {}));
6583
6698
  /**
6584
- * Specifies the weight (or boldness) of the font.
6585
- */
6699
+ * Specifies the weight (or boldness) of the font.
6700
+
6701
+ Thin
6702
+
6703
+ ExtraLight
6704
+
6705
+ Light
6706
+
6707
+ SemiLight
6708
+
6709
+ Normal
6710
+
6711
+ Medium
6712
+
6713
+ DemiBold
6714
+
6715
+ Bold
6716
+
6717
+ ExtraBold
6718
+
6719
+ Black
6720
+
6721
+ ExtraBlack
6722
+ */
6586
6723
 
6587
6724
 
6588
6725
  var FontWeight;
@@ -6602,17 +6739,17 @@ var FontWeight;
6602
6739
  })(FontWeight || (FontWeight = {}));
6603
6740
  /**
6604
6741
  *
6605
-
6742
+
6606
6743
  unknown
6607
-
6744
+
6608
6745
  point
6609
-
6746
+
6610
6747
  polyline
6611
-
6748
+
6612
6749
  polygon
6613
-
6750
+
6614
6751
  envelope
6615
-
6752
+
6616
6753
  multipoint
6617
6754
  */
6618
6755
 
@@ -6629,13 +6766,13 @@ var GeometryType;
6629
6766
  })(GeometryType || (GeometryType = {}));
6630
6767
  /**
6631
6768
  * Resource group.
6632
-
6769
+
6633
6770
  my
6634
-
6771
+
6635
6772
  role
6636
-
6773
+
6637
6774
  public
6638
-
6775
+
6639
6776
  all
6640
6777
  */
6641
6778
 
@@ -6651,6 +6788,10 @@ var Group;
6651
6788
  /**
6652
6789
  * The size of the line ending in a SPCore.Kernel.Rendering.Symbols.SimplePolylineSymbol. The values sent here can be one
6653
6790
  of the preset values, or a number representing the size of the ending in pixels for 1px wide lines.
6791
+
6792
+ small
6793
+
6794
+ large
6654
6795
  */
6655
6796
 
6656
6797
 
@@ -6661,8 +6802,22 @@ var LineEndingSize;
6661
6802
  LineEndingSize["Large"] = "large";
6662
6803
  })(LineEndingSize || (LineEndingSize = {}));
6663
6804
  /**
6664
- * Type of the line ending.
6665
- */
6805
+ * Type of the line ending.
6806
+
6807
+ none
6808
+
6809
+ arrow
6810
+
6811
+ filledArrow
6812
+
6813
+ square
6814
+
6815
+ filledSquare
6816
+
6817
+ circle
6818
+
6819
+ filledCircle
6820
+ */
6666
6821
 
6667
6822
 
6668
6823
  var LineEndingType;
@@ -6678,15 +6833,15 @@ var LineEndingType;
6678
6833
  })(LineEndingType || (LineEndingType = {}));
6679
6834
  /**
6680
6835
  *
6681
-
6836
+
6682
6837
  Unknown
6683
-
6838
+
6684
6839
  union
6685
-
6840
+
6686
6841
  intersection
6687
-
6842
+
6688
6843
  subtraction
6689
-
6844
+
6690
6845
  symDifference
6691
6846
  */
6692
6847
 
@@ -6702,19 +6857,19 @@ var Operation;
6702
6857
  })(Operation || (Operation = {}));
6703
6858
  /**
6704
6859
  * User permissions for server security objects (services, projects etc.)
6705
-
6860
+
6706
6861
  none
6707
-
6862
+
6708
6863
  configure
6709
-
6864
+
6710
6865
  write
6711
-
6866
+
6712
6867
  read
6713
-
6868
+
6714
6869
  read,configure
6715
-
6870
+
6716
6871
  read,write
6717
-
6872
+
6718
6873
  read,write,configure
6719
6874
  */
6720
6875
 
@@ -6732,17 +6887,17 @@ var Permissions;
6732
6887
  })(Permissions || (Permissions = {}));
6733
6888
  /**
6734
6889
  * Type of the authorization policy.
6735
-
6890
+
6736
6891
  Unknown
6737
-
6892
+
6738
6893
  CreateTable
6739
-
6894
+
6740
6895
  CreateLayer
6741
-
6896
+
6742
6897
  CreateProject
6743
-
6898
+
6744
6899
  MaxFeaturesInOneTable
6745
-
6900
+
6746
6901
  MaxObjectsToExport
6747
6902
  */
6748
6903
 
@@ -6759,18 +6914,20 @@ var PolicyType;
6759
6914
  })(PolicyType || (PolicyType = {}));
6760
6915
  /**
6761
6916
  * The `ResourceType` represents resource manager supports types.
6762
-
6917
+
6763
6918
  Unknown
6764
-
6919
+
6765
6920
  table
6766
-
6921
+
6767
6922
  layer
6768
-
6923
+
6769
6924
  project
6770
-
6925
+
6771
6926
  file
6772
-
6927
+
6773
6928
  feature
6929
+
6930
+ tag
6774
6931
  */
6775
6932
 
6776
6933
 
@@ -6783,6 +6940,7 @@ var ResourceType;
6783
6940
  ResourceType["Project"] = "project";
6784
6941
  ResourceType["File"] = "file";
6785
6942
  ResourceType["Feature"] = "feature";
6943
+ ResourceType["Tag"] = "tag";
6786
6944
  })(ResourceType || (ResourceType = {}));
6787
6945
 
6788
6946
  var ResourceTypeLink;
@@ -6794,21 +6952,21 @@ var ResourceTypeLink;
6794
6952
  })(ResourceTypeLink || (ResourceTypeLink = {}));
6795
6953
  /**
6796
6954
  * Status of the server task.
6797
-
6955
+
6798
6956
  None
6799
-
6957
+
6800
6958
  Scheduled
6801
-
6959
+
6802
6960
  Planning
6803
-
6961
+
6804
6962
  Executing
6805
-
6963
+
6806
6964
  Completed
6807
-
6965
+
6808
6966
  Failed
6809
-
6967
+
6810
6968
  Canceled
6811
-
6969
+
6812
6970
  Timeout
6813
6971
  */
6814
6972
 
@@ -6827,11 +6985,11 @@ var ServerTaskStatus;
6827
6985
  })(ServerTaskStatus || (ServerTaskStatus = {}));
6828
6986
  /**
6829
6987
  * The `StringSubType` provides information about string attribute subtype.
6830
-
6988
+
6831
6989
  None
6832
-
6990
+
6833
6991
  Image
6834
-
6992
+
6835
6993
  PkkCode
6836
6994
  */
6837
6995
 
@@ -6844,8 +7002,16 @@ var StringSubType;
6844
7002
  StringSubType["PkkCode"] = "PkkCode";
6845
7003
  })(StringSubType || (StringSubType = {}));
6846
7004
  /**
6847
- * Sets the horizontal alignment of text.
6848
- */
7005
+ * Sets the horizontal alignment of text.
7006
+
7007
+ right
7008
+
7009
+ left
7010
+
7011
+ center
7012
+
7013
+ justified
7014
+ */
6849
7015
 
6850
7016
 
6851
7017
  var TextAlignment;
@@ -6857,8 +7023,14 @@ var TextAlignment;
6857
7023
  TextAlignment["Justified"] = "justified";
6858
7024
  })(TextAlignment || (TextAlignment = {}));
6859
7025
  /**
6860
- * Sets the vertical alignment of text.
6861
- */
7026
+ * Sets the vertical alignment of text.
7027
+
7028
+ top
7029
+
7030
+ bottom
7031
+
7032
+ middle
7033
+ */
6862
7034
 
6863
7035
 
6864
7036
  var TextVerticalAlignment;