mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
Feature: email, webhook workflow actions (#8108)
This commit is contained in:
@@ -3,7 +3,34 @@ import { ObjectWithId } from './object-with-id'
|
||||
export enum WorkflowActionType {
|
||||
Assignment = 1,
|
||||
Removal = 2,
|
||||
Email = 3,
|
||||
Webhook = 4,
|
||||
}
|
||||
|
||||
export interface WorkflowActionEmail extends ObjectWithId {
|
||||
subject?: string
|
||||
|
||||
body?: string
|
||||
|
||||
to?: string
|
||||
|
||||
include_document?: boolean
|
||||
}
|
||||
|
||||
export interface WorkflowActionWebhook extends ObjectWithId {
|
||||
url?: string
|
||||
|
||||
use_params?: boolean
|
||||
|
||||
params?: object
|
||||
|
||||
body?: string
|
||||
|
||||
headers?: object
|
||||
|
||||
include_document?: boolean
|
||||
}
|
||||
|
||||
export interface WorkflowAction extends ObjectWithId {
|
||||
type: WorkflowActionType
|
||||
|
||||
@@ -62,4 +89,8 @@ export interface WorkflowAction extends ObjectWithId {
|
||||
remove_custom_fields?: number[] // [CustomField.id]
|
||||
|
||||
remove_all_custom_fields?: boolean
|
||||
|
||||
email?: WorkflowActionEmail
|
||||
|
||||
webhook?: WorkflowActionWebhook
|
||||
}
|
||||
|
Reference in New Issue
Block a user