@azure/storage-blob-changefeed 12.0.0-alpha.20250407.1 → 12.0.0-alpha.20250516.2

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 (467) hide show
  1. package/README.md +82 -37
  2. package/{types/latest/storage-blob-changefeed/src → dist/browser}/AvroReaderFactory.d.ts +2 -2
  3. package/dist/browser/AvroReaderFactory.d.ts.map +1 -0
  4. package/{dist-esm/storage-blob-changefeed/src → dist/browser}/AvroReaderFactory.js +1 -1
  5. package/dist/browser/AvroReaderFactory.js.map +1 -0
  6. package/{types/latest/storage-blob-changefeed/src → dist/browser}/BlobChangeFeedClient.d.ts +74 -56
  7. package/dist/browser/BlobChangeFeedClient.d.ts.map +1 -0
  8. package/{dist-esm/storage-blob-changefeed/src → dist/browser}/BlobChangeFeedClient.js +52 -44
  9. package/dist/browser/BlobChangeFeedClient.js.map +1 -0
  10. package/{types/latest/storage-blob-changefeed/src → dist/browser}/ChangeFeed.d.ts +4 -4
  11. package/dist/browser/ChangeFeed.d.ts.map +1 -0
  12. package/{dist-esm/storage-blob-changefeed/src → dist/browser}/ChangeFeed.js +2 -2
  13. package/dist/browser/ChangeFeed.js.map +1 -0
  14. package/{types/latest/storage-blob-changefeed/src → dist/browser}/ChangeFeedFactory.d.ts +3 -3
  15. package/dist/browser/ChangeFeedFactory.d.ts.map +1 -0
  16. package/{dist-esm/storage-blob-changefeed/src → dist/browser}/ChangeFeedFactory.js +14 -11
  17. package/dist/browser/ChangeFeedFactory.js.map +1 -0
  18. package/{types/latest/storage-blob-changefeed/src → dist/browser}/Chunk.d.ts +2 -3
  19. package/dist/browser/Chunk.d.ts.map +1 -0
  20. package/{dist-esm/storage-blob-changefeed/src → dist/browser}/Chunk.js +1 -1
  21. package/dist/browser/Chunk.js.map +1 -0
  22. package/{types/latest/storage-blob-changefeed/src → dist/browser}/ChunkFactory.d.ts +3 -3
  23. package/dist/browser/ChunkFactory.d.ts.map +1 -0
  24. package/{dist-esm/storage-blob-changefeed/src → dist/browser}/ChunkFactory.js +3 -3
  25. package/dist/browser/ChunkFactory.js.map +1 -0
  26. package/{types/latest/storage-blob-changefeed/src → dist/browser}/LazyLoadingBlobStream.d.ts +2 -2
  27. package/dist/browser/LazyLoadingBlobStream.d.ts.map +1 -0
  28. package/{dist-esm/storage-blob-changefeed/src → dist/browser}/LazyLoadingBlobStream.js +2 -2
  29. package/dist/browser/LazyLoadingBlobStream.js.map +1 -0
  30. package/{types/latest/storage-blob-changefeed/src → dist/browser}/LazyLoadingBlobStreamFactory.d.ts +2 -2
  31. package/dist/browser/LazyLoadingBlobStreamFactory.d.ts.map +1 -0
  32. package/{dist-esm/storage-blob-changefeed/src → dist/browser}/LazyLoadingBlobStreamFactory.js +1 -1
  33. package/dist/browser/LazyLoadingBlobStreamFactory.js.map +1 -0
  34. package/{types/latest/storage-blob-changefeed/src → dist/browser}/Segment.d.ts +3 -3
  35. package/dist/browser/Segment.d.ts.map +1 -0
  36. package/{dist-esm/storage-blob-changefeed/src → dist/browser}/Segment.js +1 -1
  37. package/dist/browser/Segment.js.map +1 -0
  38. package/{types/latest/storage-blob-changefeed/src → dist/browser}/SegmentFactory.d.ts +3 -3
  39. package/dist/browser/SegmentFactory.d.ts.map +1 -0
  40. package/{dist-esm/storage-blob-changefeed/src → dist/browser}/SegmentFactory.js +5 -5
  41. package/dist/browser/SegmentFactory.js.map +1 -0
  42. package/{types/latest/storage-blob-changefeed/src → dist/browser}/Shard.d.ts +4 -4
  43. package/dist/browser/Shard.d.ts.map +1 -0
  44. package/{dist-esm/storage-blob-changefeed/src → dist/browser}/Shard.js +1 -1
  45. package/dist/browser/Shard.js.map +1 -0
  46. package/{types/latest/storage-blob-changefeed/src → dist/browser}/ShardFactory.d.ts +3 -3
  47. package/dist/browser/ShardFactory.d.ts.map +1 -0
  48. package/{dist-esm/storage-blob-changefeed/src → dist/browser}/ShardFactory.js +2 -2
  49. package/dist/browser/ShardFactory.js.map +1 -0
  50. package/dist/browser/index.d.ts +4 -0
  51. package/dist/browser/index.d.ts.map +1 -0
  52. package/dist/browser/index.js +6 -0
  53. package/dist/browser/index.js.map +1 -0
  54. package/dist/browser/log.d.ts.map +1 -0
  55. package/dist/browser/log.js.map +1 -0
  56. package/dist/browser/models/BlobChangeFeedEvent.d.ts.map +1 -0
  57. package/dist/browser/models/BlobChangeFeedEvent.js.map +1 -0
  58. package/dist/browser/models/ChangeFeedCursor.d.ts.map +1 -0
  59. package/dist/browser/models/ChangeFeedCursor.js.map +1 -0
  60. package/dist/browser/models/models.d.ts.map +1 -0
  61. package/dist/browser/models/models.js.map +1 -0
  62. package/dist/browser/package.json +3 -0
  63. package/dist/browser/utils/constants.d.ts.map +1 -0
  64. package/dist/browser/utils/constants.js.map +1 -0
  65. package/dist/browser/utils/tracing.d.ts.map +1 -0
  66. package/{dist-esm/storage-blob-changefeed/src → dist/browser}/utils/tracing.js +1 -1
  67. package/dist/browser/utils/tracing.js.map +1 -0
  68. package/dist/browser/utils/utils.browser.d.ts.map +1 -0
  69. package/dist/browser/utils/utils.browser.js.map +1 -0
  70. package/{types/latest/storage-blob-changefeed/src → dist/browser}/utils/utils.common.d.ts +1 -1
  71. package/dist/browser/utils/utils.common.d.ts.map +1 -0
  72. package/{dist-esm/storage-blob-changefeed/src → dist/browser}/utils/utils.common.js +2 -2
  73. package/dist/browser/utils/utils.common.js.map +1 -0
  74. package/{types/latest/storage-blob-changefeed/src → dist/browser}/utils/utils.node.d.ts +1 -1
  75. package/dist/browser/utils/utils.node.d.ts.map +1 -0
  76. package/{dist-esm/storage-blob-changefeed/src → dist/browser}/utils/utils.node.js +1 -1
  77. package/dist/browser/utils/utils.node.js.map +1 -0
  78. package/dist/commonjs/AvroReaderFactory.d.ts +10 -0
  79. package/dist/commonjs/AvroReaderFactory.d.ts.map +1 -0
  80. package/dist/commonjs/AvroReaderFactory.js +21 -0
  81. package/dist/commonjs/AvroReaderFactory.js.map +1 -0
  82. package/dist/commonjs/BlobChangeFeedClient.d.ts +201 -0
  83. package/dist/commonjs/BlobChangeFeedClient.d.ts.map +1 -0
  84. package/dist/commonjs/BlobChangeFeedClient.js +239 -0
  85. package/dist/commonjs/BlobChangeFeedClient.js.map +1 -0
  86. package/dist/commonjs/ChangeFeed.d.ts +37 -0
  87. package/dist/commonjs/ChangeFeed.d.ts.map +1 -0
  88. package/dist/commonjs/ChangeFeed.js +97 -0
  89. package/dist/commonjs/ChangeFeed.js.map +1 -0
  90. package/dist/commonjs/ChangeFeedFactory.d.ts +13 -0
  91. package/dist/commonjs/ChangeFeedFactory.d.ts.map +1 -0
  92. package/dist/commonjs/ChangeFeedFactory.js +124 -0
  93. package/dist/commonjs/ChangeFeedFactory.js.map +1 -0
  94. package/dist/commonjs/Chunk.d.ts +27 -0
  95. package/dist/commonjs/Chunk.d.ts.map +1 -0
  96. package/dist/commonjs/Chunk.js +44 -0
  97. package/dist/commonjs/Chunk.js.map +1 -0
  98. package/dist/commonjs/ChunkFactory.d.ts +23 -0
  99. package/dist/commonjs/ChunkFactory.d.ts.map +1 -0
  100. package/dist/commonjs/ChunkFactory.js +34 -0
  101. package/dist/commonjs/ChunkFactory.js.map +1 -0
  102. package/dist/commonjs/LazyLoadingBlobStream.d.ts +46 -0
  103. package/dist/commonjs/LazyLoadingBlobStream.d.ts.map +1 -0
  104. package/dist/commonjs/LazyLoadingBlobStream.js +85 -0
  105. package/dist/commonjs/LazyLoadingBlobStream.js.map +1 -0
  106. package/dist/commonjs/LazyLoadingBlobStreamFactory.d.ts +7 -0
  107. package/dist/commonjs/LazyLoadingBlobStreamFactory.d.ts.map +1 -0
  108. package/dist/commonjs/LazyLoadingBlobStreamFactory.js +13 -0
  109. package/dist/commonjs/LazyLoadingBlobStreamFactory.js.map +1 -0
  110. package/dist/commonjs/Segment.d.ts +29 -0
  111. package/dist/commonjs/Segment.d.ts.map +1 -0
  112. package/dist/commonjs/Segment.js +64 -0
  113. package/dist/commonjs/Segment.js.map +1 -0
  114. package/dist/commonjs/SegmentFactory.d.ts +29 -0
  115. package/dist/commonjs/SegmentFactory.d.ts.map +1 -0
  116. package/dist/commonjs/SegmentFactory.js +50 -0
  117. package/dist/commonjs/SegmentFactory.js.map +1 -0
  118. package/dist/commonjs/Shard.d.ts +28 -0
  119. package/dist/commonjs/Shard.d.ts.map +1 -0
  120. package/dist/commonjs/Shard.js +45 -0
  121. package/dist/commonjs/Shard.js.map +1 -0
  122. package/dist/commonjs/ShardFactory.d.ts +21 -0
  123. package/dist/commonjs/ShardFactory.d.ts.map +1 -0
  124. package/dist/commonjs/ShardFactory.js +72 -0
  125. package/dist/commonjs/ShardFactory.js.map +1 -0
  126. package/dist/commonjs/index.d.ts +4 -0
  127. package/dist/commonjs/index.d.ts.map +1 -0
  128. package/dist/commonjs/index.js +9 -0
  129. package/dist/commonjs/index.js.map +1 -0
  130. package/dist/commonjs/log.d.ts +5 -0
  131. package/dist/commonjs/log.d.ts.map +1 -0
  132. package/dist/commonjs/log.js +11 -0
  133. package/dist/commonjs/log.js.map +1 -0
  134. package/dist/commonjs/models/BlobChangeFeedEvent.d.ts +233 -0
  135. package/dist/commonjs/models/BlobChangeFeedEvent.d.ts.map +1 -0
  136. package/dist/commonjs/models/BlobChangeFeedEvent.js +5 -0
  137. package/dist/commonjs/models/BlobChangeFeedEvent.js.map +1 -0
  138. package/dist/commonjs/models/ChangeFeedCursor.d.ts +17 -0
  139. package/dist/commonjs/models/ChangeFeedCursor.d.ts.map +1 -0
  140. package/dist/commonjs/models/ChangeFeedCursor.js +5 -0
  141. package/dist/commonjs/models/ChangeFeedCursor.js.map +1 -0
  142. package/dist/commonjs/models/models.d.ts +23 -0
  143. package/dist/commonjs/models/models.d.ts.map +1 -0
  144. package/dist/commonjs/models/models.js +5 -0
  145. package/dist/commonjs/models/models.js.map +1 -0
  146. package/dist/commonjs/package.json +3 -0
  147. package/{types/latest → dist/commonjs}/tsdoc-metadata.json +1 -1
  148. package/dist/commonjs/utils/constants.d.ts +9 -0
  149. package/dist/commonjs/utils/constants.d.ts.map +1 -0
  150. package/dist/commonjs/utils/constants.js +14 -0
  151. package/dist/commonjs/utils/constants.js.map +1 -0
  152. package/dist/commonjs/utils/tracing.d.ts +6 -0
  153. package/dist/commonjs/utils/tracing.d.ts.map +1 -0
  154. package/dist/commonjs/utils/tracing.js +17 -0
  155. package/dist/commonjs/utils/tracing.js.map +1 -0
  156. package/dist/commonjs/utils/utils.browser.d.ts +14 -0
  157. package/dist/commonjs/utils/utils.browser.d.ts.map +1 -0
  158. package/dist/commonjs/utils/utils.browser.js +34 -0
  159. package/dist/commonjs/utils/utils.browser.js.map +1 -0
  160. package/dist/commonjs/utils/utils.common.d.ts +37 -0
  161. package/dist/commonjs/utils/utils.common.d.ts.map +1 -0
  162. package/dist/commonjs/utils/utils.common.js +207 -0
  163. package/dist/commonjs/utils/utils.common.js.map +1 -0
  164. package/dist/commonjs/utils/utils.node.d.ts +14 -0
  165. package/dist/commonjs/utils/utils.node.d.ts.map +1 -0
  166. package/dist/commonjs/utils/utils.node.js +32 -0
  167. package/dist/commonjs/utils/utils.node.js.map +1 -0
  168. package/dist/esm/AvroReaderFactory.d.ts +10 -0
  169. package/dist/esm/AvroReaderFactory.d.ts.map +1 -0
  170. package/dist/esm/AvroReaderFactory.js +17 -0
  171. package/dist/esm/AvroReaderFactory.js.map +1 -0
  172. package/dist/esm/BlobChangeFeedClient.d.ts +201 -0
  173. package/dist/esm/BlobChangeFeedClient.d.ts.map +1 -0
  174. package/dist/esm/BlobChangeFeedClient.js +233 -0
  175. package/dist/esm/BlobChangeFeedClient.js.map +1 -0
  176. package/dist/esm/ChangeFeed.d.ts +37 -0
  177. package/dist/esm/ChangeFeed.d.ts.map +1 -0
  178. package/dist/esm/ChangeFeed.js +93 -0
  179. package/dist/esm/ChangeFeed.js.map +1 -0
  180. package/dist/esm/ChangeFeedFactory.d.ts +13 -0
  181. package/dist/esm/ChangeFeedFactory.d.ts.map +1 -0
  182. package/dist/esm/ChangeFeedFactory.js +120 -0
  183. package/dist/esm/ChangeFeedFactory.js.map +1 -0
  184. package/dist/esm/Chunk.d.ts +27 -0
  185. package/dist/esm/Chunk.d.ts.map +1 -0
  186. package/dist/esm/Chunk.js +40 -0
  187. package/dist/esm/Chunk.js.map +1 -0
  188. package/dist/esm/ChunkFactory.d.ts +23 -0
  189. package/dist/esm/ChunkFactory.d.ts.map +1 -0
  190. package/dist/esm/ChunkFactory.js +30 -0
  191. package/dist/esm/ChunkFactory.js.map +1 -0
  192. package/dist/esm/LazyLoadingBlobStream.d.ts +46 -0
  193. package/dist/esm/LazyLoadingBlobStream.d.ts.map +1 -0
  194. package/dist/esm/LazyLoadingBlobStream.js +81 -0
  195. package/dist/esm/LazyLoadingBlobStream.js.map +1 -0
  196. package/dist/esm/LazyLoadingBlobStreamFactory.d.ts +7 -0
  197. package/dist/esm/LazyLoadingBlobStreamFactory.d.ts.map +1 -0
  198. package/dist/esm/LazyLoadingBlobStreamFactory.js +9 -0
  199. package/dist/esm/LazyLoadingBlobStreamFactory.js.map +1 -0
  200. package/dist/esm/Segment.d.ts +29 -0
  201. package/dist/esm/Segment.d.ts.map +1 -0
  202. package/dist/esm/Segment.js +60 -0
  203. package/dist/esm/Segment.js.map +1 -0
  204. package/dist/esm/SegmentFactory.d.ts +29 -0
  205. package/dist/esm/SegmentFactory.d.ts.map +1 -0
  206. package/dist/esm/SegmentFactory.js +46 -0
  207. package/dist/esm/SegmentFactory.js.map +1 -0
  208. package/dist/esm/Shard.d.ts +28 -0
  209. package/dist/esm/Shard.d.ts.map +1 -0
  210. package/dist/esm/Shard.js +41 -0
  211. package/dist/esm/Shard.js.map +1 -0
  212. package/dist/esm/ShardFactory.d.ts +21 -0
  213. package/dist/esm/ShardFactory.d.ts.map +1 -0
  214. package/dist/esm/ShardFactory.js +68 -0
  215. package/dist/esm/ShardFactory.js.map +1 -0
  216. package/dist/esm/index.d.ts +4 -0
  217. package/dist/esm/index.d.ts.map +1 -0
  218. package/dist/esm/index.js +6 -0
  219. package/dist/esm/index.js.map +1 -0
  220. package/dist/esm/log.d.ts +5 -0
  221. package/dist/esm/log.d.ts.map +1 -0
  222. package/dist/esm/log.js +8 -0
  223. package/dist/esm/log.js.map +1 -0
  224. package/dist/esm/models/BlobChangeFeedEvent.d.ts +233 -0
  225. package/dist/esm/models/BlobChangeFeedEvent.d.ts.map +1 -0
  226. package/{dist-esm/storage-internal-avro/src/AvroReadable.js → dist/esm/models/BlobChangeFeedEvent.js} +2 -3
  227. package/dist/esm/models/BlobChangeFeedEvent.js.map +1 -0
  228. package/dist/esm/models/ChangeFeedCursor.d.ts +17 -0
  229. package/dist/esm/models/ChangeFeedCursor.d.ts.map +1 -0
  230. package/dist/esm/models/ChangeFeedCursor.js +4 -0
  231. package/dist/esm/models/ChangeFeedCursor.js.map +1 -0
  232. package/dist/esm/models/models.d.ts +23 -0
  233. package/dist/esm/models/models.d.ts.map +1 -0
  234. package/dist/esm/models/models.js +4 -0
  235. package/dist/esm/models/models.js.map +1 -0
  236. package/dist/esm/package.json +3 -0
  237. package/dist/esm/utils/constants.d.ts +9 -0
  238. package/dist/esm/utils/constants.d.ts.map +1 -0
  239. package/dist/esm/utils/constants.js +11 -0
  240. package/dist/esm/utils/constants.js.map +1 -0
  241. package/dist/esm/utils/tracing.d.ts +6 -0
  242. package/dist/esm/utils/tracing.d.ts.map +1 -0
  243. package/dist/esm/utils/tracing.js +14 -0
  244. package/dist/esm/utils/tracing.js.map +1 -0
  245. package/dist/esm/utils/utils.browser.d.ts +14 -0
  246. package/dist/esm/utils/utils.browser.d.ts.map +1 -0
  247. package/dist/esm/utils/utils.browser.js +29 -0
  248. package/dist/esm/utils/utils.browser.js.map +1 -0
  249. package/dist/esm/utils/utils.common.d.ts +37 -0
  250. package/dist/esm/utils/utils.common.d.ts.map +1 -0
  251. package/dist/esm/utils/utils.common.js +197 -0
  252. package/dist/esm/utils/utils.common.js.map +1 -0
  253. package/dist/esm/utils/utils.node.d.ts +14 -0
  254. package/dist/esm/utils/utils.node.d.ts.map +1 -0
  255. package/dist/esm/utils/utils.node.js +28 -0
  256. package/dist/esm/utils/utils.node.js.map +1 -0
  257. package/dist/react-native/AvroReaderFactory.d.ts +10 -0
  258. package/dist/react-native/AvroReaderFactory.d.ts.map +1 -0
  259. package/dist/react-native/AvroReaderFactory.js +17 -0
  260. package/dist/react-native/AvroReaderFactory.js.map +1 -0
  261. package/dist/react-native/BlobChangeFeedClient.d.ts +201 -0
  262. package/dist/react-native/BlobChangeFeedClient.d.ts.map +1 -0
  263. package/dist/react-native/BlobChangeFeedClient.js +233 -0
  264. package/dist/react-native/BlobChangeFeedClient.js.map +1 -0
  265. package/dist/react-native/ChangeFeed.d.ts +37 -0
  266. package/dist/react-native/ChangeFeed.d.ts.map +1 -0
  267. package/dist/react-native/ChangeFeed.js +93 -0
  268. package/dist/react-native/ChangeFeed.js.map +1 -0
  269. package/dist/react-native/ChangeFeedFactory.d.ts +13 -0
  270. package/dist/react-native/ChangeFeedFactory.d.ts.map +1 -0
  271. package/dist/react-native/ChangeFeedFactory.js +120 -0
  272. package/dist/react-native/ChangeFeedFactory.js.map +1 -0
  273. package/dist/react-native/Chunk.d.ts +27 -0
  274. package/dist/react-native/Chunk.d.ts.map +1 -0
  275. package/dist/react-native/Chunk.js +40 -0
  276. package/dist/react-native/Chunk.js.map +1 -0
  277. package/dist/react-native/ChunkFactory.d.ts +23 -0
  278. package/dist/react-native/ChunkFactory.d.ts.map +1 -0
  279. package/dist/react-native/ChunkFactory.js +30 -0
  280. package/dist/react-native/ChunkFactory.js.map +1 -0
  281. package/dist/react-native/LazyLoadingBlobStream.d.ts +46 -0
  282. package/dist/react-native/LazyLoadingBlobStream.d.ts.map +1 -0
  283. package/dist/react-native/LazyLoadingBlobStream.js +81 -0
  284. package/dist/react-native/LazyLoadingBlobStream.js.map +1 -0
  285. package/dist/react-native/LazyLoadingBlobStreamFactory.d.ts +7 -0
  286. package/dist/react-native/LazyLoadingBlobStreamFactory.d.ts.map +1 -0
  287. package/dist/react-native/LazyLoadingBlobStreamFactory.js +9 -0
  288. package/dist/react-native/LazyLoadingBlobStreamFactory.js.map +1 -0
  289. package/dist/react-native/Segment.d.ts +29 -0
  290. package/dist/react-native/Segment.d.ts.map +1 -0
  291. package/dist/react-native/Segment.js +60 -0
  292. package/dist/react-native/Segment.js.map +1 -0
  293. package/dist/react-native/SegmentFactory.d.ts +29 -0
  294. package/dist/react-native/SegmentFactory.d.ts.map +1 -0
  295. package/dist/react-native/SegmentFactory.js +46 -0
  296. package/dist/react-native/SegmentFactory.js.map +1 -0
  297. package/dist/react-native/Shard.d.ts +28 -0
  298. package/dist/react-native/Shard.d.ts.map +1 -0
  299. package/dist/react-native/Shard.js +41 -0
  300. package/dist/react-native/Shard.js.map +1 -0
  301. package/dist/react-native/ShardFactory.d.ts +21 -0
  302. package/dist/react-native/ShardFactory.d.ts.map +1 -0
  303. package/dist/react-native/ShardFactory.js +68 -0
  304. package/dist/react-native/ShardFactory.js.map +1 -0
  305. package/dist/react-native/index.d.ts +4 -0
  306. package/dist/react-native/index.d.ts.map +1 -0
  307. package/dist/react-native/index.js +6 -0
  308. package/dist/react-native/index.js.map +1 -0
  309. package/dist/react-native/log.d.ts +5 -0
  310. package/dist/react-native/log.d.ts.map +1 -0
  311. package/dist/react-native/log.js +8 -0
  312. package/dist/react-native/log.js.map +1 -0
  313. package/dist/react-native/models/BlobChangeFeedEvent.d.ts +233 -0
  314. package/dist/react-native/models/BlobChangeFeedEvent.d.ts.map +1 -0
  315. package/dist/react-native/models/BlobChangeFeedEvent.js +4 -0
  316. package/dist/react-native/models/BlobChangeFeedEvent.js.map +1 -0
  317. package/dist/react-native/models/ChangeFeedCursor.d.ts +17 -0
  318. package/dist/react-native/models/ChangeFeedCursor.d.ts.map +1 -0
  319. package/dist/react-native/models/ChangeFeedCursor.js +4 -0
  320. package/dist/react-native/models/ChangeFeedCursor.js.map +1 -0
  321. package/dist/react-native/models/models.d.ts +23 -0
  322. package/dist/react-native/models/models.d.ts.map +1 -0
  323. package/dist/react-native/models/models.js +4 -0
  324. package/dist/react-native/models/models.js.map +1 -0
  325. package/dist/react-native/package.json +3 -0
  326. package/dist/react-native/utils/constants.d.ts +9 -0
  327. package/dist/react-native/utils/constants.d.ts.map +1 -0
  328. package/dist/react-native/utils/constants.js +11 -0
  329. package/dist/react-native/utils/constants.js.map +1 -0
  330. package/dist/react-native/utils/tracing.d.ts +6 -0
  331. package/dist/react-native/utils/tracing.d.ts.map +1 -0
  332. package/dist/react-native/utils/tracing.js +14 -0
  333. package/dist/react-native/utils/tracing.js.map +1 -0
  334. package/dist/react-native/utils/utils.browser.d.ts +14 -0
  335. package/dist/react-native/utils/utils.browser.d.ts.map +1 -0
  336. package/dist/react-native/utils/utils.browser.js +29 -0
  337. package/dist/react-native/utils/utils.browser.js.map +1 -0
  338. package/dist/react-native/utils/utils.common.d.ts +37 -0
  339. package/dist/react-native/utils/utils.common.d.ts.map +1 -0
  340. package/dist/react-native/utils/utils.common.js +197 -0
  341. package/dist/react-native/utils/utils.common.js.map +1 -0
  342. package/dist/react-native/utils/utils.node.d.ts +14 -0
  343. package/dist/react-native/utils/utils.node.d.ts.map +1 -0
  344. package/dist/react-native/utils/utils.node.js +28 -0
  345. package/dist/react-native/utils/utils.node.js.map +1 -0
  346. package/package.json +69 -68
  347. package/dist/index.js +0 -1577
  348. package/dist/index.js.map +0 -1
  349. package/dist-esm/storage-blob-changefeed/src/AvroReaderFactory.js.map +0 -1
  350. package/dist-esm/storage-blob-changefeed/src/BlobChangeFeedClient.js.map +0 -1
  351. package/dist-esm/storage-blob-changefeed/src/ChangeFeed.js.map +0 -1
  352. package/dist-esm/storage-blob-changefeed/src/ChangeFeedFactory.js.map +0 -1
  353. package/dist-esm/storage-blob-changefeed/src/Chunk.js.map +0 -1
  354. package/dist-esm/storage-blob-changefeed/src/ChunkFactory.js.map +0 -1
  355. package/dist-esm/storage-blob-changefeed/src/LazyLoadingBlobStream.js.map +0 -1
  356. package/dist-esm/storage-blob-changefeed/src/LazyLoadingBlobStreamFactory.js.map +0 -1
  357. package/dist-esm/storage-blob-changefeed/src/Segment.js.map +0 -1
  358. package/dist-esm/storage-blob-changefeed/src/SegmentFactory.js.map +0 -1
  359. package/dist-esm/storage-blob-changefeed/src/Shard.js.map +0 -1
  360. package/dist-esm/storage-blob-changefeed/src/ShardFactory.js.map +0 -1
  361. package/dist-esm/storage-blob-changefeed/src/index.js +0 -6
  362. package/dist-esm/storage-blob-changefeed/src/index.js.map +0 -1
  363. package/dist-esm/storage-blob-changefeed/src/log.js.map +0 -1
  364. package/dist-esm/storage-blob-changefeed/src/models/BlobChangeFeedEvent.js.map +0 -1
  365. package/dist-esm/storage-blob-changefeed/src/models/ChangeFeedCursor.js.map +0 -1
  366. package/dist-esm/storage-blob-changefeed/src/models/models.js.map +0 -1
  367. package/dist-esm/storage-blob-changefeed/src/utils/constants.js.map +0 -1
  368. package/dist-esm/storage-blob-changefeed/src/utils/tracing.js.map +0 -1
  369. package/dist-esm/storage-blob-changefeed/src/utils/utils.browser.js.map +0 -1
  370. package/dist-esm/storage-blob-changefeed/src/utils/utils.common.js.map +0 -1
  371. package/dist-esm/storage-blob-changefeed/src/utils/utils.node.js.map +0 -1
  372. package/dist-esm/storage-internal-avro/src/AvroConstants.js +0 -7
  373. package/dist-esm/storage-internal-avro/src/AvroConstants.js.map +0 -1
  374. package/dist-esm/storage-internal-avro/src/AvroParser.js +0 -317
  375. package/dist-esm/storage-internal-avro/src/AvroParser.js.map +0 -1
  376. package/dist-esm/storage-internal-avro/src/AvroReadable.js.map +0 -1
  377. package/dist-esm/storage-internal-avro/src/AvroReadableFromBlob.js +0 -47
  378. package/dist-esm/storage-internal-avro/src/AvroReadableFromBlob.js.map +0 -1
  379. package/dist-esm/storage-internal-avro/src/AvroReadableFromStream.js +0 -84
  380. package/dist-esm/storage-internal-avro/src/AvroReadableFromStream.js.map +0 -1
  381. package/dist-esm/storage-internal-avro/src/AvroReader.js +0 -106
  382. package/dist-esm/storage-internal-avro/src/AvroReader.js.map +0 -1
  383. package/dist-esm/storage-internal-avro/src/index.browser.js +0 -6
  384. package/dist-esm/storage-internal-avro/src/index.browser.js.map +0 -1
  385. package/dist-esm/storage-internal-avro/src/index.js +0 -6
  386. package/dist-esm/storage-internal-avro/src/index.js.map +0 -1
  387. package/dist-esm/storage-internal-avro/src/utils/utils.common.js +0 -16
  388. package/dist-esm/storage-internal-avro/src/utils/utils.common.js.map +0 -1
  389. package/types/latest/storage-blob-changefeed/samples-dev/blobChangeFeedClient.d.ts +0 -2
  390. package/types/latest/storage-blob-changefeed/samples-dev/blobChangeFeedClient.d.ts.map +0 -1
  391. package/types/latest/storage-blob-changefeed/samples-dev/resumeListChanges.d.ts +0 -2
  392. package/types/latest/storage-blob-changefeed/samples-dev/resumeListChanges.d.ts.map +0 -1
  393. package/types/latest/storage-blob-changefeed/src/AvroReaderFactory.d.ts.map +0 -1
  394. package/types/latest/storage-blob-changefeed/src/BlobChangeFeedClient.d.ts.map +0 -1
  395. package/types/latest/storage-blob-changefeed/src/ChangeFeed.d.ts.map +0 -1
  396. package/types/latest/storage-blob-changefeed/src/ChangeFeedFactory.d.ts.map +0 -1
  397. package/types/latest/storage-blob-changefeed/src/Chunk.d.ts.map +0 -1
  398. package/types/latest/storage-blob-changefeed/src/ChunkFactory.d.ts.map +0 -1
  399. package/types/latest/storage-blob-changefeed/src/LazyLoadingBlobStream.d.ts.map +0 -1
  400. package/types/latest/storage-blob-changefeed/src/LazyLoadingBlobStreamFactory.d.ts.map +0 -1
  401. package/types/latest/storage-blob-changefeed/src/Segment.d.ts.map +0 -1
  402. package/types/latest/storage-blob-changefeed/src/SegmentFactory.d.ts.map +0 -1
  403. package/types/latest/storage-blob-changefeed/src/Shard.d.ts.map +0 -1
  404. package/types/latest/storage-blob-changefeed/src/ShardFactory.d.ts.map +0 -1
  405. package/types/latest/storage-blob-changefeed/src/index.d.ts +0 -4
  406. package/types/latest/storage-blob-changefeed/src/index.d.ts.map +0 -1
  407. package/types/latest/storage-blob-changefeed/src/log.d.ts.map +0 -1
  408. package/types/latest/storage-blob-changefeed/src/models/BlobChangeFeedEvent.d.ts.map +0 -1
  409. package/types/latest/storage-blob-changefeed/src/models/ChangeFeedCursor.d.ts.map +0 -1
  410. package/types/latest/storage-blob-changefeed/src/models/models.d.ts.map +0 -1
  411. package/types/latest/storage-blob-changefeed/src/utils/constants.d.ts.map +0 -1
  412. package/types/latest/storage-blob-changefeed/src/utils/tracing.d.ts.map +0 -1
  413. package/types/latest/storage-blob-changefeed/src/utils/utils.browser.d.ts.map +0 -1
  414. package/types/latest/storage-blob-changefeed/src/utils/utils.common.d.ts.map +0 -1
  415. package/types/latest/storage-blob-changefeed/src/utils/utils.node.d.ts.map +0 -1
  416. package/types/latest/storage-blob-changefeed/test/blobchangefeedclient.spec.d.ts +0 -2
  417. package/types/latest/storage-blob-changefeed/test/blobchangefeedclient.spec.d.ts.map +0 -1
  418. package/types/latest/storage-blob-changefeed/test/changefeed.spec.d.ts +0 -2
  419. package/types/latest/storage-blob-changefeed/test/changefeed.spec.d.ts.map +0 -1
  420. package/types/latest/storage-blob-changefeed/test/chunk.spec.d.ts +0 -2
  421. package/types/latest/storage-blob-changefeed/test/chunk.spec.d.ts.map +0 -1
  422. package/types/latest/storage-blob-changefeed/test/segment.spec.d.ts +0 -2
  423. package/types/latest/storage-blob-changefeed/test/segment.spec.d.ts.map +0 -1
  424. package/types/latest/storage-blob-changefeed/test/shard.spec.d.ts +0 -2
  425. package/types/latest/storage-blob-changefeed/test/shard.spec.d.ts.map +0 -1
  426. package/types/latest/storage-blob-changefeed/test/utils/index.d.ts +0 -15
  427. package/types/latest/storage-blob-changefeed/test/utils/index.d.ts.map +0 -1
  428. package/types/latest/storage-blob-changefeed/test/utils/testutils.common.d.ts +0 -67
  429. package/types/latest/storage-blob-changefeed/test/utils/testutils.common.d.ts.map +0 -1
  430. package/types/latest/storage-blob-changefeed.d.ts +0 -453
  431. package/types/latest/storage-internal-avro/src/AvroConstants.d.ts +0 -5
  432. package/types/latest/storage-internal-avro/src/AvroConstants.d.ts.map +0 -1
  433. package/types/latest/storage-internal-avro/src/AvroParser.d.ts +0 -57
  434. package/types/latest/storage-internal-avro/src/AvroParser.d.ts.map +0 -1
  435. package/types/latest/storage-internal-avro/src/AvroReadable.d.ts +0 -16
  436. package/types/latest/storage-internal-avro/src/AvroReadable.d.ts.map +0 -1
  437. package/types/latest/storage-internal-avro/src/AvroReadableFromBlob.d.ts +0 -10
  438. package/types/latest/storage-internal-avro/src/AvroReadableFromBlob.d.ts.map +0 -1
  439. package/types/latest/storage-internal-avro/src/AvroReadableFromStream.d.ts +0 -11
  440. package/types/latest/storage-internal-avro/src/AvroReadableFromStream.d.ts.map +0 -1
  441. package/types/latest/storage-internal-avro/src/AvroReader.d.ts +0 -32
  442. package/types/latest/storage-internal-avro/src/AvroReader.d.ts.map +0 -1
  443. package/types/latest/storage-internal-avro/src/index.browser.d.ts +0 -4
  444. package/types/latest/storage-internal-avro/src/index.browser.d.ts.map +0 -1
  445. package/types/latest/storage-internal-avro/src/index.d.ts +0 -4
  446. package/types/latest/storage-internal-avro/src/index.d.ts.map +0 -1
  447. package/types/latest/storage-internal-avro/src/utils/utils.common.d.ts +0 -6
  448. package/types/latest/storage-internal-avro/src/utils/utils.common.d.ts.map +0 -1
  449. package/types/latest/storage-internal-avro/test/browser/avroreadable.spec.d.ts +0 -2
  450. package/types/latest/storage-internal-avro/test/browser/avroreadable.spec.d.ts.map +0 -1
  451. package/types/latest/storage-internal-avro/test/node/avroreadable.spec.d.ts +0 -2
  452. package/types/latest/storage-internal-avro/test/node/avroreadable.spec.d.ts.map +0 -1
  453. package/types/latest/storage-internal-avro/test/node/avroreader.spec.d.ts +0 -2
  454. package/types/latest/storage-internal-avro/test/node/avroreader.spec.d.ts.map +0 -1
  455. /package/{types/latest/storage-blob-changefeed/src → dist/browser}/log.d.ts +0 -0
  456. /package/{dist-esm/storage-blob-changefeed/src → dist/browser}/log.js +0 -0
  457. /package/{types/latest/storage-blob-changefeed/src → dist/browser}/models/BlobChangeFeedEvent.d.ts +0 -0
  458. /package/{dist-esm/storage-blob-changefeed/src → dist/browser}/models/BlobChangeFeedEvent.js +0 -0
  459. /package/{types/latest/storage-blob-changefeed/src → dist/browser}/models/ChangeFeedCursor.d.ts +0 -0
  460. /package/{dist-esm/storage-blob-changefeed/src → dist/browser}/models/ChangeFeedCursor.js +0 -0
  461. /package/{types/latest/storage-blob-changefeed/src → dist/browser}/models/models.d.ts +0 -0
  462. /package/{dist-esm/storage-blob-changefeed/src → dist/browser}/models/models.js +0 -0
  463. /package/{types/latest/storage-blob-changefeed/src → dist/browser}/utils/constants.d.ts +0 -0
  464. /package/{dist-esm/storage-blob-changefeed/src → dist/browser}/utils/constants.js +0 -0
  465. /package/{types/latest/storage-blob-changefeed/src → dist/browser}/utils/tracing.d.ts +0 -0
  466. /package/{types/latest/storage-blob-changefeed/src → dist/browser}/utils/utils.browser.d.ts +0 -0
  467. /package/{dist-esm/storage-blob-changefeed/src → dist/browser}/utils/utils.browser.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.common.js","sourceRoot":"","sources":["../../../src/utils/utils.common.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAIlC,OAAO,EAAE,0BAA0B,EAAE,kCAAkC,EAAE,MAAM,gBAAgB,CAAC;AAChG,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG7C,MAAM,oBAAoB,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAC5C,MAAM,UAAU,iBAAiB,CAAC,IAAsB;IACtD,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,oBAAoB,CAAC,GAAG,oBAAoB,CAAC,CAAC;AAC3F,CAAC;AAED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B,CAAC,MAAM,EAAE,CAAC;gBACpC,wBAAwB,CAAC,MAAM,GAAG,wBAAwB,CAAC,MAAM,CAAC;gBAClE,OAAO,wBAAwB,CAAC,MAAM,CAAC;YACzC,CAAC;YACD,QAAQ,CAAC,IAAI,CAAC,wBAAwB,GAAG,wBAAwB,CAAC;YAClE,OAAO,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC;QAC1C,CAAC;QAED,IAAI,QAAQ,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC;YAClC,QAAQ,CAAC,IAAI,CAAC,eAAe,GAAG;gBAC9B,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO;gBAC9C,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,QAAQ;aAChD,CAAC;YAEF,OAAO,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC;QACvC,CAAC;QAED,IAAI,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YAC3B,QAAQ,CAAC,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC;YACtD,OAAO,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC;QAChC,CAAC;IACH,CAAC;IAED,OAAO,QAA+B,CAAC;AACzC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { ContainerClient, CommonOptions } from \"@azure/storage-blob\";\nimport { CHANGE_FEED_SEGMENT_PREFIX, CHANGE_FEED_INITIALIZATION_SEGMENT } from \"./constants.js\";\nimport { tracingClient } from \"./tracing.js\";\nimport type { BlobChangeFeedEvent, UpdatedBlobProperties } from \"../models/BlobChangeFeedEvent.js\";\n\nconst millisecondsInAnHour = 60 * 60 * 1000;\nexport function ceilToNearestHour(date: Date | undefined): Date | undefined {\n if (date === undefined) {\n return undefined;\n }\n return new Date(Math.ceil(date.getTime() / millisecondsInAnHour) * millisecondsInAnHour);\n}\n\nexport function floorToNearestHour(date: Date | undefined): Date | undefined {\n if (date === undefined) {\n return undefined;\n }\n return new Date(Math.floor(date.getTime() / millisecondsInAnHour) * millisecondsInAnHour);\n}\n\n/**\n * Get host from an URL string.\n *\n * @param url - Source URL string\n */\nexport function getHost(url: string): string | undefined {\n const urlParsed = new URL(url);\n return urlParsed.hostname;\n}\n\n/**\n * Options to configure {@link getYearsPaths} operation.\n */\nexport interface GetYearsPathsOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\nexport async function getYearsPaths(\n containerClient: ContainerClient,\n options: GetYearsPathsOptions = {},\n): Promise<number[]> {\n return tracingClient.withSpan(\"getYearsPaths\", options, async (updatedOptions) => {\n const years: number[] = [];\n for await (const item of containerClient.listBlobsByHierarchy(\"/\", {\n abortSignal: options.abortSignal,\n tracingOptions: updatedOptions.tracingOptions,\n prefix: CHANGE_FEED_SEGMENT_PREFIX,\n })) {\n if (item.kind === \"prefix\" && !item.name.includes(CHANGE_FEED_INITIALIZATION_SEGMENT)) {\n const yearStr = item.name.slice(CHANGE_FEED_SEGMENT_PREFIX.length, -1);\n years.push(parseInt(yearStr));\n }\n }\n return years.sort((a, b) => a - b);\n });\n}\n\n/**\n * Options to configure {@link getSegmentsInYear} operation.\n */\nexport interface GetSegmentsInYearOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\nexport async function getSegmentsInYear(\n containerClient: ContainerClient,\n year: number,\n startTime?: Date,\n endTime?: Date,\n options: GetSegmentsInYearOptions = {},\n): Promise<string[]> {\n return tracingClient.withSpan(\"getSegmentsInYear\", options, async (updatedOptions) => {\n const segments: string[] = [];\n const yearBeginTime = new Date(Date.UTC(year, 0));\n if (endTime && yearBeginTime >= endTime) {\n return segments;\n }\n\n const prefix = `${CHANGE_FEED_SEGMENT_PREFIX}${year}/`;\n for await (const item of containerClient.listBlobsFlat({\n prefix,\n abortSignal: options.abortSignal,\n tracingOptions: updatedOptions.tracingOptions,\n })) {\n const segmentTime = parseDateFromSegmentPath(item.name);\n if ((startTime && segmentTime < startTime) || (endTime && segmentTime >= endTime)) {\n continue;\n }\n segments.push(item.name);\n }\n return segments;\n });\n}\n\nexport function parseDateFromSegmentPath(segmentPath: string): Date {\n const splitPath = segmentPath.split(\"/\");\n if (splitPath.length < 3) {\n throw new Error(`${segmentPath} is not a valid segment path.`);\n }\n\n const segmentTime = new Date(0);\n segmentTime.setUTCFullYear(parseInt(splitPath[2]));\n\n if (splitPath.length >= 4) {\n segmentTime.setUTCMonth(parseInt(splitPath[3]) - 1);\n }\n if (splitPath.length >= 5) {\n segmentTime.setUTCDate(parseInt(splitPath[4]));\n }\n if (splitPath.length >= 6) {\n segmentTime.setUTCHours(parseInt(splitPath[5]) / 100);\n }\n return segmentTime;\n}\n\nexport function minDate(dateA: Date, dateB?: Date): Date {\n if (dateB && dateB < dateA) {\n return dateB;\n }\n return dateA;\n}\n\nexport function rawEventToBlobChangeFeedEvent(rawEvent: Record<string, any>): BlobChangeFeedEvent {\n if (rawEvent.eventTime) {\n rawEvent.eventTime = new Date(rawEvent.eventTime);\n }\n if (rawEvent.eTag) {\n rawEvent.etag = rawEvent.eTag;\n delete rawEvent.eTag;\n }\n if (rawEvent.data) {\n if (rawEvent.data.recursive !== undefined) {\n rawEvent.data.isRecursive = rawEvent.data.recursive;\n delete rawEvent.data.recursive;\n }\n if (rawEvent.data.previousInfo) {\n const previousInfo = rawEvent.data.previousInfo;\n\n if (previousInfo.SoftDeleteSnapshot) {\n previousInfo.softDeleteSnapshot = previousInfo.SoftDeleteSnapshot;\n delete previousInfo.SoftDeleteSnapshot;\n }\n if (previousInfo.WasBlobSoftDeleted) {\n previousInfo.isBlobSoftDeleted = previousInfo.WasBlobSoftDeleted === \"true\";\n delete previousInfo.WasBlobSoftDeleted;\n }\n if (previousInfo.BlobVersion) {\n previousInfo.newBlobVersion = previousInfo.BlobVersion;\n delete previousInfo.BlobVersion;\n }\n if (previousInfo.LastVersion) {\n previousInfo.oldBlobVersion = previousInfo.LastVersion;\n delete previousInfo.LastVersion;\n }\n if (previousInfo.PreviousTier) {\n previousInfo.previousTier = previousInfo.PreviousTier;\n delete previousInfo.PreviousTier;\n }\n\n rawEvent.data.previousInfo = previousInfo;\n }\n\n if (rawEvent.data.blobPropertiesUpdated) {\n const updatedBlobProperties: UpdatedBlobProperties = {};\n Object.entries(rawEvent.data.blobPropertiesUpdated).map((item) => {\n const blobPropertyChange = {\n propertyName: item[0],\n oldValue: (item[1] as any).previous as string,\n newValue: (item[1] as any).current as string,\n };\n updatedBlobProperties[item[0]] = blobPropertyChange;\n });\n rawEvent.data.updatedBlobProperties = updatedBlobProperties;\n delete rawEvent.data.blobPropertiesUpdated;\n }\n\n if (rawEvent.data.asyncOperationInfo) {\n const longRunningOperationInfo = rawEvent.data.asyncOperationInfo;\n if (longRunningOperationInfo.DestinationTier) {\n longRunningOperationInfo.destinationAccessTier = longRunningOperationInfo.DestinationTier;\n delete longRunningOperationInfo.DestinationTier;\n }\n if (\"WasAsyncOperation\" in longRunningOperationInfo) {\n longRunningOperationInfo.isAsync = longRunningOperationInfo.WasAsyncOperation === \"true\";\n delete longRunningOperationInfo.WasAsyncOperation;\n }\n if (longRunningOperationInfo.CopyId) {\n longRunningOperationInfo.copyId = longRunningOperationInfo.CopyId;\n delete longRunningOperationInfo.CopyId;\n }\n rawEvent.data.longRunningOperationInfo = longRunningOperationInfo;\n delete rawEvent.data.asyncOperationInfo;\n }\n\n if (rawEvent.data.blobTagsUpdated) {\n rawEvent.data.updatedBlobTags = {\n newTags: rawEvent.data.blobTagsUpdated.current,\n oldTags: rawEvent.data.blobTagsUpdated.previous,\n };\n\n delete rawEvent.data.blobTagsUpdated;\n }\n\n if (rawEvent.data.blobTier) {\n rawEvent.data.blobAccessTier = rawEvent.data.blobTier;\n delete rawEvent.data.blobTier;\n }\n }\n\n return rawEvent as BlobChangeFeedEvent;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import type { AvroReadable } from "../../../storage-internal-avro/src";
1
+ import type { AvroReadable } from "@azure/storage-internal-avro";
2
2
  /**
3
3
  * Read body from downloading operation methods to string.
4
4
  * Works in both Node.js and browsers.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.node.d.ts","sourceRoot":"","sources":["../../../src/utils/utils.node.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAGjE;;;;;;GAMG;AACH,wBAAsB,YAAY,CAChC,QAAQ,EAAE;IACR,kBAAkB,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B,EACD,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,CAAC,CAcjB;AAED,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,MAAM,CAAC,cAAc,GAAG,YAAY,CAExF"}
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
- import { AvroReadableFromStream } from "../../../storage-internal-avro/src";
3
+ import { AvroReadableFromStream } from "@azure/storage-internal-avro";
4
4
  /**
5
5
  * Read body from downloading operation methods to string.
6
6
  * Works in both Node.js and browsers.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.node.js","sourceRoot":"","sources":["../../../src/utils/utils.node.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,QAGC,EACD,MAAe;IAEf,OAAO,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC7C,QAAQ,CAAC,kBAAmB,CAAC,EAAE,CAAC,UAAU,EAAE,GAAG,EAAE;YAC/C,MAAM,KAAK,GAAG,QAAQ,CAAC,kBAAmB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACxD,IAAI,KAAK,EAAE,CAAC;gBACV,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,QAAQ,CAAC,kBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACjD,QAAQ,CAAC,kBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;YAC1C,OAAO,CAAC,EAAE,CAAC,CAAC;QACd,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,cAAqC;IACxE,OAAO,IAAI,sBAAsB,CAAC,cAAc,CAAC,CAAC;AACpD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AvroReadable } from \"@azure/storage-internal-avro\";\nimport { AvroReadableFromStream } from \"@azure/storage-internal-avro\";\n\n/**\n * Read body from downloading operation methods to string.\n * Works in both Node.js and browsers.\n *\n * @param response - Convenience layer methods response with downloaded body\n * @param length - Length of Readable stream, needed for Node.js environment\n */\nexport async function bodyToString(\n response: {\n readableStreamBody?: NodeJS.ReadableStream;\n blobBody?: Promise<Blob>;\n },\n length?: number,\n): Promise<string> {\n return new Promise<string>((resolve, reject) => {\n response.readableStreamBody!.on(\"readable\", () => {\n const chunk = response.readableStreamBody!.read(length);\n if (chunk) {\n resolve(chunk.toString());\n }\n });\n\n response.readableStreamBody!.on(\"error\", reject);\n response.readableStreamBody!.on(\"end\", () => {\n resolve(\"\");\n });\n });\n}\n\nexport function streamToAvroReadable(readableStream: NodeJS.ReadableStream): AvroReadable {\n return new AvroReadableFromStream(readableStream);\n}\n"]}
@@ -0,0 +1,10 @@
1
+ import type { AvroReadable } from "@azure/storage-internal-avro";
2
+ import { AvroReader } from "@azure/storage-internal-avro";
3
+ /**
4
+ * Creates AvroReaders. Allows us to inject mock AvroReaders in the Chunk unit tests.
5
+ */
6
+ export declare class AvroReaderFactory {
7
+ create(headerAndDataStream: AvroReadable): AvroReader;
8
+ create(dataStream: AvroReadable, headerStream: AvroReadable, blockOffset: number, eventIndex: number): AvroReader;
9
+ }
10
+ //# sourceMappingURL=AvroReaderFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvroReaderFactory.d.ts","sourceRoot":"","sources":["../../src/AvroReaderFactory.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D;;GAEG;AACH,qBAAa,iBAAiB;IACrB,MAAM,CAAC,mBAAmB,EAAE,YAAY,GAAG,UAAU;IAErD,MAAM,CACX,UAAU,EAAE,YAAY,EACxB,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GACjB,UAAU;CAcd"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.AvroReaderFactory = void 0;
6
+ const storage_internal_avro_1 = require("@azure/storage-internal-avro");
7
+ /**
8
+ * Creates AvroReaders. Allows us to inject mock AvroReaders in the Chunk unit tests.
9
+ */
10
+ class AvroReaderFactory {
11
+ create(dataStream, headerStream, blockOffset, eventIndex) {
12
+ if (headerStream) {
13
+ return new storage_internal_avro_1.AvroReader(dataStream, headerStream, blockOffset, eventIndex);
14
+ }
15
+ else {
16
+ return new storage_internal_avro_1.AvroReader(dataStream);
17
+ }
18
+ }
19
+ }
20
+ exports.AvroReaderFactory = AvroReaderFactory;
21
+ //# sourceMappingURL=AvroReaderFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AvroReaderFactory.js","sourceRoot":"","sources":["../../src/AvroReaderFactory.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAGlC,wEAA0D;AAE1D;;GAEG;AACH,MAAa,iBAAiB;IAUrB,MAAM,CACX,UAAwB,EACxB,YAA2B,EAC3B,WAAoB,EACpB,UAAmB;QAEnB,IAAI,YAAY,EAAE,CAAC;YACjB,OAAO,IAAI,kCAAU,CAAC,UAAU,EAAE,YAAY,EAAE,WAAY,EAAE,UAAW,CAAC,CAAC;QAC7E,CAAC;aAAM,CAAC;YACN,OAAO,IAAI,kCAAU,CAAC,UAAU,CAAC,CAAC;QACpC,CAAC;IACH,CAAC;CACF;AAtBD,8CAsBC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AvroReadable } from \"@azure/storage-internal-avro\";\nimport { AvroReader } from \"@azure/storage-internal-avro\";\n\n/**\n * Creates AvroReaders. Allows us to inject mock AvroReaders in the Chunk unit tests.\n */\nexport class AvroReaderFactory {\n public create(headerAndDataStream: AvroReadable): AvroReader;\n\n public create(\n dataStream: AvroReadable,\n headerStream: AvroReadable,\n blockOffset: number,\n eventIndex: number,\n ): AvroReader;\n\n public create(\n dataStream: AvroReadable,\n headerStream?: AvroReadable,\n blockOffset?: number,\n eventIndex?: number,\n ): AvroReader {\n if (headerStream) {\n return new AvroReader(dataStream, headerStream, blockOffset!, eventIndex!);\n } else {\n return new AvroReader(dataStream);\n }\n }\n}\n"]}
@@ -0,0 +1,201 @@
1
+ import type { StoragePipelineOptions, StorageSharedKeyCredential, AnonymousCredential } from "@azure/storage-blob";
2
+ import { Pipeline } from "@azure/storage-blob";
3
+ import type { PagedAsyncIterableIterator } from "@azure/core-paging";
4
+ import type { BlobChangeFeedEvent } from "./models/BlobChangeFeedEvent.js";
5
+ import type { BlobChangeFeedListChangesOptions } from "./models/models.js";
6
+ import type { TokenCredential } from "@azure/core-auth";
7
+ /**
8
+ * Contains paged response data for the {@link BlobChangeFeedClient.listChanges} operation.
9
+ */
10
+ export declare class BlobChangeFeedEventPage {
11
+ /**
12
+ * Array of {@link BlobChangeFeedEvent}.
13
+ */
14
+ events: BlobChangeFeedEvent[];
15
+ /**
16
+ * The token that keeps track of where to continue the iterator.
17
+ */
18
+ continuationToken: string;
19
+ constructor();
20
+ }
21
+ /**
22
+ * Creates a new Pipeline object with Credential provided.
23
+ *
24
+ * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.
25
+ * @param pipelineOptions - Optional. Options.
26
+ * @returns A new Pipeline object.
27
+ */
28
+ export declare function newPipeline(credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, pipelineOptions?: StoragePipelineOptions): Pipeline;
29
+ /**
30
+ * Blob Change Feed client options.
31
+ */
32
+ export interface BlobChangeFeedClientOptions {
33
+ /**
34
+ * The maximum length of an transfer in bytes.
35
+ */
36
+ maximumTransferSize?: number;
37
+ }
38
+ /**
39
+ * BlobChangeFeedClient.
40
+ * @see https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-change-feed?tabs=azure-portal
41
+ */
42
+ export declare class BlobChangeFeedClient {
43
+ /**
44
+ * blobServiceClient provided by `@azure/storage-blob` package.
45
+ */
46
+ private blobServiceClient;
47
+ private changeFeedFactory;
48
+ private changeFeedClientOptions;
49
+ /**
50
+ *
51
+ * Creates an instance of BlobChangeFeedClient from connection string.
52
+ *
53
+ * @param connectionString - Account connection string or a SAS connection string of an Azure storage account.
54
+ * [ Note - Account connection string can only be used in NODE.JS runtime. ]
55
+ * Account connection string example -
56
+ * `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`
57
+ * SAS connection string example -
58
+ * `BlobEndpoint=https://myaccount.blob.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`
59
+ * @param options - Optional. Options to configure the HTTP pipeline.
60
+ */
61
+ static fromConnectionString(connectionString: string, options?: StoragePipelineOptions, changeFeedClientOptions?: BlobChangeFeedClientOptions): BlobChangeFeedClient;
62
+ /**
63
+ * Creates an instance of BlobChangeFeedClient.
64
+ *
65
+ * @param url - A Client string pointing to Azure Storage blob service, such as
66
+ * "https://myaccount.blob.core.windows.net". You can append a SAS
67
+ * if using AnonymousCredential, such as "https://myaccount.blob.core.windows.net?sasString".
68
+ * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.
69
+ * @param options - Optional. Options to configure the HTTP pipeline.
70
+ *
71
+ * Example using DefaultAzureCredential from `@azure/identity`:
72
+ *
73
+ * ```ts snippet:ReadmeSampleCreateClient_TokenCredential
74
+ * import { DefaultAzureCredential } from "@azure/identity";
75
+ * import { BlobChangeFeedClient } from "@azure/storage-blob-changefeed";
76
+ *
77
+ * // Enter your storage account name and shared key
78
+ * const account = "<account>";
79
+ * const credential = new DefaultAzureCredential();
80
+ * const changeFeedClient = new BlobChangeFeedClient(
81
+ * // When using AnonymousCredential, following url should include a valid SAS or support public access
82
+ * `https://${account}.blob.core.windows.net`,
83
+ * credential,
84
+ * );
85
+ * ```
86
+ *
87
+ * Example using an account name/key:
88
+ *
89
+ * ```ts snippet:ReadmeSampleCreateClient
90
+ * import { StorageSharedKeyCredential } from "@azure/storage-blob";
91
+ * import { BlobChangeFeedClient } from "@azure/storage-blob-changefeed";
92
+ *
93
+ * // Enter your storage account name and shared key
94
+ * const account = "<account>";
95
+ * const accountKey = "<accountkey>";
96
+ * // Use StorageSharedKeyCredential with storage account and account key
97
+ * // StorageSharedKeyCredential is only available in Node.js runtime, not in browsers
98
+ * const sharedKeyCredential = new StorageSharedKeyCredential(account, accountKey);
99
+ * const changeFeedClient = new BlobChangeFeedClient(
100
+ * // When using AnonymousCredential, following url should include a valid SAS or support public access
101
+ * `https://${account}.blob.core.windows.net`,
102
+ * sharedKeyCredential,
103
+ * );
104
+ * ```
105
+ */
106
+ constructor(url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions, changeFeedClientOptions?: BlobChangeFeedClientOptions);
107
+ /**
108
+ * Creates an instance of BlobChangeFeedClient.
109
+ *
110
+ * @param url - A Client string pointing to Azure Storage blob service, such as
111
+ * "https://myaccount.blob.core.windows.net". You can append a SAS
112
+ * if using AnonymousCredential, such as "https://myaccount.blob.core.windows.net?sasString".
113
+ * @param pipeline - Call newPipeline() to create a default
114
+ * pipeline, or provide a customized pipeline.
115
+ */
116
+ constructor(url: string, pipeline: Pipeline);
117
+ private getChange;
118
+ private getPage;
119
+ /**
120
+ * Returns an async iterable iterator to list all the change feed events
121
+ * in the specified account.
122
+ *
123
+ * .byPage() returns an async iterable iterator to list the change feed events in pages.
124
+ *
125
+ * Example using `for await` syntax:
126
+ *
127
+ * ```ts snippet:ReadmeSampleListChanges
128
+ * import { StorageSharedKeyCredential } from "@azure/storage-blob";
129
+ * import { BlobChangeFeedClient } from "@azure/storage-blob-changefeed";
130
+ *
131
+ * const account = "<account>";
132
+ * const accountKey = "<accountkey>";
133
+ * const sharedKeyCredential = new StorageSharedKeyCredential(account, accountKey);
134
+ * const changeFeedClient = new BlobChangeFeedClient(
135
+ * `https://${account}.blob.core.windows.net`,
136
+ * sharedKeyCredential,
137
+ * );
138
+ *
139
+ * // Use for await to iterate through the change feed
140
+ * for await (const event of changeFeedClient.listChanges()) {
141
+ * console.log(`Event: ${event.eventType}`);
142
+ * console.log(`Event time: ${event.eventTime}`);
143
+ * console.log(`Event data: ${JSON.stringify(event.data)}`);
144
+ * }
145
+ *
146
+ * // Use `byPage` to iterate through the change feed
147
+ * for await (const page of changeFeedClient.listChanges().byPage()) {
148
+ * console.log(`Page: ${JSON.stringify(page)}`);
149
+ * for (const event of page.events) {
150
+ * console.log(`Event: ${event.eventType}`);
151
+ * console.log(`Event time: ${event.eventTime}`);
152
+ * console.log(`Event data: ${JSON.stringify(event.data)}`);
153
+ * }
154
+ * }
155
+ * ```
156
+ *
157
+ * Example using paging with a marker:
158
+ *
159
+ * ```ts snippet:ReadmeSampleListChanges_Continuation
160
+ * import { StorageSharedKeyCredential } from "@azure/storage-blob";
161
+ * import { BlobChangeFeedClient } from "@azure/storage-blob-changefeed";
162
+ *
163
+ * const account = "<account>";
164
+ * const accountKey = "<accountkey>";
165
+ * const sharedKeyCredential = new StorageSharedKeyCredential(account, accountKey);
166
+ * const changeFeedClient = new BlobChangeFeedClient(
167
+ * `https://${account}.blob.core.windows.net`,
168
+ * sharedKeyCredential,
169
+ * );
170
+ *
171
+ * let iterator = changeFeedClient.listChanges().byPage({ maxPageSize: 2 });
172
+ * let response = (await iterator.next()).value;
173
+ * // Prints 2 page ranges
174
+ * if (response.pageRange) {
175
+ * for (const pageRange of response.pageRange) {
176
+ * console.log(`Event: ${pageRange.eventType}`);
177
+ * console.log(`Event time: ${pageRange.eventTime}`);
178
+ * console.log(`Event data: ${JSON.stringify(pageRange.data)}`);
179
+ * }
180
+ * }
181
+ * // Gets next marker
182
+ * let marker = response.continuationToken;
183
+ * // Passing next marker as continuationToken
184
+ * iterator = changeFeedClient.listChanges().byPage({ continuationToken: marker, maxPageSize: 10 });
185
+ * response = (await iterator.next()).value;
186
+ * // Prints 10 page ranges
187
+ * if (response.pageRange) {
188
+ * for (const pageRange of response.pageRange) {
189
+ * console.log(`Event: ${pageRange.eventType}`);
190
+ * console.log(`Event time: ${pageRange.eventTime}`);
191
+ * console.log(`Event data: ${JSON.stringify(pageRange.data)}`);
192
+ * }
193
+ * }
194
+ * ```
195
+ *
196
+ * @param options - Options to list change feed events.
197
+ * @returns An asyncIterableIterator that supports paging.
198
+ */
199
+ listChanges(options?: BlobChangeFeedListChangesOptions): PagedAsyncIterableIterator<BlobChangeFeedEvent, BlobChangeFeedEventPage>;
200
+ }
201
+ //# sourceMappingURL=BlobChangeFeedClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlobChangeFeedClient.d.ts","sourceRoot":"","sources":["../../src/BlobChangeFeedClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC1B,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAqB,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,KAAK,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AACnF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAI3E,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD;;GAEG;AACH,qBAAa,uBAAuB;IAClC;;OAEG;IACI,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAErC;;OAEG;IACI,iBAAiB,EAAE,MAAM,CAAC;;CAMlC;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CACzB,UAAU,CAAC,EAAE,0BAA0B,GAAG,mBAAmB,GAAG,eAAe,EAC/E,eAAe,GAAE,sBAA2B,GAC3C,QAAQ,CAEV;AAmBD;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;;GAGG;AACH,qBAAa,oBAAoB;IAC/B;;OAEG;IACH,OAAO,CAAC,iBAAiB,CAAoB;IAC7C,OAAO,CAAC,iBAAiB,CAAoB;IAC7C,OAAO,CAAC,uBAAuB,CAA8B;IAE7D;;;;;;;;;;;OAWG;WACW,oBAAoB,CAChC,gBAAgB,EAAE,MAAM,EAGxB,OAAO,CAAC,EAAE,sBAAsB,EAGhC,uBAAuB,CAAC,EAAE,2BAA2B,GACpD,oBAAoB;IAUvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;gBAED,GAAG,EAAE,MAAM,EACX,UAAU,CAAC,EAAE,0BAA0B,GAAG,mBAAmB,GAAG,eAAe,EAG/E,OAAO,CAAC,EAAE,sBAAsB,EAChC,uBAAuB,CAAC,EAAE,2BAA2B;IAGvD;;;;;;;;OAQG;gBACS,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ;YA6B5B,SAAS;YAuBT,OAAO;IAoCtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+EG;IACI,WAAW,CAChB,OAAO,GAAE,gCAAqC,GAC7C,0BAA0B,CAAC,mBAAmB,EAAE,uBAAuB,CAAC;CAuB5E"}
@@ -0,0 +1,239 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.BlobChangeFeedClient = exports.BlobChangeFeedEventPage = void 0;
6
+ exports.newPipeline = newPipeline;
7
+ const tslib_1 = require("tslib");
8
+ const storage_blob_1 = require("@azure/storage-blob");
9
+ const ChangeFeedFactory_js_1 = require("./ChangeFeedFactory.js");
10
+ const constants_js_1 = require("./utils/constants.js");
11
+ /**
12
+ * Contains paged response data for the {@link BlobChangeFeedClient.listChanges} operation.
13
+ */
14
+ class BlobChangeFeedEventPage {
15
+ constructor() {
16
+ this.events = [];
17
+ this.continuationToken = "";
18
+ }
19
+ }
20
+ exports.BlobChangeFeedEventPage = BlobChangeFeedEventPage;
21
+ /**
22
+ * Creates a new Pipeline object with Credential provided.
23
+ *
24
+ * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.
25
+ * @param pipelineOptions - Optional. Options.
26
+ * @returns A new Pipeline object.
27
+ */
28
+ function newPipeline(credential, pipelineOptions = {}) {
29
+ return newPipeline(credential, appendUserAgentPrefix(pipelineOptions));
30
+ }
31
+ function appendUserAgentPrefix(options) {
32
+ if (!options) {
33
+ options = {};
34
+ }
35
+ if (options.userAgentOptions === undefined) {
36
+ options.userAgentOptions = {};
37
+ }
38
+ if (options.userAgentOptions.userAgentPrefix === undefined) {
39
+ options.userAgentOptions.userAgentPrefix = "";
40
+ }
41
+ else if (options.userAgentOptions.userAgentPrefix !== "") {
42
+ options.userAgentOptions.userAgentPrefix += " ";
43
+ }
44
+ options.userAgentOptions.userAgentPrefix += `changefeed-js/${constants_js_1.SDK_VERSION}`;
45
+ return options;
46
+ }
47
+ /**
48
+ * BlobChangeFeedClient.
49
+ * @see https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-change-feed?tabs=azure-portal
50
+ */
51
+ class BlobChangeFeedClient {
52
+ /**
53
+ *
54
+ * Creates an instance of BlobChangeFeedClient from connection string.
55
+ *
56
+ * @param connectionString - Account connection string or a SAS connection string of an Azure storage account.
57
+ * [ Note - Account connection string can only be used in NODE.JS runtime. ]
58
+ * Account connection string example -
59
+ * `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`
60
+ * SAS connection string example -
61
+ * `BlobEndpoint=https://myaccount.blob.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`
62
+ * @param options - Optional. Options to configure the HTTP pipeline.
63
+ */
64
+ static fromConnectionString(connectionString,
65
+ // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.
66
+ /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */
67
+ options,
68
+ // Static method to construct an object, the option is for the object not for the method.
69
+ /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */
70
+ changeFeedClientOptions) {
71
+ const blobServiceClient = storage_blob_1.BlobServiceClient.fromConnectionString(connectionString, options);
72
+ return new BlobChangeFeedClient(blobServiceClient.url, blobServiceClient.credential, appendUserAgentPrefix(options), changeFeedClientOptions);
73
+ }
74
+ constructor(urlOrClient, credentialOrPipeline,
75
+ // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.
76
+ /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */
77
+ options, changeFeedClientOptions) {
78
+ this.changeFeedClientOptions = changeFeedClientOptions || {};
79
+ this.changeFeedFactory = new ChangeFeedFactory_js_1.ChangeFeedFactory(this.changeFeedClientOptions.maximumTransferSize);
80
+ if (credentialOrPipeline instanceof storage_blob_1.Pipeline) {
81
+ this.blobServiceClient = new storage_blob_1.BlobServiceClient(urlOrClient, credentialOrPipeline);
82
+ }
83
+ else {
84
+ this.blobServiceClient = new storage_blob_1.BlobServiceClient(urlOrClient, credentialOrPipeline, appendUserAgentPrefix(options));
85
+ }
86
+ }
87
+ getChange() {
88
+ return tslib_1.__asyncGenerator(this, arguments, function* getChange_1(options = {}) {
89
+ const changeFeed = yield tslib_1.__await(this.changeFeedFactory.create(this.blobServiceClient, undefined, options));
90
+ while (changeFeed.hasNext()) {
91
+ const event = yield tslib_1.__await(changeFeed.getChange({
92
+ abortSignal: options.abortSignal,
93
+ tracingOptions: options.tracingOptions,
94
+ }));
95
+ if (event) {
96
+ yield yield tslib_1.__await(event);
97
+ }
98
+ else {
99
+ return yield tslib_1.__await(void 0);
100
+ }
101
+ }
102
+ });
103
+ }
104
+ // start in ChangeFeedListChangesOptions will be ignored when continuationToken is specified.
105
+ getPage(continuationToken_1, maxPageSize_1) {
106
+ return tslib_1.__asyncGenerator(this, arguments, function* getPage_1(continuationToken, maxPageSize, options = {}) {
107
+ const changeFeed = yield tslib_1.__await(this.changeFeedFactory.create(this.blobServiceClient, continuationToken, options));
108
+ if (!maxPageSize || maxPageSize > constants_js_1.CHANGE_FEED_MAX_PAGE_SIZE) {
109
+ maxPageSize = constants_js_1.CHANGE_FEED_MAX_PAGE_SIZE;
110
+ }
111
+ while (changeFeed.hasNext()) {
112
+ const eventPage = new BlobChangeFeedEventPage();
113
+ while (changeFeed.hasNext() && eventPage.events.length < maxPageSize) {
114
+ const event = yield tslib_1.__await(changeFeed.getChange({
115
+ abortSignal: options.abortSignal,
116
+ tracingOptions: options.tracingOptions,
117
+ }));
118
+ if (event) {
119
+ eventPage.events.push(event);
120
+ }
121
+ }
122
+ if (changeFeed.hasNext()) {
123
+ eventPage.continuationToken = JSON.stringify(changeFeed.getCursor());
124
+ }
125
+ if (eventPage.events.length > 0) {
126
+ yield yield tslib_1.__await(eventPage);
127
+ }
128
+ else {
129
+ return yield tslib_1.__await(void 0);
130
+ }
131
+ }
132
+ });
133
+ }
134
+ /**
135
+ * Returns an async iterable iterator to list all the change feed events
136
+ * in the specified account.
137
+ *
138
+ * .byPage() returns an async iterable iterator to list the change feed events in pages.
139
+ *
140
+ * Example using `for await` syntax:
141
+ *
142
+ * ```ts snippet:ReadmeSampleListChanges
143
+ * import { StorageSharedKeyCredential } from "@azure/storage-blob";
144
+ * import { BlobChangeFeedClient } from "@azure/storage-blob-changefeed";
145
+ *
146
+ * const account = "<account>";
147
+ * const accountKey = "<accountkey>";
148
+ * const sharedKeyCredential = new StorageSharedKeyCredential(account, accountKey);
149
+ * const changeFeedClient = new BlobChangeFeedClient(
150
+ * `https://${account}.blob.core.windows.net`,
151
+ * sharedKeyCredential,
152
+ * );
153
+ *
154
+ * // Use for await to iterate through the change feed
155
+ * for await (const event of changeFeedClient.listChanges()) {
156
+ * console.log(`Event: ${event.eventType}`);
157
+ * console.log(`Event time: ${event.eventTime}`);
158
+ * console.log(`Event data: ${JSON.stringify(event.data)}`);
159
+ * }
160
+ *
161
+ * // Use `byPage` to iterate through the change feed
162
+ * for await (const page of changeFeedClient.listChanges().byPage()) {
163
+ * console.log(`Page: ${JSON.stringify(page)}`);
164
+ * for (const event of page.events) {
165
+ * console.log(`Event: ${event.eventType}`);
166
+ * console.log(`Event time: ${event.eventTime}`);
167
+ * console.log(`Event data: ${JSON.stringify(event.data)}`);
168
+ * }
169
+ * }
170
+ * ```
171
+ *
172
+ * Example using paging with a marker:
173
+ *
174
+ * ```ts snippet:ReadmeSampleListChanges_Continuation
175
+ * import { StorageSharedKeyCredential } from "@azure/storage-blob";
176
+ * import { BlobChangeFeedClient } from "@azure/storage-blob-changefeed";
177
+ *
178
+ * const account = "<account>";
179
+ * const accountKey = "<accountkey>";
180
+ * const sharedKeyCredential = new StorageSharedKeyCredential(account, accountKey);
181
+ * const changeFeedClient = new BlobChangeFeedClient(
182
+ * `https://${account}.blob.core.windows.net`,
183
+ * sharedKeyCredential,
184
+ * );
185
+ *
186
+ * let iterator = changeFeedClient.listChanges().byPage({ maxPageSize: 2 });
187
+ * let response = (await iterator.next()).value;
188
+ * // Prints 2 page ranges
189
+ * if (response.pageRange) {
190
+ * for (const pageRange of response.pageRange) {
191
+ * console.log(`Event: ${pageRange.eventType}`);
192
+ * console.log(`Event time: ${pageRange.eventTime}`);
193
+ * console.log(`Event data: ${JSON.stringify(pageRange.data)}`);
194
+ * }
195
+ * }
196
+ * // Gets next marker
197
+ * let marker = response.continuationToken;
198
+ * // Passing next marker as continuationToken
199
+ * iterator = changeFeedClient.listChanges().byPage({ continuationToken: marker, maxPageSize: 10 });
200
+ * response = (await iterator.next()).value;
201
+ * // Prints 10 page ranges
202
+ * if (response.pageRange) {
203
+ * for (const pageRange of response.pageRange) {
204
+ * console.log(`Event: ${pageRange.eventType}`);
205
+ * console.log(`Event time: ${pageRange.eventTime}`);
206
+ * console.log(`Event data: ${JSON.stringify(pageRange.data)}`);
207
+ * }
208
+ * }
209
+ * ```
210
+ *
211
+ * @param options - Options to list change feed events.
212
+ * @returns An asyncIterableIterator that supports paging.
213
+ */
214
+ listChanges(options = {}) {
215
+ const iter = this.getChange(options);
216
+ return {
217
+ /**
218
+ * The next method, part of the iteration protocol
219
+ */
220
+ async next() {
221
+ return iter.next();
222
+ },
223
+ /**
224
+ * The connection to the async iterator, part of the iteration protocol
225
+ */
226
+ [Symbol.asyncIterator]() {
227
+ return this;
228
+ },
229
+ /**
230
+ * Return an AsyncIterableIterator that works a page at a time
231
+ */
232
+ byPage: (settings = {}) => {
233
+ return this.getPage(settings.continuationToken, settings.maxPageSize, options);
234
+ },
235
+ };
236
+ }
237
+ }
238
+ exports.BlobChangeFeedClient = BlobChangeFeedClient;
239
+ //# sourceMappingURL=BlobChangeFeedClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlobChangeFeedClient.js","sourceRoot":"","sources":["../../src/BlobChangeFeedClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AA2ClC,kCAKC;;AAzCD,sDAAkE;AAGlE,iEAA2D;AAE3D,uDAA8E;AAI9E;;GAEG;AACH,MAAa,uBAAuB;IAWlC;QACE,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,IAAI,CAAC,iBAAiB,GAAG,EAAE,CAAC;IAC9B,CAAC;CACF;AAfD,0DAeC;AAED;;;;;;GAMG;AACH,SAAgB,WAAW,CACzB,UAA+E,EAC/E,kBAA0C,EAAE;IAE5C,OAAO,WAAW,CAAC,UAAU,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC,CAAC;AACzE,CAAC;AAED,SAAS,qBAAqB,CAAC,OAAgC;IAC7D,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,GAAG,EAAE,CAAC;IACf,CAAC;IACD,IAAI,OAAO,CAAC,gBAAgB,KAAK,SAAS,EAAE,CAAC;QAC3C,OAAO,CAAC,gBAAgB,GAAG,EAAE,CAAC;IAChC,CAAC;IAED,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe,KAAK,SAAS,EAAE,CAAC;QAC3D,OAAO,CAAC,gBAAgB,CAAC,eAAe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CAAC;wBACV,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBAC/B,CAAC;gBACH,CAAC;gBACD,IAAI,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC;oBACzB,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC,CAAC;gBACvE,CAAC;gBACD,IAAI,SAAS,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBAChC,4BAAM,SAAS,CAAA,CAAC;gBAClB,CAAC;qBAAM,CAAC;oBACN,qCAAO;gBACT,CAAC;YACH,CAAC;QACH,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+EG;IACI,WAAW,CAChB,UAA4C,EAAE;QAE9C,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QACrC,OAAO;YACL;;eAEG;YACH,KAAK,CAAC,IAAI;gBACR,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD;;eAEG;YACH,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD;;eAEG;YACH,MAAM,EAAE,CAAC,WAAyB,EAAE,EAAE,EAAE;gBACtC,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;YACjF,CAAC;SACF,CAAC;IACJ,CAAC;CACF;AArSD,oDAqSC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n StoragePipelineOptions,\n StorageSharedKeyCredential,\n AnonymousCredential,\n} from \"@azure/storage-blob\";\nimport { BlobServiceClient, Pipeline } from \"@azure/storage-blob\";\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport type { BlobChangeFeedEvent } from \"./models/BlobChangeFeedEvent.js\";\nimport { ChangeFeedFactory } from \"./ChangeFeedFactory.js\";\nimport type { ChangeFeed } from \"./ChangeFeed.js\";\nimport { CHANGE_FEED_MAX_PAGE_SIZE, SDK_VERSION } from \"./utils/constants.js\";\nimport type { BlobChangeFeedListChangesOptions } from \"./models/models.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\n\n/**\n * Contains paged response data for the {@link BlobChangeFeedClient.listChanges} operation.\n */\nexport class BlobChangeFeedEventPage {\n /**\n * Array of {@link BlobChangeFeedEvent}.\n */\n public events: BlobChangeFeedEvent[];\n\n /**\n * The token that keeps track of where to continue the iterator.\n */\n public continuationToken: string;\n\n constructor() {\n this.events = [];\n this.continuationToken = \"\";\n }\n}\n\n/**\n * Creates a new Pipeline object with Credential provided.\n *\n * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.\n * @param pipelineOptions - Optional. Options.\n * @returns A new Pipeline object.\n */\nexport function newPipeline(\n credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential,\n pipelineOptions: StoragePipelineOptions = {},\n): Pipeline {\n return newPipeline(credential, appendUserAgentPrefix(pipelineOptions));\n}\n\nfunction appendUserAgentPrefix(options?: StoragePipelineOptions): StoragePipelineOptions {\n if (!options) {\n options = {};\n }\n if (options.userAgentOptions === undefined) {\n options.userAgentOptions = {};\n }\n\n if (options.userAgentOptions.userAgentPrefix === undefined) {\n options.userAgentOptions.userAgentPrefix = \"\";\n } else if (options.userAgentOptions.userAgentPrefix !== \"\") {\n options.userAgentOptions.userAgentPrefix += \" \";\n }\n options.userAgentOptions.userAgentPrefix += `changefeed-js/${SDK_VERSION}`;\n return options;\n}\n\n/**\n * Blob Change Feed client options.\n */\nexport interface BlobChangeFeedClientOptions {\n /**\n * The maximum length of an transfer in bytes.\n */\n maximumTransferSize?: number;\n}\n\n/**\n * BlobChangeFeedClient.\n * @see https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-change-feed?tabs=azure-portal\n */\nexport class BlobChangeFeedClient {\n /**\n * blobServiceClient provided by `@azure/storage-blob` package.\n */\n private blobServiceClient: BlobServiceClient;\n private changeFeedFactory: ChangeFeedFactory;\n private changeFeedClientOptions: BlobChangeFeedClientOptions;\n\n /**\n *\n * Creates an instance of BlobChangeFeedClient from connection string.\n *\n * @param connectionString - Account connection string or a SAS connection string of an Azure storage account.\n * [ Note - Account connection string can only be used in NODE.JS runtime. ]\n * Account connection string example -\n * `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`\n * SAS connection string example -\n * `BlobEndpoint=https://myaccount.blob.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public static fromConnectionString(\n connectionString: string,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: StoragePipelineOptions,\n // Static method to construct an object, the option is for the object not for the method.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n changeFeedClientOptions?: BlobChangeFeedClientOptions,\n ): BlobChangeFeedClient {\n const blobServiceClient = BlobServiceClient.fromConnectionString(connectionString, options);\n return new BlobChangeFeedClient(\n blobServiceClient.url,\n blobServiceClient.credential,\n appendUserAgentPrefix(options),\n changeFeedClientOptions,\n );\n }\n\n /**\n * Creates an instance of BlobChangeFeedClient.\n *\n * @param url - A Client string pointing to Azure Storage blob service, such as\n * \"https://myaccount.blob.core.windows.net\". You can append a SAS\n * if using AnonymousCredential, such as \"https://myaccount.blob.core.windows.net?sasString\".\n * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.\n * @param options - Optional. Options to configure the HTTP pipeline.\n *\n * Example using DefaultAzureCredential from `@azure/identity`:\n *\n * ```ts snippet:ReadmeSampleCreateClient_TokenCredential\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { BlobChangeFeedClient } from \"@azure/storage-blob-changefeed\";\n *\n * // Enter your storage account name and shared key\n * const account = \"<account>\";\n * const credential = new DefaultAzureCredential();\n * const changeFeedClient = new BlobChangeFeedClient(\n * // When using AnonymousCredential, following url should include a valid SAS or support public access\n * `https://${account}.blob.core.windows.net`,\n * credential,\n * );\n * ```\n *\n * Example using an account name/key:\n *\n * ```ts snippet:ReadmeSampleCreateClient\n * import { StorageSharedKeyCredential } from \"@azure/storage-blob\";\n * import { BlobChangeFeedClient } from \"@azure/storage-blob-changefeed\";\n *\n * // Enter your storage account name and shared key\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n * // Use StorageSharedKeyCredential with storage account and account key\n * // StorageSharedKeyCredential is only available in Node.js runtime, not in browsers\n * const sharedKeyCredential = new StorageSharedKeyCredential(account, accountKey);\n * const changeFeedClient = new BlobChangeFeedClient(\n * // When using AnonymousCredential, following url should include a valid SAS or support public access\n * `https://${account}.blob.core.windows.net`,\n * sharedKeyCredential,\n * );\n * ```\n */\n constructor(\n url: string,\n credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: StoragePipelineOptions,\n changeFeedClientOptions?: BlobChangeFeedClientOptions,\n );\n\n /**\n * Creates an instance of BlobChangeFeedClient.\n *\n * @param url - A Client string pointing to Azure Storage blob service, such as\n * \"https://myaccount.blob.core.windows.net\". You can append a SAS\n * if using AnonymousCredential, such as \"https://myaccount.blob.core.windows.net?sasString\".\n * @param pipeline - Call newPipeline() to create a default\n * pipeline, or provide a customized pipeline.\n */\n constructor(url: string, pipeline: Pipeline);\n constructor(\n urlOrClient: string,\n credentialOrPipeline?:\n | StorageSharedKeyCredential\n | AnonymousCredential\n | TokenCredential\n | Pipeline,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: StoragePipelineOptions,\n changeFeedClientOptions?: BlobChangeFeedClientOptions,\n ) {\n this.changeFeedClientOptions = changeFeedClientOptions || {};\n this.changeFeedFactory = new ChangeFeedFactory(\n this.changeFeedClientOptions.maximumTransferSize,\n );\n\n if (credentialOrPipeline instanceof Pipeline) {\n this.blobServiceClient = new BlobServiceClient(urlOrClient, credentialOrPipeline);\n } else {\n this.blobServiceClient = new BlobServiceClient(\n urlOrClient,\n credentialOrPipeline,\n appendUserAgentPrefix(options),\n );\n }\n }\n\n private async *getChange(\n options: BlobChangeFeedListChangesOptions = {},\n ): AsyncIterableIterator<BlobChangeFeedEvent> {\n const changeFeed: ChangeFeed = await this.changeFeedFactory.create(\n this.blobServiceClient,\n undefined,\n options,\n );\n\n while (changeFeed.hasNext()) {\n const event = await changeFeed.getChange({\n abortSignal: options.abortSignal,\n tracingOptions: options.tracingOptions,\n });\n if (event) {\n yield event;\n } else {\n return;\n }\n }\n }\n\n // start in ChangeFeedListChangesOptions will be ignored when continuationToken is specified.\n private async *getPage(\n continuationToken?: string,\n maxPageSize?: number,\n options: BlobChangeFeedListChangesOptions = {},\n ): AsyncIterableIterator<BlobChangeFeedEventPage> {\n const changeFeed: ChangeFeed = await this.changeFeedFactory.create(\n this.blobServiceClient,\n continuationToken,\n options,\n );\n\n if (!maxPageSize || maxPageSize > CHANGE_FEED_MAX_PAGE_SIZE) {\n maxPageSize = CHANGE_FEED_MAX_PAGE_SIZE;\n }\n while (changeFeed.hasNext()) {\n const eventPage = new BlobChangeFeedEventPage();\n while (changeFeed.hasNext() && eventPage.events.length < maxPageSize) {\n const event = await changeFeed.getChange({\n abortSignal: options.abortSignal,\n tracingOptions: options.tracingOptions,\n });\n if (event) {\n eventPage.events.push(event);\n }\n }\n if (changeFeed.hasNext()) {\n eventPage.continuationToken = JSON.stringify(changeFeed.getCursor());\n }\n if (eventPage.events.length > 0) {\n yield eventPage;\n } else {\n return;\n }\n }\n }\n\n /**\n * Returns an async iterable iterator to list all the change feed events\n * in the specified account.\n *\n * .byPage() returns an async iterable iterator to list the change feed events in pages.\n *\n * Example using `for await` syntax:\n *\n * ```ts snippet:ReadmeSampleListChanges\n * import { StorageSharedKeyCredential } from \"@azure/storage-blob\";\n * import { BlobChangeFeedClient } from \"@azure/storage-blob-changefeed\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n * const sharedKeyCredential = new StorageSharedKeyCredential(account, accountKey);\n * const changeFeedClient = new BlobChangeFeedClient(\n * `https://${account}.blob.core.windows.net`,\n * sharedKeyCredential,\n * );\n *\n * // Use for await to iterate through the change feed\n * for await (const event of changeFeedClient.listChanges()) {\n * console.log(`Event: ${event.eventType}`);\n * console.log(`Event time: ${event.eventTime}`);\n * console.log(`Event data: ${JSON.stringify(event.data)}`);\n * }\n *\n * // Use `byPage` to iterate through the change feed\n * for await (const page of changeFeedClient.listChanges().byPage()) {\n * console.log(`Page: ${JSON.stringify(page)}`);\n * for (const event of page.events) {\n * console.log(`Event: ${event.eventType}`);\n * console.log(`Event time: ${event.eventTime}`);\n * console.log(`Event data: ${JSON.stringify(event.data)}`);\n * }\n * }\n * ```\n *\n * Example using paging with a marker:\n *\n * ```ts snippet:ReadmeSampleListChanges_Continuation\n * import { StorageSharedKeyCredential } from \"@azure/storage-blob\";\n * import { BlobChangeFeedClient } from \"@azure/storage-blob-changefeed\";\n *\n * const account = \"<account>\";\n * const accountKey = \"<accountkey>\";\n * const sharedKeyCredential = new StorageSharedKeyCredential(account, accountKey);\n * const changeFeedClient = new BlobChangeFeedClient(\n * `https://${account}.blob.core.windows.net`,\n * sharedKeyCredential,\n * );\n *\n * let iterator = changeFeedClient.listChanges().byPage({ maxPageSize: 2 });\n * let response = (await iterator.next()).value;\n * // Prints 2 page ranges\n * if (response.pageRange) {\n * for (const pageRange of response.pageRange) {\n * console.log(`Event: ${pageRange.eventType}`);\n * console.log(`Event time: ${pageRange.eventTime}`);\n * console.log(`Event data: ${JSON.stringify(pageRange.data)}`);\n * }\n * }\n * // Gets next marker\n * let marker = response.continuationToken;\n * // Passing next marker as continuationToken\n * iterator = changeFeedClient.listChanges().byPage({ continuationToken: marker, maxPageSize: 10 });\n * response = (await iterator.next()).value;\n * // Prints 10 page ranges\n * if (response.pageRange) {\n * for (const pageRange of response.pageRange) {\n * console.log(`Event: ${pageRange.eventType}`);\n * console.log(`Event time: ${pageRange.eventTime}`);\n * console.log(`Event data: ${JSON.stringify(pageRange.data)}`);\n * }\n * }\n * ```\n *\n * @param options - Options to list change feed events.\n * @returns An asyncIterableIterator that supports paging.\n */\n public listChanges(\n options: BlobChangeFeedListChangesOptions = {},\n ): PagedAsyncIterableIterator<BlobChangeFeedEvent, BlobChangeFeedEventPage> {\n const iter = this.getChange(options);\n return {\n /**\n * The next method, part of the iteration protocol\n */\n async next() {\n return iter.next();\n },\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator]() {\n return this;\n },\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings: PageSettings = {}) => {\n return this.getPage(settings.continuationToken, settings.maxPageSize, options);\n },\n };\n }\n}\n"]}
@@ -0,0 +1,37 @@
1
+ import type { ContainerClient, CommonOptions } from "@azure/storage-blob";
2
+ import type { Segment } from "./Segment.js";
3
+ import type { SegmentFactory } from "./SegmentFactory.js";
4
+ import type { BlobChangeFeedEvent } from "./models/BlobChangeFeedEvent.js";
5
+ import type { ChangeFeedCursor } from "./models/ChangeFeedCursor.js";
6
+ import type { AbortSignalLike } from "@azure/abort-controller";
7
+ /**
8
+ * Options to configure {@link ChangeFeed.getChange} operation.
9
+ */
10
+ export interface ChangeFeedGetChangeOptions extends CommonOptions {
11
+ /**
12
+ * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
13
+ * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.
14
+ */
15
+ abortSignal?: AbortSignalLike;
16
+ }
17
+ export declare class ChangeFeed {
18
+ /**
19
+ * BlobContainerClient for making List Blob requests and creating Segments.
20
+ */
21
+ private readonly containerClient?;
22
+ private readonly segmentFactory?;
23
+ private readonly years;
24
+ private segments;
25
+ private currentSegment?;
26
+ private lastConsumable?;
27
+ private startTime?;
28
+ private endTime?;
29
+ private end?;
30
+ constructor();
31
+ constructor(containerClient: ContainerClient, segmentFactory: SegmentFactory, years: number[], segments: string[], currentSegment: Segment, lastConsumable: Date, startTime?: Date, endTime?: Date);
32
+ private advanceSegmentIfNecessary;
33
+ hasNext(): boolean;
34
+ getChange(options?: ChangeFeedGetChangeOptions): Promise<BlobChangeFeedEvent | undefined>;
35
+ getCursor(): ChangeFeedCursor;
36
+ }
37
+ //# sourceMappingURL=ChangeFeed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChangeFeed.d.ts","sourceRoot":"","sources":["../../src/ChangeFeed.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG/D;;GAEG;AACH,MAAM,WAAW,0BAA2B,SAAQ,aAAa;IAC/D;;;OAGG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED,qBAAa,UAAU;IACrB;;OAEG;IACH,OA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