initial commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import * as z from 'zod';
|
||||
export const ServiceLineTransactionFindManyResultSchema = z.object({
|
||||
data: z.array(z.object({
|
||||
id: z.number().int(),
|
||||
paymentId: z.number().int(),
|
||||
serviceLineId: z.number().int(),
|
||||
transactionId: z.string().optional(),
|
||||
paidAmount: z.number(),
|
||||
adjustedAmount: z.number(),
|
||||
method: z.unknown(),
|
||||
receivedDate: z.date(),
|
||||
payerName: z.string().optional(),
|
||||
notes: z.string().optional(),
|
||||
createdAt: z.date(),
|
||||
payment: z.unknown(),
|
||||
serviceLine: z.unknown()
|
||||
})),
|
||||
pagination: z.object({
|
||||
page: z.number().int().min(1),
|
||||
pageSize: z.number().int().min(1),
|
||||
total: z.number().int().min(0),
|
||||
totalPages: z.number().int().min(0),
|
||||
hasNext: z.boolean(),
|
||||
hasPrev: z.boolean()
|
||||
})
|
||||
});
|
||||
Reference in New Issue
Block a user