@evergis/api 3.0.44 → 3.0.48
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/dist/Api.d.ts +2 -1
- package/dist/__generated__/AccountService.d.ts +3 -3
- package/dist/__generated__/BulkOperationsService.d.ts +42 -0
- package/dist/__generated__/LayersService.d.ts +12 -1
- package/dist/__generated__/ProjectsService.d.ts +12 -1
- package/dist/__generated__/TablesService.d.ts +12 -1
- package/dist/__generated__/data-contracts.d.ts +62 -1
- package/dist/api.cjs.development.js +158 -4
- 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 +158 -5
- package/dist/api.esm.js.map +1 -1
- package/dist/services/BulkOperations.d.ts +7 -0
- package/dist/services/index.d.ts +1 -0
- package/package.json +2 -2
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, FileUpload, General, Geocode, Import, Layers, Names, Namespace, Notification, Projects, ResourceCatalog, Resources, Scheduler, Security, Styles, Tables, Tools, AccountPreview } from './services';
|
|
3
|
+
import { Account, External, ClientSettings, FileUpload, General, Geocode, Import, Layers, Names, Namespace, Notification, Projects, ResourceCatalog, Resources, Scheduler, Security, Styles, Tables, Tools, AccountPreview, BulkOperations } from './services';
|
|
4
4
|
import { Print } from './services/Print';
|
|
5
5
|
import { HttpClient } from './__generated__/HttpClient';
|
|
6
6
|
import { LoginDc } from './__generated__/data-contracts';
|
|
@@ -43,6 +43,7 @@ export declare class Api extends EventEmitter {
|
|
|
43
43
|
readonly external: External;
|
|
44
44
|
readonly clientSettings: ClientSettings;
|
|
45
45
|
readonly names: Names;
|
|
46
|
+
readonly bulk: BulkOperations;
|
|
46
47
|
constructor({ url, wsUrl, http, urlPath, httpOptions }: ApiParams);
|
|
47
48
|
init({ authParams, connectWs, initScheduler, fetchSettings, fetchUser, }: {
|
|
48
49
|
authParams?: LoginDc;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEmailParams, ChangePasswordPayload, ConfirmChangeEmailParams, ConfirmEmail1Params, CreateRoleDc, CreateUserDc, CreateUserParams, ExtendedUserInfoDc, GetExtendedUsersParams, GetRolesParams, GetUsersParams, IsEmailExistsParams, IsUsernameExistsParams, ListResponseExtendedUserInfoDc, ListResponseRoleInfoDc, ListResponseUserInfoDc, LoginDc, RegisterUserDc, ResetPasswordCallbackPayload, ResetPasswordParams, SetEmailPayload,
|
|
1
|
+
import { ChangeEmailParams, ChangePasswordPayload, ConfirmChangeEmailParams, ConfirmEmail1Params, CreateRoleDc, CreateUserDc, CreateUserParams, ExtendedUserInfoDc, GetExtendedUsersParams, GetRolesParams, GetUsersParams, IsEmailExistsParams, IsUsernameExistsParams, ListResponseExtendedUserInfoDc, ListResponseRoleInfoDc, ListResponseUserInfoDc, LoginDc, RegisterUserDc, ResetPasswordCallbackPayload, ResetPasswordParams, SetEmailPayload, UpdateRoleDc, UpdateUserDc, UsedProjectDc, UserInfoDc } from './data-contracts';
|
|
2
2
|
import { Service } from './Service';
|
|
3
3
|
/**
|
|
4
4
|
* @title Spatial Processing Core API
|
|
@@ -178,10 +178,10 @@ export declare class AccountService extends Service {
|
|
|
178
178
|
* @name SetUserPassword
|
|
179
179
|
* @operationId AccountController_SetUserPassword
|
|
180
180
|
* @summary Set user password.
|
|
181
|
-
* @request PATCH:/account/
|
|
181
|
+
* @request PATCH:/account/password/set
|
|
182
182
|
* @response `200` Success
|
|
183
183
|
*/
|
|
184
|
-
setUserPassword(
|
|
184
|
+
setUserPassword(data: LoginDc): Promise<void>;
|
|
185
185
|
/**
|
|
186
186
|
* No description
|
|
187
187
|
*
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { BatchResourcesAclDc, BatchResourcesCatalogDc, BulkOperationResultDc } from './data-contracts';
|
|
2
|
+
import { Service } from './Service';
|
|
3
|
+
/**
|
|
4
|
+
* @title Spatial Processing Core API
|
|
5
|
+
* @version v0.6.0
|
|
6
|
+
* @baseUrl /sp
|
|
7
|
+
*/
|
|
8
|
+
export declare class BulkOperationsService extends Service {
|
|
9
|
+
/**
|
|
10
|
+
* No description
|
|
11
|
+
*
|
|
12
|
+
* @tags BulkOperations
|
|
13
|
+
* @name BatchAddResourcesToCatalog
|
|
14
|
+
* @operationId BulkOperationsController_BatchAddResourcesToCatalog
|
|
15
|
+
* @summary Add resources to catalog.
|
|
16
|
+
* @request POST:/bulk/catalog/addResources
|
|
17
|
+
* @response `200` Success
|
|
18
|
+
*/
|
|
19
|
+
batchAddResourcesToCatalog(data: BatchResourcesCatalogDc): Promise<BulkOperationResultDc[]>;
|
|
20
|
+
/**
|
|
21
|
+
* No description
|
|
22
|
+
*
|
|
23
|
+
* @tags BulkOperations
|
|
24
|
+
* @name BatchDeleteResourcesFromCatalog
|
|
25
|
+
* @operationId BulkOperationsController_BatchDeleteResourcesFromCatalog
|
|
26
|
+
* @summary Delete resources to catalog.
|
|
27
|
+
* @request POST:/bulk/catalog/removeResources
|
|
28
|
+
* @response `200` Success
|
|
29
|
+
*/
|
|
30
|
+
batchDeleteResourcesFromCatalog(data: BatchResourcesCatalogDc): Promise<BulkOperationResultDc[]>;
|
|
31
|
+
/**
|
|
32
|
+
* No description
|
|
33
|
+
*
|
|
34
|
+
* @tags BulkOperations
|
|
35
|
+
* @name BatchResourcesPermissionsSet
|
|
36
|
+
* @operationId BulkOperationsController_BatchResourcesPermissionsSet
|
|
37
|
+
* @summary Perform resources set acl access batch operation.
|
|
38
|
+
* @request PUT:/bulk/resources/permissions
|
|
39
|
+
* @response `200` Success
|
|
40
|
+
*/
|
|
41
|
+
batchResourcesPermissionsSet(data: BatchResourcesAclDc): Promise<BulkOperationResultDc[]>;
|
|
42
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessControlListDc, AggregateAttributeParams, AggregationDataResultDc, AttributeDistinctsDc, ClassifyParams, CompositeServiceConfigurationDc, CompositeServiceInfoDc, CreateFeaturesPayload, DeleteFeatureParams, DeleteFeaturesParams, DistinctsParams, EditAttributesInfoDc, EnvelopeDc, ExpressionValidationResultDc, FailedServiceInfoDc, FeatureDc, FeatureLayerServiceInfoDc, FeatureSelectionDc, FeaturesListDc, FileUploadResponse, GetByGeometryGetParams, GetByGeometryParams, GetByGeometryPostParams, GetByGeometryPostPayload, GetByIdParams, GetFeaturesParams, GetFilteredFeaturesCountParams, GetLayerExtentParams, GetLayerImageParams, GetLayersListParams, GetTilesLayerImageParams, LayerUpdateInfoDc, LocalTileServiceConfigurationDc, PositionDc, PostgresLayerServiceConfigurationDc, PostgresTileCatalogServiceConfigurationDc, ProxyServiceConfigurationDc, ProxyServiceInfoDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfo, RemoteTileServiceInfoDc, ResourceDependenciesDc, SelectFeaturesParams, ServiceInfoDc, SetPreviewPayload, StyledLayerServiceConfigurationDc, SubtractParams, SubtractPayload, TileCatalogServiceInfoDc, TileServiceInfoDc, UniteParams, UnitePayload, UpdateFeaturePayload, ValidateExpressionParams } from './data-contracts';
|
|
1
|
+
import { AccessControlListDc, AggregateAttributeParams, AggregationDataResultDc, AttributeDistinctsDc, ClassifyParams, CompositeServiceConfigurationDc, CompositeServiceInfoDc, CreateFeaturesPayload, DeleteFeatureParams, DeleteFeaturesParams, DistinctsParams, EditAttributesInfoDc, EnvelopeDc, ExpressionValidationResultDc, FailedServiceInfoDc, FeatureDc, FeatureLayerServiceInfoDc, FeatureSelectionDc, FeaturesListDc, FileUploadResponse, GetByGeometryGetParams, GetByGeometryParams, GetByGeometryPostParams, GetByGeometryPostPayload, GetByIdParams, GetFeaturesParams, GetFilteredFeaturesCountParams, GetLayerExtentParams, GetLayerImageParams, GetLayersListParams, GetTilesLayerImageParams, LayerUpdateInfoDc, LocalTileServiceConfigurationDc, PositionDc, PostgresLayerServiceConfigurationDc, PostgresTileCatalogServiceConfigurationDc, ProxyServiceConfigurationDc, ProxyServiceInfoDc, RemoteTileServiceConfigurationDc, RemoteTileServiceInfo, RemoteTileServiceInfoDc, ResourceDependenciesDc, SelectFeaturesParams, ServiceInfoDc, SetPermissionsBatchPayload, SetPreviewPayload, StyledLayerServiceConfigurationDc, SubtractParams, SubtractPayload, TileCatalogServiceInfoDc, TileServiceInfoDc, UniteParams, UnitePayload, UpdateFeaturePayload, ValidateExpressionParams } from './data-contracts';
|
|
2
2
|
import { Service } from './Service';
|
|
3
3
|
/**
|
|
4
4
|
* @title Spatial Processing Core API
|
|
@@ -17,6 +17,17 @@ export declare class LayersService extends Service {
|
|
|
17
17
|
* @response `200` Success
|
|
18
18
|
*/
|
|
19
19
|
getLayersList(query: GetLayersListParams): Promise<import("./data-contracts").ListResponseServiceListItemDc>;
|
|
20
|
+
/**
|
|
21
|
+
* No description
|
|
22
|
+
*
|
|
23
|
+
* @tags Layers
|
|
24
|
+
* @name SetPermissionsBatch
|
|
25
|
+
* @operationId LayersController_SetPermissionsBatch
|
|
26
|
+
* @summary Overrides multiply resources permissions in single batch.
|
|
27
|
+
* @request PUT:/layers
|
|
28
|
+
* @response `200` Success
|
|
29
|
+
*/
|
|
30
|
+
setPermissionsBatch(data: SetPermissionsBatchPayload): Promise<void>;
|
|
20
31
|
/**
|
|
21
32
|
* No description
|
|
22
33
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessControlListDc, ExtendedProjectInfoDc, ExtendedProjectLayersInfo, FileUploadResponse, GetProjectsListParams, ListResponseProjectInfoPubDc, ResourceDependenciesDc, SetPreviewBody, SharedProjectConfigurationDc, SharedProjectInfoDc } from './data-contracts';
|
|
1
|
+
import { AccessControlListDc, ExtendedProjectInfoDc, ExtendedProjectLayersInfo, FileUploadResponse, GetProjectsListParams, ListResponseProjectInfoPubDc, ResourceDependenciesDc, SetPermissionsBatchBody, SetPreviewBody, SharedProjectConfigurationDc, SharedProjectInfoDc } from './data-contracts';
|
|
2
2
|
import { Service } from './Service';
|
|
3
3
|
/**
|
|
4
4
|
* @title Spatial Processing Core API
|
|
@@ -39,6 +39,17 @@ export declare class ProjectsService extends Service {
|
|
|
39
39
|
* @response `200` Success
|
|
40
40
|
*/
|
|
41
41
|
createProject(data: ExtendedProjectInfoDc): Promise<ExtendedProjectInfoDc>;
|
|
42
|
+
/**
|
|
43
|
+
* No description
|
|
44
|
+
*
|
|
45
|
+
* @tags Projects
|
|
46
|
+
* @name SetPermissionsBatch
|
|
47
|
+
* @operationId ProjectsController_SetPermissionsBatch
|
|
48
|
+
* @summary Overrides multiply resources permissions in single batch.
|
|
49
|
+
* @request PUT:/projects
|
|
50
|
+
* @response `200` Success
|
|
51
|
+
*/
|
|
52
|
+
setPermissionsBatch(data: SetPermissionsBatchBody): Promise<void>;
|
|
42
53
|
/**
|
|
43
54
|
* No description
|
|
44
55
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessControlListDc, DeleteTableDataParams, DetailedTableInfoDc, FileUploadResponse, GetTableListParams, GetUniqueDataRowsParams, MapRemoteTableInfoDc, MapRemoteTableParams, MapTableParams, MapTablePayload, MapViewInfoDc, MapViewParams, ResourceDependenciesDc, SetPreviewInput, UpdateTableDataParams, UpdateTableDataPayload, UpdateTableDc } from './data-contracts';
|
|
1
|
+
import { AccessControlListDc, DeleteTableDataParams, DetailedTableInfoDc, FileUploadResponse, GetTableListParams, GetUniqueDataRowsParams, MapRemoteTableInfoDc, MapRemoteTableParams, MapTableParams, MapTablePayload, MapViewInfoDc, MapViewParams, ResourceDependenciesDc, SetPermissionsBatchInput, SetPreviewInput, UpdateTableDataParams, UpdateTableDataPayload, UpdateTableDc } from './data-contracts';
|
|
2
2
|
import { Service } from './Service';
|
|
3
3
|
/**
|
|
4
4
|
* @title Spatial Processing Core API
|
|
@@ -28,6 +28,17 @@ export declare class TablesService extends Service {
|
|
|
28
28
|
* @response `200` Success
|
|
29
29
|
*/
|
|
30
30
|
createTable(data: DetailedTableInfoDc): Promise<DetailedTableInfoDc>;
|
|
31
|
+
/**
|
|
32
|
+
* No description
|
|
33
|
+
*
|
|
34
|
+
* @tags Tables
|
|
35
|
+
* @name SetPermissionsBatch
|
|
36
|
+
* @operationId TablesController_SetPermissionsBatch
|
|
37
|
+
* @summary Overrides multiply resources permissions in single batch.
|
|
38
|
+
* @request PUT:/tables
|
|
39
|
+
* @response `200` Success
|
|
40
|
+
*/
|
|
41
|
+
setPermissionsBatch(data: SetPermissionsBatchInput): Promise<void>;
|
|
31
42
|
/**
|
|
32
43
|
* No description
|
|
33
44
|
*
|
|
@@ -593,6 +593,28 @@ export interface BaseTaskDataStorageDc {
|
|
|
593
593
|
/** Type of the data storage. */
|
|
594
594
|
type: string;
|
|
595
595
|
}
|
|
596
|
+
/**
|
|
597
|
+
* Provides resources with their acl.
|
|
598
|
+
*/
|
|
599
|
+
export interface BatchResourcesAclDc {
|
|
600
|
+
/** A set of layers acl. */
|
|
601
|
+
layers?: ResourceAclDc[];
|
|
602
|
+
/** A set of tables acl. */
|
|
603
|
+
tables?: ResourceAclDc[];
|
|
604
|
+
/** A set of projects acl. */
|
|
605
|
+
projects?: ResourceAclDc[];
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* Provides bulk request to manage catalog resources.
|
|
609
|
+
*/
|
|
610
|
+
export interface BatchResourcesCatalogDc {
|
|
611
|
+
/** List of layers. */
|
|
612
|
+
layers?: CatalogResourceDc[];
|
|
613
|
+
/** List of tables. */
|
|
614
|
+
tables?: CatalogResourceDc[];
|
|
615
|
+
/** List of projects. */
|
|
616
|
+
projects?: CatalogResourceDc[];
|
|
617
|
+
}
|
|
596
618
|
/**
|
|
597
619
|
* The class describes data contract of bookmark at the map.
|
|
598
620
|
*/
|
|
@@ -630,6 +652,17 @@ export declare type BufferTaskParametersDc = FeatureTaskParametersDc & {
|
|
|
630
652
|
idAttributeName?: string;
|
|
631
653
|
geometryAttributeName?: string;
|
|
632
654
|
};
|
|
655
|
+
/**
|
|
656
|
+
* Provides set resources bulk operation status.
|
|
657
|
+
*/
|
|
658
|
+
export interface BulkOperationResultDc {
|
|
659
|
+
/** Name of the resource. */
|
|
660
|
+
resourceName?: string;
|
|
661
|
+
/** Error while perform operation. */
|
|
662
|
+
error?: string;
|
|
663
|
+
/** Sets true. */
|
|
664
|
+
isSuccess?: boolean;
|
|
665
|
+
}
|
|
633
666
|
export declare type CalculatedParameterDc = ParameterDcDouble & {
|
|
634
667
|
type?: string;
|
|
635
668
|
expression?: string;
|
|
@@ -644,6 +677,15 @@ export interface CatalogDataDc {
|
|
|
644
677
|
/** The user name. */
|
|
645
678
|
users: string[];
|
|
646
679
|
}
|
|
680
|
+
/**
|
|
681
|
+
* Provides catalog resources with users.
|
|
682
|
+
*/
|
|
683
|
+
export interface CatalogResourceDc {
|
|
684
|
+
/** Name of the resource to add. */
|
|
685
|
+
objectName: string;
|
|
686
|
+
/** Users list. */
|
|
687
|
+
users: string[];
|
|
688
|
+
}
|
|
647
689
|
/**
|
|
648
690
|
* The symbol that draws a feature as a circle.
|
|
649
691
|
*/
|
|
@@ -3193,6 +3235,15 @@ export declare type RemoteTileServiceInfoDc = TileServiceInfoDc & {
|
|
|
3193
3235
|
sourceServers?: string[];
|
|
3194
3236
|
copyrightText?: string;
|
|
3195
3237
|
};
|
|
3238
|
+
/**
|
|
3239
|
+
* Provides resource and its acl.
|
|
3240
|
+
*/
|
|
3241
|
+
export interface ResourceAclDc {
|
|
3242
|
+
/** Name of the resource to apply acl. */
|
|
3243
|
+
objectName: string;
|
|
3244
|
+
/** All available permissions list. */
|
|
3245
|
+
data: RolePermissionDc[];
|
|
3246
|
+
}
|
|
3196
3247
|
/**
|
|
3197
3248
|
* Link to a resource.
|
|
3198
3249
|
*/
|
|
@@ -3389,6 +3440,8 @@ export declare type ScaleBarElementDc = ModelElementDc & {
|
|
|
3389
3440
|
export interface SearchedUserDc {
|
|
3390
3441
|
/** Username. */
|
|
3391
3442
|
username?: string;
|
|
3443
|
+
/** Own user role. */
|
|
3444
|
+
ownRole?: string;
|
|
3392
3445
|
/** Photo. */
|
|
3393
3446
|
photo?: string;
|
|
3394
3447
|
}
|
|
@@ -5151,7 +5204,6 @@ export interface ConfirmChangeEmailParams {
|
|
|
5151
5204
|
/** Confirmation code. */
|
|
5152
5205
|
code: string;
|
|
5153
5206
|
}
|
|
5154
|
-
export declare type SetUserPasswordPayload = string;
|
|
5155
5207
|
export interface ChangePasswordPayload {
|
|
5156
5208
|
oldPassword: string;
|
|
5157
5209
|
password: string;
|
|
@@ -5383,7 +5435,10 @@ export interface GetLayersListParams {
|
|
|
5383
5435
|
geometryFilter?: string[];
|
|
5384
5436
|
/** Filters layers list by users favorite. */
|
|
5385
5437
|
isFavorite?: boolean;
|
|
5438
|
+
/** If set, returns for superuser layers for all users. */
|
|
5439
|
+
forAllUsers?: boolean;
|
|
5386
5440
|
}
|
|
5441
|
+
export declare type SetPermissionsBatchPayload = ResourceAclDc[];
|
|
5387
5442
|
export interface GetFeaturesParams {
|
|
5388
5443
|
/** Sets features filtering query. */
|
|
5389
5444
|
query?: string;
|
|
@@ -5772,7 +5827,10 @@ export interface GetProjectsListParams {
|
|
|
5772
5827
|
orderByFields?: string[];
|
|
5773
5828
|
/** Filters projects list by users favorite. */
|
|
5774
5829
|
isFavorite?: boolean;
|
|
5830
|
+
/** If set, returns for superuser projects for all users. */
|
|
5831
|
+
forAllUsers?: boolean;
|
|
5775
5832
|
}
|
|
5833
|
+
export declare type SetPermissionsBatchBody = ResourceAclDc[];
|
|
5776
5834
|
export interface SetPreviewBody {
|
|
5777
5835
|
/** @format binary */
|
|
5778
5836
|
file?: File;
|
|
@@ -5970,9 +6028,12 @@ export interface GetTableListParams {
|
|
|
5970
6028
|
orderByFields?: string[];
|
|
5971
6029
|
/** Filters tables list by users favorite. */
|
|
5972
6030
|
isFavorite?: boolean;
|
|
6031
|
+
/** If set, returns for superuser tables for all users. */
|
|
6032
|
+
forAllUsers?: boolean;
|
|
5973
6033
|
/** Filters layers by geometry types. */
|
|
5974
6034
|
geometryFilter?: string[];
|
|
5975
6035
|
}
|
|
6036
|
+
export declare type SetPermissionsBatchInput = ResourceAclDc[];
|
|
5976
6037
|
export declare type UpdateTableDataPayload = Record<string, any>[];
|
|
5977
6038
|
export interface UpdateTableDataParams {
|
|
5978
6039
|
/** Id column name. */
|
|
@@ -197,6 +197,107 @@ let Service = function Service(http) {
|
|
|
197
197
|
this.http = http;
|
|
198
198
|
};
|
|
199
199
|
|
|
200
|
+
/**
|
|
201
|
+
* @title Spatial Processing Core API
|
|
202
|
+
* @version v0.6.0
|
|
203
|
+
* @baseUrl /sp
|
|
204
|
+
*/
|
|
205
|
+
|
|
206
|
+
let BulkOperationsService = /*#__PURE__*/function (_Service) {
|
|
207
|
+
_inherits(BulkOperationsService, _Service);
|
|
208
|
+
|
|
209
|
+
var _super = /*#__PURE__*/_createSuper(BulkOperationsService);
|
|
210
|
+
|
|
211
|
+
function BulkOperationsService() {
|
|
212
|
+
_classCallCheck(this, BulkOperationsService);
|
|
213
|
+
|
|
214
|
+
return _super.apply(this, arguments);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
_createClass(BulkOperationsService, [{
|
|
218
|
+
key: "batchAddResourcesToCatalog",
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* No description
|
|
222
|
+
*
|
|
223
|
+
* @tags BulkOperations
|
|
224
|
+
* @name BatchAddResourcesToCatalog
|
|
225
|
+
* @operationId BulkOperationsController_BatchAddResourcesToCatalog
|
|
226
|
+
* @summary Add resources to catalog.
|
|
227
|
+
* @request POST:/bulk/catalog/addResources
|
|
228
|
+
* @response `200` Success
|
|
229
|
+
*/
|
|
230
|
+
value: function batchAddResourcesToCatalog(data) {
|
|
231
|
+
return this.http.post("/bulk/catalog/addResources", data).json();
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* No description
|
|
235
|
+
*
|
|
236
|
+
* @tags BulkOperations
|
|
237
|
+
* @name BatchDeleteResourcesFromCatalog
|
|
238
|
+
* @operationId BulkOperationsController_BatchDeleteResourcesFromCatalog
|
|
239
|
+
* @summary Delete resources to catalog.
|
|
240
|
+
* @request POST:/bulk/catalog/removeResources
|
|
241
|
+
* @response `200` Success
|
|
242
|
+
*/
|
|
243
|
+
|
|
244
|
+
}, {
|
|
245
|
+
key: "batchDeleteResourcesFromCatalog",
|
|
246
|
+
value: function batchDeleteResourcesFromCatalog(data) {
|
|
247
|
+
return this.http.post("/bulk/catalog/removeResources", data).json();
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* No description
|
|
251
|
+
*
|
|
252
|
+
* @tags BulkOperations
|
|
253
|
+
* @name BatchResourcesPermissionsSet
|
|
254
|
+
* @operationId BulkOperationsController_BatchResourcesPermissionsSet
|
|
255
|
+
* @summary Perform resources set acl access batch operation.
|
|
256
|
+
* @request PUT:/bulk/resources/permissions
|
|
257
|
+
* @response `200` Success
|
|
258
|
+
*/
|
|
259
|
+
|
|
260
|
+
}, {
|
|
261
|
+
key: "batchResourcesPermissionsSet",
|
|
262
|
+
value: function batchResourcesPermissionsSet(data) {
|
|
263
|
+
return this.http.put("/bulk/resources/permissions", data).json();
|
|
264
|
+
}
|
|
265
|
+
}]);
|
|
266
|
+
|
|
267
|
+
return BulkOperationsService;
|
|
268
|
+
}(Service);
|
|
269
|
+
|
|
270
|
+
let BulkOperations = /*#__PURE__*/function (_BulkOperationsServic) {
|
|
271
|
+
_inherits(BulkOperations, _BulkOperationsServic);
|
|
272
|
+
|
|
273
|
+
var _super = /*#__PURE__*/_createSuper(BulkOperations);
|
|
274
|
+
|
|
275
|
+
function BulkOperations() {
|
|
276
|
+
_classCallCheck(this, BulkOperations);
|
|
277
|
+
|
|
278
|
+
return _super.apply(this, arguments);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
_createClass(BulkOperations, [{
|
|
282
|
+
key: "updatePermissions",
|
|
283
|
+
value: function updatePermissions(data) {
|
|
284
|
+
return this.batchResourcesPermissionsSet(data);
|
|
285
|
+
}
|
|
286
|
+
}, {
|
|
287
|
+
key: "addToCatalog",
|
|
288
|
+
value: function addToCatalog(data) {
|
|
289
|
+
return this.batchAddResourcesToCatalog(data);
|
|
290
|
+
}
|
|
291
|
+
}, {
|
|
292
|
+
key: "deleteFromCatalog",
|
|
293
|
+
value: function deleteFromCatalog(data) {
|
|
294
|
+
return this.batchDeleteResourcesFromCatalog(data);
|
|
295
|
+
}
|
|
296
|
+
}]);
|
|
297
|
+
|
|
298
|
+
return BulkOperations;
|
|
299
|
+
}(BulkOperationsService);
|
|
300
|
+
|
|
200
301
|
/**
|
|
201
302
|
* @title Spatial Processing Core API
|
|
202
303
|
* @version v0.6.0
|
|
@@ -1324,6 +1425,22 @@ let LayersService = /*#__PURE__*/function (_Service) {
|
|
|
1324
1425
|
value: function getLayersList(query) {
|
|
1325
1426
|
return this.http.get("/layers", query).json();
|
|
1326
1427
|
}
|
|
1428
|
+
/**
|
|
1429
|
+
* No description
|
|
1430
|
+
*
|
|
1431
|
+
* @tags Layers
|
|
1432
|
+
* @name SetPermissionsBatch
|
|
1433
|
+
* @operationId LayersController_SetPermissionsBatch
|
|
1434
|
+
* @summary Overrides multiply resources permissions in single batch.
|
|
1435
|
+
* @request PUT:/layers
|
|
1436
|
+
* @response `200` Success
|
|
1437
|
+
*/
|
|
1438
|
+
|
|
1439
|
+
}, {
|
|
1440
|
+
key: "setPermissionsBatch",
|
|
1441
|
+
value: function setPermissionsBatch(data) {
|
|
1442
|
+
return this.http.put("/layers", data).then(() => {});
|
|
1443
|
+
}
|
|
1327
1444
|
/**
|
|
1328
1445
|
* No description
|
|
1329
1446
|
*
|
|
@@ -2334,6 +2451,22 @@ let TablesService = /*#__PURE__*/function (_Service) {
|
|
|
2334
2451
|
value: function createTable(data) {
|
|
2335
2452
|
return this.http.post("/tables", data).json();
|
|
2336
2453
|
}
|
|
2454
|
+
/**
|
|
2455
|
+
* No description
|
|
2456
|
+
*
|
|
2457
|
+
* @tags Tables
|
|
2458
|
+
* @name SetPermissionsBatch
|
|
2459
|
+
* @operationId TablesController_SetPermissionsBatch
|
|
2460
|
+
* @summary Overrides multiply resources permissions in single batch.
|
|
2461
|
+
* @request PUT:/tables
|
|
2462
|
+
* @response `200` Success
|
|
2463
|
+
*/
|
|
2464
|
+
|
|
2465
|
+
}, {
|
|
2466
|
+
key: "setPermissionsBatch",
|
|
2467
|
+
value: function setPermissionsBatch(data) {
|
|
2468
|
+
return this.http.put("/tables", data).then(() => {});
|
|
2469
|
+
}
|
|
2337
2470
|
/**
|
|
2338
2471
|
* No description
|
|
2339
2472
|
*
|
|
@@ -2783,6 +2916,22 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
|
|
|
2783
2916
|
value: function createProject(data) {
|
|
2784
2917
|
return this.http.post("/projects", data).json();
|
|
2785
2918
|
}
|
|
2919
|
+
/**
|
|
2920
|
+
* No description
|
|
2921
|
+
*
|
|
2922
|
+
* @tags Projects
|
|
2923
|
+
* @name SetPermissionsBatch
|
|
2924
|
+
* @operationId ProjectsController_SetPermissionsBatch
|
|
2925
|
+
* @summary Overrides multiply resources permissions in single batch.
|
|
2926
|
+
* @request PUT:/projects
|
|
2927
|
+
* @response `200` Success
|
|
2928
|
+
*/
|
|
2929
|
+
|
|
2930
|
+
}, {
|
|
2931
|
+
key: "setPermissionsBatch",
|
|
2932
|
+
value: function setPermissionsBatch(data) {
|
|
2933
|
+
return this.http.put("/projects", data).then(() => {});
|
|
2934
|
+
}
|
|
2786
2935
|
/**
|
|
2787
2936
|
* No description
|
|
2788
2937
|
*
|
|
@@ -4603,14 +4752,14 @@ let AccountService = /*#__PURE__*/function (_Service) {
|
|
|
4603
4752
|
* @name SetUserPassword
|
|
4604
4753
|
* @operationId AccountController_SetUserPassword
|
|
4605
4754
|
* @summary Set user password.
|
|
4606
|
-
* @request PATCH:/account/
|
|
4755
|
+
* @request PATCH:/account/password/set
|
|
4607
4756
|
* @response `200` Success
|
|
4608
4757
|
*/
|
|
4609
4758
|
|
|
4610
4759
|
}, {
|
|
4611
4760
|
key: "setUserPassword",
|
|
4612
|
-
value: function setUserPassword(
|
|
4613
|
-
return this.http.patch("/account/
|
|
4761
|
+
value: function setUserPassword(data) {
|
|
4762
|
+
return this.http.patch("/account/password/set", data).then(() => {});
|
|
4614
4763
|
}
|
|
4615
4764
|
/**
|
|
4616
4765
|
* No description
|
|
@@ -4958,7 +5107,10 @@ let Account = /*#__PURE__*/function (_AccountService) {
|
|
|
4958
5107
|
}, {
|
|
4959
5108
|
key: "setPassword",
|
|
4960
5109
|
value: function setPassword(password) {
|
|
4961
|
-
return this.setUserPassword(
|
|
5110
|
+
return this.setUserPassword({
|
|
5111
|
+
username: this.username,
|
|
5112
|
+
password
|
|
5113
|
+
});
|
|
4962
5114
|
}
|
|
4963
5115
|
}, {
|
|
4964
5116
|
key: "username",
|
|
@@ -6155,6 +6307,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
6155
6307
|
_this.styles = new Styles(_this.http);
|
|
6156
6308
|
_this.account = new Account(_this.http);
|
|
6157
6309
|
_this.accountPreview = new AccountPreview(_this.http, _this.account);
|
|
6310
|
+
_this.bulk = new BulkOperations(_this.http);
|
|
6158
6311
|
_this.security = new Security(_this.http, _this.account);
|
|
6159
6312
|
_this.notification = new Notification(_this.http);
|
|
6160
6313
|
_this.scheduler = new Scheduler(_this.http);
|
|
@@ -6935,6 +7088,7 @@ exports.API_USER_INFO_KEY = API_USER_INFO_KEY;
|
|
|
6935
7088
|
exports.Account = Account;
|
|
6936
7089
|
exports.AccountPreview = AccountPreview;
|
|
6937
7090
|
exports.Api = Api;
|
|
7091
|
+
exports.BulkOperations = BulkOperations;
|
|
6938
7092
|
exports.ClientSettings = ClientSettings;
|
|
6939
7093
|
exports.EvergisDynamicLayer = EvergisDynamicLayer;
|
|
6940
7094
|
exports.EvergisTileLayer = EvergisTileLayer;
|