@edgeiq/edgeiq-api-js 1.4.17 → 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.
@@ -39,7 +39,6 @@ export interface Actions {
39
39
  log_config: boolean;
40
40
  log_level: boolean;
41
41
  log_upload: boolean;
42
- lwm2m_file: boolean;
43
42
  lwm2m_request: boolean;
44
43
  mqtt: boolean;
45
44
  notification: boolean;
@@ -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',
@@ -1,5 +1,5 @@
1
1
  import { Base, Filter, Filters, Pagination } from '../models';
2
- export declare type GatewayCommandType = 'activate_cloud_native_device' | 'backup' | 'data_restriction' | 'deactivate_cloud_native_device' | 'disable_data_restriction' | 'enable_data_restriction' | 'greengrass_initialize' | 'awsiot_attach_thing_groups' | 'awsiot_detach_thing_groups' | 'cancel_password_change' | 'heartbeat' | 'log_level' | 'log_upload' | 'lwm2m_request' | 'lwm2m_file' | 'restore_backup' | 'reboot' | 'reset' | 'send_config' | 'setting' | 'software_update' | 'status';
2
+ export declare type GatewayCommandType = 'activate_cloud_native_device' | 'backup' | 'data_restriction' | 'deactivate_cloud_native_device' | 'disable_data_restriction' | 'enable_data_restriction' | 'greengrass_initialize' | 'awsiot_attach_thing_groups' | 'awsiot_detach_thing_groups' | 'cancel_password_change' | 'file_from_device' | 'file_to_device' | 'heartbeat' | 'log_level' | 'log_upload' | 'lwm2m_request' | 'lwm2m_file' | 'restore_backup' | 'reboot' | 'reset' | 'send_config' | 'setting' | 'software_update' | 'status';
3
3
  export declare type CommandType = 'download' | 'fileupload' | 'filedownload' | 'execute' | 'observe' | 'observe_stop' | 'read' | 'upload' | 'write';
4
4
  export interface CommandSchedule {
5
5
  start_datetime: string;
@@ -11,6 +11,7 @@ export interface SoftwareUpdateInput {
11
11
  files?: (FileLocation | undefined)[];
12
12
  script?: string;
13
13
  reboot?: boolean;
14
+ enforce_secure_download?: boolean;
14
15
  }
15
16
  export interface SoftwareUpdate extends SoftwareUpdateInput, Base {
16
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgeiq/edgeiq-api-js",
3
- "version": "1.4.17",
3
+ "version": "1.4.19",
4
4
  "author": "EdgeIQ",
5
5
  "license": "ISC",
6
6
  "description": "This project presents EdgeIQ API SDK.",