kenso 0.1.162 → 0.1.164
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/kenso.js +3 -2
- package/dist/operations.index.json +1 -1
- package/dist/operations.json +1 -1
- package/docs/reference.md +1 -1
- package/package.json +2 -2
package/dist/kenso.js
CHANGED
|
@@ -3422,7 +3422,7 @@ var VERSION;
|
|
|
3422
3422
|
var init_version = __esm({
|
|
3423
3423
|
"src/core/version.ts"() {
|
|
3424
3424
|
"use strict";
|
|
3425
|
-
VERSION = true ? "0.1.
|
|
3425
|
+
VERSION = true ? "0.1.164" : "0.0.0-dev";
|
|
3426
3426
|
}
|
|
3427
3427
|
});
|
|
3428
3428
|
|
|
@@ -13356,7 +13356,8 @@ __export(update_exports, {
|
|
|
13356
13356
|
async function emailIndex(ctx, campaignId) {
|
|
13357
13357
|
const index2 = /* @__PURE__ */ new Map();
|
|
13358
13358
|
let read2 = 0;
|
|
13359
|
-
|
|
13359
|
+
const query = { campaignId, fields: "id,email" };
|
|
13360
|
+
for await (const contact of ctx.client.paginate({ method: "GET", path: "/v1/contacts", query }, { pageSize: PAGE_SIZE })) {
|
|
13360
13361
|
read2++;
|
|
13361
13362
|
if (read2 % 2e3 === 0) ctx.output.progress(`read ${read2} contacts of campaign ${campaignId}`);
|
|
13362
13363
|
if (!isRecord5(contact)) continue;
|