/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateAdminLeadSource]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AdminLeadSourceGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AdminLeadSourceGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 connectOrCreate?: Prisma.AdminLeadSourceCreateOrConnectWithoutCredentialsInput connect?: Prisma.AdminLeadSourceWhereUniqueInput } export type AdminLeadSourceUpdateOneRequiredWithoutCredentialsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AdminLeadSourceCreateOrConnectWithoutCredentialsInput upsert?: Prisma.AdminLeadSourceUpsertWithoutCredentialsInput connect?: Prisma.AdminLeadSourceWhereUniqueInput update?: Prisma.XOR, Prisma.AdminLeadSourceUncheckedUpdateWithoutCredentialsInput> } export type AdminLeadSourceCreateNestedOneWithoutLeadsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AdminLeadSourceCreateOrConnectWithoutLeadsInput connect?: Prisma.AdminLeadSourceWhereUniqueInput } export type AdminLeadSourceUpdateOneRequiredWithoutLeadsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AdminLeadSourceCreateOrConnectWithoutLeadsInput upsert?: Prisma.AdminLeadSourceUpsertWithoutLeadsInput connect?: Prisma.AdminLeadSourceWhereUniqueInput update?: Prisma.XOR, 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 } export type AdminLeadSourceUpsertWithoutCredentialsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.AdminLeadSourceWhereInput } export type AdminLeadSourceUpdateToOneWithWhereWithoutCredentialsInput = { where?: Prisma.AdminLeadSourceWhereInput data: Prisma.XOR } 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 } export type AdminLeadSourceUpsertWithoutLeadsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.AdminLeadSourceWhereInput } export type AdminLeadSourceUpdateToOneWithWhereWithoutLeadsInput = { where?: Prisma.AdminLeadSourceWhereInput data: Prisma.XOR } 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 = { leads?: boolean | AdminLeadSourceCountOutputTypeCountLeadsArgs credentials?: boolean | AdminLeadSourceCountOutputTypeCountCredentialsArgs } /** * AdminLeadSourceCountOutputType without action */ export type AdminLeadSourceCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the AdminLeadSourceCountOutputType */ select?: Prisma.AdminLeadSourceCountOutputTypeSelect | null } /** * AdminLeadSourceCountOutputType without action */ export type AdminLeadSourceCountOutputTypeCountLeadsArgs = { where?: Prisma.AdminLeadWhereInput } /** * AdminLeadSourceCountOutputType without action */ export type AdminLeadSourceCountOutputTypeCountCredentialsArgs = { where?: Prisma.AdminLeadSourceCredentialWhereInput } export type AdminLeadSourceSelect = 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 credentials?: boolean | Prisma.AdminLeadSource$credentialsArgs _count?: boolean | Prisma.AdminLeadSourceCountOutputTypeDefaultArgs }, ExtArgs["result"]["adminLeadSource"]> export type AdminLeadSourceSelectCreateManyAndReturn = 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 = 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 = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "key" | "displayName" | "enabled" | "defaultAssigneeAdminUserId" | "notifyAdminUserIds" | "rateLimitPerMinute" | "metadata", ExtArgs["result"]["adminLeadSource"]> export type AdminLeadSourceInclude = { leads?: boolean | Prisma.AdminLeadSource$leadsArgs credentials?: boolean | Prisma.AdminLeadSource$credentialsArgs _count?: boolean | Prisma.AdminLeadSourceCountOutputTypeDefaultArgs } export type AdminLeadSourceIncludeCreateManyAndReturn = {} export type AdminLeadSourceIncludeUpdateManyAndReturn = {} export type $AdminLeadSourcePayload = { name: "AdminLeadSource" objects: { leads: Prisma.$AdminLeadPayload[] credentials: Prisma.$AdminLeadSourceCredentialPayload[] } 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 = runtime.Types.Result.GetResult export type AdminLeadSourceCountArgs = Omit & { select?: AdminLeadSourceCountAggregateInputType | true } export interface AdminLeadSourceDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__AdminLeadSourceClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__AdminLeadSourceClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__AdminLeadSourceClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__AdminLeadSourceClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__AdminLeadSourceClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__AdminLeadSourceClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__AdminLeadSourceClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__AdminLeadSourceClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AdminLeadSourceGroupByArgs['orderBy'] } : { orderBy?: AdminLeadSourceGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetAdminLeadSourceGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" leads = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> credentials = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the 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 = { /** * Select specific fields to fetch from the AdminLeadSource */ select?: Prisma.AdminLeadSourceSelect | null /** * Omit specific fields from the AdminLeadSource */ omit?: Prisma.AdminLeadSourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminLeadSourceInclude | null /** * Filter, which AdminLeadSource to fetch. */ where: Prisma.AdminLeadSourceWhereUniqueInput } /** * AdminLeadSource findUniqueOrThrow */ export type AdminLeadSourceFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AdminLeadSource */ select?: Prisma.AdminLeadSourceSelect | null /** * Omit specific fields from the AdminLeadSource */ omit?: Prisma.AdminLeadSourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminLeadSourceInclude | null /** * Filter, which AdminLeadSource to fetch. */ where: Prisma.AdminLeadSourceWhereUniqueInput } /** * AdminLeadSource findFirst */ export type AdminLeadSourceFindFirstArgs = { /** * Select specific fields to fetch from the AdminLeadSource */ select?: Prisma.AdminLeadSourceSelect | null /** * Omit specific fields from the AdminLeadSource */ omit?: Prisma.AdminLeadSourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminLeadSourceInclude | 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 = { /** * Select specific fields to fetch from the AdminLeadSource */ select?: Prisma.AdminLeadSourceSelect | null /** * Omit specific fields from the AdminLeadSource */ omit?: Prisma.AdminLeadSourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminLeadSourceInclude | 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 = { /** * Select specific fields to fetch from the AdminLeadSource */ select?: Prisma.AdminLeadSourceSelect | null /** * Omit specific fields from the AdminLeadSource */ omit?: Prisma.AdminLeadSourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminLeadSourceInclude | 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 = { /** * Select specific fields to fetch from the AdminLeadSource */ select?: Prisma.AdminLeadSourceSelect | null /** * Omit specific fields from the AdminLeadSource */ omit?: Prisma.AdminLeadSourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminLeadSourceInclude | null /** * The data needed to create a AdminLeadSource. */ data: Prisma.XOR } /** * AdminLeadSource createMany */ export type AdminLeadSourceCreateManyArgs = { /** * The data used to create many AdminLeadSources. */ data: Prisma.AdminLeadSourceCreateManyInput | Prisma.AdminLeadSourceCreateManyInput[] skipDuplicates?: boolean } /** * AdminLeadSource createManyAndReturn */ export type AdminLeadSourceCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AdminLeadSource */ select?: Prisma.AdminLeadSourceSelectCreateManyAndReturn | null /** * Omit specific fields from the AdminLeadSource */ omit?: Prisma.AdminLeadSourceOmit | null /** * The data used to create many AdminLeadSources. */ data: Prisma.AdminLeadSourceCreateManyInput | Prisma.AdminLeadSourceCreateManyInput[] skipDuplicates?: boolean } /** * AdminLeadSource update */ export type AdminLeadSourceUpdateArgs = { /** * Select specific fields to fetch from the AdminLeadSource */ select?: Prisma.AdminLeadSourceSelect | null /** * Omit specific fields from the AdminLeadSource */ omit?: Prisma.AdminLeadSourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminLeadSourceInclude | null /** * The data needed to update a AdminLeadSource. */ data: Prisma.XOR /** * Choose, which AdminLeadSource to update. */ where: Prisma.AdminLeadSourceWhereUniqueInput } /** * AdminLeadSource updateMany */ export type AdminLeadSourceUpdateManyArgs = { /** * The data used to update AdminLeadSources. */ data: Prisma.XOR /** * Filter which AdminLeadSources to update */ where?: Prisma.AdminLeadSourceWhereInput /** * Limit how many AdminLeadSources to update. */ limit?: number } /** * AdminLeadSource updateManyAndReturn */ export type AdminLeadSourceUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AdminLeadSource */ select?: Prisma.AdminLeadSourceSelectUpdateManyAndReturn | null /** * Omit specific fields from the AdminLeadSource */ omit?: Prisma.AdminLeadSourceOmit | null /** * The data used to update AdminLeadSources. */ data: Prisma.XOR /** * Filter which AdminLeadSources to update */ where?: Prisma.AdminLeadSourceWhereInput /** * Limit how many AdminLeadSources to update. */ limit?: number } /** * AdminLeadSource upsert */ export type AdminLeadSourceUpsertArgs = { /** * Select specific fields to fetch from the AdminLeadSource */ select?: Prisma.AdminLeadSourceSelect | null /** * Omit specific fields from the AdminLeadSource */ omit?: Prisma.AdminLeadSourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminLeadSourceInclude | 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 /** * In case the AdminLeadSource was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * AdminLeadSource delete */ export type AdminLeadSourceDeleteArgs = { /** * Select specific fields to fetch from the AdminLeadSource */ select?: Prisma.AdminLeadSourceSelect | null /** * Omit specific fields from the AdminLeadSource */ omit?: Prisma.AdminLeadSourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminLeadSourceInclude | null /** * Filter which AdminLeadSource to delete. */ where: Prisma.AdminLeadSourceWhereUniqueInput } /** * AdminLeadSource deleteMany */ export type AdminLeadSourceDeleteManyArgs = { /** * Filter which AdminLeadSources to delete */ where?: Prisma.AdminLeadSourceWhereInput /** * Limit how many AdminLeadSources to delete. */ limit?: number } /** * AdminLeadSource.leads */ export type AdminLeadSource$leadsArgs = { /** * Select specific fields to fetch from the AdminLead */ select?: Prisma.AdminLeadSelect | null /** * Omit specific fields from the AdminLead */ omit?: Prisma.AdminLeadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminLeadInclude | 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 = { /** * Select specific fields to fetch from the AdminLeadSourceCredential */ select?: Prisma.AdminLeadSourceCredentialSelect | null /** * Omit specific fields from the AdminLeadSourceCredential */ omit?: Prisma.AdminLeadSourceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminLeadSourceCredentialInclude | 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 = { /** * Select specific fields to fetch from the AdminLeadSource */ select?: Prisma.AdminLeadSourceSelect | null /** * Omit specific fields from the AdminLeadSource */ omit?: Prisma.AdminLeadSourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminLeadSourceInclude | null }