@salesforce/lds-adapters-platform-flow 1.206.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 { deepFreeze, StoreKeyMap } from '@luvio/engine';
7
+ import { typeCheckScalars, deepFreeze, StoreKeyMap } from '@luvio/engine';
8
8
 
9
9
  const { keys: ObjectKeys$1, create: ObjectCreate$1, assign: ObjectAssign } = Object;
10
10
  const { isArray: ArrayIsArray$1 } = Array;
@@ -165,30 +165,14 @@ function createResourceParams$2(config) {
165
165
  }
166
166
  function typeCheckConfig$2(untrustedConfig) {
167
167
  const config = {};
168
- const untrustedConfig_flowDevName = untrustedConfig.flowDevName;
169
- if (typeof untrustedConfig_flowDevName === 'string') {
170
- config.flowDevName = untrustedConfig_flowDevName;
171
- }
172
- const untrustedConfig_flowVersionId = untrustedConfig.flowVersionId;
173
- if (typeof untrustedConfig_flowVersionId === 'string') {
174
- config.flowVersionId = untrustedConfig_flowVersionId;
175
- }
176
- const untrustedConfig_arguments = untrustedConfig.arguments;
177
- if (typeof untrustedConfig_arguments === 'string') {
178
- config.arguments = untrustedConfig_arguments;
179
- }
180
- const untrustedConfig_enableTrace = untrustedConfig.enableTrace;
181
- if (typeof untrustedConfig_enableTrace === 'boolean') {
182
- config.enableTrace = untrustedConfig_enableTrace;
183
- }
184
- const untrustedConfig_enableRollbackMode = untrustedConfig.enableRollbackMode;
185
- if (typeof untrustedConfig_enableRollbackMode === 'boolean') {
186
- config.enableRollbackMode = untrustedConfig_enableRollbackMode;
187
- }
188
- const untrustedConfig_debugAsUserId = untrustedConfig.debugAsUserId;
189
- if (typeof untrustedConfig_debugAsUserId === 'string') {
190
- config.debugAsUserId = untrustedConfig_debugAsUserId;
191
- }
168
+ typeCheckScalars(untrustedConfig, config, {
169
+ flowDevName: 0 /* String */,
170
+ flowVersionId: 0 /* String */,
171
+ arguments: 0 /* String */,
172
+ enableTrace: 1 /* Boolean */,
173
+ enableRollbackMode: 1 /* Boolean */,
174
+ debugAsUserId: 0 /* String */,
175
+ });
192
176
  return config;
193
177
  }
194
178
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -489,10 +473,9 @@ function createResourceParams(config) {
489
473
  }
490
474
  function typeCheckConfig(untrustedConfig) {
491
475
  const config = {};
492
- const untrustedConfig_pausedInterviewId = untrustedConfig.pausedInterviewId;
493
- if (typeof untrustedConfig_pausedInterviewId === 'string') {
494
- config.pausedInterviewId = untrustedConfig_pausedInterviewId;
495
- }
476
+ typeCheckScalars(untrustedConfig, config, {
477
+ pausedInterviewId: 0 /* String */,
478
+ });
496
479
  return config;
497
480
  }
498
481
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-flow",
3
- "version": "1.206.0",
3
+ "version": "1.208.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Flow Runtime APIs",
6
6
  "main": "dist/es/es2018/platform-flow.js",
package/sfdc/index.js CHANGED
@@ -14,7 +14,7 @@
14
14
  /* proxy-compat-disable */
15
15
  import { createLDSAdapter } from 'force/ldsBindings';
16
16
  import { withDefaultLuvio } from 'force/ldsEngine';
17
- import { deepFreeze, StoreKeyMap } from 'force/luvioEngine';
17
+ import { deepFreeze, StoreKeyMap, typeCheckScalars } from 'force/luvioEngine';
18
18
 
19
19
  const { keys: ObjectKeys$1, create: ObjectCreate$1, assign: ObjectAssign } = Object;
20
20
  const { isArray: ArrayIsArray$1 } = Array;
@@ -378,10 +378,9 @@ function createResourceParams$1(config) {
378
378
  }
379
379
  function typeCheckConfig$1(untrustedConfig) {
380
380
  const config = {};
381
- const untrustedConfig_pausedInterviewId = untrustedConfig.pausedInterviewId;
382
- if (typeof untrustedConfig_pausedInterviewId === 'string') {
383
- config.pausedInterviewId = untrustedConfig_pausedInterviewId;
384
- }
381
+ typeCheckScalars(untrustedConfig, config, {
382
+ pausedInterviewId: 0 /* String */,
383
+ });
385
384
  return config;
386
385
  }
387
386
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -482,30 +481,14 @@ function createResourceParams(config) {
482
481
  }
483
482
  function typeCheckConfig(untrustedConfig) {
484
483
  const config = {};
485
- const untrustedConfig_flowDevName = untrustedConfig.flowDevName;
486
- if (typeof untrustedConfig_flowDevName === 'string') {
487
- config.flowDevName = untrustedConfig_flowDevName;
488
- }
489
- const untrustedConfig_flowVersionId = untrustedConfig.flowVersionId;
490
- if (typeof untrustedConfig_flowVersionId === 'string') {
491
- config.flowVersionId = untrustedConfig_flowVersionId;
492
- }
493
- const untrustedConfig_arguments = untrustedConfig.arguments;
494
- if (typeof untrustedConfig_arguments === 'string') {
495
- config.arguments = untrustedConfig_arguments;
496
- }
497
- const untrustedConfig_enableTrace = untrustedConfig.enableTrace;
498
- if (typeof untrustedConfig_enableTrace === 'boolean') {
499
- config.enableTrace = untrustedConfig_enableTrace;
500
- }
501
- const untrustedConfig_enableRollbackMode = untrustedConfig.enableRollbackMode;
502
- if (typeof untrustedConfig_enableRollbackMode === 'boolean') {
503
- config.enableRollbackMode = untrustedConfig_enableRollbackMode;
504
- }
505
- const untrustedConfig_debugAsUserId = untrustedConfig.debugAsUserId;
506
- if (typeof untrustedConfig_debugAsUserId === 'string') {
507
- config.debugAsUserId = untrustedConfig_debugAsUserId;
508
- }
484
+ typeCheckScalars(untrustedConfig, config, {
485
+ flowDevName: 0 /* String */,
486
+ flowVersionId: 0 /* String */,
487
+ arguments: 0 /* String */,
488
+ enableTrace: 1 /* Boolean */,
489
+ enableRollbackMode: 1 /* Boolean */,
490
+ debugAsUserId: 0 /* String */,
491
+ });
509
492
  return config;
510
493
  }
511
494
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -568,4 +551,4 @@ withDefaultLuvio((luvio) => {
568
551
  });
569
552
 
570
553
  export { navigateFlow, resumeFlow, startFlow };
571
- // version: 1.206.0-56fe82b41
554
+ // version: 1.208.0-027673bd6