@azure/storage-queue 12.28.0-beta.1 → 12.28.1-alpha.20250925.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/browser/AccountSASPermissions.js +32 -34
- package/dist/browser/AccountSASPermissions.js.map +1 -1
- package/dist/browser/AccountSASResourceTypes.js +12 -14
- package/dist/browser/AccountSASResourceTypes.js.map +1 -1
- package/dist/browser/AccountSASServices.js +16 -18
- package/dist/browser/AccountSASServices.js.map +1 -1
- package/dist/browser/AccountSASSignatureValues.d.ts +1 -1
- package/dist/browser/AccountSASSignatureValues.d.ts.map +1 -1
- package/dist/browser/AccountSASSignatureValues.js.map +1 -1
- package/dist/browser/Pipeline.d.ts +2 -3
- package/dist/browser/Pipeline.d.ts.map +1 -1
- package/dist/browser/Pipeline.js +28 -19
- package/dist/browser/Pipeline.js.map +1 -1
- package/dist/browser/QueueClient.d.ts +2 -2
- package/dist/browser/QueueClient.d.ts.map +1 -1
- package/dist/browser/QueueClient.js +52 -15
- package/dist/browser/QueueClient.js.map +1 -1
- package/dist/browser/QueueSASPermissions.js +16 -18
- package/dist/browser/QueueSASPermissions.js.map +1 -1
- package/dist/browser/QueueSASSignatureValues.d.ts +1 -1
- package/dist/browser/QueueSASSignatureValues.d.ts.map +1 -1
- package/dist/browser/QueueSASSignatureValues.js.map +1 -1
- package/dist/browser/QueueServiceClient.d.ts +2 -2
- package/dist/browser/QueueServiceClient.d.ts.map +1 -1
- package/dist/browser/QueueServiceClient.js +50 -46
- package/dist/browser/QueueServiceClient.js.map +1 -1
- package/dist/browser/SASQueryParameters.js +49 -0
- package/dist/browser/SASQueryParameters.js.map +1 -1
- package/dist/browser/StorageClient.d.ts +2 -2
- package/dist/browser/StorageClient.d.ts.map +1 -1
- package/dist/browser/StorageClient.js +23 -0
- package/dist/browser/StorageClient.js.map +1 -1
- package/dist/browser/StorageContextClient.js +1 -1
- package/dist/browser/StorageContextClient.js.map +1 -1
- package/dist/browser/generated/src/operations/messageId.js +1 -0
- package/dist/browser/generated/src/operations/messageId.js.map +1 -1
- package/dist/browser/generated/src/operations/messages.js +1 -0
- package/dist/browser/generated/src/operations/messages.js.map +1 -1
- package/dist/browser/generated/src/operations/queue.js +1 -0
- package/dist/browser/generated/src/operations/queue.js.map +1 -1
- package/dist/browser/generated/src/operations/service.js +1 -0
- package/dist/browser/generated/src/operations/service.js.map +1 -1
- package/dist/browser/generated/src/storageClient.js +14 -4
- package/dist/browser/generated/src/storageClient.js.map +1 -1
- package/dist/browser/index-browser.d.mts.map +1 -1
- package/dist/browser/index-browser.mjs.map +1 -1
- package/dist/browser/index.d.ts +1 -7
- package/dist/browser/index.js +1 -7
- package/dist/browser/utils/constants.d.ts.map +1 -1
- package/dist/browser/utils/constants.js +1 -1
- package/dist/browser/utils/constants.js.map +1 -1
- package/dist/browser/utils/utils.common.js +1 -2
- package/dist/browser/utils/utils.common.js.map +1 -1
- package/dist/commonjs/AccountSASPermissions.js +32 -34
- package/dist/commonjs/AccountSASPermissions.js.map +1 -1
- package/dist/commonjs/AccountSASResourceTypes.js +12 -14
- package/dist/commonjs/AccountSASResourceTypes.js.map +1 -1
- package/dist/commonjs/AccountSASServices.js +16 -18
- package/dist/commonjs/AccountSASServices.js.map +1 -1
- package/dist/commonjs/AccountSASSignatureValues.d.ts +1 -1
- package/dist/commonjs/AccountSASSignatureValues.d.ts.map +1 -1
- package/dist/commonjs/AccountSASSignatureValues.js.map +1 -1
- package/dist/commonjs/Pipeline.d.ts +2 -3
- package/dist/commonjs/Pipeline.d.ts.map +1 -1
- package/dist/commonjs/Pipeline.js +39 -30
- package/dist/commonjs/Pipeline.js.map +1 -1
- package/dist/commonjs/QueueClient.d.ts +2 -2
- package/dist/commonjs/QueueClient.d.ts.map +1 -1
- package/dist/commonjs/QueueClient.js +59 -22
- package/dist/commonjs/QueueClient.js.map +1 -1
- package/dist/commonjs/QueueSASPermissions.js +16 -18
- package/dist/commonjs/QueueSASPermissions.js.map +1 -1
- package/dist/commonjs/QueueSASSignatureValues.d.ts +1 -1
- package/dist/commonjs/QueueSASSignatureValues.d.ts.map +1 -1
- package/dist/commonjs/QueueSASSignatureValues.js.map +1 -1
- package/dist/commonjs/QueueServiceClient.d.ts +2 -2
- package/dist/commonjs/QueueServiceClient.d.ts.map +1 -1
- package/dist/commonjs/QueueServiceClient.js +57 -53
- package/dist/commonjs/QueueServiceClient.js.map +1 -1
- package/dist/commonjs/SASQueryParameters.js +49 -0
- package/dist/commonjs/SASQueryParameters.js.map +1 -1
- package/dist/commonjs/StorageClient.d.ts +2 -2
- package/dist/commonjs/StorageClient.d.ts.map +1 -1
- package/dist/commonjs/StorageClient.js +23 -0
- package/dist/commonjs/StorageClient.js.map +1 -1
- package/dist/commonjs/StorageContextClient.js +1 -1
- package/dist/commonjs/StorageContextClient.js.map +1 -1
- package/dist/commonjs/generated/src/operations/messageId.js +1 -0
- package/dist/commonjs/generated/src/operations/messageId.js.map +1 -1
- package/dist/commonjs/generated/src/operations/messages.js +1 -0
- package/dist/commonjs/generated/src/operations/messages.js.map +1 -1
- package/dist/commonjs/generated/src/operations/queue.js +1 -0
- package/dist/commonjs/generated/src/operations/queue.js.map +1 -1
- package/dist/commonjs/generated/src/operations/service.js +1 -0
- package/dist/commonjs/generated/src/operations/service.js.map +1 -1
- package/dist/commonjs/generated/src/storageClient.js +14 -4
- package/dist/commonjs/generated/src/storageClient.js.map +1 -1
- package/dist/commonjs/index.d.ts +1 -9
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +13 -19
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/commonjs/utils/constants.d.ts.map +1 -1
- package/dist/commonjs/utils/constants.js +1 -1
- package/dist/commonjs/utils/constants.js.map +1 -1
- package/dist/commonjs/utils/utils.common.js +1 -2
- package/dist/commonjs/utils/utils.common.js.map +1 -1
- package/dist/esm/AccountSASPermissions.js +32 -34
- package/dist/esm/AccountSASPermissions.js.map +1 -1
- package/dist/esm/AccountSASResourceTypes.js +12 -14
- package/dist/esm/AccountSASResourceTypes.js.map +1 -1
- package/dist/esm/AccountSASServices.js +16 -18
- package/dist/esm/AccountSASServices.js.map +1 -1
- package/dist/esm/AccountSASSignatureValues.d.ts +1 -1
- package/dist/esm/AccountSASSignatureValues.d.ts.map +1 -1
- package/dist/esm/AccountSASSignatureValues.js.map +1 -1
- package/dist/esm/Pipeline.d.ts +2 -3
- package/dist/esm/Pipeline.d.ts.map +1 -1
- package/dist/esm/Pipeline.js +28 -19
- package/dist/esm/Pipeline.js.map +1 -1
- package/dist/esm/QueueClient.d.ts +2 -2
- package/dist/esm/QueueClient.d.ts.map +1 -1
- package/dist/esm/QueueClient.js +52 -15
- package/dist/esm/QueueClient.js.map +1 -1
- package/dist/esm/QueueSASPermissions.js +16 -18
- package/dist/esm/QueueSASPermissions.js.map +1 -1
- package/dist/esm/QueueSASSignatureValues.d.ts +1 -1
- package/dist/esm/QueueSASSignatureValues.d.ts.map +1 -1
- package/dist/esm/QueueSASSignatureValues.js.map +1 -1
- package/dist/esm/QueueServiceClient.d.ts +2 -2
- package/dist/esm/QueueServiceClient.d.ts.map +1 -1
- package/dist/esm/QueueServiceClient.js +50 -46
- package/dist/esm/QueueServiceClient.js.map +1 -1
- package/dist/esm/SASQueryParameters.js +49 -0
- package/dist/esm/SASQueryParameters.js.map +1 -1
- package/dist/esm/StorageClient.d.ts +2 -2
- package/dist/esm/StorageClient.d.ts.map +1 -1
- package/dist/esm/StorageClient.js +23 -0
- package/dist/esm/StorageClient.js.map +1 -1
- package/dist/esm/StorageContextClient.js +1 -1
- package/dist/esm/StorageContextClient.js.map +1 -1
- package/dist/esm/generated/src/operations/messageId.js +1 -0
- package/dist/esm/generated/src/operations/messageId.js.map +1 -1
- package/dist/esm/generated/src/operations/messages.js +1 -0
- package/dist/esm/generated/src/operations/messages.js.map +1 -1
- package/dist/esm/generated/src/operations/queue.js +1 -0
- package/dist/esm/generated/src/operations/queue.js.map +1 -1
- package/dist/esm/generated/src/operations/service.js +1 -0
- package/dist/esm/generated/src/operations/service.js.map +1 -1
- package/dist/esm/generated/src/storageClient.js +14 -4
- package/dist/esm/generated/src/storageClient.js.map +1 -1
- package/dist/esm/index.d.ts +1 -9
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/utils/constants.d.ts.map +1 -1
- package/dist/esm/utils/constants.js +1 -1
- package/dist/esm/utils/constants.js.map +1 -1
- package/dist/esm/utils/utils.common.js +1 -2
- package/dist/esm/utils/utils.common.js.map +1 -1
- package/dist/react-native/AccountSASPermissions.js +32 -34
- package/dist/react-native/AccountSASPermissions.js.map +1 -1
- package/dist/react-native/AccountSASResourceTypes.js +12 -14
- package/dist/react-native/AccountSASResourceTypes.js.map +1 -1
- package/dist/react-native/AccountSASServices.js +16 -18
- package/dist/react-native/AccountSASServices.js.map +1 -1
- package/dist/react-native/AccountSASSignatureValues.d.ts +1 -1
- package/dist/react-native/AccountSASSignatureValues.d.ts.map +1 -1
- package/dist/react-native/AccountSASSignatureValues.js.map +1 -1
- package/dist/react-native/Pipeline.d.ts +2 -3
- package/dist/react-native/Pipeline.d.ts.map +1 -1
- package/dist/react-native/Pipeline.js +28 -19
- package/dist/react-native/Pipeline.js.map +1 -1
- package/dist/react-native/QueueClient.d.ts +2 -2
- package/dist/react-native/QueueClient.d.ts.map +1 -1
- package/dist/react-native/QueueClient.js +52 -15
- package/dist/react-native/QueueClient.js.map +1 -1
- package/dist/react-native/QueueSASPermissions.js +16 -18
- package/dist/react-native/QueueSASPermissions.js.map +1 -1
- package/dist/react-native/QueueSASSignatureValues.d.ts +1 -1
- package/dist/react-native/QueueSASSignatureValues.d.ts.map +1 -1
- package/dist/react-native/QueueSASSignatureValues.js.map +1 -1
- package/dist/react-native/QueueServiceClient.d.ts +2 -2
- package/dist/react-native/QueueServiceClient.d.ts.map +1 -1
- package/dist/react-native/QueueServiceClient.js +50 -46
- package/dist/react-native/QueueServiceClient.js.map +1 -1
- package/dist/react-native/SASQueryParameters.js +49 -0
- package/dist/react-native/SASQueryParameters.js.map +1 -1
- package/dist/react-native/StorageClient.d.ts +2 -2
- package/dist/react-native/StorageClient.d.ts.map +1 -1
- package/dist/react-native/StorageClient.js +23 -0
- package/dist/react-native/StorageClient.js.map +1 -1
- package/dist/react-native/StorageContextClient.js +1 -1
- package/dist/react-native/StorageContextClient.js.map +1 -1
- package/dist/react-native/generated/src/operations/messageId.js +1 -0
- package/dist/react-native/generated/src/operations/messageId.js.map +1 -1
- package/dist/react-native/generated/src/operations/messages.js +1 -0
- package/dist/react-native/generated/src/operations/messages.js.map +1 -1
- package/dist/react-native/generated/src/operations/queue.js +1 -0
- package/dist/react-native/generated/src/operations/queue.js.map +1 -1
- package/dist/react-native/generated/src/operations/service.js +1 -0
- package/dist/react-native/generated/src/operations/service.js.map +1 -1
- package/dist/react-native/generated/src/storageClient.js +14 -4
- package/dist/react-native/generated/src/storageClient.js.map +1 -1
- package/dist/react-native/index.d.ts +1 -9
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +1 -9
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/utils/constants.d.ts.map +1 -1
- package/dist/react-native/utils/constants.js +1 -1
- package/dist/react-native/utils/constants.js.map +1 -1
- package/dist/react-native/utils/utils.common.js +1 -2
- package/dist/react-native/utils/utils.common.js.map +1 -1
- package/package.json +37 -39
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { StorageClient as StorageClientContext } from "./generated/src/index.js";
|
|
2
2
|
import type { Pipeline } from "./Pipeline.js";
|
|
3
3
|
import type { OperationTracingOptions } from "@azure/core-tracing";
|
|
4
|
-
import type { AnonymousCredential } from "@azure/storage-
|
|
5
|
-
import type { StorageSharedKeyCredential } from "@azure/storage-
|
|
4
|
+
import type { AnonymousCredential } from "@azure/storage-common";
|
|
5
|
+
import type { StorageSharedKeyCredential } from "@azure/storage-common";
|
|
6
6
|
import type { TokenCredential } from "@azure/core-auth";
|
|
7
7
|
/**
|
|
8
8
|
* An interface for options common to every remote operation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageClient.d.ts","sourceRoot":"","sources":["../../src/StorageClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEtF,OAAO,KAAK,EAAE,QAAQ,EAA0B,MAAM,eAAe,CAAC;AAGtE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"StorageClient.d.ts","sourceRoot":"","sources":["../../src/StorageClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEtF,OAAO,KAAK,EAAE,QAAQ,EAA0B,MAAM,eAAe,CAAC;AAGtE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,cAAc,CAAC,EAAE,uBAAuB,CAAC;CAC1C;AAED;;GAEG;AACH,8BAAsB,aAAa;IACjC;;OAEG;IACH,SAAgB,GAAG,EAAE,MAAM,CAAC;IAC5B,SAAgB,WAAW,EAAE,MAAM,CAAC;IAEpC;;;;OAIG;IACH,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAEtC;;;;;OAKG;IACH,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,0BAA0B,GAAG,mBAAmB,GAAG,eAAe,CAAC;IAElG;;;OAGG;IACH,SAAS,CAAC,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IAE9D;;;;OAIG;IACH,SAAS,aAAa,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ;CAOtD;AAMD;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC;AAE/C;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,oBAAoB,CAa7F"}
|
|
@@ -7,6 +7,29 @@ import { getAccountNameFromUrl } from "./utils/utils.common.js";
|
|
|
7
7
|
* A StorageClient represents a based client class for {@link QueueServiceClient}, {@link QueueClient} and etc.
|
|
8
8
|
*/
|
|
9
9
|
export class StorageClient {
|
|
10
|
+
/**
|
|
11
|
+
* URL string value.
|
|
12
|
+
*/
|
|
13
|
+
url;
|
|
14
|
+
accountName;
|
|
15
|
+
/**
|
|
16
|
+
* Request policy pipeline.
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
pipeline;
|
|
21
|
+
/**
|
|
22
|
+
* Credential factory in the pipeline to authenticate requests to the service, such as AnonymousCredential, StorageSharedKeyCredential.
|
|
23
|
+
* Initialized to an AnonymousCredential if not able to retrieve it from the pipeline.
|
|
24
|
+
*
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
credential;
|
|
28
|
+
/**
|
|
29
|
+
* StorageClientContext is a reference to protocol layer operations entry, which is
|
|
30
|
+
* generated by AutoRest generator.
|
|
31
|
+
*/
|
|
32
|
+
storageClientContext;
|
|
10
33
|
/**
|
|
11
34
|
* Creates an instance of StorageClient.
|
|
12
35
|
* @param url -
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageClient.js","sourceRoot":"","sources":["../../src/StorageClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,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,qGAAqG;IACrG,IAAI,eAAe,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/C,eAAe,CAAC,YAAY,GAAG;YAC7B,cAAc,EAAE,EAAE,GAAG,IAAI;SAC1B,CAAC;IACJ,CAAC;SAAM,IAAI,eAAe,CAAC,YAAY,CAAC,cAAc,KAAK,SAAS,EAAE,CAAC;QACpE,eAAe,CAAC,YAAoB,CAAC,cAAc,GAAG,EAAE,GAAG,IAAI,CAAC;IACnE,CAAC;IACD,OAAO,IAAI,oBAAoB,CAAC,GAAG,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC,CAAC;AACvE,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { StorageClient as StorageClientContext } from \"./generated/src/index.js\";\nimport { StorageContextClient } from \"./StorageContextClient.js\";\nimport type { Pipeline, StoragePipelineOptions } from \"./Pipeline.js\";\nimport { getCoreClientOptions, getCredentialFromPipeline } from \"./Pipeline.js\";\nimport { getAccountNameFromUrl } from \"./utils/utils.common.js\";\nimport type { OperationTracingOptions } from \"@azure/core-tracing\";\nimport type { AnonymousCredential } from \"@azure/storage-common\";\nimport type { StorageSharedKeyCredential } from \"@azure/storage-common\";\nimport type { TokenCredential } from \"@azure/core-auth\";\n\n/**\n * An interface for options common to every remote operation.\n */\nexport interface CommonOptions {\n /**\n * Options to configure spans created when tracing is enabled.\n */\n tracingOptions?: OperationTracingOptions;\n}\n\n/**\n * A StorageClient represents a based client class for {@link QueueServiceClient}, {@link QueueClient} and etc.\n */\nexport abstract class StorageClient {\n /**\n * URL string value.\n */\n public readonly url: string;\n public readonly accountName: string;\n\n /**\n * Request policy pipeline.\n *\n * @internal\n */\n protected readonly pipeline: Pipeline;\n\n /**\n * Credential factory in the pipeline to authenticate requests to the service, such as AnonymousCredential, StorageSharedKeyCredential.\n * Initialized to an AnonymousCredential if not able to retrieve it from the pipeline.\n *\n * @internal\n */\n protected readonly credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential;\n\n /**\n * StorageClientContext is a reference to protocol layer operations entry, which is\n * generated by AutoRest generator.\n */\n protected readonly storageClientContext: StorageClientContext;\n\n /**\n * Creates an instance of StorageClient.\n * @param url -\n * @param pipeline -\n */\n protected constructor(url: string, pipeline: Pipeline) {\n this.url = url;\n this.accountName = getAccountNameFromUrl(url);\n this.pipeline = pipeline;\n this.storageClientContext = getStorageClientContext(this.url, this.pipeline);\n this.credential = getCredentialFromPipeline(pipeline);\n }\n}\n\n// The following type is introduced to avoid a breaking change during the\n// migration of V6 SDK generator. Can be removed later when a really\n// breaking change is released.\n\n/**\n * Defines values for ListQueuesIncludeType.\n * Possible values include: 'metadata'\n * @readonly\n */\nexport type ListQueuesIncludeType = \"metadata\";\n\n/**\n * @internal\n */\nexport function getStorageClientContext(url: string, pipeline: Pipeline): StorageClientContext {\n const pipelineOptions = pipeline.options as StoragePipelineOptions;\n // Set maximum timeout for queue operations.\n // This was previously set manually in the retry policy specific to this package.\n // https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-queue-service-operations\n if (pipelineOptions.retryOptions === undefined) {\n pipelineOptions.retryOptions = {\n tryTimeoutInMs: 30 * 1000,\n };\n } else if (pipelineOptions.retryOptions.tryTimeoutInMs === undefined) {\n (pipelineOptions.retryOptions as any).tryTimeoutInMs = 30 * 1000;\n }\n return new StorageContextClient(url, getCoreClientOptions(pipeline));\n}\n"]}
|
|
@@ -6,7 +6,7 @@ import { StorageClient } from "./generated/src/index.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export class StorageContextClient extends StorageClient {
|
|
8
8
|
async sendOperationRequest(operationArguments, operationSpec) {
|
|
9
|
-
const operationSpecToSend =
|
|
9
|
+
const operationSpecToSend = { ...operationSpec };
|
|
10
10
|
if (operationSpecToSend.path === "/{queueName}" ||
|
|
11
11
|
operationSpecToSend.path === "/{queueName}/messages" ||
|
|
12
12
|
operationSpecToSend.path === "/{queueName}/messages/{messageid}") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageContextClient.js","sourceRoot":"","sources":["../../src/StorageContextClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD;;GAEG;AACH,MAAM,OAAO,oBAAqB,SAAQ,aAAa;IACrD,KAAK,CAAC,oBAAoB,CACxB,kBAAsC,EACtC,aAA4B;QAE5B,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"StorageContextClient.js","sourceRoot":"","sources":["../../src/StorageContextClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD;;GAEG;AACH,MAAM,OAAO,oBAAqB,SAAQ,aAAa;IACrD,KAAK,CAAC,oBAAoB,CACxB,kBAAsC,EACtC,aAA4B;QAE5B,MAAM,mBAAmB,GAAG,EAAE,GAAG,aAAa,EAAE,CAAC;QAEjD,IACE,mBAAmB,CAAC,IAAI,KAAK,cAAc;YAC3C,mBAAmB,CAAC,IAAI,KAAK,uBAAuB;YACpD,mBAAmB,CAAC,IAAI,KAAK,mCAAmC,EAChE,CAAC;YACD,mBAAmB,CAAC,IAAI,GAAG,EAAE,CAAC;QAChC,CAAC;QACD,OAAO,KAAK,CAAC,oBAAoB,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,CAAC;IAC7E,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationArguments, OperationSpec } from \"@azure/core-client\";\nimport { StorageClient } from \"./generated/src/index.js\";\n\n/**\n * @internal\n */\nexport class StorageContextClient extends StorageClient {\n async sendOperationRequest<T>(\n operationArguments: OperationArguments,\n operationSpec: OperationSpec,\n ): Promise<T> {\n const operationSpecToSend = { ...operationSpec };\n\n if (\n operationSpecToSend.path === \"/{queueName}\" ||\n operationSpecToSend.path === \"/{queueName}/messages\" ||\n operationSpecToSend.path === \"/{queueName}/messages/{messageid}\"\n ) {\n operationSpecToSend.path = \"\";\n }\n return super.sendOperationRequest(operationArguments, operationSpecToSend);\n }\n}\n"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing MessageId operations. */
|
|
12
12
|
export class MessageIdImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class MessageId class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messageId.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/messageId.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAStD,6CAA6C;AAC7C,MAAM,OAAO,aAAa;
|
|
1
|
+
{"version":3,"file":"messageId.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/messageId.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAStD,6CAA6C;AAC7C,MAAM,OAAO,aAAa;IACP,MAAM,CAAgB;IAEvC;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,UAAkB,EAClB,iBAAyB,EACzB,OAAuC;QAEvC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,UAAU,EAAE,iBAAiB,EAAE,OAAO,EAAE,EAC1C,mBAAmB,C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B;SACvD;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,gBAAgB,EAAE,UAAU,CAAC,UAAU,CAAC;IACrE,aAAa,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;IAC/B,gBAAgB,EAAE;QAChB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,OAAO;KACnB;IACD,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,aAAa;CAC1B,CAAC","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 { MessageId } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageClient } from \"../storageClient.js\";\nimport {\n MessageIdUpdateOptionalParams,\n MessageIdUpdateResponse,\n MessageIdDeleteOptionalParams,\n MessageIdDeleteResponse\n} from \"../models/index.js\";\n\n/** Class containing MessageId operations. */\nexport class MessageIdImpl implements MessageId {\n private readonly client: StorageClient;\n\n /**\n * Initialize a new instance of the class MessageId class.\n * @param client Reference to the service client\n */\n constructor(client: StorageClient) {\n this.client = client;\n }\n\n /**\n * The Update operation was introduced with version 2011-08-18 of the Queue service API. The Update\n * Message operation updates the visibility timeout of a message. You can also use this operation to\n * update the contents of a message. A message must be in a format that can be included in an XML\n * request with UTF-8 encoding, and the encoded message can be up to 64KB in size.\n * @param popReceipt Required. Specifies the valid pop receipt value returned from an earlier call to\n * the Get Messages or Update Message operation.\n * @param visibilityTimeout Optional. Specifies the new visibility timeout value, in seconds, relative\n * to server time. The default value is 30 seconds. A specified value must be larger than or equal to 1\n * second, and cannot be larger than 7 days, or larger than 2 hours on REST protocol versions prior to\n * version 2011-08-18. The visibility timeout of a message can be set to a value later than the expiry\n * time.\n * @param options The options parameters.\n */\n update(\n popReceipt: string,\n visibilityTimeout: number,\n options?: MessageIdUpdateOptionalParams\n ): Promise<MessageIdUpdateResponse> {\n return this.client.sendOperationRequest(\n { popReceipt, visibilityTimeout, options },\n updateOperationSpec\n );\n }\n\n /**\n * The Delete operation deletes the specified message.\n * @param popReceipt Required. Specifies the valid pop receipt value returned from an earlier call to\n * the Get Messages or Update Message operation.\n * @param options The options parameters.\n */\n delete(\n popReceipt: string,\n options?: MessageIdDeleteOptionalParams\n ): Promise<MessageIdDeleteResponse> {\n return this.client.sendOperationRequest(\n { popReceipt, options },\n deleteOperationSpec\n );\n }\n}\n// Operation Specifications\nconst xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true);\n\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}/messages/{messageid}\",\n httpMethod: \"PUT\",\n responses: {\n 204: {\n headersMapper: Mappers.MessageIdUpdateHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.MessageIdUpdateExceptionHeaders\n }\n },\n requestBody: Parameters.queueMessage1,\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.popReceipt,\n Parameters.visibilityTimeout1\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.version,\n Parameters.requestId\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}/messages/{messageid}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {\n headersMapper: Mappers.MessageIdDeleteHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.MessageIdDeleteExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.popReceipt],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\n"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing Messages operations. */
|
|
12
12
|
export class MessagesImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class Messages class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/messages.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AActD,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,OAAO,CACL,OAAuC;QAEvC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,oBAAoB,CAAC,CAAC;IAC7E,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,OAAqC;QACzC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,kBAAkB,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CACL,YAA0B,EAC1B,OAAuC;QAEvC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,YAAY,EAAE,OAAO,EAAE,EACzB,oBAAoB,CACrB,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,IAAI,CAAC,OAAoC;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,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D,IAAI,EAAE,uBAAuB;IAC7B,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE;gBACV,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE;qBAC5D;iBACF;gBACD,cAAc,EAAE,oBAAoB;gBACpC,OAAO,EAAE,mBAAmB;gBAC5B,YAAY,EAAE,IAAI;gBAClB,cAAc,EAAE,cAAc;aAC/B;YACD,aAAa,EAAE,OAAO,CAAC,mBAAmB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;YAChC,aAAa,EAAE,OAAO,CAAC,4BAA4B;SACpD;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,QAAQ;KACpB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;IAC/B,gBAAgB,EAAE;QAChB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,OAAO;KACnB;IACD,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,aAAa;CAC1B,CAAC","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 { Messages } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageClient } from \"../storageClient.js\";\nimport {\n MessagesDequeueOptionalParams,\n MessagesDequeueResponse,\n MessagesClearOptionalParams,\n MessagesClearResponse,\n QueueMessage,\n MessagesEnqueueOptionalParams,\n MessagesEnqueueResponse,\n MessagesPeekOptionalParams,\n MessagesPeekResponse\n} from \"../models/index.js\";\n\n/** Class containing Messages operations. */\nexport class MessagesImpl implements Messages {\n private readonly client: StorageClient;\n\n /**\n * Initialize a new instance of the class Messages class.\n * @param client Reference to the service client\n */\n constructor(client: StorageClient) {\n this.client = client;\n }\n\n /**\n * The Dequeue operation retrieves one or more messages from the front of the queue.\n * @param options The options parameters.\n */\n dequeue(\n options?: MessagesDequeueOptionalParams\n ): Promise<MessagesDequeueResponse> {\n return this.client.sendOperationRequest({ options }, dequeueOperationSpec);\n }\n\n /**\n * The Clear operation deletes all messages from the specified queue.\n * @param options The options parameters.\n */\n clear(options?: MessagesClearOptionalParams): Promise<MessagesClearResponse> {\n return this.client.sendOperationRequest({ options }, clearOperationSpec);\n }\n\n /**\n * The Enqueue operation adds a new message to the back of the message queue. A visibility timeout can\n * also be specified to make the message invisible until the visibility timeout expires. A message must\n * be in a format that can be included in an XML request with UTF-8 encoding. The encoded message can\n * be up to 64 KB in size for versions 2011-08-18 and newer, or 8 KB in size for previous versions.\n * @param queueMessage A Message object which can be stored in a Queue\n * @param options The options parameters.\n */\n enqueue(\n queueMessage: QueueMessage,\n options?: MessagesEnqueueOptionalParams\n ): Promise<MessagesEnqueueResponse> {\n return this.client.sendOperationRequest(\n { queueMessage, options },\n enqueueOperationSpec\n );\n }\n\n /**\n * The Peek operation retrieves one or more messages from the front of the queue, but does not alter\n * the visibility of the message.\n * @param options The options parameters.\n */\n peek(options?: MessagesPeekOptionalParams): Promise<MessagesPeekResponse> {\n return this.client.sendOperationRequest({ options }, peekOperationSpec);\n }\n}\n// Operation Specifications\nconst xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true);\n\nconst dequeueOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}/messages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"DequeuedMessageItem\" }\n }\n },\n serializedName: \"DequeuedMessagesList\",\n xmlName: \"QueueMessagesList\",\n xmlIsWrapped: true,\n xmlElementName: \"QueueMessage\"\n },\n headersMapper: Mappers.MessagesDequeueHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.MessagesDequeueExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.numberOfMessages,\n Parameters.visibilityTimeout\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst clearOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}/messages\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {\n headersMapper: Mappers.MessagesClearHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.MessagesClearExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst enqueueOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}/messages\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"EnqueuedMessage\" } }\n },\n serializedName: \"EnqueuedMessageList\",\n xmlName: \"QueueMessagesList\",\n xmlIsWrapped: true,\n xmlElementName: \"QueueMessage\"\n },\n headersMapper: Mappers.MessagesEnqueueHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.MessagesEnqueueExceptionHeaders\n }\n },\n requestBody: Parameters.queueMessage,\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.visibilityTimeout,\n Parameters.messageTimeToLive\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.version,\n Parameters.requestId\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer\n};\nconst peekOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}/messages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"PeekedMessageItem\" }\n }\n },\n serializedName: \"PeekedMessagesList\",\n xmlName: \"QueueMessagesList\",\n xmlIsWrapped: true,\n xmlElementName: \"QueueMessage\"\n },\n headersMapper: Mappers.MessagesPeekHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.MessagesPeekExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.numberOfMessages,\n Parameters.peekonly\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/messages.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AActD,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IACN,MAAM,CAAgB;IAEvC;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,OAAO,CACL,OAAuC;QAEvC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,oBAAoB,CAAC,CAAC;IAC7E,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,OAAqC;QACzC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,kBAAkB,CAAC,CAAC;IAC3E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UAAU,CAAC,iBAAiB;KAC7B;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;IAC/B,gBAAgB,EAAE;QAChB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,SAAS;KACrB;IACD,KAAK,EAAE,IAAI;IACX,WAAW,EAAE,gCAAgC;IAC7C,SAAS,EAAE,KAAK;IAChB,UAAU,EAAE,aAAa;CAC1B,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,uBAAuB;IAC7B,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE;gBACV,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE;qBAC5D;iBACF;gBACD,cAAc,EAAE,oBAAoB;gBACpC,OAAO,EAAE,mBAAmB;gBAC5B,YAAY,EAAE,IAAI;gBAClB,cAAc,EAAE,cAAc;aAC/B;YACD,aAAa,EAAE,OAAO,CAAC,mBAAmB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;YAChC,aAAa,EAAE,OAAO,CAAC,4BAA4B;SACpD;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,QAAQ;KACpB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;IAC/B,gBAAgB,EAAE;QAChB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,OAAO;KACnB;IACD,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,aAAa;CAC1B,CAAC","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 { Messages } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageClient } from \"../storageClient.js\";\nimport {\n MessagesDequeueOptionalParams,\n MessagesDequeueResponse,\n MessagesClearOptionalParams,\n MessagesClearResponse,\n QueueMessage,\n MessagesEnqueueOptionalParams,\n MessagesEnqueueResponse,\n MessagesPeekOptionalParams,\n MessagesPeekResponse\n} from \"../models/index.js\";\n\n/** Class containing Messages operations. */\nexport class MessagesImpl implements Messages {\n private readonly client: StorageClient;\n\n /**\n * Initialize a new instance of the class Messages class.\n * @param client Reference to the service client\n */\n constructor(client: StorageClient) {\n this.client = client;\n }\n\n /**\n * The Dequeue operation retrieves one or more messages from the front of the queue.\n * @param options The options parameters.\n */\n dequeue(\n options?: MessagesDequeueOptionalParams\n ): Promise<MessagesDequeueResponse> {\n return this.client.sendOperationRequest({ options }, dequeueOperationSpec);\n }\n\n /**\n * The Clear operation deletes all messages from the specified queue.\n * @param options The options parameters.\n */\n clear(options?: MessagesClearOptionalParams): Promise<MessagesClearResponse> {\n return this.client.sendOperationRequest({ options }, clearOperationSpec);\n }\n\n /**\n * The Enqueue operation adds a new message to the back of the message queue. A visibility timeout can\n * also be specified to make the message invisible until the visibility timeout expires. A message must\n * be in a format that can be included in an XML request with UTF-8 encoding. The encoded message can\n * be up to 64 KB in size for versions 2011-08-18 and newer, or 8 KB in size for previous versions.\n * @param queueMessage A Message object which can be stored in a Queue\n * @param options The options parameters.\n */\n enqueue(\n queueMessage: QueueMessage,\n options?: MessagesEnqueueOptionalParams\n ): Promise<MessagesEnqueueResponse> {\n return this.client.sendOperationRequest(\n { queueMessage, options },\n enqueueOperationSpec\n );\n }\n\n /**\n * The Peek operation retrieves one or more messages from the front of the queue, but does not alter\n * the visibility of the message.\n * @param options The options parameters.\n */\n peek(options?: MessagesPeekOptionalParams): Promise<MessagesPeekResponse> {\n return this.client.sendOperationRequest({ options }, peekOperationSpec);\n }\n}\n// Operation Specifications\nconst xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true);\n\nconst dequeueOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}/messages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"DequeuedMessageItem\" }\n }\n },\n serializedName: \"DequeuedMessagesList\",\n xmlName: \"QueueMessagesList\",\n xmlIsWrapped: true,\n xmlElementName: \"QueueMessage\"\n },\n headersMapper: Mappers.MessagesDequeueHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.MessagesDequeueExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.numberOfMessages,\n Parameters.visibilityTimeout\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst clearOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}/messages\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {\n headersMapper: Mappers.MessagesClearHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.MessagesClearExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst enqueueOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}/messages\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"EnqueuedMessage\" } }\n },\n serializedName: \"EnqueuedMessageList\",\n xmlName: \"QueueMessagesList\",\n xmlIsWrapped: true,\n xmlElementName: \"QueueMessage\"\n },\n headersMapper: Mappers.MessagesEnqueueHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.MessagesEnqueueExceptionHeaders\n }\n },\n requestBody: Parameters.queueMessage,\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.visibilityTimeout,\n Parameters.messageTimeToLive\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.version,\n Parameters.requestId\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer\n};\nconst peekOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}/messages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"PeekedMessageItem\" }\n }\n },\n serializedName: \"PeekedMessagesList\",\n xmlName: \"QueueMessagesList\",\n xmlIsWrapped: true,\n xmlElementName: \"QueueMessage\"\n },\n headersMapper: Mappers.MessagesPeekHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.MessagesPeekExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.numberOfMessages,\n Parameters.peekonly\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\n"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing Queue operations. */
|
|
12
12
|
export class QueueImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class Queue class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queue.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/queue.ts"],"names":[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EAAE,aAAa;CAC1B,CAAC","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 { Queue } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageClient } from \"../storageClient.js\";\nimport {\n QueueCreateOptionalParams,\n QueueCreateResponse,\n QueueDeleteOptionalParams,\n QueueDeleteResponse,\n QueueGetPropertiesOptionalParams,\n QueueGetPropertiesResponse,\n QueueSetMetadataOptionalParams,\n QueueSetMetadataResponse,\n QueueGetAccessPolicyOptionalParams,\n QueueGetAccessPolicyResponse,\n QueueSetAccessPolicyOptionalParams,\n QueueSetAccessPolicyResponse\n} from \"../models/index.js\";\n\n/** Class containing Queue operations. */\nexport class QueueImpl implements Queue {\n private readonly client: StorageClient;\n\n /**\n * Initialize a new instance of the class Queue class.\n * @param client Reference to the service client\n */\n constructor(client: StorageClient) {\n this.client = client;\n }\n\n /**\n * creates a new queue under the given account.\n * @param options The options parameters.\n */\n create(options?: QueueCreateOptionalParams): Promise<QueueCreateResponse> {\n return this.client.sendOperationRequest({ options }, createOperationSpec);\n }\n\n /**\n * operation permanently deletes the specified queue\n * @param options The options parameters.\n */\n delete(options?: QueueDeleteOptionalParams): Promise<QueueDeleteResponse> {\n return this.client.sendOperationRequest({ options }, deleteOperationSpec);\n }\n\n /**\n * Retrieves user-defined metadata and queue properties on the specified queue. Metadata is associated\n * with the queue as name-values pairs.\n * @param options The options parameters.\n */\n getProperties(\n options?: QueueGetPropertiesOptionalParams\n ): Promise<QueueGetPropertiesResponse> {\n return this.client.sendOperationRequest(\n { options },\n getPropertiesOperationSpec\n );\n }\n\n /**\n * sets user-defined metadata on the specified queue. Metadata is associated with the queue as\n * name-value pairs.\n * @param options The options parameters.\n */\n setMetadata(\n options?: QueueSetMetadataOptionalParams\n ): Promise<QueueSetMetadataResponse> {\n return this.client.sendOperationRequest(\n { options },\n setMetadataOperationSpec\n );\n }\n\n /**\n * returns details about any stored access policies specified on the queue that may be used with Shared\n * Access Signatures.\n * @param options The options parameters.\n */\n getAccessPolicy(\n options?: QueueGetAccessPolicyOptionalParams\n ): Promise<QueueGetAccessPolicyResponse> {\n return this.client.sendOperationRequest(\n { options },\n getAccessPolicyOperationSpec\n );\n }\n\n /**\n * sets stored access policies for the queue that may be used with Shared Access Signatures\n * @param options The options parameters.\n */\n setAccessPolicy(\n options?: QueueSetAccessPolicyOptionalParams\n ): Promise<QueueSetAccessPolicyResponse> {\n return this.client.sendOperationRequest(\n { options },\n setAccessPolicyOperationSpec\n );\n }\n}\n// Operation Specifications\nconst xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.QueueCreateHeaders\n },\n 204: {\n headersMapper: Mappers.QueueCreateHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.QueueCreateExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1,\n Parameters.metadata\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {\n headersMapper: Mappers.QueueDeleteHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.QueueDeleteExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst getPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n headersMapper: Mappers.QueueGetPropertiesHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.QueueGetPropertiesExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp3],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst setMetadataOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}\",\n httpMethod: \"PUT\",\n responses: {\n 204: {\n headersMapper: Mappers.QueueSetMetadataHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.QueueSetMetadataExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp3],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1,\n Parameters.metadata\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst getAccessPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"SignedIdentifier\" }\n }\n },\n serializedName: \"SignedIdentifiers\",\n xmlName: \"SignedIdentifiers\",\n xmlIsWrapped: true,\n xmlElementName: \"SignedIdentifier\"\n },\n headersMapper: Mappers.QueueGetAccessPolicyHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.QueueGetAccessPolicyExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp4],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst setAccessPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}\",\n httpMethod: \"PUT\",\n responses: {\n 204: {\n headersMapper: Mappers.QueueSetAccessPolicyHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.QueueSetAccessPolicyExceptionHeaders\n }\n },\n requestBody: Parameters.queueAcl,\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp4],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.version,\n Parameters.requestId\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"queue.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/queue.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAiBtD,yCAAyC;AACzC,MAAM,OAAO,SAAS;IACH,MAAM,CAAgB;IAEvC;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,OAAmC;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,mBAAmB,CAAC,CAAC;IAC5E,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,OAAmC;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,mBAAmB,CAAC,CAAC;IAC5E,CAAC;IAED;;;;OAIG;IACH,aAAa,CACX,OAA0C;QAE1C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,OAAO,EAAE,EACX,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,WAAW,CACT,OAAwC;QAExC,OAAO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AE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;YAChC,aAAa,EAAE,OAAO,CAAC,oCAAoC;SAC5D;KACF;IACD,WAAW,EAAE,UAAU,CAAC,QAAQ;IAChC,eAAe,EAAE,CAAC,UAAU,CAAC,gBAAgB,EAAE,UAAU,CAAC,KAAK,CAAC;IAChE,aAAa,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;IAC/B,gBAAgB,EAAE;QAChB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,SAAS;KACrB;IACD,KAAK,EAAE,IAAI;IACX,WAAW,EAAE,gCAAgC;IAC7C,SAAS,EAAE,KAAK;IAChB,UAAU,EAAE,aAAa;CAC1B,CAAC","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 { Queue } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageClient } from \"../storageClient.js\";\nimport {\n QueueCreateOptionalParams,\n QueueCreateResponse,\n QueueDeleteOptionalParams,\n QueueDeleteResponse,\n QueueGetPropertiesOptionalParams,\n QueueGetPropertiesResponse,\n QueueSetMetadataOptionalParams,\n QueueSetMetadataResponse,\n QueueGetAccessPolicyOptionalParams,\n QueueGetAccessPolicyResponse,\n QueueSetAccessPolicyOptionalParams,\n QueueSetAccessPolicyResponse\n} from \"../models/index.js\";\n\n/** Class containing Queue operations. */\nexport class QueueImpl implements Queue {\n private readonly client: StorageClient;\n\n /**\n * Initialize a new instance of the class Queue class.\n * @param client Reference to the service client\n */\n constructor(client: StorageClient) {\n this.client = client;\n }\n\n /**\n * creates a new queue under the given account.\n * @param options The options parameters.\n */\n create(options?: QueueCreateOptionalParams): Promise<QueueCreateResponse> {\n return this.client.sendOperationRequest({ options }, createOperationSpec);\n }\n\n /**\n * operation permanently deletes the specified queue\n * @param options The options parameters.\n */\n delete(options?: QueueDeleteOptionalParams): Promise<QueueDeleteResponse> {\n return this.client.sendOperationRequest({ options }, deleteOperationSpec);\n }\n\n /**\n * Retrieves user-defined metadata and queue properties on the specified queue. Metadata is associated\n * with the queue as name-values pairs.\n * @param options The options parameters.\n */\n getProperties(\n options?: QueueGetPropertiesOptionalParams\n ): Promise<QueueGetPropertiesResponse> {\n return this.client.sendOperationRequest(\n { options },\n getPropertiesOperationSpec\n );\n }\n\n /**\n * sets user-defined metadata on the specified queue. Metadata is associated with the queue as\n * name-value pairs.\n * @param options The options parameters.\n */\n setMetadata(\n options?: QueueSetMetadataOptionalParams\n ): Promise<QueueSetMetadataResponse> {\n return this.client.sendOperationRequest(\n { options },\n setMetadataOperationSpec\n );\n }\n\n /**\n * returns details about any stored access policies specified on the queue that may be used with Shared\n * Access Signatures.\n * @param options The options parameters.\n */\n getAccessPolicy(\n options?: QueueGetAccessPolicyOptionalParams\n ): Promise<QueueGetAccessPolicyResponse> {\n return this.client.sendOperationRequest(\n { options },\n getAccessPolicyOperationSpec\n );\n }\n\n /**\n * sets stored access policies for the queue that may be used with Shared Access Signatures\n * @param options The options parameters.\n */\n setAccessPolicy(\n options?: QueueSetAccessPolicyOptionalParams\n ): Promise<QueueSetAccessPolicyResponse> {\n return this.client.sendOperationRequest(\n { options },\n setAccessPolicyOperationSpec\n );\n }\n}\n// Operation Specifications\nconst xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.QueueCreateHeaders\n },\n 204: {\n headersMapper: Mappers.QueueCreateHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.QueueCreateExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1,\n Parameters.metadata\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {\n headersMapper: Mappers.QueueDeleteHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.QueueDeleteExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst getPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n headersMapper: Mappers.QueueGetPropertiesHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.QueueGetPropertiesExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp3],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst setMetadataOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}\",\n httpMethod: \"PUT\",\n responses: {\n 204: {\n headersMapper: Mappers.QueueSetMetadataHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.QueueSetMetadataExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp3],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1,\n Parameters.metadata\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst getAccessPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: { name: \"Composite\", className: \"SignedIdentifier\" }\n }\n },\n serializedName: \"SignedIdentifiers\",\n xmlName: \"SignedIdentifiers\",\n xmlIsWrapped: true,\n xmlElementName: \"SignedIdentifier\"\n },\n headersMapper: Mappers.QueueGetAccessPolicyHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.QueueGetAccessPolicyExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp4],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst setAccessPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/{queueName}\",\n httpMethod: \"PUT\",\n responses: {\n 204: {\n headersMapper: Mappers.QueueSetAccessPolicyHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.QueueSetAccessPolicyExceptionHeaders\n }\n },\n requestBody: Parameters.queueAcl,\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp4],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.version,\n Parameters.requestId\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer\n};\n"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing Service operations. */
|
|
12
12
|
export class ServiceImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class Service class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AActD,2CAA2C;AAC3C,MAAM,OAAO,WAAW;
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AActD,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IACL,MAAM,CAAgB;IAEvC;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,aAAa,CACX,UAAkC,EAClC,OAA4C;QAE5C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,UAAU,EAAE,OAAO,EAAE,EACvB,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,aAAa,CACX,OAA4C;QAE5C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,OAAO,EAAE,EACX,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,aAAa,CACX,OAA4C;QAE5C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,OAAO,EAAE,EACX,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,iBAAiB,CACf,OAAgD;QAEhD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,OAAO,EAAE,EACX,8BAA8B,CAC/B,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,aAAa,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;AAE7E,MAAM,0BA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KAAK,EAAE,IAAI;IACX,UAAU,EAAE,aAAa;CAC1B,CAAC","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 { Service } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageClient } from \"../storageClient.js\";\nimport {\n QueueServiceProperties,\n ServiceSetPropertiesOptionalParams,\n ServiceSetPropertiesResponse,\n ServiceGetPropertiesOptionalParams,\n ServiceGetPropertiesResponse,\n ServiceGetStatisticsOptionalParams,\n ServiceGetStatisticsResponse,\n ServiceListQueuesSegmentOptionalParams,\n ServiceListQueuesSegmentResponse\n} from \"../models/index.js\";\n\n/** Class containing Service operations. */\nexport class ServiceImpl implements Service {\n private readonly client: StorageClient;\n\n /**\n * Initialize a new instance of the class Service class.\n * @param client Reference to the service client\n */\n constructor(client: StorageClient) {\n this.client = client;\n }\n\n /**\n * Sets properties for a storage account's Queue service endpoint, including properties for Storage\n * Analytics and CORS (Cross-Origin Resource Sharing) rules\n * @param properties The StorageService properties.\n * @param options The options parameters.\n */\n setProperties(\n properties: QueueServiceProperties,\n options?: ServiceSetPropertiesOptionalParams\n ): Promise<ServiceSetPropertiesResponse> {\n return this.client.sendOperationRequest(\n { properties, options },\n setPropertiesOperationSpec\n );\n }\n\n /**\n * gets the properties of a storage account's Queue service, including properties for Storage Analytics\n * and CORS (Cross-Origin Resource Sharing) rules.\n * @param options The options parameters.\n */\n getProperties(\n options?: ServiceGetPropertiesOptionalParams\n ): Promise<ServiceGetPropertiesResponse> {\n return this.client.sendOperationRequest(\n { options },\n getPropertiesOperationSpec\n );\n }\n\n /**\n * Retrieves statistics related to replication for the Queue service. It is only available on the\n * secondary location endpoint when read-access geo-redundant replication is enabled for the storage\n * account.\n * @param options The options parameters.\n */\n getStatistics(\n options?: ServiceGetStatisticsOptionalParams\n ): Promise<ServiceGetStatisticsResponse> {\n return this.client.sendOperationRequest(\n { options },\n getStatisticsOperationSpec\n );\n }\n\n /**\n * The List Queues Segment operation returns a list of the queues under the specified account\n * @param options The options parameters.\n */\n listQueuesSegment(\n options?: ServiceListQueuesSegmentOptionalParams\n ): Promise<ServiceListQueuesSegmentResponse> {\n return this.client.sendOperationRequest(\n { options },\n listQueuesSegmentOperationSpec\n );\n }\n}\n// Operation Specifications\nconst xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true);\n\nconst setPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n headersMapper: Mappers.ServiceSetPropertiesHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceSetPropertiesExceptionHeaders\n }\n },\n requestBody: Parameters.properties,\n queryParameters: [\n Parameters.restype,\n Parameters.comp,\n Parameters.timeoutInSeconds\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.version,\n Parameters.requestId\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer\n};\nconst getPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueueServiceProperties,\n headersMapper: Mappers.ServiceGetPropertiesHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceGetPropertiesExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.restype,\n Parameters.comp,\n Parameters.timeoutInSeconds\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst getStatisticsOperationSpec: coreClient.OperationSpec = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueueServiceStatistics,\n headersMapper: Mappers.ServiceGetStatisticsHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceGetStatisticsExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.restype,\n Parameters.timeoutInSeconds,\n Parameters.comp1\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst listQueuesSegmentOperationSpec: coreClient.OperationSpec = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListQueuesSegmentResponse,\n headersMapper: Mappers.ServiceListQueuesSegmentHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceListQueuesSegmentExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.comp2,\n Parameters.prefix,\n Parameters.marker,\n Parameters.maxPageSize,\n Parameters.include\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\n"]}
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
import * as coreHttpCompat from "@azure/core-http-compat";
|
|
9
9
|
import { ServiceImpl, QueueImpl, MessagesImpl, MessageIdImpl } from "./operations/index.js";
|
|
10
10
|
export class StorageClient extends coreHttpCompat.ExtendedServiceClient {
|
|
11
|
+
url;
|
|
12
|
+
version;
|
|
11
13
|
/**
|
|
12
14
|
* Initializes a new instance of the StorageClient class.
|
|
13
15
|
* @param url The URL of the service account, queue or message that is the target of the desired
|
|
@@ -15,7 +17,6 @@ export class StorageClient extends coreHttpCompat.ExtendedServiceClient {
|
|
|
15
17
|
* @param options The parameter options
|
|
16
18
|
*/
|
|
17
19
|
constructor(url, options) {
|
|
18
|
-
var _a, _b;
|
|
19
20
|
if (url === undefined) {
|
|
20
21
|
throw new Error("'url' cannot be null");
|
|
21
22
|
}
|
|
@@ -26,13 +27,18 @@ export class StorageClient extends coreHttpCompat.ExtendedServiceClient {
|
|
|
26
27
|
const defaults = {
|
|
27
28
|
requestContentType: "application/json; charset=utf-8"
|
|
28
29
|
};
|
|
29
|
-
const packageDetails = `azsdk-js-azure-storage-queue/12.28.0
|
|
30
|
+
const packageDetails = `azsdk-js-azure-storage-queue/12.28.0`;
|
|
30
31
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
31
32
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
32
33
|
: `${packageDetails}`;
|
|
33
|
-
const optionsWithDefaults =
|
|
34
|
+
const optionsWithDefaults = {
|
|
35
|
+
...defaults,
|
|
36
|
+
...options,
|
|
37
|
+
userAgentOptions: {
|
|
34
38
|
userAgentPrefix
|
|
35
|
-
},
|
|
39
|
+
},
|
|
40
|
+
endpoint: options.endpoint ?? options.baseUri ?? "{url}"
|
|
41
|
+
};
|
|
36
42
|
super(optionsWithDefaults);
|
|
37
43
|
// Parameter assignments
|
|
38
44
|
this.url = url;
|
|
@@ -43,5 +49,9 @@ export class StorageClient extends coreHttpCompat.ExtendedServiceClient {
|
|
|
43
49
|
this.messages = new MessagesImpl(this);
|
|
44
50
|
this.messageId = new MessageIdImpl(this);
|
|
45
51
|
}
|
|
52
|
+
service;
|
|
53
|
+
queue;
|
|
54
|
+
messages;
|
|
55
|
+
messageId;
|
|
46
56
|
}
|
|
47
57
|
//# sourceMappingURL=storageClient.js.map
|
|
@@ -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,uBAAuB,CAAC;AAI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I,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;IAED,OAAO,CAAU;IACjB,KAAK,CAAQ;IACb,QAAQ,CAAW;IACnB,SAAS,CAAY;CACtB","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/index.js\";\nimport { Service, Queue, Messages, MessageId } from \"./operationsInterfaces/index.js\";\nimport { StorageClientOptionalParams } from \"./models/index.js\";\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.28.0`;\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 || \"2025-11-05\";\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"]}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -3,17 +3,9 @@ export * from "./AccountSASPermissions.js";
|
|
|
3
3
|
export * from "./AccountSASResourceTypes.js";
|
|
4
4
|
export * from "./AccountSASServices.js";
|
|
5
5
|
export { AccountSASSignatureValues, generateAccountSASQueryParameters, } from "./AccountSASSignatureValues.js";
|
|
6
|
-
export { AnonymousCredential } from "@azure/storage-blob";
|
|
7
|
-
export { Credential } from "@azure/storage-blob";
|
|
8
|
-
export { StorageSharedKeyCredential } from "@azure/storage-blob";
|
|
9
6
|
export { SasIPRange } from "./SasIPRange.js";
|
|
10
|
-
export { BaseRequestPolicy } from "@azure/storage-
|
|
7
|
+
export { AnonymousCredential, Credential, StorageSharedKeyCredential, BaseRequestPolicy, AnonymousCredentialPolicy, CredentialPolicy, StorageRetryOptions, StorageRetryPolicyType, StorageRetryPolicy, StorageRetryPolicyFactory, StorageSharedKeyCredentialPolicy, StorageBrowserPolicyFactory, } from "@azure/storage-common";
|
|
11
8
|
export { Pipeline, PipelineLike, PipelineOptions, isPipelineLike, newPipeline, StoragePipelineOptions, RequestPolicyFactory, RequestPolicy, RequestPolicyOptions, WebResource, HttpOperationResponse, HttpHeaders, HttpRequestBody, IHttpClient, StorageOAuthScopes, ServiceClientOptions, } from "./Pipeline.js";
|
|
12
|
-
export { AnonymousCredentialPolicy } from "@azure/storage-blob";
|
|
13
|
-
export { CredentialPolicy } from "@azure/storage-blob";
|
|
14
|
-
export { StorageRetryPolicyFactory } from "@azure/storage-blob";
|
|
15
|
-
export { StorageSharedKeyCredentialPolicy } from "@azure/storage-blob";
|
|
16
|
-
export { StorageBrowserPolicyFactory } from "@azure/storage-blob";
|
|
17
9
|
export { Metadata, StorageQueueAudience, getQueueServiceAccountAudience } from "./models.js";
|
|
18
10
|
export * from "./QueueClient.js";
|
|
19
11
|
export * from "./QueueSASPermissions.js";
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,OAAO,EACL,yBAAyB,EACzB,iCAAiC,GAClC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,OAAO,EACL,yBAAyB,EACzB,iCAAiC,GAClC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EACL,mBAAmB,EACnB,UAAU,EACV,0BAA0B,EAC1B,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,yBAAyB,EACzB,gCAAgC,EAChC,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,cAAc,EACd,WAAW,EACX,sBAAsB,EACtB,oBAAoB,EACpB,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,qBAAqB,EACrB,WAAW,EACX,eAAe,EACf,WAAW,EACX,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAC7F,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,OAAO,EACL,uBAAuB,EACvB,+BAA+B,GAChC,MAAM,8BAA8B,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,cAAc,sBAAsB,CAAC;AACrC,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,GACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -5,16 +5,8 @@ export * from "./AccountSASPermissions.js";
|
|
|
5
5
|
export * from "./AccountSASResourceTypes.js";
|
|
6
6
|
export * from "./AccountSASServices.js";
|
|
7
7
|
export { generateAccountSASQueryParameters, } from "./AccountSASSignatureValues.js";
|
|
8
|
-
export { AnonymousCredential } from "@azure/storage-
|
|
9
|
-
export { Credential } from "@azure/storage-blob";
|
|
10
|
-
export { StorageSharedKeyCredential } from "@azure/storage-blob";
|
|
11
|
-
export { BaseRequestPolicy } from "@azure/storage-blob";
|
|
8
|
+
export { AnonymousCredential, Credential, StorageSharedKeyCredential, BaseRequestPolicy, AnonymousCredentialPolicy, CredentialPolicy, StorageRetryPolicyType, StorageRetryPolicy, StorageRetryPolicyFactory, StorageSharedKeyCredentialPolicy, StorageBrowserPolicyFactory, } from "@azure/storage-common";
|
|
12
9
|
export { Pipeline, isPipelineLike, newPipeline, StorageOAuthScopes, } from "./Pipeline.js";
|
|
13
|
-
export { AnonymousCredentialPolicy } from "@azure/storage-blob";
|
|
14
|
-
export { CredentialPolicy } from "@azure/storage-blob";
|
|
15
|
-
export { StorageRetryPolicyFactory } from "@azure/storage-blob";
|
|
16
|
-
export { StorageSharedKeyCredentialPolicy } from "@azure/storage-blob";
|
|
17
|
-
export { StorageBrowserPolicyFactory } from "@azure/storage-blob";
|
|
18
10
|
export { StorageQueueAudience, getQueueServiceAccountAudience } from "./models.js";
|
|
19
11
|
export * from "./QueueClient.js";
|
|
20
12
|
export * from "./QueueSASPermissions.js";
|
package/dist/esm/index.js.map
CHANGED
|
@@ -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,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAEL,iCAAiC,GAClC,MAAM,gCAAgC,CAAC;
|
|
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,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAEL,iCAAiC,GAClC,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EACL,mBAAmB,EACnB,UAAU,EACV,0BAA0B,EAC1B,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAEhB,sBAAsB,EACtB,kBAAkB,EAClB,yBAAyB,EACzB,gCAAgC,EAChC,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,QAAQ,EAGR,cAAc,EACd,WAAW,EAUX,kBAAkB,GAEnB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAY,oBAAoB,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAC7F,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAEL,+BAA+B,GAChC,MAAM,8BAA8B,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AAExC,cAAc,sBAAsB,CAAC;AAQrC,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { RestError } from \"@azure/core-rest-pipeline\";\n\nexport * from \"./AccountSASPermissions.js\";\nexport * from \"./AccountSASResourceTypes.js\";\nexport * from \"./AccountSASServices.js\";\nexport {\n AccountSASSignatureValues,\n generateAccountSASQueryParameters,\n} from \"./AccountSASSignatureValues.js\";\nexport { SasIPRange } from \"./SasIPRange.js\";\n\nexport {\n AnonymousCredential,\n Credential,\n StorageSharedKeyCredential,\n BaseRequestPolicy,\n AnonymousCredentialPolicy,\n CredentialPolicy,\n StorageRetryOptions,\n StorageRetryPolicyType,\n StorageRetryPolicy,\n StorageRetryPolicyFactory,\n StorageSharedKeyCredentialPolicy,\n StorageBrowserPolicyFactory,\n} from \"@azure/storage-common\";\n\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.js\";\n\nexport { Metadata, StorageQueueAudience, getQueueServiceAccountAudience } from \"./models.js\";\nexport * from \"./QueueClient.js\";\nexport * from \"./QueueSASPermissions.js\";\nexport {\n QueueSASSignatureValues,\n generateQueueSASQueryParameters,\n} from \"./QueueSASSignatureValues.js\";\nexport * from \"./QueueServiceClient.js\";\nexport * from \"./SASQueryParameters.js\";\nexport { CommonOptions, ListQueuesIncludeType } from \"./StorageClient.js\";\nexport * from \"./generatedModels.js\";\nexport {\n WithResponse,\n ResponseLike,\n ResponseWithBody,\n ResponseWithHeaders,\n HttpResponse,\n} from \"./utils/utils.common.js\";\nexport { RestError };\nexport { logger } from \"./log.js\";\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,EAAE,MAAkB,CAAC;AAC7C,eAAO,MAAM,eAAe,EAAE,MAAqB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,GAAG,MAAM,EAAyC,CAAC;AAE1F,eAAO,MAAM,YAAY;;;;;;CAMxB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;CAK7B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;CAoB3B,CAAC;AAEF,eAAO,MAAM,QAAQ,KAAK,CAAC;AAC3B,eAAO,MAAM,OAAO,MAAM,CAAC;AAE3B,eAAO,MAAM,2BAA2B,kOAEiB,CAAC;AAE1D,eAAO,MAAM,qCAAqC,UAmBjD,CAAC;AAEF,eAAO,MAAM,yCAAyC,UA0BrD,CAAC;AAIF,eAAO,MAAM,cAAc,UAqB1B,CAAC"}
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceR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AEc,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.28.1\";\nexport const SERVICE_VERSION: string = \"2025-11-05\";\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"]}
|
|
@@ -53,9 +53,8 @@ export function setURLParameter(url, name, value) {
|
|
|
53
53
|
* @returns Parameter value(s) for the given parameter name.
|
|
54
54
|
*/
|
|
55
55
|
export function getURLParameter(url, name) {
|
|
56
|
-
var _a;
|
|
57
56
|
const urlParsed = new URL(url);
|
|
58
|
-
return
|
|
57
|
+
return urlParsed.searchParams.get(name) ?? undefined;
|
|
59
58
|
}
|
|
60
59
|
/**
|
|
61
60
|
* Set URL host.
|