/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Profile` 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 Profile * */ export type ProfileModel = runtime.Types.Result.DefaultSelection export type AggregateProfile = { _count: ProfileCountAggregateOutputType | null _min: ProfileMinAggregateOutputType | null _max: ProfileMaxAggregateOutputType | null } export type ProfileMinAggregateOutputType = { id: string | null userId: string | null email: string | null firstName: string | null lastName: string | null phoneNumber: string | null ghlContactId: string | null } export type ProfileMaxAggregateOutputType = { id: string | null userId: string | null email: string | null firstName: string | null lastName: string | null phoneNumber: string | null ghlContactId: string | null } export type ProfileCountAggregateOutputType = { id: number userId: number email: number firstName: number lastName: number phoneNumber: number ghlContactId: number _all: number } export type ProfileMinAggregateInputType = { id?: true userId?: true email?: true firstName?: true lastName?: true phoneNumber?: true ghlContactId?: true } export type ProfileMaxAggregateInputType = { id?: true userId?: true email?: true firstName?: true lastName?: true phoneNumber?: true ghlContactId?: true } export type ProfileCountAggregateInputType = { id?: true userId?: true email?: true firstName?: true lastName?: true phoneNumber?: true ghlContactId?: true _all?: true } export type ProfileAggregateArgs = { /** * Filter which Profile to aggregate. */ where?: Prisma.ProfileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Profiles to fetch. */ orderBy?: Prisma.ProfileOrderByWithRelationInput | Prisma.ProfileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ProfileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Profiles 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` Profiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Profiles **/ _count?: true | ProfileCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ProfileMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ProfileMaxAggregateInputType } export type GetProfileAggregateType = { [P in keyof T & keyof AggregateProfile]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ProfileGroupByArgs = { where?: Prisma.ProfileWhereInput orderBy?: Prisma.ProfileOrderByWithAggregationInput | Prisma.ProfileOrderByWithAggregationInput[] by: Prisma.ProfileScalarFieldEnum[] | Prisma.ProfileScalarFieldEnum having?: Prisma.ProfileScalarWhereWithAggregatesInput take?: number skip?: number _count?: ProfileCountAggregateInputType | true _min?: ProfileMinAggregateInputType _max?: ProfileMaxAggregateInputType } export type ProfileGroupByOutputType = { id: string userId: string | null email: string | null firstName: string lastName: string phoneNumber: string ghlContactId: string | null _count: ProfileCountAggregateOutputType | null _min: ProfileMinAggregateOutputType | null _max: ProfileMaxAggregateOutputType | null } export type GetProfileGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ProfileGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ProfileWhereInput = { AND?: Prisma.ProfileWhereInput | Prisma.ProfileWhereInput[] OR?: Prisma.ProfileWhereInput[] NOT?: Prisma.ProfileWhereInput | Prisma.ProfileWhereInput[] id?: Prisma.StringFilter<"Profile"> | string userId?: Prisma.StringNullableFilter<"Profile"> | string | null email?: Prisma.StringNullableFilter<"Profile"> | string | null firstName?: Prisma.StringFilter<"Profile"> | string lastName?: Prisma.StringFilter<"Profile"> | string phoneNumber?: Prisma.StringFilter<"Profile"> | string ghlContactId?: Prisma.StringNullableFilter<"Profile"> | string | null user?: Prisma.XOR | null addresses?: Prisma.AddressListRelationFilter } export type ProfileOrderByWithRelationInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrderInput | Prisma.SortOrder email?: Prisma.SortOrderInput | Prisma.SortOrder firstName?: Prisma.SortOrder lastName?: Prisma.SortOrder phoneNumber?: Prisma.SortOrder ghlContactId?: Prisma.SortOrderInput | Prisma.SortOrder user?: Prisma.UserOrderByWithRelationInput addresses?: Prisma.AddressOrderByRelationAggregateInput } export type ProfileWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.ProfileWhereInput | Prisma.ProfileWhereInput[] OR?: Prisma.ProfileWhereInput[] NOT?: Prisma.ProfileWhereInput | Prisma.ProfileWhereInput[] userId?: Prisma.StringNullableFilter<"Profile"> | string | null email?: Prisma.StringNullableFilter<"Profile"> | string | null firstName?: Prisma.StringFilter<"Profile"> | string lastName?: Prisma.StringFilter<"Profile"> | string phoneNumber?: Prisma.StringFilter<"Profile"> | string ghlContactId?: Prisma.StringNullableFilter<"Profile"> | string | null user?: Prisma.XOR | null addresses?: Prisma.AddressListRelationFilter }, "id"> export type ProfileOrderByWithAggregationInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrderInput | Prisma.SortOrder email?: Prisma.SortOrderInput | Prisma.SortOrder firstName?: Prisma.SortOrder lastName?: Prisma.SortOrder phoneNumber?: Prisma.SortOrder ghlContactId?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.ProfileCountOrderByAggregateInput _max?: Prisma.ProfileMaxOrderByAggregateInput _min?: Prisma.ProfileMinOrderByAggregateInput } export type ProfileScalarWhereWithAggregatesInput = { AND?: Prisma.ProfileScalarWhereWithAggregatesInput | Prisma.ProfileScalarWhereWithAggregatesInput[] OR?: Prisma.ProfileScalarWhereWithAggregatesInput[] NOT?: Prisma.ProfileScalarWhereWithAggregatesInput | Prisma.ProfileScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Profile"> | string userId?: Prisma.StringNullableWithAggregatesFilter<"Profile"> | string | null email?: Prisma.StringNullableWithAggregatesFilter<"Profile"> | string | null firstName?: Prisma.StringWithAggregatesFilter<"Profile"> | string lastName?: Prisma.StringWithAggregatesFilter<"Profile"> | string phoneNumber?: Prisma.StringWithAggregatesFilter<"Profile"> | string ghlContactId?: Prisma.StringNullableWithAggregatesFilter<"Profile"> | string | null } export type ProfileCreateInput = { id?: string email?: string | null firstName: string lastName: string phoneNumber: string ghlContactId?: string | null user?: Prisma.UserCreateNestedOneWithoutProfilesInput addresses?: Prisma.AddressCreateNestedManyWithoutProfileInput } export type ProfileUncheckedCreateInput = { id?: string userId?: string | null email?: string | null firstName: string lastName: string phoneNumber: string ghlContactId?: string | null addresses?: Prisma.AddressUncheckedCreateNestedManyWithoutProfileInput } export type ProfileUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null firstName?: Prisma.StringFieldUpdateOperationsInput | string lastName?: Prisma.StringFieldUpdateOperationsInput | string phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string ghlContactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null user?: Prisma.UserUpdateOneWithoutProfilesNestedInput addresses?: Prisma.AddressUpdateManyWithoutProfileNestedInput } export type ProfileUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null firstName?: Prisma.StringFieldUpdateOperationsInput | string lastName?: Prisma.StringFieldUpdateOperationsInput | string phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string ghlContactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null addresses?: Prisma.AddressUncheckedUpdateManyWithoutProfileNestedInput } export type ProfileCreateManyInput = { id?: string userId?: string | null email?: string | null firstName: string lastName: string phoneNumber: string ghlContactId?: string | null } export type ProfileUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null firstName?: Prisma.StringFieldUpdateOperationsInput | string lastName?: Prisma.StringFieldUpdateOperationsInput | string phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string ghlContactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type ProfileUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null firstName?: Prisma.StringFieldUpdateOperationsInput | string lastName?: Prisma.StringFieldUpdateOperationsInput | string phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string ghlContactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type ProfileListRelationFilter = { every?: Prisma.ProfileWhereInput some?: Prisma.ProfileWhereInput none?: Prisma.ProfileWhereInput } export type ProfileOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type ProfileCountOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder email?: Prisma.SortOrder firstName?: Prisma.SortOrder lastName?: Prisma.SortOrder phoneNumber?: Prisma.SortOrder ghlContactId?: Prisma.SortOrder } export type ProfileMaxOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder email?: Prisma.SortOrder firstName?: Prisma.SortOrder lastName?: Prisma.SortOrder phoneNumber?: Prisma.SortOrder ghlContactId?: Prisma.SortOrder } export type ProfileMinOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder email?: Prisma.SortOrder firstName?: Prisma.SortOrder lastName?: Prisma.SortOrder phoneNumber?: Prisma.SortOrder ghlContactId?: Prisma.SortOrder } export type ProfileScalarRelationFilter = { is?: Prisma.ProfileWhereInput isNot?: Prisma.ProfileWhereInput } export type ProfileCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.ProfileCreateWithoutUserInput[] | Prisma.ProfileUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.ProfileCreateOrConnectWithoutUserInput | Prisma.ProfileCreateOrConnectWithoutUserInput[] createMany?: Prisma.ProfileCreateManyUserInputEnvelope connect?: Prisma.ProfileWhereUniqueInput | Prisma.ProfileWhereUniqueInput[] } export type ProfileUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.ProfileCreateWithoutUserInput[] | Prisma.ProfileUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.ProfileCreateOrConnectWithoutUserInput | Prisma.ProfileCreateOrConnectWithoutUserInput[] createMany?: Prisma.ProfileCreateManyUserInputEnvelope connect?: Prisma.ProfileWhereUniqueInput | Prisma.ProfileWhereUniqueInput[] } export type ProfileUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.ProfileCreateWithoutUserInput[] | Prisma.ProfileUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.ProfileCreateOrConnectWithoutUserInput | Prisma.ProfileCreateOrConnectWithoutUserInput[] upsert?: Prisma.ProfileUpsertWithWhereUniqueWithoutUserInput | Prisma.ProfileUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.ProfileCreateManyUserInputEnvelope set?: Prisma.ProfileWhereUniqueInput | Prisma.ProfileWhereUniqueInput[] disconnect?: Prisma.ProfileWhereUniqueInput | Prisma.ProfileWhereUniqueInput[] delete?: Prisma.ProfileWhereUniqueInput | Prisma.ProfileWhereUniqueInput[] connect?: Prisma.ProfileWhereUniqueInput | Prisma.ProfileWhereUniqueInput[] update?: Prisma.ProfileUpdateWithWhereUniqueWithoutUserInput | Prisma.ProfileUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.ProfileUpdateManyWithWhereWithoutUserInput | Prisma.ProfileUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.ProfileScalarWhereInput | Prisma.ProfileScalarWhereInput[] } export type ProfileUncheckedUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.ProfileCreateWithoutUserInput[] | Prisma.ProfileUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.ProfileCreateOrConnectWithoutUserInput | Prisma.ProfileCreateOrConnectWithoutUserInput[] upsert?: Prisma.ProfileUpsertWithWhereUniqueWithoutUserInput | Prisma.ProfileUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.ProfileCreateManyUserInputEnvelope set?: Prisma.ProfileWhereUniqueInput | Prisma.ProfileWhereUniqueInput[] disconnect?: Prisma.ProfileWhereUniqueInput | Prisma.ProfileWhereUniqueInput[] delete?: Prisma.ProfileWhereUniqueInput | Prisma.ProfileWhereUniqueInput[] connect?: Prisma.ProfileWhereUniqueInput | Prisma.ProfileWhereUniqueInput[] update?: Prisma.ProfileUpdateWithWhereUniqueWithoutUserInput | Prisma.ProfileUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.ProfileUpdateManyWithWhereWithoutUserInput | Prisma.ProfileUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.ProfileScalarWhereInput | Prisma.ProfileScalarWhereInput[] } export type ProfileCreateNestedOneWithoutAddressesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProfileCreateOrConnectWithoutAddressesInput connect?: Prisma.ProfileWhereUniqueInput } export type ProfileUpdateOneRequiredWithoutAddressesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProfileCreateOrConnectWithoutAddressesInput upsert?: Prisma.ProfileUpsertWithoutAddressesInput connect?: Prisma.ProfileWhereUniqueInput update?: Prisma.XOR, Prisma.ProfileUncheckedUpdateWithoutAddressesInput> } export type ProfileCreateWithoutUserInput = { id?: string email?: string | null firstName: string lastName: string phoneNumber: string ghlContactId?: string | null addresses?: Prisma.AddressCreateNestedManyWithoutProfileInput } export type ProfileUncheckedCreateWithoutUserInput = { id?: string email?: string | null firstName: string lastName: string phoneNumber: string ghlContactId?: string | null addresses?: Prisma.AddressUncheckedCreateNestedManyWithoutProfileInput } export type ProfileCreateOrConnectWithoutUserInput = { where: Prisma.ProfileWhereUniqueInput create: Prisma.XOR } export type ProfileCreateManyUserInputEnvelope = { data: Prisma.ProfileCreateManyUserInput | Prisma.ProfileCreateManyUserInput[] skipDuplicates?: boolean } export type ProfileUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.ProfileWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type ProfileUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.ProfileWhereUniqueInput data: Prisma.XOR } export type ProfileUpdateManyWithWhereWithoutUserInput = { where: Prisma.ProfileScalarWhereInput data: Prisma.XOR } export type ProfileScalarWhereInput = { AND?: Prisma.ProfileScalarWhereInput | Prisma.ProfileScalarWhereInput[] OR?: Prisma.ProfileScalarWhereInput[] NOT?: Prisma.ProfileScalarWhereInput | Prisma.ProfileScalarWhereInput[] id?: Prisma.StringFilter<"Profile"> | string userId?: Prisma.StringNullableFilter<"Profile"> | string | null email?: Prisma.StringNullableFilter<"Profile"> | string | null firstName?: Prisma.StringFilter<"Profile"> | string lastName?: Prisma.StringFilter<"Profile"> | string phoneNumber?: Prisma.StringFilter<"Profile"> | string ghlContactId?: Prisma.StringNullableFilter<"Profile"> | string | null } export type ProfileCreateWithoutAddressesInput = { id?: string email?: string | null firstName: string lastName: string phoneNumber: string ghlContactId?: string | null user?: Prisma.UserCreateNestedOneWithoutProfilesInput } export type ProfileUncheckedCreateWithoutAddressesInput = { id?: string userId?: string | null email?: string | null firstName: string lastName: string phoneNumber: string ghlContactId?: string | null } export type ProfileCreateOrConnectWithoutAddressesInput = { where: Prisma.ProfileWhereUniqueInput create: Prisma.XOR } export type ProfileUpsertWithoutAddressesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ProfileWhereInput } export type ProfileUpdateToOneWithWhereWithoutAddressesInput = { where?: Prisma.ProfileWhereInput data: Prisma.XOR } export type ProfileUpdateWithoutAddressesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null firstName?: Prisma.StringFieldUpdateOperationsInput | string lastName?: Prisma.StringFieldUpdateOperationsInput | string phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string ghlContactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null user?: Prisma.UserUpdateOneWithoutProfilesNestedInput } export type ProfileUncheckedUpdateWithoutAddressesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null firstName?: Prisma.StringFieldUpdateOperationsInput | string lastName?: Prisma.StringFieldUpdateOperationsInput | string phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string ghlContactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type ProfileCreateManyUserInput = { id?: string email?: string | null firstName: string lastName: string phoneNumber: string ghlContactId?: string | null } export type ProfileUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null firstName?: Prisma.StringFieldUpdateOperationsInput | string lastName?: Prisma.StringFieldUpdateOperationsInput | string phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string ghlContactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null addresses?: Prisma.AddressUpdateManyWithoutProfileNestedInput } export type ProfileUncheckedUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null firstName?: Prisma.StringFieldUpdateOperationsInput | string lastName?: Prisma.StringFieldUpdateOperationsInput | string phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string ghlContactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null addresses?: Prisma.AddressUncheckedUpdateManyWithoutProfileNestedInput } export type ProfileUncheckedUpdateManyWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null firstName?: Prisma.StringFieldUpdateOperationsInput | string lastName?: Prisma.StringFieldUpdateOperationsInput | string phoneNumber?: Prisma.StringFieldUpdateOperationsInput | string ghlContactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } /** * Count Type ProfileCountOutputType */ export type ProfileCountOutputType = { addresses: number } export type ProfileCountOutputTypeSelect = { addresses?: boolean | ProfileCountOutputTypeCountAddressesArgs } /** * ProfileCountOutputType without action */ export type ProfileCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ProfileCountOutputType */ select?: Prisma.ProfileCountOutputTypeSelect | null } /** * ProfileCountOutputType without action */ export type ProfileCountOutputTypeCountAddressesArgs = { where?: Prisma.AddressWhereInput } export type ProfileSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean email?: boolean firstName?: boolean lastName?: boolean phoneNumber?: boolean ghlContactId?: boolean user?: boolean | Prisma.Profile$userArgs addresses?: boolean | Prisma.Profile$addressesArgs _count?: boolean | Prisma.ProfileCountOutputTypeDefaultArgs }, ExtArgs["result"]["profile"]> export type ProfileSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean email?: boolean firstName?: boolean lastName?: boolean phoneNumber?: boolean ghlContactId?: boolean user?: boolean | Prisma.Profile$userArgs }, ExtArgs["result"]["profile"]> export type ProfileSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean email?: boolean firstName?: boolean lastName?: boolean phoneNumber?: boolean ghlContactId?: boolean user?: boolean | Prisma.Profile$userArgs }, ExtArgs["result"]["profile"]> export type ProfileSelectScalar = { id?: boolean userId?: boolean email?: boolean firstName?: boolean lastName?: boolean phoneNumber?: boolean ghlContactId?: boolean } export type ProfileOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "email" | "firstName" | "lastName" | "phoneNumber" | "ghlContactId", ExtArgs["result"]["profile"]> export type ProfileInclude = { user?: boolean | Prisma.Profile$userArgs addresses?: boolean | Prisma.Profile$addressesArgs _count?: boolean | Prisma.ProfileCountOutputTypeDefaultArgs } export type ProfileIncludeCreateManyAndReturn = { user?: boolean | Prisma.Profile$userArgs } export type ProfileIncludeUpdateManyAndReturn = { user?: boolean | Prisma.Profile$userArgs } export type $ProfilePayload = { name: "Profile" objects: { user: Prisma.$UserPayload | null addresses: Prisma.$AddressPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string userId: string | null email: string | null firstName: string lastName: string phoneNumber: string ghlContactId: string | null }, ExtArgs["result"]["profile"]> composites: {} } export type ProfileGetPayload = runtime.Types.Result.GetResult export type ProfileCountArgs = Omit & { select?: ProfileCountAggregateInputType | true } export interface ProfileDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Profile'], meta: { name: 'Profile' } } /** * Find zero or one Profile that matches the filter. * @param {ProfileFindUniqueArgs} args - Arguments to find a Profile * @example * // Get one Profile * const profile = await prisma.profile.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ProfileClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Profile that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ProfileFindUniqueOrThrowArgs} args - Arguments to find a Profile * @example * // Get one Profile * const profile = await prisma.profile.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ProfileClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Profile 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 {ProfileFindFirstArgs} args - Arguments to find a Profile * @example * // Get one Profile * const profile = await prisma.profile.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ProfileClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Profile 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 {ProfileFindFirstOrThrowArgs} args - Arguments to find a Profile * @example * // Get one Profile * const profile = await prisma.profile.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ProfileClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Profiles 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 {ProfileFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Profiles * const profiles = await prisma.profile.findMany() * * // Get first 10 Profiles * const profiles = await prisma.profile.findMany({ take: 10 }) * * // Only select the `id` * const profileWithIdOnly = await prisma.profile.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Profile. * @param {ProfileCreateArgs} args - Arguments to create a Profile. * @example * // Create one Profile * const Profile = await prisma.profile.create({ * data: { * // ... data to create a Profile * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ProfileClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Profiles. * @param {ProfileCreateManyArgs} args - Arguments to create many Profiles. * @example * // Create many Profiles * const profile = await prisma.profile.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Profiles and returns the data saved in the database. * @param {ProfileCreateManyAndReturnArgs} args - Arguments to create many Profiles. * @example * // Create many Profiles * const profile = await prisma.profile.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Profiles and only return the `id` * const profileWithIdOnly = await prisma.profile.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 Profile. * @param {ProfileDeleteArgs} args - Arguments to delete one Profile. * @example * // Delete one Profile * const Profile = await prisma.profile.delete({ * where: { * // ... filter to delete one Profile * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ProfileClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Profile. * @param {ProfileUpdateArgs} args - Arguments to update one Profile. * @example * // Update one Profile * const profile = await prisma.profile.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ProfileClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Profiles. * @param {ProfileDeleteManyArgs} args - Arguments to filter Profiles to delete. * @example * // Delete a few Profiles * const { count } = await prisma.profile.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Profiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProfileUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Profiles * const profile = await prisma.profile.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Profiles and returns the data updated in the database. * @param {ProfileUpdateManyAndReturnArgs} args - Arguments to update many Profiles. * @example * // Update many Profiles * const profile = await prisma.profile.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Profiles and only return the `id` * const profileWithIdOnly = await prisma.profile.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 Profile. * @param {ProfileUpsertArgs} args - Arguments to update or create a Profile. * @example * // Update or create a Profile * const profile = await prisma.profile.upsert({ * create: { * // ... data to create a Profile * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Profile we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ProfileClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Profiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProfileCountArgs} args - Arguments to filter Profiles to count. * @example * // Count the number of Profiles * const count = await prisma.profile.count({ * where: { * // ... the filter for the Profiles 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 Profile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProfileAggregateArgs} 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 Profile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProfileGroupByArgs} 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 ProfileGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ProfileGroupByArgs['orderBy'] } : { orderBy?: ProfileGroupByArgs['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 ? GetProfileGroupByPayload : Prisma.PrismaPromise /** * Fields of the Profile model */ readonly fields: ProfileFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Profile. * 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__ProfileClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> addresses = {}>(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 Profile model */ export interface ProfileFieldRefs { readonly id: Prisma.FieldRef<"Profile", 'String'> readonly userId: Prisma.FieldRef<"Profile", 'String'> readonly email: Prisma.FieldRef<"Profile", 'String'> readonly firstName: Prisma.FieldRef<"Profile", 'String'> readonly lastName: Prisma.FieldRef<"Profile", 'String'> readonly phoneNumber: Prisma.FieldRef<"Profile", 'String'> readonly ghlContactId: Prisma.FieldRef<"Profile", 'String'> } // Custom InputTypes /** * Profile findUnique */ export type ProfileFindUniqueArgs = { /** * Select specific fields to fetch from the Profile */ select?: Prisma.ProfileSelect | null /** * Omit specific fields from the Profile */ omit?: Prisma.ProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProfileInclude | null /** * Filter, which Profile to fetch. */ where: Prisma.ProfileWhereUniqueInput } /** * Profile findUniqueOrThrow */ export type ProfileFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Profile */ select?: Prisma.ProfileSelect | null /** * Omit specific fields from the Profile */ omit?: Prisma.ProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProfileInclude | null /** * Filter, which Profile to fetch. */ where: Prisma.ProfileWhereUniqueInput } /** * Profile findFirst */ export type ProfileFindFirstArgs = { /** * Select specific fields to fetch from the Profile */ select?: Prisma.ProfileSelect | null /** * Omit specific fields from the Profile */ omit?: Prisma.ProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProfileInclude | null /** * Filter, which Profile to fetch. */ where?: Prisma.ProfileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Profiles to fetch. */ orderBy?: Prisma.ProfileOrderByWithRelationInput | Prisma.ProfileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Profiles. */ cursor?: Prisma.ProfileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Profiles 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` Profiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Profiles. */ distinct?: Prisma.ProfileScalarFieldEnum | Prisma.ProfileScalarFieldEnum[] } /** * Profile findFirstOrThrow */ export type ProfileFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Profile */ select?: Prisma.ProfileSelect | null /** * Omit specific fields from the Profile */ omit?: Prisma.ProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProfileInclude | null /** * Filter, which Profile to fetch. */ where?: Prisma.ProfileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Profiles to fetch. */ orderBy?: Prisma.ProfileOrderByWithRelationInput | Prisma.ProfileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Profiles. */ cursor?: Prisma.ProfileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Profiles 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` Profiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Profiles. */ distinct?: Prisma.ProfileScalarFieldEnum | Prisma.ProfileScalarFieldEnum[] } /** * Profile findMany */ export type ProfileFindManyArgs = { /** * Select specific fields to fetch from the Profile */ select?: Prisma.ProfileSelect | null /** * Omit specific fields from the Profile */ omit?: Prisma.ProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProfileInclude | null /** * Filter, which Profiles to fetch. */ where?: Prisma.ProfileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Profiles to fetch. */ orderBy?: Prisma.ProfileOrderByWithRelationInput | Prisma.ProfileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Profiles. */ cursor?: Prisma.ProfileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Profiles 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` Profiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Profiles. */ distinct?: Prisma.ProfileScalarFieldEnum | Prisma.ProfileScalarFieldEnum[] } /** * Profile create */ export type ProfileCreateArgs = { /** * Select specific fields to fetch from the Profile */ select?: Prisma.ProfileSelect | null /** * Omit specific fields from the Profile */ omit?: Prisma.ProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProfileInclude | null /** * The data needed to create a Profile. */ data: Prisma.XOR } /** * Profile createMany */ export type ProfileCreateManyArgs = { /** * The data used to create many Profiles. */ data: Prisma.ProfileCreateManyInput | Prisma.ProfileCreateManyInput[] skipDuplicates?: boolean } /** * Profile createManyAndReturn */ export type ProfileCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Profile */ select?: Prisma.ProfileSelectCreateManyAndReturn | null /** * Omit specific fields from the Profile */ omit?: Prisma.ProfileOmit | null /** * The data used to create many Profiles. */ data: Prisma.ProfileCreateManyInput | Prisma.ProfileCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProfileIncludeCreateManyAndReturn | null } /** * Profile update */ export type ProfileUpdateArgs = { /** * Select specific fields to fetch from the Profile */ select?: Prisma.ProfileSelect | null /** * Omit specific fields from the Profile */ omit?: Prisma.ProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProfileInclude | null /** * The data needed to update a Profile. */ data: Prisma.XOR /** * Choose, which Profile to update. */ where: Prisma.ProfileWhereUniqueInput } /** * Profile updateMany */ export type ProfileUpdateManyArgs = { /** * The data used to update Profiles. */ data: Prisma.XOR /** * Filter which Profiles to update */ where?: Prisma.ProfileWhereInput /** * Limit how many Profiles to update. */ limit?: number } /** * Profile updateManyAndReturn */ export type ProfileUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Profile */ select?: Prisma.ProfileSelectUpdateManyAndReturn | null /** * Omit specific fields from the Profile */ omit?: Prisma.ProfileOmit | null /** * The data used to update Profiles. */ data: Prisma.XOR /** * Filter which Profiles to update */ where?: Prisma.ProfileWhereInput /** * Limit how many Profiles to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProfileIncludeUpdateManyAndReturn | null } /** * Profile upsert */ export type ProfileUpsertArgs = { /** * Select specific fields to fetch from the Profile */ select?: Prisma.ProfileSelect | null /** * Omit specific fields from the Profile */ omit?: Prisma.ProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProfileInclude | null /** * The filter to search for the Profile to update in case it exists. */ where: Prisma.ProfileWhereUniqueInput /** * In case the Profile found by the `where` argument doesn't exist, create a new Profile with this data. */ create: Prisma.XOR /** * In case the Profile was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Profile delete */ export type ProfileDeleteArgs = { /** * Select specific fields to fetch from the Profile */ select?: Prisma.ProfileSelect | null /** * Omit specific fields from the Profile */ omit?: Prisma.ProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProfileInclude | null /** * Filter which Profile to delete. */ where: Prisma.ProfileWhereUniqueInput } /** * Profile deleteMany */ export type ProfileDeleteManyArgs = { /** * Filter which Profiles to delete */ where?: Prisma.ProfileWhereInput /** * Limit how many Profiles to delete. */ limit?: number } /** * Profile.user */ export type Profile$userArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | null where?: Prisma.UserWhereInput } /** * Profile.addresses */ export type Profile$addressesArgs = { /** * Select specific fields to fetch from the Address */ select?: Prisma.AddressSelect | null /** * Omit specific fields from the Address */ omit?: Prisma.AddressOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AddressInclude | null where?: Prisma.AddressWhereInput orderBy?: Prisma.AddressOrderByWithRelationInput | Prisma.AddressOrderByWithRelationInput[] cursor?: Prisma.AddressWhereUniqueInput take?: number skip?: number distinct?: Prisma.AddressScalarFieldEnum | Prisma.AddressScalarFieldEnum[] } /** * Profile without action */ export type ProfileDefaultArgs = { /** * Select specific fields to fetch from the Profile */ select?: Prisma.ProfileSelect | null /** * Omit specific fields from the Profile */ omit?: Prisma.ProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProfileInclude | null }