eli-video-interview 1.2.34-beta.0 → 1.2.34-beta.1

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.
@@ -110,11 +110,11 @@ var QuestionUpdate = function () {
110
110
  var errorIndexes = [];
111
111
  // 职场能力中不参与AI分析的提交时,过滤掉
112
112
  var newAiAbilities = aiAbilities
113
- .map(function (item) {
114
- item.isNotCompute = true;
115
- if (item.type === 6) {
113
+ .map(function (i) {
114
+ i.isNotCompute = true;
115
+ if (i.type === 6) {
116
116
  var extra_1 = {};
117
- var extraJson = JSON.parse(item.extra);
117
+ var extraJson = JSON.parse(i.extra);
118
118
  extraJson.forEach(function (_a, index) {
119
119
  var words = _a.words, score = _a.score, color = _a.color;
120
120
  if (!words)
@@ -128,15 +128,19 @@ var QuestionUpdate = function () {
128
128
  reject();
129
129
  }
130
130
  }
131
- return __assign(__assign({}, item), { extra: JSON.stringify(extra_1) });
131
+ return __assign(__assign({}, i), { extra: JSON.stringify(extra_1) });
132
132
  }
133
- if (item.type === 103) {
134
- item.type = 3;
133
+ if (i.type === 103) {
134
+ i.type = 3;
135
135
  }
136
- return item;
136
+ return i;
137
137
  })
138
138
  .filter(function (v) { return v.abilityType === 1 || (v.abilityType === 2 && v.isWorkplace); });
139
139
  var _b = values || { category: undefined }, _c = _b.readText, readText = _c === void 0 ? '' : _c, otherValues = __rest(_b, ["readText"]);
140
+ // fixbug: 从多维度能力测评题库选择题目且更改为跟读题时,朗读内容无法保存成功的问题
141
+ if (!item.extra && readText) {
142
+ item.extra = defaultQuestionParams.extra;
143
+ }
140
144
  resolve({
141
145
  errorIndexes: errorIndexes,
142
146
  params: __assign(__assign(__assign(__assign({}, item), otherValues), analysisState), { category: (otherValues === null || otherValues === void 0 ? void 0 : otherValues.category) ? [(_a = otherValues === null || otherValues === void 0 ? void 0 : otherValues.category) === null || _a === void 0 ? void 0 : _a.value] : [], extra: readText && item.extra ? __assign(__assign({}, item.extra), { readText: readText }) : item.extra, aiType: newAiAbilities.length > 0 ? 2 : 1, // 不参与AI分析的考察能力不可设置题目权重,只有可AI分析的职场能力和AI基础能力
@@ -115,11 +115,11 @@ var QuestionUpdate = function () {
115
115
  var errorIndexes = [];
116
116
  // 职场能力中不参与AI分析的提交时,过滤掉
117
117
  var newAiAbilities = aiAbilities
118
- .map(function (item) {
119
- item.isNotCompute = true;
120
- if (item.type === 6) {
118
+ .map(function (i) {
119
+ i.isNotCompute = true;
120
+ if (i.type === 6) {
121
121
  var extra_1 = {};
122
- var extraJson = JSON.parse(item.extra);
122
+ var extraJson = JSON.parse(i.extra);
123
123
  extraJson.forEach(function (_a, index) {
124
124
  var words = _a.words, score = _a.score, color = _a.color;
125
125
  if (!words)
@@ -133,15 +133,19 @@ var QuestionUpdate = function () {
133
133
  reject();
134
134
  }
135
135
  }
136
- return __assign(__assign({}, item), { extra: JSON.stringify(extra_1) });
136
+ return __assign(__assign({}, i), { extra: JSON.stringify(extra_1) });
137
137
  }
138
- if (item.type === 103) {
139
- item.type = 3;
138
+ if (i.type === 103) {
139
+ i.type = 3;
140
140
  }
141
- return item;
141
+ return i;
142
142
  })
143
143
  .filter(function (v) { return v.abilityType === 1 || (v.abilityType === 2 && v.isWorkplace); });
144
144
  var _b = values || { category: undefined }, _c = _b.readText, readText = _c === void 0 ? '' : _c, otherValues = __rest(_b, ["readText"]);
145
+ // fixbug: 从多维度能力测评题库选择题目且更改为跟读题时,朗读内容无法保存成功的问题
146
+ if (!item.extra && readText) {
147
+ item.extra = const_1.defaultQuestionParams.extra;
148
+ }
145
149
  resolve({
146
150
  errorIndexes: errorIndexes,
147
151
  params: __assign(__assign(__assign(__assign({}, item), otherValues), analysisState), { category: (otherValues === null || otherValues === void 0 ? void 0 : otherValues.category) ? [(_a = otherValues === null || otherValues === void 0 ? void 0 : otherValues.category) === null || _a === void 0 ? void 0 : _a.value] : [], extra: readText && item.extra ? __assign(__assign({}, item.extra), { readText: readText }) : item.extra, aiType: newAiAbilities.length > 0 ? 2 : 1, // 不参与AI分析的考察能力不可设置题目权重,只有可AI分析的职场能力和AI基础能力
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eli-video-interview",
3
- "version": "1.2.34-beta.0",
3
+ "version": "1.2.34-beta.1",
4
4
  "description": "鳄梨科技 AI视频面试 React SDK",
5
5
  "author": "鳄梨科技",
6
6
  "license": "MIT",