@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/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,16 +3771,13 @@ 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);
3851
3777
  }
3852
3778
 
3853
3779
  const RESOURCE_TEMP_WORKSPACE = "temp";
3780
+ const generateFirstLatinLetter = customAlphabet("abcdefghijklmnopqrstuvwxyz", 1);
3854
3781
  var ResourceSeparator;
3855
3782
  (function (ResourceSeparator) {
3856
3783
  ResourceSeparator["Server"] = ".";
@@ -3862,7 +3789,7 @@ class Names {
3862
3789
  }
3863
3790
  /** Generates unique identifier */
3864
3791
  createId() {
3865
- return generateId();
3792
+ return generateFirstLatinLetter() + generateId().slice(1);
3866
3793
  }
3867
3794
  /** Generates new resource name using for client\server interactions */
3868
3795
  createResourceName(params = {}) {
@@ -3947,20 +3874,6 @@ class ProjectsService extends Service {
3947
3874
  createProject(data) {
3948
3875
  return this.http.post(`/projects`, data).json();
3949
3876
  }
3950
- /**
3951
- * No description
3952
- *
3953
- * @tags Projects
3954
- * @name DeleteResources
3955
- * @operationId ProjectsController_DeleteResources
3956
- * @summary Bulk delete resources.
3957
- * @request DELETE:/projects
3958
- * @secure
3959
- * @response `200` OK
3960
- */
3961
- deleteResources(query) {
3962
- return this.http.delete(`/projects`, null, query).json();
3963
- }
3964
3877
  /**
3965
3878
  * No description
3966
3879
  *
@@ -4147,10 +4060,6 @@ class Projects extends ProjectsService {
4147
4060
  update(resource) {
4148
4061
  return this.updateProject(resource.name, resource);
4149
4062
  }
4150
- async remove(name) {
4151
- await this.deleteResources({ names: [name] });
4152
- return name;
4153
- }
4154
4063
  }
4155
4064
  function isProjectContentItems(v) {
4156
4065
  return v !== null && v !== undefined;
@@ -4754,20 +4663,6 @@ class TablesService extends Service {
4754
4663
  createTable(data) {
4755
4664
  return this.http.post(`/tables`, data).json();
4756
4665
  }
4757
- /**
4758
- * No description
4759
- *
4760
- * @tags Tables
4761
- * @name DeleteResources
4762
- * @operationId TablesController_DeleteResources
4763
- * @summary Bulk delete resources.
4764
- * @request DELETE:/tables
4765
- * @secure
4766
- * @response `200` OK
4767
- */
4768
- deleteResources(query) {
4769
- return this.http.delete(`/tables`, null, query).json();
4770
- }
4771
4666
  /**
4772
4667
  * No description
4773
4668
  *
@@ -4993,10 +4888,6 @@ class Tables extends TablesService {
4993
4888
  update(table) {
4994
4889
  return this.updateTable(table.name, table);
4995
4890
  }
4996
- async remove(name) {
4997
- await this.deleteResources({ names: [name] });
4998
- return name;
4999
- }
5000
4891
  }
5001
4892
 
5002
4893
  /* eslint-disable */