@salesforce/lds-adapters-industries-explainability 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;
@@ -291,54 +291,20 @@ function keyBuilder$1(luvio, config) {
291
291
  }
292
292
  function typeCheckConfig$1(untrustedConfig) {
293
293
  const config = {};
294
- const untrustedConfig_actionContextCode = untrustedConfig.actionContextCode;
295
- if (typeof untrustedConfig_actionContextCode === 'string') {
296
- config.actionContextCode = untrustedConfig_actionContextCode;
297
- }
298
- const untrustedConfig_applicationSubType = untrustedConfig.applicationSubType;
299
- if (typeof untrustedConfig_applicationSubType === 'string') {
300
- config.applicationSubType = untrustedConfig_applicationSubType;
301
- }
302
- const untrustedConfig_applicationType = untrustedConfig.applicationType;
303
- if (typeof untrustedConfig_applicationType === 'string') {
304
- config.applicationType = untrustedConfig_applicationType;
305
- }
306
- const untrustedConfig_createdAfter = untrustedConfig.createdAfter;
307
- if (typeof untrustedConfig_createdAfter === 'string') {
308
- config.createdAfter = untrustedConfig_createdAfter;
309
- }
310
- const untrustedConfig_createdBefore = untrustedConfig.createdBefore;
311
- if (typeof untrustedConfig_createdBefore === 'string') {
312
- config.createdBefore = untrustedConfig_createdBefore;
313
- }
314
- const untrustedConfig_pageSize = untrustedConfig.pageSize;
315
- if (typeof untrustedConfig_pageSize === 'number' && Math.floor(untrustedConfig_pageSize) === untrustedConfig_pageSize) {
316
- config.pageSize = untrustedConfig_pageSize;
317
- }
318
- const untrustedConfig_processType = untrustedConfig.processType;
319
- if (typeof untrustedConfig_processType === 'string') {
320
- config.processType = untrustedConfig_processType;
321
- }
322
- const untrustedConfig_queryMore = untrustedConfig.queryMore;
323
- if (typeof untrustedConfig_queryMore === 'string') {
324
- config.queryMore = untrustedConfig_queryMore;
325
- }
326
- const untrustedConfig_primaryFilter = untrustedConfig.primaryFilter;
327
- if (typeof untrustedConfig_primaryFilter === 'string') {
328
- config.primaryFilter = untrustedConfig_primaryFilter;
329
- }
330
- const untrustedConfig_secondaryFilter = untrustedConfig.secondaryFilter;
331
- if (typeof untrustedConfig_secondaryFilter === 'string') {
332
- config.secondaryFilter = untrustedConfig_secondaryFilter;
333
- }
334
- const untrustedConfig_additionalFilter = untrustedConfig.additionalFilter;
335
- if (typeof untrustedConfig_additionalFilter === 'string') {
336
- config.additionalFilter = untrustedConfig_additionalFilter;
337
- }
338
- const untrustedConfig_sortDirection = untrustedConfig.sortDirection;
339
- if (typeof untrustedConfig_sortDirection === 'string') {
340
- config.sortDirection = untrustedConfig_sortDirection;
341
- }
294
+ typeCheckScalars(untrustedConfig, config, {
295
+ actionContextCode: 0 /* String */,
296
+ applicationSubType: 0 /* String */,
297
+ applicationType: 0 /* String */,
298
+ createdAfter: 0 /* String */,
299
+ createdBefore: 0 /* String */,
300
+ pageSize: 3 /* Integer */,
301
+ processType: 0 /* String */,
302
+ queryMore: 0 /* String */,
303
+ primaryFilter: 0 /* String */,
304
+ secondaryFilter: 0 /* String */,
305
+ additionalFilter: 0 /* String */,
306
+ sortDirection: 0 /* String */,
307
+ });
342
308
  return config;
343
309
  }
344
310
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-explainability",
3
- "version": "1.207.0",
3
+ "version": "1.208.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "API to fetch and post centralised explainability related meta data and transactional data",
6
6
  "main": "dist/es/es2018/industries-explainability.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;
@@ -301,54 +301,20 @@ function keyBuilder$1(luvio, config) {
301
301
  }
302
302
  function typeCheckConfig$1(untrustedConfig) {
303
303
  const config = {};
304
- const untrustedConfig_actionContextCode = untrustedConfig.actionContextCode;
305
- if (typeof untrustedConfig_actionContextCode === 'string') {
306
- config.actionContextCode = untrustedConfig_actionContextCode;
307
- }
308
- const untrustedConfig_applicationSubType = untrustedConfig.applicationSubType;
309
- if (typeof untrustedConfig_applicationSubType === 'string') {
310
- config.applicationSubType = untrustedConfig_applicationSubType;
311
- }
312
- const untrustedConfig_applicationType = untrustedConfig.applicationType;
313
- if (typeof untrustedConfig_applicationType === 'string') {
314
- config.applicationType = untrustedConfig_applicationType;
315
- }
316
- const untrustedConfig_createdAfter = untrustedConfig.createdAfter;
317
- if (typeof untrustedConfig_createdAfter === 'string') {
318
- config.createdAfter = untrustedConfig_createdAfter;
319
- }
320
- const untrustedConfig_createdBefore = untrustedConfig.createdBefore;
321
- if (typeof untrustedConfig_createdBefore === 'string') {
322
- config.createdBefore = untrustedConfig_createdBefore;
323
- }
324
- const untrustedConfig_pageSize = untrustedConfig.pageSize;
325
- if (typeof untrustedConfig_pageSize === 'number' && Math.floor(untrustedConfig_pageSize) === untrustedConfig_pageSize) {
326
- config.pageSize = untrustedConfig_pageSize;
327
- }
328
- const untrustedConfig_processType = untrustedConfig.processType;
329
- if (typeof untrustedConfig_processType === 'string') {
330
- config.processType = untrustedConfig_processType;
331
- }
332
- const untrustedConfig_queryMore = untrustedConfig.queryMore;
333
- if (typeof untrustedConfig_queryMore === 'string') {
334
- config.queryMore = untrustedConfig_queryMore;
335
- }
336
- const untrustedConfig_primaryFilter = untrustedConfig.primaryFilter;
337
- if (typeof untrustedConfig_primaryFilter === 'string') {
338
- config.primaryFilter = untrustedConfig_primaryFilter;
339
- }
340
- const untrustedConfig_secondaryFilter = untrustedConfig.secondaryFilter;
341
- if (typeof untrustedConfig_secondaryFilter === 'string') {
342
- config.secondaryFilter = untrustedConfig_secondaryFilter;
343
- }
344
- const untrustedConfig_additionalFilter = untrustedConfig.additionalFilter;
345
- if (typeof untrustedConfig_additionalFilter === 'string') {
346
- config.additionalFilter = untrustedConfig_additionalFilter;
347
- }
348
- const untrustedConfig_sortDirection = untrustedConfig.sortDirection;
349
- if (typeof untrustedConfig_sortDirection === 'string') {
350
- config.sortDirection = untrustedConfig_sortDirection;
351
- }
304
+ typeCheckScalars(untrustedConfig, config, {
305
+ actionContextCode: 0 /* String */,
306
+ applicationSubType: 0 /* String */,
307
+ applicationType: 0 /* String */,
308
+ createdAfter: 0 /* String */,
309
+ createdBefore: 0 /* String */,
310
+ pageSize: 3 /* Integer */,
311
+ processType: 0 /* String */,
312
+ queryMore: 0 /* String */,
313
+ primaryFilter: 0 /* String */,
314
+ secondaryFilter: 0 /* String */,
315
+ additionalFilter: 0 /* String */,
316
+ sortDirection: 0 /* String */,
317
+ });
352
318
  return config;
353
319
  }
354
320
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -721,4 +687,4 @@ withDefaultLuvio((luvio) => {
721
687
  });
722
688
 
723
689
  export { getExplainabilityActionLogs, getExplainabilityActionLogs_imperative, storeExplainabilityActionLog };
724
- // version: 1.207.0-d542abb81
690
+ // version: 1.208.0-027673bd6