@faststore/core 3.0.107 → 3.0.109

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.
Files changed (54) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +12 -12
  3. package/.next/cache/.tsbuildinfo +1 -1
  4. package/.next/cache/config.json +3 -3
  5. package/.next/cache/eslint/.cache_1gneedd +1 -1
  6. package/.next/cache/webpack/client-production/0.pack +0 -0
  7. package/.next/cache/webpack/client-production/index.pack +0 -0
  8. package/.next/cache/webpack/server-production/0.pack +0 -0
  9. package/.next/cache/webpack/server-production/index.pack +0 -0
  10. package/.next/next-minimal-server.js.nft.json +1 -1
  11. package/.next/next-server.js.nft.json +1 -1
  12. package/.next/prerender-manifest.js +1 -1
  13. package/.next/prerender-manifest.json +1 -1
  14. package/.next/routes-manifest.json +1 -1
  15. package/.next/server/chunks/350.js +1 -1
  16. package/.next/server/chunks/498.js +1 -1
  17. package/.next/server/chunks/646.js +1 -1
  18. package/.next/server/chunks/933.js +1 -1
  19. package/.next/server/chunks/997.js +1 -1
  20. package/.next/server/functions-config-manifest.json +1 -1
  21. package/.next/server/middleware-build-manifest.js +1 -1
  22. package/.next/server/pages/404.js +1 -1
  23. package/.next/server/pages/500.js +1 -1
  24. package/.next/server/pages/[...slug].js +1 -1
  25. package/.next/server/pages/[slug]/p.js +1 -1
  26. package/.next/server/pages/_error.js +1 -1
  27. package/.next/server/pages/account.js +1 -1
  28. package/.next/server/pages/api/graphql.js +1 -1
  29. package/.next/server/pages/checkout.js +1 -1
  30. package/.next/server/pages/en-US/404.html +2 -2
  31. package/.next/server/pages/en-US/500.html +2 -2
  32. package/.next/server/pages/en-US/account.html +2 -2
  33. package/.next/server/pages/en-US/checkout.html +2 -2
  34. package/.next/server/pages/en-US/login.html +2 -2
  35. package/.next/server/pages/en-US/s.html +2 -2
  36. package/.next/server/pages/en-US.html +2 -2
  37. package/.next/server/pages/index.js +1 -1
  38. package/.next/server/pages/login.js +1 -1
  39. package/.next/server/pages/s.js +1 -1
  40. package/.next/server/pages-manifest.json +1 -1
  41. package/.next/static/{y2wQ4NssxBmOhNvEGeakP → TLpPHFc30Lu6navEBQ-OY}/_buildManifest.js +1 -1
  42. package/.next/static/chunks/{104-bb0b8ad9205c881c.js → 104-6c6df4defdfdd68c.js} +1 -1
  43. package/.next/static/chunks/pages/{_app-7ba31458f9877137.js → _app-8adad0ff3ff11810.js} +1 -1
  44. package/.next/trace +95 -95
  45. package/.turbo/turbo-build.log +1 -1
  46. package/.turbo/turbo-test.log +4 -4
  47. package/@generated/gql.ts +2 -2
  48. package/@generated/graphql.ts +1 -14
  49. package/@generated/persisted-documents.json +1 -1
  50. package/@generated/schema.graphql +0 -12
  51. package/faststore.config.default.js +0 -1
  52. package/package.json +9 -9
  53. package/src/sdk/session/index.ts +0 -3
  54. /package/.next/static/{y2wQ4NssxBmOhNvEGeakP → TLpPHFc30Lu6navEBQ-OY}/_ssgManifest.js +0 -0
@@ -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-7ba31458f9877137.js 12.8 kB
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
 
@@ -1,10 +1,10 @@
1
1
  $ jest
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)
2
+ PASS test/server/cms/index.test.ts (37.024 s)
3
+ PASS test/utils/multipleTemplates.test.ts (37.432 s)
4
+ PASS test/server/index.test.ts (40.632 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: 39.175 s
9
+ Time: 41.939 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 b2b {\n customerId\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 }\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 b2b {\n customerId\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 }\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.
@@ -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: '1e69c734ed31bd9e763a34fe9660f5bbad3fd143',
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
- "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 } }",
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."""
@@ -36,7 +36,6 @@ module.exports = {
36
36
  addressType: null,
37
37
  postalCode: null,
38
38
  geoCoordinates: null,
39
- b2b: null,
40
39
  person: null,
41
40
  },
42
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "3.0.107",
3
+ "version": "3.0.109",
4
4
  "license": "MIT",
5
5
  "repository": "vtex/faststore",
6
6
  "browserslist": "supports es6-module and not dead",
@@ -43,12 +43,12 @@
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.107",
47
- "@faststore/components": "^3.0.103",
48
- "@faststore/graphql-utils": "^3.0.97",
49
- "@faststore/lighthouse": "^3.0.97",
50
- "@faststore/sdk": "^3.0.107",
51
- "@faststore/ui": "^3.0.103",
46
+ "@faststore/api": "^3.0.109",
47
+ "@faststore/components": "^3.0.109",
48
+ "@faststore/graphql-utils": "^3.0.109",
49
+ "@faststore/lighthouse": "^3.0.109",
50
+ "@faststore/sdk": "^3.0.109",
51
+ "@faststore/ui": "^3.0.109",
52
52
  "@graphql-codegen/cli": "^5.0.2",
53
53
  "@graphql-codegen/client-preset": "^4.2.6",
54
54
  "@graphql-codegen/typescript": "^4.0.7",
@@ -89,7 +89,7 @@
89
89
  "devDependencies": {
90
90
  "@cypress/code-coverage": "^3.12.1",
91
91
  "@envelop/testing": "^6.0.0",
92
- "@faststore/eslint-config": "^3.0.97",
92
+ "@faststore/eslint-config": "^3.0.109",
93
93
  "@lhci/cli": "^0.9.0",
94
94
  "@testing-library/cypress": "^10.0.1",
95
95
  "@types/cypress": "^1.1.3",
@@ -130,5 +130,5 @@
130
130
  "node": "18.19.0",
131
131
  "yarn": "1.19.1"
132
132
  },
133
- "gitHead": "76421761da22073a9c6a19c95667b43a5bd5839d"
133
+ "gitHead": "cfa2b7693376839605f8721356be2c589e480003"
134
134
  }
@@ -42,9 +42,6 @@ export const mutation = gql(`
42
42
  givenName
43
43
  familyName
44
44
  }
45
- b2b {
46
- customerId
47
- }
48
45
  }
49
46
  }
50
47
  `)