diff --git a/packages/frontend-core/src/api/other.ts b/packages/frontend-core/src/api/other.ts index d984df7b06..768d689e93 100644 --- a/packages/frontend-core/src/api/other.ts +++ b/packages/frontend-core/src/api/other.ts @@ -1,14 +1,19 @@ -import { SystemStatusResponse } from "@budibase/types" +import { + FetchBuiltinPermissionsRequest, + FetchIntegrationsResponse, + GetVersionResponse, + SystemStatusResponse, +} from "@budibase/types" import { BaseAPIClient } from "./types" export interface OtherEndpoints { getSystemStatus: () => Promise getBudibaseVersion: () => Promise + getIntegrations: () => Promise + getBasePermissions: () => Promise // Missing request or response types getEnvironment: () => Promise> - getIntegrations: () => Promise> - getBasePermissions: () => Promise } export const buildOtherEndpoints = (API: BaseAPIClient): OtherEndpoints => ({ @@ -44,7 +49,7 @@ export const buildOtherEndpoints = (API: BaseAPIClient): OtherEndpoints => ({ */ getBudibaseVersion: async () => { return ( - await API.get<{ version: string }>({ + await API.get({ url: "/api/dev/version", }) ).version