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:
4
packages/twenty-server/@types/express.d.ts
vendored
4
packages/twenty-server/@types/express.d.ts
vendored
@ -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;
|
||||
|
||||
3
packages/twenty-server/@types/jest.d.ts
vendored
3
packages/twenty-server/@types/jest.d.ts
vendored
@ -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 {};
|
||||
|
||||
Reference in New Issue
Block a user