/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `SubscriptionLevel` 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.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model SubscriptionLevel * */ export type SubscriptionLevelModel = runtime.Types.Result.DefaultSelection export type AggregateSubscriptionLevel = { _count: SubscriptionLevelCountAggregateOutputType | null _avg: SubscriptionLevelAvgAggregateOutputType | null _sum: SubscriptionLevelSumAggregateOutputType | null _min: SubscriptionLevelMinAggregateOutputType | null _max: SubscriptionLevelMaxAggregateOutputType | null } export type SubscriptionLevelAvgAggregateOutputType = { id: number | null } export type SubscriptionLevelSumAggregateOutputType = { id: number | null } export type SubscriptionLevelMinAggregateOutputType = { id: number | null name: string | null description: string | null } export type SubscriptionLevelMaxAggregateOutputType = { id: number | null name: string | null description: string | null } export type SubscriptionLevelCountAggregateOutputType = { id: number name: number description: number _all: number } export type SubscriptionLevelAvgAggregateInputType = { id?: true } export type SubscriptionLevelSumAggregateInputType = { id?: true } export type SubscriptionLevelMinAggregateInputType = { id?: true name?: true description?: true } export type SubscriptionLevelMaxAggregateInputType = { id?: true name?: true description?: true } export type SubscriptionLevelCountAggregateInputType = { id?: true name?: true description?: true _all?: true } export type SubscriptionLevelAggregateArgs = { /** * Filter which SubscriptionLevel to aggregate. */ where?: Prisma.SubscriptionLevelWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SubscriptionLevels to fetch. */ orderBy?: Prisma.SubscriptionLevelOrderByWithRelationInput | Prisma.SubscriptionLevelOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.SubscriptionLevelWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SubscriptionLevels 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` SubscriptionLevels. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned SubscriptionLevels **/ _count?: true | SubscriptionLevelCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: SubscriptionLevelAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: SubscriptionLevelSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SubscriptionLevelMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SubscriptionLevelMaxAggregateInputType } export type GetSubscriptionLevelAggregateType = { [P in keyof T & keyof AggregateSubscriptionLevel]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type SubscriptionLevelGroupByArgs = { where?: Prisma.SubscriptionLevelWhereInput orderBy?: Prisma.SubscriptionLevelOrderByWithAggregationInput | Prisma.SubscriptionLevelOrderByWithAggregationInput[] by: Prisma.SubscriptionLevelScalarFieldEnum[] | Prisma.SubscriptionLevelScalarFieldEnum having?: Prisma.SubscriptionLevelScalarWhereWithAggregatesInput take?: number skip?: number _count?: SubscriptionLevelCountAggregateInputType | true _avg?: SubscriptionLevelAvgAggregateInputType _sum?: SubscriptionLevelSumAggregateInputType _min?: SubscriptionLevelMinAggregateInputType _max?: SubscriptionLevelMaxAggregateInputType } export type SubscriptionLevelGroupByOutputType = { id: number name: string description: string | null _count: SubscriptionLevelCountAggregateOutputType | null _avg: SubscriptionLevelAvgAggregateOutputType | null _sum: SubscriptionLevelSumAggregateOutputType | null _min: SubscriptionLevelMinAggregateOutputType | null _max: SubscriptionLevelMaxAggregateOutputType | null } type GetSubscriptionLevelGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof SubscriptionLevelGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type SubscriptionLevelWhereInput = { AND?: Prisma.SubscriptionLevelWhereInput | Prisma.SubscriptionLevelWhereInput[] OR?: Prisma.SubscriptionLevelWhereInput[] NOT?: Prisma.SubscriptionLevelWhereInput | Prisma.SubscriptionLevelWhereInput[] id?: Prisma.IntFilter<"SubscriptionLevel"> | number name?: Prisma.StringFilter<"SubscriptionLevel"> | string description?: Prisma.StringNullableFilter<"SubscriptionLevel"> | string | null proclamations?: Prisma.ProclamationListRelationFilter } export type SubscriptionLevelOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder proclamations?: Prisma.ProclamationOrderByRelationAggregateInput } export type SubscriptionLevelWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.SubscriptionLevelWhereInput | Prisma.SubscriptionLevelWhereInput[] OR?: Prisma.SubscriptionLevelWhereInput[] NOT?: Prisma.SubscriptionLevelWhereInput | Prisma.SubscriptionLevelWhereInput[] name?: Prisma.StringFilter<"SubscriptionLevel"> | string description?: Prisma.StringNullableFilter<"SubscriptionLevel"> | string | null proclamations?: Prisma.ProclamationListRelationFilter }, "id"> export type SubscriptionLevelOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.SubscriptionLevelCountOrderByAggregateInput _avg?: Prisma.SubscriptionLevelAvgOrderByAggregateInput _max?: Prisma.SubscriptionLevelMaxOrderByAggregateInput _min?: Prisma.SubscriptionLevelMinOrderByAggregateInput _sum?: Prisma.SubscriptionLevelSumOrderByAggregateInput } export type SubscriptionLevelScalarWhereWithAggregatesInput = { AND?: Prisma.SubscriptionLevelScalarWhereWithAggregatesInput | Prisma.SubscriptionLevelScalarWhereWithAggregatesInput[] OR?: Prisma.SubscriptionLevelScalarWhereWithAggregatesInput[] NOT?: Prisma.SubscriptionLevelScalarWhereWithAggregatesInput | Prisma.SubscriptionLevelScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"SubscriptionLevel"> | number name?: Prisma.StringWithAggregatesFilter<"SubscriptionLevel"> | string description?: Prisma.StringNullableWithAggregatesFilter<"SubscriptionLevel"> | string | null } export type SubscriptionLevelCreateInput = { name: string description?: string | null proclamations?: Prisma.ProclamationCreateNestedManyWithoutSubscriptionLevelInput } export type SubscriptionLevelUncheckedCreateInput = { id?: number name: string description?: string | null proclamations?: Prisma.ProclamationUncheckedCreateNestedManyWithoutSubscriptionLevelInput } export type SubscriptionLevelUpdateInput = { name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null proclamations?: Prisma.ProclamationUpdateManyWithoutSubscriptionLevelNestedInput } export type SubscriptionLevelUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null proclamations?: Prisma.ProclamationUncheckedUpdateManyWithoutSubscriptionLevelNestedInput } export type SubscriptionLevelCreateManyInput = { id?: number name: string description?: string | null } export type SubscriptionLevelUpdateManyMutationInput = { name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type SubscriptionLevelUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type SubscriptionLevelScalarRelationFilter = { is?: Prisma.SubscriptionLevelWhereInput isNot?: Prisma.SubscriptionLevelWhereInput } export type SubscriptionLevelCountOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder } export type SubscriptionLevelAvgOrderByAggregateInput = { id?: Prisma.SortOrder } export type SubscriptionLevelMaxOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder } export type SubscriptionLevelMinOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder description?: Prisma.SortOrder } export type SubscriptionLevelSumOrderByAggregateInput = { id?: Prisma.SortOrder } export type SubscriptionLevelCreateNestedOneWithoutProclamationsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.SubscriptionLevelCreateOrConnectWithoutProclamationsInput connect?: Prisma.SubscriptionLevelWhereUniqueInput } export type SubscriptionLevelUpdateOneRequiredWithoutProclamationsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.SubscriptionLevelCreateOrConnectWithoutProclamationsInput upsert?: Prisma.SubscriptionLevelUpsertWithoutProclamationsInput connect?: Prisma.SubscriptionLevelWhereUniqueInput update?: Prisma.XOR, Prisma.SubscriptionLevelUncheckedUpdateWithoutProclamationsInput> } export type SubscriptionLevelCreateWithoutProclamationsInput = { name: string description?: string | null } export type SubscriptionLevelUncheckedCreateWithoutProclamationsInput = { id?: number name: string description?: string | null } export type SubscriptionLevelCreateOrConnectWithoutProclamationsInput = { where: Prisma.SubscriptionLevelWhereUniqueInput create: Prisma.XOR } export type SubscriptionLevelUpsertWithoutProclamationsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.SubscriptionLevelWhereInput } export type SubscriptionLevelUpdateToOneWithWhereWithoutProclamationsInput = { where?: Prisma.SubscriptionLevelWhereInput data: Prisma.XOR } export type SubscriptionLevelUpdateWithoutProclamationsInput = { name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type SubscriptionLevelUncheckedUpdateWithoutProclamationsInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } /** * Count Type SubscriptionLevelCountOutputType */ export type SubscriptionLevelCountOutputType = { proclamations: number } export type SubscriptionLevelCountOutputTypeSelect = { proclamations?: boolean | SubscriptionLevelCountOutputTypeCountProclamationsArgs } /** * SubscriptionLevelCountOutputType without action */ export type SubscriptionLevelCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the SubscriptionLevelCountOutputType */ select?: Prisma.SubscriptionLevelCountOutputTypeSelect | null } /** * SubscriptionLevelCountOutputType without action */ export type SubscriptionLevelCountOutputTypeCountProclamationsArgs = { where?: Prisma.ProclamationWhereInput } export type SubscriptionLevelSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean description?: boolean proclamations?: boolean | Prisma.SubscriptionLevel$proclamationsArgs _count?: boolean | Prisma.SubscriptionLevelCountOutputTypeDefaultArgs }, ExtArgs["result"]["subscriptionLevel"]> export type SubscriptionLevelSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean description?: boolean }, ExtArgs["result"]["subscriptionLevel"]> export type SubscriptionLevelSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean description?: boolean }, ExtArgs["result"]["subscriptionLevel"]> export type SubscriptionLevelSelectScalar = { id?: boolean name?: boolean description?: boolean } export type SubscriptionLevelOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "description", ExtArgs["result"]["subscriptionLevel"]> export type SubscriptionLevelInclude = { proclamations?: boolean | Prisma.SubscriptionLevel$proclamationsArgs _count?: boolean | Prisma.SubscriptionLevelCountOutputTypeDefaultArgs } export type SubscriptionLevelIncludeCreateManyAndReturn = {} export type SubscriptionLevelIncludeUpdateManyAndReturn = {} export type $SubscriptionLevelPayload = { name: "SubscriptionLevel" objects: { proclamations: Prisma.$ProclamationPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number name: string description: string | null }, ExtArgs["result"]["subscriptionLevel"]> composites: {} } export type SubscriptionLevelGetPayload = runtime.Types.Result.GetResult export type SubscriptionLevelCountArgs = Omit & { select?: SubscriptionLevelCountAggregateInputType | true } export interface SubscriptionLevelDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['SubscriptionLevel'], meta: { name: 'SubscriptionLevel' } } /** * Find zero or one SubscriptionLevel that matches the filter. * @param {SubscriptionLevelFindUniqueArgs} args - Arguments to find a SubscriptionLevel * @example * // Get one SubscriptionLevel * const subscriptionLevel = await prisma.subscriptionLevel.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionLevelClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one SubscriptionLevel that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SubscriptionLevelFindUniqueOrThrowArgs} args - Arguments to find a SubscriptionLevel * @example * // Get one SubscriptionLevel * const subscriptionLevel = await prisma.subscriptionLevel.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionLevelClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first SubscriptionLevel 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 {SubscriptionLevelFindFirstArgs} args - Arguments to find a SubscriptionLevel * @example * // Get one SubscriptionLevel * const subscriptionLevel = await prisma.subscriptionLevel.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionLevelClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first SubscriptionLevel 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 {SubscriptionLevelFindFirstOrThrowArgs} args - Arguments to find a SubscriptionLevel * @example * // Get one SubscriptionLevel * const subscriptionLevel = await prisma.subscriptionLevel.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionLevelClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more SubscriptionLevels 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 {SubscriptionLevelFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all SubscriptionLevels * const subscriptionLevels = await prisma.subscriptionLevel.findMany() * * // Get first 10 SubscriptionLevels * const subscriptionLevels = await prisma.subscriptionLevel.findMany({ take: 10 }) * * // Only select the `id` * const subscriptionLevelWithIdOnly = await prisma.subscriptionLevel.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a SubscriptionLevel. * @param {SubscriptionLevelCreateArgs} args - Arguments to create a SubscriptionLevel. * @example * // Create one SubscriptionLevel * const SubscriptionLevel = await prisma.subscriptionLevel.create({ * data: { * // ... data to create a SubscriptionLevel * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionLevelClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many SubscriptionLevels. * @param {SubscriptionLevelCreateManyArgs} args - Arguments to create many SubscriptionLevels. * @example * // Create many SubscriptionLevels * const subscriptionLevel = await prisma.subscriptionLevel.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many SubscriptionLevels and returns the data saved in the database. * @param {SubscriptionLevelCreateManyAndReturnArgs} args - Arguments to create many SubscriptionLevels. * @example * // Create many SubscriptionLevels * const subscriptionLevel = await prisma.subscriptionLevel.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many SubscriptionLevels and only return the `id` * const subscriptionLevelWithIdOnly = await prisma.subscriptionLevel.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a SubscriptionLevel. * @param {SubscriptionLevelDeleteArgs} args - Arguments to delete one SubscriptionLevel. * @example * // Delete one SubscriptionLevel * const SubscriptionLevel = await prisma.subscriptionLevel.delete({ * where: { * // ... filter to delete one SubscriptionLevel * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionLevelClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one SubscriptionLevel. * @param {SubscriptionLevelUpdateArgs} args - Arguments to update one SubscriptionLevel. * @example * // Update one SubscriptionLevel * const subscriptionLevel = await prisma.subscriptionLevel.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionLevelClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more SubscriptionLevels. * @param {SubscriptionLevelDeleteManyArgs} args - Arguments to filter SubscriptionLevels to delete. * @example * // Delete a few SubscriptionLevels * const { count } = await prisma.subscriptionLevel.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SubscriptionLevels. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SubscriptionLevelUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many SubscriptionLevels * const subscriptionLevel = await prisma.subscriptionLevel.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SubscriptionLevels and returns the data updated in the database. * @param {SubscriptionLevelUpdateManyAndReturnArgs} args - Arguments to update many SubscriptionLevels. * @example * // Update many SubscriptionLevels * const subscriptionLevel = await prisma.subscriptionLevel.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more SubscriptionLevels and only return the `id` * const subscriptionLevelWithIdOnly = await prisma.subscriptionLevel.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one SubscriptionLevel. * @param {SubscriptionLevelUpsertArgs} args - Arguments to update or create a SubscriptionLevel. * @example * // Update or create a SubscriptionLevel * const subscriptionLevel = await prisma.subscriptionLevel.upsert({ * create: { * // ... data to create a SubscriptionLevel * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the SubscriptionLevel we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SubscriptionLevelClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of SubscriptionLevels. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SubscriptionLevelCountArgs} args - Arguments to filter SubscriptionLevels to count. * @example * // Count the number of SubscriptionLevels * const count = await prisma.subscriptionLevel.count({ * where: { * // ... the filter for the SubscriptionLevels 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 SubscriptionLevel. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SubscriptionLevelAggregateArgs} 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 SubscriptionLevel. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SubscriptionLevelGroupByArgs} 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 SubscriptionLevelGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: SubscriptionLevelGroupByArgs['orderBy'] } : { orderBy?: SubscriptionLevelGroupByArgs['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 ? GetSubscriptionLevelGroupByPayload : Prisma.PrismaPromise /** * Fields of the SubscriptionLevel model */ readonly fields: SubscriptionLevelFieldRefs; } /** * The delegate class that acts as a "Promise-like" for SubscriptionLevel. * 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__SubscriptionLevelClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" proclamations = {}>(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 SubscriptionLevel model */ export interface SubscriptionLevelFieldRefs { readonly id: Prisma.FieldRef<"SubscriptionLevel", 'Int'> readonly name: Prisma.FieldRef<"SubscriptionLevel", 'String'> readonly description: Prisma.FieldRef<"SubscriptionLevel", 'String'> } // Custom InputTypes /** * SubscriptionLevel findUnique */ export type SubscriptionLevelFindUniqueArgs = { /** * Select specific fields to fetch from the SubscriptionLevel */ select?: Prisma.SubscriptionLevelSelect | null /** * Omit specific fields from the SubscriptionLevel */ omit?: Prisma.SubscriptionLevelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionLevelInclude | null /** * Filter, which SubscriptionLevel to fetch. */ where: Prisma.SubscriptionLevelWhereUniqueInput } /** * SubscriptionLevel findUniqueOrThrow */ export type SubscriptionLevelFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the SubscriptionLevel */ select?: Prisma.SubscriptionLevelSelect | null /** * Omit specific fields from the SubscriptionLevel */ omit?: Prisma.SubscriptionLevelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionLevelInclude | null /** * Filter, which SubscriptionLevel to fetch. */ where: Prisma.SubscriptionLevelWhereUniqueInput } /** * SubscriptionLevel findFirst */ export type SubscriptionLevelFindFirstArgs = { /** * Select specific fields to fetch from the SubscriptionLevel */ select?: Prisma.SubscriptionLevelSelect | null /** * Omit specific fields from the SubscriptionLevel */ omit?: Prisma.SubscriptionLevelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionLevelInclude | null /** * Filter, which SubscriptionLevel to fetch. */ where?: Prisma.SubscriptionLevelWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SubscriptionLevels to fetch. */ orderBy?: Prisma.SubscriptionLevelOrderByWithRelationInput | Prisma.SubscriptionLevelOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SubscriptionLevels. */ cursor?: Prisma.SubscriptionLevelWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SubscriptionLevels 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` SubscriptionLevels. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SubscriptionLevels. */ distinct?: Prisma.SubscriptionLevelScalarFieldEnum | Prisma.SubscriptionLevelScalarFieldEnum[] } /** * SubscriptionLevel findFirstOrThrow */ export type SubscriptionLevelFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the SubscriptionLevel */ select?: Prisma.SubscriptionLevelSelect | null /** * Omit specific fields from the SubscriptionLevel */ omit?: Prisma.SubscriptionLevelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionLevelInclude | null /** * Filter, which SubscriptionLevel to fetch. */ where?: Prisma.SubscriptionLevelWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SubscriptionLevels to fetch. */ orderBy?: Prisma.SubscriptionLevelOrderByWithRelationInput | Prisma.SubscriptionLevelOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SubscriptionLevels. */ cursor?: Prisma.SubscriptionLevelWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SubscriptionLevels 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` SubscriptionLevels. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SubscriptionLevels. */ distinct?: Prisma.SubscriptionLevelScalarFieldEnum | Prisma.SubscriptionLevelScalarFieldEnum[] } /** * SubscriptionLevel findMany */ export type SubscriptionLevelFindManyArgs = { /** * Select specific fields to fetch from the SubscriptionLevel */ select?: Prisma.SubscriptionLevelSelect | null /** * Omit specific fields from the SubscriptionLevel */ omit?: Prisma.SubscriptionLevelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionLevelInclude | null /** * Filter, which SubscriptionLevels to fetch. */ where?: Prisma.SubscriptionLevelWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SubscriptionLevels to fetch. */ orderBy?: Prisma.SubscriptionLevelOrderByWithRelationInput | Prisma.SubscriptionLevelOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing SubscriptionLevels. */ cursor?: Prisma.SubscriptionLevelWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SubscriptionLevels 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` SubscriptionLevels. */ skip?: number distinct?: Prisma.SubscriptionLevelScalarFieldEnum | Prisma.SubscriptionLevelScalarFieldEnum[] } /** * SubscriptionLevel create */ export type SubscriptionLevelCreateArgs = { /** * Select specific fields to fetch from the SubscriptionLevel */ select?: Prisma.SubscriptionLevelSelect | null /** * Omit specific fields from the SubscriptionLevel */ omit?: Prisma.SubscriptionLevelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionLevelInclude | null /** * The data needed to create a SubscriptionLevel. */ data: Prisma.XOR } /** * SubscriptionLevel createMany */ export type SubscriptionLevelCreateManyArgs = { /** * The data used to create many SubscriptionLevels. */ data: Prisma.SubscriptionLevelCreateManyInput | Prisma.SubscriptionLevelCreateManyInput[] skipDuplicates?: boolean } /** * SubscriptionLevel createManyAndReturn */ export type SubscriptionLevelCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the SubscriptionLevel */ select?: Prisma.SubscriptionLevelSelectCreateManyAndReturn | null /** * Omit specific fields from the SubscriptionLevel */ omit?: Prisma.SubscriptionLevelOmit | null /** * The data used to create many SubscriptionLevels. */ data: Prisma.SubscriptionLevelCreateManyInput | Prisma.SubscriptionLevelCreateManyInput[] skipDuplicates?: boolean } /** * SubscriptionLevel update */ export type SubscriptionLevelUpdateArgs = { /** * Select specific fields to fetch from the SubscriptionLevel */ select?: Prisma.SubscriptionLevelSelect | null /** * Omit specific fields from the SubscriptionLevel */ omit?: Prisma.SubscriptionLevelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionLevelInclude | null /** * The data needed to update a SubscriptionLevel. */ data: Prisma.XOR /** * Choose, which SubscriptionLevel to update. */ where: Prisma.SubscriptionLevelWhereUniqueInput } /** * SubscriptionLevel updateMany */ export type SubscriptionLevelUpdateManyArgs = { /** * The data used to update SubscriptionLevels. */ data: Prisma.XOR /** * Filter which SubscriptionLevels to update */ where?: Prisma.SubscriptionLevelWhereInput /** * Limit how many SubscriptionLevels to update. */ limit?: number } /** * SubscriptionLevel updateManyAndReturn */ export type SubscriptionLevelUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the SubscriptionLevel */ select?: Prisma.SubscriptionLevelSelectUpdateManyAndReturn | null /** * Omit specific fields from the SubscriptionLevel */ omit?: Prisma.SubscriptionLevelOmit | null /** * The data used to update SubscriptionLevels. */ data: Prisma.XOR /** * Filter which SubscriptionLevels to update */ where?: Prisma.SubscriptionLevelWhereInput /** * Limit how many SubscriptionLevels to update. */ limit?: number } /** * SubscriptionLevel upsert */ export type SubscriptionLevelUpsertArgs = { /** * Select specific fields to fetch from the SubscriptionLevel */ select?: Prisma.SubscriptionLevelSelect | null /** * Omit specific fields from the SubscriptionLevel */ omit?: Prisma.SubscriptionLevelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionLevelInclude | null /** * The filter to search for the SubscriptionLevel to update in case it exists. */ where: Prisma.SubscriptionLevelWhereUniqueInput /** * In case the SubscriptionLevel found by the `where` argument doesn't exist, create a new SubscriptionLevel with this data. */ create: Prisma.XOR /** * In case the SubscriptionLevel was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * SubscriptionLevel delete */ export type SubscriptionLevelDeleteArgs = { /** * Select specific fields to fetch from the SubscriptionLevel */ select?: Prisma.SubscriptionLevelSelect | null /** * Omit specific fields from the SubscriptionLevel */ omit?: Prisma.SubscriptionLevelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionLevelInclude | null /** * Filter which SubscriptionLevel to delete. */ where: Prisma.SubscriptionLevelWhereUniqueInput } /** * SubscriptionLevel deleteMany */ export type SubscriptionLevelDeleteManyArgs = { /** * Filter which SubscriptionLevels to delete */ where?: Prisma.SubscriptionLevelWhereInput /** * Limit how many SubscriptionLevels to delete. */ limit?: number } /** * SubscriptionLevel.proclamations */ export type SubscriptionLevel$proclamationsArgs = { /** * Select specific fields to fetch from the Proclamation */ select?: Prisma.ProclamationSelect | null /** * Omit specific fields from the Proclamation */ omit?: Prisma.ProclamationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProclamationInclude | null where?: Prisma.ProclamationWhereInput orderBy?: Prisma.ProclamationOrderByWithRelationInput | Prisma.ProclamationOrderByWithRelationInput[] cursor?: Prisma.ProclamationWhereUniqueInput take?: number skip?: number distinct?: Prisma.ProclamationScalarFieldEnum | Prisma.ProclamationScalarFieldEnum[] } /** * SubscriptionLevel without action */ export type SubscriptionLevelDefaultArgs = { /** * Select specific fields to fetch from the SubscriptionLevel */ select?: Prisma.SubscriptionLevelSelect | null /** * Omit specific fields from the SubscriptionLevel */ omit?: Prisma.SubscriptionLevelOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SubscriptionLevelInclude | null }