@choiceform/os-client-core 3.4.14 → 3.4.18

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
@@ -232,12 +232,8 @@ interface CFEnvUi {
232
232
  * 如果不配置则什么都不做
233
233
  * @param template 模板名称
234
234
  * @param state 答题状态
235
- * @param loop 循环信心
236
235
  */
237
- initNodeTemplate?(
238
- template: CFNodeTemplate,
239
- state: CFSurveyState,
240
- ): Promise<CFNodeTemplate>;
236
+ initNodeTemplate?(template: CFNodeTemplate, state: CFSurveyState): Promise<CFNodeTemplate>;
241
237
  /**
242
238
  * 预加载当前问卷所有使用到的额UI动态插件的方法
243
239
  * 只有实现了动态模板机制的答题端需要配置这个方法
@@ -283,7 +279,6 @@ interface CFApiReqResult {
283
279
  readonly response: string | object;
284
280
  }
285
281
 
286
-
287
282
  interface CFUploadBaseConfig {
288
283
  /**
289
284
  * 关联的节点id
@@ -386,7 +381,7 @@ interface CFEnvNetWork {
386
381
  * @param message 消息名
387
382
  * @param payload 附带的数据
388
383
  */
389
- pushSocket?(message:string, payload: object): void;
384
+ pushSocket?(message: string, payload: object): void;
390
385
  }
391
386
  /**
392
387
  * 授权相关的配置,不同的运行平台有不同的账户系统,所以授权方式也不一样。
@@ -410,14 +405,14 @@ interface CFEnvAuth {
410
405
  * 其他方式的答题端无需配置这个方法。
411
406
  * @param appId
412
407
  * @param componentAppId
413
- * @param redirectUrl
408
+ * @param params
414
409
  */
415
410
  authorizeGift?(appId: string, componentAppId: string, params: CFQueryParams): void;
416
411
  /**
417
412
  * 普通授权方法,该方法仅用于那些需要在微信浏览器中运行且需要获取微信信息的答题端
418
413
  * web核心包中一般需要配置该方法。
419
414
  * 其他方式的答题端无需配置这个方法。
420
- * @param ICFIntroMeta 源数据
415
+ * @param meta
421
416
  */
422
417
  authorize?(meta: ICFIntroMeta): void;
423
418
  /**
@@ -521,22 +516,22 @@ interface CFEnvHook {
521
516
  /**
522
517
  * 开始一个新回复时的回调,
523
518
  * 非断点续答询问后选择断点续答或重新开始的时候不算做这种情况之内
524
- * @param state
519
+ * @param state
525
520
  */
526
521
  onStartNewSurvey?(state: CFSurveyState): Promise<void>;
527
522
  /**
528
523
  * 断点续答询问后后选择重新开始时的回调
529
- * @param state
524
+ * @param state
530
525
  */
531
526
  onRestartSurvey?(state: CFSurveyState): Promise<void>;
532
527
  /**
533
528
  * 断点续答询问后选择续答时的回调
534
- * @param state
529
+ * @param state
535
530
  */
536
531
  onResumeSurvey?(state: CFSurveyState): Promise<void>;
537
532
  /**
538
533
  * 当一个回复完成走到结束节点时的回调,此时数据已经提交了。
539
- * @param state
534
+ * @param state
540
535
  */
541
536
  onEndSurvey?(state: CFSurveyState): Promise<void>;
542
537
  }
@@ -743,9 +738,10 @@ interface CFSetupOptions {
743
738
  /**
744
739
  * 上传日志的方法,核心包运行时会生成一些有利于追踪已知错误的日志,希望能通过这个方法上传。
745
740
  * 如果不设置则不会上传错误。而是在控制台打印出来
746
- * @param message
741
+ * @param message
742
+ * @param level
747
743
  */
748
- uploadLog?(message: string, level?: 'log' | 'error'):void;
744
+ uploadLog?(message: string, level?: 'log' | 'error'): void;
749
745
  /**
750
746
  * 如果在单页模式中有很多题目,进行作答后点击下一题,其中某道题目的答案不满足要求,
751
747
  * 这时候可能这道题目不再滚动条所在的可见范围内,
@@ -877,7 +873,6 @@ interface CFTaskNode {
877
873
  * 直接放在题目上的答案信息,不同题目内容不同:
878
874
  * 手动定位题:手选的位置信息
879
875
  * 自动定位题:定位的位置信息
880
- *
881
876
  */
882
877
  readonly value?: string;
883
878
  /**
@@ -911,6 +906,7 @@ interface CFUtil {
911
906
  /**
912
907
  * 解压文本
913
908
  * @param text
909
+ * @param config
914
910
  */
915
911
  inflate(text: string, config: { to: string }): string;
916
912
  /**
@@ -2577,12 +2573,10 @@ declare const enum MATRIX_OPTION_DISPLAY_MODE {
2577
2573
  HIDDEN = 'hidden',
2578
2574
  }
2579
2575
 
2580
-
2581
2576
  /**
2582
2577
  * 选项分组随机模式
2583
2578
  */
2584
2579
  declare const enum OPTION_GROUP_RANDOM_MODE {
2585
-
2586
2580
  /**
2587
2581
  * 跟随题目
2588
2582
  */
@@ -2600,7 +2594,7 @@ declare const enum OPTION_GROUP_RANDOM_MODE {
2600
2594
  /**
2601
2595
  * 固定位循环
2602
2596
  */
2603
- CIRCULATION = 'circulation'
2597
+ CIRCULATION = 'circulation',
2604
2598
  }
2605
2599
 
2606
2600
  /**
@@ -2617,12 +2611,10 @@ declare const enum OPTION_GROUP_CHILD_TYPE {
2617
2611
  GROUP = 'group',
2618
2612
  }
2619
2613
 
2620
-
2621
2614
  /**
2622
2615
  * 选项所处位置枚举
2623
2616
  */
2624
- declare const enum OPTION_POSITION {
2625
-
2617
+ declare const enum OPTION_POSITION {
2626
2618
  /**
2627
2619
  * 常规位置
2628
2620
  */
@@ -2637,6 +2629,7 @@ declare const enum OPTION_POSITION {
2637
2629
  BOTTOM_FIXED = 'bottom-fixed',
2638
2630
  }
2639
2631
 
2632
+
2640
2633
  // -------------- types/outer/flow/branch.d.ts ---------------
2641
2634
 
2642
2635
  /**
@@ -2731,16 +2724,15 @@ interface ISinglePageGroupTable {
2731
2724
  /**
2732
2725
  * 表格标题
2733
2726
  */
2734
- title: string
2727
+ readonly title: string;
2735
2728
  /**
2736
2729
  * 表格头部数据
2737
2730
  */
2738
- header: ISinglePageGroupTableHeaderCell[]
2731
+ readonly header: ISinglePageGroupTableHeaderCell[];
2739
2732
  /**
2740
2733
  * 每一行的数据
2741
2734
  */
2742
- rows: ISinglePageGroupTableRow[]
2743
-
2735
+ readonly rows: ISinglePageGroupTableRow[];
2744
2736
  }
2745
2737
 
2746
2738
  /**
@@ -2750,11 +2742,11 @@ interface ISinglePageGroupTableHeaderCell {
2750
2742
  /**
2751
2743
  * 列的标题
2752
2744
  */
2753
- title: string
2745
+ readonly title: string;
2754
2746
  /**
2755
2747
  * 列的uuid
2756
2748
  */
2757
- uuid: string
2749
+ readonly uuid: string;
2758
2750
  }
2759
2751
 
2760
2752
  /**
@@ -2764,7 +2756,7 @@ interface ISinglePageGroupTableRow {
2764
2756
  /**
2765
2757
  * uuid
2766
2758
  */
2767
- uuid: string
2759
+ readonly uuid: string;
2768
2760
  /**
2769
2761
  * 行头需要显示的文本
2770
2762
  */
@@ -2772,7 +2764,7 @@ interface ISinglePageGroupTableRow {
2772
2764
  /**
2773
2765
  * 每一行所关联的问题,横向排布。
2774
2766
  */
2775
- cells: ISinglePageGroupTableRowCell[]
2767
+ readonly cells: ISinglePageGroupTableRowCell[];
2776
2768
  }
2777
2769
 
2778
2770
  /**
@@ -2781,16 +2773,17 @@ interface ISinglePageGroupTableRow {
2781
2773
  interface ISinglePageGroupTableRowCell {
2782
2774
  /**
2783
2775
  * cell 的 uuid
2784
- * 在有node 的情况下,会使用node的renderId
2776
+ * 在有node 的情况下,会使用node的renderId
2785
2777
  * 如果没有的家。则自动生成一个uuid
2786
2778
  */
2787
- uuid: string
2779
+ readonly uuid: string;
2788
2780
  /**
2789
2781
  * 单元格子内的关联问题
2790
2782
  */
2791
- node?: CFQuestion
2783
+ readonly node?: CFQuestion;
2792
2784
  }
2793
2785
 
2786
+
2794
2787
  // -------------- types/outer/flow/payload.d.ts ---------------
2795
2788
 
2796
2789
  /**
@@ -2847,7 +2840,7 @@ interface ICFSmallPayload {
2847
2840
  /**
2848
2841
  * 内置语言
2849
2842
  */
2850
- langPack?: { [key: string]: ICFLangStore }
2843
+ readonly langPack?: { [key: string]: ICFLangStore };
2851
2844
  /**
2852
2845
  * 已禁用的语言
2853
2846
  */
@@ -3112,7 +3105,7 @@ interface SignStrStr {
3112
3105
  * @ignore
3113
3106
  * 每个属性都是字符串的类型
3114
3107
  */
3115
- interface SignStrStrArr {
3108
+ interface SignStrStrArr {
3116
3109
  [key: string]: string[];
3117
3110
  }
3118
3111
 
@@ -3127,9 +3120,7 @@ type AllKeyToType<T, B> = {
3127
3120
  * @ignore
3128
3121
  * 把方法的返回值替换成指定类型
3129
3122
  */
3130
- type ReplaceReturnType<T extends (...a: any) => any, TNewReturn> = (
3131
- ...a: Parameters<T>
3132
- ) => TNewReturn;
3123
+ type ReplaceReturnType<T extends (...a: any) => any, TNewReturn> = (...a: Parameters<T>) => TNewReturn;
3133
3124
 
3134
3125
  /**
3135
3126
  * @ignore
@@ -3154,9 +3145,7 @@ type ShouldSetDefault<T> = Required<Pick<T, OptionalKeys<T>>>;
3154
3145
  /**
3155
3146
  * 动态UI组件类型
3156
3147
  */
3157
- interface CFUiComponent {
3158
-
3159
- }
3148
+ interface CFUiComponent {}
3160
3149
 
3161
3150
  /**
3162
3151
  * 动态UI组件组
@@ -3185,9 +3174,7 @@ interface Window {
3185
3174
  */
3186
3175
  interface CFMessageFormat {
3187
3176
  new (): CFMessageFormat;
3188
- compile(
3189
- message: string
3190
- ): {
3177
+ compile(message: string): {
3191
3178
  (options: any): string;
3192
3179
  };
3193
3180
  }
@@ -3307,7 +3294,6 @@ declare module '@choiceform/os-client-core/dist/web-core' {
3307
3294
  export = CFClient;
3308
3295
  }
3309
3296
 
3310
-
3311
3297
  /**
3312
3298
  * 分离的辅助包:填空自动提示查询功能包
3313
3299
  */
@@ -3506,7 +3492,6 @@ interface ICFNodeGroup {
3506
3492
  readonly displayDirection: GROUP_DISPLAY_DIRECTION;
3507
3493
  /**
3508
3494
  * 是否需要渲染成单页表格的样式
3509
- * @param
3510
3495
  */
3511
3496
  readonly renderAsTable?: boolean;
3512
3497
  /**
@@ -3809,7 +3794,7 @@ interface ICFOutputNodeMixin extends ICFNode {
3809
3794
  * 主输入输出类型节点
3810
3795
  * @ignore
3811
3796
  */
3812
- interface ICFInOutNodeMixin extends ICFInputNodeMixin, ICFOutputNodeMixin { }
3797
+ interface ICFInOutNodeMixin extends ICFInputNodeMixin, ICFOutputNodeMixin {}
3813
3798
 
3814
3799
  /**
3815
3800
  * 选项类型节点掺元
@@ -3917,11 +3902,11 @@ interface ICFBacktrackingNodeMixin extends ICFNode {
3917
3902
  */
3918
3903
  interface ICFSubjectNode
3919
3904
  extends ICFInOutNodeMixin,
3920
- ICFOptNodeMixin,
3921
- CFMediaNodeMixin,
3922
- ICFBacktrackingNodeMixin,
3923
- ICFValidationNodeMixin,
3924
- ICFOptGroupNodeMixin {
3905
+ ICFOptNodeMixin,
3906
+ CFMediaNodeMixin,
3907
+ ICFBacktrackingNodeMixin,
3908
+ ICFValidationNodeMixin,
3909
+ ICFOptGroupNodeMixin {
3925
3910
  /**
3926
3911
  * 是否为必答题
3927
3912
  * @ignore
@@ -4095,7 +4080,7 @@ interface ICFHeatMapNode extends ICFSubjectNode, ICFImageMapBase {
4095
4080
  * 填空节点
4096
4081
  * @ignore
4097
4082
  */
4098
- interface ICFFillNode extends ICFSubjectNode, ICFFillNodeMixin { }
4083
+ interface ICFFillNode extends ICFSubjectNode, ICFFillNodeMixin {}
4099
4084
 
4100
4085
  /**
4101
4086
  * 级联节点
@@ -4188,7 +4173,7 @@ interface ICFMenuNode extends ICFSubjectNode, ICFMultiSelectNodeMixin {
4188
4173
  * typescript会进行类型合并,这样在UI端就可以自己随意往其中塞数据,
4189
4174
  * 并且可以获得类型辨析功能
4190
4175
  */
4191
- interface IRateItemCustomData { }
4176
+ interface IRateItemCustomData {}
4192
4177
 
4193
4178
  /**
4194
4179
  * 拥有自定义图标的对象规范
@@ -4311,7 +4296,6 @@ interface ICFGiftNode extends ICFInputNodeMixin, IOriginCustomLogo {
4311
4296
  * @ignore
4312
4297
  */
4313
4298
  readonly needVerification: boolean;
4314
-
4315
4299
  }
4316
4300
 
4317
4301
  /**
@@ -4617,7 +4601,7 @@ interface ICFOptGroupNodeMixin extends ICFNode {
4617
4601
  * 如果有这个设置,那么就不使用原始的按照选项来排序,而是按照其他选项来分组
4618
4602
  * @ignore
4619
4603
  */
4620
- optionGroups?: ICFNodeOptGroup[]
4604
+ readonly optionGroups?: ICFNodeOptGroup[];
4621
4605
  /**
4622
4606
  * 选项和选项分组的关系
4623
4607
  * @ignore
@@ -4628,12 +4612,12 @@ interface ICFOptGroupNodeMixin extends ICFNode {
4628
4612
  * 该属性是树形递归结构,
4629
4613
  * 虽然当前所有题目的类型上都有该属性,
4630
4614
  * 但只有`选择题`,`图标选择题`,`图片选择题`,`拖拽打分题`,`图形打分题`,`填空题`,`数值分配题`等这几题需要支持组渲染
4631
- *
4615
+ *
4632
4616
  * 其他题目还是维持以前的状态。
4633
- *
4617
+ *
4634
4618
  * 使用分组渲染中,节点的布局设置中的控制,如果方便保留则保留,如果很麻烦则可以先不实现。
4635
4619
  */
4636
- optGroups?: ICFOptGroupChild[]
4620
+ readonly optGroups?: ICFOptGroupChild[];
4637
4621
  }
4638
4622
 
4639
4623
  //#endregion
@@ -4705,7 +4689,7 @@ interface CFNodeLayout extends CFThemeBase {
4705
4689
  /**
4706
4690
  * 选项组的children类型
4707
4691
  */
4708
- type ICFNodeOptGroupChild = ICFNodeOptGroup | ICFOptGroupOptChild
4692
+ type ICFNodeOptGroupChild = ICFNodeOptGroup | ICFOptGroupOptChild;
4709
4693
  interface ICFNodeOptGroup {
4710
4694
  /**
4711
4695
  * @ingore
@@ -4765,23 +4749,20 @@ interface IOptionGroupsRelationship {
4765
4749
  [groupUuid: string]: {
4766
4750
  readonly parentUuids: string[];
4767
4751
  readonly optionUuids: string[];
4768
- }
4752
+ };
4769
4753
  };
4770
4754
  }
4771
4755
 
4772
-
4773
-
4774
4756
  /* <-------------> */
4775
4757
 
4776
-
4777
4758
  /**
4778
4759
  * 选项分组
4779
4760
  */
4780
4761
  interface ICFReformOptGroupResult {
4781
- optGroups: ICFOptGroupChild[]
4762
+ readonly optGroups: ICFOptGroupChild[];
4782
4763
  }
4783
4764
 
4784
- type ICFOptGroupChild = (ICFOptGroup | CFOption);
4765
+ type ICFOptGroupChild = ICFOptGroup | CFOption;
4785
4766
 
4786
4767
  /**
4787
4768
  * 专门给答题端使用的数据结构,
@@ -4791,30 +4772,31 @@ interface ICFOptGroup {
4791
4772
  /**
4792
4773
  * 组标题
4793
4774
  */
4794
- groupTitle : string;
4775
+ readonly groupTitle: string;
4795
4776
  /**
4796
4777
  * 是否显示组标题,当为true时才在UI上显示标题
4797
4778
  */
4798
- showGroupTitle: boolean
4779
+ readonly showGroupTitle: boolean;
4799
4780
  /**
4800
4781
  * 选项组的设置
4801
4782
  */
4802
- type : OPTION_GROUP_CHILD_TYPE;
4783
+ readonly type: OPTION_GROUP_CHILD_TYPE;
4803
4784
  /**
4804
4785
  * 随机的模式
4805
4786
  * @ignore
4806
4787
  */
4807
- randomMode: OPTION_GROUP_RANDOM_MODE
4788
+ readonly randomMode: OPTION_GROUP_RANDOM_MODE;
4808
4789
  /**
4809
4790
  * 可能是子选项组,也可能是选项。看type == 'group'
4810
4791
  */
4811
- children: ICFOptGroupChild[]
4792
+ readonly children: ICFOptGroupChild[];
4812
4793
  /**
4813
4794
  * 当前组的层级,注意层级从1开始递增
4814
4795
  */
4815
4796
  readonly currentLevel: number;
4816
4797
  }
4817
4798
 
4799
+
4818
4800
  // -------------- types/outer/option/atcp.d.ts ---------------
4819
4801
 
4820
4802
  //#region 自动填充功能相关的说明
@@ -5061,7 +5043,7 @@ interface CFValidateOptBase {
5061
5043
  /**
5062
5044
  * 验证选项类型
5063
5045
  */
5064
- interface CFValidateOpt extends CFOption, CFValidateOptBase { }
5046
+ interface CFValidateOpt extends CFOption, CFValidateOptBase {}
5065
5047
 
5066
5048
  /**
5067
5049
  * 级联信息
@@ -5106,7 +5088,7 @@ interface CFCascade {
5106
5088
  readonly text?: string;
5107
5089
  /**
5108
5090
  * 是否被选中
5109
- *
5091
+ *
5110
5092
  */
5111
5093
  readonly selected: boolean;
5112
5094
  /**
@@ -5129,7 +5111,7 @@ interface CFCascade {
5129
5111
  * typescript会进行类型合并,这样在UI端就可以自己随意往其中塞数据,
5130
5112
  * 并且可以获得类型辨析功能
5131
5113
  */
5132
- interface IOptionCustomData { }
5114
+ interface IOptionCustomData {}
5133
5115
 
5134
5116
  /**
5135
5117
  * 通用选项类
@@ -5289,9 +5271,7 @@ interface CFOption extends ICFPort {
5289
5271
  /**
5290
5272
  * 图标题选项
5291
5273
  */
5292
- interface CFSelectIconOption extends CFOption, CFCustomIconOwner {
5293
-
5294
- }
5274
+ interface CFSelectIconOption extends CFOption, CFCustomIconOwner {}
5295
5275
 
5296
5276
  /**
5297
5277
  * 填空题选项
@@ -5364,7 +5344,7 @@ interface CFValueMarkOption extends CFOption {
5364
5344
  /**
5365
5345
  * 演示评价选项
5366
5346
  */
5367
- interface CFSlideRateOption extends CFOption, CFSelectImageOption { }
5347
+ interface CFSlideRateOption extends CFOption, CFSelectImageOption {}
5368
5348
 
5369
5349
  /**
5370
5350
  * 权重选项
@@ -5543,7 +5523,7 @@ interface CFHotSpotOption extends CFOption {
5543
5523
  /**
5544
5524
  * 图形列表
5545
5525
  */
5546
- graphs: CFHotSpotGraph[]
5526
+ readonly graphs: CFHotSpotGraph[];
5547
5527
  }
5548
5528
 
5549
5529
  /**
@@ -5582,11 +5562,11 @@ interface CFMatrixXOption extends CFOption {
5582
5562
  * auto: 自动适应
5583
5563
  * string: 单位可能会有 px 和 % 两种,需要UI端去适配
5584
5564
  */
5585
- width?: string | MATRIX_OPTION_DISPLAY_MODE
5565
+ readonly width?: string | MATRIX_OPTION_DISPLAY_MODE;
5586
5566
  /**
5587
5567
  * 二级标题
5588
5568
  */
5589
- extraTitle?: string
5569
+ readonly extraTitle?: string;
5590
5570
  }
5591
5571
 
5592
5572
  /**
@@ -5599,7 +5579,7 @@ interface CFMatrixYOption extends CFOption {
5599
5579
  * auto: 自动适应
5600
5580
  * string: 单位可能会有 px 和 % 两种,需要UI端去适配
5601
5581
  */
5602
- height?: string | MATRIX_OPTION_DISPLAY_MODE
5582
+ readonly height?: string | MATRIX_OPTION_DISPLAY_MODE;
5603
5583
  }
5604
5584
  /**
5605
5585
  * 最大差分评分记录
@@ -5669,7 +5649,7 @@ interface ICFOptionRefer extends IRawVarDetail {
5669
5649
  /**
5670
5650
  * @ignore
5671
5651
  */
5672
- interface ICFDataOption extends CFOption, CFSelectIconOption, CFSelectImageOption { }
5652
+ interface ICFDataOption extends CFOption, CFSelectIconOption, CFSelectImageOption {}
5673
5653
 
5674
5654
 
5675
5655
  // -------------- types/outer/option/mapping.d.ts ---------------
@@ -5873,7 +5853,7 @@ interface CFQuestion extends ICFNode, ICFTypeInfo {
5873
5853
  /**
5874
5854
  * 带选项的题目类型
5875
5855
  */
5876
- interface CFSubjectQuestion extends ICFSubjectNode, CFQuestion ,ICFOptGroupNodeMixin {
5856
+ interface CFSubjectQuestion extends ICFSubjectNode, CFQuestion, ICFOptGroupNodeMixin {
5877
5857
  /**
5878
5858
  * 选项头部信息
5879
5859
  * @ignore
@@ -6200,7 +6180,7 @@ interface CFFillQuestion extends ICFFillNode, CFSubjectQuestion {
6200
6180
  /**
6201
6181
  * 连续评价题
6202
6182
  * 基本内容请参考选择题[[CFSelectQuestion]]
6203
- *
6183
+ *
6204
6184
  * 其他选项的渲染方式和选择题一样
6205
6185
  *
6206
6186
  */
@@ -6285,8 +6265,6 @@ interface CFWeightQuestion extends CFSubjectQuestion {
6285
6265
  readonly distributeBy: WEIGHT_DISTRIBUTE_BY;
6286
6266
  }
6287
6267
 
6288
-
6289
-
6290
6268
  /**
6291
6269
  * 拖拽打分题
6292
6270
  * 基本内容请参考选择题[[CFSelectQuestion]]
@@ -6477,7 +6455,7 @@ interface CFCascadeQuestion extends ICFCascadeNode, CFSubjectQuestion {
6477
6455
  *
6478
6456
  *
6479
6457
  */
6480
- interface CFDescribePage extends CFQuestion, ICFValidationNodeMixin, CFMediaNodeMixin { }
6458
+ interface CFDescribePage extends CFQuestion, ICFValidationNodeMixin, CFMediaNodeMixin {}
6481
6459
 
6482
6460
  /**
6483
6461
  * 结束页面
@@ -6904,7 +6882,7 @@ interface ICFIntroMeta {
6904
6882
  readonly payload_digest: string;
6905
6883
  readonly diagram_url: string;
6906
6884
  readonly langs: ICFRemoteLang[];
6907
- readonly published_at:string;
6885
+ readonly published_at: string;
6908
6886
  }
6909
6887
 
6910
6888
  /**
@@ -7299,7 +7277,13 @@ interface ICFWxShareState {
7299
7277
  interface ICFRealtimeNode extends ICFStartNode, ICFGiftNode {
7300
7278
  readonly groupNodes?: CFQuestion[];
7301
7279
  readonly group: ICFNodeGroup;
7280
+ /**
7281
+ * 自定义logo文字
7282
+ * 继承的两个接口,定义是相反的(一个正常属性,一个忽略的属性),所以这里取一个存在的值,避免TS错误。
7283
+ */
7284
+ readonly logoText: string;
7302
7285
  }
7286
+
7303
7287
  /**
7304
7288
  * @ignore
7305
7289
  */
@@ -7419,10 +7403,10 @@ interface IOriginCustomLogo extends ICFCustomLogoBase {
7419
7403
  readonly logoImage?: CFImageInNode;
7420
7404
  }
7421
7405
 
7422
- interface ICFCustomLogo extends ICFCustomLogoBase{
7406
+ interface ICFCustomLogo extends ICFCustomLogoBase {
7423
7407
  /**
7424
- * 自定logo文字
7425
- */
7408
+ * 自定logo文字
7409
+ */
7426
7410
  readonly customText: string;
7427
7411
  /**
7428
7412
  * 自定logo图片地址
@@ -7451,7 +7435,6 @@ interface ICFLotteryResult {
7451
7435
  readonly rewardImage?: CFImageInNode;
7452
7436
  }
7453
7437
 
7454
-
7455
7438
  /**
7456
7439
  * @ignore
7457
7440
  */
@@ -7465,7 +7448,7 @@ interface ICFRedEnvelopeReward {
7465
7448
  config: {
7466
7449
  readonly gift_name: string;
7467
7450
  };
7468
- origin: ICFGiftNode
7451
+ readonly origin: ICFGiftNode;
7469
7452
  };
7470
7453
  readonly amount?: number;
7471
7454
  readonly type?: GIFT_TYPE;
@@ -7474,7 +7457,7 @@ interface ICFRedEnvelopeReward {
7474
7457
  /**
7475
7458
  * 缓存的奖励信息,由于奖励页面会重开页面,内存会丢失,预览模式下和自定义奖励模式下后台是不给后续接口的,
7476
7459
  * 需要自己缓存关键信息用于展示奖励页面,正好这两种模式下都不会切换设备,所以用缓存也可以。
7477
- *
7460
+ *
7478
7461
  * 正式答题的红包奖励会使用后台后续接口给的信息,不会使用这些缓存信息。
7479
7462
  */
7480
7463
  interface ICFCachedReward {
@@ -7482,7 +7465,6 @@ interface ICFCachedReward {
7482
7465
  readonly redEnvelope?: ICFRedEnvelopeReward;
7483
7466
  }
7484
7467
 
7485
-
7486
7468
  interface ICFCustomReward {
7487
7469
  readonly qrCode: string;
7488
7470
  readonly theme: CFTheme;
@@ -7506,7 +7488,7 @@ interface CFRewardState extends CFStateBase, ICFCustomLogo {
7506
7488
  readonly title: string;
7507
7489
  readonly phoneNumber: string;
7508
7490
  readonly rewardId: string;
7509
- images: CFImageInNode[]
7491
+ readonly images: CFImageInNode[];
7510
7492
  /**
7511
7493
  * 奖励类型,包含以下两种类型
7512
7494
  * 需要根据该类型渲染不同的内容.
@@ -7680,7 +7662,7 @@ interface CFStartState extends ICFTranMiniState, ICFStartMiniIntro, CFStateBase,
7680
7662
  /**
7681
7663
  * 开始节点的名称
7682
7664
  */
7683
- readonly nodeName:string;
7665
+ readonly nodeName: string;
7684
7666
  /**
7685
7667
  * 开始节点的布局设置
7686
7668
  */
@@ -7809,15 +7791,7 @@ interface ICFContext {
7809
7791
  * 答题页面数据
7810
7792
  * 使用[[CFSurveyState.nodes]]来渲染当前需要渲染的题目
7811
7793
  */
7812
- interface CFSurveyState
7813
- extends ICFTranMiniState,
7814
- ICFStartMiniState,
7815
- ICFStartMiniIntro,
7816
- CFStateBase {
7817
- /**
7818
- * 最新答案
7819
- */
7820
- readonly latestResult?: ICFResult;
7794
+ interface CFSurveyState extends ICFTranMiniState, ICFStartMiniState, ICFStartMiniIntro, CFStateBase {
7821
7795
  /**
7822
7796
  * 进入问卷的模式
7823
7797
  */
@@ -8044,12 +8018,11 @@ interface CFSurveyState
8044
8018
  */
8045
8019
  readonly resumeEnabled: boolean;
8046
8020
 
8047
-
8048
8021
  /**
8049
8022
  * 是否需要以表格的方式渲染问题,
8050
8023
  * 这个的优先级比 nodes 的要高
8051
8024
  */
8052
- groupTable?: ISinglePageGroupTable
8025
+ readonly groupTable?: ISinglePageGroupTable;
8053
8026
  }
8054
8027
 
8055
8028
 
@@ -8133,7 +8106,6 @@ interface ICFRemoteLang {
8133
8106
  readonly url: string;
8134
8107
  }
8135
8108
 
8136
-
8137
8109
  interface ICFLang {
8138
8110
  /**
8139
8111
  * 语言代号
@@ -8164,7 +8136,15 @@ interface CFLangTableItem {
8164
8136
  /**
8165
8137
  * 语言方向,不指定则认为是ltr
8166
8138
  */
8167
- direction?: 'rtl' | 'ltr'
8139
+ readonly direction?: 'rtl' | 'ltr';
8140
+ /**
8141
+ * 语言代码
8142
+ */
8143
+ readonly bdCode?: string;
8144
+ /**
8145
+ * 语言是否被禁用
8146
+ */
8147
+ readonly disabled?: boolean;
8168
8148
  }
8169
8149
 
8170
8150
  /**
@@ -8186,9 +8166,9 @@ interface ICFLangStore {
8186
8166
  }
8187
8167
 
8188
8168
  interface ICFLangNodeOptGroupStore {
8189
- [key: string]: {
8190
- groupTitle : string;
8191
- }
8169
+ [key: string]: {
8170
+ readonly groupTitle: string;
8171
+ };
8192
8172
  }
8193
8173
  /**
8194
8174
  * @ignore
@@ -8196,7 +8176,7 @@ interface ICFLangNodeOptGroupStore {
8196
8176
  interface ICFLangNodeStore {
8197
8177
  readonly questionText: string;
8198
8178
  readonly describe: string;
8199
- optionGroups: ICFLangNodeOptGroupStore
8179
+ readonly optionGroups: ICFLangNodeOptGroupStore;
8200
8180
  }
8201
8181
 
8202
8182
  /**
@@ -8684,7 +8664,6 @@ interface CFPreviewBookmark {
8684
8664
  /**
8685
8665
  * 删除某个预览历史书签
8686
8666
  * @param item 预览历史项
8687
- * @param event 时间参数
8688
8667
  */
8689
8668
  deleteBookmark(item: CFPreviewBookmarkData): Promise<void>;
8690
8669
  /**
@@ -9262,7 +9241,7 @@ interface CFUIEventHandler {
9262
9241
  /**
9263
9242
  * 输入手机号码后的回调
9264
9243
  * @param number 手机号码
9265
- * @param target: 关联的问题或奖励页面数据模型
9244
+ * @param question
9266
9245
  */
9267
9246
  handleInputPhone?(number: string, question: CFQuestion | CFRewardState): Promise<void>;
9268
9247
  /**
@@ -9308,11 +9287,7 @@ interface CFUIEventHandler {
9308
9287
  * @param question 所在题目
9309
9288
  * @returns 由逻辑层控制后真正使用的项目文字列表
9310
9289
  */
9311
- handleCascadeClick?(
9312
- index: number,
9313
- cascade: CFCascade,
9314
- question: CFCascadeQuestion
9315
- ): Promise<void>;
9290
+ handleCascadeClick?(index: number, cascade: CFCascade, question: CFCascadeQuestion): Promise<void>;
9316
9291
 
9317
9292
  /**
9318
9293
  * 级联菜单项被输入时的回调,适用题型:级联菜单题
@@ -9321,12 +9296,7 @@ interface CFUIEventHandler {
9321
9296
  * @param cascade 菜单项所在的级联组
9322
9297
  * @param question 所在题目
9323
9298
  */
9324
- handleCascadeInput?(
9325
- text: string,
9326
- index: number,
9327
- cascade: CFCascade,
9328
- question: CFCascadeQuestion
9329
- ): Promise<void>;
9299
+ handleCascadeInput?(text: string, index: number, cascade: CFCascade, question: CFCascadeQuestion): Promise<void>;
9330
9300
 
9331
9301
  /**
9332
9302
  * 获取验证码按钮点击回调,适用题目,验证节点,奖励节点
@@ -9343,23 +9313,15 @@ interface CFUIEventHandler {
9343
9313
  * @param option 所在的选项
9344
9314
  * @param question 所在的题目
9345
9315
  */
9346
- handleOptionInput?(
9347
- data: CFOptionInputData,
9348
- option: CFOption,
9349
- question: CFQuestion
9350
- ): Promise<void>;
9316
+ handleOptionInput?(data: CFOptionInputData, option: CFOption, question: CFQuestion): Promise<void>;
9351
9317
  /**
9352
9318
  * 选项辅助输入回调函数
9353
9319
  * @param data 输入数据
9354
9320
  * @param key 使用的辅助属性
9355
9321
  * @param option 选项
9322
+ * @param question
9356
9323
  */
9357
- handleOptionAssistInput?(
9358
- data: string,
9359
- key: CFAssistPropKeys,
9360
- option: CFOption,
9361
- question: CFQuestion
9362
- ): Promise<void>;
9324
+ handleOptionAssistInput?(data: string, key: CFAssistPropKeys, option: CFOption, question: CFQuestion): Promise<void>;
9363
9325
  /**
9364
9326
  * 自动提示的提示文字输入时触发
9365
9327
  * @param value 输入搜索关键字
@@ -9376,10 +9338,7 @@ interface CFUIEventHandler {
9376
9338
  * 对于图片热力题,是一个[[ICoords]]坐标
9377
9339
  * @param question 所在题目,或奖励页面数据模型
9378
9340
  */
9379
- handleQuestionInput?(
9380
- data: CFQuestionInputData,
9381
- question: CFQuestion | CFRewardState
9382
- ): Promise<void>;
9341
+ handleQuestionInput?(data: CFQuestionInputData, question: CFQuestion | CFRewardState): Promise<void>;
9383
9342
  /**
9384
9343
  * 定位失败回调函数
9385
9344
  * @param question 相关问题
@@ -9409,7 +9368,7 @@ interface CFUIEventHandler {
9409
9368
  uiIndexesMap: Map<CFSequenceOption, number> | [],
9410
9369
  sortNosMap: Map<CFSequenceOption, number>,
9411
9370
  question: CFSequenceQuestion,
9412
- sortTargetOpt: CFSequenceOption,
9371
+ sortTargetOpt: CFSequenceOption
9413
9372
  ): Promise<void>;
9414
9373
  /**
9415
9374
  * MaxDiff问题评分后的回调
@@ -9776,7 +9735,7 @@ interface ICFVarRaw {
9776
9735
  /**
9777
9736
  * 自带的语言包,为开始页面使用的时候可以自行翻译,而无需去加载翻译大包
9778
9737
  */
9779
- readonly i18n?:any;
9738
+ readonly i18n?: any;
9780
9739
  }
9781
9740
 
9782
9741
  /**
@@ -9932,7 +9891,7 @@ interface ICFInnerLoopVar {
9932
9891
  /**
9933
9892
  * 关联轮次
9934
9893
  */
9935
- round: ICFLoopVar
9894
+ readonly round: ICFLoopVar;
9936
9895
  }
9937
9896
  /**
9938
9897
  * @ignore
@@ -10072,7 +10031,7 @@ interface ICFLogicConfig {
10072
10031
  /**
10073
10032
  * 是否逻辑反转
10074
10033
  */
10075
- reverse : boolean;
10034
+ readonly reverse: boolean;
10076
10035
  }
10077
10036
  /**
10078
10037
  * 开关值
@@ -10165,7 +10124,6 @@ interface IRawVarIdentity {
10165
10124
  readonly innerLoopRoundId?: string;
10166
10125
  }
10167
10126
 
10168
-
10169
10127
  interface IRawVarLimit {
10170
10128
  /**
10171
10129
  * 过滤方式类型
@@ -10189,11 +10147,10 @@ interface IRawVarLimit {
10189
10147
  readonly limitRnd: string;
10190
10148
  }
10191
10149
 
10192
-
10193
10150
  interface IRawImgSize {
10194
10151
  /**
10195
- * 图片高度
10196
- */
10152
+ * 图片高度
10153
+ */
10197
10154
  readonly imgHeight?: number;
10198
10155
  /**
10199
10156
  * 图片宽度
@@ -10233,6 +10190,7 @@ interface IRawVarDetail {
10233
10190
  readonly config: IRawVarConfig;
10234
10191
  }
10235
10192
 
10193
+
10236
10194
  // -------------- types/outer/variable/rich-text.d.ts ---------------
10237
10195
 
10238
10196
  /**