From 514b190a657b0e320ce0eb3dd2cce0df8342ab77 Mon Sep 17 00:00:00 2001 From: Esdras Renan Date: Wed, 19 Nov 2025 15:42:21 -0300 Subject: [PATCH] fix: align prisma client typing --- bun.lock | 6 +- package.json | 2 +- src/generated/prisma/browser.ts | 104 - src/generated/prisma/client.ts | 126 - src/generated/prisma/commonInputTypes.ts | 769 ---- src/generated/prisma/enums.ts | 68 - src/generated/prisma/internal/class.ts | 350 -- .../prisma/internal/prismaNamespace.ts | 2328 ---------- .../prisma/internal/prismaNamespaceBrowser.ts | 441 -- src/generated/prisma/models.ts | 28 - src/generated/prisma/models/AuthAccount.ts | 1623 ------- src/generated/prisma/models/AuthInvite.ts | 1672 -------- .../prisma/models/AuthInviteEvent.ts | 1366 ------ src/generated/prisma/models/AuthSession.ts | 1442 ------- src/generated/prisma/models/AuthUser.ts | 1650 -------- .../prisma/models/AuthVerification.ts | 1170 ------ src/generated/prisma/models/Company.ts | 2646 ------------ src/generated/prisma/models/Queue.ts | 1579 ------- .../prisma/models/ReportExportRun.ts | 1436 ------- .../prisma/models/ReportExportSchedule.ts | 1914 --------- src/generated/prisma/models/SlaPolicy.ts | 1500 ------- src/generated/prisma/models/Team.ts | 1489 ------- src/generated/prisma/models/TeamMember.ts | 1425 ------- src/generated/prisma/models/Ticket.ts | 3726 ----------------- src/generated/prisma/models/TicketComment.ts | 1577 ------- src/generated/prisma/models/TicketEvent.ts | 1331 ------ src/generated/prisma/models/User.ts | 2611 ------------ src/lib/prisma.ts | 33 +- src/server/company-service.ts | 115 +- src/server/invite-utils.ts | 2 +- src/server/report-schedule-runner.ts | 5 +- src/server/report-schedule-service.ts | 2 +- 32 files changed, 106 insertions(+), 34430 deletions(-) delete mode 100644 src/generated/prisma/browser.ts delete mode 100644 src/generated/prisma/client.ts delete mode 100644 src/generated/prisma/commonInputTypes.ts delete mode 100644 src/generated/prisma/enums.ts delete mode 100644 src/generated/prisma/internal/class.ts delete mode 100644 src/generated/prisma/internal/prismaNamespace.ts delete mode 100644 src/generated/prisma/internal/prismaNamespaceBrowser.ts delete mode 100644 src/generated/prisma/models.ts delete mode 100644 src/generated/prisma/models/AuthAccount.ts delete mode 100644 src/generated/prisma/models/AuthInvite.ts delete mode 100644 src/generated/prisma/models/AuthInviteEvent.ts delete mode 100644 src/generated/prisma/models/AuthSession.ts delete mode 100644 src/generated/prisma/models/AuthUser.ts delete mode 100644 src/generated/prisma/models/AuthVerification.ts delete mode 100644 src/generated/prisma/models/Company.ts delete mode 100644 src/generated/prisma/models/Queue.ts delete mode 100644 src/generated/prisma/models/ReportExportRun.ts delete mode 100644 src/generated/prisma/models/ReportExportSchedule.ts delete mode 100644 src/generated/prisma/models/SlaPolicy.ts delete mode 100644 src/generated/prisma/models/Team.ts delete mode 100644 src/generated/prisma/models/TeamMember.ts delete mode 100644 src/generated/prisma/models/Ticket.ts delete mode 100644 src/generated/prisma/models/TicketComment.ts delete mode 100644 src/generated/prisma/models/TicketEvent.ts delete mode 100644 src/generated/prisma/models/User.ts diff --git a/bun.lock b/bun.lock index 0eef112..20eab3c 100644 --- a/bun.lock +++ b/bun.lock @@ -40,7 +40,7 @@ "@tiptap/starter-kit": "^3.10.0", "@tiptap/suggestion": "^3.10.0", "better-auth": "^1.3.26", - "better-sqlite3": "^12.4.1", + "better-sqlite3": "^11.10.0", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "convex": "^1.29.2", @@ -994,7 +994,7 @@ "better-call": ["better-call@1.0.19", "", { "dependencies": { "@better-auth/utils": "0.3.0", "@better-fetch/fetch": "1.1.18", "rou3": "0.5.1", "set-cookie-parser": "2.7.1", "uncrypto": "0.1.3" } }, "sha512-sI3GcA1SCVa3H+CDHl8W8qzhlrckwXOTKhqq3OOPXjgn5aTOMIqGY34zLY/pHA6tRRMjTUC3lz5Mi7EbDA24Kw=="], - "better-sqlite3": ["better-sqlite3@12.4.1", "", { "dependencies": { "bindings": "1.5.0", "prebuild-install": "7.1.3" } }, "sha512-3yVdyZhklTiNrtg+4WqHpJpFDd+WHTg2oM7UcR80GqL05AOV0xEJzc6qNvFYoEtE+hRp1n9MpN6/+4yhlGkDXQ=="], + "better-sqlite3": ["better-sqlite3@11.10.0", "", { "dependencies": { "bindings": "^1.5.0", "prebuild-install": "^7.1.1" } }, "sha512-EwhOpyXiOEL/lKzHz9AW1msWFNzGc/z+LzeB3/jnFJpxu+th2yqvzsSWas1v9jgs9+xiXJcD5A8CJxAG2TaghQ=="], "bidi-js": ["bidi-js@1.0.3", "", { "dependencies": { "require-from-string": "2.0.2" } }, "sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw=="], @@ -2078,8 +2078,6 @@ "@eslint-community/eslint-utils/eslint-visitor-keys": ["eslint-visitor-keys@3.4.3", "", {}, "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag=="], - "@prisma/adapter-better-sqlite3/better-sqlite3": ["better-sqlite3@11.10.0", "", { "dependencies": { "bindings": "^1.5.0", "prebuild-install": "^7.1.1" } }, "sha512-EwhOpyXiOEL/lKzHz9AW1msWFNzGc/z+LzeB3/jnFJpxu+th2yqvzsSWas1v9jgs9+xiXJcD5A8CJxAG2TaghQ=="], - "@prisma/dev/std-env": ["std-env@3.9.0", "", {}, "sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw=="], "@prisma/engines/@prisma/get-platform": ["@prisma/get-platform@7.0.0", "", { "dependencies": { "@prisma/debug": "7.0.0" } }, "sha512-zyhzrAa+y/GfyCzTnuk0D9lfkvDzo7IbsNyuhTqhPu/AN0txm0x26HAR4tJLismla/fHf5fBzYwSivYSzkpakg=="], diff --git a/package.json b/package.json index 2ee82d6..1f3438f 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "@tiptap/starter-kit": "^3.10.0", "@tiptap/suggestion": "^3.10.0", "better-auth": "^1.3.26", - "better-sqlite3": "^12.4.1", + "better-sqlite3": "^11.10.0", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "convex": "^1.29.2", diff --git a/src/generated/prisma/browser.ts b/src/generated/prisma/browser.ts deleted file mode 100644 index 104bc82..0000000 --- a/src/generated/prisma/browser.ts +++ /dev/null @@ -1,104 +0,0 @@ - -/* !!! 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 diff --git a/src/generated/prisma/client.ts b/src/generated/prisma/client.ts deleted file mode 100644 index 79c5879..0000000 --- a/src/generated/prisma/client.ts +++ /dev/null @@ -1,126 +0,0 @@ - -/* !!! 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 = $Class.PrismaClient -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 diff --git a/src/generated/prisma/commonInputTypes.ts b/src/generated/prisma/commonInputTypes.ts deleted file mode 100644 index ca9ee90..0000000 --- a/src/generated/prisma/commonInputTypes.ts +++ /dev/null @@ -1,769 +0,0 @@ - -/* !!! 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>, Exclude>, 'path'>>, - Required> - > -| Prisma.OptionalFlat>, '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>, Exclude>, 'path'>>, - Required> - > -| Prisma.OptionalFlat>, '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>, Exclude>, 'path'>>, - Required> - > -| Prisma.OptionalFlat>, '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>, Exclude>, 'path'>>, - Required> - > -| Prisma.OptionalFlat>, '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>, Exclude>, 'path'>>, - Required> - > -| Prisma.OptionalFlat>, '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>, Exclude>, 'path'>>, - Required> - > -| Prisma.OptionalFlat>, '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> -} - - diff --git a/src/generated/prisma/enums.ts b/src/generated/prisma/enums.ts deleted file mode 100644 index 68dc0a1..0000000 --- a/src/generated/prisma/enums.ts +++ /dev/null @@ -1,68 +0,0 @@ - -/* !!! 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] diff --git a/src/generated/prisma/internal/class.ts b/src/generated/prisma/internal/class.ts deleted file mode 100644 index f23478c..0000000 --- a/src/generated/prisma/internal/class.ts +++ /dev/null @@ -1,350 +0,0 @@ - -/* !!! 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! 🛑 - * - * Please import the `PrismaClient` class from the `client.ts` file instead. - */ - -import * as runtime from "@prisma/client/runtime/client" -import type * as Prisma from "./prismaNamespace" - - -const config: runtime.GetPrismaClientConfig = { - "previewFeatures": [], - "clientVersion": "7.0.0", - "engineVersion": "0c19ccc313cf9911a90d99d2ac2eb0280c76c513", - "activeProvider": "sqlite", - "inlineSchema": "generator client {\n provider = \"prisma-client\"\n output = \"../src/generated/prisma\"\n runtime = \"nodejs\"\n moduleFormat = \"esm\"\n}\n\ndatasource db {\n provider = \"sqlite\"\n}\n\nenum UserRole {\n ADMIN\n MANAGER\n AGENT\n COLLABORATOR\n}\n\nenum TicketStatus {\n PENDING\n AWAITING_ATTENDANCE\n PAUSED\n RESOLVED\n}\n\nenum TicketPriority {\n LOW\n MEDIUM\n HIGH\n URGENT\n}\n\nenum TicketChannel {\n EMAIL\n WHATSAPP\n CHAT\n PHONE\n API\n MANUAL\n}\n\nenum CommentVisibility {\n PUBLIC\n INTERNAL\n}\n\nenum CompanyStateRegistrationType {\n STANDARD\n EXEMPT\n SIMPLES\n}\n\nmodel Team {\n id String @id @default(cuid())\n tenantId String\n name String\n description String?\n members TeamMember[]\n queues Queue[]\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@index([tenantId, name])\n}\n\nmodel TeamMember {\n teamId String\n userId String\n isLead Boolean @default(false)\n assignedAt DateTime @default(now())\n\n team Team @relation(fields: [teamId], references: [id], onDelete: Cascade)\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@id([teamId, userId])\n}\n\nmodel Company {\n id String @id @default(cuid())\n tenantId String\n name String\n slug String\n provisioningCode String @unique\n isAvulso Boolean @default(false)\n contractedHoursPerMonth Float?\n cnpj String?\n domain String?\n phone String?\n description String?\n address String?\n legalName String?\n tradeName String?\n stateRegistration String?\n stateRegistrationType CompanyStateRegistrationType?\n primaryCnae String?\n timezone String?\n businessHours Json?\n supportEmail String?\n billingEmail String?\n contactPreferences Json?\n clientDomains Json?\n communicationChannels Json?\n fiscalAddress Json?\n hasBranches Boolean @default(false)\n regulatedEnvironments Json?\n privacyPolicyAccepted Boolean @default(false)\n privacyPolicyReference String?\n privacyPolicyMetadata Json?\n contacts Json?\n locations Json?\n contracts Json?\n sla Json?\n tags Json?\n customFields Json?\n notes String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n users User[]\n tickets Ticket[]\n\n @@unique([tenantId, slug])\n @@index([tenantId, name])\n}\n\nmodel User {\n id String @id @default(cuid())\n tenantId String\n name String\n email String @unique\n role UserRole\n jobTitle String?\n managerId String?\n timezone String @default(\"America/Sao_Paulo\")\n avatarUrl String?\n companyId String?\n teams TeamMember[]\n requestedTickets Ticket[] @relation(\"TicketRequester\")\n assignedTickets Ticket[] @relation(\"TicketAssignee\")\n comments TicketComment[]\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n manager User? @relation(\"UserManager\", fields: [managerId], references: [id])\n reports User[] @relation(\"UserManager\")\n company Company? @relation(fields: [companyId], references: [id])\n\n @@index([tenantId, role])\n @@index([tenantId, companyId])\n @@index([tenantId, managerId])\n}\n\nmodel Queue {\n id String @id @default(cuid())\n tenantId String\n name String\n slug String\n teamId String?\n tickets Ticket[]\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n team Team? @relation(fields: [teamId], references: [id])\n\n @@unique([tenantId, slug])\n}\n\nmodel Ticket {\n id String @id @default(cuid())\n tenantId String\n reference Int @default(0)\n subject String\n summary String?\n status TicketStatus @default(PENDING)\n priority TicketPriority @default(MEDIUM)\n channel TicketChannel @default(EMAIL)\n queueId String?\n requesterId String\n assigneeId String?\n slaPolicyId String?\n companyId String?\n slaSnapshot Json?\n slaResponseDueAt DateTime?\n slaSolutionDueAt DateTime?\n slaResponseStatus String?\n slaSolutionStatus String?\n slaPausedAt DateTime?\n slaPausedBy String?\n slaPausedMs Int?\n dueAt DateTime?\n firstResponseAt DateTime?\n resolvedAt DateTime?\n closedAt DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n requester User @relation(\"TicketRequester\", fields: [requesterId], references: [id])\n assignee User? @relation(\"TicketAssignee\", fields: [assigneeId], references: [id])\n queue Queue? @relation(fields: [queueId], references: [id])\n slaPolicy SlaPolicy? @relation(fields: [slaPolicyId], references: [id])\n company Company? @relation(fields: [companyId], references: [id])\n events TicketEvent[]\n comments TicketComment[]\n\n @@index([tenantId, status])\n @@index([tenantId, queueId])\n @@index([tenantId, assigneeId])\n @@index([tenantId, companyId])\n}\n\nmodel ReportExportSchedule {\n id String @id @default(cuid())\n tenantId String\n name String\n reportKeys Json\n range String @default(\"30d\")\n companyId String?\n companyName String?\n format String @default(\"xlsx\")\n frequency String\n dayOfWeek Int?\n dayOfMonth Int?\n hour Int @default(8)\n minute Int @default(0)\n timezone String @default(\"America/Sao_Paulo\")\n recipients Json\n status String @default(\"ACTIVE\")\n lastRunAt DateTime?\n nextRunAt DateTime?\n createdBy String\n updatedBy String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n runs ReportExportRun[]\n\n @@index([tenantId, status])\n @@index([tenantId, nextRunAt])\n}\n\nmodel ReportExportRun {\n id String @id @default(cuid())\n tenantId String\n scheduleId String\n status String @default(\"PENDING\")\n startedAt DateTime @default(now())\n completedAt DateTime?\n error String?\n artifacts Json?\n\n schedule ReportExportSchedule @relation(fields: [scheduleId], references: [id], onDelete: Cascade)\n\n @@index([tenantId, status])\n @@index([tenantId, scheduleId])\n}\n\nmodel TicketEvent {\n id String @id @default(cuid())\n ticketId String\n type String\n payload Json\n createdAt DateTime @default(now())\n\n ticket Ticket @relation(fields: [ticketId], references: [id], onDelete: Cascade)\n\n @@index([ticketId, createdAt])\n}\n\nmodel TicketComment {\n id String @id @default(cuid())\n ticketId String\n authorId String\n visibility CommentVisibility @default(INTERNAL)\n body String\n attachments Json?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n ticket Ticket @relation(fields: [ticketId], references: [id], onDelete: Cascade)\n author User @relation(fields: [authorId], references: [id])\n\n @@index([ticketId, visibility])\n}\n\nmodel SlaPolicy {\n id String @id @default(cuid())\n tenantId String\n name String\n description String?\n timeToFirstResponse Int?\n timeToResolution Int?\n calendar Json?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n tickets Ticket[]\n\n @@unique([tenantId, name])\n}\n\nmodel AuthUser {\n id String @id @default(cuid())\n name String?\n email String @unique\n emailVerified Boolean @default(false)\n image String?\n role String @default(\"agent\")\n tenantId String?\n avatarUrl String?\n machinePersona String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n sessions AuthSession[]\n accounts AuthAccount[]\n}\n\nmodel AuthSession {\n id String @id @default(cuid())\n userId String\n token String @unique\n expiresAt DateTime\n ipAddress String?\n userAgent String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n user AuthUser @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([userId])\n @@index([token])\n}\n\nmodel AuthAccount {\n id String @id @default(cuid())\n userId String\n accountId String\n providerId String\n accessToken String?\n refreshToken String?\n accessTokenExpiresAt DateTime?\n refreshTokenExpiresAt DateTime?\n scope String?\n idToken String?\n password String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n user AuthUser @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@unique([providerId, accountId])\n @@index([userId])\n}\n\nmodel AuthInvite {\n id String @id @default(cuid())\n email String\n name String?\n role String @default(\"agent\")\n tenantId String\n token String @unique\n status String @default(\"pending\")\n expiresAt DateTime\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n createdById String?\n acceptedAt DateTime?\n acceptedById String?\n revokedAt DateTime?\n revokedById String?\n revokedReason String?\n\n events AuthInviteEvent[]\n\n @@index([tenantId, status])\n @@index([tenantId, email])\n}\n\nmodel AuthInviteEvent {\n id String @id @default(cuid())\n inviteId String\n type String\n payload Json?\n actorId String?\n createdAt DateTime @default(now())\n\n invite AuthInvite @relation(fields: [inviteId], references: [id], onDelete: Cascade)\n\n @@index([inviteId, createdAt])\n}\n\nmodel AuthVerification {\n id String @id @default(cuid())\n identifier String\n value String\n expiresAt DateTime\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@index([identifier])\n}\n", - "runtimeDataModel": { - "models": {}, - "enums": {}, - "types": {} - } -} - -config.runtimeDataModel = JSON.parse("{\"models\":{\"Team\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tenantId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"members\",\"kind\":\"object\",\"type\":\"TeamMember\",\"relationName\":\"TeamToTeamMember\"},{\"name\":\"queues\",\"kind\":\"object\",\"type\":\"Queue\",\"relationName\":\"QueueToTeam\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"TeamMember\":{\"fields\":[{\"name\":\"teamId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"isLead\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"assignedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"team\",\"kind\":\"object\",\"type\":\"Team\",\"relationName\":\"TeamToTeamMember\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"TeamMemberToUser\"}],\"dbName\":null},\"Company\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tenantId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"slug\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"provisioningCode\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"isAvulso\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"contractedHoursPerMonth\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"cnpj\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"domain\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"address\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"legalName\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tradeName\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"stateRegistration\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"stateRegistrationType\",\"kind\":\"enum\",\"type\":\"CompanyStateRegistrationType\"},{\"name\":\"primaryCnae\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"timezone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"businessHours\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"supportEmail\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"billingEmail\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"contactPreferences\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"clientDomains\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"communicationChannels\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"fiscalAddress\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"hasBranches\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"regulatedEnvironments\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"privacyPolicyAccepted\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"privacyPolicyReference\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"privacyPolicyMetadata\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"contacts\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"locations\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"contracts\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"sla\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"tags\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"customFields\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"notes\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"users\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"CompanyToUser\"},{\"name\":\"tickets\",\"kind\":\"object\",\"type\":\"Ticket\",\"relationName\":\"CompanyToTicket\"}],\"dbName\":null},\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tenantId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"role\",\"kind\":\"enum\",\"type\":\"UserRole\"},{\"name\":\"jobTitle\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"managerId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"timezone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"avatarUrl\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"companyId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"teams\",\"kind\":\"object\",\"type\":\"TeamMember\",\"relationName\":\"TeamMemberToUser\"},{\"name\":\"requestedTickets\",\"kind\":\"object\",\"type\":\"Ticket\",\"relationName\":\"TicketRequester\"},{\"name\":\"assignedTickets\",\"kind\":\"object\",\"type\":\"Ticket\",\"relationName\":\"TicketAssignee\"},{\"name\":\"comments\",\"kind\":\"object\",\"type\":\"TicketComment\",\"relationName\":\"TicketCommentToUser\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"manager\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"UserManager\"},{\"name\":\"reports\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"UserManager\"},{\"name\":\"company\",\"kind\":\"object\",\"type\":\"Company\",\"relationName\":\"CompanyToUser\"}],\"dbName\":null},\"Queue\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tenantId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"slug\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"teamId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tickets\",\"kind\":\"object\",\"type\":\"Ticket\",\"relationName\":\"QueueToTicket\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"team\",\"kind\":\"object\",\"type\":\"Team\",\"relationName\":\"QueueToTeam\"}],\"dbName\":null},\"Ticket\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tenantId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"reference\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"subject\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"summary\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"TicketStatus\"},{\"name\":\"priority\",\"kind\":\"enum\",\"type\":\"TicketPriority\"},{\"name\":\"channel\",\"kind\":\"enum\",\"type\":\"TicketChannel\"},{\"name\":\"queueId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"requesterId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"assigneeId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"slaPolicyId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"companyId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"slaSnapshot\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"slaResponseDueAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"slaSolutionDueAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"slaResponseStatus\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"slaSolutionStatus\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"slaPausedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"slaPausedBy\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"slaPausedMs\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"dueAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"firstResponseAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"resolvedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"closedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"requester\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"TicketRequester\"},{\"name\":\"assignee\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"TicketAssignee\"},{\"name\":\"queue\",\"kind\":\"object\",\"type\":\"Queue\",\"relationName\":\"QueueToTicket\"},{\"name\":\"slaPolicy\",\"kind\":\"object\",\"type\":\"SlaPolicy\",\"relationName\":\"SlaPolicyToTicket\"},{\"name\":\"company\",\"kind\":\"object\",\"type\":\"Company\",\"relationName\":\"CompanyToTicket\"},{\"name\":\"events\",\"kind\":\"object\",\"type\":\"TicketEvent\",\"relationName\":\"TicketToTicketEvent\"},{\"name\":\"comments\",\"kind\":\"object\",\"type\":\"TicketComment\",\"relationName\":\"TicketToTicketComment\"}],\"dbName\":null},\"ReportExportSchedule\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tenantId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"reportKeys\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"range\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"companyId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"companyName\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"format\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"frequency\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"dayOfWeek\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"dayOfMonth\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"hour\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"minute\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"timezone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"recipients\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"lastRunAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"nextRunAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdBy\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"updatedBy\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"runs\",\"kind\":\"object\",\"type\":\"ReportExportRun\",\"relationName\":\"ReportExportRunToReportExportSchedule\"}],\"dbName\":null},\"ReportExportRun\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tenantId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"scheduleId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"startedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"completedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"error\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"artifacts\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"schedule\",\"kind\":\"object\",\"type\":\"ReportExportSchedule\",\"relationName\":\"ReportExportRunToReportExportSchedule\"}],\"dbName\":null},\"TicketEvent\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ticketId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"payload\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"ticket\",\"kind\":\"object\",\"type\":\"Ticket\",\"relationName\":\"TicketToTicketEvent\"}],\"dbName\":null},\"TicketComment\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ticketId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"authorId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"visibility\",\"kind\":\"enum\",\"type\":\"CommentVisibility\"},{\"name\":\"body\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"attachments\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"ticket\",\"kind\":\"object\",\"type\":\"Ticket\",\"relationName\":\"TicketToTicketComment\"},{\"name\":\"author\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"TicketCommentToUser\"}],\"dbName\":null},\"SlaPolicy\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tenantId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"timeToFirstResponse\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"timeToResolution\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"calendar\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"tickets\",\"kind\":\"object\",\"type\":\"Ticket\",\"relationName\":\"SlaPolicyToTicket\"}],\"dbName\":null},\"AuthUser\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"emailVerified\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"image\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"role\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tenantId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"avatarUrl\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"machinePersona\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"sessions\",\"kind\":\"object\",\"type\":\"AuthSession\",\"relationName\":\"AuthSessionToAuthUser\"},{\"name\":\"accounts\",\"kind\":\"object\",\"type\":\"AuthAccount\",\"relationName\":\"AuthAccountToAuthUser\"}],\"dbName\":null},\"AuthSession\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"ipAddress\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userAgent\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"AuthUser\",\"relationName\":\"AuthSessionToAuthUser\"}],\"dbName\":null},\"AuthAccount\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"accountId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"providerId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"accessToken\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"refreshToken\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"accessTokenExpiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"refreshTokenExpiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"scope\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"idToken\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"AuthUser\",\"relationName\":\"AuthAccountToAuthUser\"}],\"dbName\":null},\"AuthInvite\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"role\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tenantId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdById\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"acceptedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"acceptedById\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"revokedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"revokedById\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"revokedReason\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"events\",\"kind\":\"object\",\"type\":\"AuthInviteEvent\",\"relationName\":\"AuthInviteToAuthInviteEvent\"}],\"dbName\":null},\"AuthInviteEvent\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"inviteId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"payload\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"actorId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"invite\",\"kind\":\"object\",\"type\":\"AuthInvite\",\"relationName\":\"AuthInviteToAuthInviteEvent\"}],\"dbName\":null},\"AuthVerification\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"identifier\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"value\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}") - -async function decodeBase64AsWasm(wasmBase64: string): Promise { - const { Buffer } = await import('node:buffer') - const wasmArray = Buffer.from(wasmBase64, 'base64') - return new WebAssembly.Module(wasmArray) -} - -config.compilerWasm = { - getRuntime: async () => await import("@prisma/client/runtime/query_compiler_bg.sqlite.mjs"), - - getQueryCompilerWasmModule: async () => { - const { wasm } = await import("@prisma/client/runtime/query_compiler_bg.sqlite.wasm-base64.mjs") - return await decodeBase64AsWasm(wasm) - } -} - - - -export type LogOptions = - 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never - -export interface PrismaClientConstructor { - /** - * ## 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). - */ - - new < - Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, - LogOpts extends LogOptions = LogOptions, - OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } ? U : Prisma.PrismaClientOptions['omit'], - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs - >(options: Prisma.Subset ): PrismaClient -} - -/** - * ## 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 interface PrismaClient< - in LogOpts extends Prisma.LogLevel = never, - in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined, - in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs -> { - [K: symbol]: { types: Prisma.TypeMap['other'] } - - $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; - - /** - * Connect with the database - */ - $connect(): runtime.Types.Utils.JsPromise; - - /** - * Disconnect from the database - */ - $disconnect(): runtime.Types.Utils.JsPromise; - -/** - * Executes a prepared raw query and returns the number of affected rows. - * @example - * ``` - * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};` - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $executeRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; - - /** - * Executes a raw query and returns the number of affected rows. - * Susceptible to SQL injections, see documentation. - * @example - * ``` - * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com') - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; - - /** - * Performs a prepared raw query and returns the `SELECT` data. - * @example - * ``` - * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};` - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $queryRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; - - /** - * Performs a raw query and returns the `SELECT` data. - * Susceptible to SQL injections, see documentation. - * @example - * ``` - * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com') - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). - */ - $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; - - - /** - * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. - * @example - * ``` - * const [george, bob, alice] = await prisma.$transaction([ - * prisma.user.create({ data: { name: 'George' } }), - * prisma.user.create({ data: { name: 'Bob' } }), - * prisma.user.create({ data: { name: 'Alice' } }), - * ]) - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions). - */ - $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise> - - $transaction(fn: (prisma: Omit) => runtime.Types.Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise - - $extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, runtime.Types.Utils.Call, { - extArgs: ExtArgs - }>> - - /** - * `prisma.team`: Exposes CRUD operations for the **Team** model. - * Example usage: - * ```ts - * // Fetch zero or more Teams - * const teams = await prisma.team.findMany() - * ``` - */ - get team(): Prisma.TeamDelegate; - - /** - * `prisma.teamMember`: Exposes CRUD operations for the **TeamMember** model. - * Example usage: - * ```ts - * // Fetch zero or more TeamMembers - * const teamMembers = await prisma.teamMember.findMany() - * ``` - */ - get teamMember(): Prisma.TeamMemberDelegate; - - /** - * `prisma.company`: Exposes CRUD operations for the **Company** model. - * Example usage: - * ```ts - * // Fetch zero or more Companies - * const companies = await prisma.company.findMany() - * ``` - */ - get company(): Prisma.CompanyDelegate; - - /** - * `prisma.user`: Exposes CRUD operations for the **User** model. - * Example usage: - * ```ts - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - */ - get user(): Prisma.UserDelegate; - - /** - * `prisma.queue`: Exposes CRUD operations for the **Queue** model. - * Example usage: - * ```ts - * // Fetch zero or more Queues - * const queues = await prisma.queue.findMany() - * ``` - */ - get queue(): Prisma.QueueDelegate; - - /** - * `prisma.ticket`: Exposes CRUD operations for the **Ticket** model. - * Example usage: - * ```ts - * // Fetch zero or more Tickets - * const tickets = await prisma.ticket.findMany() - * ``` - */ - get ticket(): Prisma.TicketDelegate; - - /** - * `prisma.reportExportSchedule`: Exposes CRUD operations for the **ReportExportSchedule** model. - * Example usage: - * ```ts - * // Fetch zero or more ReportExportSchedules - * const reportExportSchedules = await prisma.reportExportSchedule.findMany() - * ``` - */ - get reportExportSchedule(): Prisma.ReportExportScheduleDelegate; - - /** - * `prisma.reportExportRun`: Exposes CRUD operations for the **ReportExportRun** model. - * Example usage: - * ```ts - * // Fetch zero or more ReportExportRuns - * const reportExportRuns = await prisma.reportExportRun.findMany() - * ``` - */ - get reportExportRun(): Prisma.ReportExportRunDelegate; - - /** - * `prisma.ticketEvent`: Exposes CRUD operations for the **TicketEvent** model. - * Example usage: - * ```ts - * // Fetch zero or more TicketEvents - * const ticketEvents = await prisma.ticketEvent.findMany() - * ``` - */ - get ticketEvent(): Prisma.TicketEventDelegate; - - /** - * `prisma.ticketComment`: Exposes CRUD operations for the **TicketComment** model. - * Example usage: - * ```ts - * // Fetch zero or more TicketComments - * const ticketComments = await prisma.ticketComment.findMany() - * ``` - */ - get ticketComment(): Prisma.TicketCommentDelegate; - - /** - * `prisma.slaPolicy`: Exposes CRUD operations for the **SlaPolicy** model. - * Example usage: - * ```ts - * // Fetch zero or more SlaPolicies - * const slaPolicies = await prisma.slaPolicy.findMany() - * ``` - */ - get slaPolicy(): Prisma.SlaPolicyDelegate; - - /** - * `prisma.authUser`: Exposes CRUD operations for the **AuthUser** model. - * Example usage: - * ```ts - * // Fetch zero or more AuthUsers - * const authUsers = await prisma.authUser.findMany() - * ``` - */ - get authUser(): Prisma.AuthUserDelegate; - - /** - * `prisma.authSession`: Exposes CRUD operations for the **AuthSession** model. - * Example usage: - * ```ts - * // Fetch zero or more AuthSessions - * const authSessions = await prisma.authSession.findMany() - * ``` - */ - get authSession(): Prisma.AuthSessionDelegate; - - /** - * `prisma.authAccount`: Exposes CRUD operations for the **AuthAccount** model. - * Example usage: - * ```ts - * // Fetch zero or more AuthAccounts - * const authAccounts = await prisma.authAccount.findMany() - * ``` - */ - get authAccount(): Prisma.AuthAccountDelegate; - - /** - * `prisma.authInvite`: Exposes CRUD operations for the **AuthInvite** model. - * Example usage: - * ```ts - * // Fetch zero or more AuthInvites - * const authInvites = await prisma.authInvite.findMany() - * ``` - */ - get authInvite(): Prisma.AuthInviteDelegate; - - /** - * `prisma.authInviteEvent`: Exposes CRUD operations for the **AuthInviteEvent** model. - * Example usage: - * ```ts - * // Fetch zero or more AuthInviteEvents - * const authInviteEvents = await prisma.authInviteEvent.findMany() - * ``` - */ - get authInviteEvent(): Prisma.AuthInviteEventDelegate; - - /** - * `prisma.authVerification`: Exposes CRUD operations for the **AuthVerification** model. - * Example usage: - * ```ts - * // Fetch zero or more AuthVerifications - * const authVerifications = await prisma.authVerification.findMany() - * ``` - */ - get authVerification(): Prisma.AuthVerificationDelegate; -} - -export function getPrismaClientClass(): PrismaClientConstructor { - return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor -} diff --git a/src/generated/prisma/internal/prismaNamespace.ts b/src/generated/prisma/internal/prismaNamespace.ts deleted file mode 100644 index 7e68be4..0000000 --- a/src/generated/prisma/internal/prismaNamespace.ts +++ /dev/null @@ -1,2328 +0,0 @@ - -/* !!! 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 client.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/client" -import type * as Prisma from "../models" -import { type PrismaClient } from "./class" - -export type * from '../models' - -export type DMMF = typeof runtime.DMMF - -export type PrismaPromise = runtime.Types.Public.PrismaPromise - -/** - * Prisma Errors - */ - -export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError -export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError - -export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError -export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError - -export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError -export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError - -export const PrismaClientInitializationError = runtime.PrismaClientInitializationError -export type PrismaClientInitializationError = runtime.PrismaClientInitializationError - -export const PrismaClientValidationError = runtime.PrismaClientValidationError -export type PrismaClientValidationError = runtime.PrismaClientValidationError - -/** - * Re-export of sql-template-tag - */ -export const sql = runtime.sqltag -export const empty = runtime.empty -export const join = runtime.join -export const raw = runtime.raw -export const Sql = runtime.Sql -export type Sql = runtime.Sql - - - -/** - * Decimal.js - */ -export const Decimal = runtime.Decimal -export type Decimal = runtime.Decimal - -export type DecimalJsLike = runtime.DecimalJsLike - -/** -* Extensions -*/ -export type Extension = runtime.Types.Extensions.UserArgs -export const getExtensionContext = runtime.Extensions.getExtensionContext -export type Args = runtime.Types.Public.Args -export type Payload = runtime.Types.Public.Payload -export type Result = runtime.Types.Public.Result -export type Exact = runtime.Types.Public.Exact - -export type PrismaVersion = { - client: string - engine: string -} - -/** - * Prisma Client JS version: 7.0.0 - * Query Engine version: 0c19ccc313cf9911a90d99d2ac2eb0280c76c513 - */ -export const prismaVersion: PrismaVersion = { - client: "7.0.0", - engine: "0c19ccc313cf9911a90d99d2ac2eb0280c76c513" -} - -/** - * Utility Types - */ - -export type Bytes = runtime.Bytes -export type JsonObject = runtime.JsonObject -export type JsonArray = runtime.JsonArray -export type JsonValue = runtime.JsonValue -export type InputJsonObject = runtime.InputJsonObject -export type InputJsonArray = runtime.InputJsonArray -export type InputJsonValue = runtime.InputJsonValue - - -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 - - -type SelectAndInclude = { - select: any - include: any -} - -type SelectAndOmit = { - select: any - omit: any -} - -/** - * From T, pick a set of properties whose keys are in the union K - */ -type Prisma__Pick = { - [P in K]: T[P]; -}; - -export type Enumerable = T | Array; - -/** - * Subset - * @desc From `T` pick properties that exist in `U`. Simple version of Intersection - */ -export type Subset = { - [key in keyof T]: key extends keyof U ? T[key] : never; -}; - -/** - * SelectSubset - * @desc From `T` pick properties that exist in `U`. Simple version of Intersection. - * Additionally, it validates, if both select and include are present. If the case, it errors. - */ -export type SelectSubset = { - [key in keyof T]: key extends keyof U ? T[key] : never -} & - (T extends SelectAndInclude - ? 'Please either choose `select` or `include`.' - : T extends SelectAndOmit - ? 'Please either choose `select` or `omit`.' - : {}) - -/** - * Subset + Intersection - * @desc From `T` pick properties that exist in `U` and intersect `K` - */ -export type SubsetIntersection = { - [key in keyof T]: key extends keyof U ? T[key] : never -} & - K - -type Without = { [P in Exclude]?: never }; - -/** - * XOR is needed to have a real mutually exclusive union type - * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types - */ -export type XOR = - T extends object ? - U extends object ? - (Without & U) | (Without & T) - : U : T - - -/** - * Is T a Record? - */ -type IsObject = T extends Array -? False -: T extends Date -? False -: T extends Uint8Array -? False -: T extends BigInt -? False -: T extends object -? True -: False - - -/** - * If it's T[], return T - */ -export type UnEnumerate = T extends Array ? U : T - -/** - * From ts-toolbelt - */ - -type __Either = Omit & - { - // Merge all but K - [P in K]: Prisma__Pick // With K possibilities - }[K] - -type EitherStrict = Strict<__Either> - -type EitherLoose = ComputeRaw<__Either> - -type _Either< - O extends object, - K extends Key, - strict extends Boolean -> = { - 1: EitherStrict - 0: EitherLoose -}[strict] - -export type Either< - O extends object, - K extends Key, - strict extends Boolean = 1 -> = O extends unknown ? _Either : never - -export type Union = any - -export type PatchUndefined = { - [K in keyof O]: O[K] extends undefined ? At : O[K] -} & {} - -/** Helper Types for "Merge" **/ -export type IntersectOf = ( - U extends unknown ? (k: U) => void : never -) extends (k: infer I) => void - ? I - : never - -export type Overwrite = { - [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; -} & {}; - -type _Merge = IntersectOf; -}>>; - -type Key = string | number | symbol; -type AtStrict = O[K & keyof O]; -type AtLoose = O extends unknown ? AtStrict : never; -export type At = { - 1: AtStrict; - 0: AtLoose; -}[strict]; - -export type ComputeRaw = A extends Function ? A : { - [K in keyof A]: A[K]; -} & {}; - -export type OptionalFlat = { - [K in keyof O]?: O[K]; -} & {}; - -type _Record = { - [P in K]: T; -}; - -// cause typescript not to expand types and preserve names -type NoExpand = T extends unknown ? T : never; - -// this type assumes the passed object is entirely optional -export type AtLeast = NoExpand< - O extends unknown - ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) - | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O - : never>; - -type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; - -export type Strict = ComputeRaw<_Strict>; -/** End Helper Types for "Merge" **/ - -export type Merge = ComputeRaw<_Merge>>; - -export type Boolean = True | False - -export type True = 1 - -export type False = 0 - -export type Not = { - 0: 1 - 1: 0 -}[B] - -export type Extends = [A1] extends [never] - ? 0 // anything `never` is false - : A1 extends A2 - ? 1 - : 0 - -export type Has = Not< - Extends, U1> -> - -export type Or = { - 0: { - 0: 0 - 1: 1 - } - 1: { - 0: 1 - 1: 1 - } -}[B1][B2] - -export type Keys = U extends unknown ? keyof U : never - -export type GetScalarType = O extends object ? { - [P in keyof T]: P extends keyof O - ? O[P] - : never -} : never - -type FieldPaths< - T, - U = Omit -> = IsObject extends True ? U : T - -export type GetHavingFields = { - [K in keyof T]: Or< - Or, Extends<'AND', K>>, - Extends<'NOT', K> - > extends True - ? // infer is only needed to not hit TS limit - // based on the brilliant idea of Pierre-Antoine Mills - // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437 - T[K] extends infer TK - ? GetHavingFields extends object ? Merge> : never> - : never - : {} extends FieldPaths - ? never - : K -}[keyof T] - -/** - * Convert tuple to union - */ -type _TupleToUnion = T extends (infer E)[] ? E : never -type TupleToUnion = _TupleToUnion -export type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T - -/** - * Like `Pick`, but additionally can also accept an array of keys - */ -export type PickEnumerable | keyof T> = Prisma__Pick> - -/** - * Exclude all keys with underscores - */ -export type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T - - -export type FieldRef = runtime.FieldRef - -type FieldRefInputType = Model extends never ? never : FieldRef - - -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] - - - -export interface TypeMapCb extends runtime.Types.Utils.Fn<{extArgs: runtime.Types.Extensions.InternalArgs }, runtime.Types.Utils.Record> { - returns: TypeMap -} - -export type TypeMap = { - globalOmitOptions: { - omit: GlobalOmitOptions - } - meta: { - modelProps: "team" | "teamMember" | "company" | "user" | "queue" | "ticket" | "reportExportSchedule" | "reportExportRun" | "ticketEvent" | "ticketComment" | "slaPolicy" | "authUser" | "authSession" | "authAccount" | "authInvite" | "authInviteEvent" | "authVerification" - txIsolationLevel: TransactionIsolationLevel - } - model: { - Team: { - payload: Prisma.$TeamPayload - fields: Prisma.TeamFieldRefs - operations: { - findUnique: { - args: Prisma.TeamFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.TeamFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.TeamFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.TeamFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.TeamFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.TeamCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.TeamCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.TeamCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.TeamDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.TeamUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.TeamDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.TeamUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.TeamUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.TeamUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.TeamAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.TeamGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.TeamCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - TeamMember: { - payload: Prisma.$TeamMemberPayload - fields: Prisma.TeamMemberFieldRefs - operations: { - findUnique: { - args: Prisma.TeamMemberFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.TeamMemberFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.TeamMemberFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.TeamMemberFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.TeamMemberFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.TeamMemberCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.TeamMemberCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.TeamMemberCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.TeamMemberDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.TeamMemberUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.TeamMemberDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.TeamMemberUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.TeamMemberUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.TeamMemberUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.TeamMemberAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.TeamMemberGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.TeamMemberCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - Company: { - payload: Prisma.$CompanyPayload - fields: Prisma.CompanyFieldRefs - operations: { - findUnique: { - args: Prisma.CompanyFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.CompanyFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.CompanyFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.CompanyFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.CompanyFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.CompanyCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.CompanyCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.CompanyCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.CompanyDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.CompanyUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.CompanyDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.CompanyUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.CompanyUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.CompanyUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.CompanyAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.CompanyGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.CompanyCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - User: { - payload: Prisma.$UserPayload - fields: Prisma.UserFieldRefs - operations: { - findUnique: { - args: Prisma.UserFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.UserFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.UserFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.UserFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.UserFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.UserCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.UserCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.UserCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.UserDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.UserUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.UserDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.UserUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.UserUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.UserUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.UserAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.UserGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.UserCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - Queue: { - payload: Prisma.$QueuePayload - fields: Prisma.QueueFieldRefs - operations: { - findUnique: { - args: Prisma.QueueFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.QueueFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.QueueFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.QueueFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.QueueFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.QueueCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.QueueCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.QueueCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.QueueDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.QueueUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.QueueDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.QueueUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.QueueUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.QueueUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.QueueAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.QueueGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.QueueCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - Ticket: { - payload: Prisma.$TicketPayload - fields: Prisma.TicketFieldRefs - operations: { - findUnique: { - args: Prisma.TicketFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.TicketFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.TicketFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.TicketFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.TicketFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.TicketCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.TicketCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.TicketCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.TicketDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.TicketUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.TicketDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.TicketUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.TicketUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.TicketUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.TicketAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.TicketGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.TicketCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - ReportExportSchedule: { - payload: Prisma.$ReportExportSchedulePayload - fields: Prisma.ReportExportScheduleFieldRefs - operations: { - findUnique: { - args: Prisma.ReportExportScheduleFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.ReportExportScheduleFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.ReportExportScheduleFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.ReportExportScheduleFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.ReportExportScheduleFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.ReportExportScheduleCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.ReportExportScheduleCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.ReportExportScheduleCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.ReportExportScheduleDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.ReportExportScheduleUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.ReportExportScheduleDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.ReportExportScheduleUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.ReportExportScheduleUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.ReportExportScheduleUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.ReportExportScheduleAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.ReportExportScheduleGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.ReportExportScheduleCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - ReportExportRun: { - payload: Prisma.$ReportExportRunPayload - fields: Prisma.ReportExportRunFieldRefs - operations: { - findUnique: { - args: Prisma.ReportExportRunFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.ReportExportRunFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.ReportExportRunFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.ReportExportRunFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.ReportExportRunFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.ReportExportRunCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.ReportExportRunCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.ReportExportRunCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.ReportExportRunDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.ReportExportRunUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.ReportExportRunDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.ReportExportRunUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.ReportExportRunUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.ReportExportRunUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.ReportExportRunAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.ReportExportRunGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.ReportExportRunCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - TicketEvent: { - payload: Prisma.$TicketEventPayload - fields: Prisma.TicketEventFieldRefs - operations: { - findUnique: { - args: Prisma.TicketEventFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.TicketEventFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.TicketEventFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.TicketEventFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.TicketEventFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.TicketEventCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.TicketEventCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.TicketEventCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.TicketEventDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.TicketEventUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.TicketEventDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.TicketEventUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.TicketEventUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.TicketEventUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.TicketEventAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.TicketEventGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.TicketEventCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - TicketComment: { - payload: Prisma.$TicketCommentPayload - fields: Prisma.TicketCommentFieldRefs - operations: { - findUnique: { - args: Prisma.TicketCommentFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.TicketCommentFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.TicketCommentFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.TicketCommentFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.TicketCommentFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.TicketCommentCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.TicketCommentCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.TicketCommentCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.TicketCommentDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.TicketCommentUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.TicketCommentDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.TicketCommentUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.TicketCommentUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.TicketCommentUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.TicketCommentAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.TicketCommentGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.TicketCommentCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - SlaPolicy: { - payload: Prisma.$SlaPolicyPayload - fields: Prisma.SlaPolicyFieldRefs - operations: { - findUnique: { - args: Prisma.SlaPolicyFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.SlaPolicyFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.SlaPolicyFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.SlaPolicyFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.SlaPolicyFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.SlaPolicyCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.SlaPolicyCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.SlaPolicyCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.SlaPolicyDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.SlaPolicyUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.SlaPolicyDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.SlaPolicyUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.SlaPolicyUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.SlaPolicyUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.SlaPolicyAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.SlaPolicyGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.SlaPolicyCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - AuthUser: { - payload: Prisma.$AuthUserPayload - fields: Prisma.AuthUserFieldRefs - operations: { - findUnique: { - args: Prisma.AuthUserFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.AuthUserFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.AuthUserFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.AuthUserFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.AuthUserFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.AuthUserCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.AuthUserCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.AuthUserCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.AuthUserDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.AuthUserUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.AuthUserDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.AuthUserUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.AuthUserUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.AuthUserUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.AuthUserAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.AuthUserGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.AuthUserCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - AuthSession: { - payload: Prisma.$AuthSessionPayload - fields: Prisma.AuthSessionFieldRefs - operations: { - findUnique: { - args: Prisma.AuthSessionFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.AuthSessionFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.AuthSessionFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.AuthSessionFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.AuthSessionFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.AuthSessionCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.AuthSessionCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.AuthSessionCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.AuthSessionDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.AuthSessionUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.AuthSessionDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.AuthSessionUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.AuthSessionUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.AuthSessionUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.AuthSessionAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.AuthSessionGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.AuthSessionCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - AuthAccount: { - payload: Prisma.$AuthAccountPayload - fields: Prisma.AuthAccountFieldRefs - operations: { - findUnique: { - args: Prisma.AuthAccountFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.AuthAccountFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.AuthAccountFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.AuthAccountFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.AuthAccountFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.AuthAccountCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.AuthAccountCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.AuthAccountCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.AuthAccountDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.AuthAccountUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.AuthAccountDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.AuthAccountUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.AuthAccountUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.AuthAccountUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.AuthAccountAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.AuthAccountGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.AuthAccountCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - AuthInvite: { - payload: Prisma.$AuthInvitePayload - fields: Prisma.AuthInviteFieldRefs - operations: { - findUnique: { - args: Prisma.AuthInviteFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.AuthInviteFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.AuthInviteFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.AuthInviteFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.AuthInviteFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.AuthInviteCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.AuthInviteCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.AuthInviteCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.AuthInviteDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.AuthInviteUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.AuthInviteDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.AuthInviteUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.AuthInviteUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.AuthInviteUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.AuthInviteAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.AuthInviteGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.AuthInviteCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - AuthInviteEvent: { - payload: Prisma.$AuthInviteEventPayload - fields: Prisma.AuthInviteEventFieldRefs - operations: { - findUnique: { - args: Prisma.AuthInviteEventFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.AuthInviteEventFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.AuthInviteEventFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.AuthInviteEventFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.AuthInviteEventFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.AuthInviteEventCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.AuthInviteEventCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.AuthInviteEventCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.AuthInviteEventDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.AuthInviteEventUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.AuthInviteEventDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.AuthInviteEventUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.AuthInviteEventUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.AuthInviteEventUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.AuthInviteEventAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.AuthInviteEventGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.AuthInviteEventCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - AuthVerification: { - payload: Prisma.$AuthVerificationPayload - fields: Prisma.AuthVerificationFieldRefs - operations: { - findUnique: { - args: Prisma.AuthVerificationFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.AuthVerificationFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.AuthVerificationFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.AuthVerificationFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.AuthVerificationFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.AuthVerificationCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.AuthVerificationCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.AuthVerificationCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.AuthVerificationDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.AuthVerificationUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.AuthVerificationDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.AuthVerificationUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.AuthVerificationUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.AuthVerificationUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.AuthVerificationAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.AuthVerificationGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.AuthVerificationCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - } -} & { - other: { - payload: any - operations: { - $executeRaw: { - args: [query: TemplateStringsArray | Sql, ...values: any[]], - result: any - } - $executeRawUnsafe: { - args: [query: string, ...values: any[]], - result: any - } - $queryRaw: { - args: [query: TemplateStringsArray | Sql, ...values: any[]], - result: any - } - $queryRawUnsafe: { - args: [query: string, ...values: any[]], - result: any - } - } - } -} - -/** - * Enums - */ - -export const TransactionIsolationLevel = runtime.makeStrictEnum({ - 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] - - - -/** - * Field references - */ - - -/** - * Reference to a field of type 'String' - */ -export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> - - - -/** - * Reference to a field of type 'DateTime' - */ -export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> - - - -/** - * Reference to a field of type 'Boolean' - */ -export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> - - - -/** - * Reference to a field of type 'Float' - */ -export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> - - - -/** - * Reference to a field of type 'CompanyStateRegistrationType' - */ -export type EnumCompanyStateRegistrationTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CompanyStateRegistrationType'> - - - -/** - * Reference to a field of type 'Json' - */ -export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'> - - - -/** - * Reference to a field of type 'QueryMode' - */ -export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'> - - - -/** - * Reference to a field of type 'UserRole' - */ -export type EnumUserRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'UserRole'> - - - -/** - * Reference to a field of type 'Int' - */ -export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> - - - -/** - * Reference to a field of type 'TicketStatus' - */ -export type EnumTicketStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TicketStatus'> - - - -/** - * Reference to a field of type 'TicketPriority' - */ -export type EnumTicketPriorityFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TicketPriority'> - - - -/** - * Reference to a field of type 'TicketChannel' - */ -export type EnumTicketChannelFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TicketChannel'> - - - -/** - * Reference to a field of type 'CommentVisibility' - */ -export type EnumCommentVisibilityFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'CommentVisibility'> - - -/** - * Batch Payload for updateMany & deleteMany & createMany - */ -export type BatchPayload = { - count: number -} - -export const defineExtension = runtime.Extensions.defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs> -export type DefaultPrismaClient = PrismaClient -export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' -export type PrismaClientOptions = ({ - /** - * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`. - */ - adapter: runtime.SqlDriverAdapterFactory - accelerateUrl?: never -} | { - /** - * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database. - */ - accelerateUrl: string - adapter?: never -}) & { - /** - * @default "colorless" - */ - errorFormat?: ErrorFormat - /** - * @example - * ``` - * // Shorthand for `emit: 'stdout'` - * log: ['query', 'info', 'warn', 'error'] - * - * // Emit as events only - * log: [ - * { emit: 'event', level: 'query' }, - * { emit: 'event', level: 'info' }, - * { emit: 'event', level: 'warn' } - * { emit: 'event', level: 'error' } - * ] - * - * / Emit as events and log to stdout - * og: [ - * { emit: 'stdout', level: 'query' }, - * { emit: 'stdout', level: 'info' }, - * { emit: 'stdout', level: 'warn' } - * { emit: 'stdout', level: 'error' } - * - * ``` - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). - */ - log?: (LogLevel | LogDefinition)[] - /** - * The default values for transactionOptions - * maxWait ?= 2000 - * timeout ?= 5000 - */ - transactionOptions?: { - maxWait?: number - timeout?: number - isolationLevel?: TransactionIsolationLevel - } - /** - * Global configuration for omitting model fields by default. - * - * @example - * ``` - * const prisma = new PrismaClient({ - * omit: { - * user: { - * password: true - * } - * } - * }) - * ``` - */ - omit?: GlobalOmitConfig -} -export type GlobalOmitConfig = { - team?: Prisma.TeamOmit - teamMember?: Prisma.TeamMemberOmit - company?: Prisma.CompanyOmit - user?: Prisma.UserOmit - queue?: Prisma.QueueOmit - ticket?: Prisma.TicketOmit - reportExportSchedule?: Prisma.ReportExportScheduleOmit - reportExportRun?: Prisma.ReportExportRunOmit - ticketEvent?: Prisma.TicketEventOmit - ticketComment?: Prisma.TicketCommentOmit - slaPolicy?: Prisma.SlaPolicyOmit - authUser?: Prisma.AuthUserOmit - authSession?: Prisma.AuthSessionOmit - authAccount?: Prisma.AuthAccountOmit - authInvite?: Prisma.AuthInviteOmit - authInviteEvent?: Prisma.AuthInviteEventOmit - authVerification?: Prisma.AuthVerificationOmit -} - -/* Types for Logging */ -export type LogLevel = 'info' | 'query' | 'warn' | 'error' -export type LogDefinition = { - level: LogLevel - emit: 'stdout' | 'event' -} - -export type CheckIsLogLevel = T extends LogLevel ? T : never; - -export type GetLogType = CheckIsLogLevel< - T extends LogDefinition ? T['level'] : T ->; - -export type GetEvents = T extends Array - ? GetLogType - : never; - -export type QueryEvent = { - timestamp: Date - query: string - params: string - duration: number - target: string -} - -export type LogEvent = { - timestamp: Date - message: string - target: string -} -/* End Types for Logging */ - - -export type PrismaAction = - | 'findUnique' - | 'findUniqueOrThrow' - | 'findMany' - | 'findFirst' - | 'findFirstOrThrow' - | 'create' - | 'createMany' - | 'createManyAndReturn' - | 'update' - | 'updateMany' - | 'updateManyAndReturn' - | 'upsert' - | 'delete' - | 'deleteMany' - | 'executeRaw' - | 'queryRaw' - | 'aggregate' - | 'count' - | 'runCommandRaw' - | 'findRaw' - | 'groupBy' - -/** - * `PrismaClient` proxy available in interactive transactions. - */ -export type TransactionClient = Omit - diff --git a/src/generated/prisma/internal/prismaNamespaceBrowser.ts b/src/generated/prisma/internal/prismaNamespaceBrowser.ts deleted file mode 100644 index 6687ec2..0000000 --- a/src/generated/prisma/internal/prismaNamespaceBrowser.ts +++ /dev/null @@ -1,441 +0,0 @@ - -/* !!! 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] - diff --git a/src/generated/prisma/models.ts b/src/generated/prisma/models.ts deleted file mode 100644 index 7ed428c..0000000 --- a/src/generated/prisma/models.ts +++ /dev/null @@ -1,28 +0,0 @@ - -/* !!! 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' \ No newline at end of file diff --git a/src/generated/prisma/models/AuthAccount.ts b/src/generated/prisma/models/AuthAccount.ts deleted file mode 100644 index dedd1ae..0000000 --- a/src/generated/prisma/models/AuthAccount.ts +++ /dev/null @@ -1,1623 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `AuthAccount` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model AuthAccount - * - */ -export type AuthAccountModel = runtime.Types.Result.DefaultSelection - -export type AggregateAuthAccount = { - _count: AuthAccountCountAggregateOutputType | null - _min: AuthAccountMinAggregateOutputType | null - _max: AuthAccountMaxAggregateOutputType | null -} - -export type AuthAccountMinAggregateOutputType = { - id: string | null - userId: string | null - accountId: string | null - providerId: string | null - accessToken: string | null - refreshToken: string | null - accessTokenExpiresAt: Date | null - refreshTokenExpiresAt: Date | null - scope: string | null - idToken: string | null - password: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type AuthAccountMaxAggregateOutputType = { - id: string | null - userId: string | null - accountId: string | null - providerId: string | null - accessToken: string | null - refreshToken: string | null - accessTokenExpiresAt: Date | null - refreshTokenExpiresAt: Date | null - scope: string | null - idToken: string | null - password: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type AuthAccountCountAggregateOutputType = { - id: number - userId: number - accountId: number - providerId: number - accessToken: number - refreshToken: number - accessTokenExpiresAt: number - refreshTokenExpiresAt: number - scope: number - idToken: number - password: number - createdAt: number - updatedAt: number - _all: number -} - - -export type AuthAccountMinAggregateInputType = { - id?: true - userId?: true - accountId?: true - providerId?: true - accessToken?: true - refreshToken?: true - accessTokenExpiresAt?: true - refreshTokenExpiresAt?: true - scope?: true - idToken?: true - password?: true - createdAt?: true - updatedAt?: true -} - -export type AuthAccountMaxAggregateInputType = { - id?: true - userId?: true - accountId?: true - providerId?: true - accessToken?: true - refreshToken?: true - accessTokenExpiresAt?: true - refreshTokenExpiresAt?: true - scope?: true - idToken?: true - password?: true - createdAt?: true - updatedAt?: true -} - -export type AuthAccountCountAggregateInputType = { - id?: true - userId?: true - accountId?: true - providerId?: true - accessToken?: true - refreshToken?: true - accessTokenExpiresAt?: true - refreshTokenExpiresAt?: true - scope?: true - idToken?: true - password?: true - createdAt?: true - updatedAt?: true - _all?: true -} - -export type AuthAccountAggregateArgs = { - /** - * Filter which AuthAccount to aggregate. - */ - where?: Prisma.AuthAccountWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthAccounts to fetch. - */ - orderBy?: Prisma.AuthAccountOrderByWithRelationInput | Prisma.AuthAccountOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.AuthAccountWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthAccounts from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthAccounts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned AuthAccounts - **/ - _count?: true | AuthAccountCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: AuthAccountMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: AuthAccountMaxAggregateInputType -} - -export type GetAuthAccountAggregateType = { - [P in keyof T & keyof AggregateAuthAccount]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type AuthAccountGroupByArgs = { - where?: Prisma.AuthAccountWhereInput - orderBy?: Prisma.AuthAccountOrderByWithAggregationInput | Prisma.AuthAccountOrderByWithAggregationInput[] - by: Prisma.AuthAccountScalarFieldEnum[] | Prisma.AuthAccountScalarFieldEnum - having?: Prisma.AuthAccountScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: AuthAccountCountAggregateInputType | true - _min?: AuthAccountMinAggregateInputType - _max?: AuthAccountMaxAggregateInputType -} - -export type AuthAccountGroupByOutputType = { - id: string - userId: string - accountId: string - providerId: string - accessToken: string | null - refreshToken: string | null - accessTokenExpiresAt: Date | null - refreshTokenExpiresAt: Date | null - scope: string | null - idToken: string | null - password: string | null - createdAt: Date - updatedAt: Date - _count: AuthAccountCountAggregateOutputType | null - _min: AuthAccountMinAggregateOutputType | null - _max: AuthAccountMaxAggregateOutputType | null -} - -type GetAuthAccountGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof AuthAccountGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type AuthAccountWhereInput = { - AND?: Prisma.AuthAccountWhereInput | Prisma.AuthAccountWhereInput[] - OR?: Prisma.AuthAccountWhereInput[] - NOT?: Prisma.AuthAccountWhereInput | Prisma.AuthAccountWhereInput[] - id?: Prisma.StringFilter<"AuthAccount"> | string - userId?: Prisma.StringFilter<"AuthAccount"> | string - accountId?: Prisma.StringFilter<"AuthAccount"> | string - providerId?: Prisma.StringFilter<"AuthAccount"> | string - accessToken?: Prisma.StringNullableFilter<"AuthAccount"> | string | null - refreshToken?: Prisma.StringNullableFilter<"AuthAccount"> | string | null - accessTokenExpiresAt?: Prisma.DateTimeNullableFilter<"AuthAccount"> | Date | string | null - refreshTokenExpiresAt?: Prisma.DateTimeNullableFilter<"AuthAccount"> | Date | string | null - scope?: Prisma.StringNullableFilter<"AuthAccount"> | string | null - idToken?: Prisma.StringNullableFilter<"AuthAccount"> | string | null - password?: Prisma.StringNullableFilter<"AuthAccount"> | string | null - createdAt?: Prisma.DateTimeFilter<"AuthAccount"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"AuthAccount"> | Date | string - user?: Prisma.XOR -} - -export type AuthAccountOrderByWithRelationInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - accountId?: Prisma.SortOrder - providerId?: Prisma.SortOrder - accessToken?: Prisma.SortOrderInput | Prisma.SortOrder - refreshToken?: Prisma.SortOrderInput | Prisma.SortOrder - accessTokenExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder - refreshTokenExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder - scope?: Prisma.SortOrderInput | Prisma.SortOrder - idToken?: Prisma.SortOrderInput | Prisma.SortOrder - password?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - user?: Prisma.AuthUserOrderByWithRelationInput -} - -export type AuthAccountWhereUniqueInput = Prisma.AtLeast<{ - id?: string - providerId_accountId?: Prisma.AuthAccountProviderIdAccountIdCompoundUniqueInput - AND?: Prisma.AuthAccountWhereInput | Prisma.AuthAccountWhereInput[] - OR?: Prisma.AuthAccountWhereInput[] - NOT?: Prisma.AuthAccountWhereInput | Prisma.AuthAccountWhereInput[] - userId?: Prisma.StringFilter<"AuthAccount"> | string - accountId?: Prisma.StringFilter<"AuthAccount"> | string - providerId?: Prisma.StringFilter<"AuthAccount"> | string - accessToken?: Prisma.StringNullableFilter<"AuthAccount"> | string | null - refreshToken?: Prisma.StringNullableFilter<"AuthAccount"> | string | null - accessTokenExpiresAt?: Prisma.DateTimeNullableFilter<"AuthAccount"> | Date | string | null - refreshTokenExpiresAt?: Prisma.DateTimeNullableFilter<"AuthAccount"> | Date | string | null - scope?: Prisma.StringNullableFilter<"AuthAccount"> | string | null - idToken?: Prisma.StringNullableFilter<"AuthAccount"> | string | null - password?: Prisma.StringNullableFilter<"AuthAccount"> | string | null - createdAt?: Prisma.DateTimeFilter<"AuthAccount"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"AuthAccount"> | Date | string - user?: Prisma.XOR -}, "id" | "providerId_accountId"> - -export type AuthAccountOrderByWithAggregationInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - accountId?: Prisma.SortOrder - providerId?: Prisma.SortOrder - accessToken?: Prisma.SortOrderInput | Prisma.SortOrder - refreshToken?: Prisma.SortOrderInput | Prisma.SortOrder - accessTokenExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder - refreshTokenExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder - scope?: Prisma.SortOrderInput | Prisma.SortOrder - idToken?: Prisma.SortOrderInput | Prisma.SortOrder - password?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - _count?: Prisma.AuthAccountCountOrderByAggregateInput - _max?: Prisma.AuthAccountMaxOrderByAggregateInput - _min?: Prisma.AuthAccountMinOrderByAggregateInput -} - -export type AuthAccountScalarWhereWithAggregatesInput = { - AND?: Prisma.AuthAccountScalarWhereWithAggregatesInput | Prisma.AuthAccountScalarWhereWithAggregatesInput[] - OR?: Prisma.AuthAccountScalarWhereWithAggregatesInput[] - NOT?: Prisma.AuthAccountScalarWhereWithAggregatesInput | Prisma.AuthAccountScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"AuthAccount"> | string - userId?: Prisma.StringWithAggregatesFilter<"AuthAccount"> | string - accountId?: Prisma.StringWithAggregatesFilter<"AuthAccount"> | string - providerId?: Prisma.StringWithAggregatesFilter<"AuthAccount"> | string - accessToken?: Prisma.StringNullableWithAggregatesFilter<"AuthAccount"> | string | null - refreshToken?: Prisma.StringNullableWithAggregatesFilter<"AuthAccount"> | string | null - accessTokenExpiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AuthAccount"> | Date | string | null - refreshTokenExpiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AuthAccount"> | Date | string | null - scope?: Prisma.StringNullableWithAggregatesFilter<"AuthAccount"> | string | null - idToken?: Prisma.StringNullableWithAggregatesFilter<"AuthAccount"> | string | null - password?: Prisma.StringNullableWithAggregatesFilter<"AuthAccount"> | string | null - createdAt?: Prisma.DateTimeWithAggregatesFilter<"AuthAccount"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AuthAccount"> | Date | string -} - -export type AuthAccountCreateInput = { - id?: string - accountId: string - providerId: string - accessToken?: string | null - refreshToken?: string | null - accessTokenExpiresAt?: Date | string | null - refreshTokenExpiresAt?: Date | string | null - scope?: string | null - idToken?: string | null - password?: string | null - createdAt?: Date | string - updatedAt?: Date | string - user: Prisma.AuthUserCreateNestedOneWithoutAccountsInput -} - -export type AuthAccountUncheckedCreateInput = { - id?: string - userId: string - accountId: string - providerId: string - accessToken?: string | null - refreshToken?: string | null - accessTokenExpiresAt?: Date | string | null - refreshTokenExpiresAt?: Date | string | null - scope?: string | null - idToken?: string | null - password?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type AuthAccountUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - accountId?: Prisma.StringFieldUpdateOperationsInput | string - providerId?: Prisma.StringFieldUpdateOperationsInput | string - accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - user?: Prisma.AuthUserUpdateOneRequiredWithoutAccountsNestedInput -} - -export type AuthAccountUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - accountId?: Prisma.StringFieldUpdateOperationsInput | string - providerId?: Prisma.StringFieldUpdateOperationsInput | string - accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthAccountCreateManyInput = { - id?: string - userId: string - accountId: string - providerId: string - accessToken?: string | null - refreshToken?: string | null - accessTokenExpiresAt?: Date | string | null - refreshTokenExpiresAt?: Date | string | null - scope?: string | null - idToken?: string | null - password?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type AuthAccountUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - accountId?: Prisma.StringFieldUpdateOperationsInput | string - providerId?: Prisma.StringFieldUpdateOperationsInput | string - accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthAccountUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - accountId?: Prisma.StringFieldUpdateOperationsInput | string - providerId?: Prisma.StringFieldUpdateOperationsInput | string - accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthAccountListRelationFilter = { - every?: Prisma.AuthAccountWhereInput - some?: Prisma.AuthAccountWhereInput - none?: Prisma.AuthAccountWhereInput -} - -export type AuthAccountOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type AuthAccountProviderIdAccountIdCompoundUniqueInput = { - providerId: string - accountId: string -} - -export type AuthAccountCountOrderByAggregateInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - accountId?: Prisma.SortOrder - providerId?: Prisma.SortOrder - accessToken?: Prisma.SortOrder - refreshToken?: Prisma.SortOrder - accessTokenExpiresAt?: Prisma.SortOrder - refreshTokenExpiresAt?: Prisma.SortOrder - scope?: Prisma.SortOrder - idToken?: Prisma.SortOrder - password?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type AuthAccountMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - accountId?: Prisma.SortOrder - providerId?: Prisma.SortOrder - accessToken?: Prisma.SortOrder - refreshToken?: Prisma.SortOrder - accessTokenExpiresAt?: Prisma.SortOrder - refreshTokenExpiresAt?: Prisma.SortOrder - scope?: Prisma.SortOrder - idToken?: Prisma.SortOrder - password?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type AuthAccountMinOrderByAggregateInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - accountId?: Prisma.SortOrder - providerId?: Prisma.SortOrder - accessToken?: Prisma.SortOrder - refreshToken?: Prisma.SortOrder - accessTokenExpiresAt?: Prisma.SortOrder - refreshTokenExpiresAt?: Prisma.SortOrder - scope?: Prisma.SortOrder - idToken?: Prisma.SortOrder - password?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type AuthAccountCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.AuthAccountCreateWithoutUserInput[] | Prisma.AuthAccountUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.AuthAccountCreateOrConnectWithoutUserInput | Prisma.AuthAccountCreateOrConnectWithoutUserInput[] - createMany?: Prisma.AuthAccountCreateManyUserInputEnvelope - connect?: Prisma.AuthAccountWhereUniqueInput | Prisma.AuthAccountWhereUniqueInput[] -} - -export type AuthAccountUncheckedCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.AuthAccountCreateWithoutUserInput[] | Prisma.AuthAccountUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.AuthAccountCreateOrConnectWithoutUserInput | Prisma.AuthAccountCreateOrConnectWithoutUserInput[] - createMany?: Prisma.AuthAccountCreateManyUserInputEnvelope - connect?: Prisma.AuthAccountWhereUniqueInput | Prisma.AuthAccountWhereUniqueInput[] -} - -export type AuthAccountUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.AuthAccountCreateWithoutUserInput[] | Prisma.AuthAccountUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.AuthAccountCreateOrConnectWithoutUserInput | Prisma.AuthAccountCreateOrConnectWithoutUserInput[] - upsert?: Prisma.AuthAccountUpsertWithWhereUniqueWithoutUserInput | Prisma.AuthAccountUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.AuthAccountCreateManyUserInputEnvelope - set?: Prisma.AuthAccountWhereUniqueInput | Prisma.AuthAccountWhereUniqueInput[] - disconnect?: Prisma.AuthAccountWhereUniqueInput | Prisma.AuthAccountWhereUniqueInput[] - delete?: Prisma.AuthAccountWhereUniqueInput | Prisma.AuthAccountWhereUniqueInput[] - connect?: Prisma.AuthAccountWhereUniqueInput | Prisma.AuthAccountWhereUniqueInput[] - update?: Prisma.AuthAccountUpdateWithWhereUniqueWithoutUserInput | Prisma.AuthAccountUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.AuthAccountUpdateManyWithWhereWithoutUserInput | Prisma.AuthAccountUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.AuthAccountScalarWhereInput | Prisma.AuthAccountScalarWhereInput[] -} - -export type AuthAccountUncheckedUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.AuthAccountCreateWithoutUserInput[] | Prisma.AuthAccountUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.AuthAccountCreateOrConnectWithoutUserInput | Prisma.AuthAccountCreateOrConnectWithoutUserInput[] - upsert?: Prisma.AuthAccountUpsertWithWhereUniqueWithoutUserInput | Prisma.AuthAccountUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.AuthAccountCreateManyUserInputEnvelope - set?: Prisma.AuthAccountWhereUniqueInput | Prisma.AuthAccountWhereUniqueInput[] - disconnect?: Prisma.AuthAccountWhereUniqueInput | Prisma.AuthAccountWhereUniqueInput[] - delete?: Prisma.AuthAccountWhereUniqueInput | Prisma.AuthAccountWhereUniqueInput[] - connect?: Prisma.AuthAccountWhereUniqueInput | Prisma.AuthAccountWhereUniqueInput[] - update?: Prisma.AuthAccountUpdateWithWhereUniqueWithoutUserInput | Prisma.AuthAccountUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.AuthAccountUpdateManyWithWhereWithoutUserInput | Prisma.AuthAccountUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.AuthAccountScalarWhereInput | Prisma.AuthAccountScalarWhereInput[] -} - -export type AuthAccountCreateWithoutUserInput = { - id?: string - accountId: string - providerId: string - accessToken?: string | null - refreshToken?: string | null - accessTokenExpiresAt?: Date | string | null - refreshTokenExpiresAt?: Date | string | null - scope?: string | null - idToken?: string | null - password?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type AuthAccountUncheckedCreateWithoutUserInput = { - id?: string - accountId: string - providerId: string - accessToken?: string | null - refreshToken?: string | null - accessTokenExpiresAt?: Date | string | null - refreshTokenExpiresAt?: Date | string | null - scope?: string | null - idToken?: string | null - password?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type AuthAccountCreateOrConnectWithoutUserInput = { - where: Prisma.AuthAccountWhereUniqueInput - create: Prisma.XOR -} - -export type AuthAccountCreateManyUserInputEnvelope = { - data: Prisma.AuthAccountCreateManyUserInput | Prisma.AuthAccountCreateManyUserInput[] -} - -export type AuthAccountUpsertWithWhereUniqueWithoutUserInput = { - where: Prisma.AuthAccountWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type AuthAccountUpdateWithWhereUniqueWithoutUserInput = { - where: Prisma.AuthAccountWhereUniqueInput - data: Prisma.XOR -} - -export type AuthAccountUpdateManyWithWhereWithoutUserInput = { - where: Prisma.AuthAccountScalarWhereInput - data: Prisma.XOR -} - -export type AuthAccountScalarWhereInput = { - AND?: Prisma.AuthAccountScalarWhereInput | Prisma.AuthAccountScalarWhereInput[] - OR?: Prisma.AuthAccountScalarWhereInput[] - NOT?: Prisma.AuthAccountScalarWhereInput | Prisma.AuthAccountScalarWhereInput[] - id?: Prisma.StringFilter<"AuthAccount"> | string - userId?: Prisma.StringFilter<"AuthAccount"> | string - accountId?: Prisma.StringFilter<"AuthAccount"> | string - providerId?: Prisma.StringFilter<"AuthAccount"> | string - accessToken?: Prisma.StringNullableFilter<"AuthAccount"> | string | null - refreshToken?: Prisma.StringNullableFilter<"AuthAccount"> | string | null - accessTokenExpiresAt?: Prisma.DateTimeNullableFilter<"AuthAccount"> | Date | string | null - refreshTokenExpiresAt?: Prisma.DateTimeNullableFilter<"AuthAccount"> | Date | string | null - scope?: Prisma.StringNullableFilter<"AuthAccount"> | string | null - idToken?: Prisma.StringNullableFilter<"AuthAccount"> | string | null - password?: Prisma.StringNullableFilter<"AuthAccount"> | string | null - createdAt?: Prisma.DateTimeFilter<"AuthAccount"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"AuthAccount"> | Date | string -} - -export type AuthAccountCreateManyUserInput = { - id?: string - accountId: string - providerId: string - accessToken?: string | null - refreshToken?: string | null - accessTokenExpiresAt?: Date | string | null - refreshTokenExpiresAt?: Date | string | null - scope?: string | null - idToken?: string | null - password?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type AuthAccountUpdateWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - accountId?: Prisma.StringFieldUpdateOperationsInput | string - providerId?: Prisma.StringFieldUpdateOperationsInput | string - accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthAccountUncheckedUpdateWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - accountId?: Prisma.StringFieldUpdateOperationsInput | string - providerId?: Prisma.StringFieldUpdateOperationsInput | string - accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthAccountUncheckedUpdateManyWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - accountId?: Prisma.StringFieldUpdateOperationsInput | string - providerId?: Prisma.StringFieldUpdateOperationsInput | string - accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - - - -export type AuthAccountSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - userId?: boolean - accountId?: boolean - providerId?: boolean - accessToken?: boolean - refreshToken?: boolean - accessTokenExpiresAt?: boolean - refreshTokenExpiresAt?: boolean - scope?: boolean - idToken?: boolean - password?: boolean - createdAt?: boolean - updatedAt?: boolean - user?: boolean | Prisma.AuthUserDefaultArgs -}, ExtArgs["result"]["authAccount"]> - -export type AuthAccountSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - userId?: boolean - accountId?: boolean - providerId?: boolean - accessToken?: boolean - refreshToken?: boolean - accessTokenExpiresAt?: boolean - refreshTokenExpiresAt?: boolean - scope?: boolean - idToken?: boolean - password?: boolean - createdAt?: boolean - updatedAt?: boolean - user?: boolean | Prisma.AuthUserDefaultArgs -}, ExtArgs["result"]["authAccount"]> - -export type AuthAccountSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - userId?: boolean - accountId?: boolean - providerId?: boolean - accessToken?: boolean - refreshToken?: boolean - accessTokenExpiresAt?: boolean - refreshTokenExpiresAt?: boolean - scope?: boolean - idToken?: boolean - password?: boolean - createdAt?: boolean - updatedAt?: boolean - user?: boolean | Prisma.AuthUserDefaultArgs -}, ExtArgs["result"]["authAccount"]> - -export type AuthAccountSelectScalar = { - id?: boolean - userId?: boolean - accountId?: boolean - providerId?: boolean - accessToken?: boolean - refreshToken?: boolean - accessTokenExpiresAt?: boolean - refreshTokenExpiresAt?: boolean - scope?: boolean - idToken?: boolean - password?: boolean - createdAt?: boolean - updatedAt?: boolean -} - -export type AuthAccountOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "accountId" | "providerId" | "accessToken" | "refreshToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "scope" | "idToken" | "password" | "createdAt" | "updatedAt", ExtArgs["result"]["authAccount"]> -export type AuthAccountInclude = { - user?: boolean | Prisma.AuthUserDefaultArgs -} -export type AuthAccountIncludeCreateManyAndReturn = { - user?: boolean | Prisma.AuthUserDefaultArgs -} -export type AuthAccountIncludeUpdateManyAndReturn = { - user?: boolean | Prisma.AuthUserDefaultArgs -} - -export type $AuthAccountPayload = { - name: "AuthAccount" - objects: { - user: Prisma.$AuthUserPayload - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - userId: string - accountId: string - providerId: string - accessToken: string | null - refreshToken: string | null - accessTokenExpiresAt: Date | null - refreshTokenExpiresAt: Date | null - scope: string | null - idToken: string | null - password: string | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["authAccount"]> - composites: {} -} - -export type AuthAccountGetPayload = runtime.Types.Result.GetResult - -export type AuthAccountCountArgs = - Omit & { - select?: AuthAccountCountAggregateInputType | true - } - -export interface AuthAccountDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['AuthAccount'], meta: { name: 'AuthAccount' } } - /** - * Find zero or one AuthAccount that matches the filter. - * @param {AuthAccountFindUniqueArgs} args - Arguments to find a AuthAccount - * @example - * // Get one AuthAccount - * const authAccount = await prisma.authAccount.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AuthAccountClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one AuthAccount that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {AuthAccountFindUniqueOrThrowArgs} args - Arguments to find a AuthAccount - * @example - * // Get one AuthAccount - * const authAccount = await prisma.authAccount.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AuthAccountClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first AuthAccount that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthAccountFindFirstArgs} args - Arguments to find a AuthAccount - * @example - * // Get one AuthAccount - * const authAccount = await prisma.authAccount.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AuthAccountClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first AuthAccount that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthAccountFindFirstOrThrowArgs} args - Arguments to find a AuthAccount - * @example - * // Get one AuthAccount - * const authAccount = await prisma.authAccount.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AuthAccountClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more AuthAccounts that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthAccountFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all AuthAccounts - * const authAccounts = await prisma.authAccount.findMany() - * - * // Get first 10 AuthAccounts - * const authAccounts = await prisma.authAccount.findMany({ take: 10 }) - * - * // Only select the `id` - * const authAccountWithIdOnly = await prisma.authAccount.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a AuthAccount. - * @param {AuthAccountCreateArgs} args - Arguments to create a AuthAccount. - * @example - * // Create one AuthAccount - * const AuthAccount = await prisma.authAccount.create({ - * data: { - * // ... data to create a AuthAccount - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__AuthAccountClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many AuthAccounts. - * @param {AuthAccountCreateManyArgs} args - Arguments to create many AuthAccounts. - * @example - * // Create many AuthAccounts - * const authAccount = await prisma.authAccount.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many AuthAccounts and returns the data saved in the database. - * @param {AuthAccountCreateManyAndReturnArgs} args - Arguments to create many AuthAccounts. - * @example - * // Create many AuthAccounts - * const authAccount = await prisma.authAccount.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many AuthAccounts and only return the `id` - * const authAccountWithIdOnly = await prisma.authAccount.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a AuthAccount. - * @param {AuthAccountDeleteArgs} args - Arguments to delete one AuthAccount. - * @example - * // Delete one AuthAccount - * const AuthAccount = await prisma.authAccount.delete({ - * where: { - * // ... filter to delete one AuthAccount - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__AuthAccountClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one AuthAccount. - * @param {AuthAccountUpdateArgs} args - Arguments to update one AuthAccount. - * @example - * // Update one AuthAccount - * const authAccount = await prisma.authAccount.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__AuthAccountClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more AuthAccounts. - * @param {AuthAccountDeleteManyArgs} args - Arguments to filter AuthAccounts to delete. - * @example - * // Delete a few AuthAccounts - * const { count } = await prisma.authAccount.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more AuthAccounts. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthAccountUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many AuthAccounts - * const authAccount = await prisma.authAccount.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more AuthAccounts and returns the data updated in the database. - * @param {AuthAccountUpdateManyAndReturnArgs} args - Arguments to update many AuthAccounts. - * @example - * // Update many AuthAccounts - * const authAccount = await prisma.authAccount.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more AuthAccounts and only return the `id` - * const authAccountWithIdOnly = await prisma.authAccount.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one AuthAccount. - * @param {AuthAccountUpsertArgs} args - Arguments to update or create a AuthAccount. - * @example - * // Update or create a AuthAccount - * const authAccount = await prisma.authAccount.upsert({ - * create: { - * // ... data to create a AuthAccount - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the AuthAccount we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AuthAccountClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of AuthAccounts. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthAccountCountArgs} args - Arguments to filter AuthAccounts to count. - * @example - * // Count the number of AuthAccounts - * const count = await prisma.authAccount.count({ - * where: { - * // ... the filter for the AuthAccounts we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a AuthAccount. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthAccountAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by AuthAccount. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthAccountGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends AuthAccountGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: AuthAccountGroupByArgs['orderBy'] } - : { orderBy?: AuthAccountGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetAuthAccountGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the AuthAccount model - */ -readonly fields: AuthAccountFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for AuthAccount. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__AuthAccountClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - user = {}>(args?: Prisma.Subset>): Prisma.Prisma__AuthUserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the AuthAccount model - */ -export interface AuthAccountFieldRefs { - readonly id: Prisma.FieldRef<"AuthAccount", 'String'> - readonly userId: Prisma.FieldRef<"AuthAccount", 'String'> - readonly accountId: Prisma.FieldRef<"AuthAccount", 'String'> - readonly providerId: Prisma.FieldRef<"AuthAccount", 'String'> - readonly accessToken: Prisma.FieldRef<"AuthAccount", 'String'> - readonly refreshToken: Prisma.FieldRef<"AuthAccount", 'String'> - readonly accessTokenExpiresAt: Prisma.FieldRef<"AuthAccount", 'DateTime'> - readonly refreshTokenExpiresAt: Prisma.FieldRef<"AuthAccount", 'DateTime'> - readonly scope: Prisma.FieldRef<"AuthAccount", 'String'> - readonly idToken: Prisma.FieldRef<"AuthAccount", 'String'> - readonly password: Prisma.FieldRef<"AuthAccount", 'String'> - readonly createdAt: Prisma.FieldRef<"AuthAccount", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"AuthAccount", 'DateTime'> -} - - -// Custom InputTypes -/** - * AuthAccount findUnique - */ -export type AuthAccountFindUniqueArgs = { - /** - * Select specific fields to fetch from the AuthAccount - */ - select?: Prisma.AuthAccountSelect | null - /** - * Omit specific fields from the AuthAccount - */ - omit?: Prisma.AuthAccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthAccountInclude | null - /** - * Filter, which AuthAccount to fetch. - */ - where: Prisma.AuthAccountWhereUniqueInput -} - -/** - * AuthAccount findUniqueOrThrow - */ -export type AuthAccountFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the AuthAccount - */ - select?: Prisma.AuthAccountSelect | null - /** - * Omit specific fields from the AuthAccount - */ - omit?: Prisma.AuthAccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthAccountInclude | null - /** - * Filter, which AuthAccount to fetch. - */ - where: Prisma.AuthAccountWhereUniqueInput -} - -/** - * AuthAccount findFirst - */ -export type AuthAccountFindFirstArgs = { - /** - * Select specific fields to fetch from the AuthAccount - */ - select?: Prisma.AuthAccountSelect | null - /** - * Omit specific fields from the AuthAccount - */ - omit?: Prisma.AuthAccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthAccountInclude | null - /** - * Filter, which AuthAccount to fetch. - */ - where?: Prisma.AuthAccountWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthAccounts to fetch. - */ - orderBy?: Prisma.AuthAccountOrderByWithRelationInput | Prisma.AuthAccountOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for AuthAccounts. - */ - cursor?: Prisma.AuthAccountWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthAccounts from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthAccounts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of AuthAccounts. - */ - distinct?: Prisma.AuthAccountScalarFieldEnum | Prisma.AuthAccountScalarFieldEnum[] -} - -/** - * AuthAccount findFirstOrThrow - */ -export type AuthAccountFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the AuthAccount - */ - select?: Prisma.AuthAccountSelect | null - /** - * Omit specific fields from the AuthAccount - */ - omit?: Prisma.AuthAccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthAccountInclude | null - /** - * Filter, which AuthAccount to fetch. - */ - where?: Prisma.AuthAccountWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthAccounts to fetch. - */ - orderBy?: Prisma.AuthAccountOrderByWithRelationInput | Prisma.AuthAccountOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for AuthAccounts. - */ - cursor?: Prisma.AuthAccountWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthAccounts from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthAccounts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of AuthAccounts. - */ - distinct?: Prisma.AuthAccountScalarFieldEnum | Prisma.AuthAccountScalarFieldEnum[] -} - -/** - * AuthAccount findMany - */ -export type AuthAccountFindManyArgs = { - /** - * Select specific fields to fetch from the AuthAccount - */ - select?: Prisma.AuthAccountSelect | null - /** - * Omit specific fields from the AuthAccount - */ - omit?: Prisma.AuthAccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthAccountInclude | null - /** - * Filter, which AuthAccounts to fetch. - */ - where?: Prisma.AuthAccountWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthAccounts to fetch. - */ - orderBy?: Prisma.AuthAccountOrderByWithRelationInput | Prisma.AuthAccountOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing AuthAccounts. - */ - cursor?: Prisma.AuthAccountWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthAccounts from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthAccounts. - */ - skip?: number - distinct?: Prisma.AuthAccountScalarFieldEnum | Prisma.AuthAccountScalarFieldEnum[] -} - -/** - * AuthAccount create - */ -export type AuthAccountCreateArgs = { - /** - * Select specific fields to fetch from the AuthAccount - */ - select?: Prisma.AuthAccountSelect | null - /** - * Omit specific fields from the AuthAccount - */ - omit?: Prisma.AuthAccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthAccountInclude | null - /** - * The data needed to create a AuthAccount. - */ - data: Prisma.XOR -} - -/** - * AuthAccount createMany - */ -export type AuthAccountCreateManyArgs = { - /** - * The data used to create many AuthAccounts. - */ - data: Prisma.AuthAccountCreateManyInput | Prisma.AuthAccountCreateManyInput[] -} - -/** - * AuthAccount createManyAndReturn - */ -export type AuthAccountCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the AuthAccount - */ - select?: Prisma.AuthAccountSelectCreateManyAndReturn | null - /** - * Omit specific fields from the AuthAccount - */ - omit?: Prisma.AuthAccountOmit | null - /** - * The data used to create many AuthAccounts. - */ - data: Prisma.AuthAccountCreateManyInput | Prisma.AuthAccountCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthAccountIncludeCreateManyAndReturn | null -} - -/** - * AuthAccount update - */ -export type AuthAccountUpdateArgs = { - /** - * Select specific fields to fetch from the AuthAccount - */ - select?: Prisma.AuthAccountSelect | null - /** - * Omit specific fields from the AuthAccount - */ - omit?: Prisma.AuthAccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthAccountInclude | null - /** - * The data needed to update a AuthAccount. - */ - data: Prisma.XOR - /** - * Choose, which AuthAccount to update. - */ - where: Prisma.AuthAccountWhereUniqueInput -} - -/** - * AuthAccount updateMany - */ -export type AuthAccountUpdateManyArgs = { - /** - * The data used to update AuthAccounts. - */ - data: Prisma.XOR - /** - * Filter which AuthAccounts to update - */ - where?: Prisma.AuthAccountWhereInput - /** - * Limit how many AuthAccounts to update. - */ - limit?: number -} - -/** - * AuthAccount updateManyAndReturn - */ -export type AuthAccountUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the AuthAccount - */ - select?: Prisma.AuthAccountSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the AuthAccount - */ - omit?: Prisma.AuthAccountOmit | null - /** - * The data used to update AuthAccounts. - */ - data: Prisma.XOR - /** - * Filter which AuthAccounts to update - */ - where?: Prisma.AuthAccountWhereInput - /** - * Limit how many AuthAccounts to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthAccountIncludeUpdateManyAndReturn | null -} - -/** - * AuthAccount upsert - */ -export type AuthAccountUpsertArgs = { - /** - * Select specific fields to fetch from the AuthAccount - */ - select?: Prisma.AuthAccountSelect | null - /** - * Omit specific fields from the AuthAccount - */ - omit?: Prisma.AuthAccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthAccountInclude | null - /** - * The filter to search for the AuthAccount to update in case it exists. - */ - where: Prisma.AuthAccountWhereUniqueInput - /** - * In case the AuthAccount found by the `where` argument doesn't exist, create a new AuthAccount with this data. - */ - create: Prisma.XOR - /** - * In case the AuthAccount was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * AuthAccount delete - */ -export type AuthAccountDeleteArgs = { - /** - * Select specific fields to fetch from the AuthAccount - */ - select?: Prisma.AuthAccountSelect | null - /** - * Omit specific fields from the AuthAccount - */ - omit?: Prisma.AuthAccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthAccountInclude | null - /** - * Filter which AuthAccount to delete. - */ - where: Prisma.AuthAccountWhereUniqueInput -} - -/** - * AuthAccount deleteMany - */ -export type AuthAccountDeleteManyArgs = { - /** - * Filter which AuthAccounts to delete - */ - where?: Prisma.AuthAccountWhereInput - /** - * Limit how many AuthAccounts to delete. - */ - limit?: number -} - -/** - * AuthAccount without action - */ -export type AuthAccountDefaultArgs = { - /** - * Select specific fields to fetch from the AuthAccount - */ - select?: Prisma.AuthAccountSelect | null - /** - * Omit specific fields from the AuthAccount - */ - omit?: Prisma.AuthAccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthAccountInclude | null -} diff --git a/src/generated/prisma/models/AuthInvite.ts b/src/generated/prisma/models/AuthInvite.ts deleted file mode 100644 index 9e9a933..0000000 --- a/src/generated/prisma/models/AuthInvite.ts +++ /dev/null @@ -1,1672 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `AuthInvite` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model AuthInvite - * - */ -export type AuthInviteModel = runtime.Types.Result.DefaultSelection - -export type AggregateAuthInvite = { - _count: AuthInviteCountAggregateOutputType | null - _min: AuthInviteMinAggregateOutputType | null - _max: AuthInviteMaxAggregateOutputType | null -} - -export type AuthInviteMinAggregateOutputType = { - id: string | null - email: string | null - name: string | null - role: string | null - tenantId: string | null - token: string | null - status: string | null - expiresAt: Date | null - createdAt: Date | null - updatedAt: Date | null - createdById: string | null - acceptedAt: Date | null - acceptedById: string | null - revokedAt: Date | null - revokedById: string | null - revokedReason: string | null -} - -export type AuthInviteMaxAggregateOutputType = { - id: string | null - email: string | null - name: string | null - role: string | null - tenantId: string | null - token: string | null - status: string | null - expiresAt: Date | null - createdAt: Date | null - updatedAt: Date | null - createdById: string | null - acceptedAt: Date | null - acceptedById: string | null - revokedAt: Date | null - revokedById: string | null - revokedReason: string | null -} - -export type AuthInviteCountAggregateOutputType = { - id: number - email: number - name: number - role: number - tenantId: number - token: number - status: number - expiresAt: number - createdAt: number - updatedAt: number - createdById: number - acceptedAt: number - acceptedById: number - revokedAt: number - revokedById: number - revokedReason: number - _all: number -} - - -export type AuthInviteMinAggregateInputType = { - id?: true - email?: true - name?: true - role?: true - tenantId?: true - token?: true - status?: true - expiresAt?: true - createdAt?: true - updatedAt?: true - createdById?: true - acceptedAt?: true - acceptedById?: true - revokedAt?: true - revokedById?: true - revokedReason?: true -} - -export type AuthInviteMaxAggregateInputType = { - id?: true - email?: true - name?: true - role?: true - tenantId?: true - token?: true - status?: true - expiresAt?: true - createdAt?: true - updatedAt?: true - createdById?: true - acceptedAt?: true - acceptedById?: true - revokedAt?: true - revokedById?: true - revokedReason?: true -} - -export type AuthInviteCountAggregateInputType = { - id?: true - email?: true - name?: true - role?: true - tenantId?: true - token?: true - status?: true - expiresAt?: true - createdAt?: true - updatedAt?: true - createdById?: true - acceptedAt?: true - acceptedById?: true - revokedAt?: true - revokedById?: true - revokedReason?: true - _all?: true -} - -export type AuthInviteAggregateArgs = { - /** - * Filter which AuthInvite to aggregate. - */ - where?: Prisma.AuthInviteWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthInvites to fetch. - */ - orderBy?: Prisma.AuthInviteOrderByWithRelationInput | Prisma.AuthInviteOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.AuthInviteWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthInvites from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthInvites. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned AuthInvites - **/ - _count?: true | AuthInviteCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: AuthInviteMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: AuthInviteMaxAggregateInputType -} - -export type GetAuthInviteAggregateType = { - [P in keyof T & keyof AggregateAuthInvite]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type AuthInviteGroupByArgs = { - where?: Prisma.AuthInviteWhereInput - orderBy?: Prisma.AuthInviteOrderByWithAggregationInput | Prisma.AuthInviteOrderByWithAggregationInput[] - by: Prisma.AuthInviteScalarFieldEnum[] | Prisma.AuthInviteScalarFieldEnum - having?: Prisma.AuthInviteScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: AuthInviteCountAggregateInputType | true - _min?: AuthInviteMinAggregateInputType - _max?: AuthInviteMaxAggregateInputType -} - -export type AuthInviteGroupByOutputType = { - id: string - email: string - name: string | null - role: string - tenantId: string - token: string - status: string - expiresAt: Date - createdAt: Date - updatedAt: Date - createdById: string | null - acceptedAt: Date | null - acceptedById: string | null - revokedAt: Date | null - revokedById: string | null - revokedReason: string | null - _count: AuthInviteCountAggregateOutputType | null - _min: AuthInviteMinAggregateOutputType | null - _max: AuthInviteMaxAggregateOutputType | null -} - -type GetAuthInviteGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof AuthInviteGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type AuthInviteWhereInput = { - AND?: Prisma.AuthInviteWhereInput | Prisma.AuthInviteWhereInput[] - OR?: Prisma.AuthInviteWhereInput[] - NOT?: Prisma.AuthInviteWhereInput | Prisma.AuthInviteWhereInput[] - id?: Prisma.StringFilter<"AuthInvite"> | string - email?: Prisma.StringFilter<"AuthInvite"> | string - name?: Prisma.StringNullableFilter<"AuthInvite"> | string | null - role?: Prisma.StringFilter<"AuthInvite"> | string - tenantId?: Prisma.StringFilter<"AuthInvite"> | string - token?: Prisma.StringFilter<"AuthInvite"> | string - status?: Prisma.StringFilter<"AuthInvite"> | string - expiresAt?: Prisma.DateTimeFilter<"AuthInvite"> | Date | string - createdAt?: Prisma.DateTimeFilter<"AuthInvite"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"AuthInvite"> | Date | string - createdById?: Prisma.StringNullableFilter<"AuthInvite"> | string | null - acceptedAt?: Prisma.DateTimeNullableFilter<"AuthInvite"> | Date | string | null - acceptedById?: Prisma.StringNullableFilter<"AuthInvite"> | string | null - revokedAt?: Prisma.DateTimeNullableFilter<"AuthInvite"> | Date | string | null - revokedById?: Prisma.StringNullableFilter<"AuthInvite"> | string | null - revokedReason?: Prisma.StringNullableFilter<"AuthInvite"> | string | null - events?: Prisma.AuthInviteEventListRelationFilter -} - -export type AuthInviteOrderByWithRelationInput = { - id?: Prisma.SortOrder - email?: Prisma.SortOrder - name?: Prisma.SortOrderInput | Prisma.SortOrder - role?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - token?: Prisma.SortOrder - status?: Prisma.SortOrder - expiresAt?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - createdById?: Prisma.SortOrderInput | Prisma.SortOrder - acceptedAt?: Prisma.SortOrderInput | Prisma.SortOrder - acceptedById?: Prisma.SortOrderInput | Prisma.SortOrder - revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder - revokedById?: Prisma.SortOrderInput | Prisma.SortOrder - revokedReason?: Prisma.SortOrderInput | Prisma.SortOrder - events?: Prisma.AuthInviteEventOrderByRelationAggregateInput -} - -export type AuthInviteWhereUniqueInput = Prisma.AtLeast<{ - id?: string - token?: string - AND?: Prisma.AuthInviteWhereInput | Prisma.AuthInviteWhereInput[] - OR?: Prisma.AuthInviteWhereInput[] - NOT?: Prisma.AuthInviteWhereInput | Prisma.AuthInviteWhereInput[] - email?: Prisma.StringFilter<"AuthInvite"> | string - name?: Prisma.StringNullableFilter<"AuthInvite"> | string | null - role?: Prisma.StringFilter<"AuthInvite"> | string - tenantId?: Prisma.StringFilter<"AuthInvite"> | string - status?: Prisma.StringFilter<"AuthInvite"> | string - expiresAt?: Prisma.DateTimeFilter<"AuthInvite"> | Date | string - createdAt?: Prisma.DateTimeFilter<"AuthInvite"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"AuthInvite"> | Date | string - createdById?: Prisma.StringNullableFilter<"AuthInvite"> | string | null - acceptedAt?: Prisma.DateTimeNullableFilter<"AuthInvite"> | Date | string | null - acceptedById?: Prisma.StringNullableFilter<"AuthInvite"> | string | null - revokedAt?: Prisma.DateTimeNullableFilter<"AuthInvite"> | Date | string | null - revokedById?: Prisma.StringNullableFilter<"AuthInvite"> | string | null - revokedReason?: Prisma.StringNullableFilter<"AuthInvite"> | string | null - events?: Prisma.AuthInviteEventListRelationFilter -}, "id" | "token"> - -export type AuthInviteOrderByWithAggregationInput = { - id?: Prisma.SortOrder - email?: Prisma.SortOrder - name?: Prisma.SortOrderInput | Prisma.SortOrder - role?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - token?: Prisma.SortOrder - status?: Prisma.SortOrder - expiresAt?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - createdById?: Prisma.SortOrderInput | Prisma.SortOrder - acceptedAt?: Prisma.SortOrderInput | Prisma.SortOrder - acceptedById?: Prisma.SortOrderInput | Prisma.SortOrder - revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder - revokedById?: Prisma.SortOrderInput | Prisma.SortOrder - revokedReason?: Prisma.SortOrderInput | Prisma.SortOrder - _count?: Prisma.AuthInviteCountOrderByAggregateInput - _max?: Prisma.AuthInviteMaxOrderByAggregateInput - _min?: Prisma.AuthInviteMinOrderByAggregateInput -} - -export type AuthInviteScalarWhereWithAggregatesInput = { - AND?: Prisma.AuthInviteScalarWhereWithAggregatesInput | Prisma.AuthInviteScalarWhereWithAggregatesInput[] - OR?: Prisma.AuthInviteScalarWhereWithAggregatesInput[] - NOT?: Prisma.AuthInviteScalarWhereWithAggregatesInput | Prisma.AuthInviteScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"AuthInvite"> | string - email?: Prisma.StringWithAggregatesFilter<"AuthInvite"> | string - name?: Prisma.StringNullableWithAggregatesFilter<"AuthInvite"> | string | null - role?: Prisma.StringWithAggregatesFilter<"AuthInvite"> | string - tenantId?: Prisma.StringWithAggregatesFilter<"AuthInvite"> | string - token?: Prisma.StringWithAggregatesFilter<"AuthInvite"> | string - status?: Prisma.StringWithAggregatesFilter<"AuthInvite"> | string - expiresAt?: Prisma.DateTimeWithAggregatesFilter<"AuthInvite"> | Date | string - createdAt?: Prisma.DateTimeWithAggregatesFilter<"AuthInvite"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AuthInvite"> | Date | string - createdById?: Prisma.StringNullableWithAggregatesFilter<"AuthInvite"> | string | null - acceptedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AuthInvite"> | Date | string | null - acceptedById?: Prisma.StringNullableWithAggregatesFilter<"AuthInvite"> | string | null - revokedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AuthInvite"> | Date | string | null - revokedById?: Prisma.StringNullableWithAggregatesFilter<"AuthInvite"> | string | null - revokedReason?: Prisma.StringNullableWithAggregatesFilter<"AuthInvite"> | string | null -} - -export type AuthInviteCreateInput = { - id?: string - email: string - name?: string | null - role?: string - tenantId: string - token: string - status?: string - expiresAt: Date | string - createdAt?: Date | string - updatedAt?: Date | string - createdById?: string | null - acceptedAt?: Date | string | null - acceptedById?: string | null - revokedAt?: Date | string | null - revokedById?: string | null - revokedReason?: string | null - events?: Prisma.AuthInviteEventCreateNestedManyWithoutInviteInput -} - -export type AuthInviteUncheckedCreateInput = { - id?: string - email: string - name?: string | null - role?: string - tenantId: string - token: string - status?: string - expiresAt: Date | string - createdAt?: Date | string - updatedAt?: Date | string - createdById?: string | null - acceptedAt?: Date | string | null - acceptedById?: string | null - revokedAt?: Date | string | null - revokedById?: string | null - revokedReason?: string | null - events?: Prisma.AuthInviteEventUncheckedCreateNestedManyWithoutInviteInput -} - -export type AuthInviteUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - acceptedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - revokedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - revokedReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - events?: Prisma.AuthInviteEventUpdateManyWithoutInviteNestedInput -} - -export type AuthInviteUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - acceptedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - revokedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - revokedReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - events?: Prisma.AuthInviteEventUncheckedUpdateManyWithoutInviteNestedInput -} - -export type AuthInviteCreateManyInput = { - id?: string - email: string - name?: string | null - role?: string - tenantId: string - token: string - status?: string - expiresAt: Date | string - createdAt?: Date | string - updatedAt?: Date | string - createdById?: string | null - acceptedAt?: Date | string | null - acceptedById?: string | null - revokedAt?: Date | string | null - revokedById?: string | null - revokedReason?: string | null -} - -export type AuthInviteUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - acceptedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - revokedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - revokedReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - -export type AuthInviteUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - acceptedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - revokedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - revokedReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - -export type AuthInviteCountOrderByAggregateInput = { - id?: Prisma.SortOrder - email?: Prisma.SortOrder - name?: Prisma.SortOrder - role?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - token?: Prisma.SortOrder - status?: Prisma.SortOrder - expiresAt?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - createdById?: Prisma.SortOrder - acceptedAt?: Prisma.SortOrder - acceptedById?: Prisma.SortOrder - revokedAt?: Prisma.SortOrder - revokedById?: Prisma.SortOrder - revokedReason?: Prisma.SortOrder -} - -export type AuthInviteMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - email?: Prisma.SortOrder - name?: Prisma.SortOrder - role?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - token?: Prisma.SortOrder - status?: Prisma.SortOrder - expiresAt?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - createdById?: Prisma.SortOrder - acceptedAt?: Prisma.SortOrder - acceptedById?: Prisma.SortOrder - revokedAt?: Prisma.SortOrder - revokedById?: Prisma.SortOrder - revokedReason?: Prisma.SortOrder -} - -export type AuthInviteMinOrderByAggregateInput = { - id?: Prisma.SortOrder - email?: Prisma.SortOrder - name?: Prisma.SortOrder - role?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - token?: Prisma.SortOrder - status?: Prisma.SortOrder - expiresAt?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - createdById?: Prisma.SortOrder - acceptedAt?: Prisma.SortOrder - acceptedById?: Prisma.SortOrder - revokedAt?: Prisma.SortOrder - revokedById?: Prisma.SortOrder - revokedReason?: Prisma.SortOrder -} - -export type AuthInviteScalarRelationFilter = { - is?: Prisma.AuthInviteWhereInput - isNot?: Prisma.AuthInviteWhereInput -} - -export type AuthInviteCreateNestedOneWithoutEventsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.AuthInviteCreateOrConnectWithoutEventsInput - connect?: Prisma.AuthInviteWhereUniqueInput -} - -export type AuthInviteUpdateOneRequiredWithoutEventsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.AuthInviteCreateOrConnectWithoutEventsInput - upsert?: Prisma.AuthInviteUpsertWithoutEventsInput - connect?: Prisma.AuthInviteWhereUniqueInput - update?: Prisma.XOR, Prisma.AuthInviteUncheckedUpdateWithoutEventsInput> -} - -export type AuthInviteCreateWithoutEventsInput = { - id?: string - email: string - name?: string | null - role?: string - tenantId: string - token: string - status?: string - expiresAt: Date | string - createdAt?: Date | string - updatedAt?: Date | string - createdById?: string | null - acceptedAt?: Date | string | null - acceptedById?: string | null - revokedAt?: Date | string | null - revokedById?: string | null - revokedReason?: string | null -} - -export type AuthInviteUncheckedCreateWithoutEventsInput = { - id?: string - email: string - name?: string | null - role?: string - tenantId: string - token: string - status?: string - expiresAt: Date | string - createdAt?: Date | string - updatedAt?: Date | string - createdById?: string | null - acceptedAt?: Date | string | null - acceptedById?: string | null - revokedAt?: Date | string | null - revokedById?: string | null - revokedReason?: string | null -} - -export type AuthInviteCreateOrConnectWithoutEventsInput = { - where: Prisma.AuthInviteWhereUniqueInput - create: Prisma.XOR -} - -export type AuthInviteUpsertWithoutEventsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.AuthInviteWhereInput -} - -export type AuthInviteUpdateToOneWithWhereWithoutEventsInput = { - where?: Prisma.AuthInviteWhereInput - data: Prisma.XOR -} - -export type AuthInviteUpdateWithoutEventsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - acceptedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - revokedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - revokedReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - -export type AuthInviteUncheckedUpdateWithoutEventsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - acceptedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - revokedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - revokedReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - - -/** - * Count Type AuthInviteCountOutputType - */ - -export type AuthInviteCountOutputType = { - events: number -} - -export type AuthInviteCountOutputTypeSelect = { - events?: boolean | AuthInviteCountOutputTypeCountEventsArgs -} - -/** - * AuthInviteCountOutputType without action - */ -export type AuthInviteCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the AuthInviteCountOutputType - */ - select?: Prisma.AuthInviteCountOutputTypeSelect | null -} - -/** - * AuthInviteCountOutputType without action - */ -export type AuthInviteCountOutputTypeCountEventsArgs = { - where?: Prisma.AuthInviteEventWhereInput -} - - -export type AuthInviteSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - email?: boolean - name?: boolean - role?: boolean - tenantId?: boolean - token?: boolean - status?: boolean - expiresAt?: boolean - createdAt?: boolean - updatedAt?: boolean - createdById?: boolean - acceptedAt?: boolean - acceptedById?: boolean - revokedAt?: boolean - revokedById?: boolean - revokedReason?: boolean - events?: boolean | Prisma.AuthInvite$eventsArgs - _count?: boolean | Prisma.AuthInviteCountOutputTypeDefaultArgs -}, ExtArgs["result"]["authInvite"]> - -export type AuthInviteSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - email?: boolean - name?: boolean - role?: boolean - tenantId?: boolean - token?: boolean - status?: boolean - expiresAt?: boolean - createdAt?: boolean - updatedAt?: boolean - createdById?: boolean - acceptedAt?: boolean - acceptedById?: boolean - revokedAt?: boolean - revokedById?: boolean - revokedReason?: boolean -}, ExtArgs["result"]["authInvite"]> - -export type AuthInviteSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - email?: boolean - name?: boolean - role?: boolean - tenantId?: boolean - token?: boolean - status?: boolean - expiresAt?: boolean - createdAt?: boolean - updatedAt?: boolean - createdById?: boolean - acceptedAt?: boolean - acceptedById?: boolean - revokedAt?: boolean - revokedById?: boolean - revokedReason?: boolean -}, ExtArgs["result"]["authInvite"]> - -export type AuthInviteSelectScalar = { - id?: boolean - email?: boolean - name?: boolean - role?: boolean - tenantId?: boolean - token?: boolean - status?: boolean - expiresAt?: boolean - createdAt?: boolean - updatedAt?: boolean - createdById?: boolean - acceptedAt?: boolean - acceptedById?: boolean - revokedAt?: boolean - revokedById?: boolean - revokedReason?: boolean -} - -export type AuthInviteOmit = runtime.Types.Extensions.GetOmit<"id" | "email" | "name" | "role" | "tenantId" | "token" | "status" | "expiresAt" | "createdAt" | "updatedAt" | "createdById" | "acceptedAt" | "acceptedById" | "revokedAt" | "revokedById" | "revokedReason", ExtArgs["result"]["authInvite"]> -export type AuthInviteInclude = { - events?: boolean | Prisma.AuthInvite$eventsArgs - _count?: boolean | Prisma.AuthInviteCountOutputTypeDefaultArgs -} -export type AuthInviteIncludeCreateManyAndReturn = {} -export type AuthInviteIncludeUpdateManyAndReturn = {} - -export type $AuthInvitePayload = { - name: "AuthInvite" - objects: { - events: Prisma.$AuthInviteEventPayload[] - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - email: string - name: string | null - role: string - tenantId: string - token: string - status: string - expiresAt: Date - createdAt: Date - updatedAt: Date - createdById: string | null - acceptedAt: Date | null - acceptedById: string | null - revokedAt: Date | null - revokedById: string | null - revokedReason: string | null - }, ExtArgs["result"]["authInvite"]> - composites: {} -} - -export type AuthInviteGetPayload = runtime.Types.Result.GetResult - -export type AuthInviteCountArgs = - Omit & { - select?: AuthInviteCountAggregateInputType | true - } - -export interface AuthInviteDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['AuthInvite'], meta: { name: 'AuthInvite' } } - /** - * Find zero or one AuthInvite that matches the filter. - * @param {AuthInviteFindUniqueArgs} args - Arguments to find a AuthInvite - * @example - * // Get one AuthInvite - * const authInvite = await prisma.authInvite.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AuthInviteClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one AuthInvite that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {AuthInviteFindUniqueOrThrowArgs} args - Arguments to find a AuthInvite - * @example - * // Get one AuthInvite - * const authInvite = await prisma.authInvite.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AuthInviteClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first AuthInvite that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthInviteFindFirstArgs} args - Arguments to find a AuthInvite - * @example - * // Get one AuthInvite - * const authInvite = await prisma.authInvite.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AuthInviteClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first AuthInvite that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthInviteFindFirstOrThrowArgs} args - Arguments to find a AuthInvite - * @example - * // Get one AuthInvite - * const authInvite = await prisma.authInvite.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AuthInviteClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more AuthInvites that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthInviteFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all AuthInvites - * const authInvites = await prisma.authInvite.findMany() - * - * // Get first 10 AuthInvites - * const authInvites = await prisma.authInvite.findMany({ take: 10 }) - * - * // Only select the `id` - * const authInviteWithIdOnly = await prisma.authInvite.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a AuthInvite. - * @param {AuthInviteCreateArgs} args - Arguments to create a AuthInvite. - * @example - * // Create one AuthInvite - * const AuthInvite = await prisma.authInvite.create({ - * data: { - * // ... data to create a AuthInvite - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__AuthInviteClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many AuthInvites. - * @param {AuthInviteCreateManyArgs} args - Arguments to create many AuthInvites. - * @example - * // Create many AuthInvites - * const authInvite = await prisma.authInvite.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many AuthInvites and returns the data saved in the database. - * @param {AuthInviteCreateManyAndReturnArgs} args - Arguments to create many AuthInvites. - * @example - * // Create many AuthInvites - * const authInvite = await prisma.authInvite.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many AuthInvites and only return the `id` - * const authInviteWithIdOnly = await prisma.authInvite.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a AuthInvite. - * @param {AuthInviteDeleteArgs} args - Arguments to delete one AuthInvite. - * @example - * // Delete one AuthInvite - * const AuthInvite = await prisma.authInvite.delete({ - * where: { - * // ... filter to delete one AuthInvite - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__AuthInviteClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one AuthInvite. - * @param {AuthInviteUpdateArgs} args - Arguments to update one AuthInvite. - * @example - * // Update one AuthInvite - * const authInvite = await prisma.authInvite.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__AuthInviteClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more AuthInvites. - * @param {AuthInviteDeleteManyArgs} args - Arguments to filter AuthInvites to delete. - * @example - * // Delete a few AuthInvites - * const { count } = await prisma.authInvite.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more AuthInvites. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthInviteUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many AuthInvites - * const authInvite = await prisma.authInvite.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more AuthInvites and returns the data updated in the database. - * @param {AuthInviteUpdateManyAndReturnArgs} args - Arguments to update many AuthInvites. - * @example - * // Update many AuthInvites - * const authInvite = await prisma.authInvite.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more AuthInvites and only return the `id` - * const authInviteWithIdOnly = await prisma.authInvite.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one AuthInvite. - * @param {AuthInviteUpsertArgs} args - Arguments to update or create a AuthInvite. - * @example - * // Update or create a AuthInvite - * const authInvite = await prisma.authInvite.upsert({ - * create: { - * // ... data to create a AuthInvite - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the AuthInvite we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AuthInviteClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of AuthInvites. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthInviteCountArgs} args - Arguments to filter AuthInvites to count. - * @example - * // Count the number of AuthInvites - * const count = await prisma.authInvite.count({ - * where: { - * // ... the filter for the AuthInvites we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a AuthInvite. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthInviteAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by AuthInvite. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthInviteGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends AuthInviteGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: AuthInviteGroupByArgs['orderBy'] } - : { orderBy?: AuthInviteGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetAuthInviteGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the AuthInvite model - */ -readonly fields: AuthInviteFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for AuthInvite. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__AuthInviteClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - events = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the AuthInvite model - */ -export interface AuthInviteFieldRefs { - readonly id: Prisma.FieldRef<"AuthInvite", 'String'> - readonly email: Prisma.FieldRef<"AuthInvite", 'String'> - readonly name: Prisma.FieldRef<"AuthInvite", 'String'> - readonly role: Prisma.FieldRef<"AuthInvite", 'String'> - readonly tenantId: Prisma.FieldRef<"AuthInvite", 'String'> - readonly token: Prisma.FieldRef<"AuthInvite", 'String'> - readonly status: Prisma.FieldRef<"AuthInvite", 'String'> - readonly expiresAt: Prisma.FieldRef<"AuthInvite", 'DateTime'> - readonly createdAt: Prisma.FieldRef<"AuthInvite", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"AuthInvite", 'DateTime'> - readonly createdById: Prisma.FieldRef<"AuthInvite", 'String'> - readonly acceptedAt: Prisma.FieldRef<"AuthInvite", 'DateTime'> - readonly acceptedById: Prisma.FieldRef<"AuthInvite", 'String'> - readonly revokedAt: Prisma.FieldRef<"AuthInvite", 'DateTime'> - readonly revokedById: Prisma.FieldRef<"AuthInvite", 'String'> - readonly revokedReason: Prisma.FieldRef<"AuthInvite", 'String'> -} - - -// Custom InputTypes -/** - * AuthInvite findUnique - */ -export type AuthInviteFindUniqueArgs = { - /** - * Select specific fields to fetch from the AuthInvite - */ - select?: Prisma.AuthInviteSelect | null - /** - * Omit specific fields from the AuthInvite - */ - omit?: Prisma.AuthInviteOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteInclude | null - /** - * Filter, which AuthInvite to fetch. - */ - where: Prisma.AuthInviteWhereUniqueInput -} - -/** - * AuthInvite findUniqueOrThrow - */ -export type AuthInviteFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the AuthInvite - */ - select?: Prisma.AuthInviteSelect | null - /** - * Omit specific fields from the AuthInvite - */ - omit?: Prisma.AuthInviteOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteInclude | null - /** - * Filter, which AuthInvite to fetch. - */ - where: Prisma.AuthInviteWhereUniqueInput -} - -/** - * AuthInvite findFirst - */ -export type AuthInviteFindFirstArgs = { - /** - * Select specific fields to fetch from the AuthInvite - */ - select?: Prisma.AuthInviteSelect | null - /** - * Omit specific fields from the AuthInvite - */ - omit?: Prisma.AuthInviteOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteInclude | null - /** - * Filter, which AuthInvite to fetch. - */ - where?: Prisma.AuthInviteWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthInvites to fetch. - */ - orderBy?: Prisma.AuthInviteOrderByWithRelationInput | Prisma.AuthInviteOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for AuthInvites. - */ - cursor?: Prisma.AuthInviteWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthInvites from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthInvites. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of AuthInvites. - */ - distinct?: Prisma.AuthInviteScalarFieldEnum | Prisma.AuthInviteScalarFieldEnum[] -} - -/** - * AuthInvite findFirstOrThrow - */ -export type AuthInviteFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the AuthInvite - */ - select?: Prisma.AuthInviteSelect | null - /** - * Omit specific fields from the AuthInvite - */ - omit?: Prisma.AuthInviteOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteInclude | null - /** - * Filter, which AuthInvite to fetch. - */ - where?: Prisma.AuthInviteWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthInvites to fetch. - */ - orderBy?: Prisma.AuthInviteOrderByWithRelationInput | Prisma.AuthInviteOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for AuthInvites. - */ - cursor?: Prisma.AuthInviteWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthInvites from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthInvites. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of AuthInvites. - */ - distinct?: Prisma.AuthInviteScalarFieldEnum | Prisma.AuthInviteScalarFieldEnum[] -} - -/** - * AuthInvite findMany - */ -export type AuthInviteFindManyArgs = { - /** - * Select specific fields to fetch from the AuthInvite - */ - select?: Prisma.AuthInviteSelect | null - /** - * Omit specific fields from the AuthInvite - */ - omit?: Prisma.AuthInviteOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteInclude | null - /** - * Filter, which AuthInvites to fetch. - */ - where?: Prisma.AuthInviteWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthInvites to fetch. - */ - orderBy?: Prisma.AuthInviteOrderByWithRelationInput | Prisma.AuthInviteOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing AuthInvites. - */ - cursor?: Prisma.AuthInviteWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthInvites from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthInvites. - */ - skip?: number - distinct?: Prisma.AuthInviteScalarFieldEnum | Prisma.AuthInviteScalarFieldEnum[] -} - -/** - * AuthInvite create - */ -export type AuthInviteCreateArgs = { - /** - * Select specific fields to fetch from the AuthInvite - */ - select?: Prisma.AuthInviteSelect | null - /** - * Omit specific fields from the AuthInvite - */ - omit?: Prisma.AuthInviteOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteInclude | null - /** - * The data needed to create a AuthInvite. - */ - data: Prisma.XOR -} - -/** - * AuthInvite createMany - */ -export type AuthInviteCreateManyArgs = { - /** - * The data used to create many AuthInvites. - */ - data: Prisma.AuthInviteCreateManyInput | Prisma.AuthInviteCreateManyInput[] -} - -/** - * AuthInvite createManyAndReturn - */ -export type AuthInviteCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the AuthInvite - */ - select?: Prisma.AuthInviteSelectCreateManyAndReturn | null - /** - * Omit specific fields from the AuthInvite - */ - omit?: Prisma.AuthInviteOmit | null - /** - * The data used to create many AuthInvites. - */ - data: Prisma.AuthInviteCreateManyInput | Prisma.AuthInviteCreateManyInput[] -} - -/** - * AuthInvite update - */ -export type AuthInviteUpdateArgs = { - /** - * Select specific fields to fetch from the AuthInvite - */ - select?: Prisma.AuthInviteSelect | null - /** - * Omit specific fields from the AuthInvite - */ - omit?: Prisma.AuthInviteOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteInclude | null - /** - * The data needed to update a AuthInvite. - */ - data: Prisma.XOR - /** - * Choose, which AuthInvite to update. - */ - where: Prisma.AuthInviteWhereUniqueInput -} - -/** - * AuthInvite updateMany - */ -export type AuthInviteUpdateManyArgs = { - /** - * The data used to update AuthInvites. - */ - data: Prisma.XOR - /** - * Filter which AuthInvites to update - */ - where?: Prisma.AuthInviteWhereInput - /** - * Limit how many AuthInvites to update. - */ - limit?: number -} - -/** - * AuthInvite updateManyAndReturn - */ -export type AuthInviteUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the AuthInvite - */ - select?: Prisma.AuthInviteSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the AuthInvite - */ - omit?: Prisma.AuthInviteOmit | null - /** - * The data used to update AuthInvites. - */ - data: Prisma.XOR - /** - * Filter which AuthInvites to update - */ - where?: Prisma.AuthInviteWhereInput - /** - * Limit how many AuthInvites to update. - */ - limit?: number -} - -/** - * AuthInvite upsert - */ -export type AuthInviteUpsertArgs = { - /** - * Select specific fields to fetch from the AuthInvite - */ - select?: Prisma.AuthInviteSelect | null - /** - * Omit specific fields from the AuthInvite - */ - omit?: Prisma.AuthInviteOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteInclude | null - /** - * The filter to search for the AuthInvite to update in case it exists. - */ - where: Prisma.AuthInviteWhereUniqueInput - /** - * In case the AuthInvite found by the `where` argument doesn't exist, create a new AuthInvite with this data. - */ - create: Prisma.XOR - /** - * In case the AuthInvite was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * AuthInvite delete - */ -export type AuthInviteDeleteArgs = { - /** - * Select specific fields to fetch from the AuthInvite - */ - select?: Prisma.AuthInviteSelect | null - /** - * Omit specific fields from the AuthInvite - */ - omit?: Prisma.AuthInviteOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteInclude | null - /** - * Filter which AuthInvite to delete. - */ - where: Prisma.AuthInviteWhereUniqueInput -} - -/** - * AuthInvite deleteMany - */ -export type AuthInviteDeleteManyArgs = { - /** - * Filter which AuthInvites to delete - */ - where?: Prisma.AuthInviteWhereInput - /** - * Limit how many AuthInvites to delete. - */ - limit?: number -} - -/** - * AuthInvite.events - */ -export type AuthInvite$eventsArgs = { - /** - * Select specific fields to fetch from the AuthInviteEvent - */ - select?: Prisma.AuthInviteEventSelect | null - /** - * Omit specific fields from the AuthInviteEvent - */ - omit?: Prisma.AuthInviteEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteEventInclude | null - where?: Prisma.AuthInviteEventWhereInput - orderBy?: Prisma.AuthInviteEventOrderByWithRelationInput | Prisma.AuthInviteEventOrderByWithRelationInput[] - cursor?: Prisma.AuthInviteEventWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.AuthInviteEventScalarFieldEnum | Prisma.AuthInviteEventScalarFieldEnum[] -} - -/** - * AuthInvite without action - */ -export type AuthInviteDefaultArgs = { - /** - * Select specific fields to fetch from the AuthInvite - */ - select?: Prisma.AuthInviteSelect | null - /** - * Omit specific fields from the AuthInvite - */ - omit?: Prisma.AuthInviteOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteInclude | null -} diff --git a/src/generated/prisma/models/AuthInviteEvent.ts b/src/generated/prisma/models/AuthInviteEvent.ts deleted file mode 100644 index 91c5c39..0000000 --- a/src/generated/prisma/models/AuthInviteEvent.ts +++ /dev/null @@ -1,1366 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `AuthInviteEvent` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model AuthInviteEvent - * - */ -export type AuthInviteEventModel = runtime.Types.Result.DefaultSelection - -export type AggregateAuthInviteEvent = { - _count: AuthInviteEventCountAggregateOutputType | null - _min: AuthInviteEventMinAggregateOutputType | null - _max: AuthInviteEventMaxAggregateOutputType | null -} - -export type AuthInviteEventMinAggregateOutputType = { - id: string | null - inviteId: string | null - type: string | null - actorId: string | null - createdAt: Date | null -} - -export type AuthInviteEventMaxAggregateOutputType = { - id: string | null - inviteId: string | null - type: string | null - actorId: string | null - createdAt: Date | null -} - -export type AuthInviteEventCountAggregateOutputType = { - id: number - inviteId: number - type: number - payload: number - actorId: number - createdAt: number - _all: number -} - - -export type AuthInviteEventMinAggregateInputType = { - id?: true - inviteId?: true - type?: true - actorId?: true - createdAt?: true -} - -export type AuthInviteEventMaxAggregateInputType = { - id?: true - inviteId?: true - type?: true - actorId?: true - createdAt?: true -} - -export type AuthInviteEventCountAggregateInputType = { - id?: true - inviteId?: true - type?: true - payload?: true - actorId?: true - createdAt?: true - _all?: true -} - -export type AuthInviteEventAggregateArgs = { - /** - * Filter which AuthInviteEvent to aggregate. - */ - where?: Prisma.AuthInviteEventWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthInviteEvents to fetch. - */ - orderBy?: Prisma.AuthInviteEventOrderByWithRelationInput | Prisma.AuthInviteEventOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.AuthInviteEventWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthInviteEvents from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthInviteEvents. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned AuthInviteEvents - **/ - _count?: true | AuthInviteEventCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: AuthInviteEventMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: AuthInviteEventMaxAggregateInputType -} - -export type GetAuthInviteEventAggregateType = { - [P in keyof T & keyof AggregateAuthInviteEvent]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type AuthInviteEventGroupByArgs = { - where?: Prisma.AuthInviteEventWhereInput - orderBy?: Prisma.AuthInviteEventOrderByWithAggregationInput | Prisma.AuthInviteEventOrderByWithAggregationInput[] - by: Prisma.AuthInviteEventScalarFieldEnum[] | Prisma.AuthInviteEventScalarFieldEnum - having?: Prisma.AuthInviteEventScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: AuthInviteEventCountAggregateInputType | true - _min?: AuthInviteEventMinAggregateInputType - _max?: AuthInviteEventMaxAggregateInputType -} - -export type AuthInviteEventGroupByOutputType = { - id: string - inviteId: string - type: string - payload: runtime.JsonValue | null - actorId: string | null - createdAt: Date - _count: AuthInviteEventCountAggregateOutputType | null - _min: AuthInviteEventMinAggregateOutputType | null - _max: AuthInviteEventMaxAggregateOutputType | null -} - -type GetAuthInviteEventGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof AuthInviteEventGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type AuthInviteEventWhereInput = { - AND?: Prisma.AuthInviteEventWhereInput | Prisma.AuthInviteEventWhereInput[] - OR?: Prisma.AuthInviteEventWhereInput[] - NOT?: Prisma.AuthInviteEventWhereInput | Prisma.AuthInviteEventWhereInput[] - id?: Prisma.StringFilter<"AuthInviteEvent"> | string - inviteId?: Prisma.StringFilter<"AuthInviteEvent"> | string - type?: Prisma.StringFilter<"AuthInviteEvent"> | string - payload?: Prisma.JsonNullableFilter<"AuthInviteEvent"> - actorId?: Prisma.StringNullableFilter<"AuthInviteEvent"> | string | null - createdAt?: Prisma.DateTimeFilter<"AuthInviteEvent"> | Date | string - invite?: Prisma.XOR -} - -export type AuthInviteEventOrderByWithRelationInput = { - id?: Prisma.SortOrder - inviteId?: Prisma.SortOrder - type?: Prisma.SortOrder - payload?: Prisma.SortOrderInput | Prisma.SortOrder - actorId?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - invite?: Prisma.AuthInviteOrderByWithRelationInput -} - -export type AuthInviteEventWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: Prisma.AuthInviteEventWhereInput | Prisma.AuthInviteEventWhereInput[] - OR?: Prisma.AuthInviteEventWhereInput[] - NOT?: Prisma.AuthInviteEventWhereInput | Prisma.AuthInviteEventWhereInput[] - inviteId?: Prisma.StringFilter<"AuthInviteEvent"> | string - type?: Prisma.StringFilter<"AuthInviteEvent"> | string - payload?: Prisma.JsonNullableFilter<"AuthInviteEvent"> - actorId?: Prisma.StringNullableFilter<"AuthInviteEvent"> | string | null - createdAt?: Prisma.DateTimeFilter<"AuthInviteEvent"> | Date | string - invite?: Prisma.XOR -}, "id"> - -export type AuthInviteEventOrderByWithAggregationInput = { - id?: Prisma.SortOrder - inviteId?: Prisma.SortOrder - type?: Prisma.SortOrder - payload?: Prisma.SortOrderInput | Prisma.SortOrder - actorId?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - _count?: Prisma.AuthInviteEventCountOrderByAggregateInput - _max?: Prisma.AuthInviteEventMaxOrderByAggregateInput - _min?: Prisma.AuthInviteEventMinOrderByAggregateInput -} - -export type AuthInviteEventScalarWhereWithAggregatesInput = { - AND?: Prisma.AuthInviteEventScalarWhereWithAggregatesInput | Prisma.AuthInviteEventScalarWhereWithAggregatesInput[] - OR?: Prisma.AuthInviteEventScalarWhereWithAggregatesInput[] - NOT?: Prisma.AuthInviteEventScalarWhereWithAggregatesInput | Prisma.AuthInviteEventScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"AuthInviteEvent"> | string - inviteId?: Prisma.StringWithAggregatesFilter<"AuthInviteEvent"> | string - type?: Prisma.StringWithAggregatesFilter<"AuthInviteEvent"> | string - payload?: Prisma.JsonNullableWithAggregatesFilter<"AuthInviteEvent"> - actorId?: Prisma.StringNullableWithAggregatesFilter<"AuthInviteEvent"> | string | null - createdAt?: Prisma.DateTimeWithAggregatesFilter<"AuthInviteEvent"> | Date | string -} - -export type AuthInviteEventCreateInput = { - id?: string - type: string - payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - actorId?: string | null - createdAt?: Date | string - invite: Prisma.AuthInviteCreateNestedOneWithoutEventsInput -} - -export type AuthInviteEventUncheckedCreateInput = { - id?: string - inviteId: string - type: string - payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - actorId?: string | null - createdAt?: Date | string -} - -export type AuthInviteEventUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - invite?: Prisma.AuthInviteUpdateOneRequiredWithoutEventsNestedInput -} - -export type AuthInviteEventUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - inviteId?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthInviteEventCreateManyInput = { - id?: string - inviteId: string - type: string - payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - actorId?: string | null - createdAt?: Date | string -} - -export type AuthInviteEventUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthInviteEventUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - inviteId?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthInviteEventListRelationFilter = { - every?: Prisma.AuthInviteEventWhereInput - some?: Prisma.AuthInviteEventWhereInput - none?: Prisma.AuthInviteEventWhereInput -} - -export type AuthInviteEventOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type AuthInviteEventCountOrderByAggregateInput = { - id?: Prisma.SortOrder - inviteId?: Prisma.SortOrder - type?: Prisma.SortOrder - payload?: Prisma.SortOrder - actorId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder -} - -export type AuthInviteEventMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - inviteId?: Prisma.SortOrder - type?: Prisma.SortOrder - actorId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder -} - -export type AuthInviteEventMinOrderByAggregateInput = { - id?: Prisma.SortOrder - inviteId?: Prisma.SortOrder - type?: Prisma.SortOrder - actorId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder -} - -export type AuthInviteEventCreateNestedManyWithoutInviteInput = { - create?: Prisma.XOR | Prisma.AuthInviteEventCreateWithoutInviteInput[] | Prisma.AuthInviteEventUncheckedCreateWithoutInviteInput[] - connectOrCreate?: Prisma.AuthInviteEventCreateOrConnectWithoutInviteInput | Prisma.AuthInviteEventCreateOrConnectWithoutInviteInput[] - createMany?: Prisma.AuthInviteEventCreateManyInviteInputEnvelope - connect?: Prisma.AuthInviteEventWhereUniqueInput | Prisma.AuthInviteEventWhereUniqueInput[] -} - -export type AuthInviteEventUncheckedCreateNestedManyWithoutInviteInput = { - create?: Prisma.XOR | Prisma.AuthInviteEventCreateWithoutInviteInput[] | Prisma.AuthInviteEventUncheckedCreateWithoutInviteInput[] - connectOrCreate?: Prisma.AuthInviteEventCreateOrConnectWithoutInviteInput | Prisma.AuthInviteEventCreateOrConnectWithoutInviteInput[] - createMany?: Prisma.AuthInviteEventCreateManyInviteInputEnvelope - connect?: Prisma.AuthInviteEventWhereUniqueInput | Prisma.AuthInviteEventWhereUniqueInput[] -} - -export type AuthInviteEventUpdateManyWithoutInviteNestedInput = { - create?: Prisma.XOR | Prisma.AuthInviteEventCreateWithoutInviteInput[] | Prisma.AuthInviteEventUncheckedCreateWithoutInviteInput[] - connectOrCreate?: Prisma.AuthInviteEventCreateOrConnectWithoutInviteInput | Prisma.AuthInviteEventCreateOrConnectWithoutInviteInput[] - upsert?: Prisma.AuthInviteEventUpsertWithWhereUniqueWithoutInviteInput | Prisma.AuthInviteEventUpsertWithWhereUniqueWithoutInviteInput[] - createMany?: Prisma.AuthInviteEventCreateManyInviteInputEnvelope - set?: Prisma.AuthInviteEventWhereUniqueInput | Prisma.AuthInviteEventWhereUniqueInput[] - disconnect?: Prisma.AuthInviteEventWhereUniqueInput | Prisma.AuthInviteEventWhereUniqueInput[] - delete?: Prisma.AuthInviteEventWhereUniqueInput | Prisma.AuthInviteEventWhereUniqueInput[] - connect?: Prisma.AuthInviteEventWhereUniqueInput | Prisma.AuthInviteEventWhereUniqueInput[] - update?: Prisma.AuthInviteEventUpdateWithWhereUniqueWithoutInviteInput | Prisma.AuthInviteEventUpdateWithWhereUniqueWithoutInviteInput[] - updateMany?: Prisma.AuthInviteEventUpdateManyWithWhereWithoutInviteInput | Prisma.AuthInviteEventUpdateManyWithWhereWithoutInviteInput[] - deleteMany?: Prisma.AuthInviteEventScalarWhereInput | Prisma.AuthInviteEventScalarWhereInput[] -} - -export type AuthInviteEventUncheckedUpdateManyWithoutInviteNestedInput = { - create?: Prisma.XOR | Prisma.AuthInviteEventCreateWithoutInviteInput[] | Prisma.AuthInviteEventUncheckedCreateWithoutInviteInput[] - connectOrCreate?: Prisma.AuthInviteEventCreateOrConnectWithoutInviteInput | Prisma.AuthInviteEventCreateOrConnectWithoutInviteInput[] - upsert?: Prisma.AuthInviteEventUpsertWithWhereUniqueWithoutInviteInput | Prisma.AuthInviteEventUpsertWithWhereUniqueWithoutInviteInput[] - createMany?: Prisma.AuthInviteEventCreateManyInviteInputEnvelope - set?: Prisma.AuthInviteEventWhereUniqueInput | Prisma.AuthInviteEventWhereUniqueInput[] - disconnect?: Prisma.AuthInviteEventWhereUniqueInput | Prisma.AuthInviteEventWhereUniqueInput[] - delete?: Prisma.AuthInviteEventWhereUniqueInput | Prisma.AuthInviteEventWhereUniqueInput[] - connect?: Prisma.AuthInviteEventWhereUniqueInput | Prisma.AuthInviteEventWhereUniqueInput[] - update?: Prisma.AuthInviteEventUpdateWithWhereUniqueWithoutInviteInput | Prisma.AuthInviteEventUpdateWithWhereUniqueWithoutInviteInput[] - updateMany?: Prisma.AuthInviteEventUpdateManyWithWhereWithoutInviteInput | Prisma.AuthInviteEventUpdateManyWithWhereWithoutInviteInput[] - deleteMany?: Prisma.AuthInviteEventScalarWhereInput | Prisma.AuthInviteEventScalarWhereInput[] -} - -export type AuthInviteEventCreateWithoutInviteInput = { - id?: string - type: string - payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - actorId?: string | null - createdAt?: Date | string -} - -export type AuthInviteEventUncheckedCreateWithoutInviteInput = { - id?: string - type: string - payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - actorId?: string | null - createdAt?: Date | string -} - -export type AuthInviteEventCreateOrConnectWithoutInviteInput = { - where: Prisma.AuthInviteEventWhereUniqueInput - create: Prisma.XOR -} - -export type AuthInviteEventCreateManyInviteInputEnvelope = { - data: Prisma.AuthInviteEventCreateManyInviteInput | Prisma.AuthInviteEventCreateManyInviteInput[] -} - -export type AuthInviteEventUpsertWithWhereUniqueWithoutInviteInput = { - where: Prisma.AuthInviteEventWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type AuthInviteEventUpdateWithWhereUniqueWithoutInviteInput = { - where: Prisma.AuthInviteEventWhereUniqueInput - data: Prisma.XOR -} - -export type AuthInviteEventUpdateManyWithWhereWithoutInviteInput = { - where: Prisma.AuthInviteEventScalarWhereInput - data: Prisma.XOR -} - -export type AuthInviteEventScalarWhereInput = { - AND?: Prisma.AuthInviteEventScalarWhereInput | Prisma.AuthInviteEventScalarWhereInput[] - OR?: Prisma.AuthInviteEventScalarWhereInput[] - NOT?: Prisma.AuthInviteEventScalarWhereInput | Prisma.AuthInviteEventScalarWhereInput[] - id?: Prisma.StringFilter<"AuthInviteEvent"> | string - inviteId?: Prisma.StringFilter<"AuthInviteEvent"> | string - type?: Prisma.StringFilter<"AuthInviteEvent"> | string - payload?: Prisma.JsonNullableFilter<"AuthInviteEvent"> - actorId?: Prisma.StringNullableFilter<"AuthInviteEvent"> | string | null - createdAt?: Prisma.DateTimeFilter<"AuthInviteEvent"> | Date | string -} - -export type AuthInviteEventCreateManyInviteInput = { - id?: string - type: string - payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - actorId?: string | null - createdAt?: Date | string -} - -export type AuthInviteEventUpdateWithoutInviteInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthInviteEventUncheckedUpdateWithoutInviteInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthInviteEventUncheckedUpdateManyWithoutInviteInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - - - -export type AuthInviteEventSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - inviteId?: boolean - type?: boolean - payload?: boolean - actorId?: boolean - createdAt?: boolean - invite?: boolean | Prisma.AuthInviteDefaultArgs -}, ExtArgs["result"]["authInviteEvent"]> - -export type AuthInviteEventSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - inviteId?: boolean - type?: boolean - payload?: boolean - actorId?: boolean - createdAt?: boolean - invite?: boolean | Prisma.AuthInviteDefaultArgs -}, ExtArgs["result"]["authInviteEvent"]> - -export type AuthInviteEventSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - inviteId?: boolean - type?: boolean - payload?: boolean - actorId?: boolean - createdAt?: boolean - invite?: boolean | Prisma.AuthInviteDefaultArgs -}, ExtArgs["result"]["authInviteEvent"]> - -export type AuthInviteEventSelectScalar = { - id?: boolean - inviteId?: boolean - type?: boolean - payload?: boolean - actorId?: boolean - createdAt?: boolean -} - -export type AuthInviteEventOmit = runtime.Types.Extensions.GetOmit<"id" | "inviteId" | "type" | "payload" | "actorId" | "createdAt", ExtArgs["result"]["authInviteEvent"]> -export type AuthInviteEventInclude = { - invite?: boolean | Prisma.AuthInviteDefaultArgs -} -export type AuthInviteEventIncludeCreateManyAndReturn = { - invite?: boolean | Prisma.AuthInviteDefaultArgs -} -export type AuthInviteEventIncludeUpdateManyAndReturn = { - invite?: boolean | Prisma.AuthInviteDefaultArgs -} - -export type $AuthInviteEventPayload = { - name: "AuthInviteEvent" - objects: { - invite: Prisma.$AuthInvitePayload - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - inviteId: string - type: string - payload: runtime.JsonValue | null - actorId: string | null - createdAt: Date - }, ExtArgs["result"]["authInviteEvent"]> - composites: {} -} - -export type AuthInviteEventGetPayload = runtime.Types.Result.GetResult - -export type AuthInviteEventCountArgs = - Omit & { - select?: AuthInviteEventCountAggregateInputType | true - } - -export interface AuthInviteEventDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['AuthInviteEvent'], meta: { name: 'AuthInviteEvent' } } - /** - * Find zero or one AuthInviteEvent that matches the filter. - * @param {AuthInviteEventFindUniqueArgs} args - Arguments to find a AuthInviteEvent - * @example - * // Get one AuthInviteEvent - * const authInviteEvent = await prisma.authInviteEvent.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AuthInviteEventClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one AuthInviteEvent that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {AuthInviteEventFindUniqueOrThrowArgs} args - Arguments to find a AuthInviteEvent - * @example - * // Get one AuthInviteEvent - * const authInviteEvent = await prisma.authInviteEvent.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AuthInviteEventClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first AuthInviteEvent that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthInviteEventFindFirstArgs} args - Arguments to find a AuthInviteEvent - * @example - * // Get one AuthInviteEvent - * const authInviteEvent = await prisma.authInviteEvent.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AuthInviteEventClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first AuthInviteEvent that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthInviteEventFindFirstOrThrowArgs} args - Arguments to find a AuthInviteEvent - * @example - * // Get one AuthInviteEvent - * const authInviteEvent = await prisma.authInviteEvent.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AuthInviteEventClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more AuthInviteEvents that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthInviteEventFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all AuthInviteEvents - * const authInviteEvents = await prisma.authInviteEvent.findMany() - * - * // Get first 10 AuthInviteEvents - * const authInviteEvents = await prisma.authInviteEvent.findMany({ take: 10 }) - * - * // Only select the `id` - * const authInviteEventWithIdOnly = await prisma.authInviteEvent.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a AuthInviteEvent. - * @param {AuthInviteEventCreateArgs} args - Arguments to create a AuthInviteEvent. - * @example - * // Create one AuthInviteEvent - * const AuthInviteEvent = await prisma.authInviteEvent.create({ - * data: { - * // ... data to create a AuthInviteEvent - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__AuthInviteEventClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many AuthInviteEvents. - * @param {AuthInviteEventCreateManyArgs} args - Arguments to create many AuthInviteEvents. - * @example - * // Create many AuthInviteEvents - * const authInviteEvent = await prisma.authInviteEvent.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many AuthInviteEvents and returns the data saved in the database. - * @param {AuthInviteEventCreateManyAndReturnArgs} args - Arguments to create many AuthInviteEvents. - * @example - * // Create many AuthInviteEvents - * const authInviteEvent = await prisma.authInviteEvent.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many AuthInviteEvents and only return the `id` - * const authInviteEventWithIdOnly = await prisma.authInviteEvent.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a AuthInviteEvent. - * @param {AuthInviteEventDeleteArgs} args - Arguments to delete one AuthInviteEvent. - * @example - * // Delete one AuthInviteEvent - * const AuthInviteEvent = await prisma.authInviteEvent.delete({ - * where: { - * // ... filter to delete one AuthInviteEvent - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__AuthInviteEventClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one AuthInviteEvent. - * @param {AuthInviteEventUpdateArgs} args - Arguments to update one AuthInviteEvent. - * @example - * // Update one AuthInviteEvent - * const authInviteEvent = await prisma.authInviteEvent.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__AuthInviteEventClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more AuthInviteEvents. - * @param {AuthInviteEventDeleteManyArgs} args - Arguments to filter AuthInviteEvents to delete. - * @example - * // Delete a few AuthInviteEvents - * const { count } = await prisma.authInviteEvent.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more AuthInviteEvents. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthInviteEventUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many AuthInviteEvents - * const authInviteEvent = await prisma.authInviteEvent.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more AuthInviteEvents and returns the data updated in the database. - * @param {AuthInviteEventUpdateManyAndReturnArgs} args - Arguments to update many AuthInviteEvents. - * @example - * // Update many AuthInviteEvents - * const authInviteEvent = await prisma.authInviteEvent.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more AuthInviteEvents and only return the `id` - * const authInviteEventWithIdOnly = await prisma.authInviteEvent.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one AuthInviteEvent. - * @param {AuthInviteEventUpsertArgs} args - Arguments to update or create a AuthInviteEvent. - * @example - * // Update or create a AuthInviteEvent - * const authInviteEvent = await prisma.authInviteEvent.upsert({ - * create: { - * // ... data to create a AuthInviteEvent - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the AuthInviteEvent we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AuthInviteEventClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of AuthInviteEvents. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthInviteEventCountArgs} args - Arguments to filter AuthInviteEvents to count. - * @example - * // Count the number of AuthInviteEvents - * const count = await prisma.authInviteEvent.count({ - * where: { - * // ... the filter for the AuthInviteEvents we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a AuthInviteEvent. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthInviteEventAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by AuthInviteEvent. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthInviteEventGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends AuthInviteEventGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: AuthInviteEventGroupByArgs['orderBy'] } - : { orderBy?: AuthInviteEventGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetAuthInviteEventGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the AuthInviteEvent model - */ -readonly fields: AuthInviteEventFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for AuthInviteEvent. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__AuthInviteEventClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - invite = {}>(args?: Prisma.Subset>): Prisma.Prisma__AuthInviteClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the AuthInviteEvent model - */ -export interface AuthInviteEventFieldRefs { - readonly id: Prisma.FieldRef<"AuthInviteEvent", 'String'> - readonly inviteId: Prisma.FieldRef<"AuthInviteEvent", 'String'> - readonly type: Prisma.FieldRef<"AuthInviteEvent", 'String'> - readonly payload: Prisma.FieldRef<"AuthInviteEvent", 'Json'> - readonly actorId: Prisma.FieldRef<"AuthInviteEvent", 'String'> - readonly createdAt: Prisma.FieldRef<"AuthInviteEvent", 'DateTime'> -} - - -// Custom InputTypes -/** - * AuthInviteEvent findUnique - */ -export type AuthInviteEventFindUniqueArgs = { - /** - * Select specific fields to fetch from the AuthInviteEvent - */ - select?: Prisma.AuthInviteEventSelect | null - /** - * Omit specific fields from the AuthInviteEvent - */ - omit?: Prisma.AuthInviteEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteEventInclude | null - /** - * Filter, which AuthInviteEvent to fetch. - */ - where: Prisma.AuthInviteEventWhereUniqueInput -} - -/** - * AuthInviteEvent findUniqueOrThrow - */ -export type AuthInviteEventFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the AuthInviteEvent - */ - select?: Prisma.AuthInviteEventSelect | null - /** - * Omit specific fields from the AuthInviteEvent - */ - omit?: Prisma.AuthInviteEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteEventInclude | null - /** - * Filter, which AuthInviteEvent to fetch. - */ - where: Prisma.AuthInviteEventWhereUniqueInput -} - -/** - * AuthInviteEvent findFirst - */ -export type AuthInviteEventFindFirstArgs = { - /** - * Select specific fields to fetch from the AuthInviteEvent - */ - select?: Prisma.AuthInviteEventSelect | null - /** - * Omit specific fields from the AuthInviteEvent - */ - omit?: Prisma.AuthInviteEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteEventInclude | null - /** - * Filter, which AuthInviteEvent to fetch. - */ - where?: Prisma.AuthInviteEventWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthInviteEvents to fetch. - */ - orderBy?: Prisma.AuthInviteEventOrderByWithRelationInput | Prisma.AuthInviteEventOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for AuthInviteEvents. - */ - cursor?: Prisma.AuthInviteEventWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthInviteEvents from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthInviteEvents. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of AuthInviteEvents. - */ - distinct?: Prisma.AuthInviteEventScalarFieldEnum | Prisma.AuthInviteEventScalarFieldEnum[] -} - -/** - * AuthInviteEvent findFirstOrThrow - */ -export type AuthInviteEventFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the AuthInviteEvent - */ - select?: Prisma.AuthInviteEventSelect | null - /** - * Omit specific fields from the AuthInviteEvent - */ - omit?: Prisma.AuthInviteEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteEventInclude | null - /** - * Filter, which AuthInviteEvent to fetch. - */ - where?: Prisma.AuthInviteEventWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthInviteEvents to fetch. - */ - orderBy?: Prisma.AuthInviteEventOrderByWithRelationInput | Prisma.AuthInviteEventOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for AuthInviteEvents. - */ - cursor?: Prisma.AuthInviteEventWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthInviteEvents from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthInviteEvents. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of AuthInviteEvents. - */ - distinct?: Prisma.AuthInviteEventScalarFieldEnum | Prisma.AuthInviteEventScalarFieldEnum[] -} - -/** - * AuthInviteEvent findMany - */ -export type AuthInviteEventFindManyArgs = { - /** - * Select specific fields to fetch from the AuthInviteEvent - */ - select?: Prisma.AuthInviteEventSelect | null - /** - * Omit specific fields from the AuthInviteEvent - */ - omit?: Prisma.AuthInviteEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteEventInclude | null - /** - * Filter, which AuthInviteEvents to fetch. - */ - where?: Prisma.AuthInviteEventWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthInviteEvents to fetch. - */ - orderBy?: Prisma.AuthInviteEventOrderByWithRelationInput | Prisma.AuthInviteEventOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing AuthInviteEvents. - */ - cursor?: Prisma.AuthInviteEventWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthInviteEvents from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthInviteEvents. - */ - skip?: number - distinct?: Prisma.AuthInviteEventScalarFieldEnum | Prisma.AuthInviteEventScalarFieldEnum[] -} - -/** - * AuthInviteEvent create - */ -export type AuthInviteEventCreateArgs = { - /** - * Select specific fields to fetch from the AuthInviteEvent - */ - select?: Prisma.AuthInviteEventSelect | null - /** - * Omit specific fields from the AuthInviteEvent - */ - omit?: Prisma.AuthInviteEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteEventInclude | null - /** - * The data needed to create a AuthInviteEvent. - */ - data: Prisma.XOR -} - -/** - * AuthInviteEvent createMany - */ -export type AuthInviteEventCreateManyArgs = { - /** - * The data used to create many AuthInviteEvents. - */ - data: Prisma.AuthInviteEventCreateManyInput | Prisma.AuthInviteEventCreateManyInput[] -} - -/** - * AuthInviteEvent createManyAndReturn - */ -export type AuthInviteEventCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the AuthInviteEvent - */ - select?: Prisma.AuthInviteEventSelectCreateManyAndReturn | null - /** - * Omit specific fields from the AuthInviteEvent - */ - omit?: Prisma.AuthInviteEventOmit | null - /** - * The data used to create many AuthInviteEvents. - */ - data: Prisma.AuthInviteEventCreateManyInput | Prisma.AuthInviteEventCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteEventIncludeCreateManyAndReturn | null -} - -/** - * AuthInviteEvent update - */ -export type AuthInviteEventUpdateArgs = { - /** - * Select specific fields to fetch from the AuthInviteEvent - */ - select?: Prisma.AuthInviteEventSelect | null - /** - * Omit specific fields from the AuthInviteEvent - */ - omit?: Prisma.AuthInviteEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteEventInclude | null - /** - * The data needed to update a AuthInviteEvent. - */ - data: Prisma.XOR - /** - * Choose, which AuthInviteEvent to update. - */ - where: Prisma.AuthInviteEventWhereUniqueInput -} - -/** - * AuthInviteEvent updateMany - */ -export type AuthInviteEventUpdateManyArgs = { - /** - * The data used to update AuthInviteEvents. - */ - data: Prisma.XOR - /** - * Filter which AuthInviteEvents to update - */ - where?: Prisma.AuthInviteEventWhereInput - /** - * Limit how many AuthInviteEvents to update. - */ - limit?: number -} - -/** - * AuthInviteEvent updateManyAndReturn - */ -export type AuthInviteEventUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the AuthInviteEvent - */ - select?: Prisma.AuthInviteEventSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the AuthInviteEvent - */ - omit?: Prisma.AuthInviteEventOmit | null - /** - * The data used to update AuthInviteEvents. - */ - data: Prisma.XOR - /** - * Filter which AuthInviteEvents to update - */ - where?: Prisma.AuthInviteEventWhereInput - /** - * Limit how many AuthInviteEvents to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteEventIncludeUpdateManyAndReturn | null -} - -/** - * AuthInviteEvent upsert - */ -export type AuthInviteEventUpsertArgs = { - /** - * Select specific fields to fetch from the AuthInviteEvent - */ - select?: Prisma.AuthInviteEventSelect | null - /** - * Omit specific fields from the AuthInviteEvent - */ - omit?: Prisma.AuthInviteEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteEventInclude | null - /** - * The filter to search for the AuthInviteEvent to update in case it exists. - */ - where: Prisma.AuthInviteEventWhereUniqueInput - /** - * In case the AuthInviteEvent found by the `where` argument doesn't exist, create a new AuthInviteEvent with this data. - */ - create: Prisma.XOR - /** - * In case the AuthInviteEvent was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * AuthInviteEvent delete - */ -export type AuthInviteEventDeleteArgs = { - /** - * Select specific fields to fetch from the AuthInviteEvent - */ - select?: Prisma.AuthInviteEventSelect | null - /** - * Omit specific fields from the AuthInviteEvent - */ - omit?: Prisma.AuthInviteEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteEventInclude | null - /** - * Filter which AuthInviteEvent to delete. - */ - where: Prisma.AuthInviteEventWhereUniqueInput -} - -/** - * AuthInviteEvent deleteMany - */ -export type AuthInviteEventDeleteManyArgs = { - /** - * Filter which AuthInviteEvents to delete - */ - where?: Prisma.AuthInviteEventWhereInput - /** - * Limit how many AuthInviteEvents to delete. - */ - limit?: number -} - -/** - * AuthInviteEvent without action - */ -export type AuthInviteEventDefaultArgs = { - /** - * Select specific fields to fetch from the AuthInviteEvent - */ - select?: Prisma.AuthInviteEventSelect | null - /** - * Omit specific fields from the AuthInviteEvent - */ - omit?: Prisma.AuthInviteEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthInviteEventInclude | null -} diff --git a/src/generated/prisma/models/AuthSession.ts b/src/generated/prisma/models/AuthSession.ts deleted file mode 100644 index f433617..0000000 --- a/src/generated/prisma/models/AuthSession.ts +++ /dev/null @@ -1,1442 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `AuthSession` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model AuthSession - * - */ -export type AuthSessionModel = runtime.Types.Result.DefaultSelection - -export type AggregateAuthSession = { - _count: AuthSessionCountAggregateOutputType | null - _min: AuthSessionMinAggregateOutputType | null - _max: AuthSessionMaxAggregateOutputType | null -} - -export type AuthSessionMinAggregateOutputType = { - id: string | null - userId: string | null - token: string | null - expiresAt: Date | null - ipAddress: string | null - userAgent: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type AuthSessionMaxAggregateOutputType = { - id: string | null - userId: string | null - token: string | null - expiresAt: Date | null - ipAddress: string | null - userAgent: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type AuthSessionCountAggregateOutputType = { - id: number - userId: number - token: number - expiresAt: number - ipAddress: number - userAgent: number - createdAt: number - updatedAt: number - _all: number -} - - -export type AuthSessionMinAggregateInputType = { - id?: true - userId?: true - token?: true - expiresAt?: true - ipAddress?: true - userAgent?: true - createdAt?: true - updatedAt?: true -} - -export type AuthSessionMaxAggregateInputType = { - id?: true - userId?: true - token?: true - expiresAt?: true - ipAddress?: true - userAgent?: true - createdAt?: true - updatedAt?: true -} - -export type AuthSessionCountAggregateInputType = { - id?: true - userId?: true - token?: true - expiresAt?: true - ipAddress?: true - userAgent?: true - createdAt?: true - updatedAt?: true - _all?: true -} - -export type AuthSessionAggregateArgs = { - /** - * Filter which AuthSession to aggregate. - */ - where?: Prisma.AuthSessionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthSessions to fetch. - */ - orderBy?: Prisma.AuthSessionOrderByWithRelationInput | Prisma.AuthSessionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.AuthSessionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthSessions from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthSessions. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned AuthSessions - **/ - _count?: true | AuthSessionCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: AuthSessionMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: AuthSessionMaxAggregateInputType -} - -export type GetAuthSessionAggregateType = { - [P in keyof T & keyof AggregateAuthSession]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type AuthSessionGroupByArgs = { - where?: Prisma.AuthSessionWhereInput - orderBy?: Prisma.AuthSessionOrderByWithAggregationInput | Prisma.AuthSessionOrderByWithAggregationInput[] - by: Prisma.AuthSessionScalarFieldEnum[] | Prisma.AuthSessionScalarFieldEnum - having?: Prisma.AuthSessionScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: AuthSessionCountAggregateInputType | true - _min?: AuthSessionMinAggregateInputType - _max?: AuthSessionMaxAggregateInputType -} - -export type AuthSessionGroupByOutputType = { - id: string - userId: string - token: string - expiresAt: Date - ipAddress: string | null - userAgent: string | null - createdAt: Date - updatedAt: Date - _count: AuthSessionCountAggregateOutputType | null - _min: AuthSessionMinAggregateOutputType | null - _max: AuthSessionMaxAggregateOutputType | null -} - -type GetAuthSessionGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof AuthSessionGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type AuthSessionWhereInput = { - AND?: Prisma.AuthSessionWhereInput | Prisma.AuthSessionWhereInput[] - OR?: Prisma.AuthSessionWhereInput[] - NOT?: Prisma.AuthSessionWhereInput | Prisma.AuthSessionWhereInput[] - id?: Prisma.StringFilter<"AuthSession"> | string - userId?: Prisma.StringFilter<"AuthSession"> | string - token?: Prisma.StringFilter<"AuthSession"> | string - expiresAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string - ipAddress?: Prisma.StringNullableFilter<"AuthSession"> | string | null - userAgent?: Prisma.StringNullableFilter<"AuthSession"> | string | null - createdAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string - user?: Prisma.XOR -} - -export type AuthSessionOrderByWithRelationInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - token?: Prisma.SortOrder - expiresAt?: Prisma.SortOrder - ipAddress?: Prisma.SortOrderInput | Prisma.SortOrder - userAgent?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - user?: Prisma.AuthUserOrderByWithRelationInput -} - -export type AuthSessionWhereUniqueInput = Prisma.AtLeast<{ - id?: string - token?: string - AND?: Prisma.AuthSessionWhereInput | Prisma.AuthSessionWhereInput[] - OR?: Prisma.AuthSessionWhereInput[] - NOT?: Prisma.AuthSessionWhereInput | Prisma.AuthSessionWhereInput[] - userId?: Prisma.StringFilter<"AuthSession"> | string - expiresAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string - ipAddress?: Prisma.StringNullableFilter<"AuthSession"> | string | null - userAgent?: Prisma.StringNullableFilter<"AuthSession"> | string | null - createdAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string - user?: Prisma.XOR -}, "id" | "token"> - -export type AuthSessionOrderByWithAggregationInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - token?: Prisma.SortOrder - expiresAt?: Prisma.SortOrder - ipAddress?: Prisma.SortOrderInput | Prisma.SortOrder - userAgent?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - _count?: Prisma.AuthSessionCountOrderByAggregateInput - _max?: Prisma.AuthSessionMaxOrderByAggregateInput - _min?: Prisma.AuthSessionMinOrderByAggregateInput -} - -export type AuthSessionScalarWhereWithAggregatesInput = { - AND?: Prisma.AuthSessionScalarWhereWithAggregatesInput | Prisma.AuthSessionScalarWhereWithAggregatesInput[] - OR?: Prisma.AuthSessionScalarWhereWithAggregatesInput[] - NOT?: Prisma.AuthSessionScalarWhereWithAggregatesInput | Prisma.AuthSessionScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"AuthSession"> | string - userId?: Prisma.StringWithAggregatesFilter<"AuthSession"> | string - token?: Prisma.StringWithAggregatesFilter<"AuthSession"> | string - expiresAt?: Prisma.DateTimeWithAggregatesFilter<"AuthSession"> | Date | string - ipAddress?: Prisma.StringNullableWithAggregatesFilter<"AuthSession"> | string | null - userAgent?: Prisma.StringNullableWithAggregatesFilter<"AuthSession"> | string | null - createdAt?: Prisma.DateTimeWithAggregatesFilter<"AuthSession"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AuthSession"> | Date | string -} - -export type AuthSessionCreateInput = { - id?: string - token: string - expiresAt: Date | string - ipAddress?: string | null - userAgent?: string | null - createdAt?: Date | string - updatedAt?: Date | string - user: Prisma.AuthUserCreateNestedOneWithoutSessionsInput -} - -export type AuthSessionUncheckedCreateInput = { - id?: string - userId: string - token: string - expiresAt: Date | string - ipAddress?: string | null - userAgent?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type AuthSessionUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - user?: Prisma.AuthUserUpdateOneRequiredWithoutSessionsNestedInput -} - -export type AuthSessionUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthSessionCreateManyInput = { - id?: string - userId: string - token: string - expiresAt: Date | string - ipAddress?: string | null - userAgent?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type AuthSessionUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthSessionUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthSessionListRelationFilter = { - every?: Prisma.AuthSessionWhereInput - some?: Prisma.AuthSessionWhereInput - none?: Prisma.AuthSessionWhereInput -} - -export type AuthSessionOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type AuthSessionCountOrderByAggregateInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - token?: Prisma.SortOrder - expiresAt?: Prisma.SortOrder - ipAddress?: Prisma.SortOrder - userAgent?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type AuthSessionMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - token?: Prisma.SortOrder - expiresAt?: Prisma.SortOrder - ipAddress?: Prisma.SortOrder - userAgent?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type AuthSessionMinOrderByAggregateInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - token?: Prisma.SortOrder - expiresAt?: Prisma.SortOrder - ipAddress?: Prisma.SortOrder - userAgent?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type AuthSessionCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.AuthSessionCreateWithoutUserInput[] | Prisma.AuthSessionUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.AuthSessionCreateOrConnectWithoutUserInput | Prisma.AuthSessionCreateOrConnectWithoutUserInput[] - createMany?: Prisma.AuthSessionCreateManyUserInputEnvelope - connect?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[] -} - -export type AuthSessionUncheckedCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.AuthSessionCreateWithoutUserInput[] | Prisma.AuthSessionUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.AuthSessionCreateOrConnectWithoutUserInput | Prisma.AuthSessionCreateOrConnectWithoutUserInput[] - createMany?: Prisma.AuthSessionCreateManyUserInputEnvelope - connect?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[] -} - -export type AuthSessionUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.AuthSessionCreateWithoutUserInput[] | Prisma.AuthSessionUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.AuthSessionCreateOrConnectWithoutUserInput | Prisma.AuthSessionCreateOrConnectWithoutUserInput[] - upsert?: Prisma.AuthSessionUpsertWithWhereUniqueWithoutUserInput | Prisma.AuthSessionUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.AuthSessionCreateManyUserInputEnvelope - set?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[] - disconnect?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[] - delete?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[] - connect?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[] - update?: Prisma.AuthSessionUpdateWithWhereUniqueWithoutUserInput | Prisma.AuthSessionUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.AuthSessionUpdateManyWithWhereWithoutUserInput | Prisma.AuthSessionUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.AuthSessionScalarWhereInput | Prisma.AuthSessionScalarWhereInput[] -} - -export type AuthSessionUncheckedUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.AuthSessionCreateWithoutUserInput[] | Prisma.AuthSessionUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.AuthSessionCreateOrConnectWithoutUserInput | Prisma.AuthSessionCreateOrConnectWithoutUserInput[] - upsert?: Prisma.AuthSessionUpsertWithWhereUniqueWithoutUserInput | Prisma.AuthSessionUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.AuthSessionCreateManyUserInputEnvelope - set?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[] - disconnect?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[] - delete?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[] - connect?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[] - update?: Prisma.AuthSessionUpdateWithWhereUniqueWithoutUserInput | Prisma.AuthSessionUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.AuthSessionUpdateManyWithWhereWithoutUserInput | Prisma.AuthSessionUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.AuthSessionScalarWhereInput | Prisma.AuthSessionScalarWhereInput[] -} - -export type AuthSessionCreateWithoutUserInput = { - id?: string - token: string - expiresAt: Date | string - ipAddress?: string | null - userAgent?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type AuthSessionUncheckedCreateWithoutUserInput = { - id?: string - token: string - expiresAt: Date | string - ipAddress?: string | null - userAgent?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type AuthSessionCreateOrConnectWithoutUserInput = { - where: Prisma.AuthSessionWhereUniqueInput - create: Prisma.XOR -} - -export type AuthSessionCreateManyUserInputEnvelope = { - data: Prisma.AuthSessionCreateManyUserInput | Prisma.AuthSessionCreateManyUserInput[] -} - -export type AuthSessionUpsertWithWhereUniqueWithoutUserInput = { - where: Prisma.AuthSessionWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type AuthSessionUpdateWithWhereUniqueWithoutUserInput = { - where: Prisma.AuthSessionWhereUniqueInput - data: Prisma.XOR -} - -export type AuthSessionUpdateManyWithWhereWithoutUserInput = { - where: Prisma.AuthSessionScalarWhereInput - data: Prisma.XOR -} - -export type AuthSessionScalarWhereInput = { - AND?: Prisma.AuthSessionScalarWhereInput | Prisma.AuthSessionScalarWhereInput[] - OR?: Prisma.AuthSessionScalarWhereInput[] - NOT?: Prisma.AuthSessionScalarWhereInput | Prisma.AuthSessionScalarWhereInput[] - id?: Prisma.StringFilter<"AuthSession"> | string - userId?: Prisma.StringFilter<"AuthSession"> | string - token?: Prisma.StringFilter<"AuthSession"> | string - expiresAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string - ipAddress?: Prisma.StringNullableFilter<"AuthSession"> | string | null - userAgent?: Prisma.StringNullableFilter<"AuthSession"> | string | null - createdAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string -} - -export type AuthSessionCreateManyUserInput = { - id?: string - token: string - expiresAt: Date | string - ipAddress?: string | null - userAgent?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type AuthSessionUpdateWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthSessionUncheckedUpdateWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthSessionUncheckedUpdateManyWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - - - -export type AuthSessionSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - userId?: boolean - token?: boolean - expiresAt?: boolean - ipAddress?: boolean - userAgent?: boolean - createdAt?: boolean - updatedAt?: boolean - user?: boolean | Prisma.AuthUserDefaultArgs -}, ExtArgs["result"]["authSession"]> - -export type AuthSessionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - userId?: boolean - token?: boolean - expiresAt?: boolean - ipAddress?: boolean - userAgent?: boolean - createdAt?: boolean - updatedAt?: boolean - user?: boolean | Prisma.AuthUserDefaultArgs -}, ExtArgs["result"]["authSession"]> - -export type AuthSessionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - userId?: boolean - token?: boolean - expiresAt?: boolean - ipAddress?: boolean - userAgent?: boolean - createdAt?: boolean - updatedAt?: boolean - user?: boolean | Prisma.AuthUserDefaultArgs -}, ExtArgs["result"]["authSession"]> - -export type AuthSessionSelectScalar = { - id?: boolean - userId?: boolean - token?: boolean - expiresAt?: boolean - ipAddress?: boolean - userAgent?: boolean - createdAt?: boolean - updatedAt?: boolean -} - -export type AuthSessionOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "token" | "expiresAt" | "ipAddress" | "userAgent" | "createdAt" | "updatedAt", ExtArgs["result"]["authSession"]> -export type AuthSessionInclude = { - user?: boolean | Prisma.AuthUserDefaultArgs -} -export type AuthSessionIncludeCreateManyAndReturn = { - user?: boolean | Prisma.AuthUserDefaultArgs -} -export type AuthSessionIncludeUpdateManyAndReturn = { - user?: boolean | Prisma.AuthUserDefaultArgs -} - -export type $AuthSessionPayload = { - name: "AuthSession" - objects: { - user: Prisma.$AuthUserPayload - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - userId: string - token: string - expiresAt: Date - ipAddress: string | null - userAgent: string | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["authSession"]> - composites: {} -} - -export type AuthSessionGetPayload = runtime.Types.Result.GetResult - -export type AuthSessionCountArgs = - Omit & { - select?: AuthSessionCountAggregateInputType | true - } - -export interface AuthSessionDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['AuthSession'], meta: { name: 'AuthSession' } } - /** - * Find zero or one AuthSession that matches the filter. - * @param {AuthSessionFindUniqueArgs} args - Arguments to find a AuthSession - * @example - * // Get one AuthSession - * const authSession = await prisma.authSession.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AuthSessionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one AuthSession that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {AuthSessionFindUniqueOrThrowArgs} args - Arguments to find a AuthSession - * @example - * // Get one AuthSession - * const authSession = await prisma.authSession.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AuthSessionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first AuthSession that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthSessionFindFirstArgs} args - Arguments to find a AuthSession - * @example - * // Get one AuthSession - * const authSession = await prisma.authSession.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AuthSessionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first AuthSession that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthSessionFindFirstOrThrowArgs} args - Arguments to find a AuthSession - * @example - * // Get one AuthSession - * const authSession = await prisma.authSession.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AuthSessionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more AuthSessions that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthSessionFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all AuthSessions - * const authSessions = await prisma.authSession.findMany() - * - * // Get first 10 AuthSessions - * const authSessions = await prisma.authSession.findMany({ take: 10 }) - * - * // Only select the `id` - * const authSessionWithIdOnly = await prisma.authSession.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a AuthSession. - * @param {AuthSessionCreateArgs} args - Arguments to create a AuthSession. - * @example - * // Create one AuthSession - * const AuthSession = await prisma.authSession.create({ - * data: { - * // ... data to create a AuthSession - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__AuthSessionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many AuthSessions. - * @param {AuthSessionCreateManyArgs} args - Arguments to create many AuthSessions. - * @example - * // Create many AuthSessions - * const authSession = await prisma.authSession.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many AuthSessions and returns the data saved in the database. - * @param {AuthSessionCreateManyAndReturnArgs} args - Arguments to create many AuthSessions. - * @example - * // Create many AuthSessions - * const authSession = await prisma.authSession.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many AuthSessions and only return the `id` - * const authSessionWithIdOnly = await prisma.authSession.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a AuthSession. - * @param {AuthSessionDeleteArgs} args - Arguments to delete one AuthSession. - * @example - * // Delete one AuthSession - * const AuthSession = await prisma.authSession.delete({ - * where: { - * // ... filter to delete one AuthSession - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__AuthSessionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one AuthSession. - * @param {AuthSessionUpdateArgs} args - Arguments to update one AuthSession. - * @example - * // Update one AuthSession - * const authSession = await prisma.authSession.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__AuthSessionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more AuthSessions. - * @param {AuthSessionDeleteManyArgs} args - Arguments to filter AuthSessions to delete. - * @example - * // Delete a few AuthSessions - * const { count } = await prisma.authSession.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more AuthSessions. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthSessionUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many AuthSessions - * const authSession = await prisma.authSession.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more AuthSessions and returns the data updated in the database. - * @param {AuthSessionUpdateManyAndReturnArgs} args - Arguments to update many AuthSessions. - * @example - * // Update many AuthSessions - * const authSession = await prisma.authSession.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more AuthSessions and only return the `id` - * const authSessionWithIdOnly = await prisma.authSession.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one AuthSession. - * @param {AuthSessionUpsertArgs} args - Arguments to update or create a AuthSession. - * @example - * // Update or create a AuthSession - * const authSession = await prisma.authSession.upsert({ - * create: { - * // ... data to create a AuthSession - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the AuthSession we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AuthSessionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of AuthSessions. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthSessionCountArgs} args - Arguments to filter AuthSessions to count. - * @example - * // Count the number of AuthSessions - * const count = await prisma.authSession.count({ - * where: { - * // ... the filter for the AuthSessions we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a AuthSession. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthSessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by AuthSession. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthSessionGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends AuthSessionGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: AuthSessionGroupByArgs['orderBy'] } - : { orderBy?: AuthSessionGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetAuthSessionGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the AuthSession model - */ -readonly fields: AuthSessionFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for AuthSession. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__AuthSessionClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - user = {}>(args?: Prisma.Subset>): Prisma.Prisma__AuthUserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the AuthSession model - */ -export interface AuthSessionFieldRefs { - readonly id: Prisma.FieldRef<"AuthSession", 'String'> - readonly userId: Prisma.FieldRef<"AuthSession", 'String'> - readonly token: Prisma.FieldRef<"AuthSession", 'String'> - readonly expiresAt: Prisma.FieldRef<"AuthSession", 'DateTime'> - readonly ipAddress: Prisma.FieldRef<"AuthSession", 'String'> - readonly userAgent: Prisma.FieldRef<"AuthSession", 'String'> - readonly createdAt: Prisma.FieldRef<"AuthSession", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"AuthSession", 'DateTime'> -} - - -// Custom InputTypes -/** - * AuthSession findUnique - */ -export type AuthSessionFindUniqueArgs = { - /** - * Select specific fields to fetch from the AuthSession - */ - select?: Prisma.AuthSessionSelect | null - /** - * Omit specific fields from the AuthSession - */ - omit?: Prisma.AuthSessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthSessionInclude | null - /** - * Filter, which AuthSession to fetch. - */ - where: Prisma.AuthSessionWhereUniqueInput -} - -/** - * AuthSession findUniqueOrThrow - */ -export type AuthSessionFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the AuthSession - */ - select?: Prisma.AuthSessionSelect | null - /** - * Omit specific fields from the AuthSession - */ - omit?: Prisma.AuthSessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthSessionInclude | null - /** - * Filter, which AuthSession to fetch. - */ - where: Prisma.AuthSessionWhereUniqueInput -} - -/** - * AuthSession findFirst - */ -export type AuthSessionFindFirstArgs = { - /** - * Select specific fields to fetch from the AuthSession - */ - select?: Prisma.AuthSessionSelect | null - /** - * Omit specific fields from the AuthSession - */ - omit?: Prisma.AuthSessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthSessionInclude | null - /** - * Filter, which AuthSession to fetch. - */ - where?: Prisma.AuthSessionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthSessions to fetch. - */ - orderBy?: Prisma.AuthSessionOrderByWithRelationInput | Prisma.AuthSessionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for AuthSessions. - */ - cursor?: Prisma.AuthSessionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthSessions from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthSessions. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of AuthSessions. - */ - distinct?: Prisma.AuthSessionScalarFieldEnum | Prisma.AuthSessionScalarFieldEnum[] -} - -/** - * AuthSession findFirstOrThrow - */ -export type AuthSessionFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the AuthSession - */ - select?: Prisma.AuthSessionSelect | null - /** - * Omit specific fields from the AuthSession - */ - omit?: Prisma.AuthSessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthSessionInclude | null - /** - * Filter, which AuthSession to fetch. - */ - where?: Prisma.AuthSessionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthSessions to fetch. - */ - orderBy?: Prisma.AuthSessionOrderByWithRelationInput | Prisma.AuthSessionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for AuthSessions. - */ - cursor?: Prisma.AuthSessionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthSessions from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthSessions. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of AuthSessions. - */ - distinct?: Prisma.AuthSessionScalarFieldEnum | Prisma.AuthSessionScalarFieldEnum[] -} - -/** - * AuthSession findMany - */ -export type AuthSessionFindManyArgs = { - /** - * Select specific fields to fetch from the AuthSession - */ - select?: Prisma.AuthSessionSelect | null - /** - * Omit specific fields from the AuthSession - */ - omit?: Prisma.AuthSessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthSessionInclude | null - /** - * Filter, which AuthSessions to fetch. - */ - where?: Prisma.AuthSessionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthSessions to fetch. - */ - orderBy?: Prisma.AuthSessionOrderByWithRelationInput | Prisma.AuthSessionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing AuthSessions. - */ - cursor?: Prisma.AuthSessionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthSessions from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthSessions. - */ - skip?: number - distinct?: Prisma.AuthSessionScalarFieldEnum | Prisma.AuthSessionScalarFieldEnum[] -} - -/** - * AuthSession create - */ -export type AuthSessionCreateArgs = { - /** - * Select specific fields to fetch from the AuthSession - */ - select?: Prisma.AuthSessionSelect | null - /** - * Omit specific fields from the AuthSession - */ - omit?: Prisma.AuthSessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthSessionInclude | null - /** - * The data needed to create a AuthSession. - */ - data: Prisma.XOR -} - -/** - * AuthSession createMany - */ -export type AuthSessionCreateManyArgs = { - /** - * The data used to create many AuthSessions. - */ - data: Prisma.AuthSessionCreateManyInput | Prisma.AuthSessionCreateManyInput[] -} - -/** - * AuthSession createManyAndReturn - */ -export type AuthSessionCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the AuthSession - */ - select?: Prisma.AuthSessionSelectCreateManyAndReturn | null - /** - * Omit specific fields from the AuthSession - */ - omit?: Prisma.AuthSessionOmit | null - /** - * The data used to create many AuthSessions. - */ - data: Prisma.AuthSessionCreateManyInput | Prisma.AuthSessionCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthSessionIncludeCreateManyAndReturn | null -} - -/** - * AuthSession update - */ -export type AuthSessionUpdateArgs = { - /** - * Select specific fields to fetch from the AuthSession - */ - select?: Prisma.AuthSessionSelect | null - /** - * Omit specific fields from the AuthSession - */ - omit?: Prisma.AuthSessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthSessionInclude | null - /** - * The data needed to update a AuthSession. - */ - data: Prisma.XOR - /** - * Choose, which AuthSession to update. - */ - where: Prisma.AuthSessionWhereUniqueInput -} - -/** - * AuthSession updateMany - */ -export type AuthSessionUpdateManyArgs = { - /** - * The data used to update AuthSessions. - */ - data: Prisma.XOR - /** - * Filter which AuthSessions to update - */ - where?: Prisma.AuthSessionWhereInput - /** - * Limit how many AuthSessions to update. - */ - limit?: number -} - -/** - * AuthSession updateManyAndReturn - */ -export type AuthSessionUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the AuthSession - */ - select?: Prisma.AuthSessionSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the AuthSession - */ - omit?: Prisma.AuthSessionOmit | null - /** - * The data used to update AuthSessions. - */ - data: Prisma.XOR - /** - * Filter which AuthSessions to update - */ - where?: Prisma.AuthSessionWhereInput - /** - * Limit how many AuthSessions to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthSessionIncludeUpdateManyAndReturn | null -} - -/** - * AuthSession upsert - */ -export type AuthSessionUpsertArgs = { - /** - * Select specific fields to fetch from the AuthSession - */ - select?: Prisma.AuthSessionSelect | null - /** - * Omit specific fields from the AuthSession - */ - omit?: Prisma.AuthSessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthSessionInclude | null - /** - * The filter to search for the AuthSession to update in case it exists. - */ - where: Prisma.AuthSessionWhereUniqueInput - /** - * In case the AuthSession found by the `where` argument doesn't exist, create a new AuthSession with this data. - */ - create: Prisma.XOR - /** - * In case the AuthSession was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * AuthSession delete - */ -export type AuthSessionDeleteArgs = { - /** - * Select specific fields to fetch from the AuthSession - */ - select?: Prisma.AuthSessionSelect | null - /** - * Omit specific fields from the AuthSession - */ - omit?: Prisma.AuthSessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthSessionInclude | null - /** - * Filter which AuthSession to delete. - */ - where: Prisma.AuthSessionWhereUniqueInput -} - -/** - * AuthSession deleteMany - */ -export type AuthSessionDeleteManyArgs = { - /** - * Filter which AuthSessions to delete - */ - where?: Prisma.AuthSessionWhereInput - /** - * Limit how many AuthSessions to delete. - */ - limit?: number -} - -/** - * AuthSession without action - */ -export type AuthSessionDefaultArgs = { - /** - * Select specific fields to fetch from the AuthSession - */ - select?: Prisma.AuthSessionSelect | null - /** - * Omit specific fields from the AuthSession - */ - omit?: Prisma.AuthSessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthSessionInclude | null -} diff --git a/src/generated/prisma/models/AuthUser.ts b/src/generated/prisma/models/AuthUser.ts deleted file mode 100644 index 575e8ea..0000000 --- a/src/generated/prisma/models/AuthUser.ts +++ /dev/null @@ -1,1650 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `AuthUser` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model AuthUser - * - */ -export type AuthUserModel = runtime.Types.Result.DefaultSelection - -export type AggregateAuthUser = { - _count: AuthUserCountAggregateOutputType | null - _min: AuthUserMinAggregateOutputType | null - _max: AuthUserMaxAggregateOutputType | null -} - -export type AuthUserMinAggregateOutputType = { - id: string | null - name: string | null - email: string | null - emailVerified: boolean | null - image: string | null - role: string | null - tenantId: string | null - avatarUrl: string | null - machinePersona: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type AuthUserMaxAggregateOutputType = { - id: string | null - name: string | null - email: string | null - emailVerified: boolean | null - image: string | null - role: string | null - tenantId: string | null - avatarUrl: string | null - machinePersona: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type AuthUserCountAggregateOutputType = { - id: number - name: number - email: number - emailVerified: number - image: number - role: number - tenantId: number - avatarUrl: number - machinePersona: number - createdAt: number - updatedAt: number - _all: number -} - - -export type AuthUserMinAggregateInputType = { - id?: true - name?: true - email?: true - emailVerified?: true - image?: true - role?: true - tenantId?: true - avatarUrl?: true - machinePersona?: true - createdAt?: true - updatedAt?: true -} - -export type AuthUserMaxAggregateInputType = { - id?: true - name?: true - email?: true - emailVerified?: true - image?: true - role?: true - tenantId?: true - avatarUrl?: true - machinePersona?: true - createdAt?: true - updatedAt?: true -} - -export type AuthUserCountAggregateInputType = { - id?: true - name?: true - email?: true - emailVerified?: true - image?: true - role?: true - tenantId?: true - avatarUrl?: true - machinePersona?: true - createdAt?: true - updatedAt?: true - _all?: true -} - -export type AuthUserAggregateArgs = { - /** - * Filter which AuthUser to aggregate. - */ - where?: Prisma.AuthUserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthUsers to fetch. - */ - orderBy?: Prisma.AuthUserOrderByWithRelationInput | Prisma.AuthUserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.AuthUserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthUsers from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthUsers. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned AuthUsers - **/ - _count?: true | AuthUserCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: AuthUserMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: AuthUserMaxAggregateInputType -} - -export type GetAuthUserAggregateType = { - [P in keyof T & keyof AggregateAuthUser]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type AuthUserGroupByArgs = { - where?: Prisma.AuthUserWhereInput - orderBy?: Prisma.AuthUserOrderByWithAggregationInput | Prisma.AuthUserOrderByWithAggregationInput[] - by: Prisma.AuthUserScalarFieldEnum[] | Prisma.AuthUserScalarFieldEnum - having?: Prisma.AuthUserScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: AuthUserCountAggregateInputType | true - _min?: AuthUserMinAggregateInputType - _max?: AuthUserMaxAggregateInputType -} - -export type AuthUserGroupByOutputType = { - id: string - name: string | null - email: string - emailVerified: boolean - image: string | null - role: string - tenantId: string | null - avatarUrl: string | null - machinePersona: string | null - createdAt: Date - updatedAt: Date - _count: AuthUserCountAggregateOutputType | null - _min: AuthUserMinAggregateOutputType | null - _max: AuthUserMaxAggregateOutputType | null -} - -type GetAuthUserGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof AuthUserGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type AuthUserWhereInput = { - AND?: Prisma.AuthUserWhereInput | Prisma.AuthUserWhereInput[] - OR?: Prisma.AuthUserWhereInput[] - NOT?: Prisma.AuthUserWhereInput | Prisma.AuthUserWhereInput[] - id?: Prisma.StringFilter<"AuthUser"> | string - name?: Prisma.StringNullableFilter<"AuthUser"> | string | null - email?: Prisma.StringFilter<"AuthUser"> | string - emailVerified?: Prisma.BoolFilter<"AuthUser"> | boolean - image?: Prisma.StringNullableFilter<"AuthUser"> | string | null - role?: Prisma.StringFilter<"AuthUser"> | string - tenantId?: Prisma.StringNullableFilter<"AuthUser"> | string | null - avatarUrl?: Prisma.StringNullableFilter<"AuthUser"> | string | null - machinePersona?: Prisma.StringNullableFilter<"AuthUser"> | string | null - createdAt?: Prisma.DateTimeFilter<"AuthUser"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"AuthUser"> | Date | string - sessions?: Prisma.AuthSessionListRelationFilter - accounts?: Prisma.AuthAccountListRelationFilter -} - -export type AuthUserOrderByWithRelationInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrderInput | Prisma.SortOrder - email?: Prisma.SortOrder - emailVerified?: Prisma.SortOrder - image?: Prisma.SortOrderInput | Prisma.SortOrder - role?: Prisma.SortOrder - tenantId?: Prisma.SortOrderInput | Prisma.SortOrder - avatarUrl?: Prisma.SortOrderInput | Prisma.SortOrder - machinePersona?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - sessions?: Prisma.AuthSessionOrderByRelationAggregateInput - accounts?: Prisma.AuthAccountOrderByRelationAggregateInput -} - -export type AuthUserWhereUniqueInput = Prisma.AtLeast<{ - id?: string - email?: string - AND?: Prisma.AuthUserWhereInput | Prisma.AuthUserWhereInput[] - OR?: Prisma.AuthUserWhereInput[] - NOT?: Prisma.AuthUserWhereInput | Prisma.AuthUserWhereInput[] - name?: Prisma.StringNullableFilter<"AuthUser"> | string | null - emailVerified?: Prisma.BoolFilter<"AuthUser"> | boolean - image?: Prisma.StringNullableFilter<"AuthUser"> | string | null - role?: Prisma.StringFilter<"AuthUser"> | string - tenantId?: Prisma.StringNullableFilter<"AuthUser"> | string | null - avatarUrl?: Prisma.StringNullableFilter<"AuthUser"> | string | null - machinePersona?: Prisma.StringNullableFilter<"AuthUser"> | string | null - createdAt?: Prisma.DateTimeFilter<"AuthUser"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"AuthUser"> | Date | string - sessions?: Prisma.AuthSessionListRelationFilter - accounts?: Prisma.AuthAccountListRelationFilter -}, "id" | "email"> - -export type AuthUserOrderByWithAggregationInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrderInput | Prisma.SortOrder - email?: Prisma.SortOrder - emailVerified?: Prisma.SortOrder - image?: Prisma.SortOrderInput | Prisma.SortOrder - role?: Prisma.SortOrder - tenantId?: Prisma.SortOrderInput | Prisma.SortOrder - avatarUrl?: Prisma.SortOrderInput | Prisma.SortOrder - machinePersona?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - _count?: Prisma.AuthUserCountOrderByAggregateInput - _max?: Prisma.AuthUserMaxOrderByAggregateInput - _min?: Prisma.AuthUserMinOrderByAggregateInput -} - -export type AuthUserScalarWhereWithAggregatesInput = { - AND?: Prisma.AuthUserScalarWhereWithAggregatesInput | Prisma.AuthUserScalarWhereWithAggregatesInput[] - OR?: Prisma.AuthUserScalarWhereWithAggregatesInput[] - NOT?: Prisma.AuthUserScalarWhereWithAggregatesInput | Prisma.AuthUserScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"AuthUser"> | string - name?: Prisma.StringNullableWithAggregatesFilter<"AuthUser"> | string | null - email?: Prisma.StringWithAggregatesFilter<"AuthUser"> | string - emailVerified?: Prisma.BoolWithAggregatesFilter<"AuthUser"> | boolean - image?: Prisma.StringNullableWithAggregatesFilter<"AuthUser"> | string | null - role?: Prisma.StringWithAggregatesFilter<"AuthUser"> | string - tenantId?: Prisma.StringNullableWithAggregatesFilter<"AuthUser"> | string | null - avatarUrl?: Prisma.StringNullableWithAggregatesFilter<"AuthUser"> | string | null - machinePersona?: Prisma.StringNullableWithAggregatesFilter<"AuthUser"> | string | null - createdAt?: Prisma.DateTimeWithAggregatesFilter<"AuthUser"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AuthUser"> | Date | string -} - -export type AuthUserCreateInput = { - id?: string - name?: string | null - email: string - emailVerified?: boolean - image?: string | null - role?: string - tenantId?: string | null - avatarUrl?: string | null - machinePersona?: string | null - createdAt?: Date | string - updatedAt?: Date | string - sessions?: Prisma.AuthSessionCreateNestedManyWithoutUserInput - accounts?: Prisma.AuthAccountCreateNestedManyWithoutUserInput -} - -export type AuthUserUncheckedCreateInput = { - id?: string - name?: string | null - email: string - emailVerified?: boolean - image?: string | null - role?: string - tenantId?: string | null - avatarUrl?: string | null - machinePersona?: string | null - createdAt?: Date | string - updatedAt?: Date | string - sessions?: Prisma.AuthSessionUncheckedCreateNestedManyWithoutUserInput - accounts?: Prisma.AuthAccountUncheckedCreateNestedManyWithoutUserInput -} - -export type AuthUserUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.StringFieldUpdateOperationsInput | string - emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean - image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - machinePersona?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - sessions?: Prisma.AuthSessionUpdateManyWithoutUserNestedInput - accounts?: Prisma.AuthAccountUpdateManyWithoutUserNestedInput -} - -export type AuthUserUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.StringFieldUpdateOperationsInput | string - emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean - image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - machinePersona?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - sessions?: Prisma.AuthSessionUncheckedUpdateManyWithoutUserNestedInput - accounts?: Prisma.AuthAccountUncheckedUpdateManyWithoutUserNestedInput -} - -export type AuthUserCreateManyInput = { - id?: string - name?: string | null - email: string - emailVerified?: boolean - image?: string | null - role?: string - tenantId?: string | null - avatarUrl?: string | null - machinePersona?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type AuthUserUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.StringFieldUpdateOperationsInput | string - emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean - image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - machinePersona?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthUserUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.StringFieldUpdateOperationsInput | string - emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean - image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - machinePersona?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthUserCountOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - email?: Prisma.SortOrder - emailVerified?: Prisma.SortOrder - image?: Prisma.SortOrder - role?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - avatarUrl?: Prisma.SortOrder - machinePersona?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type AuthUserMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - email?: Prisma.SortOrder - emailVerified?: Prisma.SortOrder - image?: Prisma.SortOrder - role?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - avatarUrl?: Prisma.SortOrder - machinePersona?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type AuthUserMinOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - email?: Prisma.SortOrder - emailVerified?: Prisma.SortOrder - image?: Prisma.SortOrder - role?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - avatarUrl?: Prisma.SortOrder - machinePersona?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type AuthUserScalarRelationFilter = { - is?: Prisma.AuthUserWhereInput - isNot?: Prisma.AuthUserWhereInput -} - -export type AuthUserCreateNestedOneWithoutSessionsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.AuthUserCreateOrConnectWithoutSessionsInput - connect?: Prisma.AuthUserWhereUniqueInput -} - -export type AuthUserUpdateOneRequiredWithoutSessionsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.AuthUserCreateOrConnectWithoutSessionsInput - upsert?: Prisma.AuthUserUpsertWithoutSessionsInput - connect?: Prisma.AuthUserWhereUniqueInput - update?: Prisma.XOR, Prisma.AuthUserUncheckedUpdateWithoutSessionsInput> -} - -export type AuthUserCreateNestedOneWithoutAccountsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.AuthUserCreateOrConnectWithoutAccountsInput - connect?: Prisma.AuthUserWhereUniqueInput -} - -export type AuthUserUpdateOneRequiredWithoutAccountsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.AuthUserCreateOrConnectWithoutAccountsInput - upsert?: Prisma.AuthUserUpsertWithoutAccountsInput - connect?: Prisma.AuthUserWhereUniqueInput - update?: Prisma.XOR, Prisma.AuthUserUncheckedUpdateWithoutAccountsInput> -} - -export type AuthUserCreateWithoutSessionsInput = { - id?: string - name?: string | null - email: string - emailVerified?: boolean - image?: string | null - role?: string - tenantId?: string | null - avatarUrl?: string | null - machinePersona?: string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: Prisma.AuthAccountCreateNestedManyWithoutUserInput -} - -export type AuthUserUncheckedCreateWithoutSessionsInput = { - id?: string - name?: string | null - email: string - emailVerified?: boolean - image?: string | null - role?: string - tenantId?: string | null - avatarUrl?: string | null - machinePersona?: string | null - createdAt?: Date | string - updatedAt?: Date | string - accounts?: Prisma.AuthAccountUncheckedCreateNestedManyWithoutUserInput -} - -export type AuthUserCreateOrConnectWithoutSessionsInput = { - where: Prisma.AuthUserWhereUniqueInput - create: Prisma.XOR -} - -export type AuthUserUpsertWithoutSessionsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.AuthUserWhereInput -} - -export type AuthUserUpdateToOneWithWhereWithoutSessionsInput = { - where?: Prisma.AuthUserWhereInput - data: Prisma.XOR -} - -export type AuthUserUpdateWithoutSessionsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.StringFieldUpdateOperationsInput | string - emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean - image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - machinePersona?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - accounts?: Prisma.AuthAccountUpdateManyWithoutUserNestedInput -} - -export type AuthUserUncheckedUpdateWithoutSessionsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.StringFieldUpdateOperationsInput | string - emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean - image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - machinePersona?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - accounts?: Prisma.AuthAccountUncheckedUpdateManyWithoutUserNestedInput -} - -export type AuthUserCreateWithoutAccountsInput = { - id?: string - name?: string | null - email: string - emailVerified?: boolean - image?: string | null - role?: string - tenantId?: string | null - avatarUrl?: string | null - machinePersona?: string | null - createdAt?: Date | string - updatedAt?: Date | string - sessions?: Prisma.AuthSessionCreateNestedManyWithoutUserInput -} - -export type AuthUserUncheckedCreateWithoutAccountsInput = { - id?: string - name?: string | null - email: string - emailVerified?: boolean - image?: string | null - role?: string - tenantId?: string | null - avatarUrl?: string | null - machinePersona?: string | null - createdAt?: Date | string - updatedAt?: Date | string - sessions?: Prisma.AuthSessionUncheckedCreateNestedManyWithoutUserInput -} - -export type AuthUserCreateOrConnectWithoutAccountsInput = { - where: Prisma.AuthUserWhereUniqueInput - create: Prisma.XOR -} - -export type AuthUserUpsertWithoutAccountsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.AuthUserWhereInput -} - -export type AuthUserUpdateToOneWithWhereWithoutAccountsInput = { - where?: Prisma.AuthUserWhereInput - data: Prisma.XOR -} - -export type AuthUserUpdateWithoutAccountsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.StringFieldUpdateOperationsInput | string - emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean - image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - machinePersona?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - sessions?: Prisma.AuthSessionUpdateManyWithoutUserNestedInput -} - -export type AuthUserUncheckedUpdateWithoutAccountsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.StringFieldUpdateOperationsInput | string - emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean - image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - machinePersona?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - sessions?: Prisma.AuthSessionUncheckedUpdateManyWithoutUserNestedInput -} - - -/** - * Count Type AuthUserCountOutputType - */ - -export type AuthUserCountOutputType = { - sessions: number - accounts: number -} - -export type AuthUserCountOutputTypeSelect = { - sessions?: boolean | AuthUserCountOutputTypeCountSessionsArgs - accounts?: boolean | AuthUserCountOutputTypeCountAccountsArgs -} - -/** - * AuthUserCountOutputType without action - */ -export type AuthUserCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the AuthUserCountOutputType - */ - select?: Prisma.AuthUserCountOutputTypeSelect | null -} - -/** - * AuthUserCountOutputType without action - */ -export type AuthUserCountOutputTypeCountSessionsArgs = { - where?: Prisma.AuthSessionWhereInput -} - -/** - * AuthUserCountOutputType without action - */ -export type AuthUserCountOutputTypeCountAccountsArgs = { - where?: Prisma.AuthAccountWhereInput -} - - -export type AuthUserSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - email?: boolean - emailVerified?: boolean - image?: boolean - role?: boolean - tenantId?: boolean - avatarUrl?: boolean - machinePersona?: boolean - createdAt?: boolean - updatedAt?: boolean - sessions?: boolean | Prisma.AuthUser$sessionsArgs - accounts?: boolean | Prisma.AuthUser$accountsArgs - _count?: boolean | Prisma.AuthUserCountOutputTypeDefaultArgs -}, ExtArgs["result"]["authUser"]> - -export type AuthUserSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - email?: boolean - emailVerified?: boolean - image?: boolean - role?: boolean - tenantId?: boolean - avatarUrl?: boolean - machinePersona?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["authUser"]> - -export type AuthUserSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - email?: boolean - emailVerified?: boolean - image?: boolean - role?: boolean - tenantId?: boolean - avatarUrl?: boolean - machinePersona?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["authUser"]> - -export type AuthUserSelectScalar = { - id?: boolean - name?: boolean - email?: boolean - emailVerified?: boolean - image?: boolean - role?: boolean - tenantId?: boolean - avatarUrl?: boolean - machinePersona?: boolean - createdAt?: boolean - updatedAt?: boolean -} - -export type AuthUserOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "email" | "emailVerified" | "image" | "role" | "tenantId" | "avatarUrl" | "machinePersona" | "createdAt" | "updatedAt", ExtArgs["result"]["authUser"]> -export type AuthUserInclude = { - sessions?: boolean | Prisma.AuthUser$sessionsArgs - accounts?: boolean | Prisma.AuthUser$accountsArgs - _count?: boolean | Prisma.AuthUserCountOutputTypeDefaultArgs -} -export type AuthUserIncludeCreateManyAndReturn = {} -export type AuthUserIncludeUpdateManyAndReturn = {} - -export type $AuthUserPayload = { - name: "AuthUser" - objects: { - sessions: Prisma.$AuthSessionPayload[] - accounts: Prisma.$AuthAccountPayload[] - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - name: string | null - email: string - emailVerified: boolean - image: string | null - role: string - tenantId: string | null - avatarUrl: string | null - machinePersona: string | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["authUser"]> - composites: {} -} - -export type AuthUserGetPayload = runtime.Types.Result.GetResult - -export type AuthUserCountArgs = - Omit & { - select?: AuthUserCountAggregateInputType | true - } - -export interface AuthUserDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['AuthUser'], meta: { name: 'AuthUser' } } - /** - * Find zero or one AuthUser that matches the filter. - * @param {AuthUserFindUniqueArgs} args - Arguments to find a AuthUser - * @example - * // Get one AuthUser - * const authUser = await prisma.authUser.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AuthUserClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one AuthUser that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {AuthUserFindUniqueOrThrowArgs} args - Arguments to find a AuthUser - * @example - * // Get one AuthUser - * const authUser = await prisma.authUser.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AuthUserClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first AuthUser that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthUserFindFirstArgs} args - Arguments to find a AuthUser - * @example - * // Get one AuthUser - * const authUser = await prisma.authUser.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AuthUserClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first AuthUser that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthUserFindFirstOrThrowArgs} args - Arguments to find a AuthUser - * @example - * // Get one AuthUser - * const authUser = await prisma.authUser.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AuthUserClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more AuthUsers that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthUserFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all AuthUsers - * const authUsers = await prisma.authUser.findMany() - * - * // Get first 10 AuthUsers - * const authUsers = await prisma.authUser.findMany({ take: 10 }) - * - * // Only select the `id` - * const authUserWithIdOnly = await prisma.authUser.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a AuthUser. - * @param {AuthUserCreateArgs} args - Arguments to create a AuthUser. - * @example - * // Create one AuthUser - * const AuthUser = await prisma.authUser.create({ - * data: { - * // ... data to create a AuthUser - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__AuthUserClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many AuthUsers. - * @param {AuthUserCreateManyArgs} args - Arguments to create many AuthUsers. - * @example - * // Create many AuthUsers - * const authUser = await prisma.authUser.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many AuthUsers and returns the data saved in the database. - * @param {AuthUserCreateManyAndReturnArgs} args - Arguments to create many AuthUsers. - * @example - * // Create many AuthUsers - * const authUser = await prisma.authUser.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many AuthUsers and only return the `id` - * const authUserWithIdOnly = await prisma.authUser.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a AuthUser. - * @param {AuthUserDeleteArgs} args - Arguments to delete one AuthUser. - * @example - * // Delete one AuthUser - * const AuthUser = await prisma.authUser.delete({ - * where: { - * // ... filter to delete one AuthUser - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__AuthUserClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one AuthUser. - * @param {AuthUserUpdateArgs} args - Arguments to update one AuthUser. - * @example - * // Update one AuthUser - * const authUser = await prisma.authUser.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__AuthUserClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more AuthUsers. - * @param {AuthUserDeleteManyArgs} args - Arguments to filter AuthUsers to delete. - * @example - * // Delete a few AuthUsers - * const { count } = await prisma.authUser.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more AuthUsers. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthUserUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many AuthUsers - * const authUser = await prisma.authUser.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more AuthUsers and returns the data updated in the database. - * @param {AuthUserUpdateManyAndReturnArgs} args - Arguments to update many AuthUsers. - * @example - * // Update many AuthUsers - * const authUser = await prisma.authUser.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more AuthUsers and only return the `id` - * const authUserWithIdOnly = await prisma.authUser.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one AuthUser. - * @param {AuthUserUpsertArgs} args - Arguments to update or create a AuthUser. - * @example - * // Update or create a AuthUser - * const authUser = await prisma.authUser.upsert({ - * create: { - * // ... data to create a AuthUser - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the AuthUser we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AuthUserClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of AuthUsers. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthUserCountArgs} args - Arguments to filter AuthUsers to count. - * @example - * // Count the number of AuthUsers - * const count = await prisma.authUser.count({ - * where: { - * // ... the filter for the AuthUsers we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a AuthUser. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthUserAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by AuthUser. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthUserGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends AuthUserGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: AuthUserGroupByArgs['orderBy'] } - : { orderBy?: AuthUserGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetAuthUserGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the AuthUser model - */ -readonly fields: AuthUserFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for AuthUser. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__AuthUserClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - sessions = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - accounts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the AuthUser model - */ -export interface AuthUserFieldRefs { - readonly id: Prisma.FieldRef<"AuthUser", 'String'> - readonly name: Prisma.FieldRef<"AuthUser", 'String'> - readonly email: Prisma.FieldRef<"AuthUser", 'String'> - readonly emailVerified: Prisma.FieldRef<"AuthUser", 'Boolean'> - readonly image: Prisma.FieldRef<"AuthUser", 'String'> - readonly role: Prisma.FieldRef<"AuthUser", 'String'> - readonly tenantId: Prisma.FieldRef<"AuthUser", 'String'> - readonly avatarUrl: Prisma.FieldRef<"AuthUser", 'String'> - readonly machinePersona: Prisma.FieldRef<"AuthUser", 'String'> - readonly createdAt: Prisma.FieldRef<"AuthUser", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"AuthUser", 'DateTime'> -} - - -// Custom InputTypes -/** - * AuthUser findUnique - */ -export type AuthUserFindUniqueArgs = { - /** - * Select specific fields to fetch from the AuthUser - */ - select?: Prisma.AuthUserSelect | null - /** - * Omit specific fields from the AuthUser - */ - omit?: Prisma.AuthUserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthUserInclude | null - /** - * Filter, which AuthUser to fetch. - */ - where: Prisma.AuthUserWhereUniqueInput -} - -/** - * AuthUser findUniqueOrThrow - */ -export type AuthUserFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the AuthUser - */ - select?: Prisma.AuthUserSelect | null - /** - * Omit specific fields from the AuthUser - */ - omit?: Prisma.AuthUserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthUserInclude | null - /** - * Filter, which AuthUser to fetch. - */ - where: Prisma.AuthUserWhereUniqueInput -} - -/** - * AuthUser findFirst - */ -export type AuthUserFindFirstArgs = { - /** - * Select specific fields to fetch from the AuthUser - */ - select?: Prisma.AuthUserSelect | null - /** - * Omit specific fields from the AuthUser - */ - omit?: Prisma.AuthUserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthUserInclude | null - /** - * Filter, which AuthUser to fetch. - */ - where?: Prisma.AuthUserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthUsers to fetch. - */ - orderBy?: Prisma.AuthUserOrderByWithRelationInput | Prisma.AuthUserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for AuthUsers. - */ - cursor?: Prisma.AuthUserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthUsers from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthUsers. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of AuthUsers. - */ - distinct?: Prisma.AuthUserScalarFieldEnum | Prisma.AuthUserScalarFieldEnum[] -} - -/** - * AuthUser findFirstOrThrow - */ -export type AuthUserFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the AuthUser - */ - select?: Prisma.AuthUserSelect | null - /** - * Omit specific fields from the AuthUser - */ - omit?: Prisma.AuthUserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthUserInclude | null - /** - * Filter, which AuthUser to fetch. - */ - where?: Prisma.AuthUserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthUsers to fetch. - */ - orderBy?: Prisma.AuthUserOrderByWithRelationInput | Prisma.AuthUserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for AuthUsers. - */ - cursor?: Prisma.AuthUserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthUsers from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthUsers. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of AuthUsers. - */ - distinct?: Prisma.AuthUserScalarFieldEnum | Prisma.AuthUserScalarFieldEnum[] -} - -/** - * AuthUser findMany - */ -export type AuthUserFindManyArgs = { - /** - * Select specific fields to fetch from the AuthUser - */ - select?: Prisma.AuthUserSelect | null - /** - * Omit specific fields from the AuthUser - */ - omit?: Prisma.AuthUserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthUserInclude | null - /** - * Filter, which AuthUsers to fetch. - */ - where?: Prisma.AuthUserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthUsers to fetch. - */ - orderBy?: Prisma.AuthUserOrderByWithRelationInput | Prisma.AuthUserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing AuthUsers. - */ - cursor?: Prisma.AuthUserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthUsers from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthUsers. - */ - skip?: number - distinct?: Prisma.AuthUserScalarFieldEnum | Prisma.AuthUserScalarFieldEnum[] -} - -/** - * AuthUser create - */ -export type AuthUserCreateArgs = { - /** - * Select specific fields to fetch from the AuthUser - */ - select?: Prisma.AuthUserSelect | null - /** - * Omit specific fields from the AuthUser - */ - omit?: Prisma.AuthUserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthUserInclude | null - /** - * The data needed to create a AuthUser. - */ - data: Prisma.XOR -} - -/** - * AuthUser createMany - */ -export type AuthUserCreateManyArgs = { - /** - * The data used to create many AuthUsers. - */ - data: Prisma.AuthUserCreateManyInput | Prisma.AuthUserCreateManyInput[] -} - -/** - * AuthUser createManyAndReturn - */ -export type AuthUserCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the AuthUser - */ - select?: Prisma.AuthUserSelectCreateManyAndReturn | null - /** - * Omit specific fields from the AuthUser - */ - omit?: Prisma.AuthUserOmit | null - /** - * The data used to create many AuthUsers. - */ - data: Prisma.AuthUserCreateManyInput | Prisma.AuthUserCreateManyInput[] -} - -/** - * AuthUser update - */ -export type AuthUserUpdateArgs = { - /** - * Select specific fields to fetch from the AuthUser - */ - select?: Prisma.AuthUserSelect | null - /** - * Omit specific fields from the AuthUser - */ - omit?: Prisma.AuthUserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthUserInclude | null - /** - * The data needed to update a AuthUser. - */ - data: Prisma.XOR - /** - * Choose, which AuthUser to update. - */ - where: Prisma.AuthUserWhereUniqueInput -} - -/** - * AuthUser updateMany - */ -export type AuthUserUpdateManyArgs = { - /** - * The data used to update AuthUsers. - */ - data: Prisma.XOR - /** - * Filter which AuthUsers to update - */ - where?: Prisma.AuthUserWhereInput - /** - * Limit how many AuthUsers to update. - */ - limit?: number -} - -/** - * AuthUser updateManyAndReturn - */ -export type AuthUserUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the AuthUser - */ - select?: Prisma.AuthUserSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the AuthUser - */ - omit?: Prisma.AuthUserOmit | null - /** - * The data used to update AuthUsers. - */ - data: Prisma.XOR - /** - * Filter which AuthUsers to update - */ - where?: Prisma.AuthUserWhereInput - /** - * Limit how many AuthUsers to update. - */ - limit?: number -} - -/** - * AuthUser upsert - */ -export type AuthUserUpsertArgs = { - /** - * Select specific fields to fetch from the AuthUser - */ - select?: Prisma.AuthUserSelect | null - /** - * Omit specific fields from the AuthUser - */ - omit?: Prisma.AuthUserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthUserInclude | null - /** - * The filter to search for the AuthUser to update in case it exists. - */ - where: Prisma.AuthUserWhereUniqueInput - /** - * In case the AuthUser found by the `where` argument doesn't exist, create a new AuthUser with this data. - */ - create: Prisma.XOR - /** - * In case the AuthUser was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * AuthUser delete - */ -export type AuthUserDeleteArgs = { - /** - * Select specific fields to fetch from the AuthUser - */ - select?: Prisma.AuthUserSelect | null - /** - * Omit specific fields from the AuthUser - */ - omit?: Prisma.AuthUserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthUserInclude | null - /** - * Filter which AuthUser to delete. - */ - where: Prisma.AuthUserWhereUniqueInput -} - -/** - * AuthUser deleteMany - */ -export type AuthUserDeleteManyArgs = { - /** - * Filter which AuthUsers to delete - */ - where?: Prisma.AuthUserWhereInput - /** - * Limit how many AuthUsers to delete. - */ - limit?: number -} - -/** - * AuthUser.sessions - */ -export type AuthUser$sessionsArgs = { - /** - * Select specific fields to fetch from the AuthSession - */ - select?: Prisma.AuthSessionSelect | null - /** - * Omit specific fields from the AuthSession - */ - omit?: Prisma.AuthSessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthSessionInclude | null - where?: Prisma.AuthSessionWhereInput - orderBy?: Prisma.AuthSessionOrderByWithRelationInput | Prisma.AuthSessionOrderByWithRelationInput[] - cursor?: Prisma.AuthSessionWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.AuthSessionScalarFieldEnum | Prisma.AuthSessionScalarFieldEnum[] -} - -/** - * AuthUser.accounts - */ -export type AuthUser$accountsArgs = { - /** - * Select specific fields to fetch from the AuthAccount - */ - select?: Prisma.AuthAccountSelect | null - /** - * Omit specific fields from the AuthAccount - */ - omit?: Prisma.AuthAccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthAccountInclude | null - where?: Prisma.AuthAccountWhereInput - orderBy?: Prisma.AuthAccountOrderByWithRelationInput | Prisma.AuthAccountOrderByWithRelationInput[] - cursor?: Prisma.AuthAccountWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.AuthAccountScalarFieldEnum | Prisma.AuthAccountScalarFieldEnum[] -} - -/** - * AuthUser without action - */ -export type AuthUserDefaultArgs = { - /** - * Select specific fields to fetch from the AuthUser - */ - select?: Prisma.AuthUserSelect | null - /** - * Omit specific fields from the AuthUser - */ - omit?: Prisma.AuthUserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AuthUserInclude | null -} diff --git a/src/generated/prisma/models/AuthVerification.ts b/src/generated/prisma/models/AuthVerification.ts deleted file mode 100644 index 1f6fe58..0000000 --- a/src/generated/prisma/models/AuthVerification.ts +++ /dev/null @@ -1,1170 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `AuthVerification` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model AuthVerification - * - */ -export type AuthVerificationModel = runtime.Types.Result.DefaultSelection - -export type AggregateAuthVerification = { - _count: AuthVerificationCountAggregateOutputType | null - _min: AuthVerificationMinAggregateOutputType | null - _max: AuthVerificationMaxAggregateOutputType | null -} - -export type AuthVerificationMinAggregateOutputType = { - id: string | null - identifier: string | null - value: string | null - expiresAt: Date | null - createdAt: Date | null - updatedAt: Date | null -} - -export type AuthVerificationMaxAggregateOutputType = { - id: string | null - identifier: string | null - value: string | null - expiresAt: Date | null - createdAt: Date | null - updatedAt: Date | null -} - -export type AuthVerificationCountAggregateOutputType = { - id: number - identifier: number - value: number - expiresAt: number - createdAt: number - updatedAt: number - _all: number -} - - -export type AuthVerificationMinAggregateInputType = { - id?: true - identifier?: true - value?: true - expiresAt?: true - createdAt?: true - updatedAt?: true -} - -export type AuthVerificationMaxAggregateInputType = { - id?: true - identifier?: true - value?: true - expiresAt?: true - createdAt?: true - updatedAt?: true -} - -export type AuthVerificationCountAggregateInputType = { - id?: true - identifier?: true - value?: true - expiresAt?: true - createdAt?: true - updatedAt?: true - _all?: true -} - -export type AuthVerificationAggregateArgs = { - /** - * Filter which AuthVerification to aggregate. - */ - where?: Prisma.AuthVerificationWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthVerifications to fetch. - */ - orderBy?: Prisma.AuthVerificationOrderByWithRelationInput | Prisma.AuthVerificationOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.AuthVerificationWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthVerifications from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthVerifications. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned AuthVerifications - **/ - _count?: true | AuthVerificationCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: AuthVerificationMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: AuthVerificationMaxAggregateInputType -} - -export type GetAuthVerificationAggregateType = { - [P in keyof T & keyof AggregateAuthVerification]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type AuthVerificationGroupByArgs = { - where?: Prisma.AuthVerificationWhereInput - orderBy?: Prisma.AuthVerificationOrderByWithAggregationInput | Prisma.AuthVerificationOrderByWithAggregationInput[] - by: Prisma.AuthVerificationScalarFieldEnum[] | Prisma.AuthVerificationScalarFieldEnum - having?: Prisma.AuthVerificationScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: AuthVerificationCountAggregateInputType | true - _min?: AuthVerificationMinAggregateInputType - _max?: AuthVerificationMaxAggregateInputType -} - -export type AuthVerificationGroupByOutputType = { - id: string - identifier: string - value: string - expiresAt: Date - createdAt: Date - updatedAt: Date - _count: AuthVerificationCountAggregateOutputType | null - _min: AuthVerificationMinAggregateOutputType | null - _max: AuthVerificationMaxAggregateOutputType | null -} - -type GetAuthVerificationGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof AuthVerificationGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type AuthVerificationWhereInput = { - AND?: Prisma.AuthVerificationWhereInput | Prisma.AuthVerificationWhereInput[] - OR?: Prisma.AuthVerificationWhereInput[] - NOT?: Prisma.AuthVerificationWhereInput | Prisma.AuthVerificationWhereInput[] - id?: Prisma.StringFilter<"AuthVerification"> | string - identifier?: Prisma.StringFilter<"AuthVerification"> | string - value?: Prisma.StringFilter<"AuthVerification"> | string - expiresAt?: Prisma.DateTimeFilter<"AuthVerification"> | Date | string - createdAt?: Prisma.DateTimeFilter<"AuthVerification"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"AuthVerification"> | Date | string -} - -export type AuthVerificationOrderByWithRelationInput = { - id?: Prisma.SortOrder - identifier?: Prisma.SortOrder - value?: Prisma.SortOrder - expiresAt?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type AuthVerificationWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: Prisma.AuthVerificationWhereInput | Prisma.AuthVerificationWhereInput[] - OR?: Prisma.AuthVerificationWhereInput[] - NOT?: Prisma.AuthVerificationWhereInput | Prisma.AuthVerificationWhereInput[] - identifier?: Prisma.StringFilter<"AuthVerification"> | string - value?: Prisma.StringFilter<"AuthVerification"> | string - expiresAt?: Prisma.DateTimeFilter<"AuthVerification"> | Date | string - createdAt?: Prisma.DateTimeFilter<"AuthVerification"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"AuthVerification"> | Date | string -}, "id"> - -export type AuthVerificationOrderByWithAggregationInput = { - id?: Prisma.SortOrder - identifier?: Prisma.SortOrder - value?: Prisma.SortOrder - expiresAt?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - _count?: Prisma.AuthVerificationCountOrderByAggregateInput - _max?: Prisma.AuthVerificationMaxOrderByAggregateInput - _min?: Prisma.AuthVerificationMinOrderByAggregateInput -} - -export type AuthVerificationScalarWhereWithAggregatesInput = { - AND?: Prisma.AuthVerificationScalarWhereWithAggregatesInput | Prisma.AuthVerificationScalarWhereWithAggregatesInput[] - OR?: Prisma.AuthVerificationScalarWhereWithAggregatesInput[] - NOT?: Prisma.AuthVerificationScalarWhereWithAggregatesInput | Prisma.AuthVerificationScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"AuthVerification"> | string - identifier?: Prisma.StringWithAggregatesFilter<"AuthVerification"> | string - value?: Prisma.StringWithAggregatesFilter<"AuthVerification"> | string - expiresAt?: Prisma.DateTimeWithAggregatesFilter<"AuthVerification"> | Date | string - createdAt?: Prisma.DateTimeWithAggregatesFilter<"AuthVerification"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AuthVerification"> | Date | string -} - -export type AuthVerificationCreateInput = { - id?: string - identifier: string - value: string - expiresAt: Date | string - createdAt?: Date | string - updatedAt?: Date | string -} - -export type AuthVerificationUncheckedCreateInput = { - id?: string - identifier: string - value: string - expiresAt: Date | string - createdAt?: Date | string - updatedAt?: Date | string -} - -export type AuthVerificationUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - identifier?: Prisma.StringFieldUpdateOperationsInput | string - value?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthVerificationUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - identifier?: Prisma.StringFieldUpdateOperationsInput | string - value?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthVerificationCreateManyInput = { - id?: string - identifier: string - value: string - expiresAt: Date | string - createdAt?: Date | string - updatedAt?: Date | string -} - -export type AuthVerificationUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - identifier?: Prisma.StringFieldUpdateOperationsInput | string - value?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthVerificationUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - identifier?: Prisma.StringFieldUpdateOperationsInput | string - value?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type AuthVerificationCountOrderByAggregateInput = { - id?: Prisma.SortOrder - identifier?: Prisma.SortOrder - value?: Prisma.SortOrder - expiresAt?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type AuthVerificationMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - identifier?: Prisma.SortOrder - value?: Prisma.SortOrder - expiresAt?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type AuthVerificationMinOrderByAggregateInput = { - id?: Prisma.SortOrder - identifier?: Prisma.SortOrder - value?: Prisma.SortOrder - expiresAt?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - - - -export type AuthVerificationSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - identifier?: boolean - value?: boolean - expiresAt?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["authVerification"]> - -export type AuthVerificationSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - identifier?: boolean - value?: boolean - expiresAt?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["authVerification"]> - -export type AuthVerificationSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - identifier?: boolean - value?: boolean - expiresAt?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["authVerification"]> - -export type AuthVerificationSelectScalar = { - id?: boolean - identifier?: boolean - value?: boolean - expiresAt?: boolean - createdAt?: boolean - updatedAt?: boolean -} - -export type AuthVerificationOmit = runtime.Types.Extensions.GetOmit<"id" | "identifier" | "value" | "expiresAt" | "createdAt" | "updatedAt", ExtArgs["result"]["authVerification"]> - -export type $AuthVerificationPayload = { - name: "AuthVerification" - objects: {} - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - identifier: string - value: string - expiresAt: Date - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["authVerification"]> - composites: {} -} - -export type AuthVerificationGetPayload = runtime.Types.Result.GetResult - -export type AuthVerificationCountArgs = - Omit & { - select?: AuthVerificationCountAggregateInputType | true - } - -export interface AuthVerificationDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['AuthVerification'], meta: { name: 'AuthVerification' } } - /** - * Find zero or one AuthVerification that matches the filter. - * @param {AuthVerificationFindUniqueArgs} args - Arguments to find a AuthVerification - * @example - * // Get one AuthVerification - * const authVerification = await prisma.authVerification.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AuthVerificationClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one AuthVerification that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {AuthVerificationFindUniqueOrThrowArgs} args - Arguments to find a AuthVerification - * @example - * // Get one AuthVerification - * const authVerification = await prisma.authVerification.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AuthVerificationClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first AuthVerification that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthVerificationFindFirstArgs} args - Arguments to find a AuthVerification - * @example - * // Get one AuthVerification - * const authVerification = await prisma.authVerification.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AuthVerificationClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first AuthVerification that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthVerificationFindFirstOrThrowArgs} args - Arguments to find a AuthVerification - * @example - * // Get one AuthVerification - * const authVerification = await prisma.authVerification.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AuthVerificationClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more AuthVerifications that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthVerificationFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all AuthVerifications - * const authVerifications = await prisma.authVerification.findMany() - * - * // Get first 10 AuthVerifications - * const authVerifications = await prisma.authVerification.findMany({ take: 10 }) - * - * // Only select the `id` - * const authVerificationWithIdOnly = await prisma.authVerification.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a AuthVerification. - * @param {AuthVerificationCreateArgs} args - Arguments to create a AuthVerification. - * @example - * // Create one AuthVerification - * const AuthVerification = await prisma.authVerification.create({ - * data: { - * // ... data to create a AuthVerification - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__AuthVerificationClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many AuthVerifications. - * @param {AuthVerificationCreateManyArgs} args - Arguments to create many AuthVerifications. - * @example - * // Create many AuthVerifications - * const authVerification = await prisma.authVerification.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many AuthVerifications and returns the data saved in the database. - * @param {AuthVerificationCreateManyAndReturnArgs} args - Arguments to create many AuthVerifications. - * @example - * // Create many AuthVerifications - * const authVerification = await prisma.authVerification.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many AuthVerifications and only return the `id` - * const authVerificationWithIdOnly = await prisma.authVerification.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a AuthVerification. - * @param {AuthVerificationDeleteArgs} args - Arguments to delete one AuthVerification. - * @example - * // Delete one AuthVerification - * const AuthVerification = await prisma.authVerification.delete({ - * where: { - * // ... filter to delete one AuthVerification - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__AuthVerificationClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one AuthVerification. - * @param {AuthVerificationUpdateArgs} args - Arguments to update one AuthVerification. - * @example - * // Update one AuthVerification - * const authVerification = await prisma.authVerification.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__AuthVerificationClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more AuthVerifications. - * @param {AuthVerificationDeleteManyArgs} args - Arguments to filter AuthVerifications to delete. - * @example - * // Delete a few AuthVerifications - * const { count } = await prisma.authVerification.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more AuthVerifications. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthVerificationUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many AuthVerifications - * const authVerification = await prisma.authVerification.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more AuthVerifications and returns the data updated in the database. - * @param {AuthVerificationUpdateManyAndReturnArgs} args - Arguments to update many AuthVerifications. - * @example - * // Update many AuthVerifications - * const authVerification = await prisma.authVerification.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more AuthVerifications and only return the `id` - * const authVerificationWithIdOnly = await prisma.authVerification.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one AuthVerification. - * @param {AuthVerificationUpsertArgs} args - Arguments to update or create a AuthVerification. - * @example - * // Update or create a AuthVerification - * const authVerification = await prisma.authVerification.upsert({ - * create: { - * // ... data to create a AuthVerification - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the AuthVerification we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AuthVerificationClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of AuthVerifications. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthVerificationCountArgs} args - Arguments to filter AuthVerifications to count. - * @example - * // Count the number of AuthVerifications - * const count = await prisma.authVerification.count({ - * where: { - * // ... the filter for the AuthVerifications we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a AuthVerification. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthVerificationAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by AuthVerification. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AuthVerificationGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends AuthVerificationGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: AuthVerificationGroupByArgs['orderBy'] } - : { orderBy?: AuthVerificationGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetAuthVerificationGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the AuthVerification model - */ -readonly fields: AuthVerificationFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for AuthVerification. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__AuthVerificationClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the AuthVerification model - */ -export interface AuthVerificationFieldRefs { - readonly id: Prisma.FieldRef<"AuthVerification", 'String'> - readonly identifier: Prisma.FieldRef<"AuthVerification", 'String'> - readonly value: Prisma.FieldRef<"AuthVerification", 'String'> - readonly expiresAt: Prisma.FieldRef<"AuthVerification", 'DateTime'> - readonly createdAt: Prisma.FieldRef<"AuthVerification", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"AuthVerification", 'DateTime'> -} - - -// Custom InputTypes -/** - * AuthVerification findUnique - */ -export type AuthVerificationFindUniqueArgs = { - /** - * Select specific fields to fetch from the AuthVerification - */ - select?: Prisma.AuthVerificationSelect | null - /** - * Omit specific fields from the AuthVerification - */ - omit?: Prisma.AuthVerificationOmit | null - /** - * Filter, which AuthVerification to fetch. - */ - where: Prisma.AuthVerificationWhereUniqueInput -} - -/** - * AuthVerification findUniqueOrThrow - */ -export type AuthVerificationFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the AuthVerification - */ - select?: Prisma.AuthVerificationSelect | null - /** - * Omit specific fields from the AuthVerification - */ - omit?: Prisma.AuthVerificationOmit | null - /** - * Filter, which AuthVerification to fetch. - */ - where: Prisma.AuthVerificationWhereUniqueInput -} - -/** - * AuthVerification findFirst - */ -export type AuthVerificationFindFirstArgs = { - /** - * Select specific fields to fetch from the AuthVerification - */ - select?: Prisma.AuthVerificationSelect | null - /** - * Omit specific fields from the AuthVerification - */ - omit?: Prisma.AuthVerificationOmit | null - /** - * Filter, which AuthVerification to fetch. - */ - where?: Prisma.AuthVerificationWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthVerifications to fetch. - */ - orderBy?: Prisma.AuthVerificationOrderByWithRelationInput | Prisma.AuthVerificationOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for AuthVerifications. - */ - cursor?: Prisma.AuthVerificationWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthVerifications from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthVerifications. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of AuthVerifications. - */ - distinct?: Prisma.AuthVerificationScalarFieldEnum | Prisma.AuthVerificationScalarFieldEnum[] -} - -/** - * AuthVerification findFirstOrThrow - */ -export type AuthVerificationFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the AuthVerification - */ - select?: Prisma.AuthVerificationSelect | null - /** - * Omit specific fields from the AuthVerification - */ - omit?: Prisma.AuthVerificationOmit | null - /** - * Filter, which AuthVerification to fetch. - */ - where?: Prisma.AuthVerificationWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthVerifications to fetch. - */ - orderBy?: Prisma.AuthVerificationOrderByWithRelationInput | Prisma.AuthVerificationOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for AuthVerifications. - */ - cursor?: Prisma.AuthVerificationWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthVerifications from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthVerifications. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of AuthVerifications. - */ - distinct?: Prisma.AuthVerificationScalarFieldEnum | Prisma.AuthVerificationScalarFieldEnum[] -} - -/** - * AuthVerification findMany - */ -export type AuthVerificationFindManyArgs = { - /** - * Select specific fields to fetch from the AuthVerification - */ - select?: Prisma.AuthVerificationSelect | null - /** - * Omit specific fields from the AuthVerification - */ - omit?: Prisma.AuthVerificationOmit | null - /** - * Filter, which AuthVerifications to fetch. - */ - where?: Prisma.AuthVerificationWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AuthVerifications to fetch. - */ - orderBy?: Prisma.AuthVerificationOrderByWithRelationInput | Prisma.AuthVerificationOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing AuthVerifications. - */ - cursor?: Prisma.AuthVerificationWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AuthVerifications from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` AuthVerifications. - */ - skip?: number - distinct?: Prisma.AuthVerificationScalarFieldEnum | Prisma.AuthVerificationScalarFieldEnum[] -} - -/** - * AuthVerification create - */ -export type AuthVerificationCreateArgs = { - /** - * Select specific fields to fetch from the AuthVerification - */ - select?: Prisma.AuthVerificationSelect | null - /** - * Omit specific fields from the AuthVerification - */ - omit?: Prisma.AuthVerificationOmit | null - /** - * The data needed to create a AuthVerification. - */ - data: Prisma.XOR -} - -/** - * AuthVerification createMany - */ -export type AuthVerificationCreateManyArgs = { - /** - * The data used to create many AuthVerifications. - */ - data: Prisma.AuthVerificationCreateManyInput | Prisma.AuthVerificationCreateManyInput[] -} - -/** - * AuthVerification createManyAndReturn - */ -export type AuthVerificationCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the AuthVerification - */ - select?: Prisma.AuthVerificationSelectCreateManyAndReturn | null - /** - * Omit specific fields from the AuthVerification - */ - omit?: Prisma.AuthVerificationOmit | null - /** - * The data used to create many AuthVerifications. - */ - data: Prisma.AuthVerificationCreateManyInput | Prisma.AuthVerificationCreateManyInput[] -} - -/** - * AuthVerification update - */ -export type AuthVerificationUpdateArgs = { - /** - * Select specific fields to fetch from the AuthVerification - */ - select?: Prisma.AuthVerificationSelect | null - /** - * Omit specific fields from the AuthVerification - */ - omit?: Prisma.AuthVerificationOmit | null - /** - * The data needed to update a AuthVerification. - */ - data: Prisma.XOR - /** - * Choose, which AuthVerification to update. - */ - where: Prisma.AuthVerificationWhereUniqueInput -} - -/** - * AuthVerification updateMany - */ -export type AuthVerificationUpdateManyArgs = { - /** - * The data used to update AuthVerifications. - */ - data: Prisma.XOR - /** - * Filter which AuthVerifications to update - */ - where?: Prisma.AuthVerificationWhereInput - /** - * Limit how many AuthVerifications to update. - */ - limit?: number -} - -/** - * AuthVerification updateManyAndReturn - */ -export type AuthVerificationUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the AuthVerification - */ - select?: Prisma.AuthVerificationSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the AuthVerification - */ - omit?: Prisma.AuthVerificationOmit | null - /** - * The data used to update AuthVerifications. - */ - data: Prisma.XOR - /** - * Filter which AuthVerifications to update - */ - where?: Prisma.AuthVerificationWhereInput - /** - * Limit how many AuthVerifications to update. - */ - limit?: number -} - -/** - * AuthVerification upsert - */ -export type AuthVerificationUpsertArgs = { - /** - * Select specific fields to fetch from the AuthVerification - */ - select?: Prisma.AuthVerificationSelect | null - /** - * Omit specific fields from the AuthVerification - */ - omit?: Prisma.AuthVerificationOmit | null - /** - * The filter to search for the AuthVerification to update in case it exists. - */ - where: Prisma.AuthVerificationWhereUniqueInput - /** - * In case the AuthVerification found by the `where` argument doesn't exist, create a new AuthVerification with this data. - */ - create: Prisma.XOR - /** - * In case the AuthVerification was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * AuthVerification delete - */ -export type AuthVerificationDeleteArgs = { - /** - * Select specific fields to fetch from the AuthVerification - */ - select?: Prisma.AuthVerificationSelect | null - /** - * Omit specific fields from the AuthVerification - */ - omit?: Prisma.AuthVerificationOmit | null - /** - * Filter which AuthVerification to delete. - */ - where: Prisma.AuthVerificationWhereUniqueInput -} - -/** - * AuthVerification deleteMany - */ -export type AuthVerificationDeleteManyArgs = { - /** - * Filter which AuthVerifications to delete - */ - where?: Prisma.AuthVerificationWhereInput - /** - * Limit how many AuthVerifications to delete. - */ - limit?: number -} - -/** - * AuthVerification without action - */ -export type AuthVerificationDefaultArgs = { - /** - * Select specific fields to fetch from the AuthVerification - */ - select?: Prisma.AuthVerificationSelect | null - /** - * Omit specific fields from the AuthVerification - */ - omit?: Prisma.AuthVerificationOmit | null -} diff --git a/src/generated/prisma/models/Company.ts b/src/generated/prisma/models/Company.ts deleted file mode 100644 index 884a248..0000000 --- a/src/generated/prisma/models/Company.ts +++ /dev/null @@ -1,2646 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `Company` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model Company - * - */ -export type CompanyModel = runtime.Types.Result.DefaultSelection - -export type AggregateCompany = { - _count: CompanyCountAggregateOutputType | null - _avg: CompanyAvgAggregateOutputType | null - _sum: CompanySumAggregateOutputType | null - _min: CompanyMinAggregateOutputType | null - _max: CompanyMaxAggregateOutputType | null -} - -export type CompanyAvgAggregateOutputType = { - contractedHoursPerMonth: number | null -} - -export type CompanySumAggregateOutputType = { - contractedHoursPerMonth: number | null -} - -export type CompanyMinAggregateOutputType = { - id: string | null - tenantId: string | null - name: string | null - slug: string | null - provisioningCode: string | null - isAvulso: boolean | null - contractedHoursPerMonth: number | null - cnpj: string | null - domain: string | null - phone: string | null - description: string | null - address: string | null - legalName: string | null - tradeName: string | null - stateRegistration: string | null - stateRegistrationType: $Enums.CompanyStateRegistrationType | null - primaryCnae: string | null - timezone: string | null - supportEmail: string | null - billingEmail: string | null - hasBranches: boolean | null - privacyPolicyAccepted: boolean | null - privacyPolicyReference: string | null - notes: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type CompanyMaxAggregateOutputType = { - id: string | null - tenantId: string | null - name: string | null - slug: string | null - provisioningCode: string | null - isAvulso: boolean | null - contractedHoursPerMonth: number | null - cnpj: string | null - domain: string | null - phone: string | null - description: string | null - address: string | null - legalName: string | null - tradeName: string | null - stateRegistration: string | null - stateRegistrationType: $Enums.CompanyStateRegistrationType | null - primaryCnae: string | null - timezone: string | null - supportEmail: string | null - billingEmail: string | null - hasBranches: boolean | null - privacyPolicyAccepted: boolean | null - privacyPolicyReference: string | null - notes: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type CompanyCountAggregateOutputType = { - id: number - tenantId: number - name: number - slug: number - provisioningCode: number - isAvulso: number - contractedHoursPerMonth: number - cnpj: number - domain: number - phone: number - description: number - address: number - legalName: number - tradeName: number - stateRegistration: number - stateRegistrationType: number - primaryCnae: number - timezone: number - businessHours: number - supportEmail: number - billingEmail: number - contactPreferences: number - clientDomains: number - communicationChannels: number - fiscalAddress: number - hasBranches: number - regulatedEnvironments: number - privacyPolicyAccepted: number - privacyPolicyReference: number - privacyPolicyMetadata: number - contacts: number - locations: number - contracts: number - sla: number - tags: number - customFields: number - notes: number - createdAt: number - updatedAt: number - _all: number -} - - -export type CompanyAvgAggregateInputType = { - contractedHoursPerMonth?: true -} - -export type CompanySumAggregateInputType = { - contractedHoursPerMonth?: true -} - -export type CompanyMinAggregateInputType = { - id?: true - tenantId?: true - name?: true - slug?: true - provisioningCode?: true - isAvulso?: true - contractedHoursPerMonth?: true - cnpj?: true - domain?: true - phone?: true - description?: true - address?: true - legalName?: true - tradeName?: true - stateRegistration?: true - stateRegistrationType?: true - primaryCnae?: true - timezone?: true - supportEmail?: true - billingEmail?: true - hasBranches?: true - privacyPolicyAccepted?: true - privacyPolicyReference?: true - notes?: true - createdAt?: true - updatedAt?: true -} - -export type CompanyMaxAggregateInputType = { - id?: true - tenantId?: true - name?: true - slug?: true - provisioningCode?: true - isAvulso?: true - contractedHoursPerMonth?: true - cnpj?: true - domain?: true - phone?: true - description?: true - address?: true - legalName?: true - tradeName?: true - stateRegistration?: true - stateRegistrationType?: true - primaryCnae?: true - timezone?: true - supportEmail?: true - billingEmail?: true - hasBranches?: true - privacyPolicyAccepted?: true - privacyPolicyReference?: true - notes?: true - createdAt?: true - updatedAt?: true -} - -export type CompanyCountAggregateInputType = { - id?: true - tenantId?: true - name?: true - slug?: true - provisioningCode?: true - isAvulso?: true - contractedHoursPerMonth?: true - cnpj?: true - domain?: true - phone?: true - description?: true - address?: true - legalName?: true - tradeName?: true - stateRegistration?: true - stateRegistrationType?: true - primaryCnae?: true - timezone?: true - businessHours?: true - supportEmail?: true - billingEmail?: true - contactPreferences?: true - clientDomains?: true - communicationChannels?: true - fiscalAddress?: true - hasBranches?: true - regulatedEnvironments?: true - privacyPolicyAccepted?: true - privacyPolicyReference?: true - privacyPolicyMetadata?: true - contacts?: true - locations?: true - contracts?: true - sla?: true - tags?: true - customFields?: true - notes?: true - createdAt?: true - updatedAt?: true - _all?: true -} - -export type CompanyAggregateArgs = { - /** - * Filter which Company to aggregate. - */ - where?: Prisma.CompanyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Companies to fetch. - */ - orderBy?: Prisma.CompanyOrderByWithRelationInput | Prisma.CompanyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.CompanyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Companies from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Companies. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Companies - **/ - _count?: true | CompanyCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: CompanyAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: CompanySumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: CompanyMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: CompanyMaxAggregateInputType -} - -export type GetCompanyAggregateType = { - [P in keyof T & keyof AggregateCompany]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type CompanyGroupByArgs = { - where?: Prisma.CompanyWhereInput - orderBy?: Prisma.CompanyOrderByWithAggregationInput | Prisma.CompanyOrderByWithAggregationInput[] - by: Prisma.CompanyScalarFieldEnum[] | Prisma.CompanyScalarFieldEnum - having?: Prisma.CompanyScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: CompanyCountAggregateInputType | true - _avg?: CompanyAvgAggregateInputType - _sum?: CompanySumAggregateInputType - _min?: CompanyMinAggregateInputType - _max?: CompanyMaxAggregateInputType -} - -export type CompanyGroupByOutputType = { - id: string - tenantId: string - name: string - slug: string - provisioningCode: string - isAvulso: boolean - contractedHoursPerMonth: number | null - cnpj: string | null - domain: string | null - phone: string | null - description: string | null - address: string | null - legalName: string | null - tradeName: string | null - stateRegistration: string | null - stateRegistrationType: $Enums.CompanyStateRegistrationType | null - primaryCnae: string | null - timezone: string | null - businessHours: runtime.JsonValue | null - supportEmail: string | null - billingEmail: string | null - contactPreferences: runtime.JsonValue | null - clientDomains: runtime.JsonValue | null - communicationChannels: runtime.JsonValue | null - fiscalAddress: runtime.JsonValue | null - hasBranches: boolean - regulatedEnvironments: runtime.JsonValue | null - privacyPolicyAccepted: boolean - privacyPolicyReference: string | null - privacyPolicyMetadata: runtime.JsonValue | null - contacts: runtime.JsonValue | null - locations: runtime.JsonValue | null - contracts: runtime.JsonValue | null - sla: runtime.JsonValue | null - tags: runtime.JsonValue | null - customFields: runtime.JsonValue | null - notes: string | null - createdAt: Date - updatedAt: Date - _count: CompanyCountAggregateOutputType | null - _avg: CompanyAvgAggregateOutputType | null - _sum: CompanySumAggregateOutputType | null - _min: CompanyMinAggregateOutputType | null - _max: CompanyMaxAggregateOutputType | null -} - -type GetCompanyGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof CompanyGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type CompanyWhereInput = { - AND?: Prisma.CompanyWhereInput | Prisma.CompanyWhereInput[] - OR?: Prisma.CompanyWhereInput[] - NOT?: Prisma.CompanyWhereInput | Prisma.CompanyWhereInput[] - id?: Prisma.StringFilter<"Company"> | string - tenantId?: Prisma.StringFilter<"Company"> | string - name?: Prisma.StringFilter<"Company"> | string - slug?: Prisma.StringFilter<"Company"> | string - provisioningCode?: Prisma.StringFilter<"Company"> | string - isAvulso?: Prisma.BoolFilter<"Company"> | boolean - contractedHoursPerMonth?: Prisma.FloatNullableFilter<"Company"> | number | null - cnpj?: Prisma.StringNullableFilter<"Company"> | string | null - domain?: Prisma.StringNullableFilter<"Company"> | string | null - phone?: Prisma.StringNullableFilter<"Company"> | string | null - description?: Prisma.StringNullableFilter<"Company"> | string | null - address?: Prisma.StringNullableFilter<"Company"> | string | null - legalName?: Prisma.StringNullableFilter<"Company"> | string | null - tradeName?: Prisma.StringNullableFilter<"Company"> | string | null - stateRegistration?: Prisma.StringNullableFilter<"Company"> | string | null - stateRegistrationType?: Prisma.EnumCompanyStateRegistrationTypeNullableFilter<"Company"> | $Enums.CompanyStateRegistrationType | null - primaryCnae?: Prisma.StringNullableFilter<"Company"> | string | null - timezone?: Prisma.StringNullableFilter<"Company"> | string | null - businessHours?: Prisma.JsonNullableFilter<"Company"> - supportEmail?: Prisma.StringNullableFilter<"Company"> | string | null - billingEmail?: Prisma.StringNullableFilter<"Company"> | string | null - contactPreferences?: Prisma.JsonNullableFilter<"Company"> - clientDomains?: Prisma.JsonNullableFilter<"Company"> - communicationChannels?: Prisma.JsonNullableFilter<"Company"> - fiscalAddress?: Prisma.JsonNullableFilter<"Company"> - hasBranches?: Prisma.BoolFilter<"Company"> | boolean - regulatedEnvironments?: Prisma.JsonNullableFilter<"Company"> - privacyPolicyAccepted?: Prisma.BoolFilter<"Company"> | boolean - privacyPolicyReference?: Prisma.StringNullableFilter<"Company"> | string | null - privacyPolicyMetadata?: Prisma.JsonNullableFilter<"Company"> - contacts?: Prisma.JsonNullableFilter<"Company"> - locations?: Prisma.JsonNullableFilter<"Company"> - contracts?: Prisma.JsonNullableFilter<"Company"> - sla?: Prisma.JsonNullableFilter<"Company"> - tags?: Prisma.JsonNullableFilter<"Company"> - customFields?: Prisma.JsonNullableFilter<"Company"> - notes?: Prisma.StringNullableFilter<"Company"> | string | null - createdAt?: Prisma.DateTimeFilter<"Company"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Company"> | Date | string - users?: Prisma.UserListRelationFilter - tickets?: Prisma.TicketListRelationFilter -} - -export type CompanyOrderByWithRelationInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - slug?: Prisma.SortOrder - provisioningCode?: Prisma.SortOrder - isAvulso?: Prisma.SortOrder - contractedHoursPerMonth?: Prisma.SortOrderInput | Prisma.SortOrder - cnpj?: Prisma.SortOrderInput | Prisma.SortOrder - domain?: Prisma.SortOrderInput | Prisma.SortOrder - phone?: Prisma.SortOrderInput | Prisma.SortOrder - description?: Prisma.SortOrderInput | Prisma.SortOrder - address?: Prisma.SortOrderInput | Prisma.SortOrder - legalName?: Prisma.SortOrderInput | Prisma.SortOrder - tradeName?: Prisma.SortOrderInput | Prisma.SortOrder - stateRegistration?: Prisma.SortOrderInput | Prisma.SortOrder - stateRegistrationType?: Prisma.SortOrderInput | Prisma.SortOrder - primaryCnae?: Prisma.SortOrderInput | Prisma.SortOrder - timezone?: Prisma.SortOrderInput | Prisma.SortOrder - businessHours?: Prisma.SortOrderInput | Prisma.SortOrder - supportEmail?: Prisma.SortOrderInput | Prisma.SortOrder - billingEmail?: Prisma.SortOrderInput | Prisma.SortOrder - contactPreferences?: Prisma.SortOrderInput | Prisma.SortOrder - clientDomains?: Prisma.SortOrderInput | Prisma.SortOrder - communicationChannels?: Prisma.SortOrderInput | Prisma.SortOrder - fiscalAddress?: Prisma.SortOrderInput | Prisma.SortOrder - hasBranches?: Prisma.SortOrder - regulatedEnvironments?: Prisma.SortOrderInput | Prisma.SortOrder - privacyPolicyAccepted?: Prisma.SortOrder - privacyPolicyReference?: Prisma.SortOrderInput | Prisma.SortOrder - privacyPolicyMetadata?: Prisma.SortOrderInput | Prisma.SortOrder - contacts?: Prisma.SortOrderInput | Prisma.SortOrder - locations?: Prisma.SortOrderInput | Prisma.SortOrder - contracts?: Prisma.SortOrderInput | Prisma.SortOrder - sla?: Prisma.SortOrderInput | Prisma.SortOrder - tags?: Prisma.SortOrderInput | Prisma.SortOrder - customFields?: Prisma.SortOrderInput | Prisma.SortOrder - notes?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - users?: Prisma.UserOrderByRelationAggregateInput - tickets?: Prisma.TicketOrderByRelationAggregateInput -} - -export type CompanyWhereUniqueInput = Prisma.AtLeast<{ - id?: string - provisioningCode?: string - tenantId_slug?: Prisma.CompanyTenantIdSlugCompoundUniqueInput - AND?: Prisma.CompanyWhereInput | Prisma.CompanyWhereInput[] - OR?: Prisma.CompanyWhereInput[] - NOT?: Prisma.CompanyWhereInput | Prisma.CompanyWhereInput[] - tenantId?: Prisma.StringFilter<"Company"> | string - name?: Prisma.StringFilter<"Company"> | string - slug?: Prisma.StringFilter<"Company"> | string - isAvulso?: Prisma.BoolFilter<"Company"> | boolean - contractedHoursPerMonth?: Prisma.FloatNullableFilter<"Company"> | number | null - cnpj?: Prisma.StringNullableFilter<"Company"> | string | null - domain?: Prisma.StringNullableFilter<"Company"> | string | null - phone?: Prisma.StringNullableFilter<"Company"> | string | null - description?: Prisma.StringNullableFilter<"Company"> | string | null - address?: Prisma.StringNullableFilter<"Company"> | string | null - legalName?: Prisma.StringNullableFilter<"Company"> | string | null - tradeName?: Prisma.StringNullableFilter<"Company"> | string | null - stateRegistration?: Prisma.StringNullableFilter<"Company"> | string | null - stateRegistrationType?: Prisma.EnumCompanyStateRegistrationTypeNullableFilter<"Company"> | $Enums.CompanyStateRegistrationType | null - primaryCnae?: Prisma.StringNullableFilter<"Company"> | string | null - timezone?: Prisma.StringNullableFilter<"Company"> | string | null - businessHours?: Prisma.JsonNullableFilter<"Company"> - supportEmail?: Prisma.StringNullableFilter<"Company"> | string | null - billingEmail?: Prisma.StringNullableFilter<"Company"> | string | null - contactPreferences?: Prisma.JsonNullableFilter<"Company"> - clientDomains?: Prisma.JsonNullableFilter<"Company"> - communicationChannels?: Prisma.JsonNullableFilter<"Company"> - fiscalAddress?: Prisma.JsonNullableFilter<"Company"> - hasBranches?: Prisma.BoolFilter<"Company"> | boolean - regulatedEnvironments?: Prisma.JsonNullableFilter<"Company"> - privacyPolicyAccepted?: Prisma.BoolFilter<"Company"> | boolean - privacyPolicyReference?: Prisma.StringNullableFilter<"Company"> | string | null - privacyPolicyMetadata?: Prisma.JsonNullableFilter<"Company"> - contacts?: Prisma.JsonNullableFilter<"Company"> - locations?: Prisma.JsonNullableFilter<"Company"> - contracts?: Prisma.JsonNullableFilter<"Company"> - sla?: Prisma.JsonNullableFilter<"Company"> - tags?: Prisma.JsonNullableFilter<"Company"> - customFields?: Prisma.JsonNullableFilter<"Company"> - notes?: Prisma.StringNullableFilter<"Company"> | string | null - createdAt?: Prisma.DateTimeFilter<"Company"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Company"> | Date | string - users?: Prisma.UserListRelationFilter - tickets?: Prisma.TicketListRelationFilter -}, "id" | "provisioningCode" | "tenantId_slug"> - -export type CompanyOrderByWithAggregationInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - slug?: Prisma.SortOrder - provisioningCode?: Prisma.SortOrder - isAvulso?: Prisma.SortOrder - contractedHoursPerMonth?: Prisma.SortOrderInput | Prisma.SortOrder - cnpj?: Prisma.SortOrderInput | Prisma.SortOrder - domain?: Prisma.SortOrderInput | Prisma.SortOrder - phone?: Prisma.SortOrderInput | Prisma.SortOrder - description?: Prisma.SortOrderInput | Prisma.SortOrder - address?: Prisma.SortOrderInput | Prisma.SortOrder - legalName?: Prisma.SortOrderInput | Prisma.SortOrder - tradeName?: Prisma.SortOrderInput | Prisma.SortOrder - stateRegistration?: Prisma.SortOrderInput | Prisma.SortOrder - stateRegistrationType?: Prisma.SortOrderInput | Prisma.SortOrder - primaryCnae?: Prisma.SortOrderInput | Prisma.SortOrder - timezone?: Prisma.SortOrderInput | Prisma.SortOrder - businessHours?: Prisma.SortOrderInput | Prisma.SortOrder - supportEmail?: Prisma.SortOrderInput | Prisma.SortOrder - billingEmail?: Prisma.SortOrderInput | Prisma.SortOrder - contactPreferences?: Prisma.SortOrderInput | Prisma.SortOrder - clientDomains?: Prisma.SortOrderInput | Prisma.SortOrder - communicationChannels?: Prisma.SortOrderInput | Prisma.SortOrder - fiscalAddress?: Prisma.SortOrderInput | Prisma.SortOrder - hasBranches?: Prisma.SortOrder - regulatedEnvironments?: Prisma.SortOrderInput | Prisma.SortOrder - privacyPolicyAccepted?: Prisma.SortOrder - privacyPolicyReference?: Prisma.SortOrderInput | Prisma.SortOrder - privacyPolicyMetadata?: Prisma.SortOrderInput | Prisma.SortOrder - contacts?: Prisma.SortOrderInput | Prisma.SortOrder - locations?: Prisma.SortOrderInput | Prisma.SortOrder - contracts?: Prisma.SortOrderInput | Prisma.SortOrder - sla?: Prisma.SortOrderInput | Prisma.SortOrder - tags?: Prisma.SortOrderInput | Prisma.SortOrder - customFields?: Prisma.SortOrderInput | Prisma.SortOrder - notes?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - _count?: Prisma.CompanyCountOrderByAggregateInput - _avg?: Prisma.CompanyAvgOrderByAggregateInput - _max?: Prisma.CompanyMaxOrderByAggregateInput - _min?: Prisma.CompanyMinOrderByAggregateInput - _sum?: Prisma.CompanySumOrderByAggregateInput -} - -export type CompanyScalarWhereWithAggregatesInput = { - AND?: Prisma.CompanyScalarWhereWithAggregatesInput | Prisma.CompanyScalarWhereWithAggregatesInput[] - OR?: Prisma.CompanyScalarWhereWithAggregatesInput[] - NOT?: Prisma.CompanyScalarWhereWithAggregatesInput | Prisma.CompanyScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"Company"> | string - tenantId?: Prisma.StringWithAggregatesFilter<"Company"> | string - name?: Prisma.StringWithAggregatesFilter<"Company"> | string - slug?: Prisma.StringWithAggregatesFilter<"Company"> | string - provisioningCode?: Prisma.StringWithAggregatesFilter<"Company"> | string - isAvulso?: Prisma.BoolWithAggregatesFilter<"Company"> | boolean - contractedHoursPerMonth?: Prisma.FloatNullableWithAggregatesFilter<"Company"> | number | null - cnpj?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null - domain?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null - phone?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null - description?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null - address?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null - legalName?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null - tradeName?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null - stateRegistration?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null - stateRegistrationType?: Prisma.EnumCompanyStateRegistrationTypeNullableWithAggregatesFilter<"Company"> | $Enums.CompanyStateRegistrationType | null - primaryCnae?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null - timezone?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null - businessHours?: Prisma.JsonNullableWithAggregatesFilter<"Company"> - supportEmail?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null - billingEmail?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null - contactPreferences?: Prisma.JsonNullableWithAggregatesFilter<"Company"> - clientDomains?: Prisma.JsonNullableWithAggregatesFilter<"Company"> - communicationChannels?: Prisma.JsonNullableWithAggregatesFilter<"Company"> - fiscalAddress?: Prisma.JsonNullableWithAggregatesFilter<"Company"> - hasBranches?: Prisma.BoolWithAggregatesFilter<"Company"> | boolean - regulatedEnvironments?: Prisma.JsonNullableWithAggregatesFilter<"Company"> - privacyPolicyAccepted?: Prisma.BoolWithAggregatesFilter<"Company"> | boolean - privacyPolicyReference?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null - privacyPolicyMetadata?: Prisma.JsonNullableWithAggregatesFilter<"Company"> - contacts?: Prisma.JsonNullableWithAggregatesFilter<"Company"> - locations?: Prisma.JsonNullableWithAggregatesFilter<"Company"> - contracts?: Prisma.JsonNullableWithAggregatesFilter<"Company"> - sla?: Prisma.JsonNullableWithAggregatesFilter<"Company"> - tags?: Prisma.JsonNullableWithAggregatesFilter<"Company"> - customFields?: Prisma.JsonNullableWithAggregatesFilter<"Company"> - notes?: Prisma.StringNullableWithAggregatesFilter<"Company"> | string | null - createdAt?: Prisma.DateTimeWithAggregatesFilter<"Company"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Company"> | Date | string -} - -export type CompanyCreateInput = { - id?: string - tenantId: string - name: string - slug: string - provisioningCode: string - isAvulso?: boolean - contractedHoursPerMonth?: number | null - cnpj?: string | null - domain?: string | null - phone?: string | null - description?: string | null - address?: string | null - legalName?: string | null - tradeName?: string | null - stateRegistration?: string | null - stateRegistrationType?: $Enums.CompanyStateRegistrationType | null - primaryCnae?: string | null - timezone?: string | null - businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - supportEmail?: string | null - billingEmail?: string | null - contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - hasBranches?: boolean - regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - privacyPolicyAccepted?: boolean - privacyPolicyReference?: string | null - privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - notes?: string | null - createdAt?: Date | string - updatedAt?: Date | string - users?: Prisma.UserCreateNestedManyWithoutCompanyInput - tickets?: Prisma.TicketCreateNestedManyWithoutCompanyInput -} - -export type CompanyUncheckedCreateInput = { - id?: string - tenantId: string - name: string - slug: string - provisioningCode: string - isAvulso?: boolean - contractedHoursPerMonth?: number | null - cnpj?: string | null - domain?: string | null - phone?: string | null - description?: string | null - address?: string | null - legalName?: string | null - tradeName?: string | null - stateRegistration?: string | null - stateRegistrationType?: $Enums.CompanyStateRegistrationType | null - primaryCnae?: string | null - timezone?: string | null - businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - supportEmail?: string | null - billingEmail?: string | null - contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - hasBranches?: boolean - regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - privacyPolicyAccepted?: boolean - privacyPolicyReference?: string | null - privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - notes?: string | null - createdAt?: Date | string - updatedAt?: Date | string - users?: Prisma.UserUncheckedCreateNestedManyWithoutCompanyInput - tickets?: Prisma.TicketUncheckedCreateNestedManyWithoutCompanyInput -} - -export type CompanyUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - slug?: Prisma.StringFieldUpdateOperationsInput | string - provisioningCode?: Prisma.StringFieldUpdateOperationsInput | string - isAvulso?: Prisma.BoolFieldUpdateOperationsInput | boolean - contractedHoursPerMonth?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null - cnpj?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - domain?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - legalName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - tradeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - stateRegistration?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - stateRegistrationType?: Prisma.NullableEnumCompanyStateRegistrationTypeFieldUpdateOperationsInput | $Enums.CompanyStateRegistrationType | null - primaryCnae?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - supportEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - billingEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - hasBranches?: Prisma.BoolFieldUpdateOperationsInput | boolean - regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - privacyPolicyAccepted?: Prisma.BoolFieldUpdateOperationsInput | boolean - privacyPolicyReference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - users?: Prisma.UserUpdateManyWithoutCompanyNestedInput - tickets?: Prisma.TicketUpdateManyWithoutCompanyNestedInput -} - -export type CompanyUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - slug?: Prisma.StringFieldUpdateOperationsInput | string - provisioningCode?: Prisma.StringFieldUpdateOperationsInput | string - isAvulso?: Prisma.BoolFieldUpdateOperationsInput | boolean - contractedHoursPerMonth?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null - cnpj?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - domain?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - legalName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - tradeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - stateRegistration?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - stateRegistrationType?: Prisma.NullableEnumCompanyStateRegistrationTypeFieldUpdateOperationsInput | $Enums.CompanyStateRegistrationType | null - primaryCnae?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - supportEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - billingEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - hasBranches?: Prisma.BoolFieldUpdateOperationsInput | boolean - regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - privacyPolicyAccepted?: Prisma.BoolFieldUpdateOperationsInput | boolean - privacyPolicyReference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - users?: Prisma.UserUncheckedUpdateManyWithoutCompanyNestedInput - tickets?: Prisma.TicketUncheckedUpdateManyWithoutCompanyNestedInput -} - -export type CompanyCreateManyInput = { - id?: string - tenantId: string - name: string - slug: string - provisioningCode: string - isAvulso?: boolean - contractedHoursPerMonth?: number | null - cnpj?: string | null - domain?: string | null - phone?: string | null - description?: string | null - address?: string | null - legalName?: string | null - tradeName?: string | null - stateRegistration?: string | null - stateRegistrationType?: $Enums.CompanyStateRegistrationType | null - primaryCnae?: string | null - timezone?: string | null - businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - supportEmail?: string | null - billingEmail?: string | null - contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - hasBranches?: boolean - regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - privacyPolicyAccepted?: boolean - privacyPolicyReference?: string | null - privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - notes?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type CompanyUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - slug?: Prisma.StringFieldUpdateOperationsInput | string - provisioningCode?: Prisma.StringFieldUpdateOperationsInput | string - isAvulso?: Prisma.BoolFieldUpdateOperationsInput | boolean - contractedHoursPerMonth?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null - cnpj?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - domain?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - legalName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - tradeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - stateRegistration?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - stateRegistrationType?: Prisma.NullableEnumCompanyStateRegistrationTypeFieldUpdateOperationsInput | $Enums.CompanyStateRegistrationType | null - primaryCnae?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - supportEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - billingEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - hasBranches?: Prisma.BoolFieldUpdateOperationsInput | boolean - regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - privacyPolicyAccepted?: Prisma.BoolFieldUpdateOperationsInput | boolean - privacyPolicyReference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type CompanyUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - slug?: Prisma.StringFieldUpdateOperationsInput | string - provisioningCode?: Prisma.StringFieldUpdateOperationsInput | string - isAvulso?: Prisma.BoolFieldUpdateOperationsInput | boolean - contractedHoursPerMonth?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null - cnpj?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - domain?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - legalName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - tradeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - stateRegistration?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - stateRegistrationType?: Prisma.NullableEnumCompanyStateRegistrationTypeFieldUpdateOperationsInput | $Enums.CompanyStateRegistrationType | null - primaryCnae?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - supportEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - billingEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - hasBranches?: Prisma.BoolFieldUpdateOperationsInput | boolean - regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - privacyPolicyAccepted?: Prisma.BoolFieldUpdateOperationsInput | boolean - privacyPolicyReference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type CompanyTenantIdSlugCompoundUniqueInput = { - tenantId: string - slug: string -} - -export type CompanyCountOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - slug?: Prisma.SortOrder - provisioningCode?: Prisma.SortOrder - isAvulso?: Prisma.SortOrder - contractedHoursPerMonth?: Prisma.SortOrder - cnpj?: Prisma.SortOrder - domain?: Prisma.SortOrder - phone?: Prisma.SortOrder - description?: Prisma.SortOrder - address?: Prisma.SortOrder - legalName?: Prisma.SortOrder - tradeName?: Prisma.SortOrder - stateRegistration?: Prisma.SortOrder - stateRegistrationType?: Prisma.SortOrder - primaryCnae?: Prisma.SortOrder - timezone?: Prisma.SortOrder - businessHours?: Prisma.SortOrder - supportEmail?: Prisma.SortOrder - billingEmail?: Prisma.SortOrder - contactPreferences?: Prisma.SortOrder - clientDomains?: Prisma.SortOrder - communicationChannels?: Prisma.SortOrder - fiscalAddress?: Prisma.SortOrder - hasBranches?: Prisma.SortOrder - regulatedEnvironments?: Prisma.SortOrder - privacyPolicyAccepted?: Prisma.SortOrder - privacyPolicyReference?: Prisma.SortOrder - privacyPolicyMetadata?: Prisma.SortOrder - contacts?: Prisma.SortOrder - locations?: Prisma.SortOrder - contracts?: Prisma.SortOrder - sla?: Prisma.SortOrder - tags?: Prisma.SortOrder - customFields?: Prisma.SortOrder - notes?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type CompanyAvgOrderByAggregateInput = { - contractedHoursPerMonth?: Prisma.SortOrder -} - -export type CompanyMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - slug?: Prisma.SortOrder - provisioningCode?: Prisma.SortOrder - isAvulso?: Prisma.SortOrder - contractedHoursPerMonth?: Prisma.SortOrder - cnpj?: Prisma.SortOrder - domain?: Prisma.SortOrder - phone?: Prisma.SortOrder - description?: Prisma.SortOrder - address?: Prisma.SortOrder - legalName?: Prisma.SortOrder - tradeName?: Prisma.SortOrder - stateRegistration?: Prisma.SortOrder - stateRegistrationType?: Prisma.SortOrder - primaryCnae?: Prisma.SortOrder - timezone?: Prisma.SortOrder - supportEmail?: Prisma.SortOrder - billingEmail?: Prisma.SortOrder - hasBranches?: Prisma.SortOrder - privacyPolicyAccepted?: Prisma.SortOrder - privacyPolicyReference?: Prisma.SortOrder - notes?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type CompanyMinOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - slug?: Prisma.SortOrder - provisioningCode?: Prisma.SortOrder - isAvulso?: Prisma.SortOrder - contractedHoursPerMonth?: Prisma.SortOrder - cnpj?: Prisma.SortOrder - domain?: Prisma.SortOrder - phone?: Prisma.SortOrder - description?: Prisma.SortOrder - address?: Prisma.SortOrder - legalName?: Prisma.SortOrder - tradeName?: Prisma.SortOrder - stateRegistration?: Prisma.SortOrder - stateRegistrationType?: Prisma.SortOrder - primaryCnae?: Prisma.SortOrder - timezone?: Prisma.SortOrder - supportEmail?: Prisma.SortOrder - billingEmail?: Prisma.SortOrder - hasBranches?: Prisma.SortOrder - privacyPolicyAccepted?: Prisma.SortOrder - privacyPolicyReference?: Prisma.SortOrder - notes?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type CompanySumOrderByAggregateInput = { - contractedHoursPerMonth?: Prisma.SortOrder -} - -export type CompanyNullableScalarRelationFilter = { - is?: Prisma.CompanyWhereInput | null - isNot?: Prisma.CompanyWhereInput | null -} - -export type NullableFloatFieldUpdateOperationsInput = { - set?: number | null - increment?: number - decrement?: number - multiply?: number - divide?: number -} - -export type NullableEnumCompanyStateRegistrationTypeFieldUpdateOperationsInput = { - set?: $Enums.CompanyStateRegistrationType | null -} - -export type CompanyCreateNestedOneWithoutUsersInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutUsersInput - connect?: Prisma.CompanyWhereUniqueInput -} - -export type CompanyUpdateOneWithoutUsersNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutUsersInput - upsert?: Prisma.CompanyUpsertWithoutUsersInput - disconnect?: Prisma.CompanyWhereInput | boolean - delete?: Prisma.CompanyWhereInput | boolean - connect?: Prisma.CompanyWhereUniqueInput - update?: Prisma.XOR, Prisma.CompanyUncheckedUpdateWithoutUsersInput> -} - -export type CompanyCreateNestedOneWithoutTicketsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutTicketsInput - connect?: Prisma.CompanyWhereUniqueInput -} - -export type CompanyUpdateOneWithoutTicketsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutTicketsInput - upsert?: Prisma.CompanyUpsertWithoutTicketsInput - disconnect?: Prisma.CompanyWhereInput | boolean - delete?: Prisma.CompanyWhereInput | boolean - connect?: Prisma.CompanyWhereUniqueInput - update?: Prisma.XOR, Prisma.CompanyUncheckedUpdateWithoutTicketsInput> -} - -export type CompanyCreateWithoutUsersInput = { - id?: string - tenantId: string - name: string - slug: string - provisioningCode: string - isAvulso?: boolean - contractedHoursPerMonth?: number | null - cnpj?: string | null - domain?: string | null - phone?: string | null - description?: string | null - address?: string | null - legalName?: string | null - tradeName?: string | null - stateRegistration?: string | null - stateRegistrationType?: $Enums.CompanyStateRegistrationType | null - primaryCnae?: string | null - timezone?: string | null - businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - supportEmail?: string | null - billingEmail?: string | null - contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - hasBranches?: boolean - regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - privacyPolicyAccepted?: boolean - privacyPolicyReference?: string | null - privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - notes?: string | null - createdAt?: Date | string - updatedAt?: Date | string - tickets?: Prisma.TicketCreateNestedManyWithoutCompanyInput -} - -export type CompanyUncheckedCreateWithoutUsersInput = { - id?: string - tenantId: string - name: string - slug: string - provisioningCode: string - isAvulso?: boolean - contractedHoursPerMonth?: number | null - cnpj?: string | null - domain?: string | null - phone?: string | null - description?: string | null - address?: string | null - legalName?: string | null - tradeName?: string | null - stateRegistration?: string | null - stateRegistrationType?: $Enums.CompanyStateRegistrationType | null - primaryCnae?: string | null - timezone?: string | null - businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - supportEmail?: string | null - billingEmail?: string | null - contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - hasBranches?: boolean - regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - privacyPolicyAccepted?: boolean - privacyPolicyReference?: string | null - privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - notes?: string | null - createdAt?: Date | string - updatedAt?: Date | string - tickets?: Prisma.TicketUncheckedCreateNestedManyWithoutCompanyInput -} - -export type CompanyCreateOrConnectWithoutUsersInput = { - where: Prisma.CompanyWhereUniqueInput - create: Prisma.XOR -} - -export type CompanyUpsertWithoutUsersInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.CompanyWhereInput -} - -export type CompanyUpdateToOneWithWhereWithoutUsersInput = { - where?: Prisma.CompanyWhereInput - data: Prisma.XOR -} - -export type CompanyUpdateWithoutUsersInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - slug?: Prisma.StringFieldUpdateOperationsInput | string - provisioningCode?: Prisma.StringFieldUpdateOperationsInput | string - isAvulso?: Prisma.BoolFieldUpdateOperationsInput | boolean - contractedHoursPerMonth?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null - cnpj?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - domain?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - legalName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - tradeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - stateRegistration?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - stateRegistrationType?: Prisma.NullableEnumCompanyStateRegistrationTypeFieldUpdateOperationsInput | $Enums.CompanyStateRegistrationType | null - primaryCnae?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - supportEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - billingEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - hasBranches?: Prisma.BoolFieldUpdateOperationsInput | boolean - regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - privacyPolicyAccepted?: Prisma.BoolFieldUpdateOperationsInput | boolean - privacyPolicyReference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - tickets?: Prisma.TicketUpdateManyWithoutCompanyNestedInput -} - -export type CompanyUncheckedUpdateWithoutUsersInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - slug?: Prisma.StringFieldUpdateOperationsInput | string - provisioningCode?: Prisma.StringFieldUpdateOperationsInput | string - isAvulso?: Prisma.BoolFieldUpdateOperationsInput | boolean - contractedHoursPerMonth?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null - cnpj?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - domain?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - legalName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - tradeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - stateRegistration?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - stateRegistrationType?: Prisma.NullableEnumCompanyStateRegistrationTypeFieldUpdateOperationsInput | $Enums.CompanyStateRegistrationType | null - primaryCnae?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - supportEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - billingEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - hasBranches?: Prisma.BoolFieldUpdateOperationsInput | boolean - regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - privacyPolicyAccepted?: Prisma.BoolFieldUpdateOperationsInput | boolean - privacyPolicyReference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - tickets?: Prisma.TicketUncheckedUpdateManyWithoutCompanyNestedInput -} - -export type CompanyCreateWithoutTicketsInput = { - id?: string - tenantId: string - name: string - slug: string - provisioningCode: string - isAvulso?: boolean - contractedHoursPerMonth?: number | null - cnpj?: string | null - domain?: string | null - phone?: string | null - description?: string | null - address?: string | null - legalName?: string | null - tradeName?: string | null - stateRegistration?: string | null - stateRegistrationType?: $Enums.CompanyStateRegistrationType | null - primaryCnae?: string | null - timezone?: string | null - businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - supportEmail?: string | null - billingEmail?: string | null - contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - hasBranches?: boolean - regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - privacyPolicyAccepted?: boolean - privacyPolicyReference?: string | null - privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - notes?: string | null - createdAt?: Date | string - updatedAt?: Date | string - users?: Prisma.UserCreateNestedManyWithoutCompanyInput -} - -export type CompanyUncheckedCreateWithoutTicketsInput = { - id?: string - tenantId: string - name: string - slug: string - provisioningCode: string - isAvulso?: boolean - contractedHoursPerMonth?: number | null - cnpj?: string | null - domain?: string | null - phone?: string | null - description?: string | null - address?: string | null - legalName?: string | null - tradeName?: string | null - stateRegistration?: string | null - stateRegistrationType?: $Enums.CompanyStateRegistrationType | null - primaryCnae?: string | null - timezone?: string | null - businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - supportEmail?: string | null - billingEmail?: string | null - contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - hasBranches?: boolean - regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - privacyPolicyAccepted?: boolean - privacyPolicyReference?: string | null - privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - notes?: string | null - createdAt?: Date | string - updatedAt?: Date | string - users?: Prisma.UserUncheckedCreateNestedManyWithoutCompanyInput -} - -export type CompanyCreateOrConnectWithoutTicketsInput = { - where: Prisma.CompanyWhereUniqueInput - create: Prisma.XOR -} - -export type CompanyUpsertWithoutTicketsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.CompanyWhereInput -} - -export type CompanyUpdateToOneWithWhereWithoutTicketsInput = { - where?: Prisma.CompanyWhereInput - data: Prisma.XOR -} - -export type CompanyUpdateWithoutTicketsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - slug?: Prisma.StringFieldUpdateOperationsInput | string - provisioningCode?: Prisma.StringFieldUpdateOperationsInput | string - isAvulso?: Prisma.BoolFieldUpdateOperationsInput | boolean - contractedHoursPerMonth?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null - cnpj?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - domain?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - legalName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - tradeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - stateRegistration?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - stateRegistrationType?: Prisma.NullableEnumCompanyStateRegistrationTypeFieldUpdateOperationsInput | $Enums.CompanyStateRegistrationType | null - primaryCnae?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - supportEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - billingEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - hasBranches?: Prisma.BoolFieldUpdateOperationsInput | boolean - regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - privacyPolicyAccepted?: Prisma.BoolFieldUpdateOperationsInput | boolean - privacyPolicyReference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - users?: Prisma.UserUpdateManyWithoutCompanyNestedInput -} - -export type CompanyUncheckedUpdateWithoutTicketsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - slug?: Prisma.StringFieldUpdateOperationsInput | string - provisioningCode?: Prisma.StringFieldUpdateOperationsInput | string - isAvulso?: Prisma.BoolFieldUpdateOperationsInput | boolean - contractedHoursPerMonth?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null - cnpj?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - domain?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - phone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - legalName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - tradeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - stateRegistration?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - stateRegistrationType?: Prisma.NullableEnumCompanyStateRegistrationTypeFieldUpdateOperationsInput | $Enums.CompanyStateRegistrationType | null - primaryCnae?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - businessHours?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - supportEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - billingEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - contactPreferences?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - clientDomains?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - communicationChannels?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - fiscalAddress?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - hasBranches?: Prisma.BoolFieldUpdateOperationsInput | boolean - regulatedEnvironments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - privacyPolicyAccepted?: Prisma.BoolFieldUpdateOperationsInput | boolean - privacyPolicyReference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - privacyPolicyMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - locations?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - contracts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - sla?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - tags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - customFields?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - users?: Prisma.UserUncheckedUpdateManyWithoutCompanyNestedInput -} - - -/** - * Count Type CompanyCountOutputType - */ - -export type CompanyCountOutputType = { - users: number - tickets: number -} - -export type CompanyCountOutputTypeSelect = { - users?: boolean | CompanyCountOutputTypeCountUsersArgs - tickets?: boolean | CompanyCountOutputTypeCountTicketsArgs -} - -/** - * CompanyCountOutputType without action - */ -export type CompanyCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the CompanyCountOutputType - */ - select?: Prisma.CompanyCountOutputTypeSelect | null -} - -/** - * CompanyCountOutputType without action - */ -export type CompanyCountOutputTypeCountUsersArgs = { - where?: Prisma.UserWhereInput -} - -/** - * CompanyCountOutputType without action - */ -export type CompanyCountOutputTypeCountTicketsArgs = { - where?: Prisma.TicketWhereInput -} - - -export type CompanySelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - name?: boolean - slug?: boolean - provisioningCode?: boolean - isAvulso?: boolean - contractedHoursPerMonth?: boolean - cnpj?: boolean - domain?: boolean - phone?: boolean - description?: boolean - address?: boolean - legalName?: boolean - tradeName?: boolean - stateRegistration?: boolean - stateRegistrationType?: boolean - primaryCnae?: boolean - timezone?: boolean - businessHours?: boolean - supportEmail?: boolean - billingEmail?: boolean - contactPreferences?: boolean - clientDomains?: boolean - communicationChannels?: boolean - fiscalAddress?: boolean - hasBranches?: boolean - regulatedEnvironments?: boolean - privacyPolicyAccepted?: boolean - privacyPolicyReference?: boolean - privacyPolicyMetadata?: boolean - contacts?: boolean - locations?: boolean - contracts?: boolean - sla?: boolean - tags?: boolean - customFields?: boolean - notes?: boolean - createdAt?: boolean - updatedAt?: boolean - users?: boolean | Prisma.Company$usersArgs - tickets?: boolean | Prisma.Company$ticketsArgs - _count?: boolean | Prisma.CompanyCountOutputTypeDefaultArgs -}, ExtArgs["result"]["company"]> - -export type CompanySelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - name?: boolean - slug?: boolean - provisioningCode?: boolean - isAvulso?: boolean - contractedHoursPerMonth?: boolean - cnpj?: boolean - domain?: boolean - phone?: boolean - description?: boolean - address?: boolean - legalName?: boolean - tradeName?: boolean - stateRegistration?: boolean - stateRegistrationType?: boolean - primaryCnae?: boolean - timezone?: boolean - businessHours?: boolean - supportEmail?: boolean - billingEmail?: boolean - contactPreferences?: boolean - clientDomains?: boolean - communicationChannels?: boolean - fiscalAddress?: boolean - hasBranches?: boolean - regulatedEnvironments?: boolean - privacyPolicyAccepted?: boolean - privacyPolicyReference?: boolean - privacyPolicyMetadata?: boolean - contacts?: boolean - locations?: boolean - contracts?: boolean - sla?: boolean - tags?: boolean - customFields?: boolean - notes?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["company"]> - -export type CompanySelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - name?: boolean - slug?: boolean - provisioningCode?: boolean - isAvulso?: boolean - contractedHoursPerMonth?: boolean - cnpj?: boolean - domain?: boolean - phone?: boolean - description?: boolean - address?: boolean - legalName?: boolean - tradeName?: boolean - stateRegistration?: boolean - stateRegistrationType?: boolean - primaryCnae?: boolean - timezone?: boolean - businessHours?: boolean - supportEmail?: boolean - billingEmail?: boolean - contactPreferences?: boolean - clientDomains?: boolean - communicationChannels?: boolean - fiscalAddress?: boolean - hasBranches?: boolean - regulatedEnvironments?: boolean - privacyPolicyAccepted?: boolean - privacyPolicyReference?: boolean - privacyPolicyMetadata?: boolean - contacts?: boolean - locations?: boolean - contracts?: boolean - sla?: boolean - tags?: boolean - customFields?: boolean - notes?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["company"]> - -export type CompanySelectScalar = { - id?: boolean - tenantId?: boolean - name?: boolean - slug?: boolean - provisioningCode?: boolean - isAvulso?: boolean - contractedHoursPerMonth?: boolean - cnpj?: boolean - domain?: boolean - phone?: boolean - description?: boolean - address?: boolean - legalName?: boolean - tradeName?: boolean - stateRegistration?: boolean - stateRegistrationType?: boolean - primaryCnae?: boolean - timezone?: boolean - businessHours?: boolean - supportEmail?: boolean - billingEmail?: boolean - contactPreferences?: boolean - clientDomains?: boolean - communicationChannels?: boolean - fiscalAddress?: boolean - hasBranches?: boolean - regulatedEnvironments?: boolean - privacyPolicyAccepted?: boolean - privacyPolicyReference?: boolean - privacyPolicyMetadata?: boolean - contacts?: boolean - locations?: boolean - contracts?: boolean - sla?: boolean - tags?: boolean - customFields?: boolean - notes?: boolean - createdAt?: boolean - updatedAt?: boolean -} - -export type CompanyOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "name" | "slug" | "provisioningCode" | "isAvulso" | "contractedHoursPerMonth" | "cnpj" | "domain" | "phone" | "description" | "address" | "legalName" | "tradeName" | "stateRegistration" | "stateRegistrationType" | "primaryCnae" | "timezone" | "businessHours" | "supportEmail" | "billingEmail" | "contactPreferences" | "clientDomains" | "communicationChannels" | "fiscalAddress" | "hasBranches" | "regulatedEnvironments" | "privacyPolicyAccepted" | "privacyPolicyReference" | "privacyPolicyMetadata" | "contacts" | "locations" | "contracts" | "sla" | "tags" | "customFields" | "notes" | "createdAt" | "updatedAt", ExtArgs["result"]["company"]> -export type CompanyInclude = { - users?: boolean | Prisma.Company$usersArgs - tickets?: boolean | Prisma.Company$ticketsArgs - _count?: boolean | Prisma.CompanyCountOutputTypeDefaultArgs -} -export type CompanyIncludeCreateManyAndReturn = {} -export type CompanyIncludeUpdateManyAndReturn = {} - -export type $CompanyPayload = { - name: "Company" - objects: { - users: Prisma.$UserPayload[] - tickets: Prisma.$TicketPayload[] - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - tenantId: string - name: string - slug: string - provisioningCode: string - isAvulso: boolean - contractedHoursPerMonth: number | null - cnpj: string | null - domain: string | null - phone: string | null - description: string | null - address: string | null - legalName: string | null - tradeName: string | null - stateRegistration: string | null - stateRegistrationType: $Enums.CompanyStateRegistrationType | null - primaryCnae: string | null - timezone: string | null - businessHours: runtime.JsonValue | null - supportEmail: string | null - billingEmail: string | null - contactPreferences: runtime.JsonValue | null - clientDomains: runtime.JsonValue | null - communicationChannels: runtime.JsonValue | null - fiscalAddress: runtime.JsonValue | null - hasBranches: boolean - regulatedEnvironments: runtime.JsonValue | null - privacyPolicyAccepted: boolean - privacyPolicyReference: string | null - privacyPolicyMetadata: runtime.JsonValue | null - contacts: runtime.JsonValue | null - locations: runtime.JsonValue | null - contracts: runtime.JsonValue | null - sla: runtime.JsonValue | null - tags: runtime.JsonValue | null - customFields: runtime.JsonValue | null - notes: string | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["company"]> - composites: {} -} - -export type CompanyGetPayload = runtime.Types.Result.GetResult - -export type CompanyCountArgs = - Omit & { - select?: CompanyCountAggregateInputType | true - } - -export interface CompanyDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Company'], meta: { name: 'Company' } } - /** - * Find zero or one Company that matches the filter. - * @param {CompanyFindUniqueArgs} args - Arguments to find a Company - * @example - * // Get one Company - * const company = await prisma.company.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__CompanyClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Company that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {CompanyFindUniqueOrThrowArgs} args - Arguments to find a Company - * @example - * // Get one Company - * const company = await prisma.company.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__CompanyClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Company that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CompanyFindFirstArgs} args - Arguments to find a Company - * @example - * // Get one Company - * const company = await prisma.company.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__CompanyClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Company that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CompanyFindFirstOrThrowArgs} args - Arguments to find a Company - * @example - * // Get one Company - * const company = await prisma.company.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__CompanyClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Companies that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CompanyFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Companies - * const companies = await prisma.company.findMany() - * - * // Get first 10 Companies - * const companies = await prisma.company.findMany({ take: 10 }) - * - * // Only select the `id` - * const companyWithIdOnly = await prisma.company.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Company. - * @param {CompanyCreateArgs} args - Arguments to create a Company. - * @example - * // Create one Company - * const Company = await prisma.company.create({ - * data: { - * // ... data to create a Company - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__CompanyClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Companies. - * @param {CompanyCreateManyArgs} args - Arguments to create many Companies. - * @example - * // Create many Companies - * const company = await prisma.company.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Companies and returns the data saved in the database. - * @param {CompanyCreateManyAndReturnArgs} args - Arguments to create many Companies. - * @example - * // Create many Companies - * const company = await prisma.company.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Companies and only return the `id` - * const companyWithIdOnly = await prisma.company.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Company. - * @param {CompanyDeleteArgs} args - Arguments to delete one Company. - * @example - * // Delete one Company - * const Company = await prisma.company.delete({ - * where: { - * // ... filter to delete one Company - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__CompanyClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Company. - * @param {CompanyUpdateArgs} args - Arguments to update one Company. - * @example - * // Update one Company - * const company = await prisma.company.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__CompanyClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Companies. - * @param {CompanyDeleteManyArgs} args - Arguments to filter Companies to delete. - * @example - * // Delete a few Companies - * const { count } = await prisma.company.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Companies. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CompanyUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Companies - * const company = await prisma.company.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Companies and returns the data updated in the database. - * @param {CompanyUpdateManyAndReturnArgs} args - Arguments to update many Companies. - * @example - * // Update many Companies - * const company = await prisma.company.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Companies and only return the `id` - * const companyWithIdOnly = await prisma.company.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Company. - * @param {CompanyUpsertArgs} args - Arguments to update or create a Company. - * @example - * // Update or create a Company - * const company = await prisma.company.upsert({ - * create: { - * // ... data to create a Company - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Company we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__CompanyClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Companies. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CompanyCountArgs} args - Arguments to filter Companies to count. - * @example - * // Count the number of Companies - * const count = await prisma.company.count({ - * where: { - * // ... the filter for the Companies we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Company. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CompanyAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by Company. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {CompanyGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends CompanyGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: CompanyGroupByArgs['orderBy'] } - : { orderBy?: CompanyGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetCompanyGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the Company model - */ -readonly fields: CompanyFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for Company. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__CompanyClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - users = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - tickets = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the Company model - */ -export interface CompanyFieldRefs { - readonly id: Prisma.FieldRef<"Company", 'String'> - readonly tenantId: Prisma.FieldRef<"Company", 'String'> - readonly name: Prisma.FieldRef<"Company", 'String'> - readonly slug: Prisma.FieldRef<"Company", 'String'> - readonly provisioningCode: Prisma.FieldRef<"Company", 'String'> - readonly isAvulso: Prisma.FieldRef<"Company", 'Boolean'> - readonly contractedHoursPerMonth: Prisma.FieldRef<"Company", 'Float'> - readonly cnpj: Prisma.FieldRef<"Company", 'String'> - readonly domain: Prisma.FieldRef<"Company", 'String'> - readonly phone: Prisma.FieldRef<"Company", 'String'> - readonly description: Prisma.FieldRef<"Company", 'String'> - readonly address: Prisma.FieldRef<"Company", 'String'> - readonly legalName: Prisma.FieldRef<"Company", 'String'> - readonly tradeName: Prisma.FieldRef<"Company", 'String'> - readonly stateRegistration: Prisma.FieldRef<"Company", 'String'> - readonly stateRegistrationType: Prisma.FieldRef<"Company", 'CompanyStateRegistrationType'> - readonly primaryCnae: Prisma.FieldRef<"Company", 'String'> - readonly timezone: Prisma.FieldRef<"Company", 'String'> - readonly businessHours: Prisma.FieldRef<"Company", 'Json'> - readonly supportEmail: Prisma.FieldRef<"Company", 'String'> - readonly billingEmail: Prisma.FieldRef<"Company", 'String'> - readonly contactPreferences: Prisma.FieldRef<"Company", 'Json'> - readonly clientDomains: Prisma.FieldRef<"Company", 'Json'> - readonly communicationChannels: Prisma.FieldRef<"Company", 'Json'> - readonly fiscalAddress: Prisma.FieldRef<"Company", 'Json'> - readonly hasBranches: Prisma.FieldRef<"Company", 'Boolean'> - readonly regulatedEnvironments: Prisma.FieldRef<"Company", 'Json'> - readonly privacyPolicyAccepted: Prisma.FieldRef<"Company", 'Boolean'> - readonly privacyPolicyReference: Prisma.FieldRef<"Company", 'String'> - readonly privacyPolicyMetadata: Prisma.FieldRef<"Company", 'Json'> - readonly contacts: Prisma.FieldRef<"Company", 'Json'> - readonly locations: Prisma.FieldRef<"Company", 'Json'> - readonly contracts: Prisma.FieldRef<"Company", 'Json'> - readonly sla: Prisma.FieldRef<"Company", 'Json'> - readonly tags: Prisma.FieldRef<"Company", 'Json'> - readonly customFields: Prisma.FieldRef<"Company", 'Json'> - readonly notes: Prisma.FieldRef<"Company", 'String'> - readonly createdAt: Prisma.FieldRef<"Company", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"Company", 'DateTime'> -} - - -// Custom InputTypes -/** - * Company findUnique - */ -export type CompanyFindUniqueArgs = { - /** - * Select specific fields to fetch from the Company - */ - select?: Prisma.CompanySelect | null - /** - * Omit specific fields from the Company - */ - omit?: Prisma.CompanyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CompanyInclude | null - /** - * Filter, which Company to fetch. - */ - where: Prisma.CompanyWhereUniqueInput -} - -/** - * Company findUniqueOrThrow - */ -export type CompanyFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Company - */ - select?: Prisma.CompanySelect | null - /** - * Omit specific fields from the Company - */ - omit?: Prisma.CompanyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CompanyInclude | null - /** - * Filter, which Company to fetch. - */ - where: Prisma.CompanyWhereUniqueInput -} - -/** - * Company findFirst - */ -export type CompanyFindFirstArgs = { - /** - * Select specific fields to fetch from the Company - */ - select?: Prisma.CompanySelect | null - /** - * Omit specific fields from the Company - */ - omit?: Prisma.CompanyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CompanyInclude | null - /** - * Filter, which Company to fetch. - */ - where?: Prisma.CompanyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Companies to fetch. - */ - orderBy?: Prisma.CompanyOrderByWithRelationInput | Prisma.CompanyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Companies. - */ - cursor?: Prisma.CompanyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Companies from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Companies. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Companies. - */ - distinct?: Prisma.CompanyScalarFieldEnum | Prisma.CompanyScalarFieldEnum[] -} - -/** - * Company findFirstOrThrow - */ -export type CompanyFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Company - */ - select?: Prisma.CompanySelect | null - /** - * Omit specific fields from the Company - */ - omit?: Prisma.CompanyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CompanyInclude | null - /** - * Filter, which Company to fetch. - */ - where?: Prisma.CompanyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Companies to fetch. - */ - orderBy?: Prisma.CompanyOrderByWithRelationInput | Prisma.CompanyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Companies. - */ - cursor?: Prisma.CompanyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Companies from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Companies. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Companies. - */ - distinct?: Prisma.CompanyScalarFieldEnum | Prisma.CompanyScalarFieldEnum[] -} - -/** - * Company findMany - */ -export type CompanyFindManyArgs = { - /** - * Select specific fields to fetch from the Company - */ - select?: Prisma.CompanySelect | null - /** - * Omit specific fields from the Company - */ - omit?: Prisma.CompanyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CompanyInclude | null - /** - * Filter, which Companies to fetch. - */ - where?: Prisma.CompanyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Companies to fetch. - */ - orderBy?: Prisma.CompanyOrderByWithRelationInput | Prisma.CompanyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Companies. - */ - cursor?: Prisma.CompanyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Companies from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Companies. - */ - skip?: number - distinct?: Prisma.CompanyScalarFieldEnum | Prisma.CompanyScalarFieldEnum[] -} - -/** - * Company create - */ -export type CompanyCreateArgs = { - /** - * Select specific fields to fetch from the Company - */ - select?: Prisma.CompanySelect | null - /** - * Omit specific fields from the Company - */ - omit?: Prisma.CompanyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CompanyInclude | null - /** - * The data needed to create a Company. - */ - data: Prisma.XOR -} - -/** - * Company createMany - */ -export type CompanyCreateManyArgs = { - /** - * The data used to create many Companies. - */ - data: Prisma.CompanyCreateManyInput | Prisma.CompanyCreateManyInput[] -} - -/** - * Company createManyAndReturn - */ -export type CompanyCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Company - */ - select?: Prisma.CompanySelectCreateManyAndReturn | null - /** - * Omit specific fields from the Company - */ - omit?: Prisma.CompanyOmit | null - /** - * The data used to create many Companies. - */ - data: Prisma.CompanyCreateManyInput | Prisma.CompanyCreateManyInput[] -} - -/** - * Company update - */ -export type CompanyUpdateArgs = { - /** - * Select specific fields to fetch from the Company - */ - select?: Prisma.CompanySelect | null - /** - * Omit specific fields from the Company - */ - omit?: Prisma.CompanyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CompanyInclude | null - /** - * The data needed to update a Company. - */ - data: Prisma.XOR - /** - * Choose, which Company to update. - */ - where: Prisma.CompanyWhereUniqueInput -} - -/** - * Company updateMany - */ -export type CompanyUpdateManyArgs = { - /** - * The data used to update Companies. - */ - data: Prisma.XOR - /** - * Filter which Companies to update - */ - where?: Prisma.CompanyWhereInput - /** - * Limit how many Companies to update. - */ - limit?: number -} - -/** - * Company updateManyAndReturn - */ -export type CompanyUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Company - */ - select?: Prisma.CompanySelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Company - */ - omit?: Prisma.CompanyOmit | null - /** - * The data used to update Companies. - */ - data: Prisma.XOR - /** - * Filter which Companies to update - */ - where?: Prisma.CompanyWhereInput - /** - * Limit how many Companies to update. - */ - limit?: number -} - -/** - * Company upsert - */ -export type CompanyUpsertArgs = { - /** - * Select specific fields to fetch from the Company - */ - select?: Prisma.CompanySelect | null - /** - * Omit specific fields from the Company - */ - omit?: Prisma.CompanyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CompanyInclude | null - /** - * The filter to search for the Company to update in case it exists. - */ - where: Prisma.CompanyWhereUniqueInput - /** - * In case the Company found by the `where` argument doesn't exist, create a new Company with this data. - */ - create: Prisma.XOR - /** - * In case the Company was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * Company delete - */ -export type CompanyDeleteArgs = { - /** - * Select specific fields to fetch from the Company - */ - select?: Prisma.CompanySelect | null - /** - * Omit specific fields from the Company - */ - omit?: Prisma.CompanyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CompanyInclude | null - /** - * Filter which Company to delete. - */ - where: Prisma.CompanyWhereUniqueInput -} - -/** - * Company deleteMany - */ -export type CompanyDeleteManyArgs = { - /** - * Filter which Companies to delete - */ - where?: Prisma.CompanyWhereInput - /** - * Limit how many Companies to delete. - */ - limit?: number -} - -/** - * Company.users - */ -export type Company$usersArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - where?: Prisma.UserWhereInput - orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] - cursor?: Prisma.UserWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] -} - -/** - * Company.tickets - */ -export type Company$ticketsArgs = { - /** - * Select specific fields to fetch from the Ticket - */ - select?: Prisma.TicketSelect | null - /** - * Omit specific fields from the Ticket - */ - omit?: Prisma.TicketOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketInclude | null - where?: Prisma.TicketWhereInput - orderBy?: Prisma.TicketOrderByWithRelationInput | Prisma.TicketOrderByWithRelationInput[] - cursor?: Prisma.TicketWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.TicketScalarFieldEnum | Prisma.TicketScalarFieldEnum[] -} - -/** - * Company without action - */ -export type CompanyDefaultArgs = { - /** - * Select specific fields to fetch from the Company - */ - select?: Prisma.CompanySelect | null - /** - * Omit specific fields from the Company - */ - omit?: Prisma.CompanyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CompanyInclude | null -} diff --git a/src/generated/prisma/models/Queue.ts b/src/generated/prisma/models/Queue.ts deleted file mode 100644 index 09c0a28..0000000 --- a/src/generated/prisma/models/Queue.ts +++ /dev/null @@ -1,1579 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `Queue` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model Queue - * - */ -export type QueueModel = runtime.Types.Result.DefaultSelection - -export type AggregateQueue = { - _count: QueueCountAggregateOutputType | null - _min: QueueMinAggregateOutputType | null - _max: QueueMaxAggregateOutputType | null -} - -export type QueueMinAggregateOutputType = { - id: string | null - tenantId: string | null - name: string | null - slug: string | null - teamId: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type QueueMaxAggregateOutputType = { - id: string | null - tenantId: string | null - name: string | null - slug: string | null - teamId: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type QueueCountAggregateOutputType = { - id: number - tenantId: number - name: number - slug: number - teamId: number - createdAt: number - updatedAt: number - _all: number -} - - -export type QueueMinAggregateInputType = { - id?: true - tenantId?: true - name?: true - slug?: true - teamId?: true - createdAt?: true - updatedAt?: true -} - -export type QueueMaxAggregateInputType = { - id?: true - tenantId?: true - name?: true - slug?: true - teamId?: true - createdAt?: true - updatedAt?: true -} - -export type QueueCountAggregateInputType = { - id?: true - tenantId?: true - name?: true - slug?: true - teamId?: true - createdAt?: true - updatedAt?: true - _all?: true -} - -export type QueueAggregateArgs = { - /** - * Filter which Queue to aggregate. - */ - where?: Prisma.QueueWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Queues to fetch. - */ - orderBy?: Prisma.QueueOrderByWithRelationInput | Prisma.QueueOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.QueueWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Queues from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Queues. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Queues - **/ - _count?: true | QueueCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: QueueMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: QueueMaxAggregateInputType -} - -export type GetQueueAggregateType = { - [P in keyof T & keyof AggregateQueue]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type QueueGroupByArgs = { - where?: Prisma.QueueWhereInput - orderBy?: Prisma.QueueOrderByWithAggregationInput | Prisma.QueueOrderByWithAggregationInput[] - by: Prisma.QueueScalarFieldEnum[] | Prisma.QueueScalarFieldEnum - having?: Prisma.QueueScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: QueueCountAggregateInputType | true - _min?: QueueMinAggregateInputType - _max?: QueueMaxAggregateInputType -} - -export type QueueGroupByOutputType = { - id: string - tenantId: string - name: string - slug: string - teamId: string | null - createdAt: Date - updatedAt: Date - _count: QueueCountAggregateOutputType | null - _min: QueueMinAggregateOutputType | null - _max: QueueMaxAggregateOutputType | null -} - -type GetQueueGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof QueueGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type QueueWhereInput = { - AND?: Prisma.QueueWhereInput | Prisma.QueueWhereInput[] - OR?: Prisma.QueueWhereInput[] - NOT?: Prisma.QueueWhereInput | Prisma.QueueWhereInput[] - id?: Prisma.StringFilter<"Queue"> | string - tenantId?: Prisma.StringFilter<"Queue"> | string - name?: Prisma.StringFilter<"Queue"> | string - slug?: Prisma.StringFilter<"Queue"> | string - teamId?: Prisma.StringNullableFilter<"Queue"> | string | null - createdAt?: Prisma.DateTimeFilter<"Queue"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Queue"> | Date | string - tickets?: Prisma.TicketListRelationFilter - team?: Prisma.XOR | null -} - -export type QueueOrderByWithRelationInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - slug?: Prisma.SortOrder - teamId?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - tickets?: Prisma.TicketOrderByRelationAggregateInput - team?: Prisma.TeamOrderByWithRelationInput -} - -export type QueueWhereUniqueInput = Prisma.AtLeast<{ - id?: string - tenantId_slug?: Prisma.QueueTenantIdSlugCompoundUniqueInput - AND?: Prisma.QueueWhereInput | Prisma.QueueWhereInput[] - OR?: Prisma.QueueWhereInput[] - NOT?: Prisma.QueueWhereInput | Prisma.QueueWhereInput[] - tenantId?: Prisma.StringFilter<"Queue"> | string - name?: Prisma.StringFilter<"Queue"> | string - slug?: Prisma.StringFilter<"Queue"> | string - teamId?: Prisma.StringNullableFilter<"Queue"> | string | null - createdAt?: Prisma.DateTimeFilter<"Queue"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Queue"> | Date | string - tickets?: Prisma.TicketListRelationFilter - team?: Prisma.XOR | null -}, "id" | "tenantId_slug"> - -export type QueueOrderByWithAggregationInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - slug?: Prisma.SortOrder - teamId?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - _count?: Prisma.QueueCountOrderByAggregateInput - _max?: Prisma.QueueMaxOrderByAggregateInput - _min?: Prisma.QueueMinOrderByAggregateInput -} - -export type QueueScalarWhereWithAggregatesInput = { - AND?: Prisma.QueueScalarWhereWithAggregatesInput | Prisma.QueueScalarWhereWithAggregatesInput[] - OR?: Prisma.QueueScalarWhereWithAggregatesInput[] - NOT?: Prisma.QueueScalarWhereWithAggregatesInput | Prisma.QueueScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"Queue"> | string - tenantId?: Prisma.StringWithAggregatesFilter<"Queue"> | string - name?: Prisma.StringWithAggregatesFilter<"Queue"> | string - slug?: Prisma.StringWithAggregatesFilter<"Queue"> | string - teamId?: Prisma.StringNullableWithAggregatesFilter<"Queue"> | string | null - createdAt?: Prisma.DateTimeWithAggregatesFilter<"Queue"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Queue"> | Date | string -} - -export type QueueCreateInput = { - id?: string - tenantId: string - name: string - slug: string - createdAt?: Date | string - updatedAt?: Date | string - tickets?: Prisma.TicketCreateNestedManyWithoutQueueInput - team?: Prisma.TeamCreateNestedOneWithoutQueuesInput -} - -export type QueueUncheckedCreateInput = { - id?: string - tenantId: string - name: string - slug: string - teamId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - tickets?: Prisma.TicketUncheckedCreateNestedManyWithoutQueueInput -} - -export type QueueUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - slug?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - tickets?: Prisma.TicketUpdateManyWithoutQueueNestedInput - team?: Prisma.TeamUpdateOneWithoutQueuesNestedInput -} - -export type QueueUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - slug?: Prisma.StringFieldUpdateOperationsInput | string - teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - tickets?: Prisma.TicketUncheckedUpdateManyWithoutQueueNestedInput -} - -export type QueueCreateManyInput = { - id?: string - tenantId: string - name: string - slug: string - teamId?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type QueueUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - slug?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type QueueUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - slug?: Prisma.StringFieldUpdateOperationsInput | string - teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type QueueListRelationFilter = { - every?: Prisma.QueueWhereInput - some?: Prisma.QueueWhereInput - none?: Prisma.QueueWhereInput -} - -export type QueueOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type QueueTenantIdSlugCompoundUniqueInput = { - tenantId: string - slug: string -} - -export type QueueCountOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - slug?: Prisma.SortOrder - teamId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type QueueMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - slug?: Prisma.SortOrder - teamId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type QueueMinOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - slug?: Prisma.SortOrder - teamId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type QueueNullableScalarRelationFilter = { - is?: Prisma.QueueWhereInput | null - isNot?: Prisma.QueueWhereInput | null -} - -export type QueueCreateNestedManyWithoutTeamInput = { - create?: Prisma.XOR | Prisma.QueueCreateWithoutTeamInput[] | Prisma.QueueUncheckedCreateWithoutTeamInput[] - connectOrCreate?: Prisma.QueueCreateOrConnectWithoutTeamInput | Prisma.QueueCreateOrConnectWithoutTeamInput[] - createMany?: Prisma.QueueCreateManyTeamInputEnvelope - connect?: Prisma.QueueWhereUniqueInput | Prisma.QueueWhereUniqueInput[] -} - -export type QueueUncheckedCreateNestedManyWithoutTeamInput = { - create?: Prisma.XOR | Prisma.QueueCreateWithoutTeamInput[] | Prisma.QueueUncheckedCreateWithoutTeamInput[] - connectOrCreate?: Prisma.QueueCreateOrConnectWithoutTeamInput | Prisma.QueueCreateOrConnectWithoutTeamInput[] - createMany?: Prisma.QueueCreateManyTeamInputEnvelope - connect?: Prisma.QueueWhereUniqueInput | Prisma.QueueWhereUniqueInput[] -} - -export type QueueUpdateManyWithoutTeamNestedInput = { - create?: Prisma.XOR | Prisma.QueueCreateWithoutTeamInput[] | Prisma.QueueUncheckedCreateWithoutTeamInput[] - connectOrCreate?: Prisma.QueueCreateOrConnectWithoutTeamInput | Prisma.QueueCreateOrConnectWithoutTeamInput[] - upsert?: Prisma.QueueUpsertWithWhereUniqueWithoutTeamInput | Prisma.QueueUpsertWithWhereUniqueWithoutTeamInput[] - createMany?: Prisma.QueueCreateManyTeamInputEnvelope - set?: Prisma.QueueWhereUniqueInput | Prisma.QueueWhereUniqueInput[] - disconnect?: Prisma.QueueWhereUniqueInput | Prisma.QueueWhereUniqueInput[] - delete?: Prisma.QueueWhereUniqueInput | Prisma.QueueWhereUniqueInput[] - connect?: Prisma.QueueWhereUniqueInput | Prisma.QueueWhereUniqueInput[] - update?: Prisma.QueueUpdateWithWhereUniqueWithoutTeamInput | Prisma.QueueUpdateWithWhereUniqueWithoutTeamInput[] - updateMany?: Prisma.QueueUpdateManyWithWhereWithoutTeamInput | Prisma.QueueUpdateManyWithWhereWithoutTeamInput[] - deleteMany?: Prisma.QueueScalarWhereInput | Prisma.QueueScalarWhereInput[] -} - -export type QueueUncheckedUpdateManyWithoutTeamNestedInput = { - create?: Prisma.XOR | Prisma.QueueCreateWithoutTeamInput[] | Prisma.QueueUncheckedCreateWithoutTeamInput[] - connectOrCreate?: Prisma.QueueCreateOrConnectWithoutTeamInput | Prisma.QueueCreateOrConnectWithoutTeamInput[] - upsert?: Prisma.QueueUpsertWithWhereUniqueWithoutTeamInput | Prisma.QueueUpsertWithWhereUniqueWithoutTeamInput[] - createMany?: Prisma.QueueCreateManyTeamInputEnvelope - set?: Prisma.QueueWhereUniqueInput | Prisma.QueueWhereUniqueInput[] - disconnect?: Prisma.QueueWhereUniqueInput | Prisma.QueueWhereUniqueInput[] - delete?: Prisma.QueueWhereUniqueInput | Prisma.QueueWhereUniqueInput[] - connect?: Prisma.QueueWhereUniqueInput | Prisma.QueueWhereUniqueInput[] - update?: Prisma.QueueUpdateWithWhereUniqueWithoutTeamInput | Prisma.QueueUpdateWithWhereUniqueWithoutTeamInput[] - updateMany?: Prisma.QueueUpdateManyWithWhereWithoutTeamInput | Prisma.QueueUpdateManyWithWhereWithoutTeamInput[] - deleteMany?: Prisma.QueueScalarWhereInput | Prisma.QueueScalarWhereInput[] -} - -export type QueueCreateNestedOneWithoutTicketsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.QueueCreateOrConnectWithoutTicketsInput - connect?: Prisma.QueueWhereUniqueInput -} - -export type QueueUpdateOneWithoutTicketsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.QueueCreateOrConnectWithoutTicketsInput - upsert?: Prisma.QueueUpsertWithoutTicketsInput - disconnect?: Prisma.QueueWhereInput | boolean - delete?: Prisma.QueueWhereInput | boolean - connect?: Prisma.QueueWhereUniqueInput - update?: Prisma.XOR, Prisma.QueueUncheckedUpdateWithoutTicketsInput> -} - -export type QueueCreateWithoutTeamInput = { - id?: string - tenantId: string - name: string - slug: string - createdAt?: Date | string - updatedAt?: Date | string - tickets?: Prisma.TicketCreateNestedManyWithoutQueueInput -} - -export type QueueUncheckedCreateWithoutTeamInput = { - id?: string - tenantId: string - name: string - slug: string - createdAt?: Date | string - updatedAt?: Date | string - tickets?: Prisma.TicketUncheckedCreateNestedManyWithoutQueueInput -} - -export type QueueCreateOrConnectWithoutTeamInput = { - where: Prisma.QueueWhereUniqueInput - create: Prisma.XOR -} - -export type QueueCreateManyTeamInputEnvelope = { - data: Prisma.QueueCreateManyTeamInput | Prisma.QueueCreateManyTeamInput[] -} - -export type QueueUpsertWithWhereUniqueWithoutTeamInput = { - where: Prisma.QueueWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type QueueUpdateWithWhereUniqueWithoutTeamInput = { - where: Prisma.QueueWhereUniqueInput - data: Prisma.XOR -} - -export type QueueUpdateManyWithWhereWithoutTeamInput = { - where: Prisma.QueueScalarWhereInput - data: Prisma.XOR -} - -export type QueueScalarWhereInput = { - AND?: Prisma.QueueScalarWhereInput | Prisma.QueueScalarWhereInput[] - OR?: Prisma.QueueScalarWhereInput[] - NOT?: Prisma.QueueScalarWhereInput | Prisma.QueueScalarWhereInput[] - id?: Prisma.StringFilter<"Queue"> | string - tenantId?: Prisma.StringFilter<"Queue"> | string - name?: Prisma.StringFilter<"Queue"> | string - slug?: Prisma.StringFilter<"Queue"> | string - teamId?: Prisma.StringNullableFilter<"Queue"> | string | null - createdAt?: Prisma.DateTimeFilter<"Queue"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Queue"> | Date | string -} - -export type QueueCreateWithoutTicketsInput = { - id?: string - tenantId: string - name: string - slug: string - createdAt?: Date | string - updatedAt?: Date | string - team?: Prisma.TeamCreateNestedOneWithoutQueuesInput -} - -export type QueueUncheckedCreateWithoutTicketsInput = { - id?: string - tenantId: string - name: string - slug: string - teamId?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type QueueCreateOrConnectWithoutTicketsInput = { - where: Prisma.QueueWhereUniqueInput - create: Prisma.XOR -} - -export type QueueUpsertWithoutTicketsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.QueueWhereInput -} - -export type QueueUpdateToOneWithWhereWithoutTicketsInput = { - where?: Prisma.QueueWhereInput - data: Prisma.XOR -} - -export type QueueUpdateWithoutTicketsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - slug?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - team?: Prisma.TeamUpdateOneWithoutQueuesNestedInput -} - -export type QueueUncheckedUpdateWithoutTicketsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - slug?: Prisma.StringFieldUpdateOperationsInput | string - teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type QueueCreateManyTeamInput = { - id?: string - tenantId: string - name: string - slug: string - createdAt?: Date | string - updatedAt?: Date | string -} - -export type QueueUpdateWithoutTeamInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - slug?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - tickets?: Prisma.TicketUpdateManyWithoutQueueNestedInput -} - -export type QueueUncheckedUpdateWithoutTeamInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - slug?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - tickets?: Prisma.TicketUncheckedUpdateManyWithoutQueueNestedInput -} - -export type QueueUncheckedUpdateManyWithoutTeamInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - slug?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - - -/** - * Count Type QueueCountOutputType - */ - -export type QueueCountOutputType = { - tickets: number -} - -export type QueueCountOutputTypeSelect = { - tickets?: boolean | QueueCountOutputTypeCountTicketsArgs -} - -/** - * QueueCountOutputType without action - */ -export type QueueCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the QueueCountOutputType - */ - select?: Prisma.QueueCountOutputTypeSelect | null -} - -/** - * QueueCountOutputType without action - */ -export type QueueCountOutputTypeCountTicketsArgs = { - where?: Prisma.TicketWhereInput -} - - -export type QueueSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - name?: boolean - slug?: boolean - teamId?: boolean - createdAt?: boolean - updatedAt?: boolean - tickets?: boolean | Prisma.Queue$ticketsArgs - team?: boolean | Prisma.Queue$teamArgs - _count?: boolean | Prisma.QueueCountOutputTypeDefaultArgs -}, ExtArgs["result"]["queue"]> - -export type QueueSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - name?: boolean - slug?: boolean - teamId?: boolean - createdAt?: boolean - updatedAt?: boolean - team?: boolean | Prisma.Queue$teamArgs -}, ExtArgs["result"]["queue"]> - -export type QueueSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - name?: boolean - slug?: boolean - teamId?: boolean - createdAt?: boolean - updatedAt?: boolean - team?: boolean | Prisma.Queue$teamArgs -}, ExtArgs["result"]["queue"]> - -export type QueueSelectScalar = { - id?: boolean - tenantId?: boolean - name?: boolean - slug?: boolean - teamId?: boolean - createdAt?: boolean - updatedAt?: boolean -} - -export type QueueOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "name" | "slug" | "teamId" | "createdAt" | "updatedAt", ExtArgs["result"]["queue"]> -export type QueueInclude = { - tickets?: boolean | Prisma.Queue$ticketsArgs - team?: boolean | Prisma.Queue$teamArgs - _count?: boolean | Prisma.QueueCountOutputTypeDefaultArgs -} -export type QueueIncludeCreateManyAndReturn = { - team?: boolean | Prisma.Queue$teamArgs -} -export type QueueIncludeUpdateManyAndReturn = { - team?: boolean | Prisma.Queue$teamArgs -} - -export type $QueuePayload = { - name: "Queue" - objects: { - tickets: Prisma.$TicketPayload[] - team: Prisma.$TeamPayload | null - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - tenantId: string - name: string - slug: string - teamId: string | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["queue"]> - composites: {} -} - -export type QueueGetPayload = runtime.Types.Result.GetResult - -export type QueueCountArgs = - Omit & { - select?: QueueCountAggregateInputType | true - } - -export interface QueueDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Queue'], meta: { name: 'Queue' } } - /** - * Find zero or one Queue that matches the filter. - * @param {QueueFindUniqueArgs} args - Arguments to find a Queue - * @example - * // Get one Queue - * const queue = await prisma.queue.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__QueueClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Queue that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {QueueFindUniqueOrThrowArgs} args - Arguments to find a Queue - * @example - * // Get one Queue - * const queue = await prisma.queue.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__QueueClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Queue that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {QueueFindFirstArgs} args - Arguments to find a Queue - * @example - * // Get one Queue - * const queue = await prisma.queue.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__QueueClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Queue that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {QueueFindFirstOrThrowArgs} args - Arguments to find a Queue - * @example - * // Get one Queue - * const queue = await prisma.queue.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__QueueClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Queues that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {QueueFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Queues - * const queues = await prisma.queue.findMany() - * - * // Get first 10 Queues - * const queues = await prisma.queue.findMany({ take: 10 }) - * - * // Only select the `id` - * const queueWithIdOnly = await prisma.queue.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Queue. - * @param {QueueCreateArgs} args - Arguments to create a Queue. - * @example - * // Create one Queue - * const Queue = await prisma.queue.create({ - * data: { - * // ... data to create a Queue - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__QueueClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Queues. - * @param {QueueCreateManyArgs} args - Arguments to create many Queues. - * @example - * // Create many Queues - * const queue = await prisma.queue.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Queues and returns the data saved in the database. - * @param {QueueCreateManyAndReturnArgs} args - Arguments to create many Queues. - * @example - * // Create many Queues - * const queue = await prisma.queue.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Queues and only return the `id` - * const queueWithIdOnly = await prisma.queue.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Queue. - * @param {QueueDeleteArgs} args - Arguments to delete one Queue. - * @example - * // Delete one Queue - * const Queue = await prisma.queue.delete({ - * where: { - * // ... filter to delete one Queue - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__QueueClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Queue. - * @param {QueueUpdateArgs} args - Arguments to update one Queue. - * @example - * // Update one Queue - * const queue = await prisma.queue.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__QueueClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Queues. - * @param {QueueDeleteManyArgs} args - Arguments to filter Queues to delete. - * @example - * // Delete a few Queues - * const { count } = await prisma.queue.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Queues. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {QueueUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Queues - * const queue = await prisma.queue.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Queues and returns the data updated in the database. - * @param {QueueUpdateManyAndReturnArgs} args - Arguments to update many Queues. - * @example - * // Update many Queues - * const queue = await prisma.queue.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Queues and only return the `id` - * const queueWithIdOnly = await prisma.queue.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Queue. - * @param {QueueUpsertArgs} args - Arguments to update or create a Queue. - * @example - * // Update or create a Queue - * const queue = await prisma.queue.upsert({ - * create: { - * // ... data to create a Queue - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Queue we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__QueueClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Queues. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {QueueCountArgs} args - Arguments to filter Queues to count. - * @example - * // Count the number of Queues - * const count = await prisma.queue.count({ - * where: { - * // ... the filter for the Queues we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Queue. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {QueueAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by Queue. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {QueueGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends QueueGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: QueueGroupByArgs['orderBy'] } - : { orderBy?: QueueGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetQueueGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the Queue model - */ -readonly fields: QueueFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for Queue. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__QueueClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - tickets = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - team = {}>(args?: Prisma.Subset>): Prisma.Prisma__TeamClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the Queue model - */ -export interface QueueFieldRefs { - readonly id: Prisma.FieldRef<"Queue", 'String'> - readonly tenantId: Prisma.FieldRef<"Queue", 'String'> - readonly name: Prisma.FieldRef<"Queue", 'String'> - readonly slug: Prisma.FieldRef<"Queue", 'String'> - readonly teamId: Prisma.FieldRef<"Queue", 'String'> - readonly createdAt: Prisma.FieldRef<"Queue", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"Queue", 'DateTime'> -} - - -// Custom InputTypes -/** - * Queue findUnique - */ -export type QueueFindUniqueArgs = { - /** - * Select specific fields to fetch from the Queue - */ - select?: Prisma.QueueSelect | null - /** - * Omit specific fields from the Queue - */ - omit?: Prisma.QueueOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.QueueInclude | null - /** - * Filter, which Queue to fetch. - */ - where: Prisma.QueueWhereUniqueInput -} - -/** - * Queue findUniqueOrThrow - */ -export type QueueFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Queue - */ - select?: Prisma.QueueSelect | null - /** - * Omit specific fields from the Queue - */ - omit?: Prisma.QueueOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.QueueInclude | null - /** - * Filter, which Queue to fetch. - */ - where: Prisma.QueueWhereUniqueInput -} - -/** - * Queue findFirst - */ -export type QueueFindFirstArgs = { - /** - * Select specific fields to fetch from the Queue - */ - select?: Prisma.QueueSelect | null - /** - * Omit specific fields from the Queue - */ - omit?: Prisma.QueueOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.QueueInclude | null - /** - * Filter, which Queue to fetch. - */ - where?: Prisma.QueueWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Queues to fetch. - */ - orderBy?: Prisma.QueueOrderByWithRelationInput | Prisma.QueueOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Queues. - */ - cursor?: Prisma.QueueWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Queues from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Queues. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Queues. - */ - distinct?: Prisma.QueueScalarFieldEnum | Prisma.QueueScalarFieldEnum[] -} - -/** - * Queue findFirstOrThrow - */ -export type QueueFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Queue - */ - select?: Prisma.QueueSelect | null - /** - * Omit specific fields from the Queue - */ - omit?: Prisma.QueueOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.QueueInclude | null - /** - * Filter, which Queue to fetch. - */ - where?: Prisma.QueueWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Queues to fetch. - */ - orderBy?: Prisma.QueueOrderByWithRelationInput | Prisma.QueueOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Queues. - */ - cursor?: Prisma.QueueWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Queues from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Queues. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Queues. - */ - distinct?: Prisma.QueueScalarFieldEnum | Prisma.QueueScalarFieldEnum[] -} - -/** - * Queue findMany - */ -export type QueueFindManyArgs = { - /** - * Select specific fields to fetch from the Queue - */ - select?: Prisma.QueueSelect | null - /** - * Omit specific fields from the Queue - */ - omit?: Prisma.QueueOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.QueueInclude | null - /** - * Filter, which Queues to fetch. - */ - where?: Prisma.QueueWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Queues to fetch. - */ - orderBy?: Prisma.QueueOrderByWithRelationInput | Prisma.QueueOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Queues. - */ - cursor?: Prisma.QueueWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Queues from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Queues. - */ - skip?: number - distinct?: Prisma.QueueScalarFieldEnum | Prisma.QueueScalarFieldEnum[] -} - -/** - * Queue create - */ -export type QueueCreateArgs = { - /** - * Select specific fields to fetch from the Queue - */ - select?: Prisma.QueueSelect | null - /** - * Omit specific fields from the Queue - */ - omit?: Prisma.QueueOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.QueueInclude | null - /** - * The data needed to create a Queue. - */ - data: Prisma.XOR -} - -/** - * Queue createMany - */ -export type QueueCreateManyArgs = { - /** - * The data used to create many Queues. - */ - data: Prisma.QueueCreateManyInput | Prisma.QueueCreateManyInput[] -} - -/** - * Queue createManyAndReturn - */ -export type QueueCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Queue - */ - select?: Prisma.QueueSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Queue - */ - omit?: Prisma.QueueOmit | null - /** - * The data used to create many Queues. - */ - data: Prisma.QueueCreateManyInput | Prisma.QueueCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.QueueIncludeCreateManyAndReturn | null -} - -/** - * Queue update - */ -export type QueueUpdateArgs = { - /** - * Select specific fields to fetch from the Queue - */ - select?: Prisma.QueueSelect | null - /** - * Omit specific fields from the Queue - */ - omit?: Prisma.QueueOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.QueueInclude | null - /** - * The data needed to update a Queue. - */ - data: Prisma.XOR - /** - * Choose, which Queue to update. - */ - where: Prisma.QueueWhereUniqueInput -} - -/** - * Queue updateMany - */ -export type QueueUpdateManyArgs = { - /** - * The data used to update Queues. - */ - data: Prisma.XOR - /** - * Filter which Queues to update - */ - where?: Prisma.QueueWhereInput - /** - * Limit how many Queues to update. - */ - limit?: number -} - -/** - * Queue updateManyAndReturn - */ -export type QueueUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Queue - */ - select?: Prisma.QueueSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Queue - */ - omit?: Prisma.QueueOmit | null - /** - * The data used to update Queues. - */ - data: Prisma.XOR - /** - * Filter which Queues to update - */ - where?: Prisma.QueueWhereInput - /** - * Limit how many Queues to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.QueueIncludeUpdateManyAndReturn | null -} - -/** - * Queue upsert - */ -export type QueueUpsertArgs = { - /** - * Select specific fields to fetch from the Queue - */ - select?: Prisma.QueueSelect | null - /** - * Omit specific fields from the Queue - */ - omit?: Prisma.QueueOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.QueueInclude | null - /** - * The filter to search for the Queue to update in case it exists. - */ - where: Prisma.QueueWhereUniqueInput - /** - * In case the Queue found by the `where` argument doesn't exist, create a new Queue with this data. - */ - create: Prisma.XOR - /** - * In case the Queue was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * Queue delete - */ -export type QueueDeleteArgs = { - /** - * Select specific fields to fetch from the Queue - */ - select?: Prisma.QueueSelect | null - /** - * Omit specific fields from the Queue - */ - omit?: Prisma.QueueOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.QueueInclude | null - /** - * Filter which Queue to delete. - */ - where: Prisma.QueueWhereUniqueInput -} - -/** - * Queue deleteMany - */ -export type QueueDeleteManyArgs = { - /** - * Filter which Queues to delete - */ - where?: Prisma.QueueWhereInput - /** - * Limit how many Queues to delete. - */ - limit?: number -} - -/** - * Queue.tickets - */ -export type Queue$ticketsArgs = { - /** - * Select specific fields to fetch from the Ticket - */ - select?: Prisma.TicketSelect | null - /** - * Omit specific fields from the Ticket - */ - omit?: Prisma.TicketOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketInclude | null - where?: Prisma.TicketWhereInput - orderBy?: Prisma.TicketOrderByWithRelationInput | Prisma.TicketOrderByWithRelationInput[] - cursor?: Prisma.TicketWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.TicketScalarFieldEnum | Prisma.TicketScalarFieldEnum[] -} - -/** - * Queue.team - */ -export type Queue$teamArgs = { - /** - * Select specific fields to fetch from the Team - */ - select?: Prisma.TeamSelect | null - /** - * Omit specific fields from the Team - */ - omit?: Prisma.TeamOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamInclude | null - where?: Prisma.TeamWhereInput -} - -/** - * Queue without action - */ -export type QueueDefaultArgs = { - /** - * Select specific fields to fetch from the Queue - */ - select?: Prisma.QueueSelect | null - /** - * Omit specific fields from the Queue - */ - omit?: Prisma.QueueOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.QueueInclude | null -} diff --git a/src/generated/prisma/models/ReportExportRun.ts b/src/generated/prisma/models/ReportExportRun.ts deleted file mode 100644 index b23729c..0000000 --- a/src/generated/prisma/models/ReportExportRun.ts +++ /dev/null @@ -1,1436 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `ReportExportRun` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model ReportExportRun - * - */ -export type ReportExportRunModel = runtime.Types.Result.DefaultSelection - -export type AggregateReportExportRun = { - _count: ReportExportRunCountAggregateOutputType | null - _min: ReportExportRunMinAggregateOutputType | null - _max: ReportExportRunMaxAggregateOutputType | null -} - -export type ReportExportRunMinAggregateOutputType = { - id: string | null - tenantId: string | null - scheduleId: string | null - status: string | null - startedAt: Date | null - completedAt: Date | null - error: string | null -} - -export type ReportExportRunMaxAggregateOutputType = { - id: string | null - tenantId: string | null - scheduleId: string | null - status: string | null - startedAt: Date | null - completedAt: Date | null - error: string | null -} - -export type ReportExportRunCountAggregateOutputType = { - id: number - tenantId: number - scheduleId: number - status: number - startedAt: number - completedAt: number - error: number - artifacts: number - _all: number -} - - -export type ReportExportRunMinAggregateInputType = { - id?: true - tenantId?: true - scheduleId?: true - status?: true - startedAt?: true - completedAt?: true - error?: true -} - -export type ReportExportRunMaxAggregateInputType = { - id?: true - tenantId?: true - scheduleId?: true - status?: true - startedAt?: true - completedAt?: true - error?: true -} - -export type ReportExportRunCountAggregateInputType = { - id?: true - tenantId?: true - scheduleId?: true - status?: true - startedAt?: true - completedAt?: true - error?: true - artifacts?: true - _all?: true -} - -export type ReportExportRunAggregateArgs = { - /** - * Filter which ReportExportRun to aggregate. - */ - where?: Prisma.ReportExportRunWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of ReportExportRuns to fetch. - */ - orderBy?: Prisma.ReportExportRunOrderByWithRelationInput | Prisma.ReportExportRunOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.ReportExportRunWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` ReportExportRuns from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` ReportExportRuns. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned ReportExportRuns - **/ - _count?: true | ReportExportRunCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: ReportExportRunMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: ReportExportRunMaxAggregateInputType -} - -export type GetReportExportRunAggregateType = { - [P in keyof T & keyof AggregateReportExportRun]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type ReportExportRunGroupByArgs = { - where?: Prisma.ReportExportRunWhereInput - orderBy?: Prisma.ReportExportRunOrderByWithAggregationInput | Prisma.ReportExportRunOrderByWithAggregationInput[] - by: Prisma.ReportExportRunScalarFieldEnum[] | Prisma.ReportExportRunScalarFieldEnum - having?: Prisma.ReportExportRunScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: ReportExportRunCountAggregateInputType | true - _min?: ReportExportRunMinAggregateInputType - _max?: ReportExportRunMaxAggregateInputType -} - -export type ReportExportRunGroupByOutputType = { - id: string - tenantId: string - scheduleId: string - status: string - startedAt: Date - completedAt: Date | null - error: string | null - artifacts: runtime.JsonValue | null - _count: ReportExportRunCountAggregateOutputType | null - _min: ReportExportRunMinAggregateOutputType | null - _max: ReportExportRunMaxAggregateOutputType | null -} - -type GetReportExportRunGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof ReportExportRunGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type ReportExportRunWhereInput = { - AND?: Prisma.ReportExportRunWhereInput | Prisma.ReportExportRunWhereInput[] - OR?: Prisma.ReportExportRunWhereInput[] - NOT?: Prisma.ReportExportRunWhereInput | Prisma.ReportExportRunWhereInput[] - id?: Prisma.StringFilter<"ReportExportRun"> | string - tenantId?: Prisma.StringFilter<"ReportExportRun"> | string - scheduleId?: Prisma.StringFilter<"ReportExportRun"> | string - status?: Prisma.StringFilter<"ReportExportRun"> | string - startedAt?: Prisma.DateTimeFilter<"ReportExportRun"> | Date | string - completedAt?: Prisma.DateTimeNullableFilter<"ReportExportRun"> | Date | string | null - error?: Prisma.StringNullableFilter<"ReportExportRun"> | string | null - artifacts?: Prisma.JsonNullableFilter<"ReportExportRun"> - schedule?: Prisma.XOR -} - -export type ReportExportRunOrderByWithRelationInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - scheduleId?: Prisma.SortOrder - status?: Prisma.SortOrder - startedAt?: Prisma.SortOrder - completedAt?: Prisma.SortOrderInput | Prisma.SortOrder - error?: Prisma.SortOrderInput | Prisma.SortOrder - artifacts?: Prisma.SortOrderInput | Prisma.SortOrder - schedule?: Prisma.ReportExportScheduleOrderByWithRelationInput -} - -export type ReportExportRunWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: Prisma.ReportExportRunWhereInput | Prisma.ReportExportRunWhereInput[] - OR?: Prisma.ReportExportRunWhereInput[] - NOT?: Prisma.ReportExportRunWhereInput | Prisma.ReportExportRunWhereInput[] - tenantId?: Prisma.StringFilter<"ReportExportRun"> | string - scheduleId?: Prisma.StringFilter<"ReportExportRun"> | string - status?: Prisma.StringFilter<"ReportExportRun"> | string - startedAt?: Prisma.DateTimeFilter<"ReportExportRun"> | Date | string - completedAt?: Prisma.DateTimeNullableFilter<"ReportExportRun"> | Date | string | null - error?: Prisma.StringNullableFilter<"ReportExportRun"> | string | null - artifacts?: Prisma.JsonNullableFilter<"ReportExportRun"> - schedule?: Prisma.XOR -}, "id"> - -export type ReportExportRunOrderByWithAggregationInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - scheduleId?: Prisma.SortOrder - status?: Prisma.SortOrder - startedAt?: Prisma.SortOrder - completedAt?: Prisma.SortOrderInput | Prisma.SortOrder - error?: Prisma.SortOrderInput | Prisma.SortOrder - artifacts?: Prisma.SortOrderInput | Prisma.SortOrder - _count?: Prisma.ReportExportRunCountOrderByAggregateInput - _max?: Prisma.ReportExportRunMaxOrderByAggregateInput - _min?: Prisma.ReportExportRunMinOrderByAggregateInput -} - -export type ReportExportRunScalarWhereWithAggregatesInput = { - AND?: Prisma.ReportExportRunScalarWhereWithAggregatesInput | Prisma.ReportExportRunScalarWhereWithAggregatesInput[] - OR?: Prisma.ReportExportRunScalarWhereWithAggregatesInput[] - NOT?: Prisma.ReportExportRunScalarWhereWithAggregatesInput | Prisma.ReportExportRunScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"ReportExportRun"> | string - tenantId?: Prisma.StringWithAggregatesFilter<"ReportExportRun"> | string - scheduleId?: Prisma.StringWithAggregatesFilter<"ReportExportRun"> | string - status?: Prisma.StringWithAggregatesFilter<"ReportExportRun"> | string - startedAt?: Prisma.DateTimeWithAggregatesFilter<"ReportExportRun"> | Date | string - completedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ReportExportRun"> | Date | string | null - error?: Prisma.StringNullableWithAggregatesFilter<"ReportExportRun"> | string | null - artifacts?: Prisma.JsonNullableWithAggregatesFilter<"ReportExportRun"> -} - -export type ReportExportRunCreateInput = { - id?: string - tenantId: string - status?: string - startedAt?: Date | string - completedAt?: Date | string | null - error?: string | null - artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - schedule: Prisma.ReportExportScheduleCreateNestedOneWithoutRunsInput -} - -export type ReportExportRunUncheckedCreateInput = { - id?: string - tenantId: string - scheduleId: string - status?: string - startedAt?: Date | string - completedAt?: Date | string | null - error?: string | null - artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue -} - -export type ReportExportRunUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.StringFieldUpdateOperationsInput | string - startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - schedule?: Prisma.ReportExportScheduleUpdateOneRequiredWithoutRunsNestedInput -} - -export type ReportExportRunUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - scheduleId?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.StringFieldUpdateOperationsInput | string - startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue -} - -export type ReportExportRunCreateManyInput = { - id?: string - tenantId: string - scheduleId: string - status?: string - startedAt?: Date | string - completedAt?: Date | string | null - error?: string | null - artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue -} - -export type ReportExportRunUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.StringFieldUpdateOperationsInput | string - startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue -} - -export type ReportExportRunUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - scheduleId?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.StringFieldUpdateOperationsInput | string - startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue -} - -export type ReportExportRunListRelationFilter = { - every?: Prisma.ReportExportRunWhereInput - some?: Prisma.ReportExportRunWhereInput - none?: Prisma.ReportExportRunWhereInput -} - -export type ReportExportRunOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type ReportExportRunCountOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - scheduleId?: Prisma.SortOrder - status?: Prisma.SortOrder - startedAt?: Prisma.SortOrder - completedAt?: Prisma.SortOrder - error?: Prisma.SortOrder - artifacts?: Prisma.SortOrder -} - -export type ReportExportRunMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - scheduleId?: Prisma.SortOrder - status?: Prisma.SortOrder - startedAt?: Prisma.SortOrder - completedAt?: Prisma.SortOrder - error?: Prisma.SortOrder -} - -export type ReportExportRunMinOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - scheduleId?: Prisma.SortOrder - status?: Prisma.SortOrder - startedAt?: Prisma.SortOrder - completedAt?: Prisma.SortOrder - error?: Prisma.SortOrder -} - -export type ReportExportRunCreateNestedManyWithoutScheduleInput = { - create?: Prisma.XOR | Prisma.ReportExportRunCreateWithoutScheduleInput[] | Prisma.ReportExportRunUncheckedCreateWithoutScheduleInput[] - connectOrCreate?: Prisma.ReportExportRunCreateOrConnectWithoutScheduleInput | Prisma.ReportExportRunCreateOrConnectWithoutScheduleInput[] - createMany?: Prisma.ReportExportRunCreateManyScheduleInputEnvelope - connect?: Prisma.ReportExportRunWhereUniqueInput | Prisma.ReportExportRunWhereUniqueInput[] -} - -export type ReportExportRunUncheckedCreateNestedManyWithoutScheduleInput = { - create?: Prisma.XOR | Prisma.ReportExportRunCreateWithoutScheduleInput[] | Prisma.ReportExportRunUncheckedCreateWithoutScheduleInput[] - connectOrCreate?: Prisma.ReportExportRunCreateOrConnectWithoutScheduleInput | Prisma.ReportExportRunCreateOrConnectWithoutScheduleInput[] - createMany?: Prisma.ReportExportRunCreateManyScheduleInputEnvelope - connect?: Prisma.ReportExportRunWhereUniqueInput | Prisma.ReportExportRunWhereUniqueInput[] -} - -export type ReportExportRunUpdateManyWithoutScheduleNestedInput = { - create?: Prisma.XOR | Prisma.ReportExportRunCreateWithoutScheduleInput[] | Prisma.ReportExportRunUncheckedCreateWithoutScheduleInput[] - connectOrCreate?: Prisma.ReportExportRunCreateOrConnectWithoutScheduleInput | Prisma.ReportExportRunCreateOrConnectWithoutScheduleInput[] - upsert?: Prisma.ReportExportRunUpsertWithWhereUniqueWithoutScheduleInput | Prisma.ReportExportRunUpsertWithWhereUniqueWithoutScheduleInput[] - createMany?: Prisma.ReportExportRunCreateManyScheduleInputEnvelope - set?: Prisma.ReportExportRunWhereUniqueInput | Prisma.ReportExportRunWhereUniqueInput[] - disconnect?: Prisma.ReportExportRunWhereUniqueInput | Prisma.ReportExportRunWhereUniqueInput[] - delete?: Prisma.ReportExportRunWhereUniqueInput | Prisma.ReportExportRunWhereUniqueInput[] - connect?: Prisma.ReportExportRunWhereUniqueInput | Prisma.ReportExportRunWhereUniqueInput[] - update?: Prisma.ReportExportRunUpdateWithWhereUniqueWithoutScheduleInput | Prisma.ReportExportRunUpdateWithWhereUniqueWithoutScheduleInput[] - updateMany?: Prisma.ReportExportRunUpdateManyWithWhereWithoutScheduleInput | Prisma.ReportExportRunUpdateManyWithWhereWithoutScheduleInput[] - deleteMany?: Prisma.ReportExportRunScalarWhereInput | Prisma.ReportExportRunScalarWhereInput[] -} - -export type ReportExportRunUncheckedUpdateManyWithoutScheduleNestedInput = { - create?: Prisma.XOR | Prisma.ReportExportRunCreateWithoutScheduleInput[] | Prisma.ReportExportRunUncheckedCreateWithoutScheduleInput[] - connectOrCreate?: Prisma.ReportExportRunCreateOrConnectWithoutScheduleInput | Prisma.ReportExportRunCreateOrConnectWithoutScheduleInput[] - upsert?: Prisma.ReportExportRunUpsertWithWhereUniqueWithoutScheduleInput | Prisma.ReportExportRunUpsertWithWhereUniqueWithoutScheduleInput[] - createMany?: Prisma.ReportExportRunCreateManyScheduleInputEnvelope - set?: Prisma.ReportExportRunWhereUniqueInput | Prisma.ReportExportRunWhereUniqueInput[] - disconnect?: Prisma.ReportExportRunWhereUniqueInput | Prisma.ReportExportRunWhereUniqueInput[] - delete?: Prisma.ReportExportRunWhereUniqueInput | Prisma.ReportExportRunWhereUniqueInput[] - connect?: Prisma.ReportExportRunWhereUniqueInput | Prisma.ReportExportRunWhereUniqueInput[] - update?: Prisma.ReportExportRunUpdateWithWhereUniqueWithoutScheduleInput | Prisma.ReportExportRunUpdateWithWhereUniqueWithoutScheduleInput[] - updateMany?: Prisma.ReportExportRunUpdateManyWithWhereWithoutScheduleInput | Prisma.ReportExportRunUpdateManyWithWhereWithoutScheduleInput[] - deleteMany?: Prisma.ReportExportRunScalarWhereInput | Prisma.ReportExportRunScalarWhereInput[] -} - -export type ReportExportRunCreateWithoutScheduleInput = { - id?: string - tenantId: string - status?: string - startedAt?: Date | string - completedAt?: Date | string | null - error?: string | null - artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue -} - -export type ReportExportRunUncheckedCreateWithoutScheduleInput = { - id?: string - tenantId: string - status?: string - startedAt?: Date | string - completedAt?: Date | string | null - error?: string | null - artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue -} - -export type ReportExportRunCreateOrConnectWithoutScheduleInput = { - where: Prisma.ReportExportRunWhereUniqueInput - create: Prisma.XOR -} - -export type ReportExportRunCreateManyScheduleInputEnvelope = { - data: Prisma.ReportExportRunCreateManyScheduleInput | Prisma.ReportExportRunCreateManyScheduleInput[] -} - -export type ReportExportRunUpsertWithWhereUniqueWithoutScheduleInput = { - where: Prisma.ReportExportRunWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type ReportExportRunUpdateWithWhereUniqueWithoutScheduleInput = { - where: Prisma.ReportExportRunWhereUniqueInput - data: Prisma.XOR -} - -export type ReportExportRunUpdateManyWithWhereWithoutScheduleInput = { - where: Prisma.ReportExportRunScalarWhereInput - data: Prisma.XOR -} - -export type ReportExportRunScalarWhereInput = { - AND?: Prisma.ReportExportRunScalarWhereInput | Prisma.ReportExportRunScalarWhereInput[] - OR?: Prisma.ReportExportRunScalarWhereInput[] - NOT?: Prisma.ReportExportRunScalarWhereInput | Prisma.ReportExportRunScalarWhereInput[] - id?: Prisma.StringFilter<"ReportExportRun"> | string - tenantId?: Prisma.StringFilter<"ReportExportRun"> | string - scheduleId?: Prisma.StringFilter<"ReportExportRun"> | string - status?: Prisma.StringFilter<"ReportExportRun"> | string - startedAt?: Prisma.DateTimeFilter<"ReportExportRun"> | Date | string - completedAt?: Prisma.DateTimeNullableFilter<"ReportExportRun"> | Date | string | null - error?: Prisma.StringNullableFilter<"ReportExportRun"> | string | null - artifacts?: Prisma.JsonNullableFilter<"ReportExportRun"> -} - -export type ReportExportRunCreateManyScheduleInput = { - id?: string - tenantId: string - status?: string - startedAt?: Date | string - completedAt?: Date | string | null - error?: string | null - artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue -} - -export type ReportExportRunUpdateWithoutScheduleInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.StringFieldUpdateOperationsInput | string - startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue -} - -export type ReportExportRunUncheckedUpdateWithoutScheduleInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.StringFieldUpdateOperationsInput | string - startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue -} - -export type ReportExportRunUncheckedUpdateManyWithoutScheduleInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.StringFieldUpdateOperationsInput | string - startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - artifacts?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue -} - - - -export type ReportExportRunSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - scheduleId?: boolean - status?: boolean - startedAt?: boolean - completedAt?: boolean - error?: boolean - artifacts?: boolean - schedule?: boolean | Prisma.ReportExportScheduleDefaultArgs -}, ExtArgs["result"]["reportExportRun"]> - -export type ReportExportRunSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - scheduleId?: boolean - status?: boolean - startedAt?: boolean - completedAt?: boolean - error?: boolean - artifacts?: boolean - schedule?: boolean | Prisma.ReportExportScheduleDefaultArgs -}, ExtArgs["result"]["reportExportRun"]> - -export type ReportExportRunSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - scheduleId?: boolean - status?: boolean - startedAt?: boolean - completedAt?: boolean - error?: boolean - artifacts?: boolean - schedule?: boolean | Prisma.ReportExportScheduleDefaultArgs -}, ExtArgs["result"]["reportExportRun"]> - -export type ReportExportRunSelectScalar = { - id?: boolean - tenantId?: boolean - scheduleId?: boolean - status?: boolean - startedAt?: boolean - completedAt?: boolean - error?: boolean - artifacts?: boolean -} - -export type ReportExportRunOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "scheduleId" | "status" | "startedAt" | "completedAt" | "error" | "artifacts", ExtArgs["result"]["reportExportRun"]> -export type ReportExportRunInclude = { - schedule?: boolean | Prisma.ReportExportScheduleDefaultArgs -} -export type ReportExportRunIncludeCreateManyAndReturn = { - schedule?: boolean | Prisma.ReportExportScheduleDefaultArgs -} -export type ReportExportRunIncludeUpdateManyAndReturn = { - schedule?: boolean | Prisma.ReportExportScheduleDefaultArgs -} - -export type $ReportExportRunPayload = { - name: "ReportExportRun" - objects: { - schedule: Prisma.$ReportExportSchedulePayload - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - tenantId: string - scheduleId: string - status: string - startedAt: Date - completedAt: Date | null - error: string | null - artifacts: runtime.JsonValue | null - }, ExtArgs["result"]["reportExportRun"]> - composites: {} -} - -export type ReportExportRunGetPayload = runtime.Types.Result.GetResult - -export type ReportExportRunCountArgs = - Omit & { - select?: ReportExportRunCountAggregateInputType | true - } - -export interface ReportExportRunDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['ReportExportRun'], meta: { name: 'ReportExportRun' } } - /** - * Find zero or one ReportExportRun that matches the filter. - * @param {ReportExportRunFindUniqueArgs} args - Arguments to find a ReportExportRun - * @example - * // Get one ReportExportRun - * const reportExportRun = await prisma.reportExportRun.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ReportExportRunClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one ReportExportRun that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {ReportExportRunFindUniqueOrThrowArgs} args - Arguments to find a ReportExportRun - * @example - * // Get one ReportExportRun - * const reportExportRun = await prisma.reportExportRun.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ReportExportRunClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first ReportExportRun that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ReportExportRunFindFirstArgs} args - Arguments to find a ReportExportRun - * @example - * // Get one ReportExportRun - * const reportExportRun = await prisma.reportExportRun.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ReportExportRunClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first ReportExportRun that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ReportExportRunFindFirstOrThrowArgs} args - Arguments to find a ReportExportRun - * @example - * // Get one ReportExportRun - * const reportExportRun = await prisma.reportExportRun.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ReportExportRunClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more ReportExportRuns that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ReportExportRunFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all ReportExportRuns - * const reportExportRuns = await prisma.reportExportRun.findMany() - * - * // Get first 10 ReportExportRuns - * const reportExportRuns = await prisma.reportExportRun.findMany({ take: 10 }) - * - * // Only select the `id` - * const reportExportRunWithIdOnly = await prisma.reportExportRun.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a ReportExportRun. - * @param {ReportExportRunCreateArgs} args - Arguments to create a ReportExportRun. - * @example - * // Create one ReportExportRun - * const ReportExportRun = await prisma.reportExportRun.create({ - * data: { - * // ... data to create a ReportExportRun - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__ReportExportRunClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many ReportExportRuns. - * @param {ReportExportRunCreateManyArgs} args - Arguments to create many ReportExportRuns. - * @example - * // Create many ReportExportRuns - * const reportExportRun = await prisma.reportExportRun.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many ReportExportRuns and returns the data saved in the database. - * @param {ReportExportRunCreateManyAndReturnArgs} args - Arguments to create many ReportExportRuns. - * @example - * // Create many ReportExportRuns - * const reportExportRun = await prisma.reportExportRun.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many ReportExportRuns and only return the `id` - * const reportExportRunWithIdOnly = await prisma.reportExportRun.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a ReportExportRun. - * @param {ReportExportRunDeleteArgs} args - Arguments to delete one ReportExportRun. - * @example - * // Delete one ReportExportRun - * const ReportExportRun = await prisma.reportExportRun.delete({ - * where: { - * // ... filter to delete one ReportExportRun - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__ReportExportRunClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one ReportExportRun. - * @param {ReportExportRunUpdateArgs} args - Arguments to update one ReportExportRun. - * @example - * // Update one ReportExportRun - * const reportExportRun = await prisma.reportExportRun.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__ReportExportRunClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more ReportExportRuns. - * @param {ReportExportRunDeleteManyArgs} args - Arguments to filter ReportExportRuns to delete. - * @example - * // Delete a few ReportExportRuns - * const { count } = await prisma.reportExportRun.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more ReportExportRuns. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ReportExportRunUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many ReportExportRuns - * const reportExportRun = await prisma.reportExportRun.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more ReportExportRuns and returns the data updated in the database. - * @param {ReportExportRunUpdateManyAndReturnArgs} args - Arguments to update many ReportExportRuns. - * @example - * // Update many ReportExportRuns - * const reportExportRun = await prisma.reportExportRun.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more ReportExportRuns and only return the `id` - * const reportExportRunWithIdOnly = await prisma.reportExportRun.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one ReportExportRun. - * @param {ReportExportRunUpsertArgs} args - Arguments to update or create a ReportExportRun. - * @example - * // Update or create a ReportExportRun - * const reportExportRun = await prisma.reportExportRun.upsert({ - * create: { - * // ... data to create a ReportExportRun - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the ReportExportRun we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ReportExportRunClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of ReportExportRuns. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ReportExportRunCountArgs} args - Arguments to filter ReportExportRuns to count. - * @example - * // Count the number of ReportExportRuns - * const count = await prisma.reportExportRun.count({ - * where: { - * // ... the filter for the ReportExportRuns we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a ReportExportRun. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ReportExportRunAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by ReportExportRun. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ReportExportRunGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends ReportExportRunGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: ReportExportRunGroupByArgs['orderBy'] } - : { orderBy?: ReportExportRunGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetReportExportRunGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the ReportExportRun model - */ -readonly fields: ReportExportRunFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for ReportExportRun. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__ReportExportRunClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - schedule = {}>(args?: Prisma.Subset>): Prisma.Prisma__ReportExportScheduleClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the ReportExportRun model - */ -export interface ReportExportRunFieldRefs { - readonly id: Prisma.FieldRef<"ReportExportRun", 'String'> - readonly tenantId: Prisma.FieldRef<"ReportExportRun", 'String'> - readonly scheduleId: Prisma.FieldRef<"ReportExportRun", 'String'> - readonly status: Prisma.FieldRef<"ReportExportRun", 'String'> - readonly startedAt: Prisma.FieldRef<"ReportExportRun", 'DateTime'> - readonly completedAt: Prisma.FieldRef<"ReportExportRun", 'DateTime'> - readonly error: Prisma.FieldRef<"ReportExportRun", 'String'> - readonly artifacts: Prisma.FieldRef<"ReportExportRun", 'Json'> -} - - -// Custom InputTypes -/** - * ReportExportRun findUnique - */ -export type ReportExportRunFindUniqueArgs = { - /** - * Select specific fields to fetch from the ReportExportRun - */ - select?: Prisma.ReportExportRunSelect | null - /** - * Omit specific fields from the ReportExportRun - */ - omit?: Prisma.ReportExportRunOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportRunInclude | null - /** - * Filter, which ReportExportRun to fetch. - */ - where: Prisma.ReportExportRunWhereUniqueInput -} - -/** - * ReportExportRun findUniqueOrThrow - */ -export type ReportExportRunFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the ReportExportRun - */ - select?: Prisma.ReportExportRunSelect | null - /** - * Omit specific fields from the ReportExportRun - */ - omit?: Prisma.ReportExportRunOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportRunInclude | null - /** - * Filter, which ReportExportRun to fetch. - */ - where: Prisma.ReportExportRunWhereUniqueInput -} - -/** - * ReportExportRun findFirst - */ -export type ReportExportRunFindFirstArgs = { - /** - * Select specific fields to fetch from the ReportExportRun - */ - select?: Prisma.ReportExportRunSelect | null - /** - * Omit specific fields from the ReportExportRun - */ - omit?: Prisma.ReportExportRunOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportRunInclude | null - /** - * Filter, which ReportExportRun to fetch. - */ - where?: Prisma.ReportExportRunWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of ReportExportRuns to fetch. - */ - orderBy?: Prisma.ReportExportRunOrderByWithRelationInput | Prisma.ReportExportRunOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for ReportExportRuns. - */ - cursor?: Prisma.ReportExportRunWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` ReportExportRuns from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` ReportExportRuns. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of ReportExportRuns. - */ - distinct?: Prisma.ReportExportRunScalarFieldEnum | Prisma.ReportExportRunScalarFieldEnum[] -} - -/** - * ReportExportRun findFirstOrThrow - */ -export type ReportExportRunFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the ReportExportRun - */ - select?: Prisma.ReportExportRunSelect | null - /** - * Omit specific fields from the ReportExportRun - */ - omit?: Prisma.ReportExportRunOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportRunInclude | null - /** - * Filter, which ReportExportRun to fetch. - */ - where?: Prisma.ReportExportRunWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of ReportExportRuns to fetch. - */ - orderBy?: Prisma.ReportExportRunOrderByWithRelationInput | Prisma.ReportExportRunOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for ReportExportRuns. - */ - cursor?: Prisma.ReportExportRunWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` ReportExportRuns from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` ReportExportRuns. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of ReportExportRuns. - */ - distinct?: Prisma.ReportExportRunScalarFieldEnum | Prisma.ReportExportRunScalarFieldEnum[] -} - -/** - * ReportExportRun findMany - */ -export type ReportExportRunFindManyArgs = { - /** - * Select specific fields to fetch from the ReportExportRun - */ - select?: Prisma.ReportExportRunSelect | null - /** - * Omit specific fields from the ReportExportRun - */ - omit?: Prisma.ReportExportRunOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportRunInclude | null - /** - * Filter, which ReportExportRuns to fetch. - */ - where?: Prisma.ReportExportRunWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of ReportExportRuns to fetch. - */ - orderBy?: Prisma.ReportExportRunOrderByWithRelationInput | Prisma.ReportExportRunOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing ReportExportRuns. - */ - cursor?: Prisma.ReportExportRunWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` ReportExportRuns from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` ReportExportRuns. - */ - skip?: number - distinct?: Prisma.ReportExportRunScalarFieldEnum | Prisma.ReportExportRunScalarFieldEnum[] -} - -/** - * ReportExportRun create - */ -export type ReportExportRunCreateArgs = { - /** - * Select specific fields to fetch from the ReportExportRun - */ - select?: Prisma.ReportExportRunSelect | null - /** - * Omit specific fields from the ReportExportRun - */ - omit?: Prisma.ReportExportRunOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportRunInclude | null - /** - * The data needed to create a ReportExportRun. - */ - data: Prisma.XOR -} - -/** - * ReportExportRun createMany - */ -export type ReportExportRunCreateManyArgs = { - /** - * The data used to create many ReportExportRuns. - */ - data: Prisma.ReportExportRunCreateManyInput | Prisma.ReportExportRunCreateManyInput[] -} - -/** - * ReportExportRun createManyAndReturn - */ -export type ReportExportRunCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the ReportExportRun - */ - select?: Prisma.ReportExportRunSelectCreateManyAndReturn | null - /** - * Omit specific fields from the ReportExportRun - */ - omit?: Prisma.ReportExportRunOmit | null - /** - * The data used to create many ReportExportRuns. - */ - data: Prisma.ReportExportRunCreateManyInput | Prisma.ReportExportRunCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportRunIncludeCreateManyAndReturn | null -} - -/** - * ReportExportRun update - */ -export type ReportExportRunUpdateArgs = { - /** - * Select specific fields to fetch from the ReportExportRun - */ - select?: Prisma.ReportExportRunSelect | null - /** - * Omit specific fields from the ReportExportRun - */ - omit?: Prisma.ReportExportRunOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportRunInclude | null - /** - * The data needed to update a ReportExportRun. - */ - data: Prisma.XOR - /** - * Choose, which ReportExportRun to update. - */ - where: Prisma.ReportExportRunWhereUniqueInput -} - -/** - * ReportExportRun updateMany - */ -export type ReportExportRunUpdateManyArgs = { - /** - * The data used to update ReportExportRuns. - */ - data: Prisma.XOR - /** - * Filter which ReportExportRuns to update - */ - where?: Prisma.ReportExportRunWhereInput - /** - * Limit how many ReportExportRuns to update. - */ - limit?: number -} - -/** - * ReportExportRun updateManyAndReturn - */ -export type ReportExportRunUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the ReportExportRun - */ - select?: Prisma.ReportExportRunSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the ReportExportRun - */ - omit?: Prisma.ReportExportRunOmit | null - /** - * The data used to update ReportExportRuns. - */ - data: Prisma.XOR - /** - * Filter which ReportExportRuns to update - */ - where?: Prisma.ReportExportRunWhereInput - /** - * Limit how many ReportExportRuns to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportRunIncludeUpdateManyAndReturn | null -} - -/** - * ReportExportRun upsert - */ -export type ReportExportRunUpsertArgs = { - /** - * Select specific fields to fetch from the ReportExportRun - */ - select?: Prisma.ReportExportRunSelect | null - /** - * Omit specific fields from the ReportExportRun - */ - omit?: Prisma.ReportExportRunOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportRunInclude | null - /** - * The filter to search for the ReportExportRun to update in case it exists. - */ - where: Prisma.ReportExportRunWhereUniqueInput - /** - * In case the ReportExportRun found by the `where` argument doesn't exist, create a new ReportExportRun with this data. - */ - create: Prisma.XOR - /** - * In case the ReportExportRun was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * ReportExportRun delete - */ -export type ReportExportRunDeleteArgs = { - /** - * Select specific fields to fetch from the ReportExportRun - */ - select?: Prisma.ReportExportRunSelect | null - /** - * Omit specific fields from the ReportExportRun - */ - omit?: Prisma.ReportExportRunOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportRunInclude | null - /** - * Filter which ReportExportRun to delete. - */ - where: Prisma.ReportExportRunWhereUniqueInput -} - -/** - * ReportExportRun deleteMany - */ -export type ReportExportRunDeleteManyArgs = { - /** - * Filter which ReportExportRuns to delete - */ - where?: Prisma.ReportExportRunWhereInput - /** - * Limit how many ReportExportRuns to delete. - */ - limit?: number -} - -/** - * ReportExportRun without action - */ -export type ReportExportRunDefaultArgs = { - /** - * Select specific fields to fetch from the ReportExportRun - */ - select?: Prisma.ReportExportRunSelect | null - /** - * Omit specific fields from the ReportExportRun - */ - omit?: Prisma.ReportExportRunOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportRunInclude | null -} diff --git a/src/generated/prisma/models/ReportExportSchedule.ts b/src/generated/prisma/models/ReportExportSchedule.ts deleted file mode 100644 index 561260a..0000000 --- a/src/generated/prisma/models/ReportExportSchedule.ts +++ /dev/null @@ -1,1914 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `ReportExportSchedule` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model ReportExportSchedule - * - */ -export type ReportExportScheduleModel = runtime.Types.Result.DefaultSelection - -export type AggregateReportExportSchedule = { - _count: ReportExportScheduleCountAggregateOutputType | null - _avg: ReportExportScheduleAvgAggregateOutputType | null - _sum: ReportExportScheduleSumAggregateOutputType | null - _min: ReportExportScheduleMinAggregateOutputType | null - _max: ReportExportScheduleMaxAggregateOutputType | null -} - -export type ReportExportScheduleAvgAggregateOutputType = { - dayOfWeek: number | null - dayOfMonth: number | null - hour: number | null - minute: number | null -} - -export type ReportExportScheduleSumAggregateOutputType = { - dayOfWeek: number | null - dayOfMonth: number | null - hour: number | null - minute: number | null -} - -export type ReportExportScheduleMinAggregateOutputType = { - id: string | null - tenantId: string | null - name: string | null - range: string | null - companyId: string | null - companyName: string | null - format: string | null - frequency: string | null - dayOfWeek: number | null - dayOfMonth: number | null - hour: number | null - minute: number | null - timezone: string | null - status: string | null - lastRunAt: Date | null - nextRunAt: Date | null - createdBy: string | null - updatedBy: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type ReportExportScheduleMaxAggregateOutputType = { - id: string | null - tenantId: string | null - name: string | null - range: string | null - companyId: string | null - companyName: string | null - format: string | null - frequency: string | null - dayOfWeek: number | null - dayOfMonth: number | null - hour: number | null - minute: number | null - timezone: string | null - status: string | null - lastRunAt: Date | null - nextRunAt: Date | null - createdBy: string | null - updatedBy: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type ReportExportScheduleCountAggregateOutputType = { - id: number - tenantId: number - name: number - reportKeys: number - range: number - companyId: number - companyName: number - format: number - frequency: number - dayOfWeek: number - dayOfMonth: number - hour: number - minute: number - timezone: number - recipients: number - status: number - lastRunAt: number - nextRunAt: number - createdBy: number - updatedBy: number - createdAt: number - updatedAt: number - _all: number -} - - -export type ReportExportScheduleAvgAggregateInputType = { - dayOfWeek?: true - dayOfMonth?: true - hour?: true - minute?: true -} - -export type ReportExportScheduleSumAggregateInputType = { - dayOfWeek?: true - dayOfMonth?: true - hour?: true - minute?: true -} - -export type ReportExportScheduleMinAggregateInputType = { - id?: true - tenantId?: true - name?: true - range?: true - companyId?: true - companyName?: true - format?: true - frequency?: true - dayOfWeek?: true - dayOfMonth?: true - hour?: true - minute?: true - timezone?: true - status?: true - lastRunAt?: true - nextRunAt?: true - createdBy?: true - updatedBy?: true - createdAt?: true - updatedAt?: true -} - -export type ReportExportScheduleMaxAggregateInputType = { - id?: true - tenantId?: true - name?: true - range?: true - companyId?: true - companyName?: true - format?: true - frequency?: true - dayOfWeek?: true - dayOfMonth?: true - hour?: true - minute?: true - timezone?: true - status?: true - lastRunAt?: true - nextRunAt?: true - createdBy?: true - updatedBy?: true - createdAt?: true - updatedAt?: true -} - -export type ReportExportScheduleCountAggregateInputType = { - id?: true - tenantId?: true - name?: true - reportKeys?: true - range?: true - companyId?: true - companyName?: true - format?: true - frequency?: true - dayOfWeek?: true - dayOfMonth?: true - hour?: true - minute?: true - timezone?: true - recipients?: true - status?: true - lastRunAt?: true - nextRunAt?: true - createdBy?: true - updatedBy?: true - createdAt?: true - updatedAt?: true - _all?: true -} - -export type ReportExportScheduleAggregateArgs = { - /** - * Filter which ReportExportSchedule to aggregate. - */ - where?: Prisma.ReportExportScheduleWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of ReportExportSchedules to fetch. - */ - orderBy?: Prisma.ReportExportScheduleOrderByWithRelationInput | Prisma.ReportExportScheduleOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.ReportExportScheduleWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` ReportExportSchedules from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` ReportExportSchedules. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned ReportExportSchedules - **/ - _count?: true | ReportExportScheduleCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: ReportExportScheduleAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: ReportExportScheduleSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: ReportExportScheduleMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: ReportExportScheduleMaxAggregateInputType -} - -export type GetReportExportScheduleAggregateType = { - [P in keyof T & keyof AggregateReportExportSchedule]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type ReportExportScheduleGroupByArgs = { - where?: Prisma.ReportExportScheduleWhereInput - orderBy?: Prisma.ReportExportScheduleOrderByWithAggregationInput | Prisma.ReportExportScheduleOrderByWithAggregationInput[] - by: Prisma.ReportExportScheduleScalarFieldEnum[] | Prisma.ReportExportScheduleScalarFieldEnum - having?: Prisma.ReportExportScheduleScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: ReportExportScheduleCountAggregateInputType | true - _avg?: ReportExportScheduleAvgAggregateInputType - _sum?: ReportExportScheduleSumAggregateInputType - _min?: ReportExportScheduleMinAggregateInputType - _max?: ReportExportScheduleMaxAggregateInputType -} - -export type ReportExportScheduleGroupByOutputType = { - id: string - tenantId: string - name: string - reportKeys: runtime.JsonValue - range: string - companyId: string | null - companyName: string | null - format: string - frequency: string - dayOfWeek: number | null - dayOfMonth: number | null - hour: number - minute: number - timezone: string - recipients: runtime.JsonValue - status: string - lastRunAt: Date | null - nextRunAt: Date | null - createdBy: string - updatedBy: string | null - createdAt: Date - updatedAt: Date - _count: ReportExportScheduleCountAggregateOutputType | null - _avg: ReportExportScheduleAvgAggregateOutputType | null - _sum: ReportExportScheduleSumAggregateOutputType | null - _min: ReportExportScheduleMinAggregateOutputType | null - _max: ReportExportScheduleMaxAggregateOutputType | null -} - -type GetReportExportScheduleGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof ReportExportScheduleGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type ReportExportScheduleWhereInput = { - AND?: Prisma.ReportExportScheduleWhereInput | Prisma.ReportExportScheduleWhereInput[] - OR?: Prisma.ReportExportScheduleWhereInput[] - NOT?: Prisma.ReportExportScheduleWhereInput | Prisma.ReportExportScheduleWhereInput[] - id?: Prisma.StringFilter<"ReportExportSchedule"> | string - tenantId?: Prisma.StringFilter<"ReportExportSchedule"> | string - name?: Prisma.StringFilter<"ReportExportSchedule"> | string - reportKeys?: Prisma.JsonFilter<"ReportExportSchedule"> - range?: Prisma.StringFilter<"ReportExportSchedule"> | string - companyId?: Prisma.StringNullableFilter<"ReportExportSchedule"> | string | null - companyName?: Prisma.StringNullableFilter<"ReportExportSchedule"> | string | null - format?: Prisma.StringFilter<"ReportExportSchedule"> | string - frequency?: Prisma.StringFilter<"ReportExportSchedule"> | string - dayOfWeek?: Prisma.IntNullableFilter<"ReportExportSchedule"> | number | null - dayOfMonth?: Prisma.IntNullableFilter<"ReportExportSchedule"> | number | null - hour?: Prisma.IntFilter<"ReportExportSchedule"> | number - minute?: Prisma.IntFilter<"ReportExportSchedule"> | number - timezone?: Prisma.StringFilter<"ReportExportSchedule"> | string - recipients?: Prisma.JsonFilter<"ReportExportSchedule"> - status?: Prisma.StringFilter<"ReportExportSchedule"> | string - lastRunAt?: Prisma.DateTimeNullableFilter<"ReportExportSchedule"> | Date | string | null - nextRunAt?: Prisma.DateTimeNullableFilter<"ReportExportSchedule"> | Date | string | null - createdBy?: Prisma.StringFilter<"ReportExportSchedule"> | string - updatedBy?: Prisma.StringNullableFilter<"ReportExportSchedule"> | string | null - createdAt?: Prisma.DateTimeFilter<"ReportExportSchedule"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"ReportExportSchedule"> | Date | string - runs?: Prisma.ReportExportRunListRelationFilter -} - -export type ReportExportScheduleOrderByWithRelationInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - reportKeys?: Prisma.SortOrder - range?: Prisma.SortOrder - companyId?: Prisma.SortOrderInput | Prisma.SortOrder - companyName?: Prisma.SortOrderInput | Prisma.SortOrder - format?: Prisma.SortOrder - frequency?: Prisma.SortOrder - dayOfWeek?: Prisma.SortOrderInput | Prisma.SortOrder - dayOfMonth?: Prisma.SortOrderInput | Prisma.SortOrder - hour?: Prisma.SortOrder - minute?: Prisma.SortOrder - timezone?: Prisma.SortOrder - recipients?: Prisma.SortOrder - status?: Prisma.SortOrder - lastRunAt?: Prisma.SortOrderInput | Prisma.SortOrder - nextRunAt?: Prisma.SortOrderInput | Prisma.SortOrder - createdBy?: Prisma.SortOrder - updatedBy?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - runs?: Prisma.ReportExportRunOrderByRelationAggregateInput -} - -export type ReportExportScheduleWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: Prisma.ReportExportScheduleWhereInput | Prisma.ReportExportScheduleWhereInput[] - OR?: Prisma.ReportExportScheduleWhereInput[] - NOT?: Prisma.ReportExportScheduleWhereInput | Prisma.ReportExportScheduleWhereInput[] - tenantId?: Prisma.StringFilter<"ReportExportSchedule"> | string - name?: Prisma.StringFilter<"ReportExportSchedule"> | string - reportKeys?: Prisma.JsonFilter<"ReportExportSchedule"> - range?: Prisma.StringFilter<"ReportExportSchedule"> | string - companyId?: Prisma.StringNullableFilter<"ReportExportSchedule"> | string | null - companyName?: Prisma.StringNullableFilter<"ReportExportSchedule"> | string | null - format?: Prisma.StringFilter<"ReportExportSchedule"> | string - frequency?: Prisma.StringFilter<"ReportExportSchedule"> | string - dayOfWeek?: Prisma.IntNullableFilter<"ReportExportSchedule"> | number | null - dayOfMonth?: Prisma.IntNullableFilter<"ReportExportSchedule"> | number | null - hour?: Prisma.IntFilter<"ReportExportSchedule"> | number - minute?: Prisma.IntFilter<"ReportExportSchedule"> | number - timezone?: Prisma.StringFilter<"ReportExportSchedule"> | string - recipients?: Prisma.JsonFilter<"ReportExportSchedule"> - status?: Prisma.StringFilter<"ReportExportSchedule"> | string - lastRunAt?: Prisma.DateTimeNullableFilter<"ReportExportSchedule"> | Date | string | null - nextRunAt?: Prisma.DateTimeNullableFilter<"ReportExportSchedule"> | Date | string | null - createdBy?: Prisma.StringFilter<"ReportExportSchedule"> | string - updatedBy?: Prisma.StringNullableFilter<"ReportExportSchedule"> | string | null - createdAt?: Prisma.DateTimeFilter<"ReportExportSchedule"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"ReportExportSchedule"> | Date | string - runs?: Prisma.ReportExportRunListRelationFilter -}, "id"> - -export type ReportExportScheduleOrderByWithAggregationInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - reportKeys?: Prisma.SortOrder - range?: Prisma.SortOrder - companyId?: Prisma.SortOrderInput | Prisma.SortOrder - companyName?: Prisma.SortOrderInput | Prisma.SortOrder - format?: Prisma.SortOrder - frequency?: Prisma.SortOrder - dayOfWeek?: Prisma.SortOrderInput | Prisma.SortOrder - dayOfMonth?: Prisma.SortOrderInput | Prisma.SortOrder - hour?: Prisma.SortOrder - minute?: Prisma.SortOrder - timezone?: Prisma.SortOrder - recipients?: Prisma.SortOrder - status?: Prisma.SortOrder - lastRunAt?: Prisma.SortOrderInput | Prisma.SortOrder - nextRunAt?: Prisma.SortOrderInput | Prisma.SortOrder - createdBy?: Prisma.SortOrder - updatedBy?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - _count?: Prisma.ReportExportScheduleCountOrderByAggregateInput - _avg?: Prisma.ReportExportScheduleAvgOrderByAggregateInput - _max?: Prisma.ReportExportScheduleMaxOrderByAggregateInput - _min?: Prisma.ReportExportScheduleMinOrderByAggregateInput - _sum?: Prisma.ReportExportScheduleSumOrderByAggregateInput -} - -export type ReportExportScheduleScalarWhereWithAggregatesInput = { - AND?: Prisma.ReportExportScheduleScalarWhereWithAggregatesInput | Prisma.ReportExportScheduleScalarWhereWithAggregatesInput[] - OR?: Prisma.ReportExportScheduleScalarWhereWithAggregatesInput[] - NOT?: Prisma.ReportExportScheduleScalarWhereWithAggregatesInput | Prisma.ReportExportScheduleScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"ReportExportSchedule"> | string - tenantId?: Prisma.StringWithAggregatesFilter<"ReportExportSchedule"> | string - name?: Prisma.StringWithAggregatesFilter<"ReportExportSchedule"> | string - reportKeys?: Prisma.JsonWithAggregatesFilter<"ReportExportSchedule"> - range?: Prisma.StringWithAggregatesFilter<"ReportExportSchedule"> | string - companyId?: Prisma.StringNullableWithAggregatesFilter<"ReportExportSchedule"> | string | null - companyName?: Prisma.StringNullableWithAggregatesFilter<"ReportExportSchedule"> | string | null - format?: Prisma.StringWithAggregatesFilter<"ReportExportSchedule"> | string - frequency?: Prisma.StringWithAggregatesFilter<"ReportExportSchedule"> | string - dayOfWeek?: Prisma.IntNullableWithAggregatesFilter<"ReportExportSchedule"> | number | null - dayOfMonth?: Prisma.IntNullableWithAggregatesFilter<"ReportExportSchedule"> | number | null - hour?: Prisma.IntWithAggregatesFilter<"ReportExportSchedule"> | number - minute?: Prisma.IntWithAggregatesFilter<"ReportExportSchedule"> | number - timezone?: Prisma.StringWithAggregatesFilter<"ReportExportSchedule"> | string - recipients?: Prisma.JsonWithAggregatesFilter<"ReportExportSchedule"> - status?: Prisma.StringWithAggregatesFilter<"ReportExportSchedule"> | string - lastRunAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ReportExportSchedule"> | Date | string | null - nextRunAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ReportExportSchedule"> | Date | string | null - createdBy?: Prisma.StringWithAggregatesFilter<"ReportExportSchedule"> | string - updatedBy?: Prisma.StringNullableWithAggregatesFilter<"ReportExportSchedule"> | string | null - createdAt?: Prisma.DateTimeWithAggregatesFilter<"ReportExportSchedule"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ReportExportSchedule"> | Date | string -} - -export type ReportExportScheduleCreateInput = { - id?: string - tenantId: string - name: string - reportKeys: Prisma.JsonNullValueInput | runtime.InputJsonValue - range?: string - companyId?: string | null - companyName?: string | null - format?: string - frequency: string - dayOfWeek?: number | null - dayOfMonth?: number | null - hour?: number - minute?: number - timezone?: string - recipients: Prisma.JsonNullValueInput | runtime.InputJsonValue - status?: string - lastRunAt?: Date | string | null - nextRunAt?: Date | string | null - createdBy: string - updatedBy?: string | null - createdAt?: Date | string - updatedAt?: Date | string - runs?: Prisma.ReportExportRunCreateNestedManyWithoutScheduleInput -} - -export type ReportExportScheduleUncheckedCreateInput = { - id?: string - tenantId: string - name: string - reportKeys: Prisma.JsonNullValueInput | runtime.InputJsonValue - range?: string - companyId?: string | null - companyName?: string | null - format?: string - frequency: string - dayOfWeek?: number | null - dayOfMonth?: number | null - hour?: number - minute?: number - timezone?: string - recipients: Prisma.JsonNullValueInput | runtime.InputJsonValue - status?: string - lastRunAt?: Date | string | null - nextRunAt?: Date | string | null - createdBy: string - updatedBy?: string | null - createdAt?: Date | string - updatedAt?: Date | string - runs?: Prisma.ReportExportRunUncheckedCreateNestedManyWithoutScheduleInput -} - -export type ReportExportScheduleUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - reportKeys?: Prisma.JsonNullValueInput | runtime.InputJsonValue - range?: Prisma.StringFieldUpdateOperationsInput | string - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - format?: Prisma.StringFieldUpdateOperationsInput | string - frequency?: Prisma.StringFieldUpdateOperationsInput | string - dayOfWeek?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dayOfMonth?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - hour?: Prisma.IntFieldUpdateOperationsInput | number - minute?: Prisma.IntFieldUpdateOperationsInput | number - timezone?: Prisma.StringFieldUpdateOperationsInput | string - recipients?: Prisma.JsonNullValueInput | runtime.InputJsonValue - status?: Prisma.StringFieldUpdateOperationsInput | string - lastRunAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - nextRunAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdBy?: Prisma.StringFieldUpdateOperationsInput | string - updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - runs?: Prisma.ReportExportRunUpdateManyWithoutScheduleNestedInput -} - -export type ReportExportScheduleUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - reportKeys?: Prisma.JsonNullValueInput | runtime.InputJsonValue - range?: Prisma.StringFieldUpdateOperationsInput | string - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - format?: Prisma.StringFieldUpdateOperationsInput | string - frequency?: Prisma.StringFieldUpdateOperationsInput | string - dayOfWeek?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dayOfMonth?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - hour?: Prisma.IntFieldUpdateOperationsInput | number - minute?: Prisma.IntFieldUpdateOperationsInput | number - timezone?: Prisma.StringFieldUpdateOperationsInput | string - recipients?: Prisma.JsonNullValueInput | runtime.InputJsonValue - status?: Prisma.StringFieldUpdateOperationsInput | string - lastRunAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - nextRunAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdBy?: Prisma.StringFieldUpdateOperationsInput | string - updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - runs?: Prisma.ReportExportRunUncheckedUpdateManyWithoutScheduleNestedInput -} - -export type ReportExportScheduleCreateManyInput = { - id?: string - tenantId: string - name: string - reportKeys: Prisma.JsonNullValueInput | runtime.InputJsonValue - range?: string - companyId?: string | null - companyName?: string | null - format?: string - frequency: string - dayOfWeek?: number | null - dayOfMonth?: number | null - hour?: number - minute?: number - timezone?: string - recipients: Prisma.JsonNullValueInput | runtime.InputJsonValue - status?: string - lastRunAt?: Date | string | null - nextRunAt?: Date | string | null - createdBy: string - updatedBy?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type ReportExportScheduleUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - reportKeys?: Prisma.JsonNullValueInput | runtime.InputJsonValue - range?: Prisma.StringFieldUpdateOperationsInput | string - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - format?: Prisma.StringFieldUpdateOperationsInput | string - frequency?: Prisma.StringFieldUpdateOperationsInput | string - dayOfWeek?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dayOfMonth?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - hour?: Prisma.IntFieldUpdateOperationsInput | number - minute?: Prisma.IntFieldUpdateOperationsInput | number - timezone?: Prisma.StringFieldUpdateOperationsInput | string - recipients?: Prisma.JsonNullValueInput | runtime.InputJsonValue - status?: Prisma.StringFieldUpdateOperationsInput | string - lastRunAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - nextRunAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdBy?: Prisma.StringFieldUpdateOperationsInput | string - updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type ReportExportScheduleUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - reportKeys?: Prisma.JsonNullValueInput | runtime.InputJsonValue - range?: Prisma.StringFieldUpdateOperationsInput | string - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - format?: Prisma.StringFieldUpdateOperationsInput | string - frequency?: Prisma.StringFieldUpdateOperationsInput | string - dayOfWeek?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dayOfMonth?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - hour?: Prisma.IntFieldUpdateOperationsInput | number - minute?: Prisma.IntFieldUpdateOperationsInput | number - timezone?: Prisma.StringFieldUpdateOperationsInput | string - recipients?: Prisma.JsonNullValueInput | runtime.InputJsonValue - status?: Prisma.StringFieldUpdateOperationsInput | string - lastRunAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - nextRunAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdBy?: Prisma.StringFieldUpdateOperationsInput | string - updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type ReportExportScheduleCountOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - reportKeys?: Prisma.SortOrder - range?: Prisma.SortOrder - companyId?: Prisma.SortOrder - companyName?: Prisma.SortOrder - format?: Prisma.SortOrder - frequency?: Prisma.SortOrder - dayOfWeek?: Prisma.SortOrder - dayOfMonth?: Prisma.SortOrder - hour?: Prisma.SortOrder - minute?: Prisma.SortOrder - timezone?: Prisma.SortOrder - recipients?: Prisma.SortOrder - status?: Prisma.SortOrder - lastRunAt?: Prisma.SortOrder - nextRunAt?: Prisma.SortOrder - createdBy?: Prisma.SortOrder - updatedBy?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type ReportExportScheduleAvgOrderByAggregateInput = { - dayOfWeek?: Prisma.SortOrder - dayOfMonth?: Prisma.SortOrder - hour?: Prisma.SortOrder - minute?: Prisma.SortOrder -} - -export type ReportExportScheduleMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - range?: Prisma.SortOrder - companyId?: Prisma.SortOrder - companyName?: Prisma.SortOrder - format?: Prisma.SortOrder - frequency?: Prisma.SortOrder - dayOfWeek?: Prisma.SortOrder - dayOfMonth?: Prisma.SortOrder - hour?: Prisma.SortOrder - minute?: Prisma.SortOrder - timezone?: Prisma.SortOrder - status?: Prisma.SortOrder - lastRunAt?: Prisma.SortOrder - nextRunAt?: Prisma.SortOrder - createdBy?: Prisma.SortOrder - updatedBy?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type ReportExportScheduleMinOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - range?: Prisma.SortOrder - companyId?: Prisma.SortOrder - companyName?: Prisma.SortOrder - format?: Prisma.SortOrder - frequency?: Prisma.SortOrder - dayOfWeek?: Prisma.SortOrder - dayOfMonth?: Prisma.SortOrder - hour?: Prisma.SortOrder - minute?: Prisma.SortOrder - timezone?: Prisma.SortOrder - status?: Prisma.SortOrder - lastRunAt?: Prisma.SortOrder - nextRunAt?: Prisma.SortOrder - createdBy?: Prisma.SortOrder - updatedBy?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type ReportExportScheduleSumOrderByAggregateInput = { - dayOfWeek?: Prisma.SortOrder - dayOfMonth?: Prisma.SortOrder - hour?: Prisma.SortOrder - minute?: Prisma.SortOrder -} - -export type ReportExportScheduleScalarRelationFilter = { - is?: Prisma.ReportExportScheduleWhereInput - isNot?: Prisma.ReportExportScheduleWhereInput -} - -export type ReportExportScheduleCreateNestedOneWithoutRunsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.ReportExportScheduleCreateOrConnectWithoutRunsInput - connect?: Prisma.ReportExportScheduleWhereUniqueInput -} - -export type ReportExportScheduleUpdateOneRequiredWithoutRunsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.ReportExportScheduleCreateOrConnectWithoutRunsInput - upsert?: Prisma.ReportExportScheduleUpsertWithoutRunsInput - connect?: Prisma.ReportExportScheduleWhereUniqueInput - update?: Prisma.XOR, Prisma.ReportExportScheduleUncheckedUpdateWithoutRunsInput> -} - -export type ReportExportScheduleCreateWithoutRunsInput = { - id?: string - tenantId: string - name: string - reportKeys: Prisma.JsonNullValueInput | runtime.InputJsonValue - range?: string - companyId?: string | null - companyName?: string | null - format?: string - frequency: string - dayOfWeek?: number | null - dayOfMonth?: number | null - hour?: number - minute?: number - timezone?: string - recipients: Prisma.JsonNullValueInput | runtime.InputJsonValue - status?: string - lastRunAt?: Date | string | null - nextRunAt?: Date | string | null - createdBy: string - updatedBy?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type ReportExportScheduleUncheckedCreateWithoutRunsInput = { - id?: string - tenantId: string - name: string - reportKeys: Prisma.JsonNullValueInput | runtime.InputJsonValue - range?: string - companyId?: string | null - companyName?: string | null - format?: string - frequency: string - dayOfWeek?: number | null - dayOfMonth?: number | null - hour?: number - minute?: number - timezone?: string - recipients: Prisma.JsonNullValueInput | runtime.InputJsonValue - status?: string - lastRunAt?: Date | string | null - nextRunAt?: Date | string | null - createdBy: string - updatedBy?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type ReportExportScheduleCreateOrConnectWithoutRunsInput = { - where: Prisma.ReportExportScheduleWhereUniqueInput - create: Prisma.XOR -} - -export type ReportExportScheduleUpsertWithoutRunsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.ReportExportScheduleWhereInput -} - -export type ReportExportScheduleUpdateToOneWithWhereWithoutRunsInput = { - where?: Prisma.ReportExportScheduleWhereInput - data: Prisma.XOR -} - -export type ReportExportScheduleUpdateWithoutRunsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - reportKeys?: Prisma.JsonNullValueInput | runtime.InputJsonValue - range?: Prisma.StringFieldUpdateOperationsInput | string - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - format?: Prisma.StringFieldUpdateOperationsInput | string - frequency?: Prisma.StringFieldUpdateOperationsInput | string - dayOfWeek?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dayOfMonth?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - hour?: Prisma.IntFieldUpdateOperationsInput | number - minute?: Prisma.IntFieldUpdateOperationsInput | number - timezone?: Prisma.StringFieldUpdateOperationsInput | string - recipients?: Prisma.JsonNullValueInput | runtime.InputJsonValue - status?: Prisma.StringFieldUpdateOperationsInput | string - lastRunAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - nextRunAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdBy?: Prisma.StringFieldUpdateOperationsInput | string - updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type ReportExportScheduleUncheckedUpdateWithoutRunsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - reportKeys?: Prisma.JsonNullValueInput | runtime.InputJsonValue - range?: Prisma.StringFieldUpdateOperationsInput | string - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - format?: Prisma.StringFieldUpdateOperationsInput | string - frequency?: Prisma.StringFieldUpdateOperationsInput | string - dayOfWeek?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dayOfMonth?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - hour?: Prisma.IntFieldUpdateOperationsInput | number - minute?: Prisma.IntFieldUpdateOperationsInput | number - timezone?: Prisma.StringFieldUpdateOperationsInput | string - recipients?: Prisma.JsonNullValueInput | runtime.InputJsonValue - status?: Prisma.StringFieldUpdateOperationsInput | string - lastRunAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - nextRunAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdBy?: Prisma.StringFieldUpdateOperationsInput | string - updatedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - - -/** - * Count Type ReportExportScheduleCountOutputType - */ - -export type ReportExportScheduleCountOutputType = { - runs: number -} - -export type ReportExportScheduleCountOutputTypeSelect = { - runs?: boolean | ReportExportScheduleCountOutputTypeCountRunsArgs -} - -/** - * ReportExportScheduleCountOutputType without action - */ -export type ReportExportScheduleCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the ReportExportScheduleCountOutputType - */ - select?: Prisma.ReportExportScheduleCountOutputTypeSelect | null -} - -/** - * ReportExportScheduleCountOutputType without action - */ -export type ReportExportScheduleCountOutputTypeCountRunsArgs = { - where?: Prisma.ReportExportRunWhereInput -} - - -export type ReportExportScheduleSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - name?: boolean - reportKeys?: boolean - range?: boolean - companyId?: boolean - companyName?: boolean - format?: boolean - frequency?: boolean - dayOfWeek?: boolean - dayOfMonth?: boolean - hour?: boolean - minute?: boolean - timezone?: boolean - recipients?: boolean - status?: boolean - lastRunAt?: boolean - nextRunAt?: boolean - createdBy?: boolean - updatedBy?: boolean - createdAt?: boolean - updatedAt?: boolean - runs?: boolean | Prisma.ReportExportSchedule$runsArgs - _count?: boolean | Prisma.ReportExportScheduleCountOutputTypeDefaultArgs -}, ExtArgs["result"]["reportExportSchedule"]> - -export type ReportExportScheduleSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - name?: boolean - reportKeys?: boolean - range?: boolean - companyId?: boolean - companyName?: boolean - format?: boolean - frequency?: boolean - dayOfWeek?: boolean - dayOfMonth?: boolean - hour?: boolean - minute?: boolean - timezone?: boolean - recipients?: boolean - status?: boolean - lastRunAt?: boolean - nextRunAt?: boolean - createdBy?: boolean - updatedBy?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["reportExportSchedule"]> - -export type ReportExportScheduleSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - name?: boolean - reportKeys?: boolean - range?: boolean - companyId?: boolean - companyName?: boolean - format?: boolean - frequency?: boolean - dayOfWeek?: boolean - dayOfMonth?: boolean - hour?: boolean - minute?: boolean - timezone?: boolean - recipients?: boolean - status?: boolean - lastRunAt?: boolean - nextRunAt?: boolean - createdBy?: boolean - updatedBy?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["reportExportSchedule"]> - -export type ReportExportScheduleSelectScalar = { - id?: boolean - tenantId?: boolean - name?: boolean - reportKeys?: boolean - range?: boolean - companyId?: boolean - companyName?: boolean - format?: boolean - frequency?: boolean - dayOfWeek?: boolean - dayOfMonth?: boolean - hour?: boolean - minute?: boolean - timezone?: boolean - recipients?: boolean - status?: boolean - lastRunAt?: boolean - nextRunAt?: boolean - createdBy?: boolean - updatedBy?: boolean - createdAt?: boolean - updatedAt?: boolean -} - -export type ReportExportScheduleOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "name" | "reportKeys" | "range" | "companyId" | "companyName" | "format" | "frequency" | "dayOfWeek" | "dayOfMonth" | "hour" | "minute" | "timezone" | "recipients" | "status" | "lastRunAt" | "nextRunAt" | "createdBy" | "updatedBy" | "createdAt" | "updatedAt", ExtArgs["result"]["reportExportSchedule"]> -export type ReportExportScheduleInclude = { - runs?: boolean | Prisma.ReportExportSchedule$runsArgs - _count?: boolean | Prisma.ReportExportScheduleCountOutputTypeDefaultArgs -} -export type ReportExportScheduleIncludeCreateManyAndReturn = {} -export type ReportExportScheduleIncludeUpdateManyAndReturn = {} - -export type $ReportExportSchedulePayload = { - name: "ReportExportSchedule" - objects: { - runs: Prisma.$ReportExportRunPayload[] - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - tenantId: string - name: string - reportKeys: runtime.JsonValue - range: string - companyId: string | null - companyName: string | null - format: string - frequency: string - dayOfWeek: number | null - dayOfMonth: number | null - hour: number - minute: number - timezone: string - recipients: runtime.JsonValue - status: string - lastRunAt: Date | null - nextRunAt: Date | null - createdBy: string - updatedBy: string | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["reportExportSchedule"]> - composites: {} -} - -export type ReportExportScheduleGetPayload = runtime.Types.Result.GetResult - -export type ReportExportScheduleCountArgs = - Omit & { - select?: ReportExportScheduleCountAggregateInputType | true - } - -export interface ReportExportScheduleDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['ReportExportSchedule'], meta: { name: 'ReportExportSchedule' } } - /** - * Find zero or one ReportExportSchedule that matches the filter. - * @param {ReportExportScheduleFindUniqueArgs} args - Arguments to find a ReportExportSchedule - * @example - * // Get one ReportExportSchedule - * const reportExportSchedule = await prisma.reportExportSchedule.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ReportExportScheduleClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one ReportExportSchedule that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {ReportExportScheduleFindUniqueOrThrowArgs} args - Arguments to find a ReportExportSchedule - * @example - * // Get one ReportExportSchedule - * const reportExportSchedule = await prisma.reportExportSchedule.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ReportExportScheduleClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first ReportExportSchedule that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ReportExportScheduleFindFirstArgs} args - Arguments to find a ReportExportSchedule - * @example - * // Get one ReportExportSchedule - * const reportExportSchedule = await prisma.reportExportSchedule.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ReportExportScheduleClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first ReportExportSchedule that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ReportExportScheduleFindFirstOrThrowArgs} args - Arguments to find a ReportExportSchedule - * @example - * // Get one ReportExportSchedule - * const reportExportSchedule = await prisma.reportExportSchedule.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ReportExportScheduleClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more ReportExportSchedules that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ReportExportScheduleFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all ReportExportSchedules - * const reportExportSchedules = await prisma.reportExportSchedule.findMany() - * - * // Get first 10 ReportExportSchedules - * const reportExportSchedules = await prisma.reportExportSchedule.findMany({ take: 10 }) - * - * // Only select the `id` - * const reportExportScheduleWithIdOnly = await prisma.reportExportSchedule.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a ReportExportSchedule. - * @param {ReportExportScheduleCreateArgs} args - Arguments to create a ReportExportSchedule. - * @example - * // Create one ReportExportSchedule - * const ReportExportSchedule = await prisma.reportExportSchedule.create({ - * data: { - * // ... data to create a ReportExportSchedule - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__ReportExportScheduleClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many ReportExportSchedules. - * @param {ReportExportScheduleCreateManyArgs} args - Arguments to create many ReportExportSchedules. - * @example - * // Create many ReportExportSchedules - * const reportExportSchedule = await prisma.reportExportSchedule.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many ReportExportSchedules and returns the data saved in the database. - * @param {ReportExportScheduleCreateManyAndReturnArgs} args - Arguments to create many ReportExportSchedules. - * @example - * // Create many ReportExportSchedules - * const reportExportSchedule = await prisma.reportExportSchedule.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many ReportExportSchedules and only return the `id` - * const reportExportScheduleWithIdOnly = await prisma.reportExportSchedule.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a ReportExportSchedule. - * @param {ReportExportScheduleDeleteArgs} args - Arguments to delete one ReportExportSchedule. - * @example - * // Delete one ReportExportSchedule - * const ReportExportSchedule = await prisma.reportExportSchedule.delete({ - * where: { - * // ... filter to delete one ReportExportSchedule - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__ReportExportScheduleClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one ReportExportSchedule. - * @param {ReportExportScheduleUpdateArgs} args - Arguments to update one ReportExportSchedule. - * @example - * // Update one ReportExportSchedule - * const reportExportSchedule = await prisma.reportExportSchedule.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__ReportExportScheduleClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more ReportExportSchedules. - * @param {ReportExportScheduleDeleteManyArgs} args - Arguments to filter ReportExportSchedules to delete. - * @example - * // Delete a few ReportExportSchedules - * const { count } = await prisma.reportExportSchedule.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more ReportExportSchedules. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ReportExportScheduleUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many ReportExportSchedules - * const reportExportSchedule = await prisma.reportExportSchedule.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more ReportExportSchedules and returns the data updated in the database. - * @param {ReportExportScheduleUpdateManyAndReturnArgs} args - Arguments to update many ReportExportSchedules. - * @example - * // Update many ReportExportSchedules - * const reportExportSchedule = await prisma.reportExportSchedule.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more ReportExportSchedules and only return the `id` - * const reportExportScheduleWithIdOnly = await prisma.reportExportSchedule.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one ReportExportSchedule. - * @param {ReportExportScheduleUpsertArgs} args - Arguments to update or create a ReportExportSchedule. - * @example - * // Update or create a ReportExportSchedule - * const reportExportSchedule = await prisma.reportExportSchedule.upsert({ - * create: { - * // ... data to create a ReportExportSchedule - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the ReportExportSchedule we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ReportExportScheduleClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of ReportExportSchedules. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ReportExportScheduleCountArgs} args - Arguments to filter ReportExportSchedules to count. - * @example - * // Count the number of ReportExportSchedules - * const count = await prisma.reportExportSchedule.count({ - * where: { - * // ... the filter for the ReportExportSchedules we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a ReportExportSchedule. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ReportExportScheduleAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by ReportExportSchedule. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ReportExportScheduleGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends ReportExportScheduleGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: ReportExportScheduleGroupByArgs['orderBy'] } - : { orderBy?: ReportExportScheduleGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetReportExportScheduleGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the ReportExportSchedule model - */ -readonly fields: ReportExportScheduleFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for ReportExportSchedule. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__ReportExportScheduleClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - runs = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the ReportExportSchedule model - */ -export interface ReportExportScheduleFieldRefs { - readonly id: Prisma.FieldRef<"ReportExportSchedule", 'String'> - readonly tenantId: Prisma.FieldRef<"ReportExportSchedule", 'String'> - readonly name: Prisma.FieldRef<"ReportExportSchedule", 'String'> - readonly reportKeys: Prisma.FieldRef<"ReportExportSchedule", 'Json'> - readonly range: Prisma.FieldRef<"ReportExportSchedule", 'String'> - readonly companyId: Prisma.FieldRef<"ReportExportSchedule", 'String'> - readonly companyName: Prisma.FieldRef<"ReportExportSchedule", 'String'> - readonly format: Prisma.FieldRef<"ReportExportSchedule", 'String'> - readonly frequency: Prisma.FieldRef<"ReportExportSchedule", 'String'> - readonly dayOfWeek: Prisma.FieldRef<"ReportExportSchedule", 'Int'> - readonly dayOfMonth: Prisma.FieldRef<"ReportExportSchedule", 'Int'> - readonly hour: Prisma.FieldRef<"ReportExportSchedule", 'Int'> - readonly minute: Prisma.FieldRef<"ReportExportSchedule", 'Int'> - readonly timezone: Prisma.FieldRef<"ReportExportSchedule", 'String'> - readonly recipients: Prisma.FieldRef<"ReportExportSchedule", 'Json'> - readonly status: Prisma.FieldRef<"ReportExportSchedule", 'String'> - readonly lastRunAt: Prisma.FieldRef<"ReportExportSchedule", 'DateTime'> - readonly nextRunAt: Prisma.FieldRef<"ReportExportSchedule", 'DateTime'> - readonly createdBy: Prisma.FieldRef<"ReportExportSchedule", 'String'> - readonly updatedBy: Prisma.FieldRef<"ReportExportSchedule", 'String'> - readonly createdAt: Prisma.FieldRef<"ReportExportSchedule", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"ReportExportSchedule", 'DateTime'> -} - - -// Custom InputTypes -/** - * ReportExportSchedule findUnique - */ -export type ReportExportScheduleFindUniqueArgs = { - /** - * Select specific fields to fetch from the ReportExportSchedule - */ - select?: Prisma.ReportExportScheduleSelect | null - /** - * Omit specific fields from the ReportExportSchedule - */ - omit?: Prisma.ReportExportScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportScheduleInclude | null - /** - * Filter, which ReportExportSchedule to fetch. - */ - where: Prisma.ReportExportScheduleWhereUniqueInput -} - -/** - * ReportExportSchedule findUniqueOrThrow - */ -export type ReportExportScheduleFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the ReportExportSchedule - */ - select?: Prisma.ReportExportScheduleSelect | null - /** - * Omit specific fields from the ReportExportSchedule - */ - omit?: Prisma.ReportExportScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportScheduleInclude | null - /** - * Filter, which ReportExportSchedule to fetch. - */ - where: Prisma.ReportExportScheduleWhereUniqueInput -} - -/** - * ReportExportSchedule findFirst - */ -export type ReportExportScheduleFindFirstArgs = { - /** - * Select specific fields to fetch from the ReportExportSchedule - */ - select?: Prisma.ReportExportScheduleSelect | null - /** - * Omit specific fields from the ReportExportSchedule - */ - omit?: Prisma.ReportExportScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportScheduleInclude | null - /** - * Filter, which ReportExportSchedule to fetch. - */ - where?: Prisma.ReportExportScheduleWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of ReportExportSchedules to fetch. - */ - orderBy?: Prisma.ReportExportScheduleOrderByWithRelationInput | Prisma.ReportExportScheduleOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for ReportExportSchedules. - */ - cursor?: Prisma.ReportExportScheduleWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` ReportExportSchedules from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` ReportExportSchedules. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of ReportExportSchedules. - */ - distinct?: Prisma.ReportExportScheduleScalarFieldEnum | Prisma.ReportExportScheduleScalarFieldEnum[] -} - -/** - * ReportExportSchedule findFirstOrThrow - */ -export type ReportExportScheduleFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the ReportExportSchedule - */ - select?: Prisma.ReportExportScheduleSelect | null - /** - * Omit specific fields from the ReportExportSchedule - */ - omit?: Prisma.ReportExportScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportScheduleInclude | null - /** - * Filter, which ReportExportSchedule to fetch. - */ - where?: Prisma.ReportExportScheduleWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of ReportExportSchedules to fetch. - */ - orderBy?: Prisma.ReportExportScheduleOrderByWithRelationInput | Prisma.ReportExportScheduleOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for ReportExportSchedules. - */ - cursor?: Prisma.ReportExportScheduleWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` ReportExportSchedules from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` ReportExportSchedules. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of ReportExportSchedules. - */ - distinct?: Prisma.ReportExportScheduleScalarFieldEnum | Prisma.ReportExportScheduleScalarFieldEnum[] -} - -/** - * ReportExportSchedule findMany - */ -export type ReportExportScheduleFindManyArgs = { - /** - * Select specific fields to fetch from the ReportExportSchedule - */ - select?: Prisma.ReportExportScheduleSelect | null - /** - * Omit specific fields from the ReportExportSchedule - */ - omit?: Prisma.ReportExportScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportScheduleInclude | null - /** - * Filter, which ReportExportSchedules to fetch. - */ - where?: Prisma.ReportExportScheduleWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of ReportExportSchedules to fetch. - */ - orderBy?: Prisma.ReportExportScheduleOrderByWithRelationInput | Prisma.ReportExportScheduleOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing ReportExportSchedules. - */ - cursor?: Prisma.ReportExportScheduleWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` ReportExportSchedules from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` ReportExportSchedules. - */ - skip?: number - distinct?: Prisma.ReportExportScheduleScalarFieldEnum | Prisma.ReportExportScheduleScalarFieldEnum[] -} - -/** - * ReportExportSchedule create - */ -export type ReportExportScheduleCreateArgs = { - /** - * Select specific fields to fetch from the ReportExportSchedule - */ - select?: Prisma.ReportExportScheduleSelect | null - /** - * Omit specific fields from the ReportExportSchedule - */ - omit?: Prisma.ReportExportScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportScheduleInclude | null - /** - * The data needed to create a ReportExportSchedule. - */ - data: Prisma.XOR -} - -/** - * ReportExportSchedule createMany - */ -export type ReportExportScheduleCreateManyArgs = { - /** - * The data used to create many ReportExportSchedules. - */ - data: Prisma.ReportExportScheduleCreateManyInput | Prisma.ReportExportScheduleCreateManyInput[] -} - -/** - * ReportExportSchedule createManyAndReturn - */ -export type ReportExportScheduleCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the ReportExportSchedule - */ - select?: Prisma.ReportExportScheduleSelectCreateManyAndReturn | null - /** - * Omit specific fields from the ReportExportSchedule - */ - omit?: Prisma.ReportExportScheduleOmit | null - /** - * The data used to create many ReportExportSchedules. - */ - data: Prisma.ReportExportScheduleCreateManyInput | Prisma.ReportExportScheduleCreateManyInput[] -} - -/** - * ReportExportSchedule update - */ -export type ReportExportScheduleUpdateArgs = { - /** - * Select specific fields to fetch from the ReportExportSchedule - */ - select?: Prisma.ReportExportScheduleSelect | null - /** - * Omit specific fields from the ReportExportSchedule - */ - omit?: Prisma.ReportExportScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportScheduleInclude | null - /** - * The data needed to update a ReportExportSchedule. - */ - data: Prisma.XOR - /** - * Choose, which ReportExportSchedule to update. - */ - where: Prisma.ReportExportScheduleWhereUniqueInput -} - -/** - * ReportExportSchedule updateMany - */ -export type ReportExportScheduleUpdateManyArgs = { - /** - * The data used to update ReportExportSchedules. - */ - data: Prisma.XOR - /** - * Filter which ReportExportSchedules to update - */ - where?: Prisma.ReportExportScheduleWhereInput - /** - * Limit how many ReportExportSchedules to update. - */ - limit?: number -} - -/** - * ReportExportSchedule updateManyAndReturn - */ -export type ReportExportScheduleUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the ReportExportSchedule - */ - select?: Prisma.ReportExportScheduleSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the ReportExportSchedule - */ - omit?: Prisma.ReportExportScheduleOmit | null - /** - * The data used to update ReportExportSchedules. - */ - data: Prisma.XOR - /** - * Filter which ReportExportSchedules to update - */ - where?: Prisma.ReportExportScheduleWhereInput - /** - * Limit how many ReportExportSchedules to update. - */ - limit?: number -} - -/** - * ReportExportSchedule upsert - */ -export type ReportExportScheduleUpsertArgs = { - /** - * Select specific fields to fetch from the ReportExportSchedule - */ - select?: Prisma.ReportExportScheduleSelect | null - /** - * Omit specific fields from the ReportExportSchedule - */ - omit?: Prisma.ReportExportScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportScheduleInclude | null - /** - * The filter to search for the ReportExportSchedule to update in case it exists. - */ - where: Prisma.ReportExportScheduleWhereUniqueInput - /** - * In case the ReportExportSchedule found by the `where` argument doesn't exist, create a new ReportExportSchedule with this data. - */ - create: Prisma.XOR - /** - * In case the ReportExportSchedule was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * ReportExportSchedule delete - */ -export type ReportExportScheduleDeleteArgs = { - /** - * Select specific fields to fetch from the ReportExportSchedule - */ - select?: Prisma.ReportExportScheduleSelect | null - /** - * Omit specific fields from the ReportExportSchedule - */ - omit?: Prisma.ReportExportScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportScheduleInclude | null - /** - * Filter which ReportExportSchedule to delete. - */ - where: Prisma.ReportExportScheduleWhereUniqueInput -} - -/** - * ReportExportSchedule deleteMany - */ -export type ReportExportScheduleDeleteManyArgs = { - /** - * Filter which ReportExportSchedules to delete - */ - where?: Prisma.ReportExportScheduleWhereInput - /** - * Limit how many ReportExportSchedules to delete. - */ - limit?: number -} - -/** - * ReportExportSchedule.runs - */ -export type ReportExportSchedule$runsArgs = { - /** - * Select specific fields to fetch from the ReportExportRun - */ - select?: Prisma.ReportExportRunSelect | null - /** - * Omit specific fields from the ReportExportRun - */ - omit?: Prisma.ReportExportRunOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportRunInclude | null - where?: Prisma.ReportExportRunWhereInput - orderBy?: Prisma.ReportExportRunOrderByWithRelationInput | Prisma.ReportExportRunOrderByWithRelationInput[] - cursor?: Prisma.ReportExportRunWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.ReportExportRunScalarFieldEnum | Prisma.ReportExportRunScalarFieldEnum[] -} - -/** - * ReportExportSchedule without action - */ -export type ReportExportScheduleDefaultArgs = { - /** - * Select specific fields to fetch from the ReportExportSchedule - */ - select?: Prisma.ReportExportScheduleSelect | null - /** - * Omit specific fields from the ReportExportSchedule - */ - omit?: Prisma.ReportExportScheduleOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ReportExportScheduleInclude | null -} diff --git a/src/generated/prisma/models/SlaPolicy.ts b/src/generated/prisma/models/SlaPolicy.ts deleted file mode 100644 index c2552ee..0000000 --- a/src/generated/prisma/models/SlaPolicy.ts +++ /dev/null @@ -1,1500 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `SlaPolicy` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model SlaPolicy - * - */ -export type SlaPolicyModel = runtime.Types.Result.DefaultSelection - -export type AggregateSlaPolicy = { - _count: SlaPolicyCountAggregateOutputType | null - _avg: SlaPolicyAvgAggregateOutputType | null - _sum: SlaPolicySumAggregateOutputType | null - _min: SlaPolicyMinAggregateOutputType | null - _max: SlaPolicyMaxAggregateOutputType | null -} - -export type SlaPolicyAvgAggregateOutputType = { - timeToFirstResponse: number | null - timeToResolution: number | null -} - -export type SlaPolicySumAggregateOutputType = { - timeToFirstResponse: number | null - timeToResolution: number | null -} - -export type SlaPolicyMinAggregateOutputType = { - id: string | null - tenantId: string | null - name: string | null - description: string | null - timeToFirstResponse: number | null - timeToResolution: number | null - createdAt: Date | null - updatedAt: Date | null -} - -export type SlaPolicyMaxAggregateOutputType = { - id: string | null - tenantId: string | null - name: string | null - description: string | null - timeToFirstResponse: number | null - timeToResolution: number | null - createdAt: Date | null - updatedAt: Date | null -} - -export type SlaPolicyCountAggregateOutputType = { - id: number - tenantId: number - name: number - description: number - timeToFirstResponse: number - timeToResolution: number - calendar: number - createdAt: number - updatedAt: number - _all: number -} - - -export type SlaPolicyAvgAggregateInputType = { - timeToFirstResponse?: true - timeToResolution?: true -} - -export type SlaPolicySumAggregateInputType = { - timeToFirstResponse?: true - timeToResolution?: true -} - -export type SlaPolicyMinAggregateInputType = { - id?: true - tenantId?: true - name?: true - description?: true - timeToFirstResponse?: true - timeToResolution?: true - createdAt?: true - updatedAt?: true -} - -export type SlaPolicyMaxAggregateInputType = { - id?: true - tenantId?: true - name?: true - description?: true - timeToFirstResponse?: true - timeToResolution?: true - createdAt?: true - updatedAt?: true -} - -export type SlaPolicyCountAggregateInputType = { - id?: true - tenantId?: true - name?: true - description?: true - timeToFirstResponse?: true - timeToResolution?: true - calendar?: true - createdAt?: true - updatedAt?: true - _all?: true -} - -export type SlaPolicyAggregateArgs = { - /** - * Filter which SlaPolicy to aggregate. - */ - where?: Prisma.SlaPolicyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SlaPolicies to fetch. - */ - orderBy?: Prisma.SlaPolicyOrderByWithRelationInput | Prisma.SlaPolicyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.SlaPolicyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SlaPolicies from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` SlaPolicies. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned SlaPolicies - **/ - _count?: true | SlaPolicyCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: SlaPolicyAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: SlaPolicySumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: SlaPolicyMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: SlaPolicyMaxAggregateInputType -} - -export type GetSlaPolicyAggregateType = { - [P in keyof T & keyof AggregateSlaPolicy]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type SlaPolicyGroupByArgs = { - where?: Prisma.SlaPolicyWhereInput - orderBy?: Prisma.SlaPolicyOrderByWithAggregationInput | Prisma.SlaPolicyOrderByWithAggregationInput[] - by: Prisma.SlaPolicyScalarFieldEnum[] | Prisma.SlaPolicyScalarFieldEnum - having?: Prisma.SlaPolicyScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: SlaPolicyCountAggregateInputType | true - _avg?: SlaPolicyAvgAggregateInputType - _sum?: SlaPolicySumAggregateInputType - _min?: SlaPolicyMinAggregateInputType - _max?: SlaPolicyMaxAggregateInputType -} - -export type SlaPolicyGroupByOutputType = { - id: string - tenantId: string - name: string - description: string | null - timeToFirstResponse: number | null - timeToResolution: number | null - calendar: runtime.JsonValue | null - createdAt: Date - updatedAt: Date - _count: SlaPolicyCountAggregateOutputType | null - _avg: SlaPolicyAvgAggregateOutputType | null - _sum: SlaPolicySumAggregateOutputType | null - _min: SlaPolicyMinAggregateOutputType | null - _max: SlaPolicyMaxAggregateOutputType | null -} - -type GetSlaPolicyGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof SlaPolicyGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type SlaPolicyWhereInput = { - AND?: Prisma.SlaPolicyWhereInput | Prisma.SlaPolicyWhereInput[] - OR?: Prisma.SlaPolicyWhereInput[] - NOT?: Prisma.SlaPolicyWhereInput | Prisma.SlaPolicyWhereInput[] - id?: Prisma.StringFilter<"SlaPolicy"> | string - tenantId?: Prisma.StringFilter<"SlaPolicy"> | string - name?: Prisma.StringFilter<"SlaPolicy"> | string - description?: Prisma.StringNullableFilter<"SlaPolicy"> | string | null - timeToFirstResponse?: Prisma.IntNullableFilter<"SlaPolicy"> | number | null - timeToResolution?: Prisma.IntNullableFilter<"SlaPolicy"> | number | null - calendar?: Prisma.JsonNullableFilter<"SlaPolicy"> - createdAt?: Prisma.DateTimeFilter<"SlaPolicy"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"SlaPolicy"> | Date | string - tickets?: Prisma.TicketListRelationFilter -} - -export type SlaPolicyOrderByWithRelationInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - description?: Prisma.SortOrderInput | Prisma.SortOrder - timeToFirstResponse?: Prisma.SortOrderInput | Prisma.SortOrder - timeToResolution?: Prisma.SortOrderInput | Prisma.SortOrder - calendar?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - tickets?: Prisma.TicketOrderByRelationAggregateInput -} - -export type SlaPolicyWhereUniqueInput = Prisma.AtLeast<{ - id?: string - tenantId_name?: Prisma.SlaPolicyTenantIdNameCompoundUniqueInput - AND?: Prisma.SlaPolicyWhereInput | Prisma.SlaPolicyWhereInput[] - OR?: Prisma.SlaPolicyWhereInput[] - NOT?: Prisma.SlaPolicyWhereInput | Prisma.SlaPolicyWhereInput[] - tenantId?: Prisma.StringFilter<"SlaPolicy"> | string - name?: Prisma.StringFilter<"SlaPolicy"> | string - description?: Prisma.StringNullableFilter<"SlaPolicy"> | string | null - timeToFirstResponse?: Prisma.IntNullableFilter<"SlaPolicy"> | number | null - timeToResolution?: Prisma.IntNullableFilter<"SlaPolicy"> | number | null - calendar?: Prisma.JsonNullableFilter<"SlaPolicy"> - createdAt?: Prisma.DateTimeFilter<"SlaPolicy"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"SlaPolicy"> | Date | string - tickets?: Prisma.TicketListRelationFilter -}, "id" | "tenantId_name"> - -export type SlaPolicyOrderByWithAggregationInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - description?: Prisma.SortOrderInput | Prisma.SortOrder - timeToFirstResponse?: Prisma.SortOrderInput | Prisma.SortOrder - timeToResolution?: Prisma.SortOrderInput | Prisma.SortOrder - calendar?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - _count?: Prisma.SlaPolicyCountOrderByAggregateInput - _avg?: Prisma.SlaPolicyAvgOrderByAggregateInput - _max?: Prisma.SlaPolicyMaxOrderByAggregateInput - _min?: Prisma.SlaPolicyMinOrderByAggregateInput - _sum?: Prisma.SlaPolicySumOrderByAggregateInput -} - -export type SlaPolicyScalarWhereWithAggregatesInput = { - AND?: Prisma.SlaPolicyScalarWhereWithAggregatesInput | Prisma.SlaPolicyScalarWhereWithAggregatesInput[] - OR?: Prisma.SlaPolicyScalarWhereWithAggregatesInput[] - NOT?: Prisma.SlaPolicyScalarWhereWithAggregatesInput | Prisma.SlaPolicyScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"SlaPolicy"> | string - tenantId?: Prisma.StringWithAggregatesFilter<"SlaPolicy"> | string - name?: Prisma.StringWithAggregatesFilter<"SlaPolicy"> | string - description?: Prisma.StringNullableWithAggregatesFilter<"SlaPolicy"> | string | null - timeToFirstResponse?: Prisma.IntNullableWithAggregatesFilter<"SlaPolicy"> | number | null - timeToResolution?: Prisma.IntNullableWithAggregatesFilter<"SlaPolicy"> | number | null - calendar?: Prisma.JsonNullableWithAggregatesFilter<"SlaPolicy"> - createdAt?: Prisma.DateTimeWithAggregatesFilter<"SlaPolicy"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"SlaPolicy"> | Date | string -} - -export type SlaPolicyCreateInput = { - id?: string - tenantId: string - name: string - description?: string | null - timeToFirstResponse?: number | null - timeToResolution?: number | null - calendar?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Date | string - updatedAt?: Date | string - tickets?: Prisma.TicketCreateNestedManyWithoutSlaPolicyInput -} - -export type SlaPolicyUncheckedCreateInput = { - id?: string - tenantId: string - name: string - description?: string | null - timeToFirstResponse?: number | null - timeToResolution?: number | null - calendar?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Date | string - updatedAt?: Date | string - tickets?: Prisma.TicketUncheckedCreateNestedManyWithoutSlaPolicyInput -} - -export type SlaPolicyUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timeToFirstResponse?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - timeToResolution?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - calendar?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - tickets?: Prisma.TicketUpdateManyWithoutSlaPolicyNestedInput -} - -export type SlaPolicyUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timeToFirstResponse?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - timeToResolution?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - calendar?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - tickets?: Prisma.TicketUncheckedUpdateManyWithoutSlaPolicyNestedInput -} - -export type SlaPolicyCreateManyInput = { - id?: string - tenantId: string - name: string - description?: string | null - timeToFirstResponse?: number | null - timeToResolution?: number | null - calendar?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Date | string - updatedAt?: Date | string -} - -export type SlaPolicyUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timeToFirstResponse?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - timeToResolution?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - calendar?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type SlaPolicyUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timeToFirstResponse?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - timeToResolution?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - calendar?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type SlaPolicyNullableScalarRelationFilter = { - is?: Prisma.SlaPolicyWhereInput | null - isNot?: Prisma.SlaPolicyWhereInput | null -} - -export type SlaPolicyTenantIdNameCompoundUniqueInput = { - tenantId: string - name: string -} - -export type SlaPolicyCountOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - description?: Prisma.SortOrder - timeToFirstResponse?: Prisma.SortOrder - timeToResolution?: Prisma.SortOrder - calendar?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type SlaPolicyAvgOrderByAggregateInput = { - timeToFirstResponse?: Prisma.SortOrder - timeToResolution?: Prisma.SortOrder -} - -export type SlaPolicyMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - description?: Prisma.SortOrder - timeToFirstResponse?: Prisma.SortOrder - timeToResolution?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type SlaPolicyMinOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - description?: Prisma.SortOrder - timeToFirstResponse?: Prisma.SortOrder - timeToResolution?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type SlaPolicySumOrderByAggregateInput = { - timeToFirstResponse?: Prisma.SortOrder - timeToResolution?: Prisma.SortOrder -} - -export type SlaPolicyCreateNestedOneWithoutTicketsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.SlaPolicyCreateOrConnectWithoutTicketsInput - connect?: Prisma.SlaPolicyWhereUniqueInput -} - -export type SlaPolicyUpdateOneWithoutTicketsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.SlaPolicyCreateOrConnectWithoutTicketsInput - upsert?: Prisma.SlaPolicyUpsertWithoutTicketsInput - disconnect?: Prisma.SlaPolicyWhereInput | boolean - delete?: Prisma.SlaPolicyWhereInput | boolean - connect?: Prisma.SlaPolicyWhereUniqueInput - update?: Prisma.XOR, Prisma.SlaPolicyUncheckedUpdateWithoutTicketsInput> -} - -export type SlaPolicyCreateWithoutTicketsInput = { - id?: string - tenantId: string - name: string - description?: string | null - timeToFirstResponse?: number | null - timeToResolution?: number | null - calendar?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Date | string - updatedAt?: Date | string -} - -export type SlaPolicyUncheckedCreateWithoutTicketsInput = { - id?: string - tenantId: string - name: string - description?: string | null - timeToFirstResponse?: number | null - timeToResolution?: number | null - calendar?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Date | string - updatedAt?: Date | string -} - -export type SlaPolicyCreateOrConnectWithoutTicketsInput = { - where: Prisma.SlaPolicyWhereUniqueInput - create: Prisma.XOR -} - -export type SlaPolicyUpsertWithoutTicketsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.SlaPolicyWhereInput -} - -export type SlaPolicyUpdateToOneWithWhereWithoutTicketsInput = { - where?: Prisma.SlaPolicyWhereInput - data: Prisma.XOR -} - -export type SlaPolicyUpdateWithoutTicketsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timeToFirstResponse?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - timeToResolution?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - calendar?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type SlaPolicyUncheckedUpdateWithoutTicketsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timeToFirstResponse?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - timeToResolution?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - calendar?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - - -/** - * Count Type SlaPolicyCountOutputType - */ - -export type SlaPolicyCountOutputType = { - tickets: number -} - -export type SlaPolicyCountOutputTypeSelect = { - tickets?: boolean | SlaPolicyCountOutputTypeCountTicketsArgs -} - -/** - * SlaPolicyCountOutputType without action - */ -export type SlaPolicyCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the SlaPolicyCountOutputType - */ - select?: Prisma.SlaPolicyCountOutputTypeSelect | null -} - -/** - * SlaPolicyCountOutputType without action - */ -export type SlaPolicyCountOutputTypeCountTicketsArgs = { - where?: Prisma.TicketWhereInput -} - - -export type SlaPolicySelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - name?: boolean - description?: boolean - timeToFirstResponse?: boolean - timeToResolution?: boolean - calendar?: boolean - createdAt?: boolean - updatedAt?: boolean - tickets?: boolean | Prisma.SlaPolicy$ticketsArgs - _count?: boolean | Prisma.SlaPolicyCountOutputTypeDefaultArgs -}, ExtArgs["result"]["slaPolicy"]> - -export type SlaPolicySelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - name?: boolean - description?: boolean - timeToFirstResponse?: boolean - timeToResolution?: boolean - calendar?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["slaPolicy"]> - -export type SlaPolicySelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - name?: boolean - description?: boolean - timeToFirstResponse?: boolean - timeToResolution?: boolean - calendar?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["slaPolicy"]> - -export type SlaPolicySelectScalar = { - id?: boolean - tenantId?: boolean - name?: boolean - description?: boolean - timeToFirstResponse?: boolean - timeToResolution?: boolean - calendar?: boolean - createdAt?: boolean - updatedAt?: boolean -} - -export type SlaPolicyOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "name" | "description" | "timeToFirstResponse" | "timeToResolution" | "calendar" | "createdAt" | "updatedAt", ExtArgs["result"]["slaPolicy"]> -export type SlaPolicyInclude = { - tickets?: boolean | Prisma.SlaPolicy$ticketsArgs - _count?: boolean | Prisma.SlaPolicyCountOutputTypeDefaultArgs -} -export type SlaPolicyIncludeCreateManyAndReturn = {} -export type SlaPolicyIncludeUpdateManyAndReturn = {} - -export type $SlaPolicyPayload = { - name: "SlaPolicy" - objects: { - tickets: Prisma.$TicketPayload[] - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - tenantId: string - name: string - description: string | null - timeToFirstResponse: number | null - timeToResolution: number | null - calendar: runtime.JsonValue | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["slaPolicy"]> - composites: {} -} - -export type SlaPolicyGetPayload = runtime.Types.Result.GetResult - -export type SlaPolicyCountArgs = - Omit & { - select?: SlaPolicyCountAggregateInputType | true - } - -export interface SlaPolicyDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['SlaPolicy'], meta: { name: 'SlaPolicy' } } - /** - * Find zero or one SlaPolicy that matches the filter. - * @param {SlaPolicyFindUniqueArgs} args - Arguments to find a SlaPolicy - * @example - * // Get one SlaPolicy - * const slaPolicy = await prisma.slaPolicy.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SlaPolicyClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one SlaPolicy that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {SlaPolicyFindUniqueOrThrowArgs} args - Arguments to find a SlaPolicy - * @example - * // Get one SlaPolicy - * const slaPolicy = await prisma.slaPolicy.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SlaPolicyClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first SlaPolicy that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SlaPolicyFindFirstArgs} args - Arguments to find a SlaPolicy - * @example - * // Get one SlaPolicy - * const slaPolicy = await prisma.slaPolicy.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SlaPolicyClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first SlaPolicy that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SlaPolicyFindFirstOrThrowArgs} args - Arguments to find a SlaPolicy - * @example - * // Get one SlaPolicy - * const slaPolicy = await prisma.slaPolicy.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SlaPolicyClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more SlaPolicies that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SlaPolicyFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all SlaPolicies - * const slaPolicies = await prisma.slaPolicy.findMany() - * - * // Get first 10 SlaPolicies - * const slaPolicies = await prisma.slaPolicy.findMany({ take: 10 }) - * - * // Only select the `id` - * const slaPolicyWithIdOnly = await prisma.slaPolicy.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a SlaPolicy. - * @param {SlaPolicyCreateArgs} args - Arguments to create a SlaPolicy. - * @example - * // Create one SlaPolicy - * const SlaPolicy = await prisma.slaPolicy.create({ - * data: { - * // ... data to create a SlaPolicy - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__SlaPolicyClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many SlaPolicies. - * @param {SlaPolicyCreateManyArgs} args - Arguments to create many SlaPolicies. - * @example - * // Create many SlaPolicies - * const slaPolicy = await prisma.slaPolicy.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many SlaPolicies and returns the data saved in the database. - * @param {SlaPolicyCreateManyAndReturnArgs} args - Arguments to create many SlaPolicies. - * @example - * // Create many SlaPolicies - * const slaPolicy = await prisma.slaPolicy.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many SlaPolicies and only return the `id` - * const slaPolicyWithIdOnly = await prisma.slaPolicy.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a SlaPolicy. - * @param {SlaPolicyDeleteArgs} args - Arguments to delete one SlaPolicy. - * @example - * // Delete one SlaPolicy - * const SlaPolicy = await prisma.slaPolicy.delete({ - * where: { - * // ... filter to delete one SlaPolicy - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__SlaPolicyClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one SlaPolicy. - * @param {SlaPolicyUpdateArgs} args - Arguments to update one SlaPolicy. - * @example - * // Update one SlaPolicy - * const slaPolicy = await prisma.slaPolicy.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__SlaPolicyClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more SlaPolicies. - * @param {SlaPolicyDeleteManyArgs} args - Arguments to filter SlaPolicies to delete. - * @example - * // Delete a few SlaPolicies - * const { count } = await prisma.slaPolicy.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more SlaPolicies. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SlaPolicyUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many SlaPolicies - * const slaPolicy = await prisma.slaPolicy.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more SlaPolicies and returns the data updated in the database. - * @param {SlaPolicyUpdateManyAndReturnArgs} args - Arguments to update many SlaPolicies. - * @example - * // Update many SlaPolicies - * const slaPolicy = await prisma.slaPolicy.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more SlaPolicies and only return the `id` - * const slaPolicyWithIdOnly = await prisma.slaPolicy.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one SlaPolicy. - * @param {SlaPolicyUpsertArgs} args - Arguments to update or create a SlaPolicy. - * @example - * // Update or create a SlaPolicy - * const slaPolicy = await prisma.slaPolicy.upsert({ - * create: { - * // ... data to create a SlaPolicy - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the SlaPolicy we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SlaPolicyClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of SlaPolicies. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SlaPolicyCountArgs} args - Arguments to filter SlaPolicies to count. - * @example - * // Count the number of SlaPolicies - * const count = await prisma.slaPolicy.count({ - * where: { - * // ... the filter for the SlaPolicies we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a SlaPolicy. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SlaPolicyAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by SlaPolicy. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SlaPolicyGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends SlaPolicyGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: SlaPolicyGroupByArgs['orderBy'] } - : { orderBy?: SlaPolicyGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetSlaPolicyGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the SlaPolicy model - */ -readonly fields: SlaPolicyFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for SlaPolicy. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__SlaPolicyClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - tickets = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the SlaPolicy model - */ -export interface SlaPolicyFieldRefs { - readonly id: Prisma.FieldRef<"SlaPolicy", 'String'> - readonly tenantId: Prisma.FieldRef<"SlaPolicy", 'String'> - readonly name: Prisma.FieldRef<"SlaPolicy", 'String'> - readonly description: Prisma.FieldRef<"SlaPolicy", 'String'> - readonly timeToFirstResponse: Prisma.FieldRef<"SlaPolicy", 'Int'> - readonly timeToResolution: Prisma.FieldRef<"SlaPolicy", 'Int'> - readonly calendar: Prisma.FieldRef<"SlaPolicy", 'Json'> - readonly createdAt: Prisma.FieldRef<"SlaPolicy", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"SlaPolicy", 'DateTime'> -} - - -// Custom InputTypes -/** - * SlaPolicy findUnique - */ -export type SlaPolicyFindUniqueArgs = { - /** - * Select specific fields to fetch from the SlaPolicy - */ - select?: Prisma.SlaPolicySelect | null - /** - * Omit specific fields from the SlaPolicy - */ - omit?: Prisma.SlaPolicyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SlaPolicyInclude | null - /** - * Filter, which SlaPolicy to fetch. - */ - where: Prisma.SlaPolicyWhereUniqueInput -} - -/** - * SlaPolicy findUniqueOrThrow - */ -export type SlaPolicyFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the SlaPolicy - */ - select?: Prisma.SlaPolicySelect | null - /** - * Omit specific fields from the SlaPolicy - */ - omit?: Prisma.SlaPolicyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SlaPolicyInclude | null - /** - * Filter, which SlaPolicy to fetch. - */ - where: Prisma.SlaPolicyWhereUniqueInput -} - -/** - * SlaPolicy findFirst - */ -export type SlaPolicyFindFirstArgs = { - /** - * Select specific fields to fetch from the SlaPolicy - */ - select?: Prisma.SlaPolicySelect | null - /** - * Omit specific fields from the SlaPolicy - */ - omit?: Prisma.SlaPolicyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SlaPolicyInclude | null - /** - * Filter, which SlaPolicy to fetch. - */ - where?: Prisma.SlaPolicyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SlaPolicies to fetch. - */ - orderBy?: Prisma.SlaPolicyOrderByWithRelationInput | Prisma.SlaPolicyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for SlaPolicies. - */ - cursor?: Prisma.SlaPolicyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SlaPolicies from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` SlaPolicies. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of SlaPolicies. - */ - distinct?: Prisma.SlaPolicyScalarFieldEnum | Prisma.SlaPolicyScalarFieldEnum[] -} - -/** - * SlaPolicy findFirstOrThrow - */ -export type SlaPolicyFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the SlaPolicy - */ - select?: Prisma.SlaPolicySelect | null - /** - * Omit specific fields from the SlaPolicy - */ - omit?: Prisma.SlaPolicyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SlaPolicyInclude | null - /** - * Filter, which SlaPolicy to fetch. - */ - where?: Prisma.SlaPolicyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SlaPolicies to fetch. - */ - orderBy?: Prisma.SlaPolicyOrderByWithRelationInput | Prisma.SlaPolicyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for SlaPolicies. - */ - cursor?: Prisma.SlaPolicyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SlaPolicies from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` SlaPolicies. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of SlaPolicies. - */ - distinct?: Prisma.SlaPolicyScalarFieldEnum | Prisma.SlaPolicyScalarFieldEnum[] -} - -/** - * SlaPolicy findMany - */ -export type SlaPolicyFindManyArgs = { - /** - * Select specific fields to fetch from the SlaPolicy - */ - select?: Prisma.SlaPolicySelect | null - /** - * Omit specific fields from the SlaPolicy - */ - omit?: Prisma.SlaPolicyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SlaPolicyInclude | null - /** - * Filter, which SlaPolicies to fetch. - */ - where?: Prisma.SlaPolicyWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of SlaPolicies to fetch. - */ - orderBy?: Prisma.SlaPolicyOrderByWithRelationInput | Prisma.SlaPolicyOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing SlaPolicies. - */ - cursor?: Prisma.SlaPolicyWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` SlaPolicies from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` SlaPolicies. - */ - skip?: number - distinct?: Prisma.SlaPolicyScalarFieldEnum | Prisma.SlaPolicyScalarFieldEnum[] -} - -/** - * SlaPolicy create - */ -export type SlaPolicyCreateArgs = { - /** - * Select specific fields to fetch from the SlaPolicy - */ - select?: Prisma.SlaPolicySelect | null - /** - * Omit specific fields from the SlaPolicy - */ - omit?: Prisma.SlaPolicyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SlaPolicyInclude | null - /** - * The data needed to create a SlaPolicy. - */ - data: Prisma.XOR -} - -/** - * SlaPolicy createMany - */ -export type SlaPolicyCreateManyArgs = { - /** - * The data used to create many SlaPolicies. - */ - data: Prisma.SlaPolicyCreateManyInput | Prisma.SlaPolicyCreateManyInput[] -} - -/** - * SlaPolicy createManyAndReturn - */ -export type SlaPolicyCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the SlaPolicy - */ - select?: Prisma.SlaPolicySelectCreateManyAndReturn | null - /** - * Omit specific fields from the SlaPolicy - */ - omit?: Prisma.SlaPolicyOmit | null - /** - * The data used to create many SlaPolicies. - */ - data: Prisma.SlaPolicyCreateManyInput | Prisma.SlaPolicyCreateManyInput[] -} - -/** - * SlaPolicy update - */ -export type SlaPolicyUpdateArgs = { - /** - * Select specific fields to fetch from the SlaPolicy - */ - select?: Prisma.SlaPolicySelect | null - /** - * Omit specific fields from the SlaPolicy - */ - omit?: Prisma.SlaPolicyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SlaPolicyInclude | null - /** - * The data needed to update a SlaPolicy. - */ - data: Prisma.XOR - /** - * Choose, which SlaPolicy to update. - */ - where: Prisma.SlaPolicyWhereUniqueInput -} - -/** - * SlaPolicy updateMany - */ -export type SlaPolicyUpdateManyArgs = { - /** - * The data used to update SlaPolicies. - */ - data: Prisma.XOR - /** - * Filter which SlaPolicies to update - */ - where?: Prisma.SlaPolicyWhereInput - /** - * Limit how many SlaPolicies to update. - */ - limit?: number -} - -/** - * SlaPolicy updateManyAndReturn - */ -export type SlaPolicyUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the SlaPolicy - */ - select?: Prisma.SlaPolicySelectUpdateManyAndReturn | null - /** - * Omit specific fields from the SlaPolicy - */ - omit?: Prisma.SlaPolicyOmit | null - /** - * The data used to update SlaPolicies. - */ - data: Prisma.XOR - /** - * Filter which SlaPolicies to update - */ - where?: Prisma.SlaPolicyWhereInput - /** - * Limit how many SlaPolicies to update. - */ - limit?: number -} - -/** - * SlaPolicy upsert - */ -export type SlaPolicyUpsertArgs = { - /** - * Select specific fields to fetch from the SlaPolicy - */ - select?: Prisma.SlaPolicySelect | null - /** - * Omit specific fields from the SlaPolicy - */ - omit?: Prisma.SlaPolicyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SlaPolicyInclude | null - /** - * The filter to search for the SlaPolicy to update in case it exists. - */ - where: Prisma.SlaPolicyWhereUniqueInput - /** - * In case the SlaPolicy found by the `where` argument doesn't exist, create a new SlaPolicy with this data. - */ - create: Prisma.XOR - /** - * In case the SlaPolicy was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * SlaPolicy delete - */ -export type SlaPolicyDeleteArgs = { - /** - * Select specific fields to fetch from the SlaPolicy - */ - select?: Prisma.SlaPolicySelect | null - /** - * Omit specific fields from the SlaPolicy - */ - omit?: Prisma.SlaPolicyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SlaPolicyInclude | null - /** - * Filter which SlaPolicy to delete. - */ - where: Prisma.SlaPolicyWhereUniqueInput -} - -/** - * SlaPolicy deleteMany - */ -export type SlaPolicyDeleteManyArgs = { - /** - * Filter which SlaPolicies to delete - */ - where?: Prisma.SlaPolicyWhereInput - /** - * Limit how many SlaPolicies to delete. - */ - limit?: number -} - -/** - * SlaPolicy.tickets - */ -export type SlaPolicy$ticketsArgs = { - /** - * Select specific fields to fetch from the Ticket - */ - select?: Prisma.TicketSelect | null - /** - * Omit specific fields from the Ticket - */ - omit?: Prisma.TicketOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketInclude | null - where?: Prisma.TicketWhereInput - orderBy?: Prisma.TicketOrderByWithRelationInput | Prisma.TicketOrderByWithRelationInput[] - cursor?: Prisma.TicketWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.TicketScalarFieldEnum | Prisma.TicketScalarFieldEnum[] -} - -/** - * SlaPolicy without action - */ -export type SlaPolicyDefaultArgs = { - /** - * Select specific fields to fetch from the SlaPolicy - */ - select?: Prisma.SlaPolicySelect | null - /** - * Omit specific fields from the SlaPolicy - */ - omit?: Prisma.SlaPolicyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SlaPolicyInclude | null -} diff --git a/src/generated/prisma/models/Team.ts b/src/generated/prisma/models/Team.ts deleted file mode 100644 index 95cb652..0000000 --- a/src/generated/prisma/models/Team.ts +++ /dev/null @@ -1,1489 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `Team` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model Team - * - */ -export type TeamModel = runtime.Types.Result.DefaultSelection - -export type AggregateTeam = { - _count: TeamCountAggregateOutputType | null - _min: TeamMinAggregateOutputType | null - _max: TeamMaxAggregateOutputType | null -} - -export type TeamMinAggregateOutputType = { - id: string | null - tenantId: string | null - name: string | null - description: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type TeamMaxAggregateOutputType = { - id: string | null - tenantId: string | null - name: string | null - description: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type TeamCountAggregateOutputType = { - id: number - tenantId: number - name: number - description: number - createdAt: number - updatedAt: number - _all: number -} - - -export type TeamMinAggregateInputType = { - id?: true - tenantId?: true - name?: true - description?: true - createdAt?: true - updatedAt?: true -} - -export type TeamMaxAggregateInputType = { - id?: true - tenantId?: true - name?: true - description?: true - createdAt?: true - updatedAt?: true -} - -export type TeamCountAggregateInputType = { - id?: true - tenantId?: true - name?: true - description?: true - createdAt?: true - updatedAt?: true - _all?: true -} - -export type TeamAggregateArgs = { - /** - * Filter which Team to aggregate. - */ - where?: Prisma.TeamWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Teams to fetch. - */ - orderBy?: Prisma.TeamOrderByWithRelationInput | Prisma.TeamOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.TeamWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Teams from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Teams. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Teams - **/ - _count?: true | TeamCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: TeamMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: TeamMaxAggregateInputType -} - -export type GetTeamAggregateType = { - [P in keyof T & keyof AggregateTeam]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type TeamGroupByArgs = { - where?: Prisma.TeamWhereInput - orderBy?: Prisma.TeamOrderByWithAggregationInput | Prisma.TeamOrderByWithAggregationInput[] - by: Prisma.TeamScalarFieldEnum[] | Prisma.TeamScalarFieldEnum - having?: Prisma.TeamScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: TeamCountAggregateInputType | true - _min?: TeamMinAggregateInputType - _max?: TeamMaxAggregateInputType -} - -export type TeamGroupByOutputType = { - id: string - tenantId: string - name: string - description: string | null - createdAt: Date - updatedAt: Date - _count: TeamCountAggregateOutputType | null - _min: TeamMinAggregateOutputType | null - _max: TeamMaxAggregateOutputType | null -} - -type GetTeamGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof TeamGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type TeamWhereInput = { - AND?: Prisma.TeamWhereInput | Prisma.TeamWhereInput[] - OR?: Prisma.TeamWhereInput[] - NOT?: Prisma.TeamWhereInput | Prisma.TeamWhereInput[] - id?: Prisma.StringFilter<"Team"> | string - tenantId?: Prisma.StringFilter<"Team"> | string - name?: Prisma.StringFilter<"Team"> | string - description?: Prisma.StringNullableFilter<"Team"> | string | null - createdAt?: Prisma.DateTimeFilter<"Team"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Team"> | Date | string - members?: Prisma.TeamMemberListRelationFilter - queues?: Prisma.QueueListRelationFilter -} - -export type TeamOrderByWithRelationInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - description?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - members?: Prisma.TeamMemberOrderByRelationAggregateInput - queues?: Prisma.QueueOrderByRelationAggregateInput -} - -export type TeamWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: Prisma.TeamWhereInput | Prisma.TeamWhereInput[] - OR?: Prisma.TeamWhereInput[] - NOT?: Prisma.TeamWhereInput | Prisma.TeamWhereInput[] - tenantId?: Prisma.StringFilter<"Team"> | string - name?: Prisma.StringFilter<"Team"> | string - description?: Prisma.StringNullableFilter<"Team"> | string | null - createdAt?: Prisma.DateTimeFilter<"Team"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Team"> | Date | string - members?: Prisma.TeamMemberListRelationFilter - queues?: Prisma.QueueListRelationFilter -}, "id"> - -export type TeamOrderByWithAggregationInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - description?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - _count?: Prisma.TeamCountOrderByAggregateInput - _max?: Prisma.TeamMaxOrderByAggregateInput - _min?: Prisma.TeamMinOrderByAggregateInput -} - -export type TeamScalarWhereWithAggregatesInput = { - AND?: Prisma.TeamScalarWhereWithAggregatesInput | Prisma.TeamScalarWhereWithAggregatesInput[] - OR?: Prisma.TeamScalarWhereWithAggregatesInput[] - NOT?: Prisma.TeamScalarWhereWithAggregatesInput | Prisma.TeamScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"Team"> | string - tenantId?: Prisma.StringWithAggregatesFilter<"Team"> | string - name?: Prisma.StringWithAggregatesFilter<"Team"> | string - description?: Prisma.StringNullableWithAggregatesFilter<"Team"> | string | null - createdAt?: Prisma.DateTimeWithAggregatesFilter<"Team"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Team"> | Date | string -} - -export type TeamCreateInput = { - id?: string - tenantId: string - name: string - description?: string | null - createdAt?: Date | string - updatedAt?: Date | string - members?: Prisma.TeamMemberCreateNestedManyWithoutTeamInput - queues?: Prisma.QueueCreateNestedManyWithoutTeamInput -} - -export type TeamUncheckedCreateInput = { - id?: string - tenantId: string - name: string - description?: string | null - createdAt?: Date | string - updatedAt?: Date | string - members?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutTeamInput - queues?: Prisma.QueueUncheckedCreateNestedManyWithoutTeamInput -} - -export type TeamUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - members?: Prisma.TeamMemberUpdateManyWithoutTeamNestedInput - queues?: Prisma.QueueUpdateManyWithoutTeamNestedInput -} - -export type TeamUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - members?: Prisma.TeamMemberUncheckedUpdateManyWithoutTeamNestedInput - queues?: Prisma.QueueUncheckedUpdateManyWithoutTeamNestedInput -} - -export type TeamCreateManyInput = { - id?: string - tenantId: string - name: string - description?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type TeamUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TeamUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TeamCountOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - description?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type TeamMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - description?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type TeamMinOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - description?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type TeamScalarRelationFilter = { - is?: Prisma.TeamWhereInput - isNot?: Prisma.TeamWhereInput -} - -export type TeamNullableScalarRelationFilter = { - is?: Prisma.TeamWhereInput | null - isNot?: Prisma.TeamWhereInput | null -} - -export type StringFieldUpdateOperationsInput = { - set?: string -} - -export type NullableStringFieldUpdateOperationsInput = { - set?: string | null -} - -export type DateTimeFieldUpdateOperationsInput = { - set?: Date | string -} - -export type TeamCreateNestedOneWithoutMembersInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.TeamCreateOrConnectWithoutMembersInput - connect?: Prisma.TeamWhereUniqueInput -} - -export type TeamUpdateOneRequiredWithoutMembersNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.TeamCreateOrConnectWithoutMembersInput - upsert?: Prisma.TeamUpsertWithoutMembersInput - connect?: Prisma.TeamWhereUniqueInput - update?: Prisma.XOR, Prisma.TeamUncheckedUpdateWithoutMembersInput> -} - -export type TeamCreateNestedOneWithoutQueuesInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.TeamCreateOrConnectWithoutQueuesInput - connect?: Prisma.TeamWhereUniqueInput -} - -export type TeamUpdateOneWithoutQueuesNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.TeamCreateOrConnectWithoutQueuesInput - upsert?: Prisma.TeamUpsertWithoutQueuesInput - disconnect?: Prisma.TeamWhereInput | boolean - delete?: Prisma.TeamWhereInput | boolean - connect?: Prisma.TeamWhereUniqueInput - update?: Prisma.XOR, Prisma.TeamUncheckedUpdateWithoutQueuesInput> -} - -export type TeamCreateWithoutMembersInput = { - id?: string - tenantId: string - name: string - description?: string | null - createdAt?: Date | string - updatedAt?: Date | string - queues?: Prisma.QueueCreateNestedManyWithoutTeamInput -} - -export type TeamUncheckedCreateWithoutMembersInput = { - id?: string - tenantId: string - name: string - description?: string | null - createdAt?: Date | string - updatedAt?: Date | string - queues?: Prisma.QueueUncheckedCreateNestedManyWithoutTeamInput -} - -export type TeamCreateOrConnectWithoutMembersInput = { - where: Prisma.TeamWhereUniqueInput - create: Prisma.XOR -} - -export type TeamUpsertWithoutMembersInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.TeamWhereInput -} - -export type TeamUpdateToOneWithWhereWithoutMembersInput = { - where?: Prisma.TeamWhereInput - data: Prisma.XOR -} - -export type TeamUpdateWithoutMembersInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - queues?: Prisma.QueueUpdateManyWithoutTeamNestedInput -} - -export type TeamUncheckedUpdateWithoutMembersInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - queues?: Prisma.QueueUncheckedUpdateManyWithoutTeamNestedInput -} - -export type TeamCreateWithoutQueuesInput = { - id?: string - tenantId: string - name: string - description?: string | null - createdAt?: Date | string - updatedAt?: Date | string - members?: Prisma.TeamMemberCreateNestedManyWithoutTeamInput -} - -export type TeamUncheckedCreateWithoutQueuesInput = { - id?: string - tenantId: string - name: string - description?: string | null - createdAt?: Date | string - updatedAt?: Date | string - members?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutTeamInput -} - -export type TeamCreateOrConnectWithoutQueuesInput = { - where: Prisma.TeamWhereUniqueInput - create: Prisma.XOR -} - -export type TeamUpsertWithoutQueuesInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.TeamWhereInput -} - -export type TeamUpdateToOneWithWhereWithoutQueuesInput = { - where?: Prisma.TeamWhereInput - data: Prisma.XOR -} - -export type TeamUpdateWithoutQueuesInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - members?: Prisma.TeamMemberUpdateManyWithoutTeamNestedInput -} - -export type TeamUncheckedUpdateWithoutQueuesInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - members?: Prisma.TeamMemberUncheckedUpdateManyWithoutTeamNestedInput -} - - -/** - * Count Type TeamCountOutputType - */ - -export type TeamCountOutputType = { - members: number - queues: number -} - -export type TeamCountOutputTypeSelect = { - members?: boolean | TeamCountOutputTypeCountMembersArgs - queues?: boolean | TeamCountOutputTypeCountQueuesArgs -} - -/** - * TeamCountOutputType without action - */ -export type TeamCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the TeamCountOutputType - */ - select?: Prisma.TeamCountOutputTypeSelect | null -} - -/** - * TeamCountOutputType without action - */ -export type TeamCountOutputTypeCountMembersArgs = { - where?: Prisma.TeamMemberWhereInput -} - -/** - * TeamCountOutputType without action - */ -export type TeamCountOutputTypeCountQueuesArgs = { - where?: Prisma.QueueWhereInput -} - - -export type TeamSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - name?: boolean - description?: boolean - createdAt?: boolean - updatedAt?: boolean - members?: boolean | Prisma.Team$membersArgs - queues?: boolean | Prisma.Team$queuesArgs - _count?: boolean | Prisma.TeamCountOutputTypeDefaultArgs -}, ExtArgs["result"]["team"]> - -export type TeamSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - name?: boolean - description?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["team"]> - -export type TeamSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - name?: boolean - description?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["team"]> - -export type TeamSelectScalar = { - id?: boolean - tenantId?: boolean - name?: boolean - description?: boolean - createdAt?: boolean - updatedAt?: boolean -} - -export type TeamOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "name" | "description" | "createdAt" | "updatedAt", ExtArgs["result"]["team"]> -export type TeamInclude = { - members?: boolean | Prisma.Team$membersArgs - queues?: boolean | Prisma.Team$queuesArgs - _count?: boolean | Prisma.TeamCountOutputTypeDefaultArgs -} -export type TeamIncludeCreateManyAndReturn = {} -export type TeamIncludeUpdateManyAndReturn = {} - -export type $TeamPayload = { - name: "Team" - objects: { - members: Prisma.$TeamMemberPayload[] - queues: Prisma.$QueuePayload[] - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - tenantId: string - name: string - description: string | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["team"]> - composites: {} -} - -export type TeamGetPayload = runtime.Types.Result.GetResult - -export type TeamCountArgs = - Omit & { - select?: TeamCountAggregateInputType | true - } - -export interface TeamDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Team'], meta: { name: 'Team' } } - /** - * Find zero or one Team that matches the filter. - * @param {TeamFindUniqueArgs} args - Arguments to find a Team - * @example - * // Get one Team - * const team = await prisma.team.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TeamClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Team that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {TeamFindUniqueOrThrowArgs} args - Arguments to find a Team - * @example - * // Get one Team - * const team = await prisma.team.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TeamClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Team that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TeamFindFirstArgs} args - Arguments to find a Team - * @example - * // Get one Team - * const team = await prisma.team.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TeamClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Team that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TeamFindFirstOrThrowArgs} args - Arguments to find a Team - * @example - * // Get one Team - * const team = await prisma.team.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TeamClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Teams that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TeamFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Teams - * const teams = await prisma.team.findMany() - * - * // Get first 10 Teams - * const teams = await prisma.team.findMany({ take: 10 }) - * - * // Only select the `id` - * const teamWithIdOnly = await prisma.team.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Team. - * @param {TeamCreateArgs} args - Arguments to create a Team. - * @example - * // Create one Team - * const Team = await prisma.team.create({ - * data: { - * // ... data to create a Team - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__TeamClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Teams. - * @param {TeamCreateManyArgs} args - Arguments to create many Teams. - * @example - * // Create many Teams - * const team = await prisma.team.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Teams and returns the data saved in the database. - * @param {TeamCreateManyAndReturnArgs} args - Arguments to create many Teams. - * @example - * // Create many Teams - * const team = await prisma.team.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Teams and only return the `id` - * const teamWithIdOnly = await prisma.team.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Team. - * @param {TeamDeleteArgs} args - Arguments to delete one Team. - * @example - * // Delete one Team - * const Team = await prisma.team.delete({ - * where: { - * // ... filter to delete one Team - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__TeamClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Team. - * @param {TeamUpdateArgs} args - Arguments to update one Team. - * @example - * // Update one Team - * const team = await prisma.team.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__TeamClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Teams. - * @param {TeamDeleteManyArgs} args - Arguments to filter Teams to delete. - * @example - * // Delete a few Teams - * const { count } = await prisma.team.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Teams. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TeamUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Teams - * const team = await prisma.team.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Teams and returns the data updated in the database. - * @param {TeamUpdateManyAndReturnArgs} args - Arguments to update many Teams. - * @example - * // Update many Teams - * const team = await prisma.team.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Teams and only return the `id` - * const teamWithIdOnly = await prisma.team.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Team. - * @param {TeamUpsertArgs} args - Arguments to update or create a Team. - * @example - * // Update or create a Team - * const team = await prisma.team.upsert({ - * create: { - * // ... data to create a Team - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Team we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TeamClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Teams. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TeamCountArgs} args - Arguments to filter Teams to count. - * @example - * // Count the number of Teams - * const count = await prisma.team.count({ - * where: { - * // ... the filter for the Teams we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Team. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TeamAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by Team. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TeamGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends TeamGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: TeamGroupByArgs['orderBy'] } - : { orderBy?: TeamGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetTeamGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the Team model - */ -readonly fields: TeamFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for Team. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__TeamClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - members = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - queues = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the Team model - */ -export interface TeamFieldRefs { - readonly id: Prisma.FieldRef<"Team", 'String'> - readonly tenantId: Prisma.FieldRef<"Team", 'String'> - readonly name: Prisma.FieldRef<"Team", 'String'> - readonly description: Prisma.FieldRef<"Team", 'String'> - readonly createdAt: Prisma.FieldRef<"Team", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"Team", 'DateTime'> -} - - -// Custom InputTypes -/** - * Team findUnique - */ -export type TeamFindUniqueArgs = { - /** - * Select specific fields to fetch from the Team - */ - select?: Prisma.TeamSelect | null - /** - * Omit specific fields from the Team - */ - omit?: Prisma.TeamOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamInclude | null - /** - * Filter, which Team to fetch. - */ - where: Prisma.TeamWhereUniqueInput -} - -/** - * Team findUniqueOrThrow - */ -export type TeamFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Team - */ - select?: Prisma.TeamSelect | null - /** - * Omit specific fields from the Team - */ - omit?: Prisma.TeamOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamInclude | null - /** - * Filter, which Team to fetch. - */ - where: Prisma.TeamWhereUniqueInput -} - -/** - * Team findFirst - */ -export type TeamFindFirstArgs = { - /** - * Select specific fields to fetch from the Team - */ - select?: Prisma.TeamSelect | null - /** - * Omit specific fields from the Team - */ - omit?: Prisma.TeamOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamInclude | null - /** - * Filter, which Team to fetch. - */ - where?: Prisma.TeamWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Teams to fetch. - */ - orderBy?: Prisma.TeamOrderByWithRelationInput | Prisma.TeamOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Teams. - */ - cursor?: Prisma.TeamWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Teams from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Teams. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Teams. - */ - distinct?: Prisma.TeamScalarFieldEnum | Prisma.TeamScalarFieldEnum[] -} - -/** - * Team findFirstOrThrow - */ -export type TeamFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Team - */ - select?: Prisma.TeamSelect | null - /** - * Omit specific fields from the Team - */ - omit?: Prisma.TeamOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamInclude | null - /** - * Filter, which Team to fetch. - */ - where?: Prisma.TeamWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Teams to fetch. - */ - orderBy?: Prisma.TeamOrderByWithRelationInput | Prisma.TeamOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Teams. - */ - cursor?: Prisma.TeamWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Teams from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Teams. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Teams. - */ - distinct?: Prisma.TeamScalarFieldEnum | Prisma.TeamScalarFieldEnum[] -} - -/** - * Team findMany - */ -export type TeamFindManyArgs = { - /** - * Select specific fields to fetch from the Team - */ - select?: Prisma.TeamSelect | null - /** - * Omit specific fields from the Team - */ - omit?: Prisma.TeamOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamInclude | null - /** - * Filter, which Teams to fetch. - */ - where?: Prisma.TeamWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Teams to fetch. - */ - orderBy?: Prisma.TeamOrderByWithRelationInput | Prisma.TeamOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Teams. - */ - cursor?: Prisma.TeamWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Teams from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Teams. - */ - skip?: number - distinct?: Prisma.TeamScalarFieldEnum | Prisma.TeamScalarFieldEnum[] -} - -/** - * Team create - */ -export type TeamCreateArgs = { - /** - * Select specific fields to fetch from the Team - */ - select?: Prisma.TeamSelect | null - /** - * Omit specific fields from the Team - */ - omit?: Prisma.TeamOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamInclude | null - /** - * The data needed to create a Team. - */ - data: Prisma.XOR -} - -/** - * Team createMany - */ -export type TeamCreateManyArgs = { - /** - * The data used to create many Teams. - */ - data: Prisma.TeamCreateManyInput | Prisma.TeamCreateManyInput[] -} - -/** - * Team createManyAndReturn - */ -export type TeamCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Team - */ - select?: Prisma.TeamSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Team - */ - omit?: Prisma.TeamOmit | null - /** - * The data used to create many Teams. - */ - data: Prisma.TeamCreateManyInput | Prisma.TeamCreateManyInput[] -} - -/** - * Team update - */ -export type TeamUpdateArgs = { - /** - * Select specific fields to fetch from the Team - */ - select?: Prisma.TeamSelect | null - /** - * Omit specific fields from the Team - */ - omit?: Prisma.TeamOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamInclude | null - /** - * The data needed to update a Team. - */ - data: Prisma.XOR - /** - * Choose, which Team to update. - */ - where: Prisma.TeamWhereUniqueInput -} - -/** - * Team updateMany - */ -export type TeamUpdateManyArgs = { - /** - * The data used to update Teams. - */ - data: Prisma.XOR - /** - * Filter which Teams to update - */ - where?: Prisma.TeamWhereInput - /** - * Limit how many Teams to update. - */ - limit?: number -} - -/** - * Team updateManyAndReturn - */ -export type TeamUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Team - */ - select?: Prisma.TeamSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Team - */ - omit?: Prisma.TeamOmit | null - /** - * The data used to update Teams. - */ - data: Prisma.XOR - /** - * Filter which Teams to update - */ - where?: Prisma.TeamWhereInput - /** - * Limit how many Teams to update. - */ - limit?: number -} - -/** - * Team upsert - */ -export type TeamUpsertArgs = { - /** - * Select specific fields to fetch from the Team - */ - select?: Prisma.TeamSelect | null - /** - * Omit specific fields from the Team - */ - omit?: Prisma.TeamOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamInclude | null - /** - * The filter to search for the Team to update in case it exists. - */ - where: Prisma.TeamWhereUniqueInput - /** - * In case the Team found by the `where` argument doesn't exist, create a new Team with this data. - */ - create: Prisma.XOR - /** - * In case the Team was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * Team delete - */ -export type TeamDeleteArgs = { - /** - * Select specific fields to fetch from the Team - */ - select?: Prisma.TeamSelect | null - /** - * Omit specific fields from the Team - */ - omit?: Prisma.TeamOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamInclude | null - /** - * Filter which Team to delete. - */ - where: Prisma.TeamWhereUniqueInput -} - -/** - * Team deleteMany - */ -export type TeamDeleteManyArgs = { - /** - * Filter which Teams to delete - */ - where?: Prisma.TeamWhereInput - /** - * Limit how many Teams to delete. - */ - limit?: number -} - -/** - * Team.members - */ -export type Team$membersArgs = { - /** - * Select specific fields to fetch from the TeamMember - */ - select?: Prisma.TeamMemberSelect | null - /** - * Omit specific fields from the TeamMember - */ - omit?: Prisma.TeamMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamMemberInclude | null - where?: Prisma.TeamMemberWhereInput - orderBy?: Prisma.TeamMemberOrderByWithRelationInput | Prisma.TeamMemberOrderByWithRelationInput[] - cursor?: Prisma.TeamMemberWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.TeamMemberScalarFieldEnum | Prisma.TeamMemberScalarFieldEnum[] -} - -/** - * Team.queues - */ -export type Team$queuesArgs = { - /** - * Select specific fields to fetch from the Queue - */ - select?: Prisma.QueueSelect | null - /** - * Omit specific fields from the Queue - */ - omit?: Prisma.QueueOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.QueueInclude | null - where?: Prisma.QueueWhereInput - orderBy?: Prisma.QueueOrderByWithRelationInput | Prisma.QueueOrderByWithRelationInput[] - cursor?: Prisma.QueueWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.QueueScalarFieldEnum | Prisma.QueueScalarFieldEnum[] -} - -/** - * Team without action - */ -export type TeamDefaultArgs = { - /** - * Select specific fields to fetch from the Team - */ - select?: Prisma.TeamSelect | null - /** - * Omit specific fields from the Team - */ - omit?: Prisma.TeamOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamInclude | null -} diff --git a/src/generated/prisma/models/TeamMember.ts b/src/generated/prisma/models/TeamMember.ts deleted file mode 100644 index d57950c..0000000 --- a/src/generated/prisma/models/TeamMember.ts +++ /dev/null @@ -1,1425 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `TeamMember` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model TeamMember - * - */ -export type TeamMemberModel = runtime.Types.Result.DefaultSelection - -export type AggregateTeamMember = { - _count: TeamMemberCountAggregateOutputType | null - _min: TeamMemberMinAggregateOutputType | null - _max: TeamMemberMaxAggregateOutputType | null -} - -export type TeamMemberMinAggregateOutputType = { - teamId: string | null - userId: string | null - isLead: boolean | null - assignedAt: Date | null -} - -export type TeamMemberMaxAggregateOutputType = { - teamId: string | null - userId: string | null - isLead: boolean | null - assignedAt: Date | null -} - -export type TeamMemberCountAggregateOutputType = { - teamId: number - userId: number - isLead: number - assignedAt: number - _all: number -} - - -export type TeamMemberMinAggregateInputType = { - teamId?: true - userId?: true - isLead?: true - assignedAt?: true -} - -export type TeamMemberMaxAggregateInputType = { - teamId?: true - userId?: true - isLead?: true - assignedAt?: true -} - -export type TeamMemberCountAggregateInputType = { - teamId?: true - userId?: true - isLead?: true - assignedAt?: true - _all?: true -} - -export type TeamMemberAggregateArgs = { - /** - * Filter which TeamMember to aggregate. - */ - where?: Prisma.TeamMemberWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of TeamMembers to fetch. - */ - orderBy?: Prisma.TeamMemberOrderByWithRelationInput | Prisma.TeamMemberOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.TeamMemberWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` TeamMembers from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` TeamMembers. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned TeamMembers - **/ - _count?: true | TeamMemberCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: TeamMemberMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: TeamMemberMaxAggregateInputType -} - -export type GetTeamMemberAggregateType = { - [P in keyof T & keyof AggregateTeamMember]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type TeamMemberGroupByArgs = { - where?: Prisma.TeamMemberWhereInput - orderBy?: Prisma.TeamMemberOrderByWithAggregationInput | Prisma.TeamMemberOrderByWithAggregationInput[] - by: Prisma.TeamMemberScalarFieldEnum[] | Prisma.TeamMemberScalarFieldEnum - having?: Prisma.TeamMemberScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: TeamMemberCountAggregateInputType | true - _min?: TeamMemberMinAggregateInputType - _max?: TeamMemberMaxAggregateInputType -} - -export type TeamMemberGroupByOutputType = { - teamId: string - userId: string - isLead: boolean - assignedAt: Date - _count: TeamMemberCountAggregateOutputType | null - _min: TeamMemberMinAggregateOutputType | null - _max: TeamMemberMaxAggregateOutputType | null -} - -type GetTeamMemberGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof TeamMemberGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type TeamMemberWhereInput = { - AND?: Prisma.TeamMemberWhereInput | Prisma.TeamMemberWhereInput[] - OR?: Prisma.TeamMemberWhereInput[] - NOT?: Prisma.TeamMemberWhereInput | Prisma.TeamMemberWhereInput[] - teamId?: Prisma.StringFilter<"TeamMember"> | string - userId?: Prisma.StringFilter<"TeamMember"> | string - isLead?: Prisma.BoolFilter<"TeamMember"> | boolean - assignedAt?: Prisma.DateTimeFilter<"TeamMember"> | Date | string - team?: Prisma.XOR - user?: Prisma.XOR -} - -export type TeamMemberOrderByWithRelationInput = { - teamId?: Prisma.SortOrder - userId?: Prisma.SortOrder - isLead?: Prisma.SortOrder - assignedAt?: Prisma.SortOrder - team?: Prisma.TeamOrderByWithRelationInput - user?: Prisma.UserOrderByWithRelationInput -} - -export type TeamMemberWhereUniqueInput = Prisma.AtLeast<{ - teamId_userId?: Prisma.TeamMemberTeamIdUserIdCompoundUniqueInput - AND?: Prisma.TeamMemberWhereInput | Prisma.TeamMemberWhereInput[] - OR?: Prisma.TeamMemberWhereInput[] - NOT?: Prisma.TeamMemberWhereInput | Prisma.TeamMemberWhereInput[] - teamId?: Prisma.StringFilter<"TeamMember"> | string - userId?: Prisma.StringFilter<"TeamMember"> | string - isLead?: Prisma.BoolFilter<"TeamMember"> | boolean - assignedAt?: Prisma.DateTimeFilter<"TeamMember"> | Date | string - team?: Prisma.XOR - user?: Prisma.XOR -}, "teamId_userId"> - -export type TeamMemberOrderByWithAggregationInput = { - teamId?: Prisma.SortOrder - userId?: Prisma.SortOrder - isLead?: Prisma.SortOrder - assignedAt?: Prisma.SortOrder - _count?: Prisma.TeamMemberCountOrderByAggregateInput - _max?: Prisma.TeamMemberMaxOrderByAggregateInput - _min?: Prisma.TeamMemberMinOrderByAggregateInput -} - -export type TeamMemberScalarWhereWithAggregatesInput = { - AND?: Prisma.TeamMemberScalarWhereWithAggregatesInput | Prisma.TeamMemberScalarWhereWithAggregatesInput[] - OR?: Prisma.TeamMemberScalarWhereWithAggregatesInput[] - NOT?: Prisma.TeamMemberScalarWhereWithAggregatesInput | Prisma.TeamMemberScalarWhereWithAggregatesInput[] - teamId?: Prisma.StringWithAggregatesFilter<"TeamMember"> | string - userId?: Prisma.StringWithAggregatesFilter<"TeamMember"> | string - isLead?: Prisma.BoolWithAggregatesFilter<"TeamMember"> | boolean - assignedAt?: Prisma.DateTimeWithAggregatesFilter<"TeamMember"> | Date | string -} - -export type TeamMemberCreateInput = { - isLead?: boolean - assignedAt?: Date | string - team: Prisma.TeamCreateNestedOneWithoutMembersInput - user: Prisma.UserCreateNestedOneWithoutTeamsInput -} - -export type TeamMemberUncheckedCreateInput = { - teamId: string - userId: string - isLead?: boolean - assignedAt?: Date | string -} - -export type TeamMemberUpdateInput = { - isLead?: Prisma.BoolFieldUpdateOperationsInput | boolean - assignedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - team?: Prisma.TeamUpdateOneRequiredWithoutMembersNestedInput - user?: Prisma.UserUpdateOneRequiredWithoutTeamsNestedInput -} - -export type TeamMemberUncheckedUpdateInput = { - teamId?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - isLead?: Prisma.BoolFieldUpdateOperationsInput | boolean - assignedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TeamMemberCreateManyInput = { - teamId: string - userId: string - isLead?: boolean - assignedAt?: Date | string -} - -export type TeamMemberUpdateManyMutationInput = { - isLead?: Prisma.BoolFieldUpdateOperationsInput | boolean - assignedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TeamMemberUncheckedUpdateManyInput = { - teamId?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - isLead?: Prisma.BoolFieldUpdateOperationsInput | boolean - assignedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TeamMemberListRelationFilter = { - every?: Prisma.TeamMemberWhereInput - some?: Prisma.TeamMemberWhereInput - none?: Prisma.TeamMemberWhereInput -} - -export type TeamMemberOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type TeamMemberTeamIdUserIdCompoundUniqueInput = { - teamId: string - userId: string -} - -export type TeamMemberCountOrderByAggregateInput = { - teamId?: Prisma.SortOrder - userId?: Prisma.SortOrder - isLead?: Prisma.SortOrder - assignedAt?: Prisma.SortOrder -} - -export type TeamMemberMaxOrderByAggregateInput = { - teamId?: Prisma.SortOrder - userId?: Prisma.SortOrder - isLead?: Prisma.SortOrder - assignedAt?: Prisma.SortOrder -} - -export type TeamMemberMinOrderByAggregateInput = { - teamId?: Prisma.SortOrder - userId?: Prisma.SortOrder - isLead?: Prisma.SortOrder - assignedAt?: Prisma.SortOrder -} - -export type TeamMemberCreateNestedManyWithoutTeamInput = { - create?: Prisma.XOR | Prisma.TeamMemberCreateWithoutTeamInput[] | Prisma.TeamMemberUncheckedCreateWithoutTeamInput[] - connectOrCreate?: Prisma.TeamMemberCreateOrConnectWithoutTeamInput | Prisma.TeamMemberCreateOrConnectWithoutTeamInput[] - createMany?: Prisma.TeamMemberCreateManyTeamInputEnvelope - connect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] -} - -export type TeamMemberUncheckedCreateNestedManyWithoutTeamInput = { - create?: Prisma.XOR | Prisma.TeamMemberCreateWithoutTeamInput[] | Prisma.TeamMemberUncheckedCreateWithoutTeamInput[] - connectOrCreate?: Prisma.TeamMemberCreateOrConnectWithoutTeamInput | Prisma.TeamMemberCreateOrConnectWithoutTeamInput[] - createMany?: Prisma.TeamMemberCreateManyTeamInputEnvelope - connect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] -} - -export type TeamMemberUpdateManyWithoutTeamNestedInput = { - create?: Prisma.XOR | Prisma.TeamMemberCreateWithoutTeamInput[] | Prisma.TeamMemberUncheckedCreateWithoutTeamInput[] - connectOrCreate?: Prisma.TeamMemberCreateOrConnectWithoutTeamInput | Prisma.TeamMemberCreateOrConnectWithoutTeamInput[] - upsert?: Prisma.TeamMemberUpsertWithWhereUniqueWithoutTeamInput | Prisma.TeamMemberUpsertWithWhereUniqueWithoutTeamInput[] - createMany?: Prisma.TeamMemberCreateManyTeamInputEnvelope - set?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] - disconnect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] - delete?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] - connect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] - update?: Prisma.TeamMemberUpdateWithWhereUniqueWithoutTeamInput | Prisma.TeamMemberUpdateWithWhereUniqueWithoutTeamInput[] - updateMany?: Prisma.TeamMemberUpdateManyWithWhereWithoutTeamInput | Prisma.TeamMemberUpdateManyWithWhereWithoutTeamInput[] - deleteMany?: Prisma.TeamMemberScalarWhereInput | Prisma.TeamMemberScalarWhereInput[] -} - -export type TeamMemberUncheckedUpdateManyWithoutTeamNestedInput = { - create?: Prisma.XOR | Prisma.TeamMemberCreateWithoutTeamInput[] | Prisma.TeamMemberUncheckedCreateWithoutTeamInput[] - connectOrCreate?: Prisma.TeamMemberCreateOrConnectWithoutTeamInput | Prisma.TeamMemberCreateOrConnectWithoutTeamInput[] - upsert?: Prisma.TeamMemberUpsertWithWhereUniqueWithoutTeamInput | Prisma.TeamMemberUpsertWithWhereUniqueWithoutTeamInput[] - createMany?: Prisma.TeamMemberCreateManyTeamInputEnvelope - set?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] - disconnect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] - delete?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] - connect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] - update?: Prisma.TeamMemberUpdateWithWhereUniqueWithoutTeamInput | Prisma.TeamMemberUpdateWithWhereUniqueWithoutTeamInput[] - updateMany?: Prisma.TeamMemberUpdateManyWithWhereWithoutTeamInput | Prisma.TeamMemberUpdateManyWithWhereWithoutTeamInput[] - deleteMany?: Prisma.TeamMemberScalarWhereInput | Prisma.TeamMemberScalarWhereInput[] -} - -export type BoolFieldUpdateOperationsInput = { - set?: boolean -} - -export type TeamMemberCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.TeamMemberCreateWithoutUserInput[] | Prisma.TeamMemberUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.TeamMemberCreateOrConnectWithoutUserInput | Prisma.TeamMemberCreateOrConnectWithoutUserInput[] - createMany?: Prisma.TeamMemberCreateManyUserInputEnvelope - connect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] -} - -export type TeamMemberUncheckedCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.TeamMemberCreateWithoutUserInput[] | Prisma.TeamMemberUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.TeamMemberCreateOrConnectWithoutUserInput | Prisma.TeamMemberCreateOrConnectWithoutUserInput[] - createMany?: Prisma.TeamMemberCreateManyUserInputEnvelope - connect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] -} - -export type TeamMemberUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.TeamMemberCreateWithoutUserInput[] | Prisma.TeamMemberUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.TeamMemberCreateOrConnectWithoutUserInput | Prisma.TeamMemberCreateOrConnectWithoutUserInput[] - upsert?: Prisma.TeamMemberUpsertWithWhereUniqueWithoutUserInput | Prisma.TeamMemberUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.TeamMemberCreateManyUserInputEnvelope - set?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] - disconnect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] - delete?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] - connect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] - update?: Prisma.TeamMemberUpdateWithWhereUniqueWithoutUserInput | Prisma.TeamMemberUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.TeamMemberUpdateManyWithWhereWithoutUserInput | Prisma.TeamMemberUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.TeamMemberScalarWhereInput | Prisma.TeamMemberScalarWhereInput[] -} - -export type TeamMemberUncheckedUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.TeamMemberCreateWithoutUserInput[] | Prisma.TeamMemberUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.TeamMemberCreateOrConnectWithoutUserInput | Prisma.TeamMemberCreateOrConnectWithoutUserInput[] - upsert?: Prisma.TeamMemberUpsertWithWhereUniqueWithoutUserInput | Prisma.TeamMemberUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.TeamMemberCreateManyUserInputEnvelope - set?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] - disconnect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] - delete?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] - connect?: Prisma.TeamMemberWhereUniqueInput | Prisma.TeamMemberWhereUniqueInput[] - update?: Prisma.TeamMemberUpdateWithWhereUniqueWithoutUserInput | Prisma.TeamMemberUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.TeamMemberUpdateManyWithWhereWithoutUserInput | Prisma.TeamMemberUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.TeamMemberScalarWhereInput | Prisma.TeamMemberScalarWhereInput[] -} - -export type TeamMemberCreateWithoutTeamInput = { - isLead?: boolean - assignedAt?: Date | string - user: Prisma.UserCreateNestedOneWithoutTeamsInput -} - -export type TeamMemberUncheckedCreateWithoutTeamInput = { - userId: string - isLead?: boolean - assignedAt?: Date | string -} - -export type TeamMemberCreateOrConnectWithoutTeamInput = { - where: Prisma.TeamMemberWhereUniqueInput - create: Prisma.XOR -} - -export type TeamMemberCreateManyTeamInputEnvelope = { - data: Prisma.TeamMemberCreateManyTeamInput | Prisma.TeamMemberCreateManyTeamInput[] -} - -export type TeamMemberUpsertWithWhereUniqueWithoutTeamInput = { - where: Prisma.TeamMemberWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type TeamMemberUpdateWithWhereUniqueWithoutTeamInput = { - where: Prisma.TeamMemberWhereUniqueInput - data: Prisma.XOR -} - -export type TeamMemberUpdateManyWithWhereWithoutTeamInput = { - where: Prisma.TeamMemberScalarWhereInput - data: Prisma.XOR -} - -export type TeamMemberScalarWhereInput = { - AND?: Prisma.TeamMemberScalarWhereInput | Prisma.TeamMemberScalarWhereInput[] - OR?: Prisma.TeamMemberScalarWhereInput[] - NOT?: Prisma.TeamMemberScalarWhereInput | Prisma.TeamMemberScalarWhereInput[] - teamId?: Prisma.StringFilter<"TeamMember"> | string - userId?: Prisma.StringFilter<"TeamMember"> | string - isLead?: Prisma.BoolFilter<"TeamMember"> | boolean - assignedAt?: Prisma.DateTimeFilter<"TeamMember"> | Date | string -} - -export type TeamMemberCreateWithoutUserInput = { - isLead?: boolean - assignedAt?: Date | string - team: Prisma.TeamCreateNestedOneWithoutMembersInput -} - -export type TeamMemberUncheckedCreateWithoutUserInput = { - teamId: string - isLead?: boolean - assignedAt?: Date | string -} - -export type TeamMemberCreateOrConnectWithoutUserInput = { - where: Prisma.TeamMemberWhereUniqueInput - create: Prisma.XOR -} - -export type TeamMemberCreateManyUserInputEnvelope = { - data: Prisma.TeamMemberCreateManyUserInput | Prisma.TeamMemberCreateManyUserInput[] -} - -export type TeamMemberUpsertWithWhereUniqueWithoutUserInput = { - where: Prisma.TeamMemberWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type TeamMemberUpdateWithWhereUniqueWithoutUserInput = { - where: Prisma.TeamMemberWhereUniqueInput - data: Prisma.XOR -} - -export type TeamMemberUpdateManyWithWhereWithoutUserInput = { - where: Prisma.TeamMemberScalarWhereInput - data: Prisma.XOR -} - -export type TeamMemberCreateManyTeamInput = { - userId: string - isLead?: boolean - assignedAt?: Date | string -} - -export type TeamMemberUpdateWithoutTeamInput = { - isLead?: Prisma.BoolFieldUpdateOperationsInput | boolean - assignedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - user?: Prisma.UserUpdateOneRequiredWithoutTeamsNestedInput -} - -export type TeamMemberUncheckedUpdateWithoutTeamInput = { - userId?: Prisma.StringFieldUpdateOperationsInput | string - isLead?: Prisma.BoolFieldUpdateOperationsInput | boolean - assignedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TeamMemberUncheckedUpdateManyWithoutTeamInput = { - userId?: Prisma.StringFieldUpdateOperationsInput | string - isLead?: Prisma.BoolFieldUpdateOperationsInput | boolean - assignedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TeamMemberCreateManyUserInput = { - teamId: string - isLead?: boolean - assignedAt?: Date | string -} - -export type TeamMemberUpdateWithoutUserInput = { - isLead?: Prisma.BoolFieldUpdateOperationsInput | boolean - assignedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - team?: Prisma.TeamUpdateOneRequiredWithoutMembersNestedInput -} - -export type TeamMemberUncheckedUpdateWithoutUserInput = { - teamId?: Prisma.StringFieldUpdateOperationsInput | string - isLead?: Prisma.BoolFieldUpdateOperationsInput | boolean - assignedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TeamMemberUncheckedUpdateManyWithoutUserInput = { - teamId?: Prisma.StringFieldUpdateOperationsInput | string - isLead?: Prisma.BoolFieldUpdateOperationsInput | boolean - assignedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - - - -export type TeamMemberSelect = runtime.Types.Extensions.GetSelect<{ - teamId?: boolean - userId?: boolean - isLead?: boolean - assignedAt?: boolean - team?: boolean | Prisma.TeamDefaultArgs - user?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["teamMember"]> - -export type TeamMemberSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - teamId?: boolean - userId?: boolean - isLead?: boolean - assignedAt?: boolean - team?: boolean | Prisma.TeamDefaultArgs - user?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["teamMember"]> - -export type TeamMemberSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - teamId?: boolean - userId?: boolean - isLead?: boolean - assignedAt?: boolean - team?: boolean | Prisma.TeamDefaultArgs - user?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["teamMember"]> - -export type TeamMemberSelectScalar = { - teamId?: boolean - userId?: boolean - isLead?: boolean - assignedAt?: boolean -} - -export type TeamMemberOmit = runtime.Types.Extensions.GetOmit<"teamId" | "userId" | "isLead" | "assignedAt", ExtArgs["result"]["teamMember"]> -export type TeamMemberInclude = { - team?: boolean | Prisma.TeamDefaultArgs - user?: boolean | Prisma.UserDefaultArgs -} -export type TeamMemberIncludeCreateManyAndReturn = { - team?: boolean | Prisma.TeamDefaultArgs - user?: boolean | Prisma.UserDefaultArgs -} -export type TeamMemberIncludeUpdateManyAndReturn = { - team?: boolean | Prisma.TeamDefaultArgs - user?: boolean | Prisma.UserDefaultArgs -} - -export type $TeamMemberPayload = { - name: "TeamMember" - objects: { - team: Prisma.$TeamPayload - user: Prisma.$UserPayload - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - teamId: string - userId: string - isLead: boolean - assignedAt: Date - }, ExtArgs["result"]["teamMember"]> - composites: {} -} - -export type TeamMemberGetPayload = runtime.Types.Result.GetResult - -export type TeamMemberCountArgs = - Omit & { - select?: TeamMemberCountAggregateInputType | true - } - -export interface TeamMemberDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['TeamMember'], meta: { name: 'TeamMember' } } - /** - * Find zero or one TeamMember that matches the filter. - * @param {TeamMemberFindUniqueArgs} args - Arguments to find a TeamMember - * @example - * // Get one TeamMember - * const teamMember = await prisma.teamMember.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TeamMemberClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one TeamMember that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {TeamMemberFindUniqueOrThrowArgs} args - Arguments to find a TeamMember - * @example - * // Get one TeamMember - * const teamMember = await prisma.teamMember.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TeamMemberClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first TeamMember that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TeamMemberFindFirstArgs} args - Arguments to find a TeamMember - * @example - * // Get one TeamMember - * const teamMember = await prisma.teamMember.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TeamMemberClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first TeamMember that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TeamMemberFindFirstOrThrowArgs} args - Arguments to find a TeamMember - * @example - * // Get one TeamMember - * const teamMember = await prisma.teamMember.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TeamMemberClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more TeamMembers that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TeamMemberFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all TeamMembers - * const teamMembers = await prisma.teamMember.findMany() - * - * // Get first 10 TeamMembers - * const teamMembers = await prisma.teamMember.findMany({ take: 10 }) - * - * // Only select the `teamId` - * const teamMemberWithTeamIdOnly = await prisma.teamMember.findMany({ select: { teamId: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a TeamMember. - * @param {TeamMemberCreateArgs} args - Arguments to create a TeamMember. - * @example - * // Create one TeamMember - * const TeamMember = await prisma.teamMember.create({ - * data: { - * // ... data to create a TeamMember - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__TeamMemberClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many TeamMembers. - * @param {TeamMemberCreateManyArgs} args - Arguments to create many TeamMembers. - * @example - * // Create many TeamMembers - * const teamMember = await prisma.teamMember.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many TeamMembers and returns the data saved in the database. - * @param {TeamMemberCreateManyAndReturnArgs} args - Arguments to create many TeamMembers. - * @example - * // Create many TeamMembers - * const teamMember = await prisma.teamMember.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many TeamMembers and only return the `teamId` - * const teamMemberWithTeamIdOnly = await prisma.teamMember.createManyAndReturn({ - * select: { teamId: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a TeamMember. - * @param {TeamMemberDeleteArgs} args - Arguments to delete one TeamMember. - * @example - * // Delete one TeamMember - * const TeamMember = await prisma.teamMember.delete({ - * where: { - * // ... filter to delete one TeamMember - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__TeamMemberClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one TeamMember. - * @param {TeamMemberUpdateArgs} args - Arguments to update one TeamMember. - * @example - * // Update one TeamMember - * const teamMember = await prisma.teamMember.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__TeamMemberClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more TeamMembers. - * @param {TeamMemberDeleteManyArgs} args - Arguments to filter TeamMembers to delete. - * @example - * // Delete a few TeamMembers - * const { count } = await prisma.teamMember.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more TeamMembers. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TeamMemberUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many TeamMembers - * const teamMember = await prisma.teamMember.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more TeamMembers and returns the data updated in the database. - * @param {TeamMemberUpdateManyAndReturnArgs} args - Arguments to update many TeamMembers. - * @example - * // Update many TeamMembers - * const teamMember = await prisma.teamMember.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more TeamMembers and only return the `teamId` - * const teamMemberWithTeamIdOnly = await prisma.teamMember.updateManyAndReturn({ - * select: { teamId: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one TeamMember. - * @param {TeamMemberUpsertArgs} args - Arguments to update or create a TeamMember. - * @example - * // Update or create a TeamMember - * const teamMember = await prisma.teamMember.upsert({ - * create: { - * // ... data to create a TeamMember - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the TeamMember we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TeamMemberClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of TeamMembers. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TeamMemberCountArgs} args - Arguments to filter TeamMembers to count. - * @example - * // Count the number of TeamMembers - * const count = await prisma.teamMember.count({ - * where: { - * // ... the filter for the TeamMembers we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a TeamMember. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TeamMemberAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by TeamMember. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TeamMemberGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends TeamMemberGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: TeamMemberGroupByArgs['orderBy'] } - : { orderBy?: TeamMemberGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetTeamMemberGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the TeamMember model - */ -readonly fields: TeamMemberFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for TeamMember. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__TeamMemberClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - team = {}>(args?: Prisma.Subset>): Prisma.Prisma__TeamClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the TeamMember model - */ -export interface TeamMemberFieldRefs { - readonly teamId: Prisma.FieldRef<"TeamMember", 'String'> - readonly userId: Prisma.FieldRef<"TeamMember", 'String'> - readonly isLead: Prisma.FieldRef<"TeamMember", 'Boolean'> - readonly assignedAt: Prisma.FieldRef<"TeamMember", 'DateTime'> -} - - -// Custom InputTypes -/** - * TeamMember findUnique - */ -export type TeamMemberFindUniqueArgs = { - /** - * Select specific fields to fetch from the TeamMember - */ - select?: Prisma.TeamMemberSelect | null - /** - * Omit specific fields from the TeamMember - */ - omit?: Prisma.TeamMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamMemberInclude | null - /** - * Filter, which TeamMember to fetch. - */ - where: Prisma.TeamMemberWhereUniqueInput -} - -/** - * TeamMember findUniqueOrThrow - */ -export type TeamMemberFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the TeamMember - */ - select?: Prisma.TeamMemberSelect | null - /** - * Omit specific fields from the TeamMember - */ - omit?: Prisma.TeamMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamMemberInclude | null - /** - * Filter, which TeamMember to fetch. - */ - where: Prisma.TeamMemberWhereUniqueInput -} - -/** - * TeamMember findFirst - */ -export type TeamMemberFindFirstArgs = { - /** - * Select specific fields to fetch from the TeamMember - */ - select?: Prisma.TeamMemberSelect | null - /** - * Omit specific fields from the TeamMember - */ - omit?: Prisma.TeamMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamMemberInclude | null - /** - * Filter, which TeamMember to fetch. - */ - where?: Prisma.TeamMemberWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of TeamMembers to fetch. - */ - orderBy?: Prisma.TeamMemberOrderByWithRelationInput | Prisma.TeamMemberOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for TeamMembers. - */ - cursor?: Prisma.TeamMemberWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` TeamMembers from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` TeamMembers. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of TeamMembers. - */ - distinct?: Prisma.TeamMemberScalarFieldEnum | Prisma.TeamMemberScalarFieldEnum[] -} - -/** - * TeamMember findFirstOrThrow - */ -export type TeamMemberFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the TeamMember - */ - select?: Prisma.TeamMemberSelect | null - /** - * Omit specific fields from the TeamMember - */ - omit?: Prisma.TeamMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamMemberInclude | null - /** - * Filter, which TeamMember to fetch. - */ - where?: Prisma.TeamMemberWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of TeamMembers to fetch. - */ - orderBy?: Prisma.TeamMemberOrderByWithRelationInput | Prisma.TeamMemberOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for TeamMembers. - */ - cursor?: Prisma.TeamMemberWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` TeamMembers from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` TeamMembers. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of TeamMembers. - */ - distinct?: Prisma.TeamMemberScalarFieldEnum | Prisma.TeamMemberScalarFieldEnum[] -} - -/** - * TeamMember findMany - */ -export type TeamMemberFindManyArgs = { - /** - * Select specific fields to fetch from the TeamMember - */ - select?: Prisma.TeamMemberSelect | null - /** - * Omit specific fields from the TeamMember - */ - omit?: Prisma.TeamMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamMemberInclude | null - /** - * Filter, which TeamMembers to fetch. - */ - where?: Prisma.TeamMemberWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of TeamMembers to fetch. - */ - orderBy?: Prisma.TeamMemberOrderByWithRelationInput | Prisma.TeamMemberOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing TeamMembers. - */ - cursor?: Prisma.TeamMemberWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` TeamMembers from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` TeamMembers. - */ - skip?: number - distinct?: Prisma.TeamMemberScalarFieldEnum | Prisma.TeamMemberScalarFieldEnum[] -} - -/** - * TeamMember create - */ -export type TeamMemberCreateArgs = { - /** - * Select specific fields to fetch from the TeamMember - */ - select?: Prisma.TeamMemberSelect | null - /** - * Omit specific fields from the TeamMember - */ - omit?: Prisma.TeamMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamMemberInclude | null - /** - * The data needed to create a TeamMember. - */ - data: Prisma.XOR -} - -/** - * TeamMember createMany - */ -export type TeamMemberCreateManyArgs = { - /** - * The data used to create many TeamMembers. - */ - data: Prisma.TeamMemberCreateManyInput | Prisma.TeamMemberCreateManyInput[] -} - -/** - * TeamMember createManyAndReturn - */ -export type TeamMemberCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the TeamMember - */ - select?: Prisma.TeamMemberSelectCreateManyAndReturn | null - /** - * Omit specific fields from the TeamMember - */ - omit?: Prisma.TeamMemberOmit | null - /** - * The data used to create many TeamMembers. - */ - data: Prisma.TeamMemberCreateManyInput | Prisma.TeamMemberCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamMemberIncludeCreateManyAndReturn | null -} - -/** - * TeamMember update - */ -export type TeamMemberUpdateArgs = { - /** - * Select specific fields to fetch from the TeamMember - */ - select?: Prisma.TeamMemberSelect | null - /** - * Omit specific fields from the TeamMember - */ - omit?: Prisma.TeamMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamMemberInclude | null - /** - * The data needed to update a TeamMember. - */ - data: Prisma.XOR - /** - * Choose, which TeamMember to update. - */ - where: Prisma.TeamMemberWhereUniqueInput -} - -/** - * TeamMember updateMany - */ -export type TeamMemberUpdateManyArgs = { - /** - * The data used to update TeamMembers. - */ - data: Prisma.XOR - /** - * Filter which TeamMembers to update - */ - where?: Prisma.TeamMemberWhereInput - /** - * Limit how many TeamMembers to update. - */ - limit?: number -} - -/** - * TeamMember updateManyAndReturn - */ -export type TeamMemberUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the TeamMember - */ - select?: Prisma.TeamMemberSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the TeamMember - */ - omit?: Prisma.TeamMemberOmit | null - /** - * The data used to update TeamMembers. - */ - data: Prisma.XOR - /** - * Filter which TeamMembers to update - */ - where?: Prisma.TeamMemberWhereInput - /** - * Limit how many TeamMembers to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamMemberIncludeUpdateManyAndReturn | null -} - -/** - * TeamMember upsert - */ -export type TeamMemberUpsertArgs = { - /** - * Select specific fields to fetch from the TeamMember - */ - select?: Prisma.TeamMemberSelect | null - /** - * Omit specific fields from the TeamMember - */ - omit?: Prisma.TeamMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamMemberInclude | null - /** - * The filter to search for the TeamMember to update in case it exists. - */ - where: Prisma.TeamMemberWhereUniqueInput - /** - * In case the TeamMember found by the `where` argument doesn't exist, create a new TeamMember with this data. - */ - create: Prisma.XOR - /** - * In case the TeamMember was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * TeamMember delete - */ -export type TeamMemberDeleteArgs = { - /** - * Select specific fields to fetch from the TeamMember - */ - select?: Prisma.TeamMemberSelect | null - /** - * Omit specific fields from the TeamMember - */ - omit?: Prisma.TeamMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamMemberInclude | null - /** - * Filter which TeamMember to delete. - */ - where: Prisma.TeamMemberWhereUniqueInput -} - -/** - * TeamMember deleteMany - */ -export type TeamMemberDeleteManyArgs = { - /** - * Filter which TeamMembers to delete - */ - where?: Prisma.TeamMemberWhereInput - /** - * Limit how many TeamMembers to delete. - */ - limit?: number -} - -/** - * TeamMember without action - */ -export type TeamMemberDefaultArgs = { - /** - * Select specific fields to fetch from the TeamMember - */ - select?: Prisma.TeamMemberSelect | null - /** - * Omit specific fields from the TeamMember - */ - omit?: Prisma.TeamMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamMemberInclude | null -} diff --git a/src/generated/prisma/models/Ticket.ts b/src/generated/prisma/models/Ticket.ts deleted file mode 100644 index e7b6ffa..0000000 --- a/src/generated/prisma/models/Ticket.ts +++ /dev/null @@ -1,3726 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `Ticket` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model Ticket - * - */ -export type TicketModel = runtime.Types.Result.DefaultSelection - -export type AggregateTicket = { - _count: TicketCountAggregateOutputType | null - _avg: TicketAvgAggregateOutputType | null - _sum: TicketSumAggregateOutputType | null - _min: TicketMinAggregateOutputType | null - _max: TicketMaxAggregateOutputType | null -} - -export type TicketAvgAggregateOutputType = { - reference: number | null - slaPausedMs: number | null -} - -export type TicketSumAggregateOutputType = { - reference: number | null - slaPausedMs: number | null -} - -export type TicketMinAggregateOutputType = { - id: string | null - tenantId: string | null - reference: number | null - subject: string | null - summary: string | null - status: $Enums.TicketStatus | null - priority: $Enums.TicketPriority | null - channel: $Enums.TicketChannel | null - queueId: string | null - requesterId: string | null - assigneeId: string | null - slaPolicyId: string | null - companyId: string | null - slaResponseDueAt: Date | null - slaSolutionDueAt: Date | null - slaResponseStatus: string | null - slaSolutionStatus: string | null - slaPausedAt: Date | null - slaPausedBy: string | null - slaPausedMs: number | null - dueAt: Date | null - firstResponseAt: Date | null - resolvedAt: Date | null - closedAt: Date | null - createdAt: Date | null - updatedAt: Date | null -} - -export type TicketMaxAggregateOutputType = { - id: string | null - tenantId: string | null - reference: number | null - subject: string | null - summary: string | null - status: $Enums.TicketStatus | null - priority: $Enums.TicketPriority | null - channel: $Enums.TicketChannel | null - queueId: string | null - requesterId: string | null - assigneeId: string | null - slaPolicyId: string | null - companyId: string | null - slaResponseDueAt: Date | null - slaSolutionDueAt: Date | null - slaResponseStatus: string | null - slaSolutionStatus: string | null - slaPausedAt: Date | null - slaPausedBy: string | null - slaPausedMs: number | null - dueAt: Date | null - firstResponseAt: Date | null - resolvedAt: Date | null - closedAt: Date | null - createdAt: Date | null - updatedAt: Date | null -} - -export type TicketCountAggregateOutputType = { - id: number - tenantId: number - reference: number - subject: number - summary: number - status: number - priority: number - channel: number - queueId: number - requesterId: number - assigneeId: number - slaPolicyId: number - companyId: number - slaSnapshot: number - slaResponseDueAt: number - slaSolutionDueAt: number - slaResponseStatus: number - slaSolutionStatus: number - slaPausedAt: number - slaPausedBy: number - slaPausedMs: number - dueAt: number - firstResponseAt: number - resolvedAt: number - closedAt: number - createdAt: number - updatedAt: number - _all: number -} - - -export type TicketAvgAggregateInputType = { - reference?: true - slaPausedMs?: true -} - -export type TicketSumAggregateInputType = { - reference?: true - slaPausedMs?: true -} - -export type TicketMinAggregateInputType = { - id?: true - tenantId?: true - reference?: true - subject?: true - summary?: true - status?: true - priority?: true - channel?: true - queueId?: true - requesterId?: true - assigneeId?: true - slaPolicyId?: true - companyId?: true - slaResponseDueAt?: true - slaSolutionDueAt?: true - slaResponseStatus?: true - slaSolutionStatus?: true - slaPausedAt?: true - slaPausedBy?: true - slaPausedMs?: true - dueAt?: true - firstResponseAt?: true - resolvedAt?: true - closedAt?: true - createdAt?: true - updatedAt?: true -} - -export type TicketMaxAggregateInputType = { - id?: true - tenantId?: true - reference?: true - subject?: true - summary?: true - status?: true - priority?: true - channel?: true - queueId?: true - requesterId?: true - assigneeId?: true - slaPolicyId?: true - companyId?: true - slaResponseDueAt?: true - slaSolutionDueAt?: true - slaResponseStatus?: true - slaSolutionStatus?: true - slaPausedAt?: true - slaPausedBy?: true - slaPausedMs?: true - dueAt?: true - firstResponseAt?: true - resolvedAt?: true - closedAt?: true - createdAt?: true - updatedAt?: true -} - -export type TicketCountAggregateInputType = { - id?: true - tenantId?: true - reference?: true - subject?: true - summary?: true - status?: true - priority?: true - channel?: true - queueId?: true - requesterId?: true - assigneeId?: true - slaPolicyId?: true - companyId?: true - slaSnapshot?: true - slaResponseDueAt?: true - slaSolutionDueAt?: true - slaResponseStatus?: true - slaSolutionStatus?: true - slaPausedAt?: true - slaPausedBy?: true - slaPausedMs?: true - dueAt?: true - firstResponseAt?: true - resolvedAt?: true - closedAt?: true - createdAt?: true - updatedAt?: true - _all?: true -} - -export type TicketAggregateArgs = { - /** - * Filter which Ticket to aggregate. - */ - where?: Prisma.TicketWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Tickets to fetch. - */ - orderBy?: Prisma.TicketOrderByWithRelationInput | Prisma.TicketOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.TicketWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Tickets from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Tickets. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Tickets - **/ - _count?: true | TicketCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: TicketAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: TicketSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: TicketMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: TicketMaxAggregateInputType -} - -export type GetTicketAggregateType = { - [P in keyof T & keyof AggregateTicket]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type TicketGroupByArgs = { - where?: Prisma.TicketWhereInput - orderBy?: Prisma.TicketOrderByWithAggregationInput | Prisma.TicketOrderByWithAggregationInput[] - by: Prisma.TicketScalarFieldEnum[] | Prisma.TicketScalarFieldEnum - having?: Prisma.TicketScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: TicketCountAggregateInputType | true - _avg?: TicketAvgAggregateInputType - _sum?: TicketSumAggregateInputType - _min?: TicketMinAggregateInputType - _max?: TicketMaxAggregateInputType -} - -export type TicketGroupByOutputType = { - id: string - tenantId: string - reference: number - subject: string - summary: string | null - status: $Enums.TicketStatus - priority: $Enums.TicketPriority - channel: $Enums.TicketChannel - queueId: string | null - requesterId: string - assigneeId: string | null - slaPolicyId: string | null - companyId: string | null - slaSnapshot: runtime.JsonValue | null - slaResponseDueAt: Date | null - slaSolutionDueAt: Date | null - slaResponseStatus: string | null - slaSolutionStatus: string | null - slaPausedAt: Date | null - slaPausedBy: string | null - slaPausedMs: number | null - dueAt: Date | null - firstResponseAt: Date | null - resolvedAt: Date | null - closedAt: Date | null - createdAt: Date - updatedAt: Date - _count: TicketCountAggregateOutputType | null - _avg: TicketAvgAggregateOutputType | null - _sum: TicketSumAggregateOutputType | null - _min: TicketMinAggregateOutputType | null - _max: TicketMaxAggregateOutputType | null -} - -type GetTicketGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof TicketGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type TicketWhereInput = { - AND?: Prisma.TicketWhereInput | Prisma.TicketWhereInput[] - OR?: Prisma.TicketWhereInput[] - NOT?: Prisma.TicketWhereInput | Prisma.TicketWhereInput[] - id?: Prisma.StringFilter<"Ticket"> | string - tenantId?: Prisma.StringFilter<"Ticket"> | string - reference?: Prisma.IntFilter<"Ticket"> | number - subject?: Prisma.StringFilter<"Ticket"> | string - summary?: Prisma.StringNullableFilter<"Ticket"> | string | null - status?: Prisma.EnumTicketStatusFilter<"Ticket"> | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFilter<"Ticket"> | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFilter<"Ticket"> | $Enums.TicketChannel - queueId?: Prisma.StringNullableFilter<"Ticket"> | string | null - requesterId?: Prisma.StringFilter<"Ticket"> | string - assigneeId?: Prisma.StringNullableFilter<"Ticket"> | string | null - slaPolicyId?: Prisma.StringNullableFilter<"Ticket"> | string | null - companyId?: Prisma.StringNullableFilter<"Ticket"> | string | null - slaSnapshot?: Prisma.JsonNullableFilter<"Ticket"> - slaResponseDueAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - slaSolutionDueAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - slaResponseStatus?: Prisma.StringNullableFilter<"Ticket"> | string | null - slaSolutionStatus?: Prisma.StringNullableFilter<"Ticket"> | string | null - slaPausedAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - slaPausedBy?: Prisma.StringNullableFilter<"Ticket"> | string | null - slaPausedMs?: Prisma.IntNullableFilter<"Ticket"> | number | null - dueAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - firstResponseAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - resolvedAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - closedAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - createdAt?: Prisma.DateTimeFilter<"Ticket"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Ticket"> | Date | string - requester?: Prisma.XOR - assignee?: Prisma.XOR | null - queue?: Prisma.XOR | null - slaPolicy?: Prisma.XOR | null - company?: Prisma.XOR | null - events?: Prisma.TicketEventListRelationFilter - comments?: Prisma.TicketCommentListRelationFilter -} - -export type TicketOrderByWithRelationInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - reference?: Prisma.SortOrder - subject?: Prisma.SortOrder - summary?: Prisma.SortOrderInput | Prisma.SortOrder - status?: Prisma.SortOrder - priority?: Prisma.SortOrder - channel?: Prisma.SortOrder - queueId?: Prisma.SortOrderInput | Prisma.SortOrder - requesterId?: Prisma.SortOrder - assigneeId?: Prisma.SortOrderInput | Prisma.SortOrder - slaPolicyId?: Prisma.SortOrderInput | Prisma.SortOrder - companyId?: Prisma.SortOrderInput | Prisma.SortOrder - slaSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder - slaResponseDueAt?: Prisma.SortOrderInput | Prisma.SortOrder - slaSolutionDueAt?: Prisma.SortOrderInput | Prisma.SortOrder - slaResponseStatus?: Prisma.SortOrderInput | Prisma.SortOrder - slaSolutionStatus?: Prisma.SortOrderInput | Prisma.SortOrder - slaPausedAt?: Prisma.SortOrderInput | Prisma.SortOrder - slaPausedBy?: Prisma.SortOrderInput | Prisma.SortOrder - slaPausedMs?: Prisma.SortOrderInput | Prisma.SortOrder - dueAt?: Prisma.SortOrderInput | Prisma.SortOrder - firstResponseAt?: Prisma.SortOrderInput | Prisma.SortOrder - resolvedAt?: Prisma.SortOrderInput | Prisma.SortOrder - closedAt?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - requester?: Prisma.UserOrderByWithRelationInput - assignee?: Prisma.UserOrderByWithRelationInput - queue?: Prisma.QueueOrderByWithRelationInput - slaPolicy?: Prisma.SlaPolicyOrderByWithRelationInput - company?: Prisma.CompanyOrderByWithRelationInput - events?: Prisma.TicketEventOrderByRelationAggregateInput - comments?: Prisma.TicketCommentOrderByRelationAggregateInput -} - -export type TicketWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: Prisma.TicketWhereInput | Prisma.TicketWhereInput[] - OR?: Prisma.TicketWhereInput[] - NOT?: Prisma.TicketWhereInput | Prisma.TicketWhereInput[] - tenantId?: Prisma.StringFilter<"Ticket"> | string - reference?: Prisma.IntFilter<"Ticket"> | number - subject?: Prisma.StringFilter<"Ticket"> | string - summary?: Prisma.StringNullableFilter<"Ticket"> | string | null - status?: Prisma.EnumTicketStatusFilter<"Ticket"> | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFilter<"Ticket"> | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFilter<"Ticket"> | $Enums.TicketChannel - queueId?: Prisma.StringNullableFilter<"Ticket"> | string | null - requesterId?: Prisma.StringFilter<"Ticket"> | string - assigneeId?: Prisma.StringNullableFilter<"Ticket"> | string | null - slaPolicyId?: Prisma.StringNullableFilter<"Ticket"> | string | null - companyId?: Prisma.StringNullableFilter<"Ticket"> | string | null - slaSnapshot?: Prisma.JsonNullableFilter<"Ticket"> - slaResponseDueAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - slaSolutionDueAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - slaResponseStatus?: Prisma.StringNullableFilter<"Ticket"> | string | null - slaSolutionStatus?: Prisma.StringNullableFilter<"Ticket"> | string | null - slaPausedAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - slaPausedBy?: Prisma.StringNullableFilter<"Ticket"> | string | null - slaPausedMs?: Prisma.IntNullableFilter<"Ticket"> | number | null - dueAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - firstResponseAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - resolvedAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - closedAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - createdAt?: Prisma.DateTimeFilter<"Ticket"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Ticket"> | Date | string - requester?: Prisma.XOR - assignee?: Prisma.XOR | null - queue?: Prisma.XOR | null - slaPolicy?: Prisma.XOR | null - company?: Prisma.XOR | null - events?: Prisma.TicketEventListRelationFilter - comments?: Prisma.TicketCommentListRelationFilter -}, "id"> - -export type TicketOrderByWithAggregationInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - reference?: Prisma.SortOrder - subject?: Prisma.SortOrder - summary?: Prisma.SortOrderInput | Prisma.SortOrder - status?: Prisma.SortOrder - priority?: Prisma.SortOrder - channel?: Prisma.SortOrder - queueId?: Prisma.SortOrderInput | Prisma.SortOrder - requesterId?: Prisma.SortOrder - assigneeId?: Prisma.SortOrderInput | Prisma.SortOrder - slaPolicyId?: Prisma.SortOrderInput | Prisma.SortOrder - companyId?: Prisma.SortOrderInput | Prisma.SortOrder - slaSnapshot?: Prisma.SortOrderInput | Prisma.SortOrder - slaResponseDueAt?: Prisma.SortOrderInput | Prisma.SortOrder - slaSolutionDueAt?: Prisma.SortOrderInput | Prisma.SortOrder - slaResponseStatus?: Prisma.SortOrderInput | Prisma.SortOrder - slaSolutionStatus?: Prisma.SortOrderInput | Prisma.SortOrder - slaPausedAt?: Prisma.SortOrderInput | Prisma.SortOrder - slaPausedBy?: Prisma.SortOrderInput | Prisma.SortOrder - slaPausedMs?: Prisma.SortOrderInput | Prisma.SortOrder - dueAt?: Prisma.SortOrderInput | Prisma.SortOrder - firstResponseAt?: Prisma.SortOrderInput | Prisma.SortOrder - resolvedAt?: Prisma.SortOrderInput | Prisma.SortOrder - closedAt?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - _count?: Prisma.TicketCountOrderByAggregateInput - _avg?: Prisma.TicketAvgOrderByAggregateInput - _max?: Prisma.TicketMaxOrderByAggregateInput - _min?: Prisma.TicketMinOrderByAggregateInput - _sum?: Prisma.TicketSumOrderByAggregateInput -} - -export type TicketScalarWhereWithAggregatesInput = { - AND?: Prisma.TicketScalarWhereWithAggregatesInput | Prisma.TicketScalarWhereWithAggregatesInput[] - OR?: Prisma.TicketScalarWhereWithAggregatesInput[] - NOT?: Prisma.TicketScalarWhereWithAggregatesInput | Prisma.TicketScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"Ticket"> | string - tenantId?: Prisma.StringWithAggregatesFilter<"Ticket"> | string - reference?: Prisma.IntWithAggregatesFilter<"Ticket"> | number - subject?: Prisma.StringWithAggregatesFilter<"Ticket"> | string - summary?: Prisma.StringNullableWithAggregatesFilter<"Ticket"> | string | null - status?: Prisma.EnumTicketStatusWithAggregatesFilter<"Ticket"> | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityWithAggregatesFilter<"Ticket"> | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelWithAggregatesFilter<"Ticket"> | $Enums.TicketChannel - queueId?: Prisma.StringNullableWithAggregatesFilter<"Ticket"> | string | null - requesterId?: Prisma.StringWithAggregatesFilter<"Ticket"> | string - assigneeId?: Prisma.StringNullableWithAggregatesFilter<"Ticket"> | string | null - slaPolicyId?: Prisma.StringNullableWithAggregatesFilter<"Ticket"> | string | null - companyId?: Prisma.StringNullableWithAggregatesFilter<"Ticket"> | string | null - slaSnapshot?: Prisma.JsonNullableWithAggregatesFilter<"Ticket"> - slaResponseDueAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Ticket"> | Date | string | null - slaSolutionDueAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Ticket"> | Date | string | null - slaResponseStatus?: Prisma.StringNullableWithAggregatesFilter<"Ticket"> | string | null - slaSolutionStatus?: Prisma.StringNullableWithAggregatesFilter<"Ticket"> | string | null - slaPausedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Ticket"> | Date | string | null - slaPausedBy?: Prisma.StringNullableWithAggregatesFilter<"Ticket"> | string | null - slaPausedMs?: Prisma.IntNullableWithAggregatesFilter<"Ticket"> | number | null - dueAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Ticket"> | Date | string | null - firstResponseAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Ticket"> | Date | string | null - resolvedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Ticket"> | Date | string | null - closedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Ticket"> | Date | string | null - createdAt?: Prisma.DateTimeWithAggregatesFilter<"Ticket"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Ticket"> | Date | string -} - -export type TicketCreateInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - requester: Prisma.UserCreateNestedOneWithoutRequestedTicketsInput - assignee?: Prisma.UserCreateNestedOneWithoutAssignedTicketsInput - queue?: Prisma.QueueCreateNestedOneWithoutTicketsInput - slaPolicy?: Prisma.SlaPolicyCreateNestedOneWithoutTicketsInput - company?: Prisma.CompanyCreateNestedOneWithoutTicketsInput - events?: Prisma.TicketEventCreateNestedManyWithoutTicketInput - comments?: Prisma.TicketCommentCreateNestedManyWithoutTicketInput -} - -export type TicketUncheckedCreateInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - queueId?: string | null - requesterId: string - assigneeId?: string | null - slaPolicyId?: string | null - companyId?: string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - events?: Prisma.TicketEventUncheckedCreateNestedManyWithoutTicketInput - comments?: Prisma.TicketCommentUncheckedCreateNestedManyWithoutTicketInput -} - -export type TicketUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - requester?: Prisma.UserUpdateOneRequiredWithoutRequestedTicketsNestedInput - assignee?: Prisma.UserUpdateOneWithoutAssignedTicketsNestedInput - queue?: Prisma.QueueUpdateOneWithoutTicketsNestedInput - slaPolicy?: Prisma.SlaPolicyUpdateOneWithoutTicketsNestedInput - company?: Prisma.CompanyUpdateOneWithoutTicketsNestedInput - events?: Prisma.TicketEventUpdateManyWithoutTicketNestedInput - comments?: Prisma.TicketCommentUpdateManyWithoutTicketNestedInput -} - -export type TicketUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - queueId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - requesterId?: Prisma.StringFieldUpdateOperationsInput | string - assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPolicyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - events?: Prisma.TicketEventUncheckedUpdateManyWithoutTicketNestedInput - comments?: Prisma.TicketCommentUncheckedUpdateManyWithoutTicketNestedInput -} - -export type TicketCreateManyInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - queueId?: string | null - requesterId: string - assigneeId?: string | null - slaPolicyId?: string | null - companyId?: string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type TicketUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TicketUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - queueId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - requesterId?: Prisma.StringFieldUpdateOperationsInput | string - assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPolicyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TicketListRelationFilter = { - every?: Prisma.TicketWhereInput - some?: Prisma.TicketWhereInput - none?: Prisma.TicketWhereInput -} - -export type TicketOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type TicketCountOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - reference?: Prisma.SortOrder - subject?: Prisma.SortOrder - summary?: Prisma.SortOrder - status?: Prisma.SortOrder - priority?: Prisma.SortOrder - channel?: Prisma.SortOrder - queueId?: Prisma.SortOrder - requesterId?: Prisma.SortOrder - assigneeId?: Prisma.SortOrder - slaPolicyId?: Prisma.SortOrder - companyId?: Prisma.SortOrder - slaSnapshot?: Prisma.SortOrder - slaResponseDueAt?: Prisma.SortOrder - slaSolutionDueAt?: Prisma.SortOrder - slaResponseStatus?: Prisma.SortOrder - slaSolutionStatus?: Prisma.SortOrder - slaPausedAt?: Prisma.SortOrder - slaPausedBy?: Prisma.SortOrder - slaPausedMs?: Prisma.SortOrder - dueAt?: Prisma.SortOrder - firstResponseAt?: Prisma.SortOrder - resolvedAt?: Prisma.SortOrder - closedAt?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type TicketAvgOrderByAggregateInput = { - reference?: Prisma.SortOrder - slaPausedMs?: Prisma.SortOrder -} - -export type TicketMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - reference?: Prisma.SortOrder - subject?: Prisma.SortOrder - summary?: Prisma.SortOrder - status?: Prisma.SortOrder - priority?: Prisma.SortOrder - channel?: Prisma.SortOrder - queueId?: Prisma.SortOrder - requesterId?: Prisma.SortOrder - assigneeId?: Prisma.SortOrder - slaPolicyId?: Prisma.SortOrder - companyId?: Prisma.SortOrder - slaResponseDueAt?: Prisma.SortOrder - slaSolutionDueAt?: Prisma.SortOrder - slaResponseStatus?: Prisma.SortOrder - slaSolutionStatus?: Prisma.SortOrder - slaPausedAt?: Prisma.SortOrder - slaPausedBy?: Prisma.SortOrder - slaPausedMs?: Prisma.SortOrder - dueAt?: Prisma.SortOrder - firstResponseAt?: Prisma.SortOrder - resolvedAt?: Prisma.SortOrder - closedAt?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type TicketMinOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - reference?: Prisma.SortOrder - subject?: Prisma.SortOrder - summary?: Prisma.SortOrder - status?: Prisma.SortOrder - priority?: Prisma.SortOrder - channel?: Prisma.SortOrder - queueId?: Prisma.SortOrder - requesterId?: Prisma.SortOrder - assigneeId?: Prisma.SortOrder - slaPolicyId?: Prisma.SortOrder - companyId?: Prisma.SortOrder - slaResponseDueAt?: Prisma.SortOrder - slaSolutionDueAt?: Prisma.SortOrder - slaResponseStatus?: Prisma.SortOrder - slaSolutionStatus?: Prisma.SortOrder - slaPausedAt?: Prisma.SortOrder - slaPausedBy?: Prisma.SortOrder - slaPausedMs?: Prisma.SortOrder - dueAt?: Prisma.SortOrder - firstResponseAt?: Prisma.SortOrder - resolvedAt?: Prisma.SortOrder - closedAt?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type TicketSumOrderByAggregateInput = { - reference?: Prisma.SortOrder - slaPausedMs?: Prisma.SortOrder -} - -export type TicketScalarRelationFilter = { - is?: Prisma.TicketWhereInput - isNot?: Prisma.TicketWhereInput -} - -export type TicketCreateNestedManyWithoutCompanyInput = { - create?: Prisma.XOR | Prisma.TicketCreateWithoutCompanyInput[] | Prisma.TicketUncheckedCreateWithoutCompanyInput[] - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutCompanyInput | Prisma.TicketCreateOrConnectWithoutCompanyInput[] - createMany?: Prisma.TicketCreateManyCompanyInputEnvelope - connect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] -} - -export type TicketUncheckedCreateNestedManyWithoutCompanyInput = { - create?: Prisma.XOR | Prisma.TicketCreateWithoutCompanyInput[] | Prisma.TicketUncheckedCreateWithoutCompanyInput[] - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutCompanyInput | Prisma.TicketCreateOrConnectWithoutCompanyInput[] - createMany?: Prisma.TicketCreateManyCompanyInputEnvelope - connect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] -} - -export type TicketUpdateManyWithoutCompanyNestedInput = { - create?: Prisma.XOR | Prisma.TicketCreateWithoutCompanyInput[] | Prisma.TicketUncheckedCreateWithoutCompanyInput[] - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutCompanyInput | Prisma.TicketCreateOrConnectWithoutCompanyInput[] - upsert?: Prisma.TicketUpsertWithWhereUniqueWithoutCompanyInput | Prisma.TicketUpsertWithWhereUniqueWithoutCompanyInput[] - createMany?: Prisma.TicketCreateManyCompanyInputEnvelope - set?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - disconnect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - delete?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - connect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - update?: Prisma.TicketUpdateWithWhereUniqueWithoutCompanyInput | Prisma.TicketUpdateWithWhereUniqueWithoutCompanyInput[] - updateMany?: Prisma.TicketUpdateManyWithWhereWithoutCompanyInput | Prisma.TicketUpdateManyWithWhereWithoutCompanyInput[] - deleteMany?: Prisma.TicketScalarWhereInput | Prisma.TicketScalarWhereInput[] -} - -export type TicketUncheckedUpdateManyWithoutCompanyNestedInput = { - create?: Prisma.XOR | Prisma.TicketCreateWithoutCompanyInput[] | Prisma.TicketUncheckedCreateWithoutCompanyInput[] - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutCompanyInput | Prisma.TicketCreateOrConnectWithoutCompanyInput[] - upsert?: Prisma.TicketUpsertWithWhereUniqueWithoutCompanyInput | Prisma.TicketUpsertWithWhereUniqueWithoutCompanyInput[] - createMany?: Prisma.TicketCreateManyCompanyInputEnvelope - set?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - disconnect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - delete?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - connect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - update?: Prisma.TicketUpdateWithWhereUniqueWithoutCompanyInput | Prisma.TicketUpdateWithWhereUniqueWithoutCompanyInput[] - updateMany?: Prisma.TicketUpdateManyWithWhereWithoutCompanyInput | Prisma.TicketUpdateManyWithWhereWithoutCompanyInput[] - deleteMany?: Prisma.TicketScalarWhereInput | Prisma.TicketScalarWhereInput[] -} - -export type TicketCreateNestedManyWithoutRequesterInput = { - create?: Prisma.XOR | Prisma.TicketCreateWithoutRequesterInput[] | Prisma.TicketUncheckedCreateWithoutRequesterInput[] - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutRequesterInput | Prisma.TicketCreateOrConnectWithoutRequesterInput[] - createMany?: Prisma.TicketCreateManyRequesterInputEnvelope - connect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] -} - -export type TicketCreateNestedManyWithoutAssigneeInput = { - create?: Prisma.XOR | Prisma.TicketCreateWithoutAssigneeInput[] | Prisma.TicketUncheckedCreateWithoutAssigneeInput[] - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutAssigneeInput | Prisma.TicketCreateOrConnectWithoutAssigneeInput[] - createMany?: Prisma.TicketCreateManyAssigneeInputEnvelope - connect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] -} - -export type TicketUncheckedCreateNestedManyWithoutRequesterInput = { - create?: Prisma.XOR | Prisma.TicketCreateWithoutRequesterInput[] | Prisma.TicketUncheckedCreateWithoutRequesterInput[] - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutRequesterInput | Prisma.TicketCreateOrConnectWithoutRequesterInput[] - createMany?: Prisma.TicketCreateManyRequesterInputEnvelope - connect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] -} - -export type TicketUncheckedCreateNestedManyWithoutAssigneeInput = { - create?: Prisma.XOR | Prisma.TicketCreateWithoutAssigneeInput[] | Prisma.TicketUncheckedCreateWithoutAssigneeInput[] - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutAssigneeInput | Prisma.TicketCreateOrConnectWithoutAssigneeInput[] - createMany?: Prisma.TicketCreateManyAssigneeInputEnvelope - connect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] -} - -export type TicketUpdateManyWithoutRequesterNestedInput = { - create?: Prisma.XOR | Prisma.TicketCreateWithoutRequesterInput[] | Prisma.TicketUncheckedCreateWithoutRequesterInput[] - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutRequesterInput | Prisma.TicketCreateOrConnectWithoutRequesterInput[] - upsert?: Prisma.TicketUpsertWithWhereUniqueWithoutRequesterInput | Prisma.TicketUpsertWithWhereUniqueWithoutRequesterInput[] - createMany?: Prisma.TicketCreateManyRequesterInputEnvelope - set?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - disconnect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - delete?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - connect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - update?: Prisma.TicketUpdateWithWhereUniqueWithoutRequesterInput | Prisma.TicketUpdateWithWhereUniqueWithoutRequesterInput[] - updateMany?: Prisma.TicketUpdateManyWithWhereWithoutRequesterInput | Prisma.TicketUpdateManyWithWhereWithoutRequesterInput[] - deleteMany?: Prisma.TicketScalarWhereInput | Prisma.TicketScalarWhereInput[] -} - -export type TicketUpdateManyWithoutAssigneeNestedInput = { - create?: Prisma.XOR | Prisma.TicketCreateWithoutAssigneeInput[] | Prisma.TicketUncheckedCreateWithoutAssigneeInput[] - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutAssigneeInput | Prisma.TicketCreateOrConnectWithoutAssigneeInput[] - upsert?: Prisma.TicketUpsertWithWhereUniqueWithoutAssigneeInput | Prisma.TicketUpsertWithWhereUniqueWithoutAssigneeInput[] - createMany?: Prisma.TicketCreateManyAssigneeInputEnvelope - set?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - disconnect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - delete?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - connect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - update?: Prisma.TicketUpdateWithWhereUniqueWithoutAssigneeInput | Prisma.TicketUpdateWithWhereUniqueWithoutAssigneeInput[] - updateMany?: Prisma.TicketUpdateManyWithWhereWithoutAssigneeInput | Prisma.TicketUpdateManyWithWhereWithoutAssigneeInput[] - deleteMany?: Prisma.TicketScalarWhereInput | Prisma.TicketScalarWhereInput[] -} - -export type TicketUncheckedUpdateManyWithoutRequesterNestedInput = { - create?: Prisma.XOR | Prisma.TicketCreateWithoutRequesterInput[] | Prisma.TicketUncheckedCreateWithoutRequesterInput[] - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutRequesterInput | Prisma.TicketCreateOrConnectWithoutRequesterInput[] - upsert?: Prisma.TicketUpsertWithWhereUniqueWithoutRequesterInput | Prisma.TicketUpsertWithWhereUniqueWithoutRequesterInput[] - createMany?: Prisma.TicketCreateManyRequesterInputEnvelope - set?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - disconnect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - delete?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - connect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - update?: Prisma.TicketUpdateWithWhereUniqueWithoutRequesterInput | Prisma.TicketUpdateWithWhereUniqueWithoutRequesterInput[] - updateMany?: Prisma.TicketUpdateManyWithWhereWithoutRequesterInput | Prisma.TicketUpdateManyWithWhereWithoutRequesterInput[] - deleteMany?: Prisma.TicketScalarWhereInput | Prisma.TicketScalarWhereInput[] -} - -export type TicketUncheckedUpdateManyWithoutAssigneeNestedInput = { - create?: Prisma.XOR | Prisma.TicketCreateWithoutAssigneeInput[] | Prisma.TicketUncheckedCreateWithoutAssigneeInput[] - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutAssigneeInput | Prisma.TicketCreateOrConnectWithoutAssigneeInput[] - upsert?: Prisma.TicketUpsertWithWhereUniqueWithoutAssigneeInput | Prisma.TicketUpsertWithWhereUniqueWithoutAssigneeInput[] - createMany?: Prisma.TicketCreateManyAssigneeInputEnvelope - set?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - disconnect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - delete?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - connect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - update?: Prisma.TicketUpdateWithWhereUniqueWithoutAssigneeInput | Prisma.TicketUpdateWithWhereUniqueWithoutAssigneeInput[] - updateMany?: Prisma.TicketUpdateManyWithWhereWithoutAssigneeInput | Prisma.TicketUpdateManyWithWhereWithoutAssigneeInput[] - deleteMany?: Prisma.TicketScalarWhereInput | Prisma.TicketScalarWhereInput[] -} - -export type TicketCreateNestedManyWithoutQueueInput = { - create?: Prisma.XOR | Prisma.TicketCreateWithoutQueueInput[] | Prisma.TicketUncheckedCreateWithoutQueueInput[] - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutQueueInput | Prisma.TicketCreateOrConnectWithoutQueueInput[] - createMany?: Prisma.TicketCreateManyQueueInputEnvelope - connect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] -} - -export type TicketUncheckedCreateNestedManyWithoutQueueInput = { - create?: Prisma.XOR | Prisma.TicketCreateWithoutQueueInput[] | Prisma.TicketUncheckedCreateWithoutQueueInput[] - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutQueueInput | Prisma.TicketCreateOrConnectWithoutQueueInput[] - createMany?: Prisma.TicketCreateManyQueueInputEnvelope - connect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] -} - -export type TicketUpdateManyWithoutQueueNestedInput = { - create?: Prisma.XOR | Prisma.TicketCreateWithoutQueueInput[] | Prisma.TicketUncheckedCreateWithoutQueueInput[] - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutQueueInput | Prisma.TicketCreateOrConnectWithoutQueueInput[] - upsert?: Prisma.TicketUpsertWithWhereUniqueWithoutQueueInput | Prisma.TicketUpsertWithWhereUniqueWithoutQueueInput[] - createMany?: Prisma.TicketCreateManyQueueInputEnvelope - set?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - disconnect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - delete?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - connect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - update?: Prisma.TicketUpdateWithWhereUniqueWithoutQueueInput | Prisma.TicketUpdateWithWhereUniqueWithoutQueueInput[] - updateMany?: Prisma.TicketUpdateManyWithWhereWithoutQueueInput | Prisma.TicketUpdateManyWithWhereWithoutQueueInput[] - deleteMany?: Prisma.TicketScalarWhereInput | Prisma.TicketScalarWhereInput[] -} - -export type TicketUncheckedUpdateManyWithoutQueueNestedInput = { - create?: Prisma.XOR | Prisma.TicketCreateWithoutQueueInput[] | Prisma.TicketUncheckedCreateWithoutQueueInput[] - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutQueueInput | Prisma.TicketCreateOrConnectWithoutQueueInput[] - upsert?: Prisma.TicketUpsertWithWhereUniqueWithoutQueueInput | Prisma.TicketUpsertWithWhereUniqueWithoutQueueInput[] - createMany?: Prisma.TicketCreateManyQueueInputEnvelope - set?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - disconnect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - delete?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - connect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - update?: Prisma.TicketUpdateWithWhereUniqueWithoutQueueInput | Prisma.TicketUpdateWithWhereUniqueWithoutQueueInput[] - updateMany?: Prisma.TicketUpdateManyWithWhereWithoutQueueInput | Prisma.TicketUpdateManyWithWhereWithoutQueueInput[] - deleteMany?: Prisma.TicketScalarWhereInput | Prisma.TicketScalarWhereInput[] -} - -export type IntFieldUpdateOperationsInput = { - set?: number - increment?: number - decrement?: number - multiply?: number - divide?: number -} - -export type EnumTicketStatusFieldUpdateOperationsInput = { - set?: $Enums.TicketStatus -} - -export type EnumTicketPriorityFieldUpdateOperationsInput = { - set?: $Enums.TicketPriority -} - -export type EnumTicketChannelFieldUpdateOperationsInput = { - set?: $Enums.TicketChannel -} - -export type NullableDateTimeFieldUpdateOperationsInput = { - set?: Date | string | null -} - -export type NullableIntFieldUpdateOperationsInput = { - set?: number | null - increment?: number - decrement?: number - multiply?: number - divide?: number -} - -export type TicketCreateNestedOneWithoutEventsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutEventsInput - connect?: Prisma.TicketWhereUniqueInput -} - -export type TicketUpdateOneRequiredWithoutEventsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutEventsInput - upsert?: Prisma.TicketUpsertWithoutEventsInput - connect?: Prisma.TicketWhereUniqueInput - update?: Prisma.XOR, Prisma.TicketUncheckedUpdateWithoutEventsInput> -} - -export type TicketCreateNestedOneWithoutCommentsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutCommentsInput - connect?: Prisma.TicketWhereUniqueInput -} - -export type TicketUpdateOneRequiredWithoutCommentsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutCommentsInput - upsert?: Prisma.TicketUpsertWithoutCommentsInput - connect?: Prisma.TicketWhereUniqueInput - update?: Prisma.XOR, Prisma.TicketUncheckedUpdateWithoutCommentsInput> -} - -export type TicketCreateNestedManyWithoutSlaPolicyInput = { - create?: Prisma.XOR | Prisma.TicketCreateWithoutSlaPolicyInput[] | Prisma.TicketUncheckedCreateWithoutSlaPolicyInput[] - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutSlaPolicyInput | Prisma.TicketCreateOrConnectWithoutSlaPolicyInput[] - createMany?: Prisma.TicketCreateManySlaPolicyInputEnvelope - connect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] -} - -export type TicketUncheckedCreateNestedManyWithoutSlaPolicyInput = { - create?: Prisma.XOR | Prisma.TicketCreateWithoutSlaPolicyInput[] | Prisma.TicketUncheckedCreateWithoutSlaPolicyInput[] - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutSlaPolicyInput | Prisma.TicketCreateOrConnectWithoutSlaPolicyInput[] - createMany?: Prisma.TicketCreateManySlaPolicyInputEnvelope - connect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] -} - -export type TicketUpdateManyWithoutSlaPolicyNestedInput = { - create?: Prisma.XOR | Prisma.TicketCreateWithoutSlaPolicyInput[] | Prisma.TicketUncheckedCreateWithoutSlaPolicyInput[] - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutSlaPolicyInput | Prisma.TicketCreateOrConnectWithoutSlaPolicyInput[] - upsert?: Prisma.TicketUpsertWithWhereUniqueWithoutSlaPolicyInput | Prisma.TicketUpsertWithWhereUniqueWithoutSlaPolicyInput[] - createMany?: Prisma.TicketCreateManySlaPolicyInputEnvelope - set?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - disconnect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - delete?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - connect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - update?: Prisma.TicketUpdateWithWhereUniqueWithoutSlaPolicyInput | Prisma.TicketUpdateWithWhereUniqueWithoutSlaPolicyInput[] - updateMany?: Prisma.TicketUpdateManyWithWhereWithoutSlaPolicyInput | Prisma.TicketUpdateManyWithWhereWithoutSlaPolicyInput[] - deleteMany?: Prisma.TicketScalarWhereInput | Prisma.TicketScalarWhereInput[] -} - -export type TicketUncheckedUpdateManyWithoutSlaPolicyNestedInput = { - create?: Prisma.XOR | Prisma.TicketCreateWithoutSlaPolicyInput[] | Prisma.TicketUncheckedCreateWithoutSlaPolicyInput[] - connectOrCreate?: Prisma.TicketCreateOrConnectWithoutSlaPolicyInput | Prisma.TicketCreateOrConnectWithoutSlaPolicyInput[] - upsert?: Prisma.TicketUpsertWithWhereUniqueWithoutSlaPolicyInput | Prisma.TicketUpsertWithWhereUniqueWithoutSlaPolicyInput[] - createMany?: Prisma.TicketCreateManySlaPolicyInputEnvelope - set?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - disconnect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - delete?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - connect?: Prisma.TicketWhereUniqueInput | Prisma.TicketWhereUniqueInput[] - update?: Prisma.TicketUpdateWithWhereUniqueWithoutSlaPolicyInput | Prisma.TicketUpdateWithWhereUniqueWithoutSlaPolicyInput[] - updateMany?: Prisma.TicketUpdateManyWithWhereWithoutSlaPolicyInput | Prisma.TicketUpdateManyWithWhereWithoutSlaPolicyInput[] - deleteMany?: Prisma.TicketScalarWhereInput | Prisma.TicketScalarWhereInput[] -} - -export type TicketCreateWithoutCompanyInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - requester: Prisma.UserCreateNestedOneWithoutRequestedTicketsInput - assignee?: Prisma.UserCreateNestedOneWithoutAssignedTicketsInput - queue?: Prisma.QueueCreateNestedOneWithoutTicketsInput - slaPolicy?: Prisma.SlaPolicyCreateNestedOneWithoutTicketsInput - events?: Prisma.TicketEventCreateNestedManyWithoutTicketInput - comments?: Prisma.TicketCommentCreateNestedManyWithoutTicketInput -} - -export type TicketUncheckedCreateWithoutCompanyInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - queueId?: string | null - requesterId: string - assigneeId?: string | null - slaPolicyId?: string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - events?: Prisma.TicketEventUncheckedCreateNestedManyWithoutTicketInput - comments?: Prisma.TicketCommentUncheckedCreateNestedManyWithoutTicketInput -} - -export type TicketCreateOrConnectWithoutCompanyInput = { - where: Prisma.TicketWhereUniqueInput - create: Prisma.XOR -} - -export type TicketCreateManyCompanyInputEnvelope = { - data: Prisma.TicketCreateManyCompanyInput | Prisma.TicketCreateManyCompanyInput[] -} - -export type TicketUpsertWithWhereUniqueWithoutCompanyInput = { - where: Prisma.TicketWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type TicketUpdateWithWhereUniqueWithoutCompanyInput = { - where: Prisma.TicketWhereUniqueInput - data: Prisma.XOR -} - -export type TicketUpdateManyWithWhereWithoutCompanyInput = { - where: Prisma.TicketScalarWhereInput - data: Prisma.XOR -} - -export type TicketScalarWhereInput = { - AND?: Prisma.TicketScalarWhereInput | Prisma.TicketScalarWhereInput[] - OR?: Prisma.TicketScalarWhereInput[] - NOT?: Prisma.TicketScalarWhereInput | Prisma.TicketScalarWhereInput[] - id?: Prisma.StringFilter<"Ticket"> | string - tenantId?: Prisma.StringFilter<"Ticket"> | string - reference?: Prisma.IntFilter<"Ticket"> | number - subject?: Prisma.StringFilter<"Ticket"> | string - summary?: Prisma.StringNullableFilter<"Ticket"> | string | null - status?: Prisma.EnumTicketStatusFilter<"Ticket"> | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFilter<"Ticket"> | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFilter<"Ticket"> | $Enums.TicketChannel - queueId?: Prisma.StringNullableFilter<"Ticket"> | string | null - requesterId?: Prisma.StringFilter<"Ticket"> | string - assigneeId?: Prisma.StringNullableFilter<"Ticket"> | string | null - slaPolicyId?: Prisma.StringNullableFilter<"Ticket"> | string | null - companyId?: Prisma.StringNullableFilter<"Ticket"> | string | null - slaSnapshot?: Prisma.JsonNullableFilter<"Ticket"> - slaResponseDueAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - slaSolutionDueAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - slaResponseStatus?: Prisma.StringNullableFilter<"Ticket"> | string | null - slaSolutionStatus?: Prisma.StringNullableFilter<"Ticket"> | string | null - slaPausedAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - slaPausedBy?: Prisma.StringNullableFilter<"Ticket"> | string | null - slaPausedMs?: Prisma.IntNullableFilter<"Ticket"> | number | null - dueAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - firstResponseAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - resolvedAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - closedAt?: Prisma.DateTimeNullableFilter<"Ticket"> | Date | string | null - createdAt?: Prisma.DateTimeFilter<"Ticket"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Ticket"> | Date | string -} - -export type TicketCreateWithoutRequesterInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - assignee?: Prisma.UserCreateNestedOneWithoutAssignedTicketsInput - queue?: Prisma.QueueCreateNestedOneWithoutTicketsInput - slaPolicy?: Prisma.SlaPolicyCreateNestedOneWithoutTicketsInput - company?: Prisma.CompanyCreateNestedOneWithoutTicketsInput - events?: Prisma.TicketEventCreateNestedManyWithoutTicketInput - comments?: Prisma.TicketCommentCreateNestedManyWithoutTicketInput -} - -export type TicketUncheckedCreateWithoutRequesterInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - queueId?: string | null - assigneeId?: string | null - slaPolicyId?: string | null - companyId?: string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - events?: Prisma.TicketEventUncheckedCreateNestedManyWithoutTicketInput - comments?: Prisma.TicketCommentUncheckedCreateNestedManyWithoutTicketInput -} - -export type TicketCreateOrConnectWithoutRequesterInput = { - where: Prisma.TicketWhereUniqueInput - create: Prisma.XOR -} - -export type TicketCreateManyRequesterInputEnvelope = { - data: Prisma.TicketCreateManyRequesterInput | Prisma.TicketCreateManyRequesterInput[] -} - -export type TicketCreateWithoutAssigneeInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - requester: Prisma.UserCreateNestedOneWithoutRequestedTicketsInput - queue?: Prisma.QueueCreateNestedOneWithoutTicketsInput - slaPolicy?: Prisma.SlaPolicyCreateNestedOneWithoutTicketsInput - company?: Prisma.CompanyCreateNestedOneWithoutTicketsInput - events?: Prisma.TicketEventCreateNestedManyWithoutTicketInput - comments?: Prisma.TicketCommentCreateNestedManyWithoutTicketInput -} - -export type TicketUncheckedCreateWithoutAssigneeInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - queueId?: string | null - requesterId: string - slaPolicyId?: string | null - companyId?: string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - events?: Prisma.TicketEventUncheckedCreateNestedManyWithoutTicketInput - comments?: Prisma.TicketCommentUncheckedCreateNestedManyWithoutTicketInput -} - -export type TicketCreateOrConnectWithoutAssigneeInput = { - where: Prisma.TicketWhereUniqueInput - create: Prisma.XOR -} - -export type TicketCreateManyAssigneeInputEnvelope = { - data: Prisma.TicketCreateManyAssigneeInput | Prisma.TicketCreateManyAssigneeInput[] -} - -export type TicketUpsertWithWhereUniqueWithoutRequesterInput = { - where: Prisma.TicketWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type TicketUpdateWithWhereUniqueWithoutRequesterInput = { - where: Prisma.TicketWhereUniqueInput - data: Prisma.XOR -} - -export type TicketUpdateManyWithWhereWithoutRequesterInput = { - where: Prisma.TicketScalarWhereInput - data: Prisma.XOR -} - -export type TicketUpsertWithWhereUniqueWithoutAssigneeInput = { - where: Prisma.TicketWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type TicketUpdateWithWhereUniqueWithoutAssigneeInput = { - where: Prisma.TicketWhereUniqueInput - data: Prisma.XOR -} - -export type TicketUpdateManyWithWhereWithoutAssigneeInput = { - where: Prisma.TicketScalarWhereInput - data: Prisma.XOR -} - -export type TicketCreateWithoutQueueInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - requester: Prisma.UserCreateNestedOneWithoutRequestedTicketsInput - assignee?: Prisma.UserCreateNestedOneWithoutAssignedTicketsInput - slaPolicy?: Prisma.SlaPolicyCreateNestedOneWithoutTicketsInput - company?: Prisma.CompanyCreateNestedOneWithoutTicketsInput - events?: Prisma.TicketEventCreateNestedManyWithoutTicketInput - comments?: Prisma.TicketCommentCreateNestedManyWithoutTicketInput -} - -export type TicketUncheckedCreateWithoutQueueInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - requesterId: string - assigneeId?: string | null - slaPolicyId?: string | null - companyId?: string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - events?: Prisma.TicketEventUncheckedCreateNestedManyWithoutTicketInput - comments?: Prisma.TicketCommentUncheckedCreateNestedManyWithoutTicketInput -} - -export type TicketCreateOrConnectWithoutQueueInput = { - where: Prisma.TicketWhereUniqueInput - create: Prisma.XOR -} - -export type TicketCreateManyQueueInputEnvelope = { - data: Prisma.TicketCreateManyQueueInput | Prisma.TicketCreateManyQueueInput[] -} - -export type TicketUpsertWithWhereUniqueWithoutQueueInput = { - where: Prisma.TicketWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type TicketUpdateWithWhereUniqueWithoutQueueInput = { - where: Prisma.TicketWhereUniqueInput - data: Prisma.XOR -} - -export type TicketUpdateManyWithWhereWithoutQueueInput = { - where: Prisma.TicketScalarWhereInput - data: Prisma.XOR -} - -export type TicketCreateWithoutEventsInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - requester: Prisma.UserCreateNestedOneWithoutRequestedTicketsInput - assignee?: Prisma.UserCreateNestedOneWithoutAssignedTicketsInput - queue?: Prisma.QueueCreateNestedOneWithoutTicketsInput - slaPolicy?: Prisma.SlaPolicyCreateNestedOneWithoutTicketsInput - company?: Prisma.CompanyCreateNestedOneWithoutTicketsInput - comments?: Prisma.TicketCommentCreateNestedManyWithoutTicketInput -} - -export type TicketUncheckedCreateWithoutEventsInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - queueId?: string | null - requesterId: string - assigneeId?: string | null - slaPolicyId?: string | null - companyId?: string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - comments?: Prisma.TicketCommentUncheckedCreateNestedManyWithoutTicketInput -} - -export type TicketCreateOrConnectWithoutEventsInput = { - where: Prisma.TicketWhereUniqueInput - create: Prisma.XOR -} - -export type TicketUpsertWithoutEventsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.TicketWhereInput -} - -export type TicketUpdateToOneWithWhereWithoutEventsInput = { - where?: Prisma.TicketWhereInput - data: Prisma.XOR -} - -export type TicketUpdateWithoutEventsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - requester?: Prisma.UserUpdateOneRequiredWithoutRequestedTicketsNestedInput - assignee?: Prisma.UserUpdateOneWithoutAssignedTicketsNestedInput - queue?: Prisma.QueueUpdateOneWithoutTicketsNestedInput - slaPolicy?: Prisma.SlaPolicyUpdateOneWithoutTicketsNestedInput - company?: Prisma.CompanyUpdateOneWithoutTicketsNestedInput - comments?: Prisma.TicketCommentUpdateManyWithoutTicketNestedInput -} - -export type TicketUncheckedUpdateWithoutEventsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - queueId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - requesterId?: Prisma.StringFieldUpdateOperationsInput | string - assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPolicyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - comments?: Prisma.TicketCommentUncheckedUpdateManyWithoutTicketNestedInput -} - -export type TicketCreateWithoutCommentsInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - requester: Prisma.UserCreateNestedOneWithoutRequestedTicketsInput - assignee?: Prisma.UserCreateNestedOneWithoutAssignedTicketsInput - queue?: Prisma.QueueCreateNestedOneWithoutTicketsInput - slaPolicy?: Prisma.SlaPolicyCreateNestedOneWithoutTicketsInput - company?: Prisma.CompanyCreateNestedOneWithoutTicketsInput - events?: Prisma.TicketEventCreateNestedManyWithoutTicketInput -} - -export type TicketUncheckedCreateWithoutCommentsInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - queueId?: string | null - requesterId: string - assigneeId?: string | null - slaPolicyId?: string | null - companyId?: string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - events?: Prisma.TicketEventUncheckedCreateNestedManyWithoutTicketInput -} - -export type TicketCreateOrConnectWithoutCommentsInput = { - where: Prisma.TicketWhereUniqueInput - create: Prisma.XOR -} - -export type TicketUpsertWithoutCommentsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.TicketWhereInput -} - -export type TicketUpdateToOneWithWhereWithoutCommentsInput = { - where?: Prisma.TicketWhereInput - data: Prisma.XOR -} - -export type TicketUpdateWithoutCommentsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - requester?: Prisma.UserUpdateOneRequiredWithoutRequestedTicketsNestedInput - assignee?: Prisma.UserUpdateOneWithoutAssignedTicketsNestedInput - queue?: Prisma.QueueUpdateOneWithoutTicketsNestedInput - slaPolicy?: Prisma.SlaPolicyUpdateOneWithoutTicketsNestedInput - company?: Prisma.CompanyUpdateOneWithoutTicketsNestedInput - events?: Prisma.TicketEventUpdateManyWithoutTicketNestedInput -} - -export type TicketUncheckedUpdateWithoutCommentsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - queueId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - requesterId?: Prisma.StringFieldUpdateOperationsInput | string - assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPolicyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - events?: Prisma.TicketEventUncheckedUpdateManyWithoutTicketNestedInput -} - -export type TicketCreateWithoutSlaPolicyInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - requester: Prisma.UserCreateNestedOneWithoutRequestedTicketsInput - assignee?: Prisma.UserCreateNestedOneWithoutAssignedTicketsInput - queue?: Prisma.QueueCreateNestedOneWithoutTicketsInput - company?: Prisma.CompanyCreateNestedOneWithoutTicketsInput - events?: Prisma.TicketEventCreateNestedManyWithoutTicketInput - comments?: Prisma.TicketCommentCreateNestedManyWithoutTicketInput -} - -export type TicketUncheckedCreateWithoutSlaPolicyInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - queueId?: string | null - requesterId: string - assigneeId?: string | null - companyId?: string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string - events?: Prisma.TicketEventUncheckedCreateNestedManyWithoutTicketInput - comments?: Prisma.TicketCommentUncheckedCreateNestedManyWithoutTicketInput -} - -export type TicketCreateOrConnectWithoutSlaPolicyInput = { - where: Prisma.TicketWhereUniqueInput - create: Prisma.XOR -} - -export type TicketCreateManySlaPolicyInputEnvelope = { - data: Prisma.TicketCreateManySlaPolicyInput | Prisma.TicketCreateManySlaPolicyInput[] -} - -export type TicketUpsertWithWhereUniqueWithoutSlaPolicyInput = { - where: Prisma.TicketWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type TicketUpdateWithWhereUniqueWithoutSlaPolicyInput = { - where: Prisma.TicketWhereUniqueInput - data: Prisma.XOR -} - -export type TicketUpdateManyWithWhereWithoutSlaPolicyInput = { - where: Prisma.TicketScalarWhereInput - data: Prisma.XOR -} - -export type TicketCreateManyCompanyInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - queueId?: string | null - requesterId: string - assigneeId?: string | null - slaPolicyId?: string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type TicketUpdateWithoutCompanyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - requester?: Prisma.UserUpdateOneRequiredWithoutRequestedTicketsNestedInput - assignee?: Prisma.UserUpdateOneWithoutAssignedTicketsNestedInput - queue?: Prisma.QueueUpdateOneWithoutTicketsNestedInput - slaPolicy?: Prisma.SlaPolicyUpdateOneWithoutTicketsNestedInput - events?: Prisma.TicketEventUpdateManyWithoutTicketNestedInput - comments?: Prisma.TicketCommentUpdateManyWithoutTicketNestedInput -} - -export type TicketUncheckedUpdateWithoutCompanyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - queueId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - requesterId?: Prisma.StringFieldUpdateOperationsInput | string - assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPolicyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - events?: Prisma.TicketEventUncheckedUpdateManyWithoutTicketNestedInput - comments?: Prisma.TicketCommentUncheckedUpdateManyWithoutTicketNestedInput -} - -export type TicketUncheckedUpdateManyWithoutCompanyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - queueId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - requesterId?: Prisma.StringFieldUpdateOperationsInput | string - assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPolicyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TicketCreateManyRequesterInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - queueId?: string | null - assigneeId?: string | null - slaPolicyId?: string | null - companyId?: string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type TicketCreateManyAssigneeInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - queueId?: string | null - requesterId: string - slaPolicyId?: string | null - companyId?: string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type TicketUpdateWithoutRequesterInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - assignee?: Prisma.UserUpdateOneWithoutAssignedTicketsNestedInput - queue?: Prisma.QueueUpdateOneWithoutTicketsNestedInput - slaPolicy?: Prisma.SlaPolicyUpdateOneWithoutTicketsNestedInput - company?: Prisma.CompanyUpdateOneWithoutTicketsNestedInput - events?: Prisma.TicketEventUpdateManyWithoutTicketNestedInput - comments?: Prisma.TicketCommentUpdateManyWithoutTicketNestedInput -} - -export type TicketUncheckedUpdateWithoutRequesterInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - queueId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPolicyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - events?: Prisma.TicketEventUncheckedUpdateManyWithoutTicketNestedInput - comments?: Prisma.TicketCommentUncheckedUpdateManyWithoutTicketNestedInput -} - -export type TicketUncheckedUpdateManyWithoutRequesterInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - queueId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPolicyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TicketUpdateWithoutAssigneeInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - requester?: Prisma.UserUpdateOneRequiredWithoutRequestedTicketsNestedInput - queue?: Prisma.QueueUpdateOneWithoutTicketsNestedInput - slaPolicy?: Prisma.SlaPolicyUpdateOneWithoutTicketsNestedInput - company?: Prisma.CompanyUpdateOneWithoutTicketsNestedInput - events?: Prisma.TicketEventUpdateManyWithoutTicketNestedInput - comments?: Prisma.TicketCommentUpdateManyWithoutTicketNestedInput -} - -export type TicketUncheckedUpdateWithoutAssigneeInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - queueId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - requesterId?: Prisma.StringFieldUpdateOperationsInput | string - slaPolicyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - events?: Prisma.TicketEventUncheckedUpdateManyWithoutTicketNestedInput - comments?: Prisma.TicketCommentUncheckedUpdateManyWithoutTicketNestedInput -} - -export type TicketUncheckedUpdateManyWithoutAssigneeInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - queueId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - requesterId?: Prisma.StringFieldUpdateOperationsInput | string - slaPolicyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TicketCreateManyQueueInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - requesterId: string - assigneeId?: string | null - slaPolicyId?: string | null - companyId?: string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type TicketUpdateWithoutQueueInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - requester?: Prisma.UserUpdateOneRequiredWithoutRequestedTicketsNestedInput - assignee?: Prisma.UserUpdateOneWithoutAssignedTicketsNestedInput - slaPolicy?: Prisma.SlaPolicyUpdateOneWithoutTicketsNestedInput - company?: Prisma.CompanyUpdateOneWithoutTicketsNestedInput - events?: Prisma.TicketEventUpdateManyWithoutTicketNestedInput - comments?: Prisma.TicketCommentUpdateManyWithoutTicketNestedInput -} - -export type TicketUncheckedUpdateWithoutQueueInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - requesterId?: Prisma.StringFieldUpdateOperationsInput | string - assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPolicyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - events?: Prisma.TicketEventUncheckedUpdateManyWithoutTicketNestedInput - comments?: Prisma.TicketCommentUncheckedUpdateManyWithoutTicketNestedInput -} - -export type TicketUncheckedUpdateManyWithoutQueueInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - requesterId?: Prisma.StringFieldUpdateOperationsInput | string - assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPolicyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TicketCreateManySlaPolicyInput = { - id?: string - tenantId: string - reference?: number - subject: string - summary?: string | null - status?: $Enums.TicketStatus - priority?: $Enums.TicketPriority - channel?: $Enums.TicketChannel - queueId?: string | null - requesterId: string - assigneeId?: string | null - companyId?: string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Date | string | null - slaSolutionDueAt?: Date | string | null - slaResponseStatus?: string | null - slaSolutionStatus?: string | null - slaPausedAt?: Date | string | null - slaPausedBy?: string | null - slaPausedMs?: number | null - dueAt?: Date | string | null - firstResponseAt?: Date | string | null - resolvedAt?: Date | string | null - closedAt?: Date | string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type TicketUpdateWithoutSlaPolicyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - requester?: Prisma.UserUpdateOneRequiredWithoutRequestedTicketsNestedInput - assignee?: Prisma.UserUpdateOneWithoutAssignedTicketsNestedInput - queue?: Prisma.QueueUpdateOneWithoutTicketsNestedInput - company?: Prisma.CompanyUpdateOneWithoutTicketsNestedInput - events?: Prisma.TicketEventUpdateManyWithoutTicketNestedInput - comments?: Prisma.TicketCommentUpdateManyWithoutTicketNestedInput -} - -export type TicketUncheckedUpdateWithoutSlaPolicyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - queueId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - requesterId?: Prisma.StringFieldUpdateOperationsInput | string - assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - events?: Prisma.TicketEventUncheckedUpdateManyWithoutTicketNestedInput - comments?: Prisma.TicketCommentUncheckedUpdateManyWithoutTicketNestedInput -} - -export type TicketUncheckedUpdateManyWithoutSlaPolicyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - reference?: Prisma.IntFieldUpdateOperationsInput | number - subject?: Prisma.StringFieldUpdateOperationsInput | string - summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.EnumTicketStatusFieldUpdateOperationsInput | $Enums.TicketStatus - priority?: Prisma.EnumTicketPriorityFieldUpdateOperationsInput | $Enums.TicketPriority - channel?: Prisma.EnumTicketChannelFieldUpdateOperationsInput | $Enums.TicketChannel - queueId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - requesterId?: Prisma.StringFieldUpdateOperationsInput | string - assigneeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSnapshot?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - slaResponseDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaSolutionDueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaResponseStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaSolutionStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - slaPausedBy?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - slaPausedMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - dueAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - firstResponseAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - resolvedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - - -/** - * Count Type TicketCountOutputType - */ - -export type TicketCountOutputType = { - events: number - comments: number -} - -export type TicketCountOutputTypeSelect = { - events?: boolean | TicketCountOutputTypeCountEventsArgs - comments?: boolean | TicketCountOutputTypeCountCommentsArgs -} - -/** - * TicketCountOutputType without action - */ -export type TicketCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the TicketCountOutputType - */ - select?: Prisma.TicketCountOutputTypeSelect | null -} - -/** - * TicketCountOutputType without action - */ -export type TicketCountOutputTypeCountEventsArgs = { - where?: Prisma.TicketEventWhereInput -} - -/** - * TicketCountOutputType without action - */ -export type TicketCountOutputTypeCountCommentsArgs = { - where?: Prisma.TicketCommentWhereInput -} - - -export type TicketSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - reference?: boolean - subject?: boolean - summary?: boolean - status?: boolean - priority?: boolean - channel?: boolean - queueId?: boolean - requesterId?: boolean - assigneeId?: boolean - slaPolicyId?: boolean - companyId?: boolean - slaSnapshot?: boolean - slaResponseDueAt?: boolean - slaSolutionDueAt?: boolean - slaResponseStatus?: boolean - slaSolutionStatus?: boolean - slaPausedAt?: boolean - slaPausedBy?: boolean - slaPausedMs?: boolean - dueAt?: boolean - firstResponseAt?: boolean - resolvedAt?: boolean - closedAt?: boolean - createdAt?: boolean - updatedAt?: boolean - requester?: boolean | Prisma.UserDefaultArgs - assignee?: boolean | Prisma.Ticket$assigneeArgs - queue?: boolean | Prisma.Ticket$queueArgs - slaPolicy?: boolean | Prisma.Ticket$slaPolicyArgs - company?: boolean | Prisma.Ticket$companyArgs - events?: boolean | Prisma.Ticket$eventsArgs - comments?: boolean | Prisma.Ticket$commentsArgs - _count?: boolean | Prisma.TicketCountOutputTypeDefaultArgs -}, ExtArgs["result"]["ticket"]> - -export type TicketSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - reference?: boolean - subject?: boolean - summary?: boolean - status?: boolean - priority?: boolean - channel?: boolean - queueId?: boolean - requesterId?: boolean - assigneeId?: boolean - slaPolicyId?: boolean - companyId?: boolean - slaSnapshot?: boolean - slaResponseDueAt?: boolean - slaSolutionDueAt?: boolean - slaResponseStatus?: boolean - slaSolutionStatus?: boolean - slaPausedAt?: boolean - slaPausedBy?: boolean - slaPausedMs?: boolean - dueAt?: boolean - firstResponseAt?: boolean - resolvedAt?: boolean - closedAt?: boolean - createdAt?: boolean - updatedAt?: boolean - requester?: boolean | Prisma.UserDefaultArgs - assignee?: boolean | Prisma.Ticket$assigneeArgs - queue?: boolean | Prisma.Ticket$queueArgs - slaPolicy?: boolean | Prisma.Ticket$slaPolicyArgs - company?: boolean | Prisma.Ticket$companyArgs -}, ExtArgs["result"]["ticket"]> - -export type TicketSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - reference?: boolean - subject?: boolean - summary?: boolean - status?: boolean - priority?: boolean - channel?: boolean - queueId?: boolean - requesterId?: boolean - assigneeId?: boolean - slaPolicyId?: boolean - companyId?: boolean - slaSnapshot?: boolean - slaResponseDueAt?: boolean - slaSolutionDueAt?: boolean - slaResponseStatus?: boolean - slaSolutionStatus?: boolean - slaPausedAt?: boolean - slaPausedBy?: boolean - slaPausedMs?: boolean - dueAt?: boolean - firstResponseAt?: boolean - resolvedAt?: boolean - closedAt?: boolean - createdAt?: boolean - updatedAt?: boolean - requester?: boolean | Prisma.UserDefaultArgs - assignee?: boolean | Prisma.Ticket$assigneeArgs - queue?: boolean | Prisma.Ticket$queueArgs - slaPolicy?: boolean | Prisma.Ticket$slaPolicyArgs - company?: boolean | Prisma.Ticket$companyArgs -}, ExtArgs["result"]["ticket"]> - -export type TicketSelectScalar = { - id?: boolean - tenantId?: boolean - reference?: boolean - subject?: boolean - summary?: boolean - status?: boolean - priority?: boolean - channel?: boolean - queueId?: boolean - requesterId?: boolean - assigneeId?: boolean - slaPolicyId?: boolean - companyId?: boolean - slaSnapshot?: boolean - slaResponseDueAt?: boolean - slaSolutionDueAt?: boolean - slaResponseStatus?: boolean - slaSolutionStatus?: boolean - slaPausedAt?: boolean - slaPausedBy?: boolean - slaPausedMs?: boolean - dueAt?: boolean - firstResponseAt?: boolean - resolvedAt?: boolean - closedAt?: boolean - createdAt?: boolean - updatedAt?: boolean -} - -export type TicketOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "reference" | "subject" | "summary" | "status" | "priority" | "channel" | "queueId" | "requesterId" | "assigneeId" | "slaPolicyId" | "companyId" | "slaSnapshot" | "slaResponseDueAt" | "slaSolutionDueAt" | "slaResponseStatus" | "slaSolutionStatus" | "slaPausedAt" | "slaPausedBy" | "slaPausedMs" | "dueAt" | "firstResponseAt" | "resolvedAt" | "closedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["ticket"]> -export type TicketInclude = { - requester?: boolean | Prisma.UserDefaultArgs - assignee?: boolean | Prisma.Ticket$assigneeArgs - queue?: boolean | Prisma.Ticket$queueArgs - slaPolicy?: boolean | Prisma.Ticket$slaPolicyArgs - company?: boolean | Prisma.Ticket$companyArgs - events?: boolean | Prisma.Ticket$eventsArgs - comments?: boolean | Prisma.Ticket$commentsArgs - _count?: boolean | Prisma.TicketCountOutputTypeDefaultArgs -} -export type TicketIncludeCreateManyAndReturn = { - requester?: boolean | Prisma.UserDefaultArgs - assignee?: boolean | Prisma.Ticket$assigneeArgs - queue?: boolean | Prisma.Ticket$queueArgs - slaPolicy?: boolean | Prisma.Ticket$slaPolicyArgs - company?: boolean | Prisma.Ticket$companyArgs -} -export type TicketIncludeUpdateManyAndReturn = { - requester?: boolean | Prisma.UserDefaultArgs - assignee?: boolean | Prisma.Ticket$assigneeArgs - queue?: boolean | Prisma.Ticket$queueArgs - slaPolicy?: boolean | Prisma.Ticket$slaPolicyArgs - company?: boolean | Prisma.Ticket$companyArgs -} - -export type $TicketPayload = { - name: "Ticket" - objects: { - requester: Prisma.$UserPayload - assignee: Prisma.$UserPayload | null - queue: Prisma.$QueuePayload | null - slaPolicy: Prisma.$SlaPolicyPayload | null - company: Prisma.$CompanyPayload | null - events: Prisma.$TicketEventPayload[] - comments: Prisma.$TicketCommentPayload[] - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - tenantId: string - reference: number - subject: string - summary: string | null - status: $Enums.TicketStatus - priority: $Enums.TicketPriority - channel: $Enums.TicketChannel - queueId: string | null - requesterId: string - assigneeId: string | null - slaPolicyId: string | null - companyId: string | null - slaSnapshot: runtime.JsonValue | null - slaResponseDueAt: Date | null - slaSolutionDueAt: Date | null - slaResponseStatus: string | null - slaSolutionStatus: string | null - slaPausedAt: Date | null - slaPausedBy: string | null - slaPausedMs: number | null - dueAt: Date | null - firstResponseAt: Date | null - resolvedAt: Date | null - closedAt: Date | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["ticket"]> - composites: {} -} - -export type TicketGetPayload = runtime.Types.Result.GetResult - -export type TicketCountArgs = - Omit & { - select?: TicketCountAggregateInputType | true - } - -export interface TicketDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Ticket'], meta: { name: 'Ticket' } } - /** - * Find zero or one Ticket that matches the filter. - * @param {TicketFindUniqueArgs} args - Arguments to find a Ticket - * @example - * // Get one Ticket - * const ticket = await prisma.ticket.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TicketClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Ticket that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {TicketFindUniqueOrThrowArgs} args - Arguments to find a Ticket - * @example - * // Get one Ticket - * const ticket = await prisma.ticket.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TicketClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Ticket that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketFindFirstArgs} args - Arguments to find a Ticket - * @example - * // Get one Ticket - * const ticket = await prisma.ticket.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TicketClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Ticket that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketFindFirstOrThrowArgs} args - Arguments to find a Ticket - * @example - * // Get one Ticket - * const ticket = await prisma.ticket.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TicketClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Tickets that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Tickets - * const tickets = await prisma.ticket.findMany() - * - * // Get first 10 Tickets - * const tickets = await prisma.ticket.findMany({ take: 10 }) - * - * // Only select the `id` - * const ticketWithIdOnly = await prisma.ticket.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Ticket. - * @param {TicketCreateArgs} args - Arguments to create a Ticket. - * @example - * // Create one Ticket - * const Ticket = await prisma.ticket.create({ - * data: { - * // ... data to create a Ticket - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__TicketClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Tickets. - * @param {TicketCreateManyArgs} args - Arguments to create many Tickets. - * @example - * // Create many Tickets - * const ticket = await prisma.ticket.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Tickets and returns the data saved in the database. - * @param {TicketCreateManyAndReturnArgs} args - Arguments to create many Tickets. - * @example - * // Create many Tickets - * const ticket = await prisma.ticket.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Tickets and only return the `id` - * const ticketWithIdOnly = await prisma.ticket.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Ticket. - * @param {TicketDeleteArgs} args - Arguments to delete one Ticket. - * @example - * // Delete one Ticket - * const Ticket = await prisma.ticket.delete({ - * where: { - * // ... filter to delete one Ticket - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__TicketClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Ticket. - * @param {TicketUpdateArgs} args - Arguments to update one Ticket. - * @example - * // Update one Ticket - * const ticket = await prisma.ticket.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__TicketClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Tickets. - * @param {TicketDeleteManyArgs} args - Arguments to filter Tickets to delete. - * @example - * // Delete a few Tickets - * const { count } = await prisma.ticket.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Tickets. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Tickets - * const ticket = await prisma.ticket.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Tickets and returns the data updated in the database. - * @param {TicketUpdateManyAndReturnArgs} args - Arguments to update many Tickets. - * @example - * // Update many Tickets - * const ticket = await prisma.ticket.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Tickets and only return the `id` - * const ticketWithIdOnly = await prisma.ticket.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Ticket. - * @param {TicketUpsertArgs} args - Arguments to update or create a Ticket. - * @example - * // Update or create a Ticket - * const ticket = await prisma.ticket.upsert({ - * create: { - * // ... data to create a Ticket - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Ticket we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TicketClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Tickets. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketCountArgs} args - Arguments to filter Tickets to count. - * @example - * // Count the number of Tickets - * const count = await prisma.ticket.count({ - * where: { - * // ... the filter for the Tickets we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Ticket. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by Ticket. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends TicketGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: TicketGroupByArgs['orderBy'] } - : { orderBy?: TicketGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetTicketGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the Ticket model - */ -readonly fields: TicketFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for Ticket. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__TicketClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - requester = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - assignee = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - queue = {}>(args?: Prisma.Subset>): Prisma.Prisma__QueueClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - slaPolicy = {}>(args?: Prisma.Subset>): Prisma.Prisma__SlaPolicyClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - company = {}>(args?: Prisma.Subset>): Prisma.Prisma__CompanyClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - events = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - comments = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the Ticket model - */ -export interface TicketFieldRefs { - readonly id: Prisma.FieldRef<"Ticket", 'String'> - readonly tenantId: Prisma.FieldRef<"Ticket", 'String'> - readonly reference: Prisma.FieldRef<"Ticket", 'Int'> - readonly subject: Prisma.FieldRef<"Ticket", 'String'> - readonly summary: Prisma.FieldRef<"Ticket", 'String'> - readonly status: Prisma.FieldRef<"Ticket", 'TicketStatus'> - readonly priority: Prisma.FieldRef<"Ticket", 'TicketPriority'> - readonly channel: Prisma.FieldRef<"Ticket", 'TicketChannel'> - readonly queueId: Prisma.FieldRef<"Ticket", 'String'> - readonly requesterId: Prisma.FieldRef<"Ticket", 'String'> - readonly assigneeId: Prisma.FieldRef<"Ticket", 'String'> - readonly slaPolicyId: Prisma.FieldRef<"Ticket", 'String'> - readonly companyId: Prisma.FieldRef<"Ticket", 'String'> - readonly slaSnapshot: Prisma.FieldRef<"Ticket", 'Json'> - readonly slaResponseDueAt: Prisma.FieldRef<"Ticket", 'DateTime'> - readonly slaSolutionDueAt: Prisma.FieldRef<"Ticket", 'DateTime'> - readonly slaResponseStatus: Prisma.FieldRef<"Ticket", 'String'> - readonly slaSolutionStatus: Prisma.FieldRef<"Ticket", 'String'> - readonly slaPausedAt: Prisma.FieldRef<"Ticket", 'DateTime'> - readonly slaPausedBy: Prisma.FieldRef<"Ticket", 'String'> - readonly slaPausedMs: Prisma.FieldRef<"Ticket", 'Int'> - readonly dueAt: Prisma.FieldRef<"Ticket", 'DateTime'> - readonly firstResponseAt: Prisma.FieldRef<"Ticket", 'DateTime'> - readonly resolvedAt: Prisma.FieldRef<"Ticket", 'DateTime'> - readonly closedAt: Prisma.FieldRef<"Ticket", 'DateTime'> - readonly createdAt: Prisma.FieldRef<"Ticket", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"Ticket", 'DateTime'> -} - - -// Custom InputTypes -/** - * Ticket findUnique - */ -export type TicketFindUniqueArgs = { - /** - * Select specific fields to fetch from the Ticket - */ - select?: Prisma.TicketSelect | null - /** - * Omit specific fields from the Ticket - */ - omit?: Prisma.TicketOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketInclude | null - /** - * Filter, which Ticket to fetch. - */ - where: Prisma.TicketWhereUniqueInput -} - -/** - * Ticket findUniqueOrThrow - */ -export type TicketFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Ticket - */ - select?: Prisma.TicketSelect | null - /** - * Omit specific fields from the Ticket - */ - omit?: Prisma.TicketOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketInclude | null - /** - * Filter, which Ticket to fetch. - */ - where: Prisma.TicketWhereUniqueInput -} - -/** - * Ticket findFirst - */ -export type TicketFindFirstArgs = { - /** - * Select specific fields to fetch from the Ticket - */ - select?: Prisma.TicketSelect | null - /** - * Omit specific fields from the Ticket - */ - omit?: Prisma.TicketOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketInclude | null - /** - * Filter, which Ticket to fetch. - */ - where?: Prisma.TicketWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Tickets to fetch. - */ - orderBy?: Prisma.TicketOrderByWithRelationInput | Prisma.TicketOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Tickets. - */ - cursor?: Prisma.TicketWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Tickets from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Tickets. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Tickets. - */ - distinct?: Prisma.TicketScalarFieldEnum | Prisma.TicketScalarFieldEnum[] -} - -/** - * Ticket findFirstOrThrow - */ -export type TicketFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Ticket - */ - select?: Prisma.TicketSelect | null - /** - * Omit specific fields from the Ticket - */ - omit?: Prisma.TicketOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketInclude | null - /** - * Filter, which Ticket to fetch. - */ - where?: Prisma.TicketWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Tickets to fetch. - */ - orderBy?: Prisma.TicketOrderByWithRelationInput | Prisma.TicketOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Tickets. - */ - cursor?: Prisma.TicketWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Tickets from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Tickets. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Tickets. - */ - distinct?: Prisma.TicketScalarFieldEnum | Prisma.TicketScalarFieldEnum[] -} - -/** - * Ticket findMany - */ -export type TicketFindManyArgs = { - /** - * Select specific fields to fetch from the Ticket - */ - select?: Prisma.TicketSelect | null - /** - * Omit specific fields from the Ticket - */ - omit?: Prisma.TicketOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketInclude | null - /** - * Filter, which Tickets to fetch. - */ - where?: Prisma.TicketWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Tickets to fetch. - */ - orderBy?: Prisma.TicketOrderByWithRelationInput | Prisma.TicketOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Tickets. - */ - cursor?: Prisma.TicketWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Tickets from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Tickets. - */ - skip?: number - distinct?: Prisma.TicketScalarFieldEnum | Prisma.TicketScalarFieldEnum[] -} - -/** - * Ticket create - */ -export type TicketCreateArgs = { - /** - * Select specific fields to fetch from the Ticket - */ - select?: Prisma.TicketSelect | null - /** - * Omit specific fields from the Ticket - */ - omit?: Prisma.TicketOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketInclude | null - /** - * The data needed to create a Ticket. - */ - data: Prisma.XOR -} - -/** - * Ticket createMany - */ -export type TicketCreateManyArgs = { - /** - * The data used to create many Tickets. - */ - data: Prisma.TicketCreateManyInput | Prisma.TicketCreateManyInput[] -} - -/** - * Ticket createManyAndReturn - */ -export type TicketCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Ticket - */ - select?: Prisma.TicketSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Ticket - */ - omit?: Prisma.TicketOmit | null - /** - * The data used to create many Tickets. - */ - data: Prisma.TicketCreateManyInput | Prisma.TicketCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketIncludeCreateManyAndReturn | null -} - -/** - * Ticket update - */ -export type TicketUpdateArgs = { - /** - * Select specific fields to fetch from the Ticket - */ - select?: Prisma.TicketSelect | null - /** - * Omit specific fields from the Ticket - */ - omit?: Prisma.TicketOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketInclude | null - /** - * The data needed to update a Ticket. - */ - data: Prisma.XOR - /** - * Choose, which Ticket to update. - */ - where: Prisma.TicketWhereUniqueInput -} - -/** - * Ticket updateMany - */ -export type TicketUpdateManyArgs = { - /** - * The data used to update Tickets. - */ - data: Prisma.XOR - /** - * Filter which Tickets to update - */ - where?: Prisma.TicketWhereInput - /** - * Limit how many Tickets to update. - */ - limit?: number -} - -/** - * Ticket updateManyAndReturn - */ -export type TicketUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Ticket - */ - select?: Prisma.TicketSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Ticket - */ - omit?: Prisma.TicketOmit | null - /** - * The data used to update Tickets. - */ - data: Prisma.XOR - /** - * Filter which Tickets to update - */ - where?: Prisma.TicketWhereInput - /** - * Limit how many Tickets to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketIncludeUpdateManyAndReturn | null -} - -/** - * Ticket upsert - */ -export type TicketUpsertArgs = { - /** - * Select specific fields to fetch from the Ticket - */ - select?: Prisma.TicketSelect | null - /** - * Omit specific fields from the Ticket - */ - omit?: Prisma.TicketOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketInclude | null - /** - * The filter to search for the Ticket to update in case it exists. - */ - where: Prisma.TicketWhereUniqueInput - /** - * In case the Ticket found by the `where` argument doesn't exist, create a new Ticket with this data. - */ - create: Prisma.XOR - /** - * In case the Ticket was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * Ticket delete - */ -export type TicketDeleteArgs = { - /** - * Select specific fields to fetch from the Ticket - */ - select?: Prisma.TicketSelect | null - /** - * Omit specific fields from the Ticket - */ - omit?: Prisma.TicketOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketInclude | null - /** - * Filter which Ticket to delete. - */ - where: Prisma.TicketWhereUniqueInput -} - -/** - * Ticket deleteMany - */ -export type TicketDeleteManyArgs = { - /** - * Filter which Tickets to delete - */ - where?: Prisma.TicketWhereInput - /** - * Limit how many Tickets to delete. - */ - limit?: number -} - -/** - * Ticket.assignee - */ -export type Ticket$assigneeArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - where?: Prisma.UserWhereInput -} - -/** - * Ticket.queue - */ -export type Ticket$queueArgs = { - /** - * Select specific fields to fetch from the Queue - */ - select?: Prisma.QueueSelect | null - /** - * Omit specific fields from the Queue - */ - omit?: Prisma.QueueOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.QueueInclude | null - where?: Prisma.QueueWhereInput -} - -/** - * Ticket.slaPolicy - */ -export type Ticket$slaPolicyArgs = { - /** - * Select specific fields to fetch from the SlaPolicy - */ - select?: Prisma.SlaPolicySelect | null - /** - * Omit specific fields from the SlaPolicy - */ - omit?: Prisma.SlaPolicyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SlaPolicyInclude | null - where?: Prisma.SlaPolicyWhereInput -} - -/** - * Ticket.company - */ -export type Ticket$companyArgs = { - /** - * Select specific fields to fetch from the Company - */ - select?: Prisma.CompanySelect | null - /** - * Omit specific fields from the Company - */ - omit?: Prisma.CompanyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CompanyInclude | null - where?: Prisma.CompanyWhereInput -} - -/** - * Ticket.events - */ -export type Ticket$eventsArgs = { - /** - * Select specific fields to fetch from the TicketEvent - */ - select?: Prisma.TicketEventSelect | null - /** - * Omit specific fields from the TicketEvent - */ - omit?: Prisma.TicketEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketEventInclude | null - where?: Prisma.TicketEventWhereInput - orderBy?: Prisma.TicketEventOrderByWithRelationInput | Prisma.TicketEventOrderByWithRelationInput[] - cursor?: Prisma.TicketEventWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.TicketEventScalarFieldEnum | Prisma.TicketEventScalarFieldEnum[] -} - -/** - * Ticket.comments - */ -export type Ticket$commentsArgs = { - /** - * Select specific fields to fetch from the TicketComment - */ - select?: Prisma.TicketCommentSelect | null - /** - * Omit specific fields from the TicketComment - */ - omit?: Prisma.TicketCommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketCommentInclude | null - where?: Prisma.TicketCommentWhereInput - orderBy?: Prisma.TicketCommentOrderByWithRelationInput | Prisma.TicketCommentOrderByWithRelationInput[] - cursor?: Prisma.TicketCommentWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.TicketCommentScalarFieldEnum | Prisma.TicketCommentScalarFieldEnum[] -} - -/** - * Ticket without action - */ -export type TicketDefaultArgs = { - /** - * Select specific fields to fetch from the Ticket - */ - select?: Prisma.TicketSelect | null - /** - * Omit specific fields from the Ticket - */ - omit?: Prisma.TicketOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketInclude | null -} diff --git a/src/generated/prisma/models/TicketComment.ts b/src/generated/prisma/models/TicketComment.ts deleted file mode 100644 index 9809118..0000000 --- a/src/generated/prisma/models/TicketComment.ts +++ /dev/null @@ -1,1577 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `TicketComment` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model TicketComment - * - */ -export type TicketCommentModel = runtime.Types.Result.DefaultSelection - -export type AggregateTicketComment = { - _count: TicketCommentCountAggregateOutputType | null - _min: TicketCommentMinAggregateOutputType | null - _max: TicketCommentMaxAggregateOutputType | null -} - -export type TicketCommentMinAggregateOutputType = { - id: string | null - ticketId: string | null - authorId: string | null - visibility: $Enums.CommentVisibility | null - body: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type TicketCommentMaxAggregateOutputType = { - id: string | null - ticketId: string | null - authorId: string | null - visibility: $Enums.CommentVisibility | null - body: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type TicketCommentCountAggregateOutputType = { - id: number - ticketId: number - authorId: number - visibility: number - body: number - attachments: number - createdAt: number - updatedAt: number - _all: number -} - - -export type TicketCommentMinAggregateInputType = { - id?: true - ticketId?: true - authorId?: true - visibility?: true - body?: true - createdAt?: true - updatedAt?: true -} - -export type TicketCommentMaxAggregateInputType = { - id?: true - ticketId?: true - authorId?: true - visibility?: true - body?: true - createdAt?: true - updatedAt?: true -} - -export type TicketCommentCountAggregateInputType = { - id?: true - ticketId?: true - authorId?: true - visibility?: true - body?: true - attachments?: true - createdAt?: true - updatedAt?: true - _all?: true -} - -export type TicketCommentAggregateArgs = { - /** - * Filter which TicketComment to aggregate. - */ - where?: Prisma.TicketCommentWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of TicketComments to fetch. - */ - orderBy?: Prisma.TicketCommentOrderByWithRelationInput | Prisma.TicketCommentOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.TicketCommentWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` TicketComments from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` TicketComments. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned TicketComments - **/ - _count?: true | TicketCommentCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: TicketCommentMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: TicketCommentMaxAggregateInputType -} - -export type GetTicketCommentAggregateType = { - [P in keyof T & keyof AggregateTicketComment]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type TicketCommentGroupByArgs = { - where?: Prisma.TicketCommentWhereInput - orderBy?: Prisma.TicketCommentOrderByWithAggregationInput | Prisma.TicketCommentOrderByWithAggregationInput[] - by: Prisma.TicketCommentScalarFieldEnum[] | Prisma.TicketCommentScalarFieldEnum - having?: Prisma.TicketCommentScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: TicketCommentCountAggregateInputType | true - _min?: TicketCommentMinAggregateInputType - _max?: TicketCommentMaxAggregateInputType -} - -export type TicketCommentGroupByOutputType = { - id: string - ticketId: string - authorId: string - visibility: $Enums.CommentVisibility - body: string - attachments: runtime.JsonValue | null - createdAt: Date - updatedAt: Date - _count: TicketCommentCountAggregateOutputType | null - _min: TicketCommentMinAggregateOutputType | null - _max: TicketCommentMaxAggregateOutputType | null -} - -type GetTicketCommentGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof TicketCommentGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type TicketCommentWhereInput = { - AND?: Prisma.TicketCommentWhereInput | Prisma.TicketCommentWhereInput[] - OR?: Prisma.TicketCommentWhereInput[] - NOT?: Prisma.TicketCommentWhereInput | Prisma.TicketCommentWhereInput[] - id?: Prisma.StringFilter<"TicketComment"> | string - ticketId?: Prisma.StringFilter<"TicketComment"> | string - authorId?: Prisma.StringFilter<"TicketComment"> | string - visibility?: Prisma.EnumCommentVisibilityFilter<"TicketComment"> | $Enums.CommentVisibility - body?: Prisma.StringFilter<"TicketComment"> | string - attachments?: Prisma.JsonNullableFilter<"TicketComment"> - createdAt?: Prisma.DateTimeFilter<"TicketComment"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"TicketComment"> | Date | string - ticket?: Prisma.XOR - author?: Prisma.XOR -} - -export type TicketCommentOrderByWithRelationInput = { - id?: Prisma.SortOrder - ticketId?: Prisma.SortOrder - authorId?: Prisma.SortOrder - visibility?: Prisma.SortOrder - body?: Prisma.SortOrder - attachments?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - ticket?: Prisma.TicketOrderByWithRelationInput - author?: Prisma.UserOrderByWithRelationInput -} - -export type TicketCommentWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: Prisma.TicketCommentWhereInput | Prisma.TicketCommentWhereInput[] - OR?: Prisma.TicketCommentWhereInput[] - NOT?: Prisma.TicketCommentWhereInput | Prisma.TicketCommentWhereInput[] - ticketId?: Prisma.StringFilter<"TicketComment"> | string - authorId?: Prisma.StringFilter<"TicketComment"> | string - visibility?: Prisma.EnumCommentVisibilityFilter<"TicketComment"> | $Enums.CommentVisibility - body?: Prisma.StringFilter<"TicketComment"> | string - attachments?: Prisma.JsonNullableFilter<"TicketComment"> - createdAt?: Prisma.DateTimeFilter<"TicketComment"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"TicketComment"> | Date | string - ticket?: Prisma.XOR - author?: Prisma.XOR -}, "id"> - -export type TicketCommentOrderByWithAggregationInput = { - id?: Prisma.SortOrder - ticketId?: Prisma.SortOrder - authorId?: Prisma.SortOrder - visibility?: Prisma.SortOrder - body?: Prisma.SortOrder - attachments?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - _count?: Prisma.TicketCommentCountOrderByAggregateInput - _max?: Prisma.TicketCommentMaxOrderByAggregateInput - _min?: Prisma.TicketCommentMinOrderByAggregateInput -} - -export type TicketCommentScalarWhereWithAggregatesInput = { - AND?: Prisma.TicketCommentScalarWhereWithAggregatesInput | Prisma.TicketCommentScalarWhereWithAggregatesInput[] - OR?: Prisma.TicketCommentScalarWhereWithAggregatesInput[] - NOT?: Prisma.TicketCommentScalarWhereWithAggregatesInput | Prisma.TicketCommentScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"TicketComment"> | string - ticketId?: Prisma.StringWithAggregatesFilter<"TicketComment"> | string - authorId?: Prisma.StringWithAggregatesFilter<"TicketComment"> | string - visibility?: Prisma.EnumCommentVisibilityWithAggregatesFilter<"TicketComment"> | $Enums.CommentVisibility - body?: Prisma.StringWithAggregatesFilter<"TicketComment"> | string - attachments?: Prisma.JsonNullableWithAggregatesFilter<"TicketComment"> - createdAt?: Prisma.DateTimeWithAggregatesFilter<"TicketComment"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"TicketComment"> | Date | string -} - -export type TicketCommentCreateInput = { - id?: string - visibility?: $Enums.CommentVisibility - body: string - attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Date | string - updatedAt?: Date | string - ticket: Prisma.TicketCreateNestedOneWithoutCommentsInput - author: Prisma.UserCreateNestedOneWithoutCommentsInput -} - -export type TicketCommentUncheckedCreateInput = { - id?: string - ticketId: string - authorId: string - visibility?: $Enums.CommentVisibility - body: string - attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Date | string - updatedAt?: Date | string -} - -export type TicketCommentUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - visibility?: Prisma.EnumCommentVisibilityFieldUpdateOperationsInput | $Enums.CommentVisibility - body?: Prisma.StringFieldUpdateOperationsInput | string - attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - ticket?: Prisma.TicketUpdateOneRequiredWithoutCommentsNestedInput - author?: Prisma.UserUpdateOneRequiredWithoutCommentsNestedInput -} - -export type TicketCommentUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - ticketId?: Prisma.StringFieldUpdateOperationsInput | string - authorId?: Prisma.StringFieldUpdateOperationsInput | string - visibility?: Prisma.EnumCommentVisibilityFieldUpdateOperationsInput | $Enums.CommentVisibility - body?: Prisma.StringFieldUpdateOperationsInput | string - attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TicketCommentCreateManyInput = { - id?: string - ticketId: string - authorId: string - visibility?: $Enums.CommentVisibility - body: string - attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Date | string - updatedAt?: Date | string -} - -export type TicketCommentUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - visibility?: Prisma.EnumCommentVisibilityFieldUpdateOperationsInput | $Enums.CommentVisibility - body?: Prisma.StringFieldUpdateOperationsInput | string - attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TicketCommentUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - ticketId?: Prisma.StringFieldUpdateOperationsInput | string - authorId?: Prisma.StringFieldUpdateOperationsInput | string - visibility?: Prisma.EnumCommentVisibilityFieldUpdateOperationsInput | $Enums.CommentVisibility - body?: Prisma.StringFieldUpdateOperationsInput | string - attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TicketCommentListRelationFilter = { - every?: Prisma.TicketCommentWhereInput - some?: Prisma.TicketCommentWhereInput - none?: Prisma.TicketCommentWhereInput -} - -export type TicketCommentOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type TicketCommentCountOrderByAggregateInput = { - id?: Prisma.SortOrder - ticketId?: Prisma.SortOrder - authorId?: Prisma.SortOrder - visibility?: Prisma.SortOrder - body?: Prisma.SortOrder - attachments?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type TicketCommentMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - ticketId?: Prisma.SortOrder - authorId?: Prisma.SortOrder - visibility?: Prisma.SortOrder - body?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type TicketCommentMinOrderByAggregateInput = { - id?: Prisma.SortOrder - ticketId?: Prisma.SortOrder - authorId?: Prisma.SortOrder - visibility?: Prisma.SortOrder - body?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type TicketCommentCreateNestedManyWithoutAuthorInput = { - create?: Prisma.XOR | Prisma.TicketCommentCreateWithoutAuthorInput[] | Prisma.TicketCommentUncheckedCreateWithoutAuthorInput[] - connectOrCreate?: Prisma.TicketCommentCreateOrConnectWithoutAuthorInput | Prisma.TicketCommentCreateOrConnectWithoutAuthorInput[] - createMany?: Prisma.TicketCommentCreateManyAuthorInputEnvelope - connect?: Prisma.TicketCommentWhereUniqueInput | Prisma.TicketCommentWhereUniqueInput[] -} - -export type TicketCommentUncheckedCreateNestedManyWithoutAuthorInput = { - create?: Prisma.XOR | Prisma.TicketCommentCreateWithoutAuthorInput[] | Prisma.TicketCommentUncheckedCreateWithoutAuthorInput[] - connectOrCreate?: Prisma.TicketCommentCreateOrConnectWithoutAuthorInput | Prisma.TicketCommentCreateOrConnectWithoutAuthorInput[] - createMany?: Prisma.TicketCommentCreateManyAuthorInputEnvelope - connect?: Prisma.TicketCommentWhereUniqueInput | Prisma.TicketCommentWhereUniqueInput[] -} - -export type TicketCommentUpdateManyWithoutAuthorNestedInput = { - create?: Prisma.XOR | Prisma.TicketCommentCreateWithoutAuthorInput[] | Prisma.TicketCommentUncheckedCreateWithoutAuthorInput[] - connectOrCreate?: Prisma.TicketCommentCreateOrConnectWithoutAuthorInput | Prisma.TicketCommentCreateOrConnectWithoutAuthorInput[] - upsert?: Prisma.TicketCommentUpsertWithWhereUniqueWithoutAuthorInput | Prisma.TicketCommentUpsertWithWhereUniqueWithoutAuthorInput[] - createMany?: Prisma.TicketCommentCreateManyAuthorInputEnvelope - set?: Prisma.TicketCommentWhereUniqueInput | Prisma.TicketCommentWhereUniqueInput[] - disconnect?: Prisma.TicketCommentWhereUniqueInput | Prisma.TicketCommentWhereUniqueInput[] - delete?: Prisma.TicketCommentWhereUniqueInput | Prisma.TicketCommentWhereUniqueInput[] - connect?: Prisma.TicketCommentWhereUniqueInput | Prisma.TicketCommentWhereUniqueInput[] - update?: Prisma.TicketCommentUpdateWithWhereUniqueWithoutAuthorInput | Prisma.TicketCommentUpdateWithWhereUniqueWithoutAuthorInput[] - updateMany?: Prisma.TicketCommentUpdateManyWithWhereWithoutAuthorInput | Prisma.TicketCommentUpdateManyWithWhereWithoutAuthorInput[] - deleteMany?: Prisma.TicketCommentScalarWhereInput | Prisma.TicketCommentScalarWhereInput[] -} - -export type TicketCommentUncheckedUpdateManyWithoutAuthorNestedInput = { - create?: Prisma.XOR | Prisma.TicketCommentCreateWithoutAuthorInput[] | Prisma.TicketCommentUncheckedCreateWithoutAuthorInput[] - connectOrCreate?: Prisma.TicketCommentCreateOrConnectWithoutAuthorInput | Prisma.TicketCommentCreateOrConnectWithoutAuthorInput[] - upsert?: Prisma.TicketCommentUpsertWithWhereUniqueWithoutAuthorInput | Prisma.TicketCommentUpsertWithWhereUniqueWithoutAuthorInput[] - createMany?: Prisma.TicketCommentCreateManyAuthorInputEnvelope - set?: Prisma.TicketCommentWhereUniqueInput | Prisma.TicketCommentWhereUniqueInput[] - disconnect?: Prisma.TicketCommentWhereUniqueInput | Prisma.TicketCommentWhereUniqueInput[] - delete?: Prisma.TicketCommentWhereUniqueInput | Prisma.TicketCommentWhereUniqueInput[] - connect?: Prisma.TicketCommentWhereUniqueInput | Prisma.TicketCommentWhereUniqueInput[] - update?: Prisma.TicketCommentUpdateWithWhereUniqueWithoutAuthorInput | Prisma.TicketCommentUpdateWithWhereUniqueWithoutAuthorInput[] - updateMany?: Prisma.TicketCommentUpdateManyWithWhereWithoutAuthorInput | Prisma.TicketCommentUpdateManyWithWhereWithoutAuthorInput[] - deleteMany?: Prisma.TicketCommentScalarWhereInput | Prisma.TicketCommentScalarWhereInput[] -} - -export type TicketCommentCreateNestedManyWithoutTicketInput = { - create?: Prisma.XOR | Prisma.TicketCommentCreateWithoutTicketInput[] | Prisma.TicketCommentUncheckedCreateWithoutTicketInput[] - connectOrCreate?: Prisma.TicketCommentCreateOrConnectWithoutTicketInput | Prisma.TicketCommentCreateOrConnectWithoutTicketInput[] - createMany?: Prisma.TicketCommentCreateManyTicketInputEnvelope - connect?: Prisma.TicketCommentWhereUniqueInput | Prisma.TicketCommentWhereUniqueInput[] -} - -export type TicketCommentUncheckedCreateNestedManyWithoutTicketInput = { - create?: Prisma.XOR | Prisma.TicketCommentCreateWithoutTicketInput[] | Prisma.TicketCommentUncheckedCreateWithoutTicketInput[] - connectOrCreate?: Prisma.TicketCommentCreateOrConnectWithoutTicketInput | Prisma.TicketCommentCreateOrConnectWithoutTicketInput[] - createMany?: Prisma.TicketCommentCreateManyTicketInputEnvelope - connect?: Prisma.TicketCommentWhereUniqueInput | Prisma.TicketCommentWhereUniqueInput[] -} - -export type TicketCommentUpdateManyWithoutTicketNestedInput = { - create?: Prisma.XOR | Prisma.TicketCommentCreateWithoutTicketInput[] | Prisma.TicketCommentUncheckedCreateWithoutTicketInput[] - connectOrCreate?: Prisma.TicketCommentCreateOrConnectWithoutTicketInput | Prisma.TicketCommentCreateOrConnectWithoutTicketInput[] - upsert?: Prisma.TicketCommentUpsertWithWhereUniqueWithoutTicketInput | Prisma.TicketCommentUpsertWithWhereUniqueWithoutTicketInput[] - createMany?: Prisma.TicketCommentCreateManyTicketInputEnvelope - set?: Prisma.TicketCommentWhereUniqueInput | Prisma.TicketCommentWhereUniqueInput[] - disconnect?: Prisma.TicketCommentWhereUniqueInput | Prisma.TicketCommentWhereUniqueInput[] - delete?: Prisma.TicketCommentWhereUniqueInput | Prisma.TicketCommentWhereUniqueInput[] - connect?: Prisma.TicketCommentWhereUniqueInput | Prisma.TicketCommentWhereUniqueInput[] - update?: Prisma.TicketCommentUpdateWithWhereUniqueWithoutTicketInput | Prisma.TicketCommentUpdateWithWhereUniqueWithoutTicketInput[] - updateMany?: Prisma.TicketCommentUpdateManyWithWhereWithoutTicketInput | Prisma.TicketCommentUpdateManyWithWhereWithoutTicketInput[] - deleteMany?: Prisma.TicketCommentScalarWhereInput | Prisma.TicketCommentScalarWhereInput[] -} - -export type TicketCommentUncheckedUpdateManyWithoutTicketNestedInput = { - create?: Prisma.XOR | Prisma.TicketCommentCreateWithoutTicketInput[] | Prisma.TicketCommentUncheckedCreateWithoutTicketInput[] - connectOrCreate?: Prisma.TicketCommentCreateOrConnectWithoutTicketInput | Prisma.TicketCommentCreateOrConnectWithoutTicketInput[] - upsert?: Prisma.TicketCommentUpsertWithWhereUniqueWithoutTicketInput | Prisma.TicketCommentUpsertWithWhereUniqueWithoutTicketInput[] - createMany?: Prisma.TicketCommentCreateManyTicketInputEnvelope - set?: Prisma.TicketCommentWhereUniqueInput | Prisma.TicketCommentWhereUniqueInput[] - disconnect?: Prisma.TicketCommentWhereUniqueInput | Prisma.TicketCommentWhereUniqueInput[] - delete?: Prisma.TicketCommentWhereUniqueInput | Prisma.TicketCommentWhereUniqueInput[] - connect?: Prisma.TicketCommentWhereUniqueInput | Prisma.TicketCommentWhereUniqueInput[] - update?: Prisma.TicketCommentUpdateWithWhereUniqueWithoutTicketInput | Prisma.TicketCommentUpdateWithWhereUniqueWithoutTicketInput[] - updateMany?: Prisma.TicketCommentUpdateManyWithWhereWithoutTicketInput | Prisma.TicketCommentUpdateManyWithWhereWithoutTicketInput[] - deleteMany?: Prisma.TicketCommentScalarWhereInput | Prisma.TicketCommentScalarWhereInput[] -} - -export type EnumCommentVisibilityFieldUpdateOperationsInput = { - set?: $Enums.CommentVisibility -} - -export type TicketCommentCreateWithoutAuthorInput = { - id?: string - visibility?: $Enums.CommentVisibility - body: string - attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Date | string - updatedAt?: Date | string - ticket: Prisma.TicketCreateNestedOneWithoutCommentsInput -} - -export type TicketCommentUncheckedCreateWithoutAuthorInput = { - id?: string - ticketId: string - visibility?: $Enums.CommentVisibility - body: string - attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Date | string - updatedAt?: Date | string -} - -export type TicketCommentCreateOrConnectWithoutAuthorInput = { - where: Prisma.TicketCommentWhereUniqueInput - create: Prisma.XOR -} - -export type TicketCommentCreateManyAuthorInputEnvelope = { - data: Prisma.TicketCommentCreateManyAuthorInput | Prisma.TicketCommentCreateManyAuthorInput[] -} - -export type TicketCommentUpsertWithWhereUniqueWithoutAuthorInput = { - where: Prisma.TicketCommentWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type TicketCommentUpdateWithWhereUniqueWithoutAuthorInput = { - where: Prisma.TicketCommentWhereUniqueInput - data: Prisma.XOR -} - -export type TicketCommentUpdateManyWithWhereWithoutAuthorInput = { - where: Prisma.TicketCommentScalarWhereInput - data: Prisma.XOR -} - -export type TicketCommentScalarWhereInput = { - AND?: Prisma.TicketCommentScalarWhereInput | Prisma.TicketCommentScalarWhereInput[] - OR?: Prisma.TicketCommentScalarWhereInput[] - NOT?: Prisma.TicketCommentScalarWhereInput | Prisma.TicketCommentScalarWhereInput[] - id?: Prisma.StringFilter<"TicketComment"> | string - ticketId?: Prisma.StringFilter<"TicketComment"> | string - authorId?: Prisma.StringFilter<"TicketComment"> | string - visibility?: Prisma.EnumCommentVisibilityFilter<"TicketComment"> | $Enums.CommentVisibility - body?: Prisma.StringFilter<"TicketComment"> | string - attachments?: Prisma.JsonNullableFilter<"TicketComment"> - createdAt?: Prisma.DateTimeFilter<"TicketComment"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"TicketComment"> | Date | string -} - -export type TicketCommentCreateWithoutTicketInput = { - id?: string - visibility?: $Enums.CommentVisibility - body: string - attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Date | string - updatedAt?: Date | string - author: Prisma.UserCreateNestedOneWithoutCommentsInput -} - -export type TicketCommentUncheckedCreateWithoutTicketInput = { - id?: string - authorId: string - visibility?: $Enums.CommentVisibility - body: string - attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Date | string - updatedAt?: Date | string -} - -export type TicketCommentCreateOrConnectWithoutTicketInput = { - where: Prisma.TicketCommentWhereUniqueInput - create: Prisma.XOR -} - -export type TicketCommentCreateManyTicketInputEnvelope = { - data: Prisma.TicketCommentCreateManyTicketInput | Prisma.TicketCommentCreateManyTicketInput[] -} - -export type TicketCommentUpsertWithWhereUniqueWithoutTicketInput = { - where: Prisma.TicketCommentWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type TicketCommentUpdateWithWhereUniqueWithoutTicketInput = { - where: Prisma.TicketCommentWhereUniqueInput - data: Prisma.XOR -} - -export type TicketCommentUpdateManyWithWhereWithoutTicketInput = { - where: Prisma.TicketCommentScalarWhereInput - data: Prisma.XOR -} - -export type TicketCommentCreateManyAuthorInput = { - id?: string - ticketId: string - visibility?: $Enums.CommentVisibility - body: string - attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Date | string - updatedAt?: Date | string -} - -export type TicketCommentUpdateWithoutAuthorInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - visibility?: Prisma.EnumCommentVisibilityFieldUpdateOperationsInput | $Enums.CommentVisibility - body?: Prisma.StringFieldUpdateOperationsInput | string - attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - ticket?: Prisma.TicketUpdateOneRequiredWithoutCommentsNestedInput -} - -export type TicketCommentUncheckedUpdateWithoutAuthorInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - ticketId?: Prisma.StringFieldUpdateOperationsInput | string - visibility?: Prisma.EnumCommentVisibilityFieldUpdateOperationsInput | $Enums.CommentVisibility - body?: Prisma.StringFieldUpdateOperationsInput | string - attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TicketCommentUncheckedUpdateManyWithoutAuthorInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - ticketId?: Prisma.StringFieldUpdateOperationsInput | string - visibility?: Prisma.EnumCommentVisibilityFieldUpdateOperationsInput | $Enums.CommentVisibility - body?: Prisma.StringFieldUpdateOperationsInput | string - attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TicketCommentCreateManyTicketInput = { - id?: string - authorId: string - visibility?: $Enums.CommentVisibility - body: string - attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Date | string - updatedAt?: Date | string -} - -export type TicketCommentUpdateWithoutTicketInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - visibility?: Prisma.EnumCommentVisibilityFieldUpdateOperationsInput | $Enums.CommentVisibility - body?: Prisma.StringFieldUpdateOperationsInput | string - attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - author?: Prisma.UserUpdateOneRequiredWithoutCommentsNestedInput -} - -export type TicketCommentUncheckedUpdateWithoutTicketInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - authorId?: Prisma.StringFieldUpdateOperationsInput | string - visibility?: Prisma.EnumCommentVisibilityFieldUpdateOperationsInput | $Enums.CommentVisibility - body?: Prisma.StringFieldUpdateOperationsInput | string - attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TicketCommentUncheckedUpdateManyWithoutTicketInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - authorId?: Prisma.StringFieldUpdateOperationsInput | string - visibility?: Prisma.EnumCommentVisibilityFieldUpdateOperationsInput | $Enums.CommentVisibility - body?: Prisma.StringFieldUpdateOperationsInput | string - attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - - - -export type TicketCommentSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - ticketId?: boolean - authorId?: boolean - visibility?: boolean - body?: boolean - attachments?: boolean - createdAt?: boolean - updatedAt?: boolean - ticket?: boolean | Prisma.TicketDefaultArgs - author?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["ticketComment"]> - -export type TicketCommentSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - ticketId?: boolean - authorId?: boolean - visibility?: boolean - body?: boolean - attachments?: boolean - createdAt?: boolean - updatedAt?: boolean - ticket?: boolean | Prisma.TicketDefaultArgs - author?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["ticketComment"]> - -export type TicketCommentSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - ticketId?: boolean - authorId?: boolean - visibility?: boolean - body?: boolean - attachments?: boolean - createdAt?: boolean - updatedAt?: boolean - ticket?: boolean | Prisma.TicketDefaultArgs - author?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["ticketComment"]> - -export type TicketCommentSelectScalar = { - id?: boolean - ticketId?: boolean - authorId?: boolean - visibility?: boolean - body?: boolean - attachments?: boolean - createdAt?: boolean - updatedAt?: boolean -} - -export type TicketCommentOmit = runtime.Types.Extensions.GetOmit<"id" | "ticketId" | "authorId" | "visibility" | "body" | "attachments" | "createdAt" | "updatedAt", ExtArgs["result"]["ticketComment"]> -export type TicketCommentInclude = { - ticket?: boolean | Prisma.TicketDefaultArgs - author?: boolean | Prisma.UserDefaultArgs -} -export type TicketCommentIncludeCreateManyAndReturn = { - ticket?: boolean | Prisma.TicketDefaultArgs - author?: boolean | Prisma.UserDefaultArgs -} -export type TicketCommentIncludeUpdateManyAndReturn = { - ticket?: boolean | Prisma.TicketDefaultArgs - author?: boolean | Prisma.UserDefaultArgs -} - -export type $TicketCommentPayload = { - name: "TicketComment" - objects: { - ticket: Prisma.$TicketPayload - author: Prisma.$UserPayload - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - ticketId: string - authorId: string - visibility: $Enums.CommentVisibility - body: string - attachments: runtime.JsonValue | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["ticketComment"]> - composites: {} -} - -export type TicketCommentGetPayload = runtime.Types.Result.GetResult - -export type TicketCommentCountArgs = - Omit & { - select?: TicketCommentCountAggregateInputType | true - } - -export interface TicketCommentDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['TicketComment'], meta: { name: 'TicketComment' } } - /** - * Find zero or one TicketComment that matches the filter. - * @param {TicketCommentFindUniqueArgs} args - Arguments to find a TicketComment - * @example - * // Get one TicketComment - * const ticketComment = await prisma.ticketComment.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TicketCommentClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one TicketComment that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {TicketCommentFindUniqueOrThrowArgs} args - Arguments to find a TicketComment - * @example - * // Get one TicketComment - * const ticketComment = await prisma.ticketComment.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TicketCommentClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first TicketComment that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketCommentFindFirstArgs} args - Arguments to find a TicketComment - * @example - * // Get one TicketComment - * const ticketComment = await prisma.ticketComment.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TicketCommentClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first TicketComment that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketCommentFindFirstOrThrowArgs} args - Arguments to find a TicketComment - * @example - * // Get one TicketComment - * const ticketComment = await prisma.ticketComment.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TicketCommentClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more TicketComments that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketCommentFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all TicketComments - * const ticketComments = await prisma.ticketComment.findMany() - * - * // Get first 10 TicketComments - * const ticketComments = await prisma.ticketComment.findMany({ take: 10 }) - * - * // Only select the `id` - * const ticketCommentWithIdOnly = await prisma.ticketComment.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a TicketComment. - * @param {TicketCommentCreateArgs} args - Arguments to create a TicketComment. - * @example - * // Create one TicketComment - * const TicketComment = await prisma.ticketComment.create({ - * data: { - * // ... data to create a TicketComment - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__TicketCommentClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many TicketComments. - * @param {TicketCommentCreateManyArgs} args - Arguments to create many TicketComments. - * @example - * // Create many TicketComments - * const ticketComment = await prisma.ticketComment.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many TicketComments and returns the data saved in the database. - * @param {TicketCommentCreateManyAndReturnArgs} args - Arguments to create many TicketComments. - * @example - * // Create many TicketComments - * const ticketComment = await prisma.ticketComment.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many TicketComments and only return the `id` - * const ticketCommentWithIdOnly = await prisma.ticketComment.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a TicketComment. - * @param {TicketCommentDeleteArgs} args - Arguments to delete one TicketComment. - * @example - * // Delete one TicketComment - * const TicketComment = await prisma.ticketComment.delete({ - * where: { - * // ... filter to delete one TicketComment - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__TicketCommentClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one TicketComment. - * @param {TicketCommentUpdateArgs} args - Arguments to update one TicketComment. - * @example - * // Update one TicketComment - * const ticketComment = await prisma.ticketComment.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__TicketCommentClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more TicketComments. - * @param {TicketCommentDeleteManyArgs} args - Arguments to filter TicketComments to delete. - * @example - * // Delete a few TicketComments - * const { count } = await prisma.ticketComment.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more TicketComments. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketCommentUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many TicketComments - * const ticketComment = await prisma.ticketComment.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more TicketComments and returns the data updated in the database. - * @param {TicketCommentUpdateManyAndReturnArgs} args - Arguments to update many TicketComments. - * @example - * // Update many TicketComments - * const ticketComment = await prisma.ticketComment.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more TicketComments and only return the `id` - * const ticketCommentWithIdOnly = await prisma.ticketComment.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one TicketComment. - * @param {TicketCommentUpsertArgs} args - Arguments to update or create a TicketComment. - * @example - * // Update or create a TicketComment - * const ticketComment = await prisma.ticketComment.upsert({ - * create: { - * // ... data to create a TicketComment - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the TicketComment we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TicketCommentClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of TicketComments. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketCommentCountArgs} args - Arguments to filter TicketComments to count. - * @example - * // Count the number of TicketComments - * const count = await prisma.ticketComment.count({ - * where: { - * // ... the filter for the TicketComments we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a TicketComment. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketCommentAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by TicketComment. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketCommentGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends TicketCommentGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: TicketCommentGroupByArgs['orderBy'] } - : { orderBy?: TicketCommentGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetTicketCommentGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the TicketComment model - */ -readonly fields: TicketCommentFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for TicketComment. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__TicketCommentClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - ticket = {}>(args?: Prisma.Subset>): Prisma.Prisma__TicketClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - author = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the TicketComment model - */ -export interface TicketCommentFieldRefs { - readonly id: Prisma.FieldRef<"TicketComment", 'String'> - readonly ticketId: Prisma.FieldRef<"TicketComment", 'String'> - readonly authorId: Prisma.FieldRef<"TicketComment", 'String'> - readonly visibility: Prisma.FieldRef<"TicketComment", 'CommentVisibility'> - readonly body: Prisma.FieldRef<"TicketComment", 'String'> - readonly attachments: Prisma.FieldRef<"TicketComment", 'Json'> - readonly createdAt: Prisma.FieldRef<"TicketComment", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"TicketComment", 'DateTime'> -} - - -// Custom InputTypes -/** - * TicketComment findUnique - */ -export type TicketCommentFindUniqueArgs = { - /** - * Select specific fields to fetch from the TicketComment - */ - select?: Prisma.TicketCommentSelect | null - /** - * Omit specific fields from the TicketComment - */ - omit?: Prisma.TicketCommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketCommentInclude | null - /** - * Filter, which TicketComment to fetch. - */ - where: Prisma.TicketCommentWhereUniqueInput -} - -/** - * TicketComment findUniqueOrThrow - */ -export type TicketCommentFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the TicketComment - */ - select?: Prisma.TicketCommentSelect | null - /** - * Omit specific fields from the TicketComment - */ - omit?: Prisma.TicketCommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketCommentInclude | null - /** - * Filter, which TicketComment to fetch. - */ - where: Prisma.TicketCommentWhereUniqueInput -} - -/** - * TicketComment findFirst - */ -export type TicketCommentFindFirstArgs = { - /** - * Select specific fields to fetch from the TicketComment - */ - select?: Prisma.TicketCommentSelect | null - /** - * Omit specific fields from the TicketComment - */ - omit?: Prisma.TicketCommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketCommentInclude | null - /** - * Filter, which TicketComment to fetch. - */ - where?: Prisma.TicketCommentWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of TicketComments to fetch. - */ - orderBy?: Prisma.TicketCommentOrderByWithRelationInput | Prisma.TicketCommentOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for TicketComments. - */ - cursor?: Prisma.TicketCommentWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` TicketComments from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` TicketComments. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of TicketComments. - */ - distinct?: Prisma.TicketCommentScalarFieldEnum | Prisma.TicketCommentScalarFieldEnum[] -} - -/** - * TicketComment findFirstOrThrow - */ -export type TicketCommentFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the TicketComment - */ - select?: Prisma.TicketCommentSelect | null - /** - * Omit specific fields from the TicketComment - */ - omit?: Prisma.TicketCommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketCommentInclude | null - /** - * Filter, which TicketComment to fetch. - */ - where?: Prisma.TicketCommentWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of TicketComments to fetch. - */ - orderBy?: Prisma.TicketCommentOrderByWithRelationInput | Prisma.TicketCommentOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for TicketComments. - */ - cursor?: Prisma.TicketCommentWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` TicketComments from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` TicketComments. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of TicketComments. - */ - distinct?: Prisma.TicketCommentScalarFieldEnum | Prisma.TicketCommentScalarFieldEnum[] -} - -/** - * TicketComment findMany - */ -export type TicketCommentFindManyArgs = { - /** - * Select specific fields to fetch from the TicketComment - */ - select?: Prisma.TicketCommentSelect | null - /** - * Omit specific fields from the TicketComment - */ - omit?: Prisma.TicketCommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketCommentInclude | null - /** - * Filter, which TicketComments to fetch. - */ - where?: Prisma.TicketCommentWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of TicketComments to fetch. - */ - orderBy?: Prisma.TicketCommentOrderByWithRelationInput | Prisma.TicketCommentOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing TicketComments. - */ - cursor?: Prisma.TicketCommentWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` TicketComments from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` TicketComments. - */ - skip?: number - distinct?: Prisma.TicketCommentScalarFieldEnum | Prisma.TicketCommentScalarFieldEnum[] -} - -/** - * TicketComment create - */ -export type TicketCommentCreateArgs = { - /** - * Select specific fields to fetch from the TicketComment - */ - select?: Prisma.TicketCommentSelect | null - /** - * Omit specific fields from the TicketComment - */ - omit?: Prisma.TicketCommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketCommentInclude | null - /** - * The data needed to create a TicketComment. - */ - data: Prisma.XOR -} - -/** - * TicketComment createMany - */ -export type TicketCommentCreateManyArgs = { - /** - * The data used to create many TicketComments. - */ - data: Prisma.TicketCommentCreateManyInput | Prisma.TicketCommentCreateManyInput[] -} - -/** - * TicketComment createManyAndReturn - */ -export type TicketCommentCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the TicketComment - */ - select?: Prisma.TicketCommentSelectCreateManyAndReturn | null - /** - * Omit specific fields from the TicketComment - */ - omit?: Prisma.TicketCommentOmit | null - /** - * The data used to create many TicketComments. - */ - data: Prisma.TicketCommentCreateManyInput | Prisma.TicketCommentCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketCommentIncludeCreateManyAndReturn | null -} - -/** - * TicketComment update - */ -export type TicketCommentUpdateArgs = { - /** - * Select specific fields to fetch from the TicketComment - */ - select?: Prisma.TicketCommentSelect | null - /** - * Omit specific fields from the TicketComment - */ - omit?: Prisma.TicketCommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketCommentInclude | null - /** - * The data needed to update a TicketComment. - */ - data: Prisma.XOR - /** - * Choose, which TicketComment to update. - */ - where: Prisma.TicketCommentWhereUniqueInput -} - -/** - * TicketComment updateMany - */ -export type TicketCommentUpdateManyArgs = { - /** - * The data used to update TicketComments. - */ - data: Prisma.XOR - /** - * Filter which TicketComments to update - */ - where?: Prisma.TicketCommentWhereInput - /** - * Limit how many TicketComments to update. - */ - limit?: number -} - -/** - * TicketComment updateManyAndReturn - */ -export type TicketCommentUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the TicketComment - */ - select?: Prisma.TicketCommentSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the TicketComment - */ - omit?: Prisma.TicketCommentOmit | null - /** - * The data used to update TicketComments. - */ - data: Prisma.XOR - /** - * Filter which TicketComments to update - */ - where?: Prisma.TicketCommentWhereInput - /** - * Limit how many TicketComments to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketCommentIncludeUpdateManyAndReturn | null -} - -/** - * TicketComment upsert - */ -export type TicketCommentUpsertArgs = { - /** - * Select specific fields to fetch from the TicketComment - */ - select?: Prisma.TicketCommentSelect | null - /** - * Omit specific fields from the TicketComment - */ - omit?: Prisma.TicketCommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketCommentInclude | null - /** - * The filter to search for the TicketComment to update in case it exists. - */ - where: Prisma.TicketCommentWhereUniqueInput - /** - * In case the TicketComment found by the `where` argument doesn't exist, create a new TicketComment with this data. - */ - create: Prisma.XOR - /** - * In case the TicketComment was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * TicketComment delete - */ -export type TicketCommentDeleteArgs = { - /** - * Select specific fields to fetch from the TicketComment - */ - select?: Prisma.TicketCommentSelect | null - /** - * Omit specific fields from the TicketComment - */ - omit?: Prisma.TicketCommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketCommentInclude | null - /** - * Filter which TicketComment to delete. - */ - where: Prisma.TicketCommentWhereUniqueInput -} - -/** - * TicketComment deleteMany - */ -export type TicketCommentDeleteManyArgs = { - /** - * Filter which TicketComments to delete - */ - where?: Prisma.TicketCommentWhereInput - /** - * Limit how many TicketComments to delete. - */ - limit?: number -} - -/** - * TicketComment without action - */ -export type TicketCommentDefaultArgs = { - /** - * Select specific fields to fetch from the TicketComment - */ - select?: Prisma.TicketCommentSelect | null - /** - * Omit specific fields from the TicketComment - */ - omit?: Prisma.TicketCommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketCommentInclude | null -} diff --git a/src/generated/prisma/models/TicketEvent.ts b/src/generated/prisma/models/TicketEvent.ts deleted file mode 100644 index 207845f..0000000 --- a/src/generated/prisma/models/TicketEvent.ts +++ /dev/null @@ -1,1331 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `TicketEvent` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model TicketEvent - * - */ -export type TicketEventModel = runtime.Types.Result.DefaultSelection - -export type AggregateTicketEvent = { - _count: TicketEventCountAggregateOutputType | null - _min: TicketEventMinAggregateOutputType | null - _max: TicketEventMaxAggregateOutputType | null -} - -export type TicketEventMinAggregateOutputType = { - id: string | null - ticketId: string | null - type: string | null - createdAt: Date | null -} - -export type TicketEventMaxAggregateOutputType = { - id: string | null - ticketId: string | null - type: string | null - createdAt: Date | null -} - -export type TicketEventCountAggregateOutputType = { - id: number - ticketId: number - type: number - payload: number - createdAt: number - _all: number -} - - -export type TicketEventMinAggregateInputType = { - id?: true - ticketId?: true - type?: true - createdAt?: true -} - -export type TicketEventMaxAggregateInputType = { - id?: true - ticketId?: true - type?: true - createdAt?: true -} - -export type TicketEventCountAggregateInputType = { - id?: true - ticketId?: true - type?: true - payload?: true - createdAt?: true - _all?: true -} - -export type TicketEventAggregateArgs = { - /** - * Filter which TicketEvent to aggregate. - */ - where?: Prisma.TicketEventWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of TicketEvents to fetch. - */ - orderBy?: Prisma.TicketEventOrderByWithRelationInput | Prisma.TicketEventOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.TicketEventWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` TicketEvents from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` TicketEvents. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned TicketEvents - **/ - _count?: true | TicketEventCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: TicketEventMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: TicketEventMaxAggregateInputType -} - -export type GetTicketEventAggregateType = { - [P in keyof T & keyof AggregateTicketEvent]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type TicketEventGroupByArgs = { - where?: Prisma.TicketEventWhereInput - orderBy?: Prisma.TicketEventOrderByWithAggregationInput | Prisma.TicketEventOrderByWithAggregationInput[] - by: Prisma.TicketEventScalarFieldEnum[] | Prisma.TicketEventScalarFieldEnum - having?: Prisma.TicketEventScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: TicketEventCountAggregateInputType | true - _min?: TicketEventMinAggregateInputType - _max?: TicketEventMaxAggregateInputType -} - -export type TicketEventGroupByOutputType = { - id: string - ticketId: string - type: string - payload: runtime.JsonValue - createdAt: Date - _count: TicketEventCountAggregateOutputType | null - _min: TicketEventMinAggregateOutputType | null - _max: TicketEventMaxAggregateOutputType | null -} - -type GetTicketEventGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof TicketEventGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type TicketEventWhereInput = { - AND?: Prisma.TicketEventWhereInput | Prisma.TicketEventWhereInput[] - OR?: Prisma.TicketEventWhereInput[] - NOT?: Prisma.TicketEventWhereInput | Prisma.TicketEventWhereInput[] - id?: Prisma.StringFilter<"TicketEvent"> | string - ticketId?: Prisma.StringFilter<"TicketEvent"> | string - type?: Prisma.StringFilter<"TicketEvent"> | string - payload?: Prisma.JsonFilter<"TicketEvent"> - createdAt?: Prisma.DateTimeFilter<"TicketEvent"> | Date | string - ticket?: Prisma.XOR -} - -export type TicketEventOrderByWithRelationInput = { - id?: Prisma.SortOrder - ticketId?: Prisma.SortOrder - type?: Prisma.SortOrder - payload?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - ticket?: Prisma.TicketOrderByWithRelationInput -} - -export type TicketEventWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: Prisma.TicketEventWhereInput | Prisma.TicketEventWhereInput[] - OR?: Prisma.TicketEventWhereInput[] - NOT?: Prisma.TicketEventWhereInput | Prisma.TicketEventWhereInput[] - ticketId?: Prisma.StringFilter<"TicketEvent"> | string - type?: Prisma.StringFilter<"TicketEvent"> | string - payload?: Prisma.JsonFilter<"TicketEvent"> - createdAt?: Prisma.DateTimeFilter<"TicketEvent"> | Date | string - ticket?: Prisma.XOR -}, "id"> - -export type TicketEventOrderByWithAggregationInput = { - id?: Prisma.SortOrder - ticketId?: Prisma.SortOrder - type?: Prisma.SortOrder - payload?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - _count?: Prisma.TicketEventCountOrderByAggregateInput - _max?: Prisma.TicketEventMaxOrderByAggregateInput - _min?: Prisma.TicketEventMinOrderByAggregateInput -} - -export type TicketEventScalarWhereWithAggregatesInput = { - AND?: Prisma.TicketEventScalarWhereWithAggregatesInput | Prisma.TicketEventScalarWhereWithAggregatesInput[] - OR?: Prisma.TicketEventScalarWhereWithAggregatesInput[] - NOT?: Prisma.TicketEventScalarWhereWithAggregatesInput | Prisma.TicketEventScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"TicketEvent"> | string - ticketId?: Prisma.StringWithAggregatesFilter<"TicketEvent"> | string - type?: Prisma.StringWithAggregatesFilter<"TicketEvent"> | string - payload?: Prisma.JsonWithAggregatesFilter<"TicketEvent"> - createdAt?: Prisma.DateTimeWithAggregatesFilter<"TicketEvent"> | Date | string -} - -export type TicketEventCreateInput = { - id?: string - type: string - payload: Prisma.JsonNullValueInput | runtime.InputJsonValue - createdAt?: Date | string - ticket: Prisma.TicketCreateNestedOneWithoutEventsInput -} - -export type TicketEventUncheckedCreateInput = { - id?: string - ticketId: string - type: string - payload: Prisma.JsonNullValueInput | runtime.InputJsonValue - createdAt?: Date | string -} - -export type TicketEventUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - ticket?: Prisma.TicketUpdateOneRequiredWithoutEventsNestedInput -} - -export type TicketEventUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - ticketId?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TicketEventCreateManyInput = { - id?: string - ticketId: string - type: string - payload: Prisma.JsonNullValueInput | runtime.InputJsonValue - createdAt?: Date | string -} - -export type TicketEventUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TicketEventUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - ticketId?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TicketEventListRelationFilter = { - every?: Prisma.TicketEventWhereInput - some?: Prisma.TicketEventWhereInput - none?: Prisma.TicketEventWhereInput -} - -export type TicketEventOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type TicketEventCountOrderByAggregateInput = { - id?: Prisma.SortOrder - ticketId?: Prisma.SortOrder - type?: Prisma.SortOrder - payload?: Prisma.SortOrder - createdAt?: Prisma.SortOrder -} - -export type TicketEventMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - ticketId?: Prisma.SortOrder - type?: Prisma.SortOrder - createdAt?: Prisma.SortOrder -} - -export type TicketEventMinOrderByAggregateInput = { - id?: Prisma.SortOrder - ticketId?: Prisma.SortOrder - type?: Prisma.SortOrder - createdAt?: Prisma.SortOrder -} - -export type TicketEventCreateNestedManyWithoutTicketInput = { - create?: Prisma.XOR | Prisma.TicketEventCreateWithoutTicketInput[] | Prisma.TicketEventUncheckedCreateWithoutTicketInput[] - connectOrCreate?: Prisma.TicketEventCreateOrConnectWithoutTicketInput | Prisma.TicketEventCreateOrConnectWithoutTicketInput[] - createMany?: Prisma.TicketEventCreateManyTicketInputEnvelope - connect?: Prisma.TicketEventWhereUniqueInput | Prisma.TicketEventWhereUniqueInput[] -} - -export type TicketEventUncheckedCreateNestedManyWithoutTicketInput = { - create?: Prisma.XOR | Prisma.TicketEventCreateWithoutTicketInput[] | Prisma.TicketEventUncheckedCreateWithoutTicketInput[] - connectOrCreate?: Prisma.TicketEventCreateOrConnectWithoutTicketInput | Prisma.TicketEventCreateOrConnectWithoutTicketInput[] - createMany?: Prisma.TicketEventCreateManyTicketInputEnvelope - connect?: Prisma.TicketEventWhereUniqueInput | Prisma.TicketEventWhereUniqueInput[] -} - -export type TicketEventUpdateManyWithoutTicketNestedInput = { - create?: Prisma.XOR | Prisma.TicketEventCreateWithoutTicketInput[] | Prisma.TicketEventUncheckedCreateWithoutTicketInput[] - connectOrCreate?: Prisma.TicketEventCreateOrConnectWithoutTicketInput | Prisma.TicketEventCreateOrConnectWithoutTicketInput[] - upsert?: Prisma.TicketEventUpsertWithWhereUniqueWithoutTicketInput | Prisma.TicketEventUpsertWithWhereUniqueWithoutTicketInput[] - createMany?: Prisma.TicketEventCreateManyTicketInputEnvelope - set?: Prisma.TicketEventWhereUniqueInput | Prisma.TicketEventWhereUniqueInput[] - disconnect?: Prisma.TicketEventWhereUniqueInput | Prisma.TicketEventWhereUniqueInput[] - delete?: Prisma.TicketEventWhereUniqueInput | Prisma.TicketEventWhereUniqueInput[] - connect?: Prisma.TicketEventWhereUniqueInput | Prisma.TicketEventWhereUniqueInput[] - update?: Prisma.TicketEventUpdateWithWhereUniqueWithoutTicketInput | Prisma.TicketEventUpdateWithWhereUniqueWithoutTicketInput[] - updateMany?: Prisma.TicketEventUpdateManyWithWhereWithoutTicketInput | Prisma.TicketEventUpdateManyWithWhereWithoutTicketInput[] - deleteMany?: Prisma.TicketEventScalarWhereInput | Prisma.TicketEventScalarWhereInput[] -} - -export type TicketEventUncheckedUpdateManyWithoutTicketNestedInput = { - create?: Prisma.XOR | Prisma.TicketEventCreateWithoutTicketInput[] | Prisma.TicketEventUncheckedCreateWithoutTicketInput[] - connectOrCreate?: Prisma.TicketEventCreateOrConnectWithoutTicketInput | Prisma.TicketEventCreateOrConnectWithoutTicketInput[] - upsert?: Prisma.TicketEventUpsertWithWhereUniqueWithoutTicketInput | Prisma.TicketEventUpsertWithWhereUniqueWithoutTicketInput[] - createMany?: Prisma.TicketEventCreateManyTicketInputEnvelope - set?: Prisma.TicketEventWhereUniqueInput | Prisma.TicketEventWhereUniqueInput[] - disconnect?: Prisma.TicketEventWhereUniqueInput | Prisma.TicketEventWhereUniqueInput[] - delete?: Prisma.TicketEventWhereUniqueInput | Prisma.TicketEventWhereUniqueInput[] - connect?: Prisma.TicketEventWhereUniqueInput | Prisma.TicketEventWhereUniqueInput[] - update?: Prisma.TicketEventUpdateWithWhereUniqueWithoutTicketInput | Prisma.TicketEventUpdateWithWhereUniqueWithoutTicketInput[] - updateMany?: Prisma.TicketEventUpdateManyWithWhereWithoutTicketInput | Prisma.TicketEventUpdateManyWithWhereWithoutTicketInput[] - deleteMany?: Prisma.TicketEventScalarWhereInput | Prisma.TicketEventScalarWhereInput[] -} - -export type TicketEventCreateWithoutTicketInput = { - id?: string - type: string - payload: Prisma.JsonNullValueInput | runtime.InputJsonValue - createdAt?: Date | string -} - -export type TicketEventUncheckedCreateWithoutTicketInput = { - id?: string - type: string - payload: Prisma.JsonNullValueInput | runtime.InputJsonValue - createdAt?: Date | string -} - -export type TicketEventCreateOrConnectWithoutTicketInput = { - where: Prisma.TicketEventWhereUniqueInput - create: Prisma.XOR -} - -export type TicketEventCreateManyTicketInputEnvelope = { - data: Prisma.TicketEventCreateManyTicketInput | Prisma.TicketEventCreateManyTicketInput[] -} - -export type TicketEventUpsertWithWhereUniqueWithoutTicketInput = { - where: Prisma.TicketEventWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type TicketEventUpdateWithWhereUniqueWithoutTicketInput = { - where: Prisma.TicketEventWhereUniqueInput - data: Prisma.XOR -} - -export type TicketEventUpdateManyWithWhereWithoutTicketInput = { - where: Prisma.TicketEventScalarWhereInput - data: Prisma.XOR -} - -export type TicketEventScalarWhereInput = { - AND?: Prisma.TicketEventScalarWhereInput | Prisma.TicketEventScalarWhereInput[] - OR?: Prisma.TicketEventScalarWhereInput[] - NOT?: Prisma.TicketEventScalarWhereInput | Prisma.TicketEventScalarWhereInput[] - id?: Prisma.StringFilter<"TicketEvent"> | string - ticketId?: Prisma.StringFilter<"TicketEvent"> | string - type?: Prisma.StringFilter<"TicketEvent"> | string - payload?: Prisma.JsonFilter<"TicketEvent"> - createdAt?: Prisma.DateTimeFilter<"TicketEvent"> | Date | string -} - -export type TicketEventCreateManyTicketInput = { - id?: string - type: string - payload: Prisma.JsonNullValueInput | runtime.InputJsonValue - createdAt?: Date | string -} - -export type TicketEventUpdateWithoutTicketInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TicketEventUncheckedUpdateWithoutTicketInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TicketEventUncheckedUpdateManyWithoutTicketInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - - - -export type TicketEventSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - ticketId?: boolean - type?: boolean - payload?: boolean - createdAt?: boolean - ticket?: boolean | Prisma.TicketDefaultArgs -}, ExtArgs["result"]["ticketEvent"]> - -export type TicketEventSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - ticketId?: boolean - type?: boolean - payload?: boolean - createdAt?: boolean - ticket?: boolean | Prisma.TicketDefaultArgs -}, ExtArgs["result"]["ticketEvent"]> - -export type TicketEventSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - ticketId?: boolean - type?: boolean - payload?: boolean - createdAt?: boolean - ticket?: boolean | Prisma.TicketDefaultArgs -}, ExtArgs["result"]["ticketEvent"]> - -export type TicketEventSelectScalar = { - id?: boolean - ticketId?: boolean - type?: boolean - payload?: boolean - createdAt?: boolean -} - -export type TicketEventOmit = runtime.Types.Extensions.GetOmit<"id" | "ticketId" | "type" | "payload" | "createdAt", ExtArgs["result"]["ticketEvent"]> -export type TicketEventInclude = { - ticket?: boolean | Prisma.TicketDefaultArgs -} -export type TicketEventIncludeCreateManyAndReturn = { - ticket?: boolean | Prisma.TicketDefaultArgs -} -export type TicketEventIncludeUpdateManyAndReturn = { - ticket?: boolean | Prisma.TicketDefaultArgs -} - -export type $TicketEventPayload = { - name: "TicketEvent" - objects: { - ticket: Prisma.$TicketPayload - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - ticketId: string - type: string - payload: runtime.JsonValue - createdAt: Date - }, ExtArgs["result"]["ticketEvent"]> - composites: {} -} - -export type TicketEventGetPayload = runtime.Types.Result.GetResult - -export type TicketEventCountArgs = - Omit & { - select?: TicketEventCountAggregateInputType | true - } - -export interface TicketEventDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['TicketEvent'], meta: { name: 'TicketEvent' } } - /** - * Find zero or one TicketEvent that matches the filter. - * @param {TicketEventFindUniqueArgs} args - Arguments to find a TicketEvent - * @example - * // Get one TicketEvent - * const ticketEvent = await prisma.ticketEvent.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TicketEventClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one TicketEvent that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {TicketEventFindUniqueOrThrowArgs} args - Arguments to find a TicketEvent - * @example - * // Get one TicketEvent - * const ticketEvent = await prisma.ticketEvent.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TicketEventClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first TicketEvent that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketEventFindFirstArgs} args - Arguments to find a TicketEvent - * @example - * // Get one TicketEvent - * const ticketEvent = await prisma.ticketEvent.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TicketEventClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first TicketEvent that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketEventFindFirstOrThrowArgs} args - Arguments to find a TicketEvent - * @example - * // Get one TicketEvent - * const ticketEvent = await prisma.ticketEvent.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TicketEventClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more TicketEvents that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketEventFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all TicketEvents - * const ticketEvents = await prisma.ticketEvent.findMany() - * - * // Get first 10 TicketEvents - * const ticketEvents = await prisma.ticketEvent.findMany({ take: 10 }) - * - * // Only select the `id` - * const ticketEventWithIdOnly = await prisma.ticketEvent.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a TicketEvent. - * @param {TicketEventCreateArgs} args - Arguments to create a TicketEvent. - * @example - * // Create one TicketEvent - * const TicketEvent = await prisma.ticketEvent.create({ - * data: { - * // ... data to create a TicketEvent - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__TicketEventClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many TicketEvents. - * @param {TicketEventCreateManyArgs} args - Arguments to create many TicketEvents. - * @example - * // Create many TicketEvents - * const ticketEvent = await prisma.ticketEvent.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many TicketEvents and returns the data saved in the database. - * @param {TicketEventCreateManyAndReturnArgs} args - Arguments to create many TicketEvents. - * @example - * // Create many TicketEvents - * const ticketEvent = await prisma.ticketEvent.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many TicketEvents and only return the `id` - * const ticketEventWithIdOnly = await prisma.ticketEvent.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a TicketEvent. - * @param {TicketEventDeleteArgs} args - Arguments to delete one TicketEvent. - * @example - * // Delete one TicketEvent - * const TicketEvent = await prisma.ticketEvent.delete({ - * where: { - * // ... filter to delete one TicketEvent - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__TicketEventClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one TicketEvent. - * @param {TicketEventUpdateArgs} args - Arguments to update one TicketEvent. - * @example - * // Update one TicketEvent - * const ticketEvent = await prisma.ticketEvent.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__TicketEventClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more TicketEvents. - * @param {TicketEventDeleteManyArgs} args - Arguments to filter TicketEvents to delete. - * @example - * // Delete a few TicketEvents - * const { count } = await prisma.ticketEvent.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more TicketEvents. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketEventUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many TicketEvents - * const ticketEvent = await prisma.ticketEvent.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more TicketEvents and returns the data updated in the database. - * @param {TicketEventUpdateManyAndReturnArgs} args - Arguments to update many TicketEvents. - * @example - * // Update many TicketEvents - * const ticketEvent = await prisma.ticketEvent.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more TicketEvents and only return the `id` - * const ticketEventWithIdOnly = await prisma.ticketEvent.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one TicketEvent. - * @param {TicketEventUpsertArgs} args - Arguments to update or create a TicketEvent. - * @example - * // Update or create a TicketEvent - * const ticketEvent = await prisma.ticketEvent.upsert({ - * create: { - * // ... data to create a TicketEvent - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the TicketEvent we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TicketEventClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of TicketEvents. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketEventCountArgs} args - Arguments to filter TicketEvents to count. - * @example - * // Count the number of TicketEvents - * const count = await prisma.ticketEvent.count({ - * where: { - * // ... the filter for the TicketEvents we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a TicketEvent. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketEventAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by TicketEvent. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TicketEventGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends TicketEventGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: TicketEventGroupByArgs['orderBy'] } - : { orderBy?: TicketEventGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetTicketEventGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the TicketEvent model - */ -readonly fields: TicketEventFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for TicketEvent. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__TicketEventClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - ticket = {}>(args?: Prisma.Subset>): Prisma.Prisma__TicketClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the TicketEvent model - */ -export interface TicketEventFieldRefs { - readonly id: Prisma.FieldRef<"TicketEvent", 'String'> - readonly ticketId: Prisma.FieldRef<"TicketEvent", 'String'> - readonly type: Prisma.FieldRef<"TicketEvent", 'String'> - readonly payload: Prisma.FieldRef<"TicketEvent", 'Json'> - readonly createdAt: Prisma.FieldRef<"TicketEvent", 'DateTime'> -} - - -// Custom InputTypes -/** - * TicketEvent findUnique - */ -export type TicketEventFindUniqueArgs = { - /** - * Select specific fields to fetch from the TicketEvent - */ - select?: Prisma.TicketEventSelect | null - /** - * Omit specific fields from the TicketEvent - */ - omit?: Prisma.TicketEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketEventInclude | null - /** - * Filter, which TicketEvent to fetch. - */ - where: Prisma.TicketEventWhereUniqueInput -} - -/** - * TicketEvent findUniqueOrThrow - */ -export type TicketEventFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the TicketEvent - */ - select?: Prisma.TicketEventSelect | null - /** - * Omit specific fields from the TicketEvent - */ - omit?: Prisma.TicketEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketEventInclude | null - /** - * Filter, which TicketEvent to fetch. - */ - where: Prisma.TicketEventWhereUniqueInput -} - -/** - * TicketEvent findFirst - */ -export type TicketEventFindFirstArgs = { - /** - * Select specific fields to fetch from the TicketEvent - */ - select?: Prisma.TicketEventSelect | null - /** - * Omit specific fields from the TicketEvent - */ - omit?: Prisma.TicketEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketEventInclude | null - /** - * Filter, which TicketEvent to fetch. - */ - where?: Prisma.TicketEventWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of TicketEvents to fetch. - */ - orderBy?: Prisma.TicketEventOrderByWithRelationInput | Prisma.TicketEventOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for TicketEvents. - */ - cursor?: Prisma.TicketEventWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` TicketEvents from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` TicketEvents. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of TicketEvents. - */ - distinct?: Prisma.TicketEventScalarFieldEnum | Prisma.TicketEventScalarFieldEnum[] -} - -/** - * TicketEvent findFirstOrThrow - */ -export type TicketEventFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the TicketEvent - */ - select?: Prisma.TicketEventSelect | null - /** - * Omit specific fields from the TicketEvent - */ - omit?: Prisma.TicketEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketEventInclude | null - /** - * Filter, which TicketEvent to fetch. - */ - where?: Prisma.TicketEventWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of TicketEvents to fetch. - */ - orderBy?: Prisma.TicketEventOrderByWithRelationInput | Prisma.TicketEventOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for TicketEvents. - */ - cursor?: Prisma.TicketEventWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` TicketEvents from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` TicketEvents. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of TicketEvents. - */ - distinct?: Prisma.TicketEventScalarFieldEnum | Prisma.TicketEventScalarFieldEnum[] -} - -/** - * TicketEvent findMany - */ -export type TicketEventFindManyArgs = { - /** - * Select specific fields to fetch from the TicketEvent - */ - select?: Prisma.TicketEventSelect | null - /** - * Omit specific fields from the TicketEvent - */ - omit?: Prisma.TicketEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketEventInclude | null - /** - * Filter, which TicketEvents to fetch. - */ - where?: Prisma.TicketEventWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of TicketEvents to fetch. - */ - orderBy?: Prisma.TicketEventOrderByWithRelationInput | Prisma.TicketEventOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing TicketEvents. - */ - cursor?: Prisma.TicketEventWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` TicketEvents from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` TicketEvents. - */ - skip?: number - distinct?: Prisma.TicketEventScalarFieldEnum | Prisma.TicketEventScalarFieldEnum[] -} - -/** - * TicketEvent create - */ -export type TicketEventCreateArgs = { - /** - * Select specific fields to fetch from the TicketEvent - */ - select?: Prisma.TicketEventSelect | null - /** - * Omit specific fields from the TicketEvent - */ - omit?: Prisma.TicketEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketEventInclude | null - /** - * The data needed to create a TicketEvent. - */ - data: Prisma.XOR -} - -/** - * TicketEvent createMany - */ -export type TicketEventCreateManyArgs = { - /** - * The data used to create many TicketEvents. - */ - data: Prisma.TicketEventCreateManyInput | Prisma.TicketEventCreateManyInput[] -} - -/** - * TicketEvent createManyAndReturn - */ -export type TicketEventCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the TicketEvent - */ - select?: Prisma.TicketEventSelectCreateManyAndReturn | null - /** - * Omit specific fields from the TicketEvent - */ - omit?: Prisma.TicketEventOmit | null - /** - * The data used to create many TicketEvents. - */ - data: Prisma.TicketEventCreateManyInput | Prisma.TicketEventCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketEventIncludeCreateManyAndReturn | null -} - -/** - * TicketEvent update - */ -export type TicketEventUpdateArgs = { - /** - * Select specific fields to fetch from the TicketEvent - */ - select?: Prisma.TicketEventSelect | null - /** - * Omit specific fields from the TicketEvent - */ - omit?: Prisma.TicketEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketEventInclude | null - /** - * The data needed to update a TicketEvent. - */ - data: Prisma.XOR - /** - * Choose, which TicketEvent to update. - */ - where: Prisma.TicketEventWhereUniqueInput -} - -/** - * TicketEvent updateMany - */ -export type TicketEventUpdateManyArgs = { - /** - * The data used to update TicketEvents. - */ - data: Prisma.XOR - /** - * Filter which TicketEvents to update - */ - where?: Prisma.TicketEventWhereInput - /** - * Limit how many TicketEvents to update. - */ - limit?: number -} - -/** - * TicketEvent updateManyAndReturn - */ -export type TicketEventUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the TicketEvent - */ - select?: Prisma.TicketEventSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the TicketEvent - */ - omit?: Prisma.TicketEventOmit | null - /** - * The data used to update TicketEvents. - */ - data: Prisma.XOR - /** - * Filter which TicketEvents to update - */ - where?: Prisma.TicketEventWhereInput - /** - * Limit how many TicketEvents to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketEventIncludeUpdateManyAndReturn | null -} - -/** - * TicketEvent upsert - */ -export type TicketEventUpsertArgs = { - /** - * Select specific fields to fetch from the TicketEvent - */ - select?: Prisma.TicketEventSelect | null - /** - * Omit specific fields from the TicketEvent - */ - omit?: Prisma.TicketEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketEventInclude | null - /** - * The filter to search for the TicketEvent to update in case it exists. - */ - where: Prisma.TicketEventWhereUniqueInput - /** - * In case the TicketEvent found by the `where` argument doesn't exist, create a new TicketEvent with this data. - */ - create: Prisma.XOR - /** - * In case the TicketEvent was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * TicketEvent delete - */ -export type TicketEventDeleteArgs = { - /** - * Select specific fields to fetch from the TicketEvent - */ - select?: Prisma.TicketEventSelect | null - /** - * Omit specific fields from the TicketEvent - */ - omit?: Prisma.TicketEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketEventInclude | null - /** - * Filter which TicketEvent to delete. - */ - where: Prisma.TicketEventWhereUniqueInput -} - -/** - * TicketEvent deleteMany - */ -export type TicketEventDeleteManyArgs = { - /** - * Filter which TicketEvents to delete - */ - where?: Prisma.TicketEventWhereInput - /** - * Limit how many TicketEvents to delete. - */ - limit?: number -} - -/** - * TicketEvent without action - */ -export type TicketEventDefaultArgs = { - /** - * Select specific fields to fetch from the TicketEvent - */ - select?: Prisma.TicketEventSelect | null - /** - * Omit specific fields from the TicketEvent - */ - omit?: Prisma.TicketEventOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketEventInclude | null -} diff --git a/src/generated/prisma/models/User.ts b/src/generated/prisma/models/User.ts deleted file mode 100644 index e5dede0..0000000 --- a/src/generated/prisma/models/User.ts +++ /dev/null @@ -1,2611 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `User` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model User - * - */ -export type UserModel = runtime.Types.Result.DefaultSelection - -export type AggregateUser = { - _count: UserCountAggregateOutputType | null - _min: UserMinAggregateOutputType | null - _max: UserMaxAggregateOutputType | null -} - -export type UserMinAggregateOutputType = { - id: string | null - tenantId: string | null - name: string | null - email: string | null - role: $Enums.UserRole | null - jobTitle: string | null - managerId: string | null - timezone: string | null - avatarUrl: string | null - companyId: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type UserMaxAggregateOutputType = { - id: string | null - tenantId: string | null - name: string | null - email: string | null - role: $Enums.UserRole | null - jobTitle: string | null - managerId: string | null - timezone: string | null - avatarUrl: string | null - companyId: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type UserCountAggregateOutputType = { - id: number - tenantId: number - name: number - email: number - role: number - jobTitle: number - managerId: number - timezone: number - avatarUrl: number - companyId: number - createdAt: number - updatedAt: number - _all: number -} - - -export type UserMinAggregateInputType = { - id?: true - tenantId?: true - name?: true - email?: true - role?: true - jobTitle?: true - managerId?: true - timezone?: true - avatarUrl?: true - companyId?: true - createdAt?: true - updatedAt?: true -} - -export type UserMaxAggregateInputType = { - id?: true - tenantId?: true - name?: true - email?: true - role?: true - jobTitle?: true - managerId?: true - timezone?: true - avatarUrl?: true - companyId?: true - createdAt?: true - updatedAt?: true -} - -export type UserCountAggregateInputType = { - id?: true - tenantId?: true - name?: true - email?: true - role?: true - jobTitle?: true - managerId?: true - timezone?: true - avatarUrl?: true - companyId?: true - createdAt?: true - updatedAt?: true - _all?: true -} - -export type UserAggregateArgs = { - /** - * Filter which User to aggregate. - */ - where?: Prisma.UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Users - **/ - _count?: true | UserCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: UserMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: UserMaxAggregateInputType -} - -export type GetUserAggregateType = { - [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type UserGroupByArgs = { - where?: Prisma.UserWhereInput - orderBy?: Prisma.UserOrderByWithAggregationInput | Prisma.UserOrderByWithAggregationInput[] - by: Prisma.UserScalarFieldEnum[] | Prisma.UserScalarFieldEnum - having?: Prisma.UserScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: UserCountAggregateInputType | true - _min?: UserMinAggregateInputType - _max?: UserMaxAggregateInputType -} - -export type UserGroupByOutputType = { - id: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle: string | null - managerId: string | null - timezone: string - avatarUrl: string | null - companyId: string | null - createdAt: Date - updatedAt: Date - _count: UserCountAggregateOutputType | null - _min: UserMinAggregateOutputType | null - _max: UserMaxAggregateOutputType | null -} - -type GetUserGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type UserWhereInput = { - AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] - OR?: Prisma.UserWhereInput[] - NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] - id?: Prisma.StringFilter<"User"> | string - tenantId?: Prisma.StringFilter<"User"> | string - name?: Prisma.StringFilter<"User"> | string - email?: Prisma.StringFilter<"User"> | string - role?: Prisma.EnumUserRoleFilter<"User"> | $Enums.UserRole - jobTitle?: Prisma.StringNullableFilter<"User"> | string | null - managerId?: Prisma.StringNullableFilter<"User"> | string | null - timezone?: Prisma.StringFilter<"User"> | string - avatarUrl?: Prisma.StringNullableFilter<"User"> | string | null - companyId?: Prisma.StringNullableFilter<"User"> | string | null - createdAt?: Prisma.DateTimeFilter<"User"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string - teams?: Prisma.TeamMemberListRelationFilter - requestedTickets?: Prisma.TicketListRelationFilter - assignedTickets?: Prisma.TicketListRelationFilter - comments?: Prisma.TicketCommentListRelationFilter - manager?: Prisma.XOR | null - reports?: Prisma.UserListRelationFilter - company?: Prisma.XOR | null -} - -export type UserOrderByWithRelationInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - email?: Prisma.SortOrder - role?: Prisma.SortOrder - jobTitle?: Prisma.SortOrderInput | Prisma.SortOrder - managerId?: Prisma.SortOrderInput | Prisma.SortOrder - timezone?: Prisma.SortOrder - avatarUrl?: Prisma.SortOrderInput | Prisma.SortOrder - companyId?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - teams?: Prisma.TeamMemberOrderByRelationAggregateInput - requestedTickets?: Prisma.TicketOrderByRelationAggregateInput - assignedTickets?: Prisma.TicketOrderByRelationAggregateInput - comments?: Prisma.TicketCommentOrderByRelationAggregateInput - manager?: Prisma.UserOrderByWithRelationInput - reports?: Prisma.UserOrderByRelationAggregateInput - company?: Prisma.CompanyOrderByWithRelationInput -} - -export type UserWhereUniqueInput = Prisma.AtLeast<{ - id?: string - email?: string - AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] - OR?: Prisma.UserWhereInput[] - NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] - tenantId?: Prisma.StringFilter<"User"> | string - name?: Prisma.StringFilter<"User"> | string - role?: Prisma.EnumUserRoleFilter<"User"> | $Enums.UserRole - jobTitle?: Prisma.StringNullableFilter<"User"> | string | null - managerId?: Prisma.StringNullableFilter<"User"> | string | null - timezone?: Prisma.StringFilter<"User"> | string - avatarUrl?: Prisma.StringNullableFilter<"User"> | string | null - companyId?: Prisma.StringNullableFilter<"User"> | string | null - createdAt?: Prisma.DateTimeFilter<"User"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string - teams?: Prisma.TeamMemberListRelationFilter - requestedTickets?: Prisma.TicketListRelationFilter - assignedTickets?: Prisma.TicketListRelationFilter - comments?: Prisma.TicketCommentListRelationFilter - manager?: Prisma.XOR | null - reports?: Prisma.UserListRelationFilter - company?: Prisma.XOR | null -}, "id" | "email"> - -export type UserOrderByWithAggregationInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - email?: Prisma.SortOrder - role?: Prisma.SortOrder - jobTitle?: Prisma.SortOrderInput | Prisma.SortOrder - managerId?: Prisma.SortOrderInput | Prisma.SortOrder - timezone?: Prisma.SortOrder - avatarUrl?: Prisma.SortOrderInput | Prisma.SortOrder - companyId?: Prisma.SortOrderInput | Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - _count?: Prisma.UserCountOrderByAggregateInput - _max?: Prisma.UserMaxOrderByAggregateInput - _min?: Prisma.UserMinOrderByAggregateInput -} - -export type UserScalarWhereWithAggregatesInput = { - AND?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] - OR?: Prisma.UserScalarWhereWithAggregatesInput[] - NOT?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"User"> | string - tenantId?: Prisma.StringWithAggregatesFilter<"User"> | string - name?: Prisma.StringWithAggregatesFilter<"User"> | string - email?: Prisma.StringWithAggregatesFilter<"User"> | string - role?: Prisma.EnumUserRoleWithAggregatesFilter<"User"> | $Enums.UserRole - jobTitle?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null - managerId?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null - timezone?: Prisma.StringWithAggregatesFilter<"User"> | string - avatarUrl?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null - companyId?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null - createdAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string -} - -export type UserCreateInput = { - id?: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle?: string | null - timezone?: string - avatarUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - teams?: Prisma.TeamMemberCreateNestedManyWithoutUserInput - requestedTickets?: Prisma.TicketCreateNestedManyWithoutRequesterInput - assignedTickets?: Prisma.TicketCreateNestedManyWithoutAssigneeInput - comments?: Prisma.TicketCommentCreateNestedManyWithoutAuthorInput - manager?: Prisma.UserCreateNestedOneWithoutReportsInput - reports?: Prisma.UserCreateNestedManyWithoutManagerInput - company?: Prisma.CompanyCreateNestedOneWithoutUsersInput -} - -export type UserUncheckedCreateInput = { - id?: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle?: string | null - managerId?: string | null - timezone?: string - avatarUrl?: string | null - companyId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - teams?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput - requestedTickets?: Prisma.TicketUncheckedCreateNestedManyWithoutRequesterInput - assignedTickets?: Prisma.TicketUncheckedCreateNestedManyWithoutAssigneeInput - comments?: Prisma.TicketCommentUncheckedCreateNestedManyWithoutAuthorInput - reports?: Prisma.UserUncheckedCreateNestedManyWithoutManagerInput -} - -export type UserUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - jobTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.StringFieldUpdateOperationsInput | string - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - teams?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput - requestedTickets?: Prisma.TicketUpdateManyWithoutRequesterNestedInput - assignedTickets?: Prisma.TicketUpdateManyWithoutAssigneeNestedInput - comments?: Prisma.TicketCommentUpdateManyWithoutAuthorNestedInput - manager?: Prisma.UserUpdateOneWithoutReportsNestedInput - reports?: Prisma.UserUpdateManyWithoutManagerNestedInput - company?: Prisma.CompanyUpdateOneWithoutUsersNestedInput -} - -export type UserUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - jobTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - managerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.StringFieldUpdateOperationsInput | string - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - teams?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput - requestedTickets?: Prisma.TicketUncheckedUpdateManyWithoutRequesterNestedInput - assignedTickets?: Prisma.TicketUncheckedUpdateManyWithoutAssigneeNestedInput - comments?: Prisma.TicketCommentUncheckedUpdateManyWithoutAuthorNestedInput - reports?: Prisma.UserUncheckedUpdateManyWithoutManagerNestedInput -} - -export type UserCreateManyInput = { - id?: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle?: string | null - managerId?: string | null - timezone?: string - avatarUrl?: string | null - companyId?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type UserUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - jobTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.StringFieldUpdateOperationsInput | string - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type UserUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - jobTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - managerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.StringFieldUpdateOperationsInput | string - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type UserScalarRelationFilter = { - is?: Prisma.UserWhereInput - isNot?: Prisma.UserWhereInput -} - -export type UserListRelationFilter = { - every?: Prisma.UserWhereInput - some?: Prisma.UserWhereInput - none?: Prisma.UserWhereInput -} - -export type UserOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type UserNullableScalarRelationFilter = { - is?: Prisma.UserWhereInput | null - isNot?: Prisma.UserWhereInput | null -} - -export type UserCountOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - email?: Prisma.SortOrder - role?: Prisma.SortOrder - jobTitle?: Prisma.SortOrder - managerId?: Prisma.SortOrder - timezone?: Prisma.SortOrder - avatarUrl?: Prisma.SortOrder - companyId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type UserMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - email?: Prisma.SortOrder - role?: Prisma.SortOrder - jobTitle?: Prisma.SortOrder - managerId?: Prisma.SortOrder - timezone?: Prisma.SortOrder - avatarUrl?: Prisma.SortOrder - companyId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type UserMinOrderByAggregateInput = { - id?: Prisma.SortOrder - tenantId?: Prisma.SortOrder - name?: Prisma.SortOrder - email?: Prisma.SortOrder - role?: Prisma.SortOrder - jobTitle?: Prisma.SortOrder - managerId?: Prisma.SortOrder - timezone?: Prisma.SortOrder - avatarUrl?: Prisma.SortOrder - companyId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type UserCreateNestedOneWithoutTeamsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutTeamsInput - connect?: Prisma.UserWhereUniqueInput -} - -export type UserUpdateOneRequiredWithoutTeamsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutTeamsInput - upsert?: Prisma.UserUpsertWithoutTeamsInput - connect?: Prisma.UserWhereUniqueInput - update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutTeamsInput> -} - -export type UserCreateNestedManyWithoutCompanyInput = { - create?: Prisma.XOR | Prisma.UserCreateWithoutCompanyInput[] | Prisma.UserUncheckedCreateWithoutCompanyInput[] - connectOrCreate?: Prisma.UserCreateOrConnectWithoutCompanyInput | Prisma.UserCreateOrConnectWithoutCompanyInput[] - createMany?: Prisma.UserCreateManyCompanyInputEnvelope - connect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] -} - -export type UserUncheckedCreateNestedManyWithoutCompanyInput = { - create?: Prisma.XOR | Prisma.UserCreateWithoutCompanyInput[] | Prisma.UserUncheckedCreateWithoutCompanyInput[] - connectOrCreate?: Prisma.UserCreateOrConnectWithoutCompanyInput | Prisma.UserCreateOrConnectWithoutCompanyInput[] - createMany?: Prisma.UserCreateManyCompanyInputEnvelope - connect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] -} - -export type UserUpdateManyWithoutCompanyNestedInput = { - create?: Prisma.XOR | Prisma.UserCreateWithoutCompanyInput[] | Prisma.UserUncheckedCreateWithoutCompanyInput[] - connectOrCreate?: Prisma.UserCreateOrConnectWithoutCompanyInput | Prisma.UserCreateOrConnectWithoutCompanyInput[] - upsert?: Prisma.UserUpsertWithWhereUniqueWithoutCompanyInput | Prisma.UserUpsertWithWhereUniqueWithoutCompanyInput[] - createMany?: Prisma.UserCreateManyCompanyInputEnvelope - set?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] - disconnect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] - delete?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] - connect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] - update?: Prisma.UserUpdateWithWhereUniqueWithoutCompanyInput | Prisma.UserUpdateWithWhereUniqueWithoutCompanyInput[] - updateMany?: Prisma.UserUpdateManyWithWhereWithoutCompanyInput | Prisma.UserUpdateManyWithWhereWithoutCompanyInput[] - deleteMany?: Prisma.UserScalarWhereInput | Prisma.UserScalarWhereInput[] -} - -export type UserUncheckedUpdateManyWithoutCompanyNestedInput = { - create?: Prisma.XOR | Prisma.UserCreateWithoutCompanyInput[] | Prisma.UserUncheckedCreateWithoutCompanyInput[] - connectOrCreate?: Prisma.UserCreateOrConnectWithoutCompanyInput | Prisma.UserCreateOrConnectWithoutCompanyInput[] - upsert?: Prisma.UserUpsertWithWhereUniqueWithoutCompanyInput | Prisma.UserUpsertWithWhereUniqueWithoutCompanyInput[] - createMany?: Prisma.UserCreateManyCompanyInputEnvelope - set?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] - disconnect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] - delete?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] - connect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] - update?: Prisma.UserUpdateWithWhereUniqueWithoutCompanyInput | Prisma.UserUpdateWithWhereUniqueWithoutCompanyInput[] - updateMany?: Prisma.UserUpdateManyWithWhereWithoutCompanyInput | Prisma.UserUpdateManyWithWhereWithoutCompanyInput[] - deleteMany?: Prisma.UserScalarWhereInput | Prisma.UserScalarWhereInput[] -} - -export type UserCreateNestedOneWithoutReportsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutReportsInput - connect?: Prisma.UserWhereUniqueInput -} - -export type UserCreateNestedManyWithoutManagerInput = { - create?: Prisma.XOR | Prisma.UserCreateWithoutManagerInput[] | Prisma.UserUncheckedCreateWithoutManagerInput[] - connectOrCreate?: Prisma.UserCreateOrConnectWithoutManagerInput | Prisma.UserCreateOrConnectWithoutManagerInput[] - createMany?: Prisma.UserCreateManyManagerInputEnvelope - connect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] -} - -export type UserUncheckedCreateNestedManyWithoutManagerInput = { - create?: Prisma.XOR | Prisma.UserCreateWithoutManagerInput[] | Prisma.UserUncheckedCreateWithoutManagerInput[] - connectOrCreate?: Prisma.UserCreateOrConnectWithoutManagerInput | Prisma.UserCreateOrConnectWithoutManagerInput[] - createMany?: Prisma.UserCreateManyManagerInputEnvelope - connect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] -} - -export type EnumUserRoleFieldUpdateOperationsInput = { - set?: $Enums.UserRole -} - -export type UserUpdateOneWithoutReportsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutReportsInput - upsert?: Prisma.UserUpsertWithoutReportsInput - disconnect?: Prisma.UserWhereInput | boolean - delete?: Prisma.UserWhereInput | boolean - connect?: Prisma.UserWhereUniqueInput - update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutReportsInput> -} - -export type UserUpdateManyWithoutManagerNestedInput = { - create?: Prisma.XOR | Prisma.UserCreateWithoutManagerInput[] | Prisma.UserUncheckedCreateWithoutManagerInput[] - connectOrCreate?: Prisma.UserCreateOrConnectWithoutManagerInput | Prisma.UserCreateOrConnectWithoutManagerInput[] - upsert?: Prisma.UserUpsertWithWhereUniqueWithoutManagerInput | Prisma.UserUpsertWithWhereUniqueWithoutManagerInput[] - createMany?: Prisma.UserCreateManyManagerInputEnvelope - set?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] - disconnect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] - delete?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] - connect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] - update?: Prisma.UserUpdateWithWhereUniqueWithoutManagerInput | Prisma.UserUpdateWithWhereUniqueWithoutManagerInput[] - updateMany?: Prisma.UserUpdateManyWithWhereWithoutManagerInput | Prisma.UserUpdateManyWithWhereWithoutManagerInput[] - deleteMany?: Prisma.UserScalarWhereInput | Prisma.UserScalarWhereInput[] -} - -export type UserUncheckedUpdateManyWithoutManagerNestedInput = { - create?: Prisma.XOR | Prisma.UserCreateWithoutManagerInput[] | Prisma.UserUncheckedCreateWithoutManagerInput[] - connectOrCreate?: Prisma.UserCreateOrConnectWithoutManagerInput | Prisma.UserCreateOrConnectWithoutManagerInput[] - upsert?: Prisma.UserUpsertWithWhereUniqueWithoutManagerInput | Prisma.UserUpsertWithWhereUniqueWithoutManagerInput[] - createMany?: Prisma.UserCreateManyManagerInputEnvelope - set?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] - disconnect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] - delete?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] - connect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] - update?: Prisma.UserUpdateWithWhereUniqueWithoutManagerInput | Prisma.UserUpdateWithWhereUniqueWithoutManagerInput[] - updateMany?: Prisma.UserUpdateManyWithWhereWithoutManagerInput | Prisma.UserUpdateManyWithWhereWithoutManagerInput[] - deleteMany?: Prisma.UserScalarWhereInput | Prisma.UserScalarWhereInput[] -} - -export type UserCreateNestedOneWithoutRequestedTicketsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutRequestedTicketsInput - connect?: Prisma.UserWhereUniqueInput -} - -export type UserCreateNestedOneWithoutAssignedTicketsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutAssignedTicketsInput - connect?: Prisma.UserWhereUniqueInput -} - -export type UserUpdateOneRequiredWithoutRequestedTicketsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutRequestedTicketsInput - upsert?: Prisma.UserUpsertWithoutRequestedTicketsInput - connect?: Prisma.UserWhereUniqueInput - update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutRequestedTicketsInput> -} - -export type UserUpdateOneWithoutAssignedTicketsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutAssignedTicketsInput - upsert?: Prisma.UserUpsertWithoutAssignedTicketsInput - disconnect?: Prisma.UserWhereInput | boolean - delete?: Prisma.UserWhereInput | boolean - connect?: Prisma.UserWhereUniqueInput - update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutAssignedTicketsInput> -} - -export type UserCreateNestedOneWithoutCommentsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutCommentsInput - connect?: Prisma.UserWhereUniqueInput -} - -export type UserUpdateOneRequiredWithoutCommentsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutCommentsInput - upsert?: Prisma.UserUpsertWithoutCommentsInput - connect?: Prisma.UserWhereUniqueInput - update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutCommentsInput> -} - -export type UserCreateWithoutTeamsInput = { - id?: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle?: string | null - timezone?: string - avatarUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - requestedTickets?: Prisma.TicketCreateNestedManyWithoutRequesterInput - assignedTickets?: Prisma.TicketCreateNestedManyWithoutAssigneeInput - comments?: Prisma.TicketCommentCreateNestedManyWithoutAuthorInput - manager?: Prisma.UserCreateNestedOneWithoutReportsInput - reports?: Prisma.UserCreateNestedManyWithoutManagerInput - company?: Prisma.CompanyCreateNestedOneWithoutUsersInput -} - -export type UserUncheckedCreateWithoutTeamsInput = { - id?: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle?: string | null - managerId?: string | null - timezone?: string - avatarUrl?: string | null - companyId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - requestedTickets?: Prisma.TicketUncheckedCreateNestedManyWithoutRequesterInput - assignedTickets?: Prisma.TicketUncheckedCreateNestedManyWithoutAssigneeInput - comments?: Prisma.TicketCommentUncheckedCreateNestedManyWithoutAuthorInput - reports?: Prisma.UserUncheckedCreateNestedManyWithoutManagerInput -} - -export type UserCreateOrConnectWithoutTeamsInput = { - where: Prisma.UserWhereUniqueInput - create: Prisma.XOR -} - -export type UserUpsertWithoutTeamsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.UserWhereInput -} - -export type UserUpdateToOneWithWhereWithoutTeamsInput = { - where?: Prisma.UserWhereInput - data: Prisma.XOR -} - -export type UserUpdateWithoutTeamsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - jobTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.StringFieldUpdateOperationsInput | string - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - requestedTickets?: Prisma.TicketUpdateManyWithoutRequesterNestedInput - assignedTickets?: Prisma.TicketUpdateManyWithoutAssigneeNestedInput - comments?: Prisma.TicketCommentUpdateManyWithoutAuthorNestedInput - manager?: Prisma.UserUpdateOneWithoutReportsNestedInput - reports?: Prisma.UserUpdateManyWithoutManagerNestedInput - company?: Prisma.CompanyUpdateOneWithoutUsersNestedInput -} - -export type UserUncheckedUpdateWithoutTeamsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - jobTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - managerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.StringFieldUpdateOperationsInput | string - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - requestedTickets?: Prisma.TicketUncheckedUpdateManyWithoutRequesterNestedInput - assignedTickets?: Prisma.TicketUncheckedUpdateManyWithoutAssigneeNestedInput - comments?: Prisma.TicketCommentUncheckedUpdateManyWithoutAuthorNestedInput - reports?: Prisma.UserUncheckedUpdateManyWithoutManagerNestedInput -} - -export type UserCreateWithoutCompanyInput = { - id?: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle?: string | null - timezone?: string - avatarUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - teams?: Prisma.TeamMemberCreateNestedManyWithoutUserInput - requestedTickets?: Prisma.TicketCreateNestedManyWithoutRequesterInput - assignedTickets?: Prisma.TicketCreateNestedManyWithoutAssigneeInput - comments?: Prisma.TicketCommentCreateNestedManyWithoutAuthorInput - manager?: Prisma.UserCreateNestedOneWithoutReportsInput - reports?: Prisma.UserCreateNestedManyWithoutManagerInput -} - -export type UserUncheckedCreateWithoutCompanyInput = { - id?: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle?: string | null - managerId?: string | null - timezone?: string - avatarUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - teams?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput - requestedTickets?: Prisma.TicketUncheckedCreateNestedManyWithoutRequesterInput - assignedTickets?: Prisma.TicketUncheckedCreateNestedManyWithoutAssigneeInput - comments?: Prisma.TicketCommentUncheckedCreateNestedManyWithoutAuthorInput - reports?: Prisma.UserUncheckedCreateNestedManyWithoutManagerInput -} - -export type UserCreateOrConnectWithoutCompanyInput = { - where: Prisma.UserWhereUniqueInput - create: Prisma.XOR -} - -export type UserCreateManyCompanyInputEnvelope = { - data: Prisma.UserCreateManyCompanyInput | Prisma.UserCreateManyCompanyInput[] -} - -export type UserUpsertWithWhereUniqueWithoutCompanyInput = { - where: Prisma.UserWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type UserUpdateWithWhereUniqueWithoutCompanyInput = { - where: Prisma.UserWhereUniqueInput - data: Prisma.XOR -} - -export type UserUpdateManyWithWhereWithoutCompanyInput = { - where: Prisma.UserScalarWhereInput - data: Prisma.XOR -} - -export type UserScalarWhereInput = { - AND?: Prisma.UserScalarWhereInput | Prisma.UserScalarWhereInput[] - OR?: Prisma.UserScalarWhereInput[] - NOT?: Prisma.UserScalarWhereInput | Prisma.UserScalarWhereInput[] - id?: Prisma.StringFilter<"User"> | string - tenantId?: Prisma.StringFilter<"User"> | string - name?: Prisma.StringFilter<"User"> | string - email?: Prisma.StringFilter<"User"> | string - role?: Prisma.EnumUserRoleFilter<"User"> | $Enums.UserRole - jobTitle?: Prisma.StringNullableFilter<"User"> | string | null - managerId?: Prisma.StringNullableFilter<"User"> | string | null - timezone?: Prisma.StringFilter<"User"> | string - avatarUrl?: Prisma.StringNullableFilter<"User"> | string | null - companyId?: Prisma.StringNullableFilter<"User"> | string | null - createdAt?: Prisma.DateTimeFilter<"User"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string -} - -export type UserCreateWithoutReportsInput = { - id?: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle?: string | null - timezone?: string - avatarUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - teams?: Prisma.TeamMemberCreateNestedManyWithoutUserInput - requestedTickets?: Prisma.TicketCreateNestedManyWithoutRequesterInput - assignedTickets?: Prisma.TicketCreateNestedManyWithoutAssigneeInput - comments?: Prisma.TicketCommentCreateNestedManyWithoutAuthorInput - manager?: Prisma.UserCreateNestedOneWithoutReportsInput - company?: Prisma.CompanyCreateNestedOneWithoutUsersInput -} - -export type UserUncheckedCreateWithoutReportsInput = { - id?: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle?: string | null - managerId?: string | null - timezone?: string - avatarUrl?: string | null - companyId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - teams?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput - requestedTickets?: Prisma.TicketUncheckedCreateNestedManyWithoutRequesterInput - assignedTickets?: Prisma.TicketUncheckedCreateNestedManyWithoutAssigneeInput - comments?: Prisma.TicketCommentUncheckedCreateNestedManyWithoutAuthorInput -} - -export type UserCreateOrConnectWithoutReportsInput = { - where: Prisma.UserWhereUniqueInput - create: Prisma.XOR -} - -export type UserCreateWithoutManagerInput = { - id?: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle?: string | null - timezone?: string - avatarUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - teams?: Prisma.TeamMemberCreateNestedManyWithoutUserInput - requestedTickets?: Prisma.TicketCreateNestedManyWithoutRequesterInput - assignedTickets?: Prisma.TicketCreateNestedManyWithoutAssigneeInput - comments?: Prisma.TicketCommentCreateNestedManyWithoutAuthorInput - reports?: Prisma.UserCreateNestedManyWithoutManagerInput - company?: Prisma.CompanyCreateNestedOneWithoutUsersInput -} - -export type UserUncheckedCreateWithoutManagerInput = { - id?: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle?: string | null - timezone?: string - avatarUrl?: string | null - companyId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - teams?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput - requestedTickets?: Prisma.TicketUncheckedCreateNestedManyWithoutRequesterInput - assignedTickets?: Prisma.TicketUncheckedCreateNestedManyWithoutAssigneeInput - comments?: Prisma.TicketCommentUncheckedCreateNestedManyWithoutAuthorInput - reports?: Prisma.UserUncheckedCreateNestedManyWithoutManagerInput -} - -export type UserCreateOrConnectWithoutManagerInput = { - where: Prisma.UserWhereUniqueInput - create: Prisma.XOR -} - -export type UserCreateManyManagerInputEnvelope = { - data: Prisma.UserCreateManyManagerInput | Prisma.UserCreateManyManagerInput[] -} - -export type UserUpsertWithoutReportsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.UserWhereInput -} - -export type UserUpdateToOneWithWhereWithoutReportsInput = { - where?: Prisma.UserWhereInput - data: Prisma.XOR -} - -export type UserUpdateWithoutReportsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - jobTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.StringFieldUpdateOperationsInput | string - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - teams?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput - requestedTickets?: Prisma.TicketUpdateManyWithoutRequesterNestedInput - assignedTickets?: Prisma.TicketUpdateManyWithoutAssigneeNestedInput - comments?: Prisma.TicketCommentUpdateManyWithoutAuthorNestedInput - manager?: Prisma.UserUpdateOneWithoutReportsNestedInput - company?: Prisma.CompanyUpdateOneWithoutUsersNestedInput -} - -export type UserUncheckedUpdateWithoutReportsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - jobTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - managerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.StringFieldUpdateOperationsInput | string - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - teams?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput - requestedTickets?: Prisma.TicketUncheckedUpdateManyWithoutRequesterNestedInput - assignedTickets?: Prisma.TicketUncheckedUpdateManyWithoutAssigneeNestedInput - comments?: Prisma.TicketCommentUncheckedUpdateManyWithoutAuthorNestedInput -} - -export type UserUpsertWithWhereUniqueWithoutManagerInput = { - where: Prisma.UserWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type UserUpdateWithWhereUniqueWithoutManagerInput = { - where: Prisma.UserWhereUniqueInput - data: Prisma.XOR -} - -export type UserUpdateManyWithWhereWithoutManagerInput = { - where: Prisma.UserScalarWhereInput - data: Prisma.XOR -} - -export type UserCreateWithoutRequestedTicketsInput = { - id?: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle?: string | null - timezone?: string - avatarUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - teams?: Prisma.TeamMemberCreateNestedManyWithoutUserInput - assignedTickets?: Prisma.TicketCreateNestedManyWithoutAssigneeInput - comments?: Prisma.TicketCommentCreateNestedManyWithoutAuthorInput - manager?: Prisma.UserCreateNestedOneWithoutReportsInput - reports?: Prisma.UserCreateNestedManyWithoutManagerInput - company?: Prisma.CompanyCreateNestedOneWithoutUsersInput -} - -export type UserUncheckedCreateWithoutRequestedTicketsInput = { - id?: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle?: string | null - managerId?: string | null - timezone?: string - avatarUrl?: string | null - companyId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - teams?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput - assignedTickets?: Prisma.TicketUncheckedCreateNestedManyWithoutAssigneeInput - comments?: Prisma.TicketCommentUncheckedCreateNestedManyWithoutAuthorInput - reports?: Prisma.UserUncheckedCreateNestedManyWithoutManagerInput -} - -export type UserCreateOrConnectWithoutRequestedTicketsInput = { - where: Prisma.UserWhereUniqueInput - create: Prisma.XOR -} - -export type UserCreateWithoutAssignedTicketsInput = { - id?: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle?: string | null - timezone?: string - avatarUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - teams?: Prisma.TeamMemberCreateNestedManyWithoutUserInput - requestedTickets?: Prisma.TicketCreateNestedManyWithoutRequesterInput - comments?: Prisma.TicketCommentCreateNestedManyWithoutAuthorInput - manager?: Prisma.UserCreateNestedOneWithoutReportsInput - reports?: Prisma.UserCreateNestedManyWithoutManagerInput - company?: Prisma.CompanyCreateNestedOneWithoutUsersInput -} - -export type UserUncheckedCreateWithoutAssignedTicketsInput = { - id?: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle?: string | null - managerId?: string | null - timezone?: string - avatarUrl?: string | null - companyId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - teams?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput - requestedTickets?: Prisma.TicketUncheckedCreateNestedManyWithoutRequesterInput - comments?: Prisma.TicketCommentUncheckedCreateNestedManyWithoutAuthorInput - reports?: Prisma.UserUncheckedCreateNestedManyWithoutManagerInput -} - -export type UserCreateOrConnectWithoutAssignedTicketsInput = { - where: Prisma.UserWhereUniqueInput - create: Prisma.XOR -} - -export type UserUpsertWithoutRequestedTicketsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.UserWhereInput -} - -export type UserUpdateToOneWithWhereWithoutRequestedTicketsInput = { - where?: Prisma.UserWhereInput - data: Prisma.XOR -} - -export type UserUpdateWithoutRequestedTicketsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - jobTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.StringFieldUpdateOperationsInput | string - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - teams?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput - assignedTickets?: Prisma.TicketUpdateManyWithoutAssigneeNestedInput - comments?: Prisma.TicketCommentUpdateManyWithoutAuthorNestedInput - manager?: Prisma.UserUpdateOneWithoutReportsNestedInput - reports?: Prisma.UserUpdateManyWithoutManagerNestedInput - company?: Prisma.CompanyUpdateOneWithoutUsersNestedInput -} - -export type UserUncheckedUpdateWithoutRequestedTicketsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - jobTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - managerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.StringFieldUpdateOperationsInput | string - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - teams?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput - assignedTickets?: Prisma.TicketUncheckedUpdateManyWithoutAssigneeNestedInput - comments?: Prisma.TicketCommentUncheckedUpdateManyWithoutAuthorNestedInput - reports?: Prisma.UserUncheckedUpdateManyWithoutManagerNestedInput -} - -export type UserUpsertWithoutAssignedTicketsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.UserWhereInput -} - -export type UserUpdateToOneWithWhereWithoutAssignedTicketsInput = { - where?: Prisma.UserWhereInput - data: Prisma.XOR -} - -export type UserUpdateWithoutAssignedTicketsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - jobTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.StringFieldUpdateOperationsInput | string - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - teams?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput - requestedTickets?: Prisma.TicketUpdateManyWithoutRequesterNestedInput - comments?: Prisma.TicketCommentUpdateManyWithoutAuthorNestedInput - manager?: Prisma.UserUpdateOneWithoutReportsNestedInput - reports?: Prisma.UserUpdateManyWithoutManagerNestedInput - company?: Prisma.CompanyUpdateOneWithoutUsersNestedInput -} - -export type UserUncheckedUpdateWithoutAssignedTicketsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - jobTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - managerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.StringFieldUpdateOperationsInput | string - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - teams?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput - requestedTickets?: Prisma.TicketUncheckedUpdateManyWithoutRequesterNestedInput - comments?: Prisma.TicketCommentUncheckedUpdateManyWithoutAuthorNestedInput - reports?: Prisma.UserUncheckedUpdateManyWithoutManagerNestedInput -} - -export type UserCreateWithoutCommentsInput = { - id?: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle?: string | null - timezone?: string - avatarUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string - teams?: Prisma.TeamMemberCreateNestedManyWithoutUserInput - requestedTickets?: Prisma.TicketCreateNestedManyWithoutRequesterInput - assignedTickets?: Prisma.TicketCreateNestedManyWithoutAssigneeInput - manager?: Prisma.UserCreateNestedOneWithoutReportsInput - reports?: Prisma.UserCreateNestedManyWithoutManagerInput - company?: Prisma.CompanyCreateNestedOneWithoutUsersInput -} - -export type UserUncheckedCreateWithoutCommentsInput = { - id?: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle?: string | null - managerId?: string | null - timezone?: string - avatarUrl?: string | null - companyId?: string | null - createdAt?: Date | string - updatedAt?: Date | string - teams?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput - requestedTickets?: Prisma.TicketUncheckedCreateNestedManyWithoutRequesterInput - assignedTickets?: Prisma.TicketUncheckedCreateNestedManyWithoutAssigneeInput - reports?: Prisma.UserUncheckedCreateNestedManyWithoutManagerInput -} - -export type UserCreateOrConnectWithoutCommentsInput = { - where: Prisma.UserWhereUniqueInput - create: Prisma.XOR -} - -export type UserUpsertWithoutCommentsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.UserWhereInput -} - -export type UserUpdateToOneWithWhereWithoutCommentsInput = { - where?: Prisma.UserWhereInput - data: Prisma.XOR -} - -export type UserUpdateWithoutCommentsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - jobTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.StringFieldUpdateOperationsInput | string - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - teams?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput - requestedTickets?: Prisma.TicketUpdateManyWithoutRequesterNestedInput - assignedTickets?: Prisma.TicketUpdateManyWithoutAssigneeNestedInput - manager?: Prisma.UserUpdateOneWithoutReportsNestedInput - reports?: Prisma.UserUpdateManyWithoutManagerNestedInput - company?: Prisma.CompanyUpdateOneWithoutUsersNestedInput -} - -export type UserUncheckedUpdateWithoutCommentsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - jobTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - managerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.StringFieldUpdateOperationsInput | string - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - teams?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput - requestedTickets?: Prisma.TicketUncheckedUpdateManyWithoutRequesterNestedInput - assignedTickets?: Prisma.TicketUncheckedUpdateManyWithoutAssigneeNestedInput - reports?: Prisma.UserUncheckedUpdateManyWithoutManagerNestedInput -} - -export type UserCreateManyCompanyInput = { - id?: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle?: string | null - managerId?: string | null - timezone?: string - avatarUrl?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type UserUpdateWithoutCompanyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - jobTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.StringFieldUpdateOperationsInput | string - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - teams?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput - requestedTickets?: Prisma.TicketUpdateManyWithoutRequesterNestedInput - assignedTickets?: Prisma.TicketUpdateManyWithoutAssigneeNestedInput - comments?: Prisma.TicketCommentUpdateManyWithoutAuthorNestedInput - manager?: Prisma.UserUpdateOneWithoutReportsNestedInput - reports?: Prisma.UserUpdateManyWithoutManagerNestedInput -} - -export type UserUncheckedUpdateWithoutCompanyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - jobTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - managerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.StringFieldUpdateOperationsInput | string - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - teams?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput - requestedTickets?: Prisma.TicketUncheckedUpdateManyWithoutRequesterNestedInput - assignedTickets?: Prisma.TicketUncheckedUpdateManyWithoutAssigneeNestedInput - comments?: Prisma.TicketCommentUncheckedUpdateManyWithoutAuthorNestedInput - reports?: Prisma.UserUncheckedUpdateManyWithoutManagerNestedInput -} - -export type UserUncheckedUpdateManyWithoutCompanyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - jobTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - managerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.StringFieldUpdateOperationsInput | string - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type UserCreateManyManagerInput = { - id?: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle?: string | null - timezone?: string - avatarUrl?: string | null - companyId?: string | null - createdAt?: Date | string - updatedAt?: Date | string -} - -export type UserUpdateWithoutManagerInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - jobTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.StringFieldUpdateOperationsInput | string - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - teams?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput - requestedTickets?: Prisma.TicketUpdateManyWithoutRequesterNestedInput - assignedTickets?: Prisma.TicketUpdateManyWithoutAssigneeNestedInput - comments?: Prisma.TicketCommentUpdateManyWithoutAuthorNestedInput - reports?: Prisma.UserUpdateManyWithoutManagerNestedInput - company?: Prisma.CompanyUpdateOneWithoutUsersNestedInput -} - -export type UserUncheckedUpdateWithoutManagerInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - jobTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.StringFieldUpdateOperationsInput | string - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - teams?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput - requestedTickets?: Prisma.TicketUncheckedUpdateManyWithoutRequesterNestedInput - assignedTickets?: Prisma.TicketUncheckedUpdateManyWithoutAssigneeNestedInput - comments?: Prisma.TicketCommentUncheckedUpdateManyWithoutAuthorNestedInput - reports?: Prisma.UserUncheckedUpdateManyWithoutManagerNestedInput -} - -export type UserUncheckedUpdateManyWithoutManagerInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - tenantId?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - jobTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - timezone?: Prisma.StringFieldUpdateOperationsInput | string - avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - - -/** - * Count Type UserCountOutputType - */ - -export type UserCountOutputType = { - teams: number - requestedTickets: number - assignedTickets: number - comments: number - reports: number -} - -export type UserCountOutputTypeSelect = { - teams?: boolean | UserCountOutputTypeCountTeamsArgs - requestedTickets?: boolean | UserCountOutputTypeCountRequestedTicketsArgs - assignedTickets?: boolean | UserCountOutputTypeCountAssignedTicketsArgs - comments?: boolean | UserCountOutputTypeCountCommentsArgs - reports?: boolean | UserCountOutputTypeCountReportsArgs -} - -/** - * UserCountOutputType without action - */ -export type UserCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the UserCountOutputType - */ - select?: Prisma.UserCountOutputTypeSelect | null -} - -/** - * UserCountOutputType without action - */ -export type UserCountOutputTypeCountTeamsArgs = { - where?: Prisma.TeamMemberWhereInput -} - -/** - * UserCountOutputType without action - */ -export type UserCountOutputTypeCountRequestedTicketsArgs = { - where?: Prisma.TicketWhereInput -} - -/** - * UserCountOutputType without action - */ -export type UserCountOutputTypeCountAssignedTicketsArgs = { - where?: Prisma.TicketWhereInput -} - -/** - * UserCountOutputType without action - */ -export type UserCountOutputTypeCountCommentsArgs = { - where?: Prisma.TicketCommentWhereInput -} - -/** - * UserCountOutputType without action - */ -export type UserCountOutputTypeCountReportsArgs = { - where?: Prisma.UserWhereInput -} - - -export type UserSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - name?: boolean - email?: boolean - role?: boolean - jobTitle?: boolean - managerId?: boolean - timezone?: boolean - avatarUrl?: boolean - companyId?: boolean - createdAt?: boolean - updatedAt?: boolean - teams?: boolean | Prisma.User$teamsArgs - requestedTickets?: boolean | Prisma.User$requestedTicketsArgs - assignedTickets?: boolean | Prisma.User$assignedTicketsArgs - comments?: boolean | Prisma.User$commentsArgs - manager?: boolean | Prisma.User$managerArgs - reports?: boolean | Prisma.User$reportsArgs - company?: boolean | Prisma.User$companyArgs - _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs -}, ExtArgs["result"]["user"]> - -export type UserSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - name?: boolean - email?: boolean - role?: boolean - jobTitle?: boolean - managerId?: boolean - timezone?: boolean - avatarUrl?: boolean - companyId?: boolean - createdAt?: boolean - updatedAt?: boolean - manager?: boolean | Prisma.User$managerArgs - company?: boolean | Prisma.User$companyArgs -}, ExtArgs["result"]["user"]> - -export type UserSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - tenantId?: boolean - name?: boolean - email?: boolean - role?: boolean - jobTitle?: boolean - managerId?: boolean - timezone?: boolean - avatarUrl?: boolean - companyId?: boolean - createdAt?: boolean - updatedAt?: boolean - manager?: boolean | Prisma.User$managerArgs - company?: boolean | Prisma.User$companyArgs -}, ExtArgs["result"]["user"]> - -export type UserSelectScalar = { - id?: boolean - tenantId?: boolean - name?: boolean - email?: boolean - role?: boolean - jobTitle?: boolean - managerId?: boolean - timezone?: boolean - avatarUrl?: boolean - companyId?: boolean - createdAt?: boolean - updatedAt?: boolean -} - -export type UserOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "name" | "email" | "role" | "jobTitle" | "managerId" | "timezone" | "avatarUrl" | "companyId" | "createdAt" | "updatedAt", ExtArgs["result"]["user"]> -export type UserInclude = { - teams?: boolean | Prisma.User$teamsArgs - requestedTickets?: boolean | Prisma.User$requestedTicketsArgs - assignedTickets?: boolean | Prisma.User$assignedTicketsArgs - comments?: boolean | Prisma.User$commentsArgs - manager?: boolean | Prisma.User$managerArgs - reports?: boolean | Prisma.User$reportsArgs - company?: boolean | Prisma.User$companyArgs - _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs -} -export type UserIncludeCreateManyAndReturn = { - manager?: boolean | Prisma.User$managerArgs - company?: boolean | Prisma.User$companyArgs -} -export type UserIncludeUpdateManyAndReturn = { - manager?: boolean | Prisma.User$managerArgs - company?: boolean | Prisma.User$companyArgs -} - -export type $UserPayload = { - name: "User" - objects: { - teams: Prisma.$TeamMemberPayload[] - requestedTickets: Prisma.$TicketPayload[] - assignedTickets: Prisma.$TicketPayload[] - comments: Prisma.$TicketCommentPayload[] - manager: Prisma.$UserPayload | null - reports: Prisma.$UserPayload[] - company: Prisma.$CompanyPayload | null - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - tenantId: string - name: string - email: string - role: $Enums.UserRole - jobTitle: string | null - managerId: string | null - timezone: string - avatarUrl: string | null - companyId: string | null - createdAt: Date - updatedAt: Date - }, ExtArgs["result"]["user"]> - composites: {} -} - -export type UserGetPayload = runtime.Types.Result.GetResult - -export type UserCountArgs = - Omit & { - select?: UserCountAggregateInputType | true - } - -export interface UserDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['User'], meta: { name: 'User' } } - /** - * Find zero or one User that matches the filter. - * @param {UserFindUniqueArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one User that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first User that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserFindFirstArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first User that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User - * @example - * // Get one User - * const user = await prisma.user.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Users that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Users - * const users = await prisma.user.findMany() - * - * // Get first 10 Users - * const users = await prisma.user.findMany({ take: 10 }) - * - * // Only select the `id` - * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a User. - * @param {UserCreateArgs} args - Arguments to create a User. - * @example - * // Create one User - * const User = await prisma.user.create({ - * data: { - * // ... data to create a User - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Users. - * @param {UserCreateManyArgs} args - Arguments to create many Users. - * @example - * // Create many Users - * const user = await prisma.user.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Users and returns the data saved in the database. - * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users. - * @example - * // Create many Users - * const user = await prisma.user.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Users and only return the `id` - * const userWithIdOnly = await prisma.user.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a User. - * @param {UserDeleteArgs} args - Arguments to delete one User. - * @example - * // Delete one User - * const User = await prisma.user.delete({ - * where: { - * // ... filter to delete one User - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one User. - * @param {UserUpdateArgs} args - Arguments to update one User. - * @example - * // Update one User - * const user = await prisma.user.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Users. - * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete. - * @example - * // Delete a few Users - * const { count } = await prisma.user.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Users. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Users - * const user = await prisma.user.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Users and returns the data updated in the database. - * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users. - * @example - * // Update many Users - * const user = await prisma.user.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Users and only return the `id` - * const userWithIdOnly = await prisma.user.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one User. - * @param {UserUpsertArgs} args - Arguments to update or create a User. - * @example - * // Update or create a User - * const user = await prisma.user.upsert({ - * create: { - * // ... data to create a User - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the User we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Users. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserCountArgs} args - Arguments to filter Users to count. - * @example - * // Count the number of Users - * const count = await prisma.user.count({ - * where: { - * // ... the filter for the Users we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a User. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by User. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {UserGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends UserGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: UserGroupByArgs['orderBy'] } - : { orderBy?: UserGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetUserGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the User model - */ -readonly fields: UserFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for User. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__UserClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - teams = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - requestedTickets = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - assignedTickets = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - comments = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - manager = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - reports = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - company = {}>(args?: Prisma.Subset>): Prisma.Prisma__CompanyClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the User model - */ -export interface UserFieldRefs { - readonly id: Prisma.FieldRef<"User", 'String'> - readonly tenantId: Prisma.FieldRef<"User", 'String'> - readonly name: Prisma.FieldRef<"User", 'String'> - readonly email: Prisma.FieldRef<"User", 'String'> - readonly role: Prisma.FieldRef<"User", 'UserRole'> - readonly jobTitle: Prisma.FieldRef<"User", 'String'> - readonly managerId: Prisma.FieldRef<"User", 'String'> - readonly timezone: Prisma.FieldRef<"User", 'String'> - readonly avatarUrl: Prisma.FieldRef<"User", 'String'> - readonly companyId: Prisma.FieldRef<"User", 'String'> - readonly createdAt: Prisma.FieldRef<"User", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"User", 'DateTime'> -} - - -// Custom InputTypes -/** - * User findUnique - */ -export type UserFindUniqueArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * Filter, which User to fetch. - */ - where: Prisma.UserWhereUniqueInput -} - -/** - * User findUniqueOrThrow - */ -export type UserFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * Filter, which User to fetch. - */ - where: Prisma.UserWhereUniqueInput -} - -/** - * User findFirst - */ -export type UserFindFirstArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * Filter, which User to fetch. - */ - where?: Prisma.UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Users. - */ - cursor?: Prisma.UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Users. - */ - distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] -} - -/** - * User findFirstOrThrow - */ -export type UserFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * Filter, which User to fetch. - */ - where?: Prisma.UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Users. - */ - cursor?: Prisma.UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Users. - */ - distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] -} - -/** - * User findMany - */ -export type UserFindManyArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * Filter, which Users to fetch. - */ - where?: Prisma.UserWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Users to fetch. - */ - orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Users. - */ - cursor?: Prisma.UserWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Users from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Users. - */ - skip?: number - distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] -} - -/** - * User create - */ -export type UserCreateArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * The data needed to create a User. - */ - data: Prisma.XOR -} - -/** - * User createMany - */ -export type UserCreateManyArgs = { - /** - * The data used to create many Users. - */ - data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[] -} - -/** - * User createManyAndReturn - */ -export type UserCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelectCreateManyAndReturn | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * The data used to create many Users. - */ - data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[] - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserIncludeCreateManyAndReturn | null -} - -/** - * User update - */ -export type UserUpdateArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * The data needed to update a User. - */ - data: Prisma.XOR - /** - * Choose, which User to update. - */ - where: Prisma.UserWhereUniqueInput -} - -/** - * User updateMany - */ -export type UserUpdateManyArgs = { - /** - * The data used to update Users. - */ - data: Prisma.XOR - /** - * Filter which Users to update - */ - where?: Prisma.UserWhereInput - /** - * Limit how many Users to update. - */ - limit?: number -} - -/** - * User updateManyAndReturn - */ -export type UserUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * The data used to update Users. - */ - data: Prisma.XOR - /** - * Filter which Users to update - */ - where?: Prisma.UserWhereInput - /** - * Limit how many Users to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserIncludeUpdateManyAndReturn | null -} - -/** - * User upsert - */ -export type UserUpsertArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * The filter to search for the User to update in case it exists. - */ - where: Prisma.UserWhereUniqueInput - /** - * In case the User found by the `where` argument doesn't exist, create a new User with this data. - */ - create: Prisma.XOR - /** - * In case the User was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * User delete - */ -export type UserDeleteArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - /** - * Filter which User to delete. - */ - where: Prisma.UserWhereUniqueInput -} - -/** - * User deleteMany - */ -export type UserDeleteManyArgs = { - /** - * Filter which Users to delete - */ - where?: Prisma.UserWhereInput - /** - * Limit how many Users to delete. - */ - limit?: number -} - -/** - * User.teams - */ -export type User$teamsArgs = { - /** - * Select specific fields to fetch from the TeamMember - */ - select?: Prisma.TeamMemberSelect | null - /** - * Omit specific fields from the TeamMember - */ - omit?: Prisma.TeamMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TeamMemberInclude | null - where?: Prisma.TeamMemberWhereInput - orderBy?: Prisma.TeamMemberOrderByWithRelationInput | Prisma.TeamMemberOrderByWithRelationInput[] - cursor?: Prisma.TeamMemberWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.TeamMemberScalarFieldEnum | Prisma.TeamMemberScalarFieldEnum[] -} - -/** - * User.requestedTickets - */ -export type User$requestedTicketsArgs = { - /** - * Select specific fields to fetch from the Ticket - */ - select?: Prisma.TicketSelect | null - /** - * Omit specific fields from the Ticket - */ - omit?: Prisma.TicketOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketInclude | null - where?: Prisma.TicketWhereInput - orderBy?: Prisma.TicketOrderByWithRelationInput | Prisma.TicketOrderByWithRelationInput[] - cursor?: Prisma.TicketWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.TicketScalarFieldEnum | Prisma.TicketScalarFieldEnum[] -} - -/** - * User.assignedTickets - */ -export type User$assignedTicketsArgs = { - /** - * Select specific fields to fetch from the Ticket - */ - select?: Prisma.TicketSelect | null - /** - * Omit specific fields from the Ticket - */ - omit?: Prisma.TicketOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketInclude | null - where?: Prisma.TicketWhereInput - orderBy?: Prisma.TicketOrderByWithRelationInput | Prisma.TicketOrderByWithRelationInput[] - cursor?: Prisma.TicketWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.TicketScalarFieldEnum | Prisma.TicketScalarFieldEnum[] -} - -/** - * User.comments - */ -export type User$commentsArgs = { - /** - * Select specific fields to fetch from the TicketComment - */ - select?: Prisma.TicketCommentSelect | null - /** - * Omit specific fields from the TicketComment - */ - omit?: Prisma.TicketCommentOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TicketCommentInclude | null - where?: Prisma.TicketCommentWhereInput - orderBy?: Prisma.TicketCommentOrderByWithRelationInput | Prisma.TicketCommentOrderByWithRelationInput[] - cursor?: Prisma.TicketCommentWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.TicketCommentScalarFieldEnum | Prisma.TicketCommentScalarFieldEnum[] -} - -/** - * User.manager - */ -export type User$managerArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - where?: Prisma.UserWhereInput -} - -/** - * User.reports - */ -export type User$reportsArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null - where?: Prisma.UserWhereInput - orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] - cursor?: Prisma.UserWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] -} - -/** - * User.company - */ -export type User$companyArgs = { - /** - * Select specific fields to fetch from the Company - */ - select?: Prisma.CompanySelect | null - /** - * Omit specific fields from the Company - */ - omit?: Prisma.CompanyOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.CompanyInclude | null - where?: Prisma.CompanyWhereInput -} - -/** - * User without action - */ -export type UserDefaultArgs = { - /** - * Select specific fields to fetch from the User - */ - select?: Prisma.UserSelect | null - /** - * Omit specific fields from the User - */ - omit?: Prisma.UserOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null -} diff --git a/src/lib/prisma.ts b/src/lib/prisma.ts index c6920af..2d6ea1b 100644 --- a/src/lib/prisma.ts +++ b/src/lib/prisma.ts @@ -1,10 +1,20 @@ import path from "node:path" -import { PrismaClient } from "@/generated/prisma/client" import { PrismaBetterSqlite3 } from "@prisma/adapter-better-sqlite3" +import { PrismaClient, Prisma } from "@/generated/prisma/client" + +type PrismaClientInstance = InstanceType +type TransactionCallback = Extract< + Parameters[0], + (tx: PrismaClientInstance) => Promise +> +export type PrismaTransactionClient = TransactionCallback extends (tx: infer Client) => Promise + ? Client + : never +export type PrismaDelegateClient = PrismaClientInstance declare global { - var prisma: PrismaClient | undefined + var prisma: PrismaClientInstance | undefined } // Resolve a robust DATABASE_URL for all runtimes (prod/dev) @@ -72,4 +82,21 @@ if (process.env.NODE_ENV !== "production") { console.log("[prisma] Using database:", resolvedDatabaseUrl) } -export * from "@/generated/prisma/client" +export { Prisma } + +type PrismaKnownErrorLike = { + code?: string + meta?: Record + message?: string +} + +export function asPrismaKnownError(error: unknown): PrismaKnownErrorLike | null { + if (!error || typeof error !== "object") { + return null + } + const candidate = error as PrismaKnownErrorLike + if (typeof candidate.code !== "string") { + return null + } + return candidate +} diff --git a/src/server/company-service.ts b/src/server/company-service.ts index 25c2162..9ce8b29 100644 --- a/src/server/company-service.ts +++ b/src/server/company-service.ts @@ -1,4 +1,7 @@ -import { Prisma, type Company, prisma } from "@/lib/prisma" +import type { Prisma as PrismaTypes } from "@/generated/prisma/client" +import { Prisma, asPrismaKnownError } from "@/lib/prisma" +import type { PrismaDelegateClient } from "@/lib/prisma" +import { prisma } from "@/lib/prisma" import { ZodError } from "zod" import { @@ -9,6 +12,10 @@ import { type CompanyStateRegistrationTypeOption, } from "@/lib/schemas/company" +type DbCompany = Awaited> +type CompanyFindManyArgs = Parameters[0] +type CompanyCreatePayload = Parameters[0]["data"] + export type NormalizedCompany = CompanyFormValues & { id: string provisioningCode: string | null @@ -16,8 +23,6 @@ export type NormalizedCompany = CompanyFormValues & { updatedAt: string } -type CompanyCreatePayload = Omit - // Local representation of the DB enum to avoid relying on Prisma enum exports type DbCompanyStateRegistrationType = "STANDARD" | "EXEMPT" | "SIMPLES" @@ -71,7 +76,26 @@ const STATE_REGISTRATION_TYPE_FROM_PRISMA: Record< SIMPLES: "simples", } -const JSON_NULL_VALUE = Prisma.JsonNull as unknown as Prisma.InputJsonValue +type PrismaJsonInput = PrismaTypes.InputJsonValue | PrismaTypes.NullableJsonNullValueInput + +const JSON_NULL_VALUE: PrismaTypes.NullableJsonNullValueInput = Prisma.JsonNull + +function toJsonInput(value: unknown): PrismaJsonInput { + if (value === null || value === undefined) { + return JSON_NULL_VALUE + } + if (value === Prisma.JsonNull || value === Prisma.DbNull) { + return value + } + return value as PrismaTypes.InputJsonValue +} + +function asJsonRecord(value: PrismaTypes.JsonValue | null | undefined): Record | undefined { + if (!value || typeof value !== "object" || Array.isArray(value)) { + return undefined + } + return value as Record +} const COMPANY_LEGACY_SELECT = { id: true, @@ -81,13 +105,12 @@ const COMPANY_LEGACY_SELECT = { isAvulso: true, createdAt: true, updatedAt: true, -} satisfies Prisma.CompanySelect - -type LegacyCompanyRow = Prisma.CompanyGetPayload<{ select: typeof COMPANY_LEGACY_SELECT }> +} as const function isMissingProvisioningCodeColumn(error: unknown): boolean { - if (error instanceof Prisma.PrismaClientKnownRequestError && error.code === "P2022") { - const meta = error.meta as Record | undefined + const knownError = asPrismaKnownError(error) + if (knownError && knownError.code === "P2022") { + const meta = knownError.meta as Record | undefined const metaColumn = typeof meta?.column === "string" ? meta.column @@ -97,15 +120,16 @@ function isMissingProvisioningCodeColumn(error: unknown): boolean { ? meta.model : null if (metaColumn && metaColumn.toLowerCase().includes("provisioningcode")) return true - if (error.message.toLowerCase().includes("provisioningcode")) return true + if (knownError.message?.toLowerCase().includes("provisioningcode")) return true } return false } function isMissingCompanyTable(error: unknown): boolean { - if (error instanceof Prisma.PrismaClientKnownRequestError) { - if (error.code === "P2021") return true - const message = error.message.toLowerCase() + const knownError = asPrismaKnownError(error) + if (knownError) { + if (knownError.code === "P2021") return true + const message = knownError.message?.toLowerCase() ?? "" if (message.includes("table") && message.includes("company") && message.includes("does not exist")) { return true } @@ -113,7 +137,7 @@ function isMissingCompanyTable(error: unknown): boolean { return false } -export async function safeCompanyFindMany(args: Prisma.CompanyFindManyArgs): Promise { +export async function safeCompanyFindMany(args: CompanyFindManyArgs = {} as CompanyFindManyArgs): Promise { try { return await prisma.company.findMany(args) } catch (error) { @@ -124,14 +148,15 @@ export async function safeCompanyFindMany(args: Prisma.CompanyFindManyArgs): Pro throw error } - if (args.select || args.include) { + const hasProjection = Boolean(args?.select || args?.include) + if (hasProjection) { throw error } - const legacyRows = (await prisma.company.findMany({ + const legacyRows = await prisma.company.findMany({ ...args, select: COMPANY_LEGACY_SELECT, - })) as LegacyCompanyRow[] + }) return legacyRows.map( (row) => ({ @@ -174,7 +199,7 @@ export async function safeCompanyFindMany(args: Prisma.CompanyFindManyArgs): Pro notes: null, createdAt: row.createdAt, updatedAt: row.updatedAt, - }) as Company + }) as DbCompany ) } } @@ -326,11 +351,20 @@ export function buildCompanyData(payload: CompanyFormValues, tenantId: string): const communicationChannels = mergeChannelsWithPrimary(payload) const privacyPolicyMetadata = payload.privacyPolicy?.metadata ?? null + const contactPreferencesPayload = + payload.contactPreferences || payload.supportEmail || payload.billingEmail + ? { + ...(payload.contactPreferences ?? {}), + supportEmail: payload.supportEmail ?? null, + billingEmail: payload.billingEmail ?? null, + } + : null const data: CompanyCreatePayload = { tenantId, name: payload.name.trim(), slug: payload.slug.trim(), + provisioningCode: payload.slug.trim(), isAvulso: payload.isAvulso ?? false, contractedHoursPerMonth: payload.contractedHoursPerMonth ?? null, cnpj: payload.cnpj ?? null, @@ -344,40 +378,31 @@ export function buildCompanyData(payload: CompanyFormValues, tenantId: string): stateRegistrationType, primaryCnae: payload.primaryCnae ?? null, timezone: payload.businessHours?.timezone ?? null, - businessHours: payload.businessHours ?? JSON_NULL_VALUE, + businessHours: toJsonInput(payload.businessHours), supportEmail: payload.supportEmail ?? null, billingEmail: payload.billingEmail ?? null, - contactPreferences: - payload.contactPreferences || payload.supportEmail || payload.billingEmail - ? ({ - ...payload.contactPreferences, - supportEmail: payload.supportEmail ?? null, - billingEmail: payload.billingEmail ?? null, - } satisfies Prisma.InputJsonValue) - : JSON_NULL_VALUE, - clientDomains: payload.clientDomains, - communicationChannels, - fiscalAddress: payload.fiscalAddress ?? JSON_NULL_VALUE, + contactPreferences: toJsonInput(contactPreferencesPayload), + clientDomains: toJsonInput(payload.clientDomains), + communicationChannels: toJsonInput(communicationChannels), + fiscalAddress: toJsonInput(payload.fiscalAddress), hasBranches: payload.hasBranches ?? false, - regulatedEnvironments: payload.regulatedEnvironments, + regulatedEnvironments: toJsonInput(payload.regulatedEnvironments), privacyPolicyAccepted: payload.privacyPolicy?.accepted ?? false, privacyPolicyReference: payload.privacyPolicy?.reference ?? null, - privacyPolicyMetadata: privacyPolicyMetadata - ? (privacyPolicyMetadata as Prisma.InputJsonValue) - : JSON_NULL_VALUE, - contacts: payload.contacts, - locations: payload.locations, - contracts: payload.contracts, - sla: payload.sla ?? JSON_NULL_VALUE, - tags: payload.tags, - customFields: payload.customFields, + privacyPolicyMetadata: toJsonInput(privacyPolicyMetadata), + contacts: toJsonInput(payload.contacts), + locations: toJsonInput(payload.locations), + contracts: toJsonInput(payload.contracts), + sla: toJsonInput(payload.sla), + tags: toJsonInput(payload.tags), + customFields: toJsonInput(payload.customFields), notes: payload.notes ?? null, } return data } -export function normalizeCompany(company: Company): NormalizedCompany { +export function normalizeCompany(company: DbCompany): NormalizedCompany { const communicationChannels = normalizeChannels( company.communicationChannels as CompanyCommunicationChannels | null | undefined ) @@ -413,9 +438,7 @@ export function normalizeCompany(company: Company): NormalizedCompany { privacyPolicy: { accepted: Boolean(company.privacyPolicyAccepted), reference: company.privacyPolicyReference ?? null, - metadata: company.privacyPolicyMetadata - ? (company.privacyPolicyMetadata as Record) - : undefined, + metadata: asJsonRecord(company.privacyPolicyMetadata), }, contacts: (company.contacts as CompanyFormValues["contacts"]) ?? [], locations: (company.locations as CompanyFormValues["locations"]) ?? [], @@ -443,14 +466,14 @@ export function normalizeCompany(company: Company): NormalizedCompany { } } -export async function fetchCompaniesByTenant(tenantId: string): Promise { +export async function fetchCompaniesByTenant(tenantId: string): Promise { return safeCompanyFindMany({ where: { tenantId }, orderBy: { name: "asc" }, }) } -export async function fetchCompanyById(id: string): Promise { +export async function fetchCompanyById(id: string): Promise { const rows = await safeCompanyFindMany({ where: { id }, take: 1, diff --git a/src/server/invite-utils.ts b/src/server/invite-utils.ts index 4f8b300..423316b 100644 --- a/src/server/invite-utils.ts +++ b/src/server/invite-utils.ts @@ -1,4 +1,4 @@ -import type { AuthInvite, AuthInviteEvent } from "@/lib/prisma" +import type { AuthInvite, AuthInviteEvent } from "@/generated/prisma/client" import { ROLE_OPTIONS, type RoleOption, normalizeRole } from "@/lib/authz" import { DEFAULT_TENANT_ID } from "@/lib/constants" diff --git a/src/server/report-schedule-runner.ts b/src/server/report-schedule-runner.ts index 0bab65b..dec5e88 100644 --- a/src/server/report-schedule-runner.ts +++ b/src/server/report-schedule-runner.ts @@ -1,7 +1,6 @@ "use server" -import type { Prisma } from "@/lib/prisma" - +import type { Prisma as PrismaTypes } from "@/generated/prisma/client" import { prisma } from "@/lib/prisma" import { env } from "@/lib/env" import { sendSmtpMail } from "@/server/email-smtp" @@ -62,7 +61,7 @@ export async function runReportSchedules( ): Promise { const now = options.now ?? new Date() - const where: Prisma.ReportExportScheduleWhereInput = { + const where: PrismaTypes.ReportExportScheduleWhereInput = { status: "ACTIVE", } if (options.tenantId) { diff --git a/src/server/report-schedule-service.ts b/src/server/report-schedule-service.ts index f8a76db..421c934 100644 --- a/src/server/report-schedule-service.ts +++ b/src/server/report-schedule-service.ts @@ -1,7 +1,7 @@ import "server-only" import { addMonths, addWeeks, isBefore } from "date-fns" -import type { ReportExportRun, ReportExportSchedule } from "@/lib/prisma" +import type { ReportExportRun, ReportExportSchedule } from "@/generated/prisma/client" import { REPORT_EXPORT_DEFINITIONS, type ReportExportKey } from "@/lib/report-definitions" type SerializableSchedule = ReportExportSchedule & {