/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Invite` model and its related types. * * 🟢 You can import this file directly. */ import type * as PJTG from '../pjtg'; 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 Invite * */ export type InviteModel = runtime.Types.Result.DefaultSelection export type AggregateInvite = { _count: InviteCountAggregateOutputType | null _min: InviteMinAggregateOutputType | null _max: InviteMaxAggregateOutputType | null } export type InviteMinAggregateOutputType = { id: string | null code: string | null role: $Enums.InviteRole | null used: boolean | null createdAt: Date | null updatedAt: Date | null teamId: string | null projectId: string | null inviterId: string | null } export type InviteMaxAggregateOutputType = { id: string | null code: string | null role: $Enums.InviteRole | null used: boolean | null createdAt: Date | null updatedAt: Date | null teamId: string | null projectId: string | null inviterId: string | null } export type InviteCountAggregateOutputType = { id: number code: number role: number used: number createdAt: number updatedAt: number teamId: number projectId: number inviterId: number _all: number } export type InviteMinAggregateInputType = { id?: true code?: true role?: true used?: true createdAt?: true updatedAt?: true teamId?: true projectId?: true inviterId?: true } export type InviteMaxAggregateInputType = { id?: true code?: true role?: true used?: true createdAt?: true updatedAt?: true teamId?: true projectId?: true inviterId?: true } export type InviteCountAggregateInputType = { id?: true code?: true role?: true used?: true createdAt?: true updatedAt?: true teamId?: true projectId?: true inviterId?: true _all?: true } export type InviteAggregateArgs = { /** * Filter which Invite to aggregate. */ where?: Prisma.InviteWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Invites to fetch. */ orderBy?: Prisma.InviteOrderByWithRelationInput | Prisma.InviteOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.InviteWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Invites 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` Invites. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Invites **/ _count?: true | InviteCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: InviteMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: InviteMaxAggregateInputType } export type GetInviteAggregateType = { [P in keyof T & keyof AggregateInvite]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type InviteGroupByArgs = { where?: Prisma.InviteWhereInput orderBy?: Prisma.InviteOrderByWithAggregationInput | Prisma.InviteOrderByWithAggregationInput[] by: Prisma.InviteScalarFieldEnum[] | Prisma.InviteScalarFieldEnum having?: Prisma.InviteScalarWhereWithAggregatesInput take?: number skip?: number _count?: InviteCountAggregateInputType | true _min?: InviteMinAggregateInputType _max?: InviteMaxAggregateInputType } export type InviteGroupByOutputType = { id: string code: string role: $Enums.InviteRole | null used: boolean createdAt: Date updatedAt: Date teamId: string projectId: string | null inviterId: string _count: InviteCountAggregateOutputType | null _min: InviteMinAggregateOutputType | null _max: InviteMaxAggregateOutputType | null } export type GetInviteGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof InviteGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type InviteWhereInput = { AND?: Prisma.InviteWhereInput | Prisma.InviteWhereInput[] OR?: Prisma.InviteWhereInput[] NOT?: Prisma.InviteWhereInput | Prisma.InviteWhereInput[] id?: Prisma.StringFilter<"Invite"> | string code?: Prisma.StringFilter<"Invite"> | string role?: Prisma.EnumInviteRoleNullableFilter<"Invite"> | $Enums.InviteRole | null used?: Prisma.BoolFilter<"Invite"> | boolean createdAt?: Prisma.DateTimeFilter<"Invite"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Invite"> | Date | string teamId?: Prisma.StringFilter<"Invite"> | string projectId?: Prisma.StringNullableFilter<"Invite"> | string | null inviterId?: Prisma.StringFilter<"Invite"> | string team?: Prisma.XOR project?: Prisma.XOR | null inviter?: Prisma.XOR } export type InviteOrderByWithRelationInput = { id?: Prisma.SortOrder code?: Prisma.SortOrder role?: Prisma.SortOrderInput | Prisma.SortOrder used?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder teamId?: Prisma.SortOrder projectId?: Prisma.SortOrderInput | Prisma.SortOrder inviterId?: Prisma.SortOrder team?: Prisma.TeamOrderByWithRelationInput project?: Prisma.ProjectOrderByWithRelationInput inviter?: Prisma.UserOrderByWithRelationInput } export type InviteWhereUniqueInput = Prisma.AtLeast<{ id?: string code?: string AND?: Prisma.InviteWhereInput | Prisma.InviteWhereInput[] OR?: Prisma.InviteWhereInput[] NOT?: Prisma.InviteWhereInput | Prisma.InviteWhereInput[] role?: Prisma.EnumInviteRoleNullableFilter<"Invite"> | $Enums.InviteRole | null used?: Prisma.BoolFilter<"Invite"> | boolean createdAt?: Prisma.DateTimeFilter<"Invite"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Invite"> | Date | string teamId?: Prisma.StringFilter<"Invite"> | string projectId?: Prisma.StringNullableFilter<"Invite"> | string | null inviterId?: Prisma.StringFilter<"Invite"> | string team?: Prisma.XOR project?: Prisma.XOR | null inviter?: Prisma.XOR }, "id" | "code"> export type InviteOrderByWithAggregationInput = { id?: Prisma.SortOrder code?: Prisma.SortOrder role?: Prisma.SortOrderInput | Prisma.SortOrder used?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder teamId?: Prisma.SortOrder projectId?: Prisma.SortOrderInput | Prisma.SortOrder inviterId?: Prisma.SortOrder _count?: Prisma.InviteCountOrderByAggregateInput _max?: Prisma.InviteMaxOrderByAggregateInput _min?: Prisma.InviteMinOrderByAggregateInput } export type InviteScalarWhereWithAggregatesInput = { AND?: Prisma.InviteScalarWhereWithAggregatesInput | Prisma.InviteScalarWhereWithAggregatesInput[] OR?: Prisma.InviteScalarWhereWithAggregatesInput[] NOT?: Prisma.InviteScalarWhereWithAggregatesInput | Prisma.InviteScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Invite"> | string code?: Prisma.StringWithAggregatesFilter<"Invite"> | string role?: Prisma.EnumInviteRoleNullableWithAggregatesFilter<"Invite"> | $Enums.InviteRole | null used?: Prisma.BoolWithAggregatesFilter<"Invite"> | boolean createdAt?: Prisma.DateTimeWithAggregatesFilter<"Invite"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Invite"> | Date | string teamId?: Prisma.StringWithAggregatesFilter<"Invite"> | string projectId?: Prisma.StringNullableWithAggregatesFilter<"Invite"> | string | null inviterId?: Prisma.StringWithAggregatesFilter<"Invite"> | string } export type InviteCreateInput = { id?: string code: string role?: $Enums.InviteRole | null used?: boolean createdAt?: Date | string updatedAt?: Date | string team: Prisma.TeamCreateNestedOneWithoutInvitesInput project?: Prisma.ProjectCreateNestedOneWithoutInvitesInput inviter: Prisma.UserCreateNestedOneWithoutCreatedInvitesInput } export type InviteUncheckedCreateInput = { id?: string code: string role?: $Enums.InviteRole | null used?: boolean createdAt?: Date | string updatedAt?: Date | string teamId: string projectId?: string | null inviterId: string } export type InviteUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null used?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string team?: Prisma.TeamUpdateOneRequiredWithoutInvitesNestedInput project?: Prisma.ProjectUpdateOneWithoutInvitesNestedInput inviter?: Prisma.UserUpdateOneRequiredWithoutCreatedInvitesNestedInput } export type InviteUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null used?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string teamId?: Prisma.StringFieldUpdateOperationsInput | string projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null inviterId?: Prisma.StringFieldUpdateOperationsInput | string } export type InviteCreateManyInput = { id?: string code: string role?: $Enums.InviteRole | null used?: boolean createdAt?: Date | string updatedAt?: Date | string teamId: string projectId?: string | null inviterId: string } export type InviteUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null used?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type InviteUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null used?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string teamId?: Prisma.StringFieldUpdateOperationsInput | string projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null inviterId?: Prisma.StringFieldUpdateOperationsInput | string } export type InviteListRelationFilter = { every?: Prisma.InviteWhereInput some?: Prisma.InviteWhereInput none?: Prisma.InviteWhereInput } export type InviteOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type InviteCountOrderByAggregateInput = { id?: Prisma.SortOrder code?: Prisma.SortOrder role?: Prisma.SortOrder used?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder teamId?: Prisma.SortOrder projectId?: Prisma.SortOrder inviterId?: Prisma.SortOrder } export type InviteMaxOrderByAggregateInput = { id?: Prisma.SortOrder code?: Prisma.SortOrder role?: Prisma.SortOrder used?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder teamId?: Prisma.SortOrder projectId?: Prisma.SortOrder inviterId?: Prisma.SortOrder } export type InviteMinOrderByAggregateInput = { id?: Prisma.SortOrder code?: Prisma.SortOrder role?: Prisma.SortOrder used?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder teamId?: Prisma.SortOrder projectId?: Prisma.SortOrder inviterId?: Prisma.SortOrder } export type InviteCreateNestedManyWithoutInviterInput = { create?: Prisma.XOR | Prisma.InviteCreateWithoutInviterInput[] | Prisma.InviteUncheckedCreateWithoutInviterInput[] connectOrCreate?: Prisma.InviteCreateOrConnectWithoutInviterInput | Prisma.InviteCreateOrConnectWithoutInviterInput[] createMany?: Prisma.InviteCreateManyInviterInputEnvelope connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] } export type InviteUncheckedCreateNestedManyWithoutInviterInput = { create?: Prisma.XOR | Prisma.InviteCreateWithoutInviterInput[] | Prisma.InviteUncheckedCreateWithoutInviterInput[] connectOrCreate?: Prisma.InviteCreateOrConnectWithoutInviterInput | Prisma.InviteCreateOrConnectWithoutInviterInput[] createMany?: Prisma.InviteCreateManyInviterInputEnvelope connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] } export type InviteUpdateManyWithoutInviterNestedInput = { create?: Prisma.XOR | Prisma.InviteCreateWithoutInviterInput[] | Prisma.InviteUncheckedCreateWithoutInviterInput[] connectOrCreate?: Prisma.InviteCreateOrConnectWithoutInviterInput | Prisma.InviteCreateOrConnectWithoutInviterInput[] upsert?: Prisma.InviteUpsertWithWhereUniqueWithoutInviterInput | Prisma.InviteUpsertWithWhereUniqueWithoutInviterInput[] createMany?: Prisma.InviteCreateManyInviterInputEnvelope set?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] disconnect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] delete?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] update?: Prisma.InviteUpdateWithWhereUniqueWithoutInviterInput | Prisma.InviteUpdateWithWhereUniqueWithoutInviterInput[] updateMany?: Prisma.InviteUpdateManyWithWhereWithoutInviterInput | Prisma.InviteUpdateManyWithWhereWithoutInviterInput[] deleteMany?: Prisma.InviteScalarWhereInput | Prisma.InviteScalarWhereInput[] } export type InviteUncheckedUpdateManyWithoutInviterNestedInput = { create?: Prisma.XOR | Prisma.InviteCreateWithoutInviterInput[] | Prisma.InviteUncheckedCreateWithoutInviterInput[] connectOrCreate?: Prisma.InviteCreateOrConnectWithoutInviterInput | Prisma.InviteCreateOrConnectWithoutInviterInput[] upsert?: Prisma.InviteUpsertWithWhereUniqueWithoutInviterInput | Prisma.InviteUpsertWithWhereUniqueWithoutInviterInput[] createMany?: Prisma.InviteCreateManyInviterInputEnvelope set?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] disconnect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] delete?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] update?: Prisma.InviteUpdateWithWhereUniqueWithoutInviterInput | Prisma.InviteUpdateWithWhereUniqueWithoutInviterInput[] updateMany?: Prisma.InviteUpdateManyWithWhereWithoutInviterInput | Prisma.InviteUpdateManyWithWhereWithoutInviterInput[] deleteMany?: Prisma.InviteScalarWhereInput | Prisma.InviteScalarWhereInput[] } export type InviteCreateNestedManyWithoutTeamInput = { create?: Prisma.XOR | Prisma.InviteCreateWithoutTeamInput[] | Prisma.InviteUncheckedCreateWithoutTeamInput[] connectOrCreate?: Prisma.InviteCreateOrConnectWithoutTeamInput | Prisma.InviteCreateOrConnectWithoutTeamInput[] createMany?: Prisma.InviteCreateManyTeamInputEnvelope connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] } export type InviteUncheckedCreateNestedManyWithoutTeamInput = { create?: Prisma.XOR | Prisma.InviteCreateWithoutTeamInput[] | Prisma.InviteUncheckedCreateWithoutTeamInput[] connectOrCreate?: Prisma.InviteCreateOrConnectWithoutTeamInput | Prisma.InviteCreateOrConnectWithoutTeamInput[] createMany?: Prisma.InviteCreateManyTeamInputEnvelope connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] } export type InviteUpdateManyWithoutTeamNestedInput = { create?: Prisma.XOR | Prisma.InviteCreateWithoutTeamInput[] | Prisma.InviteUncheckedCreateWithoutTeamInput[] connectOrCreate?: Prisma.InviteCreateOrConnectWithoutTeamInput | Prisma.InviteCreateOrConnectWithoutTeamInput[] upsert?: Prisma.InviteUpsertWithWhereUniqueWithoutTeamInput | Prisma.InviteUpsertWithWhereUniqueWithoutTeamInput[] createMany?: Prisma.InviteCreateManyTeamInputEnvelope set?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] disconnect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] delete?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] update?: Prisma.InviteUpdateWithWhereUniqueWithoutTeamInput | Prisma.InviteUpdateWithWhereUniqueWithoutTeamInput[] updateMany?: Prisma.InviteUpdateManyWithWhereWithoutTeamInput | Prisma.InviteUpdateManyWithWhereWithoutTeamInput[] deleteMany?: Prisma.InviteScalarWhereInput | Prisma.InviteScalarWhereInput[] } export type InviteUncheckedUpdateManyWithoutTeamNestedInput = { create?: Prisma.XOR | Prisma.InviteCreateWithoutTeamInput[] | Prisma.InviteUncheckedCreateWithoutTeamInput[] connectOrCreate?: Prisma.InviteCreateOrConnectWithoutTeamInput | Prisma.InviteCreateOrConnectWithoutTeamInput[] upsert?: Prisma.InviteUpsertWithWhereUniqueWithoutTeamInput | Prisma.InviteUpsertWithWhereUniqueWithoutTeamInput[] createMany?: Prisma.InviteCreateManyTeamInputEnvelope set?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] disconnect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] delete?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] update?: Prisma.InviteUpdateWithWhereUniqueWithoutTeamInput | Prisma.InviteUpdateWithWhereUniqueWithoutTeamInput[] updateMany?: Prisma.InviteUpdateManyWithWhereWithoutTeamInput | Prisma.InviteUpdateManyWithWhereWithoutTeamInput[] deleteMany?: Prisma.InviteScalarWhereInput | Prisma.InviteScalarWhereInput[] } export type InviteCreateNestedManyWithoutProjectInput = { create?: Prisma.XOR | Prisma.InviteCreateWithoutProjectInput[] | Prisma.InviteUncheckedCreateWithoutProjectInput[] connectOrCreate?: Prisma.InviteCreateOrConnectWithoutProjectInput | Prisma.InviteCreateOrConnectWithoutProjectInput[] createMany?: Prisma.InviteCreateManyProjectInputEnvelope connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] } export type InviteUncheckedCreateNestedManyWithoutProjectInput = { create?: Prisma.XOR | Prisma.InviteCreateWithoutProjectInput[] | Prisma.InviteUncheckedCreateWithoutProjectInput[] connectOrCreate?: Prisma.InviteCreateOrConnectWithoutProjectInput | Prisma.InviteCreateOrConnectWithoutProjectInput[] createMany?: Prisma.InviteCreateManyProjectInputEnvelope connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] } export type InviteUpdateManyWithoutProjectNestedInput = { create?: Prisma.XOR | Prisma.InviteCreateWithoutProjectInput[] | Prisma.InviteUncheckedCreateWithoutProjectInput[] connectOrCreate?: Prisma.InviteCreateOrConnectWithoutProjectInput | Prisma.InviteCreateOrConnectWithoutProjectInput[] upsert?: Prisma.InviteUpsertWithWhereUniqueWithoutProjectInput | Prisma.InviteUpsertWithWhereUniqueWithoutProjectInput[] createMany?: Prisma.InviteCreateManyProjectInputEnvelope set?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] disconnect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] delete?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] update?: Prisma.InviteUpdateWithWhereUniqueWithoutProjectInput | Prisma.InviteUpdateWithWhereUniqueWithoutProjectInput[] updateMany?: Prisma.InviteUpdateManyWithWhereWithoutProjectInput | Prisma.InviteUpdateManyWithWhereWithoutProjectInput[] deleteMany?: Prisma.InviteScalarWhereInput | Prisma.InviteScalarWhereInput[] } export type InviteUncheckedUpdateManyWithoutProjectNestedInput = { create?: Prisma.XOR | Prisma.InviteCreateWithoutProjectInput[] | Prisma.InviteUncheckedCreateWithoutProjectInput[] connectOrCreate?: Prisma.InviteCreateOrConnectWithoutProjectInput | Prisma.InviteCreateOrConnectWithoutProjectInput[] upsert?: Prisma.InviteUpsertWithWhereUniqueWithoutProjectInput | Prisma.InviteUpsertWithWhereUniqueWithoutProjectInput[] createMany?: Prisma.InviteCreateManyProjectInputEnvelope set?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] disconnect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] delete?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] connect?: Prisma.InviteWhereUniqueInput | Prisma.InviteWhereUniqueInput[] update?: Prisma.InviteUpdateWithWhereUniqueWithoutProjectInput | Prisma.InviteUpdateWithWhereUniqueWithoutProjectInput[] updateMany?: Prisma.InviteUpdateManyWithWhereWithoutProjectInput | Prisma.InviteUpdateManyWithWhereWithoutProjectInput[] deleteMany?: Prisma.InviteScalarWhereInput | Prisma.InviteScalarWhereInput[] } export type NullableEnumInviteRoleFieldUpdateOperationsInput = { set?: $Enums.InviteRole | null } export type InviteCreateWithoutInviterInput = { id?: string code: string role?: $Enums.InviteRole | null used?: boolean createdAt?: Date | string updatedAt?: Date | string team: Prisma.TeamCreateNestedOneWithoutInvitesInput project?: Prisma.ProjectCreateNestedOneWithoutInvitesInput } export type InviteUncheckedCreateWithoutInviterInput = { id?: string code: string role?: $Enums.InviteRole | null used?: boolean createdAt?: Date | string updatedAt?: Date | string teamId: string projectId?: string | null } export type InviteCreateOrConnectWithoutInviterInput = { where: Prisma.InviteWhereUniqueInput create: Prisma.XOR } export type InviteCreateManyInviterInputEnvelope = { data: Prisma.InviteCreateManyInviterInput | Prisma.InviteCreateManyInviterInput[] skipDuplicates?: boolean } export type InviteUpsertWithWhereUniqueWithoutInviterInput = { where: Prisma.InviteWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type InviteUpdateWithWhereUniqueWithoutInviterInput = { where: Prisma.InviteWhereUniqueInput data: Prisma.XOR } export type InviteUpdateManyWithWhereWithoutInviterInput = { where: Prisma.InviteScalarWhereInput data: Prisma.XOR } export type InviteScalarWhereInput = { AND?: Prisma.InviteScalarWhereInput | Prisma.InviteScalarWhereInput[] OR?: Prisma.InviteScalarWhereInput[] NOT?: Prisma.InviteScalarWhereInput | Prisma.InviteScalarWhereInput[] id?: Prisma.StringFilter<"Invite"> | string code?: Prisma.StringFilter<"Invite"> | string role?: Prisma.EnumInviteRoleNullableFilter<"Invite"> | $Enums.InviteRole | null used?: Prisma.BoolFilter<"Invite"> | boolean createdAt?: Prisma.DateTimeFilter<"Invite"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Invite"> | Date | string teamId?: Prisma.StringFilter<"Invite"> | string projectId?: Prisma.StringNullableFilter<"Invite"> | string | null inviterId?: Prisma.StringFilter<"Invite"> | string } export type InviteCreateWithoutTeamInput = { id?: string code: string role?: $Enums.InviteRole | null used?: boolean createdAt?: Date | string updatedAt?: Date | string project?: Prisma.ProjectCreateNestedOneWithoutInvitesInput inviter: Prisma.UserCreateNestedOneWithoutCreatedInvitesInput } export type InviteUncheckedCreateWithoutTeamInput = { id?: string code: string role?: $Enums.InviteRole | null used?: boolean createdAt?: Date | string updatedAt?: Date | string projectId?: string | null inviterId: string } export type InviteCreateOrConnectWithoutTeamInput = { where: Prisma.InviteWhereUniqueInput create: Prisma.XOR } export type InviteCreateManyTeamInputEnvelope = { data: Prisma.InviteCreateManyTeamInput | Prisma.InviteCreateManyTeamInput[] skipDuplicates?: boolean } export type InviteUpsertWithWhereUniqueWithoutTeamInput = { where: Prisma.InviteWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type InviteUpdateWithWhereUniqueWithoutTeamInput = { where: Prisma.InviteWhereUniqueInput data: Prisma.XOR } export type InviteUpdateManyWithWhereWithoutTeamInput = { where: Prisma.InviteScalarWhereInput data: Prisma.XOR } export type InviteCreateWithoutProjectInput = { id?: string code: string role?: $Enums.InviteRole | null used?: boolean createdAt?: Date | string updatedAt?: Date | string team: Prisma.TeamCreateNestedOneWithoutInvitesInput inviter: Prisma.UserCreateNestedOneWithoutCreatedInvitesInput } export type InviteUncheckedCreateWithoutProjectInput = { id?: string code: string role?: $Enums.InviteRole | null used?: boolean createdAt?: Date | string updatedAt?: Date | string teamId: string inviterId: string } export type InviteCreateOrConnectWithoutProjectInput = { where: Prisma.InviteWhereUniqueInput create: Prisma.XOR } export type InviteCreateManyProjectInputEnvelope = { data: Prisma.InviteCreateManyProjectInput | Prisma.InviteCreateManyProjectInput[] skipDuplicates?: boolean } export type InviteUpsertWithWhereUniqueWithoutProjectInput = { where: Prisma.InviteWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type InviteUpdateWithWhereUniqueWithoutProjectInput = { where: Prisma.InviteWhereUniqueInput data: Prisma.XOR } export type InviteUpdateManyWithWhereWithoutProjectInput = { where: Prisma.InviteScalarWhereInput data: Prisma.XOR } export type InviteCreateManyInviterInput = { id?: string code: string role?: $Enums.InviteRole | null used?: boolean createdAt?: Date | string updatedAt?: Date | string teamId: string projectId?: string | null } export type InviteUpdateWithoutInviterInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null used?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string team?: Prisma.TeamUpdateOneRequiredWithoutInvitesNestedInput project?: Prisma.ProjectUpdateOneWithoutInvitesNestedInput } export type InviteUncheckedUpdateWithoutInviterInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null used?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string teamId?: Prisma.StringFieldUpdateOperationsInput | string projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type InviteUncheckedUpdateManyWithoutInviterInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null used?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string teamId?: Prisma.StringFieldUpdateOperationsInput | string projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type InviteCreateManyTeamInput = { id?: string code: string role?: $Enums.InviteRole | null used?: boolean createdAt?: Date | string updatedAt?: Date | string projectId?: string | null inviterId: string } export type InviteUpdateWithoutTeamInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null used?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string project?: Prisma.ProjectUpdateOneWithoutInvitesNestedInput inviter?: Prisma.UserUpdateOneRequiredWithoutCreatedInvitesNestedInput } export type InviteUncheckedUpdateWithoutTeamInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null used?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null inviterId?: Prisma.StringFieldUpdateOperationsInput | string } export type InviteUncheckedUpdateManyWithoutTeamInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null used?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null inviterId?: Prisma.StringFieldUpdateOperationsInput | string } export type InviteCreateManyProjectInput = { id?: string code: string role?: $Enums.InviteRole | null used?: boolean createdAt?: Date | string updatedAt?: Date | string teamId: string inviterId: string } export type InviteUpdateWithoutProjectInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null used?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string team?: Prisma.TeamUpdateOneRequiredWithoutInvitesNestedInput inviter?: Prisma.UserUpdateOneRequiredWithoutCreatedInvitesNestedInput } export type InviteUncheckedUpdateWithoutProjectInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null used?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string teamId?: Prisma.StringFieldUpdateOperationsInput | string inviterId?: Prisma.StringFieldUpdateOperationsInput | string } export type InviteUncheckedUpdateManyWithoutProjectInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string role?: Prisma.NullableEnumInviteRoleFieldUpdateOperationsInput | $Enums.InviteRole | null used?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string teamId?: Prisma.StringFieldUpdateOperationsInput | string inviterId?: Prisma.StringFieldUpdateOperationsInput | string } export type InviteSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean code?: boolean role?: boolean used?: boolean createdAt?: boolean updatedAt?: boolean teamId?: boolean projectId?: boolean inviterId?: boolean team?: boolean | Prisma.TeamDefaultArgs project?: boolean | Prisma.Invite$projectArgs inviter?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["invite"]> export type InviteSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean code?: boolean role?: boolean used?: boolean createdAt?: boolean updatedAt?: boolean teamId?: boolean projectId?: boolean inviterId?: boolean team?: boolean | Prisma.TeamDefaultArgs project?: boolean | Prisma.Invite$projectArgs inviter?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["invite"]> export type InviteSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean code?: boolean role?: boolean used?: boolean createdAt?: boolean updatedAt?: boolean teamId?: boolean projectId?: boolean inviterId?: boolean team?: boolean | Prisma.TeamDefaultArgs project?: boolean | Prisma.Invite$projectArgs inviter?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["invite"]> export type InviteSelectScalar = { id?: boolean code?: boolean role?: boolean used?: boolean createdAt?: boolean updatedAt?: boolean teamId?: boolean projectId?: boolean inviterId?: boolean } export type InviteOmit = runtime.Types.Extensions.GetOmit<"id" | "code" | "role" | "used" | "createdAt" | "updatedAt" | "teamId" | "projectId" | "inviterId", ExtArgs["result"]["invite"]> export type InviteInclude = { team?: boolean | Prisma.TeamDefaultArgs project?: boolean | Prisma.Invite$projectArgs inviter?: boolean | Prisma.UserDefaultArgs } export type InviteIncludeCreateManyAndReturn = { team?: boolean | Prisma.TeamDefaultArgs project?: boolean | Prisma.Invite$projectArgs inviter?: boolean | Prisma.UserDefaultArgs } export type InviteIncludeUpdateManyAndReturn = { team?: boolean | Prisma.TeamDefaultArgs project?: boolean | Prisma.Invite$projectArgs inviter?: boolean | Prisma.UserDefaultArgs } export type $InvitePayload = { name: "Invite" objects: { team: Prisma.$TeamPayload project: Prisma.$ProjectPayload | null inviter: Prisma.$UserPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string code: string role: $Enums.InviteRole | null used: boolean createdAt: Date updatedAt: Date teamId: string projectId: string | null inviterId: string }, ExtArgs["result"]["invite"]> composites: {} } export type InviteGetPayload = runtime.Types.Result.GetResult export type InviteCountArgs = Omit & { select?: InviteCountAggregateInputType | true } export interface InviteDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Invite'], meta: { name: 'Invite' } } /** * Find zero or one Invite that matches the filter. * @param {InviteFindUniqueArgs} args - Arguments to find a Invite * @example * // Get one Invite * const invite = await prisma.invite.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__InviteClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Invite that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {InviteFindUniqueOrThrowArgs} args - Arguments to find a Invite * @example * // Get one Invite * const invite = await prisma.invite.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__InviteClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Invite 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 {InviteFindFirstArgs} args - Arguments to find a Invite * @example * // Get one Invite * const invite = await prisma.invite.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__InviteClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Invite 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 {InviteFindFirstOrThrowArgs} args - Arguments to find a Invite * @example * // Get one Invite * const invite = await prisma.invite.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__InviteClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Invites 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 {InviteFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Invites * const invites = await prisma.invite.findMany() * * // Get first 10 Invites * const invites = await prisma.invite.findMany({ take: 10 }) * * // Only select the `id` * const inviteWithIdOnly = await prisma.invite.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Invite. * @param {InviteCreateArgs} args - Arguments to create a Invite. * @example * // Create one Invite * const Invite = await prisma.invite.create({ * data: { * // ... data to create a Invite * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__InviteClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Invites. * @param {InviteCreateManyArgs} args - Arguments to create many Invites. * @example * // Create many Invites * const invite = await prisma.invite.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Invites and returns the data saved in the database. * @param {InviteCreateManyAndReturnArgs} args - Arguments to create many Invites. * @example * // Create many Invites * const invite = await prisma.invite.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Invites and only return the `id` * const inviteWithIdOnly = await prisma.invite.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 Invite. * @param {InviteDeleteArgs} args - Arguments to delete one Invite. * @example * // Delete one Invite * const Invite = await prisma.invite.delete({ * where: { * // ... filter to delete one Invite * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__InviteClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Invite. * @param {InviteUpdateArgs} args - Arguments to update one Invite. * @example * // Update one Invite * const invite = await prisma.invite.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__InviteClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Invites. * @param {InviteDeleteManyArgs} args - Arguments to filter Invites to delete. * @example * // Delete a few Invites * const { count } = await prisma.invite.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Invites. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InviteUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Invites * const invite = await prisma.invite.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Invites and returns the data updated in the database. * @param {InviteUpdateManyAndReturnArgs} args - Arguments to update many Invites. * @example * // Update many Invites * const invite = await prisma.invite.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Invites and only return the `id` * const inviteWithIdOnly = await prisma.invite.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 Invite. * @param {InviteUpsertArgs} args - Arguments to update or create a Invite. * @example * // Update or create a Invite * const invite = await prisma.invite.upsert({ * create: { * // ... data to create a Invite * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Invite we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__InviteClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Invites. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InviteCountArgs} args - Arguments to filter Invites to count. * @example * // Count the number of Invites * const count = await prisma.invite.count({ * where: { * // ... the filter for the Invites 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 Invite. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InviteAggregateArgs} 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 Invite. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InviteGroupByArgs} 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 InviteGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: InviteGroupByArgs['orderBy'] } : { orderBy?: InviteGroupByArgs['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 ? GetInviteGroupByPayload : Prisma.PrismaPromise /** * Fields of the Invite model */ readonly fields: InviteFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Invite. * 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__InviteClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" team = {}>(args?: Prisma.Subset>): Prisma.Prisma__TeamClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> project = {}>(args?: Prisma.Subset>): Prisma.Prisma__ProjectClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> inviter = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 Invite model */ export interface InviteFieldRefs { readonly id: Prisma.FieldRef<"Invite", 'String'> readonly code: Prisma.FieldRef<"Invite", 'String'> readonly role: Prisma.FieldRef<"Invite", 'InviteRole'> readonly used: Prisma.FieldRef<"Invite", 'Boolean'> readonly createdAt: Prisma.FieldRef<"Invite", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Invite", 'DateTime'> readonly teamId: Prisma.FieldRef<"Invite", 'String'> readonly projectId: Prisma.FieldRef<"Invite", 'String'> readonly inviterId: Prisma.FieldRef<"Invite", 'String'> } // Custom InputTypes /** * Invite findUnique */ export type InviteFindUniqueArgs = { /** * Select specific fields to fetch from the Invite */ select?: Prisma.InviteSelect | null /** * Omit specific fields from the Invite */ omit?: Prisma.InviteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InviteInclude | null /** * Filter, which Invite to fetch. */ where: Prisma.InviteWhereUniqueInput } /** * Invite findUniqueOrThrow */ export type InviteFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Invite */ select?: Prisma.InviteSelect | null /** * Omit specific fields from the Invite */ omit?: Prisma.InviteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InviteInclude | null /** * Filter, which Invite to fetch. */ where: Prisma.InviteWhereUniqueInput } /** * Invite findFirst */ export type InviteFindFirstArgs = { /** * Select specific fields to fetch from the Invite */ select?: Prisma.InviteSelect | null /** * Omit specific fields from the Invite */ omit?: Prisma.InviteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InviteInclude | null /** * Filter, which Invite to fetch. */ where?: Prisma.InviteWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Invites to fetch. */ orderBy?: Prisma.InviteOrderByWithRelationInput | Prisma.InviteOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Invites. */ cursor?: Prisma.InviteWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Invites 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` Invites. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Invites. */ distinct?: Prisma.InviteScalarFieldEnum | Prisma.InviteScalarFieldEnum[] } /** * Invite findFirstOrThrow */ export type InviteFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Invite */ select?: Prisma.InviteSelect | null /** * Omit specific fields from the Invite */ omit?: Prisma.InviteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InviteInclude | null /** * Filter, which Invite to fetch. */ where?: Prisma.InviteWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Invites to fetch. */ orderBy?: Prisma.InviteOrderByWithRelationInput | Prisma.InviteOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Invites. */ cursor?: Prisma.InviteWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Invites 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` Invites. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Invites. */ distinct?: Prisma.InviteScalarFieldEnum | Prisma.InviteScalarFieldEnum[] } /** * Invite findMany */ export type InviteFindManyArgs = { /** * Select specific fields to fetch from the Invite */ select?: Prisma.InviteSelect | null /** * Omit specific fields from the Invite */ omit?: Prisma.InviteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InviteInclude | null /** * Filter, which Invites to fetch. */ where?: Prisma.InviteWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Invites to fetch. */ orderBy?: Prisma.InviteOrderByWithRelationInput | Prisma.InviteOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Invites. */ cursor?: Prisma.InviteWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Invites 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` Invites. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Invites. */ distinct?: Prisma.InviteScalarFieldEnum | Prisma.InviteScalarFieldEnum[] } /** * Invite create */ export type InviteCreateArgs = { /** * Select specific fields to fetch from the Invite */ select?: Prisma.InviteSelect | null /** * Omit specific fields from the Invite */ omit?: Prisma.InviteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InviteInclude | null /** * The data needed to create a Invite. */ data: Prisma.XOR } /** * Invite createMany */ export type InviteCreateManyArgs = { /** * The data used to create many Invites. */ data: Prisma.InviteCreateManyInput | Prisma.InviteCreateManyInput[] skipDuplicates?: boolean } /** * Invite createManyAndReturn */ export type InviteCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Invite */ select?: Prisma.InviteSelectCreateManyAndReturn | null /** * Omit specific fields from the Invite */ omit?: Prisma.InviteOmit | null /** * The data used to create many Invites. */ data: Prisma.InviteCreateManyInput | Prisma.InviteCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.InviteIncludeCreateManyAndReturn | null } /** * Invite update */ export type InviteUpdateArgs = { /** * Select specific fields to fetch from the Invite */ select?: Prisma.InviteSelect | null /** * Omit specific fields from the Invite */ omit?: Prisma.InviteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InviteInclude | null /** * The data needed to update a Invite. */ data: Prisma.XOR /** * Choose, which Invite to update. */ where: Prisma.InviteWhereUniqueInput } /** * Invite updateMany */ export type InviteUpdateManyArgs = { /** * The data used to update Invites. */ data: Prisma.XOR /** * Filter which Invites to update */ where?: Prisma.InviteWhereInput /** * Limit how many Invites to update. */ limit?: number } /** * Invite updateManyAndReturn */ export type InviteUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Invite */ select?: Prisma.InviteSelectUpdateManyAndReturn | null /** * Omit specific fields from the Invite */ omit?: Prisma.InviteOmit | null /** * The data used to update Invites. */ data: Prisma.XOR /** * Filter which Invites to update */ where?: Prisma.InviteWhereInput /** * Limit how many Invites to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.InviteIncludeUpdateManyAndReturn | null } /** * Invite upsert */ export type InviteUpsertArgs = { /** * Select specific fields to fetch from the Invite */ select?: Prisma.InviteSelect | null /** * Omit specific fields from the Invite */ omit?: Prisma.InviteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InviteInclude | null /** * The filter to search for the Invite to update in case it exists. */ where: Prisma.InviteWhereUniqueInput /** * In case the Invite found by the `where` argument doesn't exist, create a new Invite with this data. */ create: Prisma.XOR /** * In case the Invite was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Invite delete */ export type InviteDeleteArgs = { /** * Select specific fields to fetch from the Invite */ select?: Prisma.InviteSelect | null /** * Omit specific fields from the Invite */ omit?: Prisma.InviteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InviteInclude | null /** * Filter which Invite to delete. */ where: Prisma.InviteWhereUniqueInput } /** * Invite deleteMany */ export type InviteDeleteManyArgs = { /** * Filter which Invites to delete */ where?: Prisma.InviteWhereInput /** * Limit how many Invites to delete. */ limit?: number } /** * Invite.project */ export type Invite$projectArgs = { /** * Select specific fields to fetch from the Project */ select?: Prisma.ProjectSelect | null /** * Omit specific fields from the Project */ omit?: Prisma.ProjectOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProjectInclude | null where?: Prisma.ProjectWhereInput } /** * Invite without action */ export type InviteDefaultArgs = { /** * Select specific fields to fetch from the Invite */ select?: Prisma.InviteSelect | null /** * Omit specific fields from the Invite */ omit?: Prisma.InviteOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InviteInclude | null }