import { Component , Injector } from '@angular/core' ; import { DeployedServicePackageBaseControllerDirective } from '../DeployedServicePackage' ; import { DataService } from 'src/app/services/data.service' ; import { IResponseMessageHandler } from 'src/app/Common/ResponseMessageHandlers' ; import { Observable } from 'rxjs' ; import { map } from 'rxjs/operators' ; @ Component ( { selector : 'app-manifest' , templateUrl : './manifest.component.html' , styleUrls : [ './manifest.component.scss' ] } ) export class ManifestComponent extends DeployedServicePackageBaseControllerDirective { serviceManifest : string ; constructor ( protected data , injector ) { super ( data , injector ) ; } setup ( ) { } refresh ( messageHandler ? ) { return this . servicePackage . manifest . refresh ( messageHandler ) . pipe ( map ( manifest => { this . serviceManifest = manifest . raw . Manifest ; } ) ) ; } }