UNPKG

sfdx-hardis

Version:

Swiss-army-knife Toolbox for Salesforce. Allows you to define a complete CD/CD Pipeline. Orchestrate base commands and assist users with interactive wizards

22 lines 893 B
import { SfError } from "@salesforce/core"; import { uxLog } from "../utils/index.js"; export class NotifProviderRoot { token; getLabel() { throw new SfError("getLabel should be implemented on this call"); } // By default, we don't send logs to other notif targets than API to avoid noise isApplicableForNotif(notifMessage) { return ["critical", "error", "warning", "info", "success"].includes(notifMessage.severity); } // Defines if the provider targets Users or Machines (Logs,Metrics like for Grafana Loki & Prometheus) isUserNotifProvider() { return true; } // eslint-disable-next-line @typescript-eslint/no-unused-vars async postNotification(notifMessage) { uxLog(this, `Method postNotification is not implemented yet on ${this.getLabel()}`); return; } } //# sourceMappingURL=notifProviderRoot.js.map