@evergis/api 3.0.193 → 3.0.194

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
@@ -7,7 +7,7 @@ import { SpatialReferencesService } from './__generated__/SpatialReferencesServi
7
7
  import { UniversalSearchService } from './__generated__/UniversalSearchService';
8
8
  import { CatalogService } from './__generated__/CatalogService';
9
9
  import { Account, AccountPreview, BulkOperations, Cameras, ClientSettings, External, Eql, 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';
10
- import { LoginDc } from './__generated__/data-contracts';
10
+ import { AuthenticateParams, LoginDc } from './__generated__/data-contracts';
11
11
  export declare type ApiParams = {
12
12
  url: string;
13
13
  wsUrl?: string;
@@ -65,8 +65,9 @@ export declare class Api extends EventEmitter {
65
65
  readonly catalog: CatalogService;
66
66
  readonly queryToken: QueryTokenAccessService;
67
67
  constructor({ url, wsUrl, wsKeepAlive, snappingHubUrl, http, urlPath, httpOptions, }: ApiParams);
68
- init({ authParams, connectWs, initScheduler, fetchSettings, fetchUser, }: {
68
+ init({ authParams, authQueryParams, connectWs, initScheduler, fetchSettings, fetchUser, }: {
69
69
  authParams?: LoginDc;
70
+ authQueryParams?: AuthenticateParams;
70
71
  connectWs?: boolean;
71
72
  connectSignalR?: boolean;
72
73
  initScheduler?: boolean;
@@ -1,4 +1,4 @@
1
- import { ChangeEmailParams, ChangePasswordPayload, ConfirmChangeEmailParams, ConfirmEmail1Params, CreateRoleDc, CreateUserDc, CreateUserParams, ExtendedUserInfoDc, GetExtendedUsersParams, GetRolesParams, GetUsersParams, IsEmailExistsParams, IsUsernameExistsParams, LoginDc, PagedListExtendedUserInfoDc, PagedListRoleInfoDc, PagedListUserInfoDc, RegisterUserDc, ResetPasswordCallbackPayload, ResetPasswordParams, SetEmailPayload, UpdateRoleDc, UpdateUserDc, UsedProjectDc, UserInfoDc } from './data-contracts';
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';
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(data: LoginDc): Promise<string>;
261
+ authenticate(query: AuthenticateParams, data: LoginDc): Promise<string>;
262
262
  /**
263
263
  * No description
264
264
  *
@@ -292,6 +292,39 @@ export declare class AccountService extends Service {
292
292
  * @response `200` OK
293
293
  */
294
294
  ldapLogin(data: LoginDc): Promise<void>;
295
+ /**
296
+ * No description
297
+ *
298
+ * @tags Account
299
+ * @name RegisterClient
300
+ * @operationId AccountController_RegisterClient
301
+ * @summary Register new client.
302
+ * @request POST:/account/oauth2/client
303
+ * @response `200` OK
304
+ */
305
+ registerClient(data: RegisterClientRequestDc): Promise<RegisterClientResponseDc>;
306
+ /**
307
+ * No description
308
+ *
309
+ * @tags Account
310
+ * @name UnbindClient
311
+ * @operationId AccountController_UnbindClient
312
+ * @summary Unbind client with id.
313
+ * @request DELETE:/account/oauth2/client/{clientId}
314
+ * @response `200` OK
315
+ */
316
+ unbindClient(clientId: string): Promise<void>;
317
+ /**
318
+ * No description
319
+ *
320
+ * @tags Account
321
+ * @name Token
322
+ * @operationId AccountController_Token
323
+ * @summary Get access token request.
324
+ * @request POST:/account/oauth2/token
325
+ * @response `200` OK
326
+ */
327
+ token(data: TokenRequestDc): Promise<TokenResponseDc>;
295
328
  /**
296
329
  * No description
297
330
  *
@@ -1,4 +1,4 @@
1
- import { AccessControlListDc, CatalogResourceDc, CreateDirectoryDc, CreateFilePayload, GetAllParams, GetTagsParams, ListResourcesDto, MoveResourceDc, PagedResourcesListDc, PatchResourceDc, PostGetAllParams, PutTagsPayload, ResourceAclDc, SearchResourcesDto, SearchResourcesParams, SetPermissionsPayload } from './data-contracts';
1
+ import { AccessControlListDc, CatalogResourceDc, CreateDirectoryDc, CreateFilePayload, GetAllParams, GetTagsParams, ListResourcesDto, MoveResourceDc, PagedResourcesListDc, PatchResourceDc, PostGetAllParams, PutTagsPayload, SearchResourcesDto, SearchResourcesParams, SetPermissionsPayload } from './data-contracts';
2
2
  import { Service } from './Service';
3
3
  /**
4
4
  * @title Spatial Processing Core API
@@ -148,7 +148,7 @@ export declare class CatalogService extends Service {
148
148
  * @request PUT:/resources/{resourceId}/permissions
149
149
  * @response `200` OK
150
150
  */
151
- setPermissions1(resourceId: string, data: AccessControlListDc): Promise<AccessControlListDc>;
151
+ setPermissions1(resourceId: string, data: AccessControlListDc): Promise<void>;
152
152
  /**
153
153
  * No description
154
154
  *
@@ -159,7 +159,7 @@ export declare class CatalogService extends Service {
159
159
  * @request PUT:/resources/permissions
160
160
  * @response `200` OK
161
161
  */
162
- setPermissions(data: SetPermissionsPayload): Promise<ResourceAclDc[]>;
162
+ setPermissions(data: SetPermissionsPayload): Promise<void>;
163
163
  /**
164
164
  * No description
165
165
  *
@@ -1,4 +1,4 @@
1
- import { AccessControlListDc, BulkOperationResultDc, DeleteResourcesParams3, ExtendedProjectInfoDc, ExtendedProjectLayersInfo, FileUploadResponse, GetProjectsInfoParams, GetProjectsListParams, PagedListProjectInfoDc, ProjectsListDc, ResourceDependenciesDc, SetPermissionsBatchBody, SetPreviewBody } from './data-contracts';
1
+ import { AccessControlListDc, BulkOperationResultDc, DeleteResourcesParams4, 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: DeleteResourcesParams3): Promise<BulkOperationResultDc[]>;
52
+ deleteResources(query: DeleteResourcesParams4): Promise<BulkOperationResultDc[]>;
53
53
  /**
54
54
  * No description
55
55
  *
@@ -1,4 +1,4 @@
1
- import { ClassifyDc, ClassifyParams8, GetClassifyDc, GetStatisticsDc, GetSumOfProductDc, StatisticsDbParams, StatisticsDc, SumOfProductParams } from './data-contracts';
1
+ import { ClassifyDc, ClassifyParams4, 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: ClassifyParams8): Promise<ClassifyDc>;
41
+ classify(query: ClassifyParams4): Promise<ClassifyDc>;
42
42
  /**
43
43
  * No description
44
44
  *
@@ -1,4 +1,4 @@
1
- import { AccessControlListDc, BulkOperationResultDc, CreateViewFromQueryLayerDc, DeleteResourcesParams3, DeleteTableDataParams, DetailedTableInfoDc, FileUploadResponse, GetTableDataParams, GetTableListParams, GetTablesInfoParams, GetUniqueDataRowsParams, MapTableInfoDc, MapTableParams, PagedListIEnumerable1, PagedListTableInfoDc, ResourceDependenciesDc, SetPermissionsBatchInput, SetPreviewInput, TableListDc, UpdateTableDataParams, UpdateTableDataPayload, UpdateTableDc, WriteTableDataPayload } from './data-contracts';
1
+ import { AccessControlListDc, BulkOperationResultDc, CreateViewFromQueryLayerDc, DeleteResourcesParams10, 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: DeleteResourcesParams3): Promise<BulkOperationResultDc[]>;
52
+ deleteResources(query: DeleteResourcesParams10): Promise<BulkOperationResultDc[]>;
53
53
  /**
54
54
  * No description
55
55
  *
@@ -1,4 +1,4 @@
1
- import { GetAllParams6, PagedListTagInfoDc } from './data-contracts';
1
+ import { GetAllParams3, PagedListTagInfoDc } 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 TagsService extends Service {
16
16
  * @request GET:/tags
17
17
  * @response `200` OK
18
18
  */
19
- getAll(query: GetAllParams6): Promise<PagedListTagInfoDc>;
19
+ getAll(query: GetAllParams3): Promise<PagedListTagInfoDc>;
20
20
  /**
21
21
  * No description
22
22
  *
@@ -1,4 +1,4 @@
1
- import { GetCapabilities1Params, GetCapabilitiesParams4, GetFeatureInfoParams, GetLegendGraphicParams, GetMapParams } from './data-contracts';
1
+ import { GetCapabilities1Params, GetCapabilitiesParams7, 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: GetCapabilitiesParams4): Promise<void>;
19
+ getCapabilities(query: GetCapabilitiesParams7): Promise<void>;
20
20
  /**
21
21
  * No description
22
22
  *