1244 lines
44 KiB
TypeScript
1244 lines
44 KiB
TypeScript
|
|
/* !!! 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<Prisma.$RecentSearchPayload>
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends RecentSearchAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateRecentSearch]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateRecentSearch[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateRecentSearch[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type RecentSearchGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
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<T extends RecentSearchGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<RecentSearchGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof RecentSearchGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], RecentSearchGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], RecentSearchGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
tenantId?: boolean
|
|
userId?: boolean
|
|
queryText?: boolean
|
|
appliedFilters?: boolean
|
|
resultCount?: boolean
|
|
}, ExtArgs["result"]["recentSearch"]>
|
|
|
|
export type RecentSearchSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
tenantId?: boolean
|
|
userId?: boolean
|
|
queryText?: boolean
|
|
appliedFilters?: boolean
|
|
resultCount?: boolean
|
|
}, ExtArgs["result"]["recentSearch"]>
|
|
|
|
export type RecentSearchSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "tenantId" | "userId" | "queryText" | "appliedFilters" | "resultCount", ExtArgs["result"]["recentSearch"]>
|
|
|
|
export type $RecentSearchPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
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<S extends boolean | null | undefined | RecentSearchDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RecentSearchPayload, S>
|
|
|
|
export type RecentSearchCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<RecentSearchFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: RecentSearchCountAggregateInputType | true
|
|
}
|
|
|
|
export interface RecentSearchDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends RecentSearchFindUniqueArgs>(args: Prisma.SelectSubset<T, RecentSearchFindUniqueArgs<ExtArgs>>): Prisma.Prisma__RecentSearchClient<runtime.Types.Result.GetResult<Prisma.$RecentSearchPayload<ExtArgs>, 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<T extends RecentSearchFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, RecentSearchFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__RecentSearchClient<runtime.Types.Result.GetResult<Prisma.$RecentSearchPayload<ExtArgs>, 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<T extends RecentSearchFindFirstArgs>(args?: Prisma.SelectSubset<T, RecentSearchFindFirstArgs<ExtArgs>>): Prisma.Prisma__RecentSearchClient<runtime.Types.Result.GetResult<Prisma.$RecentSearchPayload<ExtArgs>, 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<T extends RecentSearchFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, RecentSearchFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__RecentSearchClient<runtime.Types.Result.GetResult<Prisma.$RecentSearchPayload<ExtArgs>, 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<T extends RecentSearchFindManyArgs>(args?: Prisma.SelectSubset<T, RecentSearchFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RecentSearchPayload<ExtArgs>, 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<T extends RecentSearchCreateArgs>(args: Prisma.SelectSubset<T, RecentSearchCreateArgs<ExtArgs>>): Prisma.Prisma__RecentSearchClient<runtime.Types.Result.GetResult<Prisma.$RecentSearchPayload<ExtArgs>, 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<T extends RecentSearchCreateManyArgs>(args?: Prisma.SelectSubset<T, RecentSearchCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends RecentSearchCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RecentSearchCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RecentSearchPayload<ExtArgs>, 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<T extends RecentSearchDeleteArgs>(args: Prisma.SelectSubset<T, RecentSearchDeleteArgs<ExtArgs>>): Prisma.Prisma__RecentSearchClient<runtime.Types.Result.GetResult<Prisma.$RecentSearchPayload<ExtArgs>, 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<T extends RecentSearchUpdateArgs>(args: Prisma.SelectSubset<T, RecentSearchUpdateArgs<ExtArgs>>): Prisma.Prisma__RecentSearchClient<runtime.Types.Result.GetResult<Prisma.$RecentSearchPayload<ExtArgs>, 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<T extends RecentSearchDeleteManyArgs>(args?: Prisma.SelectSubset<T, RecentSearchDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends RecentSearchUpdateManyArgs>(args: Prisma.SelectSubset<T, RecentSearchUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends RecentSearchUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RecentSearchUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RecentSearchPayload<ExtArgs>, 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<T extends RecentSearchUpsertArgs>(args: Prisma.SelectSubset<T, RecentSearchUpsertArgs<ExtArgs>>): Prisma.Prisma__RecentSearchClient<runtime.Types.Result.GetResult<Prisma.$RecentSearchPayload<ExtArgs>, 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<T extends RecentSearchCountArgs>(
|
|
args?: Prisma.Subset<T, RecentSearchCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], RecentSearchCountAggregateOutputType>
|
|
: 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<T extends RecentSearchAggregateArgs>(args: Prisma.Subset<T, RecentSearchAggregateArgs>): Prisma.PrismaPromise<GetRecentSearchAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: RecentSearchGroupByArgs['orderBy'] }
|
|
: { orderBy?: RecentSearchGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
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<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? 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<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? 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<T, RecentSearchGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRecentSearchGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* 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<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentSearch
|
|
*/
|
|
select?: Prisma.RecentSearchSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentSearch
|
|
*/
|
|
omit?: Prisma.RecentSearchOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which RecentSearch to fetch.
|
|
*/
|
|
where: Prisma.RecentSearchWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* RecentSearch findUniqueOrThrow
|
|
*/
|
|
export type RecentSearchFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentSearch
|
|
*/
|
|
select?: Prisma.RecentSearchSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentSearch
|
|
*/
|
|
omit?: Prisma.RecentSearchOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which RecentSearch to fetch.
|
|
*/
|
|
where: Prisma.RecentSearchWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* RecentSearch findFirst
|
|
*/
|
|
export type RecentSearchFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentSearch
|
|
*/
|
|
select?: Prisma.RecentSearchSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentSearch
|
|
*/
|
|
omit?: Prisma.RecentSearchOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentSearch
|
|
*/
|
|
select?: Prisma.RecentSearchSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentSearch
|
|
*/
|
|
omit?: Prisma.RecentSearchOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentSearch
|
|
*/
|
|
select?: Prisma.RecentSearchSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentSearch
|
|
*/
|
|
omit?: Prisma.RecentSearchOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentSearch
|
|
*/
|
|
select?: Prisma.RecentSearchSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentSearch
|
|
*/
|
|
omit?: Prisma.RecentSearchOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a RecentSearch.
|
|
*/
|
|
data: Prisma.XOR<Prisma.RecentSearchCreateInput, Prisma.RecentSearchUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* RecentSearch createMany
|
|
*/
|
|
export type RecentSearchCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many RecentSearches.
|
|
*/
|
|
data: Prisma.RecentSearchCreateManyInput | Prisma.RecentSearchCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* RecentSearch createManyAndReturn
|
|
*/
|
|
export type RecentSearchCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentSearch
|
|
*/
|
|
select?: Prisma.RecentSearchSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentSearch
|
|
*/
|
|
omit?: Prisma.RecentSearchOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many RecentSearches.
|
|
*/
|
|
data: Prisma.RecentSearchCreateManyInput | Prisma.RecentSearchCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* RecentSearch update
|
|
*/
|
|
export type RecentSearchUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentSearch
|
|
*/
|
|
select?: Prisma.RecentSearchSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentSearch
|
|
*/
|
|
omit?: Prisma.RecentSearchOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a RecentSearch.
|
|
*/
|
|
data: Prisma.XOR<Prisma.RecentSearchUpdateInput, Prisma.RecentSearchUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which RecentSearch to update.
|
|
*/
|
|
where: Prisma.RecentSearchWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* RecentSearch updateMany
|
|
*/
|
|
export type RecentSearchUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update RecentSearches.
|
|
*/
|
|
data: Prisma.XOR<Prisma.RecentSearchUpdateManyMutationInput, Prisma.RecentSearchUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which RecentSearches to update
|
|
*/
|
|
where?: Prisma.RecentSearchWhereInput
|
|
/**
|
|
* Limit how many RecentSearches to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* RecentSearch updateManyAndReturn
|
|
*/
|
|
export type RecentSearchUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentSearch
|
|
*/
|
|
select?: Prisma.RecentSearchSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentSearch
|
|
*/
|
|
omit?: Prisma.RecentSearchOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update RecentSearches.
|
|
*/
|
|
data: Prisma.XOR<Prisma.RecentSearchUpdateManyMutationInput, Prisma.RecentSearchUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which RecentSearches to update
|
|
*/
|
|
where?: Prisma.RecentSearchWhereInput
|
|
/**
|
|
* Limit how many RecentSearches to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* RecentSearch upsert
|
|
*/
|
|
export type RecentSearchUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentSearch
|
|
*/
|
|
select?: Prisma.RecentSearchSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentSearch
|
|
*/
|
|
omit?: Prisma.RecentSearchOmit<ExtArgs> | 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<Prisma.RecentSearchCreateInput, Prisma.RecentSearchUncheckedCreateInput>
|
|
/**
|
|
* In case the RecentSearch was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.RecentSearchUpdateInput, Prisma.RecentSearchUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* RecentSearch delete
|
|
*/
|
|
export type RecentSearchDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentSearch
|
|
*/
|
|
select?: Prisma.RecentSearchSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentSearch
|
|
*/
|
|
omit?: Prisma.RecentSearchOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which RecentSearch to delete.
|
|
*/
|
|
where: Prisma.RecentSearchWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* RecentSearch deleteMany
|
|
*/
|
|
export type RecentSearchDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which RecentSearches to delete
|
|
*/
|
|
where?: Prisma.RecentSearchWhereInput
|
|
/**
|
|
* Limit how many RecentSearches to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* RecentSearch without action
|
|
*/
|
|
export type RecentSearchDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecentSearch
|
|
*/
|
|
select?: Prisma.RecentSearchSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecentSearch
|
|
*/
|
|
omit?: Prisma.RecentSearchOmit<ExtArgs> | null
|
|
}
|