@choiceform/os-client-core 3.6.70 → 3.6.72

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
@@ -710,7 +710,7 @@ interface CCSetupOptions {
710
710
  *
711
711
  * @param message 消息内容
712
712
  */
713
- notify: (message: string) => void;
713
+ notify: (message: string, extra?: CCIValidateResult) => void;
714
714
  /**
715
715
  * 弹框方式提示消息,比提示消息更重要一些,需要弹框,并且用户点击后才消失
716
716
  * @param message
@@ -1911,6 +1911,11 @@ interface CCIResult {
1911
1911
  * 后台发请求的时候所需要的参数
1912
1912
  */
1913
1913
  backend_request_params: SignStrStr;
1914
+
1915
+ /**
1916
+ * 唯一性验证相关参数
1917
+ */
1918
+ verification_params?: Record<string, string>;
1914
1919
  }
1915
1920
 
1916
1921
 
@@ -2133,6 +2138,10 @@ interface CCISurveyPayload {
2133
2138
  * 预设样式
2134
2139
  */
2135
2140
  presetRichStyles?: CFPDPresetRichStyle[];
2141
+ /**
2142
+ * 唯一性验证配置
2143
+ */
2144
+ uniquenessVerification: CFPDUniquenessVerificationConfig;
2136
2145
  }
2137
2146
 
2138
2147
 
@@ -2174,6 +2183,24 @@ interface CCIValidateResult extends CCIRequestResult {
2174
2183
  * 验证未通过归咎的选项
2175
2184
  */
2176
2185
  dueToOption?: CCOption;
2186
+ /**
2187
+ * 一些消息对应的唯一标识,方便篡改提示消息
2188
+ */
2189
+ messageCode?: string;
2190
+ }
2191
+
2192
+ interface RequestArbitraryParams {
2193
+ state: CCSurveyState;
2194
+ request: CFPDRequest;
2195
+ customParam: SignStrStr;
2196
+ /**
2197
+ * silent 如果为true,则发生错误后不会报告出来
2198
+ */
2199
+ silent: boolean;
2200
+ /**
2201
+ * 是否调用 combineSystemData 附加系统请求参数
2202
+ */
2203
+ shouldCombineSystem?: boolean;
2177
2204
  }
2178
2205
 
2179
2206
 
@@ -3709,6 +3736,14 @@ interface CCLogicNode extends CCBNode {
3709
3736
  logicResult: boolean;
3710
3737
  }
3711
3738
 
3739
+ /**
3740
+ * 虚拟唯一性验证题
3741
+ */
3742
+ interface CCUniquenessVerificationNode extends CCBNode {
3743
+ origin: CFPDUniquenessVerificationNode;
3744
+ verificationResult: boolean;
3745
+ }
3746
+
3712
3747
 
3713
3748
  // -------------- types/outer/node/upload.d.ts ---------------
3714
3749
 
@@ -4455,6 +4490,7 @@ interface CCISurveyMeta {
4455
4490
  langs: CCIemoteLang[];
4456
4491
  published_at: string;
4457
4492
  start_auto?: boolean | null;
4493
+ verify_uniqueness_uri?: CCUniquenessUri | null;
4458
4494
  }
4459
4495
 
4460
4496
  /**
@@ -4480,6 +4516,7 @@ interface CCIParsedStartMeta extends CCIVarRelatedDependency {
4480
4516
  disabledLangs: string[];
4481
4517
  publishedAt: string;
4482
4518
  presetRichStyles: CFPDPresetRichStyle[];
4519
+ uniquenessVerification?: CFPDUniquenessVerificationConfig;
4483
4520
  }
4484
4521
 
4485
4522
  /**
@@ -4538,6 +4575,11 @@ interface CCICollector {
4538
4575
  sampler_config: { [key in DATA_TRANSFER_NAME]: string };
4539
4576
  }
4540
4577
 
4578
+ interface CCUniquenessUri {
4579
+ method: REQ_TYPE.GET | REQ_TYPE.POST;
4580
+ url: string;
4581
+ }
4582
+
4541
4583
  /**
4542
4584
  * @ignore
4543
4585
  */
@@ -5583,6 +5625,14 @@ interface CCSurveyState extends CCCTranMiniState, CCIStartMiniState, CCMiniState
5583
5625
  * 这个的优先级比 nodes 的要高
5584
5626
  */
5585
5627
  groupTable?: CCSinglePageGroupTable;
5628
+ /**
5629
+ * 唯一性验证服务真正的请求地址和方法
5630
+ */
5631
+ verifyUniquenessUri?: CCUniquenessUri | null;
5632
+ /**
5633
+ * 唯一性验证配置
5634
+ */
5635
+ uniquenessVerification?: CFPDUniquenessVerificationConfig;
5586
5636
  }
5587
5637
 
5588
5638
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@choiceform/os-client-core",
3
- "version": "3.6.70",
3
+ "version": "3.6.72",
4
4
  "description": "choiceform survey client core",
5
5
  "main": "./dist/core.js",
6
6
  "repository": "https://github.com/choice-form/os-client-core",