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.
@@ -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
  }
@@ -4,7 +4,8 @@ interface UpsertData {
4
4
  name: string;
5
5
  tag: string;
6
6
  mateData: {
7
- account: string;
7
+ account?: string;
8
+ enterpriseId?: string;
8
9
  };
9
10
  }
10
11
  export declare const PostQuestionCollectionUpsert: <R>(data: UpsertData) => import("axios").AxiosPromise<R>;
@@ -5,6 +5,7 @@ export interface Auth {
5
5
  export interface Config {
6
6
  server_url: string;
7
7
  account?: string;
8
+ enterpriseId?: string;
8
9
  auth_callback: () => Promise<Auth>;
9
10
  }
10
11
  export declare const avocadoVideoInterview: {
@@ -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
  }
@@ -4,7 +4,8 @@ interface UpsertData {
4
4
  name: string;
5
5
  tag: string;
6
6
  mateData: {
7
- account: string;
7
+ account?: string;
8
+ enterpriseId?: string;
8
9
  };
9
10
  }
10
11
  export declare const PostQuestionCollectionUpsert: <R>(data: UpsertData) => import("axios").AxiosPromise<R>;
@@ -5,6 +5,7 @@ export interface Auth {
5
5
  export interface Config {
6
6
  server_url: string;
7
7
  account?: string;
8
+ enterpriseId?: string;
8
9
  auth_callback: () => Promise<Auth>;
9
10
  }
10
11
  export declare const avocadoVideoInterview: {
@@ -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.7",
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": "8f1581d96d8d35a814b6b40a87618725f0037fda"
58
+ "gitHead": "1711c472ace5ebafdf3bf95d9c899b3294c3bfa9"
59
59
  }