feat: add users and groups API routes

This commit is contained in:
Kaaybi authored and Michael Shamoon committed 2022-11-12 13:46:50 -08:00
1 parent 96a29883cd
commit 4333bd58cf
8 files changed
+175

No files matched your search

+9
View 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
View 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[]
}