@choiceform/os-client-core 2.1.68 → 2.1.69

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
@@ -2536,6 +2536,24 @@ declare const enum DATA_TRANSFER_NAME {
2536
2536
  INVALID = 'invalid_url',
2537
2537
  }
2538
2538
 
2539
+ /**
2540
+ * 进入答题页面的模式
2541
+ */
2542
+ declare const enum SURVEY_ENTER_MODE {
2543
+ /**
2544
+ * 正常进入
2545
+ */
2546
+ START = 'start',
2547
+ /**
2548
+ * 重新开始
2549
+ */
2550
+ RESTART = 'restart',
2551
+ /**
2552
+ * 断点续答
2553
+ */
2554
+ RESUME = 'resume',
2555
+ }
2556
+
2539
2557
  /**
2540
2558
  * 数据传输方式枚举
2541
2559
  */
@@ -2872,7 +2890,7 @@ interface ICFAnswer {
2872
2890
  */
2873
2891
  readonly node_id: string;
2874
2892
  /**
2875
- * 本题消耗时间
2893
+ * 本题消耗时间,用毫秒为单位
2876
2894
  */
2877
2895
  readonly cost_time: number;
2878
2896
  /**
@@ -2959,9 +2977,9 @@ interface ICFResult {
2959
2977
  */
2960
2978
  readonly webhook_params: SignStrStr;
2961
2979
  /**
2962
- * 整份问卷的消耗总时间
2980
+ * 整份问卷的消耗总时间,用秒为单位
2963
2981
  */
2964
- readonly cost_time: number;
2982
+ readonly time_consuming: number;
2965
2983
  /**
2966
2984
  * 测试和离线专用:
2967
2985
  * 回复创建时间
@@ -7829,9 +7847,24 @@ interface ICFContext {
7829
7847
  */
7830
7848
  interface CFSurveyState
7831
7849
  extends ICFTranMiniState,
7832
- ICFStartMiniState,
7833
- ICFStartMiniIntro,
7834
- CFStateBase {
7850
+ ICFStartMiniState,
7851
+ ICFStartMiniIntro,
7852
+ CFStateBase {
7853
+ /**
7854
+ * 最新答案
7855
+ */
7856
+ readonly latestResult?: ICFResult;
7857
+ /**
7858
+ * 进入问卷的模式
7859
+ */
7860
+ readonly enterMode: SURVEY_ENTER_MODE;
7861
+ /**
7862
+ * 进入答题页面后答案是否发生了变化
7863
+ */
7864
+ readonly answerChangedSinceStart: boolean;
7865
+ /**
7866
+ * 对于核心的引用
7867
+ */
7835
7868
  readonly core?: CFCore;
7836
7869
  /**
7837
7870
  * @ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@choiceform/os-client-core",
3
- "version": "2.1.68",
3
+ "version": "2.1.69",
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",