@azure/storage-file-share 12.23.0-alpha.20240527.1 → 12.23.0-alpha.20240528.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. package/dist/index.js +163 -176
  2. package/dist/index.js.map +1 -1
  3. package/dist-esm/storage-blob/src/Pipeline.js.map +1 -1
  4. package/dist-esm/storage-blob/src/generated/src/models/index.js.map +1 -1
  5. package/dist-esm/storage-blob/src/generated/src/models/mappers.js +2356 -2356
  6. package/dist-esm/storage-blob/src/generated/src/models/mappers.js.map +1 -1
  7. package/dist-esm/storage-blob/src/generated/src/models/parameters.js +444 -444
  8. package/dist-esm/storage-blob/src/generated/src/models/parameters.js.map +1 -1
  9. package/dist-esm/storage-blob/src/generated/src/operations/appendBlob.js +20 -20
  10. package/dist-esm/storage-blob/src/generated/src/operations/appendBlob.js.map +1 -1
  11. package/dist-esm/storage-blob/src/generated/src/operations/blob.js +134 -134
  12. package/dist-esm/storage-blob/src/generated/src/operations/blob.js.map +1 -1
  13. package/dist-esm/storage-blob/src/generated/src/operations/blockBlob.js +33 -33
  14. package/dist-esm/storage-blob/src/generated/src/operations/blockBlob.js.map +1 -1
  15. package/dist-esm/storage-blob/src/generated/src/operations/container.js +107 -107
  16. package/dist-esm/storage-blob/src/generated/src/operations/container.js.map +1 -1
  17. package/dist-esm/storage-blob/src/generated/src/operations/pageBlob.js +47 -47
  18. package/dist-esm/storage-blob/src/generated/src/operations/pageBlob.js.map +1 -1
  19. package/dist-esm/storage-blob/src/generated/src/operations/service.js +46 -46
  20. package/dist-esm/storage-blob/src/generated/src/operations/service.js.map +1 -1
  21. package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/appendBlob.js.map +1 -1
  22. package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/blob.js.map +1 -1
  23. package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/blockBlob.js.map +1 -1
  24. package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/container.js.map +1 -1
  25. package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/pageBlob.js.map +1 -1
  26. package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/service.js.map +1 -1
  27. package/dist-esm/storage-blob/src/generated/src/storageClient.js +4 -4
  28. package/dist-esm/storage-blob/src/generated/src/storageClient.js.map +1 -1
  29. package/dist-esm/storage-blob/src/generatedModels.js.map +1 -1
  30. package/dist-esm/storage-blob/src/index.js +1 -1
  31. package/dist-esm/storage-blob/src/index.js.map +1 -1
  32. package/dist-esm/storage-blob/src/models.js +7 -0
  33. package/dist-esm/storage-blob/src/models.js.map +1 -1
  34. package/dist-esm/storage-blob/src/utils/constants.js +1 -1
  35. package/dist-esm/storage-blob/src/utils/constants.js.map +1 -1
  36. package/dist-esm/storage-file-share/src/Clients.js +5 -5
  37. package/dist-esm/storage-file-share/src/Clients.js.map +1 -1
  38. package/dist-esm/storage-file-share/src/Pipeline.js +259 -0
  39. package/dist-esm/storage-file-share/src/Pipeline.js.map +1 -0
  40. package/dist-esm/storage-file-share/src/ShareClientInternal.js.map +1 -1
  41. package/dist-esm/storage-file-share/src/ShareServiceClient.js +2 -2
  42. package/dist-esm/storage-file-share/src/ShareServiceClient.js.map +1 -1
  43. package/dist-esm/storage-file-share/src/StorageClient.js +1 -1
  44. package/dist-esm/storage-file-share/src/StorageClient.js.map +1 -1
  45. package/dist-esm/storage-file-share/src/StorageRetryPolicyFactory.js +26 -0
  46. package/dist-esm/storage-file-share/src/StorageRetryPolicyFactory.js.map +1 -0
  47. package/dist-esm/storage-file-share/src/generated/src/models/index.js +2 -0
  48. package/dist-esm/storage-file-share/src/generated/src/models/index.js.map +1 -1
  49. package/dist-esm/storage-file-share/src/generated/src/models/mappers.js +8 -0
  50. package/dist-esm/storage-file-share/src/generated/src/models/mappers.js.map +1 -1
  51. package/dist-esm/storage-file-share/src/generated/src/models/parameters.js +11 -1
  52. package/dist-esm/storage-file-share/src/generated/src/models/parameters.js.map +1 -1
  53. package/dist-esm/storage-file-share/src/generated/src/operations/file.js +3 -1
  54. package/dist-esm/storage-file-share/src/generated/src/operations/file.js.map +1 -1
  55. package/dist-esm/storage-file-share/src/generated/src/storageClient.js +1 -1
  56. package/dist-esm/storage-file-share/src/generated/src/storageClient.js.map +1 -1
  57. package/dist-esm/storage-file-share/src/generatedModels.js.map +1 -1
  58. package/dist-esm/storage-file-share/src/index.browser.js +2 -2
  59. package/dist-esm/storage-file-share/src/index.browser.js.map +1 -1
  60. package/dist-esm/storage-file-share/src/index.js +3 -2
  61. package/dist-esm/storage-file-share/src/index.js.map +1 -1
  62. package/dist-esm/storage-file-share/src/models.js +16 -0
  63. package/dist-esm/storage-file-share/src/models.js.map +1 -1
  64. package/dist-esm/storage-file-share/src/utils/constants.js +5 -1
  65. package/dist-esm/storage-file-share/src/utils/constants.js.map +1 -1
  66. package/package.json +2 -2
  67. package/types/latest/storage-file-share.d.ts +78 -9
  68. package/dist-esm/storage-blob/src/BatchUtils.browser.js +0 -11
  69. package/dist-esm/storage-blob/src/BatchUtils.browser.js.map +0 -1
  70. package/dist-esm/storage-blob/src/BlobDownloadResponse.browser.js +0 -7
  71. package/dist-esm/storage-blob/src/BlobDownloadResponse.browser.js.map +0 -1
  72. package/dist-esm/storage-blob/src/BlobQueryResponse.browser.js +0 -362
  73. package/dist-esm/storage-blob/src/BlobQueryResponse.browser.js.map +0 -1
  74. package/dist-esm/storage-blob/src/index.browser.js +0 -23
  75. package/dist-esm/storage-blob/src/index.browser.js.map +0 -1
  76. package/dist-esm/storage-blob/src/utils/utils.browser.js +0 -48
  77. package/dist-esm/storage-blob/src/utils/utils.browser.js.map +0 -1
@@ -1,362 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- /**
4
- * ONLY AVAILABLE IN BROWSER RUNTIME.
5
- *
6
- * BlobQueryResponse implements BlobDownloadResponseModel interface, and in browser runtime it will
7
- * parse avor data returned by blob query.
8
- */
9
- export class BlobQueryResponse {
10
- /**
11
- * Indicates that the service supports
12
- * requests for partial file content.
13
- *
14
- * @readonly
15
- */
16
- get acceptRanges() {
17
- return this.originalResponse.acceptRanges;
18
- }
19
- /**
20
- * Returns if it was previously specified
21
- * for the file.
22
- *
23
- * @readonly
24
- */
25
- get cacheControl() {
26
- return this.originalResponse.cacheControl;
27
- }
28
- /**
29
- * Returns the value that was specified
30
- * for the 'x-ms-content-disposition' header and specifies how to process the
31
- * response.
32
- *
33
- * @readonly
34
- */
35
- get contentDisposition() {
36
- return this.originalResponse.contentDisposition;
37
- }
38
- /**
39
- * Returns the value that was specified
40
- * for the Content-Encoding request header.
41
- *
42
- * @readonly
43
- */
44
- get contentEncoding() {
45
- return this.originalResponse.contentEncoding;
46
- }
47
- /**
48
- * Returns the value that was specified
49
- * for the Content-Language request header.
50
- *
51
- * @readonly
52
- */
53
- get contentLanguage() {
54
- return this.originalResponse.contentLanguage;
55
- }
56
- /**
57
- * The current sequence number for a
58
- * page blob. This header is not returned for block blobs or append blobs.
59
- *
60
- * @readonly
61
- */
62
- get blobSequenceNumber() {
63
- return this.originalResponse.blobSequenceNumber;
64
- }
65
- /**
66
- * The blob's type. Possible values include:
67
- * 'BlockBlob', 'PageBlob', 'AppendBlob'.
68
- *
69
- * @readonly
70
- */
71
- get blobType() {
72
- return this.originalResponse.blobType;
73
- }
74
- /**
75
- * The number of bytes present in the
76
- * response body.
77
- *
78
- * @readonly
79
- */
80
- get contentLength() {
81
- return this.originalResponse.contentLength;
82
- }
83
- /**
84
- * If the file has an MD5 hash and the
85
- * request is to read the full file, this response header is returned so that
86
- * the client can check for message content integrity. If the request is to
87
- * read a specified range and the 'x-ms-range-get-content-md5' is set to
88
- * true, then the request returns an MD5 hash for the range, as long as the
89
- * range size is less than or equal to 4 MB. If neither of these sets of
90
- * conditions is true, then no value is returned for the 'Content-MD5'
91
- * header.
92
- *
93
- * @readonly
94
- */
95
- get contentMD5() {
96
- return this.originalResponse.contentMD5;
97
- }
98
- /**
99
- * Indicates the range of bytes returned if
100
- * the client requested a subset of the file by setting the Range request
101
- * header.
102
- *
103
- * @readonly
104
- */
105
- get contentRange() {
106
- return this.originalResponse.contentRange;
107
- }
108
- /**
109
- * The content type specified for the file.
110
- * The default content type is 'application/octet-stream'
111
- *
112
- * @readonly
113
- */
114
- get contentType() {
115
- return this.originalResponse.contentType;
116
- }
117
- /**
118
- * Conclusion time of the last attempted
119
- * Copy File operation where this file was the destination file. This value
120
- * can specify the time of a completed, aborted, or failed copy attempt.
121
- *
122
- * @readonly
123
- */
124
- get copyCompletedOn() {
125
- return undefined;
126
- }
127
- /**
128
- * String identifier for the last attempted Copy
129
- * File operation where this file was the destination file.
130
- *
131
- * @readonly
132
- */
133
- get copyId() {
134
- return this.originalResponse.copyId;
135
- }
136
- /**
137
- * Contains the number of bytes copied and
138
- * the total bytes in the source in the last attempted Copy File operation
139
- * where this file was the destination file. Can show between 0 and
140
- * Content-Length bytes copied.
141
- *
142
- * @readonly
143
- */
144
- get copyProgress() {
145
- return this.originalResponse.copyProgress;
146
- }
147
- /**
148
- * URL up to 2KB in length that specifies the
149
- * source file used in the last attempted Copy File operation where this file
150
- * was the destination file.
151
- *
152
- * @readonly
153
- */
154
- get copySource() {
155
- return this.originalResponse.copySource;
156
- }
157
- /**
158
- * State of the copy operation
159
- * identified by 'x-ms-copy-id'. Possible values include: 'pending',
160
- * 'success', 'aborted', 'failed'
161
- *
162
- * @readonly
163
- */
164
- get copyStatus() {
165
- return this.originalResponse.copyStatus;
166
- }
167
- /**
168
- * Only appears when
169
- * x-ms-copy-status is failed or pending. Describes cause of fatal or
170
- * non-fatal copy operation failure.
171
- *
172
- * @readonly
173
- */
174
- get copyStatusDescription() {
175
- return this.originalResponse.copyStatusDescription;
176
- }
177
- /**
178
- * When a blob is leased,
179
- * specifies whether the lease is of infinite or fixed duration. Possible
180
- * values include: 'infinite', 'fixed'.
181
- *
182
- * @readonly
183
- */
184
- get leaseDuration() {
185
- return this.originalResponse.leaseDuration;
186
- }
187
- /**
188
- * Lease state of the blob. Possible
189
- * values include: 'available', 'leased', 'expired', 'breaking', 'broken'.
190
- *
191
- * @readonly
192
- */
193
- get leaseState() {
194
- return this.originalResponse.leaseState;
195
- }
196
- /**
197
- * The current lease status of the
198
- * blob. Possible values include: 'locked', 'unlocked'.
199
- *
200
- * @readonly
201
- */
202
- get leaseStatus() {
203
- return this.originalResponse.leaseStatus;
204
- }
205
- /**
206
- * A UTC date/time value generated by the service that
207
- * indicates the time at which the response was initiated.
208
- *
209
- * @readonly
210
- */
211
- get date() {
212
- return this.originalResponse.date;
213
- }
214
- /**
215
- * The number of committed blocks
216
- * present in the blob. This header is returned only for append blobs.
217
- *
218
- * @readonly
219
- */
220
- get blobCommittedBlockCount() {
221
- return this.originalResponse.blobCommittedBlockCount;
222
- }
223
- /**
224
- * The ETag contains a value that you can use to
225
- * perform operations conditionally, in quotes.
226
- *
227
- * @readonly
228
- */
229
- get etag() {
230
- return this.originalResponse.etag;
231
- }
232
- /**
233
- * The error code.
234
- *
235
- * @readonly
236
- */
237
- get errorCode() {
238
- return this.originalResponse.errorCode;
239
- }
240
- /**
241
- * The value of this header is set to
242
- * true if the file data and application metadata are completely encrypted
243
- * using the specified algorithm. Otherwise, the value is set to false (when
244
- * the file is unencrypted, or if only parts of the file/application metadata
245
- * are encrypted).
246
- *
247
- * @readonly
248
- */
249
- get isServerEncrypted() {
250
- return this.originalResponse.isServerEncrypted;
251
- }
252
- /**
253
- * If the blob has a MD5 hash, and if
254
- * request contains range header (Range or x-ms-range), this response header
255
- * is returned with the value of the whole blob's MD5 value. This value may
256
- * or may not be equal to the value returned in Content-MD5 header, with the
257
- * latter calculated from the requested range.
258
- *
259
- * @readonly
260
- */
261
- get blobContentMD5() {
262
- return this.originalResponse.blobContentMD5;
263
- }
264
- /**
265
- * Returns the date and time the file was last
266
- * modified. Any operation that modifies the file or its properties updates
267
- * the last modified time.
268
- *
269
- * @readonly
270
- */
271
- get lastModified() {
272
- return this.originalResponse.lastModified;
273
- }
274
- /**
275
- * A name-value pair
276
- * to associate with a file storage object.
277
- *
278
- * @readonly
279
- */
280
- get metadata() {
281
- return this.originalResponse.metadata;
282
- }
283
- /**
284
- * This header uniquely identifies the request
285
- * that was made and can be used for troubleshooting the request.
286
- *
287
- * @readonly
288
- */
289
- get requestId() {
290
- return this.originalResponse.requestId;
291
- }
292
- /**
293
- * If a client request id header is sent in the request, this header will be present in the
294
- * response with the same value.
295
- *
296
- * @readonly
297
- */
298
- get clientRequestId() {
299
- return this.originalResponse.clientRequestId;
300
- }
301
- /**
302
- * Indicates the version of the File service used
303
- * to execute the request.
304
- *
305
- * @readonly
306
- */
307
- get version() {
308
- return this.originalResponse.version;
309
- }
310
- /**
311
- * The SHA-256 hash of the encryption key used to encrypt the blob. This value is only returned
312
- * when the blob was encrypted with a customer-provided key.
313
- *
314
- * @readonly
315
- */
316
- get encryptionKeySha256() {
317
- return this.originalResponse.encryptionKeySha256;
318
- }
319
- /**
320
- * If the request is to read a specified range and the x-ms-range-get-content-crc64 is set to
321
- * true, then the request returns a crc64 for the range, as long as the range size is less than
322
- * or equal to 4 MB. If both x-ms-range-get-content-crc64 & x-ms-range-get-content-md5 is
323
- * specified in the same request, it will fail with 400(Bad Request)
324
- */
325
- get contentCrc64() {
326
- return this.originalResponse.contentCrc64;
327
- }
328
- /**
329
- * The response body as a browser Blob.
330
- * Always undefined in node.js.
331
- *
332
- * @readonly
333
- */
334
- get blobBody() {
335
- throw Error(`Quick query in browser is not supported yet.`);
336
- }
337
- /**
338
- * The response body as a node.js Readable stream.
339
- * Always undefined in the browser.
340
- *
341
- * @readonly
342
- */
343
- get readableStreamBody() {
344
- return undefined;
345
- }
346
- /**
347
- * The HTTP response.
348
- */
349
- get _response() {
350
- return this.originalResponse._response;
351
- }
352
- /**
353
- * Creates an instance of BlobQueryResponse.
354
- *
355
- * @param originalResponse -
356
- * @param options -
357
- */
358
- constructor(originalResponse, _options = {}) {
359
- this.originalResponse = originalResponse;
360
- }
361
- }
362
- //# sourceMappingURL=BlobQueryResponse.browser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlobQueryResponse.browser.js","sourceRoot":"","sources":["../../../../storage-blob/src/BlobQueryResponse.browser.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAgBlC;;;;;GAKG;AACH,MAAM,OAAO,iBAAiB;IAC5B;;;;;OAKG;IACH,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC;IAC5C,CAAC;IAED;;;;;OAKG;IACH,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC;IAC5C,CAAC;IAED;;;;;;OAMG;IACH,IAAW,kBAAkB;QAC3B,OAAO,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACH,IAAW,eAAe;QACxB,OAAO,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC;IAC/C,CAAC;IAED;;;;;OAKG;IACH,IAAW,eAAe;QACxB,OAAO,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC;IAC/C,CAAC;IAED;;;;;OAKG;IACH,IAAW,kBAAkB;QAC3B,OAAO,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACH,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC;IACxC,CAAC;IAED;;;;;OAKG;IACH,IAAW,aAAa;QACtB,OAAO,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC;IAC7C,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC;IAC1C,CAAC;IAED;;;;;;OAMG;IACH,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC;IAC5C,CAAC;IAED;;;;;OAKG;IACH,IAAW,WAAW;QACpB,OAAO,IAAI,CAAC,gBAAgB,CAAC,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C,gBAAgB,GAAG,gBAAgB,CAAC;IAC3C,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n BlobDownloadResponseModel,\n BlobType,\n CopyStatusType,\n LeaseDurationType,\n LeaseStateType,\n LeaseStatusType,\n BlobQueryResponseModel,\n BlobQueryHeaders,\n} from \"./generatedModels\";\nimport { Metadata } from \"./models\";\nimport { BlobQuickQueryStreamOptions } from \"./utils/BlobQuickQueryStream\";\nimport { ResponseWithHeaders } from \"./utils/utils.common\";\n\n/**\n * ONLY AVAILABLE IN BROWSER RUNTIME.\n *\n * BlobQueryResponse implements BlobDownloadResponseModel interface, and in browser runtime it will\n * parse avor 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(): NodeJS.ReadableStream | 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,23 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- import { RestError } from "@azure/core-rest-pipeline";
4
- export * from "./BlobServiceClient";
5
- export * from "./Clients";
6
- export * from "./ContainerClient";
7
- export * from "./BlobLeaseClient";
8
- export * from "./BlobBatch";
9
- export * from "./BlobBatchClient";
10
- export * from "./BatchResponse";
11
- export * from "./StorageBrowserPolicyFactory";
12
- export * from "./credentials/AnonymousCredential";
13
- export * from "./credentials/Credential";
14
- export { BlockBlobTier, PremiumPageBlobTier, } from "./models";
15
- export { Pipeline, isPipelineLike, newPipeline, StorageOAuthScopes, } from "./Pipeline";
16
- export { BaseRequestPolicy } from "./policies/RequestPolicy";
17
- export * from "./policies/AnonymousCredentialPolicy";
18
- export * from "./policies/CredentialPolicy";
19
- export * from "./StorageRetryPolicyFactory";
20
- export * from "./generatedModels";
21
- export { RestError };
22
- export { logger } from "./log";
23
- //# sourceMappingURL=index.browser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.browser.js","sourceRoot":"","sources":["../../../../storage-blob/src/index.browser.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AAGzC,OAAO,EACL,aAAa,EAEb,mBAAmB,GAOpB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,QAAQ,EAGR,cAAc,EACd,WAAW,EAUX,kBAAkB,GAEnB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAE5C,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,CAAC;AAMrB,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RestError } from \"@azure/core-rest-pipeline\";\n\nexport * from \"./BlobServiceClient\";\nexport * from \"./Clients\";\nexport * from \"./ContainerClient\";\nexport * from \"./BlobLeaseClient\";\nexport * from \"./BlobBatch\";\nexport * from \"./BlobBatchClient\";\nexport * from \"./BatchResponse\";\nexport * from \"./StorageBrowserPolicyFactory\";\nexport * from \"./credentials/AnonymousCredential\";\nexport * from \"./credentials/Credential\";\nexport { SasIPRange } from \"./sas/SasIPRange\";\nexport { Range } from \"./Range\";\nexport {\n BlockBlobTier,\n BlobImmutabilityPolicy,\n PremiumPageBlobTier,\n Tags,\n TagConditions,\n ContainerRequestConditions,\n HttpAuthorization,\n ModificationConditions,\n MatchConditions,\n} from \"./models\";\nexport {\n Pipeline,\n PipelineLike,\n PipelineOptions,\n isPipelineLike,\n newPipeline,\n StoragePipelineOptions,\n RequestPolicyFactory,\n RequestPolicy,\n RequestPolicyOptions,\n WebResource,\n HttpOperationResponse,\n HttpHeaders,\n HttpRequestBody,\n IHttpClient,\n StorageOAuthScopes,\n ServiceClientOptions,\n} from \"./Pipeline\";\nexport { BaseRequestPolicy } from \"./policies/RequestPolicy\";\nexport * from \"./policies/AnonymousCredentialPolicy\";\nexport * from \"./policies/CredentialPolicy\";\nexport * from \"./StorageRetryPolicyFactory\";\nexport { CommonOptions } from \"./StorageClient\";\nexport * from \"./generatedModels\";\nexport { RestError };\nexport {\n PageBlobGetPageRangesDiffResponse,\n PageBlobGetPageRangesResponse,\n PageList,\n} from \"./PageBlobRangeResponse\";\nexport { logger } from \"./log\";\n"]}
@@ -1,48 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- /**
4
- * Convert a Browser Blob object into ArrayBuffer.
5
- *
6
- * @param blob -
7
- */
8
- export async function blobToArrayBuffer(blob) {
9
- const fileReader = new FileReader();
10
- return new Promise((resolve, reject) => {
11
- fileReader.onloadend = (ev) => {
12
- resolve(ev.target.result);
13
- };
14
- fileReader.onerror = reject;
15
- fileReader.readAsArrayBuffer(blob);
16
- });
17
- }
18
- /**
19
- * Convert a Browser Blob object into string.
20
- *
21
- * @param blob -
22
- */
23
- export async function blobToString(blob) {
24
- const fileReader = new FileReader();
25
- return new Promise((resolve, reject) => {
26
- fileReader.onloadend = (ev) => {
27
- resolve(ev.target.result);
28
- };
29
- fileReader.onerror = reject;
30
- fileReader.readAsText(blob);
31
- });
32
- }
33
- export function streamToBuffer() {
34
- /* empty */
35
- }
36
- export function streamToBuffer2() {
37
- /* empty */
38
- }
39
- export function readStreamToLocalFile() {
40
- /* empty */
41
- }
42
- export const fsStat = function stat() {
43
- /* empty */
44
- };
45
- export const fsCreateReadStream = function createReadStream() {
46
- /* empty */
47
- };
48
- //# sourceMappingURL=utils.browser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.browser.js","sourceRoot":"","sources":["../../../../../storage-blob/src/utils/utils.browser.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,IAAU;IAChD,MAAM,UAAU,GAAG,IAAI,UAAU,EAAE,CAAC;IACpC,OAAO,IAAI,OAAO,CAAc,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAClD,UAAU,CAAC,SAAS,GAAG,CAAC,EAAO,EAAE,EAAE;YACjC,OAAO,CAAC,EAAE,CAAC,MAAO,CAAC,MAAM,CAAC,CAAC;QAC7B,CAAC,CAAC;QACF,UAAU,CAAC,OAAO,GAAG,MAAM,CAAC;QAC5B,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,IAAU;IAC3C,MAAM,UAAU,GAAG,IAAI,UAAU,EAAE,CAAC;IACpC,OAAO,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC7C,UAAU,CAAC,SAAS,GAAG,CAAC,EAAO,EAAE,EAAE;YACjC,OAAO,CAAC,EAAE,CAAC,MAAO,CAAC,MAAM,CAAC,CAAC;QAC7B,CAAC,CAAC;QACF,UAAU,CAAC,OAAO,GAAG,MAAM,CAAC;QAC5B,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,WAAW;AACb,CAAC;AAED,MAAM,UAAU,eAAe;IAC7B,WAAW;AACb,CAAC;AAED,MAAM,UAAU,qBAAqB;IACnC,WAAW;AACb,CAAC;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,SAAS,IAAI;IACjC,WAAW;AACb,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,SAAS,gBAAgB;IACzD,WAAW;AACb,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * Convert a Browser Blob object into ArrayBuffer.\n *\n * @param blob -\n */\nexport async function blobToArrayBuffer(blob: Blob): Promise<ArrayBuffer> {\n const fileReader = new FileReader();\n return new Promise<ArrayBuffer>((resolve, reject) => {\n fileReader.onloadend = (ev: any) => {\n resolve(ev.target!.result);\n };\n fileReader.onerror = reject;\n fileReader.readAsArrayBuffer(blob);\n });\n}\n\n/**\n * Convert a Browser Blob object into string.\n *\n * @param blob -\n */\nexport async function blobToString(blob: Blob): Promise<string> {\n const fileReader = new FileReader();\n return new Promise<string>((resolve, reject) => {\n fileReader.onloadend = (ev: any) => {\n resolve(ev.target!.result);\n };\n fileReader.onerror = reject;\n fileReader.readAsText(blob);\n });\n}\n\nexport function streamToBuffer(): void {\n /* empty */\n}\n\nexport function streamToBuffer2(): void {\n /* empty */\n}\n\nexport function readStreamToLocalFile(): void {\n /* empty */\n}\n\nexport const fsStat = function stat(): void {\n /* empty */\n};\n\nexport const fsCreateReadStream = function createReadStream(): void {\n /* empty */\n};\n"]}