@salesforce/lds-adapters-industries-dataloading 1.207.0 → 1.208.1

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;
@@ -214,10 +214,9 @@ function keyBuilder$2(luvio, config) {
214
214
  }
215
215
  function typeCheckConfig$1(untrustedConfig) {
216
216
  const config = {};
217
- const untrustedConfig_objectApiName = untrustedConfig.objectApiName;
218
- if (typeof untrustedConfig_objectApiName === 'string') {
219
- config.objectApiName = untrustedConfig_objectApiName;
220
- }
217
+ typeCheckScalars(untrustedConfig, config, {
218
+ objectApiName: 0 /* String */,
219
+ });
221
220
  return config;
222
221
  }
223
222
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -508,22 +507,12 @@ function keyBuilder(luvio, config) {
508
507
  }
509
508
  function typeCheckConfig(untrustedConfig) {
510
509
  const config = {};
511
- const untrustedConfig_featureName = untrustedConfig.featureName;
512
- if (typeof untrustedConfig_featureName === 'string') {
513
- config.featureName = untrustedConfig_featureName;
514
- }
515
- const untrustedConfig_limit = untrustedConfig.limit;
516
- if (typeof untrustedConfig_limit === 'number' && Math.floor(untrustedConfig_limit) === untrustedConfig_limit) {
517
- config.limit = untrustedConfig_limit;
518
- }
519
- const untrustedConfig_offset = untrustedConfig.offset;
520
- if (typeof untrustedConfig_offset === 'number' && Math.floor(untrustedConfig_offset) === untrustedConfig_offset) {
521
- config.offset = untrustedConfig_offset;
522
- }
523
- const untrustedConfig_entityType = untrustedConfig.entityType;
524
- if (typeof untrustedConfig_entityType === 'string') {
525
- config.entityType = untrustedConfig_entityType;
526
- }
510
+ typeCheckScalars(untrustedConfig, config, {
511
+ featureName: 0 /* String */,
512
+ limit: 3 /* Integer */,
513
+ offset: 3 /* Integer */,
514
+ entityType: 0 /* String */,
515
+ });
527
516
  return config;
528
517
  }
529
518
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-dataloading",
3
- "version": "1.207.0",
3
+ "version": "1.208.1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "API Family to support data loading for objects",
6
6
  "main": "dist/es/es2018/industries-dataloading.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;
@@ -224,10 +224,9 @@ function keyBuilder$2(luvio, config) {
224
224
  }
225
225
  function typeCheckConfig$1(untrustedConfig) {
226
226
  const config = {};
227
- const untrustedConfig_objectApiName = untrustedConfig.objectApiName;
228
- if (typeof untrustedConfig_objectApiName === 'string') {
229
- config.objectApiName = untrustedConfig_objectApiName;
230
- }
227
+ typeCheckScalars(untrustedConfig, config, {
228
+ objectApiName: 0 /* String */,
229
+ });
231
230
  return config;
232
231
  }
233
232
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -518,22 +517,12 @@ function keyBuilder(luvio, config) {
518
517
  }
519
518
  function typeCheckConfig(untrustedConfig) {
520
519
  const config = {};
521
- const untrustedConfig_featureName = untrustedConfig.featureName;
522
- if (typeof untrustedConfig_featureName === 'string') {
523
- config.featureName = untrustedConfig_featureName;
524
- }
525
- const untrustedConfig_limit = untrustedConfig.limit;
526
- if (typeof untrustedConfig_limit === 'number' && Math.floor(untrustedConfig_limit) === untrustedConfig_limit) {
527
- config.limit = untrustedConfig_limit;
528
- }
529
- const untrustedConfig_offset = untrustedConfig.offset;
530
- if (typeof untrustedConfig_offset === 'number' && Math.floor(untrustedConfig_offset) === untrustedConfig_offset) {
531
- config.offset = untrustedConfig_offset;
532
- }
533
- const untrustedConfig_entityType = untrustedConfig.entityType;
534
- if (typeof untrustedConfig_entityType === 'string') {
535
- config.entityType = untrustedConfig_entityType;
536
- }
520
+ typeCheckScalars(untrustedConfig, config, {
521
+ featureName: 0 /* String */,
522
+ limit: 3 /* Integer */,
523
+ offset: 3 /* Integer */,
524
+ entityType: 0 /* String */,
525
+ });
537
526
  return config;
538
527
  }
539
528
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -651,4 +640,4 @@ withDefaultLuvio((luvio) => {
651
640
  });
652
641
 
653
642
  export { getCsvDataTemplate, getCsvDataTemplate_imperative, getObjectsForFeature, getObjectsForFeature_imperative };
654
- // version: 1.207.0-d542abb81
643
+ // version: 1.208.1-9aaa359ad