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,20 +1,21 @@
import * as z from 'zod';
import { Prisma } from '../../../generated/prisma';
import Decimal from 'decimal.js';
import { PaymentStatusSchema } from '../enums/PaymentStatus.schema';
import { ClaimCreateNestedOneWithoutPaymentInputObjectSchema as ClaimCreateNestedOneWithoutPaymentInputObjectSchema } from './ClaimCreateNestedOneWithoutPaymentInput.schema';
import { PatientCreateNestedOneWithoutPaymentInputObjectSchema as PatientCreateNestedOneWithoutPaymentInputObjectSchema } from './PatientCreateNestedOneWithoutPaymentInput.schema';
import { ServiceLineTransactionCreateNestedManyWithoutPaymentInputObjectSchema as ServiceLineTransactionCreateNestedManyWithoutPaymentInputObjectSchema } from './ServiceLineTransactionCreateNestedManyWithoutPaymentInput.schema';
import type { Prisma } from '../../../generated/prisma';
import { PaymentStatusSchema } from '../enums/PaymentStatus.schema';
import { ClaimCreateNestedOneWithoutPaymentInputObjectSchema as ClaimCreateNestedOneWithoutPaymentInputObjectSchema } from './ClaimCreateNestedOneWithoutPaymentInput.schema';
import { PatientCreateNestedOneWithoutPaymentInputObjectSchema as PatientCreateNestedOneWithoutPaymentInputObjectSchema } from './PatientCreateNestedOneWithoutPaymentInput.schema';
import { ServiceLineTransactionCreateNestedManyWithoutPaymentInputObjectSchema as ServiceLineTransactionCreateNestedManyWithoutPaymentInputObjectSchema } from './ServiceLineTransactionCreateNestedManyWithoutPaymentInput.schema';
import { ServiceLineCreateNestedManyWithoutPaymentInputObjectSchema as ServiceLineCreateNestedManyWithoutPaymentInputObjectSchema } from './ServiceLineCreateNestedManyWithoutPaymentInput.schema'
import { DecimalJSLikeSchema, isValidDecimalInput } from '../../helpers/decimal-helpers';
import Decimal from "decimal.js";
const makeSchema = () => z.object({
userId: z.number().int(),
totalBilled: z.union([
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",
@@ -23,7 +24,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",
@@ -32,7 +33,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",
@@ -41,7 +42,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",