tntd 1.4.31 → 1.4.33-beta.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.
Files changed (1016) hide show
  1. package/components/Ellipsis/index.js +47 -15
  2. package/components/QueryForm/Field/SelectInput.js +3 -1
  3. package/components/QueryForm/README.md +4 -1
  4. package/components/QueryListScene/QueryForm.js +4 -4
  5. package/components/QueryListScene/createActions.js +4 -4
  6. package/dist/1.tntd.js +1 -1
  7. package/dist/stats.json +27465 -26665
  8. package/dist/tntd.css +1 -1
  9. package/dist/tntd.js +7 -10
  10. package/es/ArrayInput/icon.js +5 -5
  11. package/es/ArrayInput/index.js +79 -111
  12. package/es/AuthContext.js +1 -1
  13. package/es/Columns/index.js +33 -40
  14. package/es/DevelopmentLogin/LoginModal.js +33 -46
  15. package/es/DevelopmentLogin/index.js +14 -18
  16. package/es/Ellipsis/Svg/CopySVG.js +13 -13
  17. package/es/Ellipsis/Svg/TickSVG.js +8 -8
  18. package/es/Ellipsis/index.js +100 -79
  19. package/es/Handle/index.js +46 -64
  20. package/es/Icon/fonts/iconfont.js +7 -12
  21. package/es/Icon/index.js +12 -15
  22. package/es/Img/Contain.js +26 -31
  23. package/es/Img/Cover.js +43 -57
  24. package/es/Img/index.js +39 -48
  25. package/es/Layout/ActionsContext.js +3 -2
  26. package/es/Layout/AppList.js +39 -94
  27. package/es/Layout/Application.js +28 -74
  28. package/es/Layout/Avatar.js +30 -67
  29. package/es/Layout/CompatibleLanguage.js +41 -96
  30. package/es/Layout/EnterpriseLayout/Avatar.js +39 -77
  31. package/es/Layout/EnterpriseLayout/Language.js +16 -34
  32. package/es/Layout/EnterpriseLayout/Theme.js +18 -36
  33. package/es/Layout/EnterpriseLayout/index.js +14 -16
  34. package/es/Layout/GlobalNavigation/NavigationPopup.js +61 -172
  35. package/es/Layout/GlobalNavigation/index.js +22 -56
  36. package/es/Layout/Header.js +26 -47
  37. package/es/Layout/HeaderActions.js +45 -59
  38. package/es/Layout/HeaderNavs.js +24 -51
  39. package/es/Layout/HeaderTabs.js +53 -106
  40. package/es/Layout/Iconfont.js +1 -1
  41. package/es/Layout/Language.js +16 -34
  42. package/es/Layout/Layout.js +88 -110
  43. package/es/Layout/Logo.js +17 -33
  44. package/es/Layout/OrgAppList.js +64 -109
  45. package/es/Layout/SideMenu.js +67 -128
  46. package/es/Layout/Theme.js +25 -63
  47. package/es/Layout/index.js +28 -37
  48. package/es/Layout/paaslayout/CompactSideMenu.js +37 -76
  49. package/es/Layout/paaslayout/Header.js +23 -46
  50. package/es/Layout/paaslayout/Logo.js +4 -14
  51. package/es/Layout/paaslayout/SideMenu.js +41 -80
  52. package/es/Layout/paaslayout/index.js +77 -104
  53. package/es/Layout/storage.js +10 -9
  54. package/es/LoadingButton/index.js +18 -27
  55. package/es/Modal/index.js +42 -51
  56. package/es/Page/Box.js +36 -43
  57. package/es/Page/index.js +56 -71
  58. package/es/Page/utils.js +0 -5
  59. package/es/QueryForm/Field/Checkbox.js +7 -11
  60. package/es/QueryForm/Field/Select.js +34 -44
  61. package/es/QueryForm/Field/SelectInput.js +32 -45
  62. package/es/QueryForm/Field/fieldsMap.js +0 -1
  63. package/es/QueryForm/Field/index.js +46 -78
  64. package/es/QueryForm/README.md +4 -1
  65. package/es/QueryForm/createActions.js +6 -7
  66. package/es/QueryForm/index.js +79 -140
  67. package/es/QueryListScene/List.js +83 -139
  68. package/es/QueryListScene/QueryForm.js +54 -91
  69. package/es/QueryListScene/QueryListScene.js +29 -47
  70. package/es/QueryListScene/Title.js +3 -3
  71. package/es/QueryListScene/Toolbar.js +13 -14
  72. package/es/QueryListScene/createActions.js +4 -4
  73. package/es/Select/DropDownWrap.js +32 -55
  74. package/es/Select/index.js +140 -232
  75. package/es/Table/ResizableTable/index.js +29 -43
  76. package/es/Table/index.js +20 -19
  77. package/es/Title/index.js +23 -25
  78. package/es/locale.js +1 -5
  79. package/es/utils/checkAuth.js +6 -8
  80. package/es/utils/findMenuInfoByPath.js +0 -4
  81. package/es/utils/index.js +17 -27
  82. package/lib/ArrayInput/icon.js +7 -9
  83. package/lib/ArrayInput/index.js +82 -131
  84. package/lib/AuthContext.js +2 -6
  85. package/lib/Columns/index.js +36 -54
  86. package/lib/DevelopmentLogin/LoginModal.js +36 -63
  87. package/lib/DevelopmentLogin/index.js +21 -31
  88. package/lib/Ellipsis/Svg/CopySVG.js +15 -18
  89. package/lib/Ellipsis/Svg/TickSVG.js +10 -13
  90. package/lib/Ellipsis/index.js +105 -93
  91. package/lib/Handle/index.js +51 -87
  92. package/lib/Icon/fonts/iconfont.js +7 -12
  93. package/lib/Icon/iconList.js +1 -2
  94. package/lib/Icon/index.js +16 -26
  95. package/lib/Img/Contain.js +29 -40
  96. package/lib/Img/Cover.js +48 -72
  97. package/lib/Img/index.js +42 -58
  98. package/lib/Layout/ActionsContext.js +1 -5
  99. package/lib/Layout/AppList.js +45 -124
  100. package/lib/Layout/Application.js +31 -92
  101. package/lib/Layout/Avatar.js +36 -91
  102. package/lib/Layout/CompatibleLanguage.js +44 -116
  103. package/lib/Layout/EnterpriseLayout/Avatar.js +45 -105
  104. package/lib/Layout/EnterpriseLayout/Language.js +22 -54
  105. package/lib/Layout/EnterpriseLayout/Theme.js +21 -50
  106. package/lib/Layout/EnterpriseLayout/index.js +17 -27
  107. package/lib/Layout/GlobalNavigation/NavigationPopup.js +64 -192
  108. package/lib/Layout/GlobalNavigation/index.js +28 -80
  109. package/lib/Layout/Header.js +36 -68
  110. package/lib/Layout/HeaderActions.js +51 -81
  111. package/lib/Layout/HeaderNavs.js +30 -70
  112. package/lib/Layout/HeaderTabs.js +58 -127
  113. package/lib/Layout/Iconfont.js +4 -9
  114. package/lib/Layout/Language.js +22 -54
  115. package/lib/Layout/Layout.js +93 -134
  116. package/lib/Layout/Logo.js +26 -47
  117. package/lib/Layout/OrgAppList.js +69 -133
  118. package/lib/Layout/SideMenu.js +72 -151
  119. package/lib/Layout/Theme.js +28 -79
  120. package/lib/Layout/createActions.js +3 -9
  121. package/lib/Layout/images/index.js +5 -36
  122. package/lib/Layout/index.js +35 -63
  123. package/lib/Layout/paaslayout/CompactSideMenu.js +40 -90
  124. package/lib/Layout/paaslayout/Header.js +30 -60
  125. package/lib/Layout/paaslayout/Logo.js +11 -24
  126. package/lib/Layout/paaslayout/SideMenu.js +44 -93
  127. package/lib/Layout/paaslayout/index.js +82 -128
  128. package/lib/Layout/storage.js +26 -68
  129. package/lib/LoadingButton/index.js +21 -36
  130. package/lib/Modal/index.js +45 -62
  131. package/lib/Page/Box.js +38 -50
  132. package/lib/Page/index.js +58 -84
  133. package/lib/Page/utils.js +5 -16
  134. package/lib/QueryForm/Field/Checkbox.js +10 -19
  135. package/lib/QueryForm/Field/Select.js +39 -60
  136. package/lib/QueryForm/Field/SelectInput.js +37 -64
  137. package/lib/QueryForm/Field/fieldsMap.js +6 -23
  138. package/lib/QueryForm/Field/index.js +50 -91
  139. package/lib/QueryForm/README.md +4 -1
  140. package/lib/QueryForm/createActions.js +9 -16
  141. package/lib/QueryForm/index.js +83 -165
  142. package/lib/QueryForm/useForm.js +1 -6
  143. package/lib/QueryListScene/List.js +89 -153
  144. package/lib/QueryListScene/QueryForm.js +58 -101
  145. package/lib/QueryListScene/QueryListScene.js +31 -56
  146. package/lib/QueryListScene/Title.js +6 -11
  147. package/lib/QueryListScene/Toolbar.js +16 -22
  148. package/lib/QueryListScene/createActions.js +7 -13
  149. package/lib/QueryListScene/index.js +5 -19
  150. package/lib/QueryListScene/useActions.js +1 -6
  151. package/lib/Select/DropDownWrap.js +35 -63
  152. package/lib/Select/index.js +142 -245
  153. package/lib/Table/ResizableTable/index.js +31 -54
  154. package/lib/Table/index.js +21 -34
  155. package/lib/Title/index.js +26 -34
  156. package/lib/index.js +36 -57
  157. package/lib/locale.js +9 -25
  158. package/lib/utils/checkAuth.js +9 -16
  159. package/lib/utils/findMenuInfoByPath.js +3 -12
  160. package/lib/utils/index.js +26 -60
  161. package/package.json +3 -2
  162. package/common/temp/publish-home/.npm/_logs/2023-02-24T09_28_35_585Z-debug-0.log +0 -39
  163. package/common/temp/publish-home/.npm/_logs/2023-02-24T09_29_14_285Z-debug-0.log +0 -1426
  164. package/common/temp/publish-home/.npm/_logs/2023-03-07T06_11_25_569Z-debug-0.log +0 -39
  165. package/common/temp/publish-home/.npm/_logs/2023-03-07T06_11_28_924Z-debug-0.log +0 -1426
  166. package/common/temp/publish-home/.npm/_logs/2023-03-08T11_15_34_815Z-debug-0.log +0 -34
  167. package/common/temp/publish-home/.npm/_logs/2023-03-08T11_18_04_372Z-debug-0.log +0 -34
  168. package/common/temp/publish-home/.npm/_logs/2023-03-08T11_22_54_526Z-debug-0.log +0 -34
  169. package/common/temp/rush-recycler/install-run-1678274025679/@azure/abort-controller/dist/index.js +0 -239
  170. package/common/temp/rush-recycler/install-run-1678274025679/@azure/abort-controller/dist/index.js.map +0 -1
  171. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-auth/dist/index.js +0 -215
  172. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-auth/dist/index.js.map +0 -1
  173. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-client/dist/index.js +0 -2171
  174. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-client/dist/index.js.map +0 -1
  175. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-http/dist/index.js +0 -5500
  176. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-http/dist/index.js.map +0 -1
  177. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-lro/dist/index.js +0 -1171
  178. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-lro/dist/index.js.map +0 -1
  179. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-paging/dist/index.js +0 -104
  180. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-paging/dist/index.js.map +0 -1
  181. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-rest-pipeline/dist/index.js +0 -2282
  182. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-rest-pipeline/dist/index.js.map +0 -1
  183. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-tracing/dist/index.js +0 -184
  184. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-tracing/dist/index.js.map +0 -1
  185. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-util/dist/index.js +0 -217
  186. package/common/temp/rush-recycler/install-run-1678274025679/@azure/core-util/dist/index.js.map +0 -1
  187. package/common/temp/rush-recycler/install-run-1678274025679/@azure/identity/dist/index.js +0 -3727
  188. package/common/temp/rush-recycler/install-run-1678274025679/@azure/identity/dist/index.js.map +0 -1
  189. package/common/temp/rush-recycler/install-run-1678274025679/@azure/logger/dist/index.js +0 -208
  190. package/common/temp/rush-recycler/install-run-1678274025679/@azure/logger/dist/index.js.map +0 -1
  191. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/_virtual/_tslib.js +0 -117
  192. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/_virtual/_tslib.js.map +0 -1
  193. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/ClientApplication.d.ts +0 -333
  194. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/ClientApplication.d.ts.map +0 -1
  195. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/ClientApplication.js +0 -1039
  196. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/ClientApplication.js.map +0 -1
  197. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/IPublicClientApplication.d.ts +0 -46
  198. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/IPublicClientApplication.d.ts.map +0 -1
  199. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/IPublicClientApplication.js +0 -103
  200. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/IPublicClientApplication.js.map +0 -1
  201. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/PublicClientApplication.d.ts +0 -71
  202. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/PublicClientApplication.d.ts.map +0 -1
  203. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/PublicClientApplication.js +0 -278
  204. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/app/PublicClientApplication.js.map +0 -1
  205. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.d.ts +0 -60
  206. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.d.ts.map +0 -1
  207. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.js +0 -261
  208. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeMessageHandler.js.map +0 -1
  209. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeRequest.d.ts +0 -44
  210. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeRequest.d.ts.map +0 -1
  211. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeResponse.d.ts +0 -49
  212. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/broker/nativeBroker/NativeResponse.d.ts.map +0 -1
  213. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/AsyncMemoryStorage.d.ts +0 -52
  214. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/AsyncMemoryStorage.d.ts.map +0 -1
  215. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/AsyncMemoryStorage.js +0 -210
  216. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/AsyncMemoryStorage.js.map +0 -1
  217. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserCacheManager.d.ts +0 -319
  218. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserCacheManager.d.ts.map +0 -1
  219. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserCacheManager.js +0 -975
  220. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserCacheManager.js.map +0 -1
  221. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserStorage.d.ts +0 -12
  222. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserStorage.d.ts.map +0 -1
  223. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserStorage.js +0 -43
  224. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/BrowserStorage.js.map +0 -1
  225. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/CryptoKeyStore.d.ts +0 -18
  226. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/CryptoKeyStore.d.ts.map +0 -1
  227. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/CryptoKeyStore.js +0 -58
  228. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/CryptoKeyStore.js.map +0 -1
  229. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/DatabaseStorage.d.ts +0 -57
  230. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/DatabaseStorage.d.ts.map +0 -1
  231. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/DatabaseStorage.js +0 -262
  232. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/DatabaseStorage.js.map +0 -1
  233. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/IAsyncMemoryStorage.d.ts +0 -28
  234. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/IAsyncMemoryStorage.d.ts.map +0 -1
  235. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/ITokenCache.d.ts +0 -11
  236. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/ITokenCache.d.ts.map +0 -1
  237. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/IWindowStorage.d.ts +0 -28
  238. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/IWindowStorage.d.ts.map +0 -1
  239. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/MemoryStorage.d.ts +0 -12
  240. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/MemoryStorage.d.ts.map +0 -1
  241. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/MemoryStorage.js +0 -37
  242. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/MemoryStorage.js.map +0 -1
  243. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/TokenCache.d.ts +0 -77
  244. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/TokenCache.d.ts.map +0 -1
  245. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/TokenCache.js +0 -227
  246. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/cache/TokenCache.js.map +0 -1
  247. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/config/Configuration.d.ts +0 -196
  248. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/config/Configuration.d.ts.map +0 -1
  249. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/config/Configuration.js +0 -86
  250. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/config/Configuration.js.map +0 -1
  251. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/BrowserCrypto.d.ts +0 -62
  252. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/BrowserCrypto.d.ts.map +0 -1
  253. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/BrowserCrypto.js +0 -167
  254. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/BrowserCrypto.js.map +0 -1
  255. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/CryptoOps.d.ts +0 -74
  256. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/CryptoOps.d.ts.map +0 -1
  257. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/CryptoOps.js +0 -223
  258. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/CryptoOps.js.map +0 -1
  259. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/GuidGenerator.d.ts +0 -13
  260. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/GuidGenerator.d.ts.map +0 -1
  261. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/GuidGenerator.js +0 -93
  262. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/GuidGenerator.js.map +0 -1
  263. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/ISubtleCrypto.d.ts +0 -10
  264. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/ISubtleCrypto.d.ts.map +0 -1
  265. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/ModernBrowserCrypto.d.ts +0 -10
  266. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/ModernBrowserCrypto.d.ts.map +0 -1
  267. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/ModernBrowserCrypto.js +0 -55
  268. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/ModernBrowserCrypto.js.map +0 -1
  269. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsBrowserCrypto.d.ts +0 -10
  270. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsBrowserCrypto.d.ts.map +0 -1
  271. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsBrowserCrypto.js +0 -112
  272. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsBrowserCrypto.js.map +0 -1
  273. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsrBrowserCrypto.d.ts +0 -18
  274. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsrBrowserCrypto.d.ts.map +0 -1
  275. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsrBrowserCrypto.js +0 -59
  276. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/MsrBrowserCrypto.js.map +0 -1
  277. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/PkceGenerator.d.ts +0 -25
  278. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/PkceGenerator.d.ts.map +0 -1
  279. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/PkceGenerator.js +0 -87
  280. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/PkceGenerator.js.map +0 -1
  281. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/SignedHttpRequest.d.ts +0 -31
  282. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/SignedHttpRequest.d.ts.map +0 -1
  283. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/SignedHttpRequest.js +0 -70
  284. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/crypto/SignedHttpRequest.js.map +0 -1
  285. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Decode.d.ts +0 -23
  286. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Decode.d.ts.map +0 -1
  287. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Decode.js +0 -82
  288. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Decode.js.map +0 -1
  289. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Encode.d.ts +0 -32
  290. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Encode.d.ts.map +0 -1
  291. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Encode.js +0 -88
  292. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/encode/Base64Encode.js.map +0 -1
  293. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserAuthError.d.ts +0 -375
  294. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserAuthError.d.ts.map +0 -1
  295. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserAuthError.js +0 -482
  296. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserAuthError.js.map +0 -1
  297. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.d.ts +0 -71
  298. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.d.ts.map +0 -1
  299. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.js +0 -107
  300. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/BrowserConfigurationAuthError.js.map +0 -1
  301. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/NativeAuthError.d.ts +0 -57
  302. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/NativeAuthError.d.ts.map +0 -1
  303. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/NativeAuthError.js +0 -97
  304. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/error/NativeAuthError.js.map +0 -1
  305. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventHandler.d.ts +0 -42
  306. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventHandler.d.ts.map +0 -1
  307. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventHandler.js +0 -127
  308. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventHandler.js.map +0 -1
  309. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventMessage.d.ts +0 -26
  310. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventMessage.d.ts.map +0 -1
  311. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventMessage.js +0 -71
  312. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventMessage.js.map +0 -1
  313. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventType.d.ts +0 -27
  314. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventType.d.ts.map +0 -1
  315. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventType.js +0 -36
  316. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/event/EventType.js.map +0 -1
  317. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/index.cjs.js +0 -17467
  318. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/index.cjs.js.map +0 -1
  319. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/index.d.ts +0 -36
  320. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/index.d.ts.map +0 -1
  321. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/index.js +0 -18
  322. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/index.js.map +0 -1
  323. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.d.ts +0 -53
  324. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.d.ts.map +0 -1
  325. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.js +0 -179
  326. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/BaseInteractionClient.js.map +0 -1
  327. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +0 -5
  328. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +0 -1
  329. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +0 -21
  330. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.js.map +0 -1
  331. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.d.ts +0 -86
  332. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.d.ts.map +0 -1
  333. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.js +0 -480
  334. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/NativeInteractionClient.js.map +0 -1
  335. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/PopupClient.d.ts +0 -112
  336. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/PopupClient.d.ts.map +0 -1
  337. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/PopupClient.js +0 -513
  338. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/PopupClient.js.map +0 -1
  339. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/RedirectClient.d.ts +0 -49
  340. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/RedirectClient.d.ts.map +0 -1
  341. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/RedirectClient.js +0 -353
  342. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/RedirectClient.js.map +0 -1
  343. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.d.ts +0 -23
  344. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.d.ts.map +0 -1
  345. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.js +0 -87
  346. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.js.map +0 -1
  347. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentCacheClient.d.ts +0 -22
  348. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentCacheClient.d.ts.map +0 -1
  349. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentCacheClient.js +0 -108
  350. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentCacheClient.js.map +0 -1
  351. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentIframeClient.d.ts +0 -32
  352. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentIframeClient.d.ts.map +0 -1
  353. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentIframeClient.js +0 -158
  354. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentIframeClient.js.map +0 -1
  355. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.d.ts +0 -20
  356. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.d.ts.map +0 -1
  357. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.js +0 -100
  358. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/SilentRefreshClient.js.map +0 -1
  359. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.d.ts +0 -60
  360. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.d.ts.map +0 -1
  361. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.js +0 -308
  362. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_client/StandardInteractionClient.js.map +0 -1
  363. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/InteractionHandler.d.ts +0 -40
  364. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/InteractionHandler.d.ts.map +0 -1
  365. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/InteractionHandler.js +0 -162
  366. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/InteractionHandler.js.map +0 -1
  367. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/RedirectHandler.d.ts +0 -25
  368. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/RedirectHandler.d.ts.map +0 -1
  369. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/RedirectHandler.js +0 -145
  370. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/RedirectHandler.js.map +0 -1
  371. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/SilentHandler.d.ts +0 -48
  372. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/SilentHandler.d.ts.map +0 -1
  373. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/SilentHandler.js +0 -161
  374. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/interaction_handler/SilentHandler.js.map +0 -1
  375. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/internals.d.ts +0 -21
  376. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/internals.d.ts.map +0 -1
  377. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/internals.js +0 -23
  378. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/internals.js.map +0 -1
  379. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/INavigationClient.d.ts +0 -17
  380. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/INavigationClient.d.ts.map +0 -1
  381. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/NavigationClient.d.ts +0 -23
  382. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/NavigationClient.d.ts.map +0 -1
  383. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/NavigationClient.js +0 -48
  384. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/NavigationClient.js.map +0 -1
  385. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/NavigationOptions.d.ts +0 -13
  386. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/navigation/NavigationOptions.d.ts.map +0 -1
  387. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/FetchClient.d.ts +0 -27
  388. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/FetchClient.d.ts.map +0 -1
  389. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/FetchClient.js +0 -138
  390. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/FetchClient.js.map +0 -1
  391. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/XhrClient.d.ts +0 -41
  392. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/XhrClient.d.ts.map +0 -1
  393. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/XhrClient.js +0 -138
  394. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/network/XhrClient.js.map +0 -1
  395. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/packageMetadata.d.ts +0 -3
  396. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/packageMetadata.d.ts.map +0 -1
  397. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/packageMetadata.js +0 -8
  398. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/packageMetadata.js.map +0 -1
  399. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/AuthorizationCodeRequest.d.ts +0 -9
  400. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/AuthorizationCodeRequest.d.ts.map +0 -1
  401. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/AuthorizationUrlRequest.d.ts +0 -9
  402. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/AuthorizationUrlRequest.d.ts.map +0 -1
  403. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/EndSessionPopupRequest.d.ts +0 -19
  404. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/EndSessionPopupRequest.d.ts.map +0 -1
  405. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/EndSessionRequest.d.ts +0 -16
  406. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/EndSessionRequest.d.ts.map +0 -1
  407. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/PopupRequest.d.ts +0 -33
  408. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/PopupRequest.d.ts.map +0 -1
  409. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/PopupWindowAttributes.d.ts +0 -16
  410. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/PopupWindowAttributes.d.ts.map +0 -1
  411. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/RedirectRequest.d.ts +0 -34
  412. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/RedirectRequest.d.ts.map +0 -1
  413. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/SilentRequest.d.ts +0 -31
  414. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/SilentRequest.d.ts.map +0 -1
  415. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/SsoSilentRequest.d.ts +0 -27
  416. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/request/SsoSilentRequest.d.ts.map +0 -1
  417. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.d.ts +0 -37
  418. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.d.ts.map +0 -1
  419. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.js +0 -108
  420. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceClient.js.map +0 -1
  421. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.d.ts +0 -13
  422. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.d.ts.map +0 -1
  423. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.js +0 -66
  424. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/telemetry/BrowserPerformanceMeasurement.js.map +0 -1
  425. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserConstants.d.ts +0 -163
  426. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserConstants.d.ts.map +0 -1
  427. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserConstants.js +0 -216
  428. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserConstants.js.map +0 -1
  429. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserProtocolUtils.d.ts +0 -19
  430. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserProtocolUtils.d.ts.map +0 -1
  431. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserProtocolUtils.js +0 -44
  432. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserProtocolUtils.js.map +0 -1
  433. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserStringUtils.d.ts +0 -27
  434. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserStringUtils.d.ts.map +0 -1
  435. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserStringUtils.js +0 -122
  436. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserStringUtils.js.map +0 -1
  437. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserUtils.d.ts +0 -66
  438. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserUtils.d.ts.map +0 -1
  439. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserUtils.js +0 -147
  440. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/BrowserUtils.js.map +0 -1
  441. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/MathUtils.d.ts +0 -12
  442. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/MathUtils.d.ts.map +0 -1
  443. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/MathUtils.js +0 -29
  444. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-browser/dist/utils/MathUtils.js.map +0 -1
  445. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/_virtual/_tslib.js +0 -90
  446. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/_virtual/_tslib.js.map +0 -1
  447. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/AccountInfo.d.ts +0 -32
  448. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/AccountInfo.d.ts.map +0 -1
  449. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/AuthToken.d.ts +0 -21
  450. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/AuthToken.d.ts.map +0 -1
  451. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/AuthToken.js +0 -57
  452. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/AuthToken.js.map +0 -1
  453. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/CcsCredential.d.ts +0 -9
  454. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/CcsCredential.d.ts.map +0 -1
  455. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/CcsCredential.js +0 -14
  456. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/CcsCredential.js.map +0 -1
  457. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/ClientCredentials.d.ts +0 -15
  458. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/ClientCredentials.d.ts.map +0 -1
  459. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/ClientInfo.d.ts +0 -20
  460. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/ClientInfo.d.ts.map +0 -1
  461. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/ClientInfo.js +0 -44
  462. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/ClientInfo.js.map +0 -1
  463. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/DecodedAuthToken.d.ts +0 -9
  464. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/DecodedAuthToken.d.ts.map +0 -1
  465. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/TokenClaims.d.ts +0 -61
  466. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/account/TokenClaims.d.ts.map +0 -1
  467. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/Authority.d.ts +0 -202
  468. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/Authority.d.ts.map +0 -1
  469. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/Authority.js +0 -688
  470. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/Authority.js.map +0 -1
  471. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityFactory.d.ts +0 -29
  472. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityFactory.d.ts.map +0 -1
  473. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityFactory.js +0 -69
  474. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityFactory.js.map +0 -1
  475. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts +0 -623
  476. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts.map +0 -1
  477. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityMetadata.js +0 -12
  478. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityMetadata.js.map +0 -1
  479. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityOptions.d.ts +0 -19
  480. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityOptions.d.ts.map +0 -1
  481. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityOptions.js +0 -24
  482. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityOptions.js.map +0 -1
  483. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityType.d.ts +0 -9
  484. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityType.d.ts.map +0 -1
  485. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityType.js +0 -18
  486. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AuthorityType.js.map +0 -1
  487. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AzureRegion.d.ts +0 -2
  488. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AzureRegion.d.ts.map +0 -1
  489. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts +0 -6
  490. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts.map +0 -1
  491. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts +0 -6
  492. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts.map +0 -1
  493. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts +0 -10
  494. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts.map +0 -1
  495. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js +0 -13
  496. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js.map +0 -1
  497. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/ImdsOptions.d.ts +0 -7
  498. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/ImdsOptions.d.ts.map +0 -1
  499. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts +0 -12
  500. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts.map +0 -1
  501. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/OpenIdConfigResponse.js +0 -15
  502. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/OpenIdConfigResponse.js.map +0 -1
  503. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/ProtocolMode.d.ts +0 -8
  504. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/ProtocolMode.d.ts.map +0 -1
  505. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/ProtocolMode.js +0 -17
  506. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/ProtocolMode.js.map +0 -1
  507. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/RegionDiscovery.d.ts +0 -28
  508. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/RegionDiscovery.d.ts.map +0 -1
  509. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/RegionDiscovery.js +0 -127
  510. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/RegionDiscovery.js.map +0 -1
  511. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts +0 -7
  512. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts.map +0 -1
  513. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/CacheManager.d.ts +0 -393
  514. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/CacheManager.d.ts.map +0 -1
  515. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/CacheManager.js +0 -890
  516. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/CacheManager.js.map +0 -1
  517. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts +0 -57
  518. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts.map +0 -1
  519. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js +0 -124
  520. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js.map +0 -1
  521. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts +0 -100
  522. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts.map +0 -1
  523. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccountEntity.js +0 -247
  524. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AccountEntity.js.map +0 -1
  525. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts +0 -40
  526. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts.map +0 -1
  527. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js +0 -74
  528. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js.map +0 -1
  529. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts +0 -48
  530. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts.map +0 -1
  531. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js +0 -82
  532. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js.map +0 -1
  533. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts +0 -14
  534. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts.map +0 -1
  535. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CacheRecord.js +0 -19
  536. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CacheRecord.js.map +0 -1
  537. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts +0 -94
  538. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts.map +0 -1
  539. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CredentialEntity.js +0 -164
  540. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/CredentialEntity.js.map +0 -1
  541. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts +0 -35
  542. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts.map +0 -1
  543. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/IdTokenEntity.js +0 -70
  544. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/IdTokenEntity.js.map +0 -1
  545. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts +0 -37
  546. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts.map +0 -1
  547. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js +0 -73
  548. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js.map +0 -1
  549. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts +0 -13
  550. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts.map +0 -1
  551. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js +0 -35
  552. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js.map +0 -1
  553. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts +0 -14
  554. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts.map +0 -1
  555. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js +0 -32
  556. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js.map +0 -1
  557. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts +0 -157
  558. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts.map +0 -1
  559. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts +0 -6
  560. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts.map +0 -1
  561. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts +0 -5
  562. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts.map +0 -1
  563. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts +0 -24
  564. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts.map +0 -1
  565. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js +0 -39
  566. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js.map +0 -1
  567. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts +0 -60
  568. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts.map +0 -1
  569. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts +0 -76
  570. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts.map +0 -1
  571. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/AuthorizationCodeClient.js +0 -470
  572. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/AuthorizationCodeClient.js.map +0 -1
  573. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/BaseClient.d.ts +0 -45
  574. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/BaseClient.d.ts.map +0 -1
  575. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/BaseClient.js +0 -103
  576. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/BaseClient.js.map +0 -1
  577. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/ClientCredentialClient.d.ts +0 -39
  578. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/ClientCredentialClient.d.ts.map +0 -1
  579. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/ClientCredentialClient.js +0 -202
  580. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/ClientCredentialClient.js.map +0 -1
  581. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/DeviceCodeClient.d.ts +0 -52
  582. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/DeviceCodeClient.d.ts.map +0 -1
  583. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/DeviceCodeClient.js +0 -232
  584. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/DeviceCodeClient.js.map +0 -1
  585. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/OnBehalfOfClient.d.ts +0 -51
  586. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/OnBehalfOfClient.d.ts.map +0 -1
  587. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/OnBehalfOfClient.js +0 -244
  588. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/OnBehalfOfClient.js.map +0 -1
  589. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/RefreshTokenClient.d.ts +0 -40
  590. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/RefreshTokenClient.d.ts.map +0 -1
  591. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/RefreshTokenClient.js +0 -284
  592. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/RefreshTokenClient.js.map +0 -1
  593. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/SilentFlowClient.d.ts +0 -25
  594. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/SilentFlowClient.d.ts.map +0 -1
  595. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/SilentFlowClient.js +0 -136
  596. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/SilentFlowClient.js.map +0 -1
  597. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/UsernamePasswordClient.d.ts +0 -29
  598. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/UsernamePasswordClient.d.ts.map +0 -1
  599. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/UsernamePasswordClient.js +0 -120
  600. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/client/UsernamePasswordClient.js.map +0 -1
  601. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/config/AppTokenProvider.d.ts +0 -39
  602. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/config/AppTokenProvider.d.ts.map +0 -1
  603. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/config/ClientConfiguration.d.ts +0 -135
  604. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/config/ClientConfiguration.d.ts.map +0 -1
  605. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/config/ClientConfiguration.js +0 -105
  606. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/config/ClientConfiguration.js.map +0 -1
  607. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/ICrypto.d.ts +0 -63
  608. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/ICrypto.d.ts.map +0 -1
  609. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/ICrypto.js +0 -80
  610. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/ICrypto.js.map +0 -1
  611. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts +0 -5
  612. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts.map +0 -1
  613. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/JoseHeader.d.ts +0 -22
  614. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/JoseHeader.d.ts.map +0 -1
  615. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/JoseHeader.js +0 -45
  616. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/JoseHeader.js.map +0 -1
  617. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts +0 -56
  618. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts.map +0 -1
  619. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/PopTokenGenerator.js +0 -107
  620. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/PopTokenGenerator.js.map +0 -1
  621. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts +0 -12
  622. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts.map +0 -1
  623. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/AuthError.d.ts +0 -48
  624. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/AuthError.d.ts.map +0 -1
  625. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/AuthError.js +0 -61
  626. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/AuthError.js.map +0 -1
  627. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientAuthError.d.ts +0 -389
  628. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientAuthError.d.ts.map +0 -1
  629. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientAuthError.js +0 -500
  630. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientAuthError.js.map +0 -1
  631. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientConfigurationError.d.ts +0 -199
  632. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientConfigurationError.d.ts.map +0 -1
  633. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientConfigurationError.js +0 -260
  634. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ClientConfigurationError.js.map +0 -1
  635. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts +0 -42
  636. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts.map +0 -1
  637. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/InteractionRequiredAuthError.js +0 -80
  638. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/InteractionRequiredAuthError.js.map +0 -1
  639. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/JoseHeaderError.d.ts +0 -29
  640. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/JoseHeaderError.d.ts.map +0 -1
  641. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/JoseHeaderError.js +0 -50
  642. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/JoseHeaderError.js.map +0 -1
  643. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ServerError.d.ts +0 -8
  644. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ServerError.d.ts.map +0 -1
  645. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ServerError.js +0 -25
  646. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/error/ServerError.js.map +0 -1
  647. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/index.cjs.js +0 -8611
  648. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/index.cjs.js.map +0 -1
  649. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/index.d.ts +0 -92
  650. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/index.d.ts.map +0 -1
  651. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/index.js +0 -55
  652. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/index.js.map +0 -1
  653. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/logger/Logger.d.ts +0 -95
  654. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/logger/Logger.d.ts.map +0 -1
  655. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/logger/Logger.js +0 -185
  656. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/logger/Logger.js.map +0 -1
  657. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/INetworkModule.d.ts +0 -31
  658. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/INetworkModule.d.ts.map +0 -1
  659. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/INetworkModule.js +0 -21
  660. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/INetworkModule.js.map +0 -1
  661. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/NetworkManager.d.ts +0 -21
  662. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/NetworkManager.d.ts.map +0 -1
  663. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/NetworkManager.js +0 -56
  664. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/NetworkManager.js.map +0 -1
  665. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/RequestThumbprint.d.ts +0 -17
  666. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/RequestThumbprint.d.ts.map +0 -1
  667. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/ThrottlingUtils.d.ts +0 -42
  668. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/ThrottlingUtils.d.ts.map +0 -1
  669. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/ThrottlingUtils.js +0 -101
  670. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/network/ThrottlingUtils.js.map +0 -1
  671. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/packageMetadata.d.ts +0 -3
  672. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/packageMetadata.d.ts.map +0 -1
  673. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/packageMetadata.js +0 -8
  674. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/packageMetadata.js.map +0 -1
  675. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts +0 -20
  676. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts.map +0 -1
  677. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/AuthenticationHeaderParser.js +0 -64
  678. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/AuthenticationHeaderParser.js.map +0 -1
  679. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/BaseAuthRequest.d.ts +0 -35
  680. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/BaseAuthRequest.d.ts.map +0 -1
  681. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts +0 -28
  682. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts.map +0 -1
  683. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts +0 -52
  684. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts.map +0 -1
  685. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts +0 -17
  686. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts.map +0 -1
  687. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts +0 -19
  688. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts.map +0 -1
  689. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts +0 -21
  690. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts.map +0 -1
  691. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts +0 -13
  692. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
  693. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts +0 -21
  694. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts.map +0 -1
  695. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts +0 -20
  696. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts.map +0 -1
  697. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts +0 -17
  698. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
  699. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts +0 -217
  700. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts.map +0 -1
  701. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestParameterBuilder.js +0 -387
  702. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestParameterBuilder.js.map +0 -1
  703. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestValidator.d.ts +0 -34
  704. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestValidator.d.ts.map +0 -1
  705. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestValidator.js +0 -92
  706. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/RequestValidator.js.map +0 -1
  707. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/ScopeSet.d.ts +0 -83
  708. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/ScopeSet.d.ts.map +0 -1
  709. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/ScopeSet.js +0 -192
  710. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/request/ScopeSet.js.map +0 -1
  711. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/AuthenticationResult.d.ts +0 -40
  712. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/AuthenticationResult.d.ts.map +0 -1
  713. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts +0 -14
  714. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts.map +0 -1
  715. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts +0 -26
  716. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts.map +0 -1
  717. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts +0 -16
  718. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts.map +0 -1
  719. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/IMDSBadResponse.d.ts +0 -5
  720. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/IMDSBadResponse.d.ts.map +0 -1
  721. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ResponseHandler.d.ts +0 -71
  722. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ResponseHandler.d.ts.map +0 -1
  723. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ResponseHandler.js +0 -302
  724. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ResponseHandler.js.map +0 -1
  725. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ServerAuthorizationCodeResponse.d.ts +0 -22
  726. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ServerAuthorizationCodeResponse.d.ts.map +0 -1
  727. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts +0 -43
  728. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts.map +0 -1
  729. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts +0 -22
  730. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts.map +0 -1
  731. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts +0 -6
  732. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts.map +0 -1
  733. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts +0 -125
  734. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts.map +0 -1
  735. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js +0 -284
  736. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js.map +0 -1
  737. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts +0 -275
  738. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts.map +0 -1
  739. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js +0 -128
  740. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js.map +0 -1
  741. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts +0 -13
  742. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts.map +0 -1
  743. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js +0 -37
  744. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js.map +0 -1
  745. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts +0 -67
  746. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts.map +0 -1
  747. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js +0 -168
  748. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js.map +0 -1
  749. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts +0 -9
  750. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts.map +0 -1
  751. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/url/IUri.d.ts +0 -13
  752. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/url/IUri.d.ts.map +0 -1
  753. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/url/UrlString.d.ts +0 -71
  754. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/url/UrlString.d.ts.map +0 -1
  755. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/url/UrlString.js +0 -241
  756. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/url/UrlString.js.map +0 -1
  757. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/Constants.d.ts +0 -345
  758. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/Constants.d.ts.map +0 -1
  759. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/Constants.js +0 -386
  760. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/Constants.js.map +0 -1
  761. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/MsalTypes.d.ts +0 -7
  762. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/MsalTypes.d.ts.map +0 -1
  763. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/ProtocolUtils.d.ts +0 -43
  764. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/ProtocolUtils.d.ts.map +0 -1
  765. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/ProtocolUtils.js +0 -77
  766. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/ProtocolUtils.js.map +0 -1
  767. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/StringUtils.d.ts +0 -54
  768. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/StringUtils.d.ts.map +0 -1
  769. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/StringUtils.js +0 -129
  770. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/StringUtils.js.map +0 -1
  771. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/TimeUtils.d.ts +0 -28
  772. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/TimeUtils.d.ts.map +0 -1
  773. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/TimeUtils.js +0 -53
  774. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-common/dist/utils/TimeUtils.js.map +0 -1
  775. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/ITokenCache.d.ts +0 -16
  776. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/ITokenCache.d.ts.map +0 -1
  777. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/NodeStorage.d.ts +0 -181
  778. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/NodeStorage.d.ts.map +0 -1
  779. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/TokenCache.d.ts +0 -91
  780. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/TokenCache.d.ts.map +0 -1
  781. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/distributed/DistributedCachePlugin.d.ts +0 -11
  782. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/distributed/DistributedCachePlugin.d.ts.map +0 -1
  783. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/distributed/ICacheClient.d.ts +0 -18
  784. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/distributed/ICacheClient.d.ts.map +0 -1
  785. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/distributed/IPartitionManager.d.ts +0 -33
  786. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/distributed/IPartitionManager.d.ts.map +0 -1
  787. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/serializer/Deserializer.d.ts +0 -43
  788. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/serializer/Deserializer.d.ts.map +0 -1
  789. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/serializer/Serializer.d.ts +0 -40
  790. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/serializer/Serializer.d.ts.map +0 -1
  791. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/serializer/SerializerTypes.d.ts +0 -102
  792. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/cache/serializer/SerializerTypes.d.ts.map +0 -1
  793. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/ClientApplication.d.ts +0 -143
  794. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/ClientApplication.d.ts.map +0 -1
  795. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/ClientAssertion.d.ts +0 -47
  796. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/ClientAssertion.d.ts.map +0 -1
  797. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/ConfidentialClientApplication.d.ts +0 -59
  798. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/ConfidentialClientApplication.d.ts.map +0 -1
  799. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/IConfidentialClientApplication.d.ts +0 -40
  800. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/IConfidentialClientApplication.d.ts.map +0 -1
  801. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/IPublicClientApplication.d.ts +0 -38
  802. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/IPublicClientApplication.d.ts.map +0 -1
  803. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/PublicClientApplication.d.ts +0 -46
  804. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/client/PublicClientApplication.d.ts.map +0 -1
  805. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/config/Configuration.d.ts +0 -91
  806. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/config/Configuration.d.ts.map +0 -1
  807. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/CryptoProvider.d.ts +0 -53
  808. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/CryptoProvider.d.ts.map +0 -1
  809. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/GuidGenerator.d.ts +0 -15
  810. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/GuidGenerator.d.ts.map +0 -1
  811. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/HashUtils.d.ts +0 -9
  812. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/HashUtils.d.ts.map +0 -1
  813. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/PkceGenerator.d.ts +0 -23
  814. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/crypto/PkceGenerator.d.ts.map +0 -1
  815. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/error/NodeAuthError.d.ts +0 -66
  816. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/error/NodeAuthError.d.ts.map +0 -1
  817. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/index.d.ts +0 -31
  818. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/index.d.ts.map +0 -1
  819. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/index.js +0 -8
  820. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/msal-node.cjs.development.js +0 -2581
  821. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/msal-node.cjs.development.js.map +0 -1
  822. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/msal-node.cjs.production.min.js +0 -2
  823. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/msal-node.cjs.production.min.js.map +0 -1
  824. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/msal-node.esm.js +0 -2470
  825. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/msal-node.esm.js.map +0 -1
  826. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/network/HttpClient.d.ts +0 -25
  827. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/network/HttpClient.d.ts.map +0 -1
  828. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/network/LoopbackClient.d.ts +0 -21
  829. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/network/LoopbackClient.d.ts.map +0 -1
  830. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/packageMetadata.d.ts +0 -3
  831. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/packageMetadata.d.ts.map +0 -1
  832. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/AuthorizationCodeRequest.d.ts +0 -22
  833. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/AuthorizationCodeRequest.d.ts.map +0 -1
  834. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/AuthorizationUrlRequest.d.ts +0 -34
  835. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/AuthorizationUrlRequest.d.ts.map +0 -1
  836. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/ClientCredentialRequest.d.ts +0 -16
  837. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/ClientCredentialRequest.d.ts.map +0 -1
  838. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/DeviceCodeRequest.d.ts +0 -16
  839. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/DeviceCodeRequest.d.ts.map +0 -1
  840. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/InteractiveRequest.d.ts +0 -8
  841. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/InteractiveRequest.d.ts.map +0 -1
  842. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/OnBehalfOfRequest.d.ts +0 -15
  843. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/OnBehalfOfRequest.d.ts.map +0 -1
  844. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/RefreshTokenRequest.d.ts +0 -18
  845. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/RefreshTokenRequest.d.ts.map +0 -1
  846. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/SilentFlowRequest.d.ts +0 -17
  847. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/SilentFlowRequest.d.ts.map +0 -1
  848. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/UsernamePasswordRequest.d.ts +0 -20
  849. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/request/UsernamePasswordRequest.d.ts.map +0 -1
  850. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/utils/Constants.d.ts +0 -93
  851. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/utils/Constants.d.ts.map +0 -1
  852. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/utils/EncodingUtils.d.ts +0 -27
  853. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/utils/EncodingUtils.d.ts.map +0 -1
  854. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/utils/NetworkUtils.d.ts +0 -5
  855. package/common/temp/rush-recycler/install-run-1678274025679/@azure/msal-node/dist/utils/NetworkUtils.d.ts.map +0 -1
  856. package/common/temp/rush-recycler/install-run-1678274025679/@azure/storage-blob/dist/index.js +0 -25339
  857. package/common/temp/rush-recycler/install-run-1678274025679/@azure/storage-blob/dist/index.js.map +0 -1
  858. package/common/temp/rush-recycler/install-run-1678274025679/@microsoft/rush-lib/dist/rush-lib.d.ts +0 -3652
  859. package/common/temp/rush-recycler/install-run-1678274025679/@microsoft/rush-lib/dist/tsdoc-metadata.json +0 -11
  860. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/heft-config-file/dist/heft-config-file.d.ts +0 -254
  861. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/heft-config-file/dist/tsdoc-metadata.json +0 -11
  862. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/node-core-library/dist/node-core-library.d.ts +0 -3717
  863. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/node-core-library/dist/tsdoc-metadata.json +0 -11
  864. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/package-deps-hash/dist/package-deps-hash.d.ts +0 -80
  865. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/package-deps-hash/dist/tsdoc-metadata.json +0 -11
  866. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/rig-package/dist/rig-package.d.ts +0 -198
  867. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/rig-package/dist/tsdoc-metadata.json +0 -11
  868. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/rush-amazon-s3-build-cache-plugin/dist/rush-amazon-s3-build-cache-plugin.d.ts +0 -150
  869. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/rush-azure-storage-build-cache-plugin/dist/rush-azure-storage-build-cache-plugin.d.ts +0 -93
  870. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/rush-sdk/dist/rush-lib.d.ts +0 -3652
  871. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/stream-collator/dist/stream-collator.d.ts +0 -124
  872. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/stream-collator/dist/tsdoc-metadata.json +0 -11
  873. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/terminal/dist/terminal.d.ts +0 -743
  874. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/terminal/dist/tsdoc-metadata.json +0 -11
  875. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/ts-command-line/dist/ts-command-line.d.ts +0 -998
  876. package/common/temp/rush-recycler/install-run-1678274025679/@rushstack/ts-command-line/dist/tsdoc-metadata.json +0 -11
  877. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/index.d.ts +0 -7
  878. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/index.js +0 -24
  879. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/index.js.map +0 -1
  880. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/overloaded-parameters.d.ts +0 -231
  881. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/overloaded-parameters.js +0 -3
  882. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/overloaded-parameters.js.map +0 -1
  883. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/types.d.ts +0 -17
  884. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/types.js +0 -3
  885. package/common/temp/rush-recycler/install-run-1678274025679/@tootallnate/once/dist/types.js.map +0 -1
  886. package/common/temp/rush-recycler/install-run-1678274025679/agent-base/dist/src/index.d.ts +0 -78
  887. package/common/temp/rush-recycler/install-run-1678274025679/agent-base/dist/src/index.js +0 -203
  888. package/common/temp/rush-recycler/install-run-1678274025679/agent-base/dist/src/index.js.map +0 -1
  889. package/common/temp/rush-recycler/install-run-1678274025679/agent-base/dist/src/promisify.d.ts +0 -4
  890. package/common/temp/rush-recycler/install-run-1678274025679/agent-base/dist/src/promisify.js +0 -18
  891. package/common/temp/rush-recycler/install-run-1678274025679/agent-base/dist/src/promisify.js.map +0 -1
  892. package/common/temp/rush-recycler/install-run-1678274025679/esprima/dist/esprima.js +0 -6709
  893. package/common/temp/rush-recycler/install-run-1678274025679/form-data/README.md.bak +0 -358
  894. package/common/temp/rush-recycler/install-run-1678274025679/http-proxy-agent/dist/agent.d.ts +0 -32
  895. package/common/temp/rush-recycler/install-run-1678274025679/http-proxy-agent/dist/agent.js +0 -145
  896. package/common/temp/rush-recycler/install-run-1678274025679/http-proxy-agent/dist/agent.js.map +0 -1
  897. package/common/temp/rush-recycler/install-run-1678274025679/http-proxy-agent/dist/index.d.ts +0 -21
  898. package/common/temp/rush-recycler/install-run-1678274025679/http-proxy-agent/dist/index.js +0 -14
  899. package/common/temp/rush-recycler/install-run-1678274025679/http-proxy-agent/dist/index.js.map +0 -1
  900. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/agent.d.ts +0 -30
  901. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/agent.js +0 -177
  902. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/agent.js.map +0 -1
  903. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/index.d.ts +0 -23
  904. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/index.js +0 -14
  905. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/index.js.map +0 -1
  906. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -7
  907. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/parse-proxy-response.js +0 -66
  908. package/common/temp/rush-recycler/install-run-1678274025679/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
  909. package/common/temp/rush-recycler/install-run-1678274025679/immediate/dist/immediate.js +0 -75
  910. package/common/temp/rush-recycler/install-run-1678274025679/immediate/dist/immediate.min.js +0 -1
  911. package/common/temp/rush-recycler/install-run-1678274025679/js-yaml/dist/js-yaml.js +0 -3946
  912. package/common/temp/rush-recycler/install-run-1678274025679/js-yaml/dist/js-yaml.min.js +0 -1
  913. package/common/temp/rush-recycler/install-run-1678274025679/json5/dist/index.js +0 -1737
  914. package/common/temp/rush-recycler/install-run-1678274025679/json5/dist/index.min.js +0 -1
  915. package/common/temp/rush-recycler/install-run-1678274025679/json5/dist/index.min.mjs +0 -1
  916. package/common/temp/rush-recycler/install-run-1678274025679/json5/dist/index.mjs +0 -1426
  917. package/common/temp/rush-recycler/install-run-1678274025679/jsonpath-plus/dist/index-es.js +0 -1062
  918. package/common/temp/rush-recycler/install-run-1678274025679/jsonpath-plus/dist/index-es.min.js +0 -2
  919. package/common/temp/rush-recycler/install-run-1678274025679/jsonpath-plus/dist/index-es.min.js.map +0 -1
  920. package/common/temp/rush-recycler/install-run-1678274025679/jsonpath-plus/dist/index-umd.js +0 -1072
  921. package/common/temp/rush-recycler/install-run-1678274025679/jsonpath-plus/dist/index-umd.min.js +0 -2
  922. package/common/temp/rush-recycler/install-run-1678274025679/jsonpath-plus/dist/index-umd.min.js.map +0 -1
  923. package/common/temp/rush-recycler/install-run-1678274025679/jszip/dist/jszip.js +0 -11370
  924. package/common/temp/rush-recycler/install-run-1678274025679/jszip/dist/jszip.min.js +0 -13
  925. package/common/temp/rush-recycler/install-run-1678274025679/lie/dist/lie.js +0 -350
  926. package/common/temp/rush-recycler/install-run-1678274025679/lie/dist/lie.min.js +0 -1
  927. package/common/temp/rush-recycler/install-run-1678274025679/lie/dist/lie.polyfill.js +0 -358
  928. package/common/temp/rush-recycler/install-run-1678274025679/lie/dist/lie.polyfill.min.js +0 -1
  929. package/common/temp/rush-recycler/install-run-1678274025679/pako/dist/pako.js +0 -6818
  930. package/common/temp/rush-recycler/install-run-1678274025679/pako/dist/pako.min.js +0 -1
  931. package/common/temp/rush-recycler/install-run-1678274025679/pako/dist/pako_deflate.js +0 -3997
  932. package/common/temp/rush-recycler/install-run-1678274025679/pako/dist/pako_deflate.min.js +0 -1
  933. package/common/temp/rush-recycler/install-run-1678274025679/pako/dist/pako_inflate.js +0 -3300
  934. package/common/temp/rush-recycler/install-run-1678274025679/pako/dist/pako_inflate.min.js +0 -1
  935. package/common/temp/rush-recycler/install-run-1678274025679/psl/dist/psl.js +0 -10187
  936. package/common/temp/rush-recycler/install-run-1678274025679/psl/dist/psl.min.js +0 -1
  937. package/common/temp/rush-recycler/install-run-1678274025679/ramda/dist/ramda.js +0 -9716
  938. package/common/temp/rush-recycler/install-run-1678274025679/ramda/dist/ramda.min.js +0 -1
  939. package/common/temp/rush-recycler/install-run-1678274025679/sprintf-js/dist/angular-sprintf.min.js +0 -4
  940. package/common/temp/rush-recycler/install-run-1678274025679/sprintf-js/dist/angular-sprintf.min.js.map +0 -1
  941. package/common/temp/rush-recycler/install-run-1678274025679/sprintf-js/dist/angular-sprintf.min.map +0 -1
  942. package/common/temp/rush-recycler/install-run-1678274025679/sprintf-js/dist/sprintf.min.js +0 -4
  943. package/common/temp/rush-recycler/install-run-1678274025679/sprintf-js/dist/sprintf.min.js.map +0 -1
  944. package/common/temp/rush-recycler/install-run-1678274025679/sprintf-js/dist/sprintf.min.map +0 -1
  945. package/common/temp/rush-recycler/install-run-1678274025679/tunnel/.idea/encodings.xml +0 -6
  946. package/common/temp/rush-recycler/install-run-1678274025679/tunnel/.idea/modules.xml +0 -8
  947. package/common/temp/rush-recycler/install-run-1678274025679/tunnel/.idea/node-tunnel.iml +0 -12
  948. package/common/temp/rush-recycler/install-run-1678274025679/tunnel/.idea/vcs.xml +0 -6
  949. package/common/temp/rush-recycler/install-run-1678274025679/tunnel/.idea/workspace.xml +0 -797
  950. package/common/temp/rush-recycler/install-run-1678274025679/url-parse/dist/url-parse.js +0 -755
  951. package/common/temp/rush-recycler/install-run-1678274025679/url-parse/dist/url-parse.min.js +0 -1
  952. package/common/temp/rush-recycler/install-run-1678274025679/url-parse/dist/url-parse.min.js.map +0 -1
  953. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/bin/uuid +0 -2
  954. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/index.js +0 -9
  955. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/md5.js +0 -215
  956. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/nil.js +0 -1
  957. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/parse.js +0 -35
  958. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/regex.js +0 -1
  959. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/rng.js +0 -19
  960. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/sha1.js +0 -96
  961. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/stringify.js +0 -30
  962. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/v1.js +0 -95
  963. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/v3.js +0 -4
  964. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/v35.js +0 -64
  965. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/v4.js +0 -24
  966. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/v5.js +0 -4
  967. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/validate.js +0 -7
  968. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-browser/version.js +0 -11
  969. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/index.js +0 -9
  970. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/md5.js +0 -13
  971. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/nil.js +0 -1
  972. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/parse.js +0 -35
  973. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/regex.js +0 -1
  974. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/rng.js +0 -12
  975. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/sha1.js +0 -13
  976. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/stringify.js +0 -29
  977. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/v1.js +0 -95
  978. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/v3.js +0 -4
  979. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/v35.js +0 -64
  980. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/v4.js +0 -24
  981. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/v5.js +0 -4
  982. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/validate.js +0 -7
  983. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/esm-node/version.js +0 -11
  984. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/index.js +0 -79
  985. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/md5-browser.js +0 -223
  986. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/md5.js +0 -23
  987. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/nil.js +0 -8
  988. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/parse.js +0 -45
  989. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/regex.js +0 -8
  990. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/rng-browser.js +0 -26
  991. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/rng.js +0 -24
  992. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/sha1-browser.js +0 -104
  993. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/sha1.js +0 -23
  994. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/stringify.js +0 -39
  995. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuid.min.js +0 -1
  996. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidNIL.min.js +0 -1
  997. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidParse.min.js +0 -1
  998. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidStringify.min.js +0 -1
  999. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidValidate.min.js +0 -1
  1000. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidVersion.min.js +0 -1
  1001. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidv1.min.js +0 -1
  1002. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidv3.min.js +0 -1
  1003. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidv4.min.js +0 -1
  1004. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/umd/uuidv5.min.js +0 -1
  1005. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/uuid-bin.js +0 -85
  1006. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/v1.js +0 -107
  1007. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/v3.js +0 -16
  1008. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/v35.js +0 -78
  1009. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/v4.js +0 -37
  1010. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/v5.js +0 -16
  1011. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/validate.js +0 -17
  1012. package/common/temp/rush-recycler/install-run-1678274025679/uuid/dist/version.js +0 -21
  1013. package/common/temp/rush-recycler/install-run-1678274025679/z-schema/dist/ZSchema-browser-min.js +0 -2
  1014. package/common/temp/rush-recycler/install-run-1678274025679/z-schema/dist/ZSchema-browser-min.js.map +0 -1
  1015. package/common/temp/rush-recycler/install-run-1678274025679/z-schema/dist/ZSchema-browser-test.js +0 -30407
  1016. package/common/temp/rush-recycler/install-run-1678274025679/z-schema/dist/ZSchema-browser.js +0 -12901
@@ -1,2171 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var coreRestPipeline = require('@azure/core-rest-pipeline');
6
- var logger$1 = require('@azure/logger');
7
-
8
- // Copyright (c) Microsoft Corporation.
9
- /**
10
- * Encodes a byte array in base64 format.
11
- * @param value - the Uint8Aray to encode
12
- * @internal
13
- */
14
- function encodeByteArray(value) {
15
- // Buffer.from accepts <ArrayBuffer> | <SharedArrayBuffer>-- the TypeScript definition is off here
16
- // https://nodejs.org/api/buffer.html#buffer_class_method_buffer_from_arraybuffer_byteoffset_length
17
- const bufferValue = value instanceof Buffer ? value : Buffer.from(value.buffer);
18
- return bufferValue.toString("base64");
19
- }
20
- /**
21
- * Decodes a base64 string into a byte array.
22
- * @param value - the base64 string to decode
23
- * @internal
24
- */
25
- function decodeString(value) {
26
- return Buffer.from(value, "base64");
27
- }
28
- /**
29
- * Decodes a base64 string into a string.
30
- * @param value - the base64 string to decode
31
- * @internal
32
- */
33
- function decodeStringToString(value) {
34
- return Buffer.from(value, "base64").toString();
35
- }
36
-
37
- // Copyright (c) Microsoft Corporation.
38
- // Licensed under the MIT license.
39
- /**
40
- * Default key used to access the XML attributes.
41
- */
42
- const XML_ATTRKEY = "$";
43
- /**
44
- * Default key used to access the XML value content.
45
- */
46
- const XML_CHARKEY = "_";
47
-
48
- // Copyright (c) Microsoft Corporation.
49
- // Licensed under the MIT license.
50
- /**
51
- * A type guard for a primitive response body.
52
- * @param value - Value to test
53
- *
54
- * @internal
55
- */
56
- function isPrimitiveBody(value, mapperTypeName) {
57
- return (mapperTypeName !== "Composite" &&
58
- mapperTypeName !== "Dictionary" &&
59
- (typeof value === "string" ||
60
- typeof value === "number" ||
61
- typeof value === "boolean" ||
62
- (mapperTypeName === null || mapperTypeName === void 0 ? void 0 : mapperTypeName.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)) !==
63
- null ||
64
- value === undefined ||
65
- value === null));
66
- }
67
- const validateISODuration = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
68
- /**
69
- * Returns true if the given string is in ISO 8601 format.
70
- * @param value - The value to be validated for ISO 8601 duration format.
71
- * @internal
72
- */
73
- function isDuration(value) {
74
- return validateISODuration.test(value);
75
- }
76
- const validUuidRegex = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;
77
- /**
78
- * Returns true if the provided uuid is valid.
79
- *
80
- * @param uuid - The uuid that needs to be validated.
81
- *
82
- * @internal
83
- */
84
- function isValidUuid(uuid) {
85
- return validUuidRegex.test(uuid);
86
- }
87
- /**
88
- * Maps the response as follows:
89
- * - wraps the response body if needed (typically if its type is primitive).
90
- * - returns null if the combination of the headers and the body is empty.
91
- * - otherwise, returns the combination of the headers and the body.
92
- *
93
- * @param responseObject - a representation of the parsed response
94
- * @returns the response that will be returned to the user which can be null and/or wrapped
95
- *
96
- * @internal
97
- */
98
- function handleNullableResponseAndWrappableBody(responseObject) {
99
- const combinedHeadersAndBody = Object.assign(Object.assign({}, responseObject.headers), responseObject.body);
100
- if (responseObject.hasNullableType &&
101
- Object.getOwnPropertyNames(combinedHeadersAndBody).length === 0) {
102
- return responseObject.shouldWrapBody ? { body: null } : null;
103
- }
104
- else {
105
- return responseObject.shouldWrapBody
106
- ? Object.assign(Object.assign({}, responseObject.headers), { body: responseObject.body }) : combinedHeadersAndBody;
107
- }
108
- }
109
- /**
110
- * Take a `FullOperationResponse` and turn it into a flat
111
- * response object to hand back to the consumer.
112
- * @param fullResponse - The processed response from the operation request
113
- * @param responseSpec - The response map from the OperationSpec
114
- *
115
- * @internal
116
- */
117
- function flattenResponse(fullResponse, responseSpec) {
118
- var _a, _b;
119
- const parsedHeaders = fullResponse.parsedHeaders;
120
- // head methods never have a body, but we return a boolean set to body property
121
- // to indicate presence/absence of the resource
122
- if (fullResponse.request.method === "HEAD") {
123
- return Object.assign(Object.assign({}, parsedHeaders), { body: fullResponse.parsedBody });
124
- }
125
- const bodyMapper = responseSpec && responseSpec.bodyMapper;
126
- const isNullable = Boolean(bodyMapper === null || bodyMapper === void 0 ? void 0 : bodyMapper.nullable);
127
- const expectedBodyTypeName = bodyMapper === null || bodyMapper === void 0 ? void 0 : bodyMapper.type.name;
128
- /** If the body is asked for, we look at the expected body type to handle it */
129
- if (expectedBodyTypeName === "Stream") {
130
- return Object.assign(Object.assign({}, parsedHeaders), { blobBody: fullResponse.blobBody, readableStreamBody: fullResponse.readableStreamBody });
131
- }
132
- const modelProperties = (expectedBodyTypeName === "Composite" &&
133
- bodyMapper.type.modelProperties) ||
134
- {};
135
- const isPageableResponse = Object.keys(modelProperties).some((k) => modelProperties[k].serializedName === "");
136
- if (expectedBodyTypeName === "Sequence" || isPageableResponse) {
137
- const arrayResponse = (_a = fullResponse.parsedBody) !== null && _a !== void 0 ? _a : [];
138
- for (const key of Object.keys(modelProperties)) {
139
- if (modelProperties[key].serializedName) {
140
- arrayResponse[key] = (_b = fullResponse.parsedBody) === null || _b === void 0 ? void 0 : _b[key];
141
- }
142
- }
143
- if (parsedHeaders) {
144
- for (const key of Object.keys(parsedHeaders)) {
145
- arrayResponse[key] = parsedHeaders[key];
146
- }
147
- }
148
- return isNullable &&
149
- !fullResponse.parsedBody &&
150
- !parsedHeaders &&
151
- Object.getOwnPropertyNames(modelProperties).length === 0
152
- ? null
153
- : arrayResponse;
154
- }
155
- return handleNullableResponseAndWrappableBody({
156
- body: fullResponse.parsedBody,
157
- headers: parsedHeaders,
158
- hasNullableType: isNullable,
159
- shouldWrapBody: isPrimitiveBody(fullResponse.parsedBody, expectedBodyTypeName),
160
- });
161
- }
162
-
163
- // Copyright (c) Microsoft Corporation.
164
- class SerializerImpl {
165
- constructor(modelMappers = {}, isXML = false) {
166
- this.modelMappers = modelMappers;
167
- this.isXML = isXML;
168
- }
169
- /**
170
- * @deprecated Removing the constraints validation on client side.
171
- */
172
- validateConstraints(mapper, value, objectName) {
173
- const failValidation = (constraintName, constraintValue) => {
174
- throw new Error(`"${objectName}" with value "${value}" should satisfy the constraint "${constraintName}": ${constraintValue}.`);
175
- };
176
- if (mapper.constraints && value !== undefined && value !== null) {
177
- const { ExclusiveMaximum, ExclusiveMinimum, InclusiveMaximum, InclusiveMinimum, MaxItems, MaxLength, MinItems, MinLength, MultipleOf, Pattern, UniqueItems, } = mapper.constraints;
178
- if (ExclusiveMaximum !== undefined && value >= ExclusiveMaximum) {
179
- failValidation("ExclusiveMaximum", ExclusiveMaximum);
180
- }
181
- if (ExclusiveMinimum !== undefined && value <= ExclusiveMinimum) {
182
- failValidation("ExclusiveMinimum", ExclusiveMinimum);
183
- }
184
- if (InclusiveMaximum !== undefined && value > InclusiveMaximum) {
185
- failValidation("InclusiveMaximum", InclusiveMaximum);
186
- }
187
- if (InclusiveMinimum !== undefined && value < InclusiveMinimum) {
188
- failValidation("InclusiveMinimum", InclusiveMinimum);
189
- }
190
- if (MaxItems !== undefined && value.length > MaxItems) {
191
- failValidation("MaxItems", MaxItems);
192
- }
193
- if (MaxLength !== undefined && value.length > MaxLength) {
194
- failValidation("MaxLength", MaxLength);
195
- }
196
- if (MinItems !== undefined && value.length < MinItems) {
197
- failValidation("MinItems", MinItems);
198
- }
199
- if (MinLength !== undefined && value.length < MinLength) {
200
- failValidation("MinLength", MinLength);
201
- }
202
- if (MultipleOf !== undefined && value % MultipleOf !== 0) {
203
- failValidation("MultipleOf", MultipleOf);
204
- }
205
- if (Pattern) {
206
- const pattern = typeof Pattern === "string" ? new RegExp(Pattern) : Pattern;
207
- if (typeof value !== "string" || value.match(pattern) === null) {
208
- failValidation("Pattern", Pattern);
209
- }
210
- }
211
- if (UniqueItems &&
212
- value.some((item, i, ar) => ar.indexOf(item) !== i)) {
213
- failValidation("UniqueItems", UniqueItems);
214
- }
215
- }
216
- }
217
- /**
218
- * Serialize the given object based on its metadata defined in the mapper
219
- *
220
- * @param mapper - The mapper which defines the metadata of the serializable object
221
- *
222
- * @param object - A valid Javascript object to be serialized
223
- *
224
- * @param objectName - Name of the serialized object
225
- *
226
- * @param options - additional options to serialization
227
- *
228
- * @returns A valid serialized Javascript object
229
- */
230
- serialize(mapper, object, objectName, options = { xml: {} }) {
231
- var _a, _b, _c;
232
- const updatedOptions = {
233
- xml: {
234
- rootName: (_a = options.xml.rootName) !== null && _a !== void 0 ? _a : "",
235
- includeRoot: (_b = options.xml.includeRoot) !== null && _b !== void 0 ? _b : false,
236
- xmlCharKey: (_c = options.xml.xmlCharKey) !== null && _c !== void 0 ? _c : XML_CHARKEY,
237
- },
238
- };
239
- let payload = {};
240
- const mapperType = mapper.type.name;
241
- if (!objectName) {
242
- objectName = mapper.serializedName;
243
- }
244
- if (mapperType.match(/^Sequence$/i) !== null) {
245
- payload = [];
246
- }
247
- if (mapper.isConstant) {
248
- object = mapper.defaultValue;
249
- }
250
- // This table of allowed values should help explain
251
- // the mapper.required and mapper.nullable properties.
252
- // X means "neither undefined or null are allowed".
253
- // || required
254
- // || true | false
255
- // nullable || ==========================
256
- // true || null | undefined/null
257
- // false || X | undefined
258
- // undefined || X | undefined/null
259
- const { required, nullable } = mapper;
260
- if (required && nullable && object === undefined) {
261
- throw new Error(`${objectName} cannot be undefined.`);
262
- }
263
- if (required && !nullable && (object === undefined || object === null)) {
264
- throw new Error(`${objectName} cannot be null or undefined.`);
265
- }
266
- if (!required && nullable === false && object === null) {
267
- throw new Error(`${objectName} cannot be null.`);
268
- }
269
- if (object === undefined || object === null) {
270
- payload = object;
271
- }
272
- else {
273
- if (mapperType.match(/^any$/i) !== null) {
274
- payload = object;
275
- }
276
- else if (mapperType.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i) !== null) {
277
- payload = serializeBasicTypes(mapperType, objectName, object);
278
- }
279
- else if (mapperType.match(/^Enum$/i) !== null) {
280
- const enumMapper = mapper;
281
- payload = serializeEnumType(objectName, enumMapper.type.allowedValues, object);
282
- }
283
- else if (mapperType.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i) !== null) {
284
- payload = serializeDateTypes(mapperType, object, objectName);
285
- }
286
- else if (mapperType.match(/^ByteArray$/i) !== null) {
287
- payload = serializeByteArrayType(objectName, object);
288
- }
289
- else if (mapperType.match(/^Base64Url$/i) !== null) {
290
- payload = serializeBase64UrlType(objectName, object);
291
- }
292
- else if (mapperType.match(/^Sequence$/i) !== null) {
293
- payload = serializeSequenceType(this, mapper, object, objectName, Boolean(this.isXML), updatedOptions);
294
- }
295
- else if (mapperType.match(/^Dictionary$/i) !== null) {
296
- payload = serializeDictionaryType(this, mapper, object, objectName, Boolean(this.isXML), updatedOptions);
297
- }
298
- else if (mapperType.match(/^Composite$/i) !== null) {
299
- payload = serializeCompositeType(this, mapper, object, objectName, Boolean(this.isXML), updatedOptions);
300
- }
301
- }
302
- return payload;
303
- }
304
- /**
305
- * Deserialize the given object based on its metadata defined in the mapper
306
- *
307
- * @param mapper - The mapper which defines the metadata of the serializable object
308
- *
309
- * @param responseBody - A valid Javascript entity to be deserialized
310
- *
311
- * @param objectName - Name of the deserialized object
312
- *
313
- * @param options - Controls behavior of XML parser and builder.
314
- *
315
- * @returns A valid deserialized Javascript object
316
- */
317
- deserialize(mapper, responseBody, objectName, options = { xml: {} }) {
318
- var _a, _b, _c, _d;
319
- const updatedOptions = {
320
- xml: {
321
- rootName: (_a = options.xml.rootName) !== null && _a !== void 0 ? _a : "",
322
- includeRoot: (_b = options.xml.includeRoot) !== null && _b !== void 0 ? _b : false,
323
- xmlCharKey: (_c = options.xml.xmlCharKey) !== null && _c !== void 0 ? _c : XML_CHARKEY,
324
- },
325
- ignoreUnknownProperties: (_d = options.ignoreUnknownProperties) !== null && _d !== void 0 ? _d : false,
326
- };
327
- if (responseBody === undefined || responseBody === null) {
328
- if (this.isXML && mapper.type.name === "Sequence" && !mapper.xmlIsWrapped) {
329
- // Edge case for empty XML non-wrapped lists. xml2js can't distinguish
330
- // between the list being empty versus being missing,
331
- // so let's do the more user-friendly thing and return an empty list.
332
- responseBody = [];
333
- }
334
- // specifically check for undefined as default value can be a falsey value `0, "", false, null`
335
- if (mapper.defaultValue !== undefined) {
336
- responseBody = mapper.defaultValue;
337
- }
338
- return responseBody;
339
- }
340
- let payload;
341
- const mapperType = mapper.type.name;
342
- if (!objectName) {
343
- objectName = mapper.serializedName;
344
- }
345
- if (mapperType.match(/^Composite$/i) !== null) {
346
- payload = deserializeCompositeType(this, mapper, responseBody, objectName, updatedOptions);
347
- }
348
- else {
349
- if (this.isXML) {
350
- const xmlCharKey = updatedOptions.xml.xmlCharKey;
351
- /**
352
- * If the mapper specifies this as a non-composite type value but the responseBody contains
353
- * both header ("$" i.e., XML_ATTRKEY) and body ("#" i.e., XML_CHARKEY) properties,
354
- * then just reduce the responseBody value to the body ("#" i.e., XML_CHARKEY) property.
355
- */
356
- if (responseBody[XML_ATTRKEY] !== undefined && responseBody[xmlCharKey] !== undefined) {
357
- responseBody = responseBody[xmlCharKey];
358
- }
359
- }
360
- if (mapperType.match(/^Number$/i) !== null) {
361
- payload = parseFloat(responseBody);
362
- if (isNaN(payload)) {
363
- payload = responseBody;
364
- }
365
- }
366
- else if (mapperType.match(/^Boolean$/i) !== null) {
367
- if (responseBody === "true") {
368
- payload = true;
369
- }
370
- else if (responseBody === "false") {
371
- payload = false;
372
- }
373
- else {
374
- payload = responseBody;
375
- }
376
- }
377
- else if (mapperType.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i) !== null) {
378
- payload = responseBody;
379
- }
380
- else if (mapperType.match(/^(Date|DateTime|DateTimeRfc1123)$/i) !== null) {
381
- payload = new Date(responseBody);
382
- }
383
- else if (mapperType.match(/^UnixTime$/i) !== null) {
384
- payload = unixTimeToDate(responseBody);
385
- }
386
- else if (mapperType.match(/^ByteArray$/i) !== null) {
387
- payload = decodeString(responseBody);
388
- }
389
- else if (mapperType.match(/^Base64Url$/i) !== null) {
390
- payload = base64UrlToByteArray(responseBody);
391
- }
392
- else if (mapperType.match(/^Sequence$/i) !== null) {
393
- payload = deserializeSequenceType(this, mapper, responseBody, objectName, updatedOptions);
394
- }
395
- else if (mapperType.match(/^Dictionary$/i) !== null) {
396
- payload = deserializeDictionaryType(this, mapper, responseBody, objectName, updatedOptions);
397
- }
398
- }
399
- if (mapper.isConstant) {
400
- payload = mapper.defaultValue;
401
- }
402
- return payload;
403
- }
404
- }
405
- /**
406
- * Method that creates and returns a Serializer.
407
- * @param modelMappers - Known models to map
408
- * @param isXML - If XML should be supported
409
- */
410
- function createSerializer(modelMappers = {}, isXML = false) {
411
- return new SerializerImpl(modelMappers, isXML);
412
- }
413
- function trimEnd(str, ch) {
414
- let len = str.length;
415
- while (len - 1 >= 0 && str[len - 1] === ch) {
416
- --len;
417
- }
418
- return str.substr(0, len);
419
- }
420
- function bufferToBase64Url(buffer) {
421
- if (!buffer) {
422
- return undefined;
423
- }
424
- if (!(buffer instanceof Uint8Array)) {
425
- throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`);
426
- }
427
- // Uint8Array to Base64.
428
- const str = encodeByteArray(buffer);
429
- // Base64 to Base64Url.
430
- return trimEnd(str, "=").replace(/\+/g, "-").replace(/\//g, "_");
431
- }
432
- function base64UrlToByteArray(str) {
433
- if (!str) {
434
- return undefined;
435
- }
436
- if (str && typeof str.valueOf() !== "string") {
437
- throw new Error("Please provide an input of type string for converting to Uint8Array");
438
- }
439
- // Base64Url to Base64.
440
- str = str.replace(/-/g, "+").replace(/_/g, "/");
441
- // Base64 to Uint8Array.
442
- return decodeString(str);
443
- }
444
- function splitSerializeName(prop) {
445
- const classes = [];
446
- let partialclass = "";
447
- if (prop) {
448
- const subwords = prop.split(".");
449
- for (const item of subwords) {
450
- if (item.charAt(item.length - 1) === "\\") {
451
- partialclass += item.substr(0, item.length - 1) + ".";
452
- }
453
- else {
454
- partialclass += item;
455
- classes.push(partialclass);
456
- partialclass = "";
457
- }
458
- }
459
- }
460
- return classes;
461
- }
462
- function dateToUnixTime(d) {
463
- if (!d) {
464
- return undefined;
465
- }
466
- if (typeof d.valueOf() === "string") {
467
- d = new Date(d);
468
- }
469
- return Math.floor(d.getTime() / 1000);
470
- }
471
- function unixTimeToDate(n) {
472
- if (!n) {
473
- return undefined;
474
- }
475
- return new Date(n * 1000);
476
- }
477
- function serializeBasicTypes(typeName, objectName, value) {
478
- if (value !== null && value !== undefined) {
479
- if (typeName.match(/^Number$/i) !== null) {
480
- if (typeof value !== "number") {
481
- throw new Error(`${objectName} with value ${value} must be of type number.`);
482
- }
483
- }
484
- else if (typeName.match(/^String$/i) !== null) {
485
- if (typeof value.valueOf() !== "string") {
486
- throw new Error(`${objectName} with value "${value}" must be of type string.`);
487
- }
488
- }
489
- else if (typeName.match(/^Uuid$/i) !== null) {
490
- if (!(typeof value.valueOf() === "string" && isValidUuid(value))) {
491
- throw new Error(`${objectName} with value "${value}" must be of type string and a valid uuid.`);
492
- }
493
- }
494
- else if (typeName.match(/^Boolean$/i) !== null) {
495
- if (typeof value !== "boolean") {
496
- throw new Error(`${objectName} with value ${value} must be of type boolean.`);
497
- }
498
- }
499
- else if (typeName.match(/^Stream$/i) !== null) {
500
- const objectType = typeof value;
501
- if (objectType !== "string" &&
502
- typeof value.pipe !== "function" &&
503
- !(value instanceof ArrayBuffer) &&
504
- !ArrayBuffer.isView(value) &&
505
- // File objects count as a type of Blob, so we want to use instanceof explicitly
506
- !((typeof Blob === "function" || typeof Blob === "object") && value instanceof Blob) &&
507
- objectType !== "function") {
508
- throw new Error(`${objectName} must be a string, Blob, ArrayBuffer, ArrayBufferView, NodeJS.ReadableStream, or () => NodeJS.ReadableStream.`);
509
- }
510
- }
511
- }
512
- return value;
513
- }
514
- function serializeEnumType(objectName, allowedValues, value) {
515
- if (!allowedValues) {
516
- throw new Error(`Please provide a set of allowedValues to validate ${objectName} as an Enum Type.`);
517
- }
518
- const isPresent = allowedValues.some((item) => {
519
- if (typeof item.valueOf() === "string") {
520
- return item.toLowerCase() === value.toLowerCase();
521
- }
522
- return item === value;
523
- });
524
- if (!isPresent) {
525
- throw new Error(`${value} is not a valid value for ${objectName}. The valid values are: ${JSON.stringify(allowedValues)}.`);
526
- }
527
- return value;
528
- }
529
- function serializeByteArrayType(objectName, value) {
530
- if (value !== undefined && value !== null) {
531
- if (!(value instanceof Uint8Array)) {
532
- throw new Error(`${objectName} must be of type Uint8Array.`);
533
- }
534
- value = encodeByteArray(value);
535
- }
536
- return value;
537
- }
538
- function serializeBase64UrlType(objectName, value) {
539
- if (value !== undefined && value !== null) {
540
- if (!(value instanceof Uint8Array)) {
541
- throw new Error(`${objectName} must be of type Uint8Array.`);
542
- }
543
- value = bufferToBase64Url(value);
544
- }
545
- return value;
546
- }
547
- function serializeDateTypes(typeName, value, objectName) {
548
- if (value !== undefined && value !== null) {
549
- if (typeName.match(/^Date$/i) !== null) {
550
- if (!(value instanceof Date ||
551
- (typeof value.valueOf() === "string" && !isNaN(Date.parse(value))))) {
552
- throw new Error(`${objectName} must be an instanceof Date or a string in ISO8601 format.`);
553
- }
554
- value =
555
- value instanceof Date
556
- ? value.toISOString().substring(0, 10)
557
- : new Date(value).toISOString().substring(0, 10);
558
- }
559
- else if (typeName.match(/^DateTime$/i) !== null) {
560
- if (!(value instanceof Date ||
561
- (typeof value.valueOf() === "string" && !isNaN(Date.parse(value))))) {
562
- throw new Error(`${objectName} must be an instanceof Date or a string in ISO8601 format.`);
563
- }
564
- value = value instanceof Date ? value.toISOString() : new Date(value).toISOString();
565
- }
566
- else if (typeName.match(/^DateTimeRfc1123$/i) !== null) {
567
- if (!(value instanceof Date ||
568
- (typeof value.valueOf() === "string" && !isNaN(Date.parse(value))))) {
569
- throw new Error(`${objectName} must be an instanceof Date or a string in RFC-1123 format.`);
570
- }
571
- value = value instanceof Date ? value.toUTCString() : new Date(value).toUTCString();
572
- }
573
- else if (typeName.match(/^UnixTime$/i) !== null) {
574
- if (!(value instanceof Date ||
575
- (typeof value.valueOf() === "string" && !isNaN(Date.parse(value))))) {
576
- throw new Error(`${objectName} must be an instanceof Date or a string in RFC-1123/ISO8601 format ` +
577
- `for it to be serialized in UnixTime/Epoch format.`);
578
- }
579
- value = dateToUnixTime(value);
580
- }
581
- else if (typeName.match(/^TimeSpan$/i) !== null) {
582
- if (!isDuration(value)) {
583
- throw new Error(`${objectName} must be a string in ISO 8601 format. Instead was "${value}".`);
584
- }
585
- }
586
- }
587
- return value;
588
- }
589
- function serializeSequenceType(serializer, mapper, object, objectName, isXml, options) {
590
- var _a;
591
- if (!Array.isArray(object)) {
592
- throw new Error(`${objectName} must be of type Array.`);
593
- }
594
- let elementType = mapper.type.element;
595
- if (!elementType || typeof elementType !== "object") {
596
- throw new Error(`element" metadata for an Array must be defined in the ` +
597
- `mapper and it must of type "object" in ${objectName}.`);
598
- }
599
- // Quirk: Composite mappers referenced by `element` might
600
- // not have *all* properties declared (like uberParent),
601
- // so let's try to look up the full definition by name.
602
- if (elementType.type.name === "Composite" && elementType.type.className) {
603
- elementType = (_a = serializer.modelMappers[elementType.type.className]) !== null && _a !== void 0 ? _a : elementType;
604
- }
605
- const tempArray = [];
606
- for (let i = 0; i < object.length; i++) {
607
- const serializedValue = serializer.serialize(elementType, object[i], objectName, options);
608
- if (isXml && elementType.xmlNamespace) {
609
- const xmlnsKey = elementType.xmlNamespacePrefix
610
- ? `xmlns:${elementType.xmlNamespacePrefix}`
611
- : "xmlns";
612
- if (elementType.type.name === "Composite") {
613
- tempArray[i] = Object.assign({}, serializedValue);
614
- tempArray[i][XML_ATTRKEY] = { [xmlnsKey]: elementType.xmlNamespace };
615
- }
616
- else {
617
- tempArray[i] = {};
618
- tempArray[i][options.xml.xmlCharKey] = serializedValue;
619
- tempArray[i][XML_ATTRKEY] = { [xmlnsKey]: elementType.xmlNamespace };
620
- }
621
- }
622
- else {
623
- tempArray[i] = serializedValue;
624
- }
625
- }
626
- return tempArray;
627
- }
628
- function serializeDictionaryType(serializer, mapper, object, objectName, isXml, options) {
629
- if (typeof object !== "object") {
630
- throw new Error(`${objectName} must be of type object.`);
631
- }
632
- const valueType = mapper.type.value;
633
- if (!valueType || typeof valueType !== "object") {
634
- throw new Error(`"value" metadata for a Dictionary must be defined in the ` +
635
- `mapper and it must of type "object" in ${objectName}.`);
636
- }
637
- const tempDictionary = {};
638
- for (const key of Object.keys(object)) {
639
- const serializedValue = serializer.serialize(valueType, object[key], objectName, options);
640
- // If the element needs an XML namespace we need to add it within the $ property
641
- tempDictionary[key] = getXmlObjectValue(valueType, serializedValue, isXml, options);
642
- }
643
- // Add the namespace to the root element if needed
644
- if (isXml && mapper.xmlNamespace) {
645
- const xmlnsKey = mapper.xmlNamespacePrefix ? `xmlns:${mapper.xmlNamespacePrefix}` : "xmlns";
646
- const result = tempDictionary;
647
- result[XML_ATTRKEY] = { [xmlnsKey]: mapper.xmlNamespace };
648
- return result;
649
- }
650
- return tempDictionary;
651
- }
652
- /**
653
- * Resolves the additionalProperties property from a referenced mapper
654
- * @param serializer - the serializer containing the entire set of mappers
655
- * @param mapper - the composite mapper to resolve
656
- * @param objectName - name of the object being serialized
657
- */
658
- function resolveAdditionalProperties(serializer, mapper, objectName) {
659
- const additionalProperties = mapper.type.additionalProperties;
660
- if (!additionalProperties && mapper.type.className) {
661
- const modelMapper = resolveReferencedMapper(serializer, mapper, objectName);
662
- return modelMapper === null || modelMapper === void 0 ? void 0 : modelMapper.type.additionalProperties;
663
- }
664
- return additionalProperties;
665
- }
666
- /**
667
- * Finds the mapper referenced by className
668
- * @param serializer - the serializer containing the entire set of mappers
669
- * @param mapper - the composite mapper to resolve
670
- * @param objectName - name of the object being serialized
671
- */
672
- function resolveReferencedMapper(serializer, mapper, objectName) {
673
- const className = mapper.type.className;
674
- if (!className) {
675
- throw new Error(`Class name for model "${objectName}" is not provided in the mapper "${JSON.stringify(mapper, undefined, 2)}".`);
676
- }
677
- return serializer.modelMappers[className];
678
- }
679
- /**
680
- * Resolves a composite mapper's modelProperties.
681
- * @param serializer - the serializer containing the entire set of mappers
682
- * @param mapper - the composite mapper to resolve
683
- */
684
- function resolveModelProperties(serializer, mapper, objectName) {
685
- let modelProps = mapper.type.modelProperties;
686
- if (!modelProps) {
687
- const modelMapper = resolveReferencedMapper(serializer, mapper, objectName);
688
- if (!modelMapper) {
689
- throw new Error(`mapper() cannot be null or undefined for model "${mapper.type.className}".`);
690
- }
691
- modelProps = modelMapper === null || modelMapper === void 0 ? void 0 : modelMapper.type.modelProperties;
692
- if (!modelProps) {
693
- throw new Error(`modelProperties cannot be null or undefined in the ` +
694
- `mapper "${JSON.stringify(modelMapper)}" of type "${mapper.type.className}" for object "${objectName}".`);
695
- }
696
- }
697
- return modelProps;
698
- }
699
- function serializeCompositeType(serializer, mapper, object, objectName, isXml, options) {
700
- if (getPolymorphicDiscriminatorRecursively(serializer, mapper)) {
701
- mapper = getPolymorphicMapper(serializer, mapper, object, "clientName");
702
- }
703
- if (object !== undefined && object !== null) {
704
- const payload = {};
705
- const modelProps = resolveModelProperties(serializer, mapper, objectName);
706
- for (const key of Object.keys(modelProps)) {
707
- const propertyMapper = modelProps[key];
708
- if (propertyMapper.readOnly) {
709
- continue;
710
- }
711
- let propName;
712
- let parentObject = payload;
713
- if (serializer.isXML) {
714
- if (propertyMapper.xmlIsWrapped) {
715
- propName = propertyMapper.xmlName;
716
- }
717
- else {
718
- propName = propertyMapper.xmlElementName || propertyMapper.xmlName;
719
- }
720
- }
721
- else {
722
- const paths = splitSerializeName(propertyMapper.serializedName);
723
- propName = paths.pop();
724
- for (const pathName of paths) {
725
- const childObject = parentObject[pathName];
726
- if ((childObject === undefined || childObject === null) &&
727
- ((object[key] !== undefined && object[key] !== null) ||
728
- propertyMapper.defaultValue !== undefined)) {
729
- parentObject[pathName] = {};
730
- }
731
- parentObject = parentObject[pathName];
732
- }
733
- }
734
- if (parentObject !== undefined && parentObject !== null) {
735
- if (isXml && mapper.xmlNamespace) {
736
- const xmlnsKey = mapper.xmlNamespacePrefix
737
- ? `xmlns:${mapper.xmlNamespacePrefix}`
738
- : "xmlns";
739
- parentObject[XML_ATTRKEY] = Object.assign(Object.assign({}, parentObject[XML_ATTRKEY]), { [xmlnsKey]: mapper.xmlNamespace });
740
- }
741
- const propertyObjectName = propertyMapper.serializedName !== ""
742
- ? objectName + "." + propertyMapper.serializedName
743
- : objectName;
744
- let toSerialize = object[key];
745
- const polymorphicDiscriminator = getPolymorphicDiscriminatorRecursively(serializer, mapper);
746
- if (polymorphicDiscriminator &&
747
- polymorphicDiscriminator.clientName === key &&
748
- (toSerialize === undefined || toSerialize === null)) {
749
- toSerialize = mapper.serializedName;
750
- }
751
- const serializedValue = serializer.serialize(propertyMapper, toSerialize, propertyObjectName, options);
752
- if (serializedValue !== undefined && propName !== undefined && propName !== null) {
753
- const value = getXmlObjectValue(propertyMapper, serializedValue, isXml, options);
754
- if (isXml && propertyMapper.xmlIsAttribute) {
755
- // XML_ATTRKEY, i.e., $ is the key attributes are kept under in xml2js.
756
- // This keeps things simple while preventing name collision
757
- // with names in user documents.
758
- parentObject[XML_ATTRKEY] = parentObject[XML_ATTRKEY] || {};
759
- parentObject[XML_ATTRKEY][propName] = serializedValue;
760
- }
761
- else if (isXml && propertyMapper.xmlIsWrapped) {
762
- parentObject[propName] = { [propertyMapper.xmlElementName]: value };
763
- }
764
- else {
765
- parentObject[propName] = value;
766
- }
767
- }
768
- }
769
- }
770
- const additionalPropertiesMapper = resolveAdditionalProperties(serializer, mapper, objectName);
771
- if (additionalPropertiesMapper) {
772
- const propNames = Object.keys(modelProps);
773
- for (const clientPropName in object) {
774
- const isAdditionalProperty = propNames.every((pn) => pn !== clientPropName);
775
- if (isAdditionalProperty) {
776
- payload[clientPropName] = serializer.serialize(additionalPropertiesMapper, object[clientPropName], objectName + '["' + clientPropName + '"]', options);
777
- }
778
- }
779
- }
780
- return payload;
781
- }
782
- return object;
783
- }
784
- function getXmlObjectValue(propertyMapper, serializedValue, isXml, options) {
785
- if (!isXml || !propertyMapper.xmlNamespace) {
786
- return serializedValue;
787
- }
788
- const xmlnsKey = propertyMapper.xmlNamespacePrefix
789
- ? `xmlns:${propertyMapper.xmlNamespacePrefix}`
790
- : "xmlns";
791
- const xmlNamespace = { [xmlnsKey]: propertyMapper.xmlNamespace };
792
- if (["Composite"].includes(propertyMapper.type.name)) {
793
- if (serializedValue[XML_ATTRKEY]) {
794
- return serializedValue;
795
- }
796
- else {
797
- const result = Object.assign({}, serializedValue);
798
- result[XML_ATTRKEY] = xmlNamespace;
799
- return result;
800
- }
801
- }
802
- const result = {};
803
- result[options.xml.xmlCharKey] = serializedValue;
804
- result[XML_ATTRKEY] = xmlNamespace;
805
- return result;
806
- }
807
- function isSpecialXmlProperty(propertyName, options) {
808
- return [XML_ATTRKEY, options.xml.xmlCharKey].includes(propertyName);
809
- }
810
- function deserializeCompositeType(serializer, mapper, responseBody, objectName, options) {
811
- var _a, _b;
812
- const xmlCharKey = (_a = options.xml.xmlCharKey) !== null && _a !== void 0 ? _a : XML_CHARKEY;
813
- if (getPolymorphicDiscriminatorRecursively(serializer, mapper)) {
814
- mapper = getPolymorphicMapper(serializer, mapper, responseBody, "serializedName");
815
- }
816
- const modelProps = resolveModelProperties(serializer, mapper, objectName);
817
- let instance = {};
818
- const handledPropertyNames = [];
819
- for (const key of Object.keys(modelProps)) {
820
- const propertyMapper = modelProps[key];
821
- const paths = splitSerializeName(modelProps[key].serializedName);
822
- handledPropertyNames.push(paths[0]);
823
- const { serializedName, xmlName, xmlElementName } = propertyMapper;
824
- let propertyObjectName = objectName;
825
- if (serializedName !== "" && serializedName !== undefined) {
826
- propertyObjectName = objectName + "." + serializedName;
827
- }
828
- const headerCollectionPrefix = propertyMapper.headerCollectionPrefix;
829
- if (headerCollectionPrefix) {
830
- const dictionary = {};
831
- for (const headerKey of Object.keys(responseBody)) {
832
- if (headerKey.startsWith(headerCollectionPrefix)) {
833
- dictionary[headerKey.substring(headerCollectionPrefix.length)] = serializer.deserialize(propertyMapper.type.value, responseBody[headerKey], propertyObjectName, options);
834
- }
835
- handledPropertyNames.push(headerKey);
836
- }
837
- instance[key] = dictionary;
838
- }
839
- else if (serializer.isXML) {
840
- if (propertyMapper.xmlIsAttribute && responseBody[XML_ATTRKEY]) {
841
- instance[key] = serializer.deserialize(propertyMapper, responseBody[XML_ATTRKEY][xmlName], propertyObjectName, options);
842
- }
843
- else if (propertyMapper.xmlIsMsText) {
844
- if (responseBody[xmlCharKey] !== undefined) {
845
- instance[key] = responseBody[xmlCharKey];
846
- }
847
- else if (typeof responseBody === "string") {
848
- // The special case where xml parser parses "<Name>content</Name>" into JSON of
849
- // `{ name: "content"}` instead of `{ name: { "_": "content" }}`
850
- instance[key] = responseBody;
851
- }
852
- }
853
- else {
854
- const propertyName = xmlElementName || xmlName || serializedName;
855
- if (propertyMapper.xmlIsWrapped) {
856
- /* a list of <xmlElementName> wrapped by <xmlName>
857
- For the xml example below
858
- <Cors>
859
- <CorsRule>...</CorsRule>
860
- <CorsRule>...</CorsRule>
861
- </Cors>
862
- the responseBody has
863
- {
864
- Cors: {
865
- CorsRule: [{...}, {...}]
866
- }
867
- }
868
- xmlName is "Cors" and xmlElementName is"CorsRule".
869
- */
870
- const wrapped = responseBody[xmlName];
871
- const elementList = (_b = wrapped === null || wrapped === void 0 ? void 0 : wrapped[xmlElementName]) !== null && _b !== void 0 ? _b : [];
872
- instance[key] = serializer.deserialize(propertyMapper, elementList, propertyObjectName, options);
873
- handledPropertyNames.push(xmlName);
874
- }
875
- else {
876
- const property = responseBody[propertyName];
877
- instance[key] = serializer.deserialize(propertyMapper, property, propertyObjectName, options);
878
- handledPropertyNames.push(propertyName);
879
- }
880
- }
881
- }
882
- else {
883
- // deserialize the property if it is present in the provided responseBody instance
884
- let propertyInstance;
885
- let res = responseBody;
886
- // traversing the object step by step.
887
- let steps = 0;
888
- for (const item of paths) {
889
- if (!res)
890
- break;
891
- steps++;
892
- res = res[item];
893
- }
894
- // only accept null when reaching the last position of object otherwise it would be undefined
895
- if (res === null && steps < paths.length) {
896
- res = undefined;
897
- }
898
- propertyInstance = res;
899
- const polymorphicDiscriminator = mapper.type.polymorphicDiscriminator;
900
- // checking that the model property name (key)(ex: "fishtype") and the
901
- // clientName of the polymorphicDiscriminator {metadata} (ex: "fishtype")
902
- // instead of the serializedName of the polymorphicDiscriminator (ex: "fish.type")
903
- // is a better approach. The generator is not consistent with escaping '\.' in the
904
- // serializedName of the property (ex: "fish\.type") that is marked as polymorphic discriminator
905
- // and the serializedName of the metadata polymorphicDiscriminator (ex: "fish.type"). However,
906
- // the clientName transformation of the polymorphicDiscriminator (ex: "fishtype") and
907
- // the transformation of model property name (ex: "fishtype") is done consistently.
908
- // Hence, it is a safer bet to rely on the clientName of the polymorphicDiscriminator.
909
- if (polymorphicDiscriminator &&
910
- key === polymorphicDiscriminator.clientName &&
911
- (propertyInstance === undefined || propertyInstance === null)) {
912
- propertyInstance = mapper.serializedName;
913
- }
914
- let serializedValue;
915
- // paging
916
- if (Array.isArray(responseBody[key]) && modelProps[key].serializedName === "") {
917
- propertyInstance = responseBody[key];
918
- const arrayInstance = serializer.deserialize(propertyMapper, propertyInstance, propertyObjectName, options);
919
- // Copy over any properties that have already been added into the instance, where they do
920
- // not exist on the newly de-serialized array
921
- for (const [k, v] of Object.entries(instance)) {
922
- if (!Object.prototype.hasOwnProperty.call(arrayInstance, k)) {
923
- arrayInstance[k] = v;
924
- }
925
- }
926
- instance = arrayInstance;
927
- }
928
- else if (propertyInstance !== undefined || propertyMapper.defaultValue !== undefined) {
929
- serializedValue = serializer.deserialize(propertyMapper, propertyInstance, propertyObjectName, options);
930
- instance[key] = serializedValue;
931
- }
932
- }
933
- }
934
- const additionalPropertiesMapper = mapper.type.additionalProperties;
935
- if (additionalPropertiesMapper) {
936
- const isAdditionalProperty = (responsePropName) => {
937
- for (const clientPropName in modelProps) {
938
- const paths = splitSerializeName(modelProps[clientPropName].serializedName);
939
- if (paths[0] === responsePropName) {
940
- return false;
941
- }
942
- }
943
- return true;
944
- };
945
- for (const responsePropName in responseBody) {
946
- if (isAdditionalProperty(responsePropName)) {
947
- instance[responsePropName] = serializer.deserialize(additionalPropertiesMapper, responseBody[responsePropName], objectName + '["' + responsePropName + '"]', options);
948
- }
949
- }
950
- }
951
- else if (responseBody && !options.ignoreUnknownProperties) {
952
- for (const key of Object.keys(responseBody)) {
953
- if (instance[key] === undefined &&
954
- !handledPropertyNames.includes(key) &&
955
- !isSpecialXmlProperty(key, options)) {
956
- instance[key] = responseBody[key];
957
- }
958
- }
959
- }
960
- return instance;
961
- }
962
- function deserializeDictionaryType(serializer, mapper, responseBody, objectName, options) {
963
- /* jshint validthis: true */
964
- const value = mapper.type.value;
965
- if (!value || typeof value !== "object") {
966
- throw new Error(`"value" metadata for a Dictionary must be defined in the ` +
967
- `mapper and it must of type "object" in ${objectName}`);
968
- }
969
- if (responseBody) {
970
- const tempDictionary = {};
971
- for (const key of Object.keys(responseBody)) {
972
- tempDictionary[key] = serializer.deserialize(value, responseBody[key], objectName, options);
973
- }
974
- return tempDictionary;
975
- }
976
- return responseBody;
977
- }
978
- function deserializeSequenceType(serializer, mapper, responseBody, objectName, options) {
979
- var _a;
980
- let element = mapper.type.element;
981
- if (!element || typeof element !== "object") {
982
- throw new Error(`element" metadata for an Array must be defined in the ` +
983
- `mapper and it must of type "object" in ${objectName}`);
984
- }
985
- if (responseBody) {
986
- if (!Array.isArray(responseBody)) {
987
- // xml2js will interpret a single element array as just the element, so force it to be an array
988
- responseBody = [responseBody];
989
- }
990
- // Quirk: Composite mappers referenced by `element` might
991
- // not have *all* properties declared (like uberParent),
992
- // so let's try to look up the full definition by name.
993
- if (element.type.name === "Composite" && element.type.className) {
994
- element = (_a = serializer.modelMappers[element.type.className]) !== null && _a !== void 0 ? _a : element;
995
- }
996
- const tempArray = [];
997
- for (let i = 0; i < responseBody.length; i++) {
998
- tempArray[i] = serializer.deserialize(element, responseBody[i], `${objectName}[${i}]`, options);
999
- }
1000
- return tempArray;
1001
- }
1002
- return responseBody;
1003
- }
1004
- function getIndexDiscriminator(discriminators, discriminatorValue, typeName) {
1005
- const typeNamesToCheck = [typeName];
1006
- while (typeNamesToCheck.length) {
1007
- const currentName = typeNamesToCheck.shift();
1008
- const indexDiscriminator = discriminatorValue === currentName
1009
- ? discriminatorValue
1010
- : currentName + "." + discriminatorValue;
1011
- if (Object.prototype.hasOwnProperty.call(discriminators, indexDiscriminator)) {
1012
- return discriminators[indexDiscriminator];
1013
- }
1014
- else {
1015
- for (const [name, mapper] of Object.entries(discriminators)) {
1016
- if (name.startsWith(currentName + ".") &&
1017
- mapper.type.uberParent === currentName &&
1018
- mapper.type.className) {
1019
- typeNamesToCheck.push(mapper.type.className);
1020
- }
1021
- }
1022
- }
1023
- }
1024
- return undefined;
1025
- }
1026
- function getPolymorphicMapper(serializer, mapper, object, polymorphicPropertyName) {
1027
- var _a;
1028
- const polymorphicDiscriminator = getPolymorphicDiscriminatorRecursively(serializer, mapper);
1029
- if (polymorphicDiscriminator) {
1030
- let discriminatorName = polymorphicDiscriminator[polymorphicPropertyName];
1031
- if (discriminatorName) {
1032
- // The serializedName might have \\, which we just want to ignore
1033
- if (polymorphicPropertyName === "serializedName") {
1034
- discriminatorName = discriminatorName.replace(/\\/gi, "");
1035
- }
1036
- const discriminatorValue = object[discriminatorName];
1037
- const typeName = (_a = mapper.type.uberParent) !== null && _a !== void 0 ? _a : mapper.type.className;
1038
- if (typeof discriminatorValue === "string" && typeName) {
1039
- const polymorphicMapper = getIndexDiscriminator(serializer.modelMappers.discriminators, discriminatorValue, typeName);
1040
- if (polymorphicMapper) {
1041
- mapper = polymorphicMapper;
1042
- }
1043
- }
1044
- }
1045
- }
1046
- return mapper;
1047
- }
1048
- function getPolymorphicDiscriminatorRecursively(serializer, mapper) {
1049
- return (mapper.type.polymorphicDiscriminator ||
1050
- getPolymorphicDiscriminatorSafely(serializer, mapper.type.uberParent) ||
1051
- getPolymorphicDiscriminatorSafely(serializer, mapper.type.className));
1052
- }
1053
- function getPolymorphicDiscriminatorSafely(serializer, typeName) {
1054
- return (typeName &&
1055
- serializer.modelMappers[typeName] &&
1056
- serializer.modelMappers[typeName].type.polymorphicDiscriminator);
1057
- }
1058
- /**
1059
- * Known types of Mappers
1060
- */
1061
- const MapperTypeNames = {
1062
- Base64Url: "Base64Url",
1063
- Boolean: "Boolean",
1064
- ByteArray: "ByteArray",
1065
- Composite: "Composite",
1066
- Date: "Date",
1067
- DateTime: "DateTime",
1068
- DateTimeRfc1123: "DateTimeRfc1123",
1069
- Dictionary: "Dictionary",
1070
- Enum: "Enum",
1071
- Number: "Number",
1072
- Object: "Object",
1073
- Sequence: "Sequence",
1074
- String: "String",
1075
- Stream: "Stream",
1076
- TimeSpan: "TimeSpan",
1077
- UnixTime: "UnixTime",
1078
- };
1079
-
1080
- // Copyright (c) Microsoft Corporation.
1081
- // Licensed under the MIT license.
1082
- /**
1083
- * @internal
1084
- * Retrieves the value to use for a given operation argument
1085
- * @param operationArguments - The arguments passed from the generated client
1086
- * @param parameter - The parameter description
1087
- * @param fallbackObject - If something isn't found in the arguments bag, look here.
1088
- * Generally used to look at the service client properties.
1089
- */
1090
- function getOperationArgumentValueFromParameter(operationArguments, parameter, fallbackObject) {
1091
- let parameterPath = parameter.parameterPath;
1092
- const parameterMapper = parameter.mapper;
1093
- let value;
1094
- if (typeof parameterPath === "string") {
1095
- parameterPath = [parameterPath];
1096
- }
1097
- if (Array.isArray(parameterPath)) {
1098
- if (parameterPath.length > 0) {
1099
- if (parameterMapper.isConstant) {
1100
- value = parameterMapper.defaultValue;
1101
- }
1102
- else {
1103
- let propertySearchResult = getPropertyFromParameterPath(operationArguments, parameterPath);
1104
- if (!propertySearchResult.propertyFound && fallbackObject) {
1105
- propertySearchResult = getPropertyFromParameterPath(fallbackObject, parameterPath);
1106
- }
1107
- let useDefaultValue = false;
1108
- if (!propertySearchResult.propertyFound) {
1109
- useDefaultValue =
1110
- parameterMapper.required ||
1111
- (parameterPath[0] === "options" && parameterPath.length === 2);
1112
- }
1113
- value = useDefaultValue ? parameterMapper.defaultValue : propertySearchResult.propertyValue;
1114
- }
1115
- }
1116
- }
1117
- else {
1118
- if (parameterMapper.required) {
1119
- value = {};
1120
- }
1121
- for (const propertyName in parameterPath) {
1122
- const propertyMapper = parameterMapper.type.modelProperties[propertyName];
1123
- const propertyPath = parameterPath[propertyName];
1124
- const propertyValue = getOperationArgumentValueFromParameter(operationArguments, {
1125
- parameterPath: propertyPath,
1126
- mapper: propertyMapper,
1127
- }, fallbackObject);
1128
- if (propertyValue !== undefined) {
1129
- if (!value) {
1130
- value = {};
1131
- }
1132
- value[propertyName] = propertyValue;
1133
- }
1134
- }
1135
- }
1136
- return value;
1137
- }
1138
- function getPropertyFromParameterPath(parent, parameterPath) {
1139
- const result = { propertyFound: false };
1140
- let i = 0;
1141
- for (; i < parameterPath.length; ++i) {
1142
- const parameterPathPart = parameterPath[i];
1143
- // Make sure to check inherited properties too, so don't use hasOwnProperty().
1144
- if (parent && parameterPathPart in parent) {
1145
- parent = parent[parameterPathPart];
1146
- }
1147
- else {
1148
- break;
1149
- }
1150
- }
1151
- if (i === parameterPath.length) {
1152
- result.propertyValue = parent;
1153
- result.propertyFound = true;
1154
- }
1155
- return result;
1156
- }
1157
- const operationRequestMap = new WeakMap();
1158
- const originalRequestSymbol = Symbol.for("@azure/core-client original request");
1159
- function hasOriginalRequest(request) {
1160
- return originalRequestSymbol in request;
1161
- }
1162
- function getOperationRequestInfo(request) {
1163
- if (hasOriginalRequest(request)) {
1164
- return getOperationRequestInfo(request[originalRequestSymbol]);
1165
- }
1166
- let info = operationRequestMap.get(request);
1167
- if (!info) {
1168
- info = {};
1169
- operationRequestMap.set(request, info);
1170
- }
1171
- return info;
1172
- }
1173
-
1174
- // Copyright (c) Microsoft Corporation.
1175
- const defaultJsonContentTypes = ["application/json", "text/json"];
1176
- const defaultXmlContentTypes = ["application/xml", "application/atom+xml"];
1177
- /**
1178
- * The programmatic identifier of the deserializationPolicy.
1179
- */
1180
- const deserializationPolicyName = "deserializationPolicy";
1181
- /**
1182
- * This policy handles parsing out responses according to OperationSpecs on the request.
1183
- */
1184
- function deserializationPolicy(options = {}) {
1185
- var _a, _b, _c, _d, _e, _f, _g;
1186
- const jsonContentTypes = (_b = (_a = options.expectedContentTypes) === null || _a === void 0 ? void 0 : _a.json) !== null && _b !== void 0 ? _b : defaultJsonContentTypes;
1187
- const xmlContentTypes = (_d = (_c = options.expectedContentTypes) === null || _c === void 0 ? void 0 : _c.xml) !== null && _d !== void 0 ? _d : defaultXmlContentTypes;
1188
- const parseXML = options.parseXML;
1189
- const serializerOptions = options.serializerOptions;
1190
- const updatedOptions = {
1191
- xml: {
1192
- rootName: (_e = serializerOptions === null || serializerOptions === void 0 ? void 0 : serializerOptions.xml.rootName) !== null && _e !== void 0 ? _e : "",
1193
- includeRoot: (_f = serializerOptions === null || serializerOptions === void 0 ? void 0 : serializerOptions.xml.includeRoot) !== null && _f !== void 0 ? _f : false,
1194
- xmlCharKey: (_g = serializerOptions === null || serializerOptions === void 0 ? void 0 : serializerOptions.xml.xmlCharKey) !== null && _g !== void 0 ? _g : XML_CHARKEY,
1195
- },
1196
- };
1197
- return {
1198
- name: deserializationPolicyName,
1199
- async sendRequest(request, next) {
1200
- const response = await next(request);
1201
- return deserializeResponseBody(jsonContentTypes, xmlContentTypes, response, updatedOptions, parseXML);
1202
- },
1203
- };
1204
- }
1205
- function getOperationResponseMap(parsedResponse) {
1206
- let result;
1207
- const request = parsedResponse.request;
1208
- const operationInfo = getOperationRequestInfo(request);
1209
- const operationSpec = operationInfo === null || operationInfo === void 0 ? void 0 : operationInfo.operationSpec;
1210
- if (operationSpec) {
1211
- if (!(operationInfo === null || operationInfo === void 0 ? void 0 : operationInfo.operationResponseGetter)) {
1212
- result = operationSpec.responses[parsedResponse.status];
1213
- }
1214
- else {
1215
- result = operationInfo === null || operationInfo === void 0 ? void 0 : operationInfo.operationResponseGetter(operationSpec, parsedResponse);
1216
- }
1217
- }
1218
- return result;
1219
- }
1220
- function shouldDeserializeResponse(parsedResponse) {
1221
- const request = parsedResponse.request;
1222
- const operationInfo = getOperationRequestInfo(request);
1223
- const shouldDeserialize = operationInfo === null || operationInfo === void 0 ? void 0 : operationInfo.shouldDeserialize;
1224
- let result;
1225
- if (shouldDeserialize === undefined) {
1226
- result = true;
1227
- }
1228
- else if (typeof shouldDeserialize === "boolean") {
1229
- result = shouldDeserialize;
1230
- }
1231
- else {
1232
- result = shouldDeserialize(parsedResponse);
1233
- }
1234
- return result;
1235
- }
1236
- async function deserializeResponseBody(jsonContentTypes, xmlContentTypes, response, options, parseXML) {
1237
- const parsedResponse = await parse(jsonContentTypes, xmlContentTypes, response, options, parseXML);
1238
- if (!shouldDeserializeResponse(parsedResponse)) {
1239
- return parsedResponse;
1240
- }
1241
- const operationInfo = getOperationRequestInfo(parsedResponse.request);
1242
- const operationSpec = operationInfo === null || operationInfo === void 0 ? void 0 : operationInfo.operationSpec;
1243
- if (!operationSpec || !operationSpec.responses) {
1244
- return parsedResponse;
1245
- }
1246
- const responseSpec = getOperationResponseMap(parsedResponse);
1247
- const { error, shouldReturnResponse } = handleErrorResponse(parsedResponse, operationSpec, responseSpec, options);
1248
- if (error) {
1249
- throw error;
1250
- }
1251
- else if (shouldReturnResponse) {
1252
- return parsedResponse;
1253
- }
1254
- // An operation response spec does exist for current status code, so
1255
- // use it to deserialize the response.
1256
- if (responseSpec) {
1257
- if (responseSpec.bodyMapper) {
1258
- let valueToDeserialize = parsedResponse.parsedBody;
1259
- if (operationSpec.isXML && responseSpec.bodyMapper.type.name === MapperTypeNames.Sequence) {
1260
- valueToDeserialize =
1261
- typeof valueToDeserialize === "object"
1262
- ? valueToDeserialize[responseSpec.bodyMapper.xmlElementName]
1263
- : [];
1264
- }
1265
- try {
1266
- parsedResponse.parsedBody = operationSpec.serializer.deserialize(responseSpec.bodyMapper, valueToDeserialize, "operationRes.parsedBody", options);
1267
- }
1268
- catch (deserializeError) {
1269
- const restError = new coreRestPipeline.RestError(`Error ${deserializeError} occurred in deserializing the responseBody - ${parsedResponse.bodyAsText}`, {
1270
- statusCode: parsedResponse.status,
1271
- request: parsedResponse.request,
1272
- response: parsedResponse,
1273
- });
1274
- throw restError;
1275
- }
1276
- }
1277
- else if (operationSpec.httpMethod === "HEAD") {
1278
- // head methods never have a body, but we return a boolean to indicate presence/absence of the resource
1279
- parsedResponse.parsedBody = response.status >= 200 && response.status < 300;
1280
- }
1281
- if (responseSpec.headersMapper) {
1282
- parsedResponse.parsedHeaders = operationSpec.serializer.deserialize(responseSpec.headersMapper, parsedResponse.headers.toJSON(), "operationRes.parsedHeaders", { xml: {}, ignoreUnknownProperties: true });
1283
- }
1284
- }
1285
- return parsedResponse;
1286
- }
1287
- function isOperationSpecEmpty(operationSpec) {
1288
- const expectedStatusCodes = Object.keys(operationSpec.responses);
1289
- return (expectedStatusCodes.length === 0 ||
1290
- (expectedStatusCodes.length === 1 && expectedStatusCodes[0] === "default"));
1291
- }
1292
- function handleErrorResponse(parsedResponse, operationSpec, responseSpec, options) {
1293
- var _a;
1294
- const isSuccessByStatus = 200 <= parsedResponse.status && parsedResponse.status < 300;
1295
- const isExpectedStatusCode = isOperationSpecEmpty(operationSpec)
1296
- ? isSuccessByStatus
1297
- : !!responseSpec;
1298
- if (isExpectedStatusCode) {
1299
- if (responseSpec) {
1300
- if (!responseSpec.isError) {
1301
- return { error: null, shouldReturnResponse: false };
1302
- }
1303
- }
1304
- else {
1305
- return { error: null, shouldReturnResponse: false };
1306
- }
1307
- }
1308
- const errorResponseSpec = responseSpec !== null && responseSpec !== void 0 ? responseSpec : operationSpec.responses.default;
1309
- const initialErrorMessage = ((_a = parsedResponse.request.streamResponseStatusCodes) === null || _a === void 0 ? void 0 : _a.has(parsedResponse.status))
1310
- ? `Unexpected status code: ${parsedResponse.status}`
1311
- : parsedResponse.bodyAsText;
1312
- const error = new coreRestPipeline.RestError(initialErrorMessage, {
1313
- statusCode: parsedResponse.status,
1314
- request: parsedResponse.request,
1315
- response: parsedResponse,
1316
- });
1317
- // If the item failed but there's no error spec or default spec to deserialize the error,
1318
- // we should fail so we just throw the parsed response
1319
- if (!errorResponseSpec) {
1320
- throw error;
1321
- }
1322
- const defaultBodyMapper = errorResponseSpec.bodyMapper;
1323
- const defaultHeadersMapper = errorResponseSpec.headersMapper;
1324
- try {
1325
- // If error response has a body, try to deserialize it using default body mapper.
1326
- // Then try to extract error code & message from it
1327
- if (parsedResponse.parsedBody) {
1328
- const parsedBody = parsedResponse.parsedBody;
1329
- let deserializedError;
1330
- if (defaultBodyMapper) {
1331
- let valueToDeserialize = parsedBody;
1332
- if (operationSpec.isXML && defaultBodyMapper.type.name === MapperTypeNames.Sequence) {
1333
- valueToDeserialize = [];
1334
- const elementName = defaultBodyMapper.xmlElementName;
1335
- if (typeof parsedBody === "object" && elementName) {
1336
- valueToDeserialize = parsedBody[elementName];
1337
- }
1338
- }
1339
- deserializedError = operationSpec.serializer.deserialize(defaultBodyMapper, valueToDeserialize, "error.response.parsedBody", options);
1340
- }
1341
- const internalError = parsedBody.error || deserializedError || parsedBody;
1342
- error.code = internalError.code;
1343
- if (internalError.message) {
1344
- error.message = internalError.message;
1345
- }
1346
- if (defaultBodyMapper) {
1347
- error.response.parsedBody = deserializedError;
1348
- }
1349
- }
1350
- // If error response has headers, try to deserialize it using default header mapper
1351
- if (parsedResponse.headers && defaultHeadersMapper) {
1352
- error.response.parsedHeaders =
1353
- operationSpec.serializer.deserialize(defaultHeadersMapper, parsedResponse.headers.toJSON(), "operationRes.parsedHeaders");
1354
- }
1355
- }
1356
- catch (defaultError) {
1357
- error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody - "${parsedResponse.bodyAsText}" for the default response.`;
1358
- }
1359
- return { error, shouldReturnResponse: false };
1360
- }
1361
- async function parse(jsonContentTypes, xmlContentTypes, operationResponse, opts, parseXML) {
1362
- var _a;
1363
- if (!((_a = operationResponse.request.streamResponseStatusCodes) === null || _a === void 0 ? void 0 : _a.has(operationResponse.status)) &&
1364
- operationResponse.bodyAsText) {
1365
- const text = operationResponse.bodyAsText;
1366
- const contentType = operationResponse.headers.get("Content-Type") || "";
1367
- const contentComponents = !contentType
1368
- ? []
1369
- : contentType.split(";").map((component) => component.toLowerCase());
1370
- try {
1371
- if (contentComponents.length === 0 ||
1372
- contentComponents.some((component) => jsonContentTypes.indexOf(component) !== -1)) {
1373
- operationResponse.parsedBody = JSON.parse(text);
1374
- return operationResponse;
1375
- }
1376
- else if (contentComponents.some((component) => xmlContentTypes.indexOf(component) !== -1)) {
1377
- if (!parseXML) {
1378
- throw new Error("Parsing XML not supported.");
1379
- }
1380
- const body = await parseXML(text, opts.xml);
1381
- operationResponse.parsedBody = body;
1382
- return operationResponse;
1383
- }
1384
- }
1385
- catch (err) {
1386
- const msg = `Error "${err}" occurred while parsing the response body - ${operationResponse.bodyAsText}.`;
1387
- const errCode = err.code || coreRestPipeline.RestError.PARSE_ERROR;
1388
- const e = new coreRestPipeline.RestError(msg, {
1389
- code: errCode,
1390
- statusCode: operationResponse.status,
1391
- request: operationResponse.request,
1392
- response: operationResponse,
1393
- });
1394
- throw e;
1395
- }
1396
- }
1397
- return operationResponse;
1398
- }
1399
-
1400
- // Copyright (c) Microsoft Corporation.
1401
- /**
1402
- * Gets the list of status codes for streaming responses.
1403
- * @internal
1404
- */
1405
- function getStreamingResponseStatusCodes(operationSpec) {
1406
- const result = new Set();
1407
- for (const statusCode in operationSpec.responses) {
1408
- const operationResponse = operationSpec.responses[statusCode];
1409
- if (operationResponse.bodyMapper &&
1410
- operationResponse.bodyMapper.type.name === MapperTypeNames.Stream) {
1411
- result.add(Number(statusCode));
1412
- }
1413
- }
1414
- return result;
1415
- }
1416
- /**
1417
- * Get the path to this parameter's value as a dotted string (a.b.c).
1418
- * @param parameter - The parameter to get the path string for.
1419
- * @returns The path to this parameter's value as a dotted string.
1420
- * @internal
1421
- */
1422
- function getPathStringFromParameter(parameter) {
1423
- const { parameterPath, mapper } = parameter;
1424
- let result;
1425
- if (typeof parameterPath === "string") {
1426
- result = parameterPath;
1427
- }
1428
- else if (Array.isArray(parameterPath)) {
1429
- result = parameterPath.join(".");
1430
- }
1431
- else {
1432
- result = mapper.serializedName;
1433
- }
1434
- return result;
1435
- }
1436
-
1437
- // Copyright (c) Microsoft Corporation.
1438
- /**
1439
- * The programmatic identifier of the serializationPolicy.
1440
- */
1441
- const serializationPolicyName = "serializationPolicy";
1442
- /**
1443
- * This policy handles assembling the request body and headers using
1444
- * an OperationSpec and OperationArguments on the request.
1445
- */
1446
- function serializationPolicy(options = {}) {
1447
- const stringifyXML = options.stringifyXML;
1448
- return {
1449
- name: serializationPolicyName,
1450
- async sendRequest(request, next) {
1451
- const operationInfo = getOperationRequestInfo(request);
1452
- const operationSpec = operationInfo === null || operationInfo === void 0 ? void 0 : operationInfo.operationSpec;
1453
- const operationArguments = operationInfo === null || operationInfo === void 0 ? void 0 : operationInfo.operationArguments;
1454
- if (operationSpec && operationArguments) {
1455
- serializeHeaders(request, operationArguments, operationSpec);
1456
- serializeRequestBody(request, operationArguments, operationSpec, stringifyXML);
1457
- }
1458
- return next(request);
1459
- },
1460
- };
1461
- }
1462
- /**
1463
- * @internal
1464
- */
1465
- function serializeHeaders(request, operationArguments, operationSpec) {
1466
- var _a, _b;
1467
- if (operationSpec.headerParameters) {
1468
- for (const headerParameter of operationSpec.headerParameters) {
1469
- let headerValue = getOperationArgumentValueFromParameter(operationArguments, headerParameter);
1470
- if ((headerValue !== null && headerValue !== undefined) || headerParameter.mapper.required) {
1471
- headerValue = operationSpec.serializer.serialize(headerParameter.mapper, headerValue, getPathStringFromParameter(headerParameter));
1472
- const headerCollectionPrefix = headerParameter.mapper
1473
- .headerCollectionPrefix;
1474
- if (headerCollectionPrefix) {
1475
- for (const key of Object.keys(headerValue)) {
1476
- request.headers.set(headerCollectionPrefix + key, headerValue[key]);
1477
- }
1478
- }
1479
- else {
1480
- request.headers.set(headerParameter.mapper.serializedName || getPathStringFromParameter(headerParameter), headerValue);
1481
- }
1482
- }
1483
- }
1484
- }
1485
- const customHeaders = (_b = (_a = operationArguments.options) === null || _a === void 0 ? void 0 : _a.requestOptions) === null || _b === void 0 ? void 0 : _b.customHeaders;
1486
- if (customHeaders) {
1487
- for (const customHeaderName of Object.keys(customHeaders)) {
1488
- request.headers.set(customHeaderName, customHeaders[customHeaderName]);
1489
- }
1490
- }
1491
- }
1492
- /**
1493
- * @internal
1494
- */
1495
- function serializeRequestBody(request, operationArguments, operationSpec, stringifyXML = function () {
1496
- throw new Error("XML serialization unsupported!");
1497
- }) {
1498
- var _a, _b, _c, _d, _e;
1499
- const serializerOptions = (_a = operationArguments.options) === null || _a === void 0 ? void 0 : _a.serializerOptions;
1500
- const updatedOptions = {
1501
- xml: {
1502
- rootName: (_b = serializerOptions === null || serializerOptions === void 0 ? void 0 : serializerOptions.xml.rootName) !== null && _b !== void 0 ? _b : "",
1503
- includeRoot: (_c = serializerOptions === null || serializerOptions === void 0 ? void 0 : serializerOptions.xml.includeRoot) !== null && _c !== void 0 ? _c : false,
1504
- xmlCharKey: (_d = serializerOptions === null || serializerOptions === void 0 ? void 0 : serializerOptions.xml.xmlCharKey) !== null && _d !== void 0 ? _d : XML_CHARKEY,
1505
- },
1506
- };
1507
- const xmlCharKey = updatedOptions.xml.xmlCharKey;
1508
- if (operationSpec.requestBody && operationSpec.requestBody.mapper) {
1509
- request.body = getOperationArgumentValueFromParameter(operationArguments, operationSpec.requestBody);
1510
- const bodyMapper = operationSpec.requestBody.mapper;
1511
- const { required, serializedName, xmlName, xmlElementName, xmlNamespace, xmlNamespacePrefix, nullable, } = bodyMapper;
1512
- const typeName = bodyMapper.type.name;
1513
- try {
1514
- if ((request.body !== undefined && request.body !== null) ||
1515
- (nullable && request.body === null) ||
1516
- required) {
1517
- const requestBodyParameterPathString = getPathStringFromParameter(operationSpec.requestBody);
1518
- request.body = operationSpec.serializer.serialize(bodyMapper, request.body, requestBodyParameterPathString, updatedOptions);
1519
- const isStream = typeName === MapperTypeNames.Stream;
1520
- if (operationSpec.isXML) {
1521
- const xmlnsKey = xmlNamespacePrefix ? `xmlns:${xmlNamespacePrefix}` : "xmlns";
1522
- const value = getXmlValueWithNamespace(xmlNamespace, xmlnsKey, typeName, request.body, updatedOptions);
1523
- if (typeName === MapperTypeNames.Sequence) {
1524
- request.body = stringifyXML(prepareXMLRootList(value, xmlElementName || xmlName || serializedName, xmlnsKey, xmlNamespace), { rootName: xmlName || serializedName, xmlCharKey });
1525
- }
1526
- else if (!isStream) {
1527
- request.body = stringifyXML(value, {
1528
- rootName: xmlName || serializedName,
1529
- xmlCharKey,
1530
- });
1531
- }
1532
- }
1533
- else if (typeName === MapperTypeNames.String &&
1534
- (((_e = operationSpec.contentType) === null || _e === void 0 ? void 0 : _e.match("text/plain")) || operationSpec.mediaType === "text")) {
1535
- // the String serializer has validated that request body is a string
1536
- // so just send the string.
1537
- return;
1538
- }
1539
- else if (!isStream) {
1540
- request.body = JSON.stringify(request.body);
1541
- }
1542
- }
1543
- }
1544
- catch (error) {
1545
- throw new Error(`Error "${error.message}" occurred in serializing the payload - ${JSON.stringify(serializedName, undefined, " ")}.`);
1546
- }
1547
- }
1548
- else if (operationSpec.formDataParameters && operationSpec.formDataParameters.length > 0) {
1549
- request.formData = {};
1550
- for (const formDataParameter of operationSpec.formDataParameters) {
1551
- const formDataParameterValue = getOperationArgumentValueFromParameter(operationArguments, formDataParameter);
1552
- if (formDataParameterValue !== undefined && formDataParameterValue !== null) {
1553
- const formDataParameterPropertyName = formDataParameter.mapper.serializedName || getPathStringFromParameter(formDataParameter);
1554
- request.formData[formDataParameterPropertyName] = operationSpec.serializer.serialize(formDataParameter.mapper, formDataParameterValue, getPathStringFromParameter(formDataParameter), updatedOptions);
1555
- }
1556
- }
1557
- }
1558
- }
1559
- /**
1560
- * Adds an xml namespace to the xml serialized object if needed, otherwise it just returns the value itself
1561
- */
1562
- function getXmlValueWithNamespace(xmlNamespace, xmlnsKey, typeName, serializedValue, options) {
1563
- // Composite and Sequence schemas already got their root namespace set during serialization
1564
- // We just need to add xmlns to the other schema types
1565
- if (xmlNamespace && !["Composite", "Sequence", "Dictionary"].includes(typeName)) {
1566
- const result = {};
1567
- result[options.xml.xmlCharKey] = serializedValue;
1568
- result[XML_ATTRKEY] = { [xmlnsKey]: xmlNamespace };
1569
- return result;
1570
- }
1571
- return serializedValue;
1572
- }
1573
- function prepareXMLRootList(obj, elementName, xmlNamespaceKey, xmlNamespace) {
1574
- if (!Array.isArray(obj)) {
1575
- obj = [obj];
1576
- }
1577
- if (!xmlNamespaceKey || !xmlNamespace) {
1578
- return { [elementName]: obj };
1579
- }
1580
- const result = { [elementName]: obj };
1581
- result[XML_ATTRKEY] = { [xmlNamespaceKey]: xmlNamespace };
1582
- return result;
1583
- }
1584
-
1585
- // Copyright (c) Microsoft Corporation.
1586
- /**
1587
- * Creates a new Pipeline for use with a Service Client.
1588
- * Adds in deserializationPolicy by default.
1589
- * Also adds in bearerTokenAuthenticationPolicy if passed a TokenCredential.
1590
- * @param options - Options to customize the created pipeline.
1591
- */
1592
- function createClientPipeline(options = {}) {
1593
- const pipeline = coreRestPipeline.createPipelineFromOptions(options !== null && options !== void 0 ? options : {});
1594
- if (options.credentialOptions) {
1595
- pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
1596
- credential: options.credentialOptions.credential,
1597
- scopes: options.credentialOptions.credentialScopes,
1598
- }));
1599
- }
1600
- pipeline.addPolicy(serializationPolicy(options.serializationOptions), { phase: "Serialize" });
1601
- pipeline.addPolicy(deserializationPolicy(options.deserializationOptions), {
1602
- phase: "Deserialize",
1603
- });
1604
- return pipeline;
1605
- }
1606
-
1607
- // Copyright (c) Microsoft Corporation.
1608
- let cachedHttpClient;
1609
- function getCachedDefaultHttpClient() {
1610
- if (!cachedHttpClient) {
1611
- cachedHttpClient = coreRestPipeline.createDefaultHttpClient();
1612
- }
1613
- return cachedHttpClient;
1614
- }
1615
-
1616
- // Copyright (c) Microsoft Corporation.
1617
- const CollectionFormatToDelimiterMap = {
1618
- CSV: ",",
1619
- SSV: " ",
1620
- Multi: "Multi",
1621
- TSV: "\t",
1622
- Pipes: "|",
1623
- };
1624
- function getRequestUrl(baseUri, operationSpec, operationArguments, fallbackObject) {
1625
- const urlReplacements = calculateUrlReplacements(operationSpec, operationArguments, fallbackObject);
1626
- let isAbsolutePath = false;
1627
- let requestUrl = replaceAll(baseUri, urlReplacements);
1628
- if (operationSpec.path) {
1629
- let path = replaceAll(operationSpec.path, urlReplacements);
1630
- // QUIRK: sometimes we get a path component like /{nextLink}
1631
- // which may be a fully formed URL with a leading /. In that case, we should
1632
- // remove the leading /
1633
- if (operationSpec.path === "/{nextLink}" && path.startsWith("/")) {
1634
- path = path.substring(1);
1635
- }
1636
- // QUIRK: sometimes we get a path component like {nextLink}
1637
- // which may be a fully formed URL. In that case, we should
1638
- // ignore the baseUri.
1639
- if (isAbsoluteUrl(path)) {
1640
- requestUrl = path;
1641
- isAbsolutePath = true;
1642
- }
1643
- else {
1644
- requestUrl = appendPath(requestUrl, path);
1645
- }
1646
- }
1647
- const { queryParams, sequenceParams } = calculateQueryParameters(operationSpec, operationArguments, fallbackObject);
1648
- /**
1649
- * Notice that this call sets the `noOverwrite` parameter to true if the `requestUrl`
1650
- * is an absolute path. This ensures that existing query parameter values in `requestUrl`
1651
- * do not get overwritten. On the other hand when `requestUrl` is not absolute path, it
1652
- * is still being built so there is nothing to overwrite.
1653
- */
1654
- requestUrl = appendQueryParams(requestUrl, queryParams, sequenceParams, isAbsolutePath);
1655
- return requestUrl;
1656
- }
1657
- function replaceAll(input, replacements) {
1658
- let result = input;
1659
- for (const [searchValue, replaceValue] of replacements) {
1660
- result = result.split(searchValue).join(replaceValue);
1661
- }
1662
- return result;
1663
- }
1664
- function calculateUrlReplacements(operationSpec, operationArguments, fallbackObject) {
1665
- var _a;
1666
- const result = new Map();
1667
- if ((_a = operationSpec.urlParameters) === null || _a === void 0 ? void 0 : _a.length) {
1668
- for (const urlParameter of operationSpec.urlParameters) {
1669
- let urlParameterValue = getOperationArgumentValueFromParameter(operationArguments, urlParameter, fallbackObject);
1670
- const parameterPathString = getPathStringFromParameter(urlParameter);
1671
- urlParameterValue = operationSpec.serializer.serialize(urlParameter.mapper, urlParameterValue, parameterPathString);
1672
- if (!urlParameter.skipEncoding) {
1673
- urlParameterValue = encodeURIComponent(urlParameterValue);
1674
- }
1675
- result.set(`{${urlParameter.mapper.serializedName || parameterPathString}}`, urlParameterValue);
1676
- }
1677
- }
1678
- return result;
1679
- }
1680
- function isAbsoluteUrl(url) {
1681
- return url.includes("://");
1682
- }
1683
- function appendPath(url, pathToAppend) {
1684
- if (!pathToAppend) {
1685
- return url;
1686
- }
1687
- const parsedUrl = new URL(url);
1688
- let newPath = parsedUrl.pathname;
1689
- if (!newPath.endsWith("/")) {
1690
- newPath = `${newPath}/`;
1691
- }
1692
- if (pathToAppend.startsWith("/")) {
1693
- pathToAppend = pathToAppend.substring(1);
1694
- }
1695
- const searchStart = pathToAppend.indexOf("?");
1696
- if (searchStart !== -1) {
1697
- const path = pathToAppend.substring(0, searchStart);
1698
- const search = pathToAppend.substring(searchStart + 1);
1699
- newPath = newPath + path;
1700
- if (search) {
1701
- parsedUrl.search = parsedUrl.search ? `${parsedUrl.search}&${search}` : search;
1702
- }
1703
- }
1704
- else {
1705
- newPath = newPath + pathToAppend;
1706
- }
1707
- parsedUrl.pathname = newPath;
1708
- return parsedUrl.toString();
1709
- }
1710
- function calculateQueryParameters(operationSpec, operationArguments, fallbackObject) {
1711
- var _a;
1712
- const result = new Map();
1713
- const sequenceParams = new Set();
1714
- if ((_a = operationSpec.queryParameters) === null || _a === void 0 ? void 0 : _a.length) {
1715
- for (const queryParameter of operationSpec.queryParameters) {
1716
- if (queryParameter.mapper.type.name === "Sequence" && queryParameter.mapper.serializedName) {
1717
- sequenceParams.add(queryParameter.mapper.serializedName);
1718
- }
1719
- let queryParameterValue = getOperationArgumentValueFromParameter(operationArguments, queryParameter, fallbackObject);
1720
- if ((queryParameterValue !== undefined && queryParameterValue !== null) ||
1721
- queryParameter.mapper.required) {
1722
- queryParameterValue = operationSpec.serializer.serialize(queryParameter.mapper, queryParameterValue, getPathStringFromParameter(queryParameter));
1723
- const delimiter = queryParameter.collectionFormat
1724
- ? CollectionFormatToDelimiterMap[queryParameter.collectionFormat]
1725
- : "";
1726
- if (Array.isArray(queryParameterValue)) {
1727
- // replace null and undefined
1728
- queryParameterValue = queryParameterValue.map((item) => {
1729
- if (item === null || item === undefined) {
1730
- return "";
1731
- }
1732
- return item;
1733
- });
1734
- }
1735
- if (queryParameter.collectionFormat === "Multi" && queryParameterValue.length === 0) {
1736
- continue;
1737
- }
1738
- else if (Array.isArray(queryParameterValue) &&
1739
- (queryParameter.collectionFormat === "SSV" || queryParameter.collectionFormat === "TSV")) {
1740
- queryParameterValue = queryParameterValue.join(delimiter);
1741
- }
1742
- if (!queryParameter.skipEncoding) {
1743
- if (Array.isArray(queryParameterValue)) {
1744
- queryParameterValue = queryParameterValue.map((item) => {
1745
- return encodeURIComponent(item);
1746
- });
1747
- }
1748
- else {
1749
- queryParameterValue = encodeURIComponent(queryParameterValue);
1750
- }
1751
- }
1752
- // Join pipes and CSV *after* encoding, or the server will be upset.
1753
- if (Array.isArray(queryParameterValue) &&
1754
- (queryParameter.collectionFormat === "CSV" || queryParameter.collectionFormat === "Pipes")) {
1755
- queryParameterValue = queryParameterValue.join(delimiter);
1756
- }
1757
- result.set(queryParameter.mapper.serializedName || getPathStringFromParameter(queryParameter), queryParameterValue);
1758
- }
1759
- }
1760
- }
1761
- return {
1762
- queryParams: result,
1763
- sequenceParams,
1764
- };
1765
- }
1766
- function simpleParseQueryParams(queryString) {
1767
- const result = new Map();
1768
- if (!queryString || queryString[0] !== "?") {
1769
- return result;
1770
- }
1771
- // remove the leading ?
1772
- queryString = queryString.slice(1);
1773
- const pairs = queryString.split("&");
1774
- for (const pair of pairs) {
1775
- const [name, value] = pair.split("=", 2);
1776
- const existingValue = result.get(name);
1777
- if (existingValue) {
1778
- if (Array.isArray(existingValue)) {
1779
- existingValue.push(value);
1780
- }
1781
- else {
1782
- result.set(name, [existingValue, value]);
1783
- }
1784
- }
1785
- else {
1786
- result.set(name, value);
1787
- }
1788
- }
1789
- return result;
1790
- }
1791
- /** @internal */
1792
- function appendQueryParams(url, queryParams, sequenceParams, noOverwrite = false) {
1793
- if (queryParams.size === 0) {
1794
- return url;
1795
- }
1796
- const parsedUrl = new URL(url);
1797
- // QUIRK: parsedUrl.searchParams will have their name/value pairs decoded, which
1798
- // can change their meaning to the server, such as in the case of a SAS signature.
1799
- // To avoid accidentally un-encoding a query param, we parse the key/values ourselves
1800
- const combinedParams = simpleParseQueryParams(parsedUrl.search);
1801
- for (const [name, value] of queryParams) {
1802
- const existingValue = combinedParams.get(name);
1803
- if (Array.isArray(existingValue)) {
1804
- if (Array.isArray(value)) {
1805
- existingValue.push(...value);
1806
- const valueSet = new Set(existingValue);
1807
- combinedParams.set(name, Array.from(valueSet));
1808
- }
1809
- else {
1810
- existingValue.push(value);
1811
- }
1812
- }
1813
- else if (existingValue) {
1814
- if (Array.isArray(value)) {
1815
- value.unshift(existingValue);
1816
- }
1817
- else if (sequenceParams.has(name)) {
1818
- combinedParams.set(name, [existingValue, value]);
1819
- }
1820
- if (!noOverwrite) {
1821
- combinedParams.set(name, value);
1822
- }
1823
- }
1824
- else {
1825
- combinedParams.set(name, value);
1826
- }
1827
- }
1828
- const searchPieces = [];
1829
- for (const [name, value] of combinedParams) {
1830
- if (typeof value === "string") {
1831
- searchPieces.push(`${name}=${value}`);
1832
- }
1833
- else if (Array.isArray(value)) {
1834
- // QUIRK: If we get an array of values, include multiple key/value pairs
1835
- for (const subValue of value) {
1836
- searchPieces.push(`${name}=${subValue}`);
1837
- }
1838
- }
1839
- else {
1840
- searchPieces.push(`${name}=${value}`);
1841
- }
1842
- }
1843
- // QUIRK: we have to set search manually as searchParams will encode comma when it shouldn't.
1844
- parsedUrl.search = searchPieces.length ? `?${searchPieces.join("&")}` : "";
1845
- return parsedUrl.toString();
1846
- }
1847
-
1848
- // Copyright (c) Microsoft Corporation.
1849
- const logger = logger$1.createClientLogger("core-client");
1850
-
1851
- // Copyright (c) Microsoft Corporation.
1852
- /**
1853
- * Initializes a new instance of the ServiceClient.
1854
- */
1855
- class ServiceClient {
1856
- /**
1857
- * The ServiceClient constructor
1858
- * @param credential - The credentials used for authentication with the service.
1859
- * @param options - The service client options that govern the behavior of the client.
1860
- */
1861
- constructor(options = {}) {
1862
- var _a, _b;
1863
- this._requestContentType = options.requestContentType;
1864
- this._endpoint = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri;
1865
- if (options.baseUri) {
1866
- logger.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead.");
1867
- }
1868
- this._allowInsecureConnection = options.allowInsecureConnection;
1869
- this._httpClient = options.httpClient || getCachedDefaultHttpClient();
1870
- this.pipeline = options.pipeline || createDefaultPipeline(options);
1871
- if ((_b = options.additionalPolicies) === null || _b === void 0 ? void 0 : _b.length) {
1872
- for (const { policy, position } of options.additionalPolicies) {
1873
- // Sign happens after Retry and is commonly needed to occur
1874
- // before policies that intercept post-retry.
1875
- const afterPhase = position === "perRetry" ? "Sign" : undefined;
1876
- this.pipeline.addPolicy(policy, {
1877
- afterPhase,
1878
- });
1879
- }
1880
- }
1881
- }
1882
- /**
1883
- * Send the provided httpRequest.
1884
- */
1885
- async sendRequest(request) {
1886
- return this.pipeline.sendRequest(this._httpClient, request);
1887
- }
1888
- /**
1889
- * Send an HTTP request that is populated using the provided OperationSpec.
1890
- * @typeParam T - The typed result of the request, based on the OperationSpec.
1891
- * @param operationArguments - The arguments that the HTTP request's templated values will be populated from.
1892
- * @param operationSpec - The OperationSpec to use to populate the httpRequest.
1893
- */
1894
- async sendOperationRequest(operationArguments, operationSpec) {
1895
- const endpoint = operationSpec.baseUrl || this._endpoint;
1896
- if (!endpoint) {
1897
- throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.");
1898
- }
1899
- // Templatized URLs sometimes reference properties on the ServiceClient child class,
1900
- // so we have to pass `this` below in order to search these properties if they're
1901
- // not part of OperationArguments
1902
- const url = getRequestUrl(endpoint, operationSpec, operationArguments, this);
1903
- const request = coreRestPipeline.createPipelineRequest({
1904
- url,
1905
- });
1906
- request.method = operationSpec.httpMethod;
1907
- const operationInfo = getOperationRequestInfo(request);
1908
- operationInfo.operationSpec = operationSpec;
1909
- operationInfo.operationArguments = operationArguments;
1910
- const contentType = operationSpec.contentType || this._requestContentType;
1911
- if (contentType && operationSpec.requestBody) {
1912
- request.headers.set("Content-Type", contentType);
1913
- }
1914
- const options = operationArguments.options;
1915
- if (options) {
1916
- const requestOptions = options.requestOptions;
1917
- if (requestOptions) {
1918
- if (requestOptions.timeout) {
1919
- request.timeout = requestOptions.timeout;
1920
- }
1921
- if (requestOptions.onUploadProgress) {
1922
- request.onUploadProgress = requestOptions.onUploadProgress;
1923
- }
1924
- if (requestOptions.onDownloadProgress) {
1925
- request.onDownloadProgress = requestOptions.onDownloadProgress;
1926
- }
1927
- if (requestOptions.shouldDeserialize !== undefined) {
1928
- operationInfo.shouldDeserialize = requestOptions.shouldDeserialize;
1929
- }
1930
- if (requestOptions.allowInsecureConnection) {
1931
- request.allowInsecureConnection = true;
1932
- }
1933
- }
1934
- if (options.abortSignal) {
1935
- request.abortSignal = options.abortSignal;
1936
- }
1937
- if (options.tracingOptions) {
1938
- request.tracingOptions = options.tracingOptions;
1939
- }
1940
- }
1941
- if (this._allowInsecureConnection) {
1942
- request.allowInsecureConnection = true;
1943
- }
1944
- if (request.streamResponseStatusCodes === undefined) {
1945
- request.streamResponseStatusCodes = getStreamingResponseStatusCodes(operationSpec);
1946
- }
1947
- try {
1948
- const rawResponse = await this.sendRequest(request);
1949
- const flatResponse = flattenResponse(rawResponse, operationSpec.responses[rawResponse.status]);
1950
- if (options === null || options === void 0 ? void 0 : options.onResponse) {
1951
- options.onResponse(rawResponse, flatResponse);
1952
- }
1953
- return flatResponse;
1954
- }
1955
- catch (error) {
1956
- if (typeof error === "object" && (error === null || error === void 0 ? void 0 : error.response)) {
1957
- const rawResponse = error.response;
1958
- const flatResponse = flattenResponse(rawResponse, operationSpec.responses[error.statusCode] || operationSpec.responses["default"]);
1959
- error.details = flatResponse;
1960
- if (options === null || options === void 0 ? void 0 : options.onResponse) {
1961
- options.onResponse(rawResponse, flatResponse, error);
1962
- }
1963
- }
1964
- throw error;
1965
- }
1966
- }
1967
- }
1968
- function createDefaultPipeline(options) {
1969
- const credentialScopes = getCredentialScopes(options);
1970
- const credentialOptions = options.credential && credentialScopes
1971
- ? { credentialScopes, credential: options.credential }
1972
- : undefined;
1973
- return createClientPipeline(Object.assign(Object.assign({}, options), { credentialOptions }));
1974
- }
1975
- function getCredentialScopes(options) {
1976
- if (options.credentialScopes) {
1977
- const scopes = options.credentialScopes;
1978
- return Array.isArray(scopes)
1979
- ? scopes.map((scope) => new URL(scope).toString())
1980
- : new URL(scopes).toString();
1981
- }
1982
- if (options.endpoint) {
1983
- return `${options.endpoint}/.default`;
1984
- }
1985
- if (options.baseUri) {
1986
- return `${options.baseUri}/.default`;
1987
- }
1988
- if (options.credential && !options.credentialScopes) {
1989
- throw new Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`);
1990
- }
1991
- return undefined;
1992
- }
1993
-
1994
- // Copyright (c) Microsoft Corporation.
1995
- /**
1996
- * Converts: `Bearer a="b", c="d", Bearer d="e", f="g"`.
1997
- * Into: `[ { a: 'b', c: 'd' }, { d: 'e', f: 'g' } ]`.
1998
- *
1999
- * @internal
2000
- */
2001
- function parseCAEChallenge(challenges) {
2002
- const bearerChallenges = `, ${challenges.trim()}`.split(", Bearer ").filter((x) => x);
2003
- return bearerChallenges.map((challenge) => {
2004
- const challengeParts = `${challenge.trim()}, `.split('", ').filter((x) => x);
2005
- const keyValuePairs = challengeParts.map((keyValue) => (([key, value]) => ({ [key]: value }))(keyValue.trim().split('="')));
2006
- // Key-value pairs to plain object:
2007
- return keyValuePairs.reduce((a, b) => (Object.assign(Object.assign({}, a), b)), {});
2008
- });
2009
- }
2010
- /**
2011
- * This function can be used as a callback for the `bearerTokenAuthenticationPolicy` of `@azure/core-rest-pipeline`, to support CAE challenges:
2012
- * [Continuous Access Evaluation](https://docs.microsoft.com/azure/active-directory/conditional-access/concept-continuous-access-evaluation).
2013
- *
2014
- * Call the `bearerTokenAuthenticationPolicy` with the following options:
2015
- *
2016
- * ```ts
2017
- * import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline";
2018
- * import { authorizeRequestOnClaimChallenge } from "@azure/core-client";
2019
- *
2020
- * const bearerTokenAuthenticationPolicy = bearerTokenAuthenticationPolicy({
2021
- * authorizeRequestOnChallenge: authorizeRequestOnClaimChallenge
2022
- * });
2023
- * ```
2024
- *
2025
- * Once provided, the `bearerTokenAuthenticationPolicy` policy will internally handle Continuous Access Evaluation (CAE) challenges.
2026
- * When it can't complete a challenge it will return the 401 (unauthorized) response from ARM.
2027
- *
2028
- * Example challenge with claims:
2029
- *
2030
- * ```
2031
- * Bearer authorization_uri="https://login.windows-ppe.net/", error="invalid_token",
2032
- * error_description="User session has been revoked",
2033
- * claims="eyJhY2Nlc3NfdG9rZW4iOnsibmJmIjp7ImVzc2VudGlhbCI6dHJ1ZSwgInZhbHVlIjoiMTYwMzc0MjgwMCJ9fX0="
2034
- * ```
2035
- */
2036
- async function authorizeRequestOnClaimChallenge(onChallengeOptions) {
2037
- const { scopes, response } = onChallengeOptions;
2038
- const logger$1 = onChallengeOptions.logger || logger;
2039
- const challenge = response.headers.get("WWW-Authenticate");
2040
- if (!challenge) {
2041
- logger$1.info(`The WWW-Authenticate header was missing. Failed to perform the Continuous Access Evaluation authentication flow.`);
2042
- return false;
2043
- }
2044
- const challenges = parseCAEChallenge(challenge) || [];
2045
- const parsedChallenge = challenges.find((x) => x.claims);
2046
- if (!parsedChallenge) {
2047
- logger$1.info(`The WWW-Authenticate header was missing the necessary "claims" to perform the Continuous Access Evaluation authentication flow.`);
2048
- return false;
2049
- }
2050
- const accessToken = await onChallengeOptions.getAccessToken(parsedChallenge.scope ? [parsedChallenge.scope] : scopes, {
2051
- claims: decodeStringToString(parsedChallenge.claims),
2052
- });
2053
- if (!accessToken) {
2054
- return false;
2055
- }
2056
- onChallengeOptions.request.headers.set("Authorization", `Bearer ${accessToken.token}`);
2057
- return true;
2058
- }
2059
-
2060
- // Copyright (c) Microsoft Corporation.
2061
- // Licensed under the MIT license.
2062
- /**
2063
- * A set of constants used internally when processing requests.
2064
- */
2065
- const Constants = {
2066
- DefaultScope: "/.default",
2067
- /**
2068
- * Defines constants for use with HTTP headers.
2069
- */
2070
- HeaderConstants: {
2071
- /**
2072
- * The Authorization header.
2073
- */
2074
- AUTHORIZATION: "authorization",
2075
- },
2076
- };
2077
- /**
2078
- * Defines a callback to handle auth challenge for Storage APIs.
2079
- * This implements the bearer challenge process described here: https://docs.microsoft.com/rest/api/storageservices/authorize-with-azure-active-directory#bearer-challenge
2080
- * Handling has specific features for storage that departs to the general AAD challenge docs.
2081
- **/
2082
- const authorizeRequestOnTenantChallenge = async (challengeOptions) => {
2083
- const requestOptions = requestToOptions(challengeOptions.request);
2084
- const challenge = getChallenge(challengeOptions.response);
2085
- if (challenge) {
2086
- const challengeInfo = parseChallenge(challenge);
2087
- const challengeScopes = buildScopes(challengeOptions, challengeInfo);
2088
- const tenantId = extractTenantId(challengeInfo);
2089
- const accessToken = await challengeOptions.getAccessToken(challengeScopes, Object.assign(Object.assign({}, requestOptions), { tenantId }));
2090
- if (!accessToken) {
2091
- return false;
2092
- }
2093
- challengeOptions.request.headers.set(Constants.HeaderConstants.AUTHORIZATION, `Bearer ${accessToken.token}`);
2094
- return true;
2095
- }
2096
- return false;
2097
- };
2098
- /**
2099
- * Extracts the tenant id from the challenge information
2100
- * The tenant id is contained in the authorization_uri as the first
2101
- * path part.
2102
- */
2103
- function extractTenantId(challengeInfo) {
2104
- const parsedAuthUri = new URL(challengeInfo.authorization_uri);
2105
- const pathSegments = parsedAuthUri.pathname.split("/");
2106
- const tenantId = pathSegments[1];
2107
- return tenantId;
2108
- }
2109
- /**
2110
- * Builds the authentication scopes based on the information that comes in the
2111
- * challenge information. Scopes url is present in the resource_id, if it is empty
2112
- * we keep using the original scopes.
2113
- */
2114
- function buildScopes(challengeOptions, challengeInfo) {
2115
- if (!challengeInfo.resource_uri) {
2116
- return challengeOptions.scopes;
2117
- }
2118
- const challengeScopes = new URL(challengeInfo.resource_uri);
2119
- challengeScopes.pathname = Constants.DefaultScope;
2120
- return [challengeScopes.toString()];
2121
- }
2122
- /**
2123
- * We will retrieve the challenge only if the response status code was 401,
2124
- * and if the response contained the header "WWW-Authenticate" with a non-empty value.
2125
- */
2126
- function getChallenge(response) {
2127
- const challenge = response.headers.get("WWW-Authenticate");
2128
- if (response.status === 401 && challenge) {
2129
- return challenge;
2130
- }
2131
- return;
2132
- }
2133
- /**
2134
- * Converts: `Bearer a="b" c="d"`.
2135
- * Into: `[ { a: 'b', c: 'd' }]`.
2136
- *
2137
- * @internal
2138
- */
2139
- function parseChallenge(challenge) {
2140
- const bearerChallenge = challenge.slice("Bearer ".length);
2141
- const challengeParts = `${bearerChallenge.trim()} `.split(" ").filter((x) => x);
2142
- const keyValuePairs = challengeParts.map((keyValue) => (([key, value]) => ({ [key]: value }))(keyValue.trim().split("=")));
2143
- // Key-value pairs to plain object:
2144
- return keyValuePairs.reduce((a, b) => (Object.assign(Object.assign({}, a), b)), {});
2145
- }
2146
- /**
2147
- * Extracts the options form a Pipeline Request for later re-use
2148
- */
2149
- function requestToOptions(request) {
2150
- return {
2151
- abortSignal: request.abortSignal,
2152
- requestOptions: {
2153
- timeout: request.timeout,
2154
- },
2155
- tracingOptions: request.tracingOptions,
2156
- };
2157
- }
2158
-
2159
- exports.MapperTypeNames = MapperTypeNames;
2160
- exports.ServiceClient = ServiceClient;
2161
- exports.XML_ATTRKEY = XML_ATTRKEY;
2162
- exports.XML_CHARKEY = XML_CHARKEY;
2163
- exports.authorizeRequestOnClaimChallenge = authorizeRequestOnClaimChallenge;
2164
- exports.authorizeRequestOnTenantChallenge = authorizeRequestOnTenantChallenge;
2165
- exports.createClientPipeline = createClientPipeline;
2166
- exports.createSerializer = createSerializer;
2167
- exports.deserializationPolicy = deserializationPolicy;
2168
- exports.deserializationPolicyName = deserializationPolicyName;
2169
- exports.serializationPolicy = serializationPolicy;
2170
- exports.serializationPolicyName = serializationPolicyName;
2171
- //# sourceMappingURL=index.js.map