/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `AutomationStepExecution` 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 AutomationStepExecution * */ export type AutomationStepExecutionModel = runtime.Types.Result.DefaultSelection export type AggregateAutomationStepExecution = { _count: AutomationStepExecutionCountAggregateOutputType | null _avg: AutomationStepExecutionAvgAggregateOutputType | null _sum: AutomationStepExecutionSumAggregateOutputType | null _min: AutomationStepExecutionMinAggregateOutputType | null _max: AutomationStepExecutionMaxAggregateOutputType | null } export type AutomationStepExecutionAvgAggregateOutputType = { durationMs: number | null attempt: number | null sortOrder: number | null } export type AutomationStepExecutionSumAggregateOutputType = { durationMs: number | null attempt: number | null sortOrder: number | null } export type AutomationStepExecutionMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null executionId: string | null ruleStepId: string | null stepKey: string | null stepKind: $Enums.AutomationStepKind | null nodeType: string | null status: $Enums.AutomationExecutionStatus | null summaryText: string | null errorText: string | null startedAt: Date | null endedAt: Date | null durationMs: number | null attempt: number | null sortOrder: number | null } export type AutomationStepExecutionMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null executionId: string | null ruleStepId: string | null stepKey: string | null stepKind: $Enums.AutomationStepKind | null nodeType: string | null status: $Enums.AutomationExecutionStatus | null summaryText: string | null errorText: string | null startedAt: Date | null endedAt: Date | null durationMs: number | null attempt: number | null sortOrder: number | null } export type AutomationStepExecutionCountAggregateOutputType = { id: number createdAt: number updatedAt: number tenantId: number executionId: number ruleStepId: number stepKey: number stepKind: number nodeType: number status: number input: number output: number summaryText: number errorText: number startedAt: number endedAt: number durationMs: number attempt: number sortOrder: number _all: number } export type AutomationStepExecutionAvgAggregateInputType = { durationMs?: true attempt?: true sortOrder?: true } export type AutomationStepExecutionSumAggregateInputType = { durationMs?: true attempt?: true sortOrder?: true } export type AutomationStepExecutionMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true executionId?: true ruleStepId?: true stepKey?: true stepKind?: true nodeType?: true status?: true summaryText?: true errorText?: true startedAt?: true endedAt?: true durationMs?: true attempt?: true sortOrder?: true } export type AutomationStepExecutionMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true executionId?: true ruleStepId?: true stepKey?: true stepKind?: true nodeType?: true status?: true summaryText?: true errorText?: true startedAt?: true endedAt?: true durationMs?: true attempt?: true sortOrder?: true } export type AutomationStepExecutionCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true executionId?: true ruleStepId?: true stepKey?: true stepKind?: true nodeType?: true status?: true input?: true output?: true summaryText?: true errorText?: true startedAt?: true endedAt?: true durationMs?: true attempt?: true sortOrder?: true _all?: true } export type AutomationStepExecutionAggregateArgs = { /** * Filter which AutomationStepExecution to aggregate. */ where?: Prisma.AutomationStepExecutionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AutomationStepExecutions to fetch. */ orderBy?: Prisma.AutomationStepExecutionOrderByWithRelationInput | Prisma.AutomationStepExecutionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AutomationStepExecutionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AutomationStepExecutions 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` AutomationStepExecutions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AutomationStepExecutions **/ _count?: true | AutomationStepExecutionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AutomationStepExecutionAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AutomationStepExecutionSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AutomationStepExecutionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AutomationStepExecutionMaxAggregateInputType } export type GetAutomationStepExecutionAggregateType = { [P in keyof T & keyof AggregateAutomationStepExecution]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AutomationStepExecutionGroupByArgs = { where?: Prisma.AutomationStepExecutionWhereInput orderBy?: Prisma.AutomationStepExecutionOrderByWithAggregationInput | Prisma.AutomationStepExecutionOrderByWithAggregationInput[] by: Prisma.AutomationStepExecutionScalarFieldEnum[] | Prisma.AutomationStepExecutionScalarFieldEnum having?: Prisma.AutomationStepExecutionScalarWhereWithAggregatesInput take?: number skip?: number _count?: AutomationStepExecutionCountAggregateInputType | true _avg?: AutomationStepExecutionAvgAggregateInputType _sum?: AutomationStepExecutionSumAggregateInputType _min?: AutomationStepExecutionMinAggregateInputType _max?: AutomationStepExecutionMaxAggregateInputType } export type AutomationStepExecutionGroupByOutputType = { id: string createdAt: Date updatedAt: Date tenantId: string executionId: string ruleStepId: string | null stepKey: string stepKind: $Enums.AutomationStepKind nodeType: string status: $Enums.AutomationExecutionStatus input: runtime.JsonValue output: runtime.JsonValue summaryText: string errorText: string | null startedAt: Date | null endedAt: Date | null durationMs: number | null attempt: number sortOrder: number _count: AutomationStepExecutionCountAggregateOutputType | null _avg: AutomationStepExecutionAvgAggregateOutputType | null _sum: AutomationStepExecutionSumAggregateOutputType | null _min: AutomationStepExecutionMinAggregateOutputType | null _max: AutomationStepExecutionMaxAggregateOutputType | null } export type GetAutomationStepExecutionGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AutomationStepExecutionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AutomationStepExecutionWhereInput = { AND?: Prisma.AutomationStepExecutionWhereInput | Prisma.AutomationStepExecutionWhereInput[] OR?: Prisma.AutomationStepExecutionWhereInput[] NOT?: Prisma.AutomationStepExecutionWhereInput | Prisma.AutomationStepExecutionWhereInput[] id?: Prisma.StringFilter<"AutomationStepExecution"> | string createdAt?: Prisma.DateTimeFilter<"AutomationStepExecution"> | Date | string updatedAt?: Prisma.DateTimeFilter<"AutomationStepExecution"> | Date | string tenantId?: Prisma.StringFilter<"AutomationStepExecution"> | string executionId?: Prisma.StringFilter<"AutomationStepExecution"> | string ruleStepId?: Prisma.StringNullableFilter<"AutomationStepExecution"> | string | null stepKey?: Prisma.StringFilter<"AutomationStepExecution"> | string stepKind?: Prisma.EnumAutomationStepKindFilter<"AutomationStepExecution"> | $Enums.AutomationStepKind nodeType?: Prisma.StringFilter<"AutomationStepExecution"> | string status?: Prisma.EnumAutomationExecutionStatusFilter<"AutomationStepExecution"> | $Enums.AutomationExecutionStatus input?: Prisma.JsonFilter<"AutomationStepExecution"> output?: Prisma.JsonFilter<"AutomationStepExecution"> summaryText?: Prisma.StringFilter<"AutomationStepExecution"> | string errorText?: Prisma.StringNullableFilter<"AutomationStepExecution"> | string | null startedAt?: Prisma.DateTimeNullableFilter<"AutomationStepExecution"> | Date | string | null endedAt?: Prisma.DateTimeNullableFilter<"AutomationStepExecution"> | Date | string | null durationMs?: Prisma.IntNullableFilter<"AutomationStepExecution"> | number | null attempt?: Prisma.IntFilter<"AutomationStepExecution"> | number sortOrder?: Prisma.IntFilter<"AutomationStepExecution"> | number execution?: Prisma.XOR ruleStep?: Prisma.XOR | null } export type AutomationStepExecutionOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder executionId?: Prisma.SortOrder ruleStepId?: Prisma.SortOrderInput | Prisma.SortOrder stepKey?: Prisma.SortOrder stepKind?: Prisma.SortOrder nodeType?: Prisma.SortOrder status?: Prisma.SortOrder input?: Prisma.SortOrder output?: Prisma.SortOrder summaryText?: Prisma.SortOrder errorText?: Prisma.SortOrderInput | Prisma.SortOrder startedAt?: Prisma.SortOrderInput | Prisma.SortOrder endedAt?: Prisma.SortOrderInput | Prisma.SortOrder durationMs?: Prisma.SortOrderInput | Prisma.SortOrder attempt?: Prisma.SortOrder sortOrder?: Prisma.SortOrder execution?: Prisma.AutomationExecutionOrderByWithRelationInput ruleStep?: Prisma.AutomationRuleStepOrderByWithRelationInput } export type AutomationStepExecutionWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.AutomationStepExecutionWhereInput | Prisma.AutomationStepExecutionWhereInput[] OR?: Prisma.AutomationStepExecutionWhereInput[] NOT?: Prisma.AutomationStepExecutionWhereInput | Prisma.AutomationStepExecutionWhereInput[] createdAt?: Prisma.DateTimeFilter<"AutomationStepExecution"> | Date | string updatedAt?: Prisma.DateTimeFilter<"AutomationStepExecution"> | Date | string tenantId?: Prisma.StringFilter<"AutomationStepExecution"> | string executionId?: Prisma.StringFilter<"AutomationStepExecution"> | string ruleStepId?: Prisma.StringNullableFilter<"AutomationStepExecution"> | string | null stepKey?: Prisma.StringFilter<"AutomationStepExecution"> | string stepKind?: Prisma.EnumAutomationStepKindFilter<"AutomationStepExecution"> | $Enums.AutomationStepKind nodeType?: Prisma.StringFilter<"AutomationStepExecution"> | string status?: Prisma.EnumAutomationExecutionStatusFilter<"AutomationStepExecution"> | $Enums.AutomationExecutionStatus input?: Prisma.JsonFilter<"AutomationStepExecution"> output?: Prisma.JsonFilter<"AutomationStepExecution"> summaryText?: Prisma.StringFilter<"AutomationStepExecution"> | string errorText?: Prisma.StringNullableFilter<"AutomationStepExecution"> | string | null startedAt?: Prisma.DateTimeNullableFilter<"AutomationStepExecution"> | Date | string | null endedAt?: Prisma.DateTimeNullableFilter<"AutomationStepExecution"> | Date | string | null durationMs?: Prisma.IntNullableFilter<"AutomationStepExecution"> | number | null attempt?: Prisma.IntFilter<"AutomationStepExecution"> | number sortOrder?: Prisma.IntFilter<"AutomationStepExecution"> | number execution?: Prisma.XOR ruleStep?: Prisma.XOR | null }, "id"> export type AutomationStepExecutionOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder executionId?: Prisma.SortOrder ruleStepId?: Prisma.SortOrderInput | Prisma.SortOrder stepKey?: Prisma.SortOrder stepKind?: Prisma.SortOrder nodeType?: Prisma.SortOrder status?: Prisma.SortOrder input?: Prisma.SortOrder output?: Prisma.SortOrder summaryText?: Prisma.SortOrder errorText?: Prisma.SortOrderInput | Prisma.SortOrder startedAt?: Prisma.SortOrderInput | Prisma.SortOrder endedAt?: Prisma.SortOrderInput | Prisma.SortOrder durationMs?: Prisma.SortOrderInput | Prisma.SortOrder attempt?: Prisma.SortOrder sortOrder?: Prisma.SortOrder _count?: Prisma.AutomationStepExecutionCountOrderByAggregateInput _avg?: Prisma.AutomationStepExecutionAvgOrderByAggregateInput _max?: Prisma.AutomationStepExecutionMaxOrderByAggregateInput _min?: Prisma.AutomationStepExecutionMinOrderByAggregateInput _sum?: Prisma.AutomationStepExecutionSumOrderByAggregateInput } export type AutomationStepExecutionScalarWhereWithAggregatesInput = { AND?: Prisma.AutomationStepExecutionScalarWhereWithAggregatesInput | Prisma.AutomationStepExecutionScalarWhereWithAggregatesInput[] OR?: Prisma.AutomationStepExecutionScalarWhereWithAggregatesInput[] NOT?: Prisma.AutomationStepExecutionScalarWhereWithAggregatesInput | Prisma.AutomationStepExecutionScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"AutomationStepExecution"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"AutomationStepExecution"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AutomationStepExecution"> | Date | string tenantId?: Prisma.StringWithAggregatesFilter<"AutomationStepExecution"> | string executionId?: Prisma.StringWithAggregatesFilter<"AutomationStepExecution"> | string ruleStepId?: Prisma.StringNullableWithAggregatesFilter<"AutomationStepExecution"> | string | null stepKey?: Prisma.StringWithAggregatesFilter<"AutomationStepExecution"> | string stepKind?: Prisma.EnumAutomationStepKindWithAggregatesFilter<"AutomationStepExecution"> | $Enums.AutomationStepKind nodeType?: Prisma.StringWithAggregatesFilter<"AutomationStepExecution"> | string status?: Prisma.EnumAutomationExecutionStatusWithAggregatesFilter<"AutomationStepExecution"> | $Enums.AutomationExecutionStatus input?: Prisma.JsonWithAggregatesFilter<"AutomationStepExecution"> output?: Prisma.JsonWithAggregatesFilter<"AutomationStepExecution"> summaryText?: Prisma.StringWithAggregatesFilter<"AutomationStepExecution"> | string errorText?: Prisma.StringNullableWithAggregatesFilter<"AutomationStepExecution"> | string | null startedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AutomationStepExecution"> | Date | string | null endedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AutomationStepExecution"> | Date | string | null durationMs?: Prisma.IntNullableWithAggregatesFilter<"AutomationStepExecution"> | number | null attempt?: Prisma.IntWithAggregatesFilter<"AutomationStepExecution"> | number sortOrder?: Prisma.IntWithAggregatesFilter<"AutomationStepExecution"> | number } export type AutomationStepExecutionCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string stepKey: string stepKind: $Enums.AutomationStepKind nodeType: string status?: $Enums.AutomationExecutionStatus input?: Prisma.JsonNullValueInput | runtime.InputJsonValue output?: Prisma.JsonNullValueInput | runtime.InputJsonValue summaryText: string errorText?: string | null startedAt?: Date | string | null endedAt?: Date | string | null durationMs?: number | null attempt?: number sortOrder?: number execution: Prisma.AutomationExecutionCreateNestedOneWithoutStepExecutionsInput ruleStep?: Prisma.AutomationRuleStepCreateNestedOneWithoutStepExecutionsInput } export type AutomationStepExecutionUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string executionId: string ruleStepId?: string | null stepKey: string stepKind: $Enums.AutomationStepKind nodeType: string status?: $Enums.AutomationExecutionStatus input?: Prisma.JsonNullValueInput | runtime.InputJsonValue output?: Prisma.JsonNullValueInput | runtime.InputJsonValue summaryText: string errorText?: string | null startedAt?: Date | string | null endedAt?: Date | string | null durationMs?: number | null attempt?: number sortOrder?: number } export type AutomationStepExecutionUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string stepKey?: Prisma.StringFieldUpdateOperationsInput | string stepKind?: Prisma.EnumAutomationStepKindFieldUpdateOperationsInput | $Enums.AutomationStepKind nodeType?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAutomationExecutionStatusFieldUpdateOperationsInput | $Enums.AutomationExecutionStatus input?: Prisma.JsonNullValueInput | runtime.InputJsonValue output?: Prisma.JsonNullValueInput | runtime.InputJsonValue summaryText?: Prisma.StringFieldUpdateOperationsInput | string errorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null attempt?: Prisma.IntFieldUpdateOperationsInput | number sortOrder?: Prisma.IntFieldUpdateOperationsInput | number execution?: Prisma.AutomationExecutionUpdateOneRequiredWithoutStepExecutionsNestedInput ruleStep?: Prisma.AutomationRuleStepUpdateOneWithoutStepExecutionsNestedInput } export type AutomationStepExecutionUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string executionId?: Prisma.StringFieldUpdateOperationsInput | string ruleStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stepKey?: Prisma.StringFieldUpdateOperationsInput | string stepKind?: Prisma.EnumAutomationStepKindFieldUpdateOperationsInput | $Enums.AutomationStepKind nodeType?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAutomationExecutionStatusFieldUpdateOperationsInput | $Enums.AutomationExecutionStatus input?: Prisma.JsonNullValueInput | runtime.InputJsonValue output?: Prisma.JsonNullValueInput | runtime.InputJsonValue summaryText?: Prisma.StringFieldUpdateOperationsInput | string errorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null attempt?: Prisma.IntFieldUpdateOperationsInput | number sortOrder?: Prisma.IntFieldUpdateOperationsInput | number } export type AutomationStepExecutionCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string executionId: string ruleStepId?: string | null stepKey: string stepKind: $Enums.AutomationStepKind nodeType: string status?: $Enums.AutomationExecutionStatus input?: Prisma.JsonNullValueInput | runtime.InputJsonValue output?: Prisma.JsonNullValueInput | runtime.InputJsonValue summaryText: string errorText?: string | null startedAt?: Date | string | null endedAt?: Date | string | null durationMs?: number | null attempt?: number sortOrder?: number } export type AutomationStepExecutionUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string stepKey?: Prisma.StringFieldUpdateOperationsInput | string stepKind?: Prisma.EnumAutomationStepKindFieldUpdateOperationsInput | $Enums.AutomationStepKind nodeType?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAutomationExecutionStatusFieldUpdateOperationsInput | $Enums.AutomationExecutionStatus input?: Prisma.JsonNullValueInput | runtime.InputJsonValue output?: Prisma.JsonNullValueInput | runtime.InputJsonValue summaryText?: Prisma.StringFieldUpdateOperationsInput | string errorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null attempt?: Prisma.IntFieldUpdateOperationsInput | number sortOrder?: Prisma.IntFieldUpdateOperationsInput | number } export type AutomationStepExecutionUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string executionId?: Prisma.StringFieldUpdateOperationsInput | string ruleStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stepKey?: Prisma.StringFieldUpdateOperationsInput | string stepKind?: Prisma.EnumAutomationStepKindFieldUpdateOperationsInput | $Enums.AutomationStepKind nodeType?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAutomationExecutionStatusFieldUpdateOperationsInput | $Enums.AutomationExecutionStatus input?: Prisma.JsonNullValueInput | runtime.InputJsonValue output?: Prisma.JsonNullValueInput | runtime.InputJsonValue summaryText?: Prisma.StringFieldUpdateOperationsInput | string errorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null attempt?: Prisma.IntFieldUpdateOperationsInput | number sortOrder?: Prisma.IntFieldUpdateOperationsInput | number } export type AutomationStepExecutionListRelationFilter = { every?: Prisma.AutomationStepExecutionWhereInput some?: Prisma.AutomationStepExecutionWhereInput none?: Prisma.AutomationStepExecutionWhereInput } export type AutomationStepExecutionOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type AutomationStepExecutionCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder executionId?: Prisma.SortOrder ruleStepId?: Prisma.SortOrder stepKey?: Prisma.SortOrder stepKind?: Prisma.SortOrder nodeType?: Prisma.SortOrder status?: Prisma.SortOrder input?: Prisma.SortOrder output?: Prisma.SortOrder summaryText?: Prisma.SortOrder errorText?: Prisma.SortOrder startedAt?: Prisma.SortOrder endedAt?: Prisma.SortOrder durationMs?: Prisma.SortOrder attempt?: Prisma.SortOrder sortOrder?: Prisma.SortOrder } export type AutomationStepExecutionAvgOrderByAggregateInput = { durationMs?: Prisma.SortOrder attempt?: Prisma.SortOrder sortOrder?: Prisma.SortOrder } export type AutomationStepExecutionMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder executionId?: Prisma.SortOrder ruleStepId?: Prisma.SortOrder stepKey?: Prisma.SortOrder stepKind?: Prisma.SortOrder nodeType?: Prisma.SortOrder status?: Prisma.SortOrder summaryText?: Prisma.SortOrder errorText?: Prisma.SortOrder startedAt?: Prisma.SortOrder endedAt?: Prisma.SortOrder durationMs?: Prisma.SortOrder attempt?: Prisma.SortOrder sortOrder?: Prisma.SortOrder } export type AutomationStepExecutionMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder executionId?: Prisma.SortOrder ruleStepId?: Prisma.SortOrder stepKey?: Prisma.SortOrder stepKind?: Prisma.SortOrder nodeType?: Prisma.SortOrder status?: Prisma.SortOrder summaryText?: Prisma.SortOrder errorText?: Prisma.SortOrder startedAt?: Prisma.SortOrder endedAt?: Prisma.SortOrder durationMs?: Prisma.SortOrder attempt?: Prisma.SortOrder sortOrder?: Prisma.SortOrder } export type AutomationStepExecutionSumOrderByAggregateInput = { durationMs?: Prisma.SortOrder attempt?: Prisma.SortOrder sortOrder?: Prisma.SortOrder } export type AutomationStepExecutionCreateNestedManyWithoutRuleStepInput = { create?: Prisma.XOR | Prisma.AutomationStepExecutionCreateWithoutRuleStepInput[] | Prisma.AutomationStepExecutionUncheckedCreateWithoutRuleStepInput[] connectOrCreate?: Prisma.AutomationStepExecutionCreateOrConnectWithoutRuleStepInput | Prisma.AutomationStepExecutionCreateOrConnectWithoutRuleStepInput[] createMany?: Prisma.AutomationStepExecutionCreateManyRuleStepInputEnvelope connect?: Prisma.AutomationStepExecutionWhereUniqueInput | Prisma.AutomationStepExecutionWhereUniqueInput[] } export type AutomationStepExecutionUncheckedCreateNestedManyWithoutRuleStepInput = { create?: Prisma.XOR | Prisma.AutomationStepExecutionCreateWithoutRuleStepInput[] | Prisma.AutomationStepExecutionUncheckedCreateWithoutRuleStepInput[] connectOrCreate?: Prisma.AutomationStepExecutionCreateOrConnectWithoutRuleStepInput | Prisma.AutomationStepExecutionCreateOrConnectWithoutRuleStepInput[] createMany?: Prisma.AutomationStepExecutionCreateManyRuleStepInputEnvelope connect?: Prisma.AutomationStepExecutionWhereUniqueInput | Prisma.AutomationStepExecutionWhereUniqueInput[] } export type AutomationStepExecutionUpdateManyWithoutRuleStepNestedInput = { create?: Prisma.XOR | Prisma.AutomationStepExecutionCreateWithoutRuleStepInput[] | Prisma.AutomationStepExecutionUncheckedCreateWithoutRuleStepInput[] connectOrCreate?: Prisma.AutomationStepExecutionCreateOrConnectWithoutRuleStepInput | Prisma.AutomationStepExecutionCreateOrConnectWithoutRuleStepInput[] upsert?: Prisma.AutomationStepExecutionUpsertWithWhereUniqueWithoutRuleStepInput | Prisma.AutomationStepExecutionUpsertWithWhereUniqueWithoutRuleStepInput[] createMany?: Prisma.AutomationStepExecutionCreateManyRuleStepInputEnvelope set?: Prisma.AutomationStepExecutionWhereUniqueInput | Prisma.AutomationStepExecutionWhereUniqueInput[] disconnect?: Prisma.AutomationStepExecutionWhereUniqueInput | Prisma.AutomationStepExecutionWhereUniqueInput[] delete?: Prisma.AutomationStepExecutionWhereUniqueInput | Prisma.AutomationStepExecutionWhereUniqueInput[] connect?: Prisma.AutomationStepExecutionWhereUniqueInput | Prisma.AutomationStepExecutionWhereUniqueInput[] update?: Prisma.AutomationStepExecutionUpdateWithWhereUniqueWithoutRuleStepInput | Prisma.AutomationStepExecutionUpdateWithWhereUniqueWithoutRuleStepInput[] updateMany?: Prisma.AutomationStepExecutionUpdateManyWithWhereWithoutRuleStepInput | Prisma.AutomationStepExecutionUpdateManyWithWhereWithoutRuleStepInput[] deleteMany?: Prisma.AutomationStepExecutionScalarWhereInput | Prisma.AutomationStepExecutionScalarWhereInput[] } export type AutomationStepExecutionUncheckedUpdateManyWithoutRuleStepNestedInput = { create?: Prisma.XOR | Prisma.AutomationStepExecutionCreateWithoutRuleStepInput[] | Prisma.AutomationStepExecutionUncheckedCreateWithoutRuleStepInput[] connectOrCreate?: Prisma.AutomationStepExecutionCreateOrConnectWithoutRuleStepInput | Prisma.AutomationStepExecutionCreateOrConnectWithoutRuleStepInput[] upsert?: Prisma.AutomationStepExecutionUpsertWithWhereUniqueWithoutRuleStepInput | Prisma.AutomationStepExecutionUpsertWithWhereUniqueWithoutRuleStepInput[] createMany?: Prisma.AutomationStepExecutionCreateManyRuleStepInputEnvelope set?: Prisma.AutomationStepExecutionWhereUniqueInput | Prisma.AutomationStepExecutionWhereUniqueInput[] disconnect?: Prisma.AutomationStepExecutionWhereUniqueInput | Prisma.AutomationStepExecutionWhereUniqueInput[] delete?: Prisma.AutomationStepExecutionWhereUniqueInput | Prisma.AutomationStepExecutionWhereUniqueInput[] connect?: Prisma.AutomationStepExecutionWhereUniqueInput | Prisma.AutomationStepExecutionWhereUniqueInput[] update?: Prisma.AutomationStepExecutionUpdateWithWhereUniqueWithoutRuleStepInput | Prisma.AutomationStepExecutionUpdateWithWhereUniqueWithoutRuleStepInput[] updateMany?: Prisma.AutomationStepExecutionUpdateManyWithWhereWithoutRuleStepInput | Prisma.AutomationStepExecutionUpdateManyWithWhereWithoutRuleStepInput[] deleteMany?: Prisma.AutomationStepExecutionScalarWhereInput | Prisma.AutomationStepExecutionScalarWhereInput[] } export type AutomationStepExecutionCreateNestedManyWithoutExecutionInput = { create?: Prisma.XOR | Prisma.AutomationStepExecutionCreateWithoutExecutionInput[] | Prisma.AutomationStepExecutionUncheckedCreateWithoutExecutionInput[] connectOrCreate?: Prisma.AutomationStepExecutionCreateOrConnectWithoutExecutionInput | Prisma.AutomationStepExecutionCreateOrConnectWithoutExecutionInput[] createMany?: Prisma.AutomationStepExecutionCreateManyExecutionInputEnvelope connect?: Prisma.AutomationStepExecutionWhereUniqueInput | Prisma.AutomationStepExecutionWhereUniqueInput[] } export type AutomationStepExecutionUncheckedCreateNestedManyWithoutExecutionInput = { create?: Prisma.XOR | Prisma.AutomationStepExecutionCreateWithoutExecutionInput[] | Prisma.AutomationStepExecutionUncheckedCreateWithoutExecutionInput[] connectOrCreate?: Prisma.AutomationStepExecutionCreateOrConnectWithoutExecutionInput | Prisma.AutomationStepExecutionCreateOrConnectWithoutExecutionInput[] createMany?: Prisma.AutomationStepExecutionCreateManyExecutionInputEnvelope connect?: Prisma.AutomationStepExecutionWhereUniqueInput | Prisma.AutomationStepExecutionWhereUniqueInput[] } export type AutomationStepExecutionUpdateManyWithoutExecutionNestedInput = { create?: Prisma.XOR | Prisma.AutomationStepExecutionCreateWithoutExecutionInput[] | Prisma.AutomationStepExecutionUncheckedCreateWithoutExecutionInput[] connectOrCreate?: Prisma.AutomationStepExecutionCreateOrConnectWithoutExecutionInput | Prisma.AutomationStepExecutionCreateOrConnectWithoutExecutionInput[] upsert?: Prisma.AutomationStepExecutionUpsertWithWhereUniqueWithoutExecutionInput | Prisma.AutomationStepExecutionUpsertWithWhereUniqueWithoutExecutionInput[] createMany?: Prisma.AutomationStepExecutionCreateManyExecutionInputEnvelope set?: Prisma.AutomationStepExecutionWhereUniqueInput | Prisma.AutomationStepExecutionWhereUniqueInput[] disconnect?: Prisma.AutomationStepExecutionWhereUniqueInput | Prisma.AutomationStepExecutionWhereUniqueInput[] delete?: Prisma.AutomationStepExecutionWhereUniqueInput | Prisma.AutomationStepExecutionWhereUniqueInput[] connect?: Prisma.AutomationStepExecutionWhereUniqueInput | Prisma.AutomationStepExecutionWhereUniqueInput[] update?: Prisma.AutomationStepExecutionUpdateWithWhereUniqueWithoutExecutionInput | Prisma.AutomationStepExecutionUpdateWithWhereUniqueWithoutExecutionInput[] updateMany?: Prisma.AutomationStepExecutionUpdateManyWithWhereWithoutExecutionInput | Prisma.AutomationStepExecutionUpdateManyWithWhereWithoutExecutionInput[] deleteMany?: Prisma.AutomationStepExecutionScalarWhereInput | Prisma.AutomationStepExecutionScalarWhereInput[] } export type AutomationStepExecutionUncheckedUpdateManyWithoutExecutionNestedInput = { create?: Prisma.XOR | Prisma.AutomationStepExecutionCreateWithoutExecutionInput[] | Prisma.AutomationStepExecutionUncheckedCreateWithoutExecutionInput[] connectOrCreate?: Prisma.AutomationStepExecutionCreateOrConnectWithoutExecutionInput | Prisma.AutomationStepExecutionCreateOrConnectWithoutExecutionInput[] upsert?: Prisma.AutomationStepExecutionUpsertWithWhereUniqueWithoutExecutionInput | Prisma.AutomationStepExecutionUpsertWithWhereUniqueWithoutExecutionInput[] createMany?: Prisma.AutomationStepExecutionCreateManyExecutionInputEnvelope set?: Prisma.AutomationStepExecutionWhereUniqueInput | Prisma.AutomationStepExecutionWhereUniqueInput[] disconnect?: Prisma.AutomationStepExecutionWhereUniqueInput | Prisma.AutomationStepExecutionWhereUniqueInput[] delete?: Prisma.AutomationStepExecutionWhereUniqueInput | Prisma.AutomationStepExecutionWhereUniqueInput[] connect?: Prisma.AutomationStepExecutionWhereUniqueInput | Prisma.AutomationStepExecutionWhereUniqueInput[] update?: Prisma.AutomationStepExecutionUpdateWithWhereUniqueWithoutExecutionInput | Prisma.AutomationStepExecutionUpdateWithWhereUniqueWithoutExecutionInput[] updateMany?: Prisma.AutomationStepExecutionUpdateManyWithWhereWithoutExecutionInput | Prisma.AutomationStepExecutionUpdateManyWithWhereWithoutExecutionInput[] deleteMany?: Prisma.AutomationStepExecutionScalarWhereInput | Prisma.AutomationStepExecutionScalarWhereInput[] } export type AutomationStepExecutionCreateWithoutRuleStepInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string stepKey: string stepKind: $Enums.AutomationStepKind nodeType: string status?: $Enums.AutomationExecutionStatus input?: Prisma.JsonNullValueInput | runtime.InputJsonValue output?: Prisma.JsonNullValueInput | runtime.InputJsonValue summaryText: string errorText?: string | null startedAt?: Date | string | null endedAt?: Date | string | null durationMs?: number | null attempt?: number sortOrder?: number execution: Prisma.AutomationExecutionCreateNestedOneWithoutStepExecutionsInput } export type AutomationStepExecutionUncheckedCreateWithoutRuleStepInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string executionId: string stepKey: string stepKind: $Enums.AutomationStepKind nodeType: string status?: $Enums.AutomationExecutionStatus input?: Prisma.JsonNullValueInput | runtime.InputJsonValue output?: Prisma.JsonNullValueInput | runtime.InputJsonValue summaryText: string errorText?: string | null startedAt?: Date | string | null endedAt?: Date | string | null durationMs?: number | null attempt?: number sortOrder?: number } export type AutomationStepExecutionCreateOrConnectWithoutRuleStepInput = { where: Prisma.AutomationStepExecutionWhereUniqueInput create: Prisma.XOR } export type AutomationStepExecutionCreateManyRuleStepInputEnvelope = { data: Prisma.AutomationStepExecutionCreateManyRuleStepInput | Prisma.AutomationStepExecutionCreateManyRuleStepInput[] skipDuplicates?: boolean } export type AutomationStepExecutionUpsertWithWhereUniqueWithoutRuleStepInput = { where: Prisma.AutomationStepExecutionWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type AutomationStepExecutionUpdateWithWhereUniqueWithoutRuleStepInput = { where: Prisma.AutomationStepExecutionWhereUniqueInput data: Prisma.XOR } export type AutomationStepExecutionUpdateManyWithWhereWithoutRuleStepInput = { where: Prisma.AutomationStepExecutionScalarWhereInput data: Prisma.XOR } export type AutomationStepExecutionScalarWhereInput = { AND?: Prisma.AutomationStepExecutionScalarWhereInput | Prisma.AutomationStepExecutionScalarWhereInput[] OR?: Prisma.AutomationStepExecutionScalarWhereInput[] NOT?: Prisma.AutomationStepExecutionScalarWhereInput | Prisma.AutomationStepExecutionScalarWhereInput[] id?: Prisma.StringFilter<"AutomationStepExecution"> | string createdAt?: Prisma.DateTimeFilter<"AutomationStepExecution"> | Date | string updatedAt?: Prisma.DateTimeFilter<"AutomationStepExecution"> | Date | string tenantId?: Prisma.StringFilter<"AutomationStepExecution"> | string executionId?: Prisma.StringFilter<"AutomationStepExecution"> | string ruleStepId?: Prisma.StringNullableFilter<"AutomationStepExecution"> | string | null stepKey?: Prisma.StringFilter<"AutomationStepExecution"> | string stepKind?: Prisma.EnumAutomationStepKindFilter<"AutomationStepExecution"> | $Enums.AutomationStepKind nodeType?: Prisma.StringFilter<"AutomationStepExecution"> | string status?: Prisma.EnumAutomationExecutionStatusFilter<"AutomationStepExecution"> | $Enums.AutomationExecutionStatus input?: Prisma.JsonFilter<"AutomationStepExecution"> output?: Prisma.JsonFilter<"AutomationStepExecution"> summaryText?: Prisma.StringFilter<"AutomationStepExecution"> | string errorText?: Prisma.StringNullableFilter<"AutomationStepExecution"> | string | null startedAt?: Prisma.DateTimeNullableFilter<"AutomationStepExecution"> | Date | string | null endedAt?: Prisma.DateTimeNullableFilter<"AutomationStepExecution"> | Date | string | null durationMs?: Prisma.IntNullableFilter<"AutomationStepExecution"> | number | null attempt?: Prisma.IntFilter<"AutomationStepExecution"> | number sortOrder?: Prisma.IntFilter<"AutomationStepExecution"> | number } export type AutomationStepExecutionCreateWithoutExecutionInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string stepKey: string stepKind: $Enums.AutomationStepKind nodeType: string status?: $Enums.AutomationExecutionStatus input?: Prisma.JsonNullValueInput | runtime.InputJsonValue output?: Prisma.JsonNullValueInput | runtime.InputJsonValue summaryText: string errorText?: string | null startedAt?: Date | string | null endedAt?: Date | string | null durationMs?: number | null attempt?: number sortOrder?: number ruleStep?: Prisma.AutomationRuleStepCreateNestedOneWithoutStepExecutionsInput } export type AutomationStepExecutionUncheckedCreateWithoutExecutionInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string ruleStepId?: string | null stepKey: string stepKind: $Enums.AutomationStepKind nodeType: string status?: $Enums.AutomationExecutionStatus input?: Prisma.JsonNullValueInput | runtime.InputJsonValue output?: Prisma.JsonNullValueInput | runtime.InputJsonValue summaryText: string errorText?: string | null startedAt?: Date | string | null endedAt?: Date | string | null durationMs?: number | null attempt?: number sortOrder?: number } export type AutomationStepExecutionCreateOrConnectWithoutExecutionInput = { where: Prisma.AutomationStepExecutionWhereUniqueInput create: Prisma.XOR } export type AutomationStepExecutionCreateManyExecutionInputEnvelope = { data: Prisma.AutomationStepExecutionCreateManyExecutionInput | Prisma.AutomationStepExecutionCreateManyExecutionInput[] skipDuplicates?: boolean } export type AutomationStepExecutionUpsertWithWhereUniqueWithoutExecutionInput = { where: Prisma.AutomationStepExecutionWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type AutomationStepExecutionUpdateWithWhereUniqueWithoutExecutionInput = { where: Prisma.AutomationStepExecutionWhereUniqueInput data: Prisma.XOR } export type AutomationStepExecutionUpdateManyWithWhereWithoutExecutionInput = { where: Prisma.AutomationStepExecutionScalarWhereInput data: Prisma.XOR } export type AutomationStepExecutionCreateManyRuleStepInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string executionId: string stepKey: string stepKind: $Enums.AutomationStepKind nodeType: string status?: $Enums.AutomationExecutionStatus input?: Prisma.JsonNullValueInput | runtime.InputJsonValue output?: Prisma.JsonNullValueInput | runtime.InputJsonValue summaryText: string errorText?: string | null startedAt?: Date | string | null endedAt?: Date | string | null durationMs?: number | null attempt?: number sortOrder?: number } export type AutomationStepExecutionUpdateWithoutRuleStepInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string stepKey?: Prisma.StringFieldUpdateOperationsInput | string stepKind?: Prisma.EnumAutomationStepKindFieldUpdateOperationsInput | $Enums.AutomationStepKind nodeType?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAutomationExecutionStatusFieldUpdateOperationsInput | $Enums.AutomationExecutionStatus input?: Prisma.JsonNullValueInput | runtime.InputJsonValue output?: Prisma.JsonNullValueInput | runtime.InputJsonValue summaryText?: Prisma.StringFieldUpdateOperationsInput | string errorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null attempt?: Prisma.IntFieldUpdateOperationsInput | number sortOrder?: Prisma.IntFieldUpdateOperationsInput | number execution?: Prisma.AutomationExecutionUpdateOneRequiredWithoutStepExecutionsNestedInput } export type AutomationStepExecutionUncheckedUpdateWithoutRuleStepInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string executionId?: Prisma.StringFieldUpdateOperationsInput | string stepKey?: Prisma.StringFieldUpdateOperationsInput | string stepKind?: Prisma.EnumAutomationStepKindFieldUpdateOperationsInput | $Enums.AutomationStepKind nodeType?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAutomationExecutionStatusFieldUpdateOperationsInput | $Enums.AutomationExecutionStatus input?: Prisma.JsonNullValueInput | runtime.InputJsonValue output?: Prisma.JsonNullValueInput | runtime.InputJsonValue summaryText?: Prisma.StringFieldUpdateOperationsInput | string errorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null attempt?: Prisma.IntFieldUpdateOperationsInput | number sortOrder?: Prisma.IntFieldUpdateOperationsInput | number } export type AutomationStepExecutionUncheckedUpdateManyWithoutRuleStepInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string executionId?: Prisma.StringFieldUpdateOperationsInput | string stepKey?: Prisma.StringFieldUpdateOperationsInput | string stepKind?: Prisma.EnumAutomationStepKindFieldUpdateOperationsInput | $Enums.AutomationStepKind nodeType?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAutomationExecutionStatusFieldUpdateOperationsInput | $Enums.AutomationExecutionStatus input?: Prisma.JsonNullValueInput | runtime.InputJsonValue output?: Prisma.JsonNullValueInput | runtime.InputJsonValue summaryText?: Prisma.StringFieldUpdateOperationsInput | string errorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null attempt?: Prisma.IntFieldUpdateOperationsInput | number sortOrder?: Prisma.IntFieldUpdateOperationsInput | number } export type AutomationStepExecutionCreateManyExecutionInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string ruleStepId?: string | null stepKey: string stepKind: $Enums.AutomationStepKind nodeType: string status?: $Enums.AutomationExecutionStatus input?: Prisma.JsonNullValueInput | runtime.InputJsonValue output?: Prisma.JsonNullValueInput | runtime.InputJsonValue summaryText: string errorText?: string | null startedAt?: Date | string | null endedAt?: Date | string | null durationMs?: number | null attempt?: number sortOrder?: number } export type AutomationStepExecutionUpdateWithoutExecutionInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string stepKey?: Prisma.StringFieldUpdateOperationsInput | string stepKind?: Prisma.EnumAutomationStepKindFieldUpdateOperationsInput | $Enums.AutomationStepKind nodeType?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAutomationExecutionStatusFieldUpdateOperationsInput | $Enums.AutomationExecutionStatus input?: Prisma.JsonNullValueInput | runtime.InputJsonValue output?: Prisma.JsonNullValueInput | runtime.InputJsonValue summaryText?: Prisma.StringFieldUpdateOperationsInput | string errorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null attempt?: Prisma.IntFieldUpdateOperationsInput | number sortOrder?: Prisma.IntFieldUpdateOperationsInput | number ruleStep?: Prisma.AutomationRuleStepUpdateOneWithoutStepExecutionsNestedInput } export type AutomationStepExecutionUncheckedUpdateWithoutExecutionInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string ruleStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stepKey?: Prisma.StringFieldUpdateOperationsInput | string stepKind?: Prisma.EnumAutomationStepKindFieldUpdateOperationsInput | $Enums.AutomationStepKind nodeType?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAutomationExecutionStatusFieldUpdateOperationsInput | $Enums.AutomationExecutionStatus input?: Prisma.JsonNullValueInput | runtime.InputJsonValue output?: Prisma.JsonNullValueInput | runtime.InputJsonValue summaryText?: Prisma.StringFieldUpdateOperationsInput | string errorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null attempt?: Prisma.IntFieldUpdateOperationsInput | number sortOrder?: Prisma.IntFieldUpdateOperationsInput | number } export type AutomationStepExecutionUncheckedUpdateManyWithoutExecutionInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string ruleStepId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null stepKey?: Prisma.StringFieldUpdateOperationsInput | string stepKind?: Prisma.EnumAutomationStepKindFieldUpdateOperationsInput | $Enums.AutomationStepKind nodeType?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.EnumAutomationExecutionStatusFieldUpdateOperationsInput | $Enums.AutomationExecutionStatus input?: Prisma.JsonNullValueInput | runtime.InputJsonValue output?: Prisma.JsonNullValueInput | runtime.InputJsonValue summaryText?: Prisma.StringFieldUpdateOperationsInput | string errorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null attempt?: Prisma.IntFieldUpdateOperationsInput | number sortOrder?: Prisma.IntFieldUpdateOperationsInput | number } export type AutomationStepExecutionSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean executionId?: boolean ruleStepId?: boolean stepKey?: boolean stepKind?: boolean nodeType?: boolean status?: boolean input?: boolean output?: boolean summaryText?: boolean errorText?: boolean startedAt?: boolean endedAt?: boolean durationMs?: boolean attempt?: boolean sortOrder?: boolean execution?: boolean | Prisma.AutomationExecutionDefaultArgs ruleStep?: boolean | Prisma.AutomationStepExecution$ruleStepArgs }, ExtArgs["result"]["automationStepExecution"]> export type AutomationStepExecutionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean executionId?: boolean ruleStepId?: boolean stepKey?: boolean stepKind?: boolean nodeType?: boolean status?: boolean input?: boolean output?: boolean summaryText?: boolean errorText?: boolean startedAt?: boolean endedAt?: boolean durationMs?: boolean attempt?: boolean sortOrder?: boolean execution?: boolean | Prisma.AutomationExecutionDefaultArgs ruleStep?: boolean | Prisma.AutomationStepExecution$ruleStepArgs }, ExtArgs["result"]["automationStepExecution"]> export type AutomationStepExecutionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean executionId?: boolean ruleStepId?: boolean stepKey?: boolean stepKind?: boolean nodeType?: boolean status?: boolean input?: boolean output?: boolean summaryText?: boolean errorText?: boolean startedAt?: boolean endedAt?: boolean durationMs?: boolean attempt?: boolean sortOrder?: boolean execution?: boolean | Prisma.AutomationExecutionDefaultArgs ruleStep?: boolean | Prisma.AutomationStepExecution$ruleStepArgs }, ExtArgs["result"]["automationStepExecution"]> export type AutomationStepExecutionSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean executionId?: boolean ruleStepId?: boolean stepKey?: boolean stepKind?: boolean nodeType?: boolean status?: boolean input?: boolean output?: boolean summaryText?: boolean errorText?: boolean startedAt?: boolean endedAt?: boolean durationMs?: boolean attempt?: boolean sortOrder?: boolean } export type AutomationStepExecutionOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "executionId" | "ruleStepId" | "stepKey" | "stepKind" | "nodeType" | "status" | "input" | "output" | "summaryText" | "errorText" | "startedAt" | "endedAt" | "durationMs" | "attempt" | "sortOrder", ExtArgs["result"]["automationStepExecution"]> export type AutomationStepExecutionInclude = { execution?: boolean | Prisma.AutomationExecutionDefaultArgs ruleStep?: boolean | Prisma.AutomationStepExecution$ruleStepArgs } export type AutomationStepExecutionIncludeCreateManyAndReturn = { execution?: boolean | Prisma.AutomationExecutionDefaultArgs ruleStep?: boolean | Prisma.AutomationStepExecution$ruleStepArgs } export type AutomationStepExecutionIncludeUpdateManyAndReturn = { execution?: boolean | Prisma.AutomationExecutionDefaultArgs ruleStep?: boolean | Prisma.AutomationStepExecution$ruleStepArgs } export type $AutomationStepExecutionPayload = { name: "AutomationStepExecution" objects: { execution: Prisma.$AutomationExecutionPayload ruleStep: Prisma.$AutomationRuleStepPayload | null } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date tenantId: string executionId: string ruleStepId: string | null stepKey: string stepKind: $Enums.AutomationStepKind nodeType: string status: $Enums.AutomationExecutionStatus input: runtime.JsonValue output: runtime.JsonValue summaryText: string errorText: string | null startedAt: Date | null endedAt: Date | null durationMs: number | null attempt: number sortOrder: number }, ExtArgs["result"]["automationStepExecution"]> composites: {} } export type AutomationStepExecutionGetPayload = runtime.Types.Result.GetResult export type AutomationStepExecutionCountArgs = Omit & { select?: AutomationStepExecutionCountAggregateInputType | true } export interface AutomationStepExecutionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AutomationStepExecution'], meta: { name: 'AutomationStepExecution' } } /** * Find zero or one AutomationStepExecution that matches the filter. * @param {AutomationStepExecutionFindUniqueArgs} args - Arguments to find a AutomationStepExecution * @example * // Get one AutomationStepExecution * const automationStepExecution = await prisma.automationStepExecution.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationStepExecutionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AutomationStepExecution that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AutomationStepExecutionFindUniqueOrThrowArgs} args - Arguments to find a AutomationStepExecution * @example * // Get one AutomationStepExecution * const automationStepExecution = await prisma.automationStepExecution.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationStepExecutionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AutomationStepExecution 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 {AutomationStepExecutionFindFirstArgs} args - Arguments to find a AutomationStepExecution * @example * // Get one AutomationStepExecution * const automationStepExecution = await prisma.automationStepExecution.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AutomationStepExecutionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AutomationStepExecution 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 {AutomationStepExecutionFindFirstOrThrowArgs} args - Arguments to find a AutomationStepExecution * @example * // Get one AutomationStepExecution * const automationStepExecution = await prisma.automationStepExecution.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AutomationStepExecutionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AutomationStepExecutions 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 {AutomationStepExecutionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AutomationStepExecutions * const automationStepExecutions = await prisma.automationStepExecution.findMany() * * // Get first 10 AutomationStepExecutions * const automationStepExecutions = await prisma.automationStepExecution.findMany({ take: 10 }) * * // Only select the `id` * const automationStepExecutionWithIdOnly = await prisma.automationStepExecution.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a AutomationStepExecution. * @param {AutomationStepExecutionCreateArgs} args - Arguments to create a AutomationStepExecution. * @example * // Create one AutomationStepExecution * const AutomationStepExecution = await prisma.automationStepExecution.create({ * data: { * // ... data to create a AutomationStepExecution * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationStepExecutionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AutomationStepExecutions. * @param {AutomationStepExecutionCreateManyArgs} args - Arguments to create many AutomationStepExecutions. * @example * // Create many AutomationStepExecutions * const automationStepExecution = await prisma.automationStepExecution.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many AutomationStepExecutions and returns the data saved in the database. * @param {AutomationStepExecutionCreateManyAndReturnArgs} args - Arguments to create many AutomationStepExecutions. * @example * // Create many AutomationStepExecutions * const automationStepExecution = await prisma.automationStepExecution.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AutomationStepExecutions and only return the `id` * const automationStepExecutionWithIdOnly = await prisma.automationStepExecution.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 AutomationStepExecution. * @param {AutomationStepExecutionDeleteArgs} args - Arguments to delete one AutomationStepExecution. * @example * // Delete one AutomationStepExecution * const AutomationStepExecution = await prisma.automationStepExecution.delete({ * where: { * // ... filter to delete one AutomationStepExecution * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationStepExecutionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AutomationStepExecution. * @param {AutomationStepExecutionUpdateArgs} args - Arguments to update one AutomationStepExecution. * @example * // Update one AutomationStepExecution * const automationStepExecution = await prisma.automationStepExecution.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationStepExecutionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AutomationStepExecutions. * @param {AutomationStepExecutionDeleteManyArgs} args - Arguments to filter AutomationStepExecutions to delete. * @example * // Delete a few AutomationStepExecutions * const { count } = await prisma.automationStepExecution.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AutomationStepExecutions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AutomationStepExecutionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AutomationStepExecutions * const automationStepExecution = await prisma.automationStepExecution.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AutomationStepExecutions and returns the data updated in the database. * @param {AutomationStepExecutionUpdateManyAndReturnArgs} args - Arguments to update many AutomationStepExecutions. * @example * // Update many AutomationStepExecutions * const automationStepExecution = await prisma.automationStepExecution.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AutomationStepExecutions and only return the `id` * const automationStepExecutionWithIdOnly = await prisma.automationStepExecution.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 AutomationStepExecution. * @param {AutomationStepExecutionUpsertArgs} args - Arguments to update or create a AutomationStepExecution. * @example * // Update or create a AutomationStepExecution * const automationStepExecution = await prisma.automationStepExecution.upsert({ * create: { * // ... data to create a AutomationStepExecution * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AutomationStepExecution we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AutomationStepExecutionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AutomationStepExecutions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AutomationStepExecutionCountArgs} args - Arguments to filter AutomationStepExecutions to count. * @example * // Count the number of AutomationStepExecutions * const count = await prisma.automationStepExecution.count({ * where: { * // ... the filter for the AutomationStepExecutions 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 AutomationStepExecution. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AutomationStepExecutionAggregateArgs} 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 AutomationStepExecution. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AutomationStepExecutionGroupByArgs} 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 AutomationStepExecutionGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AutomationStepExecutionGroupByArgs['orderBy'] } : { orderBy?: AutomationStepExecutionGroupByArgs['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 ? GetAutomationStepExecutionGroupByPayload : Prisma.PrismaPromise /** * Fields of the AutomationStepExecution model */ readonly fields: AutomationStepExecutionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AutomationStepExecution. * 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__AutomationStepExecutionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" execution = {}>(args?: Prisma.Subset>): Prisma.Prisma__AutomationExecutionClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> ruleStep = {}>(args?: Prisma.Subset>): Prisma.Prisma__AutomationRuleStepClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * 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 AutomationStepExecution model */ export interface AutomationStepExecutionFieldRefs { readonly id: Prisma.FieldRef<"AutomationStepExecution", 'String'> readonly createdAt: Prisma.FieldRef<"AutomationStepExecution", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"AutomationStepExecution", 'DateTime'> readonly tenantId: Prisma.FieldRef<"AutomationStepExecution", 'String'> readonly executionId: Prisma.FieldRef<"AutomationStepExecution", 'String'> readonly ruleStepId: Prisma.FieldRef<"AutomationStepExecution", 'String'> readonly stepKey: Prisma.FieldRef<"AutomationStepExecution", 'String'> readonly stepKind: Prisma.FieldRef<"AutomationStepExecution", 'AutomationStepKind'> readonly nodeType: Prisma.FieldRef<"AutomationStepExecution", 'String'> readonly status: Prisma.FieldRef<"AutomationStepExecution", 'AutomationExecutionStatus'> readonly input: Prisma.FieldRef<"AutomationStepExecution", 'Json'> readonly output: Prisma.FieldRef<"AutomationStepExecution", 'Json'> readonly summaryText: Prisma.FieldRef<"AutomationStepExecution", 'String'> readonly errorText: Prisma.FieldRef<"AutomationStepExecution", 'String'> readonly startedAt: Prisma.FieldRef<"AutomationStepExecution", 'DateTime'> readonly endedAt: Prisma.FieldRef<"AutomationStepExecution", 'DateTime'> readonly durationMs: Prisma.FieldRef<"AutomationStepExecution", 'Int'> readonly attempt: Prisma.FieldRef<"AutomationStepExecution", 'Int'> readonly sortOrder: Prisma.FieldRef<"AutomationStepExecution", 'Int'> } // Custom InputTypes /** * AutomationStepExecution findUnique */ export type AutomationStepExecutionFindUniqueArgs = { /** * 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 /** * Filter, which AutomationStepExecution to fetch. */ where: Prisma.AutomationStepExecutionWhereUniqueInput } /** * AutomationStepExecution findUniqueOrThrow */ export type AutomationStepExecutionFindUniqueOrThrowArgs = { /** * 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 /** * Filter, which AutomationStepExecution to fetch. */ where: Prisma.AutomationStepExecutionWhereUniqueInput } /** * AutomationStepExecution findFirst */ export type AutomationStepExecutionFindFirstArgs = { /** * 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 /** * Filter, which AutomationStepExecution to fetch. */ where?: Prisma.AutomationStepExecutionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AutomationStepExecutions to fetch. */ orderBy?: Prisma.AutomationStepExecutionOrderByWithRelationInput | Prisma.AutomationStepExecutionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AutomationStepExecutions. */ cursor?: Prisma.AutomationStepExecutionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AutomationStepExecutions 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` AutomationStepExecutions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AutomationStepExecutions. */ distinct?: Prisma.AutomationStepExecutionScalarFieldEnum | Prisma.AutomationStepExecutionScalarFieldEnum[] } /** * AutomationStepExecution findFirstOrThrow */ export type AutomationStepExecutionFindFirstOrThrowArgs = { /** * 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 /** * Filter, which AutomationStepExecution to fetch. */ where?: Prisma.AutomationStepExecutionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AutomationStepExecutions to fetch. */ orderBy?: Prisma.AutomationStepExecutionOrderByWithRelationInput | Prisma.AutomationStepExecutionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AutomationStepExecutions. */ cursor?: Prisma.AutomationStepExecutionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AutomationStepExecutions 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` AutomationStepExecutions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AutomationStepExecutions. */ distinct?: Prisma.AutomationStepExecutionScalarFieldEnum | Prisma.AutomationStepExecutionScalarFieldEnum[] } /** * AutomationStepExecution findMany */ export type AutomationStepExecutionFindManyArgs = { /** * 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 /** * Filter, which AutomationStepExecutions to fetch. */ where?: Prisma.AutomationStepExecutionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AutomationStepExecutions to fetch. */ orderBy?: Prisma.AutomationStepExecutionOrderByWithRelationInput | Prisma.AutomationStepExecutionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AutomationStepExecutions. */ cursor?: Prisma.AutomationStepExecutionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AutomationStepExecutions 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` AutomationStepExecutions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AutomationStepExecutions. */ distinct?: Prisma.AutomationStepExecutionScalarFieldEnum | Prisma.AutomationStepExecutionScalarFieldEnum[] } /** * AutomationStepExecution create */ export type AutomationStepExecutionCreateArgs = { /** * 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 /** * The data needed to create a AutomationStepExecution. */ data: Prisma.XOR } /** * AutomationStepExecution createMany */ export type AutomationStepExecutionCreateManyArgs = { /** * The data used to create many AutomationStepExecutions. */ data: Prisma.AutomationStepExecutionCreateManyInput | Prisma.AutomationStepExecutionCreateManyInput[] skipDuplicates?: boolean } /** * AutomationStepExecution createManyAndReturn */ export type AutomationStepExecutionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AutomationStepExecution */ select?: Prisma.AutomationStepExecutionSelectCreateManyAndReturn | null /** * Omit specific fields from the AutomationStepExecution */ omit?: Prisma.AutomationStepExecutionOmit | null /** * The data used to create many AutomationStepExecutions. */ data: Prisma.AutomationStepExecutionCreateManyInput | Prisma.AutomationStepExecutionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutomationStepExecutionIncludeCreateManyAndReturn | null } /** * AutomationStepExecution update */ export type AutomationStepExecutionUpdateArgs = { /** * 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 /** * The data needed to update a AutomationStepExecution. */ data: Prisma.XOR /** * Choose, which AutomationStepExecution to update. */ where: Prisma.AutomationStepExecutionWhereUniqueInput } /** * AutomationStepExecution updateMany */ export type AutomationStepExecutionUpdateManyArgs = { /** * The data used to update AutomationStepExecutions. */ data: Prisma.XOR /** * Filter which AutomationStepExecutions to update */ where?: Prisma.AutomationStepExecutionWhereInput /** * Limit how many AutomationStepExecutions to update. */ limit?: number } /** * AutomationStepExecution updateManyAndReturn */ export type AutomationStepExecutionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AutomationStepExecution */ select?: Prisma.AutomationStepExecutionSelectUpdateManyAndReturn | null /** * Omit specific fields from the AutomationStepExecution */ omit?: Prisma.AutomationStepExecutionOmit | null /** * The data used to update AutomationStepExecutions. */ data: Prisma.XOR /** * Filter which AutomationStepExecutions to update */ where?: Prisma.AutomationStepExecutionWhereInput /** * Limit how many AutomationStepExecutions to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutomationStepExecutionIncludeUpdateManyAndReturn | null } /** * AutomationStepExecution upsert */ export type AutomationStepExecutionUpsertArgs = { /** * 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 /** * The filter to search for the AutomationStepExecution to update in case it exists. */ where: Prisma.AutomationStepExecutionWhereUniqueInput /** * In case the AutomationStepExecution found by the `where` argument doesn't exist, create a new AutomationStepExecution with this data. */ create: Prisma.XOR /** * In case the AutomationStepExecution was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * AutomationStepExecution delete */ export type AutomationStepExecutionDeleteArgs = { /** * 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 /** * Filter which AutomationStepExecution to delete. */ where: Prisma.AutomationStepExecutionWhereUniqueInput } /** * AutomationStepExecution deleteMany */ export type AutomationStepExecutionDeleteManyArgs = { /** * Filter which AutomationStepExecutions to delete */ where?: Prisma.AutomationStepExecutionWhereInput /** * Limit how many AutomationStepExecutions to delete. */ limit?: number } /** * AutomationStepExecution.ruleStep */ export type AutomationStepExecution$ruleStepArgs = { /** * Select specific fields to fetch from the AutomationRuleStep */ select?: Prisma.AutomationRuleStepSelect | null /** * Omit specific fields from the AutomationRuleStep */ omit?: Prisma.AutomationRuleStepOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutomationRuleStepInclude | null where?: Prisma.AutomationRuleStepWhereInput } /** * AutomationStepExecution without action */ export type AutomationStepExecutionDefaultArgs = { /** * 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 }