@faststore/core 4.0.1-dev.2 → 4.1.0-dev.0

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.
@@ -1,9 +1,9 @@
1
1
 
2
- > @faststore/core@4.0.1-dev.1 generate /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.0.1-dev.2 generate /home/runner/work/faststore/faststore/packages/core
3
3
  > pnpm run gen-types && pnpm run cache-graphql
4
4
 
5
5
 
6
- > @faststore/core@4.0.1-dev.1 gen-types /home/runner/work/faststore/faststore/packages/core
6
+ > @faststore/core@4.0.1-dev.2 gen-types /home/runner/work/faststore/faststore/packages/core
7
7
  > node ../cli/bin/run generate-types .
8
8
 
9
9
  [STARTED] Parse Configuration
@@ -19,7 +19,7 @@
19
19
  [COMPLETED] Generate to /home/runner/work/faststore/faststore/packages/core/@generated/
20
20
  [COMPLETED] Generate outputs
21
21
 
22
- > @faststore/core@4.0.1-dev.1 cache-graphql /home/runner/work/faststore/faststore/packages/core
22
+ > @faststore/core@4.0.1-dev.2 cache-graphql /home/runner/work/faststore/faststore/packages/core
23
23
  > node ../cli/bin/run cache-graphql --config=./discovery.config.default.js --queries=./@generated/persisted-documents.json
24
24
 
25
25
  [Info] - Config file location: /home/runner/work/faststore/faststore/packages/core/discovery.config.default.js
@@ -1,13 +1,13 @@
1
1
 
2
- > @faststore/core@4.0.1-dev.1 test /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.0.1-dev.2 test /home/runner/work/faststore/faststore/packages/core
3
3
  > vitest run
4
4
 
5
5
 
6
6
   RUN  v4.0.7 /home/runner/work/faststore/faststore/packages/core
7
7
 
8
- ✓  node  test/utils/match-url.test.ts (10 tests) 37ms
9
- ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 122ms
10
- ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 37ms
8
+ ✓  node  test/utils/match-url.test.ts (10 tests) 31ms
9
+ ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 82ms
10
+ ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 27ms
11
11
  stderr | test/sdk/localization/store-url.browser.test.ts
12
12
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
13
13
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:119:27)
@@ -15,7 +15,6 @@
15
15
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:342:23)
16
16
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
17
17
 
18
- ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 40ms
19
18
  stderr | test/sdk/localization/store-url.browser.test.ts
20
19
  Error in optimistic validation: ReferenceError: Cannot access '__vite_ssr_import_4__' before initialization
21
20
  at getSettings (/home/runner/work/faststore/faststore/packages/core/src/sdk/localization/useLocalizationConfig.tsx:126:45)
@@ -24,24 +23,26 @@
24
23
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:342:23)
25
24
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
26
25
 
27
- ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 15ms
28
- ✓  node  test/sdk/localization/useBindingSelector.test.tsx (12 tests) 22ms
29
- ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 92ms
30
- ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 25ms
31
- ✓  node  test/utils/clearCookies.test.ts (20 tests) 79ms
32
- ✓  node  test/server/content/service.test.ts (5 tests) 10ms
33
- ✓  node  test/server/cms/global.test.ts (3 tests) 12ms
34
- ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 16ms
35
- ✓  node  test/sdk/localization/store-url.test.ts (1 test) 12ms
36
- ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 18ms
37
- ✓  node  test/pages/api/preview.test.ts (2 tests) 24ms
38
- ✓  node  test/server/cms/index.test.ts (2 tests) 7ms
39
- ✓  node  test/server/index.test.ts (7 tests) 1259ms
40
- ✓ should return a valid merged GraphQL schema  599ms
41
- ✓ should exist with its plugins  406ms
26
+ ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 20ms
27
+ ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 35ms
28
+ ✓  node  test/sdk/localization/useBindingSelector.test.tsx (12 tests) 26ms
29
+ ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 120ms
30
+ ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 13ms
31
+ ✓  node  test/utils/clearCookies.test.ts (20 tests) 110ms
32
+ ✓  node  test/server/cms/global.test.ts (3 tests) 14ms
33
+ ✓  node  test/server/content/service.test.ts (5 tests) 13ms
34
+ ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 18ms
35
+ ✓  node  test/sdk/localization/store-url.test.ts (1 test) 18ms
36
+ ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 12ms
37
+ ✓  node  test/pages/api/preview.test.ts (2 tests) 29ms
38
+ ✓  node  test/server/cms/index.test.ts (2 tests) 17ms
39
+ ✓  node  test/server/index.test.ts (7 tests) 1380ms
40
+ ✓ should return a valid merged GraphQL schema  351ms
41
+ ✓ should exist with its plugins  521ms
42
+ ✓ should handle options and execute  469ms
42
43
 
43
44
   Test Files  17 passed (17)
44
45
   Tests  203 passed (203)
45
-  Start at  15:30:48
46
-  Duration  13.81s (transform 5.83s, setup 0ms, collect 16.52s, tests 1.83s, environment 9.75s, prepare 663ms)
46
+  Start at  17:05:10
47
+  Duration  13.05s (transform 5.17s, setup 0ms, collect 15.92s, tests 1.97s, environment 7.50s, prepare 664ms)
47
48
 
package/@generated/gql.ts CHANGED
@@ -36,7 +36,7 @@ type Documents = {
36
36
  "\n query ServerListOrdersQuery ($page: Int,$perPage: Int, $status: [String], $dateInitial: String, $dateFinal: String, $text: String, $clientEmail: String, $pendingMyApproval: Boolean) {\n listUserOrders (page: $page, perPage: $perPage, status: $status, dateInitial: $dateInitial, dateFinal: $dateFinal, text: $text, clientEmail: $clientEmail, pendingMyApproval: $pendingMyApproval) {\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": typeof types.ServerListOrdersQueryDocument,
37
37
  "\n query ServerProfileQuery {\n accountProfile {\n name\n email\n id\n }\n }\n": typeof types.ServerProfileQueryDocument,
38
38
  "\n query ServerSecurity {\n accountProfile {\n name\n }\n userDetails {\n email\n }\n }\n": typeof types.ServerSecurityDocument,
39
- "\n query ServerUserDetailsQuery {\n accountProfile {\n name\n }\n userDetails {\n name\n email\n role\n orgUnit\n }\n }\n": typeof types.ServerUserDetailsQueryDocument,
39
+ "\n query ServerUserDetailsQuery {\n accountProfile {\n name\n }\n userDetails {\n username\n name\n email\n phone\n role\n orgUnit\n }\n }\n": typeof types.ServerUserDetailsQueryDocument,
40
40
  "\n mutation CancelOrderMutation($data: IUserOrderCancel!) {\n cancelOrder(data: $data) {\n data\n }\n }\n": typeof types.CancelOrderMutationDocument,
41
41
  "\n mutation ProcessOrderAuthorizationMutation($data: IProcessOrderAuthorization!) {\n processOrderAuthorization(data: $data) {\n isPendingForOtherAuthorizer\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 }\n }\n": typeof types.ProcessOrderAuthorizationMutationDocument,
42
42
  "\n query ValidateUser {\n validateUser {\n isValid\n }\n }\n": typeof types.ValidateUserDocument,
@@ -79,7 +79,7 @@ const documents: Documents = {
79
79
  "\n query ServerListOrdersQuery ($page: Int,$perPage: Int, $status: [String], $dateInitial: String, $dateFinal: String, $text: String, $clientEmail: String, $pendingMyApproval: Boolean) {\n listUserOrders (page: $page, perPage: $perPage, status: $status, dateInitial: $dateInitial, dateFinal: $dateFinal, text: $text, clientEmail: $clientEmail, pendingMyApproval: $pendingMyApproval) {\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": types.ServerListOrdersQueryDocument,
80
80
  "\n query ServerProfileQuery {\n accountProfile {\n name\n email\n id\n }\n }\n": types.ServerProfileQueryDocument,
81
81
  "\n query ServerSecurity {\n accountProfile {\n name\n }\n userDetails {\n email\n }\n }\n": types.ServerSecurityDocument,
82
- "\n query ServerUserDetailsQuery {\n accountProfile {\n name\n }\n userDetails {\n name\n email\n role\n orgUnit\n }\n }\n": types.ServerUserDetailsQueryDocument,
82
+ "\n query ServerUserDetailsQuery {\n accountProfile {\n name\n }\n userDetails {\n username\n name\n email\n phone\n role\n orgUnit\n }\n }\n": types.ServerUserDetailsQueryDocument,
83
83
  "\n mutation CancelOrderMutation($data: IUserOrderCancel!) {\n cancelOrder(data: $data) {\n data\n }\n }\n": types.CancelOrderMutationDocument,
84
84
  "\n mutation ProcessOrderAuthorizationMutation($data: IProcessOrderAuthorization!) {\n processOrderAuthorization(data: $data) {\n isPendingForOtherAuthorizer\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 }\n }\n": types.ProcessOrderAuthorizationMutationDocument,
85
85
  "\n query ValidateUser {\n validateUser {\n isValid\n }\n }\n": types.ValidateUserDocument,
@@ -188,7 +188,7 @@ export function gql(source: "\n query ServerSecurity {\n accountProfile {\n
188
188
  /**
189
189
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
190
190
  */
191
- export function gql(source: "\n query ServerUserDetailsQuery {\n accountProfile {\n name\n }\n userDetails {\n name\n email\n role\n orgUnit\n }\n }\n"): typeof import('./graphql').ServerUserDetailsQueryDocument;
191
+ export function gql(source: "\n query ServerUserDetailsQuery {\n accountProfile {\n name\n }\n userDetails {\n username\n name\n email\n phone\n role\n orgUnit\n }\n }\n"): typeof import('./graphql').ServerUserDetailsQueryDocument;
192
192
  /**
193
193
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
194
194
  */
@@ -1658,8 +1658,12 @@ export type StoreUserDetails = {
1658
1658
  name: Maybe<Scalars['String']['output']>;
1659
1659
  /** User's organizational unit. */
1660
1660
  orgUnit: Maybe<Scalars['String']['output']>;
1661
+ /** User's phone number. */
1662
+ phone: Maybe<Scalars['String']['output']>;
1661
1663
  /** User's role. */
1662
1664
  role: Maybe<Array<Maybe<Scalars['String']['output']>>>;
1665
+ /** User's username (login). May differ from email when Alternative Login is enabled. */
1666
+ username: Maybe<Scalars['String']['output']>;
1663
1667
  };
1664
1668
 
1665
1669
  export type UserOrder = {
@@ -2560,7 +2564,7 @@ export type ServerSecurityQuery = { accountProfile: { name: string | null }, use
2560
2564
  export type ServerUserDetailsQueryQueryVariables = Exact<{ [key: string]: never; }>;
2561
2565
 
2562
2566
 
2563
- export type ServerUserDetailsQueryQuery = { accountProfile: { name: string | null }, userDetails: { name: string | null, email: string | null, role: Array<string | null> | null, orgUnit: string | null } };
2567
+ export type ServerUserDetailsQueryQuery = { accountProfile: { name: string | null }, userDetails: { username: string | null, name: string | null, email: string | null, phone: string | null, role: Array<string | null> | null, orgUnit: string | null } };
2564
2568
 
2565
2569
  export type CancelOrderMutationMutationVariables = Exact<{
2566
2570
  data: IUserOrderCancel;
@@ -3247,7 +3251,7 @@ export const ServerOrderDetailsQueryDocument = {"__meta__":{"operationName":"Ser
3247
3251
  export const ServerListOrdersQueryDocument = {"__meta__":{"operationName":"ServerListOrdersQuery","operationHash":"70d06de1da9c11f10ebde31b66fd74eccd456af5"}} as unknown as TypedDocumentString<ServerListOrdersQueryQuery, ServerListOrdersQueryQueryVariables>;
3248
3252
  export const ServerProfileQueryDocument = {"__meta__":{"operationName":"ServerProfileQuery","operationHash":"672fe0f00b7b710b63fc6573c0a6b2ec54812b8f"}} as unknown as TypedDocumentString<ServerProfileQueryQuery, ServerProfileQueryQueryVariables>;
3249
3253
  export const ServerSecurityDocument = {"__meta__":{"operationName":"ServerSecurity","operationHash":"0890ba3456c40a426893b80b698df7a84cfdd6a1"}} as unknown as TypedDocumentString<ServerSecurityQuery, ServerSecurityQueryVariables>;
3250
- export const ServerUserDetailsQueryDocument = {"__meta__":{"operationName":"ServerUserDetailsQuery","operationHash":"e5eb7e46c685d0c7a2ec62c865bfb0a66f81d557"}} as unknown as TypedDocumentString<ServerUserDetailsQueryQuery, ServerUserDetailsQueryQueryVariables>;
3254
+ export const ServerUserDetailsQueryDocument = {"__meta__":{"operationName":"ServerUserDetailsQuery","operationHash":"630ec1f47f2710ce3d7895e9131482641f30c837"}} as unknown as TypedDocumentString<ServerUserDetailsQueryQuery, ServerUserDetailsQueryQueryVariables>;
3251
3255
  export const CancelOrderMutationDocument = {"__meta__":{"operationName":"CancelOrderMutation","operationHash":"e2b06da6840614d3c72768e56579b9d3b8e80802"}} as unknown as TypedDocumentString<CancelOrderMutationMutation, CancelOrderMutationMutationVariables>;
3252
3256
  export const ProcessOrderAuthorizationMutationDocument = {"__meta__":{"operationName":"ProcessOrderAuthorizationMutation","operationHash":"8c25d37c8d6e7c20ab21bb8a4f4e6a2fe320ea8d"}} as unknown as TypedDocumentString<ProcessOrderAuthorizationMutationMutation, ProcessOrderAuthorizationMutationMutationVariables>;
3253
3257
  export const ValidateUserDocument = {"__meta__":{"operationName":"ValidateUser","operationHash":"32f99c73c3de958b64d6bece1afe800469f54548"}} as unknown as TypedDocumentString<ValidateUserQuery, ValidateUserQueryVariables>;
@@ -6,7 +6,7 @@
6
6
  "70d06de1da9c11f10ebde31b66fd74eccd456af5": "query ServerListOrdersQuery($clientEmail: String, $dateFinal: String, $dateInitial: String, $page: Int, $pendingMyApproval: Boolean, $perPage: Int, $status: [String], $text: String) { accountProfile { name } listUserOrders( page: $page perPage: $perPage status: $status dateInitial: $dateInitial dateFinal: $dateFinal text: $text clientEmail: $clientEmail pendingMyApproval: $pendingMyApproval ) { 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
7
  "672fe0f00b7b710b63fc6573c0a6b2ec54812b8f": "query ServerProfileQuery { accountProfile { email id name } }",
8
8
  "0890ba3456c40a426893b80b698df7a84cfdd6a1": "query ServerSecurity { accountProfile { name } userDetails { email } }",
9
- "e5eb7e46c685d0c7a2ec62c865bfb0a66f81d557": "query ServerUserDetailsQuery { accountProfile { name } userDetails { email name orgUnit role } }",
9
+ "630ec1f47f2710ce3d7895e9131482641f30c837": "query ServerUserDetailsQuery { accountProfile { name } userDetails { email name orgUnit phone role username } }",
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 } }",
@@ -1697,10 +1697,16 @@ type StoreSuggestions {
1697
1697
 
1698
1698
  """User details information."""
1699
1699
  type StoreUserDetails {
1700
+ """
1701
+ User's username (login). May differ from email when Alternative Login is enabled.
1702
+ """
1703
+ username: String
1700
1704
  """User's name."""
1701
1705
  name: String
1702
1706
  """User's email."""
1703
1707
  email: String
1708
+ """User's phone number."""
1709
+ phone: String
1704
1710
  """User's role."""
1705
1711
  role: [String]
1706
1712
  """User's organizational unit."""
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
+ # [4.1.0-dev.0](https://github.com/vtex/faststore/compare/v4.0.1-dev.2...v4.1.0-dev.0) (2026-05-11)
7
+
8
+ ### Features
9
+
10
+ - user details adjusts - SFS-2950 ([#3306](https://github.com/vtex/faststore/issues/3306)) ([70b018d](https://github.com/vtex/faststore/commit/70b018d713b4ec0da698bfc377332b356d9fa9cd))
11
+
6
12
  ## [4.0.1-dev.2](https://github.com/vtex/faststore/compare/v4.0.1-dev.1...v4.0.1-dev.2) (2026-05-11)
7
13
 
8
14
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "4.0.1-dev.2",
3
+ "version": "4.1.0-dev.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,11 +39,11 @@
39
39
  "@envelop/graphql-jit": "catalog:",
40
40
  "@envelop/parser-cache": "catalog:",
41
41
  "@envelop/validation-cache": "catalog:",
42
- "@faststore/api": "4.0.1-dev.2",
43
- "@faststore/diagnostics": "4.0.1-dev.2",
44
- "@faststore/lighthouse": "4.0.1-dev.2",
45
- "@faststore/sdk": "4.0.1-dev.2",
46
- "@faststore/ui": "4.0.1-dev.2",
42
+ "@faststore/api": "4.1.0-dev.0",
43
+ "@faststore/diagnostics": "4.1.0-dev.0",
44
+ "@faststore/lighthouse": "4.1.0-dev.0",
45
+ "@faststore/sdk": "4.1.0-dev.0",
46
+ "@faststore/ui": "4.1.0-dev.0",
47
47
  "@graphql-codegen/cli": "catalog:",
48
48
  "@graphql-codegen/client-preset": "4.2.6",
49
49
  "@graphql-codegen/typescript": "catalog:",
@@ -113,5 +113,5 @@
113
113
  "react": "catalog:",
114
114
  "react-dom": "catalog:"
115
115
  },
116
- "gitHead": "78469e62248563c911ba449ea69fc1edacf7277e"
116
+ "gitHead": "e356beb2c1bfd3b06bc2a383c01d5957d18c8f34"
117
117
  }
@@ -5,15 +5,17 @@ import styles from './styles.module.scss'
5
5
 
6
6
  type MyAccountUserDetailsProps = {
7
7
  userDetails: {
8
+ username: string
8
9
  name: string
9
10
  email: string
11
+ phone: string
10
12
  role: string[]
11
13
  orgUnit: string
12
14
  }
13
15
  }
14
16
 
15
17
  export default function MyAccountUserDetails({
16
- userDetails: { name, email, role, orgUnit },
18
+ userDetails: { username, name, email, phone, role, orgUnit },
17
19
  }: MyAccountUserDetailsProps) {
18
20
  return (
19
21
  <section className={styles.section}>
@@ -22,14 +24,18 @@ export default function MyAccountUserDetails({
22
24
  <AccountTable
23
25
  rows={[
24
26
  { heading: 'Name', data: name ? name : '–' },
27
+ { heading: 'Username', data: username ? username : '–' },
28
+ { heading: 'Phone number', data: phone ? phone : '–' },
25
29
  { heading: 'Email', data: email },
26
30
  {
27
31
  heading: 'Role',
28
- data: role.map((r) => (
29
- <span key={r} data-fs-user-details-row-value>
30
- <Tag>{r}</Tag>
32
+ data: (
33
+ <span data-fs-user-details-row-tags>
34
+ {role.map((r) => (
35
+ <Tag key={r}>{r}</Tag>
36
+ ))}
31
37
  </span>
32
- )),
38
+ ),
33
39
  },
34
40
  { heading: 'Organizational unit', data: orgUnit },
35
41
  ]}
@@ -35,8 +35,10 @@ const COMPONENTS: Record<string, ComponentType<any>> = {
35
35
 
36
36
  type UserDetailsPagePros = {
37
37
  userDetails: {
38
+ username: string
38
39
  name: string
39
40
  email: string
41
+ phone: string
40
42
  role: string[]
41
43
  orgUnit: string
42
44
  }
@@ -75,8 +77,10 @@ const query = gql(`
75
77
  name
76
78
  }
77
79
  userDetails {
80
+ username
78
81
  name
79
82
  email
83
+ phone
80
84
  role
81
85
  orgUnit
82
86
  }