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

export type AggregatePbx_com_wl = {
  _count: Pbx_com_wlCountAggregateOutputType | null
  _avg: Pbx_com_wlAvgAggregateOutputType | null
  _sum: Pbx_com_wlSumAggregateOutputType | null
  _min: Pbx_com_wlMinAggregateOutputType | null
  _max: Pbx_com_wlMaxAggregateOutputType | null
}

export type Pbx_com_wlAvgAggregateOutputType = {
  id: number | null
}

export type Pbx_com_wlSumAggregateOutputType = {
  id: number | null
}

export type Pbx_com_wlMinAggregateOutputType = {
  id: number | null
  phone: string | null
  country_whitelist: string | null
}

export type Pbx_com_wlMaxAggregateOutputType = {
  id: number | null
  phone: string | null
  country_whitelist: string | null
}

export type Pbx_com_wlCountAggregateOutputType = {
  id: number
  phone: number
  country_whitelist: number
  _all: number
}


export type Pbx_com_wlAvgAggregateInputType = {
  id?: true
}

export type Pbx_com_wlSumAggregateInputType = {
  id?: true
}

export type Pbx_com_wlMinAggregateInputType = {
  id?: true
  phone?: true
  country_whitelist?: true
}

export type Pbx_com_wlMaxAggregateInputType = {
  id?: true
  phone?: true
  country_whitelist?: true
}

export type Pbx_com_wlCountAggregateInputType = {
  id?: true
  phone?: true
  country_whitelist?: true
  _all?: true
}

export type Pbx_com_wlAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which pbx_com_wl to aggregate.
   */
  where?: Prisma.pbx_com_wlWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of pbx_com_wls to fetch.
   */
  orderBy?: Prisma.pbx_com_wlOrderByWithRelationInput | Prisma.pbx_com_wlOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.pbx_com_wlWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` pbx_com_wls 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` pbx_com_wls.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned pbx_com_wls
  **/
  _count?: true | Pbx_com_wlCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Pbx_com_wlAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Pbx_com_wlSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Pbx_com_wlMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Pbx_com_wlMaxAggregateInputType
}

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




export type pbx_com_wlGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.pbx_com_wlWhereInput
  orderBy?: Prisma.pbx_com_wlOrderByWithAggregationInput | Prisma.pbx_com_wlOrderByWithAggregationInput[]
  by: Prisma.Pbx_com_wlScalarFieldEnum[] | Prisma.Pbx_com_wlScalarFieldEnum
  having?: Prisma.pbx_com_wlScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Pbx_com_wlCountAggregateInputType | true
  _avg?: Pbx_com_wlAvgAggregateInputType
  _sum?: Pbx_com_wlSumAggregateInputType
  _min?: Pbx_com_wlMinAggregateInputType
  _max?: Pbx_com_wlMaxAggregateInputType
}

export type Pbx_com_wlGroupByOutputType = {
  id: number
  phone: string
  country_whitelist: string
  _count: Pbx_com_wlCountAggregateOutputType | null
  _avg: Pbx_com_wlAvgAggregateOutputType | null
  _sum: Pbx_com_wlSumAggregateOutputType | null
  _min: Pbx_com_wlMinAggregateOutputType | null
  _max: Pbx_com_wlMaxAggregateOutputType | null
}

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



export type pbx_com_wlWhereInput = {
  AND?: Prisma.pbx_com_wlWhereInput | Prisma.pbx_com_wlWhereInput[]
  OR?: Prisma.pbx_com_wlWhereInput[]
  NOT?: Prisma.pbx_com_wlWhereInput | Prisma.pbx_com_wlWhereInput[]
  id?: Prisma.IntFilter<"pbx_com_wl"> | number
  phone?: Prisma.StringFilter<"pbx_com_wl"> | string
  country_whitelist?: Prisma.StringFilter<"pbx_com_wl"> | string
}

export type pbx_com_wlOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  phone?: Prisma.SortOrder
  country_whitelist?: Prisma.SortOrder
  _relevance?: Prisma.pbx_com_wlOrderByRelevanceInput
}

export type pbx_com_wlWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  phone?: string
  AND?: Prisma.pbx_com_wlWhereInput | Prisma.pbx_com_wlWhereInput[]
  OR?: Prisma.pbx_com_wlWhereInput[]
  NOT?: Prisma.pbx_com_wlWhereInput | Prisma.pbx_com_wlWhereInput[]
  country_whitelist?: Prisma.StringFilter<"pbx_com_wl"> | string
}, "id" | "phone">

export type pbx_com_wlOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  phone?: Prisma.SortOrder
  country_whitelist?: Prisma.SortOrder
  _count?: Prisma.pbx_com_wlCountOrderByAggregateInput
  _avg?: Prisma.pbx_com_wlAvgOrderByAggregateInput
  _max?: Prisma.pbx_com_wlMaxOrderByAggregateInput
  _min?: Prisma.pbx_com_wlMinOrderByAggregateInput
  _sum?: Prisma.pbx_com_wlSumOrderByAggregateInput
}

export type pbx_com_wlScalarWhereWithAggregatesInput = {
  AND?: Prisma.pbx_com_wlScalarWhereWithAggregatesInput | Prisma.pbx_com_wlScalarWhereWithAggregatesInput[]
  OR?: Prisma.pbx_com_wlScalarWhereWithAggregatesInput[]
  NOT?: Prisma.pbx_com_wlScalarWhereWithAggregatesInput | Prisma.pbx_com_wlScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"pbx_com_wl"> | number
  phone?: Prisma.StringWithAggregatesFilter<"pbx_com_wl"> | string
  country_whitelist?: Prisma.StringWithAggregatesFilter<"pbx_com_wl"> | string
}

export type pbx_com_wlCreateInput = {
  phone: string
  country_whitelist: string
}

export type pbx_com_wlUncheckedCreateInput = {
  id?: number
  phone: string
  country_whitelist: string
}

export type pbx_com_wlUpdateInput = {
  phone?: Prisma.StringFieldUpdateOperationsInput | string
  country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string
}

export type pbx_com_wlUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  phone?: Prisma.StringFieldUpdateOperationsInput | string
  country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string
}

export type pbx_com_wlCreateManyInput = {
  id?: number
  phone: string
  country_whitelist: string
}

export type pbx_com_wlUpdateManyMutationInput = {
  phone?: Prisma.StringFieldUpdateOperationsInput | string
  country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string
}

export type pbx_com_wlUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  phone?: Prisma.StringFieldUpdateOperationsInput | string
  country_whitelist?: Prisma.StringFieldUpdateOperationsInput | string
}

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

export type pbx_com_wlCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  phone?: Prisma.SortOrder
  country_whitelist?: Prisma.SortOrder
}

export type pbx_com_wlAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
}

export type pbx_com_wlMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  phone?: Prisma.SortOrder
  country_whitelist?: Prisma.SortOrder
}

export type pbx_com_wlMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  phone?: Prisma.SortOrder
  country_whitelist?: Prisma.SortOrder
}

export type pbx_com_wlSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
}



export type pbx_com_wlSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  phone?: boolean
  country_whitelist?: boolean
}, ExtArgs["result"]["pbx_com_wl"]>



export type pbx_com_wlSelectScalar = {
  id?: boolean
  phone?: boolean
  country_whitelist?: boolean
}

export type pbx_com_wlOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "phone" | "country_whitelist", ExtArgs["result"]["pbx_com_wl"]>

export type $pbx_com_wlPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "pbx_com_wl"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    phone: string
    country_whitelist: string
  }, ExtArgs["result"]["pbx_com_wl"]>
  composites: {}
}

export type pbx_com_wlGetPayload<S extends boolean | null | undefined | pbx_com_wlDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$pbx_com_wlPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for pbx_com_wl.
 * 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__pbx_com_wlClient<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 pbx_com_wl model
 */
export interface pbx_com_wlFieldRefs {
  readonly id: Prisma.FieldRef<"pbx_com_wl", 'Int'>
  readonly phone: Prisma.FieldRef<"pbx_com_wl", 'String'>
  readonly country_whitelist: Prisma.FieldRef<"pbx_com_wl", 'String'>
}
    

// Custom InputTypes
/**
 * pbx_com_wl findUnique
 */
export type pbx_com_wlFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the pbx_com_wl
   */
  select?: Prisma.pbx_com_wlSelect<ExtArgs> | null
  /**
   * Omit specific fields from the pbx_com_wl
   */
  omit?: Prisma.pbx_com_wlOmit<ExtArgs> | null
  /**
   * Filter, which pbx_com_wl to fetch.
   */
  where: Prisma.pbx_com_wlWhereUniqueInput
}

/**
 * pbx_com_wl findUniqueOrThrow
 */
export type pbx_com_wlFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the pbx_com_wl
   */
  select?: Prisma.pbx_com_wlSelect<ExtArgs> | null
  /**
   * Omit specific fields from the pbx_com_wl
   */
  omit?: Prisma.pbx_com_wlOmit<ExtArgs> | null
  /**
   * Filter, which pbx_com_wl to fetch.
   */
  where: Prisma.pbx_com_wlWhereUniqueInput
}

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

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

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

/**
 * pbx_com_wl create
 */
export type pbx_com_wlCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the pbx_com_wl
   */
  select?: Prisma.pbx_com_wlSelect<ExtArgs> | null
  /**
   * Omit specific fields from the pbx_com_wl
   */
  omit?: Prisma.pbx_com_wlOmit<ExtArgs> | null
  /**
   * The data needed to create a pbx_com_wl.
   */
  data: Prisma.XOR<Prisma.pbx_com_wlCreateInput, Prisma.pbx_com_wlUncheckedCreateInput>
}

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

/**
 * pbx_com_wl update
 */
export type pbx_com_wlUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the pbx_com_wl
   */
  select?: Prisma.pbx_com_wlSelect<ExtArgs> | null
  /**
   * Omit specific fields from the pbx_com_wl
   */
  omit?: Prisma.pbx_com_wlOmit<ExtArgs> | null
  /**
   * The data needed to update a pbx_com_wl.
   */
  data: Prisma.XOR<Prisma.pbx_com_wlUpdateInput, Prisma.pbx_com_wlUncheckedUpdateInput>
  /**
   * Choose, which pbx_com_wl to update.
   */
  where: Prisma.pbx_com_wlWhereUniqueInput
}

/**
 * pbx_com_wl updateMany
 */
export type pbx_com_wlUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update pbx_com_wls.
   */
  data: Prisma.XOR<Prisma.pbx_com_wlUpdateManyMutationInput, Prisma.pbx_com_wlUncheckedUpdateManyInput>
  /**
   * Filter which pbx_com_wls to update
   */
  where?: Prisma.pbx_com_wlWhereInput
  /**
   * Limit how many pbx_com_wls to update.
   */
  limit?: number
}

/**
 * pbx_com_wl upsert
 */
export type pbx_com_wlUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the pbx_com_wl
   */
  select?: Prisma.pbx_com_wlSelect<ExtArgs> | null
  /**
   * Omit specific fields from the pbx_com_wl
   */
  omit?: Prisma.pbx_com_wlOmit<ExtArgs> | null
  /**
   * The filter to search for the pbx_com_wl to update in case it exists.
   */
  where: Prisma.pbx_com_wlWhereUniqueInput
  /**
   * In case the pbx_com_wl found by the `where` argument doesn't exist, create a new pbx_com_wl with this data.
   */
  create: Prisma.XOR<Prisma.pbx_com_wlCreateInput, Prisma.pbx_com_wlUncheckedCreateInput>
  /**
   * In case the pbx_com_wl was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.pbx_com_wlUpdateInput, Prisma.pbx_com_wlUncheckedUpdateInput>
}

/**
 * pbx_com_wl delete
 */
export type pbx_com_wlDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the pbx_com_wl
   */
  select?: Prisma.pbx_com_wlSelect<ExtArgs> | null
  /**
   * Omit specific fields from the pbx_com_wl
   */
  omit?: Prisma.pbx_com_wlOmit<ExtArgs> | null
  /**
   * Filter which pbx_com_wl to delete.
   */
  where: Prisma.pbx_com_wlWhereUniqueInput
}

/**
 * pbx_com_wl deleteMany
 */
export type pbx_com_wlDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which pbx_com_wls to delete
   */
  where?: Prisma.pbx_com_wlWhereInput
  /**
   * Limit how many pbx_com_wls to delete.
   */
  limit?: number
}

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