feat: add users and groups API routes

This commit is contained in:
Kaaybi
2022-11-12 18:46:52 +00:00
committed by Michael Shamoon
parent 96a29883cd
commit 4333bd58cf
8 changed files with 175 additions and 0 deletions

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[]
}

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[]
}