mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 16:56:57 +00:00
1752 lines
55 KiB
TypeScript
1752 lines
55 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 `WorkflowTask` model and its related types.
|
||
|
|
*
|
||
|
|
* 🟢 You can import this file directly.
|
||
|
|
*/
|
||
|
|
|
||
|
|
import type * as PJTG from '../pjtg'
|
||
|
|
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 WorkflowTask
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
export type WorkflowTaskModel = runtime.Types.Result.DefaultSelection<Prisma.$WorkflowTaskPayload>
|
||
|
|
|
||
|
|
export type AggregateWorkflowTask = {
|
||
|
|
_count: WorkflowTaskCountAggregateOutputType | null
|
||
|
|
_avg: WorkflowTaskAvgAggregateOutputType | null
|
||
|
|
_sum: WorkflowTaskSumAggregateOutputType | null
|
||
|
|
_min: WorkflowTaskMinAggregateOutputType | null
|
||
|
|
_max: WorkflowTaskMaxAggregateOutputType | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskAvgAggregateOutputType = {
|
||
|
|
inputTokens: number | null
|
||
|
|
outputTokens: number | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskSumAggregateOutputType = {
|
||
|
|
inputTokens: number | null
|
||
|
|
outputTokens: number | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskMinAggregateOutputType = {
|
||
|
|
id: string | null
|
||
|
|
uid: string | null
|
||
|
|
teamId: string | null
|
||
|
|
projectId: string | null
|
||
|
|
assetId: string | null
|
||
|
|
type: $Enums.WorkflowTaskType | null
|
||
|
|
status: $Enums.WorkflowTaskStatus | null
|
||
|
|
heartbeat: Date | null
|
||
|
|
inputTokens: number | null
|
||
|
|
outputTokens: number | null
|
||
|
|
model: string | null
|
||
|
|
createdAt: Date | null
|
||
|
|
updatedAt: Date | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskMaxAggregateOutputType = {
|
||
|
|
id: string | null
|
||
|
|
uid: string | null
|
||
|
|
teamId: string | null
|
||
|
|
projectId: string | null
|
||
|
|
assetId: string | null
|
||
|
|
type: $Enums.WorkflowTaskType | null
|
||
|
|
status: $Enums.WorkflowTaskStatus | null
|
||
|
|
heartbeat: Date | null
|
||
|
|
inputTokens: number | null
|
||
|
|
outputTokens: number | null
|
||
|
|
model: string | null
|
||
|
|
createdAt: Date | null
|
||
|
|
updatedAt: Date | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskCountAggregateOutputType = {
|
||
|
|
id: number
|
||
|
|
uid: number
|
||
|
|
teamId: number
|
||
|
|
projectId: number
|
||
|
|
assetId: number
|
||
|
|
type: number
|
||
|
|
status: number
|
||
|
|
payload: PrismaJson.WorkflowTaskPayload
|
||
|
|
output: PrismaJson.WorkflowTaskOutput
|
||
|
|
heartbeat: number
|
||
|
|
inputTokens: number
|
||
|
|
outputTokens: number
|
||
|
|
model: number
|
||
|
|
createdAt: number
|
||
|
|
updatedAt: number
|
||
|
|
_all: number
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskAvgAggregateInputType = {
|
||
|
|
inputTokens?: true
|
||
|
|
outputTokens?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskSumAggregateInputType = {
|
||
|
|
inputTokens?: true
|
||
|
|
outputTokens?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskMinAggregateInputType = {
|
||
|
|
id?: true
|
||
|
|
uid?: true
|
||
|
|
teamId?: true
|
||
|
|
projectId?: true
|
||
|
|
assetId?: true
|
||
|
|
type?: true
|
||
|
|
status?: true
|
||
|
|
heartbeat?: true
|
||
|
|
inputTokens?: true
|
||
|
|
outputTokens?: true
|
||
|
|
model?: true
|
||
|
|
createdAt?: true
|
||
|
|
updatedAt?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskMaxAggregateInputType = {
|
||
|
|
id?: true
|
||
|
|
uid?: true
|
||
|
|
teamId?: true
|
||
|
|
projectId?: true
|
||
|
|
assetId?: true
|
||
|
|
type?: true
|
||
|
|
status?: true
|
||
|
|
heartbeat?: true
|
||
|
|
inputTokens?: true
|
||
|
|
outputTokens?: true
|
||
|
|
model?: true
|
||
|
|
createdAt?: true
|
||
|
|
updatedAt?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskCountAggregateInputType = {
|
||
|
|
id?: true
|
||
|
|
uid?: true
|
||
|
|
teamId?: true
|
||
|
|
projectId?: true
|
||
|
|
assetId?: true
|
||
|
|
type?: true
|
||
|
|
status?: true
|
||
|
|
payload?: true
|
||
|
|
output?: true
|
||
|
|
heartbeat?: true
|
||
|
|
inputTokens?: true
|
||
|
|
outputTokens?: true
|
||
|
|
model?: true
|
||
|
|
createdAt?: true
|
||
|
|
updatedAt?: true
|
||
|
|
_all?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskAggregateArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Filter which WorkflowTask to aggregate.
|
||
|
|
*/
|
||
|
|
where?: Prisma.WorkflowTaskWhereInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||
|
|
*
|
||
|
|
* Determine the order of WorkflowTasks to fetch.
|
||
|
|
*/
|
||
|
|
orderBy?:
|
||
|
|
| Prisma.WorkflowTaskOrderByWithRelationInput
|
||
|
|
| Prisma.WorkflowTaskOrderByWithRelationInput[]
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
||
|
|
*
|
||
|
|
* Sets the start position
|
||
|
|
*/
|
||
|
|
cursor?: Prisma.WorkflowTaskWhereUniqueInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||
|
|
*
|
||
|
|
* Take `±n` WorkflowTasks 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` WorkflowTasks.
|
||
|
|
*/
|
||
|
|
skip?: number
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||
|
|
*
|
||
|
|
* Count returned WorkflowTasks
|
||
|
|
**/
|
||
|
|
_count?: true | WorkflowTaskCountAggregateInputType
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||
|
|
*
|
||
|
|
* Select which fields to average
|
||
|
|
**/
|
||
|
|
_avg?: WorkflowTaskAvgAggregateInputType
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||
|
|
*
|
||
|
|
* Select which fields to sum
|
||
|
|
**/
|
||
|
|
_sum?: WorkflowTaskSumAggregateInputType
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||
|
|
*
|
||
|
|
* Select which fields to find the minimum value
|
||
|
|
**/
|
||
|
|
_min?: WorkflowTaskMinAggregateInputType
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||
|
|
*
|
||
|
|
* Select which fields to find the maximum value
|
||
|
|
**/
|
||
|
|
_max?: WorkflowTaskMaxAggregateInputType
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GetWorkflowTaskAggregateType<T extends WorkflowTaskAggregateArgs> = {
|
||
|
|
[P in keyof T & keyof AggregateWorkflowTask]: P extends '_count' | 'count'
|
||
|
|
? T[P] extends true
|
||
|
|
? number
|
||
|
|
: Prisma.GetScalarType<T[P], AggregateWorkflowTask[P]>
|
||
|
|
: Prisma.GetScalarType<T[P], AggregateWorkflowTask[P]>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskGroupByArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
where?: Prisma.WorkflowTaskWhereInput
|
||
|
|
orderBy?:
|
||
|
|
| Prisma.WorkflowTaskOrderByWithAggregationInput
|
||
|
|
| Prisma.WorkflowTaskOrderByWithAggregationInput[]
|
||
|
|
by: Prisma.WorkflowTaskScalarFieldEnum[] | Prisma.WorkflowTaskScalarFieldEnum
|
||
|
|
having?: Prisma.WorkflowTaskScalarWhereWithAggregatesInput
|
||
|
|
take?: number
|
||
|
|
skip?: number
|
||
|
|
_count?: WorkflowTaskCountAggregateInputType | true
|
||
|
|
_avg?: WorkflowTaskAvgAggregateInputType
|
||
|
|
_sum?: WorkflowTaskSumAggregateInputType
|
||
|
|
_min?: WorkflowTaskMinAggregateInputType
|
||
|
|
_max?: WorkflowTaskMaxAggregateInputType
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskGroupByOutputType = {
|
||
|
|
id: string
|
||
|
|
uid: string
|
||
|
|
teamId: string | null
|
||
|
|
projectId: string | null
|
||
|
|
assetId: string
|
||
|
|
type: $Enums.WorkflowTaskType | null
|
||
|
|
status: $Enums.WorkflowTaskStatus | null
|
||
|
|
payload: PrismaJson.WorkflowTaskPayload | null
|
||
|
|
output: PrismaJson.WorkflowTaskOutput | null
|
||
|
|
heartbeat: Date | null
|
||
|
|
inputTokens: number
|
||
|
|
outputTokens: number
|
||
|
|
model: string | null
|
||
|
|
createdAt: Date
|
||
|
|
updatedAt: Date
|
||
|
|
_count: WorkflowTaskCountAggregateOutputType | null
|
||
|
|
_avg: WorkflowTaskAvgAggregateOutputType | null
|
||
|
|
_sum: WorkflowTaskSumAggregateOutputType | null
|
||
|
|
_min: WorkflowTaskMinAggregateOutputType | null
|
||
|
|
_max: WorkflowTaskMaxAggregateOutputType | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GetWorkflowTaskGroupByPayload<T extends WorkflowTaskGroupByArgs> = Prisma.PrismaPromise<
|
||
|
|
Array<
|
||
|
|
Prisma.PickEnumerable<WorkflowTaskGroupByOutputType, T['by']> & {
|
||
|
|
[P in keyof T & keyof WorkflowTaskGroupByOutputType]: P extends '_count'
|
||
|
|
? T[P] extends boolean
|
||
|
|
? number
|
||
|
|
: Prisma.GetScalarType<T[P], WorkflowTaskGroupByOutputType[P]>
|
||
|
|
: Prisma.GetScalarType<T[P], WorkflowTaskGroupByOutputType[P]>
|
||
|
|
}
|
||
|
|
>
|
||
|
|
>
|
||
|
|
|
||
|
|
export type WorkflowTaskWhereInput = {
|
||
|
|
AND?: Prisma.WorkflowTaskWhereInput | Prisma.WorkflowTaskWhereInput[]
|
||
|
|
OR?: Prisma.WorkflowTaskWhereInput[]
|
||
|
|
NOT?: Prisma.WorkflowTaskWhereInput | Prisma.WorkflowTaskWhereInput[]
|
||
|
|
id?: Prisma.StringFilter<'WorkflowTask'> | string
|
||
|
|
uid?: Prisma.UuidFilter<'WorkflowTask'> | string
|
||
|
|
teamId?: Prisma.StringNullableFilter<'WorkflowTask'> | string | null
|
||
|
|
projectId?: Prisma.StringNullableFilter<'WorkflowTask'> | string | null
|
||
|
|
assetId?: Prisma.StringFilter<'WorkflowTask'> | string
|
||
|
|
type?: Prisma.EnumWorkflowTaskTypeNullableFilter<'WorkflowTask'> | $Enums.WorkflowTaskType | null
|
||
|
|
status?:
|
||
|
|
| Prisma.EnumWorkflowTaskStatusNullableFilter<'WorkflowTask'>
|
||
|
|
| $Enums.WorkflowTaskStatus
|
||
|
|
| null
|
||
|
|
payload?: Prisma.JsonNullableFilter<'WorkflowTask'>
|
||
|
|
output?: Prisma.JsonNullableFilter<'WorkflowTask'>
|
||
|
|
heartbeat?: Prisma.DateTimeNullableFilter<'WorkflowTask'> | Date | string | null
|
||
|
|
inputTokens?: Prisma.IntFilter<'WorkflowTask'> | number
|
||
|
|
outputTokens?: Prisma.IntFilter<'WorkflowTask'> | number
|
||
|
|
model?: Prisma.StringNullableFilter<'WorkflowTask'> | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFilter<'WorkflowTask'> | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFilter<'WorkflowTask'> | Date | string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskOrderByWithRelationInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
uid?: Prisma.SortOrder
|
||
|
|
teamId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
projectId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
assetId?: Prisma.SortOrder
|
||
|
|
type?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
status?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
payload?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
output?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
heartbeat?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
inputTokens?: Prisma.SortOrder
|
||
|
|
outputTokens?: Prisma.SortOrder
|
||
|
|
model?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
createdAt?: Prisma.SortOrder
|
||
|
|
updatedAt?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskWhereUniqueInput = Prisma.AtLeast<
|
||
|
|
{
|
||
|
|
id?: string
|
||
|
|
AND?: Prisma.WorkflowTaskWhereInput | Prisma.WorkflowTaskWhereInput[]
|
||
|
|
OR?: Prisma.WorkflowTaskWhereInput[]
|
||
|
|
NOT?: Prisma.WorkflowTaskWhereInput | Prisma.WorkflowTaskWhereInput[]
|
||
|
|
uid?: Prisma.UuidFilter<'WorkflowTask'> | string
|
||
|
|
teamId?: Prisma.StringNullableFilter<'WorkflowTask'> | string | null
|
||
|
|
projectId?: Prisma.StringNullableFilter<'WorkflowTask'> | string | null
|
||
|
|
assetId?: Prisma.StringFilter<'WorkflowTask'> | string
|
||
|
|
type?:
|
||
|
|
| Prisma.EnumWorkflowTaskTypeNullableFilter<'WorkflowTask'>
|
||
|
|
| $Enums.WorkflowTaskType
|
||
|
|
| null
|
||
|
|
status?:
|
||
|
|
| Prisma.EnumWorkflowTaskStatusNullableFilter<'WorkflowTask'>
|
||
|
|
| $Enums.WorkflowTaskStatus
|
||
|
|
| null
|
||
|
|
payload?: Prisma.JsonNullableFilter<'WorkflowTask'>
|
||
|
|
output?: Prisma.JsonNullableFilter<'WorkflowTask'>
|
||
|
|
heartbeat?: Prisma.DateTimeNullableFilter<'WorkflowTask'> | Date | string | null
|
||
|
|
inputTokens?: Prisma.IntFilter<'WorkflowTask'> | number
|
||
|
|
outputTokens?: Prisma.IntFilter<'WorkflowTask'> | number
|
||
|
|
model?: Prisma.StringNullableFilter<'WorkflowTask'> | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFilter<'WorkflowTask'> | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFilter<'WorkflowTask'> | Date | string
|
||
|
|
},
|
||
|
|
'id'
|
||
|
|
>
|
||
|
|
|
||
|
|
export type WorkflowTaskOrderByWithAggregationInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
uid?: Prisma.SortOrder
|
||
|
|
teamId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
projectId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
assetId?: Prisma.SortOrder
|
||
|
|
type?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
status?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
payload?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
output?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
heartbeat?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
inputTokens?: Prisma.SortOrder
|
||
|
|
outputTokens?: Prisma.SortOrder
|
||
|
|
model?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
createdAt?: Prisma.SortOrder
|
||
|
|
updatedAt?: Prisma.SortOrder
|
||
|
|
_count?: Prisma.WorkflowTaskCountOrderByAggregateInput
|
||
|
|
_avg?: Prisma.WorkflowTaskAvgOrderByAggregateInput
|
||
|
|
_max?: Prisma.WorkflowTaskMaxOrderByAggregateInput
|
||
|
|
_min?: Prisma.WorkflowTaskMinOrderByAggregateInput
|
||
|
|
_sum?: Prisma.WorkflowTaskSumOrderByAggregateInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskScalarWhereWithAggregatesInput = {
|
||
|
|
AND?:
|
||
|
|
| Prisma.WorkflowTaskScalarWhereWithAggregatesInput
|
||
|
|
| Prisma.WorkflowTaskScalarWhereWithAggregatesInput[]
|
||
|
|
OR?: Prisma.WorkflowTaskScalarWhereWithAggregatesInput[]
|
||
|
|
NOT?:
|
||
|
|
| Prisma.WorkflowTaskScalarWhereWithAggregatesInput
|
||
|
|
| Prisma.WorkflowTaskScalarWhereWithAggregatesInput[]
|
||
|
|
id?: Prisma.StringWithAggregatesFilter<'WorkflowTask'> | string
|
||
|
|
uid?: Prisma.UuidWithAggregatesFilter<'WorkflowTask'> | string
|
||
|
|
teamId?: Prisma.StringNullableWithAggregatesFilter<'WorkflowTask'> | string | null
|
||
|
|
projectId?: Prisma.StringNullableWithAggregatesFilter<'WorkflowTask'> | string | null
|
||
|
|
assetId?: Prisma.StringWithAggregatesFilter<'WorkflowTask'> | string
|
||
|
|
type?:
|
||
|
|
| Prisma.EnumWorkflowTaskTypeNullableWithAggregatesFilter<'WorkflowTask'>
|
||
|
|
| $Enums.WorkflowTaskType
|
||
|
|
| null
|
||
|
|
status?:
|
||
|
|
| Prisma.EnumWorkflowTaskStatusNullableWithAggregatesFilter<'WorkflowTask'>
|
||
|
|
| $Enums.WorkflowTaskStatus
|
||
|
|
| null
|
||
|
|
payload?: Prisma.JsonNullableWithAggregatesFilter<'WorkflowTask'>
|
||
|
|
output?: Prisma.JsonNullableWithAggregatesFilter<'WorkflowTask'>
|
||
|
|
heartbeat?: Prisma.DateTimeNullableWithAggregatesFilter<'WorkflowTask'> | Date | string | null
|
||
|
|
inputTokens?: Prisma.IntWithAggregatesFilter<'WorkflowTask'> | number
|
||
|
|
outputTokens?: Prisma.IntWithAggregatesFilter<'WorkflowTask'> | number
|
||
|
|
model?: Prisma.StringNullableWithAggregatesFilter<'WorkflowTask'> | string | null
|
||
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<'WorkflowTask'> | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<'WorkflowTask'> | Date | string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskCreateInput = {
|
||
|
|
id?: string
|
||
|
|
uid?: string
|
||
|
|
teamId?: string | null
|
||
|
|
projectId?: string | null
|
||
|
|
assetId: string
|
||
|
|
type?: $Enums.WorkflowTaskType | null
|
||
|
|
status?: $Enums.WorkflowTaskStatus | null
|
||
|
|
payload?: PrismaJson.WorkflowTaskPayload | Prisma.NullableJsonNullValueInput
|
||
|
|
output?: PrismaJson.WorkflowTaskOutput | Prisma.NullableJsonNullValueInput
|
||
|
|
heartbeat?: Date | string | null
|
||
|
|
inputTokens?: number
|
||
|
|
outputTokens?: number
|
||
|
|
model?: string | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskUncheckedCreateInput = {
|
||
|
|
id?: string
|
||
|
|
uid?: string
|
||
|
|
teamId?: string | null
|
||
|
|
projectId?: string | null
|
||
|
|
assetId: string
|
||
|
|
type?: $Enums.WorkflowTaskType | null
|
||
|
|
status?: $Enums.WorkflowTaskStatus | null
|
||
|
|
payload?: PrismaJson.WorkflowTaskPayload | Prisma.NullableJsonNullValueInput
|
||
|
|
output?: PrismaJson.WorkflowTaskOutput | Prisma.NullableJsonNullValueInput
|
||
|
|
heartbeat?: Date | string | null
|
||
|
|
inputTokens?: number
|
||
|
|
outputTokens?: number
|
||
|
|
model?: string | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskUpdateInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
uid?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
assetId?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumWorkflowTaskTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.WorkflowTaskType
|
||
|
|
| null
|
||
|
|
status?:
|
||
|
|
| Prisma.NullableEnumWorkflowTaskStatusFieldUpdateOperationsInput
|
||
|
|
| $Enums.WorkflowTaskStatus
|
||
|
|
| null
|
||
|
|
payload?: PrismaJson.WorkflowTaskPayload | Prisma.NullableJsonNullValueInput
|
||
|
|
output?: PrismaJson.WorkflowTaskOutput | Prisma.NullableJsonNullValueInput
|
||
|
|
heartbeat?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskUncheckedUpdateInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
uid?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
assetId?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumWorkflowTaskTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.WorkflowTaskType
|
||
|
|
| null
|
||
|
|
status?:
|
||
|
|
| Prisma.NullableEnumWorkflowTaskStatusFieldUpdateOperationsInput
|
||
|
|
| $Enums.WorkflowTaskStatus
|
||
|
|
| null
|
||
|
|
payload?: PrismaJson.WorkflowTaskPayload | Prisma.NullableJsonNullValueInput
|
||
|
|
output?: PrismaJson.WorkflowTaskOutput | Prisma.NullableJsonNullValueInput
|
||
|
|
heartbeat?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskCreateManyInput = {
|
||
|
|
id?: string
|
||
|
|
uid?: string
|
||
|
|
teamId?: string | null
|
||
|
|
projectId?: string | null
|
||
|
|
assetId: string
|
||
|
|
type?: $Enums.WorkflowTaskType | null
|
||
|
|
status?: $Enums.WorkflowTaskStatus | null
|
||
|
|
payload?: PrismaJson.WorkflowTaskPayload | Prisma.NullableJsonNullValueInput
|
||
|
|
output?: PrismaJson.WorkflowTaskOutput | Prisma.NullableJsonNullValueInput
|
||
|
|
heartbeat?: Date | string | null
|
||
|
|
inputTokens?: number
|
||
|
|
outputTokens?: number
|
||
|
|
model?: string | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskUpdateManyMutationInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
uid?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
assetId?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumWorkflowTaskTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.WorkflowTaskType
|
||
|
|
| null
|
||
|
|
status?:
|
||
|
|
| Prisma.NullableEnumWorkflowTaskStatusFieldUpdateOperationsInput
|
||
|
|
| $Enums.WorkflowTaskStatus
|
||
|
|
| null
|
||
|
|
payload?: PrismaJson.WorkflowTaskPayload | Prisma.NullableJsonNullValueInput
|
||
|
|
output?: PrismaJson.WorkflowTaskOutput | Prisma.NullableJsonNullValueInput
|
||
|
|
heartbeat?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskUncheckedUpdateManyInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
uid?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
assetId?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumWorkflowTaskTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.WorkflowTaskType
|
||
|
|
| null
|
||
|
|
status?:
|
||
|
|
| Prisma.NullableEnumWorkflowTaskStatusFieldUpdateOperationsInput
|
||
|
|
| $Enums.WorkflowTaskStatus
|
||
|
|
| null
|
||
|
|
payload?: PrismaJson.WorkflowTaskPayload | Prisma.NullableJsonNullValueInput
|
||
|
|
output?: PrismaJson.WorkflowTaskOutput | Prisma.NullableJsonNullValueInput
|
||
|
|
heartbeat?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
inputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
outputTokens?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
model?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskCountOrderByAggregateInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
uid?: Prisma.SortOrder
|
||
|
|
teamId?: Prisma.SortOrder
|
||
|
|
projectId?: Prisma.SortOrder
|
||
|
|
assetId?: Prisma.SortOrder
|
||
|
|
type?: Prisma.SortOrder
|
||
|
|
status?: Prisma.SortOrder
|
||
|
|
payload?: Prisma.SortOrder
|
||
|
|
output?: Prisma.SortOrder
|
||
|
|
heartbeat?: Prisma.SortOrder
|
||
|
|
inputTokens?: Prisma.SortOrder
|
||
|
|
outputTokens?: Prisma.SortOrder
|
||
|
|
model?: Prisma.SortOrder
|
||
|
|
createdAt?: Prisma.SortOrder
|
||
|
|
updatedAt?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskAvgOrderByAggregateInput = {
|
||
|
|
inputTokens?: Prisma.SortOrder
|
||
|
|
outputTokens?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskMaxOrderByAggregateInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
uid?: Prisma.SortOrder
|
||
|
|
teamId?: Prisma.SortOrder
|
||
|
|
projectId?: Prisma.SortOrder
|
||
|
|
assetId?: Prisma.SortOrder
|
||
|
|
type?: Prisma.SortOrder
|
||
|
|
status?: Prisma.SortOrder
|
||
|
|
heartbeat?: Prisma.SortOrder
|
||
|
|
inputTokens?: Prisma.SortOrder
|
||
|
|
outputTokens?: Prisma.SortOrder
|
||
|
|
model?: Prisma.SortOrder
|
||
|
|
createdAt?: Prisma.SortOrder
|
||
|
|
updatedAt?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskMinOrderByAggregateInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
uid?: Prisma.SortOrder
|
||
|
|
teamId?: Prisma.SortOrder
|
||
|
|
projectId?: Prisma.SortOrder
|
||
|
|
assetId?: Prisma.SortOrder
|
||
|
|
type?: Prisma.SortOrder
|
||
|
|
status?: Prisma.SortOrder
|
||
|
|
heartbeat?: Prisma.SortOrder
|
||
|
|
inputTokens?: Prisma.SortOrder
|
||
|
|
outputTokens?: Prisma.SortOrder
|
||
|
|
model?: Prisma.SortOrder
|
||
|
|
createdAt?: Prisma.SortOrder
|
||
|
|
updatedAt?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskSumOrderByAggregateInput = {
|
||
|
|
inputTokens?: Prisma.SortOrder
|
||
|
|
outputTokens?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NullableEnumWorkflowTaskTypeFieldUpdateOperationsInput = {
|
||
|
|
set?: $Enums.WorkflowTaskType | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NullableEnumWorkflowTaskStatusFieldUpdateOperationsInput = {
|
||
|
|
set?: $Enums.WorkflowTaskStatus | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskSelect<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = runtime.Types.Extensions.GetSelect<
|
||
|
|
{
|
||
|
|
id?: boolean
|
||
|
|
uid?: boolean
|
||
|
|
teamId?: boolean
|
||
|
|
projectId?: boolean
|
||
|
|
assetId?: boolean
|
||
|
|
type?: boolean
|
||
|
|
status?: boolean
|
||
|
|
payload?: boolean
|
||
|
|
output?: boolean
|
||
|
|
heartbeat?: boolean
|
||
|
|
inputTokens?: boolean
|
||
|
|
outputTokens?: boolean
|
||
|
|
model?: boolean
|
||
|
|
createdAt?: boolean
|
||
|
|
updatedAt?: boolean
|
||
|
|
},
|
||
|
|
ExtArgs['result']['workflowTask']
|
||
|
|
>
|
||
|
|
|
||
|
|
export type WorkflowTaskSelectCreateManyAndReturn<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = runtime.Types.Extensions.GetSelect<
|
||
|
|
{
|
||
|
|
id?: boolean
|
||
|
|
uid?: boolean
|
||
|
|
teamId?: boolean
|
||
|
|
projectId?: boolean
|
||
|
|
assetId?: boolean
|
||
|
|
type?: boolean
|
||
|
|
status?: boolean
|
||
|
|
payload?: boolean
|
||
|
|
output?: boolean
|
||
|
|
heartbeat?: boolean
|
||
|
|
inputTokens?: boolean
|
||
|
|
outputTokens?: boolean
|
||
|
|
model?: boolean
|
||
|
|
createdAt?: boolean
|
||
|
|
updatedAt?: boolean
|
||
|
|
},
|
||
|
|
ExtArgs['result']['workflowTask']
|
||
|
|
>
|
||
|
|
|
||
|
|
export type WorkflowTaskSelectUpdateManyAndReturn<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = runtime.Types.Extensions.GetSelect<
|
||
|
|
{
|
||
|
|
id?: boolean
|
||
|
|
uid?: boolean
|
||
|
|
teamId?: boolean
|
||
|
|
projectId?: boolean
|
||
|
|
assetId?: boolean
|
||
|
|
type?: boolean
|
||
|
|
status?: boolean
|
||
|
|
payload?: boolean
|
||
|
|
output?: boolean
|
||
|
|
heartbeat?: boolean
|
||
|
|
inputTokens?: boolean
|
||
|
|
outputTokens?: boolean
|
||
|
|
model?: boolean
|
||
|
|
createdAt?: boolean
|
||
|
|
updatedAt?: boolean
|
||
|
|
},
|
||
|
|
ExtArgs['result']['workflowTask']
|
||
|
|
>
|
||
|
|
|
||
|
|
export type WorkflowTaskSelectScalar = {
|
||
|
|
id?: boolean
|
||
|
|
uid?: boolean
|
||
|
|
teamId?: boolean
|
||
|
|
projectId?: boolean
|
||
|
|
assetId?: boolean
|
||
|
|
type?: boolean
|
||
|
|
status?: boolean
|
||
|
|
payload?: boolean
|
||
|
|
output?: boolean
|
||
|
|
heartbeat?: boolean
|
||
|
|
inputTokens?: boolean
|
||
|
|
outputTokens?: boolean
|
||
|
|
model?: boolean
|
||
|
|
createdAt?: boolean
|
||
|
|
updatedAt?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskOmit<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = runtime.Types.Extensions.GetOmit<
|
||
|
|
| 'id'
|
||
|
|
| 'uid'
|
||
|
|
| 'teamId'
|
||
|
|
| 'projectId'
|
||
|
|
| 'assetId'
|
||
|
|
| 'type'
|
||
|
|
| 'status'
|
||
|
|
| 'payload'
|
||
|
|
| 'output'
|
||
|
|
| 'heartbeat'
|
||
|
|
| 'inputTokens'
|
||
|
|
| 'outputTokens'
|
||
|
|
| 'model'
|
||
|
|
| 'createdAt'
|
||
|
|
| 'updatedAt',
|
||
|
|
ExtArgs['result']['workflowTask']
|
||
|
|
>
|
||
|
|
|
||
|
|
export type $WorkflowTaskPayload<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
name: 'WorkflowTask'
|
||
|
|
objects: {}
|
||
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<
|
||
|
|
{
|
||
|
|
id: string
|
||
|
|
uid: string
|
||
|
|
teamId: string | null
|
||
|
|
projectId: string | null
|
||
|
|
assetId: string
|
||
|
|
type: $Enums.WorkflowTaskType | null
|
||
|
|
status: $Enums.WorkflowTaskStatus | null
|
||
|
|
/**
|
||
|
|
* [WorkflowTaskPayload]
|
||
|
|
*/
|
||
|
|
payload: PrismaJson.WorkflowTaskPayload | null
|
||
|
|
/**
|
||
|
|
* [WorkflowTaskOutput]
|
||
|
|
*/
|
||
|
|
output: PrismaJson.WorkflowTaskOutput | null
|
||
|
|
heartbeat: Date | null
|
||
|
|
inputTokens: number
|
||
|
|
outputTokens: number
|
||
|
|
model: string | null
|
||
|
|
createdAt: Date
|
||
|
|
updatedAt: Date
|
||
|
|
},
|
||
|
|
ExtArgs['result']['workflowTask']
|
||
|
|
>
|
||
|
|
composites: {}
|
||
|
|
}
|
||
|
|
|
||
|
|
export type WorkflowTaskGetPayload<S extends boolean | null | undefined | WorkflowTaskDefaultArgs> =
|
||
|
|
runtime.Types.Result.GetResult<Prisma.$WorkflowTaskPayload, S>
|
||
|
|
|
||
|
|
export type WorkflowTaskCountArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = Omit<WorkflowTaskFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
||
|
|
select?: WorkflowTaskCountAggregateInputType | true
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface WorkflowTaskDelegate<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
GlobalOmitOptions = {},
|
||
|
|
> {
|
||
|
|
[K: symbol]: {
|
||
|
|
types: Prisma.TypeMap<ExtArgs>['model']['WorkflowTask']
|
||
|
|
meta: { name: 'WorkflowTask' }
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* Find zero or one WorkflowTask that matches the filter.
|
||
|
|
* @param {WorkflowTaskFindUniqueArgs} args - Arguments to find a WorkflowTask
|
||
|
|
* @example
|
||
|
|
* // Get one WorkflowTask
|
||
|
|
* const workflowTask = await prisma.workflowTask.findUnique({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*/
|
||
|
|
findUnique<T extends WorkflowTaskFindUniqueArgs>(
|
||
|
|
args: Prisma.SelectSubset<T, WorkflowTaskFindUniqueArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__WorkflowTaskClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$WorkflowTaskPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'findUnique',
|
||
|
|
GlobalOmitOptions
|
||
|
|
> | null,
|
||
|
|
null,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Find one WorkflowTask that matches the filter or throw an error with `error.code='P2025'`
|
||
|
|
* if no matches were found.
|
||
|
|
* @param {WorkflowTaskFindUniqueOrThrowArgs} args - Arguments to find a WorkflowTask
|
||
|
|
* @example
|
||
|
|
* // Get one WorkflowTask
|
||
|
|
* const workflowTask = await prisma.workflowTask.findUniqueOrThrow({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*/
|
||
|
|
findUniqueOrThrow<T extends WorkflowTaskFindUniqueOrThrowArgs>(
|
||
|
|
args: Prisma.SelectSubset<T, WorkflowTaskFindUniqueOrThrowArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__WorkflowTaskClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$WorkflowTaskPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'findUniqueOrThrow',
|
||
|
|
GlobalOmitOptions
|
||
|
|
>,
|
||
|
|
never,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Find the first WorkflowTask 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 {WorkflowTaskFindFirstArgs} args - Arguments to find a WorkflowTask
|
||
|
|
* @example
|
||
|
|
* // Get one WorkflowTask
|
||
|
|
* const workflowTask = await prisma.workflowTask.findFirst({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*/
|
||
|
|
findFirst<T extends WorkflowTaskFindFirstArgs>(
|
||
|
|
args?: Prisma.SelectSubset<T, WorkflowTaskFindFirstArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__WorkflowTaskClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$WorkflowTaskPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'findFirst',
|
||
|
|
GlobalOmitOptions
|
||
|
|
> | null,
|
||
|
|
null,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Find the first WorkflowTask 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 {WorkflowTaskFindFirstOrThrowArgs} args - Arguments to find a WorkflowTask
|
||
|
|
* @example
|
||
|
|
* // Get one WorkflowTask
|
||
|
|
* const workflowTask = await prisma.workflowTask.findFirstOrThrow({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*/
|
||
|
|
findFirstOrThrow<T extends WorkflowTaskFindFirstOrThrowArgs>(
|
||
|
|
args?: Prisma.SelectSubset<T, WorkflowTaskFindFirstOrThrowArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__WorkflowTaskClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$WorkflowTaskPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'findFirstOrThrow',
|
||
|
|
GlobalOmitOptions
|
||
|
|
>,
|
||
|
|
never,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Find zero or more WorkflowTasks 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 {WorkflowTaskFindManyArgs} args - Arguments to filter and select certain fields only.
|
||
|
|
* @example
|
||
|
|
* // Get all WorkflowTasks
|
||
|
|
* const workflowTasks = await prisma.workflowTask.findMany()
|
||
|
|
*
|
||
|
|
* // Get first 10 WorkflowTasks
|
||
|
|
* const workflowTasks = await prisma.workflowTask.findMany({ take: 10 })
|
||
|
|
*
|
||
|
|
* // Only select the `id`
|
||
|
|
* const workflowTaskWithIdOnly = await prisma.workflowTask.findMany({ select: { id: true } })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
findMany<T extends WorkflowTaskFindManyArgs>(
|
||
|
|
args?: Prisma.SelectSubset<T, WorkflowTaskFindManyArgs<ExtArgs>>,
|
||
|
|
): Prisma.PrismaPromise<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$WorkflowTaskPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'findMany',
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Create a WorkflowTask.
|
||
|
|
* @param {WorkflowTaskCreateArgs} args - Arguments to create a WorkflowTask.
|
||
|
|
* @example
|
||
|
|
* // Create one WorkflowTask
|
||
|
|
* const WorkflowTask = await prisma.workflowTask.create({
|
||
|
|
* data: {
|
||
|
|
* // ... data to create a WorkflowTask
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
create<T extends WorkflowTaskCreateArgs>(
|
||
|
|
args: Prisma.SelectSubset<T, WorkflowTaskCreateArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__WorkflowTaskClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$WorkflowTaskPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'create',
|
||
|
|
GlobalOmitOptions
|
||
|
|
>,
|
||
|
|
never,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Create many WorkflowTasks.
|
||
|
|
* @param {WorkflowTaskCreateManyArgs} args - Arguments to create many WorkflowTasks.
|
||
|
|
* @example
|
||
|
|
* // Create many WorkflowTasks
|
||
|
|
* const workflowTask = await prisma.workflowTask.createMany({
|
||
|
|
* data: [
|
||
|
|
* // ... provide data here
|
||
|
|
* ]
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
createMany<T extends WorkflowTaskCreateManyArgs>(
|
||
|
|
args?: Prisma.SelectSubset<T, WorkflowTaskCreateManyArgs<ExtArgs>>,
|
||
|
|
): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Create many WorkflowTasks and returns the data saved in the database.
|
||
|
|
* @param {WorkflowTaskCreateManyAndReturnArgs} args - Arguments to create many WorkflowTasks.
|
||
|
|
* @example
|
||
|
|
* // Create many WorkflowTasks
|
||
|
|
* const workflowTask = await prisma.workflowTask.createManyAndReturn({
|
||
|
|
* data: [
|
||
|
|
* // ... provide data here
|
||
|
|
* ]
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
* // Create many WorkflowTasks and only return the `id`
|
||
|
|
* const workflowTaskWithIdOnly = await prisma.workflowTask.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 WorkflowTaskCreateManyAndReturnArgs>(
|
||
|
|
args?: Prisma.SelectSubset<T, WorkflowTaskCreateManyAndReturnArgs<ExtArgs>>,
|
||
|
|
): Prisma.PrismaPromise<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$WorkflowTaskPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'createManyAndReturn',
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Delete a WorkflowTask.
|
||
|
|
* @param {WorkflowTaskDeleteArgs} args - Arguments to delete one WorkflowTask.
|
||
|
|
* @example
|
||
|
|
* // Delete one WorkflowTask
|
||
|
|
* const WorkflowTask = await prisma.workflowTask.delete({
|
||
|
|
* where: {
|
||
|
|
* // ... filter to delete one WorkflowTask
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
delete<T extends WorkflowTaskDeleteArgs>(
|
||
|
|
args: Prisma.SelectSubset<T, WorkflowTaskDeleteArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__WorkflowTaskClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$WorkflowTaskPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'delete',
|
||
|
|
GlobalOmitOptions
|
||
|
|
>,
|
||
|
|
never,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Update one WorkflowTask.
|
||
|
|
* @param {WorkflowTaskUpdateArgs} args - Arguments to update one WorkflowTask.
|
||
|
|
* @example
|
||
|
|
* // Update one WorkflowTask
|
||
|
|
* const workflowTask = await prisma.workflowTask.update({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* },
|
||
|
|
* data: {
|
||
|
|
* // ... provide data here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
update<T extends WorkflowTaskUpdateArgs>(
|
||
|
|
args: Prisma.SelectSubset<T, WorkflowTaskUpdateArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__WorkflowTaskClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$WorkflowTaskPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'update',
|
||
|
|
GlobalOmitOptions
|
||
|
|
>,
|
||
|
|
never,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Delete zero or more WorkflowTasks.
|
||
|
|
* @param {WorkflowTaskDeleteManyArgs} args - Arguments to filter WorkflowTasks to delete.
|
||
|
|
* @example
|
||
|
|
* // Delete a few WorkflowTasks
|
||
|
|
* const { count } = await prisma.workflowTask.deleteMany({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
deleteMany<T extends WorkflowTaskDeleteManyArgs>(
|
||
|
|
args?: Prisma.SelectSubset<T, WorkflowTaskDeleteManyArgs<ExtArgs>>,
|
||
|
|
): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Update zero or more WorkflowTasks.
|
||
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
||
|
|
* Read more here: https://pris.ly/d/null-undefined
|
||
|
|
* @param {WorkflowTaskUpdateManyArgs} args - Arguments to update one or more rows.
|
||
|
|
* @example
|
||
|
|
* // Update many WorkflowTasks
|
||
|
|
* const workflowTask = await prisma.workflowTask.updateMany({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* },
|
||
|
|
* data: {
|
||
|
|
* // ... provide data here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
updateMany<T extends WorkflowTaskUpdateManyArgs>(
|
||
|
|
args: Prisma.SelectSubset<T, WorkflowTaskUpdateManyArgs<ExtArgs>>,
|
||
|
|
): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Update zero or more WorkflowTasks and returns the data updated in the database.
|
||
|
|
* @param {WorkflowTaskUpdateManyAndReturnArgs} args - Arguments to update many WorkflowTasks.
|
||
|
|
* @example
|
||
|
|
* // Update many WorkflowTasks
|
||
|
|
* const workflowTask = await prisma.workflowTask.updateManyAndReturn({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* },
|
||
|
|
* data: [
|
||
|
|
* // ... provide data here
|
||
|
|
* ]
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
* // Update zero or more WorkflowTasks and only return the `id`
|
||
|
|
* const workflowTaskWithIdOnly = await prisma.workflowTask.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 WorkflowTaskUpdateManyAndReturnArgs>(
|
||
|
|
args: Prisma.SelectSubset<T, WorkflowTaskUpdateManyAndReturnArgs<ExtArgs>>,
|
||
|
|
): Prisma.PrismaPromise<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$WorkflowTaskPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'updateManyAndReturn',
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Create or update one WorkflowTask.
|
||
|
|
* @param {WorkflowTaskUpsertArgs} args - Arguments to update or create a WorkflowTask.
|
||
|
|
* @example
|
||
|
|
* // Update or create a WorkflowTask
|
||
|
|
* const workflowTask = await prisma.workflowTask.upsert({
|
||
|
|
* create: {
|
||
|
|
* // ... data to create a WorkflowTask
|
||
|
|
* },
|
||
|
|
* update: {
|
||
|
|
* // ... in case it already exists, update
|
||
|
|
* },
|
||
|
|
* where: {
|
||
|
|
* // ... the filter for the WorkflowTask we want to update
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*/
|
||
|
|
upsert<T extends WorkflowTaskUpsertArgs>(
|
||
|
|
args: Prisma.SelectSubset<T, WorkflowTaskUpsertArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__WorkflowTaskClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$WorkflowTaskPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'upsert',
|
||
|
|
GlobalOmitOptions
|
||
|
|
>,
|
||
|
|
never,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Count the number of WorkflowTasks.
|
||
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
||
|
|
* Read more here: https://pris.ly/d/null-undefined
|
||
|
|
* @param {WorkflowTaskCountArgs} args - Arguments to filter WorkflowTasks to count.
|
||
|
|
* @example
|
||
|
|
* // Count the number of WorkflowTasks
|
||
|
|
* const count = await prisma.workflowTask.count({
|
||
|
|
* where: {
|
||
|
|
* // ... the filter for the WorkflowTasks we want to count
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
**/
|
||
|
|
count<T extends WorkflowTaskCountArgs>(
|
||
|
|
args?: Prisma.Subset<T, WorkflowTaskCountArgs>,
|
||
|
|
): Prisma.PrismaPromise<
|
||
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
||
|
|
? T['select'] extends true
|
||
|
|
? number
|
||
|
|
: Prisma.GetScalarType<T['select'], WorkflowTaskCountAggregateOutputType>
|
||
|
|
: number
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Allows you to perform aggregations operations on a WorkflowTask.
|
||
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
||
|
|
* Read more here: https://pris.ly/d/null-undefined
|
||
|
|
* @param {WorkflowTaskAggregateArgs} 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 WorkflowTaskAggregateArgs>(
|
||
|
|
args: Prisma.Subset<T, WorkflowTaskAggregateArgs>,
|
||
|
|
): Prisma.PrismaPromise<GetWorkflowTaskAggregateType<T>>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Group by WorkflowTask.
|
||
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
||
|
|
* Read more here: https://pris.ly/d/null-undefined
|
||
|
|
* @param {WorkflowTaskGroupByArgs} 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 WorkflowTaskGroupByArgs,
|
||
|
|
HasSelectOrTake extends Prisma.Or<
|
||
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
||
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
||
|
|
>,
|
||
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
||
|
|
? { orderBy: WorkflowTaskGroupByArgs['orderBy'] }
|
||
|
|
: { orderBy?: WorkflowTaskGroupByArgs['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, WorkflowTaskGroupByArgs, OrderByArg> & InputErrors,
|
||
|
|
): {} extends InputErrors ? GetWorkflowTaskGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
||
|
|
/**
|
||
|
|
* Fields of the WorkflowTask model
|
||
|
|
*/
|
||
|
|
readonly fields: WorkflowTaskFieldRefs
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* The delegate class that acts as a "Promise-like" for WorkflowTask.
|
||
|
|
* 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__WorkflowTaskClient<
|
||
|
|
T,
|
||
|
|
Null = never,
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
GlobalOmitOptions = {},
|
||
|
|
> extends Prisma.PrismaPromise<T> {
|
||
|
|
readonly [Symbol.toStringTag]: 'PrismaPromise'
|
||
|
|
/**
|
||
|
|
* 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 WorkflowTask model
|
||
|
|
*/
|
||
|
|
export interface WorkflowTaskFieldRefs {
|
||
|
|
readonly id: Prisma.FieldRef<'WorkflowTask', 'String'>
|
||
|
|
readonly uid: Prisma.FieldRef<'WorkflowTask', 'String'>
|
||
|
|
readonly teamId: Prisma.FieldRef<'WorkflowTask', 'String'>
|
||
|
|
readonly projectId: Prisma.FieldRef<'WorkflowTask', 'String'>
|
||
|
|
readonly assetId: Prisma.FieldRef<'WorkflowTask', 'String'>
|
||
|
|
readonly type: Prisma.FieldRef<'WorkflowTask', 'WorkflowTaskType'>
|
||
|
|
readonly status: Prisma.FieldRef<'WorkflowTask', 'WorkflowTaskStatus'>
|
||
|
|
readonly payload: Prisma.FieldRef<'WorkflowTask', 'Json'>
|
||
|
|
readonly output: Prisma.FieldRef<'WorkflowTask', 'Json'>
|
||
|
|
readonly heartbeat: Prisma.FieldRef<'WorkflowTask', 'DateTime'>
|
||
|
|
readonly inputTokens: Prisma.FieldRef<'WorkflowTask', 'Int'>
|
||
|
|
readonly outputTokens: Prisma.FieldRef<'WorkflowTask', 'Int'>
|
||
|
|
readonly model: Prisma.FieldRef<'WorkflowTask', 'String'>
|
||
|
|
readonly createdAt: Prisma.FieldRef<'WorkflowTask', 'DateTime'>
|
||
|
|
readonly updatedAt: Prisma.FieldRef<'WorkflowTask', 'DateTime'>
|
||
|
|
}
|
||
|
|
|
||
|
|
// Custom InputTypes
|
||
|
|
/**
|
||
|
|
* WorkflowTask findUnique
|
||
|
|
*/
|
||
|
|
export type WorkflowTaskFindUniqueArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the WorkflowTask
|
||
|
|
*/
|
||
|
|
select?: Prisma.WorkflowTaskSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the WorkflowTask
|
||
|
|
*/
|
||
|
|
omit?: Prisma.WorkflowTaskOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which WorkflowTask to fetch.
|
||
|
|
*/
|
||
|
|
where: Prisma.WorkflowTaskWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* WorkflowTask findUniqueOrThrow
|
||
|
|
*/
|
||
|
|
export type WorkflowTaskFindUniqueOrThrowArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the WorkflowTask
|
||
|
|
*/
|
||
|
|
select?: Prisma.WorkflowTaskSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the WorkflowTask
|
||
|
|
*/
|
||
|
|
omit?: Prisma.WorkflowTaskOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which WorkflowTask to fetch.
|
||
|
|
*/
|
||
|
|
where: Prisma.WorkflowTaskWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* WorkflowTask findFirst
|
||
|
|
*/
|
||
|
|
export type WorkflowTaskFindFirstArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the WorkflowTask
|
||
|
|
*/
|
||
|
|
select?: Prisma.WorkflowTaskSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the WorkflowTask
|
||
|
|
*/
|
||
|
|
omit?: Prisma.WorkflowTaskOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which WorkflowTask to fetch.
|
||
|
|
*/
|
||
|
|
where?: Prisma.WorkflowTaskWhereInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||
|
|
*
|
||
|
|
* Determine the order of WorkflowTasks to fetch.
|
||
|
|
*/
|
||
|
|
orderBy?:
|
||
|
|
| Prisma.WorkflowTaskOrderByWithRelationInput
|
||
|
|
| Prisma.WorkflowTaskOrderByWithRelationInput[]
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
||
|
|
*
|
||
|
|
* Sets the position for searching for WorkflowTasks.
|
||
|
|
*/
|
||
|
|
cursor?: Prisma.WorkflowTaskWhereUniqueInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||
|
|
*
|
||
|
|
* Take `±n` WorkflowTasks 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` WorkflowTasks.
|
||
|
|
*/
|
||
|
|
skip?: number
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||
|
|
*
|
||
|
|
* Filter by unique combinations of WorkflowTasks.
|
||
|
|
*/
|
||
|
|
distinct?: Prisma.WorkflowTaskScalarFieldEnum | Prisma.WorkflowTaskScalarFieldEnum[]
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* WorkflowTask findFirstOrThrow
|
||
|
|
*/
|
||
|
|
export type WorkflowTaskFindFirstOrThrowArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the WorkflowTask
|
||
|
|
*/
|
||
|
|
select?: Prisma.WorkflowTaskSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the WorkflowTask
|
||
|
|
*/
|
||
|
|
omit?: Prisma.WorkflowTaskOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which WorkflowTask to fetch.
|
||
|
|
*/
|
||
|
|
where?: Prisma.WorkflowTaskWhereInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||
|
|
*
|
||
|
|
* Determine the order of WorkflowTasks to fetch.
|
||
|
|
*/
|
||
|
|
orderBy?:
|
||
|
|
| Prisma.WorkflowTaskOrderByWithRelationInput
|
||
|
|
| Prisma.WorkflowTaskOrderByWithRelationInput[]
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
||
|
|
*
|
||
|
|
* Sets the position for searching for WorkflowTasks.
|
||
|
|
*/
|
||
|
|
cursor?: Prisma.WorkflowTaskWhereUniqueInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||
|
|
*
|
||
|
|
* Take `±n` WorkflowTasks 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` WorkflowTasks.
|
||
|
|
*/
|
||
|
|
skip?: number
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||
|
|
*
|
||
|
|
* Filter by unique combinations of WorkflowTasks.
|
||
|
|
*/
|
||
|
|
distinct?: Prisma.WorkflowTaskScalarFieldEnum | Prisma.WorkflowTaskScalarFieldEnum[]
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* WorkflowTask findMany
|
||
|
|
*/
|
||
|
|
export type WorkflowTaskFindManyArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the WorkflowTask
|
||
|
|
*/
|
||
|
|
select?: Prisma.WorkflowTaskSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the WorkflowTask
|
||
|
|
*/
|
||
|
|
omit?: Prisma.WorkflowTaskOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which WorkflowTasks to fetch.
|
||
|
|
*/
|
||
|
|
where?: Prisma.WorkflowTaskWhereInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||
|
|
*
|
||
|
|
* Determine the order of WorkflowTasks to fetch.
|
||
|
|
*/
|
||
|
|
orderBy?:
|
||
|
|
| Prisma.WorkflowTaskOrderByWithRelationInput
|
||
|
|
| Prisma.WorkflowTaskOrderByWithRelationInput[]
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
||
|
|
*
|
||
|
|
* Sets the position for listing WorkflowTasks.
|
||
|
|
*/
|
||
|
|
cursor?: Prisma.WorkflowTaskWhereUniqueInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||
|
|
*
|
||
|
|
* Take `±n` WorkflowTasks 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` WorkflowTasks.
|
||
|
|
*/
|
||
|
|
skip?: number
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||
|
|
*
|
||
|
|
* Filter by unique combinations of WorkflowTasks.
|
||
|
|
*/
|
||
|
|
distinct?: Prisma.WorkflowTaskScalarFieldEnum | Prisma.WorkflowTaskScalarFieldEnum[]
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* WorkflowTask create
|
||
|
|
*/
|
||
|
|
export type WorkflowTaskCreateArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the WorkflowTask
|
||
|
|
*/
|
||
|
|
select?: Prisma.WorkflowTaskSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the WorkflowTask
|
||
|
|
*/
|
||
|
|
omit?: Prisma.WorkflowTaskOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* The data needed to create a WorkflowTask.
|
||
|
|
*/
|
||
|
|
data: Prisma.XOR<Prisma.WorkflowTaskCreateInput, Prisma.WorkflowTaskUncheckedCreateInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* WorkflowTask createMany
|
||
|
|
*/
|
||
|
|
export type WorkflowTaskCreateManyArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* The data used to create many WorkflowTasks.
|
||
|
|
*/
|
||
|
|
data: Prisma.WorkflowTaskCreateManyInput | Prisma.WorkflowTaskCreateManyInput[]
|
||
|
|
skipDuplicates?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* WorkflowTask createManyAndReturn
|
||
|
|
*/
|
||
|
|
export type WorkflowTaskCreateManyAndReturnArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the WorkflowTask
|
||
|
|
*/
|
||
|
|
select?: Prisma.WorkflowTaskSelectCreateManyAndReturn<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the WorkflowTask
|
||
|
|
*/
|
||
|
|
omit?: Prisma.WorkflowTaskOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* The data used to create many WorkflowTasks.
|
||
|
|
*/
|
||
|
|
data: Prisma.WorkflowTaskCreateManyInput | Prisma.WorkflowTaskCreateManyInput[]
|
||
|
|
skipDuplicates?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* WorkflowTask update
|
||
|
|
*/
|
||
|
|
export type WorkflowTaskUpdateArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the WorkflowTask
|
||
|
|
*/
|
||
|
|
select?: Prisma.WorkflowTaskSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the WorkflowTask
|
||
|
|
*/
|
||
|
|
omit?: Prisma.WorkflowTaskOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* The data needed to update a WorkflowTask.
|
||
|
|
*/
|
||
|
|
data: Prisma.XOR<Prisma.WorkflowTaskUpdateInput, Prisma.WorkflowTaskUncheckedUpdateInput>
|
||
|
|
/**
|
||
|
|
* Choose, which WorkflowTask to update.
|
||
|
|
*/
|
||
|
|
where: Prisma.WorkflowTaskWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* WorkflowTask updateMany
|
||
|
|
*/
|
||
|
|
export type WorkflowTaskUpdateManyArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* The data used to update WorkflowTasks.
|
||
|
|
*/
|
||
|
|
data: Prisma.XOR<
|
||
|
|
Prisma.WorkflowTaskUpdateManyMutationInput,
|
||
|
|
Prisma.WorkflowTaskUncheckedUpdateManyInput
|
||
|
|
>
|
||
|
|
/**
|
||
|
|
* Filter which WorkflowTasks to update
|
||
|
|
*/
|
||
|
|
where?: Prisma.WorkflowTaskWhereInput
|
||
|
|
/**
|
||
|
|
* Limit how many WorkflowTasks to update.
|
||
|
|
*/
|
||
|
|
limit?: number
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* WorkflowTask updateManyAndReturn
|
||
|
|
*/
|
||
|
|
export type WorkflowTaskUpdateManyAndReturnArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the WorkflowTask
|
||
|
|
*/
|
||
|
|
select?: Prisma.WorkflowTaskSelectUpdateManyAndReturn<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the WorkflowTask
|
||
|
|
*/
|
||
|
|
omit?: Prisma.WorkflowTaskOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* The data used to update WorkflowTasks.
|
||
|
|
*/
|
||
|
|
data: Prisma.XOR<
|
||
|
|
Prisma.WorkflowTaskUpdateManyMutationInput,
|
||
|
|
Prisma.WorkflowTaskUncheckedUpdateManyInput
|
||
|
|
>
|
||
|
|
/**
|
||
|
|
* Filter which WorkflowTasks to update
|
||
|
|
*/
|
||
|
|
where?: Prisma.WorkflowTaskWhereInput
|
||
|
|
/**
|
||
|
|
* Limit how many WorkflowTasks to update.
|
||
|
|
*/
|
||
|
|
limit?: number
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* WorkflowTask upsert
|
||
|
|
*/
|
||
|
|
export type WorkflowTaskUpsertArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the WorkflowTask
|
||
|
|
*/
|
||
|
|
select?: Prisma.WorkflowTaskSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the WorkflowTask
|
||
|
|
*/
|
||
|
|
omit?: Prisma.WorkflowTaskOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* The filter to search for the WorkflowTask to update in case it exists.
|
||
|
|
*/
|
||
|
|
where: Prisma.WorkflowTaskWhereUniqueInput
|
||
|
|
/**
|
||
|
|
* In case the WorkflowTask found by the `where` argument doesn't exist, create a new WorkflowTask with this data.
|
||
|
|
*/
|
||
|
|
create: Prisma.XOR<Prisma.WorkflowTaskCreateInput, Prisma.WorkflowTaskUncheckedCreateInput>
|
||
|
|
/**
|
||
|
|
* In case the WorkflowTask was found with the provided `where` argument, update it with this data.
|
||
|
|
*/
|
||
|
|
update: Prisma.XOR<Prisma.WorkflowTaskUpdateInput, Prisma.WorkflowTaskUncheckedUpdateInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* WorkflowTask delete
|
||
|
|
*/
|
||
|
|
export type WorkflowTaskDeleteArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the WorkflowTask
|
||
|
|
*/
|
||
|
|
select?: Prisma.WorkflowTaskSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the WorkflowTask
|
||
|
|
*/
|
||
|
|
omit?: Prisma.WorkflowTaskOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter which WorkflowTask to delete.
|
||
|
|
*/
|
||
|
|
where: Prisma.WorkflowTaskWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* WorkflowTask deleteMany
|
||
|
|
*/
|
||
|
|
export type WorkflowTaskDeleteManyArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Filter which WorkflowTasks to delete
|
||
|
|
*/
|
||
|
|
where?: Prisma.WorkflowTaskWhereInput
|
||
|
|
/**
|
||
|
|
* Limit how many WorkflowTasks to delete.
|
||
|
|
*/
|
||
|
|
limit?: number
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* WorkflowTask without action
|
||
|
|
*/
|
||
|
|
export type WorkflowTaskDefaultArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the WorkflowTask
|
||
|
|
*/
|
||
|
|
select?: Prisma.WorkflowTaskSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the WorkflowTask
|
||
|
|
*/
|
||
|
|
omit?: Prisma.WorkflowTaskOmit<ExtArgs> | null
|
||
|
|
}
|