You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tasks.ts 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2024 SonarSource SA
  4. * mailto:info AT sonarsource DOT com
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 3 of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public License
  17. * along with this program; if not, write to the Free Software Foundation,
  18. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19. */
  20. export enum TaskTypes {
  21. Report = 'REPORT',
  22. IssueSync = 'ISSUE_SYNC',
  23. GithubProvisioning = 'GITHUB_AUTH_PROVISIONING',
  24. GithubProjectPermissionsProvisioning = 'GITHUB_PROJECT_PERMISSIONS_PROVISIONING',
  25. GitlabProvisioning = 'GITLAB_AUTH_PROVISIONING',
  26. AppRefresh = 'APP_REFRESH',
  27. ViewRefresh = 'VIEW_REFRESH',
  28. ProjectExport = 'PROJECT_EXPORT',
  29. ProjectImport = 'PROJECT_IMPORT',
  30. ReportSubmit = 'REPORT_SUBMIT',
  31. AuditPurge = 'AUDIT_PURGE',
  32. }
  33. export enum TaskStatuses {
  34. Pending = 'PENDING',
  35. InProgress = 'IN_PROGRESS',
  36. Success = 'SUCCESS',
  37. Failed = 'FAILED',
  38. Canceled = 'CANCELED',
  39. }
  40. export interface Task {
  41. analysisId?: string;
  42. branch?: string;
  43. nodeName?: string;
  44. componentKey?: string;
  45. componentName?: string;
  46. componentQualifier?: string;
  47. errorMessage?: string;
  48. errorStacktrace?: string;
  49. errorType?: string;
  50. executedAt?: string;
  51. executionTimeMs?: number;
  52. hasErrorStacktrace?: boolean;
  53. hasScannerContext?: boolean;
  54. id: string;
  55. pullRequest?: string;
  56. pullRequestTitle?: string;
  57. scannerContext?: string;
  58. startedAt?: string;
  59. status: TaskStatuses;
  60. submittedAt: string;
  61. submitterLogin?: string;
  62. type: TaskTypes;
  63. warningCount?: number;
  64. warnings?: string[];
  65. infoMessages?: string[];
  66. }
  67. export interface TaskWarning {
  68. key: string;
  69. message: string;
  70. dismissable: boolean;
  71. }
  72. export interface ActivityRequestParameters {
  73. component?: string;
  74. p?: number;
  75. ps?: number;
  76. status?: string;
  77. type?: string;
  78. onlyCurrents?: boolean;
  79. minSubmittedAt?: string;
  80. maxExecutedAt?: string;
  81. q?: string;
  82. }