/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Provider` 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.js" import type * as Prisma from "../internal/prismaNamespace.js" /** * Model Provider * */ export type ProviderModel = runtime.Types.Result.DefaultSelection export type AggregateProvider = { _count: ProviderCountAggregateOutputType | null _min: ProviderMinAggregateOutputType | null _max: ProviderMaxAggregateOutputType | null } export type ProviderMinAggregateOutputType = { id: string | null code: string | null status: $Enums.PartnerStatus | null name: string | null created_at: Date | null updated_at: Date | null } export type ProviderMaxAggregateOutputType = { id: string | null code: string | null status: $Enums.PartnerStatus | null name: string | null created_at: Date | null updated_at: Date | null } export type ProviderCountAggregateOutputType = { id: number code: number status: number name: number created_at: number updated_at: number _all: number } export type ProviderMinAggregateInputType = { id?: true code?: true status?: true name?: true created_at?: true updated_at?: true } export type ProviderMaxAggregateInputType = { id?: true code?: true status?: true name?: true created_at?: true updated_at?: true } export type ProviderCountAggregateInputType = { id?: true code?: true status?: true name?: true created_at?: true updated_at?: true _all?: true } export type ProviderAggregateArgs = { /** * Filter which Provider to aggregate. */ where?: Prisma.ProviderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Providers to fetch. */ orderBy?: Prisma.ProviderOrderByWithRelationInput | Prisma.ProviderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ProviderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Providers 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` Providers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Providers **/ _count?: true | ProviderCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ProviderMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ProviderMaxAggregateInputType } export type GetProviderAggregateType = { [P in keyof T & keyof AggregateProvider]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ProviderGroupByArgs = { where?: Prisma.ProviderWhereInput orderBy?: Prisma.ProviderOrderByWithAggregationInput | Prisma.ProviderOrderByWithAggregationInput[] by: Prisma.ProviderScalarFieldEnum[] | Prisma.ProviderScalarFieldEnum having?: Prisma.ProviderScalarWhereWithAggregatesInput take?: number skip?: number _count?: ProviderCountAggregateInputType | true _min?: ProviderMinAggregateInputType _max?: ProviderMaxAggregateInputType } export type ProviderGroupByOutputType = { id: string code: string status: $Enums.PartnerStatus name: string created_at: Date updated_at: Date _count: ProviderCountAggregateOutputType | null _min: ProviderMinAggregateOutputType | null _max: ProviderMaxAggregateOutputType | null } type GetProviderGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ProviderGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ProviderWhereInput = { AND?: Prisma.ProviderWhereInput | Prisma.ProviderWhereInput[] OR?: Prisma.ProviderWhereInput[] NOT?: Prisma.ProviderWhereInput | Prisma.ProviderWhereInput[] id?: Prisma.StringFilter<"Provider"> | string code?: Prisma.StringFilter<"Provider"> | string status?: Prisma.EnumPartnerStatusFilter<"Provider"> | $Enums.PartnerStatus name?: Prisma.StringFilter<"Provider"> | string created_at?: Prisma.DateTimeFilter<"Provider"> | Date | string updated_at?: Prisma.DateTimeFilter<"Provider"> | Date | string pos_list?: Prisma.PosListRelationFilter accounts?: Prisma.ProviderAccountListRelationFilter } export type ProviderOrderByWithRelationInput = { id?: Prisma.SortOrder code?: Prisma.SortOrder status?: Prisma.SortOrder name?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder pos_list?: Prisma.PosOrderByRelationAggregateInput accounts?: Prisma.ProviderAccountOrderByRelationAggregateInput _relevance?: Prisma.ProviderOrderByRelevanceInput } export type ProviderWhereUniqueInput = Prisma.AtLeast<{ id?: string code?: string AND?: Prisma.ProviderWhereInput | Prisma.ProviderWhereInput[] OR?: Prisma.ProviderWhereInput[] NOT?: Prisma.ProviderWhereInput | Prisma.ProviderWhereInput[] status?: Prisma.EnumPartnerStatusFilter<"Provider"> | $Enums.PartnerStatus name?: Prisma.StringFilter<"Provider"> | string created_at?: Prisma.DateTimeFilter<"Provider"> | Date | string updated_at?: Prisma.DateTimeFilter<"Provider"> | Date | string pos_list?: Prisma.PosListRelationFilter accounts?: Prisma.ProviderAccountListRelationFilter }, "id" | "code"> export type ProviderOrderByWithAggregationInput = { id?: Prisma.SortOrder code?: Prisma.SortOrder status?: Prisma.SortOrder name?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder _count?: Prisma.ProviderCountOrderByAggregateInput _max?: Prisma.ProviderMaxOrderByAggregateInput _min?: Prisma.ProviderMinOrderByAggregateInput } export type ProviderScalarWhereWithAggregatesInput = { AND?: Prisma.ProviderScalarWhereWithAggregatesInput | Prisma.ProviderScalarWhereWithAggregatesInput[] OR?: Prisma.ProviderScalarWhereWithAggregatesInput[] NOT?: Prisma.ProviderScalarWhereWithAggregatesInput | Prisma.ProviderScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Provider"> | string code?: Prisma.StringWithAggregatesFilter<"Provider"> | string status?: Prisma.EnumPartnerStatusWithAggregatesFilter<"Provider"> | $Enums.PartnerStatus name?: Prisma.StringWithAggregatesFilter<"Provider"> | string created_at?: Prisma.DateTimeWithAggregatesFilter<"Provider"> | Date | string updated_at?: Prisma.DateTimeWithAggregatesFilter<"Provider"> | Date | string } export type ProviderCreateInput = { id?: string code: string status?: $Enums.PartnerStatus name: string created_at?: Date | string updated_at?: Date | string pos_list?: Prisma.PosCreateNestedManyWithoutProviderInput accounts?: Prisma.ProviderAccountCreateNestedManyWithoutUserInput } export type ProviderUncheckedCreateInput = { id?: string code: string status?: $Enums.PartnerStatus name: string created_at?: Date | string updated_at?: Date | string pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutProviderInput accounts?: Prisma.ProviderAccountUncheckedCreateNestedManyWithoutUserInput } export type ProviderUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus name?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string pos_list?: Prisma.PosUpdateManyWithoutProviderNestedInput accounts?: Prisma.ProviderAccountUpdateManyWithoutUserNestedInput } export type ProviderUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus name?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string pos_list?: Prisma.PosUncheckedUpdateManyWithoutProviderNestedInput accounts?: Prisma.ProviderAccountUncheckedUpdateManyWithoutUserNestedInput } export type ProviderCreateManyInput = { id?: string code: string status?: $Enums.PartnerStatus name: string created_at?: Date | string updated_at?: Date | string } export type ProviderUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus name?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ProviderUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus name?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ProviderNullableScalarRelationFilter = { is?: Prisma.ProviderWhereInput | null isNot?: Prisma.ProviderWhereInput | null } export type ProviderOrderByRelevanceInput = { fields: Prisma.ProviderOrderByRelevanceFieldEnum | Prisma.ProviderOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type ProviderCountOrderByAggregateInput = { id?: Prisma.SortOrder code?: Prisma.SortOrder status?: Prisma.SortOrder name?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type ProviderMaxOrderByAggregateInput = { id?: Prisma.SortOrder code?: Prisma.SortOrder status?: Prisma.SortOrder name?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type ProviderMinOrderByAggregateInput = { id?: Prisma.SortOrder code?: Prisma.SortOrder status?: Prisma.SortOrder name?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type ProviderScalarRelationFilter = { is?: Prisma.ProviderWhereInput isNot?: Prisma.ProviderWhereInput } export type ProviderCreateNestedOneWithoutPos_listInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProviderCreateOrConnectWithoutPos_listInput connect?: Prisma.ProviderWhereUniqueInput } export type ProviderUpdateOneWithoutPos_listNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProviderCreateOrConnectWithoutPos_listInput upsert?: Prisma.ProviderUpsertWithoutPos_listInput disconnect?: Prisma.ProviderWhereInput | boolean delete?: Prisma.ProviderWhereInput | boolean connect?: Prisma.ProviderWhereUniqueInput update?: Prisma.XOR, Prisma.ProviderUncheckedUpdateWithoutPos_listInput> } export type ProviderCreateNestedOneWithoutAccountsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProviderCreateOrConnectWithoutAccountsInput connect?: Prisma.ProviderWhereUniqueInput } export type ProviderUpdateOneRequiredWithoutAccountsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProviderCreateOrConnectWithoutAccountsInput upsert?: Prisma.ProviderUpsertWithoutAccountsInput connect?: Prisma.ProviderWhereUniqueInput update?: Prisma.XOR, Prisma.ProviderUncheckedUpdateWithoutAccountsInput> } export type ProviderCreateWithoutPos_listInput = { id?: string code: string status?: $Enums.PartnerStatus name: string created_at?: Date | string updated_at?: Date | string accounts?: Prisma.ProviderAccountCreateNestedManyWithoutUserInput } export type ProviderUncheckedCreateWithoutPos_listInput = { id?: string code: string status?: $Enums.PartnerStatus name: string created_at?: Date | string updated_at?: Date | string accounts?: Prisma.ProviderAccountUncheckedCreateNestedManyWithoutUserInput } export type ProviderCreateOrConnectWithoutPos_listInput = { where: Prisma.ProviderWhereUniqueInput create: Prisma.XOR } export type ProviderUpsertWithoutPos_listInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ProviderWhereInput } export type ProviderUpdateToOneWithWhereWithoutPos_listInput = { where?: Prisma.ProviderWhereInput data: Prisma.XOR } export type ProviderUpdateWithoutPos_listInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus name?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string accounts?: Prisma.ProviderAccountUpdateManyWithoutUserNestedInput } export type ProviderUncheckedUpdateWithoutPos_listInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus name?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string accounts?: Prisma.ProviderAccountUncheckedUpdateManyWithoutUserNestedInput } export type ProviderCreateWithoutAccountsInput = { id?: string code: string status?: $Enums.PartnerStatus name: string created_at?: Date | string updated_at?: Date | string pos_list?: Prisma.PosCreateNestedManyWithoutProviderInput } export type ProviderUncheckedCreateWithoutAccountsInput = { id?: string code: string status?: $Enums.PartnerStatus name: string created_at?: Date | string updated_at?: Date | string pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutProviderInput } export type ProviderCreateOrConnectWithoutAccountsInput = { where: Prisma.ProviderWhereUniqueInput create: Prisma.XOR } export type ProviderUpsertWithoutAccountsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ProviderWhereInput } export type ProviderUpdateToOneWithWhereWithoutAccountsInput = { where?: Prisma.ProviderWhereInput data: Prisma.XOR } export type ProviderUpdateWithoutAccountsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus name?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string pos_list?: Prisma.PosUpdateManyWithoutProviderNestedInput } export type ProviderUncheckedUpdateWithoutAccountsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus name?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string pos_list?: Prisma.PosUncheckedUpdateManyWithoutProviderNestedInput } /** * Count Type ProviderCountOutputType */ export type ProviderCountOutputType = { pos_list: number accounts: number } export type ProviderCountOutputTypeSelect = { pos_list?: boolean | ProviderCountOutputTypeCountPos_listArgs accounts?: boolean | ProviderCountOutputTypeCountAccountsArgs } /** * ProviderCountOutputType without action */ export type ProviderCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ProviderCountOutputType */ select?: Prisma.ProviderCountOutputTypeSelect | null } /** * ProviderCountOutputType without action */ export type ProviderCountOutputTypeCountPos_listArgs = { where?: Prisma.PosWhereInput } /** * ProviderCountOutputType without action */ export type ProviderCountOutputTypeCountAccountsArgs = { where?: Prisma.ProviderAccountWhereInput } export type ProviderSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean code?: boolean status?: boolean name?: boolean created_at?: boolean updated_at?: boolean pos_list?: boolean | Prisma.Provider$pos_listArgs accounts?: boolean | Prisma.Provider$accountsArgs _count?: boolean | Prisma.ProviderCountOutputTypeDefaultArgs }, ExtArgs["result"]["provider"]> export type ProviderSelectScalar = { id?: boolean code?: boolean status?: boolean name?: boolean created_at?: boolean updated_at?: boolean } export type ProviderOmit = runtime.Types.Extensions.GetOmit<"id" | "code" | "status" | "name" | "created_at" | "updated_at", ExtArgs["result"]["provider"]> export type ProviderInclude = { pos_list?: boolean | Prisma.Provider$pos_listArgs accounts?: boolean | Prisma.Provider$accountsArgs _count?: boolean | Prisma.ProviderCountOutputTypeDefaultArgs } export type $ProviderPayload = { name: "Provider" objects: { pos_list: Prisma.$PosPayload[] accounts: Prisma.$ProviderAccountPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string code: string status: $Enums.PartnerStatus name: string created_at: Date updated_at: Date }, ExtArgs["result"]["provider"]> composites: {} } export type ProviderGetPayload = runtime.Types.Result.GetResult export type ProviderCountArgs = Omit & { select?: ProviderCountAggregateInputType | true } export interface ProviderDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Provider'], meta: { name: 'Provider' } } /** * Find zero or one Provider that matches the filter. * @param {ProviderFindUniqueArgs} args - Arguments to find a Provider * @example * // Get one Provider * const provider = await prisma.provider.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ProviderClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Provider that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ProviderFindUniqueOrThrowArgs} args - Arguments to find a Provider * @example * // Get one Provider * const provider = await prisma.provider.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ProviderClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Provider 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 {ProviderFindFirstArgs} args - Arguments to find a Provider * @example * // Get one Provider * const provider = await prisma.provider.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ProviderClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Provider 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 {ProviderFindFirstOrThrowArgs} args - Arguments to find a Provider * @example * // Get one Provider * const provider = await prisma.provider.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ProviderClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Providers 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 {ProviderFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Providers * const providers = await prisma.provider.findMany() * * // Get first 10 Providers * const providers = await prisma.provider.findMany({ take: 10 }) * * // Only select the `id` * const providerWithIdOnly = await prisma.provider.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Provider. * @param {ProviderCreateArgs} args - Arguments to create a Provider. * @example * // Create one Provider * const Provider = await prisma.provider.create({ * data: { * // ... data to create a Provider * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ProviderClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Providers. * @param {ProviderCreateManyArgs} args - Arguments to create many Providers. * @example * // Create many Providers * const provider = await prisma.provider.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Provider. * @param {ProviderDeleteArgs} args - Arguments to delete one Provider. * @example * // Delete one Provider * const Provider = await prisma.provider.delete({ * where: { * // ... filter to delete one Provider * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ProviderClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Provider. * @param {ProviderUpdateArgs} args - Arguments to update one Provider. * @example * // Update one Provider * const provider = await prisma.provider.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ProviderClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Providers. * @param {ProviderDeleteManyArgs} args - Arguments to filter Providers to delete. * @example * // Delete a few Providers * const { count } = await prisma.provider.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Providers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProviderUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Providers * const provider = await prisma.provider.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Provider. * @param {ProviderUpsertArgs} args - Arguments to update or create a Provider. * @example * // Update or create a Provider * const provider = await prisma.provider.upsert({ * create: { * // ... data to create a Provider * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Provider we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ProviderClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Providers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProviderCountArgs} args - Arguments to filter Providers to count. * @example * // Count the number of Providers * const count = await prisma.provider.count({ * where: { * // ... the filter for the Providers 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 Provider. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProviderAggregateArgs} 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 Provider. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProviderGroupByArgs} 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 ProviderGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ProviderGroupByArgs['orderBy'] } : { orderBy?: ProviderGroupByArgs['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 ? GetProviderGroupByPayload : Prisma.PrismaPromise /** * Fields of the Provider model */ readonly fields: ProviderFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Provider. * 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__ProviderClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" pos_list = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> accounts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * 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 Provider model */ export interface ProviderFieldRefs { readonly id: Prisma.FieldRef<"Provider", 'String'> readonly code: Prisma.FieldRef<"Provider", 'String'> readonly status: Prisma.FieldRef<"Provider", 'PartnerStatus'> readonly name: Prisma.FieldRef<"Provider", 'String'> readonly created_at: Prisma.FieldRef<"Provider", 'DateTime'> readonly updated_at: Prisma.FieldRef<"Provider", 'DateTime'> } // Custom InputTypes /** * Provider findUnique */ export type ProviderFindUniqueArgs = { /** * Select specific fields to fetch from the Provider */ select?: Prisma.ProviderSelect | null /** * Omit specific fields from the Provider */ omit?: Prisma.ProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProviderInclude | null /** * Filter, which Provider to fetch. */ where: Prisma.ProviderWhereUniqueInput } /** * Provider findUniqueOrThrow */ export type ProviderFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Provider */ select?: Prisma.ProviderSelect | null /** * Omit specific fields from the Provider */ omit?: Prisma.ProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProviderInclude | null /** * Filter, which Provider to fetch. */ where: Prisma.ProviderWhereUniqueInput } /** * Provider findFirst */ export type ProviderFindFirstArgs = { /** * Select specific fields to fetch from the Provider */ select?: Prisma.ProviderSelect | null /** * Omit specific fields from the Provider */ omit?: Prisma.ProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProviderInclude | null /** * Filter, which Provider to fetch. */ where?: Prisma.ProviderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Providers to fetch. */ orderBy?: Prisma.ProviderOrderByWithRelationInput | Prisma.ProviderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Providers. */ cursor?: Prisma.ProviderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Providers 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` Providers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Providers. */ distinct?: Prisma.ProviderScalarFieldEnum | Prisma.ProviderScalarFieldEnum[] } /** * Provider findFirstOrThrow */ export type ProviderFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Provider */ select?: Prisma.ProviderSelect | null /** * Omit specific fields from the Provider */ omit?: Prisma.ProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProviderInclude | null /** * Filter, which Provider to fetch. */ where?: Prisma.ProviderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Providers to fetch. */ orderBy?: Prisma.ProviderOrderByWithRelationInput | Prisma.ProviderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Providers. */ cursor?: Prisma.ProviderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Providers 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` Providers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Providers. */ distinct?: Prisma.ProviderScalarFieldEnum | Prisma.ProviderScalarFieldEnum[] } /** * Provider findMany */ export type ProviderFindManyArgs = { /** * Select specific fields to fetch from the Provider */ select?: Prisma.ProviderSelect | null /** * Omit specific fields from the Provider */ omit?: Prisma.ProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProviderInclude | null /** * Filter, which Providers to fetch. */ where?: Prisma.ProviderWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Providers to fetch. */ orderBy?: Prisma.ProviderOrderByWithRelationInput | Prisma.ProviderOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Providers. */ cursor?: Prisma.ProviderWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Providers 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` Providers. */ skip?: number distinct?: Prisma.ProviderScalarFieldEnum | Prisma.ProviderScalarFieldEnum[] } /** * Provider create */ export type ProviderCreateArgs = { /** * Select specific fields to fetch from the Provider */ select?: Prisma.ProviderSelect | null /** * Omit specific fields from the Provider */ omit?: Prisma.ProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProviderInclude | null /** * The data needed to create a Provider. */ data: Prisma.XOR } /** * Provider createMany */ export type ProviderCreateManyArgs = { /** * The data used to create many Providers. */ data: Prisma.ProviderCreateManyInput | Prisma.ProviderCreateManyInput[] skipDuplicates?: boolean } /** * Provider update */ export type ProviderUpdateArgs = { /** * Select specific fields to fetch from the Provider */ select?: Prisma.ProviderSelect | null /** * Omit specific fields from the Provider */ omit?: Prisma.ProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProviderInclude | null /** * The data needed to update a Provider. */ data: Prisma.XOR /** * Choose, which Provider to update. */ where: Prisma.ProviderWhereUniqueInput } /** * Provider updateMany */ export type ProviderUpdateManyArgs = { /** * The data used to update Providers. */ data: Prisma.XOR /** * Filter which Providers to update */ where?: Prisma.ProviderWhereInput /** * Limit how many Providers to update. */ limit?: number } /** * Provider upsert */ export type ProviderUpsertArgs = { /** * Select specific fields to fetch from the Provider */ select?: Prisma.ProviderSelect | null /** * Omit specific fields from the Provider */ omit?: Prisma.ProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProviderInclude | null /** * The filter to search for the Provider to update in case it exists. */ where: Prisma.ProviderWhereUniqueInput /** * In case the Provider found by the `where` argument doesn't exist, create a new Provider with this data. */ create: Prisma.XOR /** * In case the Provider was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Provider delete */ export type ProviderDeleteArgs = { /** * Select specific fields to fetch from the Provider */ select?: Prisma.ProviderSelect | null /** * Omit specific fields from the Provider */ omit?: Prisma.ProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProviderInclude | null /** * Filter which Provider to delete. */ where: Prisma.ProviderWhereUniqueInput } /** * Provider deleteMany */ export type ProviderDeleteManyArgs = { /** * Filter which Providers to delete */ where?: Prisma.ProviderWhereInput /** * Limit how many Providers to delete. */ limit?: number } /** * Provider.pos_list */ export type Provider$pos_listArgs = { /** * Select specific fields to fetch from the Pos */ select?: Prisma.PosSelect | null /** * Omit specific fields from the Pos */ omit?: Prisma.PosOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PosInclude | null where?: Prisma.PosWhereInput orderBy?: Prisma.PosOrderByWithRelationInput | Prisma.PosOrderByWithRelationInput[] cursor?: Prisma.PosWhereUniqueInput take?: number skip?: number distinct?: Prisma.PosScalarFieldEnum | Prisma.PosScalarFieldEnum[] } /** * Provider.accounts */ export type Provider$accountsArgs = { /** * Select specific fields to fetch from the ProviderAccount */ select?: Prisma.ProviderAccountSelect | null /** * Omit specific fields from the ProviderAccount */ omit?: Prisma.ProviderAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProviderAccountInclude | null where?: Prisma.ProviderAccountWhereInput orderBy?: Prisma.ProviderAccountOrderByWithRelationInput | Prisma.ProviderAccountOrderByWithRelationInput[] cursor?: Prisma.ProviderAccountWhereUniqueInput take?: number skip?: number distinct?: Prisma.ProviderAccountScalarFieldEnum | Prisma.ProviderAccountScalarFieldEnum[] } /** * Provider without action */ export type ProviderDefaultArgs = { /** * Select specific fields to fetch from the Provider */ select?: Prisma.ProviderSelect | null /** * Omit specific fields from the Provider */ omit?: Prisma.ProviderOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProviderInclude | null }