/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `invoice_item` 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" import type * as Prisma from "../internal/prismaNamespace" /** * Model invoice_item * */ export type invoice_itemModel = runtime.Types.Result.DefaultSelection export type AggregateInvoice_item = { _count: Invoice_itemCountAggregateOutputType | null _avg: Invoice_itemAvgAggregateOutputType | null _sum: Invoice_itemSumAggregateOutputType | null _min: Invoice_itemMinAggregateOutputType | null _max: Invoice_itemMaxAggregateOutputType | null } export type Invoice_itemAvgAggregateOutputType = { id: number | null service_id: number | null invoice_id: number | null quantity: number | null unitary_price: number | null } export type Invoice_itemSumAggregateOutputType = { id: bigint | null service_id: bigint | null invoice_id: bigint | null quantity: number | null unitary_price: number | null } export type Invoice_itemMinAggregateOutputType = { id: bigint | null service_id: bigint | null invoice_id: bigint | null sku: string | null quantity: number | null product_name: string | null unitary_price: number | null nosub: boolean | null delivery_name: string | null } export type Invoice_itemMaxAggregateOutputType = { id: bigint | null service_id: bigint | null invoice_id: bigint | null sku: string | null quantity: number | null product_name: string | null unitary_price: number | null nosub: boolean | null delivery_name: string | null } export type Invoice_itemCountAggregateOutputType = { id: number service_id: number invoice_id: number sku: number quantity: number product_name: number unitary_price: number nosub: number delivery_name: number _all: number } export type Invoice_itemAvgAggregateInputType = { id?: true service_id?: true invoice_id?: true quantity?: true unitary_price?: true } export type Invoice_itemSumAggregateInputType = { id?: true service_id?: true invoice_id?: true quantity?: true unitary_price?: true } export type Invoice_itemMinAggregateInputType = { id?: true service_id?: true invoice_id?: true sku?: true quantity?: true product_name?: true unitary_price?: true nosub?: true delivery_name?: true } export type Invoice_itemMaxAggregateInputType = { id?: true service_id?: true invoice_id?: true sku?: true quantity?: true product_name?: true unitary_price?: true nosub?: true delivery_name?: true } export type Invoice_itemCountAggregateInputType = { id?: true service_id?: true invoice_id?: true sku?: true quantity?: true product_name?: true unitary_price?: true nosub?: true delivery_name?: true _all?: true } export type Invoice_itemAggregateArgs = { /** * Filter which invoice_item to aggregate. */ where?: Prisma.invoice_itemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of invoice_items to fetch. */ orderBy?: Prisma.invoice_itemOrderByWithRelationInput | Prisma.invoice_itemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.invoice_itemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` invoice_items 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` invoice_items. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned invoice_items **/ _count?: true | Invoice_itemCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Invoice_itemAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Invoice_itemSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Invoice_itemMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Invoice_itemMaxAggregateInputType } export type GetInvoice_itemAggregateType = { [P in keyof T & keyof AggregateInvoice_item]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type invoice_itemGroupByArgs = { where?: Prisma.invoice_itemWhereInput orderBy?: Prisma.invoice_itemOrderByWithAggregationInput | Prisma.invoice_itemOrderByWithAggregationInput[] by: Prisma.Invoice_itemScalarFieldEnum[] | Prisma.Invoice_itemScalarFieldEnum having?: Prisma.invoice_itemScalarWhereWithAggregatesInput take?: number skip?: number _count?: Invoice_itemCountAggregateInputType | true _avg?: Invoice_itemAvgAggregateInputType _sum?: Invoice_itemSumAggregateInputType _min?: Invoice_itemMinAggregateInputType _max?: Invoice_itemMaxAggregateInputType } export type Invoice_itemGroupByOutputType = { id: bigint service_id: bigint | null invoice_id: bigint | null sku: string | null quantity: number product_name: string | null unitary_price: number | null nosub: boolean delivery_name: string | null _count: Invoice_itemCountAggregateOutputType | null _avg: Invoice_itemAvgAggregateOutputType | null _sum: Invoice_itemSumAggregateOutputType | null _min: Invoice_itemMinAggregateOutputType | null _max: Invoice_itemMaxAggregateOutputType | null } type GetInvoice_itemGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Invoice_itemGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type invoice_itemWhereInput = { AND?: Prisma.invoice_itemWhereInput | Prisma.invoice_itemWhereInput[] OR?: Prisma.invoice_itemWhereInput[] NOT?: Prisma.invoice_itemWhereInput | Prisma.invoice_itemWhereInput[] id?: Prisma.BigIntFilter<"invoice_item"> | bigint | number service_id?: Prisma.BigIntNullableFilter<"invoice_item"> | bigint | number | null invoice_id?: Prisma.BigIntNullableFilter<"invoice_item"> | bigint | number | null sku?: Prisma.StringNullableFilter<"invoice_item"> | string | null quantity?: Prisma.FloatFilter<"invoice_item"> | number product_name?: Prisma.StringNullableFilter<"invoice_item"> | string | null unitary_price?: Prisma.FloatNullableFilter<"invoice_item"> | number | null nosub?: Prisma.BoolFilter<"invoice_item"> | boolean delivery_name?: Prisma.StringNullableFilter<"invoice_item"> | string | null } export type invoice_itemOrderByWithRelationInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrderInput | Prisma.SortOrder invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder sku?: Prisma.SortOrderInput | Prisma.SortOrder quantity?: Prisma.SortOrder product_name?: Prisma.SortOrderInput | Prisma.SortOrder unitary_price?: Prisma.SortOrderInput | Prisma.SortOrder nosub?: Prisma.SortOrder delivery_name?: Prisma.SortOrderInput | Prisma.SortOrder _relevance?: Prisma.invoice_itemOrderByRelevanceInput } export type invoice_itemWhereUniqueInput = Prisma.AtLeast<{ id?: bigint | number AND?: Prisma.invoice_itemWhereInput | Prisma.invoice_itemWhereInput[] OR?: Prisma.invoice_itemWhereInput[] NOT?: Prisma.invoice_itemWhereInput | Prisma.invoice_itemWhereInput[] service_id?: Prisma.BigIntNullableFilter<"invoice_item"> | bigint | number | null invoice_id?: Prisma.BigIntNullableFilter<"invoice_item"> | bigint | number | null sku?: Prisma.StringNullableFilter<"invoice_item"> | string | null quantity?: Prisma.FloatFilter<"invoice_item"> | number product_name?: Prisma.StringNullableFilter<"invoice_item"> | string | null unitary_price?: Prisma.FloatNullableFilter<"invoice_item"> | number | null nosub?: Prisma.BoolFilter<"invoice_item"> | boolean delivery_name?: Prisma.StringNullableFilter<"invoice_item"> | string | null }, "id"> export type invoice_itemOrderByWithAggregationInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrderInput | Prisma.SortOrder invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder sku?: Prisma.SortOrderInput | Prisma.SortOrder quantity?: Prisma.SortOrder product_name?: Prisma.SortOrderInput | Prisma.SortOrder unitary_price?: Prisma.SortOrderInput | Prisma.SortOrder nosub?: Prisma.SortOrder delivery_name?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.invoice_itemCountOrderByAggregateInput _avg?: Prisma.invoice_itemAvgOrderByAggregateInput _max?: Prisma.invoice_itemMaxOrderByAggregateInput _min?: Prisma.invoice_itemMinOrderByAggregateInput _sum?: Prisma.invoice_itemSumOrderByAggregateInput } export type invoice_itemScalarWhereWithAggregatesInput = { AND?: Prisma.invoice_itemScalarWhereWithAggregatesInput | Prisma.invoice_itemScalarWhereWithAggregatesInput[] OR?: Prisma.invoice_itemScalarWhereWithAggregatesInput[] NOT?: Prisma.invoice_itemScalarWhereWithAggregatesInput | Prisma.invoice_itemScalarWhereWithAggregatesInput[] id?: Prisma.BigIntWithAggregatesFilter<"invoice_item"> | bigint | number service_id?: Prisma.BigIntNullableWithAggregatesFilter<"invoice_item"> | bigint | number | null invoice_id?: Prisma.BigIntNullableWithAggregatesFilter<"invoice_item"> | bigint | number | null sku?: Prisma.StringNullableWithAggregatesFilter<"invoice_item"> | string | null quantity?: Prisma.FloatWithAggregatesFilter<"invoice_item"> | number product_name?: Prisma.StringNullableWithAggregatesFilter<"invoice_item"> | string | null unitary_price?: Prisma.FloatNullableWithAggregatesFilter<"invoice_item"> | number | null nosub?: Prisma.BoolWithAggregatesFilter<"invoice_item"> | boolean delivery_name?: Prisma.StringNullableWithAggregatesFilter<"invoice_item"> | string | null } export type invoice_itemCreateInput = { id?: bigint | number service_id?: bigint | number | null invoice_id?: bigint | number | null sku?: string | null quantity?: number product_name?: string | null unitary_price?: number | null nosub?: boolean delivery_name?: string | null } export type invoice_itemUncheckedCreateInput = { id?: bigint | number service_id?: bigint | number | null invoice_id?: bigint | number | null sku?: string | null quantity?: number product_name?: string | null unitary_price?: number | null nosub?: boolean delivery_name?: string | null } export type invoice_itemUpdateInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null quantity?: Prisma.FloatFieldUpdateOperationsInput | number product_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null unitary_price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null nosub?: Prisma.BoolFieldUpdateOperationsInput | boolean delivery_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type invoice_itemUncheckedUpdateInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null quantity?: Prisma.FloatFieldUpdateOperationsInput | number product_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null unitary_price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null nosub?: Prisma.BoolFieldUpdateOperationsInput | boolean delivery_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type invoice_itemCreateManyInput = { id?: bigint | number service_id?: bigint | number | null invoice_id?: bigint | number | null sku?: string | null quantity?: number product_name?: string | null unitary_price?: number | null nosub?: boolean delivery_name?: string | null } export type invoice_itemUpdateManyMutationInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null quantity?: Prisma.FloatFieldUpdateOperationsInput | number product_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null unitary_price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null nosub?: Prisma.BoolFieldUpdateOperationsInput | boolean delivery_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type invoice_itemUncheckedUpdateManyInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null quantity?: Prisma.FloatFieldUpdateOperationsInput | number product_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null unitary_price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null nosub?: Prisma.BoolFieldUpdateOperationsInput | boolean delivery_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type invoice_itemOrderByRelevanceInput = { fields: Prisma.invoice_itemOrderByRelevanceFieldEnum | Prisma.invoice_itemOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type invoice_itemCountOrderByAggregateInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder invoice_id?: Prisma.SortOrder sku?: Prisma.SortOrder quantity?: Prisma.SortOrder product_name?: Prisma.SortOrder unitary_price?: Prisma.SortOrder nosub?: Prisma.SortOrder delivery_name?: Prisma.SortOrder } export type invoice_itemAvgOrderByAggregateInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder invoice_id?: Prisma.SortOrder quantity?: Prisma.SortOrder unitary_price?: Prisma.SortOrder } export type invoice_itemMaxOrderByAggregateInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder invoice_id?: Prisma.SortOrder sku?: Prisma.SortOrder quantity?: Prisma.SortOrder product_name?: Prisma.SortOrder unitary_price?: Prisma.SortOrder nosub?: Prisma.SortOrder delivery_name?: Prisma.SortOrder } export type invoice_itemMinOrderByAggregateInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder invoice_id?: Prisma.SortOrder sku?: Prisma.SortOrder quantity?: Prisma.SortOrder product_name?: Prisma.SortOrder unitary_price?: Prisma.SortOrder nosub?: Prisma.SortOrder delivery_name?: Prisma.SortOrder } export type invoice_itemSumOrderByAggregateInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder invoice_id?: Prisma.SortOrder quantity?: Prisma.SortOrder unitary_price?: Prisma.SortOrder } export type invoice_itemSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean service_id?: boolean invoice_id?: boolean sku?: boolean quantity?: boolean product_name?: boolean unitary_price?: boolean nosub?: boolean delivery_name?: boolean }, ExtArgs["result"]["invoice_item"]> export type invoice_itemSelectScalar = { id?: boolean service_id?: boolean invoice_id?: boolean sku?: boolean quantity?: boolean product_name?: boolean unitary_price?: boolean nosub?: boolean delivery_name?: boolean } export type invoice_itemOmit = runtime.Types.Extensions.GetOmit<"id" | "service_id" | "invoice_id" | "sku" | "quantity" | "product_name" | "unitary_price" | "nosub" | "delivery_name", ExtArgs["result"]["invoice_item"]> export type $invoice_itemPayload = { name: "invoice_item" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: bigint service_id: bigint | null invoice_id: bigint | null sku: string | null quantity: number product_name: string | null unitary_price: number | null nosub: boolean delivery_name: string | null }, ExtArgs["result"]["invoice_item"]> composites: {} } export type invoice_itemGetPayload = runtime.Types.Result.GetResult export type invoice_itemCountArgs = Omit & { select?: Invoice_itemCountAggregateInputType | true } export interface invoice_itemDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['invoice_item'], meta: { name: 'invoice_item' } } /** * Find zero or one Invoice_item that matches the filter. * @param {invoice_itemFindUniqueArgs} args - Arguments to find a Invoice_item * @example * // Get one Invoice_item * const invoice_item = await prisma.invoice_item.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_itemClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Invoice_item that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {invoice_itemFindUniqueOrThrowArgs} args - Arguments to find a Invoice_item * @example * // Get one Invoice_item * const invoice_item = await prisma.invoice_item.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_itemClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Invoice_item 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 {invoice_itemFindFirstArgs} args - Arguments to find a Invoice_item * @example * // Get one Invoice_item * const invoice_item = await prisma.invoice_item.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__invoice_itemClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Invoice_item 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 {invoice_itemFindFirstOrThrowArgs} args - Arguments to find a Invoice_item * @example * // Get one Invoice_item * const invoice_item = await prisma.invoice_item.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__invoice_itemClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Invoice_items 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 {invoice_itemFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Invoice_items * const invoice_items = await prisma.invoice_item.findMany() * * // Get first 10 Invoice_items * const invoice_items = await prisma.invoice_item.findMany({ take: 10 }) * * // Only select the `id` * const invoice_itemWithIdOnly = await prisma.invoice_item.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Invoice_item. * @param {invoice_itemCreateArgs} args - Arguments to create a Invoice_item. * @example * // Create one Invoice_item * const Invoice_item = await prisma.invoice_item.create({ * data: { * // ... data to create a Invoice_item * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_itemClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Invoice_items. * @param {invoice_itemCreateManyArgs} args - Arguments to create many Invoice_items. * @example * // Create many Invoice_items * const invoice_item = await prisma.invoice_item.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Invoice_item. * @param {invoice_itemDeleteArgs} args - Arguments to delete one Invoice_item. * @example * // Delete one Invoice_item * const Invoice_item = await prisma.invoice_item.delete({ * where: { * // ... filter to delete one Invoice_item * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_itemClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Invoice_item. * @param {invoice_itemUpdateArgs} args - Arguments to update one Invoice_item. * @example * // Update one Invoice_item * const invoice_item = await prisma.invoice_item.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_itemClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Invoice_items. * @param {invoice_itemDeleteManyArgs} args - Arguments to filter Invoice_items to delete. * @example * // Delete a few Invoice_items * const { count } = await prisma.invoice_item.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Invoice_items. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {invoice_itemUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Invoice_items * const invoice_item = await prisma.invoice_item.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Invoice_item. * @param {invoice_itemUpsertArgs} args - Arguments to update or create a Invoice_item. * @example * // Update or create a Invoice_item * const invoice_item = await prisma.invoice_item.upsert({ * create: { * // ... data to create a Invoice_item * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Invoice_item we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_itemClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Invoice_items. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {invoice_itemCountArgs} args - Arguments to filter Invoice_items to count. * @example * // Count the number of Invoice_items * const count = await prisma.invoice_item.count({ * where: { * // ... the filter for the Invoice_items 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 Invoice_item. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Invoice_itemAggregateArgs} 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 Invoice_item. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {invoice_itemGroupByArgs} 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 invoice_itemGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: invoice_itemGroupByArgs['orderBy'] } : { orderBy?: invoice_itemGroupByArgs['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 ? GetInvoice_itemGroupByPayload : Prisma.PrismaPromise /** * Fields of the invoice_item model */ readonly fields: invoice_itemFieldRefs; } /** * The delegate class that acts as a "Promise-like" for invoice_item. * 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__invoice_itemClient 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 invoice_item model */ export interface invoice_itemFieldRefs { readonly id: Prisma.FieldRef<"invoice_item", 'BigInt'> readonly service_id: Prisma.FieldRef<"invoice_item", 'BigInt'> readonly invoice_id: Prisma.FieldRef<"invoice_item", 'BigInt'> readonly sku: Prisma.FieldRef<"invoice_item", 'String'> readonly quantity: Prisma.FieldRef<"invoice_item", 'Float'> readonly product_name: Prisma.FieldRef<"invoice_item", 'String'> readonly unitary_price: Prisma.FieldRef<"invoice_item", 'Float'> readonly nosub: Prisma.FieldRef<"invoice_item", 'Boolean'> readonly delivery_name: Prisma.FieldRef<"invoice_item", 'String'> } // Custom InputTypes /** * invoice_item findUnique */ export type invoice_itemFindUniqueArgs = { /** * Select specific fields to fetch from the invoice_item */ select?: Prisma.invoice_itemSelect | null /** * Omit specific fields from the invoice_item */ omit?: Prisma.invoice_itemOmit | null /** * Filter, which invoice_item to fetch. */ where: Prisma.invoice_itemWhereUniqueInput } /** * invoice_item findUniqueOrThrow */ export type invoice_itemFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the invoice_item */ select?: Prisma.invoice_itemSelect | null /** * Omit specific fields from the invoice_item */ omit?: Prisma.invoice_itemOmit | null /** * Filter, which invoice_item to fetch. */ where: Prisma.invoice_itemWhereUniqueInput } /** * invoice_item findFirst */ export type invoice_itemFindFirstArgs = { /** * Select specific fields to fetch from the invoice_item */ select?: Prisma.invoice_itemSelect | null /** * Omit specific fields from the invoice_item */ omit?: Prisma.invoice_itemOmit | null /** * Filter, which invoice_item to fetch. */ where?: Prisma.invoice_itemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of invoice_items to fetch. */ orderBy?: Prisma.invoice_itemOrderByWithRelationInput | Prisma.invoice_itemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for invoice_items. */ cursor?: Prisma.invoice_itemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` invoice_items 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` invoice_items. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of invoice_items. */ distinct?: Prisma.Invoice_itemScalarFieldEnum | Prisma.Invoice_itemScalarFieldEnum[] } /** * invoice_item findFirstOrThrow */ export type invoice_itemFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the invoice_item */ select?: Prisma.invoice_itemSelect | null /** * Omit specific fields from the invoice_item */ omit?: Prisma.invoice_itemOmit | null /** * Filter, which invoice_item to fetch. */ where?: Prisma.invoice_itemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of invoice_items to fetch. */ orderBy?: Prisma.invoice_itemOrderByWithRelationInput | Prisma.invoice_itemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for invoice_items. */ cursor?: Prisma.invoice_itemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` invoice_items 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` invoice_items. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of invoice_items. */ distinct?: Prisma.Invoice_itemScalarFieldEnum | Prisma.Invoice_itemScalarFieldEnum[] } /** * invoice_item findMany */ export type invoice_itemFindManyArgs = { /** * Select specific fields to fetch from the invoice_item */ select?: Prisma.invoice_itemSelect | null /** * Omit specific fields from the invoice_item */ omit?: Prisma.invoice_itemOmit | null /** * Filter, which invoice_items to fetch. */ where?: Prisma.invoice_itemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of invoice_items to fetch. */ orderBy?: Prisma.invoice_itemOrderByWithRelationInput | Prisma.invoice_itemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing invoice_items. */ cursor?: Prisma.invoice_itemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` invoice_items 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` invoice_items. */ skip?: number distinct?: Prisma.Invoice_itemScalarFieldEnum | Prisma.Invoice_itemScalarFieldEnum[] } /** * invoice_item create */ export type invoice_itemCreateArgs = { /** * Select specific fields to fetch from the invoice_item */ select?: Prisma.invoice_itemSelect | null /** * Omit specific fields from the invoice_item */ omit?: Prisma.invoice_itemOmit | null /** * The data needed to create a invoice_item. */ data?: Prisma.XOR } /** * invoice_item createMany */ export type invoice_itemCreateManyArgs = { /** * The data used to create many invoice_items. */ data: Prisma.invoice_itemCreateManyInput | Prisma.invoice_itemCreateManyInput[] skipDuplicates?: boolean } /** * invoice_item update */ export type invoice_itemUpdateArgs = { /** * Select specific fields to fetch from the invoice_item */ select?: Prisma.invoice_itemSelect | null /** * Omit specific fields from the invoice_item */ omit?: Prisma.invoice_itemOmit | null /** * The data needed to update a invoice_item. */ data: Prisma.XOR /** * Choose, which invoice_item to update. */ where: Prisma.invoice_itemWhereUniqueInput } /** * invoice_item updateMany */ export type invoice_itemUpdateManyArgs = { /** * The data used to update invoice_items. */ data: Prisma.XOR /** * Filter which invoice_items to update */ where?: Prisma.invoice_itemWhereInput /** * Limit how many invoice_items to update. */ limit?: number } /** * invoice_item upsert */ export type invoice_itemUpsertArgs = { /** * Select specific fields to fetch from the invoice_item */ select?: Prisma.invoice_itemSelect | null /** * Omit specific fields from the invoice_item */ omit?: Prisma.invoice_itemOmit | null /** * The filter to search for the invoice_item to update in case it exists. */ where: Prisma.invoice_itemWhereUniqueInput /** * In case the invoice_item found by the `where` argument doesn't exist, create a new invoice_item with this data. */ create: Prisma.XOR /** * In case the invoice_item was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * invoice_item delete */ export type invoice_itemDeleteArgs = { /** * Select specific fields to fetch from the invoice_item */ select?: Prisma.invoice_itemSelect | null /** * Omit specific fields from the invoice_item */ omit?: Prisma.invoice_itemOmit | null /** * Filter which invoice_item to delete. */ where: Prisma.invoice_itemWhereUniqueInput } /** * invoice_item deleteMany */ export type invoice_itemDeleteManyArgs = { /** * Filter which invoice_items to delete */ where?: Prisma.invoice_itemWhereInput /** * Limit how many invoice_items to delete. */ limit?: number } /** * invoice_item without action */ export type invoice_itemDefaultArgs = { /** * Select specific fields to fetch from the invoice_item */ select?: Prisma.invoice_itemSelect | null /** * Omit specific fields from the invoice_item */ omit?: Prisma.invoice_itemOmit | null }