@azure/storage-queue 12.27.0-beta.1 → 12.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/README.md +1 -1
  2. package/dist/browser/AccountSASPermissions.d.ts +1 -1
  3. package/dist/browser/AccountSASPermissions.js +34 -36
  4. package/dist/browser/AccountSASPermissions.js.map +1 -1
  5. package/dist/browser/AccountSASResourceTypes.d.ts +1 -1
  6. package/dist/browser/AccountSASResourceTypes.js +13 -15
  7. package/dist/browser/AccountSASResourceTypes.js.map +1 -1
  8. package/dist/browser/AccountSASServices.js +16 -18
  9. package/dist/browser/AccountSASServices.js.map +1 -1
  10. package/dist/browser/AccountSASSignatureValues.d.ts +4 -4
  11. package/dist/browser/AccountSASSignatureValues.d.ts.map +1 -1
  12. package/dist/browser/AccountSASSignatureValues.js +1 -1
  13. package/dist/browser/AccountSASSignatureValues.js.map +1 -1
  14. package/dist/browser/Pipeline.d.ts +2 -3
  15. package/dist/browser/Pipeline.d.ts.map +1 -1
  16. package/dist/browser/Pipeline.js +28 -19
  17. package/dist/browser/Pipeline.js.map +1 -1
  18. package/dist/browser/QueueClient.d.ts +23 -23
  19. package/dist/browser/QueueClient.d.ts.map +1 -1
  20. package/dist/browser/QueueClient.js +68 -31
  21. package/dist/browser/QueueClient.js.map +1 -1
  22. package/dist/browser/QueueSASPermissions.js +16 -18
  23. package/dist/browser/QueueSASPermissions.js.map +1 -1
  24. package/dist/browser/QueueSASSignatureValues.d.ts +2 -2
  25. package/dist/browser/QueueSASSignatureValues.d.ts.map +1 -1
  26. package/dist/browser/QueueSASSignatureValues.js.map +1 -1
  27. package/dist/browser/QueueServiceClient.d.ts +10 -10
  28. package/dist/browser/QueueServiceClient.d.ts.map +1 -1
  29. package/dist/browser/QueueServiceClient.js +58 -54
  30. package/dist/browser/QueueServiceClient.js.map +1 -1
  31. package/dist/browser/SASQueryParameters.d.ts +1 -1
  32. package/dist/browser/SASQueryParameters.js +49 -0
  33. package/dist/browser/SASQueryParameters.js.map +1 -1
  34. package/dist/browser/StorageClient.d.ts +2 -2
  35. package/dist/browser/StorageClient.d.ts.map +1 -1
  36. package/dist/browser/StorageClient.js +24 -1
  37. package/dist/browser/StorageClient.js.map +1 -1
  38. package/dist/browser/StorageContextClient.js +1 -1
  39. package/dist/browser/StorageContextClient.js.map +1 -1
  40. package/dist/browser/generated/src/operations/messageId.js +1 -0
  41. package/dist/browser/generated/src/operations/messageId.js.map +1 -1
  42. package/dist/browser/generated/src/operations/messages.js +1 -0
  43. package/dist/browser/generated/src/operations/messages.js.map +1 -1
  44. package/dist/browser/generated/src/operations/queue.js +1 -0
  45. package/dist/browser/generated/src/operations/queue.js.map +1 -1
  46. package/dist/browser/generated/src/operations/service.js +1 -0
  47. package/dist/browser/generated/src/operations/service.js.map +1 -1
  48. package/dist/browser/generated/src/storageClient.js +14 -4
  49. package/dist/browser/generated/src/storageClient.js.map +1 -1
  50. package/dist/browser/index-browser.d.mts.map +1 -1
  51. package/dist/browser/index-browser.mjs.map +1 -1
  52. package/dist/browser/index.d.ts +1 -7
  53. package/dist/browser/index.js +1 -7
  54. package/dist/browser/utils/constants.d.ts.map +1 -1
  55. package/dist/browser/utils/constants.js +1 -1
  56. package/dist/browser/utils/constants.js.map +1 -1
  57. package/dist/browser/utils/utils.common.js +2 -3
  58. package/dist/browser/utils/utils.common.js.map +1 -1
  59. package/dist/commonjs/AccountSASPermissions.d.ts +1 -1
  60. package/dist/commonjs/AccountSASPermissions.js +34 -36
  61. package/dist/commonjs/AccountSASPermissions.js.map +1 -1
  62. package/dist/commonjs/AccountSASResourceTypes.d.ts +1 -1
  63. package/dist/commonjs/AccountSASResourceTypes.js +13 -15
  64. package/dist/commonjs/AccountSASResourceTypes.js.map +1 -1
  65. package/dist/commonjs/AccountSASServices.js +16 -18
  66. package/dist/commonjs/AccountSASServices.js.map +1 -1
  67. package/dist/commonjs/AccountSASSignatureValues.d.ts +4 -4
  68. package/dist/commonjs/AccountSASSignatureValues.d.ts.map +1 -1
  69. package/dist/commonjs/AccountSASSignatureValues.js +1 -1
  70. package/dist/commonjs/AccountSASSignatureValues.js.map +1 -1
  71. package/dist/commonjs/Pipeline.d.ts +2 -3
  72. package/dist/commonjs/Pipeline.d.ts.map +1 -1
  73. package/dist/commonjs/Pipeline.js +39 -30
  74. package/dist/commonjs/Pipeline.js.map +1 -1
  75. package/dist/commonjs/QueueClient.d.ts +23 -23
  76. package/dist/commonjs/QueueClient.d.ts.map +1 -1
  77. package/dist/commonjs/QueueClient.js +75 -38
  78. package/dist/commonjs/QueueClient.js.map +1 -1
  79. package/dist/commonjs/QueueSASPermissions.js +16 -18
  80. package/dist/commonjs/QueueSASPermissions.js.map +1 -1
  81. package/dist/commonjs/QueueSASSignatureValues.d.ts +2 -2
  82. package/dist/commonjs/QueueSASSignatureValues.d.ts.map +1 -1
  83. package/dist/commonjs/QueueSASSignatureValues.js.map +1 -1
  84. package/dist/commonjs/QueueServiceClient.d.ts +10 -10
  85. package/dist/commonjs/QueueServiceClient.d.ts.map +1 -1
  86. package/dist/commonjs/QueueServiceClient.js +65 -61
  87. package/dist/commonjs/QueueServiceClient.js.map +1 -1
  88. package/dist/commonjs/SASQueryParameters.d.ts +1 -1
  89. package/dist/commonjs/SASQueryParameters.js +49 -0
  90. package/dist/commonjs/SASQueryParameters.js.map +1 -1
  91. package/dist/commonjs/StorageClient.d.ts +2 -2
  92. package/dist/commonjs/StorageClient.d.ts.map +1 -1
  93. package/dist/commonjs/StorageClient.js +24 -1
  94. package/dist/commonjs/StorageClient.js.map +1 -1
  95. package/dist/commonjs/StorageContextClient.js +1 -1
  96. package/dist/commonjs/StorageContextClient.js.map +1 -1
  97. package/dist/commonjs/generated/src/operations/messageId.js +1 -0
  98. package/dist/commonjs/generated/src/operations/messageId.js.map +1 -1
  99. package/dist/commonjs/generated/src/operations/messages.js +1 -0
  100. package/dist/commonjs/generated/src/operations/messages.js.map +1 -1
  101. package/dist/commonjs/generated/src/operations/queue.js +1 -0
  102. package/dist/commonjs/generated/src/operations/queue.js.map +1 -1
  103. package/dist/commonjs/generated/src/operations/service.js +1 -0
  104. package/dist/commonjs/generated/src/operations/service.js.map +1 -1
  105. package/dist/commonjs/generated/src/storageClient.js +14 -4
  106. package/dist/commonjs/generated/src/storageClient.js.map +1 -1
  107. package/dist/commonjs/index.d.ts +1 -9
  108. package/dist/commonjs/index.d.ts.map +1 -1
  109. package/dist/commonjs/index.js +13 -19
  110. package/dist/commonjs/index.js.map +1 -1
  111. package/dist/commonjs/tsdoc-metadata.json +11 -11
  112. package/dist/commonjs/utils/constants.d.ts.map +1 -1
  113. package/dist/commonjs/utils/constants.js +1 -1
  114. package/dist/commonjs/utils/constants.js.map +1 -1
  115. package/dist/commonjs/utils/utils.common.js +2 -3
  116. package/dist/commonjs/utils/utils.common.js.map +1 -1
  117. package/dist/esm/AccountSASPermissions.d.ts +1 -1
  118. package/dist/esm/AccountSASPermissions.js +34 -36
  119. package/dist/esm/AccountSASPermissions.js.map +1 -1
  120. package/dist/esm/AccountSASResourceTypes.d.ts +1 -1
  121. package/dist/esm/AccountSASResourceTypes.js +13 -15
  122. package/dist/esm/AccountSASResourceTypes.js.map +1 -1
  123. package/dist/esm/AccountSASServices.js +16 -18
  124. package/dist/esm/AccountSASServices.js.map +1 -1
  125. package/dist/esm/AccountSASSignatureValues.d.ts +4 -4
  126. package/dist/esm/AccountSASSignatureValues.d.ts.map +1 -1
  127. package/dist/esm/AccountSASSignatureValues.js +1 -1
  128. package/dist/esm/AccountSASSignatureValues.js.map +1 -1
  129. package/dist/esm/Pipeline.d.ts +2 -3
  130. package/dist/esm/Pipeline.d.ts.map +1 -1
  131. package/dist/esm/Pipeline.js +28 -19
  132. package/dist/esm/Pipeline.js.map +1 -1
  133. package/dist/esm/QueueClient.d.ts +23 -23
  134. package/dist/esm/QueueClient.d.ts.map +1 -1
  135. package/dist/esm/QueueClient.js +68 -31
  136. package/dist/esm/QueueClient.js.map +1 -1
  137. package/dist/esm/QueueSASPermissions.js +16 -18
  138. package/dist/esm/QueueSASPermissions.js.map +1 -1
  139. package/dist/esm/QueueSASSignatureValues.d.ts +2 -2
  140. package/dist/esm/QueueSASSignatureValues.d.ts.map +1 -1
  141. package/dist/esm/QueueSASSignatureValues.js.map +1 -1
  142. package/dist/esm/QueueServiceClient.d.ts +10 -10
  143. package/dist/esm/QueueServiceClient.d.ts.map +1 -1
  144. package/dist/esm/QueueServiceClient.js +58 -54
  145. package/dist/esm/QueueServiceClient.js.map +1 -1
  146. package/dist/esm/SASQueryParameters.d.ts +1 -1
  147. package/dist/esm/SASQueryParameters.js +49 -0
  148. package/dist/esm/SASQueryParameters.js.map +1 -1
  149. package/dist/esm/StorageClient.d.ts +2 -2
  150. package/dist/esm/StorageClient.d.ts.map +1 -1
  151. package/dist/esm/StorageClient.js +24 -1
  152. package/dist/esm/StorageClient.js.map +1 -1
  153. package/dist/esm/StorageContextClient.js +1 -1
  154. package/dist/esm/StorageContextClient.js.map +1 -1
  155. package/dist/esm/generated/src/operations/messageId.js +1 -0
  156. package/dist/esm/generated/src/operations/messageId.js.map +1 -1
  157. package/dist/esm/generated/src/operations/messages.js +1 -0
  158. package/dist/esm/generated/src/operations/messages.js.map +1 -1
  159. package/dist/esm/generated/src/operations/queue.js +1 -0
  160. package/dist/esm/generated/src/operations/queue.js.map +1 -1
  161. package/dist/esm/generated/src/operations/service.js +1 -0
  162. package/dist/esm/generated/src/operations/service.js.map +1 -1
  163. package/dist/esm/generated/src/storageClient.js +14 -4
  164. package/dist/esm/generated/src/storageClient.js.map +1 -1
  165. package/dist/esm/index.d.ts +1 -9
  166. package/dist/esm/index.d.ts.map +1 -1
  167. package/dist/esm/index.js +1 -9
  168. package/dist/esm/index.js.map +1 -1
  169. package/dist/esm/utils/constants.d.ts.map +1 -1
  170. package/dist/esm/utils/constants.js +1 -1
  171. package/dist/esm/utils/constants.js.map +1 -1
  172. package/dist/esm/utils/utils.common.js +2 -3
  173. package/dist/esm/utils/utils.common.js.map +1 -1
  174. package/dist/react-native/AccountSASPermissions.d.ts +1 -1
  175. package/dist/react-native/AccountSASPermissions.js +34 -36
  176. package/dist/react-native/AccountSASPermissions.js.map +1 -1
  177. package/dist/react-native/AccountSASResourceTypes.d.ts +1 -1
  178. package/dist/react-native/AccountSASResourceTypes.js +13 -15
  179. package/dist/react-native/AccountSASResourceTypes.js.map +1 -1
  180. package/dist/react-native/AccountSASServices.js +16 -18
  181. package/dist/react-native/AccountSASServices.js.map +1 -1
  182. package/dist/react-native/AccountSASSignatureValues.d.ts +4 -4
  183. package/dist/react-native/AccountSASSignatureValues.d.ts.map +1 -1
  184. package/dist/react-native/AccountSASSignatureValues.js +1 -1
  185. package/dist/react-native/AccountSASSignatureValues.js.map +1 -1
  186. package/dist/react-native/Pipeline.d.ts +2 -3
  187. package/dist/react-native/Pipeline.d.ts.map +1 -1
  188. package/dist/react-native/Pipeline.js +28 -19
  189. package/dist/react-native/Pipeline.js.map +1 -1
  190. package/dist/react-native/QueueClient.d.ts +23 -23
  191. package/dist/react-native/QueueClient.d.ts.map +1 -1
  192. package/dist/react-native/QueueClient.js +68 -31
  193. package/dist/react-native/QueueClient.js.map +1 -1
  194. package/dist/react-native/QueueSASPermissions.js +16 -18
  195. package/dist/react-native/QueueSASPermissions.js.map +1 -1
  196. package/dist/react-native/QueueSASSignatureValues.d.ts +2 -2
  197. package/dist/react-native/QueueSASSignatureValues.d.ts.map +1 -1
  198. package/dist/react-native/QueueSASSignatureValues.js.map +1 -1
  199. package/dist/react-native/QueueServiceClient.d.ts +10 -10
  200. package/dist/react-native/QueueServiceClient.d.ts.map +1 -1
  201. package/dist/react-native/QueueServiceClient.js +58 -54
  202. package/dist/react-native/QueueServiceClient.js.map +1 -1
  203. package/dist/react-native/SASQueryParameters.d.ts +1 -1
  204. package/dist/react-native/SASQueryParameters.js +49 -0
  205. package/dist/react-native/SASQueryParameters.js.map +1 -1
  206. package/dist/react-native/StorageClient.d.ts +2 -2
  207. package/dist/react-native/StorageClient.d.ts.map +1 -1
  208. package/dist/react-native/StorageClient.js +24 -1
  209. package/dist/react-native/StorageClient.js.map +1 -1
  210. package/dist/react-native/StorageContextClient.js +1 -1
  211. package/dist/react-native/StorageContextClient.js.map +1 -1
  212. package/dist/react-native/generated/src/operations/messageId.js +1 -0
  213. package/dist/react-native/generated/src/operations/messageId.js.map +1 -1
  214. package/dist/react-native/generated/src/operations/messages.js +1 -0
  215. package/dist/react-native/generated/src/operations/messages.js.map +1 -1
  216. package/dist/react-native/generated/src/operations/queue.js +1 -0
  217. package/dist/react-native/generated/src/operations/queue.js.map +1 -1
  218. package/dist/react-native/generated/src/operations/service.js +1 -0
  219. package/dist/react-native/generated/src/operations/service.js.map +1 -1
  220. package/dist/react-native/generated/src/storageClient.js +14 -4
  221. package/dist/react-native/generated/src/storageClient.js.map +1 -1
  222. package/dist/react-native/index.d.ts +1 -9
  223. package/dist/react-native/index.d.ts.map +1 -1
  224. package/dist/react-native/index.js +1 -9
  225. package/dist/react-native/index.js.map +1 -1
  226. package/dist/react-native/utils/constants.d.ts.map +1 -1
  227. package/dist/react-native/utils/constants.js +1 -1
  228. package/dist/react-native/utils/constants.js.map +1 -1
  229. package/dist/react-native/utils/utils.common.js +2 -3
  230. package/dist/react-native/utils/utils.common.js.map +1 -1
  231. package/package.json +7 -8
@@ -1 +1 @@
1
- {"version":3,"file":"Pipeline.js","sourceRoot":"","sources":["../../src/Pipeline.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAOlC,OAAO,EAQL,iBAAiB,EACjB,gCAAgC,GACjC,MAAM,yBAAyB,CAAC;AAQjC,OAAO,EAEL,+BAA+B,EAC/B,4BAA4B,GAC7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,iCAAiC,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OA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O,CAAC,MAAM,CAAC,cAAc,EAAE,wBAAwB,CAAC,CAAC;IAChF,MAAM,UAAU,GAAG,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC;IACnD,6EAA6E;IAC7E,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,EAAE;QAC5C,OAAO,UAAU,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n KeepAliveOptions,\n ExtendedServiceClientOptions,\n HttpPipelineLogLevel,\n} from \"@azure/core-http-compat\";\nimport {\n CompatResponse as HttpOperationResponse,\n RequestPolicy as IHttpClient,\n HttpHeadersLike as HttpHeaders,\n RequestPolicy,\n RequestPolicyFactory,\n RequestPolicyOptionsLike as RequestPolicyOptions,\n WebResourceLike as WebResource,\n convertHttpClient,\n createRequestPolicyFactoryPolicy,\n} from \"@azure/core-http-compat\";\nimport type {\n ProxySettings as ProxyOptions,\n UserAgentPolicyOptions as UserAgentOptions,\n Pipeline as CorePipeline,\n PipelinePolicy,\n HttpClient,\n} from \"@azure/core-rest-pipeline\";\nimport {\n RequestBodyType as HttpRequestBody,\n bearerTokenAuthenticationPolicy,\n decompressResponsePolicyName,\n} from \"@azure/core-rest-pipeline\";\nimport { authorizeRequestOnTenantChallenge, createClientPipeline } from \"@azure/core-client\";\nimport { parseXML, stringifyXML } from \"@azure/core-xml\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\n\nimport { logger } from \"./log.js\";\nimport type { StorageRetryOptions } from \"@azure/storage-blob\";\nimport { StorageRetryPolicyFactory } from \"@azure/storage-blob\";\nimport { StorageSharedKeyCredential } from \"@azure/storage-blob\";\nimport { AnonymousCredential } from \"@azure/storage-blob\";\nimport {\n StorageOAuthScopes,\n StorageQueueLoggingAllowedHeaderNames,\n StorageQueueLoggingAllowedQueryParameters,\n SDK_VERSION,\n} from \"./utils/constants.js\";\nimport { getCachedDefaultHttpClient } from \"@azure/storage-common\";\nimport { storageBrowserPolicy } from \"@azure/storage-blob\";\nimport { storageRetryPolicy } from \"@azure/storage-blob\";\nimport { storageSharedKeyCredentialPolicy } from \"@azure/storage-blob\";\nimport { StorageBrowserPolicyFactory } from \"@azure/storage-blob\";\nimport { storageCorrectContentLengthPolicy } from \"@azure/storage-blob\";\n\n// Export following interfaces and types for customers who want to implement their\n// own RequestPolicy or HTTPClient\nexport {\n StorageOAuthScopes,\n IHttpClient,\n HttpHeaders,\n HttpRequestBody,\n HttpOperationResponse,\n WebResource,\n RequestPolicyFactory,\n RequestPolicy,\n RequestPolicyOptions,\n};\n\n/**\n * A subset of `@azure/core-http` ServiceClientOptions\n */\nexport interface ServiceClientOptions {\n /**\n * Optional. Configures the HTTP client to send requests and receive responses.\n */\n httpClient?: IHttpClient;\n /**\n * Optional. Overrides the default policy factories.\n */\n requestPolicyFactories?:\n | RequestPolicyFactory[]\n | ((defaultRequestPolicyFactories: RequestPolicyFactory[]) => void | RequestPolicyFactory[]);\n}\n\n/**\n * Option interface for Pipeline constructor.\n */\nexport interface PipelineOptions {\n /**\n * Optional. Configures the HTTP client to send requests and receive responses.\n */\n httpClient?: IHttpClient;\n}\n\n/**\n * An interface for the {@link Pipeline} class containing HTTP request policies.\n * You can create a default Pipeline by calling {@link newPipeline}.\n * Or you can create a Pipeline with your own policies by the constructor of Pipeline.\n *\n * Refer to {@link newPipeline} and provided policies before implementing your\n * customized Pipeline.\n */\nexport interface PipelineLike {\n /**\n * A list of chained request policy factories.\n */\n readonly factories: RequestPolicyFactory[];\n /**\n * Configures pipeline logger and HTTP client.\n */\n readonly options: PipelineOptions;\n /**\n * Transfer Pipeline object to ServiceClientOptions object which is required by\n * ServiceClient constructor.\n *\n * @returns The ServiceClientOptions object from this Pipeline.\n */\n toServiceClientOptions(): ServiceClientOptions;\n}\n\n/**\n * A helper to decide if a given argument satisfies the Pipeline contract\n * @param pipeline - An argument that may be a Pipeline\n * @returns true when the argument satisfies the Pipeline contract\n */\nexport function isPipelineLike(pipeline: unknown): pipeline is PipelineLike {\n if (!pipeline || typeof pipeline !== \"object\") {\n return false;\n }\n\n const castPipeline = pipeline as PipelineLike;\n\n return (\n Array.isArray(castPipeline.factories) &&\n typeof castPipeline.options === \"object\" &&\n typeof castPipeline.toServiceClientOptions === \"function\"\n );\n}\n\n/**\n * A Pipeline class containing HTTP request policies.\n * You can create a default Pipeline by calling {@link newPipeline}.\n * Or you can create a Pipeline with your own policies by the constructor of Pipeline.\n *\n * Refer to {@link newPipeline} and provided policies before implementing your\n * customized Pipeline.\n */\nexport class Pipeline implements PipelineLike {\n /**\n * A list of chained request policy factories.\n */\n public readonly factories: RequestPolicyFactory[];\n /**\n * Configures pipeline logger and HTTP client.\n */\n public readonly options: PipelineOptions;\n\n /**\n * Creates an instance of Pipeline. Customize HTTPClient by implementing IHttpClient interface.\n *\n * @param factories -\n * @param options -\n */\n constructor(factories: RequestPolicyFactory[], options: PipelineOptions = {}) {\n this.factories = factories;\n this.options = options;\n }\n\n /**\n * Transfer Pipeline object to ServiceClientOptions object which is required by\n * ServiceClient constructor.\n *\n * @returns The ServiceClientOptions object from this Pipeline.\n */\n public toServiceClientOptions(): ServiceClientOptions {\n return {\n httpClient: this.options.httpClient,\n requestPolicyFactories: this.factories,\n };\n }\n}\n\n/**\n * Options interface for the {@link newPipeline} function.\n */\nexport interface StoragePipelineOptions {\n /**\n * Options to configure a proxy for outgoing requests.\n */\n proxyOptions?: ProxyOptions;\n /**\n * Options for adding user agent details to outgoing requests.\n */\n userAgentOptions?: UserAgentOptions;\n /**\n * Configures the built-in retry policy behavior.\n */\n retryOptions?: StorageRetryOptions;\n /**\n * Keep alive configurations. Default keep-alive is enabled.\n */\n keepAliveOptions?: KeepAliveOptions;\n /**\n * Configures the HTTP client to send requests and receive responses.\n */\n httpClient?: IHttpClient;\n /**\n * The audience used to retrieve an AAD token.\n * By default, audience 'https://storage.azure.com/.default' will be used.\n */\n audience?: string;\n}\n\n/**\n * Creates a new Pipeline object with Credential provided.\n *\n * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.\n * @param pipelineOptions - Optional. Options.\n * @returns A new Pipeline object.\n */\nexport function newPipeline(\n credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential,\n pipelineOptions: StoragePipelineOptions = {},\n): Pipeline {\n if (!credential) {\n credential = new AnonymousCredential();\n }\n const pipeline = new Pipeline([], pipelineOptions);\n (pipeline as any)._credential = credential;\n return pipeline;\n}\n\nfunction processDownlevelPipeline(\n pipeline: PipelineLike,\n): { wrappedPolicies: PipelinePolicy; afterRetry: boolean } | undefined {\n const knownFactoryFunctions = [\n isAnonymousCredential,\n isStorageSharedKeyCredential,\n isCoreHttpBearerTokenFactory,\n isStorageBrowserPolicyFactory,\n isStorageRetryPolicyFactory,\n isStorageTelemetryPolicyFactory,\n isCoreHttpPolicyFactory,\n ];\n if (pipeline.factories.length) {\n const novelFactories = pipeline.factories.filter((factory) => {\n return !knownFactoryFunctions.some((knownFactory) => knownFactory(factory));\n });\n if (novelFactories.length) {\n const hasInjector = novelFactories.some((factory) => isInjectorPolicyFactory(factory));\n // if there are any left over, wrap in a requestPolicyFactoryPolicy\n return {\n wrappedPolicies: createRequestPolicyFactoryPolicy(novelFactories),\n afterRetry: hasInjector,\n };\n }\n }\n return undefined;\n}\n\nexport function getCoreClientOptions(pipeline: PipelineLike): ExtendedServiceClientOptions {\n const { httpClient: v1Client, ...restOptions } = pipeline.options as StoragePipelineOptions;\n\n let httpClient: HttpClient = (pipeline as any)._coreHttpClient;\n if (!httpClient) {\n httpClient = v1Client ? convertHttpClient(v1Client) : getCachedDefaultHttpClient();\n (pipeline as any)._coreHttpClient = httpClient;\n }\n\n let corePipeline: CorePipeline = (pipeline as any)._corePipeline;\n if (!corePipeline) {\n const packageDetails = `azsdk-js-azure-storage-blob/${SDK_VERSION}`;\n const userAgentPrefix =\n restOptions.userAgentOptions && restOptions.userAgentOptions.userAgentPrefix\n ? `${restOptions.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n corePipeline = createClientPipeline({\n ...restOptions,\n loggingOptions: {\n additionalAllowedHeaderNames: StorageQueueLoggingAllowedHeaderNames,\n additionalAllowedQueryParameters: StorageQueueLoggingAllowedQueryParameters,\n logger: logger.info,\n },\n userAgentOptions: {\n userAgentPrefix,\n },\n serializationOptions: {\n stringifyXML,\n serializerOptions: {\n xml: {\n // Use customized XML char key of \"#\" so we can deserialize metadata\n // with \"_\" key\n xmlCharKey: \"#\",\n },\n },\n },\n deserializationOptions: {\n parseXML,\n serializerOptions: {\n xml: {\n // Use customized XML char key of \"#\" so we can deserialize metadata\n // with \"_\" key\n xmlCharKey: \"#\",\n },\n },\n },\n });\n corePipeline.removePolicy({ phase: \"Retry\" });\n corePipeline.removePolicy({ name: decompressResponsePolicyName });\n corePipeline.addPolicy(storageCorrectContentLengthPolicy());\n corePipeline.addPolicy(storageRetryPolicy(restOptions.retryOptions), { phase: \"Retry\" });\n corePipeline.addPolicy(storageBrowserPolicy());\n const downlevelResults = processDownlevelPipeline(pipeline);\n if (downlevelResults) {\n corePipeline.addPolicy(\n downlevelResults.wrappedPolicies,\n downlevelResults.afterRetry ? { afterPhase: \"Retry\" } : undefined,\n );\n }\n const credential = getCredentialFromPipeline(pipeline);\n if (isTokenCredential(credential)) {\n corePipeline.addPolicy(\n bearerTokenAuthenticationPolicy({\n credential,\n scopes: restOptions.audience ?? StorageOAuthScopes,\n challengeCallbacks: { authorizeRequestOnChallenge: authorizeRequestOnTenantChallenge },\n }),\n { phase: \"Sign\" },\n );\n } else if (credential instanceof StorageSharedKeyCredential) {\n corePipeline.addPolicy(\n storageSharedKeyCredentialPolicy({\n accountName: credential.accountName,\n accountKey: (credential as any).accountKey,\n }),\n { phase: \"Sign\" },\n );\n }\n (pipeline as any)._corePipeline = corePipeline;\n }\n return {\n ...restOptions,\n allowInsecureConnection: true,\n httpClient,\n pipeline: corePipeline,\n };\n}\n\nexport function getCredentialFromPipeline(\n pipeline: PipelineLike,\n): StorageSharedKeyCredential | AnonymousCredential | TokenCredential {\n // see if we squirreled one away on the type itself\n if ((pipeline as any)._credential) {\n return (pipeline as any)._credential;\n }\n // if it came from another package, loop over the factories and look for one like before\n let credential = new AnonymousCredential();\n for (const factory of pipeline.factories) {\n if (isTokenCredential((factory as any).credential)) {\n // Only works if the factory has been attached a \"credential\" property.\n // We do that in newPipeline() when using TokenCredential.\n credential = (factory as any).credential;\n } else if (isStorageSharedKeyCredential(factory)) {\n return factory;\n }\n }\n return credential;\n}\n\nfunction isStorageSharedKeyCredential(\n factory: RequestPolicyFactory,\n): factory is StorageSharedKeyCredential {\n if (factory instanceof StorageSharedKeyCredential) {\n return true;\n }\n return factory.constructor.name === \"StorageSharedKeyCredential\";\n}\n\nfunction isAnonymousCredential(factory: RequestPolicyFactory): factory is AnonymousCredential {\n if (factory instanceof AnonymousCredential) {\n return true;\n }\n return factory.constructor.name === \"AnonymousCredential\";\n}\n\nfunction isCoreHttpBearerTokenFactory(factory: RequestPolicyFactory): boolean {\n return isTokenCredential((factory as any).credential);\n}\n\nfunction isStorageBrowserPolicyFactory(\n factory: RequestPolicyFactory,\n): factory is StorageBrowserPolicyFactory {\n if (factory instanceof StorageBrowserPolicyFactory) {\n return true;\n }\n return factory.constructor.name === \"StorageBrowserPolicyFactory\";\n}\n\nfunction isStorageRetryPolicyFactory(\n factory: RequestPolicyFactory,\n): factory is StorageRetryPolicyFactory {\n if (factory instanceof StorageRetryPolicyFactory) {\n return true;\n }\n return factory.constructor.name === \"StorageRetryPolicyFactory\";\n}\n\nfunction isStorageTelemetryPolicyFactory(factory: RequestPolicyFactory): boolean {\n return factory.constructor.name === \"TelemetryPolicyFactory\";\n}\n\nfunction isInjectorPolicyFactory(factory: RequestPolicyFactory): boolean {\n return factory.constructor.name === \"InjectorPolicyFactory\";\n}\n\nfunction isCoreHttpPolicyFactory(factory: RequestPolicyFactory): boolean {\n const knownPolicies = [\n \"GenerateClientRequestIdPolicy\",\n \"TracingPolicy\",\n \"LogPolicy\",\n \"ProxyPolicy\",\n \"DisableResponseDecompressionPolicy\",\n \"KeepAlivePolicy\",\n \"DeserializationPolicy\",\n ];\n\n const mockHttpClient: IHttpClient = {\n sendRequest: async (request: WebResource) => {\n return {\n request,\n headers: request.headers.clone(),\n status: 500,\n };\n },\n };\n const mockRequestPolicyOptions: RequestPolicyOptions = {\n log(_logLevel: HttpPipelineLogLevel, _message: string): void {\n /* do nothing */\n },\n shouldLog(_logLevel: HttpPipelineLogLevel): boolean {\n return false;\n },\n };\n const policyInstance = factory.create(mockHttpClient, mockRequestPolicyOptions);\n const policyName = policyInstance.constructor.name;\n // bundlers sometimes add a custom suffix to the class name to make it unique\n return knownPolicies.some((knownPolicyName) => {\n return policyName.startsWith(knownPolicyName);\n });\n}\n"]}
1
+ {"version":3,"file":"Pipeline.js","sourceRoot":"","sources":["../../src/Pipeline.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EAQL,iBAAiB,EACjB,gCAAgC,GACjC,MAAM,yBAAyB,CAAC;AAQjC,OAAO,EAEL,+BAA+B,EAC/B,4BAA4B,GAC7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,iCAAiC,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,mBAAmB,EACnB,0BAA0B,EAC1B,oBAAoB,EACpB,kBAAkB,EAClB,gCAAgC,EAChC,2BAA2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AA+B,CAAC,OAA6B;IACpE,OAAO,OAAO,CAAC,WAAW,CAAC,IAAI,KAAK,wBAAwB,CAAC;AAC/D,CAAC;AAED,SAAS,uBAAuB,CAAC,OAA6B;IAC5D,OAAO,OAAO,CAAC,WAAW,CAAC,IAAI,KAAK,uBAAuB,CAAC;AAC9D,CAAC;AAED,SAAS,uBAAuB,CAAC,OAA6B;IAC5D,MAAM,aAAa,GAAG;QACpB,+BAA+B;QAC/B,eAAe;QACf,WAAW;QACX,aAAa;QACb,oCAAoC;QACpC,iBAAiB;QACjB,uBAAuB;KACxB,CAAC;IAEF,MAAM,cAAc,GAAgB;QAClC,WAAW,EAAE,KAAK,EAAE,OAAoB,EAAE,EAAE;YAC1C,OAAO;gBACL,OAAO;gBACP,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE;gBAChC,MAAM,EAAE,GAAG;aACZ,CAAC;QACJ,CAAC;KACF,CAAC;IACF,MAAM,wBAAwB,GAAyB;QACrD,GAAG,CAAC,SAA+B,EAAE,QAAgB;YACnD,gBAAgB;QAClB,CAAC;QACD,SAAS,CAAC,SAA+B;YACvC,OAAO,KAAK,CAAC;QACf,CAAC;KACF,CAAC;IACF,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,wBAAwB,CAAC,CAAC;IAChF,MAAM,UAAU,GAAG,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC;IACnD,6EAA6E;IAC7E,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,EAAE;QAC5C,OAAO,UAAU,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n KeepAliveOptions,\n ExtendedServiceClientOptions,\n HttpPipelineLogLevel,\n} from \"@azure/core-http-compat\";\nimport {\n CompatResponse as HttpOperationResponse,\n RequestPolicy as IHttpClient,\n HttpHeadersLike as HttpHeaders,\n RequestPolicy,\n RequestPolicyFactory,\n RequestPolicyOptionsLike as RequestPolicyOptions,\n WebResourceLike as WebResource,\n convertHttpClient,\n createRequestPolicyFactoryPolicy,\n} from \"@azure/core-http-compat\";\nimport type {\n ProxySettings as ProxyOptions,\n UserAgentPolicyOptions as UserAgentOptions,\n Pipeline as CorePipeline,\n PipelinePolicy,\n HttpClient,\n} from \"@azure/core-rest-pipeline\";\nimport {\n RequestBodyType as HttpRequestBody,\n bearerTokenAuthenticationPolicy,\n decompressResponsePolicyName,\n} from \"@azure/core-rest-pipeline\";\nimport { authorizeRequestOnTenantChallenge, createClientPipeline } from \"@azure/core-client\";\nimport { parseXML, stringifyXML } from \"@azure/core-xml\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\n\nimport { logger } from \"./log.js\";\nimport type { StorageRetryOptions } from \"@azure/storage-common\";\nimport {\n StorageRetryPolicyFactory,\n StorageSharedKeyCredential,\n AnonymousCredential,\n getCachedDefaultHttpClient,\n storageBrowserPolicy,\n storageRetryPolicy,\n storageSharedKeyCredentialPolicy,\n StorageBrowserPolicyFactory,\n storageCorrectContentLengthPolicy,\n} from \"@azure/storage-common\";\nimport {\n StorageOAuthScopes,\n StorageQueueLoggingAllowedHeaderNames,\n StorageQueueLoggingAllowedQueryParameters,\n SDK_VERSION,\n} from \"./utils/constants.js\";\nimport {} from \"@azure/storage-common\";\n\n// Export following interfaces and types for customers who want to implement their\n// own RequestPolicy or HTTPClient\nexport {\n StorageOAuthScopes,\n IHttpClient,\n HttpHeaders,\n HttpRequestBody,\n HttpOperationResponse,\n WebResource,\n RequestPolicyFactory,\n RequestPolicy,\n RequestPolicyOptions,\n};\n\n/**\n * A subset of `@azure/core-http` ServiceClientOptions\n */\nexport interface ServiceClientOptions {\n /**\n * Optional. Configures the HTTP client to send requests and receive responses.\n */\n httpClient?: IHttpClient;\n /**\n * Optional. Overrides the default policy factories.\n */\n requestPolicyFactories?:\n | RequestPolicyFactory[]\n | ((defaultRequestPolicyFactories: RequestPolicyFactory[]) => void | RequestPolicyFactory[]);\n}\n\n/**\n * Option interface for Pipeline constructor.\n */\nexport interface PipelineOptions {\n /**\n * Optional. Configures the HTTP client to send requests and receive responses.\n */\n httpClient?: IHttpClient;\n}\n\n/**\n * An interface for the {@link Pipeline} class containing HTTP request policies.\n * You can create a default Pipeline by calling {@link newPipeline}.\n * Or you can create a Pipeline with your own policies by the constructor of Pipeline.\n *\n * Refer to {@link newPipeline} and provided policies before implementing your\n * customized Pipeline.\n */\nexport interface PipelineLike {\n /**\n * A list of chained request policy factories.\n */\n readonly factories: RequestPolicyFactory[];\n /**\n * Configures pipeline logger and HTTP client.\n */\n readonly options: PipelineOptions;\n /**\n * Transfer Pipeline object to ServiceClientOptions object which is required by\n * ServiceClient constructor.\n *\n * @returns The ServiceClientOptions object from this Pipeline.\n */\n toServiceClientOptions(): ServiceClientOptions;\n}\n\n/**\n * A helper to decide if a given argument satisfies the Pipeline contract\n * @param pipeline - An argument that may be a Pipeline\n * @returns true when the argument satisfies the Pipeline contract\n */\nexport function isPipelineLike(pipeline: unknown): pipeline is PipelineLike {\n if (!pipeline || typeof pipeline !== \"object\") {\n return false;\n }\n\n const castPipeline = pipeline as PipelineLike;\n\n return (\n Array.isArray(castPipeline.factories) &&\n typeof castPipeline.options === \"object\" &&\n typeof castPipeline.toServiceClientOptions === \"function\"\n );\n}\n\n/**\n * A Pipeline class containing HTTP request policies.\n * You can create a default Pipeline by calling {@link newPipeline}.\n * Or you can create a Pipeline with your own policies by the constructor of Pipeline.\n *\n * Refer to {@link newPipeline} and provided policies before implementing your\n * customized Pipeline.\n */\nexport class Pipeline implements PipelineLike {\n /**\n * A list of chained request policy factories.\n */\n public readonly factories: RequestPolicyFactory[];\n /**\n * Configures pipeline logger and HTTP client.\n */\n public readonly options: PipelineOptions;\n\n /**\n * Creates an instance of Pipeline. Customize HTTPClient by implementing IHttpClient interface.\n *\n * @param factories -\n * @param options -\n */\n constructor(factories: RequestPolicyFactory[], options: PipelineOptions = {}) {\n this.factories = factories;\n this.options = options;\n }\n\n /**\n * Transfer Pipeline object to ServiceClientOptions object which is required by\n * ServiceClient constructor.\n *\n * @returns The ServiceClientOptions object from this Pipeline.\n */\n public toServiceClientOptions(): ServiceClientOptions {\n return {\n httpClient: this.options.httpClient,\n requestPolicyFactories: this.factories,\n };\n }\n}\n\n/**\n * Options interface for the {@link newPipeline} function.\n */\nexport interface StoragePipelineOptions {\n /**\n * Options to configure a proxy for outgoing requests.\n */\n proxyOptions?: ProxyOptions;\n /**\n * Options for adding user agent details to outgoing requests.\n */\n userAgentOptions?: UserAgentOptions;\n /**\n * Configures the built-in retry policy behavior.\n */\n retryOptions?: StorageRetryOptions;\n /**\n * Keep alive configurations. Default keep-alive is enabled.\n */\n keepAliveOptions?: KeepAliveOptions;\n /**\n * Configures the HTTP client to send requests and receive responses.\n */\n httpClient?: IHttpClient;\n /**\n * The audience used to retrieve an AAD token.\n * By default, audience 'https://storage.azure.com/.default' will be used.\n */\n audience?: string;\n}\n\n/**\n * Creates a new Pipeline object with Credential provided.\n *\n * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.\n * @param pipelineOptions - Optional. Options.\n * @returns A new Pipeline object.\n */\nexport function newPipeline(\n credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential,\n pipelineOptions: StoragePipelineOptions = {},\n): Pipeline {\n if (!credential) {\n credential = new AnonymousCredential();\n }\n const pipeline = new Pipeline([], pipelineOptions);\n (pipeline as any)._credential = credential;\n return pipeline;\n}\n\nfunction processDownlevelPipeline(\n pipeline: PipelineLike,\n): { wrappedPolicies: PipelinePolicy; afterRetry: boolean } | undefined {\n const knownFactoryFunctions = [\n isAnonymousCredential,\n isStorageSharedKeyCredential,\n isCoreHttpBearerTokenFactory,\n isStorageBrowserPolicyFactory,\n isStorageRetryPolicyFactory,\n isStorageTelemetryPolicyFactory,\n isCoreHttpPolicyFactory,\n ];\n if (pipeline.factories.length) {\n const novelFactories = pipeline.factories.filter((factory) => {\n return !knownFactoryFunctions.some((knownFactory) => knownFactory(factory));\n });\n if (novelFactories.length) {\n const hasInjector = novelFactories.some((factory) => isInjectorPolicyFactory(factory));\n // if there are any left over, wrap in a requestPolicyFactoryPolicy\n return {\n wrappedPolicies: createRequestPolicyFactoryPolicy(novelFactories),\n afterRetry: hasInjector,\n };\n }\n }\n return undefined;\n}\n\nexport function getCoreClientOptions(pipeline: PipelineLike): ExtendedServiceClientOptions {\n const { httpClient: v1Client, ...restOptions } = pipeline.options as StoragePipelineOptions;\n\n let httpClient: HttpClient = (pipeline as any)._coreHttpClient;\n if (!httpClient) {\n httpClient = v1Client ? convertHttpClient(v1Client) : getCachedDefaultHttpClient();\n (pipeline as any)._coreHttpClient = httpClient;\n }\n\n let corePipeline: CorePipeline = (pipeline as any)._corePipeline;\n if (!corePipeline) {\n const packageDetails = `azsdk-js-azure-storage-blob/${SDK_VERSION}`;\n const userAgentPrefix =\n restOptions.userAgentOptions && restOptions.userAgentOptions.userAgentPrefix\n ? `${restOptions.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n corePipeline = createClientPipeline({\n ...restOptions,\n loggingOptions: {\n additionalAllowedHeaderNames: StorageQueueLoggingAllowedHeaderNames,\n additionalAllowedQueryParameters: StorageQueueLoggingAllowedQueryParameters,\n logger: logger.info,\n },\n userAgentOptions: {\n userAgentPrefix,\n },\n serializationOptions: {\n stringifyXML,\n serializerOptions: {\n xml: {\n // Use customized XML char key of \"#\" so we can deserialize metadata\n // with \"_\" key\n xmlCharKey: \"#\",\n },\n },\n },\n deserializationOptions: {\n parseXML,\n serializerOptions: {\n xml: {\n // Use customized XML char key of \"#\" so we can deserialize metadata\n // with \"_\" key\n xmlCharKey: \"#\",\n },\n },\n },\n });\n corePipeline.removePolicy({ phase: \"Retry\" });\n corePipeline.removePolicy({ name: decompressResponsePolicyName });\n corePipeline.addPolicy(storageCorrectContentLengthPolicy());\n corePipeline.addPolicy(storageRetryPolicy(restOptions.retryOptions), { phase: \"Retry\" });\n corePipeline.addPolicy(storageBrowserPolicy());\n const downlevelResults = processDownlevelPipeline(pipeline);\n if (downlevelResults) {\n corePipeline.addPolicy(\n downlevelResults.wrappedPolicies,\n downlevelResults.afterRetry ? { afterPhase: \"Retry\" } : undefined,\n );\n }\n const credential = getCredentialFromPipeline(pipeline);\n if (isTokenCredential(credential)) {\n corePipeline.addPolicy(\n bearerTokenAuthenticationPolicy({\n credential,\n scopes: restOptions.audience ?? StorageOAuthScopes,\n challengeCallbacks: { authorizeRequestOnChallenge: authorizeRequestOnTenantChallenge },\n }),\n { phase: \"Sign\" },\n );\n } else if (credential instanceof StorageSharedKeyCredential) {\n corePipeline.addPolicy(\n storageSharedKeyCredentialPolicy({\n accountName: credential.accountName,\n accountKey: (credential as any).accountKey,\n }),\n { phase: \"Sign\" },\n );\n }\n (pipeline as any)._corePipeline = corePipeline;\n }\n return {\n ...restOptions,\n allowInsecureConnection: true,\n httpClient,\n pipeline: corePipeline,\n };\n}\n\nexport function getCredentialFromPipeline(\n pipeline: PipelineLike,\n): StorageSharedKeyCredential | AnonymousCredential | TokenCredential {\n // see if we squirreled one away on the type itself\n if ((pipeline as any)._credential) {\n return (pipeline as any)._credential;\n }\n // if it came from another package, loop over the factories and look for one like before\n let credential = new AnonymousCredential();\n for (const factory of pipeline.factories) {\n if (isTokenCredential((factory as any).credential)) {\n // Only works if the factory has been attached a \"credential\" property.\n // We do that in newPipeline() when using TokenCredential.\n credential = (factory as any).credential;\n } else if (isStorageSharedKeyCredential(factory)) {\n return factory;\n }\n }\n return credential;\n}\n\nfunction isStorageSharedKeyCredential(\n factory: RequestPolicyFactory,\n): factory is StorageSharedKeyCredential {\n if (factory instanceof StorageSharedKeyCredential) {\n return true;\n }\n return factory.constructor.name === \"StorageSharedKeyCredential\";\n}\n\nfunction isAnonymousCredential(factory: RequestPolicyFactory): factory is AnonymousCredential {\n if (factory instanceof AnonymousCredential) {\n return true;\n }\n return factory.constructor.name === \"AnonymousCredential\";\n}\n\nfunction isCoreHttpBearerTokenFactory(factory: RequestPolicyFactory): boolean {\n return isTokenCredential((factory as any).credential);\n}\n\nfunction isStorageBrowserPolicyFactory(\n factory: RequestPolicyFactory,\n): factory is StorageBrowserPolicyFactory {\n if (factory instanceof StorageBrowserPolicyFactory) {\n return true;\n }\n return factory.constructor.name === \"StorageBrowserPolicyFactory\";\n}\n\nfunction isStorageRetryPolicyFactory(\n factory: RequestPolicyFactory,\n): factory is StorageRetryPolicyFactory {\n if (factory instanceof StorageRetryPolicyFactory) {\n return true;\n }\n return factory.constructor.name === \"StorageRetryPolicyFactory\";\n}\n\nfunction isStorageTelemetryPolicyFactory(factory: RequestPolicyFactory): boolean {\n return factory.constructor.name === \"TelemetryPolicyFactory\";\n}\n\nfunction isInjectorPolicyFactory(factory: RequestPolicyFactory): boolean {\n return factory.constructor.name === \"InjectorPolicyFactory\";\n}\n\nfunction isCoreHttpPolicyFactory(factory: RequestPolicyFactory): boolean {\n const knownPolicies = [\n \"GenerateClientRequestIdPolicy\",\n \"TracingPolicy\",\n \"LogPolicy\",\n \"ProxyPolicy\",\n \"DisableResponseDecompressionPolicy\",\n \"KeepAlivePolicy\",\n \"DeserializationPolicy\",\n ];\n\n const mockHttpClient: IHttpClient = {\n sendRequest: async (request: WebResource) => {\n return {\n request,\n headers: request.headers.clone(),\n status: 500,\n };\n },\n };\n const mockRequestPolicyOptions: RequestPolicyOptions = {\n log(_logLevel: HttpPipelineLogLevel, _message: string): void {\n /* do nothing */\n },\n shouldLog(_logLevel: HttpPipelineLogLevel): boolean {\n return false;\n },\n };\n const policyInstance = factory.create(mockHttpClient, mockRequestPolicyOptions);\n const policyName = policyInstance.constructor.name;\n // bundlers sometimes add a custom suffix to the class name to make it unique\n return knownPolicies.some((knownPolicyName) => {\n return policyName.startsWith(knownPolicyName);\n });\n}\n"]}
@@ -5,8 +5,8 @@ import type { StoragePipelineOptions, Pipeline } from "./Pipeline.js";
5
5
  import type { CommonOptions } from "./StorageClient.js";
6
6
  import { StorageClient } from "./StorageClient.js";
7
7
  import type { WithResponse } from "./utils/utils.common.js";
8
- import { StorageSharedKeyCredential } from "@azure/storage-blob";
9
- import { AnonymousCredential } from "@azure/storage-blob";
8
+ import { StorageSharedKeyCredential } from "@azure/storage-common";
9
+ import { AnonymousCredential } from "@azure/storage-common";
10
10
  import type { Metadata } from "./models.js";
11
11
  import type { SasIPRange } from "./SasIPRange.js";
12
12
  import type { QueueSASPermissions } from "./QueueSASPermissions.js";
@@ -108,7 +108,7 @@ export interface SignedIdentifier {
108
108
  expiresOn?: Date;
109
109
  /**
110
110
  * the permissions for the acl policy
111
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-queue-acl
111
+ * @see https://learn.microsoft.com/rest/api/storageservices/set-queue-acl
112
112
  */
113
113
  permissions?: string;
114
114
  };
@@ -131,7 +131,7 @@ export interface QueueClearMessagesOptions extends CommonOptions {
131
131
  }
132
132
  /** Optional parameters. */
133
133
  export interface MessagesEnqueueOptionalParams extends CommonOptions {
134
- /** The The timeout parameter is expressed in seconds. For more information, see <a href="https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations">Setting Timeouts for Queue Service Operations.</a> */
134
+ /** The The timeout parameter is expressed in seconds. For more information, see <a href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-queue-service-operations">Setting Timeouts for Queue Service Operations.</a> */
135
135
  timeoutInSeconds?: number;
136
136
  /** Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. */
137
137
  requestId?: string;
@@ -152,7 +152,7 @@ export interface QueueSendMessageOptions extends MessagesEnqueueOptionalParams,
152
152
  }
153
153
  /** Optional parameters. */
154
154
  export interface MessagesDequeueOptionalParams extends CommonOptions {
155
- /** The The timeout parameter is expressed in seconds. For more information, see <a href="https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations">Setting Timeouts for Queue Service Operations.</a> */
155
+ /** The The timeout parameter is expressed in seconds. For more information, see <a href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-queue-service-operations">Setting Timeouts for Queue Service Operations.</a> */
156
156
  timeoutInSeconds?: number;
157
157
  /** Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. */
158
158
  requestId?: string;
@@ -173,7 +173,7 @@ export interface QueueReceiveMessageOptions extends MessagesDequeueOptionalParam
173
173
  }
174
174
  /** Optional parameters. */
175
175
  export interface MessagesPeekOptionalParams extends CommonOptions {
176
- /** The The timeout parameter is expressed in seconds. For more information, see <a href="https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations">Setting Timeouts for Queue Service Operations.</a> */
176
+ /** The The timeout parameter is expressed in seconds. For more information, see <a href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-queue-service-operations">Setting Timeouts for Queue Service Operations.</a> */
177
177
  timeoutInSeconds?: number;
178
178
  /** Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. */
179
179
  requestId?: string;
@@ -321,7 +321,7 @@ export interface QueueGenerateSasUrlOptions {
321
321
  /**
322
322
  * Optional. The name of the access policy on the queue this SAS references if any.
323
323
  *
324
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/establishing-a-stored-access-policy
324
+ * @see https://learn.microsoft.com/rest/api/storageservices/establishing-a-stored-access-policy
325
325
  */
326
326
  identifier?: string;
327
327
  }
@@ -381,7 +381,7 @@ export declare class QueueClient extends StorageClient {
381
381
  private getMessageIdContext;
382
382
  /**
383
383
  * Creates a new queue under the specified account.
384
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-queue4
384
+ * @see https://learn.microsoft.com/rest/api/storageservices/create-queue4
385
385
  *
386
386
  * @param options - Options to Queue create operation.
387
387
  * @returns Response data for the Queue create operation.
@@ -410,21 +410,21 @@ export declare class QueueClient extends StorageClient {
410
410
  /**
411
411
  * Creates a new queue under the specified account if it doesn't already exist.
412
412
  * If the queue already exists, it is not changed.
413
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-queue4
413
+ * @see https://learn.microsoft.com/rest/api/storageservices/create-queue4
414
414
  *
415
415
  * @param options -
416
416
  */
417
417
  createIfNotExists(options?: QueueCreateOptions): Promise<QueueCreateIfNotExistsResponse>;
418
418
  /**
419
419
  * Deletes the specified queue permanently if it exists.
420
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-queue3
420
+ * @see https://learn.microsoft.com/rest/api/storageservices/delete-queue3
421
421
  *
422
422
  * @param options -
423
423
  */
424
424
  deleteIfExists(options?: QueueDeleteOptions): Promise<QueueDeleteIfExistsResponse>;
425
425
  /**
426
426
  * Deletes the specified queue permanently.
427
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-queue3
427
+ * @see https://learn.microsoft.com/rest/api/storageservices/delete-queue3
428
428
  *
429
429
  * @param options - Options to Queue delete operation.
430
430
  * @returns Response data for the Queue delete operation.
@@ -463,7 +463,7 @@ export declare class QueueClient extends StorageClient {
463
463
  /**
464
464
  * Gets all user-defined metadata and system properties for the specified
465
465
  * queue. Metadata is associated with the queue as name-values pairs.
466
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-queue-metadata
466
+ * @see https://learn.microsoft.com/rest/api/storageservices/get-queue-metadata
467
467
  *
468
468
  * WARNING: The `metadata` object returned in the response will have its keys in lowercase, even if
469
469
  * they originally contained uppercase characters. This differs from the metadata keys returned by
@@ -479,7 +479,7 @@ export declare class QueueClient extends StorageClient {
479
479
  *
480
480
  * If no option provided, or no metadata defined in the option parameter, the queue
481
481
  * metadata will be removed.
482
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-queue-metadata
482
+ * @see https://learn.microsoft.com/rest/api/storageservices/set-queue-metadata
483
483
  *
484
484
  * @param metadata - If no metadata provided, all existing metadata will be removed.
485
485
  * @param options - Options to Queue set metadata operation.
@@ -492,7 +492,7 @@ export declare class QueueClient extends StorageClient {
492
492
  * WARNING: JavaScript Date will potential lost precision when parsing start and expiry string.
493
493
  * For example, new Date("2018-12-31T03:44:23.8827891Z").toISOString() will get "2018-12-31T03:44:23.882Z".
494
494
  *
495
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-queue-acl
495
+ * @see https://learn.microsoft.com/rest/api/storageservices/get-queue-acl
496
496
  *
497
497
  * @param options - Options to Queue get access policy operation.
498
498
  * @returns Response data for the Queue get access policy operation.
@@ -500,7 +500,7 @@ export declare class QueueClient extends StorageClient {
500
500
  getAccessPolicy(options?: QueueGetAccessPolicyOptions): Promise<QueueGetAccessPolicyResponse>;
501
501
  /**
502
502
  * Sets stored access policies for the queue that may be used with Shared Access Signatures.
503
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-queue-acl
503
+ * @see https://learn.microsoft.com/rest/api/storageservices/set-queue-acl
504
504
  *
505
505
  * @param queueAcl -
506
506
  * @param options - Options to Queue set access policy operation.
@@ -509,7 +509,7 @@ export declare class QueueClient extends StorageClient {
509
509
  setAccessPolicy(queueAcl?: SignedIdentifier[], options?: QueueSetAccessPolicyOptions): Promise<QueueSetAccessPolicyResponse>;
510
510
  /**
511
511
  * Clear deletes all messages from a queue.
512
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/clear-messages
512
+ * @see https://learn.microsoft.com/rest/api/storageservices/clear-messages
513
513
  *
514
514
  * @param options - Options to clear messages operation.
515
515
  * @returns Response data for the clear messages operation.
@@ -520,7 +520,7 @@ export declare class QueueClient extends StorageClient {
520
520
  * the message should be invisible to Dequeue and Peek operations.
521
521
  * The message content is up to 64KB in size, and must be in a format that can be included in an XML request with UTF-8 encoding.
522
522
  * To include markup in the message, the contents of the message must either be XML-escaped or Base64-encode.
523
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/put-message
523
+ * @see https://learn.microsoft.com/rest/api/storageservices/put-message
524
524
  *
525
525
  * @param messageText - Text of the message to send
526
526
  * @param options - Options to send messages operation.
@@ -550,7 +550,7 @@ export declare class QueueClient extends StorageClient {
550
550
  sendMessage(messageText: string, options?: QueueSendMessageOptions): Promise<QueueSendMessageResponse>;
551
551
  /**
552
552
  * receiveMessages retrieves one or more messages from the front of the queue.
553
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-messages
553
+ * @see https://learn.microsoft.com/rest/api/storageservices/get-messages
554
554
  *
555
555
  * @param options - Options to receive messages operation.
556
556
  * @returns Response data for the receive messages operation.
@@ -586,7 +586,7 @@ export declare class QueueClient extends StorageClient {
586
586
  receiveMessages(options?: QueueReceiveMessageOptions): Promise<QueueReceiveMessageResponse>;
587
587
  /**
588
588
  * peekMessages retrieves one or more messages from the front of the queue but does not alter the visibility of the message.
589
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/peek-messages
589
+ * @see https://learn.microsoft.com/rest/api/storageservices/peek-messages
590
590
  *
591
591
  * @param options - Options to peek messages operation.
592
592
  * @returns Response data for the peek messages operation.
@@ -612,7 +612,7 @@ export declare class QueueClient extends StorageClient {
612
612
  peekMessages(options?: QueuePeekMessagesOptions): Promise<QueuePeekMessagesResponse>;
613
613
  /**
614
614
  * deleteMessage permanently removes the specified message from its queue.
615
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-message2
615
+ * @see https://learn.microsoft.com/rest/api/storageservices/delete-message2
616
616
  *
617
617
  * @param messageId - Id of the message.
618
618
  * @param popReceipt - A valid pop receipt value returned from an earlier call to the receive messages or update message operation.
@@ -624,7 +624,7 @@ export declare class QueueClient extends StorageClient {
624
624
  * Update changes a message's visibility timeout and contents.
625
625
  * The message content is up to 64KB in size, and must be in a format that can be included in an XML request with UTF-8 encoding.
626
626
  * To include markup in the message, the contents of the message must either be XML-escaped or Base64-encode.
627
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/update-message
627
+ * @see https://learn.microsoft.com/rest/api/storageservices/update-message
628
628
  *
629
629
  * @param messageId - Id of the message
630
630
  * @param popReceipt - A valid pop receipt value returned from an earlier call to the receive messages or update message operation.
@@ -645,7 +645,7 @@ export declare class QueueClient extends StorageClient {
645
645
  * Generates a Service Shared Access Signature (SAS) URI based on the client properties
646
646
  * and parameters passed in. The SAS is signed by the shared key credential of the client.
647
647
  *
648
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
648
+ * @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
649
649
  *
650
650
  * @param options - Optional parameters.
651
651
  * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
@@ -657,7 +657,7 @@ export declare class QueueClient extends StorageClient {
657
657
  * Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
658
658
  * and parameters passed in. The SAS is signed by the shared key credential of the client.
659
659
  *
660
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
660
+ * @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
661
661
  *
662
662
  * @param options - Optional parameters.
663
663
  * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
@@ -1 +1 @@
1
- {"version":3,"file":"QueueClient.d.ts","sourceRoot":"","sources":["../../src/QueueClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGxD,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EAEjB,mBAAmB,EACnB,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4B,EAC5B,wBAAwB,EACxB,qBAAqB,EACrB,mBAAmB,EAQpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO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B,GACrC,OAAO,CAAC,yBAAyB,CAAC;IA0BrC;;;;;;;;OAQG;IACU,aAAa,CACxB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,yBAA8B,GACtC,OAAO,CAAC,0BAA0B,CAAC;IAQtC;;;;;;;;;;;;;;;;OAgBG;IACU,aAAa,CACxB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,EAChB,iBAAiB,CAAC,EAAE,MAAM,EAC1B,OAAO,GAAE,yBAA8B,GACtC,OAAO,CAAC,0BAA0B,CAAC;IAgBtC,OAAO,CAAC,mBAAmB;IAoC3B;;;;;;;;;;OAUG;IACI,cAAc,CAAC,OAAO,EAAE,0BAA0B,GAAG,MAAM;IAkBlE;;;;;;;;;;OAUG;IAEI,uBAAuB,CAAC,OAAO,EAAE,0BAA0B,GAAG,MAAM;CAe5E"}
@@ -5,8 +5,8 @@ import { isNode } from "@azure/core-util";
5
5
  import { newPipeline, isPipelineLike } from "./Pipeline.js";
6
6
  import { StorageClient, getStorageClientContext } from "./StorageClient.js";
7
7
  import { appendToURLPath, extractConnectionStringParts, isIpEndpointStyle, truncatedISO8061Date, appendToURLQuery, assertResponse, } from "./utils/utils.common.js";
8
- import { StorageSharedKeyCredential } from "@azure/storage-blob";
9
- import { AnonymousCredential } from "@azure/storage-blob";
8
+ import { StorageSharedKeyCredential } from "@azure/storage-common";
9
+ import { AnonymousCredential } from "@azure/storage-common";
10
10
  import { tracingClient } from "./utils/tracing.js";
11
11
  import { generateQueueSASQueryParameters, generateQueueSASQueryParametersInternal, } from "./QueueSASSignatureValues.js";
12
12
  import { getDefaultProxySettings } from "@azure/core-rest-pipeline";
@@ -14,6 +14,16 @@ import { getDefaultProxySettings } from "@azure/core-rest-pipeline";
14
14
  * A QueueClient represents a URL to an Azure Storage Queue's messages allowing you to manipulate its messages.
15
15
  */
16
16
  export class QueueClient extends StorageClient {
17
+ /**
18
+ * messagesContext provided by protocol layer.
19
+ */
20
+ messagesContext;
21
+ /**
22
+ * queueContext provided by protocol layer.
23
+ */
24
+ queueContext;
25
+ _name;
26
+ _messagesUrl;
17
27
  /**
18
28
  * The name of the queue.
19
29
  */
@@ -97,7 +107,7 @@ export class QueueClient extends StorageClient {
97
107
  }
98
108
  /**
99
109
  * Creates a new queue under the specified account.
100
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-queue4
110
+ * @see https://learn.microsoft.com/rest/api/storageservices/create-queue4
101
111
  *
102
112
  * @param options - Options to Queue create operation.
103
113
  * @returns Response data for the Queue create operation.
@@ -130,26 +140,35 @@ export class QueueClient extends StorageClient {
130
140
  /**
131
141
  * Creates a new queue under the specified account if it doesn't already exist.
132
142
  * If the queue already exists, it is not changed.
133
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-queue4
143
+ * @see https://learn.microsoft.com/rest/api/storageservices/create-queue4
134
144
  *
135
145
  * @param options -
136
146
  */
137
147
  async createIfNotExists(options = {}) {
138
148
  return tracingClient.withSpan("QueueClient-createIfNotExists", options, async (updatedOptions) => {
139
- var _a, _b;
140
149
  try {
141
150
  const response = await this.create(updatedOptions);
142
151
  // When a queue with the specified name already exists, the Queue service checks the metadata associated with the existing queue.
143
152
  // If the existing metadata is identical to the metadata specified on the Create Queue request, status code 204 (No Content) is returned.
144
153
  // If the existing metadata does not match, the operation fails and status code 409 (Conflict) is returned.
145
154
  if (response._response.status === 204) {
146
- return Object.assign({ succeeded: false }, response);
155
+ return {
156
+ succeeded: false,
157
+ ...response,
158
+ };
147
159
  }
148
- return Object.assign({ succeeded: true }, response);
160
+ return {
161
+ succeeded: true,
162
+ ...response,
163
+ };
149
164
  }
150
165
  catch (e) {
151
- if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "QueueAlreadyExists") {
152
- return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });
166
+ if (e.details?.errorCode === "QueueAlreadyExists") {
167
+ return {
168
+ succeeded: false,
169
+ ...e.response?.parsedHeaders,
170
+ _response: e.response,
171
+ };
153
172
  }
154
173
  throw e;
155
174
  }
@@ -157,20 +176,26 @@ export class QueueClient extends StorageClient {
157
176
  }
158
177
  /**
159
178
  * Deletes the specified queue permanently if it exists.
160
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-queue3
179
+ * @see https://learn.microsoft.com/rest/api/storageservices/delete-queue3
161
180
  *
162
181
  * @param options -
163
182
  */
164
183
  async deleteIfExists(options = {}) {
165
184
  return tracingClient.withSpan("QueueClient-deleteIfExists", options, async (updatedOptions) => {
166
- var _a, _b;
167
185
  try {
168
186
  const res = await this.delete(updatedOptions);
169
- return Object.assign({ succeeded: true }, res);
187
+ return {
188
+ succeeded: true,
189
+ ...res,
190
+ };
170
191
  }
171
192
  catch (e) {
172
- if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "QueueNotFound") {
173
- return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });
193
+ if (e.details?.errorCode === "QueueNotFound") {
194
+ return {
195
+ succeeded: false,
196
+ ...e.response?.parsedHeaders,
197
+ _response: e.response,
198
+ };
174
199
  }
175
200
  throw e;
176
201
  }
@@ -178,7 +203,7 @@ export class QueueClient extends StorageClient {
178
203
  }
179
204
  /**
180
205
  * Deletes the specified queue permanently.
181
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-queue3
206
+ * @see https://learn.microsoft.com/rest/api/storageservices/delete-queue3
182
207
  *
183
208
  * @param options - Options to Queue delete operation.
184
209
  * @returns Response data for the Queue delete operation.
@@ -237,7 +262,7 @@ export class QueueClient extends StorageClient {
237
262
  /**
238
263
  * Gets all user-defined metadata and system properties for the specified
239
264
  * queue. Metadata is associated with the queue as name-values pairs.
240
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-queue-metadata
265
+ * @see https://learn.microsoft.com/rest/api/storageservices/get-queue-metadata
241
266
  *
242
267
  * WARNING: The `metadata` object returned in the response will have its keys in lowercase, even if
243
268
  * they originally contained uppercase characters. This differs from the metadata keys returned by
@@ -257,7 +282,7 @@ export class QueueClient extends StorageClient {
257
282
  *
258
283
  * If no option provided, or no metadata defined in the option parameter, the queue
259
284
  * metadata will be removed.
260
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-queue-metadata
285
+ * @see https://learn.microsoft.com/rest/api/storageservices/set-queue-metadata
261
286
  *
262
287
  * @param metadata - If no metadata provided, all existing metadata will be removed.
263
288
  * @param options - Options to Queue set metadata operation.
@@ -265,7 +290,10 @@ export class QueueClient extends StorageClient {
265
290
  */
266
291
  async setMetadata(metadata, options = {}) {
267
292
  return tracingClient.withSpan("QueueClient-setMetadata", options, async (updatedOptions) => {
268
- return assertResponse(await this.queueContext.setMetadata(Object.assign(Object.assign({}, updatedOptions), { metadata })));
293
+ return assertResponse(await this.queueContext.setMetadata({
294
+ ...updatedOptions,
295
+ metadata,
296
+ }));
269
297
  });
270
298
  }
271
299
  /**
@@ -274,7 +302,7 @@ export class QueueClient extends StorageClient {
274
302
  * WARNING: JavaScript Date will potential lost precision when parsing start and expiry string.
275
303
  * For example, new Date("2018-12-31T03:44:23.8827891Z").toISOString() will get "2018-12-31T03:44:23.882Z".
276
304
  *
277
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-queue-acl
305
+ * @see https://learn.microsoft.com/rest/api/storageservices/get-queue-acl
278
306
  *
279
307
  * @param options - Options to Queue get access policy operation.
280
308
  * @returns Response data for the Queue get access policy operation.
@@ -317,7 +345,7 @@ export class QueueClient extends StorageClient {
317
345
  }
318
346
  /**
319
347
  * Sets stored access policies for the queue that may be used with Shared Access Signatures.
320
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-queue-acl
348
+ * @see https://learn.microsoft.com/rest/api/storageservices/set-queue-acl
321
349
  *
322
350
  * @param queueAcl -
323
351
  * @param options - Options to Queue set access policy operation.
@@ -340,12 +368,15 @@ export class QueueClient extends StorageClient {
340
368
  id: identifier.id,
341
369
  });
342
370
  }
343
- return assertResponse(await this.queueContext.setAccessPolicy(Object.assign(Object.assign({}, updatedOptions), { queueAcl: acl })));
371
+ return assertResponse(await this.queueContext.setAccessPolicy({
372
+ ...updatedOptions,
373
+ queueAcl: acl,
374
+ }));
344
375
  });
345
376
  }
346
377
  /**
347
378
  * Clear deletes all messages from a queue.
348
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/clear-messages
379
+ * @see https://learn.microsoft.com/rest/api/storageservices/clear-messages
349
380
  *
350
381
  * @param options - Options to clear messages operation.
351
382
  * @returns Response data for the clear messages operation.
@@ -360,7 +391,7 @@ export class QueueClient extends StorageClient {
360
391
  * the message should be invisible to Dequeue and Peek operations.
361
392
  * The message content is up to 64KB in size, and must be in a format that can be included in an XML request with UTF-8 encoding.
362
393
  * To include markup in the message, the contents of the message must either be XML-escaped or Base64-encode.
363
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/put-message
394
+ * @see https://learn.microsoft.com/rest/api/storageservices/put-message
364
395
  *
365
396
  * @param messageText - Text of the message to send
366
397
  * @param options - Options to send messages operation.
@@ -410,7 +441,7 @@ export class QueueClient extends StorageClient {
410
441
  }
411
442
  /**
412
443
  * receiveMessages retrieves one or more messages from the front of the queue.
413
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-messages
444
+ * @see https://learn.microsoft.com/rest/api/storageservices/get-messages
414
445
  *
415
446
  * @param options - Options to receive messages operation.
416
447
  * @returns Response data for the receive messages operation.
@@ -463,7 +494,7 @@ export class QueueClient extends StorageClient {
463
494
  }
464
495
  /**
465
496
  * peekMessages retrieves one or more messages from the front of the queue but does not alter the visibility of the message.
466
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/peek-messages
497
+ * @see https://learn.microsoft.com/rest/api/storageservices/peek-messages
467
498
  *
468
499
  * @param options - Options to peek messages operation.
469
500
  * @returns Response data for the peek messages operation.
@@ -506,7 +537,7 @@ export class QueueClient extends StorageClient {
506
537
  }
507
538
  /**
508
539
  * deleteMessage permanently removes the specified message from its queue.
509
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-message2
540
+ * @see https://learn.microsoft.com/rest/api/storageservices/delete-message2
510
541
  *
511
542
  * @param messageId - Id of the message.
512
543
  * @param popReceipt - A valid pop receipt value returned from an earlier call to the receive messages or update message operation.
@@ -522,7 +553,7 @@ export class QueueClient extends StorageClient {
522
553
  * Update changes a message's visibility timeout and contents.
523
554
  * The message content is up to 64KB in size, and must be in a format that can be included in an XML request with UTF-8 encoding.
524
555
  * To include markup in the message, the contents of the message must either be XML-escaped or Base64-encode.
525
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/update-message
556
+ * @see https://learn.microsoft.com/rest/api/storageservices/update-message
526
557
  *
527
558
  * @param messageId - Id of the message
528
559
  * @param popReceipt - A valid pop receipt value returned from an earlier call to the receive messages or update message operation.
@@ -588,7 +619,7 @@ export class QueueClient extends StorageClient {
588
619
  * Generates a Service Shared Access Signature (SAS) URI based on the client properties
589
620
  * and parameters passed in. The SAS is signed by the shared key credential of the client.
590
621
  *
591
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
622
+ * @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
592
623
  *
593
624
  * @param options - Optional parameters.
594
625
  * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
@@ -597,7 +628,10 @@ export class QueueClient extends StorageClient {
597
628
  if (!(this.credential instanceof StorageSharedKeyCredential)) {
598
629
  throw RangeError("Can only generate the SAS when the client is initialized with a shared key credential");
599
630
  }
600
- const sas = generateQueueSASQueryParameters(Object.assign({ queueName: this.name }, options), this.credential).toString();
631
+ const sas = generateQueueSASQueryParameters({
632
+ queueName: this.name,
633
+ ...options,
634
+ }, this.credential).toString();
601
635
  return appendToURLQuery(this.url, sas);
602
636
  }
603
637
  /**
@@ -606,7 +640,7 @@ export class QueueClient extends StorageClient {
606
640
  * Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
607
641
  * and parameters passed in. The SAS is signed by the shared key credential of the client.
608
642
  *
609
- * @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
643
+ * @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
610
644
  *
611
645
  * @param options - Optional parameters.
612
646
  * @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
@@ -616,7 +650,10 @@ export class QueueClient extends StorageClient {
616
650
  if (!(this.credential instanceof StorageSharedKeyCredential)) {
617
651
  throw RangeError("Can only generate the SAS when the client is initialized with a shared key credential");
618
652
  }
619
- return generateQueueSASQueryParametersInternal(Object.assign({ queueName: this.name }, options), this.credential).stringToSign;
653
+ return generateQueueSASQueryParametersInternal({
654
+ queueName: this.name,
655
+ ...options,
656
+ }, this.credential).stringToSign;
620
657
  }
621
658
  }
622
659
  //# sourceMappingURL=QueueClient.js.map