@salesforce/lds-adapters-commerce-extensions 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.
- package/dist/es/es2018/commerce-extensions.js +28 -61
- package/package.json +1 -1
- package/sfdc/index.js +29 -62
|
@@ -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$1, create: ObjectCreate$1 } = Object;
|
|
@@ -845,14 +845,10 @@ function keyBuilder$6(luvio, config) {
|
|
|
845
845
|
}
|
|
846
846
|
function typeCheckConfig$5(untrustedConfig) {
|
|
847
847
|
const config = {};
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
}
|
|
852
|
-
const untrustedConfig_webstoreId = untrustedConfig.webstoreId;
|
|
853
|
-
if (typeof untrustedConfig_webstoreId === 'string') {
|
|
854
|
-
config.webstoreId = untrustedConfig_webstoreId;
|
|
855
|
-
}
|
|
848
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
849
|
+
epn: 0 /* String */,
|
|
850
|
+
webstoreId: 0 /* String */,
|
|
851
|
+
});
|
|
856
852
|
return config;
|
|
857
853
|
}
|
|
858
854
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -997,22 +993,12 @@ function createResourceParams$4(config) {
|
|
|
997
993
|
}
|
|
998
994
|
function typeCheckConfig$4(untrustedConfig) {
|
|
999
995
|
const config = {};
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
config.id = untrustedConfig_id;
|
|
1007
|
-
}
|
|
1008
|
-
const untrustedConfig_providerName = untrustedConfig.providerName;
|
|
1009
|
-
if (typeof untrustedConfig_providerName === 'string') {
|
|
1010
|
-
config.providerName = untrustedConfig_providerName;
|
|
1011
|
-
}
|
|
1012
|
-
const untrustedConfig_webstoreId = untrustedConfig.webstoreId;
|
|
1013
|
-
if (typeof untrustedConfig_webstoreId === 'string') {
|
|
1014
|
-
config.webstoreId = untrustedConfig_webstoreId;
|
|
1015
|
-
}
|
|
996
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
997
|
+
epn: 0 /* String */,
|
|
998
|
+
id: 0 /* String */,
|
|
999
|
+
providerName: 0 /* String */,
|
|
1000
|
+
webstoreId: 0 /* String */,
|
|
1001
|
+
});
|
|
1016
1002
|
return config;
|
|
1017
1003
|
}
|
|
1018
1004
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -1106,10 +1092,9 @@ function createResourceParams$3(config) {
|
|
|
1106
1092
|
}
|
|
1107
1093
|
function typeCheckConfig$3(untrustedConfig) {
|
|
1108
1094
|
const config = {};
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
}
|
|
1095
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
1096
|
+
mappingId: 0 /* String */,
|
|
1097
|
+
});
|
|
1113
1098
|
return config;
|
|
1114
1099
|
}
|
|
1115
1100
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -1229,10 +1214,9 @@ function keyBuilder$3(luvio, config) {
|
|
|
1229
1214
|
}
|
|
1230
1215
|
function typeCheckConfig$2(untrustedConfig) {
|
|
1231
1216
|
const config = {};
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
}
|
|
1217
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
1218
|
+
mappingId: 0 /* String */,
|
|
1219
|
+
});
|
|
1236
1220
|
return config;
|
|
1237
1221
|
}
|
|
1238
1222
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -1380,26 +1364,13 @@ function createResourceParams$1(config) {
|
|
|
1380
1364
|
}
|
|
1381
1365
|
function typeCheckConfig$1(untrustedConfig) {
|
|
1382
1366
|
const config = {};
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
}
|
|
1391
|
-
const untrustedConfig_id = untrustedConfig.id;
|
|
1392
|
-
if (typeof untrustedConfig_id === 'string') {
|
|
1393
|
-
config.id = untrustedConfig_id;
|
|
1394
|
-
}
|
|
1395
|
-
const untrustedConfig_providerName = untrustedConfig.providerName;
|
|
1396
|
-
if (typeof untrustedConfig_providerName === 'string') {
|
|
1397
|
-
config.providerName = untrustedConfig_providerName;
|
|
1398
|
-
}
|
|
1399
|
-
const untrustedConfig_webstoreId = untrustedConfig.webstoreId;
|
|
1400
|
-
if (typeof untrustedConfig_webstoreId === 'string') {
|
|
1401
|
-
config.webstoreId = untrustedConfig_webstoreId;
|
|
1402
|
-
}
|
|
1367
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
1368
|
+
mappingId: 0 /* String */,
|
|
1369
|
+
epn: 0 /* String */,
|
|
1370
|
+
id: 0 /* String */,
|
|
1371
|
+
providerName: 0 /* String */,
|
|
1372
|
+
webstoreId: 0 /* String */,
|
|
1373
|
+
});
|
|
1403
1374
|
return config;
|
|
1404
1375
|
}
|
|
1405
1376
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -1927,14 +1898,10 @@ function keyBuilder(luvio, config) {
|
|
|
1927
1898
|
}
|
|
1928
1899
|
function typeCheckConfig(untrustedConfig) {
|
|
1929
1900
|
const config = {};
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
}
|
|
1934
|
-
const untrustedConfig_epn = untrustedConfig.epn;
|
|
1935
|
-
if (typeof untrustedConfig_epn === 'string') {
|
|
1936
|
-
config.epn = untrustedConfig_epn;
|
|
1937
|
-
}
|
|
1901
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
1902
|
+
effectiveMappingsWebstoreId: 0 /* String */,
|
|
1903
|
+
epn: 0 /* String */,
|
|
1904
|
+
});
|
|
1938
1905
|
return config;
|
|
1939
1906
|
}
|
|
1940
1907
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-commerce-extensions",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.208.0",
|
|
4
4
|
"description": "APIs to manage providers for commerce extensions and which will be used for each store.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/umd/es2018/commerce-extensions.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$1, create: ObjectCreate$1 } = Object;
|
|
@@ -855,14 +855,10 @@ function keyBuilder$6(luvio, config) {
|
|
|
855
855
|
}
|
|
856
856
|
function typeCheckConfig$5(untrustedConfig) {
|
|
857
857
|
const config = {};
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
}
|
|
862
|
-
const untrustedConfig_webstoreId = untrustedConfig.webstoreId;
|
|
863
|
-
if (typeof untrustedConfig_webstoreId === 'string') {
|
|
864
|
-
config.webstoreId = untrustedConfig_webstoreId;
|
|
865
|
-
}
|
|
858
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
859
|
+
epn: 0 /* String */,
|
|
860
|
+
webstoreId: 0 /* String */,
|
|
861
|
+
});
|
|
866
862
|
return config;
|
|
867
863
|
}
|
|
868
864
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -1007,22 +1003,12 @@ function createResourceParams$4(config) {
|
|
|
1007
1003
|
}
|
|
1008
1004
|
function typeCheckConfig$4(untrustedConfig) {
|
|
1009
1005
|
const config = {};
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
config.id = untrustedConfig_id;
|
|
1017
|
-
}
|
|
1018
|
-
const untrustedConfig_providerName = untrustedConfig.providerName;
|
|
1019
|
-
if (typeof untrustedConfig_providerName === 'string') {
|
|
1020
|
-
config.providerName = untrustedConfig_providerName;
|
|
1021
|
-
}
|
|
1022
|
-
const untrustedConfig_webstoreId = untrustedConfig.webstoreId;
|
|
1023
|
-
if (typeof untrustedConfig_webstoreId === 'string') {
|
|
1024
|
-
config.webstoreId = untrustedConfig_webstoreId;
|
|
1025
|
-
}
|
|
1006
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
1007
|
+
epn: 0 /* String */,
|
|
1008
|
+
id: 0 /* String */,
|
|
1009
|
+
providerName: 0 /* String */,
|
|
1010
|
+
webstoreId: 0 /* String */,
|
|
1011
|
+
});
|
|
1026
1012
|
return config;
|
|
1027
1013
|
}
|
|
1028
1014
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -1116,10 +1102,9 @@ function createResourceParams$3(config) {
|
|
|
1116
1102
|
}
|
|
1117
1103
|
function typeCheckConfig$3(untrustedConfig) {
|
|
1118
1104
|
const config = {};
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
}
|
|
1105
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
1106
|
+
mappingId: 0 /* String */,
|
|
1107
|
+
});
|
|
1123
1108
|
return config;
|
|
1124
1109
|
}
|
|
1125
1110
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -1246,10 +1231,9 @@ function keyBuilder$3(luvio, config) {
|
|
|
1246
1231
|
}
|
|
1247
1232
|
function typeCheckConfig$2(untrustedConfig) {
|
|
1248
1233
|
const config = {};
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
}
|
|
1234
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
1235
|
+
mappingId: 0 /* String */,
|
|
1236
|
+
});
|
|
1253
1237
|
return config;
|
|
1254
1238
|
}
|
|
1255
1239
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -1431,26 +1415,13 @@ function createResourceParams$1(config) {
|
|
|
1431
1415
|
}
|
|
1432
1416
|
function typeCheckConfig$1(untrustedConfig) {
|
|
1433
1417
|
const config = {};
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
}
|
|
1442
|
-
const untrustedConfig_id = untrustedConfig.id;
|
|
1443
|
-
if (typeof untrustedConfig_id === 'string') {
|
|
1444
|
-
config.id = untrustedConfig_id;
|
|
1445
|
-
}
|
|
1446
|
-
const untrustedConfig_providerName = untrustedConfig.providerName;
|
|
1447
|
-
if (typeof untrustedConfig_providerName === 'string') {
|
|
1448
|
-
config.providerName = untrustedConfig_providerName;
|
|
1449
|
-
}
|
|
1450
|
-
const untrustedConfig_webstoreId = untrustedConfig.webstoreId;
|
|
1451
|
-
if (typeof untrustedConfig_webstoreId === 'string') {
|
|
1452
|
-
config.webstoreId = untrustedConfig_webstoreId;
|
|
1453
|
-
}
|
|
1418
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
1419
|
+
mappingId: 0 /* String */,
|
|
1420
|
+
epn: 0 /* String */,
|
|
1421
|
+
id: 0 /* String */,
|
|
1422
|
+
providerName: 0 /* String */,
|
|
1423
|
+
webstoreId: 0 /* String */,
|
|
1424
|
+
});
|
|
1454
1425
|
return config;
|
|
1455
1426
|
}
|
|
1456
1427
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -1978,14 +1949,10 @@ function keyBuilder(luvio, config) {
|
|
|
1978
1949
|
}
|
|
1979
1950
|
function typeCheckConfig(untrustedConfig) {
|
|
1980
1951
|
const config = {};
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
}
|
|
1985
|
-
const untrustedConfig_epn = untrustedConfig.epn;
|
|
1986
|
-
if (typeof untrustedConfig_epn === 'string') {
|
|
1987
|
-
config.epn = untrustedConfig_epn;
|
|
1988
|
-
}
|
|
1952
|
+
typeCheckScalars(untrustedConfig, config, {
|
|
1953
|
+
effectiveMappingsWebstoreId: 0 /* String */,
|
|
1954
|
+
epn: 0 /* String */,
|
|
1955
|
+
});
|
|
1989
1956
|
return config;
|
|
1990
1957
|
}
|
|
1991
1958
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -2139,4 +2106,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2139
2106
|
});
|
|
2140
2107
|
|
|
2141
2108
|
export { createMapping, deleteMapping, getExtensions, getExtensions_imperative, getMapping, getMappingNotifyChange, getMapping_imperative, getMappings, getMappings_imperative, getProviders, getProviders_imperative, notifyMappingUpdateAvailable, updateMapping };
|
|
2142
|
-
// version: 1.
|
|
2109
|
+
// version: 1.208.0-027673bd6
|