@cakemail-org/ui-components-v2 2.1.41 → 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.
|
@@ -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,10 @@ 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
|
+
})];
|
|
17142
17144
|
});
|
|
17143
17145
|
});
|
|
17144
17146
|
};
|
|
@@ -17146,7 +17148,13 @@ var CampaignsFactory = /** @class */ (function () {
|
|
|
17146
17148
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17147
17149
|
var exportId = _b.exportId, campaignId = _b.campaignId;
|
|
17148
17150
|
return __generator(this, function (_c) {
|
|
17149
|
-
return [2 /*return*/, downloadCampaignLogExport({ exportId: exportId, campaignId: campaignId })
|
|
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
|
+
})];
|
|
17150
17158
|
});
|
|
17151
17159
|
});
|
|
17152
17160
|
};
|
|
@@ -17828,7 +17836,7 @@ var ListsFactory = /** @class */ (function () {
|
|
|
17828
17836
|
list_id: listId,
|
|
17829
17837
|
export_id: exportId
|
|
17830
17838
|
});
|
|
17831
|
-
return data
|
|
17839
|
+
return data;
|
|
17832
17840
|
})];
|
|
17833
17841
|
});
|
|
17834
17842
|
});
|
|
@@ -17842,7 +17850,7 @@ var ListsFactory = /** @class */ (function () {
|
|
|
17842
17850
|
list_id: listId,
|
|
17843
17851
|
export_id: exportId
|
|
17844
17852
|
});
|
|
17845
|
-
return data
|
|
17853
|
+
return data;
|
|
17846
17854
|
})];
|
|
17847
17855
|
});
|
|
17848
17856
|
});
|
|
@@ -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,10 @@ 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
|
+
})];
|
|
17122
17124
|
});
|
|
17123
17125
|
});
|
|
17124
17126
|
};
|
|
@@ -17126,7 +17128,13 @@ var CampaignsFactory = /** @class */ (function () {
|
|
|
17126
17128
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17127
17129
|
var exportId = _b.exportId, campaignId = _b.campaignId;
|
|
17128
17130
|
return __generator(this, function (_c) {
|
|
17129
|
-
return [2 /*return*/, downloadCampaignLogExport({ exportId: exportId, campaignId: campaignId })
|
|
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
|
+
})];
|
|
17130
17138
|
});
|
|
17131
17139
|
});
|
|
17132
17140
|
};
|
|
@@ -17808,7 +17816,7 @@ var ListsFactory = /** @class */ (function () {
|
|
|
17808
17816
|
list_id: listId,
|
|
17809
17817
|
export_id: exportId
|
|
17810
17818
|
});
|
|
17811
|
-
return data
|
|
17819
|
+
return data;
|
|
17812
17820
|
})];
|
|
17813
17821
|
});
|
|
17814
17822
|
});
|
|
@@ -17822,7 +17830,7 @@ var ListsFactory = /** @class */ (function () {
|
|
|
17822
17830
|
list_id: listId,
|
|
17823
17831
|
export_id: exportId
|
|
17824
17832
|
});
|
|
17825
|
-
return data
|
|
17833
|
+
return data;
|
|
17826
17834
|
})];
|
|
17827
17835
|
});
|
|
17828
17836
|
});
|