@absolutejs/voice 0.0.22-beta.143 → 0.0.22-beta.144
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 +16 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20288,15 +20288,16 @@ var buildVoiceOpsConsoleReport = async (options) => {
|
|
|
20288
20288
|
const trace = summarizeVoiceTrace(events);
|
|
20289
20289
|
const deliverySinkOptions = options.deliverySinks || undefined;
|
|
20290
20290
|
const deliverySinks = deliverySinkOptions ? await buildVoiceDeliverySinkReport(deliverySinkOptions) : undefined;
|
|
20291
|
-
const
|
|
20292
|
-
|
|
20291
|
+
const baseLinks = options.links ?? DEFAULT_LINKS;
|
|
20292
|
+
const links = deliverySinks && !baseLinks.some((link) => link.href === (deliverySinkOptions?.htmlPath ?? "/delivery-sinks") || link.statusHref === (deliverySinkOptions?.path ?? "/api/voice-delivery-sinks")) ? [
|
|
20293
|
+
...baseLinks,
|
|
20293
20294
|
{
|
|
20294
20295
|
description: "Configured audit and trace delivery sinks with queue health.",
|
|
20295
20296
|
href: deliverySinkOptions?.htmlPath === false ? deliverySinkOptions.path ?? "/api/voice-delivery-sinks" : deliverySinkOptions?.htmlPath ?? "/delivery-sinks",
|
|
20296
20297
|
label: "Delivery Sinks",
|
|
20297
20298
|
statusHref: deliverySinkOptions?.path ?? "/api/voice-delivery-sinks"
|
|
20298
20299
|
}
|
|
20299
|
-
] :
|
|
20300
|
+
] : baseLinks;
|
|
20300
20301
|
return {
|
|
20301
20302
|
checkedAt: Date.now(),
|
|
20302
20303
|
deliverySinks,
|
|
@@ -20499,17 +20500,20 @@ var summarizeVoiceOpsStatus = async (options) => {
|
|
|
20499
20500
|
};
|
|
20500
20501
|
statuses.push(status);
|
|
20501
20502
|
}
|
|
20503
|
+
const baseLinks = options.links ?? DEFAULT_LINKS2;
|
|
20504
|
+
const deliverySinkOptions = options.deliverySinks || undefined;
|
|
20505
|
+
const links = deliverySinkOptions && !baseLinks.some((link) => link.href === (deliverySinkOptions.htmlPath ?? "/delivery-sinks") || link.statusHref === (deliverySinkOptions.path ?? "/api/voice-delivery-sinks")) ? [
|
|
20506
|
+
...baseLinks,
|
|
20507
|
+
{
|
|
20508
|
+
description: "Audit and trace delivery sink health.",
|
|
20509
|
+
href: deliverySinkOptions.htmlPath === false ? deliverySinkOptions.path ?? "/api/voice-delivery-sinks" : deliverySinkOptions.htmlPath ?? "/delivery-sinks",
|
|
20510
|
+
label: "Delivery Sinks",
|
|
20511
|
+
statusHref: deliverySinkOptions.path ?? "/api/voice-delivery-sinks"
|
|
20512
|
+
}
|
|
20513
|
+
] : baseLinks;
|
|
20502
20514
|
return {
|
|
20503
20515
|
checkedAt: Date.now(),
|
|
20504
|
-
links
|
|
20505
|
-
...DEFAULT_LINKS2,
|
|
20506
|
-
{
|
|
20507
|
-
description: "Audit and trace delivery sink health.",
|
|
20508
|
-
href: options.deliverySinks.htmlPath === false ? options.deliverySinks.path ?? "/api/voice-delivery-sinks" : options.deliverySinks.htmlPath ?? "/delivery-sinks",
|
|
20509
|
-
label: "Delivery Sinks",
|
|
20510
|
-
statusHref: options.deliverySinks.path ?? "/api/voice-delivery-sinks"
|
|
20511
|
-
}
|
|
20512
|
-
] : DEFAULT_LINKS2),
|
|
20516
|
+
links,
|
|
20513
20517
|
status: statuses.includes("fail") ? "fail" : "pass",
|
|
20514
20518
|
surfaces,
|
|
20515
20519
|
...countStatus(statuses)
|