/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `UserPreferences` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model UserPreferences * */ export type UserPreferencesModel = runtime.Types.Result.DefaultSelection export type AggregateUserPreferences = { _count: UserPreferencesCountAggregateOutputType | null _min: UserPreferencesMinAggregateOutputType | null _max: UserPreferencesMaxAggregateOutputType | null } export type UserPreferencesMinAggregateOutputType = { userId: string | null toggleInputHotkey: string | null toggleOutputHotkey: string | null } export type UserPreferencesMaxAggregateOutputType = { userId: string | null toggleInputHotkey: string | null toggleOutputHotkey: string | null } export type UserPreferencesCountAggregateOutputType = { userId: number toggleInputHotkey: number toggleOutputHotkey: number _all: number } export type UserPreferencesMinAggregateInputType = { userId?: true toggleInputHotkey?: true toggleOutputHotkey?: true } export type UserPreferencesMaxAggregateInputType = { userId?: true toggleInputHotkey?: true toggleOutputHotkey?: true } export type UserPreferencesCountAggregateInputType = { userId?: true toggleInputHotkey?: true toggleOutputHotkey?: true _all?: true } export type UserPreferencesAggregateArgs = { /** * Filter which UserPreferences to aggregate. */ where?: Prisma.UserPreferencesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserPreferences to fetch. */ orderBy?: Prisma.UserPreferencesOrderByWithRelationInput | Prisma.UserPreferencesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.UserPreferencesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserPreferences 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` UserPreferences. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned UserPreferences **/ _count?: true | UserPreferencesCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UserPreferencesMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UserPreferencesMaxAggregateInputType } export type GetUserPreferencesAggregateType = { [P in keyof T & keyof AggregateUserPreferences]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type UserPreferencesGroupByArgs = { where?: Prisma.UserPreferencesWhereInput orderBy?: Prisma.UserPreferencesOrderByWithAggregationInput | Prisma.UserPreferencesOrderByWithAggregationInput[] by: Prisma.UserPreferencesScalarFieldEnum[] | Prisma.UserPreferencesScalarFieldEnum having?: Prisma.UserPreferencesScalarWhereWithAggregatesInput take?: number skip?: number _count?: UserPreferencesCountAggregateInputType | true _min?: UserPreferencesMinAggregateInputType _max?: UserPreferencesMaxAggregateInputType } export type UserPreferencesGroupByOutputType = { userId: string toggleInputHotkey: string | null toggleOutputHotkey: string | null _count: UserPreferencesCountAggregateOutputType | null _min: UserPreferencesMinAggregateOutputType | null _max: UserPreferencesMaxAggregateOutputType | null } type GetUserPreferencesGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof UserPreferencesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type UserPreferencesWhereInput = { AND?: Prisma.UserPreferencesWhereInput | Prisma.UserPreferencesWhereInput[] OR?: Prisma.UserPreferencesWhereInput[] NOT?: Prisma.UserPreferencesWhereInput | Prisma.UserPreferencesWhereInput[] userId?: Prisma.StringFilter<"UserPreferences"> | string toggleInputHotkey?: Prisma.StringNullableFilter<"UserPreferences"> | string | null toggleOutputHotkey?: Prisma.StringNullableFilter<"UserPreferences"> | string | null user?: Prisma.XOR } export type UserPreferencesOrderByWithRelationInput = { userId?: Prisma.SortOrder toggleInputHotkey?: Prisma.SortOrderInput | Prisma.SortOrder toggleOutputHotkey?: Prisma.SortOrderInput | Prisma.SortOrder user?: Prisma.UserOrderByWithRelationInput } export type UserPreferencesWhereUniqueInput = Prisma.AtLeast<{ userId?: string AND?: Prisma.UserPreferencesWhereInput | Prisma.UserPreferencesWhereInput[] OR?: Prisma.UserPreferencesWhereInput[] NOT?: Prisma.UserPreferencesWhereInput | Prisma.UserPreferencesWhereInput[] toggleInputHotkey?: Prisma.StringNullableFilter<"UserPreferences"> | string | null toggleOutputHotkey?: Prisma.StringNullableFilter<"UserPreferences"> | string | null user?: Prisma.XOR }, "userId"> export type UserPreferencesOrderByWithAggregationInput = { userId?: Prisma.SortOrder toggleInputHotkey?: Prisma.SortOrderInput | Prisma.SortOrder toggleOutputHotkey?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.UserPreferencesCountOrderByAggregateInput _max?: Prisma.UserPreferencesMaxOrderByAggregateInput _min?: Prisma.UserPreferencesMinOrderByAggregateInput } export type UserPreferencesScalarWhereWithAggregatesInput = { AND?: Prisma.UserPreferencesScalarWhereWithAggregatesInput | Prisma.UserPreferencesScalarWhereWithAggregatesInput[] OR?: Prisma.UserPreferencesScalarWhereWithAggregatesInput[] NOT?: Prisma.UserPreferencesScalarWhereWithAggregatesInput | Prisma.UserPreferencesScalarWhereWithAggregatesInput[] userId?: Prisma.StringWithAggregatesFilter<"UserPreferences"> | string toggleInputHotkey?: Prisma.StringNullableWithAggregatesFilter<"UserPreferences"> | string | null toggleOutputHotkey?: Prisma.StringNullableWithAggregatesFilter<"UserPreferences"> | string | null } export type UserPreferencesCreateInput = { toggleInputHotkey?: string | null toggleOutputHotkey?: string | null user: Prisma.UserCreateNestedOneWithoutUserPreferencesInput } export type UserPreferencesUncheckedCreateInput = { userId: string toggleInputHotkey?: string | null toggleOutputHotkey?: string | null } export type UserPreferencesUpdateInput = { toggleInputHotkey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null toggleOutputHotkey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null user?: Prisma.UserUpdateOneRequiredWithoutUserPreferencesNestedInput } export type UserPreferencesUncheckedUpdateInput = { userId?: Prisma.StringFieldUpdateOperationsInput | string toggleInputHotkey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null toggleOutputHotkey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type UserPreferencesCreateManyInput = { userId: string toggleInputHotkey?: string | null toggleOutputHotkey?: string | null } export type UserPreferencesUpdateManyMutationInput = { toggleInputHotkey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null toggleOutputHotkey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type UserPreferencesUncheckedUpdateManyInput = { userId?: Prisma.StringFieldUpdateOperationsInput | string toggleInputHotkey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null toggleOutputHotkey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type UserPreferencesNullableScalarRelationFilter = { is?: Prisma.UserPreferencesWhereInput | null isNot?: Prisma.UserPreferencesWhereInput | null } export type UserPreferencesCountOrderByAggregateInput = { userId?: Prisma.SortOrder toggleInputHotkey?: Prisma.SortOrder toggleOutputHotkey?: Prisma.SortOrder } export type UserPreferencesMaxOrderByAggregateInput = { userId?: Prisma.SortOrder toggleInputHotkey?: Prisma.SortOrder toggleOutputHotkey?: Prisma.SortOrder } export type UserPreferencesMinOrderByAggregateInput = { userId?: Prisma.SortOrder toggleInputHotkey?: Prisma.SortOrder toggleOutputHotkey?: Prisma.SortOrder } export type UserPreferencesCreateNestedOneWithoutUserInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserPreferencesCreateOrConnectWithoutUserInput connect?: Prisma.UserPreferencesWhereUniqueInput } export type UserPreferencesUncheckedCreateNestedOneWithoutUserInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserPreferencesCreateOrConnectWithoutUserInput connect?: Prisma.UserPreferencesWhereUniqueInput } export type UserPreferencesUpdateOneWithoutUserNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserPreferencesCreateOrConnectWithoutUserInput upsert?: Prisma.UserPreferencesUpsertWithoutUserInput disconnect?: Prisma.UserPreferencesWhereInput | boolean delete?: Prisma.UserPreferencesWhereInput | boolean connect?: Prisma.UserPreferencesWhereUniqueInput update?: Prisma.XOR, Prisma.UserPreferencesUncheckedUpdateWithoutUserInput> } export type UserPreferencesUncheckedUpdateOneWithoutUserNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserPreferencesCreateOrConnectWithoutUserInput upsert?: Prisma.UserPreferencesUpsertWithoutUserInput disconnect?: Prisma.UserPreferencesWhereInput | boolean delete?: Prisma.UserPreferencesWhereInput | boolean connect?: Prisma.UserPreferencesWhereUniqueInput update?: Prisma.XOR, Prisma.UserPreferencesUncheckedUpdateWithoutUserInput> } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type UserPreferencesCreateWithoutUserInput = { toggleInputHotkey?: string | null toggleOutputHotkey?: string | null } export type UserPreferencesUncheckedCreateWithoutUserInput = { toggleInputHotkey?: string | null toggleOutputHotkey?: string | null } export type UserPreferencesCreateOrConnectWithoutUserInput = { where: Prisma.UserPreferencesWhereUniqueInput create: Prisma.XOR } export type UserPreferencesUpsertWithoutUserInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.UserPreferencesWhereInput } export type UserPreferencesUpdateToOneWithWhereWithoutUserInput = { where?: Prisma.UserPreferencesWhereInput data: Prisma.XOR } export type UserPreferencesUpdateWithoutUserInput = { toggleInputHotkey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null toggleOutputHotkey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type UserPreferencesUncheckedUpdateWithoutUserInput = { toggleInputHotkey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null toggleOutputHotkey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type UserPreferencesSelect = runtime.Types.Extensions.GetSelect<{ userId?: boolean toggleInputHotkey?: boolean toggleOutputHotkey?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["userPreferences"]> export type UserPreferencesSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ userId?: boolean toggleInputHotkey?: boolean toggleOutputHotkey?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["userPreferences"]> export type UserPreferencesSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ userId?: boolean toggleInputHotkey?: boolean toggleOutputHotkey?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["userPreferences"]> export type UserPreferencesSelectScalar = { userId?: boolean toggleInputHotkey?: boolean toggleOutputHotkey?: boolean } export type UserPreferencesOmit = runtime.Types.Extensions.GetOmit<"userId" | "toggleInputHotkey" | "toggleOutputHotkey", ExtArgs["result"]["userPreferences"]> export type UserPreferencesInclude = { user?: boolean | Prisma.UserDefaultArgs } export type UserPreferencesIncludeCreateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs } export type UserPreferencesIncludeUpdateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs } export type $UserPreferencesPayload = { name: "UserPreferences" objects: { user: Prisma.$UserPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ userId: string toggleInputHotkey: string | null toggleOutputHotkey: string | null }, ExtArgs["result"]["userPreferences"]> composites: {} } export type UserPreferencesGetPayload = runtime.Types.Result.GetResult export type UserPreferencesCountArgs = Omit & { select?: UserPreferencesCountAggregateInputType | true } export interface UserPreferencesDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['UserPreferences'], meta: { name: 'UserPreferences' } } /** * Find zero or one UserPreferences that matches the filter. * @param {UserPreferencesFindUniqueArgs} args - Arguments to find a UserPreferences * @example * // Get one UserPreferences * const userPreferences = await prisma.userPreferences.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__UserPreferencesClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one UserPreferences that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {UserPreferencesFindUniqueOrThrowArgs} args - Arguments to find a UserPreferences * @example * // Get one UserPreferences * const userPreferences = await prisma.userPreferences.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__UserPreferencesClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first UserPreferences 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 {UserPreferencesFindFirstArgs} args - Arguments to find a UserPreferences * @example * // Get one UserPreferences * const userPreferences = await prisma.userPreferences.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__UserPreferencesClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first UserPreferences 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 {UserPreferencesFindFirstOrThrowArgs} args - Arguments to find a UserPreferences * @example * // Get one UserPreferences * const userPreferences = await prisma.userPreferences.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__UserPreferencesClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more UserPreferences 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 {UserPreferencesFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all UserPreferences * const userPreferences = await prisma.userPreferences.findMany() * * // Get first 10 UserPreferences * const userPreferences = await prisma.userPreferences.findMany({ take: 10 }) * * // Only select the `userId` * const userPreferencesWithUserIdOnly = await prisma.userPreferences.findMany({ select: { userId: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a UserPreferences. * @param {UserPreferencesCreateArgs} args - Arguments to create a UserPreferences. * @example * // Create one UserPreferences * const UserPreferences = await prisma.userPreferences.create({ * data: { * // ... data to create a UserPreferences * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__UserPreferencesClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many UserPreferences. * @param {UserPreferencesCreateManyArgs} args - Arguments to create many UserPreferences. * @example * // Create many UserPreferences * const userPreferences = await prisma.userPreferences.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many UserPreferences and returns the data saved in the database. * @param {UserPreferencesCreateManyAndReturnArgs} args - Arguments to create many UserPreferences. * @example * // Create many UserPreferences * const userPreferences = await prisma.userPreferences.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many UserPreferences and only return the `userId` * const userPreferencesWithUserIdOnly = await prisma.userPreferences.createManyAndReturn({ * select: { userId: 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 UserPreferences. * @param {UserPreferencesDeleteArgs} args - Arguments to delete one UserPreferences. * @example * // Delete one UserPreferences * const UserPreferences = await prisma.userPreferences.delete({ * where: { * // ... filter to delete one UserPreferences * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__UserPreferencesClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one UserPreferences. * @param {UserPreferencesUpdateArgs} args - Arguments to update one UserPreferences. * @example * // Update one UserPreferences * const userPreferences = await prisma.userPreferences.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__UserPreferencesClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more UserPreferences. * @param {UserPreferencesDeleteManyArgs} args - Arguments to filter UserPreferences to delete. * @example * // Delete a few UserPreferences * const { count } = await prisma.userPreferences.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more UserPreferences. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserPreferencesUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many UserPreferences * const userPreferences = await prisma.userPreferences.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more UserPreferences and returns the data updated in the database. * @param {UserPreferencesUpdateManyAndReturnArgs} args - Arguments to update many UserPreferences. * @example * // Update many UserPreferences * const userPreferences = await prisma.userPreferences.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more UserPreferences and only return the `userId` * const userPreferencesWithUserIdOnly = await prisma.userPreferences.updateManyAndReturn({ * select: { userId: 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 UserPreferences. * @param {UserPreferencesUpsertArgs} args - Arguments to update or create a UserPreferences. * @example * // Update or create a UserPreferences * const userPreferences = await prisma.userPreferences.upsert({ * create: { * // ... data to create a UserPreferences * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the UserPreferences we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__UserPreferencesClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of UserPreferences. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserPreferencesCountArgs} args - Arguments to filter UserPreferences to count. * @example * // Count the number of UserPreferences * const count = await prisma.userPreferences.count({ * where: { * // ... the filter for the UserPreferences 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 UserPreferences. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserPreferencesAggregateArgs} 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 UserPreferences. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserPreferencesGroupByArgs} 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 UserPreferencesGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: UserPreferencesGroupByArgs['orderBy'] } : { orderBy?: UserPreferencesGroupByArgs['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 ? GetUserPreferencesGroupByPayload : Prisma.PrismaPromise /** * Fields of the UserPreferences model */ readonly fields: UserPreferencesFieldRefs; } /** * The delegate class that acts as a "Promise-like" for UserPreferences. * 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__UserPreferencesClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(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 UserPreferences model */ export interface UserPreferencesFieldRefs { readonly userId: Prisma.FieldRef<"UserPreferences", 'String'> readonly toggleInputHotkey: Prisma.FieldRef<"UserPreferences", 'String'> readonly toggleOutputHotkey: Prisma.FieldRef<"UserPreferences", 'String'> } // Custom InputTypes /** * UserPreferences findUnique */ export type UserPreferencesFindUniqueArgs = { /** * Select specific fields to fetch from the UserPreferences */ select?: Prisma.UserPreferencesSelect | null /** * Omit specific fields from the UserPreferences */ omit?: Prisma.UserPreferencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserPreferencesInclude | null /** * Filter, which UserPreferences to fetch. */ where: Prisma.UserPreferencesWhereUniqueInput } /** * UserPreferences findUniqueOrThrow */ export type UserPreferencesFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the UserPreferences */ select?: Prisma.UserPreferencesSelect | null /** * Omit specific fields from the UserPreferences */ omit?: Prisma.UserPreferencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserPreferencesInclude | null /** * Filter, which UserPreferences to fetch. */ where: Prisma.UserPreferencesWhereUniqueInput } /** * UserPreferences findFirst */ export type UserPreferencesFindFirstArgs = { /** * Select specific fields to fetch from the UserPreferences */ select?: Prisma.UserPreferencesSelect | null /** * Omit specific fields from the UserPreferences */ omit?: Prisma.UserPreferencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserPreferencesInclude | null /** * Filter, which UserPreferences to fetch. */ where?: Prisma.UserPreferencesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserPreferences to fetch. */ orderBy?: Prisma.UserPreferencesOrderByWithRelationInput | Prisma.UserPreferencesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for UserPreferences. */ cursor?: Prisma.UserPreferencesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserPreferences 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` UserPreferences. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UserPreferences. */ distinct?: Prisma.UserPreferencesScalarFieldEnum | Prisma.UserPreferencesScalarFieldEnum[] } /** * UserPreferences findFirstOrThrow */ export type UserPreferencesFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the UserPreferences */ select?: Prisma.UserPreferencesSelect | null /** * Omit specific fields from the UserPreferences */ omit?: Prisma.UserPreferencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserPreferencesInclude | null /** * Filter, which UserPreferences to fetch. */ where?: Prisma.UserPreferencesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserPreferences to fetch. */ orderBy?: Prisma.UserPreferencesOrderByWithRelationInput | Prisma.UserPreferencesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for UserPreferences. */ cursor?: Prisma.UserPreferencesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserPreferences 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` UserPreferences. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UserPreferences. */ distinct?: Prisma.UserPreferencesScalarFieldEnum | Prisma.UserPreferencesScalarFieldEnum[] } /** * UserPreferences findMany */ export type UserPreferencesFindManyArgs = { /** * Select specific fields to fetch from the UserPreferences */ select?: Prisma.UserPreferencesSelect | null /** * Omit specific fields from the UserPreferences */ omit?: Prisma.UserPreferencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserPreferencesInclude | null /** * Filter, which UserPreferences to fetch. */ where?: Prisma.UserPreferencesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserPreferences to fetch. */ orderBy?: Prisma.UserPreferencesOrderByWithRelationInput | Prisma.UserPreferencesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing UserPreferences. */ cursor?: Prisma.UserPreferencesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserPreferences 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` UserPreferences. */ skip?: number distinct?: Prisma.UserPreferencesScalarFieldEnum | Prisma.UserPreferencesScalarFieldEnum[] } /** * UserPreferences create */ export type UserPreferencesCreateArgs = { /** * Select specific fields to fetch from the UserPreferences */ select?: Prisma.UserPreferencesSelect | null /** * Omit specific fields from the UserPreferences */ omit?: Prisma.UserPreferencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserPreferencesInclude | null /** * The data needed to create a UserPreferences. */ data: Prisma.XOR } /** * UserPreferences createMany */ export type UserPreferencesCreateManyArgs = { /** * The data used to create many UserPreferences. */ data: Prisma.UserPreferencesCreateManyInput | Prisma.UserPreferencesCreateManyInput[] } /** * UserPreferences createManyAndReturn */ export type UserPreferencesCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the UserPreferences */ select?: Prisma.UserPreferencesSelectCreateManyAndReturn | null /** * Omit specific fields from the UserPreferences */ omit?: Prisma.UserPreferencesOmit | null /** * The data used to create many UserPreferences. */ data: Prisma.UserPreferencesCreateManyInput | Prisma.UserPreferencesCreateManyInput[] /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserPreferencesIncludeCreateManyAndReturn | null } /** * UserPreferences update */ export type UserPreferencesUpdateArgs = { /** * Select specific fields to fetch from the UserPreferences */ select?: Prisma.UserPreferencesSelect | null /** * Omit specific fields from the UserPreferences */ omit?: Prisma.UserPreferencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserPreferencesInclude | null /** * The data needed to update a UserPreferences. */ data: Prisma.XOR /** * Choose, which UserPreferences to update. */ where: Prisma.UserPreferencesWhereUniqueInput } /** * UserPreferences updateMany */ export type UserPreferencesUpdateManyArgs = { /** * The data used to update UserPreferences. */ data: Prisma.XOR /** * Filter which UserPreferences to update */ where?: Prisma.UserPreferencesWhereInput /** * Limit how many UserPreferences to update. */ limit?: number } /** * UserPreferences updateManyAndReturn */ export type UserPreferencesUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the UserPreferences */ select?: Prisma.UserPreferencesSelectUpdateManyAndReturn | null /** * Omit specific fields from the UserPreferences */ omit?: Prisma.UserPreferencesOmit | null /** * The data used to update UserPreferences. */ data: Prisma.XOR /** * Filter which UserPreferences to update */ where?: Prisma.UserPreferencesWhereInput /** * Limit how many UserPreferences to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserPreferencesIncludeUpdateManyAndReturn | null } /** * UserPreferences upsert */ export type UserPreferencesUpsertArgs = { /** * Select specific fields to fetch from the UserPreferences */ select?: Prisma.UserPreferencesSelect | null /** * Omit specific fields from the UserPreferences */ omit?: Prisma.UserPreferencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserPreferencesInclude | null /** * The filter to search for the UserPreferences to update in case it exists. */ where: Prisma.UserPreferencesWhereUniqueInput /** * In case the UserPreferences found by the `where` argument doesn't exist, create a new UserPreferences with this data. */ create: Prisma.XOR /** * In case the UserPreferences was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * UserPreferences delete */ export type UserPreferencesDeleteArgs = { /** * Select specific fields to fetch from the UserPreferences */ select?: Prisma.UserPreferencesSelect | null /** * Omit specific fields from the UserPreferences */ omit?: Prisma.UserPreferencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserPreferencesInclude | null /** * Filter which UserPreferences to delete. */ where: Prisma.UserPreferencesWhereUniqueInput } /** * UserPreferences deleteMany */ export type UserPreferencesDeleteManyArgs = { /** * Filter which UserPreferences to delete */ where?: Prisma.UserPreferencesWhereInput /** * Limit how many UserPreferences to delete. */ limit?: number } /** * UserPreferences without action */ export type UserPreferencesDefaultArgs = { /** * Select specific fields to fetch from the UserPreferences */ select?: Prisma.UserPreferencesSelect | null /** * Omit specific fields from the UserPreferences */ omit?: Prisma.UserPreferencesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserPreferencesInclude | null }