1663 lines
65 KiB
TypeScript
1663 lines
65 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 `AdminLeadSource` 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 AdminLeadSource
|
|
*
|
|
*/
|
|
export type AdminLeadSourceModel = runtime.Types.Result.DefaultSelection<Prisma.$AdminLeadSourcePayload>
|
|
|
|
export type AggregateAdminLeadSource = {
|
|
_count: AdminLeadSourceCountAggregateOutputType | null
|
|
_avg: AdminLeadSourceAvgAggregateOutputType | null
|
|
_sum: AdminLeadSourceSumAggregateOutputType | null
|
|
_min: AdminLeadSourceMinAggregateOutputType | null
|
|
_max: AdminLeadSourceMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type AdminLeadSourceAvgAggregateOutputType = {
|
|
rateLimitPerMinute: number | null
|
|
}
|
|
|
|
export type AdminLeadSourceSumAggregateOutputType = {
|
|
rateLimitPerMinute: number | null
|
|
}
|
|
|
|
export type AdminLeadSourceMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
key: string | null
|
|
displayName: string | null
|
|
enabled: boolean | null
|
|
defaultAssigneeAdminUserId: string | null
|
|
rateLimitPerMinute: number | null
|
|
}
|
|
|
|
export type AdminLeadSourceMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
key: string | null
|
|
displayName: string | null
|
|
enabled: boolean | null
|
|
defaultAssigneeAdminUserId: string | null
|
|
rateLimitPerMinute: number | null
|
|
}
|
|
|
|
export type AdminLeadSourceCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
key: number
|
|
displayName: number
|
|
enabled: number
|
|
defaultAssigneeAdminUserId: number
|
|
notifyAdminUserIds: number
|
|
rateLimitPerMinute: number
|
|
metadata: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type AdminLeadSourceAvgAggregateInputType = {
|
|
rateLimitPerMinute?: true
|
|
}
|
|
|
|
export type AdminLeadSourceSumAggregateInputType = {
|
|
rateLimitPerMinute?: true
|
|
}
|
|
|
|
export type AdminLeadSourceMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
key?: true
|
|
displayName?: true
|
|
enabled?: true
|
|
defaultAssigneeAdminUserId?: true
|
|
rateLimitPerMinute?: true
|
|
}
|
|
|
|
export type AdminLeadSourceMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
key?: true
|
|
displayName?: true
|
|
enabled?: true
|
|
defaultAssigneeAdminUserId?: true
|
|
rateLimitPerMinute?: true
|
|
}
|
|
|
|
export type AdminLeadSourceCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
key?: true
|
|
displayName?: true
|
|
enabled?: true
|
|
defaultAssigneeAdminUserId?: true
|
|
notifyAdminUserIds?: true
|
|
rateLimitPerMinute?: true
|
|
metadata?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type AdminLeadSourceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AdminLeadSource to aggregate.
|
|
*/
|
|
where?: Prisma.AdminLeadSourceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminLeadSources to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminLeadSourceOrderByWithRelationInput | Prisma.AdminLeadSourceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.AdminLeadSourceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminLeadSources 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` AdminLeadSources.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned AdminLeadSources
|
|
**/
|
|
_count?: true | AdminLeadSourceCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: AdminLeadSourceAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: AdminLeadSourceSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: AdminLeadSourceMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: AdminLeadSourceMaxAggregateInputType
|
|
}
|
|
|
|
export type GetAdminLeadSourceAggregateType<T extends AdminLeadSourceAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAdminLeadSource]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateAdminLeadSource[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateAdminLeadSource[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AdminLeadSourceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AdminLeadSourceWhereInput
|
|
orderBy?: Prisma.AdminLeadSourceOrderByWithAggregationInput | Prisma.AdminLeadSourceOrderByWithAggregationInput[]
|
|
by: Prisma.AdminLeadSourceScalarFieldEnum[] | Prisma.AdminLeadSourceScalarFieldEnum
|
|
having?: Prisma.AdminLeadSourceScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: AdminLeadSourceCountAggregateInputType | true
|
|
_avg?: AdminLeadSourceAvgAggregateInputType
|
|
_sum?: AdminLeadSourceSumAggregateInputType
|
|
_min?: AdminLeadSourceMinAggregateInputType
|
|
_max?: AdminLeadSourceMaxAggregateInputType
|
|
}
|
|
|
|
export type AdminLeadSourceGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
key: string
|
|
displayName: string
|
|
enabled: boolean
|
|
defaultAssigneeAdminUserId: string | null
|
|
notifyAdminUserIds: string[]
|
|
rateLimitPerMinute: number
|
|
metadata: runtime.JsonValue | null
|
|
_count: AdminLeadSourceCountAggregateOutputType | null
|
|
_avg: AdminLeadSourceAvgAggregateOutputType | null
|
|
_sum: AdminLeadSourceSumAggregateOutputType | null
|
|
_min: AdminLeadSourceMinAggregateOutputType | null
|
|
_max: AdminLeadSourceMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetAdminLeadSourceGroupByPayload<T extends AdminLeadSourceGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<AdminLeadSourceGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AdminLeadSourceGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AdminLeadSourceGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], AdminLeadSourceGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type AdminLeadSourceWhereInput = {
|
|
AND?: Prisma.AdminLeadSourceWhereInput | Prisma.AdminLeadSourceWhereInput[]
|
|
OR?: Prisma.AdminLeadSourceWhereInput[]
|
|
NOT?: Prisma.AdminLeadSourceWhereInput | Prisma.AdminLeadSourceWhereInput[]
|
|
id?: Prisma.StringFilter<"AdminLeadSource"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"AdminLeadSource"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"AdminLeadSource"> | Date | string
|
|
key?: Prisma.StringFilter<"AdminLeadSource"> | string
|
|
displayName?: Prisma.StringFilter<"AdminLeadSource"> | string
|
|
enabled?: Prisma.BoolFilter<"AdminLeadSource"> | boolean
|
|
defaultAssigneeAdminUserId?: Prisma.StringNullableFilter<"AdminLeadSource"> | string | null
|
|
notifyAdminUserIds?: Prisma.StringNullableListFilter<"AdminLeadSource">
|
|
rateLimitPerMinute?: Prisma.IntFilter<"AdminLeadSource"> | number
|
|
metadata?: Prisma.JsonNullableFilter<"AdminLeadSource">
|
|
leads?: Prisma.AdminLeadListRelationFilter
|
|
credentials?: Prisma.AdminLeadSourceCredentialListRelationFilter
|
|
}
|
|
|
|
export type AdminLeadSourceOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
displayName?: Prisma.SortOrder
|
|
enabled?: Prisma.SortOrder
|
|
defaultAssigneeAdminUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
notifyAdminUserIds?: Prisma.SortOrder
|
|
rateLimitPerMinute?: Prisma.SortOrder
|
|
metadata?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
leads?: Prisma.AdminLeadOrderByRelationAggregateInput
|
|
credentials?: Prisma.AdminLeadSourceCredentialOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type AdminLeadSourceWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
key?: string
|
|
AND?: Prisma.AdminLeadSourceWhereInput | Prisma.AdminLeadSourceWhereInput[]
|
|
OR?: Prisma.AdminLeadSourceWhereInput[]
|
|
NOT?: Prisma.AdminLeadSourceWhereInput | Prisma.AdminLeadSourceWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"AdminLeadSource"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"AdminLeadSource"> | Date | string
|
|
displayName?: Prisma.StringFilter<"AdminLeadSource"> | string
|
|
enabled?: Prisma.BoolFilter<"AdminLeadSource"> | boolean
|
|
defaultAssigneeAdminUserId?: Prisma.StringNullableFilter<"AdminLeadSource"> | string | null
|
|
notifyAdminUserIds?: Prisma.StringNullableListFilter<"AdminLeadSource">
|
|
rateLimitPerMinute?: Prisma.IntFilter<"AdminLeadSource"> | number
|
|
metadata?: Prisma.JsonNullableFilter<"AdminLeadSource">
|
|
leads?: Prisma.AdminLeadListRelationFilter
|
|
credentials?: Prisma.AdminLeadSourceCredentialListRelationFilter
|
|
}, "id" | "key">
|
|
|
|
export type AdminLeadSourceOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
displayName?: Prisma.SortOrder
|
|
enabled?: Prisma.SortOrder
|
|
defaultAssigneeAdminUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
notifyAdminUserIds?: Prisma.SortOrder
|
|
rateLimitPerMinute?: Prisma.SortOrder
|
|
metadata?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.AdminLeadSourceCountOrderByAggregateInput
|
|
_avg?: Prisma.AdminLeadSourceAvgOrderByAggregateInput
|
|
_max?: Prisma.AdminLeadSourceMaxOrderByAggregateInput
|
|
_min?: Prisma.AdminLeadSourceMinOrderByAggregateInput
|
|
_sum?: Prisma.AdminLeadSourceSumOrderByAggregateInput
|
|
}
|
|
|
|
export type AdminLeadSourceScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.AdminLeadSourceScalarWhereWithAggregatesInput | Prisma.AdminLeadSourceScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.AdminLeadSourceScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.AdminLeadSourceScalarWhereWithAggregatesInput | Prisma.AdminLeadSourceScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"AdminLeadSource"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AdminLeadSource"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AdminLeadSource"> | Date | string
|
|
key?: Prisma.StringWithAggregatesFilter<"AdminLeadSource"> | string
|
|
displayName?: Prisma.StringWithAggregatesFilter<"AdminLeadSource"> | string
|
|
enabled?: Prisma.BoolWithAggregatesFilter<"AdminLeadSource"> | boolean
|
|
defaultAssigneeAdminUserId?: Prisma.StringNullableWithAggregatesFilter<"AdminLeadSource"> | string | null
|
|
notifyAdminUserIds?: Prisma.StringNullableListFilter<"AdminLeadSource">
|
|
rateLimitPerMinute?: Prisma.IntWithAggregatesFilter<"AdminLeadSource"> | number
|
|
metadata?: Prisma.JsonNullableWithAggregatesFilter<"AdminLeadSource">
|
|
}
|
|
|
|
export type AdminLeadSourceCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
key: string
|
|
displayName: string
|
|
enabled?: boolean
|
|
defaultAssigneeAdminUserId?: string | null
|
|
notifyAdminUserIds?: Prisma.AdminLeadSourceCreatenotifyAdminUserIdsInput | string[]
|
|
rateLimitPerMinute?: number
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
leads?: Prisma.AdminLeadCreateNestedManyWithoutSourceInput
|
|
credentials?: Prisma.AdminLeadSourceCredentialCreateNestedManyWithoutSourceInput
|
|
}
|
|
|
|
export type AdminLeadSourceUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
key: string
|
|
displayName: string
|
|
enabled?: boolean
|
|
defaultAssigneeAdminUserId?: string | null
|
|
notifyAdminUserIds?: Prisma.AdminLeadSourceCreatenotifyAdminUserIdsInput | string[]
|
|
rateLimitPerMinute?: number
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
leads?: Prisma.AdminLeadUncheckedCreateNestedManyWithoutSourceInput
|
|
credentials?: Prisma.AdminLeadSourceCredentialUncheckedCreateNestedManyWithoutSourceInput
|
|
}
|
|
|
|
export type AdminLeadSourceUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
displayName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
defaultAssigneeAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
notifyAdminUserIds?: Prisma.AdminLeadSourceUpdatenotifyAdminUserIdsInput | string[]
|
|
rateLimitPerMinute?: Prisma.IntFieldUpdateOperationsInput | number
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
leads?: Prisma.AdminLeadUpdateManyWithoutSourceNestedInput
|
|
credentials?: Prisma.AdminLeadSourceCredentialUpdateManyWithoutSourceNestedInput
|
|
}
|
|
|
|
export type AdminLeadSourceUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
displayName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
defaultAssigneeAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
notifyAdminUserIds?: Prisma.AdminLeadSourceUpdatenotifyAdminUserIdsInput | string[]
|
|
rateLimitPerMinute?: Prisma.IntFieldUpdateOperationsInput | number
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
leads?: Prisma.AdminLeadUncheckedUpdateManyWithoutSourceNestedInput
|
|
credentials?: Prisma.AdminLeadSourceCredentialUncheckedUpdateManyWithoutSourceNestedInput
|
|
}
|
|
|
|
export type AdminLeadSourceCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
key: string
|
|
displayName: string
|
|
enabled?: boolean
|
|
defaultAssigneeAdminUserId?: string | null
|
|
notifyAdminUserIds?: Prisma.AdminLeadSourceCreatenotifyAdminUserIdsInput | string[]
|
|
rateLimitPerMinute?: number
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type AdminLeadSourceUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
displayName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
defaultAssigneeAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
notifyAdminUserIds?: Prisma.AdminLeadSourceUpdatenotifyAdminUserIdsInput | string[]
|
|
rateLimitPerMinute?: Prisma.IntFieldUpdateOperationsInput | number
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type AdminLeadSourceUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
displayName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
defaultAssigneeAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
notifyAdminUserIds?: Prisma.AdminLeadSourceUpdatenotifyAdminUserIdsInput | string[]
|
|
rateLimitPerMinute?: Prisma.IntFieldUpdateOperationsInput | number
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type AdminLeadSourceCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
displayName?: Prisma.SortOrder
|
|
enabled?: Prisma.SortOrder
|
|
defaultAssigneeAdminUserId?: Prisma.SortOrder
|
|
notifyAdminUserIds?: Prisma.SortOrder
|
|
rateLimitPerMinute?: Prisma.SortOrder
|
|
metadata?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminLeadSourceAvgOrderByAggregateInput = {
|
|
rateLimitPerMinute?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminLeadSourceMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
displayName?: Prisma.SortOrder
|
|
enabled?: Prisma.SortOrder
|
|
defaultAssigneeAdminUserId?: Prisma.SortOrder
|
|
rateLimitPerMinute?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminLeadSourceMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
displayName?: Prisma.SortOrder
|
|
enabled?: Prisma.SortOrder
|
|
defaultAssigneeAdminUserId?: Prisma.SortOrder
|
|
rateLimitPerMinute?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminLeadSourceSumOrderByAggregateInput = {
|
|
rateLimitPerMinute?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminLeadSourceScalarRelationFilter = {
|
|
is?: Prisma.AdminLeadSourceWhereInput
|
|
isNot?: Prisma.AdminLeadSourceWhereInput
|
|
}
|
|
|
|
export type AdminLeadSourceCreatenotifyAdminUserIdsInput = {
|
|
set: string[]
|
|
}
|
|
|
|
export type AdminLeadSourceUpdatenotifyAdminUserIdsInput = {
|
|
set?: string[]
|
|
push?: string | string[]
|
|
}
|
|
|
|
export type AdminLeadSourceCreateNestedOneWithoutCredentialsInput = {
|
|
create?: Prisma.XOR<Prisma.AdminLeadSourceCreateWithoutCredentialsInput, Prisma.AdminLeadSourceUncheckedCreateWithoutCredentialsInput>
|
|
connectOrCreate?: Prisma.AdminLeadSourceCreateOrConnectWithoutCredentialsInput
|
|
connect?: Prisma.AdminLeadSourceWhereUniqueInput
|
|
}
|
|
|
|
export type AdminLeadSourceUpdateOneRequiredWithoutCredentialsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AdminLeadSourceCreateWithoutCredentialsInput, Prisma.AdminLeadSourceUncheckedCreateWithoutCredentialsInput>
|
|
connectOrCreate?: Prisma.AdminLeadSourceCreateOrConnectWithoutCredentialsInput
|
|
upsert?: Prisma.AdminLeadSourceUpsertWithoutCredentialsInput
|
|
connect?: Prisma.AdminLeadSourceWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.AdminLeadSourceUpdateToOneWithWhereWithoutCredentialsInput, Prisma.AdminLeadSourceUpdateWithoutCredentialsInput>, Prisma.AdminLeadSourceUncheckedUpdateWithoutCredentialsInput>
|
|
}
|
|
|
|
export type AdminLeadSourceCreateNestedOneWithoutLeadsInput = {
|
|
create?: Prisma.XOR<Prisma.AdminLeadSourceCreateWithoutLeadsInput, Prisma.AdminLeadSourceUncheckedCreateWithoutLeadsInput>
|
|
connectOrCreate?: Prisma.AdminLeadSourceCreateOrConnectWithoutLeadsInput
|
|
connect?: Prisma.AdminLeadSourceWhereUniqueInput
|
|
}
|
|
|
|
export type AdminLeadSourceUpdateOneRequiredWithoutLeadsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AdminLeadSourceCreateWithoutLeadsInput, Prisma.AdminLeadSourceUncheckedCreateWithoutLeadsInput>
|
|
connectOrCreate?: Prisma.AdminLeadSourceCreateOrConnectWithoutLeadsInput
|
|
upsert?: Prisma.AdminLeadSourceUpsertWithoutLeadsInput
|
|
connect?: Prisma.AdminLeadSourceWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.AdminLeadSourceUpdateToOneWithWhereWithoutLeadsInput, Prisma.AdminLeadSourceUpdateWithoutLeadsInput>, Prisma.AdminLeadSourceUncheckedUpdateWithoutLeadsInput>
|
|
}
|
|
|
|
export type AdminLeadSourceCreateWithoutCredentialsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
key: string
|
|
displayName: string
|
|
enabled?: boolean
|
|
defaultAssigneeAdminUserId?: string | null
|
|
notifyAdminUserIds?: Prisma.AdminLeadSourceCreatenotifyAdminUserIdsInput | string[]
|
|
rateLimitPerMinute?: number
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
leads?: Prisma.AdminLeadCreateNestedManyWithoutSourceInput
|
|
}
|
|
|
|
export type AdminLeadSourceUncheckedCreateWithoutCredentialsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
key: string
|
|
displayName: string
|
|
enabled?: boolean
|
|
defaultAssigneeAdminUserId?: string | null
|
|
notifyAdminUserIds?: Prisma.AdminLeadSourceCreatenotifyAdminUserIdsInput | string[]
|
|
rateLimitPerMinute?: number
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
leads?: Prisma.AdminLeadUncheckedCreateNestedManyWithoutSourceInput
|
|
}
|
|
|
|
export type AdminLeadSourceCreateOrConnectWithoutCredentialsInput = {
|
|
where: Prisma.AdminLeadSourceWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.AdminLeadSourceCreateWithoutCredentialsInput, Prisma.AdminLeadSourceUncheckedCreateWithoutCredentialsInput>
|
|
}
|
|
|
|
export type AdminLeadSourceUpsertWithoutCredentialsInput = {
|
|
update: Prisma.XOR<Prisma.AdminLeadSourceUpdateWithoutCredentialsInput, Prisma.AdminLeadSourceUncheckedUpdateWithoutCredentialsInput>
|
|
create: Prisma.XOR<Prisma.AdminLeadSourceCreateWithoutCredentialsInput, Prisma.AdminLeadSourceUncheckedCreateWithoutCredentialsInput>
|
|
where?: Prisma.AdminLeadSourceWhereInput
|
|
}
|
|
|
|
export type AdminLeadSourceUpdateToOneWithWhereWithoutCredentialsInput = {
|
|
where?: Prisma.AdminLeadSourceWhereInput
|
|
data: Prisma.XOR<Prisma.AdminLeadSourceUpdateWithoutCredentialsInput, Prisma.AdminLeadSourceUncheckedUpdateWithoutCredentialsInput>
|
|
}
|
|
|
|
export type AdminLeadSourceUpdateWithoutCredentialsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
displayName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
defaultAssigneeAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
notifyAdminUserIds?: Prisma.AdminLeadSourceUpdatenotifyAdminUserIdsInput | string[]
|
|
rateLimitPerMinute?: Prisma.IntFieldUpdateOperationsInput | number
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
leads?: Prisma.AdminLeadUpdateManyWithoutSourceNestedInput
|
|
}
|
|
|
|
export type AdminLeadSourceUncheckedUpdateWithoutCredentialsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
displayName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
defaultAssigneeAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
notifyAdminUserIds?: Prisma.AdminLeadSourceUpdatenotifyAdminUserIdsInput | string[]
|
|
rateLimitPerMinute?: Prisma.IntFieldUpdateOperationsInput | number
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
leads?: Prisma.AdminLeadUncheckedUpdateManyWithoutSourceNestedInput
|
|
}
|
|
|
|
export type AdminLeadSourceCreateWithoutLeadsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
key: string
|
|
displayName: string
|
|
enabled?: boolean
|
|
defaultAssigneeAdminUserId?: string | null
|
|
notifyAdminUserIds?: Prisma.AdminLeadSourceCreatenotifyAdminUserIdsInput | string[]
|
|
rateLimitPerMinute?: number
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
credentials?: Prisma.AdminLeadSourceCredentialCreateNestedManyWithoutSourceInput
|
|
}
|
|
|
|
export type AdminLeadSourceUncheckedCreateWithoutLeadsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
key: string
|
|
displayName: string
|
|
enabled?: boolean
|
|
defaultAssigneeAdminUserId?: string | null
|
|
notifyAdminUserIds?: Prisma.AdminLeadSourceCreatenotifyAdminUserIdsInput | string[]
|
|
rateLimitPerMinute?: number
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
credentials?: Prisma.AdminLeadSourceCredentialUncheckedCreateNestedManyWithoutSourceInput
|
|
}
|
|
|
|
export type AdminLeadSourceCreateOrConnectWithoutLeadsInput = {
|
|
where: Prisma.AdminLeadSourceWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.AdminLeadSourceCreateWithoutLeadsInput, Prisma.AdminLeadSourceUncheckedCreateWithoutLeadsInput>
|
|
}
|
|
|
|
export type AdminLeadSourceUpsertWithoutLeadsInput = {
|
|
update: Prisma.XOR<Prisma.AdminLeadSourceUpdateWithoutLeadsInput, Prisma.AdminLeadSourceUncheckedUpdateWithoutLeadsInput>
|
|
create: Prisma.XOR<Prisma.AdminLeadSourceCreateWithoutLeadsInput, Prisma.AdminLeadSourceUncheckedCreateWithoutLeadsInput>
|
|
where?: Prisma.AdminLeadSourceWhereInput
|
|
}
|
|
|
|
export type AdminLeadSourceUpdateToOneWithWhereWithoutLeadsInput = {
|
|
where?: Prisma.AdminLeadSourceWhereInput
|
|
data: Prisma.XOR<Prisma.AdminLeadSourceUpdateWithoutLeadsInput, Prisma.AdminLeadSourceUncheckedUpdateWithoutLeadsInput>
|
|
}
|
|
|
|
export type AdminLeadSourceUpdateWithoutLeadsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
displayName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
defaultAssigneeAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
notifyAdminUserIds?: Prisma.AdminLeadSourceUpdatenotifyAdminUserIdsInput | string[]
|
|
rateLimitPerMinute?: Prisma.IntFieldUpdateOperationsInput | number
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
credentials?: Prisma.AdminLeadSourceCredentialUpdateManyWithoutSourceNestedInput
|
|
}
|
|
|
|
export type AdminLeadSourceUncheckedUpdateWithoutLeadsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
displayName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
defaultAssigneeAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
notifyAdminUserIds?: Prisma.AdminLeadSourceUpdatenotifyAdminUserIdsInput | string[]
|
|
rateLimitPerMinute?: Prisma.IntFieldUpdateOperationsInput | number
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
credentials?: Prisma.AdminLeadSourceCredentialUncheckedUpdateManyWithoutSourceNestedInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type AdminLeadSourceCountOutputType
|
|
*/
|
|
|
|
export type AdminLeadSourceCountOutputType = {
|
|
leads: number
|
|
credentials: number
|
|
}
|
|
|
|
export type AdminLeadSourceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
leads?: boolean | AdminLeadSourceCountOutputTypeCountLeadsArgs
|
|
credentials?: boolean | AdminLeadSourceCountOutputTypeCountCredentialsArgs
|
|
}
|
|
|
|
/**
|
|
* AdminLeadSourceCountOutputType without action
|
|
*/
|
|
export type AdminLeadSourceCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminLeadSourceCountOutputType
|
|
*/
|
|
select?: Prisma.AdminLeadSourceCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* AdminLeadSourceCountOutputType without action
|
|
*/
|
|
export type AdminLeadSourceCountOutputTypeCountLeadsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AdminLeadWhereInput
|
|
}
|
|
|
|
/**
|
|
* AdminLeadSourceCountOutputType without action
|
|
*/
|
|
export type AdminLeadSourceCountOutputTypeCountCredentialsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AdminLeadSourceCredentialWhereInput
|
|
}
|
|
|
|
|
|
export type AdminLeadSourceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
key?: boolean
|
|
displayName?: boolean
|
|
enabled?: boolean
|
|
defaultAssigneeAdminUserId?: boolean
|
|
notifyAdminUserIds?: boolean
|
|
rateLimitPerMinute?: boolean
|
|
metadata?: boolean
|
|
leads?: boolean | Prisma.AdminLeadSource$leadsArgs<ExtArgs>
|
|
credentials?: boolean | Prisma.AdminLeadSource$credentialsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.AdminLeadSourceCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["adminLeadSource"]>
|
|
|
|
export type AdminLeadSourceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
key?: boolean
|
|
displayName?: boolean
|
|
enabled?: boolean
|
|
defaultAssigneeAdminUserId?: boolean
|
|
notifyAdminUserIds?: boolean
|
|
rateLimitPerMinute?: boolean
|
|
metadata?: boolean
|
|
}, ExtArgs["result"]["adminLeadSource"]>
|
|
|
|
export type AdminLeadSourceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
key?: boolean
|
|
displayName?: boolean
|
|
enabled?: boolean
|
|
defaultAssigneeAdminUserId?: boolean
|
|
notifyAdminUserIds?: boolean
|
|
rateLimitPerMinute?: boolean
|
|
metadata?: boolean
|
|
}, ExtArgs["result"]["adminLeadSource"]>
|
|
|
|
export type AdminLeadSourceSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
key?: boolean
|
|
displayName?: boolean
|
|
enabled?: boolean
|
|
defaultAssigneeAdminUserId?: boolean
|
|
notifyAdminUserIds?: boolean
|
|
rateLimitPerMinute?: boolean
|
|
metadata?: boolean
|
|
}
|
|
|
|
export type AdminLeadSourceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "key" | "displayName" | "enabled" | "defaultAssigneeAdminUserId" | "notifyAdminUserIds" | "rateLimitPerMinute" | "metadata", ExtArgs["result"]["adminLeadSource"]>
|
|
export type AdminLeadSourceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
leads?: boolean | Prisma.AdminLeadSource$leadsArgs<ExtArgs>
|
|
credentials?: boolean | Prisma.AdminLeadSource$credentialsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.AdminLeadSourceCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type AdminLeadSourceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
export type AdminLeadSourceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
|
|
export type $AdminLeadSourcePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "AdminLeadSource"
|
|
objects: {
|
|
leads: Prisma.$AdminLeadPayload<ExtArgs>[]
|
|
credentials: Prisma.$AdminLeadSourceCredentialPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
key: string
|
|
displayName: string
|
|
enabled: boolean
|
|
defaultAssigneeAdminUserId: string | null
|
|
notifyAdminUserIds: string[]
|
|
rateLimitPerMinute: number
|
|
metadata: runtime.JsonValue | null
|
|
}, ExtArgs["result"]["adminLeadSource"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type AdminLeadSourceGetPayload<S extends boolean | null | undefined | AdminLeadSourceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AdminLeadSourcePayload, S>
|
|
|
|
export type AdminLeadSourceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<AdminLeadSourceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: AdminLeadSourceCountAggregateInputType | true
|
|
}
|
|
|
|
export interface AdminLeadSourceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AdminLeadSource'], meta: { name: 'AdminLeadSource' } }
|
|
/**
|
|
* Find zero or one AdminLeadSource that matches the filter.
|
|
* @param {AdminLeadSourceFindUniqueArgs} args - Arguments to find a AdminLeadSource
|
|
* @example
|
|
* // Get one AdminLeadSource
|
|
* const adminLeadSource = await prisma.adminLeadSource.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends AdminLeadSourceFindUniqueArgs>(args: Prisma.SelectSubset<T, AdminLeadSourceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AdminLeadSourceClient<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourcePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one AdminLeadSource that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {AdminLeadSourceFindUniqueOrThrowArgs} args - Arguments to find a AdminLeadSource
|
|
* @example
|
|
* // Get one AdminLeadSource
|
|
* const adminLeadSource = await prisma.adminLeadSource.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends AdminLeadSourceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AdminLeadSourceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminLeadSourceClient<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourcePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first AdminLeadSource 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 {AdminLeadSourceFindFirstArgs} args - Arguments to find a AdminLeadSource
|
|
* @example
|
|
* // Get one AdminLeadSource
|
|
* const adminLeadSource = await prisma.adminLeadSource.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends AdminLeadSourceFindFirstArgs>(args?: Prisma.SelectSubset<T, AdminLeadSourceFindFirstArgs<ExtArgs>>): Prisma.Prisma__AdminLeadSourceClient<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourcePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first AdminLeadSource 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 {AdminLeadSourceFindFirstOrThrowArgs} args - Arguments to find a AdminLeadSource
|
|
* @example
|
|
* // Get one AdminLeadSource
|
|
* const adminLeadSource = await prisma.adminLeadSource.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends AdminLeadSourceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AdminLeadSourceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminLeadSourceClient<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourcePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more AdminLeadSources 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 {AdminLeadSourceFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all AdminLeadSources
|
|
* const adminLeadSources = await prisma.adminLeadSource.findMany()
|
|
*
|
|
* // Get first 10 AdminLeadSources
|
|
* const adminLeadSources = await prisma.adminLeadSource.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const adminLeadSourceWithIdOnly = await prisma.adminLeadSource.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends AdminLeadSourceFindManyArgs>(args?: Prisma.SelectSubset<T, AdminLeadSourceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourcePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a AdminLeadSource.
|
|
* @param {AdminLeadSourceCreateArgs} args - Arguments to create a AdminLeadSource.
|
|
* @example
|
|
* // Create one AdminLeadSource
|
|
* const AdminLeadSource = await prisma.adminLeadSource.create({
|
|
* data: {
|
|
* // ... data to create a AdminLeadSource
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends AdminLeadSourceCreateArgs>(args: Prisma.SelectSubset<T, AdminLeadSourceCreateArgs<ExtArgs>>): Prisma.Prisma__AdminLeadSourceClient<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourcePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many AdminLeadSources.
|
|
* @param {AdminLeadSourceCreateManyArgs} args - Arguments to create many AdminLeadSources.
|
|
* @example
|
|
* // Create many AdminLeadSources
|
|
* const adminLeadSource = await prisma.adminLeadSource.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends AdminLeadSourceCreateManyArgs>(args?: Prisma.SelectSubset<T, AdminLeadSourceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many AdminLeadSources and returns the data saved in the database.
|
|
* @param {AdminLeadSourceCreateManyAndReturnArgs} args - Arguments to create many AdminLeadSources.
|
|
* @example
|
|
* // Create many AdminLeadSources
|
|
* const adminLeadSource = await prisma.adminLeadSource.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many AdminLeadSources and only return the `id`
|
|
* const adminLeadSourceWithIdOnly = await prisma.adminLeadSource.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 AdminLeadSourceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AdminLeadSourceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourcePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a AdminLeadSource.
|
|
* @param {AdminLeadSourceDeleteArgs} args - Arguments to delete one AdminLeadSource.
|
|
* @example
|
|
* // Delete one AdminLeadSource
|
|
* const AdminLeadSource = await prisma.adminLeadSource.delete({
|
|
* where: {
|
|
* // ... filter to delete one AdminLeadSource
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends AdminLeadSourceDeleteArgs>(args: Prisma.SelectSubset<T, AdminLeadSourceDeleteArgs<ExtArgs>>): Prisma.Prisma__AdminLeadSourceClient<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourcePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one AdminLeadSource.
|
|
* @param {AdminLeadSourceUpdateArgs} args - Arguments to update one AdminLeadSource.
|
|
* @example
|
|
* // Update one AdminLeadSource
|
|
* const adminLeadSource = await prisma.adminLeadSource.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends AdminLeadSourceUpdateArgs>(args: Prisma.SelectSubset<T, AdminLeadSourceUpdateArgs<ExtArgs>>): Prisma.Prisma__AdminLeadSourceClient<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourcePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more AdminLeadSources.
|
|
* @param {AdminLeadSourceDeleteManyArgs} args - Arguments to filter AdminLeadSources to delete.
|
|
* @example
|
|
* // Delete a few AdminLeadSources
|
|
* const { count } = await prisma.adminLeadSource.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends AdminLeadSourceDeleteManyArgs>(args?: Prisma.SelectSubset<T, AdminLeadSourceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AdminLeadSources.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminLeadSourceUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many AdminLeadSources
|
|
* const adminLeadSource = await prisma.adminLeadSource.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends AdminLeadSourceUpdateManyArgs>(args: Prisma.SelectSubset<T, AdminLeadSourceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AdminLeadSources and returns the data updated in the database.
|
|
* @param {AdminLeadSourceUpdateManyAndReturnArgs} args - Arguments to update many AdminLeadSources.
|
|
* @example
|
|
* // Update many AdminLeadSources
|
|
* const adminLeadSource = await prisma.adminLeadSource.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more AdminLeadSources and only return the `id`
|
|
* const adminLeadSourceWithIdOnly = await prisma.adminLeadSource.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 AdminLeadSourceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AdminLeadSourceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourcePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one AdminLeadSource.
|
|
* @param {AdminLeadSourceUpsertArgs} args - Arguments to update or create a AdminLeadSource.
|
|
* @example
|
|
* // Update or create a AdminLeadSource
|
|
* const adminLeadSource = await prisma.adminLeadSource.upsert({
|
|
* create: {
|
|
* // ... data to create a AdminLeadSource
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the AdminLeadSource we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends AdminLeadSourceUpsertArgs>(args: Prisma.SelectSubset<T, AdminLeadSourceUpsertArgs<ExtArgs>>): Prisma.Prisma__AdminLeadSourceClient<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourcePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of AdminLeadSources.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminLeadSourceCountArgs} args - Arguments to filter AdminLeadSources to count.
|
|
* @example
|
|
* // Count the number of AdminLeadSources
|
|
* const count = await prisma.adminLeadSource.count({
|
|
* where: {
|
|
* // ... the filter for the AdminLeadSources we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends AdminLeadSourceCountArgs>(
|
|
args?: Prisma.Subset<T, AdminLeadSourceCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], AdminLeadSourceCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a AdminLeadSource.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminLeadSourceAggregateArgs} 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 AdminLeadSourceAggregateArgs>(args: Prisma.Subset<T, AdminLeadSourceAggregateArgs>): Prisma.PrismaPromise<GetAdminLeadSourceAggregateType<T>>
|
|
|
|
/**
|
|
* Group by AdminLeadSource.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminLeadSourceGroupByArgs} 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 AdminLeadSourceGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: AdminLeadSourceGroupByArgs['orderBy'] }
|
|
: { orderBy?: AdminLeadSourceGroupByArgs['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, AdminLeadSourceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminLeadSourceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the AdminLeadSource model
|
|
*/
|
|
readonly fields: AdminLeadSourceFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for AdminLeadSource.
|
|
* 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__AdminLeadSourceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
leads<T extends Prisma.AdminLeadSource$leadsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdminLeadSource$leadsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminLeadPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
credentials<T extends Prisma.AdminLeadSource$credentialsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdminLeadSource$credentialsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminLeadSourceCredentialPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<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 AdminLeadSource model
|
|
*/
|
|
export interface AdminLeadSourceFieldRefs {
|
|
readonly id: Prisma.FieldRef<"AdminLeadSource", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"AdminLeadSource", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"AdminLeadSource", 'DateTime'>
|
|
readonly key: Prisma.FieldRef<"AdminLeadSource", 'String'>
|
|
readonly displayName: Prisma.FieldRef<"AdminLeadSource", 'String'>
|
|
readonly enabled: Prisma.FieldRef<"AdminLeadSource", 'Boolean'>
|
|
readonly defaultAssigneeAdminUserId: Prisma.FieldRef<"AdminLeadSource", 'String'>
|
|
readonly notifyAdminUserIds: Prisma.FieldRef<"AdminLeadSource", 'String[]'>
|
|
readonly rateLimitPerMinute: Prisma.FieldRef<"AdminLeadSource", 'Int'>
|
|
readonly metadata: Prisma.FieldRef<"AdminLeadSource", 'Json'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* AdminLeadSource findUnique
|
|
*/
|
|
export type AdminLeadSourceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminLeadSource
|
|
*/
|
|
select?: Prisma.AdminLeadSourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminLeadSource
|
|
*/
|
|
omit?: Prisma.AdminLeadSourceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminLeadSourceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminLeadSource to fetch.
|
|
*/
|
|
where: Prisma.AdminLeadSourceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminLeadSource findUniqueOrThrow
|
|
*/
|
|
export type AdminLeadSourceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminLeadSource
|
|
*/
|
|
select?: Prisma.AdminLeadSourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminLeadSource
|
|
*/
|
|
omit?: Prisma.AdminLeadSourceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminLeadSourceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminLeadSource to fetch.
|
|
*/
|
|
where: Prisma.AdminLeadSourceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminLeadSource findFirst
|
|
*/
|
|
export type AdminLeadSourceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminLeadSource
|
|
*/
|
|
select?: Prisma.AdminLeadSourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminLeadSource
|
|
*/
|
|
omit?: Prisma.AdminLeadSourceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminLeadSourceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminLeadSource to fetch.
|
|
*/
|
|
where?: Prisma.AdminLeadSourceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminLeadSources to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminLeadSourceOrderByWithRelationInput | Prisma.AdminLeadSourceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AdminLeadSources.
|
|
*/
|
|
cursor?: Prisma.AdminLeadSourceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminLeadSources 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` AdminLeadSources.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AdminLeadSources.
|
|
*/
|
|
distinct?: Prisma.AdminLeadSourceScalarFieldEnum | Prisma.AdminLeadSourceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminLeadSource findFirstOrThrow
|
|
*/
|
|
export type AdminLeadSourceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminLeadSource
|
|
*/
|
|
select?: Prisma.AdminLeadSourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminLeadSource
|
|
*/
|
|
omit?: Prisma.AdminLeadSourceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminLeadSourceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminLeadSource to fetch.
|
|
*/
|
|
where?: Prisma.AdminLeadSourceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminLeadSources to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminLeadSourceOrderByWithRelationInput | Prisma.AdminLeadSourceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AdminLeadSources.
|
|
*/
|
|
cursor?: Prisma.AdminLeadSourceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminLeadSources 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` AdminLeadSources.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AdminLeadSources.
|
|
*/
|
|
distinct?: Prisma.AdminLeadSourceScalarFieldEnum | Prisma.AdminLeadSourceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminLeadSource findMany
|
|
*/
|
|
export type AdminLeadSourceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminLeadSource
|
|
*/
|
|
select?: Prisma.AdminLeadSourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminLeadSource
|
|
*/
|
|
omit?: Prisma.AdminLeadSourceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminLeadSourceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminLeadSources to fetch.
|
|
*/
|
|
where?: Prisma.AdminLeadSourceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminLeadSources to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminLeadSourceOrderByWithRelationInput | Prisma.AdminLeadSourceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing AdminLeadSources.
|
|
*/
|
|
cursor?: Prisma.AdminLeadSourceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminLeadSources 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` AdminLeadSources.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AdminLeadSources.
|
|
*/
|
|
distinct?: Prisma.AdminLeadSourceScalarFieldEnum | Prisma.AdminLeadSourceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminLeadSource create
|
|
*/
|
|
export type AdminLeadSourceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminLeadSource
|
|
*/
|
|
select?: Prisma.AdminLeadSourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminLeadSource
|
|
*/
|
|
omit?: Prisma.AdminLeadSourceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminLeadSourceInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a AdminLeadSource.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminLeadSourceCreateInput, Prisma.AdminLeadSourceUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* AdminLeadSource createMany
|
|
*/
|
|
export type AdminLeadSourceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many AdminLeadSources.
|
|
*/
|
|
data: Prisma.AdminLeadSourceCreateManyInput | Prisma.AdminLeadSourceCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* AdminLeadSource createManyAndReturn
|
|
*/
|
|
export type AdminLeadSourceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminLeadSource
|
|
*/
|
|
select?: Prisma.AdminLeadSourceSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminLeadSource
|
|
*/
|
|
omit?: Prisma.AdminLeadSourceOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many AdminLeadSources.
|
|
*/
|
|
data: Prisma.AdminLeadSourceCreateManyInput | Prisma.AdminLeadSourceCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* AdminLeadSource update
|
|
*/
|
|
export type AdminLeadSourceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminLeadSource
|
|
*/
|
|
select?: Prisma.AdminLeadSourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminLeadSource
|
|
*/
|
|
omit?: Prisma.AdminLeadSourceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminLeadSourceInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a AdminLeadSource.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminLeadSourceUpdateInput, Prisma.AdminLeadSourceUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which AdminLeadSource to update.
|
|
*/
|
|
where: Prisma.AdminLeadSourceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminLeadSource updateMany
|
|
*/
|
|
export type AdminLeadSourceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update AdminLeadSources.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminLeadSourceUpdateManyMutationInput, Prisma.AdminLeadSourceUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AdminLeadSources to update
|
|
*/
|
|
where?: Prisma.AdminLeadSourceWhereInput
|
|
/**
|
|
* Limit how many AdminLeadSources to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AdminLeadSource updateManyAndReturn
|
|
*/
|
|
export type AdminLeadSourceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminLeadSource
|
|
*/
|
|
select?: Prisma.AdminLeadSourceSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminLeadSource
|
|
*/
|
|
omit?: Prisma.AdminLeadSourceOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update AdminLeadSources.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminLeadSourceUpdateManyMutationInput, Prisma.AdminLeadSourceUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AdminLeadSources to update
|
|
*/
|
|
where?: Prisma.AdminLeadSourceWhereInput
|
|
/**
|
|
* Limit how many AdminLeadSources to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AdminLeadSource upsert
|
|
*/
|
|
export type AdminLeadSourceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminLeadSource
|
|
*/
|
|
select?: Prisma.AdminLeadSourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminLeadSource
|
|
*/
|
|
omit?: Prisma.AdminLeadSourceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminLeadSourceInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the AdminLeadSource to update in case it exists.
|
|
*/
|
|
where: Prisma.AdminLeadSourceWhereUniqueInput
|
|
/**
|
|
* In case the AdminLeadSource found by the `where` argument doesn't exist, create a new AdminLeadSource with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.AdminLeadSourceCreateInput, Prisma.AdminLeadSourceUncheckedCreateInput>
|
|
/**
|
|
* In case the AdminLeadSource was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.AdminLeadSourceUpdateInput, Prisma.AdminLeadSourceUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* AdminLeadSource delete
|
|
*/
|
|
export type AdminLeadSourceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminLeadSource
|
|
*/
|
|
select?: Prisma.AdminLeadSourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminLeadSource
|
|
*/
|
|
omit?: Prisma.AdminLeadSourceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminLeadSourceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which AdminLeadSource to delete.
|
|
*/
|
|
where: Prisma.AdminLeadSourceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminLeadSource deleteMany
|
|
*/
|
|
export type AdminLeadSourceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AdminLeadSources to delete
|
|
*/
|
|
where?: Prisma.AdminLeadSourceWhereInput
|
|
/**
|
|
* Limit how many AdminLeadSources to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AdminLeadSource.leads
|
|
*/
|
|
export type AdminLeadSource$leadsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminLead
|
|
*/
|
|
select?: Prisma.AdminLeadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminLead
|
|
*/
|
|
omit?: Prisma.AdminLeadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminLeadInclude<ExtArgs> | null
|
|
where?: Prisma.AdminLeadWhereInput
|
|
orderBy?: Prisma.AdminLeadOrderByWithRelationInput | Prisma.AdminLeadOrderByWithRelationInput[]
|
|
cursor?: Prisma.AdminLeadWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.AdminLeadScalarFieldEnum | Prisma.AdminLeadScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminLeadSource.credentials
|
|
*/
|
|
export type AdminLeadSource$credentialsArgs<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
|
|
where?: Prisma.AdminLeadSourceCredentialWhereInput
|
|
orderBy?: Prisma.AdminLeadSourceCredentialOrderByWithRelationInput | Prisma.AdminLeadSourceCredentialOrderByWithRelationInput[]
|
|
cursor?: Prisma.AdminLeadSourceCredentialWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.AdminLeadSourceCredentialScalarFieldEnum | Prisma.AdminLeadSourceCredentialScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminLeadSource without action
|
|
*/
|
|
export type AdminLeadSourceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminLeadSource
|
|
*/
|
|
select?: Prisma.AdminLeadSourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminLeadSource
|
|
*/
|
|
omit?: Prisma.AdminLeadSourceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminLeadSourceInclude<ExtArgs> | null
|
|
}
|