@edgeiq/edgeiq-api-js 1.6.11 → 1.6.13

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.
@@ -1,4 +1,5 @@
1
1
  import { Base, Filter, Filters, Pagination } from '../models';
2
+ import { RetryOptions } from '../retryOptions/models';
2
3
  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' | 'setting_fetch' | 'software_update' | 'status';
3
4
  export declare type CommandType = 'download' | 'fileupload' | 'filedownload' | 'execute' | 'observe' | 'observe_stop' | 'read' | 'upload' | 'write';
4
5
  export interface CommandSchedule {
@@ -15,7 +16,7 @@ export interface GatewayCommandRequest {
15
16
  schedule?: CommandSchedule;
16
17
  timeout?: number;
17
18
  url?: string;
18
- version?: string;
19
+ version?: number;
19
20
  software_update_id?: string;
20
21
  settings_id?: string;
21
22
  command_id?: string;
@@ -28,6 +29,7 @@ export interface GatewayCommandRequest {
28
29
  filepath?: string;
29
30
  file_id?: string;
30
31
  configuration_id?: string;
32
+ retry_options?: RetryOptions;
31
33
  }
32
34
  export interface Lwm2mRequest extends GatewayCommandRequest {
33
35
  type: CommandType;
@@ -45,6 +47,7 @@ export interface GatewayCommandInput {
45
47
  [key: string]: unknown;
46
48
  };
47
49
  schedule?: CommandSchedule;
50
+ retry_options?: RetryOptions;
48
51
  timeout?: number;
49
52
  statuses: {
50
53
  [key: string]: GatewayCommandStatus;
@@ -0,0 +1,13 @@
1
+ export declare type RetryStrategyType = 'none' | 'fixed' | 'exponential_backoff';
2
+ export interface RetryStrategy {
3
+ type: RetryStrategyType;
4
+ fixed_interval?: number;
5
+ exponential_base_interval?: number;
6
+ exponential_multiplier?: number;
7
+ exponential_max_interval?: number;
8
+ }
9
+ export interface RetryOptions {
10
+ timeout: number;
11
+ max_retries: number;
12
+ retry_strategy: RetryStrategy;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgeiq/edgeiq-api-js",
3
- "version": "1.6.11",
3
+ "version": "1.6.13",
4
4
  "author": "EdgeIQ",
5
5
  "license": "ISC",
6
6
  "description": "This project presents EdgeIQ API SDK.",