@koda-sl/baker-cli 0.851.0-dev.914922aaf → 0.852.0-dev.55d5a1c2b
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 +7 -3
- package/dist/{account-Z62BVYAI.js → account-PKCDR22I.js} +3 -3
- package/dist/{account-users-ZDZ7B4BX.js → account-users-UO4OVX3W.js} +3 -3
- package/dist/{accounts-SUIMNTTA.js → accounts-3PEIYK7V.js} +2 -2
- package/dist/{ads-BYETTX2Y.js → ads-ED5L55ME.js} +2 -2
- package/dist/{analytics-WLFBQOO4.js → analytics-DH7JTWW7.js} +2 -2
- package/dist/audience-size-NHQZQ7DR.js +137 -0
- package/dist/audience-size-NHQZQ7DR.js.map +1 -0
- package/dist/{audit-EHKSN2WS.js → audit-PEOYEN4A.js} +2 -2
- package/dist/{bid-pricing-HFBQ23DD.js → bid-pricing-HVUVHS3F.js} +2 -2
- package/dist/{campaign-groups-DKB3K7L4.js → campaign-groups-YGIZAWMT.js} +8 -8
- package/dist/{campaigns-6OYAQVIE.js → campaigns-FIU3FF7Q.js} +11 -11
- package/dist/{chunk-63XEBJIX.js → chunk-6G2EVVNW.js} +2 -2
- package/dist/{chunk-YXYUHTQM.js → chunk-D2BRYEOF.js} +2 -2
- package/dist/{chunk-WVXJYBWA.js → chunk-ZPLZHTWI.js} +2 -1
- package/dist/cli.js +2 -2
- package/dist/{companies-ITNWR5Q4.js → companies-65CQH5NZ.js} +3 -3
- package/dist/{conversation-SKZMGVA5.js → conversation-EUPDVCN5.js} +2 -2
- package/dist/{conversions-IMST22UQ.js → conversions-JN2QSYKN.js} +7 -7
- package/dist/{creatives-42PW2C24.js → creatives-FLL2NBH2.js} +8 -8
- package/dist/{demographics-K5WTHZCW.js → demographics-SR66Q3Q2.js} +2 -2
- package/dist/{draft-JGEZVDAS.js → draft-XV3SNAT5.js} +3 -3
- package/dist/{experiments-C4R65GA6.js → experiments-BT3QLENT.js} +3 -3
- package/dist/{facets-GXBTQCAW.js → facets-RTH4UYOZ.js} +51 -9
- package/dist/facets-RTH4UYOZ.js.map +1 -0
- package/dist/{forecast-NOQNCFTX.js → forecast-NH7BO45V.js} +2 -2
- package/dist/{hubspot-XZYXZ24P.js → hubspot-W5LYFWTH.js} +4 -10
- package/dist/hubspot-W5LYFWTH.js.map +1 -0
- package/dist/{leads-ZRHPHJRE.js → leads-QAMBOEX7.js} +2 -2
- package/dist/{linkedin-BD63QPGK.js → linkedin-DWWA5CGK.js} +46 -32
- package/dist/linkedin-DWWA5CGK.js.map +1 -0
- package/dist/{preview-66BGLU5H.js → preview-TK4Q53KQ.js} +2 -2
- package/dist/{resolve-NVL3FTQU.js → resolve-JEEIJJOP.js} +2 -2
- package/dist/{revenue-C24BDD5A.js → revenue-J7YSHGB6.js} +3 -3
- package/dist/{top-companies-KEV55RME.js → top-companies-XAZTHC44.js} +3 -3
- package/dist/{url-params-CXUAYJBD.js → url-params-5FXKA6J2.js} +2 -2
- package/dist/{write-commands-FUXBKDN7.js → write-commands-TDME3RU2.js} +3 -3
- package/package.json +1 -1
- package/dist/audience-size-ISJSPSRW.js +0 -77
- package/dist/audience-size-ISJSPSRW.js.map +0 -1
- package/dist/facets-GXBTQCAW.js.map +0 -1
- package/dist/hubspot-XZYXZ24P.js.map +0 -1
- package/dist/linkedin-BD63QPGK.js.map +0 -1
- /package/dist/{account-Z62BVYAI.js.map → account-PKCDR22I.js.map} +0 -0
- /package/dist/{account-users-ZDZ7B4BX.js.map → account-users-UO4OVX3W.js.map} +0 -0
- /package/dist/{accounts-SUIMNTTA.js.map → accounts-3PEIYK7V.js.map} +0 -0
- /package/dist/{ads-BYETTX2Y.js.map → ads-ED5L55ME.js.map} +0 -0
- /package/dist/{analytics-WLFBQOO4.js.map → analytics-DH7JTWW7.js.map} +0 -0
- /package/dist/{audit-EHKSN2WS.js.map → audit-PEOYEN4A.js.map} +0 -0
- /package/dist/{bid-pricing-HFBQ23DD.js.map → bid-pricing-HVUVHS3F.js.map} +0 -0
- /package/dist/{campaign-groups-DKB3K7L4.js.map → campaign-groups-YGIZAWMT.js.map} +0 -0
- /package/dist/{campaigns-6OYAQVIE.js.map → campaigns-FIU3FF7Q.js.map} +0 -0
- /package/dist/{chunk-63XEBJIX.js.map → chunk-6G2EVVNW.js.map} +0 -0
- /package/dist/{chunk-YXYUHTQM.js.map → chunk-D2BRYEOF.js.map} +0 -0
- /package/dist/{chunk-WVXJYBWA.js.map → chunk-ZPLZHTWI.js.map} +0 -0
- /package/dist/{companies-ITNWR5Q4.js.map → companies-65CQH5NZ.js.map} +0 -0
- /package/dist/{conversation-SKZMGVA5.js.map → conversation-EUPDVCN5.js.map} +0 -0
- /package/dist/{conversions-IMST22UQ.js.map → conversions-JN2QSYKN.js.map} +0 -0
- /package/dist/{creatives-42PW2C24.js.map → creatives-FLL2NBH2.js.map} +0 -0
- /package/dist/{demographics-K5WTHZCW.js.map → demographics-SR66Q3Q2.js.map} +0 -0
- /package/dist/{draft-JGEZVDAS.js.map → draft-XV3SNAT5.js.map} +0 -0
- /package/dist/{experiments-C4R65GA6.js.map → experiments-BT3QLENT.js.map} +0 -0
- /package/dist/{forecast-NOQNCFTX.js.map → forecast-NH7BO45V.js.map} +0 -0
- /package/dist/{leads-ZRHPHJRE.js.map → leads-QAMBOEX7.js.map} +0 -0
- /package/dist/{preview-66BGLU5H.js.map → preview-TK4Q53KQ.js.map} +0 -0
- /package/dist/{resolve-NVL3FTQU.js.map → resolve-JEEIJJOP.js.map} +0 -0
- /package/dist/{revenue-C24BDD5A.js.map → revenue-J7YSHGB6.js.map} +0 -0
- /package/dist/{top-companies-KEV55RME.js.map → top-companies-XAZTHC44.js.map} +0 -0
- /package/dist/{url-params-CXUAYJBD.js.map → url-params-5FXKA6J2.js.map} +0 -0
- /package/dist/{write-commands-FUXBKDN7.js.map → write-commands-TDME3RU2.js.map} +0 -0
package/README.md
CHANGED
|
@@ -1858,6 +1858,9 @@ baker ads linkedin conversions health --account-id 503001492
|
|
|
1858
1858
|
# "Pre-launch sanity check: is this audience too narrow?"
|
|
1859
1859
|
baker ads linkedin audience-size --account-id 503001492 --targeting-file targeting.json
|
|
1860
1860
|
|
|
1861
|
+
# "Which of these segments is big enough?" — one row per named segment (segment, total, active, warnings, or error)
|
|
1862
|
+
baker ads linkedin audience-size --account-id 503001492 --segments-file segments.json --output md # {"US 501+": {...}, …}, up to 50
|
|
1863
|
+
|
|
1861
1864
|
# "What bid should I start at?" — LinkedIn's suggested bid, in the account's currency
|
|
1862
1865
|
baker ads linkedin bid-pricing --account-id 503001492 \
|
|
1863
1866
|
--objective LEAD_GENERATION --cost-type CPC --targeting-file targeting.json
|
|
@@ -1915,8 +1918,9 @@ top-companies # pivot=MEMBER_COMPANY shortcut (ABM)
|
|
|
1915
1918
|
conversation # pivot=CONVERSATION_NODE_BUTTON shortcut (Sponsored Messaging)
|
|
1916
1919
|
|
|
1917
1920
|
facets list # all targeting facets (industries, seniorities, titles, employers, …)
|
|
1918
|
-
facets values --facet titles --query "..." # typeahead → URNs
|
|
1919
|
-
|
|
1921
|
+
facets values --facet titles --query "..." # typeahead → URNs (one search, sent whole)
|
|
1922
|
+
facets values --facet titles --queries 'a,"b, c"' # several typeaheads in one call (CSV); each row tagged with its query, a miss has an empty urn
|
|
1923
|
+
audience-size # estimate reach for a targetingCriteria payload + sweet-spot warnings; --segments-file sizes named segments, one row each
|
|
1920
1924
|
bid-pricing # min/suggested/max bid + playbook §06 floor (2/3 of suggested)
|
|
1921
1925
|
forecast # LinkedIn's results / cost forecast for a budget, bid and period
|
|
1922
1926
|
|
|
@@ -5283,7 +5287,7 @@ baker hubspot meetings view <slug> --as-node # the form.external blob for a f
|
|
|
5283
5287
|
**`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.
|
|
5284
5288
|
**`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.
|
|
5285
5289
|
**`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.
|
|
5286
|
-
**`meetings list` flags:** `--search <text
|
|
5290
|
+
**`meetings list` flags:** `--search <text>`, `--redirecting-only`.
|
|
5287
5291
|
**`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.
|
|
5288
5292
|
|
|
5289
5293
|
**`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.
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
csvOrJson,
|
|
3
3
|
handleLinkedinError,
|
|
4
4
|
resolveAccountIdArg
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZPLZHTWI.js";
|
|
6
6
|
import {
|
|
7
7
|
NO_CACHE_ARG
|
|
8
8
|
} from "./chunk-VHKEKK2L.js";
|
|
@@ -72,7 +72,7 @@ Examples:
|
|
|
72
72
|
},
|
|
73
73
|
subCommands: {
|
|
74
74
|
detail: accountDetailCommand,
|
|
75
|
-
"url-params": () => import("./write-commands-
|
|
75
|
+
"url-params": () => import("./write-commands-TDME3RU2.js").then((m) => m.accountUrlParamsCommand)
|
|
76
76
|
},
|
|
77
77
|
args: accountDetailCommand.args,
|
|
78
78
|
default: "detail"
|
|
@@ -80,4 +80,4 @@ Examples:
|
|
|
80
80
|
export {
|
|
81
81
|
accountCommand
|
|
82
82
|
};
|
|
83
|
-
//# sourceMappingURL=account-
|
|
83
|
+
//# sourceMappingURL=account-PKCDR22I.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bareAccountId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-D2BRYEOF.js";
|
|
4
4
|
import {
|
|
5
5
|
handleLinkedinError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZPLZHTWI.js";
|
|
7
7
|
import "./chunk-VTQG5SUE.js";
|
|
8
8
|
import "./chunk-UKENQSZ2.js";
|
|
9
9
|
import "./chunk-D5FY4FAK.js";
|
|
@@ -66,4 +66,4 @@ Example: baker ads linkedin account-users --account-id 513852526`
|
|
|
66
66
|
export {
|
|
67
67
|
accountUsersCommand
|
|
68
68
|
};
|
|
69
|
-
//# sourceMappingURL=account-users-
|
|
69
|
+
//# sourceMappingURL=account-users-UO4OVX3W.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
csvOrJson,
|
|
3
3
|
handleLinkedinError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZPLZHTWI.js";
|
|
5
5
|
import {
|
|
6
6
|
connectedResourceHints
|
|
7
7
|
} from "./chunk-P4NSJS54.js";
|
|
@@ -78,4 +78,4 @@ Examples:
|
|
|
78
78
|
export {
|
|
79
79
|
accountsCommand
|
|
80
80
|
};
|
|
81
|
-
//# sourceMappingURL=accounts-
|
|
81
|
+
//# sourceMappingURL=accounts-3PEIYK7V.js.map
|
|
@@ -35,7 +35,7 @@ Full guides: __tooling__/docs/tools/baker/ads-<platform>.md (google|meta|linkedi
|
|
|
35
35
|
subCommands: {
|
|
36
36
|
google: () => import("./google-GBGLPAP5.js").then((m) => m.googleCommand),
|
|
37
37
|
meta: () => import("./meta-2ZQ3CWLF.js").then((m) => m.metaCommand),
|
|
38
|
-
linkedin: () => import("./linkedin-
|
|
38
|
+
linkedin: () => import("./linkedin-DWWA5CGK.js").then((m) => m.linkedinCommand),
|
|
39
39
|
x: () => import("./x-WVWMOUAQ.js").then((m) => m.xCommand),
|
|
40
40
|
chatgpt: () => import("./chatgpt-DPLD452Q.js").then((m) => m.chatgptCommand),
|
|
41
41
|
performance: () => import("./performance-6I57ZQTD.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-ED5L55ME.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
handleLinkedinError,
|
|
5
5
|
resolveAccountIdArg,
|
|
6
6
|
todayIso
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZPLZHTWI.js";
|
|
8
8
|
import {
|
|
9
9
|
syncedFirstHint
|
|
10
10
|
} from "./chunk-KZUIVQ52.js";
|
|
@@ -458,4 +458,4 @@ Examples \u2014 common AI questions:
|
|
|
458
458
|
export {
|
|
459
459
|
analyticsCommand
|
|
460
460
|
};
|
|
461
|
-
//# sourceMappingURL=analytics-
|
|
461
|
+
//# sourceMappingURL=analytics-DH7JTWW7.js.map
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import {
|
|
2
|
+
csvOrJson,
|
|
3
|
+
handleLinkedinError,
|
|
4
|
+
isNoAccountsSelectedError,
|
|
5
|
+
loadTargetingArg,
|
|
6
|
+
resolveAccountIdArg
|
|
7
|
+
} from "./chunk-ZPLZHTWI.js";
|
|
8
|
+
import {
|
|
9
|
+
NO_CACHE_ARG
|
|
10
|
+
} from "./chunk-VHKEKK2L.js";
|
|
11
|
+
import {
|
|
12
|
+
writeAdsJson,
|
|
13
|
+
writeAdsOutput
|
|
14
|
+
} from "./chunk-65QWF5C5.js";
|
|
15
|
+
import "./chunk-624DWMDW.js";
|
|
16
|
+
import "./chunk-RJHGIRU2.js";
|
|
17
|
+
import "./chunk-WCU362Z6.js";
|
|
18
|
+
import "./chunk-AFA4TY5Q.js";
|
|
19
|
+
import "./chunk-GIWHHCD6.js";
|
|
20
|
+
import "./chunk-SOPVIIUW.js";
|
|
21
|
+
import "./chunk-G4FG5EQO.js";
|
|
22
|
+
import "./chunk-CS4VA3GQ.js";
|
|
23
|
+
import "./chunk-433NCHRS.js";
|
|
24
|
+
import {
|
|
25
|
+
ApiError,
|
|
26
|
+
apiPost
|
|
27
|
+
} from "./chunk-SZCEKDLE.js";
|
|
28
|
+
import "./chunk-2UFHCU7A.js";
|
|
29
|
+
import "./chunk-XQIAWIO5.js";
|
|
30
|
+
import "./chunk-2TEZDAAR.js";
|
|
31
|
+
import "./chunk-YQSBHWOI.js";
|
|
32
|
+
|
|
33
|
+
// src/commands/ads/linkedin/audience-size.ts
|
|
34
|
+
import { readFileSync } from "fs";
|
|
35
|
+
import { defineCommand } from "citty";
|
|
36
|
+
var MAX_SEGMENTS = 50;
|
|
37
|
+
function loadSegmentsFile(path) {
|
|
38
|
+
let parsed;
|
|
39
|
+
try {
|
|
40
|
+
parsed = JSON.parse(readFileSync(path, "utf-8"));
|
|
41
|
+
} catch (e) {
|
|
42
|
+
handleLinkedinError(new Error(`Failed to read --segments-file: ${e instanceof Error ? e.message : "I/O error"}`));
|
|
43
|
+
}
|
|
44
|
+
if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
45
|
+
handleLinkedinError(new Error('--segments-file must be a JSON object: {"<segment name>": <targetingCriteria>, \u2026}'));
|
|
46
|
+
}
|
|
47
|
+
const count = Object.keys(parsed).length;
|
|
48
|
+
if (count === 0 || count > MAX_SEGMENTS) {
|
|
49
|
+
handleLinkedinError(new Error(`--segments-file must name 1 to ${MAX_SEGMENTS} segments; it names ${count}.`));
|
|
50
|
+
}
|
|
51
|
+
return parsed;
|
|
52
|
+
}
|
|
53
|
+
async function sizeSegment(accountId, targetingCriteria, skipCache) {
|
|
54
|
+
try {
|
|
55
|
+
return await apiPost("/api/ads/linkedin/audience-size", {
|
|
56
|
+
accountId,
|
|
57
|
+
targetingCriteria,
|
|
58
|
+
skipCache
|
|
59
|
+
});
|
|
60
|
+
} catch (err) {
|
|
61
|
+
if (err instanceof ApiError && err.code === "VALIDATION_ERROR" && !isNoAccountsSelectedError(err.code, err.message)) {
|
|
62
|
+
return { error: `${err.code}: ${err.message}` };
|
|
63
|
+
}
|
|
64
|
+
handleLinkedinError(err);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
var audienceSizeCommand = defineCommand({
|
|
68
|
+
meta: {
|
|
69
|
+
name: "audience-size",
|
|
70
|
+
description: `Estimate audience size for a targeting payload \u2014 pre-launch sanity check.
|
|
71
|
+
|
|
72
|
+
Returns total + active counts plus playbook \xA704 warnings:
|
|
73
|
+
size <20K \u2192 too narrow (will not deliver)
|
|
74
|
+
size <50K \u2192 outside the 50K\u2013500K sweet spot
|
|
75
|
+
size >500K \u2192 outside the sweet spot
|
|
76
|
+
size >1M \u2192 too broad, refine ICP
|
|
77
|
+
|
|
78
|
+
The targeting payload must follow LinkedIn's 'targetingCriteria' shape \u2014 an
|
|
79
|
+
include/exclude tree of and/or boolean operators with adTargetingFacet keys.
|
|
80
|
+
The simplest form:
|
|
81
|
+
{ "include": { "and": [{ "or": { "urn:li:adTargetingFacet:locations": ["urn:li:geo:103644278"] }}]}}
|
|
82
|
+
|
|
83
|
+
Comparing segments? Size them all in one call: --segments-file takes a JSON
|
|
84
|
+
object of {"<segment name>": <targetingCriteria>, \u2026} (up to ${MAX_SEGMENTS}) and returns one
|
|
85
|
+
row per segment (segment, total, active, warnings); a segment LinkedIn refuses
|
|
86
|
+
gets an error in its own row and the rest still size.
|
|
87
|
+
|
|
88
|
+
Examples:
|
|
89
|
+
baker ads linkedin audience-size --account-id 503001492 --targeting-file targeting.json
|
|
90
|
+
baker ads linkedin audience-size --account-id 503001492 --targeting '{"include":{"and":[]}}'
|
|
91
|
+
baker ads linkedin audience-size --account-id 503001492 --segments-file segments.json --output md`
|
|
92
|
+
},
|
|
93
|
+
args: {
|
|
94
|
+
"account-id": { type: "string", description: "Numeric account ID or urn:li:sponsoredAccount:N" },
|
|
95
|
+
"account-urn": { type: "string", description: "Alias for --account-id" },
|
|
96
|
+
targeting: { type: "string", description: "Inline JSON targetingCriteria payload" },
|
|
97
|
+
"targeting-file": { type: "string", description: "Path to JSON file with targetingCriteria" },
|
|
98
|
+
"segments-file": {
|
|
99
|
+
type: "string",
|
|
100
|
+
description: 'Path to JSON {"<segment name>": targetingCriteria, \u2026} \u2014 sizes every segment, one row each'
|
|
101
|
+
},
|
|
102
|
+
"no-cache": NO_CACHE_ARG,
|
|
103
|
+
output: { type: "string", description: "json|csv|jsonl|md", default: "json" }
|
|
104
|
+
},
|
|
105
|
+
run: async ({ args }) => {
|
|
106
|
+
const accountId = resolveAccountIdArg(args);
|
|
107
|
+
if (args["segments-file"]) {
|
|
108
|
+
const segments = loadSegmentsFile(String(args["segments-file"]));
|
|
109
|
+
const rows = [];
|
|
110
|
+
for (const [segment, targetingCriteria2] of Object.entries(segments)) {
|
|
111
|
+
rows.push({ segment, ...await sizeSegment(accountId, targetingCriteria2, Boolean(args["no-cache"])) });
|
|
112
|
+
}
|
|
113
|
+
const fmt = csvOrJson(args);
|
|
114
|
+
if (fmt !== "json") {
|
|
115
|
+
writeAdsOutput(rows, fmt, ["segment", "total", "active", "warnings", "error"]);
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
writeAdsJson({ ok: true, data: rows });
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
const targetingCriteria = loadTargetingArg(args);
|
|
122
|
+
try {
|
|
123
|
+
const data = await apiPost("/api/ads/linkedin/audience-size", {
|
|
124
|
+
accountId,
|
|
125
|
+
targetingCriteria,
|
|
126
|
+
skipCache: Boolean(args["no-cache"])
|
|
127
|
+
});
|
|
128
|
+
writeAdsJson({ ok: true, data });
|
|
129
|
+
} catch (err) {
|
|
130
|
+
handleLinkedinError(err);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
export {
|
|
135
|
+
audienceSizeCommand
|
|
136
|
+
};
|
|
137
|
+
//# sourceMappingURL=audience-size-NHQZQ7DR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/ads/linkedin/audience-size.ts"],"sourcesContent":["import { readFileSync } from \"node:fs\";\nimport { defineCommand } from \"citty\";\nimport { NO_CACHE_ARG } from \"../../../cache-flag.ts\";\nimport { ApiError, apiPost } from \"../../../client.ts\";\nimport { writeAdsJson, writeAdsOutput } from \"../output.ts\";\nimport {\n csvOrJson,\n handleLinkedinError,\n isNoAccountsSelectedError,\n loadTargetingArg,\n resolveAccountIdArg,\n} from \"./shared.ts\";\n\ninterface AudienceSizeResult {\n total: number;\n active: number;\n warnings: string[];\n}\n\nconst MAX_SEGMENTS = 50;\n\nfunction loadSegmentsFile(path: string): Record<string, unknown> {\n let parsed: unknown;\n try {\n parsed = JSON.parse(readFileSync(path, \"utf-8\"));\n } catch (e) {\n handleLinkedinError(new Error(`Failed to read --segments-file: ${e instanceof Error ? e.message : \"I/O error\"}`));\n }\n if (parsed === null || typeof parsed !== \"object\" || Array.isArray(parsed)) {\n handleLinkedinError(new Error('--segments-file must be a JSON object: {\"<segment name>\": <targetingCriteria>, …}'));\n }\n const count = Object.keys(parsed).length;\n if (count === 0 || count > MAX_SEGMENTS) {\n handleLinkedinError(new Error(`--segments-file must name 1 to ${MAX_SEGMENTS} segments; it names ${count}.`));\n }\n return parsed as Record<string, unknown>;\n}\n\n/** A refusal of this one segment goes in its row; a wait LinkedIn asked for or a broken connection stops them all. */\nasync function sizeSegment(\n accountId: string,\n targetingCriteria: unknown,\n skipCache: boolean,\n): Promise<AudienceSizeResult | { error: string }> {\n try {\n return await apiPost<AudienceSizeResult>(\"/api/ads/linkedin/audience-size\", {\n accountId,\n targetingCriteria,\n skipCache,\n });\n } catch (err) {\n if (\n err instanceof ApiError &&\n err.code === \"VALIDATION_ERROR\" &&\n !isNoAccountsSelectedError(err.code, err.message)\n ) {\n return { error: `${err.code}: ${err.message}` };\n }\n handleLinkedinError(err);\n }\n}\n\nexport const audienceSizeCommand = defineCommand({\n meta: {\n name: \"audience-size\",\n description: `Estimate audience size for a targeting payload — pre-launch sanity check.\n\nReturns total + active counts plus playbook §04 warnings:\n size <20K → too narrow (will not deliver)\n size <50K → outside the 50K–500K sweet spot\n size >500K → outside the sweet spot\n size >1M → too broad, refine ICP\n\nThe targeting payload must follow LinkedIn's 'targetingCriteria' shape — an\ninclude/exclude tree of and/or boolean operators with adTargetingFacet keys.\nThe simplest form:\n { \"include\": { \"and\": [{ \"or\": { \"urn:li:adTargetingFacet:locations\": [\"urn:li:geo:103644278\"] }}]}}\n\nComparing segments? Size them all in one call: --segments-file takes a JSON\nobject of {\"<segment name>\": <targetingCriteria>, …} (up to ${MAX_SEGMENTS}) and returns one\nrow per segment (segment, total, active, warnings); a segment LinkedIn refuses\ngets an error in its own row and the rest still size.\n\nExamples:\n baker ads linkedin audience-size --account-id 503001492 --targeting-file targeting.json\n baker ads linkedin audience-size --account-id 503001492 --targeting '{\"include\":{\"and\":[]}}'\n baker ads linkedin audience-size --account-id 503001492 --segments-file segments.json --output md`,\n },\n args: {\n \"account-id\": { type: \"string\", description: \"Numeric account ID or urn:li:sponsoredAccount:N\" },\n \"account-urn\": { type: \"string\", description: \"Alias for --account-id\" },\n targeting: { type: \"string\", description: \"Inline JSON targetingCriteria payload\" },\n \"targeting-file\": { type: \"string\", description: \"Path to JSON file with targetingCriteria\" },\n \"segments-file\": {\n type: \"string\",\n description: 'Path to JSON {\"<segment name>\": targetingCriteria, …} — sizes every segment, one row each',\n },\n \"no-cache\": NO_CACHE_ARG,\n output: { type: \"string\", description: \"json|csv|jsonl|md\", default: \"json\" },\n },\n run: async ({ args }) => {\n const accountId = resolveAccountIdArg(args);\n if (args[\"segments-file\"]) {\n const segments = loadSegmentsFile(String(args[\"segments-file\"]));\n const rows: Array<Record<string, unknown>> = [];\n // One after another: the backend paces LinkedIn reads per company, and the client waits out its 429s.\n for (const [segment, targetingCriteria] of Object.entries(segments)) {\n rows.push({ segment, ...(await sizeSegment(accountId, targetingCriteria, Boolean(args[\"no-cache\"]))) });\n }\n const fmt = csvOrJson(args);\n if (fmt !== \"json\") {\n writeAdsOutput(rows, fmt, [\"segment\", \"total\", \"active\", \"warnings\", \"error\"]);\n return;\n }\n writeAdsJson({ ok: true, data: rows });\n return;\n }\n const targetingCriteria = loadTargetingArg(args);\n try {\n const data = await apiPost<AudienceSizeResult>(\"/api/ads/linkedin/audience-size\", {\n accountId,\n targetingCriteria,\n skipCache: Boolean(args[\"no-cache\"]),\n });\n writeAdsJson({ ok: true, data });\n } catch (err) {\n handleLinkedinError(err);\n }\n },\n});\n"],"mappings":"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","names":["targetingCriteria"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleLinkedinError,
|
|
3
3
|
resolveAccountIdArg
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZPLZHTWI.js";
|
|
5
5
|
import {
|
|
6
6
|
NO_CACHE_ARG
|
|
7
7
|
} from "./chunk-VHKEKK2L.js";
|
|
@@ -152,4 +152,4 @@ Examples:
|
|
|
152
152
|
export {
|
|
153
153
|
auditCommand
|
|
154
154
|
};
|
|
155
|
-
//# sourceMappingURL=audit-
|
|
155
|
+
//# sourceMappingURL=audit-PEOYEN4A.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
handleLinkedinError,
|
|
7
7
|
loadTargetingArg,
|
|
8
8
|
resolveAccountIdArg
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZPLZHTWI.js";
|
|
10
10
|
import {
|
|
11
11
|
NO_CACHE_ARG
|
|
12
12
|
} from "./chunk-VHKEKK2L.js";
|
|
@@ -101,4 +101,4 @@ Start here:
|
|
|
101
101
|
export {
|
|
102
102
|
bidPricingCommand
|
|
103
103
|
};
|
|
104
|
-
//# sourceMappingURL=bid-pricing-
|
|
104
|
+
//# sourceMappingURL=bid-pricing-HVUVHS3F.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
resolveAccountIdArg,
|
|
6
6
|
resolveStatusFilter,
|
|
7
7
|
statusesArgDescription
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZPLZHTWI.js";
|
|
9
9
|
import {
|
|
10
10
|
NO_CACHE_ARG
|
|
11
11
|
} from "./chunk-VHKEKK2L.js";
|
|
@@ -99,12 +99,12 @@ Examples:
|
|
|
99
99
|
},
|
|
100
100
|
subCommands: {
|
|
101
101
|
list: campaignGroupsListCommand,
|
|
102
|
-
create: () => import("./write-commands-
|
|
103
|
-
update: () => import("./write-commands-
|
|
104
|
-
pause: () => import("./write-commands-
|
|
105
|
-
resume: () => import("./write-commands-
|
|
106
|
-
duplicate: () => import("./write-commands-
|
|
107
|
-
delete: () => import("./write-commands-
|
|
102
|
+
create: () => import("./write-commands-TDME3RU2.js").then((m) => m.campaignGroupsCreateCommand),
|
|
103
|
+
update: () => import("./write-commands-TDME3RU2.js").then((m) => m.campaignGroupsUpdateCommand),
|
|
104
|
+
pause: () => import("./write-commands-TDME3RU2.js").then((m) => m.campaignGroupsPauseCommand),
|
|
105
|
+
resume: () => import("./write-commands-TDME3RU2.js").then((m) => m.campaignGroupsResumeCommand),
|
|
106
|
+
duplicate: () => import("./write-commands-TDME3RU2.js").then((m) => m.campaignGroupsDuplicateCommand),
|
|
107
|
+
delete: () => import("./write-commands-TDME3RU2.js").then((m) => m.campaignGroupsDeleteCommand)
|
|
108
108
|
},
|
|
109
109
|
// A parent must never declare `run`: citty falls through to it *after* running
|
|
110
110
|
// the matched subcommand, so every write would also trigger a full live list.
|
|
@@ -115,4 +115,4 @@ Examples:
|
|
|
115
115
|
export {
|
|
116
116
|
campaignGroupsCommand
|
|
117
117
|
};
|
|
118
|
-
//# sourceMappingURL=campaign-groups-
|
|
118
|
+
//# sourceMappingURL=campaign-groups-YGIZAWMT.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
resolveAccountIdArg,
|
|
7
7
|
resolveStatusFilter,
|
|
8
8
|
statusesArgDescription
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZPLZHTWI.js";
|
|
10
10
|
import {
|
|
11
11
|
NO_CACHE_ARG
|
|
12
12
|
} from "./chunk-VHKEKK2L.js";
|
|
@@ -171,15 +171,15 @@ Examples:
|
|
|
171
171
|
},
|
|
172
172
|
subCommands: {
|
|
173
173
|
list: campaignsListCommand,
|
|
174
|
-
create: () => import("./write-commands-
|
|
175
|
-
update: () => import("./write-commands-
|
|
176
|
-
pause: () => import("./write-commands-
|
|
177
|
-
resume: () => import("./write-commands-
|
|
178
|
-
archive: () => import("./write-commands-
|
|
179
|
-
duplicate: () => import("./write-commands-
|
|
180
|
-
delete: () => import("./write-commands-
|
|
181
|
-
"url-params": () => import("./write-commands-
|
|
182
|
-
"exclude-companies": () => import("./write-commands-
|
|
174
|
+
create: () => import("./write-commands-TDME3RU2.js").then((m) => m.campaignsCreateCommand),
|
|
175
|
+
update: () => import("./write-commands-TDME3RU2.js").then((m) => m.campaignsUpdateCommand),
|
|
176
|
+
pause: () => import("./write-commands-TDME3RU2.js").then((m) => m.campaignsPauseCommand),
|
|
177
|
+
resume: () => import("./write-commands-TDME3RU2.js").then((m) => m.campaignsResumeCommand),
|
|
178
|
+
archive: () => import("./write-commands-TDME3RU2.js").then((m) => m.campaignsArchiveCommand),
|
|
179
|
+
duplicate: () => import("./write-commands-TDME3RU2.js").then((m) => m.campaignsDuplicateCommand),
|
|
180
|
+
delete: () => import("./write-commands-TDME3RU2.js").then((m) => m.campaignsDeleteCommand),
|
|
181
|
+
"url-params": () => import("./write-commands-TDME3RU2.js").then((m) => m.campaignsUrlParamsCommand),
|
|
182
|
+
"exclude-companies": () => import("./write-commands-TDME3RU2.js").then((m) => m.campaignsExcludeCompaniesCommand)
|
|
183
183
|
},
|
|
184
184
|
// A parent must never declare `run`: citty falls through to it *after* running
|
|
185
185
|
// the matched subcommand, so every write would also trigger a full live list.
|
|
@@ -190,4 +190,4 @@ Examples:
|
|
|
190
190
|
export {
|
|
191
191
|
campaignsCommand
|
|
192
192
|
};
|
|
193
|
-
//# sourceMappingURL=campaigns-
|
|
193
|
+
//# sourceMappingURL=campaigns-FIU3FF7Q.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
csvOrJson,
|
|
10
10
|
handleLinkedinError,
|
|
11
11
|
optionalAccountIdArg
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZPLZHTWI.js";
|
|
13
13
|
import {
|
|
14
14
|
withWindowSpellings
|
|
15
15
|
} from "./chunk-74QGFUZL.js";
|
|
@@ -259,4 +259,4 @@ export {
|
|
|
259
259
|
targetsArg,
|
|
260
260
|
companiesCommand
|
|
261
261
|
};
|
|
262
|
-
//# sourceMappingURL=chunk-
|
|
262
|
+
//# sourceMappingURL=chunk-6G2EVVNW.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleLinkedinError,
|
|
3
3
|
resolveAccountIdArg
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZPLZHTWI.js";
|
|
5
5
|
import {
|
|
6
6
|
adCopyHints,
|
|
7
7
|
booleanWordPositionalError,
|
|
@@ -420,4 +420,4 @@ export {
|
|
|
420
420
|
requireTarget,
|
|
421
421
|
requireTargets
|
|
422
422
|
};
|
|
423
|
-
//# sourceMappingURL=chunk-
|
|
423
|
+
//# sourceMappingURL=chunk-D2BRYEOF.js.map
|
|
@@ -235,6 +235,7 @@ function exitOnInvalidArgs(issues, flagByField) {
|
|
|
235
235
|
|
|
236
236
|
export {
|
|
237
237
|
handleLinkedinError,
|
|
238
|
+
isNoAccountsSelectedError,
|
|
238
239
|
normalizeLinkedinAccountId,
|
|
239
240
|
optionalAccountIdArg,
|
|
240
241
|
resolveAccountIdArg,
|
|
@@ -248,4 +249,4 @@ export {
|
|
|
248
249
|
loadTargetingArg,
|
|
249
250
|
exitOnInvalidArgs
|
|
250
251
|
};
|
|
251
|
-
//# sourceMappingURL=chunk-
|
|
252
|
+
//# sourceMappingURL=chunk-ZPLZHTWI.js.map
|
package/dist/cli.js
CHANGED
|
@@ -694,7 +694,7 @@ Introspection: Run 'baker schema <command>' to inspect argument schemas.`
|
|
|
694
694
|
capabilities: () => import("./capabilities-U53QPNBQ.js").then((m) => m.capabilitiesCommand),
|
|
695
695
|
actions: () => import("./actions-Q7DDN427.js").then((m) => m.actionsCommand),
|
|
696
696
|
"scheduled-agents": () => import("./scheduled-agents-YHZUPS2I.js").then((m) => m.scheduledAgentsCommand),
|
|
697
|
-
ads: () => import("./ads-
|
|
697
|
+
ads: () => import("./ads-ED5L55ME.js").then((m) => m.adsCommand),
|
|
698
698
|
brand: () => import("./brand-SDDWXOOT.js").then((m) => m.brandCommand),
|
|
699
699
|
analytics: () => import("./analytics-SVV7JZ2J.js").then((m) => m.analyticsCommand),
|
|
700
700
|
experiment: () => import("./experiment-WEWASTVO.js").then((m) => m.experimentCommand),
|
|
@@ -721,7 +721,7 @@ Introspection: Run 'baker schema <command>' to inspect argument schemas.`
|
|
|
721
721
|
chats: () => import("./chats-QVGXEYT6.js").then((m) => m.chatsCommand),
|
|
722
722
|
history: () => import("./history-M6VLA7TD.js").then((m) => m.historyCommand),
|
|
723
723
|
credentials: () => import("./credentials-T7F2PFNY.js").then((m) => m.credentialsCommand),
|
|
724
|
-
hubspot: () => import("./hubspot-
|
|
724
|
+
hubspot: () => import("./hubspot-W5LYFWTH.js").then((m) => m.hubspotCommand),
|
|
725
725
|
activecampaign: () => import("./activecampaign-BAWTDTSA.js").then((m) => m.activecampaignCommand),
|
|
726
726
|
pipedrive: () => import("./pipedrive-7AA7ZD7M.js").then((m) => m.pipedriveCommand),
|
|
727
727
|
accounts: () => import("./accounts-FGWJDM52.js").then((m) => m.accountsCommand),
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
companiesHints,
|
|
4
4
|
knowledgeTargetsHint,
|
|
5
5
|
targetsArg
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6G2EVVNW.js";
|
|
7
7
|
import "./chunk-4X6QBNIB.js";
|
|
8
8
|
import "./chunk-5OXVEKML.js";
|
|
9
9
|
import "./chunk-2DGJKIHF.js";
|
|
10
10
|
import "./chunk-IPEQHZ5H.js";
|
|
11
11
|
import "./chunk-GRQ2AXDX.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-ZPLZHTWI.js";
|
|
13
13
|
import "./chunk-74QGFUZL.js";
|
|
14
14
|
import "./chunk-VHKEKK2L.js";
|
|
15
15
|
import "./chunk-65QWF5C5.js";
|
|
@@ -33,4 +33,4 @@ export {
|
|
|
33
33
|
knowledgeTargetsHint,
|
|
34
34
|
targetsArg
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=companies-
|
|
36
|
+
//# sourceMappingURL=companies-65CQH5NZ.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
daysAgoIso,
|
|
4
4
|
handleLinkedinError,
|
|
5
5
|
todayIso
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZPLZHTWI.js";
|
|
7
7
|
import {
|
|
8
8
|
withWindowSpellings
|
|
9
9
|
} from "./chunk-74QGFUZL.js";
|
|
@@ -97,4 +97,4 @@ Examples:
|
|
|
97
97
|
export {
|
|
98
98
|
conversationCommand
|
|
99
99
|
};
|
|
100
|
-
//# sourceMappingURL=conversation-
|
|
100
|
+
//# sourceMappingURL=conversation-EUPDVCN5.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
csvOrJson,
|
|
3
3
|
handleLinkedinError,
|
|
4
4
|
resolveAccountIdArg
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZPLZHTWI.js";
|
|
6
6
|
import {
|
|
7
7
|
NO_CACHE_ARG
|
|
8
8
|
} from "./chunk-VHKEKK2L.js";
|
|
@@ -128,14 +128,14 @@ Subcommands:
|
|
|
128
128
|
subCommands: {
|
|
129
129
|
list: listCmd,
|
|
130
130
|
health: healthCmd,
|
|
131
|
-
create: () => import("./write-commands-
|
|
132
|
-
update: () => import("./write-commands-
|
|
133
|
-
"associate-campaign": () => import("./write-commands-
|
|
134
|
-
"dissociate-campaign": () => import("./write-commands-
|
|
135
|
-
upload: () => import("./write-commands-
|
|
131
|
+
create: () => import("./write-commands-TDME3RU2.js").then((m) => m.conversionsCreateCommand),
|
|
132
|
+
update: () => import("./write-commands-TDME3RU2.js").then((m) => m.conversionsUpdateCommand),
|
|
133
|
+
"associate-campaign": () => import("./write-commands-TDME3RU2.js").then((m) => m.conversionsAssociateCommand),
|
|
134
|
+
"dissociate-campaign": () => import("./write-commands-TDME3RU2.js").then((m) => m.conversionsDissociateCommand),
|
|
135
|
+
upload: () => import("./write-commands-TDME3RU2.js").then((m) => m.conversionsUploadCommand)
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
138
|
export {
|
|
139
139
|
conversionsCommand
|
|
140
140
|
};
|
|
141
|
-
//# sourceMappingURL=conversions-
|
|
141
|
+
//# sourceMappingURL=conversions-JN2QSYKN.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
resolveAccountIdArg,
|
|
7
7
|
resolveStatusFilter,
|
|
8
8
|
statusesArgDescription
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZPLZHTWI.js";
|
|
10
10
|
import {
|
|
11
11
|
NO_CACHE_ARG
|
|
12
12
|
} from "./chunk-VHKEKK2L.js";
|
|
@@ -214,12 +214,12 @@ Examples:
|
|
|
214
214
|
subCommands: {
|
|
215
215
|
list: creativesListCommand,
|
|
216
216
|
get: creativesGetCommand,
|
|
217
|
-
create: () => import("./write-commands-
|
|
218
|
-
update: () => import("./write-commands-
|
|
219
|
-
pause: () => import("./write-commands-
|
|
220
|
-
resume: () => import("./write-commands-
|
|
221
|
-
duplicate: () => import("./write-commands-
|
|
222
|
-
delete: () => import("./write-commands-
|
|
217
|
+
create: () => import("./write-commands-TDME3RU2.js").then((m) => m.creativesCreateCommand),
|
|
218
|
+
update: () => import("./write-commands-TDME3RU2.js").then((m) => m.creativesUpdateCommand),
|
|
219
|
+
pause: () => import("./write-commands-TDME3RU2.js").then((m) => m.creativesPauseCommand),
|
|
220
|
+
resume: () => import("./write-commands-TDME3RU2.js").then((m) => m.creativesResumeCommand),
|
|
221
|
+
duplicate: () => import("./write-commands-TDME3RU2.js").then((m) => m.creativesDuplicateCommand),
|
|
222
|
+
delete: () => import("./write-commands-TDME3RU2.js").then((m) => m.creativesDeleteCommand)
|
|
223
223
|
},
|
|
224
224
|
// A parent must never declare `run`: citty falls through to it *after* running
|
|
225
225
|
// the matched subcommand, so every write would also trigger a full live list.
|
|
@@ -232,4 +232,4 @@ export {
|
|
|
232
232
|
creativesCommand,
|
|
233
233
|
unmappedShapeWarnings
|
|
234
234
|
};
|
|
235
|
-
//# sourceMappingURL=creatives-
|
|
235
|
+
//# sourceMappingURL=creatives-FLL2NBH2.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
daysAgoIso,
|
|
4
4
|
handleLinkedinError,
|
|
5
5
|
todayIso
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZPLZHTWI.js";
|
|
7
7
|
import {
|
|
8
8
|
withWindowSpellings
|
|
9
9
|
} from "./chunk-74QGFUZL.js";
|
|
@@ -142,4 +142,4 @@ function resolveRange(args) {
|
|
|
142
142
|
export {
|
|
143
143
|
demographicsCommand
|
|
144
144
|
};
|
|
145
|
-
//# sourceMappingURL=demographics-
|
|
145
|
+
//# sourceMappingURL=demographics-SR66Q3Q2.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadPatchArg,
|
|
3
3
|
requireTarget
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-D2BRYEOF.js";
|
|
5
5
|
import {
|
|
6
6
|
handleLinkedinError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZPLZHTWI.js";
|
|
8
8
|
import {
|
|
9
9
|
amendDraftRefs,
|
|
10
10
|
draftRefs,
|
|
@@ -386,4 +386,4 @@ var linkedinDraftCommand = defineCommand({
|
|
|
386
386
|
export {
|
|
387
387
|
linkedinDraftCommand
|
|
388
388
|
};
|
|
389
|
-
//# sourceMappingURL=draft-
|
|
389
|
+
//# sourceMappingURL=draft-XV3SNAT5.js.map
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
parseDateFlag,
|
|
5
5
|
requireTarget,
|
|
6
6
|
stageOp
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-D2BRYEOF.js";
|
|
8
8
|
import {
|
|
9
9
|
handleLinkedinError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZPLZHTWI.js";
|
|
11
11
|
import "./chunk-VTQG5SUE.js";
|
|
12
12
|
import "./chunk-UKENQSZ2.js";
|
|
13
13
|
import "./chunk-D5FY4FAK.js";
|
|
@@ -238,4 +238,4 @@ Examples:
|
|
|
238
238
|
export {
|
|
239
239
|
experimentsCommand
|
|
240
240
|
};
|
|
241
|
-
//# sourceMappingURL=experiments-
|
|
241
|
+
//# sourceMappingURL=experiments-BT3QLENT.js.map
|