Fixing some type issue found during the frontend-core updates.

This commit is contained in:
mike12345567 2024-12-12 16:00:28 +00:00
parent 9e90103c12
commit eca009920c
4 changed files with 5 additions and 4 deletions

View File

@ -9,7 +9,7 @@ import {
RemovePermissionRequest,
RemovePermissionResponse,
FetchResourcePermissionInfoResponse,
FetchBuiltinPermissionsRequest,
FetchBuiltinPermissionsResponse,
FetchPermissionLevelsRequest,
} from "@budibase/types"
import {
@ -22,7 +22,7 @@ import { PermissionUpdateType } from "../../sdk/app/permissions"
const SUPPORTED_LEVELS = CURRENTLY_SUPPORTED_LEVELS
export function fetchBuiltin(
ctx: UserCtx<void, FetchBuiltinPermissionsRequest>
ctx: UserCtx<void, FetchBuiltinPermissionsResponse>
) {
ctx.body = Object.values(permissions.getBuiltinPermissions())
}

View File

@ -1,6 +1,6 @@
import { BuiltinPermission, PermissionLevel } from "../../../sdk"
export type FetchBuiltinPermissionsRequest = BuiltinPermission[]
export type FetchBuiltinPermissionsResponse = BuiltinPermission[]
export type FetchPermissionLevelsRequest = string[]

View File

@ -1,7 +1,7 @@
import { DevInfo, User } from "../../../documents"
export interface GenerateAPIKeyRequest {
userId: string
userId?: string
}
export interface GenerateAPIKeyResponse extends DevInfo {}

View File

@ -28,6 +28,7 @@ export interface App extends Document {
upgradableVersion?: string
snippets?: Snippet[]
creationVersion?: string
updatedBy?: string
}
export interface AppInstance {