@metricraven/cli 0.4.0 → 0.4.2
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/commands.js +5 -2
- package/dist/completion.js +1 -1
- package/package.json +1 -1
package/dist/commands.js
CHANGED
|
@@ -273,7 +273,7 @@ async function analytics(ctx, sub, rest) {
|
|
|
273
273
|
params.set("level", rest[0]);
|
|
274
274
|
if (flags.provider) {
|
|
275
275
|
if (!AD_PROVIDER_VALUES.includes(flags.provider))
|
|
276
|
-
throw new UsageError("Use --provider all, meta, google or tiktok
|
|
276
|
+
throw new UsageError("Use --provider all, meta, google or tiktok.");
|
|
277
277
|
params.set("provider", flags.provider);
|
|
278
278
|
}
|
|
279
279
|
if (flags.account)
|
|
@@ -319,7 +319,7 @@ function renderAds(d) {
|
|
|
319
319
|
if (!d.configured)
|
|
320
320
|
return d.reason === "no_account"
|
|
321
321
|
? "An ad network is connected but no ad account is chosen yet. Pick one in Settings → Integrations."
|
|
322
|
-
: "No ad network is connected for this website. Connect Meta Ads or
|
|
322
|
+
: "No ad network is connected for this website. Connect Meta Ads, Google Ads or TikTok Ads in the dashboard: https://metricraven.com/docs/meta-ads";
|
|
323
323
|
const cur = d.period?.currency ?? "USD";
|
|
324
324
|
const t = d.totals;
|
|
325
325
|
const roas = (v) => (v === null || v === undefined ? "–" : `${num(v, 2)}x`);
|
|
@@ -1115,6 +1115,7 @@ const PROXY_STATUS = {
|
|
|
1115
1115
|
issuing_certificate: "Issuing certificate",
|
|
1116
1116
|
active: "Active",
|
|
1117
1117
|
error: "Needs attention",
|
|
1118
|
+
paused: "Paused (plan ended)",
|
|
1118
1119
|
};
|
|
1119
1120
|
function printProxy(d) {
|
|
1120
1121
|
const p = d.proxy;
|
|
@@ -1127,6 +1128,8 @@ function printProxy(d) {
|
|
|
1127
1128
|
out(`${bold(p.hostname)} ${PROXY_STATUS[p.status] ?? p.status}${p.checkedAt ? dim(` (checked ${date(p.checkedAt)})`) : ""}`);
|
|
1128
1129
|
if (p.error)
|
|
1129
1130
|
out(p.error);
|
|
1131
|
+
if (p.status === "paused")
|
|
1132
|
+
return out("Paused because your plan ended. Choose a plan, then run `metricraven proxy check` to set it up again.");
|
|
1130
1133
|
if (p.status !== "active")
|
|
1131
1134
|
out(section("Add this DNS record", table(["Type", "Name / Host", "Value", ""], p.records.map((r) => [r.type, r.name, r.value, r.required ? "" : "only if the CNAME doesn't verify"]))));
|
|
1132
1135
|
else
|
package/dist/completion.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UsageError } from "./args.js";
|
|
2
|
-
/** --provider values of `analytics ads`: what GET /stats/ads accepts
|
|
2
|
+
/** --provider values of `analytics ads`: what GET /stats/ads accepts. */
|
|
3
3
|
export const AD_PROVIDER_VALUES = ["all", "meta", "google", "tiktok"];
|
|
4
4
|
/** Shell completion scripts for `metricraven completion bash|zsh|fish`. */
|
|
5
5
|
const COMMANDS = ["login", "logout", "whoami", "account", "tokens", "payments", "use", "websites", "analytics", "realtime", "visitors", "funnels", "goals", "notes", "mentions", "ai-visibility", "alerts", "members", "bots", "proxy", "completion"];
|
package/package.json
CHANGED