/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `MihomeAccount` 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 MihomeAccount * */ export type MihomeAccountModel = runtime.Types.Result.DefaultSelection export type AggregateMihomeAccount = { _count: MihomeAccountCountAggregateOutputType | null _avg: MihomeAccountAvgAggregateOutputType | null _sum: MihomeAccountSumAggregateOutputType | null _min: MihomeAccountMinAggregateOutputType | null _max: MihomeAccountMaxAggregateOutputType | null } export type MihomeAccountAvgAggregateOutputType = { id: number | null } export type MihomeAccountSumAggregateOutputType = { id: number | null } export type MihomeAccountMinAggregateOutputType = { id: number | null key: string | null userId: string | null status: string | null lastError: string | null updatedAt: Date | null } export type MihomeAccountMaxAggregateOutputType = { id: number | null key: string | null userId: string | null status: string | null lastError: string | null updatedAt: Date | null } export type MihomeAccountCountAggregateOutputType = { id: number key: number userId: number status: number lastError: number updatedAt: number _all: number } export type MihomeAccountAvgAggregateInputType = { id?: true } export type MihomeAccountSumAggregateInputType = { id?: true } export type MihomeAccountMinAggregateInputType = { id?: true key?: true userId?: true status?: true lastError?: true updatedAt?: true } export type MihomeAccountMaxAggregateInputType = { id?: true key?: true userId?: true status?: true lastError?: true updatedAt?: true } export type MihomeAccountCountAggregateInputType = { id?: true key?: true userId?: true status?: true lastError?: true updatedAt?: true _all?: true } export type MihomeAccountAggregateArgs = { /** * Filter which MihomeAccount to aggregate. */ where?: Prisma.MihomeAccountWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MihomeAccounts to fetch. */ orderBy?: Prisma.MihomeAccountOrderByWithRelationInput | Prisma.MihomeAccountOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.MihomeAccountWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MihomeAccounts 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` MihomeAccounts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned MihomeAccounts **/ _count?: true | MihomeAccountCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: MihomeAccountAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: MihomeAccountSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: MihomeAccountMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: MihomeAccountMaxAggregateInputType } export type GetMihomeAccountAggregateType = { [P in keyof T & keyof AggregateMihomeAccount]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type MihomeAccountGroupByArgs = { where?: Prisma.MihomeAccountWhereInput orderBy?: Prisma.MihomeAccountOrderByWithAggregationInput | Prisma.MihomeAccountOrderByWithAggregationInput[] by: Prisma.MihomeAccountScalarFieldEnum[] | Prisma.MihomeAccountScalarFieldEnum having?: Prisma.MihomeAccountScalarWhereWithAggregatesInput take?: number skip?: number _count?: MihomeAccountCountAggregateInputType | true _avg?: MihomeAccountAvgAggregateInputType _sum?: MihomeAccountSumAggregateInputType _min?: MihomeAccountMinAggregateInputType _max?: MihomeAccountMaxAggregateInputType } export type MihomeAccountGroupByOutputType = { id: number key: string userId: string status: string lastError: string updatedAt: Date _count: MihomeAccountCountAggregateOutputType | null _avg: MihomeAccountAvgAggregateOutputType | null _sum: MihomeAccountSumAggregateOutputType | null _min: MihomeAccountMinAggregateOutputType | null _max: MihomeAccountMaxAggregateOutputType | null } export type GetMihomeAccountGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof MihomeAccountGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type MihomeAccountWhereInput = { AND?: Prisma.MihomeAccountWhereInput | Prisma.MihomeAccountWhereInput[] OR?: Prisma.MihomeAccountWhereInput[] NOT?: Prisma.MihomeAccountWhereInput | Prisma.MihomeAccountWhereInput[] id?: Prisma.IntFilter<"MihomeAccount"> | number key?: Prisma.StringFilter<"MihomeAccount"> | string userId?: Prisma.StringFilter<"MihomeAccount"> | string status?: Prisma.StringFilter<"MihomeAccount"> | string lastError?: Prisma.StringFilter<"MihomeAccount"> | string updatedAt?: Prisma.DateTimeFilter<"MihomeAccount"> | Date | string } export type MihomeAccountOrderByWithRelationInput = { id?: Prisma.SortOrder key?: Prisma.SortOrder userId?: Prisma.SortOrder status?: Prisma.SortOrder lastError?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type MihomeAccountWhereUniqueInput = Prisma.AtLeast<{ id?: number key?: string AND?: Prisma.MihomeAccountWhereInput | Prisma.MihomeAccountWhereInput[] OR?: Prisma.MihomeAccountWhereInput[] NOT?: Prisma.MihomeAccountWhereInput | Prisma.MihomeAccountWhereInput[] userId?: Prisma.StringFilter<"MihomeAccount"> | string status?: Prisma.StringFilter<"MihomeAccount"> | string lastError?: Prisma.StringFilter<"MihomeAccount"> | string updatedAt?: Prisma.DateTimeFilter<"MihomeAccount"> | Date | string }, "id" | "key"> export type MihomeAccountOrderByWithAggregationInput = { id?: Prisma.SortOrder key?: Prisma.SortOrder userId?: Prisma.SortOrder status?: Prisma.SortOrder lastError?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.MihomeAccountCountOrderByAggregateInput _avg?: Prisma.MihomeAccountAvgOrderByAggregateInput _max?: Prisma.MihomeAccountMaxOrderByAggregateInput _min?: Prisma.MihomeAccountMinOrderByAggregateInput _sum?: Prisma.MihomeAccountSumOrderByAggregateInput } export type MihomeAccountScalarWhereWithAggregatesInput = { AND?: Prisma.MihomeAccountScalarWhereWithAggregatesInput | Prisma.MihomeAccountScalarWhereWithAggregatesInput[] OR?: Prisma.MihomeAccountScalarWhereWithAggregatesInput[] NOT?: Prisma.MihomeAccountScalarWhereWithAggregatesInput | Prisma.MihomeAccountScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"MihomeAccount"> | number key?: Prisma.StringWithAggregatesFilter<"MihomeAccount"> | string userId?: Prisma.StringWithAggregatesFilter<"MihomeAccount"> | string status?: Prisma.StringWithAggregatesFilter<"MihomeAccount"> | string lastError?: Prisma.StringWithAggregatesFilter<"MihomeAccount"> | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"MihomeAccount"> | Date | string } export type MihomeAccountCreateInput = { key?: string userId?: string status?: string lastError?: string updatedAt?: Date | string } export type MihomeAccountUncheckedCreateInput = { id?: number key?: string userId?: string status?: string lastError?: string updatedAt?: Date | string } export type MihomeAccountUpdateInput = { key?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string lastError?: Prisma.StringFieldUpdateOperationsInput | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type MihomeAccountUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number key?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string lastError?: Prisma.StringFieldUpdateOperationsInput | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type MihomeAccountCreateManyInput = { id?: number key?: string userId?: string status?: string lastError?: string updatedAt?: Date | string } export type MihomeAccountUpdateManyMutationInput = { key?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string lastError?: Prisma.StringFieldUpdateOperationsInput | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type MihomeAccountUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number key?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.StringFieldUpdateOperationsInput | string lastError?: Prisma.StringFieldUpdateOperationsInput | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type MihomeAccountCountOrderByAggregateInput = { id?: Prisma.SortOrder key?: Prisma.SortOrder userId?: Prisma.SortOrder status?: Prisma.SortOrder lastError?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type MihomeAccountAvgOrderByAggregateInput = { id?: Prisma.SortOrder } export type MihomeAccountMaxOrderByAggregateInput = { id?: Prisma.SortOrder key?: Prisma.SortOrder userId?: Prisma.SortOrder status?: Prisma.SortOrder lastError?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type MihomeAccountMinOrderByAggregateInput = { id?: Prisma.SortOrder key?: Prisma.SortOrder userId?: Prisma.SortOrder status?: Prisma.SortOrder lastError?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type MihomeAccountSumOrderByAggregateInput = { id?: Prisma.SortOrder } export type MihomeAccountSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean key?: boolean userId?: boolean status?: boolean lastError?: boolean updatedAt?: boolean }, ExtArgs["result"]["mihomeAccount"]> export type MihomeAccountSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean key?: boolean userId?: boolean status?: boolean lastError?: boolean updatedAt?: boolean }, ExtArgs["result"]["mihomeAccount"]> export type MihomeAccountSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean key?: boolean userId?: boolean status?: boolean lastError?: boolean updatedAt?: boolean }, ExtArgs["result"]["mihomeAccount"]> export type MihomeAccountSelectScalar = { id?: boolean key?: boolean userId?: boolean status?: boolean lastError?: boolean updatedAt?: boolean } export type MihomeAccountOmit = runtime.Types.Extensions.GetOmit<"id" | "key" | "userId" | "status" | "lastError" | "updatedAt", ExtArgs["result"]["mihomeAccount"]> export type $MihomeAccountPayload = { name: "MihomeAccount" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number key: string userId: string status: string lastError: string updatedAt: Date }, ExtArgs["result"]["mihomeAccount"]> composites: {} } export type MihomeAccountGetPayload = runtime.Types.Result.GetResult export type MihomeAccountCountArgs = Omit & { select?: MihomeAccountCountAggregateInputType | true } export interface MihomeAccountDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['MihomeAccount'], meta: { name: 'MihomeAccount' } } /** * Find zero or one MihomeAccount that matches the filter. * @param {MihomeAccountFindUniqueArgs} args - Arguments to find a MihomeAccount * @example * // Get one MihomeAccount * const mihomeAccount = await prisma.mihomeAccount.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__MihomeAccountClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one MihomeAccount that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {MihomeAccountFindUniqueOrThrowArgs} args - Arguments to find a MihomeAccount * @example * // Get one MihomeAccount * const mihomeAccount = await prisma.mihomeAccount.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__MihomeAccountClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first MihomeAccount 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 {MihomeAccountFindFirstArgs} args - Arguments to find a MihomeAccount * @example * // Get one MihomeAccount * const mihomeAccount = await prisma.mihomeAccount.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__MihomeAccountClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first MihomeAccount 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 {MihomeAccountFindFirstOrThrowArgs} args - Arguments to find a MihomeAccount * @example * // Get one MihomeAccount * const mihomeAccount = await prisma.mihomeAccount.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__MihomeAccountClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more MihomeAccounts 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 {MihomeAccountFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all MihomeAccounts * const mihomeAccounts = await prisma.mihomeAccount.findMany() * * // Get first 10 MihomeAccounts * const mihomeAccounts = await prisma.mihomeAccount.findMany({ take: 10 }) * * // Only select the `id` * const mihomeAccountWithIdOnly = await prisma.mihomeAccount.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a MihomeAccount. * @param {MihomeAccountCreateArgs} args - Arguments to create a MihomeAccount. * @example * // Create one MihomeAccount * const MihomeAccount = await prisma.mihomeAccount.create({ * data: { * // ... data to create a MihomeAccount * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__MihomeAccountClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many MihomeAccounts. * @param {MihomeAccountCreateManyArgs} args - Arguments to create many MihomeAccounts. * @example * // Create many MihomeAccounts * const mihomeAccount = await prisma.mihomeAccount.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many MihomeAccounts and returns the data saved in the database. * @param {MihomeAccountCreateManyAndReturnArgs} args - Arguments to create many MihomeAccounts. * @example * // Create many MihomeAccounts * const mihomeAccount = await prisma.mihomeAccount.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many MihomeAccounts and only return the `id` * const mihomeAccountWithIdOnly = await prisma.mihomeAccount.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 MihomeAccount. * @param {MihomeAccountDeleteArgs} args - Arguments to delete one MihomeAccount. * @example * // Delete one MihomeAccount * const MihomeAccount = await prisma.mihomeAccount.delete({ * where: { * // ... filter to delete one MihomeAccount * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__MihomeAccountClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one MihomeAccount. * @param {MihomeAccountUpdateArgs} args - Arguments to update one MihomeAccount. * @example * // Update one MihomeAccount * const mihomeAccount = await prisma.mihomeAccount.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__MihomeAccountClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more MihomeAccounts. * @param {MihomeAccountDeleteManyArgs} args - Arguments to filter MihomeAccounts to delete. * @example * // Delete a few MihomeAccounts * const { count } = await prisma.mihomeAccount.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more MihomeAccounts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MihomeAccountUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many MihomeAccounts * const mihomeAccount = await prisma.mihomeAccount.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more MihomeAccounts and returns the data updated in the database. * @param {MihomeAccountUpdateManyAndReturnArgs} args - Arguments to update many MihomeAccounts. * @example * // Update many MihomeAccounts * const mihomeAccount = await prisma.mihomeAccount.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more MihomeAccounts and only return the `id` * const mihomeAccountWithIdOnly = await prisma.mihomeAccount.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 MihomeAccount. * @param {MihomeAccountUpsertArgs} args - Arguments to update or create a MihomeAccount. * @example * // Update or create a MihomeAccount * const mihomeAccount = await prisma.mihomeAccount.upsert({ * create: { * // ... data to create a MihomeAccount * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the MihomeAccount we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__MihomeAccountClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of MihomeAccounts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MihomeAccountCountArgs} args - Arguments to filter MihomeAccounts to count. * @example * // Count the number of MihomeAccounts * const count = await prisma.mihomeAccount.count({ * where: { * // ... the filter for the MihomeAccounts 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 MihomeAccount. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MihomeAccountAggregateArgs} 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 MihomeAccount. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MihomeAccountGroupByArgs} 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 MihomeAccountGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: MihomeAccountGroupByArgs['orderBy'] } : { orderBy?: MihomeAccountGroupByArgs['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 ? GetMihomeAccountGroupByPayload : Prisma.PrismaPromise /** * Fields of the MihomeAccount model */ readonly fields: MihomeAccountFieldRefs; } /** * The delegate class that acts as a "Promise-like" for MihomeAccount. * 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__MihomeAccountClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * 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 MihomeAccount model */ export interface MihomeAccountFieldRefs { readonly id: Prisma.FieldRef<"MihomeAccount", 'Int'> readonly key: Prisma.FieldRef<"MihomeAccount", 'String'> readonly userId: Prisma.FieldRef<"MihomeAccount", 'String'> readonly status: Prisma.FieldRef<"MihomeAccount", 'String'> readonly lastError: Prisma.FieldRef<"MihomeAccount", 'String'> readonly updatedAt: Prisma.FieldRef<"MihomeAccount", 'DateTime'> } // Custom InputTypes /** * MihomeAccount findUnique */ export type MihomeAccountFindUniqueArgs = { /** * Select specific fields to fetch from the MihomeAccount */ select?: Prisma.MihomeAccountSelect | null /** * Omit specific fields from the MihomeAccount */ omit?: Prisma.MihomeAccountOmit | null /** * Filter, which MihomeAccount to fetch. */ where: Prisma.MihomeAccountWhereUniqueInput } /** * MihomeAccount findUniqueOrThrow */ export type MihomeAccountFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the MihomeAccount */ select?: Prisma.MihomeAccountSelect | null /** * Omit specific fields from the MihomeAccount */ omit?: Prisma.MihomeAccountOmit | null /** * Filter, which MihomeAccount to fetch. */ where: Prisma.MihomeAccountWhereUniqueInput } /** * MihomeAccount findFirst */ export type MihomeAccountFindFirstArgs = { /** * Select specific fields to fetch from the MihomeAccount */ select?: Prisma.MihomeAccountSelect | null /** * Omit specific fields from the MihomeAccount */ omit?: Prisma.MihomeAccountOmit | null /** * Filter, which MihomeAccount to fetch. */ where?: Prisma.MihomeAccountWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MihomeAccounts to fetch. */ orderBy?: Prisma.MihomeAccountOrderByWithRelationInput | Prisma.MihomeAccountOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for MihomeAccounts. */ cursor?: Prisma.MihomeAccountWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MihomeAccounts 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` MihomeAccounts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of MihomeAccounts. */ distinct?: Prisma.MihomeAccountScalarFieldEnum | Prisma.MihomeAccountScalarFieldEnum[] } /** * MihomeAccount findFirstOrThrow */ export type MihomeAccountFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the MihomeAccount */ select?: Prisma.MihomeAccountSelect | null /** * Omit specific fields from the MihomeAccount */ omit?: Prisma.MihomeAccountOmit | null /** * Filter, which MihomeAccount to fetch. */ where?: Prisma.MihomeAccountWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MihomeAccounts to fetch. */ orderBy?: Prisma.MihomeAccountOrderByWithRelationInput | Prisma.MihomeAccountOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for MihomeAccounts. */ cursor?: Prisma.MihomeAccountWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MihomeAccounts 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` MihomeAccounts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of MihomeAccounts. */ distinct?: Prisma.MihomeAccountScalarFieldEnum | Prisma.MihomeAccountScalarFieldEnum[] } /** * MihomeAccount findMany */ export type MihomeAccountFindManyArgs = { /** * Select specific fields to fetch from the MihomeAccount */ select?: Prisma.MihomeAccountSelect | null /** * Omit specific fields from the MihomeAccount */ omit?: Prisma.MihomeAccountOmit | null /** * Filter, which MihomeAccounts to fetch. */ where?: Prisma.MihomeAccountWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MihomeAccounts to fetch. */ orderBy?: Prisma.MihomeAccountOrderByWithRelationInput | Prisma.MihomeAccountOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing MihomeAccounts. */ cursor?: Prisma.MihomeAccountWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MihomeAccounts 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` MihomeAccounts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of MihomeAccounts. */ distinct?: Prisma.MihomeAccountScalarFieldEnum | Prisma.MihomeAccountScalarFieldEnum[] } /** * MihomeAccount create */ export type MihomeAccountCreateArgs = { /** * Select specific fields to fetch from the MihomeAccount */ select?: Prisma.MihomeAccountSelect | null /** * Omit specific fields from the MihomeAccount */ omit?: Prisma.MihomeAccountOmit | null /** * The data needed to create a MihomeAccount. */ data: Prisma.XOR } /** * MihomeAccount createMany */ export type MihomeAccountCreateManyArgs = { /** * The data used to create many MihomeAccounts. */ data: Prisma.MihomeAccountCreateManyInput | Prisma.MihomeAccountCreateManyInput[] skipDuplicates?: boolean } /** * MihomeAccount createManyAndReturn */ export type MihomeAccountCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the MihomeAccount */ select?: Prisma.MihomeAccountSelectCreateManyAndReturn | null /** * Omit specific fields from the MihomeAccount */ omit?: Prisma.MihomeAccountOmit | null /** * The data used to create many MihomeAccounts. */ data: Prisma.MihomeAccountCreateManyInput | Prisma.MihomeAccountCreateManyInput[] skipDuplicates?: boolean } /** * MihomeAccount update */ export type MihomeAccountUpdateArgs = { /** * Select specific fields to fetch from the MihomeAccount */ select?: Prisma.MihomeAccountSelect | null /** * Omit specific fields from the MihomeAccount */ omit?: Prisma.MihomeAccountOmit | null /** * The data needed to update a MihomeAccount. */ data: Prisma.XOR /** * Choose, which MihomeAccount to update. */ where: Prisma.MihomeAccountWhereUniqueInput } /** * MihomeAccount updateMany */ export type MihomeAccountUpdateManyArgs = { /** * The data used to update MihomeAccounts. */ data: Prisma.XOR /** * Filter which MihomeAccounts to update */ where?: Prisma.MihomeAccountWhereInput /** * Limit how many MihomeAccounts to update. */ limit?: number } /** * MihomeAccount updateManyAndReturn */ export type MihomeAccountUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the MihomeAccount */ select?: Prisma.MihomeAccountSelectUpdateManyAndReturn | null /** * Omit specific fields from the MihomeAccount */ omit?: Prisma.MihomeAccountOmit | null /** * The data used to update MihomeAccounts. */ data: Prisma.XOR /** * Filter which MihomeAccounts to update */ where?: Prisma.MihomeAccountWhereInput /** * Limit how many MihomeAccounts to update. */ limit?: number } /** * MihomeAccount upsert */ export type MihomeAccountUpsertArgs = { /** * Select specific fields to fetch from the MihomeAccount */ select?: Prisma.MihomeAccountSelect | null /** * Omit specific fields from the MihomeAccount */ omit?: Prisma.MihomeAccountOmit | null /** * The filter to search for the MihomeAccount to update in case it exists. */ where: Prisma.MihomeAccountWhereUniqueInput /** * In case the MihomeAccount found by the `where` argument doesn't exist, create a new MihomeAccount with this data. */ create: Prisma.XOR /** * In case the MihomeAccount was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * MihomeAccount delete */ export type MihomeAccountDeleteArgs = { /** * Select specific fields to fetch from the MihomeAccount */ select?: Prisma.MihomeAccountSelect | null /** * Omit specific fields from the MihomeAccount */ omit?: Prisma.MihomeAccountOmit | null /** * Filter which MihomeAccount to delete. */ where: Prisma.MihomeAccountWhereUniqueInput } /** * MihomeAccount deleteMany */ export type MihomeAccountDeleteManyArgs = { /** * Filter which MihomeAccounts to delete */ where?: Prisma.MihomeAccountWhereInput /** * Limit how many MihomeAccounts to delete. */ limit?: number } /** * MihomeAccount without action */ export type MihomeAccountDefaultArgs = { /** * Select specific fields to fetch from the MihomeAccount */ select?: Prisma.MihomeAccountSelect | null /** * Omit specific fields from the MihomeAccount */ omit?: Prisma.MihomeAccountOmit | null }