Fix FRE-5402: Add missing @shieldai/removebrokers dependency and fix compilation blockers

- Add @shieldai/removebrokers workspace dependency to API package.json
- Fix misleading error message: 'Admin access required' -> 'Support access required'
- Export RemovalRequest, InfoBroker, BrokerListing types from @shieldai/db
- Export RemovalStatus, RemovalMethod, BrokerCategory enums from @shieldai/db
- Fix BrokerAlertPipeline: correlationPipeline -> correlationService.ingestGenericAlert
- Add @shieldai/correlation dependency to removebrokers package
- Fix removalUrl null vs undefined type mismatch in RemoveBrokersService
- Fix shared-billing package.json typo: @shieldsai -> @shieldai for shared-notifications
This commit is contained in:
2026-05-17 03:07:22 -04:00
parent 7410813f4e
commit e72a0ba5cf
7 changed files with 28 additions and 8 deletions

View File

@@ -57,8 +57,8 @@ export class BrokerAlertPipeline {
private async normalizeAndSend(alert: NormalizedAlertInput) {
try {
const { correlationPipeline } = await import("@shieldai/correlation");
return correlationPipeline.normalizeAlert(alert);
const { correlationService } = await import("@shieldai/correlation");
return correlationService.ingestGenericAlert(alert);
} catch {
console.error("[BrokerAlert] Failed to send alert:", alert.sourceAlertId);
return alert;

View File

@@ -236,7 +236,7 @@ export class RemoveBrokersService {
throw new Error(`Invalid personal info in request ${requestId}`);
}
const stillListed = await this.checkBrokerListing(
request.broker,
{ ...request.broker, removalUrl: request.broker.removalUrl || undefined },
personalInfo,
);