@salesforce/lds-adapters-industries-epc 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, StoreKeyMap, typeCheckScalars } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -838,14 +838,10 @@ function keyBuilder$4(luvio, config) {
838
838
  }
839
839
  function typeCheckConfig$2(untrustedConfig) {
840
840
  const config = {};
841
- const untrustedConfig_productId = untrustedConfig.productId;
842
- if (typeof untrustedConfig_productId === 'string') {
843
- config.productId = untrustedConfig_productId;
844
- }
845
- const untrustedConfig_correlationId = untrustedConfig.correlationId;
846
- if (typeof untrustedConfig_correlationId === 'string') {
847
- config.correlationId = untrustedConfig_correlationId;
848
- }
841
+ typeCheckScalars(untrustedConfig, config, {
842
+ productId: 0 /* String */,
843
+ correlationId: 0 /* String */,
844
+ });
849
845
  return config;
850
846
  }
851
847
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -1821,18 +1817,11 @@ function keyBuilder$2(luvio, config) {
1821
1817
  }
1822
1818
  function typeCheckConfig$1(untrustedConfig) {
1823
1819
  const config = {};
1824
- const untrustedConfig_productId = untrustedConfig.productId;
1825
- if (typeof untrustedConfig_productId === 'string') {
1826
- config.productId = untrustedConfig_productId;
1827
- }
1828
- const untrustedConfig_correlationId = untrustedConfig.correlationId;
1829
- if (typeof untrustedConfig_correlationId === 'string') {
1830
- config.correlationId = untrustedConfig_correlationId;
1831
- }
1832
- const untrustedConfig_isPriceImpacting = untrustedConfig.isPriceImpacting;
1833
- if (typeof untrustedConfig_isPriceImpacting === 'boolean') {
1834
- config.isPriceImpacting = untrustedConfig_isPriceImpacting;
1835
- }
1820
+ typeCheckScalars(untrustedConfig, config, {
1821
+ productId: 0 /* String */,
1822
+ correlationId: 0 /* String */,
1823
+ isPriceImpacting: 1 /* Boolean */,
1824
+ });
1836
1825
  return config;
1837
1826
  }
1838
1827
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -2198,14 +2187,10 @@ function keyBuilder(luvio, config) {
2198
2187
  }
2199
2188
  function typeCheckConfig(untrustedConfig) {
2200
2189
  const config = {};
2201
- const untrustedConfig_productId = untrustedConfig.productId;
2202
- if (typeof untrustedConfig_productId === 'string') {
2203
- config.productId = untrustedConfig_productId;
2204
- }
2205
- const untrustedConfig_correlationId = untrustedConfig.correlationId;
2206
- if (typeof untrustedConfig_correlationId === 'string') {
2207
- config.correlationId = untrustedConfig_correlationId;
2208
- }
2190
+ typeCheckScalars(untrustedConfig, config, {
2191
+ productId: 0 /* String */,
2192
+ correlationId: 0 /* String */,
2193
+ });
2209
2194
  return config;
2210
2195
  }
2211
2196
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-epc",
3
- "version": "1.207.0",
3
+ "version": "1.208.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "APIs for EPCNext project",
6
6
  "main": "dist/es/es2018/industries-epc.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, StoreKeyMap, typeCheckScalars } from 'force/luvioEngine';
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
20
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -1477,18 +1477,11 @@ function keyBuilder$4(luvio, config) {
1477
1477
  }
1478
1478
  function typeCheckConfig$2(untrustedConfig) {
1479
1479
  const config = {};
1480
- const untrustedConfig_productId = untrustedConfig.productId;
1481
- if (typeof untrustedConfig_productId === 'string') {
1482
- config.productId = untrustedConfig_productId;
1483
- }
1484
- const untrustedConfig_correlationId = untrustedConfig.correlationId;
1485
- if (typeof untrustedConfig_correlationId === 'string') {
1486
- config.correlationId = untrustedConfig_correlationId;
1487
- }
1488
- const untrustedConfig_isPriceImpacting = untrustedConfig.isPriceImpacting;
1489
- if (typeof untrustedConfig_isPriceImpacting === 'boolean') {
1490
- config.isPriceImpacting = untrustedConfig_isPriceImpacting;
1491
- }
1480
+ typeCheckScalars(untrustedConfig, config, {
1481
+ productId: 0 /* String */,
1482
+ correlationId: 0 /* String */,
1483
+ isPriceImpacting: 1 /* Boolean */,
1484
+ });
1492
1485
  return config;
1493
1486
  }
1494
1487
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -1926,14 +1919,10 @@ function keyBuilder$2(luvio, config) {
1926
1919
  }
1927
1920
  function typeCheckConfig$1(untrustedConfig) {
1928
1921
  const config = {};
1929
- const untrustedConfig_productId = untrustedConfig.productId;
1930
- if (typeof untrustedConfig_productId === 'string') {
1931
- config.productId = untrustedConfig_productId;
1932
- }
1933
- const untrustedConfig_correlationId = untrustedConfig.correlationId;
1934
- if (typeof untrustedConfig_correlationId === 'string') {
1935
- config.correlationId = untrustedConfig_correlationId;
1936
- }
1922
+ typeCheckScalars(untrustedConfig, config, {
1923
+ productId: 0 /* String */,
1924
+ correlationId: 0 /* String */,
1925
+ });
1937
1926
  return config;
1938
1927
  }
1939
1928
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -2208,14 +2197,10 @@ function keyBuilder(luvio, config) {
2208
2197
  }
2209
2198
  function typeCheckConfig(untrustedConfig) {
2210
2199
  const config = {};
2211
- const untrustedConfig_productId = untrustedConfig.productId;
2212
- if (typeof untrustedConfig_productId === 'string') {
2213
- config.productId = untrustedConfig_productId;
2214
- }
2215
- const untrustedConfig_correlationId = untrustedConfig.correlationId;
2216
- if (typeof untrustedConfig_correlationId === 'string') {
2217
- config.correlationId = untrustedConfig_correlationId;
2218
- }
2200
+ typeCheckScalars(untrustedConfig, config, {
2201
+ productId: 0 /* String */,
2202
+ correlationId: 0 /* String */,
2203
+ });
2219
2204
  return config;
2220
2205
  }
2221
2206
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -2350,4 +2335,4 @@ withDefaultLuvio((luvio) => {
2350
2335
  });
2351
2336
 
2352
2337
  export { createProductAttributeDefinition, deactivate, getProductAttributesByProductId, getProductAttributesByProductId_imperative, getProductById, getProductById_imperative, getProductFlowByProductId, getProductFlowByProductId_imperative };
2353
- // version: 1.207.0-d542abb81
2338
+ // version: 1.208.0-027673bd6