refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)

This commit is contained in:
Michael Kret
2023-01-13 19:11:56 +02:00
committed by GitHub
parent d7732ea150
commit 6608e69457
254 changed files with 2687 additions and 2675 deletions

View File

@@ -23,6 +23,12 @@ interface IHaloPSATokens {
id_token: string;
}
function getAuthUrl(credentials: IDataObject) {
return credentials.hostingType === 'on-premise'
? `${credentials.appUrl}/auth/token`
: `${credentials.authUrl}/token?tenant=${credentials.tenant}`;
}
// API Requests ---------------------------------------------------------------------
export async function getAccessTokens(
@@ -184,11 +190,6 @@ export async function haloPSAApiRequestAllItems(
}
// Utilities ------------------------------------------------------------------------
function getAuthUrl(credentials: IDataObject) {
return credentials.hostingType === 'on-premise'
? `${credentials.appUrl}/auth/token`
: `${credentials.authUrl}/token?tenant=${credentials.tenant}`;
}
export function simplifyHaloPSAGetOutput(
response: IDataObject[],