snapshot.d.ts 765 B

12345678910111213141516171819
  1. import { IClient, IPaginator, PaginateArgs, ResourceClientLoad, ResourceClientPaginate, Response, Snapshot } from '../definitions';
  2. import { ResourceClient } from './http';
  3. export interface SnapshotClientDeps {
  4. readonly client: IClient;
  5. readonly token: string;
  6. readonly app: {
  7. id: string;
  8. };
  9. }
  10. export declare class SnapshotClient extends ResourceClient implements ResourceClientLoad<Snapshot>, ResourceClientPaginate<Snapshot> {
  11. protected client: IClient;
  12. protected token: string;
  13. protected app: {
  14. id: string;
  15. };
  16. constructor({ client, app, token }: SnapshotClientDeps);
  17. load(id: string): Promise<Snapshot>;
  18. paginate(args?: Partial<PaginateArgs<Response<Snapshot[]>>>): IPaginator<Response<Snapshot[]>>;
  19. }