@evergis/api 4.1.8 → 4.1.11

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,11 +1,11 @@
1
- # @evergis/api
2
-
3
- Библиотека API.
4
-
5
- ### Генерирование API
6
-
7
- ```shell
8
- $ yarn generate
9
- ```
10
-
11
- ***ВАЖНО!!!***: Никогда и ни при каких обстоятельствах нельзя вручную править файлы, размещенные в директории `lib/__generated__`!
1
+ # @evergis/api
2
+
3
+ Библиотека API.
4
+
5
+ ### Генерирование API
6
+
7
+ ```shell
8
+ $ yarn generate
9
+ ```
10
+
11
+ ***ВАЖНО!!!***: Никогда и ни при каких обстоятельствах нельзя вручную править файлы, размещенные в директории `src/__generated__`!
@@ -97,7 +97,7 @@ export declare class CatalogService extends Service {
97
97
  * @name MoveResource
98
98
  * @operationId CatalogController_MoveResource
99
99
  * @summary Rename resource with given id.
100
- * @request POST:/resources/{resourceId}/move
100
+ * @request POST:/resources/move/{resourceId}
101
101
  * @secure
102
102
  * @response `200` OK
103
103
  */
@@ -1,5 +1,5 @@
1
1
  import { Service } from './Service';
2
- import { AttributeDefinitionDc, AvailiableValuesDc, EqlRequestDc, GetAvailiableLayerParametersParams, GetLayerParameters1Params, GetLayerParametersParams, PagedFeaturesListDc, RemoveLayerParameterValueParams, SetLayerParameterValueParams, SetLayerParametersParams, SetLayerParametersPayload } from './data-contracts';
2
+ import { AttributeDefinitionDc, AvailiableValuesDc, EqlRequestDc, GetAvailiableLayerParametersParams, GetLayerParameters1Params, GetLayerParametersParams, GetPagedQueryResultParams, GetQueryHistoryParams, GetVectorTileParams, PagedFeaturesListDc, PagedListQueryHistoryDc, RemoveLayerParameterValueParams, SetLayerParameterValueParams, SetLayerParametersParams, SetLayerParametersPayload } from './data-contracts';
3
3
  /**
4
4
  * @title Spatial Processing Core API
5
5
  * @version 1.5.1.0
@@ -17,7 +17,7 @@ export declare class EqlService extends Service {
17
17
  * @secure
18
18
  * @response `200` OK
19
19
  */
20
- getPagedQueryResult(data: EqlRequestDc): Promise<PagedFeaturesListDc>;
20
+ getPagedQueryResult(query: GetPagedQueryResultParams, data: EqlRequestDc): Promise<PagedFeaturesListDc>;
21
21
  /**
22
22
  * No description
23
23
  *
@@ -30,6 +30,30 @@ export declare class EqlService extends Service {
30
30
  * @response `200` OK
31
31
  */
32
32
  getQueryDescription(data: EqlRequestDc): Promise<Record<string, AttributeDefinitionDc>>;
33
+ /**
34
+ * No description
35
+ *
36
+ * @tags Eql
37
+ * @name GetVectorTile
38
+ * @operationId EqlController_GetVectorTile
39
+ * @summary Get vector tile by query.
40
+ * @request GET:/eql/vt/{z}/{x}/{y}.pbf
41
+ * @secure
42
+ * @response `200` OK
43
+ */
44
+ getVectorTile({ z, x, y, ...query }: GetVectorTileParams): Promise<void>;
45
+ /**
46
+ * No description
47
+ *
48
+ * @tags Eql
49
+ * @name GetQueryHistory
50
+ * @operationId EqlController_GetQueryHistory
51
+ * @summary Get EQL requests history.
52
+ * @request GET:/eql/query/history
53
+ * @secure
54
+ * @response `200` OK
55
+ */
56
+ getQueryHistory(query: GetQueryHistoryParams): Promise<PagedListQueryHistoryDc>;
33
57
  /**
34
58
  * No description
35
59
  *
@@ -102,4 +126,40 @@ export declare class EqlService extends Service {
102
126
  * @response `200` OK
103
127
  */
104
128
  getAvailiableLayerParameters(query: GetAvailiableLayerParametersParams): Promise<AvailiableValuesDc>;
129
+ /**
130
+ * No description
131
+ *
132
+ * @tags Eql
133
+ * @name Get
134
+ * @operationId EqlController_Get
135
+ * @summary Returns the query by its id.
136
+ * @request GET:/eql/query/{id}
137
+ * @secure
138
+ * @response `200` OK
139
+ */
140
+ get(id: string): Promise<EqlRequestDc>;
141
+ /**
142
+ * No description
143
+ *
144
+ * @tags Eql
145
+ * @name Update
146
+ * @operationId EqlController_Update
147
+ * @summary Replaces a query and gives it a new id.
148
+ * @request POST:/eql/query/{id}
149
+ * @secure
150
+ * @response `200` OK
151
+ */
152
+ update(id: string, data: EqlRequestDc): Promise<void>;
153
+ /**
154
+ * No description
155
+ *
156
+ * @tags Eql
157
+ * @name Create
158
+ * @operationId EqlController_Create
159
+ * @summary Creates a new query.
160
+ * @request POST:/eql/query/save
161
+ * @secure
162
+ * @response `200` OK
163
+ */
164
+ create(data: EqlRequestDc): Promise<string>;
105
165
  }
@@ -510,18 +510,6 @@ export declare class LayersService extends Service {
510
510
  * @response `200` OK
511
511
  */
512
512
  validateExpression({ layerName, ...query }: ValidateExpressionParams): Promise<ExpressionValidationResultDc>;
513
- /**
514
- * No description
515
- *
516
- * @tags Layers
517
- * @name FlipCoordinates
518
- * @operationId LayersController_FlipCoordinates
519
- * @summary Flip geometry coordinates.
520
- * @request POST:/layers/{layerName}/flip-coordinates
521
- * @secure
522
- * @response `200` OK
523
- */
524
- flipCoordinates(layerName: string): Promise<ResourceInfoDc | ServiceInfoDc>;
525
513
  /**
526
514
  * No description
527
515
  *
@@ -1,5 +1,5 @@
1
1
  import { Service } from './Service';
2
- import { BulkOperationResultDc, CatalogConfigurationDc, ConfigurationType, DeleteResourcesParams2, EnvelopeDc, ExtendedProjectInfoDc, ExtendedProjectLayersInfo, GetProjectEnvelopeParams, GetProjectsInfoParams, GetProjectsListParams, Operation, PagedListProjectInfoDc, PatchProjectConfigurationPayload, PutProjectConfigurationPayload, ResourceDependenciesDc, UpdateProjectV2Payload } from './data-contracts';
2
+ import { BulkOperationResultDc, CatalogConfigurationDc, DeleteProjectConfigurationParams, DeleteResourcesParams2, EnvelopeDc, ExtendedProjectInfoDc, ExtendedProjectLayersInfo, GetProjectConfigurationParams, GetProjectEnvelopeParams, GetProjectsInfoParams, GetProjectsListParams, Operation, PagedListProjectInfoDc, PatchProjectConfigurationParams, PatchProjectConfigurationPayload, PutProjectConfigurationParams, PutProjectConfigurationPayload, ResourceDependenciesDc, UpdateProjectV2Payload } from './data-contracts';
3
3
  /**
4
4
  * @title Spatial Processing Core API
5
5
  * @version 1.5.1.0
@@ -133,11 +133,11 @@ export declare class ProjectsService extends Service {
133
133
  * @name PatchProjectConfiguration
134
134
  * @operationId ProjectsController_PatchProjectConfiguration
135
135
  * @summary Applies partial updates using JSON Patch.
136
- * @request PATCH:/projects/{name}/configuration/{type}
136
+ * @request PATCH:/projects/{name}/configuration
137
137
  * @secure
138
138
  * @response `200` OK
139
139
  */
140
- patchProjectConfiguration(name: string, type: ConfigurationType, data: PatchProjectConfigurationPayload): Promise<CatalogConfigurationDc>;
140
+ patchProjectConfiguration({ name, ...query }: PatchProjectConfigurationParams, data: PatchProjectConfigurationPayload): Promise<CatalogConfigurationDc>;
141
141
  /**
142
142
  * No description
143
143
  *
@@ -145,11 +145,11 @@ export declare class ProjectsService extends Service {
145
145
  * @name PutProjectConfiguration
146
146
  * @operationId ProjectsController_PutProjectConfiguration
147
147
  * @summary Creates or updates configuration (full replacement).
148
- * @request PUT:/projects/{name}/configuration/{type}
148
+ * @request PUT:/projects/{name}/configuration
149
149
  * @secure
150
150
  * @response `200` OK
151
151
  */
152
- putProjectConfiguration(name: string, type: ConfigurationType, data: PutProjectConfigurationPayload): Promise<CatalogConfigurationDc>;
152
+ putProjectConfiguration({ name, ...query }: PutProjectConfigurationParams, data: PutProjectConfigurationPayload): Promise<CatalogConfigurationDc>;
153
153
  /**
154
154
  * No description
155
155
  *
@@ -157,11 +157,11 @@ export declare class ProjectsService extends Service {
157
157
  * @name GetProjectConfiguration
158
158
  * @operationId ProjectsController_GetProjectConfiguration
159
159
  * @summary Gets configuration for a resource and type.
160
- * @request GET:/projects/{name}/configuration/{type}
160
+ * @request GET:/projects/{name}/configuration
161
161
  * @secure
162
162
  * @response `200` OK
163
163
  */
164
- getProjectConfiguration(name: string, type: ConfigurationType): Promise<CatalogConfigurationDc>;
164
+ getProjectConfiguration({ name, ...query }: GetProjectConfigurationParams): Promise<CatalogConfigurationDc>;
165
165
  /**
166
166
  * No description
167
167
  *
@@ -169,11 +169,11 @@ export declare class ProjectsService extends Service {
169
169
  * @name DeleteProjectConfiguration
170
170
  * @operationId ProjectsController_DeleteProjectConfiguration
171
171
  * @summary Creates or updates configuration (full replacement).
172
- * @request DELETE:/projects/{name}/configuration/{type}
172
+ * @request DELETE:/projects/{name}/configuration
173
173
  * @secure
174
174
  * @response `200` OK
175
175
  */
176
- deleteProjectConfiguration(name: string, type: ConfigurationType): Promise<CatalogConfigurationDc>;
176
+ deleteProjectConfiguration({ name, ...query }: DeleteProjectConfigurationParams): Promise<CatalogConfigurationDc>;
177
177
  /**
178
178
  * No description
179
179
  *
@@ -1,5 +1,5 @@
1
1
  import { Service } from './Service';
2
- import { GetVectorTileParams } from './data-contracts';
2
+ import { GetVectorTileParams2 } from './data-contracts';
3
3
  /**
4
4
  * @title Spatial Processing Core API
5
5
  * @version 1.5.1.0
@@ -17,5 +17,5 @@ export declare class VectorTileService extends Service {
17
17
  * @secure
18
18
  * @response `200` OK
19
19
  */
20
- getVectorTile({ name, z, x, y, ...query }: GetVectorTileParams): Promise<void>;
20
+ getVectorTile({ name, z, x, y, ...query }: GetVectorTileParams2): Promise<void>;
21
21
  }