/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `ScraperCache` 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 ScraperCache * */ export type ScraperCacheModel = runtime.Types.Result.DefaultSelection export type AggregateScraperCache = { _count: ScraperCacheCountAggregateOutputType | null _avg: ScraperCacheAvgAggregateOutputType | null _sum: ScraperCacheSumAggregateOutputType | null _min: ScraperCacheMinAggregateOutputType | null _max: ScraperCacheMaxAggregateOutputType | null } export type ScraperCacheAvgAggregateOutputType = { id: number | null } export type ScraperCacheSumAggregateOutputType = { id: number | null } export type ScraperCacheMinAggregateOutputType = { id: number | null scraperName: string | null lastDataHash: string | null lastUpdateAt: Date | null createdAt: Date | null updatedAt: Date | null } export type ScraperCacheMaxAggregateOutputType = { id: number | null scraperName: string | null lastDataHash: string | null lastUpdateAt: Date | null createdAt: Date | null updatedAt: Date | null } export type ScraperCacheCountAggregateOutputType = { id: number scraperName: number lastDataHash: number lastUpdateAt: number metadata: number createdAt: number updatedAt: number _all: number } export type ScraperCacheAvgAggregateInputType = { id?: true } export type ScraperCacheSumAggregateInputType = { id?: true } export type ScraperCacheMinAggregateInputType = { id?: true scraperName?: true lastDataHash?: true lastUpdateAt?: true createdAt?: true updatedAt?: true } export type ScraperCacheMaxAggregateInputType = { id?: true scraperName?: true lastDataHash?: true lastUpdateAt?: true createdAt?: true updatedAt?: true } export type ScraperCacheCountAggregateInputType = { id?: true scraperName?: true lastDataHash?: true lastUpdateAt?: true metadata?: true createdAt?: true updatedAt?: true _all?: true } export type ScraperCacheAggregateArgs = { /** * Filter which ScraperCache to aggregate. */ where?: Prisma.ScraperCacheWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ScraperCaches to fetch. */ orderBy?: Prisma.ScraperCacheOrderByWithRelationInput | Prisma.ScraperCacheOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ScraperCacheWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ScraperCaches 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` ScraperCaches. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ScraperCaches **/ _count?: true | ScraperCacheCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ScraperCacheAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ScraperCacheSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ScraperCacheMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ScraperCacheMaxAggregateInputType } export type GetScraperCacheAggregateType = { [P in keyof T & keyof AggregateScraperCache]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ScraperCacheGroupByArgs = { where?: Prisma.ScraperCacheWhereInput orderBy?: Prisma.ScraperCacheOrderByWithAggregationInput | Prisma.ScraperCacheOrderByWithAggregationInput[] by: Prisma.ScraperCacheScalarFieldEnum[] | Prisma.ScraperCacheScalarFieldEnum having?: Prisma.ScraperCacheScalarWhereWithAggregatesInput take?: number skip?: number _count?: ScraperCacheCountAggregateInputType | true _avg?: ScraperCacheAvgAggregateInputType _sum?: ScraperCacheSumAggregateInputType _min?: ScraperCacheMinAggregateInputType _max?: ScraperCacheMaxAggregateInputType } export type ScraperCacheGroupByOutputType = { id: number scraperName: string lastDataHash: string | null lastUpdateAt: Date metadata: runtime.JsonValue | null createdAt: Date updatedAt: Date _count: ScraperCacheCountAggregateOutputType | null _avg: ScraperCacheAvgAggregateOutputType | null _sum: ScraperCacheSumAggregateOutputType | null _min: ScraperCacheMinAggregateOutputType | null _max: ScraperCacheMaxAggregateOutputType | null } export type GetScraperCacheGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ScraperCacheGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ScraperCacheWhereInput = { AND?: Prisma.ScraperCacheWhereInput | Prisma.ScraperCacheWhereInput[] OR?: Prisma.ScraperCacheWhereInput[] NOT?: Prisma.ScraperCacheWhereInput | Prisma.ScraperCacheWhereInput[] id?: Prisma.IntFilter<"ScraperCache"> | number scraperName?: Prisma.StringFilter<"ScraperCache"> | string lastDataHash?: Prisma.StringNullableFilter<"ScraperCache"> | string | null lastUpdateAt?: Prisma.DateTimeFilter<"ScraperCache"> | Date | string metadata?: Prisma.JsonNullableFilter<"ScraperCache"> createdAt?: Prisma.DateTimeFilter<"ScraperCache"> | Date | string updatedAt?: Prisma.DateTimeFilter<"ScraperCache"> | Date | string } export type ScraperCacheOrderByWithRelationInput = { id?: Prisma.SortOrder scraperName?: Prisma.SortOrder lastDataHash?: Prisma.SortOrderInput | Prisma.SortOrder lastUpdateAt?: Prisma.SortOrder metadata?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _relevance?: Prisma.ScraperCacheOrderByRelevanceInput } export type ScraperCacheWhereUniqueInput = Prisma.AtLeast<{ id?: number scraperName?: string AND?: Prisma.ScraperCacheWhereInput | Prisma.ScraperCacheWhereInput[] OR?: Prisma.ScraperCacheWhereInput[] NOT?: Prisma.ScraperCacheWhereInput | Prisma.ScraperCacheWhereInput[] lastDataHash?: Prisma.StringNullableFilter<"ScraperCache"> | string | null lastUpdateAt?: Prisma.DateTimeFilter<"ScraperCache"> | Date | string metadata?: Prisma.JsonNullableFilter<"ScraperCache"> createdAt?: Prisma.DateTimeFilter<"ScraperCache"> | Date | string updatedAt?: Prisma.DateTimeFilter<"ScraperCache"> | Date | string }, "id" | "scraperName"> export type ScraperCacheOrderByWithAggregationInput = { id?: Prisma.SortOrder scraperName?: Prisma.SortOrder lastDataHash?: Prisma.SortOrderInput | Prisma.SortOrder lastUpdateAt?: Prisma.SortOrder metadata?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.ScraperCacheCountOrderByAggregateInput _avg?: Prisma.ScraperCacheAvgOrderByAggregateInput _max?: Prisma.ScraperCacheMaxOrderByAggregateInput _min?: Prisma.ScraperCacheMinOrderByAggregateInput _sum?: Prisma.ScraperCacheSumOrderByAggregateInput } export type ScraperCacheScalarWhereWithAggregatesInput = { AND?: Prisma.ScraperCacheScalarWhereWithAggregatesInput | Prisma.ScraperCacheScalarWhereWithAggregatesInput[] OR?: Prisma.ScraperCacheScalarWhereWithAggregatesInput[] NOT?: Prisma.ScraperCacheScalarWhereWithAggregatesInput | Prisma.ScraperCacheScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"ScraperCache"> | number scraperName?: Prisma.StringWithAggregatesFilter<"ScraperCache"> | string lastDataHash?: Prisma.StringNullableWithAggregatesFilter<"ScraperCache"> | string | null lastUpdateAt?: Prisma.DateTimeWithAggregatesFilter<"ScraperCache"> | Date | string metadata?: Prisma.JsonNullableWithAggregatesFilter<"ScraperCache"> createdAt?: Prisma.DateTimeWithAggregatesFilter<"ScraperCache"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ScraperCache"> | Date | string } export type ScraperCacheCreateInput = { scraperName: string lastDataHash?: string | null lastUpdateAt: Date | string metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type ScraperCacheUncheckedCreateInput = { id?: number scraperName: string lastDataHash?: string | null lastUpdateAt: Date | string metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type ScraperCacheUpdateInput = { scraperName?: Prisma.StringFieldUpdateOperationsInput | string lastDataHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastUpdateAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ScraperCacheUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number scraperName?: Prisma.StringFieldUpdateOperationsInput | string lastDataHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastUpdateAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ScraperCacheCreateManyInput = { id?: number scraperName: string lastDataHash?: string | null lastUpdateAt: Date | string metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type ScraperCacheUpdateManyMutationInput = { scraperName?: Prisma.StringFieldUpdateOperationsInput | string lastDataHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastUpdateAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ScraperCacheUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number scraperName?: Prisma.StringFieldUpdateOperationsInput | string lastDataHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastUpdateAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ScraperCacheOrderByRelevanceInput = { fields: Prisma.ScraperCacheOrderByRelevanceFieldEnum | Prisma.ScraperCacheOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type ScraperCacheCountOrderByAggregateInput = { id?: Prisma.SortOrder scraperName?: Prisma.SortOrder lastDataHash?: Prisma.SortOrder lastUpdateAt?: Prisma.SortOrder metadata?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type ScraperCacheAvgOrderByAggregateInput = { id?: Prisma.SortOrder } export type ScraperCacheMaxOrderByAggregateInput = { id?: Prisma.SortOrder scraperName?: Prisma.SortOrder lastDataHash?: Prisma.SortOrder lastUpdateAt?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type ScraperCacheMinOrderByAggregateInput = { id?: Prisma.SortOrder scraperName?: Prisma.SortOrder lastDataHash?: Prisma.SortOrder lastUpdateAt?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type ScraperCacheSumOrderByAggregateInput = { id?: Prisma.SortOrder } export type ScraperCacheSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean scraperName?: boolean lastDataHash?: boolean lastUpdateAt?: boolean metadata?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["scraperCache"]> export type ScraperCacheSelectScalar = { id?: boolean scraperName?: boolean lastDataHash?: boolean lastUpdateAt?: boolean metadata?: boolean createdAt?: boolean updatedAt?: boolean } export type ScraperCacheOmit = runtime.Types.Extensions.GetOmit<"id" | "scraperName" | "lastDataHash" | "lastUpdateAt" | "metadata" | "createdAt" | "updatedAt", ExtArgs["result"]["scraperCache"]> export type $ScraperCachePayload = { name: "ScraperCache" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number scraperName: string lastDataHash: string | null lastUpdateAt: Date metadata: runtime.JsonValue | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["scraperCache"]> composites: {} } export type ScraperCacheGetPayload = runtime.Types.Result.GetResult export type ScraperCacheCountArgs = Omit & { select?: ScraperCacheCountAggregateInputType | true } export interface ScraperCacheDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ScraperCache'], meta: { name: 'ScraperCache' } } /** * Find zero or one ScraperCache that matches the filter. * @param {ScraperCacheFindUniqueArgs} args - Arguments to find a ScraperCache * @example * // Get one ScraperCache * const scraperCache = await prisma.scraperCache.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ScraperCacheClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ScraperCache that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ScraperCacheFindUniqueOrThrowArgs} args - Arguments to find a ScraperCache * @example * // Get one ScraperCache * const scraperCache = await prisma.scraperCache.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ScraperCacheClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ScraperCache 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 {ScraperCacheFindFirstArgs} args - Arguments to find a ScraperCache * @example * // Get one ScraperCache * const scraperCache = await prisma.scraperCache.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ScraperCacheClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ScraperCache 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 {ScraperCacheFindFirstOrThrowArgs} args - Arguments to find a ScraperCache * @example * // Get one ScraperCache * const scraperCache = await prisma.scraperCache.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ScraperCacheClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ScraperCaches 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 {ScraperCacheFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ScraperCaches * const scraperCaches = await prisma.scraperCache.findMany() * * // Get first 10 ScraperCaches * const scraperCaches = await prisma.scraperCache.findMany({ take: 10 }) * * // Only select the `id` * const scraperCacheWithIdOnly = await prisma.scraperCache.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a ScraperCache. * @param {ScraperCacheCreateArgs} args - Arguments to create a ScraperCache. * @example * // Create one ScraperCache * const ScraperCache = await prisma.scraperCache.create({ * data: { * // ... data to create a ScraperCache * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ScraperCacheClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ScraperCaches. * @param {ScraperCacheCreateManyArgs} args - Arguments to create many ScraperCaches. * @example * // Create many ScraperCaches * const scraperCache = await prisma.scraperCache.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a ScraperCache. * @param {ScraperCacheDeleteArgs} args - Arguments to delete one ScraperCache. * @example * // Delete one ScraperCache * const ScraperCache = await prisma.scraperCache.delete({ * where: { * // ... filter to delete one ScraperCache * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ScraperCacheClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ScraperCache. * @param {ScraperCacheUpdateArgs} args - Arguments to update one ScraperCache. * @example * // Update one ScraperCache * const scraperCache = await prisma.scraperCache.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ScraperCacheClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ScraperCaches. * @param {ScraperCacheDeleteManyArgs} args - Arguments to filter ScraperCaches to delete. * @example * // Delete a few ScraperCaches * const { count } = await prisma.scraperCache.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ScraperCaches. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ScraperCacheUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ScraperCaches * const scraperCache = await prisma.scraperCache.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one ScraperCache. * @param {ScraperCacheUpsertArgs} args - Arguments to update or create a ScraperCache. * @example * // Update or create a ScraperCache * const scraperCache = await prisma.scraperCache.upsert({ * create: { * // ... data to create a ScraperCache * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ScraperCache we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ScraperCacheClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ScraperCaches. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ScraperCacheCountArgs} args - Arguments to filter ScraperCaches to count. * @example * // Count the number of ScraperCaches * const count = await prisma.scraperCache.count({ * where: { * // ... the filter for the ScraperCaches 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 ScraperCache. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ScraperCacheAggregateArgs} 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 ScraperCache. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ScraperCacheGroupByArgs} 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 ScraperCacheGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ScraperCacheGroupByArgs['orderBy'] } : { orderBy?: ScraperCacheGroupByArgs['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 ? GetScraperCacheGroupByPayload : Prisma.PrismaPromise /** * Fields of the ScraperCache model */ readonly fields: ScraperCacheFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ScraperCache. * 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__ScraperCacheClient 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 ScraperCache model */ export interface ScraperCacheFieldRefs { readonly id: Prisma.FieldRef<"ScraperCache", 'Int'> readonly scraperName: Prisma.FieldRef<"ScraperCache", 'String'> readonly lastDataHash: Prisma.FieldRef<"ScraperCache", 'String'> readonly lastUpdateAt: Prisma.FieldRef<"ScraperCache", 'DateTime'> readonly metadata: Prisma.FieldRef<"ScraperCache", 'Json'> readonly createdAt: Prisma.FieldRef<"ScraperCache", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"ScraperCache", 'DateTime'> } // Custom InputTypes /** * ScraperCache findUnique */ export type ScraperCacheFindUniqueArgs = { /** * Select specific fields to fetch from the ScraperCache */ select?: Prisma.ScraperCacheSelect | null /** * Omit specific fields from the ScraperCache */ omit?: Prisma.ScraperCacheOmit | null /** * Filter, which ScraperCache to fetch. */ where: Prisma.ScraperCacheWhereUniqueInput } /** * ScraperCache findUniqueOrThrow */ export type ScraperCacheFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ScraperCache */ select?: Prisma.ScraperCacheSelect | null /** * Omit specific fields from the ScraperCache */ omit?: Prisma.ScraperCacheOmit | null /** * Filter, which ScraperCache to fetch. */ where: Prisma.ScraperCacheWhereUniqueInput } /** * ScraperCache findFirst */ export type ScraperCacheFindFirstArgs = { /** * Select specific fields to fetch from the ScraperCache */ select?: Prisma.ScraperCacheSelect | null /** * Omit specific fields from the ScraperCache */ omit?: Prisma.ScraperCacheOmit | null /** * Filter, which ScraperCache to fetch. */ where?: Prisma.ScraperCacheWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ScraperCaches to fetch. */ orderBy?: Prisma.ScraperCacheOrderByWithRelationInput | Prisma.ScraperCacheOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ScraperCaches. */ cursor?: Prisma.ScraperCacheWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ScraperCaches 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` ScraperCaches. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ScraperCaches. */ distinct?: Prisma.ScraperCacheScalarFieldEnum | Prisma.ScraperCacheScalarFieldEnum[] } /** * ScraperCache findFirstOrThrow */ export type ScraperCacheFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ScraperCache */ select?: Prisma.ScraperCacheSelect | null /** * Omit specific fields from the ScraperCache */ omit?: Prisma.ScraperCacheOmit | null /** * Filter, which ScraperCache to fetch. */ where?: Prisma.ScraperCacheWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ScraperCaches to fetch. */ orderBy?: Prisma.ScraperCacheOrderByWithRelationInput | Prisma.ScraperCacheOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ScraperCaches. */ cursor?: Prisma.ScraperCacheWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ScraperCaches 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` ScraperCaches. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ScraperCaches. */ distinct?: Prisma.ScraperCacheScalarFieldEnum | Prisma.ScraperCacheScalarFieldEnum[] } /** * ScraperCache findMany */ export type ScraperCacheFindManyArgs = { /** * Select specific fields to fetch from the ScraperCache */ select?: Prisma.ScraperCacheSelect | null /** * Omit specific fields from the ScraperCache */ omit?: Prisma.ScraperCacheOmit | null /** * Filter, which ScraperCaches to fetch. */ where?: Prisma.ScraperCacheWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ScraperCaches to fetch. */ orderBy?: Prisma.ScraperCacheOrderByWithRelationInput | Prisma.ScraperCacheOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ScraperCaches. */ cursor?: Prisma.ScraperCacheWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ScraperCaches 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` ScraperCaches. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ScraperCaches. */ distinct?: Prisma.ScraperCacheScalarFieldEnum | Prisma.ScraperCacheScalarFieldEnum[] } /** * ScraperCache create */ export type ScraperCacheCreateArgs = { /** * Select specific fields to fetch from the ScraperCache */ select?: Prisma.ScraperCacheSelect | null /** * Omit specific fields from the ScraperCache */ omit?: Prisma.ScraperCacheOmit | null /** * The data needed to create a ScraperCache. */ data: Prisma.XOR } /** * ScraperCache createMany */ export type ScraperCacheCreateManyArgs = { /** * The data used to create many ScraperCaches. */ data: Prisma.ScraperCacheCreateManyInput | Prisma.ScraperCacheCreateManyInput[] skipDuplicates?: boolean } /** * ScraperCache update */ export type ScraperCacheUpdateArgs = { /** * Select specific fields to fetch from the ScraperCache */ select?: Prisma.ScraperCacheSelect | null /** * Omit specific fields from the ScraperCache */ omit?: Prisma.ScraperCacheOmit | null /** * The data needed to update a ScraperCache. */ data: Prisma.XOR /** * Choose, which ScraperCache to update. */ where: Prisma.ScraperCacheWhereUniqueInput } /** * ScraperCache updateMany */ export type ScraperCacheUpdateManyArgs = { /** * The data used to update ScraperCaches. */ data: Prisma.XOR /** * Filter which ScraperCaches to update */ where?: Prisma.ScraperCacheWhereInput /** * Limit how many ScraperCaches to update. */ limit?: number } /** * ScraperCache upsert */ export type ScraperCacheUpsertArgs = { /** * Select specific fields to fetch from the ScraperCache */ select?: Prisma.ScraperCacheSelect | null /** * Omit specific fields from the ScraperCache */ omit?: Prisma.ScraperCacheOmit | null /** * The filter to search for the ScraperCache to update in case it exists. */ where: Prisma.ScraperCacheWhereUniqueInput /** * In case the ScraperCache found by the `where` argument doesn't exist, create a new ScraperCache with this data. */ create: Prisma.XOR /** * In case the ScraperCache was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * ScraperCache delete */ export type ScraperCacheDeleteArgs = { /** * Select specific fields to fetch from the ScraperCache */ select?: Prisma.ScraperCacheSelect | null /** * Omit specific fields from the ScraperCache */ omit?: Prisma.ScraperCacheOmit | null /** * Filter which ScraperCache to delete. */ where: Prisma.ScraperCacheWhereUniqueInput } /** * ScraperCache deleteMany */ export type ScraperCacheDeleteManyArgs = { /** * Filter which ScraperCaches to delete */ where?: Prisma.ScraperCacheWhereInput /** * Limit how many ScraperCaches to delete. */ limit?: number } /** * ScraperCache without action */ export type ScraperCacheDefaultArgs = { /** * Select specific fields to fetch from the ScraperCache */ select?: Prisma.ScraperCacheSelect | null /** * Omit specific fields from the ScraperCache */ omit?: Prisma.ScraperCacheOmit | null }