import { AIMSAccount, AlCardstackCharacteristics } from '@al/core'; import { SQXSearchQuery } from '@al/search'; import { AlGenericAlertDefinition } from '@al/gestalt'; import { CargoReportWeeklyScheduleV2, CargoReportMonthlyScheduleV2, CargoReportDailyScheduleV2 } from '@al/cargo'; import { AlHeraldNotificationType } from '@al/herald'; /** * this is going to be used to complement information related to the alerts in the ui side */ export declare class AlNotificationDictionariesUtility { subMenuDictionary: { [id: string]: string; }; workbookDictionary: { [id: string]: string; }; viewDictionary: { [id: string]: string; }; scheduleNameDictionary: { [id: string]: string; }; accountDictionary: { [id: string]: string; }; userDictionary: { [id: string]: string; }; webhookDictionary: { [id: string]: string; }; workbookBySubMenuDictionary: { [id: string]: string; }; workbookContentUrlDictionary: { [id: string]: string; }; workbookEmbedUrlDictionary: { [id: string]: string; }; viewFrequencyDictionary: { [id: string]: string[]; }; viewParentAccountOnlyDictionary: { [id: string]: boolean; }; notificationTypesMap: { [key: string]: AlHeraldNotificationType; }; viewFilterNames: { [id: string]: string[]; }; /** * Create dictionary for users and accounts * @param characteristics */ createDictionaries(characteristics: AlCardstackCharacteristics): void; /** * Return the value of a dictionary, in the case the value is not found return a default or undefined * @param id * @param dictionary * @param defaultValue */ getValueDictonary(id: string | undefined, dictionary: { [i: string]: string; }, defaultValue?: string): string | undefined; getUserName(userId: string): string | undefined; getAccountName(accountId: string): string | undefined; getWebhookName(integrationId: string): string | undefined; getScheduleName(scheduleId: string): string | undefined; getBaseReportFiltersSort(): string[]; getCadenceName(schedule: any): "monthly" | "weekly" | "daily" | "every_15_minutes" | "asap"; complementScheduleAccounts(item: AlGenericAlertDefinition, accounts: string[]): void; complementSchedule(item: AlGenericAlertDefinition, accountId?: string): void; getRunTime(schedule: 'every_15_minutes' | 'asap' | { daily?: CargoReportDailyScheduleV2; } | { weekly?: CargoReportWeeklyScheduleV2; } | { monthly?: CargoReportMonthlyScheduleV2; }): undefined | number; /** * Retrieves an array with the value of the threat levels. * @param conditions SQXSearchQuery The query used. */ getFilterslistFromConditions(conditions: SQXSearchQuery): Array; /** * * @param conditions SQXSearchQuery The query used. * @param type value type what is being looking for * @returns Array of string if some are founded values */ getValuesFromConditions(conditions: SQXSearchQuery, type: string): string[]; /** * Retrieves escalated value * @param conditions SQXSearchQuery The query used. */ getEscalatedFromConditions(conditions: SQXSearchQuery): boolean; /** * Retrieves an array with the value of the accounts, also include fake ids in order * to propertly select options in the screen. * @param conditions SQXSearchQuery The query used. */ getAccountsFromConditions(conditions: SQXSearchQuery): Array; incidentNotificationSetAccounts(item: AlGenericAlertDefinition): void; complementIncident(item: AlGenericAlertDefinition): void; getNoSubscribersWarningMessage(): string; getTextMyAccountsAndManaged(): string; getTextManagedAccounts(): string; getMyAccountsAndManagedFakeId(): string; getManagedAccountsFakeId(): string; getFakeMyAccountsAndManagedAccount(): AIMSAccount; getFakeManagedAccount(): AIMSAccount; setNotificationTypesMap(): Promise; getEmailSubjectTemplate(type: string): Promise; getWebhookPayload(type: string): unknown; }