1234567891011121314151617 |
- import { GithubBranch, GithubRepo, IClient, IPaginator, ResourceClientLoad, ResourceClientRequestModifiers, Response, TokenPaginatorState, User } from '../definitions';
- import { ResourceClient } from './http';
- export interface UserClientDeps {
- readonly client: IClient;
- readonly token: string;
- }
- export declare class UserClient extends ResourceClient implements ResourceClientLoad<User> {
- protected client: IClient;
- protected token: string;
- constructor({client, token}: UserClientDeps);
- load(id: number, modifiers?: ResourceClientRequestModifiers): Promise<User>;
- loadSelf(): Promise<User>;
- oAuthGithubLogin(id: number): Promise<string>;
- paginateGithubRepositories(id: number): IPaginator<Response<GithubRepo[]>, TokenPaginatorState>;
- paginateGithubBranches(userId: number, repoId: number): IPaginator<Response<GithubBranch[]>, TokenPaginatorState>;
- }
|