Add custom routes to migration v2 (#14846)

## Context
Add routes to migration V2
- Resolvers
- Service v2
- Builder
- Validator
- Action runner

Next PR: Add to twenty-cli to sync routes with serverless
This commit is contained in:
Weiko
2025-10-03 00:20:21 +02:00
committed by GitHub
parent dcfae3821c
commit 0b60aa4249
80 changed files with 2242 additions and 151 deletions
+39 -2
View File
@@ -1363,6 +1363,14 @@ export type GridPositionInput = {
rowSpan: Scalars['Float'];
};
export enum HttpMethod {
DELETE = 'DELETE',
GET = 'GET',
PATCH = 'PATCH',
POST = 'POST',
PUT = 'PUT'
}
export enum HealthIndicatorId {
app = 'app',
connectedAccount = 'connectedAccount',
@@ -3322,6 +3330,18 @@ export type Role = {
workspaceMembers: Array<WorkspaceMember>;
};
export type RouteTrigger = {
__typename?: 'RouteTrigger';
createdAt: Scalars['DateTime'];
httpMethod: HttpMethod;
id: Scalars['ID'];
isAuthRequired: Scalars['Boolean'];
path: Scalars['String'];
serverlessFunctionId: Scalars['String'];
updatedAt: Scalars['DateTime'];
workspaceId: Scalars['String'];
};
export type RunWorkflowVersionInput = {
/** Execution result in JSON format */
payload?: InputMaybe<Scalars['JSON']>;
@@ -3674,12 +3694,24 @@ export type UpdateApiKeyDto = {
};
export type UpdateCronTriggerInput = {
/** The id of the cron trigger to update */
id: Scalars['String'];
/** The cron trigger updates */
update: UpdateCronTriggerInputUpdates;
};
export type UpdateCronTriggerInputUpdates = {
settings: Scalars['JSON'];
};
export type UpdateDatabaseEventTriggerInput = {
/** The id of the database event trigger to update */
id: Scalars['String'];
/** The database event trigger updates */
update: UpdateDatabaseEventTriggerInputUpdates;
};
export type UpdateDatabaseEventTriggerInputUpdates = {
settings: Scalars['JSON'];
};
@@ -3796,10 +3828,15 @@ export type UpdateRolePayload = {
};
export type UpdateServerlessFunctionInput = {
/** Id of the serverless function to update */
id: Scalars['UUID'];
/** The serverless function updates */
update: UpdateServerlessFunctionInputUpdates;
};
export type UpdateServerlessFunctionInputUpdates = {
code: Scalars['JSON'];
description?: InputMaybe<Scalars['String']>;
/** Id of the serverless function to execute */
id: Scalars['UUID'];
name: Scalars['String'];
timeoutSeconds?: InputMaybe<Scalars['Float']>;
};