@evergis/api 5.0.31 → 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/api.esm.js CHANGED
@@ -1701,20 +1701,6 @@ class CatalogService extends Service {
1701
1701
  deleteResource({ resourceId, ...query }) {
1702
1702
  return this.http.delete(`/resources/${resourceId}`, null, query).then(() => { });
1703
1703
  }
1704
- /**
1705
- * No description
1706
- *
1707
- * @tags Catalog
1708
- * @name ResourceExistsByPath
1709
- * @operationId CatalogController_ResourceExistsByPathAsync
1710
- * @summary Check resource path is existing.
1711
- * @request GET:/resources/existsByPath/{path}
1712
- * @secure
1713
- * @response `200` OK
1714
- */
1715
- resourceExistsByPath(path) {
1716
- return this.http.get(`/resources/existsByPath/${path}`).json();
1717
- }
1718
1704
  /**
1719
1705
  * No description
1720
1706
  *
@@ -1722,68 +1708,12 @@ class CatalogService extends Service {
1722
1708
  * @name ResourceExistsById
1723
1709
  * @operationId CatalogController_ResourceExistsByIdAsync
1724
1710
  * @summary Check resource id is existing.
1725
- * @request GET:/resources/existsById/{resourceId}
1711
+ * @request GET:/resources/exists/{resourceId}
1726
1712
  * @secure
1727
1713
  * @response `200` OK
1728
1714
  */
1729
1715
  resourceExistsById(resourceId) {
1730
- return this.http.get(`/resources/existsById/${resourceId}`).json();
1731
- }
1732
- /**
1733
- * No description
1734
- *
1735
- * @tags Catalog
1736
- * @name ResourceExistsByName
1737
- * @operationId CatalogController_ResourceExistsByNameAsync
1738
- * @summary Check resource path exists.
1739
- * @request GET:/resources/existsByName/{systemName}
1740
- * @secure
1741
- * @response `200` OK
1742
- */
1743
- resourceExistsByName(systemName) {
1744
- return this.http.get(`/resources/existsByName/${systemName}`).json();
1745
- }
1746
- /**
1747
- * No description
1748
- *
1749
- * @tags Catalog
1750
- * @name GetResourceByPath
1751
- * @operationId CatalogController_GetResourceByPath
1752
- * @summary Get resource with given path.
1753
- * @request GET:/resources/getByPath/{path}
1754
- * @secure
1755
- * @response `200` OK
1756
- */
1757
- getResourceByPath(path) {
1758
- return this.http.get(`/resources/getByPath/${path}`).json();
1759
- }
1760
- /**
1761
- * No description
1762
- *
1763
- * @tags Catalog
1764
- * @name PostGetResourceByPath
1765
- * @operationId CatalogController_PostGetResourceByPath
1766
- * @summary Get resource with given path.
1767
- * @request POST:/resources/getByPath
1768
- * @secure
1769
- * @response `200` OK
1770
- */
1771
- postGetResourceByPath(data) {
1772
- return this.http.post(`/resources/getByPath`, data).json();
1773
- }
1774
- /**
1775
- * No description
1776
- *
1777
- * @tags Catalog
1778
- * @name GetBySystemName
1779
- * @operationId CatalogController_GetBySystemName
1780
- * @summary Get resource with given system name.
1781
- * @request GET:/resources/getBySystemName/{systemName}
1782
- * @secure
1783
- * @response `200` OK
1784
- */
1785
- getBySystemName(systemName) {
1786
- return this.http.get(`/resources/getBySystemName/${systemName}`).json();
1716
+ return this.http.get(`/resources/exists/${resourceId}`).json();
1787
1717
  }
1788
1718
  /**
1789
1719
  * No description
@@ -1869,6 +1799,20 @@ class CatalogService extends Service {
1869
1799
  setPermissions1(resourceId, data) {
1870
1800
  return this.http.put(`/resources/${resourceId}/permissions`, data).then(() => { });
1871
1801
  }
1802
+ /**
1803
+ * No description
1804
+ *
1805
+ * @tags Catalog
1806
+ * @name GetPermissionsV2
1807
+ * @operationId CatalogController_GetPermissionsV2
1808
+ * @summary Set permissions to the resource.
1809
+ * @request GET:/resources/permissions/{resourceId}
1810
+ * @secure
1811
+ * @response `200` OK
1812
+ */
1813
+ getPermissionsV2(resourceId) {
1814
+ return this.http.get(`/resources/permissions/${resourceId}`).json();
1815
+ }
1872
1816
  /**
1873
1817
  * No description
1874
1818
  *
@@ -3452,20 +3396,6 @@ class LayersService extends Service {
3452
3396
  .post(`/layers`, data)
3453
3397
  .json();
3454
3398
  }
3455
- /**
3456
- * No description
3457
- *
3458
- * @tags Layers
3459
- * @name DeleteResources
3460
- * @operationId LayersController_DeleteResources
3461
- * @summary Bulk delete resources.
3462
- * @request DELETE:/layers
3463
- * @secure
3464
- * @response `200` OK
3465
- */
3466
- deleteResources(query) {
3467
- return this.http.delete(`/layers`, null, query).json();
3468
- }
3469
3399
  /**
3470
3400
  * No description
3471
3401
  *
@@ -3841,10 +3771,6 @@ class Layers extends LayersService {
3841
3771
  updateQueryLayer(configuration) {
3842
3772
  return this.patchQueryLayerService(configuration.name, configuration);
3843
3773
  }
3844
- async remove(name) {
3845
- await this.deleteResources({ names: [name] });
3846
- return name;
3847
- }
3848
3774
  }
3849
3775
  function isTileLayerService(layer) {
3850
3776
  return [LayerServiceType.PostgresTileLayerService, LayerServiceType.RemoteTileLayerService].includes(layer.configuration?.layerType);
@@ -3948,20 +3874,6 @@ class ProjectsService extends Service {
3948
3874
  createProject(data) {
3949
3875
  return this.http.post(`/projects`, data).json();
3950
3876
  }
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
3877
  /**
3966
3878
  * No description
3967
3879
  *
@@ -4148,10 +4060,6 @@ class Projects extends ProjectsService {
4148
4060
  update(resource) {
4149
4061
  return this.updateProject(resource.name, resource);
4150
4062
  }
4151
- async remove(name) {
4152
- await this.deleteResources({ names: [name] });
4153
- return name;
4154
- }
4155
4063
  }
4156
4064
  function isProjectContentItems(v) {
4157
4065
  return v !== null && v !== undefined;
@@ -4755,20 +4663,6 @@ class TablesService extends Service {
4755
4663
  createTable(data) {
4756
4664
  return this.http.post(`/tables`, data).json();
4757
4665
  }
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
4666
  /**
4773
4667
  * No description
4774
4668
  *
@@ -4994,10 +4888,6 @@ class Tables extends TablesService {
4994
4888
  update(table) {
4995
4889
  return this.updateTable(table.name, table);
4996
4890
  }
4997
- async remove(name) {
4998
- await this.deleteResources({ names: [name] });
4999
- return name;
5000
- }
5001
4891
  }
5002
4892
 
5003
4893
  /* eslint-disable */