@edgeiq/edgeiq-api-js 1.3.0 → 1.3.1

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.
@@ -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
  };
@@ -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.1",
4
4
  "author": "EdgeIQ",
5
5
  "license": "ISC",
6
6
  "description": "This project presents EdgeIQ API SDK.",