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