@trii/types 2.10.439 → 2.10.441

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.
@@ -36,12 +36,36 @@ export interface IConversation {
36
36
  workflowId?: string;
37
37
  botStatus: ConversationBotStatus;
38
38
  botVars: ConversationBotVar[];
39
+ metadata: IConversationMetadata;
39
40
  finalizedAt: Date;
40
41
  ending?: IEnding;
41
42
  reOpenAt?: Date;
42
43
  createdAt: Date;
43
44
  updatedAt: Date;
44
45
  }
46
+ export interface IConversationMetadata {
47
+ nickname?: string;
48
+ email?: string;
49
+ ip?: string;
50
+ country?: string;
51
+ region?: string;
52
+ city?: string;
53
+ timezone?: string;
54
+ latitude?: number;
55
+ longitude?: number;
56
+ isp?: string;
57
+ userAgent?: string;
58
+ browser?: string;
59
+ os?: string;
60
+ deviceType?: 'Desktop' | 'Mobile' | 'Tablet';
61
+ language?: string;
62
+ referer?: string;
63
+ utmSource?: string;
64
+ utmMedium?: string;
65
+ utmCampaign?: string;
66
+ sessionId?: string;
67
+ screenResolution?: string;
68
+ }
45
69
  export declare enum ConversationBotStatus {
46
70
  NONE = 0,
47
71
  WAITING = 1,
@@ -39,6 +39,7 @@ export interface ICampaign {
39
39
  deletedBy?: string;
40
40
  }
41
41
  export declare enum CampaignContactsOrigin {
42
+ NULL = 0,
42
43
  LIST = 1,
43
44
  SEGMENT = 2,
44
45
  XLSX = 3,
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CampaignStatus = exports.CampaignType = exports.CampaignContactsOrigin = void 0;
4
4
  var CampaignContactsOrigin;
5
5
  (function (CampaignContactsOrigin) {
6
+ CampaignContactsOrigin[CampaignContactsOrigin["NULL"] = 0] = "NULL";
6
7
  CampaignContactsOrigin[CampaignContactsOrigin["LIST"] = 1] = "LIST";
7
8
  CampaignContactsOrigin[CampaignContactsOrigin["SEGMENT"] = 2] = "SEGMENT";
8
9
  CampaignContactsOrigin[CampaignContactsOrigin["XLSX"] = 3] = "XLSX";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.439",
3
+ "version": "2.10.441",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",