Spaces:
Build error
Build error
twenty / packages /twenty-server /src /engine /metadata-modules /logic-function /dtos /logic-function-execution-result.dto.ts
| import { Field, ObjectType, registerEnumType } from '@nestjs/graphql'; | |
| import { IsObject, IsOptional } from 'class-validator'; | |
| import graphqlTypeJson from 'graphql-type-json'; | |
| export enum LogicFunctionExecutionStatus { | |
| IDLE = 'IDLE', | |
| SUCCESS = 'SUCCESS', | |
| ERROR = 'ERROR', | |
| } | |
| registerEnumType(LogicFunctionExecutionStatus, { | |
| name: 'LogicFunctionExecutionStatus', | |
| description: 'Status of the logic function execution', | |
| }); | |
| ('LogicFunctionExecutionResult') | |
| export class LogicFunctionExecutionResultDTO { | |
| () | |
| (() => graphqlTypeJson, { | |
| description: 'Execution result in JSON format', | |
| nullable: true, | |
| }) | |
| data?: JSON; | |
| ({ description: 'Execution Logs' }) | |
| logs: string; | |
| ({ description: 'Execution duration in milliseconds' }) | |
| duration: number; | |
| (() => LogicFunctionExecutionStatus, { | |
| description: 'Execution status', | |
| }) | |
| status: LogicFunctionExecutionStatus; | |
| () | |
| () | |
| (() => graphqlTypeJson, { | |
| description: 'Execution error in JSON format', | |
| nullable: true, | |
| }) | |
| error?: { | |
| errorType: string; | |
| errorMessage: string; | |
| stackTrace: string; | |
| }; | |
| } | |