58a7c359d8
- Created SendBulkSaleInvoicesDto for handling bulk sale invoice requests. - Implemented TaxSwitchSendPayloadDto and related DTOs for tax switch item payloads and results. - Developed SalesInvoiceTaxSwitchService to manage tax switch operations, including sending and retrieving tax information. - Added SalesInvoiceTaxService for handling sales invoice tax logic, including bulk sending and persistence of results. - Introduced NamaTaxSwitchAdapter to interact with the tax switch service, simulating external API responses. - Created SendBulkSalesInvoicesDto for POS module to handle bulk sales invoice requests.
1389 lines
55 KiB
TypeScript
1389 lines
55 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 `SaleInvoiceFiscals` 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.js"
|
|
import type * as Prisma from "../internal/prismaNamespace.js"
|
|
|
|
/**
|
|
* Model SaleInvoiceFiscals
|
|
*
|
|
*/
|
|
export type SaleInvoiceFiscalsModel = runtime.Types.Result.DefaultSelection<Prisma.$SaleInvoiceFiscalsPayload>
|
|
|
|
export type AggregateSaleInvoiceFiscals = {
|
|
_count: SaleInvoiceFiscalsCountAggregateOutputType | null
|
|
_avg: SaleInvoiceFiscalsAvgAggregateOutputType | null
|
|
_sum: SaleInvoiceFiscalsSumAggregateOutputType | null
|
|
_min: SaleInvoiceFiscalsMinAggregateOutputType | null
|
|
_max: SaleInvoiceFiscalsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsAvgAggregateOutputType = {
|
|
retry_count: number | null
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsSumAggregateOutputType = {
|
|
retry_count: number | null
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsMinAggregateOutputType = {
|
|
id: string | null
|
|
retry_count: number | null
|
|
last_attempt_at: Date | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
invoice_id: string | null
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsMaxAggregateOutputType = {
|
|
id: string | null
|
|
retry_count: number | null
|
|
last_attempt_at: Date | null
|
|
created_at: Date | null
|
|
updated_at: Date | null
|
|
invoice_id: string | null
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsCountAggregateOutputType = {
|
|
id: number
|
|
retry_count: number
|
|
last_attempt_at: number
|
|
created_at: number
|
|
updated_at: number
|
|
invoice_id: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type SaleInvoiceFiscalsAvgAggregateInputType = {
|
|
retry_count?: true
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsSumAggregateInputType = {
|
|
retry_count?: true
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsMinAggregateInputType = {
|
|
id?: true
|
|
retry_count?: true
|
|
last_attempt_at?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
invoice_id?: true
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsMaxAggregateInputType = {
|
|
id?: true
|
|
retry_count?: true
|
|
last_attempt_at?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
invoice_id?: true
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsCountAggregateInputType = {
|
|
id?: true
|
|
retry_count?: true
|
|
last_attempt_at?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
invoice_id?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SaleInvoiceFiscals to aggregate.
|
|
*/
|
|
where?: Prisma.SaleInvoiceFiscalsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SaleInvoiceFiscals to fetch.
|
|
*/
|
|
orderBy?: Prisma.SaleInvoiceFiscalsOrderByWithRelationInput | Prisma.SaleInvoiceFiscalsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.SaleInvoiceFiscalsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SaleInvoiceFiscals 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` SaleInvoiceFiscals.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned SaleInvoiceFiscals
|
|
**/
|
|
_count?: true | SaleInvoiceFiscalsCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: SaleInvoiceFiscalsAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: SaleInvoiceFiscalsSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: SaleInvoiceFiscalsMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: SaleInvoiceFiscalsMaxAggregateInputType
|
|
}
|
|
|
|
export type GetSaleInvoiceFiscalsAggregateType<T extends SaleInvoiceFiscalsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateSaleInvoiceFiscals]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateSaleInvoiceFiscals[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateSaleInvoiceFiscals[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SaleInvoiceFiscalsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.SaleInvoiceFiscalsWhereInput
|
|
orderBy?: Prisma.SaleInvoiceFiscalsOrderByWithAggregationInput | Prisma.SaleInvoiceFiscalsOrderByWithAggregationInput[]
|
|
by: Prisma.SaleInvoiceFiscalsScalarFieldEnum[] | Prisma.SaleInvoiceFiscalsScalarFieldEnum
|
|
having?: Prisma.SaleInvoiceFiscalsScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: SaleInvoiceFiscalsCountAggregateInputType | true
|
|
_avg?: SaleInvoiceFiscalsAvgAggregateInputType
|
|
_sum?: SaleInvoiceFiscalsSumAggregateInputType
|
|
_min?: SaleInvoiceFiscalsMinAggregateInputType
|
|
_max?: SaleInvoiceFiscalsMaxAggregateInputType
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsGroupByOutputType = {
|
|
id: string
|
|
retry_count: number
|
|
last_attempt_at: Date | null
|
|
created_at: Date
|
|
updated_at: Date
|
|
invoice_id: string
|
|
_count: SaleInvoiceFiscalsCountAggregateOutputType | null
|
|
_avg: SaleInvoiceFiscalsAvgAggregateOutputType | null
|
|
_sum: SaleInvoiceFiscalsSumAggregateOutputType | null
|
|
_min: SaleInvoiceFiscalsMinAggregateOutputType | null
|
|
_max: SaleInvoiceFiscalsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetSaleInvoiceFiscalsGroupByPayload<T extends SaleInvoiceFiscalsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<SaleInvoiceFiscalsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof SaleInvoiceFiscalsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], SaleInvoiceFiscalsGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], SaleInvoiceFiscalsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type SaleInvoiceFiscalsWhereInput = {
|
|
AND?: Prisma.SaleInvoiceFiscalsWhereInput | Prisma.SaleInvoiceFiscalsWhereInput[]
|
|
OR?: Prisma.SaleInvoiceFiscalsWhereInput[]
|
|
NOT?: Prisma.SaleInvoiceFiscalsWhereInput | Prisma.SaleInvoiceFiscalsWhereInput[]
|
|
id?: Prisma.StringFilter<"SaleInvoiceFiscals"> | string
|
|
retry_count?: Prisma.IntFilter<"SaleInvoiceFiscals"> | number
|
|
last_attempt_at?: Prisma.DateTimeNullableFilter<"SaleInvoiceFiscals"> | Date | string | null
|
|
created_at?: Prisma.DateTimeFilter<"SaleInvoiceFiscals"> | Date | string
|
|
updated_at?: Prisma.DateTimeFilter<"SaleInvoiceFiscals"> | Date | string
|
|
invoice_id?: Prisma.StringFilter<"SaleInvoiceFiscals"> | string
|
|
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
|
attempts?: Prisma.SaleInvoiceFiscalAttemptsListRelationFilter
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
retry_count?: Prisma.SortOrder
|
|
last_attempt_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrder
|
|
invoice_id?: Prisma.SortOrder
|
|
invoice?: Prisma.SalesInvoiceOrderByWithRelationInput
|
|
attempts?: Prisma.SaleInvoiceFiscalAttemptsOrderByRelationAggregateInput
|
|
_relevance?: Prisma.SaleInvoiceFiscalsOrderByRelevanceInput
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
invoice_id?: string
|
|
AND?: Prisma.SaleInvoiceFiscalsWhereInput | Prisma.SaleInvoiceFiscalsWhereInput[]
|
|
OR?: Prisma.SaleInvoiceFiscalsWhereInput[]
|
|
NOT?: Prisma.SaleInvoiceFiscalsWhereInput | Prisma.SaleInvoiceFiscalsWhereInput[]
|
|
retry_count?: Prisma.IntFilter<"SaleInvoiceFiscals"> | number
|
|
last_attempt_at?: Prisma.DateTimeNullableFilter<"SaleInvoiceFiscals"> | Date | string | null
|
|
created_at?: Prisma.DateTimeFilter<"SaleInvoiceFiscals"> | Date | string
|
|
updated_at?: Prisma.DateTimeFilter<"SaleInvoiceFiscals"> | Date | string
|
|
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
|
attempts?: Prisma.SaleInvoiceFiscalAttemptsListRelationFilter
|
|
}, "id" | "invoice_id">
|
|
|
|
export type SaleInvoiceFiscalsOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
retry_count?: Prisma.SortOrder
|
|
last_attempt_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrder
|
|
invoice_id?: Prisma.SortOrder
|
|
_count?: Prisma.SaleInvoiceFiscalsCountOrderByAggregateInput
|
|
_avg?: Prisma.SaleInvoiceFiscalsAvgOrderByAggregateInput
|
|
_max?: Prisma.SaleInvoiceFiscalsMaxOrderByAggregateInput
|
|
_min?: Prisma.SaleInvoiceFiscalsMinOrderByAggregateInput
|
|
_sum?: Prisma.SaleInvoiceFiscalsSumOrderByAggregateInput
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.SaleInvoiceFiscalsScalarWhereWithAggregatesInput | Prisma.SaleInvoiceFiscalsScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.SaleInvoiceFiscalsScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.SaleInvoiceFiscalsScalarWhereWithAggregatesInput | Prisma.SaleInvoiceFiscalsScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"SaleInvoiceFiscals"> | string
|
|
retry_count?: Prisma.IntWithAggregatesFilter<"SaleInvoiceFiscals"> | number
|
|
last_attempt_at?: Prisma.DateTimeNullableWithAggregatesFilter<"SaleInvoiceFiscals"> | Date | string | null
|
|
created_at?: Prisma.DateTimeWithAggregatesFilter<"SaleInvoiceFiscals"> | Date | string
|
|
updated_at?: Prisma.DateTimeWithAggregatesFilter<"SaleInvoiceFiscals"> | Date | string
|
|
invoice_id?: Prisma.StringWithAggregatesFilter<"SaleInvoiceFiscals"> | string
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsCreateInput = {
|
|
id?: string
|
|
retry_count?: number
|
|
last_attempt_at?: Date | string | null
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutFiscalInput
|
|
attempts?: Prisma.SaleInvoiceFiscalAttemptsCreateNestedManyWithoutFiscalInput
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsUncheckedCreateInput = {
|
|
id?: string
|
|
retry_count?: number
|
|
last_attempt_at?: Date | string | null
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
invoice_id: string
|
|
attempts?: Prisma.SaleInvoiceFiscalAttemptsUncheckedCreateNestedManyWithoutFiscalInput
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
retry_count?: Prisma.IntFieldUpdateOperationsInput | number
|
|
last_attempt_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutFiscalNestedInput
|
|
attempts?: Prisma.SaleInvoiceFiscalAttemptsUpdateManyWithoutFiscalNestedInput
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
retry_count?: Prisma.IntFieldUpdateOperationsInput | number
|
|
last_attempt_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
attempts?: Prisma.SaleInvoiceFiscalAttemptsUncheckedUpdateManyWithoutFiscalNestedInput
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsCreateManyInput = {
|
|
id?: string
|
|
retry_count?: number
|
|
last_attempt_at?: Date | string | null
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
invoice_id: string
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
retry_count?: Prisma.IntFieldUpdateOperationsInput | number
|
|
last_attempt_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
retry_count?: Prisma.IntFieldUpdateOperationsInput | number
|
|
last_attempt_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsNullableScalarRelationFilter = {
|
|
is?: Prisma.SaleInvoiceFiscalsWhereInput | null
|
|
isNot?: Prisma.SaleInvoiceFiscalsWhereInput | null
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsOrderByRelevanceInput = {
|
|
fields: Prisma.SaleInvoiceFiscalsOrderByRelevanceFieldEnum | Prisma.SaleInvoiceFiscalsOrderByRelevanceFieldEnum[]
|
|
sort: Prisma.SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
retry_count?: Prisma.SortOrder
|
|
last_attempt_at?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrder
|
|
invoice_id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsAvgOrderByAggregateInput = {
|
|
retry_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
retry_count?: Prisma.SortOrder
|
|
last_attempt_at?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrder
|
|
invoice_id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
retry_count?: Prisma.SortOrder
|
|
last_attempt_at?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrder
|
|
invoice_id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsSumOrderByAggregateInput = {
|
|
retry_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsScalarRelationFilter = {
|
|
is?: Prisma.SaleInvoiceFiscalsWhereInput
|
|
isNot?: Prisma.SaleInvoiceFiscalsWhereInput
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsCreateNestedOneWithoutInvoiceInput = {
|
|
create?: Prisma.XOR<Prisma.SaleInvoiceFiscalsCreateWithoutInvoiceInput, Prisma.SaleInvoiceFiscalsUncheckedCreateWithoutInvoiceInput>
|
|
connectOrCreate?: Prisma.SaleInvoiceFiscalsCreateOrConnectWithoutInvoiceInput
|
|
connect?: Prisma.SaleInvoiceFiscalsWhereUniqueInput
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsUncheckedCreateNestedOneWithoutInvoiceInput = {
|
|
create?: Prisma.XOR<Prisma.SaleInvoiceFiscalsCreateWithoutInvoiceInput, Prisma.SaleInvoiceFiscalsUncheckedCreateWithoutInvoiceInput>
|
|
connectOrCreate?: Prisma.SaleInvoiceFiscalsCreateOrConnectWithoutInvoiceInput
|
|
connect?: Prisma.SaleInvoiceFiscalsWhereUniqueInput
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsUpdateOneWithoutInvoiceNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SaleInvoiceFiscalsCreateWithoutInvoiceInput, Prisma.SaleInvoiceFiscalsUncheckedCreateWithoutInvoiceInput>
|
|
connectOrCreate?: Prisma.SaleInvoiceFiscalsCreateOrConnectWithoutInvoiceInput
|
|
upsert?: Prisma.SaleInvoiceFiscalsUpsertWithoutInvoiceInput
|
|
disconnect?: Prisma.SaleInvoiceFiscalsWhereInput | boolean
|
|
delete?: Prisma.SaleInvoiceFiscalsWhereInput | boolean
|
|
connect?: Prisma.SaleInvoiceFiscalsWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.SaleInvoiceFiscalsUpdateToOneWithWhereWithoutInvoiceInput, Prisma.SaleInvoiceFiscalsUpdateWithoutInvoiceInput>, Prisma.SaleInvoiceFiscalsUncheckedUpdateWithoutInvoiceInput>
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsUncheckedUpdateOneWithoutInvoiceNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SaleInvoiceFiscalsCreateWithoutInvoiceInput, Prisma.SaleInvoiceFiscalsUncheckedCreateWithoutInvoiceInput>
|
|
connectOrCreate?: Prisma.SaleInvoiceFiscalsCreateOrConnectWithoutInvoiceInput
|
|
upsert?: Prisma.SaleInvoiceFiscalsUpsertWithoutInvoiceInput
|
|
disconnect?: Prisma.SaleInvoiceFiscalsWhereInput | boolean
|
|
delete?: Prisma.SaleInvoiceFiscalsWhereInput | boolean
|
|
connect?: Prisma.SaleInvoiceFiscalsWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.SaleInvoiceFiscalsUpdateToOneWithWhereWithoutInvoiceInput, Prisma.SaleInvoiceFiscalsUpdateWithoutInvoiceInput>, Prisma.SaleInvoiceFiscalsUncheckedUpdateWithoutInvoiceInput>
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsCreateNestedOneWithoutAttemptsInput = {
|
|
create?: Prisma.XOR<Prisma.SaleInvoiceFiscalsCreateWithoutAttemptsInput, Prisma.SaleInvoiceFiscalsUncheckedCreateWithoutAttemptsInput>
|
|
connectOrCreate?: Prisma.SaleInvoiceFiscalsCreateOrConnectWithoutAttemptsInput
|
|
connect?: Prisma.SaleInvoiceFiscalsWhereUniqueInput
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsUpdateOneRequiredWithoutAttemptsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SaleInvoiceFiscalsCreateWithoutAttemptsInput, Prisma.SaleInvoiceFiscalsUncheckedCreateWithoutAttemptsInput>
|
|
connectOrCreate?: Prisma.SaleInvoiceFiscalsCreateOrConnectWithoutAttemptsInput
|
|
upsert?: Prisma.SaleInvoiceFiscalsUpsertWithoutAttemptsInput
|
|
connect?: Prisma.SaleInvoiceFiscalsWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.SaleInvoiceFiscalsUpdateToOneWithWhereWithoutAttemptsInput, Prisma.SaleInvoiceFiscalsUpdateWithoutAttemptsInput>, Prisma.SaleInvoiceFiscalsUncheckedUpdateWithoutAttemptsInput>
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsCreateWithoutInvoiceInput = {
|
|
id?: string
|
|
retry_count?: number
|
|
last_attempt_at?: Date | string | null
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
attempts?: Prisma.SaleInvoiceFiscalAttemptsCreateNestedManyWithoutFiscalInput
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsUncheckedCreateWithoutInvoiceInput = {
|
|
id?: string
|
|
retry_count?: number
|
|
last_attempt_at?: Date | string | null
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
attempts?: Prisma.SaleInvoiceFiscalAttemptsUncheckedCreateNestedManyWithoutFiscalInput
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsCreateOrConnectWithoutInvoiceInput = {
|
|
where: Prisma.SaleInvoiceFiscalsWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.SaleInvoiceFiscalsCreateWithoutInvoiceInput, Prisma.SaleInvoiceFiscalsUncheckedCreateWithoutInvoiceInput>
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsUpsertWithoutInvoiceInput = {
|
|
update: Prisma.XOR<Prisma.SaleInvoiceFiscalsUpdateWithoutInvoiceInput, Prisma.SaleInvoiceFiscalsUncheckedUpdateWithoutInvoiceInput>
|
|
create: Prisma.XOR<Prisma.SaleInvoiceFiscalsCreateWithoutInvoiceInput, Prisma.SaleInvoiceFiscalsUncheckedCreateWithoutInvoiceInput>
|
|
where?: Prisma.SaleInvoiceFiscalsWhereInput
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsUpdateToOneWithWhereWithoutInvoiceInput = {
|
|
where?: Prisma.SaleInvoiceFiscalsWhereInput
|
|
data: Prisma.XOR<Prisma.SaleInvoiceFiscalsUpdateWithoutInvoiceInput, Prisma.SaleInvoiceFiscalsUncheckedUpdateWithoutInvoiceInput>
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsUpdateWithoutInvoiceInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
retry_count?: Prisma.IntFieldUpdateOperationsInput | number
|
|
last_attempt_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
attempts?: Prisma.SaleInvoiceFiscalAttemptsUpdateManyWithoutFiscalNestedInput
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsUncheckedUpdateWithoutInvoiceInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
retry_count?: Prisma.IntFieldUpdateOperationsInput | number
|
|
last_attempt_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
attempts?: Prisma.SaleInvoiceFiscalAttemptsUncheckedUpdateManyWithoutFiscalNestedInput
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsCreateWithoutAttemptsInput = {
|
|
id?: string
|
|
retry_count?: number
|
|
last_attempt_at?: Date | string | null
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutFiscalInput
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsUncheckedCreateWithoutAttemptsInput = {
|
|
id?: string
|
|
retry_count?: number
|
|
last_attempt_at?: Date | string | null
|
|
created_at?: Date | string
|
|
updated_at?: Date | string
|
|
invoice_id: string
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsCreateOrConnectWithoutAttemptsInput = {
|
|
where: Prisma.SaleInvoiceFiscalsWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.SaleInvoiceFiscalsCreateWithoutAttemptsInput, Prisma.SaleInvoiceFiscalsUncheckedCreateWithoutAttemptsInput>
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsUpsertWithoutAttemptsInput = {
|
|
update: Prisma.XOR<Prisma.SaleInvoiceFiscalsUpdateWithoutAttemptsInput, Prisma.SaleInvoiceFiscalsUncheckedUpdateWithoutAttemptsInput>
|
|
create: Prisma.XOR<Prisma.SaleInvoiceFiscalsCreateWithoutAttemptsInput, Prisma.SaleInvoiceFiscalsUncheckedCreateWithoutAttemptsInput>
|
|
where?: Prisma.SaleInvoiceFiscalsWhereInput
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsUpdateToOneWithWhereWithoutAttemptsInput = {
|
|
where?: Prisma.SaleInvoiceFiscalsWhereInput
|
|
data: Prisma.XOR<Prisma.SaleInvoiceFiscalsUpdateWithoutAttemptsInput, Prisma.SaleInvoiceFiscalsUncheckedUpdateWithoutAttemptsInput>
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsUpdateWithoutAttemptsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
retry_count?: Prisma.IntFieldUpdateOperationsInput | number
|
|
last_attempt_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutFiscalNestedInput
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsUncheckedUpdateWithoutAttemptsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
retry_count?: Prisma.IntFieldUpdateOperationsInput | number
|
|
last_attempt_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type SaleInvoiceFiscalsCountOutputType
|
|
*/
|
|
|
|
export type SaleInvoiceFiscalsCountOutputType = {
|
|
attempts: number
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
attempts?: boolean | SaleInvoiceFiscalsCountOutputTypeCountAttemptsArgs
|
|
}
|
|
|
|
/**
|
|
* SaleInvoiceFiscalsCountOutputType without action
|
|
*/
|
|
export type SaleInvoiceFiscalsCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SaleInvoiceFiscalsCountOutputType
|
|
*/
|
|
select?: Prisma.SaleInvoiceFiscalsCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* SaleInvoiceFiscalsCountOutputType without action
|
|
*/
|
|
export type SaleInvoiceFiscalsCountOutputTypeCountAttemptsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.SaleInvoiceFiscalAttemptsWhereInput
|
|
}
|
|
|
|
|
|
export type SaleInvoiceFiscalsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
retry_count?: boolean
|
|
last_attempt_at?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
invoice_id?: boolean
|
|
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
|
attempts?: boolean | Prisma.SaleInvoiceFiscals$attemptsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.SaleInvoiceFiscalsCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["saleInvoiceFiscals"]>
|
|
|
|
|
|
|
|
export type SaleInvoiceFiscalsSelectScalar = {
|
|
id?: boolean
|
|
retry_count?: boolean
|
|
last_attempt_at?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
invoice_id?: boolean
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "retry_count" | "last_attempt_at" | "created_at" | "updated_at" | "invoice_id", ExtArgs["result"]["saleInvoiceFiscals"]>
|
|
export type SaleInvoiceFiscalsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
|
attempts?: boolean | Prisma.SaleInvoiceFiscals$attemptsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.SaleInvoiceFiscalsCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $SaleInvoiceFiscalsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "SaleInvoiceFiscals"
|
|
objects: {
|
|
invoice: Prisma.$SalesInvoicePayload<ExtArgs>
|
|
attempts: Prisma.$SaleInvoiceFiscalAttemptsPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
retry_count: number
|
|
last_attempt_at: Date | null
|
|
created_at: Date
|
|
updated_at: Date
|
|
invoice_id: string
|
|
}, ExtArgs["result"]["saleInvoiceFiscals"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type SaleInvoiceFiscalsGetPayload<S extends boolean | null | undefined | SaleInvoiceFiscalsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SaleInvoiceFiscalsPayload, S>
|
|
|
|
export type SaleInvoiceFiscalsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<SaleInvoiceFiscalsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: SaleInvoiceFiscalsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface SaleInvoiceFiscalsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SaleInvoiceFiscals'], meta: { name: 'SaleInvoiceFiscals' } }
|
|
/**
|
|
* Find zero or one SaleInvoiceFiscals that matches the filter.
|
|
* @param {SaleInvoiceFiscalsFindUniqueArgs} args - Arguments to find a SaleInvoiceFiscals
|
|
* @example
|
|
* // Get one SaleInvoiceFiscals
|
|
* const saleInvoiceFiscals = await prisma.saleInvoiceFiscals.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends SaleInvoiceFiscalsFindUniqueArgs>(args: Prisma.SelectSubset<T, SaleInvoiceFiscalsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SaleInvoiceFiscalsClient<runtime.Types.Result.GetResult<Prisma.$SaleInvoiceFiscalsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one SaleInvoiceFiscals that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {SaleInvoiceFiscalsFindUniqueOrThrowArgs} args - Arguments to find a SaleInvoiceFiscals
|
|
* @example
|
|
* // Get one SaleInvoiceFiscals
|
|
* const saleInvoiceFiscals = await prisma.saleInvoiceFiscals.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends SaleInvoiceFiscalsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SaleInvoiceFiscalsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SaleInvoiceFiscalsClient<runtime.Types.Result.GetResult<Prisma.$SaleInvoiceFiscalsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first SaleInvoiceFiscals 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 {SaleInvoiceFiscalsFindFirstArgs} args - Arguments to find a SaleInvoiceFiscals
|
|
* @example
|
|
* // Get one SaleInvoiceFiscals
|
|
* const saleInvoiceFiscals = await prisma.saleInvoiceFiscals.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends SaleInvoiceFiscalsFindFirstArgs>(args?: Prisma.SelectSubset<T, SaleInvoiceFiscalsFindFirstArgs<ExtArgs>>): Prisma.Prisma__SaleInvoiceFiscalsClient<runtime.Types.Result.GetResult<Prisma.$SaleInvoiceFiscalsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first SaleInvoiceFiscals 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 {SaleInvoiceFiscalsFindFirstOrThrowArgs} args - Arguments to find a SaleInvoiceFiscals
|
|
* @example
|
|
* // Get one SaleInvoiceFiscals
|
|
* const saleInvoiceFiscals = await prisma.saleInvoiceFiscals.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends SaleInvoiceFiscalsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SaleInvoiceFiscalsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SaleInvoiceFiscalsClient<runtime.Types.Result.GetResult<Prisma.$SaleInvoiceFiscalsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more SaleInvoiceFiscals 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 {SaleInvoiceFiscalsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all SaleInvoiceFiscals
|
|
* const saleInvoiceFiscals = await prisma.saleInvoiceFiscals.findMany()
|
|
*
|
|
* // Get first 10 SaleInvoiceFiscals
|
|
* const saleInvoiceFiscals = await prisma.saleInvoiceFiscals.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const saleInvoiceFiscalsWithIdOnly = await prisma.saleInvoiceFiscals.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends SaleInvoiceFiscalsFindManyArgs>(args?: Prisma.SelectSubset<T, SaleInvoiceFiscalsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SaleInvoiceFiscalsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a SaleInvoiceFiscals.
|
|
* @param {SaleInvoiceFiscalsCreateArgs} args - Arguments to create a SaleInvoiceFiscals.
|
|
* @example
|
|
* // Create one SaleInvoiceFiscals
|
|
* const SaleInvoiceFiscals = await prisma.saleInvoiceFiscals.create({
|
|
* data: {
|
|
* // ... data to create a SaleInvoiceFiscals
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends SaleInvoiceFiscalsCreateArgs>(args: Prisma.SelectSubset<T, SaleInvoiceFiscalsCreateArgs<ExtArgs>>): Prisma.Prisma__SaleInvoiceFiscalsClient<runtime.Types.Result.GetResult<Prisma.$SaleInvoiceFiscalsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many SaleInvoiceFiscals.
|
|
* @param {SaleInvoiceFiscalsCreateManyArgs} args - Arguments to create many SaleInvoiceFiscals.
|
|
* @example
|
|
* // Create many SaleInvoiceFiscals
|
|
* const saleInvoiceFiscals = await prisma.saleInvoiceFiscals.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends SaleInvoiceFiscalsCreateManyArgs>(args?: Prisma.SelectSubset<T, SaleInvoiceFiscalsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Delete a SaleInvoiceFiscals.
|
|
* @param {SaleInvoiceFiscalsDeleteArgs} args - Arguments to delete one SaleInvoiceFiscals.
|
|
* @example
|
|
* // Delete one SaleInvoiceFiscals
|
|
* const SaleInvoiceFiscals = await prisma.saleInvoiceFiscals.delete({
|
|
* where: {
|
|
* // ... filter to delete one SaleInvoiceFiscals
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends SaleInvoiceFiscalsDeleteArgs>(args: Prisma.SelectSubset<T, SaleInvoiceFiscalsDeleteArgs<ExtArgs>>): Prisma.Prisma__SaleInvoiceFiscalsClient<runtime.Types.Result.GetResult<Prisma.$SaleInvoiceFiscalsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one SaleInvoiceFiscals.
|
|
* @param {SaleInvoiceFiscalsUpdateArgs} args - Arguments to update one SaleInvoiceFiscals.
|
|
* @example
|
|
* // Update one SaleInvoiceFiscals
|
|
* const saleInvoiceFiscals = await prisma.saleInvoiceFiscals.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends SaleInvoiceFiscalsUpdateArgs>(args: Prisma.SelectSubset<T, SaleInvoiceFiscalsUpdateArgs<ExtArgs>>): Prisma.Prisma__SaleInvoiceFiscalsClient<runtime.Types.Result.GetResult<Prisma.$SaleInvoiceFiscalsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more SaleInvoiceFiscals.
|
|
* @param {SaleInvoiceFiscalsDeleteManyArgs} args - Arguments to filter SaleInvoiceFiscals to delete.
|
|
* @example
|
|
* // Delete a few SaleInvoiceFiscals
|
|
* const { count } = await prisma.saleInvoiceFiscals.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends SaleInvoiceFiscalsDeleteManyArgs>(args?: Prisma.SelectSubset<T, SaleInvoiceFiscalsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more SaleInvoiceFiscals.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SaleInvoiceFiscalsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many SaleInvoiceFiscals
|
|
* const saleInvoiceFiscals = await prisma.saleInvoiceFiscals.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends SaleInvoiceFiscalsUpdateManyArgs>(args: Prisma.SelectSubset<T, SaleInvoiceFiscalsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create or update one SaleInvoiceFiscals.
|
|
* @param {SaleInvoiceFiscalsUpsertArgs} args - Arguments to update or create a SaleInvoiceFiscals.
|
|
* @example
|
|
* // Update or create a SaleInvoiceFiscals
|
|
* const saleInvoiceFiscals = await prisma.saleInvoiceFiscals.upsert({
|
|
* create: {
|
|
* // ... data to create a SaleInvoiceFiscals
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the SaleInvoiceFiscals we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends SaleInvoiceFiscalsUpsertArgs>(args: Prisma.SelectSubset<T, SaleInvoiceFiscalsUpsertArgs<ExtArgs>>): Prisma.Prisma__SaleInvoiceFiscalsClient<runtime.Types.Result.GetResult<Prisma.$SaleInvoiceFiscalsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of SaleInvoiceFiscals.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SaleInvoiceFiscalsCountArgs} args - Arguments to filter SaleInvoiceFiscals to count.
|
|
* @example
|
|
* // Count the number of SaleInvoiceFiscals
|
|
* const count = await prisma.saleInvoiceFiscals.count({
|
|
* where: {
|
|
* // ... the filter for the SaleInvoiceFiscals we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends SaleInvoiceFiscalsCountArgs>(
|
|
args?: Prisma.Subset<T, SaleInvoiceFiscalsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], SaleInvoiceFiscalsCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a SaleInvoiceFiscals.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SaleInvoiceFiscalsAggregateArgs} 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 SaleInvoiceFiscalsAggregateArgs>(args: Prisma.Subset<T, SaleInvoiceFiscalsAggregateArgs>): Prisma.PrismaPromise<GetSaleInvoiceFiscalsAggregateType<T>>
|
|
|
|
/**
|
|
* Group by SaleInvoiceFiscals.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SaleInvoiceFiscalsGroupByArgs} 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 SaleInvoiceFiscalsGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: SaleInvoiceFiscalsGroupByArgs['orderBy'] }
|
|
: { orderBy?: SaleInvoiceFiscalsGroupByArgs['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, SaleInvoiceFiscalsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSaleInvoiceFiscalsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the SaleInvoiceFiscals model
|
|
*/
|
|
readonly fields: SaleInvoiceFiscalsFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for SaleInvoiceFiscals.
|
|
* 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__SaleInvoiceFiscalsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
invoice<T extends Prisma.SalesInvoiceDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoiceDefaultArgs<ExtArgs>>): Prisma.Prisma__SalesInvoiceClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
attempts<T extends Prisma.SaleInvoiceFiscals$attemptsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SaleInvoiceFiscals$attemptsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SaleInvoiceFiscalAttemptsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* 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 SaleInvoiceFiscals model
|
|
*/
|
|
export interface SaleInvoiceFiscalsFieldRefs {
|
|
readonly id: Prisma.FieldRef<"SaleInvoiceFiscals", 'String'>
|
|
readonly retry_count: Prisma.FieldRef<"SaleInvoiceFiscals", 'Int'>
|
|
readonly last_attempt_at: Prisma.FieldRef<"SaleInvoiceFiscals", 'DateTime'>
|
|
readonly created_at: Prisma.FieldRef<"SaleInvoiceFiscals", 'DateTime'>
|
|
readonly updated_at: Prisma.FieldRef<"SaleInvoiceFiscals", 'DateTime'>
|
|
readonly invoice_id: Prisma.FieldRef<"SaleInvoiceFiscals", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* SaleInvoiceFiscals findUnique
|
|
*/
|
|
export type SaleInvoiceFiscalsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SaleInvoiceFiscals
|
|
*/
|
|
select?: Prisma.SaleInvoiceFiscalsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SaleInvoiceFiscals
|
|
*/
|
|
omit?: Prisma.SaleInvoiceFiscalsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SaleInvoiceFiscalsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SaleInvoiceFiscals to fetch.
|
|
*/
|
|
where: Prisma.SaleInvoiceFiscalsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SaleInvoiceFiscals findUniqueOrThrow
|
|
*/
|
|
export type SaleInvoiceFiscalsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SaleInvoiceFiscals
|
|
*/
|
|
select?: Prisma.SaleInvoiceFiscalsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SaleInvoiceFiscals
|
|
*/
|
|
omit?: Prisma.SaleInvoiceFiscalsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SaleInvoiceFiscalsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SaleInvoiceFiscals to fetch.
|
|
*/
|
|
where: Prisma.SaleInvoiceFiscalsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SaleInvoiceFiscals findFirst
|
|
*/
|
|
export type SaleInvoiceFiscalsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SaleInvoiceFiscals
|
|
*/
|
|
select?: Prisma.SaleInvoiceFiscalsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SaleInvoiceFiscals
|
|
*/
|
|
omit?: Prisma.SaleInvoiceFiscalsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SaleInvoiceFiscalsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SaleInvoiceFiscals to fetch.
|
|
*/
|
|
where?: Prisma.SaleInvoiceFiscalsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SaleInvoiceFiscals to fetch.
|
|
*/
|
|
orderBy?: Prisma.SaleInvoiceFiscalsOrderByWithRelationInput | Prisma.SaleInvoiceFiscalsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for SaleInvoiceFiscals.
|
|
*/
|
|
cursor?: Prisma.SaleInvoiceFiscalsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SaleInvoiceFiscals 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` SaleInvoiceFiscals.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SaleInvoiceFiscals.
|
|
*/
|
|
distinct?: Prisma.SaleInvoiceFiscalsScalarFieldEnum | Prisma.SaleInvoiceFiscalsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SaleInvoiceFiscals findFirstOrThrow
|
|
*/
|
|
export type SaleInvoiceFiscalsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SaleInvoiceFiscals
|
|
*/
|
|
select?: Prisma.SaleInvoiceFiscalsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SaleInvoiceFiscals
|
|
*/
|
|
omit?: Prisma.SaleInvoiceFiscalsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SaleInvoiceFiscalsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SaleInvoiceFiscals to fetch.
|
|
*/
|
|
where?: Prisma.SaleInvoiceFiscalsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SaleInvoiceFiscals to fetch.
|
|
*/
|
|
orderBy?: Prisma.SaleInvoiceFiscalsOrderByWithRelationInput | Prisma.SaleInvoiceFiscalsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for SaleInvoiceFiscals.
|
|
*/
|
|
cursor?: Prisma.SaleInvoiceFiscalsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SaleInvoiceFiscals 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` SaleInvoiceFiscals.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SaleInvoiceFiscals.
|
|
*/
|
|
distinct?: Prisma.SaleInvoiceFiscalsScalarFieldEnum | Prisma.SaleInvoiceFiscalsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SaleInvoiceFiscals findMany
|
|
*/
|
|
export type SaleInvoiceFiscalsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SaleInvoiceFiscals
|
|
*/
|
|
select?: Prisma.SaleInvoiceFiscalsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SaleInvoiceFiscals
|
|
*/
|
|
omit?: Prisma.SaleInvoiceFiscalsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SaleInvoiceFiscalsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SaleInvoiceFiscals to fetch.
|
|
*/
|
|
where?: Prisma.SaleInvoiceFiscalsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SaleInvoiceFiscals to fetch.
|
|
*/
|
|
orderBy?: Prisma.SaleInvoiceFiscalsOrderByWithRelationInput | Prisma.SaleInvoiceFiscalsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing SaleInvoiceFiscals.
|
|
*/
|
|
cursor?: Prisma.SaleInvoiceFiscalsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SaleInvoiceFiscals 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` SaleInvoiceFiscals.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SaleInvoiceFiscals.
|
|
*/
|
|
distinct?: Prisma.SaleInvoiceFiscalsScalarFieldEnum | Prisma.SaleInvoiceFiscalsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SaleInvoiceFiscals create
|
|
*/
|
|
export type SaleInvoiceFiscalsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SaleInvoiceFiscals
|
|
*/
|
|
select?: Prisma.SaleInvoiceFiscalsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SaleInvoiceFiscals
|
|
*/
|
|
omit?: Prisma.SaleInvoiceFiscalsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SaleInvoiceFiscalsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a SaleInvoiceFiscals.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SaleInvoiceFiscalsCreateInput, Prisma.SaleInvoiceFiscalsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* SaleInvoiceFiscals createMany
|
|
*/
|
|
export type SaleInvoiceFiscalsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many SaleInvoiceFiscals.
|
|
*/
|
|
data: Prisma.SaleInvoiceFiscalsCreateManyInput | Prisma.SaleInvoiceFiscalsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* SaleInvoiceFiscals update
|
|
*/
|
|
export type SaleInvoiceFiscalsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SaleInvoiceFiscals
|
|
*/
|
|
select?: Prisma.SaleInvoiceFiscalsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SaleInvoiceFiscals
|
|
*/
|
|
omit?: Prisma.SaleInvoiceFiscalsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SaleInvoiceFiscalsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a SaleInvoiceFiscals.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SaleInvoiceFiscalsUpdateInput, Prisma.SaleInvoiceFiscalsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which SaleInvoiceFiscals to update.
|
|
*/
|
|
where: Prisma.SaleInvoiceFiscalsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SaleInvoiceFiscals updateMany
|
|
*/
|
|
export type SaleInvoiceFiscalsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update SaleInvoiceFiscals.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SaleInvoiceFiscalsUpdateManyMutationInput, Prisma.SaleInvoiceFiscalsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which SaleInvoiceFiscals to update
|
|
*/
|
|
where?: Prisma.SaleInvoiceFiscalsWhereInput
|
|
/**
|
|
* Limit how many SaleInvoiceFiscals to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* SaleInvoiceFiscals upsert
|
|
*/
|
|
export type SaleInvoiceFiscalsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SaleInvoiceFiscals
|
|
*/
|
|
select?: Prisma.SaleInvoiceFiscalsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SaleInvoiceFiscals
|
|
*/
|
|
omit?: Prisma.SaleInvoiceFiscalsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SaleInvoiceFiscalsInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the SaleInvoiceFiscals to update in case it exists.
|
|
*/
|
|
where: Prisma.SaleInvoiceFiscalsWhereUniqueInput
|
|
/**
|
|
* In case the SaleInvoiceFiscals found by the `where` argument doesn't exist, create a new SaleInvoiceFiscals with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.SaleInvoiceFiscalsCreateInput, Prisma.SaleInvoiceFiscalsUncheckedCreateInput>
|
|
/**
|
|
* In case the SaleInvoiceFiscals was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.SaleInvoiceFiscalsUpdateInput, Prisma.SaleInvoiceFiscalsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* SaleInvoiceFiscals delete
|
|
*/
|
|
export type SaleInvoiceFiscalsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SaleInvoiceFiscals
|
|
*/
|
|
select?: Prisma.SaleInvoiceFiscalsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SaleInvoiceFiscals
|
|
*/
|
|
omit?: Prisma.SaleInvoiceFiscalsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SaleInvoiceFiscalsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which SaleInvoiceFiscals to delete.
|
|
*/
|
|
where: Prisma.SaleInvoiceFiscalsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SaleInvoiceFiscals deleteMany
|
|
*/
|
|
export type SaleInvoiceFiscalsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SaleInvoiceFiscals to delete
|
|
*/
|
|
where?: Prisma.SaleInvoiceFiscalsWhereInput
|
|
/**
|
|
* Limit how many SaleInvoiceFiscals to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* SaleInvoiceFiscals.attempts
|
|
*/
|
|
export type SaleInvoiceFiscals$attemptsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SaleInvoiceFiscalAttempts
|
|
*/
|
|
select?: Prisma.SaleInvoiceFiscalAttemptsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SaleInvoiceFiscalAttempts
|
|
*/
|
|
omit?: Prisma.SaleInvoiceFiscalAttemptsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SaleInvoiceFiscalAttemptsInclude<ExtArgs> | null
|
|
where?: Prisma.SaleInvoiceFiscalAttemptsWhereInput
|
|
orderBy?: Prisma.SaleInvoiceFiscalAttemptsOrderByWithRelationInput | Prisma.SaleInvoiceFiscalAttemptsOrderByWithRelationInput[]
|
|
cursor?: Prisma.SaleInvoiceFiscalAttemptsWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.SaleInvoiceFiscalAttemptsScalarFieldEnum | Prisma.SaleInvoiceFiscalAttemptsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SaleInvoiceFiscals without action
|
|
*/
|
|
export type SaleInvoiceFiscalsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SaleInvoiceFiscals
|
|
*/
|
|
select?: Prisma.SaleInvoiceFiscalsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SaleInvoiceFiscals
|
|
*/
|
|
omit?: Prisma.SaleInvoiceFiscalsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SaleInvoiceFiscalsInclude<ExtArgs> | null
|
|
}
|