@edgeiq/edgeiq-api-js 1.7.7 → 1.7.9
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.
- package/dist/OIDC/index.js +1 -1
- package/dist/core/index.js +1 -1
- package/dist/deviceTypes/models.d.ts +5 -1
- package/package.json +2 -2
package/dist/OIDC/index.js
CHANGED
|
@@ -151,7 +151,7 @@ export class OIDC extends BaseModelClass {
|
|
|
151
151
|
}
|
|
152
152
|
setupAxiosInterceptor() {
|
|
153
153
|
this.api.interceptors.request.use((config) => __awaiter(this, void 0, void 0, function* () {
|
|
154
|
-
if (config.headers
|
|
154
|
+
if (config.headers['skipInterceptor']) {
|
|
155
155
|
return config;
|
|
156
156
|
}
|
|
157
157
|
if (this.isAccessTokenExpired()) {
|
package/dist/core/index.js
CHANGED
|
@@ -39,7 +39,7 @@ export class EdgeIQAPI {
|
|
|
39
39
|
return EdgeIQAPI.axios;
|
|
40
40
|
}
|
|
41
41
|
static setSessionToken(token) {
|
|
42
|
-
EdgeIQAPI.axios.defaults.headers
|
|
42
|
+
EdgeIQAPI.axios.defaults.headers['Authorization'] = token;
|
|
43
43
|
}
|
|
44
44
|
static logAction(message) {
|
|
45
45
|
if (EdgeIQAPI.enableLogging) {
|
|
@@ -74,6 +74,10 @@ export interface Capabilities {
|
|
|
74
74
|
sms_at_commands?: SMSATCommands;
|
|
75
75
|
observable_paths?: string[];
|
|
76
76
|
}
|
|
77
|
+
export interface ImportantMetadata {
|
|
78
|
+
label: string;
|
|
79
|
+
value: string;
|
|
80
|
+
}
|
|
77
81
|
export interface DeviceTypeInput {
|
|
78
82
|
name: string;
|
|
79
83
|
company_id: string;
|
|
@@ -93,7 +97,7 @@ export interface DeviceTypeInput {
|
|
|
93
97
|
[key: string]: string;
|
|
94
98
|
};
|
|
95
99
|
default_thing_groups?: AwsThingGroup[];
|
|
96
|
-
important_metadata?:
|
|
100
|
+
important_metadata?: ImportantMetadata[];
|
|
97
101
|
device_integration_id?: string;
|
|
98
102
|
cloud_native_integration_id?: string;
|
|
99
103
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edgeiq/edgeiq-api-js",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.9",
|
|
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.
|
|
34
|
+
"axios": "^1.7.4",
|
|
35
35
|
"chalk": "^4.1.2",
|
|
36
36
|
"crypto-js": "^4.2.0",
|
|
37
37
|
"jwt-decode": "^4.0.0"
|