refactor: Impose import/order linting rule across nodes packages (no-changelog) (#12314)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-12-19 18:46:14 +01:00
committed by GitHub
parent 8c635993bd
commit bafac73eb5
1120 changed files with 2677 additions and 2827 deletions

View File

@@ -19,15 +19,13 @@ export async function bubbleApiRequest(
body: IDataObject,
qs: IDataObject,
) {
const { apiToken, appName, domain, environment, hosting } = (await this.getCredentials(
'bubbleApi',
)) as {
const { apiToken, appName, domain, environment, hosting } = await this.getCredentials<{
apiToken: string;
appName: string;
domain: string;
environment: 'development' | 'live';
hosting: 'bubbleHosted' | 'selfHosted';
};
}>('bubbleApi');
const rootUrl = hosting === 'bubbleHosted' ? `https://${appName}.bubbleapps.io` : domain;
const urlSegment = environment === 'development' ? '/version-test/api/1.1' : '/api/1.1';