@evergis/api 3.0.53 → 3.0.57
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__/ProjectsService.d.ts +2 -2
- package/dist/__generated__/SecurityService.d.ts +1 -1
- package/dist/__generated__/StaticContentService.d.ts +12 -1
- package/dist/__generated__/TablesService.d.ts +13 -2
- package/dist/__generated__/WmsServerService.d.ts +20 -0
- package/dist/__generated__/data-contracts.d.ts +92 -3
- package/dist/api.cjs.development.js +258 -153
- 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 +258 -154
- 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
|
/**
|
|
@@ -352,7 +352,7 @@ let SecurityService = /*#__PURE__*/function (_Service) {
|
|
|
352
352
|
* @tags SecurityService
|
|
353
353
|
* @name FindUserByName
|
|
354
354
|
* @operationId SecurityServiceController_FindUserByName
|
|
355
|
-
* @summary Returns the list of users found by username
|
|
355
|
+
* @summary Returns the list of users found by username.
|
|
356
356
|
* @request GET:/security/users
|
|
357
357
|
* @response `200` Success
|
|
358
358
|
*/
|
|
@@ -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
|
/**
|
|
@@ -2601,6 +2640,27 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
2601
2640
|
value: function getTableInfo(name) {
|
|
2602
2641
|
return this.http.get("/tables/" + name).json();
|
|
2603
2642
|
}
|
|
2643
|
+
/**
|
|
2644
|
+
* No description
|
|
2645
|
+
*
|
|
2646
|
+
* @tags Tables
|
|
2647
|
+
* @name GetTableData
|
|
2648
|
+
* @operationId TablesController_GetTableData
|
|
2649
|
+
* @summary Retrieves the data from the table.
|
|
2650
|
+
* @request GET:/tables/{name}/data
|
|
2651
|
+
* @response `200` Success
|
|
2652
|
+
*/
|
|
2653
|
+
|
|
2654
|
+
}, {
|
|
2655
|
+
key: "getTableData",
|
|
2656
|
+
value: function getTableData(_ref) {
|
|
2657
|
+
let {
|
|
2658
|
+
name
|
|
2659
|
+
} = _ref,
|
|
2660
|
+
query = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
2661
|
+
|
|
2662
|
+
return this.http.get("/tables/" + name + "/data", query).json();
|
|
2663
|
+
}
|
|
2604
2664
|
/**
|
|
2605
2665
|
* No description
|
|
2606
2666
|
*
|
|
@@ -2614,11 +2674,11 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
2614
2674
|
|
|
2615
2675
|
}, {
|
|
2616
2676
|
key: "updateTableData",
|
|
2617
|
-
value: function updateTableData(
|
|
2677
|
+
value: function updateTableData(_ref2, data) {
|
|
2618
2678
|
let {
|
|
2619
2679
|
name
|
|
2620
|
-
} =
|
|
2621
|
-
query = _objectWithoutPropertiesLoose(
|
|
2680
|
+
} = _ref2,
|
|
2681
|
+
query = _objectWithoutPropertiesLoose(_ref2, _excluded2$1);
|
|
2622
2682
|
|
|
2623
2683
|
return this.http.patch("/tables/" + name + "/data", data, query).then(() => {});
|
|
2624
2684
|
}
|
|
@@ -2635,11 +2695,11 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
2635
2695
|
|
|
2636
2696
|
}, {
|
|
2637
2697
|
key: "deleteTableData",
|
|
2638
|
-
value: function deleteTableData(
|
|
2698
|
+
value: function deleteTableData(_ref3) {
|
|
2639
2699
|
let {
|
|
2640
2700
|
name
|
|
2641
|
-
} =
|
|
2642
|
-
query = _objectWithoutPropertiesLoose(
|
|
2701
|
+
} = _ref3,
|
|
2702
|
+
query = _objectWithoutPropertiesLoose(_ref3, _excluded3$1);
|
|
2643
2703
|
|
|
2644
2704
|
return this.http.delete("/tables/" + name + "/data", null, query).then(() => {});
|
|
2645
2705
|
}
|
|
@@ -2656,11 +2716,11 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
2656
2716
|
|
|
2657
2717
|
}, {
|
|
2658
2718
|
key: "getUniqueDataRows",
|
|
2659
|
-
value: function getUniqueDataRows(
|
|
2719
|
+
value: function getUniqueDataRows(_ref4) {
|
|
2660
2720
|
let {
|
|
2661
2721
|
name
|
|
2662
|
-
} =
|
|
2663
|
-
query = _objectWithoutPropertiesLoose(
|
|
2722
|
+
} = _ref4,
|
|
2723
|
+
query = _objectWithoutPropertiesLoose(_ref4, _excluded4$1);
|
|
2664
2724
|
|
|
2665
2725
|
return this.http.get("/tables/" + name + "/data/unique-values", query).json();
|
|
2666
2726
|
}
|
|
@@ -2956,7 +3016,7 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
|
|
|
2956
3016
|
|
|
2957
3017
|
_createClass(ProjectsService, [{
|
|
2958
3018
|
key: "getProjectLayersExtendedInfo",
|
|
2959
|
-
|
|
3019
|
+
value:
|
|
2960
3020
|
/**
|
|
2961
3021
|
* No description
|
|
2962
3022
|
*
|
|
@@ -2967,7 +3027,7 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
|
|
|
2967
3027
|
* @request GET:/projects/{name}/extended-info
|
|
2968
3028
|
* @response `200` Success
|
|
2969
3029
|
*/
|
|
2970
|
-
|
|
3030
|
+
function getProjectLayersExtendedInfo(name) {
|
|
2971
3031
|
return this.http.get("/projects/" + name + "/extended-info").json();
|
|
2972
3032
|
}
|
|
2973
3033
|
/**
|
|
@@ -3449,7 +3509,7 @@ let StyleService = /*#__PURE__*/function (_Service) {
|
|
|
3449
3509
|
|
|
3450
3510
|
_createClass(StyleService, [{
|
|
3451
3511
|
key: "getStyle",
|
|
3452
|
-
|
|
3512
|
+
value:
|
|
3453
3513
|
/**
|
|
3454
3514
|
* No description
|
|
3455
3515
|
*
|
|
@@ -3460,7 +3520,7 @@ let StyleService = /*#__PURE__*/function (_Service) {
|
|
|
3460
3520
|
* @request GET:/styles/{id}
|
|
3461
3521
|
* @response `200` Success
|
|
3462
3522
|
*/
|
|
3463
|
-
|
|
3523
|
+
function getStyle(id) {
|
|
3464
3524
|
return this.http.get("/styles/" + id).json();
|
|
3465
3525
|
}
|
|
3466
3526
|
/**
|
|
@@ -3527,9 +3587,12 @@ let Styles = /*#__PURE__*/function (_StyleService) {
|
|
|
3527
3587
|
return _super.apply(this, arguments);
|
|
3528
3588
|
}
|
|
3529
3589
|
|
|
3530
|
-
return Styles;
|
|
3590
|
+
return _createClass(Styles);
|
|
3531
3591
|
}(StyleService);
|
|
3532
3592
|
|
|
3593
|
+
const _excluded$3 = ["providerName"],
|
|
3594
|
+
_excluded2$2 = ["providerName"],
|
|
3595
|
+
_excluded3$2 = ["providerName"];
|
|
3533
3596
|
/**
|
|
3534
3597
|
* @title Spatial Processing Core API
|
|
3535
3598
|
* @version v0.6.0
|
|
@@ -3549,7 +3612,7 @@ let GeocodeService = /*#__PURE__*/function (_Service) {
|
|
|
3549
3612
|
|
|
3550
3613
|
_createClass(GeocodeService, [{
|
|
3551
3614
|
key: "geocode",
|
|
3552
|
-
|
|
3615
|
+
value:
|
|
3553
3616
|
/**
|
|
3554
3617
|
* No description
|
|
3555
3618
|
*
|
|
@@ -3560,11 +3623,11 @@ let GeocodeService = /*#__PURE__*/function (_Service) {
|
|
|
3560
3623
|
* @request GET:/geocode/{providerName}
|
|
3561
3624
|
* @response `200` Success
|
|
3562
3625
|
*/
|
|
3563
|
-
|
|
3626
|
+
function geocode(_ref) {
|
|
3564
3627
|
let {
|
|
3565
3628
|
providerName
|
|
3566
3629
|
} = _ref,
|
|
3567
|
-
query = _objectWithoutPropertiesLoose(_ref,
|
|
3630
|
+
query = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
3568
3631
|
|
|
3569
3632
|
return this.http.get("/geocode/" + providerName, query).json();
|
|
3570
3633
|
}
|
|
@@ -3585,7 +3648,7 @@ let GeocodeService = /*#__PURE__*/function (_Service) {
|
|
|
3585
3648
|
let {
|
|
3586
3649
|
providerName
|
|
3587
3650
|
} = _ref2,
|
|
3588
|
-
query = _objectWithoutPropertiesLoose(_ref2,
|
|
3651
|
+
query = _objectWithoutPropertiesLoose(_ref2, _excluded2$2);
|
|
3589
3652
|
|
|
3590
3653
|
return this.http.get("/geocode/" + providerName + "/geocodeByPoint", query).json();
|
|
3591
3654
|
}
|
|
@@ -3606,7 +3669,7 @@ let GeocodeService = /*#__PURE__*/function (_Service) {
|
|
|
3606
3669
|
let {
|
|
3607
3670
|
providerName
|
|
3608
3671
|
} = _ref3,
|
|
3609
|
-
query = _objectWithoutPropertiesLoose(_ref3,
|
|
3672
|
+
query = _objectWithoutPropertiesLoose(_ref3, _excluded3$2);
|
|
3610
3673
|
|
|
3611
3674
|
return this.http.get("/geocode/" + providerName + "/suggest", query).json();
|
|
3612
3675
|
}
|
|
@@ -3646,6 +3709,7 @@ let Geocode = /*#__PURE__*/function (_GeocodeService) {
|
|
|
3646
3709
|
return Geocode;
|
|
3647
3710
|
}(GeocodeService);
|
|
3648
3711
|
|
|
3712
|
+
const _excluded$4 = ["resourceType"];
|
|
3649
3713
|
/**
|
|
3650
3714
|
* @title Spatial Processing Core API
|
|
3651
3715
|
* @version v0.6.0
|
|
@@ -3665,7 +3729,7 @@ let ResourceCatalogService = /*#__PURE__*/function (_Service) {
|
|
|
3665
3729
|
|
|
3666
3730
|
_createClass(ResourceCatalogService, [{
|
|
3667
3731
|
key: "getProjects",
|
|
3668
|
-
|
|
3732
|
+
value:
|
|
3669
3733
|
/**
|
|
3670
3734
|
* No description
|
|
3671
3735
|
*
|
|
@@ -3676,7 +3740,7 @@ let ResourceCatalogService = /*#__PURE__*/function (_Service) {
|
|
|
3676
3740
|
* @request GET:/resources/projects
|
|
3677
3741
|
* @response `200` Success
|
|
3678
3742
|
*/
|
|
3679
|
-
|
|
3743
|
+
function getProjects(query) {
|
|
3680
3744
|
return this.http.get("/resources/projects", query).json();
|
|
3681
3745
|
}
|
|
3682
3746
|
/**
|
|
@@ -3856,7 +3920,7 @@ let ResourceCatalogService = /*#__PURE__*/function (_Service) {
|
|
|
3856
3920
|
let {
|
|
3857
3921
|
resourceType
|
|
3858
3922
|
} = _ref,
|
|
3859
|
-
query = _objectWithoutPropertiesLoose(_ref,
|
|
3923
|
+
query = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
3860
3924
|
|
|
3861
3925
|
return this.http.delete("/resources/" + resourceType, null, query).then(() => {});
|
|
3862
3926
|
}
|
|
@@ -3908,9 +3972,11 @@ let ResourceCatalog = /*#__PURE__*/function (_ResourceCatalogServi) {
|
|
|
3908
3972
|
return _super.apply(this, arguments);
|
|
3909
3973
|
}
|
|
3910
3974
|
|
|
3911
|
-
return ResourceCatalog;
|
|
3975
|
+
return _createClass(ResourceCatalog);
|
|
3912
3976
|
}(ResourceCatalogService);
|
|
3913
3977
|
|
|
3978
|
+
const _excluded$5 = ["name"],
|
|
3979
|
+
_excluded2$3 = ["name"];
|
|
3914
3980
|
/**
|
|
3915
3981
|
* @title Spatial Processing Core API
|
|
3916
3982
|
* @version v0.6.0
|
|
@@ -3930,7 +3996,7 @@ let ToolsService = /*#__PURE__*/function (_Service) {
|
|
|
3930
3996
|
|
|
3931
3997
|
_createClass(ToolsService, [{
|
|
3932
3998
|
key: "getTools",
|
|
3933
|
-
|
|
3999
|
+
value:
|
|
3934
4000
|
/**
|
|
3935
4001
|
* No description
|
|
3936
4002
|
*
|
|
@@ -3941,7 +4007,7 @@ let ToolsService = /*#__PURE__*/function (_Service) {
|
|
|
3941
4007
|
* @request GET:/tools
|
|
3942
4008
|
* @response `200` Success
|
|
3943
4009
|
*/
|
|
3944
|
-
|
|
4010
|
+
function getTools(query) {
|
|
3945
4011
|
return this.http.get("/tools", query).json();
|
|
3946
4012
|
}
|
|
3947
4013
|
/**
|
|
@@ -4299,7 +4365,7 @@ let ToolsService = /*#__PURE__*/function (_Service) {
|
|
|
4299
4365
|
let {
|
|
4300
4366
|
name
|
|
4301
4367
|
} = _ref,
|
|
4302
|
-
query = _objectWithoutPropertiesLoose(_ref,
|
|
4368
|
+
query = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
4303
4369
|
|
|
4304
4370
|
return this.http.post("/tools/" + name + "/evaluate", data, query).json();
|
|
4305
4371
|
}
|
|
@@ -4321,7 +4387,7 @@ let ToolsService = /*#__PURE__*/function (_Service) {
|
|
|
4321
4387
|
let {
|
|
4322
4388
|
name
|
|
4323
4389
|
} = _ref2,
|
|
4324
|
-
query = _objectWithoutPropertiesLoose(_ref2,
|
|
4390
|
+
query = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
|
|
4325
4391
|
|
|
4326
4392
|
return this.http.post("/tools/" + name + "/run", data, query).json();
|
|
4327
4393
|
}
|
|
@@ -4405,7 +4471,7 @@ let Tools = /*#__PURE__*/function (_ToolsService) {
|
|
|
4405
4471
|
return _super.apply(this, arguments);
|
|
4406
4472
|
}
|
|
4407
4473
|
|
|
4408
|
-
return Tools;
|
|
4474
|
+
return _createClass(Tools);
|
|
4409
4475
|
}(ToolsService);
|
|
4410
4476
|
|
|
4411
4477
|
/**
|
|
@@ -4427,7 +4493,7 @@ let GeneralService = /*#__PURE__*/function (_Service) {
|
|
|
4427
4493
|
|
|
4428
4494
|
_createClass(GeneralService, [{
|
|
4429
4495
|
key: "getServerInfo",
|
|
4430
|
-
|
|
4496
|
+
value:
|
|
4431
4497
|
/**
|
|
4432
4498
|
* No description
|
|
4433
4499
|
*
|
|
@@ -4438,7 +4504,7 @@ let GeneralService = /*#__PURE__*/function (_Service) {
|
|
|
4438
4504
|
* @request GET:/
|
|
4439
4505
|
* @response `200` Success
|
|
4440
4506
|
*/
|
|
4441
|
-
|
|
4507
|
+
function getServerInfo() {
|
|
4442
4508
|
return this.http.get("/").json();
|
|
4443
4509
|
}
|
|
4444
4510
|
/**
|
|
@@ -4489,7 +4555,7 @@ let General = /*#__PURE__*/function (_GeneralService) {
|
|
|
4489
4555
|
return _super.apply(this, arguments);
|
|
4490
4556
|
}
|
|
4491
4557
|
|
|
4492
|
-
return General;
|
|
4558
|
+
return _createClass(General);
|
|
4493
4559
|
}(GeneralService);
|
|
4494
4560
|
|
|
4495
4561
|
/**
|
|
@@ -4511,7 +4577,7 @@ let NamespaceService = /*#__PURE__*/function (_Service) {
|
|
|
4511
4577
|
|
|
4512
4578
|
_createClass(NamespaceService, [{
|
|
4513
4579
|
key: "getNamespaces",
|
|
4514
|
-
|
|
4580
|
+
value:
|
|
4515
4581
|
/**
|
|
4516
4582
|
* No description
|
|
4517
4583
|
*
|
|
@@ -4522,7 +4588,7 @@ let NamespaceService = /*#__PURE__*/function (_Service) {
|
|
|
4522
4588
|
* @request GET:/namespaces
|
|
4523
4589
|
* @response `200` Success
|
|
4524
4590
|
*/
|
|
4525
|
-
|
|
4591
|
+
function getNamespaces(query) {
|
|
4526
4592
|
return this.http.get("/namespaces", query).json();
|
|
4527
4593
|
}
|
|
4528
4594
|
/**
|
|
@@ -4589,7 +4655,7 @@ let Namespace = /*#__PURE__*/function (_NamespaceService) {
|
|
|
4589
4655
|
return _super.apply(this, arguments);
|
|
4590
4656
|
}
|
|
4591
4657
|
|
|
4592
|
-
return Namespace;
|
|
4658
|
+
return _createClass(Namespace);
|
|
4593
4659
|
}(NamespaceService);
|
|
4594
4660
|
|
|
4595
4661
|
/**
|
|
@@ -4611,7 +4677,7 @@ let AccountService = /*#__PURE__*/function (_Service) {
|
|
|
4611
4677
|
|
|
4612
4678
|
_createClass(AccountService, [{
|
|
4613
4679
|
key: "getUsers",
|
|
4614
|
-
|
|
4680
|
+
value:
|
|
4615
4681
|
/**
|
|
4616
4682
|
* No description
|
|
4617
4683
|
*
|
|
@@ -4622,7 +4688,7 @@ let AccountService = /*#__PURE__*/function (_Service) {
|
|
|
4622
4688
|
* @request GET:/account/user/list
|
|
4623
4689
|
* @response `200` Success
|
|
4624
4690
|
*/
|
|
4625
|
-
|
|
4691
|
+
function getUsers(query) {
|
|
4626
4692
|
return this.http.get("/account/user/list", query).json();
|
|
4627
4693
|
}
|
|
4628
4694
|
/**
|
|
@@ -5193,6 +5259,13 @@ let Account = /*#__PURE__*/function (_AccountService) {
|
|
|
5193
5259
|
this.userInfo = await this.getUserInfo('');
|
|
5194
5260
|
return this.userInfo;
|
|
5195
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
|
+
}
|
|
5196
5269
|
}, {
|
|
5197
5270
|
key: "logout",
|
|
5198
5271
|
value: async function logout() {
|
|
@@ -5216,19 +5289,12 @@ let Account = /*#__PURE__*/function (_AccountService) {
|
|
|
5216
5289
|
password
|
|
5217
5290
|
});
|
|
5218
5291
|
}
|
|
5219
|
-
}, {
|
|
5220
|
-
key: "username",
|
|
5221
|
-
get: function get() {
|
|
5222
|
-
var _this$userInfo;
|
|
5223
|
-
|
|
5224
|
-
return ((_this$userInfo = this.userInfo) == null ? void 0 : _this$userInfo.username) || '';
|
|
5225
|
-
}
|
|
5226
5292
|
}, {
|
|
5227
5293
|
key: "isAuth",
|
|
5228
5294
|
get: function get() {
|
|
5229
5295
|
var _this$userInfo2;
|
|
5230
5296
|
|
|
5231
|
-
return !!((_this$userInfo2 = this.userInfo)
|
|
5297
|
+
return !!((_this$userInfo2 = this.userInfo) != null && _this$userInfo2.username) && this.userInfo.username !== 'public';
|
|
5232
5298
|
}
|
|
5233
5299
|
}, {
|
|
5234
5300
|
key: "user",
|
|
@@ -5269,7 +5335,7 @@ let AccountPreviewService = /*#__PURE__*/function (_Service) {
|
|
|
5269
5335
|
|
|
5270
5336
|
_createClass(AccountPreviewService, [{
|
|
5271
5337
|
key: "getPreview",
|
|
5272
|
-
|
|
5338
|
+
value:
|
|
5273
5339
|
/**
|
|
5274
5340
|
* No description
|
|
5275
5341
|
*
|
|
@@ -5280,7 +5346,7 @@ let AccountPreviewService = /*#__PURE__*/function (_Service) {
|
|
|
5280
5346
|
* @request GET:/account/user/{username}/preview
|
|
5281
5347
|
* @response `200` Success
|
|
5282
5348
|
*/
|
|
5283
|
-
|
|
5349
|
+
function getPreview(username) {
|
|
5284
5350
|
return this.http.createUrl("/account/user/" + username + "/preview");
|
|
5285
5351
|
}
|
|
5286
5352
|
/**
|
|
@@ -5352,6 +5418,28 @@ let AccountPreview = /*#__PURE__*/function (_AccountPreviewServic) {
|
|
|
5352
5418
|
}
|
|
5353
5419
|
|
|
5354
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
|
+
}, {
|
|
5355
5443
|
key: "updateCurrentUserPhoto",
|
|
5356
5444
|
value: async function updateCurrentUserPhoto(file) {
|
|
5357
5445
|
const {
|
|
@@ -5382,28 +5470,6 @@ let AccountPreview = /*#__PURE__*/function (_AccountPreviewServic) {
|
|
|
5382
5470
|
has_profile_photo: false
|
|
5383
5471
|
});
|
|
5384
5472
|
}
|
|
5385
|
-
}, {
|
|
5386
|
-
key: "user",
|
|
5387
|
-
get: function get() {
|
|
5388
|
-
if (this.userInfo) {
|
|
5389
|
-
return this.userInfo;
|
|
5390
|
-
}
|
|
5391
|
-
|
|
5392
|
-
const userInfo = getUserInfo();
|
|
5393
|
-
|
|
5394
|
-
if (userInfo) {
|
|
5395
|
-
this.userInfo = userInfo;
|
|
5396
|
-
}
|
|
5397
|
-
|
|
5398
|
-
return userInfo;
|
|
5399
|
-
}
|
|
5400
|
-
}, {
|
|
5401
|
-
key: "username",
|
|
5402
|
-
get: function get() {
|
|
5403
|
-
var _this$userInfo;
|
|
5404
|
-
|
|
5405
|
-
return ((_this$userInfo = this.userInfo) == null ? void 0 : _this$userInfo.username) || '';
|
|
5406
|
-
}
|
|
5407
5473
|
}]);
|
|
5408
5474
|
|
|
5409
5475
|
return AccountPreview;
|
|
@@ -5428,7 +5494,7 @@ let ExternalProvidersService = /*#__PURE__*/function (_Service) {
|
|
|
5428
5494
|
|
|
5429
5495
|
_createClass(ExternalProvidersService, [{
|
|
5430
5496
|
key: "vkLogin",
|
|
5431
|
-
|
|
5497
|
+
value:
|
|
5432
5498
|
/**
|
|
5433
5499
|
* No description
|
|
5434
5500
|
*
|
|
@@ -5439,7 +5505,7 @@ let ExternalProvidersService = /*#__PURE__*/function (_Service) {
|
|
|
5439
5505
|
* @request GET:/account/external/login/vk
|
|
5440
5506
|
* @response `200` Success
|
|
5441
5507
|
*/
|
|
5442
|
-
|
|
5508
|
+
function vkLogin() {
|
|
5443
5509
|
return this.http.createUrl("/account/external/login/vk");
|
|
5444
5510
|
}
|
|
5445
5511
|
/**
|
|
@@ -5674,6 +5740,7 @@ let External = /*#__PURE__*/function (_ExternalProvidersSer) {
|
|
|
5674
5740
|
return External;
|
|
5675
5741
|
}(ExternalProvidersService);
|
|
5676
5742
|
|
|
5743
|
+
const _excluded$6 = ["idVariable"];
|
|
5677
5744
|
/**
|
|
5678
5745
|
* @title Spatial Processing Core API
|
|
5679
5746
|
* @version v0.6.0
|
|
@@ -5693,7 +5760,7 @@ let ClientSettingsService = /*#__PURE__*/function (_Service) {
|
|
|
5693
5760
|
|
|
5694
5761
|
_createClass(ClientSettingsService, [{
|
|
5695
5762
|
key: "getConfiguration",
|
|
5696
|
-
|
|
5763
|
+
value:
|
|
5697
5764
|
/**
|
|
5698
5765
|
* No description
|
|
5699
5766
|
*
|
|
@@ -5704,7 +5771,7 @@ let ClientSettingsService = /*#__PURE__*/function (_Service) {
|
|
|
5704
5771
|
* @request GET:/settings
|
|
5705
5772
|
* @response `200` Success
|
|
5706
5773
|
*/
|
|
5707
|
-
|
|
5774
|
+
function getConfiguration(query) {
|
|
5708
5775
|
return this.http.get("/settings", query).text();
|
|
5709
5776
|
}
|
|
5710
5777
|
/**
|
|
@@ -5868,7 +5935,7 @@ let ClientSettingsService = /*#__PURE__*/function (_Service) {
|
|
|
5868
5935
|
let {
|
|
5869
5936
|
idVariable
|
|
5870
5937
|
} = _ref,
|
|
5871
|
-
query = _objectWithoutPropertiesLoose(_ref,
|
|
5938
|
+
query = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
5872
5939
|
|
|
5873
5940
|
return this.http.get("/settings/variable/" + idVariable + "/value", query).json();
|
|
5874
5941
|
}
|
|
@@ -6042,6 +6109,41 @@ let ClientSettings = /*#__PURE__*/function (_ClientSettingsServic) {
|
|
|
6042
6109
|
return ClientSettings;
|
|
6043
6110
|
}(ClientSettingsService);
|
|
6044
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
|
+
|
|
6045
6147
|
var ErrorReason;
|
|
6046
6148
|
|
|
6047
6149
|
(function (ErrorReason) {
|
|
@@ -6236,7 +6338,7 @@ let IceRouterService = /*#__PURE__*/function (_Service) {
|
|
|
6236
6338
|
|
|
6237
6339
|
_createClass(IceRouterService, [{
|
|
6238
6340
|
key: "startTask",
|
|
6239
|
-
|
|
6341
|
+
value:
|
|
6240
6342
|
/**
|
|
6241
6343
|
* No description
|
|
6242
6344
|
*
|
|
@@ -6247,7 +6349,7 @@ let IceRouterService = /*#__PURE__*/function (_Service) {
|
|
|
6247
6349
|
* @request POST:/ice-router/tasks
|
|
6248
6350
|
* @response `200` Success
|
|
6249
6351
|
*/
|
|
6250
|
-
|
|
6352
|
+
function startTask(data) {
|
|
6251
6353
|
return this.http.post("/ice-router/tasks", data).text();
|
|
6252
6354
|
}
|
|
6253
6355
|
/**
|
|
@@ -6282,7 +6384,7 @@ let IceRouter = /*#__PURE__*/function (_IceRouterService) {
|
|
|
6282
6384
|
return _super.apply(this, arguments);
|
|
6283
6385
|
}
|
|
6284
6386
|
|
|
6285
|
-
return IceRouter;
|
|
6387
|
+
return _createClass(IceRouter);
|
|
6286
6388
|
}(IceRouterService);
|
|
6287
6389
|
|
|
6288
6390
|
/**
|
|
@@ -6304,7 +6406,7 @@ let PrintService = /*#__PURE__*/function (_Service) {
|
|
|
6304
6406
|
|
|
6305
6407
|
_createClass(PrintService, [{
|
|
6306
6408
|
key: "print",
|
|
6307
|
-
|
|
6409
|
+
value:
|
|
6308
6410
|
/**
|
|
6309
6411
|
* No description
|
|
6310
6412
|
*
|
|
@@ -6315,7 +6417,7 @@ let PrintService = /*#__PURE__*/function (_Service) {
|
|
|
6315
6417
|
* @request POST:/print/print
|
|
6316
6418
|
* @response `200` Success
|
|
6317
6419
|
*/
|
|
6318
|
-
|
|
6420
|
+
function print(data) {
|
|
6319
6421
|
return this.http.post("/print/print", data).blob();
|
|
6320
6422
|
}
|
|
6321
6423
|
/**
|
|
@@ -6414,7 +6516,7 @@ let Print = /*#__PURE__*/function (_PrintService) {
|
|
|
6414
6516
|
return _super.apply(this, arguments);
|
|
6415
6517
|
}
|
|
6416
6518
|
|
|
6417
|
-
return Print;
|
|
6519
|
+
return _createClass(Print);
|
|
6418
6520
|
}(PrintService);
|
|
6419
6521
|
|
|
6420
6522
|
var ApiEvent;
|
|
@@ -6430,6 +6532,7 @@ var UrlPath;
|
|
|
6430
6532
|
(function (UrlPath) {
|
|
6431
6533
|
UrlPath["Base"] = "/map";
|
|
6432
6534
|
UrlPath["Shared"] = "/shared";
|
|
6535
|
+
UrlPath["Portal"] = "/portal";
|
|
6433
6536
|
})(UrlPath || (UrlPath = {}));
|
|
6434
6537
|
|
|
6435
6538
|
const apiEventsByResponseStatus = {
|
|
@@ -6500,6 +6603,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
6500
6603
|
_this.namespace = new Namespace(_this.http);
|
|
6501
6604
|
_this.external = new External(_this.http);
|
|
6502
6605
|
_this.clientSettings = new ClientSettings(_this.http);
|
|
6606
|
+
_this.portalSettings = new PortalSettings(_this.http);
|
|
6503
6607
|
_this.iceRouter = new IceRouter(_this.http);
|
|
6504
6608
|
_this.names = new Names({
|
|
6505
6609
|
account: _this.account
|
|
@@ -6671,6 +6775,27 @@ let EvergisDynamicLayer = /*#__PURE__*/function (_DynamicLayer) {
|
|
|
6671
6775
|
|
|
6672
6776
|
|
|
6673
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
|
+
}, {
|
|
6674
6799
|
key: "getUrl",
|
|
6675
6800
|
value: function getUrl(bbox, resolution) {
|
|
6676
6801
|
let imgWidth = Math.round((bbox.xMax - bbox.xMin) / resolution);
|
|
@@ -6695,27 +6820,6 @@ let EvergisDynamicLayer = /*#__PURE__*/function (_DynamicLayer) {
|
|
|
6695
6820
|
});
|
|
6696
6821
|
});
|
|
6697
6822
|
}
|
|
6698
|
-
}, {
|
|
6699
|
-
key: "style",
|
|
6700
|
-
set: function set(styleId) {
|
|
6701
|
-
this.styleId = styleId;
|
|
6702
|
-
this.forceUpdate();
|
|
6703
|
-
} // @ts-ignore TODO
|
|
6704
|
-
,
|
|
6705
|
-
get: function get() {
|
|
6706
|
-
return this.styleId;
|
|
6707
|
-
} // @ts-ignore TODO
|
|
6708
|
-
|
|
6709
|
-
}, {
|
|
6710
|
-
key: "condition",
|
|
6711
|
-
set: function set(condition) {
|
|
6712
|
-
this.conditionQuery = condition;
|
|
6713
|
-
this.forceUpdate();
|
|
6714
|
-
} // @ts-ignore TODO
|
|
6715
|
-
,
|
|
6716
|
-
get: function get() {
|
|
6717
|
-
return this.conditionQuery;
|
|
6718
|
-
}
|
|
6719
6823
|
}]);
|
|
6720
6824
|
|
|
6721
6825
|
return EvergisDynamicLayer;
|
|
@@ -7764,5 +7868,5 @@ var ToolStorageType;
|
|
|
7764
7868
|
ToolStorageType["LayersStorage"] = "layersStorage";
|
|
7765
7869
|
})(ToolStorageType || (ToolStorageType = {}));
|
|
7766
7870
|
|
|
7767
|
-
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 };
|
|
7768
7872
|
//# sourceMappingURL=api.esm.js.map
|