2023-03-23 17:57:11 +00:00
|
|
|
// All the app integrations that are available
|
2023-04-18 05:24:45 +00:00
|
|
|
export interface IAppIntegration {
|
2023-03-23 17:57:11 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2023-04-18 05:24:45 +00:00
|
|
|
export interface IWorkspaceIntegration {
|
2023-03-23 17:57:11 +00:00
|
|
|
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;
|
|
|
|
}
|
2023-05-01 19:10:47 +00:00
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|