@edgeiq/edgeiq-api-js 1.3.16 → 1.3.17
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,5 +1,6 @@
|
|
|
1
1
|
import { Base, Filter, Filters, Pagination } from '../models';
|
|
2
2
|
export declare type TypeDeviceType = 'gateway' | 'sensor' | 'cloud_native' | 'modem' | 'lwm2m';
|
|
3
|
+
export declare type DeviceTypeRole = 'gateway' | 'endpoint';
|
|
3
4
|
export interface NetworkConnection {
|
|
4
5
|
type: string;
|
|
5
6
|
interface?: string;
|
|
@@ -79,6 +80,7 @@ export interface DeviceTypeInput {
|
|
|
79
80
|
manufacturer: string;
|
|
80
81
|
long_description?: string;
|
|
81
82
|
type: TypeDeviceType;
|
|
83
|
+
role: DeviceTypeRole;
|
|
82
84
|
capabilities: Capabilities;
|
|
83
85
|
heartbeat_values?: string[];
|
|
84
86
|
origin_id?: string;
|
|
@@ -97,6 +99,7 @@ export interface DeviceTypesFilters extends Filters {
|
|
|
97
99
|
manufacturer?: Filter;
|
|
98
100
|
long_description?: string;
|
|
99
101
|
type?: Filter;
|
|
102
|
+
role?: Filter;
|
|
100
103
|
}
|
|
101
104
|
export interface PaginatedDeviceTypes {
|
|
102
105
|
deviceTypes: DeviceType[];
|
package/dist/testConstants.js
CHANGED
|
@@ -112,7 +112,7 @@ var deviceTypeCapabilities = {
|
|
|
112
112
|
network_connections: [],
|
|
113
113
|
peripherals: [],
|
|
114
114
|
};
|
|
115
|
-
exports.EmptyDeviceType = __assign(__assign({}, baseModel), { capabilities: deviceTypeCapabilities, manufacturer: '', model: '', name: '', type: 'cloud_native' });
|
|
115
|
+
exports.EmptyDeviceType = __assign(__assign({}, baseModel), { capabilities: deviceTypeCapabilities, manufacturer: '', model: '', name: '', type: 'cloud_native', role: 'endpoint' });
|
|
116
116
|
exports.TestDeviceType = {
|
|
117
117
|
company_id: parentCompanyId,
|
|
118
118
|
capabilities: deviceTypeCapabilities,
|
|
@@ -120,6 +120,7 @@ exports.TestDeviceType = {
|
|
|
120
120
|
model: 'API Test model',
|
|
121
121
|
name: 'API Test Device Type',
|
|
122
122
|
type: 'cloud_native',
|
|
123
|
+
role: 'endpoint',
|
|
123
124
|
};
|
|
124
125
|
exports.TestDeviceType2 = __assign(__assign({}, exports.TestDeviceType), { name: 'API Test Device Type 2' });
|
|
125
126
|
exports.NewTestDeviceTypeName = 'API Test Device Type updated';
|