@edgeiq/edgeiq-api-js 1.5.1 → 1.5.2
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.
|
@@ -8,7 +8,7 @@ interface DiscoveredDevicesInterface extends BaseModelInterface<DiscoveredDevice
|
|
|
8
8
|
promote(discoveredDevice: DiscoveredDevice, deviceTypeId: string): Promise<Device>;
|
|
9
9
|
getOneByUniqueId(uniqueId: string): Promise<DiscoveredDevice>;
|
|
10
10
|
deleteMultiple(ids: string[]): Promise<BulkActionResponse>;
|
|
11
|
-
csvBulkPromote(file: File
|
|
11
|
+
csvBulkPromote(file: File): Promise<BulkActionResponse>;
|
|
12
12
|
csvBulkDownload(filters?: DiscoveredDevicesFilters): Promise<File>;
|
|
13
13
|
}
|
|
14
14
|
export declare const DiscoveredDevices: DiscoveredDevicesInterface;
|
|
@@ -301,7 +301,7 @@ exports.DiscoveredDevices = (function (_super) {
|
|
|
301
301
|
});
|
|
302
302
|
});
|
|
303
303
|
};
|
|
304
|
-
class_1.csvBulkPromote = function (file
|
|
304
|
+
class_1.csvBulkPromote = function (file) {
|
|
305
305
|
return __awaiter(this, void 0, void 0, function () {
|
|
306
306
|
var axios, form, result, error_10;
|
|
307
307
|
return __generator(this, function (_a) {
|
|
@@ -312,7 +312,6 @@ exports.DiscoveredDevices = (function (_super) {
|
|
|
312
312
|
axios = __1.EdgeIQAPI.getAxios();
|
|
313
313
|
form = new FormData();
|
|
314
314
|
form.append('csv_upload', file);
|
|
315
|
-
form.append('company_id', company_id);
|
|
316
315
|
return [4, axios.post(constants_1.Endpoints.discoveredDevice + "/csv_bulk_upload_promote", form, {
|
|
317
316
|
headers: {
|
|
318
317
|
'Content-Type': 'multipart/form-data',
|