/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateAutomationTriggerMeter]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AutomationTriggerMeterGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AutomationTriggerMeterGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 = 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 = 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 = 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 = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "triggerKey" | "windowStart" | "windowMinutes" | "count" | "pausedUntil" | "anomalyText", ExtArgs["result"]["automationTriggerMeter"]> export type $AutomationTriggerMeterPayload = { 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 = runtime.Types.Result.GetResult export type AutomationTriggerMeterCountArgs = Omit & { select?: AutomationTriggerMeterCountAggregateInputType | true } export interface AutomationTriggerMeterDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationTriggerMeterClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationTriggerMeterClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__AutomationTriggerMeterClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__AutomationTriggerMeterClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationTriggerMeterClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationTriggerMeterClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationTriggerMeterClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationTriggerMeterClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AutomationTriggerMeterGroupByArgs['orderBy'] } : { orderBy?: AutomationTriggerMeterGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetAutomationTriggerMeterGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the 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 = { /** * Select specific fields to fetch from the AutomationTriggerMeter */ select?: Prisma.AutomationTriggerMeterSelect | null /** * Omit specific fields from the AutomationTriggerMeter */ omit?: Prisma.AutomationTriggerMeterOmit | null /** * Filter, which AutomationTriggerMeter to fetch. */ where: Prisma.AutomationTriggerMeterWhereUniqueInput } /** * AutomationTriggerMeter findUniqueOrThrow */ export type AutomationTriggerMeterFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AutomationTriggerMeter */ select?: Prisma.AutomationTriggerMeterSelect | null /** * Omit specific fields from the AutomationTriggerMeter */ omit?: Prisma.AutomationTriggerMeterOmit | null /** * Filter, which AutomationTriggerMeter to fetch. */ where: Prisma.AutomationTriggerMeterWhereUniqueInput } /** * AutomationTriggerMeter findFirst */ export type AutomationTriggerMeterFindFirstArgs = { /** * Select specific fields to fetch from the AutomationTriggerMeter */ select?: Prisma.AutomationTriggerMeterSelect | null /** * Omit specific fields from the AutomationTriggerMeter */ omit?: Prisma.AutomationTriggerMeterOmit | 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 = { /** * Select specific fields to fetch from the AutomationTriggerMeter */ select?: Prisma.AutomationTriggerMeterSelect | null /** * Omit specific fields from the AutomationTriggerMeter */ omit?: Prisma.AutomationTriggerMeterOmit | 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 = { /** * Select specific fields to fetch from the AutomationTriggerMeter */ select?: Prisma.AutomationTriggerMeterSelect | null /** * Omit specific fields from the AutomationTriggerMeter */ omit?: Prisma.AutomationTriggerMeterOmit | 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 = { /** * Select specific fields to fetch from the AutomationTriggerMeter */ select?: Prisma.AutomationTriggerMeterSelect | null /** * Omit specific fields from the AutomationTriggerMeter */ omit?: Prisma.AutomationTriggerMeterOmit | null /** * The data needed to create a AutomationTriggerMeter. */ data: Prisma.XOR } /** * AutomationTriggerMeter createMany */ export type AutomationTriggerMeterCreateManyArgs = { /** * The data used to create many AutomationTriggerMeters. */ data: Prisma.AutomationTriggerMeterCreateManyInput | Prisma.AutomationTriggerMeterCreateManyInput[] skipDuplicates?: boolean } /** * AutomationTriggerMeter createManyAndReturn */ export type AutomationTriggerMeterCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AutomationTriggerMeter */ select?: Prisma.AutomationTriggerMeterSelectCreateManyAndReturn | null /** * Omit specific fields from the AutomationTriggerMeter */ omit?: Prisma.AutomationTriggerMeterOmit | null /** * The data used to create many AutomationTriggerMeters. */ data: Prisma.AutomationTriggerMeterCreateManyInput | Prisma.AutomationTriggerMeterCreateManyInput[] skipDuplicates?: boolean } /** * AutomationTriggerMeter update */ export type AutomationTriggerMeterUpdateArgs = { /** * Select specific fields to fetch from the AutomationTriggerMeter */ select?: Prisma.AutomationTriggerMeterSelect | null /** * Omit specific fields from the AutomationTriggerMeter */ omit?: Prisma.AutomationTriggerMeterOmit | null /** * The data needed to update a AutomationTriggerMeter. */ data: Prisma.XOR /** * Choose, which AutomationTriggerMeter to update. */ where: Prisma.AutomationTriggerMeterWhereUniqueInput } /** * AutomationTriggerMeter updateMany */ export type AutomationTriggerMeterUpdateManyArgs = { /** * The data used to update AutomationTriggerMeters. */ data: Prisma.XOR /** * Filter which AutomationTriggerMeters to update */ where?: Prisma.AutomationTriggerMeterWhereInput /** * Limit how many AutomationTriggerMeters to update. */ limit?: number } /** * AutomationTriggerMeter updateManyAndReturn */ export type AutomationTriggerMeterUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AutomationTriggerMeter */ select?: Prisma.AutomationTriggerMeterSelectUpdateManyAndReturn | null /** * Omit specific fields from the AutomationTriggerMeter */ omit?: Prisma.AutomationTriggerMeterOmit | null /** * The data used to update AutomationTriggerMeters. */ data: Prisma.XOR /** * Filter which AutomationTriggerMeters to update */ where?: Prisma.AutomationTriggerMeterWhereInput /** * Limit how many AutomationTriggerMeters to update. */ limit?: number } /** * AutomationTriggerMeter upsert */ export type AutomationTriggerMeterUpsertArgs = { /** * Select specific fields to fetch from the AutomationTriggerMeter */ select?: Prisma.AutomationTriggerMeterSelect | null /** * Omit specific fields from the AutomationTriggerMeter */ omit?: Prisma.AutomationTriggerMeterOmit | 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 /** * In case the AutomationTriggerMeter was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * AutomationTriggerMeter delete */ export type AutomationTriggerMeterDeleteArgs = { /** * Select specific fields to fetch from the AutomationTriggerMeter */ select?: Prisma.AutomationTriggerMeterSelect | null /** * Omit specific fields from the AutomationTriggerMeter */ omit?: Prisma.AutomationTriggerMeterOmit | null /** * Filter which AutomationTriggerMeter to delete. */ where: Prisma.AutomationTriggerMeterWhereUniqueInput } /** * AutomationTriggerMeter deleteMany */ export type AutomationTriggerMeterDeleteManyArgs = { /** * Filter which AutomationTriggerMeters to delete */ where?: Prisma.AutomationTriggerMeterWhereInput /** * Limit how many AutomationTriggerMeters to delete. */ limit?: number } /** * AutomationTriggerMeter without action */ export type AutomationTriggerMeterDefaultArgs = { /** * Select specific fields to fetch from the AutomationTriggerMeter */ select?: Prisma.AutomationTriggerMeterSelect | null /** * Omit specific fields from the AutomationTriggerMeter */ omit?: Prisma.AutomationTriggerMeterOmit | null }