mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
Feature: workflow removal action (#5928)
--------- Co-authored-by: Trenton H <797416+stumpylog@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user