@erdoai/cli 0.128.0 → 0.130.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 +19 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6330,7 +6330,7 @@ contact: ${parts.join(" \xB7 ")}`);
|
|
|
6330
6330
|
}
|
|
6331
6331
|
}
|
|
6332
6332
|
);
|
|
6333
|
-
var voiceNumbersCmd = voiceCmd.command("numbers").description("The organization's phone numbers, their A2P SMS registration and their
|
|
6333
|
+
var voiceNumbersCmd = voiceCmd.command("numbers").description("The organization's phone numbers, their A2P SMS registration, their caller name and their call attestation");
|
|
6334
6334
|
function printRegistrationState(registration) {
|
|
6335
6335
|
if (registration === null || typeof registration !== "object") {
|
|
6336
6336
|
if (registration !== void 0) print(registration);
|
|
@@ -6378,7 +6378,7 @@ voiceNumbersCmd.command("list").description("List the organization's numbers wit
|
|
|
6378
6378
|
} else {
|
|
6379
6379
|
const callable = new Set(res.person_call_numbers ?? []);
|
|
6380
6380
|
printAlignedTable(
|
|
6381
|
-
["number", "agent", "kind", "calls", "status", "waiting on", "reason", "caller name", "shows"],
|
|
6381
|
+
["number", "agent", "kind", "calls", "status", "waiting on", "reason", "caller name", "shows", "attest."],
|
|
6382
6382
|
numbers.map((n) => [
|
|
6383
6383
|
n.address,
|
|
6384
6384
|
n.agent_ref ?? "",
|
|
@@ -6388,7 +6388,8 @@ voiceNumbersCmd.command("list").description("List the organization's numbers wit
|
|
|
6388
6388
|
n.next_step ?? "",
|
|
6389
6389
|
n.reason ?? "",
|
|
6390
6390
|
n.caller_name_attachment ?? "",
|
|
6391
|
-
describeObservedCallerName(n.caller_name_observed, n.observed_caller_name)
|
|
6391
|
+
describeObservedCallerName(n.caller_name_observed, n.observed_caller_name),
|
|
6392
|
+
n.call_attestation ?? ""
|
|
6392
6393
|
])
|
|
6393
6394
|
);
|
|
6394
6395
|
process.stderr.write(`showing ${numbers.length} number(s)
|
|
@@ -6403,6 +6404,7 @@ voiceNumbersCmd.command("list").description("List the organization's numbers wit
|
|
|
6403
6404
|
console.log("Complete it with: erdo org business-profile set --help, or in Settings \u2192 Business.");
|
|
6404
6405
|
}
|
|
6405
6406
|
printStaleCallerNameNote(numbers);
|
|
6407
|
+
printCallAttestationNote(res.call_attestation);
|
|
6406
6408
|
} catch (e) {
|
|
6407
6409
|
fail(e);
|
|
6408
6410
|
}
|
|
@@ -6452,6 +6454,16 @@ voiceNumbersCmd.command("provision-sms <number>").description("Ask for A2P SMS r
|
|
|
6452
6454
|
fail(e);
|
|
6453
6455
|
}
|
|
6454
6456
|
});
|
|
6457
|
+
function printCallAttestationNote(attestation) {
|
|
6458
|
+
if (!attestation || attestation.status === "approved") return;
|
|
6459
|
+
console.log("");
|
|
6460
|
+
const waiting = attestation.next_step ? ` (waiting on ${attestation.next_step})` : "";
|
|
6461
|
+
console.log(`Call attestation (SHAKEN/STIR): ${attestation.status}${waiting} \u2014 calls carry B until it is approved.`);
|
|
6462
|
+
if (attestation.reason) console.log(attestation.reason);
|
|
6463
|
+
if (attestation.missing_profile_fields && attestation.missing_profile_fields.length > 0) {
|
|
6464
|
+
console.log("Complete the business profile with: erdo org business-profile set --help, or in Settings \u2192 Business.");
|
|
6465
|
+
}
|
|
6466
|
+
}
|
|
6455
6467
|
function describeObservedCallerName(observed, name) {
|
|
6456
6468
|
switch (observed) {
|
|
6457
6469
|
case "ours":
|
|
@@ -7915,6 +7927,10 @@ function printLeadReadBack(rb) {
|
|
|
7915
7927
|
console.log(`
|
|
7916
7928
|
working hours ${wh.days.join(", ")} ${wh.start}\u2013${wh.end} ${wh.timezone}`);
|
|
7917
7929
|
}
|
|
7930
|
+
if (rb.contact_hours?.length) {
|
|
7931
|
+
console.log("\nhours each channel keeps (enforced)");
|
|
7932
|
+
for (const line of rb.contact_hours) console.log(` ${line}`);
|
|
7933
|
+
}
|
|
7918
7934
|
if (rb.stages?.length) {
|
|
7919
7935
|
console.log("\nstages");
|
|
7920
7936
|
printAlignedTable(
|