@fluidframework/odsp-driver 2.0.0-dev-rc.1.0.0.224419 → 2.0.0-dev-rc.1.0.0.228517
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/README.md +0 -6
- package/api-extractor-esm.json +4 -0
- package/api-report/odsp-driver.api.md +1 -2
- package/dist/{ReadBufferUtils.cjs → ReadBufferUtils.js} +1 -1
- package/dist/ReadBufferUtils.js.map +1 -0
- package/dist/{WriteBufferUtils.cjs → WriteBufferUtils.js} +2 -2
- package/dist/WriteBufferUtils.js.map +1 -0
- package/dist/{checkUrl.cjs → checkUrl.js} +2 -2
- package/dist/checkUrl.js.map +1 -0
- package/dist/{compactSnapshotParser.cjs → compactSnapshotParser.js} +4 -4
- package/dist/compactSnapshotParser.js.map +1 -0
- package/dist/{compactSnapshotWriter.cjs → compactSnapshotWriter.js} +4 -4
- package/dist/compactSnapshotWriter.js.map +1 -0
- package/dist/{constants.cjs → constants.js} +1 -1
- package/dist/constants.js.map +1 -0
- package/dist/{contracts.cjs → contracts.js} +1 -1
- package/dist/contracts.js.map +1 -0
- package/dist/{contractsPublic.cjs → contractsPublic.js} +1 -1
- package/dist/contractsPublic.js.map +1 -0
- package/dist/{createFile.cjs → createFile.js} +10 -10
- package/dist/createFile.js.map +1 -0
- package/dist/{createNewContainerOnExistingFile.cjs → createNewContainerOnExistingFile.js} +7 -7
- package/dist/createNewContainerOnExistingFile.js.map +1 -0
- package/dist/{createNewModule.cjs → createNewModule.js} +3 -3
- package/dist/createNewModule.js.map +1 -0
- package/dist/{createNewUtils.cjs → createNewUtils.js} +4 -4
- package/dist/createNewUtils.js.map +1 -0
- package/dist/{createOdspCreateContainerRequest.cjs → createOdspCreateContainerRequest.js} +2 -2
- package/dist/createOdspCreateContainerRequest.js.map +1 -0
- package/dist/{createOdspUrl.cjs → createOdspUrl.js} +1 -1
- package/dist/createOdspUrl.js.map +1 -0
- package/dist/{epochTracker.cjs → epochTracker.js} +6 -6
- package/dist/epochTracker.js.map +1 -0
- package/dist/{fetch.cjs → fetch.js} +1 -1
- package/dist/fetch.js.map +1 -0
- package/dist/{fetchSnapshot.cjs → fetchSnapshot.js} +8 -8
- package/dist/fetchSnapshot.js.map +1 -0
- package/dist/{getFileLink.cjs → getFileLink.js} +5 -5
- package/dist/getFileLink.js.map +1 -0
- package/dist/{getQueryString.cjs → getQueryString.js} +1 -1
- package/dist/getQueryString.js.map +1 -0
- package/dist/{getUrlAndHeadersWithAuth.cjs → getUrlAndHeadersWithAuth.js} +1 -1
- package/dist/getUrlAndHeadersWithAuth.js.map +1 -0
- package/dist/{index.cjs → index.js} +18 -18
- package/dist/index.js.map +1 -0
- package/dist/localOdspDriver/{localOdspDeltaStorageService.cjs → localOdspDeltaStorageService.js} +1 -1
- package/dist/localOdspDriver/localOdspDeltaStorageService.js.map +1 -0
- package/dist/localOdspDriver/{localOdspDocumentService.cjs → localOdspDocumentService.js} +3 -3
- package/dist/localOdspDriver/localOdspDocumentService.js.map +1 -0
- package/dist/localOdspDriver/{localOdspDocumentServiceFactory.cjs → localOdspDocumentServiceFactory.js} +4 -4
- package/dist/localOdspDriver/localOdspDocumentServiceFactory.js.map +1 -0
- package/dist/localOdspDriver/{localOdspDocumentStorageManager.cjs → localOdspDocumentStorageManager.js} +4 -4
- package/dist/localOdspDriver/localOdspDocumentStorageManager.js.map +1 -0
- package/dist/odsp-driver-alpha.d.ts +1 -2
- package/dist/odsp-driver-beta.d.ts +2 -1
- package/dist/odsp-driver-public.d.ts +2 -1
- package/dist/odsp-driver-untrimmed.d.ts +1 -2
- package/dist/{odspCache.cjs → odspCache.js} +1 -1
- package/dist/odspCache.js.map +1 -0
- package/dist/{odspDelayLoadedDeltaStream.cjs → odspDelayLoadedDeltaStream.js} +5 -5
- package/dist/odspDelayLoadedDeltaStream.js.map +1 -0
- package/dist/{odspDeltaStorageService.cjs → odspDeltaStorageService.js} +2 -2
- package/dist/odspDeltaStorageService.js.map +1 -0
- package/dist/{odspDocumentDeltaConnection.cjs → odspDocumentDeltaConnection.js} +4 -4
- package/dist/odspDocumentDeltaConnection.js.map +1 -0
- package/dist/{odspDocumentService.cjs → odspDocumentService.js} +10 -8
- package/dist/odspDocumentService.js.map +1 -0
- package/dist/{odspDocumentServiceFactory.cjs → odspDocumentServiceFactory.js} +3 -3
- package/dist/odspDocumentServiceFactory.js.map +1 -0
- package/dist/odspDocumentServiceFactoryCore.d.ts +3 -1
- package/dist/odspDocumentServiceFactoryCore.d.ts.map +1 -1
- package/dist/{odspDocumentServiceFactoryCore.cjs → odspDocumentServiceFactoryCore.js} +8 -6
- package/dist/odspDocumentServiceFactoryCore.js.map +1 -0
- package/dist/{odspDocumentServiceFactoryWithCodeSplit.cjs → odspDocumentServiceFactoryWithCodeSplit.js} +2 -2
- package/dist/odspDocumentServiceFactoryWithCodeSplit.js.map +1 -0
- package/dist/{odspDocumentStorageManager.cjs → odspDocumentStorageManager.js} +9 -7
- package/dist/odspDocumentStorageManager.js.map +1 -0
- package/dist/{odspDocumentStorageServiceBase.cjs → odspDocumentStorageServiceBase.js} +1 -1
- package/dist/odspDocumentStorageServiceBase.js.map +1 -0
- package/dist/{odspDriverUrlResolver.cjs → odspDriverUrlResolver.js} +7 -7
- package/dist/odspDriverUrlResolver.js.map +1 -0
- package/dist/{odspDriverUrlResolverForShareLink.cjs → odspDriverUrlResolverForShareLink.js} +7 -7
- package/dist/odspDriverUrlResolverForShareLink.js.map +1 -0
- package/dist/{odspError.cjs → odspError.js} +2 -2
- package/dist/odspError.js.map +1 -0
- package/dist/{odspFluidFileLink.cjs → odspFluidFileLink.js} +2 -2
- package/dist/odspFluidFileLink.js.map +1 -0
- package/dist/{odspLocationRedirection.cjs → odspLocationRedirection.js} +2 -2
- package/dist/odspLocationRedirection.js.map +1 -0
- package/dist/{odspPublicUtils.cjs → odspPublicUtils.js} +1 -1
- package/dist/odspPublicUtils.js.map +1 -0
- package/dist/{odspSnapshotParser.cjs → odspSnapshotParser.js} +1 -1
- package/dist/odspSnapshotParser.js.map +1 -0
- package/dist/{odspSummaryUploadManager.cjs → odspSummaryUploadManager.js} +3 -3
- package/dist/odspSummaryUploadManager.js.map +1 -0
- package/dist/{odspUrlHelper.cjs → odspUrlHelper.js} +1 -1
- package/dist/odspUrlHelper.js.map +1 -0
- package/dist/{odspUtils.cjs → odspUtils.js} +3 -3
- package/dist/odspUtils.js.map +1 -0
- package/dist/{opsCaching.cjs → opsCaching.js} +1 -1
- package/dist/opsCaching.js.map +1 -0
- package/dist/packageVersion.d.ts +1 -1
- package/dist/{packageVersion.cjs → packageVersion.js} +2 -2
- package/dist/packageVersion.js.map +1 -0
- package/dist/{prefetchLatestSnapshot.cjs → prefetchLatestSnapshot.js} +3 -3
- package/dist/prefetchLatestSnapshot.js.map +1 -0
- package/dist/{retryErrorsStorageAdapter.cjs → retryErrorsStorageAdapter.js} +2 -2
- package/dist/retryErrorsStorageAdapter.js.map +1 -0
- package/dist/{retryUtils.cjs → retryUtils.js} +2 -2
- package/dist/retryUtils.js.map +1 -0
- package/dist/{socketModule.cjs → socketModule.js} +1 -1
- package/dist/socketModule.js.map +1 -0
- package/dist/{vroom.cjs → vroom.js} +4 -4
- package/dist/vroom.js.map +1 -0
- package/dist/{zipItDataRepresentationUtils.cjs → zipItDataRepresentationUtils.js} +3 -3
- package/dist/zipItDataRepresentationUtils.js.map +1 -0
- package/lib/ReadBufferUtils.d.mts +1 -1
- package/lib/ReadBufferUtils.d.mts.map +1 -1
- package/lib/WriteBufferUtils.d.mts +1 -1
- package/lib/WriteBufferUtils.d.mts.map +1 -1
- package/lib/checkUrl.d.mts +1 -1
- package/lib/checkUrl.d.mts.map +1 -1
- package/lib/compactSnapshotParser.d.mts +1 -1
- package/lib/compactSnapshotParser.d.mts.map +1 -1
- package/lib/compactSnapshotWriter.d.mts +1 -1
- package/lib/compactSnapshotWriter.d.mts.map +1 -1
- package/lib/constants.d.mts +1 -1
- package/lib/constants.d.mts.map +1 -1
- package/lib/contracts.d.mts +1 -1
- package/lib/contracts.d.mts.map +1 -1
- package/lib/contractsPublic.d.mts +1 -1
- package/lib/contractsPublic.d.mts.map +1 -1
- package/lib/createFile.d.mts +1 -1
- package/lib/createFile.d.mts.map +1 -1
- package/lib/createNewContainerOnExistingFile.d.mts +1 -1
- package/lib/createNewContainerOnExistingFile.d.mts.map +1 -1
- package/lib/createNewModule.d.mts +1 -1
- package/lib/createNewModule.d.mts.map +1 -1
- package/lib/createNewUtils.d.mts +1 -1
- package/lib/createNewUtils.d.mts.map +1 -1
- package/lib/createOdspCreateContainerRequest.d.mts +1 -1
- package/lib/createOdspCreateContainerRequest.d.mts.map +1 -1
- package/lib/createOdspUrl.d.mts +1 -1
- package/lib/createOdspUrl.d.mts.map +1 -1
- package/lib/epochTracker.d.mts +1 -1
- package/lib/epochTracker.d.mts.map +1 -1
- package/lib/fetch.d.mts +1 -1
- package/lib/fetch.d.mts.map +1 -1
- package/lib/fetchSnapshot.d.mts +1 -1
- package/lib/fetchSnapshot.d.mts.map +1 -1
- package/lib/getFileLink.d.mts +1 -1
- package/lib/getFileLink.d.mts.map +1 -1
- package/lib/getQueryString.d.mts +1 -1
- package/lib/getQueryString.d.mts.map +1 -1
- package/lib/getUrlAndHeadersWithAuth.d.mts +1 -1
- package/lib/getUrlAndHeadersWithAuth.d.mts.map +1 -1
- package/lib/index.d.mts +1 -1
- package/lib/index.d.mts.map +1 -1
- package/lib/localOdspDriver/localOdspDeltaStorageService.d.mts +1 -1
- package/lib/localOdspDriver/localOdspDeltaStorageService.d.mts.map +1 -1
- package/lib/localOdspDriver/localOdspDocumentService.d.mts +1 -1
- package/lib/localOdspDriver/localOdspDocumentService.d.mts.map +1 -1
- package/lib/localOdspDriver/localOdspDocumentServiceFactory.d.mts +1 -1
- package/lib/localOdspDriver/localOdspDocumentServiceFactory.d.mts.map +1 -1
- package/lib/localOdspDriver/localOdspDocumentStorageManager.d.mts +1 -1
- package/lib/localOdspDriver/localOdspDocumentStorageManager.d.mts.map +1 -1
- package/lib/odsp-driver-alpha.d.mts +1 -2
- package/lib/odsp-driver-beta.d.mts +2 -1
- package/lib/odsp-driver-public.d.mts +2 -1
- package/lib/odsp-driver-untrimmed.d.mts +1 -2
- package/lib/odspCache.d.mts +1 -1
- package/lib/odspCache.d.mts.map +1 -1
- package/lib/odspDelayLoadedDeltaStream.d.mts +1 -1
- package/lib/odspDelayLoadedDeltaStream.d.mts.map +1 -1
- package/lib/odspDeltaStorageService.d.mts +1 -1
- package/lib/odspDeltaStorageService.d.mts.map +1 -1
- package/lib/odspDocumentDeltaConnection.d.mts +1 -1
- package/lib/odspDocumentDeltaConnection.d.mts.map +1 -1
- package/lib/odspDocumentService.d.mts +1 -1
- package/lib/odspDocumentService.d.mts.map +1 -1
- package/lib/odspDocumentServiceFactory.d.mts +1 -1
- package/lib/odspDocumentServiceFactory.d.mts.map +1 -1
- package/lib/odspDocumentServiceFactoryCore.d.mts +4 -2
- package/lib/odspDocumentServiceFactoryCore.d.mts.map +1 -1
- package/lib/odspDocumentServiceFactoryCore.mjs +1 -1
- package/lib/odspDocumentServiceFactoryCore.mjs.map +1 -1
- package/lib/odspDocumentServiceFactoryWithCodeSplit.d.mts +1 -1
- package/lib/odspDocumentServiceFactoryWithCodeSplit.d.mts.map +1 -1
- package/lib/odspDocumentStorageManager.d.mts +1 -1
- package/lib/odspDocumentStorageManager.d.mts.map +1 -1
- package/lib/odspDocumentStorageServiceBase.d.mts +1 -1
- package/lib/odspDocumentStorageServiceBase.d.mts.map +1 -1
- package/lib/odspDriverUrlResolver.d.mts +1 -1
- package/lib/odspDriverUrlResolver.d.mts.map +1 -1
- package/lib/odspDriverUrlResolverForShareLink.d.mts +1 -1
- package/lib/odspDriverUrlResolverForShareLink.d.mts.map +1 -1
- package/lib/odspError.d.mts +1 -1
- package/lib/odspError.d.mts.map +1 -1
- package/lib/odspFluidFileLink.d.mts +1 -1
- package/lib/odspFluidFileLink.d.mts.map +1 -1
- package/lib/odspLocationRedirection.d.mts +1 -1
- package/lib/odspLocationRedirection.d.mts.map +1 -1
- package/lib/odspPublicUtils.d.mts +1 -1
- package/lib/odspPublicUtils.d.mts.map +1 -1
- package/lib/odspSnapshotParser.d.mts +1 -1
- package/lib/odspSnapshotParser.d.mts.map +1 -1
- package/lib/odspSummaryUploadManager.d.mts +1 -1
- package/lib/odspSummaryUploadManager.d.mts.map +1 -1
- package/lib/odspUrlHelper.d.mts +1 -1
- package/lib/odspUrlHelper.d.mts.map +1 -1
- package/lib/odspUtils.d.mts +1 -1
- package/lib/odspUtils.d.mts.map +1 -1
- package/lib/opsCaching.d.mts +1 -1
- package/lib/opsCaching.d.mts.map +1 -1
- package/lib/packageVersion.d.mts +2 -2
- package/lib/packageVersion.d.mts.map +1 -1
- package/lib/packageVersion.mjs +1 -1
- package/lib/packageVersion.mjs.map +1 -1
- package/lib/prefetchLatestSnapshot.d.mts +1 -1
- package/lib/prefetchLatestSnapshot.d.mts.map +1 -1
- package/lib/retryErrorsStorageAdapter.d.mts +1 -1
- package/lib/retryErrorsStorageAdapter.d.mts.map +1 -1
- package/lib/retryUtils.d.mts +1 -1
- package/lib/retryUtils.d.mts.map +1 -1
- package/lib/socketModule.d.mts +1 -1
- package/lib/socketModule.d.mts.map +1 -1
- package/lib/vroom.d.mts +1 -1
- package/lib/vroom.d.mts.map +1 -1
- package/lib/zipItDataRepresentationUtils.d.mts +1 -1
- package/lib/zipItDataRepresentationUtils.d.mts.map +1 -1
- package/package.json +22 -24
- package/src/odspDocumentServiceFactoryCore.ts +8 -2
- package/src/packageVersion.ts +1 -1
- package/dist/ReadBufferUtils.cjs.map +0 -1
- package/dist/WriteBufferUtils.cjs.map +0 -1
- package/dist/checkUrl.cjs.map +0 -1
- package/dist/compactSnapshotParser.cjs.map +0 -1
- package/dist/compactSnapshotWriter.cjs.map +0 -1
- package/dist/constants.cjs.map +0 -1
- package/dist/contracts.cjs.map +0 -1
- package/dist/contractsPublic.cjs.map +0 -1
- package/dist/createFile.cjs.map +0 -1
- package/dist/createNewContainerOnExistingFile.cjs.map +0 -1
- package/dist/createNewModule.cjs.map +0 -1
- package/dist/createNewUtils.cjs.map +0 -1
- package/dist/createOdspCreateContainerRequest.cjs.map +0 -1
- package/dist/createOdspUrl.cjs.map +0 -1
- package/dist/epochTracker.cjs.map +0 -1
- package/dist/fetch.cjs.map +0 -1
- package/dist/fetchSnapshot.cjs.map +0 -1
- package/dist/getFileLink.cjs.map +0 -1
- package/dist/getQueryString.cjs.map +0 -1
- package/dist/getUrlAndHeadersWithAuth.cjs.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/localOdspDriver/localOdspDeltaStorageService.cjs.map +0 -1
- package/dist/localOdspDriver/localOdspDocumentService.cjs.map +0 -1
- package/dist/localOdspDriver/localOdspDocumentServiceFactory.cjs.map +0 -1
- package/dist/localOdspDriver/localOdspDocumentStorageManager.cjs.map +0 -1
- package/dist/odspCache.cjs.map +0 -1
- package/dist/odspDelayLoadedDeltaStream.cjs.map +0 -1
- package/dist/odspDeltaStorageService.cjs.map +0 -1
- package/dist/odspDocumentDeltaConnection.cjs.map +0 -1
- package/dist/odspDocumentService.cjs.map +0 -1
- package/dist/odspDocumentServiceFactory.cjs.map +0 -1
- package/dist/odspDocumentServiceFactoryCore.cjs.map +0 -1
- package/dist/odspDocumentServiceFactoryWithCodeSplit.cjs.map +0 -1
- package/dist/odspDocumentStorageManager.cjs.map +0 -1
- package/dist/odspDocumentStorageServiceBase.cjs.map +0 -1
- package/dist/odspDriverUrlResolver.cjs.map +0 -1
- package/dist/odspDriverUrlResolverForShareLink.cjs.map +0 -1
- package/dist/odspError.cjs.map +0 -1
- package/dist/odspFluidFileLink.cjs.map +0 -1
- package/dist/odspLocationRedirection.cjs.map +0 -1
- package/dist/odspPublicUtils.cjs.map +0 -1
- package/dist/odspSnapshotParser.cjs.map +0 -1
- package/dist/odspSummaryUploadManager.cjs.map +0 -1
- package/dist/odspUrlHelper.cjs.map +0 -1
- package/dist/odspUtils.cjs.map +0 -1
- package/dist/opsCaching.cjs.map +0 -1
- package/dist/packageVersion.cjs.map +0 -1
- package/dist/prefetchLatestSnapshot.cjs.map +0 -1
- package/dist/retryErrorsStorageAdapter.cjs.map +0 -1
- package/dist/retryUtils.cjs.map +0 -1
- package/dist/socketModule.cjs.map +0 -1
- package/dist/vroom.cjs.map +0 -1
- package/dist/zipItDataRepresentationUtils.cjs.map +0 -1
- package/tsc-multi.test.json +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchSnapshot.d.
|
|
1
|
+
{"version":3,"file":"fetchSnapshot.d.mts","sourceRoot":"","sources":["../src/fetchSnapshot.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAGI,EACN,mBAAmB,EAInB,MAAM,iCAAiC;OAKjC,EACN,gBAAgB,EAChB,gBAAgB,EAEhB,+BAA+B,EAC/B,MAAM,yCAAyC;OAQzC,EACN,aAAa,EAEb,wBAAwB,EAExB;OAGM,EAKN,aAAa,EAGb;OACM,EAAE,iBAAiB,EAAE;OAOrB,EAAE,YAAY,EAAE;AAGvB;;;GAGG;AACH,oBAAY,yBAAyB;IACpC,IAAI,IAAI;IACR,MAAM,IAAI;IACV,aAAa,IAAI;CACjB;AAED;;;;;;;;;GASG;AACH,wBAAsB,aAAa,CAClC,WAAW,EAAE,MAAM,EAEnB,KAAK,EAAE,MAAM,GAAG,IAAI,EACpB,SAAS,EAAE,MAAM,EACjB,iBAAiB,EAAE,OAAO,EAC1B,sCAAsC,EAAE,OAAO,EAC/C,MAAM,EAAE,mBAAmB,EAC3B,kBAAkB,EAAE,CACnB,GAAG,EAAE,MAAM,EACX,YAAY,EAAE;IAAE,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,KAClC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,GAClC,OAAO,CAAC,iBAAiB,CAAC,CAuB5B;AAED,wBAAsB,uBAAuB,CAC5C,eAAe,EAAE,gBAA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etcher } from "@flu
|
|
|
16
16
|
* @returns Promise which resolves to file link url when successful; otherwise, undefined.
|
|
17
17
|
*/
|
|
18
18
|
export declare function getFileLink(getToken: TokenFetcher<OdspResourceTokenFetchOptions>, odspUrlParts: IOdspUrlParts, logger: ITelemetryLoggerExt): Promise<string>;
|
|
19
|
-
//# sourceMappingURL=getFileLink.d.
|
|
19
|
+
//# sourceMappingURL=getFileLink.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFileLink.d.
|
|
1
|
+
{"version":3,"file":"getFileLink.d.mts","sourceRoot":"","sources":["../src/getFileLink.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,mBAAmB,EAAoB,MAAM,iCAAiC;OAIhF,EACN,aAAa,EACb,6BAA6B,EAC7B,YAAY,EACZ,MAAM,yCAAyC;AAahD;;;;;;;;;;GAUG;AACH,wBAAsB,WAAW,CAChC,QAAQ,EAAE,YAAY,CAAC,6BAA6B,CAAC,EACrD,YAAY,EAAE,aAAa,EAC3B,MAAM,EAAE,mBAAmB,GACzB,OAAO,CAAC,MAAM,CAAC,CAiDjB"}
|
package/lib/getQueryString.d.mts
CHANGED
|
@@ -6,4 +6,4 @@ import { ISnapshotOptions } from "@fluidframework/odsp-driver-definitions";
|
|
|
6
6
|
export declare function getQueryString(queryParams: {
|
|
7
7
|
[key: string]: string | number;
|
|
8
8
|
} | ISnapshotOptions): string;
|
|
9
|
-
//# sourceMappingURL=getQueryString.d.
|
|
9
|
+
//# sourceMappingURL=getQueryString.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getQueryString.d.
|
|
1
|
+
{"version":3,"file":"getQueryString.d.mts","sourceRoot":"","sources":["../src/getQueryString.ts"],"names":[],"mappings":"OAIO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC;AAE1E;;;GAGG;AACH,wBAAgB,cAAc,CAC7B,WAAW,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,GAAG,gBAAgB,GAChE,MAAM,CAUR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUrlAndHeadersWithAuth.d.
|
|
1
|
+
{"version":3,"file":"getUrlAndHeadersWithAuth.d.mts","sourceRoot":"","sources":["../src/getUrlAndHeadersWithAuth.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,wBAAgB,wBAAwB,CACvC,GAAG,EAAE,MAAM,EAEX,KAAK,EAAE,MAAM,GAAG,IAAI,EACpB,sCAAsC,EAAE,OAAO,GAC7C;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CAAE,CAgCvD"}
|
package/lib/index.d.mts
CHANGED
|
@@ -21,4 +21,4 @@ export { ICacheAndTracker, type EpochTracker, FetchType, FetchTypeInternal } fro
|
|
|
21
21
|
export { IOdspResponse, isOdspResolvedUrl } from "./odspUtils.mjs";
|
|
22
22
|
export { SnapshotFormatSupportType } from "./fetchSnapshot.mjs";
|
|
23
23
|
export { ISnapshotContentsWithProps, parseCompactSnapshotResponse } from "./compactSnapshotParser.mjs";
|
|
24
|
-
//# sourceMappingURL=index.d.
|
|
24
|
+
//# sourceMappingURL=index.d.mts.map
|
package/lib/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAGI,EAAE,gBAAgB,EAAE,iBAAiB,EAAE;OAEvC,EACN,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,GACjB;OAGM,EAAE,QAAQ,EAAE;OACZ,EAAE,aAAa,EAAE;OACjB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE;OAC1C,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE;OAGhE,EAAE,sBAAsB,EAAE;OAG1B,EACN,qCAAqC,EACrC,0BAA0B,GAC1B;OACM,EAAE,8BAA8B,EAAE;OAClC,EAAE,uCAAuC,EAAE;OAG3C,EAAE,gCAAgC,EAAE;OAGpC,EAAE,qBAAqB,EAAE;OACzB,EACN,iCAAiC,EACjC,qBAAqB,GACrB;OAGM,EACN,+BAA+B,EAC/B,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACrB;OAEM,EACN,UAAU,EACV,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,GACzB;OACM,EAAE,gBAAgB,EAAE,KAAK,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE;OACrE,EAAE,aAAa,EAAE,iBAAiB,EAAE;OACpC,EAAE,yBAAyB,EAAE;OAC7B,EAAE,0BAA0B,EAAE,4BAA4B,EAAE"}
|
|
@@ -14,4 +14,4 @@ export declare class LocalOdspDeltaStorageService implements IDocumentDeltaStora
|
|
|
14
14
|
constructor(logger: ITelemetryLoggerExt, snapshotOps: ISequencedDocumentMessage[]);
|
|
15
15
|
fetchMessages(from: number, to: number | undefined, _abortSignal?: AbortSignal, _cachedOnly?: boolean, _fetchReason?: string): IStream<ISequencedDocumentMessage[]>;
|
|
16
16
|
}
|
|
17
|
-
//# sourceMappingURL=localOdspDeltaStorageService.d.
|
|
17
|
+
//# sourceMappingURL=localOdspDeltaStorageService.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localOdspDeltaStorageService.d.
|
|
1
|
+
{"version":3,"file":"localOdspDeltaStorageService.d.mts","sourceRoot":"","sources":["../../src/localOdspDriver/localOdspDeltaStorageService.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,mBAAmB,EAAE,MAAM,iCAAiC;OAC9D,EAAE,4BAA4B,EAAE,OAAO,EAAE,MAAM,oCAAoC;OAEnF,EAAE,yBAAyB,EAAE,MAAM,sCAAsC;AAGhF;;GAEG;AACH,qBAAa,4BAA6B,YAAW,4BAA4B;IAE/E,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,WAAW;gBADF,MAAM,EAAE,mBAAmB,EACpC,WAAW,EAAE,yBAAyB,EAAE;IAG1C,aAAa,CACnB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,GAAG,SAAS,EACtB,YAAY,CAAC,EAAE,WAAW,EAC1B,WAAW,CAAC,EAAE,OAAO,EACrB,YAAY,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,yBAAyB,EAAE,CAAC;CAsBvC"}
|
|
@@ -24,4 +24,4 @@ export declare class LocalOdspDocumentService implements IDocumentService {
|
|
|
24
24
|
connectToDeltaStream(_client: IClient): never;
|
|
25
25
|
dispose(_error?: any): void;
|
|
26
26
|
}
|
|
27
|
-
//# sourceMappingURL=localOdspDocumentService.d.
|
|
27
|
+
//# sourceMappingURL=localOdspDocumentService.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localOdspDocumentService.d.
|
|
1
|
+
{"version":3,"file":"localOdspDocumentService.d.mts","sourceRoot":"","sources":["../../src/localOdspDriver/localOdspDocumentService.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,mBAAmB,EAAE,MAAM,iCAAiC;OAC9D,EACN,4BAA4B,EAC5B,gBAAgB,EAChB,uBAAuB,EACvB,YAAY,EACZ,MAAM,oCAAoC;OAEpC,EAAE,gBAAgB,EAAE,MAAM,yCAAyC;OACnE,EAAE,OAAO,EAAE,MAAM,sCAAsC;AAI9D;;GAEG;AACH,qBAAa,wBAAyB,YAAW,gBAAgB;IAK/D,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,aAAa;IANxB,QAAQ;;MAAyB;IACxC,OAAO,CAAC,cAAc,CAAC,CAAkC;gBAGvC,eAAe,EAAE,gBAAgB,EACjC,MAAM,EAAE,mBAAmB,EAC3B,aAAa,EAAE,UAAU,GAAG,MAAM;IAGpD,IAAW,WAAW,IAAI,YAAY,CAErC;IAEY,gBAAgB,IAAI,OAAO,CAAC,uBAAuB,CAAC;IAKpD,qBAAqB,IAAI,OAAO,CAAC,4BAA4B,CAAC;IAIpE,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,KAAK;IAQ7C,OAAO,CAAC,MAAM,CAAC,EAAE,GAAG,GAAG,IAAI;CAGlC"}
|
|
@@ -20,4 +20,4 @@ export declare class LocalOdspDocumentServiceFactory extends OdspDocumentService
|
|
|
20
20
|
createContainer(_createNewSummary: ISummaryTree | undefined, _createNewResolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, _clientIsSummarizer?: boolean): never;
|
|
21
21
|
protected createDocumentServiceCore(resolvedUrl: IResolvedUrl, odspLogger: ITelemetryLogger, _cacheAndTrackerArg?: ICacheAndTracker, _clientIsSummarizer?: boolean): Promise<IDocumentService>;
|
|
22
22
|
}
|
|
23
|
-
//# sourceMappingURL=localOdspDocumentServiceFactory.d.
|
|
23
|
+
//# sourceMappingURL=localOdspDocumentServiceFactory.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localOdspDocumentServiceFactory.d.
|
|
1
|
+
{"version":3,"file":"localOdspDocumentServiceFactory.d.mts","sourceRoot":"","sources":["../../src/localOdspDriver/localOdspDocumentServiceFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,oCAAoC;OAE5E,EAAE,YAAY,EAAE,MAAM,sCAAsC;OAC5D,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,iCAAiC;OAEjF,EAAE,gBAAgB,EAAE;OACpB,EAAE,8BAA8B,EAAE;AAGzC;;;;GAIG;AACH,qBAAa,+BAAgC,SAAQ,8BAA8B;IAGtE,OAAO,CAAC,QAAQ,CAAC,aAAa;IAF1C,OAAO,CAAC,MAAM,CAA+B;gBAEhB,aAAa,EAAE,UAAU,GAAG,MAAM;IAO/D,OAAO,CAAC,0BAA0B;IAQ3B,eAAe,CACrB,iBAAiB,EAAE,YAAY,GAAG,SAAS,EAC3C,qBAAqB,EAAE,YAAY,EACnC,MAAM,CAAC,EAAE,oBAAoB,EAC7B,mBAAmB,CAAC,EAAE,OAAO,GAC3B,KAAK;cAQQ,yBAAyB,CACxC,WAAW,EAAE,YAAY,EACzB,UAAU,EAAE,gBAAgB,EAC5B,mBAAmB,CAAC,EAAE,gBAAgB,EACtC,mBAAmB,CAAC,EAAE,OAAO,GAC3B,OAAO,CAAC,gBAAgB,CAAC;CAc5B"}
|
|
@@ -24,4 +24,4 @@ export declare class LocalOdspDocumentStorageService extends OdspDocumentStorage
|
|
|
24
24
|
createBlob(_file: ArrayBufferLike): never;
|
|
25
25
|
private throwUsageError;
|
|
26
26
|
}
|
|
27
|
-
//# sourceMappingURL=localOdspDocumentStorageManager.d.
|
|
27
|
+
//# sourceMappingURL=localOdspDocumentStorageManager.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localOdspDocumentStorageManager.d.
|
|
1
|
+
{"version":3,"file":"localOdspDocumentStorageManager.d.mts","sourceRoot":"","sources":["../../src/localOdspDriver/localOdspDocumentStorageManager.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAGI,EAAE,mBAAmB,EAA6B,MAAM,iCAAiC;OACzF,EAAE,eAAe,EAAE,MAAM,oCAAoC;OAE7D,KAAK,GAAG,MAAM,sCAAsC;OACpD,EAAE,8BAA8B,EAAE;AAMzC;;;GAGG;AACH,qBAAa,+BAAgC,SAAQ,8BAA8B;IAIjF,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAJ/B,OAAO,CAAC,cAAc,CAAqB;gBAGzB,MAAM,EAAE,mBAAmB,EAC3B,aAAa,EAAE,UAAU,GAAG,MAAM;IAKpD,OAAO,CAAC,iBAAiB,CAAS;IAErB,WAAW,CAEvB,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,KAAK,EAAE,MAAM,EACb,aAAa,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;IAuB1B,OAAO,CAAC,kBAAkB;IAI1B,SAAS,CAAC,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,KAAK;IAI3E,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,KAAK;IAIlE,wBAAwB,CAAC,QAAQ,EAAE,GAAG,CAAC,YAAY,EAAE,QAAQ,EAAE,eAAe,GAAG,KAAK;IAItF,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,KAAK;IAIhD,OAAO,CAAC,eAAe;CAOvB"}
|
|
@@ -9,7 +9,6 @@ import { IFileEntry } from '@fluidframework/odsp-driver-definitions';
|
|
|
9
9
|
import { IOdspResolvedUrl } from '@fluidframework/odsp-driver-definitions';
|
|
10
10
|
import { IOdspUrlParts } from '@fluidframework/odsp-driver-definitions';
|
|
11
11
|
import { IPersistedCache } from '@fluidframework/odsp-driver-definitions';
|
|
12
|
-
import { IPrefetchSnapshotContents as IPrefetchSnapshotContents_2 } from './odspCache';
|
|
13
12
|
import { IRelaySessionAwareDriverFactory } from '@fluidframework/odsp-driver-definitions';
|
|
14
13
|
import { IRequest } from '@fluidframework/core-interfaces';
|
|
15
14
|
import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
@@ -316,7 +315,7 @@ export declare class OdspDocumentServiceFactoryCore implements IDocumentServiceF
|
|
|
316
315
|
private readonly hostPolicy;
|
|
317
316
|
private readonly nonPersistentCache;
|
|
318
317
|
private readonly socketReferenceKeyPrefix?;
|
|
319
|
-
get snapshotPrefetchResultCache(): PromiseCache<string,
|
|
318
|
+
get snapshotPrefetchResultCache(): PromiseCache<string, IPrefetchSnapshotContents>;
|
|
320
319
|
get IRelaySessionAwareDriverFactory(): this;
|
|
321
320
|
/**
|
|
322
321
|
* This function would return info about relay service session only if this factory established (or attempted to
|
|
@@ -9,7 +9,6 @@ import { IFileEntry } from '@fluidframework/odsp-driver-definitions';
|
|
|
9
9
|
import { IOdspResolvedUrl } from '@fluidframework/odsp-driver-definitions';
|
|
10
10
|
import { IOdspUrlParts } from '@fluidframework/odsp-driver-definitions';
|
|
11
11
|
import { IPersistedCache } from '@fluidframework/odsp-driver-definitions';
|
|
12
|
-
import { IPrefetchSnapshotContents as IPrefetchSnapshotContents_2 } from './odspCache';
|
|
13
12
|
import { IRelaySessionAwareDriverFactory } from '@fluidframework/odsp-driver-definitions';
|
|
14
13
|
import { IRequest } from '@fluidframework/core-interfaces';
|
|
15
14
|
import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
@@ -142,6 +141,8 @@ import { TokenFetcher } from '@fluidframework/odsp-driver-definitions';
|
|
|
142
141
|
|
|
143
142
|
/* Excluded from this release type: prefetchLatestSnapshot */
|
|
144
143
|
|
|
144
|
+
/* Excluded from this release type: PromiseCache */
|
|
145
|
+
|
|
145
146
|
/* Excluded from this release type: RateLimiter */
|
|
146
147
|
|
|
147
148
|
/* Excluded from this release type: ShareLinkFetcherProps */
|
|
@@ -9,7 +9,6 @@ import { IFileEntry } from '@fluidframework/odsp-driver-definitions';
|
|
|
9
9
|
import { IOdspResolvedUrl } from '@fluidframework/odsp-driver-definitions';
|
|
10
10
|
import { IOdspUrlParts } from '@fluidframework/odsp-driver-definitions';
|
|
11
11
|
import { IPersistedCache } from '@fluidframework/odsp-driver-definitions';
|
|
12
|
-
import { IPrefetchSnapshotContents as IPrefetchSnapshotContents_2 } from './odspCache';
|
|
13
12
|
import { IRelaySessionAwareDriverFactory } from '@fluidframework/odsp-driver-definitions';
|
|
14
13
|
import { IRequest } from '@fluidframework/core-interfaces';
|
|
15
14
|
import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
@@ -142,6 +141,8 @@ import { TokenFetcher } from '@fluidframework/odsp-driver-definitions';
|
|
|
142
141
|
|
|
143
142
|
/* Excluded from this release type: prefetchLatestSnapshot */
|
|
144
143
|
|
|
144
|
+
/* Excluded from this release type: PromiseCache */
|
|
145
|
+
|
|
145
146
|
/* Excluded from this release type: RateLimiter */
|
|
146
147
|
|
|
147
148
|
/* Excluded from this release type: ShareLinkFetcherProps */
|
|
@@ -9,7 +9,6 @@ import { IFileEntry } from '@fluidframework/odsp-driver-definitions';
|
|
|
9
9
|
import { IOdspResolvedUrl } from '@fluidframework/odsp-driver-definitions';
|
|
10
10
|
import { IOdspUrlParts } from '@fluidframework/odsp-driver-definitions';
|
|
11
11
|
import { IPersistedCache } from '@fluidframework/odsp-driver-definitions';
|
|
12
|
-
import { IPrefetchSnapshotContents as IPrefetchSnapshotContents_2 } from './odspCache';
|
|
13
12
|
import { IRelaySessionAwareDriverFactory } from '@fluidframework/odsp-driver-definitions';
|
|
14
13
|
import { IRequest } from '@fluidframework/core-interfaces';
|
|
15
14
|
import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
@@ -367,7 +366,7 @@ export declare class OdspDocumentServiceFactoryCore implements IDocumentServiceF
|
|
|
367
366
|
private readonly hostPolicy;
|
|
368
367
|
private readonly nonPersistentCache;
|
|
369
368
|
private readonly socketReferenceKeyPrefix?;
|
|
370
|
-
get snapshotPrefetchResultCache(): PromiseCache<string,
|
|
369
|
+
get snapshotPrefetchResultCache(): PromiseCache<string, IPrefetchSnapshotContents>;
|
|
371
370
|
get IRelaySessionAwareDriverFactory(): this;
|
|
372
371
|
/**
|
|
373
372
|
* This function would return info about relay service session only if this factory established (or attempted to
|
package/lib/odspCache.d.mts
CHANGED
package/lib/odspCache.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odspCache.d.
|
|
1
|
+
{"version":3,"file":"odspCache.d.mts","sourceRoot":"","sources":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AAC;QAAC,mBAAmB,EAAE,uBAAuB,CAAA;KAAE,CACnE,CAAC;IAEF;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAE9D;;;OAGG;IACH,QAAQ,CAAC,2BAA2B,EAAE,YAAY,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;CACtF;AAED;;;GAGG;AACH,MAAM,WAAW,UAAW,SAAQ,mBAAmB;IACtD;;OAEG;IACH,QAAQ,CAAC,cAAc,EAAE,mBAAmB,CAAC;CAC7C;AAED,qBAAa,kBAAmB,YAAW,mBAAmB;IAC7D,SAAgB,gBAAgB;mBAElB,MAAM;6BAAuB,uBAAuB;OAC9D;IAEJ,SAAgB,YAAY,yCAAgD;IAE5E,SAAgB,2BAA2B,kDAGvC;CACJ;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB;IACnE,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odspDelayLoadedDeltaStream.d.
|
|
1
|
+
{"version":3,"file":"odspDelayLoadedDeltaStream.d.mts","sourceRoot":"","sources":["../src/odspDelayLoadedDeltaStream.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAII,EAEN,iBAAiB,EAEjB,MAAM,iCAAiC;OACjC,EACN,wBAAwB,EACxB,YAAY,EACZ,wBAAwB,EAExB,MAAM,oCAAoC;OAKpC,EAAE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC;OAClF,EACN,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,+BAA+B,EAG/B,MAAM,yCAAyC;OAEzC,EAAE,UAAU,EAAE;OACd,EAAE,2BAA2B,EAAE;OAO/B,EAAE,YAAY,EAAE;AAGvB;;;GAGG;AACH,qBAAa,0BAA0B;aA0BrB,eAAe,EAAE,gBAAgB;IAC1C,QA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YA8DX,eAAe;IAqF7B,OAAO,CAAC,gCAAgC;IAQxC;;;;;;;;OAQG;YACW,qBAAqB;IAgC5B,OAAO,CAAC,KAAK,CAAC,EAAE,GAAG;CAK1B"}
|
|
@@ -43,4 +43,4 @@ export declare class OdspDeltaStorageWithCache implements IDocumentDeltaStorageS
|
|
|
43
43
|
constructor(snapshotOps: ISequencedDocumentMessage[] | undefined, logger: ITelemetryLoggerExt, batchSize: number, concurrency: number, getFromStorage: (from: number, to: number, telemetryProps: ITelemetryProperties, fetchReason?: string) => Promise<IDeltasFetchResult>, getCached: (from: number, to: number) => Promise<ISequencedDocumentMessage[]>, requestFromSocket: (from: number, to: number) => void, opsReceived: (ops: ISequencedDocumentMessage[]) => void, storageManagerGetter: () => OdspDocumentStorageService | undefined);
|
|
44
44
|
fetchMessages(fromTotal: number, toTotal: number | undefined, abortSignal?: AbortSignal, cachedOnly?: boolean, fetchReason?: string): import("@fluidframework/driver-definitions").IStream<ISequencedDocumentMessage[]>;
|
|
45
45
|
}
|
|
46
|
-
//# sourceMappingURL=odspDeltaStorageService.d.
|
|
46
|
+
//# sourceMappingURL=odspDeltaStorageService.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odspDeltaStorageService.d.
|
|
1
|
+
{"version":3,"file":"odspDeltaStorageService.d.mts","sourceRoot":"","sources":["../src/odspDeltaStorageService.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAGI,EAAE,oBAAoB,EAAE,MAAM,iCAAiC;OAE/D,EAAE,mBAAmB,EAAoB,MAAM,iCAAiC;OAEhF,EAAE,yBAAyB,EAAE,MAAM,sCAAsC;OACzE,EAAE,+BAA+B,EAAE,MAAM,yCAAyC;OAClF,EACN,kBAAkB,EAClB,4BAA4B,EAC5B,MAAM,oCAAoC;OAGpC,EAAE,YAAY,EAAE;OAEhB,EAAE,0BAA0B,EAAE;AAErC;;GAEG;AACH,qBAAa,uBAAuB;IAElC,OAAO,CAAC,QAAQ,CAAC,Y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EAAE,CAAC,EACxB,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,EACrD,WAAW,EAAE,CAAC,GAAG,EAAE,yBAAyB,EAAE,KAAK,IAAI,EACvD,oBAAoB,EAAE,MAAM,0BAA0B,GAAG,SAAS;IAG7E,aAAa,CACnB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,WAAW,CAAC,EAAE,WAAW,EACzB,UAAU,CAAC,EAAE,OAAO,EACpB,WAAW,CAAC,EAAE,MAAM;CA+FrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odspDocumentDeltaConnection.d.
|
|
1
|
+
{"version":3,"file":"odspDocumentDeltaConnection.d.mts","sourceRoot":"","sources":["../src/odspDocumentDeltaConnection.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAGI,EACN,mBAAmB,EACnB,eAAe,EAEf,MAAM,iCAAiC;OAGjC,EAAE,uBAAuB,EAAE,MAAM,6BAA6B;OAC9D,EAAE,eAAe,EAAE,MAAM,oCAAoC;OAC7D,EAAE,SAAS,EAAE,MAAM,yCAAyC;OAC5D,EACN,OAAO,EACP,QAAQ,EACR,gBAAgB,EAKhB,MAAM,sCAAsC;OAKtC,EAAE,YAAY,EAAE;AAUvB,MAAM,WAAW,WAAW;IAC3B,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AA8LD;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,uBAAuB;IA+KtE,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IA9KrC;;;;;;;;;;;;;;OAcG;WACiB,MAAM,CACzB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAElB,KAAK,EAAE,MAAM,GAAG,IAAI,EACpB,MAAM,EAAE,OAAO,EACf,GAAG,EAAE,MAAM,EACX,eAAe,EAAE,mBAAmB,EACp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AgB,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI;IAU7E;;;OAGG;IACH,SAAS,CAAC,eAAe,CAAC,KAAK,EAAE,eAAe;IAUhD;;OAEG;IACH,SAAS,CAAC,cAAc;CAaxB"}
|
|
@@ -89,4 +89,4 @@ export declare class OdspDocumentService implements IDocumentService {
|
|
|
89
89
|
protected get opsCache(): OpsCache | undefined;
|
|
90
90
|
protected opsReceived(ops: ISequencedDocumentMessage[]): void;
|
|
91
91
|
}
|
|
92
|
-
//# sourceMappingURL=odspDocumentService.d.
|
|
92
|
+
//# sourceMappingURL=odspDocumentService.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odspDocumentService.d.
|
|
1
|
+
{"version":3,"file":"odspDocumentService.d.mts","sourceRoot":"","sources":["../src/odspDocumentService.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EACN,mBAAmB,EAGnB,MAAM,iCAAiC;OAEjC,EACN,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,EAChB,YAAY,EACZ,uBAAuB,EACvB,wBAAwB,EACxB,MAAM,oCAAoC;OACpC,EAAE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC;OAClF,EACN,gBAAgB,EAChB,iBAAiB,EAEjB,iBAAiB,EACjB,+BAA+B,EAC/B,MAAM,yCAAyC;OAEzC,EAAE,UAAU,EAAE;OAKd,EAAE,YAAY,EAAE;OAChB,EAAE,QAAQ,EAAE;AAInB;;;GAGG;AACH,qBAAa,mBAAoB,YAAW,gBAAgB;aAuE1C,eAAe,EAAE,gBAAgB;IACjD,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAIlC,OAAO,CAAC,QAAQ,CAAC,KAAK;IAEtB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IAC1C,OAAO,CAAC,QAAQ,CAAC,kBAAk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17,4 +17,4 @@ export declare class OdspDocumentServiceFactory extends OdspDocumentServiceFacto
|
|
|
17
17
|
* @alpha
|
|
18
18
|
*/
|
|
19
19
|
export declare function createLocalOdspDocumentServiceFactory(localSnapshot: Uint8Array | string): IDocumentServiceFactory;
|
|
20
|
-
//# sourceMappingURL=odspDocumentServiceFactory.d.
|
|
20
|
+
//# sourceMappingURL=odspDocumentServiceFactory.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odspDocumentServiceFactory.d.
|
|
1
|
+
{"version":3,"file":"odspDocumentServiceFactory.d.mts","sourceRoot":"","sources":["../src/odspDocumentServiceFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,uBAAuB,EAAE,MAAM,oCAAoC;OACrE,EACN,6BAA6B,EAC7B,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,MAAM,yCAAyC;OACzC,EAAE,8BAA8B,EAAE;AAIzC;;;;GAIG;AACH,qBAAa,0BAA2B,SAAQ,8BAA8B;gBAE5E,eAAe,EAAE,YAAY,CAAC,6BAA6B,CAAC,EAC5D,iBAAiB,EAAE,YAAY,CAAC,6BAA6B,CAAC,GAAG,SAAS,EAC1E,cAAc,CAAC,EAAE,eAAe,EAChC,UAAU,CAAC,EAAE,iBAAiB;CAI/B;AAED;;GAEG;AACH,wBAAgB,qCAAqC,CACpD,aAAa,EAAE,UAAU,GAAG,MAAM,GAChC,uBAAuB,CAEzB"}
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
import { ITelemetryBaseLogger, ITelemetryLogger } from "@fluidframework/core-interfaces";
|
|
6
|
+
import { PromiseCache } from "@fluidframework/core-utils";
|
|
6
7
|
import { IDocumentService, IDocumentServiceFactory, IResolvedUrl } from "@fluidframework/driver-definitions";
|
|
7
8
|
import { ISummaryTree } from "@fluidframework/protocol-definitions";
|
|
8
9
|
import { OdspResourceTokenFetchOptions, TokenFetcher, IPersistedCache, HostStoragePolicy, ISocketStorageDiscovery, IRelaySessionAwareDriverFactory } from "@fluidframework/odsp-driver-definitions";
|
|
10
|
+
import { IPrefetchSnapshotContents } from "./odspCache.mjs";
|
|
9
11
|
import { ICacheAndTracker } from "./epochTracker.mjs";
|
|
10
12
|
/**
|
|
11
13
|
* Factory for creating the sharepoint document service. Use this if you want to
|
|
@@ -22,7 +24,7 @@ export declare class OdspDocumentServiceFactoryCore implements IDocumentServiceF
|
|
|
22
24
|
private readonly hostPolicy;
|
|
23
25
|
private readonly nonPersistentCache;
|
|
24
26
|
private readonly socketReferenceKeyPrefix?;
|
|
25
|
-
get snapshotPrefetchResultCache():
|
|
27
|
+
get snapshotPrefetchResultCache(): PromiseCache<string, IPrefetchSnapshotContents>;
|
|
26
28
|
get IRelaySessionAwareDriverFactory(): this;
|
|
27
29
|
/**
|
|
28
30
|
* This function would return info about relay service session only if this factory established (or attempted to
|
|
@@ -45,4 +47,4 @@ export declare class OdspDocumentServiceFactoryCore implements IDocumentServiceF
|
|
|
45
47
|
createDocumentService(resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
|
|
46
48
|
protected createDocumentServiceCore(resolvedUrl: IResolvedUrl, odspLogger: ITelemetryLogger, cacheAndTrackerArg?: ICacheAndTracker, clientIsSummarizer?: boolean): Promise<IDocumentService>;
|
|
47
49
|
}
|
|
48
|
-
//# sourceMappingURL=odspDocumentServiceFactoryCore.d.
|
|
50
|
+
//# sourceMappingURL=odspDocumentServiceFactoryCore.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odspDocumentServiceFactoryCore.d.
|
|
1
|
+
{"version":3,"file":"odspDocumentServiceFactoryCore.d.mts","sourceRoot":"","sources":["../src/odspDocumentServiceFactoryCore.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,iCAAiC;OACj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MAAM,CAAC,EAAE,oBAAoB,EAC7B,kBAAkB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC,gBAAgB,CAAC;cASZ,yBAAyB,CACxC,WAAW,EAAE,YAAY,EACzB,UAAU,EAAE,gBAAgB,EAC5B,kBAAkB,CAAC,EAAE,gBAAgB,EACrC,kBAAkB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC,gBAAgB,CAAC;CA+C5B"}
|
|
@@ -6,7 +6,7 @@ import { PerformanceEvent } from "@fluidframework/telemetry-utils";
|
|
|
6
6
|
import { getDocAttributesFromProtocolSummary, isCombinedAppAndProtocolSummary, } from "@fluidframework/driver-utils";
|
|
7
7
|
import { SharingLinkScope, SharingLinkRole, ShareLinkTypes, } from "@fluidframework/odsp-driver-definitions";
|
|
8
8
|
import { v4 as uuid } from "uuid";
|
|
9
|
-
import { LocalPersistentCache, NonPersistentCache } from "./odspCache.mjs";
|
|
9
|
+
import { LocalPersistentCache, NonPersistentCache, } from "./odspCache.mjs";
|
|
10
10
|
import { createOdspCacheAndTracker } from "./epochTracker.mjs";
|
|
11
11
|
import { OdspDocumentService } from "./odspDocumentService.mjs";
|
|
12
12
|
import { getOdspResolvedUrl, createOdspLogger, toInstrumentedOdspTokenFetcher, isNewFileInfo, getJoinSessionCacheKey, } from "./odspUtils.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odspDocumentServiceFactoryCore.mjs","sourceRoot":"","sources":["../src/odspDocumentServiceFactoryCore.ts"],"names":[],"mappings":"AAAA;;;GAGG;OASI,EAAE,gBAAgB,EAAE,MAAM,iCAAiC;OAC3D,EACN,mCAAmC,EACnC,+BAA+B,GAC/B,MAAM,8BAA8B;OAC9B,EAQN,gBAAgB,EAChB,eAAe,EACf,cAAc,GAId,MAAM,yCAAyC;OACzC,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM;OAC1B,EAAuB,oBAAoB,EAAE,kBAAkB,EAAE;OACjE,EAAE,yBAAyB,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Y,EAC5B,IAAI,CAAC,wBAAwB,EAC7B,kBAAkB,CAClB,CAAC;IACH,CAAC;CACD;AAED;;GAEG;AACH,SAAS,oBAAoB,CAC5B,UAA6B,EAC7B,YAA6B;IAE7B,kGAAkG;IAClG,IAAI,oBAAmE,CAAC;IACxE,IAAI,UAAU,CAAC,yCAAyC,EAAE;QACzD,MAAM,eAAe,GAAG,YAAY,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QAC5D,MAAM,cAAc,GAAG,YAAY,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAC1D,IAAI,eAAe,IAAI,gBAAgB,CAAC,eAAe,CAAC,EAAE;YACzD,oBAAoB,GAAG;gBACtB,KAAK,EAAE,gBAAgB,CAAC,eAAe,CAAC;gBACxC,GAAG,CAAC,cAAc,IAAI,eAAe,CAAC,cAAc,CAAC;oBACpD,CAAC,CAAC,EAAE,IAAI,EAAE,eAAe,CAAC,cAAc,CAAC,EAAE;oBAC3C,CAAC,CAAC,EAAE,CAAC;aACN,CAAC;SACF;KACD;SAAM,IAAI,UAAU,CAAC,yBAAyB,EAAE;QAChD,MAAM,cAAc,GAAG,YAAY,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAC1D,IAAI,cAAc,IAAI,cAAc,CAAC,cAAc,CAAC,EAAE;YACrD,oBAAoB,GAAG,cAAc,CAAC,cAAc,IAAI,EAAE,CAAC,CAAC;SAC5D;KACD;IACD,OAAO,oBAAoB,CAAC;AAC7B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { ITelemetryBaseLogger, ITelemetryLogger } from \"@fluidframework/core-interfaces\";\nimport {\n\tIDocumentService,\n\tIDocumentServiceFactory,\n\tIResolvedUrl,\n} from \"@fluidframework/driver-definitions\";\nimport { ISummaryTree } from \"@fluidframework/protocol-definitions\";\nimport { PerformanceEvent } from \"@fluidframework/telemetry-utils\";\nimport {\n\tgetDocAttributesFromProtocolSummary,\n\tisCombinedAppAndProtocolSummary,\n} from \"@fluidframework/driver-utils\";\nimport {\n\tTokenFetchOptions,\n\tOdspResourceTokenFetchOptions,\n\tTokenFetcher,\n\tIPersistedCache,\n\tHostStoragePolicy,\n\tIFileEntry,\n\tIOdspUrlParts,\n\tSharingLinkScope,\n\tSharingLinkRole,\n\tShareLinkTypes,\n\tISharingLinkKind,\n\tISocketStorageDiscovery,\n\tIRelaySessionAwareDriverFactory,\n} from \"@fluidframework/odsp-driver-definitions\";\nimport { v4 as uuid } from \"uuid\";\nimport { INonPersistentCache, LocalPersistentCache, NonPersistentCache } from \"./odspCache\";\nimport { createOdspCacheAndTracker, ICacheAndTracker } from \"./epochTracker\";\nimport { OdspDocumentService } from \"./odspDocumentService\";\nimport {\n\tINewFileInfo,\n\tgetOdspResolvedUrl,\n\tcreateOdspLogger,\n\ttoInstrumentedOdspTokenFetcher,\n\tIExistingFileInfo,\n\tisNewFileInfo,\n\tgetJoinSessionCacheKey,\n} from \"./odspUtils\";\n\n/**\n * Factory for creating the sharepoint document service. Use this if you want to\n * use the sharepoint implementation.\n *\n * This constructor should be used by environments that support dynamic imports and that wish\n * to leverage code splitting as a means to keep bundles as small as possible.\n * @alpha\n */\nexport class OdspDocumentServiceFactoryCore\n\timplements IDocumentServiceFactory, IRelaySessionAwareDriverFactory\n{\n\tprivate readonly nonPersistentCache: INonPersistentCache = new NonPersistentCache();\n\tprivate readonly socketReferenceKeyPrefix?: string;\n\n\tpublic get snapshotPrefetchResultCache() {\n\t\treturn this.nonPersistentCache.snapshotPrefetchResultCache;\n\t}\n\n\tpublic get IRelaySessionAwareDriverFactory() {\n\t\treturn this;\n\t}\n\n\t/**\n\t * This function would return info about relay service session only if this factory established (or attempted to\n\t * establish) connection very recently. Otherwise, it will return undefined.\n\t * @param resolvedUrl - resolved url for container\n\t * @returns The current join session response stored in cache. `undefined` if not present.\n\t */\n\tpublic async getRelayServiceSessionInfo(\n\t\tresolvedUrl: IResolvedUrl,\n\t): Promise<ISocketStorageDiscovery | undefined> {\n\t\tconst odspResolvedUrl = getOdspResolvedUrl(resolvedUrl);\n\t\tconst joinSessionResponse = await this.nonPersistentCache.sessionJoinCache.get(\n\t\t\tgetJoinSessionCacheKey(odspResolvedUrl),\n\t\t);\n\t\treturn joinSessionResponse?.joinSessionResponse;\n\t}\n\n\tpublic async createContainer(\n\t\tcreateNewSummary: ISummaryTree | undefined,\n\t\tcreateNewResolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService> {\n\t\tlet odspResolvedUrl = getOdspResolvedUrl(createNewResolvedUrl);\n\t\tconst resolvedUrlData: IOdspUrlParts = {\n\t\t\tsiteUrl: odspResolvedUrl.siteUrl,\n\t\t\tdriveId: odspResolvedUrl.driveId,\n\t\t\titemId: odspResolvedUrl.itemId,\n\t\t};\n\n\t\tlet fileInfo: INewFileInfo | IExistingFileInfo;\n\t\tlet createShareLinkParam: ShareLinkTypes | ISharingLinkKind | undefined;\n\t\tif (odspResolvedUrl.itemId) {\n\t\t\tfileInfo = {\n\t\t\t\ttype: \"Existing\",\n\t\t\t\tdriveId: odspResolvedUrl.driveId,\n\t\t\t\tsiteUrl: odspResolvedUrl.siteUrl,\n\t\t\t\titemId: odspResolvedUrl.itemId,\n\t\t\t};\n\t\t} else if (odspResolvedUrl.fileName) {\n\t\t\tconst [, queryString] = odspResolvedUrl.url.split(\"?\");\n\t\t\tconst searchParams = new URLSearchParams(queryString);\n\t\t\tconst filePath = searchParams.get(\"path\");\n\t\t\tif (filePath === undefined || filePath === null) {\n\t\t\t\tthrow new Error(\"File path should be provided!!\");\n\t\t\t}\n\t\t\tcreateShareLinkParam = getSharingLinkParams(this.hostPolicy, searchParams);\n\t\t\tfileInfo = {\n\t\t\t\ttype: \"New\",\n\t\t\t\tdriveId: odspResolvedUrl.driveId,\n\t\t\t\tsiteUrl: odspResolvedUrl.siteUrl,\n\t\t\t\tfilePath,\n\t\t\t\tfilename: odspResolvedUrl.fileName,\n\t\t\t\tcreateLinkType: createShareLinkParam,\n\t\t\t};\n\t\t} else {\n\t\t\tthrow new Error(\"A new or existing file must be specified to create container!\");\n\t\t}\n\n\t\tif (isCombinedAppAndProtocolSummary(createNewSummary)) {\n\t\t\tconst documentAttributes = getDocAttributesFromProtocolSummary(\n\t\t\t\tcreateNewSummary.tree[\".protocol\"],\n\t\t\t);\n\t\t\tif (documentAttributes?.sequenceNumber !== 0) {\n\t\t\t\tthrow new Error(\"Seq number in detached ODSP container should be 0\");\n\t\t\t}\n\t\t}\n\n\t\tconst odspLogger = createOdspLogger(logger);\n\n\t\tconst fileEntry: IFileEntry = {\n\t\t\tresolvedUrl: odspResolvedUrl,\n\t\t\tdocId: odspResolvedUrl.hashedDocumentId,\n\t\t};\n\t\tconst cacheAndTracker = createOdspCacheAndTracker(\n\t\t\tthis.persistedCache,\n\t\t\tthis.nonPersistentCache,\n\t\t\tfileEntry,\n\t\t\todspLogger,\n\t\t\tclientIsSummarizer,\n\t\t);\n\n\t\treturn PerformanceEvent.timedExecAsync(\n\t\t\todspLogger,\n\t\t\t{\n\t\t\t\teventName: \"CreateNew\",\n\t\t\t\tisWithSummaryUpload: true,\n\t\t\t\tcreateShareLinkParam: createShareLinkParam\n\t\t\t\t\t? JSON.stringify(createShareLinkParam)\n\t\t\t\t\t: undefined,\n\t\t\t\tenableShareLinkWithCreate: this.hostPolicy.enableShareLinkWithCreate,\n\t\t\t\tenableSingleRequestForShareLinkWithCreate:\n\t\t\t\t\tthis.hostPolicy.enableSingleRequestForShareLinkWithCreate,\n\t\t\t},\n\t\t\tasync (event) => {\n\t\t\t\tconst getStorageToken = toInstrumentedOdspTokenFetcher(\n\t\t\t\t\todspLogger,\n\t\t\t\t\tresolvedUrlData,\n\t\t\t\t\tthis.getStorageToken,\n\t\t\t\t\ttrue /* throwOnNullToken */,\n\t\t\t\t);\n\t\t\t\t// We can delay load this module as this path will not be executed in load flows and create flow\n\t\t\t\t// while only happens once in lifetime of a document happens in the background after creation of\n\t\t\t\t// detached container.\n\t\t\t\tconst module = await import(\n\t\t\t\t\t/* webpackChunkName: \"createNewModule\" */ \"./createNewModule.js\"\n\t\t\t\t)\n\t\t\t\t\t.then((m) => {\n\t\t\t\t\t\todspLogger.sendTelemetryEvent({ eventName: \"createNewModuleLoaded\" });\n\t\t\t\t\t\treturn m;\n\t\t\t\t\t})\n\t\t\t\t\t.catch((error) => {\n\t\t\t\t\t\todspLogger.sendErrorEvent(\n\t\t\t\t\t\t\t{ eventName: \"createNewModuleLoadFailed\" },\n\t\t\t\t\t\t\terror,\n\t\t\t\t\t\t);\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t});\n\t\t\t\todspResolvedUrl = isNewFileInfo(fileInfo)\n\t\t\t\t\t? await module.createNewFluidFile(\n\t\t\t\t\t\t\tgetStorageToken,\n\t\t\t\t\t\t\tfileInfo,\n\t\t\t\t\t\t\todspLogger,\n\t\t\t\t\t\t\tcreateNewSummary,\n\t\t\t\t\t\t\tcacheAndTracker.epochTracker,\n\t\t\t\t\t\t\tfileEntry,\n\t\t\t\t\t\t\tthis.hostPolicy.cacheCreateNewSummary ?? true,\n\t\t\t\t\t\t\t!!this.hostPolicy.sessionOptions\n\t\t\t\t\t\t\t\t?.forceAccessTokenViaAuthorizationHeader,\n\t\t\t\t\t\t\todspResolvedUrl.isClpCompliantApp,\n\t\t\t\t\t\t\tthis.hostPolicy.enableSingleRequestForShareLinkWithCreate,\n\t\t\t\t\t\t\tthis.hostPolicy.enableShareLinkWithCreate,\n\t\t\t\t\t )\n\t\t\t\t\t: await module.createNewContainerOnExistingFile(\n\t\t\t\t\t\t\tgetStorageToken,\n\t\t\t\t\t\t\tfileInfo,\n\t\t\t\t\t\t\todspLogger,\n\t\t\t\t\t\t\tcreateNewSummary,\n\t\t\t\t\t\t\tcacheAndTracker.epochTracker,\n\t\t\t\t\t\t\tfileEntry,\n\t\t\t\t\t\t\tthis.hostPolicy.cacheCreateNewSummary ?? true,\n\t\t\t\t\t\t\t!!this.hostPolicy.sessionOptions\n\t\t\t\t\t\t\t\t?.forceAccessTokenViaAuthorizationHeader,\n\t\t\t\t\t\t\todspResolvedUrl.isClpCompliantApp,\n\t\t\t\t\t );\n\t\t\t\tconst docService = this.createDocumentServiceCore(\n\t\t\t\t\todspResolvedUrl,\n\t\t\t\t\todspLogger,\n\t\t\t\t\tcacheAndTracker,\n\t\t\t\t\tclientIsSummarizer,\n\t\t\t\t);\n\t\t\t\tevent.end({\n\t\t\t\t\tdocId: odspResolvedUrl.hashedDocumentId,\n\t\t\t\t});\n\t\t\t\treturn docService;\n\t\t\t},\n\t\t);\n\t}\n\n\t/**\n\t * @param getStorageToken - function that can provide the storage token for a given site. This is\n\t * is also referred to as the \"Vroom\" token in SPO.\n\t * @param getWebsocketToken - function that can provide a token for accessing the web socket. This is also\n\t * to as the \"Push\" token in SPO. If undefined then websocket token is expected to be returned with joinSession\n\t * response payload.\n\t * @param persistedCache - PersistedCache provided by host for use in this session.\n\t * @param hostPolicy - Policy for storage provided by host.\n\t */\n\tconstructor(\n\t\tprivate readonly getStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>,\n\t\tprivate readonly getWebsocketToken: TokenFetcher<OdspResourceTokenFetchOptions> | undefined,\n\t\tprotected persistedCache: IPersistedCache = new LocalPersistentCache(),\n\t\tprivate readonly hostPolicy: HostStoragePolicy = {},\n\t) {\n\t\tif (this.hostPolicy.isolateSocketCache === true) {\n\t\t\t// create the key to separate the socket reuse cache\n\t\t\tthis.socketReferenceKeyPrefix = uuid();\n\t\t}\n\t\t// Set enableRedeemFallback by default as true.\n\t\tthis.hostPolicy.enableRedeemFallback = this.hostPolicy.enableRedeemFallback ?? true;\n\t\tthis.hostPolicy.sessionOptions = {\n\t\t\tforceAccessTokenViaAuthorizationHeader: true,\n\t\t\t...this.hostPolicy.sessionOptions,\n\t\t};\n\t}\n\n\tpublic async createDocumentService(\n\t\tresolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService> {\n\t\treturn this.createDocumentServiceCore(\n\t\t\tresolvedUrl,\n\t\t\tcreateOdspLogger(logger),\n\t\t\tundefined,\n\t\t\tclientIsSummarizer,\n\t\t);\n\t}\n\n\tprotected async createDocumentServiceCore(\n\t\tresolvedUrl: IResolvedUrl,\n\t\todspLogger: ITelemetryLogger,\n\t\tcacheAndTrackerArg?: ICacheAndTracker,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService> {\n\t\tconst odspResolvedUrl = getOdspResolvedUrl(resolvedUrl);\n\t\tconst resolvedUrlData: IOdspUrlParts = {\n\t\t\tsiteUrl: odspResolvedUrl.siteUrl,\n\t\t\tdriveId: odspResolvedUrl.driveId,\n\t\t\titemId: odspResolvedUrl.itemId,\n\t\t};\n\t\tconst cacheAndTracker =\n\t\t\tcacheAndTrackerArg ??\n\t\t\tcreateOdspCacheAndTracker(\n\t\t\t\tthis.persistedCache,\n\t\t\t\tthis.nonPersistentCache,\n\t\t\t\t{ resolvedUrl: odspResolvedUrl, docId: odspResolvedUrl.hashedDocumentId },\n\t\t\t\todspLogger,\n\t\t\t\tclientIsSummarizer,\n\t\t\t);\n\n\t\tconst storageTokenFetcher = toInstrumentedOdspTokenFetcher(\n\t\t\todspLogger,\n\t\t\tresolvedUrlData,\n\t\t\tthis.getStorageToken,\n\t\t\ttrue /* throwOnNullToken */,\n\t\t);\n\n\t\tconst webSocketTokenFetcher =\n\t\t\tthis.getWebsocketToken === undefined\n\t\t\t\t? undefined\n\t\t\t\t: async (options: TokenFetchOptions) =>\n\t\t\t\t\t\ttoInstrumentedOdspTokenFetcher(\n\t\t\t\t\t\t\todspLogger,\n\t\t\t\t\t\t\tresolvedUrlData,\n\t\t\t\t\t\t\tthis.getWebsocketToken!,\n\t\t\t\t\t\t\tfalse /* throwOnNullToken */,\n\t\t\t\t\t\t)(options, \"GetWebsocketToken\");\n\n\t\treturn OdspDocumentService.create(\n\t\t\tresolvedUrl,\n\t\t\tstorageTokenFetcher,\n\t\t\twebSocketTokenFetcher,\n\t\t\todspLogger,\n\t\t\tcacheAndTracker.cache,\n\t\t\tthis.hostPolicy,\n\t\t\tcacheAndTracker.epochTracker,\n\t\t\tthis.socketReferenceKeyPrefix,\n\t\t\tclientIsSummarizer,\n\t\t);\n\t}\n}\n\n/**\n * Extract the sharing link kind from the resolved URL's query paramerters\n */\nfunction getSharingLinkParams(\n\thostPolicy: HostStoragePolicy,\n\tsearchParams: URLSearchParams,\n): ShareLinkTypes | ISharingLinkKind | undefined {\n\t// extract request parameters for creation of sharing link (if provided) if the feature is enabled\n\tlet createShareLinkParam: ShareLinkTypes | ISharingLinkKind | undefined;\n\tif (hostPolicy.enableSingleRequestForShareLinkWithCreate) {\n\t\tconst createLinkScope = searchParams.get(\"createLinkScope\");\n\t\tconst createLinkRole = searchParams.get(\"createLinkRole\");\n\t\tif (createLinkScope && SharingLinkScope[createLinkScope]) {\n\t\t\tcreateShareLinkParam = {\n\t\t\t\tscope: SharingLinkScope[createLinkScope],\n\t\t\t\t...(createLinkRole && SharingLinkRole[createLinkRole]\n\t\t\t\t\t? { role: SharingLinkRole[createLinkRole] }\n\t\t\t\t\t: {}),\n\t\t\t};\n\t\t}\n\t} else if (hostPolicy.enableShareLinkWithCreate) {\n\t\tconst createLinkType = searchParams.get(\"createLinkType\");\n\t\tif (createLinkType && ShareLinkTypes[createLinkType]) {\n\t\t\tcreateShareLinkParam = ShareLinkTypes[createLinkType || \"\"];\n\t\t}\n\t}\n\treturn createShareLinkParam;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"odspDocumentServiceFactoryCore.mjs","sourceRoot":"","sources":["../src/odspDocumentServiceFactoryCore.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAUI,EAAE,gBAAgB,EAAE,MAAM,iCAAiC;OAC3D,EACN,mCAAmC,EACnC,+BAA+B,GAC/B,MAAM,8BA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AAE,mBAAmB,CAAC,CAAC;QAEpC,OAAO,mBAAmB,CAAC,MAAM,CAChC,WAAW,EACX,mBAAmB,EACnB,qBAAqB,EACrB,UAAU,EACV,eAAe,CAAC,KAAK,EACrB,IAAI,CAAC,UAAU,EACf,eAAe,CAAC,YAAY,EAC5B,IAAI,CAAC,wBAAwB,EAC7B,kBAAkB,CAClB,CAAC;IACH,CAAC;CACD;AAED;;GAEG;AACH,SAAS,oBAAoB,CAC5B,UAA6B,EAC7B,YAA6B;IAE7B,kGAAkG;IAClG,IAAI,oBAAmE,CAAC;IACxE,IAAI,UAAU,CAAC,yCAAyC,EAAE;QACzD,MAAM,eAAe,GAAG,YAAY,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QAC5D,MAAM,cAAc,GAAG,YAAY,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAC1D,IAAI,eAAe,IAAI,gBAAgB,CAAC,eAAe,CAAC,EAAE;YACzD,oBAAoB,GAAG;gBACtB,KAAK,EAAE,gBAAgB,CAAC,eAAe,CAAC;gBACxC,GAAG,CAAC,cAAc,IAAI,eAAe,CAAC,cAAc,CAAC;oBACpD,CAAC,CAAC,EAAE,IAAI,EAAE,eAAe,CAAC,cAAc,CAAC,EAAE;oBAC3C,CAAC,CAAC,EAAE,CAAC;aACN,CAAC;SACF;KACD;SAAM,IAAI,UAAU,CAAC,yBAAyB,EAAE;QAChD,MAAM,cAAc,GAAG,YAAY,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAC1D,IAAI,cAAc,IAAI,cAAc,CAAC,cAAc,CAAC,EAAE;YACrD,oBAAoB,GAAG,cAAc,CAAC,cAAc,IAAI,EAAE,CAAC,CAAC;SAC5D;KACD;IACD,OAAO,oBAAoB,CAAC;AAC7B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { ITelemetryBaseLogger, ITelemetryLogger } from \"@fluidframework/core-interfaces\";\nimport { PromiseCache } from \"@fluidframework/core-utils\";\nimport {\n\tIDocumentService,\n\tIDocumentServiceFactory,\n\tIResolvedUrl,\n} from \"@fluidframework/driver-definitions\";\nimport { ISummaryTree } from \"@fluidframework/protocol-definitions\";\nimport { PerformanceEvent } from \"@fluidframework/telemetry-utils\";\nimport {\n\tgetDocAttributesFromProtocolSummary,\n\tisCombinedAppAndProtocolSummary,\n} from \"@fluidframework/driver-utils\";\nimport {\n\tTokenFetchOptions,\n\tOdspResourceTokenFetchOptions,\n\tTokenFetcher,\n\tIPersistedCache,\n\tHostStoragePolicy,\n\tIFileEntry,\n\tIOdspUrlParts,\n\tSharingLinkScope,\n\tSharingLinkRole,\n\tShareLinkTypes,\n\tISharingLinkKind,\n\tISocketStorageDiscovery,\n\tIRelaySessionAwareDriverFactory,\n} from \"@fluidframework/odsp-driver-definitions\";\nimport { v4 as uuid } from \"uuid\";\nimport {\n\tINonPersistentCache,\n\tIPrefetchSnapshotContents,\n\tLocalPersistentCache,\n\tNonPersistentCache,\n} from \"./odspCache\";\nimport { createOdspCacheAndTracker, ICacheAndTracker } from \"./epochTracker\";\nimport { OdspDocumentService } from \"./odspDocumentService\";\nimport {\n\tINewFileInfo,\n\tgetOdspResolvedUrl,\n\tcreateOdspLogger,\n\ttoInstrumentedOdspTokenFetcher,\n\tIExistingFileInfo,\n\tisNewFileInfo,\n\tgetJoinSessionCacheKey,\n} from \"./odspUtils\";\n\n/**\n * Factory for creating the sharepoint document service. Use this if you want to\n * use the sharepoint implementation.\n *\n * This constructor should be used by environments that support dynamic imports and that wish\n * to leverage code splitting as a means to keep bundles as small as possible.\n * @alpha\n */\nexport class OdspDocumentServiceFactoryCore\n\timplements IDocumentServiceFactory, IRelaySessionAwareDriverFactory\n{\n\tprivate readonly nonPersistentCache: INonPersistentCache = new NonPersistentCache();\n\tprivate readonly socketReferenceKeyPrefix?: string;\n\n\tpublic get snapshotPrefetchResultCache(): PromiseCache<string, IPrefetchSnapshotContents> {\n\t\treturn this.nonPersistentCache.snapshotPrefetchResultCache;\n\t}\n\n\tpublic get IRelaySessionAwareDriverFactory() {\n\t\treturn this;\n\t}\n\n\t/**\n\t * This function would return info about relay service session only if this factory established (or attempted to\n\t * establish) connection very recently. Otherwise, it will return undefined.\n\t * @param resolvedUrl - resolved url for container\n\t * @returns The current join session response stored in cache. `undefined` if not present.\n\t */\n\tpublic async getRelayServiceSessionInfo(\n\t\tresolvedUrl: IResolvedUrl,\n\t): Promise<ISocketStorageDiscovery | undefined> {\n\t\tconst odspResolvedUrl = getOdspResolvedUrl(resolvedUrl);\n\t\tconst joinSessionResponse = await this.nonPersistentCache.sessionJoinCache.get(\n\t\t\tgetJoinSessionCacheKey(odspResolvedUrl),\n\t\t);\n\t\treturn joinSessionResponse?.joinSessionResponse;\n\t}\n\n\tpublic async createContainer(\n\t\tcreateNewSummary: ISummaryTree | undefined,\n\t\tcreateNewResolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService> {\n\t\tlet odspResolvedUrl = getOdspResolvedUrl(createNewResolvedUrl);\n\t\tconst resolvedUrlData: IOdspUrlParts = {\n\t\t\tsiteUrl: odspResolvedUrl.siteUrl,\n\t\t\tdriveId: odspResolvedUrl.driveId,\n\t\t\titemId: odspResolvedUrl.itemId,\n\t\t};\n\n\t\tlet fileInfo: INewFileInfo | IExistingFileInfo;\n\t\tlet createShareLinkParam: ShareLinkTypes | ISharingLinkKind | undefined;\n\t\tif (odspResolvedUrl.itemId) {\n\t\t\tfileInfo = {\n\t\t\t\ttype: \"Existing\",\n\t\t\t\tdriveId: odspResolvedUrl.driveId,\n\t\t\t\tsiteUrl: odspResolvedUrl.siteUrl,\n\t\t\t\titemId: odspResolvedUrl.itemId,\n\t\t\t};\n\t\t} else if (odspResolvedUrl.fileName) {\n\t\t\tconst [, queryString] = odspResolvedUrl.url.split(\"?\");\n\t\t\tconst searchParams = new URLSearchParams(queryString);\n\t\t\tconst filePath = searchParams.get(\"path\");\n\t\t\tif (filePath === undefined || filePath === null) {\n\t\t\t\tthrow new Error(\"File path should be provided!!\");\n\t\t\t}\n\t\t\tcreateShareLinkParam = getSharingLinkParams(this.hostPolicy, searchParams);\n\t\t\tfileInfo = {\n\t\t\t\ttype: \"New\",\n\t\t\t\tdriveId: odspResolvedUrl.driveId,\n\t\t\t\tsiteUrl: odspResolvedUrl.siteUrl,\n\t\t\t\tfilePath,\n\t\t\t\tfilename: odspResolvedUrl.fileName,\n\t\t\t\tcreateLinkType: createShareLinkParam,\n\t\t\t};\n\t\t} else {\n\t\t\tthrow new Error(\"A new or existing file must be specified to create container!\");\n\t\t}\n\n\t\tif (isCombinedAppAndProtocolSummary(createNewSummary)) {\n\t\t\tconst documentAttributes = getDocAttributesFromProtocolSummary(\n\t\t\t\tcreateNewSummary.tree[\".protocol\"],\n\t\t\t);\n\t\t\tif (documentAttributes?.sequenceNumber !== 0) {\n\t\t\t\tthrow new Error(\"Seq number in detached ODSP container should be 0\");\n\t\t\t}\n\t\t}\n\n\t\tconst odspLogger = createOdspLogger(logger);\n\n\t\tconst fileEntry: IFileEntry = {\n\t\t\tresolvedUrl: odspResolvedUrl,\n\t\t\tdocId: odspResolvedUrl.hashedDocumentId,\n\t\t};\n\t\tconst cacheAndTracker = createOdspCacheAndTracker(\n\t\t\tthis.persistedCache,\n\t\t\tthis.nonPersistentCache,\n\t\t\tfileEntry,\n\t\t\todspLogger,\n\t\t\tclientIsSummarizer,\n\t\t);\n\n\t\treturn PerformanceEvent.timedExecAsync(\n\t\t\todspLogger,\n\t\t\t{\n\t\t\t\teventName: \"CreateNew\",\n\t\t\t\tisWithSummaryUpload: true,\n\t\t\t\tcreateShareLinkParam: createShareLinkParam\n\t\t\t\t\t? JSON.stringify(createShareLinkParam)\n\t\t\t\t\t: undefined,\n\t\t\t\tenableShareLinkWithCreate: this.hostPolicy.enableShareLinkWithCreate,\n\t\t\t\tenableSingleRequestForShareLinkWithCreate:\n\t\t\t\t\tthis.hostPolicy.enableSingleRequestForShareLinkWithCreate,\n\t\t\t},\n\t\t\tasync (event) => {\n\t\t\t\tconst getStorageToken = toInstrumentedOdspTokenFetcher(\n\t\t\t\t\todspLogger,\n\t\t\t\t\tresolvedUrlData,\n\t\t\t\t\tthis.getStorageToken,\n\t\t\t\t\ttrue /* throwOnNullToken */,\n\t\t\t\t);\n\t\t\t\t// We can delay load this module as this path will not be executed in load flows and create flow\n\t\t\t\t// while only happens once in lifetime of a document happens in the background after creation of\n\t\t\t\t// detached container.\n\t\t\t\tconst module = await import(\n\t\t\t\t\t/* webpackChunkName: \"createNewModule\" */ \"./createNewModule.js\"\n\t\t\t\t)\n\t\t\t\t\t.then((m) => {\n\t\t\t\t\t\todspLogger.sendTelemetryEvent({ eventName: \"createNewModuleLoaded\" });\n\t\t\t\t\t\treturn m;\n\t\t\t\t\t})\n\t\t\t\t\t.catch((error) => {\n\t\t\t\t\t\todspLogger.sendErrorEvent(\n\t\t\t\t\t\t\t{ eventName: \"createNewModuleLoadFailed\" },\n\t\t\t\t\t\t\terror,\n\t\t\t\t\t\t);\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t});\n\t\t\t\todspResolvedUrl = isNewFileInfo(fileInfo)\n\t\t\t\t\t? await module.createNewFluidFile(\n\t\t\t\t\t\t\tgetStorageToken,\n\t\t\t\t\t\t\tfileInfo,\n\t\t\t\t\t\t\todspLogger,\n\t\t\t\t\t\t\tcreateNewSummary,\n\t\t\t\t\t\t\tcacheAndTracker.epochTracker,\n\t\t\t\t\t\t\tfileEntry,\n\t\t\t\t\t\t\tthis.hostPolicy.cacheCreateNewSummary ?? true,\n\t\t\t\t\t\t\t!!this.hostPolicy.sessionOptions\n\t\t\t\t\t\t\t\t?.forceAccessTokenViaAuthorizationHeader,\n\t\t\t\t\t\t\todspResolvedUrl.isClpCompliantApp,\n\t\t\t\t\t\t\tthis.hostPolicy.enableSingleRequestForShareLinkWithCreate,\n\t\t\t\t\t\t\tthis.hostPolicy.enableShareLinkWithCreate,\n\t\t\t\t\t )\n\t\t\t\t\t: await module.createNewContainerOnExistingFile(\n\t\t\t\t\t\t\tgetStorageToken,\n\t\t\t\t\t\t\tfileInfo,\n\t\t\t\t\t\t\todspLogger,\n\t\t\t\t\t\t\tcreateNewSummary,\n\t\t\t\t\t\t\tcacheAndTracker.epochTracker,\n\t\t\t\t\t\t\tfileEntry,\n\t\t\t\t\t\t\tthis.hostPolicy.cacheCreateNewSummary ?? true,\n\t\t\t\t\t\t\t!!this.hostPolicy.sessionOptions\n\t\t\t\t\t\t\t\t?.forceAccessTokenViaAuthorizationHeader,\n\t\t\t\t\t\t\todspResolvedUrl.isClpCompliantApp,\n\t\t\t\t\t );\n\t\t\t\tconst docService = this.createDocumentServiceCore(\n\t\t\t\t\todspResolvedUrl,\n\t\t\t\t\todspLogger,\n\t\t\t\t\tcacheAndTracker,\n\t\t\t\t\tclientIsSummarizer,\n\t\t\t\t);\n\t\t\t\tevent.end({\n\t\t\t\t\tdocId: odspResolvedUrl.hashedDocumentId,\n\t\t\t\t});\n\t\t\t\treturn docService;\n\t\t\t},\n\t\t);\n\t}\n\n\t/**\n\t * @param getStorageToken - function that can provide the storage token for a given site. This is\n\t * is also referred to as the \"Vroom\" token in SPO.\n\t * @param getWebsocketToken - function that can provide a token for accessing the web socket. This is also\n\t * to as the \"Push\" token in SPO. If undefined then websocket token is expected to be returned with joinSession\n\t * response payload.\n\t * @param persistedCache - PersistedCache provided by host for use in this session.\n\t * @param hostPolicy - Policy for storage provided by host.\n\t */\n\tconstructor(\n\t\tprivate readonly getStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>,\n\t\tprivate readonly getWebsocketToken: TokenFetcher<OdspResourceTokenFetchOptions> | undefined,\n\t\tprotected persistedCache: IPersistedCache = new LocalPersistentCache(),\n\t\tprivate readonly hostPolicy: HostStoragePolicy = {},\n\t) {\n\t\tif (this.hostPolicy.isolateSocketCache === true) {\n\t\t\t// create the key to separate the socket reuse cache\n\t\t\tthis.socketReferenceKeyPrefix = uuid();\n\t\t}\n\t\t// Set enableRedeemFallback by default as true.\n\t\tthis.hostPolicy.enableRedeemFallback = this.hostPolicy.enableRedeemFallback ?? true;\n\t\tthis.hostPolicy.sessionOptions = {\n\t\t\tforceAccessTokenViaAuthorizationHeader: true,\n\t\t\t...this.hostPolicy.sessionOptions,\n\t\t};\n\t}\n\n\tpublic async createDocumentService(\n\t\tresolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService> {\n\t\treturn this.createDocumentServiceCore(\n\t\t\tresolvedUrl,\n\t\t\tcreateOdspLogger(logger),\n\t\t\tundefined,\n\t\t\tclientIsSummarizer,\n\t\t);\n\t}\n\n\tprotected async createDocumentServiceCore(\n\t\tresolvedUrl: IResolvedUrl,\n\t\todspLogger: ITelemetryLogger,\n\t\tcacheAndTrackerArg?: ICacheAndTracker,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService> {\n\t\tconst odspResolvedUrl = getOdspResolvedUrl(resolvedUrl);\n\t\tconst resolvedUrlData: IOdspUrlParts = {\n\t\t\tsiteUrl: odspResolvedUrl.siteUrl,\n\t\t\tdriveId: odspResolvedUrl.driveId,\n\t\t\titemId: odspResolvedUrl.itemId,\n\t\t};\n\t\tconst cacheAndTracker =\n\t\t\tcacheAndTrackerArg ??\n\t\t\tcreateOdspCacheAndTracker(\n\t\t\t\tthis.persistedCache,\n\t\t\t\tthis.nonPersistentCache,\n\t\t\t\t{ resolvedUrl: odspResolvedUrl, docId: odspResolvedUrl.hashedDocumentId },\n\t\t\t\todspLogger,\n\t\t\t\tclientIsSummarizer,\n\t\t\t);\n\n\t\tconst storageTokenFetcher = toInstrumentedOdspTokenFetcher(\n\t\t\todspLogger,\n\t\t\tresolvedUrlData,\n\t\t\tthis.getStorageToken,\n\t\t\ttrue /* throwOnNullToken */,\n\t\t);\n\n\t\tconst webSocketTokenFetcher =\n\t\t\tthis.getWebsocketToken === undefined\n\t\t\t\t? undefined\n\t\t\t\t: async (options: TokenFetchOptions) =>\n\t\t\t\t\t\ttoInstrumentedOdspTokenFetcher(\n\t\t\t\t\t\t\todspLogger,\n\t\t\t\t\t\t\tresolvedUrlData,\n\t\t\t\t\t\t\tthis.getWebsocketToken!,\n\t\t\t\t\t\t\tfalse /* throwOnNullToken */,\n\t\t\t\t\t\t)(options, \"GetWebsocketToken\");\n\n\t\treturn OdspDocumentService.create(\n\t\t\tresolvedUrl,\n\t\t\tstorageTokenFetcher,\n\t\t\twebSocketTokenFetcher,\n\t\t\todspLogger,\n\t\t\tcacheAndTracker.cache,\n\t\t\tthis.hostPolicy,\n\t\t\tcacheAndTracker.epochTracker,\n\t\t\tthis.socketReferenceKeyPrefix,\n\t\t\tclientIsSummarizer,\n\t\t);\n\t}\n}\n\n/**\n * Extract the sharing link kind from the resolved URL's query paramerters\n */\nfunction getSharingLinkParams(\n\thostPolicy: HostStoragePolicy,\n\tsearchParams: URLSearchParams,\n): ShareLinkTypes | ISharingLinkKind | undefined {\n\t// extract request parameters for creation of sharing link (if provided) if the feature is enabled\n\tlet createShareLinkParam: ShareLinkTypes | ISharingLinkKind | undefined;\n\tif (hostPolicy.enableSingleRequestForShareLinkWithCreate) {\n\t\tconst createLinkScope = searchParams.get(\"createLinkScope\");\n\t\tconst createLinkRole = searchParams.get(\"createLinkRole\");\n\t\tif (createLinkScope && SharingLinkScope[createLinkScope]) {\n\t\t\tcreateShareLinkParam = {\n\t\t\t\tscope: SharingLinkScope[createLinkScope],\n\t\t\t\t...(createLinkRole && SharingLinkRole[createLinkRole]\n\t\t\t\t\t? { role: SharingLinkRole[createLinkRole] }\n\t\t\t\t\t: {}),\n\t\t\t};\n\t\t}\n\t} else if (hostPolicy.enableShareLinkWithCreate) {\n\t\tconst createLinkType = searchParams.get(\"createLinkType\");\n\t\tif (createLinkType && ShareLinkTypes[createLinkType]) {\n\t\t\tcreateShareLinkParam = ShareLinkTypes[createLinkType || \"\"];\n\t\t}\n\t}\n\treturn createShareLinkParam;\n}\n"]}
|
|
@@ -13,4 +13,4 @@ import { OdspDocumentServiceFactoryCore } from "./odspDocumentServiceFactoryCore
|
|
|
13
13
|
export declare class OdspDocumentServiceFactoryWithCodeSplit extends OdspDocumentServiceFactoryCore implements IDocumentServiceFactory {
|
|
14
14
|
constructor(getStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>, getWebsocketToken: TokenFetcher<OdspResourceTokenFetchOptions> | undefined, persistedCache?: IPersistedCache, hostPolicy?: HostStoragePolicy);
|
|
15
15
|
}
|
|
16
|
-
//# sourceMappingURL=odspDocumentServiceFactoryWithCodeSplit.d.
|
|
16
|
+
//# sourceMappingURL=odspDocumentServiceFactoryWithCodeSplit.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odspDocumentServiceFactoryWithCodeSplit.d.
|
|
1
|
+
{"version":3,"file":"odspDocumentServiceFactoryWithCodeSplit.d.mts","sourceRoot":"","sources":["../src/odspDocumentServiceFactoryWithCodeSplit.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,uBAAuB,EAAE,MAAM,oCAAoC;OACrE,EACN,6BAA6B,EAC7B,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,MAAM,yCAAyC;OACzC,EAAE,8BAA8B,EAAE;AAEzC;;;;GAIG;AACH,qBAAa,uCACZ,SAAQ,8BACR,YAAW,uBAAuB;gBAGjC,eAAe,EAAE,YAAY,CAAC,6BAA6B,CAAC,EAC5D,iBAAiB,EAAE,YAAY,CAAC,6BAA6B,CAAC,GAAG,SAAS,EAC1E,cAAc,CAAC,EAAE,eAAe,EAChC,UAAU,CAAC,EAAE,iBAAiB;CAI/B"}
|
|
@@ -56,4 +56,4 @@ export declare class OdspDocumentStorageService extends OdspDocumentStorageServi
|
|
|
56
56
|
private checkAttachmentGETUrl;
|
|
57
57
|
protected fetchTreeFromSnapshot(id: string, scenarioName?: string): Promise<api.ISnapshotTree | undefined>;
|
|
58
58
|
}
|
|
59
|
-
//# sourceMappingURL=odspDocumentStorageManager.d.
|
|
59
|
+
//# sourceMappingURL=odspDocumentStorageManager.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odspDocumentStorageManager.d.
|
|
1
|
+
{"version":3,"file":"odspDocumentStorageManager.d.mts","sourceRoot":"","sources":["../src/odspDocumentStorageManager.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAEN,mBAAmB,EAKnB,MAAM,iCAAiC;OAIjC,KAAK,GAAG,MAAM,sCAAsC;OAEpD,EAAE,eAAe,EAAmB,WAAW,EAAE,MAAM,oCAAoC;OAE3F,EACN,gBAAgB,EAGhB,+BAA+B,EAE/B,MAAM,yCAAyC;OACzC,EAEN,yBAAyB,EAGzB;OACM,EAKN,yBAAyB,EACzB;OAEM,EAAE,UAAU,EAA6B;OAGzC,EAAE,YAAY,EAAE;OAEhB,EAAE,WAAW,EAAE;OAEf,EAAE,8BAA8B,EAAE;AAEzC,eAAO,MAAM,mCAAmC,EAAE,MAAkB,CAAC;AAOrE,qBAAa,0BAA2B,SAAQ,8BAA8B;IAwB5E,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,8BAA8B;IAC/C,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IAhC1C,OAAO,CAAC,uBAAuB,CAAkB;IACjD,OAAO,CAAC,cAAc,CAAgD;IACtE,OAAO,CAAC,wBAAwB,CAAuC;I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,EAAE,CAAC;YA6OZ,aAAa;YAiBb,iBAAiB;IAiIlB,wBAAwB,CACpC,OAAO,EAAE,GAAG,CAAC,YAAY,EACzB,OAAO,EAAE,eAAe,GACtB,OAAO,CAAC,MAAM,CAAC;YA4DJ,4BAA4B;IAwB1C,OAAO,CAAC,gBAAgB;IAUxB,OAAO,CAAC,sBAAsB;IAU9B,OAAO,CAAC,qBAAqB;cAUb,qBAAqB,CACpC,EAAE,EAAE,MAAM,EACV,YAAY,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,GAAG,CAAC,aAAa,GAAG,SAAS,CAAC;CAyCzC"}
|
|
@@ -53,4 +53,4 @@ export declare abstract class OdspDocumentStorageServiceBase implements IDocumen
|
|
|
53
53
|
protected initializeFromSnapshot(odspSnapshotCacheValue: ISnapshotContents, cacheOps?: boolean): string | undefined;
|
|
54
54
|
}
|
|
55
55
|
export {};
|
|
56
|
-
//# sourceMappingURL=odspDocumentStorageServiceBase.d.
|
|
56
|
+
//# sourceMappingURL=odspDocumentStorageServiceBase.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odspDocumentStorageServiceBase.d.
|
|
1
|
+
{"version":3,"file":"odspDocumentStorageServiceBase.d.mts","sourceRoot":"","sources":["../src/odspDocumentStorageServiceBase.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAGI,EACN,uBAAuB,EACvB,+BAA+B,EAC/B,eAAe,EAGf,WAAW,EACX,MAAM,oCAAoC;OACpC,KAAK,GAAG,MAAM,sCAAsC;OACpD,EAAE,eAAe,EAAE,MAAM,iCAAiC;OAC1D,EAAE,iBAAiB,EAAE;AAI5B,cAAM,SAAS;IAEd,OAAO,CAAC,gBAAgB,CAA4C;IAIpE,OAAO,CAAC,mBAAmB,CAAkB;IAE7C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuC;IAGlE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA0B;IAKvD,OAAO,CAAC,wBAAwB,CAAiB;IAM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EnB,OAAO,CAAC,GAAG,CAAC,aAAa,GAAG,IAAI,CAAC;aAgCpB,WAAW,CAE1B,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,KAAK,EAAE,MAAM,EACb,YAAY,CAAC,EAAE,MAAM,EACrB,WAAW,CAAC,EAAE,WAAW,GACvB,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;aAEV,wBAAwB,CACvC,OAAO,EAAE,GAAG,CAAC,YAAY,EACzB,OAAO,EAAE,eAAe,GACtB,OAAO,CAAC,MAAM,CAAC;IAEL,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC;IAInF,SAAS,CAAC,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,aAAa;IAIzD,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC;YAI1C,QAAQ;IAStB,SAAS,CAAC,QAAQ,CAAC,qBAAqB,CACvC,EAAE,EAAE,MAAM,EACV,YAAY,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,GAAG,CAAC,aAAa,GAAG,SAAS,CAAC;IAEzC,OAAO,CAAC,iCAAiC;IAmBzC,SAAS,CAAC,sBAAsB,CAC/B,sBAAsB,EAAE,iBAAiB,EACzC,QAAQ,GAAE,OAAc,GACtB,MAAM,GAAG,SAAS;CAqBrB"}
|
|
@@ -22,4 +22,4 @@ export declare class OdspDriverUrlResolver implements IUrlResolver {
|
|
|
22
22
|
*/
|
|
23
23
|
getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string, packageInfoSource?: IContainerPackageInfo): Promise<string>;
|
|
24
24
|
}
|
|
25
|
-
//# sourceMappingURL=odspDriverUrlResolver.d.
|
|
25
|
+
//# sourceMappingURL=odspDriverUrlResolver.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odspDriverUrlResolver.d.
|
|
1
|
+
{"version":3,"file":"odspDriverUrlResolver.d.mts","sourceRoot":"","sources":["../src/odspDriverUrlResolver.ts"],"names":[],"mappings":"OAKO,EAAE,QAAQ,EAAE,MAAM,iCAAiC;OACnD,EAGN,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,MAAM,oCAAoC;OACpC,EACN,gBAAgB,EAGhB,MAAM,yCAAyC;AA8DhD;;;;GAIG;AACH,qBAAa,qBAAsB,YAAW,YAAY;;IAGzD;;OAEG;IACU,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,gBAAgB,CAAC;IA+FlE;;;;;;;OAOG;IACU,cAAc,CAC1B,WAAW,EAAE,YAAY,EACzB,WAAW,EAAE,MAAM,EACnB,iBAAiB,CAAC,EAAE,qBAAqB,GACvC,OAAO,CAAC,MAAM,CAAC;CAmClB"}
|
|
@@ -73,4 +73,4 @@ export declare class OdspDriverUrlResolverForShareLink implements IUrlResolver {
|
|
|
73
73
|
*/
|
|
74
74
|
static createNavParam(locator: OdspFluidDataStoreLocator): string;
|
|
75
75
|
}
|
|
76
|
-
//# sourceMappingURL=odspDriverUrlResolverForShareLink.d.
|
|
76
|
+
//# sourceMappingURL=odspDriverUrlResolverForShareLink.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odspDriverUrlResolverForShareLink.d.
|
|
1
|
+
{"version":3,"file":"odspDriverUrlResolverForShareLink.d.mts","sourceRoot":"","sources":["../src/odspDriverUrlResolverForShareLink.ts"],"names":[],"mappings":"OAKO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,MAAM,iCAAiC;OACzE,EACN,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,MAAM,oCAAoC;OAEpC,EACN,gBAAgB,EAChB,YAAY,EACZ,6BAA6B,EAC7B,YAAY,EACZ,MAAM,yCAAyC;OAOzC,EAAE,yBAAyB,EAAqB;AAMvD;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IAC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9
|
* Returns network error based on error object from ODSP socket (IOdspSocketError)
|
|
10
10
|
*/
|
|
11
11
|
export declare function errorObjectFromSocketError(socketError: IOdspSocketError, handler: string): IFluidErrorBase & OdspError;
|
|
12
|
-
//# sourceMappingURL=odspError.d.
|
|
12
|
+
//# sourceMappingURL=odspError.d.mts.map
|
package/lib/odspError.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odspError.d.
|
|
1
|
+
{"version":3,"file":"odspError.d.mts","sourceRoot":"","sources":["../src/odspError.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAKI,EAAE,SAAS,EAAE,MAAM,yCAAyC;OAC5D,EAAuB,eAAe,EAAE,MAAM,iCAAiC;OAC/E,EAAE,gBAAgB,EAAE;AAG3B;;GAEG;AACH,wBAAgB,0BAA0B,CACzC,WAAW,EAAE,gBAAgB,EAC7B,OAAO,EAAE,MAAM,GACb,eAAe,GAAG,SAAS,CAwB7B"}
|
|
@@ -32,4 +32,4 @@ export declare function storeLocatorInOdspUrl(url: URL, locator: OdspFluidDataSt
|
|
|
32
32
|
* @alpha
|
|
33
33
|
*/
|
|
34
34
|
export declare function getLocatorFromOdspUrl(url: URL, requireFluidSignature?: boolean): OdspFluidDataStoreLocator | undefined;
|
|
35
|
-
//# sourceMappingURL=odspFluidFileLink.d.
|
|
35
|
+
//# sourceMappingURL=odspFluidFileLink.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odspFluidFileLink.d.
|
|
1
|
+
{"version":3,"file":"odspFluidFileLink.d.mts","sourceRoot":"","sources":["../src/odspFluidFileLink.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAGI,EAAE,yBAAyB,EAAE;AAcpC;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,yBAAyB,GAAG,MAAM,CA0B1F;AA2DD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,QAAQ,CAAC;AAE3C;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,yBAAyB,QAKjF;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACpC,GAAG,EAAE,GAAG,EACR,qBAAqB,GAAE,OAAc,GACnC,yBAAyB,GAAG,SAAS,CAiBvC"}
|
|
@@ -11,4 +11,4 @@ import { IOdspResolvedUrl } from "@fluidframework/odsp-driver-definitions";
|
|
|
11
11
|
* @returns The resolved url after patching the correct siteUrl.
|
|
12
12
|
*/
|
|
13
13
|
export declare function patchOdspResolvedUrl(resolvedUrl: IResolvedUrl, redirectLocation: string): IOdspResolvedUrl;
|
|
14
|
-
//# sourceMappingURL=odspLocationRedirection.d.
|
|
14
|
+
//# sourceMappingURL=odspLocationRedirection.d.mts.map
|