diff options
author | Ahmedeldeeb50 <ahmed.eldeeb.ext@orange.com> | 2020-12-03 17:03:10 +0200 |
---|---|---|
committer | Ahmedeldeeb50 <ahmed.eldeeb.ext@orange.com> | 2020-12-03 17:03:10 +0200 |
commit | eafc8865d856cc282e0e0845c67ff232b1a5b805 (patch) | |
tree | 7a1f996fc36c17053456ebb14be861a5283b8d39 /cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation | |
parent | d578a475277774517207c96772e221e81b6c5d25 (diff) |
add Enrich&Deploy function in designer
Issue-ID: CCSDK-2900
Signed-off-by: Ahmedeldeeb50 <ahmed.eldeeb.ext@orange.com>
Change-Id: I098fc6bbb35953fbf3728b3863e7990918305edb
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation.service.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation.service.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation.service.ts index ed3db4286..2625dc8b3 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation.service.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation.service.ts @@ -63,6 +63,10 @@ export class PackageCreationService { return this.api.post(BlueprintURLs.enrich, body, {responseType: 'blob'}); } + private enrichandpublish(body: any | null, options?: any): Observable<any> { + return this.api.post(BlueprintURLs.enrichandpublish, body, {responseType: 'blob'}); + } + private deployBluePrint(body: any | null, options?: any): Observable<any> { return this.api.post(BlueprintURLs.deploy, body, {responseType: 'text'}); } @@ -86,6 +90,11 @@ export class PackageCreationService { return this.enrichBlueprint(formData); } + enrichAndDeployPackage(blob) { + const formData = this.getFormData(blob); + return this.enrichandpublish(formData); + } + deploy(blob) { const formData = this.getFormData(blob); return this.deployBluePrint(formData); |