@evergis/api 3.0.120 → 3.0.122
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__/ProjectsService.d.ts +2 -2
- package/dist/__generated__/StatisticService.d.ts +2 -2
- package/dist/__generated__/SymbolStorageService.d.ts +207 -0
- package/dist/__generated__/TablesService.d.ts +2 -2
- package/dist/__generated__/WmsServerService.d.ts +2 -2
- package/dist/__generated__/data-contracts.d.ts +488 -164
- package/dist/api.cjs.development.js +24 -8
- 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 +193 -161
- package/dist/api.esm.js.map +1 -1
- 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 { AccessControlListDc, BulkOperationResultDc,
|
|
1
|
+
import { AccessControlListDc, BulkOperationResultDc, DeleteResourcesParams7, 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:
|
|
52
|
+
deleteResources(query: DeleteResourcesParams7): Promise<BulkOperationResultDc[]>;
|
|
53
53
|
/**
|
|
54
54
|
* No description
|
|
55
55
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClassifyDc,
|
|
1
|
+
import { ClassifyDc, ClassifyParams6, StatisticsDbParams, StatisticsDc, SumOfProductParams } from './data-contracts';
|
|
2
2
|
import { Service } from './Service';
|
|
3
3
|
/**
|
|
4
4
|
* @title Spatial Processing Core API
|
|
@@ -27,7 +27,7 @@ export declare class StatisticService extends Service {
|
|
|
27
27
|
* @request GET:/statistics/classify
|
|
28
28
|
* @response `200` Success
|
|
29
29
|
*/
|
|
30
|
-
classify(query:
|
|
30
|
+
classify(query: ClassifyParams6): Promise<ClassifyDc>;
|
|
31
31
|
/**
|
|
32
32
|
* No description
|
|
33
33
|
*
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { AccessControlListDc, CreateSymbolCategoryDc, CreateSymbolDc, GetSymbolCategoriesParams, GetSymbolsListParams, PagedListSymbolCategoryInfoDc, PagedListSymbolInfoDc, SymbolCategoryInfoDc, SymbolInfoDc, UpdateSymbolCategoryDc, UpdateSymbolDc } from './data-contracts';
|
|
2
|
+
import { Service } from './Service';
|
|
3
|
+
/**
|
|
4
|
+
* @title Spatial Processing Core API
|
|
5
|
+
* @version 1.0.0
|
|
6
|
+
* @baseUrl /sp
|
|
7
|
+
*/
|
|
8
|
+
export declare class SymbolStorageService extends Service {
|
|
9
|
+
/**
|
|
10
|
+
* No description
|
|
11
|
+
*
|
|
12
|
+
* @tags SymbolStorage
|
|
13
|
+
* @name AddSymbolCategory
|
|
14
|
+
* @operationId SymbolStorageController_AddSymbolCategory
|
|
15
|
+
* @summary Add symbol category.
|
|
16
|
+
* @request POST:/symbols/category
|
|
17
|
+
* @response `200` Success
|
|
18
|
+
*/
|
|
19
|
+
addSymbolCategory(data: CreateSymbolCategoryDc): Promise<number>;
|
|
20
|
+
/**
|
|
21
|
+
* No description
|
|
22
|
+
*
|
|
23
|
+
* @tags SymbolStorage
|
|
24
|
+
* @name UpdateSymbolCategory
|
|
25
|
+
* @operationId SymbolStorageController_UpdateSymbolCategory
|
|
26
|
+
* @summary Update symbol category by id.
|
|
27
|
+
* @request PATCH:/symbols/category/{id}
|
|
28
|
+
* @response `200` Success
|
|
29
|
+
*/
|
|
30
|
+
updateSymbolCategory(id: number, data: UpdateSymbolCategoryDc): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* No description
|
|
33
|
+
*
|
|
34
|
+
* @tags SymbolStorage
|
|
35
|
+
* @name GetSymbolCategory
|
|
36
|
+
* @operationId SymbolStorageController_GetSymbolCategory
|
|
37
|
+
* @summary Get symbol category by id.
|
|
38
|
+
* @request GET:/symbols/category/{id}
|
|
39
|
+
* @response `200` Success
|
|
40
|
+
*/
|
|
41
|
+
getSymbolCategory(id: number): Promise<SymbolCategoryInfoDc>;
|
|
42
|
+
/**
|
|
43
|
+
* No description
|
|
44
|
+
*
|
|
45
|
+
* @tags SymbolStorage
|
|
46
|
+
* @name RemoveSymbolCategory
|
|
47
|
+
* @operationId SymbolStorageController_RemoveSymbolCategory
|
|
48
|
+
* @summary Delete symbol category by id.
|
|
49
|
+
* @request DELETE:/symbols/category/{id}
|
|
50
|
+
* @response `200` Success
|
|
51
|
+
*/
|
|
52
|
+
removeSymbolCategory(id: number): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* No description
|
|
55
|
+
*
|
|
56
|
+
* @tags SymbolStorage
|
|
57
|
+
* @name GetSymbolCategories
|
|
58
|
+
* @operationId SymbolStorageController_GetSymbolCategories
|
|
59
|
+
* @summary Get list of symbol categories.
|
|
60
|
+
* @request GET:/symbols/category/list
|
|
61
|
+
* @response `200` Success
|
|
62
|
+
*/
|
|
63
|
+
getSymbolCategories(query: GetSymbolCategoriesParams): Promise<PagedListSymbolCategoryInfoDc>;
|
|
64
|
+
/**
|
|
65
|
+
* No description
|
|
66
|
+
*
|
|
67
|
+
* @tags SymbolStorage
|
|
68
|
+
* @name GetCategoryPermissions
|
|
69
|
+
* @operationId SymbolStorageController_GetCategoryPermissions
|
|
70
|
+
* @summary Get symbol category permissions.
|
|
71
|
+
* @request GET:/symbols/category/permissions/{id}
|
|
72
|
+
* @response `200` Success
|
|
73
|
+
*/
|
|
74
|
+
getCategoryPermissions(id: number): Promise<AccessControlListDc>;
|
|
75
|
+
/**
|
|
76
|
+
* No description
|
|
77
|
+
*
|
|
78
|
+
* @tags SymbolStorage
|
|
79
|
+
* @name AddCategoryPermissions
|
|
80
|
+
* @operationId SymbolStorageController_AddCategoryPermissions
|
|
81
|
+
* @summary Adds permissions for the symbol category, combining existing permissions with the given one.
|
|
82
|
+
* @request POST:/symbols/category/permissions/{id}
|
|
83
|
+
* @response `200` Success
|
|
84
|
+
*/
|
|
85
|
+
addCategoryPermissions(id: number, data: AccessControlListDc): Promise<AccessControlListDc>;
|
|
86
|
+
/**
|
|
87
|
+
* No description
|
|
88
|
+
*
|
|
89
|
+
* @tags SymbolStorage
|
|
90
|
+
* @name ChangeCategoryPermissions
|
|
91
|
+
* @operationId SymbolStorageController_ChangeCategoryPermissions
|
|
92
|
+
* @summary Replaces existing access control list for the symbol category with the given one.
|
|
93
|
+
* @request PATCH:/symbols/category/permissions/{id}
|
|
94
|
+
* @response `200` Success
|
|
95
|
+
*/
|
|
96
|
+
changeCategoryPermissions(id: number, data: AccessControlListDc): Promise<AccessControlListDc>;
|
|
97
|
+
/**
|
|
98
|
+
* No description
|
|
99
|
+
*
|
|
100
|
+
* @tags SymbolStorage
|
|
101
|
+
* @name RemoveCategoryPermissions
|
|
102
|
+
* @operationId SymbolStorageController_RemoveCategoryPermissions
|
|
103
|
+
* @summary Removes permissions for the symbol category for the given role.
|
|
104
|
+
* @request DELETE:/symbols/category/permissions/{id}/{role}
|
|
105
|
+
* @response `200` Success
|
|
106
|
+
*/
|
|
107
|
+
removeCategoryPermissions(id: number, role: string): Promise<AccessControlListDc>;
|
|
108
|
+
/**
|
|
109
|
+
* No description
|
|
110
|
+
*
|
|
111
|
+
* @tags SymbolStorage
|
|
112
|
+
* @name AddSymbol
|
|
113
|
+
* @operationId SymbolStorageController_AddSymbol
|
|
114
|
+
* @summary Add symbol.
|
|
115
|
+
* @request POST:/symbols
|
|
116
|
+
* @response `200` Success
|
|
117
|
+
*/
|
|
118
|
+
addSymbol(data: CreateSymbolDc): Promise<number>;
|
|
119
|
+
/**
|
|
120
|
+
* No description
|
|
121
|
+
*
|
|
122
|
+
* @tags SymbolStorage
|
|
123
|
+
* @name UpdateSymbol
|
|
124
|
+
* @operationId SymbolStorageController_UpdateSymbol
|
|
125
|
+
* @summary Update symbol by id.
|
|
126
|
+
* @request PATCH:/symbols/{id}
|
|
127
|
+
* @response `200` Success
|
|
128
|
+
*/
|
|
129
|
+
updateSymbol(id: number, data: UpdateSymbolDc): Promise<void>;
|
|
130
|
+
/**
|
|
131
|
+
* No description
|
|
132
|
+
*
|
|
133
|
+
* @tags SymbolStorage
|
|
134
|
+
* @name GetSymbol
|
|
135
|
+
* @operationId SymbolStorageController_GetSymbol
|
|
136
|
+
* @summary Get symbol by id.
|
|
137
|
+
* @request GET:/symbols/{id}
|
|
138
|
+
* @response `200` Success
|
|
139
|
+
*/
|
|
140
|
+
getSymbol(id: number): Promise<SymbolInfoDc>;
|
|
141
|
+
/**
|
|
142
|
+
* No description
|
|
143
|
+
*
|
|
144
|
+
* @tags SymbolStorage
|
|
145
|
+
* @name RemoveSymbol
|
|
146
|
+
* @operationId SymbolStorageController_RemoveSymbol
|
|
147
|
+
* @summary Remove symbol by id.
|
|
148
|
+
* @request DELETE:/symbols/{id}
|
|
149
|
+
* @response `200` Success
|
|
150
|
+
*/
|
|
151
|
+
removeSymbol(id: number): Promise<void>;
|
|
152
|
+
/**
|
|
153
|
+
* No description
|
|
154
|
+
*
|
|
155
|
+
* @tags SymbolStorage
|
|
156
|
+
* @name GetSymbolsList
|
|
157
|
+
* @operationId SymbolStorageController_GetSymbolsList
|
|
158
|
+
* @summary Get symbol list.
|
|
159
|
+
* @request GET:/symbols/list
|
|
160
|
+
* @response `200` Success
|
|
161
|
+
*/
|
|
162
|
+
getSymbolsList(query: GetSymbolsListParams): Promise<PagedListSymbolInfoDc>;
|
|
163
|
+
/**
|
|
164
|
+
* No description
|
|
165
|
+
*
|
|
166
|
+
* @tags SymbolStorage
|
|
167
|
+
* @name GetPermissions
|
|
168
|
+
* @operationId SymbolStorageController_GetPermissions
|
|
169
|
+
* @summary Get symbol permissions.
|
|
170
|
+
* @request GET:/symbols/permissions/{id}
|
|
171
|
+
* @response `200` Success
|
|
172
|
+
*/
|
|
173
|
+
getPermissions(id: number): Promise<AccessControlListDc>;
|
|
174
|
+
/**
|
|
175
|
+
* No description
|
|
176
|
+
*
|
|
177
|
+
* @tags SymbolStorage
|
|
178
|
+
* @name AddPermissions
|
|
179
|
+
* @operationId SymbolStorageController_AddPermissions
|
|
180
|
+
* @summary Adds permissions for the symbol, combining existing permissions with the given one.
|
|
181
|
+
* @request POST:/symbols/permissions/{id}
|
|
182
|
+
* @response `200` Success
|
|
183
|
+
*/
|
|
184
|
+
addPermissions(id: number, data: AccessControlListDc): Promise<AccessControlListDc>;
|
|
185
|
+
/**
|
|
186
|
+
* No description
|
|
187
|
+
*
|
|
188
|
+
* @tags SymbolStorage
|
|
189
|
+
* @name ChangePermissions
|
|
190
|
+
* @operationId SymbolStorageController_ChangePermissions
|
|
191
|
+
* @summary Replaces existing access control list for the symbol with the given one.
|
|
192
|
+
* @request PATCH:/symbols/permissions/{id}
|
|
193
|
+
* @response `200` Success
|
|
194
|
+
*/
|
|
195
|
+
changePermissions(id: number, data: AccessControlListDc): Promise<AccessControlListDc>;
|
|
196
|
+
/**
|
|
197
|
+
* No description
|
|
198
|
+
*
|
|
199
|
+
* @tags SymbolStorage
|
|
200
|
+
* @name RemovePermissions
|
|
201
|
+
* @operationId SymbolStorageController_RemovePermissions
|
|
202
|
+
* @summary Removes permissions for the symbol for the given role.
|
|
203
|
+
* @request DELETE:/symbols/permissions/{id}/{role}
|
|
204
|
+
* @response `200` Success
|
|
205
|
+
*/
|
|
206
|
+
removePermissions(id: number, role: string): Promise<AccessControlListDc>;
|
|
207
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessControlListDc, BulkOperationResultDc,
|
|
1
|
+
import { AccessControlListDc, BulkOperationResultDc, DeleteResourcesParams9, 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:
|
|
52
|
+
deleteResources(query: DeleteResourcesParams9): Promise<BulkOperationResultDc[]>;
|
|
53
53
|
/**
|
|
54
54
|
* No description
|
|
55
55
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetCapabilities1Params,
|
|
1
|
+
import { GetCapabilities1Params, GetCapabilitiesParams9, 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:
|
|
19
|
+
getCapabilities(query: GetCapabilitiesParams9): Promise<void>;
|
|
20
20
|
/**
|
|
21
21
|
* No description
|
|
22
22
|
*
|