Add package deletion button
[ccsdk/cds.git] / cds-ui / server / src / services / blueprint.service.ts
index 2680e10..379f8d4 100644 (file)
@@ -1,15 +1,16 @@
-import {getService} from '@loopback/service-proxy';
-import {inject, Provider} from '@loopback/core';
-import {BlueprintDataSource} from '../datasources';
+import { getService } from '@loopback/service-proxy';
+import { inject, Provider } from '@loopback/core';
+import { BlueprintDataSource } from '../datasources';
 
 export interface BlueprintService {
-    getOneBluePrint(id: string): any;
-   getAllblueprints(): Promise<any>;
-   getBlueprintsByKeyword(keyword: string): Promise<any>;
-   getByTags(tags: string): Promise<JSON>;
-   getPagedBueprints(limit: number, offset: number , sort: string,sortType: String): Promise<any>;
-   getMetaDataPagedBlueprints(limit: number, offset: number, sort: string, keyword: string,sortType: String): Promise<any>;
-   getBlueprintByNameAndVersion(name:string, version:string): Promise<any>;
+  getOneBluePrint(id: string): any;
+  deleteBluePrint(id: string): any;
+  getAllblueprints(): Promise<any>;
+  getBlueprintsByKeyword(keyword: string): Promise<any>;
+  getByTags(tags: string): Promise<JSON>;
+  getPagedBueprints(limit: number, offset: number, sort: string, sortType: String): Promise<any>;
+  getMetaDataPagedBlueprints(limit: number, offset: number, sort: string, keyword: string, sortType: String): Promise<any>;
+  getBlueprintByNameAndVersion(name: string, version: string): Promise<any>;
 
 
 }
@@ -19,7 +20,7 @@ export class BlueprintServiceProvider implements Provider<BlueprintService> {
     // blueprint must match the name property in the datasource json file
     @inject('datasources.blueprint')
     protected dataSource: BlueprintDataSource = new BlueprintDataSource(),
-  ) {}
+  ) { }
 
   value(): Promise<BlueprintService> {
     return getService(this.dataSource);