
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `tele_pack` 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 tele_pack
 * 
 */
export type tele_packModel = runtime.Types.Result.DefaultSelection<Prisma.$tele_packPayload>

export type AggregateTele_pack = {
  _count: Tele_packCountAggregateOutputType | null
  _avg: Tele_packAvgAggregateOutputType | null
  _sum: Tele_packSumAggregateOutputType | null
  _min: Tele_packMinAggregateOutputType | null
  _max: Tele_packMaxAggregateOutputType | null
}

export type Tele_packAvgAggregateOutputType = {
  id: number | null
  product_id: number | null
  ccsa_packageID: number | null
  rapport_bell: number | null
  epgId: number | null
}

export type Tele_packSumAggregateOutputType = {
  id: number | null
  product_id: number | null
  ccsa_packageID: number | null
  rapport_bell: number | null
  epgId: number | null
}

export type Tele_packMinAggregateOutputType = {
  id: number | null
  product_id: number | null
  channels: string | null
  actif: boolean | null
  ccsa_packageID: number | null
  ccsa_desc: string | null
  rapport_bell: number | null
  bell_name: string | null
  epgId: number | null
}

export type Tele_packMaxAggregateOutputType = {
  id: number | null
  product_id: number | null
  channels: string | null
  actif: boolean | null
  ccsa_packageID: number | null
  ccsa_desc: string | null
  rapport_bell: number | null
  bell_name: string | null
  epgId: number | null
}

export type Tele_packCountAggregateOutputType = {
  id: number
  product_id: number
  channels: number
  actif: number
  ccsa_packageID: number
  ccsa_desc: number
  rapport_bell: number
  bell_name: number
  epgId: number
  _all: number
}


export type Tele_packAvgAggregateInputType = {
  id?: true
  product_id?: true
  ccsa_packageID?: true
  rapport_bell?: true
  epgId?: true
}

export type Tele_packSumAggregateInputType = {
  id?: true
  product_id?: true
  ccsa_packageID?: true
  rapport_bell?: true
  epgId?: true
}

export type Tele_packMinAggregateInputType = {
  id?: true
  product_id?: true
  channels?: true
  actif?: true
  ccsa_packageID?: true
  ccsa_desc?: true
  rapport_bell?: true
  bell_name?: true
  epgId?: true
}

export type Tele_packMaxAggregateInputType = {
  id?: true
  product_id?: true
  channels?: true
  actif?: true
  ccsa_packageID?: true
  ccsa_desc?: true
  rapport_bell?: true
  bell_name?: true
  epgId?: true
}

export type Tele_packCountAggregateInputType = {
  id?: true
  product_id?: true
  channels?: true
  actif?: true
  ccsa_packageID?: true
  ccsa_desc?: true
  rapport_bell?: true
  bell_name?: true
  epgId?: true
  _all?: true
}

export type Tele_packAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which tele_pack to aggregate.
   */
  where?: Prisma.tele_packWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of tele_packs to fetch.
   */
  orderBy?: Prisma.tele_packOrderByWithRelationInput | Prisma.tele_packOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.tele_packWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` tele_packs 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` tele_packs.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned tele_packs
  **/
  _count?: true | Tele_packCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Tele_packAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Tele_packSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Tele_packMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Tele_packMaxAggregateInputType
}

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




export type tele_packGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.tele_packWhereInput
  orderBy?: Prisma.tele_packOrderByWithAggregationInput | Prisma.tele_packOrderByWithAggregationInput[]
  by: Prisma.Tele_packScalarFieldEnum[] | Prisma.Tele_packScalarFieldEnum
  having?: Prisma.tele_packScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Tele_packCountAggregateInputType | true
  _avg?: Tele_packAvgAggregateInputType
  _sum?: Tele_packSumAggregateInputType
  _min?: Tele_packMinAggregateInputType
  _max?: Tele_packMaxAggregateInputType
}

export type Tele_packGroupByOutputType = {
  id: number
  product_id: number
  channels: string
  actif: boolean
  ccsa_packageID: number
  ccsa_desc: string
  rapport_bell: number
  bell_name: string | null
  epgId: number | null
  _count: Tele_packCountAggregateOutputType | null
  _avg: Tele_packAvgAggregateOutputType | null
  _sum: Tele_packSumAggregateOutputType | null
  _min: Tele_packMinAggregateOutputType | null
  _max: Tele_packMaxAggregateOutputType | null
}

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



export type tele_packWhereInput = {
  AND?: Prisma.tele_packWhereInput | Prisma.tele_packWhereInput[]
  OR?: Prisma.tele_packWhereInput[]
  NOT?: Prisma.tele_packWhereInput | Prisma.tele_packWhereInput[]
  id?: Prisma.IntFilter<"tele_pack"> | number
  product_id?: Prisma.IntFilter<"tele_pack"> | number
  channels?: Prisma.StringFilter<"tele_pack"> | string
  actif?: Prisma.BoolFilter<"tele_pack"> | boolean
  ccsa_packageID?: Prisma.IntFilter<"tele_pack"> | number
  ccsa_desc?: Prisma.StringFilter<"tele_pack"> | string
  rapport_bell?: Prisma.IntFilter<"tele_pack"> | number
  bell_name?: Prisma.StringNullableFilter<"tele_pack"> | string | null
  epgId?: Prisma.IntNullableFilter<"tele_pack"> | number | null
}

export type tele_packOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  product_id?: Prisma.SortOrder
  channels?: Prisma.SortOrder
  actif?: Prisma.SortOrder
  ccsa_packageID?: Prisma.SortOrder
  ccsa_desc?: Prisma.SortOrder
  rapport_bell?: Prisma.SortOrder
  bell_name?: Prisma.SortOrderInput | Prisma.SortOrder
  epgId?: Prisma.SortOrderInput | Prisma.SortOrder
  _relevance?: Prisma.tele_packOrderByRelevanceInput
}

export type tele_packWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.tele_packWhereInput | Prisma.tele_packWhereInput[]
  OR?: Prisma.tele_packWhereInput[]
  NOT?: Prisma.tele_packWhereInput | Prisma.tele_packWhereInput[]
  product_id?: Prisma.IntFilter<"tele_pack"> | number
  channels?: Prisma.StringFilter<"tele_pack"> | string
  actif?: Prisma.BoolFilter<"tele_pack"> | boolean
  ccsa_packageID?: Prisma.IntFilter<"tele_pack"> | number
  ccsa_desc?: Prisma.StringFilter<"tele_pack"> | string
  rapport_bell?: Prisma.IntFilter<"tele_pack"> | number
  bell_name?: Prisma.StringNullableFilter<"tele_pack"> | string | null
  epgId?: Prisma.IntNullableFilter<"tele_pack"> | number | null
}, "id">

export type tele_packOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  product_id?: Prisma.SortOrder
  channels?: Prisma.SortOrder
  actif?: Prisma.SortOrder
  ccsa_packageID?: Prisma.SortOrder
  ccsa_desc?: Prisma.SortOrder
  rapport_bell?: Prisma.SortOrder
  bell_name?: Prisma.SortOrderInput | Prisma.SortOrder
  epgId?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.tele_packCountOrderByAggregateInput
  _avg?: Prisma.tele_packAvgOrderByAggregateInput
  _max?: Prisma.tele_packMaxOrderByAggregateInput
  _min?: Prisma.tele_packMinOrderByAggregateInput
  _sum?: Prisma.tele_packSumOrderByAggregateInput
}

export type tele_packScalarWhereWithAggregatesInput = {
  AND?: Prisma.tele_packScalarWhereWithAggregatesInput | Prisma.tele_packScalarWhereWithAggregatesInput[]
  OR?: Prisma.tele_packScalarWhereWithAggregatesInput[]
  NOT?: Prisma.tele_packScalarWhereWithAggregatesInput | Prisma.tele_packScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"tele_pack"> | number
  product_id?: Prisma.IntWithAggregatesFilter<"tele_pack"> | number
  channels?: Prisma.StringWithAggregatesFilter<"tele_pack"> | string
  actif?: Prisma.BoolWithAggregatesFilter<"tele_pack"> | boolean
  ccsa_packageID?: Prisma.IntWithAggregatesFilter<"tele_pack"> | number
  ccsa_desc?: Prisma.StringWithAggregatesFilter<"tele_pack"> | string
  rapport_bell?: Prisma.IntWithAggregatesFilter<"tele_pack"> | number
  bell_name?: Prisma.StringNullableWithAggregatesFilter<"tele_pack"> | string | null
  epgId?: Prisma.IntNullableWithAggregatesFilter<"tele_pack"> | number | null
}

export type tele_packCreateInput = {
  product_id: number
  channels: string
  actif?: boolean
  ccsa_packageID: number
  ccsa_desc: string
  rapport_bell?: number
  bell_name?: string | null
  epgId?: number | null
}

export type tele_packUncheckedCreateInput = {
  id?: number
  product_id: number
  channels: string
  actif?: boolean
  ccsa_packageID: number
  ccsa_desc: string
  rapport_bell?: number
  bell_name?: string | null
  epgId?: number | null
}

export type tele_packUpdateInput = {
  product_id?: Prisma.IntFieldUpdateOperationsInput | number
  channels?: Prisma.StringFieldUpdateOperationsInput | string
  actif?: Prisma.BoolFieldUpdateOperationsInput | boolean
  ccsa_packageID?: Prisma.IntFieldUpdateOperationsInput | number
  ccsa_desc?: Prisma.StringFieldUpdateOperationsInput | string
  rapport_bell?: Prisma.IntFieldUpdateOperationsInput | number
  bell_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  epgId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}

export type tele_packUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  product_id?: Prisma.IntFieldUpdateOperationsInput | number
  channels?: Prisma.StringFieldUpdateOperationsInput | string
  actif?: Prisma.BoolFieldUpdateOperationsInput | boolean
  ccsa_packageID?: Prisma.IntFieldUpdateOperationsInput | number
  ccsa_desc?: Prisma.StringFieldUpdateOperationsInput | string
  rapport_bell?: Prisma.IntFieldUpdateOperationsInput | number
  bell_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  epgId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}

export type tele_packCreateManyInput = {
  id?: number
  product_id: number
  channels: string
  actif?: boolean
  ccsa_packageID: number
  ccsa_desc: string
  rapport_bell?: number
  bell_name?: string | null
  epgId?: number | null
}

export type tele_packUpdateManyMutationInput = {
  product_id?: Prisma.IntFieldUpdateOperationsInput | number
  channels?: Prisma.StringFieldUpdateOperationsInput | string
  actif?: Prisma.BoolFieldUpdateOperationsInput | boolean
  ccsa_packageID?: Prisma.IntFieldUpdateOperationsInput | number
  ccsa_desc?: Prisma.StringFieldUpdateOperationsInput | string
  rapport_bell?: Prisma.IntFieldUpdateOperationsInput | number
  bell_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  epgId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}

export type tele_packUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  product_id?: Prisma.IntFieldUpdateOperationsInput | number
  channels?: Prisma.StringFieldUpdateOperationsInput | string
  actif?: Prisma.BoolFieldUpdateOperationsInput | boolean
  ccsa_packageID?: Prisma.IntFieldUpdateOperationsInput | number
  ccsa_desc?: Prisma.StringFieldUpdateOperationsInput | string
  rapport_bell?: Prisma.IntFieldUpdateOperationsInput | number
  bell_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  epgId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}

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

export type tele_packCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  product_id?: Prisma.SortOrder
  channels?: Prisma.SortOrder
  actif?: Prisma.SortOrder
  ccsa_packageID?: Prisma.SortOrder
  ccsa_desc?: Prisma.SortOrder
  rapport_bell?: Prisma.SortOrder
  bell_name?: Prisma.SortOrder
  epgId?: Prisma.SortOrder
}

export type tele_packAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  product_id?: Prisma.SortOrder
  ccsa_packageID?: Prisma.SortOrder
  rapport_bell?: Prisma.SortOrder
  epgId?: Prisma.SortOrder
}

export type tele_packMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  product_id?: Prisma.SortOrder
  channels?: Prisma.SortOrder
  actif?: Prisma.SortOrder
  ccsa_packageID?: Prisma.SortOrder
  ccsa_desc?: Prisma.SortOrder
  rapport_bell?: Prisma.SortOrder
  bell_name?: Prisma.SortOrder
  epgId?: Prisma.SortOrder
}

export type tele_packMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  product_id?: Prisma.SortOrder
  channels?: Prisma.SortOrder
  actif?: Prisma.SortOrder
  ccsa_packageID?: Prisma.SortOrder
  ccsa_desc?: Prisma.SortOrder
  rapport_bell?: Prisma.SortOrder
  bell_name?: Prisma.SortOrder
  epgId?: Prisma.SortOrder
}

export type tele_packSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  product_id?: Prisma.SortOrder
  ccsa_packageID?: Prisma.SortOrder
  rapport_bell?: Prisma.SortOrder
  epgId?: Prisma.SortOrder
}



export type tele_packSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  product_id?: boolean
  channels?: boolean
  actif?: boolean
  ccsa_packageID?: boolean
  ccsa_desc?: boolean
  rapport_bell?: boolean
  bell_name?: boolean
  epgId?: boolean
}, ExtArgs["result"]["tele_pack"]>



export type tele_packSelectScalar = {
  id?: boolean
  product_id?: boolean
  channels?: boolean
  actif?: boolean
  ccsa_packageID?: boolean
  ccsa_desc?: boolean
  rapport_bell?: boolean
  bell_name?: boolean
  epgId?: boolean
}

export type tele_packOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "product_id" | "channels" | "actif" | "ccsa_packageID" | "ccsa_desc" | "rapport_bell" | "bell_name" | "epgId", ExtArgs["result"]["tele_pack"]>

export type $tele_packPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "tele_pack"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    product_id: number
    channels: string
    actif: boolean
    ccsa_packageID: number
    ccsa_desc: string
    rapport_bell: number
    bell_name: string | null
    epgId: number | null
  }, ExtArgs["result"]["tele_pack"]>
  composites: {}
}

export type tele_packGetPayload<S extends boolean | null | undefined | tele_packDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$tele_packPayload, S>

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

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

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

  /**
   * Find the first Tele_pack 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 {tele_packFindFirstArgs} args - Arguments to find a Tele_pack
   * @example
   * // Get one Tele_pack
   * const tele_pack = await prisma.tele_pack.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends tele_packFindFirstArgs>(args?: Prisma.SelectSubset<T, tele_packFindFirstArgs<ExtArgs>>): Prisma.Prisma__tele_packClient<runtime.Types.Result.GetResult<Prisma.$tele_packPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first Tele_pack 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 {tele_packFindFirstOrThrowArgs} args - Arguments to find a Tele_pack
   * @example
   * // Get one Tele_pack
   * const tele_pack = await prisma.tele_pack.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends tele_packFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, tele_packFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__tele_packClient<runtime.Types.Result.GetResult<Prisma.$tele_packPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more Tele_packs 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 {tele_packFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all Tele_packs
   * const tele_packs = await prisma.tele_pack.findMany()
   * 
   * // Get first 10 Tele_packs
   * const tele_packs = await prisma.tele_pack.findMany({ take: 10 })
   * 
   * // Only select the `id`
   * const tele_packWithIdOnly = await prisma.tele_pack.findMany({ select: { id: true } })
   * 
   */
  findMany<T extends tele_packFindManyArgs>(args?: Prisma.SelectSubset<T, tele_packFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$tele_packPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

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

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

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

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

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

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

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


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

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

  /**
   * Group by Tele_pack.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {tele_packGroupByArgs} 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 tele_packGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: tele_packGroupByArgs['orderBy'] }
      : { orderBy?: tele_packGroupByArgs['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, tele_packGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTele_packGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the tele_pack model
 */
readonly fields: tele_packFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for tele_pack.
 * 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__tele_packClient<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 tele_pack model
 */
export interface tele_packFieldRefs {
  readonly id: Prisma.FieldRef<"tele_pack", 'Int'>
  readonly product_id: Prisma.FieldRef<"tele_pack", 'Int'>
  readonly channels: Prisma.FieldRef<"tele_pack", 'String'>
  readonly actif: Prisma.FieldRef<"tele_pack", 'Boolean'>
  readonly ccsa_packageID: Prisma.FieldRef<"tele_pack", 'Int'>
  readonly ccsa_desc: Prisma.FieldRef<"tele_pack", 'String'>
  readonly rapport_bell: Prisma.FieldRef<"tele_pack", 'Int'>
  readonly bell_name: Prisma.FieldRef<"tele_pack", 'String'>
  readonly epgId: Prisma.FieldRef<"tele_pack", 'Int'>
}
    

// Custom InputTypes
/**
 * tele_pack findUnique
 */
export type tele_packFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tele_pack
   */
  select?: Prisma.tele_packSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tele_pack
   */
  omit?: Prisma.tele_packOmit<ExtArgs> | null
  /**
   * Filter, which tele_pack to fetch.
   */
  where: Prisma.tele_packWhereUniqueInput
}

/**
 * tele_pack findUniqueOrThrow
 */
export type tele_packFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tele_pack
   */
  select?: Prisma.tele_packSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tele_pack
   */
  omit?: Prisma.tele_packOmit<ExtArgs> | null
  /**
   * Filter, which tele_pack to fetch.
   */
  where: Prisma.tele_packWhereUniqueInput
}

/**
 * tele_pack findFirst
 */
export type tele_packFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tele_pack
   */
  select?: Prisma.tele_packSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tele_pack
   */
  omit?: Prisma.tele_packOmit<ExtArgs> | null
  /**
   * Filter, which tele_pack to fetch.
   */
  where?: Prisma.tele_packWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of tele_packs to fetch.
   */
  orderBy?: Prisma.tele_packOrderByWithRelationInput | Prisma.tele_packOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for tele_packs.
   */
  cursor?: Prisma.tele_packWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` tele_packs 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` tele_packs.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of tele_packs.
   */
  distinct?: Prisma.Tele_packScalarFieldEnum | Prisma.Tele_packScalarFieldEnum[]
}

/**
 * tele_pack findFirstOrThrow
 */
export type tele_packFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tele_pack
   */
  select?: Prisma.tele_packSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tele_pack
   */
  omit?: Prisma.tele_packOmit<ExtArgs> | null
  /**
   * Filter, which tele_pack to fetch.
   */
  where?: Prisma.tele_packWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of tele_packs to fetch.
   */
  orderBy?: Prisma.tele_packOrderByWithRelationInput | Prisma.tele_packOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for tele_packs.
   */
  cursor?: Prisma.tele_packWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` tele_packs 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` tele_packs.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of tele_packs.
   */
  distinct?: Prisma.Tele_packScalarFieldEnum | Prisma.Tele_packScalarFieldEnum[]
}

/**
 * tele_pack findMany
 */
export type tele_packFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tele_pack
   */
  select?: Prisma.tele_packSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tele_pack
   */
  omit?: Prisma.tele_packOmit<ExtArgs> | null
  /**
   * Filter, which tele_packs to fetch.
   */
  where?: Prisma.tele_packWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of tele_packs to fetch.
   */
  orderBy?: Prisma.tele_packOrderByWithRelationInput | Prisma.tele_packOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing tele_packs.
   */
  cursor?: Prisma.tele_packWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` tele_packs 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` tele_packs.
   */
  skip?: number
  distinct?: Prisma.Tele_packScalarFieldEnum | Prisma.Tele_packScalarFieldEnum[]
}

/**
 * tele_pack create
 */
export type tele_packCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tele_pack
   */
  select?: Prisma.tele_packSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tele_pack
   */
  omit?: Prisma.tele_packOmit<ExtArgs> | null
  /**
   * The data needed to create a tele_pack.
   */
  data: Prisma.XOR<Prisma.tele_packCreateInput, Prisma.tele_packUncheckedCreateInput>
}

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

/**
 * tele_pack update
 */
export type tele_packUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tele_pack
   */
  select?: Prisma.tele_packSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tele_pack
   */
  omit?: Prisma.tele_packOmit<ExtArgs> | null
  /**
   * The data needed to update a tele_pack.
   */
  data: Prisma.XOR<Prisma.tele_packUpdateInput, Prisma.tele_packUncheckedUpdateInput>
  /**
   * Choose, which tele_pack to update.
   */
  where: Prisma.tele_packWhereUniqueInput
}

/**
 * tele_pack updateMany
 */
export type tele_packUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update tele_packs.
   */
  data: Prisma.XOR<Prisma.tele_packUpdateManyMutationInput, Prisma.tele_packUncheckedUpdateManyInput>
  /**
   * Filter which tele_packs to update
   */
  where?: Prisma.tele_packWhereInput
  /**
   * Limit how many tele_packs to update.
   */
  limit?: number
}

/**
 * tele_pack upsert
 */
export type tele_packUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tele_pack
   */
  select?: Prisma.tele_packSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tele_pack
   */
  omit?: Prisma.tele_packOmit<ExtArgs> | null
  /**
   * The filter to search for the tele_pack to update in case it exists.
   */
  where: Prisma.tele_packWhereUniqueInput
  /**
   * In case the tele_pack found by the `where` argument doesn't exist, create a new tele_pack with this data.
   */
  create: Prisma.XOR<Prisma.tele_packCreateInput, Prisma.tele_packUncheckedCreateInput>
  /**
   * In case the tele_pack was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.tele_packUpdateInput, Prisma.tele_packUncheckedUpdateInput>
}

/**
 * tele_pack delete
 */
export type tele_packDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tele_pack
   */
  select?: Prisma.tele_packSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tele_pack
   */
  omit?: Prisma.tele_packOmit<ExtArgs> | null
  /**
   * Filter which tele_pack to delete.
   */
  where: Prisma.tele_packWhereUniqueInput
}

/**
 * tele_pack deleteMany
 */
export type tele_packDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which tele_packs to delete
   */
  where?: Prisma.tele_packWhereInput
  /**
   * Limit how many tele_packs to delete.
   */
  limit?: number
}

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