import { OdspDocumentServiceFactory , createOdspCreateContainerRequest , createOdspUrl , OdspDriverUrlResolver , } from "@fluidframework/odsp-driver" ; import { HostStoragePolicy , ISnapshotOptions , IOpsCachingPolicy , ICollabSessionOptions , } from "@fluidframework/odsp-driver-definitions" ; import { booleanCases , generatePairwiseOptions , OptionsMatrix , numberCases , } from "@fluidframework/test-pairwise-generator" ; import { pkgVersion } from "./packageVersion" ; export const OdspDriverApi = { version : pkgVersion , OdspDocumentServiceFactory , OdspDriverUrlResolver , createOdspCreateContainerRequest , createOdspUrl } ; export type OdspDriverApiType = typeof OdspDriverApi ; const odspSnapshotOptions = { blobs : numberCases , channels : numberCases , deltas : numberCases , mds : numberCases , timeout : numberCases } ; const odspOpsCaching = { batchSize : [ undefined , - 1 ] , timerGranularity : numberCases , totalOpsToCache : numberCases } ; const odspSessionOptions = { unauthenticatedUserDisplayName : [ undefined ] } ; export const generateOdspHostStoragePolicy = ( seed ) => { const odspHostPolicyMatrix = { concurrentSnapshotFetch : booleanCases , opsBatchSize : numberCases , concurrentOpsBatches : numberCases , snapshotOptions : [ undefined , ... generatePairwiseOptions ( odspSnapshotOptions , seed ) ] , opsCaching : [ undefined , ... generatePairwiseOptions ( odspOpsCaching , seed ) ] , sessionOptions : [ undefined , ... generatePairwiseOptions ( odspSessionOptions , seed ) ] , enableRedeemFallback : booleanCases , cacheCreateNewSummary : booleanCases , fetchBinarySnapshotFormat : [ false ] , isolateSocketCache : [ true ] , enableShareLinkWithCreate : [ false ] } ; return generatePairwiseOptions < HostStoragePolicy > ( odspHostPolicyMatrix , seed ) ; } ;