fix: add bullmq, fix login error logging, regenerate zod schemas

This commit is contained in:
Gitead
2026-04-16 15:50:34 -04:00
parent 7fa7f405e2
commit f6adb75f4f
121 changed files with 1539 additions and 1097 deletions

View File

@@ -1,11 +1,12 @@
import * as z from 'zod';
import { Prisma } from '../../../generated/prisma';
import Decimal from 'decimal.js';
import { PaymentStatusSchema } from '../enums/PaymentStatus.schema';
import { ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInputObjectSchema as ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInputObjectSchema } from './ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInput.schema';
import type { Prisma } from '../../../generated/prisma';
import { PaymentStatusSchema } from '../enums/PaymentStatus.schema';
import { ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInputObjectSchema as ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInputObjectSchema } from './ServiceLineTransactionUncheckedCreateNestedManyWithoutPaymentInput.schema';
import { ServiceLineUncheckedCreateNestedManyWithoutPaymentInputObjectSchema as ServiceLineUncheckedCreateNestedManyWithoutPaymentInputObjectSchema } from './ServiceLineUncheckedCreateNestedManyWithoutPaymentInput.schema'
import { DecimalJSLikeSchema, isValidDecimalInput } from '../../helpers/decimal-helpers';
import Decimal from "decimal.js";
const makeSchema = () => z.object({
id: z.number().int().optional(),
claimId: z.number().int().optional().nullable(),
@@ -16,7 +17,7 @@ const makeSchema = () => z.object({
z.number(),
z.string(),
z.instanceof(Decimal),
z.instanceof(Prisma.Decimal),
z.instanceof(Decimal),
DecimalJSLikeSchema,
]).refine((v) => isValidDecimalInput(v), {
message: "Field 'totalBilled' must be a Decimal",
@@ -25,7 +26,7 @@ const makeSchema = () => z.object({
z.number(),
z.string(),
z.instanceof(Decimal),
z.instanceof(Prisma.Decimal),
z.instanceof(Decimal),
DecimalJSLikeSchema,
]).refine((v) => isValidDecimalInput(v), {
message: "Field 'totalPaid' must be a Decimal",
@@ -34,7 +35,7 @@ const makeSchema = () => z.object({
z.number(),
z.string(),
z.instanceof(Decimal),
z.instanceof(Prisma.Decimal),
z.instanceof(Decimal),
DecimalJSLikeSchema,
]).refine((v) => isValidDecimalInput(v), {
message: "Field 'totalAdjusted' must be a Decimal",
@@ -43,7 +44,7 @@ const makeSchema = () => z.object({
z.number(),
z.string(),
z.instanceof(Decimal),
z.instanceof(Prisma.Decimal),
z.instanceof(Decimal),
DecimalJSLikeSchema,
]).refine((v) => isValidDecimalInput(v), {
message: "Field 'totalDue' must be a Decimal",