import { IRequest } from "@fluidframework/core-interfaces" ; import { DriverHeader } from "@fluidframework/driver-definitions" ; import { ShareLinkTypes } from "@fluidframework/odsp-driver-definitions" ; param siteUrl param driveId param filePath param fileName param createLinkType export function createOdspCreateContainerRequest ( siteUrl , driveId , filePath , fileName , createLinkType ? ) { const createNewRequest = { url : `${ siteUrl }?driveId=${ encodeURIComponent ( driveId ) }&path=${ encodeURIComponent ( filePath ) }${ createLinkType ? `&createLinkType=${ createLinkType }` : "" }` , headers : { [ DriverHeader . createNew ] : { fileName } } } ; return createNewRequest ; }