@erdoai/cli 0.172.0 → 0.173.0

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2923,6 +2923,15 @@ paidMediaCampaigns.command("list").description("List the organization's owned Go
2923
2923
  return;
2924
2924
  }
2925
2925
  console.log(`customer id: ${result.customer_id}`);
2926
+ const setup = result.conversion_setup;
2927
+ if (setup) {
2928
+ const terms = setup.accepted_customer_data_terms === true ? "accepted" : setup.accepted_customer_data_terms === false ? "not accepted" : "unknown";
2929
+ const leads = setup.enhanced_conversions_for_leads_enabled === true ? "enabled" : setup.enhanced_conversions_for_leads_enabled === false ? "disabled" : "unknown";
2930
+ console.log(`customer data terms: ${terms}; enhanced conversions for leads: ${leads}`);
2931
+ for (const note of setup.readiness_notes) console.log(`warning [${note.code}]: ${note.message}`);
2932
+ } else {
2933
+ console.log("warning: conversion setup is unverified (not returned by the server)");
2934
+ }
2926
2935
  for (const campaign of result.campaigns) {
2927
2936
  const goal = campaign.goal_config_level === "CAMPAIGN" ? `campaign goal: ${(campaign.conversion_actions ?? []).map((a) => a.name || a.id).join(", ")}` : "customer goals";
2928
2937
  console.log(`${campaign.id} ${campaign.name} ${campaign.status} ${campaign.bidding_strategy_type || "-"} ${goal}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erdoai/cli",
3
- "version": "0.172.0",
3
+ "version": "0.173.0",
4
4
  "description": "Erdo CLI \u2014 drive datasets, pages, and evals from the terminal or CI",
5
5
  "type": "module",
6
6
  "bin": {