2200 lines
94 KiB
TypeScript
2200 lines
94 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `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<Prisma.$AutomationExecutionPayload>
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends AutomationExecutionAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAutomationExecution]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateAutomationExecution[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateAutomationExecution[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AutomationExecutionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
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<T extends AutomationExecutionGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<AutomationExecutionGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AutomationExecutionGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AutomationExecutionGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], AutomationExecutionGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
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<Prisma.AutomationRuleScalarRelationFilter, Prisma.AutomationRuleWhereInput>
|
|
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<Prisma.AutomationRuleScalarRelationFilter, Prisma.AutomationRuleWhereInput>
|
|
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> | 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> | 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> | 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> | 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<Prisma.AutomationExecutionCreateWithoutStepExecutionsInput, Prisma.AutomationExecutionUncheckedCreateWithoutStepExecutionsInput>
|
|
connectOrCreate?: Prisma.AutomationExecutionCreateOrConnectWithoutStepExecutionsInput
|
|
connect?: Prisma.AutomationExecutionWhereUniqueInput
|
|
}
|
|
|
|
export type AutomationExecutionUpdateOneRequiredWithoutStepExecutionsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AutomationExecutionCreateWithoutStepExecutionsInput, Prisma.AutomationExecutionUncheckedCreateWithoutStepExecutionsInput>
|
|
connectOrCreate?: Prisma.AutomationExecutionCreateOrConnectWithoutStepExecutionsInput
|
|
upsert?: Prisma.AutomationExecutionUpsertWithoutStepExecutionsInput
|
|
connect?: Prisma.AutomationExecutionWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.AutomationExecutionUpdateToOneWithWhereWithoutStepExecutionsInput, Prisma.AutomationExecutionUpdateWithoutStepExecutionsInput>, 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<Prisma.AutomationExecutionCreateWithoutRuleInput, Prisma.AutomationExecutionUncheckedCreateWithoutRuleInput>
|
|
}
|
|
|
|
export type AutomationExecutionCreateManyRuleInputEnvelope = {
|
|
data: Prisma.AutomationExecutionCreateManyRuleInput | Prisma.AutomationExecutionCreateManyRuleInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type AutomationExecutionUpsertWithWhereUniqueWithoutRuleInput = {
|
|
where: Prisma.AutomationExecutionWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.AutomationExecutionUpdateWithoutRuleInput, Prisma.AutomationExecutionUncheckedUpdateWithoutRuleInput>
|
|
create: Prisma.XOR<Prisma.AutomationExecutionCreateWithoutRuleInput, Prisma.AutomationExecutionUncheckedCreateWithoutRuleInput>
|
|
}
|
|
|
|
export type AutomationExecutionUpdateWithWhereUniqueWithoutRuleInput = {
|
|
where: Prisma.AutomationExecutionWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.AutomationExecutionUpdateWithoutRuleInput, Prisma.AutomationExecutionUncheckedUpdateWithoutRuleInput>
|
|
}
|
|
|
|
export type AutomationExecutionUpdateManyWithWhereWithoutRuleInput = {
|
|
where: Prisma.AutomationExecutionScalarWhereInput
|
|
data: Prisma.XOR<Prisma.AutomationExecutionUpdateManyMutationInput, Prisma.AutomationExecutionUncheckedUpdateManyWithoutRuleInput>
|
|
}
|
|
|
|
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<Prisma.AutomationExecutionCreateWithoutStepExecutionsInput, Prisma.AutomationExecutionUncheckedCreateWithoutStepExecutionsInput>
|
|
}
|
|
|
|
export type AutomationExecutionUpsertWithoutStepExecutionsInput = {
|
|
update: Prisma.XOR<Prisma.AutomationExecutionUpdateWithoutStepExecutionsInput, Prisma.AutomationExecutionUncheckedUpdateWithoutStepExecutionsInput>
|
|
create: Prisma.XOR<Prisma.AutomationExecutionCreateWithoutStepExecutionsInput, Prisma.AutomationExecutionUncheckedCreateWithoutStepExecutionsInput>
|
|
where?: Prisma.AutomationExecutionWhereInput
|
|
}
|
|
|
|
export type AutomationExecutionUpdateToOneWithWhereWithoutStepExecutionsInput = {
|
|
where?: Prisma.AutomationExecutionWhereInput
|
|
data: Prisma.XOR<Prisma.AutomationExecutionUpdateWithoutStepExecutionsInput, Prisma.AutomationExecutionUncheckedUpdateWithoutStepExecutionsInput>
|
|
}
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
stepExecutions?: boolean | AutomationExecutionCountOutputTypeCountStepExecutionsArgs
|
|
}
|
|
|
|
/**
|
|
* AutomationExecutionCountOutputType without action
|
|
*/
|
|
export type AutomationExecutionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationExecutionCountOutputType
|
|
*/
|
|
select?: Prisma.AutomationExecutionCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* AutomationExecutionCountOutputType without action
|
|
*/
|
|
export type AutomationExecutionCountOutputTypeCountStepExecutionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AutomationStepExecutionWhereInput
|
|
}
|
|
|
|
|
|
export type AutomationExecutionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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>
|
|
stepExecutions?: boolean | Prisma.AutomationExecution$stepExecutionsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.AutomationExecutionCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["automationExecution"]>
|
|
|
|
export type AutomationExecutionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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>
|
|
}, ExtArgs["result"]["automationExecution"]>
|
|
|
|
export type AutomationExecutionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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>
|
|
}, 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
rule?: boolean | Prisma.AutomationRuleDefaultArgs<ExtArgs>
|
|
stepExecutions?: boolean | Prisma.AutomationExecution$stepExecutionsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.AutomationExecutionCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type AutomationExecutionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
rule?: boolean | Prisma.AutomationRuleDefaultArgs<ExtArgs>
|
|
}
|
|
export type AutomationExecutionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
rule?: boolean | Prisma.AutomationRuleDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $AutomationExecutionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "AutomationExecution"
|
|
objects: {
|
|
rule: Prisma.$AutomationRulePayload<ExtArgs>
|
|
stepExecutions: Prisma.$AutomationStepExecutionPayload<ExtArgs>[]
|
|
}
|
|
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<S extends boolean | null | undefined | AutomationExecutionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AutomationExecutionPayload, S>
|
|
|
|
export type AutomationExecutionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<AutomationExecutionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: AutomationExecutionCountAggregateInputType | true
|
|
}
|
|
|
|
export interface AutomationExecutionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends AutomationExecutionFindUniqueArgs>(args: Prisma.SelectSubset<T, AutomationExecutionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AutomationExecutionClient<runtime.Types.Result.GetResult<Prisma.$AutomationExecutionPayload<ExtArgs>, 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<T extends AutomationExecutionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AutomationExecutionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AutomationExecutionClient<runtime.Types.Result.GetResult<Prisma.$AutomationExecutionPayload<ExtArgs>, 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<T extends AutomationExecutionFindFirstArgs>(args?: Prisma.SelectSubset<T, AutomationExecutionFindFirstArgs<ExtArgs>>): Prisma.Prisma__AutomationExecutionClient<runtime.Types.Result.GetResult<Prisma.$AutomationExecutionPayload<ExtArgs>, 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<T extends AutomationExecutionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AutomationExecutionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AutomationExecutionClient<runtime.Types.Result.GetResult<Prisma.$AutomationExecutionPayload<ExtArgs>, 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<T extends AutomationExecutionFindManyArgs>(args?: Prisma.SelectSubset<T, AutomationExecutionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AutomationExecutionPayload<ExtArgs>, 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<T extends AutomationExecutionCreateArgs>(args: Prisma.SelectSubset<T, AutomationExecutionCreateArgs<ExtArgs>>): Prisma.Prisma__AutomationExecutionClient<runtime.Types.Result.GetResult<Prisma.$AutomationExecutionPayload<ExtArgs>, 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<T extends AutomationExecutionCreateManyArgs>(args?: Prisma.SelectSubset<T, AutomationExecutionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends AutomationExecutionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AutomationExecutionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AutomationExecutionPayload<ExtArgs>, 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<T extends AutomationExecutionDeleteArgs>(args: Prisma.SelectSubset<T, AutomationExecutionDeleteArgs<ExtArgs>>): Prisma.Prisma__AutomationExecutionClient<runtime.Types.Result.GetResult<Prisma.$AutomationExecutionPayload<ExtArgs>, 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<T extends AutomationExecutionUpdateArgs>(args: Prisma.SelectSubset<T, AutomationExecutionUpdateArgs<ExtArgs>>): Prisma.Prisma__AutomationExecutionClient<runtime.Types.Result.GetResult<Prisma.$AutomationExecutionPayload<ExtArgs>, 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<T extends AutomationExecutionDeleteManyArgs>(args?: Prisma.SelectSubset<T, AutomationExecutionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends AutomationExecutionUpdateManyArgs>(args: Prisma.SelectSubset<T, AutomationExecutionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends AutomationExecutionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AutomationExecutionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AutomationExecutionPayload<ExtArgs>, 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<T extends AutomationExecutionUpsertArgs>(args: Prisma.SelectSubset<T, AutomationExecutionUpsertArgs<ExtArgs>>): Prisma.Prisma__AutomationExecutionClient<runtime.Types.Result.GetResult<Prisma.$AutomationExecutionPayload<ExtArgs>, 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<T extends AutomationExecutionCountArgs>(
|
|
args?: Prisma.Subset<T, AutomationExecutionCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], AutomationExecutionCountAggregateOutputType>
|
|
: 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<T extends AutomationExecutionAggregateArgs>(args: Prisma.Subset<T, AutomationExecutionAggregateArgs>): Prisma.PrismaPromise<GetAutomationExecutionAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: AutomationExecutionGroupByArgs['orderBy'] }
|
|
: { orderBy?: AutomationExecutionGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, AutomationExecutionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAutomationExecutionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
rule<T extends Prisma.AutomationRuleDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AutomationRuleDefaultArgs<ExtArgs>>): Prisma.Prisma__AutomationRuleClient<runtime.Types.Result.GetResult<Prisma.$AutomationRulePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
stepExecutions<T extends Prisma.AutomationExecution$stepExecutionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AutomationExecution$stepExecutionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AutomationStepExecutionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationExecution
|
|
*/
|
|
select?: Prisma.AutomationExecutionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationExecution
|
|
*/
|
|
omit?: Prisma.AutomationExecutionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationExecutionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AutomationExecution to fetch.
|
|
*/
|
|
where: Prisma.AutomationExecutionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AutomationExecution findUniqueOrThrow
|
|
*/
|
|
export type AutomationExecutionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationExecution
|
|
*/
|
|
select?: Prisma.AutomationExecutionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationExecution
|
|
*/
|
|
omit?: Prisma.AutomationExecutionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationExecutionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AutomationExecution to fetch.
|
|
*/
|
|
where: Prisma.AutomationExecutionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AutomationExecution findFirst
|
|
*/
|
|
export type AutomationExecutionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationExecution
|
|
*/
|
|
select?: Prisma.AutomationExecutionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationExecution
|
|
*/
|
|
omit?: Prisma.AutomationExecutionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationExecutionInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationExecution
|
|
*/
|
|
select?: Prisma.AutomationExecutionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationExecution
|
|
*/
|
|
omit?: Prisma.AutomationExecutionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationExecutionInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationExecution
|
|
*/
|
|
select?: Prisma.AutomationExecutionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationExecution
|
|
*/
|
|
omit?: Prisma.AutomationExecutionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationExecutionInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationExecution
|
|
*/
|
|
select?: Prisma.AutomationExecutionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationExecution
|
|
*/
|
|
omit?: Prisma.AutomationExecutionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationExecutionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a AutomationExecution.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AutomationExecutionCreateInput, Prisma.AutomationExecutionUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* AutomationExecution createMany
|
|
*/
|
|
export type AutomationExecutionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many AutomationExecutions.
|
|
*/
|
|
data: Prisma.AutomationExecutionCreateManyInput | Prisma.AutomationExecutionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* AutomationExecution createManyAndReturn
|
|
*/
|
|
export type AutomationExecutionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationExecution
|
|
*/
|
|
select?: Prisma.AutomationExecutionSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationExecution
|
|
*/
|
|
omit?: Prisma.AutomationExecutionOmit<ExtArgs> | 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<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* AutomationExecution update
|
|
*/
|
|
export type AutomationExecutionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationExecution
|
|
*/
|
|
select?: Prisma.AutomationExecutionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationExecution
|
|
*/
|
|
omit?: Prisma.AutomationExecutionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationExecutionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a AutomationExecution.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AutomationExecutionUpdateInput, Prisma.AutomationExecutionUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which AutomationExecution to update.
|
|
*/
|
|
where: Prisma.AutomationExecutionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AutomationExecution updateMany
|
|
*/
|
|
export type AutomationExecutionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update AutomationExecutions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AutomationExecutionUpdateManyMutationInput, Prisma.AutomationExecutionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AutomationExecutions to update
|
|
*/
|
|
where?: Prisma.AutomationExecutionWhereInput
|
|
/**
|
|
* Limit how many AutomationExecutions to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AutomationExecution updateManyAndReturn
|
|
*/
|
|
export type AutomationExecutionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationExecution
|
|
*/
|
|
select?: Prisma.AutomationExecutionSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationExecution
|
|
*/
|
|
omit?: Prisma.AutomationExecutionOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update AutomationExecutions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AutomationExecutionUpdateManyMutationInput, Prisma.AutomationExecutionUncheckedUpdateManyInput>
|
|
/**
|
|
* 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<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* AutomationExecution upsert
|
|
*/
|
|
export type AutomationExecutionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationExecution
|
|
*/
|
|
select?: Prisma.AutomationExecutionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationExecution
|
|
*/
|
|
omit?: Prisma.AutomationExecutionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationExecutionInclude<ExtArgs> | 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<Prisma.AutomationExecutionCreateInput, Prisma.AutomationExecutionUncheckedCreateInput>
|
|
/**
|
|
* In case the AutomationExecution was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.AutomationExecutionUpdateInput, Prisma.AutomationExecutionUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* AutomationExecution delete
|
|
*/
|
|
export type AutomationExecutionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationExecution
|
|
*/
|
|
select?: Prisma.AutomationExecutionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationExecution
|
|
*/
|
|
omit?: Prisma.AutomationExecutionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationExecutionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which AutomationExecution to delete.
|
|
*/
|
|
where: Prisma.AutomationExecutionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AutomationExecution deleteMany
|
|
*/
|
|
export type AutomationExecutionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AutomationExecutions to delete
|
|
*/
|
|
where?: Prisma.AutomationExecutionWhereInput
|
|
/**
|
|
* Limit how many AutomationExecutions to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AutomationExecution.stepExecutions
|
|
*/
|
|
export type AutomationExecution$stepExecutionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationStepExecution
|
|
*/
|
|
select?: Prisma.AutomationStepExecutionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationStepExecution
|
|
*/
|
|
omit?: Prisma.AutomationStepExecutionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationStepExecutionInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationExecution
|
|
*/
|
|
select?: Prisma.AutomationExecutionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationExecution
|
|
*/
|
|
omit?: Prisma.AutomationExecutionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationExecutionInclude<ExtArgs> | null
|
|
}
|