@cakemail-org/ui-components-v2 2.1.40 → 2.1.42
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/campaigns/index.d.ts +4 -0
- package/dist/cjs/factories/lists/index.d.ts +3 -3
- package/dist/cjs/index.js +20 -4
- package/dist/esm/factories/campaigns/index.d.ts +4 -0
- package/dist/esm/factories/lists/index.d.ts +3 -3
- package/dist/esm/index.js +20 -4
- package/package.json +1 -1
|
@@ -23,5 +23,9 @@ export declare class CampaignsFactory {
|
|
|
23
23
|
static downloadReportExport({ exportId }: {
|
|
24
24
|
exportId: string;
|
|
25
25
|
}): Promise<TGenericReturn<TTaskDownload>>;
|
|
26
|
+
static downloadCampaignLogExport({ exportId, campaignId }: {
|
|
27
|
+
exportId: string;
|
|
28
|
+
campaignId: number;
|
|
29
|
+
}): Promise<TGenericReturn<TTaskDownload>>;
|
|
26
30
|
}
|
|
27
31
|
export * from "./types";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TTaskDownload } from "../../models";
|
|
2
2
|
import { ListModel, TListLog, TListReport } from "../../models/list";
|
|
3
|
-
import { TGenericListLogsParams, TGenericListParams, TGenericListReturn } from "../../types";
|
|
3
|
+
import { TGenericListLogsParams, TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
|
|
4
4
|
export declare class ListsFactory {
|
|
5
5
|
static list({ ...options }: TGenericListParams): Promise<TGenericListReturn<ListModel>>;
|
|
6
6
|
static get({ id }: {
|
|
@@ -15,10 +15,10 @@ export declare class ListsFactory {
|
|
|
15
15
|
static downloadContactsExport({ listId, exportId }: {
|
|
16
16
|
listId: number;
|
|
17
17
|
exportId: string;
|
|
18
|
-
}): Promise<TTaskDownload
|
|
18
|
+
}): Promise<TGenericReturn<TTaskDownload>>;
|
|
19
19
|
static downloadListLogExport({ listId, exportId }: {
|
|
20
20
|
listId: number;
|
|
21
21
|
exportId: string;
|
|
22
|
-
}): Promise<TTaskDownload
|
|
22
|
+
}): Promise<TGenericReturn<TTaskDownload>>;
|
|
23
23
|
}
|
|
24
24
|
export * from "./types";
|
package/dist/cjs/index.js
CHANGED
|
@@ -17137,8 +17137,24 @@ var CampaignsFactory = /** @class */ (function () {
|
|
|
17137
17137
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17138
17138
|
var exportId = _b.exportId;
|
|
17139
17139
|
return __generator(this, function (_c) {
|
|
17140
|
-
|
|
17141
|
-
|
|
17140
|
+
return [2 /*return*/, downloadCampaignsReportsExport({ exportId: exportId }).then(function (data) {
|
|
17141
|
+
trackEvent(exports.EEvents.CAMPAIGNS_REPORTS_EXPORT_DOWNLOAD);
|
|
17142
|
+
return data;
|
|
17143
|
+
})];
|
|
17144
|
+
});
|
|
17145
|
+
});
|
|
17146
|
+
};
|
|
17147
|
+
CampaignsFactory.downloadCampaignLogExport = function (_a) {
|
|
17148
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17149
|
+
var exportId = _b.exportId, campaignId = _b.campaignId;
|
|
17150
|
+
return __generator(this, function (_c) {
|
|
17151
|
+
return [2 /*return*/, downloadCampaignLogExport({ exportId: exportId, campaignId: campaignId }).then(function (data) {
|
|
17152
|
+
trackEvent(exports.EEvents.CAMPAIGN_LOG_DOWNLOAD, {
|
|
17153
|
+
campaign_id: campaignId,
|
|
17154
|
+
export_id: exportId
|
|
17155
|
+
});
|
|
17156
|
+
return data;
|
|
17157
|
+
})];
|
|
17142
17158
|
});
|
|
17143
17159
|
});
|
|
17144
17160
|
};
|
|
@@ -17820,7 +17836,7 @@ var ListsFactory = /** @class */ (function () {
|
|
|
17820
17836
|
list_id: listId,
|
|
17821
17837
|
export_id: exportId
|
|
17822
17838
|
});
|
|
17823
|
-
return data
|
|
17839
|
+
return data;
|
|
17824
17840
|
})];
|
|
17825
17841
|
});
|
|
17826
17842
|
});
|
|
@@ -17834,7 +17850,7 @@ var ListsFactory = /** @class */ (function () {
|
|
|
17834
17850
|
list_id: listId,
|
|
17835
17851
|
export_id: exportId
|
|
17836
17852
|
});
|
|
17837
|
-
return data
|
|
17853
|
+
return data;
|
|
17838
17854
|
})];
|
|
17839
17855
|
});
|
|
17840
17856
|
});
|
|
@@ -23,5 +23,9 @@ export declare class CampaignsFactory {
|
|
|
23
23
|
static downloadReportExport({ exportId }: {
|
|
24
24
|
exportId: string;
|
|
25
25
|
}): Promise<TGenericReturn<TTaskDownload>>;
|
|
26
|
+
static downloadCampaignLogExport({ exportId, campaignId }: {
|
|
27
|
+
exportId: string;
|
|
28
|
+
campaignId: number;
|
|
29
|
+
}): Promise<TGenericReturn<TTaskDownload>>;
|
|
26
30
|
}
|
|
27
31
|
export * from "./types";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TTaskDownload } from "../../models";
|
|
2
2
|
import { ListModel, TListLog, TListReport } from "../../models/list";
|
|
3
|
-
import { TGenericListLogsParams, TGenericListParams, TGenericListReturn } from "../../types";
|
|
3
|
+
import { TGenericListLogsParams, TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
|
|
4
4
|
export declare class ListsFactory {
|
|
5
5
|
static list({ ...options }: TGenericListParams): Promise<TGenericListReturn<ListModel>>;
|
|
6
6
|
static get({ id }: {
|
|
@@ -15,10 +15,10 @@ export declare class ListsFactory {
|
|
|
15
15
|
static downloadContactsExport({ listId, exportId }: {
|
|
16
16
|
listId: number;
|
|
17
17
|
exportId: string;
|
|
18
|
-
}): Promise<TTaskDownload
|
|
18
|
+
}): Promise<TGenericReturn<TTaskDownload>>;
|
|
19
19
|
static downloadListLogExport({ listId, exportId }: {
|
|
20
20
|
listId: number;
|
|
21
21
|
exportId: string;
|
|
22
|
-
}): Promise<TTaskDownload
|
|
22
|
+
}): Promise<TGenericReturn<TTaskDownload>>;
|
|
23
23
|
}
|
|
24
24
|
export * from "./types";
|
package/dist/esm/index.js
CHANGED
|
@@ -17117,8 +17117,24 @@ var CampaignsFactory = /** @class */ (function () {
|
|
|
17117
17117
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17118
17118
|
var exportId = _b.exportId;
|
|
17119
17119
|
return __generator(this, function (_c) {
|
|
17120
|
-
|
|
17121
|
-
|
|
17120
|
+
return [2 /*return*/, downloadCampaignsReportsExport({ exportId: exportId }).then(function (data) {
|
|
17121
|
+
trackEvent(EEvents.CAMPAIGNS_REPORTS_EXPORT_DOWNLOAD);
|
|
17122
|
+
return data;
|
|
17123
|
+
})];
|
|
17124
|
+
});
|
|
17125
|
+
});
|
|
17126
|
+
};
|
|
17127
|
+
CampaignsFactory.downloadCampaignLogExport = function (_a) {
|
|
17128
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17129
|
+
var exportId = _b.exportId, campaignId = _b.campaignId;
|
|
17130
|
+
return __generator(this, function (_c) {
|
|
17131
|
+
return [2 /*return*/, downloadCampaignLogExport({ exportId: exportId, campaignId: campaignId }).then(function (data) {
|
|
17132
|
+
trackEvent(EEvents.CAMPAIGN_LOG_DOWNLOAD, {
|
|
17133
|
+
campaign_id: campaignId,
|
|
17134
|
+
export_id: exportId
|
|
17135
|
+
});
|
|
17136
|
+
return data;
|
|
17137
|
+
})];
|
|
17122
17138
|
});
|
|
17123
17139
|
});
|
|
17124
17140
|
};
|
|
@@ -17800,7 +17816,7 @@ var ListsFactory = /** @class */ (function () {
|
|
|
17800
17816
|
list_id: listId,
|
|
17801
17817
|
export_id: exportId
|
|
17802
17818
|
});
|
|
17803
|
-
return data
|
|
17819
|
+
return data;
|
|
17804
17820
|
})];
|
|
17805
17821
|
});
|
|
17806
17822
|
});
|
|
@@ -17814,7 +17830,7 @@ var ListsFactory = /** @class */ (function () {
|
|
|
17814
17830
|
list_id: listId,
|
|
17815
17831
|
export_id: exportId
|
|
17816
17832
|
});
|
|
17817
|
-
return data
|
|
17833
|
+
return data;
|
|
17818
17834
|
})];
|
|
17819
17835
|
});
|
|
17820
17836
|
});
|