Files

1472 lines
61 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `AdminDealContact` 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 AdminDealContact
*
*/
export type AdminDealContactModel = runtime.Types.Result.DefaultSelection<Prisma.$AdminDealContactPayload>
export type AggregateAdminDealContact = {
_count: AdminDealContactCountAggregateOutputType | null
_min: AdminDealContactMinAggregateOutputType | null
_max: AdminDealContactMaxAggregateOutputType | null
}
export type AdminDealContactMinAggregateOutputType = {
dealId: string | null
contactId: string | null
createdAt: Date | null
role: string | null
isPrimary: boolean | null
}
export type AdminDealContactMaxAggregateOutputType = {
dealId: string | null
contactId: string | null
createdAt: Date | null
role: string | null
isPrimary: boolean | null
}
export type AdminDealContactCountAggregateOutputType = {
dealId: number
contactId: number
createdAt: number
role: number
isPrimary: number
_all: number
}
export type AdminDealContactMinAggregateInputType = {
dealId?: true
contactId?: true
createdAt?: true
role?: true
isPrimary?: true
}
export type AdminDealContactMaxAggregateInputType = {
dealId?: true
contactId?: true
createdAt?: true
role?: true
isPrimary?: true
}
export type AdminDealContactCountAggregateInputType = {
dealId?: true
contactId?: true
createdAt?: true
role?: true
isPrimary?: true
_all?: true
}
export type AdminDealContactAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AdminDealContact to aggregate.
*/
where?: Prisma.AdminDealContactWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AdminDealContacts to fetch.
*/
orderBy?: Prisma.AdminDealContactOrderByWithRelationInput | Prisma.AdminDealContactOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.AdminDealContactWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AdminDealContacts 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` AdminDealContacts.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned AdminDealContacts
**/
_count?: true | AdminDealContactCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: AdminDealContactMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: AdminDealContactMaxAggregateInputType
}
export type GetAdminDealContactAggregateType<T extends AdminDealContactAggregateArgs> = {
[P in keyof T & keyof AggregateAdminDealContact]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateAdminDealContact[P]>
: Prisma.GetScalarType<T[P], AggregateAdminDealContact[P]>
}
export type AdminDealContactGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AdminDealContactWhereInput
orderBy?: Prisma.AdminDealContactOrderByWithAggregationInput | Prisma.AdminDealContactOrderByWithAggregationInput[]
by: Prisma.AdminDealContactScalarFieldEnum[] | Prisma.AdminDealContactScalarFieldEnum
having?: Prisma.AdminDealContactScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: AdminDealContactCountAggregateInputType | true
_min?: AdminDealContactMinAggregateInputType
_max?: AdminDealContactMaxAggregateInputType
}
export type AdminDealContactGroupByOutputType = {
dealId: string
contactId: string
createdAt: Date
role: string | null
isPrimary: boolean
_count: AdminDealContactCountAggregateOutputType | null
_min: AdminDealContactMinAggregateOutputType | null
_max: AdminDealContactMaxAggregateOutputType | null
}
export type GetAdminDealContactGroupByPayload<T extends AdminDealContactGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<AdminDealContactGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof AdminDealContactGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], AdminDealContactGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], AdminDealContactGroupByOutputType[P]>
}
>
>
export type AdminDealContactWhereInput = {
AND?: Prisma.AdminDealContactWhereInput | Prisma.AdminDealContactWhereInput[]
OR?: Prisma.AdminDealContactWhereInput[]
NOT?: Prisma.AdminDealContactWhereInput | Prisma.AdminDealContactWhereInput[]
dealId?: Prisma.StringFilter<"AdminDealContact"> | string
contactId?: Prisma.StringFilter<"AdminDealContact"> | string
createdAt?: Prisma.DateTimeFilter<"AdminDealContact"> | Date | string
role?: Prisma.StringNullableFilter<"AdminDealContact"> | string | null
isPrimary?: Prisma.BoolFilter<"AdminDealContact"> | boolean
deal?: Prisma.XOR<Prisma.AdminDealScalarRelationFilter, Prisma.AdminDealWhereInput>
contact?: Prisma.XOR<Prisma.AdminContactScalarRelationFilter, Prisma.AdminContactWhereInput>
}
export type AdminDealContactOrderByWithRelationInput = {
dealId?: Prisma.SortOrder
contactId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
role?: Prisma.SortOrderInput | Prisma.SortOrder
isPrimary?: Prisma.SortOrder
deal?: Prisma.AdminDealOrderByWithRelationInput
contact?: Prisma.AdminContactOrderByWithRelationInput
}
export type AdminDealContactWhereUniqueInput = Prisma.AtLeast<{
dealId_contactId?: Prisma.AdminDealContactDealIdContactIdCompoundUniqueInput
AND?: Prisma.AdminDealContactWhereInput | Prisma.AdminDealContactWhereInput[]
OR?: Prisma.AdminDealContactWhereInput[]
NOT?: Prisma.AdminDealContactWhereInput | Prisma.AdminDealContactWhereInput[]
dealId?: Prisma.StringFilter<"AdminDealContact"> | string
contactId?: Prisma.StringFilter<"AdminDealContact"> | string
createdAt?: Prisma.DateTimeFilter<"AdminDealContact"> | Date | string
role?: Prisma.StringNullableFilter<"AdminDealContact"> | string | null
isPrimary?: Prisma.BoolFilter<"AdminDealContact"> | boolean
deal?: Prisma.XOR<Prisma.AdminDealScalarRelationFilter, Prisma.AdminDealWhereInput>
contact?: Prisma.XOR<Prisma.AdminContactScalarRelationFilter, Prisma.AdminContactWhereInput>
}, "dealId_contactId">
export type AdminDealContactOrderByWithAggregationInput = {
dealId?: Prisma.SortOrder
contactId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
role?: Prisma.SortOrderInput | Prisma.SortOrder
isPrimary?: Prisma.SortOrder
_count?: Prisma.AdminDealContactCountOrderByAggregateInput
_max?: Prisma.AdminDealContactMaxOrderByAggregateInput
_min?: Prisma.AdminDealContactMinOrderByAggregateInput
}
export type AdminDealContactScalarWhereWithAggregatesInput = {
AND?: Prisma.AdminDealContactScalarWhereWithAggregatesInput | Prisma.AdminDealContactScalarWhereWithAggregatesInput[]
OR?: Prisma.AdminDealContactScalarWhereWithAggregatesInput[]
NOT?: Prisma.AdminDealContactScalarWhereWithAggregatesInput | Prisma.AdminDealContactScalarWhereWithAggregatesInput[]
dealId?: Prisma.StringWithAggregatesFilter<"AdminDealContact"> | string
contactId?: Prisma.StringWithAggregatesFilter<"AdminDealContact"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AdminDealContact"> | Date | string
role?: Prisma.StringNullableWithAggregatesFilter<"AdminDealContact"> | string | null
isPrimary?: Prisma.BoolWithAggregatesFilter<"AdminDealContact"> | boolean
}
export type AdminDealContactCreateInput = {
createdAt?: Date | string
role?: string | null
isPrimary?: boolean
deal: Prisma.AdminDealCreateNestedOneWithoutContactsInput
contact: Prisma.AdminContactCreateNestedOneWithoutDealsInput
}
export type AdminDealContactUncheckedCreateInput = {
dealId: string
contactId: string
createdAt?: Date | string
role?: string | null
isPrimary?: boolean
}
export type AdminDealContactUpdateInput = {
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isPrimary?: Prisma.BoolFieldUpdateOperationsInput | boolean
deal?: Prisma.AdminDealUpdateOneRequiredWithoutContactsNestedInput
contact?: Prisma.AdminContactUpdateOneRequiredWithoutDealsNestedInput
}
export type AdminDealContactUncheckedUpdateInput = {
dealId?: Prisma.StringFieldUpdateOperationsInput | string
contactId?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isPrimary?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type AdminDealContactCreateManyInput = {
dealId: string
contactId: string
createdAt?: Date | string
role?: string | null
isPrimary?: boolean
}
export type AdminDealContactUpdateManyMutationInput = {
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isPrimary?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type AdminDealContactUncheckedUpdateManyInput = {
dealId?: Prisma.StringFieldUpdateOperationsInput | string
contactId?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isPrimary?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type AdminDealContactListRelationFilter = {
every?: Prisma.AdminDealContactWhereInput
some?: Prisma.AdminDealContactWhereInput
none?: Prisma.AdminDealContactWhereInput
}
export type AdminDealContactOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type AdminDealContactDealIdContactIdCompoundUniqueInput = {
dealId: string
contactId: string
}
export type AdminDealContactCountOrderByAggregateInput = {
dealId?: Prisma.SortOrder
contactId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
role?: Prisma.SortOrder
isPrimary?: Prisma.SortOrder
}
export type AdminDealContactMaxOrderByAggregateInput = {
dealId?: Prisma.SortOrder
contactId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
role?: Prisma.SortOrder
isPrimary?: Prisma.SortOrder
}
export type AdminDealContactMinOrderByAggregateInput = {
dealId?: Prisma.SortOrder
contactId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
role?: Prisma.SortOrder
isPrimary?: Prisma.SortOrder
}
export type AdminDealContactCreateNestedManyWithoutContactInput = {
create?: Prisma.XOR<Prisma.AdminDealContactCreateWithoutContactInput, Prisma.AdminDealContactUncheckedCreateWithoutContactInput> | Prisma.AdminDealContactCreateWithoutContactInput[] | Prisma.AdminDealContactUncheckedCreateWithoutContactInput[]
connectOrCreate?: Prisma.AdminDealContactCreateOrConnectWithoutContactInput | Prisma.AdminDealContactCreateOrConnectWithoutContactInput[]
createMany?: Prisma.AdminDealContactCreateManyContactInputEnvelope
connect?: Prisma.AdminDealContactWhereUniqueInput | Prisma.AdminDealContactWhereUniqueInput[]
}
export type AdminDealContactUncheckedCreateNestedManyWithoutContactInput = {
create?: Prisma.XOR<Prisma.AdminDealContactCreateWithoutContactInput, Prisma.AdminDealContactUncheckedCreateWithoutContactInput> | Prisma.AdminDealContactCreateWithoutContactInput[] | Prisma.AdminDealContactUncheckedCreateWithoutContactInput[]
connectOrCreate?: Prisma.AdminDealContactCreateOrConnectWithoutContactInput | Prisma.AdminDealContactCreateOrConnectWithoutContactInput[]
createMany?: Prisma.AdminDealContactCreateManyContactInputEnvelope
connect?: Prisma.AdminDealContactWhereUniqueInput | Prisma.AdminDealContactWhereUniqueInput[]
}
export type AdminDealContactUpdateManyWithoutContactNestedInput = {
create?: Prisma.XOR<Prisma.AdminDealContactCreateWithoutContactInput, Prisma.AdminDealContactUncheckedCreateWithoutContactInput> | Prisma.AdminDealContactCreateWithoutContactInput[] | Prisma.AdminDealContactUncheckedCreateWithoutContactInput[]
connectOrCreate?: Prisma.AdminDealContactCreateOrConnectWithoutContactInput | Prisma.AdminDealContactCreateOrConnectWithoutContactInput[]
upsert?: Prisma.AdminDealContactUpsertWithWhereUniqueWithoutContactInput | Prisma.AdminDealContactUpsertWithWhereUniqueWithoutContactInput[]
createMany?: Prisma.AdminDealContactCreateManyContactInputEnvelope
set?: Prisma.AdminDealContactWhereUniqueInput | Prisma.AdminDealContactWhereUniqueInput[]
disconnect?: Prisma.AdminDealContactWhereUniqueInput | Prisma.AdminDealContactWhereUniqueInput[]
delete?: Prisma.AdminDealContactWhereUniqueInput | Prisma.AdminDealContactWhereUniqueInput[]
connect?: Prisma.AdminDealContactWhereUniqueInput | Prisma.AdminDealContactWhereUniqueInput[]
update?: Prisma.AdminDealContactUpdateWithWhereUniqueWithoutContactInput | Prisma.AdminDealContactUpdateWithWhereUniqueWithoutContactInput[]
updateMany?: Prisma.AdminDealContactUpdateManyWithWhereWithoutContactInput | Prisma.AdminDealContactUpdateManyWithWhereWithoutContactInput[]
deleteMany?: Prisma.AdminDealContactScalarWhereInput | Prisma.AdminDealContactScalarWhereInput[]
}
export type AdminDealContactUncheckedUpdateManyWithoutContactNestedInput = {
create?: Prisma.XOR<Prisma.AdminDealContactCreateWithoutContactInput, Prisma.AdminDealContactUncheckedCreateWithoutContactInput> | Prisma.AdminDealContactCreateWithoutContactInput[] | Prisma.AdminDealContactUncheckedCreateWithoutContactInput[]
connectOrCreate?: Prisma.AdminDealContactCreateOrConnectWithoutContactInput | Prisma.AdminDealContactCreateOrConnectWithoutContactInput[]
upsert?: Prisma.AdminDealContactUpsertWithWhereUniqueWithoutContactInput | Prisma.AdminDealContactUpsertWithWhereUniqueWithoutContactInput[]
createMany?: Prisma.AdminDealContactCreateManyContactInputEnvelope
set?: Prisma.AdminDealContactWhereUniqueInput | Prisma.AdminDealContactWhereUniqueInput[]
disconnect?: Prisma.AdminDealContactWhereUniqueInput | Prisma.AdminDealContactWhereUniqueInput[]
delete?: Prisma.AdminDealContactWhereUniqueInput | Prisma.AdminDealContactWhereUniqueInput[]
connect?: Prisma.AdminDealContactWhereUniqueInput | Prisma.AdminDealContactWhereUniqueInput[]
update?: Prisma.AdminDealContactUpdateWithWhereUniqueWithoutContactInput | Prisma.AdminDealContactUpdateWithWhereUniqueWithoutContactInput[]
updateMany?: Prisma.AdminDealContactUpdateManyWithWhereWithoutContactInput | Prisma.AdminDealContactUpdateManyWithWhereWithoutContactInput[]
deleteMany?: Prisma.AdminDealContactScalarWhereInput | Prisma.AdminDealContactScalarWhereInput[]
}
export type AdminDealContactCreateNestedManyWithoutDealInput = {
create?: Prisma.XOR<Prisma.AdminDealContactCreateWithoutDealInput, Prisma.AdminDealContactUncheckedCreateWithoutDealInput> | Prisma.AdminDealContactCreateWithoutDealInput[] | Prisma.AdminDealContactUncheckedCreateWithoutDealInput[]
connectOrCreate?: Prisma.AdminDealContactCreateOrConnectWithoutDealInput | Prisma.AdminDealContactCreateOrConnectWithoutDealInput[]
createMany?: Prisma.AdminDealContactCreateManyDealInputEnvelope
connect?: Prisma.AdminDealContactWhereUniqueInput | Prisma.AdminDealContactWhereUniqueInput[]
}
export type AdminDealContactUncheckedCreateNestedManyWithoutDealInput = {
create?: Prisma.XOR<Prisma.AdminDealContactCreateWithoutDealInput, Prisma.AdminDealContactUncheckedCreateWithoutDealInput> | Prisma.AdminDealContactCreateWithoutDealInput[] | Prisma.AdminDealContactUncheckedCreateWithoutDealInput[]
connectOrCreate?: Prisma.AdminDealContactCreateOrConnectWithoutDealInput | Prisma.AdminDealContactCreateOrConnectWithoutDealInput[]
createMany?: Prisma.AdminDealContactCreateManyDealInputEnvelope
connect?: Prisma.AdminDealContactWhereUniqueInput | Prisma.AdminDealContactWhereUniqueInput[]
}
export type AdminDealContactUpdateManyWithoutDealNestedInput = {
create?: Prisma.XOR<Prisma.AdminDealContactCreateWithoutDealInput, Prisma.AdminDealContactUncheckedCreateWithoutDealInput> | Prisma.AdminDealContactCreateWithoutDealInput[] | Prisma.AdminDealContactUncheckedCreateWithoutDealInput[]
connectOrCreate?: Prisma.AdminDealContactCreateOrConnectWithoutDealInput | Prisma.AdminDealContactCreateOrConnectWithoutDealInput[]
upsert?: Prisma.AdminDealContactUpsertWithWhereUniqueWithoutDealInput | Prisma.AdminDealContactUpsertWithWhereUniqueWithoutDealInput[]
createMany?: Prisma.AdminDealContactCreateManyDealInputEnvelope
set?: Prisma.AdminDealContactWhereUniqueInput | Prisma.AdminDealContactWhereUniqueInput[]
disconnect?: Prisma.AdminDealContactWhereUniqueInput | Prisma.AdminDealContactWhereUniqueInput[]
delete?: Prisma.AdminDealContactWhereUniqueInput | Prisma.AdminDealContactWhereUniqueInput[]
connect?: Prisma.AdminDealContactWhereUniqueInput | Prisma.AdminDealContactWhereUniqueInput[]
update?: Prisma.AdminDealContactUpdateWithWhereUniqueWithoutDealInput | Prisma.AdminDealContactUpdateWithWhereUniqueWithoutDealInput[]
updateMany?: Prisma.AdminDealContactUpdateManyWithWhereWithoutDealInput | Prisma.AdminDealContactUpdateManyWithWhereWithoutDealInput[]
deleteMany?: Prisma.AdminDealContactScalarWhereInput | Prisma.AdminDealContactScalarWhereInput[]
}
export type AdminDealContactUncheckedUpdateManyWithoutDealNestedInput = {
create?: Prisma.XOR<Prisma.AdminDealContactCreateWithoutDealInput, Prisma.AdminDealContactUncheckedCreateWithoutDealInput> | Prisma.AdminDealContactCreateWithoutDealInput[] | Prisma.AdminDealContactUncheckedCreateWithoutDealInput[]
connectOrCreate?: Prisma.AdminDealContactCreateOrConnectWithoutDealInput | Prisma.AdminDealContactCreateOrConnectWithoutDealInput[]
upsert?: Prisma.AdminDealContactUpsertWithWhereUniqueWithoutDealInput | Prisma.AdminDealContactUpsertWithWhereUniqueWithoutDealInput[]
createMany?: Prisma.AdminDealContactCreateManyDealInputEnvelope
set?: Prisma.AdminDealContactWhereUniqueInput | Prisma.AdminDealContactWhereUniqueInput[]
disconnect?: Prisma.AdminDealContactWhereUniqueInput | Prisma.AdminDealContactWhereUniqueInput[]
delete?: Prisma.AdminDealContactWhereUniqueInput | Prisma.AdminDealContactWhereUniqueInput[]
connect?: Prisma.AdminDealContactWhereUniqueInput | Prisma.AdminDealContactWhereUniqueInput[]
update?: Prisma.AdminDealContactUpdateWithWhereUniqueWithoutDealInput | Prisma.AdminDealContactUpdateWithWhereUniqueWithoutDealInput[]
updateMany?: Prisma.AdminDealContactUpdateManyWithWhereWithoutDealInput | Prisma.AdminDealContactUpdateManyWithWhereWithoutDealInput[]
deleteMany?: Prisma.AdminDealContactScalarWhereInput | Prisma.AdminDealContactScalarWhereInput[]
}
export type AdminDealContactCreateWithoutContactInput = {
createdAt?: Date | string
role?: string | null
isPrimary?: boolean
deal: Prisma.AdminDealCreateNestedOneWithoutContactsInput
}
export type AdminDealContactUncheckedCreateWithoutContactInput = {
dealId: string
createdAt?: Date | string
role?: string | null
isPrimary?: boolean
}
export type AdminDealContactCreateOrConnectWithoutContactInput = {
where: Prisma.AdminDealContactWhereUniqueInput
create: Prisma.XOR<Prisma.AdminDealContactCreateWithoutContactInput, Prisma.AdminDealContactUncheckedCreateWithoutContactInput>
}
export type AdminDealContactCreateManyContactInputEnvelope = {
data: Prisma.AdminDealContactCreateManyContactInput | Prisma.AdminDealContactCreateManyContactInput[]
skipDuplicates?: boolean
}
export type AdminDealContactUpsertWithWhereUniqueWithoutContactInput = {
where: Prisma.AdminDealContactWhereUniqueInput
update: Prisma.XOR<Prisma.AdminDealContactUpdateWithoutContactInput, Prisma.AdminDealContactUncheckedUpdateWithoutContactInput>
create: Prisma.XOR<Prisma.AdminDealContactCreateWithoutContactInput, Prisma.AdminDealContactUncheckedCreateWithoutContactInput>
}
export type AdminDealContactUpdateWithWhereUniqueWithoutContactInput = {
where: Prisma.AdminDealContactWhereUniqueInput
data: Prisma.XOR<Prisma.AdminDealContactUpdateWithoutContactInput, Prisma.AdminDealContactUncheckedUpdateWithoutContactInput>
}
export type AdminDealContactUpdateManyWithWhereWithoutContactInput = {
where: Prisma.AdminDealContactScalarWhereInput
data: Prisma.XOR<Prisma.AdminDealContactUpdateManyMutationInput, Prisma.AdminDealContactUncheckedUpdateManyWithoutContactInput>
}
export type AdminDealContactScalarWhereInput = {
AND?: Prisma.AdminDealContactScalarWhereInput | Prisma.AdminDealContactScalarWhereInput[]
OR?: Prisma.AdminDealContactScalarWhereInput[]
NOT?: Prisma.AdminDealContactScalarWhereInput | Prisma.AdminDealContactScalarWhereInput[]
dealId?: Prisma.StringFilter<"AdminDealContact"> | string
contactId?: Prisma.StringFilter<"AdminDealContact"> | string
createdAt?: Prisma.DateTimeFilter<"AdminDealContact"> | Date | string
role?: Prisma.StringNullableFilter<"AdminDealContact"> | string | null
isPrimary?: Prisma.BoolFilter<"AdminDealContact"> | boolean
}
export type AdminDealContactCreateWithoutDealInput = {
createdAt?: Date | string
role?: string | null
isPrimary?: boolean
contact: Prisma.AdminContactCreateNestedOneWithoutDealsInput
}
export type AdminDealContactUncheckedCreateWithoutDealInput = {
contactId: string
createdAt?: Date | string
role?: string | null
isPrimary?: boolean
}
export type AdminDealContactCreateOrConnectWithoutDealInput = {
where: Prisma.AdminDealContactWhereUniqueInput
create: Prisma.XOR<Prisma.AdminDealContactCreateWithoutDealInput, Prisma.AdminDealContactUncheckedCreateWithoutDealInput>
}
export type AdminDealContactCreateManyDealInputEnvelope = {
data: Prisma.AdminDealContactCreateManyDealInput | Prisma.AdminDealContactCreateManyDealInput[]
skipDuplicates?: boolean
}
export type AdminDealContactUpsertWithWhereUniqueWithoutDealInput = {
where: Prisma.AdminDealContactWhereUniqueInput
update: Prisma.XOR<Prisma.AdminDealContactUpdateWithoutDealInput, Prisma.AdminDealContactUncheckedUpdateWithoutDealInput>
create: Prisma.XOR<Prisma.AdminDealContactCreateWithoutDealInput, Prisma.AdminDealContactUncheckedCreateWithoutDealInput>
}
export type AdminDealContactUpdateWithWhereUniqueWithoutDealInput = {
where: Prisma.AdminDealContactWhereUniqueInput
data: Prisma.XOR<Prisma.AdminDealContactUpdateWithoutDealInput, Prisma.AdminDealContactUncheckedUpdateWithoutDealInput>
}
export type AdminDealContactUpdateManyWithWhereWithoutDealInput = {
where: Prisma.AdminDealContactScalarWhereInput
data: Prisma.XOR<Prisma.AdminDealContactUpdateManyMutationInput, Prisma.AdminDealContactUncheckedUpdateManyWithoutDealInput>
}
export type AdminDealContactCreateManyContactInput = {
dealId: string
createdAt?: Date | string
role?: string | null
isPrimary?: boolean
}
export type AdminDealContactUpdateWithoutContactInput = {
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isPrimary?: Prisma.BoolFieldUpdateOperationsInput | boolean
deal?: Prisma.AdminDealUpdateOneRequiredWithoutContactsNestedInput
}
export type AdminDealContactUncheckedUpdateWithoutContactInput = {
dealId?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isPrimary?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type AdminDealContactUncheckedUpdateManyWithoutContactInput = {
dealId?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isPrimary?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type AdminDealContactCreateManyDealInput = {
contactId: string
createdAt?: Date | string
role?: string | null
isPrimary?: boolean
}
export type AdminDealContactUpdateWithoutDealInput = {
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isPrimary?: Prisma.BoolFieldUpdateOperationsInput | boolean
contact?: Prisma.AdminContactUpdateOneRequiredWithoutDealsNestedInput
}
export type AdminDealContactUncheckedUpdateWithoutDealInput = {
contactId?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isPrimary?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type AdminDealContactUncheckedUpdateManyWithoutDealInput = {
contactId?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isPrimary?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type AdminDealContactSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
dealId?: boolean
contactId?: boolean
createdAt?: boolean
role?: boolean
isPrimary?: boolean
deal?: boolean | Prisma.AdminDealDefaultArgs<ExtArgs>
contact?: boolean | Prisma.AdminContactDefaultArgs<ExtArgs>
}, ExtArgs["result"]["adminDealContact"]>
export type AdminDealContactSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
dealId?: boolean
contactId?: boolean
createdAt?: boolean
role?: boolean
isPrimary?: boolean
deal?: boolean | Prisma.AdminDealDefaultArgs<ExtArgs>
contact?: boolean | Prisma.AdminContactDefaultArgs<ExtArgs>
}, ExtArgs["result"]["adminDealContact"]>
export type AdminDealContactSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
dealId?: boolean
contactId?: boolean
createdAt?: boolean
role?: boolean
isPrimary?: boolean
deal?: boolean | Prisma.AdminDealDefaultArgs<ExtArgs>
contact?: boolean | Prisma.AdminContactDefaultArgs<ExtArgs>
}, ExtArgs["result"]["adminDealContact"]>
export type AdminDealContactSelectScalar = {
dealId?: boolean
contactId?: boolean
createdAt?: boolean
role?: boolean
isPrimary?: boolean
}
export type AdminDealContactOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"dealId" | "contactId" | "createdAt" | "role" | "isPrimary", ExtArgs["result"]["adminDealContact"]>
export type AdminDealContactInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
deal?: boolean | Prisma.AdminDealDefaultArgs<ExtArgs>
contact?: boolean | Prisma.AdminContactDefaultArgs<ExtArgs>
}
export type AdminDealContactIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
deal?: boolean | Prisma.AdminDealDefaultArgs<ExtArgs>
contact?: boolean | Prisma.AdminContactDefaultArgs<ExtArgs>
}
export type AdminDealContactIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
deal?: boolean | Prisma.AdminDealDefaultArgs<ExtArgs>
contact?: boolean | Prisma.AdminContactDefaultArgs<ExtArgs>
}
export type $AdminDealContactPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "AdminDealContact"
objects: {
deal: Prisma.$AdminDealPayload<ExtArgs>
contact: Prisma.$AdminContactPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
dealId: string
contactId: string
createdAt: Date
role: string | null
isPrimary: boolean
}, ExtArgs["result"]["adminDealContact"]>
composites: {}
}
export type AdminDealContactGetPayload<S extends boolean | null | undefined | AdminDealContactDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AdminDealContactPayload, S>
export type AdminDealContactCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<AdminDealContactFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: AdminDealContactCountAggregateInputType | true
}
export interface AdminDealContactDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AdminDealContact'], meta: { name: 'AdminDealContact' } }
/**
* Find zero or one AdminDealContact that matches the filter.
* @param {AdminDealContactFindUniqueArgs} args - Arguments to find a AdminDealContact
* @example
* // Get one AdminDealContact
* const adminDealContact = await prisma.adminDealContact.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends AdminDealContactFindUniqueArgs>(args: Prisma.SelectSubset<T, AdminDealContactFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AdminDealContactClient<runtime.Types.Result.GetResult<Prisma.$AdminDealContactPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one AdminDealContact that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {AdminDealContactFindUniqueOrThrowArgs} args - Arguments to find a AdminDealContact
* @example
* // Get one AdminDealContact
* const adminDealContact = await prisma.adminDealContact.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends AdminDealContactFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AdminDealContactFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminDealContactClient<runtime.Types.Result.GetResult<Prisma.$AdminDealContactPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first AdminDealContact 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 {AdminDealContactFindFirstArgs} args - Arguments to find a AdminDealContact
* @example
* // Get one AdminDealContact
* const adminDealContact = await prisma.adminDealContact.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends AdminDealContactFindFirstArgs>(args?: Prisma.SelectSubset<T, AdminDealContactFindFirstArgs<ExtArgs>>): Prisma.Prisma__AdminDealContactClient<runtime.Types.Result.GetResult<Prisma.$AdminDealContactPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first AdminDealContact 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 {AdminDealContactFindFirstOrThrowArgs} args - Arguments to find a AdminDealContact
* @example
* // Get one AdminDealContact
* const adminDealContact = await prisma.adminDealContact.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends AdminDealContactFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AdminDealContactFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminDealContactClient<runtime.Types.Result.GetResult<Prisma.$AdminDealContactPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more AdminDealContacts 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 {AdminDealContactFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all AdminDealContacts
* const adminDealContacts = await prisma.adminDealContact.findMany()
*
* // Get first 10 AdminDealContacts
* const adminDealContacts = await prisma.adminDealContact.findMany({ take: 10 })
*
* // Only select the `dealId`
* const adminDealContactWithDealIdOnly = await prisma.adminDealContact.findMany({ select: { dealId: true } })
*
*/
findMany<T extends AdminDealContactFindManyArgs>(args?: Prisma.SelectSubset<T, AdminDealContactFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminDealContactPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a AdminDealContact.
* @param {AdminDealContactCreateArgs} args - Arguments to create a AdminDealContact.
* @example
* // Create one AdminDealContact
* const AdminDealContact = await prisma.adminDealContact.create({
* data: {
* // ... data to create a AdminDealContact
* }
* })
*
*/
create<T extends AdminDealContactCreateArgs>(args: Prisma.SelectSubset<T, AdminDealContactCreateArgs<ExtArgs>>): Prisma.Prisma__AdminDealContactClient<runtime.Types.Result.GetResult<Prisma.$AdminDealContactPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many AdminDealContacts.
* @param {AdminDealContactCreateManyArgs} args - Arguments to create many AdminDealContacts.
* @example
* // Create many AdminDealContacts
* const adminDealContact = await prisma.adminDealContact.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends AdminDealContactCreateManyArgs>(args?: Prisma.SelectSubset<T, AdminDealContactCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many AdminDealContacts and returns the data saved in the database.
* @param {AdminDealContactCreateManyAndReturnArgs} args - Arguments to create many AdminDealContacts.
* @example
* // Create many AdminDealContacts
* const adminDealContact = await prisma.adminDealContact.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many AdminDealContacts and only return the `dealId`
* const adminDealContactWithDealIdOnly = await prisma.adminDealContact.createManyAndReturn({
* select: { dealId: 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<T extends AdminDealContactCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AdminDealContactCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminDealContactPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a AdminDealContact.
* @param {AdminDealContactDeleteArgs} args - Arguments to delete one AdminDealContact.
* @example
* // Delete one AdminDealContact
* const AdminDealContact = await prisma.adminDealContact.delete({
* where: {
* // ... filter to delete one AdminDealContact
* }
* })
*
*/
delete<T extends AdminDealContactDeleteArgs>(args: Prisma.SelectSubset<T, AdminDealContactDeleteArgs<ExtArgs>>): Prisma.Prisma__AdminDealContactClient<runtime.Types.Result.GetResult<Prisma.$AdminDealContactPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one AdminDealContact.
* @param {AdminDealContactUpdateArgs} args - Arguments to update one AdminDealContact.
* @example
* // Update one AdminDealContact
* const adminDealContact = await prisma.adminDealContact.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends AdminDealContactUpdateArgs>(args: Prisma.SelectSubset<T, AdminDealContactUpdateArgs<ExtArgs>>): Prisma.Prisma__AdminDealContactClient<runtime.Types.Result.GetResult<Prisma.$AdminDealContactPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more AdminDealContacts.
* @param {AdminDealContactDeleteManyArgs} args - Arguments to filter AdminDealContacts to delete.
* @example
* // Delete a few AdminDealContacts
* const { count } = await prisma.adminDealContact.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends AdminDealContactDeleteManyArgs>(args?: Prisma.SelectSubset<T, AdminDealContactDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more AdminDealContacts.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminDealContactUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many AdminDealContacts
* const adminDealContact = await prisma.adminDealContact.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends AdminDealContactUpdateManyArgs>(args: Prisma.SelectSubset<T, AdminDealContactUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more AdminDealContacts and returns the data updated in the database.
* @param {AdminDealContactUpdateManyAndReturnArgs} args - Arguments to update many AdminDealContacts.
* @example
* // Update many AdminDealContacts
* const adminDealContact = await prisma.adminDealContact.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more AdminDealContacts and only return the `dealId`
* const adminDealContactWithDealIdOnly = await prisma.adminDealContact.updateManyAndReturn({
* select: { dealId: 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<T extends AdminDealContactUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AdminDealContactUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminDealContactPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one AdminDealContact.
* @param {AdminDealContactUpsertArgs} args - Arguments to update or create a AdminDealContact.
* @example
* // Update or create a AdminDealContact
* const adminDealContact = await prisma.adminDealContact.upsert({
* create: {
* // ... data to create a AdminDealContact
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the AdminDealContact we want to update
* }
* })
*/
upsert<T extends AdminDealContactUpsertArgs>(args: Prisma.SelectSubset<T, AdminDealContactUpsertArgs<ExtArgs>>): Prisma.Prisma__AdminDealContactClient<runtime.Types.Result.GetResult<Prisma.$AdminDealContactPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of AdminDealContacts.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminDealContactCountArgs} args - Arguments to filter AdminDealContacts to count.
* @example
* // Count the number of AdminDealContacts
* const count = await prisma.adminDealContact.count({
* where: {
* // ... the filter for the AdminDealContacts we want to count
* }
* })
**/
count<T extends AdminDealContactCountArgs>(
args?: Prisma.Subset<T, AdminDealContactCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], AdminDealContactCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a AdminDealContact.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminDealContactAggregateArgs} 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<T extends AdminDealContactAggregateArgs>(args: Prisma.Subset<T, AdminDealContactAggregateArgs>): Prisma.PrismaPromise<GetAdminDealContactAggregateType<T>>
/**
* Group by AdminDealContact.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminDealContactGroupByArgs} 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 AdminDealContactGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: AdminDealContactGroupByArgs['orderBy'] }
: { orderBy?: AdminDealContactGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
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<T>
? 'orderBy' extends Prisma.Keys<T>
? 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<T>
? 'orderBy' extends Prisma.Keys<T>
? 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<T, AdminDealContactGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminDealContactGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the AdminDealContact model
*/
readonly fields: AdminDealContactFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for AdminDealContact.
* 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__AdminDealContactClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
deal<T extends Prisma.AdminDealDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdminDealDefaultArgs<ExtArgs>>): Prisma.Prisma__AdminDealClient<runtime.Types.Result.GetResult<Prisma.$AdminDealPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
contact<T extends Prisma.AdminContactDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdminContactDefaultArgs<ExtArgs>>): Prisma.Prisma__AdminContactClient<runtime.Types.Result.GetResult<Prisma.$AdminContactPayload<ExtArgs>, 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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* 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<T>
}
/**
* Fields of the AdminDealContact model
*/
export interface AdminDealContactFieldRefs {
readonly dealId: Prisma.FieldRef<"AdminDealContact", 'String'>
readonly contactId: Prisma.FieldRef<"AdminDealContact", 'String'>
readonly createdAt: Prisma.FieldRef<"AdminDealContact", 'DateTime'>
readonly role: Prisma.FieldRef<"AdminDealContact", 'String'>
readonly isPrimary: Prisma.FieldRef<"AdminDealContact", 'Boolean'>
}
// Custom InputTypes
/**
* AdminDealContact findUnique
*/
export type AdminDealContactFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminDealContact
*/
select?: Prisma.AdminDealContactSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminDealContact
*/
omit?: Prisma.AdminDealContactOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminDealContactInclude<ExtArgs> | null
/**
* Filter, which AdminDealContact to fetch.
*/
where: Prisma.AdminDealContactWhereUniqueInput
}
/**
* AdminDealContact findUniqueOrThrow
*/
export type AdminDealContactFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminDealContact
*/
select?: Prisma.AdminDealContactSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminDealContact
*/
omit?: Prisma.AdminDealContactOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminDealContactInclude<ExtArgs> | null
/**
* Filter, which AdminDealContact to fetch.
*/
where: Prisma.AdminDealContactWhereUniqueInput
}
/**
* AdminDealContact findFirst
*/
export type AdminDealContactFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminDealContact
*/
select?: Prisma.AdminDealContactSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminDealContact
*/
omit?: Prisma.AdminDealContactOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminDealContactInclude<ExtArgs> | null
/**
* Filter, which AdminDealContact to fetch.
*/
where?: Prisma.AdminDealContactWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AdminDealContacts to fetch.
*/
orderBy?: Prisma.AdminDealContactOrderByWithRelationInput | Prisma.AdminDealContactOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AdminDealContacts.
*/
cursor?: Prisma.AdminDealContactWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AdminDealContacts 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` AdminDealContacts.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AdminDealContacts.
*/
distinct?: Prisma.AdminDealContactScalarFieldEnum | Prisma.AdminDealContactScalarFieldEnum[]
}
/**
* AdminDealContact findFirstOrThrow
*/
export type AdminDealContactFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminDealContact
*/
select?: Prisma.AdminDealContactSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminDealContact
*/
omit?: Prisma.AdminDealContactOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminDealContactInclude<ExtArgs> | null
/**
* Filter, which AdminDealContact to fetch.
*/
where?: Prisma.AdminDealContactWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AdminDealContacts to fetch.
*/
orderBy?: Prisma.AdminDealContactOrderByWithRelationInput | Prisma.AdminDealContactOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AdminDealContacts.
*/
cursor?: Prisma.AdminDealContactWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AdminDealContacts 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` AdminDealContacts.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AdminDealContacts.
*/
distinct?: Prisma.AdminDealContactScalarFieldEnum | Prisma.AdminDealContactScalarFieldEnum[]
}
/**
* AdminDealContact findMany
*/
export type AdminDealContactFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminDealContact
*/
select?: Prisma.AdminDealContactSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminDealContact
*/
omit?: Prisma.AdminDealContactOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminDealContactInclude<ExtArgs> | null
/**
* Filter, which AdminDealContacts to fetch.
*/
where?: Prisma.AdminDealContactWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AdminDealContacts to fetch.
*/
orderBy?: Prisma.AdminDealContactOrderByWithRelationInput | Prisma.AdminDealContactOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing AdminDealContacts.
*/
cursor?: Prisma.AdminDealContactWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AdminDealContacts 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` AdminDealContacts.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AdminDealContacts.
*/
distinct?: Prisma.AdminDealContactScalarFieldEnum | Prisma.AdminDealContactScalarFieldEnum[]
}
/**
* AdminDealContact create
*/
export type AdminDealContactCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminDealContact
*/
select?: Prisma.AdminDealContactSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminDealContact
*/
omit?: Prisma.AdminDealContactOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminDealContactInclude<ExtArgs> | null
/**
* The data needed to create a AdminDealContact.
*/
data: Prisma.XOR<Prisma.AdminDealContactCreateInput, Prisma.AdminDealContactUncheckedCreateInput>
}
/**
* AdminDealContact createMany
*/
export type AdminDealContactCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many AdminDealContacts.
*/
data: Prisma.AdminDealContactCreateManyInput | Prisma.AdminDealContactCreateManyInput[]
skipDuplicates?: boolean
}
/**
* AdminDealContact createManyAndReturn
*/
export type AdminDealContactCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminDealContact
*/
select?: Prisma.AdminDealContactSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AdminDealContact
*/
omit?: Prisma.AdminDealContactOmit<ExtArgs> | null
/**
* The data used to create many AdminDealContacts.
*/
data: Prisma.AdminDealContactCreateManyInput | Prisma.AdminDealContactCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminDealContactIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* AdminDealContact update
*/
export type AdminDealContactUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminDealContact
*/
select?: Prisma.AdminDealContactSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminDealContact
*/
omit?: Prisma.AdminDealContactOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminDealContactInclude<ExtArgs> | null
/**
* The data needed to update a AdminDealContact.
*/
data: Prisma.XOR<Prisma.AdminDealContactUpdateInput, Prisma.AdminDealContactUncheckedUpdateInput>
/**
* Choose, which AdminDealContact to update.
*/
where: Prisma.AdminDealContactWhereUniqueInput
}
/**
* AdminDealContact updateMany
*/
export type AdminDealContactUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update AdminDealContacts.
*/
data: Prisma.XOR<Prisma.AdminDealContactUpdateManyMutationInput, Prisma.AdminDealContactUncheckedUpdateManyInput>
/**
* Filter which AdminDealContacts to update
*/
where?: Prisma.AdminDealContactWhereInput
/**
* Limit how many AdminDealContacts to update.
*/
limit?: number
}
/**
* AdminDealContact updateManyAndReturn
*/
export type AdminDealContactUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminDealContact
*/
select?: Prisma.AdminDealContactSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AdminDealContact
*/
omit?: Prisma.AdminDealContactOmit<ExtArgs> | null
/**
* The data used to update AdminDealContacts.
*/
data: Prisma.XOR<Prisma.AdminDealContactUpdateManyMutationInput, Prisma.AdminDealContactUncheckedUpdateManyInput>
/**
* Filter which AdminDealContacts to update
*/
where?: Prisma.AdminDealContactWhereInput
/**
* Limit how many AdminDealContacts to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminDealContactIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* AdminDealContact upsert
*/
export type AdminDealContactUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminDealContact
*/
select?: Prisma.AdminDealContactSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminDealContact
*/
omit?: Prisma.AdminDealContactOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminDealContactInclude<ExtArgs> | null
/**
* The filter to search for the AdminDealContact to update in case it exists.
*/
where: Prisma.AdminDealContactWhereUniqueInput
/**
* In case the AdminDealContact found by the `where` argument doesn't exist, create a new AdminDealContact with this data.
*/
create: Prisma.XOR<Prisma.AdminDealContactCreateInput, Prisma.AdminDealContactUncheckedCreateInput>
/**
* In case the AdminDealContact was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.AdminDealContactUpdateInput, Prisma.AdminDealContactUncheckedUpdateInput>
}
/**
* AdminDealContact delete
*/
export type AdminDealContactDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminDealContact
*/
select?: Prisma.AdminDealContactSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminDealContact
*/
omit?: Prisma.AdminDealContactOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminDealContactInclude<ExtArgs> | null
/**
* Filter which AdminDealContact to delete.
*/
where: Prisma.AdminDealContactWhereUniqueInput
}
/**
* AdminDealContact deleteMany
*/
export type AdminDealContactDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AdminDealContacts to delete
*/
where?: Prisma.AdminDealContactWhereInput
/**
* Limit how many AdminDealContacts to delete.
*/
limit?: number
}
/**
* AdminDealContact without action
*/
export type AdminDealContactDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminDealContact
*/
select?: Prisma.AdminDealContactSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminDealContact
*/
omit?: Prisma.AdminDealContactOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminDealContactInclude<ExtArgs> | null
}