@evergis/api 4.0.21 → 4.0.22

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, Geocode, IceRouter, Import, Layers, Names, Notification, PortalSettings, Print, Projects, RemoteTaskManager, Resources, Security, Statistic, Styles, Tables, Tools, VectorTiles } from './services';
9
+ import { Account, AccountPreview, BulkOperations, ClientSettings, Eql, Feedback, FileUpload, Filters, Geocode, Import, Layers, Names, Notification, PortalSettings, Projects, RemoteTaskManager, Resources, Security, Statistic, Tables, Tools, VectorTiles } from './services';
10
10
  import { AuthenticateParams, LoginDc } from './__generated__/data-contracts';
11
11
  export declare type ApiParams = {
12
12
  url: string;
@@ -38,19 +38,14 @@ export declare class Api extends EventEmitter {
38
38
  readonly filters: Filters;
39
39
  readonly import: Import;
40
40
  readonly resources: Resources;
41
- readonly styles: Styles;
42
41
  readonly geocode: Geocode;
43
- readonly cameras: Cameras;
44
- readonly print: Print;
45
42
  readonly tools: Tools;
46
43
  readonly account: Account;
47
44
  readonly accountPreview: AccountPreview;
48
- readonly external: External;
49
45
  readonly clientSettings: ClientSettings;
50
46
  readonly portalSettings: PortalSettings;
51
47
  readonly names: Names;
52
48
  readonly bulk: BulkOperations;
53
- readonly iceRouter: IceRouter;
54
49
  readonly statistic: Statistic;
55
50
  readonly feedback: Feedback;
56
51
  readonly snappingHub: HubConnection | null;
@@ -1,4 +1,4 @@
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';
1
+ import { AuthenticateParams, ChangeEmailParams, ChangePasswordPayload, ConfirmChangeEmailParams, ConfirmEmail1Params, CreateNamespaceParams, CreateRoleDc, CreateUserDc, CreateUserParams, ExtendedUserInfoDc, GetExtendedUsersParams, GetRolesParams, GetUsersParams, IsEmailExistsParams, IsUsernameExistsParams, LoginDc, LoginResultDc, NamespaceInfoDc, 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
@@ -270,6 +270,18 @@ export declare class AccountService extends Service {
270
270
  * @response `200` OK
271
271
  */
272
272
  removeUser(username: string): Promise<void>;
273
+ /**
274
+ * No description
275
+ *
276
+ * @tags Account
277
+ * @name CreateNamespace
278
+ * @operationId AccountController_CreateNamespace
279
+ * @summary Creates a new namespace.
280
+ * @request POST:/account/namespace
281
+ * @secure
282
+ * @response `200` OK
283
+ */
284
+ createNamespace(query: CreateNamespaceParams): Promise<NamespaceInfoDc>;
273
285
  /**
274
286
  * No description
275
287
  *
@@ -1,4 +1,4 @@
1
- import { AggregateAttributeParams, AggregationDataResultDc, AttributeDistinctsDc, BulkExtentsDc, BulkFilteredFeaturesCountDc, BulkOperationResultDc, ClassifyDc, ClassifyParams, CreateFeaturesPayload, DeleteByConditionParams, DeleteFeatureParams, DeleteFeaturesParams, DeleteResourcesParams, DistinctsParams, EditAttributesInfoDc, EnvelopeDc, ExpressionValidationResultDc, FeatureDc, GetBulkExtentsParams, GetBulkExtentsPayload, GetBulkFeaturesPayload, GetByIdParams, GetFeatures1Params, GetFeaturesParametersDc, GetFilteredFeaturesCount1Params, GetFilteredFeaturesCountDc, GetFilteredFeaturesCountPayload, GetLayerExtentParams, GetLayerImageParams, GetLayersInfoParams, GetLayersListParams, GetRasterMetaParams8, 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';
1
+ import { AggregateAttributeParams, AggregationDataResultDc, AttributeDistinctsDc, BulkExtentsDc, BulkFilteredFeaturesCountDc, BulkOperationResultDc, ClassifyDc, ClassifyParams, CreateFeaturesPayload, DeleteByConditionParams, DeleteFeatureParams, DeleteFeaturesParams, DeleteResourcesParams, DistinctsParams, EditAttributesInfoDc, EnvelopeDc, ExpressionValidationResultDc, FeatureDc, GetBulkExtentsParams, GetBulkExtentsPayload, GetBulkFeaturesPayload, GetByIdParams, GetFeatures1Params, GetFeaturesParametersDc, GetFilteredFeaturesCount1Params, GetFilteredFeaturesCountDc, GetFilteredFeaturesCountPayload, GetLayerExtentParams, GetLayersInfoParams, GetLayersListParams, GetRasterMetaParams3, GetTilesLayerImage1Params, GetTilesLayerImageParams, GetTilesLayerImageWithFormatAndDpiParams, LayerUpdateInfoDc, LinearServiceConfigurationDc, NetCdfMetaDc, PagedBulkFeaturesListDc, PagedFeaturesListDc, PbfServiceConfigurationDc, PbfServiceInfoDc, PostgresTileCatalogServiceConfigurationDc, ProxyServiceInfoDc, PublishProxyServicePayload, PythonServiceConfigurationDc, PythonServiceInfoDc, QueryLayerServiceConfigurationDc, QueryLayerServiceInfoDc, RasterMetaDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfoDc, ResourceDependenciesDc, ResourceInfoDc, RouteServiceConfigurationDc, ServiceInfoDc, ServiceListDc, TileCatalogServiceInfoDc, UpdateFeaturePayload, UpdateProxyServicePayload, ValidateExpressionParams } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -354,30 +354,6 @@ export declare class LayersService extends Service {
354
354
  * @response `200` OK
355
355
  */
356
356
  getById({ name, id, ...query }: GetByIdParams): Promise<FeatureDc>;
357
- /**
358
- * No description
359
- *
360
- * @tags Layers
361
- * @name Unite
362
- * @operationId LayersController_Unite
363
- * @summary Provides method to unite feature geometry with given id and given geometry. Updated feature will be save in db storage. Result of the operation will be updated layer info.
364
- * @request POST:/layers/{name}/features/{id}/unite
365
- * @secure
366
- * @response `200` OK
367
- */
368
- unite({ name, id, ...query }: UniteParams, data: UnitePayload): Promise<FeatureDc>;
369
- /**
370
- * No description
371
- *
372
- * @tags Layers
373
- * @name Subtract
374
- * @operationId LayersController_Subtract
375
- * @summary Provides method to subtract feature geometry with given id and given geometry. Updated feature will be save in db storage. Result of the operation will be updated layer info with feature id.
376
- * @request POST:/layers/{name}/features/{id}/subtract
377
- * @secure
378
- * @response `200` OK
379
- */
380
- subtract({ name, id, ...query }: SubtractParams, data: SubtractPayload): Promise<FeatureDc>;
381
357
  /**
382
358
  * No description
383
359
  *
@@ -414,18 +390,6 @@ export declare class LayersService extends Service {
414
390
  * @response `200` OK
415
391
  */
416
392
  getTilesLayerImageWithFormatAndDpi({ name, x, y, z, dpi, format, ...query }: GetTilesLayerImageWithFormatAndDpiParams): string;
417
- /**
418
- * No description
419
- *
420
- * @tags Layers
421
- * @name GetLayerImage
422
- * @operationId LayersController_GetLayerImage
423
- * @summary Renders the layer to the image of the requested size.
424
- * @request GET:/layers/{name}/export
425
- * @secure
426
- * @response `200` OK
427
- */
428
- getLayerImage({ name, ...query }: GetLayerImageParams): string;
429
393
  /**
430
394
  * No description
431
395
  *
@@ -569,67 +533,7 @@ export declare class LayersService extends Service {
569
533
  * @secure
570
534
  * @response `200` OK
571
535
  */
572
- getRasterMeta({ name, id, ...query }: GetRasterMetaParams8): Promise<(RasterMetaDc | NetCdfMetaDc)[]>;
573
- /**
574
- * No description
575
- *
576
- * @tags Layers
577
- * @name CreateRoute
578
- * @operationId LayersController_CreateRoute
579
- * @summary Create new route (feature) from source features.
580
- * @request POST:/layers/{name}/createRoute
581
- * @secure
582
- * @response `200` OK
583
- */
584
- createRoute(name: string, data: RouteFeatureDc): Promise<LayerUpdateInfoDc>;
585
- /**
586
- * No description
587
- *
588
- * @tags Layers
589
- * @name ApplyStyle
590
- * @operationId LayersController_ApplyStyle
591
- * @summary Create data layout and image layout for given style.
592
- * @request PUT:/layers/{name}/style
593
- * @secure
594
- * @response `200` OK
595
- */
596
- applyStyle(name: string, data: StyleDc): Promise<void>;
597
- /**
598
- * No description
599
- *
600
- * @tags Layers
601
- * @name GetStyle
602
- * @operationId LayersController_GetStyle
603
- * @summary Get style of the given layer.
604
- * @request GET:/layers/{name}/style
605
- * @secure
606
- * @response `200` OK
607
- */
608
- getStyle(name: string): Promise<SimpleSymbolDc[]>;
609
- /**
610
- * No description
611
- *
612
- * @tags Layers
613
- * @name GetImageLayout
614
- * @operationId LayersController_GetImageLayout
615
- * @summary Get date layout.
616
- * @request GET:/layers/{name}/style/sprite.png
617
- * @secure
618
- * @response `200` OK
619
- */
620
- getImageLayout(name: string): Promise<Blob>;
621
- /**
622
- * No description
623
- *
624
- * @tags Layers
625
- * @name GetDataLayout
626
- * @operationId LayersController_GetDataLayout
627
- * @summary Get image layout.
628
- * @request GET:/layers/{name}/style/sprite.json
629
- * @secure
630
- * @response `200` OK
631
- */
632
- getDataLayout(name: string): Promise<void>;
536
+ getRasterMeta({ name, id, ...query }: GetRasterMetaParams3): Promise<(RasterMetaDc | NetCdfMetaDc)[]>;
633
537
  /**
634
538
  * No description
635
539
  *
@@ -1,4 +1,4 @@
1
- import { ClassifyDc, ClassifyParams4, GetClassifyDc, GetStatisticsDc, GetSumOfProductDc, StatisticsDbParams, StatisticsDc, SumOfProductParams } from './data-contracts';
1
+ import { ClassifyDc, GetClassifyDc, GetStatisticsDc, GetSumOfProductDc, StatisticsDc } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -13,23 +13,11 @@ export declare class StatisticService extends Service {
13
13
  * @name StatisticsDb
14
14
  * @operationId StatisticController_StatisticsDb
15
15
  * @summary Calculates statistics for layer attribute.
16
- * @request GET:/statistics
17
- * @secure
18
- * @response `200` OK
19
- */
20
- statisticsDb(query: StatisticsDbParams): Promise<StatisticsDc>;
21
- /**
22
- * No description
23
- *
24
- * @tags Statistic
25
- * @name StatisticsDb1
26
- * @operationId StatisticController_StatisticsDb_1
27
- * @summary Calculates statistics for layer attribute.
28
16
  * @request POST:/statistics
29
17
  * @secure
30
18
  * @response `200` OK
31
19
  */
32
- statisticsDb1(data: GetStatisticsDc): Promise<StatisticsDc>;
20
+ statisticsDb(data: GetStatisticsDc): Promise<StatisticsDc>;
33
21
  /**
34
22
  * No description
35
23
  *
@@ -37,23 +25,11 @@ export declare class StatisticService extends Service {
37
25
  * @name Classify
38
26
  * @operationId StatisticController_Classify
39
27
  * @summary Returns the classified attribute values that correspond to the given number of classes and given condition.
40
- * @request GET:/statistics/classify
41
- * @secure
42
- * @response `200` OK
43
- */
44
- classify(query: ClassifyParams4): Promise<ClassifyDc>;
45
- /**
46
- * No description
47
- *
48
- * @tags Statistic
49
- * @name Classify1
50
- * @operationId StatisticController_Classify_1
51
- * @summary Returns the classified attribute values that correspond to the given number of classes and given condition.
52
28
  * @request POST:/statistics/classify
53
29
  * @secure
54
30
  * @response `200` OK
55
31
  */
56
- classify1(data: GetClassifyDc): Promise<ClassifyDc>;
32
+ classify(data: GetClassifyDc): Promise<ClassifyDc>;
57
33
  /**
58
34
  * No description
59
35
  *
@@ -61,21 +37,9 @@ export declare class StatisticService extends Service {
61
37
  * @name SumOfProduct
62
38
  * @operationId StatisticController_SumOfProduct
63
39
  * @summary Sum of product.
64
- * @request GET:/statistics/sumOfProduct
65
- * @secure
66
- * @response `200` OK
67
- */
68
- sumOfProduct(query: SumOfProductParams): Promise<StatisticsDc>;
69
- /**
70
- * No description
71
- *
72
- * @tags Statistic
73
- * @name SumOfProduct1
74
- * @operationId StatisticController_SumOfProduct_1
75
- * @summary Sum of product.
76
40
  * @request POST:/statistics/sumOfProduct
77
41
  * @secure
78
42
  * @response `200` OK
79
43
  */
80
- sumOfProduct1(data: GetSumOfProductDc): Promise<StatisticsDc>;
44
+ sumOfProduct(data: GetSumOfProductDc): Promise<StatisticsDc>;
81
45
  }
@@ -1,4 +1,4 @@
1
- import { BulkOperationResultDc, CreateViewFromQueryDc, CreateViewFromQueryLayerDc, DeleteResourcesParams5, DeleteTableDataParams, DetailedTableInfoDc, GetTableDataParams, GetTableListParams, GetTablesInfoParams, MapTableInfoDc, MapTableParams, PagedBulkFeaturesListDc, PagedFeaturesListDc, PagedListFeatureDc, PagedListTableListItemDc, ResourceDependenciesDc, UpdateTableDataParams, UpdateTableDataPayload, UpdateTableDc, WriteTableDataPayload } from './data-contracts';
1
+ import { BulkOperationResultDc, CreateViewFromQueryDc, CreateViewFromQueryLayerDc, DeleteResourcesParams3, 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
@@ -41,7 +41,7 @@ export declare class TablesService extends Service {
41
41
  * @secure
42
42
  * @response `200` OK
43
43
  */
44
- deleteResources(query: DeleteResourcesParams5): Promise<BulkOperationResultDc[]>;
44
+ deleteResources(query: DeleteResourcesParams3): Promise<BulkOperationResultDc[]>;
45
45
  /**
46
46
  * No description
47
47
  *
@@ -1,4 +1,4 @@
1
- import { GetCapabilities1Params, GetCapabilitiesParams8, GetFeatureInfoParams, GetLegendGraphicParams, GetMapParams } from './data-contracts';
1
+ import { GetCapabilities1Params, GetCapabilitiesParams10, GetFeatureInfoParams, GetLegendGraphicParams, GetMapParams } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -17,7 +17,7 @@ export declare class WmsServerService extends Service {
17
17
  * @secure
18
18
  * @response `200` OK
19
19
  */
20
- getCapabilities(query: GetCapabilitiesParams8): Promise<void>;
20
+ getCapabilities(query: GetCapabilitiesParams10): Promise<void>;
21
21
  /**
22
22
  * No description
23
23
  *