@choiceform/os-client-core 3.4.33 → 3.4.34

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/index.d.ts CHANGED
@@ -899,6 +899,11 @@ interface CFUtil {
899
899
  * 获取当前答题任务已完成的概要信息
900
900
  */
901
901
  getTaskInfo(): Promise<CFTaskInfo>;
902
+ /**
903
+ * 获取一道题目的答案
904
+ * @param question 题目
905
+ */
906
+ getAnswer(question: CFQuestion): ICFAnswer;
902
907
  }
903
908
 
904
909
  /**
@@ -3519,6 +3524,10 @@ interface ICFRewardItem {
3519
3524
  * @ignore
3520
3525
  */
3521
3526
  interface ICFStartNode extends ICFNode, ICFStartMiniState, ICFOutputNodeMixin, CFMediaNodeMixin {
3527
+ /**
3528
+ * url参数
3529
+ */
3530
+ urlParames: CFPDUrlParamItem[];
3522
3531
  /**
3523
3532
  * 问卷中包含使用的模板id列表
3524
3533
  */
@@ -8038,7 +8047,11 @@ interface ICFResumeHolder {
8038
8047
  /**
8039
8048
  * 缓存的数据
8040
8049
  */
8041
- data: ICFMemory;
8050
+ data: ICFResumeData;
8051
+ /**
8052
+ * 缓存的错误状态
8053
+ */
8054
+ error: ICFResumeError;
8042
8055
  /**
8043
8056
  * 需要回复到的位置
8044
8057
  */
@@ -8150,10 +8163,18 @@ interface ICFMaxDiffTaskCache {
8150
8163
  /**
8151
8164
  * @ignore
8152
8165
  */
8153
- interface ICFMemory {
8166
+ interface ICFResumeData {
8154
8167
  [key: string]: ICFQuestionCache;
8155
8168
  }
8156
8169
 
8170
+ interface ICFResumeQuesError {
8171
+ error: string;
8172
+ options: { [key: string]: string };
8173
+ }
8174
+ interface ICFResumeError {
8175
+ [key: string]: ICFResumeQuesError;
8176
+ }
8177
+
8157
8178
  /**
8158
8179
  * 题目答题状态缓存,混合了各个题目的内容,但是针对单个题目只会包含这里面的部分内容。
8159
8180
  * 简化类型定义混合到了一起。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@choiceform/os-client-core",
3
- "version": "3.4.33",
3
+ "version": "3.4.34",
4
4
  "description": "choiceform survey client core",
5
5
  "main": "./dist/core.js",
6
6
  "repository": "https://github.com/choice-form/os-client-core",
@@ -75,4 +75,4 @@
75
75
  "webpack-cli": "^4.8.0",
76
76
  "webpack-dev-server": "^4.1.1"
77
77
  }
78
- }
78
+ }