mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-15 11:07:00 +01:00
UI for matching api
This commit is contained in:
parent
b35e1bacd4
commit
54c47de38a
15 changed files with 111 additions and 59 deletions
|
|
@ -2,10 +2,30 @@ import { ObjectWithId } from './object-with-id';
|
|||
|
||||
export class MatchingModel extends ObjectWithId {
|
||||
|
||||
static MATCH_ANY = 1
|
||||
static MATCH_ALL = 2
|
||||
static MATCH_LITERAL = 3
|
||||
static MATCH_REGEX = 4
|
||||
static MATCH_FUZZY = 5
|
||||
static MATCH_AUTO = 6
|
||||
|
||||
static MATCHING_ALGORITHMS = [
|
||||
{id: MatchingModel.MATCH_ANY, name: "Any"},
|
||||
{id: MatchingModel.MATCH_ALL, name: "All"},
|
||||
{id: MatchingModel.MATCH_LITERAL, name: "Literal"},
|
||||
{id: MatchingModel.MATCH_REGEX, name: "Regular Expression"},
|
||||
{id: MatchingModel.MATCH_FUZZY, name: "Fuzzy Match"},
|
||||
{id: MatchingModel.MATCH_AUTO, name: "Auto"},
|
||||
]
|
||||
|
||||
name?: string
|
||||
|
||||
slug?: string
|
||||
|
||||
automatic_classification?: boolean
|
||||
|
||||
match?: string
|
||||
|
||||
matching_algorithm?: number
|
||||
|
||||
is_insensitive?: boolean
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue