Fixing some type issue found during the frontend-core updates.
This commit is contained in:
parent
9e90103c12
commit
eca009920c
|
@ -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())
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { BuiltinPermission, PermissionLevel } from "../../../sdk"
|
||||
|
||||
export type FetchBuiltinPermissionsRequest = BuiltinPermission[]
|
||||
export type FetchBuiltinPermissionsResponse = BuiltinPermission[]
|
||||
|
||||
export type FetchPermissionLevelsRequest = string[]
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { DevInfo, User } from "../../../documents"
|
||||
|
||||
export interface GenerateAPIKeyRequest {
|
||||
userId: string
|
||||
userId?: string
|
||||
}
|
||||
export interface GenerateAPIKeyResponse extends DevInfo {}
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ export interface App extends Document {
|
|||
upgradableVersion?: string
|
||||
snippets?: Snippet[]
|
||||
creationVersion?: string
|
||||
updatedBy?: string
|
||||
}
|
||||
|
||||
export interface AppInstance {
|
||||
|
|
Loading…
Reference in New Issue