@edgeiq/edgeiq-api-js 1.9.2 → 1.9.4
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,16 +1,26 @@
|
|
|
1
1
|
import { Base, Filter, Filters, Pagination } from '../models';
|
|
2
2
|
export declare type SenderType = 'bacnet_sender' | 'dev_sender' | 'gcp_pubsub_sender' | 'http_sender' | 'modbus_sender' | 'opcua_sender' | 'plugin_sender' | 'rest_fwd_sender' | 'shell_sender' | 'tcp_sender' | 'workflow_sender';
|
|
3
|
+
export declare type CommandSenderItem = boolean | number | string | {
|
|
4
|
+
[key: string]: string | number;
|
|
5
|
+
};
|
|
6
|
+
export interface CommandSender {
|
|
7
|
+
[key: string]: CommandSenderItem;
|
|
8
|
+
}
|
|
9
|
+
export interface CommandDefaultOption {
|
|
10
|
+
key: string;
|
|
11
|
+
default: number | string;
|
|
12
|
+
type: 'integer' | 'string';
|
|
13
|
+
}
|
|
3
14
|
export interface CommandInput {
|
|
4
15
|
name: string;
|
|
5
16
|
company_id: string;
|
|
6
17
|
sender_type: SenderType;
|
|
7
18
|
device_id?: string;
|
|
8
|
-
sender?:
|
|
9
|
-
[key: string]: unknown;
|
|
10
|
-
};
|
|
19
|
+
sender?: CommandSender;
|
|
11
20
|
long_description?: string;
|
|
21
|
+
default_options?: CommandDefaultOption[];
|
|
12
22
|
options?: {
|
|
13
|
-
[key: string]:
|
|
23
|
+
[key: string]: string | number;
|
|
14
24
|
};
|
|
15
25
|
payload?: string;
|
|
16
26
|
translator_id?: string;
|
|
@@ -103,6 +103,7 @@ export interface CompanyInput {
|
|
|
103
103
|
inherited_rule_ids?: string[];
|
|
104
104
|
inherited_pollable_attributes_ids?: string[];
|
|
105
105
|
inherited_workflow_definition_ids?: string[];
|
|
106
|
+
inherited_command_ids?: string[];
|
|
106
107
|
device_tags?: string[];
|
|
107
108
|
custom_certificate_domain?: string;
|
|
108
109
|
}
|
package/dist/testConstants.js
CHANGED
|
@@ -320,9 +320,6 @@ export const TestCommand = {
|
|
|
320
320
|
name: 'Test Command',
|
|
321
321
|
company_id: parentCompanyId,
|
|
322
322
|
sender_type: 'shell_sender',
|
|
323
|
-
sender: {
|
|
324
|
-
command: "echo 'testing'",
|
|
325
|
-
},
|
|
326
323
|
};
|
|
327
324
|
export const EmptyNotificationType = Object.assign(Object.assign({}, baseModel), { message: 'message', rule_id: 'rule_id', device_id: 'device_id' });
|
|
328
325
|
export const TestFile = {
|