@evergis/api 3.0.197 → 3.0.199
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 +20 -20
- package/README.md +21 -21
- package/dist/__generated__/AccountService.d.ts +4 -4
- package/dist/__generated__/DataSourceService.d.ts +53 -0
- package/dist/__generated__/EqlService.d.ts +1 -1
- package/dist/__generated__/LayersService.d.ts +2 -2
- package/dist/__generated__/PrintService.d.ts +3 -3
- package/dist/__generated__/ProjectsService.d.ts +2 -2
- package/dist/__generated__/StatisticService.d.ts +2 -2
- package/dist/__generated__/TablesService.d.ts +2 -2
- package/dist/__generated__/WmsServerService.d.ts +2 -2
- package/dist/__generated__/data-contracts.d.ts +448 -257
- package/dist/api.cjs.development.js +17 -22
- package/dist/api.cjs.development.js.map +1 -1
- package/dist/api.cjs.production.min.js +1 -1
- package/dist/api.cjs.production.min.js.map +1 -1
- package/dist/api.esm.js +232 -231
- package/dist/api.esm.js.map +1 -1
- package/dist/services/Statistic.d.ts +2 -2
- package/package.json +2 -2
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
|
+
```
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthenticateParams, ChangeEmailParams, ChangePasswordPayload, ConfirmChangeEmailParams, ConfirmEmail1Params, CreateRoleDc, CreateUserDc, CreateUserParams, ExtendedUserInfoDc, GetExtendedUsersParams, GetRolesParams, GetUsersParams, IsEmailExistsParams, IsUsernameExistsParams, LoginDc, PagedListExtendedUserInfoDc, PagedListRoleInfoDc, PagedListUserInfoDc, RegisterClientRequestDc, RegisterClientResponseDc, RegisterUserDc, ResetPasswordCallbackPayload, ResetPasswordParams, SetEmailPayload, TokenRequestDc, TokenResponseDc, UpdateRoleDc, UpdateUserDc, UsedProjectDc, UserInfoDc } from './data-contracts';
|
|
1
|
+
import { AuthenticateParams, ChangeEmailParams, ChangePasswordPayload, ConfirmChangeEmailParams, ConfirmEmail1Params, CreateRoleDc, CreateUserDc, CreateUserParams, ExtendedUserInfoDc, GetExtendedUsersParams, GetRolesParams, GetUsersParams, IsEmailExistsParams, IsUsernameExistsParams, LoginDc, LoginResultDc, PagedListExtendedUserInfoDc, PagedListRoleInfoDc, PagedListUserInfoDc, RefreshTokenDc, RegisterClientRequestDc, RegisterClientResponseDc, RegisterUserDc, ResetPasswordCallbackPayload, ResetPasswordParams, SetEmailPayload, TokenRequestDc, TokenResponseDc, UpdateRoleDc, UpdateUserDc, UsedProjectDc, UserInfoDc } from './data-contracts';
|
|
2
2
|
import { Service } from './Service';
|
|
3
3
|
/**
|
|
4
4
|
* @title Spatial Processing Core API
|
|
@@ -258,7 +258,7 @@ export declare class AccountService extends Service {
|
|
|
258
258
|
* @request POST:/account/login
|
|
259
259
|
* @response `200` OK
|
|
260
260
|
*/
|
|
261
|
-
authenticate(query: AuthenticateParams, data: LoginDc): Promise<
|
|
261
|
+
authenticate(query: AuthenticateParams, data: LoginDc): Promise<LoginResultDc>;
|
|
262
262
|
/**
|
|
263
263
|
* No description
|
|
264
264
|
*
|
|
@@ -269,7 +269,7 @@ export declare class AccountService extends Service {
|
|
|
269
269
|
* @request POST:/account/refresh-token
|
|
270
270
|
* @response `200` OK
|
|
271
271
|
*/
|
|
272
|
-
refreshToken(): Promise<string>;
|
|
272
|
+
refreshToken(data: RefreshTokenDc): Promise<string>;
|
|
273
273
|
/**
|
|
274
274
|
* No description
|
|
275
275
|
*
|
|
@@ -291,7 +291,7 @@ export declare class AccountService extends Service {
|
|
|
291
291
|
* @request POST:/account/external/login/ldap
|
|
292
292
|
* @response `200` OK
|
|
293
293
|
*/
|
|
294
|
-
ldapLogin(data: LoginDc): Promise<
|
|
294
|
+
ldapLogin(data: LoginDc): Promise<LoginResultDc>;
|
|
295
295
|
/**
|
|
296
296
|
* No description
|
|
297
297
|
*
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { DataSourceDc, GetDataSourcesListParams, PagedListDataSourceDc } from './data-contracts';
|
|
2
|
+
import { Service } from './Service';
|
|
3
|
+
/**
|
|
4
|
+
* @title Spatial Processing Core API
|
|
5
|
+
* @version 1.5.1.0
|
|
6
|
+
* @baseUrl /sp
|
|
7
|
+
*/
|
|
8
|
+
export declare class DataSourceService extends Service {
|
|
9
|
+
/**
|
|
10
|
+
* No description
|
|
11
|
+
*
|
|
12
|
+
* @tags DataSource
|
|
13
|
+
* @name GetDataSourcesList
|
|
14
|
+
* @operationId DataSourceController_GetDataSourcesList
|
|
15
|
+
* @summary Returns list of the available data sources.
|
|
16
|
+
* @request GET:/ds
|
|
17
|
+
* @response `200` OK
|
|
18
|
+
*/
|
|
19
|
+
getDataSourcesList(query: GetDataSourcesListParams): Promise<PagedListDataSourceDc>;
|
|
20
|
+
/**
|
|
21
|
+
* No description
|
|
22
|
+
*
|
|
23
|
+
* @tags DataSource
|
|
24
|
+
* @name CreateDataSource
|
|
25
|
+
* @operationId DataSourceController_CreateDataSource
|
|
26
|
+
* @summary Create data source.
|
|
27
|
+
* @request POST:/ds
|
|
28
|
+
* @response `200` OK
|
|
29
|
+
*/
|
|
30
|
+
createDataSource(data: DataSourceDc): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* No description
|
|
33
|
+
*
|
|
34
|
+
* @tags DataSource
|
|
35
|
+
* @name GetDataSource
|
|
36
|
+
* @operationId DataSourceController_GetDataSource
|
|
37
|
+
* @summary Get data source by name.
|
|
38
|
+
* @request GET:/ds/{name}
|
|
39
|
+
* @response `200` OK
|
|
40
|
+
*/
|
|
41
|
+
getDataSource(name: string): Promise<DataSourceDc>;
|
|
42
|
+
/**
|
|
43
|
+
* No description
|
|
44
|
+
*
|
|
45
|
+
* @tags DataSource
|
|
46
|
+
* @name RemoveDataSource
|
|
47
|
+
* @operationId DataSourceController_RemoveDataSource
|
|
48
|
+
* @summary Remove data source by name.
|
|
49
|
+
* @request DELETE:/ds/{name}
|
|
50
|
+
* @response `200` OK
|
|
51
|
+
*/
|
|
52
|
+
removeDataSource(name: string): Promise<void>;
|
|
53
|
+
}
|
|
@@ -16,7 +16,7 @@ export declare class EqlService extends Service {
|
|
|
16
16
|
* @request POST:/eql/query
|
|
17
17
|
* @response `200` OK
|
|
18
18
|
*/
|
|
19
|
-
getQueryResult(data: EqlRequestDc): Promise<
|
|
19
|
+
getQueryResult(data: EqlRequestDc): Promise<Record<string, any>[]>;
|
|
20
20
|
/**
|
|
21
21
|
* No description
|
|
22
22
|
*
|
|
@@ -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, GetBulkFeaturesPayload, GetByGeometryGetParams, GetByGeometryParams, GetByGeometryPostParams, GetByGeometryPostPayload, GetByIdParams, GetFeatures1Params, GetFeaturesParametersDc, GetFilteredFeaturesCountDc, GetFilteredFeaturesCountParams, GetLayerExtentParams, GetLayerImageParams, GetLayersInfoParams, GetLayersListParams,
|
|
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, GetBulkFeaturesPayload, GetByGeometryGetParams, GetByGeometryParams, GetByGeometryPostParams, GetByGeometryPostPayload, GetByIdParams, GetFeatures1Params, GetFeaturesParametersDc, GetFilteredFeaturesCountDc, GetFilteredFeaturesCountParams, GetLayerExtentParams, GetLayerImageParams, GetLayersInfoParams, GetLayersListParams, GetRasterMetaParams4, GetTilesLayerImageParams, LayerUpdateInfo, LayerUpdateInfoDc, LinearServiceConfigurationDc, LocalTileServiceConfigurationDc, NetCdfMetaDc, PagedBulkFeaturesListDc, PagedFeaturesListDc, PbfServiceConfigurationDc, PbfServiceInfoDc, PostgresLayerServiceConfigurationDc, PostgresTileCatalogServiceConfigurationDc, ProxyServiceInfoDc, PublishProxyServicePayload, QueryLayerServiceConfigurationDc, QueryLayerServiceInfoDc, RasterMetaDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfo, RemoteTileServiceInfoDc, ResourceDependenciesDc, ResourceInfoDc, RouteFeatureDc, RouteServiceConfigurationDc, SelectFeaturesParams, ServiceInfoDc, ServiceListDc, SetPermissionsBatchPayload, SetPreviewPayload, SimpleSymbolDc, StyleDc, 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
|
|
@@ -589,7 +589,7 @@ export declare class LayersService extends Service {
|
|
|
589
589
|
* @request GET:/layers/{name}/{id}/metadata
|
|
590
590
|
* @response `200` OK
|
|
591
591
|
*/
|
|
592
|
-
getRasterMeta({ name, id, ...query }:
|
|
592
|
+
getRasterMeta({ name, id, ...query }: GetRasterMetaParams4): Promise<(RasterMetaDc | NetCdfMetaDc)[]>;
|
|
593
593
|
/**
|
|
594
594
|
* No description
|
|
595
595
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TemplateModelDc, 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:
|
|
19
|
+
print(data: TemplateModelDc): Promise<Blob>;
|
|
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:
|
|
30
|
+
printToHtml(data: TemplateModelDc): Promise<string>;
|
|
31
31
|
/**
|
|
32
32
|
* No description
|
|
33
33
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessControlListDc, BulkOperationResultDc,
|
|
1
|
+
import { AccessControlListDc, BulkOperationResultDc, DeleteResourcesParams9, ExtendedProjectInfoDc, ExtendedProjectLayersInfo, FileUploadResponse, GetProjectsInfoParams, GetProjectsListParams, PagedListProjectInfoDc, ProjectsListDc, 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` OK
|
|
51
51
|
*/
|
|
52
|
-
deleteResources(query:
|
|
52
|
+
deleteResources(query: DeleteResourcesParams9): Promise<BulkOperationResultDc[]>;
|
|
53
53
|
/**
|
|
54
54
|
* No description
|
|
55
55
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClassifyDc,
|
|
1
|
+
import { ClassifyDc, ClassifyParams5, 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:
|
|
41
|
+
classify(query: ClassifyParams5): Promise<ClassifyDc>;
|
|
42
42
|
/**
|
|
43
43
|
* No description
|
|
44
44
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessControlListDc, BulkOperationResultDc, CreateViewFromQueryDc, CreateViewFromQueryLayerDc,
|
|
1
|
+
import { AccessControlListDc, BulkOperationResultDc, CreateViewFromQueryDc, CreateViewFromQueryLayerDc, DeleteResourcesParams4, DeleteTableDataParams, DetailedTableInfoDc, FileUploadResponse, GetTableDataParams, GetTableListParams, GetTablesInfoParams, GetUniqueDataRowsParams, MapTableInfoDc, MapTableParams, PagedListIEnumerable1, PagedListTableInfoDc, ResourceDependenciesDc, SetPermissionsBatchInput, SetPreviewInput, TableListDc, 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` OK
|
|
51
51
|
*/
|
|
52
|
-
deleteResources(query:
|
|
52
|
+
deleteResources(query: DeleteResourcesParams4): Promise<BulkOperationResultDc[]>;
|
|
53
53
|
/**
|
|
54
54
|
* No description
|
|
55
55
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetCapabilities1Params,
|
|
1
|
+
import { GetCapabilities1Params, GetCapabilitiesParams4, 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` OK
|
|
18
18
|
*/
|
|
19
|
-
getCapabilities(query:
|
|
19
|
+
getCapabilities(query: GetCapabilitiesParams4): Promise<void>;
|
|
20
20
|
/**
|
|
21
21
|
* No description
|
|
22
22
|
*
|