mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-14 02:27:06 +01:00
Feature: workflow removal action (#5928)
--------- Co-authored-by: Trenton H <797416+stumpylog@users.noreply.github.com>
This commit is contained in:
parent
f6084acfc8
commit
f07441a408
19 changed files with 1920 additions and 354 deletions
|
|
@ -2,6 +2,7 @@ import { ObjectWithId } from './object-with-id'
|
|||
|
||||
export enum WorkflowActionType {
|
||||
Assignment = 1,
|
||||
Removal = 2,
|
||||
}
|
||||
export interface WorkflowAction extends ObjectWithId {
|
||||
type: WorkflowActionType
|
||||
|
|
@ -27,4 +28,38 @@ export interface WorkflowAction extends ObjectWithId {
|
|||
assign_change_groups?: number[] // [Group.id]
|
||||
|
||||
assign_custom_fields?: number[] // [CustomField.id]
|
||||
|
||||
remove_tags?: number[] // Tag.id
|
||||
|
||||
remove_all_tags?: boolean
|
||||
|
||||
remove_document_types?: number[] // [DocumentType.id]
|
||||
|
||||
remove_all_document_types?: boolean
|
||||
|
||||
remove_correspondents?: number[] // [Correspondent.id]
|
||||
|
||||
remove_all_correspondents?: boolean
|
||||
|
||||
remove_storage_paths?: number[] // [StoragePath.id]
|
||||
|
||||
remove_all_storage_paths?: boolean
|
||||
|
||||
remove_owners?: number[] // [User.id]
|
||||
|
||||
remove_all_owners?: boolean
|
||||
|
||||
remove_view_users?: number[] // [User.id]
|
||||
|
||||
remove_view_groups?: number[] // [Group.id]
|
||||
|
||||
remove_change_users?: number[] // [User.id]
|
||||
|
||||
remove_change_groups?: number[] // [Group.id]
|
||||
|
||||
remove_all_permissions?: boolean
|
||||
|
||||
remove_custom_fields?: number[] // [CustomField.id]
|
||||
|
||||
remove_all_custom_fields?: boolean
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue