aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/server/src/services/resource-dictionary.service.ts
diff options
context:
space:
mode:
authorAhmedeldeeb50 <ahmed.eldeeb.ext@orange.com>2021-01-12 13:07:45 +0200
committerAhmedeldeeb50 <ahmed.eldeeb.ext@orange.com>2021-01-12 13:07:45 +0200
commitbb91b6eedec5d15ec4d9e473f27dd63592762cf9 (patch)
tree8704e82261901d6a6368e7704c5c2f947b843dd8 /cds-ui/server/src/services/resource-dictionary.service.ts
parent63f820c6bc3dd6b91ec89eb968564fc46d4f2473 (diff)
Add icon beside the selected templates in Function attributes tab
update create_resource_dictionary API Issue-ID: CCSDK-3082 Issue-ID: CCSDK-3078 Signed-off-by: Ahmedeldeeb50 <ahmed.eldeeb.ext@orange.com> Change-Id: Ic5038dfba0c7b59c5e51096b9864aa0baff56c2b
Diffstat (limited to 'cds-ui/server/src/services/resource-dictionary.service.ts')
-rw-r--r--cds-ui/server/src/services/resource-dictionary.service.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/cds-ui/server/src/services/resource-dictionary.service.ts b/cds-ui/server/src/services/resource-dictionary.service.ts
index a36c7fe75..6bf3f06ae 100644
--- a/cds-ui/server/src/services/resource-dictionary.service.ts
+++ b/cds-ui/server/src/services/resource-dictionary.service.ts
@@ -1,12 +1,13 @@
-import {getService} from '@loopback/service-proxy';
-import {inject, Provider} from '@loopback/core';
-import {ResourceDictionaryDataSource} from '../datasources';
+import { getService } from '@loopback/service-proxy';
+import { inject, Provider } from '@loopback/core';
+import { ResourceDictionaryDataSource } from '../datasources';
export interface ResourceDictionaryService {
getByName(name: string): Promise<JSON>;
getSourceMapping(): Promise<JSON>;
getByTags(tags: string): Promise<JSON>;
save(resourceDictionary: JSON): Promise<JSON>;
+ saveDefinition(resourceDictionary: JSON): Promise<JSON>;
searchbyNames(resourceDictionaryList: JSON): Promise<JSON>;
getModelType(source: string): Promise<JSON>;
getDataTypes(): Promise<JSON>;
@@ -18,7 +19,7 @@ export class ResourceDictionaryServiceProvider implements Provider<ResourceDicti
// resourceDictionary must match the name property in the datasource json file
@inject('datasources.resourceDictionary')
protected dataSource: ResourceDictionaryDataSource = new ResourceDictionaryDataSource(),
- ) {}
+ ) { }
value(): Promise<ResourceDictionaryService> {
return getService(this.dataSource);