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
28 lines (27 loc) • 1.22 kB
TypeScript
import { NotifProviderRoot } from "./notifProviderRoot.js";
import { UtilsNotifs as utilsNotifs } from "./utils.js";
export declare abstract class NotifProvider {
static getInstances(): NotifProviderRoot[];
static postNotifications(notifMessage: NotifMessage): Promise<void>;
getLabel(): string;
postNotification(notifMessage: string, buttons?: any[], attachments?: any[]): Promise<void>;
}
export type NotifSeverity = "critical" | "error" | "warning" | "info" | "success" | "log";
export interface NotifMessage {
text: string;
type: "ACTIVE_USERS" | "AUDIT_TRAIL" | "APEX_TESTS" | "BACKUP" | "DEPLOYMENT" | "LEGACY_API" | "LICENSES" | "LINT_ACCESS" | "UNUSED_METADATAS" | "METADATA_STATUS" | "MISSING_ATTRIBUTES" | "UNUSED_LICENSES" | "UNUSED_USERS" | "UNUSED_APEX_CLASSES" | "CONNECTED_APPS" | "ORG_INFO" | "ORG_LIMITS" | "RELEASE_UPDATES";
buttons?: NotifButton[];
attachments?: any[];
severity: NotifSeverity;
sideImage?: string;
attachedFiles?: string[];
logElements: any[];
metrics: any;
data: any;
}
export interface NotifButton {
text: string;
url?: string;
style?: "primary" | "danger";
}
export declare const UtilsNotifs: typeof utilsNotifs;