aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/source-view/source-view.service.ts
blob: 4ffd8a18eb03f12430da5a029fc5365765df040a (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);
    }

}