@evergis/api 3.0.51 → 3.0.55
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__/LayersService.d.ts +23 -1
- package/dist/__generated__/ProjectsService.d.ts +12 -1
- package/dist/__generated__/SecurityService.d.ts +13 -2
- package/dist/__generated__/TablesService.d.ts +23 -1
- package/dist/__generated__/data-contracts.d.ts +74 -2
- package/dist/api.cjs.development.js +201 -56
- 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 +203 -57
- 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
|
@@ -331,18 +331,34 @@ let SecurityService = /*#__PURE__*/function (_Service) {
|
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
_createClass(SecurityService, [{
|
|
334
|
-
key: "
|
|
334
|
+
key: "findUserByNameByRoles",
|
|
335
335
|
|
|
336
|
+
/**
|
|
337
|
+
* No description
|
|
338
|
+
*
|
|
339
|
+
* @tags SecurityService
|
|
340
|
+
* @name FindUserByNameByRoles
|
|
341
|
+
* @operationId SecurityServiceController_FindUserByNameByRoles
|
|
342
|
+
* @summary Get users list with given roles list.
|
|
343
|
+
* @request GET:/security/findUsersWithRoles
|
|
344
|
+
* @response `200` Success
|
|
345
|
+
*/
|
|
346
|
+
value: function findUserByNameByRoles(query) {
|
|
347
|
+
return this.http.get("/security/findUsersWithRoles", query).json();
|
|
348
|
+
}
|
|
336
349
|
/**
|
|
337
350
|
* No description
|
|
338
351
|
*
|
|
339
352
|
* @tags SecurityService
|
|
340
353
|
* @name FindUserByName
|
|
341
354
|
* @operationId SecurityServiceController_FindUserByName
|
|
342
|
-
* @summary Returns the list of users found by username
|
|
355
|
+
* @summary Returns the list of users found by username.
|
|
343
356
|
* @request GET:/security/users
|
|
344
357
|
* @response `200` Success
|
|
345
358
|
*/
|
|
359
|
+
|
|
360
|
+
}, {
|
|
361
|
+
key: "findUserByName",
|
|
346
362
|
value: function findUserByName(query) {
|
|
347
363
|
return this.http.get("/security/users", query).json();
|
|
348
364
|
}
|
|
@@ -1458,6 +1474,22 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1458
1474
|
value: function setPermissionsBatch(data) {
|
|
1459
1475
|
return this.http.put("/layers", data).then(() => {});
|
|
1460
1476
|
}
|
|
1477
|
+
/**
|
|
1478
|
+
* No description
|
|
1479
|
+
*
|
|
1480
|
+
* @tags Layers
|
|
1481
|
+
* @name DeleteResources
|
|
1482
|
+
* @operationId LayersController_DeleteResources
|
|
1483
|
+
* @summary Bulk delete resources.
|
|
1484
|
+
* @request DELETE:/layers
|
|
1485
|
+
* @response `200` Success
|
|
1486
|
+
*/
|
|
1487
|
+
|
|
1488
|
+
}, {
|
|
1489
|
+
key: "deleteResources",
|
|
1490
|
+
value: function deleteResources(query) {
|
|
1491
|
+
return this.http.delete("/layers", null, query).json();
|
|
1492
|
+
}
|
|
1461
1493
|
/**
|
|
1462
1494
|
* No description
|
|
1463
1495
|
*
|
|
@@ -1815,6 +1847,27 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1815
1847
|
value: function updateFeature(name, data) {
|
|
1816
1848
|
return this.http.patch("/layers/" + name + "/features", data).json();
|
|
1817
1849
|
}
|
|
1850
|
+
/**
|
|
1851
|
+
* No description
|
|
1852
|
+
*
|
|
1853
|
+
* @tags Layers
|
|
1854
|
+
* @name FeaturesContains
|
|
1855
|
+
* @operationId LayersController_FeaturesContains
|
|
1856
|
+
* @summary Gets filtered features with given filter.
|
|
1857
|
+
* @request GET:/layers/{name}/features/contains
|
|
1858
|
+
* @response `200` Success
|
|
1859
|
+
*/
|
|
1860
|
+
|
|
1861
|
+
}, {
|
|
1862
|
+
key: "featuresContains",
|
|
1863
|
+
value: function featuresContains(_ref3) {
|
|
1864
|
+
let {
|
|
1865
|
+
name
|
|
1866
|
+
} = _ref3,
|
|
1867
|
+
query = _objectWithoutPropertiesLoose(_ref3, ["name"]);
|
|
1868
|
+
|
|
1869
|
+
return this.http.get("/layers/" + name + "/features/contains", query).json();
|
|
1870
|
+
}
|
|
1818
1871
|
/**
|
|
1819
1872
|
* No description
|
|
1820
1873
|
*
|
|
@@ -1828,12 +1881,12 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1828
1881
|
|
|
1829
1882
|
}, {
|
|
1830
1883
|
key: "getById",
|
|
1831
|
-
value: function getById(
|
|
1884
|
+
value: function getById(_ref4) {
|
|
1832
1885
|
let {
|
|
1833
1886
|
name,
|
|
1834
1887
|
id
|
|
1835
|
-
} =
|
|
1836
|
-
query = _objectWithoutPropertiesLoose(
|
|
1888
|
+
} = _ref4,
|
|
1889
|
+
query = _objectWithoutPropertiesLoose(_ref4, ["name", "id"]);
|
|
1837
1890
|
|
|
1838
1891
|
return this.http.get("/layers/" + name + "/features/" + id, query).json();
|
|
1839
1892
|
}
|
|
@@ -1850,12 +1903,12 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1850
1903
|
|
|
1851
1904
|
}, {
|
|
1852
1905
|
key: "unite",
|
|
1853
|
-
value: function unite(
|
|
1906
|
+
value: function unite(_ref5, data) {
|
|
1854
1907
|
let {
|
|
1855
1908
|
name,
|
|
1856
1909
|
id
|
|
1857
|
-
} =
|
|
1858
|
-
query = _objectWithoutPropertiesLoose(
|
|
1910
|
+
} = _ref5,
|
|
1911
|
+
query = _objectWithoutPropertiesLoose(_ref5, ["name", "id"]);
|
|
1859
1912
|
|
|
1860
1913
|
return this.http.post("/layers/" + name + "/features/" + id + "/unite", data, query).json();
|
|
1861
1914
|
}
|
|
@@ -1872,12 +1925,12 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1872
1925
|
|
|
1873
1926
|
}, {
|
|
1874
1927
|
key: "subtract",
|
|
1875
|
-
value: function subtract(
|
|
1928
|
+
value: function subtract(_ref6, data) {
|
|
1876
1929
|
let {
|
|
1877
1930
|
name,
|
|
1878
1931
|
id
|
|
1879
|
-
} =
|
|
1880
|
-
query = _objectWithoutPropertiesLoose(
|
|
1932
|
+
} = _ref6,
|
|
1933
|
+
query = _objectWithoutPropertiesLoose(_ref6, ["name", "id"]);
|
|
1881
1934
|
|
|
1882
1935
|
return this.http.post("/layers/" + name + "/features/" + id + "/subtract", data, query).json();
|
|
1883
1936
|
}
|
|
@@ -1894,14 +1947,14 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1894
1947
|
|
|
1895
1948
|
}, {
|
|
1896
1949
|
key: "getTilesLayerImage",
|
|
1897
|
-
value: function getTilesLayerImage(
|
|
1950
|
+
value: function getTilesLayerImage(_ref7) {
|
|
1898
1951
|
let {
|
|
1899
1952
|
name,
|
|
1900
1953
|
x,
|
|
1901
1954
|
y,
|
|
1902
1955
|
z
|
|
1903
|
-
} =
|
|
1904
|
-
query = _objectWithoutPropertiesLoose(
|
|
1956
|
+
} = _ref7,
|
|
1957
|
+
query = _objectWithoutPropertiesLoose(_ref7, ["name", "x", "y", "z"]);
|
|
1905
1958
|
|
|
1906
1959
|
return this.http.createUrl("/layers/" + name + "/tile/" + z + "/" + x + "/" + y, query);
|
|
1907
1960
|
}
|
|
@@ -1918,11 +1971,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1918
1971
|
|
|
1919
1972
|
}, {
|
|
1920
1973
|
key: "getLayerImage",
|
|
1921
|
-
value: function getLayerImage(
|
|
1974
|
+
value: function getLayerImage(_ref8) {
|
|
1922
1975
|
let {
|
|
1923
1976
|
name
|
|
1924
|
-
} =
|
|
1925
|
-
query = _objectWithoutPropertiesLoose(
|
|
1977
|
+
} = _ref8,
|
|
1978
|
+
query = _objectWithoutPropertiesLoose(_ref8, ["name"]);
|
|
1926
1979
|
|
|
1927
1980
|
return this.http.createUrl("/layers/" + name + "/export", query);
|
|
1928
1981
|
}
|
|
@@ -1939,11 +1992,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1939
1992
|
|
|
1940
1993
|
}, {
|
|
1941
1994
|
key: "getLayerExtent",
|
|
1942
|
-
value: function getLayerExtent(
|
|
1995
|
+
value: function getLayerExtent(_ref9) {
|
|
1943
1996
|
let {
|
|
1944
1997
|
name
|
|
1945
|
-
} =
|
|
1946
|
-
query = _objectWithoutPropertiesLoose(
|
|
1998
|
+
} = _ref9,
|
|
1999
|
+
query = _objectWithoutPropertiesLoose(_ref9, ["name"]);
|
|
1947
2000
|
|
|
1948
2001
|
return this.http.get("/layers/" + name + "/extent", query).json();
|
|
1949
2002
|
}
|
|
@@ -1960,11 +2013,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1960
2013
|
|
|
1961
2014
|
}, {
|
|
1962
2015
|
key: "getByGeometry",
|
|
1963
|
-
value: function getByGeometry(
|
|
2016
|
+
value: function getByGeometry(_ref10) {
|
|
1964
2017
|
let {
|
|
1965
2018
|
name
|
|
1966
|
-
} =
|
|
1967
|
-
query = _objectWithoutPropertiesLoose(
|
|
2019
|
+
} = _ref10,
|
|
2020
|
+
query = _objectWithoutPropertiesLoose(_ref10, ["name"]);
|
|
1968
2021
|
|
|
1969
2022
|
return this.http.get("/layers/" + name + "/features/getByGeometry", query).json();
|
|
1970
2023
|
}
|
|
@@ -1981,11 +2034,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1981
2034
|
|
|
1982
2035
|
}, {
|
|
1983
2036
|
key: "getByGeometryPost",
|
|
1984
|
-
value: function getByGeometryPost(
|
|
2037
|
+
value: function getByGeometryPost(_ref11, data) {
|
|
1985
2038
|
let {
|
|
1986
2039
|
name
|
|
1987
|
-
} =
|
|
1988
|
-
query = _objectWithoutPropertiesLoose(
|
|
2040
|
+
} = _ref11,
|
|
2041
|
+
query = _objectWithoutPropertiesLoose(_ref11, ["name"]);
|
|
1989
2042
|
|
|
1990
2043
|
return this.http.post("/layers/" + name + "/features/getByGeometry", data, query).json();
|
|
1991
2044
|
}
|
|
@@ -2002,11 +2055,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
2002
2055
|
|
|
2003
2056
|
}, {
|
|
2004
2057
|
key: "deleteFeatures",
|
|
2005
|
-
value: function deleteFeatures(
|
|
2058
|
+
value: function deleteFeatures(_ref12) {
|
|
2006
2059
|
let {
|
|
2007
2060
|
name
|
|
2008
|
-
} =
|
|
2009
|
-
query = _objectWithoutPropertiesLoose(
|
|
2061
|
+
} = _ref12,
|
|
2062
|
+
query = _objectWithoutPropertiesLoose(_ref12, ["name"]);
|
|
2010
2063
|
|
|
2011
2064
|
return this.http.delete("/layers/" + name + "/features/deleteByIds", null, query).json();
|
|
2012
2065
|
}
|
|
@@ -2023,11 +2076,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
2023
2076
|
|
|
2024
2077
|
}, {
|
|
2025
2078
|
key: "getByGeometryGet",
|
|
2026
|
-
value: function getByGeometryGet(
|
|
2079
|
+
value: function getByGeometryGet(_ref13) {
|
|
2027
2080
|
let {
|
|
2028
2081
|
name
|
|
2029
|
-
} =
|
|
2030
|
-
query = _objectWithoutPropertiesLoose(
|
|
2082
|
+
} = _ref13,
|
|
2083
|
+
query = _objectWithoutPropertiesLoose(_ref13, ["name"]);
|
|
2031
2084
|
|
|
2032
2085
|
return this.http.get("/layers/" + name + "/features/getByGeometryByClick", query).json();
|
|
2033
2086
|
}
|
|
@@ -2044,11 +2097,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
2044
2097
|
|
|
2045
2098
|
}, {
|
|
2046
2099
|
key: "classify",
|
|
2047
|
-
value: function classify(
|
|
2100
|
+
value: function classify(_ref14) {
|
|
2048
2101
|
let {
|
|
2049
2102
|
name
|
|
2050
|
-
} =
|
|
2051
|
-
query = _objectWithoutPropertiesLoose(
|
|
2103
|
+
} = _ref14,
|
|
2104
|
+
query = _objectWithoutPropertiesLoose(_ref14, ["name"]);
|
|
2052
2105
|
|
|
2053
2106
|
return this.http.get("/layers/" + name + "/classify", query).json();
|
|
2054
2107
|
}
|
|
@@ -2065,11 +2118,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
2065
2118
|
|
|
2066
2119
|
}, {
|
|
2067
2120
|
key: "distincts",
|
|
2068
|
-
value: function distincts(
|
|
2121
|
+
value: function distincts(_ref15) {
|
|
2069
2122
|
let {
|
|
2070
2123
|
name
|
|
2071
|
-
} =
|
|
2072
|
-
query = _objectWithoutPropertiesLoose(
|
|
2124
|
+
} = _ref15,
|
|
2125
|
+
query = _objectWithoutPropertiesLoose(_ref15, ["name"]);
|
|
2073
2126
|
|
|
2074
2127
|
return this.http.get("/layers/" + name + "/distincts", query).json();
|
|
2075
2128
|
}
|
|
@@ -2086,11 +2139,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
2086
2139
|
|
|
2087
2140
|
}, {
|
|
2088
2141
|
key: "aggregateAttribute",
|
|
2089
|
-
value: function aggregateAttribute(
|
|
2142
|
+
value: function aggregateAttribute(_ref16) {
|
|
2090
2143
|
let {
|
|
2091
2144
|
name
|
|
2092
|
-
} =
|
|
2093
|
-
query = _objectWithoutPropertiesLoose(
|
|
2145
|
+
} = _ref16,
|
|
2146
|
+
query = _objectWithoutPropertiesLoose(_ref16, ["name"]);
|
|
2094
2147
|
|
|
2095
2148
|
return this.http.get("/layers/" + name + "/aggregate-values", query).json();
|
|
2096
2149
|
}
|
|
@@ -2107,11 +2160,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
2107
2160
|
|
|
2108
2161
|
}, {
|
|
2109
2162
|
key: "getFilteredFeaturesCount",
|
|
2110
|
-
value: function getFilteredFeaturesCount(
|
|
2163
|
+
value: function getFilteredFeaturesCount(_ref17) {
|
|
2111
2164
|
let {
|
|
2112
2165
|
name
|
|
2113
|
-
} =
|
|
2114
|
-
query = _objectWithoutPropertiesLoose(
|
|
2166
|
+
} = _ref17,
|
|
2167
|
+
query = _objectWithoutPropertiesLoose(_ref17, ["name"]);
|
|
2115
2168
|
|
|
2116
2169
|
return this.http.get("/layers/" + name + "/features/count", query).json();
|
|
2117
2170
|
}
|
|
@@ -2161,11 +2214,11 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
2161
2214
|
|
|
2162
2215
|
}, {
|
|
2163
2216
|
key: "validateExpression",
|
|
2164
|
-
value: function validateExpression(
|
|
2217
|
+
value: function validateExpression(_ref18) {
|
|
2165
2218
|
let {
|
|
2166
2219
|
layerName
|
|
2167
|
-
} =
|
|
2168
|
-
query = _objectWithoutPropertiesLoose(
|
|
2220
|
+
} = _ref18,
|
|
2221
|
+
query = _objectWithoutPropertiesLoose(_ref18, ["layerName"]);
|
|
2169
2222
|
|
|
2170
2223
|
return this.http.get("/layers/" + layerName + "/validateExpression", query).json();
|
|
2171
2224
|
}
|
|
@@ -2484,6 +2537,22 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
2484
2537
|
value: function setPermissionsBatch(data) {
|
|
2485
2538
|
return this.http.put("/tables", data).then(() => {});
|
|
2486
2539
|
}
|
|
2540
|
+
/**
|
|
2541
|
+
* No description
|
|
2542
|
+
*
|
|
2543
|
+
* @tags Tables
|
|
2544
|
+
* @name DeleteResources
|
|
2545
|
+
* @operationId TablesController_DeleteResources
|
|
2546
|
+
* @summary Bulk delete resources.
|
|
2547
|
+
* @request DELETE:/tables
|
|
2548
|
+
* @response `200` Success
|
|
2549
|
+
*/
|
|
2550
|
+
|
|
2551
|
+
}, {
|
|
2552
|
+
key: "deleteResources",
|
|
2553
|
+
value: function deleteResources(query) {
|
|
2554
|
+
return this.http.delete("/tables", null, query).json();
|
|
2555
|
+
}
|
|
2487
2556
|
/**
|
|
2488
2557
|
* No description
|
|
2489
2558
|
*
|
|
@@ -2532,6 +2601,27 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
2532
2601
|
value: function getTableInfo(name) {
|
|
2533
2602
|
return this.http.get("/tables/" + name).json();
|
|
2534
2603
|
}
|
|
2604
|
+
/**
|
|
2605
|
+
* No description
|
|
2606
|
+
*
|
|
2607
|
+
* @tags Tables
|
|
2608
|
+
* @name GetTableData
|
|
2609
|
+
* @operationId TablesController_GetTableData
|
|
2610
|
+
* @summary Retrieves the data from the table.
|
|
2611
|
+
* @request GET:/tables/{name}/data
|
|
2612
|
+
* @response `200` Success
|
|
2613
|
+
*/
|
|
2614
|
+
|
|
2615
|
+
}, {
|
|
2616
|
+
key: "getTableData",
|
|
2617
|
+
value: function getTableData(_ref) {
|
|
2618
|
+
let {
|
|
2619
|
+
name
|
|
2620
|
+
} = _ref,
|
|
2621
|
+
query = _objectWithoutPropertiesLoose(_ref, ["name"]);
|
|
2622
|
+
|
|
2623
|
+
return this.http.get("/tables/" + name + "/data", query).json();
|
|
2624
|
+
}
|
|
2535
2625
|
/**
|
|
2536
2626
|
* No description
|
|
2537
2627
|
*
|
|
@@ -2545,11 +2635,11 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
2545
2635
|
|
|
2546
2636
|
}, {
|
|
2547
2637
|
key: "updateTableData",
|
|
2548
|
-
value: function updateTableData(
|
|
2638
|
+
value: function updateTableData(_ref2, data) {
|
|
2549
2639
|
let {
|
|
2550
2640
|
name
|
|
2551
|
-
} =
|
|
2552
|
-
query = _objectWithoutPropertiesLoose(
|
|
2641
|
+
} = _ref2,
|
|
2642
|
+
query = _objectWithoutPropertiesLoose(_ref2, ["name"]);
|
|
2553
2643
|
|
|
2554
2644
|
return this.http.patch("/tables/" + name + "/data", data, query).then(() => {});
|
|
2555
2645
|
}
|
|
@@ -2566,11 +2656,11 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
2566
2656
|
|
|
2567
2657
|
}, {
|
|
2568
2658
|
key: "deleteTableData",
|
|
2569
|
-
value: function deleteTableData(
|
|
2659
|
+
value: function deleteTableData(_ref3) {
|
|
2570
2660
|
let {
|
|
2571
2661
|
name
|
|
2572
|
-
} =
|
|
2573
|
-
query = _objectWithoutPropertiesLoose(
|
|
2662
|
+
} = _ref3,
|
|
2663
|
+
query = _objectWithoutPropertiesLoose(_ref3, ["name"]);
|
|
2574
2664
|
|
|
2575
2665
|
return this.http.delete("/tables/" + name + "/data", null, query).then(() => {});
|
|
2576
2666
|
}
|
|
@@ -2587,11 +2677,11 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
2587
2677
|
|
|
2588
2678
|
}, {
|
|
2589
2679
|
key: "getUniqueDataRows",
|
|
2590
|
-
value: function getUniqueDataRows(
|
|
2680
|
+
value: function getUniqueDataRows(_ref4) {
|
|
2591
2681
|
let {
|
|
2592
2682
|
name
|
|
2593
|
-
} =
|
|
2594
|
-
query = _objectWithoutPropertiesLoose(
|
|
2683
|
+
} = _ref4,
|
|
2684
|
+
query = _objectWithoutPropertiesLoose(_ref4, ["name"]);
|
|
2595
2685
|
|
|
2596
2686
|
return this.http.get("/tables/" + name + "/data/unique-values", query).json();
|
|
2597
2687
|
}
|
|
@@ -2949,6 +3039,22 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
|
|
|
2949
3039
|
value: function setPermissionsBatch(data) {
|
|
2950
3040
|
return this.http.put("/projects", data).then(() => {});
|
|
2951
3041
|
}
|
|
3042
|
+
/**
|
|
3043
|
+
* No description
|
|
3044
|
+
*
|
|
3045
|
+
* @tags Projects
|
|
3046
|
+
* @name DeleteResources
|
|
3047
|
+
* @operationId ProjectsController_DeleteResources
|
|
3048
|
+
* @summary Bulk delete resources.
|
|
3049
|
+
* @request DELETE:/projects
|
|
3050
|
+
* @response `200` Success
|
|
3051
|
+
*/
|
|
3052
|
+
|
|
3053
|
+
}, {
|
|
3054
|
+
key: "deleteResources",
|
|
3055
|
+
value: function deleteResources(query) {
|
|
3056
|
+
return this.http.delete("/projects", null, query).json();
|
|
3057
|
+
}
|
|
2952
3058
|
/**
|
|
2953
3059
|
* No description
|
|
2954
3060
|
*
|
|
@@ -5957,6 +6063,41 @@ let ClientSettings = /*#__PURE__*/function (_ClientSettingsServic) {
|
|
|
5957
6063
|
return ClientSettings;
|
|
5958
6064
|
}(ClientSettingsService);
|
|
5959
6065
|
|
|
6066
|
+
let PortalSettings = /*#__PURE__*/function (_ClientSettingsServic) {
|
|
6067
|
+
_inherits(PortalSettings, _ClientSettingsServic);
|
|
6068
|
+
|
|
6069
|
+
var _super = /*#__PURE__*/_createSuper(PortalSettings);
|
|
6070
|
+
|
|
6071
|
+
function PortalSettings() {
|
|
6072
|
+
var _this;
|
|
6073
|
+
|
|
6074
|
+
_classCallCheck(this, PortalSettings);
|
|
6075
|
+
|
|
6076
|
+
_this = _super.apply(this, arguments);
|
|
6077
|
+
_this.config = null;
|
|
6078
|
+
return _this;
|
|
6079
|
+
}
|
|
6080
|
+
|
|
6081
|
+
_createClass(PortalSettings, [{
|
|
6082
|
+
key: "fetchPortalSettings",
|
|
6083
|
+
value: async function fetchPortalSettings(query) {
|
|
6084
|
+
var _config$settings, _config$settings2, _config$settings3;
|
|
6085
|
+
|
|
6086
|
+
const config = JSON.parse(await this.getConfiguration(query));
|
|
6087
|
+
this.config = _extends({}, config, {
|
|
6088
|
+
settings: {
|
|
6089
|
+
withPortal: ((_config$settings = config.settings) == null ? void 0 : _config$settings.withPortal) === undefined || config.settings.withPortal,
|
|
6090
|
+
allowRegistration: ((_config$settings2 = config.settings) == null ? void 0 : _config$settings2.allowRegistration) === undefined || config.settings.allowRegistration,
|
|
6091
|
+
allowSNS: ((_config$settings3 = config.settings) == null ? void 0 : _config$settings3.allowSNS) === undefined || config.settings.allowSNS
|
|
6092
|
+
}
|
|
6093
|
+
});
|
|
6094
|
+
return this.config;
|
|
6095
|
+
}
|
|
6096
|
+
}]);
|
|
6097
|
+
|
|
6098
|
+
return PortalSettings;
|
|
6099
|
+
}(ClientSettingsService);
|
|
6100
|
+
|
|
5960
6101
|
var ErrorReason;
|
|
5961
6102
|
|
|
5962
6103
|
(function (ErrorReason) {
|
|
@@ -6345,6 +6486,7 @@ var UrlPath;
|
|
|
6345
6486
|
(function (UrlPath) {
|
|
6346
6487
|
UrlPath["Base"] = "/map";
|
|
6347
6488
|
UrlPath["Shared"] = "/shared";
|
|
6489
|
+
UrlPath["Portal"] = "/portal";
|
|
6348
6490
|
})(UrlPath || (UrlPath = {}));
|
|
6349
6491
|
|
|
6350
6492
|
const apiEventsByResponseStatus = {
|
|
@@ -6415,6 +6557,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
6415
6557
|
_this.namespace = new Namespace(_this.http);
|
|
6416
6558
|
_this.external = new External(_this.http);
|
|
6417
6559
|
_this.clientSettings = new ClientSettings(_this.http);
|
|
6560
|
+
_this.portalSettings = new PortalSettings(_this.http);
|
|
6418
6561
|
_this.iceRouter = new IceRouter(_this.http);
|
|
6419
6562
|
_this.names = new Names({
|
|
6420
6563
|
account: _this.account
|
|
@@ -7050,6 +7193,8 @@ InvalidLayerType
|
|
|
7050
7193
|
ColumnLoadingError
|
|
7051
7194
|
|
|
7052
7195
|
InvalidAttributeFormat
|
|
7196
|
+
|
|
7197
|
+
DataSourceNotFound
|
|
7053
7198
|
*/
|
|
7054
7199
|
|
|
7055
7200
|
|
|
@@ -7075,6 +7220,7 @@ var ConfigurationErrorEnum;
|
|
|
7075
7220
|
ConfigurationErrorEnum["InvalidLayerType"] = "InvalidLayerType";
|
|
7076
7221
|
ConfigurationErrorEnum["ColumnLoadingError"] = "ColumnLoadingError";
|
|
7077
7222
|
ConfigurationErrorEnum["InvalidAttributeFormat"] = "InvalidAttributeFormat";
|
|
7223
|
+
ConfigurationErrorEnum["DataSourceNotFound"] = "DataSourceNotFound";
|
|
7078
7224
|
})(ConfigurationErrorEnum || (ConfigurationErrorEnum = {}));
|
|
7079
7225
|
/**
|
|
7080
7226
|
* Specifies display element type.
|
|
@@ -7676,5 +7822,5 @@ var ToolStorageType;
|
|
|
7676
7822
|
ToolStorageType["LayersStorage"] = "layersStorage";
|
|
7677
7823
|
})(ToolStorageType || (ToolStorageType = {}));
|
|
7678
7824
|
|
|
7679
|
-
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 };
|
|
7825
|
+
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 };
|
|
7680
7826
|
//# sourceMappingURL=api.esm.js.map
|