@faststore/core 3.89.0 → 3.89.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 (51) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  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/9563.js +2 -2
  13. package/.next/server/chunks/9630.js +1 -1
  14. package/.next/server/functions-config-manifest.json +1 -1
  15. package/.next/server/middleware-build-manifest.js +1 -1
  16. package/.next/server/pages/api/graphql.js +1 -1
  17. package/.next/server/pages/en-US/404.html +1 -1
  18. package/.next/server/pages/en-US/500.html +1 -1
  19. package/.next/server/pages/en-US/checkout.html +1 -1
  20. package/.next/server/pages/en-US/login.html +1 -1
  21. package/.next/server/pages/en-US/s.html +1 -1
  22. package/.next/server/pages/en-US.html +1 -1
  23. package/.next/server/pages/pvt/account/403.js +1 -1
  24. package/.next/server/pages/pvt/account/404.js +1 -1
  25. package/.next/server/pages/pvt/account/orders/[id].js +1 -1
  26. package/.next/server/pages/pvt/account/orders.js +1 -1
  27. package/.next/server/pages/pvt/account/profile.js +1 -1
  28. package/.next/server/pages/pvt/account/security.js +1 -1
  29. package/.next/server/pages/pvt/account/user-details.js +1 -1
  30. package/.next/server/pages-manifest.json +1 -1
  31. package/.next/static/{zzqNGaHXIghWiPWB3TKER → 43JSGz9XxT2_nidd-70dX}/_buildManifest.js +1 -1
  32. package/.next/static/chunks/pages/pvt/account/{profile-e13024f80e939a5f.js → profile-b6cdbf02d4682544.js} +1 -1
  33. package/.next/trace +138 -138
  34. package/.turbo/turbo-build.log +7 -7
  35. package/.turbo/turbo-test.log +5 -5
  36. package/@generated/gql.ts +12 -12
  37. package/@generated/graphql.ts +13 -14
  38. package/@generated/persisted-documents.json +6 -6
  39. package/@generated/schema.graphql +0 -2
  40. package/CHANGELOG.md +6 -0
  41. package/package.json +3 -3
  42. package/src/experimental/myAccountSeverSideProps.ts +6 -4
  43. package/src/pages/pvt/account/403.tsx +5 -3
  44. package/src/pages/pvt/account/404.tsx +5 -3
  45. package/src/pages/pvt/account/orders/[id].tsx +4 -2
  46. package/src/pages/pvt/account/orders/index.tsx +4 -2
  47. package/src/pages/pvt/account/profile.tsx +2 -6
  48. package/src/pages/pvt/account/security.tsx +4 -5
  49. package/src/pages/pvt/account/user-details.tsx +4 -2
  50. package/test/server/index.test.ts +0 -1
  51. /package/.next/static/{zzqNGaHXIghWiPWB3TKER → 43JSGz9XxT2_nidd-70dX}/_ssgManifest.js +0 -0
@@ -1,23 +1,23 @@
1
1
 
2
- > @faststore/core@3.88.7 prebuild /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@3.89.0 prebuild /home/runner/work/faststore/faststore/packages/core
3
3
  > na run partytown && na run generate
4
4
 
5
5
 
6
- > @faststore/core@3.88.7 partytown /home/runner/work/faststore/faststore/packages/core
6
+ > @faststore/core@3.89.0 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.88.7 generate /home/runner/work/faststore/faststore/packages/core
11
+ > @faststore/core@3.89.0 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.88.7 generate:schema /home/runner/work/faststore/faststore/packages/core
15
+ > @faststore/core@3.89.0 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.88.7 generate:codegen /home/runner/work/faststore/faststore/packages/core
20
+ > @faststore/core@3.89.0 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.88.7 format:generated /home/runner/work/faststore/faststore/packages/core
40
+ > @faststore/core@3.89.0 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.88.7 build /home/runner/work/faststore/faststore/packages/core
44
+ > @faststore/core@3.89.0 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
@@ -1,15 +1,15 @@
1
1
 
2
- > @faststore/core@3.88.7 test /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@3.89.0 test /home/runner/work/faststore/faststore/packages/core
3
3
  > jest
4
4
 
5
- PASS test/utils/multipleTemplates.test.ts (27.104 s)
6
- PASS test/server/cms/global.test.ts (27.492 s)
5
+ PASS test/utils/multipleTemplates.test.ts (28.435 s)
6
+ PASS test/server/cms/global.test.ts (28.789 s)
7
7
  PASS test/server/cms/index.test.ts
8
- PASS test/server/index.test.ts (31.571 s)
8
+ PASS test/server/index.test.ts (31.275 s)
9
9
  A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --detectOpenHandles to find leaks. Active timers can also cause this, ensure that .unref() was called on them.
10
10
 
11
11
  Test Suites: 4 passed, 4 total
12
12
  Tests: 22 passed, 22 total
13
13
  Snapshots: 0 total
14
- Time: 32.998 s
14
+ Time: 32.767 s
15
15
  Ran all test suites.
package/@generated/gql.ts CHANGED
@@ -38,7 +38,7 @@ const documents = {
38
38
  types.ServerCollectionPageFragmentDoc,
39
39
  '\n fragment ServerProduct on Query {\n product(locator: $locator) {\n id: productID\n }\n }\n':
40
40
  types.ServerProductFragmentDoc,
41
- '\n query ServerAccountPageQuery {\n accountName\n }\n':
41
+ '\n query ServerAccountPageQuery {\n accountProfile {\n name\n }\n }\n':
42
42
  types.ServerAccountPageQueryDocument,
43
43
  '\n query ServerCollectionPageQuery($slug: String!) {\n ...ServerCollectionPage\n collection(slug: $slug) {\n seo {\n title\n description\n }\n breadcrumbList {\n itemListElement {\n item\n name\n position\n }\n }\n meta {\n selectedFacets {\n key\n value\n }\n }\n }\n }\n':
44
44
  types.ServerCollectionPageQueryDocument,
@@ -46,15 +46,15 @@ const documents = {
46
46
  types.ServerProductQueryDocument,
47
47
  '\n fragment UserOrderItemsFragment on UserOrderItems {\n id\n name\n quantity\n sellingPrice\n unitMultiplier\n measurementUnit\n imageUrl\n detailUrl\n refId\n rewardValue\n }\n':
48
48
  types.UserOrderItemsFragmentFragmentDoc,
49
- '\n query ServerOrderDetailsQuery($orderId: String!) {\n userOrder(orderId: $orderId) {\n orderId\n creationDate\n status\n canProcessOrderAuthorization\n statusDescription\n allowCancellation\n ruleForAuthorization {\n orderAuthorizationId\n dimensionId\n rule {\n id\n name\n status\n doId\n authorizedEmails\n priority\n trigger {\n condition {\n conditionType\n description\n lessThan\n greatherThan\n expression\n }\n effect {\n description\n effectType\n funcPath\n }\n }\n timeout\n notification\n scoreInterval {\n accept\n deny\n }\n authorizationData {\n requireAllApprovals\n authorizers {\n id\n email\n type\n authorizationDate\n }\n }\n isUserAuthorized\n isUserNextAuthorizer\n }\n }\n storePreferencesData {\n currencyCode\n }\n clientProfileData {\n firstName\n lastName\n email\n phone\n corporateName\n isCorporate\n }\n customFields {\n type\n id\n fields {\n name\n value\n refId\n }\n }\n deliveryOptionsData {\n deliveryOptions {\n selectedSla\n deliveryChannel\n deliveryCompany\n deliveryWindow {\n startDateUtc\n endDateUtc\n price\n }\n shippingEstimate\n shippingEstimateDate\n friendlyShippingEstimate\n friendlyDeliveryOptionName\n seller\n address {\n addressType\n receiverName\n addressId\n versionId\n entityId\n postalCode\n city\n state\n country\n street\n number\n neighborhood\n complement\n reference\n geoCoordinates\n }\n pickupStoreInfo {\n additionalInfo\n address {\n addressType\n receiverName\n addressId\n versionId\n entityId\n postalCode\n city\n state\n country\n street\n number\n neighborhood\n complement\n reference\n geoCoordinates\n }\n dockId\n friendlyName\n isPickupStore\n }\n quantityOfDifferentItems\n total\n items {\n id\n uniqueId\n name\n quantity\n price\n imageUrl\n tax\n total\n }\n }\n contact {\n email\n phone\n name\n }\n }\n paymentData {\n transactions {\n isActive\n payments {\n id\n paymentSystemName\n value\n installments\n referenceValue\n lastDigits\n url\n group\n tid\n connectorResponses {\n authId\n }\n bankIssuedInvoiceIdentificationNumber\n redemptionCode\n paymentOrigin\n }\n }\n }\n totals {\n id\n name\n value\n }\n shopper {\n firstName\n lastName\n email\n phone\n }\n }\n accountName\n }\n':
49
+ '\n query ServerOrderDetailsQuery($orderId: String!) {\n userOrder(orderId: $orderId) {\n orderId\n creationDate\n status\n canProcessOrderAuthorization\n statusDescription\n allowCancellation\n ruleForAuthorization {\n orderAuthorizationId\n dimensionId\n rule {\n id\n name\n status\n doId\n authorizedEmails\n priority\n trigger {\n condition {\n conditionType\n description\n lessThan\n greatherThan\n expression\n }\n effect {\n description\n effectType\n funcPath\n }\n }\n timeout\n notification\n scoreInterval {\n accept\n deny\n }\n authorizationData {\n requireAllApprovals\n authorizers {\n id\n email\n type\n authorizationDate\n }\n }\n isUserAuthorized\n isUserNextAuthorizer\n }\n }\n storePreferencesData {\n currencyCode\n }\n clientProfileData {\n firstName\n lastName\n email\n phone\n corporateName\n isCorporate\n }\n customFields {\n type\n id\n fields {\n name\n value\n refId\n }\n }\n deliveryOptionsData {\n deliveryOptions {\n selectedSla\n deliveryChannel\n deliveryCompany\n deliveryWindow {\n startDateUtc\n endDateUtc\n price\n }\n shippingEstimate\n shippingEstimateDate\n friendlyShippingEstimate\n friendlyDeliveryOptionName\n seller\n address {\n addressType\n receiverName\n addressId\n versionId\n entityId\n postalCode\n city\n state\n country\n street\n number\n neighborhood\n complement\n reference\n geoCoordinates\n }\n pickupStoreInfo {\n additionalInfo\n address {\n addressType\n receiverName\n addressId\n versionId\n entityId\n postalCode\n city\n state\n country\n street\n number\n neighborhood\n complement\n reference\n geoCoordinates\n }\n dockId\n friendlyName\n isPickupStore\n }\n quantityOfDifferentItems\n total\n items {\n id\n uniqueId\n name\n quantity\n price\n imageUrl\n tax\n total\n }\n }\n contact {\n email\n phone\n name\n }\n }\n paymentData {\n transactions {\n isActive\n payments {\n id\n paymentSystemName\n value\n installments\n referenceValue\n lastDigits\n url\n group\n tid\n connectorResponses {\n authId\n }\n bankIssuedInvoiceIdentificationNumber\n redemptionCode\n paymentOrigin\n }\n }\n }\n totals {\n id\n name\n value\n }\n shopper {\n firstName\n lastName\n email\n phone\n }\n }\n accountProfile {\n name\n }\n }\n':
50
50
  types.ServerOrderDetailsQueryDocument,
51
- '\n query ServerListOrdersQuery ($page: Int,$perPage: Int, $status: [String], $dateInitial: String, $dateFinal: String, $text: String, $clientEmail: String) {\n listUserOrders (page: $page, perPage: $perPage, status: $status, dateInitial: $dateInitial, dateFinal: $dateFinal, text: $text, clientEmail: $clientEmail) {\n list {\n orderId\n creationDate\n clientName\n items {\n seller\n quantity\n description\n ean\n refId\n id\n productId\n sellingPrice\n price\n }\n totalValue\n status\n statusDescription\n ShippingEstimatedDate\n currencyCode\n customFields {\n type\n value\n }\n }\n paging {\n total\n pages\n currentPage\n perPage\n }\n }\n accountName\n }\n':
51
+ '\n query ServerListOrdersQuery ($page: Int,$perPage: Int, $status: [String], $dateInitial: String, $dateFinal: String, $text: String, $clientEmail: String) {\n listUserOrders (page: $page, perPage: $perPage, status: $status, dateInitial: $dateInitial, dateFinal: $dateFinal, text: $text, clientEmail: $clientEmail) {\n list {\n orderId\n creationDate\n clientName\n items {\n seller\n quantity\n description\n ean\n refId\n id\n productId\n sellingPrice\n price\n }\n totalValue\n status\n statusDescription\n ShippingEstimatedDate\n currencyCode\n customFields {\n type\n value\n }\n }\n paging {\n total\n pages\n currentPage\n perPage\n }\n }\n accountProfile {\n name\n }\n }\n':
52
52
  types.ServerListOrdersQueryDocument,
53
- '\n query ServerProfileQuery {\n accountName\n accountProfile {\n name\n email\n id\n }\n }\n':
53
+ '\n query ServerProfileQuery {\n accountProfile {\n name\n email\n id\n }\n }\n':
54
54
  types.ServerProfileQueryDocument,
55
- '\n query ServerSecurity {\n accountName\n userDetails {\n email\n }\n }\n':
55
+ '\n query ServerSecurity {\n accountProfile {\n name\n }\n userDetails {\n email\n }\n }\n':
56
56
  types.ServerSecurityDocument,
57
- '\n query ServerUserDetailsQuery {\n accountName\n userDetails {\n name\n email\n role\n orgUnit\n }\n }\n':
57
+ '\n query ServerUserDetailsQuery {\n accountProfile {\n name\n }\n userDetails {\n name\n email\n role\n orgUnit\n }\n }\n':
58
58
  types.ServerUserDetailsQueryDocument,
59
59
  '\n mutation CancelOrderMutation($data: IUserOrderCancel!) {\n cancelOrder(data: $data) {\n data\n }\n }\n':
60
60
  types.CancelOrderMutationDocument,
@@ -176,7 +176,7 @@ export function gql(
176
176
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
177
177
  */
178
178
  export function gql(
179
- source: '\n query ServerAccountPageQuery {\n accountName\n }\n'
179
+ source: '\n query ServerAccountPageQuery {\n accountProfile {\n name\n }\n }\n'
180
180
  ): typeof import('./graphql').ServerAccountPageQueryDocument
181
181
  /**
182
182
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
@@ -200,31 +200,31 @@ export function gql(
200
200
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
201
201
  */
202
202
  export function gql(
203
- source: '\n query ServerOrderDetailsQuery($orderId: String!) {\n userOrder(orderId: $orderId) {\n orderId\n creationDate\n status\n canProcessOrderAuthorization\n statusDescription\n allowCancellation\n ruleForAuthorization {\n orderAuthorizationId\n dimensionId\n rule {\n id\n name\n status\n doId\n authorizedEmails\n priority\n trigger {\n condition {\n conditionType\n description\n lessThan\n greatherThan\n expression\n }\n effect {\n description\n effectType\n funcPath\n }\n }\n timeout\n notification\n scoreInterval {\n accept\n deny\n }\n authorizationData {\n requireAllApprovals\n authorizers {\n id\n email\n type\n authorizationDate\n }\n }\n isUserAuthorized\n isUserNextAuthorizer\n }\n }\n storePreferencesData {\n currencyCode\n }\n clientProfileData {\n firstName\n lastName\n email\n phone\n corporateName\n isCorporate\n }\n customFields {\n type\n id\n fields {\n name\n value\n refId\n }\n }\n deliveryOptionsData {\n deliveryOptions {\n selectedSla\n deliveryChannel\n deliveryCompany\n deliveryWindow {\n startDateUtc\n endDateUtc\n price\n }\n shippingEstimate\n shippingEstimateDate\n friendlyShippingEstimate\n friendlyDeliveryOptionName\n seller\n address {\n addressType\n receiverName\n addressId\n versionId\n entityId\n postalCode\n city\n state\n country\n street\n number\n neighborhood\n complement\n reference\n geoCoordinates\n }\n pickupStoreInfo {\n additionalInfo\n address {\n addressType\n receiverName\n addressId\n versionId\n entityId\n postalCode\n city\n state\n country\n street\n number\n neighborhood\n complement\n reference\n geoCoordinates\n }\n dockId\n friendlyName\n isPickupStore\n }\n quantityOfDifferentItems\n total\n items {\n id\n uniqueId\n name\n quantity\n price\n imageUrl\n tax\n total\n }\n }\n contact {\n email\n phone\n name\n }\n }\n paymentData {\n transactions {\n isActive\n payments {\n id\n paymentSystemName\n value\n installments\n referenceValue\n lastDigits\n url\n group\n tid\n connectorResponses {\n authId\n }\n bankIssuedInvoiceIdentificationNumber\n redemptionCode\n paymentOrigin\n }\n }\n }\n totals {\n id\n name\n value\n }\n shopper {\n firstName\n lastName\n email\n phone\n }\n }\n accountName\n }\n'
203
+ source: '\n query ServerOrderDetailsQuery($orderId: String!) {\n userOrder(orderId: $orderId) {\n orderId\n creationDate\n status\n canProcessOrderAuthorization\n statusDescription\n allowCancellation\n ruleForAuthorization {\n orderAuthorizationId\n dimensionId\n rule {\n id\n name\n status\n doId\n authorizedEmails\n priority\n trigger {\n condition {\n conditionType\n description\n lessThan\n greatherThan\n expression\n }\n effect {\n description\n effectType\n funcPath\n }\n }\n timeout\n notification\n scoreInterval {\n accept\n deny\n }\n authorizationData {\n requireAllApprovals\n authorizers {\n id\n email\n type\n authorizationDate\n }\n }\n isUserAuthorized\n isUserNextAuthorizer\n }\n }\n storePreferencesData {\n currencyCode\n }\n clientProfileData {\n firstName\n lastName\n email\n phone\n corporateName\n isCorporate\n }\n customFields {\n type\n id\n fields {\n name\n value\n refId\n }\n }\n deliveryOptionsData {\n deliveryOptions {\n selectedSla\n deliveryChannel\n deliveryCompany\n deliveryWindow {\n startDateUtc\n endDateUtc\n price\n }\n shippingEstimate\n shippingEstimateDate\n friendlyShippingEstimate\n friendlyDeliveryOptionName\n seller\n address {\n addressType\n receiverName\n addressId\n versionId\n entityId\n postalCode\n city\n state\n country\n street\n number\n neighborhood\n complement\n reference\n geoCoordinates\n }\n pickupStoreInfo {\n additionalInfo\n address {\n addressType\n receiverName\n addressId\n versionId\n entityId\n postalCode\n city\n state\n country\n street\n number\n neighborhood\n complement\n reference\n geoCoordinates\n }\n dockId\n friendlyName\n isPickupStore\n }\n quantityOfDifferentItems\n total\n items {\n id\n uniqueId\n name\n quantity\n price\n imageUrl\n tax\n total\n }\n }\n contact {\n email\n phone\n name\n }\n }\n paymentData {\n transactions {\n isActive\n payments {\n id\n paymentSystemName\n value\n installments\n referenceValue\n lastDigits\n url\n group\n tid\n connectorResponses {\n authId\n }\n bankIssuedInvoiceIdentificationNumber\n redemptionCode\n paymentOrigin\n }\n }\n }\n totals {\n id\n name\n value\n }\n shopper {\n firstName\n lastName\n email\n phone\n }\n }\n accountProfile {\n name\n }\n }\n'
204
204
  ): typeof import('./graphql').ServerOrderDetailsQueryDocument
205
205
  /**
206
206
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
207
207
  */
208
208
  export function gql(
209
- source: '\n query ServerListOrdersQuery ($page: Int,$perPage: Int, $status: [String], $dateInitial: String, $dateFinal: String, $text: String, $clientEmail: String) {\n listUserOrders (page: $page, perPage: $perPage, status: $status, dateInitial: $dateInitial, dateFinal: $dateFinal, text: $text, clientEmail: $clientEmail) {\n list {\n orderId\n creationDate\n clientName\n items {\n seller\n quantity\n description\n ean\n refId\n id\n productId\n sellingPrice\n price\n }\n totalValue\n status\n statusDescription\n ShippingEstimatedDate\n currencyCode\n customFields {\n type\n value\n }\n }\n paging {\n total\n pages\n currentPage\n perPage\n }\n }\n accountName\n }\n'
209
+ source: '\n query ServerListOrdersQuery ($page: Int,$perPage: Int, $status: [String], $dateInitial: String, $dateFinal: String, $text: String, $clientEmail: String) {\n listUserOrders (page: $page, perPage: $perPage, status: $status, dateInitial: $dateInitial, dateFinal: $dateFinal, text: $text, clientEmail: $clientEmail) {\n list {\n orderId\n creationDate\n clientName\n items {\n seller\n quantity\n description\n ean\n refId\n id\n productId\n sellingPrice\n price\n }\n totalValue\n status\n statusDescription\n ShippingEstimatedDate\n currencyCode\n customFields {\n type\n value\n }\n }\n paging {\n total\n pages\n currentPage\n perPage\n }\n }\n accountProfile {\n name\n }\n }\n'
210
210
  ): typeof import('./graphql').ServerListOrdersQueryDocument
211
211
  /**
212
212
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
213
213
  */
214
214
  export function gql(
215
- source: '\n query ServerProfileQuery {\n accountName\n accountProfile {\n name\n email\n id\n }\n }\n'
215
+ source: '\n query ServerProfileQuery {\n accountProfile {\n name\n email\n id\n }\n }\n'
216
216
  ): typeof import('./graphql').ServerProfileQueryDocument
217
217
  /**
218
218
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
219
219
  */
220
220
  export function gql(
221
- source: '\n query ServerSecurity {\n accountName\n userDetails {\n email\n }\n }\n'
221
+ source: '\n query ServerSecurity {\n accountProfile {\n name\n }\n userDetails {\n email\n }\n }\n'
222
222
  ): typeof import('./graphql').ServerSecurityDocument
223
223
  /**
224
224
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
225
225
  */
226
226
  export function gql(
227
- source: '\n query ServerUserDetailsQuery {\n accountName\n userDetails {\n name\n email\n role\n orgUnit\n }\n }\n'
227
+ source: '\n query ServerUserDetailsQuery {\n accountProfile {\n name\n }\n userDetails {\n name\n email\n role\n orgUnit\n }\n }\n'
228
228
  ): typeof import('./graphql').ServerUserDetailsQueryDocument
229
229
  /**
230
230
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
@@ -829,8 +829,6 @@ export type ProfileAddress = {
829
829
  }
830
830
 
831
831
  export type Query = {
832
- /** Returns the account name of the current user or the B2B contract name if applicable. */
833
- accountName: Maybe<Scalars['String']['output']>
834
832
  /** Returns the account profile information for the current authenticated user (b2b or b2c user). */
835
833
  accountProfile: StoreAccountProfile
836
834
  /** Returns information about all collections. */
@@ -2649,7 +2647,9 @@ export type ServerAccountPageQueryQueryVariables = Exact<{
2649
2647
  [key: string]: never
2650
2648
  }>
2651
2649
 
2652
- export type ServerAccountPageQueryQuery = { accountName: string | null }
2650
+ export type ServerAccountPageQueryQuery = {
2651
+ accountProfile: { name: string | null }
2652
+ }
2653
2653
 
2654
2654
  export type ServerCollectionPageQueryQueryVariables = Exact<{
2655
2655
  slug: Scalars['String']['input']
@@ -2739,7 +2739,6 @@ export type ServerOrderDetailsQueryQueryVariables = Exact<{
2739
2739
  }>
2740
2740
 
2741
2741
  export type ServerOrderDetailsQueryQuery = {
2742
- accountName: string | null
2743
2742
  userOrder: {
2744
2743
  orderId: string | null
2745
2744
  creationDate: string | null
@@ -2911,6 +2910,7 @@ export type ServerOrderDetailsQueryQuery = {
2911
2910
  phone: string | null
2912
2911
  } | null
2913
2912
  } | null
2913
+ accountProfile: { name: string | null }
2914
2914
  }
2915
2915
 
2916
2916
  export type ServerListOrdersQueryQueryVariables = Exact<{
@@ -2927,7 +2927,6 @@ export type ServerListOrdersQueryQueryVariables = Exact<{
2927
2927
  }>
2928
2928
 
2929
2929
  export type ServerListOrdersQueryQuery = {
2930
- accountName: string | null
2931
2930
  listUserOrders: {
2932
2931
  list: Array<{
2933
2932
  orderId: string | null
@@ -2961,12 +2960,12 @@ export type ServerListOrdersQueryQuery = {
2961
2960
  perPage: number | null
2962
2961
  } | null
2963
2962
  } | null
2963
+ accountProfile: { name: string | null }
2964
2964
  }
2965
2965
 
2966
2966
  export type ServerProfileQueryQueryVariables = Exact<{ [key: string]: never }>
2967
2967
 
2968
2968
  export type ServerProfileQueryQuery = {
2969
- accountName: string | null
2970
2969
  accountProfile: {
2971
2970
  name: string | null
2972
2971
  email: string | null
@@ -2977,7 +2976,7 @@ export type ServerProfileQueryQuery = {
2977
2976
  export type ServerSecurityQueryVariables = Exact<{ [key: string]: never }>
2978
2977
 
2979
2978
  export type ServerSecurityQuery = {
2980
- accountName: string | null
2979
+ accountProfile: { name: string | null }
2981
2980
  userDetails: { email: string | null }
2982
2981
  }
2983
2982
 
@@ -2986,7 +2985,7 @@ export type ServerUserDetailsQueryQueryVariables = Exact<{
2986
2985
  }>
2987
2986
 
2988
2987
  export type ServerUserDetailsQueryQuery = {
2989
- accountName: string | null
2988
+ accountProfile: { name: string | null }
2990
2989
  userDetails: {
2991
2990
  name: string | null
2992
2991
  email: string | null
@@ -4288,7 +4287,7 @@ export const SearchEvent_MetadataFragmentDoc = new TypedDocumentString(
4288
4287
  export const ServerAccountPageQueryDocument = {
4289
4288
  __meta__: {
4290
4289
  operationName: 'ServerAccountPageQuery',
4291
- operationHash: '47315a3cd26ddd9c7fa963778988464341b8193f',
4290
+ operationHash: '9baae331b75848a310fecb457e8c971ae27897ff',
4292
4291
  },
4293
4292
  } as unknown as TypedDocumentString<
4294
4293
  ServerAccountPageQueryQuery,
@@ -4315,7 +4314,7 @@ export const ServerProductQueryDocument = {
4315
4314
  export const ServerOrderDetailsQueryDocument = {
4316
4315
  __meta__: {
4317
4316
  operationName: 'ServerOrderDetailsQuery',
4318
- operationHash: '2c5dca039e0aa4924e9e583f5afbe522758ca7c4',
4317
+ operationHash: '7937ec2d330f0f6f68f3aab589f10bc96c6ddeea',
4319
4318
  },
4320
4319
  } as unknown as TypedDocumentString<
4321
4320
  ServerOrderDetailsQueryQuery,
@@ -4324,7 +4323,7 @@ export const ServerOrderDetailsQueryDocument = {
4324
4323
  export const ServerListOrdersQueryDocument = {
4325
4324
  __meta__: {
4326
4325
  operationName: 'ServerListOrdersQuery',
4327
- operationHash: 'ee84ac3f5b58c5e1950a927a42c5c1dd6012fcc4',
4326
+ operationHash: 'b0a6b9da966cf2365f9806fd810bac248b44dba8',
4328
4327
  },
4329
4328
  } as unknown as TypedDocumentString<
4330
4329
  ServerListOrdersQueryQuery,
@@ -4333,7 +4332,7 @@ export const ServerListOrdersQueryDocument = {
4333
4332
  export const ServerProfileQueryDocument = {
4334
4333
  __meta__: {
4335
4334
  operationName: 'ServerProfileQuery',
4336
- operationHash: '0ed4b5db8fed122d8418195d01fb91b30261d587',
4335
+ operationHash: '672fe0f00b7b710b63fc6573c0a6b2ec54812b8f',
4337
4336
  },
4338
4337
  } as unknown as TypedDocumentString<
4339
4338
  ServerProfileQueryQuery,
@@ -4342,7 +4341,7 @@ export const ServerProfileQueryDocument = {
4342
4341
  export const ServerSecurityDocument = {
4343
4342
  __meta__: {
4344
4343
  operationName: 'ServerSecurity',
4345
- operationHash: '63c6eadbe8b77c0c3c91406589755accba5cf155',
4344
+ operationHash: '0890ba3456c40a426893b80b698df7a84cfdd6a1',
4346
4345
  },
4347
4346
  } as unknown as TypedDocumentString<
4348
4347
  ServerSecurityQuery,
@@ -4351,7 +4350,7 @@ export const ServerSecurityDocument = {
4351
4350
  export const ServerUserDetailsQueryDocument = {
4352
4351
  __meta__: {
4353
4352
  operationName: 'ServerUserDetailsQuery',
4354
- operationHash: '522e5feeb80e67cee931bc98eac9d08ea75c75d2',
4353
+ operationHash: 'e5eb7e46c685d0c7a2ec62c865bfb0a66f81d557',
4355
4354
  },
4356
4355
  } as unknown as TypedDocumentString<
4357
4356
  ServerUserDetailsQueryQuery,
@@ -1,12 +1,12 @@
1
1
  {
2
- "47315a3cd26ddd9c7fa963778988464341b8193f": "query ServerAccountPageQuery { accountName }",
2
+ "9baae331b75848a310fecb457e8c971ae27897ff": "query ServerAccountPageQuery { accountProfile { name } }",
3
3
  "4b33c5c07f440dc7489e55619dc2211a13786e72": "fragment ServerCollectionPage on Query { collection(slug: $slug) { id } } query ServerCollectionPageQuery($slug: String!) { collection(slug: $slug) { breadcrumbList { itemListElement { item name position } } meta { selectedFacets { key value } } seo { description title } } ...ServerCollectionPage }",
4
4
  "e855903879c6504e90269e6e010549bc6de933eb": "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 ProductDetailsFragment_product on StoreProduct { additionalProperty { name propertyID value valueReference } brand { name } description gtin image { alternateName url } isVariantOf { name productGroupID skuVariants { activeVariations allVariantProducts { name productID } availableVariations slugsMap } } name offers { lowPrice lowPriceWithTaxes offers { availability listPrice listPriceWithTaxes price priceWithTaxes seller { identifier } } } id: productID sku unitMultiplier ...CartProductItem } fragment ServerProduct on Query { product(locator: $locator) { id: productID } } query ServerProductQuery($locator: [IStoreSelectedFacet!]!) { product(locator: $locator) { brand { name } breadcrumbList { itemListElement { item name position } } description gtin image { alternateName url } isVariantOf { productGroupID } name offers { highPrice lowPrice lowPriceWithTaxes offers { availability itemCondition price priceCurrency priceValidUntil seller { identifier } } priceCurrency } id: productID releaseDate seo { canonical description title } sku ...ProductDetailsFragment_product } ...ServerProduct }",
5
- "2c5dca039e0aa4924e9e583f5afbe522758ca7c4": "query ServerOrderDetailsQuery($orderId: String!) { accountName userOrder(orderId: $orderId) { allowCancellation canProcessOrderAuthorization clientProfileData { corporateName email firstName isCorporate lastName phone } creationDate customFields { fields { name refId value } id type } deliveryOptionsData { contact { email name phone } deliveryOptions { address { addressId addressType city complement country entityId geoCoordinates neighborhood number postalCode receiverName reference state street versionId } deliveryChannel deliveryCompany deliveryWindow { endDateUtc price startDateUtc } friendlyDeliveryOptionName friendlyShippingEstimate items { id imageUrl name price quantity tax total uniqueId } pickupStoreInfo { additionalInfo address { addressId addressType city complement country entityId geoCoordinates neighborhood number postalCode receiverName reference state street versionId } dockId friendlyName isPickupStore } quantityOfDifferentItems selectedSla seller shippingEstimate shippingEstimateDate total } } orderId paymentData { transactions { isActive payments { bankIssuedInvoiceIdentificationNumber connectorResponses { authId } group id installments lastDigits paymentOrigin paymentSystemName redemptionCode referenceValue tid url value } } } ruleForAuthorization { dimensionId orderAuthorizationId rule { authorizationData { authorizers { authorizationDate email id type } requireAllApprovals } authorizedEmails doId id isUserAuthorized isUserNextAuthorizer name notification priority scoreInterval { accept deny } status timeout trigger { condition { conditionType description expression greatherThan lessThan } effect { description effectType funcPath } } } } shopper { email firstName lastName phone } status statusDescription storePreferencesData { currencyCode } totals { id name value } } }",
6
- "ee84ac3f5b58c5e1950a927a42c5c1dd6012fcc4": "query ServerListOrdersQuery($clientEmail: String, $dateFinal: String, $dateInitial: String, $page: Int, $perPage: Int, $status: [String], $text: String) { accountName listUserOrders( page: $page perPage: $perPage status: $status dateInitial: $dateInitial dateFinal: $dateFinal text: $text clientEmail: $clientEmail ) { list { ShippingEstimatedDate clientName creationDate currencyCode customFields { type value } items { description ean id price productId quantity refId seller sellingPrice } orderId status statusDescription totalValue } paging { currentPage pages perPage total } } }",
7
- "0ed4b5db8fed122d8418195d01fb91b30261d587": "query ServerProfileQuery { accountName accountProfile { email id name } }",
8
- "63c6eadbe8b77c0c3c91406589755accba5cf155": "query ServerSecurity { accountName userDetails { email } }",
9
- "522e5feeb80e67cee931bc98eac9d08ea75c75d2": "query ServerUserDetailsQuery { accountName userDetails { email name orgUnit role } }",
5
+ "7937ec2d330f0f6f68f3aab589f10bc96c6ddeea": "query ServerOrderDetailsQuery($orderId: String!) { accountProfile { name } userOrder(orderId: $orderId) { allowCancellation canProcessOrderAuthorization clientProfileData { corporateName email firstName isCorporate lastName phone } creationDate customFields { fields { name refId value } id type } deliveryOptionsData { contact { email name phone } deliveryOptions { address { addressId addressType city complement country entityId geoCoordinates neighborhood number postalCode receiverName reference state street versionId } deliveryChannel deliveryCompany deliveryWindow { endDateUtc price startDateUtc } friendlyDeliveryOptionName friendlyShippingEstimate items { id imageUrl name price quantity tax total uniqueId } pickupStoreInfo { additionalInfo address { addressId addressType city complement country entityId geoCoordinates neighborhood number postalCode receiverName reference state street versionId } dockId friendlyName isPickupStore } quantityOfDifferentItems selectedSla seller shippingEstimate shippingEstimateDate total } } orderId paymentData { transactions { isActive payments { bankIssuedInvoiceIdentificationNumber connectorResponses { authId } group id installments lastDigits paymentOrigin paymentSystemName redemptionCode referenceValue tid url value } } } ruleForAuthorization { dimensionId orderAuthorizationId rule { authorizationData { authorizers { authorizationDate email id type } requireAllApprovals } authorizedEmails doId id isUserAuthorized isUserNextAuthorizer name notification priority scoreInterval { accept deny } status timeout trigger { condition { conditionType description expression greatherThan lessThan } effect { description effectType funcPath } } } } shopper { email firstName lastName phone } status statusDescription storePreferencesData { currencyCode } totals { id name value } } }",
6
+ "b0a6b9da966cf2365f9806fd810bac248b44dba8": "query ServerListOrdersQuery($clientEmail: String, $dateFinal: String, $dateInitial: String, $page: Int, $perPage: Int, $status: [String], $text: String) { accountProfile { name } listUserOrders( page: $page perPage: $perPage status: $status dateInitial: $dateInitial dateFinal: $dateFinal text: $text clientEmail: $clientEmail ) { list { ShippingEstimatedDate clientName creationDate currencyCode customFields { type value } items { description ean id price productId quantity refId seller sellingPrice } orderId status statusDescription totalValue } paging { currentPage pages perPage total } } }",
7
+ "672fe0f00b7b710b63fc6573c0a6b2ec54812b8f": "query ServerProfileQuery { accountProfile { email id name } }",
8
+ "0890ba3456c40a426893b80b698df7a84cfdd6a1": "query ServerSecurity { accountProfile { name } userDetails { email } }",
9
+ "e5eb7e46c685d0c7a2ec62c865bfb0a66f81d557": "query ServerUserDetailsQuery { accountProfile { name } userDetails { email name orgUnit role } }",
10
10
  "e2b06da6840614d3c72768e56579b9d3b8e80802": "mutation CancelOrderMutation($data: IUserOrderCancel!) { cancelOrder(data: $data) { data } }",
11
11
  "8c25d37c8d6e7c20ab21bb8a4f4e6a2fe320ea8d": "mutation ProcessOrderAuthorizationMutation($data: IProcessOrderAuthorization!) { processOrderAuthorization(data: $data) { isPendingForOtherAuthorizer ruleForAuthorization { dimensionId orderAuthorizationId rule { authorizationData { authorizers { authorizationDate email id type } requireAllApprovals } authorizedEmails doId id isUserAuthorized isUserNextAuthorizer name notification priority scoreInterval { accept deny } status timeout trigger { condition { conditionType description expression greatherThan lessThan } effect { description effectType funcPath } } } } } }",
12
12
  "32f99c73c3de958b64d6bece1afe800469f54548": "query ValidateUser { validateUser { isValid } }",
@@ -1048,8 +1048,6 @@ type Query {
1048
1048
  userDetails: StoreUserDetails! @cacheControl(scope: "public", sMaxAge: 120, staleWhileRevalidate: 3600)
1049
1049
  """Returns the account profile information for the current authenticated user (b2b or b2c user)."""
1050
1050
  accountProfile: StoreAccountProfile! @cacheControl(scope: "public", sMaxAge: 120, staleWhileRevalidate: 3600)
1051
- """Returns the account name of the current user or the B2B contract name if applicable."""
1052
- accountName: String @cacheControl(scope: "public", sMaxAge: 120, staleWhileRevalidate: 3600)
1053
1051
  """Returns information about the user validation."""
1054
1052
  validateUser: ValidateUserData @cacheControl(scope: "public", sMaxAge: 120, staleWhileRevalidate: 3600)
1055
1053
  """Returns a list of pickup points near to the given geo coordinates."""
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
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.89.1](https://github.com/vtex/faststore/compare/v3.89.0...v3.89.1) (2025-10-02)
7
+
8
+ ### Bug Fixes
9
+
10
+ - updates contract name SFS-2863 ([#3051](https://github.com/vtex/faststore/issues/3051)) ([3b884e4](https://github.com/vtex/faststore/commit/3b884e49eabbbd4d5832f342c759d1301c98dc0e))
11
+
6
12
  # [3.89.0](https://github.com/vtex/faststore/compare/v3.88.7...v3.89.0) (2025-10-02)
7
13
 
8
14
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "3.89.0",
3
+ "version": "3.89.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.88.6",
47
+ "@faststore/api": "^3.89.1",
48
48
  "@faststore/graphql-utils": "^3.81.0",
49
49
  "@faststore/lighthouse": "^3.81.0",
50
50
  "@faststore/sdk": "^3.88.6",
@@ -116,5 +116,5 @@
116
116
  "ts-jest": "29.1.1",
117
117
  "typescript": "5.3.2"
118
118
  },
119
- "gitHead": "77bd257d8f854dba233d1962aad06f34a1b12230"
119
+ "gitHead": "4466db1071e13b162b9a124e997587c570bcdd8b"
120
120
  }
@@ -10,12 +10,12 @@ import {
10
10
  type GlobalSectionsData,
11
11
  getGlobalSectionsData,
12
12
  } from 'src/components/cms/GlobalSections'
13
- import { execute } from 'src/server'
14
13
  import { getIsRepresentative } from 'src/sdk/account/getIsRepresentative'
14
+ import { execute } from 'src/server'
15
15
 
16
+ import { validateUser } from 'src/sdk/account/validateUser'
16
17
  import { injectGlobalSections } from 'src/server/cms/global'
17
18
  import { getMyAccountRedirect } from 'src/utils/myAccountRedirect'
18
- import { validateUser } from 'src/sdk/account/validateUser'
19
19
  import storeConfig from '../../discovery.config'
20
20
 
21
21
  export type MyAccountProps = {
@@ -26,7 +26,9 @@ export type MyAccountProps = {
26
26
 
27
27
  const query = gql(`
28
28
  query ServerAccountPageQuery {
29
- accountName
29
+ accountProfile {
30
+ name
31
+ }
30
32
  }
31
33
  `)
32
34
 
@@ -91,7 +93,7 @@ export const getServerSideProps: GetServerSideProps<
91
93
  return {
92
94
  props: {
93
95
  globalSections: globalSectionsResult,
94
- accountName: account.data.accountName,
96
+ accountName: account.data.accountProfile.name,
95
97
  isRepresentative,
96
98
  },
97
99
  }
@@ -35,7 +35,7 @@ const COMPONENTS: Record<string, ComponentType<any>> = {
35
35
 
36
36
  type Props = {
37
37
  globalSections: GlobalSectionsData
38
- accountName: ServerAccountPageQueryQuery['accountName']
38
+ accountName: ServerAccountPageQueryQuery['accountProfile']['name']
39
39
  }
40
40
 
41
41
  function Page({ globalSections: globalSectionsProp, accountName }: Props) {
@@ -66,7 +66,9 @@ function Page({ globalSections: globalSectionsProp, accountName }: Props) {
66
66
 
67
67
  const query = gql(`
68
68
  query ServerAccountPageQuery {
69
- accountName
69
+ accountProfile {
70
+ name
71
+ }
70
72
  }
71
73
  `)
72
74
 
@@ -134,7 +136,7 @@ export const getServerSideProps: GetServerSideProps<
134
136
  // The sections from the CMS page are not utilized here for the My Account page.
135
137
  // page,
136
138
  globalSections: globalSectionsResult,
137
- accountName: account.data.accountName,
139
+ accountName: account.data.accountProfile.name,
138
140
  },
139
141
  }
140
142
  }
@@ -38,7 +38,7 @@ const COMPONENTS: Record<string, ComponentType<any>> = {
38
38
  type Props = {
39
39
  page: PageContentType
40
40
  globalSections: GlobalSectionsData
41
- accountName: ServerAccountPageQueryQuery['accountName']
41
+ accountName: ServerAccountPageQueryQuery['accountProfile']['name']
42
42
  }
43
43
 
44
44
  function Page({
@@ -66,7 +66,9 @@ function Page({
66
66
 
67
67
  const query = gql(`
68
68
  query ServerAccountPageQuery {
69
- accountName
69
+ accountProfile {
70
+ name
71
+ }
70
72
  }
71
73
  `)
72
74
 
@@ -133,7 +135,7 @@ export const getServerSideProps: GetServerSideProps<
133
135
  props: {
134
136
  page,
135
137
  globalSections: globalSectionsResult,
136
- accountName: account.data.accountName,
138
+ accountName: account.data.accountProfile.name,
137
139
  },
138
140
  }
139
141
  }
@@ -257,7 +257,9 @@ const query = gql(`
257
257
  phone
258
258
  }
259
259
  }
260
- accountName
260
+ accountProfile {
261
+ name
262
+ }
261
263
  }
262
264
  `)
263
265
 
@@ -346,7 +348,7 @@ export const getServerSideProps: GetServerSideProps<
346
348
  props: {
347
349
  globalSections: globalSectionsResult,
348
350
  order: orderDetails.data.userOrder,
349
- accountName: orderDetails.data.accountName,
351
+ accountName: orderDetails.data.accountProfile.name,
350
352
  isRepresentative,
351
353
  },
352
354
  }
@@ -120,7 +120,9 @@ const query = gql(`
120
120
  perPage
121
121
  }
122
122
  }
123
- accountName
123
+ accountProfile {
124
+ name
125
+ }
124
126
  }
125
127
  `)
126
128
 
@@ -242,7 +244,7 @@ export const getServerSideProps: GetServerSideProps<
242
244
  return {
243
245
  props: {
244
246
  globalSections: globalSectionsResult,
245
- accountName: listOrders.data.accountName,
247
+ accountName: listOrders.data.accountProfile.name,
246
248
  listOrders: listOrders.data.listUserOrders,
247
249
  total: listOrders.data.listUserOrders.paging.total,
248
250
  perPage: listOrders.data.listUserOrders.paging.perPage,
@@ -1,6 +1,3 @@
1
- /* ######################################### */
2
- /* Mocked Page until development is finished, it will be removed after */
3
-
4
1
  import type { Locator } from '@vtex/client-cms'
5
2
  import type { GetServerSideProps } from 'next'
6
3
  import { NextSeo } from 'next-seo'
@@ -46,8 +43,8 @@ type ProfilePagePros = {
46
43
 
47
44
  export default function Profile({
48
45
  globalSections: globalSectionsProp,
49
- accountName,
50
46
  accountProfile,
47
+ accountName,
51
48
  isRepresentative,
52
49
  }: ProfilePagePros) {
53
50
  const { sections: globalSections, settings: globalSettings } =
@@ -73,7 +70,6 @@ export default function Profile({
73
70
 
74
71
  const query = gql(`
75
72
  query ServerProfileQuery {
76
- accountName
77
73
  accountProfile {
78
74
  name
79
75
  email
@@ -155,7 +151,7 @@ export const getServerSideProps: GetServerSideProps<
155
151
  return {
156
152
  props: {
157
153
  globalSections: globalSectionsResult,
158
- accountName: profile.data.accountName,
154
+ accountName: profile.data.accountProfile.name,
159
155
  accountProfile: profile.data.accountProfile,
160
156
  isRepresentative,
161
157
  },
@@ -1,6 +1,3 @@
1
- /* ######################################### */
2
- /* Mocked Page until development is finished, it will be removed after */
3
-
4
1
  import { NextSeo } from 'next-seo'
5
2
  import type { ComponentType } from 'react'
6
3
  import { MyAccountLayout } from 'src/components/account'
@@ -72,7 +69,9 @@ export default function Page({
72
69
 
73
70
  const query = gql(`
74
71
  query ServerSecurity {
75
- accountName
72
+ accountProfile {
73
+ name
74
+ }
76
75
  userDetails {
77
76
  email
78
77
  }
@@ -150,7 +149,7 @@ export const getServerSideProps: GetServerSideProps<
150
149
 
151
150
  return {
152
151
  props: {
153
- accountName: security.data.accountName,
152
+ accountName: security.data.accountProfile.name,
154
153
  userEmail: security.data?.userDetails.email || '',
155
154
  globalSections: globalSectionsResult,
156
155
  isRepresentative,
@@ -71,7 +71,9 @@ export default function Page({
71
71
 
72
72
  const query = gql(`
73
73
  query ServerUserDetailsQuery {
74
- accountName
74
+ accountProfile {
75
+ name
76
+ }
75
77
  userDetails {
76
78
  name
77
79
  email
@@ -171,7 +173,7 @@ export const getServerSideProps: GetServerSideProps<
171
173
  return {
172
174
  props: {
173
175
  globalSections: globalSectionsResult,
174
- accountName: userDetails.data.accountName,
176
+ accountName: userDetails.data.accountProfile.name,
175
177
  userDetails: userDetails.data?.userDetails ?? {},
176
178
  isRepresentative,
177
179
  },
@@ -79,7 +79,6 @@ const QUERIES = [
79
79
  'listUserOrders',
80
80
  'userDetails',
81
81
  'accountProfile',
82
- 'accountName',
83
82
  'validateUser',
84
83
  'pickupPoints',
85
84
  ]