@salesforce/lds-adapters-commerce-configuration 1.260.0 → 1.262.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.
|
@@ -3,4 +3,4 @@ declare let getCommerceConfigurationAttribute: any;
|
|
|
3
3
|
declare let getCommerceConfigurationAttributeNotifyChange: any;
|
|
4
4
|
declare let putCommerceConfigurationAttribute: any;
|
|
5
5
|
declare let getCommerceConfigurationAttribute_imperative: any;
|
|
6
|
-
export { deleteCommerceConfigurationAttribute, getCommerceConfigurationAttribute, getCommerceConfigurationAttributeNotifyChange, putCommerceConfigurationAttribute, getCommerceConfigurationAttribute_imperative };
|
|
6
|
+
export { deleteCommerceConfigurationAttribute, getCommerceConfigurationAttribute, getCommerceConfigurationAttributeNotifyChange, putCommerceConfigurationAttribute, getCommerceConfigurationAttribute_imperative, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-commerce-configuration",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.262.0",
|
|
4
4
|
"description": "Allows reading and changing the values of commerce configuration attributes. These configurations can impact one or multiple areas of Salesforce Commerce.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/commerce-configuration.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.262.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.262.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -804,13 +804,18 @@ let getCommerceConfigurationAttributeNotifyChange;
|
|
|
804
804
|
let putCommerceConfigurationAttribute;
|
|
805
805
|
// Imperative GET Adapters
|
|
806
806
|
let getCommerceConfigurationAttribute_imperative;
|
|
807
|
-
const getCommerceConfigurationAttributeMetadata = {
|
|
807
|
+
const getCommerceConfigurationAttributeMetadata = {
|
|
808
|
+
apiFamily: 'commerceconfiguration',
|
|
809
|
+
name: 'getCommerceConfigurationAttribute',
|
|
810
|
+
ttl: 1000,
|
|
811
|
+
};
|
|
812
|
+
// Notify Update Available
|
|
808
813
|
function bindExportsTo(luvio) {
|
|
809
814
|
// LDS Adapters
|
|
810
815
|
const getCommerceConfigurationAttribute_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getCommerceConfigurationAttribute', getCommerceConfigurationAttributeAdapterFactory), getCommerceConfigurationAttributeMetadata);
|
|
811
816
|
function unwrapSnapshotData(factory) {
|
|
812
817
|
const adapter = factory(luvio);
|
|
813
|
-
return (config) => adapter(config).then(snapshot => snapshot.data);
|
|
818
|
+
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
814
819
|
}
|
|
815
820
|
return {
|
|
816
821
|
deleteCommerceConfigurationAttribute: createLDSAdapter(luvio, adapterName$2, deleteCommerceConfigurationAttributeAdapterFactory),
|
|
@@ -818,7 +823,8 @@ function bindExportsTo(luvio) {
|
|
|
818
823
|
getCommerceConfigurationAttributeNotifyChange: createLDSAdapter(luvio, 'getCommerceConfigurationAttributeNotifyChange', notifyChangeFactory),
|
|
819
824
|
putCommerceConfigurationAttribute: unwrapSnapshotData(putCommerceConfigurationAttributeAdapterFactory),
|
|
820
825
|
// Imperative GET Adapters
|
|
821
|
-
getCommerceConfigurationAttribute_imperative: createImperativeAdapter(luvio, getCommerceConfigurationAttribute_ldsAdapter, getCommerceConfigurationAttributeMetadata)
|
|
826
|
+
getCommerceConfigurationAttribute_imperative: createImperativeAdapter(luvio, getCommerceConfigurationAttribute_ldsAdapter, getCommerceConfigurationAttributeMetadata),
|
|
827
|
+
// Notify Update Availables
|
|
822
828
|
};
|
|
823
829
|
}
|
|
824
830
|
withDefaultLuvio((luvio) => {
|
|
@@ -827,9 +833,9 @@ withDefaultLuvio((luvio) => {
|
|
|
827
833
|
getCommerceConfigurationAttribute,
|
|
828
834
|
getCommerceConfigurationAttributeNotifyChange,
|
|
829
835
|
putCommerceConfigurationAttribute,
|
|
830
|
-
getCommerceConfigurationAttribute_imperative
|
|
836
|
+
getCommerceConfigurationAttribute_imperative,
|
|
831
837
|
} = bindExportsTo(luvio));
|
|
832
838
|
});
|
|
833
839
|
|
|
834
840
|
export { deleteCommerceConfigurationAttribute, getCommerceConfigurationAttribute, getCommerceConfigurationAttributeNotifyChange, getCommerceConfigurationAttribute_imperative, putCommerceConfigurationAttribute };
|
|
835
|
-
// version: 1.
|
|
841
|
+
// version: 1.262.0-d3c071fdc
|