UI for Zipcoin Blue

1234567891011121314151617
  1. import { GithubBranch, GithubRepo, IClient, IPaginator, ResourceClientLoad, ResourceClientRequestModifiers, Response, TokenPaginatorState, User } from '../definitions';
  2. import { ResourceClient } from './http';
  3. export interface UserClientDeps {
  4. readonly client: IClient;
  5. readonly token: string;
  6. }
  7. export declare class UserClient extends ResourceClient implements ResourceClientLoad<User> {
  8. protected client: IClient;
  9. protected token: string;
  10. constructor({client, token}: UserClientDeps);
  11. load(id: number, modifiers?: ResourceClientRequestModifiers): Promise<User>;
  12. loadSelf(): Promise<User>;
  13. oAuthGithubLogin(id: number): Promise<string>;
  14. paginateGithubRepositories(id: number): IPaginator<Response<GithubRepo[]>, TokenPaginatorState>;
  15. paginateGithubBranches(userId: number, repoId: number): IPaginator<Response<GithubBranch[]>, TokenPaginatorState>;
  16. }