@salesforce/lds-adapters-commerce-search 1.352.0 → 1.353.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.
- package/dist/es/es2018/commerce-search.js +10 -1
- package/dist/es/es2018/types/src/main.d.ts +6 -0
- package/dist/es/es2018/types/src/raml-artifacts/types/SearchBoostBuryRulesCollectionOutputRepresentation/notifyUpdateAvailableFactory.d.ts +2 -0
- package/dist/es/es2018/types/src/sfdc.d.ts +7 -0
- package/package.json +4 -4
- package/sfdc/index.d.ts +1 -1
- package/sfdc/index.js +31 -4
|
@@ -1910,4 +1910,13 @@ const getSuggestionsAdapterFactory = (luvio) => function Commerce__getSuggestion
|
|
|
1910
1910
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
1911
1911
|
};
|
|
1912
1912
|
|
|
1913
|
-
|
|
1913
|
+
const notifyUpdateAvailableFactory = (luvio) => {
|
|
1914
|
+
// custom override of notifyUpdateAvailable function to bypass luvio key requirement since it is not possible to have
|
|
1915
|
+
// a luvio.key for SearchBoostBuryRulesCollectionOutputRepresentation
|
|
1916
|
+
return function notifySearchBoostBuryRulesCollectionOutputRepresentationUpdateAvailable(webstoreId) {
|
|
1917
|
+
const key = keyBuilder$8(luvio, { urlParams: { webstoreId: webstoreId } });
|
|
1918
|
+
return luvio.notifyStoreUpdateAvailable([key]);
|
|
1919
|
+
};
|
|
1920
|
+
};
|
|
1921
|
+
|
|
1922
|
+
export { createSearchBoostBuryRuleAdapterFactory, deleteSearchBoostBuryRuleAdapterFactory, getSearchBoostBuryRuleAdapterFactory, getSearchBoostBuryRulesAdapterFactory, getSuggestionsAdapterFactory, notifyUpdateAvailableFactory as notifySearchBoostBuryRulesCollectionOutputRepresentationUpdateAvailableFactory, productSearchAdapterFactory, updateSearchBoostBuryRuleAdapterFactory };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Original file is in 'packages/lds-adapters-commerce-search/src/generated/artifacts/main.ts'
|
|
3
|
+
* Overriding this file to manually inject custom notifyUpdateAvailableFactory implementation.
|
|
4
|
+
*/
|
|
5
|
+
export * from './generated/artifacts/main';
|
|
6
|
+
export { notifyUpdateAvailableFactory as notifySearchBoostBuryRulesCollectionOutputRepresentationUpdateAvailableFactory } from './raml-artifacts/types/SearchBoostBuryRulesCollectionOutputRepresentation/notifyUpdateAvailableFactory';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Original file is in 'packages/lds-adapters-commerce-search/src/generated/artifacts/sfdc.ts'
|
|
3
|
+
* Overriding this file to manually inject custom notifyUpdateAvailableFactory implementation.
|
|
4
|
+
*/
|
|
5
|
+
export * from './generated/artifacts/sfdc';
|
|
6
|
+
declare let notifySearchBoostBuryRulesCollectionOutputRepresentationUpdateAvailable: any;
|
|
7
|
+
export { notifySearchBoostBuryRulesCollectionOutputRepresentationUpdateAvailable };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-commerce-search",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.353.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Wire adapters Community Navigation Menu",
|
|
6
6
|
"main": "dist/es/es2018/commerce-search.js",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"release:core": "../../scripts/release/core.js --adapter=lds-adapters-commerce-search"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@salesforce/lds-bindings": "^1.
|
|
32
|
+
"@salesforce/lds-bindings": "^1.353.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
36
|
-
"@salesforce/lds-karma": "^1.
|
|
35
|
+
"@salesforce/lds-compiler-plugins": "^1.353.1",
|
|
36
|
+
"@salesforce/lds-karma": "^1.353.1"
|
|
37
37
|
},
|
|
38
38
|
"nx": {
|
|
39
39
|
"targets": {
|
package/sfdc/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '../dist/es/es2018/types/src/
|
|
1
|
+
export * from '../dist/es/es2018/types/src/sfdc';
|
package/sfdc/index.js
CHANGED
|
@@ -1974,7 +1974,7 @@ const getSearchBoostBuryRulesMetadata = { apiFamily: 'Commerce', name: 'getSearc
|
|
|
1974
1974
|
const getSuggestionsMetadata = { apiFamily: 'Commerce', name: 'getSuggestions' };
|
|
1975
1975
|
const productSearchMetadata = { apiFamily: 'Commerce', name: 'productSearch' };
|
|
1976
1976
|
// Notify Update Available
|
|
1977
|
-
function bindExportsTo(luvio) {
|
|
1977
|
+
function bindExportsTo$1(luvio) {
|
|
1978
1978
|
// LDS Adapters
|
|
1979
1979
|
const getSearchBoostBuryRule_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSearchBoostBuryRule', getSearchBoostBuryRuleAdapterFactory), getSearchBoostBuryRuleMetadata);
|
|
1980
1980
|
const getSearchBoostBuryRules_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSearchBoostBuryRules', getSearchBoostBuryRulesAdapterFactory), getSearchBoostBuryRulesMetadata);
|
|
@@ -2015,8 +2015,35 @@ withDefaultLuvio((luvio) => {
|
|
|
2015
2015
|
getSearchBoostBuryRules_imperative,
|
|
2016
2016
|
getSuggestions_imperative,
|
|
2017
2017
|
productSearch_imperative,
|
|
2018
|
-
} = bindExportsTo(luvio));
|
|
2018
|
+
} = bindExportsTo$1(luvio));
|
|
2019
|
+
});
|
|
2020
|
+
|
|
2021
|
+
const notifyUpdateAvailableFactory = (luvio) => {
|
|
2022
|
+
// custom override of notifyUpdateAvailable function to bypass luvio key requirement since it is not possible to have
|
|
2023
|
+
// a luvio.key for SearchBoostBuryRulesCollectionOutputRepresentation
|
|
2024
|
+
return function notifySearchBoostBuryRulesCollectionOutputRepresentationUpdateAvailable(webstoreId) {
|
|
2025
|
+
const key = keyBuilder$5(luvio, { urlParams: { webstoreId: webstoreId } });
|
|
2026
|
+
return luvio.notifyStoreUpdateAvailable([key]);
|
|
2027
|
+
};
|
|
2028
|
+
};
|
|
2029
|
+
|
|
2030
|
+
/**
|
|
2031
|
+
* Original file is in 'packages/lds-adapters-commerce-search/src/generated/artifacts/sfdc.ts'
|
|
2032
|
+
* Overriding this file to manually inject custom notifyUpdateAvailableFactory implementation.
|
|
2033
|
+
*/
|
|
2034
|
+
// Notify Update Available
|
|
2035
|
+
// manually injected notifyUpdateAvailable
|
|
2036
|
+
let notifySearchBoostBuryRulesCollectionOutputRepresentationUpdateAvailable;
|
|
2037
|
+
function bindExportsTo(luvio) {
|
|
2038
|
+
return {
|
|
2039
|
+
// Notify Update Availables
|
|
2040
|
+
notifySearchBoostBuryRulesCollectionOutputRepresentationUpdateAvailable: createLDSAdapter(luvio, 'notifySearchBoostBuryRulesCollectionOutputRepresentationUpdateAvailable', notifyUpdateAvailableFactory),
|
|
2041
|
+
};
|
|
2042
|
+
}
|
|
2043
|
+
withDefaultLuvio((luvio) => {
|
|
2044
|
+
({ notifySearchBoostBuryRulesCollectionOutputRepresentationUpdateAvailable } =
|
|
2045
|
+
bindExportsTo(luvio));
|
|
2019
2046
|
});
|
|
2020
2047
|
|
|
2021
|
-
export { createSearchBoostBuryRule, deleteSearchBoostBuryRule, getSearchBoostBuryRule, getSearchBoostBuryRuleNotifyChange, getSearchBoostBuryRule_imperative, getSearchBoostBuryRules, getSearchBoostBuryRules_imperative, getSuggestions, getSuggestions_imperative, productSearch, productSearch_imperative, updateSearchBoostBuryRule };
|
|
2022
|
-
// version: 1.
|
|
2048
|
+
export { createSearchBoostBuryRule, deleteSearchBoostBuryRule, getSearchBoostBuryRule, getSearchBoostBuryRuleNotifyChange, getSearchBoostBuryRule_imperative, getSearchBoostBuryRules, getSearchBoostBuryRules_imperative, getSuggestions, getSuggestions_imperative, notifySearchBoostBuryRulesCollectionOutputRepresentationUpdateAvailable, productSearch, productSearch_imperative, updateSearchBoostBuryRule };
|
|
2049
|
+
// version: 1.353.1-4693659f9b
|