1060 lines
33 KiB
TypeScript
1060 lines
33 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `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 tax
|
|
*
|
|
*/
|
|
export type taxModel = runtime.Types.Result.DefaultSelection<Prisma.$taxPayload>
|
|
|
|
export type AggregateTax = {
|
|
_count: TaxCountAggregateOutputType | null
|
|
_avg: TaxAvgAggregateOutputType | null
|
|
_sum: TaxSumAggregateOutputType | null
|
|
_min: TaxMinAggregateOutputType | null
|
|
_max: TaxMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type TaxAvgAggregateOutputType = {
|
|
id: number | null
|
|
rate: number | null
|
|
}
|
|
|
|
export type TaxSumAggregateOutputType = {
|
|
id: number | null
|
|
rate: number | null
|
|
}
|
|
|
|
export type TaxMinAggregateOutputType = {
|
|
id: number | null
|
|
name: string | null
|
|
description: string | null
|
|
rate: number | null
|
|
}
|
|
|
|
export type TaxMaxAggregateOutputType = {
|
|
id: number | null
|
|
name: string | null
|
|
description: string | null
|
|
rate: number | null
|
|
}
|
|
|
|
export type TaxCountAggregateOutputType = {
|
|
id: number
|
|
name: number
|
|
description: number
|
|
rate: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type TaxAvgAggregateInputType = {
|
|
id?: true
|
|
rate?: true
|
|
}
|
|
|
|
export type TaxSumAggregateInputType = {
|
|
id?: true
|
|
rate?: true
|
|
}
|
|
|
|
export type TaxMinAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
description?: true
|
|
rate?: true
|
|
}
|
|
|
|
export type TaxMaxAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
description?: true
|
|
rate?: true
|
|
}
|
|
|
|
export type TaxCountAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
description?: true
|
|
rate?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type TaxAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which tax to aggregate.
|
|
*/
|
|
where?: Prisma.taxWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of taxes to fetch.
|
|
*/
|
|
orderBy?: Prisma.taxOrderByWithRelationInput | Prisma.taxOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.taxWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` 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` taxes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned taxes
|
|
**/
|
|
_count?: true | TaxCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: TaxAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: TaxSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: TaxMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: TaxMaxAggregateInputType
|
|
}
|
|
|
|
export type GetTaxAggregateType<T extends TaxAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateTax]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateTax[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateTax[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type taxGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.taxWhereInput
|
|
orderBy?: Prisma.taxOrderByWithAggregationInput | Prisma.taxOrderByWithAggregationInput[]
|
|
by: Prisma.TaxScalarFieldEnum[] | Prisma.TaxScalarFieldEnum
|
|
having?: Prisma.taxScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: TaxCountAggregateInputType | true
|
|
_avg?: TaxAvgAggregateInputType
|
|
_sum?: TaxSumAggregateInputType
|
|
_min?: TaxMinAggregateInputType
|
|
_max?: TaxMaxAggregateInputType
|
|
}
|
|
|
|
export type TaxGroupByOutputType = {
|
|
id: number
|
|
name: string | null
|
|
description: string | null
|
|
rate: number | null
|
|
_count: TaxCountAggregateOutputType | null
|
|
_avg: TaxAvgAggregateOutputType | null
|
|
_sum: TaxSumAggregateOutputType | null
|
|
_min: TaxMinAggregateOutputType | null
|
|
_max: TaxMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetTaxGroupByPayload<T extends taxGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<TaxGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof TaxGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], TaxGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], TaxGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type taxWhereInput = {
|
|
AND?: Prisma.taxWhereInput | Prisma.taxWhereInput[]
|
|
OR?: Prisma.taxWhereInput[]
|
|
NOT?: Prisma.taxWhereInput | Prisma.taxWhereInput[]
|
|
id?: Prisma.IntFilter<"tax"> | number
|
|
name?: Prisma.StringNullableFilter<"tax"> | string | null
|
|
description?: Prisma.StringNullableFilter<"tax"> | string | null
|
|
rate?: Prisma.FloatNullableFilter<"tax"> | number | null
|
|
}
|
|
|
|
export type taxOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
rate?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_relevance?: Prisma.taxOrderByRelevanceInput
|
|
}
|
|
|
|
export type taxWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: Prisma.taxWhereInput | Prisma.taxWhereInput[]
|
|
OR?: Prisma.taxWhereInput[]
|
|
NOT?: Prisma.taxWhereInput | Prisma.taxWhereInput[]
|
|
name?: Prisma.StringNullableFilter<"tax"> | string | null
|
|
description?: Prisma.StringNullableFilter<"tax"> | string | null
|
|
rate?: Prisma.FloatNullableFilter<"tax"> | number | null
|
|
}, "id">
|
|
|
|
export type taxOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
rate?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.taxCountOrderByAggregateInput
|
|
_avg?: Prisma.taxAvgOrderByAggregateInput
|
|
_max?: Prisma.taxMaxOrderByAggregateInput
|
|
_min?: Prisma.taxMinOrderByAggregateInput
|
|
_sum?: Prisma.taxSumOrderByAggregateInput
|
|
}
|
|
|
|
export type taxScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.taxScalarWhereWithAggregatesInput | Prisma.taxScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.taxScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.taxScalarWhereWithAggregatesInput | Prisma.taxScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.IntWithAggregatesFilter<"tax"> | number
|
|
name?: Prisma.StringNullableWithAggregatesFilter<"tax"> | string | null
|
|
description?: Prisma.StringNullableWithAggregatesFilter<"tax"> | string | null
|
|
rate?: Prisma.FloatNullableWithAggregatesFilter<"tax"> | number | null
|
|
}
|
|
|
|
export type taxCreateInput = {
|
|
name?: string | null
|
|
description?: string | null
|
|
rate?: number | null
|
|
}
|
|
|
|
export type taxUncheckedCreateInput = {
|
|
id?: number
|
|
name?: string | null
|
|
description?: string | null
|
|
rate?: number | null
|
|
}
|
|
|
|
export type taxUpdateInput = {
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
}
|
|
|
|
export type taxUncheckedUpdateInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
}
|
|
|
|
export type taxCreateManyInput = {
|
|
id?: number
|
|
name?: string | null
|
|
description?: string | null
|
|
rate?: number | null
|
|
}
|
|
|
|
export type taxUpdateManyMutationInput = {
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
}
|
|
|
|
export type taxUncheckedUpdateManyInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
}
|
|
|
|
export type taxOrderByRelevanceInput = {
|
|
fields: Prisma.taxOrderByRelevanceFieldEnum | Prisma.taxOrderByRelevanceFieldEnum[]
|
|
sort: Prisma.SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type taxCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
rate?: Prisma.SortOrder
|
|
}
|
|
|
|
export type taxAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
rate?: Prisma.SortOrder
|
|
}
|
|
|
|
export type taxMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
rate?: Prisma.SortOrder
|
|
}
|
|
|
|
export type taxMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
rate?: Prisma.SortOrder
|
|
}
|
|
|
|
export type taxSumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
rate?: Prisma.SortOrder
|
|
}
|
|
|
|
|
|
|
|
export type taxSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
rate?: boolean
|
|
}, ExtArgs["result"]["tax"]>
|
|
|
|
|
|
|
|
export type taxSelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
rate?: boolean
|
|
}
|
|
|
|
export type taxOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "rate", ExtArgs["result"]["tax"]>
|
|
|
|
export type $taxPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "tax"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
name: string | null
|
|
description: string | null
|
|
rate: number | null
|
|
}, ExtArgs["result"]["tax"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type taxGetPayload<S extends boolean | null | undefined | taxDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$taxPayload, S>
|
|
|
|
export type taxCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<taxFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: TaxCountAggregateInputType | true
|
|
}
|
|
|
|
export interface taxDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['tax'], meta: { name: 'tax' } }
|
|
/**
|
|
* Find zero or one Tax that matches the filter.
|
|
* @param {taxFindUniqueArgs} args - Arguments to find a Tax
|
|
* @example
|
|
* // Get one Tax
|
|
* const tax = await prisma.tax.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends taxFindUniqueArgs>(args: Prisma.SelectSubset<T, taxFindUniqueArgs<ExtArgs>>): Prisma.Prisma__taxClient<runtime.Types.Result.GetResult<Prisma.$taxPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Tax that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {taxFindUniqueOrThrowArgs} args - Arguments to find a Tax
|
|
* @example
|
|
* // Get one Tax
|
|
* const tax = await prisma.tax.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends taxFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, taxFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__taxClient<runtime.Types.Result.GetResult<Prisma.$taxPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first 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 {taxFindFirstArgs} args - Arguments to find a Tax
|
|
* @example
|
|
* // Get one Tax
|
|
* const tax = await prisma.tax.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends taxFindFirstArgs>(args?: Prisma.SelectSubset<T, taxFindFirstArgs<ExtArgs>>): Prisma.Prisma__taxClient<runtime.Types.Result.GetResult<Prisma.$taxPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first 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 {taxFindFirstOrThrowArgs} args - Arguments to find a Tax
|
|
* @example
|
|
* // Get one Tax
|
|
* const tax = await prisma.tax.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends taxFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, taxFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__taxClient<runtime.Types.Result.GetResult<Prisma.$taxPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more 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 {taxFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Taxes
|
|
* const taxes = await prisma.tax.findMany()
|
|
*
|
|
* // Get first 10 Taxes
|
|
* const taxes = await prisma.tax.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const taxWithIdOnly = await prisma.tax.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends taxFindManyArgs>(args?: Prisma.SelectSubset<T, taxFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$taxPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Tax.
|
|
* @param {taxCreateArgs} args - Arguments to create a Tax.
|
|
* @example
|
|
* // Create one Tax
|
|
* const Tax = await prisma.tax.create({
|
|
* data: {
|
|
* // ... data to create a Tax
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends taxCreateArgs>(args: Prisma.SelectSubset<T, taxCreateArgs<ExtArgs>>): Prisma.Prisma__taxClient<runtime.Types.Result.GetResult<Prisma.$taxPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Taxes.
|
|
* @param {taxCreateManyArgs} args - Arguments to create many Taxes.
|
|
* @example
|
|
* // Create many Taxes
|
|
* const tax = await prisma.tax.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends taxCreateManyArgs>(args?: Prisma.SelectSubset<T, taxCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Delete a Tax.
|
|
* @param {taxDeleteArgs} args - Arguments to delete one Tax.
|
|
* @example
|
|
* // Delete one Tax
|
|
* const Tax = await prisma.tax.delete({
|
|
* where: {
|
|
* // ... filter to delete one Tax
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends taxDeleteArgs>(args: Prisma.SelectSubset<T, taxDeleteArgs<ExtArgs>>): Prisma.Prisma__taxClient<runtime.Types.Result.GetResult<Prisma.$taxPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Tax.
|
|
* @param {taxUpdateArgs} args - Arguments to update one Tax.
|
|
* @example
|
|
* // Update one Tax
|
|
* const tax = await prisma.tax.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends taxUpdateArgs>(args: Prisma.SelectSubset<T, taxUpdateArgs<ExtArgs>>): Prisma.Prisma__taxClient<runtime.Types.Result.GetResult<Prisma.$taxPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Taxes.
|
|
* @param {taxDeleteManyArgs} args - Arguments to filter Taxes to delete.
|
|
* @example
|
|
* // Delete a few Taxes
|
|
* const { count } = await prisma.tax.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends taxDeleteManyArgs>(args?: Prisma.SelectSubset<T, taxDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Taxes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {taxUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Taxes
|
|
* const tax = await prisma.tax.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends taxUpdateManyArgs>(args: Prisma.SelectSubset<T, taxUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Tax.
|
|
* @param {taxUpsertArgs} args - Arguments to update or create a Tax.
|
|
* @example
|
|
* // Update or create a Tax
|
|
* const tax = await prisma.tax.upsert({
|
|
* create: {
|
|
* // ... data to create a Tax
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Tax we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends taxUpsertArgs>(args: Prisma.SelectSubset<T, taxUpsertArgs<ExtArgs>>): Prisma.Prisma__taxClient<runtime.Types.Result.GetResult<Prisma.$taxPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Taxes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {taxCountArgs} args - Arguments to filter Taxes to count.
|
|
* @example
|
|
* // Count the number of Taxes
|
|
* const count = await prisma.tax.count({
|
|
* where: {
|
|
* // ... the filter for the Taxes we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends taxCountArgs>(
|
|
args?: Prisma.Subset<T, taxCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], TaxCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Tax.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {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<T extends TaxAggregateArgs>(args: Prisma.Subset<T, TaxAggregateArgs>): Prisma.PrismaPromise<GetTaxAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Tax.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {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 taxGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: taxGroupByArgs['orderBy'] }
|
|
: { orderBy?: taxGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, taxGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTaxGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the tax model
|
|
*/
|
|
readonly fields: taxFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for 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__taxClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the tax model
|
|
*/
|
|
export interface taxFieldRefs {
|
|
readonly id: Prisma.FieldRef<"tax", 'Int'>
|
|
readonly name: Prisma.FieldRef<"tax", 'String'>
|
|
readonly description: Prisma.FieldRef<"tax", 'String'>
|
|
readonly rate: Prisma.FieldRef<"tax", 'Float'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* tax findUnique
|
|
*/
|
|
export type taxFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tax
|
|
*/
|
|
select?: Prisma.taxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tax
|
|
*/
|
|
omit?: Prisma.taxOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which tax to fetch.
|
|
*/
|
|
where: Prisma.taxWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* tax findUniqueOrThrow
|
|
*/
|
|
export type taxFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tax
|
|
*/
|
|
select?: Prisma.taxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tax
|
|
*/
|
|
omit?: Prisma.taxOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which tax to fetch.
|
|
*/
|
|
where: Prisma.taxWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* tax findFirst
|
|
*/
|
|
export type taxFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tax
|
|
*/
|
|
select?: Prisma.taxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tax
|
|
*/
|
|
omit?: Prisma.taxOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which tax to fetch.
|
|
*/
|
|
where?: Prisma.taxWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of taxes to fetch.
|
|
*/
|
|
orderBy?: Prisma.taxOrderByWithRelationInput | Prisma.taxOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for taxes.
|
|
*/
|
|
cursor?: Prisma.taxWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` 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` taxes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of taxes.
|
|
*/
|
|
distinct?: Prisma.TaxScalarFieldEnum | Prisma.TaxScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* tax findFirstOrThrow
|
|
*/
|
|
export type taxFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tax
|
|
*/
|
|
select?: Prisma.taxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tax
|
|
*/
|
|
omit?: Prisma.taxOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which tax to fetch.
|
|
*/
|
|
where?: Prisma.taxWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of taxes to fetch.
|
|
*/
|
|
orderBy?: Prisma.taxOrderByWithRelationInput | Prisma.taxOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for taxes.
|
|
*/
|
|
cursor?: Prisma.taxWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` 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` taxes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of taxes.
|
|
*/
|
|
distinct?: Prisma.TaxScalarFieldEnum | Prisma.TaxScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* tax findMany
|
|
*/
|
|
export type taxFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tax
|
|
*/
|
|
select?: Prisma.taxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tax
|
|
*/
|
|
omit?: Prisma.taxOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which taxes to fetch.
|
|
*/
|
|
where?: Prisma.taxWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of taxes to fetch.
|
|
*/
|
|
orderBy?: Prisma.taxOrderByWithRelationInput | Prisma.taxOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing taxes.
|
|
*/
|
|
cursor?: Prisma.taxWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` 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` taxes.
|
|
*/
|
|
skip?: number
|
|
distinct?: Prisma.TaxScalarFieldEnum | Prisma.TaxScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* tax create
|
|
*/
|
|
export type taxCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tax
|
|
*/
|
|
select?: Prisma.taxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tax
|
|
*/
|
|
omit?: Prisma.taxOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a tax.
|
|
*/
|
|
data?: Prisma.XOR<Prisma.taxCreateInput, Prisma.taxUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* tax createMany
|
|
*/
|
|
export type taxCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many taxes.
|
|
*/
|
|
data: Prisma.taxCreateManyInput | Prisma.taxCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* tax update
|
|
*/
|
|
export type taxUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tax
|
|
*/
|
|
select?: Prisma.taxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tax
|
|
*/
|
|
omit?: Prisma.taxOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a tax.
|
|
*/
|
|
data: Prisma.XOR<Prisma.taxUpdateInput, Prisma.taxUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which tax to update.
|
|
*/
|
|
where: Prisma.taxWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* tax updateMany
|
|
*/
|
|
export type taxUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update taxes.
|
|
*/
|
|
data: Prisma.XOR<Prisma.taxUpdateManyMutationInput, Prisma.taxUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which taxes to update
|
|
*/
|
|
where?: Prisma.taxWhereInput
|
|
/**
|
|
* Limit how many taxes to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* tax upsert
|
|
*/
|
|
export type taxUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tax
|
|
*/
|
|
select?: Prisma.taxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tax
|
|
*/
|
|
omit?: Prisma.taxOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the tax to update in case it exists.
|
|
*/
|
|
where: Prisma.taxWhereUniqueInput
|
|
/**
|
|
* In case the tax found by the `where` argument doesn't exist, create a new tax with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.taxCreateInput, Prisma.taxUncheckedCreateInput>
|
|
/**
|
|
* In case the tax was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.taxUpdateInput, Prisma.taxUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* tax delete
|
|
*/
|
|
export type taxDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tax
|
|
*/
|
|
select?: Prisma.taxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tax
|
|
*/
|
|
omit?: Prisma.taxOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which tax to delete.
|
|
*/
|
|
where: Prisma.taxWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* tax deleteMany
|
|
*/
|
|
export type taxDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which taxes to delete
|
|
*/
|
|
where?: Prisma.taxWhereInput
|
|
/**
|
|
* Limit how many taxes to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* tax without action
|
|
*/
|
|
export type taxDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tax
|
|
*/
|
|
select?: Prisma.taxSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tax
|
|
*/
|
|
omit?: Prisma.taxOmit<ExtArgs> | null
|
|
}
|