import { CurrencyPipe } from '@angular/common'; import { HttpClient } from '@angular/common/http'; import { PliCnfGuaranteeToken, Token } from 'ng-pli-util'; import { Observable } from 'rxjs'; import { FormService } from './form.service'; import * as i0 from "@angular/core"; export declare class TokenService { private environment; private httpClient; private formService; private currencyPipe; /** */ static SIGN_LETTER_TAG_ID: string; /** */ locale: string; /** */ static TOKEN_LABEL_FORM: string; /** */ static TOKEN_LABEL_BUDGET: string; /** */ static TOKEN_LABEL_CALCULATED: string; /** */ static TOKEN_LABEL_SNAPSHOT: string; /** */ static TOKEN_LABEL_STATIC: string; /** */ static TOKEN_LABEL_DOCUMENTO: string; /** */ static TOKEN_LABEL_DOCUMENTO_ANALISIS_AUTOMATICO: string; /** */ static TOKEN_DOCUMENTO_ANALYSIS_TYPE: string; /** */ static TOKEN_LABEL_TASK: string; /** */ static TOKEN_LABEL_TASKL: string; /** */ static TOKEN_LABEL_GUARANTEE: string; /** */ static BUDGET_TOKENS_KEY_TOTAL_AMOUNT: string; /** */ static BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_AMOUNT: string; /** */ static BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_OWN_FOUNDS: string; /** */ static BUDGET_TOKENS_KEY_APPLICATION_PROCESS_TOTAL_FINANCING: string; /** */ static BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_AMOUNT: string; /** */ static BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_OWN_FOUNDS: string; /** */ static BUDGET_TOKENS_KEY_LEGALIZATION_PROCESS_TOTAL_FINANCING: string; /** */ static BUDGET_TOKENS_KEY_INSURANCE_AMOUNT: string; /** */ static LEGALIZATION_OR_APPLICATION_TOTAL_FINANCING: string; /** */ static BUDGET_TOKENS_KEY_RESUME_CATEGORY_YEAR: string; /** */ static BUDGET_TOKENS_KEY_FECHA_FINANCING_START: string; /** */ static BUDGET_TOKENS_KEY_FECHA_FINANCING_END: string; /** */ static BUDGET_TOKENS_DURATION_STUDIES: string; /** */ static BUDGET_TOKENS_FINANCING_DURATION: string; /** */ static STATIC_TOKENS_KEY_CODIGO_VERIFICACION: string; /** */ static STATIC_TOKENS_KEY_A_QUIEN_VA_DIRIGIDO: string; /** */ static STATIC_TOKENS_KEY_FECHA_ACTUAL: string; /** */ static STATIC_TOKENS_KEY_STATUS_NAME: string; /** */ static STATIC_TOKENS_KEY_PATROCINADOR: string; /** */ static STATIC_TOKENS_KEY_PATROCINADOR_CORTO: string; /** */ static STATIC_TOKENS_KEY_PROGRAMA: string; /** */ static STATIC_TOKENS_KEY_PROGRAMA_CORTO: string; /** */ static STATIC_TOKENS_KEY_PROMOCION: string; /** */ static STATIC_TOKENS_KEY_PROMOCION_CORTO: string; /** */ static STATIC_TOKENS_KEY_ANIO_PROMOCION: string; /** */ static STATIC_TOKENS_KEY_ISO_MONEDA_BASE: string; /** */ static STATIC_TOKENS_KEY_SALUDO_COMPLEMENTARIO: string; /** */ static STATIC_TOKENS_KEY_NUMBER_APPLICATION: string; /** */ static STATIC_TOKENS_KEY_USER_INITIALS: string; /** */ static STATIC_TOKENS_KEY_LETTER_SIGN: string; /** */ static STATIC_TOKENS_COMMITTEE_NAME: string; /** */ static STATIC_TOKENS_COMMITTEE_SEGMENTATION: string; /** */ static STATIC_TOKENS_COMMITTEE_AGGRUPATION: string; /** */ static STATIC_TOKENS_COMMITTEE_CUTLINE_DATE: string; /** */ static STATIC_TOKENS_CONFIRM_LEGALIZATION_APPOINTMENT: string; /** */ static STATIC_TOKENS_CODEBTOR_DOCUMENT_NUMBER: string; /** */ static STATIC_TOKENS_CODEBTOR_DOCUMENT_TYPE: string; /** */ static STATIC_TOKENS_CODEBTOR_NAME: string; /** */ static STATIC_TOKENS_CODEBTOR_LASTNAME: string; /** */ static STATIC_TOKENS_TYPE_CODEBTOR: string; /** */ static STATIC_TOKENS_CODEBTOR_REVIEWER: string; /** */ static STATIC_TOKENS_TOTAL_WEIGHTED: string; /** */ static STATIC_TOKENS_CONSECUTIVE_GUARANTEE: string; /** */ static STATIC_TOKENS_DAY: string; /** */ static STATIC_TOKENS_MONTH: string; /** */ static STATIC_TOKENS_YEAR: string; /** */ static STATIC_TOKENS_REPRESENTATIVE_NAME: string; /** */ static STATIC_TOKENS_REPRESENTATIVE_LASTNAME: string; /** */ static STATIC_TOKENS_REPRESENTATIVE_DOCUMENT_NUMBER: string; /** */ static STATIC_TOKENS_CITY_SIGNATURE: string; /** */ static STATIC_TOKENS_USER_TYPE_CREDIT_STUDY: string; /** */ static STATIC_TOKENS_CODEBTOR_VEHICLES_QUANTITY: string; /** */ static STATIC_TOKENS_CODEBTOR_ASSETS_QUANTITY: string; /** */ static STATIC_TOKENS_LIST_CODEBTORS: string; /** */ static STATIC_TOKEN_INGRESO_CODEUDOR_HABEAS_DATA: string; /** */ static STATIC_TOKEN_PDF_RESUMEN_CODEUDOR: string; /** */ static STATIC_TOKENS_QUANTITY_VEHICLE_BENEFICIARY: string; /** */ static STATIC_TOKENS_QUANTITY_ASSETS_BENEFICIARY: string; /** */ static STATIC_TOKENS_BEN_CODIGO: string; /** */ static STATIC_TOKEN_CREDIT_REVIEWER_OBSERVATIONS_CODEBTOR: string; /** */ static STATIC_TOKEN_CREDIT_REVIEWER_OBSERVATIONS: string; static STATIC_TOKEN_TAG_NAME: string; static STATIC_TOKEN_NAME_REVIEWER_TASK: string; static STATIC_TOKEN_LAST_NAME_REVIEWER_TASK: string; static STATIC_TOKEN_TASK_TOTAL_ASSIGNED_TO_REVIEWER: string; static STATIC_TOKEN_SURNAME: string; static STATIC_TOKENS: any[]; static excludedToken: string[]; constructor(environment: any, httpClient: HttpClient, formService: FormService, currencyPipe: CurrencyPipe); /** This promise allows to execute a function when consulting the form fields. */ getFormFieldsByPromCode(promCodigo: any): Promise; getFormFieldsByPromCodeWithEditGrids(promCodigo: any): Promise; getFormFieldsByFormId(formId: string): Promise; /** This promise allows to execute a function when consulting the form fields. */ getFormPanelsByPromCode(promCodigo: any): Promise; /** * A recursive method to get all the information of the editGrid dynamic form * @param components * @param form */ getPanelComponenet(components: any[], form: any, panelName: string): any[]; /** * A recursive method to get all the information of the components a columns of the dynamic form * @param components * @param form */ getComponenetForm(components: any[], form: any, panelName: string, editgrid: boolean, editGridKey: string): any[]; /** This promise allows to execute a function when consulting the form fields. */ getFormEditGridFieldsByPromCode(promCodigo: any): Promise; /** * A recursive method to get all the information of the editGrid dynamic form * @param components * @param form */ getEditGridComponenet(components: any[], form: any, panelName: string): any[]; /** It returns the tokens by promCodigo */ getListByPromCodigo(promCode: number): Observable; /** It returns the token by id */ getById(id: number): Observable; /** It deletes a form by id */ delete(id: any): Observable; /** It saves the token */ save(token: Token): Observable; static getKeyFormulario(formTitle: string): string; /** It returns the unique verification code */ getUniqueVerificationCode(login: string, token: string): Observable; /** It send the information to copy the Document viewer */ copyDocumentInformationViewer(login: string, token: string, uniqueCode: string, documentURL: string, documentName: string): Observable; static getKeyBudget(): string; static getKeyDocument(): string; static getKeyDocumentAnalysis(): string; static getKeyTask(): string; static getKeyStatic(): string; static getKeyCalculated(token: Token): string; static getKeySnapshot(token: Token): string; static getKeyGuarantee(token: PliCnfGuaranteeToken): string; /** * Return a value that represent the type of label: 1=Form, 2=Budget, 3=Static, 4=Calculated * @param key Value to evalueate */ static getKeyType(key: string): number; /** * Depends of the type of formFieldToken return de value of the valueData * @param formFieldToken * @param valueData */ getValueFromFormField(formFieldToken: any, valueData: any): any; formatDate(value: Date, locale: string): string; /** * Try to find the token in the stringText and replace with dataValue. If detect format of number or date try to format the dataValue * @param stringText * @param token * @param dataValue */ replaceToken(stringText: string, token: any, dataValue: any, locale?: string): string; getListTokensByStringSegmentation(stringText: string): any[]; changeIdPropertiesOfObject(normalizationColumns: any[], listData: any[]): any[]; generateHtmlByTokensAndData(html: string, listData: any[], listTokens: any[]): string[]; getListTokensByString(stringText: string): any[]; nextValidPositionTokens(stringText: string, nextI: number): number; /** * It reuses replaceTokensFromListObjectPublic but set all keys lobjecttokens as lowercase * @param tokenName * @param formula * @param lObjectTokens */ replaceTokensFromListObjectPublic(tokenName: string, formula: string, lObjectTokens: any[]): string; /** * @param tokenName token name * @param formula String with the formula to execute * @param lObjectTokens List of tokens with the values to replace */ replaceTokensFromListObject(tokenName: string, formula: string, lObjectTokens: any): string; getQuoteContext(src: any, idx: any): "double" | "single"; /** * MEtodo que teniendo una expresion de la forma ['tag1', 'tag2']==tag3 * evalua si tag3 hace parte del array si tiene el operador ==. * Si tiene el operador != examina que tag3 no haga parte del array+ * * @param expression Operando que evalua tag. Es de la forma ['tag1', 'tag2']==tag3 * @returns Retorna 'true' o 'false' en string que despues sera pasado a un eval() * mas adelante en el flujo */ findTag(expression: string): string; /** * Try to eval the formula depend of the type of fields. * @param lStaticToken * @param formulaName * @param formula */ validateFormula(lStaticToken: any, formulaName: string, formula: string): boolean; getConfigCloningTokenMap(oldPPP: number, newPPP: number): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }