2022-04-11 19:04:41 +00:00
|
|
|
export interface IJiraIntegration {
|
|
|
|
url: string;
|
|
|
|
username: string;
|
2022-04-12 15:33:59 +00:00
|
|
|
api_token: string;
|
2022-04-11 19:04:41 +00:00
|
|
|
project_key: string;
|
|
|
|
enable_software_vulnerabilities?: boolean;
|
|
|
|
}
|
|
|
|
|
2022-05-11 02:33:30 +00:00
|
|
|
export interface IZendeskIntegration {
|
|
|
|
url: string;
|
|
|
|
email: string;
|
|
|
|
api_token: string;
|
|
|
|
group_id: number;
|
|
|
|
enable_software_vulnerabilities?: boolean;
|
2022-04-11 19:04:41 +00:00
|
|
|
}
|
|
|
|
|
2022-05-11 02:33:30 +00:00
|
|
|
export interface IIntegration {
|
2022-04-11 19:04:41 +00:00
|
|
|
url: string;
|
2022-05-11 02:33:30 +00:00
|
|
|
username?: string;
|
|
|
|
email?: string;
|
|
|
|
api_token: string;
|
|
|
|
project_key?: string;
|
|
|
|
group_id?: number;
|
|
|
|
enable_software_vulnerabilities?: boolean;
|
|
|
|
originalIndex?: number;
|
|
|
|
type?: string;
|
|
|
|
tableIndex?: number;
|
|
|
|
dropdownIndex?: number;
|
|
|
|
name?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IIntegrationFormData {
|
|
|
|
url: string;
|
|
|
|
username?: string;
|
|
|
|
email?: string;
|
2022-04-12 15:33:59 +00:00
|
|
|
apiToken: string;
|
2022-05-11 02:33:30 +00:00
|
|
|
projectKey?: string;
|
|
|
|
groupId?: number;
|
2022-04-11 19:04:41 +00:00
|
|
|
enableSoftwareVulnerabilities?: boolean;
|
|
|
|
}
|
|
|
|
|
2022-05-11 02:33:30 +00:00
|
|
|
export interface IIntegrationTableData extends IIntegrationFormData {
|
|
|
|
originalIndex: number;
|
|
|
|
type: string;
|
|
|
|
tableIndex?: number;
|
|
|
|
name: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IIntegrationFormErrors {
|
2022-04-11 19:04:41 +00:00
|
|
|
url?: string | null;
|
2022-05-11 02:33:30 +00:00
|
|
|
email?: string | null;
|
2022-04-11 19:04:41 +00:00
|
|
|
username?: string | null;
|
2022-04-12 15:33:59 +00:00
|
|
|
apiToken?: string | null;
|
2022-05-11 02:33:30 +00:00
|
|
|
groupId?: number | null;
|
2022-04-11 19:04:41 +00:00
|
|
|
projectKey?: string | null;
|
2022-05-11 02:33:30 +00:00
|
|
|
enableSoftwareVulnerabilities?: boolean;
|
2022-04-11 19:04:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IIntegrations {
|
2022-05-11 02:33:30 +00:00
|
|
|
zendesk: IZendeskIntegration[];
|
2022-04-11 19:04:41 +00:00
|
|
|
jira: IJiraIntegration[];
|
|
|
|
}
|