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,16 +1,17 @@
import * as z from 'zod';
import { Prisma } from '../../../generated/prisma';
import Decimal from 'decimal.js';
import { IntWithAggregatesFilterObjectSchema as IntWithAggregatesFilterObjectSchema } from './IntWithAggregatesFilter.schema';
import { IntNullableWithAggregatesFilterObjectSchema as IntNullableWithAggregatesFilterObjectSchema } from './IntNullableWithAggregatesFilter.schema';
import { StringWithAggregatesFilterObjectSchema as StringWithAggregatesFilterObjectSchema } from './StringWithAggregatesFilter.schema';
import { DateTimeWithAggregatesFilterObjectSchema as DateTimeWithAggregatesFilterObjectSchema } from './DateTimeWithAggregatesFilter.schema';
import { StringNullableWithAggregatesFilterObjectSchema as StringNullableWithAggregatesFilterObjectSchema } from './StringNullableWithAggregatesFilter.schema';
import { DecimalWithAggregatesFilterObjectSchema as DecimalWithAggregatesFilterObjectSchema } from './DecimalWithAggregatesFilter.schema';
import { EnumServiceLineStatusWithAggregatesFilterObjectSchema as EnumServiceLineStatusWithAggregatesFilterObjectSchema } from './EnumServiceLineStatusWithAggregatesFilter.schema';
import type { Prisma } from '../../../generated/prisma';
import { IntWithAggregatesFilterObjectSchema as IntWithAggregatesFilterObjectSchema } from './IntWithAggregatesFilter.schema';
import { IntNullableWithAggregatesFilterObjectSchema as IntNullableWithAggregatesFilterObjectSchema } from './IntNullableWithAggregatesFilter.schema';
import { StringWithAggregatesFilterObjectSchema as StringWithAggregatesFilterObjectSchema } from './StringWithAggregatesFilter.schema';
import { DateTimeWithAggregatesFilterObjectSchema as DateTimeWithAggregatesFilterObjectSchema } from './DateTimeWithAggregatesFilter.schema';
import { StringNullableWithAggregatesFilterObjectSchema as StringNullableWithAggregatesFilterObjectSchema } from './StringNullableWithAggregatesFilter.schema';
import { DecimalWithAggregatesFilterObjectSchema as DecimalWithAggregatesFilterObjectSchema } from './DecimalWithAggregatesFilter.schema';
import { EnumServiceLineStatusWithAggregatesFilterObjectSchema as EnumServiceLineStatusWithAggregatesFilterObjectSchema } from './EnumServiceLineStatusWithAggregatesFilter.schema';
import { ServiceLineStatusSchema } from '../enums/ServiceLineStatus.schema'
import { DecimalJSLikeSchema, isValidDecimalInput } from '../../helpers/decimal-helpers';
import Decimal from "decimal.js";
const servicelinescalarwherewithaggregatesinputSchema = z.object({
AND: z.union([z.lazy(() => ServiceLineScalarWhereWithAggregatesInputObjectSchema), z.lazy(() => ServiceLineScalarWhereWithAggregatesInputObjectSchema).array()]).optional(),
OR: z.lazy(() => ServiceLineScalarWhereWithAggregatesInputObjectSchema).array().optional(),
@@ -28,7 +29,7 @@ const servicelinescalarwherewithaggregatesinputSchema = 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",
@@ -37,7 +38,7 @@ const servicelinescalarwherewithaggregatesinputSchema = 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",
@@ -46,7 +47,7 @@ const servicelinescalarwherewithaggregatesinputSchema = 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",
@@ -55,7 +56,7 @@ const servicelinescalarwherewithaggregatesinputSchema = 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",