1372 lines
52 KiB
TypeScript
1372 lines
52 KiB
TypeScript
|
|
/* !!! 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<Prisma.$AdminEmailTemplatePayload>
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends AdminEmailTemplateAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAdminEmailTemplate]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateAdminEmailTemplate[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateAdminEmailTemplate[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AdminEmailTemplateGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
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<T extends AdminEmailTemplateGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<AdminEmailTemplateGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AdminEmailTemplateGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AdminEmailTemplateGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], AdminEmailTemplateGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "archivedAt" | "adminUserId" | "name" | "subjectTemplate" | "htmlTemplate" | "textTemplate" | "allowedPlaceholders" | "version", ExtArgs["result"]["adminEmailTemplate"]>
|
|
|
|
export type $AdminEmailTemplatePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
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<S extends boolean | null | undefined | AdminEmailTemplateDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AdminEmailTemplatePayload, S>
|
|
|
|
export type AdminEmailTemplateCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<AdminEmailTemplateFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: AdminEmailTemplateCountAggregateInputType | true
|
|
}
|
|
|
|
export interface AdminEmailTemplateDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends AdminEmailTemplateFindUniqueArgs>(args: Prisma.SelectSubset<T, AdminEmailTemplateFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AdminEmailTemplateClient<runtime.Types.Result.GetResult<Prisma.$AdminEmailTemplatePayload<ExtArgs>, 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<T extends AdminEmailTemplateFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AdminEmailTemplateFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminEmailTemplateClient<runtime.Types.Result.GetResult<Prisma.$AdminEmailTemplatePayload<ExtArgs>, 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<T extends AdminEmailTemplateFindFirstArgs>(args?: Prisma.SelectSubset<T, AdminEmailTemplateFindFirstArgs<ExtArgs>>): Prisma.Prisma__AdminEmailTemplateClient<runtime.Types.Result.GetResult<Prisma.$AdminEmailTemplatePayload<ExtArgs>, 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<T extends AdminEmailTemplateFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AdminEmailTemplateFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminEmailTemplateClient<runtime.Types.Result.GetResult<Prisma.$AdminEmailTemplatePayload<ExtArgs>, 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<T extends AdminEmailTemplateFindManyArgs>(args?: Prisma.SelectSubset<T, AdminEmailTemplateFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminEmailTemplatePayload<ExtArgs>, 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<T extends AdminEmailTemplateCreateArgs>(args: Prisma.SelectSubset<T, AdminEmailTemplateCreateArgs<ExtArgs>>): Prisma.Prisma__AdminEmailTemplateClient<runtime.Types.Result.GetResult<Prisma.$AdminEmailTemplatePayload<ExtArgs>, 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<T extends AdminEmailTemplateCreateManyArgs>(args?: Prisma.SelectSubset<T, AdminEmailTemplateCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends AdminEmailTemplateCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AdminEmailTemplateCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminEmailTemplatePayload<ExtArgs>, 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<T extends AdminEmailTemplateDeleteArgs>(args: Prisma.SelectSubset<T, AdminEmailTemplateDeleteArgs<ExtArgs>>): Prisma.Prisma__AdminEmailTemplateClient<runtime.Types.Result.GetResult<Prisma.$AdminEmailTemplatePayload<ExtArgs>, 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<T extends AdminEmailTemplateUpdateArgs>(args: Prisma.SelectSubset<T, AdminEmailTemplateUpdateArgs<ExtArgs>>): Prisma.Prisma__AdminEmailTemplateClient<runtime.Types.Result.GetResult<Prisma.$AdminEmailTemplatePayload<ExtArgs>, 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<T extends AdminEmailTemplateDeleteManyArgs>(args?: Prisma.SelectSubset<T, AdminEmailTemplateDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends AdminEmailTemplateUpdateManyArgs>(args: Prisma.SelectSubset<T, AdminEmailTemplateUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends AdminEmailTemplateUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AdminEmailTemplateUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminEmailTemplatePayload<ExtArgs>, 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<T extends AdminEmailTemplateUpsertArgs>(args: Prisma.SelectSubset<T, AdminEmailTemplateUpsertArgs<ExtArgs>>): Prisma.Prisma__AdminEmailTemplateClient<runtime.Types.Result.GetResult<Prisma.$AdminEmailTemplatePayload<ExtArgs>, 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<T extends AdminEmailTemplateCountArgs>(
|
|
args?: Prisma.Subset<T, AdminEmailTemplateCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], AdminEmailTemplateCountAggregateOutputType>
|
|
: 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<T extends AdminEmailTemplateAggregateArgs>(args: Prisma.Subset<T, AdminEmailTemplateAggregateArgs>): Prisma.PrismaPromise<GetAdminEmailTemplateAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: AdminEmailTemplateGroupByArgs['orderBy'] }
|
|
: { orderBy?: AdminEmailTemplateGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
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<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? 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<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? 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<T, AdminEmailTemplateGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminEmailTemplateGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* 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<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminEmailTemplate
|
|
*/
|
|
select?: Prisma.AdminEmailTemplateSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminEmailTemplate
|
|
*/
|
|
omit?: Prisma.AdminEmailTemplateOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminEmailTemplate to fetch.
|
|
*/
|
|
where: Prisma.AdminEmailTemplateWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminEmailTemplate findUniqueOrThrow
|
|
*/
|
|
export type AdminEmailTemplateFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminEmailTemplate
|
|
*/
|
|
select?: Prisma.AdminEmailTemplateSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminEmailTemplate
|
|
*/
|
|
omit?: Prisma.AdminEmailTemplateOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminEmailTemplate to fetch.
|
|
*/
|
|
where: Prisma.AdminEmailTemplateWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminEmailTemplate findFirst
|
|
*/
|
|
export type AdminEmailTemplateFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminEmailTemplate
|
|
*/
|
|
select?: Prisma.AdminEmailTemplateSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminEmailTemplate
|
|
*/
|
|
omit?: Prisma.AdminEmailTemplateOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminEmailTemplate
|
|
*/
|
|
select?: Prisma.AdminEmailTemplateSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminEmailTemplate
|
|
*/
|
|
omit?: Prisma.AdminEmailTemplateOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminEmailTemplate
|
|
*/
|
|
select?: Prisma.AdminEmailTemplateSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminEmailTemplate
|
|
*/
|
|
omit?: Prisma.AdminEmailTemplateOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminEmailTemplate
|
|
*/
|
|
select?: Prisma.AdminEmailTemplateSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminEmailTemplate
|
|
*/
|
|
omit?: Prisma.AdminEmailTemplateOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a AdminEmailTemplate.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminEmailTemplateCreateInput, Prisma.AdminEmailTemplateUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* AdminEmailTemplate createMany
|
|
*/
|
|
export type AdminEmailTemplateCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many AdminEmailTemplates.
|
|
*/
|
|
data: Prisma.AdminEmailTemplateCreateManyInput | Prisma.AdminEmailTemplateCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* AdminEmailTemplate createManyAndReturn
|
|
*/
|
|
export type AdminEmailTemplateCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminEmailTemplate
|
|
*/
|
|
select?: Prisma.AdminEmailTemplateSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminEmailTemplate
|
|
*/
|
|
omit?: Prisma.AdminEmailTemplateOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many AdminEmailTemplates.
|
|
*/
|
|
data: Prisma.AdminEmailTemplateCreateManyInput | Prisma.AdminEmailTemplateCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* AdminEmailTemplate update
|
|
*/
|
|
export type AdminEmailTemplateUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminEmailTemplate
|
|
*/
|
|
select?: Prisma.AdminEmailTemplateSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminEmailTemplate
|
|
*/
|
|
omit?: Prisma.AdminEmailTemplateOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a AdminEmailTemplate.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminEmailTemplateUpdateInput, Prisma.AdminEmailTemplateUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which AdminEmailTemplate to update.
|
|
*/
|
|
where: Prisma.AdminEmailTemplateWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminEmailTemplate updateMany
|
|
*/
|
|
export type AdminEmailTemplateUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update AdminEmailTemplates.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminEmailTemplateUpdateManyMutationInput, Prisma.AdminEmailTemplateUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AdminEmailTemplates to update
|
|
*/
|
|
where?: Prisma.AdminEmailTemplateWhereInput
|
|
/**
|
|
* Limit how many AdminEmailTemplates to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AdminEmailTemplate updateManyAndReturn
|
|
*/
|
|
export type AdminEmailTemplateUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminEmailTemplate
|
|
*/
|
|
select?: Prisma.AdminEmailTemplateSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminEmailTemplate
|
|
*/
|
|
omit?: Prisma.AdminEmailTemplateOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update AdminEmailTemplates.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminEmailTemplateUpdateManyMutationInput, Prisma.AdminEmailTemplateUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AdminEmailTemplates to update
|
|
*/
|
|
where?: Prisma.AdminEmailTemplateWhereInput
|
|
/**
|
|
* Limit how many AdminEmailTemplates to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AdminEmailTemplate upsert
|
|
*/
|
|
export type AdminEmailTemplateUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminEmailTemplate
|
|
*/
|
|
select?: Prisma.AdminEmailTemplateSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminEmailTemplate
|
|
*/
|
|
omit?: Prisma.AdminEmailTemplateOmit<ExtArgs> | 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<Prisma.AdminEmailTemplateCreateInput, Prisma.AdminEmailTemplateUncheckedCreateInput>
|
|
/**
|
|
* In case the AdminEmailTemplate was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.AdminEmailTemplateUpdateInput, Prisma.AdminEmailTemplateUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* AdminEmailTemplate delete
|
|
*/
|
|
export type AdminEmailTemplateDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminEmailTemplate
|
|
*/
|
|
select?: Prisma.AdminEmailTemplateSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminEmailTemplate
|
|
*/
|
|
omit?: Prisma.AdminEmailTemplateOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which AdminEmailTemplate to delete.
|
|
*/
|
|
where: Prisma.AdminEmailTemplateWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminEmailTemplate deleteMany
|
|
*/
|
|
export type AdminEmailTemplateDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AdminEmailTemplates to delete
|
|
*/
|
|
where?: Prisma.AdminEmailTemplateWhereInput
|
|
/**
|
|
* Limit how many AdminEmailTemplates to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AdminEmailTemplate without action
|
|
*/
|
|
export type AdminEmailTemplateDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminEmailTemplate
|
|
*/
|
|
select?: Prisma.AdminEmailTemplateSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminEmailTemplate
|
|
*/
|
|
omit?: Prisma.AdminEmailTemplateOmit<ExtArgs> | null
|
|
}
|