@evergis/api 5.0.30 → 5.0.32
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/__generated__/CatalogService.d.ts +22 -70
- package/dist/__generated__/LayersService.d.ts +1 -13
- package/dist/__generated__/ProjectsService.d.ts +1 -13
- package/dist/__generated__/TablesService.d.ts +1 -13
- package/dist/__generated__/data-contracts.d.ts +93 -119
- package/dist/api.esm.js +18 -127
- package/dist/api.esm.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +18 -127
- package/dist/index.js.map +1 -1
- package/dist/interfaces/ResourceService.d.ts +0 -1
- package/dist/services/FileUpload.d.ts +1 -1
- package/dist/services/Layers.d.ts +0 -1
- package/dist/services/Projects.d.ts +0 -1
- package/dist/services/Tables.d.ts +0 -1
- package/package.json +2 -3
- package/dist/customDataContracts.d.ts +0 -15
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export * from './services';
|
|
|
3
3
|
export * from './utils';
|
|
4
4
|
export * from './__generated__/HttpClient';
|
|
5
5
|
export * from './__generated__/data-contracts';
|
|
6
|
-
export * from './customDataContracts';
|
|
7
6
|
export * from './Api';
|
|
8
7
|
export * from './ApiEvent';
|
|
9
8
|
export { STORAGE_TOKEN_KEY, STORAGE_REFRESH_TOKEN_KEY } from './constants';
|
package/dist/index.js
CHANGED
|
@@ -1702,20 +1702,6 @@ class CatalogService extends Service {
|
|
|
1702
1702
|
deleteResource({ resourceId, ...query }) {
|
|
1703
1703
|
return this.http.delete(`/resources/${resourceId}`, null, query).then(() => { });
|
|
1704
1704
|
}
|
|
1705
|
-
/**
|
|
1706
|
-
* No description
|
|
1707
|
-
*
|
|
1708
|
-
* @tags Catalog
|
|
1709
|
-
* @name ResourceExistsByPath
|
|
1710
|
-
* @operationId CatalogController_ResourceExistsByPathAsync
|
|
1711
|
-
* @summary Check resource path is existing.
|
|
1712
|
-
* @request GET:/resources/existsByPath/{path}
|
|
1713
|
-
* @secure
|
|
1714
|
-
* @response `200` OK
|
|
1715
|
-
*/
|
|
1716
|
-
resourceExistsByPath(path) {
|
|
1717
|
-
return this.http.get(`/resources/existsByPath/${path}`).json();
|
|
1718
|
-
}
|
|
1719
1705
|
/**
|
|
1720
1706
|
* No description
|
|
1721
1707
|
*
|
|
@@ -1723,68 +1709,12 @@ class CatalogService extends Service {
|
|
|
1723
1709
|
* @name ResourceExistsById
|
|
1724
1710
|
* @operationId CatalogController_ResourceExistsByIdAsync
|
|
1725
1711
|
* @summary Check resource id is existing.
|
|
1726
|
-
* @request GET:/resources/
|
|
1712
|
+
* @request GET:/resources/exists/{resourceId}
|
|
1727
1713
|
* @secure
|
|
1728
1714
|
* @response `200` OK
|
|
1729
1715
|
*/
|
|
1730
1716
|
resourceExistsById(resourceId) {
|
|
1731
|
-
return this.http.get(`/resources/
|
|
1732
|
-
}
|
|
1733
|
-
/**
|
|
1734
|
-
* No description
|
|
1735
|
-
*
|
|
1736
|
-
* @tags Catalog
|
|
1737
|
-
* @name ResourceExistsByName
|
|
1738
|
-
* @operationId CatalogController_ResourceExistsByNameAsync
|
|
1739
|
-
* @summary Check resource path exists.
|
|
1740
|
-
* @request GET:/resources/existsByName/{systemName}
|
|
1741
|
-
* @secure
|
|
1742
|
-
* @response `200` OK
|
|
1743
|
-
*/
|
|
1744
|
-
resourceExistsByName(systemName) {
|
|
1745
|
-
return this.http.get(`/resources/existsByName/${systemName}`).json();
|
|
1746
|
-
}
|
|
1747
|
-
/**
|
|
1748
|
-
* No description
|
|
1749
|
-
*
|
|
1750
|
-
* @tags Catalog
|
|
1751
|
-
* @name GetResourceByPath
|
|
1752
|
-
* @operationId CatalogController_GetResourceByPath
|
|
1753
|
-
* @summary Get resource with given path.
|
|
1754
|
-
* @request GET:/resources/getByPath/{path}
|
|
1755
|
-
* @secure
|
|
1756
|
-
* @response `200` OK
|
|
1757
|
-
*/
|
|
1758
|
-
getResourceByPath(path) {
|
|
1759
|
-
return this.http.get(`/resources/getByPath/${path}`).json();
|
|
1760
|
-
}
|
|
1761
|
-
/**
|
|
1762
|
-
* No description
|
|
1763
|
-
*
|
|
1764
|
-
* @tags Catalog
|
|
1765
|
-
* @name PostGetResourceByPath
|
|
1766
|
-
* @operationId CatalogController_PostGetResourceByPath
|
|
1767
|
-
* @summary Get resource with given path.
|
|
1768
|
-
* @request POST:/resources/getByPath
|
|
1769
|
-
* @secure
|
|
1770
|
-
* @response `200` OK
|
|
1771
|
-
*/
|
|
1772
|
-
postGetResourceByPath(data) {
|
|
1773
|
-
return this.http.post(`/resources/getByPath`, data).json();
|
|
1774
|
-
}
|
|
1775
|
-
/**
|
|
1776
|
-
* No description
|
|
1777
|
-
*
|
|
1778
|
-
* @tags Catalog
|
|
1779
|
-
* @name GetBySystemName
|
|
1780
|
-
* @operationId CatalogController_GetBySystemName
|
|
1781
|
-
* @summary Get resource with given system name.
|
|
1782
|
-
* @request GET:/resources/getBySystemName/{systemName}
|
|
1783
|
-
* @secure
|
|
1784
|
-
* @response `200` OK
|
|
1785
|
-
*/
|
|
1786
|
-
getBySystemName(systemName) {
|
|
1787
|
-
return this.http.get(`/resources/getBySystemName/${systemName}`).json();
|
|
1717
|
+
return this.http.get(`/resources/exists/${resourceId}`).json();
|
|
1788
1718
|
}
|
|
1789
1719
|
/**
|
|
1790
1720
|
* No description
|
|
@@ -1870,6 +1800,20 @@ class CatalogService extends Service {
|
|
|
1870
1800
|
setPermissions1(resourceId, data) {
|
|
1871
1801
|
return this.http.put(`/resources/${resourceId}/permissions`, data).then(() => { });
|
|
1872
1802
|
}
|
|
1803
|
+
/**
|
|
1804
|
+
* No description
|
|
1805
|
+
*
|
|
1806
|
+
* @tags Catalog
|
|
1807
|
+
* @name GetPermissionsV2
|
|
1808
|
+
* @operationId CatalogController_GetPermissionsV2
|
|
1809
|
+
* @summary Set permissions to the resource.
|
|
1810
|
+
* @request GET:/resources/permissions/{resourceId}
|
|
1811
|
+
* @secure
|
|
1812
|
+
* @response `200` OK
|
|
1813
|
+
*/
|
|
1814
|
+
getPermissionsV2(resourceId) {
|
|
1815
|
+
return this.http.get(`/resources/permissions/${resourceId}`).json();
|
|
1816
|
+
}
|
|
1873
1817
|
/**
|
|
1874
1818
|
* No description
|
|
1875
1819
|
*
|
|
@@ -3453,20 +3397,6 @@ class LayersService extends Service {
|
|
|
3453
3397
|
.post(`/layers`, data)
|
|
3454
3398
|
.json();
|
|
3455
3399
|
}
|
|
3456
|
-
/**
|
|
3457
|
-
* No description
|
|
3458
|
-
*
|
|
3459
|
-
* @tags Layers
|
|
3460
|
-
* @name DeleteResources
|
|
3461
|
-
* @operationId LayersController_DeleteResources
|
|
3462
|
-
* @summary Bulk delete resources.
|
|
3463
|
-
* @request DELETE:/layers
|
|
3464
|
-
* @secure
|
|
3465
|
-
* @response `200` OK
|
|
3466
|
-
*/
|
|
3467
|
-
deleteResources(query) {
|
|
3468
|
-
return this.http.delete(`/layers`, null, query).json();
|
|
3469
|
-
}
|
|
3470
3400
|
/**
|
|
3471
3401
|
* No description
|
|
3472
3402
|
*
|
|
@@ -3842,16 +3772,13 @@ class Layers extends LayersService {
|
|
|
3842
3772
|
updateQueryLayer(configuration) {
|
|
3843
3773
|
return this.patchQueryLayerService(configuration.name, configuration);
|
|
3844
3774
|
}
|
|
3845
|
-
async remove(name) {
|
|
3846
|
-
await this.deleteResources({ names: [name] });
|
|
3847
|
-
return name;
|
|
3848
|
-
}
|
|
3849
3775
|
}
|
|
3850
3776
|
function isTileLayerService(layer) {
|
|
3851
3777
|
return [exports.LayerServiceType.PostgresTileLayerService, exports.LayerServiceType.RemoteTileLayerService].includes(layer.configuration?.layerType);
|
|
3852
3778
|
}
|
|
3853
3779
|
|
|
3854
3780
|
const RESOURCE_TEMP_WORKSPACE = "temp";
|
|
3781
|
+
const generateFirstLatinLetter = nanoid.customAlphabet("abcdefghijklmnopqrstuvwxyz", 1);
|
|
3855
3782
|
exports.ResourceSeparator = void 0;
|
|
3856
3783
|
(function (ResourceSeparator) {
|
|
3857
3784
|
ResourceSeparator["Server"] = ".";
|
|
@@ -3863,7 +3790,7 @@ class Names {
|
|
|
3863
3790
|
}
|
|
3864
3791
|
/** Generates unique identifier */
|
|
3865
3792
|
createId() {
|
|
3866
|
-
return generateId();
|
|
3793
|
+
return generateFirstLatinLetter() + generateId().slice(1);
|
|
3867
3794
|
}
|
|
3868
3795
|
/** Generates new resource name using for client\server interactions */
|
|
3869
3796
|
createResourceName(params = {}) {
|
|
@@ -3948,20 +3875,6 @@ class ProjectsService extends Service {
|
|
|
3948
3875
|
createProject(data) {
|
|
3949
3876
|
return this.http.post(`/projects`, data).json();
|
|
3950
3877
|
}
|
|
3951
|
-
/**
|
|
3952
|
-
* No description
|
|
3953
|
-
*
|
|
3954
|
-
* @tags Projects
|
|
3955
|
-
* @name DeleteResources
|
|
3956
|
-
* @operationId ProjectsController_DeleteResources
|
|
3957
|
-
* @summary Bulk delete resources.
|
|
3958
|
-
* @request DELETE:/projects
|
|
3959
|
-
* @secure
|
|
3960
|
-
* @response `200` OK
|
|
3961
|
-
*/
|
|
3962
|
-
deleteResources(query) {
|
|
3963
|
-
return this.http.delete(`/projects`, null, query).json();
|
|
3964
|
-
}
|
|
3965
3878
|
/**
|
|
3966
3879
|
* No description
|
|
3967
3880
|
*
|
|
@@ -4148,10 +4061,6 @@ class Projects extends ProjectsService {
|
|
|
4148
4061
|
update(resource) {
|
|
4149
4062
|
return this.updateProject(resource.name, resource);
|
|
4150
4063
|
}
|
|
4151
|
-
async remove(name) {
|
|
4152
|
-
await this.deleteResources({ names: [name] });
|
|
4153
|
-
return name;
|
|
4154
|
-
}
|
|
4155
4064
|
}
|
|
4156
4065
|
function isProjectContentItems(v) {
|
|
4157
4066
|
return v !== null && v !== undefined;
|
|
@@ -4755,20 +4664,6 @@ class TablesService extends Service {
|
|
|
4755
4664
|
createTable(data) {
|
|
4756
4665
|
return this.http.post(`/tables`, data).json();
|
|
4757
4666
|
}
|
|
4758
|
-
/**
|
|
4759
|
-
* No description
|
|
4760
|
-
*
|
|
4761
|
-
* @tags Tables
|
|
4762
|
-
* @name DeleteResources
|
|
4763
|
-
* @operationId TablesController_DeleteResources
|
|
4764
|
-
* @summary Bulk delete resources.
|
|
4765
|
-
* @request DELETE:/tables
|
|
4766
|
-
* @secure
|
|
4767
|
-
* @response `200` OK
|
|
4768
|
-
*/
|
|
4769
|
-
deleteResources(query) {
|
|
4770
|
-
return this.http.delete(`/tables`, null, query).json();
|
|
4771
|
-
}
|
|
4772
4667
|
/**
|
|
4773
4668
|
* No description
|
|
4774
4669
|
*
|
|
@@ -4994,10 +4889,6 @@ class Tables extends TablesService {
|
|
|
4994
4889
|
update(table) {
|
|
4995
4890
|
return this.updateTable(table.name, table);
|
|
4996
4891
|
}
|
|
4997
|
-
async remove(name) {
|
|
4998
|
-
await this.deleteResources({ names: [name] });
|
|
4999
|
-
return name;
|
|
5000
|
-
}
|
|
5001
4892
|
}
|
|
5002
4893
|
|
|
5003
4894
|
/* eslint-disable */
|