import { getPregeneratedLibrary , getSdkMetadataClient , Client } from '@sap-cloud-sdk/generator-common/internal' ; import { OpenApiDocument } from '../openapi-types' ; import { packageDescription } from './package-description' ; import { getGenerationAndUsage } from './generation-and-usage' ; internal export async function sdkMetadata ( openApiDocument ) { const [ pregeneratedLibrary , generationAndUsage ] = await Promise . all ( [ getPregeneratedLibrary ( packageDescription ( openApiDocument . serviceOptions . packageName ) , openApiDocument . serviceOptions . packageName ) , getGenerationAndUsage ( openApiDocument ) ] ) ; return getSdkMetadataClient ( generationAndUsage , pregeneratedLibrary ) ; }