@azure/core-client 1.8.0 → 1.8.1-alpha.20240223.2

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 (281) hide show
  1. package/README.md +0 -4
  2. package/dist/browser/authorizeRequestOnClaimChallenge.d.ts +43 -0
  3. package/dist/browser/authorizeRequestOnClaimChallenge.d.ts.map +1 -0
  4. package/{dist-esm/src → dist/browser}/authorizeRequestOnClaimChallenge.js +3 -3
  5. package/dist/browser/authorizeRequestOnClaimChallenge.js.map +1 -0
  6. package/dist/browser/authorizeRequestOnTenantChallenge.d.ts +8 -0
  7. package/dist/browser/authorizeRequestOnTenantChallenge.d.ts.map +1 -0
  8. package/{dist-esm/src → dist/browser}/authorizeRequestOnTenantChallenge.js +5 -2
  9. package/dist/browser/authorizeRequestOnTenantChallenge.js.map +1 -0
  10. package/dist/browser/base64-browser.d.mts.map +1 -0
  11. package/dist/browser/base64-browser.mjs.map +1 -0
  12. package/dist/browser/base64.d.ts +29 -0
  13. package/{dist-esm/src/base64.browser.js → dist/browser/base64.js} +5 -1
  14. package/dist/browser/deserializationPolicy.d.ts +45 -0
  15. package/dist/browser/deserializationPolicy.d.ts.map +1 -0
  16. package/{dist-esm/src → dist/browser}/deserializationPolicy.js +16 -19
  17. package/dist/browser/deserializationPolicy.js.map +1 -0
  18. package/dist/browser/httpClientCache.d.ts +3 -0
  19. package/dist/browser/httpClientCache.d.ts.map +1 -0
  20. package/dist/browser/index.d.ts +9 -0
  21. package/dist/browser/index.d.ts.map +1 -0
  22. package/dist/browser/index.js +11 -0
  23. package/dist/browser/index.js.map +1 -0
  24. package/dist/browser/interfaceHelpers.d.ts +14 -0
  25. package/dist/browser/interfaceHelpers.d.ts.map +1 -0
  26. package/{dist-esm/src → dist/browser}/interfaceHelpers.js +1 -1
  27. package/dist/browser/interfaceHelpers.js.map +1 -0
  28. package/dist/browser/interfaces.d.ts +664 -0
  29. package/dist/browser/interfaces.d.ts.map +1 -0
  30. package/dist/browser/log.d.ts +2 -0
  31. package/dist/browser/log.d.ts.map +1 -0
  32. package/dist/browser/operationHelpers.d.ts +14 -0
  33. package/dist/browser/operationHelpers.d.ts.map +1 -0
  34. package/dist/browser/operationHelpers.js.map +1 -0
  35. package/dist/browser/package.json +3 -0
  36. package/dist/browser/pipeline.d.ts +34 -0
  37. package/dist/browser/pipeline.d.ts.map +1 -0
  38. package/{dist-esm/src → dist/browser}/pipeline.js +3 -3
  39. package/dist/browser/pipeline.js.map +1 -0
  40. package/dist/browser/serializationPolicy.d.ts +33 -0
  41. package/dist/browser/serializationPolicy.d.ts.map +1 -0
  42. package/{dist-esm/src → dist/browser}/serializationPolicy.js +12 -14
  43. package/dist/browser/serializationPolicy.js.map +1 -0
  44. package/dist/browser/serializer.d.ts +31 -0
  45. package/dist/browser/serializer.d.ts.map +1 -0
  46. package/{dist-esm/src → dist/browser}/serializer.js +25 -26
  47. package/dist/browser/serializer.js.map +1 -0
  48. package/dist/browser/serviceClient.d.ts +82 -0
  49. package/dist/browser/serviceClient.d.ts.map +1 -0
  50. package/{dist-esm/src → dist/browser}/serviceClient.js +38 -14
  51. package/dist/browser/serviceClient.js.map +1 -0
  52. package/dist/browser/urlHelpers.d.ts +7 -0
  53. package/dist/browser/urlHelpers.d.ts.map +1 -0
  54. package/{dist-esm/src → dist/browser}/urlHelpers.js +4 -6
  55. package/dist/browser/urlHelpers.js.map +1 -0
  56. package/dist/browser/utils.d.ts +37 -0
  57. package/dist/browser/utils.d.ts.map +1 -0
  58. package/{dist-esm/src → dist/browser}/utils.js +23 -10
  59. package/dist/browser/utils.js.map +1 -0
  60. package/dist/commonjs/authorizeRequestOnClaimChallenge.d.ts +43 -0
  61. package/dist/commonjs/authorizeRequestOnClaimChallenge.d.ts.map +1 -0
  62. package/dist/commonjs/authorizeRequestOnClaimChallenge.js +74 -0
  63. package/dist/commonjs/authorizeRequestOnClaimChallenge.js.map +1 -0
  64. package/dist/commonjs/authorizeRequestOnTenantChallenge.d.ts +8 -0
  65. package/dist/commonjs/authorizeRequestOnTenantChallenge.d.ts.map +1 -0
  66. package/dist/commonjs/authorizeRequestOnTenantChallenge.js +106 -0
  67. package/dist/commonjs/authorizeRequestOnTenantChallenge.js.map +1 -0
  68. package/dist/commonjs/base64.d.ts +25 -0
  69. package/dist/commonjs/base64.d.ts.map +1 -0
  70. package/dist/commonjs/base64.js +43 -0
  71. package/dist/commonjs/base64.js.map +1 -0
  72. package/dist/commonjs/deserializationPolicy.d.ts +45 -0
  73. package/dist/commonjs/deserializationPolicy.d.ts.map +1 -0
  74. package/dist/commonjs/deserializationPolicy.js +232 -0
  75. package/dist/commonjs/deserializationPolicy.js.map +1 -0
  76. package/dist/commonjs/httpClientCache.d.ts +3 -0
  77. package/dist/commonjs/httpClientCache.d.ts.map +1 -0
  78. package/dist/commonjs/httpClientCache.js +15 -0
  79. package/dist/commonjs/httpClientCache.js.map +1 -0
  80. package/dist/commonjs/index.d.ts +9 -0
  81. package/dist/commonjs/index.d.ts.map +1 -0
  82. package/dist/commonjs/index.js +26 -0
  83. package/dist/commonjs/index.js.map +1 -0
  84. package/dist/commonjs/interfaceHelpers.d.ts +14 -0
  85. package/dist/commonjs/interfaceHelpers.d.ts.map +1 -0
  86. package/dist/commonjs/interfaceHelpers.js +44 -0
  87. package/dist/commonjs/interfaceHelpers.js.map +1 -0
  88. package/dist/commonjs/interfaces.d.ts +664 -0
  89. package/dist/commonjs/interfaces.d.ts.map +1 -0
  90. package/dist/commonjs/interfaces.js +14 -0
  91. package/dist/commonjs/interfaces.js.map +1 -0
  92. package/dist/commonjs/log.d.ts +2 -0
  93. package/dist/commonjs/log.d.ts.map +1 -0
  94. package/dist/commonjs/log.js +8 -0
  95. package/dist/commonjs/log.js.map +1 -0
  96. package/dist/commonjs/operationHelpers.d.ts +14 -0
  97. package/dist/commonjs/operationHelpers.d.ts.map +1 -0
  98. package/dist/commonjs/operationHelpers.js +99 -0
  99. package/dist/commonjs/operationHelpers.js.map +1 -0
  100. package/dist/commonjs/package.json +3 -0
  101. package/dist/commonjs/pipeline.d.ts +34 -0
  102. package/dist/commonjs/pipeline.d.ts.map +1 -0
  103. package/dist/commonjs/pipeline.js +30 -0
  104. package/dist/commonjs/pipeline.js.map +1 -0
  105. package/dist/commonjs/serializationPolicy.d.ts +33 -0
  106. package/dist/commonjs/serializationPolicy.d.ts.map +1 -0
  107. package/dist/commonjs/serializationPolicy.js +157 -0
  108. package/dist/commonjs/serializationPolicy.js.map +1 -0
  109. package/dist/commonjs/serializer.d.ts +31 -0
  110. package/dist/commonjs/serializer.d.ts.map +1 -0
  111. package/dist/commonjs/serializer.js +926 -0
  112. package/dist/commonjs/serializer.js.map +1 -0
  113. package/dist/commonjs/serviceClient.d.ts +82 -0
  114. package/dist/commonjs/serviceClient.d.ts.map +1 -0
  115. package/dist/commonjs/serviceClient.js +177 -0
  116. package/dist/commonjs/serviceClient.js.map +1 -0
  117. package/dist/commonjs/tsdoc-metadata.json +11 -0
  118. package/dist/commonjs/urlHelpers.d.ts +7 -0
  119. package/dist/commonjs/urlHelpers.d.ts.map +1 -0
  120. package/dist/commonjs/urlHelpers.js +238 -0
  121. package/dist/commonjs/urlHelpers.js.map +1 -0
  122. package/dist/commonjs/utils.d.ts +37 -0
  123. package/dist/commonjs/utils.d.ts.map +1 -0
  124. package/dist/commonjs/utils.js +135 -0
  125. package/dist/commonjs/utils.js.map +1 -0
  126. package/dist/esm/authorizeRequestOnClaimChallenge.d.ts +43 -0
  127. package/dist/esm/authorizeRequestOnClaimChallenge.d.ts.map +1 -0
  128. package/dist/esm/authorizeRequestOnClaimChallenge.js +69 -0
  129. package/dist/esm/authorizeRequestOnClaimChallenge.js.map +1 -0
  130. package/dist/esm/authorizeRequestOnTenantChallenge.d.ts +8 -0
  131. package/dist/esm/authorizeRequestOnTenantChallenge.d.ts.map +1 -0
  132. package/dist/esm/authorizeRequestOnTenantChallenge.js +102 -0
  133. package/dist/esm/authorizeRequestOnTenantChallenge.js.map +1 -0
  134. package/dist/esm/base64.d.ts +25 -0
  135. package/dist/esm/base64.d.ts.map +1 -0
  136. package/{dist-esm/src → dist/esm}/base64.js +0 -2
  137. package/dist/esm/base64.js.map +1 -0
  138. package/dist/esm/deserializationPolicy.d.ts +45 -0
  139. package/dist/esm/deserializationPolicy.d.ts.map +1 -0
  140. package/dist/esm/deserializationPolicy.js +228 -0
  141. package/dist/esm/deserializationPolicy.js.map +1 -0
  142. package/dist/esm/httpClientCache.d.ts +3 -0
  143. package/dist/esm/httpClientCache.d.ts.map +1 -0
  144. package/dist/esm/httpClientCache.js +11 -0
  145. package/dist/esm/httpClientCache.js.map +1 -0
  146. package/dist/esm/index.d.ts +9 -0
  147. package/dist/esm/index.d.ts.map +1 -0
  148. package/dist/esm/index.js +11 -0
  149. package/dist/esm/index.js.map +1 -0
  150. package/dist/esm/interfaceHelpers.d.ts +14 -0
  151. package/dist/esm/interfaceHelpers.d.ts.map +1 -0
  152. package/dist/esm/interfaceHelpers.js +39 -0
  153. package/dist/esm/interfaceHelpers.js.map +1 -0
  154. package/dist/esm/interfaces.d.ts +664 -0
  155. package/dist/esm/interfaces.d.ts.map +1 -0
  156. package/dist/esm/interfaces.js +11 -0
  157. package/dist/esm/interfaces.js.map +1 -0
  158. package/dist/esm/log.d.ts +2 -0
  159. package/dist/esm/log.d.ts.map +1 -0
  160. package/dist/esm/log.js +5 -0
  161. package/dist/esm/log.js.map +1 -0
  162. package/dist/esm/operationHelpers.d.ts +14 -0
  163. package/dist/esm/operationHelpers.d.ts.map +1 -0
  164. package/dist/esm/operationHelpers.js +94 -0
  165. package/dist/esm/operationHelpers.js.map +1 -0
  166. package/dist/esm/package.json +3 -0
  167. package/dist/esm/pipeline.d.ts +34 -0
  168. package/dist/esm/pipeline.d.ts.map +1 -0
  169. package/dist/esm/pipeline.js +26 -0
  170. package/dist/esm/pipeline.js.map +1 -0
  171. package/dist/esm/serializationPolicy.d.ts +33 -0
  172. package/dist/esm/serializationPolicy.d.ts.map +1 -0
  173. package/dist/esm/serializationPolicy.js +151 -0
  174. package/dist/esm/serializationPolicy.js.map +1 -0
  175. package/dist/esm/serializer.d.ts +31 -0
  176. package/dist/esm/serializer.d.ts.map +1 -0
  177. package/dist/esm/serializer.js +921 -0
  178. package/dist/esm/serializer.js.map +1 -0
  179. package/dist/esm/serviceClient.d.ts +82 -0
  180. package/dist/esm/serviceClient.d.ts.map +1 -0
  181. package/dist/esm/serviceClient.js +173 -0
  182. package/dist/esm/serviceClient.js.map +1 -0
  183. package/dist/esm/urlHelpers.d.ts +7 -0
  184. package/dist/esm/urlHelpers.d.ts.map +1 -0
  185. package/dist/esm/urlHelpers.js +233 -0
  186. package/dist/esm/urlHelpers.js.map +1 -0
  187. package/dist/esm/utils.d.ts +37 -0
  188. package/dist/esm/utils.d.ts.map +1 -0
  189. package/dist/esm/utils.js +128 -0
  190. package/dist/esm/utils.js.map +1 -0
  191. package/dist/react-native/authorizeRequestOnClaimChallenge.d.ts +43 -0
  192. package/dist/react-native/authorizeRequestOnClaimChallenge.d.ts.map +1 -0
  193. package/dist/react-native/authorizeRequestOnClaimChallenge.js +69 -0
  194. package/dist/react-native/authorizeRequestOnClaimChallenge.js.map +1 -0
  195. package/dist/react-native/authorizeRequestOnTenantChallenge.d.ts +8 -0
  196. package/dist/react-native/authorizeRequestOnTenantChallenge.d.ts.map +1 -0
  197. package/dist/react-native/authorizeRequestOnTenantChallenge.js +102 -0
  198. package/dist/react-native/authorizeRequestOnTenantChallenge.js.map +1 -0
  199. package/dist/react-native/base64.d.ts +25 -0
  200. package/dist/react-native/base64.d.ts.map +1 -0
  201. package/dist/react-native/base64.js +36 -0
  202. package/dist/react-native/base64.js.map +1 -0
  203. package/dist/react-native/deserializationPolicy.d.ts +45 -0
  204. package/dist/react-native/deserializationPolicy.d.ts.map +1 -0
  205. package/dist/react-native/deserializationPolicy.js +228 -0
  206. package/dist/react-native/deserializationPolicy.js.map +1 -0
  207. package/dist/react-native/httpClientCache.d.ts +3 -0
  208. package/dist/react-native/httpClientCache.d.ts.map +1 -0
  209. package/dist/react-native/httpClientCache.js +11 -0
  210. package/dist/react-native/httpClientCache.js.map +1 -0
  211. package/dist/react-native/index.d.ts +9 -0
  212. package/dist/react-native/index.d.ts.map +1 -0
  213. package/dist/react-native/index.js +11 -0
  214. package/dist/react-native/index.js.map +1 -0
  215. package/dist/react-native/interfaceHelpers.d.ts +14 -0
  216. package/dist/react-native/interfaceHelpers.d.ts.map +1 -0
  217. package/dist/react-native/interfaceHelpers.js +39 -0
  218. package/dist/react-native/interfaceHelpers.js.map +1 -0
  219. package/dist/react-native/interfaces.d.ts +664 -0
  220. package/dist/react-native/interfaces.d.ts.map +1 -0
  221. package/dist/react-native/interfaces.js +11 -0
  222. package/dist/react-native/interfaces.js.map +1 -0
  223. package/dist/react-native/log.d.ts +2 -0
  224. package/dist/react-native/log.d.ts.map +1 -0
  225. package/dist/react-native/log.js +5 -0
  226. package/dist/react-native/log.js.map +1 -0
  227. package/dist/react-native/operationHelpers.d.ts +14 -0
  228. package/dist/react-native/operationHelpers.d.ts.map +1 -0
  229. package/dist/react-native/operationHelpers.js +94 -0
  230. package/dist/react-native/operationHelpers.js.map +1 -0
  231. package/dist/react-native/package.json +3 -0
  232. package/dist/react-native/pipeline.d.ts +34 -0
  233. package/dist/react-native/pipeline.d.ts.map +1 -0
  234. package/dist/react-native/pipeline.js +26 -0
  235. package/dist/react-native/pipeline.js.map +1 -0
  236. package/dist/react-native/serializationPolicy.d.ts +33 -0
  237. package/dist/react-native/serializationPolicy.d.ts.map +1 -0
  238. package/dist/react-native/serializationPolicy.js +151 -0
  239. package/dist/react-native/serializationPolicy.js.map +1 -0
  240. package/dist/react-native/serializer.d.ts +31 -0
  241. package/dist/react-native/serializer.d.ts.map +1 -0
  242. package/dist/react-native/serializer.js +921 -0
  243. package/dist/react-native/serializer.js.map +1 -0
  244. package/dist/react-native/serviceClient.d.ts +82 -0
  245. package/dist/react-native/serviceClient.d.ts.map +1 -0
  246. package/dist/react-native/serviceClient.js +173 -0
  247. package/dist/react-native/serviceClient.js.map +1 -0
  248. package/dist/react-native/urlHelpers.d.ts +7 -0
  249. package/dist/react-native/urlHelpers.d.ts.map +1 -0
  250. package/dist/react-native/urlHelpers.js +233 -0
  251. package/dist/react-native/urlHelpers.js.map +1 -0
  252. package/dist/react-native/utils.d.ts +37 -0
  253. package/dist/react-native/utils.d.ts.map +1 -0
  254. package/dist/react-native/utils.js +128 -0
  255. package/dist/react-native/utils.js.map +1 -0
  256. package/package.json +74 -61
  257. package/dist/index.js +0 -2185
  258. package/dist/index.js.map +0 -1
  259. package/dist-esm/src/authorizeRequestOnClaimChallenge.js.map +0 -1
  260. package/dist-esm/src/authorizeRequestOnTenantChallenge.js.map +0 -1
  261. package/dist-esm/src/base64.browser.js.map +0 -1
  262. package/dist-esm/src/base64.js.map +0 -1
  263. package/dist-esm/src/deserializationPolicy.js.map +0 -1
  264. package/dist-esm/src/index.js +0 -11
  265. package/dist-esm/src/index.js.map +0 -1
  266. package/dist-esm/src/interfaceHelpers.js.map +0 -1
  267. package/dist-esm/src/operationHelpers.js.map +0 -1
  268. package/dist-esm/src/pipeline.js.map +0 -1
  269. package/dist-esm/src/serializationPolicy.js.map +0 -1
  270. package/dist-esm/src/serializer.js.map +0 -1
  271. package/dist-esm/src/serviceClient.js.map +0 -1
  272. package/dist-esm/src/urlHelpers.js.map +0 -1
  273. package/dist-esm/src/utils.js.map +0 -1
  274. /package/{dist-esm/src → dist/browser}/httpClientCache.js +0 -0
  275. /package/{dist-esm/src → dist/browser}/httpClientCache.js.map +0 -0
  276. /package/{dist-esm/src → dist/browser}/interfaces.js +0 -0
  277. /package/{dist-esm/src → dist/browser}/interfaces.js.map +0 -0
  278. /package/{dist-esm/src → dist/browser}/log.js +0 -0
  279. /package/{dist-esm/src → dist/browser}/log.js.map +0 -0
  280. /package/{dist-esm/src → dist/browser}/operationHelpers.js +0 -0
  281. /package/{types/latest → dist}/core-client.d.ts +0 -0
@@ -0,0 +1,664 @@
1
+ import { HttpClient, HttpMethods, PipelineOptions, PipelinePolicy, PipelineRequest, PipelineResponse, TransferProgressEvent } from "@azure/core-rest-pipeline";
2
+ import { AbortSignalLike } from "@azure/abort-controller";
3
+ import { OperationTracingOptions } from "@azure/core-tracing";
4
+ /**
5
+ * Default key used to access the XML attributes.
6
+ */
7
+ export declare const XML_ATTRKEY = "$";
8
+ /**
9
+ * Default key used to access the XML value content.
10
+ */
11
+ export declare const XML_CHARKEY = "_";
12
+ /**
13
+ * Options to govern behavior of xml parser and builder.
14
+ */
15
+ export interface XmlOptions {
16
+ /**
17
+ * indicates the name of the root element in the resulting XML when building XML.
18
+ */
19
+ rootName?: string;
20
+ /**
21
+ * indicates whether the root element is to be included or not in the output when parsing XML.
22
+ */
23
+ includeRoot?: boolean;
24
+ /**
25
+ * key used to access the XML value content when parsing XML.
26
+ */
27
+ xmlCharKey?: string;
28
+ }
29
+ /**
30
+ * Options to configure serialization/de-serialization behavior.
31
+ */
32
+ export interface SerializerOptions {
33
+ /**
34
+ * Options to configure xml parser/builder behavior.
35
+ */
36
+ xml: XmlOptions;
37
+ /**
38
+ * Normally additional properties are included in the result object, even if there is no mapper for them.
39
+ * This flag disables this behavior when true. It is used when parsing headers to avoid polluting the result object.
40
+ */
41
+ ignoreUnknownProperties?: boolean;
42
+ }
43
+ export type RequiredSerializerOptions = {
44
+ [K in keyof SerializerOptions]: Required<SerializerOptions[K]>;
45
+ };
46
+ /**
47
+ * A type alias for future proofing.
48
+ */
49
+ export type OperationRequest = PipelineRequest;
50
+ /**
51
+ * Metadata that is used to properly parse a response.
52
+ */
53
+ export interface OperationRequestInfo {
54
+ /**
55
+ * Used to parse the response.
56
+ */
57
+ operationSpec?: OperationSpec;
58
+ /**
59
+ * Used to encode the request.
60
+ */
61
+ operationArguments?: OperationArguments;
62
+ /**
63
+ * A function that returns the proper OperationResponseMap for the given OperationSpec and
64
+ * PipelineResponse combination. If this is undefined, then a simple status code lookup will
65
+ * be used.
66
+ */
67
+ operationResponseGetter?: (operationSpec: OperationSpec, response: PipelineResponse) => undefined | OperationResponseMap;
68
+ /**
69
+ * Whether or not the PipelineResponse should be deserialized. Defaults to true.
70
+ */
71
+ shouldDeserialize?: boolean | ((response: PipelineResponse) => boolean);
72
+ }
73
+ /**
74
+ * The base options type for all operations.
75
+ */
76
+ export interface OperationOptions {
77
+ /**
78
+ * The signal which can be used to abort requests.
79
+ */
80
+ abortSignal?: AbortSignalLike;
81
+ /**
82
+ * Options used when creating and sending HTTP requests for this operation.
83
+ */
84
+ requestOptions?: OperationRequestOptions;
85
+ /**
86
+ * Options used when tracing is enabled.
87
+ */
88
+ tracingOptions?: OperationTracingOptions;
89
+ /**
90
+ * Options to override serialization/de-serialization behavior.
91
+ */
92
+ serializerOptions?: SerializerOptions;
93
+ /**
94
+ * A function to be called each time a response is received from the server
95
+ * while performing the requested operation.
96
+ * May be called multiple times.
97
+ */
98
+ onResponse?: RawResponseCallback;
99
+ }
100
+ /**
101
+ * Options used when creating and sending HTTP requests for this operation.
102
+ */
103
+ export interface OperationRequestOptions {
104
+ /**
105
+ * User defined custom request headers that
106
+ * will be applied before the request is sent.
107
+ */
108
+ customHeaders?: {
109
+ [key: string]: string;
110
+ };
111
+ /**
112
+ * The number of milliseconds a request can take before automatically being terminated.
113
+ */
114
+ timeout?: number;
115
+ /**
116
+ * Callback which fires upon upload progress.
117
+ */
118
+ onUploadProgress?: (progress: TransferProgressEvent) => void;
119
+ /**
120
+ * Callback which fires upon download progress.
121
+ */
122
+ onDownloadProgress?: (progress: TransferProgressEvent) => void;
123
+ /**
124
+ * Whether or not the HttpOperationResponse should be deserialized. If this is undefined, then the
125
+ * HttpOperationResponse should be deserialized.
126
+ */
127
+ shouldDeserialize?: boolean | ((response: PipelineResponse) => boolean);
128
+ /**
129
+ * Set to true if the request is sent over HTTP instead of HTTPS
130
+ */
131
+ allowInsecureConnection?: boolean;
132
+ }
133
+ /**
134
+ * A collection of properties that apply to a single invocation of an operation.
135
+ */
136
+ export interface OperationArguments {
137
+ /**
138
+ * The parameters that were passed to the operation method.
139
+ */
140
+ [parameterName: string]: unknown;
141
+ /**
142
+ * The optional arguments that are provided to an operation.
143
+ */
144
+ options?: OperationOptions;
145
+ }
146
+ /**
147
+ * The format that will be used to join an array of values together for a query parameter value.
148
+ */
149
+ export type QueryCollectionFormat = "CSV" | "SSV" | "TSV" | "Pipes" | "Multi";
150
+ /**
151
+ * Encodes how to reach a particular property on an object.
152
+ */
153
+ export type ParameterPath = string | string[] | {
154
+ [propertyName: string]: ParameterPath;
155
+ };
156
+ /**
157
+ * A common interface that all Operation parameter's extend.
158
+ */
159
+ export interface OperationParameter {
160
+ /**
161
+ * The path to this parameter's value in OperationArguments or the object that contains paths for
162
+ * each property's value in OperationArguments.
163
+ */
164
+ parameterPath: ParameterPath;
165
+ /**
166
+ * The mapper that defines how to validate and serialize this parameter's value.
167
+ */
168
+ mapper: Mapper;
169
+ }
170
+ /**
171
+ * A parameter for an operation that will be substituted into the operation's request URL.
172
+ */
173
+ export interface OperationURLParameter extends OperationParameter {
174
+ /**
175
+ * Whether or not to skip encoding the URL parameter's value before adding it to the URL.
176
+ */
177
+ skipEncoding?: boolean;
178
+ }
179
+ /**
180
+ * A parameter for an operation that will be added as a query parameter to the operation's HTTP
181
+ * request.
182
+ */
183
+ export interface OperationQueryParameter extends OperationParameter {
184
+ /**
185
+ * Whether or not to skip encoding the query parameter's value before adding it to the URL.
186
+ */
187
+ skipEncoding?: boolean;
188
+ /**
189
+ * If this query parameter's value is a collection, what type of format should the value be
190
+ * converted to.
191
+ */
192
+ collectionFormat?: QueryCollectionFormat;
193
+ }
194
+ /**
195
+ * An OperationResponse that can be returned from an operation request for a single status code.
196
+ */
197
+ export interface OperationResponseMap {
198
+ /**
199
+ * The mapper that will be used to deserialize the response headers.
200
+ */
201
+ headersMapper?: Mapper;
202
+ /**
203
+ * The mapper that will be used to deserialize the response body.
204
+ */
205
+ bodyMapper?: Mapper;
206
+ /**
207
+ * Indicates if this is an error response
208
+ */
209
+ isError?: boolean;
210
+ }
211
+ /**
212
+ * A specification that defines an operation.
213
+ */
214
+ export interface OperationSpec {
215
+ /**
216
+ * The serializer to use in this operation.
217
+ */
218
+ readonly serializer: Serializer;
219
+ /**
220
+ * The HTTP method that should be used by requests for this operation.
221
+ */
222
+ readonly httpMethod: HttpMethods;
223
+ /**
224
+ * The URL that was provided in the service's specification. This will still have all of the URL
225
+ * template variables in it. If this is not provided when the OperationSpec is created, then it
226
+ * will be populated by a "baseUri" property on the ServiceClient.
227
+ */
228
+ readonly baseUrl?: string;
229
+ /**
230
+ * The fixed path for this operation's URL. This will still have all of the URL template variables
231
+ * in it.
232
+ */
233
+ readonly path?: string;
234
+ /**
235
+ * The content type of the request body. This value will be used as the "Content-Type" header if
236
+ * it is provided.
237
+ */
238
+ readonly contentType?: string;
239
+ /**
240
+ * The media type of the request body.
241
+ * This value can be used to aide in serialization if it is provided.
242
+ */
243
+ readonly mediaType?: "json" | "xml" | "form" | "binary" | "multipart" | "text" | "unknown" | string;
244
+ /**
245
+ * The parameter that will be used to construct the HTTP request's body.
246
+ */
247
+ readonly requestBody?: OperationParameter;
248
+ /**
249
+ * Whether or not this operation uses XML request and response bodies.
250
+ */
251
+ readonly isXML?: boolean;
252
+ /**
253
+ * The parameters to the operation method that will be substituted into the constructed URL.
254
+ */
255
+ readonly urlParameters?: ReadonlyArray<OperationURLParameter>;
256
+ /**
257
+ * The parameters to the operation method that will be added to the constructed URL's query.
258
+ */
259
+ readonly queryParameters?: ReadonlyArray<OperationQueryParameter>;
260
+ /**
261
+ * The parameters to the operation method that will be converted to headers on the operation's
262
+ * HTTP request.
263
+ */
264
+ readonly headerParameters?: ReadonlyArray<OperationParameter>;
265
+ /**
266
+ * The parameters to the operation method that will be used to create a formdata body for the
267
+ * operation's HTTP request.
268
+ */
269
+ readonly formDataParameters?: ReadonlyArray<OperationParameter>;
270
+ /**
271
+ * The different types of responses that this operation can return based on what status code is
272
+ * returned.
273
+ */
274
+ readonly responses: {
275
+ [responseCode: string]: OperationResponseMap;
276
+ };
277
+ }
278
+ /**
279
+ * Wrapper object for http request and response. Deserialized object is stored in
280
+ * the `parsedBody` property when the response body is received in JSON or XML.
281
+ */
282
+ export interface FullOperationResponse extends PipelineResponse {
283
+ /**
284
+ * The parsed HTTP response headers.
285
+ */
286
+ parsedHeaders?: {
287
+ [key: string]: unknown;
288
+ };
289
+ /**
290
+ * The response body as parsed JSON or XML.
291
+ */
292
+ parsedBody?: any;
293
+ /**
294
+ * The request that generated the response.
295
+ */
296
+ request: OperationRequest;
297
+ }
298
+ /**
299
+ * A function to be called each time a response is received from the server
300
+ * while performing the requested operation.
301
+ * May be called multiple times.
302
+ */
303
+ export type RawResponseCallback = (rawResponse: FullOperationResponse, flatResponse: unknown, error?: unknown) => void;
304
+ /**
305
+ * Used to map raw response objects to final shapes.
306
+ * Helps packing and unpacking Dates and other encoded types that are not intrinsic to JSON.
307
+ * Also allows pulling values from headers, as well as inserting default values and constants.
308
+ */
309
+ export interface Serializer {
310
+ /**
311
+ * The provided model mapper.
312
+ */
313
+ readonly modelMappers: {
314
+ [key: string]: any;
315
+ };
316
+ /**
317
+ * Whether the contents are XML or not.
318
+ */
319
+ readonly isXML: boolean;
320
+ /**
321
+ * Validates constraints, if any. This function will throw if the provided value does not respect those constraints.
322
+ * @param mapper - The definition of data models.
323
+ * @param value - The value.
324
+ * @param objectName - Name of the object. Used in the error messages.
325
+ * @deprecated Removing the constraints validation on client side.
326
+ */
327
+ validateConstraints(mapper: Mapper, value: any, objectName: string): void;
328
+ /**
329
+ * Serialize the given object based on its metadata defined in the mapper.
330
+ *
331
+ * @param mapper - The mapper which defines the metadata of the serializable object.
332
+ * @param object - A valid Javascript object to be serialized.
333
+ * @param objectName - Name of the serialized object.
334
+ * @param options - additional options to deserialization.
335
+ * @returns A valid serialized Javascript object.
336
+ */
337
+ serialize(mapper: Mapper, object: any, objectName?: string, options?: SerializerOptions): any;
338
+ /**
339
+ * Deserialize the given object based on its metadata defined in the mapper.
340
+ *
341
+ * @param mapper - The mapper which defines the metadata of the serializable object.
342
+ * @param responseBody - A valid Javascript entity to be deserialized.
343
+ * @param objectName - Name of the deserialized object.
344
+ * @param options - Controls behavior of XML parser and builder.
345
+ * @returns A valid deserialized Javascript object.
346
+ */
347
+ deserialize(mapper: Mapper, responseBody: any, objectName: string, options?: SerializerOptions): any;
348
+ }
349
+ /**
350
+ * Description of various value constraints such as integer ranges and string regex.
351
+ */
352
+ export interface MapperConstraints {
353
+ /**
354
+ * The value should be less than or equal to the `InclusiveMaximum` value.
355
+ */
356
+ InclusiveMaximum?: number;
357
+ /**
358
+ * The value should be less than the `ExclusiveMaximum` value.
359
+ */
360
+ ExclusiveMaximum?: number;
361
+ /**
362
+ * The value should be greater than or equal to the `InclusiveMinimum` value.
363
+ */
364
+ InclusiveMinimum?: number;
365
+ /**
366
+ * The value should be greater than the `InclusiveMinimum` value.
367
+ */
368
+ ExclusiveMinimum?: number;
369
+ /**
370
+ * The length should be smaller than the `MaxLength`.
371
+ */
372
+ MaxLength?: number;
373
+ /**
374
+ * The length should be bigger than the `MinLength`.
375
+ */
376
+ MinLength?: number;
377
+ /**
378
+ * The value must match the pattern.
379
+ */
380
+ Pattern?: RegExp;
381
+ /**
382
+ * The value must contain fewer items than the MaxItems value.
383
+ */
384
+ MaxItems?: number;
385
+ /**
386
+ * The value must contain more items than the `MinItems` value.
387
+ */
388
+ MinItems?: number;
389
+ /**
390
+ * The value must contain only unique items.
391
+ */
392
+ UniqueItems?: true;
393
+ /**
394
+ * The value should be exactly divisible by the `MultipleOf` value.
395
+ */
396
+ MultipleOf?: number;
397
+ }
398
+ /**
399
+ * Type of the mapper. Includes known mappers.
400
+ */
401
+ export type MapperType = SimpleMapperType | CompositeMapperType | SequenceMapperType | DictionaryMapperType | EnumMapperType;
402
+ /**
403
+ * The type of a simple mapper.
404
+ */
405
+ export interface SimpleMapperType {
406
+ /**
407
+ * Name of the type of the property.
408
+ */
409
+ name: "Base64Url" | "Boolean" | "ByteArray" | "Date" | "DateTime" | "DateTimeRfc1123" | "Object" | "Stream" | "String" | "TimeSpan" | "UnixTime" | "Uuid" | "Number" | "any";
410
+ }
411
+ /**
412
+ * Helps build a mapper that describes how to map a set of properties of an object based on other mappers.
413
+ *
414
+ * Only one of the following properties should be present: `className`, `modelProperties` and `additionalProperties`.
415
+ */
416
+ export interface CompositeMapperType {
417
+ /**
418
+ * Name of the composite mapper type.
419
+ */
420
+ name: "Composite";
421
+ /**
422
+ * Use `className` to reference another type definition.
423
+ */
424
+ className?: string;
425
+ /**
426
+ * Use `modelProperties` when the reference to the other type has been resolved.
427
+ */
428
+ modelProperties?: {
429
+ [propertyName: string]: Mapper;
430
+ };
431
+ /**
432
+ * Used when a model has `additionalProperties: true`. Allows the generic processing of unnamed model properties on the response object.
433
+ */
434
+ additionalProperties?: Mapper;
435
+ /**
436
+ * The name of the top-most parent scheme, the one that has no parents.
437
+ */
438
+ uberParent?: string;
439
+ /**
440
+ * A polymorphic discriminator.
441
+ */
442
+ polymorphicDiscriminator?: PolymorphicDiscriminator;
443
+ }
444
+ /**
445
+ * Helps build a mapper that describes how to parse a sequence of mapped values.
446
+ */
447
+ export interface SequenceMapperType {
448
+ /**
449
+ * Name of the sequence type mapper.
450
+ */
451
+ name: "Sequence";
452
+ /**
453
+ * The mapper to use to map each one of the properties of the sequence.
454
+ */
455
+ element: Mapper;
456
+ }
457
+ /**
458
+ * Helps build a mapper that describes how to parse a dictionary of mapped values.
459
+ */
460
+ export interface DictionaryMapperType {
461
+ /**
462
+ * Name of the sequence type mapper.
463
+ */
464
+ name: "Dictionary";
465
+ /**
466
+ * The mapper to use to map the value of each property in the dictionary.
467
+ */
468
+ value: Mapper;
469
+ }
470
+ /**
471
+ * Helps build a mapper that describes how to parse an enum value.
472
+ */
473
+ export interface EnumMapperType {
474
+ /**
475
+ * Name of the enum type mapper.
476
+ */
477
+ name: "Enum";
478
+ /**
479
+ * Values allowed by this mapper.
480
+ */
481
+ allowedValues: any[];
482
+ }
483
+ /**
484
+ * The base definition of a mapper. Can be used for XML and plain JavaScript objects.
485
+ */
486
+ export interface BaseMapper {
487
+ /**
488
+ * Name for the xml element
489
+ */
490
+ xmlName?: string;
491
+ /**
492
+ * Xml element namespace
493
+ */
494
+ xmlNamespace?: string;
495
+ /**
496
+ * Xml element namespace prefix
497
+ */
498
+ xmlNamespacePrefix?: string;
499
+ /**
500
+ * Determines if the current property should be serialized as an attribute of the parent xml element
501
+ */
502
+ xmlIsAttribute?: boolean;
503
+ /**
504
+ * Determines if the current property should be serialized as the inner content of the xml element
505
+ */
506
+ xmlIsMsText?: boolean;
507
+ /**
508
+ * Name for the xml elements when serializing an array
509
+ */
510
+ xmlElementName?: string;
511
+ /**
512
+ * Whether or not the current property should have a wrapping XML element
513
+ */
514
+ xmlIsWrapped?: boolean;
515
+ /**
516
+ * Whether or not the current property is readonly
517
+ */
518
+ readOnly?: boolean;
519
+ /**
520
+ * Whether or not the current property is a constant
521
+ */
522
+ isConstant?: boolean;
523
+ /**
524
+ * Whether or not the current property is required
525
+ */
526
+ required?: boolean;
527
+ /**
528
+ * Whether or not the current property allows mull as a value
529
+ */
530
+ nullable?: boolean;
531
+ /**
532
+ * The name to use when serializing
533
+ */
534
+ serializedName?: string;
535
+ /**
536
+ * Type of the mapper
537
+ */
538
+ type: MapperType;
539
+ /**
540
+ * Default value when one is not explicitly provided
541
+ */
542
+ defaultValue?: any;
543
+ /**
544
+ * Constraints to test the current value against
545
+ */
546
+ constraints?: MapperConstraints;
547
+ }
548
+ /**
549
+ * Mappers are definitions of the data models used in the library.
550
+ * These data models are part of the Operation or Client definitions in the responses or parameters.
551
+ */
552
+ export type Mapper = BaseMapper | CompositeMapper | SequenceMapper | DictionaryMapper | EnumMapper;
553
+ /**
554
+ * Used to disambiguate discriminated type unions.
555
+ * For example, if response can have many shapes but also includes a 'kind' field (or similar),
556
+ * that field can be used to determine how to deserialize the response to the correct type.
557
+ */
558
+ export interface PolymorphicDiscriminator {
559
+ /**
560
+ * Name of the discriminant property in the original JSON payload, e.g. `@odata.kind`.
561
+ */
562
+ serializedName: string;
563
+ /**
564
+ * Name to use on the resulting object instead of the original property name.
565
+ * Useful since the JSON property could be difficult to work with.
566
+ * For example: For a field received as `@odata.kind`, the final object could instead include a property simply named `kind`.
567
+ */
568
+ clientName: string;
569
+ /**
570
+ * It may contain any other property.
571
+ */
572
+ [key: string]: string;
573
+ }
574
+ /**
575
+ * A mapper composed of other mappers.
576
+ */
577
+ export interface CompositeMapper extends BaseMapper {
578
+ /**
579
+ * The type descriptor of the `CompositeMapper`.
580
+ */
581
+ type: CompositeMapperType;
582
+ }
583
+ /**
584
+ * A mapper describing arrays.
585
+ */
586
+ export interface SequenceMapper extends BaseMapper {
587
+ /**
588
+ * The type descriptor of the `SequenceMapper`.
589
+ */
590
+ type: SequenceMapperType;
591
+ }
592
+ /**
593
+ * A mapper describing plain JavaScript objects used as key/value pairs.
594
+ */
595
+ export interface DictionaryMapper extends BaseMapper {
596
+ /**
597
+ * The type descriptor of the `DictionaryMapper`.
598
+ */
599
+ type: DictionaryMapperType;
600
+ /**
601
+ * Optionally, a prefix to add to the header collection.
602
+ */
603
+ headerCollectionPrefix?: string;
604
+ }
605
+ /**
606
+ * A mapper describing an enum value.
607
+ */
608
+ export interface EnumMapper extends BaseMapper {
609
+ /**
610
+ * The type descriptor of the `EnumMapper`.
611
+ */
612
+ type: EnumMapperType;
613
+ }
614
+ export interface UrlParameterValue {
615
+ value: string;
616
+ skipUrlEncoding: boolean;
617
+ }
618
+ /**
619
+ * Configuration for creating a new Tracing Span
620
+ */
621
+ export interface SpanConfig {
622
+ /**
623
+ * Package name prefix
624
+ */
625
+ packagePrefix: string;
626
+ /**
627
+ * Service namespace
628
+ */
629
+ namespace: string;
630
+ }
631
+ /**
632
+ * Used to configure additional policies added to the pipeline at construction.
633
+ */
634
+ export interface AdditionalPolicyConfig {
635
+ /**
636
+ * A policy to be added.
637
+ */
638
+ policy: PipelinePolicy;
639
+ /**
640
+ * Determines if this policy be applied before or after retry logic.
641
+ * Only use `perRetry` if you need to modify the request again
642
+ * each time the operation is retried due to retryable service
643
+ * issues.
644
+ */
645
+ position: "perCall" | "perRetry";
646
+ }
647
+ /**
648
+ * The common set of options that high level clients are expected to expose.
649
+ */
650
+ export interface CommonClientOptions extends PipelineOptions {
651
+ /**
652
+ * The HttpClient that will be used to send HTTP requests.
653
+ */
654
+ httpClient?: HttpClient;
655
+ /**
656
+ * Set to true if the request is sent over HTTP instead of HTTPS
657
+ */
658
+ allowInsecureConnection?: boolean;
659
+ /**
660
+ * Additional policies to include in the HTTP pipeline.
661
+ */
662
+ additionalPolicies?: AdditionalPolicyConfig[];
663
+ }
664
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,UAAU,EACV,WAAW,EACX,eAAe,EACf,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,WAAW,MAAM,CAAC;AAC/B;;GAEG;AACH,eAAO,MAAM,WAAW,MAAM,CAAC;AAC/B;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AACD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,GAAG,EAAE,UAAU,CAAC;IAChB;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,M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AU;IAChD;;OAEG;IACH,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAClD;;OAEG;IACH,IAAI,EAAE,oBAAoB,CAAC;IAC3B;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,UAAU;IAC5C;;OAEG;IACH,IAAI,EAAE,cAAc,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IACvB;;;;;OAKG;IACH,QAAQ,EAAE,SAAS,GAAG,UAAU,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,eAAe;IAC1D;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;OAEG;IACH,kBAAkB,CAAC,EAAE,sBAAsB,EAAE,CAAC;CAC/C"}
@@ -0,0 +1,2 @@
1
+ export declare const logger: import("@azure/logger").AzureLogger;
2
+ //# sourceMappingURL=log.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/log.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,qCAAoC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { OperationArguments, OperationParameter, OperationRequest, OperationRequestInfo } from "./interfaces.js";
2
+ /**
3
+ * @internal
4
+ * Retrieves the value to use for a given operation argument
5
+ * @param operationArguments - The arguments passed from the generated client
6
+ * @param parameter - The parameter description
7
+ * @param fallbackObject - If something isn't found in the arguments bag, look here.
8
+ * Generally used to look at the service client properties.
9
+ */
10
+ export declare function getOperationArgumentValueFromParameter(operationArguments: OperationArguments, parameter: OperationParameter, fallbackObject?: {
11
+ [parameterName: string]: any;
12
+ }): any;
13
+ export declare function getOperationRequestInfo(request: OperationRequest): OperationRequestInfo;
14
+ //# sourceMappingURL=operationHelpers.d.ts.map