@azure/storage-blob 12.30.0-beta.1 → 12.31.0-alpha.20260203.6

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 (161) hide show
  1. package/dist/browser/BlobBatchClient.d.ts.map +1 -1
  2. package/dist/browser/BlobBatchClient.js +2 -2
  3. package/dist/browser/BlobBatchClient.js.map +1 -1
  4. package/dist/browser/BlobQueryResponse-browser.d.mts.map +1 -1
  5. package/dist/browser/BlobQueryResponse-browser.mjs.map +1 -1
  6. package/dist/browser/BlobQueryResponse.common.d.ts +291 -0
  7. package/dist/browser/BlobQueryResponse.common.d.ts.map +1 -0
  8. package/dist/browser/BlobQueryResponse.common.js +363 -0
  9. package/dist/browser/BlobQueryResponse.common.js.map +1 -0
  10. package/dist/browser/BlobQueryResponse.d.ts +1 -290
  11. package/dist/browser/BlobQueryResponse.js +1 -360
  12. package/dist/browser/Clients.js +4 -4
  13. package/dist/browser/Clients.js.map +1 -1
  14. package/dist/browser/PageBlobRangeResponse.d.ts.map +1 -1
  15. package/dist/browser/PageBlobRangeResponse.js.map +1 -1
  16. package/dist/browser/credentials/StorageSharedKeyCredential-react-native.d.mts +3 -0
  17. package/dist/browser/credentials/StorageSharedKeyCredential-react-native.d.mts.map +1 -0
  18. package/dist/browser/credentials/StorageSharedKeyCredential-react-native.mjs +5 -0
  19. package/dist/browser/credentials/StorageSharedKeyCredential-react-native.mjs.map +1 -0
  20. package/dist/browser/generated/src/storageClient.js +1 -1
  21. package/dist/browser/generated/src/storageClient.js.map +1 -1
  22. package/dist/browser/generatedModels.d.ts +63 -2
  23. package/dist/browser/generatedModels.d.ts.map +1 -1
  24. package/dist/browser/generatedModels.js.map +1 -1
  25. package/dist/browser/models.d.ts.map +1 -1
  26. package/dist/browser/models.js.map +1 -1
  27. package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2-react-native.d.mts +17 -0
  28. package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2-react-native.d.mts.map +1 -0
  29. package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2-react-native.mjs +18 -0
  30. package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2-react-native.mjs.map +1 -0
  31. package/dist/browser/pollers/BlobStartCopyFromUrlPoller.d.ts.map +1 -1
  32. package/dist/browser/pollers/BlobStartCopyFromUrlPoller.js.map +1 -1
  33. package/dist/browser/utils/constants.d.ts.map +1 -1
  34. package/dist/browser/utils/constants.js +1 -1
  35. package/dist/browser/utils/constants.js.map +1 -1
  36. package/dist/commonjs/BlobBatchClient.d.ts.map +1 -1
  37. package/dist/commonjs/BlobBatchClient.js +2 -2
  38. package/dist/commonjs/BlobBatchClient.js.map +1 -1
  39. package/dist/commonjs/BlobDownloadResponse.d.ts +2 -1
  40. package/dist/commonjs/BlobDownloadResponse.d.ts.map +1 -1
  41. package/dist/commonjs/BlobDownloadResponse.js.map +1 -1
  42. package/dist/commonjs/BlobQueryResponse.common.d.ts +291 -0
  43. package/dist/commonjs/BlobQueryResponse.common.d.ts.map +1 -0
  44. package/dist/commonjs/BlobQueryResponse.common.js +367 -0
  45. package/dist/commonjs/BlobQueryResponse.common.js.map +1 -0
  46. package/dist/commonjs/BlobQueryResponse.d.ts +2 -1
  47. package/dist/commonjs/BlobQueryResponse.d.ts.map +1 -1
  48. package/dist/commonjs/BlobQueryResponse.js.map +1 -1
  49. package/dist/commonjs/Clients.js +4 -4
  50. package/dist/commonjs/Clients.js.map +1 -1
  51. package/dist/commonjs/PageBlobRangeResponse.d.ts.map +1 -1
  52. package/dist/commonjs/PageBlobRangeResponse.js.map +1 -1
  53. package/dist/commonjs/generated/src/storageClient.js +1 -1
  54. package/dist/commonjs/generated/src/storageClient.js.map +1 -1
  55. package/dist/commonjs/generatedModels.d.ts +63 -2
  56. package/dist/commonjs/generatedModels.d.ts.map +1 -1
  57. package/dist/commonjs/generatedModels.js.map +1 -1
  58. package/dist/commonjs/index.d.ts +2 -1
  59. package/dist/commonjs/index.d.ts.map +1 -1
  60. package/dist/commonjs/index.js.map +1 -1
  61. package/dist/commonjs/models.d.ts.map +1 -1
  62. package/dist/commonjs/models.js.map +1 -1
  63. package/dist/commonjs/pollers/BlobStartCopyFromUrlPoller.d.ts.map +1 -1
  64. package/dist/commonjs/pollers/BlobStartCopyFromUrlPoller.js.map +1 -1
  65. package/dist/commonjs/tsdoc-metadata.json +1 -1
  66. package/dist/commonjs/utils/constants.d.ts.map +1 -1
  67. package/dist/commonjs/utils/constants.js +1 -1
  68. package/dist/commonjs/utils/constants.js.map +1 -1
  69. package/dist/esm/BlobBatchClient.d.ts.map +1 -1
  70. package/dist/esm/BlobBatchClient.js +2 -2
  71. package/dist/esm/BlobBatchClient.js.map +1 -1
  72. package/dist/esm/BlobDownloadResponse.d.ts +2 -1
  73. package/dist/esm/BlobDownloadResponse.d.ts.map +1 -1
  74. package/dist/esm/BlobDownloadResponse.js.map +1 -1
  75. package/dist/esm/BlobQueryResponse.common.d.ts +291 -0
  76. package/dist/esm/BlobQueryResponse.common.d.ts.map +1 -0
  77. package/dist/esm/BlobQueryResponse.common.js +363 -0
  78. package/dist/esm/BlobQueryResponse.common.js.map +1 -0
  79. package/dist/esm/BlobQueryResponse.d.ts +2 -1
  80. package/dist/esm/BlobQueryResponse.d.ts.map +1 -1
  81. package/dist/esm/BlobQueryResponse.js.map +1 -1
  82. package/dist/esm/Clients.js +4 -4
  83. package/dist/esm/Clients.js.map +1 -1
  84. package/dist/esm/PageBlobRangeResponse.d.ts.map +1 -1
  85. package/dist/esm/PageBlobRangeResponse.js.map +1 -1
  86. package/dist/esm/credentials/StorageSharedKeyCredential-react-native.d.mts +3 -0
  87. package/dist/esm/credentials/StorageSharedKeyCredential-react-native.d.mts.map +1 -0
  88. package/dist/esm/credentials/StorageSharedKeyCredential-react-native.mjs +5 -0
  89. package/dist/esm/credentials/StorageSharedKeyCredential-react-native.mjs.map +1 -0
  90. package/dist/esm/generated/src/storageClient.js +1 -1
  91. package/dist/esm/generated/src/storageClient.js.map +1 -1
  92. package/dist/esm/generatedModels.d.ts +63 -2
  93. package/dist/esm/generatedModels.d.ts.map +1 -1
  94. package/dist/esm/generatedModels.js.map +1 -1
  95. package/dist/esm/index.d.ts +2 -1
  96. package/dist/esm/index.d.ts.map +1 -1
  97. package/dist/esm/index.js.map +1 -1
  98. package/dist/esm/models.d.ts.map +1 -1
  99. package/dist/esm/models.js.map +1 -1
  100. package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2-react-native.d.mts +17 -0
  101. package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2-react-native.d.mts.map +1 -0
  102. package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2-react-native.mjs +18 -0
  103. package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2-react-native.mjs.map +1 -0
  104. package/dist/esm/pollers/BlobStartCopyFromUrlPoller.d.ts.map +1 -1
  105. package/dist/esm/pollers/BlobStartCopyFromUrlPoller.js.map +1 -1
  106. package/dist/esm/utils/constants.d.ts.map +1 -1
  107. package/dist/esm/utils/constants.js +1 -1
  108. package/dist/esm/utils/constants.js.map +1 -1
  109. package/dist/react-native/BlobBatchClient.d.ts.map +1 -1
  110. package/dist/react-native/BlobBatchClient.js +2 -2
  111. package/dist/react-native/BlobBatchClient.js.map +1 -1
  112. package/dist/react-native/BlobDownloadResponse-react-native.d.mts.map +1 -0
  113. package/dist/react-native/BlobDownloadResponse-react-native.mjs.map +1 -0
  114. package/dist/react-native/BlobDownloadResponse.d.ts +2 -369
  115. package/dist/react-native/BlobDownloadResponse.js +5 -463
  116. package/dist/react-native/BlobQueryResponse-react-native.d.mts.map +1 -0
  117. package/dist/react-native/BlobQueryResponse-react-native.mjs.map +1 -0
  118. package/dist/react-native/BlobQueryResponse.common.d.ts +291 -0
  119. package/dist/react-native/BlobQueryResponse.common.d.ts.map +1 -0
  120. package/dist/react-native/BlobQueryResponse.common.js +363 -0
  121. package/dist/react-native/BlobQueryResponse.common.js.map +1 -0
  122. package/dist/react-native/BlobQueryResponse.d.ts +2 -294
  123. package/dist/react-native/BlobQueryResponse.js +2 -367
  124. package/dist/react-native/Clients.js +4 -4
  125. package/dist/react-native/Clients.js.map +1 -1
  126. package/dist/react-native/PageBlobRangeResponse.d.ts.map +1 -1
  127. package/dist/react-native/PageBlobRangeResponse.js.map +1 -1
  128. package/dist/react-native/credentials/StorageSharedKeyCredential-react-native.d.mts +3 -0
  129. package/dist/react-native/credentials/StorageSharedKeyCredential-react-native.d.mts.map +1 -0
  130. package/dist/react-native/credentials/StorageSharedKeyCredential-react-native.mjs +5 -0
  131. package/dist/react-native/credentials/StorageSharedKeyCredential-react-native.mjs.map +1 -0
  132. package/dist/react-native/generated/src/storageClient.js +1 -1
  133. package/dist/react-native/generated/src/storageClient.js.map +1 -1
  134. package/dist/react-native/generatedModels.d.ts +63 -2
  135. package/dist/react-native/generatedModels.d.ts.map +1 -1
  136. package/dist/react-native/generatedModels.js.map +1 -1
  137. package/dist/react-native/index.d.ts +2 -1
  138. package/dist/react-native/index.d.ts.map +1 -1
  139. package/dist/react-native/index.js.map +1 -1
  140. package/dist/react-native/models.d.ts.map +1 -1
  141. package/dist/react-native/models.js.map +1 -1
  142. package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2-react-native.d.mts +17 -0
  143. package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2-react-native.d.mts.map +1 -0
  144. package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2-react-native.mjs +18 -0
  145. package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2-react-native.mjs.map +1 -0
  146. package/dist/react-native/pollers/BlobStartCopyFromUrlPoller.d.ts.map +1 -1
  147. package/dist/react-native/pollers/BlobStartCopyFromUrlPoller.js.map +1 -1
  148. package/dist/react-native/utils/constants.d.ts.map +1 -1
  149. package/dist/react-native/utils/constants.js +1 -1
  150. package/dist/react-native/utils/constants.js.map +1 -1
  151. package/dist/react-native/utils/utils-react-native.d.mts.map +1 -0
  152. package/dist/react-native/utils/utils-react-native.mjs.map +1 -0
  153. package/dist/react-native/utils/utils.d.ts +6 -46
  154. package/dist/react-native/utils/utils.js +13 -127
  155. package/package.json +17 -17
  156. package/dist/react-native/BlobDownloadResponse.d.ts.map +0 -1
  157. package/dist/react-native/BlobDownloadResponse.js.map +0 -1
  158. package/dist/react-native/BlobQueryResponse.d.ts.map +0 -1
  159. package/dist/react-native/BlobQueryResponse.js.map +0 -1
  160. package/dist/react-native/utils/utils.d.ts.map +0 -1
  161. package/dist/react-native/utils/utils.js.map +0 -1
@@ -0,0 +1,367 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.BlobQueryResponse = void 0;
6
+ /**
7
+ * ONLY AVAILABLE IN BROWSER RUNTIME.
8
+ *
9
+ * BlobQueryResponse implements BlobDownloadResponseModel interface, and in browser runtime it will
10
+ * parse avro data returned by blob query.
11
+ */
12
+ class BlobQueryResponse {
13
+ /**
14
+ * Indicates that the service supports
15
+ * requests for partial file content.
16
+ *
17
+ * @readonly
18
+ */
19
+ get acceptRanges() {
20
+ return this.originalResponse.acceptRanges;
21
+ }
22
+ /**
23
+ * Returns if it was previously specified
24
+ * for the file.
25
+ *
26
+ * @readonly
27
+ */
28
+ get cacheControl() {
29
+ return this.originalResponse.cacheControl;
30
+ }
31
+ /**
32
+ * Returns the value that was specified
33
+ * for the 'x-ms-content-disposition' header and specifies how to process the
34
+ * response.
35
+ *
36
+ * @readonly
37
+ */
38
+ get contentDisposition() {
39
+ return this.originalResponse.contentDisposition;
40
+ }
41
+ /**
42
+ * Returns the value that was specified
43
+ * for the Content-Encoding request header.
44
+ *
45
+ * @readonly
46
+ */
47
+ get contentEncoding() {
48
+ return this.originalResponse.contentEncoding;
49
+ }
50
+ /**
51
+ * Returns the value that was specified
52
+ * for the Content-Language request header.
53
+ *
54
+ * @readonly
55
+ */
56
+ get contentLanguage() {
57
+ return this.originalResponse.contentLanguage;
58
+ }
59
+ /**
60
+ * The current sequence number for a
61
+ * page blob. This header is not returned for block blobs or append blobs.
62
+ *
63
+ * @readonly
64
+ */
65
+ get blobSequenceNumber() {
66
+ return this.originalResponse.blobSequenceNumber;
67
+ }
68
+ /**
69
+ * The blob's type. Possible values include:
70
+ * 'BlockBlob', 'PageBlob', 'AppendBlob'.
71
+ *
72
+ * @readonly
73
+ */
74
+ get blobType() {
75
+ return this.originalResponse.blobType;
76
+ }
77
+ /**
78
+ * The number of bytes present in the
79
+ * response body.
80
+ *
81
+ * @readonly
82
+ */
83
+ get contentLength() {
84
+ return this.originalResponse.contentLength;
85
+ }
86
+ /**
87
+ * If the file has an MD5 hash and the
88
+ * request is to read the full file, this response header is returned so that
89
+ * the client can check for message content integrity. If the request is to
90
+ * read a specified range and the 'x-ms-range-get-content-md5' is set to
91
+ * true, then the request returns an MD5 hash for the range, as long as the
92
+ * range size is less than or equal to 4 MB. If neither of these sets of
93
+ * conditions is true, then no value is returned for the 'Content-MD5'
94
+ * header.
95
+ *
96
+ * @readonly
97
+ */
98
+ get contentMD5() {
99
+ return this.originalResponse.contentMD5;
100
+ }
101
+ /**
102
+ * Indicates the range of bytes returned if
103
+ * the client requested a subset of the file by setting the Range request
104
+ * header.
105
+ *
106
+ * @readonly
107
+ */
108
+ get contentRange() {
109
+ return this.originalResponse.contentRange;
110
+ }
111
+ /**
112
+ * The content type specified for the file.
113
+ * The default content type is 'application/octet-stream'
114
+ *
115
+ * @readonly
116
+ */
117
+ get contentType() {
118
+ return this.originalResponse.contentType;
119
+ }
120
+ /**
121
+ * Conclusion time of the last attempted
122
+ * Copy File operation where this file was the destination file. This value
123
+ * can specify the time of a completed, aborted, or failed copy attempt.
124
+ *
125
+ * @readonly
126
+ */
127
+ get copyCompletedOn() {
128
+ return undefined;
129
+ }
130
+ /**
131
+ * String identifier for the last attempted Copy
132
+ * File operation where this file was the destination file.
133
+ *
134
+ * @readonly
135
+ */
136
+ get copyId() {
137
+ return this.originalResponse.copyId;
138
+ }
139
+ /**
140
+ * Contains the number of bytes copied and
141
+ * the total bytes in the source in the last attempted Copy File operation
142
+ * where this file was the destination file. Can show between 0 and
143
+ * Content-Length bytes copied.
144
+ *
145
+ * @readonly
146
+ */
147
+ get copyProgress() {
148
+ return this.originalResponse.copyProgress;
149
+ }
150
+ /**
151
+ * URL up to 2KB in length that specifies the
152
+ * source file used in the last attempted Copy File operation where this file
153
+ * was the destination file.
154
+ *
155
+ * @readonly
156
+ */
157
+ get copySource() {
158
+ return this.originalResponse.copySource;
159
+ }
160
+ /**
161
+ * State of the copy operation
162
+ * identified by 'x-ms-copy-id'. Possible values include: 'pending',
163
+ * 'success', 'aborted', 'failed'
164
+ *
165
+ * @readonly
166
+ */
167
+ get copyStatus() {
168
+ return this.originalResponse.copyStatus;
169
+ }
170
+ /**
171
+ * Only appears when
172
+ * x-ms-copy-status is failed or pending. Describes cause of fatal or
173
+ * non-fatal copy operation failure.
174
+ *
175
+ * @readonly
176
+ */
177
+ get copyStatusDescription() {
178
+ return this.originalResponse.copyStatusDescription;
179
+ }
180
+ /**
181
+ * When a blob is leased,
182
+ * specifies whether the lease is of infinite or fixed duration. Possible
183
+ * values include: 'infinite', 'fixed'.
184
+ *
185
+ * @readonly
186
+ */
187
+ get leaseDuration() {
188
+ return this.originalResponse.leaseDuration;
189
+ }
190
+ /**
191
+ * Lease state of the blob. Possible
192
+ * values include: 'available', 'leased', 'expired', 'breaking', 'broken'.
193
+ *
194
+ * @readonly
195
+ */
196
+ get leaseState() {
197
+ return this.originalResponse.leaseState;
198
+ }
199
+ /**
200
+ * The current lease status of the
201
+ * blob. Possible values include: 'locked', 'unlocked'.
202
+ *
203
+ * @readonly
204
+ */
205
+ get leaseStatus() {
206
+ return this.originalResponse.leaseStatus;
207
+ }
208
+ /**
209
+ * A UTC date/time value generated by the service that
210
+ * indicates the time at which the response was initiated.
211
+ *
212
+ * @readonly
213
+ */
214
+ get date() {
215
+ return this.originalResponse.date;
216
+ }
217
+ /**
218
+ * The number of committed blocks
219
+ * present in the blob. This header is returned only for append blobs.
220
+ *
221
+ * @readonly
222
+ */
223
+ get blobCommittedBlockCount() {
224
+ return this.originalResponse.blobCommittedBlockCount;
225
+ }
226
+ /**
227
+ * The ETag contains a value that you can use to
228
+ * perform operations conditionally, in quotes.
229
+ *
230
+ * @readonly
231
+ */
232
+ get etag() {
233
+ return this.originalResponse.etag;
234
+ }
235
+ /**
236
+ * The error code.
237
+ *
238
+ * @readonly
239
+ */
240
+ get errorCode() {
241
+ return this.originalResponse.errorCode;
242
+ }
243
+ /**
244
+ * The value of this header is set to
245
+ * true if the file data and application metadata are completely encrypted
246
+ * using the specified algorithm. Otherwise, the value is set to false (when
247
+ * the file is unencrypted, or if only parts of the file/application metadata
248
+ * are encrypted).
249
+ *
250
+ * @readonly
251
+ */
252
+ get isServerEncrypted() {
253
+ return this.originalResponse.isServerEncrypted;
254
+ }
255
+ /**
256
+ * If the blob has a MD5 hash, and if
257
+ * request contains range header (Range or x-ms-range), this response header
258
+ * is returned with the value of the whole blob's MD5 value. This value may
259
+ * or may not be equal to the value returned in Content-MD5 header, with the
260
+ * latter calculated from the requested range.
261
+ *
262
+ * @readonly
263
+ */
264
+ get blobContentMD5() {
265
+ return this.originalResponse.blobContentMD5;
266
+ }
267
+ /**
268
+ * Returns the date and time the file was last
269
+ * modified. Any operation that modifies the file or its properties updates
270
+ * the last modified time.
271
+ *
272
+ * @readonly
273
+ */
274
+ get lastModified() {
275
+ return this.originalResponse.lastModified;
276
+ }
277
+ /**
278
+ * A name-value pair
279
+ * to associate with a file storage object.
280
+ *
281
+ * @readonly
282
+ */
283
+ get metadata() {
284
+ return this.originalResponse.metadata;
285
+ }
286
+ /**
287
+ * This header uniquely identifies the request
288
+ * that was made and can be used for troubleshooting the request.
289
+ *
290
+ * @readonly
291
+ */
292
+ get requestId() {
293
+ return this.originalResponse.requestId;
294
+ }
295
+ /**
296
+ * If a client request id header is sent in the request, this header will be present in the
297
+ * response with the same value.
298
+ *
299
+ * @readonly
300
+ */
301
+ get clientRequestId() {
302
+ return this.originalResponse.clientRequestId;
303
+ }
304
+ /**
305
+ * Indicates the version of the File service used
306
+ * to execute the request.
307
+ *
308
+ * @readonly
309
+ */
310
+ get version() {
311
+ return this.originalResponse.version;
312
+ }
313
+ /**
314
+ * The SHA-256 hash of the encryption key used to encrypt the blob. This value is only returned
315
+ * when the blob was encrypted with a customer-provided key.
316
+ *
317
+ * @readonly
318
+ */
319
+ get encryptionKeySha256() {
320
+ return this.originalResponse.encryptionKeySha256;
321
+ }
322
+ /**
323
+ * If the request is to read a specified range and the x-ms-range-get-content-crc64 is set to
324
+ * true, then the request returns a crc64 for the range, as long as the range size is less than
325
+ * or equal to 4 MB. If both x-ms-range-get-content-crc64 & x-ms-range-get-content-md5 is
326
+ * specified in the same request, it will fail with 400(Bad Request)
327
+ */
328
+ get contentCrc64() {
329
+ return this.originalResponse.contentCrc64;
330
+ }
331
+ /**
332
+ * The response body as a browser Blob.
333
+ * Always undefined in node.js.
334
+ *
335
+ * @readonly
336
+ */
337
+ get blobBody() {
338
+ throw Error(`Quick query in browser is not supported yet.`);
339
+ }
340
+ /**
341
+ * The response body as a node.js Readable stream.
342
+ * Always undefined in the browser.
343
+ *
344
+ * @readonly
345
+ */
346
+ get readableStreamBody() {
347
+ return undefined;
348
+ }
349
+ /**
350
+ * The HTTP response.
351
+ */
352
+ get _response() {
353
+ return this.originalResponse._response;
354
+ }
355
+ originalResponse;
356
+ /**
357
+ * Creates an instance of BlobQueryResponse.
358
+ *
359
+ * @param originalResponse -
360
+ * @param options -
361
+ */
362
+ constructor(originalResponse, _options = {}) {
363
+ this.originalResponse = originalResponse;
364
+ }
365
+ }
366
+ exports.BlobQueryResponse = BlobQueryResponse;
367
+ //# sourceMappingURL=BlobQueryResponse.common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlobQueryResponse.common.js","sourceRoot":"","sources":["../../src/BlobQueryResponse.common.ts"],"names":[],"mappings":";AAAA,u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ft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n BlobDownloadResponseModel,\n BlobType,\n CopyStatusType,\n LeaseDurationType,\n LeaseStateType,\n LeaseStatusType,\n BlobQueryResponseModel,\n BlobQueryHeaders,\n} from \"./generatedModels.js\";\nimport type { Metadata } from \"./models.js\";\nimport type { BlobQuickQueryStreamOptions } from \"./utils/BlobQuickQueryStream.js\";\nimport type { ResponseWithHeaders } from \"./utils/utils.common.js\";\n\n/**\n * ONLY AVAILABLE IN BROWSER RUNTIME.\n *\n * BlobQueryResponse implements BlobDownloadResponseModel interface, and in browser runtime it will\n * parse avro data returned by blob query.\n */\nexport class BlobQueryResponse implements BlobDownloadResponseModel {\n /**\n * Indicates that the service supports\n * requests for partial file content.\n *\n * @readonly\n */\n public get acceptRanges(): string | undefined {\n return this.originalResponse.acceptRanges;\n }\n\n /**\n * Returns if it was previously specified\n * for the file.\n *\n * @readonly\n */\n public get cacheControl(): string | undefined {\n return this.originalResponse.cacheControl;\n }\n\n /**\n * Returns the value that was specified\n * for the 'x-ms-content-disposition' header and specifies how to process the\n * response.\n *\n * @readonly\n */\n public get contentDisposition(): string | undefined {\n return this.originalResponse.contentDisposition;\n }\n\n /**\n * Returns the value that was specified\n * for the Content-Encoding request header.\n *\n * @readonly\n */\n public get contentEncoding(): string | undefined {\n return this.originalResponse.contentEncoding;\n }\n\n /**\n * Returns the value that was specified\n * for the Content-Language request header.\n *\n * @readonly\n */\n public get contentLanguage(): string | undefined {\n return this.originalResponse.contentLanguage;\n }\n\n /**\n * The current sequence number for a\n * page blob. This header is not returned for block blobs or append blobs.\n *\n * @readonly\n */\n public get blobSequenceNumber(): number | undefined {\n return this.originalResponse.blobSequenceNumber;\n }\n\n /**\n * The blob's type. Possible values include:\n * 'BlockBlob', 'PageBlob', 'AppendBlob'.\n *\n * @readonly\n */\n public get blobType(): BlobType | undefined {\n return this.originalResponse.blobType;\n }\n\n /**\n * The number of bytes present in the\n * response body.\n *\n * @readonly\n */\n public get contentLength(): number | undefined {\n return this.originalResponse.contentLength;\n }\n\n /**\n * If the file has an MD5 hash and the\n * request is to read the full file, this response header is returned so that\n * the client can check for message content integrity. If the request is to\n * read a specified range and the 'x-ms-range-get-content-md5' is set to\n * true, then the request returns an MD5 hash for the range, as long as the\n * range size is less than or equal to 4 MB. If neither of these sets of\n * conditions is true, then no value is returned for the 'Content-MD5'\n * header.\n *\n * @readonly\n */\n public get contentMD5(): Uint8Array | undefined {\n return this.originalResponse.contentMD5;\n }\n\n /**\n * Indicates the range of bytes returned if\n * the client requested a subset of the file by setting the Range request\n * header.\n *\n * @readonly\n */\n public get contentRange(): string | undefined {\n return this.originalResponse.contentRange;\n }\n\n /**\n * The content type specified for the file.\n * The default content type is 'application/octet-stream'\n *\n * @readonly\n */\n public get contentType(): string | undefined {\n return this.originalResponse.contentType;\n }\n\n /**\n * Conclusion time of the last attempted\n * Copy File operation where this file was the destination file. This value\n * can specify the time of a completed, aborted, or failed copy attempt.\n *\n * @readonly\n */\n public get copyCompletedOn(): Date | undefined {\n return undefined;\n }\n\n /**\n * String identifier for the last attempted Copy\n * File operation where this file was the destination file.\n *\n * @readonly\n */\n public get copyId(): string | undefined {\n return this.originalResponse.copyId;\n }\n\n /**\n * Contains the number of bytes copied and\n * the total bytes in the source in the last attempted Copy File operation\n * where this file was the destination file. Can show between 0 and\n * Content-Length bytes copied.\n *\n * @readonly\n */\n public get copyProgress(): string | undefined {\n return this.originalResponse.copyProgress;\n }\n\n /**\n * URL up to 2KB in length that specifies the\n * source file used in the last attempted Copy File operation where this file\n * was the destination file.\n *\n * @readonly\n */\n public get copySource(): string | undefined {\n return this.originalResponse.copySource;\n }\n\n /**\n * State of the copy operation\n * identified by 'x-ms-copy-id'. Possible values include: 'pending',\n * 'success', 'aborted', 'failed'\n *\n * @readonly\n */\n public get copyStatus(): CopyStatusType | undefined {\n return this.originalResponse.copyStatus;\n }\n\n /**\n * Only appears when\n * x-ms-copy-status is failed or pending. Describes cause of fatal or\n * non-fatal copy operation failure.\n *\n * @readonly\n */\n public get copyStatusDescription(): string | undefined {\n return this.originalResponse.copyStatusDescription;\n }\n\n /**\n * When a blob is leased,\n * specifies whether the lease is of infinite or fixed duration. Possible\n * values include: 'infinite', 'fixed'.\n *\n * @readonly\n */\n public get leaseDuration(): LeaseDurationType | undefined {\n return this.originalResponse.leaseDuration;\n }\n\n /**\n * Lease state of the blob. Possible\n * values include: 'available', 'leased', 'expired', 'breaking', 'broken'.\n *\n * @readonly\n */\n public get leaseState(): LeaseStateType | undefined {\n return this.originalResponse.leaseState;\n }\n\n /**\n * The current lease status of the\n * blob. Possible values include: 'locked', 'unlocked'.\n *\n * @readonly\n */\n public get leaseStatus(): LeaseStatusType | undefined {\n return this.originalResponse.leaseStatus;\n }\n\n /**\n * A UTC date/time value generated by the service that\n * indicates the time at which the response was initiated.\n *\n * @readonly\n */\n public get date(): Date | undefined {\n return this.originalResponse.date;\n }\n\n /**\n * The number of committed blocks\n * present in the blob. This header is returned only for append blobs.\n *\n * @readonly\n */\n public get blobCommittedBlockCount(): number | undefined {\n return this.originalResponse.blobCommittedBlockCount;\n }\n\n /**\n * The ETag contains a value that you can use to\n * perform operations conditionally, in quotes.\n *\n * @readonly\n */\n public get etag(): string | undefined {\n return this.originalResponse.etag;\n }\n\n /**\n * The error code.\n *\n * @readonly\n */\n public get errorCode(): string | undefined {\n return this.originalResponse.errorCode;\n }\n\n /**\n * The value of this header is set to\n * true if the file data and application metadata are completely encrypted\n * using the specified algorithm. Otherwise, the value is set to false (when\n * the file is unencrypted, or if only parts of the file/application metadata\n * are encrypted).\n *\n * @readonly\n */\n public get isServerEncrypted(): boolean | undefined {\n return this.originalResponse.isServerEncrypted;\n }\n\n /**\n * If the blob has a MD5 hash, and if\n * request contains range header (Range or x-ms-range), this response header\n * is returned with the value of the whole blob's MD5 value. This value may\n * or may not be equal to the value returned in Content-MD5 header, with the\n * latter calculated from the requested range.\n *\n * @readonly\n */\n public get blobContentMD5(): Uint8Array | undefined {\n return this.originalResponse.blobContentMD5;\n }\n\n /**\n * Returns the date and time the file was last\n * modified. Any operation that modifies the file or its properties updates\n * the last modified time.\n *\n * @readonly\n */\n public get lastModified(): Date | undefined {\n return this.originalResponse.lastModified;\n }\n\n /**\n * A name-value pair\n * to associate with a file storage object.\n *\n * @readonly\n */\n public get metadata(): Metadata | undefined {\n return this.originalResponse.metadata;\n }\n\n /**\n * This header uniquely identifies the request\n * that was made and can be used for troubleshooting the request.\n *\n * @readonly\n */\n public get requestId(): string | undefined {\n return this.originalResponse.requestId;\n }\n\n /**\n * If a client request id header is sent in the request, this header will be present in the\n * response with the same value.\n *\n * @readonly\n */\n public get clientRequestId(): string | undefined {\n return this.originalResponse.clientRequestId;\n }\n\n /**\n * Indicates the version of the File service used\n * to execute the request.\n *\n * @readonly\n */\n public get version(): string | undefined {\n return this.originalResponse.version;\n }\n\n /**\n * The SHA-256 hash of the encryption key used to encrypt the blob. This value is only returned\n * when the blob was encrypted with a customer-provided key.\n *\n * @readonly\n */\n public get encryptionKeySha256(): string | undefined {\n return this.originalResponse.encryptionKeySha256;\n }\n\n /**\n * If the request is to read a specified range and the x-ms-range-get-content-crc64 is set to\n * true, then the request returns a crc64 for the range, as long as the range size is less than\n * or equal to 4 MB. If both x-ms-range-get-content-crc64 & x-ms-range-get-content-md5 is\n * specified in the same request, it will fail with 400(Bad Request)\n */\n public get contentCrc64(): Uint8Array | undefined {\n return this.originalResponse.contentCrc64;\n }\n\n /**\n * The response body as a browser Blob.\n * Always undefined in node.js.\n *\n * @readonly\n */\n public get blobBody(): Promise<Blob> | undefined {\n throw Error(`Quick query in browser is not supported yet.`);\n }\n\n /**\n * The response body as a node.js Readable stream.\n * Always undefined in the browser.\n *\n * @readonly\n */\n public get readableStreamBody(): undefined {\n return undefined;\n }\n\n /**\n * The HTTP response.\n */\n public get _response(): ResponseWithHeaders<BlobQueryHeaders>[\"_response\"] {\n return this.originalResponse._response;\n }\n\n private originalResponse: BlobQueryResponseModel;\n\n /**\n * Creates an instance of BlobQueryResponse.\n *\n * @param originalResponse -\n * @param options -\n */\n public constructor(\n originalResponse: BlobQueryResponseModel,\n _options: BlobQuickQueryStreamOptions = {},\n ) {\n this.originalResponse = originalResponse;\n }\n}\n"]}
@@ -1,3 +1,4 @@
1
+ import type { NodeJSReadableStream } from "@azure/storage-common";
1
2
  import type { BlobDownloadResponseModel, BlobType, CopyStatusType, LeaseDurationType, LeaseStateType, LeaseStatusType, BlobQueryHeaders, BlobQueryResponseModel } from "./generatedModels.js";
2
3
  import type { Metadata } from "./models.js";
3
4
  import type { BlobQuickQueryStreamOptions } from "./utils/BlobQuickQueryStream.js";
@@ -276,7 +277,7 @@ export declare class BlobQueryResponse implements BlobDownloadResponseModel {
276
277
  *
277
278
  * @readonly
278
279
  */
279
- get readableStreamBody(): NodeJS.ReadableStream | undefined;
280
+ get readableStreamBody(): NodeJSReadableStream | undefined;
280
281
  /**
281
282
  * The HTTP response.
282
283
  */
@@ -1 +1 @@
1
- {"version":3,"file":"BlobQueryResponse.d.ts","sourceRoot":"","sources":["../../src/BlobQueryResponse.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,yBAAyB,EACzB,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAEnF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE;;;;;GAKG;AACH,qBAAa,iBAAkB,YAAW,yBAAyB;IACjE;;;;;OAKG;IACH,IAAW,YAAY,IAAI,MAAM,GAAG,SAAS,CAE5C;IAED;;;;;OAKG;IACH,IAAW,YAAY,IAAI,MAAM,GAAG,SAAS,CAE5C;IAED;;;;;;OAMG;IACH,IAAW,kBAAkB,IAAI,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CAAC;IAED;;;;;OAKG;IACH,IAAW,mBAAmB;QAC5B,OAAO,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAAC;IACnD,CAAC;IAED;;;;;OAKG;IACH,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC;IAC5C,CAAC;IAED;;;;;OAKG;IACH,IAAW,QAAQ;QACjB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED;;;;;;;OAOG;IACH,IAAW,kBAAkB;QAC3B,OAAO,sBAAU,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC;IACzC,CAAC;IAEO,gBAAgB,CAAyB;IACzC,kBAAkB,CAAwB;IAElD;;;;;OAKG;IACH,YACE,gBAAwC,EACxC,UAAuC,EAAE;QAEzC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,kBAAkB,GAAG,IAAI,8CAAoB,CAChD,IAAI,CAAC,gBAAgB,CAAC,kBAAmB,EACzC,OAAO,CACR,CAAC;IACJ,CAAC;CACF;AAhZD,8CAgZC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { isNodeLike } from \"@azure/core-util\";\n\nimport type {\n BlobDownloadResponseModel,\n BlobType,\n CopyStatusType,\n LeaseDurationType,\n LeaseStateType,\n LeaseStatusType,\n BlobQueryHeaders,\n BlobQueryResponseModel,\n} from \"./generatedModels.js\";\nimport type { Metadata } from \"./models.js\";\nimport type { BlobQuickQueryStreamOptions } from \"./utils/BlobQuickQueryStream.js\";\nimport { BlobQuickQueryStream } from \"./utils/BlobQuickQueryStream.js\";\nimport type { ResponseWithHeaders } from \"./utils/utils.common.js\";\n\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * BlobQueryResponse implements BlobDownloadResponseModel interface, and in Node.js runtime it will\n * parse avro data returned by blob query.\n */\nexport class BlobQueryResponse implements BlobDownloadResponseModel {\n /**\n * Indicates that the service supports\n * requests for partial file content.\n *\n * @readonly\n */\n public get acceptRanges(): string | undefined {\n return this.originalResponse.acceptRanges;\n }\n\n /**\n * Returns if it was previously specified\n * for the file.\n *\n * @readonly\n */\n public get cacheControl(): string | undefined {\n return this.originalResponse.cacheControl;\n }\n\n /**\n * Returns the value that was specified\n * for the 'x-ms-content-disposition' header and specifies how to process the\n * response.\n *\n * @readonly\n */\n public get contentDisposition(): string | undefined {\n return this.originalResponse.contentDisposition;\n }\n\n /**\n * Returns the value that was specified\n * for the Content-Encoding request header.\n *\n * @readonly\n */\n public get contentEncoding(): string | undefined {\n return this.originalResponse.contentEncoding;\n }\n\n /**\n * Returns the value that was specified\n * for the Content-Language request header.\n *\n * @readonly\n */\n public get contentLanguage(): string | undefined {\n return this.originalResponse.contentLanguage;\n }\n\n /**\n * The current sequence number for a\n * page blob. This header is not returned for block blobs or append blobs.\n *\n * @readonly\n */\n public get blobSequenceNumber(): number | undefined {\n return this.originalResponse.blobSequenceNumber;\n }\n\n /**\n * The blob's type. Possible values include:\n * 'BlockBlob', 'PageBlob', 'AppendBlob'.\n *\n * @readonly\n */\n public get blobType(): BlobType | undefined {\n return this.originalResponse.blobType;\n }\n\n /**\n * The number of bytes present in the\n * response body.\n *\n * @readonly\n */\n public get contentLength(): number | undefined {\n return this.originalResponse.contentLength;\n }\n\n /**\n * If the file has an MD5 hash and the\n * request is to read the full file, this response header is returned so that\n * the client can check for message content integrity. If the request is to\n * read a specified range and the 'x-ms-range-get-content-md5' is set to\n * true, then the request returns an MD5 hash for the range, as long as the\n * range size is less than or equal to 4 MB. If neither of these sets of\n * conditions is true, then no value is returned for the 'Content-MD5'\n * header.\n *\n * @readonly\n */\n public get contentMD5(): Uint8Array | undefined {\n return this.originalResponse.contentMD5;\n }\n\n /**\n * Indicates the range of bytes returned if\n * the client requested a subset of the file by setting the Range request\n * header.\n *\n * @readonly\n */\n public get contentRange(): string | undefined {\n return this.originalResponse.contentRange;\n }\n\n /**\n * The content type specified for the file.\n * The default content type is 'application/octet-stream'\n *\n * @readonly\n */\n public get contentType(): string | undefined {\n return this.originalResponse.contentType;\n }\n\n /**\n * Conclusion time of the last attempted\n * Copy File operation where this file was the destination file. This value\n * can specify the time of a completed, aborted, or failed copy attempt.\n *\n * @readonly\n */\n public get copyCompletedOn(): Date | undefined {\n return undefined;\n }\n\n /**\n * String identifier for the last attempted Copy\n * File operation where this file was the destination file.\n *\n * @readonly\n */\n public get copyId(): string | undefined {\n return this.originalResponse.copyId;\n }\n\n /**\n * Contains the number of bytes copied and\n * the total bytes in the source in the last attempted Copy File operation\n * where this file was the destination file. Can show between 0 and\n * Content-Length bytes copied.\n *\n * @readonly\n */\n public get copyProgress(): string | undefined {\n return this.originalResponse.copyProgress;\n }\n\n /**\n * URL up to 2KB in length that specifies the\n * source file used in the last attempted Copy File operation where this file\n * was the destination file.\n *\n * @readonly\n */\n public get copySource(): string | undefined {\n return this.originalResponse.copySource;\n }\n\n /**\n * State of the copy operation\n * identified by 'x-ms-copy-id'. Possible values include: 'pending',\n * 'success', 'aborted', 'failed'\n *\n * @readonly\n */\n public get copyStatus(): CopyStatusType | undefined {\n return this.originalResponse.copyStatus;\n }\n\n /**\n * Only appears when\n * x-ms-copy-status is failed or pending. Describes cause of fatal or\n * non-fatal copy operation failure.\n *\n * @readonly\n */\n public get copyStatusDescription(): string | undefined {\n return this.originalResponse.copyStatusDescription;\n }\n\n /**\n * When a blob is leased,\n * specifies whether the lease is of infinite or fixed duration. Possible\n * values include: 'infinite', 'fixed'.\n *\n * @readonly\n */\n public get leaseDuration(): LeaseDurationType | undefined {\n return this.originalResponse.leaseDuration;\n }\n\n /**\n * Lease state of the blob. Possible\n * values include: 'available', 'leased', 'expired', 'breaking', 'broken'.\n *\n * @readonly\n */\n public get leaseState(): LeaseStateType | undefined {\n return this.originalResponse.leaseState;\n }\n\n /**\n * The current lease status of the\n * blob. Possible values include: 'locked', 'unlocked'.\n *\n * @readonly\n */\n public get leaseStatus(): LeaseStatusType | undefined {\n return this.originalResponse.leaseStatus;\n }\n\n /**\n * A UTC date/time value generated by the service that\n * indicates the time at which the response was initiated.\n *\n * @readonly\n */\n public get date(): Date | undefined {\n return this.originalResponse.date;\n }\n\n /**\n * The number of committed blocks\n * present in the blob. This header is returned only for append blobs.\n *\n * @readonly\n */\n public get blobCommittedBlockCount(): number | undefined {\n return this.originalResponse.blobCommittedBlockCount;\n }\n\n /**\n * The ETag contains a value that you can use to\n * perform operations conditionally, in quotes.\n *\n * @readonly\n */\n public get etag(): string | undefined {\n return this.originalResponse.etag;\n }\n\n /**\n * The error code.\n *\n * @readonly\n */\n public get errorCode(): string | undefined {\n return this.originalResponse.errorCode;\n }\n\n /**\n * The value of this header is set to\n * true if the file data and application metadata are completely encrypted\n * using the specified algorithm. Otherwise, the value is set to false (when\n * the file is unencrypted, or if only parts of the file/application metadata\n * are encrypted).\n *\n * @readonly\n */\n public get isServerEncrypted(): boolean | undefined {\n return this.originalResponse.isServerEncrypted;\n }\n\n /**\n * If the blob has a MD5 hash, and if\n * request contains range header (Range or x-ms-range), this response header\n * is returned with the value of the whole blob's MD5 value. This value may\n * or may not be equal to the value returned in Content-MD5 header, with the\n * latter calculated from the requested range.\n *\n * @readonly\n */\n public get blobContentMD5(): Uint8Array | undefined {\n return this.originalResponse.blobContentMD5;\n }\n\n /**\n * Returns the date and time the file was last\n * modified. Any operation that modifies the file or its properties updates\n * the last modified time.\n *\n * @readonly\n */\n public get lastModified(): Date | undefined {\n return this.originalResponse.lastModified;\n }\n\n /**\n * A name-value pair\n * to associate with a file storage object.\n *\n * @readonly\n */\n public get metadata(): Metadata | undefined {\n return this.originalResponse.metadata;\n }\n\n /**\n * This header uniquely identifies the request\n * that was made and can be used for troubleshooting the request.\n *\n * @readonly\n */\n public get requestId(): string | undefined {\n return this.originalResponse.requestId;\n }\n\n /**\n * If a client request id header is sent in the request, this header will be present in the\n * response with the same value.\n *\n * @readonly\n */\n public get clientRequestId(): string | undefined {\n return this.originalResponse.clientRequestId;\n }\n\n /**\n * Indicates the version of the File service used\n * to execute the request.\n *\n * @readonly\n */\n public get version(): string | undefined {\n return this.originalResponse.version;\n }\n\n /**\n * The SHA-256 hash of the encryption key used to encrypt the blob. This value is only returned\n * when the blob was encrypted with a customer-provided key.\n *\n * @readonly\n */\n public get encryptionKeySha256(): string | undefined {\n return this.originalResponse.encryptionKeySha256;\n }\n\n /**\n * If the request is to read a specified range and the x-ms-range-get-content-crc64 is set to\n * true, then the request returns a crc64 for the range, as long as the range size is less than\n * or equal to 4 MB. If both x-ms-range-get-content-crc64 & x-ms-range-get-content-md5 is\n * specified in the same request, it will fail with 400(Bad Request)\n */\n public get contentCrc64(): Uint8Array | undefined {\n return this.originalResponse.contentCrc64;\n }\n\n /**\n * The response body as a browser Blob.\n * Always undefined in node.js.\n *\n * @readonly\n */\n public get blobBody(): Promise<Blob> | undefined {\n return undefined;\n }\n\n /**\n * The response body as a node.js Readable stream.\n * Always undefined in the browser.\n *\n * It will parse avor data returned by blob query.\n *\n * @readonly\n */\n public get readableStreamBody(): NodeJS.ReadableStream | undefined {\n return isNodeLike ? this.blobDownloadStream : undefined;\n }\n\n /**\n * The HTTP response.\n */\n public get _response(): ResponseWithHeaders<BlobQueryHeaders>[\"_response\"] {\n return this.originalResponse._response;\n }\n\n private originalResponse: BlobQueryResponseModel;\n private blobDownloadStream?: BlobQuickQueryStream;\n\n /**\n * Creates an instance of BlobQueryResponse.\n *\n * @param originalResponse -\n * @param options -\n */\n public constructor(\n originalResponse: BlobQueryResponseModel,\n options: BlobQuickQueryStreamOptions = {},\n ) {\n this.originalResponse = originalResponse;\n this.blobDownloadStream = new BlobQuickQueryStream(\n this.originalResponse.readableStreamBody!,\n options,\n );\n }\n}\n"]}
1
+ {"version":3,"file":"BlobQueryResponse.js","sourceRoot":"","sources":["../../src/Bl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AwC,EACxC,UAAuC,EAAE;QAEzC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,kBAAkB,GAAG,IAAI,8CAAoB,CAChD,IAAI,CAAC,gBAAgB,CAAC,kBAAmB,EACzC,OAAO,CACR,CAAC;IACJ,CAAC;CACF;AAhZD,8CAgZC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { isNodeLike } from \"@azure/core-util\";\nimport type { NodeJSReadableStream } from \"@azure/storage-common\";\n\nimport type {\n BlobDownloadResponseModel,\n BlobType,\n CopyStatusType,\n LeaseDurationType,\n LeaseStateType,\n LeaseStatusType,\n BlobQueryHeaders,\n BlobQueryResponseModel,\n} from \"./generatedModels.js\";\nimport type { Metadata } from \"./models.js\";\nimport type { BlobQuickQueryStreamOptions } from \"./utils/BlobQuickQueryStream.js\";\nimport { BlobQuickQueryStream } from \"./utils/BlobQuickQueryStream.js\";\nimport type { ResponseWithHeaders } from \"./utils/utils.common.js\";\n\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * BlobQueryResponse implements BlobDownloadResponseModel interface, and in Node.js runtime it will\n * parse avro data returned by blob query.\n */\nexport class BlobQueryResponse implements BlobDownloadResponseModel {\n /**\n * Indicates that the service supports\n * requests for partial file content.\n *\n * @readonly\n */\n public get acceptRanges(): string | undefined {\n return this.originalResponse.acceptRanges;\n }\n\n /**\n * Returns if it was previously specified\n * for the file.\n *\n * @readonly\n */\n public get cacheControl(): string | undefined {\n return this.originalResponse.cacheControl;\n }\n\n /**\n * Returns the value that was specified\n * for the 'x-ms-content-disposition' header and specifies how to process the\n * response.\n *\n * @readonly\n */\n public get contentDisposition(): string | undefined {\n return this.originalResponse.contentDisposition;\n }\n\n /**\n * Returns the value that was specified\n * for the Content-Encoding request header.\n *\n * @readonly\n */\n public get contentEncoding(): string | undefined {\n return this.originalResponse.contentEncoding;\n }\n\n /**\n * Returns the value that was specified\n * for the Content-Language request header.\n *\n * @readonly\n */\n public get contentLanguage(): string | undefined {\n return this.originalResponse.contentLanguage;\n }\n\n /**\n * The current sequence number for a\n * page blob. This header is not returned for block blobs or append blobs.\n *\n * @readonly\n */\n public get blobSequenceNumber(): number | undefined {\n return this.originalResponse.blobSequenceNumber;\n }\n\n /**\n * The blob's type. Possible values include:\n * 'BlockBlob', 'PageBlob', 'AppendBlob'.\n *\n * @readonly\n */\n public get blobType(): BlobType | undefined {\n return this.originalResponse.blobType;\n }\n\n /**\n * The number of bytes present in the\n * response body.\n *\n * @readonly\n */\n public get contentLength(): number | undefined {\n return this.originalResponse.contentLength;\n }\n\n /**\n * If the file has an MD5 hash and the\n * request is to read the full file, this response header is returned so that\n * the client can check for message content integrity. If the request is to\n * read a specified range and the 'x-ms-range-get-content-md5' is set to\n * true, then the request returns an MD5 hash for the range, as long as the\n * range size is less than or equal to 4 MB. If neither of these sets of\n * conditions is true, then no value is returned for the 'Content-MD5'\n * header.\n *\n * @readonly\n */\n public get contentMD5(): Uint8Array | undefined {\n return this.originalResponse.contentMD5;\n }\n\n /**\n * Indicates the range of bytes returned if\n * the client requested a subset of the file by setting the Range request\n * header.\n *\n * @readonly\n */\n public get contentRange(): string | undefined {\n return this.originalResponse.contentRange;\n }\n\n /**\n * The content type specified for the file.\n * The default content type is 'application/octet-stream'\n *\n * @readonly\n */\n public get contentType(): string | undefined {\n return this.originalResponse.contentType;\n }\n\n /**\n * Conclusion time of the last attempted\n * Copy File operation where this file was the destination file. This value\n * can specify the time of a completed, aborted, or failed copy attempt.\n *\n * @readonly\n */\n public get copyCompletedOn(): Date | undefined {\n return undefined;\n }\n\n /**\n * String identifier for the last attempted Copy\n * File operation where this file was the destination file.\n *\n * @readonly\n */\n public get copyId(): string | undefined {\n return this.originalResponse.copyId;\n }\n\n /**\n * Contains the number of bytes copied and\n * the total bytes in the source in the last attempted Copy File operation\n * where this file was the destination file. Can show between 0 and\n * Content-Length bytes copied.\n *\n * @readonly\n */\n public get copyProgress(): string | undefined {\n return this.originalResponse.copyProgress;\n }\n\n /**\n * URL up to 2KB in length that specifies the\n * source file used in the last attempted Copy File operation where this file\n * was the destination file.\n *\n * @readonly\n */\n public get copySource(): string | undefined {\n return this.originalResponse.copySource;\n }\n\n /**\n * State of the copy operation\n * identified by 'x-ms-copy-id'. Possible values include: 'pending',\n * 'success', 'aborted', 'failed'\n *\n * @readonly\n */\n public get copyStatus(): CopyStatusType | undefined {\n return this.originalResponse.copyStatus;\n }\n\n /**\n * Only appears when\n * x-ms-copy-status is failed or pending. Describes cause of fatal or\n * non-fatal copy operation failure.\n *\n * @readonly\n */\n public get copyStatusDescription(): string | undefined {\n return this.originalResponse.copyStatusDescription;\n }\n\n /**\n * When a blob is leased,\n * specifies whether the lease is of infinite or fixed duration. Possible\n * values include: 'infinite', 'fixed'.\n *\n * @readonly\n */\n public get leaseDuration(): LeaseDurationType | undefined {\n return this.originalResponse.leaseDuration;\n }\n\n /**\n * Lease state of the blob. Possible\n * values include: 'available', 'leased', 'expired', 'breaking', 'broken'.\n *\n * @readonly\n */\n public get leaseState(): LeaseStateType | undefined {\n return this.originalResponse.leaseState;\n }\n\n /**\n * The current lease status of the\n * blob. Possible values include: 'locked', 'unlocked'.\n *\n * @readonly\n */\n public get leaseStatus(): LeaseStatusType | undefined {\n return this.originalResponse.leaseStatus;\n }\n\n /**\n * A UTC date/time value generated by the service that\n * indicates the time at which the response was initiated.\n *\n * @readonly\n */\n public get date(): Date | undefined {\n return this.originalResponse.date;\n }\n\n /**\n * The number of committed blocks\n * present in the blob. This header is returned only for append blobs.\n *\n * @readonly\n */\n public get blobCommittedBlockCount(): number | undefined {\n return this.originalResponse.blobCommittedBlockCount;\n }\n\n /**\n * The ETag contains a value that you can use to\n * perform operations conditionally, in quotes.\n *\n * @readonly\n */\n public get etag(): string | undefined {\n return this.originalResponse.etag;\n }\n\n /**\n * The error code.\n *\n * @readonly\n */\n public get errorCode(): string | undefined {\n return this.originalResponse.errorCode;\n }\n\n /**\n * The value of this header is set to\n * true if the file data and application metadata are completely encrypted\n * using the specified algorithm. Otherwise, the value is set to false (when\n * the file is unencrypted, or if only parts of the file/application metadata\n * are encrypted).\n *\n * @readonly\n */\n public get isServerEncrypted(): boolean | undefined {\n return this.originalResponse.isServerEncrypted;\n }\n\n /**\n * If the blob has a MD5 hash, and if\n * request contains range header (Range or x-ms-range), this response header\n * is returned with the value of the whole blob's MD5 value. This value may\n * or may not be equal to the value returned in Content-MD5 header, with the\n * latter calculated from the requested range.\n *\n * @readonly\n */\n public get blobContentMD5(): Uint8Array | undefined {\n return this.originalResponse.blobContentMD5;\n }\n\n /**\n * Returns the date and time the file was last\n * modified. Any operation that modifies the file or its properties updates\n * the last modified time.\n *\n * @readonly\n */\n public get lastModified(): Date | undefined {\n return this.originalResponse.lastModified;\n }\n\n /**\n * A name-value pair\n * to associate with a file storage object.\n *\n * @readonly\n */\n public get metadata(): Metadata | undefined {\n return this.originalResponse.metadata;\n }\n\n /**\n * This header uniquely identifies the request\n * that was made and can be used for troubleshooting the request.\n *\n * @readonly\n */\n public get requestId(): string | undefined {\n return this.originalResponse.requestId;\n }\n\n /**\n * If a client request id header is sent in the request, this header will be present in the\n * response with the same value.\n *\n * @readonly\n */\n public get clientRequestId(): string | undefined {\n return this.originalResponse.clientRequestId;\n }\n\n /**\n * Indicates the version of the File service used\n * to execute the request.\n *\n * @readonly\n */\n public get version(): string | undefined {\n return this.originalResponse.version;\n }\n\n /**\n * The SHA-256 hash of the encryption key used to encrypt the blob. This value is only returned\n * when the blob was encrypted with a customer-provided key.\n *\n * @readonly\n */\n public get encryptionKeySha256(): string | undefined {\n return this.originalResponse.encryptionKeySha256;\n }\n\n /**\n * If the request is to read a specified range and the x-ms-range-get-content-crc64 is set to\n * true, then the request returns a crc64 for the range, as long as the range size is less than\n * or equal to 4 MB. If both x-ms-range-get-content-crc64 & x-ms-range-get-content-md5 is\n * specified in the same request, it will fail with 400(Bad Request)\n */\n public get contentCrc64(): Uint8Array | undefined {\n return this.originalResponse.contentCrc64;\n }\n\n /**\n * The response body as a browser Blob.\n * Always undefined in node.js.\n *\n * @readonly\n */\n public get blobBody(): Promise<Blob> | undefined {\n return undefined;\n }\n\n /**\n * The response body as a node.js Readable stream.\n * Always undefined in the browser.\n *\n * It will parse avor data returned by blob query.\n *\n * @readonly\n */\n public get readableStreamBody(): NodeJSReadableStream | undefined {\n return isNodeLike ? this.blobDownloadStream : undefined;\n }\n\n /**\n * The HTTP response.\n */\n public get _response(): ResponseWithHeaders<BlobQueryHeaders>[\"_response\"] {\n return this.originalResponse._response;\n }\n\n private originalResponse: BlobQueryResponseModel;\n private blobDownloadStream?: BlobQuickQueryStream;\n\n /**\n * Creates an instance of BlobQueryResponse.\n *\n * @param originalResponse -\n * @param options -\n */\n public constructor(\n originalResponse: BlobQueryResponseModel,\n options: BlobQuickQueryStreamOptions = {},\n ) {\n this.originalResponse = originalResponse;\n this.blobDownloadStream = new BlobQuickQueryStream(\n this.originalResponse.readableStreamBody!,\n options,\n );\n }\n}\n"]}
@@ -248,7 +248,7 @@ class BlobClient extends StorageClient_js_1.StorageClient {
248
248
  options.conditions = options.conditions || {};
249
249
  (0, models_js_1.ensureCpkIfSpecified)(options.customerProvidedKey, this.isHttps);
250
250
  return tracing_js_1.tracingClient.withSpan("BlobClient-download", options, async (updatedOptions) => {
251
- const res = (0, utils_common_js_1.assertResponse)(await this.blobContext.download({
251
+ const res = (0, utils_common_js_1.assertResponse)((await this.blobContext.download({
252
252
  abortSignal: options.abortSignal,
253
253
  leaseAccessConditions: options.conditions,
254
254
  modifiedAccessConditions: {
@@ -264,7 +264,7 @@ class BlobClient extends StorageClient_js_1.StorageClient {
264
264
  snapshot: options.snapshot,
265
265
  cpkInfo: options.customerProvidedKey,
266
266
  tracingOptions: updatedOptions.tracingOptions,
267
- }));
267
+ })));
268
268
  const wrappedRes = {
269
269
  ...res,
270
270
  _response: res._response, // _response is made non-enumerable
@@ -1588,7 +1588,7 @@ class BlockBlobClient extends BlobClient {
1588
1588
  throw new Error("This operation currently is only supported in Node.js.");
1589
1589
  }
1590
1590
  return tracing_js_1.tracingClient.withSpan("BlockBlobClient-query", options, async (updatedOptions) => {
1591
- const response = (0, utils_common_js_1.assertResponse)(await this._blobContext.query({
1591
+ const response = (0, utils_common_js_1.assertResponse)((await this._blobContext.query({
1592
1592
  abortSignal: options.abortSignal,
1593
1593
  queryRequest: {
1594
1594
  queryType: "SQL",
@@ -1603,7 +1603,7 @@ class BlockBlobClient extends BlobClient {
1603
1603
  },
1604
1604
  cpkInfo: options.customerProvidedKey,
1605
1605
  tracingOptions: updatedOptions.tracingOptions,
1606
- }));
1606
+ })));
1607
1607
  return new BlobQueryResponse_js_1.BlobQueryResponse(response, {
1608
1608
  abortSignal: options.abortSignal,
1609
1609
  onProgress: options.onProgress,