/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `RecentSearch` 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 RecentSearch * */ export type RecentSearchModel = runtime.Types.Result.DefaultSelection export type AggregateRecentSearch = { _count: RecentSearchCountAggregateOutputType | null _avg: RecentSearchAvgAggregateOutputType | null _sum: RecentSearchSumAggregateOutputType | null _min: RecentSearchMinAggregateOutputType | null _max: RecentSearchMaxAggregateOutputType | null } export type RecentSearchAvgAggregateOutputType = { resultCount: number | null } export type RecentSearchSumAggregateOutputType = { resultCount: number | null } export type RecentSearchMinAggregateOutputType = { id: string | null createdAt: Date | null tenantId: string | null userId: string | null queryText: string | null resultCount: number | null } export type RecentSearchMaxAggregateOutputType = { id: string | null createdAt: Date | null tenantId: string | null userId: string | null queryText: string | null resultCount: number | null } export type RecentSearchCountAggregateOutputType = { id: number createdAt: number tenantId: number userId: number queryText: number appliedFilters: number resultCount: number _all: number } export type RecentSearchAvgAggregateInputType = { resultCount?: true } export type RecentSearchSumAggregateInputType = { resultCount?: true } export type RecentSearchMinAggregateInputType = { id?: true createdAt?: true tenantId?: true userId?: true queryText?: true resultCount?: true } export type RecentSearchMaxAggregateInputType = { id?: true createdAt?: true tenantId?: true userId?: true queryText?: true resultCount?: true } export type RecentSearchCountAggregateInputType = { id?: true createdAt?: true tenantId?: true userId?: true queryText?: true appliedFilters?: true resultCount?: true _all?: true } export type RecentSearchAggregateArgs = { /** * Filter which RecentSearch to aggregate. */ where?: Prisma.RecentSearchWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of RecentSearches to fetch. */ orderBy?: Prisma.RecentSearchOrderByWithRelationInput | Prisma.RecentSearchOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.RecentSearchWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` RecentSearches 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` RecentSearches. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned RecentSearches **/ _count?: true | RecentSearchCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: RecentSearchAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: RecentSearchSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: RecentSearchMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: RecentSearchMaxAggregateInputType } export type GetRecentSearchAggregateType = { [P in keyof T & keyof AggregateRecentSearch]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type RecentSearchGroupByArgs = { where?: Prisma.RecentSearchWhereInput orderBy?: Prisma.RecentSearchOrderByWithAggregationInput | Prisma.RecentSearchOrderByWithAggregationInput[] by: Prisma.RecentSearchScalarFieldEnum[] | Prisma.RecentSearchScalarFieldEnum having?: Prisma.RecentSearchScalarWhereWithAggregatesInput take?: number skip?: number _count?: RecentSearchCountAggregateInputType | true _avg?: RecentSearchAvgAggregateInputType _sum?: RecentSearchSumAggregateInputType _min?: RecentSearchMinAggregateInputType _max?: RecentSearchMaxAggregateInputType } export type RecentSearchGroupByOutputType = { id: string createdAt: Date tenantId: string userId: string queryText: string appliedFilters: runtime.JsonValue resultCount: number _count: RecentSearchCountAggregateOutputType | null _avg: RecentSearchAvgAggregateOutputType | null _sum: RecentSearchSumAggregateOutputType | null _min: RecentSearchMinAggregateOutputType | null _max: RecentSearchMaxAggregateOutputType | null } export type GetRecentSearchGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof RecentSearchGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type RecentSearchWhereInput = { AND?: Prisma.RecentSearchWhereInput | Prisma.RecentSearchWhereInput[] OR?: Prisma.RecentSearchWhereInput[] NOT?: Prisma.RecentSearchWhereInput | Prisma.RecentSearchWhereInput[] id?: Prisma.StringFilter<"RecentSearch"> | string createdAt?: Prisma.DateTimeFilter<"RecentSearch"> | Date | string tenantId?: Prisma.StringFilter<"RecentSearch"> | string userId?: Prisma.StringFilter<"RecentSearch"> | string queryText?: Prisma.StringFilter<"RecentSearch"> | string appliedFilters?: Prisma.JsonFilter<"RecentSearch"> resultCount?: Prisma.IntFilter<"RecentSearch"> | number } export type RecentSearchOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder queryText?: Prisma.SortOrder appliedFilters?: Prisma.SortOrder resultCount?: Prisma.SortOrder } export type RecentSearchWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.RecentSearchWhereInput | Prisma.RecentSearchWhereInput[] OR?: Prisma.RecentSearchWhereInput[] NOT?: Prisma.RecentSearchWhereInput | Prisma.RecentSearchWhereInput[] createdAt?: Prisma.DateTimeFilter<"RecentSearch"> | Date | string tenantId?: Prisma.StringFilter<"RecentSearch"> | string userId?: Prisma.StringFilter<"RecentSearch"> | string queryText?: Prisma.StringFilter<"RecentSearch"> | string appliedFilters?: Prisma.JsonFilter<"RecentSearch"> resultCount?: Prisma.IntFilter<"RecentSearch"> | number }, "id"> export type RecentSearchOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder queryText?: Prisma.SortOrder appliedFilters?: Prisma.SortOrder resultCount?: Prisma.SortOrder _count?: Prisma.RecentSearchCountOrderByAggregateInput _avg?: Prisma.RecentSearchAvgOrderByAggregateInput _max?: Prisma.RecentSearchMaxOrderByAggregateInput _min?: Prisma.RecentSearchMinOrderByAggregateInput _sum?: Prisma.RecentSearchSumOrderByAggregateInput } export type RecentSearchScalarWhereWithAggregatesInput = { AND?: Prisma.RecentSearchScalarWhereWithAggregatesInput | Prisma.RecentSearchScalarWhereWithAggregatesInput[] OR?: Prisma.RecentSearchScalarWhereWithAggregatesInput[] NOT?: Prisma.RecentSearchScalarWhereWithAggregatesInput | Prisma.RecentSearchScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"RecentSearch"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"RecentSearch"> | Date | string tenantId?: Prisma.StringWithAggregatesFilter<"RecentSearch"> | string userId?: Prisma.StringWithAggregatesFilter<"RecentSearch"> | string queryText?: Prisma.StringWithAggregatesFilter<"RecentSearch"> | string appliedFilters?: Prisma.JsonWithAggregatesFilter<"RecentSearch"> resultCount?: Prisma.IntWithAggregatesFilter<"RecentSearch"> | number } export type RecentSearchCreateInput = { id?: string createdAt?: Date | string tenantId: string userId: string queryText: string appliedFilters?: Prisma.JsonNullValueInput | runtime.InputJsonValue resultCount?: number } export type RecentSearchUncheckedCreateInput = { id?: string createdAt?: Date | string tenantId: string userId: string queryText: string appliedFilters?: Prisma.JsonNullValueInput | runtime.InputJsonValue resultCount?: number } export type RecentSearchUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string queryText?: Prisma.StringFieldUpdateOperationsInput | string appliedFilters?: Prisma.JsonNullValueInput | runtime.InputJsonValue resultCount?: Prisma.IntFieldUpdateOperationsInput | number } export type RecentSearchUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string queryText?: Prisma.StringFieldUpdateOperationsInput | string appliedFilters?: Prisma.JsonNullValueInput | runtime.InputJsonValue resultCount?: Prisma.IntFieldUpdateOperationsInput | number } export type RecentSearchCreateManyInput = { id?: string createdAt?: Date | string tenantId: string userId: string queryText: string appliedFilters?: Prisma.JsonNullValueInput | runtime.InputJsonValue resultCount?: number } export type RecentSearchUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string queryText?: Prisma.StringFieldUpdateOperationsInput | string appliedFilters?: Prisma.JsonNullValueInput | runtime.InputJsonValue resultCount?: Prisma.IntFieldUpdateOperationsInput | number } export type RecentSearchUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string queryText?: Prisma.StringFieldUpdateOperationsInput | string appliedFilters?: Prisma.JsonNullValueInput | runtime.InputJsonValue resultCount?: Prisma.IntFieldUpdateOperationsInput | number } export type RecentSearchCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder queryText?: Prisma.SortOrder appliedFilters?: Prisma.SortOrder resultCount?: Prisma.SortOrder } export type RecentSearchAvgOrderByAggregateInput = { resultCount?: Prisma.SortOrder } export type RecentSearchMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder queryText?: Prisma.SortOrder resultCount?: Prisma.SortOrder } export type RecentSearchMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder queryText?: Prisma.SortOrder resultCount?: Prisma.SortOrder } export type RecentSearchSumOrderByAggregateInput = { resultCount?: Prisma.SortOrder } export type RecentSearchSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean tenantId?: boolean userId?: boolean queryText?: boolean appliedFilters?: boolean resultCount?: boolean }, ExtArgs["result"]["recentSearch"]> export type RecentSearchSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean tenantId?: boolean userId?: boolean queryText?: boolean appliedFilters?: boolean resultCount?: boolean }, ExtArgs["result"]["recentSearch"]> export type RecentSearchSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean tenantId?: boolean userId?: boolean queryText?: boolean appliedFilters?: boolean resultCount?: boolean }, ExtArgs["result"]["recentSearch"]> export type RecentSearchSelectScalar = { id?: boolean createdAt?: boolean tenantId?: boolean userId?: boolean queryText?: boolean appliedFilters?: boolean resultCount?: boolean } export type RecentSearchOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "tenantId" | "userId" | "queryText" | "appliedFilters" | "resultCount", ExtArgs["result"]["recentSearch"]> export type $RecentSearchPayload = { name: "RecentSearch" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date tenantId: string userId: string queryText: string appliedFilters: runtime.JsonValue resultCount: number }, ExtArgs["result"]["recentSearch"]> composites: {} } export type RecentSearchGetPayload = runtime.Types.Result.GetResult export type RecentSearchCountArgs = Omit & { select?: RecentSearchCountAggregateInputType | true } export interface RecentSearchDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['RecentSearch'], meta: { name: 'RecentSearch' } } /** * Find zero or one RecentSearch that matches the filter. * @param {RecentSearchFindUniqueArgs} args - Arguments to find a RecentSearch * @example * // Get one RecentSearch * const recentSearch = await prisma.recentSearch.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__RecentSearchClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one RecentSearch that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {RecentSearchFindUniqueOrThrowArgs} args - Arguments to find a RecentSearch * @example * // Get one RecentSearch * const recentSearch = await prisma.recentSearch.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__RecentSearchClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first RecentSearch 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 {RecentSearchFindFirstArgs} args - Arguments to find a RecentSearch * @example * // Get one RecentSearch * const recentSearch = await prisma.recentSearch.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__RecentSearchClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first RecentSearch 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 {RecentSearchFindFirstOrThrowArgs} args - Arguments to find a RecentSearch * @example * // Get one RecentSearch * const recentSearch = await prisma.recentSearch.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__RecentSearchClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more RecentSearches 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 {RecentSearchFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all RecentSearches * const recentSearches = await prisma.recentSearch.findMany() * * // Get first 10 RecentSearches * const recentSearches = await prisma.recentSearch.findMany({ take: 10 }) * * // Only select the `id` * const recentSearchWithIdOnly = await prisma.recentSearch.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a RecentSearch. * @param {RecentSearchCreateArgs} args - Arguments to create a RecentSearch. * @example * // Create one RecentSearch * const RecentSearch = await prisma.recentSearch.create({ * data: { * // ... data to create a RecentSearch * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__RecentSearchClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many RecentSearches. * @param {RecentSearchCreateManyArgs} args - Arguments to create many RecentSearches. * @example * // Create many RecentSearches * const recentSearch = await prisma.recentSearch.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many RecentSearches and returns the data saved in the database. * @param {RecentSearchCreateManyAndReturnArgs} args - Arguments to create many RecentSearches. * @example * // Create many RecentSearches * const recentSearch = await prisma.recentSearch.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many RecentSearches and only return the `id` * const recentSearchWithIdOnly = await prisma.recentSearch.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 RecentSearch. * @param {RecentSearchDeleteArgs} args - Arguments to delete one RecentSearch. * @example * // Delete one RecentSearch * const RecentSearch = await prisma.recentSearch.delete({ * where: { * // ... filter to delete one RecentSearch * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__RecentSearchClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one RecentSearch. * @param {RecentSearchUpdateArgs} args - Arguments to update one RecentSearch. * @example * // Update one RecentSearch * const recentSearch = await prisma.recentSearch.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__RecentSearchClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more RecentSearches. * @param {RecentSearchDeleteManyArgs} args - Arguments to filter RecentSearches to delete. * @example * // Delete a few RecentSearches * const { count } = await prisma.recentSearch.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more RecentSearches. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RecentSearchUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many RecentSearches * const recentSearch = await prisma.recentSearch.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more RecentSearches and returns the data updated in the database. * @param {RecentSearchUpdateManyAndReturnArgs} args - Arguments to update many RecentSearches. * @example * // Update many RecentSearches * const recentSearch = await prisma.recentSearch.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more RecentSearches and only return the `id` * const recentSearchWithIdOnly = await prisma.recentSearch.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 RecentSearch. * @param {RecentSearchUpsertArgs} args - Arguments to update or create a RecentSearch. * @example * // Update or create a RecentSearch * const recentSearch = await prisma.recentSearch.upsert({ * create: { * // ... data to create a RecentSearch * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the RecentSearch we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__RecentSearchClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of RecentSearches. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RecentSearchCountArgs} args - Arguments to filter RecentSearches to count. * @example * // Count the number of RecentSearches * const count = await prisma.recentSearch.count({ * where: { * // ... the filter for the RecentSearches 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 RecentSearch. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RecentSearchAggregateArgs} 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 RecentSearch. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RecentSearchGroupByArgs} 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 RecentSearchGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: RecentSearchGroupByArgs['orderBy'] } : { orderBy?: RecentSearchGroupByArgs['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 ? GetRecentSearchGroupByPayload : Prisma.PrismaPromise /** * Fields of the RecentSearch model */ readonly fields: RecentSearchFieldRefs; } /** * The delegate class that acts as a "Promise-like" for RecentSearch. * 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__RecentSearchClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * 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 RecentSearch model */ export interface RecentSearchFieldRefs { readonly id: Prisma.FieldRef<"RecentSearch", 'String'> readonly createdAt: Prisma.FieldRef<"RecentSearch", 'DateTime'> readonly tenantId: Prisma.FieldRef<"RecentSearch", 'String'> readonly userId: Prisma.FieldRef<"RecentSearch", 'String'> readonly queryText: Prisma.FieldRef<"RecentSearch", 'String'> readonly appliedFilters: Prisma.FieldRef<"RecentSearch", 'Json'> readonly resultCount: Prisma.FieldRef<"RecentSearch", 'Int'> } // Custom InputTypes /** * RecentSearch findUnique */ export type RecentSearchFindUniqueArgs = { /** * Select specific fields to fetch from the RecentSearch */ select?: Prisma.RecentSearchSelect | null /** * Omit specific fields from the RecentSearch */ omit?: Prisma.RecentSearchOmit | null /** * Filter, which RecentSearch to fetch. */ where: Prisma.RecentSearchWhereUniqueInput } /** * RecentSearch findUniqueOrThrow */ export type RecentSearchFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the RecentSearch */ select?: Prisma.RecentSearchSelect | null /** * Omit specific fields from the RecentSearch */ omit?: Prisma.RecentSearchOmit | null /** * Filter, which RecentSearch to fetch. */ where: Prisma.RecentSearchWhereUniqueInput } /** * RecentSearch findFirst */ export type RecentSearchFindFirstArgs = { /** * Select specific fields to fetch from the RecentSearch */ select?: Prisma.RecentSearchSelect | null /** * Omit specific fields from the RecentSearch */ omit?: Prisma.RecentSearchOmit | null /** * Filter, which RecentSearch to fetch. */ where?: Prisma.RecentSearchWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of RecentSearches to fetch. */ orderBy?: Prisma.RecentSearchOrderByWithRelationInput | Prisma.RecentSearchOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for RecentSearches. */ cursor?: Prisma.RecentSearchWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` RecentSearches 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` RecentSearches. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of RecentSearches. */ distinct?: Prisma.RecentSearchScalarFieldEnum | Prisma.RecentSearchScalarFieldEnum[] } /** * RecentSearch findFirstOrThrow */ export type RecentSearchFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the RecentSearch */ select?: Prisma.RecentSearchSelect | null /** * Omit specific fields from the RecentSearch */ omit?: Prisma.RecentSearchOmit | null /** * Filter, which RecentSearch to fetch. */ where?: Prisma.RecentSearchWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of RecentSearches to fetch. */ orderBy?: Prisma.RecentSearchOrderByWithRelationInput | Prisma.RecentSearchOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for RecentSearches. */ cursor?: Prisma.RecentSearchWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` RecentSearches 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` RecentSearches. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of RecentSearches. */ distinct?: Prisma.RecentSearchScalarFieldEnum | Prisma.RecentSearchScalarFieldEnum[] } /** * RecentSearch findMany */ export type RecentSearchFindManyArgs = { /** * Select specific fields to fetch from the RecentSearch */ select?: Prisma.RecentSearchSelect | null /** * Omit specific fields from the RecentSearch */ omit?: Prisma.RecentSearchOmit | null /** * Filter, which RecentSearches to fetch. */ where?: Prisma.RecentSearchWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of RecentSearches to fetch. */ orderBy?: Prisma.RecentSearchOrderByWithRelationInput | Prisma.RecentSearchOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing RecentSearches. */ cursor?: Prisma.RecentSearchWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` RecentSearches 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` RecentSearches. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of RecentSearches. */ distinct?: Prisma.RecentSearchScalarFieldEnum | Prisma.RecentSearchScalarFieldEnum[] } /** * RecentSearch create */ export type RecentSearchCreateArgs = { /** * Select specific fields to fetch from the RecentSearch */ select?: Prisma.RecentSearchSelect | null /** * Omit specific fields from the RecentSearch */ omit?: Prisma.RecentSearchOmit | null /** * The data needed to create a RecentSearch. */ data: Prisma.XOR } /** * RecentSearch createMany */ export type RecentSearchCreateManyArgs = { /** * The data used to create many RecentSearches. */ data: Prisma.RecentSearchCreateManyInput | Prisma.RecentSearchCreateManyInput[] skipDuplicates?: boolean } /** * RecentSearch createManyAndReturn */ export type RecentSearchCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the RecentSearch */ select?: Prisma.RecentSearchSelectCreateManyAndReturn | null /** * Omit specific fields from the RecentSearch */ omit?: Prisma.RecentSearchOmit | null /** * The data used to create many RecentSearches. */ data: Prisma.RecentSearchCreateManyInput | Prisma.RecentSearchCreateManyInput[] skipDuplicates?: boolean } /** * RecentSearch update */ export type RecentSearchUpdateArgs = { /** * Select specific fields to fetch from the RecentSearch */ select?: Prisma.RecentSearchSelect | null /** * Omit specific fields from the RecentSearch */ omit?: Prisma.RecentSearchOmit | null /** * The data needed to update a RecentSearch. */ data: Prisma.XOR /** * Choose, which RecentSearch to update. */ where: Prisma.RecentSearchWhereUniqueInput } /** * RecentSearch updateMany */ export type RecentSearchUpdateManyArgs = { /** * The data used to update RecentSearches. */ data: Prisma.XOR /** * Filter which RecentSearches to update */ where?: Prisma.RecentSearchWhereInput /** * Limit how many RecentSearches to update. */ limit?: number } /** * RecentSearch updateManyAndReturn */ export type RecentSearchUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the RecentSearch */ select?: Prisma.RecentSearchSelectUpdateManyAndReturn | null /** * Omit specific fields from the RecentSearch */ omit?: Prisma.RecentSearchOmit | null /** * The data used to update RecentSearches. */ data: Prisma.XOR /** * Filter which RecentSearches to update */ where?: Prisma.RecentSearchWhereInput /** * Limit how many RecentSearches to update. */ limit?: number } /** * RecentSearch upsert */ export type RecentSearchUpsertArgs = { /** * Select specific fields to fetch from the RecentSearch */ select?: Prisma.RecentSearchSelect | null /** * Omit specific fields from the RecentSearch */ omit?: Prisma.RecentSearchOmit | null /** * The filter to search for the RecentSearch to update in case it exists. */ where: Prisma.RecentSearchWhereUniqueInput /** * In case the RecentSearch found by the `where` argument doesn't exist, create a new RecentSearch with this data. */ create: Prisma.XOR /** * In case the RecentSearch was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * RecentSearch delete */ export type RecentSearchDeleteArgs = { /** * Select specific fields to fetch from the RecentSearch */ select?: Prisma.RecentSearchSelect | null /** * Omit specific fields from the RecentSearch */ omit?: Prisma.RecentSearchOmit | null /** * Filter which RecentSearch to delete. */ where: Prisma.RecentSearchWhereUniqueInput } /** * RecentSearch deleteMany */ export type RecentSearchDeleteManyArgs = { /** * Filter which RecentSearches to delete */ where?: Prisma.RecentSearchWhereInput /** * Limit how many RecentSearches to delete. */ limit?: number } /** * RecentSearch without action */ export type RecentSearchDefaultArgs = { /** * Select specific fields to fetch from the RecentSearch */ select?: Prisma.RecentSearchSelect | null /** * Omit specific fields from the RecentSearch */ omit?: Prisma.RecentSearchOmit | null }