@salesforce/lds-adapters-platform-flow-builder 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, typeCheckScalars, StoreKeyMap } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -782,18 +782,11 @@ function keyBuilder(luvio, config) {
782
782
  }
783
783
  function typeCheckConfig(untrustedConfig) {
784
784
  const config = {};
785
- const untrustedConfig_flowProcessType = untrustedConfig.flowProcessType;
786
- if (typeof untrustedConfig_flowProcessType === 'string') {
787
- config.flowProcessType = untrustedConfig_flowProcessType;
788
- }
789
- const untrustedConfig_flowTriggerType = untrustedConfig.flowTriggerType;
790
- if (typeof untrustedConfig_flowTriggerType === 'string') {
791
- config.flowTriggerType = untrustedConfig_flowTriggerType;
792
- }
793
- const untrustedConfig_recordTriggerType = untrustedConfig.recordTriggerType;
794
- if (typeof untrustedConfig_recordTriggerType === 'string') {
795
- config.recordTriggerType = untrustedConfig_recordTriggerType;
796
- }
785
+ typeCheckScalars(untrustedConfig, config, {
786
+ flowProcessType: 0 /* String */,
787
+ flowTriggerType: 0 /* String */,
788
+ recordTriggerType: 0 /* String */,
789
+ });
797
790
  return config;
798
791
  }
799
792
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-flow-builder",
3
- "version": "1.207.0",
3
+ "version": "1.208.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "API related to flow builder",
6
6
  "main": "dist/es/es2018/platform-flow-builder.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, typeCheckScalars, StoreKeyMap } from 'force/luvioEngine';
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
20
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -792,18 +792,11 @@ function keyBuilder(luvio, config) {
792
792
  }
793
793
  function typeCheckConfig(untrustedConfig) {
794
794
  const config = {};
795
- const untrustedConfig_flowProcessType = untrustedConfig.flowProcessType;
796
- if (typeof untrustedConfig_flowProcessType === 'string') {
797
- config.flowProcessType = untrustedConfig_flowProcessType;
798
- }
799
- const untrustedConfig_flowTriggerType = untrustedConfig.flowTriggerType;
800
- if (typeof untrustedConfig_flowTriggerType === 'string') {
801
- config.flowTriggerType = untrustedConfig_flowTriggerType;
802
- }
803
- const untrustedConfig_recordTriggerType = untrustedConfig.recordTriggerType;
804
- if (typeof untrustedConfig_recordTriggerType === 'string') {
805
- config.recordTriggerType = untrustedConfig_recordTriggerType;
806
- }
795
+ typeCheckScalars(untrustedConfig, config, {
796
+ flowProcessType: 0 /* String */,
797
+ flowTriggerType: 0 /* String */,
798
+ recordTriggerType: 0 /* String */,
799
+ });
807
800
  return config;
808
801
  }
809
802
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -913,4 +906,4 @@ withDefaultLuvio((luvio) => {
913
906
  });
914
907
 
915
908
  export { getRules, getRules_imperative };
916
- // version: 1.207.0-d542abb81
909
+ // version: 1.208.0-027673bd6