/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `AdminEmailSnippet` 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 AdminEmailSnippet * */ export type AdminEmailSnippetModel = runtime.Types.Result.DefaultSelection export type AggregateAdminEmailSnippet = { _count: AdminEmailSnippetCountAggregateOutputType | null _min: AdminEmailSnippetMinAggregateOutputType | null _max: AdminEmailSnippetMaxAggregateOutputType | null } export type AdminEmailSnippetMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null archivedAt: Date | null adminUserId: string | null shortcut: string | null title: string | null content: string | null } export type AdminEmailSnippetMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null archivedAt: Date | null adminUserId: string | null shortcut: string | null title: string | null content: string | null } export type AdminEmailSnippetCountAggregateOutputType = { id: number createdAt: number updatedAt: number archivedAt: number adminUserId: number shortcut: number title: number content: number _all: number } export type AdminEmailSnippetMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true archivedAt?: true adminUserId?: true shortcut?: true title?: true content?: true } export type AdminEmailSnippetMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true archivedAt?: true adminUserId?: true shortcut?: true title?: true content?: true } export type AdminEmailSnippetCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true archivedAt?: true adminUserId?: true shortcut?: true title?: true content?: true _all?: true } export type AdminEmailSnippetAggregateArgs = { /** * Filter which AdminEmailSnippet to aggregate. */ where?: Prisma.AdminEmailSnippetWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminEmailSnippets to fetch. */ orderBy?: Prisma.AdminEmailSnippetOrderByWithRelationInput | Prisma.AdminEmailSnippetOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AdminEmailSnippetWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminEmailSnippets 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` AdminEmailSnippets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AdminEmailSnippets **/ _count?: true | AdminEmailSnippetCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AdminEmailSnippetMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AdminEmailSnippetMaxAggregateInputType } export type GetAdminEmailSnippetAggregateType = { [P in keyof T & keyof AggregateAdminEmailSnippet]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AdminEmailSnippetGroupByArgs = { where?: Prisma.AdminEmailSnippetWhereInput orderBy?: Prisma.AdminEmailSnippetOrderByWithAggregationInput | Prisma.AdminEmailSnippetOrderByWithAggregationInput[] by: Prisma.AdminEmailSnippetScalarFieldEnum[] | Prisma.AdminEmailSnippetScalarFieldEnum having?: Prisma.AdminEmailSnippetScalarWhereWithAggregatesInput take?: number skip?: number _count?: AdminEmailSnippetCountAggregateInputType | true _min?: AdminEmailSnippetMinAggregateInputType _max?: AdminEmailSnippetMaxAggregateInputType } export type AdminEmailSnippetGroupByOutputType = { id: string createdAt: Date updatedAt: Date archivedAt: Date | null adminUserId: string shortcut: string title: string content: string _count: AdminEmailSnippetCountAggregateOutputType | null _min: AdminEmailSnippetMinAggregateOutputType | null _max: AdminEmailSnippetMaxAggregateOutputType | null } export type GetAdminEmailSnippetGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AdminEmailSnippetGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AdminEmailSnippetWhereInput = { AND?: Prisma.AdminEmailSnippetWhereInput | Prisma.AdminEmailSnippetWhereInput[] OR?: Prisma.AdminEmailSnippetWhereInput[] NOT?: Prisma.AdminEmailSnippetWhereInput | Prisma.AdminEmailSnippetWhereInput[] id?: Prisma.StringFilter<"AdminEmailSnippet"> | string createdAt?: Prisma.DateTimeFilter<"AdminEmailSnippet"> | Date | string updatedAt?: Prisma.DateTimeFilter<"AdminEmailSnippet"> | Date | string archivedAt?: Prisma.DateTimeNullableFilter<"AdminEmailSnippet"> | Date | string | null adminUserId?: Prisma.StringFilter<"AdminEmailSnippet"> | string shortcut?: Prisma.StringFilter<"AdminEmailSnippet"> | string title?: Prisma.StringFilter<"AdminEmailSnippet"> | string content?: Prisma.StringFilter<"AdminEmailSnippet"> | string } export type AdminEmailSnippetOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder adminUserId?: Prisma.SortOrder shortcut?: Prisma.SortOrder title?: Prisma.SortOrder content?: Prisma.SortOrder } export type AdminEmailSnippetWhereUniqueInput = Prisma.AtLeast<{ id?: string admin_email_snippet_owner_shortcut_key?: Prisma.AdminEmailSnippetAdmin_email_snippet_owner_shortcut_keyCompoundUniqueInput AND?: Prisma.AdminEmailSnippetWhereInput | Prisma.AdminEmailSnippetWhereInput[] OR?: Prisma.AdminEmailSnippetWhereInput[] NOT?: Prisma.AdminEmailSnippetWhereInput | Prisma.AdminEmailSnippetWhereInput[] createdAt?: Prisma.DateTimeFilter<"AdminEmailSnippet"> | Date | string updatedAt?: Prisma.DateTimeFilter<"AdminEmailSnippet"> | Date | string archivedAt?: Prisma.DateTimeNullableFilter<"AdminEmailSnippet"> | Date | string | null adminUserId?: Prisma.StringFilter<"AdminEmailSnippet"> | string shortcut?: Prisma.StringFilter<"AdminEmailSnippet"> | string title?: Prisma.StringFilter<"AdminEmailSnippet"> | string content?: Prisma.StringFilter<"AdminEmailSnippet"> | string }, "id" | "admin_email_snippet_owner_shortcut_key"> export type AdminEmailSnippetOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder adminUserId?: Prisma.SortOrder shortcut?: Prisma.SortOrder title?: Prisma.SortOrder content?: Prisma.SortOrder _count?: Prisma.AdminEmailSnippetCountOrderByAggregateInput _max?: Prisma.AdminEmailSnippetMaxOrderByAggregateInput _min?: Prisma.AdminEmailSnippetMinOrderByAggregateInput } export type AdminEmailSnippetScalarWhereWithAggregatesInput = { AND?: Prisma.AdminEmailSnippetScalarWhereWithAggregatesInput | Prisma.AdminEmailSnippetScalarWhereWithAggregatesInput[] OR?: Prisma.AdminEmailSnippetScalarWhereWithAggregatesInput[] NOT?: Prisma.AdminEmailSnippetScalarWhereWithAggregatesInput | Prisma.AdminEmailSnippetScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"AdminEmailSnippet"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"AdminEmailSnippet"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AdminEmailSnippet"> | Date | string archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AdminEmailSnippet"> | Date | string | null adminUserId?: Prisma.StringWithAggregatesFilter<"AdminEmailSnippet"> | string shortcut?: Prisma.StringWithAggregatesFilter<"AdminEmailSnippet"> | string title?: Prisma.StringWithAggregatesFilter<"AdminEmailSnippet"> | string content?: Prisma.StringWithAggregatesFilter<"AdminEmailSnippet"> | string } export type AdminEmailSnippetCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string archivedAt?: Date | string | null adminUserId: string shortcut: string title: string content: string } export type AdminEmailSnippetUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string archivedAt?: Date | string | null adminUserId: string shortcut: string title: string content: string } export type AdminEmailSnippetUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null adminUserId?: Prisma.StringFieldUpdateOperationsInput | string shortcut?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string content?: Prisma.StringFieldUpdateOperationsInput | string } export type AdminEmailSnippetUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null adminUserId?: Prisma.StringFieldUpdateOperationsInput | string shortcut?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string content?: Prisma.StringFieldUpdateOperationsInput | string } export type AdminEmailSnippetCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string archivedAt?: Date | string | null adminUserId: string shortcut: string title: string content: string } export type AdminEmailSnippetUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null adminUserId?: Prisma.StringFieldUpdateOperationsInput | string shortcut?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string content?: Prisma.StringFieldUpdateOperationsInput | string } export type AdminEmailSnippetUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null adminUserId?: Prisma.StringFieldUpdateOperationsInput | string shortcut?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string content?: Prisma.StringFieldUpdateOperationsInput | string } export type AdminEmailSnippetAdmin_email_snippet_owner_shortcut_keyCompoundUniqueInput = { adminUserId: string shortcut: string } export type AdminEmailSnippetCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrder adminUserId?: Prisma.SortOrder shortcut?: Prisma.SortOrder title?: Prisma.SortOrder content?: Prisma.SortOrder } export type AdminEmailSnippetMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrder adminUserId?: Prisma.SortOrder shortcut?: Prisma.SortOrder title?: Prisma.SortOrder content?: Prisma.SortOrder } export type AdminEmailSnippetMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrder adminUserId?: Prisma.SortOrder shortcut?: Prisma.SortOrder title?: Prisma.SortOrder content?: Prisma.SortOrder } export type AdminEmailSnippetSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean archivedAt?: boolean adminUserId?: boolean shortcut?: boolean title?: boolean content?: boolean }, ExtArgs["result"]["adminEmailSnippet"]> export type AdminEmailSnippetSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean archivedAt?: boolean adminUserId?: boolean shortcut?: boolean title?: boolean content?: boolean }, ExtArgs["result"]["adminEmailSnippet"]> export type AdminEmailSnippetSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean archivedAt?: boolean adminUserId?: boolean shortcut?: boolean title?: boolean content?: boolean }, ExtArgs["result"]["adminEmailSnippet"]> export type AdminEmailSnippetSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean archivedAt?: boolean adminUserId?: boolean shortcut?: boolean title?: boolean content?: boolean } export type AdminEmailSnippetOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "archivedAt" | "adminUserId" | "shortcut" | "title" | "content", ExtArgs["result"]["adminEmailSnippet"]> export type $AdminEmailSnippetPayload = { name: "AdminEmailSnippet" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date archivedAt: Date | null adminUserId: string shortcut: string title: string content: string }, ExtArgs["result"]["adminEmailSnippet"]> composites: {} } export type AdminEmailSnippetGetPayload = runtime.Types.Result.GetResult export type AdminEmailSnippetCountArgs = Omit & { select?: AdminEmailSnippetCountAggregateInputType | true } export interface AdminEmailSnippetDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AdminEmailSnippet'], meta: { name: 'AdminEmailSnippet' } } /** * Find zero or one AdminEmailSnippet that matches the filter. * @param {AdminEmailSnippetFindUniqueArgs} args - Arguments to find a AdminEmailSnippet * @example * // Get one AdminEmailSnippet * const adminEmailSnippet = await prisma.adminEmailSnippet.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailSnippetClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AdminEmailSnippet that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AdminEmailSnippetFindUniqueOrThrowArgs} args - Arguments to find a AdminEmailSnippet * @example * // Get one AdminEmailSnippet * const adminEmailSnippet = await prisma.adminEmailSnippet.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailSnippetClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AdminEmailSnippet 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 {AdminEmailSnippetFindFirstArgs} args - Arguments to find a AdminEmailSnippet * @example * // Get one AdminEmailSnippet * const adminEmailSnippet = await prisma.adminEmailSnippet.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailSnippetClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AdminEmailSnippet 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 {AdminEmailSnippetFindFirstOrThrowArgs} args - Arguments to find a AdminEmailSnippet * @example * // Get one AdminEmailSnippet * const adminEmailSnippet = await prisma.adminEmailSnippet.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailSnippetClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AdminEmailSnippets 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 {AdminEmailSnippetFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AdminEmailSnippets * const adminEmailSnippets = await prisma.adminEmailSnippet.findMany() * * // Get first 10 AdminEmailSnippets * const adminEmailSnippets = await prisma.adminEmailSnippet.findMany({ take: 10 }) * * // Only select the `id` * const adminEmailSnippetWithIdOnly = await prisma.adminEmailSnippet.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a AdminEmailSnippet. * @param {AdminEmailSnippetCreateArgs} args - Arguments to create a AdminEmailSnippet. * @example * // Create one AdminEmailSnippet * const AdminEmailSnippet = await prisma.adminEmailSnippet.create({ * data: { * // ... data to create a AdminEmailSnippet * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailSnippetClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AdminEmailSnippets. * @param {AdminEmailSnippetCreateManyArgs} args - Arguments to create many AdminEmailSnippets. * @example * // Create many AdminEmailSnippets * const adminEmailSnippet = await prisma.adminEmailSnippet.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many AdminEmailSnippets and returns the data saved in the database. * @param {AdminEmailSnippetCreateManyAndReturnArgs} args - Arguments to create many AdminEmailSnippets. * @example * // Create many AdminEmailSnippets * const adminEmailSnippet = await prisma.adminEmailSnippet.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AdminEmailSnippets and only return the `id` * const adminEmailSnippetWithIdOnly = await prisma.adminEmailSnippet.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 AdminEmailSnippet. * @param {AdminEmailSnippetDeleteArgs} args - Arguments to delete one AdminEmailSnippet. * @example * // Delete one AdminEmailSnippet * const AdminEmailSnippet = await prisma.adminEmailSnippet.delete({ * where: { * // ... filter to delete one AdminEmailSnippet * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailSnippetClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AdminEmailSnippet. * @param {AdminEmailSnippetUpdateArgs} args - Arguments to update one AdminEmailSnippet. * @example * // Update one AdminEmailSnippet * const adminEmailSnippet = await prisma.adminEmailSnippet.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailSnippetClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AdminEmailSnippets. * @param {AdminEmailSnippetDeleteManyArgs} args - Arguments to filter AdminEmailSnippets to delete. * @example * // Delete a few AdminEmailSnippets * const { count } = await prisma.adminEmailSnippet.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AdminEmailSnippets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminEmailSnippetUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AdminEmailSnippets * const adminEmailSnippet = await prisma.adminEmailSnippet.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AdminEmailSnippets and returns the data updated in the database. * @param {AdminEmailSnippetUpdateManyAndReturnArgs} args - Arguments to update many AdminEmailSnippets. * @example * // Update many AdminEmailSnippets * const adminEmailSnippet = await prisma.adminEmailSnippet.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AdminEmailSnippets and only return the `id` * const adminEmailSnippetWithIdOnly = await prisma.adminEmailSnippet.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 AdminEmailSnippet. * @param {AdminEmailSnippetUpsertArgs} args - Arguments to update or create a AdminEmailSnippet. * @example * // Update or create a AdminEmailSnippet * const adminEmailSnippet = await prisma.adminEmailSnippet.upsert({ * create: { * // ... data to create a AdminEmailSnippet * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AdminEmailSnippet we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailSnippetClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AdminEmailSnippets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminEmailSnippetCountArgs} args - Arguments to filter AdminEmailSnippets to count. * @example * // Count the number of AdminEmailSnippets * const count = await prisma.adminEmailSnippet.count({ * where: { * // ... the filter for the AdminEmailSnippets 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 AdminEmailSnippet. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminEmailSnippetAggregateArgs} 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 AdminEmailSnippet. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminEmailSnippetGroupByArgs} 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 AdminEmailSnippetGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AdminEmailSnippetGroupByArgs['orderBy'] } : { orderBy?: AdminEmailSnippetGroupByArgs['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 ? GetAdminEmailSnippetGroupByPayload : Prisma.PrismaPromise /** * Fields of the AdminEmailSnippet model */ readonly fields: AdminEmailSnippetFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AdminEmailSnippet. * 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__AdminEmailSnippetClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the AdminEmailSnippet model */ export interface AdminEmailSnippetFieldRefs { readonly id: Prisma.FieldRef<"AdminEmailSnippet", 'String'> readonly createdAt: Prisma.FieldRef<"AdminEmailSnippet", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"AdminEmailSnippet", 'DateTime'> readonly archivedAt: Prisma.FieldRef<"AdminEmailSnippet", 'DateTime'> readonly adminUserId: Prisma.FieldRef<"AdminEmailSnippet", 'String'> readonly shortcut: Prisma.FieldRef<"AdminEmailSnippet", 'String'> readonly title: Prisma.FieldRef<"AdminEmailSnippet", 'String'> readonly content: Prisma.FieldRef<"AdminEmailSnippet", 'String'> } // Custom InputTypes /** * AdminEmailSnippet findUnique */ export type AdminEmailSnippetFindUniqueArgs = { /** * Select specific fields to fetch from the AdminEmailSnippet */ select?: Prisma.AdminEmailSnippetSelect | null /** * Omit specific fields from the AdminEmailSnippet */ omit?: Prisma.AdminEmailSnippetOmit | null /** * Filter, which AdminEmailSnippet to fetch. */ where: Prisma.AdminEmailSnippetWhereUniqueInput } /** * AdminEmailSnippet findUniqueOrThrow */ export type AdminEmailSnippetFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AdminEmailSnippet */ select?: Prisma.AdminEmailSnippetSelect | null /** * Omit specific fields from the AdminEmailSnippet */ omit?: Prisma.AdminEmailSnippetOmit | null /** * Filter, which AdminEmailSnippet to fetch. */ where: Prisma.AdminEmailSnippetWhereUniqueInput } /** * AdminEmailSnippet findFirst */ export type AdminEmailSnippetFindFirstArgs = { /** * Select specific fields to fetch from the AdminEmailSnippet */ select?: Prisma.AdminEmailSnippetSelect | null /** * Omit specific fields from the AdminEmailSnippet */ omit?: Prisma.AdminEmailSnippetOmit | null /** * Filter, which AdminEmailSnippet to fetch. */ where?: Prisma.AdminEmailSnippetWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminEmailSnippets to fetch. */ orderBy?: Prisma.AdminEmailSnippetOrderByWithRelationInput | Prisma.AdminEmailSnippetOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AdminEmailSnippets. */ cursor?: Prisma.AdminEmailSnippetWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminEmailSnippets 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` AdminEmailSnippets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AdminEmailSnippets. */ distinct?: Prisma.AdminEmailSnippetScalarFieldEnum | Prisma.AdminEmailSnippetScalarFieldEnum[] } /** * AdminEmailSnippet findFirstOrThrow */ export type AdminEmailSnippetFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AdminEmailSnippet */ select?: Prisma.AdminEmailSnippetSelect | null /** * Omit specific fields from the AdminEmailSnippet */ omit?: Prisma.AdminEmailSnippetOmit | null /** * Filter, which AdminEmailSnippet to fetch. */ where?: Prisma.AdminEmailSnippetWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminEmailSnippets to fetch. */ orderBy?: Prisma.AdminEmailSnippetOrderByWithRelationInput | Prisma.AdminEmailSnippetOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AdminEmailSnippets. */ cursor?: Prisma.AdminEmailSnippetWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminEmailSnippets 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` AdminEmailSnippets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AdminEmailSnippets. */ distinct?: Prisma.AdminEmailSnippetScalarFieldEnum | Prisma.AdminEmailSnippetScalarFieldEnum[] } /** * AdminEmailSnippet findMany */ export type AdminEmailSnippetFindManyArgs = { /** * Select specific fields to fetch from the AdminEmailSnippet */ select?: Prisma.AdminEmailSnippetSelect | null /** * Omit specific fields from the AdminEmailSnippet */ omit?: Prisma.AdminEmailSnippetOmit | null /** * Filter, which AdminEmailSnippets to fetch. */ where?: Prisma.AdminEmailSnippetWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminEmailSnippets to fetch. */ orderBy?: Prisma.AdminEmailSnippetOrderByWithRelationInput | Prisma.AdminEmailSnippetOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AdminEmailSnippets. */ cursor?: Prisma.AdminEmailSnippetWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminEmailSnippets 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` AdminEmailSnippets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AdminEmailSnippets. */ distinct?: Prisma.AdminEmailSnippetScalarFieldEnum | Prisma.AdminEmailSnippetScalarFieldEnum[] } /** * AdminEmailSnippet create */ export type AdminEmailSnippetCreateArgs = { /** * Select specific fields to fetch from the AdminEmailSnippet */ select?: Prisma.AdminEmailSnippetSelect | null /** * Omit specific fields from the AdminEmailSnippet */ omit?: Prisma.AdminEmailSnippetOmit | null /** * The data needed to create a AdminEmailSnippet. */ data: Prisma.XOR } /** * AdminEmailSnippet createMany */ export type AdminEmailSnippetCreateManyArgs = { /** * The data used to create many AdminEmailSnippets. */ data: Prisma.AdminEmailSnippetCreateManyInput | Prisma.AdminEmailSnippetCreateManyInput[] skipDuplicates?: boolean } /** * AdminEmailSnippet createManyAndReturn */ export type AdminEmailSnippetCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AdminEmailSnippet */ select?: Prisma.AdminEmailSnippetSelectCreateManyAndReturn | null /** * Omit specific fields from the AdminEmailSnippet */ omit?: Prisma.AdminEmailSnippetOmit | null /** * The data used to create many AdminEmailSnippets. */ data: Prisma.AdminEmailSnippetCreateManyInput | Prisma.AdminEmailSnippetCreateManyInput[] skipDuplicates?: boolean } /** * AdminEmailSnippet update */ export type AdminEmailSnippetUpdateArgs = { /** * Select specific fields to fetch from the AdminEmailSnippet */ select?: Prisma.AdminEmailSnippetSelect | null /** * Omit specific fields from the AdminEmailSnippet */ omit?: Prisma.AdminEmailSnippetOmit | null /** * The data needed to update a AdminEmailSnippet. */ data: Prisma.XOR /** * Choose, which AdminEmailSnippet to update. */ where: Prisma.AdminEmailSnippetWhereUniqueInput } /** * AdminEmailSnippet updateMany */ export type AdminEmailSnippetUpdateManyArgs = { /** * The data used to update AdminEmailSnippets. */ data: Prisma.XOR /** * Filter which AdminEmailSnippets to update */ where?: Prisma.AdminEmailSnippetWhereInput /** * Limit how many AdminEmailSnippets to update. */ limit?: number } /** * AdminEmailSnippet updateManyAndReturn */ export type AdminEmailSnippetUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AdminEmailSnippet */ select?: Prisma.AdminEmailSnippetSelectUpdateManyAndReturn | null /** * Omit specific fields from the AdminEmailSnippet */ omit?: Prisma.AdminEmailSnippetOmit | null /** * The data used to update AdminEmailSnippets. */ data: Prisma.XOR /** * Filter which AdminEmailSnippets to update */ where?: Prisma.AdminEmailSnippetWhereInput /** * Limit how many AdminEmailSnippets to update. */ limit?: number } /** * AdminEmailSnippet upsert */ export type AdminEmailSnippetUpsertArgs = { /** * Select specific fields to fetch from the AdminEmailSnippet */ select?: Prisma.AdminEmailSnippetSelect | null /** * Omit specific fields from the AdminEmailSnippet */ omit?: Prisma.AdminEmailSnippetOmit | null /** * The filter to search for the AdminEmailSnippet to update in case it exists. */ where: Prisma.AdminEmailSnippetWhereUniqueInput /** * In case the AdminEmailSnippet found by the `where` argument doesn't exist, create a new AdminEmailSnippet with this data. */ create: Prisma.XOR /** * In case the AdminEmailSnippet was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * AdminEmailSnippet delete */ export type AdminEmailSnippetDeleteArgs = { /** * Select specific fields to fetch from the AdminEmailSnippet */ select?: Prisma.AdminEmailSnippetSelect | null /** * Omit specific fields from the AdminEmailSnippet */ omit?: Prisma.AdminEmailSnippetOmit | null /** * Filter which AdminEmailSnippet to delete. */ where: Prisma.AdminEmailSnippetWhereUniqueInput } /** * AdminEmailSnippet deleteMany */ export type AdminEmailSnippetDeleteManyArgs = { /** * Filter which AdminEmailSnippets to delete */ where?: Prisma.AdminEmailSnippetWhereInput /** * Limit how many AdminEmailSnippets to delete. */ limit?: number } /** * AdminEmailSnippet without action */ export type AdminEmailSnippetDefaultArgs = { /** * Select specific fields to fetch from the AdminEmailSnippet */ select?: Prisma.AdminEmailSnippetSelect | null /** * Omit specific fields from the AdminEmailSnippet */ omit?: Prisma.AdminEmailSnippetOmit | null }