Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 1641f15

Browse files
authored
ISSUE-8117: Company-related query names and attributes have been fixed (#8120)
1 parent c9f8126 commit 1641f15

File tree

8 files changed

+183
-183
lines changed

8 files changed

+183
-183
lines changed

src/_data/toc/graphql.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -69,21 +69,6 @@ pages:
6969
- label: categoryList query
7070
url: /graphql/queries/category-list.html
7171

72-
- label: checkCompanyAdminEmail query
73-
url: /graphql/queries/check-company-admin-email.html
74-
edition: b2b-only
75-
exclude_versions: ["2.3"]
76-
77-
- label: checkCompanyEmail query
78-
url: /graphql/queries/check-company-email.html
79-
edition: b2b-only
80-
exclude_versions: ["2.3"]
81-
82-
- label: checkCompanyUserEmail query
83-
url: /graphql/queries/check-company-admin-email.html
84-
edition: b2b-only
85-
exclude_versions: ["2.3"]
86-
8772
- label: checkoutAgreements query
8873
url: /graphql/queries/checkout-agreements.html
8974

@@ -135,6 +120,21 @@ pages:
135120
url: /graphql/queries/giftcard-account.html
136121
edition: ee-only
137122

123+
- label: isCompanyAdminEmailAvailable query
124+
url: /graphql/queries/is-company-admin-email-available.html
125+
edition: b2b-only
126+
exclude_versions: ["2.3"]
127+
128+
- label: isCompanyEmailAvailable query
129+
url: /graphql/queries/is-company-email-available.html
130+
edition: b2b-only
131+
exclude_versions: ["2.3"]
132+
133+
- label: isCompanyUserEmailAvailable query
134+
url: /graphql/queries/is-company-user-email-available.html
135+
edition: b2b-only
136+
exclude_versions: ["2.3"]
137+
138138
- label: isEmailAvailable query
139139
url: /graphql/queries/is-email-available.html
140140

src/_includes/graphql/company.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Attribute | Data type | Description
1818
`team(id: ID!)` | CompanyTeam | Returns the specified company team
1919
`user(id: ID!)` | Customer | Returns the specified company user
2020
`users(filter: CompanyUsersFilterInput, pageSize: Int = 20, currentPage: Int = 1)`| CompanyUsers | Returns the company users that match the specified filter
21-
`vat_id` | String | The value-added tax number that is assigned to the company by some jurisdictions for tax reporting purposes
21+
`vat_tax_id` | String | The value-added tax number that is assigned to the company by some jurisdictions for tax reporting purposes
2222

2323
### CompanyAclResource attributes {#CompanyAclResource}
2424

@@ -28,7 +28,7 @@ Attribute | Data Type | Description
2828
--- | --- | ---
2929
`children` | [CompanyAclResource!] | An array of sub-resources
3030
`id` | ID! | The ID assigned to the ACL resource
31-
`sortOrder` | Int | ACL resource sort order
31+
`sort_order` | Int | ACL resource sort order
3232
`text` | String | The label assigned to the ACL resource
3333

3434
### CompanyAdmin attributes {#CompanyAdmin}
@@ -74,9 +74,9 @@ The `CompanyRoles` object can contain the following attributes:
7474

7575
Attribute | Data Type | Description
7676
--- | --- | ---
77-
`items` | [CompanyRole] | A list of company roles that match the specified filter criteria
77+
`items` | [CompanyRole]! | A list of company roles that match the specified filter criteria
7878
`page_info` | SearchResultPageInfo | Pagination meta data
79-
`total_count` | Int | The total number of roles matching the specified filter
79+
`total_count` | Int! | The total number of roles matching the specified filter
8080

8181
### CompanySalesRepresentative attributes {#CompanySalesRepresentative}
8282

@@ -94,6 +94,6 @@ The `CompanyUsers` object can contain the following attributes:
9494

9595
Attribute | Data Type | Description
9696
--- | --- | ---
97-
`items` | [[Customer]]({{page.baseurl}}/graphql/queries/customer.html) | An array of `CompanyUser` objects that match the specified search criteria
97+
`items` | [[Customer]!]({{page.baseurl}}/graphql/queries/customer.html) | An array of `CompanyUser` objects that match the specified search criteria
9898
`page_info` | SearchResultPageInfo | Pagination meta data
99-
`total_count` | Int | The number of objects returned
99+
`total_count` | Int! | The number of objects returned

src/guides/v2.4/graphql/queries/check-company-admin-email.md

Lines changed: 0 additions & 54 deletions
This file was deleted.

src/guides/v2.4/graphql/queries/check-company-email.md

Lines changed: 0 additions & 54 deletions
This file was deleted.

src/guides/v2.4/graphql/queries/check-company-user-email.md

Lines changed: 0 additions & 54 deletions
This file was deleted.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
group: graphql
3+
title: isCompanyAdminEmailAvailable query
4+
b2b_only: true
5+
---
6+
7+
The `isCompanyAdminEmailAvailable` query checks whether the specified email can be used to create a company administrator account. If the email matches an existing customer or another company administrator account, the query returns a `false` value. A value of `true` indicates the email address can be used to create a company administrator account.
8+
9+
## Syntax
10+
11+
`isCompanyAdminEmailAvailable ( email String! ) IsCompanyAdminEmailAvailableOutput`
12+
13+
## Example usage
14+
15+
The following example checks whether the email address `roni_cost@example.com` can be used to create a company administrator account.
16+
17+
**Request:**
18+
19+
```graphql
20+
query{
21+
isCompanyAdminEmailAvailable(email: "roni_cost@example.com"){
22+
is_email_available
23+
}
24+
}
25+
```
26+
27+
**Response:**
28+
29+
```json
30+
{
31+
"data": {
32+
"isCompanyAdminEmailAvailable": {
33+
"is_email_available": false
34+
}
35+
}
36+
}
37+
```
38+
39+
## Input attribute
40+
41+
Attribute | Data Type | Description
42+
--- | --- | ---
43+
`email` | String! | The email address to check
44+
45+
## Output attribute
46+
47+
Attribute | Data Type | Description
48+
--- | --- | ---
49+
`is_email_available` | Boolean! | A value of `true` indicates the email address is available
50+
51+
## Related topics
52+
53+
* [isCompanyEmailAvailable query]({{page.baseurl}}/graphql/queries/is-company-email-available.html)
54+
* [isCompanyUserEmailAvailable query]({{page.baseurl}}/graphql/queries/is-company-user-email-available.html)
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
group: graphql
3+
title: isCompanyEmailAvailable query
4+
b2b_only: true
5+
---
6+
7+
The `isCompanyEmailAvailable` query checks whether the specified email is valid for company registration. The specified email can be the same as an existing customer or company administrator. If the email matches an existing company email, the query returns a `false` value.
8+
9+
## Syntax
10+
11+
`isCompanyEmailAvailable ( email String! ) IsCompanyEmailAvailableOutput`
12+
13+
## Example usage
14+
15+
The following example checks whether the email address `roni_cost@example.com` can be used to register a company.
16+
17+
**Request:**
18+
19+
```graphql
20+
query{
21+
isCompanyEmailAvailable(email: "roni_cost@example.com"){
22+
is_email_available
23+
}
24+
}
25+
```
26+
27+
**Response:**
28+
29+
```json
30+
{
31+
"data": {
32+
"isCompanyEmailAvailable": {
33+
"is_email_available": true
34+
}
35+
}
36+
}
37+
```
38+
39+
## Input attribute
40+
41+
Attribute | Data Type | Description
42+
--- | --- | ---
43+
`email` | String! | The email address to check
44+
45+
## Output attribute
46+
47+
Attribute | Data Type | Description
48+
--- | --- | ---
49+
`is_email_available` | Boolean! | A value of `true` indicates the email address is available
50+
51+
## Related topics
52+
53+
* [isCompanyAdminEmailAvailable query]({{page.baseurl}}/graphql/queries/is-company-admin-email-available.html)
54+
* [isCompanyUserEmailAvailable query]({{page.baseurl}}/graphql/queries/is-company-user-email-available.html)

0 commit comments

Comments
 (0)