@signaliz/cli 1.0.60 → 1.0.61
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/bin.js +18 -4
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -497,9 +497,9 @@ function normalizeSignalsEverythingResult(request, value) {
|
|
|
497
497
|
source: stringValue(item.source)
|
|
498
498
|
};
|
|
499
499
|
}).filter((item) => Boolean(item.url)) : [];
|
|
500
|
-
const eventDate = stringValue(signal.event_date || signal.date)
|
|
501
|
-
const sourceUrl = stringValue(signal.source_url || signal.url)
|
|
502
|
-
if (!eventDate || !sourceUrl || !evidence.some((item) =>
|
|
500
|
+
const eventDate = stringValue(signal.event_date || signal.date);
|
|
501
|
+
const sourceUrl = stringValue(signal.source_url || signal.url);
|
|
502
|
+
if (!eventDate || !sourceUrl || !evidence.some((item) => item.url === sourceUrl && item.publishedAt === eventDate)) {
|
|
503
503
|
throw new Error("Signals Everything response violated the dated-evidence and source-URL contract.");
|
|
504
504
|
}
|
|
505
505
|
return {
|
|
@@ -522,6 +522,7 @@ function normalizeSignalsEverythingResult(request, value) {
|
|
|
522
522
|
const status = statuses.has(statusValue) ? statusValue : signals2.length > 0 ? "completed" : "failed";
|
|
523
523
|
const guardrail = record(value.cost_guardrail);
|
|
524
524
|
const maxCost = numberValue(guardrail.max_cost_per_qualified_signal_usd);
|
|
525
|
+
const costSource = stringValue(guardrail.cost_source);
|
|
525
526
|
const identityCostSource = stringValue(guardrail.identity_cost_source);
|
|
526
527
|
const warnings = Array.isArray(value.warnings) ? value.warnings.filter((warning) => typeof warning === "string") : void 0;
|
|
527
528
|
return {
|
|
@@ -539,6 +540,13 @@ function normalizeSignalsEverythingResult(request, value) {
|
|
|
539
540
|
...maxCost === void 0 ? {} : {
|
|
540
541
|
costGuardrail: {
|
|
541
542
|
maxCostPerQualifiedSignalUsd: maxCost,
|
|
543
|
+
projectedSourceCostUsd: nullableNumberValue(guardrail.projected_source_cost_usd),
|
|
544
|
+
maxSourceCostUsd: nullableNumberValue(guardrail.max_source_cost_usd),
|
|
545
|
+
projectedCostPerRequestedCompanySignalUsd: nullableNumberValue(
|
|
546
|
+
guardrail.projected_cost_per_requested_company_signal_usd
|
|
547
|
+
),
|
|
548
|
+
sourceCostUsd: nullableNumberValue(guardrail.source_cost_usd),
|
|
549
|
+
costSource: ["observed", "catalog_preflight", "catalog_bounded", "mixed", "unavailable"].includes(costSource) ? costSource : void 0,
|
|
542
550
|
costPerQualifiedSignalUsd: nullableNumberValue(guardrail.cost_per_qualified_signal_usd),
|
|
543
551
|
identityResolutionCostUsd: nullableNumberValue(guardrail.identity_resolution_cost_usd),
|
|
544
552
|
identityCostSource: [
|
|
@@ -547,7 +555,13 @@ function normalizeSignalsEverythingResult(request, value) {
|
|
|
547
555
|
"not_used",
|
|
548
556
|
"unavailable"
|
|
549
557
|
].includes(identityCostSource) ? identityCostSource : void 0,
|
|
550
|
-
identityProviderRequests: numberValue(guardrail.identity_provider_requests)
|
|
558
|
+
identityProviderRequests: numberValue(guardrail.identity_provider_requests),
|
|
559
|
+
qualifiedCompanySignalCount: numberValue(guardrail.qualified_company_signal_count),
|
|
560
|
+
returnedCompanySignalCount: numberValue(guardrail.returned_company_signal_count),
|
|
561
|
+
availableCompanySignalCount: numberValue(guardrail.available_company_signal_count),
|
|
562
|
+
acquisitionCandidateLimit: numberValue(guardrail.acquisition_candidate_limit),
|
|
563
|
+
minimumQualifiedCompanySignals: numberValue(guardrail.minimum_qualified_company_signals),
|
|
564
|
+
withinLimit: guardrail.within_limit === true
|
|
551
565
|
}
|
|
552
566
|
},
|
|
553
567
|
...warnings?.length ? { warnings } : {},
|
package/package.json
CHANGED