@edgeiq/edgeiq-api-js 1.4.9 → 1.4.10
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/devices/index.d.ts +3 -1
- package/dist/devices/index.js +9 -8
- package/package.json +1 -1
package/dist/devices/index.d.ts
CHANGED
|
@@ -25,7 +25,9 @@ interface DevicesInterface extends BaseModelInterface<Device, DeviceInput, Devic
|
|
|
25
25
|
deviceLwm2mObjetLinks(id: string): Promise<Lwm2mObjectLinks[]>;
|
|
26
26
|
processGatewayCommand(deviceId: string, gatewayCommandRequest: GatewayCommandRequest): Promise<GatewayCommand>;
|
|
27
27
|
bulkExecuteGatewayCommand(ids: string[], gatewayCommandRequest: GatewayCommandRequest, generateChildCommandExecutions?: boolean): Promise<BulkActionResponse>;
|
|
28
|
-
bulkExecuteCommand(
|
|
28
|
+
bulkExecuteCommand(commandId: string, ids: string[], options?: {
|
|
29
|
+
[key: string]: string | number;
|
|
30
|
+
}, generateChildCommandExecutions?: boolean): Promise<BulkActionResponse>;
|
|
29
31
|
getFiles(id: string): Promise<EIQFile[]>;
|
|
30
32
|
getCommandExecutions(id: string, filters: CommandExecutionsFilters, pagination: PaginationFilter): Promise<PaginatedCommandExecutions>;
|
|
31
33
|
startRemoteTerminal(id: string, executable?: string): Promise<string>;
|
package/dist/devices/index.js
CHANGED
|
@@ -668,20 +668,21 @@ exports.Devices = (function (_super) {
|
|
|
668
668
|
});
|
|
669
669
|
});
|
|
670
670
|
};
|
|
671
|
-
class_1.bulkExecuteCommand = function (ids,
|
|
671
|
+
class_1.bulkExecuteCommand = function (commandId, ids, options, generateChildCommandExecutions) {
|
|
672
672
|
return __awaiter(this, void 0, void 0, function () {
|
|
673
|
-
var axios, result, error_24;
|
|
673
|
+
var axios, data, result, error_24;
|
|
674
674
|
return __generator(this, function (_a) {
|
|
675
675
|
switch (_a.label) {
|
|
676
676
|
case 0:
|
|
677
677
|
_a.trys.push([0, 2, , 3]);
|
|
678
|
-
this.logAction("Execute command with ID: " +
|
|
678
|
+
this.logAction("Execute command with ID: " + commandId + " on devices with IDs: " + ids);
|
|
679
679
|
axios = __1.EdgeIQAPI.getAxios();
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
680
|
+
data = {
|
|
681
|
+
ids: ids,
|
|
682
|
+
generate_child_command_executions: generateChildCommandExecutions !== null && generateChildCommandExecutions !== void 0 ? generateChildCommandExecutions : false,
|
|
683
|
+
};
|
|
684
|
+
return [4, axios.post(constants_1.Endpoints.device + "/bulk/commands/" + commandId + "/execute", options
|
|
685
|
+
? __assign(__assign({}, data), { options: options }) : __assign({}, data))];
|
|
685
686
|
case 1:
|
|
686
687
|
result = _a.sent();
|
|
687
688
|
return [2, result === null || result === void 0 ? void 0 : result.data];
|