@salesforce/lds-adapters-industries-actionplan 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$1, create: ObjectCreate$1 } = Object;
@@ -265,26 +265,13 @@ function keyBuilder$4(luvio, config) {
265
265
  }
266
266
  function typeCheckConfig$2(untrustedConfig) {
267
267
  const config = {};
268
- const untrustedConfig_actionPlanType = untrustedConfig.actionPlanType;
269
- if (typeof untrustedConfig_actionPlanType === 'string') {
270
- config.actionPlanType = untrustedConfig_actionPlanType;
271
- }
272
- const untrustedConfig_limit = untrustedConfig.limit;
273
- if (typeof untrustedConfig_limit === 'number' && Math.floor(untrustedConfig_limit) === untrustedConfig_limit) {
274
- config.limit = untrustedConfig_limit;
275
- }
276
- const untrustedConfig_order = untrustedConfig.order;
277
- if (typeof untrustedConfig_order === 'string') {
278
- config.order = untrustedConfig_order;
279
- }
280
- const untrustedConfig_orderingParam = untrustedConfig.orderingParam;
281
- if (typeof untrustedConfig_orderingParam === 'string') {
282
- config.orderingParam = untrustedConfig_orderingParam;
283
- }
284
- const untrustedConfig_targetId = untrustedConfig.targetId;
285
- if (typeof untrustedConfig_targetId === 'string') {
286
- config.targetId = untrustedConfig_targetId;
287
- }
268
+ typeCheckScalars(untrustedConfig, config, {
269
+ actionPlanType: 0 /* String */,
270
+ limit: 3 /* Integer */,
271
+ order: 0 /* String */,
272
+ orderingParam: 0 /* String */,
273
+ targetId: 0 /* String */,
274
+ });
288
275
  return config;
289
276
  }
290
277
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -704,14 +691,10 @@ function keyBuilder$2(luvio, config) {
704
691
  }
705
692
  function typeCheckConfig$1(untrustedConfig) {
706
693
  const config = {};
707
- const untrustedConfig_actionPlanId = untrustedConfig.actionPlanId;
708
- if (typeof untrustedConfig_actionPlanId === 'string') {
709
- config.actionPlanId = untrustedConfig_actionPlanId;
710
- }
711
- const untrustedConfig_limit = untrustedConfig.limit;
712
- if (typeof untrustedConfig_limit === 'number' && Math.floor(untrustedConfig_limit) === untrustedConfig_limit) {
713
- config.limit = untrustedConfig_limit;
714
- }
694
+ typeCheckScalars(untrustedConfig, config, {
695
+ actionPlanId: 0 /* String */,
696
+ limit: 3 /* Integer */,
697
+ });
715
698
  return config;
716
699
  }
717
700
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -1005,10 +988,9 @@ function keyBuilder(luvio, config) {
1005
988
  }
1006
989
  function typeCheckConfig(untrustedConfig) {
1007
990
  const config = {};
1008
- const untrustedConfig_actionPlanId = untrustedConfig.actionPlanId;
1009
- if (typeof untrustedConfig_actionPlanId === 'string') {
1010
- config.actionPlanId = untrustedConfig_actionPlanId;
1011
- }
991
+ typeCheckScalars(untrustedConfig, config, {
992
+ actionPlanId: 0 /* String */,
993
+ });
1012
994
  return config;
1013
995
  }
1014
996
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-actionplan",
3
- "version": "1.207.0",
3
+ "version": "1.208.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/es/es2018/industries-actionplan.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$1, create: ObjectCreate$1 } = Object;
@@ -401,14 +401,10 @@ function keyBuilder$4(luvio, config) {
401
401
  }
402
402
  function typeCheckConfig$2(untrustedConfig) {
403
403
  const config = {};
404
- const untrustedConfig_actionPlanId = untrustedConfig.actionPlanId;
405
- if (typeof untrustedConfig_actionPlanId === 'string') {
406
- config.actionPlanId = untrustedConfig_actionPlanId;
407
- }
408
- const untrustedConfig_limit = untrustedConfig.limit;
409
- if (typeof untrustedConfig_limit === 'number' && Math.floor(untrustedConfig_limit) === untrustedConfig_limit) {
410
- config.limit = untrustedConfig_limit;
411
- }
404
+ typeCheckScalars(untrustedConfig, config, {
405
+ actionPlanId: 0 /* String */,
406
+ limit: 3 /* Integer */,
407
+ });
412
408
  return config;
413
409
  }
414
410
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -702,10 +698,9 @@ function keyBuilder$2(luvio, config) {
702
698
  }
703
699
  function typeCheckConfig$1(untrustedConfig) {
704
700
  const config = {};
705
- const untrustedConfig_actionPlanId = untrustedConfig.actionPlanId;
706
- if (typeof untrustedConfig_actionPlanId === 'string') {
707
- config.actionPlanId = untrustedConfig_actionPlanId;
708
- }
701
+ typeCheckScalars(untrustedConfig, config, {
702
+ actionPlanId: 0 /* String */,
703
+ });
709
704
  return config;
710
705
  }
711
706
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -999,26 +994,13 @@ function keyBuilder(luvio, config) {
999
994
  }
1000
995
  function typeCheckConfig(untrustedConfig) {
1001
996
  const config = {};
1002
- const untrustedConfig_actionPlanType = untrustedConfig.actionPlanType;
1003
- if (typeof untrustedConfig_actionPlanType === 'string') {
1004
- config.actionPlanType = untrustedConfig_actionPlanType;
1005
- }
1006
- const untrustedConfig_limit = untrustedConfig.limit;
1007
- if (typeof untrustedConfig_limit === 'number' && Math.floor(untrustedConfig_limit) === untrustedConfig_limit) {
1008
- config.limit = untrustedConfig_limit;
1009
- }
1010
- const untrustedConfig_order = untrustedConfig.order;
1011
- if (typeof untrustedConfig_order === 'string') {
1012
- config.order = untrustedConfig_order;
1013
- }
1014
- const untrustedConfig_orderingParam = untrustedConfig.orderingParam;
1015
- if (typeof untrustedConfig_orderingParam === 'string') {
1016
- config.orderingParam = untrustedConfig_orderingParam;
1017
- }
1018
- const untrustedConfig_targetId = untrustedConfig.targetId;
1019
- if (typeof untrustedConfig_targetId === 'string') {
1020
- config.targetId = untrustedConfig_targetId;
1021
- }
997
+ typeCheckScalars(untrustedConfig, config, {
998
+ actionPlanType: 0 /* String */,
999
+ limit: 3 /* Integer */,
1000
+ order: 0 /* String */,
1001
+ orderingParam: 0 /* String */,
1002
+ targetId: 0 /* String */,
1003
+ });
1022
1004
  return config;
1023
1005
  }
1024
1006
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -1144,4 +1126,4 @@ withDefaultLuvio((luvio) => {
1144
1126
  });
1145
1127
 
1146
1128
  export { getActionPlanItems, getActionPlanItems_imperative, getActionPlanStatusInfo, getActionPlanStatusInfo_imperative, getActionPlans, getActionPlans_imperative };
1147
- // version: 1.207.0-d542abb81
1129
+ // version: 1.208.0-027673bd6