1348 lines
53 KiB
TypeScript
1348 lines
53 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 `AutomationTriggerMeter` 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 AutomationTriggerMeter
|
|
*
|
|
*/
|
|
export type AutomationTriggerMeterModel = runtime.Types.Result.DefaultSelection<Prisma.$AutomationTriggerMeterPayload>
|
|
|
|
export type AggregateAutomationTriggerMeter = {
|
|
_count: AutomationTriggerMeterCountAggregateOutputType | null
|
|
_avg: AutomationTriggerMeterAvgAggregateOutputType | null
|
|
_sum: AutomationTriggerMeterSumAggregateOutputType | null
|
|
_min: AutomationTriggerMeterMinAggregateOutputType | null
|
|
_max: AutomationTriggerMeterMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type AutomationTriggerMeterAvgAggregateOutputType = {
|
|
windowMinutes: number | null
|
|
count: number | null
|
|
}
|
|
|
|
export type AutomationTriggerMeterSumAggregateOutputType = {
|
|
windowMinutes: number | null
|
|
count: number | null
|
|
}
|
|
|
|
export type AutomationTriggerMeterMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
triggerKey: string | null
|
|
windowStart: Date | null
|
|
windowMinutes: number | null
|
|
count: number | null
|
|
pausedUntil: Date | null
|
|
anomalyText: string | null
|
|
}
|
|
|
|
export type AutomationTriggerMeterMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
triggerKey: string | null
|
|
windowStart: Date | null
|
|
windowMinutes: number | null
|
|
count: number | null
|
|
pausedUntil: Date | null
|
|
anomalyText: string | null
|
|
}
|
|
|
|
export type AutomationTriggerMeterCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
tenantId: number
|
|
triggerKey: number
|
|
windowStart: number
|
|
windowMinutes: number
|
|
count: number
|
|
pausedUntil: number
|
|
anomalyText: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type AutomationTriggerMeterAvgAggregateInputType = {
|
|
windowMinutes?: true
|
|
count?: true
|
|
}
|
|
|
|
export type AutomationTriggerMeterSumAggregateInputType = {
|
|
windowMinutes?: true
|
|
count?: true
|
|
}
|
|
|
|
export type AutomationTriggerMeterMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
triggerKey?: true
|
|
windowStart?: true
|
|
windowMinutes?: true
|
|
count?: true
|
|
pausedUntil?: true
|
|
anomalyText?: true
|
|
}
|
|
|
|
export type AutomationTriggerMeterMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
triggerKey?: true
|
|
windowStart?: true
|
|
windowMinutes?: true
|
|
count?: true
|
|
pausedUntil?: true
|
|
anomalyText?: true
|
|
}
|
|
|
|
export type AutomationTriggerMeterCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
triggerKey?: true
|
|
windowStart?: true
|
|
windowMinutes?: true
|
|
count?: true
|
|
pausedUntil?: true
|
|
anomalyText?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type AutomationTriggerMeterAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AutomationTriggerMeter to aggregate.
|
|
*/
|
|
where?: Prisma.AutomationTriggerMeterWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AutomationTriggerMeters to fetch.
|
|
*/
|
|
orderBy?: Prisma.AutomationTriggerMeterOrderByWithRelationInput | Prisma.AutomationTriggerMeterOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.AutomationTriggerMeterWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AutomationTriggerMeters 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` AutomationTriggerMeters.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned AutomationTriggerMeters
|
|
**/
|
|
_count?: true | AutomationTriggerMeterCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: AutomationTriggerMeterAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: AutomationTriggerMeterSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: AutomationTriggerMeterMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: AutomationTriggerMeterMaxAggregateInputType
|
|
}
|
|
|
|
export type GetAutomationTriggerMeterAggregateType<T extends AutomationTriggerMeterAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAutomationTriggerMeter]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateAutomationTriggerMeter[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateAutomationTriggerMeter[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AutomationTriggerMeterGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AutomationTriggerMeterWhereInput
|
|
orderBy?: Prisma.AutomationTriggerMeterOrderByWithAggregationInput | Prisma.AutomationTriggerMeterOrderByWithAggregationInput[]
|
|
by: Prisma.AutomationTriggerMeterScalarFieldEnum[] | Prisma.AutomationTriggerMeterScalarFieldEnum
|
|
having?: Prisma.AutomationTriggerMeterScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: AutomationTriggerMeterCountAggregateInputType | true
|
|
_avg?: AutomationTriggerMeterAvgAggregateInputType
|
|
_sum?: AutomationTriggerMeterSumAggregateInputType
|
|
_min?: AutomationTriggerMeterMinAggregateInputType
|
|
_max?: AutomationTriggerMeterMaxAggregateInputType
|
|
}
|
|
|
|
export type AutomationTriggerMeterGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
triggerKey: string
|
|
windowStart: Date
|
|
windowMinutes: number
|
|
count: number
|
|
pausedUntil: Date | null
|
|
anomalyText: string | null
|
|
_count: AutomationTriggerMeterCountAggregateOutputType | null
|
|
_avg: AutomationTriggerMeterAvgAggregateOutputType | null
|
|
_sum: AutomationTriggerMeterSumAggregateOutputType | null
|
|
_min: AutomationTriggerMeterMinAggregateOutputType | null
|
|
_max: AutomationTriggerMeterMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetAutomationTriggerMeterGroupByPayload<T extends AutomationTriggerMeterGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<AutomationTriggerMeterGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AutomationTriggerMeterGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AutomationTriggerMeterGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], AutomationTriggerMeterGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type AutomationTriggerMeterWhereInput = {
|
|
AND?: Prisma.AutomationTriggerMeterWhereInput | Prisma.AutomationTriggerMeterWhereInput[]
|
|
OR?: Prisma.AutomationTriggerMeterWhereInput[]
|
|
NOT?: Prisma.AutomationTriggerMeterWhereInput | Prisma.AutomationTriggerMeterWhereInput[]
|
|
id?: Prisma.StringFilter<"AutomationTriggerMeter"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"AutomationTriggerMeter"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"AutomationTriggerMeter"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"AutomationTriggerMeter"> | string
|
|
triggerKey?: Prisma.StringFilter<"AutomationTriggerMeter"> | string
|
|
windowStart?: Prisma.DateTimeFilter<"AutomationTriggerMeter"> | Date | string
|
|
windowMinutes?: Prisma.IntFilter<"AutomationTriggerMeter"> | number
|
|
count?: Prisma.IntFilter<"AutomationTriggerMeter"> | number
|
|
pausedUntil?: Prisma.DateTimeNullableFilter<"AutomationTriggerMeter"> | Date | string | null
|
|
anomalyText?: Prisma.StringNullableFilter<"AutomationTriggerMeter"> | string | null
|
|
}
|
|
|
|
export type AutomationTriggerMeterOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
triggerKey?: Prisma.SortOrder
|
|
windowStart?: Prisma.SortOrder
|
|
windowMinutes?: Prisma.SortOrder
|
|
count?: Prisma.SortOrder
|
|
pausedUntil?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
anomalyText?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
}
|
|
|
|
export type AutomationTriggerMeterWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
tenantId_triggerKey_windowStart_windowMinutes?: Prisma.AutomationTriggerMeterTenantIdTriggerKeyWindowStartWindowMinutesCompoundUniqueInput
|
|
AND?: Prisma.AutomationTriggerMeterWhereInput | Prisma.AutomationTriggerMeterWhereInput[]
|
|
OR?: Prisma.AutomationTriggerMeterWhereInput[]
|
|
NOT?: Prisma.AutomationTriggerMeterWhereInput | Prisma.AutomationTriggerMeterWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"AutomationTriggerMeter"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"AutomationTriggerMeter"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"AutomationTriggerMeter"> | string
|
|
triggerKey?: Prisma.StringFilter<"AutomationTriggerMeter"> | string
|
|
windowStart?: Prisma.DateTimeFilter<"AutomationTriggerMeter"> | Date | string
|
|
windowMinutes?: Prisma.IntFilter<"AutomationTriggerMeter"> | number
|
|
count?: Prisma.IntFilter<"AutomationTriggerMeter"> | number
|
|
pausedUntil?: Prisma.DateTimeNullableFilter<"AutomationTriggerMeter"> | Date | string | null
|
|
anomalyText?: Prisma.StringNullableFilter<"AutomationTriggerMeter"> | string | null
|
|
}, "id" | "tenantId_triggerKey_windowStart_windowMinutes">
|
|
|
|
export type AutomationTriggerMeterOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
triggerKey?: Prisma.SortOrder
|
|
windowStart?: Prisma.SortOrder
|
|
windowMinutes?: Prisma.SortOrder
|
|
count?: Prisma.SortOrder
|
|
pausedUntil?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
anomalyText?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.AutomationTriggerMeterCountOrderByAggregateInput
|
|
_avg?: Prisma.AutomationTriggerMeterAvgOrderByAggregateInput
|
|
_max?: Prisma.AutomationTriggerMeterMaxOrderByAggregateInput
|
|
_min?: Prisma.AutomationTriggerMeterMinOrderByAggregateInput
|
|
_sum?: Prisma.AutomationTriggerMeterSumOrderByAggregateInput
|
|
}
|
|
|
|
export type AutomationTriggerMeterScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.AutomationTriggerMeterScalarWhereWithAggregatesInput | Prisma.AutomationTriggerMeterScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.AutomationTriggerMeterScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.AutomationTriggerMeterScalarWhereWithAggregatesInput | Prisma.AutomationTriggerMeterScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"AutomationTriggerMeter"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AutomationTriggerMeter"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AutomationTriggerMeter"> | Date | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"AutomationTriggerMeter"> | string
|
|
triggerKey?: Prisma.StringWithAggregatesFilter<"AutomationTriggerMeter"> | string
|
|
windowStart?: Prisma.DateTimeWithAggregatesFilter<"AutomationTriggerMeter"> | Date | string
|
|
windowMinutes?: Prisma.IntWithAggregatesFilter<"AutomationTriggerMeter"> | number
|
|
count?: Prisma.IntWithAggregatesFilter<"AutomationTriggerMeter"> | number
|
|
pausedUntil?: Prisma.DateTimeNullableWithAggregatesFilter<"AutomationTriggerMeter"> | Date | string | null
|
|
anomalyText?: Prisma.StringNullableWithAggregatesFilter<"AutomationTriggerMeter"> | string | null
|
|
}
|
|
|
|
export type AutomationTriggerMeterCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
triggerKey: string
|
|
windowStart: Date | string
|
|
windowMinutes?: number
|
|
count?: number
|
|
pausedUntil?: Date | string | null
|
|
anomalyText?: string | null
|
|
}
|
|
|
|
export type AutomationTriggerMeterUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
triggerKey: string
|
|
windowStart: Date | string
|
|
windowMinutes?: number
|
|
count?: number
|
|
pausedUntil?: Date | string | null
|
|
anomalyText?: string | null
|
|
}
|
|
|
|
export type AutomationTriggerMeterUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
triggerKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
windowStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
windowMinutes?: Prisma.IntFieldUpdateOperationsInput | number
|
|
count?: Prisma.IntFieldUpdateOperationsInput | number
|
|
pausedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
anomalyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type AutomationTriggerMeterUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
triggerKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
windowStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
windowMinutes?: Prisma.IntFieldUpdateOperationsInput | number
|
|
count?: Prisma.IntFieldUpdateOperationsInput | number
|
|
pausedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
anomalyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type AutomationTriggerMeterCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
triggerKey: string
|
|
windowStart: Date | string
|
|
windowMinutes?: number
|
|
count?: number
|
|
pausedUntil?: Date | string | null
|
|
anomalyText?: string | null
|
|
}
|
|
|
|
export type AutomationTriggerMeterUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
triggerKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
windowStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
windowMinutes?: Prisma.IntFieldUpdateOperationsInput | number
|
|
count?: Prisma.IntFieldUpdateOperationsInput | number
|
|
pausedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
anomalyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type AutomationTriggerMeterUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
triggerKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
windowStart?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
windowMinutes?: Prisma.IntFieldUpdateOperationsInput | number
|
|
count?: Prisma.IntFieldUpdateOperationsInput | number
|
|
pausedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
anomalyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type AutomationTriggerMeterTenantIdTriggerKeyWindowStartWindowMinutesCompoundUniqueInput = {
|
|
tenantId: string
|
|
triggerKey: string
|
|
windowStart: Date | string
|
|
windowMinutes: number
|
|
}
|
|
|
|
export type AutomationTriggerMeterCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
triggerKey?: Prisma.SortOrder
|
|
windowStart?: Prisma.SortOrder
|
|
windowMinutes?: Prisma.SortOrder
|
|
count?: Prisma.SortOrder
|
|
pausedUntil?: Prisma.SortOrder
|
|
anomalyText?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AutomationTriggerMeterAvgOrderByAggregateInput = {
|
|
windowMinutes?: Prisma.SortOrder
|
|
count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AutomationTriggerMeterMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
triggerKey?: Prisma.SortOrder
|
|
windowStart?: Prisma.SortOrder
|
|
windowMinutes?: Prisma.SortOrder
|
|
count?: Prisma.SortOrder
|
|
pausedUntil?: Prisma.SortOrder
|
|
anomalyText?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AutomationTriggerMeterMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
triggerKey?: Prisma.SortOrder
|
|
windowStart?: Prisma.SortOrder
|
|
windowMinutes?: Prisma.SortOrder
|
|
count?: Prisma.SortOrder
|
|
pausedUntil?: Prisma.SortOrder
|
|
anomalyText?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AutomationTriggerMeterSumOrderByAggregateInput = {
|
|
windowMinutes?: Prisma.SortOrder
|
|
count?: Prisma.SortOrder
|
|
}
|
|
|
|
|
|
|
|
export type AutomationTriggerMeterSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
triggerKey?: boolean
|
|
windowStart?: boolean
|
|
windowMinutes?: boolean
|
|
count?: boolean
|
|
pausedUntil?: boolean
|
|
anomalyText?: boolean
|
|
}, ExtArgs["result"]["automationTriggerMeter"]>
|
|
|
|
export type AutomationTriggerMeterSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
triggerKey?: boolean
|
|
windowStart?: boolean
|
|
windowMinutes?: boolean
|
|
count?: boolean
|
|
pausedUntil?: boolean
|
|
anomalyText?: boolean
|
|
}, ExtArgs["result"]["automationTriggerMeter"]>
|
|
|
|
export type AutomationTriggerMeterSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
triggerKey?: boolean
|
|
windowStart?: boolean
|
|
windowMinutes?: boolean
|
|
count?: boolean
|
|
pausedUntil?: boolean
|
|
anomalyText?: boolean
|
|
}, ExtArgs["result"]["automationTriggerMeter"]>
|
|
|
|
export type AutomationTriggerMeterSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
triggerKey?: boolean
|
|
windowStart?: boolean
|
|
windowMinutes?: boolean
|
|
count?: boolean
|
|
pausedUntil?: boolean
|
|
anomalyText?: boolean
|
|
}
|
|
|
|
export type AutomationTriggerMeterOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "triggerKey" | "windowStart" | "windowMinutes" | "count" | "pausedUntil" | "anomalyText", ExtArgs["result"]["automationTriggerMeter"]>
|
|
|
|
export type $AutomationTriggerMeterPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "AutomationTriggerMeter"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
triggerKey: string
|
|
windowStart: Date
|
|
windowMinutes: number
|
|
count: number
|
|
pausedUntil: Date | null
|
|
anomalyText: string | null
|
|
}, ExtArgs["result"]["automationTriggerMeter"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type AutomationTriggerMeterGetPayload<S extends boolean | null | undefined | AutomationTriggerMeterDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AutomationTriggerMeterPayload, S>
|
|
|
|
export type AutomationTriggerMeterCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<AutomationTriggerMeterFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: AutomationTriggerMeterCountAggregateInputType | true
|
|
}
|
|
|
|
export interface AutomationTriggerMeterDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AutomationTriggerMeter'], meta: { name: 'AutomationTriggerMeter' } }
|
|
/**
|
|
* Find zero or one AutomationTriggerMeter that matches the filter.
|
|
* @param {AutomationTriggerMeterFindUniqueArgs} args - Arguments to find a AutomationTriggerMeter
|
|
* @example
|
|
* // Get one AutomationTriggerMeter
|
|
* const automationTriggerMeter = await prisma.automationTriggerMeter.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends AutomationTriggerMeterFindUniqueArgs>(args: Prisma.SelectSubset<T, AutomationTriggerMeterFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AutomationTriggerMeterClient<runtime.Types.Result.GetResult<Prisma.$AutomationTriggerMeterPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one AutomationTriggerMeter that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {AutomationTriggerMeterFindUniqueOrThrowArgs} args - Arguments to find a AutomationTriggerMeter
|
|
* @example
|
|
* // Get one AutomationTriggerMeter
|
|
* const automationTriggerMeter = await prisma.automationTriggerMeter.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends AutomationTriggerMeterFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AutomationTriggerMeterFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AutomationTriggerMeterClient<runtime.Types.Result.GetResult<Prisma.$AutomationTriggerMeterPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first AutomationTriggerMeter 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 {AutomationTriggerMeterFindFirstArgs} args - Arguments to find a AutomationTriggerMeter
|
|
* @example
|
|
* // Get one AutomationTriggerMeter
|
|
* const automationTriggerMeter = await prisma.automationTriggerMeter.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends AutomationTriggerMeterFindFirstArgs>(args?: Prisma.SelectSubset<T, AutomationTriggerMeterFindFirstArgs<ExtArgs>>): Prisma.Prisma__AutomationTriggerMeterClient<runtime.Types.Result.GetResult<Prisma.$AutomationTriggerMeterPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first AutomationTriggerMeter 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 {AutomationTriggerMeterFindFirstOrThrowArgs} args - Arguments to find a AutomationTriggerMeter
|
|
* @example
|
|
* // Get one AutomationTriggerMeter
|
|
* const automationTriggerMeter = await prisma.automationTriggerMeter.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends AutomationTriggerMeterFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AutomationTriggerMeterFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AutomationTriggerMeterClient<runtime.Types.Result.GetResult<Prisma.$AutomationTriggerMeterPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more AutomationTriggerMeters 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 {AutomationTriggerMeterFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all AutomationTriggerMeters
|
|
* const automationTriggerMeters = await prisma.automationTriggerMeter.findMany()
|
|
*
|
|
* // Get first 10 AutomationTriggerMeters
|
|
* const automationTriggerMeters = await prisma.automationTriggerMeter.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const automationTriggerMeterWithIdOnly = await prisma.automationTriggerMeter.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends AutomationTriggerMeterFindManyArgs>(args?: Prisma.SelectSubset<T, AutomationTriggerMeterFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AutomationTriggerMeterPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a AutomationTriggerMeter.
|
|
* @param {AutomationTriggerMeterCreateArgs} args - Arguments to create a AutomationTriggerMeter.
|
|
* @example
|
|
* // Create one AutomationTriggerMeter
|
|
* const AutomationTriggerMeter = await prisma.automationTriggerMeter.create({
|
|
* data: {
|
|
* // ... data to create a AutomationTriggerMeter
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends AutomationTriggerMeterCreateArgs>(args: Prisma.SelectSubset<T, AutomationTriggerMeterCreateArgs<ExtArgs>>): Prisma.Prisma__AutomationTriggerMeterClient<runtime.Types.Result.GetResult<Prisma.$AutomationTriggerMeterPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many AutomationTriggerMeters.
|
|
* @param {AutomationTriggerMeterCreateManyArgs} args - Arguments to create many AutomationTriggerMeters.
|
|
* @example
|
|
* // Create many AutomationTriggerMeters
|
|
* const automationTriggerMeter = await prisma.automationTriggerMeter.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends AutomationTriggerMeterCreateManyArgs>(args?: Prisma.SelectSubset<T, AutomationTriggerMeterCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many AutomationTriggerMeters and returns the data saved in the database.
|
|
* @param {AutomationTriggerMeterCreateManyAndReturnArgs} args - Arguments to create many AutomationTriggerMeters.
|
|
* @example
|
|
* // Create many AutomationTriggerMeters
|
|
* const automationTriggerMeter = await prisma.automationTriggerMeter.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many AutomationTriggerMeters and only return the `id`
|
|
* const automationTriggerMeterWithIdOnly = await prisma.automationTriggerMeter.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 AutomationTriggerMeterCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AutomationTriggerMeterCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AutomationTriggerMeterPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a AutomationTriggerMeter.
|
|
* @param {AutomationTriggerMeterDeleteArgs} args - Arguments to delete one AutomationTriggerMeter.
|
|
* @example
|
|
* // Delete one AutomationTriggerMeter
|
|
* const AutomationTriggerMeter = await prisma.automationTriggerMeter.delete({
|
|
* where: {
|
|
* // ... filter to delete one AutomationTriggerMeter
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends AutomationTriggerMeterDeleteArgs>(args: Prisma.SelectSubset<T, AutomationTriggerMeterDeleteArgs<ExtArgs>>): Prisma.Prisma__AutomationTriggerMeterClient<runtime.Types.Result.GetResult<Prisma.$AutomationTriggerMeterPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one AutomationTriggerMeter.
|
|
* @param {AutomationTriggerMeterUpdateArgs} args - Arguments to update one AutomationTriggerMeter.
|
|
* @example
|
|
* // Update one AutomationTriggerMeter
|
|
* const automationTriggerMeter = await prisma.automationTriggerMeter.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends AutomationTriggerMeterUpdateArgs>(args: Prisma.SelectSubset<T, AutomationTriggerMeterUpdateArgs<ExtArgs>>): Prisma.Prisma__AutomationTriggerMeterClient<runtime.Types.Result.GetResult<Prisma.$AutomationTriggerMeterPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more AutomationTriggerMeters.
|
|
* @param {AutomationTriggerMeterDeleteManyArgs} args - Arguments to filter AutomationTriggerMeters to delete.
|
|
* @example
|
|
* // Delete a few AutomationTriggerMeters
|
|
* const { count } = await prisma.automationTriggerMeter.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends AutomationTriggerMeterDeleteManyArgs>(args?: Prisma.SelectSubset<T, AutomationTriggerMeterDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AutomationTriggerMeters.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AutomationTriggerMeterUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many AutomationTriggerMeters
|
|
* const automationTriggerMeter = await prisma.automationTriggerMeter.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends AutomationTriggerMeterUpdateManyArgs>(args: Prisma.SelectSubset<T, AutomationTriggerMeterUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AutomationTriggerMeters and returns the data updated in the database.
|
|
* @param {AutomationTriggerMeterUpdateManyAndReturnArgs} args - Arguments to update many AutomationTriggerMeters.
|
|
* @example
|
|
* // Update many AutomationTriggerMeters
|
|
* const automationTriggerMeter = await prisma.automationTriggerMeter.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more AutomationTriggerMeters and only return the `id`
|
|
* const automationTriggerMeterWithIdOnly = await prisma.automationTriggerMeter.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 AutomationTriggerMeterUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AutomationTriggerMeterUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AutomationTriggerMeterPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one AutomationTriggerMeter.
|
|
* @param {AutomationTriggerMeterUpsertArgs} args - Arguments to update or create a AutomationTriggerMeter.
|
|
* @example
|
|
* // Update or create a AutomationTriggerMeter
|
|
* const automationTriggerMeter = await prisma.automationTriggerMeter.upsert({
|
|
* create: {
|
|
* // ... data to create a AutomationTriggerMeter
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the AutomationTriggerMeter we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends AutomationTriggerMeterUpsertArgs>(args: Prisma.SelectSubset<T, AutomationTriggerMeterUpsertArgs<ExtArgs>>): Prisma.Prisma__AutomationTriggerMeterClient<runtime.Types.Result.GetResult<Prisma.$AutomationTriggerMeterPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of AutomationTriggerMeters.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AutomationTriggerMeterCountArgs} args - Arguments to filter AutomationTriggerMeters to count.
|
|
* @example
|
|
* // Count the number of AutomationTriggerMeters
|
|
* const count = await prisma.automationTriggerMeter.count({
|
|
* where: {
|
|
* // ... the filter for the AutomationTriggerMeters we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends AutomationTriggerMeterCountArgs>(
|
|
args?: Prisma.Subset<T, AutomationTriggerMeterCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], AutomationTriggerMeterCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a AutomationTriggerMeter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AutomationTriggerMeterAggregateArgs} 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 AutomationTriggerMeterAggregateArgs>(args: Prisma.Subset<T, AutomationTriggerMeterAggregateArgs>): Prisma.PrismaPromise<GetAutomationTriggerMeterAggregateType<T>>
|
|
|
|
/**
|
|
* Group by AutomationTriggerMeter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AutomationTriggerMeterGroupByArgs} 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 AutomationTriggerMeterGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: AutomationTriggerMeterGroupByArgs['orderBy'] }
|
|
: { orderBy?: AutomationTriggerMeterGroupByArgs['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, AutomationTriggerMeterGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAutomationTriggerMeterGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the AutomationTriggerMeter model
|
|
*/
|
|
readonly fields: AutomationTriggerMeterFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for AutomationTriggerMeter.
|
|
* 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__AutomationTriggerMeterClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the AutomationTriggerMeter model
|
|
*/
|
|
export interface AutomationTriggerMeterFieldRefs {
|
|
readonly id: Prisma.FieldRef<"AutomationTriggerMeter", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"AutomationTriggerMeter", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"AutomationTriggerMeter", 'DateTime'>
|
|
readonly tenantId: Prisma.FieldRef<"AutomationTriggerMeter", 'String'>
|
|
readonly triggerKey: Prisma.FieldRef<"AutomationTriggerMeter", 'String'>
|
|
readonly windowStart: Prisma.FieldRef<"AutomationTriggerMeter", 'DateTime'>
|
|
readonly windowMinutes: Prisma.FieldRef<"AutomationTriggerMeter", 'Int'>
|
|
readonly count: Prisma.FieldRef<"AutomationTriggerMeter", 'Int'>
|
|
readonly pausedUntil: Prisma.FieldRef<"AutomationTriggerMeter", 'DateTime'>
|
|
readonly anomalyText: Prisma.FieldRef<"AutomationTriggerMeter", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* AutomationTriggerMeter findUnique
|
|
*/
|
|
export type AutomationTriggerMeterFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationTriggerMeter
|
|
*/
|
|
select?: Prisma.AutomationTriggerMeterSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationTriggerMeter
|
|
*/
|
|
omit?: Prisma.AutomationTriggerMeterOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which AutomationTriggerMeter to fetch.
|
|
*/
|
|
where: Prisma.AutomationTriggerMeterWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AutomationTriggerMeter findUniqueOrThrow
|
|
*/
|
|
export type AutomationTriggerMeterFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationTriggerMeter
|
|
*/
|
|
select?: Prisma.AutomationTriggerMeterSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationTriggerMeter
|
|
*/
|
|
omit?: Prisma.AutomationTriggerMeterOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which AutomationTriggerMeter to fetch.
|
|
*/
|
|
where: Prisma.AutomationTriggerMeterWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AutomationTriggerMeter findFirst
|
|
*/
|
|
export type AutomationTriggerMeterFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationTriggerMeter
|
|
*/
|
|
select?: Prisma.AutomationTriggerMeterSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationTriggerMeter
|
|
*/
|
|
omit?: Prisma.AutomationTriggerMeterOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which AutomationTriggerMeter to fetch.
|
|
*/
|
|
where?: Prisma.AutomationTriggerMeterWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AutomationTriggerMeters to fetch.
|
|
*/
|
|
orderBy?: Prisma.AutomationTriggerMeterOrderByWithRelationInput | Prisma.AutomationTriggerMeterOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AutomationTriggerMeters.
|
|
*/
|
|
cursor?: Prisma.AutomationTriggerMeterWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AutomationTriggerMeters 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` AutomationTriggerMeters.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AutomationTriggerMeters.
|
|
*/
|
|
distinct?: Prisma.AutomationTriggerMeterScalarFieldEnum | Prisma.AutomationTriggerMeterScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AutomationTriggerMeter findFirstOrThrow
|
|
*/
|
|
export type AutomationTriggerMeterFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationTriggerMeter
|
|
*/
|
|
select?: Prisma.AutomationTriggerMeterSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationTriggerMeter
|
|
*/
|
|
omit?: Prisma.AutomationTriggerMeterOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which AutomationTriggerMeter to fetch.
|
|
*/
|
|
where?: Prisma.AutomationTriggerMeterWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AutomationTriggerMeters to fetch.
|
|
*/
|
|
orderBy?: Prisma.AutomationTriggerMeterOrderByWithRelationInput | Prisma.AutomationTriggerMeterOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AutomationTriggerMeters.
|
|
*/
|
|
cursor?: Prisma.AutomationTriggerMeterWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AutomationTriggerMeters 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` AutomationTriggerMeters.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AutomationTriggerMeters.
|
|
*/
|
|
distinct?: Prisma.AutomationTriggerMeterScalarFieldEnum | Prisma.AutomationTriggerMeterScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AutomationTriggerMeter findMany
|
|
*/
|
|
export type AutomationTriggerMeterFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationTriggerMeter
|
|
*/
|
|
select?: Prisma.AutomationTriggerMeterSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationTriggerMeter
|
|
*/
|
|
omit?: Prisma.AutomationTriggerMeterOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which AutomationTriggerMeters to fetch.
|
|
*/
|
|
where?: Prisma.AutomationTriggerMeterWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AutomationTriggerMeters to fetch.
|
|
*/
|
|
orderBy?: Prisma.AutomationTriggerMeterOrderByWithRelationInput | Prisma.AutomationTriggerMeterOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing AutomationTriggerMeters.
|
|
*/
|
|
cursor?: Prisma.AutomationTriggerMeterWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AutomationTriggerMeters 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` AutomationTriggerMeters.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AutomationTriggerMeters.
|
|
*/
|
|
distinct?: Prisma.AutomationTriggerMeterScalarFieldEnum | Prisma.AutomationTriggerMeterScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AutomationTriggerMeter create
|
|
*/
|
|
export type AutomationTriggerMeterCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationTriggerMeter
|
|
*/
|
|
select?: Prisma.AutomationTriggerMeterSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationTriggerMeter
|
|
*/
|
|
omit?: Prisma.AutomationTriggerMeterOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a AutomationTriggerMeter.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AutomationTriggerMeterCreateInput, Prisma.AutomationTriggerMeterUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* AutomationTriggerMeter createMany
|
|
*/
|
|
export type AutomationTriggerMeterCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many AutomationTriggerMeters.
|
|
*/
|
|
data: Prisma.AutomationTriggerMeterCreateManyInput | Prisma.AutomationTriggerMeterCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* AutomationTriggerMeter createManyAndReturn
|
|
*/
|
|
export type AutomationTriggerMeterCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationTriggerMeter
|
|
*/
|
|
select?: Prisma.AutomationTriggerMeterSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationTriggerMeter
|
|
*/
|
|
omit?: Prisma.AutomationTriggerMeterOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many AutomationTriggerMeters.
|
|
*/
|
|
data: Prisma.AutomationTriggerMeterCreateManyInput | Prisma.AutomationTriggerMeterCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* AutomationTriggerMeter update
|
|
*/
|
|
export type AutomationTriggerMeterUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationTriggerMeter
|
|
*/
|
|
select?: Prisma.AutomationTriggerMeterSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationTriggerMeter
|
|
*/
|
|
omit?: Prisma.AutomationTriggerMeterOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a AutomationTriggerMeter.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AutomationTriggerMeterUpdateInput, Prisma.AutomationTriggerMeterUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which AutomationTriggerMeter to update.
|
|
*/
|
|
where: Prisma.AutomationTriggerMeterWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AutomationTriggerMeter updateMany
|
|
*/
|
|
export type AutomationTriggerMeterUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update AutomationTriggerMeters.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AutomationTriggerMeterUpdateManyMutationInput, Prisma.AutomationTriggerMeterUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AutomationTriggerMeters to update
|
|
*/
|
|
where?: Prisma.AutomationTriggerMeterWhereInput
|
|
/**
|
|
* Limit how many AutomationTriggerMeters to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AutomationTriggerMeter updateManyAndReturn
|
|
*/
|
|
export type AutomationTriggerMeterUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationTriggerMeter
|
|
*/
|
|
select?: Prisma.AutomationTriggerMeterSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationTriggerMeter
|
|
*/
|
|
omit?: Prisma.AutomationTriggerMeterOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update AutomationTriggerMeters.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AutomationTriggerMeterUpdateManyMutationInput, Prisma.AutomationTriggerMeterUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AutomationTriggerMeters to update
|
|
*/
|
|
where?: Prisma.AutomationTriggerMeterWhereInput
|
|
/**
|
|
* Limit how many AutomationTriggerMeters to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AutomationTriggerMeter upsert
|
|
*/
|
|
export type AutomationTriggerMeterUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationTriggerMeter
|
|
*/
|
|
select?: Prisma.AutomationTriggerMeterSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationTriggerMeter
|
|
*/
|
|
omit?: Prisma.AutomationTriggerMeterOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the AutomationTriggerMeter to update in case it exists.
|
|
*/
|
|
where: Prisma.AutomationTriggerMeterWhereUniqueInput
|
|
/**
|
|
* In case the AutomationTriggerMeter found by the `where` argument doesn't exist, create a new AutomationTriggerMeter with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.AutomationTriggerMeterCreateInput, Prisma.AutomationTriggerMeterUncheckedCreateInput>
|
|
/**
|
|
* In case the AutomationTriggerMeter was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.AutomationTriggerMeterUpdateInput, Prisma.AutomationTriggerMeterUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* AutomationTriggerMeter delete
|
|
*/
|
|
export type AutomationTriggerMeterDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationTriggerMeter
|
|
*/
|
|
select?: Prisma.AutomationTriggerMeterSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationTriggerMeter
|
|
*/
|
|
omit?: Prisma.AutomationTriggerMeterOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which AutomationTriggerMeter to delete.
|
|
*/
|
|
where: Prisma.AutomationTriggerMeterWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AutomationTriggerMeter deleteMany
|
|
*/
|
|
export type AutomationTriggerMeterDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AutomationTriggerMeters to delete
|
|
*/
|
|
where?: Prisma.AutomationTriggerMeterWhereInput
|
|
/**
|
|
* Limit how many AutomationTriggerMeters to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AutomationTriggerMeter without action
|
|
*/
|
|
export type AutomationTriggerMeterDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationTriggerMeter
|
|
*/
|
|
select?: Prisma.AutomationTriggerMeterSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationTriggerMeter
|
|
*/
|
|
omit?: Prisma.AutomationTriggerMeterOmit<ExtArgs> | null
|
|
}
|