plane/web/types/integration.d.ts
sriram veeraghanta 1e152c666c
New Directory Setup (#2065)
* chore: moved app & space from apps to root

* chore: modified workspace configuration

* chore: modified dockerfiles for space and web

* chore: modified icons for space

* feat: updated files for new svg icons supported by next-images

* chore: added /spaces base path for next

* chore: added compose config for space

* chore: updated husky configuration

* chore: updated workflows for new configuration

* chore: changed app name to web

* fix: resolved build errors with web

* chore: reset file tracing root for both projects

* chore: added nginx config for deploy

* fix: eslint and tsconfig settings for space app

* husky setup fixes based on new dir

* eslint fixes

* prettier formatting

---------

Co-authored-by: Henit Chobisa <chobisa.henit@gmail.com>
2023-09-03 18:50:30 +05:30

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;
}