import type * as runtime from "@prisma/client/runtime/client"; import type * as Prisma from "../internal/prismaNamespace"; /** * Model Entity * */ export type EntityModel = runtime.Types.Result.DefaultSelection; export type AggregateEntity = { _count: EntityCountAggregateOutputType | null; _min: EntityMinAggregateOutputType | null; _max: EntityMaxAggregateOutputType | null; }; export type EntityMinAggregateOutputType = { entityType: string | null; entityId: string | null; displayName: string | null; createdAt: Date | null; }; export type EntityMaxAggregateOutputType = { entityType: string | null; entityId: string | null; displayName: string | null; createdAt: Date | null; }; export type EntityCountAggregateOutputType = { entityType: number; entityId: number; displayName: number; createdAt: number; _all: number; }; export type EntityMinAggregateInputType = { entityType?: true; entityId?: true; displayName?: true; createdAt?: true; }; export type EntityMaxAggregateInputType = { entityType?: true; entityId?: true; displayName?: true; createdAt?: true; }; export type EntityCountAggregateInputType = { entityType?: true; entityId?: true; displayName?: true; createdAt?: true; _all?: true; }; export type EntityAggregateArgs = { /** * Filter which Entity to aggregate. */ where?: Prisma.EntityWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Entities to fetch. */ orderBy?: Prisma.EntityOrderByWithRelationInput | Prisma.EntityOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.EntityWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Entities 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` Entities. */ skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Entities **/ _count?: true | EntityCountAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EntityMinAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EntityMaxAggregateInputType; }; export type GetEntityAggregateType = { [P in keyof T & keyof AggregateEntity]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType; }; export type EntityGroupByArgs = { where?: Prisma.EntityWhereInput; orderBy?: Prisma.EntityOrderByWithAggregationInput | Prisma.EntityOrderByWithAggregationInput[]; by: Prisma.EntityScalarFieldEnum[] | Prisma.EntityScalarFieldEnum; having?: Prisma.EntityScalarWhereWithAggregatesInput; take?: number; skip?: number; _count?: EntityCountAggregateInputType | true; _min?: EntityMinAggregateInputType; _max?: EntityMaxAggregateInputType; }; export type EntityGroupByOutputType = { entityType: string; entityId: string; displayName: string; createdAt: Date; _count: EntityCountAggregateOutputType | null; _min: EntityMinAggregateOutputType | null; _max: EntityMaxAggregateOutputType | null; }; type GetEntityGroupByPayload = Prisma.PrismaPromise & { [P in ((keyof T) & (keyof EntityGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType; }>>; export type EntityWhereInput = { AND?: Prisma.EntityWhereInput | Prisma.EntityWhereInput[]; OR?: Prisma.EntityWhereInput[]; NOT?: Prisma.EntityWhereInput | Prisma.EntityWhereInput[]; entityType?: Prisma.StringFilter<"Entity"> | string; entityId?: Prisma.StringFilter<"Entity"> | string; displayName?: Prisma.StringFilter<"Entity"> | string; createdAt?: Prisma.DateTimeFilter<"Entity"> | Date | string; aliases?: Prisma.EntityAliasListRelationFilter; }; export type EntityOrderByWithRelationInput = { entityType?: Prisma.SortOrder; entityId?: Prisma.SortOrder; displayName?: Prisma.SortOrder; createdAt?: Prisma.SortOrder; aliases?: Prisma.EntityAliasOrderByRelationAggregateInput; }; export type EntityWhereUniqueInput = Prisma.AtLeast<{ entityType_entityId?: Prisma.EntityEntityTypeEntityIdCompoundUniqueInput; AND?: Prisma.EntityWhereInput | Prisma.EntityWhereInput[]; OR?: Prisma.EntityWhereInput[]; NOT?: Prisma.EntityWhereInput | Prisma.EntityWhereInput[]; entityType?: Prisma.StringFilter<"Entity"> | string; entityId?: Prisma.StringFilter<"Entity"> | string; displayName?: Prisma.StringFilter<"Entity"> | string; createdAt?: Prisma.DateTimeFilter<"Entity"> | Date | string; aliases?: Prisma.EntityAliasListRelationFilter; }, "entityType_entityId">; export type EntityOrderByWithAggregationInput = { entityType?: Prisma.SortOrder; entityId?: Prisma.SortOrder; displayName?: Prisma.SortOrder; createdAt?: Prisma.SortOrder; _count?: Prisma.EntityCountOrderByAggregateInput; _max?: Prisma.EntityMaxOrderByAggregateInput; _min?: Prisma.EntityMinOrderByAggregateInput; }; export type EntityScalarWhereWithAggregatesInput = { AND?: Prisma.EntityScalarWhereWithAggregatesInput | Prisma.EntityScalarWhereWithAggregatesInput[]; OR?: Prisma.EntityScalarWhereWithAggregatesInput[]; NOT?: Prisma.EntityScalarWhereWithAggregatesInput | Prisma.EntityScalarWhereWithAggregatesInput[]; entityType?: Prisma.StringWithAggregatesFilter<"Entity"> | string; entityId?: Prisma.StringWithAggregatesFilter<"Entity"> | string; displayName?: Prisma.StringWithAggregatesFilter<"Entity"> | string; createdAt?: Prisma.DateTimeWithAggregatesFilter<"Entity"> | Date | string; }; export type EntityCreateInput = { entityType: string; entityId: string; displayName: string; createdAt?: Date | string; aliases?: Prisma.EntityAliasCreateNestedManyWithoutEntityInput; }; export type EntityUncheckedCreateInput = { entityType: string; entityId: string; displayName: string; createdAt?: Date | string; aliases?: Prisma.EntityAliasUncheckedCreateNestedManyWithoutEntityInput; }; export type EntityUpdateInput = { entityType?: Prisma.StringFieldUpdateOperationsInput | string; entityId?: Prisma.StringFieldUpdateOperationsInput | string; displayName?: Prisma.StringFieldUpdateOperationsInput | string; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; aliases?: Prisma.EntityAliasUpdateManyWithoutEntityNestedInput; }; export type EntityUncheckedUpdateInput = { entityType?: Prisma.StringFieldUpdateOperationsInput | string; entityId?: Prisma.StringFieldUpdateOperationsInput | string; displayName?: Prisma.StringFieldUpdateOperationsInput | string; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; aliases?: Prisma.EntityAliasUncheckedUpdateManyWithoutEntityNestedInput; }; export type EntityCreateManyInput = { entityType: string; entityId: string; displayName: string; createdAt?: Date | string; }; export type EntityUpdateManyMutationInput = { entityType?: Prisma.StringFieldUpdateOperationsInput | string; entityId?: Prisma.StringFieldUpdateOperationsInput | string; displayName?: Prisma.StringFieldUpdateOperationsInput | string; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; }; export type EntityUncheckedUpdateManyInput = { entityType?: Prisma.StringFieldUpdateOperationsInput | string; entityId?: Prisma.StringFieldUpdateOperationsInput | string; displayName?: Prisma.StringFieldUpdateOperationsInput | string; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; }; export type EntityEntityTypeEntityIdCompoundUniqueInput = { entityType: string; entityId: string; }; export type EntityCountOrderByAggregateInput = { entityType?: Prisma.SortOrder; entityId?: Prisma.SortOrder; displayName?: Prisma.SortOrder; createdAt?: Prisma.SortOrder; }; export type EntityMaxOrderByAggregateInput = { entityType?: Prisma.SortOrder; entityId?: Prisma.SortOrder; displayName?: Prisma.SortOrder; createdAt?: Prisma.SortOrder; }; export type EntityMinOrderByAggregateInput = { entityType?: Prisma.SortOrder; entityId?: Prisma.SortOrder; displayName?: Prisma.SortOrder; createdAt?: Prisma.SortOrder; }; export type EntityScalarRelationFilter = { is?: Prisma.EntityWhereInput; isNot?: Prisma.EntityWhereInput; }; export type EntityCreateNestedOneWithoutAliasesInput = { create?: Prisma.XOR; connectOrCreate?: Prisma.EntityCreateOrConnectWithoutAliasesInput; connect?: Prisma.EntityWhereUniqueInput; }; export type EntityUpdateOneRequiredWithoutAliasesNestedInput = { create?: Prisma.XOR; connectOrCreate?: Prisma.EntityCreateOrConnectWithoutAliasesInput; upsert?: Prisma.EntityUpsertWithoutAliasesInput; connect?: Prisma.EntityWhereUniqueInput; update?: Prisma.XOR, Prisma.EntityUncheckedUpdateWithoutAliasesInput>; }; export type EntityCreateWithoutAliasesInput = { entityType: string; entityId: string; displayName: string; createdAt?: Date | string; }; export type EntityUncheckedCreateWithoutAliasesInput = { entityType: string; entityId: string; displayName: string; createdAt?: Date | string; }; export type EntityCreateOrConnectWithoutAliasesInput = { where: Prisma.EntityWhereUniqueInput; create: Prisma.XOR; }; export type EntityUpsertWithoutAliasesInput = { update: Prisma.XOR; create: Prisma.XOR; where?: Prisma.EntityWhereInput; }; export type EntityUpdateToOneWithWhereWithoutAliasesInput = { where?: Prisma.EntityWhereInput; data: Prisma.XOR; }; export type EntityUpdateWithoutAliasesInput = { entityType?: Prisma.StringFieldUpdateOperationsInput | string; entityId?: Prisma.StringFieldUpdateOperationsInput | string; displayName?: Prisma.StringFieldUpdateOperationsInput | string; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; }; export type EntityUncheckedUpdateWithoutAliasesInput = { entityType?: Prisma.StringFieldUpdateOperationsInput | string; entityId?: Prisma.StringFieldUpdateOperationsInput | string; displayName?: Prisma.StringFieldUpdateOperationsInput | string; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; }; /** * Count Type EntityCountOutputType */ export type EntityCountOutputType = { aliases: number; }; export type EntityCountOutputTypeSelect = { aliases?: boolean | EntityCountOutputTypeCountAliasesArgs; }; /** * EntityCountOutputType without action */ export type EntityCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the EntityCountOutputType */ select?: Prisma.EntityCountOutputTypeSelect | null; }; /** * EntityCountOutputType without action */ export type EntityCountOutputTypeCountAliasesArgs = { where?: Prisma.EntityAliasWhereInput; }; export type EntitySelect = runtime.Types.Extensions.GetSelect<{ entityType?: boolean; entityId?: boolean; displayName?: boolean; createdAt?: boolean; aliases?: boolean | Prisma.Entity$aliasesArgs; _count?: boolean | Prisma.EntityCountOutputTypeDefaultArgs; }, ExtArgs["result"]["entity"]>; export type EntitySelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ entityType?: boolean; entityId?: boolean; displayName?: boolean; createdAt?: boolean; }, ExtArgs["result"]["entity"]>; export type EntitySelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ entityType?: boolean; entityId?: boolean; displayName?: boolean; createdAt?: boolean; }, ExtArgs["result"]["entity"]>; export type EntitySelectScalar = { entityType?: boolean; entityId?: boolean; displayName?: boolean; createdAt?: boolean; }; export type EntityOmit = runtime.Types.Extensions.GetOmit<"entityType" | "entityId" | "displayName" | "createdAt", ExtArgs["result"]["entity"]>; export type EntityInclude = { aliases?: boolean | Prisma.Entity$aliasesArgs; _count?: boolean | Prisma.EntityCountOutputTypeDefaultArgs; }; export type EntityIncludeCreateManyAndReturn = {}; export type EntityIncludeUpdateManyAndReturn = {}; export type $EntityPayload = { name: "Entity"; objects: { aliases: Prisma.$EntityAliasPayload[]; }; scalars: runtime.Types.Extensions.GetPayloadResult<{ entityType: string; entityId: string; displayName: string; createdAt: Date; }, ExtArgs["result"]["entity"]>; composites: {}; }; export type EntityGetPayload = runtime.Types.Result.GetResult; export type EntityCountArgs = Omit & { select?: EntityCountAggregateInputType | true; }; export interface EntityDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Entity']; meta: { name: 'Entity'; }; }; /** * Find zero or one Entity that matches the filter. * @param {EntityFindUniqueArgs} args - Arguments to find a Entity * @example * // Get one Entity * const entity = await prisma.entity.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__EntityClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>; /** * Find one Entity that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EntityFindUniqueOrThrowArgs} args - Arguments to find a Entity * @example * // Get one Entity * const entity = await prisma.entity.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__EntityClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Find the first Entity 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 {EntityFindFirstArgs} args - Arguments to find a Entity * @example * // Get one Entity * const entity = await prisma.entity.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__EntityClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>; /** * Find the first Entity 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 {EntityFindFirstOrThrowArgs} args - Arguments to find a Entity * @example * // Get one Entity * const entity = await prisma.entity.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__EntityClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Find zero or more Entities 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 {EntityFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Entities * const entities = await prisma.entity.findMany() * * // Get first 10 Entities * const entities = await prisma.entity.findMany({ take: 10 }) * * // Only select the `entityType` * const entityWithEntityTypeOnly = await prisma.entity.findMany({ select: { entityType: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>>; /** * Create a Entity. * @param {EntityCreateArgs} args - Arguments to create a Entity. * @example * // Create one Entity * const Entity = await prisma.entity.create({ * data: { * // ... data to create a Entity * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__EntityClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Create many Entities. * @param {EntityCreateManyArgs} args - Arguments to create many Entities. * @example * // Create many Entities * const entity = await prisma.entity.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Create many Entities and returns the data saved in the database. * @param {EntityCreateManyAndReturnArgs} args - Arguments to create many Entities. * @example * // Create many Entities * const entity = await prisma.entity.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Entities and only return the `entityType` * const entityWithEntityTypeOnly = await prisma.entity.createManyAndReturn({ * select: { entityType: 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 Entity. * @param {EntityDeleteArgs} args - Arguments to delete one Entity. * @example * // Delete one Entity * const Entity = await prisma.entity.delete({ * where: { * // ... filter to delete one Entity * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__EntityClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Update one Entity. * @param {EntityUpdateArgs} args - Arguments to update one Entity. * @example * // Update one Entity * const entity = await prisma.entity.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__EntityClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Delete zero or more Entities. * @param {EntityDeleteManyArgs} args - Arguments to filter Entities to delete. * @example * // Delete a few Entities * const { count } = await prisma.entity.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Update zero or more Entities. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EntityUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Entities * const entity = await prisma.entity.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Update zero or more Entities and returns the data updated in the database. * @param {EntityUpdateManyAndReturnArgs} args - Arguments to update many Entities. * @example * // Update many Entities * const entity = await prisma.entity.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Entities and only return the `entityType` * const entityWithEntityTypeOnly = await prisma.entity.updateManyAndReturn({ * select: { entityType: 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 Entity. * @param {EntityUpsertArgs} args - Arguments to update or create a Entity. * @example * // Update or create a Entity * const entity = await prisma.entity.upsert({ * create: { * // ... data to create a Entity * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Entity we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__EntityClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Count the number of Entities. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EntityCountArgs} args - Arguments to filter Entities to count. * @example * // Count the number of Entities * const count = await prisma.entity.count({ * where: { * // ... the filter for the Entities we want to count * } * }) **/ count(args?: Prisma.Subset): Prisma.PrismaPromise ? T['select'] extends true ? number : Prisma.GetScalarType : number>; /** * Allows you to perform aggregations operations on a Entity. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EntityAggregateArgs} 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 Entity. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EntityGroupByArgs} 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>, Prisma.Extends<'take', Prisma.Keys>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: EntityGroupByArgs['orderBy']; } : { orderBy?: EntityGroupByArgs['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 ? GetEntityGroupByPayload : Prisma.PrismaPromise; /** * Fields of the Entity model */ readonly fields: EntityFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Entity. * 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__EntityClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise"; aliases = {}>(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 Entity model */ export interface EntityFieldRefs { readonly entityType: Prisma.FieldRef<"Entity", 'String'>; readonly entityId: Prisma.FieldRef<"Entity", 'String'>; readonly displayName: Prisma.FieldRef<"Entity", 'String'>; readonly createdAt: Prisma.FieldRef<"Entity", 'DateTime'>; } /** * Entity findUnique */ export type EntityFindUniqueArgs = { /** * Select specific fields to fetch from the Entity */ select?: Prisma.EntitySelect | null; /** * Omit specific fields from the Entity */ omit?: Prisma.EntityOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.EntityInclude | null; /** * Filter, which Entity to fetch. */ where: Prisma.EntityWhereUniqueInput; }; /** * Entity findUniqueOrThrow */ export type EntityFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Entity */ select?: Prisma.EntitySelect | null; /** * Omit specific fields from the Entity */ omit?: Prisma.EntityOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.EntityInclude | null; /** * Filter, which Entity to fetch. */ where: Prisma.EntityWhereUniqueInput; }; /** * Entity findFirst */ export type EntityFindFirstArgs = { /** * Select specific fields to fetch from the Entity */ select?: Prisma.EntitySelect | null; /** * Omit specific fields from the Entity */ omit?: Prisma.EntityOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.EntityInclude | null; /** * Filter, which Entity to fetch. */ where?: Prisma.EntityWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Entities to fetch. */ orderBy?: Prisma.EntityOrderByWithRelationInput | Prisma.EntityOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Entities. */ cursor?: Prisma.EntityWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Entities 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` Entities. */ skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Entities. */ distinct?: Prisma.EntityScalarFieldEnum | Prisma.EntityScalarFieldEnum[]; }; /** * Entity findFirstOrThrow */ export type EntityFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Entity */ select?: Prisma.EntitySelect | null; /** * Omit specific fields from the Entity */ omit?: Prisma.EntityOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.EntityInclude | null; /** * Filter, which Entity to fetch. */ where?: Prisma.EntityWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Entities to fetch. */ orderBy?: Prisma.EntityOrderByWithRelationInput | Prisma.EntityOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Entities. */ cursor?: Prisma.EntityWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Entities 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` Entities. */ skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Entities. */ distinct?: Prisma.EntityScalarFieldEnum | Prisma.EntityScalarFieldEnum[]; }; /** * Entity findMany */ export type EntityFindManyArgs = { /** * Select specific fields to fetch from the Entity */ select?: Prisma.EntitySelect | null; /** * Omit specific fields from the Entity */ omit?: Prisma.EntityOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.EntityInclude | null; /** * Filter, which Entities to fetch. */ where?: Prisma.EntityWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Entities to fetch. */ orderBy?: Prisma.EntityOrderByWithRelationInput | Prisma.EntityOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Entities. */ cursor?: Prisma.EntityWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Entities 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` Entities. */ skip?: number; distinct?: Prisma.EntityScalarFieldEnum | Prisma.EntityScalarFieldEnum[]; }; /** * Entity create */ export type EntityCreateArgs = { /** * Select specific fields to fetch from the Entity */ select?: Prisma.EntitySelect | null; /** * Omit specific fields from the Entity */ omit?: Prisma.EntityOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.EntityInclude | null; /** * The data needed to create a Entity. */ data: Prisma.XOR; }; /** * Entity createMany */ export type EntityCreateManyArgs = { /** * The data used to create many Entities. */ data: Prisma.EntityCreateManyInput | Prisma.EntityCreateManyInput[]; skipDuplicates?: boolean; }; /** * Entity createManyAndReturn */ export type EntityCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Entity */ select?: Prisma.EntitySelectCreateManyAndReturn | null; /** * Omit specific fields from the Entity */ omit?: Prisma.EntityOmit | null; /** * The data used to create many Entities. */ data: Prisma.EntityCreateManyInput | Prisma.EntityCreateManyInput[]; skipDuplicates?: boolean; }; /** * Entity update */ export type EntityUpdateArgs = { /** * Select specific fields to fetch from the Entity */ select?: Prisma.EntitySelect | null; /** * Omit specific fields from the Entity */ omit?: Prisma.EntityOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.EntityInclude | null; /** * The data needed to update a Entity. */ data: Prisma.XOR; /** * Choose, which Entity to update. */ where: Prisma.EntityWhereUniqueInput; }; /** * Entity updateMany */ export type EntityUpdateManyArgs = { /** * The data used to update Entities. */ data: Prisma.XOR; /** * Filter which Entities to update */ where?: Prisma.EntityWhereInput; /** * Limit how many Entities to update. */ limit?: number; }; /** * Entity updateManyAndReturn */ export type EntityUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Entity */ select?: Prisma.EntitySelectUpdateManyAndReturn | null; /** * Omit specific fields from the Entity */ omit?: Prisma.EntityOmit | null; /** * The data used to update Entities. */ data: Prisma.XOR; /** * Filter which Entities to update */ where?: Prisma.EntityWhereInput; /** * Limit how many Entities to update. */ limit?: number; }; /** * Entity upsert */ export type EntityUpsertArgs = { /** * Select specific fields to fetch from the Entity */ select?: Prisma.EntitySelect | null; /** * Omit specific fields from the Entity */ omit?: Prisma.EntityOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.EntityInclude | null; /** * The filter to search for the Entity to update in case it exists. */ where: Prisma.EntityWhereUniqueInput; /** * In case the Entity found by the `where` argument doesn't exist, create a new Entity with this data. */ create: Prisma.XOR; /** * In case the Entity was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR; }; /** * Entity delete */ export type EntityDeleteArgs = { /** * Select specific fields to fetch from the Entity */ select?: Prisma.EntitySelect | null; /** * Omit specific fields from the Entity */ omit?: Prisma.EntityOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.EntityInclude | null; /** * Filter which Entity to delete. */ where: Prisma.EntityWhereUniqueInput; }; /** * Entity deleteMany */ export type EntityDeleteManyArgs = { /** * Filter which Entities to delete */ where?: Prisma.EntityWhereInput; /** * Limit how many Entities to delete. */ limit?: number; }; /** * Entity.aliases */ export type Entity$aliasesArgs = { /** * Select specific fields to fetch from the EntityAlias */ select?: Prisma.EntityAliasSelect | null; /** * Omit specific fields from the EntityAlias */ omit?: Prisma.EntityAliasOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.EntityAliasInclude | null; where?: Prisma.EntityAliasWhereInput; orderBy?: Prisma.EntityAliasOrderByWithRelationInput | Prisma.EntityAliasOrderByWithRelationInput[]; cursor?: Prisma.EntityAliasWhereUniqueInput; take?: number; skip?: number; distinct?: Prisma.EntityAliasScalarFieldEnum | Prisma.EntityAliasScalarFieldEnum[]; }; /** * Entity without action */ export type EntityDefaultArgs = { /** * Select specific fields to fetch from the Entity */ select?: Prisma.EntitySelect | null; /** * Omit specific fields from the Entity */ omit?: Prisma.EntityOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.EntityInclude | null; }; export {}; //# sourceMappingURL=Entity.d.ts.map