Files

1219 lines
43 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `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<Prisma.$MihomeAccountPayload>
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* 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<T extends MihomeAccountAggregateArgs> = {
[P in keyof T & keyof AggregateMihomeAccount]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateMihomeAccount[P]>
: Prisma.GetScalarType<T[P], AggregateMihomeAccount[P]>
}
export type MihomeAccountGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
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<T extends MihomeAccountGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<MihomeAccountGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof MihomeAccountGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], MihomeAccountGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], MihomeAccountGroupByOutputType[P]>
}
>
>
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
key?: boolean
userId?: boolean
status?: boolean
lastError?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["mihomeAccount"]>
export type MihomeAccountSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
key?: boolean
userId?: boolean
status?: boolean
lastError?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["mihomeAccount"]>
export type MihomeAccountSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "key" | "userId" | "status" | "lastError" | "updatedAt", ExtArgs["result"]["mihomeAccount"]>
export type $MihomeAccountPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
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<S extends boolean | null | undefined | MihomeAccountDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$MihomeAccountPayload, S>
export type MihomeAccountCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<MihomeAccountFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: MihomeAccountCountAggregateInputType | true
}
export interface MihomeAccountDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends MihomeAccountFindUniqueArgs>(args: Prisma.SelectSubset<T, MihomeAccountFindUniqueArgs<ExtArgs>>): Prisma.Prisma__MihomeAccountClient<runtime.Types.Result.GetResult<Prisma.$MihomeAccountPayload<ExtArgs>, 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<T extends MihomeAccountFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, MihomeAccountFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__MihomeAccountClient<runtime.Types.Result.GetResult<Prisma.$MihomeAccountPayload<ExtArgs>, 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<T extends MihomeAccountFindFirstArgs>(args?: Prisma.SelectSubset<T, MihomeAccountFindFirstArgs<ExtArgs>>): Prisma.Prisma__MihomeAccountClient<runtime.Types.Result.GetResult<Prisma.$MihomeAccountPayload<ExtArgs>, 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<T extends MihomeAccountFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, MihomeAccountFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__MihomeAccountClient<runtime.Types.Result.GetResult<Prisma.$MihomeAccountPayload<ExtArgs>, 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<T extends MihomeAccountFindManyArgs>(args?: Prisma.SelectSubset<T, MihomeAccountFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeAccountPayload<ExtArgs>, 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<T extends MihomeAccountCreateArgs>(args: Prisma.SelectSubset<T, MihomeAccountCreateArgs<ExtArgs>>): Prisma.Prisma__MihomeAccountClient<runtime.Types.Result.GetResult<Prisma.$MihomeAccountPayload<ExtArgs>, 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<T extends MihomeAccountCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeAccountCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends MihomeAccountCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MihomeAccountCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeAccountPayload<ExtArgs>, 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<T extends MihomeAccountDeleteArgs>(args: Prisma.SelectSubset<T, MihomeAccountDeleteArgs<ExtArgs>>): Prisma.Prisma__MihomeAccountClient<runtime.Types.Result.GetResult<Prisma.$MihomeAccountPayload<ExtArgs>, 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<T extends MihomeAccountUpdateArgs>(args: Prisma.SelectSubset<T, MihomeAccountUpdateArgs<ExtArgs>>): Prisma.Prisma__MihomeAccountClient<runtime.Types.Result.GetResult<Prisma.$MihomeAccountPayload<ExtArgs>, 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<T extends MihomeAccountDeleteManyArgs>(args?: Prisma.SelectSubset<T, MihomeAccountDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends MihomeAccountUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeAccountUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends MihomeAccountUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MihomeAccountUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeAccountPayload<ExtArgs>, 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<T extends MihomeAccountUpsertArgs>(args: Prisma.SelectSubset<T, MihomeAccountUpsertArgs<ExtArgs>>): Prisma.Prisma__MihomeAccountClient<runtime.Types.Result.GetResult<Prisma.$MihomeAccountPayload<ExtArgs>, 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<T extends MihomeAccountCountArgs>(
args?: Prisma.Subset<T, MihomeAccountCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], MihomeAccountCountAggregateOutputType>
: 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<T extends MihomeAccountAggregateArgs>(args: Prisma.Subset<T, MihomeAccountAggregateArgs>): Prisma.PrismaPromise<GetMihomeAccountAggregateType<T>>
/**
* 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<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: MihomeAccountGroupByArgs['orderBy'] }
: { orderBy?: MihomeAccountGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
InputErrors extends ByEmpty extends Prisma.True
? `Error: "by" must not be empty.`
: HavingValid extends Prisma.False
? {
[P in HavingFields]: P extends ByFields
? never
: P extends string
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
: [
Error,
'Field ',
P,
` in "having" needs to be provided in "by"`,
]
}[HavingFields]
: 'take' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "take", you also need to provide "orderBy"'
: 'skip' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "skip", you also need to provide "orderBy"'
: ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: Prisma.SubsetIntersection<T, MihomeAccountGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMihomeAccountGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeAccount
*/
select?: Prisma.MihomeAccountSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeAccount
*/
omit?: Prisma.MihomeAccountOmit<ExtArgs> | null
/**
* Filter, which MihomeAccount to fetch.
*/
where: Prisma.MihomeAccountWhereUniqueInput
}
/**
* MihomeAccount findUniqueOrThrow
*/
export type MihomeAccountFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeAccount
*/
select?: Prisma.MihomeAccountSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeAccount
*/
omit?: Prisma.MihomeAccountOmit<ExtArgs> | null
/**
* Filter, which MihomeAccount to fetch.
*/
where: Prisma.MihomeAccountWhereUniqueInput
}
/**
* MihomeAccount findFirst
*/
export type MihomeAccountFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeAccount
*/
select?: Prisma.MihomeAccountSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeAccount
*/
omit?: Prisma.MihomeAccountOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeAccount
*/
select?: Prisma.MihomeAccountSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeAccount
*/
omit?: Prisma.MihomeAccountOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeAccount
*/
select?: Prisma.MihomeAccountSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeAccount
*/
omit?: Prisma.MihomeAccountOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeAccount
*/
select?: Prisma.MihomeAccountSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeAccount
*/
omit?: Prisma.MihomeAccountOmit<ExtArgs> | null
/**
* The data needed to create a MihomeAccount.
*/
data: Prisma.XOR<Prisma.MihomeAccountCreateInput, Prisma.MihomeAccountUncheckedCreateInput>
}
/**
* MihomeAccount createMany
*/
export type MihomeAccountCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many MihomeAccounts.
*/
data: Prisma.MihomeAccountCreateManyInput | Prisma.MihomeAccountCreateManyInput[]
skipDuplicates?: boolean
}
/**
* MihomeAccount createManyAndReturn
*/
export type MihomeAccountCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeAccount
*/
select?: Prisma.MihomeAccountSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the MihomeAccount
*/
omit?: Prisma.MihomeAccountOmit<ExtArgs> | null
/**
* The data used to create many MihomeAccounts.
*/
data: Prisma.MihomeAccountCreateManyInput | Prisma.MihomeAccountCreateManyInput[]
skipDuplicates?: boolean
}
/**
* MihomeAccount update
*/
export type MihomeAccountUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeAccount
*/
select?: Prisma.MihomeAccountSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeAccount
*/
omit?: Prisma.MihomeAccountOmit<ExtArgs> | null
/**
* The data needed to update a MihomeAccount.
*/
data: Prisma.XOR<Prisma.MihomeAccountUpdateInput, Prisma.MihomeAccountUncheckedUpdateInput>
/**
* Choose, which MihomeAccount to update.
*/
where: Prisma.MihomeAccountWhereUniqueInput
}
/**
* MihomeAccount updateMany
*/
export type MihomeAccountUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update MihomeAccounts.
*/
data: Prisma.XOR<Prisma.MihomeAccountUpdateManyMutationInput, Prisma.MihomeAccountUncheckedUpdateManyInput>
/**
* Filter which MihomeAccounts to update
*/
where?: Prisma.MihomeAccountWhereInput
/**
* Limit how many MihomeAccounts to update.
*/
limit?: number
}
/**
* MihomeAccount updateManyAndReturn
*/
export type MihomeAccountUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeAccount
*/
select?: Prisma.MihomeAccountSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the MihomeAccount
*/
omit?: Prisma.MihomeAccountOmit<ExtArgs> | null
/**
* The data used to update MihomeAccounts.
*/
data: Prisma.XOR<Prisma.MihomeAccountUpdateManyMutationInput, Prisma.MihomeAccountUncheckedUpdateManyInput>
/**
* Filter which MihomeAccounts to update
*/
where?: Prisma.MihomeAccountWhereInput
/**
* Limit how many MihomeAccounts to update.
*/
limit?: number
}
/**
* MihomeAccount upsert
*/
export type MihomeAccountUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeAccount
*/
select?: Prisma.MihomeAccountSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeAccount
*/
omit?: Prisma.MihomeAccountOmit<ExtArgs> | 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<Prisma.MihomeAccountCreateInput, Prisma.MihomeAccountUncheckedCreateInput>
/**
* In case the MihomeAccount was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.MihomeAccountUpdateInput, Prisma.MihomeAccountUncheckedUpdateInput>
}
/**
* MihomeAccount delete
*/
export type MihomeAccountDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeAccount
*/
select?: Prisma.MihomeAccountSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeAccount
*/
omit?: Prisma.MihomeAccountOmit<ExtArgs> | null
/**
* Filter which MihomeAccount to delete.
*/
where: Prisma.MihomeAccountWhereUniqueInput
}
/**
* MihomeAccount deleteMany
*/
export type MihomeAccountDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which MihomeAccounts to delete
*/
where?: Prisma.MihomeAccountWhereInput
/**
* Limit how many MihomeAccounts to delete.
*/
limit?: number
}
/**
* MihomeAccount without action
*/
export type MihomeAccountDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the MihomeAccount
*/
select?: Prisma.MihomeAccountSelect<ExtArgs> | null
/**
* Omit specific fields from the MihomeAccount
*/
omit?: Prisma.MihomeAccountOmit<ExtArgs> | null
}