Spaces:
Build error
Build error
twenty / packages /twenty-server /src /engine /metadata-modules /logic-function /dtos /update-logic-function-from-source.input.ts
| import { Field, InputType } from '@nestjs/graphql'; | |
| import { Type } from 'class-transformer'; | |
| import { | |
| IsNotEmpty, | |
| IsNumber, | |
| IsObject, | |
| IsOptional, | |
| IsString, | |
| IsUUID, | |
| Matches, | |
| Max, | |
| Min, | |
| ValidateNested, | |
| } 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 { HANDLER_NAME_REGEX } from 'src/engine/metadata-modules/logic-function/constants/handler.contant'; | |
| import type { JsonbProperty } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/jsonb-property.type'; | |
| () | |
| class UpdateLogicFunctionFromSourceInputUpdates { | |
| () | |
| ({ nullable: true }) | |
| () | |
| name?: string; | |
| () | |
| ({ nullable: true }) | |
| () | |
| description?: string; | |
| () | |
| ({ nullable: true }) | |
| (1) | |
| (900) | |
| () | |
| timeoutSeconds?: number; | |
| () | |
| ({ nullable: true }) | |
| () | |
| sourceHandlerCode?: string; | |
| () | |
| (HANDLER_NAME_REGEX, { | |
| message: 'handlerName must be a valid JavaScript identifier or dotted path', | |
| }) | |
| ({ nullable: true }) | |
| () | |
| handlerName?: string; | |
| () | |
| ({ nullable: true }) | |
| () | |
| sourceHandlerPath?: string; | |
| () | |
| (() => graphqlTypeJson, { nullable: true }) | |
| () | |
| cronTriggerSettings?: JsonbProperty<CronTriggerSettings>; | |
| () | |
| (() => graphqlTypeJson, { nullable: true }) | |
| () | |
| databaseEventTriggerSettings?: JsonbProperty<DatabaseEventTriggerSettings>; | |
| () | |
| (() => graphqlTypeJson, { nullable: true }) | |
| () | |
| httpRouteTriggerSettings?: JsonbProperty<HttpRouteTriggerSettings>; | |
| () | |
| (() => graphqlTypeJson, { nullable: true }) | |
| () | |
| toolTriggerSettings?: JsonbProperty<ToolTriggerSettings>; | |
| () | |
| (() => graphqlTypeJson, { nullable: true }) | |
| () | |
| workflowActionTriggerSettings?: JsonbProperty<WorkflowActionTriggerSettings>; | |
| } | |
| () | |
| export class UpdateLogicFunctionFromSourceInput { | |
| (() => UUIDScalarType, { | |
| description: 'Id of the logic function to update', | |
| }) | |
| () | |
| () | |
| id: string; | |
| (() => UpdateLogicFunctionFromSourceInputUpdates) | |
| () | |
| (() => UpdateLogicFunctionFromSourceInputUpdates, { | |
| description: 'The logic function updates', | |
| }) | |
| update: UpdateLogicFunctionFromSourceInputUpdates; | |
| } | |