1473 lines
52 KiB
TypeScript
1473 lines
52 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 `invoice` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
import type * as runtime from "@prisma/client/runtime/client"
|
|
import type * as $Enums from "../enums"
|
|
import type * as Prisma from "../internal/prismaNamespace"
|
|
|
|
/**
|
|
* Model invoice
|
|
* This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
|
|
*/
|
|
export type invoiceModel = runtime.Types.Result.DefaultSelection<Prisma.$invoicePayload>
|
|
|
|
export type AggregateInvoice = {
|
|
_count: InvoiceCountAggregateOutputType | null
|
|
_avg: InvoiceAvgAggregateOutputType | null
|
|
_sum: InvoiceSumAggregateOutputType | null
|
|
_min: InvoiceMinAggregateOutputType | null
|
|
_max: InvoiceMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type InvoiceAvgAggregateOutputType = {
|
|
id: number | null
|
|
date_orig: number | null
|
|
process_status: number | null
|
|
billing_status: number | null
|
|
refund_status: number | null
|
|
print_status: number | null
|
|
account_id: number | null
|
|
total_amt: number | null
|
|
billed_amt: number | null
|
|
due_date: number | null
|
|
email_status: number | null
|
|
correction: number | null
|
|
ppa_charge: number | null
|
|
credit_code_id: number | null
|
|
}
|
|
|
|
export type InvoiceSumAggregateOutputType = {
|
|
id: bigint | null
|
|
date_orig: bigint | null
|
|
process_status: number | null
|
|
billing_status: number | null
|
|
refund_status: number | null
|
|
print_status: number | null
|
|
account_id: bigint | null
|
|
total_amt: number | null
|
|
billed_amt: number | null
|
|
due_date: bigint | null
|
|
email_status: number | null
|
|
correction: number | null
|
|
ppa_charge: number | null
|
|
credit_code_id: number | null
|
|
}
|
|
|
|
export type InvoiceMinAggregateOutputType = {
|
|
id: bigint | null
|
|
date_orig: bigint | null
|
|
process_status: number | null
|
|
billing_status: number | null
|
|
refund_status: number | null
|
|
print_status: number | null
|
|
account_id: bigint | null
|
|
total_amt: number | null
|
|
billed_amt: number | null
|
|
due_date: bigint | null
|
|
notes: string | null
|
|
template_message: string | null
|
|
email_status: number | null
|
|
working_order: string | null
|
|
correction: number | null
|
|
ppa_charge: number | null
|
|
credit_code_id: number | null
|
|
}
|
|
|
|
export type InvoiceMaxAggregateOutputType = {
|
|
id: bigint | null
|
|
date_orig: bigint | null
|
|
process_status: number | null
|
|
billing_status: number | null
|
|
refund_status: number | null
|
|
print_status: number | null
|
|
account_id: bigint | null
|
|
total_amt: number | null
|
|
billed_amt: number | null
|
|
due_date: bigint | null
|
|
notes: string | null
|
|
template_message: string | null
|
|
email_status: number | null
|
|
working_order: string | null
|
|
correction: number | null
|
|
ppa_charge: number | null
|
|
credit_code_id: number | null
|
|
}
|
|
|
|
export type InvoiceCountAggregateOutputType = {
|
|
id: number
|
|
date_orig: number
|
|
process_status: number
|
|
billing_status: number
|
|
refund_status: number
|
|
print_status: number
|
|
account_id: number
|
|
total_amt: number
|
|
billed_amt: number
|
|
due_date: number
|
|
notes: number
|
|
template_message: number
|
|
email_status: number
|
|
working_order: number
|
|
correction: number
|
|
ppa_charge: number
|
|
credit_code_id: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type InvoiceAvgAggregateInputType = {
|
|
id?: true
|
|
date_orig?: true
|
|
process_status?: true
|
|
billing_status?: true
|
|
refund_status?: true
|
|
print_status?: true
|
|
account_id?: true
|
|
total_amt?: true
|
|
billed_amt?: true
|
|
due_date?: true
|
|
email_status?: true
|
|
correction?: true
|
|
ppa_charge?: true
|
|
credit_code_id?: true
|
|
}
|
|
|
|
export type InvoiceSumAggregateInputType = {
|
|
id?: true
|
|
date_orig?: true
|
|
process_status?: true
|
|
billing_status?: true
|
|
refund_status?: true
|
|
print_status?: true
|
|
account_id?: true
|
|
total_amt?: true
|
|
billed_amt?: true
|
|
due_date?: true
|
|
email_status?: true
|
|
correction?: true
|
|
ppa_charge?: true
|
|
credit_code_id?: true
|
|
}
|
|
|
|
export type InvoiceMinAggregateInputType = {
|
|
id?: true
|
|
date_orig?: true
|
|
process_status?: true
|
|
billing_status?: true
|
|
refund_status?: true
|
|
print_status?: true
|
|
account_id?: true
|
|
total_amt?: true
|
|
billed_amt?: true
|
|
due_date?: true
|
|
notes?: true
|
|
template_message?: true
|
|
email_status?: true
|
|
working_order?: true
|
|
correction?: true
|
|
ppa_charge?: true
|
|
credit_code_id?: true
|
|
}
|
|
|
|
export type InvoiceMaxAggregateInputType = {
|
|
id?: true
|
|
date_orig?: true
|
|
process_status?: true
|
|
billing_status?: true
|
|
refund_status?: true
|
|
print_status?: true
|
|
account_id?: true
|
|
total_amt?: true
|
|
billed_amt?: true
|
|
due_date?: true
|
|
notes?: true
|
|
template_message?: true
|
|
email_status?: true
|
|
working_order?: true
|
|
correction?: true
|
|
ppa_charge?: true
|
|
credit_code_id?: true
|
|
}
|
|
|
|
export type InvoiceCountAggregateInputType = {
|
|
id?: true
|
|
date_orig?: true
|
|
process_status?: true
|
|
billing_status?: true
|
|
refund_status?: true
|
|
print_status?: true
|
|
account_id?: true
|
|
total_amt?: true
|
|
billed_amt?: true
|
|
due_date?: true
|
|
notes?: true
|
|
template_message?: true
|
|
email_status?: true
|
|
working_order?: true
|
|
correction?: true
|
|
ppa_charge?: true
|
|
credit_code_id?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type InvoiceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which invoice to aggregate.
|
|
*/
|
|
where?: Prisma.invoiceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of invoices to fetch.
|
|
*/
|
|
orderBy?: Prisma.invoiceOrderByWithRelationInput | Prisma.invoiceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.invoiceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` invoices 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` invoices.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned invoices
|
|
**/
|
|
_count?: true | InvoiceCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: InvoiceAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: InvoiceSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: InvoiceMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: InvoiceMaxAggregateInputType
|
|
}
|
|
|
|
export type GetInvoiceAggregateType<T extends InvoiceAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateInvoice]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateInvoice[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateInvoice[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type invoiceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.invoiceWhereInput
|
|
orderBy?: Prisma.invoiceOrderByWithAggregationInput | Prisma.invoiceOrderByWithAggregationInput[]
|
|
by: Prisma.InvoiceScalarFieldEnum[] | Prisma.InvoiceScalarFieldEnum
|
|
having?: Prisma.invoiceScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: InvoiceCountAggregateInputType | true
|
|
_avg?: InvoiceAvgAggregateInputType
|
|
_sum?: InvoiceSumAggregateInputType
|
|
_min?: InvoiceMinAggregateInputType
|
|
_max?: InvoiceMaxAggregateInputType
|
|
}
|
|
|
|
export type InvoiceGroupByOutputType = {
|
|
id: bigint
|
|
date_orig: bigint | null
|
|
process_status: number | null
|
|
billing_status: number | null
|
|
refund_status: number | null
|
|
print_status: number | null
|
|
account_id: bigint | null
|
|
total_amt: number | null
|
|
billed_amt: number | null
|
|
due_date: bigint | null
|
|
notes: string | null
|
|
template_message: string | null
|
|
email_status: number | null
|
|
working_order: string | null
|
|
correction: number
|
|
ppa_charge: number
|
|
credit_code_id: number
|
|
_count: InvoiceCountAggregateOutputType | null
|
|
_avg: InvoiceAvgAggregateOutputType | null
|
|
_sum: InvoiceSumAggregateOutputType | null
|
|
_min: InvoiceMinAggregateOutputType | null
|
|
_max: InvoiceMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetInvoiceGroupByPayload<T extends invoiceGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<InvoiceGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof InvoiceGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], InvoiceGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], InvoiceGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type invoiceWhereInput = {
|
|
AND?: Prisma.invoiceWhereInput | Prisma.invoiceWhereInput[]
|
|
OR?: Prisma.invoiceWhereInput[]
|
|
NOT?: Prisma.invoiceWhereInput | Prisma.invoiceWhereInput[]
|
|
id?: Prisma.BigIntFilter<"invoice"> | bigint | number
|
|
date_orig?: Prisma.BigIntNullableFilter<"invoice"> | bigint | number | null
|
|
process_status?: Prisma.IntNullableFilter<"invoice"> | number | null
|
|
billing_status?: Prisma.IntNullableFilter<"invoice"> | number | null
|
|
refund_status?: Prisma.IntNullableFilter<"invoice"> | number | null
|
|
print_status?: Prisma.IntNullableFilter<"invoice"> | number | null
|
|
account_id?: Prisma.BigIntNullableFilter<"invoice"> | bigint | number | null
|
|
total_amt?: Prisma.FloatNullableFilter<"invoice"> | number | null
|
|
billed_amt?: Prisma.FloatNullableFilter<"invoice"> | number | null
|
|
due_date?: Prisma.BigIntNullableFilter<"invoice"> | bigint | number | null
|
|
notes?: Prisma.StringNullableFilter<"invoice"> | string | null
|
|
template_message?: Prisma.StringNullableFilter<"invoice"> | string | null
|
|
email_status?: Prisma.IntNullableFilter<"invoice"> | number | null
|
|
working_order?: Prisma.StringNullableFilter<"invoice"> | string | null
|
|
correction?: Prisma.IntFilter<"invoice"> | number
|
|
ppa_charge?: Prisma.IntFilter<"invoice"> | number
|
|
credit_code_id?: Prisma.IntFilter<"invoice"> | number
|
|
}
|
|
|
|
export type invoiceOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
date_orig?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
process_status?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
billing_status?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
refund_status?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
print_status?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
account_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
total_amt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
billed_amt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
due_date?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
notes?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
template_message?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
email_status?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
working_order?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
correction?: Prisma.SortOrder
|
|
ppa_charge?: Prisma.SortOrder
|
|
credit_code_id?: Prisma.SortOrder
|
|
_relevance?: Prisma.invoiceOrderByRelevanceInput
|
|
}
|
|
|
|
export type invoiceWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: bigint | number
|
|
AND?: Prisma.invoiceWhereInput | Prisma.invoiceWhereInput[]
|
|
OR?: Prisma.invoiceWhereInput[]
|
|
NOT?: Prisma.invoiceWhereInput | Prisma.invoiceWhereInput[]
|
|
date_orig?: Prisma.BigIntNullableFilter<"invoice"> | bigint | number | null
|
|
process_status?: Prisma.IntNullableFilter<"invoice"> | number | null
|
|
billing_status?: Prisma.IntNullableFilter<"invoice"> | number | null
|
|
refund_status?: Prisma.IntNullableFilter<"invoice"> | number | null
|
|
print_status?: Prisma.IntNullableFilter<"invoice"> | number | null
|
|
account_id?: Prisma.BigIntNullableFilter<"invoice"> | bigint | number | null
|
|
total_amt?: Prisma.FloatNullableFilter<"invoice"> | number | null
|
|
billed_amt?: Prisma.FloatNullableFilter<"invoice"> | number | null
|
|
due_date?: Prisma.BigIntNullableFilter<"invoice"> | bigint | number | null
|
|
notes?: Prisma.StringNullableFilter<"invoice"> | string | null
|
|
template_message?: Prisma.StringNullableFilter<"invoice"> | string | null
|
|
email_status?: Prisma.IntNullableFilter<"invoice"> | number | null
|
|
working_order?: Prisma.StringNullableFilter<"invoice"> | string | null
|
|
correction?: Prisma.IntFilter<"invoice"> | number
|
|
ppa_charge?: Prisma.IntFilter<"invoice"> | number
|
|
credit_code_id?: Prisma.IntFilter<"invoice"> | number
|
|
}, "id">
|
|
|
|
export type invoiceOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
date_orig?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
process_status?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
billing_status?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
refund_status?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
print_status?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
account_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
total_amt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
billed_amt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
due_date?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
notes?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
template_message?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
email_status?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
working_order?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
correction?: Prisma.SortOrder
|
|
ppa_charge?: Prisma.SortOrder
|
|
credit_code_id?: Prisma.SortOrder
|
|
_count?: Prisma.invoiceCountOrderByAggregateInput
|
|
_avg?: Prisma.invoiceAvgOrderByAggregateInput
|
|
_max?: Prisma.invoiceMaxOrderByAggregateInput
|
|
_min?: Prisma.invoiceMinOrderByAggregateInput
|
|
_sum?: Prisma.invoiceSumOrderByAggregateInput
|
|
}
|
|
|
|
export type invoiceScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.invoiceScalarWhereWithAggregatesInput | Prisma.invoiceScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.invoiceScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.invoiceScalarWhereWithAggregatesInput | Prisma.invoiceScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.BigIntWithAggregatesFilter<"invoice"> | bigint | number
|
|
date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"invoice"> | bigint | number | null
|
|
process_status?: Prisma.IntNullableWithAggregatesFilter<"invoice"> | number | null
|
|
billing_status?: Prisma.IntNullableWithAggregatesFilter<"invoice"> | number | null
|
|
refund_status?: Prisma.IntNullableWithAggregatesFilter<"invoice"> | number | null
|
|
print_status?: Prisma.IntNullableWithAggregatesFilter<"invoice"> | number | null
|
|
account_id?: Prisma.BigIntNullableWithAggregatesFilter<"invoice"> | bigint | number | null
|
|
total_amt?: Prisma.FloatNullableWithAggregatesFilter<"invoice"> | number | null
|
|
billed_amt?: Prisma.FloatNullableWithAggregatesFilter<"invoice"> | number | null
|
|
due_date?: Prisma.BigIntNullableWithAggregatesFilter<"invoice"> | bigint | number | null
|
|
notes?: Prisma.StringNullableWithAggregatesFilter<"invoice"> | string | null
|
|
template_message?: Prisma.StringNullableWithAggregatesFilter<"invoice"> | string | null
|
|
email_status?: Prisma.IntNullableWithAggregatesFilter<"invoice"> | number | null
|
|
working_order?: Prisma.StringNullableWithAggregatesFilter<"invoice"> | string | null
|
|
correction?: Prisma.IntWithAggregatesFilter<"invoice"> | number
|
|
ppa_charge?: Prisma.IntWithAggregatesFilter<"invoice"> | number
|
|
credit_code_id?: Prisma.IntWithAggregatesFilter<"invoice"> | number
|
|
}
|
|
|
|
export type invoiceCreateInput = {
|
|
id?: bigint | number
|
|
date_orig?: bigint | number | null
|
|
process_status?: number | null
|
|
billing_status?: number | null
|
|
refund_status?: number | null
|
|
print_status?: number | null
|
|
account_id?: bigint | number | null
|
|
total_amt?: number | null
|
|
billed_amt?: number | null
|
|
due_date?: bigint | number | null
|
|
notes?: string | null
|
|
template_message?: string | null
|
|
email_status?: number | null
|
|
working_order?: string | null
|
|
correction?: number
|
|
ppa_charge?: number
|
|
credit_code_id?: number
|
|
}
|
|
|
|
export type invoiceUncheckedCreateInput = {
|
|
id?: bigint | number
|
|
date_orig?: bigint | number | null
|
|
process_status?: number | null
|
|
billing_status?: number | null
|
|
refund_status?: number | null
|
|
print_status?: number | null
|
|
account_id?: bigint | number | null
|
|
total_amt?: number | null
|
|
billed_amt?: number | null
|
|
due_date?: bigint | number | null
|
|
notes?: string | null
|
|
template_message?: string | null
|
|
email_status?: number | null
|
|
working_order?: string | null
|
|
correction?: number
|
|
ppa_charge?: number
|
|
credit_code_id?: number
|
|
}
|
|
|
|
export type invoiceUpdateInput = {
|
|
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
process_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
billing_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
refund_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
print_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
total_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
billed_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
due_date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
template_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
working_order?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
correction?: Prisma.IntFieldUpdateOperationsInput | number
|
|
ppa_charge?: Prisma.IntFieldUpdateOperationsInput | number
|
|
credit_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type invoiceUncheckedUpdateInput = {
|
|
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
process_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
billing_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
refund_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
print_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
total_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
billed_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
due_date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
template_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
working_order?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
correction?: Prisma.IntFieldUpdateOperationsInput | number
|
|
ppa_charge?: Prisma.IntFieldUpdateOperationsInput | number
|
|
credit_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type invoiceCreateManyInput = {
|
|
id?: bigint | number
|
|
date_orig?: bigint | number | null
|
|
process_status?: number | null
|
|
billing_status?: number | null
|
|
refund_status?: number | null
|
|
print_status?: number | null
|
|
account_id?: bigint | number | null
|
|
total_amt?: number | null
|
|
billed_amt?: number | null
|
|
due_date?: bigint | number | null
|
|
notes?: string | null
|
|
template_message?: string | null
|
|
email_status?: number | null
|
|
working_order?: string | null
|
|
correction?: number
|
|
ppa_charge?: number
|
|
credit_code_id?: number
|
|
}
|
|
|
|
export type invoiceUpdateManyMutationInput = {
|
|
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
process_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
billing_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
refund_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
print_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
total_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
billed_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
due_date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
template_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
working_order?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
correction?: Prisma.IntFieldUpdateOperationsInput | number
|
|
ppa_charge?: Prisma.IntFieldUpdateOperationsInput | number
|
|
credit_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type invoiceUncheckedUpdateManyInput = {
|
|
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
process_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
billing_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
refund_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
print_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
total_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
billed_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
due_date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
template_message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email_status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
working_order?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
correction?: Prisma.IntFieldUpdateOperationsInput | number
|
|
ppa_charge?: Prisma.IntFieldUpdateOperationsInput | number
|
|
credit_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type invoiceOrderByRelevanceInput = {
|
|
fields: Prisma.invoiceOrderByRelevanceFieldEnum | Prisma.invoiceOrderByRelevanceFieldEnum[]
|
|
sort: Prisma.SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type invoiceCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
date_orig?: Prisma.SortOrder
|
|
process_status?: Prisma.SortOrder
|
|
billing_status?: Prisma.SortOrder
|
|
refund_status?: Prisma.SortOrder
|
|
print_status?: Prisma.SortOrder
|
|
account_id?: Prisma.SortOrder
|
|
total_amt?: Prisma.SortOrder
|
|
billed_amt?: Prisma.SortOrder
|
|
due_date?: Prisma.SortOrder
|
|
notes?: Prisma.SortOrder
|
|
template_message?: Prisma.SortOrder
|
|
email_status?: Prisma.SortOrder
|
|
working_order?: Prisma.SortOrder
|
|
correction?: Prisma.SortOrder
|
|
ppa_charge?: Prisma.SortOrder
|
|
credit_code_id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type invoiceAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
date_orig?: Prisma.SortOrder
|
|
process_status?: Prisma.SortOrder
|
|
billing_status?: Prisma.SortOrder
|
|
refund_status?: Prisma.SortOrder
|
|
print_status?: Prisma.SortOrder
|
|
account_id?: Prisma.SortOrder
|
|
total_amt?: Prisma.SortOrder
|
|
billed_amt?: Prisma.SortOrder
|
|
due_date?: Prisma.SortOrder
|
|
email_status?: Prisma.SortOrder
|
|
correction?: Prisma.SortOrder
|
|
ppa_charge?: Prisma.SortOrder
|
|
credit_code_id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type invoiceMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
date_orig?: Prisma.SortOrder
|
|
process_status?: Prisma.SortOrder
|
|
billing_status?: Prisma.SortOrder
|
|
refund_status?: Prisma.SortOrder
|
|
print_status?: Prisma.SortOrder
|
|
account_id?: Prisma.SortOrder
|
|
total_amt?: Prisma.SortOrder
|
|
billed_amt?: Prisma.SortOrder
|
|
due_date?: Prisma.SortOrder
|
|
notes?: Prisma.SortOrder
|
|
template_message?: Prisma.SortOrder
|
|
email_status?: Prisma.SortOrder
|
|
working_order?: Prisma.SortOrder
|
|
correction?: Prisma.SortOrder
|
|
ppa_charge?: Prisma.SortOrder
|
|
credit_code_id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type invoiceMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
date_orig?: Prisma.SortOrder
|
|
process_status?: Prisma.SortOrder
|
|
billing_status?: Prisma.SortOrder
|
|
refund_status?: Prisma.SortOrder
|
|
print_status?: Prisma.SortOrder
|
|
account_id?: Prisma.SortOrder
|
|
total_amt?: Prisma.SortOrder
|
|
billed_amt?: Prisma.SortOrder
|
|
due_date?: Prisma.SortOrder
|
|
notes?: Prisma.SortOrder
|
|
template_message?: Prisma.SortOrder
|
|
email_status?: Prisma.SortOrder
|
|
working_order?: Prisma.SortOrder
|
|
correction?: Prisma.SortOrder
|
|
ppa_charge?: Prisma.SortOrder
|
|
credit_code_id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type invoiceSumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
date_orig?: Prisma.SortOrder
|
|
process_status?: Prisma.SortOrder
|
|
billing_status?: Prisma.SortOrder
|
|
refund_status?: Prisma.SortOrder
|
|
print_status?: Prisma.SortOrder
|
|
account_id?: Prisma.SortOrder
|
|
total_amt?: Prisma.SortOrder
|
|
billed_amt?: Prisma.SortOrder
|
|
due_date?: Prisma.SortOrder
|
|
email_status?: Prisma.SortOrder
|
|
correction?: Prisma.SortOrder
|
|
ppa_charge?: Prisma.SortOrder
|
|
credit_code_id?: Prisma.SortOrder
|
|
}
|
|
|
|
|
|
|
|
export type invoiceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
date_orig?: boolean
|
|
process_status?: boolean
|
|
billing_status?: boolean
|
|
refund_status?: boolean
|
|
print_status?: boolean
|
|
account_id?: boolean
|
|
total_amt?: boolean
|
|
billed_amt?: boolean
|
|
due_date?: boolean
|
|
notes?: boolean
|
|
template_message?: boolean
|
|
email_status?: boolean
|
|
working_order?: boolean
|
|
correction?: boolean
|
|
ppa_charge?: boolean
|
|
credit_code_id?: boolean
|
|
}, ExtArgs["result"]["invoice"]>
|
|
|
|
|
|
|
|
export type invoiceSelectScalar = {
|
|
id?: boolean
|
|
date_orig?: boolean
|
|
process_status?: boolean
|
|
billing_status?: boolean
|
|
refund_status?: boolean
|
|
print_status?: boolean
|
|
account_id?: boolean
|
|
total_amt?: boolean
|
|
billed_amt?: boolean
|
|
due_date?: boolean
|
|
notes?: boolean
|
|
template_message?: boolean
|
|
email_status?: boolean
|
|
working_order?: boolean
|
|
correction?: boolean
|
|
ppa_charge?: boolean
|
|
credit_code_id?: boolean
|
|
}
|
|
|
|
export type invoiceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "date_orig" | "process_status" | "billing_status" | "refund_status" | "print_status" | "account_id" | "total_amt" | "billed_amt" | "due_date" | "notes" | "template_message" | "email_status" | "working_order" | "correction" | "ppa_charge" | "credit_code_id", ExtArgs["result"]["invoice"]>
|
|
|
|
export type $invoicePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "invoice"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: bigint
|
|
date_orig: bigint | null
|
|
process_status: number | null
|
|
billing_status: number | null
|
|
refund_status: number | null
|
|
print_status: number | null
|
|
account_id: bigint | null
|
|
total_amt: number | null
|
|
billed_amt: number | null
|
|
due_date: bigint | null
|
|
notes: string | null
|
|
template_message: string | null
|
|
email_status: number | null
|
|
working_order: string | null
|
|
correction: number
|
|
ppa_charge: number
|
|
credit_code_id: number
|
|
}, ExtArgs["result"]["invoice"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type invoiceGetPayload<S extends boolean | null | undefined | invoiceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$invoicePayload, S>
|
|
|
|
export type invoiceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<invoiceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: InvoiceCountAggregateInputType | true
|
|
}
|
|
|
|
export interface invoiceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['invoice'], meta: { name: 'invoice' } }
|
|
/**
|
|
* Find zero or one Invoice that matches the filter.
|
|
* @param {invoiceFindUniqueArgs} args - Arguments to find a Invoice
|
|
* @example
|
|
* // Get one Invoice
|
|
* const invoice = await prisma.invoice.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends invoiceFindUniqueArgs>(args: Prisma.SelectSubset<T, invoiceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__invoiceClient<runtime.Types.Result.GetResult<Prisma.$invoicePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Invoice that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {invoiceFindUniqueOrThrowArgs} args - Arguments to find a Invoice
|
|
* @example
|
|
* // Get one Invoice
|
|
* const invoice = await prisma.invoice.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends invoiceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, invoiceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__invoiceClient<runtime.Types.Result.GetResult<Prisma.$invoicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Invoice 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 {invoiceFindFirstArgs} args - Arguments to find a Invoice
|
|
* @example
|
|
* // Get one Invoice
|
|
* const invoice = await prisma.invoice.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends invoiceFindFirstArgs>(args?: Prisma.SelectSubset<T, invoiceFindFirstArgs<ExtArgs>>): Prisma.Prisma__invoiceClient<runtime.Types.Result.GetResult<Prisma.$invoicePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Invoice 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 {invoiceFindFirstOrThrowArgs} args - Arguments to find a Invoice
|
|
* @example
|
|
* // Get one Invoice
|
|
* const invoice = await prisma.invoice.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends invoiceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, invoiceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__invoiceClient<runtime.Types.Result.GetResult<Prisma.$invoicePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Invoices 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 {invoiceFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Invoices
|
|
* const invoices = await prisma.invoice.findMany()
|
|
*
|
|
* // Get first 10 Invoices
|
|
* const invoices = await prisma.invoice.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const invoiceWithIdOnly = await prisma.invoice.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends invoiceFindManyArgs>(args?: Prisma.SelectSubset<T, invoiceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$invoicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Invoice.
|
|
* @param {invoiceCreateArgs} args - Arguments to create a Invoice.
|
|
* @example
|
|
* // Create one Invoice
|
|
* const Invoice = await prisma.invoice.create({
|
|
* data: {
|
|
* // ... data to create a Invoice
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends invoiceCreateArgs>(args: Prisma.SelectSubset<T, invoiceCreateArgs<ExtArgs>>): Prisma.Prisma__invoiceClient<runtime.Types.Result.GetResult<Prisma.$invoicePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Invoices.
|
|
* @param {invoiceCreateManyArgs} args - Arguments to create many Invoices.
|
|
* @example
|
|
* // Create many Invoices
|
|
* const invoice = await prisma.invoice.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends invoiceCreateManyArgs>(args?: Prisma.SelectSubset<T, invoiceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Delete a Invoice.
|
|
* @param {invoiceDeleteArgs} args - Arguments to delete one Invoice.
|
|
* @example
|
|
* // Delete one Invoice
|
|
* const Invoice = await prisma.invoice.delete({
|
|
* where: {
|
|
* // ... filter to delete one Invoice
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends invoiceDeleteArgs>(args: Prisma.SelectSubset<T, invoiceDeleteArgs<ExtArgs>>): Prisma.Prisma__invoiceClient<runtime.Types.Result.GetResult<Prisma.$invoicePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Invoice.
|
|
* @param {invoiceUpdateArgs} args - Arguments to update one Invoice.
|
|
* @example
|
|
* // Update one Invoice
|
|
* const invoice = await prisma.invoice.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends invoiceUpdateArgs>(args: Prisma.SelectSubset<T, invoiceUpdateArgs<ExtArgs>>): Prisma.Prisma__invoiceClient<runtime.Types.Result.GetResult<Prisma.$invoicePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Invoices.
|
|
* @param {invoiceDeleteManyArgs} args - Arguments to filter Invoices to delete.
|
|
* @example
|
|
* // Delete a few Invoices
|
|
* const { count } = await prisma.invoice.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends invoiceDeleteManyArgs>(args?: Prisma.SelectSubset<T, invoiceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Invoices.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {invoiceUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Invoices
|
|
* const invoice = await prisma.invoice.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends invoiceUpdateManyArgs>(args: Prisma.SelectSubset<T, invoiceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Invoice.
|
|
* @param {invoiceUpsertArgs} args - Arguments to update or create a Invoice.
|
|
* @example
|
|
* // Update or create a Invoice
|
|
* const invoice = await prisma.invoice.upsert({
|
|
* create: {
|
|
* // ... data to create a Invoice
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Invoice we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends invoiceUpsertArgs>(args: Prisma.SelectSubset<T, invoiceUpsertArgs<ExtArgs>>): Prisma.Prisma__invoiceClient<runtime.Types.Result.GetResult<Prisma.$invoicePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Invoices.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {invoiceCountArgs} args - Arguments to filter Invoices to count.
|
|
* @example
|
|
* // Count the number of Invoices
|
|
* const count = await prisma.invoice.count({
|
|
* where: {
|
|
* // ... the filter for the Invoices we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends invoiceCountArgs>(
|
|
args?: Prisma.Subset<T, invoiceCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], InvoiceCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Invoice.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {InvoiceAggregateArgs} 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 InvoiceAggregateArgs>(args: Prisma.Subset<T, InvoiceAggregateArgs>): Prisma.PrismaPromise<GetInvoiceAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Invoice.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {invoiceGroupByArgs} 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 invoiceGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: invoiceGroupByArgs['orderBy'] }
|
|
: { orderBy?: invoiceGroupByArgs['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, invoiceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInvoiceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the invoice model
|
|
*/
|
|
readonly fields: invoiceFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for invoice.
|
|
* 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__invoiceClient<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 invoice model
|
|
*/
|
|
export interface invoiceFieldRefs {
|
|
readonly id: Prisma.FieldRef<"invoice", 'BigInt'>
|
|
readonly date_orig: Prisma.FieldRef<"invoice", 'BigInt'>
|
|
readonly process_status: Prisma.FieldRef<"invoice", 'Int'>
|
|
readonly billing_status: Prisma.FieldRef<"invoice", 'Int'>
|
|
readonly refund_status: Prisma.FieldRef<"invoice", 'Int'>
|
|
readonly print_status: Prisma.FieldRef<"invoice", 'Int'>
|
|
readonly account_id: Prisma.FieldRef<"invoice", 'BigInt'>
|
|
readonly total_amt: Prisma.FieldRef<"invoice", 'Float'>
|
|
readonly billed_amt: Prisma.FieldRef<"invoice", 'Float'>
|
|
readonly due_date: Prisma.FieldRef<"invoice", 'BigInt'>
|
|
readonly notes: Prisma.FieldRef<"invoice", 'String'>
|
|
readonly template_message: Prisma.FieldRef<"invoice", 'String'>
|
|
readonly email_status: Prisma.FieldRef<"invoice", 'Int'>
|
|
readonly working_order: Prisma.FieldRef<"invoice", 'String'>
|
|
readonly correction: Prisma.FieldRef<"invoice", 'Int'>
|
|
readonly ppa_charge: Prisma.FieldRef<"invoice", 'Int'>
|
|
readonly credit_code_id: Prisma.FieldRef<"invoice", 'Int'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* invoice findUnique
|
|
*/
|
|
export type invoiceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the invoice
|
|
*/
|
|
select?: Prisma.invoiceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the invoice
|
|
*/
|
|
omit?: Prisma.invoiceOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which invoice to fetch.
|
|
*/
|
|
where: Prisma.invoiceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* invoice findUniqueOrThrow
|
|
*/
|
|
export type invoiceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the invoice
|
|
*/
|
|
select?: Prisma.invoiceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the invoice
|
|
*/
|
|
omit?: Prisma.invoiceOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which invoice to fetch.
|
|
*/
|
|
where: Prisma.invoiceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* invoice findFirst
|
|
*/
|
|
export type invoiceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the invoice
|
|
*/
|
|
select?: Prisma.invoiceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the invoice
|
|
*/
|
|
omit?: Prisma.invoiceOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which invoice to fetch.
|
|
*/
|
|
where?: Prisma.invoiceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of invoices to fetch.
|
|
*/
|
|
orderBy?: Prisma.invoiceOrderByWithRelationInput | Prisma.invoiceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for invoices.
|
|
*/
|
|
cursor?: Prisma.invoiceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` invoices 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` invoices.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of invoices.
|
|
*/
|
|
distinct?: Prisma.InvoiceScalarFieldEnum | Prisma.InvoiceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* invoice findFirstOrThrow
|
|
*/
|
|
export type invoiceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the invoice
|
|
*/
|
|
select?: Prisma.invoiceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the invoice
|
|
*/
|
|
omit?: Prisma.invoiceOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which invoice to fetch.
|
|
*/
|
|
where?: Prisma.invoiceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of invoices to fetch.
|
|
*/
|
|
orderBy?: Prisma.invoiceOrderByWithRelationInput | Prisma.invoiceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for invoices.
|
|
*/
|
|
cursor?: Prisma.invoiceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` invoices 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` invoices.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of invoices.
|
|
*/
|
|
distinct?: Prisma.InvoiceScalarFieldEnum | Prisma.InvoiceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* invoice findMany
|
|
*/
|
|
export type invoiceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the invoice
|
|
*/
|
|
select?: Prisma.invoiceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the invoice
|
|
*/
|
|
omit?: Prisma.invoiceOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which invoices to fetch.
|
|
*/
|
|
where?: Prisma.invoiceWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of invoices to fetch.
|
|
*/
|
|
orderBy?: Prisma.invoiceOrderByWithRelationInput | Prisma.invoiceOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing invoices.
|
|
*/
|
|
cursor?: Prisma.invoiceWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` invoices 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` invoices.
|
|
*/
|
|
skip?: number
|
|
distinct?: Prisma.InvoiceScalarFieldEnum | Prisma.InvoiceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* invoice create
|
|
*/
|
|
export type invoiceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the invoice
|
|
*/
|
|
select?: Prisma.invoiceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the invoice
|
|
*/
|
|
omit?: Prisma.invoiceOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a invoice.
|
|
*/
|
|
data?: Prisma.XOR<Prisma.invoiceCreateInput, Prisma.invoiceUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* invoice createMany
|
|
*/
|
|
export type invoiceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many invoices.
|
|
*/
|
|
data: Prisma.invoiceCreateManyInput | Prisma.invoiceCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* invoice update
|
|
*/
|
|
export type invoiceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the invoice
|
|
*/
|
|
select?: Prisma.invoiceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the invoice
|
|
*/
|
|
omit?: Prisma.invoiceOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a invoice.
|
|
*/
|
|
data: Prisma.XOR<Prisma.invoiceUpdateInput, Prisma.invoiceUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which invoice to update.
|
|
*/
|
|
where: Prisma.invoiceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* invoice updateMany
|
|
*/
|
|
export type invoiceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update invoices.
|
|
*/
|
|
data: Prisma.XOR<Prisma.invoiceUpdateManyMutationInput, Prisma.invoiceUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which invoices to update
|
|
*/
|
|
where?: Prisma.invoiceWhereInput
|
|
/**
|
|
* Limit how many invoices to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* invoice upsert
|
|
*/
|
|
export type invoiceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the invoice
|
|
*/
|
|
select?: Prisma.invoiceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the invoice
|
|
*/
|
|
omit?: Prisma.invoiceOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the invoice to update in case it exists.
|
|
*/
|
|
where: Prisma.invoiceWhereUniqueInput
|
|
/**
|
|
* In case the invoice found by the `where` argument doesn't exist, create a new invoice with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.invoiceCreateInput, Prisma.invoiceUncheckedCreateInput>
|
|
/**
|
|
* In case the invoice was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.invoiceUpdateInput, Prisma.invoiceUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* invoice delete
|
|
*/
|
|
export type invoiceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the invoice
|
|
*/
|
|
select?: Prisma.invoiceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the invoice
|
|
*/
|
|
omit?: Prisma.invoiceOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which invoice to delete.
|
|
*/
|
|
where: Prisma.invoiceWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* invoice deleteMany
|
|
*/
|
|
export type invoiceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which invoices to delete
|
|
*/
|
|
where?: Prisma.invoiceWhereInput
|
|
/**
|
|
* Limit how many invoices to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* invoice without action
|
|
*/
|
|
export type invoiceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the invoice
|
|
*/
|
|
select?: Prisma.invoiceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the invoice
|
|
*/
|
|
omit?: Prisma.invoiceOmit<ExtArgs> | null
|
|
}
|