filesrocket-cloudinary
Version:
Filesrocket service that manage the files of the Cloudinary
25 lines (24 loc) • 742 B
TypeScript
import { Pagination, Query, OutputEntity } from 'filesrocket';
import { ConfigOptions, UploadApiResponse } from 'cloudinary';
export interface CloudinaryOptions extends ConfigOptions {
pagination: Pagination;
}
export interface FileResults extends Query {
total_count: number;
next_cursor: string;
resources: UploadApiResponse[];
}
export interface FolderResults extends Query {
folders: {
name: string;
path: string;
}[];
next_cursor: string;
total_count: number;
}
export interface CloudinaryResults<T> extends Query {
resources: T[];
total_count: number;
next_cursor: string;
}
export declare type FunctionBuilder<T> = (data: T) => Partial<OutputEntity>;