@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/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/existsById/{resourceId}
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/existsById/${resourceId}`).json();
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,10 +3772,6 @@ 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);
@@ -3949,20 +3875,6 @@ class ProjectsService extends Service {
3949
3875
  createProject(data) {
3950
3876
  return this.http.post(`/projects`, data).json();
3951
3877
  }
3952
- /**
3953
- * No description
3954
- *
3955
- * @tags Projects
3956
- * @name DeleteResources
3957
- * @operationId ProjectsController_DeleteResources
3958
- * @summary Bulk delete resources.
3959
- * @request DELETE:/projects
3960
- * @secure
3961
- * @response `200` OK
3962
- */
3963
- deleteResources(query) {
3964
- return this.http.delete(`/projects`, null, query).json();
3965
- }
3966
3878
  /**
3967
3879
  * No description
3968
3880
  *
@@ -4149,10 +4061,6 @@ class Projects extends ProjectsService {
4149
4061
  update(resource) {
4150
4062
  return this.updateProject(resource.name, resource);
4151
4063
  }
4152
- async remove(name) {
4153
- await this.deleteResources({ names: [name] });
4154
- return name;
4155
- }
4156
4064
  }
4157
4065
  function isProjectContentItems(v) {
4158
4066
  return v !== null && v !== undefined;
@@ -4756,20 +4664,6 @@ class TablesService extends Service {
4756
4664
  createTable(data) {
4757
4665
  return this.http.post(`/tables`, data).json();
4758
4666
  }
4759
- /**
4760
- * No description
4761
- *
4762
- * @tags Tables
4763
- * @name DeleteResources
4764
- * @operationId TablesController_DeleteResources
4765
- * @summary Bulk delete resources.
4766
- * @request DELETE:/tables
4767
- * @secure
4768
- * @response `200` OK
4769
- */
4770
- deleteResources(query) {
4771
- return this.http.delete(`/tables`, null, query).json();
4772
- }
4773
4667
  /**
4774
4668
  * No description
4775
4669
  *
@@ -4995,10 +4889,6 @@ class Tables extends TablesService {
4995
4889
  update(table) {
4996
4890
  return this.updateTable(table.name, table);
4997
4891
  }
4998
- async remove(name) {
4999
- await this.deleteResources({ names: [name] });
5000
- return name;
5001
- }
5002
4892
  }
5003
4893
 
5004
4894
  /* eslint-disable */