/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `phone_provisioning` 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 phone_provisioning * */ export type phone_provisioningModel = runtime.Types.Result.DefaultSelection export type AggregatePhone_provisioning = { _count: Phone_provisioningCountAggregateOutputType | null _avg: Phone_provisioningAvgAggregateOutputType | null _sum: Phone_provisioningSumAggregateOutputType | null _min: Phone_provisioningMinAggregateOutputType | null _max: Phone_provisioningMaxAggregateOutputType | null } export type Phone_provisioningAvgAggregateOutputType = { id: number | null account_id: number | null delivery_id: number | null service_id: number | null date_orig: number | null date_update: number | null } export type Phone_provisioningSumAggregateOutputType = { id: number | null account_id: number | null delivery_id: number | null service_id: number | null date_orig: bigint | null date_update: bigint | null } export type Phone_provisioningMinAggregateOutputType = { id: number | null account_id: number | null delivery_id: number | null service_id: number | null phone: string | null app: string | null mac: string | null password: string | null internationnal: string | null date_orig: bigint | null date_update: bigint | null } export type Phone_provisioningMaxAggregateOutputType = { id: number | null account_id: number | null delivery_id: number | null service_id: number | null phone: string | null app: string | null mac: string | null password: string | null internationnal: string | null date_orig: bigint | null date_update: bigint | null } export type Phone_provisioningCountAggregateOutputType = { id: number account_id: number delivery_id: number service_id: number phone: number app: number mac: number password: number internationnal: number date_orig: number date_update: number _all: number } export type Phone_provisioningAvgAggregateInputType = { id?: true account_id?: true delivery_id?: true service_id?: true date_orig?: true date_update?: true } export type Phone_provisioningSumAggregateInputType = { id?: true account_id?: true delivery_id?: true service_id?: true date_orig?: true date_update?: true } export type Phone_provisioningMinAggregateInputType = { id?: true account_id?: true delivery_id?: true service_id?: true phone?: true app?: true mac?: true password?: true internationnal?: true date_orig?: true date_update?: true } export type Phone_provisioningMaxAggregateInputType = { id?: true account_id?: true delivery_id?: true service_id?: true phone?: true app?: true mac?: true password?: true internationnal?: true date_orig?: true date_update?: true } export type Phone_provisioningCountAggregateInputType = { id?: true account_id?: true delivery_id?: true service_id?: true phone?: true app?: true mac?: true password?: true internationnal?: true date_orig?: true date_update?: true _all?: true } export type Phone_provisioningAggregateArgs = { /** * Filter which phone_provisioning to aggregate. */ where?: Prisma.phone_provisioningWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of phone_provisionings to fetch. */ orderBy?: Prisma.phone_provisioningOrderByWithRelationInput | Prisma.phone_provisioningOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.phone_provisioningWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` phone_provisionings 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` phone_provisionings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned phone_provisionings **/ _count?: true | Phone_provisioningCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Phone_provisioningAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Phone_provisioningSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Phone_provisioningMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Phone_provisioningMaxAggregateInputType } export type GetPhone_provisioningAggregateType = { [P in keyof T & keyof AggregatePhone_provisioning]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type phone_provisioningGroupByArgs = { where?: Prisma.phone_provisioningWhereInput orderBy?: Prisma.phone_provisioningOrderByWithAggregationInput | Prisma.phone_provisioningOrderByWithAggregationInput[] by: Prisma.Phone_provisioningScalarFieldEnum[] | Prisma.Phone_provisioningScalarFieldEnum having?: Prisma.phone_provisioningScalarWhereWithAggregatesInput take?: number skip?: number _count?: Phone_provisioningCountAggregateInputType | true _avg?: Phone_provisioningAvgAggregateInputType _sum?: Phone_provisioningSumAggregateInputType _min?: Phone_provisioningMinAggregateInputType _max?: Phone_provisioningMaxAggregateInputType } export type Phone_provisioningGroupByOutputType = { id: number account_id: number delivery_id: number service_id: number phone: string app: string mac: string password: string internationnal: string | null date_orig: bigint date_update: bigint _count: Phone_provisioningCountAggregateOutputType | null _avg: Phone_provisioningAvgAggregateOutputType | null _sum: Phone_provisioningSumAggregateOutputType | null _min: Phone_provisioningMinAggregateOutputType | null _max: Phone_provisioningMaxAggregateOutputType | null } type GetPhone_provisioningGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Phone_provisioningGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type phone_provisioningWhereInput = { AND?: Prisma.phone_provisioningWhereInput | Prisma.phone_provisioningWhereInput[] OR?: Prisma.phone_provisioningWhereInput[] NOT?: Prisma.phone_provisioningWhereInput | Prisma.phone_provisioningWhereInput[] id?: Prisma.IntFilter<"phone_provisioning"> | number account_id?: Prisma.IntFilter<"phone_provisioning"> | number delivery_id?: Prisma.IntFilter<"phone_provisioning"> | number service_id?: Prisma.IntFilter<"phone_provisioning"> | number phone?: Prisma.StringFilter<"phone_provisioning"> | string app?: Prisma.StringFilter<"phone_provisioning"> | string mac?: Prisma.StringFilter<"phone_provisioning"> | string password?: Prisma.StringFilter<"phone_provisioning"> | string internationnal?: Prisma.StringNullableFilter<"phone_provisioning"> | string | null date_orig?: Prisma.BigIntFilter<"phone_provisioning"> | bigint | number date_update?: Prisma.BigIntFilter<"phone_provisioning"> | bigint | number } export type phone_provisioningOrderByWithRelationInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder service_id?: Prisma.SortOrder phone?: Prisma.SortOrder app?: Prisma.SortOrder mac?: Prisma.SortOrder password?: Prisma.SortOrder internationnal?: Prisma.SortOrderInput | Prisma.SortOrder date_orig?: Prisma.SortOrder date_update?: Prisma.SortOrder _relevance?: Prisma.phone_provisioningOrderByRelevanceInput } export type phone_provisioningWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.phone_provisioningWhereInput | Prisma.phone_provisioningWhereInput[] OR?: Prisma.phone_provisioningWhereInput[] NOT?: Prisma.phone_provisioningWhereInput | Prisma.phone_provisioningWhereInput[] account_id?: Prisma.IntFilter<"phone_provisioning"> | number delivery_id?: Prisma.IntFilter<"phone_provisioning"> | number service_id?: Prisma.IntFilter<"phone_provisioning"> | number phone?: Prisma.StringFilter<"phone_provisioning"> | string app?: Prisma.StringFilter<"phone_provisioning"> | string mac?: Prisma.StringFilter<"phone_provisioning"> | string password?: Prisma.StringFilter<"phone_provisioning"> | string internationnal?: Prisma.StringNullableFilter<"phone_provisioning"> | string | null date_orig?: Prisma.BigIntFilter<"phone_provisioning"> | bigint | number date_update?: Prisma.BigIntFilter<"phone_provisioning"> | bigint | number }, "id"> export type phone_provisioningOrderByWithAggregationInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder service_id?: Prisma.SortOrder phone?: Prisma.SortOrder app?: Prisma.SortOrder mac?: Prisma.SortOrder password?: Prisma.SortOrder internationnal?: Prisma.SortOrderInput | Prisma.SortOrder date_orig?: Prisma.SortOrder date_update?: Prisma.SortOrder _count?: Prisma.phone_provisioningCountOrderByAggregateInput _avg?: Prisma.phone_provisioningAvgOrderByAggregateInput _max?: Prisma.phone_provisioningMaxOrderByAggregateInput _min?: Prisma.phone_provisioningMinOrderByAggregateInput _sum?: Prisma.phone_provisioningSumOrderByAggregateInput } export type phone_provisioningScalarWhereWithAggregatesInput = { AND?: Prisma.phone_provisioningScalarWhereWithAggregatesInput | Prisma.phone_provisioningScalarWhereWithAggregatesInput[] OR?: Prisma.phone_provisioningScalarWhereWithAggregatesInput[] NOT?: Prisma.phone_provisioningScalarWhereWithAggregatesInput | Prisma.phone_provisioningScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"phone_provisioning"> | number account_id?: Prisma.IntWithAggregatesFilter<"phone_provisioning"> | number delivery_id?: Prisma.IntWithAggregatesFilter<"phone_provisioning"> | number service_id?: Prisma.IntWithAggregatesFilter<"phone_provisioning"> | number phone?: Prisma.StringWithAggregatesFilter<"phone_provisioning"> | string app?: Prisma.StringWithAggregatesFilter<"phone_provisioning"> | string mac?: Prisma.StringWithAggregatesFilter<"phone_provisioning"> | string password?: Prisma.StringWithAggregatesFilter<"phone_provisioning"> | string internationnal?: Prisma.StringNullableWithAggregatesFilter<"phone_provisioning"> | string | null date_orig?: Prisma.BigIntWithAggregatesFilter<"phone_provisioning"> | bigint | number date_update?: Prisma.BigIntWithAggregatesFilter<"phone_provisioning"> | bigint | number } export type phone_provisioningCreateInput = { account_id: number delivery_id: number service_id: number phone: string app: string mac: string password: string internationnal?: string | null date_orig: bigint | number date_update: bigint | number } export type phone_provisioningUncheckedCreateInput = { id?: number account_id: number delivery_id: number service_id: number phone: string app: string mac: string password: string internationnal?: string | null date_orig: bigint | number date_update: bigint | number } export type phone_provisioningUpdateInput = { account_id?: Prisma.IntFieldUpdateOperationsInput | number delivery_id?: Prisma.IntFieldUpdateOperationsInput | number service_id?: Prisma.IntFieldUpdateOperationsInput | number phone?: Prisma.StringFieldUpdateOperationsInput | string app?: Prisma.StringFieldUpdateOperationsInput | string mac?: Prisma.StringFieldUpdateOperationsInput | string password?: Prisma.StringFieldUpdateOperationsInput | string internationnal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number date_update?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type phone_provisioningUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number account_id?: Prisma.IntFieldUpdateOperationsInput | number delivery_id?: Prisma.IntFieldUpdateOperationsInput | number service_id?: Prisma.IntFieldUpdateOperationsInput | number phone?: Prisma.StringFieldUpdateOperationsInput | string app?: Prisma.StringFieldUpdateOperationsInput | string mac?: Prisma.StringFieldUpdateOperationsInput | string password?: Prisma.StringFieldUpdateOperationsInput | string internationnal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number date_update?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type phone_provisioningCreateManyInput = { id?: number account_id: number delivery_id: number service_id: number phone: string app: string mac: string password: string internationnal?: string | null date_orig: bigint | number date_update: bigint | number } export type phone_provisioningUpdateManyMutationInput = { account_id?: Prisma.IntFieldUpdateOperationsInput | number delivery_id?: Prisma.IntFieldUpdateOperationsInput | number service_id?: Prisma.IntFieldUpdateOperationsInput | number phone?: Prisma.StringFieldUpdateOperationsInput | string app?: Prisma.StringFieldUpdateOperationsInput | string mac?: Prisma.StringFieldUpdateOperationsInput | string password?: Prisma.StringFieldUpdateOperationsInput | string internationnal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number date_update?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type phone_provisioningUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number account_id?: Prisma.IntFieldUpdateOperationsInput | number delivery_id?: Prisma.IntFieldUpdateOperationsInput | number service_id?: Prisma.IntFieldUpdateOperationsInput | number phone?: Prisma.StringFieldUpdateOperationsInput | string app?: Prisma.StringFieldUpdateOperationsInput | string mac?: Prisma.StringFieldUpdateOperationsInput | string password?: Prisma.StringFieldUpdateOperationsInput | string internationnal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number date_update?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type phone_provisioningOrderByRelevanceInput = { fields: Prisma.phone_provisioningOrderByRelevanceFieldEnum | Prisma.phone_provisioningOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type phone_provisioningCountOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder service_id?: Prisma.SortOrder phone?: Prisma.SortOrder app?: Prisma.SortOrder mac?: Prisma.SortOrder password?: Prisma.SortOrder internationnal?: Prisma.SortOrder date_orig?: Prisma.SortOrder date_update?: Prisma.SortOrder } export type phone_provisioningAvgOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder service_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder date_update?: Prisma.SortOrder } export type phone_provisioningMaxOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder service_id?: Prisma.SortOrder phone?: Prisma.SortOrder app?: Prisma.SortOrder mac?: Prisma.SortOrder password?: Prisma.SortOrder internationnal?: Prisma.SortOrder date_orig?: Prisma.SortOrder date_update?: Prisma.SortOrder } export type phone_provisioningMinOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder service_id?: Prisma.SortOrder phone?: Prisma.SortOrder app?: Prisma.SortOrder mac?: Prisma.SortOrder password?: Prisma.SortOrder internationnal?: Prisma.SortOrder date_orig?: Prisma.SortOrder date_update?: Prisma.SortOrder } export type phone_provisioningSumOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder delivery_id?: Prisma.SortOrder service_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder date_update?: Prisma.SortOrder } export type phone_provisioningSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean account_id?: boolean delivery_id?: boolean service_id?: boolean phone?: boolean app?: boolean mac?: boolean password?: boolean internationnal?: boolean date_orig?: boolean date_update?: boolean }, ExtArgs["result"]["phone_provisioning"]> export type phone_provisioningSelectScalar = { id?: boolean account_id?: boolean delivery_id?: boolean service_id?: boolean phone?: boolean app?: boolean mac?: boolean password?: boolean internationnal?: boolean date_orig?: boolean date_update?: boolean } export type phone_provisioningOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "delivery_id" | "service_id" | "phone" | "app" | "mac" | "password" | "internationnal" | "date_orig" | "date_update", ExtArgs["result"]["phone_provisioning"]> export type $phone_provisioningPayload = { name: "phone_provisioning" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number account_id: number delivery_id: number service_id: number phone: string app: string mac: string password: string internationnal: string | null date_orig: bigint date_update: bigint }, ExtArgs["result"]["phone_provisioning"]> composites: {} } export type phone_provisioningGetPayload = runtime.Types.Result.GetResult export type phone_provisioningCountArgs = Omit & { select?: Phone_provisioningCountAggregateInputType | true } export interface phone_provisioningDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['phone_provisioning'], meta: { name: 'phone_provisioning' } } /** * Find zero or one Phone_provisioning that matches the filter. * @param {phone_provisioningFindUniqueArgs} args - Arguments to find a Phone_provisioning * @example * // Get one Phone_provisioning * const phone_provisioning = await prisma.phone_provisioning.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__phone_provisioningClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Phone_provisioning that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {phone_provisioningFindUniqueOrThrowArgs} args - Arguments to find a Phone_provisioning * @example * // Get one Phone_provisioning * const phone_provisioning = await prisma.phone_provisioning.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__phone_provisioningClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Phone_provisioning 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 {phone_provisioningFindFirstArgs} args - Arguments to find a Phone_provisioning * @example * // Get one Phone_provisioning * const phone_provisioning = await prisma.phone_provisioning.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__phone_provisioningClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Phone_provisioning 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 {phone_provisioningFindFirstOrThrowArgs} args - Arguments to find a Phone_provisioning * @example * // Get one Phone_provisioning * const phone_provisioning = await prisma.phone_provisioning.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__phone_provisioningClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Phone_provisionings 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 {phone_provisioningFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Phone_provisionings * const phone_provisionings = await prisma.phone_provisioning.findMany() * * // Get first 10 Phone_provisionings * const phone_provisionings = await prisma.phone_provisioning.findMany({ take: 10 }) * * // Only select the `id` * const phone_provisioningWithIdOnly = await prisma.phone_provisioning.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Phone_provisioning. * @param {phone_provisioningCreateArgs} args - Arguments to create a Phone_provisioning. * @example * // Create one Phone_provisioning * const Phone_provisioning = await prisma.phone_provisioning.create({ * data: { * // ... data to create a Phone_provisioning * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__phone_provisioningClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Phone_provisionings. * @param {phone_provisioningCreateManyArgs} args - Arguments to create many Phone_provisionings. * @example * // Create many Phone_provisionings * const phone_provisioning = await prisma.phone_provisioning.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Phone_provisioning. * @param {phone_provisioningDeleteArgs} args - Arguments to delete one Phone_provisioning. * @example * // Delete one Phone_provisioning * const Phone_provisioning = await prisma.phone_provisioning.delete({ * where: { * // ... filter to delete one Phone_provisioning * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__phone_provisioningClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Phone_provisioning. * @param {phone_provisioningUpdateArgs} args - Arguments to update one Phone_provisioning. * @example * // Update one Phone_provisioning * const phone_provisioning = await prisma.phone_provisioning.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__phone_provisioningClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Phone_provisionings. * @param {phone_provisioningDeleteManyArgs} args - Arguments to filter Phone_provisionings to delete. * @example * // Delete a few Phone_provisionings * const { count } = await prisma.phone_provisioning.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Phone_provisionings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {phone_provisioningUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Phone_provisionings * const phone_provisioning = await prisma.phone_provisioning.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Phone_provisioning. * @param {phone_provisioningUpsertArgs} args - Arguments to update or create a Phone_provisioning. * @example * // Update or create a Phone_provisioning * const phone_provisioning = await prisma.phone_provisioning.upsert({ * create: { * // ... data to create a Phone_provisioning * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Phone_provisioning we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__phone_provisioningClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Phone_provisionings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {phone_provisioningCountArgs} args - Arguments to filter Phone_provisionings to count. * @example * // Count the number of Phone_provisionings * const count = await prisma.phone_provisioning.count({ * where: { * // ... the filter for the Phone_provisionings we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a Phone_provisioning. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Phone_provisioningAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Phone_provisioning. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {phone_provisioningGroupByArgs} 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 phone_provisioningGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: phone_provisioningGroupByArgs['orderBy'] } : { orderBy?: phone_provisioningGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetPhone_provisioningGroupByPayload : Prisma.PrismaPromise /** * Fields of the phone_provisioning model */ readonly fields: phone_provisioningFieldRefs; } /** * The delegate class that acts as a "Promise-like" for phone_provisioning. * 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__phone_provisioningClient extends Prisma.PrismaPromise { 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * Fields of the phone_provisioning model */ export interface phone_provisioningFieldRefs { readonly id: Prisma.FieldRef<"phone_provisioning", 'Int'> readonly account_id: Prisma.FieldRef<"phone_provisioning", 'Int'> readonly delivery_id: Prisma.FieldRef<"phone_provisioning", 'Int'> readonly service_id: Prisma.FieldRef<"phone_provisioning", 'Int'> readonly phone: Prisma.FieldRef<"phone_provisioning", 'String'> readonly app: Prisma.FieldRef<"phone_provisioning", 'String'> readonly mac: Prisma.FieldRef<"phone_provisioning", 'String'> readonly password: Prisma.FieldRef<"phone_provisioning", 'String'> readonly internationnal: Prisma.FieldRef<"phone_provisioning", 'String'> readonly date_orig: Prisma.FieldRef<"phone_provisioning", 'BigInt'> readonly date_update: Prisma.FieldRef<"phone_provisioning", 'BigInt'> } // Custom InputTypes /** * phone_provisioning findUnique */ export type phone_provisioningFindUniqueArgs = { /** * Select specific fields to fetch from the phone_provisioning */ select?: Prisma.phone_provisioningSelect | null /** * Omit specific fields from the phone_provisioning */ omit?: Prisma.phone_provisioningOmit | null /** * Filter, which phone_provisioning to fetch. */ where: Prisma.phone_provisioningWhereUniqueInput } /** * phone_provisioning findUniqueOrThrow */ export type phone_provisioningFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the phone_provisioning */ select?: Prisma.phone_provisioningSelect | null /** * Omit specific fields from the phone_provisioning */ omit?: Prisma.phone_provisioningOmit | null /** * Filter, which phone_provisioning to fetch. */ where: Prisma.phone_provisioningWhereUniqueInput } /** * phone_provisioning findFirst */ export type phone_provisioningFindFirstArgs = { /** * Select specific fields to fetch from the phone_provisioning */ select?: Prisma.phone_provisioningSelect | null /** * Omit specific fields from the phone_provisioning */ omit?: Prisma.phone_provisioningOmit | null /** * Filter, which phone_provisioning to fetch. */ where?: Prisma.phone_provisioningWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of phone_provisionings to fetch. */ orderBy?: Prisma.phone_provisioningOrderByWithRelationInput | Prisma.phone_provisioningOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for phone_provisionings. */ cursor?: Prisma.phone_provisioningWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` phone_provisionings 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` phone_provisionings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of phone_provisionings. */ distinct?: Prisma.Phone_provisioningScalarFieldEnum | Prisma.Phone_provisioningScalarFieldEnum[] } /** * phone_provisioning findFirstOrThrow */ export type phone_provisioningFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the phone_provisioning */ select?: Prisma.phone_provisioningSelect | null /** * Omit specific fields from the phone_provisioning */ omit?: Prisma.phone_provisioningOmit | null /** * Filter, which phone_provisioning to fetch. */ where?: Prisma.phone_provisioningWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of phone_provisionings to fetch. */ orderBy?: Prisma.phone_provisioningOrderByWithRelationInput | Prisma.phone_provisioningOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for phone_provisionings. */ cursor?: Prisma.phone_provisioningWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` phone_provisionings 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` phone_provisionings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of phone_provisionings. */ distinct?: Prisma.Phone_provisioningScalarFieldEnum | Prisma.Phone_provisioningScalarFieldEnum[] } /** * phone_provisioning findMany */ export type phone_provisioningFindManyArgs = { /** * Select specific fields to fetch from the phone_provisioning */ select?: Prisma.phone_provisioningSelect | null /** * Omit specific fields from the phone_provisioning */ omit?: Prisma.phone_provisioningOmit | null /** * Filter, which phone_provisionings to fetch. */ where?: Prisma.phone_provisioningWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of phone_provisionings to fetch. */ orderBy?: Prisma.phone_provisioningOrderByWithRelationInput | Prisma.phone_provisioningOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing phone_provisionings. */ cursor?: Prisma.phone_provisioningWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` phone_provisionings 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` phone_provisionings. */ skip?: number distinct?: Prisma.Phone_provisioningScalarFieldEnum | Prisma.Phone_provisioningScalarFieldEnum[] } /** * phone_provisioning create */ export type phone_provisioningCreateArgs = { /** * Select specific fields to fetch from the phone_provisioning */ select?: Prisma.phone_provisioningSelect | null /** * Omit specific fields from the phone_provisioning */ omit?: Prisma.phone_provisioningOmit | null /** * The data needed to create a phone_provisioning. */ data: Prisma.XOR } /** * phone_provisioning createMany */ export type phone_provisioningCreateManyArgs = { /** * The data used to create many phone_provisionings. */ data: Prisma.phone_provisioningCreateManyInput | Prisma.phone_provisioningCreateManyInput[] skipDuplicates?: boolean } /** * phone_provisioning update */ export type phone_provisioningUpdateArgs = { /** * Select specific fields to fetch from the phone_provisioning */ select?: Prisma.phone_provisioningSelect | null /** * Omit specific fields from the phone_provisioning */ omit?: Prisma.phone_provisioningOmit | null /** * The data needed to update a phone_provisioning. */ data: Prisma.XOR /** * Choose, which phone_provisioning to update. */ where: Prisma.phone_provisioningWhereUniqueInput } /** * phone_provisioning updateMany */ export type phone_provisioningUpdateManyArgs = { /** * The data used to update phone_provisionings. */ data: Prisma.XOR /** * Filter which phone_provisionings to update */ where?: Prisma.phone_provisioningWhereInput /** * Limit how many phone_provisionings to update. */ limit?: number } /** * phone_provisioning upsert */ export type phone_provisioningUpsertArgs = { /** * Select specific fields to fetch from the phone_provisioning */ select?: Prisma.phone_provisioningSelect | null /** * Omit specific fields from the phone_provisioning */ omit?: Prisma.phone_provisioningOmit | null /** * The filter to search for the phone_provisioning to update in case it exists. */ where: Prisma.phone_provisioningWhereUniqueInput /** * In case the phone_provisioning found by the `where` argument doesn't exist, create a new phone_provisioning with this data. */ create: Prisma.XOR /** * In case the phone_provisioning was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * phone_provisioning delete */ export type phone_provisioningDeleteArgs = { /** * Select specific fields to fetch from the phone_provisioning */ select?: Prisma.phone_provisioningSelect | null /** * Omit specific fields from the phone_provisioning */ omit?: Prisma.phone_provisioningOmit | null /** * Filter which phone_provisioning to delete. */ where: Prisma.phone_provisioningWhereUniqueInput } /** * phone_provisioning deleteMany */ export type phone_provisioningDeleteManyArgs = { /** * Filter which phone_provisionings to delete */ where?: Prisma.phone_provisioningWhereInput /** * Limit how many phone_provisionings to delete. */ limit?: number } /** * phone_provisioning without action */ export type phone_provisioningDefaultArgs = { /** * Select specific fields to fetch from the phone_provisioning */ select?: Prisma.phone_provisioningSelect | null /** * Omit specific fields from the phone_provisioning */ omit?: Prisma.phone_provisioningOmit | null }