@trii/types 2.10.137 → 2.10.139

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.
@@ -0,0 +1,5 @@
1
+ export interface IMediaFile {
2
+ id: string;
3
+ name: string;
4
+ url: string;
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1,2 @@
1
1
  export * from "./Message";
2
+ export * from "./MediaFile";
@@ -1 +1,2 @@
1
1
  export * from "./Message";
2
+ export * from "./MediaFile";
@@ -1,3 +1,4 @@
1
+ import { Common } from "../index";
1
2
  export interface IContactInfo {
2
3
  id: number;
3
4
  name: string;
@@ -26,11 +27,11 @@ export interface IContact {
26
27
  imageUrl: string;
27
28
  business: IBusiness[];
28
29
  phone: string;
29
- phones: [];
30
+ phones: IContactAddress[];
30
31
  email: string;
31
- emails: [];
32
+ emails: IContactAddress[];
32
33
  im: string;
33
- ims: [];
34
+ ims: IContactAddress[];
34
35
  properties: Property[];
35
36
  createdAt?: string | null;
36
37
  createdBy?: string | null;
@@ -64,19 +65,41 @@ export interface IContactField {
64
65
  deletedAt?: string | null;
65
66
  }
66
67
  export declare enum ContactField_type {
67
- Text = 0,
68
- LongText = 1,
69
- Currency = 3,
70
- Options = 4,
71
- Time = 5,
72
- Date = 6,
73
- TimeRange = 7,
74
- DateRange = 8,
75
- Address = 11,
76
- Number_Integer = 21,
77
- Number_Decimal = 22,
78
- Number_Currency = 23,
79
- Number_Accounting = 24
68
+ TEXT = 0,
69
+ LONGTEXT = 1,
70
+ CURRENCY = 3,
71
+ OPTIONS = 4,
72
+ TIME = 5,
73
+ DATE = 6,
74
+ TIMERANGE = 7,
75
+ DATERANGE = 8,
76
+ ADDRESS = 11,
77
+ NUMBER_INTEGER = 21,
78
+ NUMBER_DECIMAL = 22,
79
+ NUMBER_CURRENCY = 23,
80
+ NUMBER_ACCOUNTING = 24
81
+ }
82
+ export interface IContactAddress {
83
+ id: string;
84
+ channelType: Common.Channels.ChannelType;
85
+ channelId?: string;
86
+ address: string;
87
+ profileName: string;
88
+ profileUrl: string;
89
+ telInfo?: IContactTelInfo;
90
+ note: string;
91
+ isVerified: boolean;
92
+ isFavorite: boolean;
93
+ dateLastMsgIn?: Date;
94
+ dateLastMsgOut?: Date;
95
+ createdAt: Date;
96
+ }
97
+ export interface IContactTelInfo {
98
+ isMobile: boolean;
99
+ country: string;
100
+ countryName: string;
101
+ state: string;
102
+ stateName: string;
80
103
  }
81
104
  export interface ISubscription {
82
105
  id: number;
@@ -1,18 +1,18 @@
1
1
  export var ContactField_type;
2
2
  (function (ContactField_type) {
3
- ContactField_type[ContactField_type["Text"] = 0] = "Text";
4
- ContactField_type[ContactField_type["LongText"] = 1] = "LongText";
5
- ContactField_type[ContactField_type["Currency"] = 3] = "Currency";
6
- ContactField_type[ContactField_type["Options"] = 4] = "Options";
7
- ContactField_type[ContactField_type["Time"] = 5] = "Time";
8
- ContactField_type[ContactField_type["Date"] = 6] = "Date";
9
- ContactField_type[ContactField_type["TimeRange"] = 7] = "TimeRange";
10
- ContactField_type[ContactField_type["DateRange"] = 8] = "DateRange";
11
- ContactField_type[ContactField_type["Address"] = 11] = "Address";
12
- ContactField_type[ContactField_type["Number_Integer"] = 21] = "Number_Integer";
13
- ContactField_type[ContactField_type["Number_Decimal"] = 22] = "Number_Decimal";
14
- ContactField_type[ContactField_type["Number_Currency"] = 23] = "Number_Currency";
15
- ContactField_type[ContactField_type["Number_Accounting"] = 24] = "Number_Accounting";
3
+ ContactField_type[ContactField_type["TEXT"] = 0] = "TEXT";
4
+ ContactField_type[ContactField_type["LONGTEXT"] = 1] = "LONGTEXT";
5
+ ContactField_type[ContactField_type["CURRENCY"] = 3] = "CURRENCY";
6
+ ContactField_type[ContactField_type["OPTIONS"] = 4] = "OPTIONS";
7
+ ContactField_type[ContactField_type["TIME"] = 5] = "TIME";
8
+ ContactField_type[ContactField_type["DATE"] = 6] = "DATE";
9
+ ContactField_type[ContactField_type["TIMERANGE"] = 7] = "TIMERANGE";
10
+ ContactField_type[ContactField_type["DATERANGE"] = 8] = "DATERANGE";
11
+ ContactField_type[ContactField_type["ADDRESS"] = 11] = "ADDRESS";
12
+ ContactField_type[ContactField_type["NUMBER_INTEGER"] = 21] = "NUMBER_INTEGER";
13
+ ContactField_type[ContactField_type["NUMBER_DECIMAL"] = 22] = "NUMBER_DECIMAL";
14
+ ContactField_type[ContactField_type["NUMBER_CURRENCY"] = 23] = "NUMBER_CURRENCY";
15
+ ContactField_type[ContactField_type["NUMBER_ACCOUNTING"] = 24] = "NUMBER_ACCOUNTING";
16
16
  })(ContactField_type || (ContactField_type = {}));
17
17
  export var IntegrationButton_method;
18
18
  (function (IntegrationButton_method) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.137",
3
+ "version": "2.10.139",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",