@choiceform/os-client-core 3.6.69 → 3.6.71

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
@@ -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
 
@@ -2176,6 +2185,20 @@ interface CCIValidateResult extends CCIRequestResult {
2176
2185
  dueToOption?: CCOption;
2177
2186
  }
2178
2187
 
2188
+ interface RequestArbitraryParams {
2189
+ state: CCSurveyState;
2190
+ request: CFPDRequest;
2191
+ customParam: SignStrStr;
2192
+ /**
2193
+ * silent 如果为true,则发生错误后不会报告出来
2194
+ */
2195
+ silent: boolean;
2196
+ /**
2197
+ * 是否调用 combineSystemData 附加系统请求参数
2198
+ */
2199
+ shouldCombineSystem?: boolean;
2200
+ }
2201
+
2179
2202
 
2180
2203
  // -------------- types/outer/global.d.ts ---------------
2181
2204
 
@@ -3709,6 +3732,14 @@ interface CCLogicNode extends CCBNode {
3709
3732
  logicResult: boolean;
3710
3733
  }
3711
3734
 
3735
+ /**
3736
+ * 虚拟唯一性验证题
3737
+ */
3738
+ interface CCUniquenessVerificationNode extends CCBNode {
3739
+ origin: CFPDUniquenessVerificationNode;
3740
+ verificationResult: boolean;
3741
+ }
3742
+
3712
3743
 
3713
3744
  // -------------- types/outer/node/upload.d.ts ---------------
3714
3745
 
@@ -4455,6 +4486,7 @@ interface CCISurveyMeta {
4455
4486
  langs: CCIemoteLang[];
4456
4487
  published_at: string;
4457
4488
  start_auto?: boolean | null;
4489
+ verify_uniqueness_uri?: CCUniquenessUri | null;
4458
4490
  }
4459
4491
 
4460
4492
  /**
@@ -4480,6 +4512,7 @@ interface CCIParsedStartMeta extends CCIVarRelatedDependency {
4480
4512
  disabledLangs: string[];
4481
4513
  publishedAt: string;
4482
4514
  presetRichStyles: CFPDPresetRichStyle[];
4515
+ uniquenessVerification?: CFPDUniquenessVerificationConfig;
4483
4516
  }
4484
4517
 
4485
4518
  /**
@@ -4538,6 +4571,11 @@ interface CCICollector {
4538
4571
  sampler_config: { [key in DATA_TRANSFER_NAME]: string };
4539
4572
  }
4540
4573
 
4574
+ interface CCUniquenessUri {
4575
+ method: REQ_TYPE.GET | REQ_TYPE.POST;
4576
+ url: string;
4577
+ }
4578
+
4541
4579
  /**
4542
4580
  * @ignore
4543
4581
  */
@@ -5583,6 +5621,14 @@ interface CCSurveyState extends CCCTranMiniState, CCIStartMiniState, CCMiniState
5583
5621
  * 这个的优先级比 nodes 的要高
5584
5622
  */
5585
5623
  groupTable?: CCSinglePageGroupTable;
5624
+ /**
5625
+ * 唯一性验证服务真正的请求地址和方法
5626
+ */
5627
+ verifyUniquenessUri?: CCUniquenessUri | null;
5628
+ /**
5629
+ * 唯一性验证配置
5630
+ */
5631
+ uniquenessVerification?: CFPDUniquenessVerificationConfig;
5586
5632
  }
5587
5633
 
5588
5634
 
@@ -7250,7 +7296,7 @@ declare const enum REQ_TYPE {
7250
7296
  /**
7251
7297
  * Patch 请求
7252
7298
  */
7253
- PATCH = "patch"
7299
+ PATCH = "patch",
7254
7300
  }
7255
7301
 
7256
7302
  /**
@@ -7635,6 +7681,11 @@ declare const enum LANG_LOCALE {
7635
7681
  */
7636
7682
  NL_NL = "nl_nl",
7637
7683
 
7684
+ /**
7685
+ * 挪威语
7686
+ */
7687
+ NO = "no",
7688
+
7638
7689
  /**
7639
7690
  * 【已使用】波兰语(波兰)母语使用人数5500万(2010年)
7640
7691
  */
@@ -7770,6 +7821,10 @@ declare const enum NODE_TYPE {
7770
7821
  * 逻辑节点
7771
7822
  */
7772
7823
  LOGIC = "logic",
7824
+ /**
7825
+ * 唯一性验证节点
7826
+ */
7827
+ UNIQUENESS_VERIFICATION = "uniqueness_verification",
7773
7828
  /**
7774
7829
  * 循环节点
7775
7830
  */
@@ -8583,20 +8638,19 @@ declare const enum OPTION_POSITION {
8583
8638
  /**
8584
8639
  * 置左
8585
8640
  */
8586
- LEFT_FIXED = "left-fixed",
8641
+ LEFT_FIXED = "left-fixed",
8587
8642
 
8588
8643
  /**
8589
8644
  * 置右边
8590
8645
  */
8591
- RIGHT_FIXED = "right-fixed",
8592
-
8646
+ RIGHT_FIXED = "right-fixed",
8593
8647
  }
8594
8648
 
8595
8649
 
8596
8650
  // -------------- node_modules/@choiceform/os-cfpd/types/index.d.ts ---------------
8597
8651
 
8598
8652
  /**
8599
- * 问卷数据专有基础卫星,只有完整问卷,部分问卷共用该数据结构
8653
+ * 问卷数据专有基础类型,只有完整问卷,部分问卷共用该数据结构
8600
8654
  * 问卷模块的数据结构中关键的几个属性是有后台控制的,命名风格不一致,另外定义了。
8601
8655
  */
8602
8656
  interface CFPDSurveyUniqueBase {
@@ -8623,6 +8677,21 @@ interface CFPDSurveyUniqueBase {
8623
8677
  };
8624
8678
  }
8625
8679
 
8680
+ interface CFPDUniquenessVerificationConfig {
8681
+ /**
8682
+ * 是否启用
8683
+ */
8684
+ enabled: boolean;
8685
+ /**
8686
+ * 验证服务 code
8687
+ */
8688
+ code: string;
8689
+ /**
8690
+ * 验证服务参数
8691
+ */
8692
+ params: CFPDParam[];
8693
+ }
8694
+
8626
8695
  /**
8627
8696
  * 问卷数据通用基础,完整问卷,部分问卷,问卷模块都共用该结构
8628
8697
  */
@@ -8649,7 +8718,10 @@ interface CFPDSurveyCommonBase {
8649
8718
  * 变量列表
8650
8719
  */
8651
8720
  variables: CFPDVar[];
8652
-
8721
+ /**
8722
+ * 唯一性验证配置内容
8723
+ */
8724
+ uniquenessVerification?: CFPDUniquenessVerificationConfig;
8653
8725
  /**
8654
8726
  * 预设样式选项列表
8655
8727
  */
@@ -9277,6 +9349,10 @@ interface CFPDEndNode
9277
9349
  * 最小答题时间限制
9278
9350
  */
9279
9351
  minTime: number;
9352
+ /**
9353
+ * 是否开启唯一性验证
9354
+ */
9355
+ doUniquenessVerification?: boolean;
9280
9356
  }
9281
9357
 
9282
9358
 
@@ -10811,6 +10887,19 @@ interface CFPDJudgement {
10811
10887
  request?: CFPDRequest;
10812
10888
  }
10813
10889
 
10890
+ // -------------- node_modules/@choiceform/os-cfpd/types/node/uniqueness-verification.d.ts ---------------
10891
+
10892
+ /**
10893
+ * 唯一性验证节点 JSON 数据结构
10894
+ */
10895
+ interface CFPDUniquenessVerificationNode extends CFPDBNode, CFPDMInputOutputNode {
10896
+ /**
10897
+ * 否定输出口
10898
+ */
10899
+ outputN: CFPDPort;
10900
+ }
10901
+
10902
+
10814
10903
  // -------------- node_modules/@choiceform/os-cfpd/types/node/upload.d.ts ---------------
10815
10904
 
10816
10905
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@choiceform/os-client-core",
3
- "version": "3.6.69",
3
+ "version": "3.6.71",
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,7 +75,7 @@
75
75
  "ua-parser-js": "^0.7.20"
76
76
  },
77
77
  "dependencies": {
78
- "@choiceform/os-cfpd": "3.2.18",
78
+ "@choiceform/os-cfpd": "3.2.20",
79
79
  "ts-loader": "^9.5.1",
80
80
  "typescript": "^5.3.3",
81
81
  "webpack": "^5.90.1",