@azure/storage-blob 12.31.0 → 12.32.0-beta.1

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 (443) hide show
  1. package/dist/browser/BatchUtils.d.ts +1 -1
  2. package/dist/browser/BatchUtils.d.ts.map +1 -0
  3. package/dist/browser/BatchUtils.js +1 -1
  4. package/dist/browser/BatchUtils.js.map +1 -0
  5. package/dist/browser/BlobDownloadResponse.d.ts +5 -2
  6. package/dist/browser/BlobDownloadResponse.d.ts.map +1 -0
  7. package/dist/browser/BlobDownloadResponse.js +9 -5
  8. package/dist/browser/BlobDownloadResponse.js.map +1 -0
  9. package/dist/browser/BlobQueryResponse.d.ts +1 -1
  10. package/dist/browser/BlobQueryResponse.d.ts.map +1 -0
  11. package/dist/browser/BlobQueryResponse.js +1 -1
  12. package/dist/browser/BlobQueryResponse.js.map +1 -0
  13. package/dist/browser/BlobServiceClient.d.ts +36 -5
  14. package/dist/browser/BlobServiceClient.d.ts.map +1 -1
  15. package/dist/browser/BlobServiceClient.js +29 -17
  16. package/dist/browser/BlobServiceClient.js.map +1 -1
  17. package/dist/browser/Clients.d.ts +68 -14
  18. package/dist/browser/Clients.d.ts.map +1 -1
  19. package/dist/browser/Clients.js +97 -28
  20. package/dist/browser/Clients.js.map +1 -1
  21. package/dist/browser/ContainerClient.d.ts +6 -4
  22. package/dist/browser/ContainerClient.d.ts.map +1 -1
  23. package/dist/browser/ContainerClient.js +8 -6
  24. package/dist/browser/ContainerClient.js.map +1 -1
  25. package/dist/browser/Pipeline.d.ts +2 -3
  26. package/dist/browser/Pipeline.d.ts.map +1 -1
  27. package/dist/browser/Pipeline.js.map +1 -1
  28. package/dist/browser/generated/src/models/index.d.ts +59 -4
  29. package/dist/browser/generated/src/models/index.d.ts.map +1 -1
  30. package/dist/browser/generated/src/models/index.js +2 -2
  31. package/dist/browser/generated/src/models/index.js.map +1 -1
  32. package/dist/browser/generated/src/models/mappers.d.ts.map +1 -1
  33. package/dist/browser/generated/src/models/mappers.js +65 -0
  34. package/dist/browser/generated/src/models/mappers.js.map +1 -1
  35. package/dist/browser/generated/src/models/parameters.d.ts +7 -0
  36. package/dist/browser/generated/src/models/parameters.d.ts.map +1 -1
  37. package/dist/browser/generated/src/models/parameters.js +71 -1
  38. package/dist/browser/generated/src/models/parameters.js.map +1 -1
  39. package/dist/browser/generated/src/operations/appendBlob.js +5 -0
  40. package/dist/browser/generated/src/operations/appendBlob.js.map +1 -1
  41. package/dist/browser/generated/src/operations/blob.js +3 -0
  42. package/dist/browser/generated/src/operations/blob.js.map +1 -1
  43. package/dist/browser/generated/src/operations/blockBlob.js +10 -0
  44. package/dist/browser/generated/src/operations/blockBlob.js.map +1 -1
  45. package/dist/browser/generated/src/operations/pageBlob.js +5 -0
  46. package/dist/browser/generated/src/operations/pageBlob.js.map +1 -1
  47. package/dist/browser/generated/src/storageClient.js +2 -2
  48. package/dist/browser/generated/src/storageClient.js.map +1 -1
  49. package/dist/browser/generatedModels.d.ts +4 -4
  50. package/dist/browser/generatedModels.d.ts.map +1 -1
  51. package/dist/browser/generatedModels.js.map +1 -1
  52. package/dist/browser/index.d.ts +9 -9
  53. package/dist/browser/index.d.ts.map +1 -0
  54. package/dist/browser/index.js +1 -2
  55. package/dist/browser/index.js.map +1 -0
  56. package/dist/browser/internal-avro/index.d.ts +9 -2
  57. package/dist/browser/internal-avro/index.d.ts.map +1 -0
  58. package/dist/browser/internal-avro/index.js +14 -1
  59. package/dist/browser/internal-avro/index.js.map +1 -0
  60. package/dist/browser/models.d.ts +43 -0
  61. package/dist/browser/models.d.ts.map +1 -1
  62. package/dist/browser/models.js.map +1 -1
  63. package/dist/browser/sas/BlobSASSignatureValues.d.ts +11 -1
  64. package/dist/browser/sas/BlobSASSignatureValues.d.ts.map +1 -1
  65. package/dist/browser/sas/BlobSASSignatureValues.js +133 -2
  66. package/dist/browser/sas/BlobSASSignatureValues.js.map +1 -1
  67. package/dist/browser/sas/SASQueryParameters.d.ts +23 -2
  68. package/dist/browser/sas/SASQueryParameters.d.ts.map +1 -1
  69. package/dist/browser/sas/SASQueryParameters.js +34 -2
  70. package/dist/browser/sas/SASQueryParameters.js.map +1 -1
  71. package/dist/browser/utils/RetriableReadableStream.d.ts.map +1 -1
  72. package/dist/browser/utils/RetriableReadableStream.js +1 -0
  73. package/dist/browser/utils/RetriableReadableStream.js.map +1 -1
  74. package/dist/browser/utils/constants.d.ts.map +1 -1
  75. package/dist/browser/utils/constants.js +2 -2
  76. package/dist/browser/utils/constants.js.map +1 -1
  77. package/dist/browser/utils/utils.common.d.ts +16 -1
  78. package/dist/browser/utils/utils.common.d.ts.map +1 -1
  79. package/dist/browser/utils/utils.common.js +26 -0
  80. package/dist/browser/utils/utils.common.js.map +1 -1
  81. package/dist/browser/utils/utils.d.ts +12 -6
  82. package/dist/browser/utils/utils.d.ts.map +1 -0
  83. package/dist/browser/utils/utils.js +11 -11
  84. package/dist/browser/utils/utils.js.map +1 -0
  85. package/dist/commonjs/BatchResponse.js +15 -5
  86. package/dist/commonjs/BatchResponse.js.map +7 -1
  87. package/dist/commonjs/BatchResponseParser.js +127 -136
  88. package/dist/commonjs/BatchResponseParser.js.map +7 -1
  89. package/dist/commonjs/BatchUtils.js +38 -15
  90. package/dist/commonjs/BatchUtils.js.map +7 -1
  91. package/dist/commonjs/BlobBatch.js +280 -258
  92. package/dist/commonjs/BlobBatch.js.map +7 -1
  93. package/dist/commonjs/BlobBatchClient.js +188 -169
  94. package/dist/commonjs/BlobBatchClient.js.map +7 -1
  95. package/dist/commonjs/BlobDownloadResponse.d.ts +2 -1
  96. package/dist/commonjs/BlobDownloadResponse.d.ts.map +1 -1
  97. package/dist/commonjs/BlobDownloadResponse.js +487 -467
  98. package/dist/commonjs/BlobDownloadResponse.js.map +7 -1
  99. package/dist/commonjs/BlobLeaseClient.js +226 -196
  100. package/dist/commonjs/BlobLeaseClient.js.map +7 -1
  101. package/dist/commonjs/BlobQueryResponse.common.js +378 -365
  102. package/dist/commonjs/BlobQueryResponse.common.js.map +7 -1
  103. package/dist/commonjs/BlobQueryResponse.js +387 -371
  104. package/dist/commonjs/BlobQueryResponse.js.map +7 -1
  105. package/dist/commonjs/BlobServiceClient.d.ts +36 -5
  106. package/dist/commonjs/BlobServiceClient.d.ts.map +1 -1
  107. package/dist/commonjs/BlobServiceClient.js +784 -684
  108. package/dist/commonjs/BlobServiceClient.js.map +7 -1
  109. package/dist/commonjs/Clients.d.ts +68 -14
  110. package/dist/commonjs/Clients.d.ts.map +1 -1
  111. package/dist/commonjs/Clients.js +3120 -2804
  112. package/dist/commonjs/Clients.js.map +7 -1
  113. package/dist/commonjs/ContainerClient.d.ts +6 -4
  114. package/dist/commonjs/ContainerClient.d.ts.map +1 -1
  115. package/dist/commonjs/ContainerClient.js +1348 -1253
  116. package/dist/commonjs/ContainerClient.js.map +7 -1
  117. package/dist/commonjs/PageBlobRangeResponse.js +45 -31
  118. package/dist/commonjs/PageBlobRangeResponse.js.map +7 -1
  119. package/dist/commonjs/Pipeline.d.ts +2 -3
  120. package/dist/commonjs/Pipeline.d.ts.map +1 -1
  121. package/dist/commonjs/Pipeline.js +244 -244
  122. package/dist/commonjs/Pipeline.js.map +7 -1
  123. package/dist/commonjs/Range.js +35 -22
  124. package/dist/commonjs/Range.js.map +7 -1
  125. package/dist/commonjs/StorageClient.js +67 -54
  126. package/dist/commonjs/StorageClient.js.map +7 -1
  127. package/dist/commonjs/StorageContextClient.js +34 -19
  128. package/dist/commonjs/StorageContextClient.js.map +7 -1
  129. package/dist/commonjs/generated/src/index.js +32 -16
  130. package/dist/commonjs/generated/src/index.js.map +7 -1
  131. package/dist/commonjs/generated/src/models/index.d.ts +59 -4
  132. package/dist/commonjs/generated/src/models/index.d.ts.map +1 -1
  133. package/dist/commonjs/generated/src/models/index.js +164 -267
  134. package/dist/commonjs/generated/src/models/index.js.map +7 -1
  135. package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -1
  136. package/dist/commonjs/generated/src/models/mappers.js +8767 -8334
  137. package/dist/commonjs/generated/src/models/mappers.js.map +7 -1
  138. package/dist/commonjs/generated/src/models/parameters.d.ts +7 -0
  139. package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -1
  140. package/dist/commonjs/generated/src/models/parameters.js +2074 -1679
  141. package/dist/commonjs/generated/src/models/parameters.js.map +7 -1
  142. package/dist/commonjs/generated/src/operations/appendBlob.js +253 -214
  143. package/dist/commonjs/generated/src/operations/appendBlob.js.map +7 -1
  144. package/dist/commonjs/generated/src/operations/blob.js +1043 -961
  145. package/dist/commonjs/generated/src/operations/blob.js.map +7 -1
  146. package/dist/commonjs/generated/src/operations/blockBlob.js +406 -353
  147. package/dist/commonjs/generated/src/operations/blockBlob.js.map +7 -1
  148. package/dist/commonjs/generated/src/operations/container.js +735 -665
  149. package/dist/commonjs/generated/src/operations/container.js.map +7 -1
  150. package/dist/commonjs/generated/src/operations/index.js +31 -17
  151. package/dist/commonjs/generated/src/operations/index.js.map +7 -1
  152. package/dist/commonjs/generated/src/operations/pageBlob.js +491 -434
  153. package/dist/commonjs/generated/src/operations/pageBlob.js.map +7 -1
  154. package/dist/commonjs/generated/src/operations/service.js +352 -303
  155. package/dist/commonjs/generated/src/operations/service.js.map +7 -1
  156. package/dist/commonjs/generated/src/operationsInterfaces/appendBlob.js +15 -10
  157. package/dist/commonjs/generated/src/operationsInterfaces/appendBlob.js.map +7 -1
  158. package/dist/commonjs/generated/src/operationsInterfaces/blob.js +15 -10
  159. package/dist/commonjs/generated/src/operationsInterfaces/blob.js.map +7 -1
  160. package/dist/commonjs/generated/src/operationsInterfaces/blockBlob.js +15 -10
  161. package/dist/commonjs/generated/src/operationsInterfaces/blockBlob.js.map +7 -1
  162. package/dist/commonjs/generated/src/operationsInterfaces/container.js +15 -10
  163. package/dist/commonjs/generated/src/operationsInterfaces/container.js.map +7 -1
  164. package/dist/commonjs/generated/src/operationsInterfaces/index.js +31 -17
  165. package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +7 -1
  166. package/dist/commonjs/generated/src/operationsInterfaces/pageBlob.js +15 -10
  167. package/dist/commonjs/generated/src/operationsInterfaces/pageBlob.js.map +7 -1
  168. package/dist/commonjs/generated/src/operationsInterfaces/service.js +15 -10
  169. package/dist/commonjs/generated/src/operationsInterfaces/service.js.map +7 -1
  170. package/dist/commonjs/generated/src/storageClient.js +81 -63
  171. package/dist/commonjs/generated/src/storageClient.js.map +7 -1
  172. package/dist/commonjs/generatedModels.d.ts +4 -4
  173. package/dist/commonjs/generatedModels.d.ts.map +1 -1
  174. package/dist/commonjs/generatedModels.js +30 -11
  175. package/dist/commonjs/generatedModels.js.map +7 -1
  176. package/dist/commonjs/index.d.ts +14 -14
  177. package/dist/commonjs/index.d.ts.map +1 -1
  178. package/dist/commonjs/index.js +106 -52
  179. package/dist/commonjs/index.js.map +7 -1
  180. package/dist/commonjs/internal-avro/AvroConstants.js +36 -10
  181. package/dist/commonjs/internal-avro/AvroConstants.js.map +7 -1
  182. package/dist/commonjs/internal-avro/AvroParser.js +307 -297
  183. package/dist/commonjs/internal-avro/AvroParser.js.map +7 -1
  184. package/dist/commonjs/internal-avro/AvroReadable.js +26 -7
  185. package/dist/commonjs/internal-avro/AvroReadable.js.map +7 -1
  186. package/dist/commonjs/internal-avro/AvroReadableFromBlob.js +69 -50
  187. package/dist/commonjs/internal-avro/AvroReadableFromBlob.js.map +7 -1
  188. package/dist/commonjs/internal-avro/AvroReadableFromStream.js +96 -84
  189. package/dist/commonjs/internal-avro/AvroReadableFromStream.js.map +7 -1
  190. package/dist/commonjs/internal-avro/AvroReader.js +118 -110
  191. package/dist/commonjs/internal-avro/AvroReader.js.map +7 -1
  192. package/dist/commonjs/internal-avro/index.d.ts +1 -1
  193. package/dist/commonjs/internal-avro/index.d.ts.map +1 -1
  194. package/dist/commonjs/internal-avro/index.js +33 -12
  195. package/dist/commonjs/internal-avro/index.js.map +7 -1
  196. package/dist/commonjs/internal-avro/utils/utils.common.js +33 -17
  197. package/dist/commonjs/internal-avro/utils/utils.common.js.map +7 -1
  198. package/dist/commonjs/log.js +28 -11
  199. package/dist/commonjs/log.js.map +7 -1
  200. package/dist/commonjs/models.d.ts +43 -0
  201. package/dist/commonjs/models.d.ts.map +1 -1
  202. package/dist/commonjs/models.js +74 -115
  203. package/dist/commonjs/models.js.map +7 -1
  204. package/dist/commonjs/pollers/BlobStartCopyFromUrlPoller.js +116 -126
  205. package/dist/commonjs/pollers/BlobStartCopyFromUrlPoller.js.map +7 -1
  206. package/dist/commonjs/sas/AccountSASPermissions.js +233 -226
  207. package/dist/commonjs/sas/AccountSASPermissions.js.map +7 -1
  208. package/dist/commonjs/sas/AccountSASResourceTypes.js +80 -70
  209. package/dist/commonjs/sas/AccountSASResourceTypes.js.map +7 -1
  210. package/dist/commonjs/sas/AccountSASServices.js +88 -78
  211. package/dist/commonjs/sas/AccountSASServices.js.map +7 -1
  212. package/dist/commonjs/sas/AccountSASSignatureValues.js +119 -100
  213. package/dist/commonjs/sas/AccountSASSignatureValues.js.map +7 -1
  214. package/dist/commonjs/sas/BlobSASPermissions.js +204 -194
  215. package/dist/commonjs/sas/BlobSASPermissions.js.map +7 -1
  216. package/dist/commonjs/sas/BlobSASSignatureValues.d.ts +11 -1
  217. package/dist/commonjs/sas/BlobSASSignatureValues.d.ts.map +1 -1
  218. package/dist/commonjs/sas/BlobSASSignatureValues.js +822 -641
  219. package/dist/commonjs/sas/BlobSASSignatureValues.js.map +7 -1
  220. package/dist/commonjs/sas/ContainerSASPermissions.js +232 -220
  221. package/dist/commonjs/sas/ContainerSASPermissions.js.map +7 -1
  222. package/dist/commonjs/sas/SASQueryParameters.d.ts +23 -2
  223. package/dist/commonjs/sas/SASQueryParameters.d.ts.map +1 -1
  224. package/dist/commonjs/sas/SASQueryParameters.js +423 -361
  225. package/dist/commonjs/sas/SASQueryParameters.js.map +7 -1
  226. package/dist/commonjs/sas/SasIPRange.js +27 -14
  227. package/dist/commonjs/sas/SasIPRange.js.map +7 -1
  228. package/dist/commonjs/tsdoc-metadata.json +1 -1
  229. package/dist/commonjs/utils/Batch.js +134 -127
  230. package/dist/commonjs/utils/Batch.js.map +7 -1
  231. package/dist/commonjs/utils/BlobQuickQueryStream.js +129 -115
  232. package/dist/commonjs/utils/BlobQuickQueryStream.js.map +7 -1
  233. package/dist/commonjs/utils/Mutex.js +78 -64
  234. package/dist/commonjs/utils/Mutex.js.map +7 -1
  235. package/dist/commonjs/utils/RetriableReadableStream.d.ts.map +1 -1
  236. package/dist/commonjs/utils/RetriableReadableStream.js +128 -125
  237. package/dist/commonjs/utils/RetriableReadableStream.js.map +7 -1
  238. package/dist/commonjs/utils/SharedKeyComparator.js +437 -65
  239. package/dist/commonjs/utils/SharedKeyComparator.js.map +7 -1
  240. package/dist/commonjs/utils/constants.d.ts.map +1 -1
  241. package/dist/commonjs/utils/constants.js +290 -223
  242. package/dist/commonjs/utils/constants.js.map +7 -1
  243. package/dist/commonjs/utils/tracing.js +32 -16
  244. package/dist/commonjs/utils/tracing.js.map +7 -1
  245. package/dist/commonjs/utils/utils.common.d.ts +16 -1
  246. package/dist/commonjs/utils/utils.common.d.ts.map +1 -1
  247. package/dist/commonjs/utils/utils.common.js +566 -740
  248. package/dist/commonjs/utils/utils.common.js.map +7 -1
  249. package/dist/commonjs/utils/utils.js +131 -128
  250. package/dist/commonjs/utils/utils.js.map +7 -1
  251. package/dist/esm/BlobDownloadResponse.d.ts +2 -1
  252. package/dist/esm/BlobDownloadResponse.d.ts.map +1 -1
  253. package/dist/esm/BlobDownloadResponse.js +8 -1
  254. package/dist/esm/BlobDownloadResponse.js.map +1 -1
  255. package/dist/esm/BlobServiceClient.d.ts +36 -5
  256. package/dist/esm/BlobServiceClient.d.ts.map +1 -1
  257. package/dist/esm/BlobServiceClient.js +29 -17
  258. package/dist/esm/BlobServiceClient.js.map +1 -1
  259. package/dist/esm/Clients.d.ts +68 -14
  260. package/dist/esm/Clients.d.ts.map +1 -1
  261. package/dist/esm/Clients.js +97 -28
  262. package/dist/esm/Clients.js.map +1 -1
  263. package/dist/esm/ContainerClient.d.ts +6 -4
  264. package/dist/esm/ContainerClient.d.ts.map +1 -1
  265. package/dist/esm/ContainerClient.js +8 -6
  266. package/dist/esm/ContainerClient.js.map +1 -1
  267. package/dist/esm/Pipeline.d.ts +2 -3
  268. package/dist/esm/Pipeline.d.ts.map +1 -1
  269. package/dist/esm/Pipeline.js.map +1 -1
  270. package/dist/esm/generated/src/models/index.d.ts +59 -4
  271. package/dist/esm/generated/src/models/index.d.ts.map +1 -1
  272. package/dist/esm/generated/src/models/index.js +2 -2
  273. package/dist/esm/generated/src/models/index.js.map +1 -1
  274. package/dist/esm/generated/src/models/mappers.d.ts.map +1 -1
  275. package/dist/esm/generated/src/models/mappers.js +65 -0
  276. package/dist/esm/generated/src/models/mappers.js.map +1 -1
  277. package/dist/esm/generated/src/models/parameters.d.ts +7 -0
  278. package/dist/esm/generated/src/models/parameters.d.ts.map +1 -1
  279. package/dist/esm/generated/src/models/parameters.js +71 -1
  280. package/dist/esm/generated/src/models/parameters.js.map +1 -1
  281. package/dist/esm/generated/src/operations/appendBlob.js +5 -0
  282. package/dist/esm/generated/src/operations/appendBlob.js.map +1 -1
  283. package/dist/esm/generated/src/operations/blob.js +3 -0
  284. package/dist/esm/generated/src/operations/blob.js.map +1 -1
  285. package/dist/esm/generated/src/operations/blockBlob.js +10 -0
  286. package/dist/esm/generated/src/operations/blockBlob.js.map +1 -1
  287. package/dist/esm/generated/src/operations/pageBlob.js +5 -0
  288. package/dist/esm/generated/src/operations/pageBlob.js.map +1 -1
  289. package/dist/esm/generated/src/storageClient.js +2 -2
  290. package/dist/esm/generated/src/storageClient.js.map +1 -1
  291. package/dist/esm/generatedModels.d.ts +4 -4
  292. package/dist/esm/generatedModels.d.ts.map +1 -1
  293. package/dist/esm/generatedModels.js.map +1 -1
  294. package/dist/esm/index.d.ts +14 -14
  295. package/dist/esm/index.d.ts.map +1 -1
  296. package/dist/esm/index.js +0 -1
  297. package/dist/esm/index.js.map +1 -1
  298. package/dist/esm/internal-avro/index.d.ts +1 -1
  299. package/dist/esm/internal-avro/index.d.ts.map +1 -1
  300. package/dist/esm/internal-avro/index.js.map +1 -1
  301. package/dist/esm/models.d.ts +43 -0
  302. package/dist/esm/models.d.ts.map +1 -1
  303. package/dist/esm/models.js.map +1 -1
  304. package/dist/esm/sas/BlobSASSignatureValues.d.ts +11 -1
  305. package/dist/esm/sas/BlobSASSignatureValues.d.ts.map +1 -1
  306. package/dist/esm/sas/BlobSASSignatureValues.js +133 -2
  307. package/dist/esm/sas/BlobSASSignatureValues.js.map +1 -1
  308. package/dist/esm/sas/SASQueryParameters.d.ts +23 -2
  309. package/dist/esm/sas/SASQueryParameters.d.ts.map +1 -1
  310. package/dist/esm/sas/SASQueryParameters.js +34 -2
  311. package/dist/esm/sas/SASQueryParameters.js.map +1 -1
  312. package/dist/esm/utils/RetriableReadableStream.d.ts.map +1 -1
  313. package/dist/esm/utils/RetriableReadableStream.js +1 -0
  314. package/dist/esm/utils/RetriableReadableStream.js.map +1 -1
  315. package/dist/esm/utils/constants.d.ts.map +1 -1
  316. package/dist/esm/utils/constants.js +2 -2
  317. package/dist/esm/utils/constants.js.map +1 -1
  318. package/dist/esm/utils/utils.common.d.ts +16 -1
  319. package/dist/esm/utils/utils.common.d.ts.map +1 -1
  320. package/dist/esm/utils/utils.common.js +26 -0
  321. package/dist/esm/utils/utils.common.js.map +1 -1
  322. package/dist/react-native/BlobDownloadResponse.d.ts +5 -2
  323. package/dist/react-native/BlobDownloadResponse.d.ts.map +1 -0
  324. package/dist/react-native/BlobDownloadResponse.js +9 -5
  325. package/dist/react-native/BlobDownloadResponse.js.map +1 -0
  326. package/dist/react-native/BlobQueryResponse.d.ts +1 -1
  327. package/dist/react-native/BlobQueryResponse.d.ts.map +1 -0
  328. package/dist/react-native/BlobQueryResponse.js +1 -1
  329. package/dist/react-native/BlobQueryResponse.js.map +1 -0
  330. package/dist/react-native/BlobServiceClient.d.ts +36 -5
  331. package/dist/react-native/BlobServiceClient.d.ts.map +1 -1
  332. package/dist/react-native/BlobServiceClient.js +29 -17
  333. package/dist/react-native/BlobServiceClient.js.map +1 -1
  334. package/dist/react-native/Clients.d.ts +68 -14
  335. package/dist/react-native/Clients.d.ts.map +1 -1
  336. package/dist/react-native/Clients.js +97 -28
  337. package/dist/react-native/Clients.js.map +1 -1
  338. package/dist/react-native/ContainerClient.d.ts +6 -4
  339. package/dist/react-native/ContainerClient.d.ts.map +1 -1
  340. package/dist/react-native/ContainerClient.js +8 -6
  341. package/dist/react-native/ContainerClient.js.map +1 -1
  342. package/dist/react-native/Pipeline.d.ts +2 -3
  343. package/dist/react-native/Pipeline.d.ts.map +1 -1
  344. package/dist/react-native/Pipeline.js.map +1 -1
  345. package/dist/react-native/generated/src/models/index.d.ts +59 -4
  346. package/dist/react-native/generated/src/models/index.d.ts.map +1 -1
  347. package/dist/react-native/generated/src/models/index.js +2 -2
  348. package/dist/react-native/generated/src/models/index.js.map +1 -1
  349. package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -1
  350. package/dist/react-native/generated/src/models/mappers.js +65 -0
  351. package/dist/react-native/generated/src/models/mappers.js.map +1 -1
  352. package/dist/react-native/generated/src/models/parameters.d.ts +7 -0
  353. package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -1
  354. package/dist/react-native/generated/src/models/parameters.js +71 -1
  355. package/dist/react-native/generated/src/models/parameters.js.map +1 -1
  356. package/dist/react-native/generated/src/operations/appendBlob.js +5 -0
  357. package/dist/react-native/generated/src/operations/appendBlob.js.map +1 -1
  358. package/dist/react-native/generated/src/operations/blob.js +3 -0
  359. package/dist/react-native/generated/src/operations/blob.js.map +1 -1
  360. package/dist/react-native/generated/src/operations/blockBlob.js +10 -0
  361. package/dist/react-native/generated/src/operations/blockBlob.js.map +1 -1
  362. package/dist/react-native/generated/src/operations/pageBlob.js +5 -0
  363. package/dist/react-native/generated/src/operations/pageBlob.js.map +1 -1
  364. package/dist/react-native/generated/src/storageClient.js +2 -2
  365. package/dist/react-native/generated/src/storageClient.js.map +1 -1
  366. package/dist/react-native/generatedModels.d.ts +4 -4
  367. package/dist/react-native/generatedModels.d.ts.map +1 -1
  368. package/dist/react-native/generatedModels.js.map +1 -1
  369. package/dist/react-native/index.d.ts +14 -14
  370. package/dist/react-native/index.d.ts.map +1 -1
  371. package/dist/react-native/index.js +0 -1
  372. package/dist/react-native/index.js.map +1 -1
  373. package/dist/react-native/internal-avro/index.d.ts +1 -1
  374. package/dist/react-native/internal-avro/index.d.ts.map +1 -1
  375. package/dist/react-native/internal-avro/index.js.map +1 -1
  376. package/dist/react-native/models.d.ts +43 -0
  377. package/dist/react-native/models.d.ts.map +1 -1
  378. package/dist/react-native/models.js.map +1 -1
  379. package/dist/react-native/sas/BlobSASSignatureValues.d.ts +11 -1
  380. package/dist/react-native/sas/BlobSASSignatureValues.d.ts.map +1 -1
  381. package/dist/react-native/sas/BlobSASSignatureValues.js +133 -2
  382. package/dist/react-native/sas/BlobSASSignatureValues.js.map +1 -1
  383. package/dist/react-native/sas/SASQueryParameters.d.ts +23 -2
  384. package/dist/react-native/sas/SASQueryParameters.d.ts.map +1 -1
  385. package/dist/react-native/sas/SASQueryParameters.js +34 -2
  386. package/dist/react-native/sas/SASQueryParameters.js.map +1 -1
  387. package/dist/react-native/utils/RetriableReadableStream.d.ts.map +1 -1
  388. package/dist/react-native/utils/RetriableReadableStream.js +1 -0
  389. package/dist/react-native/utils/RetriableReadableStream.js.map +1 -1
  390. package/dist/react-native/utils/constants.d.ts.map +1 -1
  391. package/dist/react-native/utils/constants.js +2 -2
  392. package/dist/react-native/utils/constants.js.map +1 -1
  393. package/dist/react-native/utils/utils.common.d.ts +16 -1
  394. package/dist/react-native/utils/utils.common.d.ts.map +1 -1
  395. package/dist/react-native/utils/utils.common.js +26 -0
  396. package/dist/react-native/utils/utils.common.js.map +1 -1
  397. package/dist/react-native/utils/utils.d.ts +12 -6
  398. package/dist/react-native/utils/utils.d.ts.map +1 -0
  399. package/dist/react-native/utils/utils.js +11 -11
  400. package/dist/react-native/utils/utils.js.map +1 -0
  401. package/package.json +3 -20
  402. package/dist/browser/BatchUtils-browser.d.mts.map +0 -1
  403. package/dist/browser/BatchUtils-browser.mjs.map +0 -1
  404. package/dist/browser/BlobDownloadResponse-browser.d.mts.map +0 -1
  405. package/dist/browser/BlobDownloadResponse-browser.mjs.map +0 -1
  406. package/dist/browser/BlobQueryResponse-browser.d.mts.map +0 -1
  407. package/dist/browser/BlobQueryResponse-browser.mjs.map +0 -1
  408. package/dist/browser/credentials/StorageSharedKeyCredential-react-native.d.mts +0 -3
  409. package/dist/browser/credentials/StorageSharedKeyCredential-react-native.d.mts.map +0 -1
  410. package/dist/browser/credentials/StorageSharedKeyCredential-react-native.mjs +0 -5
  411. package/dist/browser/credentials/StorageSharedKeyCredential-react-native.mjs.map +0 -1
  412. package/dist/browser/index-browser.d.mts.map +0 -1
  413. package/dist/browser/index-browser.mjs.map +0 -1
  414. package/dist/browser/internal-avro/index-browser.d.mts.map +0 -1
  415. package/dist/browser/internal-avro/index-browser.mjs.map +0 -1
  416. package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2-react-native.d.mts +0 -17
  417. package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2-react-native.d.mts.map +0 -1
  418. package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2-react-native.mjs +0 -18
  419. package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2-react-native.mjs.map +0 -1
  420. package/dist/browser/utils/utils-browser.d.mts.map +0 -1
  421. package/dist/browser/utils/utils-browser.mjs.map +0 -1
  422. package/dist/esm/credentials/StorageSharedKeyCredential-react-native.d.mts +0 -3
  423. package/dist/esm/credentials/StorageSharedKeyCredential-react-native.d.mts.map +0 -1
  424. package/dist/esm/credentials/StorageSharedKeyCredential-react-native.mjs +0 -5
  425. package/dist/esm/credentials/StorageSharedKeyCredential-react-native.mjs.map +0 -1
  426. package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2-react-native.d.mts +0 -17
  427. package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2-react-native.d.mts.map +0 -1
  428. package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2-react-native.mjs +0 -18
  429. package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2-react-native.mjs.map +0 -1
  430. package/dist/react-native/BlobDownloadResponse-react-native.d.mts.map +0 -1
  431. package/dist/react-native/BlobDownloadResponse-react-native.mjs.map +0 -1
  432. package/dist/react-native/BlobQueryResponse-react-native.d.mts.map +0 -1
  433. package/dist/react-native/BlobQueryResponse-react-native.mjs.map +0 -1
  434. package/dist/react-native/credentials/StorageSharedKeyCredential-react-native.d.mts +0 -3
  435. package/dist/react-native/credentials/StorageSharedKeyCredential-react-native.d.mts.map +0 -1
  436. package/dist/react-native/credentials/StorageSharedKeyCredential-react-native.mjs +0 -5
  437. package/dist/react-native/credentials/StorageSharedKeyCredential-react-native.mjs.map +0 -1
  438. package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2-react-native.d.mts +0 -17
  439. package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2-react-native.d.mts.map +0 -1
  440. package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2-react-native.mjs +0 -18
  441. package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2-react-native.mjs.map +0 -1
  442. package/dist/react-native/utils/utils-react-native.d.mts.map +0 -1
  443. package/dist/react-native/utils/utils-react-native.mjs.map +0 -1
@@ -1,469 +1,489 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BlobDownloadResponse = void 0;
4
- // Copyright (c) Microsoft Corporation.
5
- // Licensed under the MIT License.
6
- const core_util_1 = require("@azure/core-util");
7
- const RetriableReadableStream_js_1 = require("./utils/RetriableReadableStream.js");
8
- /**
9
- * ONLY AVAILABLE IN NODE.JS RUNTIME.
10
- *
11
- * BlobDownloadResponse implements BlobDownloadResponseParsed interface, and in Node.js runtime it will
12
- * automatically retry when internal read stream unexpected ends. (This kind of unexpected ends cannot
13
- * trigger retries defined in pipeline retry policy.)
14
- *
15
- * The {@link readableStreamBody} stream will retry underlayer, you can just use it as a normal Node.js
16
- * Readable stream.
17
- */
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var BlobDownloadResponse_exports = {};
19
+ __export(BlobDownloadResponse_exports, {
20
+ BlobDownloadResponse: () => BlobDownloadResponse
21
+ });
22
+ module.exports = __toCommonJS(BlobDownloadResponse_exports);
23
+ var import_core_util = require("@azure/core-util");
24
+ var import_storage_common = require("@azure/storage-common");
25
+ var import_RetriableReadableStream = require("./utils/RetriableReadableStream.js");
18
26
  class BlobDownloadResponse {
19
- /**
20
- * Indicates that the service supports
21
- * requests for partial file content.
22
- *
23
- * @readonly
24
- */
25
- get acceptRanges() {
26
- return this.originalResponse.acceptRanges;
27
- }
28
- /**
29
- * Returns if it was previously specified
30
- * for the file.
31
- *
32
- * @readonly
33
- */
34
- get cacheControl() {
35
- return this.originalResponse.cacheControl;
36
- }
37
- /**
38
- * Returns the value that was specified
39
- * for the 'x-ms-content-disposition' header and specifies how to process the
40
- * response.
41
- *
42
- * @readonly
43
- */
44
- get contentDisposition() {
45
- return this.originalResponse.contentDisposition;
46
- }
47
- /**
48
- * Returns the value that was specified
49
- * for the Content-Encoding request header.
50
- *
51
- * @readonly
52
- */
53
- get contentEncoding() {
54
- return this.originalResponse.contentEncoding;
55
- }
56
- /**
57
- * Returns the value that was specified
58
- * for the Content-Language request header.
59
- *
60
- * @readonly
61
- */
62
- get contentLanguage() {
63
- return this.originalResponse.contentLanguage;
64
- }
65
- /**
66
- * The current sequence number for a
67
- * page blob. This header is not returned for block blobs or append blobs.
68
- *
69
- * @readonly
70
- */
71
- get blobSequenceNumber() {
72
- return this.originalResponse.blobSequenceNumber;
73
- }
74
- /**
75
- * The blob's type. Possible values include:
76
- * 'BlockBlob', 'PageBlob', 'AppendBlob'.
77
- *
78
- * @readonly
79
- */
80
- get blobType() {
81
- return this.originalResponse.blobType;
82
- }
83
- /**
84
- * The number of bytes present in the
85
- * response body.
86
- *
87
- * @readonly
88
- */
89
- get contentLength() {
90
- return this.originalResponse.contentLength;
91
- }
92
- /**
93
- * If the file has an MD5 hash and the
94
- * request is to read the full file, this response header is returned so that
95
- * the client can check for message content integrity. If the request is to
96
- * read a specified range and the 'x-ms-range-get-content-md5' is set to
97
- * true, then the request returns an MD5 hash for the range, as long as the
98
- * range size is less than or equal to 4 MB. If neither of these sets of
99
- * conditions is true, then no value is returned for the 'Content-MD5'
100
- * header.
101
- *
102
- * @readonly
103
- */
104
- get contentMD5() {
105
- return this.originalResponse.contentMD5;
106
- }
107
- /**
108
- * Indicates the range of bytes returned if
109
- * the client requested a subset of the file by setting the Range request
110
- * header.
111
- *
112
- * @readonly
113
- */
114
- get contentRange() {
115
- return this.originalResponse.contentRange;
116
- }
117
- /**
118
- * The content type specified for the file.
119
- * The default content type is 'application/octet-stream'
120
- *
121
- * @readonly
122
- */
123
- get contentType() {
124
- return this.originalResponse.contentType;
125
- }
126
- /**
127
- * Conclusion time of the last attempted
128
- * Copy File operation where this file was the destination file. This value
129
- * can specify the time of a completed, aborted, or failed copy attempt.
130
- *
131
- * @readonly
132
- */
133
- get copyCompletedOn() {
134
- return this.originalResponse.copyCompletedOn;
135
- }
136
- /**
137
- * String identifier for the last attempted Copy
138
- * File operation where this file was the destination file.
139
- *
140
- * @readonly
141
- */
142
- get copyId() {
143
- return this.originalResponse.copyId;
144
- }
145
- /**
146
- * Contains the number of bytes copied and
147
- * the total bytes in the source in the last attempted Copy File operation
148
- * where this file was the destination file. Can show between 0 and
149
- * Content-Length bytes copied.
150
- *
151
- * @readonly
152
- */
153
- get copyProgress() {
154
- return this.originalResponse.copyProgress;
155
- }
156
- /**
157
- * URL up to 2KB in length that specifies the
158
- * source file used in the last attempted Copy File operation where this file
159
- * was the destination file.
160
- *
161
- * @readonly
162
- */
163
- get copySource() {
164
- return this.originalResponse.copySource;
165
- }
166
- /**
167
- * State of the copy operation
168
- * identified by 'x-ms-copy-id'. Possible values include: 'pending',
169
- * 'success', 'aborted', 'failed'
170
- *
171
- * @readonly
172
- */
173
- get copyStatus() {
174
- return this.originalResponse.copyStatus;
175
- }
176
- /**
177
- * Only appears when
178
- * x-ms-copy-status is failed or pending. Describes cause of fatal or
179
- * non-fatal copy operation failure.
180
- *
181
- * @readonly
182
- */
183
- get copyStatusDescription() {
184
- return this.originalResponse.copyStatusDescription;
185
- }
186
- /**
187
- * When a blob is leased,
188
- * specifies whether the lease is of infinite or fixed duration. Possible
189
- * values include: 'infinite', 'fixed'.
190
- *
191
- * @readonly
192
- */
193
- get leaseDuration() {
194
- return this.originalResponse.leaseDuration;
195
- }
196
- /**
197
- * Lease state of the blob. Possible
198
- * values include: 'available', 'leased', 'expired', 'breaking', 'broken'.
199
- *
200
- * @readonly
201
- */
202
- get leaseState() {
203
- return this.originalResponse.leaseState;
204
- }
205
- /**
206
- * The current lease status of the
207
- * blob. Possible values include: 'locked', 'unlocked'.
208
- *
209
- * @readonly
210
- */
211
- get leaseStatus() {
212
- return this.originalResponse.leaseStatus;
213
- }
214
- /**
215
- * A UTC date/time value generated by the service that
216
- * indicates the time at which the response was initiated.
217
- *
218
- * @readonly
219
- */
220
- get date() {
221
- return this.originalResponse.date;
222
- }
223
- /**
224
- * The number of committed blocks
225
- * present in the blob. This header is returned only for append blobs.
226
- *
227
- * @readonly
228
- */
229
- get blobCommittedBlockCount() {
230
- return this.originalResponse.blobCommittedBlockCount;
231
- }
232
- /**
233
- * The ETag contains a value that you can use to
234
- * perform operations conditionally, in quotes.
235
- *
236
- * @readonly
237
- */
238
- get etag() {
239
- return this.originalResponse.etag;
240
- }
241
- /**
242
- * The number of tags associated with the blob
243
- *
244
- * @readonly
245
- */
246
- get tagCount() {
247
- return this.originalResponse.tagCount;
248
- }
249
- /**
250
- * The error code.
251
- *
252
- * @readonly
253
- */
254
- get errorCode() {
255
- return this.originalResponse.errorCode;
256
- }
257
- /**
258
- * The value of this header is set to
259
- * true if the file data and application metadata are completely encrypted
260
- * using the specified algorithm. Otherwise, the value is set to false (when
261
- * the file is unencrypted, or if only parts of the file/application metadata
262
- * are encrypted).
263
- *
264
- * @readonly
265
- */
266
- get isServerEncrypted() {
267
- return this.originalResponse.isServerEncrypted;
268
- }
269
- /**
270
- * If the blob has a MD5 hash, and if
271
- * request contains range header (Range or x-ms-range), this response header
272
- * is returned with the value of the whole blob's MD5 value. This value may
273
- * or may not be equal to the value returned in Content-MD5 header, with the
274
- * latter calculated from the requested range.
275
- *
276
- * @readonly
277
- */
278
- get blobContentMD5() {
279
- return this.originalResponse.blobContentMD5;
280
- }
281
- /**
282
- * Returns the date and time the file was last
283
- * modified. Any operation that modifies the file or its properties updates
284
- * the last modified time.
285
- *
286
- * @readonly
287
- */
288
- get lastModified() {
289
- return this.originalResponse.lastModified;
290
- }
291
- /**
292
- * Returns the UTC date and time generated by the service that indicates the time at which the blob was
293
- * last read or written to.
294
- *
295
- * @readonly
296
- */
297
- get lastAccessed() {
298
- return this.originalResponse.lastAccessed;
299
- }
300
- /**
301
- * Returns the date and time the blob was created.
302
- *
303
- * @readonly
304
- */
305
- get createdOn() {
306
- return this.originalResponse.createdOn;
307
- }
308
- /**
309
- * A name-value pair
310
- * to associate with a file storage object.
311
- *
312
- * @readonly
313
- */
314
- get metadata() {
315
- return this.originalResponse.metadata;
316
- }
317
- /**
318
- * This header uniquely identifies the request
319
- * that was made and can be used for troubleshooting the request.
320
- *
321
- * @readonly
322
- */
323
- get requestId() {
324
- return this.originalResponse.requestId;
325
- }
326
- /**
327
- * If a client request id header is sent in the request, this header will be present in the
328
- * response with the same value.
329
- *
330
- * @readonly
331
- */
332
- get clientRequestId() {
333
- return this.originalResponse.clientRequestId;
334
- }
335
- /**
336
- * Indicates the version of the Blob service used
337
- * to execute the request.
338
- *
339
- * @readonly
340
- */
341
- get version() {
342
- return this.originalResponse.version;
343
- }
344
- /**
345
- * Indicates the versionId of the downloaded blob version.
346
- *
347
- * @readonly
348
- */
349
- get versionId() {
350
- return this.originalResponse.versionId;
351
- }
352
- /**
353
- * Indicates whether version of this blob is a current version.
354
- *
355
- * @readonly
356
- */
357
- get isCurrentVersion() {
358
- return this.originalResponse.isCurrentVersion;
359
- }
360
- /**
361
- * The SHA-256 hash of the encryption key used to encrypt the blob. This value is only returned
362
- * when the blob was encrypted with a customer-provided key.
363
- *
364
- * @readonly
365
- */
366
- get encryptionKeySha256() {
367
- return this.originalResponse.encryptionKeySha256;
368
- }
369
- /**
370
- * If the request is to read a specified range and the x-ms-range-get-content-crc64 is set to
371
- * true, then the request returns a crc64 for the range, as long as the range size is less than
372
- * or equal to 4 MB. If both x-ms-range-get-content-crc64 & x-ms-range-get-content-md5 is
373
- * specified in the same request, it will fail with 400(Bad Request)
374
- */
375
- get contentCrc64() {
376
- return this.originalResponse.contentCrc64;
377
- }
378
- /**
379
- * Object Replication Policy Id of the destination blob.
380
- *
381
- * @readonly
382
- */
383
- get objectReplicationDestinationPolicyId() {
384
- return this.originalResponse.objectReplicationDestinationPolicyId;
385
- }
386
- /**
387
- * Parsed Object Replication Policy Id, Rule Id(s) and status of the source blob.
388
- *
389
- * @readonly
390
- */
391
- get objectReplicationSourceProperties() {
392
- return this.originalResponse.objectReplicationSourceProperties;
393
- }
394
- /**
395
- * If this blob has been sealed.
396
- *
397
- * @readonly
398
- */
399
- get isSealed() {
400
- return this.originalResponse.isSealed;
401
- }
402
- /**
403
- * UTC date/time value generated by the service that indicates the time at which the blob immutability policy will expire.
404
- *
405
- * @readonly
406
- */
407
- get immutabilityPolicyExpiresOn() {
408
- return this.originalResponse.immutabilityPolicyExpiresOn;
409
- }
410
- /**
411
- * Indicates immutability policy mode.
412
- *
413
- * @readonly
414
- */
415
- get immutabilityPolicyMode() {
416
- return this.originalResponse.immutabilityPolicyMode;
417
- }
418
- /**
419
- * Indicates if a legal hold is present on the blob.
420
- *
421
- * @readonly
422
- */
423
- get legalHold() {
424
- return this.originalResponse.legalHold;
425
- }
426
- /**
427
- * The response body as a browser Blob.
428
- * Always undefined in node.js.
429
- *
430
- * @readonly
431
- */
432
- get contentAsBlob() {
433
- return this.originalResponse.blobBody;
434
- }
435
- /**
436
- * The response body as a node.js Readable stream.
437
- * Always undefined in the browser.
438
- *
439
- * It will automatically retry when internal read stream unexpected ends.
440
- *
441
- * @readonly
442
- */
443
- get readableStreamBody() {
444
- return core_util_1.isNodeLike ? this.blobDownloadStream : undefined;
445
- }
446
- /**
447
- * The HTTP response.
448
- */
449
- get _response() {
450
- return this.originalResponse._response;
451
- }
452
- originalResponse;
453
- blobDownloadStream;
454
- /**
455
- * Creates an instance of BlobDownloadResponse.
456
- *
457
- * @param originalResponse -
458
- * @param getter -
459
- * @param offset -
460
- * @param count -
461
- * @param options -
462
- */
463
- constructor(originalResponse, getter, offset, count, options = {}) {
464
- this.originalResponse = originalResponse;
465
- this.blobDownloadStream = new RetriableReadableStream_js_1.RetriableReadableStream(this.originalResponse.readableStreamBody, getter, offset, count, options);
466
- }
27
+ /**
28
+ * Indicates that the service supports
29
+ * requests for partial file content.
30
+ *
31
+ * @readonly
32
+ */
33
+ get acceptRanges() {
34
+ return this.originalResponse.acceptRanges;
35
+ }
36
+ /**
37
+ * Returns if it was previously specified
38
+ * for the file.
39
+ *
40
+ * @readonly
41
+ */
42
+ get cacheControl() {
43
+ return this.originalResponse.cacheControl;
44
+ }
45
+ /**
46
+ * Returns the value that was specified
47
+ * for the 'x-ms-content-disposition' header and specifies how to process the
48
+ * response.
49
+ *
50
+ * @readonly
51
+ */
52
+ get contentDisposition() {
53
+ return this.originalResponse.contentDisposition;
54
+ }
55
+ /**
56
+ * Returns the value that was specified
57
+ * for the Content-Encoding request header.
58
+ *
59
+ * @readonly
60
+ */
61
+ get contentEncoding() {
62
+ return this.originalResponse.contentEncoding;
63
+ }
64
+ /**
65
+ * Returns the value that was specified
66
+ * for the Content-Language request header.
67
+ *
68
+ * @readonly
69
+ */
70
+ get contentLanguage() {
71
+ return this.originalResponse.contentLanguage;
72
+ }
73
+ /**
74
+ * The current sequence number for a
75
+ * page blob. This header is not returned for block blobs or append blobs.
76
+ *
77
+ * @readonly
78
+ */
79
+ get blobSequenceNumber() {
80
+ return this.originalResponse.blobSequenceNumber;
81
+ }
82
+ /**
83
+ * The blob's type. Possible values include:
84
+ * 'BlockBlob', 'PageBlob', 'AppendBlob'.
85
+ *
86
+ * @readonly
87
+ */
88
+ get blobType() {
89
+ return this.originalResponse.blobType;
90
+ }
91
+ /**
92
+ * The number of bytes present in the
93
+ * response body.
94
+ *
95
+ * @readonly
96
+ */
97
+ get contentLength() {
98
+ return this.originalResponse.contentLength;
99
+ }
100
+ /**
101
+ * If the file has an MD5 hash and the
102
+ * request is to read the full file, this response header is returned so that
103
+ * the client can check for message content integrity. If the request is to
104
+ * read a specified range and the 'x-ms-range-get-content-md5' is set to
105
+ * true, then the request returns an MD5 hash for the range, as long as the
106
+ * range size is less than or equal to 4 MB. If neither of these sets of
107
+ * conditions is true, then no value is returned for the 'Content-MD5'
108
+ * header.
109
+ *
110
+ * @readonly
111
+ */
112
+ get contentMD5() {
113
+ return this.originalResponse.contentMD5;
114
+ }
115
+ /**
116
+ * Indicates the range of bytes returned if
117
+ * the client requested a subset of the file by setting the Range request
118
+ * header.
119
+ *
120
+ * @readonly
121
+ */
122
+ get contentRange() {
123
+ return this.originalResponse.contentRange;
124
+ }
125
+ /**
126
+ * The content type specified for the file.
127
+ * The default content type is 'application/octet-stream'
128
+ *
129
+ * @readonly
130
+ */
131
+ get contentType() {
132
+ return this.originalResponse.contentType;
133
+ }
134
+ /**
135
+ * Conclusion time of the last attempted
136
+ * Copy File operation where this file was the destination file. This value
137
+ * can specify the time of a completed, aborted, or failed copy attempt.
138
+ *
139
+ * @readonly
140
+ */
141
+ get copyCompletedOn() {
142
+ return this.originalResponse.copyCompletedOn;
143
+ }
144
+ /**
145
+ * String identifier for the last attempted Copy
146
+ * File operation where this file was the destination file.
147
+ *
148
+ * @readonly
149
+ */
150
+ get copyId() {
151
+ return this.originalResponse.copyId;
152
+ }
153
+ /**
154
+ * Contains the number of bytes copied and
155
+ * the total bytes in the source in the last attempted Copy File operation
156
+ * where this file was the destination file. Can show between 0 and
157
+ * Content-Length bytes copied.
158
+ *
159
+ * @readonly
160
+ */
161
+ get copyProgress() {
162
+ return this.originalResponse.copyProgress;
163
+ }
164
+ /**
165
+ * URL up to 2KB in length that specifies the
166
+ * source file used in the last attempted Copy File operation where this file
167
+ * was the destination file.
168
+ *
169
+ * @readonly
170
+ */
171
+ get copySource() {
172
+ return this.originalResponse.copySource;
173
+ }
174
+ /**
175
+ * State of the copy operation
176
+ * identified by 'x-ms-copy-id'. Possible values include: 'pending',
177
+ * 'success', 'aborted', 'failed'
178
+ *
179
+ * @readonly
180
+ */
181
+ get copyStatus() {
182
+ return this.originalResponse.copyStatus;
183
+ }
184
+ /**
185
+ * Only appears when
186
+ * x-ms-copy-status is failed or pending. Describes cause of fatal or
187
+ * non-fatal copy operation failure.
188
+ *
189
+ * @readonly
190
+ */
191
+ get copyStatusDescription() {
192
+ return this.originalResponse.copyStatusDescription;
193
+ }
194
+ /**
195
+ * When a blob is leased,
196
+ * specifies whether the lease is of infinite or fixed duration. Possible
197
+ * values include: 'infinite', 'fixed'.
198
+ *
199
+ * @readonly
200
+ */
201
+ get leaseDuration() {
202
+ return this.originalResponse.leaseDuration;
203
+ }
204
+ /**
205
+ * Lease state of the blob. Possible
206
+ * values include: 'available', 'leased', 'expired', 'breaking', 'broken'.
207
+ *
208
+ * @readonly
209
+ */
210
+ get leaseState() {
211
+ return this.originalResponse.leaseState;
212
+ }
213
+ /**
214
+ * The current lease status of the
215
+ * blob. Possible values include: 'locked', 'unlocked'.
216
+ *
217
+ * @readonly
218
+ */
219
+ get leaseStatus() {
220
+ return this.originalResponse.leaseStatus;
221
+ }
222
+ /**
223
+ * A UTC date/time value generated by the service that
224
+ * indicates the time at which the response was initiated.
225
+ *
226
+ * @readonly
227
+ */
228
+ get date() {
229
+ return this.originalResponse.date;
230
+ }
231
+ /**
232
+ * The number of committed blocks
233
+ * present in the blob. This header is returned only for append blobs.
234
+ *
235
+ * @readonly
236
+ */
237
+ get blobCommittedBlockCount() {
238
+ return this.originalResponse.blobCommittedBlockCount;
239
+ }
240
+ /**
241
+ * The ETag contains a value that you can use to
242
+ * perform operations conditionally, in quotes.
243
+ *
244
+ * @readonly
245
+ */
246
+ get etag() {
247
+ return this.originalResponse.etag;
248
+ }
249
+ /**
250
+ * The number of tags associated with the blob
251
+ *
252
+ * @readonly
253
+ */
254
+ get tagCount() {
255
+ return this.originalResponse.tagCount;
256
+ }
257
+ /**
258
+ * The error code.
259
+ *
260
+ * @readonly
261
+ */
262
+ get errorCode() {
263
+ return this.originalResponse.errorCode;
264
+ }
265
+ /**
266
+ * The value of this header is set to
267
+ * true if the file data and application metadata are completely encrypted
268
+ * using the specified algorithm. Otherwise, the value is set to false (when
269
+ * the file is unencrypted, or if only parts of the file/application metadata
270
+ * are encrypted).
271
+ *
272
+ * @readonly
273
+ */
274
+ get isServerEncrypted() {
275
+ return this.originalResponse.isServerEncrypted;
276
+ }
277
+ /**
278
+ * If the blob has a MD5 hash, and if
279
+ * request contains range header (Range or x-ms-range), this response header
280
+ * is returned with the value of the whole blob's MD5 value. This value may
281
+ * or may not be equal to the value returned in Content-MD5 header, with the
282
+ * latter calculated from the requested range.
283
+ *
284
+ * @readonly
285
+ */
286
+ get blobContentMD5() {
287
+ return this.originalResponse.blobContentMD5;
288
+ }
289
+ /**
290
+ * Returns the date and time the file was last
291
+ * modified. Any operation that modifies the file or its properties updates
292
+ * the last modified time.
293
+ *
294
+ * @readonly
295
+ */
296
+ get lastModified() {
297
+ return this.originalResponse.lastModified;
298
+ }
299
+ /**
300
+ * Returns the UTC date and time generated by the service that indicates the time at which the blob was
301
+ * last read or written to.
302
+ *
303
+ * @readonly
304
+ */
305
+ get lastAccessed() {
306
+ return this.originalResponse.lastAccessed;
307
+ }
308
+ /**
309
+ * Returns the date and time the blob was created.
310
+ *
311
+ * @readonly
312
+ */
313
+ get createdOn() {
314
+ return this.originalResponse.createdOn;
315
+ }
316
+ /**
317
+ * A name-value pair
318
+ * to associate with a file storage object.
319
+ *
320
+ * @readonly
321
+ */
322
+ get metadata() {
323
+ return this.originalResponse.metadata;
324
+ }
325
+ /**
326
+ * This header uniquely identifies the request
327
+ * that was made and can be used for troubleshooting the request.
328
+ *
329
+ * @readonly
330
+ */
331
+ get requestId() {
332
+ return this.originalResponse.requestId;
333
+ }
334
+ /**
335
+ * If a client request id header is sent in the request, this header will be present in the
336
+ * response with the same value.
337
+ *
338
+ * @readonly
339
+ */
340
+ get clientRequestId() {
341
+ return this.originalResponse.clientRequestId;
342
+ }
343
+ /**
344
+ * Indicates the version of the Blob service used
345
+ * to execute the request.
346
+ *
347
+ * @readonly
348
+ */
349
+ get version() {
350
+ return this.originalResponse.version;
351
+ }
352
+ /**
353
+ * Indicates the versionId of the downloaded blob version.
354
+ *
355
+ * @readonly
356
+ */
357
+ get versionId() {
358
+ return this.originalResponse.versionId;
359
+ }
360
+ /**
361
+ * Indicates whether version of this blob is a current version.
362
+ *
363
+ * @readonly
364
+ */
365
+ get isCurrentVersion() {
366
+ return this.originalResponse.isCurrentVersion;
367
+ }
368
+ /**
369
+ * The SHA-256 hash of the encryption key used to encrypt the blob. This value is only returned
370
+ * when the blob was encrypted with a customer-provided key.
371
+ *
372
+ * @readonly
373
+ */
374
+ get encryptionKeySha256() {
375
+ return this.originalResponse.encryptionKeySha256;
376
+ }
377
+ /**
378
+ * If the request is to read a specified range and the x-ms-range-get-content-crc64 is set to
379
+ * true, then the request returns a crc64 for the range, as long as the range size is less than
380
+ * or equal to 4 MB. If both x-ms-range-get-content-crc64 & x-ms-range-get-content-md5 is
381
+ * specified in the same request, it will fail with 400(Bad Request)
382
+ */
383
+ get contentCrc64() {
384
+ return this.originalResponse.contentCrc64;
385
+ }
386
+ /**
387
+ * Object Replication Policy Id of the destination blob.
388
+ *
389
+ * @readonly
390
+ */
391
+ get objectReplicationDestinationPolicyId() {
392
+ return this.originalResponse.objectReplicationDestinationPolicyId;
393
+ }
394
+ /**
395
+ * Parsed Object Replication Policy Id, Rule Id(s) and status of the source blob.
396
+ *
397
+ * @readonly
398
+ */
399
+ get objectReplicationSourceProperties() {
400
+ return this.originalResponse.objectReplicationSourceProperties;
401
+ }
402
+ /**
403
+ * If this blob has been sealed.
404
+ *
405
+ * @readonly
406
+ */
407
+ get isSealed() {
408
+ return this.originalResponse.isSealed;
409
+ }
410
+ /**
411
+ * UTC date/time value generated by the service that indicates the time at which the blob immutability policy will expire.
412
+ *
413
+ * @readonly
414
+ */
415
+ get immutabilityPolicyExpiresOn() {
416
+ return this.originalResponse.immutabilityPolicyExpiresOn;
417
+ }
418
+ /**
419
+ * Indicates immutability policy mode.
420
+ *
421
+ * @readonly
422
+ */
423
+ get immutabilityPolicyMode() {
424
+ return this.originalResponse.immutabilityPolicyMode;
425
+ }
426
+ /**
427
+ * Indicates if a legal hold is present on the blob.
428
+ *
429
+ * @readonly
430
+ */
431
+ get legalHold() {
432
+ return this.originalResponse.legalHold;
433
+ }
434
+ get structuredBodyType() {
435
+ return this.originalResponse.structuredBodyType;
436
+ }
437
+ /**
438
+ * The response body as a browser Blob.
439
+ * Always undefined in node.js.
440
+ *
441
+ * @readonly
442
+ */
443
+ get contentAsBlob() {
444
+ return this.originalResponse.blobBody;
445
+ }
446
+ /**
447
+ * The response body as a node.js Readable stream.
448
+ * Always undefined in the browser.
449
+ *
450
+ * It will automatically retry when internal read stream unexpected ends.
451
+ *
452
+ * @readonly
453
+ */
454
+ get readableStreamBody() {
455
+ return import_core_util.isNodeLike ? this.blobDownloadStream : void 0;
456
+ }
457
+ /**
458
+ * The HTTP response.
459
+ */
460
+ get _response() {
461
+ return this.originalResponse._response;
462
+ }
463
+ originalResponse;
464
+ blobDownloadStream;
465
+ /**
466
+ * Creates an instance of BlobDownloadResponse.
467
+ *
468
+ * @param originalResponse -
469
+ * @param getter -
470
+ * @param offset -
471
+ * @param count -
472
+ * @param options -
473
+ */
474
+ constructor(originalResponse, getter, offset, count, options = {}) {
475
+ this.originalResponse = originalResponse;
476
+ const streamBody = this.originalResponse.structuredBodyType === void 0 ? this.originalResponse.readableStreamBody : (0, import_storage_common.structuredMessageDecodingStream)(this.originalResponse.readableStreamBody, options);
477
+ this.blobDownloadStream = new import_RetriableReadableStream.RetriableReadableStream(
478
+ streamBody,
479
+ getter,
480
+ offset,
481
+ count,
482
+ options
483
+ );
484
+ }
467
485
  }
468
- exports.BlobDownloadResponse = BlobDownloadResponse;
469
- //# sourceMappingURL=BlobDownloadResponse.js.map
486
+ // Annotate the CommonJS export names for ESM import in node:
487
+ 0 && (module.exports = {
488
+ BlobDownloadResponse
489
+ });