@evergis/api 3.0.174 → 3.0.176

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
@@ -1,12 +1,11 @@
1
1
  import { EventEmitter } from '@evergis/event-emitter';
2
- import { HubConnection } from '@microsoft/signalr';
3
2
  import { Options as KyOptions } from 'ky';
4
- import { LoginDc } from './__generated__/data-contracts';
3
+ import { HubConnection } from '@microsoft/signalr';
5
4
  import { HttpClient } from './__generated__/HttpClient';
6
5
  import { SpatialReferencesService } from './__generated__/SpatialReferencesService';
7
6
  import { UniversalSearchService } from './__generated__/UniversalSearchService';
8
- import { Account, AccountPreview, BulkOperations, Cameras, ClientSettings, External, Feedback, FileUpload, Filters, General, Geocode, IceRouter, Import, Layers, Names, Namespace, Notification, PortalSettings, Projects, ResourceCatalog, Resources, Scheduler, Security, Statistic, Styles, Tables, Tools, VectorTiles } from './services';
9
- import { Print } from './services/Print';
7
+ import { Account, AccountPreview, BulkOperations, Cameras, ClientSettings, External, EqlTest, Feedback, FileUpload, Filters, General, Geocode, IceRouter, Import, Layers, Names, Namespace, Notification, PortalSettings, Print, Projects, ResourceCatalog, Resources, Scheduler, Security, Statistic, Styles, Tables, Tools, VectorTiles } from './services';
8
+ import { LoginDc } from './__generated__/data-contracts';
10
9
  export declare type ApiParams = {
11
10
  url: string;
12
11
  wsUrl?: string;
@@ -60,6 +59,7 @@ export declare class Api extends EventEmitter {
60
59
  readonly vectorTiles: VectorTiles;
61
60
  readonly universalSearch: UniversalSearchService;
62
61
  readonly spatialReference: SpatialReferencesService;
62
+ readonly eqlTest: EqlTest;
63
63
  constructor({ url, wsUrl, wsKeepAlive, snappingHubUrl, http, urlPath, httpOptions, }: ApiParams);
64
64
  init({ authParams, connectWs, initScheduler, fetchSettings, fetchUser, }: {
65
65
  authParams?: LoginDc;
@@ -1,4 +1,4 @@
1
- import { AttributeDefinitionDc, EqlRequestDc, SetLayerParameterValueParams } from './data-contracts';
1
+ import { AttributeDefinitionDc, EqlRequestDc, GetLayerParameters1Params, GetLayerParametersParams, RemoveLayerParameterValueParams, SetLayerParametersParams, SetLayerParametersPayload, SetLayerParameterValueParams } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -39,4 +39,48 @@ export declare class EqlTestService extends Service {
39
39
  * @response `200` Success
40
40
  */
41
41
  setLayerParameterValue(query: SetLayerParameterValueParams): Promise<void>;
42
+ /**
43
+ * No description
44
+ *
45
+ * @tags EqlTest
46
+ * @name SetLayerParameters
47
+ * @operationId EqlTestController_SetLayerParameters
48
+ * @summary Set EQL layer parameters.
49
+ * @request POST:/eql/setParams
50
+ * @response `200` Success
51
+ */
52
+ setLayerParameters(query: SetLayerParametersParams, data: SetLayerParametersPayload): Promise<void>;
53
+ /**
54
+ * No description
55
+ *
56
+ * @tags EqlTest
57
+ * @name GetLayerParameters
58
+ * @operationId EqlTestController_GetLayerParameters
59
+ * @summary Get all set EQL layer parameters.
60
+ * @request GET:/eql/getParam
61
+ * @response `200` Success
62
+ */
63
+ getLayerParameters(query: GetLayerParametersParams): Promise<string>;
64
+ /**
65
+ * No description
66
+ *
67
+ * @tags EqlTest
68
+ * @name GetLayerParameters1
69
+ * @operationId EqlTestController_GetLayerParameters_1
70
+ * @summary Get all EQL layer parameters.
71
+ * @request GET:/eql/getParams
72
+ * @response `200` Success
73
+ */
74
+ getLayerParameters1(query: GetLayerParameters1Params): Promise<Record<string, string>>;
75
+ /**
76
+ * No description
77
+ *
78
+ * @tags EqlTest
79
+ * @name RemoveLayerParameterValue
80
+ * @operationId EqlTestController_RemoveLayerParameterValue
81
+ * @summary Remove EQL layer parameter.
82
+ * @request DELETE:/eql/removeParam
83
+ * @response `200` Success
84
+ */
85
+ removeLayerParameterValue(query: RemoveLayerParameterValueParams): Promise<void>;
42
86
  }
@@ -1,4 +1,4 @@
1
- import { AccessControlListDc, AggregateAttributeParams, AggregationDataResultDc, AttributeDistinctsDc, BulkOperationResultDc, ClassifyDc, ClassifyParams, CompositeServiceConfigurationDc, CompositeServiceInfoDc, CreateFeaturesPayload, DeleteByConditionParams, DeleteFeatureParams, DeleteFeaturesParams, DeleteResourcesParams, DistinctsParams, EditAttributesInfoDc, EnvelopeDc, ExpressionValidationResultDc, FeatureDc, FeatureLayerServiceInfoDc, FeaturesContainsParams, FeatureSelectionDc, FeaturesListDc, FileUploadResponse, GetByGeometryGetParams, GetByGeometryParams, GetByGeometryPostParams, GetByGeometryPostPayload, GetByIdParams, GetFeatures1Params, GetFeaturesParametersDc, GetFilteredFeaturesCountParams, GetLayerExtentParams, GetLayerImageParams, GetLayersInfoParams, GetLayersListParams, GetRasterMetaParams8, GetTilesLayerImageParams, LayerUpdateInfo, LayerUpdateInfoDc, LinearServiceConfigurationDc, LocalTileServiceConfigurationDc, NetCdfMetaDc, PbfServiceConfigurationDc, PbfServiceInfoDc, PostgresLayerServiceConfigurationDc, PostgresTileCatalogServiceConfigurationDc, ProxyServiceInfoDc, PublishProxyServicePayload, QueryLayerServiceConfigurationDc, QueryLayerServiceInfoDc, RasterMetaDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfo, RemoteTileServiceInfoDc, ResourceDependenciesDc, ResourceInfoDc, RouteFeatureDc, RouteServiceConfigurationDc, SelectFeaturesParams, ServiceInfoDc, SetPermissionsBatchPayload, SetPreviewPayload, StyledLayerServiceConfigurationDc, SubtractParams, SubtractPayload, TileServiceInfoDc, UniteParams, UnitePayload, UpdateFeaturePayload, UpdateProxyServicePayload, ValidateExpressionParams } from './data-contracts';
1
+ import { AccessControlListDc, AggregateAttributeParams, AggregationDataResultDc, AttributeDistinctsDc, BulkOperationResultDc, ClassifyDc, ClassifyParams, CompositeServiceConfigurationDc, CompositeServiceInfoDc, CreateFeaturesPayload, DeleteByConditionParams, DeleteFeatureParams, DeleteFeaturesParams, DeleteResourcesParams, DistinctsParams, EditAttributesInfoDc, EnvelopeDc, ExpressionValidationResultDc, FeatureDc, FeatureLayerServiceInfoDc, FeaturesContainsParams, FeatureSelectionDc, FeaturesListDc, FileUploadResponse, GetByGeometryGetParams, GetByGeometryParams, GetByGeometryPostParams, GetByGeometryPostPayload, GetByIdParams, GetFeatures1Params, GetFeaturesParametersDc, GetFilteredFeaturesCountParams, GetLayerExtentParams, GetLayerImageParams, GetLayersInfoParams, GetLayersListParams, GetRasterMetaParams9, GetTilesLayerImageParams, LayerUpdateInfo, LayerUpdateInfoDc, LinearServiceConfigurationDc, LocalTileServiceConfigurationDc, NetCdfMetaDc, PbfServiceConfigurationDc, PbfServiceInfoDc, PostgresLayerServiceConfigurationDc, PostgresTileCatalogServiceConfigurationDc, ProxyServiceInfoDc, PublishProxyServicePayload, QueryLayerServiceConfigurationDc, QueryLayerServiceInfoDc, RasterMetaDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfo, RemoteTileServiceInfoDc, ResourceDependenciesDc, ResourceInfoDc, RouteFeatureDc, RouteServiceConfigurationDc, SelectFeaturesParams, ServiceInfoDc, SetPermissionsBatchPayload, SetPreviewPayload, StyledLayerServiceConfigurationDc, SubtractParams, SubtractPayload, TileServiceInfoDc, UniteParams, UnitePayload, UpdateFeaturePayload, UpdateProxyServicePayload, ValidateExpressionParams } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -567,7 +567,7 @@ export declare class LayersService extends Service {
567
567
  * @request GET:/layers/{name}/{id}/metadata
568
568
  * @response `200` Success
569
569
  */
570
- getRasterMeta({ name, id, ...query }: GetRasterMetaParams8): Promise<(RasterMetaDc | NetCdfMetaDc)[]>;
570
+ getRasterMeta({ name, id, ...query }: GetRasterMetaParams9): Promise<(RasterMetaDc | NetCdfMetaDc)[]>;
571
571
  /**
572
572
  * No description
573
573
  *
@@ -1,4 +1,4 @@
1
- import { AccessControlListDc, BulkOperationResultDc, DeleteResourcesParams2, ExtendedProjectInfoDc, ExtendedProjectLayersInfo, FileUploadResponse, GetProjectsInfoParams, GetProjectsListParams, PagedListProjectInfoDc, ResourceDependenciesDc, SetPermissionsBatchBody, SetPreviewBody } from './data-contracts';
1
+ import { AccessControlListDc, BulkOperationResultDc, DeleteResourcesParams1, ExtendedProjectInfoDc, ExtendedProjectLayersInfo, FileUploadResponse, GetProjectsInfoParams, GetProjectsListParams, PagedListProjectInfoDc, ResourceDependenciesDc, SetPermissionsBatchBody, SetPreviewBody } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -49,7 +49,7 @@ export declare class ProjectsService extends Service {
49
49
  * @request DELETE:/projects
50
50
  * @response `200` Success
51
51
  */
52
- deleteResources(query: DeleteResourcesParams2): Promise<BulkOperationResultDc[]>;
52
+ deleteResources(query: DeleteResourcesParams1): Promise<BulkOperationResultDc[]>;
53
53
  /**
54
54
  * No description
55
55
  *
@@ -1,4 +1,4 @@
1
- import { AccessControlListDc, BulkOperationResultDc, DeleteResourcesParams5, DeleteTableDataParams, DetailedTableInfoDc, FileUploadResponse, GetTableDataParams, GetTableListParams, GetTablesInfoParams, GetUniqueDataRowsParams, MapTableInfoDc, MapTableParams, PagedListIEnumerable1, PagedListTableInfoDc, ResourceDependenciesDc, SetPermissionsBatchInput, SetPreviewInput, UpdateTableDataParams, UpdateTableDataPayload, UpdateTableDc, WriteTableDataPayload } from './data-contracts';
1
+ import { AccessControlListDc, BulkOperationResultDc, DeleteResourcesParams6, DeleteTableDataParams, DetailedTableInfoDc, FileUploadResponse, GetTableDataParams, GetTableListParams, GetTablesInfoParams, GetUniqueDataRowsParams, MapTableInfoDc, MapTableParams, PagedListIEnumerable1, PagedListTableInfoDc, ResourceDependenciesDc, SetPermissionsBatchInput, SetPreviewInput, UpdateTableDataParams, UpdateTableDataPayload, UpdateTableDc, WriteTableDataPayload } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -49,7 +49,7 @@ export declare class TablesService extends Service {
49
49
  * @request DELETE:/tables
50
50
  * @response `200` Success
51
51
  */
52
- deleteResources(query: DeleteResourcesParams5): Promise<BulkOperationResultDc[]>;
52
+ deleteResources(query: DeleteResourcesParams6): Promise<BulkOperationResultDc[]>;
53
53
  /**
54
54
  * No description
55
55
  *
@@ -1,4 +1,4 @@
1
- import { GetCapabilities1Params, GetCapabilitiesParams4, GetFeatureInfoParams, GetLegendGraphicParams, GetMapParams } from './data-contracts';
1
+ import { GetCapabilities1Params, GetCapabilitiesParams8, GetFeatureInfoParams, GetLegendGraphicParams, GetMapParams } 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 WmsServerService extends Service {
16
16
  * @request GET:/wms#REQUEST=GetCapabilities
17
17
  * @response `200` Success
18
18
  */
19
- getCapabilities(query: GetCapabilitiesParams4): Promise<void>;
19
+ getCapabilities(query: GetCapabilitiesParams8): Promise<void>;
20
20
  /**
21
21
  * No description
22
22
  *