@fluidframework/odsp-driver 2.50.0 → 2.51.0
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/.eslintrc.cjs +12 -0
- package/CHANGELOG.md +4 -0
- package/dist/checkUrl.d.ts +1 -1
- package/dist/checkUrl.d.ts.map +1 -1
- package/dist/checkUrl.js.map +1 -1
- package/dist/compactSnapshotParser.d.ts +2 -2
- package/dist/compactSnapshotParser.d.ts.map +1 -1
- package/dist/compactSnapshotParser.js.map +1 -1
- package/dist/compactSnapshotWriter.d.ts +1 -1
- package/dist/compactSnapshotWriter.d.ts.map +1 -1
- package/dist/compactSnapshotWriter.js.map +1 -1
- package/dist/contracts.d.ts +3 -3
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js.map +1 -1
- package/dist/contractsPublic.d.ts +18 -2
- package/dist/contractsPublic.d.ts.map +1 -1
- package/dist/contractsPublic.js +12 -1
- package/dist/contractsPublic.js.map +1 -1
- package/dist/createFile/createFile.d.ts +6 -6
- package/dist/createFile/createFile.d.ts.map +1 -1
- package/dist/createFile/createFile.js.map +1 -1
- package/dist/createFile/createNewContainerOnExistingFile.d.ts +6 -6
- package/dist/createFile/createNewContainerOnExistingFile.d.ts.map +1 -1
- package/dist/createFile/createNewContainerOnExistingFile.js +11 -2
- package/dist/createFile/createNewContainerOnExistingFile.js.map +1 -1
- package/dist/createFile/createNewUtils.d.ts +9 -6
- package/dist/createFile/createNewUtils.d.ts.map +1 -1
- package/dist/createFile/createNewUtils.js +19 -8
- package/dist/createFile/createNewUtils.js.map +1 -1
- package/dist/createFile/index.d.ts +1 -1
- package/dist/createFile/index.d.ts.map +1 -1
- package/dist/createFile/index.js.map +1 -1
- package/dist/createOdspCreateContainerRequest.d.ts +2 -2
- package/dist/createOdspCreateContainerRequest.d.ts.map +1 -1
- package/dist/createOdspCreateContainerRequest.js.map +1 -1
- package/dist/createOdspUrl.d.ts +1 -1
- package/dist/createOdspUrl.d.ts.map +1 -1
- package/dist/createOdspUrl.js.map +1 -1
- package/dist/epochTracker.d.ts +4 -4
- package/dist/epochTracker.d.ts.map +1 -1
- package/dist/epochTracker.js.map +1 -1
- package/dist/fetchSnapshot.d.ts +6 -6
- package/dist/fetchSnapshot.d.ts.map +1 -1
- package/dist/fetchSnapshot.js +7 -0
- package/dist/fetchSnapshot.js.map +1 -1
- package/dist/getFileLink.d.ts +2 -2
- package/dist/getFileLink.d.ts.map +1 -1
- package/dist/getFileLink.js.map +1 -1
- package/dist/getQueryString.d.ts +1 -1
- package/dist/getQueryString.d.ts.map +1 -1
- package/dist/getQueryString.js.map +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/localOdspDriver/localOdspDeltaStorageService.d.ts +2 -2
- package/dist/localOdspDriver/localOdspDeltaStorageService.d.ts.map +1 -1
- package/dist/localOdspDriver/localOdspDeltaStorageService.js.map +1 -1
- package/dist/localOdspDriver/localOdspDocumentService.d.ts +4 -4
- package/dist/localOdspDriver/localOdspDocumentService.d.ts.map +1 -1
- package/dist/localOdspDriver/localOdspDocumentService.js.map +1 -1
- package/dist/localOdspDriver/localOdspDocumentServiceFactory.d.ts +5 -5
- package/dist/localOdspDriver/localOdspDocumentServiceFactory.d.ts.map +1 -1
- package/dist/localOdspDriver/localOdspDocumentServiceFactory.js.map +1 -1
- package/dist/localOdspDriver/localOdspDocumentStorageManager.d.ts +3 -3
- package/dist/localOdspDriver/localOdspDocumentStorageManager.d.ts.map +1 -1
- package/dist/localOdspDriver/localOdspDocumentStorageManager.js.map +1 -1
- package/dist/localOdspDriver/localOdspLayerCompatState.d.ts +1 -1
- package/dist/localOdspDriver/localOdspLayerCompatState.d.ts.map +1 -1
- package/dist/localOdspDriver/localOdspLayerCompatState.js.map +1 -1
- package/dist/odspCache.d.ts +2 -2
- package/dist/odspCache.d.ts.map +1 -1
- package/dist/odspCache.js.map +1 -1
- package/dist/odspDelayLoadedDeltaStream.d.ts +6 -6
- package/dist/odspDelayLoadedDeltaStream.d.ts.map +1 -1
- package/dist/odspDelayLoadedDeltaStream.js +9 -0
- package/dist/odspDelayLoadedDeltaStream.js.map +1 -1
- package/dist/odspDeltaStorageService.d.ts +6 -6
- package/dist/odspDeltaStorageService.d.ts.map +1 -1
- package/dist/odspDeltaStorageService.js.map +1 -1
- package/dist/odspDocumentDeltaConnection.d.ts +5 -5
- package/dist/odspDocumentDeltaConnection.d.ts.map +1 -1
- package/dist/odspDocumentDeltaConnection.js.map +1 -1
- package/dist/odspDocumentService.d.ts +6 -6
- package/dist/odspDocumentService.d.ts.map +1 -1
- package/dist/odspDocumentService.js.map +1 -1
- package/dist/odspDocumentServiceFactory.d.ts +2 -2
- package/dist/odspDocumentServiceFactory.d.ts.map +1 -1
- package/dist/odspDocumentServiceFactory.js.map +1 -1
- package/dist/odspDocumentServiceFactoryCore.d.ts +7 -7
- package/dist/odspDocumentServiceFactoryCore.d.ts.map +1 -1
- package/dist/odspDocumentServiceFactoryCore.js +1 -1
- package/dist/odspDocumentServiceFactoryCore.js.map +1 -1
- package/dist/odspDocumentStorageManager.d.ts +9 -9
- package/dist/odspDocumentStorageManager.d.ts.map +1 -1
- package/dist/odspDocumentStorageManager.js.map +1 -1
- package/dist/odspDocumentStorageServiceBase.d.ts +3 -3
- package/dist/odspDocumentStorageServiceBase.d.ts.map +1 -1
- package/dist/odspDocumentStorageServiceBase.js.map +1 -1
- package/dist/odspDriverUrlResolver.d.ts +3 -3
- package/dist/odspDriverUrlResolver.d.ts.map +1 -1
- package/dist/odspDriverUrlResolver.js +3 -0
- package/dist/odspDriverUrlResolver.js.map +1 -1
- package/dist/odspDriverUrlResolverForShareLink.d.ts +4 -4
- package/dist/odspDriverUrlResolverForShareLink.d.ts.map +1 -1
- package/dist/odspDriverUrlResolverForShareLink.js.map +1 -1
- package/dist/odspError.d.ts +3 -3
- package/dist/odspError.d.ts.map +1 -1
- package/dist/odspError.js.map +1 -1
- package/dist/odspFluidFileLink.d.ts +1 -1
- package/dist/odspFluidFileLink.d.ts.map +1 -1
- package/dist/odspFluidFileLink.js.map +1 -1
- package/dist/odspLayerCompatState.d.ts +1 -1
- package/dist/odspLayerCompatState.d.ts.map +1 -1
- package/dist/odspLayerCompatState.js.map +1 -1
- package/dist/odspLocationRedirection.d.ts +2 -2
- package/dist/odspLocationRedirection.d.ts.map +1 -1
- package/dist/odspLocationRedirection.js.map +1 -1
- package/dist/odspPublicUtils.d.ts +1 -1
- package/dist/odspPublicUtils.d.ts.map +1 -1
- package/dist/odspPublicUtils.js.map +1 -1
- package/dist/odspSnapshotParser.d.ts +2 -2
- package/dist/odspSnapshotParser.d.ts.map +1 -1
- package/dist/odspSnapshotParser.js.map +1 -1
- package/dist/odspSummaryUploadManager.d.ts +5 -5
- package/dist/odspSummaryUploadManager.d.ts.map +1 -1
- package/dist/odspSummaryUploadManager.js.map +1 -1
- package/dist/odspUrlHelper.d.ts +1 -1
- package/dist/odspUrlHelper.d.ts.map +1 -1
- package/dist/odspUrlHelper.js.map +1 -1
- package/dist/odspUtils.d.ts +5 -5
- package/dist/odspUtils.d.ts.map +1 -1
- package/dist/odspUtils.js.map +1 -1
- package/dist/opsCaching.d.ts +1 -1
- package/dist/opsCaching.d.ts.map +1 -1
- package/dist/opsCaching.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/prefetchLatestSnapshot.d.ts +5 -5
- package/dist/prefetchLatestSnapshot.d.ts.map +1 -1
- package/dist/prefetchLatestSnapshot.js.map +1 -1
- package/dist/retryErrorsStorageAdapter.d.ts +4 -4
- package/dist/retryErrorsStorageAdapter.d.ts.map +1 -1
- package/dist/retryErrorsStorageAdapter.js.map +1 -1
- package/dist/retryUtils.d.ts +1 -1
- package/dist/retryUtils.d.ts.map +1 -1
- package/dist/retryUtils.js.map +1 -1
- package/dist/vroom.d.ts +4 -4
- package/dist/vroom.d.ts.map +1 -1
- package/dist/vroom.js.map +1 -1
- package/dist/zipItDataRepresentationUtils.d.ts +2 -2
- package/dist/zipItDataRepresentationUtils.d.ts.map +1 -1
- package/dist/zipItDataRepresentationUtils.js.map +1 -1
- package/lib/checkUrl.d.ts +1 -1
- package/lib/checkUrl.d.ts.map +1 -1
- package/lib/checkUrl.js.map +1 -1
- package/lib/compactSnapshotParser.d.ts +2 -2
- package/lib/compactSnapshotParser.d.ts.map +1 -1
- package/lib/compactSnapshotParser.js.map +1 -1
- package/lib/compactSnapshotWriter.d.ts +1 -1
- package/lib/compactSnapshotWriter.d.ts.map +1 -1
- package/lib/compactSnapshotWriter.js.map +1 -1
- package/lib/contracts.d.ts +3 -3
- package/lib/contracts.d.ts.map +1 -1
- package/lib/contracts.js.map +1 -1
- package/lib/contractsPublic.d.ts +18 -2
- package/lib/contractsPublic.d.ts.map +1 -1
- package/lib/contractsPublic.js +11 -0
- package/lib/contractsPublic.js.map +1 -1
- package/lib/createFile/createFile.d.ts +6 -6
- package/lib/createFile/createFile.d.ts.map +1 -1
- package/lib/createFile/createFile.js.map +1 -1
- package/lib/createFile/createNewContainerOnExistingFile.d.ts +6 -6
- package/lib/createFile/createNewContainerOnExistingFile.d.ts.map +1 -1
- package/lib/createFile/createNewContainerOnExistingFile.js +12 -3
- package/lib/createFile/createNewContainerOnExistingFile.js.map +1 -1
- package/lib/createFile/createNewUtils.d.ts +9 -6
- package/lib/createFile/createNewUtils.d.ts.map +1 -1
- package/lib/createFile/createNewUtils.js +19 -8
- package/lib/createFile/createNewUtils.js.map +1 -1
- package/lib/createFile/index.d.ts +1 -1
- package/lib/createFile/index.d.ts.map +1 -1
- package/lib/createFile/index.js.map +1 -1
- package/lib/createOdspCreateContainerRequest.d.ts +2 -2
- package/lib/createOdspCreateContainerRequest.d.ts.map +1 -1
- package/lib/createOdspCreateContainerRequest.js.map +1 -1
- package/lib/createOdspUrl.d.ts +1 -1
- package/lib/createOdspUrl.d.ts.map +1 -1
- package/lib/createOdspUrl.js.map +1 -1
- package/lib/epochTracker.d.ts +4 -4
- package/lib/epochTracker.d.ts.map +1 -1
- package/lib/epochTracker.js.map +1 -1
- package/lib/fetchSnapshot.d.ts +6 -6
- package/lib/fetchSnapshot.d.ts.map +1 -1
- package/lib/fetchSnapshot.js +7 -0
- package/lib/fetchSnapshot.js.map +1 -1
- package/lib/getFileLink.d.ts +2 -2
- package/lib/getFileLink.d.ts.map +1 -1
- package/lib/getFileLink.js.map +1 -1
- package/lib/getQueryString.d.ts +1 -1
- package/lib/getQueryString.d.ts.map +1 -1
- package/lib/getQueryString.js.map +1 -1
- package/lib/index.d.ts +7 -7
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/localOdspDriver/localOdspDeltaStorageService.d.ts +2 -2
- package/lib/localOdspDriver/localOdspDeltaStorageService.d.ts.map +1 -1
- package/lib/localOdspDriver/localOdspDeltaStorageService.js.map +1 -1
- package/lib/localOdspDriver/localOdspDocumentService.d.ts +4 -4
- package/lib/localOdspDriver/localOdspDocumentService.d.ts.map +1 -1
- package/lib/localOdspDriver/localOdspDocumentService.js.map +1 -1
- package/lib/localOdspDriver/localOdspDocumentServiceFactory.d.ts +5 -5
- package/lib/localOdspDriver/localOdspDocumentServiceFactory.d.ts.map +1 -1
- package/lib/localOdspDriver/localOdspDocumentServiceFactory.js.map +1 -1
- package/lib/localOdspDriver/localOdspDocumentStorageManager.d.ts +3 -3
- package/lib/localOdspDriver/localOdspDocumentStorageManager.d.ts.map +1 -1
- package/lib/localOdspDriver/localOdspDocumentStorageManager.js.map +1 -1
- package/lib/localOdspDriver/localOdspLayerCompatState.d.ts +1 -1
- package/lib/localOdspDriver/localOdspLayerCompatState.d.ts.map +1 -1
- package/lib/localOdspDriver/localOdspLayerCompatState.js.map +1 -1
- package/lib/odspCache.d.ts +2 -2
- package/lib/odspCache.d.ts.map +1 -1
- package/lib/odspCache.js.map +1 -1
- package/lib/odspDelayLoadedDeltaStream.d.ts +6 -6
- package/lib/odspDelayLoadedDeltaStream.d.ts.map +1 -1
- package/lib/odspDelayLoadedDeltaStream.js +9 -0
- package/lib/odspDelayLoadedDeltaStream.js.map +1 -1
- package/lib/odspDeltaStorageService.d.ts +6 -6
- package/lib/odspDeltaStorageService.d.ts.map +1 -1
- package/lib/odspDeltaStorageService.js.map +1 -1
- package/lib/odspDocumentDeltaConnection.d.ts +5 -5
- package/lib/odspDocumentDeltaConnection.d.ts.map +1 -1
- package/lib/odspDocumentDeltaConnection.js.map +1 -1
- package/lib/odspDocumentService.d.ts +6 -6
- package/lib/odspDocumentService.d.ts.map +1 -1
- package/lib/odspDocumentService.js.map +1 -1
- package/lib/odspDocumentServiceFactory.d.ts +2 -2
- package/lib/odspDocumentServiceFactory.d.ts.map +1 -1
- package/lib/odspDocumentServiceFactory.js.map +1 -1
- package/lib/odspDocumentServiceFactoryCore.d.ts +7 -7
- package/lib/odspDocumentServiceFactoryCore.d.ts.map +1 -1
- package/lib/odspDocumentServiceFactoryCore.js +1 -1
- package/lib/odspDocumentServiceFactoryCore.js.map +1 -1
- package/lib/odspDocumentStorageManager.d.ts +9 -9
- package/lib/odspDocumentStorageManager.d.ts.map +1 -1
- package/lib/odspDocumentStorageManager.js.map +1 -1
- package/lib/odspDocumentStorageServiceBase.d.ts +3 -3
- package/lib/odspDocumentStorageServiceBase.d.ts.map +1 -1
- package/lib/odspDocumentStorageServiceBase.js.map +1 -1
- package/lib/odspDriverUrlResolver.d.ts +3 -3
- package/lib/odspDriverUrlResolver.d.ts.map +1 -1
- package/lib/odspDriverUrlResolver.js +4 -1
- package/lib/odspDriverUrlResolver.js.map +1 -1
- package/lib/odspDriverUrlResolverForShareLink.d.ts +4 -4
- package/lib/odspDriverUrlResolverForShareLink.d.ts.map +1 -1
- package/lib/odspDriverUrlResolverForShareLink.js.map +1 -1
- package/lib/odspError.d.ts +3 -3
- package/lib/odspError.d.ts.map +1 -1
- package/lib/odspError.js +1 -1
- package/lib/odspError.js.map +1 -1
- package/lib/odspFluidFileLink.d.ts +1 -1
- package/lib/odspFluidFileLink.d.ts.map +1 -1
- package/lib/odspFluidFileLink.js.map +1 -1
- package/lib/odspLayerCompatState.d.ts +1 -1
- package/lib/odspLayerCompatState.d.ts.map +1 -1
- package/lib/odspLayerCompatState.js.map +1 -1
- package/lib/odspLocationRedirection.d.ts +2 -2
- package/lib/odspLocationRedirection.d.ts.map +1 -1
- package/lib/odspLocationRedirection.js.map +1 -1
- package/lib/odspPublicUtils.d.ts +1 -1
- package/lib/odspPublicUtils.d.ts.map +1 -1
- package/lib/odspPublicUtils.js.map +1 -1
- package/lib/odspSnapshotParser.d.ts +2 -2
- package/lib/odspSnapshotParser.d.ts.map +1 -1
- package/lib/odspSnapshotParser.js.map +1 -1
- package/lib/odspSummaryUploadManager.d.ts +5 -5
- package/lib/odspSummaryUploadManager.d.ts.map +1 -1
- package/lib/odspSummaryUploadManager.js +1 -1
- package/lib/odspSummaryUploadManager.js.map +1 -1
- package/lib/odspUrlHelper.d.ts +1 -1
- package/lib/odspUrlHelper.d.ts.map +1 -1
- package/lib/odspUrlHelper.js.map +1 -1
- package/lib/odspUtils.d.ts +5 -5
- package/lib/odspUtils.d.ts.map +1 -1
- package/lib/odspUtils.js.map +1 -1
- package/lib/opsCaching.d.ts +1 -1
- package/lib/opsCaching.d.ts.map +1 -1
- package/lib/opsCaching.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/prefetchLatestSnapshot.d.ts +5 -5
- package/lib/prefetchLatestSnapshot.d.ts.map +1 -1
- package/lib/prefetchLatestSnapshot.js.map +1 -1
- package/lib/retryErrorsStorageAdapter.d.ts +4 -4
- package/lib/retryErrorsStorageAdapter.d.ts.map +1 -1
- package/lib/retryErrorsStorageAdapter.js.map +1 -1
- package/lib/retryUtils.d.ts +1 -1
- package/lib/retryUtils.d.ts.map +1 -1
- package/lib/retryUtils.js.map +1 -1
- package/lib/vroom.d.ts +4 -4
- package/lib/vroom.d.ts.map +1 -1
- package/lib/vroom.js.map +1 -1
- package/lib/zipItDataRepresentationUtils.d.ts +2 -2
- package/lib/zipItDataRepresentationUtils.d.ts.map +1 -1
- package/lib/zipItDataRepresentationUtils.js.map +1 -1
- package/package.json +13 -14
- package/src/checkUrl.ts +1 -1
- package/src/compactSnapshotParser.ts +4 -4
- package/src/compactSnapshotWriter.ts +2 -2
- package/src/contracts.ts +3 -3
- package/src/contractsPublic.ts +20 -2
- package/src/createFile/createFile.ts +10 -10
- package/src/createFile/createNewContainerOnExistingFile.ts +20 -9
- package/src/createFile/createNewUtils.ts +27 -15
- package/src/createFile/index.ts +2 -1
- package/src/createOdspCreateContainerRequest.ts +2 -2
- package/src/createOdspUrl.ts +1 -1
- package/src/epochTracker.ts +11 -11
- package/src/fetchSnapshot.ts +20 -13
- package/src/getFileLink.ts +4 -4
- package/src/getQueryString.ts +1 -1
- package/src/index.ts +10 -10
- package/src/localOdspDriver/localOdspDeltaStorageService.ts +2 -2
- package/src/localOdspDriver/localOdspDocumentService.ts +4 -4
- package/src/localOdspDriver/localOdspDocumentServiceFactory.ts +8 -5
- package/src/localOdspDriver/localOdspDocumentStorageManager.ts +4 -4
- package/src/localOdspDriver/localOdspLayerCompatState.ts +1 -1
- package/src/odspCache.ts +7 -7
- package/src/odspDelayLoadedDeltaStream.ts +24 -14
- package/src/odspDeltaStorageService.ts +8 -8
- package/src/odspDocumentDeltaConnection.ts +9 -9
- package/src/odspDocumentService.ts +8 -8
- package/src/odspDocumentServiceFactory.ts +2 -2
- package/src/odspDocumentServiceFactoryCore.ts +20 -19
- package/src/odspDocumentStorageManager.ts +18 -18
- package/src/odspDocumentStorageServiceBase.ts +13 -13
- package/src/odspDriverUrlResolver.ts +9 -6
- package/src/odspDriverUrlResolverForShareLink.ts +5 -5
- package/src/odspError.ts +6 -3
- package/src/odspFluidFileLink.ts +1 -1
- package/src/odspLayerCompatState.ts +1 -1
- package/src/odspLocationRedirection.ts +2 -2
- package/src/odspPublicUtils.ts +1 -1
- package/src/odspSnapshotParser.ts +2 -2
- package/src/odspSummaryUploadManager.ts +11 -7
- package/src/odspUrlHelper.ts +1 -1
- package/src/odspUtils.ts +13 -13
- package/src/opsCaching.ts +1 -1
- package/src/packageVersion.ts +1 -1
- package/src/prefetchLatestSnapshot.ts +13 -13
- package/src/retryErrorsStorageAdapter.ts +4 -4
- package/src/retryUtils.ts +1 -1
- package/src/vroom.ts +5 -5
- package/src/zipItDataRepresentationUtils.ts +2 -2
package/src/fetchSnapshot.ts
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
import { fromUtf8ToBase64 } from "@fluid-internal/client-utils";
|
|
7
7
|
import { assert } from "@fluidframework/core-utils/internal";
|
|
8
8
|
import { getW3CData } from "@fluidframework/driver-base/internal";
|
|
9
|
-
import { ISnapshot, ISnapshotTree } from "@fluidframework/driver-definitions/internal";
|
|
9
|
+
import type { ISnapshot, ISnapshotTree } from "@fluidframework/driver-definitions/internal";
|
|
10
10
|
import {
|
|
11
|
-
DriverErrorTelemetryProps,
|
|
11
|
+
type DriverErrorTelemetryProps,
|
|
12
12
|
NonRetryableError,
|
|
13
13
|
isRuntimeMessage,
|
|
14
14
|
} from "@fluidframework/driver-utils/internal";
|
|
@@ -18,13 +18,13 @@ import {
|
|
|
18
18
|
} from "@fluidframework/odsp-doclib-utils/internal";
|
|
19
19
|
import {
|
|
20
20
|
type IOdspError,
|
|
21
|
-
IOdspResolvedUrl,
|
|
22
|
-
ISnapshotOptions,
|
|
23
|
-
InstrumentedStorageTokenFetcher,
|
|
21
|
+
type IOdspResolvedUrl,
|
|
22
|
+
type ISnapshotOptions,
|
|
23
|
+
type InstrumentedStorageTokenFetcher,
|
|
24
24
|
OdspErrorTypes,
|
|
25
25
|
} from "@fluidframework/odsp-driver-definitions/internal";
|
|
26
26
|
import {
|
|
27
|
-
ITelemetryLoggerExt,
|
|
27
|
+
type ITelemetryLoggerExt,
|
|
28
28
|
PerformanceEvent,
|
|
29
29
|
isFluidError,
|
|
30
30
|
wrapError,
|
|
@@ -32,24 +32,25 @@ import {
|
|
|
32
32
|
import { v4 as uuid } from "uuid";
|
|
33
33
|
|
|
34
34
|
import {
|
|
35
|
-
ISnapshotContentsWithProps,
|
|
35
|
+
type ISnapshotContentsWithProps,
|
|
36
36
|
currentReadVersion,
|
|
37
37
|
parseCompactSnapshotResponse,
|
|
38
38
|
} from "./compactSnapshotParser.js";
|
|
39
39
|
import {
|
|
40
|
-
IOdspSnapshot,
|
|
41
|
-
ISnapshotCachedEntry2,
|
|
42
|
-
IVersionedValueWithEpoch,
|
|
40
|
+
type IOdspSnapshot,
|
|
41
|
+
type ISnapshotCachedEntry2,
|
|
42
|
+
type IVersionedValueWithEpoch,
|
|
43
43
|
persistedCacheValueVersion,
|
|
44
44
|
} from "./contracts.js";
|
|
45
|
-
import {
|
|
45
|
+
import { ClpCompliantAppHeader } from "./contractsPublic.js";
|
|
46
|
+
import type { EpochTracker } from "./epochTracker.js";
|
|
46
47
|
import { getQueryString } from "./getQueryString.js";
|
|
47
48
|
import { getHeadersWithAuth } from "./getUrlAndHeadersWithAuth.js";
|
|
48
49
|
import { mockify } from "./mockify.js";
|
|
49
50
|
import { convertOdspSnapshotToSnapshotTreeAndBlobs } from "./odspSnapshotParser.js";
|
|
50
51
|
import { checkForKnownServerFarmType } from "./odspUrlHelper.js";
|
|
51
52
|
import {
|
|
52
|
-
IOdspResponse,
|
|
53
|
+
type IOdspResponse,
|
|
53
54
|
fetchAndParseAsJSONHelper,
|
|
54
55
|
fetchHelper,
|
|
55
56
|
getWithRetryForTokenRefresh,
|
|
@@ -739,9 +740,15 @@ export const downloadSnapshot = mockify(
|
|
|
739
740
|
// This error thrown by server will contain the new redirect location. Look at the 404 error parsing
|
|
740
741
|
// for further reference here: \packages\utils\odsp-doclib-utils\src\odspErrorUtils.ts
|
|
741
742
|
// If the share link is non-durable, we will add the nonDurableRedeem header to the header.prefer.
|
|
742
|
-
const header = isRedemptionNonDurable
|
|
743
|
+
const header: { [key: string]: string } = isRedemptionNonDurable
|
|
743
744
|
? { prefer: "manualredirect, nonDurableRedeem" }
|
|
744
745
|
: { prefer: "manualredirect" };
|
|
746
|
+
// Epoch tracker is handling adding the CLP Compliant App header, so only when a flow does not
|
|
747
|
+
// use epoch tracker, we add the header.
|
|
748
|
+
if (epochTracker === undefined && odspResolvedUrl.isClpCompliantApp !== undefined) {
|
|
749
|
+
header[ClpCompliantAppHeader.isClpCompliantApp] =
|
|
750
|
+
odspResolvedUrl.isClpCompliantApp.toString();
|
|
751
|
+
}
|
|
745
752
|
const authHeader = await getAuthHeader(
|
|
746
753
|
{ ...tokenFetchOptions, request: { url, method } },
|
|
747
754
|
"downloadSnapshot",
|
package/src/getFileLink.ts
CHANGED
|
@@ -7,14 +7,14 @@ import type { ITelemetryBaseProperties } from "@fluidframework/core-interfaces";
|
|
|
7
7
|
import { assert } from "@fluidframework/core-utils/internal";
|
|
8
8
|
import { NonRetryableError, runWithRetry } from "@fluidframework/driver-utils/internal";
|
|
9
9
|
import {
|
|
10
|
-
IOdspUrlParts,
|
|
10
|
+
type IOdspUrlParts,
|
|
11
11
|
OdspErrorTypes,
|
|
12
|
-
OdspResourceTokenFetchOptions,
|
|
13
|
-
TokenFetcher,
|
|
12
|
+
type OdspResourceTokenFetchOptions,
|
|
13
|
+
type TokenFetcher,
|
|
14
14
|
type IOdspResolvedUrl,
|
|
15
15
|
} from "@fluidframework/odsp-driver-definitions/internal";
|
|
16
16
|
import {
|
|
17
|
-
ITelemetryLoggerExt,
|
|
17
|
+
type ITelemetryLoggerExt,
|
|
18
18
|
PerformanceEvent,
|
|
19
19
|
isFluidError,
|
|
20
20
|
} from "@fluidframework/telemetry-utils/internal";
|
package/src/getQueryString.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ISnapshotOptions } from "@fluidframework/odsp-driver-definitions/internal";
|
|
6
|
+
import type { ISnapshotOptions } from "@fluidframework/odsp-driver-definitions/internal";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Generates query string from the given query parameters.
|
package/src/index.ts
CHANGED
|
@@ -8,16 +8,16 @@ export { OdcApiSiteOrigin, OdcFileSiteOrigin } from "./constants.js";
|
|
|
8
8
|
|
|
9
9
|
export {
|
|
10
10
|
ClpCompliantAppHeader,
|
|
11
|
-
IClpCompliantAppHeader,
|
|
12
|
-
ISharingLinkHeader,
|
|
13
|
-
OdspFluidDataStoreLocator,
|
|
11
|
+
type IClpCompliantAppHeader,
|
|
12
|
+
type ISharingLinkHeader,
|
|
13
|
+
type OdspFluidDataStoreLocator,
|
|
14
14
|
SharingLinkHeader,
|
|
15
15
|
} from "./contractsPublic.js";
|
|
16
16
|
|
|
17
17
|
// public utils
|
|
18
18
|
export { checkUrl } from "./checkUrl.js";
|
|
19
19
|
export { createOdspUrl } from "./createOdspUrl.js";
|
|
20
|
-
export { getHashedDocumentId, ISnapshotContents } from "./odspPublicUtils.js";
|
|
20
|
+
export { getHashedDocumentId, type ISnapshotContents } from "./odspPublicUtils.js";
|
|
21
21
|
export { getOdspUrlParts, isOdcUrl, isSpoUrl } from "./odspUrlHelper.js";
|
|
22
22
|
|
|
23
23
|
// prefetch latest snapshot before container load
|
|
@@ -37,7 +37,7 @@ export { createOdspCreateContainerRequest } from "./createOdspCreateContainerReq
|
|
|
37
37
|
export { OdspDriverUrlResolver } from "./odspDriverUrlResolver.js";
|
|
38
38
|
export {
|
|
39
39
|
OdspDriverUrlResolverForShareLink,
|
|
40
|
-
ShareLinkFetcherProps,
|
|
40
|
+
type ShareLinkFetcherProps,
|
|
41
41
|
} from "./odspDriverUrlResolverForShareLink.js";
|
|
42
42
|
|
|
43
43
|
// It's used by URL resolve code, but also has some public functions
|
|
@@ -48,22 +48,22 @@ export {
|
|
|
48
48
|
storeLocatorInOdspUrl,
|
|
49
49
|
} from "./odspFluidFileLink.js";
|
|
50
50
|
|
|
51
|
-
export {
|
|
51
|
+
export type {
|
|
52
52
|
IOdspCache,
|
|
53
53
|
IPersistedFileCache,
|
|
54
54
|
INonPersistentCache,
|
|
55
55
|
IPrefetchSnapshotContents,
|
|
56
56
|
} from "./odspCache.js";
|
|
57
|
-
export {
|
|
57
|
+
export type {
|
|
58
58
|
ICacheAndTracker,
|
|
59
|
-
|
|
59
|
+
EpochTracker,
|
|
60
60
|
FetchType,
|
|
61
61
|
FetchTypeInternal,
|
|
62
62
|
} from "./epochTracker.js";
|
|
63
|
-
export { IOdspResponse, isOdspResolvedUrl } from "./odspUtils.js";
|
|
63
|
+
export { type IOdspResponse, isOdspResolvedUrl } from "./odspUtils.js";
|
|
64
64
|
export { SnapshotFormatSupportType } from "./fetchSnapshot.js";
|
|
65
65
|
export {
|
|
66
|
-
ISnapshotContentsWithProps,
|
|
66
|
+
type ISnapshotContentsWithProps,
|
|
67
67
|
parseCompactSnapshotResponse,
|
|
68
68
|
} from "./compactSnapshotParser.js";
|
|
69
69
|
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { validateMessages } from "@fluidframework/driver-base/internal";
|
|
7
|
-
import {
|
|
7
|
+
import type {
|
|
8
8
|
IDocumentDeltaStorageService,
|
|
9
9
|
IStream,
|
|
10
10
|
ISequencedDocumentMessage,
|
|
11
11
|
} from "@fluidframework/driver-definitions/internal";
|
|
12
12
|
import { Queue, emptyMessageStream } from "@fluidframework/driver-utils/internal";
|
|
13
|
-
import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils/internal";
|
|
13
|
+
import type { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils/internal";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Implementation of IDocumentDeltaStorageService that will return snapshot ops when fetching messages
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { TypedEventEmitter, type ILayerCompatDetails } from "@fluid-internal/client-utils";
|
|
7
|
-
import { IClient } from "@fluidframework/driver-definitions";
|
|
8
|
-
import {
|
|
7
|
+
import type { IClient } from "@fluidframework/driver-definitions";
|
|
8
|
+
import type {
|
|
9
9
|
IDocumentDeltaStorageService,
|
|
10
10
|
IDocumentService,
|
|
11
11
|
IDocumentServiceEvents,
|
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
IResolvedUrl,
|
|
14
14
|
} from "@fluidframework/driver-definitions/internal";
|
|
15
15
|
import { UsageError } from "@fluidframework/driver-utils/internal";
|
|
16
|
-
import { IOdspResolvedUrl } from "@fluidframework/odsp-driver-definitions/internal";
|
|
17
|
-
import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils/internal";
|
|
16
|
+
import type { IOdspResolvedUrl } from "@fluidframework/odsp-driver-definitions/internal";
|
|
17
|
+
import type { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils/internal";
|
|
18
18
|
|
|
19
19
|
import { LocalOdspDeltaStorageService } from "./localOdspDeltaStorageService.js";
|
|
20
20
|
import { LocalOdspDocumentStorageService } from "./localOdspDocumentStorageManager.js";
|
|
@@ -3,13 +3,16 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
|
|
7
|
-
import { ISummaryTree } from "@fluidframework/driver-definitions";
|
|
8
|
-
import {
|
|
6
|
+
import type { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
|
|
7
|
+
import type { ISummaryTree } from "@fluidframework/driver-definitions";
|
|
8
|
+
import type {
|
|
9
|
+
IDocumentService,
|
|
10
|
+
IResolvedUrl,
|
|
11
|
+
} from "@fluidframework/driver-definitions/internal";
|
|
9
12
|
import { UsageError } from "@fluidframework/driver-utils/internal";
|
|
10
|
-
import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils/internal";
|
|
13
|
+
import type { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils/internal";
|
|
11
14
|
|
|
12
|
-
import { ICacheAndTracker } from "../epochTracker.js";
|
|
15
|
+
import type { ICacheAndTracker } from "../epochTracker.js";
|
|
13
16
|
import { OdspDocumentServiceFactoryCore } from "../odspDocumentServiceFactoryCore.js";
|
|
14
17
|
import { createOdspLogger, getOdspResolvedUrl } from "../odspUtils.js";
|
|
15
18
|
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { assert } from "@fluidframework/core-utils/internal";
|
|
7
|
-
import { ISummaryTree } from "@fluidframework/driver-definitions";
|
|
8
|
-
import {
|
|
7
|
+
import type { ISummaryTree } from "@fluidframework/driver-definitions";
|
|
8
|
+
import type {
|
|
9
9
|
ISnapshot,
|
|
10
10
|
ISnapshotFetchOptions,
|
|
11
11
|
ISummaryContext,
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
} from "@fluidframework/driver-definitions/internal";
|
|
14
14
|
import { UsageError } from "@fluidframework/driver-utils/internal";
|
|
15
15
|
import {
|
|
16
|
-
ITelemetryLoggerExt,
|
|
16
|
+
type ITelemetryLoggerExt,
|
|
17
17
|
loggerToMonitoringContext,
|
|
18
18
|
} from "@fluidframework/telemetry-utils/internal";
|
|
19
19
|
|
|
20
20
|
import { parseCompactSnapshotResponse } from "../compactSnapshotParser.js";
|
|
21
|
-
import { IOdspSnapshot } from "../contracts.js";
|
|
21
|
+
import type { IOdspSnapshot } from "../contracts.js";
|
|
22
22
|
import { OdspDocumentStorageServiceBase } from "../odspDocumentStorageServiceBase.js";
|
|
23
23
|
import { convertOdspSnapshotToSnapshotTreeAndBlobs } from "../odspSnapshotParser.js";
|
|
24
24
|
|
package/src/odspCache.ts
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { PromiseCache } from "@fluidframework/core-utils/internal";
|
|
7
|
-
import { ISnapshot } from "@fluidframework/driver-definitions/internal";
|
|
7
|
+
import type { ISnapshot } from "@fluidframework/driver-definitions/internal";
|
|
8
8
|
import {
|
|
9
|
-
ICacheEntry,
|
|
10
|
-
IEntry,
|
|
11
|
-
IFileEntry,
|
|
12
|
-
IOdspResolvedUrl,
|
|
13
|
-
IPersistedCache,
|
|
14
|
-
ISocketStorageDiscovery,
|
|
9
|
+
type ICacheEntry,
|
|
10
|
+
type IEntry,
|
|
11
|
+
type IFileEntry,
|
|
12
|
+
type IOdspResolvedUrl,
|
|
13
|
+
type IPersistedCache,
|
|
14
|
+
type ISocketStorageDiscovery,
|
|
15
15
|
getKeyForCacheEntry,
|
|
16
16
|
} from "@fluidframework/odsp-driver-definitions/internal";
|
|
17
17
|
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { performanceNow } from "@fluid-internal/client-utils";
|
|
7
|
-
import { ISignalEnvelope } from "@fluidframework/core-interfaces/internal";
|
|
7
|
+
import type { ISignalEnvelope } from "@fluidframework/core-interfaces/internal";
|
|
8
8
|
import { assert } from "@fluidframework/core-utils/internal";
|
|
9
|
-
import { IClient } from "@fluidframework/driver-definitions";
|
|
10
|
-
import {
|
|
9
|
+
import type { IClient } from "@fluidframework/driver-definitions";
|
|
10
|
+
import type {
|
|
11
11
|
IDocumentDeltaConnection,
|
|
12
12
|
IDocumentServicePolicies,
|
|
13
13
|
IResolvedUrl,
|
|
14
|
-
|
|
14
|
+
IAnyDriverError,
|
|
15
15
|
ISequencedDocumentMessage,
|
|
16
16
|
ISignalMessage,
|
|
17
17
|
} from "@fluidframework/driver-definitions/internal";
|
|
@@ -21,27 +21,27 @@ import {
|
|
|
21
21
|
} from "@fluidframework/driver-utils/internal";
|
|
22
22
|
import { hasFacetCodes } from "@fluidframework/odsp-doclib-utils/internal";
|
|
23
23
|
import {
|
|
24
|
-
HostStoragePolicy,
|
|
24
|
+
type HostStoragePolicy,
|
|
25
25
|
type IOdspError,
|
|
26
|
-
IOdspResolvedUrl,
|
|
27
|
-
ISocketStorageDiscovery,
|
|
28
|
-
InstrumentedStorageTokenFetcher,
|
|
26
|
+
type IOdspResolvedUrl,
|
|
27
|
+
type ISocketStorageDiscovery,
|
|
28
|
+
type InstrumentedStorageTokenFetcher,
|
|
29
29
|
OdspErrorTypes,
|
|
30
|
-
TokenFetchOptions,
|
|
30
|
+
type TokenFetchOptions,
|
|
31
31
|
} from "@fluidframework/odsp-driver-definitions/internal";
|
|
32
32
|
import {
|
|
33
|
-
IFluidErrorBase,
|
|
34
|
-
MonitoringContext,
|
|
33
|
+
type IFluidErrorBase,
|
|
34
|
+
type MonitoringContext,
|
|
35
35
|
normalizeError,
|
|
36
36
|
} from "@fluidframework/telemetry-utils/internal";
|
|
37
37
|
import { v4 as uuid } from "uuid";
|
|
38
38
|
|
|
39
39
|
import { policyLabelsUpdatesSignalType } from "./contracts.js";
|
|
40
|
-
import { EpochTracker } from "./epochTracker.js";
|
|
41
|
-
import { IOdspCache } from "./odspCache.js";
|
|
40
|
+
import type { EpochTracker } from "./epochTracker.js";
|
|
41
|
+
import type { IOdspCache } from "./odspCache.js";
|
|
42
42
|
import { OdspDocumentDeltaConnection } from "./odspDocumentDeltaConnection.js";
|
|
43
43
|
import {
|
|
44
|
-
TokenFetchOptionsEx,
|
|
44
|
+
type TokenFetchOptionsEx,
|
|
45
45
|
getJoinSessionCacheKey,
|
|
46
46
|
getWithRetryForTokenRefresh,
|
|
47
47
|
} from "./odspUtils.js";
|
|
@@ -155,6 +155,16 @@ export class OdspDelayLoadedDeltaStream {
|
|
|
155
155
|
throw this.annotateConnectionError(error, step, !requestWebsocketTokenFromJoinSession);
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
+
// Log telemetry for join session attempt
|
|
159
|
+
if (this.firstConnectionAttempt) {
|
|
160
|
+
this.mc.logger.sendTelemetryEvent({
|
|
161
|
+
eventName: "FirstJoinSessionAttemptDetails",
|
|
162
|
+
details: {
|
|
163
|
+
requestWebsocketToken: requestWebsocketTokenFromJoinSession,
|
|
164
|
+
},
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
|
|
158
168
|
const joinSessionPromise = this.joinSession(
|
|
159
169
|
requestWebsocketTokenFromJoinSession,
|
|
160
170
|
options,
|
|
@@ -3,26 +3,26 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ITelemetryBaseProperties } from "@fluidframework/core-interfaces";
|
|
6
|
+
import type { ITelemetryBaseProperties } from "@fluidframework/core-interfaces";
|
|
7
7
|
import { assert } from "@fluidframework/core-utils/internal";
|
|
8
8
|
import { validateMessages } from "@fluidframework/driver-base/internal";
|
|
9
|
-
import {
|
|
9
|
+
import type {
|
|
10
10
|
IDeltasFetchResult,
|
|
11
11
|
IDocumentDeltaStorageService,
|
|
12
|
-
|
|
12
|
+
IStream,
|
|
13
13
|
ISequencedDocumentMessage,
|
|
14
14
|
} from "@fluidframework/driver-definitions/internal";
|
|
15
15
|
import { requestOps, streamObserver } from "@fluidframework/driver-utils/internal";
|
|
16
|
-
import { InstrumentedStorageTokenFetcher } from "@fluidframework/odsp-driver-definitions/internal";
|
|
16
|
+
import type { InstrumentedStorageTokenFetcher } from "@fluidframework/odsp-driver-definitions/internal";
|
|
17
17
|
import {
|
|
18
|
-
ITelemetryLoggerExt,
|
|
18
|
+
type ITelemetryLoggerExt,
|
|
19
19
|
PerformanceEvent,
|
|
20
20
|
} from "@fluidframework/telemetry-utils/internal";
|
|
21
21
|
import { v4 as uuid } from "uuid";
|
|
22
22
|
|
|
23
|
-
import { IDeltaStorageGetResponse, ISequencedDeltaOpMessage } from "./contracts.js";
|
|
24
|
-
import { EpochTracker } from "./epochTracker.js";
|
|
25
|
-
import { OdspDocumentStorageService } from "./odspDocumentStorageManager.js";
|
|
23
|
+
import type { IDeltaStorageGetResponse, ISequencedDeltaOpMessage } from "./contracts.js";
|
|
24
|
+
import type { EpochTracker } from "./epochTracker.js";
|
|
25
|
+
import type { OdspDocumentStorageService } from "./odspDocumentStorageManager.js";
|
|
26
26
|
import { getWithRetryForTokenRefresh } from "./odspUtils.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { TypedEventEmitter, performanceNow } from "@fluid-internal/client-utils";
|
|
7
|
-
import { IEvent } from "@fluidframework/core-interfaces";
|
|
7
|
+
import type { IEvent } from "@fluidframework/core-interfaces";
|
|
8
8
|
import { assert, Deferred } from "@fluidframework/core-utils/internal";
|
|
9
9
|
import { DocumentDeltaConnection } from "@fluidframework/driver-base/internal";
|
|
10
|
-
import { IClient } from "@fluidframework/driver-definitions";
|
|
11
|
-
import {
|
|
10
|
+
import type { IClient } from "@fluidframework/driver-definitions";
|
|
11
|
+
import type {
|
|
12
12
|
IAnyDriverError,
|
|
13
13
|
IConnect,
|
|
14
14
|
IDocumentMessage,
|
|
@@ -18,17 +18,17 @@ import {
|
|
|
18
18
|
ISignalMessage,
|
|
19
19
|
} from "@fluidframework/driver-definitions/internal";
|
|
20
20
|
import { createGenericNetworkError } from "@fluidframework/driver-utils/internal";
|
|
21
|
-
import { OdspError } from "@fluidframework/odsp-driver-definitions/internal";
|
|
21
|
+
import type { OdspError } from "@fluidframework/odsp-driver-definitions/internal";
|
|
22
22
|
import {
|
|
23
|
-
IFluidErrorBase,
|
|
24
|
-
ITelemetryLoggerExt,
|
|
23
|
+
type IFluidErrorBase,
|
|
24
|
+
type ITelemetryLoggerExt,
|
|
25
25
|
loggerToMonitoringContext,
|
|
26
26
|
} from "@fluidframework/telemetry-utils/internal";
|
|
27
|
-
import { Socket } from "socket.io-client";
|
|
27
|
+
import type { Socket } from "socket.io-client";
|
|
28
28
|
import { v4 as uuid } from "uuid";
|
|
29
29
|
|
|
30
|
-
import { IFlushOpsResponse, IGetOpsResponse, IOdspSocketError } from "./contracts.js";
|
|
31
|
-
import { EpochTracker } from "./epochTracker.js";
|
|
30
|
+
import type { IFlushOpsResponse, IGetOpsResponse, IOdspSocketError } from "./contracts.js";
|
|
31
|
+
import type { EpochTracker } from "./epochTracker.js";
|
|
32
32
|
import { errorObjectFromSocketError } from "./odspError.js";
|
|
33
33
|
import { pkgVersion } from "./packageVersion.js";
|
|
34
34
|
import { SocketIOClientStatic } from "./socketModule.js";
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import { TypedEventEmitter, type ILayerCompatDetails } from "@fluid-internal/client-utils";
|
|
7
7
|
import { assert } from "@fluidframework/core-utils/internal";
|
|
8
|
-
import { IClient } from "@fluidframework/driver-definitions";
|
|
9
|
-
import {
|
|
8
|
+
import type { IClient } from "@fluidframework/driver-definitions";
|
|
9
|
+
import type {
|
|
10
10
|
IDocumentDeltaConnection,
|
|
11
11
|
IDocumentDeltaStorageService,
|
|
12
12
|
IDocumentService,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
IResolvedUrl,
|
|
17
17
|
ISequencedDocumentMessage,
|
|
18
18
|
} from "@fluidframework/driver-definitions/internal";
|
|
19
|
-
import {
|
|
19
|
+
import type {
|
|
20
20
|
HostStoragePolicy,
|
|
21
21
|
IEntry,
|
|
22
22
|
IOdspResolvedUrl,
|
|
@@ -24,14 +24,14 @@ import {
|
|
|
24
24
|
TokenFetchOptions,
|
|
25
25
|
} from "@fluidframework/odsp-driver-definitions/internal";
|
|
26
26
|
import {
|
|
27
|
-
ITelemetryLoggerExt,
|
|
28
|
-
MonitoringContext,
|
|
27
|
+
type ITelemetryLoggerExt,
|
|
28
|
+
type MonitoringContext,
|
|
29
29
|
createChildMonitoringContext,
|
|
30
30
|
} from "@fluidframework/telemetry-utils/internal";
|
|
31
31
|
|
|
32
|
-
import { HostStoragePolicyInternal } from "./contracts.js";
|
|
33
|
-
import { EpochTracker } from "./epochTracker.js";
|
|
34
|
-
import { IOdspCache } from "./odspCache.js";
|
|
32
|
+
import type { HostStoragePolicyInternal } from "./contracts.js";
|
|
33
|
+
import type { EpochTracker } from "./epochTracker.js";
|
|
34
|
+
import type { IOdspCache } from "./odspCache.js";
|
|
35
35
|
import type { OdspDelayLoadedDeltaStream } from "./odspDelayLoadedDeltaStream.js";
|
|
36
36
|
import {
|
|
37
37
|
OdspDeltaStorageService,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { IDocumentServiceFactory } from "@fluidframework/driver-definitions/internal";
|
|
7
|
-
import {
|
|
6
|
+
import type { IDocumentServiceFactory } from "@fluidframework/driver-definitions/internal";
|
|
7
|
+
import type {
|
|
8
8
|
HostStoragePolicy,
|
|
9
9
|
IPersistedCache,
|
|
10
10
|
OdspResourceTokenFetchOptions,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
|
|
7
|
-
import { PromiseCache } from "@fluidframework/core-utils/internal";
|
|
8
|
-
import { ISummaryTree } from "@fluidframework/driver-definitions";
|
|
9
|
-
import {
|
|
6
|
+
import type { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
|
|
7
|
+
import type { PromiseCache } from "@fluidframework/core-utils/internal";
|
|
8
|
+
import type { ISummaryTree } from "@fluidframework/driver-definitions";
|
|
9
|
+
import type {
|
|
10
10
|
IDocumentService,
|
|
11
11
|
IDocumentServiceFactory,
|
|
12
12
|
IResolvedUrl,
|
|
@@ -16,34 +16,34 @@ import {
|
|
|
16
16
|
isCombinedAppAndProtocolSummary,
|
|
17
17
|
} from "@fluidframework/driver-utils/internal";
|
|
18
18
|
import {
|
|
19
|
-
HostStoragePolicy,
|
|
20
|
-
IFileEntry,
|
|
21
|
-
IOdspUrlParts,
|
|
22
|
-
IPersistedCache,
|
|
23
|
-
IRelaySessionAwareDriverFactory,
|
|
24
|
-
ISharingLinkKind,
|
|
25
|
-
ISocketStorageDiscovery,
|
|
26
|
-
OdspResourceTokenFetchOptions,
|
|
19
|
+
type HostStoragePolicy,
|
|
20
|
+
type IFileEntry,
|
|
21
|
+
type IOdspUrlParts,
|
|
22
|
+
type IPersistedCache,
|
|
23
|
+
type IRelaySessionAwareDriverFactory,
|
|
24
|
+
type ISharingLinkKind,
|
|
25
|
+
type ISocketStorageDiscovery,
|
|
26
|
+
type OdspResourceTokenFetchOptions,
|
|
27
27
|
SharingLinkRole,
|
|
28
28
|
SharingLinkScope,
|
|
29
|
-
TokenFetchOptions,
|
|
30
|
-
TokenFetcher,
|
|
29
|
+
type TokenFetchOptions,
|
|
30
|
+
type TokenFetcher,
|
|
31
31
|
} from "@fluidframework/odsp-driver-definitions/internal";
|
|
32
32
|
import { PerformanceEvent, createChildLogger } from "@fluidframework/telemetry-utils/internal";
|
|
33
33
|
import { v4 as uuid } from "uuid";
|
|
34
34
|
|
|
35
35
|
import { useCreateNewModule } from "./createFile/index.js";
|
|
36
|
-
import { ICacheAndTracker, createOdspCacheAndTracker } from "./epochTracker.js";
|
|
36
|
+
import { type ICacheAndTracker, createOdspCacheAndTracker } from "./epochTracker.js";
|
|
37
37
|
import {
|
|
38
|
-
INonPersistentCache,
|
|
39
|
-
IPrefetchSnapshotContents,
|
|
38
|
+
type INonPersistentCache,
|
|
39
|
+
type IPrefetchSnapshotContents,
|
|
40
40
|
LocalPersistentCache,
|
|
41
41
|
NonPersistentCache,
|
|
42
42
|
} from "./odspCache.js";
|
|
43
43
|
import { OdspDocumentService } from "./odspDocumentService.js";
|
|
44
44
|
import {
|
|
45
|
-
IExistingFileInfo,
|
|
46
|
-
INewFileInfo,
|
|
45
|
+
type IExistingFileInfo,
|
|
46
|
+
type INewFileInfo,
|
|
47
47
|
createOdspLogger,
|
|
48
48
|
getJoinSessionCacheKey,
|
|
49
49
|
getOdspResolvedUrl,
|
|
@@ -199,6 +199,7 @@ export class OdspDocumentServiceFactoryCore
|
|
|
199
199
|
this.hostPolicy.cacheCreateNewSummary ?? true,
|
|
200
200
|
!!this.hostPolicy.sessionOptions?.forceAccessTokenViaAuthorizationHeader,
|
|
201
201
|
odspResolvedUrl.isClpCompliantApp,
|
|
202
|
+
odspResolvedUrl.fileMetadata?.eTag,
|
|
202
203
|
);
|
|
203
204
|
});
|
|
204
205
|
const docService = this.createDocumentServiceCore(
|
|
@@ -7,26 +7,26 @@ import { performanceNow } from "@fluid-internal/client-utils";
|
|
|
7
7
|
import { LogLevel } from "@fluidframework/core-interfaces";
|
|
8
8
|
import { assert, delay } from "@fluidframework/core-utils/internal";
|
|
9
9
|
import { promiseRaceWithWinner } from "@fluidframework/driver-base/internal";
|
|
10
|
-
import { ISummaryTree } from "@fluidframework/driver-definitions";
|
|
10
|
+
import type { ISummaryTree } from "@fluidframework/driver-definitions";
|
|
11
11
|
import {
|
|
12
12
|
FetchSource,
|
|
13
|
-
ISnapshot,
|
|
14
|
-
ISnapshotFetchOptions,
|
|
15
|
-
ISummaryContext,
|
|
16
|
-
ICreateBlobResponse,
|
|
17
|
-
IVersion,
|
|
18
|
-
ISnapshotTree,
|
|
13
|
+
type ISnapshot,
|
|
14
|
+
type ISnapshotFetchOptions,
|
|
15
|
+
type ISummaryContext,
|
|
16
|
+
type ICreateBlobResponse,
|
|
17
|
+
type IVersion,
|
|
18
|
+
type ISnapshotTree,
|
|
19
19
|
} from "@fluidframework/driver-definitions/internal";
|
|
20
20
|
import { NonRetryableError, RateLimiter } from "@fluidframework/driver-utils/internal";
|
|
21
21
|
import {
|
|
22
|
-
IOdspResolvedUrl,
|
|
23
|
-
ISnapshotOptions,
|
|
24
|
-
InstrumentedStorageTokenFetcher,
|
|
22
|
+
type IOdspResolvedUrl,
|
|
23
|
+
type ISnapshotOptions,
|
|
24
|
+
type InstrumentedStorageTokenFetcher,
|
|
25
25
|
OdspErrorTypes,
|
|
26
26
|
getKeyForCacheEntry,
|
|
27
27
|
} from "@fluidframework/odsp-driver-definitions/internal";
|
|
28
28
|
import {
|
|
29
|
-
ITelemetryLoggerExt,
|
|
29
|
+
type ITelemetryLoggerExt,
|
|
30
30
|
PerformanceEvent,
|
|
31
31
|
generateStack,
|
|
32
32
|
loggerToMonitoringContext,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
type IConfigProvider,
|
|
36
36
|
} from "@fluidframework/telemetry-utils/internal";
|
|
37
37
|
|
|
38
|
-
import {
|
|
38
|
+
import type {
|
|
39
39
|
HostStoragePolicyInternal,
|
|
40
40
|
IDocumentStorageGetVersionsResponse,
|
|
41
41
|
// eslint-disable-next-line import/no-deprecated
|
|
@@ -44,22 +44,22 @@ import {
|
|
|
44
44
|
IVersionedValueWithEpoch,
|
|
45
45
|
} from "./contracts.js";
|
|
46
46
|
import { useCreateNewModule } from "./createFile/index.js";
|
|
47
|
-
import { EpochTracker } from "./epochTracker.js";
|
|
47
|
+
import type { EpochTracker } from "./epochTracker.js";
|
|
48
48
|
import {
|
|
49
|
-
ISnapshotRequestAndResponseOptions,
|
|
50
|
-
SnapshotFormatSupportType,
|
|
49
|
+
type ISnapshotRequestAndResponseOptions,
|
|
50
|
+
type SnapshotFormatSupportType,
|
|
51
51
|
downloadSnapshot,
|
|
52
52
|
getTreeStats,
|
|
53
53
|
fetchSnapshot,
|
|
54
54
|
fetchSnapshotWithRedeem,
|
|
55
55
|
} from "./fetchSnapshot.js";
|
|
56
56
|
import { getHeadersWithAuth } from "./getUrlAndHeadersWithAuth.js";
|
|
57
|
-
import { IOdspCache, IPrefetchSnapshotContents } from "./odspCache.js";
|
|
58
|
-
import { FlushResult } from "./odspDocumentDeltaConnection.js";
|
|
57
|
+
import type { IOdspCache, IPrefetchSnapshotContents } from "./odspCache.js";
|
|
58
|
+
import type { FlushResult } from "./odspDocumentDeltaConnection.js";
|
|
59
59
|
import { OdspDocumentStorageServiceBase } from "./odspDocumentStorageServiceBase.js";
|
|
60
60
|
import type { OdspSummaryUploadManager } from "./odspSummaryUploadManager.js";
|
|
61
61
|
import {
|
|
62
|
-
IOdspResponse,
|
|
62
|
+
type IOdspResponse,
|
|
63
63
|
createCacheSnapshotKey,
|
|
64
64
|
getWithRetryForTokenRefresh,
|
|
65
65
|
isInstanceOfISnapshot,
|