import { Observable } from 'rxjs'; import { TokenService } from './token.service'; import { EmailService } from './email.service'; import { InteractionApplicationUserService } from './interaction-application-user.service'; import { Application, BudgetData, ConfigurationDocument, SendApplication, Document, PliCnfStatusFlowInteraction, PliCnfStatus } from 'ng-pli-util'; import * as i0 from "@angular/core"; export declare class SendApplicationService { private environment; private tokenService; private emailService; private interactionApplicationUserService; /** This observable allows to get the porcentage */ private percentageSubject; constructor(environment: any, tokenService: TokenService, emailService: EmailService, interactionApplicationUserService: InteractionApplicationUserService); /** It has an observable to notify if the percentage is changed */ onChangePercentage(): Observable; /** it defines the value for percentage */ setPercentage(current: number, total: number): void; /** it resets the percentage */ resetPercentage(): void; /** * It send email masively * @param application * @param i current idnex * @param length length * @param sendApplication */ sendEmailMassively(application: Application): Observable; /** Send email application */ sendEmail(application: Application): Observable; /** It saves the interaction */ saveInteraction(applicationId: string, promCodigo: number, pliCnfStatusFlowInteraction: PliCnfStatusFlowInteraction, observation?: string): Observable; /** * It validates the data * @param listApplication * @param listForm * @param listDataForm * @param listBudgetSetting * @param listBudget * @param listConfigurationDocument * @param listDocument * @param validateJustRequired eg. when the screern require get just require documents (send application) */ validate(listTotalStatus: PliCnfStatus[], listApplication: Application[], listForm: any[], listDataForm: any[], listBudgetSetting: any[], listBudget: BudgetData[], listConfigurationDocument: ConfigurationDocument[], listDocument: Document[], callback: any, validateJustRequired: boolean, validateSummarizedBudget?: boolean): Array; /** it returns the forms that are activated according to status */ getListFormsByStatus(currentStatus: PliCnfStatus, listForm: any[]): any[]; /** it returns the validated document list */ getValidatedDocument(currentStatus: any, listConfigurationDocument: any, listDocument: any, application: Application, listDataForm: any, validateJustRequired: boolean): any[]; private isConfigActiveByDeactivationDate; private fillListValidateDocumentDefault; /** It gets document by configuration Id */ private getDocumentByConfigurationId; /** get the budget application by type budget and budget setup id */ private getValidatedBudgetApplication; /** It validates the budget */ private validateBudget; private validateSummarizedBudget; validateCompleteBudget(listBudgetSetting: any, listBudget: any, applicationId: any): any[]; /** it returns the validated budget list */ private getValidatedBudget; /** It returns the validated form list */ private getValidatedFormList; /** It returns the data by formId and ApplicationId */ private getErrorsByFormIdAndApplicationId; /** It returns the data by formId and ApplicationId */ private getDataByFormIdAndApplicationId; getValidatedBudgetSummarized(listBudgetSetting: any, listBudget: any, applicationId: any, currentStatus: any): any[]; automaticDocumentsValidated(configDocument: ConfigurationDocument, listDataForm: any[], document: Document): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }