@evergis/api 3.0.108 → 3.0.110

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.
Files changed (43) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +21 -21
  3. package/dist/Api.d.ts +2 -1
  4. package/dist/__generated__/AccountPreviewService.d.ts +1 -1
  5. package/dist/__generated__/AccountService.d.ts +1 -1
  6. package/dist/__generated__/BulkOperationsService.d.ts +1 -1
  7. package/dist/__generated__/ClientSettingsService.d.ts +1 -1
  8. package/dist/__generated__/ExternalProvidersService.d.ts +1 -1
  9. package/dist/__generated__/FeedbackService.d.ts +1 -1
  10. package/dist/__generated__/FiltersService.d.ts +1 -1
  11. package/dist/__generated__/GeneralService.d.ts +1 -1
  12. package/dist/__generated__/GeocodeService.d.ts +1 -1
  13. package/dist/__generated__/IceRouterService.d.ts +1 -1
  14. package/dist/__generated__/ImportService.d.ts +1 -1
  15. package/dist/__generated__/LayersService.d.ts +1 -1
  16. package/dist/__generated__/NamespaceService.d.ts +1 -1
  17. package/dist/__generated__/NotificationService.d.ts +1 -1
  18. package/dist/__generated__/PrintService.d.ts +1 -1
  19. package/dist/__generated__/ProjectsService.d.ts +3 -3
  20. package/dist/__generated__/ResourceCatalogService.d.ts +1 -1
  21. package/dist/__generated__/S3Service.d.ts +1 -1
  22. package/dist/__generated__/SchedulerService.d.ts +1 -1
  23. package/dist/__generated__/SecurityService.d.ts +1 -1
  24. package/dist/__generated__/StaticContentService.d.ts +1 -1
  25. package/dist/__generated__/StatisticService.d.ts +3 -3
  26. package/dist/__generated__/StyleService.d.ts +1 -1
  27. package/dist/__generated__/TablesService.d.ts +3 -3
  28. package/dist/__generated__/TagsService.d.ts +1 -1
  29. package/dist/__generated__/ToolsService.d.ts +1 -1
  30. package/dist/__generated__/WfsServerService.d.ts +1 -1
  31. package/dist/__generated__/WmsServerService.d.ts +3 -3
  32. package/dist/__generated__/WmtsService.d.ts +1 -1
  33. package/dist/__generated__/data-contracts.d.ts +242 -174
  34. package/dist/api.cjs.development.js +131 -40
  35. package/dist/api.cjs.development.js.map +1 -1
  36. package/dist/api.cjs.production.min.js +1 -1
  37. package/dist/api.cjs.production.min.js.map +1 -1
  38. package/dist/api.esm.js +301 -187
  39. package/dist/api.esm.js.map +1 -1
  40. package/dist/layers/EvergisTileLayer.d.ts +1 -0
  41. package/dist/services/Filters.d.ts +3 -0
  42. package/dist/services/index.d.ts +1 -0
  43. package/package.json +3 -3
@@ -35,9 +35,6 @@ function _defineProperties(target, props) {
35
35
  function _createClass(Constructor, protoProps, staticProps) {
36
36
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
37
37
  if (staticProps) _defineProperties(Constructor, staticProps);
38
- Object.defineProperty(Constructor, "prototype", {
39
- writable: false
40
- });
41
38
  return Constructor;
42
39
  }
43
40
 
@@ -71,9 +68,6 @@ function _inherits(subClass, superClass) {
71
68
  configurable: true
72
69
  }
73
70
  });
74
- Object.defineProperty(subClass, "prototype", {
75
- writable: false
76
- });
77
71
  if (superClass) _setPrototypeOf(subClass, superClass);
78
72
  }
79
73
 
@@ -132,8 +126,6 @@ function _assertThisInitialized(self) {
132
126
  function _possibleConstructorReturn(self, call) {
133
127
  if (call && (typeof call === "object" || typeof call === "function")) {
134
128
  return call;
135
- } else if (call !== void 0) {
136
- throw new TypeError("Derived constructors may only return object or undefined");
137
129
  }
138
130
 
139
131
  return _assertThisInitialized(self);
@@ -167,7 +159,7 @@ function _superPropBase(object, property) {
167
159
  return object;
168
160
  }
169
161
 
170
- function _get() {
162
+ function _get(target, property, receiver) {
171
163
  if (typeof Reflect !== "undefined" && Reflect.get) {
172
164
  _get = Reflect.get;
173
165
  } else {
@@ -178,14 +170,14 @@ function _get() {
178
170
  var desc = Object.getOwnPropertyDescriptor(base, property);
179
171
 
180
172
  if (desc.get) {
181
- return desc.get.call(arguments.length < 3 ? target : receiver);
173
+ return desc.get.call(receiver);
182
174
  }
183
175
 
184
176
  return desc.value;
185
177
  };
186
178
  }
187
179
 
188
- return _get.apply(this, arguments);
180
+ return _get(target, property, receiver || target);
189
181
  }
190
182
 
191
183
  let HttpClient = /*#__PURE__*/function () {
@@ -326,7 +318,7 @@ let Service = /*#__PURE__*/_createClass(function Service(http) {
326
318
 
327
319
  /**
328
320
  * @title Spatial Processing Core API
329
- * @version v1.0.0
321
+ * @version 1.0.0
330
322
  * @baseUrl /sp
331
323
  */
332
324
 
@@ -378,7 +370,7 @@ let BulkOperations = /*#__PURE__*/function (_BulkOperationsServic) {
378
370
 
379
371
  /**
380
372
  * @title Spatial Processing Core API
381
- * @version v1.0.0
373
+ * @version 1.0.0
382
374
  * @baseUrl /sp
383
375
  */
384
376
 
@@ -530,7 +522,7 @@ let Security = /*#__PURE__*/function (_SecurityService) {
530
522
 
531
523
  /**
532
524
  * @title Spatial Processing Core API
533
- * @version v1.0.0
525
+ * @version 1.0.0
534
526
  * @baseUrl /sp
535
527
  */
536
528
 
@@ -640,7 +632,91 @@ let FileUpload = /*#__PURE__*/function (_StaticContentService) {
640
632
 
641
633
  /**
642
634
  * @title Spatial Processing Core API
643
- * @version v1.0.0
635
+ * @version 1.0.0
636
+ * @baseUrl /sp
637
+ */
638
+
639
+ let FiltersService = /*#__PURE__*/function (_Service) {
640
+ _inherits(FiltersService, _Service);
641
+
642
+ var _super = /*#__PURE__*/_createSuper(FiltersService);
643
+
644
+ function FiltersService() {
645
+ _classCallCheck(this, FiltersService);
646
+
647
+ return _super.apply(this, arguments);
648
+ }
649
+
650
+ _createClass(FiltersService, [{
651
+ key: "get",
652
+ value:
653
+ /**
654
+ * No description
655
+ *
656
+ * @tags FiltersService
657
+ * @name Get
658
+ * @operationId FiltersServiceController_Get
659
+ * @summary Returns the filter by its id.
660
+ * @request GET:/filters/{id}
661
+ * @response `200` Success
662
+ */
663
+ function get(id) {
664
+ return this.http.get("/filters/" + id).text();
665
+ }
666
+ /**
667
+ * No description
668
+ *
669
+ * @tags FiltersService
670
+ * @name Update
671
+ * @operationId FiltersServiceController_Update
672
+ * @summary Replaces a filter and gives it a new id.
673
+ * @request POST:/filters/{id}
674
+ * @response `200` Success
675
+ */
676
+
677
+ }, {
678
+ key: "update",
679
+ value: function update(id, data) {
680
+ return this.http.post("/filters/" + id, data).json();
681
+ }
682
+ /**
683
+ * No description
684
+ *
685
+ * @tags FiltersService
686
+ * @name Create
687
+ * @operationId FiltersServiceController_Create
688
+ * @summary Creates a new filter.
689
+ * @request POST:/filters
690
+ * @response `200` Success
691
+ */
692
+
693
+ }, {
694
+ key: "create",
695
+ value: function create(data) {
696
+ return this.http.post("/filters", data).json();
697
+ }
698
+ }]);
699
+
700
+ return FiltersService;
701
+ }(Service);
702
+
703
+ let Filters = /*#__PURE__*/function (_FiltersService) {
704
+ _inherits(Filters, _FiltersService);
705
+
706
+ var _super = /*#__PURE__*/_createSuper(Filters);
707
+
708
+ function Filters() {
709
+ _classCallCheck(this, Filters);
710
+
711
+ return _super.apply(this, arguments);
712
+ }
713
+
714
+ return _createClass(Filters);
715
+ }(FiltersService);
716
+
717
+ /**
718
+ * @title Spatial Processing Core API
719
+ * @version 1.0.0
644
720
  * @baseUrl /sp
645
721
  */
646
722
 
@@ -756,7 +832,7 @@ let Import = /*#__PURE__*/function (_ImportService) {
756
832
 
757
833
  /**
758
834
  * @title Spatial Processing Core API
759
- * @version v1.0.0
835
+ * @version 1.0.0
760
836
  * @baseUrl /sp
761
837
  */
762
838
 
@@ -893,8 +969,8 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
893
969
  || event.code === 4002
894
970
  /* InvalidSession */
895
971
  ) {
896
- _this.connectStatus = exports.ConnectionStatus.SessionClosed;
897
- } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
972
+ _this.connectStatus = exports.ConnectionStatus.SessionClosed;
973
+ } else if (_this.reconnectTries < _this.MAX_WS_RECONNECT_TRIES) {
898
974
  _this.connectStatus = exports.ConnectionStatus.Break;
899
975
  _this.reconnectTries++;
900
976
 
@@ -1012,7 +1088,7 @@ let NotificationEvent = /*#__PURE__*/_createClass(function NotificationEvent(dat
1012
1088
 
1013
1089
  /**
1014
1090
  * @title Spatial Processing Core API
1015
- * @version v1.0.0
1091
+ * @version 1.0.0
1016
1092
  * @baseUrl /sp
1017
1093
  */
1018
1094
 
@@ -1400,7 +1476,7 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
1400
1476
  const taskProgress = await this.getTaskProgress(id);
1401
1477
  this.resolveTaskStatus(taskProgress, resolve, reject);
1402
1478
 
1403
- const taskResultCallback = async _ref => {
1479
+ const taskResultCallback = async (_ref) => {
1404
1480
  let {
1405
1481
  data
1406
1482
  } = _ref;
@@ -1464,7 +1540,7 @@ const _excluded = ["name"],
1464
1540
  _excluded19 = ["layerName"];
1465
1541
  /**
1466
1542
  * @title Spatial Processing Core API
1467
- * @version v1.0.0
1543
+ * @version 1.0.0
1468
1544
  * @baseUrl /sp
1469
1545
  */
1470
1546
 
@@ -2604,7 +2680,7 @@ const _excluded$2 = ["name"],
2604
2680
  _excluded4$1 = ["name"];
2605
2681
  /**
2606
2682
  * @title Spatial Processing Core API
2607
- * @version v1.0.0
2683
+ * @version 1.0.0
2608
2684
  * @baseUrl /sp
2609
2685
  */
2610
2686
 
@@ -3084,7 +3160,7 @@ let Tables = /*#__PURE__*/function (_TablesService) {
3084
3160
 
3085
3161
  /**
3086
3162
  * @title Spatial Processing Core API
3087
- * @version v1.0.0
3163
+ * @version 1.0.0
3088
3164
  * @baseUrl /sp
3089
3165
  */
3090
3166
 
@@ -3540,12 +3616,12 @@ let Resources = /*#__PURE__*/function () {
3540
3616
  }, {
3541
3617
  key: "getDependentNames",
3542
3618
  value: function getDependentNames(deps, depType) {
3543
- return deps.filter(_ref => {
3619
+ return deps.filter((_ref) => {
3544
3620
  let {
3545
3621
  type
3546
3622
  } = _ref;
3547
3623
  return type === depType;
3548
- }).map(_ref2 => {
3624
+ }).map((_ref2) => {
3549
3625
  let {
3550
3626
  name
3551
3627
  } = _ref2;
@@ -3559,7 +3635,7 @@ let Resources = /*#__PURE__*/function () {
3559
3635
 
3560
3636
  /**
3561
3637
  * @title Spatial Processing Core API
3562
- * @version v1.0.0
3638
+ * @version 1.0.0
3563
3639
  * @baseUrl /sp
3564
3640
  */
3565
3641
 
@@ -3694,7 +3770,7 @@ const _excluded$3 = ["providerName"],
3694
3770
  _excluded3$2 = ["providerName"];
3695
3771
  /**
3696
3772
  * @title Spatial Processing Core API
3697
- * @version v1.0.0
3773
+ * @version 1.0.0
3698
3774
  * @baseUrl /sp
3699
3775
  */
3700
3776
 
@@ -3810,7 +3886,7 @@ let Geocode = /*#__PURE__*/function (_GeocodeService) {
3810
3886
 
3811
3887
  /**
3812
3888
  * @title Spatial Processing Core API
3813
- * @version v1.0.0
3889
+ * @version 1.0.0
3814
3890
  * @baseUrl /sp
3815
3891
  */
3816
3892
 
@@ -3878,7 +3954,7 @@ let ResourceCatalog = /*#__PURE__*/function (_ResourceCatalogServi) {
3878
3954
 
3879
3955
  /**
3880
3956
  * @title Spatial Processing Core API
3881
- * @version v1.0.0
3957
+ * @version 1.0.0
3882
3958
  * @baseUrl /sp
3883
3959
  */
3884
3960
 
@@ -3912,7 +3988,7 @@ let Tools = /*#__PURE__*/function (_ToolsService) {
3912
3988
 
3913
3989
  /**
3914
3990
  * @title Spatial Processing Core API
3915
- * @version v1.0.0
3991
+ * @version 1.0.0
3916
3992
  * @baseUrl /sp
3917
3993
  */
3918
3994
 
@@ -4012,7 +4088,7 @@ let General = /*#__PURE__*/function (_GeneralService) {
4012
4088
 
4013
4089
  /**
4014
4090
  * @title Spatial Processing Core API
4015
- * @version v1.0.0
4091
+ * @version 1.0.0
4016
4092
  * @baseUrl /sp
4017
4093
  */
4018
4094
 
@@ -4112,7 +4188,7 @@ let Namespace = /*#__PURE__*/function (_NamespaceService) {
4112
4188
 
4113
4189
  /**
4114
4190
  * @title Spatial Processing Core API
4115
- * @version v1.0.0
4191
+ * @version 1.0.0
4116
4192
  * @baseUrl /sp
4117
4193
  */
4118
4194
 
@@ -4788,7 +4864,7 @@ let Account = /*#__PURE__*/function (_AccountService) {
4788
4864
  const _excluded$4 = ["username"];
4789
4865
  /**
4790
4866
  * @title Spatial Processing Core API
4791
- * @version v1.0.0
4867
+ * @version 1.0.0
4792
4868
  * @baseUrl /sp
4793
4869
  */
4794
4870
 
@@ -4942,7 +5018,7 @@ let AccountPreview = /*#__PURE__*/function (_AccountPreviewServic) {
4942
5018
 
4943
5019
  /**
4944
5020
  * @title Spatial Processing Core API
4945
- * @version v1.0.0
5021
+ * @version 1.0.0
4946
5022
  * @baseUrl /sp
4947
5023
  */
4948
5024
 
@@ -5207,7 +5283,7 @@ let External = /*#__PURE__*/function (_ExternalProvidersSer) {
5207
5283
 
5208
5284
  /**
5209
5285
  * @title Spatial Processing Core API
5210
- * @version v1.0.0
5286
+ * @version 1.0.0
5211
5287
  * @baseUrl /sp
5212
5288
  */
5213
5289
 
@@ -5530,7 +5606,7 @@ let Names = /*#__PURE__*/function () {
5530
5606
 
5531
5607
  /**
5532
5608
  * @title Spatial Processing Core API
5533
- * @version v1.0.0
5609
+ * @version 1.0.0
5534
5610
  * @baseUrl /sp
5535
5611
  */
5536
5612
 
@@ -5598,7 +5674,7 @@ let IceRouter = /*#__PURE__*/function (_IceRouterService) {
5598
5674
 
5599
5675
  /**
5600
5676
  * @title Spatial Processing Core API
5601
- * @version v1.0.0
5677
+ * @version 1.0.0
5602
5678
  * @baseUrl /sp
5603
5679
  */
5604
5680
 
@@ -5694,7 +5770,7 @@ let Statistic = /*#__PURE__*/function (_StatisticService) {
5694
5770
 
5695
5771
  /**
5696
5772
  * @title Spatial Processing Core API
5697
- * @version v1.0.0
5773
+ * @version 1.0.0
5698
5774
  * @baseUrl /sp
5699
5775
  */
5700
5776
 
@@ -5785,7 +5861,7 @@ let Feedback = /*#__PURE__*/function (_FeedbackService) {
5785
5861
 
5786
5862
  /**
5787
5863
  * @title Spatial Processing Core API
5788
- * @version v1.0.0
5864
+ * @version 1.0.0
5789
5865
  * @baseUrl /sp
5790
5866
  */
5791
5867
 
@@ -5981,6 +6057,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
5981
6057
  _this.notification = new Notification(_this.http, _assertThisInitialized(_this));
5982
6058
  _this.scheduler = new Scheduler(_this.http);
5983
6059
  _this.file = new FileUpload(_this.http);
6060
+ _this.filters = new Filters(_this.http);
5984
6061
  _this.import = new Import(_this.http);
5985
6062
  _this.geocode = new Geocode(_this.http);
5986
6063
  _this.print = new Print(_this.http);
@@ -6121,7 +6198,8 @@ let EvergisTileLayer = /*#__PURE__*/function (_TileLayer) {
6121
6198
  _classCallCheck(this, EvergisTileLayer);
6122
6199
 
6123
6200
  _this = _super.call(this, '', {
6124
- crs: configuration.crs
6201
+ crs: configuration.crs,
6202
+ opacity: configuration.opacity
6125
6203
  });
6126
6204
  _this.api = api;
6127
6205
  _this.name = configuration.name;
@@ -6498,6 +6576,7 @@ function isFeatureLayer(layer) {
6498
6576
  ConfigurationErrorEnum["DataSourceNotFound"] = "DataSourceNotFound";
6499
6577
  ConfigurationErrorEnum["DuplicateColumns"] = "DuplicateColumns";
6500
6578
  ConfigurationErrorEnum["TableWithoutColumns"] = "TableWithoutColumns";
6579
+ ConfigurationErrorEnum["InvalidTableReferenceConfiguration"] = "InvalidTableReferenceConfiguration";
6501
6580
  })(exports.ConfigurationErrorEnum || (exports.ConfigurationErrorEnum = {}));
6502
6581
 
6503
6582
  (function (ErrorDetailsType) {
@@ -6625,6 +6704,12 @@ function isFeatureLayer(layer) {
6625
6704
  PolicyType["MaxUploadContentSize"] = "MaxUploadContentSize";
6626
6705
  })(exports.PolicyType || (exports.PolicyType = {}));
6627
6706
 
6707
+ (function (ReferenceJoinType) {
6708
+ ReferenceJoinType["OneToMany"] = "OneToMany";
6709
+ ReferenceJoinType["OneToOne"] = "OneToOne";
6710
+ ReferenceJoinType["Intersect"] = "Intersect";
6711
+ })(exports.ReferenceJoinType || (exports.ReferenceJoinType = {}));
6712
+
6628
6713
  (function (ResourceType) {
6629
6714
  ResourceType["Unknown"] = "Unknown";
6630
6715
  ResourceType["Table"] = "table";
@@ -6658,6 +6743,11 @@ function isFeatureLayer(layer) {
6658
6743
  StringSubType["PkkCode"] = "PkkCode";
6659
6744
  })(exports.StringSubType || (exports.StringSubType = {}));
6660
6745
 
6746
+ (function (TaskGroup) {
6747
+ TaskGroup["My"] = "my";
6748
+ TaskGroup["All"] = "all";
6749
+ })(exports.TaskGroup || (exports.TaskGroup = {}));
6750
+
6661
6751
  (function (TextAlignment) {
6662
6752
  TextAlignment["Right"] = "right";
6663
6753
  TextAlignment["Left"] = "left";
@@ -6693,6 +6783,7 @@ exports.EvergisTileLayer = EvergisTileLayer;
6693
6783
  exports.External = External;
6694
6784
  exports.Feedback = Feedback;
6695
6785
  exports.FileUpload = FileUpload;
6786
+ exports.Filters = Filters;
6696
6787
  exports.GEOCODE_PROVIDER = GEOCODE_PROVIDER;
6697
6788
  exports.General = General;
6698
6789
  exports.Geocode = Geocode;