Skip to content

Commit ea47e53

Browse files
authored
docs(account): revamp of the documentation (#519)
1 parent a2ebac4 commit ea47e53

File tree

2 files changed

+40
-27
lines changed

2 files changed

+40
-27
lines changed

packages/clients/src/api/account/v2/api.gen.ts

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ const jsonContentHeaders = {
3333
*/
3434
export class API extends ParentAPI {
3535
/**
36-
* Create project
36+
* Generate a new Project for an Organization, specifying its configuration
37+
* including name and description.
3738
*
3839
* @param request - The request {@link CreateProjectRequest}
3940
* @returns A Promise of Project
@@ -78,7 +79,10 @@ export class API extends ParentAPI {
7879
)
7980

8081
/**
81-
* List projects
82+
* List all Projects of an Organization. The response will include the total
83+
* number of Projects as well as their associated Organizations, names and
84+
* IDs. Other information include the creation and update date of the
85+
* Project.
8286
*
8387
* @param request - The request {@link ListProjectsRequest}
8488
* @returns A Promise of ListProjectsResponse
@@ -87,7 +91,9 @@ export class API extends ParentAPI {
8791
enrichForPagination('projects', this.pageOfListProjects, request)
8892

8993
/**
90-
* Get project
94+
* Retrieve information about an existing Project, specified by its Project
95+
* ID. Its full details, including ID, name and description, are returned in
96+
* the response object.
9197
*
9298
* @param request - The request {@link GetProjectRequest}
9399
* @returns A Promise of Project
@@ -105,7 +111,10 @@ export class API extends ParentAPI {
105111
)
106112

107113
/**
108-
* Delete project
114+
* Delete an existing Project, specified by its Project ID. The Project needs
115+
* to be empty (meaning there are no resources left in it) to be deleted
116+
* effectively. Note that deleting a Project is permanent, and cannot be
117+
* undone.
109118
*
110119
* @param request - The request {@link DeleteProjectRequest}
111120
*/
@@ -119,7 +128,8 @@ export class API extends ParentAPI {
119128
})
120129

121130
/**
122-
* Update project
131+
* Update the parameters of an existing Project, specified by its Project ID.
132+
* These parameters include the name and description.
123133
*
124134
* @param request - The request {@link UpdateProjectRequest}
125135
* @returns A Promise of Project

packages/clients/src/api/account/v2/types.gen.ts

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,67 +9,70 @@ export type ListProjectsRequestOrderBy =
99

1010
/** List projects response. */
1111
export interface ListProjectsResponse {
12-
/** The total number of projects. */
12+
/** Total number of Projects. */
1313
totalCount: number
14-
/** The paginated returned projects. */
14+
/** Paginated returned Projects. */
1515
projects: Project[]
1616
}
1717

1818
/** Project. */
1919
export interface Project {
20-
/** The ID of the project. */
20+
/** ID of the Project. */
2121
id: string
22-
/** The name of the project. */
22+
/** Name of the Project. */
2323
name: string
24-
/** The organization ID of the project. */
24+
/** Organization ID of the Project. */
2525
organizationId: string
26-
/** The creation date of the project. */
26+
/** Creation date of the Project. */
2727
createdAt?: Date
28-
/** The update date of the project. */
28+
/** Update date of the Project. */
2929
updatedAt?: Date
30-
/** The description of the project. */
30+
/** Description of the Project. */
3131
description: string
3232
}
3333

3434
export type CreateProjectRequest = {
35-
/** The name of the project. */
35+
/** Name of the Project. */
3636
name: string
37-
/** The organization ID of the project. */
37+
/** Organization ID of the Project. */
3838
organizationId?: string
39-
/** The description of the project. */
39+
/** Description of the Project. */
4040
description?: string
4141
}
4242

4343
export type ListProjectsRequest = {
44-
/** The organization ID of the project. */
44+
/** Organization ID of the Project. */
4545
organizationId?: string
46-
/** The name of the project. */
46+
/** Name of the Project. */
4747
name?: string
48-
/** The page number for the returned projects. */
48+
/** Page number for the returned Projects. */
4949
page?: number
50-
/** The maximum number of project per page. */
50+
/** Maximum number of Project per page. */
5151
pageSize?: number
52-
/** The sort order of the returned projects. */
52+
/** Sort order of the returned Projects. */
5353
orderBy?: ListProjectsRequestOrderBy
54-
/** Filter out by a list of project ID. */
54+
/**
55+
* Project IDs to filter for. The results will be limited to any Projects with
56+
* an ID in this array.
57+
*/
5558
projectIds?: string[]
5659
}
5760

5861
export type GetProjectRequest = {
59-
/** The project ID of the project. */
62+
/** Project ID of the Project. */
6063
projectId?: string
6164
}
6265

6366
export type DeleteProjectRequest = {
64-
/** The project ID of the project. */
67+
/** Project ID of the Project. */
6568
projectId?: string
6669
}
6770

6871
export type UpdateProjectRequest = {
69-
/** The project ID of the project. */
72+
/** Project ID of the Project. */
7073
projectId?: string
71-
/** The name of the project. */
74+
/** Name of the Project. */
7275
name?: string
73-
/** The description of the project. */
76+
/** Description of the Project. */
7477
description?: string
7578
}

0 commit comments

Comments
 (0)