mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(filters): add support for multiple external filters (#1030)
* feat(filters): add support for multiple ext filters * refactor(filters): crud and check * feat(filters): add postgres migrations * fix(filters): field array types * fix(filters): formatting * fix(filters): formatting * feat(filters): external webhook improve logs
This commit is contained in:
parent
db209319da
commit
dde0d0ed61
15 changed files with 1514 additions and 478 deletions
|
@ -521,3 +521,21 @@ export const tagsMatchLogicOptions: OptionBasic[] = [
|
|||
value: "ALL"
|
||||
}
|
||||
];
|
||||
|
||||
export const ExternalFilterTypeOptions: RadioFieldsetOption[] = [
|
||||
{ label: "Exec", description: "Run a custom command", value: "EXEC" },
|
||||
{ label: "Webhook", description: "Run webhook", value: "WEBHOOK" },
|
||||
];
|
||||
|
||||
export const ExternalFilterTypeNameMap = {
|
||||
"EXEC": "Exec",
|
||||
"WEBHOOK": "Webhook",
|
||||
};
|
||||
|
||||
export const ExternalFilterWebhookMethodOptions: OptionBasicTyped<WebhookMethod>[] = [
|
||||
{ label: "GET", value: "GET" },
|
||||
{ label: "POST", value: "POST" },
|
||||
{ label: "PUT", value: "PUT" },
|
||||
{ label: "PATCH", value: "PATCH" },
|
||||
{ label: "DELETE", value: "DELETE" },
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue