2206 lines
83 KiB
TypeScript
2206 lines
83 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 `MihomeDevice` 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 MihomeDevice
|
|
*
|
|
*/
|
|
export type MihomeDeviceModel = runtime.Types.Result.DefaultSelection<Prisma.$MihomeDevicePayload>
|
|
|
|
export type AggregateMihomeDevice = {
|
|
_count: MihomeDeviceCountAggregateOutputType | null
|
|
_avg: MihomeDeviceAvgAggregateOutputType | null
|
|
_sum: MihomeDeviceSumAggregateOutputType | null
|
|
_min: MihomeDeviceMinAggregateOutputType | null
|
|
_max: MihomeDeviceMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type MihomeDeviceAvgAggregateOutputType = {
|
|
id: number | null
|
|
tempSiid: number | null
|
|
tempPiid: number | null
|
|
humSiid: number | null
|
|
humPiid: number | null
|
|
battSiid: number | null
|
|
battPiid: number | null
|
|
battery: number | null
|
|
}
|
|
|
|
export type MihomeDeviceSumAggregateOutputType = {
|
|
id: number | null
|
|
tempSiid: number | null
|
|
tempPiid: number | null
|
|
humSiid: number | null
|
|
humPiid: number | null
|
|
battSiid: number | null
|
|
battPiid: number | null
|
|
battery: number | null
|
|
}
|
|
|
|
export type MihomeDeviceMinAggregateOutputType = {
|
|
id: number | null
|
|
did: string | null
|
|
homeId: string | null
|
|
model: string | null
|
|
name: string | null
|
|
alias: string | null
|
|
tempSiid: number | null
|
|
tempPiid: number | null
|
|
humSiid: number | null
|
|
humPiid: number | null
|
|
battSiid: number | null
|
|
battPiid: number | null
|
|
battery: number | null
|
|
batteryAt: Date | null
|
|
enabled: boolean | null
|
|
lastSyncAt: Date | null
|
|
createdAt: Date | null
|
|
}
|
|
|
|
export type MihomeDeviceMaxAggregateOutputType = {
|
|
id: number | null
|
|
did: string | null
|
|
homeId: string | null
|
|
model: string | null
|
|
name: string | null
|
|
alias: string | null
|
|
tempSiid: number | null
|
|
tempPiid: number | null
|
|
humSiid: number | null
|
|
humPiid: number | null
|
|
battSiid: number | null
|
|
battPiid: number | null
|
|
battery: number | null
|
|
batteryAt: Date | null
|
|
enabled: boolean | null
|
|
lastSyncAt: Date | null
|
|
createdAt: Date | null
|
|
}
|
|
|
|
export type MihomeDeviceCountAggregateOutputType = {
|
|
id: number
|
|
did: number
|
|
homeId: number
|
|
model: number
|
|
name: number
|
|
alias: number
|
|
tempSiid: number
|
|
tempPiid: number
|
|
humSiid: number
|
|
humPiid: number
|
|
battSiid: number
|
|
battPiid: number
|
|
battery: number
|
|
batteryAt: number
|
|
enabled: number
|
|
lastSyncAt: number
|
|
createdAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type MihomeDeviceAvgAggregateInputType = {
|
|
id?: true
|
|
tempSiid?: true
|
|
tempPiid?: true
|
|
humSiid?: true
|
|
humPiid?: true
|
|
battSiid?: true
|
|
battPiid?: true
|
|
battery?: true
|
|
}
|
|
|
|
export type MihomeDeviceSumAggregateInputType = {
|
|
id?: true
|
|
tempSiid?: true
|
|
tempPiid?: true
|
|
humSiid?: true
|
|
humPiid?: true
|
|
battSiid?: true
|
|
battPiid?: true
|
|
battery?: true
|
|
}
|
|
|
|
export type MihomeDeviceMinAggregateInputType = {
|
|
id?: true
|
|
did?: true
|
|
homeId?: true
|
|
model?: true
|
|
name?: true
|
|
alias?: true
|
|
tempSiid?: true
|
|
tempPiid?: true
|
|
humSiid?: true
|
|
humPiid?: true
|
|
battSiid?: true
|
|
battPiid?: true
|
|
battery?: true
|
|
batteryAt?: true
|
|
enabled?: true
|
|
lastSyncAt?: true
|
|
createdAt?: true
|
|
}
|
|
|
|
export type MihomeDeviceMaxAggregateInputType = {
|
|
id?: true
|
|
did?: true
|
|
homeId?: true
|
|
model?: true
|
|
name?: true
|
|
alias?: true
|
|
tempSiid?: true
|
|
tempPiid?: true
|
|
humSiid?: true
|
|
humPiid?: true
|
|
battSiid?: true
|
|
battPiid?: true
|
|
battery?: true
|
|
batteryAt?: true
|
|
enabled?: true
|
|
lastSyncAt?: true
|
|
createdAt?: true
|
|
}
|
|
|
|
export type MihomeDeviceCountAggregateInputType = {
|
|
id?: true
|
|
did?: true
|
|
homeId?: true
|
|
model?: true
|
|
name?: true
|
|
alias?: true
|
|
tempSiid?: true
|
|
tempPiid?: true
|
|
humSiid?: true
|
|
humPiid?: true
|
|
battSiid?: true
|
|
battPiid?: true
|
|
battery?: true
|
|
batteryAt?: true
|
|
enabled?: true
|
|
lastSyncAt?: true
|
|
createdAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type MihomeDeviceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MihomeDevice to aggregate.
|
|
*/
|
|
where?: Prisma.MihomeDeviceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MihomeDevices to fetch.
|
|
*/
|
|
orderBy?: Prisma.MihomeDeviceOrderByWithRelationInput | Prisma.MihomeDeviceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.MihomeDeviceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MihomeDevices 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` MihomeDevices.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned MihomeDevices
|
|
**/
|
|
_count?: true | MihomeDeviceCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: MihomeDeviceAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: MihomeDeviceSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: MihomeDeviceMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: MihomeDeviceMaxAggregateInputType
|
|
}
|
|
|
|
export type GetMihomeDeviceAggregateType<T extends MihomeDeviceAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateMihomeDevice]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateMihomeDevice[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateMihomeDevice[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type MihomeDeviceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.MihomeDeviceWhereInput
|
|
orderBy?: Prisma.MihomeDeviceOrderByWithAggregationInput | Prisma.MihomeDeviceOrderByWithAggregationInput[]
|
|
by: Prisma.MihomeDeviceScalarFieldEnum[] | Prisma.MihomeDeviceScalarFieldEnum
|
|
having?: Prisma.MihomeDeviceScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: MihomeDeviceCountAggregateInputType | true
|
|
_avg?: MihomeDeviceAvgAggregateInputType
|
|
_sum?: MihomeDeviceSumAggregateInputType
|
|
_min?: MihomeDeviceMinAggregateInputType
|
|
_max?: MihomeDeviceMaxAggregateInputType
|
|
}
|
|
|
|
export type MihomeDeviceGroupByOutputType = {
|
|
id: number
|
|
did: string
|
|
homeId: string
|
|
model: string
|
|
name: string
|
|
alias: string | null
|
|
tempSiid: number
|
|
tempPiid: number
|
|
humSiid: number
|
|
humPiid: number
|
|
battSiid: number
|
|
battPiid: number
|
|
battery: number | null
|
|
batteryAt: Date | null
|
|
enabled: boolean
|
|
lastSyncAt: Date | null
|
|
createdAt: Date
|
|
_count: MihomeDeviceCountAggregateOutputType | null
|
|
_avg: MihomeDeviceAvgAggregateOutputType | null
|
|
_sum: MihomeDeviceSumAggregateOutputType | null
|
|
_min: MihomeDeviceMinAggregateOutputType | null
|
|
_max: MihomeDeviceMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetMihomeDeviceGroupByPayload<T extends MihomeDeviceGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<MihomeDeviceGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof MihomeDeviceGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], MihomeDeviceGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], MihomeDeviceGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type MihomeDeviceWhereInput = {
|
|
AND?: Prisma.MihomeDeviceWhereInput | Prisma.MihomeDeviceWhereInput[]
|
|
OR?: Prisma.MihomeDeviceWhereInput[]
|
|
NOT?: Prisma.MihomeDeviceWhereInput | Prisma.MihomeDeviceWhereInput[]
|
|
id?: Prisma.IntFilter<"MihomeDevice"> | number
|
|
did?: Prisma.StringFilter<"MihomeDevice"> | string
|
|
homeId?: Prisma.StringFilter<"MihomeDevice"> | string
|
|
model?: Prisma.StringFilter<"MihomeDevice"> | string
|
|
name?: Prisma.StringFilter<"MihomeDevice"> | string
|
|
alias?: Prisma.StringNullableFilter<"MihomeDevice"> | string | null
|
|
tempSiid?: Prisma.IntFilter<"MihomeDevice"> | number
|
|
tempPiid?: Prisma.IntFilter<"MihomeDevice"> | number
|
|
humSiid?: Prisma.IntFilter<"MihomeDevice"> | number
|
|
humPiid?: Prisma.IntFilter<"MihomeDevice"> | number
|
|
battSiid?: Prisma.IntFilter<"MihomeDevice"> | number
|
|
battPiid?: Prisma.IntFilter<"MihomeDevice"> | number
|
|
battery?: Prisma.IntNullableFilter<"MihomeDevice"> | number | null
|
|
batteryAt?: Prisma.DateTimeNullableFilter<"MihomeDevice"> | Date | string | null
|
|
enabled?: Prisma.BoolFilter<"MihomeDevice"> | boolean
|
|
lastSyncAt?: Prisma.DateTimeNullableFilter<"MihomeDevice"> | Date | string | null
|
|
createdAt?: Prisma.DateTimeFilter<"MihomeDevice"> | Date | string
|
|
home?: Prisma.XOR<Prisma.MihomeHomeScalarRelationFilter, Prisma.MihomeHomeWhereInput>
|
|
samples?: Prisma.MihomeEnvSampleListRelationFilter
|
|
hours?: Prisma.MihomeEnvHourListRelationFilter
|
|
}
|
|
|
|
export type MihomeDeviceOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
did?: Prisma.SortOrder
|
|
homeId?: Prisma.SortOrder
|
|
model?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
alias?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
tempSiid?: Prisma.SortOrder
|
|
tempPiid?: Prisma.SortOrder
|
|
humSiid?: Prisma.SortOrder
|
|
humPiid?: Prisma.SortOrder
|
|
battSiid?: Prisma.SortOrder
|
|
battPiid?: Prisma.SortOrder
|
|
battery?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
batteryAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
enabled?: Prisma.SortOrder
|
|
lastSyncAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
home?: Prisma.MihomeHomeOrderByWithRelationInput
|
|
samples?: Prisma.MihomeEnvSampleOrderByRelationAggregateInput
|
|
hours?: Prisma.MihomeEnvHourOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type MihomeDeviceWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
did?: string
|
|
AND?: Prisma.MihomeDeviceWhereInput | Prisma.MihomeDeviceWhereInput[]
|
|
OR?: Prisma.MihomeDeviceWhereInput[]
|
|
NOT?: Prisma.MihomeDeviceWhereInput | Prisma.MihomeDeviceWhereInput[]
|
|
homeId?: Prisma.StringFilter<"MihomeDevice"> | string
|
|
model?: Prisma.StringFilter<"MihomeDevice"> | string
|
|
name?: Prisma.StringFilter<"MihomeDevice"> | string
|
|
alias?: Prisma.StringNullableFilter<"MihomeDevice"> | string | null
|
|
tempSiid?: Prisma.IntFilter<"MihomeDevice"> | number
|
|
tempPiid?: Prisma.IntFilter<"MihomeDevice"> | number
|
|
humSiid?: Prisma.IntFilter<"MihomeDevice"> | number
|
|
humPiid?: Prisma.IntFilter<"MihomeDevice"> | number
|
|
battSiid?: Prisma.IntFilter<"MihomeDevice"> | number
|
|
battPiid?: Prisma.IntFilter<"MihomeDevice"> | number
|
|
battery?: Prisma.IntNullableFilter<"MihomeDevice"> | number | null
|
|
batteryAt?: Prisma.DateTimeNullableFilter<"MihomeDevice"> | Date | string | null
|
|
enabled?: Prisma.BoolFilter<"MihomeDevice"> | boolean
|
|
lastSyncAt?: Prisma.DateTimeNullableFilter<"MihomeDevice"> | Date | string | null
|
|
createdAt?: Prisma.DateTimeFilter<"MihomeDevice"> | Date | string
|
|
home?: Prisma.XOR<Prisma.MihomeHomeScalarRelationFilter, Prisma.MihomeHomeWhereInput>
|
|
samples?: Prisma.MihomeEnvSampleListRelationFilter
|
|
hours?: Prisma.MihomeEnvHourListRelationFilter
|
|
}, "id" | "did">
|
|
|
|
export type MihomeDeviceOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
did?: Prisma.SortOrder
|
|
homeId?: Prisma.SortOrder
|
|
model?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
alias?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
tempSiid?: Prisma.SortOrder
|
|
tempPiid?: Prisma.SortOrder
|
|
humSiid?: Prisma.SortOrder
|
|
humPiid?: Prisma.SortOrder
|
|
battSiid?: Prisma.SortOrder
|
|
battPiid?: Prisma.SortOrder
|
|
battery?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
batteryAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
enabled?: Prisma.SortOrder
|
|
lastSyncAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
_count?: Prisma.MihomeDeviceCountOrderByAggregateInput
|
|
_avg?: Prisma.MihomeDeviceAvgOrderByAggregateInput
|
|
_max?: Prisma.MihomeDeviceMaxOrderByAggregateInput
|
|
_min?: Prisma.MihomeDeviceMinOrderByAggregateInput
|
|
_sum?: Prisma.MihomeDeviceSumOrderByAggregateInput
|
|
}
|
|
|
|
export type MihomeDeviceScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.MihomeDeviceScalarWhereWithAggregatesInput | Prisma.MihomeDeviceScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.MihomeDeviceScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.MihomeDeviceScalarWhereWithAggregatesInput | Prisma.MihomeDeviceScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.IntWithAggregatesFilter<"MihomeDevice"> | number
|
|
did?: Prisma.StringWithAggregatesFilter<"MihomeDevice"> | string
|
|
homeId?: Prisma.StringWithAggregatesFilter<"MihomeDevice"> | string
|
|
model?: Prisma.StringWithAggregatesFilter<"MihomeDevice"> | string
|
|
name?: Prisma.StringWithAggregatesFilter<"MihomeDevice"> | string
|
|
alias?: Prisma.StringNullableWithAggregatesFilter<"MihomeDevice"> | string | null
|
|
tempSiid?: Prisma.IntWithAggregatesFilter<"MihomeDevice"> | number
|
|
tempPiid?: Prisma.IntWithAggregatesFilter<"MihomeDevice"> | number
|
|
humSiid?: Prisma.IntWithAggregatesFilter<"MihomeDevice"> | number
|
|
humPiid?: Prisma.IntWithAggregatesFilter<"MihomeDevice"> | number
|
|
battSiid?: Prisma.IntWithAggregatesFilter<"MihomeDevice"> | number
|
|
battPiid?: Prisma.IntWithAggregatesFilter<"MihomeDevice"> | number
|
|
battery?: Prisma.IntNullableWithAggregatesFilter<"MihomeDevice"> | number | null
|
|
batteryAt?: Prisma.DateTimeNullableWithAggregatesFilter<"MihomeDevice"> | Date | string | null
|
|
enabled?: Prisma.BoolWithAggregatesFilter<"MihomeDevice"> | boolean
|
|
lastSyncAt?: Prisma.DateTimeNullableWithAggregatesFilter<"MihomeDevice"> | Date | string | null
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"MihomeDevice"> | Date | string
|
|
}
|
|
|
|
export type MihomeDeviceCreateInput = {
|
|
did: string
|
|
model: string
|
|
name: string
|
|
alias?: string | null
|
|
tempSiid: number
|
|
tempPiid: number
|
|
humSiid: number
|
|
humPiid: number
|
|
battSiid: number
|
|
battPiid: number
|
|
battery?: number | null
|
|
batteryAt?: Date | string | null
|
|
enabled?: boolean
|
|
lastSyncAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
home: Prisma.MihomeHomeCreateNestedOneWithoutDevicesInput
|
|
samples?: Prisma.MihomeEnvSampleCreateNestedManyWithoutDeviceInput
|
|
hours?: Prisma.MihomeEnvHourCreateNestedManyWithoutDeviceInput
|
|
}
|
|
|
|
export type MihomeDeviceUncheckedCreateInput = {
|
|
id?: number
|
|
did: string
|
|
homeId: string
|
|
model: string
|
|
name: string
|
|
alias?: string | null
|
|
tempSiid: number
|
|
tempPiid: number
|
|
humSiid: number
|
|
humPiid: number
|
|
battSiid: number
|
|
battPiid: number
|
|
battery?: number | null
|
|
batteryAt?: Date | string | null
|
|
enabled?: boolean
|
|
lastSyncAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
samples?: Prisma.MihomeEnvSampleUncheckedCreateNestedManyWithoutDeviceInput
|
|
hours?: Prisma.MihomeEnvHourUncheckedCreateNestedManyWithoutDeviceInput
|
|
}
|
|
|
|
export type MihomeDeviceUpdateInput = {
|
|
did?: Prisma.StringFieldUpdateOperationsInput | string
|
|
model?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tempSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
tempPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battery?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
batteryAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
home?: Prisma.MihomeHomeUpdateOneRequiredWithoutDevicesNestedInput
|
|
samples?: Prisma.MihomeEnvSampleUpdateManyWithoutDeviceNestedInput
|
|
hours?: Prisma.MihomeEnvHourUpdateManyWithoutDeviceNestedInput
|
|
}
|
|
|
|
export type MihomeDeviceUncheckedUpdateInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
did?: Prisma.StringFieldUpdateOperationsInput | string
|
|
homeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
model?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tempSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
tempPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battery?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
batteryAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
samples?: Prisma.MihomeEnvSampleUncheckedUpdateManyWithoutDeviceNestedInput
|
|
hours?: Prisma.MihomeEnvHourUncheckedUpdateManyWithoutDeviceNestedInput
|
|
}
|
|
|
|
export type MihomeDeviceCreateManyInput = {
|
|
id?: number
|
|
did: string
|
|
homeId: string
|
|
model: string
|
|
name: string
|
|
alias?: string | null
|
|
tempSiid: number
|
|
tempPiid: number
|
|
humSiid: number
|
|
humPiid: number
|
|
battSiid: number
|
|
battPiid: number
|
|
battery?: number | null
|
|
batteryAt?: Date | string | null
|
|
enabled?: boolean
|
|
lastSyncAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type MihomeDeviceUpdateManyMutationInput = {
|
|
did?: Prisma.StringFieldUpdateOperationsInput | string
|
|
model?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tempSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
tempPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battery?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
batteryAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MihomeDeviceUncheckedUpdateManyInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
did?: Prisma.StringFieldUpdateOperationsInput | string
|
|
homeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
model?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tempSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
tempPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battery?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
batteryAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MihomeDeviceListRelationFilter = {
|
|
every?: Prisma.MihomeDeviceWhereInput
|
|
some?: Prisma.MihomeDeviceWhereInput
|
|
none?: Prisma.MihomeDeviceWhereInput
|
|
}
|
|
|
|
export type MihomeDeviceOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MihomeDeviceCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
did?: Prisma.SortOrder
|
|
homeId?: Prisma.SortOrder
|
|
model?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
alias?: Prisma.SortOrder
|
|
tempSiid?: Prisma.SortOrder
|
|
tempPiid?: Prisma.SortOrder
|
|
humSiid?: Prisma.SortOrder
|
|
humPiid?: Prisma.SortOrder
|
|
battSiid?: Prisma.SortOrder
|
|
battPiid?: Prisma.SortOrder
|
|
battery?: Prisma.SortOrder
|
|
batteryAt?: Prisma.SortOrder
|
|
enabled?: Prisma.SortOrder
|
|
lastSyncAt?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MihomeDeviceAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
tempSiid?: Prisma.SortOrder
|
|
tempPiid?: Prisma.SortOrder
|
|
humSiid?: Prisma.SortOrder
|
|
humPiid?: Prisma.SortOrder
|
|
battSiid?: Prisma.SortOrder
|
|
battPiid?: Prisma.SortOrder
|
|
battery?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MihomeDeviceMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
did?: Prisma.SortOrder
|
|
homeId?: Prisma.SortOrder
|
|
model?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
alias?: Prisma.SortOrder
|
|
tempSiid?: Prisma.SortOrder
|
|
tempPiid?: Prisma.SortOrder
|
|
humSiid?: Prisma.SortOrder
|
|
humPiid?: Prisma.SortOrder
|
|
battSiid?: Prisma.SortOrder
|
|
battPiid?: Prisma.SortOrder
|
|
battery?: Prisma.SortOrder
|
|
batteryAt?: Prisma.SortOrder
|
|
enabled?: Prisma.SortOrder
|
|
lastSyncAt?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MihomeDeviceMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
did?: Prisma.SortOrder
|
|
homeId?: Prisma.SortOrder
|
|
model?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
alias?: Prisma.SortOrder
|
|
tempSiid?: Prisma.SortOrder
|
|
tempPiid?: Prisma.SortOrder
|
|
humSiid?: Prisma.SortOrder
|
|
humPiid?: Prisma.SortOrder
|
|
battSiid?: Prisma.SortOrder
|
|
battPiid?: Prisma.SortOrder
|
|
battery?: Prisma.SortOrder
|
|
batteryAt?: Prisma.SortOrder
|
|
enabled?: Prisma.SortOrder
|
|
lastSyncAt?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MihomeDeviceSumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
tempSiid?: Prisma.SortOrder
|
|
tempPiid?: Prisma.SortOrder
|
|
humSiid?: Prisma.SortOrder
|
|
humPiid?: Prisma.SortOrder
|
|
battSiid?: Prisma.SortOrder
|
|
battPiid?: Prisma.SortOrder
|
|
battery?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MihomeDeviceScalarRelationFilter = {
|
|
is?: Prisma.MihomeDeviceWhereInput
|
|
isNot?: Prisma.MihomeDeviceWhereInput
|
|
}
|
|
|
|
export type MihomeDeviceCreateNestedManyWithoutHomeInput = {
|
|
create?: Prisma.XOR<Prisma.MihomeDeviceCreateWithoutHomeInput, Prisma.MihomeDeviceUncheckedCreateWithoutHomeInput> | Prisma.MihomeDeviceCreateWithoutHomeInput[] | Prisma.MihomeDeviceUncheckedCreateWithoutHomeInput[]
|
|
connectOrCreate?: Prisma.MihomeDeviceCreateOrConnectWithoutHomeInput | Prisma.MihomeDeviceCreateOrConnectWithoutHomeInput[]
|
|
createMany?: Prisma.MihomeDeviceCreateManyHomeInputEnvelope
|
|
connect?: Prisma.MihomeDeviceWhereUniqueInput | Prisma.MihomeDeviceWhereUniqueInput[]
|
|
}
|
|
|
|
export type MihomeDeviceUncheckedCreateNestedManyWithoutHomeInput = {
|
|
create?: Prisma.XOR<Prisma.MihomeDeviceCreateWithoutHomeInput, Prisma.MihomeDeviceUncheckedCreateWithoutHomeInput> | Prisma.MihomeDeviceCreateWithoutHomeInput[] | Prisma.MihomeDeviceUncheckedCreateWithoutHomeInput[]
|
|
connectOrCreate?: Prisma.MihomeDeviceCreateOrConnectWithoutHomeInput | Prisma.MihomeDeviceCreateOrConnectWithoutHomeInput[]
|
|
createMany?: Prisma.MihomeDeviceCreateManyHomeInputEnvelope
|
|
connect?: Prisma.MihomeDeviceWhereUniqueInput | Prisma.MihomeDeviceWhereUniqueInput[]
|
|
}
|
|
|
|
export type MihomeDeviceUpdateManyWithoutHomeNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MihomeDeviceCreateWithoutHomeInput, Prisma.MihomeDeviceUncheckedCreateWithoutHomeInput> | Prisma.MihomeDeviceCreateWithoutHomeInput[] | Prisma.MihomeDeviceUncheckedCreateWithoutHomeInput[]
|
|
connectOrCreate?: Prisma.MihomeDeviceCreateOrConnectWithoutHomeInput | Prisma.MihomeDeviceCreateOrConnectWithoutHomeInput[]
|
|
upsert?: Prisma.MihomeDeviceUpsertWithWhereUniqueWithoutHomeInput | Prisma.MihomeDeviceUpsertWithWhereUniqueWithoutHomeInput[]
|
|
createMany?: Prisma.MihomeDeviceCreateManyHomeInputEnvelope
|
|
set?: Prisma.MihomeDeviceWhereUniqueInput | Prisma.MihomeDeviceWhereUniqueInput[]
|
|
disconnect?: Prisma.MihomeDeviceWhereUniqueInput | Prisma.MihomeDeviceWhereUniqueInput[]
|
|
delete?: Prisma.MihomeDeviceWhereUniqueInput | Prisma.MihomeDeviceWhereUniqueInput[]
|
|
connect?: Prisma.MihomeDeviceWhereUniqueInput | Prisma.MihomeDeviceWhereUniqueInput[]
|
|
update?: Prisma.MihomeDeviceUpdateWithWhereUniqueWithoutHomeInput | Prisma.MihomeDeviceUpdateWithWhereUniqueWithoutHomeInput[]
|
|
updateMany?: Prisma.MihomeDeviceUpdateManyWithWhereWithoutHomeInput | Prisma.MihomeDeviceUpdateManyWithWhereWithoutHomeInput[]
|
|
deleteMany?: Prisma.MihomeDeviceScalarWhereInput | Prisma.MihomeDeviceScalarWhereInput[]
|
|
}
|
|
|
|
export type MihomeDeviceUncheckedUpdateManyWithoutHomeNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MihomeDeviceCreateWithoutHomeInput, Prisma.MihomeDeviceUncheckedCreateWithoutHomeInput> | Prisma.MihomeDeviceCreateWithoutHomeInput[] | Prisma.MihomeDeviceUncheckedCreateWithoutHomeInput[]
|
|
connectOrCreate?: Prisma.MihomeDeviceCreateOrConnectWithoutHomeInput | Prisma.MihomeDeviceCreateOrConnectWithoutHomeInput[]
|
|
upsert?: Prisma.MihomeDeviceUpsertWithWhereUniqueWithoutHomeInput | Prisma.MihomeDeviceUpsertWithWhereUniqueWithoutHomeInput[]
|
|
createMany?: Prisma.MihomeDeviceCreateManyHomeInputEnvelope
|
|
set?: Prisma.MihomeDeviceWhereUniqueInput | Prisma.MihomeDeviceWhereUniqueInput[]
|
|
disconnect?: Prisma.MihomeDeviceWhereUniqueInput | Prisma.MihomeDeviceWhereUniqueInput[]
|
|
delete?: Prisma.MihomeDeviceWhereUniqueInput | Prisma.MihomeDeviceWhereUniqueInput[]
|
|
connect?: Prisma.MihomeDeviceWhereUniqueInput | Prisma.MihomeDeviceWhereUniqueInput[]
|
|
update?: Prisma.MihomeDeviceUpdateWithWhereUniqueWithoutHomeInput | Prisma.MihomeDeviceUpdateWithWhereUniqueWithoutHomeInput[]
|
|
updateMany?: Prisma.MihomeDeviceUpdateManyWithWhereWithoutHomeInput | Prisma.MihomeDeviceUpdateManyWithWhereWithoutHomeInput[]
|
|
deleteMany?: Prisma.MihomeDeviceScalarWhereInput | Prisma.MihomeDeviceScalarWhereInput[]
|
|
}
|
|
|
|
export type NullableIntFieldUpdateOperationsInput = {
|
|
set?: number | null
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
export type NullableDateTimeFieldUpdateOperationsInput = {
|
|
set?: Date | string | null
|
|
}
|
|
|
|
export type MihomeDeviceCreateNestedOneWithoutSamplesInput = {
|
|
create?: Prisma.XOR<Prisma.MihomeDeviceCreateWithoutSamplesInput, Prisma.MihomeDeviceUncheckedCreateWithoutSamplesInput>
|
|
connectOrCreate?: Prisma.MihomeDeviceCreateOrConnectWithoutSamplesInput
|
|
connect?: Prisma.MihomeDeviceWhereUniqueInput
|
|
}
|
|
|
|
export type MihomeDeviceUpdateOneRequiredWithoutSamplesNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MihomeDeviceCreateWithoutSamplesInput, Prisma.MihomeDeviceUncheckedCreateWithoutSamplesInput>
|
|
connectOrCreate?: Prisma.MihomeDeviceCreateOrConnectWithoutSamplesInput
|
|
upsert?: Prisma.MihomeDeviceUpsertWithoutSamplesInput
|
|
connect?: Prisma.MihomeDeviceWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.MihomeDeviceUpdateToOneWithWhereWithoutSamplesInput, Prisma.MihomeDeviceUpdateWithoutSamplesInput>, Prisma.MihomeDeviceUncheckedUpdateWithoutSamplesInput>
|
|
}
|
|
|
|
export type MihomeDeviceCreateNestedOneWithoutHoursInput = {
|
|
create?: Prisma.XOR<Prisma.MihomeDeviceCreateWithoutHoursInput, Prisma.MihomeDeviceUncheckedCreateWithoutHoursInput>
|
|
connectOrCreate?: Prisma.MihomeDeviceCreateOrConnectWithoutHoursInput
|
|
connect?: Prisma.MihomeDeviceWhereUniqueInput
|
|
}
|
|
|
|
export type MihomeDeviceUpdateOneRequiredWithoutHoursNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MihomeDeviceCreateWithoutHoursInput, Prisma.MihomeDeviceUncheckedCreateWithoutHoursInput>
|
|
connectOrCreate?: Prisma.MihomeDeviceCreateOrConnectWithoutHoursInput
|
|
upsert?: Prisma.MihomeDeviceUpsertWithoutHoursInput
|
|
connect?: Prisma.MihomeDeviceWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.MihomeDeviceUpdateToOneWithWhereWithoutHoursInput, Prisma.MihomeDeviceUpdateWithoutHoursInput>, Prisma.MihomeDeviceUncheckedUpdateWithoutHoursInput>
|
|
}
|
|
|
|
export type MihomeDeviceCreateWithoutHomeInput = {
|
|
did: string
|
|
model: string
|
|
name: string
|
|
alias?: string | null
|
|
tempSiid: number
|
|
tempPiid: number
|
|
humSiid: number
|
|
humPiid: number
|
|
battSiid: number
|
|
battPiid: number
|
|
battery?: number | null
|
|
batteryAt?: Date | string | null
|
|
enabled?: boolean
|
|
lastSyncAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
samples?: Prisma.MihomeEnvSampleCreateNestedManyWithoutDeviceInput
|
|
hours?: Prisma.MihomeEnvHourCreateNestedManyWithoutDeviceInput
|
|
}
|
|
|
|
export type MihomeDeviceUncheckedCreateWithoutHomeInput = {
|
|
id?: number
|
|
did: string
|
|
model: string
|
|
name: string
|
|
alias?: string | null
|
|
tempSiid: number
|
|
tempPiid: number
|
|
humSiid: number
|
|
humPiid: number
|
|
battSiid: number
|
|
battPiid: number
|
|
battery?: number | null
|
|
batteryAt?: Date | string | null
|
|
enabled?: boolean
|
|
lastSyncAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
samples?: Prisma.MihomeEnvSampleUncheckedCreateNestedManyWithoutDeviceInput
|
|
hours?: Prisma.MihomeEnvHourUncheckedCreateNestedManyWithoutDeviceInput
|
|
}
|
|
|
|
export type MihomeDeviceCreateOrConnectWithoutHomeInput = {
|
|
where: Prisma.MihomeDeviceWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.MihomeDeviceCreateWithoutHomeInput, Prisma.MihomeDeviceUncheckedCreateWithoutHomeInput>
|
|
}
|
|
|
|
export type MihomeDeviceCreateManyHomeInputEnvelope = {
|
|
data: Prisma.MihomeDeviceCreateManyHomeInput | Prisma.MihomeDeviceCreateManyHomeInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type MihomeDeviceUpsertWithWhereUniqueWithoutHomeInput = {
|
|
where: Prisma.MihomeDeviceWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.MihomeDeviceUpdateWithoutHomeInput, Prisma.MihomeDeviceUncheckedUpdateWithoutHomeInput>
|
|
create: Prisma.XOR<Prisma.MihomeDeviceCreateWithoutHomeInput, Prisma.MihomeDeviceUncheckedCreateWithoutHomeInput>
|
|
}
|
|
|
|
export type MihomeDeviceUpdateWithWhereUniqueWithoutHomeInput = {
|
|
where: Prisma.MihomeDeviceWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.MihomeDeviceUpdateWithoutHomeInput, Prisma.MihomeDeviceUncheckedUpdateWithoutHomeInput>
|
|
}
|
|
|
|
export type MihomeDeviceUpdateManyWithWhereWithoutHomeInput = {
|
|
where: Prisma.MihomeDeviceScalarWhereInput
|
|
data: Prisma.XOR<Prisma.MihomeDeviceUpdateManyMutationInput, Prisma.MihomeDeviceUncheckedUpdateManyWithoutHomeInput>
|
|
}
|
|
|
|
export type MihomeDeviceScalarWhereInput = {
|
|
AND?: Prisma.MihomeDeviceScalarWhereInput | Prisma.MihomeDeviceScalarWhereInput[]
|
|
OR?: Prisma.MihomeDeviceScalarWhereInput[]
|
|
NOT?: Prisma.MihomeDeviceScalarWhereInput | Prisma.MihomeDeviceScalarWhereInput[]
|
|
id?: Prisma.IntFilter<"MihomeDevice"> | number
|
|
did?: Prisma.StringFilter<"MihomeDevice"> | string
|
|
homeId?: Prisma.StringFilter<"MihomeDevice"> | string
|
|
model?: Prisma.StringFilter<"MihomeDevice"> | string
|
|
name?: Prisma.StringFilter<"MihomeDevice"> | string
|
|
alias?: Prisma.StringNullableFilter<"MihomeDevice"> | string | null
|
|
tempSiid?: Prisma.IntFilter<"MihomeDevice"> | number
|
|
tempPiid?: Prisma.IntFilter<"MihomeDevice"> | number
|
|
humSiid?: Prisma.IntFilter<"MihomeDevice"> | number
|
|
humPiid?: Prisma.IntFilter<"MihomeDevice"> | number
|
|
battSiid?: Prisma.IntFilter<"MihomeDevice"> | number
|
|
battPiid?: Prisma.IntFilter<"MihomeDevice"> | number
|
|
battery?: Prisma.IntNullableFilter<"MihomeDevice"> | number | null
|
|
batteryAt?: Prisma.DateTimeNullableFilter<"MihomeDevice"> | Date | string | null
|
|
enabled?: Prisma.BoolFilter<"MihomeDevice"> | boolean
|
|
lastSyncAt?: Prisma.DateTimeNullableFilter<"MihomeDevice"> | Date | string | null
|
|
createdAt?: Prisma.DateTimeFilter<"MihomeDevice"> | Date | string
|
|
}
|
|
|
|
export type MihomeDeviceCreateWithoutSamplesInput = {
|
|
did: string
|
|
model: string
|
|
name: string
|
|
alias?: string | null
|
|
tempSiid: number
|
|
tempPiid: number
|
|
humSiid: number
|
|
humPiid: number
|
|
battSiid: number
|
|
battPiid: number
|
|
battery?: number | null
|
|
batteryAt?: Date | string | null
|
|
enabled?: boolean
|
|
lastSyncAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
home: Prisma.MihomeHomeCreateNestedOneWithoutDevicesInput
|
|
hours?: Prisma.MihomeEnvHourCreateNestedManyWithoutDeviceInput
|
|
}
|
|
|
|
export type MihomeDeviceUncheckedCreateWithoutSamplesInput = {
|
|
id?: number
|
|
did: string
|
|
homeId: string
|
|
model: string
|
|
name: string
|
|
alias?: string | null
|
|
tempSiid: number
|
|
tempPiid: number
|
|
humSiid: number
|
|
humPiid: number
|
|
battSiid: number
|
|
battPiid: number
|
|
battery?: number | null
|
|
batteryAt?: Date | string | null
|
|
enabled?: boolean
|
|
lastSyncAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
hours?: Prisma.MihomeEnvHourUncheckedCreateNestedManyWithoutDeviceInput
|
|
}
|
|
|
|
export type MihomeDeviceCreateOrConnectWithoutSamplesInput = {
|
|
where: Prisma.MihomeDeviceWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.MihomeDeviceCreateWithoutSamplesInput, Prisma.MihomeDeviceUncheckedCreateWithoutSamplesInput>
|
|
}
|
|
|
|
export type MihomeDeviceUpsertWithoutSamplesInput = {
|
|
update: Prisma.XOR<Prisma.MihomeDeviceUpdateWithoutSamplesInput, Prisma.MihomeDeviceUncheckedUpdateWithoutSamplesInput>
|
|
create: Prisma.XOR<Prisma.MihomeDeviceCreateWithoutSamplesInput, Prisma.MihomeDeviceUncheckedCreateWithoutSamplesInput>
|
|
where?: Prisma.MihomeDeviceWhereInput
|
|
}
|
|
|
|
export type MihomeDeviceUpdateToOneWithWhereWithoutSamplesInput = {
|
|
where?: Prisma.MihomeDeviceWhereInput
|
|
data: Prisma.XOR<Prisma.MihomeDeviceUpdateWithoutSamplesInput, Prisma.MihomeDeviceUncheckedUpdateWithoutSamplesInput>
|
|
}
|
|
|
|
export type MihomeDeviceUpdateWithoutSamplesInput = {
|
|
did?: Prisma.StringFieldUpdateOperationsInput | string
|
|
model?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tempSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
tempPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battery?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
batteryAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
home?: Prisma.MihomeHomeUpdateOneRequiredWithoutDevicesNestedInput
|
|
hours?: Prisma.MihomeEnvHourUpdateManyWithoutDeviceNestedInput
|
|
}
|
|
|
|
export type MihomeDeviceUncheckedUpdateWithoutSamplesInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
did?: Prisma.StringFieldUpdateOperationsInput | string
|
|
homeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
model?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tempSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
tempPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battery?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
batteryAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
hours?: Prisma.MihomeEnvHourUncheckedUpdateManyWithoutDeviceNestedInput
|
|
}
|
|
|
|
export type MihomeDeviceCreateWithoutHoursInput = {
|
|
did: string
|
|
model: string
|
|
name: string
|
|
alias?: string | null
|
|
tempSiid: number
|
|
tempPiid: number
|
|
humSiid: number
|
|
humPiid: number
|
|
battSiid: number
|
|
battPiid: number
|
|
battery?: number | null
|
|
batteryAt?: Date | string | null
|
|
enabled?: boolean
|
|
lastSyncAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
home: Prisma.MihomeHomeCreateNestedOneWithoutDevicesInput
|
|
samples?: Prisma.MihomeEnvSampleCreateNestedManyWithoutDeviceInput
|
|
}
|
|
|
|
export type MihomeDeviceUncheckedCreateWithoutHoursInput = {
|
|
id?: number
|
|
did: string
|
|
homeId: string
|
|
model: string
|
|
name: string
|
|
alias?: string | null
|
|
tempSiid: number
|
|
tempPiid: number
|
|
humSiid: number
|
|
humPiid: number
|
|
battSiid: number
|
|
battPiid: number
|
|
battery?: number | null
|
|
batteryAt?: Date | string | null
|
|
enabled?: boolean
|
|
lastSyncAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
samples?: Prisma.MihomeEnvSampleUncheckedCreateNestedManyWithoutDeviceInput
|
|
}
|
|
|
|
export type MihomeDeviceCreateOrConnectWithoutHoursInput = {
|
|
where: Prisma.MihomeDeviceWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.MihomeDeviceCreateWithoutHoursInput, Prisma.MihomeDeviceUncheckedCreateWithoutHoursInput>
|
|
}
|
|
|
|
export type MihomeDeviceUpsertWithoutHoursInput = {
|
|
update: Prisma.XOR<Prisma.MihomeDeviceUpdateWithoutHoursInput, Prisma.MihomeDeviceUncheckedUpdateWithoutHoursInput>
|
|
create: Prisma.XOR<Prisma.MihomeDeviceCreateWithoutHoursInput, Prisma.MihomeDeviceUncheckedCreateWithoutHoursInput>
|
|
where?: Prisma.MihomeDeviceWhereInput
|
|
}
|
|
|
|
export type MihomeDeviceUpdateToOneWithWhereWithoutHoursInput = {
|
|
where?: Prisma.MihomeDeviceWhereInput
|
|
data: Prisma.XOR<Prisma.MihomeDeviceUpdateWithoutHoursInput, Prisma.MihomeDeviceUncheckedUpdateWithoutHoursInput>
|
|
}
|
|
|
|
export type MihomeDeviceUpdateWithoutHoursInput = {
|
|
did?: Prisma.StringFieldUpdateOperationsInput | string
|
|
model?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tempSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
tempPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battery?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
batteryAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
home?: Prisma.MihomeHomeUpdateOneRequiredWithoutDevicesNestedInput
|
|
samples?: Prisma.MihomeEnvSampleUpdateManyWithoutDeviceNestedInput
|
|
}
|
|
|
|
export type MihomeDeviceUncheckedUpdateWithoutHoursInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
did?: Prisma.StringFieldUpdateOperationsInput | string
|
|
homeId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
model?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tempSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
tempPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battery?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
batteryAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
samples?: Prisma.MihomeEnvSampleUncheckedUpdateManyWithoutDeviceNestedInput
|
|
}
|
|
|
|
export type MihomeDeviceCreateManyHomeInput = {
|
|
id?: number
|
|
did: string
|
|
model: string
|
|
name: string
|
|
alias?: string | null
|
|
tempSiid: number
|
|
tempPiid: number
|
|
humSiid: number
|
|
humPiid: number
|
|
battSiid: number
|
|
battPiid: number
|
|
battery?: number | null
|
|
batteryAt?: Date | string | null
|
|
enabled?: boolean
|
|
lastSyncAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type MihomeDeviceUpdateWithoutHomeInput = {
|
|
did?: Prisma.StringFieldUpdateOperationsInput | string
|
|
model?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tempSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
tempPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battery?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
batteryAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
samples?: Prisma.MihomeEnvSampleUpdateManyWithoutDeviceNestedInput
|
|
hours?: Prisma.MihomeEnvHourUpdateManyWithoutDeviceNestedInput
|
|
}
|
|
|
|
export type MihomeDeviceUncheckedUpdateWithoutHomeInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
did?: Prisma.StringFieldUpdateOperationsInput | string
|
|
model?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tempSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
tempPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battery?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
batteryAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
samples?: Prisma.MihomeEnvSampleUncheckedUpdateManyWithoutDeviceNestedInput
|
|
hours?: Prisma.MihomeEnvHourUncheckedUpdateManyWithoutDeviceNestedInput
|
|
}
|
|
|
|
export type MihomeDeviceUncheckedUpdateManyWithoutHomeInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
did?: Prisma.StringFieldUpdateOperationsInput | string
|
|
model?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tempSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
tempPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
humPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battSiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battPiid?: Prisma.IntFieldUpdateOperationsInput | number
|
|
battery?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
batteryAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
lastSyncAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type MihomeDeviceCountOutputType
|
|
*/
|
|
|
|
export type MihomeDeviceCountOutputType = {
|
|
samples: number
|
|
hours: number
|
|
}
|
|
|
|
export type MihomeDeviceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
samples?: boolean | MihomeDeviceCountOutputTypeCountSamplesArgs
|
|
hours?: boolean | MihomeDeviceCountOutputTypeCountHoursArgs
|
|
}
|
|
|
|
/**
|
|
* MihomeDeviceCountOutputType without action
|
|
*/
|
|
export type MihomeDeviceCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeDeviceCountOutputType
|
|
*/
|
|
select?: Prisma.MihomeDeviceCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* MihomeDeviceCountOutputType without action
|
|
*/
|
|
export type MihomeDeviceCountOutputTypeCountSamplesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.MihomeEnvSampleWhereInput
|
|
}
|
|
|
|
/**
|
|
* MihomeDeviceCountOutputType without action
|
|
*/
|
|
export type MihomeDeviceCountOutputTypeCountHoursArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.MihomeEnvHourWhereInput
|
|
}
|
|
|
|
|
|
export type MihomeDeviceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
did?: boolean
|
|
homeId?: boolean
|
|
model?: boolean
|
|
name?: boolean
|
|
alias?: boolean
|
|
tempSiid?: boolean
|
|
tempPiid?: boolean
|
|
humSiid?: boolean
|
|
humPiid?: boolean
|
|
battSiid?: boolean
|
|
battPiid?: boolean
|
|
battery?: boolean
|
|
batteryAt?: boolean
|
|
enabled?: boolean
|
|
lastSyncAt?: boolean
|
|
createdAt?: boolean
|
|
home?: boolean | Prisma.MihomeHomeDefaultArgs<ExtArgs>
|
|
samples?: boolean | Prisma.MihomeDevice$samplesArgs<ExtArgs>
|
|
hours?: boolean | Prisma.MihomeDevice$hoursArgs<ExtArgs>
|
|
_count?: boolean | Prisma.MihomeDeviceCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["mihomeDevice"]>
|
|
|
|
export type MihomeDeviceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
did?: boolean
|
|
homeId?: boolean
|
|
model?: boolean
|
|
name?: boolean
|
|
alias?: boolean
|
|
tempSiid?: boolean
|
|
tempPiid?: boolean
|
|
humSiid?: boolean
|
|
humPiid?: boolean
|
|
battSiid?: boolean
|
|
battPiid?: boolean
|
|
battery?: boolean
|
|
batteryAt?: boolean
|
|
enabled?: boolean
|
|
lastSyncAt?: boolean
|
|
createdAt?: boolean
|
|
home?: boolean | Prisma.MihomeHomeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["mihomeDevice"]>
|
|
|
|
export type MihomeDeviceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
did?: boolean
|
|
homeId?: boolean
|
|
model?: boolean
|
|
name?: boolean
|
|
alias?: boolean
|
|
tempSiid?: boolean
|
|
tempPiid?: boolean
|
|
humSiid?: boolean
|
|
humPiid?: boolean
|
|
battSiid?: boolean
|
|
battPiid?: boolean
|
|
battery?: boolean
|
|
batteryAt?: boolean
|
|
enabled?: boolean
|
|
lastSyncAt?: boolean
|
|
createdAt?: boolean
|
|
home?: boolean | Prisma.MihomeHomeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["mihomeDevice"]>
|
|
|
|
export type MihomeDeviceSelectScalar = {
|
|
id?: boolean
|
|
did?: boolean
|
|
homeId?: boolean
|
|
model?: boolean
|
|
name?: boolean
|
|
alias?: boolean
|
|
tempSiid?: boolean
|
|
tempPiid?: boolean
|
|
humSiid?: boolean
|
|
humPiid?: boolean
|
|
battSiid?: boolean
|
|
battPiid?: boolean
|
|
battery?: boolean
|
|
batteryAt?: boolean
|
|
enabled?: boolean
|
|
lastSyncAt?: boolean
|
|
createdAt?: boolean
|
|
}
|
|
|
|
export type MihomeDeviceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "did" | "homeId" | "model" | "name" | "alias" | "tempSiid" | "tempPiid" | "humSiid" | "humPiid" | "battSiid" | "battPiid" | "battery" | "batteryAt" | "enabled" | "lastSyncAt" | "createdAt", ExtArgs["result"]["mihomeDevice"]>
|
|
export type MihomeDeviceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
home?: boolean | Prisma.MihomeHomeDefaultArgs<ExtArgs>
|
|
samples?: boolean | Prisma.MihomeDevice$samplesArgs<ExtArgs>
|
|
hours?: boolean | Prisma.MihomeDevice$hoursArgs<ExtArgs>
|
|
_count?: boolean | Prisma.MihomeDeviceCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type MihomeDeviceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
home?: boolean | Prisma.MihomeHomeDefaultArgs<ExtArgs>
|
|
}
|
|
export type MihomeDeviceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
home?: boolean | Prisma.MihomeHomeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $MihomeDevicePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "MihomeDevice"
|
|
objects: {
|
|
home: Prisma.$MihomeHomePayload<ExtArgs>
|
|
samples: Prisma.$MihomeEnvSamplePayload<ExtArgs>[]
|
|
hours: Prisma.$MihomeEnvHourPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
did: string
|
|
homeId: string
|
|
model: string
|
|
name: string
|
|
alias: string | null
|
|
tempSiid: number
|
|
tempPiid: number
|
|
humSiid: number
|
|
humPiid: number
|
|
battSiid: number
|
|
battPiid: number
|
|
battery: number | null
|
|
batteryAt: Date | null
|
|
enabled: boolean
|
|
lastSyncAt: Date | null
|
|
createdAt: Date
|
|
}, ExtArgs["result"]["mihomeDevice"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type MihomeDeviceGetPayload<S extends boolean | null | undefined | MihomeDeviceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$MihomeDevicePayload, S>
|
|
|
|
export type MihomeDeviceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<MihomeDeviceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: MihomeDeviceCountAggregateInputType | true
|
|
}
|
|
|
|
export interface MihomeDeviceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['MihomeDevice'], meta: { name: 'MihomeDevice' } }
|
|
/**
|
|
* Find zero or one MihomeDevice that matches the filter.
|
|
* @param {MihomeDeviceFindUniqueArgs} args - Arguments to find a MihomeDevice
|
|
* @example
|
|
* // Get one MihomeDevice
|
|
* const mihomeDevice = await prisma.mihomeDevice.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends MihomeDeviceFindUniqueArgs>(args: Prisma.SelectSubset<T, MihomeDeviceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__MihomeDeviceClient<runtime.Types.Result.GetResult<Prisma.$MihomeDevicePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one MihomeDevice that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {MihomeDeviceFindUniqueOrThrowArgs} args - Arguments to find a MihomeDevice
|
|
* @example
|
|
* // Get one MihomeDevice
|
|
* const mihomeDevice = await prisma.mihomeDevice.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends MihomeDeviceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, MihomeDeviceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__MihomeDeviceClient<runtime.Types.Result.GetResult<Prisma.$MihomeDevicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first MihomeDevice 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 {MihomeDeviceFindFirstArgs} args - Arguments to find a MihomeDevice
|
|
* @example
|
|
* // Get one MihomeDevice
|
|
* const mihomeDevice = await prisma.mihomeDevice.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends MihomeDeviceFindFirstArgs>(args?: Prisma.SelectSubset<T, MihomeDeviceFindFirstArgs<ExtArgs>>): Prisma.Prisma__MihomeDeviceClient<runtime.Types.Result.GetResult<Prisma.$MihomeDevicePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first MihomeDevice 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 {MihomeDeviceFindFirstOrThrowArgs} args - Arguments to find a MihomeDevice
|
|
* @example
|
|
* // Get one MihomeDevice
|
|
* const mihomeDevice = await prisma.mihomeDevice.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends MihomeDeviceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, MihomeDeviceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__MihomeDeviceClient<runtime.Types.Result.GetResult<Prisma.$MihomeDevicePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more MihomeDevices 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 {MihomeDeviceFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all MihomeDevices
|
|
* const mihomeDevices = await prisma.mihomeDevice.findMany()
|
|
*
|
|
* // Get first 10 MihomeDevices
|
|
* const mihomeDevices = await prisma.mihomeDevice.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const mihomeDeviceWithIdOnly = await prisma.mihomeDevice.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends MihomeDeviceFindManyArgs>(args?: Prisma.SelectSubset<T, MihomeDeviceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeDevicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a MihomeDevice.
|
|
* @param {MihomeDeviceCreateArgs} args - Arguments to create a MihomeDevice.
|
|
* @example
|
|
* // Create one MihomeDevice
|
|
* const MihomeDevice = await prisma.mihomeDevice.create({
|
|
* data: {
|
|
* // ... data to create a MihomeDevice
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends MihomeDeviceCreateArgs>(args: Prisma.SelectSubset<T, MihomeDeviceCreateArgs<ExtArgs>>): Prisma.Prisma__MihomeDeviceClient<runtime.Types.Result.GetResult<Prisma.$MihomeDevicePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many MihomeDevices.
|
|
* @param {MihomeDeviceCreateManyArgs} args - Arguments to create many MihomeDevices.
|
|
* @example
|
|
* // Create many MihomeDevices
|
|
* const mihomeDevice = await prisma.mihomeDevice.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends MihomeDeviceCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeDeviceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many MihomeDevices and returns the data saved in the database.
|
|
* @param {MihomeDeviceCreateManyAndReturnArgs} args - Arguments to create many MihomeDevices.
|
|
* @example
|
|
* // Create many MihomeDevices
|
|
* const mihomeDevice = await prisma.mihomeDevice.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many MihomeDevices and only return the `id`
|
|
* const mihomeDeviceWithIdOnly = await prisma.mihomeDevice.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 MihomeDeviceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MihomeDeviceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeDevicePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a MihomeDevice.
|
|
* @param {MihomeDeviceDeleteArgs} args - Arguments to delete one MihomeDevice.
|
|
* @example
|
|
* // Delete one MihomeDevice
|
|
* const MihomeDevice = await prisma.mihomeDevice.delete({
|
|
* where: {
|
|
* // ... filter to delete one MihomeDevice
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends MihomeDeviceDeleteArgs>(args: Prisma.SelectSubset<T, MihomeDeviceDeleteArgs<ExtArgs>>): Prisma.Prisma__MihomeDeviceClient<runtime.Types.Result.GetResult<Prisma.$MihomeDevicePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one MihomeDevice.
|
|
* @param {MihomeDeviceUpdateArgs} args - Arguments to update one MihomeDevice.
|
|
* @example
|
|
* // Update one MihomeDevice
|
|
* const mihomeDevice = await prisma.mihomeDevice.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends MihomeDeviceUpdateArgs>(args: Prisma.SelectSubset<T, MihomeDeviceUpdateArgs<ExtArgs>>): Prisma.Prisma__MihomeDeviceClient<runtime.Types.Result.GetResult<Prisma.$MihomeDevicePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more MihomeDevices.
|
|
* @param {MihomeDeviceDeleteManyArgs} args - Arguments to filter MihomeDevices to delete.
|
|
* @example
|
|
* // Delete a few MihomeDevices
|
|
* const { count } = await prisma.mihomeDevice.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends MihomeDeviceDeleteManyArgs>(args?: Prisma.SelectSubset<T, MihomeDeviceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more MihomeDevices.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MihomeDeviceUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many MihomeDevices
|
|
* const mihomeDevice = await prisma.mihomeDevice.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends MihomeDeviceUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeDeviceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more MihomeDevices and returns the data updated in the database.
|
|
* @param {MihomeDeviceUpdateManyAndReturnArgs} args - Arguments to update many MihomeDevices.
|
|
* @example
|
|
* // Update many MihomeDevices
|
|
* const mihomeDevice = await prisma.mihomeDevice.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more MihomeDevices and only return the `id`
|
|
* const mihomeDeviceWithIdOnly = await prisma.mihomeDevice.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 MihomeDeviceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MihomeDeviceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeDevicePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one MihomeDevice.
|
|
* @param {MihomeDeviceUpsertArgs} args - Arguments to update or create a MihomeDevice.
|
|
* @example
|
|
* // Update or create a MihomeDevice
|
|
* const mihomeDevice = await prisma.mihomeDevice.upsert({
|
|
* create: {
|
|
* // ... data to create a MihomeDevice
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the MihomeDevice we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends MihomeDeviceUpsertArgs>(args: Prisma.SelectSubset<T, MihomeDeviceUpsertArgs<ExtArgs>>): Prisma.Prisma__MihomeDeviceClient<runtime.Types.Result.GetResult<Prisma.$MihomeDevicePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of MihomeDevices.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MihomeDeviceCountArgs} args - Arguments to filter MihomeDevices to count.
|
|
* @example
|
|
* // Count the number of MihomeDevices
|
|
* const count = await prisma.mihomeDevice.count({
|
|
* where: {
|
|
* // ... the filter for the MihomeDevices we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends MihomeDeviceCountArgs>(
|
|
args?: Prisma.Subset<T, MihomeDeviceCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], MihomeDeviceCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a MihomeDevice.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MihomeDeviceAggregateArgs} 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 MihomeDeviceAggregateArgs>(args: Prisma.Subset<T, MihomeDeviceAggregateArgs>): Prisma.PrismaPromise<GetMihomeDeviceAggregateType<T>>
|
|
|
|
/**
|
|
* Group by MihomeDevice.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MihomeDeviceGroupByArgs} 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 MihomeDeviceGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: MihomeDeviceGroupByArgs['orderBy'] }
|
|
: { orderBy?: MihomeDeviceGroupByArgs['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, MihomeDeviceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMihomeDeviceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the MihomeDevice model
|
|
*/
|
|
readonly fields: MihomeDeviceFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for MihomeDevice.
|
|
* 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__MihomeDeviceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
home<T extends Prisma.MihomeHomeDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.MihomeHomeDefaultArgs<ExtArgs>>): Prisma.Prisma__MihomeHomeClient<runtime.Types.Result.GetResult<Prisma.$MihomeHomePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
samples<T extends Prisma.MihomeDevice$samplesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.MihomeDevice$samplesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeEnvSamplePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
hours<T extends Prisma.MihomeDevice$hoursArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.MihomeDevice$hoursArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeEnvHourPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<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 MihomeDevice model
|
|
*/
|
|
export interface MihomeDeviceFieldRefs {
|
|
readonly id: Prisma.FieldRef<"MihomeDevice", 'Int'>
|
|
readonly did: Prisma.FieldRef<"MihomeDevice", 'String'>
|
|
readonly homeId: Prisma.FieldRef<"MihomeDevice", 'String'>
|
|
readonly model: Prisma.FieldRef<"MihomeDevice", 'String'>
|
|
readonly name: Prisma.FieldRef<"MihomeDevice", 'String'>
|
|
readonly alias: Prisma.FieldRef<"MihomeDevice", 'String'>
|
|
readonly tempSiid: Prisma.FieldRef<"MihomeDevice", 'Int'>
|
|
readonly tempPiid: Prisma.FieldRef<"MihomeDevice", 'Int'>
|
|
readonly humSiid: Prisma.FieldRef<"MihomeDevice", 'Int'>
|
|
readonly humPiid: Prisma.FieldRef<"MihomeDevice", 'Int'>
|
|
readonly battSiid: Prisma.FieldRef<"MihomeDevice", 'Int'>
|
|
readonly battPiid: Prisma.FieldRef<"MihomeDevice", 'Int'>
|
|
readonly battery: Prisma.FieldRef<"MihomeDevice", 'Int'>
|
|
readonly batteryAt: Prisma.FieldRef<"MihomeDevice", 'DateTime'>
|
|
readonly enabled: Prisma.FieldRef<"MihomeDevice", 'Boolean'>
|
|
readonly lastSyncAt: Prisma.FieldRef<"MihomeDevice", 'DateTime'>
|
|
readonly createdAt: Prisma.FieldRef<"MihomeDevice", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* MihomeDevice findUnique
|
|
*/
|
|
export type MihomeDeviceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeDevice
|
|
*/
|
|
select?: Prisma.MihomeDeviceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeDevice
|
|
*/
|
|
omit?: Prisma.MihomeDeviceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeDeviceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MihomeDevice to fetch.
|
|
*/
|
|
where: Prisma.MihomeDeviceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MihomeDevice findUniqueOrThrow
|
|
*/
|
|
export type MihomeDeviceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeDevice
|
|
*/
|
|
select?: Prisma.MihomeDeviceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeDevice
|
|
*/
|
|
omit?: Prisma.MihomeDeviceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeDeviceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MihomeDevice to fetch.
|
|
*/
|
|
where: Prisma.MihomeDeviceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MihomeDevice findFirst
|
|
*/
|
|
export type MihomeDeviceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeDevice
|
|
*/
|
|
select?: Prisma.MihomeDeviceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeDevice
|
|
*/
|
|
omit?: Prisma.MihomeDeviceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeDeviceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MihomeDevice to fetch.
|
|
*/
|
|
where?: Prisma.MihomeDeviceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MihomeDevices to fetch.
|
|
*/
|
|
orderBy?: Prisma.MihomeDeviceOrderByWithRelationInput | Prisma.MihomeDeviceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for MihomeDevices.
|
|
*/
|
|
cursor?: Prisma.MihomeDeviceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MihomeDevices 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` MihomeDevices.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MihomeDevices.
|
|
*/
|
|
distinct?: Prisma.MihomeDeviceScalarFieldEnum | Prisma.MihomeDeviceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MihomeDevice findFirstOrThrow
|
|
*/
|
|
export type MihomeDeviceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeDevice
|
|
*/
|
|
select?: Prisma.MihomeDeviceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeDevice
|
|
*/
|
|
omit?: Prisma.MihomeDeviceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeDeviceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MihomeDevice to fetch.
|
|
*/
|
|
where?: Prisma.MihomeDeviceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MihomeDevices to fetch.
|
|
*/
|
|
orderBy?: Prisma.MihomeDeviceOrderByWithRelationInput | Prisma.MihomeDeviceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for MihomeDevices.
|
|
*/
|
|
cursor?: Prisma.MihomeDeviceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MihomeDevices 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` MihomeDevices.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MihomeDevices.
|
|
*/
|
|
distinct?: Prisma.MihomeDeviceScalarFieldEnum | Prisma.MihomeDeviceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MihomeDevice findMany
|
|
*/
|
|
export type MihomeDeviceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeDevice
|
|
*/
|
|
select?: Prisma.MihomeDeviceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeDevice
|
|
*/
|
|
omit?: Prisma.MihomeDeviceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeDeviceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MihomeDevices to fetch.
|
|
*/
|
|
where?: Prisma.MihomeDeviceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MihomeDevices to fetch.
|
|
*/
|
|
orderBy?: Prisma.MihomeDeviceOrderByWithRelationInput | Prisma.MihomeDeviceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing MihomeDevices.
|
|
*/
|
|
cursor?: Prisma.MihomeDeviceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MihomeDevices 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` MihomeDevices.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MihomeDevices.
|
|
*/
|
|
distinct?: Prisma.MihomeDeviceScalarFieldEnum | Prisma.MihomeDeviceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MihomeDevice create
|
|
*/
|
|
export type MihomeDeviceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeDevice
|
|
*/
|
|
select?: Prisma.MihomeDeviceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeDevice
|
|
*/
|
|
omit?: Prisma.MihomeDeviceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeDeviceInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a MihomeDevice.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MihomeDeviceCreateInput, Prisma.MihomeDeviceUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* MihomeDevice createMany
|
|
*/
|
|
export type MihomeDeviceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many MihomeDevices.
|
|
*/
|
|
data: Prisma.MihomeDeviceCreateManyInput | Prisma.MihomeDeviceCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* MihomeDevice createManyAndReturn
|
|
*/
|
|
export type MihomeDeviceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeDevice
|
|
*/
|
|
select?: Prisma.MihomeDeviceSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeDevice
|
|
*/
|
|
omit?: Prisma.MihomeDeviceOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many MihomeDevices.
|
|
*/
|
|
data: Prisma.MihomeDeviceCreateManyInput | Prisma.MihomeDeviceCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeDeviceIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* MihomeDevice update
|
|
*/
|
|
export type MihomeDeviceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeDevice
|
|
*/
|
|
select?: Prisma.MihomeDeviceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeDevice
|
|
*/
|
|
omit?: Prisma.MihomeDeviceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeDeviceInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a MihomeDevice.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MihomeDeviceUpdateInput, Prisma.MihomeDeviceUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which MihomeDevice to update.
|
|
*/
|
|
where: Prisma.MihomeDeviceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MihomeDevice updateMany
|
|
*/
|
|
export type MihomeDeviceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update MihomeDevices.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MihomeDeviceUpdateManyMutationInput, Prisma.MihomeDeviceUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which MihomeDevices to update
|
|
*/
|
|
where?: Prisma.MihomeDeviceWhereInput
|
|
/**
|
|
* Limit how many MihomeDevices to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* MihomeDevice updateManyAndReturn
|
|
*/
|
|
export type MihomeDeviceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeDevice
|
|
*/
|
|
select?: Prisma.MihomeDeviceSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeDevice
|
|
*/
|
|
omit?: Prisma.MihomeDeviceOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update MihomeDevices.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MihomeDeviceUpdateManyMutationInput, Prisma.MihomeDeviceUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which MihomeDevices to update
|
|
*/
|
|
where?: Prisma.MihomeDeviceWhereInput
|
|
/**
|
|
* Limit how many MihomeDevices to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeDeviceIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* MihomeDevice upsert
|
|
*/
|
|
export type MihomeDeviceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeDevice
|
|
*/
|
|
select?: Prisma.MihomeDeviceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeDevice
|
|
*/
|
|
omit?: Prisma.MihomeDeviceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeDeviceInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the MihomeDevice to update in case it exists.
|
|
*/
|
|
where: Prisma.MihomeDeviceWhereUniqueInput
|
|
/**
|
|
* In case the MihomeDevice found by the `where` argument doesn't exist, create a new MihomeDevice with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.MihomeDeviceCreateInput, Prisma.MihomeDeviceUncheckedCreateInput>
|
|
/**
|
|
* In case the MihomeDevice was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.MihomeDeviceUpdateInput, Prisma.MihomeDeviceUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* MihomeDevice delete
|
|
*/
|
|
export type MihomeDeviceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeDevice
|
|
*/
|
|
select?: Prisma.MihomeDeviceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeDevice
|
|
*/
|
|
omit?: Prisma.MihomeDeviceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeDeviceInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which MihomeDevice to delete.
|
|
*/
|
|
where: Prisma.MihomeDeviceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MihomeDevice deleteMany
|
|
*/
|
|
export type MihomeDeviceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MihomeDevices to delete
|
|
*/
|
|
where?: Prisma.MihomeDeviceWhereInput
|
|
/**
|
|
* Limit how many MihomeDevices to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* MihomeDevice.samples
|
|
*/
|
|
export type MihomeDevice$samplesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeEnvSample
|
|
*/
|
|
select?: Prisma.MihomeEnvSampleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeEnvSample
|
|
*/
|
|
omit?: Prisma.MihomeEnvSampleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeEnvSampleInclude<ExtArgs> | null
|
|
where?: Prisma.MihomeEnvSampleWhereInput
|
|
orderBy?: Prisma.MihomeEnvSampleOrderByWithRelationInput | Prisma.MihomeEnvSampleOrderByWithRelationInput[]
|
|
cursor?: Prisma.MihomeEnvSampleWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.MihomeEnvSampleScalarFieldEnum | Prisma.MihomeEnvSampleScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MihomeDevice.hours
|
|
*/
|
|
export type MihomeDevice$hoursArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeEnvHour
|
|
*/
|
|
select?: Prisma.MihomeEnvHourSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeEnvHour
|
|
*/
|
|
omit?: Prisma.MihomeEnvHourOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeEnvHourInclude<ExtArgs> | null
|
|
where?: Prisma.MihomeEnvHourWhereInput
|
|
orderBy?: Prisma.MihomeEnvHourOrderByWithRelationInput | Prisma.MihomeEnvHourOrderByWithRelationInput[]
|
|
cursor?: Prisma.MihomeEnvHourWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.MihomeEnvHourScalarFieldEnum | Prisma.MihomeEnvHourScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MihomeDevice without action
|
|
*/
|
|
export type MihomeDeviceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeDevice
|
|
*/
|
|
select?: Prisma.MihomeDeviceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeDevice
|
|
*/
|
|
omit?: Prisma.MihomeDeviceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeDeviceInclude<ExtArgs> | null
|
|
}
|