/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `OilPriceHistory` 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 OilPriceHistory * */ export type OilPriceHistoryModel = runtime.Types.Result.DefaultSelection export type AggregateOilPriceHistory = { _count: OilPriceHistoryCountAggregateOutputType | null _avg: OilPriceHistoryAvgAggregateOutputType | null _sum: OilPriceHistorySumAggregateOutputType | null _min: OilPriceHistoryMinAggregateOutputType | null _max: OilPriceHistoryMaxAggregateOutputType | null } export type OilPriceHistoryAvgAggregateOutputType = { id: number | null price: number | null } export type OilPriceHistorySumAggregateOutputType = { id: number | null price: number | null } export type OilPriceHistoryMinAggregateOutputType = { id: number | null date: Date | null province: string | null fuel: string | null price: number | null source: string | null createdAt: Date | null } export type OilPriceHistoryMaxAggregateOutputType = { id: number | null date: Date | null province: string | null fuel: string | null price: number | null source: string | null createdAt: Date | null } export type OilPriceHistoryCountAggregateOutputType = { id: number date: number province: number fuel: number price: number source: number createdAt: number _all: number } export type OilPriceHistoryAvgAggregateInputType = { id?: true price?: true } export type OilPriceHistorySumAggregateInputType = { id?: true price?: true } export type OilPriceHistoryMinAggregateInputType = { id?: true date?: true province?: true fuel?: true price?: true source?: true createdAt?: true } export type OilPriceHistoryMaxAggregateInputType = { id?: true date?: true province?: true fuel?: true price?: true source?: true createdAt?: true } export type OilPriceHistoryCountAggregateInputType = { id?: true date?: true province?: true fuel?: true price?: true source?: true createdAt?: true _all?: true } export type OilPriceHistoryAggregateArgs = { /** * Filter which OilPriceHistory to aggregate. */ where?: Prisma.OilPriceHistoryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OilPriceHistories to fetch. */ orderBy?: Prisma.OilPriceHistoryOrderByWithRelationInput | Prisma.OilPriceHistoryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.OilPriceHistoryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OilPriceHistories 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` OilPriceHistories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned OilPriceHistories **/ _count?: true | OilPriceHistoryCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: OilPriceHistoryAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: OilPriceHistorySumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: OilPriceHistoryMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: OilPriceHistoryMaxAggregateInputType } export type GetOilPriceHistoryAggregateType = { [P in keyof T & keyof AggregateOilPriceHistory]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type OilPriceHistoryGroupByArgs = { where?: Prisma.OilPriceHistoryWhereInput orderBy?: Prisma.OilPriceHistoryOrderByWithAggregationInput | Prisma.OilPriceHistoryOrderByWithAggregationInput[] by: Prisma.OilPriceHistoryScalarFieldEnum[] | Prisma.OilPriceHistoryScalarFieldEnum having?: Prisma.OilPriceHistoryScalarWhereWithAggregatesInput take?: number skip?: number _count?: OilPriceHistoryCountAggregateInputType | true _avg?: OilPriceHistoryAvgAggregateInputType _sum?: OilPriceHistorySumAggregateInputType _min?: OilPriceHistoryMinAggregateInputType _max?: OilPriceHistoryMaxAggregateInputType } export type OilPriceHistoryGroupByOutputType = { id: number date: Date province: string fuel: string price: number source: string createdAt: Date _count: OilPriceHistoryCountAggregateOutputType | null _avg: OilPriceHistoryAvgAggregateOutputType | null _sum: OilPriceHistorySumAggregateOutputType | null _min: OilPriceHistoryMinAggregateOutputType | null _max: OilPriceHistoryMaxAggregateOutputType | null } export type GetOilPriceHistoryGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof OilPriceHistoryGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type OilPriceHistoryWhereInput = { AND?: Prisma.OilPriceHistoryWhereInput | Prisma.OilPriceHistoryWhereInput[] OR?: Prisma.OilPriceHistoryWhereInput[] NOT?: Prisma.OilPriceHistoryWhereInput | Prisma.OilPriceHistoryWhereInput[] id?: Prisma.IntFilter<"OilPriceHistory"> | number date?: Prisma.DateTimeFilter<"OilPriceHistory"> | Date | string province?: Prisma.StringFilter<"OilPriceHistory"> | string fuel?: Prisma.StringFilter<"OilPriceHistory"> | string price?: Prisma.FloatFilter<"OilPriceHistory"> | number source?: Prisma.StringFilter<"OilPriceHistory"> | string createdAt?: Prisma.DateTimeFilter<"OilPriceHistory"> | Date | string } export type OilPriceHistoryOrderByWithRelationInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder province?: Prisma.SortOrder fuel?: Prisma.SortOrder price?: Prisma.SortOrder source?: Prisma.SortOrder createdAt?: Prisma.SortOrder _relevance?: Prisma.OilPriceHistoryOrderByRelevanceInput } export type OilPriceHistoryWhereUniqueInput = Prisma.AtLeast<{ id?: number date_province_fuel?: Prisma.OilPriceHistoryDateProvinceFuelCompoundUniqueInput AND?: Prisma.OilPriceHistoryWhereInput | Prisma.OilPriceHistoryWhereInput[] OR?: Prisma.OilPriceHistoryWhereInput[] NOT?: Prisma.OilPriceHistoryWhereInput | Prisma.OilPriceHistoryWhereInput[] date?: Prisma.DateTimeFilter<"OilPriceHistory"> | Date | string province?: Prisma.StringFilter<"OilPriceHistory"> | string fuel?: Prisma.StringFilter<"OilPriceHistory"> | string price?: Prisma.FloatFilter<"OilPriceHistory"> | number source?: Prisma.StringFilter<"OilPriceHistory"> | string createdAt?: Prisma.DateTimeFilter<"OilPriceHistory"> | Date | string }, "id" | "date_province_fuel"> export type OilPriceHistoryOrderByWithAggregationInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder province?: Prisma.SortOrder fuel?: Prisma.SortOrder price?: Prisma.SortOrder source?: Prisma.SortOrder createdAt?: Prisma.SortOrder _count?: Prisma.OilPriceHistoryCountOrderByAggregateInput _avg?: Prisma.OilPriceHistoryAvgOrderByAggregateInput _max?: Prisma.OilPriceHistoryMaxOrderByAggregateInput _min?: Prisma.OilPriceHistoryMinOrderByAggregateInput _sum?: Prisma.OilPriceHistorySumOrderByAggregateInput } export type OilPriceHistoryScalarWhereWithAggregatesInput = { AND?: Prisma.OilPriceHistoryScalarWhereWithAggregatesInput | Prisma.OilPriceHistoryScalarWhereWithAggregatesInput[] OR?: Prisma.OilPriceHistoryScalarWhereWithAggregatesInput[] NOT?: Prisma.OilPriceHistoryScalarWhereWithAggregatesInput | Prisma.OilPriceHistoryScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"OilPriceHistory"> | number date?: Prisma.DateTimeWithAggregatesFilter<"OilPriceHistory"> | Date | string province?: Prisma.StringWithAggregatesFilter<"OilPriceHistory"> | string fuel?: Prisma.StringWithAggregatesFilter<"OilPriceHistory"> | string price?: Prisma.FloatWithAggregatesFilter<"OilPriceHistory"> | number source?: Prisma.StringWithAggregatesFilter<"OilPriceHistory"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"OilPriceHistory"> | Date | string } export type OilPriceHistoryCreateInput = { date: Date | string province: string fuel: string price: number source?: string createdAt?: Date | string } export type OilPriceHistoryUncheckedCreateInput = { id?: number date: Date | string province: string fuel: string price: number source?: string createdAt?: Date | string } export type OilPriceHistoryUpdateInput = { date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string province?: Prisma.StringFieldUpdateOperationsInput | string fuel?: Prisma.StringFieldUpdateOperationsInput | string price?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type OilPriceHistoryUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string province?: Prisma.StringFieldUpdateOperationsInput | string fuel?: Prisma.StringFieldUpdateOperationsInput | string price?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type OilPriceHistoryCreateManyInput = { id?: number date: Date | string province: string fuel: string price: number source?: string createdAt?: Date | string } export type OilPriceHistoryUpdateManyMutationInput = { date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string province?: Prisma.StringFieldUpdateOperationsInput | string fuel?: Prisma.StringFieldUpdateOperationsInput | string price?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type OilPriceHistoryUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string province?: Prisma.StringFieldUpdateOperationsInput | string fuel?: Prisma.StringFieldUpdateOperationsInput | string price?: Prisma.FloatFieldUpdateOperationsInput | number source?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type OilPriceHistoryOrderByRelevanceInput = { fields: Prisma.OilPriceHistoryOrderByRelevanceFieldEnum | Prisma.OilPriceHistoryOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type OilPriceHistoryDateProvinceFuelCompoundUniqueInput = { date: Date | string province: string fuel: string } export type OilPriceHistoryCountOrderByAggregateInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder province?: Prisma.SortOrder fuel?: Prisma.SortOrder price?: Prisma.SortOrder source?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type OilPriceHistoryAvgOrderByAggregateInput = { id?: Prisma.SortOrder price?: Prisma.SortOrder } export type OilPriceHistoryMaxOrderByAggregateInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder province?: Prisma.SortOrder fuel?: Prisma.SortOrder price?: Prisma.SortOrder source?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type OilPriceHistoryMinOrderByAggregateInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder province?: Prisma.SortOrder fuel?: Prisma.SortOrder price?: Prisma.SortOrder source?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type OilPriceHistorySumOrderByAggregateInput = { id?: Prisma.SortOrder price?: Prisma.SortOrder } export type OilPriceHistorySelect = runtime.Types.Extensions.GetSelect<{ id?: boolean date?: boolean province?: boolean fuel?: boolean price?: boolean source?: boolean createdAt?: boolean }, ExtArgs["result"]["oilPriceHistory"]> export type OilPriceHistorySelectScalar = { id?: boolean date?: boolean province?: boolean fuel?: boolean price?: boolean source?: boolean createdAt?: boolean } export type OilPriceHistoryOmit = runtime.Types.Extensions.GetOmit<"id" | "date" | "province" | "fuel" | "price" | "source" | "createdAt", ExtArgs["result"]["oilPriceHistory"]> export type $OilPriceHistoryPayload = { name: "OilPriceHistory" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number date: Date province: string fuel: string price: number source: string createdAt: Date }, ExtArgs["result"]["oilPriceHistory"]> composites: {} } export type OilPriceHistoryGetPayload = runtime.Types.Result.GetResult export type OilPriceHistoryCountArgs = Omit & { select?: OilPriceHistoryCountAggregateInputType | true } export interface OilPriceHistoryDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['OilPriceHistory'], meta: { name: 'OilPriceHistory' } } /** * Find zero or one OilPriceHistory that matches the filter. * @param {OilPriceHistoryFindUniqueArgs} args - Arguments to find a OilPriceHistory * @example * // Get one OilPriceHistory * const oilPriceHistory = await prisma.oilPriceHistory.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__OilPriceHistoryClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one OilPriceHistory that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {OilPriceHistoryFindUniqueOrThrowArgs} args - Arguments to find a OilPriceHistory * @example * // Get one OilPriceHistory * const oilPriceHistory = await prisma.oilPriceHistory.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__OilPriceHistoryClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first OilPriceHistory 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 {OilPriceHistoryFindFirstArgs} args - Arguments to find a OilPriceHistory * @example * // Get one OilPriceHistory * const oilPriceHistory = await prisma.oilPriceHistory.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__OilPriceHistoryClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first OilPriceHistory 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 {OilPriceHistoryFindFirstOrThrowArgs} args - Arguments to find a OilPriceHistory * @example * // Get one OilPriceHistory * const oilPriceHistory = await prisma.oilPriceHistory.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__OilPriceHistoryClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more OilPriceHistories 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 {OilPriceHistoryFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all OilPriceHistories * const oilPriceHistories = await prisma.oilPriceHistory.findMany() * * // Get first 10 OilPriceHistories * const oilPriceHistories = await prisma.oilPriceHistory.findMany({ take: 10 }) * * // Only select the `id` * const oilPriceHistoryWithIdOnly = await prisma.oilPriceHistory.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a OilPriceHistory. * @param {OilPriceHistoryCreateArgs} args - Arguments to create a OilPriceHistory. * @example * // Create one OilPriceHistory * const OilPriceHistory = await prisma.oilPriceHistory.create({ * data: { * // ... data to create a OilPriceHistory * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__OilPriceHistoryClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many OilPriceHistories. * @param {OilPriceHistoryCreateManyArgs} args - Arguments to create many OilPriceHistories. * @example * // Create many OilPriceHistories * const oilPriceHistory = await prisma.oilPriceHistory.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a OilPriceHistory. * @param {OilPriceHistoryDeleteArgs} args - Arguments to delete one OilPriceHistory. * @example * // Delete one OilPriceHistory * const OilPriceHistory = await prisma.oilPriceHistory.delete({ * where: { * // ... filter to delete one OilPriceHistory * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__OilPriceHistoryClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one OilPriceHistory. * @param {OilPriceHistoryUpdateArgs} args - Arguments to update one OilPriceHistory. * @example * // Update one OilPriceHistory * const oilPriceHistory = await prisma.oilPriceHistory.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__OilPriceHistoryClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more OilPriceHistories. * @param {OilPriceHistoryDeleteManyArgs} args - Arguments to filter OilPriceHistories to delete. * @example * // Delete a few OilPriceHistories * const { count } = await prisma.oilPriceHistory.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more OilPriceHistories. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OilPriceHistoryUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many OilPriceHistories * const oilPriceHistory = await prisma.oilPriceHistory.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one OilPriceHistory. * @param {OilPriceHistoryUpsertArgs} args - Arguments to update or create a OilPriceHistory. * @example * // Update or create a OilPriceHistory * const oilPriceHistory = await prisma.oilPriceHistory.upsert({ * create: { * // ... data to create a OilPriceHistory * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the OilPriceHistory we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__OilPriceHistoryClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of OilPriceHistories. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OilPriceHistoryCountArgs} args - Arguments to filter OilPriceHistories to count. * @example * // Count the number of OilPriceHistories * const count = await prisma.oilPriceHistory.count({ * where: { * // ... the filter for the OilPriceHistories 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 OilPriceHistory. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OilPriceHistoryAggregateArgs} 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 OilPriceHistory. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OilPriceHistoryGroupByArgs} 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 OilPriceHistoryGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: OilPriceHistoryGroupByArgs['orderBy'] } : { orderBy?: OilPriceHistoryGroupByArgs['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 ? GetOilPriceHistoryGroupByPayload : Prisma.PrismaPromise /** * Fields of the OilPriceHistory model */ readonly fields: OilPriceHistoryFieldRefs; } /** * The delegate class that acts as a "Promise-like" for OilPriceHistory. * 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__OilPriceHistoryClient 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 OilPriceHistory model */ export interface OilPriceHistoryFieldRefs { readonly id: Prisma.FieldRef<"OilPriceHistory", 'Int'> readonly date: Prisma.FieldRef<"OilPriceHistory", 'DateTime'> readonly province: Prisma.FieldRef<"OilPriceHistory", 'String'> readonly fuel: Prisma.FieldRef<"OilPriceHistory", 'String'> readonly price: Prisma.FieldRef<"OilPriceHistory", 'Float'> readonly source: Prisma.FieldRef<"OilPriceHistory", 'String'> readonly createdAt: Prisma.FieldRef<"OilPriceHistory", 'DateTime'> } // Custom InputTypes /** * OilPriceHistory findUnique */ export type OilPriceHistoryFindUniqueArgs = { /** * Select specific fields to fetch from the OilPriceHistory */ select?: Prisma.OilPriceHistorySelect | null /** * Omit specific fields from the OilPriceHistory */ omit?: Prisma.OilPriceHistoryOmit | null /** * Filter, which OilPriceHistory to fetch. */ where: Prisma.OilPriceHistoryWhereUniqueInput } /** * OilPriceHistory findUniqueOrThrow */ export type OilPriceHistoryFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the OilPriceHistory */ select?: Prisma.OilPriceHistorySelect | null /** * Omit specific fields from the OilPriceHistory */ omit?: Prisma.OilPriceHistoryOmit | null /** * Filter, which OilPriceHistory to fetch. */ where: Prisma.OilPriceHistoryWhereUniqueInput } /** * OilPriceHistory findFirst */ export type OilPriceHistoryFindFirstArgs = { /** * Select specific fields to fetch from the OilPriceHistory */ select?: Prisma.OilPriceHistorySelect | null /** * Omit specific fields from the OilPriceHistory */ omit?: Prisma.OilPriceHistoryOmit | null /** * Filter, which OilPriceHistory to fetch. */ where?: Prisma.OilPriceHistoryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OilPriceHistories to fetch. */ orderBy?: Prisma.OilPriceHistoryOrderByWithRelationInput | Prisma.OilPriceHistoryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for OilPriceHistories. */ cursor?: Prisma.OilPriceHistoryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OilPriceHistories 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` OilPriceHistories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of OilPriceHistories. */ distinct?: Prisma.OilPriceHistoryScalarFieldEnum | Prisma.OilPriceHistoryScalarFieldEnum[] } /** * OilPriceHistory findFirstOrThrow */ export type OilPriceHistoryFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the OilPriceHistory */ select?: Prisma.OilPriceHistorySelect | null /** * Omit specific fields from the OilPriceHistory */ omit?: Prisma.OilPriceHistoryOmit | null /** * Filter, which OilPriceHistory to fetch. */ where?: Prisma.OilPriceHistoryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OilPriceHistories to fetch. */ orderBy?: Prisma.OilPriceHistoryOrderByWithRelationInput | Prisma.OilPriceHistoryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for OilPriceHistories. */ cursor?: Prisma.OilPriceHistoryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OilPriceHistories 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` OilPriceHistories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of OilPriceHistories. */ distinct?: Prisma.OilPriceHistoryScalarFieldEnum | Prisma.OilPriceHistoryScalarFieldEnum[] } /** * OilPriceHistory findMany */ export type OilPriceHistoryFindManyArgs = { /** * Select specific fields to fetch from the OilPriceHistory */ select?: Prisma.OilPriceHistorySelect | null /** * Omit specific fields from the OilPriceHistory */ omit?: Prisma.OilPriceHistoryOmit | null /** * Filter, which OilPriceHistories to fetch. */ where?: Prisma.OilPriceHistoryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OilPriceHistories to fetch. */ orderBy?: Prisma.OilPriceHistoryOrderByWithRelationInput | Prisma.OilPriceHistoryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing OilPriceHistories. */ cursor?: Prisma.OilPriceHistoryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OilPriceHistories 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` OilPriceHistories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of OilPriceHistories. */ distinct?: Prisma.OilPriceHistoryScalarFieldEnum | Prisma.OilPriceHistoryScalarFieldEnum[] } /** * OilPriceHistory create */ export type OilPriceHistoryCreateArgs = { /** * Select specific fields to fetch from the OilPriceHistory */ select?: Prisma.OilPriceHistorySelect | null /** * Omit specific fields from the OilPriceHistory */ omit?: Prisma.OilPriceHistoryOmit | null /** * The data needed to create a OilPriceHistory. */ data: Prisma.XOR } /** * OilPriceHistory createMany */ export type OilPriceHistoryCreateManyArgs = { /** * The data used to create many OilPriceHistories. */ data: Prisma.OilPriceHistoryCreateManyInput | Prisma.OilPriceHistoryCreateManyInput[] skipDuplicates?: boolean } /** * OilPriceHistory update */ export type OilPriceHistoryUpdateArgs = { /** * Select specific fields to fetch from the OilPriceHistory */ select?: Prisma.OilPriceHistorySelect | null /** * Omit specific fields from the OilPriceHistory */ omit?: Prisma.OilPriceHistoryOmit | null /** * The data needed to update a OilPriceHistory. */ data: Prisma.XOR /** * Choose, which OilPriceHistory to update. */ where: Prisma.OilPriceHistoryWhereUniqueInput } /** * OilPriceHistory updateMany */ export type OilPriceHistoryUpdateManyArgs = { /** * The data used to update OilPriceHistories. */ data: Prisma.XOR /** * Filter which OilPriceHistories to update */ where?: Prisma.OilPriceHistoryWhereInput /** * Limit how many OilPriceHistories to update. */ limit?: number } /** * OilPriceHistory upsert */ export type OilPriceHistoryUpsertArgs = { /** * Select specific fields to fetch from the OilPriceHistory */ select?: Prisma.OilPriceHistorySelect | null /** * Omit specific fields from the OilPriceHistory */ omit?: Prisma.OilPriceHistoryOmit | null /** * The filter to search for the OilPriceHistory to update in case it exists. */ where: Prisma.OilPriceHistoryWhereUniqueInput /** * In case the OilPriceHistory found by the `where` argument doesn't exist, create a new OilPriceHistory with this data. */ create: Prisma.XOR /** * In case the OilPriceHistory was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * OilPriceHistory delete */ export type OilPriceHistoryDeleteArgs = { /** * Select specific fields to fetch from the OilPriceHistory */ select?: Prisma.OilPriceHistorySelect | null /** * Omit specific fields from the OilPriceHistory */ omit?: Prisma.OilPriceHistoryOmit | null /** * Filter which OilPriceHistory to delete. */ where: Prisma.OilPriceHistoryWhereUniqueInput } /** * OilPriceHistory deleteMany */ export type OilPriceHistoryDeleteManyArgs = { /** * Filter which OilPriceHistories to delete */ where?: Prisma.OilPriceHistoryWhereInput /** * Limit how many OilPriceHistories to delete. */ limit?: number } /** * OilPriceHistory without action */ export type OilPriceHistoryDefaultArgs = { /** * Select specific fields to fetch from the OilPriceHistory */ select?: Prisma.OilPriceHistorySelect | null /** * Omit specific fields from the OilPriceHistory */ omit?: Prisma.OilPriceHistoryOmit | null }