1797 lines
71 KiB
TypeScript
1797 lines
71 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 `MihomeEnvSample` 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 MihomeEnvSample
|
|
*
|
|
*/
|
|
export type MihomeEnvSampleModel = runtime.Types.Result.DefaultSelection<Prisma.$MihomeEnvSamplePayload>
|
|
|
|
export type AggregateMihomeEnvSample = {
|
|
_count: MihomeEnvSampleCountAggregateOutputType | null
|
|
_avg: MihomeEnvSampleAvgAggregateOutputType | null
|
|
_sum: MihomeEnvSampleSumAggregateOutputType | null
|
|
_min: MihomeEnvSampleMinAggregateOutputType | null
|
|
_max: MihomeEnvSampleMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type MihomeEnvSampleAvgAggregateOutputType = {
|
|
id: number | null
|
|
deviceId: number | null
|
|
temperature: number | null
|
|
humidity: number | null
|
|
temperatureAvg: number | null
|
|
humidityAvg: number | null
|
|
temperatureMin: number | null
|
|
temperatureMax: number | null
|
|
humidityMin: number | null
|
|
humidityMax: number | null
|
|
}
|
|
|
|
export type MihomeEnvSampleSumAggregateOutputType = {
|
|
id: number | null
|
|
deviceId: number | null
|
|
temperature: number | null
|
|
humidity: number | null
|
|
temperatureAvg: number | null
|
|
humidityAvg: number | null
|
|
temperatureMin: number | null
|
|
temperatureMax: number | null
|
|
humidityMin: number | null
|
|
humidityMax: number | null
|
|
}
|
|
|
|
export type MihomeEnvSampleMinAggregateOutputType = {
|
|
id: number | null
|
|
deviceId: number | null
|
|
date: Date | null
|
|
temperature: number | null
|
|
humidity: number | null
|
|
temperatureAvg: number | null
|
|
humidityAvg: number | null
|
|
temperatureMin: number | null
|
|
temperatureMax: number | null
|
|
humidityMin: number | null
|
|
humidityMax: number | null
|
|
origin: string | null
|
|
sampledAt: Date | null
|
|
createdAt: Date | null
|
|
}
|
|
|
|
export type MihomeEnvSampleMaxAggregateOutputType = {
|
|
id: number | null
|
|
deviceId: number | null
|
|
date: Date | null
|
|
temperature: number | null
|
|
humidity: number | null
|
|
temperatureAvg: number | null
|
|
humidityAvg: number | null
|
|
temperatureMin: number | null
|
|
temperatureMax: number | null
|
|
humidityMin: number | null
|
|
humidityMax: number | null
|
|
origin: string | null
|
|
sampledAt: Date | null
|
|
createdAt: Date | null
|
|
}
|
|
|
|
export type MihomeEnvSampleCountAggregateOutputType = {
|
|
id: number
|
|
deviceId: number
|
|
date: number
|
|
temperature: number
|
|
humidity: number
|
|
temperatureAvg: number
|
|
humidityAvg: number
|
|
temperatureMin: number
|
|
temperatureMax: number
|
|
humidityMin: number
|
|
humidityMax: number
|
|
origin: number
|
|
sampledAt: number
|
|
raw: number
|
|
createdAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type MihomeEnvSampleAvgAggregateInputType = {
|
|
id?: true
|
|
deviceId?: true
|
|
temperature?: true
|
|
humidity?: true
|
|
temperatureAvg?: true
|
|
humidityAvg?: true
|
|
temperatureMin?: true
|
|
temperatureMax?: true
|
|
humidityMin?: true
|
|
humidityMax?: true
|
|
}
|
|
|
|
export type MihomeEnvSampleSumAggregateInputType = {
|
|
id?: true
|
|
deviceId?: true
|
|
temperature?: true
|
|
humidity?: true
|
|
temperatureAvg?: true
|
|
humidityAvg?: true
|
|
temperatureMin?: true
|
|
temperatureMax?: true
|
|
humidityMin?: true
|
|
humidityMax?: true
|
|
}
|
|
|
|
export type MihomeEnvSampleMinAggregateInputType = {
|
|
id?: true
|
|
deviceId?: true
|
|
date?: true
|
|
temperature?: true
|
|
humidity?: true
|
|
temperatureAvg?: true
|
|
humidityAvg?: true
|
|
temperatureMin?: true
|
|
temperatureMax?: true
|
|
humidityMin?: true
|
|
humidityMax?: true
|
|
origin?: true
|
|
sampledAt?: true
|
|
createdAt?: true
|
|
}
|
|
|
|
export type MihomeEnvSampleMaxAggregateInputType = {
|
|
id?: true
|
|
deviceId?: true
|
|
date?: true
|
|
temperature?: true
|
|
humidity?: true
|
|
temperatureAvg?: true
|
|
humidityAvg?: true
|
|
temperatureMin?: true
|
|
temperatureMax?: true
|
|
humidityMin?: true
|
|
humidityMax?: true
|
|
origin?: true
|
|
sampledAt?: true
|
|
createdAt?: true
|
|
}
|
|
|
|
export type MihomeEnvSampleCountAggregateInputType = {
|
|
id?: true
|
|
deviceId?: true
|
|
date?: true
|
|
temperature?: true
|
|
humidity?: true
|
|
temperatureAvg?: true
|
|
humidityAvg?: true
|
|
temperatureMin?: true
|
|
temperatureMax?: true
|
|
humidityMin?: true
|
|
humidityMax?: true
|
|
origin?: true
|
|
sampledAt?: true
|
|
raw?: true
|
|
createdAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type MihomeEnvSampleAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MihomeEnvSample to aggregate.
|
|
*/
|
|
where?: Prisma.MihomeEnvSampleWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MihomeEnvSamples to fetch.
|
|
*/
|
|
orderBy?: Prisma.MihomeEnvSampleOrderByWithRelationInput | Prisma.MihomeEnvSampleOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.MihomeEnvSampleWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MihomeEnvSamples 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` MihomeEnvSamples.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned MihomeEnvSamples
|
|
**/
|
|
_count?: true | MihomeEnvSampleCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: MihomeEnvSampleAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: MihomeEnvSampleSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: MihomeEnvSampleMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: MihomeEnvSampleMaxAggregateInputType
|
|
}
|
|
|
|
export type GetMihomeEnvSampleAggregateType<T extends MihomeEnvSampleAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateMihomeEnvSample]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateMihomeEnvSample[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateMihomeEnvSample[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type MihomeEnvSampleGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.MihomeEnvSampleWhereInput
|
|
orderBy?: Prisma.MihomeEnvSampleOrderByWithAggregationInput | Prisma.MihomeEnvSampleOrderByWithAggregationInput[]
|
|
by: Prisma.MihomeEnvSampleScalarFieldEnum[] | Prisma.MihomeEnvSampleScalarFieldEnum
|
|
having?: Prisma.MihomeEnvSampleScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: MihomeEnvSampleCountAggregateInputType | true
|
|
_avg?: MihomeEnvSampleAvgAggregateInputType
|
|
_sum?: MihomeEnvSampleSumAggregateInputType
|
|
_min?: MihomeEnvSampleMinAggregateInputType
|
|
_max?: MihomeEnvSampleMaxAggregateInputType
|
|
}
|
|
|
|
export type MihomeEnvSampleGroupByOutputType = {
|
|
id: number
|
|
deviceId: number
|
|
date: Date
|
|
temperature: number | null
|
|
humidity: number | null
|
|
temperatureAvg: number | null
|
|
humidityAvg: number | null
|
|
temperatureMin: number | null
|
|
temperatureMax: number | null
|
|
humidityMin: number | null
|
|
humidityMax: number | null
|
|
origin: string
|
|
sampledAt: Date | null
|
|
raw: runtime.JsonValue | null
|
|
createdAt: Date
|
|
_count: MihomeEnvSampleCountAggregateOutputType | null
|
|
_avg: MihomeEnvSampleAvgAggregateOutputType | null
|
|
_sum: MihomeEnvSampleSumAggregateOutputType | null
|
|
_min: MihomeEnvSampleMinAggregateOutputType | null
|
|
_max: MihomeEnvSampleMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetMihomeEnvSampleGroupByPayload<T extends MihomeEnvSampleGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<MihomeEnvSampleGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof MihomeEnvSampleGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], MihomeEnvSampleGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], MihomeEnvSampleGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type MihomeEnvSampleWhereInput = {
|
|
AND?: Prisma.MihomeEnvSampleWhereInput | Prisma.MihomeEnvSampleWhereInput[]
|
|
OR?: Prisma.MihomeEnvSampleWhereInput[]
|
|
NOT?: Prisma.MihomeEnvSampleWhereInput | Prisma.MihomeEnvSampleWhereInput[]
|
|
id?: Prisma.IntFilter<"MihomeEnvSample"> | number
|
|
deviceId?: Prisma.IntFilter<"MihomeEnvSample"> | number
|
|
date?: Prisma.DateTimeFilter<"MihomeEnvSample"> | Date | string
|
|
temperature?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
humidity?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
temperatureAvg?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
humidityAvg?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
temperatureMin?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
temperatureMax?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
humidityMin?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
humidityMax?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
origin?: Prisma.StringFilter<"MihomeEnvSample"> | string
|
|
sampledAt?: Prisma.DateTimeNullableFilter<"MihomeEnvSample"> | Date | string | null
|
|
raw?: Prisma.JsonNullableFilter<"MihomeEnvSample">
|
|
createdAt?: Prisma.DateTimeFilter<"MihomeEnvSample"> | Date | string
|
|
device?: Prisma.XOR<Prisma.MihomeDeviceScalarRelationFilter, Prisma.MihomeDeviceWhereInput>
|
|
}
|
|
|
|
export type MihomeEnvSampleOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
deviceId?: Prisma.SortOrder
|
|
date?: Prisma.SortOrder
|
|
temperature?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
humidity?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
temperatureAvg?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
humidityAvg?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
temperatureMin?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
temperatureMax?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
humidityMin?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
humidityMax?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
origin?: Prisma.SortOrder
|
|
sampledAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
raw?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
device?: Prisma.MihomeDeviceOrderByWithRelationInput
|
|
}
|
|
|
|
export type MihomeEnvSampleWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
deviceId_date?: Prisma.MihomeEnvSampleDeviceIdDateCompoundUniqueInput
|
|
AND?: Prisma.MihomeEnvSampleWhereInput | Prisma.MihomeEnvSampleWhereInput[]
|
|
OR?: Prisma.MihomeEnvSampleWhereInput[]
|
|
NOT?: Prisma.MihomeEnvSampleWhereInput | Prisma.MihomeEnvSampleWhereInput[]
|
|
deviceId?: Prisma.IntFilter<"MihomeEnvSample"> | number
|
|
date?: Prisma.DateTimeFilter<"MihomeEnvSample"> | Date | string
|
|
temperature?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
humidity?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
temperatureAvg?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
humidityAvg?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
temperatureMin?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
temperatureMax?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
humidityMin?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
humidityMax?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
origin?: Prisma.StringFilter<"MihomeEnvSample"> | string
|
|
sampledAt?: Prisma.DateTimeNullableFilter<"MihomeEnvSample"> | Date | string | null
|
|
raw?: Prisma.JsonNullableFilter<"MihomeEnvSample">
|
|
createdAt?: Prisma.DateTimeFilter<"MihomeEnvSample"> | Date | string
|
|
device?: Prisma.XOR<Prisma.MihomeDeviceScalarRelationFilter, Prisma.MihomeDeviceWhereInput>
|
|
}, "id" | "deviceId_date">
|
|
|
|
export type MihomeEnvSampleOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
deviceId?: Prisma.SortOrder
|
|
date?: Prisma.SortOrder
|
|
temperature?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
humidity?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
temperatureAvg?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
humidityAvg?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
temperatureMin?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
temperatureMax?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
humidityMin?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
humidityMax?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
origin?: Prisma.SortOrder
|
|
sampledAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
raw?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
_count?: Prisma.MihomeEnvSampleCountOrderByAggregateInput
|
|
_avg?: Prisma.MihomeEnvSampleAvgOrderByAggregateInput
|
|
_max?: Prisma.MihomeEnvSampleMaxOrderByAggregateInput
|
|
_min?: Prisma.MihomeEnvSampleMinOrderByAggregateInput
|
|
_sum?: Prisma.MihomeEnvSampleSumOrderByAggregateInput
|
|
}
|
|
|
|
export type MihomeEnvSampleScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.MihomeEnvSampleScalarWhereWithAggregatesInput | Prisma.MihomeEnvSampleScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.MihomeEnvSampleScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.MihomeEnvSampleScalarWhereWithAggregatesInput | Prisma.MihomeEnvSampleScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.IntWithAggregatesFilter<"MihomeEnvSample"> | number
|
|
deviceId?: Prisma.IntWithAggregatesFilter<"MihomeEnvSample"> | number
|
|
date?: Prisma.DateTimeWithAggregatesFilter<"MihomeEnvSample"> | Date | string
|
|
temperature?: Prisma.FloatNullableWithAggregatesFilter<"MihomeEnvSample"> | number | null
|
|
humidity?: Prisma.FloatNullableWithAggregatesFilter<"MihomeEnvSample"> | number | null
|
|
temperatureAvg?: Prisma.FloatNullableWithAggregatesFilter<"MihomeEnvSample"> | number | null
|
|
humidityAvg?: Prisma.FloatNullableWithAggregatesFilter<"MihomeEnvSample"> | number | null
|
|
temperatureMin?: Prisma.FloatNullableWithAggregatesFilter<"MihomeEnvSample"> | number | null
|
|
temperatureMax?: Prisma.FloatNullableWithAggregatesFilter<"MihomeEnvSample"> | number | null
|
|
humidityMin?: Prisma.FloatNullableWithAggregatesFilter<"MihomeEnvSample"> | number | null
|
|
humidityMax?: Prisma.FloatNullableWithAggregatesFilter<"MihomeEnvSample"> | number | null
|
|
origin?: Prisma.StringWithAggregatesFilter<"MihomeEnvSample"> | string
|
|
sampledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"MihomeEnvSample"> | Date | string | null
|
|
raw?: Prisma.JsonNullableWithAggregatesFilter<"MihomeEnvSample">
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"MihomeEnvSample"> | Date | string
|
|
}
|
|
|
|
export type MihomeEnvSampleCreateInput = {
|
|
date: Date | string
|
|
temperature?: number | null
|
|
humidity?: number | null
|
|
temperatureAvg?: number | null
|
|
humidityAvg?: number | null
|
|
temperatureMin?: number | null
|
|
temperatureMax?: number | null
|
|
humidityMin?: number | null
|
|
humidityMax?: number | null
|
|
origin?: string
|
|
sampledAt?: Date | string | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
device: Prisma.MihomeDeviceCreateNestedOneWithoutSamplesInput
|
|
}
|
|
|
|
export type MihomeEnvSampleUncheckedCreateInput = {
|
|
id?: number
|
|
deviceId: number
|
|
date: Date | string
|
|
temperature?: number | null
|
|
humidity?: number | null
|
|
temperatureAvg?: number | null
|
|
humidityAvg?: number | null
|
|
temperatureMin?: number | null
|
|
temperatureMax?: number | null
|
|
humidityMin?: number | null
|
|
humidityMax?: number | null
|
|
origin?: string
|
|
sampledAt?: Date | string | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type MihomeEnvSampleUpdateInput = {
|
|
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
temperature?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidity?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureMin?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureMax?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityMin?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityMax?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
origin?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sampledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
device?: Prisma.MihomeDeviceUpdateOneRequiredWithoutSamplesNestedInput
|
|
}
|
|
|
|
export type MihomeEnvSampleUncheckedUpdateInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
deviceId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
temperature?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidity?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureMin?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureMax?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityMin?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityMax?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
origin?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sampledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MihomeEnvSampleCreateManyInput = {
|
|
id?: number
|
|
deviceId: number
|
|
date: Date | string
|
|
temperature?: number | null
|
|
humidity?: number | null
|
|
temperatureAvg?: number | null
|
|
humidityAvg?: number | null
|
|
temperatureMin?: number | null
|
|
temperatureMax?: number | null
|
|
humidityMin?: number | null
|
|
humidityMax?: number | null
|
|
origin?: string
|
|
sampledAt?: Date | string | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type MihomeEnvSampleUpdateManyMutationInput = {
|
|
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
temperature?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidity?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureMin?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureMax?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityMin?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityMax?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
origin?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sampledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MihomeEnvSampleUncheckedUpdateManyInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
deviceId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
temperature?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidity?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureMin?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureMax?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityMin?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityMax?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
origin?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sampledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MihomeEnvSampleListRelationFilter = {
|
|
every?: Prisma.MihomeEnvSampleWhereInput
|
|
some?: Prisma.MihomeEnvSampleWhereInput
|
|
none?: Prisma.MihomeEnvSampleWhereInput
|
|
}
|
|
|
|
export type MihomeEnvSampleOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MihomeEnvSampleDeviceIdDateCompoundUniqueInput = {
|
|
deviceId: number
|
|
date: Date | string
|
|
}
|
|
|
|
export type MihomeEnvSampleCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
deviceId?: Prisma.SortOrder
|
|
date?: Prisma.SortOrder
|
|
temperature?: Prisma.SortOrder
|
|
humidity?: Prisma.SortOrder
|
|
temperatureAvg?: Prisma.SortOrder
|
|
humidityAvg?: Prisma.SortOrder
|
|
temperatureMin?: Prisma.SortOrder
|
|
temperatureMax?: Prisma.SortOrder
|
|
humidityMin?: Prisma.SortOrder
|
|
humidityMax?: Prisma.SortOrder
|
|
origin?: Prisma.SortOrder
|
|
sampledAt?: Prisma.SortOrder
|
|
raw?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MihomeEnvSampleAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
deviceId?: Prisma.SortOrder
|
|
temperature?: Prisma.SortOrder
|
|
humidity?: Prisma.SortOrder
|
|
temperatureAvg?: Prisma.SortOrder
|
|
humidityAvg?: Prisma.SortOrder
|
|
temperatureMin?: Prisma.SortOrder
|
|
temperatureMax?: Prisma.SortOrder
|
|
humidityMin?: Prisma.SortOrder
|
|
humidityMax?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MihomeEnvSampleMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
deviceId?: Prisma.SortOrder
|
|
date?: Prisma.SortOrder
|
|
temperature?: Prisma.SortOrder
|
|
humidity?: Prisma.SortOrder
|
|
temperatureAvg?: Prisma.SortOrder
|
|
humidityAvg?: Prisma.SortOrder
|
|
temperatureMin?: Prisma.SortOrder
|
|
temperatureMax?: Prisma.SortOrder
|
|
humidityMin?: Prisma.SortOrder
|
|
humidityMax?: Prisma.SortOrder
|
|
origin?: Prisma.SortOrder
|
|
sampledAt?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MihomeEnvSampleMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
deviceId?: Prisma.SortOrder
|
|
date?: Prisma.SortOrder
|
|
temperature?: Prisma.SortOrder
|
|
humidity?: Prisma.SortOrder
|
|
temperatureAvg?: Prisma.SortOrder
|
|
humidityAvg?: Prisma.SortOrder
|
|
temperatureMin?: Prisma.SortOrder
|
|
temperatureMax?: Prisma.SortOrder
|
|
humidityMin?: Prisma.SortOrder
|
|
humidityMax?: Prisma.SortOrder
|
|
origin?: Prisma.SortOrder
|
|
sampledAt?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MihomeEnvSampleSumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
deviceId?: Prisma.SortOrder
|
|
temperature?: Prisma.SortOrder
|
|
humidity?: Prisma.SortOrder
|
|
temperatureAvg?: Prisma.SortOrder
|
|
humidityAvg?: Prisma.SortOrder
|
|
temperatureMin?: Prisma.SortOrder
|
|
temperatureMax?: Prisma.SortOrder
|
|
humidityMin?: Prisma.SortOrder
|
|
humidityMax?: Prisma.SortOrder
|
|
}
|
|
|
|
export type MihomeEnvSampleCreateNestedManyWithoutDeviceInput = {
|
|
create?: Prisma.XOR<Prisma.MihomeEnvSampleCreateWithoutDeviceInput, Prisma.MihomeEnvSampleUncheckedCreateWithoutDeviceInput> | Prisma.MihomeEnvSampleCreateWithoutDeviceInput[] | Prisma.MihomeEnvSampleUncheckedCreateWithoutDeviceInput[]
|
|
connectOrCreate?: Prisma.MihomeEnvSampleCreateOrConnectWithoutDeviceInput | Prisma.MihomeEnvSampleCreateOrConnectWithoutDeviceInput[]
|
|
createMany?: Prisma.MihomeEnvSampleCreateManyDeviceInputEnvelope
|
|
connect?: Prisma.MihomeEnvSampleWhereUniqueInput | Prisma.MihomeEnvSampleWhereUniqueInput[]
|
|
}
|
|
|
|
export type MihomeEnvSampleUncheckedCreateNestedManyWithoutDeviceInput = {
|
|
create?: Prisma.XOR<Prisma.MihomeEnvSampleCreateWithoutDeviceInput, Prisma.MihomeEnvSampleUncheckedCreateWithoutDeviceInput> | Prisma.MihomeEnvSampleCreateWithoutDeviceInput[] | Prisma.MihomeEnvSampleUncheckedCreateWithoutDeviceInput[]
|
|
connectOrCreate?: Prisma.MihomeEnvSampleCreateOrConnectWithoutDeviceInput | Prisma.MihomeEnvSampleCreateOrConnectWithoutDeviceInput[]
|
|
createMany?: Prisma.MihomeEnvSampleCreateManyDeviceInputEnvelope
|
|
connect?: Prisma.MihomeEnvSampleWhereUniqueInput | Prisma.MihomeEnvSampleWhereUniqueInput[]
|
|
}
|
|
|
|
export type MihomeEnvSampleUpdateManyWithoutDeviceNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MihomeEnvSampleCreateWithoutDeviceInput, Prisma.MihomeEnvSampleUncheckedCreateWithoutDeviceInput> | Prisma.MihomeEnvSampleCreateWithoutDeviceInput[] | Prisma.MihomeEnvSampleUncheckedCreateWithoutDeviceInput[]
|
|
connectOrCreate?: Prisma.MihomeEnvSampleCreateOrConnectWithoutDeviceInput | Prisma.MihomeEnvSampleCreateOrConnectWithoutDeviceInput[]
|
|
upsert?: Prisma.MihomeEnvSampleUpsertWithWhereUniqueWithoutDeviceInput | Prisma.MihomeEnvSampleUpsertWithWhereUniqueWithoutDeviceInput[]
|
|
createMany?: Prisma.MihomeEnvSampleCreateManyDeviceInputEnvelope
|
|
set?: Prisma.MihomeEnvSampleWhereUniqueInput | Prisma.MihomeEnvSampleWhereUniqueInput[]
|
|
disconnect?: Prisma.MihomeEnvSampleWhereUniqueInput | Prisma.MihomeEnvSampleWhereUniqueInput[]
|
|
delete?: Prisma.MihomeEnvSampleWhereUniqueInput | Prisma.MihomeEnvSampleWhereUniqueInput[]
|
|
connect?: Prisma.MihomeEnvSampleWhereUniqueInput | Prisma.MihomeEnvSampleWhereUniqueInput[]
|
|
update?: Prisma.MihomeEnvSampleUpdateWithWhereUniqueWithoutDeviceInput | Prisma.MihomeEnvSampleUpdateWithWhereUniqueWithoutDeviceInput[]
|
|
updateMany?: Prisma.MihomeEnvSampleUpdateManyWithWhereWithoutDeviceInput | Prisma.MihomeEnvSampleUpdateManyWithWhereWithoutDeviceInput[]
|
|
deleteMany?: Prisma.MihomeEnvSampleScalarWhereInput | Prisma.MihomeEnvSampleScalarWhereInput[]
|
|
}
|
|
|
|
export type MihomeEnvSampleUncheckedUpdateManyWithoutDeviceNestedInput = {
|
|
create?: Prisma.XOR<Prisma.MihomeEnvSampleCreateWithoutDeviceInput, Prisma.MihomeEnvSampleUncheckedCreateWithoutDeviceInput> | Prisma.MihomeEnvSampleCreateWithoutDeviceInput[] | Prisma.MihomeEnvSampleUncheckedCreateWithoutDeviceInput[]
|
|
connectOrCreate?: Prisma.MihomeEnvSampleCreateOrConnectWithoutDeviceInput | Prisma.MihomeEnvSampleCreateOrConnectWithoutDeviceInput[]
|
|
upsert?: Prisma.MihomeEnvSampleUpsertWithWhereUniqueWithoutDeviceInput | Prisma.MihomeEnvSampleUpsertWithWhereUniqueWithoutDeviceInput[]
|
|
createMany?: Prisma.MihomeEnvSampleCreateManyDeviceInputEnvelope
|
|
set?: Prisma.MihomeEnvSampleWhereUniqueInput | Prisma.MihomeEnvSampleWhereUniqueInput[]
|
|
disconnect?: Prisma.MihomeEnvSampleWhereUniqueInput | Prisma.MihomeEnvSampleWhereUniqueInput[]
|
|
delete?: Prisma.MihomeEnvSampleWhereUniqueInput | Prisma.MihomeEnvSampleWhereUniqueInput[]
|
|
connect?: Prisma.MihomeEnvSampleWhereUniqueInput | Prisma.MihomeEnvSampleWhereUniqueInput[]
|
|
update?: Prisma.MihomeEnvSampleUpdateWithWhereUniqueWithoutDeviceInput | Prisma.MihomeEnvSampleUpdateWithWhereUniqueWithoutDeviceInput[]
|
|
updateMany?: Prisma.MihomeEnvSampleUpdateManyWithWhereWithoutDeviceInput | Prisma.MihomeEnvSampleUpdateManyWithWhereWithoutDeviceInput[]
|
|
deleteMany?: Prisma.MihomeEnvSampleScalarWhereInput | Prisma.MihomeEnvSampleScalarWhereInput[]
|
|
}
|
|
|
|
export type NullableFloatFieldUpdateOperationsInput = {
|
|
set?: number | null
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
export type MihomeEnvSampleCreateWithoutDeviceInput = {
|
|
date: Date | string
|
|
temperature?: number | null
|
|
humidity?: number | null
|
|
temperatureAvg?: number | null
|
|
humidityAvg?: number | null
|
|
temperatureMin?: number | null
|
|
temperatureMax?: number | null
|
|
humidityMin?: number | null
|
|
humidityMax?: number | null
|
|
origin?: string
|
|
sampledAt?: Date | string | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type MihomeEnvSampleUncheckedCreateWithoutDeviceInput = {
|
|
id?: number
|
|
date: Date | string
|
|
temperature?: number | null
|
|
humidity?: number | null
|
|
temperatureAvg?: number | null
|
|
humidityAvg?: number | null
|
|
temperatureMin?: number | null
|
|
temperatureMax?: number | null
|
|
humidityMin?: number | null
|
|
humidityMax?: number | null
|
|
origin?: string
|
|
sampledAt?: Date | string | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type MihomeEnvSampleCreateOrConnectWithoutDeviceInput = {
|
|
where: Prisma.MihomeEnvSampleWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.MihomeEnvSampleCreateWithoutDeviceInput, Prisma.MihomeEnvSampleUncheckedCreateWithoutDeviceInput>
|
|
}
|
|
|
|
export type MihomeEnvSampleCreateManyDeviceInputEnvelope = {
|
|
data: Prisma.MihomeEnvSampleCreateManyDeviceInput | Prisma.MihomeEnvSampleCreateManyDeviceInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type MihomeEnvSampleUpsertWithWhereUniqueWithoutDeviceInput = {
|
|
where: Prisma.MihomeEnvSampleWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.MihomeEnvSampleUpdateWithoutDeviceInput, Prisma.MihomeEnvSampleUncheckedUpdateWithoutDeviceInput>
|
|
create: Prisma.XOR<Prisma.MihomeEnvSampleCreateWithoutDeviceInput, Prisma.MihomeEnvSampleUncheckedCreateWithoutDeviceInput>
|
|
}
|
|
|
|
export type MihomeEnvSampleUpdateWithWhereUniqueWithoutDeviceInput = {
|
|
where: Prisma.MihomeEnvSampleWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.MihomeEnvSampleUpdateWithoutDeviceInput, Prisma.MihomeEnvSampleUncheckedUpdateWithoutDeviceInput>
|
|
}
|
|
|
|
export type MihomeEnvSampleUpdateManyWithWhereWithoutDeviceInput = {
|
|
where: Prisma.MihomeEnvSampleScalarWhereInput
|
|
data: Prisma.XOR<Prisma.MihomeEnvSampleUpdateManyMutationInput, Prisma.MihomeEnvSampleUncheckedUpdateManyWithoutDeviceInput>
|
|
}
|
|
|
|
export type MihomeEnvSampleScalarWhereInput = {
|
|
AND?: Prisma.MihomeEnvSampleScalarWhereInput | Prisma.MihomeEnvSampleScalarWhereInput[]
|
|
OR?: Prisma.MihomeEnvSampleScalarWhereInput[]
|
|
NOT?: Prisma.MihomeEnvSampleScalarWhereInput | Prisma.MihomeEnvSampleScalarWhereInput[]
|
|
id?: Prisma.IntFilter<"MihomeEnvSample"> | number
|
|
deviceId?: Prisma.IntFilter<"MihomeEnvSample"> | number
|
|
date?: Prisma.DateTimeFilter<"MihomeEnvSample"> | Date | string
|
|
temperature?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
humidity?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
temperatureAvg?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
humidityAvg?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
temperatureMin?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
temperatureMax?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
humidityMin?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
humidityMax?: Prisma.FloatNullableFilter<"MihomeEnvSample"> | number | null
|
|
origin?: Prisma.StringFilter<"MihomeEnvSample"> | string
|
|
sampledAt?: Prisma.DateTimeNullableFilter<"MihomeEnvSample"> | Date | string | null
|
|
raw?: Prisma.JsonNullableFilter<"MihomeEnvSample">
|
|
createdAt?: Prisma.DateTimeFilter<"MihomeEnvSample"> | Date | string
|
|
}
|
|
|
|
export type MihomeEnvSampleCreateManyDeviceInput = {
|
|
id?: number
|
|
date: Date | string
|
|
temperature?: number | null
|
|
humidity?: number | null
|
|
temperatureAvg?: number | null
|
|
humidityAvg?: number | null
|
|
temperatureMin?: number | null
|
|
temperatureMax?: number | null
|
|
humidityMin?: number | null
|
|
humidityMax?: number | null
|
|
origin?: string
|
|
sampledAt?: Date | string | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type MihomeEnvSampleUpdateWithoutDeviceInput = {
|
|
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
temperature?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidity?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureMin?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureMax?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityMin?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityMax?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
origin?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sampledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MihomeEnvSampleUncheckedUpdateWithoutDeviceInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
temperature?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidity?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureMin?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureMax?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityMin?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityMax?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
origin?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sampledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MihomeEnvSampleUncheckedUpdateManyWithoutDeviceInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
temperature?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidity?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityAvg?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureMin?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
temperatureMax?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityMin?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
humidityMax?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
origin?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sampledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
raw?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
|
|
|
|
export type MihomeEnvSampleSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
deviceId?: boolean
|
|
date?: boolean
|
|
temperature?: boolean
|
|
humidity?: boolean
|
|
temperatureAvg?: boolean
|
|
humidityAvg?: boolean
|
|
temperatureMin?: boolean
|
|
temperatureMax?: boolean
|
|
humidityMin?: boolean
|
|
humidityMax?: boolean
|
|
origin?: boolean
|
|
sampledAt?: boolean
|
|
raw?: boolean
|
|
createdAt?: boolean
|
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["mihomeEnvSample"]>
|
|
|
|
export type MihomeEnvSampleSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
deviceId?: boolean
|
|
date?: boolean
|
|
temperature?: boolean
|
|
humidity?: boolean
|
|
temperatureAvg?: boolean
|
|
humidityAvg?: boolean
|
|
temperatureMin?: boolean
|
|
temperatureMax?: boolean
|
|
humidityMin?: boolean
|
|
humidityMax?: boolean
|
|
origin?: boolean
|
|
sampledAt?: boolean
|
|
raw?: boolean
|
|
createdAt?: boolean
|
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["mihomeEnvSample"]>
|
|
|
|
export type MihomeEnvSampleSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
deviceId?: boolean
|
|
date?: boolean
|
|
temperature?: boolean
|
|
humidity?: boolean
|
|
temperatureAvg?: boolean
|
|
humidityAvg?: boolean
|
|
temperatureMin?: boolean
|
|
temperatureMax?: boolean
|
|
humidityMin?: boolean
|
|
humidityMax?: boolean
|
|
origin?: boolean
|
|
sampledAt?: boolean
|
|
raw?: boolean
|
|
createdAt?: boolean
|
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["mihomeEnvSample"]>
|
|
|
|
export type MihomeEnvSampleSelectScalar = {
|
|
id?: boolean
|
|
deviceId?: boolean
|
|
date?: boolean
|
|
temperature?: boolean
|
|
humidity?: boolean
|
|
temperatureAvg?: boolean
|
|
humidityAvg?: boolean
|
|
temperatureMin?: boolean
|
|
temperatureMax?: boolean
|
|
humidityMin?: boolean
|
|
humidityMax?: boolean
|
|
origin?: boolean
|
|
sampledAt?: boolean
|
|
raw?: boolean
|
|
createdAt?: boolean
|
|
}
|
|
|
|
export type MihomeEnvSampleOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "deviceId" | "date" | "temperature" | "humidity" | "temperatureAvg" | "humidityAvg" | "temperatureMin" | "temperatureMax" | "humidityMin" | "humidityMax" | "origin" | "sampledAt" | "raw" | "createdAt", ExtArgs["result"]["mihomeEnvSample"]>
|
|
export type MihomeEnvSampleInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
|
}
|
|
export type MihomeEnvSampleIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
|
}
|
|
export type MihomeEnvSampleIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $MihomeEnvSamplePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "MihomeEnvSample"
|
|
objects: {
|
|
device: Prisma.$MihomeDevicePayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
deviceId: number
|
|
date: Date
|
|
temperature: number | null
|
|
humidity: number | null
|
|
temperatureAvg: number | null
|
|
humidityAvg: number | null
|
|
temperatureMin: number | null
|
|
temperatureMax: number | null
|
|
humidityMin: number | null
|
|
humidityMax: number | null
|
|
origin: string
|
|
sampledAt: Date | null
|
|
raw: runtime.JsonValue | null
|
|
createdAt: Date
|
|
}, ExtArgs["result"]["mihomeEnvSample"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type MihomeEnvSampleGetPayload<S extends boolean | null | undefined | MihomeEnvSampleDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$MihomeEnvSamplePayload, S>
|
|
|
|
export type MihomeEnvSampleCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<MihomeEnvSampleFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: MihomeEnvSampleCountAggregateInputType | true
|
|
}
|
|
|
|
export interface MihomeEnvSampleDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['MihomeEnvSample'], meta: { name: 'MihomeEnvSample' } }
|
|
/**
|
|
* Find zero or one MihomeEnvSample that matches the filter.
|
|
* @param {MihomeEnvSampleFindUniqueArgs} args - Arguments to find a MihomeEnvSample
|
|
* @example
|
|
* // Get one MihomeEnvSample
|
|
* const mihomeEnvSample = await prisma.mihomeEnvSample.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends MihomeEnvSampleFindUniqueArgs>(args: Prisma.SelectSubset<T, MihomeEnvSampleFindUniqueArgs<ExtArgs>>): Prisma.Prisma__MihomeEnvSampleClient<runtime.Types.Result.GetResult<Prisma.$MihomeEnvSamplePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one MihomeEnvSample that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {MihomeEnvSampleFindUniqueOrThrowArgs} args - Arguments to find a MihomeEnvSample
|
|
* @example
|
|
* // Get one MihomeEnvSample
|
|
* const mihomeEnvSample = await prisma.mihomeEnvSample.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends MihomeEnvSampleFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, MihomeEnvSampleFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__MihomeEnvSampleClient<runtime.Types.Result.GetResult<Prisma.$MihomeEnvSamplePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first MihomeEnvSample 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 {MihomeEnvSampleFindFirstArgs} args - Arguments to find a MihomeEnvSample
|
|
* @example
|
|
* // Get one MihomeEnvSample
|
|
* const mihomeEnvSample = await prisma.mihomeEnvSample.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends MihomeEnvSampleFindFirstArgs>(args?: Prisma.SelectSubset<T, MihomeEnvSampleFindFirstArgs<ExtArgs>>): Prisma.Prisma__MihomeEnvSampleClient<runtime.Types.Result.GetResult<Prisma.$MihomeEnvSamplePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first MihomeEnvSample 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 {MihomeEnvSampleFindFirstOrThrowArgs} args - Arguments to find a MihomeEnvSample
|
|
* @example
|
|
* // Get one MihomeEnvSample
|
|
* const mihomeEnvSample = await prisma.mihomeEnvSample.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends MihomeEnvSampleFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, MihomeEnvSampleFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__MihomeEnvSampleClient<runtime.Types.Result.GetResult<Prisma.$MihomeEnvSamplePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more MihomeEnvSamples 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 {MihomeEnvSampleFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all MihomeEnvSamples
|
|
* const mihomeEnvSamples = await prisma.mihomeEnvSample.findMany()
|
|
*
|
|
* // Get first 10 MihomeEnvSamples
|
|
* const mihomeEnvSamples = await prisma.mihomeEnvSample.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const mihomeEnvSampleWithIdOnly = await prisma.mihomeEnvSample.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends MihomeEnvSampleFindManyArgs>(args?: Prisma.SelectSubset<T, MihomeEnvSampleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeEnvSamplePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a MihomeEnvSample.
|
|
* @param {MihomeEnvSampleCreateArgs} args - Arguments to create a MihomeEnvSample.
|
|
* @example
|
|
* // Create one MihomeEnvSample
|
|
* const MihomeEnvSample = await prisma.mihomeEnvSample.create({
|
|
* data: {
|
|
* // ... data to create a MihomeEnvSample
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends MihomeEnvSampleCreateArgs>(args: Prisma.SelectSubset<T, MihomeEnvSampleCreateArgs<ExtArgs>>): Prisma.Prisma__MihomeEnvSampleClient<runtime.Types.Result.GetResult<Prisma.$MihomeEnvSamplePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many MihomeEnvSamples.
|
|
* @param {MihomeEnvSampleCreateManyArgs} args - Arguments to create many MihomeEnvSamples.
|
|
* @example
|
|
* // Create many MihomeEnvSamples
|
|
* const mihomeEnvSample = await prisma.mihomeEnvSample.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends MihomeEnvSampleCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeEnvSampleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many MihomeEnvSamples and returns the data saved in the database.
|
|
* @param {MihomeEnvSampleCreateManyAndReturnArgs} args - Arguments to create many MihomeEnvSamples.
|
|
* @example
|
|
* // Create many MihomeEnvSamples
|
|
* const mihomeEnvSample = await prisma.mihomeEnvSample.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many MihomeEnvSamples and only return the `id`
|
|
* const mihomeEnvSampleWithIdOnly = await prisma.mihomeEnvSample.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 MihomeEnvSampleCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MihomeEnvSampleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeEnvSamplePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a MihomeEnvSample.
|
|
* @param {MihomeEnvSampleDeleteArgs} args - Arguments to delete one MihomeEnvSample.
|
|
* @example
|
|
* // Delete one MihomeEnvSample
|
|
* const MihomeEnvSample = await prisma.mihomeEnvSample.delete({
|
|
* where: {
|
|
* // ... filter to delete one MihomeEnvSample
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends MihomeEnvSampleDeleteArgs>(args: Prisma.SelectSubset<T, MihomeEnvSampleDeleteArgs<ExtArgs>>): Prisma.Prisma__MihomeEnvSampleClient<runtime.Types.Result.GetResult<Prisma.$MihomeEnvSamplePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one MihomeEnvSample.
|
|
* @param {MihomeEnvSampleUpdateArgs} args - Arguments to update one MihomeEnvSample.
|
|
* @example
|
|
* // Update one MihomeEnvSample
|
|
* const mihomeEnvSample = await prisma.mihomeEnvSample.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends MihomeEnvSampleUpdateArgs>(args: Prisma.SelectSubset<T, MihomeEnvSampleUpdateArgs<ExtArgs>>): Prisma.Prisma__MihomeEnvSampleClient<runtime.Types.Result.GetResult<Prisma.$MihomeEnvSamplePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more MihomeEnvSamples.
|
|
* @param {MihomeEnvSampleDeleteManyArgs} args - Arguments to filter MihomeEnvSamples to delete.
|
|
* @example
|
|
* // Delete a few MihomeEnvSamples
|
|
* const { count } = await prisma.mihomeEnvSample.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends MihomeEnvSampleDeleteManyArgs>(args?: Prisma.SelectSubset<T, MihomeEnvSampleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more MihomeEnvSamples.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MihomeEnvSampleUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many MihomeEnvSamples
|
|
* const mihomeEnvSample = await prisma.mihomeEnvSample.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends MihomeEnvSampleUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeEnvSampleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more MihomeEnvSamples and returns the data updated in the database.
|
|
* @param {MihomeEnvSampleUpdateManyAndReturnArgs} args - Arguments to update many MihomeEnvSamples.
|
|
* @example
|
|
* // Update many MihomeEnvSamples
|
|
* const mihomeEnvSample = await prisma.mihomeEnvSample.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more MihomeEnvSamples and only return the `id`
|
|
* const mihomeEnvSampleWithIdOnly = await prisma.mihomeEnvSample.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 MihomeEnvSampleUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MihomeEnvSampleUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeEnvSamplePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one MihomeEnvSample.
|
|
* @param {MihomeEnvSampleUpsertArgs} args - Arguments to update or create a MihomeEnvSample.
|
|
* @example
|
|
* // Update or create a MihomeEnvSample
|
|
* const mihomeEnvSample = await prisma.mihomeEnvSample.upsert({
|
|
* create: {
|
|
* // ... data to create a MihomeEnvSample
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the MihomeEnvSample we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends MihomeEnvSampleUpsertArgs>(args: Prisma.SelectSubset<T, MihomeEnvSampleUpsertArgs<ExtArgs>>): Prisma.Prisma__MihomeEnvSampleClient<runtime.Types.Result.GetResult<Prisma.$MihomeEnvSamplePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of MihomeEnvSamples.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MihomeEnvSampleCountArgs} args - Arguments to filter MihomeEnvSamples to count.
|
|
* @example
|
|
* // Count the number of MihomeEnvSamples
|
|
* const count = await prisma.mihomeEnvSample.count({
|
|
* where: {
|
|
* // ... the filter for the MihomeEnvSamples we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends MihomeEnvSampleCountArgs>(
|
|
args?: Prisma.Subset<T, MihomeEnvSampleCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], MihomeEnvSampleCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a MihomeEnvSample.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MihomeEnvSampleAggregateArgs} 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 MihomeEnvSampleAggregateArgs>(args: Prisma.Subset<T, MihomeEnvSampleAggregateArgs>): Prisma.PrismaPromise<GetMihomeEnvSampleAggregateType<T>>
|
|
|
|
/**
|
|
* Group by MihomeEnvSample.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MihomeEnvSampleGroupByArgs} 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 MihomeEnvSampleGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: MihomeEnvSampleGroupByArgs['orderBy'] }
|
|
: { orderBy?: MihomeEnvSampleGroupByArgs['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, MihomeEnvSampleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMihomeEnvSampleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the MihomeEnvSample model
|
|
*/
|
|
readonly fields: MihomeEnvSampleFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for MihomeEnvSample.
|
|
* 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__MihomeEnvSampleClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
device<T extends Prisma.MihomeDeviceDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.MihomeDeviceDefaultArgs<ExtArgs>>): Prisma.Prisma__MihomeDeviceClient<runtime.Types.Result.GetResult<Prisma.$MihomeDevicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<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 MihomeEnvSample model
|
|
*/
|
|
export interface MihomeEnvSampleFieldRefs {
|
|
readonly id: Prisma.FieldRef<"MihomeEnvSample", 'Int'>
|
|
readonly deviceId: Prisma.FieldRef<"MihomeEnvSample", 'Int'>
|
|
readonly date: Prisma.FieldRef<"MihomeEnvSample", 'DateTime'>
|
|
readonly temperature: Prisma.FieldRef<"MihomeEnvSample", 'Float'>
|
|
readonly humidity: Prisma.FieldRef<"MihomeEnvSample", 'Float'>
|
|
readonly temperatureAvg: Prisma.FieldRef<"MihomeEnvSample", 'Float'>
|
|
readonly humidityAvg: Prisma.FieldRef<"MihomeEnvSample", 'Float'>
|
|
readonly temperatureMin: Prisma.FieldRef<"MihomeEnvSample", 'Float'>
|
|
readonly temperatureMax: Prisma.FieldRef<"MihomeEnvSample", 'Float'>
|
|
readonly humidityMin: Prisma.FieldRef<"MihomeEnvSample", 'Float'>
|
|
readonly humidityMax: Prisma.FieldRef<"MihomeEnvSample", 'Float'>
|
|
readonly origin: Prisma.FieldRef<"MihomeEnvSample", 'String'>
|
|
readonly sampledAt: Prisma.FieldRef<"MihomeEnvSample", 'DateTime'>
|
|
readonly raw: Prisma.FieldRef<"MihomeEnvSample", 'Json'>
|
|
readonly createdAt: Prisma.FieldRef<"MihomeEnvSample", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* MihomeEnvSample findUnique
|
|
*/
|
|
export type MihomeEnvSampleFindUniqueArgs<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
|
|
/**
|
|
* Filter, which MihomeEnvSample to fetch.
|
|
*/
|
|
where: Prisma.MihomeEnvSampleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvSample findUniqueOrThrow
|
|
*/
|
|
export type MihomeEnvSampleFindUniqueOrThrowArgs<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
|
|
/**
|
|
* Filter, which MihomeEnvSample to fetch.
|
|
*/
|
|
where: Prisma.MihomeEnvSampleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvSample findFirst
|
|
*/
|
|
export type MihomeEnvSampleFindFirstArgs<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
|
|
/**
|
|
* Filter, which MihomeEnvSample to fetch.
|
|
*/
|
|
where?: Prisma.MihomeEnvSampleWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MihomeEnvSamples to fetch.
|
|
*/
|
|
orderBy?: Prisma.MihomeEnvSampleOrderByWithRelationInput | Prisma.MihomeEnvSampleOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for MihomeEnvSamples.
|
|
*/
|
|
cursor?: Prisma.MihomeEnvSampleWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MihomeEnvSamples 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` MihomeEnvSamples.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MihomeEnvSamples.
|
|
*/
|
|
distinct?: Prisma.MihomeEnvSampleScalarFieldEnum | Prisma.MihomeEnvSampleScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvSample findFirstOrThrow
|
|
*/
|
|
export type MihomeEnvSampleFindFirstOrThrowArgs<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
|
|
/**
|
|
* Filter, which MihomeEnvSample to fetch.
|
|
*/
|
|
where?: Prisma.MihomeEnvSampleWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MihomeEnvSamples to fetch.
|
|
*/
|
|
orderBy?: Prisma.MihomeEnvSampleOrderByWithRelationInput | Prisma.MihomeEnvSampleOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for MihomeEnvSamples.
|
|
*/
|
|
cursor?: Prisma.MihomeEnvSampleWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MihomeEnvSamples 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` MihomeEnvSamples.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MihomeEnvSamples.
|
|
*/
|
|
distinct?: Prisma.MihomeEnvSampleScalarFieldEnum | Prisma.MihomeEnvSampleScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvSample findMany
|
|
*/
|
|
export type MihomeEnvSampleFindManyArgs<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
|
|
/**
|
|
* Filter, which MihomeEnvSamples to fetch.
|
|
*/
|
|
where?: Prisma.MihomeEnvSampleWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MihomeEnvSamples to fetch.
|
|
*/
|
|
orderBy?: Prisma.MihomeEnvSampleOrderByWithRelationInput | Prisma.MihomeEnvSampleOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing MihomeEnvSamples.
|
|
*/
|
|
cursor?: Prisma.MihomeEnvSampleWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MihomeEnvSamples 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` MihomeEnvSamples.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MihomeEnvSamples.
|
|
*/
|
|
distinct?: Prisma.MihomeEnvSampleScalarFieldEnum | Prisma.MihomeEnvSampleScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvSample create
|
|
*/
|
|
export type MihomeEnvSampleCreateArgs<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
|
|
/**
|
|
* The data needed to create a MihomeEnvSample.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MihomeEnvSampleCreateInput, Prisma.MihomeEnvSampleUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvSample createMany
|
|
*/
|
|
export type MihomeEnvSampleCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many MihomeEnvSamples.
|
|
*/
|
|
data: Prisma.MihomeEnvSampleCreateManyInput | Prisma.MihomeEnvSampleCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvSample createManyAndReturn
|
|
*/
|
|
export type MihomeEnvSampleCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeEnvSample
|
|
*/
|
|
select?: Prisma.MihomeEnvSampleSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeEnvSample
|
|
*/
|
|
omit?: Prisma.MihomeEnvSampleOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many MihomeEnvSamples.
|
|
*/
|
|
data: Prisma.MihomeEnvSampleCreateManyInput | Prisma.MihomeEnvSampleCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeEnvSampleIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvSample update
|
|
*/
|
|
export type MihomeEnvSampleUpdateArgs<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
|
|
/**
|
|
* The data needed to update a MihomeEnvSample.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MihomeEnvSampleUpdateInput, Prisma.MihomeEnvSampleUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which MihomeEnvSample to update.
|
|
*/
|
|
where: Prisma.MihomeEnvSampleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvSample updateMany
|
|
*/
|
|
export type MihomeEnvSampleUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update MihomeEnvSamples.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MihomeEnvSampleUpdateManyMutationInput, Prisma.MihomeEnvSampleUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which MihomeEnvSamples to update
|
|
*/
|
|
where?: Prisma.MihomeEnvSampleWhereInput
|
|
/**
|
|
* Limit how many MihomeEnvSamples to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvSample updateManyAndReturn
|
|
*/
|
|
export type MihomeEnvSampleUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MihomeEnvSample
|
|
*/
|
|
select?: Prisma.MihomeEnvSampleSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the MihomeEnvSample
|
|
*/
|
|
omit?: Prisma.MihomeEnvSampleOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update MihomeEnvSamples.
|
|
*/
|
|
data: Prisma.XOR<Prisma.MihomeEnvSampleUpdateManyMutationInput, Prisma.MihomeEnvSampleUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which MihomeEnvSamples to update
|
|
*/
|
|
where?: Prisma.MihomeEnvSampleWhereInput
|
|
/**
|
|
* Limit how many MihomeEnvSamples to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.MihomeEnvSampleIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvSample upsert
|
|
*/
|
|
export type MihomeEnvSampleUpsertArgs<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
|
|
/**
|
|
* The filter to search for the MihomeEnvSample to update in case it exists.
|
|
*/
|
|
where: Prisma.MihomeEnvSampleWhereUniqueInput
|
|
/**
|
|
* In case the MihomeEnvSample found by the `where` argument doesn't exist, create a new MihomeEnvSample with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.MihomeEnvSampleCreateInput, Prisma.MihomeEnvSampleUncheckedCreateInput>
|
|
/**
|
|
* In case the MihomeEnvSample was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.MihomeEnvSampleUpdateInput, Prisma.MihomeEnvSampleUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvSample delete
|
|
*/
|
|
export type MihomeEnvSampleDeleteArgs<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
|
|
/**
|
|
* Filter which MihomeEnvSample to delete.
|
|
*/
|
|
where: Prisma.MihomeEnvSampleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvSample deleteMany
|
|
*/
|
|
export type MihomeEnvSampleDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MihomeEnvSamples to delete
|
|
*/
|
|
where?: Prisma.MihomeEnvSampleWhereInput
|
|
/**
|
|
* Limit how many MihomeEnvSamples to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* MihomeEnvSample without action
|
|
*/
|
|
export type MihomeEnvSampleDefaultArgs<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
|
|
}
|