From 7806eebc20461a35a401a25365404aa4253f48f3 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 5 Dec 2024 15:38:53 +0000 Subject: [PATCH] Update other endpoints --- packages/frontend-core/src/api/other.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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