@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.esm.js CHANGED
@@ -191,6 +191,107 @@ let Service = function Service(http) {
191
191
  this.http = http;
192
192
  };
193
193
 
194
+ /**
195
+ * @title Spatial Processing Core API
196
+ * @version v0.6.0
197
+ * @baseUrl /sp
198
+ */
199
+
200
+ let BulkOperationsService = /*#__PURE__*/function (_Service) {
201
+ _inherits(BulkOperationsService, _Service);
202
+
203
+ var _super = /*#__PURE__*/_createSuper(BulkOperationsService);
204
+
205
+ function BulkOperationsService() {
206
+ _classCallCheck(this, BulkOperationsService);
207
+
208
+ return _super.apply(this, arguments);
209
+ }
210
+
211
+ _createClass(BulkOperationsService, [{
212
+ key: "batchAddResourcesToCatalog",
213
+
214
+ /**
215
+ * No description
216
+ *
217
+ * @tags BulkOperations
218
+ * @name BatchAddResourcesToCatalog
219
+ * @operationId BulkOperationsController_BatchAddResourcesToCatalog
220
+ * @summary Add resources to catalog.
221
+ * @request POST:/bulk/catalog/addResources
222
+ * @response `200` Success
223
+ */
224
+ value: function batchAddResourcesToCatalog(data) {
225
+ return this.http.post("/bulk/catalog/addResources", data).json();
226
+ }
227
+ /**
228
+ * No description
229
+ *
230
+ * @tags BulkOperations
231
+ * @name BatchDeleteResourcesFromCatalog
232
+ * @operationId BulkOperationsController_BatchDeleteResourcesFromCatalog
233
+ * @summary Delete resources to catalog.
234
+ * @request POST:/bulk/catalog/removeResources
235
+ * @response `200` Success
236
+ */
237
+
238
+ }, {
239
+ key: "batchDeleteResourcesFromCatalog",
240
+ value: function batchDeleteResourcesFromCatalog(data) {
241
+ return this.http.post("/bulk/catalog/removeResources", data).json();
242
+ }
243
+ /**
244
+ * No description
245
+ *
246
+ * @tags BulkOperations
247
+ * @name BatchResourcesPermissionsSet
248
+ * @operationId BulkOperationsController_BatchResourcesPermissionsSet
249
+ * @summary Perform resources set acl access batch operation.
250
+ * @request PUT:/bulk/resources/permissions
251
+ * @response `200` Success
252
+ */
253
+
254
+ }, {
255
+ key: "batchResourcesPermissionsSet",
256
+ value: function batchResourcesPermissionsSet(data) {
257
+ return this.http.put("/bulk/resources/permissions", data).json();
258
+ }
259
+ }]);
260
+
261
+ return BulkOperationsService;
262
+ }(Service);
263
+
264
+ let BulkOperations = /*#__PURE__*/function (_BulkOperationsServic) {
265
+ _inherits(BulkOperations, _BulkOperationsServic);
266
+
267
+ var _super = /*#__PURE__*/_createSuper(BulkOperations);
268
+
269
+ function BulkOperations() {
270
+ _classCallCheck(this, BulkOperations);
271
+
272
+ return _super.apply(this, arguments);
273
+ }
274
+
275
+ _createClass(BulkOperations, [{
276
+ key: "updatePermissions",
277
+ value: function updatePermissions(data) {
278
+ return this.batchResourcesPermissionsSet(data);
279
+ }
280
+ }, {
281
+ key: "addToCatalog",
282
+ value: function addToCatalog(data) {
283
+ return this.batchAddResourcesToCatalog(data);
284
+ }
285
+ }, {
286
+ key: "deleteFromCatalog",
287
+ value: function deleteFromCatalog(data) {
288
+ return this.batchDeleteResourcesFromCatalog(data);
289
+ }
290
+ }]);
291
+
292
+ return BulkOperations;
293
+ }(BulkOperationsService);
294
+
194
295
  /**
195
296
  * @title Spatial Processing Core API
196
297
  * @version v0.6.0
@@ -1320,6 +1421,22 @@ let LayersService = /*#__PURE__*/function (_Service) {
1320
1421
  value: function getLayersList(query) {
1321
1422
  return this.http.get("/layers", query).json();
1322
1423
  }
1424
+ /**
1425
+ * No description
1426
+ *
1427
+ * @tags Layers
1428
+ * @name SetPermissionsBatch
1429
+ * @operationId LayersController_SetPermissionsBatch
1430
+ * @summary Overrides multiply resources permissions in single batch.
1431
+ * @request PUT:/layers
1432
+ * @response `200` Success
1433
+ */
1434
+
1435
+ }, {
1436
+ key: "setPermissionsBatch",
1437
+ value: function setPermissionsBatch(data) {
1438
+ return this.http.put("/layers", data).then(() => {});
1439
+ }
1323
1440
  /**
1324
1441
  * No description
1325
1442
  *
@@ -2330,6 +2447,22 @@ let TablesService = /*#__PURE__*/function (_Service) {
2330
2447
  value: function createTable(data) {
2331
2448
  return this.http.post("/tables", data).json();
2332
2449
  }
2450
+ /**
2451
+ * No description
2452
+ *
2453
+ * @tags Tables
2454
+ * @name SetPermissionsBatch
2455
+ * @operationId TablesController_SetPermissionsBatch
2456
+ * @summary Overrides multiply resources permissions in single batch.
2457
+ * @request PUT:/tables
2458
+ * @response `200` Success
2459
+ */
2460
+
2461
+ }, {
2462
+ key: "setPermissionsBatch",
2463
+ value: function setPermissionsBatch(data) {
2464
+ return this.http.put("/tables", data).then(() => {});
2465
+ }
2333
2466
  /**
2334
2467
  * No description
2335
2468
  *
@@ -2779,6 +2912,22 @@ let ProjectsService = /*#__PURE__*/function (_Service) {
2779
2912
  value: function createProject(data) {
2780
2913
  return this.http.post("/projects", data).json();
2781
2914
  }
2915
+ /**
2916
+ * No description
2917
+ *
2918
+ * @tags Projects
2919
+ * @name SetPermissionsBatch
2920
+ * @operationId ProjectsController_SetPermissionsBatch
2921
+ * @summary Overrides multiply resources permissions in single batch.
2922
+ * @request PUT:/projects
2923
+ * @response `200` Success
2924
+ */
2925
+
2926
+ }, {
2927
+ key: "setPermissionsBatch",
2928
+ value: function setPermissionsBatch(data) {
2929
+ return this.http.put("/projects", data).then(() => {});
2930
+ }
2782
2931
  /**
2783
2932
  * No description
2784
2933
  *
@@ -4601,14 +4750,14 @@ let AccountService = /*#__PURE__*/function (_Service) {
4601
4750
  * @name SetUserPassword
4602
4751
  * @operationId AccountController_SetUserPassword
4603
4752
  * @summary Set user password.
4604
- * @request PATCH:/account/user/{username}/password
4753
+ * @request PATCH:/account/password/set
4605
4754
  * @response `200` Success
4606
4755
  */
4607
4756
 
4608
4757
  }, {
4609
4758
  key: "setUserPassword",
4610
- value: function setUserPassword(username, data) {
4611
- return this.http.patch("/account/user/" + username + "/password", data).then(() => {});
4759
+ value: function setUserPassword(data) {
4760
+ return this.http.patch("/account/password/set", data).then(() => {});
4612
4761
  }
4613
4762
  /**
4614
4763
  * No description
@@ -4956,7 +5105,10 @@ let Account = /*#__PURE__*/function (_AccountService) {
4956
5105
  }, {
4957
5106
  key: "setPassword",
4958
5107
  value: function setPassword(password) {
4959
- return this.setUserPassword(this.username, password);
5108
+ return this.setUserPassword({
5109
+ username: this.username,
5110
+ password
5111
+ });
4960
5112
  }
4961
5113
  }, {
4962
5114
  key: "username",
@@ -6160,6 +6312,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
6160
6312
  _this.styles = new Styles(_this.http);
6161
6313
  _this.account = new Account(_this.http);
6162
6314
  _this.accountPreview = new AccountPreview(_this.http, _this.account);
6315
+ _this.bulk = new BulkOperations(_this.http);
6163
6316
  _this.security = new Security(_this.http, _this.account);
6164
6317
  _this.notification = new Notification(_this.http);
6165
6318
  _this.scheduler = new Scheduler(_this.http);
@@ -7213,6 +7366,8 @@ write
7213
7366
 
7214
7367
  read
7215
7368
 
7369
+ read,configure
7370
+
7216
7371
  read,write
7217
7372
 
7218
7373
  read,write,configure
@@ -7226,6 +7381,7 @@ var Permissions;
7226
7381
  Permissions["Configure"] = "configure";
7227
7382
  Permissions["Write"] = "write";
7228
7383
  Permissions["Read"] = "read";
7384
+ Permissions["ReadConfigure"] = "read,configure";
7229
7385
  Permissions["ReadWrite"] = "read,write";
7230
7386
  Permissions["All"] = "read,write,configure";
7231
7387
  })(Permissions || (Permissions = {}));
@@ -7431,5 +7587,5 @@ var ToolStorageType;
7431
7587
  ToolStorageType["LayersStorage"] = "layersStorage";
7432
7588
  })(ToolStorageType || (ToolStorageType = {}));
7433
7589
 
7434
- export { API_USER_INFO_KEY, Account, AccountPreview, AggregationFunction, Api, ApiEvent, ArgumentType, AttributeType, ClassificationType, ClientSettings, CombineType, ConfigurationErrorEnum, ConnectionStatus, DependencyType, ElementType, ErrorDetailsType, ErrorReason, ErrorType, EvergisDynamicLayer, EvergisTileLayer, External, FeatureType, FileUpload, FontStyle, FontWeight, GEOCODE_PROVIDER, General, Geocode, GeometryType, HttpClient, HttpStatusCode, Import, Layers, LayersManager, LineEndingSize, LineEndingType, Names, Namespace, Notification, NotificationEvent, Operation, Permissions, PolicyType, Projects, ResourceCatalog, ResourceSeparator, ResourceType, ResourceTypeLink, Resources, Scheduler, Security, ServerTaskStatus, SpatialProcessor, StringSubType, Styles, Tables, TextAlignment, TextVerticalAlignment, ToolStatus, ToolStorageType, Tools, UrlPath, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, isEvergisDynamicLayer, isEvergisTileLayer, isFeatureLayer, isHTTPError, isHandledError, isLayer, isProjectContentItems, isString, isTileLayerService, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique };
7590
+ export { API_USER_INFO_KEY, Account, AccountPreview, AggregationFunction, Api, ApiEvent, ArgumentType, AttributeType, BulkOperations, ClassificationType, ClientSettings, CombineType, ConfigurationErrorEnum, ConnectionStatus, DependencyType, ElementType, ErrorDetailsType, ErrorReason, ErrorType, EvergisDynamicLayer, EvergisTileLayer, External, FeatureType, FileUpload, FontStyle, FontWeight, GEOCODE_PROVIDER, General, Geocode, GeometryType, HttpClient, HttpStatusCode, Import, Layers, LayersManager, LineEndingSize, LineEndingType, Names, Namespace, Notification, NotificationEvent, Operation, Permissions, PolicyType, Projects, ResourceCatalog, ResourceSeparator, ResourceType, ResourceTypeLink, Resources, Scheduler, Security, ServerTaskStatus, SpatialProcessor, StringSubType, Styles, Tables, TextAlignment, TextVerticalAlignment, ToolStatus, ToolStorageType, Tools, UrlPath, addSubDomainToLocation, errorHandler, formDataFromFile, generateId, isEvergisDynamicLayer, isEvergisTileLayer, isFeatureLayer, isHTTPError, isHandledError, isLayer, isProjectContentItems, isString, isTileLayerService, promiseAllIgnoreErrors, stripUselessSlashes, toFormData, unique };
7435
7591
  //# sourceMappingURL=api.esm.js.map