/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `SupportTicket` 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.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model SupportTicket * */ export type SupportTicketModel = runtime.Types.Result.DefaultSelection export type AggregateSupportTicket = { _count: SupportTicketCountAggregateOutputType | null _min: SupportTicketMinAggregateOutputType | null _max: SupportTicketMaxAggregateOutputType | null } export type SupportTicketMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null userId: string | null source: string | null status: string | null priority: string | null subject: string | null message: string | null fromEmail: string | null fromUrl: string | null inboundMessageId: string | null } export type SupportTicketMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null userId: string | null source: string | null status: string | null priority: string | null subject: string | null message: string | null fromEmail: string | null fromUrl: string | null inboundMessageId: string | null } export type SupportTicketCountAggregateOutputType = { id: number createdAt: number updatedAt: number tenantId: number userId: number source: number status: number priority: number subject: number message: number fromEmail: number fromUrl: number inboundMessageId: number _all: number } export type SupportTicketMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true userId?: true source?: true status?: true priority?: true subject?: true message?: true fromEmail?: true fromUrl?: true inboundMessageId?: true } export type SupportTicketMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true userId?: true source?: true status?: true priority?: true subject?: true message?: true fromEmail?: true fromUrl?: true inboundMessageId?: true } export type SupportTicketCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true userId?: true source?: true status?: true priority?: true subject?: true message?: true fromEmail?: true fromUrl?: true inboundMessageId?: true _all?: true } export type SupportTicketAggregateArgs = { /** * Filter which SupportTicket to aggregate. */ where?: Prisma.SupportTicketWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SupportTickets to fetch. */ orderBy?: Prisma.SupportTicketOrderByWithRelationInput | Prisma.SupportTicketOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.SupportTicketWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SupportTickets 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` SupportTickets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned SupportTickets **/ _count?: true | SupportTicketCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SupportTicketMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SupportTicketMaxAggregateInputType } export type GetSupportTicketAggregateType = { [P in keyof T & keyof AggregateSupportTicket]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type SupportTicketGroupByArgs = { where?: Prisma.SupportTicketWhereInput orderBy?: Prisma.SupportTicketOrderByWithAggregationInput | Prisma.SupportTicketOrderByWithAggregationInput[] by: Prisma.SupportTicketScalarFieldEnum[] | Prisma.SupportTicketScalarFieldEnum having?: Prisma.SupportTicketScalarWhereWithAggregatesInput take?: number skip?: number _count?: SupportTicketCountAggregateInputType | true _min?: SupportTicketMinAggregateInputType _max?: SupportTicketMaxAggregateInputType } export type SupportTicketGroupByOutputType = { id: string createdAt: Date updatedAt: Date tenantId: string | null userId: string | null source: string status: string priority: string subject: string message: string fromEmail: string | null fromUrl: string | null inboundMessageId: string | null _count: SupportTicketCountAggregateOutputType | null _min: SupportTicketMinAggregateOutputType | null _max: SupportTicketMaxAggregateOutputType | null } export type GetSupportTicketGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof SupportTicketGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type SupportTicketWhereInput = { AND?: Prisma.SupportTicketWhereInput | Prisma.SupportTicketWhereInput[] OR?: Prisma.SupportTicketWhereInput[] NOT?: Prisma.SupportTicketWhereInput | Prisma.SupportTicketWhereInput[] id?: Prisma.StringFilter<"SupportTicket"> | string createdAt?: Prisma.DateTimeFilter<"SupportTicket"> | Date | string updatedAt?: Prisma.DateTimeFilter<"SupportTicket"> | Date | string tenantId?: Prisma.StringNullableFilter<"SupportTicket"> | string | null userId?: Prisma.StringNullableFilter<"SupportTicket"> | string | null source?: Prisma.StringFilter<"SupportTicket"> | string status?: Prisma.StringFilter<"SupportTicket"> | string priority?: Prisma.StringFilter<"SupportTicket"> | string subject?: Prisma.StringFilter<"SupportTicket"> | string message?: Prisma.StringFilter<"SupportTicket"> | string fromEmail?: Prisma.StringNullableFilter<"SupportTicket"> | string | null fromUrl?: Prisma.StringNullableFilter<"SupportTicket"> | string | null inboundMessageId?: Prisma.StringNullableFilter<"SupportTicket"> | string | null tenant?: Prisma.XOR | null user?: Prisma.XOR | null } export type SupportTicketOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder userId?: Prisma.SortOrderInput | Prisma.SortOrder source?: Prisma.SortOrder status?: Prisma.SortOrder priority?: Prisma.SortOrder subject?: Prisma.SortOrder message?: Prisma.SortOrder fromEmail?: Prisma.SortOrderInput | Prisma.SortOrder fromUrl?: Prisma.SortOrderInput | Prisma.SortOrder inboundMessageId?: Prisma.SortOrderInput | Prisma.SortOrder tenant?: Prisma.TenantOrderByWithRelationInput user?: Prisma.UserOrderByWithRelationInput } export type SupportTicketWhereUniqueInput = Prisma.AtLeast<{ id?: string inboundMessageId?: string AND?: Prisma.SupportTicketWhereInput | Prisma.SupportTicketWhereInput[] OR?: Prisma.SupportTicketWhereInput[] NOT?: Prisma.SupportTicketWhereInput | Prisma.SupportTicketWhereInput[] createdAt?: Prisma.DateTimeFilter<"SupportTicket"> | Date | string updatedAt?: Prisma.DateTimeFilter<"SupportTicket"> | Date | string tenantId?: Prisma.StringNullableFilter<"SupportTicket"> | string | null userId?: Prisma.StringNullableFilter<"SupportTicket"> | string | null source?: Prisma.StringFilter<"SupportTicket"> | string status?: Prisma.StringFilter<"SupportTicket"> | string priority?: Prisma.StringFilter<"SupportTicket"> | string subject?: Prisma.StringFilter<"SupportTicket"> | string message?: Prisma.StringFilter<"SupportTicket"> | string fromEmail?: Prisma.StringNullableFilter<"SupportTicket"> | string | null fromUrl?: Prisma.StringNullableFilter<"SupportTicket"> | string | null tenant?: Prisma.XOR | null user?: Prisma.XOR | null }, "id" | "inboundMessageId"> export type SupportTicketOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder userId?: Prisma.SortOrderInput | Prisma.SortOrder source?: Prisma.SortOrder status?: Prisma.SortOrder priority?: Prisma.SortOrder subject?: Prisma.SortOrder message?: Prisma.SortOrder fromEmail?: Prisma.SortOrderInput | Prisma.SortOrder fromUrl?: Prisma.SortOrderInput | Prisma.SortOrder inboundMessageId?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.SupportTicketCountOrderByAggregateInput _max?: Prisma.SupportTicketMaxOrderByAggregateInput _min?: Prisma.SupportTicketMinOrderByAggregateInput } export type SupportTicketScalarWhereWithAggregatesInput = { AND?: Prisma.SupportTicketScalarWhereWithAggregatesInput | Prisma.SupportTicketScalarWhereWithAggregatesInput[] OR?: Prisma.SupportTicketScalarWhereWithAggregatesInput[] NOT?: Prisma.SupportTicketScalarWhereWithAggregatesInput | Prisma.SupportTicketScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"SupportTicket"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"SupportTicket"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"SupportTicket"> | Date | string tenantId?: Prisma.StringNullableWithAggregatesFilter<"SupportTicket"> | string | null userId?: Prisma.StringNullableWithAggregatesFilter<"SupportTicket"> | string | null source?: Prisma.StringWithAggregatesFilter<"SupportTicket"> | string status?: Prisma.StringWithAggregatesFilter<"SupportTicket"> | string priority?: Prisma.StringWithAggregatesFilter<"SupportTicket"> | string subject?: Prisma.StringWithAggregatesFilter<"SupportTicket"> | string message?: Prisma.StringWithAggregatesFilter<"SupportTicket"> | string fromEmail?: Prisma.StringNullableWithAggregatesFilter<"SupportTicket"> | string | null fromUrl?: Prisma.StringNullableWithAggregatesFilter<"SupportTicket"> | string | null inboundMessageId?: Prisma.StringNullableWithAggregatesFilter<"SupportTicket"> | string | null } export type SupportTicketCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string source: string status?: string priority?: string subject: string message: string fromEmail?: string | null fromUrl?: string | null inboundMessageId?: string | null tenant?: Prisma.TenantCreateNestedOneWithoutSupportTicketsInput user?: Prisma.UserCreateNestedOneWithoutSupportTicketsInput } export type SupportTicketUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId?: string | null userId?: string | null source: string status?: string priority?: string subject: string message: string fromEmail?: string | null fromUrl?: string | null inboundMessageId?: string | null } export type SupportTicketUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string source?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string priority?: Prisma.StringFieldUpdateOperationsInput | string subject?: Prisma.StringFieldUpdateOperationsInput | string message?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null fromUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null inboundMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenant?: Prisma.TenantUpdateOneWithoutSupportTicketsNestedInput user?: Prisma.UserUpdateOneWithoutSupportTicketsNestedInput } export type SupportTicketUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null source?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string priority?: Prisma.StringFieldUpdateOperationsInput | string subject?: Prisma.StringFieldUpdateOperationsInput | string message?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null fromUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null inboundMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type SupportTicketCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId?: string | null userId?: string | null source: string status?: string priority?: string subject: string message: string fromEmail?: string | null fromUrl?: string | null inboundMessageId?: string | null } export type SupportTicketUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string source?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string priority?: Prisma.StringFieldUpdateOperationsInput | string subject?: Prisma.StringFieldUpdateOperationsInput | string message?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null fromUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null inboundMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type SupportTicketUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null source?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string priority?: Prisma.StringFieldUpdateOperationsInput | string subject?: Prisma.StringFieldUpdateOperationsInput | string message?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null fromUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null inboundMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type SupportTicketListRelationFilter = { every?: Prisma.SupportTicketWhereInput some?: Prisma.SupportTicketWhereInput none?: Prisma.SupportTicketWhereInput } export type SupportTicketOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type SupportTicketCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder source?: Prisma.SortOrder status?: Prisma.SortOrder priority?: Prisma.SortOrder subject?: Prisma.SortOrder message?: Prisma.SortOrder fromEmail?: Prisma.SortOrder fromUrl?: Prisma.SortOrder inboundMessageId?: Prisma.SortOrder } export type SupportTicketMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder source?: Prisma.SortOrder status?: Prisma.SortOrder priority?: Prisma.SortOrder subject?: Prisma.SortOrder message?: Prisma.SortOrder fromEmail?: Prisma.SortOrder fromUrl?: Prisma.SortOrder inboundMessageId?: Prisma.SortOrder } export type SupportTicketMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder source?: Prisma.SortOrder status?: Prisma.SortOrder priority?: Prisma.SortOrder subject?: Prisma.SortOrder message?: Prisma.SortOrder fromEmail?: Prisma.SortOrder fromUrl?: Prisma.SortOrder inboundMessageId?: Prisma.SortOrder } export type SupportTicketCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.SupportTicketCreateWithoutUserInput[] | Prisma.SupportTicketUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.SupportTicketCreateOrConnectWithoutUserInput | Prisma.SupportTicketCreateOrConnectWithoutUserInput[] createMany?: Prisma.SupportTicketCreateManyUserInputEnvelope connect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[] } export type SupportTicketUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.SupportTicketCreateWithoutUserInput[] | Prisma.SupportTicketUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.SupportTicketCreateOrConnectWithoutUserInput | Prisma.SupportTicketCreateOrConnectWithoutUserInput[] createMany?: Prisma.SupportTicketCreateManyUserInputEnvelope connect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[] } export type SupportTicketUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.SupportTicketCreateWithoutUserInput[] | Prisma.SupportTicketUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.SupportTicketCreateOrConnectWithoutUserInput | Prisma.SupportTicketCreateOrConnectWithoutUserInput[] upsert?: Prisma.SupportTicketUpsertWithWhereUniqueWithoutUserInput | Prisma.SupportTicketUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.SupportTicketCreateManyUserInputEnvelope set?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[] disconnect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[] delete?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[] connect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[] update?: Prisma.SupportTicketUpdateWithWhereUniqueWithoutUserInput | Prisma.SupportTicketUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.SupportTicketUpdateManyWithWhereWithoutUserInput | Prisma.SupportTicketUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.SupportTicketScalarWhereInput | Prisma.SupportTicketScalarWhereInput[] } export type SupportTicketUncheckedUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.SupportTicketCreateWithoutUserInput[] | Prisma.SupportTicketUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.SupportTicketCreateOrConnectWithoutUserInput | Prisma.SupportTicketCreateOrConnectWithoutUserInput[] upsert?: Prisma.SupportTicketUpsertWithWhereUniqueWithoutUserInput | Prisma.SupportTicketUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.SupportTicketCreateManyUserInputEnvelope set?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[] disconnect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[] delete?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[] connect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[] update?: Prisma.SupportTicketUpdateWithWhereUniqueWithoutUserInput | Prisma.SupportTicketUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.SupportTicketUpdateManyWithWhereWithoutUserInput | Prisma.SupportTicketUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.SupportTicketScalarWhereInput | Prisma.SupportTicketScalarWhereInput[] } export type SupportTicketCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.SupportTicketCreateWithoutTenantInput[] | Prisma.SupportTicketUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.SupportTicketCreateOrConnectWithoutTenantInput | Prisma.SupportTicketCreateOrConnectWithoutTenantInput[] createMany?: Prisma.SupportTicketCreateManyTenantInputEnvelope connect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[] } export type SupportTicketUncheckedCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.SupportTicketCreateWithoutTenantInput[] | Prisma.SupportTicketUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.SupportTicketCreateOrConnectWithoutTenantInput | Prisma.SupportTicketCreateOrConnectWithoutTenantInput[] createMany?: Prisma.SupportTicketCreateManyTenantInputEnvelope connect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[] } export type SupportTicketUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.SupportTicketCreateWithoutTenantInput[] | Prisma.SupportTicketUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.SupportTicketCreateOrConnectWithoutTenantInput | Prisma.SupportTicketCreateOrConnectWithoutTenantInput[] upsert?: Prisma.SupportTicketUpsertWithWhereUniqueWithoutTenantInput | Prisma.SupportTicketUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.SupportTicketCreateManyTenantInputEnvelope set?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[] disconnect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[] delete?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[] connect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[] update?: Prisma.SupportTicketUpdateWithWhereUniqueWithoutTenantInput | Prisma.SupportTicketUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.SupportTicketUpdateManyWithWhereWithoutTenantInput | Prisma.SupportTicketUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.SupportTicketScalarWhereInput | Prisma.SupportTicketScalarWhereInput[] } export type SupportTicketUncheckedUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.SupportTicketCreateWithoutTenantInput[] | Prisma.SupportTicketUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.SupportTicketCreateOrConnectWithoutTenantInput | Prisma.SupportTicketCreateOrConnectWithoutTenantInput[] upsert?: Prisma.SupportTicketUpsertWithWhereUniqueWithoutTenantInput | Prisma.SupportTicketUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.SupportTicketCreateManyTenantInputEnvelope set?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[] disconnect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[] delete?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[] connect?: Prisma.SupportTicketWhereUniqueInput | Prisma.SupportTicketWhereUniqueInput[] update?: Prisma.SupportTicketUpdateWithWhereUniqueWithoutTenantInput | Prisma.SupportTicketUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.SupportTicketUpdateManyWithWhereWithoutTenantInput | Prisma.SupportTicketUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.SupportTicketScalarWhereInput | Prisma.SupportTicketScalarWhereInput[] } export type SupportTicketCreateWithoutUserInput = { id?: string createdAt?: Date | string updatedAt?: Date | string source: string status?: string priority?: string subject: string message: string fromEmail?: string | null fromUrl?: string | null inboundMessageId?: string | null tenant?: Prisma.TenantCreateNestedOneWithoutSupportTicketsInput } export type SupportTicketUncheckedCreateWithoutUserInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId?: string | null source: string status?: string priority?: string subject: string message: string fromEmail?: string | null fromUrl?: string | null inboundMessageId?: string | null } export type SupportTicketCreateOrConnectWithoutUserInput = { where: Prisma.SupportTicketWhereUniqueInput create: Prisma.XOR } export type SupportTicketCreateManyUserInputEnvelope = { data: Prisma.SupportTicketCreateManyUserInput | Prisma.SupportTicketCreateManyUserInput[] skipDuplicates?: boolean } export type SupportTicketUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.SupportTicketWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type SupportTicketUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.SupportTicketWhereUniqueInput data: Prisma.XOR } export type SupportTicketUpdateManyWithWhereWithoutUserInput = { where: Prisma.SupportTicketScalarWhereInput data: Prisma.XOR } export type SupportTicketScalarWhereInput = { AND?: Prisma.SupportTicketScalarWhereInput | Prisma.SupportTicketScalarWhereInput[] OR?: Prisma.SupportTicketScalarWhereInput[] NOT?: Prisma.SupportTicketScalarWhereInput | Prisma.SupportTicketScalarWhereInput[] id?: Prisma.StringFilter<"SupportTicket"> | string createdAt?: Prisma.DateTimeFilter<"SupportTicket"> | Date | string updatedAt?: Prisma.DateTimeFilter<"SupportTicket"> | Date | string tenantId?: Prisma.StringNullableFilter<"SupportTicket"> | string | null userId?: Prisma.StringNullableFilter<"SupportTicket"> | string | null source?: Prisma.StringFilter<"SupportTicket"> | string status?: Prisma.StringFilter<"SupportTicket"> | string priority?: Prisma.StringFilter<"SupportTicket"> | string subject?: Prisma.StringFilter<"SupportTicket"> | string message?: Prisma.StringFilter<"SupportTicket"> | string fromEmail?: Prisma.StringNullableFilter<"SupportTicket"> | string | null fromUrl?: Prisma.StringNullableFilter<"SupportTicket"> | string | null inboundMessageId?: Prisma.StringNullableFilter<"SupportTicket"> | string | null } export type SupportTicketCreateWithoutTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string source: string status?: string priority?: string subject: string message: string fromEmail?: string | null fromUrl?: string | null inboundMessageId?: string | null user?: Prisma.UserCreateNestedOneWithoutSupportTicketsInput } export type SupportTicketUncheckedCreateWithoutTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string userId?: string | null source: string status?: string priority?: string subject: string message: string fromEmail?: string | null fromUrl?: string | null inboundMessageId?: string | null } export type SupportTicketCreateOrConnectWithoutTenantInput = { where: Prisma.SupportTicketWhereUniqueInput create: Prisma.XOR } export type SupportTicketCreateManyTenantInputEnvelope = { data: Prisma.SupportTicketCreateManyTenantInput | Prisma.SupportTicketCreateManyTenantInput[] skipDuplicates?: boolean } export type SupportTicketUpsertWithWhereUniqueWithoutTenantInput = { where: Prisma.SupportTicketWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type SupportTicketUpdateWithWhereUniqueWithoutTenantInput = { where: Prisma.SupportTicketWhereUniqueInput data: Prisma.XOR } export type SupportTicketUpdateManyWithWhereWithoutTenantInput = { where: Prisma.SupportTicketScalarWhereInput data: Prisma.XOR } export type SupportTicketCreateManyUserInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId?: string | null source: string status?: string priority?: string subject: string message: string fromEmail?: string | null fromUrl?: string | null inboundMessageId?: string | null } export type SupportTicketUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string source?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string priority?: Prisma.StringFieldUpdateOperationsInput | string subject?: Prisma.StringFieldUpdateOperationsInput | string message?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null fromUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null inboundMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenant?: Prisma.TenantUpdateOneWithoutSupportTicketsNestedInput } export type SupportTicketUncheckedUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null source?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string priority?: Prisma.StringFieldUpdateOperationsInput | string subject?: Prisma.StringFieldUpdateOperationsInput | string message?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null fromUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null inboundMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type SupportTicketUncheckedUpdateManyWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null source?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string priority?: Prisma.StringFieldUpdateOperationsInput | string subject?: Prisma.StringFieldUpdateOperationsInput | string message?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null fromUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null inboundMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type SupportTicketCreateManyTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string userId?: string | null source: string status?: string priority?: string subject: string message: string fromEmail?: string | null fromUrl?: string | null inboundMessageId?: string | null } export type SupportTicketUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string source?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string priority?: Prisma.StringFieldUpdateOperationsInput | string subject?: Prisma.StringFieldUpdateOperationsInput | string message?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null fromUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null inboundMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null user?: Prisma.UserUpdateOneWithoutSupportTicketsNestedInput } export type SupportTicketUncheckedUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null source?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string priority?: Prisma.StringFieldUpdateOperationsInput | string subject?: Prisma.StringFieldUpdateOperationsInput | string message?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null fromUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null inboundMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type SupportTicketUncheckedUpdateManyWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null source?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string priority?: Prisma.StringFieldUpdateOperationsInput | string subject?: Prisma.StringFieldUpdateOperationsInput | string message?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null fromUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null inboundMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type SupportTicketSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean userId?: boolean source?: boolean status?: boolean priority?: boolean subject?: boolean message?: boolean fromEmail?: boolean fromUrl?: boolean inboundMessageId?: boolean tenant?: boolean | Prisma.SupportTicket$tenantArgs user?: boolean | Prisma.SupportTicket$userArgs }, ExtArgs["result"]["supportTicket"]> export type SupportTicketSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean userId?: boolean source?: boolean status?: boolean priority?: boolean subject?: boolean message?: boolean fromEmail?: boolean fromUrl?: boolean inboundMessageId?: boolean tenant?: boolean | Prisma.SupportTicket$tenantArgs user?: boolean | Prisma.SupportTicket$userArgs }, ExtArgs["result"]["supportTicket"]> export type SupportTicketSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean userId?: boolean source?: boolean status?: boolean priority?: boolean subject?: boolean message?: boolean fromEmail?: boolean fromUrl?: boolean inboundMessageId?: boolean tenant?: boolean | Prisma.SupportTicket$tenantArgs user?: boolean | Prisma.SupportTicket$userArgs }, ExtArgs["result"]["supportTicket"]> export type SupportTicketSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean userId?: boolean source?: boolean status?: boolean priority?: boolean subject?: boolean message?: boolean fromEmail?: boolean fromUrl?: boolean inboundMessageId?: boolean } export type SupportTicketOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "userId" | "source" | "status" | "priority" | "subject" | "message" | "fromEmail" | "fromUrl" | "inboundMessageId", ExtArgs["result"]["supportTicket"]> export type SupportTicketInclude = { tenant?: boolean | Prisma.SupportTicket$tenantArgs user?: boolean | Prisma.SupportTicket$userArgs } export type SupportTicketIncludeCreateManyAndReturn = { tenant?: boolean | Prisma.SupportTicket$tenantArgs user?: boolean | Prisma.SupportTicket$userArgs } export type SupportTicketIncludeUpdateManyAndReturn = { tenant?: boolean | Prisma.SupportTicket$tenantArgs user?: boolean | Prisma.SupportTicket$userArgs } export type $SupportTicketPayload = { name: "SupportTicket" objects: { tenant: Prisma.$TenantPayload | null user: Prisma.$UserPayload | null } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date tenantId: string | null userId: string | null source: string status: string priority: string subject: string message: string fromEmail: string | null fromUrl: string | null inboundMessageId: string | null }, ExtArgs["result"]["supportTicket"]> composites: {} } export type SupportTicketGetPayload = runtime.Types.Result.GetResult export type SupportTicketCountArgs = Omit & { select?: SupportTicketCountAggregateInputType | true } export interface SupportTicketDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['SupportTicket'], meta: { name: 'SupportTicket' } } /** * Find zero or one SupportTicket that matches the filter. * @param {SupportTicketFindUniqueArgs} args - Arguments to find a SupportTicket * @example * // Get one SupportTicket * const supportTicket = await prisma.supportTicket.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SupportTicketClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one SupportTicket that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SupportTicketFindUniqueOrThrowArgs} args - Arguments to find a SupportTicket * @example * // Get one SupportTicket * const supportTicket = await prisma.supportTicket.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SupportTicketClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first SupportTicket 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 {SupportTicketFindFirstArgs} args - Arguments to find a SupportTicket * @example * // Get one SupportTicket * const supportTicket = await prisma.supportTicket.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SupportTicketClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first SupportTicket 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 {SupportTicketFindFirstOrThrowArgs} args - Arguments to find a SupportTicket * @example * // Get one SupportTicket * const supportTicket = await prisma.supportTicket.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SupportTicketClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more SupportTickets 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 {SupportTicketFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all SupportTickets * const supportTickets = await prisma.supportTicket.findMany() * * // Get first 10 SupportTickets * const supportTickets = await prisma.supportTicket.findMany({ take: 10 }) * * // Only select the `id` * const supportTicketWithIdOnly = await prisma.supportTicket.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a SupportTicket. * @param {SupportTicketCreateArgs} args - Arguments to create a SupportTicket. * @example * // Create one SupportTicket * const SupportTicket = await prisma.supportTicket.create({ * data: { * // ... data to create a SupportTicket * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__SupportTicketClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many SupportTickets. * @param {SupportTicketCreateManyArgs} args - Arguments to create many SupportTickets. * @example * // Create many SupportTickets * const supportTicket = await prisma.supportTicket.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many SupportTickets and returns the data saved in the database. * @param {SupportTicketCreateManyAndReturnArgs} args - Arguments to create many SupportTickets. * @example * // Create many SupportTickets * const supportTicket = await prisma.supportTicket.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many SupportTickets and only return the `id` * const supportTicketWithIdOnly = await prisma.supportTicket.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 SupportTicket. * @param {SupportTicketDeleteArgs} args - Arguments to delete one SupportTicket. * @example * // Delete one SupportTicket * const SupportTicket = await prisma.supportTicket.delete({ * where: { * // ... filter to delete one SupportTicket * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__SupportTicketClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one SupportTicket. * @param {SupportTicketUpdateArgs} args - Arguments to update one SupportTicket. * @example * // Update one SupportTicket * const supportTicket = await prisma.supportTicket.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__SupportTicketClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more SupportTickets. * @param {SupportTicketDeleteManyArgs} args - Arguments to filter SupportTickets to delete. * @example * // Delete a few SupportTickets * const { count } = await prisma.supportTicket.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SupportTickets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SupportTicketUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many SupportTickets * const supportTicket = await prisma.supportTicket.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SupportTickets and returns the data updated in the database. * @param {SupportTicketUpdateManyAndReturnArgs} args - Arguments to update many SupportTickets. * @example * // Update many SupportTickets * const supportTicket = await prisma.supportTicket.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more SupportTickets and only return the `id` * const supportTicketWithIdOnly = await prisma.supportTicket.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 SupportTicket. * @param {SupportTicketUpsertArgs} args - Arguments to update or create a SupportTicket. * @example * // Update or create a SupportTicket * const supportTicket = await prisma.supportTicket.upsert({ * create: { * // ... data to create a SupportTicket * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the SupportTicket we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SupportTicketClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of SupportTickets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SupportTicketCountArgs} args - Arguments to filter SupportTickets to count. * @example * // Count the number of SupportTickets * const count = await prisma.supportTicket.count({ * where: { * // ... the filter for the SupportTickets 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 SupportTicket. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SupportTicketAggregateArgs} 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 SupportTicket. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SupportTicketGroupByArgs} 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 SupportTicketGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: SupportTicketGroupByArgs['orderBy'] } : { orderBy?: SupportTicketGroupByArgs['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 ? GetSupportTicketGroupByPayload : Prisma.PrismaPromise /** * Fields of the SupportTicket model */ readonly fields: SupportTicketFieldRefs; } /** * The delegate class that acts as a "Promise-like" for SupportTicket. * 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__SupportTicketClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" tenant = {}>(args?: Prisma.Subset>): Prisma.Prisma__TenantClient, 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 SupportTicket model */ export interface SupportTicketFieldRefs { readonly id: Prisma.FieldRef<"SupportTicket", 'String'> readonly createdAt: Prisma.FieldRef<"SupportTicket", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"SupportTicket", 'DateTime'> readonly tenantId: Prisma.FieldRef<"SupportTicket", 'String'> readonly userId: Prisma.FieldRef<"SupportTicket", 'String'> readonly source: Prisma.FieldRef<"SupportTicket", 'String'> readonly status: Prisma.FieldRef<"SupportTicket", 'String'> readonly priority: Prisma.FieldRef<"SupportTicket", 'String'> readonly subject: Prisma.FieldRef<"SupportTicket", 'String'> readonly message: Prisma.FieldRef<"SupportTicket", 'String'> readonly fromEmail: Prisma.FieldRef<"SupportTicket", 'String'> readonly fromUrl: Prisma.FieldRef<"SupportTicket", 'String'> readonly inboundMessageId: Prisma.FieldRef<"SupportTicket", 'String'> } // Custom InputTypes /** * SupportTicket findUnique */ export type SupportTicketFindUniqueArgs = { /** * Select specific fields to fetch from the SupportTicket */ select?: Prisma.SupportTicketSelect | null /** * Omit specific fields from the SupportTicket */ omit?: Prisma.SupportTicketOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupportTicketInclude | null /** * Filter, which SupportTicket to fetch. */ where: Prisma.SupportTicketWhereUniqueInput } /** * SupportTicket findUniqueOrThrow */ export type SupportTicketFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the SupportTicket */ select?: Prisma.SupportTicketSelect | null /** * Omit specific fields from the SupportTicket */ omit?: Prisma.SupportTicketOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupportTicketInclude | null /** * Filter, which SupportTicket to fetch. */ where: Prisma.SupportTicketWhereUniqueInput } /** * SupportTicket findFirst */ export type SupportTicketFindFirstArgs = { /** * Select specific fields to fetch from the SupportTicket */ select?: Prisma.SupportTicketSelect | null /** * Omit specific fields from the SupportTicket */ omit?: Prisma.SupportTicketOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupportTicketInclude | null /** * Filter, which SupportTicket to fetch. */ where?: Prisma.SupportTicketWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SupportTickets to fetch. */ orderBy?: Prisma.SupportTicketOrderByWithRelationInput | Prisma.SupportTicketOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SupportTickets. */ cursor?: Prisma.SupportTicketWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SupportTickets 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` SupportTickets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SupportTickets. */ distinct?: Prisma.SupportTicketScalarFieldEnum | Prisma.SupportTicketScalarFieldEnum[] } /** * SupportTicket findFirstOrThrow */ export type SupportTicketFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the SupportTicket */ select?: Prisma.SupportTicketSelect | null /** * Omit specific fields from the SupportTicket */ omit?: Prisma.SupportTicketOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupportTicketInclude | null /** * Filter, which SupportTicket to fetch. */ where?: Prisma.SupportTicketWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SupportTickets to fetch. */ orderBy?: Prisma.SupportTicketOrderByWithRelationInput | Prisma.SupportTicketOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SupportTickets. */ cursor?: Prisma.SupportTicketWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SupportTickets 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` SupportTickets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SupportTickets. */ distinct?: Prisma.SupportTicketScalarFieldEnum | Prisma.SupportTicketScalarFieldEnum[] } /** * SupportTicket findMany */ export type SupportTicketFindManyArgs = { /** * Select specific fields to fetch from the SupportTicket */ select?: Prisma.SupportTicketSelect | null /** * Omit specific fields from the SupportTicket */ omit?: Prisma.SupportTicketOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupportTicketInclude | null /** * Filter, which SupportTickets to fetch. */ where?: Prisma.SupportTicketWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SupportTickets to fetch. */ orderBy?: Prisma.SupportTicketOrderByWithRelationInput | Prisma.SupportTicketOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing SupportTickets. */ cursor?: Prisma.SupportTicketWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SupportTickets 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` SupportTickets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SupportTickets. */ distinct?: Prisma.SupportTicketScalarFieldEnum | Prisma.SupportTicketScalarFieldEnum[] } /** * SupportTicket create */ export type SupportTicketCreateArgs = { /** * Select specific fields to fetch from the SupportTicket */ select?: Prisma.SupportTicketSelect | null /** * Omit specific fields from the SupportTicket */ omit?: Prisma.SupportTicketOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupportTicketInclude | null /** * The data needed to create a SupportTicket. */ data: Prisma.XOR } /** * SupportTicket createMany */ export type SupportTicketCreateManyArgs = { /** * The data used to create many SupportTickets. */ data: Prisma.SupportTicketCreateManyInput | Prisma.SupportTicketCreateManyInput[] skipDuplicates?: boolean } /** * SupportTicket createManyAndReturn */ export type SupportTicketCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the SupportTicket */ select?: Prisma.SupportTicketSelectCreateManyAndReturn | null /** * Omit specific fields from the SupportTicket */ omit?: Prisma.SupportTicketOmit | null /** * The data used to create many SupportTickets. */ data: Prisma.SupportTicketCreateManyInput | Prisma.SupportTicketCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupportTicketIncludeCreateManyAndReturn | null } /** * SupportTicket update */ export type SupportTicketUpdateArgs = { /** * Select specific fields to fetch from the SupportTicket */ select?: Prisma.SupportTicketSelect | null /** * Omit specific fields from the SupportTicket */ omit?: Prisma.SupportTicketOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupportTicketInclude | null /** * The data needed to update a SupportTicket. */ data: Prisma.XOR /** * Choose, which SupportTicket to update. */ where: Prisma.SupportTicketWhereUniqueInput } /** * SupportTicket updateMany */ export type SupportTicketUpdateManyArgs = { /** * The data used to update SupportTickets. */ data: Prisma.XOR /** * Filter which SupportTickets to update */ where?: Prisma.SupportTicketWhereInput /** * Limit how many SupportTickets to update. */ limit?: number } /** * SupportTicket updateManyAndReturn */ export type SupportTicketUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the SupportTicket */ select?: Prisma.SupportTicketSelectUpdateManyAndReturn | null /** * Omit specific fields from the SupportTicket */ omit?: Prisma.SupportTicketOmit | null /** * The data used to update SupportTickets. */ data: Prisma.XOR /** * Filter which SupportTickets to update */ where?: Prisma.SupportTicketWhereInput /** * Limit how many SupportTickets to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupportTicketIncludeUpdateManyAndReturn | null } /** * SupportTicket upsert */ export type SupportTicketUpsertArgs = { /** * Select specific fields to fetch from the SupportTicket */ select?: Prisma.SupportTicketSelect | null /** * Omit specific fields from the SupportTicket */ omit?: Prisma.SupportTicketOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupportTicketInclude | null /** * The filter to search for the SupportTicket to update in case it exists. */ where: Prisma.SupportTicketWhereUniqueInput /** * In case the SupportTicket found by the `where` argument doesn't exist, create a new SupportTicket with this data. */ create: Prisma.XOR /** * In case the SupportTicket was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * SupportTicket delete */ export type SupportTicketDeleteArgs = { /** * Select specific fields to fetch from the SupportTicket */ select?: Prisma.SupportTicketSelect | null /** * Omit specific fields from the SupportTicket */ omit?: Prisma.SupportTicketOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupportTicketInclude | null /** * Filter which SupportTicket to delete. */ where: Prisma.SupportTicketWhereUniqueInput } /** * SupportTicket deleteMany */ export type SupportTicketDeleteManyArgs = { /** * Filter which SupportTickets to delete */ where?: Prisma.SupportTicketWhereInput /** * Limit how many SupportTickets to delete. */ limit?: number } /** * SupportTicket.tenant */ export type SupportTicket$tenantArgs = { /** * Select specific fields to fetch from the Tenant */ select?: Prisma.TenantSelect | null /** * Omit specific fields from the Tenant */ omit?: Prisma.TenantOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantInclude | null where?: Prisma.TenantWhereInput } /** * SupportTicket.user */ export type SupportTicket$userArgs = { /** * 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 } /** * SupportTicket without action */ export type SupportTicketDefaultArgs = { /** * Select specific fields to fetch from the SupportTicket */ select?: Prisma.SupportTicketSelect | null /** * Omit specific fields from the SupportTicket */ omit?: Prisma.SupportTicketOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SupportTicketInclude | null }