/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `DailyPuzzle` 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" import type * as Prisma from "../internal/prismaNamespace" /** * Model DailyPuzzle * */ export type DailyPuzzleModel = runtime.Types.Result.DefaultSelection export type AggregateDailyPuzzle = { _count: DailyPuzzleCountAggregateOutputType | null _min: DailyPuzzleMinAggregateOutputType | null _max: DailyPuzzleMaxAggregateOutputType | null } export type DailyPuzzleMinAggregateOutputType = { id: string | null date: string | null startArticle: string | null targetArticle: string | null } export type DailyPuzzleMaxAggregateOutputType = { id: string | null date: string | null startArticle: string | null targetArticle: string | null } export type DailyPuzzleCountAggregateOutputType = { id: number date: number startArticle: number targetArticle: number _all: number } export type DailyPuzzleMinAggregateInputType = { id?: true date?: true startArticle?: true targetArticle?: true } export type DailyPuzzleMaxAggregateInputType = { id?: true date?: true startArticle?: true targetArticle?: true } export type DailyPuzzleCountAggregateInputType = { id?: true date?: true startArticle?: true targetArticle?: true _all?: true } export type DailyPuzzleAggregateArgs = { /** * Filter which DailyPuzzle to aggregate. */ where?: Prisma.DailyPuzzleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DailyPuzzles to fetch. */ orderBy?: Prisma.DailyPuzzleOrderByWithRelationInput | Prisma.DailyPuzzleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.DailyPuzzleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DailyPuzzles 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` DailyPuzzles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned DailyPuzzles **/ _count?: true | DailyPuzzleCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: DailyPuzzleMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: DailyPuzzleMaxAggregateInputType } export type GetDailyPuzzleAggregateType = { [P in keyof T & keyof AggregateDailyPuzzle]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type DailyPuzzleGroupByArgs = { where?: Prisma.DailyPuzzleWhereInput orderBy?: Prisma.DailyPuzzleOrderByWithAggregationInput | Prisma.DailyPuzzleOrderByWithAggregationInput[] by: Prisma.DailyPuzzleScalarFieldEnum[] | Prisma.DailyPuzzleScalarFieldEnum having?: Prisma.DailyPuzzleScalarWhereWithAggregatesInput take?: number skip?: number _count?: DailyPuzzleCountAggregateInputType | true _min?: DailyPuzzleMinAggregateInputType _max?: DailyPuzzleMaxAggregateInputType } export type DailyPuzzleGroupByOutputType = { id: string date: string startArticle: string targetArticle: string _count: DailyPuzzleCountAggregateOutputType | null _min: DailyPuzzleMinAggregateOutputType | null _max: DailyPuzzleMaxAggregateOutputType | null } export type GetDailyPuzzleGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof DailyPuzzleGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type DailyPuzzleWhereInput = { AND?: Prisma.DailyPuzzleWhereInput | Prisma.DailyPuzzleWhereInput[] OR?: Prisma.DailyPuzzleWhereInput[] NOT?: Prisma.DailyPuzzleWhereInput | Prisma.DailyPuzzleWhereInput[] id?: Prisma.StringFilter<"DailyPuzzle"> | string date?: Prisma.StringFilter<"DailyPuzzle"> | string startArticle?: Prisma.StringFilter<"DailyPuzzle"> | string targetArticle?: Prisma.StringFilter<"DailyPuzzle"> | string results?: Prisma.DailyResultListRelationFilter } export type DailyPuzzleOrderByWithRelationInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder startArticle?: Prisma.SortOrder targetArticle?: Prisma.SortOrder results?: Prisma.DailyResultOrderByRelationAggregateInput } export type DailyPuzzleWhereUniqueInput = Prisma.AtLeast<{ id?: string date?: string AND?: Prisma.DailyPuzzleWhereInput | Prisma.DailyPuzzleWhereInput[] OR?: Prisma.DailyPuzzleWhereInput[] NOT?: Prisma.DailyPuzzleWhereInput | Prisma.DailyPuzzleWhereInput[] startArticle?: Prisma.StringFilter<"DailyPuzzle"> | string targetArticle?: Prisma.StringFilter<"DailyPuzzle"> | string results?: Prisma.DailyResultListRelationFilter }, "id" | "date"> export type DailyPuzzleOrderByWithAggregationInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder startArticle?: Prisma.SortOrder targetArticle?: Prisma.SortOrder _count?: Prisma.DailyPuzzleCountOrderByAggregateInput _max?: Prisma.DailyPuzzleMaxOrderByAggregateInput _min?: Prisma.DailyPuzzleMinOrderByAggregateInput } export type DailyPuzzleScalarWhereWithAggregatesInput = { AND?: Prisma.DailyPuzzleScalarWhereWithAggregatesInput | Prisma.DailyPuzzleScalarWhereWithAggregatesInput[] OR?: Prisma.DailyPuzzleScalarWhereWithAggregatesInput[] NOT?: Prisma.DailyPuzzleScalarWhereWithAggregatesInput | Prisma.DailyPuzzleScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"DailyPuzzle"> | string date?: Prisma.StringWithAggregatesFilter<"DailyPuzzle"> | string startArticle?: Prisma.StringWithAggregatesFilter<"DailyPuzzle"> | string targetArticle?: Prisma.StringWithAggregatesFilter<"DailyPuzzle"> | string } export type DailyPuzzleCreateInput = { id?: string date: string startArticle: string targetArticle: string results?: Prisma.DailyResultCreateNestedManyWithoutPuzzleInput } export type DailyPuzzleUncheckedCreateInput = { id?: string date: string startArticle: string targetArticle: string results?: Prisma.DailyResultUncheckedCreateNestedManyWithoutPuzzleInput } export type DailyPuzzleUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.StringFieldUpdateOperationsInput | string startArticle?: Prisma.StringFieldUpdateOperationsInput | string targetArticle?: Prisma.StringFieldUpdateOperationsInput | string results?: Prisma.DailyResultUpdateManyWithoutPuzzleNestedInput } export type DailyPuzzleUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.StringFieldUpdateOperationsInput | string startArticle?: Prisma.StringFieldUpdateOperationsInput | string targetArticle?: Prisma.StringFieldUpdateOperationsInput | string results?: Prisma.DailyResultUncheckedUpdateManyWithoutPuzzleNestedInput } export type DailyPuzzleCreateManyInput = { id?: string date: string startArticle: string targetArticle: string } export type DailyPuzzleUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.StringFieldUpdateOperationsInput | string startArticle?: Prisma.StringFieldUpdateOperationsInput | string targetArticle?: Prisma.StringFieldUpdateOperationsInput | string } export type DailyPuzzleUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.StringFieldUpdateOperationsInput | string startArticle?: Prisma.StringFieldUpdateOperationsInput | string targetArticle?: Prisma.StringFieldUpdateOperationsInput | string } export type DailyPuzzleCountOrderByAggregateInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder startArticle?: Prisma.SortOrder targetArticle?: Prisma.SortOrder } export type DailyPuzzleMaxOrderByAggregateInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder startArticle?: Prisma.SortOrder targetArticle?: Prisma.SortOrder } export type DailyPuzzleMinOrderByAggregateInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder startArticle?: Prisma.SortOrder targetArticle?: Prisma.SortOrder } export type DailyPuzzleScalarRelationFilter = { is?: Prisma.DailyPuzzleWhereInput isNot?: Prisma.DailyPuzzleWhereInput } export type DailyPuzzleCreateNestedOneWithoutResultsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.DailyPuzzleCreateOrConnectWithoutResultsInput connect?: Prisma.DailyPuzzleWhereUniqueInput } export type DailyPuzzleUpdateOneRequiredWithoutResultsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.DailyPuzzleCreateOrConnectWithoutResultsInput upsert?: Prisma.DailyPuzzleUpsertWithoutResultsInput connect?: Prisma.DailyPuzzleWhereUniqueInput update?: Prisma.XOR, Prisma.DailyPuzzleUncheckedUpdateWithoutResultsInput> } export type DailyPuzzleCreateWithoutResultsInput = { id?: string date: string startArticle: string targetArticle: string } export type DailyPuzzleUncheckedCreateWithoutResultsInput = { id?: string date: string startArticle: string targetArticle: string } export type DailyPuzzleCreateOrConnectWithoutResultsInput = { where: Prisma.DailyPuzzleWhereUniqueInput create: Prisma.XOR } export type DailyPuzzleUpsertWithoutResultsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.DailyPuzzleWhereInput } export type DailyPuzzleUpdateToOneWithWhereWithoutResultsInput = { where?: Prisma.DailyPuzzleWhereInput data: Prisma.XOR } export type DailyPuzzleUpdateWithoutResultsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.StringFieldUpdateOperationsInput | string startArticle?: Prisma.StringFieldUpdateOperationsInput | string targetArticle?: Prisma.StringFieldUpdateOperationsInput | string } export type DailyPuzzleUncheckedUpdateWithoutResultsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.StringFieldUpdateOperationsInput | string startArticle?: Prisma.StringFieldUpdateOperationsInput | string targetArticle?: Prisma.StringFieldUpdateOperationsInput | string } /** * Count Type DailyPuzzleCountOutputType */ export type DailyPuzzleCountOutputType = { results: number } export type DailyPuzzleCountOutputTypeSelect = { results?: boolean | DailyPuzzleCountOutputTypeCountResultsArgs } /** * DailyPuzzleCountOutputType without action */ export type DailyPuzzleCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the DailyPuzzleCountOutputType */ select?: Prisma.DailyPuzzleCountOutputTypeSelect | null } /** * DailyPuzzleCountOutputType without action */ export type DailyPuzzleCountOutputTypeCountResultsArgs = { where?: Prisma.DailyResultWhereInput } export type DailyPuzzleSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean date?: boolean startArticle?: boolean targetArticle?: boolean results?: boolean | Prisma.DailyPuzzle$resultsArgs _count?: boolean | Prisma.DailyPuzzleCountOutputTypeDefaultArgs }, ExtArgs["result"]["dailyPuzzle"]> export type DailyPuzzleSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean date?: boolean startArticle?: boolean targetArticle?: boolean }, ExtArgs["result"]["dailyPuzzle"]> export type DailyPuzzleSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean date?: boolean startArticle?: boolean targetArticle?: boolean }, ExtArgs["result"]["dailyPuzzle"]> export type DailyPuzzleSelectScalar = { id?: boolean date?: boolean startArticle?: boolean targetArticle?: boolean } export type DailyPuzzleOmit = runtime.Types.Extensions.GetOmit<"id" | "date" | "startArticle" | "targetArticle", ExtArgs["result"]["dailyPuzzle"]> export type DailyPuzzleInclude = { results?: boolean | Prisma.DailyPuzzle$resultsArgs _count?: boolean | Prisma.DailyPuzzleCountOutputTypeDefaultArgs } export type DailyPuzzleIncludeCreateManyAndReturn = {} export type DailyPuzzleIncludeUpdateManyAndReturn = {} export type $DailyPuzzlePayload = { name: "DailyPuzzle" objects: { results: Prisma.$DailyResultPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string date: string startArticle: string targetArticle: string }, ExtArgs["result"]["dailyPuzzle"]> composites: {} } export type DailyPuzzleGetPayload = runtime.Types.Result.GetResult export type DailyPuzzleCountArgs = Omit & { select?: DailyPuzzleCountAggregateInputType | true } export interface DailyPuzzleDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['DailyPuzzle'], meta: { name: 'DailyPuzzle' } } /** * Find zero or one DailyPuzzle that matches the filter. * @param {DailyPuzzleFindUniqueArgs} args - Arguments to find a DailyPuzzle * @example * // Get one DailyPuzzle * const dailyPuzzle = await prisma.dailyPuzzle.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__DailyPuzzleClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one DailyPuzzle that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {DailyPuzzleFindUniqueOrThrowArgs} args - Arguments to find a DailyPuzzle * @example * // Get one DailyPuzzle * const dailyPuzzle = await prisma.dailyPuzzle.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__DailyPuzzleClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first DailyPuzzle 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 {DailyPuzzleFindFirstArgs} args - Arguments to find a DailyPuzzle * @example * // Get one DailyPuzzle * const dailyPuzzle = await prisma.dailyPuzzle.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__DailyPuzzleClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first DailyPuzzle 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 {DailyPuzzleFindFirstOrThrowArgs} args - Arguments to find a DailyPuzzle * @example * // Get one DailyPuzzle * const dailyPuzzle = await prisma.dailyPuzzle.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__DailyPuzzleClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more DailyPuzzles 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 {DailyPuzzleFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all DailyPuzzles * const dailyPuzzles = await prisma.dailyPuzzle.findMany() * * // Get first 10 DailyPuzzles * const dailyPuzzles = await prisma.dailyPuzzle.findMany({ take: 10 }) * * // Only select the `id` * const dailyPuzzleWithIdOnly = await prisma.dailyPuzzle.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a DailyPuzzle. * @param {DailyPuzzleCreateArgs} args - Arguments to create a DailyPuzzle. * @example * // Create one DailyPuzzle * const DailyPuzzle = await prisma.dailyPuzzle.create({ * data: { * // ... data to create a DailyPuzzle * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__DailyPuzzleClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many DailyPuzzles. * @param {DailyPuzzleCreateManyArgs} args - Arguments to create many DailyPuzzles. * @example * // Create many DailyPuzzles * const dailyPuzzle = await prisma.dailyPuzzle.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many DailyPuzzles and returns the data saved in the database. * @param {DailyPuzzleCreateManyAndReturnArgs} args - Arguments to create many DailyPuzzles. * @example * // Create many DailyPuzzles * const dailyPuzzle = await prisma.dailyPuzzle.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many DailyPuzzles and only return the `id` * const dailyPuzzleWithIdOnly = await prisma.dailyPuzzle.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 DailyPuzzle. * @param {DailyPuzzleDeleteArgs} args - Arguments to delete one DailyPuzzle. * @example * // Delete one DailyPuzzle * const DailyPuzzle = await prisma.dailyPuzzle.delete({ * where: { * // ... filter to delete one DailyPuzzle * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__DailyPuzzleClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one DailyPuzzle. * @param {DailyPuzzleUpdateArgs} args - Arguments to update one DailyPuzzle. * @example * // Update one DailyPuzzle * const dailyPuzzle = await prisma.dailyPuzzle.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__DailyPuzzleClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more DailyPuzzles. * @param {DailyPuzzleDeleteManyArgs} args - Arguments to filter DailyPuzzles to delete. * @example * // Delete a few DailyPuzzles * const { count } = await prisma.dailyPuzzle.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DailyPuzzles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DailyPuzzleUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many DailyPuzzles * const dailyPuzzle = await prisma.dailyPuzzle.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DailyPuzzles and returns the data updated in the database. * @param {DailyPuzzleUpdateManyAndReturnArgs} args - Arguments to update many DailyPuzzles. * @example * // Update many DailyPuzzles * const dailyPuzzle = await prisma.dailyPuzzle.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more DailyPuzzles and only return the `id` * const dailyPuzzleWithIdOnly = await prisma.dailyPuzzle.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 DailyPuzzle. * @param {DailyPuzzleUpsertArgs} args - Arguments to update or create a DailyPuzzle. * @example * // Update or create a DailyPuzzle * const dailyPuzzle = await prisma.dailyPuzzle.upsert({ * create: { * // ... data to create a DailyPuzzle * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the DailyPuzzle we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__DailyPuzzleClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of DailyPuzzles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DailyPuzzleCountArgs} args - Arguments to filter DailyPuzzles to count. * @example * // Count the number of DailyPuzzles * const count = await prisma.dailyPuzzle.count({ * where: { * // ... the filter for the DailyPuzzles 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 DailyPuzzle. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DailyPuzzleAggregateArgs} 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 DailyPuzzle. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DailyPuzzleGroupByArgs} 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 DailyPuzzleGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: DailyPuzzleGroupByArgs['orderBy'] } : { orderBy?: DailyPuzzleGroupByArgs['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 ? GetDailyPuzzleGroupByPayload : Prisma.PrismaPromise /** * Fields of the DailyPuzzle model */ readonly fields: DailyPuzzleFieldRefs; } /** * The delegate class that acts as a "Promise-like" for DailyPuzzle. * 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__DailyPuzzleClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" results = {}>(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 DailyPuzzle model */ export interface DailyPuzzleFieldRefs { readonly id: Prisma.FieldRef<"DailyPuzzle", 'String'> readonly date: Prisma.FieldRef<"DailyPuzzle", 'String'> readonly startArticle: Prisma.FieldRef<"DailyPuzzle", 'String'> readonly targetArticle: Prisma.FieldRef<"DailyPuzzle", 'String'> } // Custom InputTypes /** * DailyPuzzle findUnique */ export type DailyPuzzleFindUniqueArgs = { /** * Select specific fields to fetch from the DailyPuzzle */ select?: Prisma.DailyPuzzleSelect | null /** * Omit specific fields from the DailyPuzzle */ omit?: Prisma.DailyPuzzleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DailyPuzzleInclude | null /** * Filter, which DailyPuzzle to fetch. */ where: Prisma.DailyPuzzleWhereUniqueInput } /** * DailyPuzzle findUniqueOrThrow */ export type DailyPuzzleFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the DailyPuzzle */ select?: Prisma.DailyPuzzleSelect | null /** * Omit specific fields from the DailyPuzzle */ omit?: Prisma.DailyPuzzleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DailyPuzzleInclude | null /** * Filter, which DailyPuzzle to fetch. */ where: Prisma.DailyPuzzleWhereUniqueInput } /** * DailyPuzzle findFirst */ export type DailyPuzzleFindFirstArgs = { /** * Select specific fields to fetch from the DailyPuzzle */ select?: Prisma.DailyPuzzleSelect | null /** * Omit specific fields from the DailyPuzzle */ omit?: Prisma.DailyPuzzleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DailyPuzzleInclude | null /** * Filter, which DailyPuzzle to fetch. */ where?: Prisma.DailyPuzzleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DailyPuzzles to fetch. */ orderBy?: Prisma.DailyPuzzleOrderByWithRelationInput | Prisma.DailyPuzzleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DailyPuzzles. */ cursor?: Prisma.DailyPuzzleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DailyPuzzles 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` DailyPuzzles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DailyPuzzles. */ distinct?: Prisma.DailyPuzzleScalarFieldEnum | Prisma.DailyPuzzleScalarFieldEnum[] } /** * DailyPuzzle findFirstOrThrow */ export type DailyPuzzleFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the DailyPuzzle */ select?: Prisma.DailyPuzzleSelect | null /** * Omit specific fields from the DailyPuzzle */ omit?: Prisma.DailyPuzzleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DailyPuzzleInclude | null /** * Filter, which DailyPuzzle to fetch. */ where?: Prisma.DailyPuzzleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DailyPuzzles to fetch. */ orderBy?: Prisma.DailyPuzzleOrderByWithRelationInput | Prisma.DailyPuzzleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DailyPuzzles. */ cursor?: Prisma.DailyPuzzleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DailyPuzzles 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` DailyPuzzles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DailyPuzzles. */ distinct?: Prisma.DailyPuzzleScalarFieldEnum | Prisma.DailyPuzzleScalarFieldEnum[] } /** * DailyPuzzle findMany */ export type DailyPuzzleFindManyArgs = { /** * Select specific fields to fetch from the DailyPuzzle */ select?: Prisma.DailyPuzzleSelect | null /** * Omit specific fields from the DailyPuzzle */ omit?: Prisma.DailyPuzzleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DailyPuzzleInclude | null /** * Filter, which DailyPuzzles to fetch. */ where?: Prisma.DailyPuzzleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DailyPuzzles to fetch. */ orderBy?: Prisma.DailyPuzzleOrderByWithRelationInput | Prisma.DailyPuzzleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing DailyPuzzles. */ cursor?: Prisma.DailyPuzzleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DailyPuzzles 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` DailyPuzzles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DailyPuzzles. */ distinct?: Prisma.DailyPuzzleScalarFieldEnum | Prisma.DailyPuzzleScalarFieldEnum[] } /** * DailyPuzzle create */ export type DailyPuzzleCreateArgs = { /** * Select specific fields to fetch from the DailyPuzzle */ select?: Prisma.DailyPuzzleSelect | null /** * Omit specific fields from the DailyPuzzle */ omit?: Prisma.DailyPuzzleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DailyPuzzleInclude | null /** * The data needed to create a DailyPuzzle. */ data: Prisma.XOR } /** * DailyPuzzle createMany */ export type DailyPuzzleCreateManyArgs = { /** * The data used to create many DailyPuzzles. */ data: Prisma.DailyPuzzleCreateManyInput | Prisma.DailyPuzzleCreateManyInput[] } /** * DailyPuzzle createManyAndReturn */ export type DailyPuzzleCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the DailyPuzzle */ select?: Prisma.DailyPuzzleSelectCreateManyAndReturn | null /** * Omit specific fields from the DailyPuzzle */ omit?: Prisma.DailyPuzzleOmit | null /** * The data used to create many DailyPuzzles. */ data: Prisma.DailyPuzzleCreateManyInput | Prisma.DailyPuzzleCreateManyInput[] } /** * DailyPuzzle update */ export type DailyPuzzleUpdateArgs = { /** * Select specific fields to fetch from the DailyPuzzle */ select?: Prisma.DailyPuzzleSelect | null /** * Omit specific fields from the DailyPuzzle */ omit?: Prisma.DailyPuzzleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DailyPuzzleInclude | null /** * The data needed to update a DailyPuzzle. */ data: Prisma.XOR /** * Choose, which DailyPuzzle to update. */ where: Prisma.DailyPuzzleWhereUniqueInput } /** * DailyPuzzle updateMany */ export type DailyPuzzleUpdateManyArgs = { /** * The data used to update DailyPuzzles. */ data: Prisma.XOR /** * Filter which DailyPuzzles to update */ where?: Prisma.DailyPuzzleWhereInput /** * Limit how many DailyPuzzles to update. */ limit?: number } /** * DailyPuzzle updateManyAndReturn */ export type DailyPuzzleUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the DailyPuzzle */ select?: Prisma.DailyPuzzleSelectUpdateManyAndReturn | null /** * Omit specific fields from the DailyPuzzle */ omit?: Prisma.DailyPuzzleOmit | null /** * The data used to update DailyPuzzles. */ data: Prisma.XOR /** * Filter which DailyPuzzles to update */ where?: Prisma.DailyPuzzleWhereInput /** * Limit how many DailyPuzzles to update. */ limit?: number } /** * DailyPuzzle upsert */ export type DailyPuzzleUpsertArgs = { /** * Select specific fields to fetch from the DailyPuzzle */ select?: Prisma.DailyPuzzleSelect | null /** * Omit specific fields from the DailyPuzzle */ omit?: Prisma.DailyPuzzleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DailyPuzzleInclude | null /** * The filter to search for the DailyPuzzle to update in case it exists. */ where: Prisma.DailyPuzzleWhereUniqueInput /** * In case the DailyPuzzle found by the `where` argument doesn't exist, create a new DailyPuzzle with this data. */ create: Prisma.XOR /** * In case the DailyPuzzle was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * DailyPuzzle delete */ export type DailyPuzzleDeleteArgs = { /** * Select specific fields to fetch from the DailyPuzzle */ select?: Prisma.DailyPuzzleSelect | null /** * Omit specific fields from the DailyPuzzle */ omit?: Prisma.DailyPuzzleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DailyPuzzleInclude | null /** * Filter which DailyPuzzle to delete. */ where: Prisma.DailyPuzzleWhereUniqueInput } /** * DailyPuzzle deleteMany */ export type DailyPuzzleDeleteManyArgs = { /** * Filter which DailyPuzzles to delete */ where?: Prisma.DailyPuzzleWhereInput /** * Limit how many DailyPuzzles to delete. */ limit?: number } /** * DailyPuzzle.results */ export type DailyPuzzle$resultsArgs = { /** * Select specific fields to fetch from the DailyResult */ select?: Prisma.DailyResultSelect | null /** * Omit specific fields from the DailyResult */ omit?: Prisma.DailyResultOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DailyResultInclude | null where?: Prisma.DailyResultWhereInput orderBy?: Prisma.DailyResultOrderByWithRelationInput | Prisma.DailyResultOrderByWithRelationInput[] cursor?: Prisma.DailyResultWhereUniqueInput take?: number skip?: number distinct?: Prisma.DailyResultScalarFieldEnum | Prisma.DailyResultScalarFieldEnum[] } /** * DailyPuzzle without action */ export type DailyPuzzleDefaultArgs = { /** * Select specific fields to fetch from the DailyPuzzle */ select?: Prisma.DailyPuzzleSelect | null /** * Omit specific fields from the DailyPuzzle */ omit?: Prisma.DailyPuzzleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DailyPuzzleInclude | null }