@evergis/api 3.0.79 → 3.0.80
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.d.ts +7 -2
- package/dist/__generated__/ImportService.d.ts +6 -28
- package/dist/__generated__/ProjectsService.d.ts +2 -2
- package/dist/__generated__/StatisticService.d.ts +2 -2
- package/dist/__generated__/TablesService.d.ts +2 -2
- package/dist/__generated__/WmsServerService.d.ts +2 -2
- package/dist/__generated__/data-contracts.d.ts +21 -16
- package/dist/api.cjs.development.js +24 -39
- package/dist/api.cjs.development.js.map +1 -1
- package/dist/api.cjs.production.min.js +1 -1
- package/dist/api.cjs.production.min.js.map +1 -1
- package/dist/api.esm.js +24 -39
- package/dist/api.esm.js.map +1 -1
- package/package.json +3 -2
package/dist/api.esm.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { HubConnectionBuilder } from '@microsoft/signalr';
|
|
1
2
|
import ky, { HTTPError } from 'ky';
|
|
2
3
|
export { HTTPError, TimeoutError } from 'ky';
|
|
3
4
|
import { EventEmitter } from '@evergis/event-emitter';
|
|
@@ -634,49 +635,17 @@ let ImportService = /*#__PURE__*/function (_Service) {
|
|
|
634
635
|
* No description
|
|
635
636
|
*
|
|
636
637
|
* @tags ImportService
|
|
637
|
-
* @name
|
|
638
|
-
* @operationId
|
|
639
|
-
* @summary
|
|
640
|
-
* @request
|
|
638
|
+
* @name GetFeaturesCount
|
|
639
|
+
* @operationId ImportServiceController_GetFeaturesCount
|
|
640
|
+
* @summary Returns the features count of the given file in temporary static storage.
|
|
641
|
+
* @request POST:/import/count
|
|
641
642
|
* @response `200` Success
|
|
642
643
|
*/
|
|
643
644
|
|
|
644
645
|
}, {
|
|
645
|
-
key: "
|
|
646
|
-
value: function
|
|
647
|
-
return this.http.
|
|
648
|
-
}
|
|
649
|
-
/**
|
|
650
|
-
* No description
|
|
651
|
-
*
|
|
652
|
-
* @tags ImportService
|
|
653
|
-
* @name GetCsvDataSchema
|
|
654
|
-
* @operationId ImportServiceController_GetCsvDataSchema
|
|
655
|
-
* @summary Using a file uploaded to the file upload service, reads the headers of the csv file and returns the information about data schema of all layers in that file, available for import.
|
|
656
|
-
* @request GET:/import/csvDataSchema
|
|
657
|
-
* @response `200` Success
|
|
658
|
-
*/
|
|
659
|
-
|
|
660
|
-
}, {
|
|
661
|
-
key: "getCsvDataSchema",
|
|
662
|
-
value: function getCsvDataSchema(query) {
|
|
663
|
-
return this.http.get("/import/csvDataSchema", query).json();
|
|
664
|
-
}
|
|
665
|
-
/**
|
|
666
|
-
* No description
|
|
667
|
-
*
|
|
668
|
-
* @tags ImportService
|
|
669
|
-
* @name GetKmlDataSchema
|
|
670
|
-
* @operationId ImportServiceController_GetKmlDataSchema
|
|
671
|
-
* @summary Using a file uploaded to the file upload service, reads the kml file and returns the information about data schema of all layers in that file, available for import.
|
|
672
|
-
* @request GET:/import/kmlDataSchema
|
|
673
|
-
* @response `200` Success
|
|
674
|
-
*/
|
|
675
|
-
|
|
676
|
-
}, {
|
|
677
|
-
key: "getKmlDataSchema",
|
|
678
|
-
value: function getKmlDataSchema(query) {
|
|
679
|
-
return this.http.get("/import/kmlDataSchema", query).json();
|
|
646
|
+
key: "getFeaturesCount",
|
|
647
|
+
value: function getFeaturesCount(data) {
|
|
648
|
+
return this.http.post("/import/count", data).json();
|
|
680
649
|
}
|
|
681
650
|
/**
|
|
682
651
|
* No description
|
|
@@ -5820,6 +5789,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
5820
5789
|
let {
|
|
5821
5790
|
url,
|
|
5822
5791
|
wsUrl,
|
|
5792
|
+
snappingHubUrl,
|
|
5823
5793
|
http,
|
|
5824
5794
|
urlPath,
|
|
5825
5795
|
httpOptions
|
|
@@ -5879,6 +5849,9 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
5879
5849
|
_this.names = new Names({
|
|
5880
5850
|
account: _this.account
|
|
5881
5851
|
});
|
|
5852
|
+
_this.snappingHub = snappingHubUrl ? new HubConnectionBuilder().withUrl(snappingHubUrl, {
|
|
5853
|
+
withCredentials: true
|
|
5854
|
+
}).withAutomaticReconnect().build() : null;
|
|
5882
5855
|
return _this;
|
|
5883
5856
|
}
|
|
5884
5857
|
|
|
@@ -5888,6 +5861,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
5888
5861
|
let {
|
|
5889
5862
|
authParams,
|
|
5890
5863
|
connectWs,
|
|
5864
|
+
connectSignalR,
|
|
5891
5865
|
initScheduler,
|
|
5892
5866
|
fetchSettings,
|
|
5893
5867
|
fetchUser
|
|
@@ -5904,6 +5878,10 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
5904
5878
|
await this.connectWs();
|
|
5905
5879
|
}
|
|
5906
5880
|
|
|
5881
|
+
if (connectSignalR) {
|
|
5882
|
+
await this.connectSignalR();
|
|
5883
|
+
}
|
|
5884
|
+
|
|
5907
5885
|
if (initScheduler) {
|
|
5908
5886
|
await this.initScheduler();
|
|
5909
5887
|
}
|
|
@@ -5951,6 +5929,13 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
5951
5929
|
});
|
|
5952
5930
|
}
|
|
5953
5931
|
}
|
|
5932
|
+
}, {
|
|
5933
|
+
key: "connectSignalR",
|
|
5934
|
+
value: async function connectSignalR() {
|
|
5935
|
+
if (this.account.isAuth && this.snappingHub) {
|
|
5936
|
+
await this.snappingHub.start();
|
|
5937
|
+
}
|
|
5938
|
+
}
|
|
5954
5939
|
}, {
|
|
5955
5940
|
key: "logout",
|
|
5956
5941
|
value: async function logout() {
|