@edgeiq/edgeiq-api-js 1.3.47 → 1.3.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.
@@ -1,7 +1,9 @@
1
1
  import { BaseModelInterface } from '../core/ModelClass';
2
+ import { BulkActionResponse } from '../models';
2
3
  import { Configuration, ConfigurationInput, ConfigurationsFilters, PaginatedConfigurations } from './models';
3
4
  interface ConfigurationsInterface extends BaseModelInterface<Configuration, ConfigurationInput, ConfigurationsFilters, PaginatedConfigurations> {
4
5
  update(configuration: Configuration): Promise<Configuration>;
6
+ deleteMultiple(ids: string[]): Promise<BulkActionResponse>;
5
7
  }
6
8
  export declare const Configurations: ConfigurationsInterface;
7
9
  export {};
@@ -193,5 +193,31 @@ exports.Configurations = (function (_super) {
193
193
  });
194
194
  });
195
195
  };
196
+ class_1.deleteMultiple = function (ids) {
197
+ return __awaiter(this, void 0, void 0, function () {
198
+ var axios, result, error_6;
199
+ return __generator(this, function (_a) {
200
+ switch (_a.label) {
201
+ case 0:
202
+ _a.trys.push([0, 2, , 3]);
203
+ this.logAction("Deleting configuration with ids " + ids.join(', '));
204
+ axios = core_1.EdgeIQAPI.getAxios();
205
+ return [4, axios.delete(constants_1.Endpoints.configuration + "/bulk", {
206
+ data: { ids: ids },
207
+ })];
208
+ case 1:
209
+ result = _a.sent();
210
+ return [2, result === null || result === void 0 ? void 0 : result.data];
211
+ case 2:
212
+ error_6 = _a.sent();
213
+ if ((0, helpers_1.isApiError)(error_6)) {
214
+ throw error_6;
215
+ }
216
+ throw error_6;
217
+ case 3: return [2];
218
+ }
219
+ });
220
+ });
221
+ };
196
222
  return class_1;
197
223
  }(ModelClass_1.BaseModelClass));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgeiq/edgeiq-api-js",
3
- "version": "1.3.47",
3
+ "version": "1.3.48",
4
4
  "author": "EdgeIQ",
5
5
  "license": "ISC",
6
6
  "description": "This project presents EdgeIQ API SDK.",