@cakemail-org/ui-components-v2 2.1.38 → 2.1.40
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.
- package/dist/cjs/factories/index.d.ts +1 -0
- package/dist/cjs/factories/lists/index.d.ts +9 -0
- package/dist/cjs/factories/suppressedEmails/index.d.ts +23 -0
- package/dist/cjs/factories/suppressedEmails/types.d.ts +4 -0
- package/dist/cjs/index.js +210 -2
- package/dist/cjs/services/index.d.ts +1 -0
- package/dist/cjs/services/lists/index.d.ts +8 -0
- package/dist/cjs/services/suppressedEmails/index.d.ts +17 -0
- package/dist/cjs/utils/posthog.d.ts +9 -2
- package/dist/esm/factories/index.d.ts +1 -0
- package/dist/esm/factories/lists/index.d.ts +9 -0
- package/dist/esm/factories/suppressedEmails/index.d.ts +23 -0
- package/dist/esm/factories/suppressedEmails/types.d.ts +4 -0
- package/dist/esm/index.js +202 -3
- package/dist/esm/services/index.d.ts +1 -0
- package/dist/esm/services/lists/index.d.ts +8 -0
- package/dist/esm/services/suppressedEmails/index.d.ts +17 -0
- package/dist/esm/utils/posthog.d.ts +9 -2
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TTaskDownload } from "../../models";
|
|
1
2
|
import { ListModel, TListLog, TListReport } from "../../models/list";
|
|
2
3
|
import { TGenericListLogsParams, TGenericListParams, TGenericListReturn } from "../../types";
|
|
3
4
|
export declare class ListsFactory {
|
|
@@ -11,5 +12,13 @@ export declare class ListsFactory {
|
|
|
11
12
|
static getLogs({ listId, ...options }: TGenericListLogsParams & {
|
|
12
13
|
listId: number;
|
|
13
14
|
}): Promise<TGenericListReturn<TListLog>>;
|
|
15
|
+
static downloadContactsExport({ listId, exportId }: {
|
|
16
|
+
listId: number;
|
|
17
|
+
exportId: string;
|
|
18
|
+
}): Promise<TTaskDownload>;
|
|
19
|
+
static downloadListLogExport({ listId, exportId }: {
|
|
20
|
+
listId: number;
|
|
21
|
+
exportId: string;
|
|
22
|
+
}): Promise<TTaskDownload>;
|
|
14
23
|
}
|
|
15
24
|
export * from "./types";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TTask, TTaskDownload } from "../..";
|
|
2
|
+
import { TDeleteApiResource, TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
|
|
3
|
+
import { TSuppressedEmail } from "./types";
|
|
4
|
+
export declare class SuppressedEmailsFactory {
|
|
5
|
+
static list({ ...options }: Omit<TGenericListParams, "sort">): Promise<TGenericListReturn<TSuppressedEmail>>;
|
|
6
|
+
static add({ email }: {
|
|
7
|
+
email: string;
|
|
8
|
+
}): Promise<{
|
|
9
|
+
email: string;
|
|
10
|
+
created: true;
|
|
11
|
+
}>;
|
|
12
|
+
static delete({ email }: {
|
|
13
|
+
email: string;
|
|
14
|
+
}): Promise<TDeleteApiResource>;
|
|
15
|
+
static createExport(): Promise<TGenericReturn<TTask>>;
|
|
16
|
+
static getExport({ exportId }: {
|
|
17
|
+
exportId: string;
|
|
18
|
+
}): Promise<TGenericReturn<TTask>>;
|
|
19
|
+
static downloadExport({ exportId }: {
|
|
20
|
+
exportId: string;
|
|
21
|
+
}): Promise<TGenericReturn<TTaskDownload>>;
|
|
22
|
+
}
|
|
23
|
+
export * from "./types";
|
package/dist/cjs/index.js
CHANGED
|
@@ -5246,8 +5246,6 @@ exports.EEvents = void 0;
|
|
|
5246
5246
|
EEvents["CONTACT_UNSUBSCRIBED"] = "Contact.Unsubscribed";
|
|
5247
5247
|
EEvents["CONTACT_SUPPRESSED"] = "Contact.Suppressed";
|
|
5248
5248
|
EEvents["CONTACT_UNSUPPRESSED"] = "Contact.Unsuppressed";
|
|
5249
|
-
EEvents["SUPPRESSED_EMAIL_EXPORT"] = "SuppressedEmailsReport.Export";
|
|
5250
|
-
EEvents["SUPPRESSED_EMAIL_EXPORT_DOWNLOAD"] = "SuppressedEmailsReport.Download";
|
|
5251
5249
|
EEvents["CONTACT_IMPORTED"] = "Contact.Imported";
|
|
5252
5250
|
EEvents["CONTACT_EXPORT"] = "Contact.Export";
|
|
5253
5251
|
EEvents["CONTACT_EXPORT_DOWNLOAD"] = "Contact.Export.Download";
|
|
@@ -5255,10 +5253,15 @@ exports.EEvents = void 0;
|
|
|
5255
5253
|
EEvents["CONTACT_UNTAGGED"] = "Contact.Untagged";
|
|
5256
5254
|
EEvents["CONTACT_INTERESTED"] = "Contact.Interested";
|
|
5257
5255
|
EEvents["CONTACT_UNINTERESTED"] = "Contact.Uninterested";
|
|
5256
|
+
EEvents["SUPPRESSED_EMAIL_EXPORT_CREATED"] = "SuppressedEmail.Export.Created";
|
|
5257
|
+
EEvents["SUPPRESSED_EMAIL_EXPORT_DOWNLOAD"] = "SuppressedEmail.Export.Download";
|
|
5258
|
+
EEvents["SUPPRESSED_EMAIL_DELETED"] = "SuppressedEmail.Deleted";
|
|
5259
|
+
EEvents["SUPPRESSED_EMAIL_ADDED"] = "SuppressedEmail.Added";
|
|
5258
5260
|
EEvents["LIST_CREATED"] = "List.Created";
|
|
5259
5261
|
EEvents["LIST_UPDATED"] = "List.Updated";
|
|
5260
5262
|
EEvents["LIST_DELETED"] = "List.Deleted";
|
|
5261
5263
|
EEvents["LIST_LOGS_EXPORT_CREATED"] = "ListLogsExport.Created";
|
|
5264
|
+
EEvents["LIST_LOGS_EXPORT_DOWNLOAD"] = "ListLogsExport.Download";
|
|
5262
5265
|
EEvents["SENDER_CREATED"] = "Sender.Created";
|
|
5263
5266
|
EEvents["SENDER_UPDATED"] = "Sender.Updated";
|
|
5264
5267
|
EEvents["SENDER_DELETED"] = "Sender.Deleted";
|
|
@@ -5302,6 +5305,10 @@ exports.EEvents = void 0;
|
|
|
5302
5305
|
EEvents["SEGMENT_DELETED"] = "Segment.Deleted";
|
|
5303
5306
|
EEvents["ACTION_BLOCKED"] = "Action.Blocked";
|
|
5304
5307
|
EEvents["BRAND_UPDATED"] = "Brand.Updated";
|
|
5308
|
+
EEvents["BRAND_CREATED"] = "Brand.Created";
|
|
5309
|
+
EEvents["BRAND_EMAIL_ENRICHED"] = "Brand.Email.Enriched";
|
|
5310
|
+
EEvents["BRAND_ORGANIZATION_ENRICHED"] = "Brand.Organization.Enriched";
|
|
5311
|
+
EEvents["BRAND_ENRICHED"] = "Brand.Enriched";
|
|
5305
5312
|
EEvents["BRAND_REPO"] = "BrandRepo.Redirection";
|
|
5306
5313
|
EEvents["BRAND_REPO_CANCELLED"] = "BrandRepo.Dialog.Cancelled";
|
|
5307
5314
|
EEvents["SUPPORT_REQUESTED"] = "Support.Requested";
|
|
@@ -10388,6 +10395,24 @@ function listListInterests(_a) {
|
|
|
10388
10395
|
},
|
|
10389
10396
|
});
|
|
10390
10397
|
}
|
|
10398
|
+
function downloadContactsExport(_a) {
|
|
10399
|
+
var listId = _a.listId, exportId = _a.exportId;
|
|
10400
|
+
return callApi({
|
|
10401
|
+
url: uiKitConfig.GATEWAY_PROXY + "/lists/".concat(listId, "/exports/").concat(exportId, "/download"),
|
|
10402
|
+
fetchOptions: {
|
|
10403
|
+
method: exports.EMethods.get,
|
|
10404
|
+
},
|
|
10405
|
+
});
|
|
10406
|
+
}
|
|
10407
|
+
function downloadListLogExport(_a) {
|
|
10408
|
+
var listId = _a.listId, exportId = _a.exportId;
|
|
10409
|
+
return callApi({
|
|
10410
|
+
url: uiKitConfig.GATEWAY_PROXY + "/logs/lists/".concat(listId, "/exports/").concat(exportId, "/download"),
|
|
10411
|
+
fetchOptions: {
|
|
10412
|
+
method: exports.EMethods.get,
|
|
10413
|
+
},
|
|
10414
|
+
});
|
|
10415
|
+
}
|
|
10391
10416
|
|
|
10392
10417
|
function listSenders(_a) {
|
|
10393
10418
|
var useImpersonationTree = _a.useImpersonationTree, options = __rest(_a, ["useImpersonationTree"]);
|
|
@@ -10410,6 +10435,63 @@ function getSender(_a) {
|
|
|
10410
10435
|
});
|
|
10411
10436
|
}
|
|
10412
10437
|
|
|
10438
|
+
function addSuppressedEmail(_a) {
|
|
10439
|
+
var email = _a.email;
|
|
10440
|
+
return callApi({
|
|
10441
|
+
url: uiKitConfig.GATEWAY_PROXY + "/suppressed-emails",
|
|
10442
|
+
fetchOptions: {
|
|
10443
|
+
method: exports.EMethods.post,
|
|
10444
|
+
body: { email: email }
|
|
10445
|
+
}
|
|
10446
|
+
});
|
|
10447
|
+
}
|
|
10448
|
+
function listSuppressedEmails(_a) {
|
|
10449
|
+
var options = __rest(_a, []);
|
|
10450
|
+
return callApi({
|
|
10451
|
+
url: uiKitConfig.GATEWAY_PROXY + "/suppressed-emails",
|
|
10452
|
+
query: camelCase(options),
|
|
10453
|
+
fetchOptions: {
|
|
10454
|
+
method: exports.EMethods.get,
|
|
10455
|
+
}
|
|
10456
|
+
});
|
|
10457
|
+
}
|
|
10458
|
+
function deleteSuppressedEmail(_a) {
|
|
10459
|
+
var email = _a.email;
|
|
10460
|
+
return callApi({
|
|
10461
|
+
url: uiKitConfig.GATEWAY_PROXY + "/suppressed-emails",
|
|
10462
|
+
fetchOptions: {
|
|
10463
|
+
method: exports.EMethods.delete,
|
|
10464
|
+
body: { email: email }
|
|
10465
|
+
}
|
|
10466
|
+
});
|
|
10467
|
+
}
|
|
10468
|
+
function createSuppressedEmailExport() {
|
|
10469
|
+
return callApi({
|
|
10470
|
+
url: uiKitConfig.GATEWAY_PROXY + "/reports/suppressed-emails-exports",
|
|
10471
|
+
fetchOptions: {
|
|
10472
|
+
method: exports.EMethods.post
|
|
10473
|
+
}
|
|
10474
|
+
});
|
|
10475
|
+
}
|
|
10476
|
+
function getSuppressedEmailExport(_a) {
|
|
10477
|
+
var exportId = _a.exportId;
|
|
10478
|
+
return callApi({
|
|
10479
|
+
url: uiKitConfig.GATEWAY_PROXY + "/reports/suppressed-emails-exports/" + exportId,
|
|
10480
|
+
fetchOptions: {
|
|
10481
|
+
method: exports.EMethods.get,
|
|
10482
|
+
}
|
|
10483
|
+
});
|
|
10484
|
+
}
|
|
10485
|
+
function downloadSuppressedEmailExport(_a) {
|
|
10486
|
+
var exportId = _a.exportId;
|
|
10487
|
+
return callApi({
|
|
10488
|
+
url: uiKitConfig.GATEWAY_PROXY + "/reports/suppressed-emails-exports/".concat(exportId, "/download"),
|
|
10489
|
+
fetchOptions: {
|
|
10490
|
+
method: exports.EMethods.get,
|
|
10491
|
+
}
|
|
10492
|
+
});
|
|
10493
|
+
}
|
|
10494
|
+
|
|
10413
10495
|
function listSystemEmails(_a) {
|
|
10414
10496
|
return callApi({
|
|
10415
10497
|
url: uiKitConfig.GATEWAY_PROXY + "/brands/default/system-emails",
|
|
@@ -10597,6 +10679,7 @@ var UserModel = /** @class */ (function () {
|
|
|
10597
10679
|
};
|
|
10598
10680
|
UserModel.prototype.update = function (user) {
|
|
10599
10681
|
return updateUser({ id: this.id, data: user || this.toJson() }).then(function (data) {
|
|
10682
|
+
trackEvent(exports.EEvents.USER_UPDATED);
|
|
10600
10683
|
return new UserModel(data.data);
|
|
10601
10684
|
});
|
|
10602
10685
|
};
|
|
@@ -16650,6 +16733,7 @@ var BrandsFactory = /** @class */ (function () {
|
|
|
16650
16733
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
16651
16734
|
var id = _b.id, _c = _b.brand, brand = _c === void 0 ? {} : _c, _d = _b.query, query = _d === void 0 ? {} : _d;
|
|
16652
16735
|
return __generator(this, function (_e) {
|
|
16736
|
+
trackEvent(exports.EEvents.BRAND_CREATED);
|
|
16653
16737
|
return [2 /*return*/, createBrand({ id: id, brand: brand, query: query })];
|
|
16654
16738
|
});
|
|
16655
16739
|
});
|
|
@@ -16658,6 +16742,7 @@ var BrandsFactory = /** @class */ (function () {
|
|
|
16658
16742
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
16659
16743
|
var email = _b.email;
|
|
16660
16744
|
return __generator(this, function (_c) {
|
|
16745
|
+
trackEvent(exports.EEvents.BRAND_EMAIL_ENRICHED);
|
|
16661
16746
|
return [2 /*return*/, enrichProfile({ email: email })];
|
|
16662
16747
|
});
|
|
16663
16748
|
});
|
|
@@ -16666,6 +16751,7 @@ var BrandsFactory = /** @class */ (function () {
|
|
|
16666
16751
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
16667
16752
|
var domain = _b.domain;
|
|
16668
16753
|
return __generator(this, function (_c) {
|
|
16754
|
+
trackEvent(exports.EEvents.BRAND_ORGANIZATION_ENRICHED);
|
|
16669
16755
|
return [2 /*return*/, enrichOrganization({ domain: domain })];
|
|
16670
16756
|
});
|
|
16671
16757
|
});
|
|
@@ -16674,6 +16760,7 @@ var BrandsFactory = /** @class */ (function () {
|
|
|
16674
16760
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
16675
16761
|
var domain = _b.domain;
|
|
16676
16762
|
return __generator(this, function (_c) {
|
|
16763
|
+
trackEvent(exports.EEvents.BRAND_ENRICHED);
|
|
16677
16764
|
return [2 /*return*/, enrichBrand({ domain: domain })];
|
|
16678
16765
|
});
|
|
16679
16766
|
});
|
|
@@ -17025,6 +17112,7 @@ var CampaignsFactory = /** @class */ (function () {
|
|
|
17025
17112
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17026
17113
|
var description = _b.description;
|
|
17027
17114
|
return __generator(this, function (_c) {
|
|
17115
|
+
trackEvent(exports.EEvents.CAMPAIGNS_REPORTS_EXPORT);
|
|
17028
17116
|
return [2 /*return*/, createCampaignsReportsExport({ description: description })];
|
|
17029
17117
|
});
|
|
17030
17118
|
});
|
|
@@ -17049,6 +17137,7 @@ var CampaignsFactory = /** @class */ (function () {
|
|
|
17049
17137
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17050
17138
|
var exportId = _b.exportId;
|
|
17051
17139
|
return __generator(this, function (_c) {
|
|
17140
|
+
trackEvent(exports.EEvents.CAMPAIGNS_REPORTS_EXPORT_DOWNLOAD);
|
|
17052
17141
|
return [2 /*return*/, downloadCampaignsReportsExport({ exportId: exportId })];
|
|
17053
17142
|
});
|
|
17054
17143
|
});
|
|
@@ -17641,6 +17730,11 @@ var FormsFactory = /** @class */ (function () {
|
|
|
17641
17730
|
var form = _b.form, type = _b.type;
|
|
17642
17731
|
return __generator(this, function (_c) {
|
|
17643
17732
|
return [2 /*return*/, createForm({ form: form, type: type }).then(function (data) {
|
|
17733
|
+
trackEvent(exports.EEvents.FORM_CREATED, {
|
|
17734
|
+
type: type,
|
|
17735
|
+
name: data.data.name,
|
|
17736
|
+
list_id: data.data.list_id
|
|
17737
|
+
});
|
|
17644
17738
|
if ("enabled" in data.data) {
|
|
17645
17739
|
return new EnhancedFormModel(data.data);
|
|
17646
17740
|
}
|
|
@@ -17654,6 +17748,7 @@ var FormsFactory = /** @class */ (function () {
|
|
|
17654
17748
|
var token = _b.token;
|
|
17655
17749
|
return __generator(this, function (_c) {
|
|
17656
17750
|
return [2 /*return*/, renderPublicHtmlForm({ token: token }).then(function (data) {
|
|
17751
|
+
trackEvent(exports.EEvents.FORM_RENDERED_PUBLISHED);
|
|
17657
17752
|
return data;
|
|
17658
17753
|
})];
|
|
17659
17754
|
});
|
|
@@ -17670,9 +17765,19 @@ var ListsFactory = /** @class */ (function () {
|
|
|
17670
17765
|
var options = __rest(_a, []);
|
|
17671
17766
|
return __generator(this, function (_b) {
|
|
17672
17767
|
return [2 /*return*/, listList(options).then(function (data) {
|
|
17768
|
+
var partial = {};
|
|
17673
17769
|
data.data = data.data.map(function (list) {
|
|
17770
|
+
partial[list.id] = {
|
|
17771
|
+
"name": list.name,
|
|
17772
|
+
"id": list.id,
|
|
17773
|
+
"status": list.status
|
|
17774
|
+
};
|
|
17674
17775
|
return new ListModel(list);
|
|
17675
17776
|
});
|
|
17777
|
+
addPartialInformation({
|
|
17778
|
+
data: partial,
|
|
17779
|
+
partialPoolStorageKey: exports.EPartialInfoPool.partialLists
|
|
17780
|
+
});
|
|
17676
17781
|
return data;
|
|
17677
17782
|
})];
|
|
17678
17783
|
});
|
|
@@ -17706,6 +17811,34 @@ var ListsFactory = /** @class */ (function () {
|
|
|
17706
17811
|
});
|
|
17707
17812
|
});
|
|
17708
17813
|
};
|
|
17814
|
+
ListsFactory.downloadContactsExport = function (_a) {
|
|
17815
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17816
|
+
var listId = _b.listId, exportId = _b.exportId;
|
|
17817
|
+
return __generator(this, function (_c) {
|
|
17818
|
+
return [2 /*return*/, downloadContactsExport({ listId: listId, exportId: exportId }).then(function (data) {
|
|
17819
|
+
trackEvent(exports.EEvents.CONTACT_EXPORT_DOWNLOAD, {
|
|
17820
|
+
list_id: listId,
|
|
17821
|
+
export_id: exportId
|
|
17822
|
+
});
|
|
17823
|
+
return data.data;
|
|
17824
|
+
})];
|
|
17825
|
+
});
|
|
17826
|
+
});
|
|
17827
|
+
};
|
|
17828
|
+
ListsFactory.downloadListLogExport = function (_a) {
|
|
17829
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17830
|
+
var listId = _b.listId, exportId = _b.exportId;
|
|
17831
|
+
return __generator(this, function (_c) {
|
|
17832
|
+
return [2 /*return*/, downloadListLogExport({ listId: listId, exportId: exportId }).then(function (data) {
|
|
17833
|
+
trackEvent(exports.EEvents.LIST_LOGS_EXPORT_DOWNLOAD, {
|
|
17834
|
+
list_id: listId,
|
|
17835
|
+
export_id: exportId
|
|
17836
|
+
});
|
|
17837
|
+
return data.data;
|
|
17838
|
+
})];
|
|
17839
|
+
});
|
|
17840
|
+
});
|
|
17841
|
+
};
|
|
17709
17842
|
return ListsFactory;
|
|
17710
17843
|
}());
|
|
17711
17844
|
|
|
@@ -17784,6 +17917,71 @@ var SupportFactory = /** @class */ (function () {
|
|
|
17784
17917
|
return SupportFactory;
|
|
17785
17918
|
}());
|
|
17786
17919
|
|
|
17920
|
+
var SuppressedEmailsFactory = /** @class */ (function () {
|
|
17921
|
+
function SuppressedEmailsFactory() {
|
|
17922
|
+
}
|
|
17923
|
+
SuppressedEmailsFactory.list = function (_a) {
|
|
17924
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17925
|
+
var options = __rest(_a, []);
|
|
17926
|
+
return __generator(this, function (_b) {
|
|
17927
|
+
return [2 /*return*/, listSuppressedEmails(__assign({}, options))];
|
|
17928
|
+
});
|
|
17929
|
+
});
|
|
17930
|
+
};
|
|
17931
|
+
SuppressedEmailsFactory.add = function (_a) {
|
|
17932
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17933
|
+
var email = _b.email;
|
|
17934
|
+
return __generator(this, function (_c) {
|
|
17935
|
+
return [2 /*return*/, addSuppressedEmail({ email: email }).then(function (data) {
|
|
17936
|
+
trackEvent(exports.EEvents.SUPPRESSED_EMAIL_ADDED, { email: email });
|
|
17937
|
+
return data;
|
|
17938
|
+
})];
|
|
17939
|
+
});
|
|
17940
|
+
});
|
|
17941
|
+
};
|
|
17942
|
+
SuppressedEmailsFactory.delete = function (_a) {
|
|
17943
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17944
|
+
var email = _b.email;
|
|
17945
|
+
return __generator(this, function (_c) {
|
|
17946
|
+
return [2 /*return*/, deleteSuppressedEmail({ email: email }).then(function (data) {
|
|
17947
|
+
trackEvent(exports.EEvents.SUPPRESSED_EMAIL_DELETED, { email: email });
|
|
17948
|
+
return data;
|
|
17949
|
+
})];
|
|
17950
|
+
});
|
|
17951
|
+
});
|
|
17952
|
+
};
|
|
17953
|
+
SuppressedEmailsFactory.createExport = function () {
|
|
17954
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17955
|
+
return __generator(this, function (_a) {
|
|
17956
|
+
return [2 /*return*/, createSuppressedEmailExport().then(function (data) {
|
|
17957
|
+
trackEvent(exports.EEvents.SUPPRESSED_EMAIL_EXPORT_CREATED);
|
|
17958
|
+
return data;
|
|
17959
|
+
})];
|
|
17960
|
+
});
|
|
17961
|
+
});
|
|
17962
|
+
};
|
|
17963
|
+
SuppressedEmailsFactory.getExport = function (_a) {
|
|
17964
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17965
|
+
var exportId = _b.exportId;
|
|
17966
|
+
return __generator(this, function (_c) {
|
|
17967
|
+
return [2 /*return*/, getSuppressedEmailExport({ exportId: exportId })];
|
|
17968
|
+
});
|
|
17969
|
+
});
|
|
17970
|
+
};
|
|
17971
|
+
SuppressedEmailsFactory.downloadExport = function (_a) {
|
|
17972
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17973
|
+
var exportId = _b.exportId;
|
|
17974
|
+
return __generator(this, function (_c) {
|
|
17975
|
+
return [2 /*return*/, downloadSuppressedEmailExport({ exportId: exportId }).then(function (data) {
|
|
17976
|
+
trackEvent(exports.EEvents.SUPPRESSED_EMAIL_EXPORT_DOWNLOAD, { exportId: exportId });
|
|
17977
|
+
return data;
|
|
17978
|
+
})];
|
|
17979
|
+
});
|
|
17980
|
+
});
|
|
17981
|
+
};
|
|
17982
|
+
return SuppressedEmailsFactory;
|
|
17983
|
+
}());
|
|
17984
|
+
|
|
17787
17985
|
var SystemEmailsFactory = /** @class */ (function () {
|
|
17788
17986
|
function SystemEmailsFactory() {
|
|
17789
17987
|
}
|
|
@@ -17856,6 +18054,7 @@ var TagsFactory = /** @class */ (function () {
|
|
|
17856
18054
|
var tag = _b.tag;
|
|
17857
18055
|
return __generator(this, function (_c) {
|
|
17858
18056
|
return [2 /*return*/, CreateTag({ tag: tag }).then(function (data) {
|
|
18057
|
+
trackEvent(exports.EEvents.TAG_CREATED, { tag: tag });
|
|
17859
18058
|
return data.data;
|
|
17860
18059
|
})];
|
|
17861
18060
|
});
|
|
@@ -18099,6 +18298,7 @@ exports.SideMenuItem = SideMenuItem;
|
|
|
18099
18298
|
exports.SubNav = SubNav;
|
|
18100
18299
|
exports.SummaryEnhancedFormModel = SummaryEnhancedFormModel;
|
|
18101
18300
|
exports.SupportFactory = SupportFactory;
|
|
18301
|
+
exports.SuppressedEmailsFactory = SuppressedEmailsFactory;
|
|
18102
18302
|
exports.SystemEmailsFactory = SystemEmailsFactory;
|
|
18103
18303
|
exports.SystemEmailsModel = SystemEmailsModel;
|
|
18104
18304
|
exports.TagsFactory = TagsFactory;
|
|
@@ -18115,6 +18315,7 @@ exports.UserModel = UserModel;
|
|
|
18115
18315
|
exports.UsersFactory = UsersFactory;
|
|
18116
18316
|
exports.acceptListPolicy = acceptListPolicy;
|
|
18117
18317
|
exports.addPartialInformation = addPartialInformation;
|
|
18318
|
+
exports.addSuppressedEmail = addSuppressedEmail;
|
|
18118
18319
|
exports.addToImpersonificationTree = addToImpersonificationTree;
|
|
18119
18320
|
exports.amIImpersonating = amIImpersonating;
|
|
18120
18321
|
exports.amILoggedInService = amILoggedInService;
|
|
@@ -18136,6 +18337,7 @@ exports.createCampaign = createCampaign;
|
|
|
18136
18337
|
exports.createCampaignLogsExports = createCampaignLogsExports;
|
|
18137
18338
|
exports.createCampaignsReportsExport = createCampaignsReportsExport;
|
|
18138
18339
|
exports.createForm = createForm;
|
|
18340
|
+
exports.createSuppressedEmailExport = createSuppressedEmailExport;
|
|
18139
18341
|
exports.createTemplate = createTemplate;
|
|
18140
18342
|
exports.deepMergeObject = deepMergeObject;
|
|
18141
18343
|
exports.deleteCampaign = deleteCampaign;
|
|
@@ -18143,12 +18345,16 @@ exports.deleteCampaignsReportsExport = deleteCampaignsReportsExport;
|
|
|
18143
18345
|
exports.deleteForm = deleteForm;
|
|
18144
18346
|
exports.deletePartialInformation = deletePartialInformation;
|
|
18145
18347
|
exports.deleteStorageItem = deleteStorageItem;
|
|
18348
|
+
exports.deleteSuppressedEmail = deleteSuppressedEmail;
|
|
18146
18349
|
exports.deleteTaskService = deleteTaskService;
|
|
18147
18350
|
exports.deleteTemplate = deleteTemplate;
|
|
18148
18351
|
exports.descendingComparator = descendingComparator;
|
|
18149
18352
|
exports.disableForm = disableForm;
|
|
18150
18353
|
exports.downloadCampaignLogExport = downloadCampaignLogExport;
|
|
18151
18354
|
exports.downloadCampaignsReportsExport = downloadCampaignsReportsExport;
|
|
18355
|
+
exports.downloadContactsExport = downloadContactsExport;
|
|
18356
|
+
exports.downloadListLogExport = downloadListLogExport;
|
|
18357
|
+
exports.downloadSuppressedEmailExport = downloadSuppressedEmailExport;
|
|
18152
18358
|
exports.emptyAccountAddress = emptyAccountAddress;
|
|
18153
18359
|
exports.emptyAccountLimits = emptyAccountLimits;
|
|
18154
18360
|
exports.enableForm = enableForm;
|
|
@@ -18200,6 +18406,7 @@ exports.getPropertyValue = getPropertyValue;
|
|
|
18200
18406
|
exports.getSender = getSender;
|
|
18201
18407
|
exports.getStartOfDate = getStartOfDate;
|
|
18202
18408
|
exports.getStorage = getStorage;
|
|
18409
|
+
exports.getSuppressedEmailExport = getSuppressedEmailExport;
|
|
18203
18410
|
exports.getTColor = getTColor;
|
|
18204
18411
|
exports.getTaskService = getTaskService;
|
|
18205
18412
|
exports.getTemplate = getTemplate;
|
|
@@ -18229,6 +18436,7 @@ exports.listList = listList;
|
|
|
18229
18436
|
exports.listListAttributes = listListAttributes;
|
|
18230
18437
|
exports.listListInterests = listListInterests;
|
|
18231
18438
|
exports.listSenders = listSenders;
|
|
18439
|
+
exports.listSuppressedEmails = listSuppressedEmails;
|
|
18232
18440
|
exports.listSystemEmails = listSystemEmails;
|
|
18233
18441
|
exports.listTasksService = listTasksService;
|
|
18234
18442
|
exports.listTemplates = listTemplates;
|
|
@@ -19,4 +19,12 @@ export declare function listListAttributes({ id, ...options }: TGenericListParam
|
|
|
19
19
|
export declare function listListInterests({ id, ...options }: TGenericListParams & {
|
|
20
20
|
id: number;
|
|
21
21
|
}): Promise<any>;
|
|
22
|
+
export declare function downloadContactsExport({ listId, exportId }: {
|
|
23
|
+
listId: number;
|
|
24
|
+
exportId: string;
|
|
25
|
+
}): Promise<any>;
|
|
26
|
+
export declare function downloadListLogExport({ listId, exportId }: {
|
|
27
|
+
listId: number;
|
|
28
|
+
exportId: string;
|
|
29
|
+
}): Promise<any>;
|
|
22
30
|
export * from "./types";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TSuppressedEmail } from "../../factories/suppressedEmails";
|
|
2
|
+
import { TTask, TTaskDownload } from "../../models";
|
|
3
|
+
import { TDeleteApiResource, TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
|
|
4
|
+
export declare function addSuppressedEmail({ email }: {
|
|
5
|
+
email: string;
|
|
6
|
+
}): Promise<any>;
|
|
7
|
+
export declare function listSuppressedEmails({ ...options }: Omit<TGenericListParams, "sort">): Promise<TGenericListReturn<TSuppressedEmail>>;
|
|
8
|
+
export declare function deleteSuppressedEmail({ email }: {
|
|
9
|
+
email: string;
|
|
10
|
+
}): Promise<TDeleteApiResource>;
|
|
11
|
+
export declare function createSuppressedEmailExport(): Promise<any>;
|
|
12
|
+
export declare function getSuppressedEmailExport({ exportId }: {
|
|
13
|
+
exportId: string;
|
|
14
|
+
}): Promise<TGenericReturn<TTask>>;
|
|
15
|
+
export declare function downloadSuppressedEmailExport({ exportId }: {
|
|
16
|
+
exportId: string;
|
|
17
|
+
}): Promise<TGenericReturn<TTaskDownload>>;
|
|
@@ -60,8 +60,6 @@ export declare enum EEvents {
|
|
|
60
60
|
CONTACT_UNSUBSCRIBED = "Contact.Unsubscribed",
|
|
61
61
|
CONTACT_SUPPRESSED = "Contact.Suppressed",
|
|
62
62
|
CONTACT_UNSUPPRESSED = "Contact.Unsuppressed",
|
|
63
|
-
SUPPRESSED_EMAIL_EXPORT = "SuppressedEmailsReport.Export",
|
|
64
|
-
SUPPRESSED_EMAIL_EXPORT_DOWNLOAD = "SuppressedEmailsReport.Download",
|
|
65
63
|
CONTACT_IMPORTED = "Contact.Imported",
|
|
66
64
|
CONTACT_EXPORT = "Contact.Export",
|
|
67
65
|
CONTACT_EXPORT_DOWNLOAD = "Contact.Export.Download",
|
|
@@ -69,10 +67,15 @@ export declare enum EEvents {
|
|
|
69
67
|
CONTACT_UNTAGGED = "Contact.Untagged",
|
|
70
68
|
CONTACT_INTERESTED = "Contact.Interested",
|
|
71
69
|
CONTACT_UNINTERESTED = "Contact.Uninterested",
|
|
70
|
+
SUPPRESSED_EMAIL_EXPORT_CREATED = "SuppressedEmail.Export.Created",
|
|
71
|
+
SUPPRESSED_EMAIL_EXPORT_DOWNLOAD = "SuppressedEmail.Export.Download",
|
|
72
|
+
SUPPRESSED_EMAIL_DELETED = "SuppressedEmail.Deleted",
|
|
73
|
+
SUPPRESSED_EMAIL_ADDED = "SuppressedEmail.Added",
|
|
72
74
|
LIST_CREATED = "List.Created",
|
|
73
75
|
LIST_UPDATED = "List.Updated",
|
|
74
76
|
LIST_DELETED = "List.Deleted",
|
|
75
77
|
LIST_LOGS_EXPORT_CREATED = "ListLogsExport.Created",
|
|
78
|
+
LIST_LOGS_EXPORT_DOWNLOAD = "ListLogsExport.Download",
|
|
76
79
|
SENDER_CREATED = "Sender.Created",
|
|
77
80
|
SENDER_UPDATED = "Sender.Updated",
|
|
78
81
|
SENDER_DELETED = "Sender.Deleted",
|
|
@@ -116,6 +119,10 @@ export declare enum EEvents {
|
|
|
116
119
|
SEGMENT_DELETED = "Segment.Deleted",
|
|
117
120
|
ACTION_BLOCKED = "Action.Blocked",
|
|
118
121
|
BRAND_UPDATED = "Brand.Updated",
|
|
122
|
+
BRAND_CREATED = "Brand.Created",
|
|
123
|
+
BRAND_EMAIL_ENRICHED = "Brand.Email.Enriched",
|
|
124
|
+
BRAND_ORGANIZATION_ENRICHED = "Brand.Organization.Enriched",
|
|
125
|
+
BRAND_ENRICHED = "Brand.Enriched",
|
|
119
126
|
BRAND_REPO = "BrandRepo.Redirection",
|
|
120
127
|
BRAND_REPO_CANCELLED = "BrandRepo.Dialog.Cancelled",
|
|
121
128
|
SUPPORT_REQUESTED = "Support.Requested",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TTaskDownload } from "../../models";
|
|
1
2
|
import { ListModel, TListLog, TListReport } from "../../models/list";
|
|
2
3
|
import { TGenericListLogsParams, TGenericListParams, TGenericListReturn } from "../../types";
|
|
3
4
|
export declare class ListsFactory {
|
|
@@ -11,5 +12,13 @@ export declare class ListsFactory {
|
|
|
11
12
|
static getLogs({ listId, ...options }: TGenericListLogsParams & {
|
|
12
13
|
listId: number;
|
|
13
14
|
}): Promise<TGenericListReturn<TListLog>>;
|
|
15
|
+
static downloadContactsExport({ listId, exportId }: {
|
|
16
|
+
listId: number;
|
|
17
|
+
exportId: string;
|
|
18
|
+
}): Promise<TTaskDownload>;
|
|
19
|
+
static downloadListLogExport({ listId, exportId }: {
|
|
20
|
+
listId: number;
|
|
21
|
+
exportId: string;
|
|
22
|
+
}): Promise<TTaskDownload>;
|
|
14
23
|
}
|
|
15
24
|
export * from "./types";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TTask, TTaskDownload } from "../..";
|
|
2
|
+
import { TDeleteApiResource, TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
|
|
3
|
+
import { TSuppressedEmail } from "./types";
|
|
4
|
+
export declare class SuppressedEmailsFactory {
|
|
5
|
+
static list({ ...options }: Omit<TGenericListParams, "sort">): Promise<TGenericListReturn<TSuppressedEmail>>;
|
|
6
|
+
static add({ email }: {
|
|
7
|
+
email: string;
|
|
8
|
+
}): Promise<{
|
|
9
|
+
email: string;
|
|
10
|
+
created: true;
|
|
11
|
+
}>;
|
|
12
|
+
static delete({ email }: {
|
|
13
|
+
email: string;
|
|
14
|
+
}): Promise<TDeleteApiResource>;
|
|
15
|
+
static createExport(): Promise<TGenericReturn<TTask>>;
|
|
16
|
+
static getExport({ exportId }: {
|
|
17
|
+
exportId: string;
|
|
18
|
+
}): Promise<TGenericReturn<TTask>>;
|
|
19
|
+
static downloadExport({ exportId }: {
|
|
20
|
+
exportId: string;
|
|
21
|
+
}): Promise<TGenericReturn<TTaskDownload>>;
|
|
22
|
+
}
|
|
23
|
+
export * from "./types";
|
package/dist/esm/index.js
CHANGED
|
@@ -5226,8 +5226,6 @@ var EEvents;
|
|
|
5226
5226
|
EEvents["CONTACT_UNSUBSCRIBED"] = "Contact.Unsubscribed";
|
|
5227
5227
|
EEvents["CONTACT_SUPPRESSED"] = "Contact.Suppressed";
|
|
5228
5228
|
EEvents["CONTACT_UNSUPPRESSED"] = "Contact.Unsuppressed";
|
|
5229
|
-
EEvents["SUPPRESSED_EMAIL_EXPORT"] = "SuppressedEmailsReport.Export";
|
|
5230
|
-
EEvents["SUPPRESSED_EMAIL_EXPORT_DOWNLOAD"] = "SuppressedEmailsReport.Download";
|
|
5231
5229
|
EEvents["CONTACT_IMPORTED"] = "Contact.Imported";
|
|
5232
5230
|
EEvents["CONTACT_EXPORT"] = "Contact.Export";
|
|
5233
5231
|
EEvents["CONTACT_EXPORT_DOWNLOAD"] = "Contact.Export.Download";
|
|
@@ -5235,10 +5233,15 @@ var EEvents;
|
|
|
5235
5233
|
EEvents["CONTACT_UNTAGGED"] = "Contact.Untagged";
|
|
5236
5234
|
EEvents["CONTACT_INTERESTED"] = "Contact.Interested";
|
|
5237
5235
|
EEvents["CONTACT_UNINTERESTED"] = "Contact.Uninterested";
|
|
5236
|
+
EEvents["SUPPRESSED_EMAIL_EXPORT_CREATED"] = "SuppressedEmail.Export.Created";
|
|
5237
|
+
EEvents["SUPPRESSED_EMAIL_EXPORT_DOWNLOAD"] = "SuppressedEmail.Export.Download";
|
|
5238
|
+
EEvents["SUPPRESSED_EMAIL_DELETED"] = "SuppressedEmail.Deleted";
|
|
5239
|
+
EEvents["SUPPRESSED_EMAIL_ADDED"] = "SuppressedEmail.Added";
|
|
5238
5240
|
EEvents["LIST_CREATED"] = "List.Created";
|
|
5239
5241
|
EEvents["LIST_UPDATED"] = "List.Updated";
|
|
5240
5242
|
EEvents["LIST_DELETED"] = "List.Deleted";
|
|
5241
5243
|
EEvents["LIST_LOGS_EXPORT_CREATED"] = "ListLogsExport.Created";
|
|
5244
|
+
EEvents["LIST_LOGS_EXPORT_DOWNLOAD"] = "ListLogsExport.Download";
|
|
5242
5245
|
EEvents["SENDER_CREATED"] = "Sender.Created";
|
|
5243
5246
|
EEvents["SENDER_UPDATED"] = "Sender.Updated";
|
|
5244
5247
|
EEvents["SENDER_DELETED"] = "Sender.Deleted";
|
|
@@ -5282,6 +5285,10 @@ var EEvents;
|
|
|
5282
5285
|
EEvents["SEGMENT_DELETED"] = "Segment.Deleted";
|
|
5283
5286
|
EEvents["ACTION_BLOCKED"] = "Action.Blocked";
|
|
5284
5287
|
EEvents["BRAND_UPDATED"] = "Brand.Updated";
|
|
5288
|
+
EEvents["BRAND_CREATED"] = "Brand.Created";
|
|
5289
|
+
EEvents["BRAND_EMAIL_ENRICHED"] = "Brand.Email.Enriched";
|
|
5290
|
+
EEvents["BRAND_ORGANIZATION_ENRICHED"] = "Brand.Organization.Enriched";
|
|
5291
|
+
EEvents["BRAND_ENRICHED"] = "Brand.Enriched";
|
|
5285
5292
|
EEvents["BRAND_REPO"] = "BrandRepo.Redirection";
|
|
5286
5293
|
EEvents["BRAND_REPO_CANCELLED"] = "BrandRepo.Dialog.Cancelled";
|
|
5287
5294
|
EEvents["SUPPORT_REQUESTED"] = "Support.Requested";
|
|
@@ -10368,6 +10375,24 @@ function listListInterests(_a) {
|
|
|
10368
10375
|
},
|
|
10369
10376
|
});
|
|
10370
10377
|
}
|
|
10378
|
+
function downloadContactsExport(_a) {
|
|
10379
|
+
var listId = _a.listId, exportId = _a.exportId;
|
|
10380
|
+
return callApi({
|
|
10381
|
+
url: uiKitConfig.GATEWAY_PROXY + "/lists/".concat(listId, "/exports/").concat(exportId, "/download"),
|
|
10382
|
+
fetchOptions: {
|
|
10383
|
+
method: EMethods.get,
|
|
10384
|
+
},
|
|
10385
|
+
});
|
|
10386
|
+
}
|
|
10387
|
+
function downloadListLogExport(_a) {
|
|
10388
|
+
var listId = _a.listId, exportId = _a.exportId;
|
|
10389
|
+
return callApi({
|
|
10390
|
+
url: uiKitConfig.GATEWAY_PROXY + "/logs/lists/".concat(listId, "/exports/").concat(exportId, "/download"),
|
|
10391
|
+
fetchOptions: {
|
|
10392
|
+
method: EMethods.get,
|
|
10393
|
+
},
|
|
10394
|
+
});
|
|
10395
|
+
}
|
|
10371
10396
|
|
|
10372
10397
|
function listSenders(_a) {
|
|
10373
10398
|
var useImpersonationTree = _a.useImpersonationTree, options = __rest(_a, ["useImpersonationTree"]);
|
|
@@ -10390,6 +10415,63 @@ function getSender(_a) {
|
|
|
10390
10415
|
});
|
|
10391
10416
|
}
|
|
10392
10417
|
|
|
10418
|
+
function addSuppressedEmail(_a) {
|
|
10419
|
+
var email = _a.email;
|
|
10420
|
+
return callApi({
|
|
10421
|
+
url: uiKitConfig.GATEWAY_PROXY + "/suppressed-emails",
|
|
10422
|
+
fetchOptions: {
|
|
10423
|
+
method: EMethods.post,
|
|
10424
|
+
body: { email: email }
|
|
10425
|
+
}
|
|
10426
|
+
});
|
|
10427
|
+
}
|
|
10428
|
+
function listSuppressedEmails(_a) {
|
|
10429
|
+
var options = __rest(_a, []);
|
|
10430
|
+
return callApi({
|
|
10431
|
+
url: uiKitConfig.GATEWAY_PROXY + "/suppressed-emails",
|
|
10432
|
+
query: camelCase(options),
|
|
10433
|
+
fetchOptions: {
|
|
10434
|
+
method: EMethods.get,
|
|
10435
|
+
}
|
|
10436
|
+
});
|
|
10437
|
+
}
|
|
10438
|
+
function deleteSuppressedEmail(_a) {
|
|
10439
|
+
var email = _a.email;
|
|
10440
|
+
return callApi({
|
|
10441
|
+
url: uiKitConfig.GATEWAY_PROXY + "/suppressed-emails",
|
|
10442
|
+
fetchOptions: {
|
|
10443
|
+
method: EMethods.delete,
|
|
10444
|
+
body: { email: email }
|
|
10445
|
+
}
|
|
10446
|
+
});
|
|
10447
|
+
}
|
|
10448
|
+
function createSuppressedEmailExport() {
|
|
10449
|
+
return callApi({
|
|
10450
|
+
url: uiKitConfig.GATEWAY_PROXY + "/reports/suppressed-emails-exports",
|
|
10451
|
+
fetchOptions: {
|
|
10452
|
+
method: EMethods.post
|
|
10453
|
+
}
|
|
10454
|
+
});
|
|
10455
|
+
}
|
|
10456
|
+
function getSuppressedEmailExport(_a) {
|
|
10457
|
+
var exportId = _a.exportId;
|
|
10458
|
+
return callApi({
|
|
10459
|
+
url: uiKitConfig.GATEWAY_PROXY + "/reports/suppressed-emails-exports/" + exportId,
|
|
10460
|
+
fetchOptions: {
|
|
10461
|
+
method: EMethods.get,
|
|
10462
|
+
}
|
|
10463
|
+
});
|
|
10464
|
+
}
|
|
10465
|
+
function downloadSuppressedEmailExport(_a) {
|
|
10466
|
+
var exportId = _a.exportId;
|
|
10467
|
+
return callApi({
|
|
10468
|
+
url: uiKitConfig.GATEWAY_PROXY + "/reports/suppressed-emails-exports/".concat(exportId, "/download"),
|
|
10469
|
+
fetchOptions: {
|
|
10470
|
+
method: EMethods.get,
|
|
10471
|
+
}
|
|
10472
|
+
});
|
|
10473
|
+
}
|
|
10474
|
+
|
|
10393
10475
|
function listSystemEmails(_a) {
|
|
10394
10476
|
return callApi({
|
|
10395
10477
|
url: uiKitConfig.GATEWAY_PROXY + "/brands/default/system-emails",
|
|
@@ -10577,6 +10659,7 @@ var UserModel = /** @class */ (function () {
|
|
|
10577
10659
|
};
|
|
10578
10660
|
UserModel.prototype.update = function (user) {
|
|
10579
10661
|
return updateUser({ id: this.id, data: user || this.toJson() }).then(function (data) {
|
|
10662
|
+
trackEvent(EEvents.USER_UPDATED);
|
|
10580
10663
|
return new UserModel(data.data);
|
|
10581
10664
|
});
|
|
10582
10665
|
};
|
|
@@ -16630,6 +16713,7 @@ var BrandsFactory = /** @class */ (function () {
|
|
|
16630
16713
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
16631
16714
|
var id = _b.id, _c = _b.brand, brand = _c === void 0 ? {} : _c, _d = _b.query, query = _d === void 0 ? {} : _d;
|
|
16632
16715
|
return __generator(this, function (_e) {
|
|
16716
|
+
trackEvent(EEvents.BRAND_CREATED);
|
|
16633
16717
|
return [2 /*return*/, createBrand({ id: id, brand: brand, query: query })];
|
|
16634
16718
|
});
|
|
16635
16719
|
});
|
|
@@ -16638,6 +16722,7 @@ var BrandsFactory = /** @class */ (function () {
|
|
|
16638
16722
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
16639
16723
|
var email = _b.email;
|
|
16640
16724
|
return __generator(this, function (_c) {
|
|
16725
|
+
trackEvent(EEvents.BRAND_EMAIL_ENRICHED);
|
|
16641
16726
|
return [2 /*return*/, enrichProfile({ email: email })];
|
|
16642
16727
|
});
|
|
16643
16728
|
});
|
|
@@ -16646,6 +16731,7 @@ var BrandsFactory = /** @class */ (function () {
|
|
|
16646
16731
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
16647
16732
|
var domain = _b.domain;
|
|
16648
16733
|
return __generator(this, function (_c) {
|
|
16734
|
+
trackEvent(EEvents.BRAND_ORGANIZATION_ENRICHED);
|
|
16649
16735
|
return [2 /*return*/, enrichOrganization({ domain: domain })];
|
|
16650
16736
|
});
|
|
16651
16737
|
});
|
|
@@ -16654,6 +16740,7 @@ var BrandsFactory = /** @class */ (function () {
|
|
|
16654
16740
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
16655
16741
|
var domain = _b.domain;
|
|
16656
16742
|
return __generator(this, function (_c) {
|
|
16743
|
+
trackEvent(EEvents.BRAND_ENRICHED);
|
|
16657
16744
|
return [2 /*return*/, enrichBrand({ domain: domain })];
|
|
16658
16745
|
});
|
|
16659
16746
|
});
|
|
@@ -17005,6 +17092,7 @@ var CampaignsFactory = /** @class */ (function () {
|
|
|
17005
17092
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17006
17093
|
var description = _b.description;
|
|
17007
17094
|
return __generator(this, function (_c) {
|
|
17095
|
+
trackEvent(EEvents.CAMPAIGNS_REPORTS_EXPORT);
|
|
17008
17096
|
return [2 /*return*/, createCampaignsReportsExport({ description: description })];
|
|
17009
17097
|
});
|
|
17010
17098
|
});
|
|
@@ -17029,6 +17117,7 @@ var CampaignsFactory = /** @class */ (function () {
|
|
|
17029
17117
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17030
17118
|
var exportId = _b.exportId;
|
|
17031
17119
|
return __generator(this, function (_c) {
|
|
17120
|
+
trackEvent(EEvents.CAMPAIGNS_REPORTS_EXPORT_DOWNLOAD);
|
|
17032
17121
|
return [2 /*return*/, downloadCampaignsReportsExport({ exportId: exportId })];
|
|
17033
17122
|
});
|
|
17034
17123
|
});
|
|
@@ -17621,6 +17710,11 @@ var FormsFactory = /** @class */ (function () {
|
|
|
17621
17710
|
var form = _b.form, type = _b.type;
|
|
17622
17711
|
return __generator(this, function (_c) {
|
|
17623
17712
|
return [2 /*return*/, createForm({ form: form, type: type }).then(function (data) {
|
|
17713
|
+
trackEvent(EEvents.FORM_CREATED, {
|
|
17714
|
+
type: type,
|
|
17715
|
+
name: data.data.name,
|
|
17716
|
+
list_id: data.data.list_id
|
|
17717
|
+
});
|
|
17624
17718
|
if ("enabled" in data.data) {
|
|
17625
17719
|
return new EnhancedFormModel(data.data);
|
|
17626
17720
|
}
|
|
@@ -17634,6 +17728,7 @@ var FormsFactory = /** @class */ (function () {
|
|
|
17634
17728
|
var token = _b.token;
|
|
17635
17729
|
return __generator(this, function (_c) {
|
|
17636
17730
|
return [2 /*return*/, renderPublicHtmlForm({ token: token }).then(function (data) {
|
|
17731
|
+
trackEvent(EEvents.FORM_RENDERED_PUBLISHED);
|
|
17637
17732
|
return data;
|
|
17638
17733
|
})];
|
|
17639
17734
|
});
|
|
@@ -17650,9 +17745,19 @@ var ListsFactory = /** @class */ (function () {
|
|
|
17650
17745
|
var options = __rest(_a, []);
|
|
17651
17746
|
return __generator(this, function (_b) {
|
|
17652
17747
|
return [2 /*return*/, listList(options).then(function (data) {
|
|
17748
|
+
var partial = {};
|
|
17653
17749
|
data.data = data.data.map(function (list) {
|
|
17750
|
+
partial[list.id] = {
|
|
17751
|
+
"name": list.name,
|
|
17752
|
+
"id": list.id,
|
|
17753
|
+
"status": list.status
|
|
17754
|
+
};
|
|
17654
17755
|
return new ListModel(list);
|
|
17655
17756
|
});
|
|
17757
|
+
addPartialInformation({
|
|
17758
|
+
data: partial,
|
|
17759
|
+
partialPoolStorageKey: EPartialInfoPool.partialLists
|
|
17760
|
+
});
|
|
17656
17761
|
return data;
|
|
17657
17762
|
})];
|
|
17658
17763
|
});
|
|
@@ -17686,6 +17791,34 @@ var ListsFactory = /** @class */ (function () {
|
|
|
17686
17791
|
});
|
|
17687
17792
|
});
|
|
17688
17793
|
};
|
|
17794
|
+
ListsFactory.downloadContactsExport = function (_a) {
|
|
17795
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17796
|
+
var listId = _b.listId, exportId = _b.exportId;
|
|
17797
|
+
return __generator(this, function (_c) {
|
|
17798
|
+
return [2 /*return*/, downloadContactsExport({ listId: listId, exportId: exportId }).then(function (data) {
|
|
17799
|
+
trackEvent(EEvents.CONTACT_EXPORT_DOWNLOAD, {
|
|
17800
|
+
list_id: listId,
|
|
17801
|
+
export_id: exportId
|
|
17802
|
+
});
|
|
17803
|
+
return data.data;
|
|
17804
|
+
})];
|
|
17805
|
+
});
|
|
17806
|
+
});
|
|
17807
|
+
};
|
|
17808
|
+
ListsFactory.downloadListLogExport = function (_a) {
|
|
17809
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17810
|
+
var listId = _b.listId, exportId = _b.exportId;
|
|
17811
|
+
return __generator(this, function (_c) {
|
|
17812
|
+
return [2 /*return*/, downloadListLogExport({ listId: listId, exportId: exportId }).then(function (data) {
|
|
17813
|
+
trackEvent(EEvents.LIST_LOGS_EXPORT_DOWNLOAD, {
|
|
17814
|
+
list_id: listId,
|
|
17815
|
+
export_id: exportId
|
|
17816
|
+
});
|
|
17817
|
+
return data.data;
|
|
17818
|
+
})];
|
|
17819
|
+
});
|
|
17820
|
+
});
|
|
17821
|
+
};
|
|
17689
17822
|
return ListsFactory;
|
|
17690
17823
|
}());
|
|
17691
17824
|
|
|
@@ -17764,6 +17897,71 @@ var SupportFactory = /** @class */ (function () {
|
|
|
17764
17897
|
return SupportFactory;
|
|
17765
17898
|
}());
|
|
17766
17899
|
|
|
17900
|
+
var SuppressedEmailsFactory = /** @class */ (function () {
|
|
17901
|
+
function SuppressedEmailsFactory() {
|
|
17902
|
+
}
|
|
17903
|
+
SuppressedEmailsFactory.list = function (_a) {
|
|
17904
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17905
|
+
var options = __rest(_a, []);
|
|
17906
|
+
return __generator(this, function (_b) {
|
|
17907
|
+
return [2 /*return*/, listSuppressedEmails(__assign({}, options))];
|
|
17908
|
+
});
|
|
17909
|
+
});
|
|
17910
|
+
};
|
|
17911
|
+
SuppressedEmailsFactory.add = function (_a) {
|
|
17912
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17913
|
+
var email = _b.email;
|
|
17914
|
+
return __generator(this, function (_c) {
|
|
17915
|
+
return [2 /*return*/, addSuppressedEmail({ email: email }).then(function (data) {
|
|
17916
|
+
trackEvent(EEvents.SUPPRESSED_EMAIL_ADDED, { email: email });
|
|
17917
|
+
return data;
|
|
17918
|
+
})];
|
|
17919
|
+
});
|
|
17920
|
+
});
|
|
17921
|
+
};
|
|
17922
|
+
SuppressedEmailsFactory.delete = function (_a) {
|
|
17923
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17924
|
+
var email = _b.email;
|
|
17925
|
+
return __generator(this, function (_c) {
|
|
17926
|
+
return [2 /*return*/, deleteSuppressedEmail({ email: email }).then(function (data) {
|
|
17927
|
+
trackEvent(EEvents.SUPPRESSED_EMAIL_DELETED, { email: email });
|
|
17928
|
+
return data;
|
|
17929
|
+
})];
|
|
17930
|
+
});
|
|
17931
|
+
});
|
|
17932
|
+
};
|
|
17933
|
+
SuppressedEmailsFactory.createExport = function () {
|
|
17934
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17935
|
+
return __generator(this, function (_a) {
|
|
17936
|
+
return [2 /*return*/, createSuppressedEmailExport().then(function (data) {
|
|
17937
|
+
trackEvent(EEvents.SUPPRESSED_EMAIL_EXPORT_CREATED);
|
|
17938
|
+
return data;
|
|
17939
|
+
})];
|
|
17940
|
+
});
|
|
17941
|
+
});
|
|
17942
|
+
};
|
|
17943
|
+
SuppressedEmailsFactory.getExport = function (_a) {
|
|
17944
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17945
|
+
var exportId = _b.exportId;
|
|
17946
|
+
return __generator(this, function (_c) {
|
|
17947
|
+
return [2 /*return*/, getSuppressedEmailExport({ exportId: exportId })];
|
|
17948
|
+
});
|
|
17949
|
+
});
|
|
17950
|
+
};
|
|
17951
|
+
SuppressedEmailsFactory.downloadExport = function (_a) {
|
|
17952
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17953
|
+
var exportId = _b.exportId;
|
|
17954
|
+
return __generator(this, function (_c) {
|
|
17955
|
+
return [2 /*return*/, downloadSuppressedEmailExport({ exportId: exportId }).then(function (data) {
|
|
17956
|
+
trackEvent(EEvents.SUPPRESSED_EMAIL_EXPORT_DOWNLOAD, { exportId: exportId });
|
|
17957
|
+
return data;
|
|
17958
|
+
})];
|
|
17959
|
+
});
|
|
17960
|
+
});
|
|
17961
|
+
};
|
|
17962
|
+
return SuppressedEmailsFactory;
|
|
17963
|
+
}());
|
|
17964
|
+
|
|
17767
17965
|
var SystemEmailsFactory = /** @class */ (function () {
|
|
17768
17966
|
function SystemEmailsFactory() {
|
|
17769
17967
|
}
|
|
@@ -17836,6 +18034,7 @@ var TagsFactory = /** @class */ (function () {
|
|
|
17836
18034
|
var tag = _b.tag;
|
|
17837
18035
|
return __generator(this, function (_c) {
|
|
17838
18036
|
return [2 /*return*/, CreateTag({ tag: tag }).then(function (data) {
|
|
18037
|
+
trackEvent(EEvents.TAG_CREATED, { tag: tag });
|
|
17839
18038
|
return data.data;
|
|
17840
18039
|
})];
|
|
17841
18040
|
});
|
|
@@ -17991,4 +18190,4 @@ var UsersFactory = /** @class */ (function () {
|
|
|
17991
18190
|
return UsersFactory;
|
|
17992
18191
|
}());
|
|
17993
18192
|
|
|
17994
|
-
export { AccountModel, AccountsFactory, ActionBarContainer, ActionBarContainerHandler, AssetManager, AutomationsFactory, Avatar, BillingFactory, BrandWrapper, BrandsFactory, Button, ButtonMenu, CampaignModel, CampaignsFactory, Checkbox, Chip, CircularProgress, CodeInput, ColManager, ColorTextField, CommonFormModel, ContactModel, ContactsFactory, ContentSectionContainer, CopyToClipboard, CountryDropdown, CustomerModel, DataTable, DataTableHead, DataTableRow, DateCalendar, DatePicker, DateTimeCalendar, DateTimePicker, Dialog, DialogActions, DialogHandler, DialogTitle, Divider, Drawer, DrawerHandler, DropMenu, Dropdown, EApiLanguages, EAssetManagerMatchType, ECampaignStatuses, EEMailSummaryStatuses, EEditorType, EEmailAttachementTypes, EEmailLogType, EEmailLogTypeParam, EEmailProviders, EEmailSummaryEngagement, EEvents, EListAttributeType, EMethods, EOperatorTypes, EPartialInfoPool, EStorageType, ETaskType, ElementContains, Email, EmailAPIFactory, EmptyContent, EnhancedFormModel, FileUpload, FilterBar, FormModel, FormsFactory, FullBar, GenericWrapper, GenericWrapperContext, GroupedActions, Header, Icon, IconPill, InformationGroup, InlineTextEdit, LinearProgress, Link, ListCampaignModel, ListModel, ListTemplateModel, ListsFactory, LoadingContainer, LocationTextField, Logo, MD5, MetricCard, Modal, ModalHandler, ModalHeading, OverlayHandler, PhoneTextField, Radio, ResourceEdit, Search, SenderModel, SendersFactory, SideMenu, SideMenuContainer, SideMenuItem, SubNav, SummaryEnhancedFormModel, SupportFactory, SystemEmailsFactory, SystemEmailsModel, TagsFactory, TasksFactory, TemplateModel, TemplatesFactory, TextField, TimePicker, TimeSelector, Toggle, TopMenu, Typography, UserModel, UsersFactory, acceptListPolicy, addPartialInformation, addToImpersonificationTree, amIImpersonating, amILoggedInService, archiveCampaign, areAllPropertiesEmpty, buildMUITheme, callApi, camelCase, camelToSnakeCase, cancelCampaign, capitalizeFirstLetter, cleanPostHogId, clearImpersonificationTree, clearStorage, connectToZendeskSupportService, createAccount, createBrand, createCampaign, createCampaignLogsExports, createCampaignsReportsExport, createForm, createTemplate, deepMergeObject, deleteCampaign, deleteCampaignsReportsExport, deleteForm, deletePartialInformation, deleteStorageItem, deleteTaskService, deleteTemplate, descendingComparator, disableForm, downloadCampaignLogExport, downloadCampaignsReportsExport, emptyAccountAddress, emptyAccountLimits, enableForm, enrichBrand, enrichOrganization, enrichProfile, eventCondition, eventIdentify, eventLogout, fetchRetry, fetchRoute, findNestedProperty, formatNumber, getAccount, getAccountReport, getAdjustedBillingCycle, getBeeTokenService, getBestLocalMatch, getBrand, getBrandService, getBrandUrl, getCalendarFormat, getCampaign, getCampaignLinks, getCampaignLinksReport, getCampaignLogs, getCampaignLogsExports, getCampaignReport, getCampaignRevisions, getCampaignsReportsExport, getComparator, getCustomerProfile, getDate, getDomainFromEmail, getDomainsFromEmails, getDomainsService, getEmail, getEmailActivitySummary, getEmailReport, getEndOfDate, getForm, getHashQueryWithoutHistory, getIconSize, getList, getListLogs, getListReport, getNestedProperty, getPropertyValue, getSender, getStartOfDate, getStorage, getTColor, getTaskService, getTemplate, getUnixTime, getUrlQueryParam, getUser, getUtmCookies, googlePlacesMapper, hasDecimal, impersonateService, initFieldValidation, initPostHog, isColorLight, isDomainValidService, isSimpleType, isValidEmail, isValidString, isValidUrl, lisTEmailTags, listAccounts, listCampaigns, listCampaignsReportsExports, listContacts, listEmailLogs, listForms, listList, listListAttributes, listListInterests, listSenders, listSystemEmails, listTasksService, listTemplates, listUsers, logOutService, loginService, miliToSecond, modelSet, modelToJson, originalBrand, patchForm, popImpersonificationTree, postMessage, publishForm, reScheduleCampaign, removeEmptyProperties, removeQueryParams, removeTrailingChar, renderCampaign, renderForm, renderPublicHtmlForm, renderTemplate, requestSupportService, resumeCampaign, scheduleCampaign, searchCustomerProfiles, sendCampaignTest, setBrandHeadElements, setStorage, shareTemplate, splitArray, splitObject, stableSort, startPromisePool, suspendCampaign, trackEvent, truncateEmail, truncateText, uiKitConfig, unArchiveCampaign, unScheduleCampaign, unshareTemplate, updateAccount, updateAndClearUrlParams, updateCampaign, updateSystemEmails, updateTemplate, updateUser, validateColor, validateEmail, validateGenericInput, validateUrl, wait, whiteLabelBrand, whoAmi };
|
|
18193
|
+
export { AccountModel, AccountsFactory, ActionBarContainer, ActionBarContainerHandler, AssetManager, AutomationsFactory, Avatar, BillingFactory, BrandWrapper, BrandsFactory, Button, ButtonMenu, CampaignModel, CampaignsFactory, Checkbox, Chip, CircularProgress, CodeInput, ColManager, ColorTextField, CommonFormModel, ContactModel, ContactsFactory, ContentSectionContainer, CopyToClipboard, CountryDropdown, CustomerModel, DataTable, DataTableHead, DataTableRow, DateCalendar, DatePicker, DateTimeCalendar, DateTimePicker, Dialog, DialogActions, DialogHandler, DialogTitle, Divider, Drawer, DrawerHandler, DropMenu, Dropdown, EApiLanguages, EAssetManagerMatchType, ECampaignStatuses, EEMailSummaryStatuses, EEditorType, EEmailAttachementTypes, EEmailLogType, EEmailLogTypeParam, EEmailProviders, EEmailSummaryEngagement, EEvents, EListAttributeType, EMethods, EOperatorTypes, EPartialInfoPool, EStorageType, ETaskType, ElementContains, Email, EmailAPIFactory, EmptyContent, EnhancedFormModel, FileUpload, FilterBar, FormModel, FormsFactory, FullBar, GenericWrapper, GenericWrapperContext, GroupedActions, Header, Icon, IconPill, InformationGroup, InlineTextEdit, LinearProgress, Link, ListCampaignModel, ListModel, ListTemplateModel, ListsFactory, LoadingContainer, LocationTextField, Logo, MD5, MetricCard, Modal, ModalHandler, ModalHeading, OverlayHandler, PhoneTextField, Radio, ResourceEdit, Search, SenderModel, SendersFactory, SideMenu, SideMenuContainer, SideMenuItem, SubNav, SummaryEnhancedFormModel, SupportFactory, SuppressedEmailsFactory, SystemEmailsFactory, SystemEmailsModel, TagsFactory, TasksFactory, TemplateModel, TemplatesFactory, TextField, TimePicker, TimeSelector, Toggle, TopMenu, Typography, UserModel, UsersFactory, acceptListPolicy, addPartialInformation, addSuppressedEmail, addToImpersonificationTree, amIImpersonating, amILoggedInService, archiveCampaign, areAllPropertiesEmpty, buildMUITheme, callApi, camelCase, camelToSnakeCase, cancelCampaign, capitalizeFirstLetter, cleanPostHogId, clearImpersonificationTree, clearStorage, connectToZendeskSupportService, createAccount, createBrand, createCampaign, createCampaignLogsExports, createCampaignsReportsExport, createForm, createSuppressedEmailExport, createTemplate, deepMergeObject, deleteCampaign, deleteCampaignsReportsExport, deleteForm, deletePartialInformation, deleteStorageItem, deleteSuppressedEmail, deleteTaskService, deleteTemplate, descendingComparator, disableForm, downloadCampaignLogExport, downloadCampaignsReportsExport, downloadContactsExport, downloadListLogExport, downloadSuppressedEmailExport, emptyAccountAddress, emptyAccountLimits, enableForm, enrichBrand, enrichOrganization, enrichProfile, eventCondition, eventIdentify, eventLogout, fetchRetry, fetchRoute, findNestedProperty, formatNumber, getAccount, getAccountReport, getAdjustedBillingCycle, getBeeTokenService, getBestLocalMatch, getBrand, getBrandService, getBrandUrl, getCalendarFormat, getCampaign, getCampaignLinks, getCampaignLinksReport, getCampaignLogs, getCampaignLogsExports, getCampaignReport, getCampaignRevisions, getCampaignsReportsExport, getComparator, getCustomerProfile, getDate, getDomainFromEmail, getDomainsFromEmails, getDomainsService, getEmail, getEmailActivitySummary, getEmailReport, getEndOfDate, getForm, getHashQueryWithoutHistory, getIconSize, getList, getListLogs, getListReport, getNestedProperty, getPropertyValue, getSender, getStartOfDate, getStorage, getSuppressedEmailExport, getTColor, getTaskService, getTemplate, getUnixTime, getUrlQueryParam, getUser, getUtmCookies, googlePlacesMapper, hasDecimal, impersonateService, initFieldValidation, initPostHog, isColorLight, isDomainValidService, isSimpleType, isValidEmail, isValidString, isValidUrl, lisTEmailTags, listAccounts, listCampaigns, listCampaignsReportsExports, listContacts, listEmailLogs, listForms, listList, listListAttributes, listListInterests, listSenders, listSuppressedEmails, listSystemEmails, listTasksService, listTemplates, listUsers, logOutService, loginService, miliToSecond, modelSet, modelToJson, originalBrand, patchForm, popImpersonificationTree, postMessage, publishForm, reScheduleCampaign, removeEmptyProperties, removeQueryParams, removeTrailingChar, renderCampaign, renderForm, renderPublicHtmlForm, renderTemplate, requestSupportService, resumeCampaign, scheduleCampaign, searchCustomerProfiles, sendCampaignTest, setBrandHeadElements, setStorage, shareTemplate, splitArray, splitObject, stableSort, startPromisePool, suspendCampaign, trackEvent, truncateEmail, truncateText, uiKitConfig, unArchiveCampaign, unScheduleCampaign, unshareTemplate, updateAccount, updateAndClearUrlParams, updateCampaign, updateSystemEmails, updateTemplate, updateUser, validateColor, validateEmail, validateGenericInput, validateUrl, wait, whiteLabelBrand, whoAmi };
|
|
@@ -19,4 +19,12 @@ export declare function listListAttributes({ id, ...options }: TGenericListParam
|
|
|
19
19
|
export declare function listListInterests({ id, ...options }: TGenericListParams & {
|
|
20
20
|
id: number;
|
|
21
21
|
}): Promise<any>;
|
|
22
|
+
export declare function downloadContactsExport({ listId, exportId }: {
|
|
23
|
+
listId: number;
|
|
24
|
+
exportId: string;
|
|
25
|
+
}): Promise<any>;
|
|
26
|
+
export declare function downloadListLogExport({ listId, exportId }: {
|
|
27
|
+
listId: number;
|
|
28
|
+
exportId: string;
|
|
29
|
+
}): Promise<any>;
|
|
22
30
|
export * from "./types";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TSuppressedEmail } from "../../factories/suppressedEmails";
|
|
2
|
+
import { TTask, TTaskDownload } from "../../models";
|
|
3
|
+
import { TDeleteApiResource, TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
|
|
4
|
+
export declare function addSuppressedEmail({ email }: {
|
|
5
|
+
email: string;
|
|
6
|
+
}): Promise<any>;
|
|
7
|
+
export declare function listSuppressedEmails({ ...options }: Omit<TGenericListParams, "sort">): Promise<TGenericListReturn<TSuppressedEmail>>;
|
|
8
|
+
export declare function deleteSuppressedEmail({ email }: {
|
|
9
|
+
email: string;
|
|
10
|
+
}): Promise<TDeleteApiResource>;
|
|
11
|
+
export declare function createSuppressedEmailExport(): Promise<any>;
|
|
12
|
+
export declare function getSuppressedEmailExport({ exportId }: {
|
|
13
|
+
exportId: string;
|
|
14
|
+
}): Promise<TGenericReturn<TTask>>;
|
|
15
|
+
export declare function downloadSuppressedEmailExport({ exportId }: {
|
|
16
|
+
exportId: string;
|
|
17
|
+
}): Promise<TGenericReturn<TTaskDownload>>;
|
|
@@ -60,8 +60,6 @@ export declare enum EEvents {
|
|
|
60
60
|
CONTACT_UNSUBSCRIBED = "Contact.Unsubscribed",
|
|
61
61
|
CONTACT_SUPPRESSED = "Contact.Suppressed",
|
|
62
62
|
CONTACT_UNSUPPRESSED = "Contact.Unsuppressed",
|
|
63
|
-
SUPPRESSED_EMAIL_EXPORT = "SuppressedEmailsReport.Export",
|
|
64
|
-
SUPPRESSED_EMAIL_EXPORT_DOWNLOAD = "SuppressedEmailsReport.Download",
|
|
65
63
|
CONTACT_IMPORTED = "Contact.Imported",
|
|
66
64
|
CONTACT_EXPORT = "Contact.Export",
|
|
67
65
|
CONTACT_EXPORT_DOWNLOAD = "Contact.Export.Download",
|
|
@@ -69,10 +67,15 @@ export declare enum EEvents {
|
|
|
69
67
|
CONTACT_UNTAGGED = "Contact.Untagged",
|
|
70
68
|
CONTACT_INTERESTED = "Contact.Interested",
|
|
71
69
|
CONTACT_UNINTERESTED = "Contact.Uninterested",
|
|
70
|
+
SUPPRESSED_EMAIL_EXPORT_CREATED = "SuppressedEmail.Export.Created",
|
|
71
|
+
SUPPRESSED_EMAIL_EXPORT_DOWNLOAD = "SuppressedEmail.Export.Download",
|
|
72
|
+
SUPPRESSED_EMAIL_DELETED = "SuppressedEmail.Deleted",
|
|
73
|
+
SUPPRESSED_EMAIL_ADDED = "SuppressedEmail.Added",
|
|
72
74
|
LIST_CREATED = "List.Created",
|
|
73
75
|
LIST_UPDATED = "List.Updated",
|
|
74
76
|
LIST_DELETED = "List.Deleted",
|
|
75
77
|
LIST_LOGS_EXPORT_CREATED = "ListLogsExport.Created",
|
|
78
|
+
LIST_LOGS_EXPORT_DOWNLOAD = "ListLogsExport.Download",
|
|
76
79
|
SENDER_CREATED = "Sender.Created",
|
|
77
80
|
SENDER_UPDATED = "Sender.Updated",
|
|
78
81
|
SENDER_DELETED = "Sender.Deleted",
|
|
@@ -116,6 +119,10 @@ export declare enum EEvents {
|
|
|
116
119
|
SEGMENT_DELETED = "Segment.Deleted",
|
|
117
120
|
ACTION_BLOCKED = "Action.Blocked",
|
|
118
121
|
BRAND_UPDATED = "Brand.Updated",
|
|
122
|
+
BRAND_CREATED = "Brand.Created",
|
|
123
|
+
BRAND_EMAIL_ENRICHED = "Brand.Email.Enriched",
|
|
124
|
+
BRAND_ORGANIZATION_ENRICHED = "Brand.Organization.Enriched",
|
|
125
|
+
BRAND_ENRICHED = "Brand.Enriched",
|
|
119
126
|
BRAND_REPO = "BrandRepo.Redirection",
|
|
120
127
|
BRAND_REPO_CANCELLED = "BrandRepo.Dialog.Cancelled",
|
|
121
128
|
SUPPORT_REQUESTED = "Support.Requested",
|