/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `ProclamationGroup` 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 ProclamationGroup * */ export type ProclamationGroupModel = runtime.Types.Result.DefaultSelection export type AggregateProclamationGroup = { _count: ProclamationGroupCountAggregateOutputType | null _avg: ProclamationGroupAvgAggregateOutputType | null _sum: ProclamationGroupSumAggregateOutputType | null _min: ProclamationGroupMinAggregateOutputType | null _max: ProclamationGroupMaxAggregateOutputType | null } export type ProclamationGroupAvgAggregateOutputType = { id: number | null sortOrder: number | null } export type ProclamationGroupSumAggregateOutputType = { id: number | null sortOrder: number | null } export type ProclamationGroupMinAggregateOutputType = { id: number | null name: string | null sortOrder: number | null } export type ProclamationGroupMaxAggregateOutputType = { id: number | null name: string | null sortOrder: number | null } export type ProclamationGroupCountAggregateOutputType = { id: number name: number sortOrder: number _all: number } export type ProclamationGroupAvgAggregateInputType = { id?: true sortOrder?: true } export type ProclamationGroupSumAggregateInputType = { id?: true sortOrder?: true } export type ProclamationGroupMinAggregateInputType = { id?: true name?: true sortOrder?: true } export type ProclamationGroupMaxAggregateInputType = { id?: true name?: true sortOrder?: true } export type ProclamationGroupCountAggregateInputType = { id?: true name?: true sortOrder?: true _all?: true } export type ProclamationGroupAggregateArgs = { /** * Filter which ProclamationGroup to aggregate. */ where?: Prisma.ProclamationGroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProclamationGroups to fetch. */ orderBy?: Prisma.ProclamationGroupOrderByWithRelationInput | Prisma.ProclamationGroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ProclamationGroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProclamationGroups 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` ProclamationGroups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ProclamationGroups **/ _count?: true | ProclamationGroupCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ProclamationGroupAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ProclamationGroupSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ProclamationGroupMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ProclamationGroupMaxAggregateInputType } export type GetProclamationGroupAggregateType = { [P in keyof T & keyof AggregateProclamationGroup]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ProclamationGroupGroupByArgs = { where?: Prisma.ProclamationGroupWhereInput orderBy?: Prisma.ProclamationGroupOrderByWithAggregationInput | Prisma.ProclamationGroupOrderByWithAggregationInput[] by: Prisma.ProclamationGroupScalarFieldEnum[] | Prisma.ProclamationGroupScalarFieldEnum having?: Prisma.ProclamationGroupScalarWhereWithAggregatesInput take?: number skip?: number _count?: ProclamationGroupCountAggregateInputType | true _avg?: ProclamationGroupAvgAggregateInputType _sum?: ProclamationGroupSumAggregateInputType _min?: ProclamationGroupMinAggregateInputType _max?: ProclamationGroupMaxAggregateInputType } export type ProclamationGroupGroupByOutputType = { id: number name: string sortOrder: number _count: ProclamationGroupCountAggregateOutputType | null _avg: ProclamationGroupAvgAggregateOutputType | null _sum: ProclamationGroupSumAggregateOutputType | null _min: ProclamationGroupMinAggregateOutputType | null _max: ProclamationGroupMaxAggregateOutputType | null } export type GetProclamationGroupGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ProclamationGroupGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ProclamationGroupWhereInput = { AND?: Prisma.ProclamationGroupWhereInput | Prisma.ProclamationGroupWhereInput[] OR?: Prisma.ProclamationGroupWhereInput[] NOT?: Prisma.ProclamationGroupWhereInput | Prisma.ProclamationGroupWhereInput[] id?: Prisma.IntFilter<"ProclamationGroup"> | number name?: Prisma.StringFilter<"ProclamationGroup"> | string sortOrder?: Prisma.IntFilter<"ProclamationGroup"> | number proclamations?: Prisma.ProclamationListRelationFilter } export type ProclamationGroupOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder sortOrder?: Prisma.SortOrder proclamations?: Prisma.ProclamationOrderByRelationAggregateInput } export type ProclamationGroupWhereUniqueInput = Prisma.AtLeast<{ id?: number name?: string AND?: Prisma.ProclamationGroupWhereInput | Prisma.ProclamationGroupWhereInput[] OR?: Prisma.ProclamationGroupWhereInput[] NOT?: Prisma.ProclamationGroupWhereInput | Prisma.ProclamationGroupWhereInput[] sortOrder?: Prisma.IntFilter<"ProclamationGroup"> | number proclamations?: Prisma.ProclamationListRelationFilter }, "id" | "name"> export type ProclamationGroupOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder sortOrder?: Prisma.SortOrder _count?: Prisma.ProclamationGroupCountOrderByAggregateInput _avg?: Prisma.ProclamationGroupAvgOrderByAggregateInput _max?: Prisma.ProclamationGroupMaxOrderByAggregateInput _min?: Prisma.ProclamationGroupMinOrderByAggregateInput _sum?: Prisma.ProclamationGroupSumOrderByAggregateInput } export type ProclamationGroupScalarWhereWithAggregatesInput = { AND?: Prisma.ProclamationGroupScalarWhereWithAggregatesInput | Prisma.ProclamationGroupScalarWhereWithAggregatesInput[] OR?: Prisma.ProclamationGroupScalarWhereWithAggregatesInput[] NOT?: Prisma.ProclamationGroupScalarWhereWithAggregatesInput | Prisma.ProclamationGroupScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"ProclamationGroup"> | number name?: Prisma.StringWithAggregatesFilter<"ProclamationGroup"> | string sortOrder?: Prisma.IntWithAggregatesFilter<"ProclamationGroup"> | number } export type ProclamationGroupCreateInput = { name: string sortOrder?: number proclamations?: Prisma.ProclamationCreateNestedManyWithoutGroupInput } export type ProclamationGroupUncheckedCreateInput = { id?: number name: string sortOrder?: number proclamations?: Prisma.ProclamationUncheckedCreateNestedManyWithoutGroupInput } export type ProclamationGroupUpdateInput = { name?: Prisma.StringFieldUpdateOperationsInput | string sortOrder?: Prisma.IntFieldUpdateOperationsInput | number proclamations?: Prisma.ProclamationUpdateManyWithoutGroupNestedInput } export type ProclamationGroupUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string sortOrder?: Prisma.IntFieldUpdateOperationsInput | number proclamations?: Prisma.ProclamationUncheckedUpdateManyWithoutGroupNestedInput } export type ProclamationGroupCreateManyInput = { id?: number name: string sortOrder?: number } export type ProclamationGroupUpdateManyMutationInput = { name?: Prisma.StringFieldUpdateOperationsInput | string sortOrder?: Prisma.IntFieldUpdateOperationsInput | number } export type ProclamationGroupUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string sortOrder?: Prisma.IntFieldUpdateOperationsInput | number } export type ProclamationGroupScalarRelationFilter = { is?: Prisma.ProclamationGroupWhereInput isNot?: Prisma.ProclamationGroupWhereInput } export type ProclamationGroupCountOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder sortOrder?: Prisma.SortOrder } export type ProclamationGroupAvgOrderByAggregateInput = { id?: Prisma.SortOrder sortOrder?: Prisma.SortOrder } export type ProclamationGroupMaxOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder sortOrder?: Prisma.SortOrder } export type ProclamationGroupMinOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder sortOrder?: Prisma.SortOrder } export type ProclamationGroupSumOrderByAggregateInput = { id?: Prisma.SortOrder sortOrder?: Prisma.SortOrder } export type ProclamationGroupCreateNestedOneWithoutProclamationsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProclamationGroupCreateOrConnectWithoutProclamationsInput connect?: Prisma.ProclamationGroupWhereUniqueInput } export type ProclamationGroupUpdateOneRequiredWithoutProclamationsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ProclamationGroupCreateOrConnectWithoutProclamationsInput upsert?: Prisma.ProclamationGroupUpsertWithoutProclamationsInput connect?: Prisma.ProclamationGroupWhereUniqueInput update?: Prisma.XOR, Prisma.ProclamationGroupUncheckedUpdateWithoutProclamationsInput> } export type ProclamationGroupCreateWithoutProclamationsInput = { name: string sortOrder?: number } export type ProclamationGroupUncheckedCreateWithoutProclamationsInput = { id?: number name: string sortOrder?: number } export type ProclamationGroupCreateOrConnectWithoutProclamationsInput = { where: Prisma.ProclamationGroupWhereUniqueInput create: Prisma.XOR } export type ProclamationGroupUpsertWithoutProclamationsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ProclamationGroupWhereInput } export type ProclamationGroupUpdateToOneWithWhereWithoutProclamationsInput = { where?: Prisma.ProclamationGroupWhereInput data: Prisma.XOR } export type ProclamationGroupUpdateWithoutProclamationsInput = { name?: Prisma.StringFieldUpdateOperationsInput | string sortOrder?: Prisma.IntFieldUpdateOperationsInput | number } export type ProclamationGroupUncheckedUpdateWithoutProclamationsInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string sortOrder?: Prisma.IntFieldUpdateOperationsInput | number } /** * Count Type ProclamationGroupCountOutputType */ export type ProclamationGroupCountOutputType = { proclamations: number } export type ProclamationGroupCountOutputTypeSelect = { proclamations?: boolean | ProclamationGroupCountOutputTypeCountProclamationsArgs } /** * ProclamationGroupCountOutputType without action */ export type ProclamationGroupCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ProclamationGroupCountOutputType */ select?: Prisma.ProclamationGroupCountOutputTypeSelect | null } /** * ProclamationGroupCountOutputType without action */ export type ProclamationGroupCountOutputTypeCountProclamationsArgs = { where?: Prisma.ProclamationWhereInput } export type ProclamationGroupSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean sortOrder?: boolean proclamations?: boolean | Prisma.ProclamationGroup$proclamationsArgs _count?: boolean | Prisma.ProclamationGroupCountOutputTypeDefaultArgs }, ExtArgs["result"]["proclamationGroup"]> export type ProclamationGroupSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean sortOrder?: boolean }, ExtArgs["result"]["proclamationGroup"]> export type ProclamationGroupSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean sortOrder?: boolean }, ExtArgs["result"]["proclamationGroup"]> export type ProclamationGroupSelectScalar = { id?: boolean name?: boolean sortOrder?: boolean } export type ProclamationGroupOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "sortOrder", ExtArgs["result"]["proclamationGroup"]> export type ProclamationGroupInclude = { proclamations?: boolean | Prisma.ProclamationGroup$proclamationsArgs _count?: boolean | Prisma.ProclamationGroupCountOutputTypeDefaultArgs } export type ProclamationGroupIncludeCreateManyAndReturn = {} export type ProclamationGroupIncludeUpdateManyAndReturn = {} export type $ProclamationGroupPayload = { name: "ProclamationGroup" objects: { proclamations: Prisma.$ProclamationPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number name: string sortOrder: number }, ExtArgs["result"]["proclamationGroup"]> composites: {} } export type ProclamationGroupGetPayload = runtime.Types.Result.GetResult export type ProclamationGroupCountArgs = Omit & { select?: ProclamationGroupCountAggregateInputType | true } export interface ProclamationGroupDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ProclamationGroup'], meta: { name: 'ProclamationGroup' } } /** * Find zero or one ProclamationGroup that matches the filter. * @param {ProclamationGroupFindUniqueArgs} args - Arguments to find a ProclamationGroup * @example * // Get one ProclamationGroup * const proclamationGroup = await prisma.proclamationGroup.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ProclamationGroupClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ProclamationGroup that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ProclamationGroupFindUniqueOrThrowArgs} args - Arguments to find a ProclamationGroup * @example * // Get one ProclamationGroup * const proclamationGroup = await prisma.proclamationGroup.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ProclamationGroupClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ProclamationGroup 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 {ProclamationGroupFindFirstArgs} args - Arguments to find a ProclamationGroup * @example * // Get one ProclamationGroup * const proclamationGroup = await prisma.proclamationGroup.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ProclamationGroupClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ProclamationGroup 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 {ProclamationGroupFindFirstOrThrowArgs} args - Arguments to find a ProclamationGroup * @example * // Get one ProclamationGroup * const proclamationGroup = await prisma.proclamationGroup.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ProclamationGroupClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ProclamationGroups 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 {ProclamationGroupFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ProclamationGroups * const proclamationGroups = await prisma.proclamationGroup.findMany() * * // Get first 10 ProclamationGroups * const proclamationGroups = await prisma.proclamationGroup.findMany({ take: 10 }) * * // Only select the `id` * const proclamationGroupWithIdOnly = await prisma.proclamationGroup.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a ProclamationGroup. * @param {ProclamationGroupCreateArgs} args - Arguments to create a ProclamationGroup. * @example * // Create one ProclamationGroup * const ProclamationGroup = await prisma.proclamationGroup.create({ * data: { * // ... data to create a ProclamationGroup * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ProclamationGroupClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ProclamationGroups. * @param {ProclamationGroupCreateManyArgs} args - Arguments to create many ProclamationGroups. * @example * // Create many ProclamationGroups * const proclamationGroup = await prisma.proclamationGroup.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many ProclamationGroups and returns the data saved in the database. * @param {ProclamationGroupCreateManyAndReturnArgs} args - Arguments to create many ProclamationGroups. * @example * // Create many ProclamationGroups * const proclamationGroup = await prisma.proclamationGroup.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ProclamationGroups and only return the `id` * const proclamationGroupWithIdOnly = await prisma.proclamationGroup.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 ProclamationGroup. * @param {ProclamationGroupDeleteArgs} args - Arguments to delete one ProclamationGroup. * @example * // Delete one ProclamationGroup * const ProclamationGroup = await prisma.proclamationGroup.delete({ * where: { * // ... filter to delete one ProclamationGroup * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ProclamationGroupClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ProclamationGroup. * @param {ProclamationGroupUpdateArgs} args - Arguments to update one ProclamationGroup. * @example * // Update one ProclamationGroup * const proclamationGroup = await prisma.proclamationGroup.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ProclamationGroupClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ProclamationGroups. * @param {ProclamationGroupDeleteManyArgs} args - Arguments to filter ProclamationGroups to delete. * @example * // Delete a few ProclamationGroups * const { count } = await prisma.proclamationGroup.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ProclamationGroups. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProclamationGroupUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ProclamationGroups * const proclamationGroup = await prisma.proclamationGroup.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ProclamationGroups and returns the data updated in the database. * @param {ProclamationGroupUpdateManyAndReturnArgs} args - Arguments to update many ProclamationGroups. * @example * // Update many ProclamationGroups * const proclamationGroup = await prisma.proclamationGroup.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ProclamationGroups and only return the `id` * const proclamationGroupWithIdOnly = await prisma.proclamationGroup.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 ProclamationGroup. * @param {ProclamationGroupUpsertArgs} args - Arguments to update or create a ProclamationGroup. * @example * // Update or create a ProclamationGroup * const proclamationGroup = await prisma.proclamationGroup.upsert({ * create: { * // ... data to create a ProclamationGroup * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ProclamationGroup we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ProclamationGroupClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ProclamationGroups. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProclamationGroupCountArgs} args - Arguments to filter ProclamationGroups to count. * @example * // Count the number of ProclamationGroups * const count = await prisma.proclamationGroup.count({ * where: { * // ... the filter for the ProclamationGroups 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 ProclamationGroup. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProclamationGroupAggregateArgs} 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 ProclamationGroup. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProclamationGroupGroupByArgs} 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 ProclamationGroupGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ProclamationGroupGroupByArgs['orderBy'] } : { orderBy?: ProclamationGroupGroupByArgs['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 ? GetProclamationGroupGroupByPayload : Prisma.PrismaPromise /** * Fields of the ProclamationGroup model */ readonly fields: ProclamationGroupFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ProclamationGroup. * 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__ProclamationGroupClient 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 ProclamationGroup model */ export interface ProclamationGroupFieldRefs { readonly id: Prisma.FieldRef<"ProclamationGroup", 'Int'> readonly name: Prisma.FieldRef<"ProclamationGroup", 'String'> readonly sortOrder: Prisma.FieldRef<"ProclamationGroup", 'Int'> } // Custom InputTypes /** * ProclamationGroup findUnique */ export type ProclamationGroupFindUniqueArgs = { /** * Select specific fields to fetch from the ProclamationGroup */ select?: Prisma.ProclamationGroupSelect | null /** * Omit specific fields from the ProclamationGroup */ omit?: Prisma.ProclamationGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProclamationGroupInclude | null /** * Filter, which ProclamationGroup to fetch. */ where: Prisma.ProclamationGroupWhereUniqueInput } /** * ProclamationGroup findUniqueOrThrow */ export type ProclamationGroupFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ProclamationGroup */ select?: Prisma.ProclamationGroupSelect | null /** * Omit specific fields from the ProclamationGroup */ omit?: Prisma.ProclamationGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProclamationGroupInclude | null /** * Filter, which ProclamationGroup to fetch. */ where: Prisma.ProclamationGroupWhereUniqueInput } /** * ProclamationGroup findFirst */ export type ProclamationGroupFindFirstArgs = { /** * Select specific fields to fetch from the ProclamationGroup */ select?: Prisma.ProclamationGroupSelect | null /** * Omit specific fields from the ProclamationGroup */ omit?: Prisma.ProclamationGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProclamationGroupInclude | null /** * Filter, which ProclamationGroup to fetch. */ where?: Prisma.ProclamationGroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProclamationGroups to fetch. */ orderBy?: Prisma.ProclamationGroupOrderByWithRelationInput | Prisma.ProclamationGroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ProclamationGroups. */ cursor?: Prisma.ProclamationGroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProclamationGroups 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` ProclamationGroups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ProclamationGroups. */ distinct?: Prisma.ProclamationGroupScalarFieldEnum | Prisma.ProclamationGroupScalarFieldEnum[] } /** * ProclamationGroup findFirstOrThrow */ export type ProclamationGroupFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ProclamationGroup */ select?: Prisma.ProclamationGroupSelect | null /** * Omit specific fields from the ProclamationGroup */ omit?: Prisma.ProclamationGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProclamationGroupInclude | null /** * Filter, which ProclamationGroup to fetch. */ where?: Prisma.ProclamationGroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProclamationGroups to fetch. */ orderBy?: Prisma.ProclamationGroupOrderByWithRelationInput | Prisma.ProclamationGroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ProclamationGroups. */ cursor?: Prisma.ProclamationGroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProclamationGroups 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` ProclamationGroups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ProclamationGroups. */ distinct?: Prisma.ProclamationGroupScalarFieldEnum | Prisma.ProclamationGroupScalarFieldEnum[] } /** * ProclamationGroup findMany */ export type ProclamationGroupFindManyArgs = { /** * Select specific fields to fetch from the ProclamationGroup */ select?: Prisma.ProclamationGroupSelect | null /** * Omit specific fields from the ProclamationGroup */ omit?: Prisma.ProclamationGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProclamationGroupInclude | null /** * Filter, which ProclamationGroups to fetch. */ where?: Prisma.ProclamationGroupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProclamationGroups to fetch. */ orderBy?: Prisma.ProclamationGroupOrderByWithRelationInput | Prisma.ProclamationGroupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ProclamationGroups. */ cursor?: Prisma.ProclamationGroupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProclamationGroups 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` ProclamationGroups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ProclamationGroups. */ distinct?: Prisma.ProclamationGroupScalarFieldEnum | Prisma.ProclamationGroupScalarFieldEnum[] } /** * ProclamationGroup create */ export type ProclamationGroupCreateArgs = { /** * Select specific fields to fetch from the ProclamationGroup */ select?: Prisma.ProclamationGroupSelect | null /** * Omit specific fields from the ProclamationGroup */ omit?: Prisma.ProclamationGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProclamationGroupInclude | null /** * The data needed to create a ProclamationGroup. */ data: Prisma.XOR } /** * ProclamationGroup createMany */ export type ProclamationGroupCreateManyArgs = { /** * The data used to create many ProclamationGroups. */ data: Prisma.ProclamationGroupCreateManyInput | Prisma.ProclamationGroupCreateManyInput[] skipDuplicates?: boolean } /** * ProclamationGroup createManyAndReturn */ export type ProclamationGroupCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ProclamationGroup */ select?: Prisma.ProclamationGroupSelectCreateManyAndReturn | null /** * Omit specific fields from the ProclamationGroup */ omit?: Prisma.ProclamationGroupOmit | null /** * The data used to create many ProclamationGroups. */ data: Prisma.ProclamationGroupCreateManyInput | Prisma.ProclamationGroupCreateManyInput[] skipDuplicates?: boolean } /** * ProclamationGroup update */ export type ProclamationGroupUpdateArgs = { /** * Select specific fields to fetch from the ProclamationGroup */ select?: Prisma.ProclamationGroupSelect | null /** * Omit specific fields from the ProclamationGroup */ omit?: Prisma.ProclamationGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProclamationGroupInclude | null /** * The data needed to update a ProclamationGroup. */ data: Prisma.XOR /** * Choose, which ProclamationGroup to update. */ where: Prisma.ProclamationGroupWhereUniqueInput } /** * ProclamationGroup updateMany */ export type ProclamationGroupUpdateManyArgs = { /** * The data used to update ProclamationGroups. */ data: Prisma.XOR /** * Filter which ProclamationGroups to update */ where?: Prisma.ProclamationGroupWhereInput /** * Limit how many ProclamationGroups to update. */ limit?: number } /** * ProclamationGroup updateManyAndReturn */ export type ProclamationGroupUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the ProclamationGroup */ select?: Prisma.ProclamationGroupSelectUpdateManyAndReturn | null /** * Omit specific fields from the ProclamationGroup */ omit?: Prisma.ProclamationGroupOmit | null /** * The data used to update ProclamationGroups. */ data: Prisma.XOR /** * Filter which ProclamationGroups to update */ where?: Prisma.ProclamationGroupWhereInput /** * Limit how many ProclamationGroups to update. */ limit?: number } /** * ProclamationGroup upsert */ export type ProclamationGroupUpsertArgs = { /** * Select specific fields to fetch from the ProclamationGroup */ select?: Prisma.ProclamationGroupSelect | null /** * Omit specific fields from the ProclamationGroup */ omit?: Prisma.ProclamationGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProclamationGroupInclude | null /** * The filter to search for the ProclamationGroup to update in case it exists. */ where: Prisma.ProclamationGroupWhereUniqueInput /** * In case the ProclamationGroup found by the `where` argument doesn't exist, create a new ProclamationGroup with this data. */ create: Prisma.XOR /** * In case the ProclamationGroup was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * ProclamationGroup delete */ export type ProclamationGroupDeleteArgs = { /** * Select specific fields to fetch from the ProclamationGroup */ select?: Prisma.ProclamationGroupSelect | null /** * Omit specific fields from the ProclamationGroup */ omit?: Prisma.ProclamationGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProclamationGroupInclude | null /** * Filter which ProclamationGroup to delete. */ where: Prisma.ProclamationGroupWhereUniqueInput } /** * ProclamationGroup deleteMany */ export type ProclamationGroupDeleteManyArgs = { /** * Filter which ProclamationGroups to delete */ where?: Prisma.ProclamationGroupWhereInput /** * Limit how many ProclamationGroups to delete. */ limit?: number } /** * ProclamationGroup.proclamations */ export type ProclamationGroup$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[] } /** * ProclamationGroup without action */ export type ProclamationGroupDefaultArgs = { /** * Select specific fields to fetch from the ProclamationGroup */ select?: Prisma.ProclamationGroupSelect | null /** * Omit specific fields from the ProclamationGroup */ omit?: Prisma.ProclamationGroupOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ProclamationGroupInclude | null }