@evergis/api 3.0.54 → 3.0.58
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 +4 -2
- package/dist/__generated__/StaticContentService.d.ts +12 -1
- package/dist/__generated__/TablesService.d.ts +2 -2
- package/dist/__generated__/WmsServerService.d.ts +20 -0
- package/dist/__generated__/data-contracts.d.ts +122 -0
- package/dist/api.cjs.development.js +231 -147
- 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 +231 -148
- package/dist/api.esm.js.map +1 -1
- package/dist/services/PortalSettings.d.ts +13 -0
- package/dist/services/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/api.esm.js
CHANGED
|
@@ -185,11 +185,11 @@ function _get(target, property, receiver) {
|
|
|
185
185
|
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
186
186
|
* ---------------------------------------------------------------
|
|
187
187
|
*/
|
|
188
|
-
let Service = function Service(http) {
|
|
188
|
+
let Service = /*#__PURE__*/_createClass(function Service(http) {
|
|
189
189
|
_classCallCheck(this, Service);
|
|
190
190
|
|
|
191
191
|
this.http = http;
|
|
192
|
-
};
|
|
192
|
+
});
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
195
|
* @title Spatial Processing Core API
|
|
@@ -210,7 +210,7 @@ let BulkOperationsService = /*#__PURE__*/function (_Service) {
|
|
|
210
210
|
|
|
211
211
|
_createClass(BulkOperationsService, [{
|
|
212
212
|
key: "batchUpdateCatalogResources",
|
|
213
|
-
|
|
213
|
+
value:
|
|
214
214
|
/**
|
|
215
215
|
* No description
|
|
216
216
|
*
|
|
@@ -221,7 +221,7 @@ let BulkOperationsService = /*#__PURE__*/function (_Service) {
|
|
|
221
221
|
* @request PUT:/bulk/catalog/updateResources
|
|
222
222
|
* @response `200` Success
|
|
223
223
|
*/
|
|
224
|
-
|
|
224
|
+
function batchUpdateCatalogResources(data) {
|
|
225
225
|
return this.http.put("/bulk/catalog/updateResources", data).json();
|
|
226
226
|
}
|
|
227
227
|
/**
|
|
@@ -332,7 +332,7 @@ let SecurityService = /*#__PURE__*/function (_Service) {
|
|
|
332
332
|
|
|
333
333
|
_createClass(SecurityService, [{
|
|
334
334
|
key: "findUserByNameByRoles",
|
|
335
|
-
|
|
335
|
+
value:
|
|
336
336
|
/**
|
|
337
337
|
* No description
|
|
338
338
|
*
|
|
@@ -343,7 +343,7 @@ let SecurityService = /*#__PURE__*/function (_Service) {
|
|
|
343
343
|
* @request GET:/security/findUsersWithRoles
|
|
344
344
|
* @response `200` Success
|
|
345
345
|
*/
|
|
346
|
-
|
|
346
|
+
function findUserByNameByRoles(query) {
|
|
347
347
|
return this.http.get("/security/findUsersWithRoles", query).json();
|
|
348
348
|
}
|
|
349
349
|
/**
|
|
@@ -576,7 +576,7 @@ let StaticContentService = /*#__PURE__*/function (_Service) {
|
|
|
576
576
|
|
|
577
577
|
_createClass(StaticContentService, [{
|
|
578
578
|
key: "downloadFile",
|
|
579
|
-
|
|
579
|
+
value:
|
|
580
580
|
/**
|
|
581
581
|
* No description
|
|
582
582
|
*
|
|
@@ -587,7 +587,7 @@ let StaticContentService = /*#__PURE__*/function (_Service) {
|
|
|
587
587
|
* @request GET:/upload/file
|
|
588
588
|
* @response `200` Success
|
|
589
589
|
*/
|
|
590
|
-
|
|
590
|
+
function downloadFile(query) {
|
|
591
591
|
return this.http.get("/upload/file", query).blob();
|
|
592
592
|
}
|
|
593
593
|
/**
|
|
@@ -606,6 +606,22 @@ let StaticContentService = /*#__PURE__*/function (_Service) {
|
|
|
606
606
|
value: function uploadFile(data) {
|
|
607
607
|
return this.http.post("/upload/file", toFormData(data)).json();
|
|
608
608
|
}
|
|
609
|
+
/**
|
|
610
|
+
* No description
|
|
611
|
+
*
|
|
612
|
+
* @tags StaticContentService
|
|
613
|
+
* @name DeleteFile
|
|
614
|
+
* @operationId StaticContentServiceController_DeleteFile
|
|
615
|
+
* @summary Delete file from temporary session storage.
|
|
616
|
+
* @request DELETE:/upload/file
|
|
617
|
+
* @response `200` Success
|
|
618
|
+
*/
|
|
619
|
+
|
|
620
|
+
}, {
|
|
621
|
+
key: "deleteFile",
|
|
622
|
+
value: function deleteFile(query) {
|
|
623
|
+
return this.http.delete("/upload/file", null, query).then(() => {});
|
|
624
|
+
}
|
|
609
625
|
}]);
|
|
610
626
|
|
|
611
627
|
return StaticContentService;
|
|
@@ -654,7 +670,7 @@ let ImportService = /*#__PURE__*/function (_Service) {
|
|
|
654
670
|
|
|
655
671
|
_createClass(ImportService, [{
|
|
656
672
|
key: "getDataSchema",
|
|
657
|
-
|
|
673
|
+
value:
|
|
658
674
|
/**
|
|
659
675
|
* No description
|
|
660
676
|
*
|
|
@@ -665,7 +681,7 @@ let ImportService = /*#__PURE__*/function (_Service) {
|
|
|
665
681
|
* @request GET:/import/dataSchema
|
|
666
682
|
* @response `200` Success
|
|
667
683
|
*/
|
|
668
|
-
|
|
684
|
+
function getDataSchema(query) {
|
|
669
685
|
return this.http.get("/import/dataSchema", query).json();
|
|
670
686
|
}
|
|
671
687
|
/**
|
|
@@ -732,7 +748,7 @@ let Import = /*#__PURE__*/function (_ImportService) {
|
|
|
732
748
|
return _super.apply(this, arguments);
|
|
733
749
|
}
|
|
734
750
|
|
|
735
|
-
return Import;
|
|
751
|
+
return _createClass(Import);
|
|
736
752
|
}(ImportService);
|
|
737
753
|
|
|
738
754
|
/**
|
|
@@ -754,7 +770,7 @@ let NotificationService = /*#__PURE__*/function (_Service) {
|
|
|
754
770
|
|
|
755
771
|
_createClass(NotificationService, [{
|
|
756
772
|
key: "getSubscriptionList",
|
|
757
|
-
|
|
773
|
+
value:
|
|
758
774
|
/**
|
|
759
775
|
* No description
|
|
760
776
|
*
|
|
@@ -765,7 +781,7 @@ let NotificationService = /*#__PURE__*/function (_Service) {
|
|
|
765
781
|
* @request GET:/notifications/subscribes
|
|
766
782
|
* @response `200` Success
|
|
767
783
|
*/
|
|
768
|
-
|
|
784
|
+
function getSubscriptionList() {
|
|
769
785
|
return this.http.get("/notifications/subscribes").json();
|
|
770
786
|
}
|
|
771
787
|
/**
|
|
@@ -919,6 +935,18 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
|
|
|
919
935
|
|
|
920
936
|
|
|
921
937
|
_createClass(Notification, [{
|
|
938
|
+
key: "connectStatus",
|
|
939
|
+
get: function get() {
|
|
940
|
+
return this._connectStatus;
|
|
941
|
+
} // @ts-ignore
|
|
942
|
+
,
|
|
943
|
+
set: function set(connectStatus) {
|
|
944
|
+
this.emitter.emit("ConnectionStatus"
|
|
945
|
+
/* ConnectionStatus */
|
|
946
|
+
, new NotificationEvent(connectStatus));
|
|
947
|
+
this._connectStatus = connectStatus;
|
|
948
|
+
}
|
|
949
|
+
}, {
|
|
922
950
|
key: "on",
|
|
923
951
|
value: function on(tag, handler) {
|
|
924
952
|
this.emitter.on(tag, handler);
|
|
@@ -970,27 +998,15 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
|
|
|
970
998
|
console.warn('Connection to WebSocket not allowed. wsUrl not provided');
|
|
971
999
|
}
|
|
972
1000
|
}
|
|
973
|
-
}, {
|
|
974
|
-
key: "connectStatus",
|
|
975
|
-
get: function get() {
|
|
976
|
-
return this._connectStatus;
|
|
977
|
-
} // @ts-ignore
|
|
978
|
-
,
|
|
979
|
-
set: function set(connectStatus) {
|
|
980
|
-
this.emitter.emit("ConnectionStatus"
|
|
981
|
-
/* ConnectionStatus */
|
|
982
|
-
, new NotificationEvent(connectStatus));
|
|
983
|
-
this._connectStatus = connectStatus;
|
|
984
|
-
}
|
|
985
1001
|
}]);
|
|
986
1002
|
|
|
987
1003
|
return Notification;
|
|
988
1004
|
}(NotificationService);
|
|
989
|
-
let NotificationEvent = function NotificationEvent(data) {
|
|
1005
|
+
let NotificationEvent = /*#__PURE__*/_createClass(function NotificationEvent(data) {
|
|
990
1006
|
_classCallCheck(this, NotificationEvent);
|
|
991
1007
|
|
|
992
1008
|
this.data = data;
|
|
993
|
-
};
|
|
1009
|
+
});
|
|
994
1010
|
|
|
995
1011
|
/**
|
|
996
1012
|
* @title Spatial Processing Core API
|
|
@@ -1011,7 +1027,7 @@ let SchedulerService = /*#__PURE__*/function (_Service) {
|
|
|
1011
1027
|
|
|
1012
1028
|
_createClass(SchedulerService, [{
|
|
1013
1029
|
key: "getTaskList",
|
|
1014
|
-
|
|
1030
|
+
value:
|
|
1015
1031
|
/**
|
|
1016
1032
|
* No description
|
|
1017
1033
|
*
|
|
@@ -1022,7 +1038,7 @@ let SchedulerService = /*#__PURE__*/function (_Service) {
|
|
|
1022
1038
|
* @request GET:/scheduler/tasks
|
|
1023
1039
|
* @response `200` Success
|
|
1024
1040
|
*/
|
|
1025
|
-
|
|
1041
|
+
function getTaskList(query) {
|
|
1026
1042
|
return this.http.get("/scheduler/tasks", query).json();
|
|
1027
1043
|
}
|
|
1028
1044
|
/**
|
|
@@ -1425,6 +1441,24 @@ let Scheduler = /*#__PURE__*/function (_SchedulerService) {
|
|
|
1425
1441
|
return Scheduler;
|
|
1426
1442
|
}(SchedulerService);
|
|
1427
1443
|
|
|
1444
|
+
const _excluded = ["name"],
|
|
1445
|
+
_excluded2 = ["name"],
|
|
1446
|
+
_excluded3 = ["name"],
|
|
1447
|
+
_excluded4 = ["name", "id"],
|
|
1448
|
+
_excluded5 = ["name", "id"],
|
|
1449
|
+
_excluded6 = ["name", "id"],
|
|
1450
|
+
_excluded7 = ["name", "x", "y", "z"],
|
|
1451
|
+
_excluded8 = ["name"],
|
|
1452
|
+
_excluded9 = ["name"],
|
|
1453
|
+
_excluded10 = ["name"],
|
|
1454
|
+
_excluded11 = ["name"],
|
|
1455
|
+
_excluded12 = ["name"],
|
|
1456
|
+
_excluded13 = ["name"],
|
|
1457
|
+
_excluded14 = ["name"],
|
|
1458
|
+
_excluded15 = ["name"],
|
|
1459
|
+
_excluded16 = ["name"],
|
|
1460
|
+
_excluded17 = ["name"],
|
|
1461
|
+
_excluded18 = ["layerName"];
|
|
1428
1462
|
/**
|
|
1429
1463
|
* @title Spatial Processing Core API
|
|
1430
1464
|
* @version v0.6.0
|
|
@@ -1444,7 +1478,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1444
1478
|
|
|
1445
1479
|
_createClass(LayersService, [{
|
|
1446
1480
|
key: "getLayersList",
|
|
1447
|
-
|
|
1481
|
+
value:
|
|
1448
1482
|
/**
|
|
1449
1483
|
* No description
|
|
1450
1484
|
*
|
|
@@ -1455,7 +1489,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1455
1489
|
* @request GET:/layers
|
|
1456
1490
|
* @response `200` Success
|
|
1457
1491
|
*/
|
|
1458
|
-
|
|
1492
|
+
function getLayersList(query) {
|
|
1459
1493
|
return this.http.get("/layers", query).json();
|
|
1460
1494
|
}
|
|
1461
1495
|
/**
|
|
@@ -1790,7 +1824,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1790
1824
|
let {
|
|
1791
1825
|
name
|
|
1792
1826
|
} = _ref,
|
|
1793
|
-
query = _objectWithoutPropertiesLoose(_ref,
|
|
1827
|
+
query = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
1794
1828
|
|
|
1795
1829
|
return this.http.get("/layers/" + name + "/features", query).json();
|
|
1796
1830
|
}
|
|
@@ -1811,7 +1845,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1811
1845
|
let {
|
|
1812
1846
|
name
|
|
1813
1847
|
} = _ref2,
|
|
1814
|
-
query = _objectWithoutPropertiesLoose(_ref2,
|
|
1848
|
+
query = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
1815
1849
|
|
|
1816
1850
|
return this.http.delete("/layers/" + name + "/features", null, query).json();
|
|
1817
1851
|
}
|
|
@@ -1864,7 +1898,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1864
1898
|
let {
|
|
1865
1899
|
name
|
|
1866
1900
|
} = _ref3,
|
|
1867
|
-
query = _objectWithoutPropertiesLoose(_ref3,
|
|
1901
|
+
query = _objectWithoutPropertiesLoose(_ref3, _excluded3);
|
|
1868
1902
|
|
|
1869
1903
|
return this.http.get("/layers/" + name + "/features/contains", query).json();
|
|
1870
1904
|
}
|
|
@@ -1886,7 +1920,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1886
1920
|
name,
|
|
1887
1921
|
id
|
|
1888
1922
|
} = _ref4,
|
|
1889
|
-
query = _objectWithoutPropertiesLoose(_ref4,
|
|
1923
|
+
query = _objectWithoutPropertiesLoose(_ref4, _excluded4);
|
|
1890
1924
|
|
|
1891
1925
|
return this.http.get("/layers/" + name + "/features/" + id, query).json();
|
|
1892
1926
|
}
|
|
@@ -1908,7 +1942,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1908
1942
|
name,
|
|
1909
1943
|
id
|
|
1910
1944
|
} = _ref5,
|
|
1911
|
-
query = _objectWithoutPropertiesLoose(_ref5,
|
|
1945
|
+
query = _objectWithoutPropertiesLoose(_ref5, _excluded5);
|
|
1912
1946
|
|
|
1913
1947
|
return this.http.post("/layers/" + name + "/features/" + id + "/unite", data, query).json();
|
|
1914
1948
|
}
|
|
@@ -1930,7 +1964,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1930
1964
|
name,
|
|
1931
1965
|
id
|
|
1932
1966
|
} = _ref6,
|
|
1933
|
-
query = _objectWithoutPropertiesLoose(_ref6,
|
|
1967
|
+
query = _objectWithoutPropertiesLoose(_ref6, _excluded6);
|
|
1934
1968
|
|
|
1935
1969
|
return this.http.post("/layers/" + name + "/features/" + id + "/subtract", data, query).json();
|
|
1936
1970
|
}
|
|
@@ -1954,7 +1988,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1954
1988
|
y,
|
|
1955
1989
|
z
|
|
1956
1990
|
} = _ref7,
|
|
1957
|
-
query = _objectWithoutPropertiesLoose(_ref7,
|
|
1991
|
+
query = _objectWithoutPropertiesLoose(_ref7, _excluded7);
|
|
1958
1992
|
|
|
1959
1993
|
return this.http.createUrl("/layers/" + name + "/tile/" + z + "/" + x + "/" + y, query);
|
|
1960
1994
|
}
|
|
@@ -1975,7 +2009,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1975
2009
|
let {
|
|
1976
2010
|
name
|
|
1977
2011
|
} = _ref8,
|
|
1978
|
-
query = _objectWithoutPropertiesLoose(_ref8,
|
|
2012
|
+
query = _objectWithoutPropertiesLoose(_ref8, _excluded8);
|
|
1979
2013
|
|
|
1980
2014
|
return this.http.createUrl("/layers/" + name + "/export", query);
|
|
1981
2015
|
}
|
|
@@ -1996,7 +2030,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1996
2030
|
let {
|
|
1997
2031
|
name
|
|
1998
2032
|
} = _ref9,
|
|
1999
|
-
query = _objectWithoutPropertiesLoose(_ref9,
|
|
2033
|
+
query = _objectWithoutPropertiesLoose(_ref9, _excluded9);
|
|
2000
2034
|
|
|
2001
2035
|
return this.http.get("/layers/" + name + "/extent", query).json();
|
|
2002
2036
|
}
|
|
@@ -2017,7 +2051,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
2017
2051
|
let {
|
|
2018
2052
|
name
|
|
2019
2053
|
} = _ref10,
|
|
2020
|
-
query = _objectWithoutPropertiesLoose(_ref10,
|
|
2054
|
+
query = _objectWithoutPropertiesLoose(_ref10, _excluded10);
|
|
2021
2055
|
|
|
2022
2056
|
return this.http.get("/layers/" + name + "/features/getByGeometry", query).json();
|
|
2023
2057
|
}
|
|
@@ -2038,7 +2072,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
2038
2072
|
let {
|
|
2039
2073
|
name
|
|
2040
2074
|
} = _ref11,
|
|
2041
|
-
query = _objectWithoutPropertiesLoose(_ref11,
|
|
2075
|
+
query = _objectWithoutPropertiesLoose(_ref11, _excluded11);
|
|
2042
2076
|
|
|
2043
2077
|
return this.http.post("/layers/" + name + "/features/getByGeometry", data, query).json();
|
|
2044
2078
|
}
|
|
@@ -2059,7 +2093,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
2059
2093
|
let {
|
|
2060
2094
|
name
|
|
2061
2095
|
} = _ref12,
|
|
2062
|
-
query = _objectWithoutPropertiesLoose(_ref12,
|
|
2096
|
+
query = _objectWithoutPropertiesLoose(_ref12, _excluded12);
|
|
2063
2097
|
|
|
2064
2098
|
return this.http.delete("/layers/" + name + "/features/deleteByIds", null, query).json();
|
|
2065
2099
|
}
|
|
@@ -2080,7 +2114,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
2080
2114
|
let {
|
|
2081
2115
|
name
|
|
2082
2116
|
} = _ref13,
|
|
2083
|
-
query = _objectWithoutPropertiesLoose(_ref13,
|
|
2117
|
+
query = _objectWithoutPropertiesLoose(_ref13, _excluded13);
|
|
2084
2118
|
|
|
2085
2119
|
return this.http.get("/layers/" + name + "/features/getByGeometryByClick", query).json();
|
|
2086
2120
|
}
|
|
@@ -2101,7 +2135,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
2101
2135
|
let {
|
|
2102
2136
|
name
|
|
2103
2137
|
} = _ref14,
|
|
2104
|
-
query = _objectWithoutPropertiesLoose(_ref14,
|
|
2138
|
+
query = _objectWithoutPropertiesLoose(_ref14, _excluded14);
|
|
2105
2139
|
|
|
2106
2140
|
return this.http.get("/layers/" + name + "/classify", query).json();
|
|
2107
2141
|
}
|
|
@@ -2122,7 +2156,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
2122
2156
|
let {
|
|
2123
2157
|
name
|
|
2124
2158
|
} = _ref15,
|
|
2125
|
-
query = _objectWithoutPropertiesLoose(_ref15,
|
|
2159
|
+
query = _objectWithoutPropertiesLoose(_ref15, _excluded15);
|
|
2126
2160
|
|
|
2127
2161
|
return this.http.get("/layers/" + name + "/distincts", query).json();
|
|
2128
2162
|
}
|
|
@@ -2143,7 +2177,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
2143
2177
|
let {
|
|
2144
2178
|
name
|
|
2145
2179
|
} = _ref16,
|
|
2146
|
-
query = _objectWithoutPropertiesLoose(_ref16,
|
|
2180
|
+
query = _objectWithoutPropertiesLoose(_ref16, _excluded16);
|
|
2147
2181
|
|
|
2148
2182
|
return this.http.get("/layers/" + name + "/aggregate-values", query).json();
|
|
2149
2183
|
}
|
|
@@ -2164,7 +2198,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
2164
2198
|
let {
|
|
2165
2199
|
name
|
|
2166
2200
|
} = _ref17,
|
|
2167
|
-
query = _objectWithoutPropertiesLoose(_ref17,
|
|
2201
|
+
query = _objectWithoutPropertiesLoose(_ref17, _excluded17);
|
|
2168
2202
|
|
|
2169
2203
|
return this.http.get("/layers/" + name + "/features/count", query).json();
|
|
2170
2204
|
}
|
|
@@ -2218,7 +2252,7 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
2218
2252
|
let {
|
|
2219
2253
|
layerName
|
|
2220
2254
|
} = _ref18,
|
|
2221
|
-
query = _objectWithoutPropertiesLoose(_ref18,
|
|
2255
|
+
query = _objectWithoutPropertiesLoose(_ref18, _excluded18);
|
|
2222
2256
|
|
|
2223
2257
|
return this.http.get("/layers/" + layerName + "/validateExpression", query).json();
|
|
2224
2258
|
}
|
|
@@ -2384,6 +2418,7 @@ function notError(v) {
|
|
|
2384
2418
|
return !isError(v);
|
|
2385
2419
|
}
|
|
2386
2420
|
|
|
2421
|
+
const _excluded$1 = ["remote"];
|
|
2387
2422
|
let Layers = /*#__PURE__*/function (_LayersService) {
|
|
2388
2423
|
_inherits(Layers, _LayersService);
|
|
2389
2424
|
|
|
@@ -2423,7 +2458,7 @@ let Layers = /*#__PURE__*/function (_LayersService) {
|
|
|
2423
2458
|
let {
|
|
2424
2459
|
remote
|
|
2425
2460
|
} = _ref,
|
|
2426
|
-
configuration = _objectWithoutPropertiesLoose(_ref,
|
|
2461
|
+
configuration = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
2427
2462
|
|
|
2428
2463
|
if (remote) {
|
|
2429
2464
|
return this.publishRemoteTileService(configuration);
|
|
@@ -2472,6 +2507,10 @@ function isTileLayerService(layer) {
|
|
|
2472
2507
|
return layer.type && /TileService/.test(layer.type);
|
|
2473
2508
|
}
|
|
2474
2509
|
|
|
2510
|
+
const _excluded$2 = ["name"],
|
|
2511
|
+
_excluded2$1 = ["name"],
|
|
2512
|
+
_excluded3$1 = ["name"],
|
|
2513
|
+
_excluded4$1 = ["name"];
|
|
2475
2514
|
/**
|
|
2476
2515
|
* @title Spatial Processing Core API
|
|
2477
2516
|
* @version v0.6.0
|
|
@@ -2491,7 +2530,7 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
2491
2530
|
|
|
2492
2531
|
_createClass(TablesService, [{
|
|
2493
2532
|
key: "getTableList",
|
|
2494
|
-
|
|
2533
|
+
value:
|
|
2495
2534
|
/**
|
|
2496
2535
|
* No description
|
|
2497
2536
|
*
|
|
@@ -2502,7 +2541,7 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
2502
2541
|
* @request GET:/tables
|
|
2503
2542
|
* @response `200` Success
|
|
2504
2543
|
*/
|
|
2505
|
-
|
|
2544
|
+
function getTableList(query) {
|
|
2506
2545
|
return this.http.get("/tables", query).json();
|
|
2507
2546
|
}
|
|
2508
2547
|
/**
|
|
@@ -2618,7 +2657,7 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
2618
2657
|
let {
|
|
2619
2658
|
name
|
|
2620
2659
|
} = _ref,
|
|
2621
|
-
query = _objectWithoutPropertiesLoose(_ref,
|
|
2660
|
+
query = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
2622
2661
|
|
|
2623
2662
|
return this.http.get("/tables/" + name + "/data", query).json();
|
|
2624
2663
|
}
|
|
@@ -2639,7 +2678,7 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
2639
2678
|
let {
|
|
2640
2679
|
name
|
|
2641
2680
|
} = _ref2,
|
|
2642
|
-
query = _objectWithoutPropertiesLoose(_ref2,
|
|
2681
|
+
query = _objectWithoutPropertiesLoose(_ref2, _excluded2$1);
|
|
2643
2682
|
|
|
2644
2683
|
return this.http.patch("/tables/" + name + "/data", data, query).then(() => {});
|
|
2645
2684
|
}
|
|
@@ -2660,7 +2699,7 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
2660
2699
|
let {
|
|
2661
2700
|
name
|
|
2662
2701
|
} = _ref3,
|
|
2663
|
-
query = _objectWithoutPropertiesLoose(_ref3,
|
|
2702
|
+
query = _objectWithoutPropertiesLoose(_ref3, _excluded3$1);
|
|
2664
2703
|
|
|
2665
2704
|
return this.http.delete("/tables/" + name + "/data", null, query).then(() => {});
|
|
2666
2705
|
}
|
|
@@ -2681,7 +2720,7 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
2681
2720
|
let {
|
|
2682
2721
|
name
|
|
2683
2722
|
} = _ref4,
|
|
2684
|
-
query = _objectWithoutPropertiesLoose(_ref4,
|
|
2723
|
+
query = _objectWithoutPropertiesLoose(_ref4, _excluded4$1);
|
|
2685
2724
|
|
|
2686
2725
|
return this.http.get("/tables/" + name + "/data/unique-values", query).json();
|
|
2687
2726
|
}
|
|
@@ -2977,7 +3016,7 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
|
|
|
2977
3016
|
|
|
2978
3017
|
_createClass(ProjectsService, [{
|
|
2979
3018
|
key: "getProjectLayersExtendedInfo",
|
|
2980
|
-
|
|
3019
|
+
value:
|
|
2981
3020
|
/**
|
|
2982
3021
|
* No description
|
|
2983
3022
|
*
|
|
@@ -2988,7 +3027,7 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
|
|
|
2988
3027
|
* @request GET:/projects/{name}/extended-info
|
|
2989
3028
|
* @response `200` Success
|
|
2990
3029
|
*/
|
|
2991
|
-
|
|
3030
|
+
function getProjectLayersExtendedInfo(name) {
|
|
2992
3031
|
return this.http.get("/projects/" + name + "/extended-info").json();
|
|
2993
3032
|
}
|
|
2994
3033
|
/**
|
|
@@ -3470,7 +3509,7 @@ let StyleService = /*#__PURE__*/function (_Service) {
|
|
|
3470
3509
|
|
|
3471
3510
|
_createClass(StyleService, [{
|
|
3472
3511
|
key: "getStyle",
|
|
3473
|
-
|
|
3512
|
+
value:
|
|
3474
3513
|
/**
|
|
3475
3514
|
* No description
|
|
3476
3515
|
*
|
|
@@ -3481,7 +3520,7 @@ let StyleService = /*#__PURE__*/function (_Service) {
|
|
|
3481
3520
|
* @request GET:/styles/{id}
|
|
3482
3521
|
* @response `200` Success
|
|
3483
3522
|
*/
|
|
3484
|
-
|
|
3523
|
+
function getStyle(id) {
|
|
3485
3524
|
return this.http.get("/styles/" + id).json();
|
|
3486
3525
|
}
|
|
3487
3526
|
/**
|
|
@@ -3548,9 +3587,12 @@ let Styles = /*#__PURE__*/function (_StyleService) {
|
|
|
3548
3587
|
return _super.apply(this, arguments);
|
|
3549
3588
|
}
|
|
3550
3589
|
|
|
3551
|
-
return Styles;
|
|
3590
|
+
return _createClass(Styles);
|
|
3552
3591
|
}(StyleService);
|
|
3553
3592
|
|
|
3593
|
+
const _excluded$3 = ["providerName"],
|
|
3594
|
+
_excluded2$2 = ["providerName"],
|
|
3595
|
+
_excluded3$2 = ["providerName"];
|
|
3554
3596
|
/**
|
|
3555
3597
|
* @title Spatial Processing Core API
|
|
3556
3598
|
* @version v0.6.0
|
|
@@ -3570,7 +3612,7 @@ let GeocodeService = /*#__PURE__*/function (_Service) {
|
|
|
3570
3612
|
|
|
3571
3613
|
_createClass(GeocodeService, [{
|
|
3572
3614
|
key: "geocode",
|
|
3573
|
-
|
|
3615
|
+
value:
|
|
3574
3616
|
/**
|
|
3575
3617
|
* No description
|
|
3576
3618
|
*
|
|
@@ -3581,11 +3623,11 @@ let GeocodeService = /*#__PURE__*/function (_Service) {
|
|
|
3581
3623
|
* @request GET:/geocode/{providerName}
|
|
3582
3624
|
* @response `200` Success
|
|
3583
3625
|
*/
|
|
3584
|
-
|
|
3626
|
+
function geocode(_ref) {
|
|
3585
3627
|
let {
|
|
3586
3628
|
providerName
|
|
3587
3629
|
} = _ref,
|
|
3588
|
-
query = _objectWithoutPropertiesLoose(_ref,
|
|
3630
|
+
query = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
3589
3631
|
|
|
3590
3632
|
return this.http.get("/geocode/" + providerName, query).json();
|
|
3591
3633
|
}
|
|
@@ -3606,7 +3648,7 @@ let GeocodeService = /*#__PURE__*/function (_Service) {
|
|
|
3606
3648
|
let {
|
|
3607
3649
|
providerName
|
|
3608
3650
|
} = _ref2,
|
|
3609
|
-
query = _objectWithoutPropertiesLoose(_ref2,
|
|
3651
|
+
query = _objectWithoutPropertiesLoose(_ref2, _excluded2$2);
|
|
3610
3652
|
|
|
3611
3653
|
return this.http.get("/geocode/" + providerName + "/geocodeByPoint", query).json();
|
|
3612
3654
|
}
|
|
@@ -3627,7 +3669,7 @@ let GeocodeService = /*#__PURE__*/function (_Service) {
|
|
|
3627
3669
|
let {
|
|
3628
3670
|
providerName
|
|
3629
3671
|
} = _ref3,
|
|
3630
|
-
query = _objectWithoutPropertiesLoose(_ref3,
|
|
3672
|
+
query = _objectWithoutPropertiesLoose(_ref3, _excluded3$2);
|
|
3631
3673
|
|
|
3632
3674
|
return this.http.get("/geocode/" + providerName + "/suggest", query).json();
|
|
3633
3675
|
}
|
|
@@ -3667,6 +3709,7 @@ let Geocode = /*#__PURE__*/function (_GeocodeService) {
|
|
|
3667
3709
|
return Geocode;
|
|
3668
3710
|
}(GeocodeService);
|
|
3669
3711
|
|
|
3712
|
+
const _excluded$4 = ["resourceType"];
|
|
3670
3713
|
/**
|
|
3671
3714
|
* @title Spatial Processing Core API
|
|
3672
3715
|
* @version v0.6.0
|
|
@@ -3686,7 +3729,7 @@ let ResourceCatalogService = /*#__PURE__*/function (_Service) {
|
|
|
3686
3729
|
|
|
3687
3730
|
_createClass(ResourceCatalogService, [{
|
|
3688
3731
|
key: "getProjects",
|
|
3689
|
-
|
|
3732
|
+
value:
|
|
3690
3733
|
/**
|
|
3691
3734
|
* No description
|
|
3692
3735
|
*
|
|
@@ -3697,7 +3740,7 @@ let ResourceCatalogService = /*#__PURE__*/function (_Service) {
|
|
|
3697
3740
|
* @request GET:/resources/projects
|
|
3698
3741
|
* @response `200` Success
|
|
3699
3742
|
*/
|
|
3700
|
-
|
|
3743
|
+
function getProjects(query) {
|
|
3701
3744
|
return this.http.get("/resources/projects", query).json();
|
|
3702
3745
|
}
|
|
3703
3746
|
/**
|
|
@@ -3877,7 +3920,7 @@ let ResourceCatalogService = /*#__PURE__*/function (_Service) {
|
|
|
3877
3920
|
let {
|
|
3878
3921
|
resourceType
|
|
3879
3922
|
} = _ref,
|
|
3880
|
-
query = _objectWithoutPropertiesLoose(_ref,
|
|
3923
|
+
query = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
3881
3924
|
|
|
3882
3925
|
return this.http.delete("/resources/" + resourceType, null, query).then(() => {});
|
|
3883
3926
|
}
|
|
@@ -3929,9 +3972,11 @@ let ResourceCatalog = /*#__PURE__*/function (_ResourceCatalogServi) {
|
|
|
3929
3972
|
return _super.apply(this, arguments);
|
|
3930
3973
|
}
|
|
3931
3974
|
|
|
3932
|
-
return ResourceCatalog;
|
|
3975
|
+
return _createClass(ResourceCatalog);
|
|
3933
3976
|
}(ResourceCatalogService);
|
|
3934
3977
|
|
|
3978
|
+
const _excluded$5 = ["name"],
|
|
3979
|
+
_excluded2$3 = ["name"];
|
|
3935
3980
|
/**
|
|
3936
3981
|
* @title Spatial Processing Core API
|
|
3937
3982
|
* @version v0.6.0
|
|
@@ -3951,7 +3996,7 @@ let ToolsService = /*#__PURE__*/function (_Service) {
|
|
|
3951
3996
|
|
|
3952
3997
|
_createClass(ToolsService, [{
|
|
3953
3998
|
key: "getTools",
|
|
3954
|
-
|
|
3999
|
+
value:
|
|
3955
4000
|
/**
|
|
3956
4001
|
* No description
|
|
3957
4002
|
*
|
|
@@ -3962,7 +4007,7 @@ let ToolsService = /*#__PURE__*/function (_Service) {
|
|
|
3962
4007
|
* @request GET:/tools
|
|
3963
4008
|
* @response `200` Success
|
|
3964
4009
|
*/
|
|
3965
|
-
|
|
4010
|
+
function getTools(query) {
|
|
3966
4011
|
return this.http.get("/tools", query).json();
|
|
3967
4012
|
}
|
|
3968
4013
|
/**
|
|
@@ -4320,7 +4365,7 @@ let ToolsService = /*#__PURE__*/function (_Service) {
|
|
|
4320
4365
|
let {
|
|
4321
4366
|
name
|
|
4322
4367
|
} = _ref,
|
|
4323
|
-
query = _objectWithoutPropertiesLoose(_ref,
|
|
4368
|
+
query = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
4324
4369
|
|
|
4325
4370
|
return this.http.post("/tools/" + name + "/evaluate", data, query).json();
|
|
4326
4371
|
}
|
|
@@ -4342,7 +4387,7 @@ let ToolsService = /*#__PURE__*/function (_Service) {
|
|
|
4342
4387
|
let {
|
|
4343
4388
|
name
|
|
4344
4389
|
} = _ref2,
|
|
4345
|
-
query = _objectWithoutPropertiesLoose(_ref2,
|
|
4390
|
+
query = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
|
|
4346
4391
|
|
|
4347
4392
|
return this.http.post("/tools/" + name + "/run", data, query).json();
|
|
4348
4393
|
}
|
|
@@ -4426,7 +4471,7 @@ let Tools = /*#__PURE__*/function (_ToolsService) {
|
|
|
4426
4471
|
return _super.apply(this, arguments);
|
|
4427
4472
|
}
|
|
4428
4473
|
|
|
4429
|
-
return Tools;
|
|
4474
|
+
return _createClass(Tools);
|
|
4430
4475
|
}(ToolsService);
|
|
4431
4476
|
|
|
4432
4477
|
/**
|
|
@@ -4448,7 +4493,7 @@ let GeneralService = /*#__PURE__*/function (_Service) {
|
|
|
4448
4493
|
|
|
4449
4494
|
_createClass(GeneralService, [{
|
|
4450
4495
|
key: "getServerInfo",
|
|
4451
|
-
|
|
4496
|
+
value:
|
|
4452
4497
|
/**
|
|
4453
4498
|
* No description
|
|
4454
4499
|
*
|
|
@@ -4459,7 +4504,7 @@ let GeneralService = /*#__PURE__*/function (_Service) {
|
|
|
4459
4504
|
* @request GET:/
|
|
4460
4505
|
* @response `200` Success
|
|
4461
4506
|
*/
|
|
4462
|
-
|
|
4507
|
+
function getServerInfo() {
|
|
4463
4508
|
return this.http.get("/").json();
|
|
4464
4509
|
}
|
|
4465
4510
|
/**
|
|
@@ -4510,7 +4555,7 @@ let General = /*#__PURE__*/function (_GeneralService) {
|
|
|
4510
4555
|
return _super.apply(this, arguments);
|
|
4511
4556
|
}
|
|
4512
4557
|
|
|
4513
|
-
return General;
|
|
4558
|
+
return _createClass(General);
|
|
4514
4559
|
}(GeneralService);
|
|
4515
4560
|
|
|
4516
4561
|
/**
|
|
@@ -4532,7 +4577,7 @@ let NamespaceService = /*#__PURE__*/function (_Service) {
|
|
|
4532
4577
|
|
|
4533
4578
|
_createClass(NamespaceService, [{
|
|
4534
4579
|
key: "getNamespaces",
|
|
4535
|
-
|
|
4580
|
+
value:
|
|
4536
4581
|
/**
|
|
4537
4582
|
* No description
|
|
4538
4583
|
*
|
|
@@ -4543,7 +4588,7 @@ let NamespaceService = /*#__PURE__*/function (_Service) {
|
|
|
4543
4588
|
* @request GET:/namespaces
|
|
4544
4589
|
* @response `200` Success
|
|
4545
4590
|
*/
|
|
4546
|
-
|
|
4591
|
+
function getNamespaces(query) {
|
|
4547
4592
|
return this.http.get("/namespaces", query).json();
|
|
4548
4593
|
}
|
|
4549
4594
|
/**
|
|
@@ -4610,7 +4655,7 @@ let Namespace = /*#__PURE__*/function (_NamespaceService) {
|
|
|
4610
4655
|
return _super.apply(this, arguments);
|
|
4611
4656
|
}
|
|
4612
4657
|
|
|
4613
|
-
return Namespace;
|
|
4658
|
+
return _createClass(Namespace);
|
|
4614
4659
|
}(NamespaceService);
|
|
4615
4660
|
|
|
4616
4661
|
/**
|
|
@@ -4632,7 +4677,7 @@ let AccountService = /*#__PURE__*/function (_Service) {
|
|
|
4632
4677
|
|
|
4633
4678
|
_createClass(AccountService, [{
|
|
4634
4679
|
key: "getUsers",
|
|
4635
|
-
|
|
4680
|
+
value:
|
|
4636
4681
|
/**
|
|
4637
4682
|
* No description
|
|
4638
4683
|
*
|
|
@@ -4643,7 +4688,7 @@ let AccountService = /*#__PURE__*/function (_Service) {
|
|
|
4643
4688
|
* @request GET:/account/user/list
|
|
4644
4689
|
* @response `200` Success
|
|
4645
4690
|
*/
|
|
4646
|
-
|
|
4691
|
+
function getUsers(query) {
|
|
4647
4692
|
return this.http.get("/account/user/list", query).json();
|
|
4648
4693
|
}
|
|
4649
4694
|
/**
|
|
@@ -5214,6 +5259,13 @@ let Account = /*#__PURE__*/function (_AccountService) {
|
|
|
5214
5259
|
this.userInfo = await this.getUserInfo('');
|
|
5215
5260
|
return this.userInfo;
|
|
5216
5261
|
}
|
|
5262
|
+
}, {
|
|
5263
|
+
key: "username",
|
|
5264
|
+
get: function get() {
|
|
5265
|
+
var _this$userInfo;
|
|
5266
|
+
|
|
5267
|
+
return ((_this$userInfo = this.userInfo) == null ? void 0 : _this$userInfo.username) || '';
|
|
5268
|
+
}
|
|
5217
5269
|
}, {
|
|
5218
5270
|
key: "logout",
|
|
5219
5271
|
value: async function logout() {
|
|
@@ -5237,19 +5289,12 @@ let Account = /*#__PURE__*/function (_AccountService) {
|
|
|
5237
5289
|
password
|
|
5238
5290
|
});
|
|
5239
5291
|
}
|
|
5240
|
-
}, {
|
|
5241
|
-
key: "username",
|
|
5242
|
-
get: function get() {
|
|
5243
|
-
var _this$userInfo;
|
|
5244
|
-
|
|
5245
|
-
return ((_this$userInfo = this.userInfo) == null ? void 0 : _this$userInfo.username) || '';
|
|
5246
|
-
}
|
|
5247
5292
|
}, {
|
|
5248
5293
|
key: "isAuth",
|
|
5249
5294
|
get: function get() {
|
|
5250
5295
|
var _this$userInfo2;
|
|
5251
5296
|
|
|
5252
|
-
return !!((_this$userInfo2 = this.userInfo)
|
|
5297
|
+
return !!((_this$userInfo2 = this.userInfo) != null && _this$userInfo2.username) && this.userInfo.username !== 'public';
|
|
5253
5298
|
}
|
|
5254
5299
|
}, {
|
|
5255
5300
|
key: "user",
|
|
@@ -5290,7 +5335,7 @@ let AccountPreviewService = /*#__PURE__*/function (_Service) {
|
|
|
5290
5335
|
|
|
5291
5336
|
_createClass(AccountPreviewService, [{
|
|
5292
5337
|
key: "getPreview",
|
|
5293
|
-
|
|
5338
|
+
value:
|
|
5294
5339
|
/**
|
|
5295
5340
|
* No description
|
|
5296
5341
|
*
|
|
@@ -5301,7 +5346,7 @@ let AccountPreviewService = /*#__PURE__*/function (_Service) {
|
|
|
5301
5346
|
* @request GET:/account/user/{username}/preview
|
|
5302
5347
|
* @response `200` Success
|
|
5303
5348
|
*/
|
|
5304
|
-
|
|
5349
|
+
function getPreview(username) {
|
|
5305
5350
|
return this.http.createUrl("/account/user/" + username + "/preview");
|
|
5306
5351
|
}
|
|
5307
5352
|
/**
|
|
@@ -5373,6 +5418,28 @@ let AccountPreview = /*#__PURE__*/function (_AccountPreviewServic) {
|
|
|
5373
5418
|
}
|
|
5374
5419
|
|
|
5375
5420
|
_createClass(AccountPreview, [{
|
|
5421
|
+
key: "user",
|
|
5422
|
+
get: function get() {
|
|
5423
|
+
if (this.userInfo) {
|
|
5424
|
+
return this.userInfo;
|
|
5425
|
+
}
|
|
5426
|
+
|
|
5427
|
+
const userInfo = getUserInfo();
|
|
5428
|
+
|
|
5429
|
+
if (userInfo) {
|
|
5430
|
+
this.userInfo = userInfo;
|
|
5431
|
+
}
|
|
5432
|
+
|
|
5433
|
+
return userInfo;
|
|
5434
|
+
}
|
|
5435
|
+
}, {
|
|
5436
|
+
key: "username",
|
|
5437
|
+
get: function get() {
|
|
5438
|
+
var _this$userInfo;
|
|
5439
|
+
|
|
5440
|
+
return ((_this$userInfo = this.userInfo) == null ? void 0 : _this$userInfo.username) || '';
|
|
5441
|
+
}
|
|
5442
|
+
}, {
|
|
5376
5443
|
key: "updateCurrentUserPhoto",
|
|
5377
5444
|
value: async function updateCurrentUserPhoto(file) {
|
|
5378
5445
|
const {
|
|
@@ -5403,28 +5470,6 @@ let AccountPreview = /*#__PURE__*/function (_AccountPreviewServic) {
|
|
|
5403
5470
|
has_profile_photo: false
|
|
5404
5471
|
});
|
|
5405
5472
|
}
|
|
5406
|
-
}, {
|
|
5407
|
-
key: "user",
|
|
5408
|
-
get: function get() {
|
|
5409
|
-
if (this.userInfo) {
|
|
5410
|
-
return this.userInfo;
|
|
5411
|
-
}
|
|
5412
|
-
|
|
5413
|
-
const userInfo = getUserInfo();
|
|
5414
|
-
|
|
5415
|
-
if (userInfo) {
|
|
5416
|
-
this.userInfo = userInfo;
|
|
5417
|
-
}
|
|
5418
|
-
|
|
5419
|
-
return userInfo;
|
|
5420
|
-
}
|
|
5421
|
-
}, {
|
|
5422
|
-
key: "username",
|
|
5423
|
-
get: function get() {
|
|
5424
|
-
var _this$userInfo;
|
|
5425
|
-
|
|
5426
|
-
return ((_this$userInfo = this.userInfo) == null ? void 0 : _this$userInfo.username) || '';
|
|
5427
|
-
}
|
|
5428
5473
|
}]);
|
|
5429
5474
|
|
|
5430
5475
|
return AccountPreview;
|
|
@@ -5449,7 +5494,7 @@ let ExternalProvidersService = /*#__PURE__*/function (_Service) {
|
|
|
5449
5494
|
|
|
5450
5495
|
_createClass(ExternalProvidersService, [{
|
|
5451
5496
|
key: "vkLogin",
|
|
5452
|
-
|
|
5497
|
+
value:
|
|
5453
5498
|
/**
|
|
5454
5499
|
* No description
|
|
5455
5500
|
*
|
|
@@ -5460,7 +5505,7 @@ let ExternalProvidersService = /*#__PURE__*/function (_Service) {
|
|
|
5460
5505
|
* @request GET:/account/external/login/vk
|
|
5461
5506
|
* @response `200` Success
|
|
5462
5507
|
*/
|
|
5463
|
-
|
|
5508
|
+
function vkLogin() {
|
|
5464
5509
|
return this.http.createUrl("/account/external/login/vk");
|
|
5465
5510
|
}
|
|
5466
5511
|
/**
|
|
@@ -5695,6 +5740,7 @@ let External = /*#__PURE__*/function (_ExternalProvidersSer) {
|
|
|
5695
5740
|
return External;
|
|
5696
5741
|
}(ExternalProvidersService);
|
|
5697
5742
|
|
|
5743
|
+
const _excluded$6 = ["idVariable"];
|
|
5698
5744
|
/**
|
|
5699
5745
|
* @title Spatial Processing Core API
|
|
5700
5746
|
* @version v0.6.0
|
|
@@ -5714,7 +5760,7 @@ let ClientSettingsService = /*#__PURE__*/function (_Service) {
|
|
|
5714
5760
|
|
|
5715
5761
|
_createClass(ClientSettingsService, [{
|
|
5716
5762
|
key: "getConfiguration",
|
|
5717
|
-
|
|
5763
|
+
value:
|
|
5718
5764
|
/**
|
|
5719
5765
|
* No description
|
|
5720
5766
|
*
|
|
@@ -5725,7 +5771,7 @@ let ClientSettingsService = /*#__PURE__*/function (_Service) {
|
|
|
5725
5771
|
* @request GET:/settings
|
|
5726
5772
|
* @response `200` Success
|
|
5727
5773
|
*/
|
|
5728
|
-
|
|
5774
|
+
function getConfiguration(query) {
|
|
5729
5775
|
return this.http.get("/settings", query).text();
|
|
5730
5776
|
}
|
|
5731
5777
|
/**
|
|
@@ -5889,7 +5935,7 @@ let ClientSettingsService = /*#__PURE__*/function (_Service) {
|
|
|
5889
5935
|
let {
|
|
5890
5936
|
idVariable
|
|
5891
5937
|
} = _ref,
|
|
5892
|
-
query = _objectWithoutPropertiesLoose(_ref,
|
|
5938
|
+
query = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
5893
5939
|
|
|
5894
5940
|
return this.http.get("/settings/variable/" + idVariable + "/value", query).json();
|
|
5895
5941
|
}
|
|
@@ -6063,6 +6109,41 @@ let ClientSettings = /*#__PURE__*/function (_ClientSettingsServic) {
|
|
|
6063
6109
|
return ClientSettings;
|
|
6064
6110
|
}(ClientSettingsService);
|
|
6065
6111
|
|
|
6112
|
+
let PortalSettings = /*#__PURE__*/function (_ClientSettingsServic) {
|
|
6113
|
+
_inherits(PortalSettings, _ClientSettingsServic);
|
|
6114
|
+
|
|
6115
|
+
var _super = /*#__PURE__*/_createSuper(PortalSettings);
|
|
6116
|
+
|
|
6117
|
+
function PortalSettings() {
|
|
6118
|
+
var _this;
|
|
6119
|
+
|
|
6120
|
+
_classCallCheck(this, PortalSettings);
|
|
6121
|
+
|
|
6122
|
+
_this = _super.apply(this, arguments);
|
|
6123
|
+
_this.config = null;
|
|
6124
|
+
return _this;
|
|
6125
|
+
}
|
|
6126
|
+
|
|
6127
|
+
_createClass(PortalSettings, [{
|
|
6128
|
+
key: "fetchPortalSettings",
|
|
6129
|
+
value: async function fetchPortalSettings(query) {
|
|
6130
|
+
var _config$settings, _config$settings2, _config$settings3;
|
|
6131
|
+
|
|
6132
|
+
const config = JSON.parse(await this.getConfiguration(query));
|
|
6133
|
+
this.config = _extends({}, config || {}, {
|
|
6134
|
+
settings: {
|
|
6135
|
+
withPortal: (config == null ? void 0 : (_config$settings = config.settings) == null ? void 0 : _config$settings.withPortal) === undefined || config.settings.withPortal,
|
|
6136
|
+
allowRegistration: (config == null ? void 0 : (_config$settings2 = config.settings) == null ? void 0 : _config$settings2.allowRegistration) === undefined || config.settings.allowRegistration,
|
|
6137
|
+
allowSNS: (config == null ? void 0 : (_config$settings3 = config.settings) == null ? void 0 : _config$settings3.allowSNS) === undefined || config.settings.allowSNS
|
|
6138
|
+
}
|
|
6139
|
+
});
|
|
6140
|
+
return this.config;
|
|
6141
|
+
}
|
|
6142
|
+
}]);
|
|
6143
|
+
|
|
6144
|
+
return PortalSettings;
|
|
6145
|
+
}(ClientSettingsService);
|
|
6146
|
+
|
|
6066
6147
|
var ErrorReason;
|
|
6067
6148
|
|
|
6068
6149
|
(function (ErrorReason) {
|
|
@@ -6257,7 +6338,7 @@ let IceRouterService = /*#__PURE__*/function (_Service) {
|
|
|
6257
6338
|
|
|
6258
6339
|
_createClass(IceRouterService, [{
|
|
6259
6340
|
key: "startTask",
|
|
6260
|
-
|
|
6341
|
+
value:
|
|
6261
6342
|
/**
|
|
6262
6343
|
* No description
|
|
6263
6344
|
*
|
|
@@ -6268,7 +6349,7 @@ let IceRouterService = /*#__PURE__*/function (_Service) {
|
|
|
6268
6349
|
* @request POST:/ice-router/tasks
|
|
6269
6350
|
* @response `200` Success
|
|
6270
6351
|
*/
|
|
6271
|
-
|
|
6352
|
+
function startTask(data) {
|
|
6272
6353
|
return this.http.post("/ice-router/tasks", data).text();
|
|
6273
6354
|
}
|
|
6274
6355
|
/**
|
|
@@ -6303,7 +6384,7 @@ let IceRouter = /*#__PURE__*/function (_IceRouterService) {
|
|
|
6303
6384
|
return _super.apply(this, arguments);
|
|
6304
6385
|
}
|
|
6305
6386
|
|
|
6306
|
-
return IceRouter;
|
|
6387
|
+
return _createClass(IceRouter);
|
|
6307
6388
|
}(IceRouterService);
|
|
6308
6389
|
|
|
6309
6390
|
/**
|
|
@@ -6325,7 +6406,7 @@ let PrintService = /*#__PURE__*/function (_Service) {
|
|
|
6325
6406
|
|
|
6326
6407
|
_createClass(PrintService, [{
|
|
6327
6408
|
key: "print",
|
|
6328
|
-
|
|
6409
|
+
value:
|
|
6329
6410
|
/**
|
|
6330
6411
|
* No description
|
|
6331
6412
|
*
|
|
@@ -6336,7 +6417,7 @@ let PrintService = /*#__PURE__*/function (_Service) {
|
|
|
6336
6417
|
* @request POST:/print/print
|
|
6337
6418
|
* @response `200` Success
|
|
6338
6419
|
*/
|
|
6339
|
-
|
|
6420
|
+
function print(data) {
|
|
6340
6421
|
return this.http.post("/print/print", data).blob();
|
|
6341
6422
|
}
|
|
6342
6423
|
/**
|
|
@@ -6435,7 +6516,7 @@ let Print = /*#__PURE__*/function (_PrintService) {
|
|
|
6435
6516
|
return _super.apply(this, arguments);
|
|
6436
6517
|
}
|
|
6437
6518
|
|
|
6438
|
-
return Print;
|
|
6519
|
+
return _createClass(Print);
|
|
6439
6520
|
}(PrintService);
|
|
6440
6521
|
|
|
6441
6522
|
var ApiEvent;
|
|
@@ -6451,6 +6532,7 @@ var UrlPath;
|
|
|
6451
6532
|
(function (UrlPath) {
|
|
6452
6533
|
UrlPath["Base"] = "/map";
|
|
6453
6534
|
UrlPath["Shared"] = "/shared";
|
|
6535
|
+
UrlPath["Portal"] = "/portal";
|
|
6454
6536
|
})(UrlPath || (UrlPath = {}));
|
|
6455
6537
|
|
|
6456
6538
|
const apiEventsByResponseStatus = {
|
|
@@ -6521,6 +6603,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
6521
6603
|
_this.namespace = new Namespace(_this.http);
|
|
6522
6604
|
_this.external = new External(_this.http);
|
|
6523
6605
|
_this.clientSettings = new ClientSettings(_this.http);
|
|
6606
|
+
_this.portalSettings = new PortalSettings(_this.http);
|
|
6524
6607
|
_this.iceRouter = new IceRouter(_this.http);
|
|
6525
6608
|
_this.names = new Names({
|
|
6526
6609
|
account: _this.account
|
|
@@ -6692,6 +6775,27 @@ let EvergisDynamicLayer = /*#__PURE__*/function (_DynamicLayer) {
|
|
|
6692
6775
|
|
|
6693
6776
|
|
|
6694
6777
|
_createClass(EvergisDynamicLayer, [{
|
|
6778
|
+
key: "style",
|
|
6779
|
+
get: // @ts-ignore TODO
|
|
6780
|
+
function get() {
|
|
6781
|
+
return this.styleId;
|
|
6782
|
+
} // @ts-ignore TODO
|
|
6783
|
+
,
|
|
6784
|
+
set: function set(styleId) {
|
|
6785
|
+
this.styleId = styleId;
|
|
6786
|
+
this.forceUpdate();
|
|
6787
|
+
}
|
|
6788
|
+
}, {
|
|
6789
|
+
key: "condition",
|
|
6790
|
+
get: // @ts-ignore TODO
|
|
6791
|
+
function get() {
|
|
6792
|
+
return this.conditionQuery;
|
|
6793
|
+
},
|
|
6794
|
+
set: function set(condition) {
|
|
6795
|
+
this.conditionQuery = condition;
|
|
6796
|
+
this.forceUpdate();
|
|
6797
|
+
}
|
|
6798
|
+
}, {
|
|
6695
6799
|
key: "getUrl",
|
|
6696
6800
|
value: function getUrl(bbox, resolution) {
|
|
6697
6801
|
let imgWidth = Math.round((bbox.xMax - bbox.xMin) / resolution);
|
|
@@ -6716,27 +6820,6 @@ let EvergisDynamicLayer = /*#__PURE__*/function (_DynamicLayer) {
|
|
|
6716
6820
|
});
|
|
6717
6821
|
});
|
|
6718
6822
|
}
|
|
6719
|
-
}, {
|
|
6720
|
-
key: "style",
|
|
6721
|
-
set: function set(styleId) {
|
|
6722
|
-
this.styleId = styleId;
|
|
6723
|
-
this.forceUpdate();
|
|
6724
|
-
} // @ts-ignore TODO
|
|
6725
|
-
,
|
|
6726
|
-
get: function get() {
|
|
6727
|
-
return this.styleId;
|
|
6728
|
-
} // @ts-ignore TODO
|
|
6729
|
-
|
|
6730
|
-
}, {
|
|
6731
|
-
key: "condition",
|
|
6732
|
-
set: function set(condition) {
|
|
6733
|
-
this.conditionQuery = condition;
|
|
6734
|
-
this.forceUpdate();
|
|
6735
|
-
} // @ts-ignore TODO
|
|
6736
|
-
,
|
|
6737
|
-
get: function get() {
|
|
6738
|
-
return this.conditionQuery;
|
|
6739
|
-
}
|
|
6740
6823
|
}]);
|
|
6741
6824
|
|
|
6742
6825
|
return EvergisDynamicLayer;
|
|
@@ -7785,5 +7868,5 @@ var ToolStorageType;
|
|
|
7785
7868
|
ToolStorageType["LayersStorage"] = "layersStorage";
|
|
7786
7869
|
})(ToolStorageType || (ToolStorageType = {}));
|
|
7787
7870
|
|
|
7788
|
-
export { API_USER_INFO_KEY, Account, AccountPreview, AggregationFunction, Api, ApiEvent, ArgumentType, AttributeType, BulkOperations, ClassificationType, ClientSettings, CombineType, ConfigurationErrorEnum, ConnectionStatus, DependencyType, ElementType, ErrorDetailsType, ErrorReason, ErrorType, EvergisDynamicLayer, EvergisTileLayer, External, FeatureType, FileUpload, FontStyle, FontWeight, GEOCODE_PROVIDER, General, Geocode, GeometryType, HttpClient, HttpStatusCode, IceRouter, Import, Layers, LayersManager, LineEndingSize, LineEndingType, Names, Namespace, Notification, NotificationEvent, Operation, Permissions, PolicyType, Projects, ResourceCatalog, ResourceSeparator, ResourceType, ResourceTypeLink, Resources, Scheduler, Security, ServerTaskStatus, SpatialProcessor, StringSubType, Styles, Tables, TextAlignment, TextVerticalAlignment, ToolStatus, ToolStorageType, Tools, UrlPath, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, isEvergisDynamicLayer, isEvergisTileLayer, isFeatureLayer, isHTTPError, isHandledError, isLayer, isProjectContentItems, isString, isTileLayerService, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique };
|
|
7871
|
+
export { API_USER_INFO_KEY, Account, AccountPreview, AggregationFunction, Api, ApiEvent, ArgumentType, AttributeType, BulkOperations, ClassificationType, ClientSettings, CombineType, ConfigurationErrorEnum, ConnectionStatus, DependencyType, ElementType, ErrorDetailsType, ErrorReason, ErrorType, EvergisDynamicLayer, EvergisTileLayer, External, FeatureType, FileUpload, FontStyle, FontWeight, GEOCODE_PROVIDER, General, Geocode, GeometryType, HttpClient, HttpStatusCode, IceRouter, Import, Layers, LayersManager, LineEndingSize, LineEndingType, Names, Namespace, Notification, NotificationEvent, Operation, Permissions, PolicyType, PortalSettings, Projects, ResourceCatalog, ResourceSeparator, ResourceType, ResourceTypeLink, Resources, Scheduler, Security, ServerTaskStatus, SpatialProcessor, StringSubType, Styles, Tables, TextAlignment, TextVerticalAlignment, ToolStatus, ToolStorageType, Tools, UrlPath, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, isEvergisDynamicLayer, isEvergisTileLayer, isFeatureLayer, isHTTPError, isHandledError, isLayer, isProjectContentItems, isString, isTileLayerService, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique };
|
|
7789
7872
|
//# sourceMappingURL=api.esm.js.map
|