@evergis/api 4.0.9 → 4.0.10

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) 2020 Kirill Protasov
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
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Kirill Protasov
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
21
  SOFTWARE.
package/README.md CHANGED
@@ -1,21 +1,21 @@
1
- # @evergis/api
2
-
3
- ```javascript
4
- import { Api } from '@evergis/api';
5
-
6
- const api = new Api({
7
- url: '/',
8
- });
9
- ```
10
-
11
- ## Possible Environment variables
12
-
13
- ```
14
-
15
- NODE_ENV = "development" | "test" | "production"
16
- URL = "string"
17
- LOGIN = "string"
18
- PASSWORD = "string"
19
- WORKSPACE = "string"
20
-
21
- ```
1
+ # @evergis/api
2
+
3
+ ```javascript
4
+ import { Api } from '@evergis/api';
5
+
6
+ const api = new Api({
7
+ url: '/',
8
+ });
9
+ ```
10
+
11
+ ## Possible Environment variables
12
+
13
+ ```
14
+
15
+ NODE_ENV = "development" | "test" | "production"
16
+ URL = "string"
17
+ LOGIN = "string"
18
+ PASSWORD = "string"
19
+ WORKSPACE = "string"
20
+
21
+ ```
package/dist/Api.d.ts CHANGED
@@ -6,7 +6,7 @@ import { DataSourceService } from './__generated__/DataSourceService';
6
6
  import { QueryTokenAccessService } from './__generated__/QueryTokenAccessService';
7
7
  import { SpatialReferencesService } from './__generated__/SpatialReferencesService';
8
8
  import { CatalogService } from './__generated__/CatalogService';
9
- import { Account, AccountPreview, BulkOperations, Cameras, ClientSettings, External, Eql, Feedback, FileUpload, Filters, General, Geocode, IceRouter, Import, Layers, Names, Notification, PortalSettings, Print, Projects, RemoteTaskManager, ResourceCatalog, Resources, Security, Statistic, Styles, Tables, Tools, VectorTiles } from './services';
9
+ import { Account, AccountPreview, BulkOperations, Cameras, ClientSettings, External, Eql, Feedback, FileUpload, Filters, Geocode, IceRouter, Import, Layers, Names, Notification, PortalSettings, Print, Projects, RemoteTaskManager, ResourceCatalog, Resources, Security, Statistic, Styles, Tables, Tools, VectorTiles } from './services';
10
10
  import { AuthenticateParams, LoginDc } from './__generated__/data-contracts';
11
11
  export declare type ApiParams = {
12
12
  url: string;
@@ -44,7 +44,6 @@ export declare class Api extends EventEmitter {
44
44
  readonly print: Print;
45
45
  readonly tools: Tools;
46
46
  readonly resourceCatalog: ResourceCatalog;
47
- readonly general: General;
48
47
  readonly account: Account;
49
48
  readonly accountPreview: AccountPreview;
50
49
  readonly external: External;
@@ -1,4 +1,4 @@
1
- import { AggregateAttributeParams, AggregationDataResultDc, AttributeDistinctsDc, BulkExtentsDc, BulkOperationResultDc, ClassifyDc, ClassifyParams, CreateFeaturesPayload, DeleteByConditionParams, DeleteFeatureParams, DeleteFeaturesParams, DeleteResourcesParams, DistinctsParams, EditAttributesInfoDc, EnvelopeDc, ExpressionValidationResultDc, FeatureDc, GetBulkExtentsParams, GetBulkExtentsPayload, GetBulkFeaturesPayload, GetByIdParams, GetFeatures1Params, GetFeaturesParametersDc, GetFilteredFeaturesCountDc, GetFilteredFeaturesCountParams, GetLayerExtentParams, GetLayerImageParams, GetLayersInfoParams, GetLayersListParams, GetRasterMetaParams7, GetTilesLayerImage1Params, GetTilesLayerImageParams, GetTilesLayerImageWithFormatAndDpiParams, LayerUpdateInfo, LayerUpdateInfoDc, LinearServiceConfigurationDc, NetCdfMetaDc, PagedBulkFeaturesListDc, PagedFeaturesListDc, PbfServiceConfigurationDc, PbfServiceInfoDc, PostgresTileCatalogServiceConfigurationDc, ProxyServiceInfoDc, PublishProxyServicePayload, PythonServiceConfigurationDc, PythonServiceInfoDc, QueryLayerServiceConfigurationDc, QueryLayerServiceInfoDc, RasterMetaDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfo, RemoteTileServiceInfoDc, ResourceDependenciesDc, ResourceInfoDc, RouteFeatureDc, RouteServiceConfigurationDc, ServiceInfoDc, ServiceListDc, SimpleSymbolDc, StyleDc, SubtractParams, SubtractPayload, TileCatalogServiceInfoDc, UniteParams, UnitePayload, UpdateFeaturePayload, UpdateProxyServicePayload, ValidateExpressionParams } from './data-contracts';
1
+ import { AggregateAttributeParams, AggregationDataResultDc, AttributeDistinctsDc, BulkExtentsDc, BulkOperationResultDc, ClassifyDc, ClassifyParams, CreateFeaturesPayload, DeleteByConditionParams, DeleteFeatureParams, DeleteFeaturesParams, DeleteResourcesParams, DistinctsParams, EditAttributesInfoDc, EnvelopeDc, ExpressionValidationResultDc, FeatureDc, GetBulkExtentsParams, GetBulkExtentsPayload, GetBulkFeaturesPayload, GetByIdParams, GetFeatures1Params, GetFeaturesParametersDc, GetFilteredFeaturesCountDc, GetFilteredFeaturesCountParams, GetLayerExtentParams, GetLayerImageParams, GetLayersInfoParams, GetLayersListParams, GetRasterMetaParams5, GetTilesLayerImage1Params, GetTilesLayerImageParams, GetTilesLayerImageWithFormatAndDpiParams, LayerUpdateInfoDc, LinearServiceConfigurationDc, NetCdfMetaDc, PagedBulkFeaturesListDc, PagedFeaturesListDc, PbfServiceConfigurationDc, PbfServiceInfoDc, PostgresTileCatalogServiceConfigurationDc, ProxyServiceInfoDc, PublishProxyServicePayload, PythonServiceConfigurationDc, PythonServiceInfoDc, QueryLayerServiceConfigurationDc, QueryLayerServiceInfoDc, RasterMetaDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfoDc, ResourceDependenciesDc, ResourceInfoDc, RouteFeatureDc, RouteServiceConfigurationDc, ServiceInfoDc, ServiceListDc, SimpleSymbolDc, StyleDc, SubtractParams, SubtractPayload, TileCatalogServiceInfoDc, UniteParams, UnitePayload, UpdateFeaturePayload, UpdateProxyServicePayload, ValidateExpressionParams } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -179,7 +179,7 @@ export declare class LayersService extends Service {
179
179
  * @operationId LayersController_UpdateMapboxService
180
180
  * @summary Update mapbox service.
181
181
  * @request PATCH:/layers/{name}#type=Mapbox
182
- * @response `default` Error
182
+ * @response `200` OK
183
183
  */
184
184
  updateMapboxService(name: string, data: PbfServiceConfigurationDc): Promise<PbfServiceInfoDc>;
185
185
  /**
@@ -190,7 +190,7 @@ export declare class LayersService extends Service {
190
190
  * @operationId LayersController_UpdatePythonService
191
191
  * @summary Update python service.
192
192
  * @request PATCH:/layers/{name}#type=Python
193
- * @response `default` Error
193
+ * @response `200` OK
194
194
  */
195
195
  updatePythonService(name: string, data: PythonServiceConfigurationDc): Promise<PythonServiceInfoDc>;
196
196
  /**
@@ -201,7 +201,7 @@ export declare class LayersService extends Service {
201
201
  * @operationId LayersController_UpdateProxyService
202
202
  * @summary Update Proxy Service.
203
203
  * @request PATCH:/layers/{name}#type=ProxyService
204
- * @response `default` Error
204
+ * @response `200` OK
205
205
  */
206
206
  updateProxyService(name: string, data: UpdateProxyServicePayload): Promise<ProxyServiceInfoDc | PbfServiceInfoDc | PythonServiceInfoDc>;
207
207
  /**
@@ -212,7 +212,7 @@ export declare class LayersService extends Service {
212
212
  * @operationId LayersController_UpdateTileCatalogService
213
213
  * @summary Update Postgres Tile Catalog Service.
214
214
  * @request PATCH:/layers/{name}#type=PostgresTileLayerService
215
- * @response `default` Error
215
+ * @response `200` OK
216
216
  */
217
217
  updateTileCatalogService(name: string, data: PostgresTileCatalogServiceConfigurationDc): Promise<TileCatalogServiceInfoDc>;
218
218
  /**
@@ -223,9 +223,9 @@ export declare class LayersService extends Service {
223
223
  * @operationId LayersController_UpdateRemoteTileService
224
224
  * @summary Update Remote Tile Service.
225
225
  * @request PATCH:/layers/{name}#type=RemoteTileService
226
- * @response `default` Error
226
+ * @response `200` OK
227
227
  */
228
- updateRemoteTileService(name: string, data: RemoteTileServiceConfigurationDc): Promise<RemoteTileServiceInfo>;
228
+ updateRemoteTileService(name: string, data: RemoteTileServiceConfigurationDc): Promise<RemoteTileServiceInfoDc>;
229
229
  /**
230
230
  * No description
231
231
  *
@@ -234,7 +234,7 @@ export declare class LayersService extends Service {
234
234
  * @operationId LayersController_UpdateQueryLayerService
235
235
  * @summary Update EQL-based Query Layer Service.
236
236
  * @request PATCH:/layers/{name}#type=QueryLayerService
237
- * @response `default` Error
237
+ * @response `200` OK
238
238
  */
239
239
  updateQueryLayerService(name: string, data: QueryLayerServiceConfigurationDc): Promise<QueryLayerServiceInfoDc>;
240
240
  /**
@@ -488,7 +488,6 @@ export declare class LayersService extends Service {
488
488
  * @summary Validates the given EQL expression against the requested layer. If the expression is valid, it can be executed on the features in the layer to produce a value of some type. The type of the resulting value will be also returned in the validation result.
489
489
  * @request GET:/layers/{layerName}/validateExpression
490
490
  * @response `200` OK
491
- * @response `400` Bad Request
492
491
  */
493
492
  validateExpression({ layerName, ...query }: ValidateExpressionParams): Promise<ExpressionValidationResultDc>;
494
493
  /**
@@ -501,7 +500,7 @@ export declare class LayersService extends Service {
501
500
  * @request GET:/layers/{name}/{id}/metadata
502
501
  * @response `200` OK
503
502
  */
504
- getRasterMeta({ name, id, ...query }: GetRasterMetaParams7): Promise<(RasterMetaDc | NetCdfMetaDc)[]>;
503
+ getRasterMeta({ name, id, ...query }: GetRasterMetaParams5): Promise<(RasterMetaDc | NetCdfMetaDc)[]>;
505
504
  /**
506
505
  * No description
507
506
  *
@@ -512,7 +511,7 @@ export declare class LayersService extends Service {
512
511
  * @request POST:/layers/{name}/createRoute
513
512
  * @response `200` OK
514
513
  */
515
- createRoute(name: string, data: RouteFeatureDc): Promise<LayerUpdateInfo>;
514
+ createRoute(name: string, data: RouteFeatureDc): Promise<LayerUpdateInfoDc>;
516
515
  /**
517
516
  * No description
518
517
  *
@@ -1,4 +1,4 @@
1
- import { TemplateModelDc, UploadTemplateParams, UploadTemplatePayload } from './data-contracts';
1
+ import { PrintPayload, PrintToHtmlPayload, UploadTemplateParams, UploadTemplatePayload } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -16,7 +16,7 @@ export declare class PrintService extends Service {
16
16
  * @request POST:/print/print
17
17
  * @response `200` OK
18
18
  */
19
- print(data: TemplateModelDc): Promise<Blob>;
19
+ print(data: PrintPayload): Promise<void>;
20
20
  /**
21
21
  * No description
22
22
  *
@@ -27,7 +27,7 @@ export declare class PrintService extends Service {
27
27
  * @request POST:/print/printHtml
28
28
  * @response `200` OK
29
29
  */
30
- printToHtml(data: TemplateModelDc): Promise<string>;
30
+ printToHtml(data: PrintToHtmlPayload): Promise<string>;
31
31
  /**
32
32
  * No description
33
33
  *
@@ -1,4 +1,4 @@
1
- import { BulkOperationResultDc, DeleteResourcesParams9, EnvelopeDc, ExtendedProjectInfoDc, ExtendedProjectLayersInfo, GetProjectEnvelopeParams, GetProjectsInfoParams, GetProjectsListParams, PagedListProjectInfoDc, ProjectsListDc, ResourceDependenciesDc } from './data-contracts';
1
+ import { BulkOperationResultDc, DeleteResourcesParams3, EnvelopeDc, ExtendedProjectInfoDc, ExtendedProjectLayersInfo, GetProjectEnvelopeParams, GetProjectsInfoParams, GetProjectsListParams, PagedListProjectInfoDc, ProjectsListDc, ResourceDependenciesDc } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -38,7 +38,7 @@ export declare class ProjectsService extends Service {
38
38
  * @request DELETE:/projects
39
39
  * @response `200` OK
40
40
  */
41
- deleteResources(query: DeleteResourcesParams9): Promise<BulkOperationResultDc[]>;
41
+ deleteResources(query: DeleteResourcesParams3): Promise<BulkOperationResultDc[]>;
42
42
  /**
43
43
  * No description
44
44
  *
@@ -1,4 +1,4 @@
1
- import { ClassifyDc, ClassifyParams5, GetClassifyDc, GetStatisticsDc, GetSumOfProductDc, StatisticsDbParams, StatisticsDc, SumOfProductParams } from './data-contracts';
1
+ import { ClassifyDc, ClassifyParams2, GetClassifyDc, GetStatisticsDc, GetSumOfProductDc, StatisticsDbParams, StatisticsDc, SumOfProductParams } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -38,7 +38,7 @@ export declare class StatisticService extends Service {
38
38
  * @request GET:/statistics/classify
39
39
  * @response `200` OK
40
40
  */
41
- classify(query: ClassifyParams5): Promise<ClassifyDc>;
41
+ classify(query: ClassifyParams2): Promise<ClassifyDc>;
42
42
  /**
43
43
  * No description
44
44
  *
@@ -1,4 +1,4 @@
1
- import { BulkOperationResultDc, CreateViewFromQueryDc, CreateViewFromQueryLayerDc, DeleteResourcesParams7, DeleteTableDataParams, DetailedTableInfoDc, GetTableDataParams, GetTableListParams, GetTablesInfoParams, MapTableInfoDc, MapTableParams, PagedListIEnumerable1, PagedListTableInfoDc, ResourceDependenciesDc, TableListDc, UpdateTableDataParams, UpdateTableDataPayload, UpdateTableDc, WriteTableDataPayload } from './data-contracts';
1
+ import { BulkOperationResultDc, CreateViewFromQueryDc, CreateViewFromQueryLayerDc, DeleteResourcesParams7, DeleteTableDataParams, DetailedTableInfoDc, GetTableDataParams, GetTableListParams, GetTablesInfoParams, MapTableInfoDc, MapTableParams, PagedBulkFeaturesListDc, PagedFeaturesListDc, PagedListFeatureDc, PagedListTableListItemDc, ResourceDependenciesDc, UpdateTableDataParams, UpdateTableDataPayload, UpdateTableDc, WriteTableDataPayload } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -16,7 +16,7 @@ export declare class TablesService extends Service {
16
16
  * @request GET:/tables
17
17
  * @response `200` OK
18
18
  */
19
- getTableList(query: GetTableListParams): Promise<PagedListTableInfoDc | TableListDc>;
19
+ getTableList(query: GetTableListParams): Promise<PagedListTableListItemDc>;
20
20
  /**
21
21
  * No description
22
22
  *
@@ -104,7 +104,7 @@ export declare class TablesService extends Service {
104
104
  * @request GET:/tables/{name}/data
105
105
  * @response `200` OK
106
106
  */
107
- getTableData({ name, ...query }: GetTableDataParams): Promise<PagedListIEnumerable1>;
107
+ getTableData({ name, ...query }: GetTableDataParams): Promise<PagedListFeatureDc | PagedFeaturesListDc | PagedBulkFeaturesListDc>;
108
108
  /**
109
109
  * No description
110
110
  *