Api keys and webhook migration to core (#13011)

TODO: check Zapier trigger records work as expected

---------

Co-authored-by: Weiko <corentin@twenty.com>
This commit is contained in:
nitin
2025-07-09 20:33:54 +05:30
committed by GitHub
parent 18792f9f74
commit 484c267aa6
113 changed files with 4563 additions and 1060 deletions

View File

@ -1,13 +1,13 @@
import { ApiKey } from 'src/engine/core-modules/api-key/api-key.entity';
import { UserWorkspace } from 'src/engine/core-modules/user-workspace/user-workspace.entity';
import { User } from 'src/engine/core-modules/user/user.entity';
import { AuthProviderEnum } from 'src/engine/core-modules/workspace/types/workspace.type';
import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity';
import { ApiKeyWorkspaceEntity } from 'src/modules/api-key/standard-objects/api-key.workspace-entity';
declare module 'express-serve-static-core' {
interface Request {
user?: User | null;
apiKey?: ApiKeyWorkspaceEntity | null;
apiKey?: ApiKey | null;
userWorkspace?: UserWorkspace;
workspace?: Workspace;
workspaceId?: string;

View File

@ -1,4 +1,5 @@
import 'jest';
import { DataSource } from 'typeorm';
declare module '@jest/types' {
namespace Config {
@ -10,6 +11,7 @@ declare module '@jest/types' {
MEMBER_ACCESS_TOKEN: string;
GUEST_ACCESS_TOKEN: string;
API_KEY_ACCESS_TOKEN: string;
testDataSource?: DataSource;
}
}
}
@ -23,6 +25,7 @@ declare global {
const GUEST_ACCESS_TOKEN: string;
const API_KEY_ACCESS_TOKEN: string;
const WORKSPACE_AGNOSTIC_TOKEN: string;
const testDataSource: DataSource;
}
export {};