@cakemail-org/ui-components-v2 2.2.29 → 2.2.30
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,4 +1,4 @@
|
|
|
1
|
-
import { TTaskDownload } from "../../models";
|
|
1
|
+
import { TTask, TTaskDownload } from "../../models";
|
|
2
2
|
import { ListModel, TListLog, TListReport } from "../../models/list";
|
|
3
3
|
import { TGenericListLogsParams, TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
|
|
4
4
|
export declare class ListsFactory {
|
|
@@ -20,5 +20,12 @@ export declare class ListsFactory {
|
|
|
20
20
|
listId: number;
|
|
21
21
|
exportId: string;
|
|
22
22
|
}): Promise<TGenericReturn<TTaskDownload>>;
|
|
23
|
+
static exportContacts({ description, json, segmentId, filter, listId }: {
|
|
24
|
+
description?: string;
|
|
25
|
+
json?: boolean;
|
|
26
|
+
segmentId?: number;
|
|
27
|
+
filter?: string;
|
|
28
|
+
listId: number;
|
|
29
|
+
}): Promise<TGenericReturn<TTask>>;
|
|
23
30
|
}
|
|
24
31
|
export * from "./types";
|
package/dist/cjs/index.js
CHANGED
|
@@ -19248,6 +19248,18 @@ var ListsFactory = /** @class */ (function () {
|
|
|
19248
19248
|
});
|
|
19249
19249
|
});
|
|
19250
19250
|
};
|
|
19251
|
+
ListsFactory.exportContacts = function (_a) {
|
|
19252
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
19253
|
+
var description = _b.description, json = _b.json, segmentId = _b.segmentId, filter = _b.filter, listId = _b.listId;
|
|
19254
|
+
return __generator(this, function (_c) {
|
|
19255
|
+
return [2 /*return*/, createContactsExport({ listId: listId, description: description, json: json, segmentId: segmentId, filter: filter })
|
|
19256
|
+
.then(function (data) {
|
|
19257
|
+
trackEvent(exports.EEvents.CONTACT_EXPORT, { listId: listId });
|
|
19258
|
+
return data;
|
|
19259
|
+
})];
|
|
19260
|
+
});
|
|
19261
|
+
});
|
|
19262
|
+
};
|
|
19251
19263
|
return ListsFactory;
|
|
19252
19264
|
}());
|
|
19253
19265
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TTaskDownload } from "../../models";
|
|
1
|
+
import { TTask, TTaskDownload } from "../../models";
|
|
2
2
|
import { ListModel, TListLog, TListReport } from "../../models/list";
|
|
3
3
|
import { TGenericListLogsParams, TGenericListParams, TGenericListReturn, TGenericReturn } from "../../types";
|
|
4
4
|
export declare class ListsFactory {
|
|
@@ -20,5 +20,12 @@ export declare class ListsFactory {
|
|
|
20
20
|
listId: number;
|
|
21
21
|
exportId: string;
|
|
22
22
|
}): Promise<TGenericReturn<TTaskDownload>>;
|
|
23
|
+
static exportContacts({ description, json, segmentId, filter, listId }: {
|
|
24
|
+
description?: string;
|
|
25
|
+
json?: boolean;
|
|
26
|
+
segmentId?: number;
|
|
27
|
+
filter?: string;
|
|
28
|
+
listId: number;
|
|
29
|
+
}): Promise<TGenericReturn<TTask>>;
|
|
23
30
|
}
|
|
24
31
|
export * from "./types";
|
package/dist/esm/index.js
CHANGED
|
@@ -19228,6 +19228,18 @@ var ListsFactory = /** @class */ (function () {
|
|
|
19228
19228
|
});
|
|
19229
19229
|
});
|
|
19230
19230
|
};
|
|
19231
|
+
ListsFactory.exportContacts = function (_a) {
|
|
19232
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
19233
|
+
var description = _b.description, json = _b.json, segmentId = _b.segmentId, filter = _b.filter, listId = _b.listId;
|
|
19234
|
+
return __generator(this, function (_c) {
|
|
19235
|
+
return [2 /*return*/, createContactsExport({ listId: listId, description: description, json: json, segmentId: segmentId, filter: filter })
|
|
19236
|
+
.then(function (data) {
|
|
19237
|
+
trackEvent(EEvents.CONTACT_EXPORT, { listId: listId });
|
|
19238
|
+
return data;
|
|
19239
|
+
})];
|
|
19240
|
+
});
|
|
19241
|
+
});
|
|
19242
|
+
};
|
|
19231
19243
|
return ListsFactory;
|
|
19232
19244
|
}());
|
|
19233
19245
|
|