162 lines
5.6 KiB
TypeScript
162 lines
5.6 KiB
TypeScript
import { z } from "zod";
|
|
export declare const invoiceStatusSchema: z.ZodEnum<{
|
|
Pending: "Pending";
|
|
Cancelled: "Cancelled";
|
|
Draft: "Draft";
|
|
Paid: "Paid";
|
|
Unpaid: "Unpaid";
|
|
Overdue: "Overdue";
|
|
Refunded: "Refunded";
|
|
Collections: "Collections";
|
|
}>;
|
|
export declare const invoiceItemSchema: z.ZodObject<{
|
|
id: z.ZodNumber;
|
|
description: z.ZodString;
|
|
amount: z.ZodNumber;
|
|
quantity: z.ZodOptional<z.ZodNumber>;
|
|
type: z.ZodString;
|
|
serviceId: z.ZodOptional<z.ZodNumber>;
|
|
}, z.core.$strip>;
|
|
export declare const invoiceSchema: z.ZodObject<{
|
|
id: z.ZodNumber;
|
|
number: z.ZodString;
|
|
status: z.ZodEnum<{
|
|
Pending: "Pending";
|
|
Cancelled: "Cancelled";
|
|
Draft: "Draft";
|
|
Paid: "Paid";
|
|
Unpaid: "Unpaid";
|
|
Overdue: "Overdue";
|
|
Refunded: "Refunded";
|
|
Collections: "Collections";
|
|
}>;
|
|
currency: z.ZodString;
|
|
currencySymbol: z.ZodOptional<z.ZodString>;
|
|
total: z.ZodNumber;
|
|
subtotal: z.ZodNumber;
|
|
tax: z.ZodNumber;
|
|
issuedAt: z.ZodOptional<z.ZodString>;
|
|
dueDate: z.ZodOptional<z.ZodString>;
|
|
paidDate: z.ZodOptional<z.ZodString>;
|
|
pdfUrl: z.ZodOptional<z.ZodString>;
|
|
paymentUrl: z.ZodOptional<z.ZodString>;
|
|
description: z.ZodOptional<z.ZodString>;
|
|
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
id: z.ZodNumber;
|
|
description: z.ZodString;
|
|
amount: z.ZodNumber;
|
|
quantity: z.ZodOptional<z.ZodNumber>;
|
|
type: z.ZodString;
|
|
serviceId: z.ZodOptional<z.ZodNumber>;
|
|
}, z.core.$strip>>>;
|
|
daysOverdue: z.ZodOptional<z.ZodNumber>;
|
|
}, z.core.$strip>;
|
|
export declare const invoicePaginationSchema: z.ZodObject<{
|
|
page: z.ZodNumber;
|
|
totalPages: z.ZodNumber;
|
|
totalItems: z.ZodNumber;
|
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>;
|
|
export declare const invoiceListSchema: z.ZodObject<{
|
|
invoices: z.ZodArray<z.ZodObject<{
|
|
id: z.ZodNumber;
|
|
number: z.ZodString;
|
|
status: z.ZodEnum<{
|
|
Pending: "Pending";
|
|
Cancelled: "Cancelled";
|
|
Draft: "Draft";
|
|
Paid: "Paid";
|
|
Unpaid: "Unpaid";
|
|
Overdue: "Overdue";
|
|
Refunded: "Refunded";
|
|
Collections: "Collections";
|
|
}>;
|
|
currency: z.ZodString;
|
|
currencySymbol: z.ZodOptional<z.ZodString>;
|
|
total: z.ZodNumber;
|
|
subtotal: z.ZodNumber;
|
|
tax: z.ZodNumber;
|
|
issuedAt: z.ZodOptional<z.ZodString>;
|
|
dueDate: z.ZodOptional<z.ZodString>;
|
|
paidDate: z.ZodOptional<z.ZodString>;
|
|
pdfUrl: z.ZodOptional<z.ZodString>;
|
|
paymentUrl: z.ZodOptional<z.ZodString>;
|
|
description: z.ZodOptional<z.ZodString>;
|
|
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
id: z.ZodNumber;
|
|
description: z.ZodString;
|
|
amount: z.ZodNumber;
|
|
quantity: z.ZodOptional<z.ZodNumber>;
|
|
type: z.ZodString;
|
|
serviceId: z.ZodOptional<z.ZodNumber>;
|
|
}, z.core.$strip>>>;
|
|
daysOverdue: z.ZodOptional<z.ZodNumber>;
|
|
}, z.core.$strip>>;
|
|
pagination: z.ZodObject<{
|
|
page: z.ZodNumber;
|
|
totalPages: z.ZodNumber;
|
|
totalItems: z.ZodNumber;
|
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>;
|
|
export declare const invoiceSsoLinkSchema: z.ZodObject<{
|
|
url: z.ZodString;
|
|
expiresAt: z.ZodString;
|
|
}, z.core.$strip>;
|
|
export declare const paymentInvoiceRequestSchema: z.ZodObject<{
|
|
invoiceId: z.ZodNumber;
|
|
paymentMethodId: z.ZodOptional<z.ZodNumber>;
|
|
gatewayName: z.ZodOptional<z.ZodString>;
|
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
}, z.core.$strip>;
|
|
export declare const billingSummarySchema: z.ZodObject<{
|
|
totalOutstanding: z.ZodNumber;
|
|
totalOverdue: z.ZodNumber;
|
|
totalPaid: z.ZodNumber;
|
|
currency: z.ZodString;
|
|
currencySymbol: z.ZodOptional<z.ZodString>;
|
|
invoiceCount: z.ZodObject<{
|
|
total: z.ZodNumber;
|
|
unpaid: z.ZodNumber;
|
|
overdue: z.ZodNumber;
|
|
paid: z.ZodNumber;
|
|
}, z.core.$strip>;
|
|
}, z.core.$strip>;
|
|
export declare const invoiceQueryParamsSchema: z.ZodObject<{
|
|
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
status: z.ZodOptional<z.ZodEnum<{
|
|
Pending: "Pending";
|
|
Cancelled: "Cancelled";
|
|
Draft: "Draft";
|
|
Paid: "Paid";
|
|
Unpaid: "Unpaid";
|
|
Overdue: "Overdue";
|
|
Refunded: "Refunded";
|
|
Collections: "Collections";
|
|
}>>;
|
|
dateFrom: z.ZodOptional<z.ZodString>;
|
|
dateTo: z.ZodOptional<z.ZodString>;
|
|
}, z.core.$strip>;
|
|
export type InvoiceQueryParams = z.infer<typeof invoiceQueryParamsSchema>;
|
|
export declare const invoiceListQuerySchema: z.ZodObject<{
|
|
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
status: z.ZodOptional<z.ZodEnum<{
|
|
Cancelled: "Cancelled";
|
|
Paid: "Paid";
|
|
Unpaid: "Unpaid";
|
|
Overdue: "Overdue";
|
|
Collections: "Collections";
|
|
}>>;
|
|
}, z.core.$strip>;
|
|
export type InvoiceListQuery = z.infer<typeof invoiceListQuerySchema>;
|
|
export type InvoiceStatus = z.infer<typeof invoiceStatusSchema>;
|
|
export type InvoiceItem = z.infer<typeof invoiceItemSchema>;
|
|
export type Invoice = z.infer<typeof invoiceSchema>;
|
|
export type InvoicePagination = z.infer<typeof invoicePaginationSchema>;
|
|
export type InvoiceList = z.infer<typeof invoiceListSchema>;
|
|
export type InvoiceSsoLink = z.infer<typeof invoiceSsoLinkSchema>;
|
|
export type PaymentInvoiceRequest = z.infer<typeof paymentInvoiceRequestSchema>;
|
|
export type BillingSummary = z.infer<typeof billingSummarySchema>;
|