import { AlIntegrationConnection } from '@al/connectors'; import { AIMSUser } from '@al/core'; import { AlHeraldSubscribersV2 } from '@al/herald'; import { AlSelectItem } from '@al/ng-generic-components'; import { AlNavigationService } from '@al/ng-navigation-components'; import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core'; import { SelectItem } from 'primeng-lts/api'; import { AlNotificationDictionariesUtility } from '../services/al-notification-dictionaries-utility'; import * as i0 from "@angular/core"; export declare class AlNotificationFormComponent implements OnInit, OnChanges { private alNavigation; accountId: string; loading: boolean; showAttach: boolean; editMode: boolean; type: string; emailSubject: string; formDescription: string; notifyBehaviorOptions: { label: string; value: string; }[]; whenSendNotificationsOptions: { label: string; value: number; }[]; onChanged: EventEmitter; users: Array; integrations: Array; allSelectableUsers: Array; selectedUsers: AlSelectItem[]; initialSelectedUsers: AlSelectItem[]; initialSelectedIntegration?: AlIntegrationConnection; allSelectableIntegrations: Array; selectedIntegration?: AlIntegrationConnection; subscriptionType: string; subscriptionID: string; subscribersMenu: Array>; selectedItemMenu: AlSelectItem; dictionaries: AlNotificationDictionariesUtility; webhookPayloadFormat: unknown; includeAttachments: boolean; receiveEmpty: boolean; notifyBehavior: string; editUserCreator: string; creatorDefaultLabel: string; samples: any; integrationTypesDictionary: { [id: string]: string; }; renameConnectors: boolean; constructor(alNavigation: AlNavigationService); ngOnInit(): Promise; ngOnChanges(changes: SimpleChanges): void; /** * Reset the component. */ reset: () => void; setSubscribersMenu(): void; loadIntegrationTypes: () => Promise; /** * Set´s the creator as a default target. */ setCreatorAsADefaultTarget: () => void; /** * Returns the appropiate user label depending * on editing mode, if user is creator * will receive the default label for creator. */ getUserLabel: (userID: string) => string; /** * Set the subscribers populate the lists depending on subscriber type. */ setSubscribers: (subscribers: AlHeraldSubscribersV2[]) => void; /** * Set users transforming the list of users into selectable items. */ setSelectableUsers: (users: AIMSUser[]) => void; getIntegrationTypeName(integrationType: string | undefined): "" | " Templated Connection)" | " Connector)"; /** * Set integrations transforming the list of integrations into selectable integrations. */ setSelectableIntegrations: (integrations: AlIntegrationConnection[]) => void; /** * Get all the subscribers */ getSubscribers: () => AlHeraldSubscribersV2[]; /** * Get all the subscribers we have edited, they will be marked as add or delete */ getEditedSubscribers: () => AlHeraldSubscribersV2[]; /** * Returns the email subject. */ getEmailSubject: () => string; /** * Returns the include_attachments value */ allowAttachments: () => boolean; /** * Returns the notify_behavior value */ getNotifyBehavior: () => string; /** * Set the include_attachments param. */ setIncludeAttachments: (includeAttachments: boolean) => void; /** * Set the notify_behavior param. */ setNotifyBehavior: (notifyBehavior: string) => void; /** * Set the email subject. */ setEmailSubject: (emailSubject: string) => void; /** * Get the integration from the current options. */ getIntegrationById: (integrationId: string) => AlIntegrationConnection; /** * Get the user from the current options. */ getUserById: (userId: string) => AIMSUser; /** * Validate the subscribers section. */ hasSubscribersSelected: () => boolean; /** * Validate if the user has not deleted the email subject. */ hasEmailSubject: () => boolean; /** * Updates the users subtitle. */ updateUsersSubtitle: (users: AIMSUser[]) => void; /** * Updates the integrations subtitle. */ updateIntegrationsSubtitle: (integration: AlIntegrationConnection) => void; /** * Event handler when user select/deselect an integration. */ onSelectedIntegration: (event: AlIntegrationConnection) => void; /** * When the user select different recipient type. */ onSelectSubcriptionType: (event: AlSelectItem) => void; /** * Event handler when user select/deselect users recipients. */ onSelectedUser: (event: AIMSUser[]) => void; /** * Event handler when selected receive empty results */ onNotifyBehaviorChanged: (checked: boolean) => void; changePlayload(integration: AlIntegrationConnection | null): void; static ɵfac: i0.ɵɵFactoryDef; static ɵcmp: i0.ɵɵComponentDefWithMeta; }