Update other endpoints

This commit is contained in:
Andrew Kingston 2024-12-10 12:53:47 +00:00
parent 686273048e
commit cee53540a4
No known key found for this signature in database
1 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,7 @@
import { import {
FetchBuiltinPermissionsRequest, FetchBuiltinPermissionsRequest,
FetchIntegrationsResponse, FetchIntegrationsResponse,
GetEnvironmentResponse,
GetVersionResponse, GetVersionResponse,
SystemStatusResponse, SystemStatusResponse,
} from "@budibase/types" } from "@budibase/types"
@ -11,9 +12,7 @@ export interface OtherEndpoints {
getBudibaseVersion: () => Promise<string> getBudibaseVersion: () => Promise<string>
getIntegrations: () => Promise<FetchIntegrationsResponse> getIntegrations: () => Promise<FetchIntegrationsResponse>
getBasePermissions: () => Promise<FetchBuiltinPermissionsRequest> getBasePermissions: () => Promise<FetchBuiltinPermissionsRequest>
getEnvironment: () => Promise<GetEnvironmentResponse>
// Missing request or response types
getEnvironment: () => Promise<Record<string, any>>
} }
export const buildOtherEndpoints = (API: BaseAPIClient): OtherEndpoints => ({ export const buildOtherEndpoints = (API: BaseAPIClient): OtherEndpoints => ({