/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Event` 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 Event * */ export type EventModel = runtime.Types.Result.DefaultSelection export type AggregateEvent = { _count: EventCountAggregateOutputType | null _min: EventMinAggregateOutputType | null _max: EventMaxAggregateOutputType | null } export type EventMinAggregateOutputType = { id: string | null createdAt: Date | null tenantId: string | null userId: string | null name: string | null data: string | null resource: string | null description: string | null } export type EventMaxAggregateOutputType = { id: string | null createdAt: Date | null tenantId: string | null userId: string | null name: string | null data: string | null resource: string | null description: string | null } export type EventCountAggregateOutputType = { id: number createdAt: number tenantId: number userId: number name: number data: number resource: number description: number _all: number } export type EventMinAggregateInputType = { id?: true createdAt?: true tenantId?: true userId?: true name?: true data?: true resource?: true description?: true } export type EventMaxAggregateInputType = { id?: true createdAt?: true tenantId?: true userId?: true name?: true data?: true resource?: true description?: true } export type EventCountAggregateInputType = { id?: true createdAt?: true tenantId?: true userId?: true name?: true data?: true resource?: true description?: true _all?: true } export type EventAggregateArgs = { /** * Filter which Event to aggregate. */ where?: Prisma.EventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Events to fetch. */ orderBy?: Prisma.EventOrderByWithRelationInput | Prisma.EventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.EventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Events 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` Events. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Events **/ _count?: true | EventCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EventMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EventMaxAggregateInputType } export type GetEventAggregateType = { [P in keyof T & keyof AggregateEvent]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type EventGroupByArgs = { where?: Prisma.EventWhereInput orderBy?: Prisma.EventOrderByWithAggregationInput | Prisma.EventOrderByWithAggregationInput[] by: Prisma.EventScalarFieldEnum[] | Prisma.EventScalarFieldEnum having?: Prisma.EventScalarWhereWithAggregatesInput take?: number skip?: number _count?: EventCountAggregateInputType | true _min?: EventMinAggregateInputType _max?: EventMaxAggregateInputType } export type EventGroupByOutputType = { id: string createdAt: Date tenantId: string | null userId: string | null name: string data: string resource: string | null description: string | null _count: EventCountAggregateOutputType | null _min: EventMinAggregateOutputType | null _max: EventMaxAggregateOutputType | null } export type GetEventGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof EventGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type EventWhereInput = { AND?: Prisma.EventWhereInput | Prisma.EventWhereInput[] OR?: Prisma.EventWhereInput[] NOT?: Prisma.EventWhereInput | Prisma.EventWhereInput[] id?: Prisma.StringFilter<"Event"> | string createdAt?: Prisma.DateTimeFilter<"Event"> | Date | string tenantId?: Prisma.StringNullableFilter<"Event"> | string | null userId?: Prisma.StringNullableFilter<"Event"> | string | null name?: Prisma.StringFilter<"Event"> | string data?: Prisma.StringFilter<"Event"> | string resource?: Prisma.StringNullableFilter<"Event"> | string | null description?: Prisma.StringNullableFilter<"Event"> | string | null tenant?: Prisma.XOR | null user?: Prisma.XOR | null attempts?: Prisma.EventWebhookAttemptListRelationFilter } export type EventOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder userId?: Prisma.SortOrderInput | Prisma.SortOrder name?: Prisma.SortOrder data?: Prisma.SortOrder resource?: Prisma.SortOrderInput | Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder tenant?: Prisma.TenantOrderByWithRelationInput user?: Prisma.UserOrderByWithRelationInput attempts?: Prisma.EventWebhookAttemptOrderByRelationAggregateInput } export type EventWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.EventWhereInput | Prisma.EventWhereInput[] OR?: Prisma.EventWhereInput[] NOT?: Prisma.EventWhereInput | Prisma.EventWhereInput[] createdAt?: Prisma.DateTimeFilter<"Event"> | Date | string tenantId?: Prisma.StringNullableFilter<"Event"> | string | null userId?: Prisma.StringNullableFilter<"Event"> | string | null name?: Prisma.StringFilter<"Event"> | string data?: Prisma.StringFilter<"Event"> | string resource?: Prisma.StringNullableFilter<"Event"> | string | null description?: Prisma.StringNullableFilter<"Event"> | string | null tenant?: Prisma.XOR | null user?: Prisma.XOR | null attempts?: Prisma.EventWebhookAttemptListRelationFilter }, "id"> export type EventOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder userId?: Prisma.SortOrderInput | Prisma.SortOrder name?: Prisma.SortOrder data?: Prisma.SortOrder resource?: Prisma.SortOrderInput | Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.EventCountOrderByAggregateInput _max?: Prisma.EventMaxOrderByAggregateInput _min?: Prisma.EventMinOrderByAggregateInput } export type EventScalarWhereWithAggregatesInput = { AND?: Prisma.EventScalarWhereWithAggregatesInput | Prisma.EventScalarWhereWithAggregatesInput[] OR?: Prisma.EventScalarWhereWithAggregatesInput[] NOT?: Prisma.EventScalarWhereWithAggregatesInput | Prisma.EventScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Event"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"Event"> | Date | string tenantId?: Prisma.StringNullableWithAggregatesFilter<"Event"> | string | null userId?: Prisma.StringNullableWithAggregatesFilter<"Event"> | string | null name?: Prisma.StringWithAggregatesFilter<"Event"> | string data?: Prisma.StringWithAggregatesFilter<"Event"> | string resource?: Prisma.StringNullableWithAggregatesFilter<"Event"> | string | null description?: Prisma.StringNullableWithAggregatesFilter<"Event"> | string | null } export type EventCreateInput = { id?: string createdAt?: Date | string name: string data: string resource?: string | null description?: string | null tenant?: Prisma.TenantCreateNestedOneWithoutEventsInput user?: Prisma.UserCreateNestedOneWithoutEventsInput attempts?: Prisma.EventWebhookAttemptCreateNestedManyWithoutEventInput } export type EventUncheckedCreateInput = { id?: string createdAt?: Date | string tenantId?: string | null userId?: string | null name: string data: string resource?: string | null description?: string | null attempts?: Prisma.EventWebhookAttemptUncheckedCreateNestedManyWithoutEventInput } export type EventUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string data?: Prisma.StringFieldUpdateOperationsInput | string resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenant?: Prisma.TenantUpdateOneWithoutEventsNestedInput user?: Prisma.UserUpdateOneWithoutEventsNestedInput attempts?: Prisma.EventWebhookAttemptUpdateManyWithoutEventNestedInput } export type EventUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string data?: Prisma.StringFieldUpdateOperationsInput | string resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null attempts?: Prisma.EventWebhookAttemptUncheckedUpdateManyWithoutEventNestedInput } export type EventCreateManyInput = { id?: string createdAt?: Date | string tenantId?: string | null userId?: string | null name: string data: string resource?: string | null description?: string | null } export type EventUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string data?: Prisma.StringFieldUpdateOperationsInput | string resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type EventUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string data?: Prisma.StringFieldUpdateOperationsInput | string resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type EventListRelationFilter = { every?: Prisma.EventWhereInput some?: Prisma.EventWhereInput none?: Prisma.EventWhereInput } export type EventOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type EventCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder name?: Prisma.SortOrder data?: Prisma.SortOrder resource?: Prisma.SortOrder description?: Prisma.SortOrder } export type EventMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder name?: Prisma.SortOrder data?: Prisma.SortOrder resource?: Prisma.SortOrder description?: Prisma.SortOrder } export type EventMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder name?: Prisma.SortOrder data?: Prisma.SortOrder resource?: Prisma.SortOrder description?: Prisma.SortOrder } export type EventScalarRelationFilter = { is?: Prisma.EventWhereInput isNot?: Prisma.EventWhereInput } export type EventCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.EventCreateWithoutUserInput[] | Prisma.EventUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.EventCreateOrConnectWithoutUserInput | Prisma.EventCreateOrConnectWithoutUserInput[] createMany?: Prisma.EventCreateManyUserInputEnvelope connect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] } export type EventUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.EventCreateWithoutUserInput[] | Prisma.EventUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.EventCreateOrConnectWithoutUserInput | Prisma.EventCreateOrConnectWithoutUserInput[] createMany?: Prisma.EventCreateManyUserInputEnvelope connect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] } export type EventUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.EventCreateWithoutUserInput[] | Prisma.EventUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.EventCreateOrConnectWithoutUserInput | Prisma.EventCreateOrConnectWithoutUserInput[] upsert?: Prisma.EventUpsertWithWhereUniqueWithoutUserInput | Prisma.EventUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.EventCreateManyUserInputEnvelope set?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] disconnect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] delete?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] connect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] update?: Prisma.EventUpdateWithWhereUniqueWithoutUserInput | Prisma.EventUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.EventUpdateManyWithWhereWithoutUserInput | Prisma.EventUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.EventScalarWhereInput | Prisma.EventScalarWhereInput[] } export type EventUncheckedUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.EventCreateWithoutUserInput[] | Prisma.EventUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.EventCreateOrConnectWithoutUserInput | Prisma.EventCreateOrConnectWithoutUserInput[] upsert?: Prisma.EventUpsertWithWhereUniqueWithoutUserInput | Prisma.EventUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.EventCreateManyUserInputEnvelope set?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] disconnect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] delete?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] connect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] update?: Prisma.EventUpdateWithWhereUniqueWithoutUserInput | Prisma.EventUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.EventUpdateManyWithWhereWithoutUserInput | Prisma.EventUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.EventScalarWhereInput | Prisma.EventScalarWhereInput[] } export type EventCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.EventCreateWithoutTenantInput[] | Prisma.EventUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.EventCreateOrConnectWithoutTenantInput | Prisma.EventCreateOrConnectWithoutTenantInput[] createMany?: Prisma.EventCreateManyTenantInputEnvelope connect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] } export type EventUncheckedCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.EventCreateWithoutTenantInput[] | Prisma.EventUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.EventCreateOrConnectWithoutTenantInput | Prisma.EventCreateOrConnectWithoutTenantInput[] createMany?: Prisma.EventCreateManyTenantInputEnvelope connect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] } export type EventUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.EventCreateWithoutTenantInput[] | Prisma.EventUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.EventCreateOrConnectWithoutTenantInput | Prisma.EventCreateOrConnectWithoutTenantInput[] upsert?: Prisma.EventUpsertWithWhereUniqueWithoutTenantInput | Prisma.EventUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.EventCreateManyTenantInputEnvelope set?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] disconnect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] delete?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] connect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] update?: Prisma.EventUpdateWithWhereUniqueWithoutTenantInput | Prisma.EventUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.EventUpdateManyWithWhereWithoutTenantInput | Prisma.EventUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.EventScalarWhereInput | Prisma.EventScalarWhereInput[] } export type EventUncheckedUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.EventCreateWithoutTenantInput[] | Prisma.EventUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.EventCreateOrConnectWithoutTenantInput | Prisma.EventCreateOrConnectWithoutTenantInput[] upsert?: Prisma.EventUpsertWithWhereUniqueWithoutTenantInput | Prisma.EventUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.EventCreateManyTenantInputEnvelope set?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] disconnect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] delete?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] connect?: Prisma.EventWhereUniqueInput | Prisma.EventWhereUniqueInput[] update?: Prisma.EventUpdateWithWhereUniqueWithoutTenantInput | Prisma.EventUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.EventUpdateManyWithWhereWithoutTenantInput | Prisma.EventUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.EventScalarWhereInput | Prisma.EventScalarWhereInput[] } export type EventCreateNestedOneWithoutAttemptsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.EventCreateOrConnectWithoutAttemptsInput connect?: Prisma.EventWhereUniqueInput } export type EventUpdateOneRequiredWithoutAttemptsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.EventCreateOrConnectWithoutAttemptsInput upsert?: Prisma.EventUpsertWithoutAttemptsInput connect?: Prisma.EventWhereUniqueInput update?: Prisma.XOR, Prisma.EventUncheckedUpdateWithoutAttemptsInput> } export type EventCreateWithoutUserInput = { id?: string createdAt?: Date | string name: string data: string resource?: string | null description?: string | null tenant?: Prisma.TenantCreateNestedOneWithoutEventsInput attempts?: Prisma.EventWebhookAttemptCreateNestedManyWithoutEventInput } export type EventUncheckedCreateWithoutUserInput = { id?: string createdAt?: Date | string tenantId?: string | null name: string data: string resource?: string | null description?: string | null attempts?: Prisma.EventWebhookAttemptUncheckedCreateNestedManyWithoutEventInput } export type EventCreateOrConnectWithoutUserInput = { where: Prisma.EventWhereUniqueInput create: Prisma.XOR } export type EventCreateManyUserInputEnvelope = { data: Prisma.EventCreateManyUserInput | Prisma.EventCreateManyUserInput[] skipDuplicates?: boolean } export type EventUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.EventWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type EventUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.EventWhereUniqueInput data: Prisma.XOR } export type EventUpdateManyWithWhereWithoutUserInput = { where: Prisma.EventScalarWhereInput data: Prisma.XOR } export type EventScalarWhereInput = { AND?: Prisma.EventScalarWhereInput | Prisma.EventScalarWhereInput[] OR?: Prisma.EventScalarWhereInput[] NOT?: Prisma.EventScalarWhereInput | Prisma.EventScalarWhereInput[] id?: Prisma.StringFilter<"Event"> | string createdAt?: Prisma.DateTimeFilter<"Event"> | Date | string tenantId?: Prisma.StringNullableFilter<"Event"> | string | null userId?: Prisma.StringNullableFilter<"Event"> | string | null name?: Prisma.StringFilter<"Event"> | string data?: Prisma.StringFilter<"Event"> | string resource?: Prisma.StringNullableFilter<"Event"> | string | null description?: Prisma.StringNullableFilter<"Event"> | string | null } export type EventCreateWithoutTenantInput = { id?: string createdAt?: Date | string name: string data: string resource?: string | null description?: string | null user?: Prisma.UserCreateNestedOneWithoutEventsInput attempts?: Prisma.EventWebhookAttemptCreateNestedManyWithoutEventInput } export type EventUncheckedCreateWithoutTenantInput = { id?: string createdAt?: Date | string userId?: string | null name: string data: string resource?: string | null description?: string | null attempts?: Prisma.EventWebhookAttemptUncheckedCreateNestedManyWithoutEventInput } export type EventCreateOrConnectWithoutTenantInput = { where: Prisma.EventWhereUniqueInput create: Prisma.XOR } export type EventCreateManyTenantInputEnvelope = { data: Prisma.EventCreateManyTenantInput | Prisma.EventCreateManyTenantInput[] skipDuplicates?: boolean } export type EventUpsertWithWhereUniqueWithoutTenantInput = { where: Prisma.EventWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type EventUpdateWithWhereUniqueWithoutTenantInput = { where: Prisma.EventWhereUniqueInput data: Prisma.XOR } export type EventUpdateManyWithWhereWithoutTenantInput = { where: Prisma.EventScalarWhereInput data: Prisma.XOR } export type EventCreateWithoutAttemptsInput = { id?: string createdAt?: Date | string name: string data: string resource?: string | null description?: string | null tenant?: Prisma.TenantCreateNestedOneWithoutEventsInput user?: Prisma.UserCreateNestedOneWithoutEventsInput } export type EventUncheckedCreateWithoutAttemptsInput = { id?: string createdAt?: Date | string tenantId?: string | null userId?: string | null name: string data: string resource?: string | null description?: string | null } export type EventCreateOrConnectWithoutAttemptsInput = { where: Prisma.EventWhereUniqueInput create: Prisma.XOR } export type EventUpsertWithoutAttemptsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.EventWhereInput } export type EventUpdateToOneWithWhereWithoutAttemptsInput = { where?: Prisma.EventWhereInput data: Prisma.XOR } export type EventUpdateWithoutAttemptsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string data?: Prisma.StringFieldUpdateOperationsInput | string resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenant?: Prisma.TenantUpdateOneWithoutEventsNestedInput user?: Prisma.UserUpdateOneWithoutEventsNestedInput } export type EventUncheckedUpdateWithoutAttemptsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string data?: Prisma.StringFieldUpdateOperationsInput | string resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type EventCreateManyUserInput = { id?: string createdAt?: Date | string tenantId?: string | null name: string data: string resource?: string | null description?: string | null } export type EventUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string data?: Prisma.StringFieldUpdateOperationsInput | string resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenant?: Prisma.TenantUpdateOneWithoutEventsNestedInput attempts?: Prisma.EventWebhookAttemptUpdateManyWithoutEventNestedInput } export type EventUncheckedUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string data?: Prisma.StringFieldUpdateOperationsInput | string resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null attempts?: Prisma.EventWebhookAttemptUncheckedUpdateManyWithoutEventNestedInput } export type EventUncheckedUpdateManyWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string data?: Prisma.StringFieldUpdateOperationsInput | string resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type EventCreateManyTenantInput = { id?: string createdAt?: Date | string userId?: string | null name: string data: string resource?: string | null description?: string | null } export type EventUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string name?: Prisma.StringFieldUpdateOperationsInput | string data?: Prisma.StringFieldUpdateOperationsInput | string resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null user?: Prisma.UserUpdateOneWithoutEventsNestedInput attempts?: Prisma.EventWebhookAttemptUpdateManyWithoutEventNestedInput } export type EventUncheckedUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string data?: Prisma.StringFieldUpdateOperationsInput | string resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null attempts?: Prisma.EventWebhookAttemptUncheckedUpdateManyWithoutEventNestedInput } export type EventUncheckedUpdateManyWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null name?: Prisma.StringFieldUpdateOperationsInput | string data?: Prisma.StringFieldUpdateOperationsInput | string resource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } /** * Count Type EventCountOutputType */ export type EventCountOutputType = { attempts: number } export type EventCountOutputTypeSelect = { attempts?: boolean | EventCountOutputTypeCountAttemptsArgs } /** * EventCountOutputType without action */ export type EventCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the EventCountOutputType */ select?: Prisma.EventCountOutputTypeSelect | null } /** * EventCountOutputType without action */ export type EventCountOutputTypeCountAttemptsArgs = { where?: Prisma.EventWebhookAttemptWhereInput } export type EventSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean tenantId?: boolean userId?: boolean name?: boolean data?: boolean resource?: boolean description?: boolean tenant?: boolean | Prisma.Event$tenantArgs user?: boolean | Prisma.Event$userArgs attempts?: boolean | Prisma.Event$attemptsArgs _count?: boolean | Prisma.EventCountOutputTypeDefaultArgs }, ExtArgs["result"]["event"]> export type EventSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean tenantId?: boolean userId?: boolean name?: boolean data?: boolean resource?: boolean description?: boolean tenant?: boolean | Prisma.Event$tenantArgs user?: boolean | Prisma.Event$userArgs }, ExtArgs["result"]["event"]> export type EventSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean tenantId?: boolean userId?: boolean name?: boolean data?: boolean resource?: boolean description?: boolean tenant?: boolean | Prisma.Event$tenantArgs user?: boolean | Prisma.Event$userArgs }, ExtArgs["result"]["event"]> export type EventSelectScalar = { id?: boolean createdAt?: boolean tenantId?: boolean userId?: boolean name?: boolean data?: boolean resource?: boolean description?: boolean } export type EventOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "tenantId" | "userId" | "name" | "data" | "resource" | "description", ExtArgs["result"]["event"]> export type EventInclude = { tenant?: boolean | Prisma.Event$tenantArgs user?: boolean | Prisma.Event$userArgs attempts?: boolean | Prisma.Event$attemptsArgs _count?: boolean | Prisma.EventCountOutputTypeDefaultArgs } export type EventIncludeCreateManyAndReturn = { tenant?: boolean | Prisma.Event$tenantArgs user?: boolean | Prisma.Event$userArgs } export type EventIncludeUpdateManyAndReturn = { tenant?: boolean | Prisma.Event$tenantArgs user?: boolean | Prisma.Event$userArgs } export type $EventPayload = { name: "Event" objects: { tenant: Prisma.$TenantPayload | null user: Prisma.$UserPayload | null attempts: Prisma.$EventWebhookAttemptPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date tenantId: string | null userId: string | null name: string data: string resource: string | null description: string | null }, ExtArgs["result"]["event"]> composites: {} } export type EventGetPayload = runtime.Types.Result.GetResult export type EventCountArgs = Omit & { select?: EventCountAggregateInputType | true } export interface EventDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Event'], meta: { name: 'Event' } } /** * Find zero or one Event that matches the filter. * @param {EventFindUniqueArgs} args - Arguments to find a Event * @example * // Get one Event * const event = await prisma.event.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__EventClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Event that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EventFindUniqueOrThrowArgs} args - Arguments to find a Event * @example * // Get one Event * const event = await prisma.event.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__EventClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Event 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 {EventFindFirstArgs} args - Arguments to find a Event * @example * // Get one Event * const event = await prisma.event.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__EventClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Event 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 {EventFindFirstOrThrowArgs} args - Arguments to find a Event * @example * // Get one Event * const event = await prisma.event.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__EventClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Events 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 {EventFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Events * const events = await prisma.event.findMany() * * // Get first 10 Events * const events = await prisma.event.findMany({ take: 10 }) * * // Only select the `id` * const eventWithIdOnly = await prisma.event.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Event. * @param {EventCreateArgs} args - Arguments to create a Event. * @example * // Create one Event * const Event = await prisma.event.create({ * data: { * // ... data to create a Event * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__EventClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Events. * @param {EventCreateManyArgs} args - Arguments to create many Events. * @example * // Create many Events * const event = await prisma.event.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Events and returns the data saved in the database. * @param {EventCreateManyAndReturnArgs} args - Arguments to create many Events. * @example * // Create many Events * const event = await prisma.event.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Events and only return the `id` * const eventWithIdOnly = await prisma.event.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 Event. * @param {EventDeleteArgs} args - Arguments to delete one Event. * @example * // Delete one Event * const Event = await prisma.event.delete({ * where: { * // ... filter to delete one Event * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__EventClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Event. * @param {EventUpdateArgs} args - Arguments to update one Event. * @example * // Update one Event * const event = await prisma.event.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__EventClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Events. * @param {EventDeleteManyArgs} args - Arguments to filter Events to delete. * @example * // Delete a few Events * const { count } = await prisma.event.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Events. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Events * const event = await prisma.event.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Events and returns the data updated in the database. * @param {EventUpdateManyAndReturnArgs} args - Arguments to update many Events. * @example * // Update many Events * const event = await prisma.event.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Events and only return the `id` * const eventWithIdOnly = await prisma.event.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 Event. * @param {EventUpsertArgs} args - Arguments to update or create a Event. * @example * // Update or create a Event * const event = await prisma.event.upsert({ * create: { * // ... data to create a Event * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Event we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__EventClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Events. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventCountArgs} args - Arguments to filter Events to count. * @example * // Count the number of Events * const count = await prisma.event.count({ * where: { * // ... the filter for the Events 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 Event. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventAggregateArgs} 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 Event. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventGroupByArgs} 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 EventGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: EventGroupByArgs['orderBy'] } : { orderBy?: EventGroupByArgs['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 ? GetEventGroupByPayload : Prisma.PrismaPromise /** * Fields of the Event model */ readonly fields: EventFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Event. * 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__EventClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" tenant = {}>(args?: Prisma.Subset>): Prisma.Prisma__TenantClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> attempts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * 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 Event model */ export interface EventFieldRefs { readonly id: Prisma.FieldRef<"Event", 'String'> readonly createdAt: Prisma.FieldRef<"Event", 'DateTime'> readonly tenantId: Prisma.FieldRef<"Event", 'String'> readonly userId: Prisma.FieldRef<"Event", 'String'> readonly name: Prisma.FieldRef<"Event", 'String'> readonly data: Prisma.FieldRef<"Event", 'String'> readonly resource: Prisma.FieldRef<"Event", 'String'> readonly description: Prisma.FieldRef<"Event", 'String'> } // Custom InputTypes /** * Event findUnique */ export type EventFindUniqueArgs = { /** * Select specific fields to fetch from the Event */ select?: Prisma.EventSelect | null /** * Omit specific fields from the Event */ omit?: Prisma.EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EventInclude | null /** * Filter, which Event to fetch. */ where: Prisma.EventWhereUniqueInput } /** * Event findUniqueOrThrow */ export type EventFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Event */ select?: Prisma.EventSelect | null /** * Omit specific fields from the Event */ omit?: Prisma.EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EventInclude | null /** * Filter, which Event to fetch. */ where: Prisma.EventWhereUniqueInput } /** * Event findFirst */ export type EventFindFirstArgs = { /** * Select specific fields to fetch from the Event */ select?: Prisma.EventSelect | null /** * Omit specific fields from the Event */ omit?: Prisma.EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EventInclude | null /** * Filter, which Event to fetch. */ where?: Prisma.EventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Events to fetch. */ orderBy?: Prisma.EventOrderByWithRelationInput | Prisma.EventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Events. */ cursor?: Prisma.EventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Events 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` Events. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Events. */ distinct?: Prisma.EventScalarFieldEnum | Prisma.EventScalarFieldEnum[] } /** * Event findFirstOrThrow */ export type EventFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Event */ select?: Prisma.EventSelect | null /** * Omit specific fields from the Event */ omit?: Prisma.EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EventInclude | null /** * Filter, which Event to fetch. */ where?: Prisma.EventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Events to fetch. */ orderBy?: Prisma.EventOrderByWithRelationInput | Prisma.EventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Events. */ cursor?: Prisma.EventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Events 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` Events. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Events. */ distinct?: Prisma.EventScalarFieldEnum | Prisma.EventScalarFieldEnum[] } /** * Event findMany */ export type EventFindManyArgs = { /** * Select specific fields to fetch from the Event */ select?: Prisma.EventSelect | null /** * Omit specific fields from the Event */ omit?: Prisma.EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EventInclude | null /** * Filter, which Events to fetch. */ where?: Prisma.EventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Events to fetch. */ orderBy?: Prisma.EventOrderByWithRelationInput | Prisma.EventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Events. */ cursor?: Prisma.EventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Events 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` Events. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Events. */ distinct?: Prisma.EventScalarFieldEnum | Prisma.EventScalarFieldEnum[] } /** * Event create */ export type EventCreateArgs = { /** * Select specific fields to fetch from the Event */ select?: Prisma.EventSelect | null /** * Omit specific fields from the Event */ omit?: Prisma.EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EventInclude | null /** * The data needed to create a Event. */ data: Prisma.XOR } /** * Event createMany */ export type EventCreateManyArgs = { /** * The data used to create many Events. */ data: Prisma.EventCreateManyInput | Prisma.EventCreateManyInput[] skipDuplicates?: boolean } /** * Event createManyAndReturn */ export type EventCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Event */ select?: Prisma.EventSelectCreateManyAndReturn | null /** * Omit specific fields from the Event */ omit?: Prisma.EventOmit | null /** * The data used to create many Events. */ data: Prisma.EventCreateManyInput | Prisma.EventCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.EventIncludeCreateManyAndReturn | null } /** * Event update */ export type EventUpdateArgs = { /** * Select specific fields to fetch from the Event */ select?: Prisma.EventSelect | null /** * Omit specific fields from the Event */ omit?: Prisma.EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EventInclude | null /** * The data needed to update a Event. */ data: Prisma.XOR /** * Choose, which Event to update. */ where: Prisma.EventWhereUniqueInput } /** * Event updateMany */ export type EventUpdateManyArgs = { /** * The data used to update Events. */ data: Prisma.XOR /** * Filter which Events to update */ where?: Prisma.EventWhereInput /** * Limit how many Events to update. */ limit?: number } /** * Event updateManyAndReturn */ export type EventUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Event */ select?: Prisma.EventSelectUpdateManyAndReturn | null /** * Omit specific fields from the Event */ omit?: Prisma.EventOmit | null /** * The data used to update Events. */ data: Prisma.XOR /** * Filter which Events to update */ where?: Prisma.EventWhereInput /** * Limit how many Events to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.EventIncludeUpdateManyAndReturn | null } /** * Event upsert */ export type EventUpsertArgs = { /** * Select specific fields to fetch from the Event */ select?: Prisma.EventSelect | null /** * Omit specific fields from the Event */ omit?: Prisma.EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EventInclude | null /** * The filter to search for the Event to update in case it exists. */ where: Prisma.EventWhereUniqueInput /** * In case the Event found by the `where` argument doesn't exist, create a new Event with this data. */ create: Prisma.XOR /** * In case the Event was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Event delete */ export type EventDeleteArgs = { /** * Select specific fields to fetch from the Event */ select?: Prisma.EventSelect | null /** * Omit specific fields from the Event */ omit?: Prisma.EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EventInclude | null /** * Filter which Event to delete. */ where: Prisma.EventWhereUniqueInput } /** * Event deleteMany */ export type EventDeleteManyArgs = { /** * Filter which Events to delete */ where?: Prisma.EventWhereInput /** * Limit how many Events to delete. */ limit?: number } /** * Event.tenant */ export type Event$tenantArgs = { /** * Select specific fields to fetch from the Tenant */ select?: Prisma.TenantSelect | null /** * Omit specific fields from the Tenant */ omit?: Prisma.TenantOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantInclude | null where?: Prisma.TenantWhereInput } /** * Event.user */ export type Event$userArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | null where?: Prisma.UserWhereInput } /** * Event.attempts */ export type Event$attemptsArgs = { /** * Select specific fields to fetch from the EventWebhookAttempt */ select?: Prisma.EventWebhookAttemptSelect | null /** * Omit specific fields from the EventWebhookAttempt */ omit?: Prisma.EventWebhookAttemptOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EventWebhookAttemptInclude | null where?: Prisma.EventWebhookAttemptWhereInput orderBy?: Prisma.EventWebhookAttemptOrderByWithRelationInput | Prisma.EventWebhookAttemptOrderByWithRelationInput[] cursor?: Prisma.EventWebhookAttemptWhereUniqueInput take?: number skip?: number distinct?: Prisma.EventWebhookAttemptScalarFieldEnum | Prisma.EventWebhookAttemptScalarFieldEnum[] } /** * Event without action */ export type EventDefaultArgs = { /** * Select specific fields to fetch from the Event */ select?: Prisma.EventSelect | null /** * Omit specific fields from the Event */ omit?: Prisma.EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EventInclude | null }