@faststore/core 3.29.0 → 3.30.1

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 (36) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +2 -2
  3. package/.next/cache/.tsbuildinfo +1 -1
  4. package/.next/cache/config.json +3 -3
  5. package/.next/cache/webpack/client-production/0.pack +0 -0
  6. package/.next/cache/webpack/client-production/index.pack +0 -0
  7. package/.next/cache/webpack/server-production/0.pack +0 -0
  8. package/.next/cache/webpack/server-production/index.pack +0 -0
  9. package/.next/prerender-manifest.js +1 -1
  10. package/.next/prerender-manifest.json +1 -1
  11. package/.next/routes-manifest.json +1 -1
  12. package/.next/server/chunks/3117.js +2 -2
  13. package/.next/server/chunks/6198.js +1 -1
  14. package/.next/server/chunks/UIBannerText.js +1 -1
  15. package/.next/server/middleware-build-manifest.js +1 -1
  16. package/.next/server/pages/[...slug].js +1 -1
  17. package/.next/server/pages/api/graphql.js +1 -1
  18. package/.next/server/pages/en-US/404.html +2 -2
  19. package/.next/server/pages/en-US/500.html +2 -2
  20. package/.next/server/pages/en-US/account.html +2 -2
  21. package/.next/server/pages/en-US/checkout.html +2 -2
  22. package/.next/server/pages/en-US/login.html +2 -2
  23. package/.next/server/pages/en-US/s.html +2 -2
  24. package/.next/server/pages/en-US.html +2 -2
  25. package/.next/server/pages/s.js +1 -1
  26. package/.next/server/pages-manifest.json +1 -1
  27. package/.next/trace +121 -121
  28. package/.turbo/turbo-build.log +8 -8
  29. package/.turbo/turbo-test.log +5 -5
  30. package/@generated/graphql.ts +40 -0
  31. package/@generated/schema.graphql +39 -0
  32. package/CHANGELOG.md +8 -0
  33. package/package.json +3 -3
  34. package/test/server/index.test.ts +3 -2
  35. /package/.next/static/{JNYNLuT_CpzRGNoTumIQk → vfnOZrKjNdsSyLd8yQNMC}/_buildManifest.js +0 -0
  36. /package/.next/static/{JNYNLuT_CpzRGNoTumIQk → vfnOZrKjNdsSyLd8yQNMC}/_ssgManifest.js +0 -0
@@ -1,23 +1,23 @@
1
1
 
2
- > @faststore/core@3.28.1 prebuild /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@3.29.1 prebuild /home/runner/work/faststore/faststore/packages/core
3
3
  > na run partytown && na run generate
4
4
 
5
5
 
6
- > @faststore/core@3.28.1 partytown /home/runner/work/faststore/faststore/packages/core
6
+ > @faststore/core@3.29.1 partytown /home/runner/work/faststore/faststore/packages/core
7
7
  > partytown copylib ./public/~partytown
8
8
 
9
9
  Partytown lib copied to: /home/runner/work/faststore/faststore/packages/core/public/~partytown
10
10
 
11
- > @faststore/core@3.28.1 generate /home/runner/work/faststore/faststore/packages/core
11
+ > @faststore/core@3.29.1 generate /home/runner/work/faststore/faststore/packages/core
12
12
  > na run generate:schema && na run generate:codegen && na run format:generated
13
13
 
14
14
 
15
- > @faststore/core@3.28.1 generate:schema /home/runner/work/faststore/faststore/packages/core
15
+ > @faststore/core@3.29.1 generate:schema /home/runner/work/faststore/faststore/packages/core
16
16
  > tsx src/server/generator/generateGraphQLSchemaFile.ts
17
17
 
18
18
  Schema GraphQL file generated successfully
19
19
 
20
- > @faststore/core@3.28.1 generate:codegen /home/runner/work/faststore/faststore/packages/core
20
+ > @faststore/core@3.29.1 generate:codegen /home/runner/work/faststore/faststore/packages/core
21
21
  > graphql-codegen
22
22
 
23
23
  [STARTED] Parse Configuration
@@ -37,11 +37,11 @@ Running lifecycle hook "afterStart" scripts...
37
37
  [CLI] Loading Documents
38
38
  [CLI] Generating output
39
39
 
40
- > @faststore/core@3.28.1 format:generated /home/runner/work/faststore/faststore/packages/core
40
+ > @faststore/core@3.29.1 format:generated /home/runner/work/faststore/faststore/packages/core
41
41
  > prettier --write "@generated/**/*.{ts,js,tsx,jsx,json}" --loglevel error
42
42
 
43
43
 
44
- > @faststore/core@3.28.1 build /home/runner/work/faststore/faststore/packages/core
44
+ > @faststore/core@3.29.1 build /home/runner/work/faststore/faststore/packages/core
45
45
  > next build
46
46
 
47
47
  ⚠ No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
@@ -60,8 +60,8 @@ https://nextjs.org/telemetry
60
60
  Generating static pages (0/7) ...
61
61
 
62
62
  Generating static pages (1/7)
63
63
  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.
64
- CustomModalFooterSection not found. Add a new component for this section or remove it from the CMS
65
64
 
66
65
  Generating static pages (3/7)
66
+ CustomModalFooterSection not found. Add a new component for this section or remove it from the CMS
67
67
 
68
68
  Generating static pages (5/7)
69
69
 
70
70
  ✓ Generating static pages (7/7)
71
71
  Finalizing page optimization ...
@@ -1,14 +1,14 @@
1
1
 
2
- > @faststore/core@3.28.1 test /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@3.29.1 test /home/runner/work/faststore/faststore/packages/core
3
3
  > jest
4
4
 
5
- PASS test/server/cms/global.test.ts (23.011 s)
6
- PASS test/utils/multipleTemplates.test.ts (23.522 s)
5
+ PASS test/server/cms/global.test.ts (24.423 s)
6
+ PASS test/utils/multipleTemplates.test.ts (24.587 s)
7
7
  PASS test/server/cms/index.test.ts
8
- PASS test/server/index.test.ts (28.622 s)
8
+ PASS test/server/index.test.ts (29.071 s)
9
9
 
10
10
  Test Suites: 4 passed, 4 total
11
11
  Tests: 22 passed, 22 total
12
12
  Snapshots: 0 total
13
- Time: 29.774 s
13
+ Time: 30.326 s
14
14
  Ran all test suites.
@@ -469,6 +469,40 @@ export type PickupStoreInfo = {
469
469
  isPickupStore: Maybe<Scalars['Boolean']['output']>
470
470
  }
471
471
 
472
+ export type Profile = {
473
+ /** Collection of user's address */
474
+ addresses: Maybe<Array<Maybe<ProfileAddress>>>
475
+ }
476
+
477
+ export type ProfileAddress = {
478
+ /** ProfileAddress address name/id. */
479
+ addressName: Maybe<Scalars['String']['output']>
480
+ /** ProfileAddress address type. */
481
+ addressType: Maybe<Scalars['String']['output']>
482
+ /** ProfileAddress city. */
483
+ city: Maybe<Scalars['String']['output']>
484
+ /** ProfileAddress complement. */
485
+ complement: Maybe<Scalars['String']['output']>
486
+ /** ProfileAddress country. */
487
+ country: Maybe<Scalars['String']['output']>
488
+ /** ProfileAddress geo coordinate. */
489
+ geoCoordinate: Maybe<Array<Maybe<Scalars['Float']['output']>>>
490
+ /** ProfileAddress neighborhood. */
491
+ neighborhood: Maybe<Scalars['String']['output']>
492
+ /** ProfileAddress number. */
493
+ number: Maybe<Scalars['String']['output']>
494
+ /** ProfileAddress postal code. */
495
+ postalCode: Maybe<Scalars['String']['output']>
496
+ /** ProfileAddress receiver name. */
497
+ receiverName: Maybe<Scalars['String']['output']>
498
+ /** ProfileAddress reference. */
499
+ reference: Maybe<Scalars['String']['output']>
500
+ /** ProfileAddress state. */
501
+ state: Maybe<Scalars['String']['output']>
502
+ /** ProfileAddress street. */
503
+ street: Maybe<Scalars['String']['output']>
504
+ }
505
+
472
506
  export type Query = {
473
507
  /** Returns information about all collections. */
474
508
  allCollections: StoreCollectionConnection
@@ -478,6 +512,8 @@ export type Query = {
478
512
  collection: StoreCollection
479
513
  /** Returns the details of a product based on the specified locator. */
480
514
  product: StoreProduct
515
+ /** Returns information about the profile. */
516
+ profile: Maybe<Profile>
481
517
  /** Returns if there's a redirect for a search. */
482
518
  redirect: Maybe<StoreRedirect>
483
519
  /** Returns the result of a product, facet, or suggestion search. */
@@ -506,6 +542,10 @@ export type QueryProductArgs = {
506
542
  locator: Array<IStoreSelectedFacet>
507
543
  }
508
544
 
545
+ export type QueryProfileArgs = {
546
+ id: Scalars['String']['input']
547
+ }
548
+
509
549
  export type QueryRedirectArgs = {
510
550
  selectedFacets: InputMaybe<Array<IStoreSelectedFacet>>
511
551
  term: InputMaybe<Scalars['String']['input']>
@@ -432,6 +432,40 @@ type StoreProductGroup {
432
432
  skuVariants: SkuVariants
433
433
  }
434
434
 
435
+ type Profile {
436
+ """Collection of user's address"""
437
+ addresses: [ProfileAddress]
438
+ }
439
+
440
+ type ProfileAddress {
441
+ """ProfileAddress address name/id."""
442
+ addressName: String
443
+ """ProfileAddress address type."""
444
+ addressType: String
445
+ """ProfileAddress postal code."""
446
+ postalCode: String
447
+ """ProfileAddress city."""
448
+ city: String
449
+ """ProfileAddress state."""
450
+ state: String
451
+ """ProfileAddress country."""
452
+ country: String
453
+ """ProfileAddress street."""
454
+ street: String
455
+ """ProfileAddress number."""
456
+ number: String
457
+ """ProfileAddress neighborhood."""
458
+ neighborhood: String
459
+ """ProfileAddress complement."""
460
+ complement: String
461
+ """ProfileAddress reference."""
462
+ reference: String
463
+ """ProfileAddress receiver name."""
464
+ receiverName: String
465
+ """ProfileAddress geo coordinate."""
466
+ geoCoordinate: [Float]
467
+ }
468
+
435
469
  """Properties that can be associated with products and products groups."""
436
470
  type StorePropertyValue {
437
471
  """Property id. This propert changes according to the content of the object."""
@@ -635,6 +669,11 @@ type Query {
635
669
  """Sales channel of the navigation"""
636
670
  salesChannel: String
637
671
  ): SellersData @cacheControl(scope: "public", sMaxAge: 120, staleWhileRevalidate: 3600)
672
+ """Returns information about the profile."""
673
+ profile(
674
+ """Identifier for user."""
675
+ id: String!
676
+ ): Profile @cacheControl(scope: "public", sMaxAge: 120, staleWhileRevalidate: 3600)
638
677
  }
639
678
 
640
679
  """
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
+ ## [3.30.1](https://github.com/vtex/faststore/compare/v3.30.0...v3.30.1) (2025-03-25)
7
+
8
+ **Note:** Version bump only for package @faststore/core
9
+
10
+ ## [3.29.1](https://github.com/vtex/faststore/compare/v3.29.0...v3.29.1) (2025-03-21)
11
+
12
+ **Note:** Version bump only for package @faststore/core
13
+
6
14
  # [3.29.0](https://github.com/vtex/faststore/compare/v3.28.1...v3.29.0) (2025-03-21)
7
15
 
8
16
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "3.29.0",
3
+ "version": "3.30.1",
4
4
  "license": "MIT",
5
5
  "repository": "vtex/faststore",
6
6
  "browserslist": "supports es6-module and not dead",
@@ -44,7 +44,7 @@
44
44
  "@envelop/graphql-jit": "^8.0.3",
45
45
  "@envelop/parser-cache": "^6.0.2",
46
46
  "@envelop/validation-cache": "^6.0.2",
47
- "@faststore/api": "^3.29.0",
47
+ "@faststore/api": "^3.30.1",
48
48
  "@faststore/components": "^3.28.0",
49
49
  "@faststore/graphql-utils": "^3.28.0",
50
50
  "@faststore/lighthouse": "^3.28.0",
@@ -104,5 +104,5 @@
104
104
  "ts-jest": "29.1.1",
105
105
  "typescript": "5.3.2"
106
106
  },
107
- "gitHead": "181fe768514108afb75c72a9c33b92add91ea29e"
107
+ "gitHead": "93ded6e2ae1cbc1cd08bf797b0e48dbbb960e344"
108
108
  }
@@ -1,11 +1,11 @@
1
1
  import { assertValidSchema } from 'graphql'
2
2
 
3
+ import storeConfig from '../../discovery.config'
3
4
  import { execute, getEnvelop } from '../../src/server'
4
5
  import {
5
- getTypeDefsFromFolder,
6
6
  getMergedSchema,
7
+ getTypeDefsFromFolder,
7
8
  } from '../../src/server/generator/schema'
8
- import storeConfig from '../../discovery.config'
9
9
 
10
10
  const TYPES = [
11
11
  'StoreAggregateOffer',
@@ -71,6 +71,7 @@ const QUERIES = [
71
71
  'shipping',
72
72
  'redirect',
73
73
  'sellers',
74
+ 'profile',
74
75
  ]
75
76
 
76
77
  const MUTATIONS = ['validateCart', 'validateSession', 'subscribeToNewsletter']