@faststore/core 2.0.154-alpha.0 → 2.0.157-alpha.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/.turbo/turbo-build.log
CHANGED
|
@@ -39,7 +39,7 @@ Route (pages) Size First Load JS
|
|
|
39
39
|
+ First Load JS shared by all 80.7 kB
|
|
40
40
|
├ chunks/framework-dfd14d7ce6600b03.js 45.3 kB
|
|
41
41
|
├ chunks/main-fd466221927468fd.js 23.9 kB
|
|
42
|
-
├ chunks/pages/_app-
|
|
42
|
+
├ chunks/pages/_app-7d4879544fda78a2.js 6.45 kB
|
|
43
43
|
├ chunks/webpack-90918babbeee4949.js 2.26 kB
|
|
44
44
|
└ css/47d82dcec9a7dbc2.css 2.78 kB
|
|
45
45
|
|
|
@@ -181,6 +181,8 @@ export type IStoreSelectedFacet = {
|
|
|
181
181
|
|
|
182
182
|
/** Session input. */
|
|
183
183
|
export type IStoreSession = {
|
|
184
|
+
/** Session input address Type. */
|
|
185
|
+
addressType: InputMaybe<Scalars['String']>
|
|
184
186
|
/** Session input channel. */
|
|
185
187
|
channel: InputMaybe<Scalars['String']>
|
|
186
188
|
/** Session input country. */
|
|
@@ -851,6 +853,8 @@ export type StoreSeo = {
|
|
|
851
853
|
|
|
852
854
|
/** Session information. */
|
|
853
855
|
export type StoreSession = {
|
|
856
|
+
/** Session address Type. */
|
|
857
|
+
addressType: Maybe<Scalars['String']>
|
|
854
858
|
/** Session channel. */
|
|
855
859
|
channel: Maybe<Scalars['String']>
|
|
856
860
|
/** Session country. */
|
|
@@ -1323,6 +1327,7 @@ export type ValidateSessionMutation = {
|
|
|
1323
1327
|
channel: string | null
|
|
1324
1328
|
country: string
|
|
1325
1329
|
postalCode: string | null
|
|
1330
|
+
addressType: string | null
|
|
1326
1331
|
geoCoordinates: { latitude: number; longitude: number } | null
|
|
1327
1332
|
currency: { code: string; symbol: string }
|
|
1328
1333
|
person: {
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
"ProductsQuery": "query ProductsQuery($first: Int!, $after: String, $sort: StoreSort!, $term: String!, $selectedFacets: [IStoreSelectedFacet!]!) {\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n ) {\n products {\n pageInfo {\n totalCount\n }\n edges {\n node {\n id: productID\n slug\n sku\n brand {\n brandName: name\n name\n }\n name\n gtin\n isVariantOf {\n productGroupID\n name\n }\n image {\n url\n alternateName\n }\n offers {\n lowPrice\n offers {\n availability\n price\n listPrice\n quantity\n seller {\n identifier\n }\n }\n }\n }\n }\n }\n }\n}\n",
|
|
9
9
|
"SearchSuggestionsQuery": "query SearchSuggestionsQuery($term: String!, $selectedFacets: [IStoreSelectedFacet!]) {\n search(first: 5, term: $term, selectedFacets: $selectedFacets) {\n suggestions {\n terms {\n value\n }\n products {\n id: productID\n slug\n sku\n brand {\n brandName: name\n name\n }\n name\n gtin\n isVariantOf {\n productGroupID\n name\n }\n image {\n url\n alternateName\n }\n offers {\n lowPrice\n offers {\n availability\n price\n listPrice\n quantity\n seller {\n identifier\n }\n }\n }\n }\n }\n }\n}\n",
|
|
10
10
|
"TopSearchSuggestionsQuery": "query TopSearchSuggestionsQuery($term: String!, $selectedFacets: [IStoreSelectedFacet!]) {\n search(first: 5, term: $term, selectedFacets: $selectedFacets) {\n suggestions {\n terms {\n value\n }\n }\n }\n}\n",
|
|
11
|
-
"ValidateSession": "mutation ValidateSession($session: IStoreSession!, $search: String!) {\n validateSession(session: $session, search: $search) {\n locale\n channel\n country\n postalCode\n geoCoordinates {\n latitude\n longitude\n }\n currency {\n code\n symbol\n }\n person {\n id\n email\n givenName\n familyName\n }\n }\n}\n",
|
|
11
|
+
"ValidateSession": "mutation ValidateSession($session: IStoreSession!, $search: String!) {\n validateSession(session: $session, search: $search) {\n locale\n channel\n country\n postalCode\n addressType\n geoCoordinates {\n latitude\n longitude\n }\n currency {\n code\n symbol\n }\n person {\n id\n email\n givenName\n familyName\n }\n }\n}\n",
|
|
12
12
|
"ShippingSimulationQuery": "query ShippingSimulationQuery($postalCode: String!, $country: String!, $items: [IShippingItem!]!) {\n shipping(items: $items, postalCode: $postalCode, country: $country) {\n logisticsInfo {\n slas {\n carrier\n price\n shippingEstimate\n localizedEstimates\n }\n }\n address {\n city\n neighborhood\n }\n }\n}\n"
|
|
13
13
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.0.157-alpha.0](https://github.com/vtex/faststore/compare/v2.0.156-alpha.0...v2.0.157-alpha.0) (2023-05-23)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @faststore/core
|
|
9
|
+
|
|
10
|
+
## [2.0.156-alpha.0](https://github.com/vtex/faststore/compare/v2.0.155-alpha.0...v2.0.156-alpha.0) (2023-05-23)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @faststore/core
|
|
13
|
+
|
|
6
14
|
## [2.0.154-alpha.0](https://github.com/vtex/faststore/compare/v2.0.153-alpha.0...v2.0.154-alpha.0) (2023-05-23)
|
|
7
15
|
|
|
8
16
|
### Features
|
package/faststore.config.js
CHANGED
|
@@ -18,6 +18,7 @@ module.exports = {
|
|
|
18
18
|
workspace: 'master',
|
|
19
19
|
environment: 'vtexcommercestable',
|
|
20
20
|
hideUnavailableItems: true,
|
|
21
|
+
incrementAddress: false,
|
|
21
22
|
},
|
|
22
23
|
|
|
23
24
|
// Default session
|
|
@@ -29,6 +30,7 @@ module.exports = {
|
|
|
29
30
|
locale: 'en-US',
|
|
30
31
|
channel: '{"salesChannel":"1","regionId":""}',
|
|
31
32
|
country: 'USA',
|
|
33
|
+
addressType: null,
|
|
32
34
|
postalCode: null,
|
|
33
35
|
geoCoordinates: null,
|
|
34
36
|
person: null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.157-alpha.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"browserslist": "supports es6-module and not dead",
|
|
6
6
|
"scripts": {
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"@envelop/graphql-jit": "^1.1.1",
|
|
30
30
|
"@envelop/parser-cache": "^2.2.0",
|
|
31
31
|
"@envelop/validation-cache": "^2.2.0",
|
|
32
|
-
"@faststore/api": "^2.0.
|
|
32
|
+
"@faststore/api": "^2.0.157-alpha.0",
|
|
33
33
|
"@faststore/components": "^2.0.152-alpha.0",
|
|
34
34
|
"@faststore/graphql-utils": "^2.0.3-alpha.0",
|
|
35
|
-
"@faststore/sdk": "^2.0.
|
|
35
|
+
"@faststore/sdk": "^2.0.156-alpha.0",
|
|
36
36
|
"@faststore/ui": "^2.0.154-alpha.0",
|
|
37
37
|
"@types/react": "^18.0.14",
|
|
38
38
|
"@vtex/client-cms": "^0.2.12",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"msw": {
|
|
109
109
|
"workerDirectory": "public"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "2fe3d9c5452955ce2444486eefb015a9b9921ccf"
|
|
112
112
|
}
|
package/src/sdk/session/index.ts
CHANGED
package/src/server/index.ts
CHANGED
|
@@ -29,6 +29,7 @@ const apiOptions: APIOptions = {
|
|
|
29
29
|
account: storeConfig.api.storeId,
|
|
30
30
|
environment: storeConfig.api.environment as APIOptions['environment'],
|
|
31
31
|
hideUnavailableItems: storeConfig.api.hideUnavailableItems,
|
|
32
|
+
incrementAddress: storeConfig.api.incrementAddress,
|
|
32
33
|
channel: storeConfig.session.channel,
|
|
33
34
|
locale: storeConfig.session.locale,
|
|
34
35
|
flags: {
|