@archer-edu/dxp-directus-cli
Version:
19 lines (18 loc) • 774 B
TypeScript
import { RequestInit as NodeFetchRequestInit, Response as NodeFetchResponse } from 'node-fetch';
export declare function safeJsonParse<T>(response: NodeFetchResponse): Promise<T>;
export declare function graphRequest<Type>(url: string, query: string, debug?: boolean): Promise<Type>;
type RequestOptions = NodeFetchRequestInit & {
debug?: boolean;
};
export declare function directusRequest<Type>(path: string, options?: RequestOptions): Promise<Type>;
export declare function getFileDetails(id: string): Promise<{
id: string;
title: string;
description: string;
type: string;
filename_disk: string;
filename_download: string;
url: string;
}>;
export declare function downloadImage(url: string, outputPath: string): Promise<void>;
export {};