1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- /*
- * SonarQube
- * Copyright (C) 2009-2024 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
- export enum TaskTypes {
- Report = 'REPORT',
- IssueSync = 'ISSUE_SYNC',
- GithubProvisioning = 'GITHUB_AUTH_PROVISIONING',
- GithubProjectPermissionsProvisioning = 'GITHUB_PROJECT_PERMISSIONS_PROVISIONING',
- GitlabProvisioning = 'GITLAB_AUTH_PROVISIONING',
- AppRefresh = 'APP_REFRESH',
- ViewRefresh = 'VIEW_REFRESH',
- ProjectExport = 'PROJECT_EXPORT',
- ProjectImport = 'PROJECT_IMPORT',
- ReportSubmit = 'REPORT_SUBMIT',
- AuditPurge = 'AUDIT_PURGE',
- }
-
- export enum TaskStatuses {
- Pending = 'PENDING',
- InProgress = 'IN_PROGRESS',
- Success = 'SUCCESS',
- Failed = 'FAILED',
- Canceled = 'CANCELED',
- }
-
- export interface Task {
- analysisId?: string;
- branch?: string;
- nodeName?: string;
- componentKey?: string;
- componentName?: string;
- componentQualifier?: string;
- errorMessage?: string;
- errorStacktrace?: string;
- errorType?: string;
- executedAt?: string;
- executionTimeMs?: number;
- hasErrorStacktrace?: boolean;
- hasScannerContext?: boolean;
- id: string;
- pullRequest?: string;
- pullRequestTitle?: string;
- scannerContext?: string;
- startedAt?: string;
- status: TaskStatuses;
- submittedAt: string;
- submitterLogin?: string;
- type: TaskTypes;
- warningCount?: number;
- warnings?: string[];
- infoMessages?: string[];
- }
-
- export interface TaskWarning {
- key: string;
- message: string;
- dismissable: boolean;
- }
-
- export interface ActivityRequestParameters {
- component?: string;
- p?: number;
- ps?: number;
- status?: string;
- type?: string;
- onlyCurrents?: boolean;
- minSubmittedAt?: string;
- maxExecutedAt?: string;
- q?: string;
- }
|