/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Address` 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 Address * */ export type AddressModel = runtime.Types.Result.DefaultSelection export type AggregateAddress = { _count: AddressCountAggregateOutputType | null _min: AddressMinAggregateOutputType | null _max: AddressMaxAggregateOutputType | null } export type AddressMinAggregateOutputType = { id: string | null profileId: string | null street: string | null city: string | null state: string | null postalCode: string | null country: string | null type: string | null isDefaultMailing: boolean | null isDefaultBilling: boolean | null isDefaultShipping: boolean | null } export type AddressMaxAggregateOutputType = { id: string | null profileId: string | null street: string | null city: string | null state: string | null postalCode: string | null country: string | null type: string | null isDefaultMailing: boolean | null isDefaultBilling: boolean | null isDefaultShipping: boolean | null } export type AddressCountAggregateOutputType = { id: number profileId: number street: number city: number state: number postalCode: number country: number type: number isDefaultMailing: number isDefaultBilling: number isDefaultShipping: number _all: number } export type AddressMinAggregateInputType = { id?: true profileId?: true street?: true city?: true state?: true postalCode?: true country?: true type?: true isDefaultMailing?: true isDefaultBilling?: true isDefaultShipping?: true } export type AddressMaxAggregateInputType = { id?: true profileId?: true street?: true city?: true state?: true postalCode?: true country?: true type?: true isDefaultMailing?: true isDefaultBilling?: true isDefaultShipping?: true } export type AddressCountAggregateInputType = { id?: true profileId?: true street?: true city?: true state?: true postalCode?: true country?: true type?: true isDefaultMailing?: true isDefaultBilling?: true isDefaultShipping?: true _all?: true } export type AddressAggregateArgs = { /** * Filter which Address to aggregate. */ where?: Prisma.AddressWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Addresses to fetch. */ orderBy?: Prisma.AddressOrderByWithRelationInput | Prisma.AddressOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AddressWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Addresses 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` Addresses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Addresses **/ _count?: true | AddressCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AddressMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AddressMaxAggregateInputType } export type GetAddressAggregateType = { [P in keyof T & keyof AggregateAddress]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AddressGroupByArgs = { where?: Prisma.AddressWhereInput orderBy?: Prisma.AddressOrderByWithAggregationInput | Prisma.AddressOrderByWithAggregationInput[] by: Prisma.AddressScalarFieldEnum[] | Prisma.AddressScalarFieldEnum having?: Prisma.AddressScalarWhereWithAggregatesInput take?: number skip?: number _count?: AddressCountAggregateInputType | true _min?: AddressMinAggregateInputType _max?: AddressMaxAggregateInputType } export type AddressGroupByOutputType = { id: string profileId: string street: string city: string state: string postalCode: string country: string type: string isDefaultMailing: boolean isDefaultBilling: boolean isDefaultShipping: boolean _count: AddressCountAggregateOutputType | null _min: AddressMinAggregateOutputType | null _max: AddressMaxAggregateOutputType | null } export type GetAddressGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AddressGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AddressWhereInput = { AND?: Prisma.AddressWhereInput | Prisma.AddressWhereInput[] OR?: Prisma.AddressWhereInput[] NOT?: Prisma.AddressWhereInput | Prisma.AddressWhereInput[] id?: Prisma.StringFilter<"Address"> | string profileId?: Prisma.StringFilter<"Address"> | string street?: Prisma.StringFilter<"Address"> | string city?: Prisma.StringFilter<"Address"> | string state?: Prisma.StringFilter<"Address"> | string postalCode?: Prisma.StringFilter<"Address"> | string country?: Prisma.StringFilter<"Address"> | string type?: Prisma.StringFilter<"Address"> | string isDefaultMailing?: Prisma.BoolFilter<"Address"> | boolean isDefaultBilling?: Prisma.BoolFilter<"Address"> | boolean isDefaultShipping?: Prisma.BoolFilter<"Address"> | boolean profile?: Prisma.XOR } export type AddressOrderByWithRelationInput = { id?: Prisma.SortOrder profileId?: Prisma.SortOrder street?: Prisma.SortOrder city?: Prisma.SortOrder state?: Prisma.SortOrder postalCode?: Prisma.SortOrder country?: Prisma.SortOrder type?: Prisma.SortOrder isDefaultMailing?: Prisma.SortOrder isDefaultBilling?: Prisma.SortOrder isDefaultShipping?: Prisma.SortOrder profile?: Prisma.ProfileOrderByWithRelationInput } export type AddressWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.AddressWhereInput | Prisma.AddressWhereInput[] OR?: Prisma.AddressWhereInput[] NOT?: Prisma.AddressWhereInput | Prisma.AddressWhereInput[] profileId?: Prisma.StringFilter<"Address"> | string street?: Prisma.StringFilter<"Address"> | string city?: Prisma.StringFilter<"Address"> | string state?: Prisma.StringFilter<"Address"> | string postalCode?: Prisma.StringFilter<"Address"> | string country?: Prisma.StringFilter<"Address"> | string type?: Prisma.StringFilter<"Address"> | string isDefaultMailing?: Prisma.BoolFilter<"Address"> | boolean isDefaultBilling?: Prisma.BoolFilter<"Address"> | boolean isDefaultShipping?: Prisma.BoolFilter<"Address"> | boolean profile?: Prisma.XOR }, "id"> export type AddressOrderByWithAggregationInput = { id?: Prisma.SortOrder profileId?: Prisma.SortOrder street?: Prisma.SortOrder city?: Prisma.SortOrder state?: Prisma.SortOrder postalCode?: Prisma.SortOrder country?: Prisma.SortOrder type?: Prisma.SortOrder isDefaultMailing?: Prisma.SortOrder isDefaultBilling?: Prisma.SortOrder isDefaultShipping?: Prisma.SortOrder _count?: Prisma.AddressCountOrderByAggregateInput _max?: Prisma.AddressMaxOrderByAggregateInput _min?: Prisma.AddressMinOrderByAggregateInput } export type AddressScalarWhereWithAggregatesInput = { AND?: Prisma.AddressScalarWhereWithAggregatesInput | Prisma.AddressScalarWhereWithAggregatesInput[] OR?: Prisma.AddressScalarWhereWithAggregatesInput[] NOT?: Prisma.AddressScalarWhereWithAggregatesInput | Prisma.AddressScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Address"> | string profileId?: Prisma.StringWithAggregatesFilter<"Address"> | string street?: Prisma.StringWithAggregatesFilter<"Address"> | string city?: Prisma.StringWithAggregatesFilter<"Address"> | string state?: Prisma.StringWithAggregatesFilter<"Address"> | string postalCode?: Prisma.StringWithAggregatesFilter<"Address"> | string country?: Prisma.StringWithAggregatesFilter<"Address"> | string type?: Prisma.StringWithAggregatesFilter<"Address"> | string isDefaultMailing?: Prisma.BoolWithAggregatesFilter<"Address"> | boolean isDefaultBilling?: Prisma.BoolWithAggregatesFilter<"Address"> | boolean isDefaultShipping?: Prisma.BoolWithAggregatesFilter<"Address"> | boolean } export type AddressCreateInput = { id?: string street: string city: string state: string postalCode: string country: string type?: string isDefaultMailing?: boolean isDefaultBilling?: boolean isDefaultShipping?: boolean profile: Prisma.ProfileCreateNestedOneWithoutAddressesInput } export type AddressUncheckedCreateInput = { id?: string profileId: string street: string city: string state: string postalCode: string country: string type?: string isDefaultMailing?: boolean isDefaultBilling?: boolean isDefaultShipping?: boolean } export type AddressUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string street?: Prisma.StringFieldUpdateOperationsInput | string city?: Prisma.StringFieldUpdateOperationsInput | string state?: Prisma.StringFieldUpdateOperationsInput | string postalCode?: Prisma.StringFieldUpdateOperationsInput | string country?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string isDefaultMailing?: Prisma.BoolFieldUpdateOperationsInput | boolean isDefaultBilling?: Prisma.BoolFieldUpdateOperationsInput | boolean isDefaultShipping?: Prisma.BoolFieldUpdateOperationsInput | boolean profile?: Prisma.ProfileUpdateOneRequiredWithoutAddressesNestedInput } export type AddressUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string profileId?: Prisma.StringFieldUpdateOperationsInput | string street?: Prisma.StringFieldUpdateOperationsInput | string city?: Prisma.StringFieldUpdateOperationsInput | string state?: Prisma.StringFieldUpdateOperationsInput | string postalCode?: Prisma.StringFieldUpdateOperationsInput | string country?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string isDefaultMailing?: Prisma.BoolFieldUpdateOperationsInput | boolean isDefaultBilling?: Prisma.BoolFieldUpdateOperationsInput | boolean isDefaultShipping?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type AddressCreateManyInput = { id?: string profileId: string street: string city: string state: string postalCode: string country: string type?: string isDefaultMailing?: boolean isDefaultBilling?: boolean isDefaultShipping?: boolean } export type AddressUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string street?: Prisma.StringFieldUpdateOperationsInput | string city?: Prisma.StringFieldUpdateOperationsInput | string state?: Prisma.StringFieldUpdateOperationsInput | string postalCode?: Prisma.StringFieldUpdateOperationsInput | string country?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string isDefaultMailing?: Prisma.BoolFieldUpdateOperationsInput | boolean isDefaultBilling?: Prisma.BoolFieldUpdateOperationsInput | boolean isDefaultShipping?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type AddressUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string profileId?: Prisma.StringFieldUpdateOperationsInput | string street?: Prisma.StringFieldUpdateOperationsInput | string city?: Prisma.StringFieldUpdateOperationsInput | string state?: Prisma.StringFieldUpdateOperationsInput | string postalCode?: Prisma.StringFieldUpdateOperationsInput | string country?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string isDefaultMailing?: Prisma.BoolFieldUpdateOperationsInput | boolean isDefaultBilling?: Prisma.BoolFieldUpdateOperationsInput | boolean isDefaultShipping?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type AddressListRelationFilter = { every?: Prisma.AddressWhereInput some?: Prisma.AddressWhereInput none?: Prisma.AddressWhereInput } export type AddressOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type AddressCountOrderByAggregateInput = { id?: Prisma.SortOrder profileId?: Prisma.SortOrder street?: Prisma.SortOrder city?: Prisma.SortOrder state?: Prisma.SortOrder postalCode?: Prisma.SortOrder country?: Prisma.SortOrder type?: Prisma.SortOrder isDefaultMailing?: Prisma.SortOrder isDefaultBilling?: Prisma.SortOrder isDefaultShipping?: Prisma.SortOrder } export type AddressMaxOrderByAggregateInput = { id?: Prisma.SortOrder profileId?: Prisma.SortOrder street?: Prisma.SortOrder city?: Prisma.SortOrder state?: Prisma.SortOrder postalCode?: Prisma.SortOrder country?: Prisma.SortOrder type?: Prisma.SortOrder isDefaultMailing?: Prisma.SortOrder isDefaultBilling?: Prisma.SortOrder isDefaultShipping?: Prisma.SortOrder } export type AddressMinOrderByAggregateInput = { id?: Prisma.SortOrder profileId?: Prisma.SortOrder street?: Prisma.SortOrder city?: Prisma.SortOrder state?: Prisma.SortOrder postalCode?: Prisma.SortOrder country?: Prisma.SortOrder type?: Prisma.SortOrder isDefaultMailing?: Prisma.SortOrder isDefaultBilling?: Prisma.SortOrder isDefaultShipping?: Prisma.SortOrder } export type AddressCreateNestedManyWithoutProfileInput = { create?: Prisma.XOR | Prisma.AddressCreateWithoutProfileInput[] | Prisma.AddressUncheckedCreateWithoutProfileInput[] connectOrCreate?: Prisma.AddressCreateOrConnectWithoutProfileInput | Prisma.AddressCreateOrConnectWithoutProfileInput[] createMany?: Prisma.AddressCreateManyProfileInputEnvelope connect?: Prisma.AddressWhereUniqueInput | Prisma.AddressWhereUniqueInput[] } export type AddressUncheckedCreateNestedManyWithoutProfileInput = { create?: Prisma.XOR | Prisma.AddressCreateWithoutProfileInput[] | Prisma.AddressUncheckedCreateWithoutProfileInput[] connectOrCreate?: Prisma.AddressCreateOrConnectWithoutProfileInput | Prisma.AddressCreateOrConnectWithoutProfileInput[] createMany?: Prisma.AddressCreateManyProfileInputEnvelope connect?: Prisma.AddressWhereUniqueInput | Prisma.AddressWhereUniqueInput[] } export type AddressUpdateManyWithoutProfileNestedInput = { create?: Prisma.XOR | Prisma.AddressCreateWithoutProfileInput[] | Prisma.AddressUncheckedCreateWithoutProfileInput[] connectOrCreate?: Prisma.AddressCreateOrConnectWithoutProfileInput | Prisma.AddressCreateOrConnectWithoutProfileInput[] upsert?: Prisma.AddressUpsertWithWhereUniqueWithoutProfileInput | Prisma.AddressUpsertWithWhereUniqueWithoutProfileInput[] createMany?: Prisma.AddressCreateManyProfileInputEnvelope set?: Prisma.AddressWhereUniqueInput | Prisma.AddressWhereUniqueInput[] disconnect?: Prisma.AddressWhereUniqueInput | Prisma.AddressWhereUniqueInput[] delete?: Prisma.AddressWhereUniqueInput | Prisma.AddressWhereUniqueInput[] connect?: Prisma.AddressWhereUniqueInput | Prisma.AddressWhereUniqueInput[] update?: Prisma.AddressUpdateWithWhereUniqueWithoutProfileInput | Prisma.AddressUpdateWithWhereUniqueWithoutProfileInput[] updateMany?: Prisma.AddressUpdateManyWithWhereWithoutProfileInput | Prisma.AddressUpdateManyWithWhereWithoutProfileInput[] deleteMany?: Prisma.AddressScalarWhereInput | Prisma.AddressScalarWhereInput[] } export type AddressUncheckedUpdateManyWithoutProfileNestedInput = { create?: Prisma.XOR | Prisma.AddressCreateWithoutProfileInput[] | Prisma.AddressUncheckedCreateWithoutProfileInput[] connectOrCreate?: Prisma.AddressCreateOrConnectWithoutProfileInput | Prisma.AddressCreateOrConnectWithoutProfileInput[] upsert?: Prisma.AddressUpsertWithWhereUniqueWithoutProfileInput | Prisma.AddressUpsertWithWhereUniqueWithoutProfileInput[] createMany?: Prisma.AddressCreateManyProfileInputEnvelope set?: Prisma.AddressWhereUniqueInput | Prisma.AddressWhereUniqueInput[] disconnect?: Prisma.AddressWhereUniqueInput | Prisma.AddressWhereUniqueInput[] delete?: Prisma.AddressWhereUniqueInput | Prisma.AddressWhereUniqueInput[] connect?: Prisma.AddressWhereUniqueInput | Prisma.AddressWhereUniqueInput[] update?: Prisma.AddressUpdateWithWhereUniqueWithoutProfileInput | Prisma.AddressUpdateWithWhereUniqueWithoutProfileInput[] updateMany?: Prisma.AddressUpdateManyWithWhereWithoutProfileInput | Prisma.AddressUpdateManyWithWhereWithoutProfileInput[] deleteMany?: Prisma.AddressScalarWhereInput | Prisma.AddressScalarWhereInput[] } export type AddressCreateWithoutProfileInput = { id?: string street: string city: string state: string postalCode: string country: string type?: string isDefaultMailing?: boolean isDefaultBilling?: boolean isDefaultShipping?: boolean } export type AddressUncheckedCreateWithoutProfileInput = { id?: string street: string city: string state: string postalCode: string country: string type?: string isDefaultMailing?: boolean isDefaultBilling?: boolean isDefaultShipping?: boolean } export type AddressCreateOrConnectWithoutProfileInput = { where: Prisma.AddressWhereUniqueInput create: Prisma.XOR } export type AddressCreateManyProfileInputEnvelope = { data: Prisma.AddressCreateManyProfileInput | Prisma.AddressCreateManyProfileInput[] skipDuplicates?: boolean } export type AddressUpsertWithWhereUniqueWithoutProfileInput = { where: Prisma.AddressWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type AddressUpdateWithWhereUniqueWithoutProfileInput = { where: Prisma.AddressWhereUniqueInput data: Prisma.XOR } export type AddressUpdateManyWithWhereWithoutProfileInput = { where: Prisma.AddressScalarWhereInput data: Prisma.XOR } export type AddressScalarWhereInput = { AND?: Prisma.AddressScalarWhereInput | Prisma.AddressScalarWhereInput[] OR?: Prisma.AddressScalarWhereInput[] NOT?: Prisma.AddressScalarWhereInput | Prisma.AddressScalarWhereInput[] id?: Prisma.StringFilter<"Address"> | string profileId?: Prisma.StringFilter<"Address"> | string street?: Prisma.StringFilter<"Address"> | string city?: Prisma.StringFilter<"Address"> | string state?: Prisma.StringFilter<"Address"> | string postalCode?: Prisma.StringFilter<"Address"> | string country?: Prisma.StringFilter<"Address"> | string type?: Prisma.StringFilter<"Address"> | string isDefaultMailing?: Prisma.BoolFilter<"Address"> | boolean isDefaultBilling?: Prisma.BoolFilter<"Address"> | boolean isDefaultShipping?: Prisma.BoolFilter<"Address"> | boolean } export type AddressCreateManyProfileInput = { id?: string street: string city: string state: string postalCode: string country: string type?: string isDefaultMailing?: boolean isDefaultBilling?: boolean isDefaultShipping?: boolean } export type AddressUpdateWithoutProfileInput = { id?: Prisma.StringFieldUpdateOperationsInput | string street?: Prisma.StringFieldUpdateOperationsInput | string city?: Prisma.StringFieldUpdateOperationsInput | string state?: Prisma.StringFieldUpdateOperationsInput | string postalCode?: Prisma.StringFieldUpdateOperationsInput | string country?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string isDefaultMailing?: Prisma.BoolFieldUpdateOperationsInput | boolean isDefaultBilling?: Prisma.BoolFieldUpdateOperationsInput | boolean isDefaultShipping?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type AddressUncheckedUpdateWithoutProfileInput = { id?: Prisma.StringFieldUpdateOperationsInput | string street?: Prisma.StringFieldUpdateOperationsInput | string city?: Prisma.StringFieldUpdateOperationsInput | string state?: Prisma.StringFieldUpdateOperationsInput | string postalCode?: Prisma.StringFieldUpdateOperationsInput | string country?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string isDefaultMailing?: Prisma.BoolFieldUpdateOperationsInput | boolean isDefaultBilling?: Prisma.BoolFieldUpdateOperationsInput | boolean isDefaultShipping?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type AddressUncheckedUpdateManyWithoutProfileInput = { id?: Prisma.StringFieldUpdateOperationsInput | string street?: Prisma.StringFieldUpdateOperationsInput | string city?: Prisma.StringFieldUpdateOperationsInput | string state?: Prisma.StringFieldUpdateOperationsInput | string postalCode?: Prisma.StringFieldUpdateOperationsInput | string country?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string isDefaultMailing?: Prisma.BoolFieldUpdateOperationsInput | boolean isDefaultBilling?: Prisma.BoolFieldUpdateOperationsInput | boolean isDefaultShipping?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type AddressSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean profileId?: boolean street?: boolean city?: boolean state?: boolean postalCode?: boolean country?: boolean type?: boolean isDefaultMailing?: boolean isDefaultBilling?: boolean isDefaultShipping?: boolean profile?: boolean | Prisma.ProfileDefaultArgs }, ExtArgs["result"]["address"]> export type AddressSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean profileId?: boolean street?: boolean city?: boolean state?: boolean postalCode?: boolean country?: boolean type?: boolean isDefaultMailing?: boolean isDefaultBilling?: boolean isDefaultShipping?: boolean profile?: boolean | Prisma.ProfileDefaultArgs }, ExtArgs["result"]["address"]> export type AddressSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean profileId?: boolean street?: boolean city?: boolean state?: boolean postalCode?: boolean country?: boolean type?: boolean isDefaultMailing?: boolean isDefaultBilling?: boolean isDefaultShipping?: boolean profile?: boolean | Prisma.ProfileDefaultArgs }, ExtArgs["result"]["address"]> export type AddressSelectScalar = { id?: boolean profileId?: boolean street?: boolean city?: boolean state?: boolean postalCode?: boolean country?: boolean type?: boolean isDefaultMailing?: boolean isDefaultBilling?: boolean isDefaultShipping?: boolean } export type AddressOmit = runtime.Types.Extensions.GetOmit<"id" | "profileId" | "street" | "city" | "state" | "postalCode" | "country" | "type" | "isDefaultMailing" | "isDefaultBilling" | "isDefaultShipping", ExtArgs["result"]["address"]> export type AddressInclude = { profile?: boolean | Prisma.ProfileDefaultArgs } export type AddressIncludeCreateManyAndReturn = { profile?: boolean | Prisma.ProfileDefaultArgs } export type AddressIncludeUpdateManyAndReturn = { profile?: boolean | Prisma.ProfileDefaultArgs } export type $AddressPayload = { name: "Address" objects: { profile: Prisma.$ProfilePayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string profileId: string street: string city: string state: string postalCode: string country: string type: string isDefaultMailing: boolean isDefaultBilling: boolean isDefaultShipping: boolean }, ExtArgs["result"]["address"]> composites: {} } export type AddressGetPayload = runtime.Types.Result.GetResult export type AddressCountArgs = Omit & { select?: AddressCountAggregateInputType | true } export interface AddressDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Address'], meta: { name: 'Address' } } /** * Find zero or one Address that matches the filter. * @param {AddressFindUniqueArgs} args - Arguments to find a Address * @example * // Get one Address * const address = await prisma.address.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AddressClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Address that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AddressFindUniqueOrThrowArgs} args - Arguments to find a Address * @example * // Get one Address * const address = await prisma.address.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AddressClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Address 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 {AddressFindFirstArgs} args - Arguments to find a Address * @example * // Get one Address * const address = await prisma.address.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AddressClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Address 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 {AddressFindFirstOrThrowArgs} args - Arguments to find a Address * @example * // Get one Address * const address = await prisma.address.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AddressClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Addresses 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 {AddressFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Addresses * const addresses = await prisma.address.findMany() * * // Get first 10 Addresses * const addresses = await prisma.address.findMany({ take: 10 }) * * // Only select the `id` * const addressWithIdOnly = await prisma.address.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Address. * @param {AddressCreateArgs} args - Arguments to create a Address. * @example * // Create one Address * const Address = await prisma.address.create({ * data: { * // ... data to create a Address * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AddressClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Addresses. * @param {AddressCreateManyArgs} args - Arguments to create many Addresses. * @example * // Create many Addresses * const address = await prisma.address.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Addresses and returns the data saved in the database. * @param {AddressCreateManyAndReturnArgs} args - Arguments to create many Addresses. * @example * // Create many Addresses * const address = await prisma.address.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Addresses and only return the `id` * const addressWithIdOnly = await prisma.address.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 Address. * @param {AddressDeleteArgs} args - Arguments to delete one Address. * @example * // Delete one Address * const Address = await prisma.address.delete({ * where: { * // ... filter to delete one Address * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AddressClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Address. * @param {AddressUpdateArgs} args - Arguments to update one Address. * @example * // Update one Address * const address = await prisma.address.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AddressClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Addresses. * @param {AddressDeleteManyArgs} args - Arguments to filter Addresses to delete. * @example * // Delete a few Addresses * const { count } = await prisma.address.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Addresses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AddressUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Addresses * const address = await prisma.address.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Addresses and returns the data updated in the database. * @param {AddressUpdateManyAndReturnArgs} args - Arguments to update many Addresses. * @example * // Update many Addresses * const address = await prisma.address.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Addresses and only return the `id` * const addressWithIdOnly = await prisma.address.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 Address. * @param {AddressUpsertArgs} args - Arguments to update or create a Address. * @example * // Update or create a Address * const address = await prisma.address.upsert({ * create: { * // ... data to create a Address * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Address we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AddressClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Addresses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AddressCountArgs} args - Arguments to filter Addresses to count. * @example * // Count the number of Addresses * const count = await prisma.address.count({ * where: { * // ... the filter for the Addresses 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 Address. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AddressAggregateArgs} 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 Address. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AddressGroupByArgs} 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 AddressGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AddressGroupByArgs['orderBy'] } : { orderBy?: AddressGroupByArgs['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 ? GetAddressGroupByPayload : Prisma.PrismaPromise /** * Fields of the Address model */ readonly fields: AddressFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Address. * 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__AddressClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" profile = {}>(args?: Prisma.Subset>): Prisma.Prisma__ProfileClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(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 Address model */ export interface AddressFieldRefs { readonly id: Prisma.FieldRef<"Address", 'String'> readonly profileId: Prisma.FieldRef<"Address", 'String'> readonly street: Prisma.FieldRef<"Address", 'String'> readonly city: Prisma.FieldRef<"Address", 'String'> readonly state: Prisma.FieldRef<"Address", 'String'> readonly postalCode: Prisma.FieldRef<"Address", 'String'> readonly country: Prisma.FieldRef<"Address", 'String'> readonly type: Prisma.FieldRef<"Address", 'String'> readonly isDefaultMailing: Prisma.FieldRef<"Address", 'Boolean'> readonly isDefaultBilling: Prisma.FieldRef<"Address", 'Boolean'> readonly isDefaultShipping: Prisma.FieldRef<"Address", 'Boolean'> } // Custom InputTypes /** * Address findUnique */ export type AddressFindUniqueArgs = { /** * 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 /** * Filter, which Address to fetch. */ where: Prisma.AddressWhereUniqueInput } /** * Address findUniqueOrThrow */ export type AddressFindUniqueOrThrowArgs = { /** * 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 /** * Filter, which Address to fetch. */ where: Prisma.AddressWhereUniqueInput } /** * Address findFirst */ export type AddressFindFirstArgs = { /** * 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 /** * Filter, which Address to fetch. */ where?: Prisma.AddressWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Addresses to fetch. */ orderBy?: Prisma.AddressOrderByWithRelationInput | Prisma.AddressOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Addresses. */ cursor?: Prisma.AddressWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Addresses 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` Addresses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Addresses. */ distinct?: Prisma.AddressScalarFieldEnum | Prisma.AddressScalarFieldEnum[] } /** * Address findFirstOrThrow */ export type AddressFindFirstOrThrowArgs = { /** * 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 /** * Filter, which Address to fetch. */ where?: Prisma.AddressWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Addresses to fetch. */ orderBy?: Prisma.AddressOrderByWithRelationInput | Prisma.AddressOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Addresses. */ cursor?: Prisma.AddressWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Addresses 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` Addresses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Addresses. */ distinct?: Prisma.AddressScalarFieldEnum | Prisma.AddressScalarFieldEnum[] } /** * Address findMany */ export type AddressFindManyArgs = { /** * 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 /** * Filter, which Addresses to fetch. */ where?: Prisma.AddressWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Addresses to fetch. */ orderBy?: Prisma.AddressOrderByWithRelationInput | Prisma.AddressOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Addresses. */ cursor?: Prisma.AddressWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Addresses 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` Addresses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Addresses. */ distinct?: Prisma.AddressScalarFieldEnum | Prisma.AddressScalarFieldEnum[] } /** * Address create */ export type AddressCreateArgs = { /** * 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 /** * The data needed to create a Address. */ data: Prisma.XOR } /** * Address createMany */ export type AddressCreateManyArgs = { /** * The data used to create many Addresses. */ data: Prisma.AddressCreateManyInput | Prisma.AddressCreateManyInput[] skipDuplicates?: boolean } /** * Address createManyAndReturn */ export type AddressCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Address */ select?: Prisma.AddressSelectCreateManyAndReturn | null /** * Omit specific fields from the Address */ omit?: Prisma.AddressOmit | null /** * The data used to create many Addresses. */ data: Prisma.AddressCreateManyInput | Prisma.AddressCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.AddressIncludeCreateManyAndReturn | null } /** * Address update */ export type AddressUpdateArgs = { /** * 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 /** * The data needed to update a Address. */ data: Prisma.XOR /** * Choose, which Address to update. */ where: Prisma.AddressWhereUniqueInput } /** * Address updateMany */ export type AddressUpdateManyArgs = { /** * The data used to update Addresses. */ data: Prisma.XOR /** * Filter which Addresses to update */ where?: Prisma.AddressWhereInput /** * Limit how many Addresses to update. */ limit?: number } /** * Address updateManyAndReturn */ export type AddressUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Address */ select?: Prisma.AddressSelectUpdateManyAndReturn | null /** * Omit specific fields from the Address */ omit?: Prisma.AddressOmit | null /** * The data used to update Addresses. */ data: Prisma.XOR /** * Filter which Addresses to update */ where?: Prisma.AddressWhereInput /** * Limit how many Addresses to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.AddressIncludeUpdateManyAndReturn | null } /** * Address upsert */ export type AddressUpsertArgs = { /** * 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 /** * The filter to search for the Address to update in case it exists. */ where: Prisma.AddressWhereUniqueInput /** * In case the Address found by the `where` argument doesn't exist, create a new Address with this data. */ create: Prisma.XOR /** * In case the Address was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Address delete */ export type AddressDeleteArgs = { /** * 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 /** * Filter which Address to delete. */ where: Prisma.AddressWhereUniqueInput } /** * Address deleteMany */ export type AddressDeleteManyArgs = { /** * Filter which Addresses to delete */ where?: Prisma.AddressWhereInput /** * Limit how many Addresses to delete. */ limit?: number } /** * Address without action */ export type AddressDefaultArgs = { /** * 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 }