@edgeiq/edgeiq-api-js 1.3.23 → 1.3.24

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.
@@ -91,7 +91,7 @@ exports.CommandExecutions = (function (_super) {
91
91
  switch (_a.label) {
92
92
  case 0:
93
93
  _a.trys.push([0, 2, , 3]);
94
- this.logAction("Getting files attached to device with id " + id);
94
+ this.logAction("Getting statuses attached to command executions with id " + id);
95
95
  axios = core_1.EdgeIQAPI.getAxios();
96
96
  return [4, axios.get(constants_1.Endpoints.commandExecution + "/" + id + "/command_execution_statuses")];
97
97
  case 1:
@@ -3,16 +3,11 @@ export interface CommandExecutionsInput {
3
3
  commandId: string;
4
4
  executionStatuses: CommandExecutionsStatuses[];
5
5
  }
6
- export declare enum CommandExecutionStatusEnum {
7
- initiated = "initiated",
8
- info = "info",
9
- success = "success",
10
- error = "error"
11
- }
6
+ export declare type CommandExecutionStatus = 'initiated' | 'info' | 'success' | 'error';
12
7
  export interface CommandExecutionsStatuses {
13
8
  id: string;
14
9
  executionId: string;
15
- status: CommandExecutionStatusEnum;
10
+ status: CommandExecutionStatus;
16
11
  message?: string;
17
12
  }
18
13
  export interface CommandExecution extends CommandExecutionsInput, Base {
@@ -1,10 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CommandExecutionStatusEnum = void 0;
4
- var CommandExecutionStatusEnum;
5
- (function (CommandExecutionStatusEnum) {
6
- CommandExecutionStatusEnum["initiated"] = "initiated";
7
- CommandExecutionStatusEnum["info"] = "info";
8
- CommandExecutionStatusEnum["success"] = "success";
9
- CommandExecutionStatusEnum["error"] = "error";
10
- })(CommandExecutionStatusEnum = exports.CommandExecutionStatusEnum || (exports.CommandExecutionStatusEnum = {}));
@@ -347,7 +347,7 @@ exports.Commands = (function (_super) {
347
347
  switch (_a.label) {
348
348
  case 0:
349
349
  _a.trys.push([0, 2, , 3]);
350
- this.logAction("Getting files attached to device with id " + id);
350
+ this.logAction("Getting command executions attached to command with id " + id);
351
351
  axios = __1.EdgeIQAPI.getAxios();
352
352
  return [4, axios.get(constants_1.Endpoints.command + "/" + id + "/command_executions")];
353
353
  case 1:
@@ -691,7 +691,7 @@ exports.Devices = (function (_super) {
691
691
  switch (_a.label) {
692
692
  case 0:
693
693
  _a.trys.push([0, 2, , 3]);
694
- this.logAction("Getting files attached to device with id " + id);
694
+ this.logAction("Getting command executions attached to device with id " + id);
695
695
  axios = __1.EdgeIQAPI.getAxios();
696
696
  return [4, axios.get(constants_1.Endpoints.command + "/" + id + "/command_executions")];
697
697
  case 1:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgeiq/edgeiq-api-js",
3
- "version": "1.3.23",
3
+ "version": "1.3.24",
4
4
  "author": "EdgeIQ",
5
5
  "license": "ISC",
6
6
  "description": "This project presents EdgeIQ API SDK.",