Spaces:
Build error
Build error
twenty / packages /twenty-server /src /engine /metadata-modules /logic-function /dtos /logic-function.dto.ts
| import { | |
| Field, | |
| HideField, | |
| ObjectType, | |
| registerEnumType, | |
| } from '@nestjs/graphql'; | |
| import { | |
| Authorize, | |
| IDField, | |
| QueryOptions, | |
| } from '@ptc-org/nestjs-query-graphql'; | |
| import { | |
| IsDateString, | |
| IsEnum, | |
| IsNotEmpty, | |
| IsNumber, | |
| IsObject, | |
| IsOptional, | |
| IsString, | |
| IsUUID, | |
| } from 'class-validator'; | |
| import graphqlTypeJson from 'graphql-type-json'; | |
| import { | |
| CronTriggerSettings, | |
| DatabaseEventTriggerSettings, | |
| HttpRouteTriggerSettings, | |
| ToolTriggerSettings, | |
| WorkflowActionTriggerSettings, | |
| } from 'twenty-shared/application'; | |
| import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars'; | |
| import { LogicFunctionExecutionMode } from 'src/engine/metadata-modules/logic-function/logic-function.entity'; | |
| registerEnumType(LogicFunctionExecutionMode, { | |
| name: 'LogicFunctionExecutionMode', | |
| }); | |
| ('LogicFunction') | |
| ({ | |
| // oxlint-disable-next-line typescript/no-explicit-any | |
| authorize: (context: any) => ({ | |
| workspaceId: { eq: context?.req?.workspace?.id }, | |
| }), | |
| }) | |
| ({ | |
| defaultResultSize: 10, | |
| maxResultsSize: 1000, | |
| }) | |
| export class LogicFunctionDTO { | |
| () | |
| () | |
| (() => UUIDScalarType) | |
| id: string; | |
| () | |
| () | |
| name: string; | |
| () | |
| ({ nullable: true }) | |
| description?: string; | |
| () | |
| () | |
| () | |
| runtime: string; | |
| () | |
| () | |
| timeoutSeconds: number; | |
| (LogicFunctionExecutionMode) | |
| (() => LogicFunctionExecutionMode) | |
| executionMode: LogicFunctionExecutionMode; | |
| () | |
| () | |
| sourceHandlerPath: string; | |
| () | |
| () | |
| handlerName: string; | |
| () | |
| () | |
| (() => graphqlTypeJson, { nullable: true }) | |
| cronTriggerSettings?: CronTriggerSettings; | |
| () | |
| () | |
| (() => graphqlTypeJson, { nullable: true }) | |
| databaseEventTriggerSettings?: DatabaseEventTriggerSettings; | |
| () | |
| () | |
| (() => graphqlTypeJson, { nullable: true }) | |
| httpRouteTriggerSettings?: HttpRouteTriggerSettings; | |
| () | |
| () | |
| (() => graphqlTypeJson, { nullable: true }) | |
| toolTriggerSettings?: ToolTriggerSettings; | |
| () | |
| () | |
| (() => graphqlTypeJson, { nullable: true }) | |
| workflowActionTriggerSettings?: WorkflowActionTriggerSettings; | |
| () | |
| () | |
| (() => UUIDScalarType, { nullable: true }) | |
| applicationId?: string; | |
| () | |
| () | |
| (() => UUIDScalarType, { nullable: true }) | |
| universalIdentifier?: string; | |
| () | |
| workspaceId: string; | |
| () | |
| () | |
| createdAt: Date; | |
| () | |
| () | |
| updatedAt: Date; | |
| } | |