/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateRecipientSegment]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type RecipientSegmentGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof RecipientSegmentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 connectOrCreate?: Prisma.RecipientSegmentCreateOrConnectWithoutCampaignsInput connect?: Prisma.RecipientSegmentWhereUniqueInput } export type RecipientSegmentUpdateOneWithoutCampaignsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.RecipientSegmentCreateOrConnectWithoutCampaignsInput upsert?: Prisma.RecipientSegmentUpsertWithoutCampaignsInput disconnect?: Prisma.RecipientSegmentWhereInput | boolean delete?: Prisma.RecipientSegmentWhereInput | boolean connect?: Prisma.RecipientSegmentWhereUniqueInput update?: Prisma.XOR, Prisma.RecipientSegmentUncheckedUpdateWithoutCampaignsInput> } export type RecipientSegmentCreateNestedOneWithoutSnapshotMembersInput = { create?: Prisma.XOR connectOrCreate?: Prisma.RecipientSegmentCreateOrConnectWithoutSnapshotMembersInput connect?: Prisma.RecipientSegmentWhereUniqueInput } export type RecipientSegmentUpdateOneRequiredWithoutSnapshotMembersNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.RecipientSegmentCreateOrConnectWithoutSnapshotMembersInput upsert?: Prisma.RecipientSegmentUpsertWithoutSnapshotMembersInput connect?: Prisma.RecipientSegmentWhereUniqueInput update?: Prisma.XOR, 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 } export type RecipientSegmentUpsertWithoutCampaignsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.RecipientSegmentWhereInput } export type RecipientSegmentUpdateToOneWithWhereWithoutCampaignsInput = { where?: Prisma.RecipientSegmentWhereInput data: Prisma.XOR } 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 } export type RecipientSegmentUpsertWithoutSnapshotMembersInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.RecipientSegmentWhereInput } export type RecipientSegmentUpdateToOneWithWhereWithoutSnapshotMembersInput = { where?: Prisma.RecipientSegmentWhereInput data: Prisma.XOR } 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 = { snapshotMembers?: boolean | RecipientSegmentCountOutputTypeCountSnapshotMembersArgs campaigns?: boolean | RecipientSegmentCountOutputTypeCountCampaignsArgs } /** * RecipientSegmentCountOutputType without action */ export type RecipientSegmentCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the RecipientSegmentCountOutputType */ select?: Prisma.RecipientSegmentCountOutputTypeSelect | null } /** * RecipientSegmentCountOutputType without action */ export type RecipientSegmentCountOutputTypeCountSnapshotMembersArgs = { where?: Prisma.SegmentSnapshotMemberWhereInput } /** * RecipientSegmentCountOutputType without action */ export type RecipientSegmentCountOutputTypeCountCampaignsArgs = { where?: Prisma.CampaignWhereInput } export type RecipientSegmentSelect = 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 campaigns?: boolean | Prisma.RecipientSegment$campaignsArgs _count?: boolean | Prisma.RecipientSegmentCountOutputTypeDefaultArgs }, ExtArgs["result"]["recipientSegment"]> export type RecipientSegmentSelectCreateManyAndReturn = 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 = 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 = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "name" | "entityType" | "filterDefinition" | "isStaticSnapshot" | "isDemoData" | "archivedAt", ExtArgs["result"]["recipientSegment"]> export type RecipientSegmentInclude = { snapshotMembers?: boolean | Prisma.RecipientSegment$snapshotMembersArgs campaigns?: boolean | Prisma.RecipientSegment$campaignsArgs _count?: boolean | Prisma.RecipientSegmentCountOutputTypeDefaultArgs } export type RecipientSegmentIncludeCreateManyAndReturn = {} export type RecipientSegmentIncludeUpdateManyAndReturn = {} export type $RecipientSegmentPayload = { name: "RecipientSegment" objects: { snapshotMembers: Prisma.$SegmentSnapshotMemberPayload[] campaigns: Prisma.$CampaignPayload[] } 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 = runtime.Types.Result.GetResult export type RecipientSegmentCountArgs = Omit & { select?: RecipientSegmentCountAggregateInputType | true } export interface RecipientSegmentDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__RecipientSegmentClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__RecipientSegmentClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__RecipientSegmentClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__RecipientSegmentClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__RecipientSegmentClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__RecipientSegmentClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__RecipientSegmentClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__RecipientSegmentClient, 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( 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 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: RecipientSegmentGroupByArgs['orderBy'] } : { orderBy?: RecipientSegmentGroupByArgs['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 ? GetRecipientSegmentGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" snapshotMembers = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> campaigns = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, 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(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 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 = { /** * Select specific fields to fetch from the RecipientSegment */ select?: Prisma.RecipientSegmentSelect | null /** * Omit specific fields from the RecipientSegment */ omit?: Prisma.RecipientSegmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RecipientSegmentInclude | null /** * Filter, which RecipientSegment to fetch. */ where: Prisma.RecipientSegmentWhereUniqueInput } /** * RecipientSegment findUniqueOrThrow */ export type RecipientSegmentFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the RecipientSegment */ select?: Prisma.RecipientSegmentSelect | null /** * Omit specific fields from the RecipientSegment */ omit?: Prisma.RecipientSegmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RecipientSegmentInclude | null /** * Filter, which RecipientSegment to fetch. */ where: Prisma.RecipientSegmentWhereUniqueInput } /** * RecipientSegment findFirst */ export type RecipientSegmentFindFirstArgs = { /** * Select specific fields to fetch from the RecipientSegment */ select?: Prisma.RecipientSegmentSelect | null /** * Omit specific fields from the RecipientSegment */ omit?: Prisma.RecipientSegmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RecipientSegmentInclude | 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 = { /** * Select specific fields to fetch from the RecipientSegment */ select?: Prisma.RecipientSegmentSelect | null /** * Omit specific fields from the RecipientSegment */ omit?: Prisma.RecipientSegmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RecipientSegmentInclude | 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 = { /** * Select specific fields to fetch from the RecipientSegment */ select?: Prisma.RecipientSegmentSelect | null /** * Omit specific fields from the RecipientSegment */ omit?: Prisma.RecipientSegmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RecipientSegmentInclude | 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 = { /** * Select specific fields to fetch from the RecipientSegment */ select?: Prisma.RecipientSegmentSelect | null /** * Omit specific fields from the RecipientSegment */ omit?: Prisma.RecipientSegmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RecipientSegmentInclude | null /** * The data needed to create a RecipientSegment. */ data: Prisma.XOR } /** * RecipientSegment createMany */ export type RecipientSegmentCreateManyArgs = { /** * The data used to create many RecipientSegments. */ data: Prisma.RecipientSegmentCreateManyInput | Prisma.RecipientSegmentCreateManyInput[] skipDuplicates?: boolean } /** * RecipientSegment createManyAndReturn */ export type RecipientSegmentCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the RecipientSegment */ select?: Prisma.RecipientSegmentSelectCreateManyAndReturn | null /** * Omit specific fields from the RecipientSegment */ omit?: Prisma.RecipientSegmentOmit | null /** * The data used to create many RecipientSegments. */ data: Prisma.RecipientSegmentCreateManyInput | Prisma.RecipientSegmentCreateManyInput[] skipDuplicates?: boolean } /** * RecipientSegment update */ export type RecipientSegmentUpdateArgs = { /** * Select specific fields to fetch from the RecipientSegment */ select?: Prisma.RecipientSegmentSelect | null /** * Omit specific fields from the RecipientSegment */ omit?: Prisma.RecipientSegmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RecipientSegmentInclude | null /** * The data needed to update a RecipientSegment. */ data: Prisma.XOR /** * Choose, which RecipientSegment to update. */ where: Prisma.RecipientSegmentWhereUniqueInput } /** * RecipientSegment updateMany */ export type RecipientSegmentUpdateManyArgs = { /** * The data used to update RecipientSegments. */ data: Prisma.XOR /** * Filter which RecipientSegments to update */ where?: Prisma.RecipientSegmentWhereInput /** * Limit how many RecipientSegments to update. */ limit?: number } /** * RecipientSegment updateManyAndReturn */ export type RecipientSegmentUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the RecipientSegment */ select?: Prisma.RecipientSegmentSelectUpdateManyAndReturn | null /** * Omit specific fields from the RecipientSegment */ omit?: Prisma.RecipientSegmentOmit | null /** * The data used to update RecipientSegments. */ data: Prisma.XOR /** * Filter which RecipientSegments to update */ where?: Prisma.RecipientSegmentWhereInput /** * Limit how many RecipientSegments to update. */ limit?: number } /** * RecipientSegment upsert */ export type RecipientSegmentUpsertArgs = { /** * Select specific fields to fetch from the RecipientSegment */ select?: Prisma.RecipientSegmentSelect | null /** * Omit specific fields from the RecipientSegment */ omit?: Prisma.RecipientSegmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RecipientSegmentInclude | 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 /** * In case the RecipientSegment was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * RecipientSegment delete */ export type RecipientSegmentDeleteArgs = { /** * Select specific fields to fetch from the RecipientSegment */ select?: Prisma.RecipientSegmentSelect | null /** * Omit specific fields from the RecipientSegment */ omit?: Prisma.RecipientSegmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RecipientSegmentInclude | null /** * Filter which RecipientSegment to delete. */ where: Prisma.RecipientSegmentWhereUniqueInput } /** * RecipientSegment deleteMany */ export type RecipientSegmentDeleteManyArgs = { /** * Filter which RecipientSegments to delete */ where?: Prisma.RecipientSegmentWhereInput /** * Limit how many RecipientSegments to delete. */ limit?: number } /** * RecipientSegment.snapshotMembers */ export type RecipientSegment$snapshotMembersArgs = { /** * Select specific fields to fetch from the SegmentSnapshotMember */ select?: Prisma.SegmentSnapshotMemberSelect | null /** * Omit specific fields from the SegmentSnapshotMember */ omit?: Prisma.SegmentSnapshotMemberOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SegmentSnapshotMemberInclude | 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 = { /** * Select specific fields to fetch from the Campaign */ select?: Prisma.CampaignSelect | null /** * Omit specific fields from the Campaign */ omit?: Prisma.CampaignOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CampaignInclude | 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 = { /** * Select specific fields to fetch from the RecipientSegment */ select?: Prisma.RecipientSegmentSelect | null /** * Omit specific fields from the RecipientSegment */ omit?: Prisma.RecipientSegmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RecipientSegmentInclude | null }