@edgeiq/edgeiq-api-js 1.11.5 → 1.11.7

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 DeviceEvent extends Base {
5
5
  device_class: DeviceClass;
6
6
  device_event_type: DeviceEventType;
7
7
  unique_id: string;
8
+ metadata?: {
9
+ [key: string]: unknown;
10
+ };
8
11
  }
9
12
  export interface DeviceEventsFilters extends Filters {
10
13
  device_event_type?: Filter;
@@ -1,6 +1,7 @@
1
1
  import { PaginationFilter } from '..';
2
- import { PaginatedSoftwareVersions, SoftwareVersionsFilters } from './models';
2
+ import { PaginatedSoftwareVersions, SoftwareVersion, SoftwareVersionsFilters } from './models';
3
3
  declare const SoftwareVersions: {
4
4
  list: (filters?: SoftwareVersionsFilters | undefined, pagination?: PaginationFilter | undefined) => Promise<PaginatedSoftwareVersions>;
5
+ listDistinctVersions: () => Promise<SoftwareVersion[]>;
5
6
  };
6
7
  export { SoftwareVersions };
@@ -36,5 +36,19 @@ const SoftwareVersions = {
36
36
  throw error;
37
37
  }
38
38
  }),
39
+ listDistinctVersions: () => __awaiter(void 0, void 0, void 0, function* () {
40
+ try {
41
+ EdgeIQAPI.logAction(`Getting software versions`);
42
+ const axios = EdgeIQAPI.getAxios();
43
+ const result = yield axios.get(`${Endpoints.softwareVersion}/distinct`);
44
+ return result === null || result === void 0 ? void 0 : result.data;
45
+ }
46
+ catch (error) {
47
+ if (isApiError(error)) {
48
+ throw error;
49
+ }
50
+ throw error;
51
+ }
52
+ }),
39
53
  };
40
54
  export { SoftwareVersions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgeiq/edgeiq-api-js",
3
- "version": "1.11.5",
3
+ "version": "1.11.7",
4
4
  "author": "EdgeIQ",
5
5
  "license": "ISC",
6
6
  "description": "This project presents EdgeIQ API SDK.",
@@ -31,7 +31,7 @@
31
31
  "version": "npm run format && git add -A src"
32
32
  },
33
33
  "dependencies": {
34
- "axios": "^1.7.4",
34
+ "axios": "^1.8.2",
35
35
  "chalk": "^4.1.2",
36
36
  "crypto-js": "^4.2.0",
37
37
  "jwt-decode": "^4.0.0"