@koda-sl/baker-cli 0.507.0 → 0.508.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/README.md +1 -1
- package/dist/{ads-T5RPISTB.js → ads-BOLVA4YI.js} +7 -7
- package/dist/{analytics-XW4ZEEAR.js → analytics-YIRKA7OC.js} +2 -2
- package/dist/{chatgpt-SVGWMEQD.js → chatgpt-DEG26ES2.js} +2 -2
- package/dist/{chunk-LLBB6OAB.js → chunk-GACSA5A6.js} +2 -2
- package/dist/{chunk-TWKZVPOA.js → chunk-Y2FAUFWK.js} +2 -2
- package/dist/chunk-Y2FAUFWK.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/{google-3GSINSOV.js → google-X6LRA27Z.js} +4 -4
- package/dist/{insights-EQW34IL4.js → insights-M3CYB22P.js} +2 -2
- package/dist/{insights-JZVXC7IJ.js → insights-XCT3ONC7.js} +2 -2
- package/dist/{linkedin-4MGRSWXZ.js → linkedin-AWUXPBIV.js} +2 -2
- package/dist/{meta-KS3SQSYZ.js → meta-VL5RNWCW.js} +2 -2
- package/dist/{performance-WPFGEJTE.js → performance-34XRXF2I.js} +117 -33
- package/dist/performance-34XRXF2I.js.map +1 -0
- package/dist/{query-42QT56FJ.js → query-QM7MBQD7.js} +3 -3
- package/dist/{stats-LNEQJ42S.js → stats-HUWCLN7J.js} +2 -2
- package/dist/{sync-YOKQEZ46.js → sync-PHH65JFS.js} +2 -2
- package/dist/{x-7VY6K7JS.js → x-AHQPDNB4.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-TWKZVPOA.js.map +0 -1
- package/dist/performance-WPFGEJTE.js.map +0 -1
- /package/dist/{ads-T5RPISTB.js.map → ads-BOLVA4YI.js.map} +0 -0
- /package/dist/{analytics-XW4ZEEAR.js.map → analytics-YIRKA7OC.js.map} +0 -0
- /package/dist/{chatgpt-SVGWMEQD.js.map → chatgpt-DEG26ES2.js.map} +0 -0
- /package/dist/{chunk-LLBB6OAB.js.map → chunk-GACSA5A6.js.map} +0 -0
- /package/dist/{google-3GSINSOV.js.map → google-X6LRA27Z.js.map} +0 -0
- /package/dist/{insights-EQW34IL4.js.map → insights-M3CYB22P.js.map} +0 -0
- /package/dist/{insights-JZVXC7IJ.js.map → insights-XCT3ONC7.js.map} +0 -0
- /package/dist/{linkedin-4MGRSWXZ.js.map → linkedin-AWUXPBIV.js.map} +0 -0
- /package/dist/{meta-KS3SQSYZ.js.map → meta-VL5RNWCW.js.map} +0 -0
- /package/dist/{query-42QT56FJ.js.map → query-QM7MBQD7.js.map} +0 -0
- /package/dist/{stats-LNEQJ42S.js.map → stats-HUWCLN7J.js.map} +0 -0
- /package/dist/{sync-YOKQEZ46.js.map → sync-PHH65JFS.js.map} +0 -0
- /package/dist/{x-7VY6K7JS.js.map → x-AHQPDNB4.js.map} +0 -0
|
@@ -22,8 +22,8 @@ import {
|
|
|
22
22
|
unobservedSelectedFields,
|
|
23
23
|
unwrittenColumnWarnings,
|
|
24
24
|
warningLines
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-GACSA5A6.js";
|
|
26
|
+
import "./chunk-Y2FAUFWK.js";
|
|
27
27
|
import "./chunk-JPK34QPS.js";
|
|
28
28
|
import "./chunk-PLBITHV6.js";
|
|
29
29
|
import "./chunk-4GAEB6NK.js";
|
|
@@ -59,4 +59,4 @@ export {
|
|
|
59
59
|
unwrittenColumnWarnings,
|
|
60
60
|
warningLines
|
|
61
61
|
};
|
|
62
|
-
//# sourceMappingURL=query-
|
|
62
|
+
//# sourceMappingURL=query-QM7MBQD7.js.map
|
|
@@ -22,7 +22,7 @@ Examples:
|
|
|
22
22
|
baker ads x stats job-status --account-id 18ce53xyz --job-id abc`
|
|
23
23
|
},
|
|
24
24
|
subCommands: {
|
|
25
|
-
sync: () => import("./sync-
|
|
25
|
+
sync: () => import("./sync-PHH65JFS.js").then((m) => m.statsSyncCommand),
|
|
26
26
|
job: () => import("./job-DRFCQ27M.js").then((m) => m.statsJobCommand),
|
|
27
27
|
"job-create": () => import("./job-create-2EC25Y3J.js").then((m) => m.statsJobCreateCommand),
|
|
28
28
|
"job-status": () => import("./job-status-UNVZRPIA.js").then((m) => m.statsJobStatusCommand)
|
|
@@ -31,4 +31,4 @@ Examples:
|
|
|
31
31
|
export {
|
|
32
32
|
statsCommand
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=stats-
|
|
34
|
+
//# sourceMappingURL=stats-HUWCLN7J.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-7NF73SCB.js";
|
|
8
8
|
import {
|
|
9
9
|
syncedFirstHint
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Y2FAUFWK.js";
|
|
11
11
|
import {
|
|
12
12
|
cacheGet,
|
|
13
13
|
cacheSet,
|
|
@@ -276,4 +276,4 @@ Examples:
|
|
|
276
276
|
export {
|
|
277
277
|
statsSyncCommand
|
|
278
278
|
};
|
|
279
|
-
//# sourceMappingURL=sync-
|
|
279
|
+
//# sourceMappingURL=sync-PHH65JFS.js.map
|
|
@@ -38,10 +38,10 @@ Full guide: __tooling__/docs/tools/baker/ads-x.md`
|
|
|
38
38
|
"targeting-criteria": () => import("./targeting-criteria-APNZ7DN3.js").then((m) => m.targetingCriteriaCommand),
|
|
39
39
|
"targeting-constants": () => import("./targeting-constants-236ES5HE.js").then((m) => m.targetingConstantsCommand),
|
|
40
40
|
"active-entities": () => import("./active-entities-3BAPHE4P.js").then((m) => m.activeEntitiesCommand),
|
|
41
|
-
stats: () => import("./stats-
|
|
41
|
+
stats: () => import("./stats-HUWCLN7J.js").then((m) => m.statsCommand)
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
export {
|
|
45
45
|
xCommand
|
|
46
46
|
};
|
|
47
|
-
//# sourceMappingURL=x-
|
|
47
|
+
//# sourceMappingURL=x-AHQPDNB4.js.map
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/ads/synced-first.ts"],"sourcesContent":["/**\n * The nudge on every live performance read (`baker ads <platform> insights`,\n * `analytics`, `stats`, GAQL performance presets): Baker's synced copy\n * (`baker ads performance`) answers the same question with no rate limit and\n * the whole history, so it is the first read; live is for today's numbers, a\n * field the copy lacks, or the read right before a change.\n */\n\nexport type SyncedPlatform = \"meta\" | \"google\" | \"linkedin\" | \"x\" | \"chatgpt\";\nexport type SyncedLevel = \"account\" | \"campaign\" | \"ad_group\" | \"ad\" | \"keyword\";\n\nfunction hint(command: string): string {\n return `Synced copy first: \\`${command}\\` answers this with no rate limit and full history, a few hours behind (\\`baker ads performance status\\` says how fresh). Read live only for today's numbers, a field the synced copy lacks, or right before a change.`;\n}\n\nfunction syncedCommand(platform: SyncedPlatform, level: SyncedLevel): string {\n const scope = `--platforms ${platform}`;\n if (level === \"account\") return `baker ads performance overview ${scope}`;\n return `baker ads performance entities ${scope} --level ${level}`;\n}\n\nexport function syncedFirstHint(platform: SyncedPlatform, level: SyncedLevel): string {\n return hint(syncedCommand(platform, level));\n}\n\n/** Meta insights breakdowns the synced copy keeps, and the `breakdown --dimension` that reads each. */\nconst META_BREAKDOWN_DIMENSION: Record<string, string> = {\n age: \"age\",\n gender: \"gender\",\n country: \"country\",\n publisher_platform: \"placement\",\n platform_position: \"placement\",\n impression_device: \"device\",\n device_platform: \"device\",\n};\n\n/** The synced read for a Meta breakdown; null when the copy does not keep it or would need two dimensions at once. */\nexport function metaBreakdownSyncedHint(breakdowns: readonly string[]): string | null {\n const dimensions = new Set(breakdowns.map((breakdown) => META_BREAKDOWN_DIMENSION[breakdown]));\n const [dimension] = dimensions;\n if (dimensions.size !== 1 || dimension === undefined) return null;\n return hint(`baker ads performance breakdown --dimension ${dimension} --platforms meta`);\n}\n\n/** Google Ads presets the synced copy answers, and the read that does. Inventories and live-only reports are absent. */\nconst GOOGLE_PRESET_READS: Record<string, string> = {\n \"account-summary\": \"baker ads performance overview --platforms google\",\n \"campaign-performance\": \"baker ads performance entities --platforms google --level campaign\",\n \"budget-limited\": \"baker ads performance impression-share\",\n \"keyword-analysis\": \"baker ads performance entities --platforms google --level keyword\",\n \"search-terms\": \"baker ads performance search-terms\",\n \"ad-copy-performance\": \"baker ads performance entities --platforms google --level ad\",\n \"geo-performance\": \"baker ads performance breakdown --dimension country --platforms google\",\n \"landing-pages\": \"baker ads performance landings --platforms google\",\n \"conversions-by-action\": \"baker ads performance goals\",\n \"account-budget\": \"baker ads performance pacing --platforms google\",\n};\n\nexport function googlePresetSyncedHint(preset: string | undefined): string | null {\n const command = preset === undefined ? undefined : GOOGLE_PRESET_READS[preset];\n return command === undefined ? null : hint(command);\n}\n"],"mappings":";AAWA,SAAS,KAAK,SAAyB;AACrC,SAAO,wBAAwB,OAAO;AACxC;AAEA,SAAS,cAAc,UAA0B,OAA4B;AAC3E,QAAM,QAAQ,eAAe,QAAQ;AACrC,MAAI,UAAU,UAAW,QAAO,kCAAkC,KAAK;AACvE,SAAO,kCAAkC,KAAK,YAAY,KAAK;AACjE;AAEO,SAAS,gBAAgB,UAA0B,OAA4B;AACpF,SAAO,KAAK,cAAc,UAAU,KAAK,CAAC;AAC5C;AAGA,IAAM,2BAAmD;AAAA,EACvD,KAAK;AAAA,EACL,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,oBAAoB;AAAA,EACpB,mBAAmB;AAAA,EACnB,mBAAmB;AAAA,EACnB,iBAAiB;AACnB;AAGO,SAAS,wBAAwB,YAA8C;AACpF,QAAM,aAAa,IAAI,IAAI,WAAW,IAAI,CAAC,cAAc,yBAAyB,SAAS,CAAC,CAAC;AAC7F,QAAM,CAAC,SAAS,IAAI;AACpB,MAAI,WAAW,SAAS,KAAK,cAAc,OAAW,QAAO;AAC7D,SAAO,KAAK,+CAA+C,SAAS,mBAAmB;AACzF;AAGA,IAAM,sBAA8C;AAAA,EAClD,mBAAmB;AAAA,EACnB,wBAAwB;AAAA,EACxB,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,gBAAgB;AAAA,EAChB,uBAAuB;AAAA,EACvB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,yBAAyB;AAAA,EACzB,kBAAkB;AACpB;AAEO,SAAS,uBAAuB,QAA2C;AAChF,QAAM,UAAU,WAAW,SAAY,SAAY,oBAAoB,MAAM;AAC7E,SAAO,YAAY,SAAY,OAAO,KAAK,OAAO;AACpD;","names":[]}
|