diff options
Diffstat (limited to 'cds-ui/server/src/services/resource-dictionary.service.ts')
-rw-r--r-- | cds-ui/server/src/services/resource-dictionary.service.ts | 9 |
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); |