@salesforce/lds-adapters-industries-assessment 1.207.0 → 1.208.0

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.
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, deepFreeze, StoreKeyMap } from '@luvio/engine';
7
+ import { serializeStructuredKey, deepFreeze, StoreKeyMap, typeCheckScalars } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -901,10 +901,9 @@ function keyBuilder$1(luvio, config) {
901
901
  }
902
902
  function typeCheckConfig$1(untrustedConfig) {
903
903
  const config = {};
904
- const untrustedConfig_signature = untrustedConfig.signature;
905
- if (typeof untrustedConfig_signature === 'string') {
906
- config.signature = untrustedConfig_signature;
907
- }
904
+ typeCheckScalars(untrustedConfig, config, {
905
+ signature: 0 /* String */,
906
+ });
908
907
  return config;
909
908
  }
910
909
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -1622,10 +1621,9 @@ function createResourceParams(config) {
1622
1621
  }
1623
1622
  function typeCheckConfig(untrustedConfig) {
1624
1623
  const config = {};
1625
- const untrustedConfig_contextId = untrustedConfig.contextId;
1626
- if (typeof untrustedConfig_contextId === 'string') {
1627
- config.contextId = untrustedConfig_contextId;
1628
- }
1624
+ typeCheckScalars(untrustedConfig, config, {
1625
+ contextId: 0 /* String */,
1626
+ });
1629
1627
  const untrustedConfig_AssessmentContextSearchData = untrustedConfig.AssessmentContextSearchData;
1630
1628
  const referenceAssessmentContextSearchInputRepresentationValidationError = validate$3(untrustedConfig_AssessmentContextSearchData);
1631
1629
  if (referenceAssessmentContextSearchInputRepresentationValidationError === null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-assessment",
3
- "version": "1.207.0",
3
+ "version": "1.208.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Healthcloud assessment for patients",
6
6
  "main": "dist/es/es2018/industries-assessment.js",
package/sfdc/index.js CHANGED
@@ -14,7 +14,7 @@
14
14
  /* proxy-compat-disable */
15
15
  import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
16
16
  import { withDefaultLuvio } from 'force/ldsEngine';
17
- import { serializeStructuredKey, deepFreeze, StoreKeyMap } from 'force/luvioEngine';
17
+ import { serializeStructuredKey, deepFreeze, StoreKeyMap, typeCheckScalars } from 'force/luvioEngine';
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
20
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -918,10 +918,9 @@ function keyBuilder$1(luvio, config) {
918
918
  }
919
919
  function typeCheckConfig$1(untrustedConfig) {
920
920
  const config = {};
921
- const untrustedConfig_signature = untrustedConfig.signature;
922
- if (typeof untrustedConfig_signature === 'string') {
923
- config.signature = untrustedConfig_signature;
924
- }
921
+ typeCheckScalars(untrustedConfig, config, {
922
+ signature: 0 /* String */,
923
+ });
925
924
  return config;
926
925
  }
927
926
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -1673,10 +1672,9 @@ function createResourceParams(config) {
1673
1672
  }
1674
1673
  function typeCheckConfig(untrustedConfig) {
1675
1674
  const config = {};
1676
- const untrustedConfig_contextId = untrustedConfig.contextId;
1677
- if (typeof untrustedConfig_contextId === 'string') {
1678
- config.contextId = untrustedConfig_contextId;
1679
- }
1675
+ typeCheckScalars(untrustedConfig, config, {
1676
+ contextId: 0 /* String */,
1677
+ });
1680
1678
  const untrustedConfig_AssessmentContextSearchData = untrustedConfig.AssessmentContextSearchData;
1681
1679
  const referenceAssessmentContextSearchInputRepresentationValidationError = validate$3(untrustedConfig_AssessmentContextSearchData);
1682
1680
  if (referenceAssessmentContextSearchInputRepresentationValidationError === null) {
@@ -1766,4 +1764,4 @@ withDefaultLuvio((luvio) => {
1766
1764
  });
1767
1765
 
1768
1766
  export { getAssessmentEnvelope, getAssessmentEnvelopeNotifyChange, getAssessmentEnvelope_imperative, notifyAssessmentUpdateAvailable, postAssessmentContextSearch, postAssessmentEnvelope };
1769
- // version: 1.207.0-d542abb81
1767
+ // version: 1.208.0-027673bd6