@faststore/core 3.0.107 → 3.0.108
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/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/{y2wQ4NssxBmOhNvEGeakP → AQludCvB2MWgdqYw5C2Np}/_buildManifest.js +1 -1
- package/.next/static/chunks/{104-bb0b8ad9205c881c.js → 104-6c6df4defdfdd68c.js} +1 -1
- package/.next/static/chunks/pages/{_app-7ba31458f9877137.js → _app-8adad0ff3ff11810.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 +1 -14
- package/@generated/persisted-documents.json +1 -1
- package/@generated/schema.graphql +0 -12
- package/faststore.config.default.js +0 -1
- package/package.json +4 -4
- package/src/sdk/session/index.ts +0 -3
- /package/.next/static/{y2wQ4NssxBmOhNvEGeakP → AQludCvB2MWgdqYw5C2Np}/_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-8adad0ff3ff11810.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/server/cms/index.test.ts (34.
|
|
3
|
-
PASS test/utils/multipleTemplates.test.ts (34.
|
|
4
|
-
PASS test/server/index.test.ts (37.
|
|
2
|
+
PASS test/server/cms/index.test.ts (34.205 s)
|
|
3
|
+
PASS test/utils/multipleTemplates.test.ts (34.855 s)
|
|
4
|
+
PASS test/server/index.test.ts (37.894 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: 38.983 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
|
|
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':
|
|
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
|
|
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'
|
|
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,10 +167,6 @@ export type IShippingItem = {
|
|
|
167
167
|
seller: Scalars['String']['input']
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
export type IStoreB2B = {
|
|
171
|
-
customerId: Scalars['String']['input']
|
|
172
|
-
}
|
|
173
|
-
|
|
174
170
|
/** Shopping cart input. */
|
|
175
171
|
export type IStoreCart = {
|
|
176
172
|
/** Order information, including `orderNumber`, `acceptedOffer` and `shouldSplitItem`. */
|
|
@@ -293,8 +289,6 @@ export type IStoreSelectedFacet = {
|
|
|
293
289
|
export type IStoreSession = {
|
|
294
290
|
/** Session input address type. */
|
|
295
291
|
addressType: InputMaybe<Scalars['String']['input']>
|
|
296
|
-
/** Session input b2b. */
|
|
297
|
-
b2b: InputMaybe<IStoreB2B>
|
|
298
292
|
/** Session input channel. */
|
|
299
293
|
channel: InputMaybe<Scalars['String']['input']>
|
|
300
294
|
/** Session input country. */
|
|
@@ -641,10 +635,6 @@ export type StoreAuthor = {
|
|
|
641
635
|
name: Scalars['String']['output']
|
|
642
636
|
}
|
|
643
637
|
|
|
644
|
-
export type StoreB2B = {
|
|
645
|
-
customerId: Scalars['String']['output']
|
|
646
|
-
}
|
|
647
|
-
|
|
648
638
|
/** Brand of a given product. */
|
|
649
639
|
export type StoreBrand = {
|
|
650
640
|
/** Brand name. */
|
|
@@ -1050,8 +1040,6 @@ export type StoreSeo = {
|
|
|
1050
1040
|
export type StoreSession = {
|
|
1051
1041
|
/** Session address type. */
|
|
1052
1042
|
addressType: Maybe<Scalars['String']['output']>
|
|
1053
|
-
/** B2B Information. */
|
|
1054
|
-
b2b: Maybe<StoreB2B>
|
|
1055
1043
|
/** Session channel. */
|
|
1056
1044
|
channel: Maybe<Scalars['String']['output']>
|
|
1057
1045
|
/** Session country. */
|
|
@@ -1613,7 +1601,6 @@ export type ValidateSessionMutation = {
|
|
|
1613
1601
|
givenName: string
|
|
1614
1602
|
familyName: string
|
|
1615
1603
|
} | null
|
|
1616
|
-
b2b: { customerId: string } | null
|
|
1617
1604
|
} | null
|
|
1618
1605
|
}
|
|
1619
1606
|
|
|
@@ -2109,7 +2096,7 @@ export const ClientTopSearchSuggestionsQueryDocument = {
|
|
|
2109
2096
|
export const ValidateSessionDocument = {
|
|
2110
2097
|
__meta__: {
|
|
2111
2098
|
operationName: 'ValidateSession',
|
|
2112
|
-
operationHash: '
|
|
2099
|
+
operationHash: '5696202828f9275216a445e316ebf516f168c506',
|
|
2113
2100
|
},
|
|
2114
2101
|
} as unknown as TypedDocumentString<
|
|
2115
2102
|
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
|
+
"5696202828f9275216a445e316ebf516f168c506": "mutation ValidateSession($search: String!, $session: IStoreSession!) { validateSession(session: $session, search: $search) { addressType 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,16 +755,6 @@ 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!
|
|
768
758
|
}
|
|
769
759
|
|
|
770
760
|
"""Session input."""
|
|
@@ -787,8 +777,6 @@ input IStoreSession {
|
|
|
787
777
|
geoCoordinates: IStoreGeoCoordinates
|
|
788
778
|
"""Session input person."""
|
|
789
779
|
person: IStorePerson
|
|
790
|
-
"""Session input b2b."""
|
|
791
|
-
b2b: IStoreB2B
|
|
792
780
|
}
|
|
793
781
|
|
|
794
782
|
"""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.108",
|
|
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.108",
|
|
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.108",
|
|
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": "300edadb11511cf916d3770fb6f59194b3b38653"
|
|
134
134
|
}
|
package/src/sdk/session/index.ts
CHANGED
|
File without changes
|