import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { PliPatrocinador, PliPrograma, PliPromocion, PliCnfConfiguracion, PppRequest } from 'ng-pli-util'; import * as i0 from "@angular/core"; export declare class PppService { private environment; private httpClient; private headerJson; /** It contains the key of the json web token */ static TOKEN_PPP: string; /** This observable allows to verify if ppp is created */ private subjectPpp; /** This observable allows to verify if list ppp is generated */ private subjectListPpp; constructor(environment: any, httpClient: HttpClient); /** It has an observable to notify if the ppp is changed */ onChangePpp(): Observable; /** It sets the new ppp */ setPpp(ppp: number): void; /** It returns a list of patrocinador */ getListPatrocinador(): Observable; /** It returns a patrocinador by id */ getPatrocinadorById(id: number): Observable; /** It saves a patrocinador */ savePatrocinador(oldPatrocinador: PliPatrocinador, patrocinador: PliPatrocinador): Observable; /** It returns the list of tipo patrocinador */ getListTipoPatrocinador(): Observable; /** It returns the list of tipo programa */ getListTipoPrograma(): Observable; /** It returns the list of paises */ getPaises(): Observable; /** It returns the list of programas by patrocinador id */ getListProgramasBypatCodigo(patCodigo: number): Observable; /** It returns programa by id */ getProgramaById(id: number): Observable; /** It saves a programa */ savePrograma(oldPrograma: PliPrograma, programa: PliPrograma): Observable; /** It returns the list of programas by programa id */ getListPromocionesByprogCodigo(progCodigo: number): Observable; /** It returns the list of programas by patrocinador id */ getListPromocionesBypatCodigo(patCodigo: number): Observable; /** It returns the list of programas by patrocinador id and without configuracion */ getListPromocionesBypatCodigoWithoutConfiguracion(patCodigo: number): Observable; /** It returns promocion by id */ getPromocionById(id: number): Observable; /** It saves a promocion */ savePromocion(oldPromocion: PliPromocion, promocion: PliPromocion): Observable; /** It returns a list of pliCnfConfiguracion by patCodigo */ getConfiguracionBypatCodigo(patCodigo: number, cargarListas: boolean): Observable; /** It returns configuracion by id */ getConfiguracionById(id: number, cargarListas: boolean): Observable; /** It saves a configuracion */ saveConfiguracion(oldConfiguracion: PliCnfConfiguracion, configuracion: PliCnfConfiguracion): Observable; /** It updates de code of configuracion to a list of codes of promocion */ updateConfiguracionPliPromocion(cconCodigo: number, listaPromCodigo: Array): Observable; /** It has an observable to notify if the list ppp is generated*/ getListPpp(): Observable>; /** It returns a list of available pliPromocion by patCodigo */ getAvailablePromocion(patCodigo: number): Observable; /** It returns a list of pliPromocion */ getAll(): Observable; /** it returns list of patrocinador depends of token info*/ getlPatrocinadorByToken(): PliPatrocinador[]; getAllPromociones(): PliPromocion[]; /** it returns the patcodigo by promCodigo */ getPatCodigoByPromCodigo(promCodigo: any): number; /** it returns the patcodigo by promCodigo */ getProgCodigoByPromCodigo(promCodigo: any): number; /** It generated a light list of ppp */ private generate; /** it returns the PPP from the token */ getPPPInfoFromToken(): PliPatrocinador[]; pppRollback(pppRequest: PppRequest): Observable; deleteBudgetByProm(promCodigo: number): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }