@erdoai/cli 0.182.0 → 0.183.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.
- package/dist/index.js +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3663,7 +3663,7 @@ This key operates every org you manage; target one with X-Organization-ID (or \`
|
|
|
3663
3663
|
}
|
|
3664
3664
|
});
|
|
3665
3665
|
managed.command("performance").description(
|
|
3666
|
-
"Daily spend, traffic and captured leads for the client orgs you manage \u2014 one organization with --organization, otherwise every client. A metric whose source dataset is missing or unreadable prints as '-' and is explained under coverage; it is never reported as zero."
|
|
3666
|
+
"Daily spend, traffic and captured leads for the client orgs you manage \u2014 one organization with --organization, otherwise every client. Each advertising source prints its as-of time and the provider day it runs through. A metric whose source dataset is missing or unreadable prints as '-' and is explained under coverage; it is never reported as zero."
|
|
3667
3667
|
).option("--organization <slug>", "read one organization instead of every client org").option("--from <YYYY-MM-DD>", "first day to include (inclusive); defaults to 89 days before --to").option("--to <YYYY-MM-DD>", "last day to include (inclusive); defaults to today (UTC)").option("--daily", "one row per organization per day instead of window totals").option("--json", "print the raw JSON result instead of a table").action(
|
|
3668
3668
|
async (opts) => {
|
|
3669
3669
|
try {
|
|
@@ -3734,6 +3734,14 @@ managed.command("performance").description(
|
|
|
3734
3734
|
${res.from} to ${res.to} (${res.timezone} days)
|
|
3735
3735
|
`);
|
|
3736
3736
|
for (const org2 of res.organizations) {
|
|
3737
|
+
for (const channel of org2.channels ?? []) {
|
|
3738
|
+
const partial = channel.partial ? ", in progress" : "";
|
|
3739
|
+
const note = channel.note ? ` \u2014 ${channel.note}` : "";
|
|
3740
|
+
process.stderr.write(
|
|
3741
|
+
`${org2.organization_slug}: ${channel.provider} from ${channel.from} through ${channel.through}, as of ${channel.as_of}${partial}${note}
|
|
3742
|
+
`
|
|
3743
|
+
);
|
|
3744
|
+
}
|
|
3737
3745
|
for (const gap of org2.coverage) {
|
|
3738
3746
|
process.stderr.write(
|
|
3739
3747
|
`${org2.organization_slug}: ${gap.metrics.join(", ")} unavailable \u2014 ${gap.reason}
|