mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
77 lines
1.5 KiB
TypeScript
77 lines
1.5 KiB
TypeScript
// All the app integrations that are available
|
|
export interface IAppIntegration {
|
|
author: string;
|
|
author: "";
|
|
avatar_url: string | null;
|
|
created_at: string;
|
|
created_by: string | null;
|
|
description: any;
|
|
id: string;
|
|
metadata: any;
|
|
network: number;
|
|
provider: string;
|
|
redirect_url: string;
|
|
title: string;
|
|
updated_at: string;
|
|
updated_by: string | null;
|
|
verified: boolean;
|
|
webhook_secret: string;
|
|
webhook_url: string;
|
|
}
|
|
|
|
export interface IWorkspaceIntegration {
|
|
actor: string;
|
|
api_token: string;
|
|
config: any;
|
|
created_at: string;
|
|
created_by: string;
|
|
id: string;
|
|
integration: string;
|
|
integration_detail: IIntegrations;
|
|
metadata: any;
|
|
updated_at: string;
|
|
updated_by: string;
|
|
workspace: string;
|
|
}
|
|
|
|
// slack integration
|
|
export interface ISlackIntegration {
|
|
id: string;
|
|
created_at: string;
|
|
updated_at: string;
|
|
access_token: string;
|
|
scopes: string;
|
|
bot_user_id: string;
|
|
webhook_url: string;
|
|
data: ISlackIntegrationData;
|
|
team_id: string;
|
|
team_name: string;
|
|
created_by: string;
|
|
updated_by: string;
|
|
project: string;
|
|
workspace: string;
|
|
workspace_integration: string;
|
|
}
|
|
|
|
export interface ISlackIntegrationData {
|
|
ok: boolean;
|
|
team: {
|
|
id: string;
|
|
name: string;
|
|
};
|
|
scope: string;
|
|
app_id: string;
|
|
enterprise: any;
|
|
token_type: string;
|
|
authed_user: string;
|
|
bot_user_id: string;
|
|
access_token: string;
|
|
incoming_webhook: {
|
|
url: string;
|
|
channel: string;
|
|
channel_id: string;
|
|
configuration_url: string;
|
|
};
|
|
is_enterprise_install: boolean;
|
|
}
|