aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/source-view/source-view.service.ts
blob: 7589522214fdbee4cfd2d3c20d56ed9d025c8d32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import {Injectable} from '@angular/core';
import {Observable} from 'rxjs';
import { ApiService } from 'src/app/common/core/services/api.typed.service';
import { BluePrintDetailModel } from '../../model/BluePrint.detail.model';
import { ModelType } from '../model/ModelType.model';
import { ResourceDictionaryURLs, BlueprintURLs } from 'src/app/common/constants/app-constants';



@Injectable({
    providedIn: 'root'
})
export class SourceViewService {

    constructor(private api1: ApiService<BluePrintDetailModel>) {
    }


    private getBluePrintModel(id: string): Observable<BluePrintDetailModel> {
        return this.api1.getOne(BlueprintURLs.getOneBlueprint + '/' + id);
    }
    getPagedPackages(id: string) {
        return this.getBluePrintModel(id);
    }

}