mirror of
https://github.com/outline/outline.git
synced 2026-11-21 13:34:02 +03:00
* chore: Move shared/types.ts to shared/types/index.ts * chore: Split shared/types into domain files shared/types/index.ts re-exports every file, so imports from @shared/types do not change. No definitions are changed. * docs: Add JSDoc to all exports in shared/types
20 lines
434 B
TypeScript
20 lines
434 B
TypeScript
/** Access levels that can be granted on a collection. */
|
|
export enum CollectionPermission {
|
|
Read = "read",
|
|
ReadWrite = "read_write",
|
|
Admin = "admin",
|
|
}
|
|
|
|
/** Access levels that can be granted on a document. */
|
|
export enum DocumentPermission {
|
|
Read = "read",
|
|
ReadWrite = "read_write",
|
|
Admin = "admin",
|
|
}
|
|
|
|
/** Roles that a user can have in a group. */
|
|
export enum GroupPermission {
|
|
Member = "member",
|
|
Admin = "admin",
|
|
}
|