/* !!! 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_tax` 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_tax * */ export type invoice_taxModel = runtime.Types.Result.DefaultSelection export type AggregateInvoice_tax = { _count: Invoice_taxCountAggregateOutputType | null _avg: Invoice_taxAvgAggregateOutputType | null _sum: Invoice_taxSumAggregateOutputType | null _min: Invoice_taxMinAggregateOutputType | null _max: Invoice_taxMaxAggregateOutputType | null } export type Invoice_taxAvgAggregateOutputType = { id: number | null invoice_id: number | null tax_rate: number | null amount: number | null } export type Invoice_taxSumAggregateOutputType = { id: bigint | null invoice_id: bigint | null tax_rate: number | null amount: number | null } export type Invoice_taxMinAggregateOutputType = { id: bigint | null invoice_id: bigint | null tax_name: string | null tax_description: string | null tax_rate: number | null amount: number | null } export type Invoice_taxMaxAggregateOutputType = { id: bigint | null invoice_id: bigint | null tax_name: string | null tax_description: string | null tax_rate: number | null amount: number | null } export type Invoice_taxCountAggregateOutputType = { id: number invoice_id: number tax_name: number tax_description: number tax_rate: number amount: number _all: number } export type Invoice_taxAvgAggregateInputType = { id?: true invoice_id?: true tax_rate?: true amount?: true } export type Invoice_taxSumAggregateInputType = { id?: true invoice_id?: true tax_rate?: true amount?: true } export type Invoice_taxMinAggregateInputType = { id?: true invoice_id?: true tax_name?: true tax_description?: true tax_rate?: true amount?: true } export type Invoice_taxMaxAggregateInputType = { id?: true invoice_id?: true tax_name?: true tax_description?: true tax_rate?: true amount?: true } export type Invoice_taxCountAggregateInputType = { id?: true invoice_id?: true tax_name?: true tax_description?: true tax_rate?: true amount?: true _all?: true } export type Invoice_taxAggregateArgs = { /** * Filter which invoice_tax to aggregate. */ where?: Prisma.invoice_taxWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of invoice_taxes to fetch. */ orderBy?: Prisma.invoice_taxOrderByWithRelationInput | Prisma.invoice_taxOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.invoice_taxWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` invoice_taxes 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_taxes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned invoice_taxes **/ _count?: true | Invoice_taxCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Invoice_taxAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Invoice_taxSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Invoice_taxMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Invoice_taxMaxAggregateInputType } export type GetInvoice_taxAggregateType = { [P in keyof T & keyof AggregateInvoice_tax]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type invoice_taxGroupByArgs = { where?: Prisma.invoice_taxWhereInput orderBy?: Prisma.invoice_taxOrderByWithAggregationInput | Prisma.invoice_taxOrderByWithAggregationInput[] by: Prisma.Invoice_taxScalarFieldEnum[] | Prisma.Invoice_taxScalarFieldEnum having?: Prisma.invoice_taxScalarWhereWithAggregatesInput take?: number skip?: number _count?: Invoice_taxCountAggregateInputType | true _avg?: Invoice_taxAvgAggregateInputType _sum?: Invoice_taxSumAggregateInputType _min?: Invoice_taxMinAggregateInputType _max?: Invoice_taxMaxAggregateInputType } export type Invoice_taxGroupByOutputType = { id: bigint invoice_id: bigint | null tax_name: string | null tax_description: string | null tax_rate: number | null amount: number | null _count: Invoice_taxCountAggregateOutputType | null _avg: Invoice_taxAvgAggregateOutputType | null _sum: Invoice_taxSumAggregateOutputType | null _min: Invoice_taxMinAggregateOutputType | null _max: Invoice_taxMaxAggregateOutputType | null } type GetInvoice_taxGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Invoice_taxGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type invoice_taxWhereInput = { AND?: Prisma.invoice_taxWhereInput | Prisma.invoice_taxWhereInput[] OR?: Prisma.invoice_taxWhereInput[] NOT?: Prisma.invoice_taxWhereInput | Prisma.invoice_taxWhereInput[] id?: Prisma.BigIntFilter<"invoice_tax"> | bigint | number invoice_id?: Prisma.BigIntNullableFilter<"invoice_tax"> | bigint | number | null tax_name?: Prisma.StringNullableFilter<"invoice_tax"> | string | null tax_description?: Prisma.StringNullableFilter<"invoice_tax"> | string | null tax_rate?: Prisma.FloatNullableFilter<"invoice_tax"> | number | null amount?: Prisma.FloatNullableFilter<"invoice_tax"> | number | null } export type invoice_taxOrderByWithRelationInput = { id?: Prisma.SortOrder invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder tax_name?: Prisma.SortOrderInput | Prisma.SortOrder tax_description?: Prisma.SortOrderInput | Prisma.SortOrder tax_rate?: Prisma.SortOrderInput | Prisma.SortOrder amount?: Prisma.SortOrderInput | Prisma.SortOrder _relevance?: Prisma.invoice_taxOrderByRelevanceInput } export type invoice_taxWhereUniqueInput = Prisma.AtLeast<{ id?: bigint | number AND?: Prisma.invoice_taxWhereInput | Prisma.invoice_taxWhereInput[] OR?: Prisma.invoice_taxWhereInput[] NOT?: Prisma.invoice_taxWhereInput | Prisma.invoice_taxWhereInput[] invoice_id?: Prisma.BigIntNullableFilter<"invoice_tax"> | bigint | number | null tax_name?: Prisma.StringNullableFilter<"invoice_tax"> | string | null tax_description?: Prisma.StringNullableFilter<"invoice_tax"> | string | null tax_rate?: Prisma.FloatNullableFilter<"invoice_tax"> | number | null amount?: Prisma.FloatNullableFilter<"invoice_tax"> | number | null }, "id"> export type invoice_taxOrderByWithAggregationInput = { id?: Prisma.SortOrder invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder tax_name?: Prisma.SortOrderInput | Prisma.SortOrder tax_description?: Prisma.SortOrderInput | Prisma.SortOrder tax_rate?: Prisma.SortOrderInput | Prisma.SortOrder amount?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.invoice_taxCountOrderByAggregateInput _avg?: Prisma.invoice_taxAvgOrderByAggregateInput _max?: Prisma.invoice_taxMaxOrderByAggregateInput _min?: Prisma.invoice_taxMinOrderByAggregateInput _sum?: Prisma.invoice_taxSumOrderByAggregateInput } export type invoice_taxScalarWhereWithAggregatesInput = { AND?: Prisma.invoice_taxScalarWhereWithAggregatesInput | Prisma.invoice_taxScalarWhereWithAggregatesInput[] OR?: Prisma.invoice_taxScalarWhereWithAggregatesInput[] NOT?: Prisma.invoice_taxScalarWhereWithAggregatesInput | Prisma.invoice_taxScalarWhereWithAggregatesInput[] id?: Prisma.BigIntWithAggregatesFilter<"invoice_tax"> | bigint | number invoice_id?: Prisma.BigIntNullableWithAggregatesFilter<"invoice_tax"> | bigint | number | null tax_name?: Prisma.StringNullableWithAggregatesFilter<"invoice_tax"> | string | null tax_description?: Prisma.StringNullableWithAggregatesFilter<"invoice_tax"> | string | null tax_rate?: Prisma.FloatNullableWithAggregatesFilter<"invoice_tax"> | number | null amount?: Prisma.FloatNullableWithAggregatesFilter<"invoice_tax"> | number | null } export type invoice_taxCreateInput = { id?: bigint | number invoice_id?: bigint | number | null tax_name?: string | null tax_description?: string | null tax_rate?: number | null amount?: number | null } export type invoice_taxUncheckedCreateInput = { id?: bigint | number invoice_id?: bigint | number | null tax_name?: string | null tax_description?: string | null tax_rate?: number | null amount?: number | null } export type invoice_taxUpdateInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null tax_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null } export type invoice_taxUncheckedUpdateInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null tax_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null } export type invoice_taxCreateManyInput = { id?: bigint | number invoice_id?: bigint | number | null tax_name?: string | null tax_description?: string | null tax_rate?: number | null amount?: number | null } export type invoice_taxUpdateManyMutationInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null tax_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null } export type invoice_taxUncheckedUpdateManyInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null tax_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tax_rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null } export type invoice_taxOrderByRelevanceInput = { fields: Prisma.invoice_taxOrderByRelevanceFieldEnum | Prisma.invoice_taxOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type invoice_taxCountOrderByAggregateInput = { id?: Prisma.SortOrder invoice_id?: Prisma.SortOrder tax_name?: Prisma.SortOrder tax_description?: Prisma.SortOrder tax_rate?: Prisma.SortOrder amount?: Prisma.SortOrder } export type invoice_taxAvgOrderByAggregateInput = { id?: Prisma.SortOrder invoice_id?: Prisma.SortOrder tax_rate?: Prisma.SortOrder amount?: Prisma.SortOrder } export type invoice_taxMaxOrderByAggregateInput = { id?: Prisma.SortOrder invoice_id?: Prisma.SortOrder tax_name?: Prisma.SortOrder tax_description?: Prisma.SortOrder tax_rate?: Prisma.SortOrder amount?: Prisma.SortOrder } export type invoice_taxMinOrderByAggregateInput = { id?: Prisma.SortOrder invoice_id?: Prisma.SortOrder tax_name?: Prisma.SortOrder tax_description?: Prisma.SortOrder tax_rate?: Prisma.SortOrder amount?: Prisma.SortOrder } export type invoice_taxSumOrderByAggregateInput = { id?: Prisma.SortOrder invoice_id?: Prisma.SortOrder tax_rate?: Prisma.SortOrder amount?: Prisma.SortOrder } export type invoice_taxSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean invoice_id?: boolean tax_name?: boolean tax_description?: boolean tax_rate?: boolean amount?: boolean }, ExtArgs["result"]["invoice_tax"]> export type invoice_taxSelectScalar = { id?: boolean invoice_id?: boolean tax_name?: boolean tax_description?: boolean tax_rate?: boolean amount?: boolean } export type invoice_taxOmit = runtime.Types.Extensions.GetOmit<"id" | "invoice_id" | "tax_name" | "tax_description" | "tax_rate" | "amount", ExtArgs["result"]["invoice_tax"]> export type $invoice_taxPayload = { name: "invoice_tax" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: bigint invoice_id: bigint | null tax_name: string | null tax_description: string | null tax_rate: number | null amount: number | null }, ExtArgs["result"]["invoice_tax"]> composites: {} } export type invoice_taxGetPayload = runtime.Types.Result.GetResult export type invoice_taxCountArgs = Omit & { select?: Invoice_taxCountAggregateInputType | true } export interface invoice_taxDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['invoice_tax'], meta: { name: 'invoice_tax' } } /** * Find zero or one Invoice_tax that matches the filter. * @param {invoice_taxFindUniqueArgs} args - Arguments to find a Invoice_tax * @example * // Get one Invoice_tax * const invoice_tax = await prisma.invoice_tax.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_taxClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Invoice_tax that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {invoice_taxFindUniqueOrThrowArgs} args - Arguments to find a Invoice_tax * @example * // Get one Invoice_tax * const invoice_tax = await prisma.invoice_tax.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_taxClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Invoice_tax 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_taxFindFirstArgs} args - Arguments to find a Invoice_tax * @example * // Get one Invoice_tax * const invoice_tax = await prisma.invoice_tax.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__invoice_taxClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Invoice_tax 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_taxFindFirstOrThrowArgs} args - Arguments to find a Invoice_tax * @example * // Get one Invoice_tax * const invoice_tax = await prisma.invoice_tax.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__invoice_taxClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Invoice_taxes 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_taxFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Invoice_taxes * const invoice_taxes = await prisma.invoice_tax.findMany() * * // Get first 10 Invoice_taxes * const invoice_taxes = await prisma.invoice_tax.findMany({ take: 10 }) * * // Only select the `id` * const invoice_taxWithIdOnly = await prisma.invoice_tax.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Invoice_tax. * @param {invoice_taxCreateArgs} args - Arguments to create a Invoice_tax. * @example * // Create one Invoice_tax * const Invoice_tax = await prisma.invoice_tax.create({ * data: { * // ... data to create a Invoice_tax * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_taxClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Invoice_taxes. * @param {invoice_taxCreateManyArgs} args - Arguments to create many Invoice_taxes. * @example * // Create many Invoice_taxes * const invoice_tax = await prisma.invoice_tax.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Invoice_tax. * @param {invoice_taxDeleteArgs} args - Arguments to delete one Invoice_tax. * @example * // Delete one Invoice_tax * const Invoice_tax = await prisma.invoice_tax.delete({ * where: { * // ... filter to delete one Invoice_tax * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_taxClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Invoice_tax. * @param {invoice_taxUpdateArgs} args - Arguments to update one Invoice_tax. * @example * // Update one Invoice_tax * const invoice_tax = await prisma.invoice_tax.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_taxClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Invoice_taxes. * @param {invoice_taxDeleteManyArgs} args - Arguments to filter Invoice_taxes to delete. * @example * // Delete a few Invoice_taxes * const { count } = await prisma.invoice_tax.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Invoice_taxes. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {invoice_taxUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Invoice_taxes * const invoice_tax = await prisma.invoice_tax.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Invoice_tax. * @param {invoice_taxUpsertArgs} args - Arguments to update or create a Invoice_tax. * @example * // Update or create a Invoice_tax * const invoice_tax = await prisma.invoice_tax.upsert({ * create: { * // ... data to create a Invoice_tax * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Invoice_tax we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_taxClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Invoice_taxes. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {invoice_taxCountArgs} args - Arguments to filter Invoice_taxes to count. * @example * // Count the number of Invoice_taxes * const count = await prisma.invoice_tax.count({ * where: { * // ... the filter for the Invoice_taxes 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_tax. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Invoice_taxAggregateArgs} 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_tax. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {invoice_taxGroupByArgs} 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_taxGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: invoice_taxGroupByArgs['orderBy'] } : { orderBy?: invoice_taxGroupByArgs['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_taxGroupByPayload : Prisma.PrismaPromise /** * Fields of the invoice_tax model */ readonly fields: invoice_taxFieldRefs; } /** * The delegate class that acts as a "Promise-like" for invoice_tax. * 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_taxClient 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_tax model */ export interface invoice_taxFieldRefs { readonly id: Prisma.FieldRef<"invoice_tax", 'BigInt'> readonly invoice_id: Prisma.FieldRef<"invoice_tax", 'BigInt'> readonly tax_name: Prisma.FieldRef<"invoice_tax", 'String'> readonly tax_description: Prisma.FieldRef<"invoice_tax", 'String'> readonly tax_rate: Prisma.FieldRef<"invoice_tax", 'Float'> readonly amount: Prisma.FieldRef<"invoice_tax", 'Float'> } // Custom InputTypes /** * invoice_tax findUnique */ export type invoice_taxFindUniqueArgs = { /** * Select specific fields to fetch from the invoice_tax */ select?: Prisma.invoice_taxSelect | null /** * Omit specific fields from the invoice_tax */ omit?: Prisma.invoice_taxOmit | null /** * Filter, which invoice_tax to fetch. */ where: Prisma.invoice_taxWhereUniqueInput } /** * invoice_tax findUniqueOrThrow */ export type invoice_taxFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the invoice_tax */ select?: Prisma.invoice_taxSelect | null /** * Omit specific fields from the invoice_tax */ omit?: Prisma.invoice_taxOmit | null /** * Filter, which invoice_tax to fetch. */ where: Prisma.invoice_taxWhereUniqueInput } /** * invoice_tax findFirst */ export type invoice_taxFindFirstArgs = { /** * Select specific fields to fetch from the invoice_tax */ select?: Prisma.invoice_taxSelect | null /** * Omit specific fields from the invoice_tax */ omit?: Prisma.invoice_taxOmit | null /** * Filter, which invoice_tax to fetch. */ where?: Prisma.invoice_taxWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of invoice_taxes to fetch. */ orderBy?: Prisma.invoice_taxOrderByWithRelationInput | Prisma.invoice_taxOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for invoice_taxes. */ cursor?: Prisma.invoice_taxWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` invoice_taxes 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_taxes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of invoice_taxes. */ distinct?: Prisma.Invoice_taxScalarFieldEnum | Prisma.Invoice_taxScalarFieldEnum[] } /** * invoice_tax findFirstOrThrow */ export type invoice_taxFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the invoice_tax */ select?: Prisma.invoice_taxSelect | null /** * Omit specific fields from the invoice_tax */ omit?: Prisma.invoice_taxOmit | null /** * Filter, which invoice_tax to fetch. */ where?: Prisma.invoice_taxWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of invoice_taxes to fetch. */ orderBy?: Prisma.invoice_taxOrderByWithRelationInput | Prisma.invoice_taxOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for invoice_taxes. */ cursor?: Prisma.invoice_taxWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` invoice_taxes 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_taxes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of invoice_taxes. */ distinct?: Prisma.Invoice_taxScalarFieldEnum | Prisma.Invoice_taxScalarFieldEnum[] } /** * invoice_tax findMany */ export type invoice_taxFindManyArgs = { /** * Select specific fields to fetch from the invoice_tax */ select?: Prisma.invoice_taxSelect | null /** * Omit specific fields from the invoice_tax */ omit?: Prisma.invoice_taxOmit | null /** * Filter, which invoice_taxes to fetch. */ where?: Prisma.invoice_taxWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of invoice_taxes to fetch. */ orderBy?: Prisma.invoice_taxOrderByWithRelationInput | Prisma.invoice_taxOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing invoice_taxes. */ cursor?: Prisma.invoice_taxWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` invoice_taxes 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_taxes. */ skip?: number distinct?: Prisma.Invoice_taxScalarFieldEnum | Prisma.Invoice_taxScalarFieldEnum[] } /** * invoice_tax create */ export type invoice_taxCreateArgs = { /** * Select specific fields to fetch from the invoice_tax */ select?: Prisma.invoice_taxSelect | null /** * Omit specific fields from the invoice_tax */ omit?: Prisma.invoice_taxOmit | null /** * The data needed to create a invoice_tax. */ data?: Prisma.XOR } /** * invoice_tax createMany */ export type invoice_taxCreateManyArgs = { /** * The data used to create many invoice_taxes. */ data: Prisma.invoice_taxCreateManyInput | Prisma.invoice_taxCreateManyInput[] skipDuplicates?: boolean } /** * invoice_tax update */ export type invoice_taxUpdateArgs = { /** * Select specific fields to fetch from the invoice_tax */ select?: Prisma.invoice_taxSelect | null /** * Omit specific fields from the invoice_tax */ omit?: Prisma.invoice_taxOmit | null /** * The data needed to update a invoice_tax. */ data: Prisma.XOR /** * Choose, which invoice_tax to update. */ where: Prisma.invoice_taxWhereUniqueInput } /** * invoice_tax updateMany */ export type invoice_taxUpdateManyArgs = { /** * The data used to update invoice_taxes. */ data: Prisma.XOR /** * Filter which invoice_taxes to update */ where?: Prisma.invoice_taxWhereInput /** * Limit how many invoice_taxes to update. */ limit?: number } /** * invoice_tax upsert */ export type invoice_taxUpsertArgs = { /** * Select specific fields to fetch from the invoice_tax */ select?: Prisma.invoice_taxSelect | null /** * Omit specific fields from the invoice_tax */ omit?: Prisma.invoice_taxOmit | null /** * The filter to search for the invoice_tax to update in case it exists. */ where: Prisma.invoice_taxWhereUniqueInput /** * In case the invoice_tax found by the `where` argument doesn't exist, create a new invoice_tax with this data. */ create: Prisma.XOR /** * In case the invoice_tax was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * invoice_tax delete */ export type invoice_taxDeleteArgs = { /** * Select specific fields to fetch from the invoice_tax */ select?: Prisma.invoice_taxSelect | null /** * Omit specific fields from the invoice_tax */ omit?: Prisma.invoice_taxOmit | null /** * Filter which invoice_tax to delete. */ where: Prisma.invoice_taxWhereUniqueInput } /** * invoice_tax deleteMany */ export type invoice_taxDeleteManyArgs = { /** * Filter which invoice_taxes to delete */ where?: Prisma.invoice_taxWhereInput /** * Limit how many invoice_taxes to delete. */ limit?: number } /** * invoice_tax without action */ export type invoice_taxDefaultArgs = { /** * Select specific fields to fetch from the invoice_tax */ select?: Prisma.invoice_taxSelect | null /** * Omit specific fields from the invoice_tax */ omit?: Prisma.invoice_taxOmit | null }