1626 lines
64 KiB
TypeScript
1626 lines
64 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 `RecipientSegment` 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 RecipientSegment
|
|
* A reusable recipient segment. `filterDefinition` is a nested AND/OR tree
|
|
* (see segmentQuery.ts) evaluated read-only against the typed Kontakt model.
|
|
* `isStaticSnapshot` freezes the resolved membership into SegmentSnapshotMember
|
|
* at creation time; a dynamic segment re-resolves on every send.
|
|
*/
|
|
export type RecipientSegmentModel = runtime.Types.Result.DefaultSelection<Prisma.$RecipientSegmentPayload>
|
|
|
|
export type AggregateRecipientSegment = {
|
|
_count: RecipientSegmentCountAggregateOutputType | null
|
|
_min: RecipientSegmentMinAggregateOutputType | null
|
|
_max: RecipientSegmentMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type RecipientSegmentMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
name: string | null
|
|
entityType: string | null
|
|
isStaticSnapshot: boolean | null
|
|
isDemoData: boolean | null
|
|
archivedAt: Date | null
|
|
}
|
|
|
|
export type RecipientSegmentMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
name: string | null
|
|
entityType: string | null
|
|
isStaticSnapshot: boolean | null
|
|
isDemoData: boolean | null
|
|
archivedAt: Date | null
|
|
}
|
|
|
|
export type RecipientSegmentCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
tenantId: number
|
|
name: number
|
|
entityType: number
|
|
filterDefinition: number
|
|
isStaticSnapshot: number
|
|
isDemoData: number
|
|
archivedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type RecipientSegmentMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
name?: true
|
|
entityType?: true
|
|
isStaticSnapshot?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
}
|
|
|
|
export type RecipientSegmentMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
name?: true
|
|
entityType?: true
|
|
isStaticSnapshot?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
}
|
|
|
|
export type RecipientSegmentCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
name?: true
|
|
entityType?: true
|
|
filterDefinition?: true
|
|
isStaticSnapshot?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type RecipientSegmentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which RecipientSegment to aggregate.
|
|
*/
|
|
where?: Prisma.RecipientSegmentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of RecipientSegments to fetch.
|
|
*/
|
|
orderBy?: Prisma.RecipientSegmentOrderByWithRelationInput | Prisma.RecipientSegmentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.RecipientSegmentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` RecipientSegments 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` RecipientSegments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned RecipientSegments
|
|
**/
|
|
_count?: true | RecipientSegmentCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: RecipientSegmentMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: RecipientSegmentMaxAggregateInputType
|
|
}
|
|
|
|
export type GetRecipientSegmentAggregateType<T extends RecipientSegmentAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateRecipientSegment]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateRecipientSegment[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateRecipientSegment[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type RecipientSegmentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.RecipientSegmentWhereInput
|
|
orderBy?: Prisma.RecipientSegmentOrderByWithAggregationInput | Prisma.RecipientSegmentOrderByWithAggregationInput[]
|
|
by: Prisma.RecipientSegmentScalarFieldEnum[] | Prisma.RecipientSegmentScalarFieldEnum
|
|
having?: Prisma.RecipientSegmentScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: RecipientSegmentCountAggregateInputType | true
|
|
_min?: RecipientSegmentMinAggregateInputType
|
|
_max?: RecipientSegmentMaxAggregateInputType
|
|
}
|
|
|
|
export type RecipientSegmentGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
name: string
|
|
entityType: string
|
|
filterDefinition: runtime.JsonValue
|
|
isStaticSnapshot: boolean
|
|
isDemoData: boolean
|
|
archivedAt: Date | null
|
|
_count: RecipientSegmentCountAggregateOutputType | null
|
|
_min: RecipientSegmentMinAggregateOutputType | null
|
|
_max: RecipientSegmentMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetRecipientSegmentGroupByPayload<T extends RecipientSegmentGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<RecipientSegmentGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof RecipientSegmentGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], RecipientSegmentGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], RecipientSegmentGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type RecipientSegmentWhereInput = {
|
|
AND?: Prisma.RecipientSegmentWhereInput | Prisma.RecipientSegmentWhereInput[]
|
|
OR?: Prisma.RecipientSegmentWhereInput[]
|
|
NOT?: Prisma.RecipientSegmentWhereInput | Prisma.RecipientSegmentWhereInput[]
|
|
id?: Prisma.StringFilter<"RecipientSegment"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"RecipientSegment"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"RecipientSegment"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"RecipientSegment"> | string
|
|
name?: Prisma.StringFilter<"RecipientSegment"> | string
|
|
entityType?: Prisma.StringFilter<"RecipientSegment"> | string
|
|
filterDefinition?: Prisma.JsonFilter<"RecipientSegment">
|
|
isStaticSnapshot?: Prisma.BoolFilter<"RecipientSegment"> | boolean
|
|
isDemoData?: Prisma.BoolFilter<"RecipientSegment"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"RecipientSegment"> | Date | string | null
|
|
snapshotMembers?: Prisma.SegmentSnapshotMemberListRelationFilter
|
|
campaigns?: Prisma.CampaignListRelationFilter
|
|
}
|
|
|
|
export type RecipientSegmentOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
entityType?: Prisma.SortOrder
|
|
filterDefinition?: Prisma.SortOrder
|
|
isStaticSnapshot?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
snapshotMembers?: Prisma.SegmentSnapshotMemberOrderByRelationAggregateInput
|
|
campaigns?: Prisma.CampaignOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type RecipientSegmentWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.RecipientSegmentWhereInput | Prisma.RecipientSegmentWhereInput[]
|
|
OR?: Prisma.RecipientSegmentWhereInput[]
|
|
NOT?: Prisma.RecipientSegmentWhereInput | Prisma.RecipientSegmentWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"RecipientSegment"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"RecipientSegment"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"RecipientSegment"> | string
|
|
name?: Prisma.StringFilter<"RecipientSegment"> | string
|
|
entityType?: Prisma.StringFilter<"RecipientSegment"> | string
|
|
filterDefinition?: Prisma.JsonFilter<"RecipientSegment">
|
|
isStaticSnapshot?: Prisma.BoolFilter<"RecipientSegment"> | boolean
|
|
isDemoData?: Prisma.BoolFilter<"RecipientSegment"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"RecipientSegment"> | Date | string | null
|
|
snapshotMembers?: Prisma.SegmentSnapshotMemberListRelationFilter
|
|
campaigns?: Prisma.CampaignListRelationFilter
|
|
}, "id">
|
|
|
|
export type RecipientSegmentOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
entityType?: Prisma.SortOrder
|
|
filterDefinition?: Prisma.SortOrder
|
|
isStaticSnapshot?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.RecipientSegmentCountOrderByAggregateInput
|
|
_max?: Prisma.RecipientSegmentMaxOrderByAggregateInput
|
|
_min?: Prisma.RecipientSegmentMinOrderByAggregateInput
|
|
}
|
|
|
|
export type RecipientSegmentScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.RecipientSegmentScalarWhereWithAggregatesInput | Prisma.RecipientSegmentScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.RecipientSegmentScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.RecipientSegmentScalarWhereWithAggregatesInput | Prisma.RecipientSegmentScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"RecipientSegment"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"RecipientSegment"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"RecipientSegment"> | Date | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"RecipientSegment"> | string
|
|
name?: Prisma.StringWithAggregatesFilter<"RecipientSegment"> | string
|
|
entityType?: Prisma.StringWithAggregatesFilter<"RecipientSegment"> | string
|
|
filterDefinition?: Prisma.JsonWithAggregatesFilter<"RecipientSegment">
|
|
isStaticSnapshot?: Prisma.BoolWithAggregatesFilter<"RecipientSegment"> | boolean
|
|
isDemoData?: Prisma.BoolWithAggregatesFilter<"RecipientSegment"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"RecipientSegment"> | Date | string | null
|
|
}
|
|
|
|
export type RecipientSegmentCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
name: string
|
|
entityType?: string
|
|
filterDefinition: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isStaticSnapshot?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
snapshotMembers?: Prisma.SegmentSnapshotMemberCreateNestedManyWithoutSegmentInput
|
|
campaigns?: Prisma.CampaignCreateNestedManyWithoutSegmentInput
|
|
}
|
|
|
|
export type RecipientSegmentUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
name: string
|
|
entityType?: string
|
|
filterDefinition: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isStaticSnapshot?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
snapshotMembers?: Prisma.SegmentSnapshotMemberUncheckedCreateNestedManyWithoutSegmentInput
|
|
campaigns?: Prisma.CampaignUncheckedCreateNestedManyWithoutSegmentInput
|
|
}
|
|
|
|
export type RecipientSegmentUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
entityType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
filterDefinition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isStaticSnapshot?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
snapshotMembers?: Prisma.SegmentSnapshotMemberUpdateManyWithoutSegmentNestedInput
|
|
campaigns?: Prisma.CampaignUpdateManyWithoutSegmentNestedInput
|
|
}
|
|
|
|
export type RecipientSegmentUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
entityType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
filterDefinition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isStaticSnapshot?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
snapshotMembers?: Prisma.SegmentSnapshotMemberUncheckedUpdateManyWithoutSegmentNestedInput
|
|
campaigns?: Prisma.CampaignUncheckedUpdateManyWithoutSegmentNestedInput
|
|
}
|
|
|
|
export type RecipientSegmentCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
name: string
|
|
entityType?: string
|
|
filterDefinition: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isStaticSnapshot?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type RecipientSegmentUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
entityType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
filterDefinition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isStaticSnapshot?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type RecipientSegmentUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
entityType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
filterDefinition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isStaticSnapshot?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type RecipientSegmentNullableScalarRelationFilter = {
|
|
is?: Prisma.RecipientSegmentWhereInput | null
|
|
isNot?: Prisma.RecipientSegmentWhereInput | null
|
|
}
|
|
|
|
export type RecipientSegmentCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
entityType?: Prisma.SortOrder
|
|
filterDefinition?: Prisma.SortOrder
|
|
isStaticSnapshot?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type RecipientSegmentMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
entityType?: Prisma.SortOrder
|
|
isStaticSnapshot?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type RecipientSegmentMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
entityType?: Prisma.SortOrder
|
|
isStaticSnapshot?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type RecipientSegmentScalarRelationFilter = {
|
|
is?: Prisma.RecipientSegmentWhereInput
|
|
isNot?: Prisma.RecipientSegmentWhereInput
|
|
}
|
|
|
|
export type RecipientSegmentCreateNestedOneWithoutCampaignsInput = {
|
|
create?: Prisma.XOR<Prisma.RecipientSegmentCreateWithoutCampaignsInput, Prisma.RecipientSegmentUncheckedCreateWithoutCampaignsInput>
|
|
connectOrCreate?: Prisma.RecipientSegmentCreateOrConnectWithoutCampaignsInput
|
|
connect?: Prisma.RecipientSegmentWhereUniqueInput
|
|
}
|
|
|
|
export type RecipientSegmentUpdateOneWithoutCampaignsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.RecipientSegmentCreateWithoutCampaignsInput, Prisma.RecipientSegmentUncheckedCreateWithoutCampaignsInput>
|
|
connectOrCreate?: Prisma.RecipientSegmentCreateOrConnectWithoutCampaignsInput
|
|
upsert?: Prisma.RecipientSegmentUpsertWithoutCampaignsInput
|
|
disconnect?: Prisma.RecipientSegmentWhereInput | boolean
|
|
delete?: Prisma.RecipientSegmentWhereInput | boolean
|
|
connect?: Prisma.RecipientSegmentWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.RecipientSegmentUpdateToOneWithWhereWithoutCampaignsInput, Prisma.RecipientSegmentUpdateWithoutCampaignsInput>, Prisma.RecipientSegmentUncheckedUpdateWithoutCampaignsInput>
|
|
}
|
|
|
|
export type RecipientSegmentCreateNestedOneWithoutSnapshotMembersInput = {
|
|
create?: Prisma.XOR<Prisma.RecipientSegmentCreateWithoutSnapshotMembersInput, Prisma.RecipientSegmentUncheckedCreateWithoutSnapshotMembersInput>
|
|
connectOrCreate?: Prisma.RecipientSegmentCreateOrConnectWithoutSnapshotMembersInput
|
|
connect?: Prisma.RecipientSegmentWhereUniqueInput
|
|
}
|
|
|
|
export type RecipientSegmentUpdateOneRequiredWithoutSnapshotMembersNestedInput = {
|
|
create?: Prisma.XOR<Prisma.RecipientSegmentCreateWithoutSnapshotMembersInput, Prisma.RecipientSegmentUncheckedCreateWithoutSnapshotMembersInput>
|
|
connectOrCreate?: Prisma.RecipientSegmentCreateOrConnectWithoutSnapshotMembersInput
|
|
upsert?: Prisma.RecipientSegmentUpsertWithoutSnapshotMembersInput
|
|
connect?: Prisma.RecipientSegmentWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.RecipientSegmentUpdateToOneWithWhereWithoutSnapshotMembersInput, Prisma.RecipientSegmentUpdateWithoutSnapshotMembersInput>, Prisma.RecipientSegmentUncheckedUpdateWithoutSnapshotMembersInput>
|
|
}
|
|
|
|
export type RecipientSegmentCreateWithoutCampaignsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
name: string
|
|
entityType?: string
|
|
filterDefinition: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isStaticSnapshot?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
snapshotMembers?: Prisma.SegmentSnapshotMemberCreateNestedManyWithoutSegmentInput
|
|
}
|
|
|
|
export type RecipientSegmentUncheckedCreateWithoutCampaignsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
name: string
|
|
entityType?: string
|
|
filterDefinition: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isStaticSnapshot?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
snapshotMembers?: Prisma.SegmentSnapshotMemberUncheckedCreateNestedManyWithoutSegmentInput
|
|
}
|
|
|
|
export type RecipientSegmentCreateOrConnectWithoutCampaignsInput = {
|
|
where: Prisma.RecipientSegmentWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.RecipientSegmentCreateWithoutCampaignsInput, Prisma.RecipientSegmentUncheckedCreateWithoutCampaignsInput>
|
|
}
|
|
|
|
export type RecipientSegmentUpsertWithoutCampaignsInput = {
|
|
update: Prisma.XOR<Prisma.RecipientSegmentUpdateWithoutCampaignsInput, Prisma.RecipientSegmentUncheckedUpdateWithoutCampaignsInput>
|
|
create: Prisma.XOR<Prisma.RecipientSegmentCreateWithoutCampaignsInput, Prisma.RecipientSegmentUncheckedCreateWithoutCampaignsInput>
|
|
where?: Prisma.RecipientSegmentWhereInput
|
|
}
|
|
|
|
export type RecipientSegmentUpdateToOneWithWhereWithoutCampaignsInput = {
|
|
where?: Prisma.RecipientSegmentWhereInput
|
|
data: Prisma.XOR<Prisma.RecipientSegmentUpdateWithoutCampaignsInput, Prisma.RecipientSegmentUncheckedUpdateWithoutCampaignsInput>
|
|
}
|
|
|
|
export type RecipientSegmentUpdateWithoutCampaignsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
entityType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
filterDefinition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isStaticSnapshot?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
snapshotMembers?: Prisma.SegmentSnapshotMemberUpdateManyWithoutSegmentNestedInput
|
|
}
|
|
|
|
export type RecipientSegmentUncheckedUpdateWithoutCampaignsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
entityType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
filterDefinition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isStaticSnapshot?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
snapshotMembers?: Prisma.SegmentSnapshotMemberUncheckedUpdateManyWithoutSegmentNestedInput
|
|
}
|
|
|
|
export type RecipientSegmentCreateWithoutSnapshotMembersInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
name: string
|
|
entityType?: string
|
|
filterDefinition: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isStaticSnapshot?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
campaigns?: Prisma.CampaignCreateNestedManyWithoutSegmentInput
|
|
}
|
|
|
|
export type RecipientSegmentUncheckedCreateWithoutSnapshotMembersInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
name: string
|
|
entityType?: string
|
|
filterDefinition: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isStaticSnapshot?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
campaigns?: Prisma.CampaignUncheckedCreateNestedManyWithoutSegmentInput
|
|
}
|
|
|
|
export type RecipientSegmentCreateOrConnectWithoutSnapshotMembersInput = {
|
|
where: Prisma.RecipientSegmentWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.RecipientSegmentCreateWithoutSnapshotMembersInput, Prisma.RecipientSegmentUncheckedCreateWithoutSnapshotMembersInput>
|
|
}
|
|
|
|
export type RecipientSegmentUpsertWithoutSnapshotMembersInput = {
|
|
update: Prisma.XOR<Prisma.RecipientSegmentUpdateWithoutSnapshotMembersInput, Prisma.RecipientSegmentUncheckedUpdateWithoutSnapshotMembersInput>
|
|
create: Prisma.XOR<Prisma.RecipientSegmentCreateWithoutSnapshotMembersInput, Prisma.RecipientSegmentUncheckedCreateWithoutSnapshotMembersInput>
|
|
where?: Prisma.RecipientSegmentWhereInput
|
|
}
|
|
|
|
export type RecipientSegmentUpdateToOneWithWhereWithoutSnapshotMembersInput = {
|
|
where?: Prisma.RecipientSegmentWhereInput
|
|
data: Prisma.XOR<Prisma.RecipientSegmentUpdateWithoutSnapshotMembersInput, Prisma.RecipientSegmentUncheckedUpdateWithoutSnapshotMembersInput>
|
|
}
|
|
|
|
export type RecipientSegmentUpdateWithoutSnapshotMembersInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
entityType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
filterDefinition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isStaticSnapshot?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
campaigns?: Prisma.CampaignUpdateManyWithoutSegmentNestedInput
|
|
}
|
|
|
|
export type RecipientSegmentUncheckedUpdateWithoutSnapshotMembersInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
entityType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
filterDefinition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isStaticSnapshot?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
campaigns?: Prisma.CampaignUncheckedUpdateManyWithoutSegmentNestedInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type RecipientSegmentCountOutputType
|
|
*/
|
|
|
|
export type RecipientSegmentCountOutputType = {
|
|
snapshotMembers: number
|
|
campaigns: number
|
|
}
|
|
|
|
export type RecipientSegmentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
snapshotMembers?: boolean | RecipientSegmentCountOutputTypeCountSnapshotMembersArgs
|
|
campaigns?: boolean | RecipientSegmentCountOutputTypeCountCampaignsArgs
|
|
}
|
|
|
|
/**
|
|
* RecipientSegmentCountOutputType without action
|
|
*/
|
|
export type RecipientSegmentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecipientSegmentCountOutputType
|
|
*/
|
|
select?: Prisma.RecipientSegmentCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* RecipientSegmentCountOutputType without action
|
|
*/
|
|
export type RecipientSegmentCountOutputTypeCountSnapshotMembersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.SegmentSnapshotMemberWhereInput
|
|
}
|
|
|
|
/**
|
|
* RecipientSegmentCountOutputType without action
|
|
*/
|
|
export type RecipientSegmentCountOutputTypeCountCampaignsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.CampaignWhereInput
|
|
}
|
|
|
|
|
|
export type RecipientSegmentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
name?: boolean
|
|
entityType?: boolean
|
|
filterDefinition?: boolean
|
|
isStaticSnapshot?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
snapshotMembers?: boolean | Prisma.RecipientSegment$snapshotMembersArgs<ExtArgs>
|
|
campaigns?: boolean | Prisma.RecipientSegment$campaignsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.RecipientSegmentCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["recipientSegment"]>
|
|
|
|
export type RecipientSegmentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
name?: boolean
|
|
entityType?: boolean
|
|
filterDefinition?: boolean
|
|
isStaticSnapshot?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}, ExtArgs["result"]["recipientSegment"]>
|
|
|
|
export type RecipientSegmentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
name?: boolean
|
|
entityType?: boolean
|
|
filterDefinition?: boolean
|
|
isStaticSnapshot?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}, ExtArgs["result"]["recipientSegment"]>
|
|
|
|
export type RecipientSegmentSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
name?: boolean
|
|
entityType?: boolean
|
|
filterDefinition?: boolean
|
|
isStaticSnapshot?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}
|
|
|
|
export type RecipientSegmentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "name" | "entityType" | "filterDefinition" | "isStaticSnapshot" | "isDemoData" | "archivedAt", ExtArgs["result"]["recipientSegment"]>
|
|
export type RecipientSegmentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
snapshotMembers?: boolean | Prisma.RecipientSegment$snapshotMembersArgs<ExtArgs>
|
|
campaigns?: boolean | Prisma.RecipientSegment$campaignsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.RecipientSegmentCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type RecipientSegmentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
export type RecipientSegmentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
|
|
export type $RecipientSegmentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "RecipientSegment"
|
|
objects: {
|
|
snapshotMembers: Prisma.$SegmentSnapshotMemberPayload<ExtArgs>[]
|
|
campaigns: Prisma.$CampaignPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
name: string
|
|
entityType: string
|
|
filterDefinition: runtime.JsonValue
|
|
isStaticSnapshot: boolean
|
|
isDemoData: boolean
|
|
archivedAt: Date | null
|
|
}, ExtArgs["result"]["recipientSegment"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type RecipientSegmentGetPayload<S extends boolean | null | undefined | RecipientSegmentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RecipientSegmentPayload, S>
|
|
|
|
export type RecipientSegmentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<RecipientSegmentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: RecipientSegmentCountAggregateInputType | true
|
|
}
|
|
|
|
export interface RecipientSegmentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['RecipientSegment'], meta: { name: 'RecipientSegment' } }
|
|
/**
|
|
* Find zero or one RecipientSegment that matches the filter.
|
|
* @param {RecipientSegmentFindUniqueArgs} args - Arguments to find a RecipientSegment
|
|
* @example
|
|
* // Get one RecipientSegment
|
|
* const recipientSegment = await prisma.recipientSegment.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends RecipientSegmentFindUniqueArgs>(args: Prisma.SelectSubset<T, RecipientSegmentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__RecipientSegmentClient<runtime.Types.Result.GetResult<Prisma.$RecipientSegmentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one RecipientSegment that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {RecipientSegmentFindUniqueOrThrowArgs} args - Arguments to find a RecipientSegment
|
|
* @example
|
|
* // Get one RecipientSegment
|
|
* const recipientSegment = await prisma.recipientSegment.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends RecipientSegmentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, RecipientSegmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__RecipientSegmentClient<runtime.Types.Result.GetResult<Prisma.$RecipientSegmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first RecipientSegment 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 {RecipientSegmentFindFirstArgs} args - Arguments to find a RecipientSegment
|
|
* @example
|
|
* // Get one RecipientSegment
|
|
* const recipientSegment = await prisma.recipientSegment.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends RecipientSegmentFindFirstArgs>(args?: Prisma.SelectSubset<T, RecipientSegmentFindFirstArgs<ExtArgs>>): Prisma.Prisma__RecipientSegmentClient<runtime.Types.Result.GetResult<Prisma.$RecipientSegmentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first RecipientSegment 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 {RecipientSegmentFindFirstOrThrowArgs} args - Arguments to find a RecipientSegment
|
|
* @example
|
|
* // Get one RecipientSegment
|
|
* const recipientSegment = await prisma.recipientSegment.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends RecipientSegmentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, RecipientSegmentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__RecipientSegmentClient<runtime.Types.Result.GetResult<Prisma.$RecipientSegmentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more RecipientSegments 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 {RecipientSegmentFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all RecipientSegments
|
|
* const recipientSegments = await prisma.recipientSegment.findMany()
|
|
*
|
|
* // Get first 10 RecipientSegments
|
|
* const recipientSegments = await prisma.recipientSegment.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const recipientSegmentWithIdOnly = await prisma.recipientSegment.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends RecipientSegmentFindManyArgs>(args?: Prisma.SelectSubset<T, RecipientSegmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RecipientSegmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a RecipientSegment.
|
|
* @param {RecipientSegmentCreateArgs} args - Arguments to create a RecipientSegment.
|
|
* @example
|
|
* // Create one RecipientSegment
|
|
* const RecipientSegment = await prisma.recipientSegment.create({
|
|
* data: {
|
|
* // ... data to create a RecipientSegment
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends RecipientSegmentCreateArgs>(args: Prisma.SelectSubset<T, RecipientSegmentCreateArgs<ExtArgs>>): Prisma.Prisma__RecipientSegmentClient<runtime.Types.Result.GetResult<Prisma.$RecipientSegmentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many RecipientSegments.
|
|
* @param {RecipientSegmentCreateManyArgs} args - Arguments to create many RecipientSegments.
|
|
* @example
|
|
* // Create many RecipientSegments
|
|
* const recipientSegment = await prisma.recipientSegment.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends RecipientSegmentCreateManyArgs>(args?: Prisma.SelectSubset<T, RecipientSegmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many RecipientSegments and returns the data saved in the database.
|
|
* @param {RecipientSegmentCreateManyAndReturnArgs} args - Arguments to create many RecipientSegments.
|
|
* @example
|
|
* // Create many RecipientSegments
|
|
* const recipientSegment = await prisma.recipientSegment.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many RecipientSegments and only return the `id`
|
|
* const recipientSegmentWithIdOnly = await prisma.recipientSegment.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 RecipientSegmentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RecipientSegmentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RecipientSegmentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a RecipientSegment.
|
|
* @param {RecipientSegmentDeleteArgs} args - Arguments to delete one RecipientSegment.
|
|
* @example
|
|
* // Delete one RecipientSegment
|
|
* const RecipientSegment = await prisma.recipientSegment.delete({
|
|
* where: {
|
|
* // ... filter to delete one RecipientSegment
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends RecipientSegmentDeleteArgs>(args: Prisma.SelectSubset<T, RecipientSegmentDeleteArgs<ExtArgs>>): Prisma.Prisma__RecipientSegmentClient<runtime.Types.Result.GetResult<Prisma.$RecipientSegmentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one RecipientSegment.
|
|
* @param {RecipientSegmentUpdateArgs} args - Arguments to update one RecipientSegment.
|
|
* @example
|
|
* // Update one RecipientSegment
|
|
* const recipientSegment = await prisma.recipientSegment.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends RecipientSegmentUpdateArgs>(args: Prisma.SelectSubset<T, RecipientSegmentUpdateArgs<ExtArgs>>): Prisma.Prisma__RecipientSegmentClient<runtime.Types.Result.GetResult<Prisma.$RecipientSegmentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more RecipientSegments.
|
|
* @param {RecipientSegmentDeleteManyArgs} args - Arguments to filter RecipientSegments to delete.
|
|
* @example
|
|
* // Delete a few RecipientSegments
|
|
* const { count } = await prisma.recipientSegment.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends RecipientSegmentDeleteManyArgs>(args?: Prisma.SelectSubset<T, RecipientSegmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more RecipientSegments.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RecipientSegmentUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many RecipientSegments
|
|
* const recipientSegment = await prisma.recipientSegment.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends RecipientSegmentUpdateManyArgs>(args: Prisma.SelectSubset<T, RecipientSegmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more RecipientSegments and returns the data updated in the database.
|
|
* @param {RecipientSegmentUpdateManyAndReturnArgs} args - Arguments to update many RecipientSegments.
|
|
* @example
|
|
* // Update many RecipientSegments
|
|
* const recipientSegment = await prisma.recipientSegment.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more RecipientSegments and only return the `id`
|
|
* const recipientSegmentWithIdOnly = await prisma.recipientSegment.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 RecipientSegmentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RecipientSegmentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RecipientSegmentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one RecipientSegment.
|
|
* @param {RecipientSegmentUpsertArgs} args - Arguments to update or create a RecipientSegment.
|
|
* @example
|
|
* // Update or create a RecipientSegment
|
|
* const recipientSegment = await prisma.recipientSegment.upsert({
|
|
* create: {
|
|
* // ... data to create a RecipientSegment
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the RecipientSegment we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends RecipientSegmentUpsertArgs>(args: Prisma.SelectSubset<T, RecipientSegmentUpsertArgs<ExtArgs>>): Prisma.Prisma__RecipientSegmentClient<runtime.Types.Result.GetResult<Prisma.$RecipientSegmentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of RecipientSegments.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RecipientSegmentCountArgs} args - Arguments to filter RecipientSegments to count.
|
|
* @example
|
|
* // Count the number of RecipientSegments
|
|
* const count = await prisma.recipientSegment.count({
|
|
* where: {
|
|
* // ... the filter for the RecipientSegments we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends RecipientSegmentCountArgs>(
|
|
args?: Prisma.Subset<T, RecipientSegmentCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], RecipientSegmentCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a RecipientSegment.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RecipientSegmentAggregateArgs} 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 RecipientSegmentAggregateArgs>(args: Prisma.Subset<T, RecipientSegmentAggregateArgs>): Prisma.PrismaPromise<GetRecipientSegmentAggregateType<T>>
|
|
|
|
/**
|
|
* Group by RecipientSegment.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {RecipientSegmentGroupByArgs} 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 RecipientSegmentGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: RecipientSegmentGroupByArgs['orderBy'] }
|
|
: { orderBy?: RecipientSegmentGroupByArgs['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, RecipientSegmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRecipientSegmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the RecipientSegment model
|
|
*/
|
|
readonly fields: RecipientSegmentFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for RecipientSegment.
|
|
* 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__RecipientSegmentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
snapshotMembers<T extends Prisma.RecipientSegment$snapshotMembersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.RecipientSegment$snapshotMembersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SegmentSnapshotMemberPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
campaigns<T extends Prisma.RecipientSegment$campaignsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.RecipientSegment$campaignsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CampaignPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* 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 RecipientSegment model
|
|
*/
|
|
export interface RecipientSegmentFieldRefs {
|
|
readonly id: Prisma.FieldRef<"RecipientSegment", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"RecipientSegment", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"RecipientSegment", 'DateTime'>
|
|
readonly tenantId: Prisma.FieldRef<"RecipientSegment", 'String'>
|
|
readonly name: Prisma.FieldRef<"RecipientSegment", 'String'>
|
|
readonly entityType: Prisma.FieldRef<"RecipientSegment", 'String'>
|
|
readonly filterDefinition: Prisma.FieldRef<"RecipientSegment", 'Json'>
|
|
readonly isStaticSnapshot: Prisma.FieldRef<"RecipientSegment", 'Boolean'>
|
|
readonly isDemoData: Prisma.FieldRef<"RecipientSegment", 'Boolean'>
|
|
readonly archivedAt: Prisma.FieldRef<"RecipientSegment", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* RecipientSegment findUnique
|
|
*/
|
|
export type RecipientSegmentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecipientSegment
|
|
*/
|
|
select?: Prisma.RecipientSegmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecipientSegment
|
|
*/
|
|
omit?: Prisma.RecipientSegmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecipientSegmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which RecipientSegment to fetch.
|
|
*/
|
|
where: Prisma.RecipientSegmentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* RecipientSegment findUniqueOrThrow
|
|
*/
|
|
export type RecipientSegmentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecipientSegment
|
|
*/
|
|
select?: Prisma.RecipientSegmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecipientSegment
|
|
*/
|
|
omit?: Prisma.RecipientSegmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecipientSegmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which RecipientSegment to fetch.
|
|
*/
|
|
where: Prisma.RecipientSegmentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* RecipientSegment findFirst
|
|
*/
|
|
export type RecipientSegmentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecipientSegment
|
|
*/
|
|
select?: Prisma.RecipientSegmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecipientSegment
|
|
*/
|
|
omit?: Prisma.RecipientSegmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecipientSegmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which RecipientSegment to fetch.
|
|
*/
|
|
where?: Prisma.RecipientSegmentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of RecipientSegments to fetch.
|
|
*/
|
|
orderBy?: Prisma.RecipientSegmentOrderByWithRelationInput | Prisma.RecipientSegmentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for RecipientSegments.
|
|
*/
|
|
cursor?: Prisma.RecipientSegmentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` RecipientSegments 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` RecipientSegments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of RecipientSegments.
|
|
*/
|
|
distinct?: Prisma.RecipientSegmentScalarFieldEnum | Prisma.RecipientSegmentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* RecipientSegment findFirstOrThrow
|
|
*/
|
|
export type RecipientSegmentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecipientSegment
|
|
*/
|
|
select?: Prisma.RecipientSegmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecipientSegment
|
|
*/
|
|
omit?: Prisma.RecipientSegmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecipientSegmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which RecipientSegment to fetch.
|
|
*/
|
|
where?: Prisma.RecipientSegmentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of RecipientSegments to fetch.
|
|
*/
|
|
orderBy?: Prisma.RecipientSegmentOrderByWithRelationInput | Prisma.RecipientSegmentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for RecipientSegments.
|
|
*/
|
|
cursor?: Prisma.RecipientSegmentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` RecipientSegments 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` RecipientSegments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of RecipientSegments.
|
|
*/
|
|
distinct?: Prisma.RecipientSegmentScalarFieldEnum | Prisma.RecipientSegmentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* RecipientSegment findMany
|
|
*/
|
|
export type RecipientSegmentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecipientSegment
|
|
*/
|
|
select?: Prisma.RecipientSegmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecipientSegment
|
|
*/
|
|
omit?: Prisma.RecipientSegmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecipientSegmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which RecipientSegments to fetch.
|
|
*/
|
|
where?: Prisma.RecipientSegmentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of RecipientSegments to fetch.
|
|
*/
|
|
orderBy?: Prisma.RecipientSegmentOrderByWithRelationInput | Prisma.RecipientSegmentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing RecipientSegments.
|
|
*/
|
|
cursor?: Prisma.RecipientSegmentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` RecipientSegments 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` RecipientSegments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of RecipientSegments.
|
|
*/
|
|
distinct?: Prisma.RecipientSegmentScalarFieldEnum | Prisma.RecipientSegmentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* RecipientSegment create
|
|
*/
|
|
export type RecipientSegmentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecipientSegment
|
|
*/
|
|
select?: Prisma.RecipientSegmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecipientSegment
|
|
*/
|
|
omit?: Prisma.RecipientSegmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecipientSegmentInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a RecipientSegment.
|
|
*/
|
|
data: Prisma.XOR<Prisma.RecipientSegmentCreateInput, Prisma.RecipientSegmentUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* RecipientSegment createMany
|
|
*/
|
|
export type RecipientSegmentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many RecipientSegments.
|
|
*/
|
|
data: Prisma.RecipientSegmentCreateManyInput | Prisma.RecipientSegmentCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* RecipientSegment createManyAndReturn
|
|
*/
|
|
export type RecipientSegmentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecipientSegment
|
|
*/
|
|
select?: Prisma.RecipientSegmentSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecipientSegment
|
|
*/
|
|
omit?: Prisma.RecipientSegmentOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many RecipientSegments.
|
|
*/
|
|
data: Prisma.RecipientSegmentCreateManyInput | Prisma.RecipientSegmentCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* RecipientSegment update
|
|
*/
|
|
export type RecipientSegmentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecipientSegment
|
|
*/
|
|
select?: Prisma.RecipientSegmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecipientSegment
|
|
*/
|
|
omit?: Prisma.RecipientSegmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecipientSegmentInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a RecipientSegment.
|
|
*/
|
|
data: Prisma.XOR<Prisma.RecipientSegmentUpdateInput, Prisma.RecipientSegmentUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which RecipientSegment to update.
|
|
*/
|
|
where: Prisma.RecipientSegmentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* RecipientSegment updateMany
|
|
*/
|
|
export type RecipientSegmentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update RecipientSegments.
|
|
*/
|
|
data: Prisma.XOR<Prisma.RecipientSegmentUpdateManyMutationInput, Prisma.RecipientSegmentUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which RecipientSegments to update
|
|
*/
|
|
where?: Prisma.RecipientSegmentWhereInput
|
|
/**
|
|
* Limit how many RecipientSegments to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* RecipientSegment updateManyAndReturn
|
|
*/
|
|
export type RecipientSegmentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecipientSegment
|
|
*/
|
|
select?: Prisma.RecipientSegmentSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecipientSegment
|
|
*/
|
|
omit?: Prisma.RecipientSegmentOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update RecipientSegments.
|
|
*/
|
|
data: Prisma.XOR<Prisma.RecipientSegmentUpdateManyMutationInput, Prisma.RecipientSegmentUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which RecipientSegments to update
|
|
*/
|
|
where?: Prisma.RecipientSegmentWhereInput
|
|
/**
|
|
* Limit how many RecipientSegments to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* RecipientSegment upsert
|
|
*/
|
|
export type RecipientSegmentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecipientSegment
|
|
*/
|
|
select?: Prisma.RecipientSegmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecipientSegment
|
|
*/
|
|
omit?: Prisma.RecipientSegmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecipientSegmentInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the RecipientSegment to update in case it exists.
|
|
*/
|
|
where: Prisma.RecipientSegmentWhereUniqueInput
|
|
/**
|
|
* In case the RecipientSegment found by the `where` argument doesn't exist, create a new RecipientSegment with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.RecipientSegmentCreateInput, Prisma.RecipientSegmentUncheckedCreateInput>
|
|
/**
|
|
* In case the RecipientSegment was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.RecipientSegmentUpdateInput, Prisma.RecipientSegmentUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* RecipientSegment delete
|
|
*/
|
|
export type RecipientSegmentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecipientSegment
|
|
*/
|
|
select?: Prisma.RecipientSegmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecipientSegment
|
|
*/
|
|
omit?: Prisma.RecipientSegmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecipientSegmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which RecipientSegment to delete.
|
|
*/
|
|
where: Prisma.RecipientSegmentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* RecipientSegment deleteMany
|
|
*/
|
|
export type RecipientSegmentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which RecipientSegments to delete
|
|
*/
|
|
where?: Prisma.RecipientSegmentWhereInput
|
|
/**
|
|
* Limit how many RecipientSegments to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* RecipientSegment.snapshotMembers
|
|
*/
|
|
export type RecipientSegment$snapshotMembersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SegmentSnapshotMember
|
|
*/
|
|
select?: Prisma.SegmentSnapshotMemberSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SegmentSnapshotMember
|
|
*/
|
|
omit?: Prisma.SegmentSnapshotMemberOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SegmentSnapshotMemberInclude<ExtArgs> | null
|
|
where?: Prisma.SegmentSnapshotMemberWhereInput
|
|
orderBy?: Prisma.SegmentSnapshotMemberOrderByWithRelationInput | Prisma.SegmentSnapshotMemberOrderByWithRelationInput[]
|
|
cursor?: Prisma.SegmentSnapshotMemberWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.SegmentSnapshotMemberScalarFieldEnum | Prisma.SegmentSnapshotMemberScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* RecipientSegment.campaigns
|
|
*/
|
|
export type RecipientSegment$campaignsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Campaign
|
|
*/
|
|
select?: Prisma.CampaignSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Campaign
|
|
*/
|
|
omit?: Prisma.CampaignOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CampaignInclude<ExtArgs> | null
|
|
where?: Prisma.CampaignWhereInput
|
|
orderBy?: Prisma.CampaignOrderByWithRelationInput | Prisma.CampaignOrderByWithRelationInput[]
|
|
cursor?: Prisma.CampaignWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.CampaignScalarFieldEnum | Prisma.CampaignScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* RecipientSegment without action
|
|
*/
|
|
export type RecipientSegmentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the RecipientSegment
|
|
*/
|
|
select?: Prisma.RecipientSegmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the RecipientSegment
|
|
*/
|
|
omit?: Prisma.RecipientSegmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.RecipientSegmentInclude<ExtArgs> | null
|
|
}
|