mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-09 21:14:22 +00:00
fix(jira): fix connection check timeout (#12742)
Co-authored-by: alejandrobailo <alejandrobailo94@gmail.com>
This commit is contained in:
co-authored by
alejandrobailo
parent
8bdb597921
commit
1edcf6e5de
@@ -12,6 +12,34 @@ export const INTEGRATION_TYPE = {
|
||||
export type IntegrationType =
|
||||
(typeof INTEGRATION_TYPE)[keyof typeof INTEGRATION_TYPE];
|
||||
|
||||
export const INTEGRATION_CONNECTION_TASK_KIND = "integration-connection-test";
|
||||
|
||||
export interface IntegrationConnectionTaskResource {
|
||||
id: string;
|
||||
type: "tasks";
|
||||
}
|
||||
|
||||
export interface IntegrationConnectionTaskDocument {
|
||||
data: IntegrationConnectionTaskResource;
|
||||
}
|
||||
|
||||
export interface IntegrationConnectionTaskResult {
|
||||
connected?: boolean;
|
||||
error?: string | null;
|
||||
/** The failing channel id, or null when the failure names no channel. */
|
||||
channel?: string | null;
|
||||
}
|
||||
|
||||
export interface IntegrationConnectionTestResponse {
|
||||
success: boolean;
|
||||
message?: string;
|
||||
taskId?: string;
|
||||
data?: IntegrationConnectionTaskDocument;
|
||||
error?: string;
|
||||
/** The failing channel id, or null when the failure names no channel. */
|
||||
failedChannelId?: string | null;
|
||||
}
|
||||
|
||||
export const JIRA_DISPATCH_MODE = {
|
||||
INDIVIDUAL: "individual",
|
||||
GROUPED: "grouped",
|
||||
|
||||
Reference in New Issue
Block a user