@fluidframework/driver-utils 1.4.0-121020 → 2.0.0-dev-rc.1.0.0.225277

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 (392) hide show
  1. package/.eslintrc.js +17 -7
  2. package/.mocharc.js +12 -0
  3. package/CHANGELOG.md +141 -0
  4. package/README.md +68 -1
  5. package/api-extractor-esm.json +4 -0
  6. package/api-extractor-lint.json +4 -0
  7. package/api-extractor.json +2 -2
  8. package/api-report/driver-utils.api.md +401 -0
  9. package/dist/adapters/compression/compressionTypes.cjs +20 -0
  10. package/dist/adapters/compression/compressionTypes.cjs.map +1 -0
  11. package/dist/adapters/compression/compressionTypes.d.ts +23 -0
  12. package/dist/adapters/compression/compressionTypes.d.ts.map +1 -0
  13. package/dist/adapters/compression/documentServiceCompressionAdapter.cjs +23 -0
  14. package/dist/adapters/compression/documentServiceCompressionAdapter.cjs.map +1 -0
  15. package/dist/adapters/compression/documentServiceCompressionAdapter.d.ts +13 -0
  16. package/dist/adapters/compression/documentServiceCompressionAdapter.d.ts.map +1 -0
  17. package/dist/adapters/compression/documentServiceFactoryCompressionAdapter.cjs +31 -0
  18. package/dist/adapters/compression/documentServiceFactoryCompressionAdapter.cjs.map +1 -0
  19. package/dist/adapters/compression/documentServiceFactoryCompressionAdapter.d.ts +16 -0
  20. package/dist/adapters/compression/documentServiceFactoryCompressionAdapter.d.ts.map +1 -0
  21. package/dist/adapters/compression/index.cjs +15 -0
  22. package/dist/adapters/compression/index.cjs.map +1 -0
  23. package/dist/adapters/compression/index.d.ts +8 -0
  24. package/dist/adapters/compression/index.d.ts.map +1 -0
  25. package/dist/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.cjs +370 -0
  26. package/dist/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.cjs.map +1 -0
  27. package/dist/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.d.ts +165 -0
  28. package/dist/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.d.ts.map +1 -0
  29. package/dist/adapters/compression/summaryblob/index.cjs +11 -0
  30. package/dist/adapters/compression/summaryblob/index.cjs.map +1 -0
  31. package/dist/adapters/compression/summaryblob/index.d.ts +6 -0
  32. package/dist/adapters/compression/summaryblob/index.d.ts.map +1 -0
  33. package/dist/adapters/index.cjs +14 -0
  34. package/dist/adapters/index.cjs.map +1 -0
  35. package/dist/adapters/index.d.ts +7 -0
  36. package/dist/adapters/index.d.ts.map +1 -0
  37. package/dist/adapters/predefinedAdapters.cjs +52 -0
  38. package/dist/adapters/predefinedAdapters.cjs.map +1 -0
  39. package/dist/adapters/predefinedAdapters.d.ts +21 -0
  40. package/dist/adapters/predefinedAdapters.d.ts.map +1 -0
  41. package/dist/blob.cjs +65 -0
  42. package/dist/blob.cjs.map +1 -0
  43. package/dist/blob.d.ts +56 -0
  44. package/dist/blob.d.ts.map +1 -0
  45. package/dist/{buildSnapshotTree.js → buildSnapshotTree.cjs} +7 -5
  46. package/dist/buildSnapshotTree.cjs.map +1 -0
  47. package/dist/buildSnapshotTree.d.ts +1 -0
  48. package/dist/buildSnapshotTree.d.ts.map +1 -1
  49. package/dist/documentServiceFactoryProxy.cjs +27 -0
  50. package/dist/documentServiceFactoryProxy.cjs.map +1 -0
  51. package/dist/documentServiceFactoryProxy.d.ts +19 -0
  52. package/dist/documentServiceFactoryProxy.d.ts.map +1 -0
  53. package/dist/documentServiceProxy.cjs +36 -0
  54. package/dist/documentServiceProxy.cjs.map +1 -0
  55. package/dist/documentServiceProxy.d.ts +21 -0
  56. package/dist/documentServiceProxy.d.ts.map +1 -0
  57. package/dist/{documentStorageServiceProxy.js → documentStorageServiceProxy.cjs} +10 -8
  58. package/dist/documentStorageServiceProxy.cjs.map +1 -0
  59. package/dist/documentStorageServiceProxy.d.ts +5 -2
  60. package/dist/documentStorageServiceProxy.d.ts.map +1 -1
  61. package/dist/driver-utils-alpha.d.ts +163 -0
  62. package/dist/driver-utils-beta.d.ts +178 -0
  63. package/dist/driver-utils-public.d.ts +178 -0
  64. package/dist/driver-utils-untrimmed.d.ts +590 -0
  65. package/dist/{error.js → error.cjs} +10 -3
  66. package/dist/error.cjs.map +1 -0
  67. package/dist/error.d.ts +8 -3
  68. package/dist/error.d.ts.map +1 -1
  69. package/dist/index.cjs +69 -0
  70. package/dist/index.cjs.map +1 -0
  71. package/dist/index.d.ts +16 -21
  72. package/dist/index.d.ts.map +1 -1
  73. package/dist/{insecureUrlResolver.js → insecureUrlResolver.cjs} +10 -11
  74. package/dist/insecureUrlResolver.cjs.map +1 -0
  75. package/dist/insecureUrlResolver.d.ts +1 -0
  76. package/dist/insecureUrlResolver.d.ts.map +1 -1
  77. package/dist/messageRecognition.cjs +38 -0
  78. package/dist/messageRecognition.cjs.map +1 -0
  79. package/dist/messageRecognition.d.ts +16 -26
  80. package/dist/messageRecognition.d.ts.map +1 -1
  81. package/dist/{network.js → network.cjs} +86 -24
  82. package/dist/network.cjs.map +1 -0
  83. package/dist/network.d.ts +69 -20
  84. package/dist/network.d.ts.map +1 -1
  85. package/dist/networkUtils.cjs +29 -0
  86. package/dist/networkUtils.cjs.map +1 -0
  87. package/dist/networkUtils.d.ts +4 -10
  88. package/dist/networkUtils.d.ts.map +1 -1
  89. package/dist/{packageVersion.js → packageVersion.cjs} +2 -2
  90. package/dist/packageVersion.cjs.map +1 -0
  91. package/dist/packageVersion.d.ts +1 -1
  92. package/dist/packageVersion.d.ts.map +1 -1
  93. package/dist/{parallelRequests.js → parallelRequests.cjs} +146 -74
  94. package/dist/parallelRequests.cjs.map +1 -0
  95. package/dist/parallelRequests.d.ts +19 -6
  96. package/dist/parallelRequests.d.ts.map +1 -1
  97. package/dist/{prefetchDocumentStorageService.js → prefetchDocumentStorageService.cjs} +7 -4
  98. package/dist/prefetchDocumentStorageService.cjs.map +1 -0
  99. package/dist/prefetchDocumentStorageService.d.ts +4 -2
  100. package/dist/prefetchDocumentStorageService.d.ts.map +1 -1
  101. package/dist/{rateLimiter.js → rateLimiter.cjs} +6 -3
  102. package/dist/rateLimiter.cjs.map +1 -0
  103. package/dist/rateLimiter.d.ts +3 -0
  104. package/dist/rateLimiter.d.ts.map +1 -1
  105. package/dist/readAndParse.cjs +28 -0
  106. package/dist/readAndParse.cjs.map +1 -0
  107. package/dist/readAndParse.d.ts +10 -4
  108. package/dist/readAndParse.d.ts.map +1 -1
  109. package/dist/runWithRetry.cjs +108 -0
  110. package/dist/runWithRetry.cjs.map +1 -0
  111. package/dist/runWithRetry.d.ts +26 -7
  112. package/dist/runWithRetry.d.ts.map +1 -1
  113. package/dist/{summaryForCreateNew.js → summaryForCreateNew.cjs} +20 -19
  114. package/dist/summaryForCreateNew.cjs.map +1 -0
  115. package/dist/summaryForCreateNew.d.ts +17 -4
  116. package/dist/summaryForCreateNew.d.ts.map +1 -1
  117. package/dist/{treeConversions.js → treeConversions.cjs} +16 -18
  118. package/dist/treeConversions.cjs.map +1 -0
  119. package/dist/treeConversions.d.ts +1 -0
  120. package/dist/treeConversions.d.ts.map +1 -1
  121. package/dist/tsdoc-metadata.json +11 -0
  122. package/lib/adapters/compression/compressionTypes.d.mts +23 -0
  123. package/lib/adapters/compression/compressionTypes.d.mts.map +1 -0
  124. package/lib/adapters/compression/compressionTypes.mjs +17 -0
  125. package/lib/adapters/compression/compressionTypes.mjs.map +1 -0
  126. package/lib/adapters/compression/documentServiceCompressionAdapter.d.mts +13 -0
  127. package/lib/adapters/compression/documentServiceCompressionAdapter.d.mts.map +1 -0
  128. package/lib/adapters/compression/documentServiceCompressionAdapter.mjs +19 -0
  129. package/lib/adapters/compression/documentServiceCompressionAdapter.mjs.map +1 -0
  130. package/lib/adapters/compression/documentServiceFactoryCompressionAdapter.d.mts +16 -0
  131. package/lib/adapters/compression/documentServiceFactoryCompressionAdapter.d.mts.map +1 -0
  132. package/lib/adapters/compression/documentServiceFactoryCompressionAdapter.mjs +27 -0
  133. package/lib/adapters/compression/documentServiceFactoryCompressionAdapter.mjs.map +1 -0
  134. package/lib/adapters/compression/index.d.mts +8 -0
  135. package/lib/adapters/compression/index.d.mts.map +1 -0
  136. package/lib/adapters/compression/index.mjs +8 -0
  137. package/lib/adapters/compression/index.mjs.map +1 -0
  138. package/lib/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.d.mts +165 -0
  139. package/lib/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.d.mts.map +1 -0
  140. package/lib/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.mjs +366 -0
  141. package/lib/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.mjs.map +1 -0
  142. package/lib/adapters/compression/summaryblob/index.d.mts +6 -0
  143. package/lib/adapters/compression/summaryblob/index.d.mts.map +1 -0
  144. package/lib/adapters/compression/summaryblob/index.mjs +6 -0
  145. package/lib/adapters/compression/summaryblob/index.mjs.map +1 -0
  146. package/lib/adapters/index.d.mts +7 -0
  147. package/lib/adapters/index.d.mts.map +1 -0
  148. package/lib/adapters/index.mjs +7 -0
  149. package/lib/adapters/index.mjs.map +1 -0
  150. package/lib/adapters/predefinedAdapters.d.mts +21 -0
  151. package/lib/adapters/predefinedAdapters.d.mts.map +1 -0
  152. package/lib/adapters/predefinedAdapters.mjs +47 -0
  153. package/lib/adapters/predefinedAdapters.mjs.map +1 -0
  154. package/lib/blob.d.mts +56 -0
  155. package/lib/blob.d.mts.map +1 -0
  156. package/lib/blob.mjs +59 -0
  157. package/lib/blob.mjs.map +1 -0
  158. package/lib/{buildSnapshotTree.d.ts → buildSnapshotTree.d.mts} +2 -1
  159. package/lib/buildSnapshotTree.d.mts.map +1 -0
  160. package/lib/{buildSnapshotTree.js → buildSnapshotTree.mjs} +6 -4
  161. package/lib/buildSnapshotTree.mjs.map +1 -0
  162. package/lib/documentServiceFactoryProxy.d.mts +19 -0
  163. package/lib/documentServiceFactoryProxy.d.mts.map +1 -0
  164. package/lib/documentServiceFactoryProxy.mjs +23 -0
  165. package/lib/documentServiceFactoryProxy.mjs.map +1 -0
  166. package/lib/documentServiceProxy.d.mts +21 -0
  167. package/lib/documentServiceProxy.d.mts.map +1 -0
  168. package/lib/documentServiceProxy.mjs +32 -0
  169. package/lib/documentServiceProxy.mjs.map +1 -0
  170. package/lib/{documentStorageServiceProxy.d.ts → documentStorageServiceProxy.d.mts} +6 -3
  171. package/lib/documentStorageServiceProxy.d.mts.map +1 -0
  172. package/lib/{documentStorageServiceProxy.js → documentStorageServiceProxy.mjs} +10 -8
  173. package/lib/documentStorageServiceProxy.mjs.map +1 -0
  174. package/lib/driver-utils-alpha.d.mts +163 -0
  175. package/lib/driver-utils-beta.d.mts +178 -0
  176. package/lib/driver-utils-public.d.mts +178 -0
  177. package/lib/driver-utils-untrimmed.d.mts +590 -0
  178. package/lib/error.d.mts +16 -0
  179. package/lib/error.d.mts.map +1 -0
  180. package/lib/error.mjs +19 -0
  181. package/lib/error.mjs.map +1 -0
  182. package/lib/index.d.mts +21 -0
  183. package/lib/index.d.mts.map +1 -0
  184. package/lib/index.mjs +21 -0
  185. package/lib/index.mjs.map +1 -0
  186. package/lib/{insecureUrlResolver.d.ts → insecureUrlResolver.d.mts} +2 -1
  187. package/lib/insecureUrlResolver.d.mts.map +1 -0
  188. package/lib/{insecureUrlResolver.js → insecureUrlResolver.mjs} +10 -11
  189. package/lib/insecureUrlResolver.mjs.map +1 -0
  190. package/lib/messageRecognition.d.mts +24 -0
  191. package/lib/messageRecognition.d.mts.map +1 -0
  192. package/lib/messageRecognition.mjs +29 -0
  193. package/lib/messageRecognition.mjs.map +1 -0
  194. package/lib/{network.d.ts → network.d.mts} +70 -21
  195. package/lib/network.d.mts.map +1 -0
  196. package/lib/{network.js → network.mjs} +85 -23
  197. package/lib/network.mjs.map +1 -0
  198. package/lib/networkUtils.d.mts +11 -0
  199. package/lib/networkUtils.d.mts.map +1 -0
  200. package/lib/networkUtils.mjs +25 -0
  201. package/lib/networkUtils.mjs.map +1 -0
  202. package/lib/{packageVersion.d.ts → packageVersion.d.mts} +2 -2
  203. package/lib/packageVersion.d.mts.map +1 -0
  204. package/lib/{packageVersion.js → packageVersion.mjs} +2 -2
  205. package/lib/packageVersion.mjs.map +1 -0
  206. package/lib/{parallelRequests.d.ts → parallelRequests.d.mts} +20 -7
  207. package/lib/parallelRequests.d.mts.map +1 -0
  208. package/lib/{parallelRequests.js → parallelRequests.mjs} +119 -52
  209. package/lib/parallelRequests.mjs.map +1 -0
  210. package/lib/{prefetchDocumentStorageService.d.ts → prefetchDocumentStorageService.d.mts} +6 -8
  211. package/lib/prefetchDocumentStorageService.d.mts.map +1 -0
  212. package/lib/{prefetchDocumentStorageService.js → prefetchDocumentStorageService.mjs} +7 -8
  213. package/lib/prefetchDocumentStorageService.mjs.map +1 -0
  214. package/lib/{rateLimiter.d.ts → rateLimiter.d.mts} +4 -1
  215. package/lib/rateLimiter.d.mts.map +1 -0
  216. package/lib/{rateLimiter.js → rateLimiter.mjs} +5 -2
  217. package/lib/rateLimiter.mjs.map +1 -0
  218. package/lib/readAndParse.d.mts +20 -0
  219. package/lib/readAndParse.d.mts.map +1 -0
  220. package/lib/readAndParse.mjs +24 -0
  221. package/lib/readAndParse.mjs.map +1 -0
  222. package/lib/{runWithRetry.d.ts → runWithRetry.d.mts} +27 -8
  223. package/lib/runWithRetry.d.mts.map +1 -0
  224. package/lib/runWithRetry.mjs +103 -0
  225. package/lib/runWithRetry.mjs.map +1 -0
  226. package/lib/{summaryForCreateNew.d.ts → summaryForCreateNew.d.mts} +18 -5
  227. package/lib/summaryForCreateNew.d.mts.map +1 -0
  228. package/lib/{summaryForCreateNew.js → summaryForCreateNew.mjs} +18 -17
  229. package/lib/summaryForCreateNew.mjs.map +1 -0
  230. package/lib/{treeConversions.d.ts → treeConversions.d.mts} +2 -1
  231. package/lib/treeConversions.d.mts.map +1 -0
  232. package/lib/{treeConversions.js → treeConversions.mjs} +12 -14
  233. package/lib/treeConversions.mjs.map +1 -0
  234. package/package.json +86 -64
  235. package/prettier.config.cjs +8 -0
  236. package/src/adapters/compression/compressionTypes.ts +25 -0
  237. package/src/adapters/compression/documentServiceCompressionAdapter.ts +28 -0
  238. package/src/adapters/compression/documentServiceFactoryCompressionAdapter.ts +54 -0
  239. package/src/adapters/compression/index.ts +12 -0
  240. package/src/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.ts +451 -0
  241. package/src/adapters/compression/summaryblob/index.ts +9 -0
  242. package/src/adapters/index.ts +13 -0
  243. package/src/adapters/predefinedAdapters.ts +74 -0
  244. package/src/blob.ts +77 -0
  245. package/src/buildSnapshotTree.ts +58 -53
  246. package/src/documentServiceFactoryProxy.ts +47 -0
  247. package/src/documentServiceProxy.ts +46 -0
  248. package/src/documentStorageServiceProxy.ts +52 -37
  249. package/src/error.ts +13 -8
  250. package/src/index.ts +51 -21
  251. package/src/insecureUrlResolver.ts +125 -120
  252. package/src/messageRecognition.ts +24 -53
  253. package/src/network.ts +189 -111
  254. package/src/networkUtils.ts +24 -49
  255. package/src/packageVersion.ts +1 -1
  256. package/src/parallelRequests.ts +630 -519
  257. package/src/prefetchDocumentStorageService.ts +79 -74
  258. package/src/rateLimiter.ts +33 -30
  259. package/src/readAndParse.ts +18 -9
  260. package/src/runWithRetry.ts +145 -85
  261. package/src/summaryForCreateNew.ts +48 -29
  262. package/src/treeConversions.ts +49 -70
  263. package/tsc-multi.test.json +4 -0
  264. package/tsconfig.json +10 -12
  265. package/dist/blobAggregationStorage.d.ts +0 -43
  266. package/dist/blobAggregationStorage.d.ts.map +0 -1
  267. package/dist/blobAggregationStorage.js +0 -318
  268. package/dist/blobAggregationStorage.js.map +0 -1
  269. package/dist/blobCacheStorageService.d.ts +0 -16
  270. package/dist/blobCacheStorageService.d.ts.map +0 -1
  271. package/dist/blobCacheStorageService.js +0 -29
  272. package/dist/blobCacheStorageService.js.map +0 -1
  273. package/dist/buildSnapshotTree.js.map +0 -1
  274. package/dist/documentStorageServiceProxy.js.map +0 -1
  275. package/dist/emptyDocumentDeltaStorageService.d.ts +0 -13
  276. package/dist/emptyDocumentDeltaStorageService.d.ts.map +0 -1
  277. package/dist/emptyDocumentDeltaStorageService.js +0 -20
  278. package/dist/emptyDocumentDeltaStorageService.js.map +0 -1
  279. package/dist/error.js.map +0 -1
  280. package/dist/fluidResolvedUrl.d.ts +0 -8
  281. package/dist/fluidResolvedUrl.d.ts.map +0 -1
  282. package/dist/fluidResolvedUrl.js +0 -16
  283. package/dist/fluidResolvedUrl.js.map +0 -1
  284. package/dist/index.js +0 -38
  285. package/dist/index.js.map +0 -1
  286. package/dist/insecureUrlResolver.js.map +0 -1
  287. package/dist/messageRecognition.js +0 -73
  288. package/dist/messageRecognition.js.map +0 -1
  289. package/dist/multiDocumentServiceFactory.d.ts +0 -16
  290. package/dist/multiDocumentServiceFactory.d.ts.map +0 -1
  291. package/dist/multiDocumentServiceFactory.js +0 -63
  292. package/dist/multiDocumentServiceFactory.js.map +0 -1
  293. package/dist/multiUrlResolver.d.ts +0 -20
  294. package/dist/multiUrlResolver.d.ts.map +0 -1
  295. package/dist/multiUrlResolver.js +0 -45
  296. package/dist/multiUrlResolver.js.map +0 -1
  297. package/dist/network.js.map +0 -1
  298. package/dist/networkUtils.js +0 -59
  299. package/dist/networkUtils.js.map +0 -1
  300. package/dist/packageVersion.js.map +0 -1
  301. package/dist/parallelRequests.js.map +0 -1
  302. package/dist/prefetchDocumentStorageService.js.map +0 -1
  303. package/dist/rateLimiter.js.map +0 -1
  304. package/dist/readAndParse.js +0 -22
  305. package/dist/readAndParse.js.map +0 -1
  306. package/dist/runWithRetry.js +0 -69
  307. package/dist/runWithRetry.js.map +0 -1
  308. package/dist/summaryForCreateNew.js.map +0 -1
  309. package/dist/treeConversions.js.map +0 -1
  310. package/dist/treeUtils.d.ts +0 -51
  311. package/dist/treeUtils.d.ts.map +0 -1
  312. package/dist/treeUtils.js +0 -85
  313. package/dist/treeUtils.js.map +0 -1
  314. package/lib/blobAggregationStorage.d.ts +0 -43
  315. package/lib/blobAggregationStorage.d.ts.map +0 -1
  316. package/lib/blobAggregationStorage.js +0 -313
  317. package/lib/blobAggregationStorage.js.map +0 -1
  318. package/lib/blobCacheStorageService.d.ts +0 -16
  319. package/lib/blobCacheStorageService.d.ts.map +0 -1
  320. package/lib/blobCacheStorageService.js +0 -25
  321. package/lib/blobCacheStorageService.js.map +0 -1
  322. package/lib/buildSnapshotTree.d.ts.map +0 -1
  323. package/lib/buildSnapshotTree.js.map +0 -1
  324. package/lib/documentStorageServiceProxy.d.ts.map +0 -1
  325. package/lib/documentStorageServiceProxy.js.map +0 -1
  326. package/lib/emptyDocumentDeltaStorageService.d.ts +0 -13
  327. package/lib/emptyDocumentDeltaStorageService.d.ts.map +0 -1
  328. package/lib/emptyDocumentDeltaStorageService.js +0 -16
  329. package/lib/emptyDocumentDeltaStorageService.js.map +0 -1
  330. package/lib/error.d.ts +0 -11
  331. package/lib/error.d.ts.map +0 -1
  332. package/lib/error.js +0 -13
  333. package/lib/error.js.map +0 -1
  334. package/lib/fluidResolvedUrl.d.ts +0 -8
  335. package/lib/fluidResolvedUrl.d.ts.map +0 -1
  336. package/lib/fluidResolvedUrl.js +0 -11
  337. package/lib/fluidResolvedUrl.js.map +0 -1
  338. package/lib/index.d.ts +0 -26
  339. package/lib/index.d.ts.map +0 -1
  340. package/lib/index.js +0 -26
  341. package/lib/index.js.map +0 -1
  342. package/lib/insecureUrlResolver.d.ts.map +0 -1
  343. package/lib/insecureUrlResolver.js.map +0 -1
  344. package/lib/messageRecognition.d.ts +0 -38
  345. package/lib/messageRecognition.d.ts.map +0 -1
  346. package/lib/messageRecognition.js +0 -67
  347. package/lib/messageRecognition.js.map +0 -1
  348. package/lib/multiDocumentServiceFactory.d.ts +0 -16
  349. package/lib/multiDocumentServiceFactory.d.ts.map +0 -1
  350. package/lib/multiDocumentServiceFactory.js +0 -59
  351. package/lib/multiDocumentServiceFactory.js.map +0 -1
  352. package/lib/multiUrlResolver.d.ts +0 -20
  353. package/lib/multiUrlResolver.d.ts.map +0 -1
  354. package/lib/multiUrlResolver.js +0 -40
  355. package/lib/multiUrlResolver.js.map +0 -1
  356. package/lib/network.d.ts.map +0 -1
  357. package/lib/network.js.map +0 -1
  358. package/lib/networkUtils.d.ts +0 -17
  359. package/lib/networkUtils.d.ts.map +0 -1
  360. package/lib/networkUtils.js +0 -54
  361. package/lib/networkUtils.js.map +0 -1
  362. package/lib/packageVersion.d.ts.map +0 -1
  363. package/lib/packageVersion.js.map +0 -1
  364. package/lib/parallelRequests.d.ts.map +0 -1
  365. package/lib/parallelRequests.js.map +0 -1
  366. package/lib/prefetchDocumentStorageService.d.ts.map +0 -1
  367. package/lib/prefetchDocumentStorageService.js.map +0 -1
  368. package/lib/rateLimiter.d.ts.map +0 -1
  369. package/lib/rateLimiter.js.map +0 -1
  370. package/lib/readAndParse.d.ts +0 -14
  371. package/lib/readAndParse.d.ts.map +0 -1
  372. package/lib/readAndParse.js +0 -18
  373. package/lib/readAndParse.js.map +0 -1
  374. package/lib/runWithRetry.d.ts.map +0 -1
  375. package/lib/runWithRetry.js +0 -65
  376. package/lib/runWithRetry.js.map +0 -1
  377. package/lib/summaryForCreateNew.d.ts.map +0 -1
  378. package/lib/summaryForCreateNew.js.map +0 -1
  379. package/lib/treeConversions.d.ts.map +0 -1
  380. package/lib/treeConversions.js.map +0 -1
  381. package/lib/treeUtils.d.ts +0 -51
  382. package/lib/treeUtils.d.ts.map +0 -1
  383. package/lib/treeUtils.js +0 -80
  384. package/lib/treeUtils.js.map +0 -1
  385. package/src/blobAggregationStorage.ts +0 -374
  386. package/src/blobCacheStorageService.ts +0 -32
  387. package/src/emptyDocumentDeltaStorageService.ts +0 -24
  388. package/src/fluidResolvedUrl.ts +0 -15
  389. package/src/multiDocumentServiceFactory.ts +0 -80
  390. package/src/multiUrlResolver.ts +0 -51
  391. package/src/treeUtils.ts +0 -111
  392. package/tsconfig.esnext.json +0 -7
@@ -0,0 +1,21 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+ import { IDocumentDeltaConnection, IDocumentDeltaStorageService, IDocumentService, IDocumentStorageService, IResolvedUrl } from "@fluidframework/driver-definitions";
6
+ import { IClient } from "@fluidframework/protocol-definitions";
7
+ /**
8
+ * This abstract class implements IDocumentService interface. It uses delegation pattern.
9
+ * It delegates all calls to IDocumentService implementation passed to constructor.
10
+ */
11
+ export declare abstract class DocumentServiceProxy implements IDocumentService {
12
+ private readonly _service;
13
+ constructor(_service: IDocumentService);
14
+ get service(): IDocumentService;
15
+ connectToStorage(): Promise<IDocumentStorageService>;
16
+ connectToDeltaStorage(): Promise<IDocumentDeltaStorageService>;
17
+ connectToDeltaStream(client: IClient): Promise<IDocumentDeltaConnection>;
18
+ dispose(error?: any): void;
19
+ get resolvedUrl(): IResolvedUrl;
20
+ }
21
+ //# sourceMappingURL=documentServiceProxy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"documentServiceProxy.d.ts","sourceRoot":"","sources":["../src/documentServiceProxy.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,EAChB,uBAAuB,EACvB,YAAY,EACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAE/D;;;GAGG;AAEH,8BAAsB,oBAAqB,YAAW,gBAAgB;IACzD,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QAAQ,EAAE,gBAAgB;IAEvD,IAAW,OAAO,IAAI,gBAAgB,CAErC;IAEY,gBAAgB,IAAI,OAAO,CAAC,uBAAuB,CAAC;IAIpD,qBAAqB,IAAI,OAAO,CAAC,4BAA4B,CAAC;IAI9D,oBAAoB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAI9E,OAAO,CAAC,KAAK,CAAC,EAAE,GAAG,GAAG,IAAI;IAIjC,IAAW,WAAW,IAAI,YAAY,CAErC;CACD"}
@@ -5,25 +5,27 @@
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.DocumentStorageServiceProxy = void 0;
8
+ /**
9
+ * @internal
10
+ */
8
11
  class DocumentStorageServiceProxy {
9
- constructor(internalStorageService) {
10
- this.internalStorageService = internalStorageService;
11
- }
12
12
  set policies(policies) {
13
13
  this._policies = policies;
14
14
  }
15
15
  get policies() {
16
- var _a;
17
- return (_a = this._policies) !== null && _a !== void 0 ? _a : this.internalStorageService.policies;
16
+ return this._policies ?? this.internalStorageService.policies;
18
17
  }
19
18
  get repositoryUrl() {
20
19
  return this.internalStorageService.repositoryUrl;
21
20
  }
21
+ constructor(internalStorageService) {
22
+ this.internalStorageService = internalStorageService;
23
+ }
22
24
  async getSnapshotTree(version, scenarioName) {
23
25
  return this.internalStorageService.getSnapshotTree(version, scenarioName);
24
26
  }
25
- async getVersions(versionId, count, scenarioName) {
26
- return this.internalStorageService.getVersions(versionId, count, scenarioName);
27
+ async getVersions(versionId, count, scenarioName, fetchSource) {
28
+ return this.internalStorageService.getVersions(versionId, count, scenarioName, fetchSource);
27
29
  }
28
30
  async uploadSummaryWithContext(summary, context) {
29
31
  return this.internalStorageService.uploadSummaryWithContext(summary, context);
@@ -39,4 +41,4 @@ class DocumentStorageServiceProxy {
39
41
  }
40
42
  }
41
43
  exports.DocumentStorageServiceProxy = DocumentStorageServiceProxy;
42
- //# sourceMappingURL=documentStorageServiceProxy.js.map
44
+ //# sourceMappingURL=documentStorageServiceProxy.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"documentStorageServiceProxy.cjs","sourceRoot":"","sources":["../src/documentStorageServiceProxy.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAgBH;;GAEG;AACH,MAAa,2BAA2B;IAGvC,IAAW,QAAQ,CAAC,QAAqD;QACxE,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAED,IAAW,QAAQ;QAClB,OAAO,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,sBAAsB,CAAC,QAAQ,CAAC;IAC/D,CAAC;IAED,IAAW,aAAa;QACvB,OAAO,IAAI,CAAC,sBAAsB,CAAC,aAAa,CAAC;IAClD,CAAC;IAED,YAA+B,sBAA+C;QAA/C,2BAAsB,GAAtB,sBAAsB,CAAyB;IAAG,CAAC;IAE3E,KAAK,CAAC,eAAe,CAC3B,OAAkB,EAClB,YAAqB;QAErB,OAAO,IAAI,CAAC,sBAAsB,CAAC,eAAe,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAC3E,CAAC;IAEM,KAAK,CAAC,WAAW,CACvB,SAAwB,EACxB,KAAa,EACb,YAAqB,EACrB,WAAyB;QAEzB,OAAO,IAAI,CAAC,sBAAsB,CAAC,WAAW,CAAC,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC;IAC7F,CAAC;IAEM,KAAK,CAAC,wBAAwB,CACpC,OAAqB,EACrB,OAAwB;QAExB,OAAO,IAAI,CAAC,sBAAsB,CAAC,wBAAwB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAEM,KAAK,CAAC,eAAe,CAAC,MAAsB;QAClD,OAAO,IAAI,CAAC,sBAAsB,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;IAC5D,CAAC;IAEM,KAAK,CAAC,UAAU,CAAC,IAAqB;QAC5C,OAAO,IAAI,CAAC,sBAAsB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IAEM,KAAK,CAAC,QAAQ,CAAC,MAAc;QACnC,OAAO,IAAI,CAAC,sBAAsB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACrD,CAAC;CACD;AAnDD,kEAmDC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tFetchSource,\n\tIDocumentStorageService,\n\tIDocumentStorageServicePolicies,\n\tISummaryContext,\n} from \"@fluidframework/driver-definitions\";\nimport {\n\tICreateBlobResponse,\n\tISnapshotTree,\n\tISummaryHandle,\n\tISummaryTree,\n\tIVersion,\n} from \"@fluidframework/protocol-definitions\";\n\n/**\n * @internal\n */\nexport class DocumentStorageServiceProxy implements IDocumentStorageService {\n\tprivate _policies: IDocumentStorageServicePolicies | undefined;\n\n\tpublic set policies(policies: IDocumentStorageServicePolicies | undefined) {\n\t\tthis._policies = policies;\n\t}\n\n\tpublic get policies() {\n\t\treturn this._policies ?? this.internalStorageService.policies;\n\t}\n\n\tpublic get repositoryUrl(): string {\n\t\treturn this.internalStorageService.repositoryUrl;\n\t}\n\n\tconstructor(protected readonly internalStorageService: IDocumentStorageService) {}\n\n\tpublic async getSnapshotTree(\n\t\tversion?: IVersion,\n\t\tscenarioName?: string,\n\t): Promise<ISnapshotTree | null> {\n\t\treturn this.internalStorageService.getSnapshotTree(version, scenarioName);\n\t}\n\n\tpublic async getVersions(\n\t\tversionId: string | null,\n\t\tcount: number,\n\t\tscenarioName?: string,\n\t\tfetchSource?: FetchSource,\n\t): Promise<IVersion[]> {\n\t\treturn this.internalStorageService.getVersions(versionId, count, scenarioName, fetchSource);\n\t}\n\n\tpublic async uploadSummaryWithContext(\n\t\tsummary: ISummaryTree,\n\t\tcontext: ISummaryContext,\n\t): Promise<string> {\n\t\treturn this.internalStorageService.uploadSummaryWithContext(summary, context);\n\t}\n\n\tpublic async downloadSummary(handle: ISummaryHandle): Promise<ISummaryTree> {\n\t\treturn this.internalStorageService.downloadSummary(handle);\n\t}\n\n\tpublic async createBlob(file: ArrayBufferLike): Promise<ICreateBlobResponse> {\n\t\treturn this.internalStorageService.createBlob(file);\n\t}\n\n\tpublic async readBlob(blobId: string): Promise<ArrayBufferLike> {\n\t\treturn this.internalStorageService.readBlob(blobId);\n\t}\n}\n"]}
@@ -2,8 +2,11 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- import { IDocumentStorageService, IDocumentStorageServicePolicies, ISummaryContext } from "@fluidframework/driver-definitions";
5
+ import { FetchSource, IDocumentStorageService, IDocumentStorageServicePolicies, ISummaryContext } from "@fluidframework/driver-definitions";
6
6
  import { ICreateBlobResponse, ISnapshotTree, ISummaryHandle, ISummaryTree, IVersion } from "@fluidframework/protocol-definitions";
7
+ /**
8
+ * @internal
9
+ */
7
10
  export declare class DocumentStorageServiceProxy implements IDocumentStorageService {
8
11
  protected readonly internalStorageService: IDocumentStorageService;
9
12
  private _policies;
@@ -12,7 +15,7 @@ export declare class DocumentStorageServiceProxy implements IDocumentStorageServ
12
15
  get repositoryUrl(): string;
13
16
  constructor(internalStorageService: IDocumentStorageService);
14
17
  getSnapshotTree(version?: IVersion, scenarioName?: string): Promise<ISnapshotTree | null>;
15
- getVersions(versionId: string | null, count: number, scenarioName?: string): Promise<IVersion[]>;
18
+ getVersions(versionId: string | null, count: number, scenarioName?: string, fetchSource?: FetchSource): Promise<IVersion[]>;
16
19
  uploadSummaryWithContext(summary: ISummaryTree, context: ISummaryContext): Promise<string>;
17
20
  downloadSummary(handle: ISummaryHandle): Promise<ISummaryTree>;
18
21
  createBlob(file: ArrayBufferLike): Promise<ICreateBlobResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"documentStorageServiceProxy.d.ts","sourceRoot":"","sources":["../src/documentStorageServiceProxy.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,uBAAuB,EACvB,+BAA+B,EAC/B,eAAe,EAClB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACH,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,QAAQ,EACX,MAAM,sCAAsC,CAAC;AAE9C,qBAAa,2BAA4B,YAAW,uBAAuB;IAe3D,SAAS,CAAC,QAAQ,CAAC,sBAAsB,EAAE,uBAAuB;IAd9E,OAAO,CAAC,SAAS,CAA8C;IAE/D,IAAW,QAAQ,CAAC,QAAQ,EAAE,+BAA+B,GAAG,SAAS,EAExE;IAED,IAAW,QAAQ,IAJW,+BAA+B,GAAG,SAAS,CAMxE;IAED,IAAW,aAAa,IAAI,MAAM,CAEjC;gBAE8B,sBAAsB,EAAE,uBAAuB;IAEjE,eAAe,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;IAIzF,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAIhG,wBAAwB,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAI1F,eAAe,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC;IAI9D,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI/D,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;CAGlE"}
1
+ {"version":3,"file":"documentStorageServiceProxy.d.ts","sourceRoot":"","sources":["../src/documentStorageServiceProxy.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,WAAW,EACX,uBAAuB,EACvB,+BAA+B,EAC/B,eAAe,EACf,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACN,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,MAAM,sCAAsC,CAAC;AAE9C;;GAEG;AACH,qBAAa,2BAA4B,YAAW,uBAAuB;IAe9D,SAAS,CAAC,QAAQ,CAAC,sBAAsB,EAAE,uBAAuB;IAd9E,OAAO,CAAC,SAAS,CAA8C;IAE/D,IAAW,QAAQ,CAAC,QAAQ,EAAE,+BAA+B,GAAG,SAAS,EAExE;IAED,IAAW,QAAQ,IAJW,+BAA+B,GAAG,SAAS,CAMxE;IAED,IAAW,aAAa,IAAI,MAAM,CAEjC;gBAE8B,sBAAsB,EAAE,uBAAuB;IAEjE,eAAe,CAC3B,OAAO,CAAC,EAAE,QAAQ,EAClB,YAAY,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;IAInB,WAAW,CACvB,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,KAAK,EAAE,MAAM,EACb,YAAY,CAAC,EAAE,MAAM,EACrB,WAAW,CAAC,EAAE,WAAW,GACvB,OAAO,CAAC,QAAQ,EAAE,CAAC;IAIT,wBAAwB,CACpC,OAAO,EAAE,YAAY,EACrB,OAAO,EAAE,eAAe,GACtB,OAAO,CAAC,MAAM,CAAC;IAIL,eAAe,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC;IAI9D,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI/D,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;CAG/D"}
@@ -0,0 +1,163 @@
1
+ import { FetchSource } from '@fluidframework/driver-definitions';
2
+ import { IAttachment } from '@fluidframework/protocol-definitions';
3
+ import { IAuthorizationError } from '@fluidframework/driver-definitions';
4
+ import { IBlob } from '@fluidframework/protocol-definitions';
5
+ import { ICommittedProposal } from '@fluidframework/protocol-definitions';
6
+ import { ICreateBlobResponse } from '@fluidframework/protocol-definitions';
7
+ import { IDeltasFetchResult } from '@fluidframework/driver-definitions';
8
+ import { IDocumentAttributes } from '@fluidframework/protocol-definitions';
9
+ import { IDocumentMessage } from '@fluidframework/protocol-definitions';
10
+ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
11
+ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
12
+ import { IDocumentStorageServicePolicies } from '@fluidframework/driver-definitions';
13
+ import { IDriverErrorBase } from '@fluidframework/driver-definitions';
14
+ import { IFluidErrorBase } from '@fluidframework/telemetry-utils';
15
+ import { ILocationRedirectionError } from '@fluidframework/driver-definitions';
16
+ import { IRequest } from '@fluidframework/core-interfaces';
17
+ import { IResolvedUrl } from '@fluidframework/driver-definitions';
18
+ import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
19
+ import { ISnapshotTree } from '@fluidframework/protocol-definitions';
20
+ import { IStream } from '@fluidframework/driver-definitions';
21
+ import { IStreamResult } from '@fluidframework/driver-definitions';
22
+ import { ISummaryContext } from '@fluidframework/driver-definitions';
23
+ import { ISummaryHandle } from '@fluidframework/protocol-definitions';
24
+ import { ISummaryTree } from '@fluidframework/protocol-definitions';
25
+ import { ITelemetryErrorEvent } from '@fluidframework/core-interfaces';
26
+ import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
27
+ import { ITelemetryProperties } from '@fluidframework/core-interfaces';
28
+ import { IThrottlingWarning } from '@fluidframework/driver-definitions';
29
+ import { ITree } from '@fluidframework/protocol-definitions';
30
+ import { ITreeEntry } from '@fluidframework/protocol-definitions';
31
+ import { IUrlResolver } from '@fluidframework/driver-definitions';
32
+ import { IVersion } from '@fluidframework/protocol-definitions';
33
+ import { LoaderCachingPolicy } from '@fluidframework/driver-definitions';
34
+ import { LoggingError } from '@fluidframework/telemetry-utils';
35
+
36
+ /* Excluded from this release type: applyStorageCompression */
37
+
38
+ /* Excluded from this release type: AttachmentTreeEntry */
39
+
40
+ /* Excluded from this release type: AuthorizationError */
41
+
42
+ /* Excluded from this release type: blobHeadersBlobName */
43
+
44
+ /* Excluded from this release type: BlobTreeEntry */
45
+
46
+ /* Excluded from this release type: buildSnapshotTree */
47
+
48
+ /* Excluded from this release type: calculateMaxWaitTime */
49
+
50
+ /* Excluded from this release type: canBeCoalescedByService */
51
+
52
+ /* Excluded from this release type: canRetryOnError */
53
+
54
+ /* Excluded from this release type: CombinedAppAndProtocolSummary */
55
+
56
+ /* Excluded from this release type: convertSummaryTreeToSnapshotITree */
57
+
58
+ /* Excluded from this release type: createGenericNetworkError */
59
+
60
+ /* Excluded from this release type: createWriteError */
61
+
62
+ /* Excluded from this release type: DeltaStreamConnectionForbiddenError */
63
+
64
+ /* Excluded from this release type: DocumentStorageServiceProxy */
65
+
66
+ /* Excluded from this release type: DriverErrorTelemetryProps */
67
+
68
+ /* Excluded from this release type: emptyMessageStream */
69
+
70
+ /* Excluded from this release type: FluidInvalidSchemaError */
71
+
72
+ /* Excluded from this release type: GenericNetworkError */
73
+
74
+ /* Excluded from this release type: getDocAttributesFromProtocolSummary */
75
+
76
+ /* Excluded from this release type: getQuorumValuesFromProtocolSummary */
77
+
78
+ /* Excluded from this release type: getRetryDelayFromError */
79
+
80
+ /* Excluded from this release type: getRetryDelaySecondsFromError */
81
+
82
+ /**
83
+ * @public
84
+ */
85
+ export declare interface ICompressionStorageConfig {
86
+ algorithm: SummaryCompressionAlgorithm;
87
+ minSizeToCompress: number;
88
+ }
89
+
90
+ /* Excluded from this release type: IDeltasFetchResult */
91
+
92
+ /* Excluded from this release type: IFluidErrorBase */
93
+
94
+ /* Excluded from this release type: InsecureUrlResolver */
95
+
96
+ /* Excluded from this release type: IProgress */
97
+
98
+ /* Excluded from this release type: isCombinedAppAndProtocolSummary */
99
+
100
+ /* Excluded from this release type: isOnline */
101
+
102
+ /* Excluded from this release type: isRuntimeMessage */
103
+
104
+ /* Excluded from this release type: LocationRedirectionError */
105
+
106
+ /* Excluded from this release type: LoggingError */
107
+
108
+ /* Excluded from this release type: logNetworkFailure */
109
+
110
+ /* Excluded from this release type: MessageType2 */
111
+
112
+ /* Excluded from this release type: NetworkErrorBasic */
113
+
114
+ /* Excluded from this release type: NonRetryableError */
115
+
116
+ /* Excluded from this release type: OnlineStatus */
117
+
118
+ /* Excluded from this release type: ParallelRequests */
119
+
120
+ /* Excluded from this release type: PrefetchDocumentStorageService */
121
+
122
+ /* Excluded from this release type: Queue */
123
+
124
+ /**
125
+ * @alpha
126
+ */
127
+ export declare class RateLimiter {
128
+ private maxRequests;
129
+ private readonly tasks;
130
+ constructor(maxRequests: number);
131
+ get waitQueueLength(): number;
132
+ protected readonly release: () => void;
133
+ protected acquire(): Promise<void>;
134
+ schedule<T>(work: () => Promise<T>): Promise<T>;
135
+ }
136
+
137
+ /* Excluded from this release type: readAndParse */
138
+
139
+ /* Excluded from this release type: requestOps */
140
+
141
+ /* Excluded from this release type: RetryableError */
142
+
143
+ /* Excluded from this release type: runWithRetry */
144
+
145
+ /* Excluded from this release type: streamFromMessages */
146
+
147
+ /* Excluded from this release type: streamObserver */
148
+
149
+ /**
150
+ * @public
151
+ */
152
+ export declare enum SummaryCompressionAlgorithm {
153
+ None = 0,
154
+ LZ4 = 1
155
+ }
156
+
157
+ /* Excluded from this release type: ThrottlingError */
158
+
159
+ /* Excluded from this release type: TreeTreeEntry */
160
+
161
+ /* Excluded from this release type: UsageError */
162
+
163
+ export { }
@@ -0,0 +1,178 @@
1
+ import { FetchSource } from '@fluidframework/driver-definitions';
2
+ import { IAttachment } from '@fluidframework/protocol-definitions';
3
+ import { IAuthorizationError } from '@fluidframework/driver-definitions';
4
+ import { IBlob } from '@fluidframework/protocol-definitions';
5
+ import { ICommittedProposal } from '@fluidframework/protocol-definitions';
6
+ import { ICreateBlobResponse } from '@fluidframework/protocol-definitions';
7
+ import { IDeltasFetchResult } from '@fluidframework/driver-definitions';
8
+ import { IDocumentAttributes } from '@fluidframework/protocol-definitions';
9
+ import { IDocumentMessage } from '@fluidframework/protocol-definitions';
10
+ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
11
+ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
12
+ import { IDocumentStorageServicePolicies } from '@fluidframework/driver-definitions';
13
+ import { IDriverErrorBase } from '@fluidframework/driver-definitions';
14
+ import { IFluidErrorBase } from '@fluidframework/telemetry-utils';
15
+ import { ILocationRedirectionError } from '@fluidframework/driver-definitions';
16
+ import { IRequest } from '@fluidframework/core-interfaces';
17
+ import { IResolvedUrl } from '@fluidframework/driver-definitions';
18
+ import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
19
+ import { ISnapshotTree } from '@fluidframework/protocol-definitions';
20
+ import { IStream } from '@fluidframework/driver-definitions';
21
+ import { IStreamResult } from '@fluidframework/driver-definitions';
22
+ import { ISummaryContext } from '@fluidframework/driver-definitions';
23
+ import { ISummaryHandle } from '@fluidframework/protocol-definitions';
24
+ import { ISummaryTree } from '@fluidframework/protocol-definitions';
25
+ import { ITelemetryErrorEvent } from '@fluidframework/core-interfaces';
26
+ import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
27
+ import { ITelemetryProperties } from '@fluidframework/core-interfaces';
28
+ import { IThrottlingWarning } from '@fluidframework/driver-definitions';
29
+ import { ITree } from '@fluidframework/protocol-definitions';
30
+ import { ITreeEntry } from '@fluidframework/protocol-definitions';
31
+ import { IUrlResolver } from '@fluidframework/driver-definitions';
32
+ import { IVersion } from '@fluidframework/protocol-definitions';
33
+ import { LoaderCachingPolicy } from '@fluidframework/driver-definitions';
34
+ import { LoggingError } from '@fluidframework/telemetry-utils';
35
+
36
+ /* Excluded from this release type: applyStorageCompression */
37
+
38
+ /* Excluded from this release type: AttachmentTreeEntry */
39
+
40
+ /* Excluded from this release type: AuthorizationError */
41
+
42
+ /* Excluded from this release type: blobHeadersBlobName */
43
+
44
+ /* Excluded from this release type: BlobTreeEntry */
45
+
46
+ /* Excluded from this release type: buildSnapshotTree */
47
+
48
+ /* Excluded from this release type: calculateMaxWaitTime */
49
+
50
+ /* Excluded from this release type: canBeCoalescedByService */
51
+
52
+ /* Excluded from this release type: canRetryOnError */
53
+
54
+ /* Excluded from this release type: CombinedAppAndProtocolSummary */
55
+
56
+ /* Excluded from this release type: convertSummaryTreeToSnapshotITree */
57
+
58
+ /* Excluded from this release type: createGenericNetworkError */
59
+
60
+ /* Excluded from this release type: createWriteError */
61
+
62
+ /* Excluded from this release type: DeltaStreamConnectionForbiddenError */
63
+
64
+ /* Excluded from this release type: DocumentStorageServiceProxy */
65
+
66
+ /* Excluded from this release type: DriverErrorTelemetryProps */
67
+
68
+ /* Excluded from this release type: emptyMessageStream */
69
+
70
+ /* Excluded from this release type: FetchSource */
71
+
72
+ /* Excluded from this release type: FluidInvalidSchemaError */
73
+
74
+ /* Excluded from this release type: GenericNetworkError */
75
+
76
+ /* Excluded from this release type: getDocAttributesFromProtocolSummary */
77
+
78
+ /* Excluded from this release type: getQuorumValuesFromProtocolSummary */
79
+
80
+ /* Excluded from this release type: getRetryDelayFromError */
81
+
82
+ /* Excluded from this release type: getRetryDelaySecondsFromError */
83
+
84
+ /* Excluded from this release type: IAuthorizationError */
85
+
86
+ /**
87
+ * @public
88
+ */
89
+ export declare interface ICompressionStorageConfig {
90
+ algorithm: SummaryCompressionAlgorithm;
91
+ minSizeToCompress: number;
92
+ }
93
+
94
+ /* Excluded from this release type: IDeltasFetchResult */
95
+
96
+ /* Excluded from this release type: IDocumentServiceFactory */
97
+
98
+ /* Excluded from this release type: IDocumentStorageService */
99
+
100
+ /* Excluded from this release type: IDocumentStorageServicePolicies */
101
+
102
+ /* Excluded from this release type: IFluidErrorBase */
103
+
104
+ /* Excluded from this release type: ILocationRedirectionError */
105
+
106
+ /* Excluded from this release type: InsecureUrlResolver */
107
+
108
+ /* Excluded from this release type: IProgress */
109
+
110
+ /* Excluded from this release type: IResolvedUrl */
111
+
112
+ /* Excluded from this release type: isCombinedAppAndProtocolSummary */
113
+
114
+ /* Excluded from this release type: isOnline */
115
+
116
+ /* Excluded from this release type: isRuntimeMessage */
117
+
118
+ /* Excluded from this release type: IStream */
119
+
120
+ /* Excluded from this release type: IStreamResult */
121
+
122
+ /* Excluded from this release type: ISummaryContext */
123
+
124
+ /* Excluded from this release type: IThrottlingWarning */
125
+
126
+ /* Excluded from this release type: IUrlResolver */
127
+
128
+ /* Excluded from this release type: LoaderCachingPolicy */
129
+
130
+ /* Excluded from this release type: LocationRedirectionError */
131
+
132
+ /* Excluded from this release type: LoggingError */
133
+
134
+ /* Excluded from this release type: logNetworkFailure */
135
+
136
+ /* Excluded from this release type: MessageType2 */
137
+
138
+ /* Excluded from this release type: NetworkErrorBasic */
139
+
140
+ /* Excluded from this release type: NonRetryableError */
141
+
142
+ /* Excluded from this release type: OnlineStatus */
143
+
144
+ /* Excluded from this release type: ParallelRequests */
145
+
146
+ /* Excluded from this release type: PrefetchDocumentStorageService */
147
+
148
+ /* Excluded from this release type: Queue */
149
+
150
+ /* Excluded from this release type: RateLimiter */
151
+
152
+ /* Excluded from this release type: readAndParse */
153
+
154
+ /* Excluded from this release type: requestOps */
155
+
156
+ /* Excluded from this release type: RetryableError */
157
+
158
+ /* Excluded from this release type: runWithRetry */
159
+
160
+ /* Excluded from this release type: streamFromMessages */
161
+
162
+ /* Excluded from this release type: streamObserver */
163
+
164
+ /**
165
+ * @public
166
+ */
167
+ export declare enum SummaryCompressionAlgorithm {
168
+ None = 0,
169
+ LZ4 = 1
170
+ }
171
+
172
+ /* Excluded from this release type: ThrottlingError */
173
+
174
+ /* Excluded from this release type: TreeTreeEntry */
175
+
176
+ /* Excluded from this release type: UsageError */
177
+
178
+ export { }
@@ -0,0 +1,178 @@
1
+ import { FetchSource } from '@fluidframework/driver-definitions';
2
+ import { IAttachment } from '@fluidframework/protocol-definitions';
3
+ import { IAuthorizationError } from '@fluidframework/driver-definitions';
4
+ import { IBlob } from '@fluidframework/protocol-definitions';
5
+ import { ICommittedProposal } from '@fluidframework/protocol-definitions';
6
+ import { ICreateBlobResponse } from '@fluidframework/protocol-definitions';
7
+ import { IDeltasFetchResult } from '@fluidframework/driver-definitions';
8
+ import { IDocumentAttributes } from '@fluidframework/protocol-definitions';
9
+ import { IDocumentMessage } from '@fluidframework/protocol-definitions';
10
+ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
11
+ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
12
+ import { IDocumentStorageServicePolicies } from '@fluidframework/driver-definitions';
13
+ import { IDriverErrorBase } from '@fluidframework/driver-definitions';
14
+ import { IFluidErrorBase } from '@fluidframework/telemetry-utils';
15
+ import { ILocationRedirectionError } from '@fluidframework/driver-definitions';
16
+ import { IRequest } from '@fluidframework/core-interfaces';
17
+ import { IResolvedUrl } from '@fluidframework/driver-definitions';
18
+ import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
19
+ import { ISnapshotTree } from '@fluidframework/protocol-definitions';
20
+ import { IStream } from '@fluidframework/driver-definitions';
21
+ import { IStreamResult } from '@fluidframework/driver-definitions';
22
+ import { ISummaryContext } from '@fluidframework/driver-definitions';
23
+ import { ISummaryHandle } from '@fluidframework/protocol-definitions';
24
+ import { ISummaryTree } from '@fluidframework/protocol-definitions';
25
+ import { ITelemetryErrorEvent } from '@fluidframework/core-interfaces';
26
+ import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
27
+ import { ITelemetryProperties } from '@fluidframework/core-interfaces';
28
+ import { IThrottlingWarning } from '@fluidframework/driver-definitions';
29
+ import { ITree } from '@fluidframework/protocol-definitions';
30
+ import { ITreeEntry } from '@fluidframework/protocol-definitions';
31
+ import { IUrlResolver } from '@fluidframework/driver-definitions';
32
+ import { IVersion } from '@fluidframework/protocol-definitions';
33
+ import { LoaderCachingPolicy } from '@fluidframework/driver-definitions';
34
+ import { LoggingError } from '@fluidframework/telemetry-utils';
35
+
36
+ /* Excluded from this release type: applyStorageCompression */
37
+
38
+ /* Excluded from this release type: AttachmentTreeEntry */
39
+
40
+ /* Excluded from this release type: AuthorizationError */
41
+
42
+ /* Excluded from this release type: blobHeadersBlobName */
43
+
44
+ /* Excluded from this release type: BlobTreeEntry */
45
+
46
+ /* Excluded from this release type: buildSnapshotTree */
47
+
48
+ /* Excluded from this release type: calculateMaxWaitTime */
49
+
50
+ /* Excluded from this release type: canBeCoalescedByService */
51
+
52
+ /* Excluded from this release type: canRetryOnError */
53
+
54
+ /* Excluded from this release type: CombinedAppAndProtocolSummary */
55
+
56
+ /* Excluded from this release type: convertSummaryTreeToSnapshotITree */
57
+
58
+ /* Excluded from this release type: createGenericNetworkError */
59
+
60
+ /* Excluded from this release type: createWriteError */
61
+
62
+ /* Excluded from this release type: DeltaStreamConnectionForbiddenError */
63
+
64
+ /* Excluded from this release type: DocumentStorageServiceProxy */
65
+
66
+ /* Excluded from this release type: DriverErrorTelemetryProps */
67
+
68
+ /* Excluded from this release type: emptyMessageStream */
69
+
70
+ /* Excluded from this release type: FetchSource */
71
+
72
+ /* Excluded from this release type: FluidInvalidSchemaError */
73
+
74
+ /* Excluded from this release type: GenericNetworkError */
75
+
76
+ /* Excluded from this release type: getDocAttributesFromProtocolSummary */
77
+
78
+ /* Excluded from this release type: getQuorumValuesFromProtocolSummary */
79
+
80
+ /* Excluded from this release type: getRetryDelayFromError */
81
+
82
+ /* Excluded from this release type: getRetryDelaySecondsFromError */
83
+
84
+ /* Excluded from this release type: IAuthorizationError */
85
+
86
+ /**
87
+ * @public
88
+ */
89
+ export declare interface ICompressionStorageConfig {
90
+ algorithm: SummaryCompressionAlgorithm;
91
+ minSizeToCompress: number;
92
+ }
93
+
94
+ /* Excluded from this release type: IDeltasFetchResult */
95
+
96
+ /* Excluded from this release type: IDocumentServiceFactory */
97
+
98
+ /* Excluded from this release type: IDocumentStorageService */
99
+
100
+ /* Excluded from this release type: IDocumentStorageServicePolicies */
101
+
102
+ /* Excluded from this release type: IFluidErrorBase */
103
+
104
+ /* Excluded from this release type: ILocationRedirectionError */
105
+
106
+ /* Excluded from this release type: InsecureUrlResolver */
107
+
108
+ /* Excluded from this release type: IProgress */
109
+
110
+ /* Excluded from this release type: IResolvedUrl */
111
+
112
+ /* Excluded from this release type: isCombinedAppAndProtocolSummary */
113
+
114
+ /* Excluded from this release type: isOnline */
115
+
116
+ /* Excluded from this release type: isRuntimeMessage */
117
+
118
+ /* Excluded from this release type: IStream */
119
+
120
+ /* Excluded from this release type: IStreamResult */
121
+
122
+ /* Excluded from this release type: ISummaryContext */
123
+
124
+ /* Excluded from this release type: IThrottlingWarning */
125
+
126
+ /* Excluded from this release type: IUrlResolver */
127
+
128
+ /* Excluded from this release type: LoaderCachingPolicy */
129
+
130
+ /* Excluded from this release type: LocationRedirectionError */
131
+
132
+ /* Excluded from this release type: LoggingError */
133
+
134
+ /* Excluded from this release type: logNetworkFailure */
135
+
136
+ /* Excluded from this release type: MessageType2 */
137
+
138
+ /* Excluded from this release type: NetworkErrorBasic */
139
+
140
+ /* Excluded from this release type: NonRetryableError */
141
+
142
+ /* Excluded from this release type: OnlineStatus */
143
+
144
+ /* Excluded from this release type: ParallelRequests */
145
+
146
+ /* Excluded from this release type: PrefetchDocumentStorageService */
147
+
148
+ /* Excluded from this release type: Queue */
149
+
150
+ /* Excluded from this release type: RateLimiter */
151
+
152
+ /* Excluded from this release type: readAndParse */
153
+
154
+ /* Excluded from this release type: requestOps */
155
+
156
+ /* Excluded from this release type: RetryableError */
157
+
158
+ /* Excluded from this release type: runWithRetry */
159
+
160
+ /* Excluded from this release type: streamFromMessages */
161
+
162
+ /* Excluded from this release type: streamObserver */
163
+
164
+ /**
165
+ * @public
166
+ */
167
+ export declare enum SummaryCompressionAlgorithm {
168
+ None = 0,
169
+ LZ4 = 1
170
+ }
171
+
172
+ /* Excluded from this release type: ThrottlingError */
173
+
174
+ /* Excluded from this release type: TreeTreeEntry */
175
+
176
+ /* Excluded from this release type: UsageError */
177
+
178
+ export { }