diff --git a/packages/frontend-core/src/api/flags.ts b/packages/frontend-core/src/api/flags.ts index 55632182e9..1c4596787b 100644 --- a/packages/frontend-core/src/api/flags.ts +++ b/packages/frontend-core/src/api/flags.ts @@ -1,12 +1,16 @@ -import { Flags, SetUserFlagRequest, SetUserFlagResponse } from "@budibase/types" +import { + Flags, + GetUserFlagsResponse, + SetUserFlagRequest, + SetUserFlagResponse, + ToggleBetaFeatureResponse, +} from "@budibase/types" import { BaseAPIClient } from "./types" export interface FlagEndpoints { - getFlags: () => Promise - - // Missing request or response types + getFlags: () => Promise updateFlag: (flag: string, value: any) => Promise - toggleUiFeature: (value: string) => Promise<{ message: string }> + toggleUiFeature: (value: string) => Promise } export const buildFlagEndpoints = (API: BaseAPIClient): FlagEndpoints => ({