@fluidframework/odsp-driver 2.0.0-internal.6.4.0 → 2.0.0-internal.7.1.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.
Files changed (102) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/api-extractor.json +12 -1
  3. package/api-report/odsp-driver.api.md +197 -0
  4. package/dist/ReadBufferUtils.js +3 -3
  5. package/dist/ReadBufferUtils.js.map +1 -1
  6. package/dist/contracts.d.ts +3 -3
  7. package/dist/contracts.d.ts.map +1 -1
  8. package/dist/contractsPublic.js +2 -2
  9. package/dist/contractsPublic.js.map +1 -1
  10. package/dist/epochTracker.d.ts +2 -2
  11. package/dist/epochTracker.d.ts.map +1 -1
  12. package/dist/fetch.d.ts +1 -1
  13. package/dist/fetch.d.ts.map +1 -1
  14. package/dist/fetchSnapshot.js +1 -1
  15. package/dist/fetchSnapshot.js.map +1 -1
  16. package/dist/odsp-driver-alpha.d.ts +484 -0
  17. package/dist/odsp-driver-beta.d.ts +484 -0
  18. package/dist/odsp-driver-public.d.ts +484 -0
  19. package/dist/odsp-driver.d.ts +484 -0
  20. package/dist/odspDocumentDeltaConnection.d.ts +1 -1
  21. package/dist/odspDocumentDeltaConnection.d.ts.map +1 -1
  22. package/dist/odspDocumentDeltaConnection.js +72 -65
  23. package/dist/odspDocumentDeltaConnection.js.map +1 -1
  24. package/dist/odspDocumentService.js +23 -19
  25. package/dist/odspDocumentService.js.map +1 -1
  26. package/dist/odspDocumentServiceFactoryCore.js +31 -27
  27. package/dist/odspDocumentServiceFactoryCore.js.map +1 -1
  28. package/dist/odspDocumentStorageManager.js +5 -1
  29. package/dist/odspDocumentStorageManager.js.map +1 -1
  30. package/dist/odspDocumentStorageServiceBase.d.ts.map +1 -1
  31. package/dist/odspDocumentStorageServiceBase.js +0 -11
  32. package/dist/odspDocumentStorageServiceBase.js.map +1 -1
  33. package/dist/odspDriverUrlResolver.d.ts.map +1 -1
  34. package/dist/odspDriverUrlResolver.js +1 -2
  35. package/dist/odspDriverUrlResolver.js.map +1 -1
  36. package/dist/odspSummaryUploadManager.js +5 -1
  37. package/dist/odspSummaryUploadManager.js.map +1 -1
  38. package/dist/odspUtils.d.ts +1 -1
  39. package/dist/odspUtils.d.ts.map +1 -1
  40. package/dist/opsCaching.d.ts +1 -1
  41. package/dist/opsCaching.d.ts.map +1 -1
  42. package/dist/opsCaching.js +13 -1
  43. package/dist/opsCaching.js.map +1 -1
  44. package/dist/packageVersion.d.ts +1 -1
  45. package/dist/packageVersion.js +1 -1
  46. package/dist/packageVersion.js.map +1 -1
  47. package/dist/prefetchLatestSnapshot.d.ts +2 -0
  48. package/dist/prefetchLatestSnapshot.d.ts.map +1 -1
  49. package/dist/prefetchLatestSnapshot.js +2 -0
  50. package/dist/prefetchLatestSnapshot.js.map +1 -1
  51. package/dist/tsdoc-metadata.json +1 -1
  52. package/dist/zipItDataRepresentationUtils.d.ts +2 -2
  53. package/dist/zipItDataRepresentationUtils.d.ts.map +1 -1
  54. package/dist/zipItDataRepresentationUtils.js +6 -6
  55. package/dist/zipItDataRepresentationUtils.js.map +1 -1
  56. package/lib/ReadBufferUtils.js +3 -3
  57. package/lib/ReadBufferUtils.js.map +1 -1
  58. package/lib/contracts.d.ts +3 -3
  59. package/lib/contracts.d.ts.map +1 -1
  60. package/lib/epochTracker.d.ts +2 -2
  61. package/lib/epochTracker.d.ts.map +1 -1
  62. package/lib/fetch.d.ts +1 -1
  63. package/lib/fetch.d.ts.map +1 -1
  64. package/lib/odspDocumentDeltaConnection.d.ts +1 -1
  65. package/lib/odspDocumentDeltaConnection.d.ts.map +1 -1
  66. package/lib/odspDocumentDeltaConnection.js +72 -65
  67. package/lib/odspDocumentDeltaConnection.js.map +1 -1
  68. package/lib/odspDocumentService.js +18 -18
  69. package/lib/odspDocumentService.js.map +1 -1
  70. package/lib/odspDocumentServiceFactoryCore.js +26 -26
  71. package/lib/odspDocumentServiceFactoryCore.js.map +1 -1
  72. package/lib/odspDocumentStorageServiceBase.d.ts.map +1 -1
  73. package/lib/odspDocumentStorageServiceBase.js +0 -11
  74. package/lib/odspDocumentStorageServiceBase.js.map +1 -1
  75. package/lib/odspDriverUrlResolver.d.ts.map +1 -1
  76. package/lib/odspDriverUrlResolver.js +1 -2
  77. package/lib/odspDriverUrlResolver.js.map +1 -1
  78. package/lib/odspUtils.d.ts +1 -1
  79. package/lib/odspUtils.d.ts.map +1 -1
  80. package/lib/opsCaching.d.ts +1 -1
  81. package/lib/opsCaching.d.ts.map +1 -1
  82. package/lib/opsCaching.js +13 -1
  83. package/lib/opsCaching.js.map +1 -1
  84. package/lib/packageVersion.d.ts +1 -1
  85. package/lib/packageVersion.js +1 -1
  86. package/lib/packageVersion.js.map +1 -1
  87. package/lib/prefetchLatestSnapshot.d.ts +2 -0
  88. package/lib/prefetchLatestSnapshot.d.ts.map +1 -1
  89. package/lib/prefetchLatestSnapshot.js +2 -0
  90. package/lib/prefetchLatestSnapshot.js.map +1 -1
  91. package/lib/zipItDataRepresentationUtils.d.ts +2 -2
  92. package/lib/zipItDataRepresentationUtils.d.ts.map +1 -1
  93. package/lib/zipItDataRepresentationUtils.js +3 -3
  94. package/lib/zipItDataRepresentationUtils.js.map +1 -1
  95. package/package.json +24 -24
  96. package/src/odspDocumentDeltaConnection.ts +25 -8
  97. package/src/odspDocumentStorageServiceBase.ts +0 -12
  98. package/src/odspDriverUrlResolver.ts +1 -2
  99. package/src/opsCaching.ts +15 -1
  100. package/src/packageVersion.ts +1 -1
  101. package/src/prefetchLatestSnapshot.ts +2 -0
  102. package/src/zipItDataRepresentationUtils.ts +5 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,57 @@
1
1
  # @fluidframework/odsp-driver
2
2
 
3
+ ## 2.0.0-internal.7.1.0
4
+
5
+ Dependency updates only.
6
+
7
+ ## 2.0.0-internal.7.0.0
8
+
9
+ ### Major Changes
10
+
11
+ - Dependencies on @fluidframework/protocol-definitions package updated to 3.0.0 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
12
+
13
+ This included the following changes from the protocol-definitions release:
14
+
15
+ - Updating signal interfaces for some planned improvements. The intention is split the interface between signals
16
+ submitted by clients to the server and the resulting signals sent from the server to clients.
17
+ - A new optional type member is available on the ISignalMessage interface and a new ISentSignalMessage interface has
18
+ been added, which will be the typing for signals sent from the client to the server. Both extend a new
19
+ ISignalMessageBase interface that contains common members.
20
+ - The @fluidframework/common-definitions package dependency has been updated to version 1.0.0.
21
+
22
+ - routerlicious-driver: remove dead blob aggregation concepts and code [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
23
+
24
+ Dead concepts blob aggregation like `aggregateBlobsSmallerThanBytes` and `minBlobSize` have been removed.
25
+
26
+ - Server upgrade: dependencies on Fluid server packages updated to 2.0.1 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
27
+
28
+ Dependencies on the following Fluid server package have been updated to version 2.0.1:
29
+
30
+ - @fluidframework/gitresources: 2.0.1
31
+ - @fluidframework/server-kafka-orderer: 2.0.1
32
+ - @fluidframework/server-lambdas: 2.0.1
33
+ - @fluidframework/server-lambdas-driver: 2.0.1
34
+ - @fluidframework/server-local-server: 2.0.1
35
+ - @fluidframework/server-memory-orderer: 2.0.1
36
+ - @fluidframework/protocol-base: 2.0.1
37
+ - @fluidframework/server-routerlicious: 2.0.1
38
+ - @fluidframework/server-routerlicious-base: 2.0.1
39
+ - @fluidframework/server-services: 2.0.1
40
+ - @fluidframework/server-services-client: 2.0.1
41
+ - @fluidframework/server-services-core: 2.0.1
42
+ - @fluidframework/server-services-ordering-kafkanode: 2.0.1
43
+ - @fluidframework/server-services-ordering-rdkafka: 2.0.1
44
+ - @fluidframework/server-services-ordering-zookeeper: 2.0.1
45
+ - @fluidframework/server-services-shared: 2.0.1
46
+ - @fluidframework/server-services-telemetry: 2.0.1
47
+ - @fluidframework/server-services-utils: 2.0.1
48
+ - @fluidframework/server-test-utils: 2.0.1
49
+ - tinylicious: 2.0.1
50
+
51
+ - Minimum TypeScript version now 5.1.6 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
52
+
53
+ The minimum supported TypeScript version for Fluid 2.0 clients is now 5.1.6.
54
+
3
55
  ## 2.0.0-internal.6.4.0
4
56
 
5
57
  ### Minor Changes
@@ -1,4 +1,15 @@
1
1
  {
2
2
  "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
- "extends": "@fluidframework/build-common/api-extractor-common-report.json"
3
+ "extends": "@fluidframework/build-common/api-extractor-base.json",
4
+ "messages": {
5
+ // TODO: Fix violations and remove this rule override
6
+ "extractorMessageReporting": {
7
+ "ae-missing-release-tag": {
8
+ "logLevel": "none"
9
+ },
10
+ "ae-forgotten-export": {
11
+ "logLevel": "none"
12
+ }
13
+ }
14
+ }
4
15
  }
@@ -0,0 +1,197 @@
1
+ ## API Report File for "@fluidframework/odsp-driver"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import { DriverPreCheckInfo } from '@fluidframework/driver-definitions';
8
+ import { HostStoragePolicy } from '@fluidframework/odsp-driver-definitions';
9
+ import { IContainerPackageInfo } from '@fluidframework/driver-definitions';
10
+ import { IdentityType } from '@fluidframework/odsp-driver-definitions';
11
+ import { IDocumentService } from '@fluidframework/driver-definitions';
12
+ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
13
+ import { IEntry } from '@fluidframework/odsp-driver-definitions';
14
+ import { IFileEntry } from '@fluidframework/odsp-driver-definitions';
15
+ import { IOdspResolvedUrl } from '@fluidframework/odsp-driver-definitions';
16
+ import { IOdspUrlParts } from '@fluidframework/odsp-driver-definitions';
17
+ import { IPersistedCache } from '@fluidframework/odsp-driver-definitions';
18
+ import { IRelaySessionAwareDriverFactory } from '@fluidframework/odsp-driver-definitions';
19
+ import { IRequest } from '@fluidframework/core-interfaces';
20
+ import { IResolvedUrl } from '@fluidframework/driver-definitions';
21
+ import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
22
+ import { ISharingLinkKind } from '@fluidframework/odsp-driver-definitions';
23
+ import { ISnapshotOptions } from '@fluidframework/odsp-driver-definitions';
24
+ import { ISnapshotTree } from '@fluidframework/protocol-definitions';
25
+ import { ISocketStorageDiscovery } from '@fluidframework/odsp-driver-definitions';
26
+ import { ISummaryTree } from '@fluidframework/protocol-definitions';
27
+ import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
28
+ import { ITelemetryLogger } from '@fluidframework/core-interfaces';
29
+ import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
30
+ import { ITelemetryProperties } from '@fluidframework/core-interfaces';
31
+ import { IUrlResolver } from '@fluidframework/driver-definitions';
32
+ import { OdspResourceTokenFetchOptions } from '@fluidframework/odsp-driver-definitions';
33
+ import { PromiseCache } from '@fluidframework/core-utils';
34
+ import { RateLimiter } from '@fluidframework/driver-utils';
35
+ import { ShareLinkTypes } from '@fluidframework/odsp-driver-definitions';
36
+ import { TokenFetcher } from '@fluidframework/odsp-driver-definitions';
37
+
38
+ // @public
39
+ export function checkUrl(documentUrl: URL): DriverPreCheckInfo | undefined;
40
+
41
+ // @public (undocumented)
42
+ export enum ClpCompliantAppHeader {
43
+ // (undocumented)
44
+ isClpCompliantApp = "X-CLP-Compliant-App"
45
+ }
46
+
47
+ // @public (undocumented)
48
+ export function createLocalOdspDocumentServiceFactory(localSnapshot: Uint8Array | string): IDocumentServiceFactory;
49
+
50
+ // @public
51
+ export function createOdspCreateContainerRequest(siteUrl: string, driveId: string, filePath: string, fileName: string, createShareLinkType?: ShareLinkTypes | ISharingLinkKind): IRequest;
52
+
53
+ // @public
54
+ export function createOdspUrl(l: OdspFluidDataStoreLocator): string;
55
+
56
+ // @public
57
+ export function encodeOdspFluidDataStoreLocator(locator: OdspFluidDataStoreLocator): string;
58
+
59
+ // @public
60
+ export function getApiRoot(origin: string): string;
61
+
62
+ // @public (undocumented)
63
+ export function getHashedDocumentId(driveId: string, itemId: string): Promise<string>;
64
+
65
+ // @public
66
+ export function getLocatorFromOdspUrl(url: URL, requireFluidSignature?: boolean): OdspFluidDataStoreLocator | undefined;
67
+
68
+ // @public
69
+ export function getOdspUrlParts(url: URL): Promise<IOdspUrlParts | undefined>;
70
+
71
+ // @public (undocumented)
72
+ export interface IClpCompliantAppHeader {
73
+ // (undocumented)
74
+ [ClpCompliantAppHeader.isClpCompliantApp]: boolean;
75
+ }
76
+
77
+ // @public (undocumented)
78
+ export interface ISharingLinkHeader {
79
+ // (undocumented)
80
+ [SharingLinkHeader.isSharingLinkToRedeem]: boolean;
81
+ }
82
+
83
+ // @public (undocumented)
84
+ export interface ISnapshotContents {
85
+ // (undocumented)
86
+ blobs: Map<string, ArrayBuffer>;
87
+ latestSequenceNumber: number | undefined;
88
+ // (undocumented)
89
+ ops: ISequencedDocumentMessage[];
90
+ sequenceNumber: number | undefined;
91
+ // (undocumented)
92
+ snapshotTree: ISnapshotTree;
93
+ }
94
+
95
+ // @public
96
+ export function isOdcOrigin(origin: string): boolean;
97
+
98
+ // @public
99
+ export function isOdcUrl(url: string | URL): boolean;
100
+
101
+ // @public
102
+ export function isSpoUrl(url: string): boolean;
103
+
104
+ // @public (undocumented)
105
+ export const locatorQueryParamName = "nav";
106
+
107
+ // @public (undocumented)
108
+ export const OdcApiSiteOrigin = "https://my.microsoftpersonalcontent.com";
109
+
110
+ // @public (undocumented)
111
+ export const OdcFileSiteOrigin = "https://1drv.ms";
112
+
113
+ // @public
114
+ export class OdspDocumentServiceFactory extends OdspDocumentServiceFactoryCore {
115
+ constructor(getStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>, getWebsocketToken: TokenFetcher<OdspResourceTokenFetchOptions> | undefined, persistedCache?: IPersistedCache, hostPolicy?: HostStoragePolicy);
116
+ }
117
+
118
+ // @public
119
+ export class OdspDocumentServiceFactoryCore implements IDocumentServiceFactory, IRelaySessionAwareDriverFactory {
120
+ constructor(getStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>, getWebsocketToken: TokenFetcher<OdspResourceTokenFetchOptions> | undefined, persistedCache?: IPersistedCache, hostPolicy?: HostStoragePolicy);
121
+ // (undocumented)
122
+ createContainer(createNewSummary: ISummaryTree | undefined, createNewResolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
123
+ // (undocumented)
124
+ createDocumentService(resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
125
+ // (undocumented)
126
+ protected createDocumentServiceCore(resolvedUrl: IResolvedUrl, odspLogger: ITelemetryLogger, cacheAndTrackerArg?: ICacheAndTracker, clientIsSummarizer?: boolean): Promise<IDocumentService>;
127
+ getRelayServiceSessionInfo(resolvedUrl: IResolvedUrl): Promise<ISocketStorageDiscovery | undefined>;
128
+ // (undocumented)
129
+ get IRelaySessionAwareDriverFactory(): this;
130
+ // (undocumented)
131
+ protected persistedCache: IPersistedCache;
132
+ // (undocumented)
133
+ get snapshotPrefetchResultCache(): PromiseCache<string, IPrefetchSnapshotContents>;
134
+ }
135
+
136
+ // @public @deprecated (undocumented)
137
+ export class OdspDocumentServiceFactoryWithCodeSplit extends OdspDocumentServiceFactoryCore implements IDocumentServiceFactory {
138
+ constructor(getStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>, getWebsocketToken: TokenFetcher<OdspResourceTokenFetchOptions> | undefined, persistedCache?: IPersistedCache, hostPolicy?: HostStoragePolicy);
139
+ }
140
+
141
+ // @public
142
+ export class OdspDriverUrlResolver implements IUrlResolver {
143
+ constructor();
144
+ getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string, packageInfoSource?: IContainerPackageInfo): Promise<string>;
145
+ // (undocumented)
146
+ resolve(request: IRequest): Promise<IOdspResolvedUrl>;
147
+ }
148
+
149
+ // @public
150
+ export class OdspDriverUrlResolverForShareLink implements IUrlResolver {
151
+ constructor(shareLinkFetcherProps?: ShareLinkFetcherProps | undefined, logger?: ITelemetryBaseLogger, appName?: string | undefined, getContext?: ((resolvedUrl: IOdspResolvedUrl, dataStorePath: string) => Promise<string | undefined>) | undefined);
152
+ appendDataStorePath(requestUrl: URL, pathToAppend: string): string | undefined;
153
+ static createDocumentUrl(baseUrl: string, driverInfo: OdspFluidDataStoreLocator): string;
154
+ // @deprecated
155
+ static createNavParam(locator: OdspFluidDataStoreLocator): string;
156
+ getAbsoluteUrl(resolvedUrl: IResolvedUrl, dataStorePath: string, packageInfoSource?: IContainerPackageInfo): Promise<string>;
157
+ resolve(request: IRequest): Promise<IOdspResolvedUrl>;
158
+ }
159
+
160
+ // @public (undocumented)
161
+ export interface OdspFluidDataStoreLocator extends IOdspUrlParts {
162
+ // (undocumented)
163
+ appName?: string;
164
+ // (undocumented)
165
+ containerPackageName?: string;
166
+ // (undocumented)
167
+ context?: string;
168
+ // (undocumented)
169
+ dataStorePath: string;
170
+ // (undocumented)
171
+ fileVersion?: string;
172
+ }
173
+
174
+ // @public
175
+ export function parseCompactSnapshotResponse(buffer: Uint8Array, logger: ITelemetryLoggerExt): ISnapshotContentsWithProps;
176
+
177
+ // @public
178
+ export function prefetchLatestSnapshot(resolvedUrl: IResolvedUrl, getStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>, persistedCache: IPersistedCache, forceAccessTokenViaAuthorizationHeader: boolean, logger: ITelemetryBaseLogger, hostSnapshotFetchOptions: ISnapshotOptions | undefined, enableRedeemFallback?: boolean, fetchBinarySnapshotFormat?: boolean, snapshotFormatFetchType?: SnapshotFormatSupportType, odspDocumentServiceFactory?: OdspDocumentServiceFactory): Promise<boolean>;
179
+
180
+ // @public
181
+ export interface ShareLinkFetcherProps {
182
+ identityType: IdentityType;
183
+ tokenFetcher: TokenFetcher<OdspResourceTokenFetchOptions>;
184
+ }
185
+
186
+ // @public (undocumented)
187
+ export enum SharingLinkHeader {
188
+ // (undocumented)
189
+ isSharingLinkToRedeem = "isSharingLinkToRedeem"
190
+ }
191
+
192
+ // @public
193
+ export function storeLocatorInOdspUrl(url: URL, locator: OdspFluidDataStoreLocator): void;
194
+
195
+ // (No @packageDocumentation comment for this package)
196
+
197
+ ```
@@ -11,6 +11,9 @@ const core_utils_1 = require("@fluidframework/core-utils");
11
11
  * Used by tree code to reconstruct a tree from binary representation.
12
12
  */
13
13
  class ReadBuffer {
14
+ get buffer() {
15
+ return this.data;
16
+ }
14
17
  constructor(data) {
15
18
  this.data = data;
16
19
  this.index = 0;
@@ -19,9 +22,6 @@ class ReadBuffer {
19
22
  // catastrophic result and will be really hard to investigate.
20
23
  Object.freeze(data.buffer);
21
24
  }
22
- get buffer() {
23
- return this.data;
24
- }
25
25
  get eof() {
26
26
  return this.index === this.data.length;
27
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ReadBufferUtils.js","sourceRoot":"","sources":["../src/ReadBufferUtils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,2DAAoD;AAEpD;;;GAGG;AACH,MAAa,UAAU;IAOtB,YAA+B,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;QANrC,UAAK,GAAG,CAAC,CAAC;QAOnB,4DAA4D;QAC5D,+DAA+D;QAC/D,8DAA8D;QAC9D,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC;IATD,IAAW,MAAM;QAChB,OAAO,IAAI,CAAC,IAAI,CAAC;IAClB,CAAC;IASD,IAAW,GAAG;QACb,OAAO,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;IACxC,CAAC;IACD,IAAW,GAAG;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACnB,CAAC;IACD,IAAW,MAAM;QAChB,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;IACzB,CAAC;IAEM,KAAK,CAAC,KAAa,EAAE,GAAW;QACtC,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpC,CAAC;IAEM,KAAK;QACX,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;IAChB,CAAC;IAEM,IAAI,CAAC,SAAS,GAAG,CAAC;QACxB,IAAI,GAAG,GAAG,CAAC,CAAC;QACZ,IAAI,UAAU,GAAG,CAAC,CAAC;QACnB,IAAI,MAAM,GAAG,SAAS,CAAC;QACvB,OAAO,MAAM,GAAG,CAAC,EAAE;YAClB,IAAA,mBAAM,EAAC,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,gCAAgC,CAAC,CAAC;YAC1D,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC;YAC1C,IAAI,CAAC,KAAK,EAAE,CAAC;YACb,UAAU,IAAI,GAAG,CAAC;YAClB,MAAM,EAAE,CAAC;SACT;QACD,OAAO,GAAG,CAAC;IACZ,CAAC;IAEM,IAAI,CAAC,MAAc;QACzB,IAAA,mBAAM,EAAC,MAAM,IAAI,CAAC,EAAE,KAAK,CAAC,sCAAsC,CAAC,CAAC;QAClE,IAAI,CAAC,KAAK,IAAI,MAAM,CAAC;QACrB,IAAA,mBAAM,EAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,kCAAkC,CAAC,CAAC;IAClF,CAAC;CACD;AAnDD,gCAmDC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { assert } from \"@fluidframework/core-utils\";\n\n/**\n * Buffer class, used to sequentially read data.\n * Used by tree code to reconstruct a tree from binary representation.\n */\nexport class ReadBuffer {\n\tprotected index = 0;\n\n\tpublic get buffer() {\n\t\treturn this.data;\n\t}\n\n\tconstructor(protected readonly data: Uint8Array) {\n\t\t// BlobShallowCopy will return to users parts of this array.\n\t\t// We need to ensure that nobody can change it, as it will have\n\t\t// catastrophic result and will be really hard to investigate.\n\t\tObject.freeze(data.buffer);\n\t}\n\n\tpublic get eof() {\n\t\treturn this.index === this.data.length;\n\t}\n\tpublic get pos() {\n\t\treturn this.index;\n\t}\n\tpublic get length() {\n\t\treturn this.data.length;\n\t}\n\n\tpublic slice(start: number, end: number) {\n\t\treturn this.data.slice(start, end);\n\t}\n\n\tpublic reset() {\n\t\tthis.index = 0;\n\t}\n\n\tpublic read(lengthArg = 1): number {\n\t\tlet res = 0;\n\t\tlet multiplier = 1;\n\t\tlet length = lengthArg;\n\t\twhile (length > 0) {\n\t\t\tassert(!this.eof, 0x223 /* \"unexpected end of buffer\" */);\n\t\t\tres += this.data[this.index] * multiplier;\n\t\t\tthis.index++;\n\t\t\tmultiplier *= 256;\n\t\t\tlength--;\n\t\t}\n\t\treturn res;\n\t}\n\n\tpublic skip(length: number) {\n\t\tassert(length >= 0, 0x224 /* \"Skip length should be positive\" */);\n\t\tthis.index += length;\n\t\tassert(this.index <= this.data.length, 0x3dc /* skipping past size of buffer */);\n\t}\n}\n"]}
1
+ {"version":3,"file":"ReadBufferUtils.js","sourceRoot":"","sources":["../src/ReadBufferUtils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,2DAAoD;AAEpD;;;GAGG;AACH,MAAa,UAAU;IAGtB,IAAW,MAAM;QAChB,OAAO,IAAI,CAAC,IAAI,CAAC;IAClB,CAAC;IAED,YAA+B,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;QANrC,UAAK,GAAG,CAAC,CAAC;QAOnB,4DAA4D;QAC5D,+DAA+D;QAC/D,8DAA8D;QAC9D,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC;IAED,IAAW,GAAG;QACb,OAAO,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;IACxC,CAAC;IACD,IAAW,GAAG;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACnB,CAAC;IACD,IAAW,MAAM;QAChB,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;IACzB,CAAC;IAEM,KAAK,CAAC,KAAa,EAAE,GAAW;QACtC,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpC,CAAC;IAEM,KAAK;QACX,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;IAChB,CAAC;IAEM,IAAI,CAAC,SAAS,GAAG,CAAC;QACxB,IAAI,GAAG,GAAG,CAAC,CAAC;QACZ,IAAI,UAAU,GAAG,CAAC,CAAC;QACnB,IAAI,MAAM,GAAG,SAAS,CAAC;QACvB,OAAO,MAAM,GAAG,CAAC,EAAE;YAClB,IAAA,mBAAM,EAAC,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,gCAAgC,CAAC,CAAC;YAC1D,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC;YAC1C,IAAI,CAAC,KAAK,EAAE,CAAC;YACb,UAAU,IAAI,GAAG,CAAC;YAClB,MAAM,EAAE,CAAC;SACT;QACD,OAAO,GAAG,CAAC;IACZ,CAAC;IAEM,IAAI,CAAC,MAAc;QACzB,IAAA,mBAAM,EAAC,MAAM,IAAI,CAAC,EAAE,KAAK,CAAC,sCAAsC,CAAC,CAAC;QAClE,IAAI,CAAC,KAAK,IAAI,MAAM,CAAC;QACrB,IAAA,mBAAM,EAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,kCAAkC,CAAC,CAAC;IAClF,CAAC;CACD;AAnDD,gCAmDC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { assert } from \"@fluidframework/core-utils\";\n\n/**\n * Buffer class, used to sequentially read data.\n * Used by tree code to reconstruct a tree from binary representation.\n */\nexport class ReadBuffer {\n\tprotected index = 0;\n\n\tpublic get buffer() {\n\t\treturn this.data;\n\t}\n\n\tconstructor(protected readonly data: Uint8Array) {\n\t\t// BlobShallowCopy will return to users parts of this array.\n\t\t// We need to ensure that nobody can change it, as it will have\n\t\t// catastrophic result and will be really hard to investigate.\n\t\tObject.freeze(data.buffer);\n\t}\n\n\tpublic get eof() {\n\t\treturn this.index === this.data.length;\n\t}\n\tpublic get pos() {\n\t\treturn this.index;\n\t}\n\tpublic get length() {\n\t\treturn this.data.length;\n\t}\n\n\tpublic slice(start: number, end: number) {\n\t\treturn this.data.slice(start, end);\n\t}\n\n\tpublic reset() {\n\t\tthis.index = 0;\n\t}\n\n\tpublic read(lengthArg = 1): number {\n\t\tlet res = 0;\n\t\tlet multiplier = 1;\n\t\tlet length = lengthArg;\n\t\twhile (length > 0) {\n\t\t\tassert(!this.eof, 0x223 /* \"unexpected end of buffer\" */);\n\t\t\tres += this.data[this.index] * multiplier;\n\t\t\tthis.index++;\n\t\t\tmultiplier *= 256;\n\t\t\tlength--;\n\t\t}\n\t\treturn res;\n\t}\n\n\tpublic skip(length: number) {\n\t\tassert(length >= 0, 0x224 /* \"Skip length should be positive\" */);\n\t\tthis.index += length;\n\t\tassert(this.index <= this.data.length, 0x3dc /* skipping past size of buffer */);\n\t}\n}\n"]}
@@ -61,7 +61,7 @@ export interface IOdspSummaryPayload {
61
61
  export interface IWriteSummaryResponse {
62
62
  id: string;
63
63
  }
64
- export declare type OdspSummaryTreeEntry = IOdspSummaryTreeValueEntry | IOdspSummaryTreeHandleEntry;
64
+ export type OdspSummaryTreeEntry = IOdspSummaryTreeValueEntry | IOdspSummaryTreeHandleEntry;
65
65
  export interface IOdspSummaryTreeBaseEntry {
66
66
  path: string;
67
67
  type: "blob" | "tree" | "commit";
@@ -73,7 +73,7 @@ export interface IOdspSummaryTreeValueEntry extends IOdspSummaryTreeBaseEntry {
73
73
  export interface IOdspSummaryTreeHandleEntry extends IOdspSummaryTreeBaseEntry {
74
74
  id: string;
75
75
  }
76
- export declare type OdspSummaryTreeValue = IOdspSummaryTree | IOdspSummaryBlob;
76
+ export type OdspSummaryTreeValue = IOdspSummaryTree | IOdspSummaryBlob;
77
77
  export interface IOdspSummaryTree {
78
78
  type: "tree";
79
79
  entries?: OdspSummaryTreeEntry[];
@@ -103,7 +103,7 @@ export interface IOdspSnapshotTreeEntryBlob {
103
103
  path: string;
104
104
  type: "blob";
105
105
  }
106
- export declare type IOdspSnapshotTreeEntry = IOdspSnapshotTreeEntryTree | IOdspSnapshotTreeEntryCommit | IOdspSnapshotTreeEntryBlob;
106
+ export type IOdspSnapshotTreeEntry = IOdspSnapshotTreeEntryTree | IOdspSnapshotTreeEntryCommit | IOdspSnapshotTreeEntryBlob;
107
107
  export interface IOdspSnapshotCommit {
108
108
  entries: IOdspSnapshotTreeEntry[];
109
109
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../src/contracts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,GAAG,MAAM,sCAAsC,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;CACZ;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACxC,KAAK,EAAE,GAAG,CAAC,yBAAyB,EAAE,GAAG,wBAAwB,EAAE,CAAC;CACpE;AAED,MAAM,WAAW,wB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AEzB,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wBAAwB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,MAAM,WAAW,wBAAwB;IACxC,KAAK,EAAE,GAAG,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IAEnB,OAAO,EAAE,CAAC,CAAC;CACX;AAED,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C,MAAM,WAAW,eAAe;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,GAAG,CAAC,yBAAyB,EAAE,CAAC;CAC3C;AAED,MAAM,WAAW,iBAAiB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,sBAAsB;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2BAA2B,CAAC,EAAE,MAAM,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC9D,cAAc,EAAE,MAAM,CAAC;CACvB"}
@@ -10,11 +10,11 @@ var SharingLinkHeader;
10
10
  // Can be used in request made to resolver, to tell the resolver that the passed in URL is a sharing link
11
11
  // which can be redeemed at server to get permissions.
12
12
  SharingLinkHeader["isSharingLinkToRedeem"] = "isSharingLinkToRedeem";
13
- })(SharingLinkHeader = exports.SharingLinkHeader || (exports.SharingLinkHeader = {}));
13
+ })(SharingLinkHeader || (exports.SharingLinkHeader = SharingLinkHeader = {}));
14
14
  var ClpCompliantAppHeader;
15
15
  (function (ClpCompliantAppHeader) {
16
16
  // Can be used in request made to resolver, to tell the resolver that the host app is CLP compliant.
17
17
  // Odsp will not return Classified, labeled, or protected documents if the host app cannot support them.
18
18
  ClpCompliantAppHeader["isClpCompliantApp"] = "X-CLP-Compliant-App";
19
- })(ClpCompliantAppHeader = exports.ClpCompliantAppHeader || (exports.ClpCompliantAppHeader = {}));
19
+ })(ClpCompliantAppHeader || (exports.ClpCompliantAppHeader = ClpCompliantAppHeader = {}));
20
20
  //# sourceMappingURL=contractsPublic.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contractsPublic.js","sourceRoot":"","sources":["../src/contractsPublic.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAYH,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC5B,yGAAyG;IACzG,sDAAsD;IACtD,oEAA+C,CAAA;AAChD,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B;AAMD,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAChC,oGAAoG;IACpG,wGAAwG;IACxG,kEAAyC,CAAA;AAC1C,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IOdspUrlParts } from \"@fluidframework/odsp-driver-definitions\";\n\nexport interface OdspFluidDataStoreLocator extends IOdspUrlParts {\n\tdataStorePath: string;\n\tappName?: string;\n\tcontainerPackageName?: string;\n\tfileVersion?: string;\n\tcontext?: string;\n}\n\nexport enum SharingLinkHeader {\n\t// Can be used in request made to resolver, to tell the resolver that the passed in URL is a sharing link\n\t// which can be redeemed at server to get permissions.\n\tisSharingLinkToRedeem = \"isSharingLinkToRedeem\",\n}\n\nexport interface ISharingLinkHeader {\n\t[SharingLinkHeader.isSharingLinkToRedeem]: boolean;\n}\n\nexport enum ClpCompliantAppHeader {\n\t// Can be used in request made to resolver, to tell the resolver that the host app is CLP compliant.\n\t// Odsp will not return Classified, labeled, or protected documents if the host app cannot support them.\n\tisClpCompliantApp = \"X-CLP-Compliant-App\",\n}\n\nexport interface IClpCompliantAppHeader {\n\t[ClpCompliantAppHeader.isClpCompliantApp]: boolean;\n}\n\ndeclare module \"@fluidframework/core-interfaces\" {\n\texport interface IRequestHeader\n\t\textends Partial<ISharingLinkHeader>,\n\t\t\tPartial<IClpCompliantAppHeader> {}\n}\n"]}
1
+ {"version":3,"file":"contractsPublic.js","sourceRoot":"","sources":["../src/contractsPublic.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAYH,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC5B,yGAAyG;IACzG,sDAAsD;IACtD,oEAA+C,CAAA;AAChD,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B;AAMD,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAChC,oGAAoG;IACpG,wGAAwG;IACxG,kEAAyC,CAAA;AAC1C,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IOdspUrlParts } from \"@fluidframework/odsp-driver-definitions\";\n\nexport interface OdspFluidDataStoreLocator extends IOdspUrlParts {\n\tdataStorePath: string;\n\tappName?: string;\n\tcontainerPackageName?: string;\n\tfileVersion?: string;\n\tcontext?: string;\n}\n\nexport enum SharingLinkHeader {\n\t// Can be used in request made to resolver, to tell the resolver that the passed in URL is a sharing link\n\t// which can be redeemed at server to get permissions.\n\tisSharingLinkToRedeem = \"isSharingLinkToRedeem\",\n}\n\nexport interface ISharingLinkHeader {\n\t[SharingLinkHeader.isSharingLinkToRedeem]: boolean;\n}\n\nexport enum ClpCompliantAppHeader {\n\t// Can be used in request made to resolver, to tell the resolver that the host app is CLP compliant.\n\t// Odsp will not return Classified, labeled, or protected documents if the host app cannot support them.\n\tisClpCompliantApp = \"X-CLP-Compliant-App\",\n}\n\nexport interface IClpCompliantAppHeader {\n\t[ClpCompliantAppHeader.isClpCompliantApp]: boolean;\n}\n\ndeclare module \"@fluidframework/core-interfaces\" {\n\texport interface IRequestHeader\n\t\textends Partial<ISharingLinkHeader>,\n\t\t\tPartial<IClpCompliantAppHeader> {}\n}\n"]}
@@ -7,8 +7,8 @@ import { RateLimiter } from "@fluidframework/driver-utils";
7
7
  import { IEntry, IFileEntry, IPersistedCache } from "@fluidframework/odsp-driver-definitions";
8
8
  import { IOdspResponse } from "./odspUtils";
9
9
  import { IOdspCache, INonPersistentCache, IPersistedFileCache } from "./odspCache";
10
- export declare type FetchType = "blob" | "createBlob" | "createFile" | "joinSession" | "ops" | "test" | "snapshotTree" | "treesLatest" | "uploadSummary" | "push" | "versions";
11
- export declare type FetchTypeInternal = FetchType | "cache";
10
+ export type FetchType = "blob" | "createBlob" | "createFile" | "joinSession" | "ops" | "test" | "snapshotTree" | "treesLatest" | "uploadSummary" | "push" | "versions";
11
+ export type FetchTypeInternal = FetchType | "cache";
12
12
  export declare const Odsp409Error = "Odsp409Error";
13
13
  export declare const defaultCacheExpiryTimeoutMs: number;
14
14
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"epochTracker.d.ts","sourceRoot":"","sources":["../src/epochTracker.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EACN,mBAAmB,EAMnB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEN,WAAW,EAGX,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAGN,MAAM,EACN,UAAU,EACV,eAAe,EAIf,MAAM,yCAAyC,CAAC;AAEjD,OAAO,EAKN,aAAa,EACb,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAMnF,oBAAY,SAAS,GAClB,MAAM,GACN,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,KAAK,GACL,MAAM,GACN,cAAc,GACd,aAAa,GACb,eAAe,GACf,MAAM,GACN,UAAU,CAAC;AAEd,oBAAY,iBAAiB,GAAG,SAAS,GAAG,OAAO,CAAC;AAEpD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAG3C,eAAO,MAAM,2BAA2B,EAAE,MAAgC,CAAC;AAE3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aAAa,CAAC,CAAC,CAAC,CAAC;CA+D5B;AAED,MAAM,WAAW,gBAAgB;IAChC,KAAK,EAAE,UAAU,CAAC;IAClB,YAAY,EAAE,YAAY,CAAC;CAC3B;AAED,wBAAgB,yBAAyB,CACxC,iBAAiB,EAAE,eAAe,EAClC,kBAAkB,EAAE,mBAAmB,EACvC,SAAS,EAAE,UAAU,EACrB,MAAM,EAAE,mBAAmB,EAC3B,kBAAkB,CAAC,EAAE,OAAO,GAC1B,gBAAgB,CAclB"}
package/dist/fetch.d.ts CHANGED
@@ -2,5 +2,5 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- export declare const fetch: (request: RequestInfo, config?: RequestInit | undefined) => Promise<Response>;
5
+ export declare const fetch: (request: RequestInfo, config?: RequestInit) => Promise<Response>;
6
6
  //# sourceMappingURL=fetch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../src/fetch.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH,eAAO,MAAM,KAAK,YAAmB,WAAW,uCAAyB,QAAQ,QAAQ,CACC,CAAC"}
1
+ {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../src/fetch.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH,eAAO,MAAM,KAAK,YAAmB,WAAW,WAAW,WAAW,KAAG,QAAQ,QAAQ,CACC,CAAC"}
@@ -29,7 +29,7 @@ var SnapshotFormatSupportType;
29
29
  SnapshotFormatSupportType[SnapshotFormatSupportType["Json"] = 0] = "Json";
30
30
  SnapshotFormatSupportType[SnapshotFormatSupportType["Binary"] = 1] = "Binary";
31
31
  SnapshotFormatSupportType[SnapshotFormatSupportType["JsonAndBinary"] = 2] = "JsonAndBinary";
32
- })(SnapshotFormatSupportType = exports.SnapshotFormatSupportType || (exports.SnapshotFormatSupportType = {}));
32
+ })(SnapshotFormatSupportType || (exports.SnapshotFormatSupportType = SnapshotFormatSupportType = {}));
33
33
  /**
34
34
  * Fetches a snapshot from the server with a given version id.
35
35
  * @param snapshotUrl - snapshot url from where the odsp snapshot will be fetched