@evergis/api 5.0.44 → 5.0.46

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, GetTagsParams, ListConfigurationsDc, ListResourcesDc, MoveResourceDc, PagedResourcesListDc, PagedTagsListDc, PatchResourceDc, PostGetAllParams, PutTagsPayload, ResourceParentDc, SetPermissionsPayload, SucceedCatalogConfigurationDc, ZipExtractRequestDc } from './data-contracts';
2
+ import { AccessControlListDc, CopyResourceResultDc, CopyResourcesPayload, CreateDirectoryDc, CreateFile1Payload, CreateFilePayload, CreateSymlinkDc, CustomResourceDc, DeleteResourceParams, ExtendedCatalogResourceDc, FailedCatalogConfigurationDc, GetTagsParams, ListConfigurationsDc, ListResourcesDc, MoveResourceDc, PagedResourcesListDc, PagedTagsListDc, PatchConfigurationDc, PatchResourceDc, PostGetAllParams, PutTagsPayload, ResourceParentDc, SetPermissionsPayload, SucceedCatalogConfigurationDc, ZipExtractRequestDc } from './data-contracts';
3
3
  /**
4
4
  * @title Spatial Processing Gateway API
5
5
  * @version 1.5.1.0
@@ -121,11 +121,23 @@ export declare class CatalogService extends Service {
121
121
  * @name PostListConfigurations
122
122
  * @operationId CatalogController_PostListConfigurations
123
123
  * @summary Get configurations for resources.
124
- * @request POST:/resources/configurations
124
+ * @request POST:/resources/custom/configurations
125
125
  * @secure
126
126
  * @response `200` OK
127
127
  */
128
128
  postListConfigurations(data: ListConfigurationsDc): Promise<(SucceedCatalogConfigurationDc | FailedCatalogConfigurationDc)[]>;
129
+ /**
130
+ * No description
131
+ *
132
+ * @tags Catalog
133
+ * @name PatchConfiguration
134
+ * @operationId CatalogController_PatchConfiguration
135
+ * @summary Partially update resource configuration with JSON Patch operations.
136
+ * @request PATCH:/resources/custom/configurations
137
+ * @secure
138
+ * @response `200` OK
139
+ */
140
+ patchConfiguration(data: PatchConfigurationDc): Promise<SucceedCatalogConfigurationDc>;
129
141
  /**
130
142
  * No description
131
143
  *
@@ -1714,6 +1714,9 @@ export interface InvitationViewDc {
1714
1714
  granteeUserName?: string;
1715
1715
  status?: ShareInvitationStatus;
1716
1716
  }
1717
+ export interface JsonPatchDocument {
1718
+ operations?: Operation[];
1719
+ }
1717
1720
  /**
1718
1721
  * Specifies the available types of layer services that can be used within the application.
1719
1722
  */
@@ -2162,6 +2165,14 @@ export type PagedResourcesListDc = PagedListCatalogResourceDc & object;
2162
2165
  * Paged resources list.
2163
2166
  */
2164
2167
  export type PagedTagsListDc = PagedListString & object;
2168
+ /**
2169
+ * Request for partial update of a resource configuration.
2170
+ */
2171
+ export interface PatchConfigurationDc {
2172
+ /** Unique identifier of the resource. */
2173
+ resourceId: string;
2174
+ operations: JsonPatchDocument;
2175
+ }
2165
2176
  /**
2166
2177
  * Patch resource request.
2167
2178
  */
@@ -2174,8 +2185,6 @@ export interface PatchResourceDc {
2174
2185
  tags?: string[];
2175
2186
  /** Resource icon. */
2176
2187
  icon?: string;
2177
- /** The JSON configuration, or null if not set. */
2178
- configuration?: any;
2179
2188
  }
2180
2189
  /**
2181
2190
  * Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed.
@@ -3420,8 +3429,8 @@ export type SucceedCatalogConfigurationDc = CatalogConfigurationDc & {
3420
3429
  resourceId?: string | null;
3421
3430
  /** JSON path used to retrieve a specific part of the configuration. */
3422
3431
  configurationPath?: string | null;
3423
- /** The retrieved configuration data as a JSON string. */
3424
- configurationData?: string | null;
3432
+ /** The retrieved configuration data, embedded as JSON. */
3433
+ configurationData?: any;
3425
3434
  /** Type discriminator for polymorphic serialization. */
3426
3435
  type?: string | null;
3427
3436
  };
package/dist/api.esm.js CHANGED
@@ -1887,15 +1887,29 @@ class CatalogService extends Service {
1887
1887
  * @name PostListConfigurations
1888
1888
  * @operationId CatalogController_PostListConfigurations
1889
1889
  * @summary Get configurations for resources.
1890
- * @request POST:/resources/configurations
1890
+ * @request POST:/resources/custom/configurations
1891
1891
  * @secure
1892
1892
  * @response `200` OK
1893
1893
  */
1894
1894
  postListConfigurations(data) {
1895
1895
  return this.http
1896
- .post(`/resources/configurations`, data)
1896
+ .post(`/resources/custom/configurations`, data)
1897
1897
  .json();
1898
1898
  }
1899
+ /**
1900
+ * No description
1901
+ *
1902
+ * @tags Catalog
1903
+ * @name PatchConfiguration
1904
+ * @operationId CatalogController_PatchConfiguration
1905
+ * @summary Partially update resource configuration with JSON Patch operations.
1906
+ * @request PATCH:/resources/custom/configurations
1907
+ * @secure
1908
+ * @response `200` OK
1909
+ */
1910
+ patchConfiguration(data) {
1911
+ return this.http.patch(`/resources/custom/configurations`, data).json();
1912
+ }
1899
1913
  /**
1900
1914
  * No description
1901
1915
  *