Reorganize logic function files (#17766)

reorganize according to

<img width="1243" height="725" alt="Pasted Graphic"
src="https://github.com/user-attachments/assets/ba65dd10-8eec-4b13-ad49-9726edd3b79c"
/>

Not working yet
This commit is contained in:
martmull
2026-02-09 12:36:39 +01:00
committed by GitHub
parent bf4c348c8b
commit 9162685b2e
149 changed files with 1715 additions and 5272 deletions
@@ -1,4 +1,3 @@
import { HTTPMethod } from 'twenty-shared/types';
import {
Check,
Column,
@@ -9,26 +8,15 @@ import {
PrimaryGeneratedColumn,
UpdateDateColumn,
} from 'typeorm';
import {
CronTriggerSettings,
DatabaseEventTriggerSettings,
HttpRouteTriggerSettings,
} from 'twenty-shared/application';
import { SyncableEntity } from 'src/engine/workspace-manager/types/syncable-entity.interface';
import { type JsonbProperty } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/jsonb-property.type';
export type CronTriggerSettings = {
pattern: string;
};
export type DatabaseEventTriggerSettings = {
eventName: string;
updatedFields?: string[];
};
export type HttpRouteTriggerSettings = {
path: string;
httpMethod: HTTPMethod;
isAuthRequired: boolean;
forwardedRequestHeaders?: string[];
};
const DEFAULT_LOGIC_FUNCTION_TIMEOUT_SECONDS = 300; // 5 minutes
export enum LogicFunctionRuntime {