@evergis/api 3.0.72 → 3.0.73

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,6 +1,6 @@
1
1
  import { Options as KyOptions } from 'ky';
2
2
  import { EventEmitter } from '@evergis/event-emitter';
3
- import { Account, External, ClientSettings, PortalSettings, FileUpload, General, Geocode, Import, Layers, Names, Namespace, Notification, Projects, ResourceCatalog, Resources, Scheduler, Security, Styles, Tables, Tools, AccountPreview, BulkOperations, IceRouter } from './services';
3
+ import { Account, External, ClientSettings, PortalSettings, FileUpload, General, Geocode, Import, Layers, Names, Namespace, Notification, Projects, ResourceCatalog, Resources, Scheduler, Security, Styles, Tables, Tools, AccountPreview, BulkOperations, IceRouter, Statistic } from './services';
4
4
  import { Print } from './services/Print';
5
5
  import { HttpClient } from './__generated__/HttpClient';
6
6
  import { LoginDc } from './__generated__/data-contracts';
@@ -47,6 +47,7 @@ export declare class Api extends EventEmitter {
47
47
  readonly names: Names;
48
48
  readonly bulk: BulkOperations;
49
49
  readonly iceRouter: IceRouter;
50
+ readonly statistic: Statistic;
50
51
  constructor({ url, wsUrl, http, urlPath, httpOptions }: ApiParams);
51
52
  init({ authParams, connectWs, initScheduler, fetchSettings, fetchUser, }: {
52
53
  authParams?: LoginDc;
@@ -1,4 +1,4 @@
1
- import { AccessControlListDc, AddPermissionsBody, BulkOperationResultDc, CompositeServiceInfoDc, CreateProjectPayload, CreateShareProjectPayload, DeleteResourcesParams8, ExtendedProjectLayersInfo, FileUploadResponse, GetProjectsListParams, IListResponse, ListResponseProjectInfoDc, ResourceDependenciesDc, ResourceInfoDc, ServiceInfoDc, SetPermissionsBatchBody, SetPermissionsBody, SetPreviewBody, SharedProjectInfoDc, UpdateProjectPayload } from './data-contracts';
1
+ import { AccessControlListDc, AddPermissionsBody, BulkOperationResultDc, CompositeServiceInfoDc, CreateProjectPayload, CreateShareProjectPayload, DeleteResourcesParams6, ExtendedProjectLayersInfo, FileUploadResponse, GetProjectsListParams, IListResponse, ListResponseProjectInfoDc, ResourceDependenciesDc, ResourceInfoDc, ServiceInfoDc, SetPermissionsBatchBody, SetPermissionsBody, SetPreviewBody, SharedProjectInfoDc, UpdateProjectPayload } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -82,7 +82,7 @@ export declare class ProjectsService extends Service {
82
82
  * @request DELETE:/projects
83
83
  * @response `200` Success
84
84
  */
85
- deleteResources(query: DeleteResourcesParams8): Promise<BulkOperationResultDc[]>;
85
+ deleteResources(query: DeleteResourcesParams6): Promise<BulkOperationResultDc[]>;
86
86
  /**
87
87
  * No description
88
88
  *
@@ -1,4 +1,4 @@
1
- import { ClassifyDc, ClassifyParams6, PositionDc, StatisticParams } from './data-contracts';
1
+ import { ClassifyDc, ClassifyParams7, StatisticsDbParams, StatisticsDc } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -10,13 +10,13 @@ export declare class StatisticService extends Service {
10
10
  * No description
11
11
  *
12
12
  * @tags Statistic
13
- * @name Statistic
14
- * @operationId StatisticController_Statistic
15
- * @summary Returns statistic result based on requested statistic type.
16
- * @request POST:/statistics
13
+ * @name StatisticsDb
14
+ * @operationId StatisticController_StatisticsDb
15
+ * @summary Calculates statistics for layer attribute.
16
+ * @request GET:/statistics
17
17
  * @response `200` Success
18
18
  */
19
- statistic(query: StatisticParams): Promise<PositionDc>;
19
+ statisticsDb(query: StatisticsDbParams): Promise<StatisticsDc>;
20
20
  /**
21
21
  * No description
22
22
  *
@@ -27,5 +27,5 @@ export declare class StatisticService extends Service {
27
27
  * @request GET:/classify
28
28
  * @response `200` Success
29
29
  */
30
- classify(query: ClassifyParams6): Promise<ClassifyDc>;
30
+ classify(query: ClassifyParams7): Promise<ClassifyDc>;
31
31
  }
@@ -1,4 +1,4 @@
1
- import { CreateStylePayload, StyleCreationResponseDc, StyleDc, UpdateStylePayload } from './data-contracts';
1
+ import { AddFontPayload, CreateStylePayload, RemoveFontParams, StyleCreationResponseDc, StyleDc, UpdateStylePayload } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -50,4 +50,26 @@ export declare class StyleService extends Service {
50
50
  * @response `200` Success
51
51
  */
52
52
  getAllFonts(): Promise<string[]>;
53
+ /**
54
+ * No description
55
+ *
56
+ * @tags StyleService
57
+ * @name AddFont
58
+ * @operationId StyleServiceController_AddFont
59
+ * @summary Install new font.
60
+ * @request POST:/styles/fonts
61
+ * @response `200` Success
62
+ */
63
+ addFont(data: AddFontPayload): Promise<void>;
64
+ /**
65
+ * No description
66
+ *
67
+ * @tags StyleService
68
+ * @name RemoveFont
69
+ * @operationId StyleServiceController_RemoveFont
70
+ * @summary Remove installed font.
71
+ * @request DELETE:/styles/fonts
72
+ * @response `200` Success
73
+ */
74
+ removeFont(query: RemoveFontParams): Promise<void>;
53
75
  }
@@ -1,4 +1,4 @@
1
- import { GetCapabilities1Params, GetCapabilitiesParams7, 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: GetCapabilitiesParams7): Promise<void>;
19
+ getCapabilities(query: GetCapabilitiesParams8): Promise<void>;
20
20
  /**
21
21
  * No description
22
22
  *