
/* !!! 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_call` 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_call
 * 
 */
export type invoice_callModel = runtime.Types.Result.DefaultSelection<Prisma.$invoice_callPayload>

export type AggregateInvoice_call = {
  _count: Invoice_callCountAggregateOutputType | null
  _avg: Invoice_callAvgAggregateOutputType | null
  _sum: Invoice_callSumAggregateOutputType | null
  _min: Invoice_callMinAggregateOutputType | null
  _max: Invoice_callMaxAggregateOutputType | null
}

export type Invoice_callAvgAggregateOutputType = {
  id: number | null
  date: number | null
  amount: number | null
}

export type Invoice_callSumAggregateOutputType = {
  id: number | null
  date: bigint | null
  amount: number | null
}

export type Invoice_callMinAggregateOutputType = {
  id: number | null
  date: bigint | null
  number: string | null
  amount: number | null
}

export type Invoice_callMaxAggregateOutputType = {
  id: number | null
  date: bigint | null
  number: string | null
  amount: number | null
}

export type Invoice_callCountAggregateOutputType = {
  id: number
  date: number
  number: number
  amount: number
  _all: number
}


export type Invoice_callAvgAggregateInputType = {
  id?: true
  date?: true
  amount?: true
}

export type Invoice_callSumAggregateInputType = {
  id?: true
  date?: true
  amount?: true
}

export type Invoice_callMinAggregateInputType = {
  id?: true
  date?: true
  number?: true
  amount?: true
}

export type Invoice_callMaxAggregateInputType = {
  id?: true
  date?: true
  number?: true
  amount?: true
}

export type Invoice_callCountAggregateInputType = {
  id?: true
  date?: true
  number?: true
  amount?: true
  _all?: true
}

export type Invoice_callAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which invoice_call to aggregate.
   */
  where?: Prisma.invoice_callWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of invoice_calls to fetch.
   */
  orderBy?: Prisma.invoice_callOrderByWithRelationInput | Prisma.invoice_callOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.invoice_callWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` invoice_calls from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` invoice_calls.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned invoice_calls
  **/
  _count?: true | Invoice_callCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Invoice_callAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Invoice_callSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Invoice_callMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Invoice_callMaxAggregateInputType
}

export type GetInvoice_callAggregateType<T extends Invoice_callAggregateArgs> = {
      [P in keyof T & keyof AggregateInvoice_call]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateInvoice_call[P]>
    : Prisma.GetScalarType<T[P], AggregateInvoice_call[P]>
}




export type invoice_callGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.invoice_callWhereInput
  orderBy?: Prisma.invoice_callOrderByWithAggregationInput | Prisma.invoice_callOrderByWithAggregationInput[]
  by: Prisma.Invoice_callScalarFieldEnum[] | Prisma.Invoice_callScalarFieldEnum
  having?: Prisma.invoice_callScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Invoice_callCountAggregateInputType | true
  _avg?: Invoice_callAvgAggregateInputType
  _sum?: Invoice_callSumAggregateInputType
  _min?: Invoice_callMinAggregateInputType
  _max?: Invoice_callMaxAggregateInputType
}

export type Invoice_callGroupByOutputType = {
  id: number
  date: bigint
  number: string
  amount: number
  _count: Invoice_callCountAggregateOutputType | null
  _avg: Invoice_callAvgAggregateOutputType | null
  _sum: Invoice_callSumAggregateOutputType | null
  _min: Invoice_callMinAggregateOutputType | null
  _max: Invoice_callMaxAggregateOutputType | null
}

type GetInvoice_callGroupByPayload<T extends invoice_callGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<Invoice_callGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof Invoice_callGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], Invoice_callGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], Invoice_callGroupByOutputType[P]>
      }
    >
  >



export type invoice_callWhereInput = {
  AND?: Prisma.invoice_callWhereInput | Prisma.invoice_callWhereInput[]
  OR?: Prisma.invoice_callWhereInput[]
  NOT?: Prisma.invoice_callWhereInput | Prisma.invoice_callWhereInput[]
  id?: Prisma.IntFilter<"invoice_call"> | number
  date?: Prisma.BigIntFilter<"invoice_call"> | bigint | number
  number?: Prisma.StringFilter<"invoice_call"> | string
  amount?: Prisma.FloatFilter<"invoice_call"> | number
}

export type invoice_callOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  number?: Prisma.SortOrder
  amount?: Prisma.SortOrder
  _relevance?: Prisma.invoice_callOrderByRelevanceInput
}

export type invoice_callWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.invoice_callWhereInput | Prisma.invoice_callWhereInput[]
  OR?: Prisma.invoice_callWhereInput[]
  NOT?: Prisma.invoice_callWhereInput | Prisma.invoice_callWhereInput[]
  date?: Prisma.BigIntFilter<"invoice_call"> | bigint | number
  number?: Prisma.StringFilter<"invoice_call"> | string
  amount?: Prisma.FloatFilter<"invoice_call"> | number
}, "id">

export type invoice_callOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  number?: Prisma.SortOrder
  amount?: Prisma.SortOrder
  _count?: Prisma.invoice_callCountOrderByAggregateInput
  _avg?: Prisma.invoice_callAvgOrderByAggregateInput
  _max?: Prisma.invoice_callMaxOrderByAggregateInput
  _min?: Prisma.invoice_callMinOrderByAggregateInput
  _sum?: Prisma.invoice_callSumOrderByAggregateInput
}

export type invoice_callScalarWhereWithAggregatesInput = {
  AND?: Prisma.invoice_callScalarWhereWithAggregatesInput | Prisma.invoice_callScalarWhereWithAggregatesInput[]
  OR?: Prisma.invoice_callScalarWhereWithAggregatesInput[]
  NOT?: Prisma.invoice_callScalarWhereWithAggregatesInput | Prisma.invoice_callScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"invoice_call"> | number
  date?: Prisma.BigIntWithAggregatesFilter<"invoice_call"> | bigint | number
  number?: Prisma.StringWithAggregatesFilter<"invoice_call"> | string
  amount?: Prisma.FloatWithAggregatesFilter<"invoice_call"> | number
}

export type invoice_callCreateInput = {
  date: bigint | number
  number: string
  amount: number
}

export type invoice_callUncheckedCreateInput = {
  id?: number
  date: bigint | number
  number: string
  amount: number
}

export type invoice_callUpdateInput = {
  date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  number?: Prisma.StringFieldUpdateOperationsInput | string
  amount?: Prisma.FloatFieldUpdateOperationsInput | number
}

export type invoice_callUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  number?: Prisma.StringFieldUpdateOperationsInput | string
  amount?: Prisma.FloatFieldUpdateOperationsInput | number
}

export type invoice_callCreateManyInput = {
  id?: number
  date: bigint | number
  number: string
  amount: number
}

export type invoice_callUpdateManyMutationInput = {
  date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  number?: Prisma.StringFieldUpdateOperationsInput | string
  amount?: Prisma.FloatFieldUpdateOperationsInput | number
}

export type invoice_callUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  number?: Prisma.StringFieldUpdateOperationsInput | string
  amount?: Prisma.FloatFieldUpdateOperationsInput | number
}

export type invoice_callOrderByRelevanceInput = {
  fields: Prisma.invoice_callOrderByRelevanceFieldEnum | Prisma.invoice_callOrderByRelevanceFieldEnum[]
  sort: Prisma.SortOrder
  search: string
}

export type invoice_callCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  number?: Prisma.SortOrder
  amount?: Prisma.SortOrder
}

export type invoice_callAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  amount?: Prisma.SortOrder
}

export type invoice_callMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  number?: Prisma.SortOrder
  amount?: Prisma.SortOrder
}

export type invoice_callMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  number?: Prisma.SortOrder
  amount?: Prisma.SortOrder
}

export type invoice_callSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  amount?: Prisma.SortOrder
}



export type invoice_callSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  date?: boolean
  number?: boolean
  amount?: boolean
}, ExtArgs["result"]["invoice_call"]>



export type invoice_callSelectScalar = {
  id?: boolean
  date?: boolean
  number?: boolean
  amount?: boolean
}

export type invoice_callOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "date" | "number" | "amount", ExtArgs["result"]["invoice_call"]>

export type $invoice_callPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "invoice_call"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    date: bigint
    number: string
    amount: number
  }, ExtArgs["result"]["invoice_call"]>
  composites: {}
}

export type invoice_callGetPayload<S extends boolean | null | undefined | invoice_callDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$invoice_callPayload, S>

export type invoice_callCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<invoice_callFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Invoice_callCountAggregateInputType | true
  }

export interface invoice_callDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['invoice_call'], meta: { name: 'invoice_call' } }
  /**
   * Find zero or one Invoice_call that matches the filter.
   * @param {invoice_callFindUniqueArgs} args - Arguments to find a Invoice_call
   * @example
   * // Get one Invoice_call
   * const invoice_call = await prisma.invoice_call.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends invoice_callFindUniqueArgs>(args: Prisma.SelectSubset<T, invoice_callFindUniqueArgs<ExtArgs>>): Prisma.Prisma__invoice_callClient<runtime.Types.Result.GetResult<Prisma.$invoice_callPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one Invoice_call that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {invoice_callFindUniqueOrThrowArgs} args - Arguments to find a Invoice_call
   * @example
   * // Get one Invoice_call
   * const invoice_call = await prisma.invoice_call.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends invoice_callFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, invoice_callFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__invoice_callClient<runtime.Types.Result.GetResult<Prisma.$invoice_callPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first Invoice_call that matches the filter.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {invoice_callFindFirstArgs} args - Arguments to find a Invoice_call
   * @example
   * // Get one Invoice_call
   * const invoice_call = await prisma.invoice_call.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends invoice_callFindFirstArgs>(args?: Prisma.SelectSubset<T, invoice_callFindFirstArgs<ExtArgs>>): Prisma.Prisma__invoice_callClient<runtime.Types.Result.GetResult<Prisma.$invoice_callPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first Invoice_call that matches the filter or
   * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {invoice_callFindFirstOrThrowArgs} args - Arguments to find a Invoice_call
   * @example
   * // Get one Invoice_call
   * const invoice_call = await prisma.invoice_call.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends invoice_callFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, invoice_callFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__invoice_callClient<runtime.Types.Result.GetResult<Prisma.$invoice_callPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more Invoice_calls that matches the filter.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {invoice_callFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all Invoice_calls
   * const invoice_calls = await prisma.invoice_call.findMany()
   * 
   * // Get first 10 Invoice_calls
   * const invoice_calls = await prisma.invoice_call.findMany({ take: 10 })
   * 
   * // Only select the `id`
   * const invoice_callWithIdOnly = await prisma.invoice_call.findMany({ select: { id: true } })
   * 
   */
  findMany<T extends invoice_callFindManyArgs>(args?: Prisma.SelectSubset<T, invoice_callFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$invoice_callPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a Invoice_call.
   * @param {invoice_callCreateArgs} args - Arguments to create a Invoice_call.
   * @example
   * // Create one Invoice_call
   * const Invoice_call = await prisma.invoice_call.create({
   *   data: {
   *     // ... data to create a Invoice_call
   *   }
   * })
   * 
   */
  create<T extends invoice_callCreateArgs>(args: Prisma.SelectSubset<T, invoice_callCreateArgs<ExtArgs>>): Prisma.Prisma__invoice_callClient<runtime.Types.Result.GetResult<Prisma.$invoice_callPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many Invoice_calls.
   * @param {invoice_callCreateManyArgs} args - Arguments to create many Invoice_calls.
   * @example
   * // Create many Invoice_calls
   * const invoice_call = await prisma.invoice_call.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *     
   */
  createMany<T extends invoice_callCreateManyArgs>(args?: Prisma.SelectSubset<T, invoice_callCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Delete a Invoice_call.
   * @param {invoice_callDeleteArgs} args - Arguments to delete one Invoice_call.
   * @example
   * // Delete one Invoice_call
   * const Invoice_call = await prisma.invoice_call.delete({
   *   where: {
   *     // ... filter to delete one Invoice_call
   *   }
   * })
   * 
   */
  delete<T extends invoice_callDeleteArgs>(args: Prisma.SelectSubset<T, invoice_callDeleteArgs<ExtArgs>>): Prisma.Prisma__invoice_callClient<runtime.Types.Result.GetResult<Prisma.$invoice_callPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one Invoice_call.
   * @param {invoice_callUpdateArgs} args - Arguments to update one Invoice_call.
   * @example
   * // Update one Invoice_call
   * const invoice_call = await prisma.invoice_call.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends invoice_callUpdateArgs>(args: Prisma.SelectSubset<T, invoice_callUpdateArgs<ExtArgs>>): Prisma.Prisma__invoice_callClient<runtime.Types.Result.GetResult<Prisma.$invoice_callPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more Invoice_calls.
   * @param {invoice_callDeleteManyArgs} args - Arguments to filter Invoice_calls to delete.
   * @example
   * // Delete a few Invoice_calls
   * const { count } = await prisma.invoice_call.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends invoice_callDeleteManyArgs>(args?: Prisma.SelectSubset<T, invoice_callDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more Invoice_calls.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {invoice_callUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many Invoice_calls
   * const invoice_call = await prisma.invoice_call.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends invoice_callUpdateManyArgs>(args: Prisma.SelectSubset<T, invoice_callUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create or update one Invoice_call.
   * @param {invoice_callUpsertArgs} args - Arguments to update or create a Invoice_call.
   * @example
   * // Update or create a Invoice_call
   * const invoice_call = await prisma.invoice_call.upsert({
   *   create: {
   *     // ... data to create a Invoice_call
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the Invoice_call we want to update
   *   }
   * })
   */
  upsert<T extends invoice_callUpsertArgs>(args: Prisma.SelectSubset<T, invoice_callUpsertArgs<ExtArgs>>): Prisma.Prisma__invoice_callClient<runtime.Types.Result.GetResult<Prisma.$invoice_callPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of Invoice_calls.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {invoice_callCountArgs} args - Arguments to filter Invoice_calls to count.
   * @example
   * // Count the number of Invoice_calls
   * const count = await prisma.invoice_call.count({
   *   where: {
   *     // ... the filter for the Invoice_calls we want to count
   *   }
   * })
  **/
  count<T extends invoice_callCountArgs>(
    args?: Prisma.Subset<T, invoice_callCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], Invoice_callCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a Invoice_call.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {Invoice_callAggregateArgs} 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 Invoice_callAggregateArgs>(args: Prisma.Subset<T, Invoice_callAggregateArgs>): Prisma.PrismaPromise<GetInvoice_callAggregateType<T>>

  /**
   * Group by Invoice_call.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {invoice_callGroupByArgs} args - Group by arguments.
   * @example
   * // Group by city, order by createdAt, get count
   * const result = await prisma.user.groupBy({
   *   by: ['city', 'createdAt'],
   *   orderBy: {
   *     createdAt: true
   *   },
   *   _count: {
   *     _all: true
   *   },
   * })
   * 
  **/
  groupBy<
    T extends invoice_callGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: invoice_callGroupByArgs['orderBy'] }
      : { orderBy?: invoice_callGroupByArgs['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, invoice_callGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInvoice_callGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the invoice_call model
 */
readonly fields: invoice_callFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for invoice_call.
 * Why is this prefixed with `Prisma__`?
 * Because we want to prevent naming conflicts as mentioned in
 * https://github.com/prisma/prisma-client-js/issues/707
 */
export interface Prisma__invoice_callClient<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_call model
 */
export interface invoice_callFieldRefs {
  readonly id: Prisma.FieldRef<"invoice_call", 'Int'>
  readonly date: Prisma.FieldRef<"invoice_call", 'BigInt'>
  readonly number: Prisma.FieldRef<"invoice_call", 'String'>
  readonly amount: Prisma.FieldRef<"invoice_call", 'Float'>
}
    

// Custom InputTypes
/**
 * invoice_call findUnique
 */
export type invoice_callFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_call
   */
  select?: Prisma.invoice_callSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_call
   */
  omit?: Prisma.invoice_callOmit<ExtArgs> | null
  /**
   * Filter, which invoice_call to fetch.
   */
  where: Prisma.invoice_callWhereUniqueInput
}

/**
 * invoice_call findUniqueOrThrow
 */
export type invoice_callFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_call
   */
  select?: Prisma.invoice_callSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_call
   */
  omit?: Prisma.invoice_callOmit<ExtArgs> | null
  /**
   * Filter, which invoice_call to fetch.
   */
  where: Prisma.invoice_callWhereUniqueInput
}

/**
 * invoice_call findFirst
 */
export type invoice_callFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_call
   */
  select?: Prisma.invoice_callSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_call
   */
  omit?: Prisma.invoice_callOmit<ExtArgs> | null
  /**
   * Filter, which invoice_call to fetch.
   */
  where?: Prisma.invoice_callWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of invoice_calls to fetch.
   */
  orderBy?: Prisma.invoice_callOrderByWithRelationInput | Prisma.invoice_callOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for invoice_calls.
   */
  cursor?: Prisma.invoice_callWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` invoice_calls from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` invoice_calls.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of invoice_calls.
   */
  distinct?: Prisma.Invoice_callScalarFieldEnum | Prisma.Invoice_callScalarFieldEnum[]
}

/**
 * invoice_call findFirstOrThrow
 */
export type invoice_callFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_call
   */
  select?: Prisma.invoice_callSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_call
   */
  omit?: Prisma.invoice_callOmit<ExtArgs> | null
  /**
   * Filter, which invoice_call to fetch.
   */
  where?: Prisma.invoice_callWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of invoice_calls to fetch.
   */
  orderBy?: Prisma.invoice_callOrderByWithRelationInput | Prisma.invoice_callOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for invoice_calls.
   */
  cursor?: Prisma.invoice_callWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` invoice_calls from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` invoice_calls.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of invoice_calls.
   */
  distinct?: Prisma.Invoice_callScalarFieldEnum | Prisma.Invoice_callScalarFieldEnum[]
}

/**
 * invoice_call findMany
 */
export type invoice_callFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_call
   */
  select?: Prisma.invoice_callSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_call
   */
  omit?: Prisma.invoice_callOmit<ExtArgs> | null
  /**
   * Filter, which invoice_calls to fetch.
   */
  where?: Prisma.invoice_callWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of invoice_calls to fetch.
   */
  orderBy?: Prisma.invoice_callOrderByWithRelationInput | Prisma.invoice_callOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing invoice_calls.
   */
  cursor?: Prisma.invoice_callWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` invoice_calls from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` invoice_calls.
   */
  skip?: number
  distinct?: Prisma.Invoice_callScalarFieldEnum | Prisma.Invoice_callScalarFieldEnum[]
}

/**
 * invoice_call create
 */
export type invoice_callCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_call
   */
  select?: Prisma.invoice_callSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_call
   */
  omit?: Prisma.invoice_callOmit<ExtArgs> | null
  /**
   * The data needed to create a invoice_call.
   */
  data: Prisma.XOR<Prisma.invoice_callCreateInput, Prisma.invoice_callUncheckedCreateInput>
}

/**
 * invoice_call createMany
 */
export type invoice_callCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many invoice_calls.
   */
  data: Prisma.invoice_callCreateManyInput | Prisma.invoice_callCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * invoice_call update
 */
export type invoice_callUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_call
   */
  select?: Prisma.invoice_callSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_call
   */
  omit?: Prisma.invoice_callOmit<ExtArgs> | null
  /**
   * The data needed to update a invoice_call.
   */
  data: Prisma.XOR<Prisma.invoice_callUpdateInput, Prisma.invoice_callUncheckedUpdateInput>
  /**
   * Choose, which invoice_call to update.
   */
  where: Prisma.invoice_callWhereUniqueInput
}

/**
 * invoice_call updateMany
 */
export type invoice_callUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update invoice_calls.
   */
  data: Prisma.XOR<Prisma.invoice_callUpdateManyMutationInput, Prisma.invoice_callUncheckedUpdateManyInput>
  /**
   * Filter which invoice_calls to update
   */
  where?: Prisma.invoice_callWhereInput
  /**
   * Limit how many invoice_calls to update.
   */
  limit?: number
}

/**
 * invoice_call upsert
 */
export type invoice_callUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_call
   */
  select?: Prisma.invoice_callSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_call
   */
  omit?: Prisma.invoice_callOmit<ExtArgs> | null
  /**
   * The filter to search for the invoice_call to update in case it exists.
   */
  where: Prisma.invoice_callWhereUniqueInput
  /**
   * In case the invoice_call found by the `where` argument doesn't exist, create a new invoice_call with this data.
   */
  create: Prisma.XOR<Prisma.invoice_callCreateInput, Prisma.invoice_callUncheckedCreateInput>
  /**
   * In case the invoice_call was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.invoice_callUpdateInput, Prisma.invoice_callUncheckedUpdateInput>
}

/**
 * invoice_call delete
 */
export type invoice_callDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_call
   */
  select?: Prisma.invoice_callSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_call
   */
  omit?: Prisma.invoice_callOmit<ExtArgs> | null
  /**
   * Filter which invoice_call to delete.
   */
  where: Prisma.invoice_callWhereUniqueInput
}

/**
 * invoice_call deleteMany
 */
export type invoice_callDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which invoice_calls to delete
   */
  where?: Prisma.invoice_callWhereInput
  /**
   * Limit how many invoice_calls to delete.
   */
  limit?: number
}

/**
 * invoice_call without action
 */
export type invoice_callDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_call
   */
  select?: Prisma.invoice_callSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_call
   */
  omit?: Prisma.invoice_callOmit<ExtArgs> | null
}
