/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `AutomationExecution` 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 AutomationExecution * */ export type AutomationExecutionModel = runtime.Types.Result.DefaultSelection export type AggregateAutomationExecution = { _count: AutomationExecutionCountAggregateOutputType | null _avg: AutomationExecutionAvgAggregateOutputType | null _sum: AutomationExecutionSumAggregateOutputType | null _min: AutomationExecutionMinAggregateOutputType | null _max: AutomationExecutionMaxAggregateOutputType | null } export type AutomationExecutionAvgAggregateOutputType = { durationMs: number | null attempt: number | null } export type AutomationExecutionSumAggregateOutputType = { durationMs: number | null attempt: number | null } export type AutomationExecutionMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null ruleId: string | null triggerKey: string | null status: $Enums.AutomationExecutionStatus | null dryRun: boolean | null idempotencyKey: string | null reverseWindowExpiresAt: Date | null resumeFromStepId: string | null summaryText: string | null errorText: string | null queuedAt: Date | null startedAt: Date | null endedAt: Date | null durationMs: number | null attempt: number | null nextRetryAt: Date | null createdByUserId: string | null isDemoData: boolean | null } export type AutomationExecutionMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null ruleId: string | null triggerKey: string | null status: $Enums.AutomationExecutionStatus | null dryRun: boolean | null idempotencyKey: string | null reverseWindowExpiresAt: Date | null resumeFromStepId: string | null summaryText: string | null errorText: string | null queuedAt: Date | null startedAt: Date | null endedAt: Date | null durationMs: number | null attempt: number | null nextRetryAt: Date | null createdByUserId: string | null isDemoData: boolean | null } export type AutomationExecutionCountAggregateOutputType = { id: number createdAt: number updatedAt: number tenantId: number ruleId: number triggerKey: number triggerPayload: number status: number dryRun: number idempotencyKey: number reverseWindowExpiresAt: number resumeFromStepId: number summaryText: number errorText: number queuedAt: number startedAt: number endedAt: number durationMs: number attempt: number nextRetryAt: number createdByUserId: number isDemoData: number _all: number } export type AutomationExecutionAvgAggregateInputType = { durationMs?: true attempt?: true } export type AutomationExecutionSumAggregateInputType = { durationMs?: true attempt?: true } export type AutomationExecutionMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true ruleId?: true triggerKey?: true status?: true dryRun?: true idempotencyKey?: true reverseWindowExpiresAt?: true resumeFromStepId?: true summaryText?: true errorText?: true queuedAt?: true startedAt?: true endedAt?: true durationMs?: true attempt?: true nextRetryAt?: true createdByUserId?: true isDemoData?: true } export type AutomationExecutionMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true ruleId?: true triggerKey?: true status?: true dryRun?: true idempotencyKey?: true reverseWindowExpiresAt?: true resumeFromStepId?: true summaryText?: true errorText?: true queuedAt?: true startedAt?: true endedAt?: true durationMs?: true attempt?: true nextRetryAt?: true createdByUserId?: true isDemoData?: true } export type AutomationExecutionCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true ruleId?: true triggerKey?: true triggerPayload?: true status?: true dryRun?: true idempotencyKey?: true reverseWindowExpiresAt?: true resumeFromStepId?: true summaryText?: true errorText?: true queuedAt?: true startedAt?: true endedAt?: true durationMs?: true attempt?: true nextRetryAt?: true createdByUserId?: true isDemoData?: true _all?: true } export type AutomationExecutionAggregateArgs = { /** * Filter which AutomationExecution to aggregate. */ where?: Prisma.AutomationExecutionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AutomationExecutions to fetch. */ orderBy?: Prisma.AutomationExecutionOrderByWithRelationInput | Prisma.AutomationExecutionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AutomationExecutionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AutomationExecutions 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` AutomationExecutions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AutomationExecutions **/ _count?: true | AutomationExecutionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AutomationExecutionAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AutomationExecutionSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AutomationExecutionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AutomationExecutionMaxAggregateInputType } export type GetAutomationExecutionAggregateType = { [P in keyof T & keyof AggregateAutomationExecution]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AutomationExecutionGroupByArgs = { where?: Prisma.AutomationExecutionWhereInput orderBy?: Prisma.AutomationExecutionOrderByWithAggregationInput | Prisma.AutomationExecutionOrderByWithAggregationInput[] by: Prisma.AutomationExecutionScalarFieldEnum[] | Prisma.AutomationExecutionScalarFieldEnum having?: Prisma.AutomationExecutionScalarWhereWithAggregatesInput take?: number skip?: number _count?: AutomationExecutionCountAggregateInputType | true _avg?: AutomationExecutionAvgAggregateInputType _sum?: AutomationExecutionSumAggregateInputType _min?: AutomationExecutionMinAggregateInputType _max?: AutomationExecutionMaxAggregateInputType } export type AutomationExecutionGroupByOutputType = { id: string createdAt: Date updatedAt: Date tenantId: string ruleId: string triggerKey: string triggerPayload: runtime.JsonValue status: $Enums.AutomationExecutionStatus dryRun: boolean idempotencyKey: string | null reverseWindowExpiresAt: Date | null resumeFromStepId: string | null summaryText: string errorText: string | null queuedAt: Date startedAt: Date | null endedAt: Date | null durationMs: number | null attempt: number nextRetryAt: Date | null createdByUserId: string | null isDemoData: boolean _count: AutomationExecutionCountAggregateOutputType | null _avg: AutomationExecutionAvgAggregateOutputType | null _sum: AutomationExecutionSumAggregateOutputType | null _min: AutomationExecutionMinAggregateOutputType | null _max: AutomationExecutionMaxAggregateOutputType | null } export type GetAutomationExecutionGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AutomationExecutionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AutomationExecutionWhereInput = { AND?: Prisma.AutomationExecutionWhereInput | Prisma.AutomationExecutionWhereInput[] OR?: Prisma.AutomationExecutionWhereInput[] NOT?: Prisma.AutomationExecutionWhereInput | Prisma.AutomationExecutionWhereInput[] id?: Prisma.StringFilter<"AutomationExecution"> | string createdAt?: Prisma.DateTimeFilter<"AutomationExecution"> | Date | string updatedAt?: Prisma.DateTimeFilter<"AutomationExecution"> | Date | string tenantId?: Prisma.StringFilter<"AutomationExecution"> | string ruleId?: Prisma.StringFilter<"AutomationExecution"> | string triggerKey?: Prisma.StringFilter<"AutomationExecution"> | string triggerPayload?: Prisma.JsonFilter<"AutomationExecution"> status?: Prisma.EnumAutomationExecutionStatusFilter<"AutomationExecution"> | $Enums.AutomationExecutionStatus dryRun?: Prisma.BoolFilter<"AutomationExecution"> | boolean idempotencyKey?: Prisma.StringNullableFilter<"AutomationExecution"> | string | null reverseWindowExpiresAt?: Prisma.DateTimeNullableFilter<"AutomationExecution"> | Date | string | null resumeFromStepId?: Prisma.StringNullableFilter<"AutomationExecution"> | string | null summaryText?: Prisma.StringFilter<"AutomationExecution"> | string errorText?: Prisma.StringNullableFilter<"AutomationExecution"> | string | null queuedAt?: Prisma.DateTimeFilter<"AutomationExecution"> | Date | string startedAt?: Prisma.DateTimeNullableFilter<"AutomationExecution"> | Date | string | null endedAt?: Prisma.DateTimeNullableFilter<"AutomationExecution"> | Date | string | null durationMs?: Prisma.IntNullableFilter<"AutomationExecution"> | number | null attempt?: Prisma.IntFilter<"AutomationExecution"> | number nextRetryAt?: Prisma.DateTimeNullableFilter<"AutomationExecution"> | Date | string | null createdByUserId?: Prisma.StringNullableFilter<"AutomationExecution"> | string | null isDemoData?: Prisma.BoolFilter<"AutomationExecution"> | boolean rule?: Prisma.XOR stepExecutions?: Prisma.AutomationStepExecutionListRelationFilter } export type AutomationExecutionOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder ruleId?: Prisma.SortOrder triggerKey?: Prisma.SortOrder triggerPayload?: Prisma.SortOrder status?: Prisma.SortOrder dryRun?: Prisma.SortOrder idempotencyKey?: Prisma.SortOrderInput | Prisma.SortOrder reverseWindowExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder resumeFromStepId?: Prisma.SortOrderInput | Prisma.SortOrder summaryText?: Prisma.SortOrder errorText?: Prisma.SortOrderInput | Prisma.SortOrder queuedAt?: Prisma.SortOrder startedAt?: Prisma.SortOrderInput | Prisma.SortOrder endedAt?: Prisma.SortOrderInput | Prisma.SortOrder durationMs?: Prisma.SortOrderInput | Prisma.SortOrder attempt?: Prisma.SortOrder nextRetryAt?: Prisma.SortOrderInput | Prisma.SortOrder createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder isDemoData?: Prisma.SortOrder rule?: Prisma.AutomationRuleOrderByWithRelationInput stepExecutions?: Prisma.AutomationStepExecutionOrderByRelationAggregateInput } export type AutomationExecutionWhereUniqueInput = Prisma.AtLeast<{ id?: string tenantId_idempotencyKey?: Prisma.AutomationExecutionTenantIdIdempotencyKeyCompoundUniqueInput AND?: Prisma.AutomationExecutionWhereInput | Prisma.AutomationExecutionWhereInput[] OR?: Prisma.AutomationExecutionWhereInput[] NOT?: Prisma.AutomationExecutionWhereInput | Prisma.AutomationExecutionWhereInput[] createdAt?: Prisma.DateTimeFilter<"AutomationExecution"> | Date | string updatedAt?: Prisma.DateTimeFilter<"AutomationExecution"> | Date | string tenantId?: Prisma.StringFilter<"AutomationExecution"> | string ruleId?: Prisma.StringFilter<"AutomationExecution"> | string triggerKey?: Prisma.StringFilter<"AutomationExecution"> | string triggerPayload?: Prisma.JsonFilter<"AutomationExecution"> status?: Prisma.EnumAutomationExecutionStatusFilter<"AutomationExecution"> | $Enums.AutomationExecutionStatus dryRun?: Prisma.BoolFilter<"AutomationExecution"> | boolean idempotencyKey?: Prisma.StringNullableFilter<"AutomationExecution"> | string | null reverseWindowExpiresAt?: Prisma.DateTimeNullableFilter<"AutomationExecution"> | Date | string | null resumeFromStepId?: Prisma.StringNullableFilter<"AutomationExecution"> | string | null summaryText?: Prisma.StringFilter<"AutomationExecution"> | string errorText?: Prisma.StringNullableFilter<"AutomationExecution"> | string | null queuedAt?: Prisma.DateTimeFilter<"AutomationExecution"> | Date | string startedAt?: Prisma.DateTimeNullableFilter<"AutomationExecution"> | Date | string | null endedAt?: Prisma.DateTimeNullableFilter<"AutomationExecution"> | Date | string | null durationMs?: Prisma.IntNullableFilter<"AutomationExecution"> | number | null attempt?: Prisma.IntFilter<"AutomationExecution"> | number nextRetryAt?: Prisma.DateTimeNullableFilter<"AutomationExecution"> | Date | string | null createdByUserId?: Prisma.StringNullableFilter<"AutomationExecution"> | string | null isDemoData?: Prisma.BoolFilter<"AutomationExecution"> | boolean rule?: Prisma.XOR stepExecutions?: Prisma.AutomationStepExecutionListRelationFilter }, "id" | "tenantId_idempotencyKey"> export type AutomationExecutionOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder ruleId?: Prisma.SortOrder triggerKey?: Prisma.SortOrder triggerPayload?: Prisma.SortOrder status?: Prisma.SortOrder dryRun?: Prisma.SortOrder idempotencyKey?: Prisma.SortOrderInput | Prisma.SortOrder reverseWindowExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder resumeFromStepId?: Prisma.SortOrderInput | Prisma.SortOrder summaryText?: Prisma.SortOrder errorText?: Prisma.SortOrderInput | Prisma.SortOrder queuedAt?: Prisma.SortOrder startedAt?: Prisma.SortOrderInput | Prisma.SortOrder endedAt?: Prisma.SortOrderInput | Prisma.SortOrder durationMs?: Prisma.SortOrderInput | Prisma.SortOrder attempt?: Prisma.SortOrder nextRetryAt?: Prisma.SortOrderInput | Prisma.SortOrder createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder isDemoData?: Prisma.SortOrder _count?: Prisma.AutomationExecutionCountOrderByAggregateInput _avg?: Prisma.AutomationExecutionAvgOrderByAggregateInput _max?: Prisma.AutomationExecutionMaxOrderByAggregateInput _min?: Prisma.AutomationExecutionMinOrderByAggregateInput _sum?: Prisma.AutomationExecutionSumOrderByAggregateInput } export type AutomationExecutionScalarWhereWithAggregatesInput = { AND?: Prisma.AutomationExecutionScalarWhereWithAggregatesInput | Prisma.AutomationExecutionScalarWhereWithAggregatesInput[] OR?: Prisma.AutomationExecutionScalarWhereWithAggregatesInput[] NOT?: Prisma.AutomationExecutionScalarWhereWithAggregatesInput | Prisma.AutomationExecutionScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"AutomationExecution"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"AutomationExecution"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AutomationExecution"> | Date | string tenantId?: Prisma.StringWithAggregatesFilter<"AutomationExecution"> | string ruleId?: Prisma.StringWithAggregatesFilter<"AutomationExecution"> | string triggerKey?: Prisma.StringWithAggregatesFilter<"AutomationExecution"> | string triggerPayload?: Prisma.JsonWithAggregatesFilter<"AutomationExecution"> status?: Prisma.EnumAutomationExecutionStatusWithAggregatesFilter<"AutomationExecution"> | $Enums.AutomationExecutionStatus dryRun?: Prisma.BoolWithAggregatesFilter<"AutomationExecution"> | boolean idempotencyKey?: Prisma.StringNullableWithAggregatesFilter<"AutomationExecution"> | string | null reverseWindowExpiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AutomationExecution"> | Date | string | null resumeFromStepId?: Prisma.StringNullableWithAggregatesFilter<"AutomationExecution"> | string | null summaryText?: Prisma.StringWithAggregatesFilter<"AutomationExecution"> | string errorText?: Prisma.StringNullableWithAggregatesFilter<"AutomationExecution"> | string | null queuedAt?: Prisma.DateTimeWithAggregatesFilter<"AutomationExecution"> | Date | string startedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AutomationExecution"> | Date | string | null endedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AutomationExecution"> | Date | string | null durationMs?: Prisma.IntNullableWithAggregatesFilter<"AutomationExecution"> | number | null attempt?: Prisma.IntWithAggregatesFilter<"AutomationExecution"> | number nextRetryAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AutomationExecution"> | Date | string | null createdByUserId?: Prisma.StringNullableWithAggregatesFilter<"AutomationExecution"> | string | null isDemoData?: Prisma.BoolWithAggregatesFilter<"AutomationExecution"> | boolean } export type AutomationExecutionCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string triggerKey: string triggerPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: $Enums.AutomationExecutionStatus dryRun?: boolean idempotencyKey?: string | null reverseWindowExpiresAt?: Date | string | null resumeFromStepId?: string | null summaryText: string errorText?: string | null queuedAt?: Date | string startedAt?: Date | string | null endedAt?: Date | string | null durationMs?: number | null attempt?: number nextRetryAt?: Date | string | null createdByUserId?: string | null isDemoData?: boolean rule: Prisma.AutomationRuleCreateNestedOneWithoutExecutionsInput stepExecutions?: Prisma.AutomationStepExecutionCreateNestedManyWithoutExecutionInput } export type AutomationExecutionUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string ruleId: string triggerKey: string triggerPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: $Enums.AutomationExecutionStatus dryRun?: boolean idempotencyKey?: string | null reverseWindowExpiresAt?: Date | string | null resumeFromStepId?: string | null summaryText: string errorText?: string | null queuedAt?: Date | string startedAt?: Date | string | null endedAt?: Date | string | null durationMs?: number | null attempt?: number nextRetryAt?: Date | string | null createdByUserId?: string | null isDemoData?: boolean stepExecutions?: Prisma.AutomationStepExecutionUncheckedCreateNestedManyWithoutExecutionInput } export type AutomationExecutionUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string triggerKey?: Prisma.StringFieldUpdateOperationsInput | string triggerPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: Prisma.EnumAutomationExecutionStatusFieldUpdateOperationsInput | $Enums.AutomationExecutionStatus dryRun?: Prisma.BoolFieldUpdateOperationsInput | boolean idempotencyKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reverseWindowExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null resumeFromStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null summaryText?: Prisma.StringFieldUpdateOperationsInput | string errorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null queuedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null attempt?: Prisma.IntFieldUpdateOperationsInput | number nextRetryAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean rule?: Prisma.AutomationRuleUpdateOneRequiredWithoutExecutionsNestedInput stepExecutions?: Prisma.AutomationStepExecutionUpdateManyWithoutExecutionNestedInput } export type AutomationExecutionUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string ruleId?: Prisma.StringFieldUpdateOperationsInput | string triggerKey?: Prisma.StringFieldUpdateOperationsInput | string triggerPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: Prisma.EnumAutomationExecutionStatusFieldUpdateOperationsInput | $Enums.AutomationExecutionStatus dryRun?: Prisma.BoolFieldUpdateOperationsInput | boolean idempotencyKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reverseWindowExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null resumeFromStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null summaryText?: Prisma.StringFieldUpdateOperationsInput | string errorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null queuedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null attempt?: Prisma.IntFieldUpdateOperationsInput | number nextRetryAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean stepExecutions?: Prisma.AutomationStepExecutionUncheckedUpdateManyWithoutExecutionNestedInput } export type AutomationExecutionCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string ruleId: string triggerKey: string triggerPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: $Enums.AutomationExecutionStatus dryRun?: boolean idempotencyKey?: string | null reverseWindowExpiresAt?: Date | string | null resumeFromStepId?: string | null summaryText: string errorText?: string | null queuedAt?: Date | string startedAt?: Date | string | null endedAt?: Date | string | null durationMs?: number | null attempt?: number nextRetryAt?: Date | string | null createdByUserId?: string | null isDemoData?: boolean } export type AutomationExecutionUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string triggerKey?: Prisma.StringFieldUpdateOperationsInput | string triggerPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: Prisma.EnumAutomationExecutionStatusFieldUpdateOperationsInput | $Enums.AutomationExecutionStatus dryRun?: Prisma.BoolFieldUpdateOperationsInput | boolean idempotencyKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reverseWindowExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null resumeFromStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null summaryText?: Prisma.StringFieldUpdateOperationsInput | string errorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null queuedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null attempt?: Prisma.IntFieldUpdateOperationsInput | number nextRetryAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type AutomationExecutionUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string ruleId?: Prisma.StringFieldUpdateOperationsInput | string triggerKey?: Prisma.StringFieldUpdateOperationsInput | string triggerPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: Prisma.EnumAutomationExecutionStatusFieldUpdateOperationsInput | $Enums.AutomationExecutionStatus dryRun?: Prisma.BoolFieldUpdateOperationsInput | boolean idempotencyKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reverseWindowExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null resumeFromStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null summaryText?: Prisma.StringFieldUpdateOperationsInput | string errorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null queuedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null attempt?: Prisma.IntFieldUpdateOperationsInput | number nextRetryAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type AutomationExecutionListRelationFilter = { every?: Prisma.AutomationExecutionWhereInput some?: Prisma.AutomationExecutionWhereInput none?: Prisma.AutomationExecutionWhereInput } export type AutomationExecutionOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type AutomationExecutionTenantIdIdempotencyKeyCompoundUniqueInput = { tenantId: string idempotencyKey: string } export type AutomationExecutionCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder ruleId?: Prisma.SortOrder triggerKey?: Prisma.SortOrder triggerPayload?: Prisma.SortOrder status?: Prisma.SortOrder dryRun?: Prisma.SortOrder idempotencyKey?: Prisma.SortOrder reverseWindowExpiresAt?: Prisma.SortOrder resumeFromStepId?: Prisma.SortOrder summaryText?: Prisma.SortOrder errorText?: Prisma.SortOrder queuedAt?: Prisma.SortOrder startedAt?: Prisma.SortOrder endedAt?: Prisma.SortOrder durationMs?: Prisma.SortOrder attempt?: Prisma.SortOrder nextRetryAt?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder isDemoData?: Prisma.SortOrder } export type AutomationExecutionAvgOrderByAggregateInput = { durationMs?: Prisma.SortOrder attempt?: Prisma.SortOrder } export type AutomationExecutionMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder ruleId?: Prisma.SortOrder triggerKey?: Prisma.SortOrder status?: Prisma.SortOrder dryRun?: Prisma.SortOrder idempotencyKey?: Prisma.SortOrder reverseWindowExpiresAt?: Prisma.SortOrder resumeFromStepId?: Prisma.SortOrder summaryText?: Prisma.SortOrder errorText?: Prisma.SortOrder queuedAt?: Prisma.SortOrder startedAt?: Prisma.SortOrder endedAt?: Prisma.SortOrder durationMs?: Prisma.SortOrder attempt?: Prisma.SortOrder nextRetryAt?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder isDemoData?: Prisma.SortOrder } export type AutomationExecutionMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder ruleId?: Prisma.SortOrder triggerKey?: Prisma.SortOrder status?: Prisma.SortOrder dryRun?: Prisma.SortOrder idempotencyKey?: Prisma.SortOrder reverseWindowExpiresAt?: Prisma.SortOrder resumeFromStepId?: Prisma.SortOrder summaryText?: Prisma.SortOrder errorText?: Prisma.SortOrder queuedAt?: Prisma.SortOrder startedAt?: Prisma.SortOrder endedAt?: Prisma.SortOrder durationMs?: Prisma.SortOrder attempt?: Prisma.SortOrder nextRetryAt?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder isDemoData?: Prisma.SortOrder } export type AutomationExecutionSumOrderByAggregateInput = { durationMs?: Prisma.SortOrder attempt?: Prisma.SortOrder } export type AutomationExecutionScalarRelationFilter = { is?: Prisma.AutomationExecutionWhereInput isNot?: Prisma.AutomationExecutionWhereInput } export type AutomationExecutionCreateNestedManyWithoutRuleInput = { create?: Prisma.XOR | Prisma.AutomationExecutionCreateWithoutRuleInput[] | Prisma.AutomationExecutionUncheckedCreateWithoutRuleInput[] connectOrCreate?: Prisma.AutomationExecutionCreateOrConnectWithoutRuleInput | Prisma.AutomationExecutionCreateOrConnectWithoutRuleInput[] createMany?: Prisma.AutomationExecutionCreateManyRuleInputEnvelope connect?: Prisma.AutomationExecutionWhereUniqueInput | Prisma.AutomationExecutionWhereUniqueInput[] } export type AutomationExecutionUncheckedCreateNestedManyWithoutRuleInput = { create?: Prisma.XOR | Prisma.AutomationExecutionCreateWithoutRuleInput[] | Prisma.AutomationExecutionUncheckedCreateWithoutRuleInput[] connectOrCreate?: Prisma.AutomationExecutionCreateOrConnectWithoutRuleInput | Prisma.AutomationExecutionCreateOrConnectWithoutRuleInput[] createMany?: Prisma.AutomationExecutionCreateManyRuleInputEnvelope connect?: Prisma.AutomationExecutionWhereUniqueInput | Prisma.AutomationExecutionWhereUniqueInput[] } export type AutomationExecutionUpdateManyWithoutRuleNestedInput = { create?: Prisma.XOR | Prisma.AutomationExecutionCreateWithoutRuleInput[] | Prisma.AutomationExecutionUncheckedCreateWithoutRuleInput[] connectOrCreate?: Prisma.AutomationExecutionCreateOrConnectWithoutRuleInput | Prisma.AutomationExecutionCreateOrConnectWithoutRuleInput[] upsert?: Prisma.AutomationExecutionUpsertWithWhereUniqueWithoutRuleInput | Prisma.AutomationExecutionUpsertWithWhereUniqueWithoutRuleInput[] createMany?: Prisma.AutomationExecutionCreateManyRuleInputEnvelope set?: Prisma.AutomationExecutionWhereUniqueInput | Prisma.AutomationExecutionWhereUniqueInput[] disconnect?: Prisma.AutomationExecutionWhereUniqueInput | Prisma.AutomationExecutionWhereUniqueInput[] delete?: Prisma.AutomationExecutionWhereUniqueInput | Prisma.AutomationExecutionWhereUniqueInput[] connect?: Prisma.AutomationExecutionWhereUniqueInput | Prisma.AutomationExecutionWhereUniqueInput[] update?: Prisma.AutomationExecutionUpdateWithWhereUniqueWithoutRuleInput | Prisma.AutomationExecutionUpdateWithWhereUniqueWithoutRuleInput[] updateMany?: Prisma.AutomationExecutionUpdateManyWithWhereWithoutRuleInput | Prisma.AutomationExecutionUpdateManyWithWhereWithoutRuleInput[] deleteMany?: Prisma.AutomationExecutionScalarWhereInput | Prisma.AutomationExecutionScalarWhereInput[] } export type AutomationExecutionUncheckedUpdateManyWithoutRuleNestedInput = { create?: Prisma.XOR | Prisma.AutomationExecutionCreateWithoutRuleInput[] | Prisma.AutomationExecutionUncheckedCreateWithoutRuleInput[] connectOrCreate?: Prisma.AutomationExecutionCreateOrConnectWithoutRuleInput | Prisma.AutomationExecutionCreateOrConnectWithoutRuleInput[] upsert?: Prisma.AutomationExecutionUpsertWithWhereUniqueWithoutRuleInput | Prisma.AutomationExecutionUpsertWithWhereUniqueWithoutRuleInput[] createMany?: Prisma.AutomationExecutionCreateManyRuleInputEnvelope set?: Prisma.AutomationExecutionWhereUniqueInput | Prisma.AutomationExecutionWhereUniqueInput[] disconnect?: Prisma.AutomationExecutionWhereUniqueInput | Prisma.AutomationExecutionWhereUniqueInput[] delete?: Prisma.AutomationExecutionWhereUniqueInput | Prisma.AutomationExecutionWhereUniqueInput[] connect?: Prisma.AutomationExecutionWhereUniqueInput | Prisma.AutomationExecutionWhereUniqueInput[] update?: Prisma.AutomationExecutionUpdateWithWhereUniqueWithoutRuleInput | Prisma.AutomationExecutionUpdateWithWhereUniqueWithoutRuleInput[] updateMany?: Prisma.AutomationExecutionUpdateManyWithWhereWithoutRuleInput | Prisma.AutomationExecutionUpdateManyWithWhereWithoutRuleInput[] deleteMany?: Prisma.AutomationExecutionScalarWhereInput | Prisma.AutomationExecutionScalarWhereInput[] } export type EnumAutomationExecutionStatusFieldUpdateOperationsInput = { set?: $Enums.AutomationExecutionStatus } export type AutomationExecutionCreateNestedOneWithoutStepExecutionsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AutomationExecutionCreateOrConnectWithoutStepExecutionsInput connect?: Prisma.AutomationExecutionWhereUniqueInput } export type AutomationExecutionUpdateOneRequiredWithoutStepExecutionsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AutomationExecutionCreateOrConnectWithoutStepExecutionsInput upsert?: Prisma.AutomationExecutionUpsertWithoutStepExecutionsInput connect?: Prisma.AutomationExecutionWhereUniqueInput update?: Prisma.XOR, Prisma.AutomationExecutionUncheckedUpdateWithoutStepExecutionsInput> } export type AutomationExecutionCreateWithoutRuleInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string triggerKey: string triggerPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: $Enums.AutomationExecutionStatus dryRun?: boolean idempotencyKey?: string | null reverseWindowExpiresAt?: Date | string | null resumeFromStepId?: string | null summaryText: string errorText?: string | null queuedAt?: Date | string startedAt?: Date | string | null endedAt?: Date | string | null durationMs?: number | null attempt?: number nextRetryAt?: Date | string | null createdByUserId?: string | null isDemoData?: boolean stepExecutions?: Prisma.AutomationStepExecutionCreateNestedManyWithoutExecutionInput } export type AutomationExecutionUncheckedCreateWithoutRuleInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string triggerKey: string triggerPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: $Enums.AutomationExecutionStatus dryRun?: boolean idempotencyKey?: string | null reverseWindowExpiresAt?: Date | string | null resumeFromStepId?: string | null summaryText: string errorText?: string | null queuedAt?: Date | string startedAt?: Date | string | null endedAt?: Date | string | null durationMs?: number | null attempt?: number nextRetryAt?: Date | string | null createdByUserId?: string | null isDemoData?: boolean stepExecutions?: Prisma.AutomationStepExecutionUncheckedCreateNestedManyWithoutExecutionInput } export type AutomationExecutionCreateOrConnectWithoutRuleInput = { where: Prisma.AutomationExecutionWhereUniqueInput create: Prisma.XOR } export type AutomationExecutionCreateManyRuleInputEnvelope = { data: Prisma.AutomationExecutionCreateManyRuleInput | Prisma.AutomationExecutionCreateManyRuleInput[] skipDuplicates?: boolean } export type AutomationExecutionUpsertWithWhereUniqueWithoutRuleInput = { where: Prisma.AutomationExecutionWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type AutomationExecutionUpdateWithWhereUniqueWithoutRuleInput = { where: Prisma.AutomationExecutionWhereUniqueInput data: Prisma.XOR } export type AutomationExecutionUpdateManyWithWhereWithoutRuleInput = { where: Prisma.AutomationExecutionScalarWhereInput data: Prisma.XOR } export type AutomationExecutionScalarWhereInput = { AND?: Prisma.AutomationExecutionScalarWhereInput | Prisma.AutomationExecutionScalarWhereInput[] OR?: Prisma.AutomationExecutionScalarWhereInput[] NOT?: Prisma.AutomationExecutionScalarWhereInput | Prisma.AutomationExecutionScalarWhereInput[] id?: Prisma.StringFilter<"AutomationExecution"> | string createdAt?: Prisma.DateTimeFilter<"AutomationExecution"> | Date | string updatedAt?: Prisma.DateTimeFilter<"AutomationExecution"> | Date | string tenantId?: Prisma.StringFilter<"AutomationExecution"> | string ruleId?: Prisma.StringFilter<"AutomationExecution"> | string triggerKey?: Prisma.StringFilter<"AutomationExecution"> | string triggerPayload?: Prisma.JsonFilter<"AutomationExecution"> status?: Prisma.EnumAutomationExecutionStatusFilter<"AutomationExecution"> | $Enums.AutomationExecutionStatus dryRun?: Prisma.BoolFilter<"AutomationExecution"> | boolean idempotencyKey?: Prisma.StringNullableFilter<"AutomationExecution"> | string | null reverseWindowExpiresAt?: Prisma.DateTimeNullableFilter<"AutomationExecution"> | Date | string | null resumeFromStepId?: Prisma.StringNullableFilter<"AutomationExecution"> | string | null summaryText?: Prisma.StringFilter<"AutomationExecution"> | string errorText?: Prisma.StringNullableFilter<"AutomationExecution"> | string | null queuedAt?: Prisma.DateTimeFilter<"AutomationExecution"> | Date | string startedAt?: Prisma.DateTimeNullableFilter<"AutomationExecution"> | Date | string | null endedAt?: Prisma.DateTimeNullableFilter<"AutomationExecution"> | Date | string | null durationMs?: Prisma.IntNullableFilter<"AutomationExecution"> | number | null attempt?: Prisma.IntFilter<"AutomationExecution"> | number nextRetryAt?: Prisma.DateTimeNullableFilter<"AutomationExecution"> | Date | string | null createdByUserId?: Prisma.StringNullableFilter<"AutomationExecution"> | string | null isDemoData?: Prisma.BoolFilter<"AutomationExecution"> | boolean } export type AutomationExecutionCreateWithoutStepExecutionsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string triggerKey: string triggerPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: $Enums.AutomationExecutionStatus dryRun?: boolean idempotencyKey?: string | null reverseWindowExpiresAt?: Date | string | null resumeFromStepId?: string | null summaryText: string errorText?: string | null queuedAt?: Date | string startedAt?: Date | string | null endedAt?: Date | string | null durationMs?: number | null attempt?: number nextRetryAt?: Date | string | null createdByUserId?: string | null isDemoData?: boolean rule: Prisma.AutomationRuleCreateNestedOneWithoutExecutionsInput } export type AutomationExecutionUncheckedCreateWithoutStepExecutionsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string ruleId: string triggerKey: string triggerPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: $Enums.AutomationExecutionStatus dryRun?: boolean idempotencyKey?: string | null reverseWindowExpiresAt?: Date | string | null resumeFromStepId?: string | null summaryText: string errorText?: string | null queuedAt?: Date | string startedAt?: Date | string | null endedAt?: Date | string | null durationMs?: number | null attempt?: number nextRetryAt?: Date | string | null createdByUserId?: string | null isDemoData?: boolean } export type AutomationExecutionCreateOrConnectWithoutStepExecutionsInput = { where: Prisma.AutomationExecutionWhereUniqueInput create: Prisma.XOR } export type AutomationExecutionUpsertWithoutStepExecutionsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.AutomationExecutionWhereInput } export type AutomationExecutionUpdateToOneWithWhereWithoutStepExecutionsInput = { where?: Prisma.AutomationExecutionWhereInput data: Prisma.XOR } export type AutomationExecutionUpdateWithoutStepExecutionsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string triggerKey?: Prisma.StringFieldUpdateOperationsInput | string triggerPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: Prisma.EnumAutomationExecutionStatusFieldUpdateOperationsInput | $Enums.AutomationExecutionStatus dryRun?: Prisma.BoolFieldUpdateOperationsInput | boolean idempotencyKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reverseWindowExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null resumeFromStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null summaryText?: Prisma.StringFieldUpdateOperationsInput | string errorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null queuedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null attempt?: Prisma.IntFieldUpdateOperationsInput | number nextRetryAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean rule?: Prisma.AutomationRuleUpdateOneRequiredWithoutExecutionsNestedInput } export type AutomationExecutionUncheckedUpdateWithoutStepExecutionsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string ruleId?: Prisma.StringFieldUpdateOperationsInput | string triggerKey?: Prisma.StringFieldUpdateOperationsInput | string triggerPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: Prisma.EnumAutomationExecutionStatusFieldUpdateOperationsInput | $Enums.AutomationExecutionStatus dryRun?: Prisma.BoolFieldUpdateOperationsInput | boolean idempotencyKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reverseWindowExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null resumeFromStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null summaryText?: Prisma.StringFieldUpdateOperationsInput | string errorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null queuedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null attempt?: Prisma.IntFieldUpdateOperationsInput | number nextRetryAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type AutomationExecutionCreateManyRuleInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string triggerKey: string triggerPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: $Enums.AutomationExecutionStatus dryRun?: boolean idempotencyKey?: string | null reverseWindowExpiresAt?: Date | string | null resumeFromStepId?: string | null summaryText: string errorText?: string | null queuedAt?: Date | string startedAt?: Date | string | null endedAt?: Date | string | null durationMs?: number | null attempt?: number nextRetryAt?: Date | string | null createdByUserId?: string | null isDemoData?: boolean } export type AutomationExecutionUpdateWithoutRuleInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string triggerKey?: Prisma.StringFieldUpdateOperationsInput | string triggerPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: Prisma.EnumAutomationExecutionStatusFieldUpdateOperationsInput | $Enums.AutomationExecutionStatus dryRun?: Prisma.BoolFieldUpdateOperationsInput | boolean idempotencyKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reverseWindowExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null resumeFromStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null summaryText?: Prisma.StringFieldUpdateOperationsInput | string errorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null queuedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null attempt?: Prisma.IntFieldUpdateOperationsInput | number nextRetryAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean stepExecutions?: Prisma.AutomationStepExecutionUpdateManyWithoutExecutionNestedInput } export type AutomationExecutionUncheckedUpdateWithoutRuleInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string triggerKey?: Prisma.StringFieldUpdateOperationsInput | string triggerPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: Prisma.EnumAutomationExecutionStatusFieldUpdateOperationsInput | $Enums.AutomationExecutionStatus dryRun?: Prisma.BoolFieldUpdateOperationsInput | boolean idempotencyKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reverseWindowExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null resumeFromStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null summaryText?: Prisma.StringFieldUpdateOperationsInput | string errorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null queuedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null attempt?: Prisma.IntFieldUpdateOperationsInput | number nextRetryAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean stepExecutions?: Prisma.AutomationStepExecutionUncheckedUpdateManyWithoutExecutionNestedInput } export type AutomationExecutionUncheckedUpdateManyWithoutRuleInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string triggerKey?: Prisma.StringFieldUpdateOperationsInput | string triggerPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue status?: Prisma.EnumAutomationExecutionStatusFieldUpdateOperationsInput | $Enums.AutomationExecutionStatus dryRun?: Prisma.BoolFieldUpdateOperationsInput | boolean idempotencyKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reverseWindowExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null resumeFromStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null summaryText?: Prisma.StringFieldUpdateOperationsInput | string errorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null queuedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null attempt?: Prisma.IntFieldUpdateOperationsInput | number nextRetryAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean } /** * Count Type AutomationExecutionCountOutputType */ export type AutomationExecutionCountOutputType = { stepExecutions: number } export type AutomationExecutionCountOutputTypeSelect = { stepExecutions?: boolean | AutomationExecutionCountOutputTypeCountStepExecutionsArgs } /** * AutomationExecutionCountOutputType without action */ export type AutomationExecutionCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the AutomationExecutionCountOutputType */ select?: Prisma.AutomationExecutionCountOutputTypeSelect | null } /** * AutomationExecutionCountOutputType without action */ export type AutomationExecutionCountOutputTypeCountStepExecutionsArgs = { where?: Prisma.AutomationStepExecutionWhereInput } export type AutomationExecutionSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean ruleId?: boolean triggerKey?: boolean triggerPayload?: boolean status?: boolean dryRun?: boolean idempotencyKey?: boolean reverseWindowExpiresAt?: boolean resumeFromStepId?: boolean summaryText?: boolean errorText?: boolean queuedAt?: boolean startedAt?: boolean endedAt?: boolean durationMs?: boolean attempt?: boolean nextRetryAt?: boolean createdByUserId?: boolean isDemoData?: boolean rule?: boolean | Prisma.AutomationRuleDefaultArgs stepExecutions?: boolean | Prisma.AutomationExecution$stepExecutionsArgs _count?: boolean | Prisma.AutomationExecutionCountOutputTypeDefaultArgs }, ExtArgs["result"]["automationExecution"]> export type AutomationExecutionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean ruleId?: boolean triggerKey?: boolean triggerPayload?: boolean status?: boolean dryRun?: boolean idempotencyKey?: boolean reverseWindowExpiresAt?: boolean resumeFromStepId?: boolean summaryText?: boolean errorText?: boolean queuedAt?: boolean startedAt?: boolean endedAt?: boolean durationMs?: boolean attempt?: boolean nextRetryAt?: boolean createdByUserId?: boolean isDemoData?: boolean rule?: boolean | Prisma.AutomationRuleDefaultArgs }, ExtArgs["result"]["automationExecution"]> export type AutomationExecutionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean ruleId?: boolean triggerKey?: boolean triggerPayload?: boolean status?: boolean dryRun?: boolean idempotencyKey?: boolean reverseWindowExpiresAt?: boolean resumeFromStepId?: boolean summaryText?: boolean errorText?: boolean queuedAt?: boolean startedAt?: boolean endedAt?: boolean durationMs?: boolean attempt?: boolean nextRetryAt?: boolean createdByUserId?: boolean isDemoData?: boolean rule?: boolean | Prisma.AutomationRuleDefaultArgs }, ExtArgs["result"]["automationExecution"]> export type AutomationExecutionSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean ruleId?: boolean triggerKey?: boolean triggerPayload?: boolean status?: boolean dryRun?: boolean idempotencyKey?: boolean reverseWindowExpiresAt?: boolean resumeFromStepId?: boolean summaryText?: boolean errorText?: boolean queuedAt?: boolean startedAt?: boolean endedAt?: boolean durationMs?: boolean attempt?: boolean nextRetryAt?: boolean createdByUserId?: boolean isDemoData?: boolean } export type AutomationExecutionOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "ruleId" | "triggerKey" | "triggerPayload" | "status" | "dryRun" | "idempotencyKey" | "reverseWindowExpiresAt" | "resumeFromStepId" | "summaryText" | "errorText" | "queuedAt" | "startedAt" | "endedAt" | "durationMs" | "attempt" | "nextRetryAt" | "createdByUserId" | "isDemoData", ExtArgs["result"]["automationExecution"]> export type AutomationExecutionInclude = { rule?: boolean | Prisma.AutomationRuleDefaultArgs stepExecutions?: boolean | Prisma.AutomationExecution$stepExecutionsArgs _count?: boolean | Prisma.AutomationExecutionCountOutputTypeDefaultArgs } export type AutomationExecutionIncludeCreateManyAndReturn = { rule?: boolean | Prisma.AutomationRuleDefaultArgs } export type AutomationExecutionIncludeUpdateManyAndReturn = { rule?: boolean | Prisma.AutomationRuleDefaultArgs } export type $AutomationExecutionPayload = { name: "AutomationExecution" objects: { rule: Prisma.$AutomationRulePayload stepExecutions: Prisma.$AutomationStepExecutionPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date tenantId: string ruleId: string triggerKey: string triggerPayload: runtime.JsonValue status: $Enums.AutomationExecutionStatus dryRun: boolean idempotencyKey: string | null reverseWindowExpiresAt: Date | null resumeFromStepId: string | null summaryText: string errorText: string | null queuedAt: Date startedAt: Date | null endedAt: Date | null durationMs: number | null attempt: number nextRetryAt: Date | null createdByUserId: string | null isDemoData: boolean }, ExtArgs["result"]["automationExecution"]> composites: {} } export type AutomationExecutionGetPayload = runtime.Types.Result.GetResult export type AutomationExecutionCountArgs = Omit & { select?: AutomationExecutionCountAggregateInputType | true } export interface AutomationExecutionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AutomationExecution'], meta: { name: 'AutomationExecution' } } /** * Find zero or one AutomationExecution that matches the filter. * @param {AutomationExecutionFindUniqueArgs} args - Arguments to find a AutomationExecution * @example * // Get one AutomationExecution * const automationExecution = await prisma.automationExecution.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationExecutionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AutomationExecution that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AutomationExecutionFindUniqueOrThrowArgs} args - Arguments to find a AutomationExecution * @example * // Get one AutomationExecution * const automationExecution = await prisma.automationExecution.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationExecutionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AutomationExecution 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 {AutomationExecutionFindFirstArgs} args - Arguments to find a AutomationExecution * @example * // Get one AutomationExecution * const automationExecution = await prisma.automationExecution.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AutomationExecutionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AutomationExecution 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 {AutomationExecutionFindFirstOrThrowArgs} args - Arguments to find a AutomationExecution * @example * // Get one AutomationExecution * const automationExecution = await prisma.automationExecution.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AutomationExecutionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AutomationExecutions 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 {AutomationExecutionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AutomationExecutions * const automationExecutions = await prisma.automationExecution.findMany() * * // Get first 10 AutomationExecutions * const automationExecutions = await prisma.automationExecution.findMany({ take: 10 }) * * // Only select the `id` * const automationExecutionWithIdOnly = await prisma.automationExecution.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a AutomationExecution. * @param {AutomationExecutionCreateArgs} args - Arguments to create a AutomationExecution. * @example * // Create one AutomationExecution * const AutomationExecution = await prisma.automationExecution.create({ * data: { * // ... data to create a AutomationExecution * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationExecutionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AutomationExecutions. * @param {AutomationExecutionCreateManyArgs} args - Arguments to create many AutomationExecutions. * @example * // Create many AutomationExecutions * const automationExecution = await prisma.automationExecution.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many AutomationExecutions and returns the data saved in the database. * @param {AutomationExecutionCreateManyAndReturnArgs} args - Arguments to create many AutomationExecutions. * @example * // Create many AutomationExecutions * const automationExecution = await prisma.automationExecution.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AutomationExecutions and only return the `id` * const automationExecutionWithIdOnly = await prisma.automationExecution.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 AutomationExecution. * @param {AutomationExecutionDeleteArgs} args - Arguments to delete one AutomationExecution. * @example * // Delete one AutomationExecution * const AutomationExecution = await prisma.automationExecution.delete({ * where: { * // ... filter to delete one AutomationExecution * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationExecutionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AutomationExecution. * @param {AutomationExecutionUpdateArgs} args - Arguments to update one AutomationExecution. * @example * // Update one AutomationExecution * const automationExecution = await prisma.automationExecution.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationExecutionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AutomationExecutions. * @param {AutomationExecutionDeleteManyArgs} args - Arguments to filter AutomationExecutions to delete. * @example * // Delete a few AutomationExecutions * const { count } = await prisma.automationExecution.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AutomationExecutions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AutomationExecutionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AutomationExecutions * const automationExecution = await prisma.automationExecution.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AutomationExecutions and returns the data updated in the database. * @param {AutomationExecutionUpdateManyAndReturnArgs} args - Arguments to update many AutomationExecutions. * @example * // Update many AutomationExecutions * const automationExecution = await prisma.automationExecution.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AutomationExecutions and only return the `id` * const automationExecutionWithIdOnly = await prisma.automationExecution.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 AutomationExecution. * @param {AutomationExecutionUpsertArgs} args - Arguments to update or create a AutomationExecution. * @example * // Update or create a AutomationExecution * const automationExecution = await prisma.automationExecution.upsert({ * create: { * // ... data to create a AutomationExecution * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AutomationExecution we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationExecutionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AutomationExecutions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AutomationExecutionCountArgs} args - Arguments to filter AutomationExecutions to count. * @example * // Count the number of AutomationExecutions * const count = await prisma.automationExecution.count({ * where: { * // ... the filter for the AutomationExecutions 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 AutomationExecution. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AutomationExecutionAggregateArgs} 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 AutomationExecution. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AutomationExecutionGroupByArgs} 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 AutomationExecutionGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AutomationExecutionGroupByArgs['orderBy'] } : { orderBy?: AutomationExecutionGroupByArgs['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 ? GetAutomationExecutionGroupByPayload : Prisma.PrismaPromise /** * Fields of the AutomationExecution model */ readonly fields: AutomationExecutionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AutomationExecution. * 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__AutomationExecutionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" rule = {}>(args?: Prisma.Subset>): Prisma.Prisma__AutomationRuleClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> stepExecutions = {}>(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 AutomationExecution model */ export interface AutomationExecutionFieldRefs { readonly id: Prisma.FieldRef<"AutomationExecution", 'String'> readonly createdAt: Prisma.FieldRef<"AutomationExecution", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"AutomationExecution", 'DateTime'> readonly tenantId: Prisma.FieldRef<"AutomationExecution", 'String'> readonly ruleId: Prisma.FieldRef<"AutomationExecution", 'String'> readonly triggerKey: Prisma.FieldRef<"AutomationExecution", 'String'> readonly triggerPayload: Prisma.FieldRef<"AutomationExecution", 'Json'> readonly status: Prisma.FieldRef<"AutomationExecution", 'AutomationExecutionStatus'> readonly dryRun: Prisma.FieldRef<"AutomationExecution", 'Boolean'> readonly idempotencyKey: Prisma.FieldRef<"AutomationExecution", 'String'> readonly reverseWindowExpiresAt: Prisma.FieldRef<"AutomationExecution", 'DateTime'> readonly resumeFromStepId: Prisma.FieldRef<"AutomationExecution", 'String'> readonly summaryText: Prisma.FieldRef<"AutomationExecution", 'String'> readonly errorText: Prisma.FieldRef<"AutomationExecution", 'String'> readonly queuedAt: Prisma.FieldRef<"AutomationExecution", 'DateTime'> readonly startedAt: Prisma.FieldRef<"AutomationExecution", 'DateTime'> readonly endedAt: Prisma.FieldRef<"AutomationExecution", 'DateTime'> readonly durationMs: Prisma.FieldRef<"AutomationExecution", 'Int'> readonly attempt: Prisma.FieldRef<"AutomationExecution", 'Int'> readonly nextRetryAt: Prisma.FieldRef<"AutomationExecution", 'DateTime'> readonly createdByUserId: Prisma.FieldRef<"AutomationExecution", 'String'> readonly isDemoData: Prisma.FieldRef<"AutomationExecution", 'Boolean'> } // Custom InputTypes /** * AutomationExecution findUnique */ export type AutomationExecutionFindUniqueArgs = { /** * Select specific fields to fetch from the AutomationExecution */ select?: Prisma.AutomationExecutionSelect | null /** * Omit specific fields from the AutomationExecution */ omit?: Prisma.AutomationExecutionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutomationExecutionInclude | null /** * Filter, which AutomationExecution to fetch. */ where: Prisma.AutomationExecutionWhereUniqueInput } /** * AutomationExecution findUniqueOrThrow */ export type AutomationExecutionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AutomationExecution */ select?: Prisma.AutomationExecutionSelect | null /** * Omit specific fields from the AutomationExecution */ omit?: Prisma.AutomationExecutionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutomationExecutionInclude | null /** * Filter, which AutomationExecution to fetch. */ where: Prisma.AutomationExecutionWhereUniqueInput } /** * AutomationExecution findFirst */ export type AutomationExecutionFindFirstArgs = { /** * Select specific fields to fetch from the AutomationExecution */ select?: Prisma.AutomationExecutionSelect | null /** * Omit specific fields from the AutomationExecution */ omit?: Prisma.AutomationExecutionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutomationExecutionInclude | null /** * Filter, which AutomationExecution to fetch. */ where?: Prisma.AutomationExecutionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AutomationExecutions to fetch. */ orderBy?: Prisma.AutomationExecutionOrderByWithRelationInput | Prisma.AutomationExecutionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AutomationExecutions. */ cursor?: Prisma.AutomationExecutionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AutomationExecutions 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` AutomationExecutions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AutomationExecutions. */ distinct?: Prisma.AutomationExecutionScalarFieldEnum | Prisma.AutomationExecutionScalarFieldEnum[] } /** * AutomationExecution findFirstOrThrow */ export type AutomationExecutionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AutomationExecution */ select?: Prisma.AutomationExecutionSelect | null /** * Omit specific fields from the AutomationExecution */ omit?: Prisma.AutomationExecutionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutomationExecutionInclude | null /** * Filter, which AutomationExecution to fetch. */ where?: Prisma.AutomationExecutionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AutomationExecutions to fetch. */ orderBy?: Prisma.AutomationExecutionOrderByWithRelationInput | Prisma.AutomationExecutionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AutomationExecutions. */ cursor?: Prisma.AutomationExecutionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AutomationExecutions 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` AutomationExecutions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AutomationExecutions. */ distinct?: Prisma.AutomationExecutionScalarFieldEnum | Prisma.AutomationExecutionScalarFieldEnum[] } /** * AutomationExecution findMany */ export type AutomationExecutionFindManyArgs = { /** * Select specific fields to fetch from the AutomationExecution */ select?: Prisma.AutomationExecutionSelect | null /** * Omit specific fields from the AutomationExecution */ omit?: Prisma.AutomationExecutionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutomationExecutionInclude | null /** * Filter, which AutomationExecutions to fetch. */ where?: Prisma.AutomationExecutionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AutomationExecutions to fetch. */ orderBy?: Prisma.AutomationExecutionOrderByWithRelationInput | Prisma.AutomationExecutionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AutomationExecutions. */ cursor?: Prisma.AutomationExecutionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AutomationExecutions 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` AutomationExecutions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AutomationExecutions. */ distinct?: Prisma.AutomationExecutionScalarFieldEnum | Prisma.AutomationExecutionScalarFieldEnum[] } /** * AutomationExecution create */ export type AutomationExecutionCreateArgs = { /** * Select specific fields to fetch from the AutomationExecution */ select?: Prisma.AutomationExecutionSelect | null /** * Omit specific fields from the AutomationExecution */ omit?: Prisma.AutomationExecutionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutomationExecutionInclude | null /** * The data needed to create a AutomationExecution. */ data: Prisma.XOR } /** * AutomationExecution createMany */ export type AutomationExecutionCreateManyArgs = { /** * The data used to create many AutomationExecutions. */ data: Prisma.AutomationExecutionCreateManyInput | Prisma.AutomationExecutionCreateManyInput[] skipDuplicates?: boolean } /** * AutomationExecution createManyAndReturn */ export type AutomationExecutionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AutomationExecution */ select?: Prisma.AutomationExecutionSelectCreateManyAndReturn | null /** * Omit specific fields from the AutomationExecution */ omit?: Prisma.AutomationExecutionOmit | null /** * The data used to create many AutomationExecutions. */ data: Prisma.AutomationExecutionCreateManyInput | Prisma.AutomationExecutionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutomationExecutionIncludeCreateManyAndReturn | null } /** * AutomationExecution update */ export type AutomationExecutionUpdateArgs = { /** * Select specific fields to fetch from the AutomationExecution */ select?: Prisma.AutomationExecutionSelect | null /** * Omit specific fields from the AutomationExecution */ omit?: Prisma.AutomationExecutionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutomationExecutionInclude | null /** * The data needed to update a AutomationExecution. */ data: Prisma.XOR /** * Choose, which AutomationExecution to update. */ where: Prisma.AutomationExecutionWhereUniqueInput } /** * AutomationExecution updateMany */ export type AutomationExecutionUpdateManyArgs = { /** * The data used to update AutomationExecutions. */ data: Prisma.XOR /** * Filter which AutomationExecutions to update */ where?: Prisma.AutomationExecutionWhereInput /** * Limit how many AutomationExecutions to update. */ limit?: number } /** * AutomationExecution updateManyAndReturn */ export type AutomationExecutionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AutomationExecution */ select?: Prisma.AutomationExecutionSelectUpdateManyAndReturn | null /** * Omit specific fields from the AutomationExecution */ omit?: Prisma.AutomationExecutionOmit | null /** * The data used to update AutomationExecutions. */ data: Prisma.XOR /** * Filter which AutomationExecutions to update */ where?: Prisma.AutomationExecutionWhereInput /** * Limit how many AutomationExecutions to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutomationExecutionIncludeUpdateManyAndReturn | null } /** * AutomationExecution upsert */ export type AutomationExecutionUpsertArgs = { /** * Select specific fields to fetch from the AutomationExecution */ select?: Prisma.AutomationExecutionSelect | null /** * Omit specific fields from the AutomationExecution */ omit?: Prisma.AutomationExecutionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutomationExecutionInclude | null /** * The filter to search for the AutomationExecution to update in case it exists. */ where: Prisma.AutomationExecutionWhereUniqueInput /** * In case the AutomationExecution found by the `where` argument doesn't exist, create a new AutomationExecution with this data. */ create: Prisma.XOR /** * In case the AutomationExecution was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * AutomationExecution delete */ export type AutomationExecutionDeleteArgs = { /** * Select specific fields to fetch from the AutomationExecution */ select?: Prisma.AutomationExecutionSelect | null /** * Omit specific fields from the AutomationExecution */ omit?: Prisma.AutomationExecutionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutomationExecutionInclude | null /** * Filter which AutomationExecution to delete. */ where: Prisma.AutomationExecutionWhereUniqueInput } /** * AutomationExecution deleteMany */ export type AutomationExecutionDeleteManyArgs = { /** * Filter which AutomationExecutions to delete */ where?: Prisma.AutomationExecutionWhereInput /** * Limit how many AutomationExecutions to delete. */ limit?: number } /** * AutomationExecution.stepExecutions */ export type AutomationExecution$stepExecutionsArgs = { /** * Select specific fields to fetch from the AutomationStepExecution */ select?: Prisma.AutomationStepExecutionSelect | null /** * Omit specific fields from the AutomationStepExecution */ omit?: Prisma.AutomationStepExecutionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutomationStepExecutionInclude | null where?: Prisma.AutomationStepExecutionWhereInput orderBy?: Prisma.AutomationStepExecutionOrderByWithRelationInput | Prisma.AutomationStepExecutionOrderByWithRelationInput[] cursor?: Prisma.AutomationStepExecutionWhereUniqueInput take?: number skip?: number distinct?: Prisma.AutomationStepExecutionScalarFieldEnum | Prisma.AutomationStepExecutionScalarFieldEnum[] } /** * AutomationExecution without action */ export type AutomationExecutionDefaultArgs = { /** * Select specific fields to fetch from the AutomationExecution */ select?: Prisma.AutomationExecutionSelect | null /** * Omit specific fields from the AutomationExecution */ omit?: Prisma.AutomationExecutionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutomationExecutionInclude | null }