paperless-ngx/src-ui/src/app/data/matching-model.ts

35 lines
765 B
TypeScript
Raw Normal View History

2020-10-27 01:10:18 +01:00
import { ObjectWithId } from './object-with-id';
2020-10-30 22:46:43 +01:00
export const MATCH_ANY = 1
export const MATCH_ALL = 2
export const MATCH_LITERAL = 3
export const MATCH_REGEX = 4
export const MATCH_FUZZY = 5
export const MATCH_AUTO = 6
export const MATCHING_ALGORITHMS = [
{id: MATCH_ANY, name: $localize`Any`},
{id: MATCH_ALL, name: $localize`All`},
{id: MATCH_LITERAL, name: $localize`Literal`},
{id: MATCH_REGEX, name: $localize`Regular expression`},
{id: MATCH_FUZZY, name: $localize`Fuzzy match`},
{id: MATCH_AUTO, name: $localize`Auto`},
2020-10-30 22:46:43 +01:00
]
export interface MatchingModel extends ObjectWithId {
2020-10-28 18:04:50 +01:00
2020-10-27 01:10:18 +01:00
name?: string
slug?: string
2020-10-28 18:04:50 +01:00
match?: string
matching_algorithm?: number
is_insensitive?: boolean
2020-10-27 01:10:18 +01:00
document_count?: number
2020-10-27 01:10:18 +01:00
}