/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateUnsubscribe]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type UnsubscribeGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof UnsubscribeGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean tenantId?: boolean kontaktId?: boolean scope?: boolean campaignId?: boolean reason?: boolean }, ExtArgs["result"]["unsubscribe"]> export type UnsubscribeSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean tenantId?: boolean kontaktId?: boolean scope?: boolean campaignId?: boolean reason?: boolean }, ExtArgs["result"]["unsubscribe"]> export type UnsubscribeSelectUpdateManyAndReturn = 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 = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "tenantId" | "kontaktId" | "scope" | "campaignId" | "reason", ExtArgs["result"]["unsubscribe"]> export type $UnsubscribePayload = { 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 = runtime.Types.Result.GetResult export type UnsubscribeCountArgs = Omit & { select?: UnsubscribeCountAggregateInputType | true } export interface UnsubscribeDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__UnsubscribeClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UnsubscribeClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__UnsubscribeClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__UnsubscribeClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UnsubscribeClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UnsubscribeClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UnsubscribeClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UnsubscribeClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: UnsubscribeGroupByArgs['orderBy'] } : { orderBy?: UnsubscribeGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetUnsubscribeGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the 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 = { /** * Select specific fields to fetch from the Unsubscribe */ select?: Prisma.UnsubscribeSelect | null /** * Omit specific fields from the Unsubscribe */ omit?: Prisma.UnsubscribeOmit | null /** * Filter, which Unsubscribe to fetch. */ where: Prisma.UnsubscribeWhereUniqueInput } /** * Unsubscribe findUniqueOrThrow */ export type UnsubscribeFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Unsubscribe */ select?: Prisma.UnsubscribeSelect | null /** * Omit specific fields from the Unsubscribe */ omit?: Prisma.UnsubscribeOmit | null /** * Filter, which Unsubscribe to fetch. */ where: Prisma.UnsubscribeWhereUniqueInput } /** * Unsubscribe findFirst */ export type UnsubscribeFindFirstArgs = { /** * Select specific fields to fetch from the Unsubscribe */ select?: Prisma.UnsubscribeSelect | null /** * Omit specific fields from the Unsubscribe */ omit?: Prisma.UnsubscribeOmit | 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 = { /** * Select specific fields to fetch from the Unsubscribe */ select?: Prisma.UnsubscribeSelect | null /** * Omit specific fields from the Unsubscribe */ omit?: Prisma.UnsubscribeOmit | 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 = { /** * Select specific fields to fetch from the Unsubscribe */ select?: Prisma.UnsubscribeSelect | null /** * Omit specific fields from the Unsubscribe */ omit?: Prisma.UnsubscribeOmit | 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 = { /** * Select specific fields to fetch from the Unsubscribe */ select?: Prisma.UnsubscribeSelect | null /** * Omit specific fields from the Unsubscribe */ omit?: Prisma.UnsubscribeOmit | null /** * The data needed to create a Unsubscribe. */ data: Prisma.XOR } /** * Unsubscribe createMany */ export type UnsubscribeCreateManyArgs = { /** * The data used to create many Unsubscribes. */ data: Prisma.UnsubscribeCreateManyInput | Prisma.UnsubscribeCreateManyInput[] skipDuplicates?: boolean } /** * Unsubscribe createManyAndReturn */ export type UnsubscribeCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Unsubscribe */ select?: Prisma.UnsubscribeSelectCreateManyAndReturn | null /** * Omit specific fields from the Unsubscribe */ omit?: Prisma.UnsubscribeOmit | null /** * The data used to create many Unsubscribes. */ data: Prisma.UnsubscribeCreateManyInput | Prisma.UnsubscribeCreateManyInput[] skipDuplicates?: boolean } /** * Unsubscribe update */ export type UnsubscribeUpdateArgs = { /** * Select specific fields to fetch from the Unsubscribe */ select?: Prisma.UnsubscribeSelect | null /** * Omit specific fields from the Unsubscribe */ omit?: Prisma.UnsubscribeOmit | null /** * The data needed to update a Unsubscribe. */ data: Prisma.XOR /** * Choose, which Unsubscribe to update. */ where: Prisma.UnsubscribeWhereUniqueInput } /** * Unsubscribe updateMany */ export type UnsubscribeUpdateManyArgs = { /** * The data used to update Unsubscribes. */ data: Prisma.XOR /** * Filter which Unsubscribes to update */ where?: Prisma.UnsubscribeWhereInput /** * Limit how many Unsubscribes to update. */ limit?: number } /** * Unsubscribe updateManyAndReturn */ export type UnsubscribeUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Unsubscribe */ select?: Prisma.UnsubscribeSelectUpdateManyAndReturn | null /** * Omit specific fields from the Unsubscribe */ omit?: Prisma.UnsubscribeOmit | null /** * The data used to update Unsubscribes. */ data: Prisma.XOR /** * Filter which Unsubscribes to update */ where?: Prisma.UnsubscribeWhereInput /** * Limit how many Unsubscribes to update. */ limit?: number } /** * Unsubscribe upsert */ export type UnsubscribeUpsertArgs = { /** * Select specific fields to fetch from the Unsubscribe */ select?: Prisma.UnsubscribeSelect | null /** * Omit specific fields from the Unsubscribe */ omit?: Prisma.UnsubscribeOmit | 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 /** * In case the Unsubscribe was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Unsubscribe delete */ export type UnsubscribeDeleteArgs = { /** * Select specific fields to fetch from the Unsubscribe */ select?: Prisma.UnsubscribeSelect | null /** * Omit specific fields from the Unsubscribe */ omit?: Prisma.UnsubscribeOmit | null /** * Filter which Unsubscribe to delete. */ where: Prisma.UnsubscribeWhereUniqueInput } /** * Unsubscribe deleteMany */ export type UnsubscribeDeleteManyArgs = { /** * Filter which Unsubscribes to delete */ where?: Prisma.UnsubscribeWhereInput /** * Limit how many Unsubscribes to delete. */ limit?: number } /** * Unsubscribe without action */ export type UnsubscribeDefaultArgs = { /** * Select specific fields to fetch from the Unsubscribe */ select?: Prisma.UnsubscribeSelect | null /** * Omit specific fields from the Unsubscribe */ omit?: Prisma.UnsubscribeOmit | null }