1 import {Injectable} from '@angular/core';
2 import {Observable} from 'rxjs';
3 import { ApiService } from 'src/app/common/core/services/api.typed.service';
4 import { BlueprintDetailModel } from '../../model/Blueprint.detail.model';
5 import { ModelType } from '../model/ModelType.model';
6 import { ResourceDictionaryURLs, BlueprintURLs } from 'src/app/common/constants/app-constants';
13 export class SourceViewService {
15 constructor(private api1: ApiService<BlueprintDetailModel>) {
19 private getBlueprintModel(id: string): Observable<BlueprintDetailModel> {
20 return this.api1.getOne(BlueprintURLs.getOneBlueprint + '/' + id);
22 getPagedPackages(id: string) {
23 return this.getBlueprintModel(id);