diff options
author | 2020-12-03 17:17:07 +0000 | |
---|---|---|
committer | 2020-12-03 17:17:07 +0000 | |
commit | 4e62d2653db35c295e2697398dd3c4278ed56009 (patch) | |
tree | fc2520ae999d9eaaad1d918138e8fa0e1b4bc4dd /cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation.service.ts | |
parent | 7871f10b1c93e938f5f26e7c9545fa422cd58351 (diff) | |
parent | eafc8865d856cc282e0e0845c67ff232b1a5b805 (diff) |
Merge "add Enrich&Deploy function in designer"
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation.service.ts')
-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); |