(workspaceLogin: string)
| 146 | } |
| 147 | |
| 148 | async getWorkspaceProjects(workspaceLogin: string): Promise<GetProjectResponse[]> { |
| 149 | const pages = await this._fetch<PaginatedList<GetProjectResponse>>( |
| 150 | new URL(`/cli/workspace/@${workspaceLogin}/projects`, this._apiOrigin), |
| 151 | {method: "GET"} |
| 152 | ); |
| 153 | // todo: handle pagination? |
| 154 | return pages.results; |
| 155 | } |
| 156 | |
| 157 | async getDeploy(deployId: string): Promise<GetDeployResponse> { |
| 158 | return await this._fetch<GetDeployResponse>(new URL(`/cli/deploy/${deployId}`, this._apiOrigin), {method: "GET"}); |
no outgoing calls
no test coverage detected