overleaf/services/web/frontend/js/features/ide-react/connection/join-project-payload.ts
ilkin-overleaf e4f5afc0c0 Merge pull request #15829 from overleaf/ii-ide-page-prototype-permissions
[web] React ide page permissions

GitOrigin-RevId: 727d33e0654d4bfefe5e710e553895f793cacb82
2023-11-24 09:04:27 +00:00

14 lines
460 B
TypeScript

import { Project } from '../../../../../types/project'
import { PermissionsLevel } from '@/features/ide-react/types/permissions'
export type JoinProjectPayloadProject = Pick<
Project,
Exclude<keyof Project, ['rootDocId', 'publicAccessLevel']>
> & { rootDoc_id?: string; publicAccesLevel?: string }
export type JoinProjectPayload = {
permissionsLevel: PermissionsLevel
project: JoinProjectPayloadProject
protocolVersion: number
publicId: string
}