initial commit

This commit is contained in:
2026-04-04 22:13:55 -04:00
commit 5d77e207c9
10181 changed files with 522212 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { IntFilterObjectSchema as IntFilterObjectSchema } from './IntFilter.schema';
import { StringNullableFilterObjectSchema as StringNullableFilterObjectSchema } from './StringNullableFilter.schema';
import { DecimalFilterObjectSchema as DecimalFilterObjectSchema } from './DecimalFilter.schema';
import { EnumPaymentMethodFilterObjectSchema as EnumPaymentMethodFilterObjectSchema } from './EnumPaymentMethodFilter.schema';
import { PaymentMethodSchema } from '../enums/PaymentMethod.schema';
import { DateTimeFilterObjectSchema as DateTimeFilterObjectSchema } from './DateTimeFilter.schema';
import { PaymentScalarRelationFilterObjectSchema as PaymentScalarRelationFilterObjectSchema } from './PaymentScalarRelationFilter.schema';
import { PaymentWhereInputObjectSchema as PaymentWhereInputObjectSchema } from './PaymentWhereInput.schema';
import { ServiceLineScalarRelationFilterObjectSchema as ServiceLineScalarRelationFilterObjectSchema } from './ServiceLineScalarRelationFilter.schema';
import { ServiceLineWhereInputObjectSchema as ServiceLineWhereInputObjectSchema } from './ServiceLineWhereInput.schema'
import { DecimalJSLikeSchema, isValidDecimalInput } from '../../helpers/decimal-helpers';
import Decimal from "decimal.js";
const servicelinetransactionwhereinputSchema = z.object({
AND: z.union([z.lazy(() => ServiceLineTransactionWhereInputObjectSchema), z.lazy(() => ServiceLineTransactionWhereInputObjectSchema).array()]).optional(),
OR: z.lazy(() => ServiceLineTransactionWhereInputObjectSchema).array().optional(),
NOT: z.union([z.lazy(() => ServiceLineTransactionWhereInputObjectSchema), z.lazy(() => ServiceLineTransactionWhereInputObjectSchema).array()]).optional(),
id: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
paymentId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
serviceLineId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
transactionId: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
paidAmount: z.union([z.lazy(() => DecimalFilterObjectSchema), z.union([
z.number(),
z.string(),
z.instanceof(Decimal),
z.instanceof(Decimal),
DecimalJSLikeSchema,
]).refine((v) => isValidDecimalInput(v), {
message: "Field 'paidAmount' must be a Decimal",
})]).optional(),
adjustedAmount: z.union([z.lazy(() => DecimalFilterObjectSchema), z.union([
z.number(),
z.string(),
z.instanceof(Decimal),
z.instanceof(Decimal),
DecimalJSLikeSchema,
]).refine((v) => isValidDecimalInput(v), {
message: "Field 'adjustedAmount' must be a Decimal",
})]).optional(),
method: z.union([z.lazy(() => EnumPaymentMethodFilterObjectSchema), PaymentMethodSchema]).optional(),
receivedDate: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional(),
payerName: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
notes: z.union([z.lazy(() => StringNullableFilterObjectSchema), z.string()]).optional().nullable(),
createdAt: z.union([z.lazy(() => DateTimeFilterObjectSchema), z.coerce.date()]).optional(),
payment: z.union([z.lazy(() => PaymentScalarRelationFilterObjectSchema), z.lazy(() => PaymentWhereInputObjectSchema)]).optional(),
serviceLine: z.union([z.lazy(() => ServiceLineScalarRelationFilterObjectSchema), z.lazy(() => ServiceLineWhereInputObjectSchema)]).optional()
}).strict();
export const ServiceLineTransactionWhereInputObjectSchema: z.ZodType<Prisma.ServiceLineTransactionWhereInput> = servicelinetransactionwhereinputSchema as unknown as z.ZodType<Prisma.ServiceLineTransactionWhereInput>;
export const ServiceLineTransactionWhereInputObjectZodSchema = servicelinetransactionwhereinputSchema;