kenso 0.1.13 → 0.1.14

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 CHANGED
@@ -2397,7 +2397,7 @@ var VERSION;
2397
2397
  var init_version = __esm({
2398
2398
  "src/core/version.ts"() {
2399
2399
  "use strict";
2400
- VERSION = true ? "0.1.13" : "0.0.0-dev";
2400
+ VERSION = true ? "0.1.14" : "0.0.0-dev";
2401
2401
  }
2402
2402
  });
2403
2403
 
@@ -8395,10 +8395,10 @@ async function readCampaign(ctx, campaignId) {
8395
8395
  const channel = isRecord4(campaign) && typeof campaign.channel === "string" ? campaign.channel.toLowerCase() : "";
8396
8396
  return { linkedInOnly: LINKEDIN_ONLY_CHANNELS.has(channel) ? true : void 0 };
8397
8397
  }
8398
- async function estimate(ctx, campaignId, leadCount) {
8398
+ async function estimate(ctx, leadCount) {
8399
8399
  if (leadCount === 0) return { estimate: null };
8400
8400
  try {
8401
- const res = await ctx.client.request({ method: "POST", path: "/v1/credits/estimates", body: { kind: "leads", leadCount, campaignId } });
8401
+ const res = await ctx.client.request({ method: "POST", path: "/v1/credits/estimates", body: { kind: "leads", leadCount } });
8402
8402
  const data = unwrap(res.body);
8403
8403
  if (!isRecord4(data)) return { estimate: data ?? null };
8404
8404
  const credits = (key) => typeof data[key] === "number" ? data[key] / 1e3 : void 0;
@@ -8502,7 +8502,7 @@ var init_import2 = __esm({
8502
8502
  ...Object.keys(mapping.dropped).length > 0 ? { droppedColumns: mapping.dropped } : {},
8503
8503
  ...emailLess > 0 ? { emailLessRows: emailLess } : {}
8504
8504
  };
8505
- if (dryRun2) Object.assign(dryRunExtra, await estimate(ctx, campaignId, items.length));
8505
+ if (dryRun2) Object.assign(dryRunExtra, await estimate(ctx, items.length));
8506
8506
  const outcome = await runBatch(
8507
8507
  {
8508
8508
  command: "contacts import",