@mussnad/frappe-react-query
Version:
A React Query SDK for Frappe
22 lines (21 loc) • 903 B
TypeScript
import { GetCountArgs } from '@mussnad/frappe-js-client/dist/client/types';
import { FrappeDoc, GetDocListArgs } from '../types';
export declare const getRequestURL: (doctype: string, url: string, docname?: string | null) => string;
/**
* Get the query string for the doc list API
* @param args - The arguments for the doc list API
* @returns The query string for the doc list API
*/
export declare const getDocListQueryString: (args?: GetDocListArgs<FrappeDoc<any>>) => string;
/**
* Get the query string for the doc count API
* @param args - The arguments for the doc count API
* @returns The query string for the doc count API
*/
export declare const getDocCountQueryString: (args?: GetCountArgs<any>) => string;
/**
* Encode the query data
* @param data - The data to be encoded
* @returns The encoded data
*/
export declare const encodeQueryData: (data: Record<string, any>) => string;