/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `PluginInvocation` 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 PluginInvocation * */ export type PluginInvocationModel = runtime.Types.Result.DefaultSelection export type AggregatePluginInvocation = { _count: PluginInvocationCountAggregateOutputType | null _avg: PluginInvocationAvgAggregateOutputType | null _sum: PluginInvocationSumAggregateOutputType | null _min: PluginInvocationMinAggregateOutputType | null _max: PluginInvocationMaxAggregateOutputType | null } export type PluginInvocationAvgAggregateOutputType = { durationMs: number | null fuelUsed: number | null } export type PluginInvocationSumAggregateOutputType = { durationMs: number | null fuelUsed: number | null } export type PluginInvocationMinAggregateOutputType = { id: string | null tenantId: string | null pluginId: string | null version: string | null hookName: string | null outcome: string | null failureReason: string | null message: string | null durationMs: number | null fuelUsed: number | null createdAt: Date | null } export type PluginInvocationMaxAggregateOutputType = { id: string | null tenantId: string | null pluginId: string | null version: string | null hookName: string | null outcome: string | null failureReason: string | null message: string | null durationMs: number | null fuelUsed: number | null createdAt: Date | null } export type PluginInvocationCountAggregateOutputType = { id: number tenantId: number pluginId: number version: number hookName: number outcome: number failureReason: number message: number durationMs: number fuelUsed: number createdAt: number _all: number } export type PluginInvocationAvgAggregateInputType = { durationMs?: true fuelUsed?: true } export type PluginInvocationSumAggregateInputType = { durationMs?: true fuelUsed?: true } export type PluginInvocationMinAggregateInputType = { id?: true tenantId?: true pluginId?: true version?: true hookName?: true outcome?: true failureReason?: true message?: true durationMs?: true fuelUsed?: true createdAt?: true } export type PluginInvocationMaxAggregateInputType = { id?: true tenantId?: true pluginId?: true version?: true hookName?: true outcome?: true failureReason?: true message?: true durationMs?: true fuelUsed?: true createdAt?: true } export type PluginInvocationCountAggregateInputType = { id?: true tenantId?: true pluginId?: true version?: true hookName?: true outcome?: true failureReason?: true message?: true durationMs?: true fuelUsed?: true createdAt?: true _all?: true } export type PluginInvocationAggregateArgs = { /** * Filter which PluginInvocation to aggregate. */ where?: Prisma.PluginInvocationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PluginInvocations to fetch. */ orderBy?: Prisma.PluginInvocationOrderByWithRelationInput | Prisma.PluginInvocationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.PluginInvocationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PluginInvocations 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` PluginInvocations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned PluginInvocations **/ _count?: true | PluginInvocationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PluginInvocationAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PluginInvocationSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PluginInvocationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PluginInvocationMaxAggregateInputType } export type GetPluginInvocationAggregateType = { [P in keyof T & keyof AggregatePluginInvocation]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type PluginInvocationGroupByArgs = { where?: Prisma.PluginInvocationWhereInput orderBy?: Prisma.PluginInvocationOrderByWithAggregationInput | Prisma.PluginInvocationOrderByWithAggregationInput[] by: Prisma.PluginInvocationScalarFieldEnum[] | Prisma.PluginInvocationScalarFieldEnum having?: Prisma.PluginInvocationScalarWhereWithAggregatesInput take?: number skip?: number _count?: PluginInvocationCountAggregateInputType | true _avg?: PluginInvocationAvgAggregateInputType _sum?: PluginInvocationSumAggregateInputType _min?: PluginInvocationMinAggregateInputType _max?: PluginInvocationMaxAggregateInputType } export type PluginInvocationGroupByOutputType = { id: string tenantId: string pluginId: string version: string hookName: string outcome: string failureReason: string | null message: string | null durationMs: number fuelUsed: number | null createdAt: Date _count: PluginInvocationCountAggregateOutputType | null _avg: PluginInvocationAvgAggregateOutputType | null _sum: PluginInvocationSumAggregateOutputType | null _min: PluginInvocationMinAggregateOutputType | null _max: PluginInvocationMaxAggregateOutputType | null } export type GetPluginInvocationGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof PluginInvocationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type PluginInvocationWhereInput = { AND?: Prisma.PluginInvocationWhereInput | Prisma.PluginInvocationWhereInput[] OR?: Prisma.PluginInvocationWhereInput[] NOT?: Prisma.PluginInvocationWhereInput | Prisma.PluginInvocationWhereInput[] id?: Prisma.StringFilter<"PluginInvocation"> | string tenantId?: Prisma.StringFilter<"PluginInvocation"> | string pluginId?: Prisma.StringFilter<"PluginInvocation"> | string version?: Prisma.StringFilter<"PluginInvocation"> | string hookName?: Prisma.StringFilter<"PluginInvocation"> | string outcome?: Prisma.StringFilter<"PluginInvocation"> | string failureReason?: Prisma.StringNullableFilter<"PluginInvocation"> | string | null message?: Prisma.StringNullableFilter<"PluginInvocation"> | string | null durationMs?: Prisma.IntFilter<"PluginInvocation"> | number fuelUsed?: Prisma.IntNullableFilter<"PluginInvocation"> | number | null createdAt?: Prisma.DateTimeFilter<"PluginInvocation"> | Date | string } export type PluginInvocationOrderByWithRelationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder pluginId?: Prisma.SortOrder version?: Prisma.SortOrder hookName?: Prisma.SortOrder outcome?: Prisma.SortOrder failureReason?: Prisma.SortOrderInput | Prisma.SortOrder message?: Prisma.SortOrderInput | Prisma.SortOrder durationMs?: Prisma.SortOrder fuelUsed?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder } export type PluginInvocationWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.PluginInvocationWhereInput | Prisma.PluginInvocationWhereInput[] OR?: Prisma.PluginInvocationWhereInput[] NOT?: Prisma.PluginInvocationWhereInput | Prisma.PluginInvocationWhereInput[] tenantId?: Prisma.StringFilter<"PluginInvocation"> | string pluginId?: Prisma.StringFilter<"PluginInvocation"> | string version?: Prisma.StringFilter<"PluginInvocation"> | string hookName?: Prisma.StringFilter<"PluginInvocation"> | string outcome?: Prisma.StringFilter<"PluginInvocation"> | string failureReason?: Prisma.StringNullableFilter<"PluginInvocation"> | string | null message?: Prisma.StringNullableFilter<"PluginInvocation"> | string | null durationMs?: Prisma.IntFilter<"PluginInvocation"> | number fuelUsed?: Prisma.IntNullableFilter<"PluginInvocation"> | number | null createdAt?: Prisma.DateTimeFilter<"PluginInvocation"> | Date | string }, "id"> export type PluginInvocationOrderByWithAggregationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder pluginId?: Prisma.SortOrder version?: Prisma.SortOrder hookName?: Prisma.SortOrder outcome?: Prisma.SortOrder failureReason?: Prisma.SortOrderInput | Prisma.SortOrder message?: Prisma.SortOrderInput | Prisma.SortOrder durationMs?: Prisma.SortOrder fuelUsed?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder _count?: Prisma.PluginInvocationCountOrderByAggregateInput _avg?: Prisma.PluginInvocationAvgOrderByAggregateInput _max?: Prisma.PluginInvocationMaxOrderByAggregateInput _min?: Prisma.PluginInvocationMinOrderByAggregateInput _sum?: Prisma.PluginInvocationSumOrderByAggregateInput } export type PluginInvocationScalarWhereWithAggregatesInput = { AND?: Prisma.PluginInvocationScalarWhereWithAggregatesInput | Prisma.PluginInvocationScalarWhereWithAggregatesInput[] OR?: Prisma.PluginInvocationScalarWhereWithAggregatesInput[] NOT?: Prisma.PluginInvocationScalarWhereWithAggregatesInput | Prisma.PluginInvocationScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"PluginInvocation"> | string tenantId?: Prisma.StringWithAggregatesFilter<"PluginInvocation"> | string pluginId?: Prisma.StringWithAggregatesFilter<"PluginInvocation"> | string version?: Prisma.StringWithAggregatesFilter<"PluginInvocation"> | string hookName?: Prisma.StringWithAggregatesFilter<"PluginInvocation"> | string outcome?: Prisma.StringWithAggregatesFilter<"PluginInvocation"> | string failureReason?: Prisma.StringNullableWithAggregatesFilter<"PluginInvocation"> | string | null message?: Prisma.StringNullableWithAggregatesFilter<"PluginInvocation"> | string | null durationMs?: Prisma.IntWithAggregatesFilter<"PluginInvocation"> | number fuelUsed?: Prisma.IntNullableWithAggregatesFilter<"PluginInvocation"> | number | null createdAt?: Prisma.DateTimeWithAggregatesFilter<"PluginInvocation"> | Date | string } export type PluginInvocationCreateInput = { id: string tenantId: string pluginId: string version: string hookName: string outcome: string failureReason?: string | null message?: string | null durationMs: number fuelUsed?: number | null createdAt?: Date | string } export type PluginInvocationUncheckedCreateInput = { id: string tenantId: string pluginId: string version: string hookName: string outcome: string failureReason?: string | null message?: string | null durationMs: number fuelUsed?: number | null createdAt?: Date | string } export type PluginInvocationUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string pluginId?: Prisma.StringFieldUpdateOperationsInput | string version?: Prisma.StringFieldUpdateOperationsInput | string hookName?: Prisma.StringFieldUpdateOperationsInput | string outcome?: Prisma.StringFieldUpdateOperationsInput | string failureReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null durationMs?: Prisma.IntFieldUpdateOperationsInput | number fuelUsed?: Prisma.NullableIntFieldUpdateOperationsInput | number | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type PluginInvocationUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string pluginId?: Prisma.StringFieldUpdateOperationsInput | string version?: Prisma.StringFieldUpdateOperationsInput | string hookName?: Prisma.StringFieldUpdateOperationsInput | string outcome?: Prisma.StringFieldUpdateOperationsInput | string failureReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null durationMs?: Prisma.IntFieldUpdateOperationsInput | number fuelUsed?: Prisma.NullableIntFieldUpdateOperationsInput | number | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type PluginInvocationCreateManyInput = { id: string tenantId: string pluginId: string version: string hookName: string outcome: string failureReason?: string | null message?: string | null durationMs: number fuelUsed?: number | null createdAt?: Date | string } export type PluginInvocationUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string pluginId?: Prisma.StringFieldUpdateOperationsInput | string version?: Prisma.StringFieldUpdateOperationsInput | string hookName?: Prisma.StringFieldUpdateOperationsInput | string outcome?: Prisma.StringFieldUpdateOperationsInput | string failureReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null durationMs?: Prisma.IntFieldUpdateOperationsInput | number fuelUsed?: Prisma.NullableIntFieldUpdateOperationsInput | number | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type PluginInvocationUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string pluginId?: Prisma.StringFieldUpdateOperationsInput | string version?: Prisma.StringFieldUpdateOperationsInput | string hookName?: Prisma.StringFieldUpdateOperationsInput | string outcome?: Prisma.StringFieldUpdateOperationsInput | string failureReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null durationMs?: Prisma.IntFieldUpdateOperationsInput | number fuelUsed?: Prisma.NullableIntFieldUpdateOperationsInput | number | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type PluginInvocationCountOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder pluginId?: Prisma.SortOrder version?: Prisma.SortOrder hookName?: Prisma.SortOrder outcome?: Prisma.SortOrder failureReason?: Prisma.SortOrder message?: Prisma.SortOrder durationMs?: Prisma.SortOrder fuelUsed?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type PluginInvocationAvgOrderByAggregateInput = { durationMs?: Prisma.SortOrder fuelUsed?: Prisma.SortOrder } export type PluginInvocationMaxOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder pluginId?: Prisma.SortOrder version?: Prisma.SortOrder hookName?: Prisma.SortOrder outcome?: Prisma.SortOrder failureReason?: Prisma.SortOrder message?: Prisma.SortOrder durationMs?: Prisma.SortOrder fuelUsed?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type PluginInvocationMinOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder pluginId?: Prisma.SortOrder version?: Prisma.SortOrder hookName?: Prisma.SortOrder outcome?: Prisma.SortOrder failureReason?: Prisma.SortOrder message?: Prisma.SortOrder durationMs?: Prisma.SortOrder fuelUsed?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type PluginInvocationSumOrderByAggregateInput = { durationMs?: Prisma.SortOrder fuelUsed?: Prisma.SortOrder } export type PluginInvocationSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean pluginId?: boolean version?: boolean hookName?: boolean outcome?: boolean failureReason?: boolean message?: boolean durationMs?: boolean fuelUsed?: boolean createdAt?: boolean }, ExtArgs["result"]["pluginInvocation"]> export type PluginInvocationSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean pluginId?: boolean version?: boolean hookName?: boolean outcome?: boolean failureReason?: boolean message?: boolean durationMs?: boolean fuelUsed?: boolean createdAt?: boolean }, ExtArgs["result"]["pluginInvocation"]> export type PluginInvocationSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean pluginId?: boolean version?: boolean hookName?: boolean outcome?: boolean failureReason?: boolean message?: boolean durationMs?: boolean fuelUsed?: boolean createdAt?: boolean }, ExtArgs["result"]["pluginInvocation"]> export type PluginInvocationSelectScalar = { id?: boolean tenantId?: boolean pluginId?: boolean version?: boolean hookName?: boolean outcome?: boolean failureReason?: boolean message?: boolean durationMs?: boolean fuelUsed?: boolean createdAt?: boolean } export type PluginInvocationOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "pluginId" | "version" | "hookName" | "outcome" | "failureReason" | "message" | "durationMs" | "fuelUsed" | "createdAt", ExtArgs["result"]["pluginInvocation"]> export type $PluginInvocationPayload = { name: "PluginInvocation" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string tenantId: string pluginId: string version: string hookName: string outcome: string failureReason: string | null message: string | null durationMs: number fuelUsed: number | null createdAt: Date }, ExtArgs["result"]["pluginInvocation"]> composites: {} } export type PluginInvocationGetPayload = runtime.Types.Result.GetResult export type PluginInvocationCountArgs = Omit & { select?: PluginInvocationCountAggregateInputType | true } export interface PluginInvocationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['PluginInvocation'], meta: { name: 'PluginInvocation' } } /** * Find zero or one PluginInvocation that matches the filter. * @param {PluginInvocationFindUniqueArgs} args - Arguments to find a PluginInvocation * @example * // Get one PluginInvocation * const pluginInvocation = await prisma.pluginInvocation.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__PluginInvocationClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one PluginInvocation that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PluginInvocationFindUniqueOrThrowArgs} args - Arguments to find a PluginInvocation * @example * // Get one PluginInvocation * const pluginInvocation = await prisma.pluginInvocation.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__PluginInvocationClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first PluginInvocation 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 {PluginInvocationFindFirstArgs} args - Arguments to find a PluginInvocation * @example * // Get one PluginInvocation * const pluginInvocation = await prisma.pluginInvocation.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__PluginInvocationClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first PluginInvocation 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 {PluginInvocationFindFirstOrThrowArgs} args - Arguments to find a PluginInvocation * @example * // Get one PluginInvocation * const pluginInvocation = await prisma.pluginInvocation.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__PluginInvocationClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more PluginInvocations 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 {PluginInvocationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all PluginInvocations * const pluginInvocations = await prisma.pluginInvocation.findMany() * * // Get first 10 PluginInvocations * const pluginInvocations = await prisma.pluginInvocation.findMany({ take: 10 }) * * // Only select the `id` * const pluginInvocationWithIdOnly = await prisma.pluginInvocation.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a PluginInvocation. * @param {PluginInvocationCreateArgs} args - Arguments to create a PluginInvocation. * @example * // Create one PluginInvocation * const PluginInvocation = await prisma.pluginInvocation.create({ * data: { * // ... data to create a PluginInvocation * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__PluginInvocationClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many PluginInvocations. * @param {PluginInvocationCreateManyArgs} args - Arguments to create many PluginInvocations. * @example * // Create many PluginInvocations * const pluginInvocation = await prisma.pluginInvocation.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many PluginInvocations and returns the data saved in the database. * @param {PluginInvocationCreateManyAndReturnArgs} args - Arguments to create many PluginInvocations. * @example * // Create many PluginInvocations * const pluginInvocation = await prisma.pluginInvocation.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many PluginInvocations and only return the `id` * const pluginInvocationWithIdOnly = await prisma.pluginInvocation.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 PluginInvocation. * @param {PluginInvocationDeleteArgs} args - Arguments to delete one PluginInvocation. * @example * // Delete one PluginInvocation * const PluginInvocation = await prisma.pluginInvocation.delete({ * where: { * // ... filter to delete one PluginInvocation * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__PluginInvocationClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one PluginInvocation. * @param {PluginInvocationUpdateArgs} args - Arguments to update one PluginInvocation. * @example * // Update one PluginInvocation * const pluginInvocation = await prisma.pluginInvocation.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__PluginInvocationClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more PluginInvocations. * @param {PluginInvocationDeleteManyArgs} args - Arguments to filter PluginInvocations to delete. * @example * // Delete a few PluginInvocations * const { count } = await prisma.pluginInvocation.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PluginInvocations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PluginInvocationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many PluginInvocations * const pluginInvocation = await prisma.pluginInvocation.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PluginInvocations and returns the data updated in the database. * @param {PluginInvocationUpdateManyAndReturnArgs} args - Arguments to update many PluginInvocations. * @example * // Update many PluginInvocations * const pluginInvocation = await prisma.pluginInvocation.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more PluginInvocations and only return the `id` * const pluginInvocationWithIdOnly = await prisma.pluginInvocation.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 PluginInvocation. * @param {PluginInvocationUpsertArgs} args - Arguments to update or create a PluginInvocation. * @example * // Update or create a PluginInvocation * const pluginInvocation = await prisma.pluginInvocation.upsert({ * create: { * // ... data to create a PluginInvocation * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the PluginInvocation we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__PluginInvocationClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of PluginInvocations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PluginInvocationCountArgs} args - Arguments to filter PluginInvocations to count. * @example * // Count the number of PluginInvocations * const count = await prisma.pluginInvocation.count({ * where: { * // ... the filter for the PluginInvocations 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 PluginInvocation. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PluginInvocationAggregateArgs} 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 PluginInvocation. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PluginInvocationGroupByArgs} 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 PluginInvocationGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: PluginInvocationGroupByArgs['orderBy'] } : { orderBy?: PluginInvocationGroupByArgs['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 ? GetPluginInvocationGroupByPayload : Prisma.PrismaPromise /** * Fields of the PluginInvocation model */ readonly fields: PluginInvocationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for PluginInvocation. * 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__PluginInvocationClient 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 PluginInvocation model */ export interface PluginInvocationFieldRefs { readonly id: Prisma.FieldRef<"PluginInvocation", 'String'> readonly tenantId: Prisma.FieldRef<"PluginInvocation", 'String'> readonly pluginId: Prisma.FieldRef<"PluginInvocation", 'String'> readonly version: Prisma.FieldRef<"PluginInvocation", 'String'> readonly hookName: Prisma.FieldRef<"PluginInvocation", 'String'> readonly outcome: Prisma.FieldRef<"PluginInvocation", 'String'> readonly failureReason: Prisma.FieldRef<"PluginInvocation", 'String'> readonly message: Prisma.FieldRef<"PluginInvocation", 'String'> readonly durationMs: Prisma.FieldRef<"PluginInvocation", 'Int'> readonly fuelUsed: Prisma.FieldRef<"PluginInvocation", 'Int'> readonly createdAt: Prisma.FieldRef<"PluginInvocation", 'DateTime'> } // Custom InputTypes /** * PluginInvocation findUnique */ export type PluginInvocationFindUniqueArgs = { /** * Select specific fields to fetch from the PluginInvocation */ select?: Prisma.PluginInvocationSelect | null /** * Omit specific fields from the PluginInvocation */ omit?: Prisma.PluginInvocationOmit | null /** * Filter, which PluginInvocation to fetch. */ where: Prisma.PluginInvocationWhereUniqueInput } /** * PluginInvocation findUniqueOrThrow */ export type PluginInvocationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the PluginInvocation */ select?: Prisma.PluginInvocationSelect | null /** * Omit specific fields from the PluginInvocation */ omit?: Prisma.PluginInvocationOmit | null /** * Filter, which PluginInvocation to fetch. */ where: Prisma.PluginInvocationWhereUniqueInput } /** * PluginInvocation findFirst */ export type PluginInvocationFindFirstArgs = { /** * Select specific fields to fetch from the PluginInvocation */ select?: Prisma.PluginInvocationSelect | null /** * Omit specific fields from the PluginInvocation */ omit?: Prisma.PluginInvocationOmit | null /** * Filter, which PluginInvocation to fetch. */ where?: Prisma.PluginInvocationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PluginInvocations to fetch. */ orderBy?: Prisma.PluginInvocationOrderByWithRelationInput | Prisma.PluginInvocationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PluginInvocations. */ cursor?: Prisma.PluginInvocationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PluginInvocations 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` PluginInvocations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PluginInvocations. */ distinct?: Prisma.PluginInvocationScalarFieldEnum | Prisma.PluginInvocationScalarFieldEnum[] } /** * PluginInvocation findFirstOrThrow */ export type PluginInvocationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the PluginInvocation */ select?: Prisma.PluginInvocationSelect | null /** * Omit specific fields from the PluginInvocation */ omit?: Prisma.PluginInvocationOmit | null /** * Filter, which PluginInvocation to fetch. */ where?: Prisma.PluginInvocationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PluginInvocations to fetch. */ orderBy?: Prisma.PluginInvocationOrderByWithRelationInput | Prisma.PluginInvocationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PluginInvocations. */ cursor?: Prisma.PluginInvocationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PluginInvocations 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` PluginInvocations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PluginInvocations. */ distinct?: Prisma.PluginInvocationScalarFieldEnum | Prisma.PluginInvocationScalarFieldEnum[] } /** * PluginInvocation findMany */ export type PluginInvocationFindManyArgs = { /** * Select specific fields to fetch from the PluginInvocation */ select?: Prisma.PluginInvocationSelect | null /** * Omit specific fields from the PluginInvocation */ omit?: Prisma.PluginInvocationOmit | null /** * Filter, which PluginInvocations to fetch. */ where?: Prisma.PluginInvocationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PluginInvocations to fetch. */ orderBy?: Prisma.PluginInvocationOrderByWithRelationInput | Prisma.PluginInvocationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing PluginInvocations. */ cursor?: Prisma.PluginInvocationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PluginInvocations 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` PluginInvocations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PluginInvocations. */ distinct?: Prisma.PluginInvocationScalarFieldEnum | Prisma.PluginInvocationScalarFieldEnum[] } /** * PluginInvocation create */ export type PluginInvocationCreateArgs = { /** * Select specific fields to fetch from the PluginInvocation */ select?: Prisma.PluginInvocationSelect | null /** * Omit specific fields from the PluginInvocation */ omit?: Prisma.PluginInvocationOmit | null /** * The data needed to create a PluginInvocation. */ data: Prisma.XOR } /** * PluginInvocation createMany */ export type PluginInvocationCreateManyArgs = { /** * The data used to create many PluginInvocations. */ data: Prisma.PluginInvocationCreateManyInput | Prisma.PluginInvocationCreateManyInput[] skipDuplicates?: boolean } /** * PluginInvocation createManyAndReturn */ export type PluginInvocationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the PluginInvocation */ select?: Prisma.PluginInvocationSelectCreateManyAndReturn | null /** * Omit specific fields from the PluginInvocation */ omit?: Prisma.PluginInvocationOmit | null /** * The data used to create many PluginInvocations. */ data: Prisma.PluginInvocationCreateManyInput | Prisma.PluginInvocationCreateManyInput[] skipDuplicates?: boolean } /** * PluginInvocation update */ export type PluginInvocationUpdateArgs = { /** * Select specific fields to fetch from the PluginInvocation */ select?: Prisma.PluginInvocationSelect | null /** * Omit specific fields from the PluginInvocation */ omit?: Prisma.PluginInvocationOmit | null /** * The data needed to update a PluginInvocation. */ data: Prisma.XOR /** * Choose, which PluginInvocation to update. */ where: Prisma.PluginInvocationWhereUniqueInput } /** * PluginInvocation updateMany */ export type PluginInvocationUpdateManyArgs = { /** * The data used to update PluginInvocations. */ data: Prisma.XOR /** * Filter which PluginInvocations to update */ where?: Prisma.PluginInvocationWhereInput /** * Limit how many PluginInvocations to update. */ limit?: number } /** * PluginInvocation updateManyAndReturn */ export type PluginInvocationUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the PluginInvocation */ select?: Prisma.PluginInvocationSelectUpdateManyAndReturn | null /** * Omit specific fields from the PluginInvocation */ omit?: Prisma.PluginInvocationOmit | null /** * The data used to update PluginInvocations. */ data: Prisma.XOR /** * Filter which PluginInvocations to update */ where?: Prisma.PluginInvocationWhereInput /** * Limit how many PluginInvocations to update. */ limit?: number } /** * PluginInvocation upsert */ export type PluginInvocationUpsertArgs = { /** * Select specific fields to fetch from the PluginInvocation */ select?: Prisma.PluginInvocationSelect | null /** * Omit specific fields from the PluginInvocation */ omit?: Prisma.PluginInvocationOmit | null /** * The filter to search for the PluginInvocation to update in case it exists. */ where: Prisma.PluginInvocationWhereUniqueInput /** * In case the PluginInvocation found by the `where` argument doesn't exist, create a new PluginInvocation with this data. */ create: Prisma.XOR /** * In case the PluginInvocation was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * PluginInvocation delete */ export type PluginInvocationDeleteArgs = { /** * Select specific fields to fetch from the PluginInvocation */ select?: Prisma.PluginInvocationSelect | null /** * Omit specific fields from the PluginInvocation */ omit?: Prisma.PluginInvocationOmit | null /** * Filter which PluginInvocation to delete. */ where: Prisma.PluginInvocationWhereUniqueInput } /** * PluginInvocation deleteMany */ export type PluginInvocationDeleteManyArgs = { /** * Filter which PluginInvocations to delete */ where?: Prisma.PluginInvocationWhereInput /** * Limit how many PluginInvocations to delete. */ limit?: number } /** * PluginInvocation without action */ export type PluginInvocationDefaultArgs = { /** * Select specific fields to fetch from the PluginInvocation */ select?: Prisma.PluginInvocationSelect | null /** * Omit specific fields from the PluginInvocation */ omit?: Prisma.PluginInvocationOmit | null }