@koda-sl/baker-cli 0.861.0 → 0.863.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 +4 -1
- package/dist/{activities-RYNGZIVX.js → activities-LC64DAAK.js} +3 -3
- package/dist/{add-UEM2ZBHL.js → add-D6ISSYOI.js} +5 -5
- package/dist/{ads-XJ7HSPQL.js → ads-F6IN27LX.js} +3 -3
- package/dist/{ads-EYCK5FW5.js → ads-ZR5D7BZT.js} +3 -3
- package/dist/{adsets-GI2AMYYV.js → adsets-3NIYL2GQ.js} +5 -5
- package/dist/{audiences-FWRHDFUF.js → audiences-DL267GNQ.js} +3 -3
- package/dist/{brief-TRRAYXYE.js → brief-WGNRT2KX.js} +7 -7
- package/dist/{campaigns-LZRGPANP.js → campaigns-KGTIKNN6.js} +2 -2
- package/dist/{campaigns-2HSADSRS.js → campaigns-RXDC5FSQ.js} +3 -3
- package/dist/{canvas-H7NEBLIL.js → canvas-23IQXJEF.js} +14 -14
- package/dist/{catalog-JUPGQN5T.js → catalog-MGKBY4O4.js} +5 -5
- package/dist/{check-IUIYFYGF.js → check-ZLJ26FS4.js} +5 -5
- package/dist/{chunk-EL5HNBRX.js → chunk-4TEQIAZG.js} +2 -2
- package/dist/{chunk-A3KYQTDR.js → chunk-6JLQZNS4.js} +2 -2
- package/dist/{chunk-QKPQ3YUV.js → chunk-AFNO7SSI.js} +2 -2
- package/dist/{chunk-OJMN4VNG.js → chunk-F3OYRVLY.js} +2 -2
- package/dist/{chunk-3KSMMYXO.js → chunk-FZNCML5Q.js} +4 -4
- package/dist/{chunk-353LBUUN.js → chunk-GFM3OEFZ.js} +6 -6
- package/dist/{chunk-QXEKUHNO.js → chunk-HUG6KXFO.js} +2 -2
- package/dist/{chunk-IGVUW6H7.js → chunk-I3XV6JLQ.js} +8 -8
- package/dist/{chunk-T75ACB3M.js → chunk-M677IBYO.js} +6 -6
- package/dist/{chunk-LNOI2WZ5.js → chunk-MAMHV6Q3.js} +32 -6
- package/dist/chunk-MAMHV6Q3.js.map +1 -0
- package/dist/{chunk-DB3TA3RM.js → chunk-OXX7W2BC.js} +2 -2
- package/dist/{chunk-U4W2YZF6.js → chunk-PA4LKUPT.js} +2 -2
- package/dist/{chunk-JHAK5FMN.js → chunk-PAWWO4CQ.js} +13 -13
- package/dist/{chunk-MF43LVW7.js → chunk-QJHAL4GT.js} +3 -3
- package/dist/{chunk-TAJSLFIT.js → chunk-QNO7X7PC.js} +2 -2
- package/dist/{chunk-PTAUELBC.js → chunk-RGA4RIRY.js} +2 -2
- package/dist/{chunk-RDU2PZRW.js → chunk-RIIQTI3Q.js} +4 -4
- package/dist/{chunk-CCV7JFGQ.js → chunk-TI42625W.js} +2 -2
- package/dist/{chunk-5BIUBIVM.js → chunk-TUP3I2P4.js} +2 -2
- package/dist/{chunk-D7VGMMBR.js → chunk-WKRVHRWY.js} +2 -2
- package/dist/{chunk-TR7SOQIS.js → chunk-YSXPWTTW.js} +3 -3
- package/dist/{chunk-MFEYGNH2.js → chunk-ZJXYWHQT.js} +2 -2
- package/dist/cli.js +6 -6
- package/dist/{creatives-72OJSUFE.js → creatives-CPLH3KHQ.js} +3 -3
- package/dist/{creatives-TUCOHGY4.js → creatives-DQNJ3J3Q.js} +6 -6
- package/dist/{creatives-J5LXNIWE.js → creatives-J64BHJA7.js} +2 -2
- package/dist/{critique-EM6T6RY7.js → critique-7HVFNPMU.js} +6 -6
- package/dist/engine/index.js +4 -4
- package/dist/{hubspot-QVSAGT34.js → hubspot-EQI27OIR.js} +10 -4
- package/dist/hubspot-EQI27OIR.js.map +1 -0
- package/dist/{ideas-X2IQXG3U.js → ideas-T5P5OOU5.js} +4 -4
- package/dist/{linkedin-5BSFN3EA.js → linkedin-DIMRQQWU.js} +3 -3
- package/dist/{make-LHLR54IM.js → make-PQU6T3LJ.js} +14 -14
- package/dist/{meta-573FUKTB.js → meta-SPPSYRMC.js} +7 -7
- package/dist/{rerun-P7BJ33RX.js → rerun-COAQLIJG.js} +16 -16
- package/dist/{rules-QEKCMD5H.js → rules-23LHDFC5.js} +4 -4
- package/dist/{run-LVVTOM4B.js → run-6MKMFLZK.js} +16 -16
- package/dist/{scaffold-ad-YVWTZ2JP.js → scaffold-ad-W6XC77IJ.js} +11 -11
- package/dist/{scaffold-static-ad-AY6G4SQM.js → scaffold-static-ad-BEKS35KV.js} +19 -19
- package/dist/{scaffold-video-YHU4WCSS.js → scaffold-video-N6CANP4G.js} +10 -10
- package/dist/{schema-DMZCRTXQ.js → schema-4GRR5NAI.js} +1 -1
- package/dist/{select-MMOVRFNE.js → select-EWXF3CKB.js} +7 -7
- package/dist/{set-7FBICG5P.js → set-JIPL77UJ.js} +7 -7
- package/dist/{set-prompt-XTZ3KJOV.js → set-prompt-4RYZ25BJ.js} +7 -7
- package/dist/{stale-TA5EGT67.js → stale-C72KG4C4.js} +7 -7
- package/dist/{sync-definition-E4SJPE53.js → sync-definition-N5YCJUQ7.js} +10 -10
- package/dist/{translate-5X533F6J.js → translate-IBYLAVFU.js} +11 -11
- package/dist/{validate-2TAMLZN2.js → validate-TIX44YWI.js} +11 -11
- package/dist/{viewer-check-DU7JROZJ.js → viewer-check-JJYYH7MQ.js} +6 -6
- package/package.json +1 -1
- package/dist/chunk-LNOI2WZ5.js.map +0 -1
- package/dist/hubspot-QVSAGT34.js.map +0 -1
- /package/dist/{activities-RYNGZIVX.js.map → activities-LC64DAAK.js.map} +0 -0
- /package/dist/{add-UEM2ZBHL.js.map → add-D6ISSYOI.js.map} +0 -0
- /package/dist/{ads-XJ7HSPQL.js.map → ads-F6IN27LX.js.map} +0 -0
- /package/dist/{ads-EYCK5FW5.js.map → ads-ZR5D7BZT.js.map} +0 -0
- /package/dist/{adsets-GI2AMYYV.js.map → adsets-3NIYL2GQ.js.map} +0 -0
- /package/dist/{audiences-FWRHDFUF.js.map → audiences-DL267GNQ.js.map} +0 -0
- /package/dist/{brief-TRRAYXYE.js.map → brief-WGNRT2KX.js.map} +0 -0
- /package/dist/{campaigns-LZRGPANP.js.map → campaigns-KGTIKNN6.js.map} +0 -0
- /package/dist/{campaigns-2HSADSRS.js.map → campaigns-RXDC5FSQ.js.map} +0 -0
- /package/dist/{canvas-H7NEBLIL.js.map → canvas-23IQXJEF.js.map} +0 -0
- /package/dist/{catalog-JUPGQN5T.js.map → catalog-MGKBY4O4.js.map} +0 -0
- /package/dist/{check-IUIYFYGF.js.map → check-ZLJ26FS4.js.map} +0 -0
- /package/dist/{chunk-EL5HNBRX.js.map → chunk-4TEQIAZG.js.map} +0 -0
- /package/dist/{chunk-A3KYQTDR.js.map → chunk-6JLQZNS4.js.map} +0 -0
- /package/dist/{chunk-QKPQ3YUV.js.map → chunk-AFNO7SSI.js.map} +0 -0
- /package/dist/{chunk-OJMN4VNG.js.map → chunk-F3OYRVLY.js.map} +0 -0
- /package/dist/{chunk-3KSMMYXO.js.map → chunk-FZNCML5Q.js.map} +0 -0
- /package/dist/{chunk-353LBUUN.js.map → chunk-GFM3OEFZ.js.map} +0 -0
- /package/dist/{chunk-QXEKUHNO.js.map → chunk-HUG6KXFO.js.map} +0 -0
- /package/dist/{chunk-IGVUW6H7.js.map → chunk-I3XV6JLQ.js.map} +0 -0
- /package/dist/{chunk-T75ACB3M.js.map → chunk-M677IBYO.js.map} +0 -0
- /package/dist/{chunk-DB3TA3RM.js.map → chunk-OXX7W2BC.js.map} +0 -0
- /package/dist/{chunk-U4W2YZF6.js.map → chunk-PA4LKUPT.js.map} +0 -0
- /package/dist/{chunk-JHAK5FMN.js.map → chunk-PAWWO4CQ.js.map} +0 -0
- /package/dist/{chunk-MF43LVW7.js.map → chunk-QJHAL4GT.js.map} +0 -0
- /package/dist/{chunk-TAJSLFIT.js.map → chunk-QNO7X7PC.js.map} +0 -0
- /package/dist/{chunk-PTAUELBC.js.map → chunk-RGA4RIRY.js.map} +0 -0
- /package/dist/{chunk-RDU2PZRW.js.map → chunk-RIIQTI3Q.js.map} +0 -0
- /package/dist/{chunk-CCV7JFGQ.js.map → chunk-TI42625W.js.map} +0 -0
- /package/dist/{chunk-5BIUBIVM.js.map → chunk-TUP3I2P4.js.map} +0 -0
- /package/dist/{chunk-D7VGMMBR.js.map → chunk-WKRVHRWY.js.map} +0 -0
- /package/dist/{chunk-TR7SOQIS.js.map → chunk-YSXPWTTW.js.map} +0 -0
- /package/dist/{chunk-MFEYGNH2.js.map → chunk-ZJXYWHQT.js.map} +0 -0
- /package/dist/{creatives-72OJSUFE.js.map → creatives-CPLH3KHQ.js.map} +0 -0
- /package/dist/{creatives-TUCOHGY4.js.map → creatives-DQNJ3J3Q.js.map} +0 -0
- /package/dist/{creatives-J5LXNIWE.js.map → creatives-J64BHJA7.js.map} +0 -0
- /package/dist/{critique-EM6T6RY7.js.map → critique-7HVFNPMU.js.map} +0 -0
- /package/dist/{ideas-X2IQXG3U.js.map → ideas-T5P5OOU5.js.map} +0 -0
- /package/dist/{linkedin-5BSFN3EA.js.map → linkedin-DIMRQQWU.js.map} +0 -0
- /package/dist/{make-LHLR54IM.js.map → make-PQU6T3LJ.js.map} +0 -0
- /package/dist/{meta-573FUKTB.js.map → meta-SPPSYRMC.js.map} +0 -0
- /package/dist/{rerun-P7BJ33RX.js.map → rerun-COAQLIJG.js.map} +0 -0
- /package/dist/{rules-QEKCMD5H.js.map → rules-23LHDFC5.js.map} +0 -0
- /package/dist/{run-LVVTOM4B.js.map → run-6MKMFLZK.js.map} +0 -0
- /package/dist/{scaffold-ad-YVWTZ2JP.js.map → scaffold-ad-W6XC77IJ.js.map} +0 -0
- /package/dist/{scaffold-static-ad-AY6G4SQM.js.map → scaffold-static-ad-BEKS35KV.js.map} +0 -0
- /package/dist/{scaffold-video-YHU4WCSS.js.map → scaffold-video-N6CANP4G.js.map} +0 -0
- /package/dist/{schema-DMZCRTXQ.js.map → schema-4GRR5NAI.js.map} +0 -0
- /package/dist/{select-MMOVRFNE.js.map → select-EWXF3CKB.js.map} +0 -0
- /package/dist/{set-7FBICG5P.js.map → set-JIPL77UJ.js.map} +0 -0
- /package/dist/{set-prompt-XTZ3KJOV.js.map → set-prompt-4RYZ25BJ.js.map} +0 -0
- /package/dist/{stale-TA5EGT67.js.map → stale-C72KG4C4.js.map} +0 -0
- /package/dist/{sync-definition-E4SJPE53.js.map → sync-definition-N5YCJUQ7.js.map} +0 -0
- /package/dist/{translate-5X533F6J.js.map → translate-IBYLAVFU.js.map} +0 -0
- /package/dist/{validate-2TAMLZN2.js.map → validate-TIX44YWI.js.map} +0 -0
- /package/dist/{viewer-check-DU7JROZJ.js.map → viewer-check-JJYYH7MQ.js.map} +0 -0
package/README.md
CHANGED
|
@@ -300,6 +300,9 @@ printed a readable view instead). `canvas run` and `canvas validate` declare the
|
|
|
300
300
|
(the per-node detail behind their compact result). Commands that print no data envelope
|
|
301
301
|
(`canvas sync-definition`, `analytics sending-events`) refuse it.
|
|
302
302
|
|
|
303
|
+
A Meta or LinkedIn `--full` listing that prints over 20 KB of rows adds a hint naming the
|
|
304
|
+
`--fields` call that reads only what you need, and the fields the compact row lacks.
|
|
305
|
+
|
|
303
306
|
### Reading another company: `--company <id>`
|
|
304
307
|
|
|
305
308
|
Only an organization's workspace (where its Reports across every company are built) may name a company. Any read takes `--company <id>` and runs as that company of the same organization; a write, stage or generate naming a company is refused, and so is any credential of an ordinary company. The ids come from:
|
|
@@ -5310,7 +5313,7 @@ baker hubspot meetings view <slug> --as-node # the form.external blob for a f
|
|
|
5310
5313
|
**`contacts summary` flags:** `--days <1-365>` (default 30) over contact creation date. Returns counts only — total contacts, how many have an owner, and the lifecycle-stage split — never a name or an email. `truncated: true` means the page budget ran out, so the counts are floors.
|
|
5311
5314
|
**`contacts lookup`:** positional `<email>`; returns that contact's lifecycle stage, owner, the account (company) it was filed under, and associated deals with their stage. `dealsReadable: false` / `companyReadable: false` mean the connection does not cover deals or accounts, so an empty `deals` or a null `company` is unknown rather than absent. `found: false` means no contact with that email — the lead never reached the CRM, which is a finding rather than an error. `--properties utm_campaign,utm_source` (up to 25) also returns those contact properties under `contact.properties`, each value or `null`; a name the account does not define is left out and named in a hint.
|
|
5312
5315
|
**`contacts properties`:** no flags; returns every contact property with a closed list of values — `{ name, label, groupName, options: [{ value, label }] }` — the ones a HubSpot-read source can watch. Names are HubSpot's internal ones; hand them to `baker analytics sources --create-hubspot --property <name> --value <value>` as printed. No personal data.
|
|
5313
|
-
**`meetings list` flags:** `--search <text
|
|
5316
|
+
**`meetings list` flags:** `--search <text>` (a piece of the calendar's name or slug, or a pasted booking link such as `meetings.hubspot.com/<slug>`), `--redirecting-only`.
|
|
5314
5317
|
**`meetings view`:** positional `<slug>` — the only reliable source for a calendar's booking fields (HubSpot omits `customParams` from the list endpoint, so `fieldCount: null` there means unknown, not zero); `--as-node` as above.
|
|
5315
5318
|
|
|
5316
5319
|
**`HUBSPOT_RECONNECT_REQUIRED`** is returned when HubSpot is connected but that account never granted access to what the command needs — a HubSpot grant is fixed at the moment the user approves it, so an account connected before a capability shipped cannot serve it. It is not the same as `NO_HUBSPOT_CONNECTION`: the connection works, and only the user can widen it by reconnecting from Brain → Integrations → Platforms. The error carries a `fix` describing exactly that.
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
registerMetaListSchema,
|
|
4
4
|
shapeMetaListRows,
|
|
5
5
|
writeMetaListRows
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WKRVHRWY.js";
|
|
7
7
|
import "./chunk-PRPSV4VB.js";
|
|
8
8
|
import {
|
|
9
9
|
csvOrJson,
|
|
@@ -14,7 +14,7 @@ import "./chunk-QALAJNBG.js";
|
|
|
14
14
|
import {
|
|
15
15
|
NO_CACHE_ARG
|
|
16
16
|
} from "./chunk-TBT6NWDX.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-MAMHV6Q3.js";
|
|
18
18
|
import "./chunk-NX4EB2TK.js";
|
|
19
19
|
import {
|
|
20
20
|
apiGet
|
|
@@ -81,4 +81,4 @@ Examples:
|
|
|
81
81
|
export {
|
|
82
82
|
activitiesCommand
|
|
83
83
|
};
|
|
84
|
-
//# sourceMappingURL=activities-
|
|
84
|
+
//# sourceMappingURL=activities-LC64DAAK.js.map
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
readForms,
|
|
7
7
|
readLandings,
|
|
8
8
|
readReports
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QJHAL4GT.js";
|
|
10
10
|
import {
|
|
11
11
|
rulesView
|
|
12
12
|
} from "./chunk-OLIEY4WM.js";
|
|
13
13
|
import {
|
|
14
14
|
fetchRunRecord
|
|
15
15
|
} from "./chunk-3IJKXTDQ.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-ZJXYWHQT.js";
|
|
17
17
|
import "./chunk-RWKK7GMY.js";
|
|
18
18
|
import "./chunk-WBPDT3XP.js";
|
|
19
19
|
import {
|
|
@@ -50,8 +50,8 @@ import {
|
|
|
50
50
|
import "./chunk-ZSC3LYTP.js";
|
|
51
51
|
import {
|
|
52
52
|
marketFromCompanyDoc
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import "./chunk-
|
|
53
|
+
} from "./chunk-AFNO7SSI.js";
|
|
54
|
+
import "./chunk-MAMHV6Q3.js";
|
|
55
55
|
import {
|
|
56
56
|
askJev
|
|
57
57
|
} from "./chunk-XJCGSPCT.js";
|
|
@@ -659,4 +659,4 @@ export {
|
|
|
659
659
|
savedHint,
|
|
660
660
|
widenedRule
|
|
661
661
|
};
|
|
662
|
-
//# sourceMappingURL=add-
|
|
662
|
+
//# sourceMappingURL=add-D6ISSYOI.js.map
|
|
@@ -34,8 +34,8 @@ Full guides: __tooling__/docs/tools/baker/ads-<platform>.md (google|meta|linkedi
|
|
|
34
34
|
},
|
|
35
35
|
subCommands: {
|
|
36
36
|
google: () => import("./google-Y5BQU36K.js").then((m) => m.googleCommand),
|
|
37
|
-
meta: () => import("./meta-
|
|
38
|
-
linkedin: () => import("./linkedin-
|
|
37
|
+
meta: () => import("./meta-SPPSYRMC.js").then((m) => m.metaCommand),
|
|
38
|
+
linkedin: () => import("./linkedin-DIMRQQWU.js").then((m) => m.linkedinCommand),
|
|
39
39
|
x: () => import("./x-ORCSH3J5.js").then((m) => m.xCommand),
|
|
40
40
|
chatgpt: () => import("./chatgpt-U5FFOZAO.js").then((m) => m.chatgptCommand),
|
|
41
41
|
performance: () => import("./performance-TP4MEXJC.js").then((m) => m.performanceCommand),
|
|
@@ -45,4 +45,4 @@ Full guides: __tooling__/docs/tools/baker/ads-<platform>.md (google|meta|linkedi
|
|
|
45
45
|
export {
|
|
46
46
|
adsCommand
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=ads-
|
|
48
|
+
//# sourceMappingURL=ads-F6IN27LX.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
registerMetaListSchema,
|
|
7
7
|
shapeMetaListRows,
|
|
8
8
|
writeMetaListRows
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WKRVHRWY.js";
|
|
10
10
|
import "./chunk-PRPSV4VB.js";
|
|
11
11
|
import {
|
|
12
12
|
NAME_CONTAINS_ARG,
|
|
@@ -20,7 +20,7 @@ import "./chunk-QALAJNBG.js";
|
|
|
20
20
|
import {
|
|
21
21
|
NO_CACHE_ARG
|
|
22
22
|
} from "./chunk-TBT6NWDX.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-MAMHV6Q3.js";
|
|
24
24
|
import "./chunk-NX4EB2TK.js";
|
|
25
25
|
import {
|
|
26
26
|
apiGet
|
|
@@ -136,4 +136,4 @@ Examples:
|
|
|
136
136
|
export {
|
|
137
137
|
adsListCommand
|
|
138
138
|
};
|
|
139
|
-
//# sourceMappingURL=ads-
|
|
139
|
+
//# sourceMappingURL=ads-ZR5D7BZT.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
audienceNamesOf,
|
|
5
5
|
flattenViewerRows,
|
|
6
6
|
readAudienceNames
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HUG6KXFO.js";
|
|
8
8
|
import {
|
|
9
9
|
IDS_ARG,
|
|
10
10
|
META_LIST_SHAPE_ARGS,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
registerMetaListSchema,
|
|
15
15
|
shapeMetaListRows,
|
|
16
16
|
writeMetaListRows
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WKRVHRWY.js";
|
|
18
18
|
import "./chunk-PRPSV4VB.js";
|
|
19
19
|
import {
|
|
20
20
|
NAME_CONTAINS_ARG,
|
|
@@ -37,8 +37,8 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
NO_CACHE_ARG
|
|
39
39
|
} from "./chunk-TBT6NWDX.js";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-AFNO7SSI.js";
|
|
41
|
+
import "./chunk-MAMHV6Q3.js";
|
|
42
42
|
import "./chunk-6U2SODK6.js";
|
|
43
43
|
import "./chunk-XJCGSPCT.js";
|
|
44
44
|
import "./chunk-YSZAKQIA.js";
|
|
@@ -195,4 +195,4 @@ Examples:
|
|
|
195
195
|
export {
|
|
196
196
|
adsetsCommand
|
|
197
197
|
};
|
|
198
|
-
//# sourceMappingURL=adsets-
|
|
198
|
+
//# sourceMappingURL=adsets-3NIYL2GQ.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
registerMetaListSchema,
|
|
5
5
|
shapeMetaListRows,
|
|
6
6
|
writeMetaListRows
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WKRVHRWY.js";
|
|
8
8
|
import "./chunk-PRPSV4VB.js";
|
|
9
9
|
import {
|
|
10
10
|
csvOrJson,
|
|
@@ -15,7 +15,7 @@ import "./chunk-QALAJNBG.js";
|
|
|
15
15
|
import {
|
|
16
16
|
NO_CACHE_ARG
|
|
17
17
|
} from "./chunk-TBT6NWDX.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-MAMHV6Q3.js";
|
|
19
19
|
import "./chunk-NX4EB2TK.js";
|
|
20
20
|
import {
|
|
21
21
|
apiGet
|
|
@@ -114,4 +114,4 @@ Examples:
|
|
|
114
114
|
export {
|
|
115
115
|
audiencesCommand
|
|
116
116
|
};
|
|
117
|
-
//# sourceMappingURL=audiences-
|
|
117
|
+
//# sourceMappingURL=audiences-DL267GNQ.js.map
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
} from "./chunk-FABCZU63.js";
|
|
4
4
|
import {
|
|
5
5
|
liveViewerLookups
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FZNCML5Q.js";
|
|
7
7
|
import "./chunk-T7V2OPW2.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-ZJXYWHQT.js";
|
|
9
9
|
import "./chunk-RWKK7GMY.js";
|
|
10
10
|
import "./chunk-WBPDT3XP.js";
|
|
11
11
|
import {
|
|
@@ -16,7 +16,7 @@ import "./chunk-5RDZG3ZB.js";
|
|
|
16
16
|
import {
|
|
17
17
|
buildNext,
|
|
18
18
|
ideasReport
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-F3OYRVLY.js";
|
|
20
20
|
import "./chunk-2VTJOMEO.js";
|
|
21
21
|
import "./chunk-EKX37C3T.js";
|
|
22
22
|
import {
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
import "./chunk-DV3T4IY5.js";
|
|
37
37
|
import "./chunk-BK7JC6XH.js";
|
|
38
38
|
import "./chunk-5ELXWFB4.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-HUG6KXFO.js";
|
|
40
40
|
import "./chunk-RZFR2H4D.js";
|
|
41
41
|
import "./chunk-ERSX3MKH.js";
|
|
42
42
|
import "./chunk-7I62SEZ6.js";
|
|
@@ -49,8 +49,8 @@ import "./chunk-OWFZLCE2.js";
|
|
|
49
49
|
import "./chunk-ZSC3LYTP.js";
|
|
50
50
|
import {
|
|
51
51
|
viewerFromKnowledge
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import "./chunk-
|
|
52
|
+
} from "./chunk-AFNO7SSI.js";
|
|
53
|
+
import "./chunk-MAMHV6Q3.js";
|
|
54
54
|
import "./chunk-6U2SODK6.js";
|
|
55
55
|
import "./chunk-XJCGSPCT.js";
|
|
56
56
|
import "./chunk-YSZAKQIA.js";
|
|
@@ -509,4 +509,4 @@ export {
|
|
|
509
509
|
briefHints,
|
|
510
510
|
whatWorks
|
|
511
511
|
};
|
|
512
|
-
//# sourceMappingURL=brief-
|
|
512
|
+
//# sourceMappingURL=brief-WGNRT2KX.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-TBT6NWDX.js";
|
|
13
13
|
import {
|
|
14
14
|
shapeListRows
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MAMHV6Q3.js";
|
|
16
16
|
import {
|
|
17
17
|
writeAdsJson,
|
|
18
18
|
writeAdsOutput
|
|
@@ -191,4 +191,4 @@ Examples:
|
|
|
191
191
|
export {
|
|
192
192
|
campaignsCommand
|
|
193
193
|
};
|
|
194
|
-
//# sourceMappingURL=campaigns-
|
|
194
|
+
//# sourceMappingURL=campaigns-KGTIKNN6.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
registerMetaListSchema,
|
|
7
7
|
shapeMetaListRows,
|
|
8
8
|
writeMetaListRows
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WKRVHRWY.js";
|
|
10
10
|
import "./chunk-PRPSV4VB.js";
|
|
11
11
|
import {
|
|
12
12
|
NAME_CONTAINS_ARG,
|
|
@@ -20,7 +20,7 @@ import "./chunk-QALAJNBG.js";
|
|
|
20
20
|
import {
|
|
21
21
|
NO_CACHE_ARG
|
|
22
22
|
} from "./chunk-TBT6NWDX.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-MAMHV6Q3.js";
|
|
24
24
|
import "./chunk-NX4EB2TK.js";
|
|
25
25
|
import {
|
|
26
26
|
apiGet
|
|
@@ -136,4 +136,4 @@ export {
|
|
|
136
136
|
advantagePlusHints,
|
|
137
137
|
campaignsCommand
|
|
138
138
|
};
|
|
139
|
-
//# sourceMappingURL=campaigns-
|
|
139
|
+
//# sourceMappingURL=campaigns-RXDC5FSQ.js.map
|
|
@@ -26,23 +26,23 @@ Subcommands:
|
|
|
26
26
|
Full guide: __tooling__/docs/tools/baker/canvas.md`
|
|
27
27
|
},
|
|
28
28
|
subCommands: {
|
|
29
|
-
run: () => import("./run-
|
|
30
|
-
rerun: () => import("./rerun-
|
|
31
|
-
validate: () => import("./validate-
|
|
32
|
-
critique: () => import("./critique-
|
|
33
|
-
"viewer-check": () => import("./viewer-check-
|
|
34
|
-
catalog: () => import("./catalog-
|
|
29
|
+
run: () => import("./run-6MKMFLZK.js").then((m) => m.runCommand),
|
|
30
|
+
rerun: () => import("./rerun-COAQLIJG.js").then((m) => m.rerunCommand),
|
|
31
|
+
validate: () => import("./validate-TIX44YWI.js").then((m) => m.validateCommand),
|
|
32
|
+
critique: () => import("./critique-7HVFNPMU.js").then((m) => m.critiqueCommand),
|
|
33
|
+
"viewer-check": () => import("./viewer-check-JJYYH7MQ.js").then((m) => m.viewerCheckCommand),
|
|
34
|
+
catalog: () => import("./catalog-MGKBY4O4.js").then((m) => m.catalogCommand),
|
|
35
35
|
inspect: () => import("./inspect-YZR7E2C4.js").then((m) => m.inspectCommand),
|
|
36
|
-
"scaffold-ad": () => import("./scaffold-ad-
|
|
37
|
-
"scaffold-video": () => import("./scaffold-video-
|
|
38
|
-
"scaffold-static-ad": () => import("./scaffold-static-ad-
|
|
39
|
-
set: () => import("./set-
|
|
40
|
-
"set-prompt": () => import("./set-prompt-
|
|
41
|
-
"sync-definition": () => import("./sync-definition-
|
|
42
|
-
stale: () => import("./stale-
|
|
36
|
+
"scaffold-ad": () => import("./scaffold-ad-W6XC77IJ.js").then((m) => m.scaffoldAdCommand),
|
|
37
|
+
"scaffold-video": () => import("./scaffold-video-N6CANP4G.js").then((m) => m.scaffoldVideoCommand),
|
|
38
|
+
"scaffold-static-ad": () => import("./scaffold-static-ad-BEKS35KV.js").then((m) => m.scaffoldStaticAdCommand),
|
|
39
|
+
set: () => import("./set-JIPL77UJ.js").then((m) => m.setCommand),
|
|
40
|
+
"set-prompt": () => import("./set-prompt-4RYZ25BJ.js").then((m) => m.setPromptCommand),
|
|
41
|
+
"sync-definition": () => import("./sync-definition-N5YCJUQ7.js").then((m) => m.syncDefinitionCommand),
|
|
42
|
+
stale: () => import("./stale-C72KG4C4.js").then((m) => m.staleCommand)
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
export {
|
|
46
46
|
canvasCommand
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=canvas-
|
|
48
|
+
//# sourceMappingURL=canvas-23IQXJEF.js.map
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
catalogView,
|
|
3
3
|
defaultRegistry,
|
|
4
4
|
generateCatalog
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-TI42625W.js";
|
|
6
|
+
import "./chunk-QNO7X7PC.js";
|
|
7
7
|
import "./chunk-IFAZWSIJ.js";
|
|
8
8
|
import "./chunk-DGCUPJZD.js";
|
|
9
9
|
import "./chunk-E4DHH5EL.js";
|
|
@@ -11,8 +11,8 @@ import "./chunk-NC6NLGN3.js";
|
|
|
11
11
|
import "./chunk-UF2VEWM7.js";
|
|
12
12
|
import "./chunk-OWFZLCE2.js";
|
|
13
13
|
import "./chunk-ZSC3LYTP.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-AFNO7SSI.js";
|
|
15
|
+
import "./chunk-MAMHV6Q3.js";
|
|
16
16
|
import "./chunk-6U2SODK6.js";
|
|
17
17
|
import "./chunk-XJCGSPCT.js";
|
|
18
18
|
import "./chunk-YSZAKQIA.js";
|
|
@@ -87,4 +87,4 @@ function namedNodes(ids, node) {
|
|
|
87
87
|
export {
|
|
88
88
|
catalogCommand
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=catalog-
|
|
90
|
+
//# sourceMappingURL=catalog-MGKBY4O4.js.map
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
checkLandings,
|
|
6
6
|
checkReports,
|
|
7
7
|
checkSurface
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QJHAL4GT.js";
|
|
9
9
|
import "./chunk-OLIEY4WM.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-ZJXYWHQT.js";
|
|
11
11
|
import "./chunk-RWKK7GMY.js";
|
|
12
12
|
import "./chunk-WBPDT3XP.js";
|
|
13
13
|
import "./chunk-R2G6SQ3U.js";
|
|
@@ -20,8 +20,8 @@ import "./chunk-NC6NLGN3.js";
|
|
|
20
20
|
import "./chunk-UF2VEWM7.js";
|
|
21
21
|
import "./chunk-OWFZLCE2.js";
|
|
22
22
|
import "./chunk-ZSC3LYTP.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-AFNO7SSI.js";
|
|
24
|
+
import "./chunk-MAMHV6Q3.js";
|
|
25
25
|
import "./chunk-XJCGSPCT.js";
|
|
26
26
|
import "./chunk-YSZAKQIA.js";
|
|
27
27
|
import "./chunk-QHKPHGGR.js";
|
|
@@ -52,4 +52,4 @@ export {
|
|
|
52
52
|
checkReports,
|
|
53
53
|
checkSurface
|
|
54
54
|
};
|
|
55
|
-
//# sourceMappingURL=check-
|
|
55
|
+
//# sourceMappingURL=check-ZLJ26FS4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseRefExpr
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QNO7X7PC.js";
|
|
4
4
|
import {
|
|
5
5
|
collectAssetRefLikes,
|
|
6
6
|
isPersistedAssetRef
|
|
@@ -172,4 +172,4 @@ export {
|
|
|
172
172
|
buildInitialRunRecord,
|
|
173
173
|
buildFailedRunRecord
|
|
174
174
|
};
|
|
175
|
-
//# sourceMappingURL=chunk-
|
|
175
|
+
//# sourceMappingURL=chunk-4TEQIAZG.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
prepareCanvas,
|
|
3
3
|
unsuppliedPlaceholderAssets
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RIIQTI3Q.js";
|
|
5
5
|
import {
|
|
6
6
|
readTurnRenders,
|
|
7
7
|
turnRenderRefusal
|
|
@@ -199,4 +199,4 @@ export {
|
|
|
199
199
|
staleCreatives,
|
|
200
200
|
clearLegacyDirtyMarker
|
|
201
201
|
};
|
|
202
|
-
//# sourceMappingURL=chunk-
|
|
202
|
+
//# sourceMappingURL=chunk-6JLQZNS4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
asRecord
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MAMHV6Q3.js";
|
|
4
4
|
|
|
5
5
|
// src/viewer-profile.ts
|
|
6
6
|
var VIEWER_TEMPERATURE_VALUES = ["cold", "warm", "hot"];
|
|
@@ -314,4 +314,4 @@ export {
|
|
|
314
314
|
AWARENESS_VALUES,
|
|
315
315
|
viewerFromKnowledge
|
|
316
316
|
};
|
|
317
|
-
//# sourceMappingURL=chunk-
|
|
317
|
+
//# sourceMappingURL=chunk-AFNO7SSI.js.map
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk-OWFZLCE2.js";
|
|
28
28
|
import {
|
|
29
29
|
marketFromCompanyDoc
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-AFNO7SSI.js";
|
|
31
31
|
import {
|
|
32
32
|
registerSchema,
|
|
33
33
|
writeJson
|
|
@@ -167,4 +167,4 @@ export {
|
|
|
167
167
|
ideasReport,
|
|
168
168
|
ideasCommand
|
|
169
169
|
};
|
|
170
|
-
//# sourceMappingURL=chunk-
|
|
170
|
+
//# sourceMappingURL=chunk-F3OYRVLY.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-T7V2OPW2.js";
|
|
7
7
|
import {
|
|
8
8
|
heldRules
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZJXYWHQT.js";
|
|
10
10
|
import {
|
|
11
11
|
companyLine,
|
|
12
12
|
readCompanyReading
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
adSetViewerRows,
|
|
16
16
|
audienceNamesOf,
|
|
17
17
|
readAudienceNames
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HUG6KXFO.js";
|
|
19
19
|
import {
|
|
20
20
|
rememberedJev
|
|
21
21
|
} from "./chunk-RZFR2H4D.js";
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
describeMarket,
|
|
44
44
|
marketFromCompanyDoc,
|
|
45
45
|
viewerFromKnowledge
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-AFNO7SSI.js";
|
|
47
47
|
import {
|
|
48
48
|
askJev
|
|
49
49
|
} from "./chunk-XJCGSPCT.js";
|
|
@@ -729,4 +729,4 @@ export {
|
|
|
729
729
|
viewerCheckBeforeRender,
|
|
730
730
|
viewerCheckCommand
|
|
731
731
|
};
|
|
732
|
-
//# sourceMappingURL=chunk-
|
|
732
|
+
//# sourceMappingURL=chunk-FZNCML5Q.js.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
nodeParamsPreview
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RGA4RIRY.js";
|
|
4
4
|
import {
|
|
5
5
|
creativeSlugFromCanvasPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4TEQIAZG.js";
|
|
7
7
|
import {
|
|
8
8
|
parseDefinitionDelivery,
|
|
9
9
|
parseDefinitionSeriesPlace,
|
|
10
10
|
parseDefinitionSourceFields,
|
|
11
11
|
parseDefinitionStrategyFields,
|
|
12
12
|
prepareCanvas
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RIIQTI3Q.js";
|
|
14
14
|
import {
|
|
15
15
|
BackendClient
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TI42625W.js";
|
|
17
17
|
import {
|
|
18
18
|
nodeDependencies
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QNO7X7PC.js";
|
|
20
20
|
import {
|
|
21
21
|
requireCredentialsFromEnv
|
|
22
22
|
} from "./chunk-QHKPHGGR.js";
|
|
@@ -221,4 +221,4 @@ export {
|
|
|
221
221
|
resolveCanvasPath,
|
|
222
222
|
syncDefinitionCommand
|
|
223
223
|
};
|
|
224
|
-
//# sourceMappingURL=chunk-
|
|
224
|
+
//# sourceMappingURL=chunk-GFM3OEFZ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
classifyAudience
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AFNO7SSI.js";
|
|
4
4
|
|
|
5
5
|
// src/audience-names.ts
|
|
6
6
|
var BUYERS_QUESTION = `\`name\` is the name an advertiser gave a custom audience in their Meta ad account, in any language. Is it made of people who have already bought from the brand: purchasers, paying customers, clients, a customer list? People who only visited, engaged, signed up, started a checkout or are leads or prospects have not bought. A lookalike of buyers is not buyers.`;
|
|
@@ -74,4 +74,4 @@ export {
|
|
|
74
74
|
flattenViewerRows,
|
|
75
75
|
audienceNamesOf
|
|
76
76
|
};
|
|
77
|
-
//# sourceMappingURL=chunk-
|
|
77
|
+
//# sourceMappingURL=chunk-HUG6KXFO.js.map
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
previousDelivered,
|
|
9
9
|
variantFiles,
|
|
10
10
|
versionRun
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YSXPWTTW.js";
|
|
12
12
|
import {
|
|
13
13
|
finalOutputLabelsFromCanvas
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4TEQIAZG.js";
|
|
15
15
|
import {
|
|
16
16
|
readRenderState,
|
|
17
17
|
recordSeen
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6JLQZNS4.js";
|
|
19
19
|
import {
|
|
20
20
|
GLOBAL_PROMPT_FILE,
|
|
21
21
|
fixStaticAd,
|
|
@@ -37,14 +37,14 @@ import {
|
|
|
37
37
|
staticDeliveryOf,
|
|
38
38
|
withDeliveredSizes,
|
|
39
39
|
withSizesFollowingFix
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-RIIQTI3Q.js";
|
|
41
41
|
import {
|
|
42
42
|
heldRules
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-ZJXYWHQT.js";
|
|
44
44
|
import {
|
|
45
45
|
leftOutNotes,
|
|
46
46
|
loadCompositionMeta
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-TI42625W.js";
|
|
48
48
|
import {
|
|
49
49
|
STATIC_ADAPT_FORMAT_ROLE,
|
|
50
50
|
isPlateCanvas,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
parseRefExpr,
|
|
53
53
|
relaidPictureRole,
|
|
54
54
|
rolesById
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-QNO7X7PC.js";
|
|
56
56
|
import {
|
|
57
57
|
staticVerdict
|
|
58
58
|
} from "./chunk-IFAZWSIJ.js";
|
|
@@ -408,4 +408,4 @@ export {
|
|
|
408
408
|
plainRunGraph,
|
|
409
409
|
shownBaseline
|
|
410
410
|
};
|
|
411
|
-
//# sourceMappingURL=chunk-
|
|
411
|
+
//# sourceMappingURL=chunk-I3XV6JLQ.js.map
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
previousDelivered,
|
|
5
5
|
shownPlateUrl,
|
|
6
6
|
versionRun
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YSXPWTTW.js";
|
|
8
8
|
import {
|
|
9
9
|
finalOutputLabelsFromCanvas
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4TEQIAZG.js";
|
|
11
11
|
import {
|
|
12
12
|
readRenderState
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6JLQZNS4.js";
|
|
14
14
|
import {
|
|
15
15
|
formatOfAdaptId,
|
|
16
16
|
isCustomersWords,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
parseDefinitionStrategyFields,
|
|
19
19
|
sameTag,
|
|
20
20
|
seriesMemberAd
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RIIQTI3Q.js";
|
|
22
22
|
import {
|
|
23
23
|
fetchRunRecord
|
|
24
24
|
} from "./chunk-3IJKXTDQ.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
nodesWithRole,
|
|
34
34
|
relaidPictureRole,
|
|
35
35
|
rolesById
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-QNO7X7PC.js";
|
|
37
37
|
import {
|
|
38
38
|
isAdSpec,
|
|
39
39
|
readAdSpec
|
|
@@ -326,4 +326,4 @@ export {
|
|
|
326
326
|
writeSeriesMemberCanvas,
|
|
327
327
|
seriesRunHints
|
|
328
328
|
};
|
|
329
|
-
//# sourceMappingURL=chunk-
|
|
329
|
+
//# sourceMappingURL=chunk-M677IBYO.js.map
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
layoutJson
|
|
3
|
+
} from "./chunk-2RTB2DDO.js";
|
|
4
|
+
|
|
1
5
|
// src/commands/ads/list-rows.ts
|
|
2
6
|
function asRecord(value) {
|
|
3
7
|
return typeof value === "object" && value !== null && !Array.isArray(value) ? value : void 0;
|
|
@@ -23,6 +27,32 @@ function projectFields(rows, paths) {
|
|
|
23
27
|
return projected;
|
|
24
28
|
});
|
|
25
29
|
}
|
|
30
|
+
var LARGE_FULL_BYTES = 20 * 1024;
|
|
31
|
+
function fullListingSizeHint(rows, raw, columns, compact) {
|
|
32
|
+
const fullBytes = Buffer.byteLength(layoutJson(raw));
|
|
33
|
+
if (fullBytes <= LARGE_FULL_BYTES) return void 0;
|
|
34
|
+
const compactBytes = Buffer.byteLength(layoutJson(rows.map(compact.row)));
|
|
35
|
+
const compactColumns = /* @__PURE__ */ new Set([...compact.columns, ...compact.whenPresent ?? []]);
|
|
36
|
+
const extra = columns.filter((column) => !compactColumns.has(column));
|
|
37
|
+
const example = [...["id", "name"].filter((key) => columns.includes(key)), ...extra.slice(0, 4)].join(",");
|
|
38
|
+
const nested = nestedPathExample(raw, extra);
|
|
39
|
+
return `--full printed ${Math.round(fullBytes / 1024)} KB for ${raw.length} rows; the compact row is ${Math.round(compactBytes / 1024)} KB. Ask for only the paths you read, e.g. --fields ${example}${nested ? ` (dots reach nested ones, e.g. ${nested})` : ""}. Fields here the compact row lacks: ${extra.join(", ")}.`;
|
|
40
|
+
}
|
|
41
|
+
function nestedPathExample(raw, columns) {
|
|
42
|
+
for (const column of columns) {
|
|
43
|
+
for (const row of raw) {
|
|
44
|
+
const child = Object.keys(asRecord(row[column]) ?? {})[0];
|
|
45
|
+
if (child) return `${column}.${child}`;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return void 0;
|
|
49
|
+
}
|
|
50
|
+
function fullRows(rows, raw, compact) {
|
|
51
|
+
const columns = /* @__PURE__ */ new Set();
|
|
52
|
+
for (const row of raw) for (const key of Object.keys(row)) columns.add(key);
|
|
53
|
+
const hint = fullListingSizeHint(rows, raw, [...columns], compact);
|
|
54
|
+
return { rows: raw, fields: [...columns], ...hint ? { hints: [hint] } : {} };
|
|
55
|
+
}
|
|
26
56
|
function shapeListRows(rows, args, compact) {
|
|
27
57
|
const raw = rows;
|
|
28
58
|
const fields = typeof args.fields === "string" ? args.fields : void 0;
|
|
@@ -55,11 +85,7 @@ function shapeListRows(rows, args, compact) {
|
|
|
55
85
|
};
|
|
56
86
|
}
|
|
57
87
|
}
|
|
58
|
-
if (args.full)
|
|
59
|
-
const columns = /* @__PURE__ */ new Set();
|
|
60
|
-
for (const row of raw) for (const key of Object.keys(row)) columns.add(key);
|
|
61
|
-
return { rows: raw, fields: [...columns] };
|
|
62
|
-
}
|
|
88
|
+
if (args.full) return fullRows(rows, raw, compact);
|
|
63
89
|
const shaped = rows.map(compact.row);
|
|
64
90
|
const present = (compact.whenPresent ?? []).filter((column) => shaped.some((row) => row[column] !== void 0));
|
|
65
91
|
return { rows: shaped, fields: [...compact.columns, ...present] };
|
|
@@ -69,4 +95,4 @@ export {
|
|
|
69
95
|
asRecord,
|
|
70
96
|
shapeListRows
|
|
71
97
|
};
|
|
72
|
-
//# sourceMappingURL=chunk-
|
|
98
|
+
//# sourceMappingURL=chunk-MAMHV6Q3.js.map
|