@evergis/api 3.0.46 → 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
@@ -209,8 +209,37 @@ let BulkOperationsService = /*#__PURE__*/function (_Service) {
209
209
  }
210
210
 
211
211
  _createClass(BulkOperationsService, [{
212
- key: "batchResourcesPermissionsSet",
212
+ key: "batchAddResourcesToCatalog",
213
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
+ }
214
243
  /**
215
244
  * No description
216
245
  *
@@ -221,8 +250,11 @@ let BulkOperationsService = /*#__PURE__*/function (_Service) {
221
250
  * @request PUT:/bulk/resources/permissions
222
251
  * @response `200` Success
223
252
  */
253
+
254
+ }, {
255
+ key: "batchResourcesPermissionsSet",
224
256
  value: function batchResourcesPermissionsSet(data) {
225
- return this.http.put("/bulk/resources/permissions", data).then(() => {});
257
+ return this.http.put("/bulk/resources/permissions", data).json();
226
258
  }
227
259
  }]);
228
260
 
@@ -245,6 +277,16 @@ let BulkOperations = /*#__PURE__*/function (_BulkOperationsServic) {
245
277
  value: function updatePermissions(data) {
246
278
  return this.batchResourcesPermissionsSet(data);
247
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
+ }
248
290
  }]);
249
291
 
250
292
  return BulkOperations;
@@ -4708,14 +4750,14 @@ let AccountService = /*#__PURE__*/function (_Service) {
4708
4750
  * @name SetUserPassword
4709
4751
  * @operationId AccountController_SetUserPassword
4710
4752
  * @summary Set user password.
4711
- * @request PATCH:/account/user/{username}/password
4753
+ * @request PATCH:/account/password/set
4712
4754
  * @response `200` Success
4713
4755
  */
4714
4756
 
4715
4757
  }, {
4716
4758
  key: "setUserPassword",
4717
- value: function setUserPassword(username, data) {
4718
- 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(() => {});
4719
4761
  }
4720
4762
  /**
4721
4763
  * No description
@@ -5063,7 +5105,10 @@ let Account = /*#__PURE__*/function (_AccountService) {
5063
5105
  }, {
5064
5106
  key: "setPassword",
5065
5107
  value: function setPassword(password) {
5066
- return this.setUserPassword(this.username, password);
5108
+ return this.setUserPassword({
5109
+ username: this.username,
5110
+ password
5111
+ });
5067
5112
  }
5068
5113
  }, {
5069
5114
  key: "username",