@faststore/api 2.1.33 → 2.1.38
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/api.cjs.development.js +8 -8
- package/dist/api.cjs.development.js.map +1 -1
- package/dist/api.cjs.production.min.js +1 -1
- package/dist/api.cjs.production.min.js.map +1 -1
- package/dist/api.esm.js +8 -8
- package/dist/api.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/platforms/vtex/clients/commerce/index.ts +1 -1
- package/src/platforms/vtex/clients/search/index.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/api",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.38",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"@envelop/core": "^1 || ^2",
|
|
57
57
|
"graphql": "^15.6.0"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "cd01b62a902d6458d6d27e7e622b4a5465dd8c91"
|
|
60
60
|
}
|
|
@@ -261,7 +261,7 @@ export const VtexCommerce = (
|
|
|
261
261
|
}
|
|
262
262
|
},
|
|
263
263
|
getSessionOrder: (): Promise<Session> => {
|
|
264
|
-
return fetchAPI(`${base}/api/sessions?items=
|
|
264
|
+
return fetchAPI(`${base}/api/sessions?items=public.orderFormId`, {
|
|
265
265
|
method: 'GET',
|
|
266
266
|
headers: {
|
|
267
267
|
'content-type': 'application/json',
|
|
@@ -83,7 +83,7 @@ export const IntelligentSearch = (
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
const addDefaultFacets = (facets: SelectedFacet[]) => {
|
|
86
|
-
const
|
|
86
|
+
const withDefaultFacets = facets.filter(({ key }) => !CHANNEL_KEYS.has(key))
|
|
87
87
|
|
|
88
88
|
const policyFacet =
|
|
89
89
|
facets.find(({ key }) => key === POLICY_KEY) ?? getPolicyFacet()
|
|
@@ -92,14 +92,14 @@ export const IntelligentSearch = (
|
|
|
92
92
|
facets.find(({ key }) => key === REGION_KEY) ?? getRegionFacet()
|
|
93
93
|
|
|
94
94
|
if (policyFacet !== null) {
|
|
95
|
-
|
|
95
|
+
withDefaultFacets.push(policyFacet)
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
if (regionFacet !== null) {
|
|
99
|
-
|
|
99
|
+
withDefaultFacets.push(regionFacet)
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
return
|
|
102
|
+
return withDefaultFacets
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
const search = <T>({
|