aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/api')
-rw-r--r--server/sonar-web/src/main/js/api/alm-integrations.ts2
-rw-r--r--server/sonar-web/src/main/js/api/alm-settings.ts2
-rw-r--r--server/sonar-web/src/main/js/api/application.ts2
-rw-r--r--server/sonar-web/src/main/js/api/branches.ts2
-rw-r--r--server/sonar-web/src/main/js/api/ce.ts2
-rw-r--r--server/sonar-web/src/main/js/api/component-report.ts2
-rw-r--r--server/sonar-web/src/main/js/api/components.ts2
-rw-r--r--server/sonar-web/src/main/js/api/editions.ts2
-rw-r--r--server/sonar-web/src/main/js/api/github-provisioning.ts2
-rw-r--r--server/sonar-web/src/main/js/api/issues.ts2
-rw-r--r--server/sonar-web/src/main/js/api/languages.ts2
-rw-r--r--server/sonar-web/src/main/js/api/measures.ts2
-rw-r--r--server/sonar-web/src/main/js/api/messages.ts2
-rw-r--r--server/sonar-web/src/main/js/api/metrics.ts2
-rw-r--r--server/sonar-web/src/main/js/api/navigation.ts2
-rw-r--r--server/sonar-web/src/main/js/api/newCodeDefinition.ts2
-rw-r--r--server/sonar-web/src/main/js/api/notifications.ts2
-rw-r--r--server/sonar-web/src/main/js/api/permissions.ts2
-rw-r--r--server/sonar-web/src/main/js/api/plugins.ts2
-rw-r--r--server/sonar-web/src/main/js/api/project-badges.ts2
-rw-r--r--server/sonar-web/src/main/js/api/project-dump.ts2
-rw-r--r--server/sonar-web/src/main/js/api/project-management.ts2
-rw-r--r--server/sonar-web/src/main/js/api/projectActivity.ts2
-rw-r--r--server/sonar-web/src/main/js/api/projectLinks.ts2
-rw-r--r--server/sonar-web/src/main/js/api/quality-gates.ts2
-rw-r--r--server/sonar-web/src/main/js/api/quality-profiles.ts2
-rw-r--r--server/sonar-web/src/main/js/api/rules.ts2
-rw-r--r--server/sonar-web/src/main/js/api/scim-provisioning.ts2
-rw-r--r--server/sonar-web/src/main/js/api/security-hotspots.ts2
-rw-r--r--server/sonar-web/src/main/js/api/settings.ts2
-rw-r--r--server/sonar-web/src/main/js/api/system.ts2
-rw-r--r--server/sonar-web/src/main/js/api/time-machine.ts2
-rw-r--r--server/sonar-web/src/main/js/api/user-tokens.ts2
-rw-r--r--server/sonar-web/src/main/js/api/users.ts2
-rw-r--r--server/sonar-web/src/main/js/api/web-api.ts2
-rw-r--r--server/sonar-web/src/main/js/api/webhooks.ts2
36 files changed, 36 insertions, 36 deletions
diff --git a/server/sonar-web/src/main/js/api/alm-integrations.ts b/server/sonar-web/src/main/js/api/alm-integrations.ts
index a2a350eb073..ce7986c0c9c 100644
--- a/server/sonar-web/src/main/js/api/alm-integrations.ts
+++ b/server/sonar-web/src/main/js/api/alm-integrations.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { get, getJSON, parseError, post, postJSON } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import {
AzureProject,
AzureRepository,
diff --git a/server/sonar-web/src/main/js/api/alm-settings.ts b/server/sonar-web/src/main/js/api/alm-settings.ts
index b32bb24d263..cd7a986bdb6 100644
--- a/server/sonar-web/src/main/js/api/alm-settings.ts
+++ b/server/sonar-web/src/main/js/api/alm-settings.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { get, getJSON, HttpStatus, parseError, parseJSON, post } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import {
AlmSettingsBindingDefinitions,
AlmSettingsInstance,
diff --git a/server/sonar-web/src/main/js/api/application.ts b/server/sonar-web/src/main/js/api/application.ts
index 9735e83ba08..6c51411b58e 100644
--- a/server/sonar-web/src/main/js/api/application.ts
+++ b/server/sonar-web/src/main/js/api/application.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post, postJSON } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { Application, ApplicationPeriod } from '../types/application';
import { Visibility } from '../types/component';
diff --git a/server/sonar-web/src/main/js/api/branches.ts b/server/sonar-web/src/main/js/api/branches.ts
index a7884879428..e0a9fb6f8ed 100644
--- a/server/sonar-web/src/main/js/api/branches.ts
+++ b/server/sonar-web/src/main/js/api/branches.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { Branch, PullRequest } from '../types/branch-like';
export function getBranches(project: string): Promise<Branch[]> {
diff --git a/server/sonar-web/src/main/js/api/ce.ts b/server/sonar-web/src/main/js/api/ce.ts
index 2a292c47aff..62b36056571 100644
--- a/server/sonar-web/src/main/js/api/ce.ts
+++ b/server/sonar-web/src/main/js/api/ce.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { IndexationStatus } from '../types/indexation';
import { ActivityRequestParameters, Task, TaskWarning } from '../types/tasks';
import { Paging } from '../types/types';
diff --git a/server/sonar-web/src/main/js/api/component-report.ts b/server/sonar-web/src/main/js/api/component-report.ts
index f54941ebdfd..20fd7bf0432 100644
--- a/server/sonar-web/src/main/js/api/component-report.ts
+++ b/server/sonar-web/src/main/js/api/component-report.ts
@@ -17,9 +17,9 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post } from '../helpers/request';
import { getBaseUrl } from '../helpers/system';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { ComponentReportStatus } from '../types/component-report';
export function getReportStatus(
diff --git a/server/sonar-web/src/main/js/api/components.ts b/server/sonar-web/src/main/js/api/components.ts
index b6f020aa7f7..29b5a4c4e1b 100644
--- a/server/sonar-web/src/main/js/api/components.ts
+++ b/server/sonar-web/src/main/js/api/components.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post, RequestData } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { BranchParameters } from '../types/branch-like';
import {
ComponentQualifier,
diff --git a/server/sonar-web/src/main/js/api/editions.ts b/server/sonar-web/src/main/js/api/editions.ts
index 5d3d8c20444..83a16612b68 100644
--- a/server/sonar-web/src/main/js/api/editions.ts
+++ b/server/sonar-web/src/main/js/api/editions.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { License } from '../types/editions';
export function isValidLicense(): Promise<{ isValidLicense: boolean }> {
diff --git a/server/sonar-web/src/main/js/api/github-provisioning.ts b/server/sonar-web/src/main/js/api/github-provisioning.ts
index 2e932886a8f..713f9b123a8 100644
--- a/server/sonar-web/src/main/js/api/github-provisioning.ts
+++ b/server/sonar-web/src/main/js/api/github-provisioning.ts
@@ -18,8 +18,8 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import axios from 'axios';
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post, postJSON } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { GitHubConfigurationStatus, GitHubMapping, GithubStatus } from '../types/provisioning';
const GITHUB_PERMISSION_MAPPINGS = '/api/v2/dop-translation/github-permission-mappings';
diff --git a/server/sonar-web/src/main/js/api/issues.ts b/server/sonar-web/src/main/js/api/issues.ts
index a87ad9ad1f5..6f490cc80e7 100644
--- a/server/sonar-web/src/main/js/api/issues.ts
+++ b/server/sonar-web/src/main/js/api/issues.ts
@@ -17,6 +17,7 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import getCoverageStatus from '../components/SourceViewer/helpers/getCoverageStatus';
import {
get,
@@ -27,7 +28,6 @@ import {
postJSON,
RequestData,
} from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { FacetName, IssueResponse, ListIssuesResponse, RawIssuesResponse } from '../types/issues';
import { Dict, FacetValue, IssueChangelog, SnippetsByComponent, SourceLine } from '../types/types';
diff --git a/server/sonar-web/src/main/js/api/languages.ts b/server/sonar-web/src/main/js/api/languages.ts
index 3c9f6c907c2..f76605f2ea8 100644
--- a/server/sonar-web/src/main/js/api/languages.ts
+++ b/server/sonar-web/src/main/js/api/languages.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { Language } from '../types/languages';
export function getLanguages(): Promise<Language[]> {
diff --git a/server/sonar-web/src/main/js/api/measures.ts b/server/sonar-web/src/main/js/api/measures.ts
index a2bb0470f23..b30bce138bb 100644
--- a/server/sonar-web/src/main/js/api/measures.ts
+++ b/server/sonar-web/src/main/js/api/measures.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { BranchParameters } from '../types/branch-like';
import {
MeasuresAndMetaWithMetrics,
diff --git a/server/sonar-web/src/main/js/api/messages.ts b/server/sonar-web/src/main/js/api/messages.ts
index 1d03f17b8c0..3184cdb4c75 100644
--- a/server/sonar-web/src/main/js/api/messages.ts
+++ b/server/sonar-web/src/main/js/api/messages.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
export enum MessageTypes {
GlobalNcd90 = 'GLOBAL_NCD_90',
diff --git a/server/sonar-web/src/main/js/api/metrics.ts b/server/sonar-web/src/main/js/api/metrics.ts
index 09b966092c0..894ef7a4a65 100644
--- a/server/sonar-web/src/main/js/api/metrics.ts
+++ b/server/sonar-web/src/main/js/api/metrics.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { Metric } from '../types/types';
export interface MetricsResponse {
diff --git a/server/sonar-web/src/main/js/api/navigation.ts b/server/sonar-web/src/main/js/api/navigation.ts
index e41f88ec6c3..05099d42fce 100644
--- a/server/sonar-web/src/main/js/api/navigation.ts
+++ b/server/sonar-web/src/main/js/api/navigation.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { AppState } from '../types/appstate';
import { BranchParameters } from '../types/branch-like';
import { Extension, NavigationComponent } from '../types/types';
diff --git a/server/sonar-web/src/main/js/api/newCodeDefinition.ts b/server/sonar-web/src/main/js/api/newCodeDefinition.ts
index cf81abd3a2f..57a553eb71f 100644
--- a/server/sonar-web/src/main/js/api/newCodeDefinition.ts
+++ b/server/sonar-web/src/main/js/api/newCodeDefinition.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import {
NewCodeDefinition,
NewCodeDefinitionBranch,
diff --git a/server/sonar-web/src/main/js/api/notifications.ts b/server/sonar-web/src/main/js/api/notifications.ts
index bd0310dd9d8..aab9b5df561 100644
--- a/server/sonar-web/src/main/js/api/notifications.ts
+++ b/server/sonar-web/src/main/js/api/notifications.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { AddRemoveNotificationParameters, NotificationsResponse } from '../types/notifications';
export function getNotifications(): Promise<NotificationsResponse> {
diff --git a/server/sonar-web/src/main/js/api/permissions.ts b/server/sonar-web/src/main/js/api/permissions.ts
index 73e5c9be020..06c554e293f 100644
--- a/server/sonar-web/src/main/js/api/permissions.ts
+++ b/server/sonar-web/src/main/js/api/permissions.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post, postJSON, RequestData } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { Visibility } from '../types/component';
import {
Paging,
diff --git a/server/sonar-web/src/main/js/api/plugins.ts b/server/sonar-web/src/main/js/api/plugins.ts
index 3531f8351f2..db78fea70d7 100644
--- a/server/sonar-web/src/main/js/api/plugins.ts
+++ b/server/sonar-web/src/main/js/api/plugins.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import {
AvailablePlugin,
InstalledPlugin,
diff --git a/server/sonar-web/src/main/js/api/project-badges.ts b/server/sonar-web/src/main/js/api/project-badges.ts
index db811882fee..d73ff348980 100644
--- a/server/sonar-web/src/main/js/api/project-badges.ts
+++ b/server/sonar-web/src/main/js/api/project-badges.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
export function getProjectBadgesToken(project: string) {
return getJSON('/api/project_badges/token', { project })
diff --git a/server/sonar-web/src/main/js/api/project-dump.ts b/server/sonar-web/src/main/js/api/project-dump.ts
index ed939039704..e7ce3574b60 100644
--- a/server/sonar-web/src/main/js/api/project-dump.ts
+++ b/server/sonar-web/src/main/js/api/project-dump.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { DumpStatus } from '../types/project-dump';
export function getStatus(componentKey: string): Promise<DumpStatus> {
diff --git a/server/sonar-web/src/main/js/api/project-management.ts b/server/sonar-web/src/main/js/api/project-management.ts
index 65a162691d2..9d10c8834f0 100644
--- a/server/sonar-web/src/main/js/api/project-management.ts
+++ b/server/sonar-web/src/main/js/api/project-management.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post, postJSON } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { ComponentQualifier, Visibility } from '../types/component';
import { Paging } from '../types/types';
diff --git a/server/sonar-web/src/main/js/api/projectActivity.ts b/server/sonar-web/src/main/js/api/projectActivity.ts
index 7a28e2499ca..52edbc66f0f 100644
--- a/server/sonar-web/src/main/js/api/projectActivity.ts
+++ b/server/sonar-web/src/main/js/api/projectActivity.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post, postJSON } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { BranchParameters } from '../types/branch-like';
import {
Analysis,
diff --git a/server/sonar-web/src/main/js/api/projectLinks.ts b/server/sonar-web/src/main/js/api/projectLinks.ts
index c8ca2d71960..fe8880f72d2 100644
--- a/server/sonar-web/src/main/js/api/projectLinks.ts
+++ b/server/sonar-web/src/main/js/api/projectLinks.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post, postJSON } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { ProjectLink } from '../types/types';
export function getProjectLinks(projectKey: string): Promise<ProjectLink[]> {
diff --git a/server/sonar-web/src/main/js/api/quality-gates.ts b/server/sonar-web/src/main/js/api/quality-gates.ts
index d35bd99116d..a0767938280 100644
--- a/server/sonar-web/src/main/js/api/quality-gates.ts
+++ b/server/sonar-web/src/main/js/api/quality-gates.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post, postJSON } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { BranchParameters } from '../types/branch-like';
import {
AddDeleteGroupPermissionsParameters,
diff --git a/server/sonar-web/src/main/js/api/quality-profiles.ts b/server/sonar-web/src/main/js/api/quality-profiles.ts
index 6ab0d03048b..120dd6a33cd 100644
--- a/server/sonar-web/src/main/js/api/quality-profiles.ts
+++ b/server/sonar-web/src/main/js/api/quality-profiles.ts
@@ -18,10 +18,10 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import { map } from 'lodash';
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { Exporter, ProfileChangelogEvent } from '../apps/quality-profiles/types';
import { csvEscape } from '../helpers/csv';
import { RequestData, getJSON, post, postJSON } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { CleanCodeAttributeCategory, SoftwareImpact } from '../types/clean-code-taxonomy';
import { Dict, Paging, ProfileInheritanceDetails, UserSelected } from '../types/types';
diff --git a/server/sonar-web/src/main/js/api/rules.ts b/server/sonar-web/src/main/js/api/rules.ts
index 9c7588ea5e8..ef3991bb259 100644
--- a/server/sonar-web/src/main/js/api/rules.ts
+++ b/server/sonar-web/src/main/js/api/rules.ts
@@ -18,8 +18,8 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import { HttpStatusCode } from 'axios';
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { axiosToCatch, getJSON, post, postJSON } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { CleanCodeAttribute, SoftwareImpact } from '../types/clean-code-taxonomy';
import { GetRulesAppResponse, SearchRulesResponse } from '../types/coding-rules';
import { SearchRulesQuery } from '../types/rules';
diff --git a/server/sonar-web/src/main/js/api/scim-provisioning.ts b/server/sonar-web/src/main/js/api/scim-provisioning.ts
index abbc75667f0..b9678e9c6dc 100644
--- a/server/sonar-web/src/main/js/api/scim-provisioning.ts
+++ b/server/sonar-web/src/main/js/api/scim-provisioning.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
export function fetchIsScimEnabled(): Promise<boolean> {
return getJSON('/api/scim_management/status')
diff --git a/server/sonar-web/src/main/js/api/security-hotspots.ts b/server/sonar-web/src/main/js/api/security-hotspots.ts
index 813a3f756cc..75a743ab118 100644
--- a/server/sonar-web/src/main/js/api/security-hotspots.ts
+++ b/server/sonar-web/src/main/js/api/security-hotspots.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { BranchParameters } from '../types/branch-like';
import {
Hotspot,
diff --git a/server/sonar-web/src/main/js/api/settings.ts b/server/sonar-web/src/main/js/api/settings.ts
index 3a092ee708c..8ca01a42f9d 100644
--- a/server/sonar-web/src/main/js/api/settings.ts
+++ b/server/sonar-web/src/main/js/api/settings.ts
@@ -18,9 +18,9 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import { omitBy } from 'lodash';
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { isCategoryDefinition } from '../apps/settings/utils';
import { getJSON, post, postJSON, RequestData } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { BranchParameters } from '../types/branch-like';
import {
ExtendedSettingDefinition,
diff --git a/server/sonar-web/src/main/js/api/system.ts b/server/sonar-web/src/main/js/api/system.ts
index 5ad15dab742..7014f71feea 100644
--- a/server/sonar-web/src/main/js/api/system.ts
+++ b/server/sonar-web/src/main/js/api/system.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post, postJSON, requestTryAndRepeatUntil } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { SystemUpgrade } from '../types/system';
import { SysInfoCluster, SysInfoStandalone, SysStatus } from '../types/types';
diff --git a/server/sonar-web/src/main/js/api/time-machine.ts b/server/sonar-web/src/main/js/api/time-machine.ts
index 6f88f067b24..45f17998588 100644
--- a/server/sonar-web/src/main/js/api/time-machine.ts
+++ b/server/sonar-web/src/main/js/api/time-machine.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { BranchParameters } from '../types/branch-like';
import { MetricKey } from '../types/metrics';
import { Paging } from '../types/types';
diff --git a/server/sonar-web/src/main/js/api/user-tokens.ts b/server/sonar-web/src/main/js/api/user-tokens.ts
index bc2080a6b76..35f8402155b 100644
--- a/server/sonar-web/src/main/js/api/user-tokens.ts
+++ b/server/sonar-web/src/main/js/api/user-tokens.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post, postJSON } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { NewUserToken, UserToken } from '../types/token';
/** List tokens for given user login */
diff --git a/server/sonar-web/src/main/js/api/users.ts b/server/sonar-web/src/main/js/api/users.ts
index aff47526174..e4387df03af 100644
--- a/server/sonar-web/src/main/js/api/users.ts
+++ b/server/sonar-web/src/main/js/api/users.ts
@@ -18,8 +18,8 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import axios from 'axios';
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { HttpStatus, axiosToCatch, getJSON, parseJSON, post } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { IdentityProvider, Paging } from '../types/types';
import {
ChangePasswordResults,
diff --git a/server/sonar-web/src/main/js/api/web-api.ts b/server/sonar-web/src/main/js/api/web-api.ts
index 89d1fdeedb1..b7119a8fb20 100644
--- a/server/sonar-web/src/main/js/api/web-api.ts
+++ b/server/sonar-web/src/main/js/api/web-api.ts
@@ -18,8 +18,8 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import { OpenAPIV3 } from 'openapi-types';
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { WebApi } from '../types/types';
interface RawDomain {
diff --git a/server/sonar-web/src/main/js/api/webhooks.ts b/server/sonar-web/src/main/js/api/webhooks.ts
index 52c616f5fc0..9b59e82a542 100644
--- a/server/sonar-web/src/main/js/api/webhooks.ts
+++ b/server/sonar-web/src/main/js/api/webhooks.ts
@@ -17,8 +17,8 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { throwGlobalError } from '~sonar-aligned/helpers/error';
import { getJSON, post, postJSON } from '../helpers/request';
-import { throwGlobalError } from '../sonar-aligned/helpers/error';
import { Paging } from '../types/types';
import {
WebhookCreatePayload,