@edgeiq/edgeiq-api-js 1.3.26 → 1.3.27

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.
@@ -14,6 +14,17 @@ var __extends = (this && this.__extends) || (function () {
14
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
15
  };
16
16
  })();
17
+ var __assign = (this && this.__assign) || function () {
18
+ __assign = Object.assign || function(t) {
19
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
20
+ s = arguments[i];
21
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
+ t[p] = s[p];
23
+ }
24
+ return t;
25
+ };
26
+ return __assign.apply(this, arguments);
27
+ };
17
28
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
29
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
30
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -642,10 +653,7 @@ exports.Devices = (function (_super) {
642
653
  _a.trys.push([0, 2, , 3]);
643
654
  this.logAction("Execute " + gatewayCommandRequest.command_type + " command on devices with IDs: " + ids);
644
655
  axios = __1.EdgeIQAPI.getAxios();
645
- return [4, axios.post(constants_1.Endpoints.device + "/bulk/gateway_command", {
646
- command_type: gatewayCommandRequest.command_type,
647
- ids: ids,
648
- })];
656
+ return [4, axios.post(constants_1.Endpoints.device + "/bulk/gateway_command", __assign(__assign({}, gatewayCommandRequest), { ids: ids }))];
649
657
  case 1:
650
658
  result = _a.sent();
651
659
  return [2, result === null || result === void 0 ? void 0 : result.data];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgeiq/edgeiq-api-js",
3
- "version": "1.3.26",
3
+ "version": "1.3.27",
4
4
  "author": "EdgeIQ",
5
5
  "license": "ISC",
6
6
  "description": "This project presents EdgeIQ API SDK.",