@edgeiq/edgeiq-api-js 1.4.18 → 1.4.19
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): Promise<BulkActionResponse>;
|
|
11
|
+
csvBulkPromote(file: File, company_id: string): 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, company_id) {
|
|
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,6 +312,7 @@ 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);
|
|
315
316
|
return [4, axios.post(constants_1.Endpoints.discoveredDevice + "/csv_bulk_upload_promote", form, {
|
|
316
317
|
headers: {
|
|
317
318
|
'Content-Type': 'multipart/form-data',
|