@azure/core-client 1.4.1-alpha.20220112.1 → 1.5.1-alpha.20220204.4
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/CHANGELOG.md +11 -3
- package/dist/index.js +396 -378
- package/dist/index.js.map +1 -1
- package/dist-esm/src/authorizeRequestOnClaimChallenge.js.map +1 -1
- package/dist-esm/src/deserializationPolicy.js +1 -1
- package/dist-esm/src/deserializationPolicy.js.map +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/interfaceHelpers.js.map +1 -1
- package/dist-esm/src/interfaces.js.map +1 -1
- package/dist-esm/src/operationHelpers.js.map +1 -1
- package/dist-esm/src/pipeline.js +1 -1
- package/dist-esm/src/pipeline.js.map +1 -1
- package/dist-esm/src/serializationPolicy.js +2 -2
- package/dist-esm/src/serializationPolicy.js.map +1 -1
- package/dist-esm/src/serializer.js +2 -2
- package/dist-esm/src/serializer.js.map +1 -1
- package/dist-esm/src/serviceClient.js +14 -3
- package/dist-esm/src/serviceClient.js.map +1 -1
- package/dist-esm/src/urlHelpers.js +9 -1
- package/dist-esm/src/urlHelpers.js.map +1 -1
- package/package.json +5 -6
- package/types/3.1/core-client.d.ts +20 -0
- package/types/latest/core-client.d.ts +21 -0
|
@@ -11,6 +11,22 @@ import { PipelineRequest } from '@azure/core-rest-pipeline';
|
|
|
11
11
|
import { PipelineResponse } from '@azure/core-rest-pipeline';
|
|
12
12
|
import { TokenCredential } from '@azure/core-auth';
|
|
13
13
|
import { TransferProgressEvent } from '@azure/core-rest-pipeline';
|
|
14
|
+
/**
|
|
15
|
+
* Used to configure additional policies added to the pipeline at construction.
|
|
16
|
+
*/
|
|
17
|
+
export declare interface AdditionalPolicyConfig {
|
|
18
|
+
/**
|
|
19
|
+
* A policy to be added.
|
|
20
|
+
*/
|
|
21
|
+
policy: PipelinePolicy;
|
|
22
|
+
/**
|
|
23
|
+
* Determines if this policy be applied before or after retry logic.
|
|
24
|
+
* Only use `perRetry` if you need to modify the request again
|
|
25
|
+
* each time the operation is retried due to retryable service
|
|
26
|
+
* issues.
|
|
27
|
+
*/
|
|
28
|
+
position: "perCall" | "perRetry";
|
|
29
|
+
}
|
|
14
30
|
/**
|
|
15
31
|
* This function can be used as a callback for the `bearerTokenAuthenticationPolicy` of `@azure/core-rest-pipeline`, to support CAE challenges:
|
|
16
32
|
* [Continuous Access Evaluation](https://docs.microsoft.com/azure/active-directory/conditional-access/concept-continuous-access-evaluation).
|
|
@@ -111,6 +127,10 @@ export declare interface CommonClientOptions extends PipelineOptions {
|
|
|
111
127
|
* Set to true if the request is sent over HTTP instead of HTTPS
|
|
112
128
|
*/
|
|
113
129
|
allowInsecureConnection?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Additional policies to include in the HTTP pipeline.
|
|
132
|
+
*/
|
|
133
|
+
additionalPolicies?: AdditionalPolicyConfig[];
|
|
114
134
|
}
|
|
115
135
|
/**
|
|
116
136
|
* A mapper composed of other mappers.
|
|
@@ -12,6 +12,23 @@ import { PipelineResponse } from '@azure/core-rest-pipeline';
|
|
|
12
12
|
import { TokenCredential } from '@azure/core-auth';
|
|
13
13
|
import { TransferProgressEvent } from '@azure/core-rest-pipeline';
|
|
14
14
|
|
|
15
|
+
/**
|
|
16
|
+
* Used to configure additional policies added to the pipeline at construction.
|
|
17
|
+
*/
|
|
18
|
+
export declare interface AdditionalPolicyConfig {
|
|
19
|
+
/**
|
|
20
|
+
* A policy to be added.
|
|
21
|
+
*/
|
|
22
|
+
policy: PipelinePolicy;
|
|
23
|
+
/**
|
|
24
|
+
* Determines if this policy be applied before or after retry logic.
|
|
25
|
+
* Only use `perRetry` if you need to modify the request again
|
|
26
|
+
* each time the operation is retried due to retryable service
|
|
27
|
+
* issues.
|
|
28
|
+
*/
|
|
29
|
+
position: "perCall" | "perRetry";
|
|
30
|
+
}
|
|
31
|
+
|
|
15
32
|
/**
|
|
16
33
|
* This function can be used as a callback for the `bearerTokenAuthenticationPolicy` of `@azure/core-rest-pipeline`, to support CAE challenges:
|
|
17
34
|
* [Continuous Access Evaluation](https://docs.microsoft.com/azure/active-directory/conditional-access/concept-continuous-access-evaluation).
|
|
@@ -114,6 +131,10 @@ export declare interface CommonClientOptions extends PipelineOptions {
|
|
|
114
131
|
* Set to true if the request is sent over HTTP instead of HTTPS
|
|
115
132
|
*/
|
|
116
133
|
allowInsecureConnection?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Additional policies to include in the HTTP pipeline.
|
|
136
|
+
*/
|
|
137
|
+
additionalPolicies?: AdditionalPolicyConfig[];
|
|
117
138
|
}
|
|
118
139
|
|
|
119
140
|
/**
|