privacy.com
Version:
Wrapper for the Privacy.com API using Axios and TypeScript
22 lines (21 loc) • 686 B
TypeScript
import { Endpoint, Response } from "../";
export declare abstract class GetEndpoint extends Endpoint {
method: string;
path: string;
params: object;
}
/**
* Generic response type for paginated endpoints
* @remarks these are useful for endpoints which take "page, page_size" in their parameters
* - {@link ListCardsRequest}
* - {@link ListTransactionsRequest}
*/
export declare type GetRequestPaginatedResponse<T> = Response<{
data: T[];
/** page number returned to the user */
page: number;
/** number of entries returned by the query */
total_entries: number;
/** number of pages given the pagination settings */
total_pages: number;
}>;