filter.model.ts 828 Bytes
Newer Older
1
export interface IBasicModelFilter {
Matija Obreza's avatar
Matija Obreza committed
2
  id?: number[];
Valeriy Panov's avatar
Valeriy Panov committed
3
  _text?: string;
4
5
6
}

export interface IVersionedModelFilter extends IBasicModelFilter {
Matija Obreza's avatar
Matija Obreza committed
7
  version?: number[];
8
9
10
}

export interface IDateFilter {
Matija Obreza's avatar
Matija Obreza committed
11
12
13
14
  ge?: Date;
  gt?: Date;
  le?: Date;
  lt?: Date;
15
16
17
}

export interface INumberFilter {
Matija Obreza's avatar
Matija Obreza committed
18
19
20
21
22
  eq?: number;
  gt?: number;
  ge?: number;
  lt?: number;
  le?: number;
23
24
25
}

export interface IStringFilter {
Matija Obreza's avatar
Matija Obreza committed
26
27
28
  eq?: string; // equals
  contains?: string; // like
  sw?: string; // starts with
29
30
31
32
}


export interface IAuditedVersionedModelFilter extends IVersionedModelFilter {
Matija Obreza's avatar
Matija Obreza committed
33
34
35
36
  createdBy?: number[];
  lastModifiedBy?: number[];
  createdDate?: IDateFilter;
  lastModifiedDate?: IDateFilter;
37
38
39
}

export interface IPartnerFilter extends IAuditedVersionedModelFilter {
Matija Obreza's avatar
Matija Obreza committed
40
41
42
  shortName?: string[];
  name?: IStringFilter;
  wiewsCodes?: string[];
43
}