@erdoai/cli 0.155.0 → 0.156.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 +5 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2300,7 +2300,8 @@ function formatIntegrationListRow(i) {
|
|
|
2300
2300
|
const provided = i.provided_by_organization_slug ? ` provided by ${i.provided_by_organization_slug}` : "";
|
|
2301
2301
|
const unreadable = i.identity_unreadable ? " identity unreadable" : "";
|
|
2302
2302
|
const unchecked = i.identity_unchecked ? " identity not checked" : "";
|
|
2303
|
-
|
|
2303
|
+
const connectorAccount = i.connector_account_id ? ` connector_account_id=${i.connector_account_id}` : "";
|
|
2304
|
+
return `${i.app} ${i.status} ${i.auth_type} ${i.name} ${i.id}${connectorAccount}${provided}${unreadable}${unchecked}`;
|
|
2304
2305
|
}
|
|
2305
2306
|
function identityNotes(rows) {
|
|
2306
2307
|
const notes = [];
|
|
@@ -7377,14 +7378,14 @@ providerLeadSourcesCmd.command("list").description("List LinkedIn lead form sour
|
|
|
7377
7378
|
fail(e);
|
|
7378
7379
|
}
|
|
7379
7380
|
});
|
|
7380
|
-
providerLeadSourcesCmd.command("forms").description("List LinkedIn lead forms available on a connected ad account").requiredOption("--connection-id <id>", "
|
|
7381
|
+
providerLeadSourcesCmd.command("forms").description("List LinkedIn lead forms available on a connected ad account").requiredOption("--connection-id <id>", "connector_account_id from erdo integrations status linkedin_ads or GET /v1/integrations").requiredOption("--account-id <id>", "numeric LinkedIn ad account id").action(async (opts) => {
|
|
7381
7382
|
try {
|
|
7382
7383
|
print(await new ErdoClient().listProviderLeadSourceForms(opts.connectionId, opts.accountId));
|
|
7383
7384
|
} catch (e) {
|
|
7384
7385
|
fail(e);
|
|
7385
7386
|
}
|
|
7386
7387
|
});
|
|
7387
|
-
providerLeadSourcesCmd.command("set").description("Replace a provider lead form source declaration from JSON or flags").option("-f, --file <path>", "one JSON declaration object; use - to read from stdin").option("--dataset <slug>", "lead dataset slug").option("--provider <provider>", "ad platform provider", "linkedin_ads").option("--connection-id <id>", "
|
|
7388
|
+
providerLeadSourcesCmd.command("set").description("Replace a provider lead form source declaration from JSON or flags").option("-f, --file <path>", "one JSON declaration object; use - to read from stdin").option("--dataset <slug>", "lead dataset slug").option("--provider <provider>", "ad platform provider", "linkedin_ads").option("--connection-id <id>", "connector_account_id from erdo integrations status linkedin_ads or GET /v1/integrations").option("--account-id <id>", "numeric LinkedIn ad account id").option("--form <id>", "LinkedIn lead gen form id (repeatable)", collect, []).option("--disabled", "save the declaration disabled").action(async (opts) => {
|
|
7388
7389
|
try {
|
|
7389
7390
|
let input;
|
|
7390
7391
|
if (opts.file) {
|
|
@@ -9017,7 +9018,7 @@ function printLead(lead) {
|
|
|
9017
9018
|
}
|
|
9018
9019
|
}
|
|
9019
9020
|
var integrationsCmd = program.command("integrations").description("Connect and inspect integrations");
|
|
9020
|
-
integrationsCmd.command("list").description("List connected integrations \u2014 app, status, auth type, name, then the connection's id (what --from-connection takes)").action(async () => {
|
|
9021
|
+
integrationsCmd.command("list").description("List connected integrations \u2014 app, status, auth type, name, then the connection's id (what --from-connection takes) and connector_account_id when available").action(async () => {
|
|
9021
9022
|
try {
|
|
9022
9023
|
const { integrations } = await new ErdoClient().listIntegrations();
|
|
9023
9024
|
for (const i of integrations) console.log(formatIntegrationListRow(i));
|