dots-wrapper
Version:
Digital Ocean v2 api wrapper - javascript - typescript - nodejs
11 lines (10 loc) • 563 B
TypeScript
import { IResponse, IContext, IListResponse, IListRequest } from '../../types';
import { ISnapshot } from '..';
export interface IListSnapshotApiResponse extends IListResponse {
snapshots: ISnapshot[];
}
export interface IListSnapshotApiRequest extends IListRequest {
resource_type?: 'droplet' | 'volume';
}
export type ListSnapshotsResponse = IResponse<IListSnapshotApiResponse>;
export declare const listSnapshots: ({ httpClient, }: IContext) => ({ page, per_page, resource_type, }: IListSnapshotApiRequest) => Promise<Readonly<ListSnapshotsResponse>>;