@choiceform/os-client-core 3.4.30 → 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/changelog.md +33 -0
- package/dist/core.js +1 -1
- package/dist/web-core.js +1 -1
- package/index.d.ts +46 -4
- package/package.json +2 -2
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
|
/**
|
|
@@ -1507,11 +1512,19 @@ declare const enum DATA_TRANSFER_NAME {
|
|
|
1507
1512
|
/**
|
|
1508
1513
|
* 甄别失败转移url
|
|
1509
1514
|
*/
|
|
1510
|
-
|
|
1515
|
+
EXAMINE_SKIPPED = 'examine_skipped_url',
|
|
1511
1516
|
/**
|
|
1512
1517
|
* 配置满转移url
|
|
1513
1518
|
*/
|
|
1514
|
-
|
|
1519
|
+
EXAMINE_FAILED = 'examine_failed_url',
|
|
1520
|
+
/**
|
|
1521
|
+
* 正式提交时发生配额失败
|
|
1522
|
+
*/
|
|
1523
|
+
EXAMINE_FAILED_ON_COMMIT = 'examine_failed_on_commit_url',
|
|
1524
|
+
/**
|
|
1525
|
+
* 数据已满
|
|
1526
|
+
*/
|
|
1527
|
+
OVERFLOW = 'overflow_url',
|
|
1515
1528
|
/**
|
|
1516
1529
|
* 提交成功转移url
|
|
1517
1530
|
*/
|
|
@@ -1521,6 +1534,19 @@ declare const enum DATA_TRANSFER_NAME {
|
|
|
1521
1534
|
*/
|
|
1522
1535
|
INVALID = 'invalid_url',
|
|
1523
1536
|
}
|
|
1537
|
+
/**
|
|
1538
|
+
* 数据转移类型结果
|
|
1539
|
+
*/
|
|
1540
|
+
interface IDataTransferResult {
|
|
1541
|
+
/**
|
|
1542
|
+
* 转移类型
|
|
1543
|
+
*/
|
|
1544
|
+
type: SAMPLE_METHOD;
|
|
1545
|
+
/**
|
|
1546
|
+
* 是否完成了数据转移
|
|
1547
|
+
*/
|
|
1548
|
+
done: boolean;
|
|
1549
|
+
}
|
|
1524
1550
|
|
|
1525
1551
|
/**
|
|
1526
1552
|
* 进入答题页面的模式
|
|
@@ -3498,6 +3524,10 @@ interface ICFRewardItem {
|
|
|
3498
3524
|
* @ignore
|
|
3499
3525
|
*/
|
|
3500
3526
|
interface ICFStartNode extends ICFNode, ICFStartMiniState, ICFOutputNodeMixin, CFMediaNodeMixin {
|
|
3527
|
+
/**
|
|
3528
|
+
* url参数
|
|
3529
|
+
*/
|
|
3530
|
+
urlParames: CFPDUrlParamItem[];
|
|
3501
3531
|
/**
|
|
3502
3532
|
* 问卷中包含使用的模板id列表
|
|
3503
3533
|
*/
|
|
@@ -8017,7 +8047,11 @@ interface ICFResumeHolder {
|
|
|
8017
8047
|
/**
|
|
8018
8048
|
* 缓存的数据
|
|
8019
8049
|
*/
|
|
8020
|
-
data:
|
|
8050
|
+
data: ICFResumeData;
|
|
8051
|
+
/**
|
|
8052
|
+
* 缓存的错误状态
|
|
8053
|
+
*/
|
|
8054
|
+
error: ICFResumeError;
|
|
8021
8055
|
/**
|
|
8022
8056
|
* 需要回复到的位置
|
|
8023
8057
|
*/
|
|
@@ -8129,10 +8163,18 @@ interface ICFMaxDiffTaskCache {
|
|
|
8129
8163
|
/**
|
|
8130
8164
|
* @ignore
|
|
8131
8165
|
*/
|
|
8132
|
-
interface
|
|
8166
|
+
interface ICFResumeData {
|
|
8133
8167
|
[key: string]: ICFQuestionCache;
|
|
8134
8168
|
}
|
|
8135
8169
|
|
|
8170
|
+
interface ICFResumeQuesError {
|
|
8171
|
+
error: string;
|
|
8172
|
+
options: { [key: string]: string };
|
|
8173
|
+
}
|
|
8174
|
+
interface ICFResumeError {
|
|
8175
|
+
[key: string]: ICFResumeQuesError;
|
|
8176
|
+
}
|
|
8177
|
+
|
|
8136
8178
|
/**
|
|
8137
8179
|
* 题目答题状态缓存,混合了各个题目的内容,但是针对单个题目只会包含这里面的部分内容。
|
|
8138
8180
|
* 简化类型定义混合到了一起。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@choiceform/os-client-core",
|
|
3
|
-
"version": "3.4.
|
|
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
|
+
}
|