1770 lines
69 KiB
TypeScript
1770 lines
69 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 `AutomationRule` 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 AutomationRule
|
|
*
|
|
*/
|
|
export type AutomationRuleModel = runtime.Types.Result.DefaultSelection<Prisma.$AutomationRulePayload>
|
|
|
|
export type AggregateAutomationRule = {
|
|
_count: AutomationRuleCountAggregateOutputType | null
|
|
_min: AutomationRuleMinAggregateOutputType | null
|
|
_max: AutomationRuleMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type AutomationRuleMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
name: string | null
|
|
description: string | null
|
|
status: $Enums.AutomationRuleStatus | null
|
|
enabled: boolean | null
|
|
createdVia: string | null
|
|
triggerKey: string | null
|
|
createdByUserId: string | null
|
|
isDemoData: boolean | null
|
|
archivedAt: Date | null
|
|
}
|
|
|
|
export type AutomationRuleMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
name: string | null
|
|
description: string | null
|
|
status: $Enums.AutomationRuleStatus | null
|
|
enabled: boolean | null
|
|
createdVia: string | null
|
|
triggerKey: string | null
|
|
createdByUserId: string | null
|
|
isDemoData: boolean | null
|
|
archivedAt: Date | null
|
|
}
|
|
|
|
export type AutomationRuleCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
tenantId: number
|
|
name: number
|
|
description: number
|
|
status: number
|
|
enabled: number
|
|
createdVia: number
|
|
triggerKey: number
|
|
flowData: number
|
|
createdByUserId: number
|
|
isDemoData: number
|
|
archivedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type AutomationRuleMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
name?: true
|
|
description?: true
|
|
status?: true
|
|
enabled?: true
|
|
createdVia?: true
|
|
triggerKey?: true
|
|
createdByUserId?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
}
|
|
|
|
export type AutomationRuleMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
name?: true
|
|
description?: true
|
|
status?: true
|
|
enabled?: true
|
|
createdVia?: true
|
|
triggerKey?: true
|
|
createdByUserId?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
}
|
|
|
|
export type AutomationRuleCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
name?: true
|
|
description?: true
|
|
status?: true
|
|
enabled?: true
|
|
createdVia?: true
|
|
triggerKey?: true
|
|
flowData?: true
|
|
createdByUserId?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type AutomationRuleAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AutomationRule to aggregate.
|
|
*/
|
|
where?: Prisma.AutomationRuleWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AutomationRules to fetch.
|
|
*/
|
|
orderBy?: Prisma.AutomationRuleOrderByWithRelationInput | Prisma.AutomationRuleOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.AutomationRuleWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AutomationRules 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` AutomationRules.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned AutomationRules
|
|
**/
|
|
_count?: true | AutomationRuleCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: AutomationRuleMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: AutomationRuleMaxAggregateInputType
|
|
}
|
|
|
|
export type GetAutomationRuleAggregateType<T extends AutomationRuleAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAutomationRule]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateAutomationRule[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateAutomationRule[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AutomationRuleGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AutomationRuleWhereInput
|
|
orderBy?: Prisma.AutomationRuleOrderByWithAggregationInput | Prisma.AutomationRuleOrderByWithAggregationInput[]
|
|
by: Prisma.AutomationRuleScalarFieldEnum[] | Prisma.AutomationRuleScalarFieldEnum
|
|
having?: Prisma.AutomationRuleScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: AutomationRuleCountAggregateInputType | true
|
|
_min?: AutomationRuleMinAggregateInputType
|
|
_max?: AutomationRuleMaxAggregateInputType
|
|
}
|
|
|
|
export type AutomationRuleGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
name: string
|
|
description: string | null
|
|
status: $Enums.AutomationRuleStatus
|
|
enabled: boolean
|
|
createdVia: string
|
|
triggerKey: string | null
|
|
flowData: runtime.JsonValue
|
|
createdByUserId: string | null
|
|
isDemoData: boolean
|
|
archivedAt: Date | null
|
|
_count: AutomationRuleCountAggregateOutputType | null
|
|
_min: AutomationRuleMinAggregateOutputType | null
|
|
_max: AutomationRuleMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetAutomationRuleGroupByPayload<T extends AutomationRuleGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<AutomationRuleGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AutomationRuleGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AutomationRuleGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], AutomationRuleGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type AutomationRuleWhereInput = {
|
|
AND?: Prisma.AutomationRuleWhereInput | Prisma.AutomationRuleWhereInput[]
|
|
OR?: Prisma.AutomationRuleWhereInput[]
|
|
NOT?: Prisma.AutomationRuleWhereInput | Prisma.AutomationRuleWhereInput[]
|
|
id?: Prisma.StringFilter<"AutomationRule"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"AutomationRule"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"AutomationRule"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"AutomationRule"> | string
|
|
name?: Prisma.StringFilter<"AutomationRule"> | string
|
|
description?: Prisma.StringNullableFilter<"AutomationRule"> | string | null
|
|
status?: Prisma.EnumAutomationRuleStatusFilter<"AutomationRule"> | $Enums.AutomationRuleStatus
|
|
enabled?: Prisma.BoolFilter<"AutomationRule"> | boolean
|
|
createdVia?: Prisma.StringFilter<"AutomationRule"> | string
|
|
triggerKey?: Prisma.StringNullableFilter<"AutomationRule"> | string | null
|
|
flowData?: Prisma.JsonFilter<"AutomationRule">
|
|
createdByUserId?: Prisma.StringNullableFilter<"AutomationRule"> | string | null
|
|
isDemoData?: Prisma.BoolFilter<"AutomationRule"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"AutomationRule"> | Date | string | null
|
|
steps?: Prisma.AutomationRuleStepListRelationFilter
|
|
executions?: Prisma.AutomationExecutionListRelationFilter
|
|
}
|
|
|
|
export type AutomationRuleOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
enabled?: Prisma.SortOrder
|
|
createdVia?: Prisma.SortOrder
|
|
triggerKey?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
flowData?: Prisma.SortOrder
|
|
createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
steps?: Prisma.AutomationRuleStepOrderByRelationAggregateInput
|
|
executions?: Prisma.AutomationExecutionOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type AutomationRuleWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
tenantId_name?: Prisma.AutomationRuleTenantIdNameCompoundUniqueInput
|
|
AND?: Prisma.AutomationRuleWhereInput | Prisma.AutomationRuleWhereInput[]
|
|
OR?: Prisma.AutomationRuleWhereInput[]
|
|
NOT?: Prisma.AutomationRuleWhereInput | Prisma.AutomationRuleWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"AutomationRule"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"AutomationRule"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"AutomationRule"> | string
|
|
name?: Prisma.StringFilter<"AutomationRule"> | string
|
|
description?: Prisma.StringNullableFilter<"AutomationRule"> | string | null
|
|
status?: Prisma.EnumAutomationRuleStatusFilter<"AutomationRule"> | $Enums.AutomationRuleStatus
|
|
enabled?: Prisma.BoolFilter<"AutomationRule"> | boolean
|
|
createdVia?: Prisma.StringFilter<"AutomationRule"> | string
|
|
triggerKey?: Prisma.StringNullableFilter<"AutomationRule"> | string | null
|
|
flowData?: Prisma.JsonFilter<"AutomationRule">
|
|
createdByUserId?: Prisma.StringNullableFilter<"AutomationRule"> | string | null
|
|
isDemoData?: Prisma.BoolFilter<"AutomationRule"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"AutomationRule"> | Date | string | null
|
|
steps?: Prisma.AutomationRuleStepListRelationFilter
|
|
executions?: Prisma.AutomationExecutionListRelationFilter
|
|
}, "id" | "tenantId_name">
|
|
|
|
export type AutomationRuleOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
enabled?: Prisma.SortOrder
|
|
createdVia?: Prisma.SortOrder
|
|
triggerKey?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
flowData?: Prisma.SortOrder
|
|
createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.AutomationRuleCountOrderByAggregateInput
|
|
_max?: Prisma.AutomationRuleMaxOrderByAggregateInput
|
|
_min?: Prisma.AutomationRuleMinOrderByAggregateInput
|
|
}
|
|
|
|
export type AutomationRuleScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.AutomationRuleScalarWhereWithAggregatesInput | Prisma.AutomationRuleScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.AutomationRuleScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.AutomationRuleScalarWhereWithAggregatesInput | Prisma.AutomationRuleScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"AutomationRule"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AutomationRule"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AutomationRule"> | Date | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"AutomationRule"> | string
|
|
name?: Prisma.StringWithAggregatesFilter<"AutomationRule"> | string
|
|
description?: Prisma.StringNullableWithAggregatesFilter<"AutomationRule"> | string | null
|
|
status?: Prisma.EnumAutomationRuleStatusWithAggregatesFilter<"AutomationRule"> | $Enums.AutomationRuleStatus
|
|
enabled?: Prisma.BoolWithAggregatesFilter<"AutomationRule"> | boolean
|
|
createdVia?: Prisma.StringWithAggregatesFilter<"AutomationRule"> | string
|
|
triggerKey?: Prisma.StringNullableWithAggregatesFilter<"AutomationRule"> | string | null
|
|
flowData?: Prisma.JsonWithAggregatesFilter<"AutomationRule">
|
|
createdByUserId?: Prisma.StringNullableWithAggregatesFilter<"AutomationRule"> | string | null
|
|
isDemoData?: Prisma.BoolWithAggregatesFilter<"AutomationRule"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AutomationRule"> | Date | string | null
|
|
}
|
|
|
|
export type AutomationRuleCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
name: string
|
|
description?: string | null
|
|
status?: $Enums.AutomationRuleStatus
|
|
enabled?: boolean
|
|
createdVia?: string
|
|
triggerKey?: string | null
|
|
flowData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdByUserId?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
steps?: Prisma.AutomationRuleStepCreateNestedManyWithoutRuleInput
|
|
executions?: Prisma.AutomationExecutionCreateNestedManyWithoutRuleInput
|
|
}
|
|
|
|
export type AutomationRuleUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
name: string
|
|
description?: string | null
|
|
status?: $Enums.AutomationRuleStatus
|
|
enabled?: boolean
|
|
createdVia?: string
|
|
triggerKey?: string | null
|
|
flowData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdByUserId?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
steps?: Prisma.AutomationRuleStepUncheckedCreateNestedManyWithoutRuleInput
|
|
executions?: Prisma.AutomationExecutionUncheckedCreateNestedManyWithoutRuleInput
|
|
}
|
|
|
|
export type AutomationRuleUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.EnumAutomationRuleStatusFieldUpdateOperationsInput | $Enums.AutomationRuleStatus
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdVia?: Prisma.StringFieldUpdateOperationsInput | string
|
|
triggerKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
flowData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
steps?: Prisma.AutomationRuleStepUpdateManyWithoutRuleNestedInput
|
|
executions?: Prisma.AutomationExecutionUpdateManyWithoutRuleNestedInput
|
|
}
|
|
|
|
export type AutomationRuleUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.EnumAutomationRuleStatusFieldUpdateOperationsInput | $Enums.AutomationRuleStatus
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdVia?: Prisma.StringFieldUpdateOperationsInput | string
|
|
triggerKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
flowData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
steps?: Prisma.AutomationRuleStepUncheckedUpdateManyWithoutRuleNestedInput
|
|
executions?: Prisma.AutomationExecutionUncheckedUpdateManyWithoutRuleNestedInput
|
|
}
|
|
|
|
export type AutomationRuleCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
name: string
|
|
description?: string | null
|
|
status?: $Enums.AutomationRuleStatus
|
|
enabled?: boolean
|
|
createdVia?: string
|
|
triggerKey?: string | null
|
|
flowData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdByUserId?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type AutomationRuleUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.EnumAutomationRuleStatusFieldUpdateOperationsInput | $Enums.AutomationRuleStatus
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdVia?: Prisma.StringFieldUpdateOperationsInput | string
|
|
triggerKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
flowData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type AutomationRuleUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.EnumAutomationRuleStatusFieldUpdateOperationsInput | $Enums.AutomationRuleStatus
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdVia?: Prisma.StringFieldUpdateOperationsInput | string
|
|
triggerKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
flowData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type AutomationRuleTenantIdNameCompoundUniqueInput = {
|
|
tenantId: string
|
|
name: string
|
|
}
|
|
|
|
export type AutomationRuleCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
enabled?: Prisma.SortOrder
|
|
createdVia?: Prisma.SortOrder
|
|
triggerKey?: Prisma.SortOrder
|
|
flowData?: Prisma.SortOrder
|
|
createdByUserId?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AutomationRuleMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
enabled?: Prisma.SortOrder
|
|
createdVia?: Prisma.SortOrder
|
|
triggerKey?: Prisma.SortOrder
|
|
createdByUserId?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AutomationRuleMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
enabled?: Prisma.SortOrder
|
|
createdVia?: Prisma.SortOrder
|
|
triggerKey?: Prisma.SortOrder
|
|
createdByUserId?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AutomationRuleScalarRelationFilter = {
|
|
is?: Prisma.AutomationRuleWhereInput
|
|
isNot?: Prisma.AutomationRuleWhereInput
|
|
}
|
|
|
|
export type EnumAutomationRuleStatusFieldUpdateOperationsInput = {
|
|
set?: $Enums.AutomationRuleStatus
|
|
}
|
|
|
|
export type AutomationRuleCreateNestedOneWithoutStepsInput = {
|
|
create?: Prisma.XOR<Prisma.AutomationRuleCreateWithoutStepsInput, Prisma.AutomationRuleUncheckedCreateWithoutStepsInput>
|
|
connectOrCreate?: Prisma.AutomationRuleCreateOrConnectWithoutStepsInput
|
|
connect?: Prisma.AutomationRuleWhereUniqueInput
|
|
}
|
|
|
|
export type AutomationRuleUpdateOneRequiredWithoutStepsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AutomationRuleCreateWithoutStepsInput, Prisma.AutomationRuleUncheckedCreateWithoutStepsInput>
|
|
connectOrCreate?: Prisma.AutomationRuleCreateOrConnectWithoutStepsInput
|
|
upsert?: Prisma.AutomationRuleUpsertWithoutStepsInput
|
|
connect?: Prisma.AutomationRuleWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.AutomationRuleUpdateToOneWithWhereWithoutStepsInput, Prisma.AutomationRuleUpdateWithoutStepsInput>, Prisma.AutomationRuleUncheckedUpdateWithoutStepsInput>
|
|
}
|
|
|
|
export type AutomationRuleCreateNestedOneWithoutExecutionsInput = {
|
|
create?: Prisma.XOR<Prisma.AutomationRuleCreateWithoutExecutionsInput, Prisma.AutomationRuleUncheckedCreateWithoutExecutionsInput>
|
|
connectOrCreate?: Prisma.AutomationRuleCreateOrConnectWithoutExecutionsInput
|
|
connect?: Prisma.AutomationRuleWhereUniqueInput
|
|
}
|
|
|
|
export type AutomationRuleUpdateOneRequiredWithoutExecutionsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AutomationRuleCreateWithoutExecutionsInput, Prisma.AutomationRuleUncheckedCreateWithoutExecutionsInput>
|
|
connectOrCreate?: Prisma.AutomationRuleCreateOrConnectWithoutExecutionsInput
|
|
upsert?: Prisma.AutomationRuleUpsertWithoutExecutionsInput
|
|
connect?: Prisma.AutomationRuleWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.AutomationRuleUpdateToOneWithWhereWithoutExecutionsInput, Prisma.AutomationRuleUpdateWithoutExecutionsInput>, Prisma.AutomationRuleUncheckedUpdateWithoutExecutionsInput>
|
|
}
|
|
|
|
export type AutomationRuleCreateWithoutStepsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
name: string
|
|
description?: string | null
|
|
status?: $Enums.AutomationRuleStatus
|
|
enabled?: boolean
|
|
createdVia?: string
|
|
triggerKey?: string | null
|
|
flowData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdByUserId?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
executions?: Prisma.AutomationExecutionCreateNestedManyWithoutRuleInput
|
|
}
|
|
|
|
export type AutomationRuleUncheckedCreateWithoutStepsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
name: string
|
|
description?: string | null
|
|
status?: $Enums.AutomationRuleStatus
|
|
enabled?: boolean
|
|
createdVia?: string
|
|
triggerKey?: string | null
|
|
flowData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdByUserId?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
executions?: Prisma.AutomationExecutionUncheckedCreateNestedManyWithoutRuleInput
|
|
}
|
|
|
|
export type AutomationRuleCreateOrConnectWithoutStepsInput = {
|
|
where: Prisma.AutomationRuleWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.AutomationRuleCreateWithoutStepsInput, Prisma.AutomationRuleUncheckedCreateWithoutStepsInput>
|
|
}
|
|
|
|
export type AutomationRuleUpsertWithoutStepsInput = {
|
|
update: Prisma.XOR<Prisma.AutomationRuleUpdateWithoutStepsInput, Prisma.AutomationRuleUncheckedUpdateWithoutStepsInput>
|
|
create: Prisma.XOR<Prisma.AutomationRuleCreateWithoutStepsInput, Prisma.AutomationRuleUncheckedCreateWithoutStepsInput>
|
|
where?: Prisma.AutomationRuleWhereInput
|
|
}
|
|
|
|
export type AutomationRuleUpdateToOneWithWhereWithoutStepsInput = {
|
|
where?: Prisma.AutomationRuleWhereInput
|
|
data: Prisma.XOR<Prisma.AutomationRuleUpdateWithoutStepsInput, Prisma.AutomationRuleUncheckedUpdateWithoutStepsInput>
|
|
}
|
|
|
|
export type AutomationRuleUpdateWithoutStepsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.EnumAutomationRuleStatusFieldUpdateOperationsInput | $Enums.AutomationRuleStatus
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdVia?: Prisma.StringFieldUpdateOperationsInput | string
|
|
triggerKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
flowData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
executions?: Prisma.AutomationExecutionUpdateManyWithoutRuleNestedInput
|
|
}
|
|
|
|
export type AutomationRuleUncheckedUpdateWithoutStepsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.EnumAutomationRuleStatusFieldUpdateOperationsInput | $Enums.AutomationRuleStatus
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdVia?: Prisma.StringFieldUpdateOperationsInput | string
|
|
triggerKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
flowData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
executions?: Prisma.AutomationExecutionUncheckedUpdateManyWithoutRuleNestedInput
|
|
}
|
|
|
|
export type AutomationRuleCreateWithoutExecutionsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
name: string
|
|
description?: string | null
|
|
status?: $Enums.AutomationRuleStatus
|
|
enabled?: boolean
|
|
createdVia?: string
|
|
triggerKey?: string | null
|
|
flowData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdByUserId?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
steps?: Prisma.AutomationRuleStepCreateNestedManyWithoutRuleInput
|
|
}
|
|
|
|
export type AutomationRuleUncheckedCreateWithoutExecutionsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
name: string
|
|
description?: string | null
|
|
status?: $Enums.AutomationRuleStatus
|
|
enabled?: boolean
|
|
createdVia?: string
|
|
triggerKey?: string | null
|
|
flowData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdByUserId?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
steps?: Prisma.AutomationRuleStepUncheckedCreateNestedManyWithoutRuleInput
|
|
}
|
|
|
|
export type AutomationRuleCreateOrConnectWithoutExecutionsInput = {
|
|
where: Prisma.AutomationRuleWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.AutomationRuleCreateWithoutExecutionsInput, Prisma.AutomationRuleUncheckedCreateWithoutExecutionsInput>
|
|
}
|
|
|
|
export type AutomationRuleUpsertWithoutExecutionsInput = {
|
|
update: Prisma.XOR<Prisma.AutomationRuleUpdateWithoutExecutionsInput, Prisma.AutomationRuleUncheckedUpdateWithoutExecutionsInput>
|
|
create: Prisma.XOR<Prisma.AutomationRuleCreateWithoutExecutionsInput, Prisma.AutomationRuleUncheckedCreateWithoutExecutionsInput>
|
|
where?: Prisma.AutomationRuleWhereInput
|
|
}
|
|
|
|
export type AutomationRuleUpdateToOneWithWhereWithoutExecutionsInput = {
|
|
where?: Prisma.AutomationRuleWhereInput
|
|
data: Prisma.XOR<Prisma.AutomationRuleUpdateWithoutExecutionsInput, Prisma.AutomationRuleUncheckedUpdateWithoutExecutionsInput>
|
|
}
|
|
|
|
export type AutomationRuleUpdateWithoutExecutionsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.EnumAutomationRuleStatusFieldUpdateOperationsInput | $Enums.AutomationRuleStatus
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdVia?: Prisma.StringFieldUpdateOperationsInput | string
|
|
triggerKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
flowData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
steps?: Prisma.AutomationRuleStepUpdateManyWithoutRuleNestedInput
|
|
}
|
|
|
|
export type AutomationRuleUncheckedUpdateWithoutExecutionsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.EnumAutomationRuleStatusFieldUpdateOperationsInput | $Enums.AutomationRuleStatus
|
|
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdVia?: Prisma.StringFieldUpdateOperationsInput | string
|
|
triggerKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
flowData?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
steps?: Prisma.AutomationRuleStepUncheckedUpdateManyWithoutRuleNestedInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type AutomationRuleCountOutputType
|
|
*/
|
|
|
|
export type AutomationRuleCountOutputType = {
|
|
steps: number
|
|
executions: number
|
|
}
|
|
|
|
export type AutomationRuleCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
steps?: boolean | AutomationRuleCountOutputTypeCountStepsArgs
|
|
executions?: boolean | AutomationRuleCountOutputTypeCountExecutionsArgs
|
|
}
|
|
|
|
/**
|
|
* AutomationRuleCountOutputType without action
|
|
*/
|
|
export type AutomationRuleCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationRuleCountOutputType
|
|
*/
|
|
select?: Prisma.AutomationRuleCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* AutomationRuleCountOutputType without action
|
|
*/
|
|
export type AutomationRuleCountOutputTypeCountStepsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AutomationRuleStepWhereInput
|
|
}
|
|
|
|
/**
|
|
* AutomationRuleCountOutputType without action
|
|
*/
|
|
export type AutomationRuleCountOutputTypeCountExecutionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AutomationExecutionWhereInput
|
|
}
|
|
|
|
|
|
export type AutomationRuleSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
status?: boolean
|
|
enabled?: boolean
|
|
createdVia?: boolean
|
|
triggerKey?: boolean
|
|
flowData?: boolean
|
|
createdByUserId?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
steps?: boolean | Prisma.AutomationRule$stepsArgs<ExtArgs>
|
|
executions?: boolean | Prisma.AutomationRule$executionsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.AutomationRuleCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["automationRule"]>
|
|
|
|
export type AutomationRuleSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
status?: boolean
|
|
enabled?: boolean
|
|
createdVia?: boolean
|
|
triggerKey?: boolean
|
|
flowData?: boolean
|
|
createdByUserId?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}, ExtArgs["result"]["automationRule"]>
|
|
|
|
export type AutomationRuleSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
status?: boolean
|
|
enabled?: boolean
|
|
createdVia?: boolean
|
|
triggerKey?: boolean
|
|
flowData?: boolean
|
|
createdByUserId?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}, ExtArgs["result"]["automationRule"]>
|
|
|
|
export type AutomationRuleSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
status?: boolean
|
|
enabled?: boolean
|
|
createdVia?: boolean
|
|
triggerKey?: boolean
|
|
flowData?: boolean
|
|
createdByUserId?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}
|
|
|
|
export type AutomationRuleOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "name" | "description" | "status" | "enabled" | "createdVia" | "triggerKey" | "flowData" | "createdByUserId" | "isDemoData" | "archivedAt", ExtArgs["result"]["automationRule"]>
|
|
export type AutomationRuleInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
steps?: boolean | Prisma.AutomationRule$stepsArgs<ExtArgs>
|
|
executions?: boolean | Prisma.AutomationRule$executionsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.AutomationRuleCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type AutomationRuleIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
export type AutomationRuleIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
|
|
export type $AutomationRulePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "AutomationRule"
|
|
objects: {
|
|
steps: Prisma.$AutomationRuleStepPayload<ExtArgs>[]
|
|
executions: Prisma.$AutomationExecutionPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
name: string
|
|
description: string | null
|
|
status: $Enums.AutomationRuleStatus
|
|
enabled: boolean
|
|
createdVia: string
|
|
triggerKey: string | null
|
|
flowData: runtime.JsonValue
|
|
createdByUserId: string | null
|
|
isDemoData: boolean
|
|
archivedAt: Date | null
|
|
}, ExtArgs["result"]["automationRule"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type AutomationRuleGetPayload<S extends boolean | null | undefined | AutomationRuleDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AutomationRulePayload, S>
|
|
|
|
export type AutomationRuleCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<AutomationRuleFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: AutomationRuleCountAggregateInputType | true
|
|
}
|
|
|
|
export interface AutomationRuleDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AutomationRule'], meta: { name: 'AutomationRule' } }
|
|
/**
|
|
* Find zero or one AutomationRule that matches the filter.
|
|
* @param {AutomationRuleFindUniqueArgs} args - Arguments to find a AutomationRule
|
|
* @example
|
|
* // Get one AutomationRule
|
|
* const automationRule = await prisma.automationRule.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends AutomationRuleFindUniqueArgs>(args: Prisma.SelectSubset<T, AutomationRuleFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AutomationRuleClient<runtime.Types.Result.GetResult<Prisma.$AutomationRulePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one AutomationRule that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {AutomationRuleFindUniqueOrThrowArgs} args - Arguments to find a AutomationRule
|
|
* @example
|
|
* // Get one AutomationRule
|
|
* const automationRule = await prisma.automationRule.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends AutomationRuleFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AutomationRuleFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AutomationRuleClient<runtime.Types.Result.GetResult<Prisma.$AutomationRulePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first AutomationRule 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 {AutomationRuleFindFirstArgs} args - Arguments to find a AutomationRule
|
|
* @example
|
|
* // Get one AutomationRule
|
|
* const automationRule = await prisma.automationRule.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends AutomationRuleFindFirstArgs>(args?: Prisma.SelectSubset<T, AutomationRuleFindFirstArgs<ExtArgs>>): Prisma.Prisma__AutomationRuleClient<runtime.Types.Result.GetResult<Prisma.$AutomationRulePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first AutomationRule 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 {AutomationRuleFindFirstOrThrowArgs} args - Arguments to find a AutomationRule
|
|
* @example
|
|
* // Get one AutomationRule
|
|
* const automationRule = await prisma.automationRule.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends AutomationRuleFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AutomationRuleFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AutomationRuleClient<runtime.Types.Result.GetResult<Prisma.$AutomationRulePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more AutomationRules 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 {AutomationRuleFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all AutomationRules
|
|
* const automationRules = await prisma.automationRule.findMany()
|
|
*
|
|
* // Get first 10 AutomationRules
|
|
* const automationRules = await prisma.automationRule.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const automationRuleWithIdOnly = await prisma.automationRule.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends AutomationRuleFindManyArgs>(args?: Prisma.SelectSubset<T, AutomationRuleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AutomationRulePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a AutomationRule.
|
|
* @param {AutomationRuleCreateArgs} args - Arguments to create a AutomationRule.
|
|
* @example
|
|
* // Create one AutomationRule
|
|
* const AutomationRule = await prisma.automationRule.create({
|
|
* data: {
|
|
* // ... data to create a AutomationRule
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends AutomationRuleCreateArgs>(args: Prisma.SelectSubset<T, AutomationRuleCreateArgs<ExtArgs>>): Prisma.Prisma__AutomationRuleClient<runtime.Types.Result.GetResult<Prisma.$AutomationRulePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many AutomationRules.
|
|
* @param {AutomationRuleCreateManyArgs} args - Arguments to create many AutomationRules.
|
|
* @example
|
|
* // Create many AutomationRules
|
|
* const automationRule = await prisma.automationRule.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends AutomationRuleCreateManyArgs>(args?: Prisma.SelectSubset<T, AutomationRuleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many AutomationRules and returns the data saved in the database.
|
|
* @param {AutomationRuleCreateManyAndReturnArgs} args - Arguments to create many AutomationRules.
|
|
* @example
|
|
* // Create many AutomationRules
|
|
* const automationRule = await prisma.automationRule.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many AutomationRules and only return the `id`
|
|
* const automationRuleWithIdOnly = await prisma.automationRule.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 AutomationRuleCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AutomationRuleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AutomationRulePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a AutomationRule.
|
|
* @param {AutomationRuleDeleteArgs} args - Arguments to delete one AutomationRule.
|
|
* @example
|
|
* // Delete one AutomationRule
|
|
* const AutomationRule = await prisma.automationRule.delete({
|
|
* where: {
|
|
* // ... filter to delete one AutomationRule
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends AutomationRuleDeleteArgs>(args: Prisma.SelectSubset<T, AutomationRuleDeleteArgs<ExtArgs>>): Prisma.Prisma__AutomationRuleClient<runtime.Types.Result.GetResult<Prisma.$AutomationRulePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one AutomationRule.
|
|
* @param {AutomationRuleUpdateArgs} args - Arguments to update one AutomationRule.
|
|
* @example
|
|
* // Update one AutomationRule
|
|
* const automationRule = await prisma.automationRule.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends AutomationRuleUpdateArgs>(args: Prisma.SelectSubset<T, AutomationRuleUpdateArgs<ExtArgs>>): Prisma.Prisma__AutomationRuleClient<runtime.Types.Result.GetResult<Prisma.$AutomationRulePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more AutomationRules.
|
|
* @param {AutomationRuleDeleteManyArgs} args - Arguments to filter AutomationRules to delete.
|
|
* @example
|
|
* // Delete a few AutomationRules
|
|
* const { count } = await prisma.automationRule.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends AutomationRuleDeleteManyArgs>(args?: Prisma.SelectSubset<T, AutomationRuleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AutomationRules.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AutomationRuleUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many AutomationRules
|
|
* const automationRule = await prisma.automationRule.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends AutomationRuleUpdateManyArgs>(args: Prisma.SelectSubset<T, AutomationRuleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AutomationRules and returns the data updated in the database.
|
|
* @param {AutomationRuleUpdateManyAndReturnArgs} args - Arguments to update many AutomationRules.
|
|
* @example
|
|
* // Update many AutomationRules
|
|
* const automationRule = await prisma.automationRule.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more AutomationRules and only return the `id`
|
|
* const automationRuleWithIdOnly = await prisma.automationRule.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 AutomationRuleUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AutomationRuleUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AutomationRulePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one AutomationRule.
|
|
* @param {AutomationRuleUpsertArgs} args - Arguments to update or create a AutomationRule.
|
|
* @example
|
|
* // Update or create a AutomationRule
|
|
* const automationRule = await prisma.automationRule.upsert({
|
|
* create: {
|
|
* // ... data to create a AutomationRule
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the AutomationRule we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends AutomationRuleUpsertArgs>(args: Prisma.SelectSubset<T, AutomationRuleUpsertArgs<ExtArgs>>): Prisma.Prisma__AutomationRuleClient<runtime.Types.Result.GetResult<Prisma.$AutomationRulePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of AutomationRules.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AutomationRuleCountArgs} args - Arguments to filter AutomationRules to count.
|
|
* @example
|
|
* // Count the number of AutomationRules
|
|
* const count = await prisma.automationRule.count({
|
|
* where: {
|
|
* // ... the filter for the AutomationRules we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends AutomationRuleCountArgs>(
|
|
args?: Prisma.Subset<T, AutomationRuleCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], AutomationRuleCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a AutomationRule.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AutomationRuleAggregateArgs} 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 AutomationRuleAggregateArgs>(args: Prisma.Subset<T, AutomationRuleAggregateArgs>): Prisma.PrismaPromise<GetAutomationRuleAggregateType<T>>
|
|
|
|
/**
|
|
* Group by AutomationRule.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AutomationRuleGroupByArgs} 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 AutomationRuleGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: AutomationRuleGroupByArgs['orderBy'] }
|
|
: { orderBy?: AutomationRuleGroupByArgs['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, AutomationRuleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAutomationRuleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the AutomationRule model
|
|
*/
|
|
readonly fields: AutomationRuleFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for AutomationRule.
|
|
* 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__AutomationRuleClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
steps<T extends Prisma.AutomationRule$stepsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AutomationRule$stepsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AutomationRuleStepPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
executions<T extends Prisma.AutomationRule$executionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AutomationRule$executionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AutomationExecutionPayload<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 AutomationRule model
|
|
*/
|
|
export interface AutomationRuleFieldRefs {
|
|
readonly id: Prisma.FieldRef<"AutomationRule", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"AutomationRule", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"AutomationRule", 'DateTime'>
|
|
readonly tenantId: Prisma.FieldRef<"AutomationRule", 'String'>
|
|
readonly name: Prisma.FieldRef<"AutomationRule", 'String'>
|
|
readonly description: Prisma.FieldRef<"AutomationRule", 'String'>
|
|
readonly status: Prisma.FieldRef<"AutomationRule", 'AutomationRuleStatus'>
|
|
readonly enabled: Prisma.FieldRef<"AutomationRule", 'Boolean'>
|
|
readonly createdVia: Prisma.FieldRef<"AutomationRule", 'String'>
|
|
readonly triggerKey: Prisma.FieldRef<"AutomationRule", 'String'>
|
|
readonly flowData: Prisma.FieldRef<"AutomationRule", 'Json'>
|
|
readonly createdByUserId: Prisma.FieldRef<"AutomationRule", 'String'>
|
|
readonly isDemoData: Prisma.FieldRef<"AutomationRule", 'Boolean'>
|
|
readonly archivedAt: Prisma.FieldRef<"AutomationRule", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* AutomationRule findUnique
|
|
*/
|
|
export type AutomationRuleFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationRule
|
|
*/
|
|
select?: Prisma.AutomationRuleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationRule
|
|
*/
|
|
omit?: Prisma.AutomationRuleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationRuleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AutomationRule to fetch.
|
|
*/
|
|
where: Prisma.AutomationRuleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AutomationRule findUniqueOrThrow
|
|
*/
|
|
export type AutomationRuleFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationRule
|
|
*/
|
|
select?: Prisma.AutomationRuleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationRule
|
|
*/
|
|
omit?: Prisma.AutomationRuleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationRuleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AutomationRule to fetch.
|
|
*/
|
|
where: Prisma.AutomationRuleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AutomationRule findFirst
|
|
*/
|
|
export type AutomationRuleFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationRule
|
|
*/
|
|
select?: Prisma.AutomationRuleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationRule
|
|
*/
|
|
omit?: Prisma.AutomationRuleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationRuleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AutomationRule to fetch.
|
|
*/
|
|
where?: Prisma.AutomationRuleWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AutomationRules to fetch.
|
|
*/
|
|
orderBy?: Prisma.AutomationRuleOrderByWithRelationInput | Prisma.AutomationRuleOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AutomationRules.
|
|
*/
|
|
cursor?: Prisma.AutomationRuleWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AutomationRules 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` AutomationRules.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AutomationRules.
|
|
*/
|
|
distinct?: Prisma.AutomationRuleScalarFieldEnum | Prisma.AutomationRuleScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AutomationRule findFirstOrThrow
|
|
*/
|
|
export type AutomationRuleFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationRule
|
|
*/
|
|
select?: Prisma.AutomationRuleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationRule
|
|
*/
|
|
omit?: Prisma.AutomationRuleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationRuleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AutomationRule to fetch.
|
|
*/
|
|
where?: Prisma.AutomationRuleWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AutomationRules to fetch.
|
|
*/
|
|
orderBy?: Prisma.AutomationRuleOrderByWithRelationInput | Prisma.AutomationRuleOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AutomationRules.
|
|
*/
|
|
cursor?: Prisma.AutomationRuleWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AutomationRules 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` AutomationRules.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AutomationRules.
|
|
*/
|
|
distinct?: Prisma.AutomationRuleScalarFieldEnum | Prisma.AutomationRuleScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AutomationRule findMany
|
|
*/
|
|
export type AutomationRuleFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationRule
|
|
*/
|
|
select?: Prisma.AutomationRuleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationRule
|
|
*/
|
|
omit?: Prisma.AutomationRuleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationRuleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AutomationRules to fetch.
|
|
*/
|
|
where?: Prisma.AutomationRuleWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AutomationRules to fetch.
|
|
*/
|
|
orderBy?: Prisma.AutomationRuleOrderByWithRelationInput | Prisma.AutomationRuleOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing AutomationRules.
|
|
*/
|
|
cursor?: Prisma.AutomationRuleWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AutomationRules 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` AutomationRules.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AutomationRules.
|
|
*/
|
|
distinct?: Prisma.AutomationRuleScalarFieldEnum | Prisma.AutomationRuleScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AutomationRule create
|
|
*/
|
|
export type AutomationRuleCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationRule
|
|
*/
|
|
select?: Prisma.AutomationRuleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationRule
|
|
*/
|
|
omit?: Prisma.AutomationRuleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationRuleInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a AutomationRule.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AutomationRuleCreateInput, Prisma.AutomationRuleUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* AutomationRule createMany
|
|
*/
|
|
export type AutomationRuleCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many AutomationRules.
|
|
*/
|
|
data: Prisma.AutomationRuleCreateManyInput | Prisma.AutomationRuleCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* AutomationRule createManyAndReturn
|
|
*/
|
|
export type AutomationRuleCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationRule
|
|
*/
|
|
select?: Prisma.AutomationRuleSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationRule
|
|
*/
|
|
omit?: Prisma.AutomationRuleOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many AutomationRules.
|
|
*/
|
|
data: Prisma.AutomationRuleCreateManyInput | Prisma.AutomationRuleCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* AutomationRule update
|
|
*/
|
|
export type AutomationRuleUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationRule
|
|
*/
|
|
select?: Prisma.AutomationRuleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationRule
|
|
*/
|
|
omit?: Prisma.AutomationRuleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationRuleInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a AutomationRule.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AutomationRuleUpdateInput, Prisma.AutomationRuleUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which AutomationRule to update.
|
|
*/
|
|
where: Prisma.AutomationRuleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AutomationRule updateMany
|
|
*/
|
|
export type AutomationRuleUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update AutomationRules.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AutomationRuleUpdateManyMutationInput, Prisma.AutomationRuleUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AutomationRules to update
|
|
*/
|
|
where?: Prisma.AutomationRuleWhereInput
|
|
/**
|
|
* Limit how many AutomationRules to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AutomationRule updateManyAndReturn
|
|
*/
|
|
export type AutomationRuleUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationRule
|
|
*/
|
|
select?: Prisma.AutomationRuleSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationRule
|
|
*/
|
|
omit?: Prisma.AutomationRuleOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update AutomationRules.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AutomationRuleUpdateManyMutationInput, Prisma.AutomationRuleUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AutomationRules to update
|
|
*/
|
|
where?: Prisma.AutomationRuleWhereInput
|
|
/**
|
|
* Limit how many AutomationRules to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AutomationRule upsert
|
|
*/
|
|
export type AutomationRuleUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationRule
|
|
*/
|
|
select?: Prisma.AutomationRuleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationRule
|
|
*/
|
|
omit?: Prisma.AutomationRuleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationRuleInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the AutomationRule to update in case it exists.
|
|
*/
|
|
where: Prisma.AutomationRuleWhereUniqueInput
|
|
/**
|
|
* In case the AutomationRule found by the `where` argument doesn't exist, create a new AutomationRule with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.AutomationRuleCreateInput, Prisma.AutomationRuleUncheckedCreateInput>
|
|
/**
|
|
* In case the AutomationRule was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.AutomationRuleUpdateInput, Prisma.AutomationRuleUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* AutomationRule delete
|
|
*/
|
|
export type AutomationRuleDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationRule
|
|
*/
|
|
select?: Prisma.AutomationRuleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationRule
|
|
*/
|
|
omit?: Prisma.AutomationRuleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationRuleInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which AutomationRule to delete.
|
|
*/
|
|
where: Prisma.AutomationRuleWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AutomationRule deleteMany
|
|
*/
|
|
export type AutomationRuleDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AutomationRules to delete
|
|
*/
|
|
where?: Prisma.AutomationRuleWhereInput
|
|
/**
|
|
* Limit how many AutomationRules to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AutomationRule.steps
|
|
*/
|
|
export type AutomationRule$stepsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationRuleStep
|
|
*/
|
|
select?: Prisma.AutomationRuleStepSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationRuleStep
|
|
*/
|
|
omit?: Prisma.AutomationRuleStepOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationRuleStepInclude<ExtArgs> | null
|
|
where?: Prisma.AutomationRuleStepWhereInput
|
|
orderBy?: Prisma.AutomationRuleStepOrderByWithRelationInput | Prisma.AutomationRuleStepOrderByWithRelationInput[]
|
|
cursor?: Prisma.AutomationRuleStepWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.AutomationRuleStepScalarFieldEnum | Prisma.AutomationRuleStepScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AutomationRule.executions
|
|
*/
|
|
export type AutomationRule$executionsArgs<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
|
|
where?: Prisma.AutomationExecutionWhereInput
|
|
orderBy?: Prisma.AutomationExecutionOrderByWithRelationInput | Prisma.AutomationExecutionOrderByWithRelationInput[]
|
|
cursor?: Prisma.AutomationExecutionWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.AutomationExecutionScalarFieldEnum | Prisma.AutomationExecutionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AutomationRule without action
|
|
*/
|
|
export type AutomationRuleDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AutomationRule
|
|
*/
|
|
select?: Prisma.AutomationRuleSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AutomationRule
|
|
*/
|
|
omit?: Prisma.AutomationRuleOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AutomationRuleInclude<ExtArgs> | null
|
|
}
|