@choiceform/os-client-core 3.4.3 → 3.4.4

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
@@ -6854,17 +6854,6 @@ interface ICFRandomHub extends ICFRandomNode, CFQuestion {
6854
6854
  readonly origin: ICFRandomNode;
6855
6855
  }
6856
6856
 
6857
- /**
6858
- * 虚拟奖励问题
6859
- * @ignore
6860
- */
6861
- interface ICFGiftHub extends ICFGiftNode, CFQuestion {
6862
- /**
6863
- * 是否获取短信失败
6864
- */
6865
- readonly messageGetFailed: boolean;
6866
- }
6867
-
6868
6857
  /**
6869
6858
  * @ignore
6870
6859
  * 虚拟逻辑题
@@ -7571,6 +7560,7 @@ interface ICFRewardInfo extends ICFGiftNode, ICFLotteryResult, ICFCustomLogo {
7571
7560
  * 渲染奖励信息
7572
7561
  */
7573
7562
  interface CFRewardState extends ICFRewardInfo, CFStateBase {
7563
+ readonly renderId: string;
7574
7564
  /**
7575
7565
  * 奖励类型,包含以下两种类型
7576
7566
  * 需要根据该类型渲染不同的内容.
@@ -7629,6 +7619,10 @@ interface CFRewardState extends ICFRewardInfo, CFStateBase {
7629
7619
  * @ignore 该属性只在此核心项目中编程时使用,不会包含到发布后的包中
7630
7620
  */
7631
7621
  readonly language: string;
7622
+ /**
7623
+ * 是否获取短信失败
7624
+ */
7625
+ readonly messageGetFailed?: boolean;
7632
7626
  }
7633
7627
 
7634
7628
 
@@ -9387,9 +9381,10 @@ interface CFUIEventHandler {
9387
9381
  /**
9388
9382
  * 获取验证码按钮点击回调,适用题目,验证节点,奖励节点
9389
9383
  * 回调中逻辑层会去获取短信验证码或者图片验证码
9390
- * @param question 所在题目
9384
+ * 当发送成功会返回Promise<true>,否则返回Promise<false>
9385
+ * @param target 使用短信的对象
9391
9386
  */
9392
- handleGetCodeClick?(question: CFQuestion): Promise<void>;
9387
+ handleGetCodeClick?(target: CFVerifyQuestion | CFRewardState): Promise<boolean>;
9393
9388
 
9394
9389
  /**
9395
9390
  * 选项输入回调函数:适用题目填空题,打分题,数值分配题,连续评价题,上传题,输入方式排序或挑选方式排序的排序题以及有其他选项需要输入的题型
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@choiceform/os-client-core",
3
- "version": "3.4.3",
3
+ "version": "3.4.4",
4
4
  "description": "choice form survey client core",
5
5
  "main": "./dist/core.js",
6
6
  "repository": "https://github.com/choice-form/os-client-core",
@@ -72,4 +72,4 @@
72
72
  "webpack-cli": "^4.8.0",
73
73
  "webpack-dev-server": "^4.1.1"
74
74
  }
75
- }
75
+ }