import { Item, LinkType, ProjectFileSystem } from '@sap/artifact-management-base-types'; import CapApi, { CDSDefinition } from '@sap/artifact-management-base/dist/types/src/cp/CapApi'; export default class ItemUtil { static getRef(fileName: string): string; /** * Get the service ref from service object. * The method parses the service object and * creates a ref following the same step as done be CDS. * As a result, the value will match the service endpoint value generated by CDS. */ static getServiceRef(service: any): string; static getServiceEntityRef(serviceEnity: any): string; static getOperationRef(operation: any): string; static needLinkTo(dbEntity: any): boolean; static addLink(entity: Item, target: any, linkType: LinkType, serviceRefs: { [key: string]: string; }): void; static addCapLinksToAppLogicItem(fs: ProjectFileSystem, file: string, capApi: CapApi, items: Item[], tags: any[]): Promise; static addLinksToAppLogicItem(fs: ProjectFileSystem, file: string, capApi: CapApi, logicItem: Item): Promise; static addLinksToJavaAppLogicItem(fs: ProjectFileSystem, file: string, capApi: CapApi, logicItem: Item): Promise; private static addLinksToAppLogicItemWithEntity; private static addLinksToAppLogicItemWithService; private static addLinksToAppLogicItemWithoutEntity; static addLinkToRoles(cdsObject: CDSDefinition, item: Item): void; static getOperationItem(fs: ProjectFileSystem, operation: any, tags: string[], withDetailInfo: boolean): Item; static getEventItem(fs: ProjectFileSystem, event: any, tags: string[], withDetailInfo: boolean): Item; static addDetailInfoForOperaton(item: Item, operation: any): void; static addNamespaceItemFromEntityItem(items: Map, entityItem: Item, namespace: string, itemTags: string[], addLinks?: boolean): void; static addDetailInfo(entity: CDSDefinition, item: Item): void; private static getAnnotationInfo; private static isExportedAnnotation; private static getAttributeInfo; private static collectAttributes; private static collectPropertyProjectionAttribute; private static collectExtendProjectionAttribute; private static getPath; }