@trii/types 2.10.371 → 2.10.373
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.
|
@@ -8,9 +8,14 @@ export interface ICampaign {
|
|
|
8
8
|
title: string;
|
|
9
9
|
channelInfo?: IChannelInfo;
|
|
10
10
|
message?: IMessage;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
contactsOrigin: CampaignContactsOrigin;
|
|
12
|
+
contactsOriginDetails: string | '';
|
|
13
|
+
contactsListsId?: string[];
|
|
14
|
+
contactsSegmentsId?: string[];
|
|
15
|
+
contactsTempListId?: string;
|
|
16
|
+
contactsFileUrl?: string;
|
|
17
|
+
contactsFileColumns?: string[];
|
|
18
|
+
contactsFileDestinationColumn?: string;
|
|
14
19
|
countersContacts: number;
|
|
15
20
|
countersRecipients: number;
|
|
16
21
|
countersOpenings: number;
|
|
@@ -18,6 +23,12 @@ export interface ICampaign {
|
|
|
18
23
|
createdAt?: Date;
|
|
19
24
|
createdBy?: string;
|
|
20
25
|
}
|
|
26
|
+
export declare enum CampaignContactsOrigin {
|
|
27
|
+
LIST = 1,
|
|
28
|
+
SEGMENT = 2,
|
|
29
|
+
XLSX = 3,
|
|
30
|
+
TEMPLIST = 4
|
|
31
|
+
}
|
|
21
32
|
export declare enum CampaignType {
|
|
22
33
|
NULL = 0,
|
|
23
34
|
SMS = 1,
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
export var CampaignContactsOrigin;
|
|
2
|
+
(function (CampaignContactsOrigin) {
|
|
3
|
+
CampaignContactsOrigin[CampaignContactsOrigin["LIST"] = 1] = "LIST";
|
|
4
|
+
CampaignContactsOrigin[CampaignContactsOrigin["SEGMENT"] = 2] = "SEGMENT";
|
|
5
|
+
CampaignContactsOrigin[CampaignContactsOrigin["XLSX"] = 3] = "XLSX";
|
|
6
|
+
CampaignContactsOrigin[CampaignContactsOrigin["TEMPLIST"] = 4] = "TEMPLIST";
|
|
7
|
+
})(CampaignContactsOrigin || (CampaignContactsOrigin = {}));
|
|
1
8
|
export var CampaignType;
|
|
2
9
|
(function (CampaignType) {
|
|
3
10
|
CampaignType[CampaignType["NULL"] = 0] = "NULL";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ChannelType } from "../Common/Channels/ChannelType";
|
|
2
|
+
import { MessageAck } from "../Common/Messages/Message";
|
|
3
|
+
export interface PerformanceDetail {
|
|
4
|
+
name: string;
|
|
5
|
+
quantity: number;
|
|
6
|
+
}
|
|
7
|
+
export interface Performance {
|
|
8
|
+
total: number;
|
|
9
|
+
detail: PerformanceDetail[];
|
|
10
|
+
}
|
|
11
|
+
export interface PerformanceDashboard {
|
|
12
|
+
openingRate: Performance;
|
|
13
|
+
clickRate: Performance;
|
|
14
|
+
shared: Performance;
|
|
15
|
+
unsubscriptions: Performance;
|
|
16
|
+
complaints: Performance;
|
|
17
|
+
}
|
|
18
|
+
export interface ReportingPanelDashboard {
|
|
19
|
+
totalCampaigns: number;
|
|
20
|
+
shipments: number;
|
|
21
|
+
totalOpenings: number;
|
|
22
|
+
expired: number;
|
|
23
|
+
totalShared: number;
|
|
24
|
+
totalUnsubscriptions: number;
|
|
25
|
+
totalComplaints: number;
|
|
26
|
+
totalBounces: number;
|
|
27
|
+
}
|
|
28
|
+
export interface RecipientsDashboard {
|
|
29
|
+
address: string;
|
|
30
|
+
name: string;
|
|
31
|
+
status: MessageAck;
|
|
32
|
+
type: ChannelType;
|
|
33
|
+
}
|
|
34
|
+
export interface DeliveriesDashboard {
|
|
35
|
+
withoutBounces: number;
|
|
36
|
+
repeatedExcluded: number;
|
|
37
|
+
pendings: number;
|
|
38
|
+
bounces: number;
|
|
39
|
+
}
|
|
40
|
+
export interface ActivityOverTimeDashboard {
|
|
41
|
+
lastThreeMonths: ActivityOverTimeDetail[];
|
|
42
|
+
lastNinetyDays: ActivityOverTimeDetail[];
|
|
43
|
+
}
|
|
44
|
+
export interface ActivityOverTimeDetail {
|
|
45
|
+
name?: string;
|
|
46
|
+
date?: Date;
|
|
47
|
+
quantity: number;
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/Marketing/index.js
CHANGED