Upgrade Prisma to v7
This commit is contained in:
parent
54343f61d5
commit
307a291c71
54 changed files with 34750 additions and 243 deletions
|
|
@ -1,11 +1,9 @@
|
|||
import { Prisma } from "@prisma/client"
|
||||
|
||||
import { AdminUsersManager } from "@/components/admin/admin-users-manager"
|
||||
import { AppShell } from "@/components/app-shell"
|
||||
import { SiteHeader } from "@/components/site-header"
|
||||
import { ROLE_OPTIONS, normalizeRole, type RoleOption } from "@/lib/authz"
|
||||
import { DEFAULT_TENANT_ID } from "@/lib/constants"
|
||||
import { prisma } from "@/lib/prisma"
|
||||
import { Prisma, prisma } from "@/lib/prisma"
|
||||
import { normalizeInvite, type NormalizedInvite } from "@/server/invite-utils"
|
||||
import { getServerSession } from "@/lib/auth-server"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { NextResponse } from "next/server"
|
||||
import { ZodError } from "zod"
|
||||
import { Prisma } from "@prisma/client"
|
||||
import { Prisma } from "@/lib/prisma"
|
||||
|
||||
import { prisma } from "@/lib/prisma"
|
||||
import { assertStaffSession } from "@/lib/auth-server"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { NextResponse } from "next/server"
|
||||
import { randomBytes } from "crypto"
|
||||
import { ZodError } from "zod"
|
||||
import { Prisma } from "@prisma/client"
|
||||
import { Prisma } from "@/lib/prisma"
|
||||
|
||||
import { prisma } from "@/lib/prisma"
|
||||
import { assertStaffSession } from "@/lib/auth-server"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { NextResponse } from "next/server"
|
||||
import { Prisma } from "@prisma/client"
|
||||
import { Prisma } from "@/lib/prisma"
|
||||
import { ConvexHttpClient } from "convex/browser"
|
||||
|
||||
import { api } from "@/convex/_generated/api"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { NextResponse } from "next/server"
|
||||
import { randomBytes } from "crypto"
|
||||
|
||||
import { Prisma } from "@prisma/client"
|
||||
import { Prisma } from "@/lib/prisma"
|
||||
import { ConvexHttpClient } from "convex/browser"
|
||||
|
||||
import { api } from "@/convex/_generated/api"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { NextResponse } from "next/server"
|
||||
import type { Id } from "@/convex/_generated/dataModel"
|
||||
import type { Prisma, UserRole } from "@prisma/client"
|
||||
import type { Prisma, UserRole } from "@/lib/prisma"
|
||||
import { api } from "@/convex/_generated/api"
|
||||
import { ConvexHttpClient } from "convex/browser"
|
||||
import { prisma } from "@/lib/prisma"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { NextResponse } from "next/server"
|
|||
|
||||
import { hashPassword } from "better-auth/crypto"
|
||||
import { ConvexHttpClient } from "convex/browser"
|
||||
import type { UserRole } from "@prisma/client"
|
||||
import type { UserRole } from "@/lib/prisma"
|
||||
import type { Id } from "@/convex/_generated/dataModel"
|
||||
|
||||
import { prisma } from "@/lib/prisma"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { NextResponse } from "next/server"
|
||||
|
||||
import { Prisma } from "@prisma/client"
|
||||
import { Prisma } from "@/lib/prisma"
|
||||
import { hashPassword } from "better-auth/crypto"
|
||||
import { ConvexHttpClient } from "convex/browser"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { randomBytes } from "crypto"
|
||||
import type { Prisma } from "@prisma/client"
|
||||
import type { Prisma } from "@/lib/prisma"
|
||||
import { DEFAULT_TENANT_ID } from "@/lib/constants"
|
||||
import { env } from "@/lib/env"
|
||||
import { normalizeSlug, slugify } from "@/lib/slug"
|
||||
|
|
|
|||
104
src/generated/prisma/browser.ts
Normal file
104
src/generated/prisma/browser.ts
Normal file
|
|
@ -0,0 +1,104 @@
|
|||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
// @ts-nocheck
|
||||
/*
|
||||
* This file should be your main import to use Prisma-related types and utilities in a browser.
|
||||
* Use it to get access to models, enums, and input types.
|
||||
*
|
||||
* This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only.
|
||||
* See `client.ts` for the standard, server-side entry point.
|
||||
*
|
||||
* 🟢 You can import this file directly.
|
||||
*/
|
||||
|
||||
import * as Prisma from './internal/prismaNamespaceBrowser'
|
||||
export { Prisma }
|
||||
export * as $Enums from './enums'
|
||||
export * from './enums';
|
||||
/**
|
||||
* Model Team
|
||||
*
|
||||
*/
|
||||
export type Team = Prisma.TeamModel
|
||||
/**
|
||||
* Model TeamMember
|
||||
*
|
||||
*/
|
||||
export type TeamMember = Prisma.TeamMemberModel
|
||||
/**
|
||||
* Model Company
|
||||
*
|
||||
*/
|
||||
export type Company = Prisma.CompanyModel
|
||||
/**
|
||||
* Model User
|
||||
*
|
||||
*/
|
||||
export type User = Prisma.UserModel
|
||||
/**
|
||||
* Model Queue
|
||||
*
|
||||
*/
|
||||
export type Queue = Prisma.QueueModel
|
||||
/**
|
||||
* Model Ticket
|
||||
*
|
||||
*/
|
||||
export type Ticket = Prisma.TicketModel
|
||||
/**
|
||||
* Model ReportExportSchedule
|
||||
*
|
||||
*/
|
||||
export type ReportExportSchedule = Prisma.ReportExportScheduleModel
|
||||
/**
|
||||
* Model ReportExportRun
|
||||
*
|
||||
*/
|
||||
export type ReportExportRun = Prisma.ReportExportRunModel
|
||||
/**
|
||||
* Model TicketEvent
|
||||
*
|
||||
*/
|
||||
export type TicketEvent = Prisma.TicketEventModel
|
||||
/**
|
||||
* Model TicketComment
|
||||
*
|
||||
*/
|
||||
export type TicketComment = Prisma.TicketCommentModel
|
||||
/**
|
||||
* Model SlaPolicy
|
||||
*
|
||||
*/
|
||||
export type SlaPolicy = Prisma.SlaPolicyModel
|
||||
/**
|
||||
* Model AuthUser
|
||||
*
|
||||
*/
|
||||
export type AuthUser = Prisma.AuthUserModel
|
||||
/**
|
||||
* Model AuthSession
|
||||
*
|
||||
*/
|
||||
export type AuthSession = Prisma.AuthSessionModel
|
||||
/**
|
||||
* Model AuthAccount
|
||||
*
|
||||
*/
|
||||
export type AuthAccount = Prisma.AuthAccountModel
|
||||
/**
|
||||
* Model AuthInvite
|
||||
*
|
||||
*/
|
||||
export type AuthInvite = Prisma.AuthInviteModel
|
||||
/**
|
||||
* Model AuthInviteEvent
|
||||
*
|
||||
*/
|
||||
export type AuthInviteEvent = Prisma.AuthInviteEventModel
|
||||
/**
|
||||
* Model AuthVerification
|
||||
*
|
||||
*/
|
||||
export type AuthVerification = Prisma.AuthVerificationModel
|
||||
126
src/generated/prisma/client.ts
Normal file
126
src/generated/prisma/client.ts
Normal file
|
|
@ -0,0 +1,126 @@
|
|||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
// @ts-nocheck
|
||||
/*
|
||||
* This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
|
||||
* If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
|
||||
*
|
||||
* 🟢 You can import this file directly.
|
||||
*/
|
||||
|
||||
import * as process from 'node:process'
|
||||
import * as path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url))
|
||||
|
||||
import * as runtime from "@prisma/client/runtime/client"
|
||||
import * as $Enums from "./enums"
|
||||
import * as $Class from "./internal/class"
|
||||
import * as Prisma from "./internal/prismaNamespace"
|
||||
|
||||
export * as $Enums from './enums'
|
||||
export * from "./enums"
|
||||
/**
|
||||
* ## Prisma Client
|
||||
*
|
||||
* Type-safe database client for TypeScript
|
||||
* @example
|
||||
* ```
|
||||
* const prisma = new PrismaClient()
|
||||
* // Fetch zero or more Teams
|
||||
* const teams = await prisma.team.findMany()
|
||||
* ```
|
||||
*
|
||||
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
|
||||
*/
|
||||
export const PrismaClient = $Class.getPrismaClientClass()
|
||||
export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions["omit"] = Prisma.PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>
|
||||
export { Prisma }
|
||||
|
||||
/**
|
||||
* Model Team
|
||||
*
|
||||
*/
|
||||
export type Team = Prisma.TeamModel
|
||||
/**
|
||||
* Model TeamMember
|
||||
*
|
||||
*/
|
||||
export type TeamMember = Prisma.TeamMemberModel
|
||||
/**
|
||||
* Model Company
|
||||
*
|
||||
*/
|
||||
export type Company = Prisma.CompanyModel
|
||||
/**
|
||||
* Model User
|
||||
*
|
||||
*/
|
||||
export type User = Prisma.UserModel
|
||||
/**
|
||||
* Model Queue
|
||||
*
|
||||
*/
|
||||
export type Queue = Prisma.QueueModel
|
||||
/**
|
||||
* Model Ticket
|
||||
*
|
||||
*/
|
||||
export type Ticket = Prisma.TicketModel
|
||||
/**
|
||||
* Model ReportExportSchedule
|
||||
*
|
||||
*/
|
||||
export type ReportExportSchedule = Prisma.ReportExportScheduleModel
|
||||
/**
|
||||
* Model ReportExportRun
|
||||
*
|
||||
*/
|
||||
export type ReportExportRun = Prisma.ReportExportRunModel
|
||||
/**
|
||||
* Model TicketEvent
|
||||
*
|
||||
*/
|
||||
export type TicketEvent = Prisma.TicketEventModel
|
||||
/**
|
||||
* Model TicketComment
|
||||
*
|
||||
*/
|
||||
export type TicketComment = Prisma.TicketCommentModel
|
||||
/**
|
||||
* Model SlaPolicy
|
||||
*
|
||||
*/
|
||||
export type SlaPolicy = Prisma.SlaPolicyModel
|
||||
/**
|
||||
* Model AuthUser
|
||||
*
|
||||
*/
|
||||
export type AuthUser = Prisma.AuthUserModel
|
||||
/**
|
||||
* Model AuthSession
|
||||
*
|
||||
*/
|
||||
export type AuthSession = Prisma.AuthSessionModel
|
||||
/**
|
||||
* Model AuthAccount
|
||||
*
|
||||
*/
|
||||
export type AuthAccount = Prisma.AuthAccountModel
|
||||
/**
|
||||
* Model AuthInvite
|
||||
*
|
||||
*/
|
||||
export type AuthInvite = Prisma.AuthInviteModel
|
||||
/**
|
||||
* Model AuthInviteEvent
|
||||
*
|
||||
*/
|
||||
export type AuthInviteEvent = Prisma.AuthInviteEventModel
|
||||
/**
|
||||
* Model AuthVerification
|
||||
*
|
||||
*/
|
||||
export type AuthVerification = Prisma.AuthVerificationModel
|
||||
769
src/generated/prisma/commonInputTypes.ts
Normal file
769
src/generated/prisma/commonInputTypes.ts
Normal file
|
|
@ -0,0 +1,769 @@
|
|||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
// @ts-nocheck
|
||||
/*
|
||||
* This file exports various common sort, input & filter types that are not directly linked to a particular model.
|
||||
*
|
||||
* 🟢 You can import this file directly.
|
||||
*/
|
||||
|
||||
import type * as runtime from "@prisma/client/runtime/client"
|
||||
import * as $Enums from "./enums"
|
||||
import type * as Prisma from "./internal/prismaNamespace"
|
||||
|
||||
|
||||
export type StringFilter<$PrismaModel = never> = {
|
||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
in?: string[]
|
||||
notIn?: string[]
|
||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
||||
}
|
||||
|
||||
export type StringNullableFilter<$PrismaModel = never> = {
|
||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
||||
in?: string[] | null
|
||||
notIn?: string[] | null
|
||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
||||
}
|
||||
|
||||
export type DateTimeFilter<$PrismaModel = never> = {
|
||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
in?: Date[] | string[]
|
||||
notIn?: Date[] | string[]
|
||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string
|
||||
}
|
||||
|
||||
export type SortOrderInput = {
|
||||
sort: Prisma.SortOrder
|
||||
nulls?: Prisma.NullsOrder
|
||||
}
|
||||
|
||||
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
in?: string[]
|
||||
notIn?: string[]
|
||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedStringFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedStringFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
||||
in?: string[] | null
|
||||
notIn?: string[] | null
|
||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
|
||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
in?: Date[] | string[]
|
||||
notIn?: Date[] | string[]
|
||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type BoolFilter<$PrismaModel = never> = {
|
||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
|
||||
}
|
||||
|
||||
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedBoolFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedBoolFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type FloatNullableFilter<$PrismaModel = never> = {
|
||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
||||
in?: number[] | null
|
||||
notIn?: number[] | null
|
||||
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null
|
||||
}
|
||||
|
||||
export type EnumCompanyStateRegistrationTypeNullableFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.CompanyStateRegistrationType | Prisma.EnumCompanyStateRegistrationTypeFieldRefInput<$PrismaModel> | null
|
||||
in?: $Enums.CompanyStateRegistrationType[] | null
|
||||
notIn?: $Enums.CompanyStateRegistrationType[] | null
|
||||
not?: Prisma.NestedEnumCompanyStateRegistrationTypeNullableFilter<$PrismaModel> | $Enums.CompanyStateRegistrationType | null
|
||||
}
|
||||
|
||||
export type JsonNullableFilter<$PrismaModel = never> =
|
||||
| Prisma.PatchUndefined<
|
||||
Prisma.Either<Required<JsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>,
|
||||
Required<JsonNullableFilterBase<$PrismaModel>>
|
||||
>
|
||||
| Prisma.OptionalFlat<Omit<Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>
|
||||
|
||||
export type JsonNullableFilterBase<$PrismaModel = never> = {
|
||||
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
path?: string
|
||||
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
||||
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
}
|
||||
|
||||
export type FloatNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
||||
in?: number[] | null
|
||||
notIn?: number[] | null
|
||||
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null
|
||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
_avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
||||
_sum?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type EnumCompanyStateRegistrationTypeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.CompanyStateRegistrationType | Prisma.EnumCompanyStateRegistrationTypeFieldRefInput<$PrismaModel> | null
|
||||
in?: $Enums.CompanyStateRegistrationType[] | null
|
||||
notIn?: $Enums.CompanyStateRegistrationType[] | null
|
||||
not?: Prisma.NestedEnumCompanyStateRegistrationTypeNullableWithAggregatesFilter<$PrismaModel> | $Enums.CompanyStateRegistrationType | null
|
||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumCompanyStateRegistrationTypeNullableFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumCompanyStateRegistrationTypeNullableFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type JsonNullableWithAggregatesFilter<$PrismaModel = never> =
|
||||
| Prisma.PatchUndefined<
|
||||
Prisma.Either<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>,
|
||||
Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>
|
||||
>
|
||||
| Prisma.OptionalFlat<Omit<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>
|
||||
|
||||
export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
|
||||
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
path?: string
|
||||
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
||||
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedJsonNullableFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedJsonNullableFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type EnumUserRoleFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.UserRole | Prisma.EnumUserRoleFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.UserRole[]
|
||||
notIn?: $Enums.UserRole[]
|
||||
not?: Prisma.NestedEnumUserRoleFilter<$PrismaModel> | $Enums.UserRole
|
||||
}
|
||||
|
||||
export type EnumUserRoleWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.UserRole | Prisma.EnumUserRoleFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.UserRole[]
|
||||
notIn?: $Enums.UserRole[]
|
||||
not?: Prisma.NestedEnumUserRoleWithAggregatesFilter<$PrismaModel> | $Enums.UserRole
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumUserRoleFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumUserRoleFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type IntFilter<$PrismaModel = never> = {
|
||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
in?: number[]
|
||||
notIn?: number[]
|
||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
||||
}
|
||||
|
||||
export type EnumTicketStatusFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.TicketStatus | Prisma.EnumTicketStatusFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.TicketStatus[]
|
||||
notIn?: $Enums.TicketStatus[]
|
||||
not?: Prisma.NestedEnumTicketStatusFilter<$PrismaModel> | $Enums.TicketStatus
|
||||
}
|
||||
|
||||
export type EnumTicketPriorityFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.TicketPriority | Prisma.EnumTicketPriorityFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.TicketPriority[]
|
||||
notIn?: $Enums.TicketPriority[]
|
||||
not?: Prisma.NestedEnumTicketPriorityFilter<$PrismaModel> | $Enums.TicketPriority
|
||||
}
|
||||
|
||||
export type EnumTicketChannelFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.TicketChannel | Prisma.EnumTicketChannelFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.TicketChannel[]
|
||||
notIn?: $Enums.TicketChannel[]
|
||||
not?: Prisma.NestedEnumTicketChannelFilter<$PrismaModel> | $Enums.TicketChannel
|
||||
}
|
||||
|
||||
export type DateTimeNullableFilter<$PrismaModel = never> = {
|
||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
|
||||
in?: Date[] | string[] | null
|
||||
notIn?: Date[] | string[] | null
|
||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
||||
}
|
||||
|
||||
export type IntNullableFilter<$PrismaModel = never> = {
|
||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||
in?: number[] | null
|
||||
notIn?: number[] | null
|
||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
|
||||
}
|
||||
|
||||
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
in?: number[]
|
||||
notIn?: number[]
|
||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
||||
_sum?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type EnumTicketStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.TicketStatus | Prisma.EnumTicketStatusFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.TicketStatus[]
|
||||
notIn?: $Enums.TicketStatus[]
|
||||
not?: Prisma.NestedEnumTicketStatusWithAggregatesFilter<$PrismaModel> | $Enums.TicketStatus
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumTicketStatusFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumTicketStatusFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type EnumTicketPriorityWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.TicketPriority | Prisma.EnumTicketPriorityFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.TicketPriority[]
|
||||
notIn?: $Enums.TicketPriority[]
|
||||
not?: Prisma.NestedEnumTicketPriorityWithAggregatesFilter<$PrismaModel> | $Enums.TicketPriority
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumTicketPriorityFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumTicketPriorityFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type EnumTicketChannelWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.TicketChannel | Prisma.EnumTicketChannelFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.TicketChannel[]
|
||||
notIn?: $Enums.TicketChannel[]
|
||||
not?: Prisma.NestedEnumTicketChannelWithAggregatesFilter<$PrismaModel> | $Enums.TicketChannel
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumTicketChannelFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumTicketChannelFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
|
||||
in?: Date[] | string[] | null
|
||||
notIn?: Date[] | string[] | null
|
||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
|
||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||
in?: number[] | null
|
||||
notIn?: number[] | null
|
||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
|
||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
_avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
||||
_sum?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type JsonFilter<$PrismaModel = never> =
|
||||
| Prisma.PatchUndefined<
|
||||
Prisma.Either<Required<JsonFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonFilterBase<$PrismaModel>>, 'path'>>,
|
||||
Required<JsonFilterBase<$PrismaModel>>
|
||||
>
|
||||
| Prisma.OptionalFlat<Omit<Required<JsonFilterBase<$PrismaModel>>, 'path'>>
|
||||
|
||||
export type JsonFilterBase<$PrismaModel = never> = {
|
||||
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
path?: string
|
||||
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
||||
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
}
|
||||
|
||||
export type JsonWithAggregatesFilter<$PrismaModel = never> =
|
||||
| Prisma.PatchUndefined<
|
||||
Prisma.Either<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>,
|
||||
Required<JsonWithAggregatesFilterBase<$PrismaModel>>
|
||||
>
|
||||
| Prisma.OptionalFlat<Omit<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>
|
||||
|
||||
export type JsonWithAggregatesFilterBase<$PrismaModel = never> = {
|
||||
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
path?: string
|
||||
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
||||
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedJsonFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedJsonFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type EnumCommentVisibilityFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.CommentVisibility | Prisma.EnumCommentVisibilityFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.CommentVisibility[]
|
||||
notIn?: $Enums.CommentVisibility[]
|
||||
not?: Prisma.NestedEnumCommentVisibilityFilter<$PrismaModel> | $Enums.CommentVisibility
|
||||
}
|
||||
|
||||
export type EnumCommentVisibilityWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.CommentVisibility | Prisma.EnumCommentVisibilityFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.CommentVisibility[]
|
||||
notIn?: $Enums.CommentVisibility[]
|
||||
not?: Prisma.NestedEnumCommentVisibilityWithAggregatesFilter<$PrismaModel> | $Enums.CommentVisibility
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumCommentVisibilityFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumCommentVisibilityFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedStringFilter<$PrismaModel = never> = {
|
||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
in?: string[]
|
||||
notIn?: string[]
|
||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
||||
}
|
||||
|
||||
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
||||
in?: string[] | null
|
||||
notIn?: string[] | null
|
||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
||||
}
|
||||
|
||||
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
in?: Date[] | string[]
|
||||
notIn?: Date[] | string[]
|
||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string
|
||||
}
|
||||
|
||||
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
in?: string[]
|
||||
notIn?: string[]
|
||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedStringFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedStringFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedIntFilter<$PrismaModel = never> = {
|
||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
in?: number[]
|
||||
notIn?: number[]
|
||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
||||
}
|
||||
|
||||
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
||||
in?: string[] | null
|
||||
notIn?: string[] | null
|
||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
|
||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedIntNullableFilter<$PrismaModel = never> = {
|
||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||
in?: number[] | null
|
||||
notIn?: number[] | null
|
||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
|
||||
}
|
||||
|
||||
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
in?: Date[] | string[]
|
||||
notIn?: Date[] | string[]
|
||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedBoolFilter<$PrismaModel = never> = {
|
||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
|
||||
}
|
||||
|
||||
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedBoolFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedBoolFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedFloatNullableFilter<$PrismaModel = never> = {
|
||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
||||
in?: number[] | null
|
||||
notIn?: number[] | null
|
||||
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null
|
||||
}
|
||||
|
||||
export type NestedEnumCompanyStateRegistrationTypeNullableFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.CompanyStateRegistrationType | Prisma.EnumCompanyStateRegistrationTypeFieldRefInput<$PrismaModel> | null
|
||||
in?: $Enums.CompanyStateRegistrationType[] | null
|
||||
notIn?: $Enums.CompanyStateRegistrationType[] | null
|
||||
not?: Prisma.NestedEnumCompanyStateRegistrationTypeNullableFilter<$PrismaModel> | $Enums.CompanyStateRegistrationType | null
|
||||
}
|
||||
|
||||
export type NestedFloatNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
||||
in?: number[] | null
|
||||
notIn?: number[] | null
|
||||
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null
|
||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
_avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
||||
_sum?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedEnumCompanyStateRegistrationTypeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.CompanyStateRegistrationType | Prisma.EnumCompanyStateRegistrationTypeFieldRefInput<$PrismaModel> | null
|
||||
in?: $Enums.CompanyStateRegistrationType[] | null
|
||||
notIn?: $Enums.CompanyStateRegistrationType[] | null
|
||||
not?: Prisma.NestedEnumCompanyStateRegistrationTypeNullableWithAggregatesFilter<$PrismaModel> | $Enums.CompanyStateRegistrationType | null
|
||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumCompanyStateRegistrationTypeNullableFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumCompanyStateRegistrationTypeNullableFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedJsonNullableFilter<$PrismaModel = never> =
|
||||
| Prisma.PatchUndefined<
|
||||
Prisma.Either<Required<NestedJsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>,
|
||||
Required<NestedJsonNullableFilterBase<$PrismaModel>>
|
||||
>
|
||||
| Prisma.OptionalFlat<Omit<Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>
|
||||
|
||||
export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
|
||||
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
path?: string
|
||||
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
||||
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
}
|
||||
|
||||
export type NestedEnumUserRoleFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.UserRole | Prisma.EnumUserRoleFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.UserRole[]
|
||||
notIn?: $Enums.UserRole[]
|
||||
not?: Prisma.NestedEnumUserRoleFilter<$PrismaModel> | $Enums.UserRole
|
||||
}
|
||||
|
||||
export type NestedEnumUserRoleWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.UserRole | Prisma.EnumUserRoleFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.UserRole[]
|
||||
notIn?: $Enums.UserRole[]
|
||||
not?: Prisma.NestedEnumUserRoleWithAggregatesFilter<$PrismaModel> | $Enums.UserRole
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumUserRoleFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumUserRoleFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedEnumTicketStatusFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.TicketStatus | Prisma.EnumTicketStatusFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.TicketStatus[]
|
||||
notIn?: $Enums.TicketStatus[]
|
||||
not?: Prisma.NestedEnumTicketStatusFilter<$PrismaModel> | $Enums.TicketStatus
|
||||
}
|
||||
|
||||
export type NestedEnumTicketPriorityFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.TicketPriority | Prisma.EnumTicketPriorityFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.TicketPriority[]
|
||||
notIn?: $Enums.TicketPriority[]
|
||||
not?: Prisma.NestedEnumTicketPriorityFilter<$PrismaModel> | $Enums.TicketPriority
|
||||
}
|
||||
|
||||
export type NestedEnumTicketChannelFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.TicketChannel | Prisma.EnumTicketChannelFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.TicketChannel[]
|
||||
notIn?: $Enums.TicketChannel[]
|
||||
not?: Prisma.NestedEnumTicketChannelFilter<$PrismaModel> | $Enums.TicketChannel
|
||||
}
|
||||
|
||||
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
|
||||
in?: Date[] | string[] | null
|
||||
notIn?: Date[] | string[] | null
|
||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
||||
}
|
||||
|
||||
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
in?: number[]
|
||||
notIn?: number[]
|
||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_avg?: Prisma.NestedFloatFilter<$PrismaModel>
|
||||
_sum?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedFloatFilter<$PrismaModel = never> = {
|
||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
in?: number[]
|
||||
notIn?: number[]
|
||||
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedFloatFilter<$PrismaModel> | number
|
||||
}
|
||||
|
||||
export type NestedEnumTicketStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.TicketStatus | Prisma.EnumTicketStatusFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.TicketStatus[]
|
||||
notIn?: $Enums.TicketStatus[]
|
||||
not?: Prisma.NestedEnumTicketStatusWithAggregatesFilter<$PrismaModel> | $Enums.TicketStatus
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumTicketStatusFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumTicketStatusFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedEnumTicketPriorityWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.TicketPriority | Prisma.EnumTicketPriorityFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.TicketPriority[]
|
||||
notIn?: $Enums.TicketPriority[]
|
||||
not?: Prisma.NestedEnumTicketPriorityWithAggregatesFilter<$PrismaModel> | $Enums.TicketPriority
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumTicketPriorityFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumTicketPriorityFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedEnumTicketChannelWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.TicketChannel | Prisma.EnumTicketChannelFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.TicketChannel[]
|
||||
notIn?: $Enums.TicketChannel[]
|
||||
not?: Prisma.NestedEnumTicketChannelWithAggregatesFilter<$PrismaModel> | $Enums.TicketChannel
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumTicketChannelFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumTicketChannelFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
|
||||
in?: Date[] | string[] | null
|
||||
notIn?: Date[] | string[] | null
|
||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
|
||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||
in?: number[] | null
|
||||
notIn?: number[] | null
|
||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
|
||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
_avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>
|
||||
_sum?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedJsonFilter<$PrismaModel = never> =
|
||||
| Prisma.PatchUndefined<
|
||||
Prisma.Either<Required<NestedJsonFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>,
|
||||
Required<NestedJsonFilterBase<$PrismaModel>>
|
||||
>
|
||||
| Prisma.OptionalFlat<Omit<Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>
|
||||
|
||||
export type NestedJsonFilterBase<$PrismaModel = never> = {
|
||||
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
path?: string
|
||||
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
||||
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
}
|
||||
|
||||
export type NestedEnumCommentVisibilityFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.CommentVisibility | Prisma.EnumCommentVisibilityFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.CommentVisibility[]
|
||||
notIn?: $Enums.CommentVisibility[]
|
||||
not?: Prisma.NestedEnumCommentVisibilityFilter<$PrismaModel> | $Enums.CommentVisibility
|
||||
}
|
||||
|
||||
export type NestedEnumCommentVisibilityWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.CommentVisibility | Prisma.EnumCommentVisibilityFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.CommentVisibility[]
|
||||
notIn?: $Enums.CommentVisibility[]
|
||||
not?: Prisma.NestedEnumCommentVisibilityWithAggregatesFilter<$PrismaModel> | $Enums.CommentVisibility
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumCommentVisibilityFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumCommentVisibilityFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
|
||||
68
src/generated/prisma/enums.ts
Normal file
68
src/generated/prisma/enums.ts
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
// @ts-nocheck
|
||||
/*
|
||||
* This file exports all enum related types from the schema.
|
||||
*
|
||||
* 🟢 You can import this file directly.
|
||||
*/
|
||||
|
||||
export const UserRole = {
|
||||
ADMIN: 'ADMIN',
|
||||
MANAGER: 'MANAGER',
|
||||
AGENT: 'AGENT',
|
||||
COLLABORATOR: 'COLLABORATOR'
|
||||
} as const
|
||||
|
||||
export type UserRole = (typeof UserRole)[keyof typeof UserRole]
|
||||
|
||||
|
||||
export const TicketStatus = {
|
||||
PENDING: 'PENDING',
|
||||
AWAITING_ATTENDANCE: 'AWAITING_ATTENDANCE',
|
||||
PAUSED: 'PAUSED',
|
||||
RESOLVED: 'RESOLVED'
|
||||
} as const
|
||||
|
||||
export type TicketStatus = (typeof TicketStatus)[keyof typeof TicketStatus]
|
||||
|
||||
|
||||
export const TicketPriority = {
|
||||
LOW: 'LOW',
|
||||
MEDIUM: 'MEDIUM',
|
||||
HIGH: 'HIGH',
|
||||
URGENT: 'URGENT'
|
||||
} as const
|
||||
|
||||
export type TicketPriority = (typeof TicketPriority)[keyof typeof TicketPriority]
|
||||
|
||||
|
||||
export const TicketChannel = {
|
||||
EMAIL: 'EMAIL',
|
||||
WHATSAPP: 'WHATSAPP',
|
||||
CHAT: 'CHAT',
|
||||
PHONE: 'PHONE',
|
||||
API: 'API',
|
||||
MANUAL: 'MANUAL'
|
||||
} as const
|
||||
|
||||
export type TicketChannel = (typeof TicketChannel)[keyof typeof TicketChannel]
|
||||
|
||||
|
||||
export const CommentVisibility = {
|
||||
PUBLIC: 'PUBLIC',
|
||||
INTERNAL: 'INTERNAL'
|
||||
} as const
|
||||
|
||||
export type CommentVisibility = (typeof CommentVisibility)[keyof typeof CommentVisibility]
|
||||
|
||||
|
||||
export const CompanyStateRegistrationType = {
|
||||
STANDARD: 'STANDARD',
|
||||
EXEMPT: 'EXEMPT',
|
||||
SIMPLES: 'SIMPLES'
|
||||
} as const
|
||||
|
||||
export type CompanyStateRegistrationType = (typeof CompanyStateRegistrationType)[keyof typeof CompanyStateRegistrationType]
|
||||
350
src/generated/prisma/internal/class.ts
Normal file
350
src/generated/prisma/internal/class.ts
Normal file
File diff suppressed because one or more lines are too long
2328
src/generated/prisma/internal/prismaNamespace.ts
Normal file
2328
src/generated/prisma/internal/prismaNamespace.ts
Normal file
File diff suppressed because it is too large
Load diff
441
src/generated/prisma/internal/prismaNamespaceBrowser.ts
Normal file
441
src/generated/prisma/internal/prismaNamespaceBrowser.ts
Normal file
|
|
@ -0,0 +1,441 @@
|
|||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
// @ts-nocheck
|
||||
/*
|
||||
* WARNING: This is an internal file that is subject to change!
|
||||
*
|
||||
* 🛑 Under no circumstances should you import this file directly! 🛑
|
||||
*
|
||||
* All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file.
|
||||
* While this enables partial backward compatibility, it is not part of the stable public API.
|
||||
*
|
||||
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
|
||||
* model files in the `model` directory!
|
||||
*/
|
||||
|
||||
import * as runtime from "@prisma/client/runtime/index-browser"
|
||||
|
||||
export type * from '../models'
|
||||
export type * from './prismaNamespace'
|
||||
|
||||
export const Decimal = runtime.Decimal
|
||||
|
||||
|
||||
export const NullTypes = {
|
||||
DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
|
||||
JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
|
||||
AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
|
||||
}
|
||||
/**
|
||||
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
||||
*
|
||||
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
||||
*/
|
||||
export const DbNull = runtime.DbNull
|
||||
|
||||
/**
|
||||
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
||||
*
|
||||
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
||||
*/
|
||||
export const JsonNull = runtime.JsonNull
|
||||
|
||||
/**
|
||||
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
||||
*
|
||||
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
||||
*/
|
||||
export const AnyNull = runtime.AnyNull
|
||||
|
||||
|
||||
export const ModelName = {
|
||||
Team: 'Team',
|
||||
TeamMember: 'TeamMember',
|
||||
Company: 'Company',
|
||||
User: 'User',
|
||||
Queue: 'Queue',
|
||||
Ticket: 'Ticket',
|
||||
ReportExportSchedule: 'ReportExportSchedule',
|
||||
ReportExportRun: 'ReportExportRun',
|
||||
TicketEvent: 'TicketEvent',
|
||||
TicketComment: 'TicketComment',
|
||||
SlaPolicy: 'SlaPolicy',
|
||||
AuthUser: 'AuthUser',
|
||||
AuthSession: 'AuthSession',
|
||||
AuthAccount: 'AuthAccount',
|
||||
AuthInvite: 'AuthInvite',
|
||||
AuthInviteEvent: 'AuthInviteEvent',
|
||||
AuthVerification: 'AuthVerification'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
|
||||
/*
|
||||
* Enums
|
||||
*/
|
||||
|
||||
export const TransactionIsolationLevel = {
|
||||
Serializable: 'Serializable'
|
||||
} as const
|
||||
|
||||
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
||||
|
||||
|
||||
export const TeamScalarFieldEnum = {
|
||||
id: 'id',
|
||||
tenantId: 'tenantId',
|
||||
name: 'name',
|
||||
description: 'description',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type TeamScalarFieldEnum = (typeof TeamScalarFieldEnum)[keyof typeof TeamScalarFieldEnum]
|
||||
|
||||
|
||||
export const TeamMemberScalarFieldEnum = {
|
||||
teamId: 'teamId',
|
||||
userId: 'userId',
|
||||
isLead: 'isLead',
|
||||
assignedAt: 'assignedAt'
|
||||
} as const
|
||||
|
||||
export type TeamMemberScalarFieldEnum = (typeof TeamMemberScalarFieldEnum)[keyof typeof TeamMemberScalarFieldEnum]
|
||||
|
||||
|
||||
export const CompanyScalarFieldEnum = {
|
||||
id: 'id',
|
||||
tenantId: 'tenantId',
|
||||
name: 'name',
|
||||
slug: 'slug',
|
||||
provisioningCode: 'provisioningCode',
|
||||
isAvulso: 'isAvulso',
|
||||
contractedHoursPerMonth: 'contractedHoursPerMonth',
|
||||
cnpj: 'cnpj',
|
||||
domain: 'domain',
|
||||
phone: 'phone',
|
||||
description: 'description',
|
||||
address: 'address',
|
||||
legalName: 'legalName',
|
||||
tradeName: 'tradeName',
|
||||
stateRegistration: 'stateRegistration',
|
||||
stateRegistrationType: 'stateRegistrationType',
|
||||
primaryCnae: 'primaryCnae',
|
||||
timezone: 'timezone',
|
||||
businessHours: 'businessHours',
|
||||
supportEmail: 'supportEmail',
|
||||
billingEmail: 'billingEmail',
|
||||
contactPreferences: 'contactPreferences',
|
||||
clientDomains: 'clientDomains',
|
||||
communicationChannels: 'communicationChannels',
|
||||
fiscalAddress: 'fiscalAddress',
|
||||
hasBranches: 'hasBranches',
|
||||
regulatedEnvironments: 'regulatedEnvironments',
|
||||
privacyPolicyAccepted: 'privacyPolicyAccepted',
|
||||
privacyPolicyReference: 'privacyPolicyReference',
|
||||
privacyPolicyMetadata: 'privacyPolicyMetadata',
|
||||
contacts: 'contacts',
|
||||
locations: 'locations',
|
||||
contracts: 'contracts',
|
||||
sla: 'sla',
|
||||
tags: 'tags',
|
||||
customFields: 'customFields',
|
||||
notes: 'notes',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type CompanyScalarFieldEnum = (typeof CompanyScalarFieldEnum)[keyof typeof CompanyScalarFieldEnum]
|
||||
|
||||
|
||||
export const UserScalarFieldEnum = {
|
||||
id: 'id',
|
||||
tenantId: 'tenantId',
|
||||
name: 'name',
|
||||
email: 'email',
|
||||
role: 'role',
|
||||
jobTitle: 'jobTitle',
|
||||
managerId: 'managerId',
|
||||
timezone: 'timezone',
|
||||
avatarUrl: 'avatarUrl',
|
||||
companyId: 'companyId',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
||||
|
||||
|
||||
export const QueueScalarFieldEnum = {
|
||||
id: 'id',
|
||||
tenantId: 'tenantId',
|
||||
name: 'name',
|
||||
slug: 'slug',
|
||||
teamId: 'teamId',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type QueueScalarFieldEnum = (typeof QueueScalarFieldEnum)[keyof typeof QueueScalarFieldEnum]
|
||||
|
||||
|
||||
export const TicketScalarFieldEnum = {
|
||||
id: 'id',
|
||||
tenantId: 'tenantId',
|
||||
reference: 'reference',
|
||||
subject: 'subject',
|
||||
summary: 'summary',
|
||||
status: 'status',
|
||||
priority: 'priority',
|
||||
channel: 'channel',
|
||||
queueId: 'queueId',
|
||||
requesterId: 'requesterId',
|
||||
assigneeId: 'assigneeId',
|
||||
slaPolicyId: 'slaPolicyId',
|
||||
companyId: 'companyId',
|
||||
slaSnapshot: 'slaSnapshot',
|
||||
slaResponseDueAt: 'slaResponseDueAt',
|
||||
slaSolutionDueAt: 'slaSolutionDueAt',
|
||||
slaResponseStatus: 'slaResponseStatus',
|
||||
slaSolutionStatus: 'slaSolutionStatus',
|
||||
slaPausedAt: 'slaPausedAt',
|
||||
slaPausedBy: 'slaPausedBy',
|
||||
slaPausedMs: 'slaPausedMs',
|
||||
dueAt: 'dueAt',
|
||||
firstResponseAt: 'firstResponseAt',
|
||||
resolvedAt: 'resolvedAt',
|
||||
closedAt: 'closedAt',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type TicketScalarFieldEnum = (typeof TicketScalarFieldEnum)[keyof typeof TicketScalarFieldEnum]
|
||||
|
||||
|
||||
export const ReportExportScheduleScalarFieldEnum = {
|
||||
id: 'id',
|
||||
tenantId: 'tenantId',
|
||||
name: 'name',
|
||||
reportKeys: 'reportKeys',
|
||||
range: 'range',
|
||||
companyId: 'companyId',
|
||||
companyName: 'companyName',
|
||||
format: 'format',
|
||||
frequency: 'frequency',
|
||||
dayOfWeek: 'dayOfWeek',
|
||||
dayOfMonth: 'dayOfMonth',
|
||||
hour: 'hour',
|
||||
minute: 'minute',
|
||||
timezone: 'timezone',
|
||||
recipients: 'recipients',
|
||||
status: 'status',
|
||||
lastRunAt: 'lastRunAt',
|
||||
nextRunAt: 'nextRunAt',
|
||||
createdBy: 'createdBy',
|
||||
updatedBy: 'updatedBy',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type ReportExportScheduleScalarFieldEnum = (typeof ReportExportScheduleScalarFieldEnum)[keyof typeof ReportExportScheduleScalarFieldEnum]
|
||||
|
||||
|
||||
export const ReportExportRunScalarFieldEnum = {
|
||||
id: 'id',
|
||||
tenantId: 'tenantId',
|
||||
scheduleId: 'scheduleId',
|
||||
status: 'status',
|
||||
startedAt: 'startedAt',
|
||||
completedAt: 'completedAt',
|
||||
error: 'error',
|
||||
artifacts: 'artifacts'
|
||||
} as const
|
||||
|
||||
export type ReportExportRunScalarFieldEnum = (typeof ReportExportRunScalarFieldEnum)[keyof typeof ReportExportRunScalarFieldEnum]
|
||||
|
||||
|
||||
export const TicketEventScalarFieldEnum = {
|
||||
id: 'id',
|
||||
ticketId: 'ticketId',
|
||||
type: 'type',
|
||||
payload: 'payload',
|
||||
createdAt: 'createdAt'
|
||||
} as const
|
||||
|
||||
export type TicketEventScalarFieldEnum = (typeof TicketEventScalarFieldEnum)[keyof typeof TicketEventScalarFieldEnum]
|
||||
|
||||
|
||||
export const TicketCommentScalarFieldEnum = {
|
||||
id: 'id',
|
||||
ticketId: 'ticketId',
|
||||
authorId: 'authorId',
|
||||
visibility: 'visibility',
|
||||
body: 'body',
|
||||
attachments: 'attachments',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type TicketCommentScalarFieldEnum = (typeof TicketCommentScalarFieldEnum)[keyof typeof TicketCommentScalarFieldEnum]
|
||||
|
||||
|
||||
export const SlaPolicyScalarFieldEnum = {
|
||||
id: 'id',
|
||||
tenantId: 'tenantId',
|
||||
name: 'name',
|
||||
description: 'description',
|
||||
timeToFirstResponse: 'timeToFirstResponse',
|
||||
timeToResolution: 'timeToResolution',
|
||||
calendar: 'calendar',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type SlaPolicyScalarFieldEnum = (typeof SlaPolicyScalarFieldEnum)[keyof typeof SlaPolicyScalarFieldEnum]
|
||||
|
||||
|
||||
export const AuthUserScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
email: 'email',
|
||||
emailVerified: 'emailVerified',
|
||||
image: 'image',
|
||||
role: 'role',
|
||||
tenantId: 'tenantId',
|
||||
avatarUrl: 'avatarUrl',
|
||||
machinePersona: 'machinePersona',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type AuthUserScalarFieldEnum = (typeof AuthUserScalarFieldEnum)[keyof typeof AuthUserScalarFieldEnum]
|
||||
|
||||
|
||||
export const AuthSessionScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
token: 'token',
|
||||
expiresAt: 'expiresAt',
|
||||
ipAddress: 'ipAddress',
|
||||
userAgent: 'userAgent',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type AuthSessionScalarFieldEnum = (typeof AuthSessionScalarFieldEnum)[keyof typeof AuthSessionScalarFieldEnum]
|
||||
|
||||
|
||||
export const AuthAccountScalarFieldEnum = {
|
||||
id: 'id',
|
||||
userId: 'userId',
|
||||
accountId: 'accountId',
|
||||
providerId: 'providerId',
|
||||
accessToken: 'accessToken',
|
||||
refreshToken: 'refreshToken',
|
||||
accessTokenExpiresAt: 'accessTokenExpiresAt',
|
||||
refreshTokenExpiresAt: 'refreshTokenExpiresAt',
|
||||
scope: 'scope',
|
||||
idToken: 'idToken',
|
||||
password: 'password',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type AuthAccountScalarFieldEnum = (typeof AuthAccountScalarFieldEnum)[keyof typeof AuthAccountScalarFieldEnum]
|
||||
|
||||
|
||||
export const AuthInviteScalarFieldEnum = {
|
||||
id: 'id',
|
||||
email: 'email',
|
||||
name: 'name',
|
||||
role: 'role',
|
||||
tenantId: 'tenantId',
|
||||
token: 'token',
|
||||
status: 'status',
|
||||
expiresAt: 'expiresAt',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
createdById: 'createdById',
|
||||
acceptedAt: 'acceptedAt',
|
||||
acceptedById: 'acceptedById',
|
||||
revokedAt: 'revokedAt',
|
||||
revokedById: 'revokedById',
|
||||
revokedReason: 'revokedReason'
|
||||
} as const
|
||||
|
||||
export type AuthInviteScalarFieldEnum = (typeof AuthInviteScalarFieldEnum)[keyof typeof AuthInviteScalarFieldEnum]
|
||||
|
||||
|
||||
export const AuthInviteEventScalarFieldEnum = {
|
||||
id: 'id',
|
||||
inviteId: 'inviteId',
|
||||
type: 'type',
|
||||
payload: 'payload',
|
||||
actorId: 'actorId',
|
||||
createdAt: 'createdAt'
|
||||
} as const
|
||||
|
||||
export type AuthInviteEventScalarFieldEnum = (typeof AuthInviteEventScalarFieldEnum)[keyof typeof AuthInviteEventScalarFieldEnum]
|
||||
|
||||
|
||||
export const AuthVerificationScalarFieldEnum = {
|
||||
id: 'id',
|
||||
identifier: 'identifier',
|
||||
value: 'value',
|
||||
expiresAt: 'expiresAt',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type AuthVerificationScalarFieldEnum = (typeof AuthVerificationScalarFieldEnum)[keyof typeof AuthVerificationScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
} as const
|
||||
|
||||
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
||||
|
||||
|
||||
export const NullableJsonNullValueInput = {
|
||||
DbNull: 'DbNull',
|
||||
JsonNull: 'JsonNull'
|
||||
} as const
|
||||
|
||||
export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
|
||||
|
||||
|
||||
export const JsonNullValueInput = {
|
||||
JsonNull: 'JsonNull'
|
||||
} as const
|
||||
|
||||
export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput]
|
||||
|
||||
|
||||
export const NullsOrder = {
|
||||
first: 'first',
|
||||
last: 'last'
|
||||
} as const
|
||||
|
||||
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
||||
|
||||
|
||||
export const JsonNullValueFilter = {
|
||||
DbNull: 'DbNull',
|
||||
JsonNull: 'JsonNull',
|
||||
AnyNull: 'AnyNull'
|
||||
} as const
|
||||
|
||||
export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
|
||||
|
||||
|
||||
export const QueryMode = {
|
||||
default: 'default',
|
||||
insensitive: 'insensitive'
|
||||
} as const
|
||||
|
||||
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
|
||||
|
||||
28
src/generated/prisma/models.ts
Normal file
28
src/generated/prisma/models.ts
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
// @ts-nocheck
|
||||
/*
|
||||
* This is a barrel export file for all models and their related types.
|
||||
*
|
||||
* 🟢 You can import this file directly.
|
||||
*/
|
||||
export type * from './models/Team'
|
||||
export type * from './models/TeamMember'
|
||||
export type * from './models/Company'
|
||||
export type * from './models/User'
|
||||
export type * from './models/Queue'
|
||||
export type * from './models/Ticket'
|
||||
export type * from './models/ReportExportSchedule'
|
||||
export type * from './models/ReportExportRun'
|
||||
export type * from './models/TicketEvent'
|
||||
export type * from './models/TicketComment'
|
||||
export type * from './models/SlaPolicy'
|
||||
export type * from './models/AuthUser'
|
||||
export type * from './models/AuthSession'
|
||||
export type * from './models/AuthAccount'
|
||||
export type * from './models/AuthInvite'
|
||||
export type * from './models/AuthInviteEvent'
|
||||
export type * from './models/AuthVerification'
|
||||
export type * from './commonInputTypes'
|
||||
1623
src/generated/prisma/models/AuthAccount.ts
Normal file
1623
src/generated/prisma/models/AuthAccount.ts
Normal file
File diff suppressed because it is too large
Load diff
1672
src/generated/prisma/models/AuthInvite.ts
Normal file
1672
src/generated/prisma/models/AuthInvite.ts
Normal file
File diff suppressed because it is too large
Load diff
1366
src/generated/prisma/models/AuthInviteEvent.ts
Normal file
1366
src/generated/prisma/models/AuthInviteEvent.ts
Normal file
File diff suppressed because it is too large
Load diff
1442
src/generated/prisma/models/AuthSession.ts
Normal file
1442
src/generated/prisma/models/AuthSession.ts
Normal file
File diff suppressed because it is too large
Load diff
1650
src/generated/prisma/models/AuthUser.ts
Normal file
1650
src/generated/prisma/models/AuthUser.ts
Normal file
File diff suppressed because it is too large
Load diff
1170
src/generated/prisma/models/AuthVerification.ts
Normal file
1170
src/generated/prisma/models/AuthVerification.ts
Normal file
File diff suppressed because it is too large
Load diff
2646
src/generated/prisma/models/Company.ts
Normal file
2646
src/generated/prisma/models/Company.ts
Normal file
File diff suppressed because it is too large
Load diff
1579
src/generated/prisma/models/Queue.ts
Normal file
1579
src/generated/prisma/models/Queue.ts
Normal file
File diff suppressed because it is too large
Load diff
1436
src/generated/prisma/models/ReportExportRun.ts
Normal file
1436
src/generated/prisma/models/ReportExportRun.ts
Normal file
File diff suppressed because it is too large
Load diff
1914
src/generated/prisma/models/ReportExportSchedule.ts
Normal file
1914
src/generated/prisma/models/ReportExportSchedule.ts
Normal file
File diff suppressed because it is too large
Load diff
1500
src/generated/prisma/models/SlaPolicy.ts
Normal file
1500
src/generated/prisma/models/SlaPolicy.ts
Normal file
File diff suppressed because it is too large
Load diff
1489
src/generated/prisma/models/Team.ts
Normal file
1489
src/generated/prisma/models/Team.ts
Normal file
File diff suppressed because it is too large
Load diff
1425
src/generated/prisma/models/TeamMember.ts
Normal file
1425
src/generated/prisma/models/TeamMember.ts
Normal file
File diff suppressed because it is too large
Load diff
3726
src/generated/prisma/models/Ticket.ts
Normal file
3726
src/generated/prisma/models/Ticket.ts
Normal file
File diff suppressed because it is too large
Load diff
1577
src/generated/prisma/models/TicketComment.ts
Normal file
1577
src/generated/prisma/models/TicketComment.ts
Normal file
File diff suppressed because it is too large
Load diff
1331
src/generated/prisma/models/TicketEvent.ts
Normal file
1331
src/generated/prisma/models/TicketEvent.ts
Normal file
File diff suppressed because it is too large
Load diff
2611
src/generated/prisma/models/User.ts
Normal file
2611
src/generated/prisma/models/User.ts
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1,10 +1,7 @@
|
|||
import path from "node:path"
|
||||
|
||||
import { PrismaClient } from "@prisma/client"
|
||||
|
||||
if (!process.env.PRISMA_CLIENT_ENGINE_TYPE) {
|
||||
process.env.PRISMA_CLIENT_ENGINE_TYPE = "binary"
|
||||
}
|
||||
import { PrismaClient } from "@/generated/prisma/client"
|
||||
import { PrismaBetterSqlite3 } from "@prisma/adapter-better-sqlite3"
|
||||
|
||||
declare global {
|
||||
var prisma: PrismaClient | undefined
|
||||
|
|
@ -60,7 +57,11 @@ function normalizeDatasourceUrl(envUrl?: string | null) {
|
|||
const resolvedDatabaseUrl = normalizeDatasourceUrl(process.env.DATABASE_URL)
|
||||
process.env.DATABASE_URL = resolvedDatabaseUrl
|
||||
|
||||
export const prisma = global.prisma ?? new PrismaClient({})
|
||||
const sqliteAdapter = new PrismaBetterSqlite3({
|
||||
url: resolvedDatabaseUrl,
|
||||
})
|
||||
|
||||
export const prisma = global.prisma ?? new PrismaClient({ adapter: sqliteAdapter })
|
||||
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
global.prisma = prisma
|
||||
|
|
@ -70,3 +71,5 @@ if (process.env.NODE_ENV !== "production") {
|
|||
// Helps detect mismatched DB path during dev server bootstrap
|
||||
console.log("[prisma] Using database:", resolvedDatabaseUrl)
|
||||
}
|
||||
|
||||
export * from "@/generated/prisma/client"
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
import { Prisma, type Company } from "@prisma/client"
|
||||
import { Prisma, type Company, prisma } from "@/lib/prisma"
|
||||
import { ZodError } from "zod"
|
||||
|
||||
import { prisma } from "@/lib/prisma"
|
||||
|
||||
import {
|
||||
companyFormSchema,
|
||||
companyInputSchema,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { AuthInvite, AuthInviteEvent } from "@prisma/client"
|
||||
import type { AuthInvite, AuthInviteEvent } from "@/lib/prisma"
|
||||
|
||||
import { ROLE_OPTIONS, type RoleOption, normalizeRole } from "@/lib/authz"
|
||||
import { DEFAULT_TENANT_ID } from "@/lib/constants"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
"use server"
|
||||
|
||||
import type { Prisma } from "@prisma/client"
|
||||
import type { Prisma } from "@/lib/prisma"
|
||||
|
||||
import { prisma } from "@/lib/prisma"
|
||||
import { env } from "@/lib/env"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import "server-only"
|
||||
|
||||
import { addMonths, addWeeks, isBefore } from "date-fns"
|
||||
import type { ReportExportRun, ReportExportSchedule } from "@prisma/client"
|
||||
import type { ReportExportRun, ReportExportSchedule } from "@/lib/prisma"
|
||||
import { REPORT_EXPORT_DEFINITIONS, type ReportExportKey } from "@/lib/report-definitions"
|
||||
|
||||
type SerializableSchedule = ReportExportSchedule & {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue