@edgeiq/edgeiq-api-js 1.3.0 → 1.3.3

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.
@@ -5,6 +5,9 @@ export interface Branding {
5
5
  primary_color: string;
6
6
  logo_background_color: string;
7
7
  portal_title: string;
8
+ secondary_color: string;
9
+ sidebar_text_color: string;
10
+ gradient_sidbar: string;
8
11
  }
9
12
  export interface Aliases {
10
13
  gateway: string;
@@ -40,7 +40,7 @@ export interface IngestorListener {
40
40
  retries?: number;
41
41
  community?: string;
42
42
  version?: string;
43
- oids: string[];
43
+ oids?: string[];
44
44
  url?: string;
45
45
  method?: string;
46
46
  dev?: string;
@@ -52,9 +52,9 @@ export interface IngestorListener {
52
52
  create_discovered_device?: boolean;
53
53
  auto_promote_discovered_device?: boolean;
54
54
  heartbeat_period?: string;
55
- params?: ListenerParam;
56
- filters?: ListenerFilter[];
57
- device_type_mapping?: DeviceTypeMapping[];
55
+ params: ListenerParam;
56
+ filters: ListenerFilter[];
57
+ device_type_mapping: DeviceTypeMapping[];
58
58
  }
59
59
  export interface IngestorHandler {
60
60
  strip_delimited?: boolean;
@@ -64,7 +64,7 @@ export interface IngestorHandler {
64
64
  length?: number;
65
65
  map_keys?: string[];
66
66
  type?: string;
67
- routes?: IngestorRoute[];
67
+ routes: IngestorRoute[];
68
68
  }
69
69
  export interface IngestorInput {
70
70
  name: string;
@@ -75,9 +75,9 @@ export interface IngestorInput {
75
75
  };
76
76
  target_template?: string;
77
77
  listener_type: ListenerType;
78
- listener?: IngestorListener;
78
+ listener: IngestorListener;
79
79
  handler_type: HandlerType;
80
- handler?: IngestorHandler;
80
+ handler: IngestorHandler;
81
81
  translator?: {
82
82
  [key: string]: unknown;
83
83
  };
@@ -6,35 +6,9 @@ export declare type RuleActionBodyType = 'html' | 'text';
6
6
  export declare type LocationVia = 'gps' | 'cell_tower' | 'bluetooth' | 'wifi' | 'other';
7
7
  export declare type GeneratedAtFormat = 'rfc3339' | 'unix_timestamp';
8
8
  export declare type LocationTransitionDirectionType = 'arriving' | 'leaving';
9
- export declare type DerivedValuesTypes = [
10
- 'count',
11
- 'min',
12
- 'max',
13
- 'avg',
14
- 'sum',
15
- 'convert_indexed_keys'
16
- ];
17
- export declare type WhereConditionTypes = ['where', 'or_where'];
18
- export declare type WhereConditionOperators = [
19
- 'equal',
20
- 'not_equal',
21
- 'greater_than',
22
- 'greater_than_equal',
23
- 'less_than',
24
- 'less_than_equal',
25
- 'in',
26
- 'not_in',
27
- 'starts_with',
28
- 'ends_with',
29
- 'contains',
30
- 'strict_contains',
31
- 'length_equals',
32
- 'length_not_equals',
33
- 'length_greater_than',
34
- 'length_greater_than_equal',
35
- 'length_less_than',
36
- 'length_less_than_equal'
37
- ];
9
+ export declare type DerivedValuesTypes = 'count' | 'min' | 'max' | 'avg' | 'sum' | 'convert_indexed_keys';
10
+ export declare type WhereConditionTypes = 'where' | 'or_where';
11
+ export declare type WhereConditionOperators = 'equal' | 'not_equal' | 'greater_than' | 'greater_than_equal' | 'less_than' | 'less_than_equal' | 'in' | 'not_in' | 'starts_with' | 'ends_with' | 'contains' | 'strict_contains' | 'length_equals' | 'length_not_equals' | 'length_greater_than' | 'length_greater_than_equal' | 'length_less_than' | 'length_less_than_equal';
38
12
  export interface CredentialData {
39
13
  type?: string;
40
14
  value: string;
@@ -143,22 +143,104 @@ exports.TestIntegration2 = {
143
143
  from: 'test_from',
144
144
  };
145
145
  exports.NewIntegrationName = 'EIQSDK Integration Test Twilio';
146
- exports.EmptyIngestor = __assign(__assign({}, baseModel), { name: '', type: 'cloud', translator_id: '', handler_type: 'fixed', listener_type: 'cloud' });
146
+ exports.EmptyIngestor = __assign(__assign({}, baseModel), { company_id: '', name: '', type: 'edge', listener_type: 'shell_polling', handler_type: 'fixed', translator_id: '', listener: {
147
+ version: '1',
148
+ params: {
149
+ address: '',
150
+ },
151
+ filters: [
152
+ {
153
+ interface: '',
154
+ member: '',
155
+ path: '',
156
+ },
157
+ ],
158
+ device_type_mapping: [
159
+ {
160
+ device_type_id: '',
161
+ key: '',
162
+ value: '',
163
+ },
164
+ ],
165
+ }, handler: {
166
+ routes: [
167
+ {
168
+ method: 'get',
169
+ path: '',
170
+ },
171
+ ],
172
+ } });
147
173
  exports.TestIngestor = {
148
174
  company_id: parentCompanyId,
149
175
  name: 'EIQSDK Ingestor Test',
150
- handler_type: 'passthrough',
176
+ type: 'cloud',
151
177
  listener_type: 'cloud',
178
+ handler_type: 'passthrough',
152
179
  translator_id: '6091323844952b0001bf9b33',
153
- type: 'cloud',
180
+ listener: {
181
+ version: '1',
182
+ params: {
183
+ address: '',
184
+ },
185
+ filters: [
186
+ {
187
+ interface: '',
188
+ member: '',
189
+ path: '',
190
+ },
191
+ ],
192
+ device_type_mapping: [
193
+ {
194
+ device_type_id: '',
195
+ key: '',
196
+ value: '',
197
+ },
198
+ ],
199
+ },
200
+ handler: {
201
+ routes: [
202
+ {
203
+ method: 'get',
204
+ path: '',
205
+ },
206
+ ],
207
+ },
154
208
  };
155
209
  exports.TestIngestor2 = {
156
210
  company_id: parentCompanyId,
157
211
  name: 'EIQSDK Ingestor Test 2',
158
- handler_type: 'fixed',
212
+ type: 'edge',
159
213
  listener_type: 'shell_polling',
214
+ handler_type: 'fixed',
160
215
  translator_id: '618bcb593b04d60001358801',
161
- type: 'edge',
216
+ listener: {
217
+ version: '1',
218
+ params: {
219
+ address: '',
220
+ },
221
+ filters: [
222
+ {
223
+ interface: '',
224
+ member: '',
225
+ path: '',
226
+ },
227
+ ],
228
+ device_type_mapping: [
229
+ {
230
+ device_type_id: '',
231
+ key: '',
232
+ value: '',
233
+ },
234
+ ],
235
+ },
236
+ handler: {
237
+ routes: [
238
+ {
239
+ method: 'get',
240
+ path: '',
241
+ },
242
+ ],
243
+ },
162
244
  };
163
245
  exports.NewTestIngestorName = 'EIQSDK Ingestor Test updated';
164
246
  exports.EmptyPollableAttribute = __assign(__assign({}, baseModel), { name: '', type: 'snmp_mib', attributes: [], defaults: {}, interval: 16 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgeiq/edgeiq-api-js",
3
- "version": "1.3.0",
3
+ "version": "1.3.3",
4
4
  "author": "EdgeIQ",
5
5
  "license": "ISC",
6
6
  "description": "This project presents EdgeIQ API SDK.",