UNPKG

@mozaic-io/mozaic-sdk-node

Version:

The Mozaic Node SDK enables you to pay your creators easily via the Mozaic API.

38 lines 1.04 kB
export interface IApiList<T> { 'count'?: number | undefined; 'page'?: number | null | undefined; 'total_count'?: number | undefined; } export declare abstract class BaseList<T> { /** * * @type {Array<T>} * memberof ListBase */ 'data': Array<T>; /** * This is the count of records returned * @type {number} * memberof ListBase */ 'count': number; /** * The page this list represents * @type {number} * memberof ListBase */ 'page': number; /** * This is the total count of records available, Needed for pagination * @type {number} * memberof ListBase */ 'totalCount': number; /** * Converts a paged data response from the API into an SDK friendly format. * @param source The API response that contains paging information about the list * @param data The actual list items returned from the API. */ constructor(source: IApiList<T>, data: T[] | undefined); } //# sourceMappingURL=BaseList.d.ts.map