1211 lines
43 KiB
TypeScript
1211 lines
43 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 `Unsubscribe` 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 Unsubscribe
|
|
* An unsubscribe record (one-click / List-Unsubscribe). `kontaktId` is a bare
|
|
* scalar; `campaignId` is set only for a campaign-scoped opt-out.
|
|
*/
|
|
export type UnsubscribeModel = runtime.Types.Result.DefaultSelection<Prisma.$UnsubscribePayload>
|
|
|
|
export type AggregateUnsubscribe = {
|
|
_count: UnsubscribeCountAggregateOutputType | null
|
|
_min: UnsubscribeMinAggregateOutputType | null
|
|
_max: UnsubscribeMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type UnsubscribeMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
tenantId: string | null
|
|
kontaktId: string | null
|
|
scope: $Enums.UnsubscribeScope | null
|
|
campaignId: string | null
|
|
reason: string | null
|
|
}
|
|
|
|
export type UnsubscribeMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
tenantId: string | null
|
|
kontaktId: string | null
|
|
scope: $Enums.UnsubscribeScope | null
|
|
campaignId: string | null
|
|
reason: string | null
|
|
}
|
|
|
|
export type UnsubscribeCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
tenantId: number
|
|
kontaktId: number
|
|
scope: number
|
|
campaignId: number
|
|
reason: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type UnsubscribeMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
tenantId?: true
|
|
kontaktId?: true
|
|
scope?: true
|
|
campaignId?: true
|
|
reason?: true
|
|
}
|
|
|
|
export type UnsubscribeMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
tenantId?: true
|
|
kontaktId?: true
|
|
scope?: true
|
|
campaignId?: true
|
|
reason?: true
|
|
}
|
|
|
|
export type UnsubscribeCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
tenantId?: true
|
|
kontaktId?: true
|
|
scope?: true
|
|
campaignId?: true
|
|
reason?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type UnsubscribeAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Unsubscribe to aggregate.
|
|
*/
|
|
where?: Prisma.UnsubscribeWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Unsubscribes to fetch.
|
|
*/
|
|
orderBy?: Prisma.UnsubscribeOrderByWithRelationInput | Prisma.UnsubscribeOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.UnsubscribeWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Unsubscribes 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` Unsubscribes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Unsubscribes
|
|
**/
|
|
_count?: true | UnsubscribeCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: UnsubscribeMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: UnsubscribeMaxAggregateInputType
|
|
}
|
|
|
|
export type GetUnsubscribeAggregateType<T extends UnsubscribeAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateUnsubscribe]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateUnsubscribe[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateUnsubscribe[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type UnsubscribeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.UnsubscribeWhereInput
|
|
orderBy?: Prisma.UnsubscribeOrderByWithAggregationInput | Prisma.UnsubscribeOrderByWithAggregationInput[]
|
|
by: Prisma.UnsubscribeScalarFieldEnum[] | Prisma.UnsubscribeScalarFieldEnum
|
|
having?: Prisma.UnsubscribeScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: UnsubscribeCountAggregateInputType | true
|
|
_min?: UnsubscribeMinAggregateInputType
|
|
_max?: UnsubscribeMaxAggregateInputType
|
|
}
|
|
|
|
export type UnsubscribeGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
tenantId: string
|
|
kontaktId: string
|
|
scope: $Enums.UnsubscribeScope
|
|
campaignId: string | null
|
|
reason: string | null
|
|
_count: UnsubscribeCountAggregateOutputType | null
|
|
_min: UnsubscribeMinAggregateOutputType | null
|
|
_max: UnsubscribeMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetUnsubscribeGroupByPayload<T extends UnsubscribeGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<UnsubscribeGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof UnsubscribeGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], UnsubscribeGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], UnsubscribeGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type UnsubscribeWhereInput = {
|
|
AND?: Prisma.UnsubscribeWhereInput | Prisma.UnsubscribeWhereInput[]
|
|
OR?: Prisma.UnsubscribeWhereInput[]
|
|
NOT?: Prisma.UnsubscribeWhereInput | Prisma.UnsubscribeWhereInput[]
|
|
id?: Prisma.StringFilter<"Unsubscribe"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"Unsubscribe"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"Unsubscribe"> | string
|
|
kontaktId?: Prisma.StringFilter<"Unsubscribe"> | string
|
|
scope?: Prisma.EnumUnsubscribeScopeFilter<"Unsubscribe"> | $Enums.UnsubscribeScope
|
|
campaignId?: Prisma.StringNullableFilter<"Unsubscribe"> | string | null
|
|
reason?: Prisma.StringNullableFilter<"Unsubscribe"> | string | null
|
|
}
|
|
|
|
export type UnsubscribeOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
kontaktId?: Prisma.SortOrder
|
|
scope?: Prisma.SortOrder
|
|
campaignId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
reason?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
}
|
|
|
|
export type UnsubscribeWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.UnsubscribeWhereInput | Prisma.UnsubscribeWhereInput[]
|
|
OR?: Prisma.UnsubscribeWhereInput[]
|
|
NOT?: Prisma.UnsubscribeWhereInput | Prisma.UnsubscribeWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"Unsubscribe"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"Unsubscribe"> | string
|
|
kontaktId?: Prisma.StringFilter<"Unsubscribe"> | string
|
|
scope?: Prisma.EnumUnsubscribeScopeFilter<"Unsubscribe"> | $Enums.UnsubscribeScope
|
|
campaignId?: Prisma.StringNullableFilter<"Unsubscribe"> | string | null
|
|
reason?: Prisma.StringNullableFilter<"Unsubscribe"> | string | null
|
|
}, "id">
|
|
|
|
export type UnsubscribeOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
kontaktId?: Prisma.SortOrder
|
|
scope?: Prisma.SortOrder
|
|
campaignId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
reason?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.UnsubscribeCountOrderByAggregateInput
|
|
_max?: Prisma.UnsubscribeMaxOrderByAggregateInput
|
|
_min?: Prisma.UnsubscribeMinOrderByAggregateInput
|
|
}
|
|
|
|
export type UnsubscribeScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.UnsubscribeScalarWhereWithAggregatesInput | Prisma.UnsubscribeScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.UnsubscribeScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.UnsubscribeScalarWhereWithAggregatesInput | Prisma.UnsubscribeScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"Unsubscribe"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Unsubscribe"> | Date | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"Unsubscribe"> | string
|
|
kontaktId?: Prisma.StringWithAggregatesFilter<"Unsubscribe"> | string
|
|
scope?: Prisma.EnumUnsubscribeScopeWithAggregatesFilter<"Unsubscribe"> | $Enums.UnsubscribeScope
|
|
campaignId?: Prisma.StringNullableWithAggregatesFilter<"Unsubscribe"> | string | null
|
|
reason?: Prisma.StringNullableWithAggregatesFilter<"Unsubscribe"> | string | null
|
|
}
|
|
|
|
export type UnsubscribeCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
tenantId: string
|
|
kontaktId: string
|
|
scope?: $Enums.UnsubscribeScope
|
|
campaignId?: string | null
|
|
reason?: string | null
|
|
}
|
|
|
|
export type UnsubscribeUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
tenantId: string
|
|
kontaktId: string
|
|
scope?: $Enums.UnsubscribeScope
|
|
campaignId?: string | null
|
|
reason?: string | null
|
|
}
|
|
|
|
export type UnsubscribeUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kontaktId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
scope?: Prisma.EnumUnsubscribeScopeFieldUpdateOperationsInput | $Enums.UnsubscribeScope
|
|
campaignId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type UnsubscribeUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kontaktId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
scope?: Prisma.EnumUnsubscribeScopeFieldUpdateOperationsInput | $Enums.UnsubscribeScope
|
|
campaignId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type UnsubscribeCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
tenantId: string
|
|
kontaktId: string
|
|
scope?: $Enums.UnsubscribeScope
|
|
campaignId?: string | null
|
|
reason?: string | null
|
|
}
|
|
|
|
export type UnsubscribeUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kontaktId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
scope?: Prisma.EnumUnsubscribeScopeFieldUpdateOperationsInput | $Enums.UnsubscribeScope
|
|
campaignId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type UnsubscribeUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kontaktId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
scope?: Prisma.EnumUnsubscribeScopeFieldUpdateOperationsInput | $Enums.UnsubscribeScope
|
|
campaignId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
reason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type UnsubscribeCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
kontaktId?: Prisma.SortOrder
|
|
scope?: Prisma.SortOrder
|
|
campaignId?: Prisma.SortOrder
|
|
reason?: Prisma.SortOrder
|
|
}
|
|
|
|
export type UnsubscribeMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
kontaktId?: Prisma.SortOrder
|
|
scope?: Prisma.SortOrder
|
|
campaignId?: Prisma.SortOrder
|
|
reason?: Prisma.SortOrder
|
|
}
|
|
|
|
export type UnsubscribeMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
kontaktId?: Prisma.SortOrder
|
|
scope?: Prisma.SortOrder
|
|
campaignId?: Prisma.SortOrder
|
|
reason?: Prisma.SortOrder
|
|
}
|
|
|
|
export type EnumUnsubscribeScopeFieldUpdateOperationsInput = {
|
|
set?: $Enums.UnsubscribeScope
|
|
}
|
|
|
|
|
|
|
|
export type UnsubscribeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
tenantId?: boolean
|
|
kontaktId?: boolean
|
|
scope?: boolean
|
|
campaignId?: boolean
|
|
reason?: boolean
|
|
}, ExtArgs["result"]["unsubscribe"]>
|
|
|
|
export type UnsubscribeSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
tenantId?: boolean
|
|
kontaktId?: boolean
|
|
scope?: boolean
|
|
campaignId?: boolean
|
|
reason?: boolean
|
|
}, ExtArgs["result"]["unsubscribe"]>
|
|
|
|
export type UnsubscribeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
tenantId?: boolean
|
|
kontaktId?: boolean
|
|
scope?: boolean
|
|
campaignId?: boolean
|
|
reason?: boolean
|
|
}, ExtArgs["result"]["unsubscribe"]>
|
|
|
|
export type UnsubscribeSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
tenantId?: boolean
|
|
kontaktId?: boolean
|
|
scope?: boolean
|
|
campaignId?: boolean
|
|
reason?: boolean
|
|
}
|
|
|
|
export type UnsubscribeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "tenantId" | "kontaktId" | "scope" | "campaignId" | "reason", ExtArgs["result"]["unsubscribe"]>
|
|
|
|
export type $UnsubscribePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "Unsubscribe"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
tenantId: string
|
|
kontaktId: string
|
|
scope: $Enums.UnsubscribeScope
|
|
campaignId: string | null
|
|
reason: string | null
|
|
}, ExtArgs["result"]["unsubscribe"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type UnsubscribeGetPayload<S extends boolean | null | undefined | UnsubscribeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$UnsubscribePayload, S>
|
|
|
|
export type UnsubscribeCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<UnsubscribeFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: UnsubscribeCountAggregateInputType | true
|
|
}
|
|
|
|
export interface UnsubscribeDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Unsubscribe'], meta: { name: 'Unsubscribe' } }
|
|
/**
|
|
* Find zero or one Unsubscribe that matches the filter.
|
|
* @param {UnsubscribeFindUniqueArgs} args - Arguments to find a Unsubscribe
|
|
* @example
|
|
* // Get one Unsubscribe
|
|
* const unsubscribe = await prisma.unsubscribe.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends UnsubscribeFindUniqueArgs>(args: Prisma.SelectSubset<T, UnsubscribeFindUniqueArgs<ExtArgs>>): Prisma.Prisma__UnsubscribeClient<runtime.Types.Result.GetResult<Prisma.$UnsubscribePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Unsubscribe that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {UnsubscribeFindUniqueOrThrowArgs} args - Arguments to find a Unsubscribe
|
|
* @example
|
|
* // Get one Unsubscribe
|
|
* const unsubscribe = await prisma.unsubscribe.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends UnsubscribeFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, UnsubscribeFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__UnsubscribeClient<runtime.Types.Result.GetResult<Prisma.$UnsubscribePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Unsubscribe 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 {UnsubscribeFindFirstArgs} args - Arguments to find a Unsubscribe
|
|
* @example
|
|
* // Get one Unsubscribe
|
|
* const unsubscribe = await prisma.unsubscribe.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends UnsubscribeFindFirstArgs>(args?: Prisma.SelectSubset<T, UnsubscribeFindFirstArgs<ExtArgs>>): Prisma.Prisma__UnsubscribeClient<runtime.Types.Result.GetResult<Prisma.$UnsubscribePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Unsubscribe 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 {UnsubscribeFindFirstOrThrowArgs} args - Arguments to find a Unsubscribe
|
|
* @example
|
|
* // Get one Unsubscribe
|
|
* const unsubscribe = await prisma.unsubscribe.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends UnsubscribeFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, UnsubscribeFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__UnsubscribeClient<runtime.Types.Result.GetResult<Prisma.$UnsubscribePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Unsubscribes 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 {UnsubscribeFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Unsubscribes
|
|
* const unsubscribes = await prisma.unsubscribe.findMany()
|
|
*
|
|
* // Get first 10 Unsubscribes
|
|
* const unsubscribes = await prisma.unsubscribe.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const unsubscribeWithIdOnly = await prisma.unsubscribe.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends UnsubscribeFindManyArgs>(args?: Prisma.SelectSubset<T, UnsubscribeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UnsubscribePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Unsubscribe.
|
|
* @param {UnsubscribeCreateArgs} args - Arguments to create a Unsubscribe.
|
|
* @example
|
|
* // Create one Unsubscribe
|
|
* const Unsubscribe = await prisma.unsubscribe.create({
|
|
* data: {
|
|
* // ... data to create a Unsubscribe
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends UnsubscribeCreateArgs>(args: Prisma.SelectSubset<T, UnsubscribeCreateArgs<ExtArgs>>): Prisma.Prisma__UnsubscribeClient<runtime.Types.Result.GetResult<Prisma.$UnsubscribePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Unsubscribes.
|
|
* @param {UnsubscribeCreateManyArgs} args - Arguments to create many Unsubscribes.
|
|
* @example
|
|
* // Create many Unsubscribes
|
|
* const unsubscribe = await prisma.unsubscribe.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends UnsubscribeCreateManyArgs>(args?: Prisma.SelectSubset<T, UnsubscribeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many Unsubscribes and returns the data saved in the database.
|
|
* @param {UnsubscribeCreateManyAndReturnArgs} args - Arguments to create many Unsubscribes.
|
|
* @example
|
|
* // Create many Unsubscribes
|
|
* const unsubscribe = await prisma.unsubscribe.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Unsubscribes and only return the `id`
|
|
* const unsubscribeWithIdOnly = await prisma.unsubscribe.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 UnsubscribeCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, UnsubscribeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UnsubscribePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a Unsubscribe.
|
|
* @param {UnsubscribeDeleteArgs} args - Arguments to delete one Unsubscribe.
|
|
* @example
|
|
* // Delete one Unsubscribe
|
|
* const Unsubscribe = await prisma.unsubscribe.delete({
|
|
* where: {
|
|
* // ... filter to delete one Unsubscribe
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends UnsubscribeDeleteArgs>(args: Prisma.SelectSubset<T, UnsubscribeDeleteArgs<ExtArgs>>): Prisma.Prisma__UnsubscribeClient<runtime.Types.Result.GetResult<Prisma.$UnsubscribePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Unsubscribe.
|
|
* @param {UnsubscribeUpdateArgs} args - Arguments to update one Unsubscribe.
|
|
* @example
|
|
* // Update one Unsubscribe
|
|
* const unsubscribe = await prisma.unsubscribe.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends UnsubscribeUpdateArgs>(args: Prisma.SelectSubset<T, UnsubscribeUpdateArgs<ExtArgs>>): Prisma.Prisma__UnsubscribeClient<runtime.Types.Result.GetResult<Prisma.$UnsubscribePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Unsubscribes.
|
|
* @param {UnsubscribeDeleteManyArgs} args - Arguments to filter Unsubscribes to delete.
|
|
* @example
|
|
* // Delete a few Unsubscribes
|
|
* const { count } = await prisma.unsubscribe.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends UnsubscribeDeleteManyArgs>(args?: Prisma.SelectSubset<T, UnsubscribeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Unsubscribes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UnsubscribeUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Unsubscribes
|
|
* const unsubscribe = await prisma.unsubscribe.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends UnsubscribeUpdateManyArgs>(args: Prisma.SelectSubset<T, UnsubscribeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Unsubscribes and returns the data updated in the database.
|
|
* @param {UnsubscribeUpdateManyAndReturnArgs} args - Arguments to update many Unsubscribes.
|
|
* @example
|
|
* // Update many Unsubscribes
|
|
* const unsubscribe = await prisma.unsubscribe.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more Unsubscribes and only return the `id`
|
|
* const unsubscribeWithIdOnly = await prisma.unsubscribe.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 UnsubscribeUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, UnsubscribeUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UnsubscribePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one Unsubscribe.
|
|
* @param {UnsubscribeUpsertArgs} args - Arguments to update or create a Unsubscribe.
|
|
* @example
|
|
* // Update or create a Unsubscribe
|
|
* const unsubscribe = await prisma.unsubscribe.upsert({
|
|
* create: {
|
|
* // ... data to create a Unsubscribe
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Unsubscribe we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends UnsubscribeUpsertArgs>(args: Prisma.SelectSubset<T, UnsubscribeUpsertArgs<ExtArgs>>): Prisma.Prisma__UnsubscribeClient<runtime.Types.Result.GetResult<Prisma.$UnsubscribePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Unsubscribes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UnsubscribeCountArgs} args - Arguments to filter Unsubscribes to count.
|
|
* @example
|
|
* // Count the number of Unsubscribes
|
|
* const count = await prisma.unsubscribe.count({
|
|
* where: {
|
|
* // ... the filter for the Unsubscribes we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends UnsubscribeCountArgs>(
|
|
args?: Prisma.Subset<T, UnsubscribeCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], UnsubscribeCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Unsubscribe.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UnsubscribeAggregateArgs} 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 UnsubscribeAggregateArgs>(args: Prisma.Subset<T, UnsubscribeAggregateArgs>): Prisma.PrismaPromise<GetUnsubscribeAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Unsubscribe.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UnsubscribeGroupByArgs} 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 UnsubscribeGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: UnsubscribeGroupByArgs['orderBy'] }
|
|
: { orderBy?: UnsubscribeGroupByArgs['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, UnsubscribeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUnsubscribeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Unsubscribe model
|
|
*/
|
|
readonly fields: UnsubscribeFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Unsubscribe.
|
|
* 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__UnsubscribeClient<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 Unsubscribe model
|
|
*/
|
|
export interface UnsubscribeFieldRefs {
|
|
readonly id: Prisma.FieldRef<"Unsubscribe", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"Unsubscribe", 'DateTime'>
|
|
readonly tenantId: Prisma.FieldRef<"Unsubscribe", 'String'>
|
|
readonly kontaktId: Prisma.FieldRef<"Unsubscribe", 'String'>
|
|
readonly scope: Prisma.FieldRef<"Unsubscribe", 'UnsubscribeScope'>
|
|
readonly campaignId: Prisma.FieldRef<"Unsubscribe", 'String'>
|
|
readonly reason: Prisma.FieldRef<"Unsubscribe", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Unsubscribe findUnique
|
|
*/
|
|
export type UnsubscribeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Unsubscribe
|
|
*/
|
|
select?: Prisma.UnsubscribeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Unsubscribe
|
|
*/
|
|
omit?: Prisma.UnsubscribeOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which Unsubscribe to fetch.
|
|
*/
|
|
where: Prisma.UnsubscribeWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Unsubscribe findUniqueOrThrow
|
|
*/
|
|
export type UnsubscribeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Unsubscribe
|
|
*/
|
|
select?: Prisma.UnsubscribeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Unsubscribe
|
|
*/
|
|
omit?: Prisma.UnsubscribeOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which Unsubscribe to fetch.
|
|
*/
|
|
where: Prisma.UnsubscribeWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Unsubscribe findFirst
|
|
*/
|
|
export type UnsubscribeFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Unsubscribe
|
|
*/
|
|
select?: Prisma.UnsubscribeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Unsubscribe
|
|
*/
|
|
omit?: Prisma.UnsubscribeOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which Unsubscribe to fetch.
|
|
*/
|
|
where?: Prisma.UnsubscribeWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Unsubscribes to fetch.
|
|
*/
|
|
orderBy?: Prisma.UnsubscribeOrderByWithRelationInput | Prisma.UnsubscribeOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Unsubscribes.
|
|
*/
|
|
cursor?: Prisma.UnsubscribeWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Unsubscribes 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` Unsubscribes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Unsubscribes.
|
|
*/
|
|
distinct?: Prisma.UnsubscribeScalarFieldEnum | Prisma.UnsubscribeScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Unsubscribe findFirstOrThrow
|
|
*/
|
|
export type UnsubscribeFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Unsubscribe
|
|
*/
|
|
select?: Prisma.UnsubscribeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Unsubscribe
|
|
*/
|
|
omit?: Prisma.UnsubscribeOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which Unsubscribe to fetch.
|
|
*/
|
|
where?: Prisma.UnsubscribeWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Unsubscribes to fetch.
|
|
*/
|
|
orderBy?: Prisma.UnsubscribeOrderByWithRelationInput | Prisma.UnsubscribeOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Unsubscribes.
|
|
*/
|
|
cursor?: Prisma.UnsubscribeWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Unsubscribes 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` Unsubscribes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Unsubscribes.
|
|
*/
|
|
distinct?: Prisma.UnsubscribeScalarFieldEnum | Prisma.UnsubscribeScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Unsubscribe findMany
|
|
*/
|
|
export type UnsubscribeFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Unsubscribe
|
|
*/
|
|
select?: Prisma.UnsubscribeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Unsubscribe
|
|
*/
|
|
omit?: Prisma.UnsubscribeOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which Unsubscribes to fetch.
|
|
*/
|
|
where?: Prisma.UnsubscribeWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Unsubscribes to fetch.
|
|
*/
|
|
orderBy?: Prisma.UnsubscribeOrderByWithRelationInput | Prisma.UnsubscribeOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Unsubscribes.
|
|
*/
|
|
cursor?: Prisma.UnsubscribeWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Unsubscribes 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` Unsubscribes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Unsubscribes.
|
|
*/
|
|
distinct?: Prisma.UnsubscribeScalarFieldEnum | Prisma.UnsubscribeScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Unsubscribe create
|
|
*/
|
|
export type UnsubscribeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Unsubscribe
|
|
*/
|
|
select?: Prisma.UnsubscribeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Unsubscribe
|
|
*/
|
|
omit?: Prisma.UnsubscribeOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Unsubscribe.
|
|
*/
|
|
data: Prisma.XOR<Prisma.UnsubscribeCreateInput, Prisma.UnsubscribeUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Unsubscribe createMany
|
|
*/
|
|
export type UnsubscribeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Unsubscribes.
|
|
*/
|
|
data: Prisma.UnsubscribeCreateManyInput | Prisma.UnsubscribeCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Unsubscribe createManyAndReturn
|
|
*/
|
|
export type UnsubscribeCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Unsubscribe
|
|
*/
|
|
select?: Prisma.UnsubscribeSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Unsubscribe
|
|
*/
|
|
omit?: Prisma.UnsubscribeOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Unsubscribes.
|
|
*/
|
|
data: Prisma.UnsubscribeCreateManyInput | Prisma.UnsubscribeCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Unsubscribe update
|
|
*/
|
|
export type UnsubscribeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Unsubscribe
|
|
*/
|
|
select?: Prisma.UnsubscribeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Unsubscribe
|
|
*/
|
|
omit?: Prisma.UnsubscribeOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Unsubscribe.
|
|
*/
|
|
data: Prisma.XOR<Prisma.UnsubscribeUpdateInput, Prisma.UnsubscribeUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Unsubscribe to update.
|
|
*/
|
|
where: Prisma.UnsubscribeWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Unsubscribe updateMany
|
|
*/
|
|
export type UnsubscribeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Unsubscribes.
|
|
*/
|
|
data: Prisma.XOR<Prisma.UnsubscribeUpdateManyMutationInput, Prisma.UnsubscribeUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Unsubscribes to update
|
|
*/
|
|
where?: Prisma.UnsubscribeWhereInput
|
|
/**
|
|
* Limit how many Unsubscribes to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Unsubscribe updateManyAndReturn
|
|
*/
|
|
export type UnsubscribeUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Unsubscribe
|
|
*/
|
|
select?: Prisma.UnsubscribeSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Unsubscribe
|
|
*/
|
|
omit?: Prisma.UnsubscribeOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update Unsubscribes.
|
|
*/
|
|
data: Prisma.XOR<Prisma.UnsubscribeUpdateManyMutationInput, Prisma.UnsubscribeUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Unsubscribes to update
|
|
*/
|
|
where?: Prisma.UnsubscribeWhereInput
|
|
/**
|
|
* Limit how many Unsubscribes to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Unsubscribe upsert
|
|
*/
|
|
export type UnsubscribeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Unsubscribe
|
|
*/
|
|
select?: Prisma.UnsubscribeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Unsubscribe
|
|
*/
|
|
omit?: Prisma.UnsubscribeOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Unsubscribe to update in case it exists.
|
|
*/
|
|
where: Prisma.UnsubscribeWhereUniqueInput
|
|
/**
|
|
* In case the Unsubscribe found by the `where` argument doesn't exist, create a new Unsubscribe with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.UnsubscribeCreateInput, Prisma.UnsubscribeUncheckedCreateInput>
|
|
/**
|
|
* In case the Unsubscribe was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.UnsubscribeUpdateInput, Prisma.UnsubscribeUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Unsubscribe delete
|
|
*/
|
|
export type UnsubscribeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Unsubscribe
|
|
*/
|
|
select?: Prisma.UnsubscribeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Unsubscribe
|
|
*/
|
|
omit?: Prisma.UnsubscribeOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which Unsubscribe to delete.
|
|
*/
|
|
where: Prisma.UnsubscribeWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Unsubscribe deleteMany
|
|
*/
|
|
export type UnsubscribeDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Unsubscribes to delete
|
|
*/
|
|
where?: Prisma.UnsubscribeWhereInput
|
|
/**
|
|
* Limit how many Unsubscribes to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Unsubscribe without action
|
|
*/
|
|
export type UnsubscribeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Unsubscribe
|
|
*/
|
|
select?: Prisma.UnsubscribeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Unsubscribe
|
|
*/
|
|
omit?: Prisma.UnsubscribeOmit<ExtArgs> | null
|
|
}
|