@evergis/api 3.0.43 → 3.0.47

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 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, SetUserPasswordPayload, UpdateRoleDc, UpdateUserDc, UsedProjectDc, UserInfoDc } from './data-contracts';
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/user/{username}/password
181
+ * @request PATCH:/account/password/set
182
182
  * @response `200` Success
183
183
  */
184
- setUserPassword(username: string, data: SetUserPasswordPayload): Promise<void>;
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
  */
@@ -1477,6 +1519,26 @@ export interface ExtendedUserInfoDc {
1477
1519
  company?: string;
1478
1520
  /** Position. */
1479
1521
  position?: string;
1522
+ /**
1523
+ * Gets or sets date and time of creation.
1524
+ * @format date-time
1525
+ */
1526
+ dtCreate?: string;
1527
+ /**
1528
+ * Gets or sets date and time of last modifing.
1529
+ * @format date-time
1530
+ */
1531
+ dtModify?: string;
1532
+ /**
1533
+ * Gets or sets date and time of last log in.
1534
+ * @format date-time
1535
+ */
1536
+ dtLastLogin?: string;
1537
+ /**
1538
+ * Gets or sets id of modified user.
1539
+ * @format int32
1540
+ */
1541
+ idModifyUser?: number;
1480
1542
  /** Information about connected social networks. */
1481
1543
  social?: SocialNetworkInfoDc[];
1482
1544
  /** Username. */
@@ -2716,6 +2778,8 @@ write
2716
2778
 
2717
2779
  read
2718
2780
 
2781
+ read,configure
2782
+
2719
2783
  read,write
2720
2784
 
2721
2785
  read,write,configure
@@ -2725,6 +2789,7 @@ export declare enum Permissions {
2725
2789
  Configure = "configure",
2726
2790
  Write = "write",
2727
2791
  Read = "read",
2792
+ ReadConfigure = "read,configure",
2728
2793
  ReadWrite = "read,write",
2729
2794
  All = "read,write,configure"
2730
2795
  }
@@ -2986,6 +3051,8 @@ export interface ProjectInfoPubDc {
2986
3051
  *
2987
3052
  * read
2988
3053
  *
3054
+ * read,configure
3055
+ *
2989
3056
  * read,write
2990
3057
  *
2991
3058
  * read,write,configure
@@ -3168,6 +3235,15 @@ export declare type RemoteTileServiceInfoDc = TileServiceInfoDc & {
3168
3235
  sourceServers?: string[];
3169
3236
  copyrightText?: string;
3170
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
+ }
3171
3247
  /**
3172
3248
  * Link to a resource.
3173
3249
  */
@@ -3235,6 +3311,8 @@ export interface ResourceInfoDc {
3235
3311
  *
3236
3312
  * read
3237
3313
  *
3314
+ * read,configure
3315
+ *
3238
3316
  * read,write
3239
3317
  *
3240
3318
  * read,write,configure
@@ -3291,6 +3369,21 @@ export interface RoleInfoDc {
3291
3369
  * @format int32
3292
3370
  */
3293
3371
  usersInRole?: number;
3372
+ /**
3373
+ * Gets or sets date and time of creation.
3374
+ * @format date-time
3375
+ */
3376
+ dtCreate?: string;
3377
+ /**
3378
+ * Gets or sets date and time of last modifing.
3379
+ * @format date-time
3380
+ */
3381
+ dtModify?: string;
3382
+ /**
3383
+ * Gets or sets id of modified user.
3384
+ * @format int32
3385
+ */
3386
+ idModifyUser?: number;
3294
3387
  }
3295
3388
  /**
3296
3389
  * Roles permission.
@@ -3309,6 +3402,8 @@ export interface RolePermissionDc {
3309
3402
  *
3310
3403
  * read
3311
3404
  *
3405
+ * read,configure
3406
+ *
3312
3407
  * read,write
3313
3408
  *
3314
3409
  * read,write,configure
@@ -3345,6 +3440,8 @@ export declare type ScaleBarElementDc = ModelElementDc & {
3345
3440
  export interface SearchedUserDc {
3346
3441
  /** Username. */
3347
3442
  username?: string;
3443
+ /** Own user role. */
3444
+ ownRole?: string;
3348
3445
  /** Photo. */
3349
3446
  photo?: string;
3350
3447
  }
@@ -3573,6 +3670,8 @@ export interface ServiceInfoPubDc {
3573
3670
  *
3574
3671
  * read
3575
3672
  *
3673
+ * read,configure
3674
+ *
3576
3675
  * read,write
3577
3676
  *
3578
3677
  * read,write,configure
@@ -3609,6 +3708,8 @@ export interface ServiceListItemDc {
3609
3708
  *
3610
3709
  * read
3611
3710
  *
3711
+ * read,configure
3712
+ *
3612
3713
  * read,write
3613
3714
  *
3614
3715
  * read,write,configure
@@ -3788,6 +3889,8 @@ export interface SharedProjectInfoDc {
3788
3889
  *
3789
3890
  * read
3790
3891
  *
3892
+ * read,configure
3893
+ *
3791
3894
  * read,write
3792
3895
  *
3793
3896
  * read,write,configure
@@ -4019,6 +4122,8 @@ export interface TableInfoPubDc {
4019
4122
  *
4020
4123
  * read
4021
4124
  *
4125
+ * read,configure
4126
+ *
4022
4127
  * read,write
4023
4128
  *
4024
4129
  * read,write,configure
@@ -5099,7 +5204,6 @@ export interface ConfirmChangeEmailParams {
5099
5204
  /** Confirmation code. */
5100
5205
  code: string;
5101
5206
  }
5102
- export declare type SetUserPasswordPayload = string;
5103
5207
  export interface ChangePasswordPayload {
5104
5208
  oldPassword: string;
5105
5209
  password: string;
@@ -5332,6 +5436,7 @@ export interface GetLayersListParams {
5332
5436
  /** Filters layers list by users favorite. */
5333
5437
  isFavorite?: boolean;
5334
5438
  }
5439
+ export declare type SetPermissionsBatchPayload = ResourceAclDc[];
5335
5440
  export interface GetFeaturesParams {
5336
5441
  /** Sets features filtering query. */
5337
5442
  query?: string;
@@ -5721,6 +5826,7 @@ export interface GetProjectsListParams {
5721
5826
  /** Filters projects list by users favorite. */
5722
5827
  isFavorite?: boolean;
5723
5828
  }
5829
+ export declare type SetPermissionsBatchBody = ResourceAclDc[];
5724
5830
  export interface SetPreviewBody {
5725
5831
  /** @format binary */
5726
5832
  file?: File;
@@ -5921,6 +6027,7 @@ export interface GetTableListParams {
5921
6027
  /** Filters layers by geometry types. */
5922
6028
  geometryFilter?: string[];
5923
6029
  }
6030
+ export declare type SetPermissionsBatchInput = ResourceAclDc[];
5924
6031
  export declare type UpdateTableDataPayload = Record<string, any>[];
5925
6032
  export interface UpdateTableDataParams {
5926
6033
  /** 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/user/{username}/password
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(username, data) {
4613
- return this.http.patch("/account/user/" + username + "/password", data).then(() => {});
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(this.username, password);
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);
@@ -6847,6 +7000,7 @@ function isFeatureLayer(layer) {
6847
7000
  Permissions["Configure"] = "configure";
6848
7001
  Permissions["Write"] = "write";
6849
7002
  Permissions["Read"] = "read";
7003
+ Permissions["ReadConfigure"] = "read,configure";
6850
7004
  Permissions["ReadWrite"] = "read,write";
6851
7005
  Permissions["All"] = "read,write,configure";
6852
7006
  })(exports.Permissions || (exports.Permissions = {}));
@@ -6934,6 +7088,7 @@ exports.API_USER_INFO_KEY = API_USER_INFO_KEY;
6934
7088
  exports.Account = Account;
6935
7089
  exports.AccountPreview = AccountPreview;
6936
7090
  exports.Api = Api;
7091
+ exports.BulkOperations = BulkOperations;
6937
7092
  exports.ClientSettings = ClientSettings;
6938
7093
  exports.EvergisDynamicLayer = EvergisDynamicLayer;
6939
7094
  exports.EvergisTileLayer = EvergisTileLayer;