/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `AdminEmailTemplate` 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 AdminEmailTemplate * */ export type AdminEmailTemplateModel = runtime.Types.Result.DefaultSelection export type AggregateAdminEmailTemplate = { _count: AdminEmailTemplateCountAggregateOutputType | null _avg: AdminEmailTemplateAvgAggregateOutputType | null _sum: AdminEmailTemplateSumAggregateOutputType | null _min: AdminEmailTemplateMinAggregateOutputType | null _max: AdminEmailTemplateMaxAggregateOutputType | null } export type AdminEmailTemplateAvgAggregateOutputType = { version: number | null } export type AdminEmailTemplateSumAggregateOutputType = { version: number | null } export type AdminEmailTemplateMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null archivedAt: Date | null adminUserId: string | null name: string | null subjectTemplate: string | null htmlTemplate: string | null textTemplate: string | null version: number | null } export type AdminEmailTemplateMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null archivedAt: Date | null adminUserId: string | null name: string | null subjectTemplate: string | null htmlTemplate: string | null textTemplate: string | null version: number | null } export type AdminEmailTemplateCountAggregateOutputType = { id: number createdAt: number updatedAt: number archivedAt: number adminUserId: number name: number subjectTemplate: number htmlTemplate: number textTemplate: number allowedPlaceholders: number version: number _all: number } export type AdminEmailTemplateAvgAggregateInputType = { version?: true } export type AdminEmailTemplateSumAggregateInputType = { version?: true } export type AdminEmailTemplateMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true archivedAt?: true adminUserId?: true name?: true subjectTemplate?: true htmlTemplate?: true textTemplate?: true version?: true } export type AdminEmailTemplateMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true archivedAt?: true adminUserId?: true name?: true subjectTemplate?: true htmlTemplate?: true textTemplate?: true version?: true } export type AdminEmailTemplateCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true archivedAt?: true adminUserId?: true name?: true subjectTemplate?: true htmlTemplate?: true textTemplate?: true allowedPlaceholders?: true version?: true _all?: true } export type AdminEmailTemplateAggregateArgs = { /** * Filter which AdminEmailTemplate to aggregate. */ where?: Prisma.AdminEmailTemplateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminEmailTemplates to fetch. */ orderBy?: Prisma.AdminEmailTemplateOrderByWithRelationInput | Prisma.AdminEmailTemplateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AdminEmailTemplateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminEmailTemplates 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` AdminEmailTemplates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AdminEmailTemplates **/ _count?: true | AdminEmailTemplateCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AdminEmailTemplateAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AdminEmailTemplateSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AdminEmailTemplateMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AdminEmailTemplateMaxAggregateInputType } export type GetAdminEmailTemplateAggregateType = { [P in keyof T & keyof AggregateAdminEmailTemplate]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AdminEmailTemplateGroupByArgs = { where?: Prisma.AdminEmailTemplateWhereInput orderBy?: Prisma.AdminEmailTemplateOrderByWithAggregationInput | Prisma.AdminEmailTemplateOrderByWithAggregationInput[] by: Prisma.AdminEmailTemplateScalarFieldEnum[] | Prisma.AdminEmailTemplateScalarFieldEnum having?: Prisma.AdminEmailTemplateScalarWhereWithAggregatesInput take?: number skip?: number _count?: AdminEmailTemplateCountAggregateInputType | true _avg?: AdminEmailTemplateAvgAggregateInputType _sum?: AdminEmailTemplateSumAggregateInputType _min?: AdminEmailTemplateMinAggregateInputType _max?: AdminEmailTemplateMaxAggregateInputType } export type AdminEmailTemplateGroupByOutputType = { id: string createdAt: Date updatedAt: Date archivedAt: Date | null adminUserId: string name: string subjectTemplate: string htmlTemplate: string textTemplate: string | null allowedPlaceholders: string[] version: number _count: AdminEmailTemplateCountAggregateOutputType | null _avg: AdminEmailTemplateAvgAggregateOutputType | null _sum: AdminEmailTemplateSumAggregateOutputType | null _min: AdminEmailTemplateMinAggregateOutputType | null _max: AdminEmailTemplateMaxAggregateOutputType | null } export type GetAdminEmailTemplateGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AdminEmailTemplateGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AdminEmailTemplateWhereInput = { AND?: Prisma.AdminEmailTemplateWhereInput | Prisma.AdminEmailTemplateWhereInput[] OR?: Prisma.AdminEmailTemplateWhereInput[] NOT?: Prisma.AdminEmailTemplateWhereInput | Prisma.AdminEmailTemplateWhereInput[] id?: Prisma.StringFilter<"AdminEmailTemplate"> | string createdAt?: Prisma.DateTimeFilter<"AdminEmailTemplate"> | Date | string updatedAt?: Prisma.DateTimeFilter<"AdminEmailTemplate"> | Date | string archivedAt?: Prisma.DateTimeNullableFilter<"AdminEmailTemplate"> | Date | string | null adminUserId?: Prisma.StringFilter<"AdminEmailTemplate"> | string name?: Prisma.StringFilter<"AdminEmailTemplate"> | string subjectTemplate?: Prisma.StringFilter<"AdminEmailTemplate"> | string htmlTemplate?: Prisma.StringFilter<"AdminEmailTemplate"> | string textTemplate?: Prisma.StringNullableFilter<"AdminEmailTemplate"> | string | null allowedPlaceholders?: Prisma.StringNullableListFilter<"AdminEmailTemplate"> version?: Prisma.IntFilter<"AdminEmailTemplate"> | number } export type AdminEmailTemplateOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder adminUserId?: Prisma.SortOrder name?: Prisma.SortOrder subjectTemplate?: Prisma.SortOrder htmlTemplate?: Prisma.SortOrder textTemplate?: Prisma.SortOrderInput | Prisma.SortOrder allowedPlaceholders?: Prisma.SortOrder version?: Prisma.SortOrder } export type AdminEmailTemplateWhereUniqueInput = Prisma.AtLeast<{ id?: string admin_email_template_owner_name_version_key?: Prisma.AdminEmailTemplateAdmin_email_template_owner_name_version_keyCompoundUniqueInput AND?: Prisma.AdminEmailTemplateWhereInput | Prisma.AdminEmailTemplateWhereInput[] OR?: Prisma.AdminEmailTemplateWhereInput[] NOT?: Prisma.AdminEmailTemplateWhereInput | Prisma.AdminEmailTemplateWhereInput[] createdAt?: Prisma.DateTimeFilter<"AdminEmailTemplate"> | Date | string updatedAt?: Prisma.DateTimeFilter<"AdminEmailTemplate"> | Date | string archivedAt?: Prisma.DateTimeNullableFilter<"AdminEmailTemplate"> | Date | string | null adminUserId?: Prisma.StringFilter<"AdminEmailTemplate"> | string name?: Prisma.StringFilter<"AdminEmailTemplate"> | string subjectTemplate?: Prisma.StringFilter<"AdminEmailTemplate"> | string htmlTemplate?: Prisma.StringFilter<"AdminEmailTemplate"> | string textTemplate?: Prisma.StringNullableFilter<"AdminEmailTemplate"> | string | null allowedPlaceholders?: Prisma.StringNullableListFilter<"AdminEmailTemplate"> version?: Prisma.IntFilter<"AdminEmailTemplate"> | number }, "id" | "admin_email_template_owner_name_version_key"> export type AdminEmailTemplateOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder adminUserId?: Prisma.SortOrder name?: Prisma.SortOrder subjectTemplate?: Prisma.SortOrder htmlTemplate?: Prisma.SortOrder textTemplate?: Prisma.SortOrderInput | Prisma.SortOrder allowedPlaceholders?: Prisma.SortOrder version?: Prisma.SortOrder _count?: Prisma.AdminEmailTemplateCountOrderByAggregateInput _avg?: Prisma.AdminEmailTemplateAvgOrderByAggregateInput _max?: Prisma.AdminEmailTemplateMaxOrderByAggregateInput _min?: Prisma.AdminEmailTemplateMinOrderByAggregateInput _sum?: Prisma.AdminEmailTemplateSumOrderByAggregateInput } export type AdminEmailTemplateScalarWhereWithAggregatesInput = { AND?: Prisma.AdminEmailTemplateScalarWhereWithAggregatesInput | Prisma.AdminEmailTemplateScalarWhereWithAggregatesInput[] OR?: Prisma.AdminEmailTemplateScalarWhereWithAggregatesInput[] NOT?: Prisma.AdminEmailTemplateScalarWhereWithAggregatesInput | Prisma.AdminEmailTemplateScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"AdminEmailTemplate"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"AdminEmailTemplate"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AdminEmailTemplate"> | Date | string archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AdminEmailTemplate"> | Date | string | null adminUserId?: Prisma.StringWithAggregatesFilter<"AdminEmailTemplate"> | string name?: Prisma.StringWithAggregatesFilter<"AdminEmailTemplate"> | string subjectTemplate?: Prisma.StringWithAggregatesFilter<"AdminEmailTemplate"> | string htmlTemplate?: Prisma.StringWithAggregatesFilter<"AdminEmailTemplate"> | string textTemplate?: Prisma.StringNullableWithAggregatesFilter<"AdminEmailTemplate"> | string | null allowedPlaceholders?: Prisma.StringNullableListFilter<"AdminEmailTemplate"> version?: Prisma.IntWithAggregatesFilter<"AdminEmailTemplate"> | number } export type AdminEmailTemplateCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string archivedAt?: Date | string | null adminUserId: string name: string subjectTemplate: string htmlTemplate: string textTemplate?: string | null allowedPlaceholders?: Prisma.AdminEmailTemplateCreateallowedPlaceholdersInput | string[] version?: number } export type AdminEmailTemplateUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string archivedAt?: Date | string | null adminUserId: string name: string subjectTemplate: string htmlTemplate: string textTemplate?: string | null allowedPlaceholders?: Prisma.AdminEmailTemplateCreateallowedPlaceholdersInput | string[] version?: number } export type AdminEmailTemplateUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null adminUserId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string subjectTemplate?: Prisma.StringFieldUpdateOperationsInput | string htmlTemplate?: Prisma.StringFieldUpdateOperationsInput | string textTemplate?: Prisma.NullableStringFieldUpdateOperationsInput | string | null allowedPlaceholders?: Prisma.AdminEmailTemplateUpdateallowedPlaceholdersInput | string[] version?: Prisma.IntFieldUpdateOperationsInput | number } export type AdminEmailTemplateUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null adminUserId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string subjectTemplate?: Prisma.StringFieldUpdateOperationsInput | string htmlTemplate?: Prisma.StringFieldUpdateOperationsInput | string textTemplate?: Prisma.NullableStringFieldUpdateOperationsInput | string | null allowedPlaceholders?: Prisma.AdminEmailTemplateUpdateallowedPlaceholdersInput | string[] version?: Prisma.IntFieldUpdateOperationsInput | number } export type AdminEmailTemplateCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string archivedAt?: Date | string | null adminUserId: string name: string subjectTemplate: string htmlTemplate: string textTemplate?: string | null allowedPlaceholders?: Prisma.AdminEmailTemplateCreateallowedPlaceholdersInput | string[] version?: number } export type AdminEmailTemplateUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null adminUserId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string subjectTemplate?: Prisma.StringFieldUpdateOperationsInput | string htmlTemplate?: Prisma.StringFieldUpdateOperationsInput | string textTemplate?: Prisma.NullableStringFieldUpdateOperationsInput | string | null allowedPlaceholders?: Prisma.AdminEmailTemplateUpdateallowedPlaceholdersInput | string[] version?: Prisma.IntFieldUpdateOperationsInput | number } export type AdminEmailTemplateUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null adminUserId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string subjectTemplate?: Prisma.StringFieldUpdateOperationsInput | string htmlTemplate?: Prisma.StringFieldUpdateOperationsInput | string textTemplate?: Prisma.NullableStringFieldUpdateOperationsInput | string | null allowedPlaceholders?: Prisma.AdminEmailTemplateUpdateallowedPlaceholdersInput | string[] version?: Prisma.IntFieldUpdateOperationsInput | number } export type AdminEmailTemplateAdmin_email_template_owner_name_version_keyCompoundUniqueInput = { adminUserId: string name: string version: number } export type AdminEmailTemplateCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrder adminUserId?: Prisma.SortOrder name?: Prisma.SortOrder subjectTemplate?: Prisma.SortOrder htmlTemplate?: Prisma.SortOrder textTemplate?: Prisma.SortOrder allowedPlaceholders?: Prisma.SortOrder version?: Prisma.SortOrder } export type AdminEmailTemplateAvgOrderByAggregateInput = { version?: Prisma.SortOrder } export type AdminEmailTemplateMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrder adminUserId?: Prisma.SortOrder name?: Prisma.SortOrder subjectTemplate?: Prisma.SortOrder htmlTemplate?: Prisma.SortOrder textTemplate?: Prisma.SortOrder version?: Prisma.SortOrder } export type AdminEmailTemplateMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder archivedAt?: Prisma.SortOrder adminUserId?: Prisma.SortOrder name?: Prisma.SortOrder subjectTemplate?: Prisma.SortOrder htmlTemplate?: Prisma.SortOrder textTemplate?: Prisma.SortOrder version?: Prisma.SortOrder } export type AdminEmailTemplateSumOrderByAggregateInput = { version?: Prisma.SortOrder } export type AdminEmailTemplateCreateallowedPlaceholdersInput = { set: string[] } export type AdminEmailTemplateUpdateallowedPlaceholdersInput = { set?: string[] push?: string | string[] } export type AdminEmailTemplateSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean archivedAt?: boolean adminUserId?: boolean name?: boolean subjectTemplate?: boolean htmlTemplate?: boolean textTemplate?: boolean allowedPlaceholders?: boolean version?: boolean }, ExtArgs["result"]["adminEmailTemplate"]> export type AdminEmailTemplateSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean archivedAt?: boolean adminUserId?: boolean name?: boolean subjectTemplate?: boolean htmlTemplate?: boolean textTemplate?: boolean allowedPlaceholders?: boolean version?: boolean }, ExtArgs["result"]["adminEmailTemplate"]> export type AdminEmailTemplateSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean archivedAt?: boolean adminUserId?: boolean name?: boolean subjectTemplate?: boolean htmlTemplate?: boolean textTemplate?: boolean allowedPlaceholders?: boolean version?: boolean }, ExtArgs["result"]["adminEmailTemplate"]> export type AdminEmailTemplateSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean archivedAt?: boolean adminUserId?: boolean name?: boolean subjectTemplate?: boolean htmlTemplate?: boolean textTemplate?: boolean allowedPlaceholders?: boolean version?: boolean } export type AdminEmailTemplateOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "archivedAt" | "adminUserId" | "name" | "subjectTemplate" | "htmlTemplate" | "textTemplate" | "allowedPlaceholders" | "version", ExtArgs["result"]["adminEmailTemplate"]> export type $AdminEmailTemplatePayload = { name: "AdminEmailTemplate" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date archivedAt: Date | null adminUserId: string name: string subjectTemplate: string htmlTemplate: string textTemplate: string | null allowedPlaceholders: string[] version: number }, ExtArgs["result"]["adminEmailTemplate"]> composites: {} } export type AdminEmailTemplateGetPayload = runtime.Types.Result.GetResult export type AdminEmailTemplateCountArgs = Omit & { select?: AdminEmailTemplateCountAggregateInputType | true } export interface AdminEmailTemplateDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AdminEmailTemplate'], meta: { name: 'AdminEmailTemplate' } } /** * Find zero or one AdminEmailTemplate that matches the filter. * @param {AdminEmailTemplateFindUniqueArgs} args - Arguments to find a AdminEmailTemplate * @example * // Get one AdminEmailTemplate * const adminEmailTemplate = await prisma.adminEmailTemplate.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailTemplateClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AdminEmailTemplate that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AdminEmailTemplateFindUniqueOrThrowArgs} args - Arguments to find a AdminEmailTemplate * @example * // Get one AdminEmailTemplate * const adminEmailTemplate = await prisma.adminEmailTemplate.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailTemplateClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AdminEmailTemplate 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 {AdminEmailTemplateFindFirstArgs} args - Arguments to find a AdminEmailTemplate * @example * // Get one AdminEmailTemplate * const adminEmailTemplate = await prisma.adminEmailTemplate.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailTemplateClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AdminEmailTemplate 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 {AdminEmailTemplateFindFirstOrThrowArgs} args - Arguments to find a AdminEmailTemplate * @example * // Get one AdminEmailTemplate * const adminEmailTemplate = await prisma.adminEmailTemplate.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailTemplateClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AdminEmailTemplates 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 {AdminEmailTemplateFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AdminEmailTemplates * const adminEmailTemplates = await prisma.adminEmailTemplate.findMany() * * // Get first 10 AdminEmailTemplates * const adminEmailTemplates = await prisma.adminEmailTemplate.findMany({ take: 10 }) * * // Only select the `id` * const adminEmailTemplateWithIdOnly = await prisma.adminEmailTemplate.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a AdminEmailTemplate. * @param {AdminEmailTemplateCreateArgs} args - Arguments to create a AdminEmailTemplate. * @example * // Create one AdminEmailTemplate * const AdminEmailTemplate = await prisma.adminEmailTemplate.create({ * data: { * // ... data to create a AdminEmailTemplate * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailTemplateClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AdminEmailTemplates. * @param {AdminEmailTemplateCreateManyArgs} args - Arguments to create many AdminEmailTemplates. * @example * // Create many AdminEmailTemplates * const adminEmailTemplate = await prisma.adminEmailTemplate.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many AdminEmailTemplates and returns the data saved in the database. * @param {AdminEmailTemplateCreateManyAndReturnArgs} args - Arguments to create many AdminEmailTemplates. * @example * // Create many AdminEmailTemplates * const adminEmailTemplate = await prisma.adminEmailTemplate.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AdminEmailTemplates and only return the `id` * const adminEmailTemplateWithIdOnly = await prisma.adminEmailTemplate.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 AdminEmailTemplate. * @param {AdminEmailTemplateDeleteArgs} args - Arguments to delete one AdminEmailTemplate. * @example * // Delete one AdminEmailTemplate * const AdminEmailTemplate = await prisma.adminEmailTemplate.delete({ * where: { * // ... filter to delete one AdminEmailTemplate * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailTemplateClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AdminEmailTemplate. * @param {AdminEmailTemplateUpdateArgs} args - Arguments to update one AdminEmailTemplate. * @example * // Update one AdminEmailTemplate * const adminEmailTemplate = await prisma.adminEmailTemplate.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailTemplateClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AdminEmailTemplates. * @param {AdminEmailTemplateDeleteManyArgs} args - Arguments to filter AdminEmailTemplates to delete. * @example * // Delete a few AdminEmailTemplates * const { count } = await prisma.adminEmailTemplate.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AdminEmailTemplates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminEmailTemplateUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AdminEmailTemplates * const adminEmailTemplate = await prisma.adminEmailTemplate.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AdminEmailTemplates and returns the data updated in the database. * @param {AdminEmailTemplateUpdateManyAndReturnArgs} args - Arguments to update many AdminEmailTemplates. * @example * // Update many AdminEmailTemplates * const adminEmailTemplate = await prisma.adminEmailTemplate.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AdminEmailTemplates and only return the `id` * const adminEmailTemplateWithIdOnly = await prisma.adminEmailTemplate.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 AdminEmailTemplate. * @param {AdminEmailTemplateUpsertArgs} args - Arguments to update or create a AdminEmailTemplate. * @example * // Update or create a AdminEmailTemplate * const adminEmailTemplate = await prisma.adminEmailTemplate.upsert({ * create: { * // ... data to create a AdminEmailTemplate * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AdminEmailTemplate we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailTemplateClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AdminEmailTemplates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminEmailTemplateCountArgs} args - Arguments to filter AdminEmailTemplates to count. * @example * // Count the number of AdminEmailTemplates * const count = await prisma.adminEmailTemplate.count({ * where: { * // ... the filter for the AdminEmailTemplates 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 AdminEmailTemplate. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminEmailTemplateAggregateArgs} 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 AdminEmailTemplate. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminEmailTemplateGroupByArgs} 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 AdminEmailTemplateGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AdminEmailTemplateGroupByArgs['orderBy'] } : { orderBy?: AdminEmailTemplateGroupByArgs['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 ? GetAdminEmailTemplateGroupByPayload : Prisma.PrismaPromise /** * Fields of the AdminEmailTemplate model */ readonly fields: AdminEmailTemplateFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AdminEmailTemplate. * 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__AdminEmailTemplateClient 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 AdminEmailTemplate model */ export interface AdminEmailTemplateFieldRefs { readonly id: Prisma.FieldRef<"AdminEmailTemplate", 'String'> readonly createdAt: Prisma.FieldRef<"AdminEmailTemplate", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"AdminEmailTemplate", 'DateTime'> readonly archivedAt: Prisma.FieldRef<"AdminEmailTemplate", 'DateTime'> readonly adminUserId: Prisma.FieldRef<"AdminEmailTemplate", 'String'> readonly name: Prisma.FieldRef<"AdminEmailTemplate", 'String'> readonly subjectTemplate: Prisma.FieldRef<"AdminEmailTemplate", 'String'> readonly htmlTemplate: Prisma.FieldRef<"AdminEmailTemplate", 'String'> readonly textTemplate: Prisma.FieldRef<"AdminEmailTemplate", 'String'> readonly allowedPlaceholders: Prisma.FieldRef<"AdminEmailTemplate", 'String[]'> readonly version: Prisma.FieldRef<"AdminEmailTemplate", 'Int'> } // Custom InputTypes /** * AdminEmailTemplate findUnique */ export type AdminEmailTemplateFindUniqueArgs = { /** * Select specific fields to fetch from the AdminEmailTemplate */ select?: Prisma.AdminEmailTemplateSelect | null /** * Omit specific fields from the AdminEmailTemplate */ omit?: Prisma.AdminEmailTemplateOmit | null /** * Filter, which AdminEmailTemplate to fetch. */ where: Prisma.AdminEmailTemplateWhereUniqueInput } /** * AdminEmailTemplate findUniqueOrThrow */ export type AdminEmailTemplateFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AdminEmailTemplate */ select?: Prisma.AdminEmailTemplateSelect | null /** * Omit specific fields from the AdminEmailTemplate */ omit?: Prisma.AdminEmailTemplateOmit | null /** * Filter, which AdminEmailTemplate to fetch. */ where: Prisma.AdminEmailTemplateWhereUniqueInput } /** * AdminEmailTemplate findFirst */ export type AdminEmailTemplateFindFirstArgs = { /** * Select specific fields to fetch from the AdminEmailTemplate */ select?: Prisma.AdminEmailTemplateSelect | null /** * Omit specific fields from the AdminEmailTemplate */ omit?: Prisma.AdminEmailTemplateOmit | null /** * Filter, which AdminEmailTemplate to fetch. */ where?: Prisma.AdminEmailTemplateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminEmailTemplates to fetch. */ orderBy?: Prisma.AdminEmailTemplateOrderByWithRelationInput | Prisma.AdminEmailTemplateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AdminEmailTemplates. */ cursor?: Prisma.AdminEmailTemplateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminEmailTemplates 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` AdminEmailTemplates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AdminEmailTemplates. */ distinct?: Prisma.AdminEmailTemplateScalarFieldEnum | Prisma.AdminEmailTemplateScalarFieldEnum[] } /** * AdminEmailTemplate findFirstOrThrow */ export type AdminEmailTemplateFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AdminEmailTemplate */ select?: Prisma.AdminEmailTemplateSelect | null /** * Omit specific fields from the AdminEmailTemplate */ omit?: Prisma.AdminEmailTemplateOmit | null /** * Filter, which AdminEmailTemplate to fetch. */ where?: Prisma.AdminEmailTemplateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminEmailTemplates to fetch. */ orderBy?: Prisma.AdminEmailTemplateOrderByWithRelationInput | Prisma.AdminEmailTemplateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AdminEmailTemplates. */ cursor?: Prisma.AdminEmailTemplateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminEmailTemplates 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` AdminEmailTemplates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AdminEmailTemplates. */ distinct?: Prisma.AdminEmailTemplateScalarFieldEnum | Prisma.AdminEmailTemplateScalarFieldEnum[] } /** * AdminEmailTemplate findMany */ export type AdminEmailTemplateFindManyArgs = { /** * Select specific fields to fetch from the AdminEmailTemplate */ select?: Prisma.AdminEmailTemplateSelect | null /** * Omit specific fields from the AdminEmailTemplate */ omit?: Prisma.AdminEmailTemplateOmit | null /** * Filter, which AdminEmailTemplates to fetch. */ where?: Prisma.AdminEmailTemplateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminEmailTemplates to fetch. */ orderBy?: Prisma.AdminEmailTemplateOrderByWithRelationInput | Prisma.AdminEmailTemplateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AdminEmailTemplates. */ cursor?: Prisma.AdminEmailTemplateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminEmailTemplates 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` AdminEmailTemplates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AdminEmailTemplates. */ distinct?: Prisma.AdminEmailTemplateScalarFieldEnum | Prisma.AdminEmailTemplateScalarFieldEnum[] } /** * AdminEmailTemplate create */ export type AdminEmailTemplateCreateArgs = { /** * Select specific fields to fetch from the AdminEmailTemplate */ select?: Prisma.AdminEmailTemplateSelect | null /** * Omit specific fields from the AdminEmailTemplate */ omit?: Prisma.AdminEmailTemplateOmit | null /** * The data needed to create a AdminEmailTemplate. */ data: Prisma.XOR } /** * AdminEmailTemplate createMany */ export type AdminEmailTemplateCreateManyArgs = { /** * The data used to create many AdminEmailTemplates. */ data: Prisma.AdminEmailTemplateCreateManyInput | Prisma.AdminEmailTemplateCreateManyInput[] skipDuplicates?: boolean } /** * AdminEmailTemplate createManyAndReturn */ export type AdminEmailTemplateCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AdminEmailTemplate */ select?: Prisma.AdminEmailTemplateSelectCreateManyAndReturn | null /** * Omit specific fields from the AdminEmailTemplate */ omit?: Prisma.AdminEmailTemplateOmit | null /** * The data used to create many AdminEmailTemplates. */ data: Prisma.AdminEmailTemplateCreateManyInput | Prisma.AdminEmailTemplateCreateManyInput[] skipDuplicates?: boolean } /** * AdminEmailTemplate update */ export type AdminEmailTemplateUpdateArgs = { /** * Select specific fields to fetch from the AdminEmailTemplate */ select?: Prisma.AdminEmailTemplateSelect | null /** * Omit specific fields from the AdminEmailTemplate */ omit?: Prisma.AdminEmailTemplateOmit | null /** * The data needed to update a AdminEmailTemplate. */ data: Prisma.XOR /** * Choose, which AdminEmailTemplate to update. */ where: Prisma.AdminEmailTemplateWhereUniqueInput } /** * AdminEmailTemplate updateMany */ export type AdminEmailTemplateUpdateManyArgs = { /** * The data used to update AdminEmailTemplates. */ data: Prisma.XOR /** * Filter which AdminEmailTemplates to update */ where?: Prisma.AdminEmailTemplateWhereInput /** * Limit how many AdminEmailTemplates to update. */ limit?: number } /** * AdminEmailTemplate updateManyAndReturn */ export type AdminEmailTemplateUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AdminEmailTemplate */ select?: Prisma.AdminEmailTemplateSelectUpdateManyAndReturn | null /** * Omit specific fields from the AdminEmailTemplate */ omit?: Prisma.AdminEmailTemplateOmit | null /** * The data used to update AdminEmailTemplates. */ data: Prisma.XOR /** * Filter which AdminEmailTemplates to update */ where?: Prisma.AdminEmailTemplateWhereInput /** * Limit how many AdminEmailTemplates to update. */ limit?: number } /** * AdminEmailTemplate upsert */ export type AdminEmailTemplateUpsertArgs = { /** * Select specific fields to fetch from the AdminEmailTemplate */ select?: Prisma.AdminEmailTemplateSelect | null /** * Omit specific fields from the AdminEmailTemplate */ omit?: Prisma.AdminEmailTemplateOmit | null /** * The filter to search for the AdminEmailTemplate to update in case it exists. */ where: Prisma.AdminEmailTemplateWhereUniqueInput /** * In case the AdminEmailTemplate found by the `where` argument doesn't exist, create a new AdminEmailTemplate with this data. */ create: Prisma.XOR /** * In case the AdminEmailTemplate was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * AdminEmailTemplate delete */ export type AdminEmailTemplateDeleteArgs = { /** * Select specific fields to fetch from the AdminEmailTemplate */ select?: Prisma.AdminEmailTemplateSelect | null /** * Omit specific fields from the AdminEmailTemplate */ omit?: Prisma.AdminEmailTemplateOmit | null /** * Filter which AdminEmailTemplate to delete. */ where: Prisma.AdminEmailTemplateWhereUniqueInput } /** * AdminEmailTemplate deleteMany */ export type AdminEmailTemplateDeleteManyArgs = { /** * Filter which AdminEmailTemplates to delete */ where?: Prisma.AdminEmailTemplateWhereInput /** * Limit how many AdminEmailTemplates to delete. */ limit?: number } /** * AdminEmailTemplate without action */ export type AdminEmailTemplateDefaultArgs = { /** * Select specific fields to fetch from the AdminEmailTemplate */ select?: Prisma.AdminEmailTemplateSelect | null /** * Omit specific fields from the AdminEmailTemplate */ omit?: Prisma.AdminEmailTemplateOmit | null }