@trii/types 2.10.172 → 2.10.174

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,6 +47,7 @@ export interface IContact {
47
47
  imageUrl: string;
48
48
  birthDate?: Date | null;
49
49
  owner?: string;
50
+ listId?: string | '';
50
51
  business?: IBusiness;
51
52
  phone: string;
52
53
  phones: IContactAddress[];
@@ -142,7 +143,6 @@ export interface IContactTelInfo {
142
143
  interface IContactTag {
143
144
  id: string;
144
145
  name: string;
145
- color: string;
146
146
  }
147
147
  export interface ISubscription {
148
148
  id: number;
@@ -1,4 +1,34 @@
1
1
  import { ContactField_type } from "./contacts";
2
+ export interface ISegment {
3
+ id: string;
4
+ spaceId?: string | null;
5
+ name?: string | null;
6
+ description?: string | null;
7
+ count: number;
8
+ lists: ISegmentList[];
9
+ filter?: ISegmentFilter;
10
+ countLastUpdate?: string | null;
11
+ createdAt?: string | null;
12
+ updatedAt?: string | null;
13
+ deletedAt?: string | null;
14
+ }
15
+ export interface ISegmentList {
16
+ id: string;
17
+ name: string | null;
18
+ }
19
+ export interface ISegmentFilter {
20
+ operator: string | 'AND';
21
+ groups: ISegmentFilterGroup[];
22
+ }
23
+ export interface ISegmentFilterGroup {
24
+ operator: string | 'OR';
25
+ items: ISegmentFilterGroupItem[];
26
+ }
27
+ export interface ISegmentFilterGroupItem {
28
+ field: string;
29
+ condition: string;
30
+ value: string;
31
+ }
2
32
  export declare enum Segment_Filter_Operator {
3
33
  NULL = 0,
4
34
  LESS_THAN = 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.172",
3
+ "version": "2.10.174",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",