Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-cloud/packages/db/generated/prisma/client/models/AdminLeadSourceCredential.ts
T

1452 lines
63 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 `AdminLeadSourceCredential` 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 AdminLeadSourceCredential
* Rotatable source credential. Only a one-way digest is persisted; the raw
* bearer value is returned once by the source administration service.
*/
export type AdminLeadSourceCredentialModel = runtime.Types.Result.DefaultSelection<Prisma.$AdminLeadSourceCredentialPayload>
export type AggregateAdminLeadSourceCredential = {
_count: AdminLeadSourceCredentialCountAggregateOutputType | null
_min: AdminLeadSourceCredentialMinAggregateOutputType | null
_max: AdminLeadSourceCredentialMaxAggregateOutputType | null
}
export type AdminLeadSourceCredentialMinAggregateOutputType = {
id: string | null
createdAt: Date | null
sourceId: string | null
keyHash: string | null
keyPrefix: string | null
expiresAt: Date | null
revokedAt: Date | null
lastUsedAt: Date | null
}
export type AdminLeadSourceCredentialMaxAggregateOutputType = {
id: string | null
createdAt: Date | null
sourceId: string | null
keyHash: string | null
keyPrefix: string | null
expiresAt: Date | null
revokedAt: Date | null
lastUsedAt: Date | null
}
export type AdminLeadSourceCredentialCountAggregateOutputType = {
id: number
createdAt: number
sourceId: number
keyHash: number
keyPrefix: number
expiresAt: number
revokedAt: number
lastUsedAt: number
_all: number
}
export type AdminLeadSourceCredentialMinAggregateInputType = {
id?: true
createdAt?: true
sourceId?: true
keyHash?: true
keyPrefix?: true
expiresAt?: true
revokedAt?: true
lastUsedAt?: true
}
export type AdminLeadSourceCredentialMaxAggregateInputType = {
id?: true
createdAt?: true
sourceId?: true
keyHash?: true
keyPrefix?: true
expiresAt?: true
revokedAt?: true
lastUsedAt?: true
}
export type AdminLeadSourceCredentialCountAggregateInputType = {
id?: true
createdAt?: true
sourceId?: true
keyHash?: true
keyPrefix?: true
expiresAt?: true
revokedAt?: true
lastUsedAt?: true
_all?: true
}
export type AdminLeadSourceCredentialAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AdminLeadSourceCredential to aggregate.
*/
where?: Prisma.AdminLeadSourceCredentialWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AdminLeadSourceCredentials to fetch.
*/
orderBy?: Prisma.AdminLeadSourceCredentialOrderByWithRelationInput | Prisma.AdminLeadSourceCredentialOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.AdminLeadSourceCredentialWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AdminLeadSourceCredentials 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` AdminLeadSourceCredentials.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned AdminLeadSourceCredentials
**/
_count?: true | AdminLeadSourceCredentialCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: AdminLeadSourceCredentialMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: AdminLeadSourceCredentialMaxAggregateInputType
}
export type GetAdminLeadSourceCredentialAggregateType<T extends AdminLeadSourceCredentialAggregateArgs> = {
[P in keyof T & keyof AggregateAdminLeadSourceCredential]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateAdminLeadSourceCredential[P]>
: Prisma.GetScalarType<T[P], AggregateAdminLeadSourceCredential[P]>
}
export type AdminLeadSourceCredentialGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AdminLeadSourceCredentialWhereInput
orderBy?: Prisma.AdminLeadSourceCredentialOrderByWithAggregationInput | Prisma.AdminLeadSourceCredentialOrderByWithAggregationInput[]
by: Prisma.AdminLeadSourceCredentialScalarFieldEnum[] | Prisma.AdminLeadSourceCredentialScalarFieldEnum
having?: Prisma.AdminLeadSourceCredentialScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: AdminLeadSourceCredentialCountAggregateInputType | true
_min?: AdminLeadSourceCredentialMinAggregateInputType
_max?: AdminLeadSourceCredentialMaxAggregateInputType
}
export type AdminLeadSourceCredentialGroupByOutputType = {
id: string
createdAt: Date
sourceId: string
keyHash: string
keyPrefix: string
expiresAt: Date | null
revokedAt: Date | null
lastUsedAt: Date | null
_count: AdminLeadSourceCredentialCountAggregateOutputType | null
_min: AdminLeadSourceCredentialMinAggregateOutputType | null
_max: AdminLeadSourceCredentialMaxAggregateOutputType | null
}
export type GetAdminLeadSourceCredentialGroupByPayload<T extends AdminLeadSourceCredentialGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<AdminLeadSourceCredentialGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof AdminLeadSourceCredentialGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], AdminLeadSourceCredentialGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], AdminLeadSourceCredentialGroupByOutputType[P]>
}
>
>
export type AdminLeadSourceCredentialWhereInput = {
AND?: Prisma.AdminLeadSourceCredentialWhereInput | Prisma.AdminLeadSourceCredentialWhereInput[]
OR?: Prisma.AdminLeadSourceCredentialWhereInput[]
NOT?: Prisma.AdminLeadSourceCredentialWhereInput | Prisma.AdminLeadSourceCredentialWhereInput[]
id?: Prisma.StringFilter<"AdminLeadSourceCredential"> | string
createdAt?: Prisma.DateTimeFilter<"AdminLeadSourceCredential"> | Date | string
sourceId?: Prisma.StringFilter<"AdminLeadSourceCredential"> | string
keyHash?: Prisma.StringFilter<"AdminLeadSourceCredential"> | string
keyPrefix?: Prisma.StringFilter<"AdminLeadSourceCredential"> | string
expiresAt?: Prisma.DateTimeNullableFilter<"AdminLeadSourceCredential"> | Date | string | null
revokedAt?: Prisma.DateTimeNullableFilter<"AdminLeadSourceCredential"> | Date | string | null
lastUsedAt?: Prisma.DateTimeNullableFilter<"AdminLeadSourceCredential"> | Date | string | null
source?: Prisma.XOR<Prisma.AdminLeadSourceScalarRelationFilter, Prisma.AdminLeadSourceWhereInput>
}
export type AdminLeadSourceCredentialOrderByWithRelationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
sourceId?: Prisma.SortOrder
keyHash?: Prisma.SortOrder
keyPrefix?: Prisma.SortOrder
expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder
lastUsedAt?: Prisma.SortOrderInput | Prisma.SortOrder
source?: Prisma.AdminLeadSourceOrderByWithRelationInput
}
export type AdminLeadSourceCredentialWhereUniqueInput = Prisma.AtLeast<{
id?: string
keyHash?: string
AND?: Prisma.AdminLeadSourceCredentialWhereInput | Prisma.AdminLeadSourceCredentialWhereInput[]
OR?: Prisma.AdminLeadSourceCredentialWhereInput[]
NOT?: Prisma.AdminLeadSourceCredentialWhereInput | Prisma.AdminLeadSourceCredentialWhereInput[]
createdAt?: Prisma.DateTimeFilter<"AdminLeadSourceCredential"> | Date | string
sourceId?: Prisma.StringFilter<"AdminLeadSourceCredential"> | string
keyPrefix?: Prisma.StringFilter<"AdminLeadSourceCredential"> | string
expiresAt?: Prisma.DateTimeNullableFilter<"AdminLeadSourceCredential"> | Date | string | null
revokedAt?: Prisma.DateTimeNullableFilter<"AdminLeadSourceCredential"> | Date | string | null
lastUsedAt?: Prisma.DateTimeNullableFilter<"AdminLeadSourceCredential"> | Date | string | null
source?: Prisma.XOR<Prisma.AdminLeadSourceScalarRelationFilter, Prisma.AdminLeadSourceWhereInput>
}, "id" | "keyHash">
export type AdminLeadSourceCredentialOrderByWithAggregationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
sourceId?: Prisma.SortOrder
keyHash?: Prisma.SortOrder
keyPrefix?: Prisma.SortOrder
expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder
lastUsedAt?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.AdminLeadSourceCredentialCountOrderByAggregateInput
_max?: Prisma.AdminLeadSourceCredentialMaxOrderByAggregateInput
_min?: Prisma.AdminLeadSourceCredentialMinOrderByAggregateInput
}
export type AdminLeadSourceCredentialScalarWhereWithAggregatesInput = {
AND?: Prisma.AdminLeadSourceCredentialScalarWhereWithAggregatesInput | Prisma.AdminLeadSourceCredentialScalarWhereWithAggregatesInput[]
OR?: Prisma.AdminLeadSourceCredentialScalarWhereWithAggregatesInput[]
NOT?: Prisma.AdminLeadSourceCredentialScalarWhereWithAggregatesInput | Prisma.AdminLeadSourceCredentialScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"AdminLeadSourceCredential"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AdminLeadSourceCredential"> | Date | string
sourceId?: Prisma.StringWithAggregatesFilter<"AdminLeadSourceCredential"> | string
keyHash?: Prisma.StringWithAggregatesFilter<"AdminLeadSourceCredential"> | string
keyPrefix?: Prisma.StringWithAggregatesFilter<"AdminLeadSourceCredential"> | string
expiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AdminLeadSourceCredential"> | Date | string | null
revokedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AdminLeadSourceCredential"> | Date | string | null
lastUsedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AdminLeadSourceCredential"> | Date | string | null
}
export type AdminLeadSourceCredentialCreateInput = {
id?: string
createdAt?: Date | string
keyHash: string
keyPrefix: string
expiresAt?: Date | string | null
revokedAt?: Date | string | null
lastUsedAt?: Date | string | null
source: Prisma.AdminLeadSourceCreateNestedOneWithoutCredentialsInput
}
export type AdminLeadSourceCredentialUncheckedCreateInput = {
id?: string
createdAt?: Date | string
sourceId: string
keyHash: string
keyPrefix: string
expiresAt?: Date | string | null
revokedAt?: Date | string | null
lastUsedAt?: Date | string | null
}
export type AdminLeadSourceCredentialUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
keyHash?: Prisma.StringFieldUpdateOperationsInput | string
keyPrefix?: Prisma.StringFieldUpdateOperationsInput | string
expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
source?: Prisma.AdminLeadSourceUpdateOneRequiredWithoutCredentialsNestedInput
}
export type AdminLeadSourceCredentialUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
sourceId?: Prisma.StringFieldUpdateOperationsInput | string
keyHash?: Prisma.StringFieldUpdateOperationsInput | string
keyPrefix?: Prisma.StringFieldUpdateOperationsInput | string
expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type AdminLeadSourceCredentialCreateManyInput = {
id?: string
createdAt?: Date | string
sourceId: string
keyHash: string
keyPrefix: string
expiresAt?: Date | string | null
revokedAt?: Date | string | null
lastUsedAt?: Date | string | null
}
export type AdminLeadSourceCredentialUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
keyHash?: Prisma.StringFieldUpdateOperationsInput | string
keyPrefix?: Prisma.StringFieldUpdateOperationsInput | string
expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type AdminLeadSourceCredentialUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
sourceId?: Prisma.StringFieldUpdateOperationsInput | string
keyHash?: Prisma.StringFieldUpdateOperationsInput | string
keyPrefix?: Prisma.StringFieldUpdateOperationsInput | string
expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type AdminLeadSourceCredentialListRelationFilter = {
every?: Prisma.AdminLeadSourceCredentialWhereInput
some?: Prisma.AdminLeadSourceCredentialWhereInput
none?: Prisma.AdminLeadSourceCredentialWhereInput
}
export type AdminLeadSourceCredentialOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type AdminLeadSourceCredentialCountOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
sourceId?: Prisma.SortOrder
keyHash?: Prisma.SortOrder
keyPrefix?: Prisma.SortOrder
expiresAt?: Prisma.SortOrder
revokedAt?: Prisma.SortOrder
lastUsedAt?: Prisma.SortOrder
}
export type AdminLeadSourceCredentialMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
sourceId?: Prisma.SortOrder
keyHash?: Prisma.SortOrder
keyPrefix?: Prisma.SortOrder
expiresAt?: Prisma.SortOrder
revokedAt?: Prisma.SortOrder
lastUsedAt?: Prisma.SortOrder
}
export type AdminLeadSourceCredentialMinOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
sourceId?: Prisma.SortOrder
keyHash?: Prisma.SortOrder
keyPrefix?: Prisma.SortOrder
expiresAt?: Prisma.SortOrder
revokedAt?: Prisma.SortOrder
lastUsedAt?: Prisma.SortOrder
}
export type AdminLeadSourceCredentialCreateNestedManyWithoutSourceInput = {
create?: Prisma.XOR<Prisma.AdminLeadSourceCredentialCreateWithoutSourceInput, Prisma.AdminLeadSourceCredentialUncheckedCreateWithoutSourceInput> | Prisma.AdminLeadSourceCredentialCreateWithoutSourceInput[] | Prisma.AdminLeadSourceCredentialUncheckedCreateWithoutSourceInput[]
connectOrCreate?: Prisma.AdminLeadSourceCredentialCreateOrConnectWithoutSourceInput | Prisma.AdminLeadSourceCredentialCreateOrConnectWithoutSourceInput[]
createMany?: Prisma.AdminLeadSourceCredentialCreateManySourceInputEnvelope
connect?: Prisma.AdminLeadSourceCredentialWhereUniqueInput | Prisma.AdminLeadSourceCredentialWhereUniqueInput[]
}
export type AdminLeadSourceCredentialUncheckedCreateNestedManyWithoutSourceInput = {
create?: Prisma.XOR<Prisma.AdminLeadSourceCredentialCreateWithoutSourceInput, Prisma.AdminLeadSourceCredentialUncheckedCreateWithoutSourceInput> | Prisma.AdminLeadSourceCredentialCreateWithoutSourceInput[] | Prisma.AdminLeadSourceCredentialUncheckedCreateWithoutSourceInput[]
connectOrCreate?: Prisma.AdminLeadSourceCredentialCreateOrConnectWithoutSourceInput | Prisma.AdminLeadSourceCredentialCreateOrConnectWithoutSourceInput[]
createMany?: Prisma.AdminLeadSourceCredentialCreateManySourceInputEnvelope
connect?: Prisma.AdminLeadSourceCredentialWhereUniqueInput | Prisma.AdminLeadSourceCredentialWhereUniqueInput[]
}
export type AdminLeadSourceCredentialUpdateManyWithoutSourceNestedInput = {
create?: Prisma.XOR<Prisma.AdminLeadSourceCredentialCreateWithoutSourceInput, Prisma.AdminLeadSourceCredentialUncheckedCreateWithoutSourceInput> | Prisma.AdminLeadSourceCredentialCreateWithoutSourceInput[] | Prisma.AdminLeadSourceCredentialUncheckedCreateWithoutSourceInput[]
connectOrCreate?: Prisma.AdminLeadSourceCredentialCreateOrConnectWithoutSourceInput | Prisma.AdminLeadSourceCredentialCreateOrConnectWithoutSourceInput[]
upsert?: Prisma.AdminLeadSourceCredentialUpsertWithWhereUniqueWithoutSourceInput | Prisma.AdminLeadSourceCredentialUpsertWithWhereUniqueWithoutSourceInput[]
createMany?: Prisma.AdminLeadSourceCredentialCreateManySourceInputEnvelope
set?: Prisma.AdminLeadSourceCredentialWhereUniqueInput | Prisma.AdminLeadSourceCredentialWhereUniqueInput[]
disconnect?: Prisma.AdminLeadSourceCredentialWhereUniqueInput | Prisma.AdminLeadSourceCredentialWhereUniqueInput[]
delete?: Prisma.AdminLeadSourceCredentialWhereUniqueInput | Prisma.AdminLeadSourceCredentialWhereUniqueInput[]
connect?: Prisma.AdminLeadSourceCredentialWhereUniqueInput | Prisma.AdminLeadSourceCredentialWhereUniqueInput[]
update?: Prisma.AdminLeadSourceCredentialUpdateWithWhereUniqueWithoutSourceInput | Prisma.AdminLeadSourceCredentialUpdateWithWhereUniqueWithoutSourceInput[]
updateMany?: Prisma.AdminLeadSourceCredentialUpdateManyWithWhereWithoutSourceInput | Prisma.AdminLeadSourceCredentialUpdateManyWithWhereWithoutSourceInput[]
deleteMany?: Prisma.AdminLeadSourceCredentialScalarWhereInput | Prisma.AdminLeadSourceCredentialScalarWhereInput[]
}
export type AdminLeadSourceCredentialUncheckedUpdateManyWithoutSourceNestedInput = {
create?: Prisma.XOR<Prisma.AdminLeadSourceCredentialCreateWithoutSourceInput, Prisma.AdminLeadSourceCredentialUncheckedCreateWithoutSourceInput> | Prisma.AdminLeadSourceCredentialCreateWithoutSourceInput[] | Prisma.AdminLeadSourceCredentialUncheckedCreateWithoutSourceInput[]
connectOrCreate?: Prisma.AdminLeadSourceCredentialCreateOrConnectWithoutSourceInput | Prisma.AdminLeadSourceCredentialCreateOrConnectWithoutSourceInput[]
upsert?: Prisma.AdminLeadSourceCredentialUpsertWithWhereUniqueWithoutSourceInput | Prisma.AdminLeadSourceCredentialUpsertWithWhereUniqueWithoutSourceInput[]
createMany?: Prisma.AdminLeadSourceCredentialCreateManySourceInputEnvelope
set?: Prisma.AdminLeadSourceCredentialWhereUniqueInput | Prisma.AdminLeadSourceCredentialWhereUniqueInput[]
disconnect?: Prisma.AdminLeadSourceCredentialWhereUniqueInput | Prisma.AdminLeadSourceCredentialWhereUniqueInput[]
delete?: Prisma.AdminLeadSourceCredentialWhereUniqueInput | Prisma.AdminLeadSourceCredentialWhereUniqueInput[]
connect?: Prisma.AdminLeadSourceCredentialWhereUniqueInput | Prisma.AdminLeadSourceCredentialWhereUniqueInput[]
update?: Prisma.AdminLeadSourceCredentialUpdateWithWhereUniqueWithoutSourceInput | Prisma.AdminLeadSourceCredentialUpdateWithWhereUniqueWithoutSourceInput[]
updateMany?: Prisma.AdminLeadSourceCredentialUpdateManyWithWhereWithoutSourceInput | Prisma.AdminLeadSourceCredentialUpdateManyWithWhereWithoutSourceInput[]
deleteMany?: Prisma.AdminLeadSourceCredentialScalarWhereInput | Prisma.AdminLeadSourceCredentialScalarWhereInput[]
}
export type AdminLeadSourceCredentialCreateWithoutSourceInput = {
id?: string
createdAt?: Date | string
keyHash: string
keyPrefix: string
expiresAt?: Date | string | null
revokedAt?: Date | string | null
lastUsedAt?: Date | string | null
}
export type AdminLeadSourceCredentialUncheckedCreateWithoutSourceInput = {
id?: string
createdAt?: Date | string
keyHash: string
keyPrefix: string
expiresAt?: Date | string | null
revokedAt?: Date | string | null
lastUsedAt?: Date | string | null
}
export type AdminLeadSourceCredentialCreateOrConnectWithoutSourceInput = {
where: Prisma.AdminLeadSourceCredentialWhereUniqueInput
create: Prisma.XOR<Prisma.AdminLeadSourceCredentialCreateWithoutSourceInput, Prisma.AdminLeadSourceCredentialUncheckedCreateWithoutSourceInput>
}
export type AdminLeadSourceCredentialCreateManySourceInputEnvelope = {
data: Prisma.AdminLeadSourceCredentialCreateManySourceInput | Prisma.AdminLeadSourceCredentialCreateManySourceInput[]
skipDuplicates?: boolean
}
export type AdminLeadSourceCredentialUpsertWithWhereUniqueWithoutSourceInput = {
where: Prisma.AdminLeadSourceCredentialWhereUniqueInput
update: Prisma.XOR<Prisma.AdminLeadSourceCredentialUpdateWithoutSourceInput, Prisma.AdminLeadSourceCredentialUncheckedUpdateWithoutSourceInput>
create: Prisma.XOR<Prisma.AdminLeadSourceCredentialCreateWithoutSourceInput, Prisma.AdminLeadSourceCredentialUncheckedCreateWithoutSourceInput>
}
export type AdminLeadSourceCredentialUpdateWithWhereUniqueWithoutSourceInput = {
where: Prisma.AdminLeadSourceCredentialWhereUniqueInput
data: Prisma.XOR<Prisma.AdminLeadSourceCredentialUpdateWithoutSourceInput, Prisma.AdminLeadSourceCredentialUncheckedUpdateWithoutSourceInput>
}
export type AdminLeadSourceCredentialUpdateManyWithWhereWithoutSourceInput = {
where: Prisma.AdminLeadSourceCredentialScalarWhereInput
data: Prisma.XOR<Prisma.AdminLeadSourceCredentialUpdateManyMutationInput, Prisma.AdminLeadSourceCredentialUncheckedUpdateManyWithoutSourceInput>
}
export type AdminLeadSourceCredentialScalarWhereInput = {
AND?: Prisma.AdminLeadSourceCredentialScalarWhereInput | Prisma.AdminLeadSourceCredentialScalarWhereInput[]
OR?: Prisma.AdminLeadSourceCredentialScalarWhereInput[]
NOT?: Prisma.AdminLeadSourceCredentialScalarWhereInput | Prisma.AdminLeadSourceCredentialScalarWhereInput[]
id?: Prisma.StringFilter<"AdminLeadSourceCredential"> | string
createdAt?: Prisma.DateTimeFilter<"AdminLeadSourceCredential"> | Date | string
sourceId?: Prisma.StringFilter<"AdminLeadSourceCredential"> | string
keyHash?: Prisma.StringFilter<"AdminLeadSourceCredential"> | string
keyPrefix?: Prisma.StringFilter<"AdminLeadSourceCredential"> | string
expiresAt?: Prisma.DateTimeNullableFilter<"AdminLeadSourceCredential"> | Date | string | null
revokedAt?: Prisma.DateTimeNullableFilter<"AdminLeadSourceCredential"> | Date | string | null
lastUsedAt?: Prisma.DateTimeNullableFilter<"AdminLeadSourceCredential"> | Date | string | null
}
export type AdminLeadSourceCredentialCreateManySourceInput = {
id?: string
createdAt?: Date | string
keyHash: string
keyPrefix: string
expiresAt?: Date | string | null
revokedAt?: Date | string | null
lastUsedAt?: Date | string | null
}
export type AdminLeadSourceCredentialUpdateWithoutSourceInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
keyHash?: Prisma.StringFieldUpdateOperationsInput | string
keyPrefix?: Prisma.StringFieldUpdateOperationsInput | string
expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type AdminLeadSourceCredentialUncheckedUpdateWithoutSourceInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
keyHash?: Prisma.StringFieldUpdateOperationsInput | string
keyPrefix?: Prisma.StringFieldUpdateOperationsInput | string
expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type AdminLeadSourceCredentialUncheckedUpdateManyWithoutSourceInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
keyHash?: Prisma.StringFieldUpdateOperationsInput | string
keyPrefix?: Prisma.StringFieldUpdateOperationsInput | string
expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type AdminLeadSourceCredentialSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
sourceId?: boolean
keyHash?: boolean
keyPrefix?: boolean
expiresAt?: boolean
revokedAt?: boolean
lastUsedAt?: boolean
source?: boolean | Prisma.AdminLeadSourceDefaultArgs<ExtArgs>
}, ExtArgs["result"]["adminLeadSourceCredential"]>
export type AdminLeadSourceCredentialSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
sourceId?: boolean
keyHash?: boolean
keyPrefix?: boolean
expiresAt?: boolean
revokedAt?: boolean
lastUsedAt?: boolean
source?: boolean | Prisma.AdminLeadSourceDefaultArgs<ExtArgs>
}, ExtArgs["result"]["adminLeadSourceCredential"]>
export type AdminLeadSourceCredentialSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
sourceId?: boolean
keyHash?: boolean
keyPrefix?: boolean
expiresAt?: boolean
revokedAt?: boolean
lastUsedAt?: boolean
source?: boolean | Prisma.AdminLeadSourceDefaultArgs<ExtArgs>
}, ExtArgs["result"]["adminLeadSourceCredential"]>
export type AdminLeadSourceCredentialSelectScalar = {
id?: boolean
createdAt?: boolean
sourceId?: boolean
keyHash?: boolean
keyPrefix?: boolean
expiresAt?: boolean
revokedAt?: boolean
lastUsedAt?: boolean
}
export type AdminLeadSourceCredentialOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "sourceId" | "keyHash" | "keyPrefix" | "expiresAt" | "revokedAt" | "lastUsedAt", ExtArgs["result"]["adminLeadSourceCredential"]>
export type AdminLeadSourceCredentialInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
source?: boolean | Prisma.AdminLeadSourceDefaultArgs<ExtArgs>
}
export type AdminLeadSourceCredentialIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
source?: boolean | Prisma.AdminLeadSourceDefaultArgs<ExtArgs>
}
export type AdminLeadSourceCredentialIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
source?: boolean | Prisma.AdminLeadSourceDefaultArgs<ExtArgs>
}
export type $AdminLeadSourceCredentialPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "AdminLeadSourceCredential"
objects: {
source: Prisma.$AdminLeadSourcePayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
createdAt: Date
sourceId: string
keyHash: string
keyPrefix: string
expiresAt: Date | null
revokedAt: Date | null
lastUsedAt: Date | null
}, ExtArgs["result"]["adminLeadSourceCredential"]>
composites: {}
}
export type AdminLeadSourceCredentialGetPayload<S extends boolean | null | undefined | AdminLeadSourceCredentialDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AdminLeadSourceCredentialPayload, S>
export type AdminLeadSourceCredentialCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<AdminLeadSourceCredentialFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: AdminLeadSourceCredentialCountAggregateInputType | true
}
export interface AdminLeadSourceCredentialDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AdminLeadSourceCredential'], meta: { name: 'AdminLeadSourceCredential' } }
/**
* Find zero or one AdminLeadSourceCredential that matches the filter.
* @param {AdminLeadSourceCredentialFindUniqueArgs} args - Arguments to find a AdminLeadSourceCredential
* @example
* // Get one AdminLeadSourceCredential
* const adminLeadSourceCredential = await prisma.adminLeadSourceCredential.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends AdminLeadSourceCredentialFindUniqueArgs>(args: Prisma.SelectSubset<T, AdminLeadSourceCredentialFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AdminLeadSourceCredentialClient<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourceCredentialPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one AdminLeadSourceCredential that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {AdminLeadSourceCredentialFindUniqueOrThrowArgs} args - Arguments to find a AdminLeadSourceCredential
* @example
* // Get one AdminLeadSourceCredential
* const adminLeadSourceCredential = await prisma.adminLeadSourceCredential.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends AdminLeadSourceCredentialFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AdminLeadSourceCredentialFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminLeadSourceCredentialClient<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourceCredentialPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first AdminLeadSourceCredential 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 {AdminLeadSourceCredentialFindFirstArgs} args - Arguments to find a AdminLeadSourceCredential
* @example
* // Get one AdminLeadSourceCredential
* const adminLeadSourceCredential = await prisma.adminLeadSourceCredential.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends AdminLeadSourceCredentialFindFirstArgs>(args?: Prisma.SelectSubset<T, AdminLeadSourceCredentialFindFirstArgs<ExtArgs>>): Prisma.Prisma__AdminLeadSourceCredentialClient<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourceCredentialPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first AdminLeadSourceCredential 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 {AdminLeadSourceCredentialFindFirstOrThrowArgs} args - Arguments to find a AdminLeadSourceCredential
* @example
* // Get one AdminLeadSourceCredential
* const adminLeadSourceCredential = await prisma.adminLeadSourceCredential.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends AdminLeadSourceCredentialFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AdminLeadSourceCredentialFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminLeadSourceCredentialClient<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourceCredentialPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more AdminLeadSourceCredentials 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 {AdminLeadSourceCredentialFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all AdminLeadSourceCredentials
* const adminLeadSourceCredentials = await prisma.adminLeadSourceCredential.findMany()
*
* // Get first 10 AdminLeadSourceCredentials
* const adminLeadSourceCredentials = await prisma.adminLeadSourceCredential.findMany({ take: 10 })
*
* // Only select the `id`
* const adminLeadSourceCredentialWithIdOnly = await prisma.adminLeadSourceCredential.findMany({ select: { id: true } })
*
*/
findMany<T extends AdminLeadSourceCredentialFindManyArgs>(args?: Prisma.SelectSubset<T, AdminLeadSourceCredentialFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourceCredentialPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a AdminLeadSourceCredential.
* @param {AdminLeadSourceCredentialCreateArgs} args - Arguments to create a AdminLeadSourceCredential.
* @example
* // Create one AdminLeadSourceCredential
* const AdminLeadSourceCredential = await prisma.adminLeadSourceCredential.create({
* data: {
* // ... data to create a AdminLeadSourceCredential
* }
* })
*
*/
create<T extends AdminLeadSourceCredentialCreateArgs>(args: Prisma.SelectSubset<T, AdminLeadSourceCredentialCreateArgs<ExtArgs>>): Prisma.Prisma__AdminLeadSourceCredentialClient<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourceCredentialPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many AdminLeadSourceCredentials.
* @param {AdminLeadSourceCredentialCreateManyArgs} args - Arguments to create many AdminLeadSourceCredentials.
* @example
* // Create many AdminLeadSourceCredentials
* const adminLeadSourceCredential = await prisma.adminLeadSourceCredential.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends AdminLeadSourceCredentialCreateManyArgs>(args?: Prisma.SelectSubset<T, AdminLeadSourceCredentialCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many AdminLeadSourceCredentials and returns the data saved in the database.
* @param {AdminLeadSourceCredentialCreateManyAndReturnArgs} args - Arguments to create many AdminLeadSourceCredentials.
* @example
* // Create many AdminLeadSourceCredentials
* const adminLeadSourceCredential = await prisma.adminLeadSourceCredential.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many AdminLeadSourceCredentials and only return the `id`
* const adminLeadSourceCredentialWithIdOnly = await prisma.adminLeadSourceCredential.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<T extends AdminLeadSourceCredentialCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AdminLeadSourceCredentialCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourceCredentialPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a AdminLeadSourceCredential.
* @param {AdminLeadSourceCredentialDeleteArgs} args - Arguments to delete one AdminLeadSourceCredential.
* @example
* // Delete one AdminLeadSourceCredential
* const AdminLeadSourceCredential = await prisma.adminLeadSourceCredential.delete({
* where: {
* // ... filter to delete one AdminLeadSourceCredential
* }
* })
*
*/
delete<T extends AdminLeadSourceCredentialDeleteArgs>(args: Prisma.SelectSubset<T, AdminLeadSourceCredentialDeleteArgs<ExtArgs>>): Prisma.Prisma__AdminLeadSourceCredentialClient<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourceCredentialPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one AdminLeadSourceCredential.
* @param {AdminLeadSourceCredentialUpdateArgs} args - Arguments to update one AdminLeadSourceCredential.
* @example
* // Update one AdminLeadSourceCredential
* const adminLeadSourceCredential = await prisma.adminLeadSourceCredential.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends AdminLeadSourceCredentialUpdateArgs>(args: Prisma.SelectSubset<T, AdminLeadSourceCredentialUpdateArgs<ExtArgs>>): Prisma.Prisma__AdminLeadSourceCredentialClient<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourceCredentialPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more AdminLeadSourceCredentials.
* @param {AdminLeadSourceCredentialDeleteManyArgs} args - Arguments to filter AdminLeadSourceCredentials to delete.
* @example
* // Delete a few AdminLeadSourceCredentials
* const { count } = await prisma.adminLeadSourceCredential.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends AdminLeadSourceCredentialDeleteManyArgs>(args?: Prisma.SelectSubset<T, AdminLeadSourceCredentialDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more AdminLeadSourceCredentials.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminLeadSourceCredentialUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many AdminLeadSourceCredentials
* const adminLeadSourceCredential = await prisma.adminLeadSourceCredential.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends AdminLeadSourceCredentialUpdateManyArgs>(args: Prisma.SelectSubset<T, AdminLeadSourceCredentialUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more AdminLeadSourceCredentials and returns the data updated in the database.
* @param {AdminLeadSourceCredentialUpdateManyAndReturnArgs} args - Arguments to update many AdminLeadSourceCredentials.
* @example
* // Update many AdminLeadSourceCredentials
* const adminLeadSourceCredential = await prisma.adminLeadSourceCredential.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more AdminLeadSourceCredentials and only return the `id`
* const adminLeadSourceCredentialWithIdOnly = await prisma.adminLeadSourceCredential.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<T extends AdminLeadSourceCredentialUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AdminLeadSourceCredentialUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourceCredentialPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one AdminLeadSourceCredential.
* @param {AdminLeadSourceCredentialUpsertArgs} args - Arguments to update or create a AdminLeadSourceCredential.
* @example
* // Update or create a AdminLeadSourceCredential
* const adminLeadSourceCredential = await prisma.adminLeadSourceCredential.upsert({
* create: {
* // ... data to create a AdminLeadSourceCredential
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the AdminLeadSourceCredential we want to update
* }
* })
*/
upsert<T extends AdminLeadSourceCredentialUpsertArgs>(args: Prisma.SelectSubset<T, AdminLeadSourceCredentialUpsertArgs<ExtArgs>>): Prisma.Prisma__AdminLeadSourceCredentialClient<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourceCredentialPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of AdminLeadSourceCredentials.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminLeadSourceCredentialCountArgs} args - Arguments to filter AdminLeadSourceCredentials to count.
* @example
* // Count the number of AdminLeadSourceCredentials
* const count = await prisma.adminLeadSourceCredential.count({
* where: {
* // ... the filter for the AdminLeadSourceCredentials we want to count
* }
* })
**/
count<T extends AdminLeadSourceCredentialCountArgs>(
args?: Prisma.Subset<T, AdminLeadSourceCredentialCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], AdminLeadSourceCredentialCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a AdminLeadSourceCredential.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminLeadSourceCredentialAggregateArgs} 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 AdminLeadSourceCredentialAggregateArgs>(args: Prisma.Subset<T, AdminLeadSourceCredentialAggregateArgs>): Prisma.PrismaPromise<GetAdminLeadSourceCredentialAggregateType<T>>
/**
* Group by AdminLeadSourceCredential.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminLeadSourceCredentialGroupByArgs} 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 AdminLeadSourceCredentialGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: AdminLeadSourceCredentialGroupByArgs['orderBy'] }
: { orderBy?: AdminLeadSourceCredentialGroupByArgs['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, AdminLeadSourceCredentialGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminLeadSourceCredentialGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the AdminLeadSourceCredential model
*/
readonly fields: AdminLeadSourceCredentialFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for AdminLeadSourceCredential.
* 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__AdminLeadSourceCredentialClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
source<T extends Prisma.AdminLeadSourceDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdminLeadSourceDefaultArgs<ExtArgs>>): Prisma.Prisma__AdminLeadSourceClient<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourcePayload<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 AdminLeadSourceCredential model
*/
export interface AdminLeadSourceCredentialFieldRefs {
readonly id: Prisma.FieldRef<"AdminLeadSourceCredential", 'String'>
readonly createdAt: Prisma.FieldRef<"AdminLeadSourceCredential", 'DateTime'>
readonly sourceId: Prisma.FieldRef<"AdminLeadSourceCredential", 'String'>
readonly keyHash: Prisma.FieldRef<"AdminLeadSourceCredential", 'String'>
readonly keyPrefix: Prisma.FieldRef<"AdminLeadSourceCredential", 'String'>
readonly expiresAt: Prisma.FieldRef<"AdminLeadSourceCredential", 'DateTime'>
readonly revokedAt: Prisma.FieldRef<"AdminLeadSourceCredential", 'DateTime'>
readonly lastUsedAt: Prisma.FieldRef<"AdminLeadSourceCredential", 'DateTime'>
}
// Custom InputTypes
/**
* AdminLeadSourceCredential findUnique
*/
export type AdminLeadSourceCredentialFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminLeadSourceCredential
*/
select?: Prisma.AdminLeadSourceCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminLeadSourceCredential
*/
omit?: Prisma.AdminLeadSourceCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminLeadSourceCredentialInclude<ExtArgs> | null
/**
* Filter, which AdminLeadSourceCredential to fetch.
*/
where: Prisma.AdminLeadSourceCredentialWhereUniqueInput
}
/**
* AdminLeadSourceCredential findUniqueOrThrow
*/
export type AdminLeadSourceCredentialFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminLeadSourceCredential
*/
select?: Prisma.AdminLeadSourceCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminLeadSourceCredential
*/
omit?: Prisma.AdminLeadSourceCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminLeadSourceCredentialInclude<ExtArgs> | null
/**
* Filter, which AdminLeadSourceCredential to fetch.
*/
where: Prisma.AdminLeadSourceCredentialWhereUniqueInput
}
/**
* AdminLeadSourceCredential findFirst
*/
export type AdminLeadSourceCredentialFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminLeadSourceCredential
*/
select?: Prisma.AdminLeadSourceCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminLeadSourceCredential
*/
omit?: Prisma.AdminLeadSourceCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminLeadSourceCredentialInclude<ExtArgs> | null
/**
* Filter, which AdminLeadSourceCredential to fetch.
*/
where?: Prisma.AdminLeadSourceCredentialWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AdminLeadSourceCredentials to fetch.
*/
orderBy?: Prisma.AdminLeadSourceCredentialOrderByWithRelationInput | Prisma.AdminLeadSourceCredentialOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AdminLeadSourceCredentials.
*/
cursor?: Prisma.AdminLeadSourceCredentialWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AdminLeadSourceCredentials 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` AdminLeadSourceCredentials.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AdminLeadSourceCredentials.
*/
distinct?: Prisma.AdminLeadSourceCredentialScalarFieldEnum | Prisma.AdminLeadSourceCredentialScalarFieldEnum[]
}
/**
* AdminLeadSourceCredential findFirstOrThrow
*/
export type AdminLeadSourceCredentialFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminLeadSourceCredential
*/
select?: Prisma.AdminLeadSourceCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminLeadSourceCredential
*/
omit?: Prisma.AdminLeadSourceCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminLeadSourceCredentialInclude<ExtArgs> | null
/**
* Filter, which AdminLeadSourceCredential to fetch.
*/
where?: Prisma.AdminLeadSourceCredentialWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AdminLeadSourceCredentials to fetch.
*/
orderBy?: Prisma.AdminLeadSourceCredentialOrderByWithRelationInput | Prisma.AdminLeadSourceCredentialOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AdminLeadSourceCredentials.
*/
cursor?: Prisma.AdminLeadSourceCredentialWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AdminLeadSourceCredentials 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` AdminLeadSourceCredentials.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AdminLeadSourceCredentials.
*/
distinct?: Prisma.AdminLeadSourceCredentialScalarFieldEnum | Prisma.AdminLeadSourceCredentialScalarFieldEnum[]
}
/**
* AdminLeadSourceCredential findMany
*/
export type AdminLeadSourceCredentialFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminLeadSourceCredential
*/
select?: Prisma.AdminLeadSourceCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminLeadSourceCredential
*/
omit?: Prisma.AdminLeadSourceCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminLeadSourceCredentialInclude<ExtArgs> | null
/**
* Filter, which AdminLeadSourceCredentials to fetch.
*/
where?: Prisma.AdminLeadSourceCredentialWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AdminLeadSourceCredentials to fetch.
*/
orderBy?: Prisma.AdminLeadSourceCredentialOrderByWithRelationInput | Prisma.AdminLeadSourceCredentialOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing AdminLeadSourceCredentials.
*/
cursor?: Prisma.AdminLeadSourceCredentialWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AdminLeadSourceCredentials 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` AdminLeadSourceCredentials.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AdminLeadSourceCredentials.
*/
distinct?: Prisma.AdminLeadSourceCredentialScalarFieldEnum | Prisma.AdminLeadSourceCredentialScalarFieldEnum[]
}
/**
* AdminLeadSourceCredential create
*/
export type AdminLeadSourceCredentialCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminLeadSourceCredential
*/
select?: Prisma.AdminLeadSourceCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminLeadSourceCredential
*/
omit?: Prisma.AdminLeadSourceCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminLeadSourceCredentialInclude<ExtArgs> | null
/**
* The data needed to create a AdminLeadSourceCredential.
*/
data: Prisma.XOR<Prisma.AdminLeadSourceCredentialCreateInput, Prisma.AdminLeadSourceCredentialUncheckedCreateInput>
}
/**
* AdminLeadSourceCredential createMany
*/
export type AdminLeadSourceCredentialCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many AdminLeadSourceCredentials.
*/
data: Prisma.AdminLeadSourceCredentialCreateManyInput | Prisma.AdminLeadSourceCredentialCreateManyInput[]
skipDuplicates?: boolean
}
/**
* AdminLeadSourceCredential createManyAndReturn
*/
export type AdminLeadSourceCredentialCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminLeadSourceCredential
*/
select?: Prisma.AdminLeadSourceCredentialSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AdminLeadSourceCredential
*/
omit?: Prisma.AdminLeadSourceCredentialOmit<ExtArgs> | null
/**
* The data used to create many AdminLeadSourceCredentials.
*/
data: Prisma.AdminLeadSourceCredentialCreateManyInput | Prisma.AdminLeadSourceCredentialCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminLeadSourceCredentialIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* AdminLeadSourceCredential update
*/
export type AdminLeadSourceCredentialUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminLeadSourceCredential
*/
select?: Prisma.AdminLeadSourceCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminLeadSourceCredential
*/
omit?: Prisma.AdminLeadSourceCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminLeadSourceCredentialInclude<ExtArgs> | null
/**
* The data needed to update a AdminLeadSourceCredential.
*/
data: Prisma.XOR<Prisma.AdminLeadSourceCredentialUpdateInput, Prisma.AdminLeadSourceCredentialUncheckedUpdateInput>
/**
* Choose, which AdminLeadSourceCredential to update.
*/
where: Prisma.AdminLeadSourceCredentialWhereUniqueInput
}
/**
* AdminLeadSourceCredential updateMany
*/
export type AdminLeadSourceCredentialUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update AdminLeadSourceCredentials.
*/
data: Prisma.XOR<Prisma.AdminLeadSourceCredentialUpdateManyMutationInput, Prisma.AdminLeadSourceCredentialUncheckedUpdateManyInput>
/**
* Filter which AdminLeadSourceCredentials to update
*/
where?: Prisma.AdminLeadSourceCredentialWhereInput
/**
* Limit how many AdminLeadSourceCredentials to update.
*/
limit?: number
}
/**
* AdminLeadSourceCredential updateManyAndReturn
*/
export type AdminLeadSourceCredentialUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminLeadSourceCredential
*/
select?: Prisma.AdminLeadSourceCredentialSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AdminLeadSourceCredential
*/
omit?: Prisma.AdminLeadSourceCredentialOmit<ExtArgs> | null
/**
* The data used to update AdminLeadSourceCredentials.
*/
data: Prisma.XOR<Prisma.AdminLeadSourceCredentialUpdateManyMutationInput, Prisma.AdminLeadSourceCredentialUncheckedUpdateManyInput>
/**
* Filter which AdminLeadSourceCredentials to update
*/
where?: Prisma.AdminLeadSourceCredentialWhereInput
/**
* Limit how many AdminLeadSourceCredentials to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminLeadSourceCredentialIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* AdminLeadSourceCredential upsert
*/
export type AdminLeadSourceCredentialUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminLeadSourceCredential
*/
select?: Prisma.AdminLeadSourceCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminLeadSourceCredential
*/
omit?: Prisma.AdminLeadSourceCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminLeadSourceCredentialInclude<ExtArgs> | null
/**
* The filter to search for the AdminLeadSourceCredential to update in case it exists.
*/
where: Prisma.AdminLeadSourceCredentialWhereUniqueInput
/**
* In case the AdminLeadSourceCredential found by the `where` argument doesn't exist, create a new AdminLeadSourceCredential with this data.
*/
create: Prisma.XOR<Prisma.AdminLeadSourceCredentialCreateInput, Prisma.AdminLeadSourceCredentialUncheckedCreateInput>
/**
* In case the AdminLeadSourceCredential was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.AdminLeadSourceCredentialUpdateInput, Prisma.AdminLeadSourceCredentialUncheckedUpdateInput>
}
/**
* AdminLeadSourceCredential delete
*/
export type AdminLeadSourceCredentialDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminLeadSourceCredential
*/
select?: Prisma.AdminLeadSourceCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminLeadSourceCredential
*/
omit?: Prisma.AdminLeadSourceCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminLeadSourceCredentialInclude<ExtArgs> | null
/**
* Filter which AdminLeadSourceCredential to delete.
*/
where: Prisma.AdminLeadSourceCredentialWhereUniqueInput
}
/**
* AdminLeadSourceCredential deleteMany
*/
export type AdminLeadSourceCredentialDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AdminLeadSourceCredentials to delete
*/
where?: Prisma.AdminLeadSourceCredentialWhereInput
/**
* Limit how many AdminLeadSourceCredentials to delete.
*/
limit?: number
}
/**
* AdminLeadSourceCredential without action
*/
export type AdminLeadSourceCredentialDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminLeadSourceCredential
*/
select?: Prisma.AdminLeadSourceCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminLeadSourceCredential
*/
omit?: Prisma.AdminLeadSourceCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminLeadSourceCredentialInclude<ExtArgs> | null
}