@faststore/core 3.0.119 → 3.0.122
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/371.js +1 -1
- package/.next/server/chunks/430.js +1 -1
- package/.next/server/chunks/646.js +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 +1 -1
- package/.next/server/pages/en-US/500.html +1 -1
- package/.next/server/pages/en-US/account.html +1 -1
- package/.next/server/pages/en-US/checkout.html +1 -1
- package/.next/server/pages/en-US/login.html +1 -1
- package/.next/server/pages/en-US/s.html +1 -1
- package/.next/server/pages/en-US.html +2 -2
- package/.next/server/pages-manifest.json +1 -1
- package/.next/static/{edfaQecxEidG7pfmnhQrw → L_uh5W_Q_OoxZnMAIsC5n}/_buildManifest.js +1 -1
- package/.next/static/chunks/{968-c54b14bfbaa726e6.js → 968-fed67c31f0fa4d91.js} +1 -1
- package/.next/static/chunks/pages/{_app-5260af30f47ea9f3.js → _app-1137bddee8be825f.js} +1 -1
- package/.next/trace +95 -95
- package/.turbo/turbo-build.log +2 -2
- 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/discovery.config.default.js +1 -0
- package/package.json +4 -4
- package/src/sdk/session/index.ts +3 -0
- /package/.next/static/{edfaQecxEidG7pfmnhQrw → L_uh5W_Q_OoxZnMAIsC5n}/_ssgManifest.js +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -57,8 +57,8 @@ Import trace for requested module:
|
|
|
57
57
|
Collecting page data ...
|
|
58
58
|
Generating static pages (0/7) ...
|
|
59
59
|
|
|
60
60
|
Generating static pages (1/7)
|
|
61
|
-
|
|
62
61
|
Generating static pages (3/7)
|
|
63
62
|
Warning: Dynamic Content not found for the page: home. Refer to the Dynamic Content documentation at https://developers.vtex.com/docs/guides/faststore/dynamic-content-overview for mapping the page and the corresponding data-fetching function.
|
|
63
|
+
|
|
64
64
|
Generating static pages (3/7)
|
|
65
65
|
|
|
66
66
|
Generating static pages (5/7)
|
|
67
67
|
|
|
68
68
|
✓ Generating static pages (7/7)
|
|
69
69
|
Finalizing page optimization ...
|
|
@@ -85,7 +85,7 @@ Route (pages) Size First Load JS
|
|
|
85
85
|
+ First Load JS shared by all 93.8 kB
|
|
86
86
|
├ chunks/framework-8e279965036b6169.js 45.4 kB
|
|
87
87
|
├ chunks/main-029f1328cfee9686.js 33.1 kB
|
|
88
|
-
├ chunks/pages/_app-
|
|
88
|
+
├ chunks/pages/_app-1137bddee8be825f.js 9.96 kB
|
|
89
89
|
├ chunks/webpack-5b0bd69e10af14e4.js 2.38 kB
|
|
90
90
|
└ css/ee0556daedda6306.css 3.07 kB
|
|
91
91
|
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
$ jest
|
|
2
|
-
PASS test/utils/multipleTemplates.test.ts (35.
|
|
3
|
-
PASS test/server/cms/index.test.ts (
|
|
4
|
-
PASS test/server/index.test.ts (
|
|
2
|
+
PASS test/utils/multipleTemplates.test.ts (35.629 s)
|
|
3
|
+
PASS test/server/cms/index.test.ts (35.787 s)
|
|
4
|
+
PASS test/server/index.test.ts (38.964 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: 40.
|
|
9
|
+
Time: 40.012 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
|
@@ -181,6 +181,10 @@ export type IShippingItem = {
|
|
|
181
181
|
seller: Scalars['String']['input']
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
+
export type IStoreB2B = {
|
|
185
|
+
customerId: Scalars['String']['input']
|
|
186
|
+
}
|
|
187
|
+
|
|
184
188
|
/** Shopping cart input. */
|
|
185
189
|
export type IStoreCart = {
|
|
186
190
|
/** Order information, including `orderNumber`, `acceptedOffer` and `shouldSplitItem`. */
|
|
@@ -303,6 +307,8 @@ export type IStoreSelectedFacet = {
|
|
|
303
307
|
export type IStoreSession = {
|
|
304
308
|
/** Session input address type. */
|
|
305
309
|
addressType: InputMaybe<Scalars['String']['input']>
|
|
310
|
+
/** Session input b2b. */
|
|
311
|
+
b2b: InputMaybe<IStoreB2B>
|
|
306
312
|
/** Session input channel. */
|
|
307
313
|
channel: InputMaybe<Scalars['String']['input']>
|
|
308
314
|
/** Session input country. */
|
|
@@ -649,6 +655,10 @@ export type StoreAuthor = {
|
|
|
649
655
|
name: Scalars['String']['output']
|
|
650
656
|
}
|
|
651
657
|
|
|
658
|
+
export type StoreB2B = {
|
|
659
|
+
customerId: Scalars['String']['output']
|
|
660
|
+
}
|
|
661
|
+
|
|
652
662
|
/** Brand of a given product. */
|
|
653
663
|
export type StoreBrand = {
|
|
654
664
|
/** Brand name. */
|
|
@@ -1056,6 +1066,8 @@ export type StoreSeo = {
|
|
|
1056
1066
|
export type StoreSession = {
|
|
1057
1067
|
/** Session address type. */
|
|
1058
1068
|
addressType: Maybe<Scalars['String']['output']>
|
|
1069
|
+
/** B2B Information. */
|
|
1070
|
+
b2b: Maybe<StoreB2B>
|
|
1059
1071
|
/** Session channel. */
|
|
1060
1072
|
channel: Maybe<Scalars['String']['output']>
|
|
1061
1073
|
/** Session country. */
|
|
@@ -1620,6 +1632,7 @@ export type ValidateSessionMutation = {
|
|
|
1620
1632
|
givenName: string
|
|
1621
1633
|
familyName: string
|
|
1622
1634
|
} | null
|
|
1635
|
+
b2b: { customerId: string } | null
|
|
1623
1636
|
} | null
|
|
1624
1637
|
}
|
|
1625
1638
|
|
|
@@ -2119,7 +2132,7 @@ export const ClientTopSearchSuggestionsQueryDocument = {
|
|
|
2119
2132
|
export const ValidateSessionDocument = {
|
|
2120
2133
|
__meta__: {
|
|
2121
2134
|
operationName: 'ValidateSession',
|
|
2122
|
-
operationHash: '
|
|
2135
|
+
operationHash: '1e69c734ed31bd9e763a34fe9660f5bbad3fd143',
|
|
2123
2136
|
},
|
|
2124
2137
|
} as unknown as TypedDocumentString<
|
|
2125
2138
|
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
|
"4d9f934764d8578aea08673b8ba57e8bf738f534": "fragment ClientSearchSuggestions on Query { search(first: 5, term: $term, selectedFacets: $selectedFacets) { suggestions { terms { value } } } } fragment ProductSummary_product on StoreProduct { additionalProperty { name propertyID value valueReference } advertisement { adId adResponseId } 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
|
}
|
|
@@ -771,6 +771,16 @@ type StoreSession {
|
|
|
771
771
|
geoCoordinates: StoreGeoCoordinates
|
|
772
772
|
"""Session input person."""
|
|
773
773
|
person: StorePerson
|
|
774
|
+
"""B2B Information."""
|
|
775
|
+
b2b: StoreB2B
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
type StoreB2B {
|
|
779
|
+
customerId: String!
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
input IStoreB2B {
|
|
783
|
+
customerId: String!
|
|
774
784
|
}
|
|
775
785
|
|
|
776
786
|
"""Session input."""
|
|
@@ -793,6 +803,8 @@ input IStoreSession {
|
|
|
793
803
|
geoCoordinates: IStoreGeoCoordinates
|
|
794
804
|
"""Session input person."""
|
|
795
805
|
person: IStorePerson
|
|
806
|
+
"""Session input b2b."""
|
|
807
|
+
b2b: IStoreB2B
|
|
796
808
|
}
|
|
797
809
|
|
|
798
810
|
"""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.122",
|
|
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.122",
|
|
47
47
|
"@faststore/components": "^3.0.116",
|
|
48
48
|
"@faststore/graphql-utils": "^3.0.116",
|
|
49
49
|
"@faststore/lighthouse": "^3.0.116",
|
|
50
|
-
"@faststore/sdk": "^3.0.
|
|
50
|
+
"@faststore/sdk": "^3.0.120",
|
|
51
51
|
"@faststore/ui": "^3.0.116",
|
|
52
52
|
"@graphql-codegen/cli": "^5.0.2",
|
|
53
53
|
"@graphql-codegen/client-preset": "^4.2.6",
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"node": "18.19.0",
|
|
129
129
|
"yarn": "1.19.1"
|
|
130
130
|
},
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "e1b59dbac520b276dd759e7a78100ab94edfcbb8"
|
|
132
132
|
}
|
package/src/sdk/session/index.ts
CHANGED
|
File without changes
|