@evergis/api 5.0.50 → 5.0.53

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Everpoint
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Everpoint
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
- # @evergis/api
2
-
3
- Библиотека API.
4
-
5
- ### Генерирование API
6
-
7
- ```shell
8
- $ yarn generate
9
- ```
10
-
11
- ***ВАЖНО!!!***: Никогда и ни при каких обстоятельствах нельзя вручную править файлы,
12
- размещенные в директории `src/__generated__`!
1
+ # @evergis/api
2
+
3
+ Библиотека API.
4
+
5
+ ### Генерирование API
6
+
7
+ ```shell
8
+ $ yarn generate
9
+ ```
10
+
11
+ ***ВАЖНО!!!***: Никогда и ни при каких обстоятельствах нельзя вручную править файлы,
12
+ размещенные в директории `src/__generated__`!
@@ -1,5 +1,5 @@
1
1
  import { Service } from './Service';
2
- import { AccessControlListDc, CopyResourceResultDc, CopyResourcesPayload, CreateDirectoryDc, CreateFile1Payload, CreateFilePayload, CreateSymlinkDc, CustomResourceDc, DeleteResourceParams, ExtendedCatalogResourceDc, FailedCatalogConfigurationDc, GetFileParams, GetTagsParams, HeadFileParams, ListConfigurationsDc, ListResourcesDc, MoveResourceDc, PagedResourcesListDc, PagedTagsListDc, PatchConfigurationDc, PatchResourceDc, PostGetAllParams, PutTagsPayload, ResourceParentDc, SetPermissionsPayload, SucceedCatalogConfigurationDc, ZipExtractRequestDc } from './data-contracts';
2
+ import { AccessControlListDc, CopyResourceResultDc, CopyResourcesPayload, CreateDirectoryDc, CreateFile1Payload, CreateFilePayload, CreateSymlinkDc, CustomResourceDc, DeleteResourceParams, ExtendedCatalogResourceDc, FailedCatalogConfigurationDc, GetFileParams, GetTagsParams, HeadFileParams, ListConfigurationsDc, ListResourcesDc, MoveResourceDc, PagedResourcesListDc, PagedTagsListDc, PatchConfigurationDc, PatchResourceDc, PostGetAllParams, PutTagsPayload, ResourceLocationDc, ResourceLocationNodeDc, ResourceParentDc, SetPermissionsPayload, SucceedCatalogConfigurationDc, ZipExtractRequestDc } from './data-contracts';
3
3
  /**
4
4
  * @title Spatial Processing Gateway API
5
5
  * @version 1.5.1.0
@@ -102,6 +102,19 @@ export declare class CatalogService extends Service {
102
102
  * @response `200` OK
103
103
  */
104
104
  deleteResource({ resourceId, ...query }: DeleteResourceParams): Promise<void>;
105
+ /**
106
+ * No description
107
+ *
108
+ * @tags Catalog
109
+ * @name ResourceLocation
110
+ * @operationId CatalogController_ResourceLocation
111
+ * @summary Locate a resource in the tree: the chain of nodes from the root down to the resource itself,
112
+ each with its position among its siblings.
113
+ * @request POST:/resources/location
114
+ * @secure
115
+ * @response `200` OK
116
+ */
117
+ resourceLocation(data: ResourceLocationDc): Promise<ResourceLocationNodeDc[]>;
105
118
  /**
106
119
  * No description
107
120
  *
@@ -1,5 +1,5 @@
1
1
  import { Service } from './Service';
2
- import { SrInfo } from './data-contracts';
2
+ import { GetWktRepresentationParams, SrInfo } from './data-contracts';
3
3
  /**
4
4
  * @title Spatial Processing Gateway API
5
5
  * @version 1.5.1.0
@@ -41,5 +41,5 @@ export declare class SpatialReferencesService extends Service {
41
41
  * @secure
42
42
  * @response `200` OK
43
43
  */
44
- getWktRepresentation(name: string): Promise<string>;
44
+ getWktRepresentation({ name, ...query }: GetWktRepresentationParams): Promise<string>;
45
45
  }
@@ -759,7 +759,10 @@ export interface CreateDirectoryDc {
759
759
  isSystem?: boolean;
760
760
  /** Resource icon. */
761
761
  icon?: string;
762
- /** Rewrite if exists. */
762
+ /**
763
+ * Rewrite if exists.
764
+ * @deprecated
765
+ */
763
766
  rewrite?: boolean;
764
767
  }
765
768
  /**
@@ -2924,6 +2927,27 @@ export interface ResourceInfoDc {
2924
2927
  */
2925
2928
  deletedAt?: string;
2926
2929
  }
2930
+ /**
2931
+ * Get resource location data contract.
2932
+ */
2933
+ export interface ResourceLocationDc {
2934
+ /** Resource id. */
2935
+ resourceId: string;
2936
+ /** Order by result. */
2937
+ orderBy?: string[];
2938
+ }
2939
+ /**
2940
+ * A single node of the resource location chain.
2941
+ */
2942
+ export interface ResourceLocationNodeDc {
2943
+ /** Resource id. */
2944
+ resourceId?: string;
2945
+ /**
2946
+ * Zero based position of the resource among the siblings visible to the caller, ordered by name ascending.
2947
+ * @format int32
2948
+ */
2949
+ offset?: number;
2950
+ }
2927
2951
  /**
2928
2952
  * Resource parent.
2929
2953
  */
@@ -3691,6 +3715,8 @@ resource updates.
3691
3715
  export interface TaskResourceUpdateDto {
3692
3716
  /** Configurations. */
3693
3717
  configuration?: any;
3718
+ /** Import method. */
3719
+ importMethod?: string;
3694
3720
  /** User ui configuration. */
3695
3721
  uiConfiguration?: any;
3696
3722
  }
@@ -4966,6 +4992,8 @@ export interface GetProjectsInfoParams {
4966
4992
  export interface GetAllScriptMethodsParams {
4967
4993
  /** ResourceId. */
4968
4994
  resourceId?: string;
4995
+ /** Import method. */
4996
+ importMethod?: string;
4969
4997
  }
4970
4998
  export type RunScriptPayload = any;
4971
4999
  export interface RunScriptParams {
@@ -5073,6 +5101,12 @@ export interface RemovePolicyParams {
5073
5101
  /** Use role the policy is applied to. */
5074
5102
  role?: string;
5075
5103
  }
5104
+ export interface GetWktRepresentationParams {
5105
+ /** Pretty print WKT. */
5106
+ prettyPrint?: boolean;
5107
+ /** Spatial reference name. */
5108
+ name: string;
5109
+ }
5076
5110
  export interface RemoveSymbolCategoryParams {
5077
5111
  /**
5078
5112
  * Remove symbols in category.
package/dist/api.esm.js CHANGED
@@ -1946,6 +1946,21 @@ class CatalogService extends Service {
1946
1946
  deleteResource({ resourceId, ...query }) {
1947
1947
  return this.http.delete(`/resources/${resourceId}`, null, query).then(() => { });
1948
1948
  }
1949
+ /**
1950
+ * No description
1951
+ *
1952
+ * @tags Catalog
1953
+ * @name ResourceLocation
1954
+ * @operationId CatalogController_ResourceLocation
1955
+ * @summary Locate a resource in the tree: the chain of nodes from the root down to the resource itself,
1956
+ each with its position among its siblings.
1957
+ * @request POST:/resources/location
1958
+ * @secure
1959
+ * @response `200` OK
1960
+ */
1961
+ resourceLocation(data) {
1962
+ return this.http.post(`/resources/location`, data).json();
1963
+ }
1949
1964
  /**
1950
1965
  * No description
1951
1966
  *
@@ -4810,8 +4825,8 @@ class SpatialReferencesService extends Service {
4810
4825
  * @secure
4811
4826
  * @response `200` OK
4812
4827
  */
4813
- getWktRepresentation(name) {
4814
- return this.http.get(`/srs/${name}/wkt`).text();
4828
+ getWktRepresentation({ name, ...query }) {
4829
+ return this.http.get(`/srs/${name}/wkt`, query).text();
4815
4830
  }
4816
4831
  }
4817
4832