mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
feat: add users and groups API routes
This commit is contained in:
9
src-ui/src/app/data/paperless-group.ts
Normal file
9
src-ui/src/app/data/paperless-group.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { ObjectWithId } from './object-with-id'
|
||||
|
||||
export interface PaperlessGroup extends ObjectWithId {
|
||||
name?: string
|
||||
|
||||
user_count?: number // not implemented yet
|
||||
|
||||
permissions?: string[]
|
||||
}
|
15
src-ui/src/app/data/paperless-user.ts
Normal file
15
src-ui/src/app/data/paperless-user.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { PaperlessGroup } from 'src/app/data/paperless-group'
|
||||
import { ObjectWithId } from './object-with-id'
|
||||
|
||||
export interface PaperlessUser extends ObjectWithId {
|
||||
username?: string
|
||||
first_name?: string
|
||||
last_name?: string
|
||||
date_joined?: Date
|
||||
is_staff?: boolean
|
||||
is_active?: boolean
|
||||
is_superuser?: boolean
|
||||
groups?: PaperlessGroup[]
|
||||
permissions?: string[]
|
||||
inherited_permissions?: string[]
|
||||
}
|
Reference in New Issue
Block a user