@faststore/core 3.0.106 → 3.0.107
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/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +12 -12
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/config.json +3 -3
- package/.next/cache/eslint/.cache_1gneedd +1 -1
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/next-minimal-server.js.nft.json +1 -1
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.js +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/350.js +1 -1
- package/.next/server/chunks/498.js +1 -1
- package/.next/server/chunks/646.js +1 -1
- package/.next/server/chunks/997.js +1 -1
- package/.next/server/functions-config-manifest.json +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/api/graphql.js +1 -1
- package/.next/server/pages/en-US/404.html +2 -2
- package/.next/server/pages/en-US/500.html +2 -2
- package/.next/server/pages/en-US/account.html +2 -2
- package/.next/server/pages/en-US/checkout.html +2 -2
- package/.next/server/pages/en-US/login.html +2 -2
- package/.next/server/pages/en-US/s.html +2 -2
- package/.next/server/pages/en-US.html +2 -2
- package/.next/server/pages-manifest.json +1 -1
- package/.next/static/chunks/{104-6c6df4defdfdd68c.js → 104-bb0b8ad9205c881c.js} +1 -1
- package/.next/static/chunks/pages/{_app-8adad0ff3ff11810.js → _app-7ba31458f9877137.js} +1 -1
- package/.next/static/{z_lnfb_ZhpUfoYqzu_V6R → y2wQ4NssxBmOhNvEGeakP}/_buildManifest.js +1 -1
- package/.next/trace +95 -95
- package/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-test.log +4 -4
- package/@generated/gql.ts +2 -2
- package/@generated/graphql.ts +14 -1
- package/@generated/persisted-documents.json +1 -1
- package/@generated/schema.graphql +12 -0
- package/faststore.config.default.js +1 -0
- package/package.json +4 -4
- package/src/sdk/session/index.ts +3 -0
- /package/.next/static/{z_lnfb_ZhpUfoYqzu_V6R → y2wQ4NssxBmOhNvEGeakP}/_ssgManifest.js +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -70,7 +70,7 @@ Route (pages) Size First Load JS
|
|
|
70
70
|
+ First Load JS shared by all 96.8 kB
|
|
71
71
|
├ chunks/framework-8e279965036b6169.js 45.4 kB
|
|
72
72
|
├ chunks/main-6f63f6746cc029db.js 33.1 kB
|
|
73
|
-
├ chunks/pages/_app-
|
|
73
|
+
├ chunks/pages/_app-7ba31458f9877137.js 12.8 kB
|
|
74
74
|
├ chunks/webpack-38982d1550c1a866.js 2.45 kB
|
|
75
75
|
└ css/ee0556daedda6306.css 3.07 kB
|
|
76
76
|
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
$ jest
|
|
2
|
-
PASS test/
|
|
3
|
-
PASS test/
|
|
4
|
-
PASS test/server/index.test.ts (37.
|
|
2
|
+
PASS test/server/cms/index.test.ts (34.072 s)
|
|
3
|
+
PASS test/utils/multipleTemplates.test.ts (34.869 s)
|
|
4
|
+
PASS test/server/index.test.ts (37.915 s)
|
|
5
5
|
|
|
6
6
|
Test Suites: 3 passed, 3 total
|
|
7
7
|
Tests: 19 passed, 19 total
|
|
8
8
|
Snapshots: 0 total
|
|
9
|
-
Time:
|
|
9
|
+
Time: 39.175 s
|
|
10
10
|
Ran all test suites.
|
package/@generated/gql.ts
CHANGED
|
@@ -52,7 +52,7 @@ const documents = {
|
|
|
52
52
|
types.ClientSearchSuggestionsQueryDocument,
|
|
53
53
|
'\n query ClientTopSearchSuggestionsQuery(\n $term: String!\n $selectedFacets: [IStoreSelectedFacet!]\n ) {\n ...ClientTopSearchSuggestions\n search(first: 5, term: $term, selectedFacets: $selectedFacets) {\n suggestions {\n terms {\n value\n }\n }\n }\n }\n':
|
|
54
54
|
types.ClientTopSearchSuggestionsQueryDocument,
|
|
55
|
-
'\n mutation ValidateSession($session: IStoreSession!, $search: String!) {\n validateSession(session: $session, search: $search) {\n locale\n channel\n country\n addressType\n postalCode\n deliveryMode {\n deliveryChannel\n deliveryMethod\n deliveryWindow {\n startDate\n endDate\n }\n }\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':
|
|
55
|
+
'\n mutation ValidateSession($session: IStoreSession!, $search: String!) {\n validateSession(session: $session, search: $search) {\n locale\n channel\n country\n addressType\n postalCode\n deliveryMode {\n deliveryChannel\n deliveryMethod\n deliveryWindow {\n startDate\n endDate\n }\n }\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 b2b {\n customerId\n }\n }\n }\n':
|
|
56
56
|
types.ValidateSessionDocument,
|
|
57
57
|
'\n query ClientShippingSimulationQuery(\n $postalCode: String!\n $country: String!\n $items: [IShippingItem!]!\n ) {\n ...ClientShippingSimulation\n shipping(items: $items, postalCode: $postalCode, country: $country) {\n logisticsInfo {\n slas {\n carrier\n price\n availableDeliveryWindows {\n startDateUtc\n endDateUtc\n price\n listPrice\n }\n shippingEstimate\n localizedEstimates\n }\n }\n address {\n city\n neighborhood\n state\n }\n }\n }\n':
|
|
58
58
|
types.ClientShippingSimulationQueryDocument,
|
|
@@ -182,7 +182,7 @@ export function gql(
|
|
|
182
182
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
183
183
|
*/
|
|
184
184
|
export function gql(
|
|
185
|
-
source: '\n mutation ValidateSession($session: IStoreSession!, $search: String!) {\n validateSession(session: $session, search: $search) {\n locale\n channel\n country\n addressType\n postalCode\n deliveryMode {\n deliveryChannel\n deliveryMethod\n deliveryWindow {\n startDate\n endDate\n }\n }\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'
|
|
185
|
+
source: '\n mutation ValidateSession($session: IStoreSession!, $search: String!) {\n validateSession(session: $session, search: $search) {\n locale\n channel\n country\n addressType\n postalCode\n deliveryMode {\n deliveryChannel\n deliveryMethod\n deliveryWindow {\n startDate\n endDate\n }\n }\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 b2b {\n customerId\n }\n }\n }\n'
|
|
186
186
|
): typeof import('./graphql').ValidateSessionDocument
|
|
187
187
|
/**
|
|
188
188
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
package/@generated/graphql.ts
CHANGED
|
@@ -167,6 +167,10 @@ export type IShippingItem = {
|
|
|
167
167
|
seller: Scalars['String']['input']
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
+
export type IStoreB2B = {
|
|
171
|
+
customerId: Scalars['String']['input']
|
|
172
|
+
}
|
|
173
|
+
|
|
170
174
|
/** Shopping cart input. */
|
|
171
175
|
export type IStoreCart = {
|
|
172
176
|
/** Order information, including `orderNumber`, `acceptedOffer` and `shouldSplitItem`. */
|
|
@@ -289,6 +293,8 @@ export type IStoreSelectedFacet = {
|
|
|
289
293
|
export type IStoreSession = {
|
|
290
294
|
/** Session input address type. */
|
|
291
295
|
addressType: InputMaybe<Scalars['String']['input']>
|
|
296
|
+
/** Session input b2b. */
|
|
297
|
+
b2b: InputMaybe<IStoreB2B>
|
|
292
298
|
/** Session input channel. */
|
|
293
299
|
channel: InputMaybe<Scalars['String']['input']>
|
|
294
300
|
/** Session input country. */
|
|
@@ -635,6 +641,10 @@ export type StoreAuthor = {
|
|
|
635
641
|
name: Scalars['String']['output']
|
|
636
642
|
}
|
|
637
643
|
|
|
644
|
+
export type StoreB2B = {
|
|
645
|
+
customerId: Scalars['String']['output']
|
|
646
|
+
}
|
|
647
|
+
|
|
638
648
|
/** Brand of a given product. */
|
|
639
649
|
export type StoreBrand = {
|
|
640
650
|
/** Brand name. */
|
|
@@ -1040,6 +1050,8 @@ export type StoreSeo = {
|
|
|
1040
1050
|
export type StoreSession = {
|
|
1041
1051
|
/** Session address type. */
|
|
1042
1052
|
addressType: Maybe<Scalars['String']['output']>
|
|
1053
|
+
/** B2B Information. */
|
|
1054
|
+
b2b: Maybe<StoreB2B>
|
|
1043
1055
|
/** Session channel. */
|
|
1044
1056
|
channel: Maybe<Scalars['String']['output']>
|
|
1045
1057
|
/** Session country. */
|
|
@@ -1601,6 +1613,7 @@ export type ValidateSessionMutation = {
|
|
|
1601
1613
|
givenName: string
|
|
1602
1614
|
familyName: string
|
|
1603
1615
|
} | null
|
|
1616
|
+
b2b: { customerId: string } | null
|
|
1604
1617
|
} | null
|
|
1605
1618
|
}
|
|
1606
1619
|
|
|
@@ -2096,7 +2109,7 @@ export const ClientTopSearchSuggestionsQueryDocument = {
|
|
|
2096
2109
|
export const ValidateSessionDocument = {
|
|
2097
2110
|
__meta__: {
|
|
2098
2111
|
operationName: 'ValidateSession',
|
|
2099
|
-
operationHash: '
|
|
2112
|
+
operationHash: '1e69c734ed31bd9e763a34fe9660f5bbad3fd143',
|
|
2100
2113
|
},
|
|
2101
2114
|
} as unknown as TypedDocumentString<
|
|
2102
2115
|
ValidateSessionMutation,
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
"7d121ef8d4dc99174e64e4429a9b977b8bbebed8": "fragment CartProductItem on StoreProduct { additionalProperty { name propertyID value valueReference } brand { name } gtin image { alternateName url } isVariantOf { name productGroupID skuVariants { activeVariations availableVariations slugsMap } } name sku unitMultiplier } fragment ClientProduct on Query { product(locator: $locator) { id: productID } } fragment ProductDetailsFragment_product on StoreProduct { additionalProperty { name propertyID value valueReference } brand { name } description gtin image { alternateName url } isVariantOf { name productGroupID skuVariants { activeVariations availableVariations slugsMap } } name offers { lowPrice lowPriceWithTaxes offers { availability listPrice listPriceWithTaxes price priceWithTaxes seller { identifier } } } id: productID sku unitMultiplier ...CartProductItem } query ClientProductQuery($locator: [IStoreSelectedFacet!]!) { product(locator: $locator) { ...ProductDetailsFragment_product } ...ClientProduct }",
|
|
9
9
|
"71809c86cb940861f01bcc57dbaf57e6f41cb378": "fragment ClientSearchSuggestions on Query { search(first: 5, term: $term, selectedFacets: $selectedFacets) { suggestions { terms { value } } } } fragment ProductSummary_product on StoreProduct { additionalProperty { name propertyID value valueReference } brand { brandName: name } brand { name } gtin image { alternateName url } isVariantOf { name productGroupID } name offers { lowPrice lowPriceWithTaxes offers { availability listPrice listPriceWithTaxes price quantity seller { identifier } } } id: productID sku slug } fragment SearchEvent_metadata on SearchMetadata { isTermMisspelled logicalOperator } query ClientSearchSuggestionsQuery($selectedFacets: [IStoreSelectedFacet!], $term: String!) { search(first: 5, term: $term, selectedFacets: $selectedFacets) { metadata { ...SearchEvent_metadata } products { pageInfo { totalCount } } suggestions { products { ...ProductSummary_product } terms { value } } } ...ClientSearchSuggestions }",
|
|
10
10
|
"e2385b0f11726d0068f96548f57a8dd441c064e3": "fragment ClientTopSearchSuggestions on Query { search(first: 5, term: $term, selectedFacets: $selectedFacets) { suggestions { terms { value } } } } query ClientTopSearchSuggestionsQuery($selectedFacets: [IStoreSelectedFacet!], $term: String!) { search(first: 5, term: $term, selectedFacets: $selectedFacets) { suggestions { terms { value } } } ...ClientTopSearchSuggestions }",
|
|
11
|
-
"
|
|
11
|
+
"1e69c734ed31bd9e763a34fe9660f5bbad3fd143": "mutation ValidateSession($search: String!, $session: IStoreSession!) { validateSession(session: $session, search: $search) { addressType b2b { customerId } channel country currency { code symbol } deliveryMode { deliveryChannel deliveryMethod deliveryWindow { endDate startDate } } geoCoordinates { latitude longitude } locale person { email familyName givenName id } postalCode } }",
|
|
12
12
|
"d6667f1de2a26b94b9b55f4b25d7d823f82635a0": "fragment ClientShippingSimulation on Query { shipping(items: $items, postalCode: $postalCode, country: $country) { address { city } } } query ClientShippingSimulationQuery($country: String!, $items: [IShippingItem!]!, $postalCode: String!) { shipping(items: $items, postalCode: $postalCode, country: $country) { address { city neighborhood state } logisticsInfo { slas { availableDeliveryWindows { endDateUtc listPrice price startDateUtc } carrier localizedEstimates price shippingEstimate } } } ...ClientShippingSimulation }"
|
|
13
13
|
}
|
|
@@ -755,6 +755,16 @@ type StoreSession {
|
|
|
755
755
|
geoCoordinates: StoreGeoCoordinates
|
|
756
756
|
"""Session input person."""
|
|
757
757
|
person: StorePerson
|
|
758
|
+
"""B2B Information."""
|
|
759
|
+
b2b: StoreB2B
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
type StoreB2B {
|
|
763
|
+
customerId: String!
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
input IStoreB2B {
|
|
767
|
+
customerId: String!
|
|
758
768
|
}
|
|
759
769
|
|
|
760
770
|
"""Session input."""
|
|
@@ -777,6 +787,8 @@ input IStoreSession {
|
|
|
777
787
|
geoCoordinates: IStoreGeoCoordinates
|
|
778
788
|
"""Session input person."""
|
|
779
789
|
person: IStorePerson
|
|
790
|
+
"""Session input b2b."""
|
|
791
|
+
b2b: IStoreB2B
|
|
780
792
|
}
|
|
781
793
|
|
|
782
794
|
"""Shipping Simulation item input."""
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.107",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "vtex/faststore",
|
|
6
6
|
"browserslist": "supports es6-module and not dead",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"@envelop/graphql-jit": "^1.1.1",
|
|
44
44
|
"@envelop/parser-cache": "^2.2.0",
|
|
45
45
|
"@envelop/validation-cache": "^2.2.0",
|
|
46
|
-
"@faststore/api": "^3.0.
|
|
46
|
+
"@faststore/api": "^3.0.107",
|
|
47
47
|
"@faststore/components": "^3.0.103",
|
|
48
48
|
"@faststore/graphql-utils": "^3.0.97",
|
|
49
49
|
"@faststore/lighthouse": "^3.0.97",
|
|
50
|
-
"@faststore/sdk": "^3.0.
|
|
50
|
+
"@faststore/sdk": "^3.0.107",
|
|
51
51
|
"@faststore/ui": "^3.0.103",
|
|
52
52
|
"@graphql-codegen/cli": "^5.0.2",
|
|
53
53
|
"@graphql-codegen/client-preset": "^4.2.6",
|
|
@@ -130,5 +130,5 @@
|
|
|
130
130
|
"node": "18.19.0",
|
|
131
131
|
"yarn": "1.19.1"
|
|
132
132
|
},
|
|
133
|
-
"gitHead": "
|
|
133
|
+
"gitHead": "76421761da22073a9c6a19c95667b43a5bd5839d"
|
|
134
134
|
}
|
package/src/sdk/session/index.ts
CHANGED
|
File without changes
|