15 lines
837 B
TypeScript

export declare const INVOICE_PAGINATION: {
readonly MIN_LIMIT: 1;
readonly MAX_LIMIT: 100;
readonly DEFAULT_LIMIT: 10;
readonly DEFAULT_PAGE: 1;
};
export declare const VALID_INVOICE_STATUSES: readonly ["Paid", "Unpaid", "Cancelled", "Overdue", "Collections"];
export declare const VALID_INVOICE_LIST_STATUSES: readonly ["Paid", "Unpaid", "Cancelled", "Overdue", "Collections"];
export declare function isValidInvoiceStatus(status: string): boolean;
export declare function isValidPaginationLimit(limit: number): boolean;
export declare function sanitizePaginationLimit(limit: number): number;
export declare function sanitizePaginationPage(page: number): number;
export type ValidInvoiceStatus = (typeof VALID_INVOICE_STATUSES)[number];
export type ValidInvoiceListStatus = (typeof VALID_INVOICE_LIST_STATUSES)[number];