@azure/storage-queue 12.22.0-alpha.20240527.1 → 12.22.0-alpha.20240529.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +106 -171
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-blob/src/Pipeline.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/index.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/mappers.js +2356 -2356
- package/dist-esm/storage-blob/src/generated/src/models/mappers.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/parameters.js +444 -444
- package/dist-esm/storage-blob/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/appendBlob.js +20 -20
- package/dist-esm/storage-blob/src/generated/src/operations/appendBlob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/blob.js +134 -134
- package/dist-esm/storage-blob/src/generated/src/operations/blob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/blockBlob.js +33 -33
- package/dist-esm/storage-blob/src/generated/src/operations/blockBlob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/container.js +107 -107
- package/dist-esm/storage-blob/src/generated/src/operations/container.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/pageBlob.js +47 -47
- package/dist-esm/storage-blob/src/generated/src/operations/pageBlob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/service.js +46 -46
- package/dist-esm/storage-blob/src/generated/src/operations/service.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/appendBlob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/blob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/blockBlob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/container.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/pageBlob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/service.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/storageClient.js +4 -4
- package/dist-esm/storage-blob/src/generated/src/storageClient.js.map +1 -1
- package/dist-esm/storage-blob/src/generatedModels.js.map +1 -1
- package/dist-esm/storage-blob/src/index.js +1 -1
- package/dist-esm/storage-blob/src/index.js.map +1 -1
- package/dist-esm/storage-blob/src/models.js +7 -0
- package/dist-esm/storage-blob/src/models.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/constants.js +1 -1
- package/dist-esm/storage-blob/src/utils/constants.js.map +1 -1
- package/dist-esm/storage-queue/src/Pipeline.js +259 -0
- package/dist-esm/storage-queue/src/Pipeline.js.map +1 -0
- package/dist-esm/storage-queue/src/QueueClient.js +2 -2
- package/dist-esm/storage-queue/src/QueueClient.js.map +1 -1
- package/dist-esm/storage-queue/src/QueueServiceClient.js +2 -2
- package/dist-esm/storage-queue/src/QueueServiceClient.js.map +1 -1
- package/dist-esm/storage-queue/src/StorageClient.js +1 -1
- package/dist-esm/storage-queue/src/StorageClient.js.map +1 -1
- package/dist-esm/storage-queue/src/generated/src/models/parameters.js +1 -1
- package/dist-esm/storage-queue/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/storage-queue/src/generated/src/storageClient.js +1 -1
- package/dist-esm/storage-queue/src/generated/src/storageClient.js.map +1 -1
- package/dist-esm/storage-queue/src/index.browser.js +1 -1
- package/dist-esm/storage-queue/src/index.browser.js.map +1 -1
- package/dist-esm/storage-queue/src/index.js +2 -1
- package/dist-esm/storage-queue/src/index.js.map +1 -1
- package/dist-esm/storage-queue/src/models.js +16 -1
- package/dist-esm/storage-queue/src/models.js.map +1 -1
- package/dist-esm/storage-queue/src/utils/constants.js +1 -1
- package/dist-esm/storage-queue/src/utils/constants.js.map +1 -1
- package/package.json +3 -2
- package/types/latest/storage-queue.d.ts +17 -1
- package/dist-esm/storage-blob/src/BatchUtils.browser.js +0 -11
- package/dist-esm/storage-blob/src/BatchUtils.browser.js.map +0 -1
- package/dist-esm/storage-blob/src/BlobDownloadResponse.browser.js +0 -7
- package/dist-esm/storage-blob/src/BlobDownloadResponse.browser.js.map +0 -1
- package/dist-esm/storage-blob/src/BlobQueryResponse.browser.js +0 -362
- package/dist-esm/storage-blob/src/BlobQueryResponse.browser.js.map +0 -1
- package/dist-esm/storage-blob/src/index.browser.js +0 -23
- package/dist-esm/storage-blob/src/index.browser.js.map +0 -1
- package/dist-esm/storage-blob/src/utils/utils.browser.js +0 -48
- package/dist-esm/storage-blob/src/utils/utils.browser.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageClient.js","sourceRoot":"","sources":["../../../../../src/generated/src/storageClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,WAAW,EACX,SAAS,EACT,YAAY,EACZ,aAAa,EACd,MAAM,cAAc,CAAC;AAItB,MAAM,OAAO,aAAc,SAAQ,cAAc,CAAC,qBAAqB;IAIrE;;;;;OAKG;IACH,YAAY,GAAW,EAAE,OAAqC;;QAC5D,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC1C,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAgC;YAC5C,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,6CAA6C,CAAC;QACrE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,QAAQ,EAAE,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,OAAO,GACzD,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QAEf,0CAA0C;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,YAAY,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;CAMF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttpCompat from \"@azure/core-http-compat\";\nimport {\n ServiceImpl,\n QueueImpl,\n MessagesImpl,\n MessageIdImpl\n} from \"./operations\";\nimport { Service, Queue, Messages, MessageId } from \"./operationsInterfaces\";\nimport { StorageClientOptionalParams } from \"./models\";\n\nexport class StorageClient extends coreHttpCompat.ExtendedServiceClient {\n url: string;\n version: string;\n\n /**\n * Initializes a new instance of the StorageClient class.\n * @param url The URL of the service account, queue or message that is the target of the desired\n * operation.\n * @param options The parameter options\n */\n constructor(url: string, options?: StorageClientOptionalParams) {\n if (url === undefined) {\n throw new Error(\"'url' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: StorageClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-azure-storage-queue/12.22.0-beta.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"{url}\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.url = url;\n\n // Assigning values to Constant parameters\n this.version = options.version || \"2023-
|
|
1
|
+
{"version":3,"file":"storageClient.js","sourceRoot":"","sources":["../../../../../src/generated/src/storageClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,WAAW,EACX,SAAS,EACT,YAAY,EACZ,aAAa,EACd,MAAM,cAAc,CAAC;AAItB,MAAM,OAAO,aAAc,SAAQ,cAAc,CAAC,qBAAqB;IAIrE;;;;;OAKG;IACH,YAAY,GAAW,EAAE,OAAqC;;QAC5D,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC1C,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAgC;YAC5C,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,6CAA6C,CAAC;QACrE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,QAAQ,EAAE,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,OAAO,GACzD,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QAEf,0CAA0C;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,YAAY,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,KAAK,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;CAMF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttpCompat from \"@azure/core-http-compat\";\nimport {\n ServiceImpl,\n QueueImpl,\n MessagesImpl,\n MessageIdImpl\n} from \"./operations\";\nimport { Service, Queue, Messages, MessageId } from \"./operationsInterfaces\";\nimport { StorageClientOptionalParams } from \"./models\";\n\nexport class StorageClient extends coreHttpCompat.ExtendedServiceClient {\n url: string;\n version: string;\n\n /**\n * Initializes a new instance of the StorageClient class.\n * @param url The URL of the service account, queue or message that is the target of the desired\n * operation.\n * @param options The parameter options\n */\n constructor(url: string, options?: StorageClientOptionalParams) {\n if (url === undefined) {\n throw new Error(\"'url' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: StorageClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-azure-storage-queue/12.22.0-beta.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"{url}\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.url = url;\n\n // Assigning values to Constant parameters\n this.version = options.version || \"2023-11-03\";\n this.service = new ServiceImpl(this);\n this.queue = new QueueImpl(this);\n this.messages = new MessagesImpl(this);\n this.messageId = new MessageIdImpl(this);\n }\n\n service: Service;\n queue: Queue;\n messages: Messages;\n messageId: MessageId;\n}\n"]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { RestError } from "@azure/core-rest-pipeline";
|
|
4
4
|
export * from "../../storage-blob/src/credentials/AnonymousCredential";
|
|
5
5
|
export * from "../../storage-blob/src/credentials/Credential";
|
|
6
|
-
export { Pipeline, isPipelineLike, newPipeline, } from "
|
|
6
|
+
export { Pipeline, isPipelineLike, newPipeline, } from "./Pipeline";
|
|
7
7
|
export { BaseRequestPolicy } from "../../storage-blob/src/policies/RequestPolicy";
|
|
8
8
|
export * from "../../storage-blob/src/policies/AnonymousCredentialPolicy";
|
|
9
9
|
export * from "../../storage-blob/src/policies/CredentialPolicy";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.browser.js","sourceRoot":"","sources":["../../../src/index.browser.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,cAAc,wDAAwD,CAAC;AACvE,cAAc,+CAA+C,CAAC;AAE9D,OAAO,EACL,QAAQ,EAGR,cAAc,EACd,WAAW,GAGZ,MAAM,
|
|
1
|
+
{"version":3,"file":"index.browser.js","sourceRoot":"","sources":["../../../src/index.browser.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,cAAc,wDAAwD,CAAC;AACvE,cAAc,+CAA+C,CAAC;AAE9D,OAAO,EACL,QAAQ,EAGR,cAAc,EACd,WAAW,GAGZ,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAClF,cAAc,2DAA2D,CAAC;AAC1E,cAAc,kDAAkD,CAAC;AACjE,cAAc,kDAAkD,CAAC;AACjE,cAAc,oDAAoD,CAAC;AAEnE,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AAErC,cAAc,mBAAmB,CAAC;AAQlC,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,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 \"../../storage-blob/src/credentials/AnonymousCredential\";\nexport * from \"../../storage-blob/src/credentials/Credential\";\nexport { SasIPRange } from \"./SasIPRange\";\nexport {\n Pipeline,\n PipelineLike,\n PipelineOptions,\n isPipelineLike,\n newPipeline,\n StoragePipelineOptions,\n ServiceClientOptions,\n} from \"./Pipeline\";\nexport { BaseRequestPolicy } from \"../../storage-blob/src/policies/RequestPolicy\";\nexport * from \"../../storage-blob/src/policies/AnonymousCredentialPolicy\";\nexport * from \"../../storage-blob/src/policies/CredentialPolicy\";\nexport * from \"../../storage-blob/src/StorageRetryPolicyFactory\";\nexport * from \"../../storage-blob/src/StorageBrowserPolicyFactory\";\nexport { Metadata } from \"./models\";\nexport * from \"./QueueClient\";\nexport * from \"./QueueSASPermissions\";\nexport * from \"./QueueServiceClient\";\nexport { CommonOptions } from \"./StorageClient\";\nexport * from \"./generatedModels\";\nexport {\n WithResponse,\n ResponseLike,\n ResponseWithBody,\n ResponseWithHeaders,\n HttpResponse,\n} from \"./utils/utils.common\";\nexport { RestError };\nexport { logger } from \"./log\";\n"]}
|
|
@@ -9,12 +9,13 @@ export * from "../../storage-blob/src/credentials/AnonymousCredential";
|
|
|
9
9
|
export * from "../../storage-blob/src/credentials/Credential";
|
|
10
10
|
export * from "../../storage-blob/src/credentials/StorageSharedKeyCredential";
|
|
11
11
|
export { BaseRequestPolicy } from "../../storage-blob/src/policies/RequestPolicy";
|
|
12
|
-
export { Pipeline, isPipelineLike, newPipeline, StorageOAuthScopes, } from "
|
|
12
|
+
export { Pipeline, isPipelineLike, newPipeline, StorageOAuthScopes, } from "./Pipeline";
|
|
13
13
|
export * from "../../storage-blob/src/policies/AnonymousCredentialPolicy";
|
|
14
14
|
export * from "../../storage-blob/src/policies/CredentialPolicy";
|
|
15
15
|
export * from "../../storage-blob/src/StorageRetryPolicyFactory";
|
|
16
16
|
export * from "../../storage-blob/src/policies/StorageSharedKeyCredentialPolicy";
|
|
17
17
|
export * from "../../storage-blob/src/StorageBrowserPolicyFactory";
|
|
18
|
+
export { StorageQueueAudience, getQueueServiceAccountAudience } from "./models";
|
|
18
19
|
export * from "./QueueClient";
|
|
19
20
|
export * from "./QueueSASPermissions";
|
|
20
21
|
export * from "./QueueSASSignatureValues";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wDAAwD,CAAC;AACvE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,+DAA+D,CAAC;AAE9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,EACL,QAAQ,EAGR,cAAc,EACd,WAAW,EAUX,kBAAkB,GAEnB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wDAAwD,CAAC;AACvE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,+DAA+D,CAAC;AAE9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,EACL,QAAQ,EAGR,cAAc,EACd,WAAW,EAUX,kBAAkB,GAEnB,MAAM,YAAY,CAAC;AACpB,cAAc,2DAA2D,CAAC;AAC1E,cAAc,kDAAkD,CAAC;AACjE,cAAc,kDAAkD,CAAC;AACjE,cAAc,kEAAkE,CAAC;AACjF,cAAc,oDAAoD,CAAC;AACnE,OAAO,EAAY,oBAAoB,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAC;AAC1F,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AAErC,cAAc,mBAAmB,CAAC;AAQlC,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,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 \"./AccountSASPermissions\";\nexport * from \"./AccountSASResourceTypes\";\nexport * from \"./AccountSASServices\";\nexport * from \"./AccountSASSignatureValues\";\nexport * from \"../../storage-blob/src/credentials/AnonymousCredential\";\nexport * from \"../../storage-blob/src/credentials/Credential\";\nexport * from \"../../storage-blob/src/credentials/StorageSharedKeyCredential\";\nexport { SasIPRange } from \"./SasIPRange\";\nexport { BaseRequestPolicy } from \"../../storage-blob/src/policies/RequestPolicy\";\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 * from \"../../storage-blob/src/policies/AnonymousCredentialPolicy\";\nexport * from \"../../storage-blob/src/policies/CredentialPolicy\";\nexport * from \"../../storage-blob/src/StorageRetryPolicyFactory\";\nexport * from \"../../storage-blob/src/policies/StorageSharedKeyCredentialPolicy\";\nexport * from \"../../storage-blob/src/StorageBrowserPolicyFactory\";\nexport { Metadata, StorageQueueAudience, getQueueServiceAccountAudience } from \"./models\";\nexport * from \"./QueueClient\";\nexport * from \"./QueueSASPermissions\";\nexport * from \"./QueueSASSignatureValues\";\nexport * from \"./QueueServiceClient\";\nexport * from \"./SASQueryParameters\";\nexport { CommonOptions, ListQueuesIncludeType } from \"./StorageClient\";\nexport * from \"./generatedModels\";\nexport {\n WithResponse,\n ResponseLike,\n ResponseWithBody,\n ResponseWithHeaders,\n HttpResponse,\n} from \"./utils/utils.common\";\nexport { RestError };\nexport { logger } from \"./log\";\n"]}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT license.
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Defines the known cloud audiences for Storage.
|
|
5
|
+
*/
|
|
6
|
+
export var StorageQueueAudience;
|
|
7
|
+
(function (StorageQueueAudience) {
|
|
8
|
+
/**
|
|
9
|
+
* The OAuth scope to use to retrieve an AAD token for Azure Storage.
|
|
10
|
+
*/
|
|
11
|
+
StorageQueueAudience["StorageOAuthScopes"] = "https://storage.azure.com/.default";
|
|
12
|
+
})(StorageQueueAudience || (StorageQueueAudience = {}));
|
|
13
|
+
/**
|
|
14
|
+
* To get OAuth audience for a storage account for queue service.
|
|
15
|
+
*/
|
|
16
|
+
export function getQueueServiceAccountAudience(storageAccountName) {
|
|
17
|
+
return `https://${storageAccountName}.queue.core.windows.net/.default`;
|
|
18
|
+
}
|
|
4
19
|
//# sourceMappingURL=models.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * A collection of key-value string pairs.\n */\nexport interface Metadata {\n /**\n * A key-value string pair.\n */\n [propertyName: string]: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAYlC;;GAEG;AACH,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B;;OAEG;IACH,iFAAyD,CAAA;AAC3D,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B;AAED;;GAEG;AACH,MAAM,UAAU,8BAA8B,CAAC,kBAA0B;IACvE,OAAO,WAAW,kBAAkB,kCAAkC,CAAC;AACzE,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * A collection of key-value string pairs.\n */\nexport interface Metadata {\n /**\n * A key-value string pair.\n */\n [propertyName: string]: string;\n}\n\n/**\n * Defines the known cloud audiences for Storage.\n */\nexport enum StorageQueueAudience {\n /**\n * The OAuth scope to use to retrieve an AAD token for Azure Storage.\n */\n StorageOAuthScopes = \"https://storage.azure.com/.default\",\n}\n\n/**\n * To get OAuth audience for a storage account for queue service.\n */\nexport function getQueueServiceAccountAudience(storageAccountName: string): string {\n return `https://${storageAccountName}.queue.core.windows.net/.default`;\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT license.
|
|
3
3
|
export const SDK_VERSION = "12.22.0-beta.2";
|
|
4
|
-
export const SERVICE_VERSION = "
|
|
4
|
+
export const SERVICE_VERSION = "2023-11-03";
|
|
5
5
|
/**
|
|
6
6
|
* The OAuth scope to use with Azure Storage.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,CAAC,MAAM,WAAW,GAAW,gBAAgB,CAAC;AACpD,MAAM,CAAC,MAAM,eAAe,GAAW,YAAY,CAAC;AAEpD;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAsB,oCAAoC,CAAC;AAE1F,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,UAAU,EAAE;QACV,sBAAsB,EAAE,GAAG;QAC3B,SAAS,EAAE,KAAK;QAChB,OAAO,EAAE,SAAS;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,aAAa,EAAE,GAAG;IAClB,cAAc,EAAE,GAAG;IACnB,kBAAkB,EAAE,GAAG;IACvB,0BAA0B,EAAE,GAAG;CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,aAAa,EAAE,eAAe;IAC9B,oBAAoB,EAAE,QAAQ;IAC9B,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,cAAc,EAAE,gBAAgB;IAChC,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,iBAAiB,EAAE,mBAAmB;IACtC,aAAa,EAAE,eAAe;IAC9B,mBAAmB,EAAE,qBAAqB;IAC1C,kBAAkB,EAAE,OAAO;IAC3B,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,YAAY;IACxB,sBAAsB,EAAE,wBAAwB;IAChD,gBAAgB,EAAE,kBAAkB;IACpC,SAAS,EAAE,WAAW;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,EAAE,CAAC;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAC;AAE3B,MAAM,CAAC,MAAM,2BAA2B,GAAG;;yDAEc,CAAC;AAE1D,MAAM,CAAC,MAAM,qCAAqC,GAAG;IACnD,6BAA6B;IAC7B,eAAe;IACf,gBAAgB;IAChB,cAAc;IACd,MAAM;IACN,YAAY;IACZ,aAAa;IACb,mBAAmB;IACnB,YAAY;IACZ,wBAAwB;IACxB,WAAW;IACX,iBAAiB;IACjB,iBAAiB;IACjB,+BAA+B;IAC/B,cAAc;IACd,iCAAiC;IACjC,iBAAiB;IACjB,wBAAwB;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,yCAAyC,GAAG;IACvD,MAAM;IACN,YAAY;IACZ,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,YAAY;IACZ,eAAe;IACf,UAAU;IACV,YAAY;IACZ,mBAAmB;CACpB,CAAC;AAEF,iDAAiD;AACjD,wGAAwG;AACxG,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;CACR,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport const SDK_VERSION: string = \"12.22.0-beta.2\";\nexport const SERVICE_VERSION: string = \"
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,CAAC,MAAM,WAAW,GAAW,gBAAgB,CAAC;AACpD,MAAM,CAAC,MAAM,eAAe,GAAW,YAAY,CAAC;AAEpD;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAsB,oCAAoC,CAAC;AAE1F,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,UAAU,EAAE;QACV,sBAAsB,EAAE,GAAG;QAC3B,SAAS,EAAE,KAAK;QAChB,OAAO,EAAE,SAAS;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,aAAa,EAAE,GAAG;IAClB,cAAc,EAAE,GAAG;IACnB,kBAAkB,EAAE,GAAG;IACvB,0BAA0B,EAAE,GAAG;CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,aAAa,EAAE,eAAe;IAC9B,oBAAoB,EAAE,QAAQ;IAC9B,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,cAAc,EAAE,gBAAgB;IAChC,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,iBAAiB,EAAE,mBAAmB;IACtC,aAAa,EAAE,eAAe;IAC9B,mBAAmB,EAAE,qBAAqB;IAC1C,kBAAkB,EAAE,OAAO;IAC3B,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,YAAY;IACxB,sBAAsB,EAAE,wBAAwB;IAChD,gBAAgB,EAAE,kBAAkB;IACpC,SAAS,EAAE,WAAW;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,EAAE,CAAC;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAC;AAE3B,MAAM,CAAC,MAAM,2BAA2B,GAAG;;yDAEc,CAAC;AAE1D,MAAM,CAAC,MAAM,qCAAqC,GAAG;IACnD,6BAA6B;IAC7B,eAAe;IACf,gBAAgB;IAChB,cAAc;IACd,MAAM;IACN,YAAY;IACZ,aAAa;IACb,mBAAmB;IACnB,YAAY;IACZ,wBAAwB;IACxB,WAAW;IACX,iBAAiB;IACjB,iBAAiB;IACjB,+BAA+B;IAC/B,cAAc;IACd,iCAAiC;IACjC,iBAAiB;IACjB,wBAAwB;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,yCAAyC,GAAG;IACvD,MAAM;IACN,YAAY;IACZ,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,YAAY;IACZ,eAAe;IACf,UAAU;IACV,YAAY;IACZ,mBAAmB;CACpB,CAAC;AAEF,iDAAiD;AACjD,wGAAwG;AACxG,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;CACR,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport const SDK_VERSION: string = \"12.22.0-beta.2\";\nexport const SERVICE_VERSION: string = \"2023-11-03\";\n\n/**\n * The OAuth scope to use with Azure Storage.\n */\nexport const StorageOAuthScopes: string | string[] = \"https://storage.azure.com/.default\";\n\nexport const URLConstants = {\n Parameters: {\n FORCE_BROWSER_NO_CACHE: \"_\",\n SIGNATURE: \"sig\",\n TIMEOUT: \"timeout\",\n },\n};\n\nexport const HttpUrlConnection = {\n HTTP_CONFLICT: 409,\n HTTP_NOT_FOUND: 404,\n HTTP_PRECON_FAILED: 412,\n HTTP_RANGE_NOT_SATISFIABLE: 416,\n};\n\nexport const HeaderConstants = {\n AUTHORIZATION: \"authorization\",\n AUTHORIZATION_SCHEME: \"Bearer\",\n CONTENT_ENCODING: \"content-encoding\",\n CONTENT_LANGUAGE: \"content-language\",\n CONTENT_LENGTH: \"content-length\",\n CONTENT_MD5: \"content-md5\",\n CONTENT_TYPE: \"content-type\",\n COOKIE: \"Cookie\",\n DATE: \"date\",\n IF_MATCH: \"if-match\",\n IF_MODIFIED_SINCE: \"if-modified-since\",\n IF_NONE_MATCH: \"if-none-match\",\n IF_UNMODIFIED_SINCE: \"if-unmodified-since\",\n PREFIX_FOR_STORAGE: \"x-ms-\",\n RANGE: \"Range\",\n USER_AGENT: \"User-Agent\",\n X_MS_CLIENT_REQUEST_ID: \"x-ms-client-request-id\",\n X_MS_COPY_SOURCE: \"x-ms-copy-source\",\n X_MS_DATE: \"x-ms-date\",\n};\n\nexport const ETagNone = \"\";\nexport const ETagAny = \"*\";\n\nexport const DevelopmentConnectionString = `DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;\n AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;\n QueueEndpoint=http://127.0.0.1:10001/devstoreaccount1;`;\n\nexport const StorageQueueLoggingAllowedHeaderNames = [\n \"Access-Control-Allow-Origin\",\n \"Cache-Control\",\n \"Content-Length\",\n \"Content-Type\",\n \"Date\",\n \"Request-Id\",\n \"traceparent\",\n \"Transfer-Encoding\",\n \"User-Agent\",\n \"x-ms-client-request-id\",\n \"x-ms-date\",\n \"x-ms-error-code\",\n \"x-ms-request-id\",\n \"x-ms-return-client-request-id\",\n \"x-ms-version\",\n \"x-ms-approximate-messages-count\",\n \"x-ms-popreceipt\",\n \"x-ms-time-next-visible\",\n];\n\nexport const StorageQueueLoggingAllowedQueryParameters = [\n \"comp\",\n \"maxresults\",\n \"rscc\",\n \"rscd\",\n \"rsce\",\n \"rscl\",\n \"rsct\",\n \"se\",\n \"si\",\n \"sip\",\n \"sp\",\n \"spr\",\n \"sr\",\n \"srt\",\n \"ss\",\n \"st\",\n \"sv\",\n \"include\",\n \"marker\",\n \"prefix\",\n \"messagettl\",\n \"numofmessages\",\n \"peekonly\",\n \"popreceipt\",\n \"visibilitytimeout\",\n];\n\n/// List of ports used for path style addressing.\n/// Path style addressing means that storage account is put in URI's Path segment in instead of in host.\nexport const PathStylePorts = [\n \"10000\",\n \"10001\",\n \"10002\",\n \"10003\",\n \"10004\",\n \"10100\",\n \"10101\",\n \"10102\",\n \"10103\",\n \"10104\",\n \"11000\",\n \"11001\",\n \"11002\",\n \"11003\",\n \"11004\",\n \"11100\",\n \"11101\",\n \"11102\",\n \"11103\",\n \"11104\",\n];\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/storage-queue",
|
|
3
3
|
"sdk-type": "client",
|
|
4
|
-
"version": "12.22.0-alpha.
|
|
4
|
+
"version": "12.22.0-alpha.20240529.1",
|
|
5
5
|
"description": "Microsoft Azure Storage SDK for JavaScript - Queue",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist-esm/storage-queue/src/index.js",
|
|
@@ -126,7 +126,8 @@
|
|
|
126
126
|
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
|
|
127
127
|
"@azure/identity": "^4.0.1",
|
|
128
128
|
"@azure/storage-blob": "^12.23.0-beta.1",
|
|
129
|
-
"@azure-tools/test-utils": "
|
|
129
|
+
"@azure-tools/test-utils": "^1.0.0",
|
|
130
|
+
"@azure-tools/test-credential": "^1.0.0",
|
|
130
131
|
"@azure-tools/test-recorder": "^3.0.0",
|
|
131
132
|
"@microsoft/api-extractor": "^7.31.1",
|
|
132
133
|
"@types/chai": "^4.1.6",
|
|
@@ -430,6 +430,11 @@ export declare interface GeoReplication {
|
|
|
430
430
|
/** Defines values for GeoReplicationStatusType. */
|
|
431
431
|
export declare type GeoReplicationStatusType = "live" | "bootstrap" | "unavailable";
|
|
432
432
|
|
|
433
|
+
/**
|
|
434
|
+
* To get OAuth audience for a storage account for queue service.
|
|
435
|
+
*/
|
|
436
|
+
export declare function getQueueServiceAccountAudience(storageAccountName: string): string;
|
|
437
|
+
|
|
433
438
|
export { HttpHeaders }
|
|
434
439
|
|
|
435
440
|
export { HttpOperationResponse }
|
|
@@ -2599,8 +2604,19 @@ export declare interface StoragePipelineOptions {
|
|
|
2599
2604
|
httpClient?: RequestPolicy;
|
|
2600
2605
|
/**
|
|
2601
2606
|
* The audience used to retrieve an AAD token.
|
|
2607
|
+
* By default, audience 'https://storage.azure.com/.default' will be used.
|
|
2608
|
+
*/
|
|
2609
|
+
audience?: string;
|
|
2610
|
+
}
|
|
2611
|
+
|
|
2612
|
+
/**
|
|
2613
|
+
* Defines the known cloud audiences for Storage.
|
|
2614
|
+
*/
|
|
2615
|
+
export declare enum StorageQueueAudience {
|
|
2616
|
+
/**
|
|
2617
|
+
* The OAuth scope to use to retrieve an AAD token for Azure Storage.
|
|
2602
2618
|
*/
|
|
2603
|
-
|
|
2619
|
+
StorageOAuthScopes = "https://storage.azure.com/.default"
|
|
2604
2620
|
}
|
|
2605
2621
|
|
|
2606
2622
|
/**
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT license.
|
|
3
|
-
import { blobToString } from "./utils/utils.browser";
|
|
4
|
-
export async function getBodyAsText(batchResponse) {
|
|
5
|
-
const blob = (await batchResponse.blobBody);
|
|
6
|
-
return blobToString(blob);
|
|
7
|
-
}
|
|
8
|
-
export function utf8ByteLength(str) {
|
|
9
|
-
return new Blob([str]).size;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=BatchUtils.browser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BatchUtils.browser.js","sourceRoot":"","sources":["../../../../storage-blob/src/BatchUtils.browser.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,aAA8C;IAE9C,MAAM,IAAI,GAAG,CAAC,MAAM,aAAa,CAAC,QAAQ,CAAS,CAAC;IACpD,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,GAAW;IACxC,OAAO,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;AAC9B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { ServiceSubmitBatchResponseModel } from \"./generatedModels\";\nimport { blobToString } from \"./utils/utils.browser\";\n\nexport async function getBodyAsText(\n batchResponse: ServiceSubmitBatchResponseModel,\n): Promise<string> {\n const blob = (await batchResponse.blobBody) as Blob;\n return blobToString(blob);\n}\n\nexport function utf8ByteLength(str: string): number {\n return new Blob([str]).size;\n}\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT license.
|
|
3
|
-
// This file is used as a shim of "BlobDownloadResponse" for some browser bundlers
|
|
4
|
-
// when trying to bundle "BlobDownloadResponse"
|
|
5
|
-
// "BlobDownloadResponse" class is only available in Node.js runtime
|
|
6
|
-
export const BlobDownloadResponse = 1;
|
|
7
|
-
//# sourceMappingURL=BlobDownloadResponse.browser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlobDownloadResponse.browser.js","sourceRoot":"","sources":["../../../../storage-blob/src/BlobDownloadResponse.browser.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,kFAAkF;AAClF,+CAA+C;AAC/C,oEAAoE;AACpE,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n// This file is used as a shim of \"BlobDownloadResponse\" for some browser bundlers\n// when trying to bundle \"BlobDownloadResponse\"\n// \"BlobDownloadResponse\" class is only available in Node.js runtime\nexport const BlobDownloadResponse = 1;\n"]}
|
|
@@ -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":"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","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
|