@edgeiq/edgeiq-api-js 1.1.10 → 1.2.0

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.
@@ -61,6 +61,7 @@ export declare const BaseEndpoints: {
61
61
  deviceType: string;
62
62
  device: string;
63
63
  deviceLocationObservation: string;
64
+ discoveredDevice: string;
64
65
  downstreamSystem: string;
65
66
  escrowDevice: string;
66
67
  file: string;
@@ -97,6 +98,7 @@ export declare const Endpoints: {
97
98
  device: string;
98
99
  deviceLocationObservation: string;
99
100
  downstreamSystem: string;
101
+ discoveredDevice: string;
100
102
  escrowDevice: string;
101
103
  gatewayCommand: string;
102
104
  ingestor: string;
package/dist/constants.js CHANGED
@@ -77,6 +77,7 @@ exports.BaseEndpoints = {
77
77
  deviceType: 'device_types',
78
78
  device: 'devices',
79
79
  deviceLocationObservation: 'device_location_observations',
80
+ discoveredDevice: 'discovered_devices',
80
81
  downstreamSystem: 'downstream_systems',
81
82
  escrowDevice: 'escrow_devices',
82
83
  file: 'files',
@@ -113,6 +114,7 @@ exports.Endpoints = {
113
114
  device: "" + exports.BaseEndpoints.device,
114
115
  deviceLocationObservation: "" + exports.BaseEndpoints.deviceLocationObservation,
115
116
  downstreamSystem: "" + exports.BaseEndpoints.downstreamSystem,
117
+ discoveredDevice: "" + exports.BaseEndpoints.discoveredDevice,
116
118
  escrowDevice: "" + exports.BaseEndpoints.escrowDevice,
117
119
  gatewayCommand: "" + exports.BaseEndpoints.gatewayCommand,
118
120
  ingestor: "" + exports.BaseEndpoints.ingestor,
package/dist/helpers.js CHANGED
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isApiError = exports.getReturnDeleteMessage = void 0;
4
4
  var getReturnDeleteMessage = function (model) {
5
- return "The " + model + " has been deleted correctly.";
5
+ return "The " + model + " has been deleted.";
6
6
  };
7
7
  exports.getReturnDeleteMessage = getReturnDeleteMessage;
8
8
  var isApiError = function (error) {
package/dist/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export { Devices } from './devices';
9
9
  export { DeviceTemplates } from './deviceTemplates';
10
10
  export { DeviceTransferRequests } from './deviceTransferRequests';
11
11
  export { DeviceTypes } from './deviceTypes';
12
+ export { DiscoveredDevices } from './discoveredDevices';
12
13
  export { DownstreamSystems } from './downstreamSystems';
13
14
  export { EscrowDevices } from './escrowDevices';
14
15
  export { GatewayCommands } from './gatewayCommands';
@@ -33,6 +34,7 @@ export * from './companies/models';
33
34
  export * from './deviceConfigs/models';
34
35
  export * from './deviceLocationObservations/models';
35
36
  export * from './devices/models';
37
+ export * from './discoveredDevices/models';
36
38
  export * from './deviceTemplates/models';
37
39
  export * from './deviceTransferRequests/models';
38
40
  export * from './deviceTypes/models';
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.UserTypes = exports.Users = exports.Translators = exports.SystemCommandJobs = exports.SystemCommands = exports.Stats = exports.SoftwareUpdates = exports.Secrets = exports.Rules = exports.Reports = exports.Regions = exports.PollableAttributes = exports.Integrations = exports.Ingestors = exports.GatewayCommands = exports.EscrowDevices = exports.DownstreamSystems = exports.DeviceTypes = exports.DeviceTransferRequests = exports.DeviceTemplates = exports.Devices = exports.DeviceLocationObservations = exports.DeviceConfigs = exports.Companies = exports.Commands = exports.BulkResponses = exports.Authentication = exports.EdgeIQAPI = void 0;
13
+ exports.UserTypes = exports.Users = exports.Translators = exports.SystemCommandJobs = exports.SystemCommands = exports.Stats = exports.SoftwareUpdates = exports.Secrets = exports.Rules = exports.Reports = exports.Regions = exports.PollableAttributes = exports.Integrations = exports.Ingestors = exports.GatewayCommands = exports.EscrowDevices = exports.DownstreamSystems = exports.DiscoveredDevices = exports.DeviceTypes = exports.DeviceTransferRequests = exports.DeviceTemplates = exports.Devices = exports.DeviceLocationObservations = exports.DeviceConfigs = exports.Companies = exports.Commands = exports.BulkResponses = exports.Authentication = exports.EdgeIQAPI = void 0;
14
14
  var core_1 = require("./core");
15
15
  Object.defineProperty(exports, "EdgeIQAPI", { enumerable: true, get: function () { return core_1.EdgeIQAPI; } });
16
16
  var auth_1 = require("./auth");
@@ -33,6 +33,8 @@ var deviceTransferRequests_1 = require("./deviceTransferRequests");
33
33
  Object.defineProperty(exports, "DeviceTransferRequests", { enumerable: true, get: function () { return deviceTransferRequests_1.DeviceTransferRequests; } });
34
34
  var deviceTypes_1 = require("./deviceTypes");
35
35
  Object.defineProperty(exports, "DeviceTypes", { enumerable: true, get: function () { return deviceTypes_1.DeviceTypes; } });
36
+ var discoveredDevices_1 = require("./discoveredDevices");
37
+ Object.defineProperty(exports, "DiscoveredDevices", { enumerable: true, get: function () { return discoveredDevices_1.DiscoveredDevices; } });
36
38
  var downstreamSystems_1 = require("./downstreamSystems");
37
39
  Object.defineProperty(exports, "DownstreamSystems", { enumerable: true, get: function () { return downstreamSystems_1.DownstreamSystems; } });
38
40
  var escrowDevices_1 = require("./escrowDevices");
@@ -74,6 +76,7 @@ __exportStar(require("./companies/models"), exports);
74
76
  __exportStar(require("./deviceConfigs/models"), exports);
75
77
  __exportStar(require("./deviceLocationObservations/models"), exports);
76
78
  __exportStar(require("./devices/models"), exports);
79
+ __exportStar(require("./discoveredDevices/models"), exports);
77
80
  __exportStar(require("./deviceTemplates/models"), exports);
78
81
  __exportStar(require("./deviceTransferRequests/models"), exports);
79
82
  __exportStar(require("./deviceTypes/models"), exports);
@@ -1,9 +1,10 @@
1
- import { IntegrationInput, Company, CompanyInput, Device, DeviceInput, DeviceType, DeviceTypeInput, User, UserInput, Integration, Ingestor, IngestorInput, PollableAttribute, PollableAttributeInput, Translator, TranslatorInput, Rule, RuleInput } from '.';
1
+ import { IntegrationInput, Company, CompanyInput, Device, DeviceInput, DiscoveredDeviceInput, DeviceType, DeviceTypeInput, User, UserInput, Integration, Ingestor, IngestorInput, PollableAttribute, PollableAttributeInput, Translator, TranslatorInput, Rule, RuleInput } from '.';
2
2
  export declare const TestAuth: {
3
3
  noUser: string;
4
4
  username: string;
5
5
  pass: string;
6
6
  };
7
+ export declare const TestDeviceTypeID = "610aaa4abc72d700011b872d";
7
8
  export declare const TestDevice: DeviceInput;
8
9
  export declare const TestDevice2: DeviceInput;
9
10
  export declare const EmptyDevice: Device;
@@ -40,3 +41,4 @@ export declare const EmptyRule: Rule;
40
41
  export declare const TestRule: RuleInput;
41
42
  export declare const TestRule2: RuleInput;
42
43
  export declare const NewTestRuleDescription = "EIQSDK Rule Test updated";
44
+ export declare const TestDiscoveredDevice: DiscoveredDeviceInput;
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.NewTestRuleDescription = exports.TestRule2 = exports.TestRule = exports.EmptyRule = exports.NewTestTranslatorName = exports.TestTranslator2 = exports.TestTranslator = exports.EmptyTranslator = exports.NewTestPollableAttributeName = exports.TestPollableAttribute2 = exports.TestPollableAttribute = exports.EmptyPollableAttribute = exports.NewTestIngestorName = exports.TestIngestor2 = exports.TestIngestor = exports.EmptyIngestor = exports.NewIntegrationName = exports.TestIntegration2 = exports.TestIntegration = exports.EmptyIntegration = exports.NewTestDeviceTypeName = exports.TestDeviceType2 = exports.TestDeviceType = exports.EmptyDeviceType = exports.NewTestCompanyName = exports.TestCompany2 = exports.TestCompany = exports.EmptyCompany = exports.NewTestUserName = exports.EmptyUser = exports.TestUser2 = exports.TestUser = exports.NewTestDeviceName = exports.EmptyDevice = exports.TestDevice2 = exports.TestDevice = exports.TestAuth = void 0;
14
+ exports.TestDiscoveredDevice = exports.NewTestRuleDescription = exports.TestRule2 = exports.TestRule = exports.EmptyRule = exports.NewTestTranslatorName = exports.TestTranslator2 = exports.TestTranslator = exports.EmptyTranslator = exports.NewTestPollableAttributeName = exports.TestPollableAttribute2 = exports.TestPollableAttribute = exports.EmptyPollableAttribute = exports.NewTestIngestorName = exports.TestIngestor2 = exports.TestIngestor = exports.EmptyIngestor = exports.NewIntegrationName = exports.TestIntegration2 = exports.TestIntegration = exports.EmptyIntegration = exports.NewTestDeviceTypeName = exports.TestDeviceType2 = exports.TestDeviceType = exports.EmptyDeviceType = exports.NewTestCompanyName = exports.TestCompany2 = exports.TestCompany = exports.EmptyCompany = exports.NewTestUserName = exports.EmptyUser = exports.TestUser2 = exports.TestUser = exports.NewTestDeviceName = exports.EmptyDevice = exports.TestDevice2 = exports.TestDevice = exports.TestDeviceTypeID = exports.TestAuth = void 0;
15
15
  var parentCompanyId = 'whiteprompt_ssi_dev';
16
16
  var baseModel = {
17
17
  _id: '',
@@ -26,8 +26,9 @@ exports.TestAuth = {
26
26
  username: 'akhil.asaad+sys_admin@whiteprompt.com',
27
27
  pass: 'PiraeBeatsVenus',
28
28
  };
29
+ exports.TestDeviceTypeID = '610aaa4abc72d700011b872d';
29
30
  exports.TestDevice = {
30
- device_type_id: '610aaa4abc72d700011b872d',
31
+ device_type_id: exports.TestDeviceTypeID,
31
32
  name: 'EdgeIQAPI Test Device',
32
33
  unique_id: 'akhil_api_js_test_device',
33
34
  company_id: parentCompanyId,
@@ -212,3 +213,8 @@ exports.TestRule = {
212
213
  };
213
214
  exports.TestRule2 = __assign(__assign({}, exports.TestRule), { description: 'EIQSDK Rule Test 2' });
214
215
  exports.NewTestRuleDescription = 'EIQSDK Rule Test updated';
216
+ exports.TestDiscoveredDevice = {
217
+ company_id: parentCompanyId,
218
+ name: 'Test Discovered Device',
219
+ unique_id: 'test_discovered_device',
220
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgeiq/edgeiq-api-js",
3
- "version": "1.1.10",
3
+ "version": "1.2.0",
4
4
  "author": "EdgeIQ",
5
5
  "license": "ISC",
6
6
  "description": "This project presents EdgeIQ API SDK.",