eli-video-interview 1.1.7 → 1.1.8
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/esm/modules/ai-ability/components/UpdateAbility/index.js +1 -0
- package/esm/services/ai-ability.d.ts +2 -1
- package/esm/utils/config.d.ts +1 -0
- package/esm/utils/interceptor.js +3 -0
- package/lib/modules/ai-ability/components/UpdateAbility/index.js +1 -0
- package/lib/services/ai-ability.d.ts +2 -1
- package/lib/utils/config.d.ts +1 -0
- package/lib/utils/interceptor.js +3 -0
- package/package.json +2 -2
|
@@ -92,6 +92,7 @@ var UpdateAbility = function (props) {
|
|
|
92
92
|
token: token,
|
|
93
93
|
mateData: {
|
|
94
94
|
account: avocadoConfig === null || avocadoConfig === void 0 ? void 0 : avocadoConfig.account,
|
|
95
|
+
enterpriseId: avocadoConfig === null || avocadoConfig === void 0 ? void 0 : avocadoConfig.enterpriseId,
|
|
95
96
|
},
|
|
96
97
|
});
|
|
97
98
|
}
|
package/esm/utils/config.d.ts
CHANGED
package/esm/utils/interceptor.js
CHANGED
|
@@ -98,6 +98,9 @@ var handleParams = function (config) { return __awaiter(void 0, void 0, void 0,
|
|
|
98
98
|
expires = expireTime ? dayjs(new Date(expireTime * 1000)).diff(new Date(), 'hour') / 24 : undefined;
|
|
99
99
|
Cookies.set('avocado-video-interview-access-token', accessToken, expires ? { expires: expires } : {});
|
|
100
100
|
}
|
|
101
|
+
if (avocadoConfig === null || avocadoConfig === void 0 ? void 0 : avocadoConfig.enterpriseId) {
|
|
102
|
+
config.headers['x-enterprise-id'] = avocadoConfig.enterpriseId;
|
|
103
|
+
}
|
|
101
104
|
config.headers['x-access-token'] = accessToken || cookieAccessToken;
|
|
102
105
|
config.params ? (config.params = __assign(__assign({}, config.params), { ts: ts })) : (config.params = { ts: ts });
|
|
103
106
|
return [2 /*return*/, config];
|
|
@@ -94,6 +94,7 @@ var UpdateAbility = function (props) {
|
|
|
94
94
|
token: token,
|
|
95
95
|
mateData: {
|
|
96
96
|
account: avocadoConfig === null || avocadoConfig === void 0 ? void 0 : avocadoConfig.account,
|
|
97
|
+
enterpriseId: avocadoConfig === null || avocadoConfig === void 0 ? void 0 : avocadoConfig.enterpriseId,
|
|
97
98
|
},
|
|
98
99
|
});
|
|
99
100
|
}
|
package/lib/utils/config.d.ts
CHANGED
package/lib/utils/interceptor.js
CHANGED
|
@@ -103,6 +103,9 @@ var handleParams = function (config) { return __awaiter(void 0, void 0, void 0,
|
|
|
103
103
|
expires = expireTime ? (0, dayjs_1.default)(new Date(expireTime * 1000)).diff(new Date(), 'hour') / 24 : undefined;
|
|
104
104
|
js_cookie_1.default.set('avocado-video-interview-access-token', accessToken, expires ? { expires: expires } : {});
|
|
105
105
|
}
|
|
106
|
+
if (avocadoConfig === null || avocadoConfig === void 0 ? void 0 : avocadoConfig.enterpriseId) {
|
|
107
|
+
config.headers['x-enterprise-id'] = avocadoConfig.enterpriseId;
|
|
108
|
+
}
|
|
106
109
|
config.headers['x-access-token'] = accessToken || cookieAccessToken;
|
|
107
110
|
config.params ? (config.params = __assign(__assign({}, config.params), { ts: ts })) : (config.params = { ts: ts });
|
|
108
111
|
return [2 /*return*/, config];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eli-video-interview",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "鳄梨科技 AI视频面试 React SDK",
|
|
5
5
|
"author": "鳄梨科技",
|
|
6
6
|
"license": "MIT",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"type": "git",
|
|
56
56
|
"url": "https://jihulab.com/elihr/elifront/open/lerna-avocado-sdk.git"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "1711c472ace5ebafdf3bf95d9c899b3294c3bfa9"
|
|
59
59
|
}
|