/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `OutboxEvent` 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 OutboxEvent * */ export type OutboxEventModel = runtime.Types.Result.DefaultSelection export type AggregateOutboxEvent = { _count: OutboxEventCountAggregateOutputType | null _avg: OutboxEventAvgAggregateOutputType | null _sum: OutboxEventSumAggregateOutputType | null _min: OutboxEventMinAggregateOutputType | null _max: OutboxEventMaxAggregateOutputType | null } export type OutboxEventAvgAggregateOutputType = { retries: number | null deliveryGeneration: number | null priority: number | null } export type OutboxEventSumAggregateOutputType = { retries: number | null deliveryGeneration: number | null priority: number | null } export type OutboxEventMinAggregateOutputType = { id: string | null tenantId: string | null eventType: string | null status: $Enums.OutboxStatus | null createdAt: Date | null processedAt: Date | null retries: number | null deliveryGeneration: number | null lastError: string | null scheduledAt: Date | null dispatchKey: string | null priority: number | null lockedUntil: Date | null } export type OutboxEventMaxAggregateOutputType = { id: string | null tenantId: string | null eventType: string | null status: $Enums.OutboxStatus | null createdAt: Date | null processedAt: Date | null retries: number | null deliveryGeneration: number | null lastError: string | null scheduledAt: Date | null dispatchKey: string | null priority: number | null lockedUntil: Date | null } export type OutboxEventCountAggregateOutputType = { id: number tenantId: number eventType: number payload: number status: number createdAt: number processedAt: number retries: number deliveryGeneration: number lastError: number scheduledAt: number dispatchKey: number priority: number lockedUntil: number _all: number } export type OutboxEventAvgAggregateInputType = { retries?: true deliveryGeneration?: true priority?: true } export type OutboxEventSumAggregateInputType = { retries?: true deliveryGeneration?: true priority?: true } export type OutboxEventMinAggregateInputType = { id?: true tenantId?: true eventType?: true status?: true createdAt?: true processedAt?: true retries?: true deliveryGeneration?: true lastError?: true scheduledAt?: true dispatchKey?: true priority?: true lockedUntil?: true } export type OutboxEventMaxAggregateInputType = { id?: true tenantId?: true eventType?: true status?: true createdAt?: true processedAt?: true retries?: true deliveryGeneration?: true lastError?: true scheduledAt?: true dispatchKey?: true priority?: true lockedUntil?: true } export type OutboxEventCountAggregateInputType = { id?: true tenantId?: true eventType?: true payload?: true status?: true createdAt?: true processedAt?: true retries?: true deliveryGeneration?: true lastError?: true scheduledAt?: true dispatchKey?: true priority?: true lockedUntil?: true _all?: true } export type OutboxEventAggregateArgs = { /** * Filter which OutboxEvent to aggregate. */ where?: Prisma.OutboxEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OutboxEvents to fetch. */ orderBy?: Prisma.OutboxEventOrderByWithRelationInput | Prisma.OutboxEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.OutboxEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OutboxEvents 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` OutboxEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned OutboxEvents **/ _count?: true | OutboxEventCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: OutboxEventAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: OutboxEventSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: OutboxEventMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: OutboxEventMaxAggregateInputType } export type GetOutboxEventAggregateType = { [P in keyof T & keyof AggregateOutboxEvent]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type OutboxEventGroupByArgs = { where?: Prisma.OutboxEventWhereInput orderBy?: Prisma.OutboxEventOrderByWithAggregationInput | Prisma.OutboxEventOrderByWithAggregationInput[] by: Prisma.OutboxEventScalarFieldEnum[] | Prisma.OutboxEventScalarFieldEnum having?: Prisma.OutboxEventScalarWhereWithAggregatesInput take?: number skip?: number _count?: OutboxEventCountAggregateInputType | true _avg?: OutboxEventAvgAggregateInputType _sum?: OutboxEventSumAggregateInputType _min?: OutboxEventMinAggregateInputType _max?: OutboxEventMaxAggregateInputType } export type OutboxEventGroupByOutputType = { id: string tenantId: string | null eventType: string payload: runtime.JsonValue status: $Enums.OutboxStatus createdAt: Date processedAt: Date | null retries: number deliveryGeneration: number lastError: string | null scheduledAt: Date dispatchKey: string | null priority: number lockedUntil: Date | null _count: OutboxEventCountAggregateOutputType | null _avg: OutboxEventAvgAggregateOutputType | null _sum: OutboxEventSumAggregateOutputType | null _min: OutboxEventMinAggregateOutputType | null _max: OutboxEventMaxAggregateOutputType | null } export type GetOutboxEventGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof OutboxEventGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type OutboxEventWhereInput = { AND?: Prisma.OutboxEventWhereInput | Prisma.OutboxEventWhereInput[] OR?: Prisma.OutboxEventWhereInput[] NOT?: Prisma.OutboxEventWhereInput | Prisma.OutboxEventWhereInput[] id?: Prisma.StringFilter<"OutboxEvent"> | string tenantId?: Prisma.StringNullableFilter<"OutboxEvent"> | string | null eventType?: Prisma.StringFilter<"OutboxEvent"> | string payload?: Prisma.JsonFilter<"OutboxEvent"> status?: Prisma.EnumOutboxStatusFilter<"OutboxEvent"> | $Enums.OutboxStatus createdAt?: Prisma.DateTimeFilter<"OutboxEvent"> | Date | string processedAt?: Prisma.DateTimeNullableFilter<"OutboxEvent"> | Date | string | null retries?: Prisma.IntFilter<"OutboxEvent"> | number deliveryGeneration?: Prisma.IntFilter<"OutboxEvent"> | number lastError?: Prisma.StringNullableFilter<"OutboxEvent"> | string | null scheduledAt?: Prisma.DateTimeFilter<"OutboxEvent"> | Date | string dispatchKey?: Prisma.StringNullableFilter<"OutboxEvent"> | string | null priority?: Prisma.IntFilter<"OutboxEvent"> | number lockedUntil?: Prisma.DateTimeNullableFilter<"OutboxEvent"> | Date | string | null } export type OutboxEventOrderByWithRelationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder eventType?: Prisma.SortOrder payload?: Prisma.SortOrder status?: Prisma.SortOrder createdAt?: Prisma.SortOrder processedAt?: Prisma.SortOrderInput | Prisma.SortOrder retries?: Prisma.SortOrder deliveryGeneration?: Prisma.SortOrder lastError?: Prisma.SortOrderInput | Prisma.SortOrder scheduledAt?: Prisma.SortOrder dispatchKey?: Prisma.SortOrderInput | Prisma.SortOrder priority?: Prisma.SortOrder lockedUntil?: Prisma.SortOrderInput | Prisma.SortOrder } export type OutboxEventWhereUniqueInput = Prisma.AtLeast<{ id?: string dispatchKey?: string AND?: Prisma.OutboxEventWhereInput | Prisma.OutboxEventWhereInput[] OR?: Prisma.OutboxEventWhereInput[] NOT?: Prisma.OutboxEventWhereInput | Prisma.OutboxEventWhereInput[] tenantId?: Prisma.StringNullableFilter<"OutboxEvent"> | string | null eventType?: Prisma.StringFilter<"OutboxEvent"> | string payload?: Prisma.JsonFilter<"OutboxEvent"> status?: Prisma.EnumOutboxStatusFilter<"OutboxEvent"> | $Enums.OutboxStatus createdAt?: Prisma.DateTimeFilter<"OutboxEvent"> | Date | string processedAt?: Prisma.DateTimeNullableFilter<"OutboxEvent"> | Date | string | null retries?: Prisma.IntFilter<"OutboxEvent"> | number deliveryGeneration?: Prisma.IntFilter<"OutboxEvent"> | number lastError?: Prisma.StringNullableFilter<"OutboxEvent"> | string | null scheduledAt?: Prisma.DateTimeFilter<"OutboxEvent"> | Date | string priority?: Prisma.IntFilter<"OutboxEvent"> | number lockedUntil?: Prisma.DateTimeNullableFilter<"OutboxEvent"> | Date | string | null }, "id" | "dispatchKey"> export type OutboxEventOrderByWithAggregationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder eventType?: Prisma.SortOrder payload?: Prisma.SortOrder status?: Prisma.SortOrder createdAt?: Prisma.SortOrder processedAt?: Prisma.SortOrderInput | Prisma.SortOrder retries?: Prisma.SortOrder deliveryGeneration?: Prisma.SortOrder lastError?: Prisma.SortOrderInput | Prisma.SortOrder scheduledAt?: Prisma.SortOrder dispatchKey?: Prisma.SortOrderInput | Prisma.SortOrder priority?: Prisma.SortOrder lockedUntil?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.OutboxEventCountOrderByAggregateInput _avg?: Prisma.OutboxEventAvgOrderByAggregateInput _max?: Prisma.OutboxEventMaxOrderByAggregateInput _min?: Prisma.OutboxEventMinOrderByAggregateInput _sum?: Prisma.OutboxEventSumOrderByAggregateInput } export type OutboxEventScalarWhereWithAggregatesInput = { AND?: Prisma.OutboxEventScalarWhereWithAggregatesInput | Prisma.OutboxEventScalarWhereWithAggregatesInput[] OR?: Prisma.OutboxEventScalarWhereWithAggregatesInput[] NOT?: Prisma.OutboxEventScalarWhereWithAggregatesInput | Prisma.OutboxEventScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"OutboxEvent"> | string tenantId?: Prisma.StringNullableWithAggregatesFilter<"OutboxEvent"> | string | null eventType?: Prisma.StringWithAggregatesFilter<"OutboxEvent"> | string payload?: Prisma.JsonWithAggregatesFilter<"OutboxEvent"> status?: Prisma.EnumOutboxStatusWithAggregatesFilter<"OutboxEvent"> | $Enums.OutboxStatus createdAt?: Prisma.DateTimeWithAggregatesFilter<"OutboxEvent"> | Date | string processedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"OutboxEvent"> | Date | string | null retries?: Prisma.IntWithAggregatesFilter<"OutboxEvent"> | number deliveryGeneration?: Prisma.IntWithAggregatesFilter<"OutboxEvent"> | number lastError?: Prisma.StringNullableWithAggregatesFilter<"OutboxEvent"> | string | null scheduledAt?: Prisma.DateTimeWithAggregatesFilter<"OutboxEvent"> | Date | string dispatchKey?: Prisma.StringNullableWithAggregatesFilter<"OutboxEvent"> | string | null priority?: Prisma.IntWithAggregatesFilter<"OutboxEvent"> | number lockedUntil?: Prisma.DateTimeNullableWithAggregatesFilter<"OutboxEvent"> | Date | string | null } export type OutboxEventCreateInput = { id?: string tenantId?: string | null eventType: string payload: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: $Enums.OutboxStatus createdAt?: Date | string processedAt?: Date | string | null retries?: number deliveryGeneration?: number lastError?: string | null scheduledAt?: Date | string dispatchKey?: string | null priority?: number lockedUntil?: Date | string | null } export type OutboxEventUncheckedCreateInput = { id?: string tenantId?: string | null eventType: string payload: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: $Enums.OutboxStatus createdAt?: Date | string processedAt?: Date | string | null retries?: number deliveryGeneration?: number lastError?: string | null scheduledAt?: Date | string dispatchKey?: string | null priority?: number lockedUntil?: Date | string | null } export type OutboxEventUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null eventType?: Prisma.StringFieldUpdateOperationsInput | string payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: Prisma.EnumOutboxStatusFieldUpdateOperationsInput | $Enums.OutboxStatus createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null retries?: Prisma.IntFieldUpdateOperationsInput | number deliveryGeneration?: Prisma.IntFieldUpdateOperationsInput | number lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null scheduledAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string dispatchKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null priority?: Prisma.IntFieldUpdateOperationsInput | number lockedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type OutboxEventUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null eventType?: Prisma.StringFieldUpdateOperationsInput | string payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: Prisma.EnumOutboxStatusFieldUpdateOperationsInput | $Enums.OutboxStatus createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null retries?: Prisma.IntFieldUpdateOperationsInput | number deliveryGeneration?: Prisma.IntFieldUpdateOperationsInput | number lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null scheduledAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string dispatchKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null priority?: Prisma.IntFieldUpdateOperationsInput | number lockedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type OutboxEventCreateManyInput = { id?: string tenantId?: string | null eventType: string payload: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: $Enums.OutboxStatus createdAt?: Date | string processedAt?: Date | string | null retries?: number deliveryGeneration?: number lastError?: string | null scheduledAt?: Date | string dispatchKey?: string | null priority?: number lockedUntil?: Date | string | null } export type OutboxEventUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null eventType?: Prisma.StringFieldUpdateOperationsInput | string payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: Prisma.EnumOutboxStatusFieldUpdateOperationsInput | $Enums.OutboxStatus createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null retries?: Prisma.IntFieldUpdateOperationsInput | number deliveryGeneration?: Prisma.IntFieldUpdateOperationsInput | number lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null scheduledAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string dispatchKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null priority?: Prisma.IntFieldUpdateOperationsInput | number lockedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type OutboxEventUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null eventType?: Prisma.StringFieldUpdateOperationsInput | string payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: Prisma.EnumOutboxStatusFieldUpdateOperationsInput | $Enums.OutboxStatus createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null retries?: Prisma.IntFieldUpdateOperationsInput | number deliveryGeneration?: Prisma.IntFieldUpdateOperationsInput | number lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null scheduledAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string dispatchKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null priority?: Prisma.IntFieldUpdateOperationsInput | number lockedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type OutboxEventCountOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder eventType?: Prisma.SortOrder payload?: Prisma.SortOrder status?: Prisma.SortOrder createdAt?: Prisma.SortOrder processedAt?: Prisma.SortOrder retries?: Prisma.SortOrder deliveryGeneration?: Prisma.SortOrder lastError?: Prisma.SortOrder scheduledAt?: Prisma.SortOrder dispatchKey?: Prisma.SortOrder priority?: Prisma.SortOrder lockedUntil?: Prisma.SortOrder } export type OutboxEventAvgOrderByAggregateInput = { retries?: Prisma.SortOrder deliveryGeneration?: Prisma.SortOrder priority?: Prisma.SortOrder } export type OutboxEventMaxOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder eventType?: Prisma.SortOrder status?: Prisma.SortOrder createdAt?: Prisma.SortOrder processedAt?: Prisma.SortOrder retries?: Prisma.SortOrder deliveryGeneration?: Prisma.SortOrder lastError?: Prisma.SortOrder scheduledAt?: Prisma.SortOrder dispatchKey?: Prisma.SortOrder priority?: Prisma.SortOrder lockedUntil?: Prisma.SortOrder } export type OutboxEventMinOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder eventType?: Prisma.SortOrder status?: Prisma.SortOrder createdAt?: Prisma.SortOrder processedAt?: Prisma.SortOrder retries?: Prisma.SortOrder deliveryGeneration?: Prisma.SortOrder lastError?: Prisma.SortOrder scheduledAt?: Prisma.SortOrder dispatchKey?: Prisma.SortOrder priority?: Prisma.SortOrder lockedUntil?: Prisma.SortOrder } export type OutboxEventSumOrderByAggregateInput = { retries?: Prisma.SortOrder deliveryGeneration?: Prisma.SortOrder priority?: Prisma.SortOrder } export type EnumOutboxStatusFieldUpdateOperationsInput = { set?: $Enums.OutboxStatus } export type OutboxEventSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean eventType?: boolean payload?: boolean status?: boolean createdAt?: boolean processedAt?: boolean retries?: boolean deliveryGeneration?: boolean lastError?: boolean scheduledAt?: boolean dispatchKey?: boolean priority?: boolean lockedUntil?: boolean }, ExtArgs["result"]["outboxEvent"]> export type OutboxEventSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean eventType?: boolean payload?: boolean status?: boolean createdAt?: boolean processedAt?: boolean retries?: boolean deliveryGeneration?: boolean lastError?: boolean scheduledAt?: boolean dispatchKey?: boolean priority?: boolean lockedUntil?: boolean }, ExtArgs["result"]["outboxEvent"]> export type OutboxEventSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean eventType?: boolean payload?: boolean status?: boolean createdAt?: boolean processedAt?: boolean retries?: boolean deliveryGeneration?: boolean lastError?: boolean scheduledAt?: boolean dispatchKey?: boolean priority?: boolean lockedUntil?: boolean }, ExtArgs["result"]["outboxEvent"]> export type OutboxEventSelectScalar = { id?: boolean tenantId?: boolean eventType?: boolean payload?: boolean status?: boolean createdAt?: boolean processedAt?: boolean retries?: boolean deliveryGeneration?: boolean lastError?: boolean scheduledAt?: boolean dispatchKey?: boolean priority?: boolean lockedUntil?: boolean } export type OutboxEventOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "eventType" | "payload" | "status" | "createdAt" | "processedAt" | "retries" | "deliveryGeneration" | "lastError" | "scheduledAt" | "dispatchKey" | "priority" | "lockedUntil", ExtArgs["result"]["outboxEvent"]> export type $OutboxEventPayload = { name: "OutboxEvent" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string tenantId: string | null eventType: string payload: runtime.JsonValue status: $Enums.OutboxStatus createdAt: Date processedAt: Date | null retries: number /** * Monotone operator-replay generation. Automatic enqueue retries keep the * same value so enqueue/ACK ambiguity still deduplicates in BullMQ. */ deliveryGeneration: number lastError: string | null scheduledAt: Date dispatchKey: string | null priority: number lockedUntil: Date | null }, ExtArgs["result"]["outboxEvent"]> composites: {} } export type OutboxEventGetPayload = runtime.Types.Result.GetResult export type OutboxEventCountArgs = Omit & { select?: OutboxEventCountAggregateInputType | true } export interface OutboxEventDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['OutboxEvent'], meta: { name: 'OutboxEvent' } } /** * Find zero or one OutboxEvent that matches the filter. * @param {OutboxEventFindUniqueArgs} args - Arguments to find a OutboxEvent * @example * // Get one OutboxEvent * const outboxEvent = await prisma.outboxEvent.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__OutboxEventClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one OutboxEvent that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {OutboxEventFindUniqueOrThrowArgs} args - Arguments to find a OutboxEvent * @example * // Get one OutboxEvent * const outboxEvent = await prisma.outboxEvent.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__OutboxEventClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first OutboxEvent 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 {OutboxEventFindFirstArgs} args - Arguments to find a OutboxEvent * @example * // Get one OutboxEvent * const outboxEvent = await prisma.outboxEvent.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__OutboxEventClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first OutboxEvent 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 {OutboxEventFindFirstOrThrowArgs} args - Arguments to find a OutboxEvent * @example * // Get one OutboxEvent * const outboxEvent = await prisma.outboxEvent.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__OutboxEventClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more OutboxEvents 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 {OutboxEventFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all OutboxEvents * const outboxEvents = await prisma.outboxEvent.findMany() * * // Get first 10 OutboxEvents * const outboxEvents = await prisma.outboxEvent.findMany({ take: 10 }) * * // Only select the `id` * const outboxEventWithIdOnly = await prisma.outboxEvent.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a OutboxEvent. * @param {OutboxEventCreateArgs} args - Arguments to create a OutboxEvent. * @example * // Create one OutboxEvent * const OutboxEvent = await prisma.outboxEvent.create({ * data: { * // ... data to create a OutboxEvent * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__OutboxEventClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many OutboxEvents. * @param {OutboxEventCreateManyArgs} args - Arguments to create many OutboxEvents. * @example * // Create many OutboxEvents * const outboxEvent = await prisma.outboxEvent.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many OutboxEvents and returns the data saved in the database. * @param {OutboxEventCreateManyAndReturnArgs} args - Arguments to create many OutboxEvents. * @example * // Create many OutboxEvents * const outboxEvent = await prisma.outboxEvent.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many OutboxEvents and only return the `id` * const outboxEventWithIdOnly = await prisma.outboxEvent.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 OutboxEvent. * @param {OutboxEventDeleteArgs} args - Arguments to delete one OutboxEvent. * @example * // Delete one OutboxEvent * const OutboxEvent = await prisma.outboxEvent.delete({ * where: { * // ... filter to delete one OutboxEvent * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__OutboxEventClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one OutboxEvent. * @param {OutboxEventUpdateArgs} args - Arguments to update one OutboxEvent. * @example * // Update one OutboxEvent * const outboxEvent = await prisma.outboxEvent.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__OutboxEventClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more OutboxEvents. * @param {OutboxEventDeleteManyArgs} args - Arguments to filter OutboxEvents to delete. * @example * // Delete a few OutboxEvents * const { count } = await prisma.outboxEvent.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more OutboxEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OutboxEventUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many OutboxEvents * const outboxEvent = await prisma.outboxEvent.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more OutboxEvents and returns the data updated in the database. * @param {OutboxEventUpdateManyAndReturnArgs} args - Arguments to update many OutboxEvents. * @example * // Update many OutboxEvents * const outboxEvent = await prisma.outboxEvent.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more OutboxEvents and only return the `id` * const outboxEventWithIdOnly = await prisma.outboxEvent.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 OutboxEvent. * @param {OutboxEventUpsertArgs} args - Arguments to update or create a OutboxEvent. * @example * // Update or create a OutboxEvent * const outboxEvent = await prisma.outboxEvent.upsert({ * create: { * // ... data to create a OutboxEvent * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the OutboxEvent we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__OutboxEventClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of OutboxEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OutboxEventCountArgs} args - Arguments to filter OutboxEvents to count. * @example * // Count the number of OutboxEvents * const count = await prisma.outboxEvent.count({ * where: { * // ... the filter for the OutboxEvents 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 OutboxEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OutboxEventAggregateArgs} 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 OutboxEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OutboxEventGroupByArgs} 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 OutboxEventGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: OutboxEventGroupByArgs['orderBy'] } : { orderBy?: OutboxEventGroupByArgs['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 ? GetOutboxEventGroupByPayload : Prisma.PrismaPromise /** * Fields of the OutboxEvent model */ readonly fields: OutboxEventFieldRefs; } /** * The delegate class that acts as a "Promise-like" for OutboxEvent. * 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__OutboxEventClient 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 OutboxEvent model */ export interface OutboxEventFieldRefs { readonly id: Prisma.FieldRef<"OutboxEvent", 'String'> readonly tenantId: Prisma.FieldRef<"OutboxEvent", 'String'> readonly eventType: Prisma.FieldRef<"OutboxEvent", 'String'> readonly payload: Prisma.FieldRef<"OutboxEvent", 'Json'> readonly status: Prisma.FieldRef<"OutboxEvent", 'OutboxStatus'> readonly createdAt: Prisma.FieldRef<"OutboxEvent", 'DateTime'> readonly processedAt: Prisma.FieldRef<"OutboxEvent", 'DateTime'> readonly retries: Prisma.FieldRef<"OutboxEvent", 'Int'> readonly deliveryGeneration: Prisma.FieldRef<"OutboxEvent", 'Int'> readonly lastError: Prisma.FieldRef<"OutboxEvent", 'String'> readonly scheduledAt: Prisma.FieldRef<"OutboxEvent", 'DateTime'> readonly dispatchKey: Prisma.FieldRef<"OutboxEvent", 'String'> readonly priority: Prisma.FieldRef<"OutboxEvent", 'Int'> readonly lockedUntil: Prisma.FieldRef<"OutboxEvent", 'DateTime'> } // Custom InputTypes /** * OutboxEvent findUnique */ export type OutboxEventFindUniqueArgs = { /** * Select specific fields to fetch from the OutboxEvent */ select?: Prisma.OutboxEventSelect | null /** * Omit specific fields from the OutboxEvent */ omit?: Prisma.OutboxEventOmit | null /** * Filter, which OutboxEvent to fetch. */ where: Prisma.OutboxEventWhereUniqueInput } /** * OutboxEvent findUniqueOrThrow */ export type OutboxEventFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the OutboxEvent */ select?: Prisma.OutboxEventSelect | null /** * Omit specific fields from the OutboxEvent */ omit?: Prisma.OutboxEventOmit | null /** * Filter, which OutboxEvent to fetch. */ where: Prisma.OutboxEventWhereUniqueInput } /** * OutboxEvent findFirst */ export type OutboxEventFindFirstArgs = { /** * Select specific fields to fetch from the OutboxEvent */ select?: Prisma.OutboxEventSelect | null /** * Omit specific fields from the OutboxEvent */ omit?: Prisma.OutboxEventOmit | null /** * Filter, which OutboxEvent to fetch. */ where?: Prisma.OutboxEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OutboxEvents to fetch. */ orderBy?: Prisma.OutboxEventOrderByWithRelationInput | Prisma.OutboxEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for OutboxEvents. */ cursor?: Prisma.OutboxEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OutboxEvents 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` OutboxEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of OutboxEvents. */ distinct?: Prisma.OutboxEventScalarFieldEnum | Prisma.OutboxEventScalarFieldEnum[] } /** * OutboxEvent findFirstOrThrow */ export type OutboxEventFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the OutboxEvent */ select?: Prisma.OutboxEventSelect | null /** * Omit specific fields from the OutboxEvent */ omit?: Prisma.OutboxEventOmit | null /** * Filter, which OutboxEvent to fetch. */ where?: Prisma.OutboxEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OutboxEvents to fetch. */ orderBy?: Prisma.OutboxEventOrderByWithRelationInput | Prisma.OutboxEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for OutboxEvents. */ cursor?: Prisma.OutboxEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OutboxEvents 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` OutboxEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of OutboxEvents. */ distinct?: Prisma.OutboxEventScalarFieldEnum | Prisma.OutboxEventScalarFieldEnum[] } /** * OutboxEvent findMany */ export type OutboxEventFindManyArgs = { /** * Select specific fields to fetch from the OutboxEvent */ select?: Prisma.OutboxEventSelect | null /** * Omit specific fields from the OutboxEvent */ omit?: Prisma.OutboxEventOmit | null /** * Filter, which OutboxEvents to fetch. */ where?: Prisma.OutboxEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OutboxEvents to fetch. */ orderBy?: Prisma.OutboxEventOrderByWithRelationInput | Prisma.OutboxEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing OutboxEvents. */ cursor?: Prisma.OutboxEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OutboxEvents 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` OutboxEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of OutboxEvents. */ distinct?: Prisma.OutboxEventScalarFieldEnum | Prisma.OutboxEventScalarFieldEnum[] } /** * OutboxEvent create */ export type OutboxEventCreateArgs = { /** * Select specific fields to fetch from the OutboxEvent */ select?: Prisma.OutboxEventSelect | null /** * Omit specific fields from the OutboxEvent */ omit?: Prisma.OutboxEventOmit | null /** * The data needed to create a OutboxEvent. */ data: Prisma.XOR } /** * OutboxEvent createMany */ export type OutboxEventCreateManyArgs = { /** * The data used to create many OutboxEvents. */ data: Prisma.OutboxEventCreateManyInput | Prisma.OutboxEventCreateManyInput[] skipDuplicates?: boolean } /** * OutboxEvent createManyAndReturn */ export type OutboxEventCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the OutboxEvent */ select?: Prisma.OutboxEventSelectCreateManyAndReturn | null /** * Omit specific fields from the OutboxEvent */ omit?: Prisma.OutboxEventOmit | null /** * The data used to create many OutboxEvents. */ data: Prisma.OutboxEventCreateManyInput | Prisma.OutboxEventCreateManyInput[] skipDuplicates?: boolean } /** * OutboxEvent update */ export type OutboxEventUpdateArgs = { /** * Select specific fields to fetch from the OutboxEvent */ select?: Prisma.OutboxEventSelect | null /** * Omit specific fields from the OutboxEvent */ omit?: Prisma.OutboxEventOmit | null /** * The data needed to update a OutboxEvent. */ data: Prisma.XOR /** * Choose, which OutboxEvent to update. */ where: Prisma.OutboxEventWhereUniqueInput } /** * OutboxEvent updateMany */ export type OutboxEventUpdateManyArgs = { /** * The data used to update OutboxEvents. */ data: Prisma.XOR /** * Filter which OutboxEvents to update */ where?: Prisma.OutboxEventWhereInput /** * Limit how many OutboxEvents to update. */ limit?: number } /** * OutboxEvent updateManyAndReturn */ export type OutboxEventUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the OutboxEvent */ select?: Prisma.OutboxEventSelectUpdateManyAndReturn | null /** * Omit specific fields from the OutboxEvent */ omit?: Prisma.OutboxEventOmit | null /** * The data used to update OutboxEvents. */ data: Prisma.XOR /** * Filter which OutboxEvents to update */ where?: Prisma.OutboxEventWhereInput /** * Limit how many OutboxEvents to update. */ limit?: number } /** * OutboxEvent upsert */ export type OutboxEventUpsertArgs = { /** * Select specific fields to fetch from the OutboxEvent */ select?: Prisma.OutboxEventSelect | null /** * Omit specific fields from the OutboxEvent */ omit?: Prisma.OutboxEventOmit | null /** * The filter to search for the OutboxEvent to update in case it exists. */ where: Prisma.OutboxEventWhereUniqueInput /** * In case the OutboxEvent found by the `where` argument doesn't exist, create a new OutboxEvent with this data. */ create: Prisma.XOR /** * In case the OutboxEvent was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * OutboxEvent delete */ export type OutboxEventDeleteArgs = { /** * Select specific fields to fetch from the OutboxEvent */ select?: Prisma.OutboxEventSelect | null /** * Omit specific fields from the OutboxEvent */ omit?: Prisma.OutboxEventOmit | null /** * Filter which OutboxEvent to delete. */ where: Prisma.OutboxEventWhereUniqueInput } /** * OutboxEvent deleteMany */ export type OutboxEventDeleteManyArgs = { /** * Filter which OutboxEvents to delete */ where?: Prisma.OutboxEventWhereInput /** * Limit how many OutboxEvents to delete. */ limit?: number } /** * OutboxEvent without action */ export type OutboxEventDefaultArgs = { /** * Select specific fields to fetch from the OutboxEvent */ select?: Prisma.OutboxEventSelect | null /** * Omit specific fields from the OutboxEvent */ omit?: Prisma.OutboxEventOmit | null }