@azure/arm-playwrighttesting 1.0.0-beta.2 → 1.0.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 (469) hide show
  1. package/CHANGELOG.md +8 -25
  2. package/LICENSE +4 -4
  3. package/README.md +41 -31
  4. package/dist/browser/api/accountQuotas/index.d.ts +13 -0
  5. package/dist/browser/api/accountQuotas/index.d.ts.map +1 -0
  6. package/dist/browser/api/accountQuotas/index.js +39 -0
  7. package/dist/browser/api/accountQuotas/index.js.map +1 -0
  8. package/dist/browser/api/accounts/index.d.ts +34 -0
  9. package/dist/browser/api/accounts/index.d.ts.map +1 -0
  10. package/dist/browser/api/accounts/index.js +141 -0
  11. package/dist/browser/api/accounts/index.js.map +1 -0
  12. package/dist/browser/api/azurePlaywrightServiceContext.d.ts +14 -0
  13. package/dist/browser/api/azurePlaywrightServiceContext.d.ts.map +1 -0
  14. package/dist/browser/api/azurePlaywrightServiceContext.js +38 -0
  15. package/dist/browser/api/azurePlaywrightServiceContext.js.map +1 -0
  16. package/dist/browser/api/index.d.ts +7 -0
  17. package/dist/browser/api/index.d.ts.map +1 -0
  18. package/dist/browser/api/index.js +8 -0
  19. package/dist/browser/api/index.js.map +1 -0
  20. package/dist/browser/api/operations/index.d.ts +9 -0
  21. package/dist/browser/api/operations/index.d.ts.map +1 -0
  22. package/dist/browser/api/operations/index.js +22 -0
  23. package/dist/browser/api/operations/index.js.map +1 -0
  24. package/dist/browser/api/options.d.ts +42 -0
  25. package/dist/browser/api/options.d.ts.map +1 -0
  26. package/dist/browser/api/options.js +4 -0
  27. package/dist/browser/api/options.js.map +1 -0
  28. package/dist/browser/api/quotas/index.d.ts +13 -0
  29. package/dist/browser/api/quotas/index.d.ts.map +1 -0
  30. package/dist/browser/api/quotas/index.js +39 -0
  31. package/dist/browser/api/quotas/index.js.map +1 -0
  32. package/dist/browser/azurePlaywrightServiceClient.d.ts +24 -0
  33. package/dist/browser/azurePlaywrightServiceClient.d.ts.map +1 -0
  34. package/dist/browser/azurePlaywrightServiceClient.js +37 -0
  35. package/dist/browser/azurePlaywrightServiceClient.js.map +1 -0
  36. package/dist/browser/classic/accountQuotas/index.d.ts +17 -0
  37. package/dist/browser/classic/accountQuotas/index.d.ts.map +1 -0
  38. package/dist/browser/classic/accountQuotas/index.js +15 -0
  39. package/dist/browser/classic/accountQuotas/index.js.map +1 -0
  40. package/dist/browser/classic/accounts/index.d.ts +33 -0
  41. package/dist/browser/classic/accounts/index.d.ts.map +1 -0
  42. package/dist/browser/classic/accounts/index.js +20 -0
  43. package/dist/browser/classic/accounts/index.js.map +1 -0
  44. package/dist/browser/classic/index.d.ts +5 -0
  45. package/dist/browser/classic/index.d.ts.map +1 -0
  46. package/dist/browser/classic/index.js +4 -0
  47. package/dist/browser/classic/index.js.map +1 -0
  48. package/dist/browser/classic/operations/index.d.ts +14 -0
  49. package/dist/browser/classic/operations/index.d.ts.map +1 -0
  50. package/dist/browser/classic/operations/index.js +14 -0
  51. package/dist/browser/classic/operations/index.js.map +1 -0
  52. package/dist/browser/classic/quotas/index.d.ts +17 -0
  53. package/dist/browser/classic/quotas/index.d.ts.map +1 -0
  54. package/dist/browser/classic/quotas/index.js +15 -0
  55. package/dist/browser/classic/quotas/index.js.map +1 -0
  56. package/dist/browser/helpers/serializerHelpers.d.ts +3 -0
  57. package/dist/browser/helpers/serializerHelpers.d.ts.map +1 -0
  58. package/dist/browser/helpers/serializerHelpers.js +24 -0
  59. package/dist/browser/helpers/serializerHelpers.js.map +1 -0
  60. package/dist/browser/index.d.ts +8 -0
  61. package/dist/browser/index.d.ts.map +1 -0
  62. package/dist/browser/index.js +6 -0
  63. package/dist/browser/index.js.map +1 -0
  64. package/dist/browser/logger.d.ts +2 -0
  65. package/dist/browser/logger.d.ts.map +1 -0
  66. package/dist/browser/logger.js +5 -0
  67. package/dist/browser/logger.js.map +1 -0
  68. package/dist/browser/models/index.d.ts +2 -0
  69. package/dist/browser/models/index.d.ts.map +1 -0
  70. package/dist/browser/models/index.js +4 -0
  71. package/dist/browser/models/index.js.map +1 -0
  72. package/dist/browser/models/models.d.ts +399 -0
  73. package/dist/browser/models/models.d.ts.map +1 -0
  74. package/dist/browser/models/models.js +343 -0
  75. package/dist/browser/models/models.js.map +1 -0
  76. package/dist/browser/package.json +3 -0
  77. package/dist/browser/restorePollerHelpers.d.ts +21 -0
  78. package/dist/browser/restorePollerHelpers.d.ts.map +1 -0
  79. package/dist/browser/restorePollerHelpers.js +95 -0
  80. package/dist/browser/restorePollerHelpers.js.map +1 -0
  81. package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
  82. package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
  83. package/dist/browser/static-helpers/pagingHelpers.js +118 -0
  84. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  85. package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
  86. package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -0
  87. package/dist/browser/static-helpers/pollingHelpers.js +79 -0
  88. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  89. package/dist/commonjs/api/accountQuotas/index.d.ts +13 -0
  90. package/dist/commonjs/api/accountQuotas/index.d.ts.map +1 -0
  91. package/dist/commonjs/api/accountQuotas/index.js +47 -0
  92. package/dist/commonjs/api/accountQuotas/index.js.map +1 -0
  93. package/dist/commonjs/api/accounts/index.d.ts +34 -0
  94. package/dist/commonjs/api/accounts/index.d.ts.map +1 -0
  95. package/dist/commonjs/api/accounts/index.js +164 -0
  96. package/dist/commonjs/api/accounts/index.js.map +1 -0
  97. package/dist/commonjs/api/azurePlaywrightServiceContext.d.ts +14 -0
  98. package/dist/commonjs/api/azurePlaywrightServiceContext.d.ts.map +1 -0
  99. package/dist/commonjs/api/azurePlaywrightServiceContext.js +41 -0
  100. package/dist/commonjs/api/azurePlaywrightServiceContext.js.map +1 -0
  101. package/dist/commonjs/api/index.d.ts +7 -0
  102. package/dist/commonjs/api/index.d.ts.map +1 -0
  103. package/dist/commonjs/api/index.js +24 -0
  104. package/dist/commonjs/api/index.js.map +1 -0
  105. package/dist/commonjs/api/operations/index.d.ts +9 -0
  106. package/dist/commonjs/api/operations/index.d.ts.map +1 -0
  107. package/dist/commonjs/api/operations/index.js +27 -0
  108. package/dist/commonjs/api/operations/index.js.map +1 -0
  109. package/dist/commonjs/api/options.d.ts +42 -0
  110. package/dist/commonjs/api/options.d.ts.map +1 -0
  111. package/dist/commonjs/api/options.js +5 -0
  112. package/dist/commonjs/api/options.js.map +1 -0
  113. package/dist/commonjs/api/quotas/index.d.ts +13 -0
  114. package/dist/commonjs/api/quotas/index.d.ts.map +1 -0
  115. package/dist/commonjs/api/quotas/index.js +47 -0
  116. package/dist/commonjs/api/quotas/index.js.map +1 -0
  117. package/dist/commonjs/azurePlaywrightServiceClient.d.ts +24 -0
  118. package/dist/commonjs/azurePlaywrightServiceClient.d.ts.map +1 -0
  119. package/dist/commonjs/azurePlaywrightServiceClient.js +41 -0
  120. package/dist/commonjs/azurePlaywrightServiceClient.js.map +1 -0
  121. package/dist/commonjs/classic/accountQuotas/index.d.ts +17 -0
  122. package/dist/commonjs/classic/accountQuotas/index.d.ts.map +1 -0
  123. package/dist/commonjs/classic/accountQuotas/index.js +19 -0
  124. package/dist/commonjs/classic/accountQuotas/index.js.map +1 -0
  125. package/dist/commonjs/classic/accounts/index.d.ts +33 -0
  126. package/dist/commonjs/classic/accounts/index.d.ts.map +1 -0
  127. package/dist/commonjs/classic/accounts/index.js +24 -0
  128. package/dist/commonjs/classic/accounts/index.js.map +1 -0
  129. package/dist/commonjs/classic/index.d.ts +5 -0
  130. package/dist/commonjs/classic/index.d.ts.map +1 -0
  131. package/dist/commonjs/classic/index.js +5 -0
  132. package/dist/commonjs/classic/index.js.map +1 -0
  133. package/dist/commonjs/classic/operations/index.d.ts +14 -0
  134. package/dist/commonjs/classic/operations/index.d.ts.map +1 -0
  135. package/dist/commonjs/classic/operations/index.js +18 -0
  136. package/dist/commonjs/classic/operations/index.js.map +1 -0
  137. package/dist/commonjs/classic/quotas/index.d.ts +17 -0
  138. package/dist/commonjs/classic/quotas/index.d.ts.map +1 -0
  139. package/dist/commonjs/classic/quotas/index.js +19 -0
  140. package/dist/commonjs/classic/quotas/index.js.map +1 -0
  141. package/dist/commonjs/helpers/serializerHelpers.d.ts +3 -0
  142. package/dist/commonjs/helpers/serializerHelpers.d.ts.map +1 -0
  143. package/dist/commonjs/helpers/serializerHelpers.js +27 -0
  144. package/dist/commonjs/helpers/serializerHelpers.js.map +1 -0
  145. package/dist/commonjs/index.d.ts +8 -0
  146. package/dist/commonjs/index.d.ts.map +1 -0
  147. package/dist/commonjs/index.js +21 -0
  148. package/dist/commonjs/index.js.map +1 -0
  149. package/dist/commonjs/logger.d.ts +2 -0
  150. package/dist/commonjs/logger.d.ts.map +1 -0
  151. package/dist/commonjs/logger.js +8 -0
  152. package/dist/commonjs/logger.js.map +1 -0
  153. package/dist/commonjs/models/index.d.ts +2 -0
  154. package/dist/commonjs/models/index.d.ts.map +1 -0
  155. package/dist/commonjs/models/index.js +17 -0
  156. package/dist/commonjs/models/index.js.map +1 -0
  157. package/dist/commonjs/models/models.d.ts +399 -0
  158. package/dist/commonjs/models/models.d.ts.map +1 -0
  159. package/dist/commonjs/models/models.js +377 -0
  160. package/dist/commonjs/models/models.js.map +1 -0
  161. package/dist/commonjs/package.json +3 -0
  162. package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
  163. package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -0
  164. package/dist/commonjs/restorePollerHelpers.js +98 -0
  165. package/dist/commonjs/restorePollerHelpers.js.map +1 -0
  166. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
  167. package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
  168. package/dist/commonjs/static-helpers/pagingHelpers.js +121 -0
  169. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
  170. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
  171. package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -0
  172. package/dist/commonjs/static-helpers/pollingHelpers.js +82 -0
  173. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
  174. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  175. package/dist/esm/api/accountQuotas/index.d.ts +13 -0
  176. package/dist/esm/api/accountQuotas/index.d.ts.map +1 -0
  177. package/dist/esm/api/accountQuotas/index.js +39 -0
  178. package/dist/esm/api/accountQuotas/index.js.map +1 -0
  179. package/dist/esm/api/accounts/index.d.ts +34 -0
  180. package/dist/esm/api/accounts/index.d.ts.map +1 -0
  181. package/dist/esm/api/accounts/index.js +141 -0
  182. package/dist/esm/api/accounts/index.js.map +1 -0
  183. package/dist/esm/api/azurePlaywrightServiceContext.d.ts +14 -0
  184. package/dist/esm/api/azurePlaywrightServiceContext.d.ts.map +1 -0
  185. package/dist/esm/api/azurePlaywrightServiceContext.js +38 -0
  186. package/dist/esm/api/azurePlaywrightServiceContext.js.map +1 -0
  187. package/dist/esm/api/index.d.ts +7 -0
  188. package/dist/esm/api/index.d.ts.map +1 -0
  189. package/dist/esm/api/index.js +8 -0
  190. package/dist/esm/api/index.js.map +1 -0
  191. package/dist/esm/api/operations/index.d.ts +9 -0
  192. package/dist/esm/api/operations/index.d.ts.map +1 -0
  193. package/dist/esm/api/operations/index.js +22 -0
  194. package/dist/esm/api/operations/index.js.map +1 -0
  195. package/dist/esm/api/options.d.ts +42 -0
  196. package/dist/esm/api/options.d.ts.map +1 -0
  197. package/dist/esm/api/options.js +4 -0
  198. package/dist/esm/api/options.js.map +1 -0
  199. package/dist/esm/api/quotas/index.d.ts +13 -0
  200. package/dist/esm/api/quotas/index.d.ts.map +1 -0
  201. package/dist/esm/api/quotas/index.js +39 -0
  202. package/dist/esm/api/quotas/index.js.map +1 -0
  203. package/dist/esm/azurePlaywrightServiceClient.d.ts +24 -0
  204. package/dist/esm/azurePlaywrightServiceClient.d.ts.map +1 -0
  205. package/dist/esm/azurePlaywrightServiceClient.js +37 -0
  206. package/dist/esm/azurePlaywrightServiceClient.js.map +1 -0
  207. package/dist/esm/classic/accountQuotas/index.d.ts +17 -0
  208. package/dist/esm/classic/accountQuotas/index.d.ts.map +1 -0
  209. package/dist/esm/classic/accountQuotas/index.js +15 -0
  210. package/dist/esm/classic/accountQuotas/index.js.map +1 -0
  211. package/dist/esm/classic/accounts/index.d.ts +33 -0
  212. package/dist/esm/classic/accounts/index.d.ts.map +1 -0
  213. package/dist/esm/classic/accounts/index.js +20 -0
  214. package/dist/esm/classic/accounts/index.js.map +1 -0
  215. package/dist/esm/classic/index.d.ts +5 -0
  216. package/dist/esm/classic/index.d.ts.map +1 -0
  217. package/dist/esm/classic/index.js +4 -0
  218. package/dist/esm/classic/index.js.map +1 -0
  219. package/dist/esm/classic/operations/index.d.ts +14 -0
  220. package/dist/esm/classic/operations/index.d.ts.map +1 -0
  221. package/dist/esm/classic/operations/index.js +14 -0
  222. package/dist/esm/classic/operations/index.js.map +1 -0
  223. package/dist/esm/classic/quotas/index.d.ts +17 -0
  224. package/dist/esm/classic/quotas/index.d.ts.map +1 -0
  225. package/dist/esm/classic/quotas/index.js +15 -0
  226. package/dist/esm/classic/quotas/index.js.map +1 -0
  227. package/dist/esm/helpers/serializerHelpers.d.ts +3 -0
  228. package/dist/esm/helpers/serializerHelpers.d.ts.map +1 -0
  229. package/dist/esm/helpers/serializerHelpers.js +24 -0
  230. package/dist/esm/helpers/serializerHelpers.js.map +1 -0
  231. package/dist/esm/index.d.ts +8 -0
  232. package/dist/esm/index.d.ts.map +1 -0
  233. package/dist/esm/index.js +6 -0
  234. package/dist/esm/index.js.map +1 -0
  235. package/dist/esm/logger.d.ts +2 -0
  236. package/dist/esm/logger.d.ts.map +1 -0
  237. package/dist/esm/logger.js +5 -0
  238. package/dist/esm/logger.js.map +1 -0
  239. package/dist/esm/models/index.d.ts +2 -0
  240. package/dist/esm/models/index.d.ts.map +1 -0
  241. package/dist/esm/models/index.js +4 -0
  242. package/dist/esm/models/index.js.map +1 -0
  243. package/dist/esm/models/models.d.ts +399 -0
  244. package/dist/esm/models/models.d.ts.map +1 -0
  245. package/dist/esm/models/models.js +343 -0
  246. package/dist/esm/models/models.js.map +1 -0
  247. package/dist/esm/package.json +3 -0
  248. package/dist/esm/restorePollerHelpers.d.ts +21 -0
  249. package/dist/esm/restorePollerHelpers.d.ts.map +1 -0
  250. package/dist/esm/restorePollerHelpers.js +95 -0
  251. package/dist/esm/restorePollerHelpers.js.map +1 -0
  252. package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
  253. package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
  254. package/dist/esm/static-helpers/pagingHelpers.js +118 -0
  255. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  256. package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
  257. package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -0
  258. package/dist/esm/static-helpers/pollingHelpers.js +79 -0
  259. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  260. package/dist/react-native/api/accountQuotas/index.d.ts +13 -0
  261. package/dist/react-native/api/accountQuotas/index.d.ts.map +1 -0
  262. package/dist/react-native/api/accountQuotas/index.js +39 -0
  263. package/dist/react-native/api/accountQuotas/index.js.map +1 -0
  264. package/dist/react-native/api/accounts/index.d.ts +34 -0
  265. package/dist/react-native/api/accounts/index.d.ts.map +1 -0
  266. package/dist/react-native/api/accounts/index.js +141 -0
  267. package/dist/react-native/api/accounts/index.js.map +1 -0
  268. package/dist/react-native/api/azurePlaywrightServiceContext.d.ts +14 -0
  269. package/dist/react-native/api/azurePlaywrightServiceContext.d.ts.map +1 -0
  270. package/dist/react-native/api/azurePlaywrightServiceContext.js +38 -0
  271. package/dist/react-native/api/azurePlaywrightServiceContext.js.map +1 -0
  272. package/dist/react-native/api/index.d.ts +7 -0
  273. package/dist/react-native/api/index.d.ts.map +1 -0
  274. package/dist/react-native/api/index.js +8 -0
  275. package/dist/react-native/api/index.js.map +1 -0
  276. package/dist/react-native/api/operations/index.d.ts +9 -0
  277. package/dist/react-native/api/operations/index.d.ts.map +1 -0
  278. package/dist/react-native/api/operations/index.js +22 -0
  279. package/dist/react-native/api/operations/index.js.map +1 -0
  280. package/dist/react-native/api/options.d.ts +42 -0
  281. package/dist/react-native/api/options.d.ts.map +1 -0
  282. package/dist/react-native/api/options.js +4 -0
  283. package/dist/react-native/api/options.js.map +1 -0
  284. package/dist/react-native/api/quotas/index.d.ts +13 -0
  285. package/dist/react-native/api/quotas/index.d.ts.map +1 -0
  286. package/dist/react-native/api/quotas/index.js +39 -0
  287. package/dist/react-native/api/quotas/index.js.map +1 -0
  288. package/dist/react-native/azurePlaywrightServiceClient.d.ts +24 -0
  289. package/dist/react-native/azurePlaywrightServiceClient.d.ts.map +1 -0
  290. package/dist/react-native/azurePlaywrightServiceClient.js +37 -0
  291. package/dist/react-native/azurePlaywrightServiceClient.js.map +1 -0
  292. package/dist/react-native/classic/accountQuotas/index.d.ts +17 -0
  293. package/dist/react-native/classic/accountQuotas/index.d.ts.map +1 -0
  294. package/dist/react-native/classic/accountQuotas/index.js +15 -0
  295. package/dist/react-native/classic/accountQuotas/index.js.map +1 -0
  296. package/dist/react-native/classic/accounts/index.d.ts +33 -0
  297. package/dist/react-native/classic/accounts/index.d.ts.map +1 -0
  298. package/dist/react-native/classic/accounts/index.js +20 -0
  299. package/dist/react-native/classic/accounts/index.js.map +1 -0
  300. package/dist/react-native/classic/index.d.ts +5 -0
  301. package/dist/react-native/classic/index.d.ts.map +1 -0
  302. package/dist/react-native/classic/index.js +4 -0
  303. package/dist/react-native/classic/index.js.map +1 -0
  304. package/dist/react-native/classic/operations/index.d.ts +14 -0
  305. package/dist/react-native/classic/operations/index.d.ts.map +1 -0
  306. package/dist/react-native/classic/operations/index.js +14 -0
  307. package/dist/react-native/classic/operations/index.js.map +1 -0
  308. package/dist/react-native/classic/quotas/index.d.ts +17 -0
  309. package/dist/react-native/classic/quotas/index.d.ts.map +1 -0
  310. package/dist/react-native/classic/quotas/index.js +15 -0
  311. package/dist/react-native/classic/quotas/index.js.map +1 -0
  312. package/dist/react-native/helpers/serializerHelpers.d.ts +3 -0
  313. package/dist/react-native/helpers/serializerHelpers.d.ts.map +1 -0
  314. package/dist/react-native/helpers/serializerHelpers.js +24 -0
  315. package/dist/react-native/helpers/serializerHelpers.js.map +1 -0
  316. package/dist/react-native/index.d.ts +8 -0
  317. package/dist/react-native/index.d.ts.map +1 -0
  318. package/dist/react-native/index.js +6 -0
  319. package/dist/react-native/index.js.map +1 -0
  320. package/dist/react-native/logger.d.ts +2 -0
  321. package/dist/react-native/logger.d.ts.map +1 -0
  322. package/dist/react-native/logger.js +5 -0
  323. package/dist/react-native/logger.js.map +1 -0
  324. package/dist/react-native/models/index.d.ts +2 -0
  325. package/dist/react-native/models/index.d.ts.map +1 -0
  326. package/dist/react-native/models/index.js +4 -0
  327. package/dist/react-native/models/index.js.map +1 -0
  328. package/dist/react-native/models/models.d.ts +399 -0
  329. package/dist/react-native/models/models.d.ts.map +1 -0
  330. package/dist/react-native/models/models.js +343 -0
  331. package/dist/react-native/models/models.js.map +1 -0
  332. package/dist/react-native/package.json +3 -0
  333. package/dist/react-native/restorePollerHelpers.d.ts +21 -0
  334. package/dist/react-native/restorePollerHelpers.d.ts.map +1 -0
  335. package/dist/react-native/restorePollerHelpers.js +95 -0
  336. package/dist/react-native/restorePollerHelpers.js.map +1 -0
  337. package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
  338. package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
  339. package/dist/react-native/static-helpers/pagingHelpers.js +118 -0
  340. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  341. package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
  342. package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -0
  343. package/dist/react-native/static-helpers/pollingHelpers.js +79 -0
  344. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
  345. package/package.json +125 -89
  346. package/review/arm-playwrighttesting-models-node.api.md +230 -0
  347. package/review/arm-playwrighttesting-node.api.md +359 -0
  348. package/dist/index.js +0 -1798
  349. package/dist/index.js.map +0 -1
  350. package/dist/index.min.js +0 -1
  351. package/dist/index.min.js.map +0 -1
  352. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts +0 -2
  353. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts.map +0 -1
  354. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js +0 -44
  355. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js.map +0 -1
  356. package/dist-esm/samples-dev/accountsDeleteSample.d.ts +0 -2
  357. package/dist-esm/samples-dev/accountsDeleteSample.d.ts.map +0 -1
  358. package/dist-esm/samples-dev/accountsDeleteSample.js +0 -39
  359. package/dist-esm/samples-dev/accountsDeleteSample.js.map +0 -1
  360. package/dist-esm/samples-dev/accountsGetSample.d.ts +0 -2
  361. package/dist-esm/samples-dev/accountsGetSample.d.ts.map +0 -1
  362. package/dist-esm/samples-dev/accountsGetSample.js +0 -39
  363. package/dist-esm/samples-dev/accountsGetSample.js.map +0 -1
  364. package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts +0 -2
  365. package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts.map +0 -1
  366. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +0 -54
  367. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +0 -1
  368. package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts +0 -2
  369. package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts.map +0 -1
  370. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +0 -53
  371. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js.map +0 -1
  372. package/dist-esm/samples-dev/accountsUpdateSample.d.ts +0 -2
  373. package/dist-esm/samples-dev/accountsUpdateSample.d.ts.map +0 -1
  374. package/dist-esm/samples-dev/accountsUpdateSample.js +0 -43
  375. package/dist-esm/samples-dev/accountsUpdateSample.js.map +0 -1
  376. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  377. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  378. package/dist-esm/samples-dev/operationsListSample.js +0 -53
  379. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  380. package/dist-esm/samples-dev/quotasGetSample.d.ts +0 -2
  381. package/dist-esm/samples-dev/quotasGetSample.d.ts.map +0 -1
  382. package/dist-esm/samples-dev/quotasGetSample.js +0 -39
  383. package/dist-esm/samples-dev/quotasGetSample.js.map +0 -1
  384. package/dist-esm/samples-dev/quotasListBySubscriptionSample.d.ts +0 -2
  385. package/dist-esm/samples-dev/quotasListBySubscriptionSample.d.ts.map +0 -1
  386. package/dist-esm/samples-dev/quotasListBySubscriptionSample.js +0 -54
  387. package/dist-esm/samples-dev/quotasListBySubscriptionSample.js.map +0 -1
  388. package/dist-esm/src/index.d.ts +0 -6
  389. package/dist-esm/src/index.d.ts.map +0 -1
  390. package/dist-esm/src/index.js +0 -13
  391. package/dist-esm/src/index.js.map +0 -1
  392. package/dist-esm/src/lroImpl.d.ts +0 -11
  393. package/dist-esm/src/lroImpl.d.ts.map +0 -1
  394. package/dist-esm/src/lroImpl.js +0 -21
  395. package/dist-esm/src/lroImpl.js.map +0 -1
  396. package/dist-esm/src/models/index.d.ts +0 -484
  397. package/dist-esm/src/models/index.d.ts.map +0 -1
  398. package/dist-esm/src/models/index.js +0 -72
  399. package/dist-esm/src/models/index.js.map +0 -1
  400. package/dist-esm/src/models/mappers.d.ts +0 -23
  401. package/dist-esm/src/models/mappers.d.ts.map +0 -1
  402. package/dist-esm/src/models/mappers.js +0 -606
  403. package/dist-esm/src/models/mappers.js.map +0 -1
  404. package/dist-esm/src/models/parameters.d.ts +0 -14
  405. package/dist-esm/src/models/parameters.d.ts.map +0 -1
  406. package/dist-esm/src/models/parameters.js +0 -134
  407. package/dist-esm/src/models/parameters.js.map +0 -1
  408. package/dist-esm/src/operations/accounts.d.ts +0 -99
  409. package/dist-esm/src/operations/accounts.d.ts.map +0 -1
  410. package/dist-esm/src/operations/accounts.js +0 -489
  411. package/dist-esm/src/operations/accounts.js.map +0 -1
  412. package/dist-esm/src/operations/index.d.ts +0 -4
  413. package/dist-esm/src/operations/index.d.ts.map +0 -1
  414. package/dist-esm/src/operations/index.js +0 -11
  415. package/dist-esm/src/operations/index.js.map +0 -1
  416. package/dist-esm/src/operations/operations.d.ts +0 -32
  417. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  418. package/dist-esm/src/operations/operations.js +0 -133
  419. package/dist-esm/src/operations/operations.js.map +0 -1
  420. package/dist-esm/src/operations/quotas.d.ts +0 -42
  421. package/dist-esm/src/operations/quotas.d.ts.map +0 -1
  422. package/dist-esm/src/operations/quotas.js +0 -175
  423. package/dist-esm/src/operations/quotas.js.map +0 -1
  424. package/dist-esm/src/operationsInterfaces/accounts.d.ts +0 -63
  425. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +0 -1
  426. package/dist-esm/src/operationsInterfaces/accounts.js +0 -9
  427. package/dist-esm/src/operationsInterfaces/accounts.js.map +0 -1
  428. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
  429. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  430. package/dist-esm/src/operationsInterfaces/index.js +0 -11
  431. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  432. package/dist-esm/src/operationsInterfaces/operations.d.ts +0 -11
  433. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
  434. package/dist-esm/src/operationsInterfaces/operations.js +0 -9
  435. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  436. package/dist-esm/src/operationsInterfaces/quotas.d.ts +0 -19
  437. package/dist-esm/src/operationsInterfaces/quotas.d.ts.map +0 -1
  438. package/dist-esm/src/operationsInterfaces/quotas.js +0 -9
  439. package/dist-esm/src/operationsInterfaces/quotas.js.map +0 -1
  440. package/dist-esm/src/pagingHelper.d.ts +0 -13
  441. package/dist-esm/src/pagingHelper.d.ts.map +0 -1
  442. package/dist-esm/src/pagingHelper.js +0 -32
  443. package/dist-esm/src/pagingHelper.js.map +0 -1
  444. package/dist-esm/src/playwrightTestingClient.d.ts +0 -22
  445. package/dist-esm/src/playwrightTestingClient.d.ts.map +0 -1
  446. package/dist-esm/src/playwrightTestingClient.js +0 -102
  447. package/dist-esm/src/playwrightTestingClient.js.map +0 -1
  448. package/dist-esm/test/playwrighttesting_operations_test.spec.d.ts +0 -4
  449. package/dist-esm/test/playwrighttesting_operations_test.spec.d.ts.map +0 -1
  450. package/dist-esm/test/playwrighttesting_operations_test.spec.js +0 -71
  451. package/dist-esm/test/playwrighttesting_operations_test.spec.js.map +0 -1
  452. package/review/arm-playwrighttesting.api.md +0 -371
  453. package/src/index.ts +0 -13
  454. package/src/lroImpl.ts +0 -42
  455. package/src/models/index.ts +0 -549
  456. package/src/models/mappers.ts +0 -640
  457. package/src/models/parameters.ts +0 -154
  458. package/src/operations/accounts.ts +0 -630
  459. package/src/operations/index.ts +0 -11
  460. package/src/operations/operations.ts +0 -149
  461. package/src/operations/quotas.ts +0 -219
  462. package/src/operationsInterfaces/accounts.ts +0 -121
  463. package/src/operationsInterfaces/index.ts +0 -11
  464. package/src/operationsInterfaces/operations.ts +0 -22
  465. package/src/operationsInterfaces/quotas.ts +0 -41
  466. package/src/pagingHelper.ts +0 -39
  467. package/src/playwrightTestingClient.ts +0 -144
  468. package/tsconfig.json +0 -33
  469. package/types/arm-playwrighttesting.d.ts +0 -663
@@ -0,0 +1,343 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export function accountQuotaDeserializer(item) {
4
+ return {
5
+ id: item["id"],
6
+ name: item["name"],
7
+ type: item["type"],
8
+ systemData: !item["systemData"]
9
+ ? item["systemData"]
10
+ : systemDataDeserializer(item["systemData"]),
11
+ properties: !item["properties"]
12
+ ? item["properties"]
13
+ : accountQuotaPropertiesDeserializer(item["properties"]),
14
+ };
15
+ }
16
+ export function accountQuotaPropertiesDeserializer(item) {
17
+ return {
18
+ freeTrial: !item["freeTrial"]
19
+ ? item["freeTrial"]
20
+ : accountFreeTrialPropertiesDeserializer(item["freeTrial"]),
21
+ provisioningState: item["provisioningState"],
22
+ };
23
+ }
24
+ export function accountFreeTrialPropertiesDeserializer(item) {
25
+ return {
26
+ createdAt: new Date(item["createdAt"]),
27
+ expiryAt: new Date(item["expiryAt"]),
28
+ allocatedValue: item["allocatedValue"],
29
+ usedValue: item["usedValue"],
30
+ percentageUsed: item["percentageUsed"],
31
+ };
32
+ }
33
+ /** The status of the current operation. */
34
+ export var KnownProvisioningState;
35
+ (function (KnownProvisioningState) {
36
+ /** Resource has been created. */
37
+ KnownProvisioningState["Succeeded"] = "Succeeded";
38
+ /** Resource creation failed. */
39
+ KnownProvisioningState["Failed"] = "Failed";
40
+ /** Resource creation was canceled. */
41
+ KnownProvisioningState["Canceled"] = "Canceled";
42
+ /** Creation in progress.. */
43
+ KnownProvisioningState["Creating"] = "Creating";
44
+ /** Deletion in progress.. */
45
+ KnownProvisioningState["Deleting"] = "Deleting";
46
+ /** Change accepted for processing.. */
47
+ KnownProvisioningState["Accepted"] = "Accepted";
48
+ })(KnownProvisioningState || (KnownProvisioningState = {}));
49
+ /** The enum for quota name. */
50
+ export var KnownQuotaNames;
51
+ (function (KnownQuotaNames) {
52
+ /** The quota details for scalable execution feature. When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations. */
53
+ KnownQuotaNames["ScalableExecution"] = "ScalableExecution";
54
+ /** The quota details for reporting feature. When enabled, Playwright client will be able to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting. */
55
+ KnownQuotaNames["Reporting"] = "Reporting";
56
+ })(KnownQuotaNames || (KnownQuotaNames = {}));
57
+ export function proxyResourceDeserializer(item) {
58
+ return {
59
+ id: item["id"],
60
+ name: item["name"],
61
+ type: item["type"],
62
+ systemData: !item["systemData"]
63
+ ? item["systemData"]
64
+ : systemDataDeserializer(item["systemData"]),
65
+ };
66
+ }
67
+ export function resourceSerializer(item) {
68
+ return item;
69
+ }
70
+ export function resourceDeserializer(item) {
71
+ return {
72
+ id: item["id"],
73
+ name: item["name"],
74
+ type: item["type"],
75
+ systemData: !item["systemData"]
76
+ ? item["systemData"]
77
+ : systemDataDeserializer(item["systemData"]),
78
+ };
79
+ }
80
+ export function systemDataDeserializer(item) {
81
+ return {
82
+ createdBy: item["createdBy"],
83
+ createdByType: item["createdByType"],
84
+ createdAt: !item["createdAt"] ? item["createdAt"] : new Date(item["createdAt"]),
85
+ lastModifiedBy: item["lastModifiedBy"],
86
+ lastModifiedByType: item["lastModifiedByType"],
87
+ lastModifiedAt: !item["lastModifiedAt"]
88
+ ? item["lastModifiedAt"]
89
+ : new Date(item["lastModifiedAt"]),
90
+ };
91
+ }
92
+ /** The kind of entity that created the resource. */
93
+ export var KnownCreatedByType;
94
+ (function (KnownCreatedByType) {
95
+ /** The entity was created by a user. */
96
+ KnownCreatedByType["User"] = "User";
97
+ /** The entity was created by an application. */
98
+ KnownCreatedByType["Application"] = "Application";
99
+ /** The entity was created by a managed identity. */
100
+ KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
101
+ /** The entity was created by a key. */
102
+ KnownCreatedByType["Key"] = "Key";
103
+ })(KnownCreatedByType || (KnownCreatedByType = {}));
104
+ export function _accountQuotaListResultDeserializer(item) {
105
+ return {
106
+ value: accountQuotaArrayDeserializer(item["value"]),
107
+ nextLink: item["nextLink"],
108
+ };
109
+ }
110
+ export function accountQuotaArrayDeserializer(result) {
111
+ return result.map((item) => {
112
+ return accountQuotaDeserializer(item);
113
+ });
114
+ }
115
+ export function quotaDeserializer(item) {
116
+ return {
117
+ id: item["id"],
118
+ name: item["name"],
119
+ type: item["type"],
120
+ systemData: !item["systemData"]
121
+ ? item["systemData"]
122
+ : systemDataDeserializer(item["systemData"]),
123
+ properties: !item["properties"]
124
+ ? item["properties"]
125
+ : quotaPropertiesDeserializer(item["properties"]),
126
+ };
127
+ }
128
+ export function quotaPropertiesDeserializer(item) {
129
+ return {
130
+ freeTrial: !item["freeTrial"]
131
+ ? item["freeTrial"]
132
+ : freeTrialPropertiesDeserializer(item["freeTrial"]),
133
+ offeringType: item["offeringType"],
134
+ provisioningState: item["provisioningState"],
135
+ };
136
+ }
137
+ export function freeTrialPropertiesDeserializer(item) {
138
+ return {
139
+ accountId: item["accountId"],
140
+ state: item["state"],
141
+ };
142
+ }
143
+ /** The free-trial state. */
144
+ export var KnownFreeTrialState;
145
+ (function (KnownFreeTrialState) {
146
+ /** The free-trial is Active. */
147
+ KnownFreeTrialState["Active"] = "Active";
148
+ /** The free-trial is Expired. */
149
+ KnownFreeTrialState["Expired"] = "Expired";
150
+ /** The free-trial is Not Eligible. */
151
+ KnownFreeTrialState["NotEligible"] = "NotEligible";
152
+ /** The free-trial is Not Registered. */
153
+ KnownFreeTrialState["NotRegistered"] = "NotRegistered";
154
+ })(KnownFreeTrialState || (KnownFreeTrialState = {}));
155
+ /** Offering type state. */
156
+ export var KnownOfferingType;
157
+ (function (KnownOfferingType) {
158
+ /** The offeringType is NotApplicable. */
159
+ KnownOfferingType["NotApplicable"] = "NotApplicable";
160
+ /** The offeringType is PrivatePreview. */
161
+ KnownOfferingType["PrivatePreview"] = "PrivatePreview";
162
+ /** The offeringType is PublicPreview. */
163
+ KnownOfferingType["PublicPreview"] = "PublicPreview";
164
+ /** The offeringType is GeneralAvailability. */
165
+ KnownOfferingType["GeneralAvailability"] = "GeneralAvailability";
166
+ })(KnownOfferingType || (KnownOfferingType = {}));
167
+ export function _quotaListResultDeserializer(item) {
168
+ return {
169
+ value: quotaArrayDeserializer(item["value"]),
170
+ nextLink: item["nextLink"],
171
+ };
172
+ }
173
+ export function quotaArrayDeserializer(result) {
174
+ return result.map((item) => {
175
+ return quotaDeserializer(item);
176
+ });
177
+ }
178
+ export function accountSerializer(item) {
179
+ return {
180
+ tags: item["tags"],
181
+ location: item["location"],
182
+ properties: !item["properties"]
183
+ ? item["properties"]
184
+ : accountPropertiesSerializer(item["properties"]),
185
+ };
186
+ }
187
+ export function accountDeserializer(item) {
188
+ return {
189
+ tags: item["tags"],
190
+ location: item["location"],
191
+ id: item["id"],
192
+ name: item["name"],
193
+ type: item["type"],
194
+ systemData: !item["systemData"]
195
+ ? item["systemData"]
196
+ : systemDataDeserializer(item["systemData"]),
197
+ properties: !item["properties"]
198
+ ? item["properties"]
199
+ : accountPropertiesDeserializer(item["properties"]),
200
+ };
201
+ }
202
+ export function accountPropertiesSerializer(item) {
203
+ return {
204
+ regionalAffinity: item["regionalAffinity"],
205
+ scalableExecution: item["scalableExecution"],
206
+ reporting: item["reporting"],
207
+ localAuth: item["localAuth"],
208
+ };
209
+ }
210
+ export function accountPropertiesDeserializer(item) {
211
+ return {
212
+ dashboardUri: item["dashboardUri"],
213
+ regionalAffinity: item["regionalAffinity"],
214
+ scalableExecution: item["scalableExecution"],
215
+ reporting: item["reporting"],
216
+ localAuth: item["localAuth"],
217
+ provisioningState: item["provisioningState"],
218
+ };
219
+ }
220
+ /** The enablement status of a feature. */
221
+ export var KnownEnablementStatus;
222
+ (function (KnownEnablementStatus) {
223
+ /** The feature is Enabled. */
224
+ KnownEnablementStatus["Enabled"] = "Enabled";
225
+ /** The feature is Disabled. */
226
+ KnownEnablementStatus["Disabled"] = "Disabled";
227
+ })(KnownEnablementStatus || (KnownEnablementStatus = {}));
228
+ export function trackedResourceSerializer(item) {
229
+ return { tags: item["tags"], location: item["location"] };
230
+ }
231
+ export function trackedResourceDeserializer(item) {
232
+ return {
233
+ id: item["id"],
234
+ name: item["name"],
235
+ type: item["type"],
236
+ systemData: !item["systemData"]
237
+ ? item["systemData"]
238
+ : systemDataDeserializer(item["systemData"]),
239
+ tags: item["tags"],
240
+ location: item["location"],
241
+ };
242
+ }
243
+ export function accountUpdateSerializer(item) {
244
+ return {
245
+ tags: item["tags"],
246
+ properties: !item["properties"]
247
+ ? item["properties"]
248
+ : accountUpdatePropertiesSerializer(item["properties"]),
249
+ };
250
+ }
251
+ export function accountUpdatePropertiesSerializer(item) {
252
+ return {
253
+ regionalAffinity: item["regionalAffinity"],
254
+ scalableExecution: item["scalableExecution"],
255
+ reporting: item["reporting"],
256
+ localAuth: item["localAuth"],
257
+ };
258
+ }
259
+ export function _accountListResultDeserializer(item) {
260
+ return {
261
+ value: accountArrayDeserializer(item["value"]),
262
+ nextLink: item["nextLink"],
263
+ };
264
+ }
265
+ export function accountArraySerializer(result) {
266
+ return result.map((item) => {
267
+ return accountSerializer(item);
268
+ });
269
+ }
270
+ export function accountArrayDeserializer(result) {
271
+ return result.map((item) => {
272
+ return accountDeserializer(item);
273
+ });
274
+ }
275
+ export function checkNameAvailabilityRequestSerializer(item) {
276
+ return { name: item["name"], type: item["type"] };
277
+ }
278
+ export function checkNameAvailabilityResponseDeserializer(item) {
279
+ return {
280
+ nameAvailable: item["nameAvailable"],
281
+ reason: item["reason"],
282
+ message: item["message"],
283
+ };
284
+ }
285
+ /** Possible reasons for a name not being available. */
286
+ export var KnownCheckNameAvailabilityReason;
287
+ (function (KnownCheckNameAvailabilityReason) {
288
+ /** Name is invalid. */
289
+ KnownCheckNameAvailabilityReason["Invalid"] = "Invalid";
290
+ /** Name already exists. */
291
+ KnownCheckNameAvailabilityReason["AlreadyExists"] = "AlreadyExists";
292
+ })(KnownCheckNameAvailabilityReason || (KnownCheckNameAvailabilityReason = {}));
293
+ export function _operationListResultDeserializer(item) {
294
+ return {
295
+ value: operationArrayDeserializer(item["value"]),
296
+ nextLink: item["nextLink"],
297
+ };
298
+ }
299
+ export function operationArrayDeserializer(result) {
300
+ return result.map((item) => {
301
+ return operationDeserializer(item);
302
+ });
303
+ }
304
+ export function operationDeserializer(item) {
305
+ return {
306
+ name: item["name"],
307
+ isDataAction: item["isDataAction"],
308
+ display: !item["display"] ? item["display"] : operationDisplayDeserializer(item["display"]),
309
+ origin: item["origin"],
310
+ actionType: item["actionType"],
311
+ };
312
+ }
313
+ export function operationDisplayDeserializer(item) {
314
+ return {
315
+ provider: item["provider"],
316
+ resource: item["resource"],
317
+ operation: item["operation"],
318
+ description: item["description"],
319
+ };
320
+ }
321
+ /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */
322
+ export var KnownOrigin;
323
+ (function (KnownOrigin) {
324
+ /** Indicates the operation is initiated by a user. */
325
+ KnownOrigin["User"] = "user";
326
+ /** Indicates the operation is initiated by a system. */
327
+ KnownOrigin["System"] = "system";
328
+ /** Indicates the operation is initiated by a user or system. */
329
+ KnownOrigin["UserSystem"] = "user,system";
330
+ })(KnownOrigin || (KnownOrigin = {}));
331
+ /** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */
332
+ export var KnownActionType;
333
+ (function (KnownActionType) {
334
+ /** Actions are for internal-only APIs. */
335
+ KnownActionType["Internal"] = "Internal";
336
+ })(KnownActionType || (KnownActionType = {}));
337
+ /** Microsoft.AzurePlaywrightService Management API Versions. */
338
+ export var KnownVersions;
339
+ (function (KnownVersions) {
340
+ /** 2024-12-01 version */
341
+ KnownVersions["V2024-12-01"] = "2024-12-01";
342
+ })(KnownVersions || (KnownVersions = {}));
343
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,MAAM,UAAU,wBAAwB,CAAC,IAAS;IAChD,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;QACd,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CA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CAAC;AACJ,CAAC;AAcD,MAAM,UAAU,4BAA4B,CAAC,IAAS;IACpD,OAAO;QACL,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC;QAC5B,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;KACjC,CAAC;AACJ,CAAC;AAED,2IAA2I;AAC3I,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,sDAAsD;IACtD,4BAAa,CAAA;IACb,wDAAwD;IACxD,gCAAiB,CAAA;IACjB,gEAAgE;IAChE,yCAA0B,CAAA;AAC5B,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAaD,gHAAgH;AAChH,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,0CAA0C;IAC1C,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAWD,gEAAgE;AAChE,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,yBAAyB;IACzB,2CAA4B,CAAA;AAC9B,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** A quota resource for a Playwright service account. */\nexport interface AccountQuota extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: AccountQuotaProperties;\n}\n\nexport function accountQuotaDeserializer(item: any): AccountQuota {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : accountQuotaPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The Playwright service account quota resource properties. */\nexport interface AccountQuotaProperties {\n /** The Playwright service account quota resource free-trial properties. */\n freeTrial?: AccountFreeTrialProperties;\n /** The status of the last operation. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function accountQuotaPropertiesDeserializer(item: any): AccountQuotaProperties {\n return {\n freeTrial: !item[\"freeTrial\"]\n ? item[\"freeTrial\"]\n : accountFreeTrialPropertiesDeserializer(item[\"freeTrial\"]),\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The Playwright service account quota resource free-trial properties. */\nexport interface AccountFreeTrialProperties {\n /** The free-trial createdAt utcDateTime. */\n readonly createdAt: Date;\n /** The free-trial expiryAt utcDateTime. */\n readonly expiryAt: Date;\n /** The free-trial allocated limit value eg. allocated free minutes. */\n readonly allocatedValue: number;\n /** The free-trial used value eg. used free minutes. */\n readonly usedValue: number;\n /** The free-trial percentage used. */\n readonly percentageUsed: number;\n}\n\nexport function accountFreeTrialPropertiesDeserializer(item: any): AccountFreeTrialProperties {\n return {\n createdAt: new Date(item[\"createdAt\"]),\n expiryAt: new Date(item[\"expiryAt\"]),\n allocatedValue: item[\"allocatedValue\"],\n usedValue: item[\"usedValue\"],\n percentageUsed: item[\"percentageUsed\"],\n };\n}\n\n/** The status of the current operation. */\nexport enum KnownProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n /** Creation in progress.. */\n Creating = \"Creating\",\n /** Deletion in progress.. */\n Deleting = \"Deleting\",\n /** Change accepted for processing.. */\n Accepted = \"Accepted\",\n}\n\n/**\n * The status of the current operation. \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled. \\\n * **Creating**: Creation in progress.. \\\n * **Deleting**: Deletion in progress.. \\\n * **Accepted**: Change accepted for processing..\n */\nexport type ProvisioningState = string;\n\n/** The enum for quota name. */\nexport enum KnownQuotaNames {\n /** The quota details for scalable execution feature. When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations. */\n ScalableExecution = \"ScalableExecution\",\n /** The quota details for reporting feature. When enabled, Playwright client will be able to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting. */\n Reporting = \"Reporting\",\n}\n\n/**\n * The enum for quota name. \\\n * {@link KnownQuotaNames} can be used interchangeably with QuotaNames,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **ScalableExecution**: The quota details for scalable execution feature. When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations. \\\n * **Reporting**: The quota details for reporting feature. When enabled, Playwright client will be able to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.\n */\nexport type QuotaNames = string;\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnowncreatedByType} can be used interchangeably with createdByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** The response of a AccountQuota list operation. */\nexport interface _AccountQuotaListResult {\n /** The AccountQuota items on this page */\n value: AccountQuota[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _accountQuotaListResultDeserializer(item: any): _AccountQuotaListResult {\n return {\n value: accountQuotaArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function accountQuotaArrayDeserializer(result: Array<AccountQuota>): any[] {\n return result.map((item) => {\n return accountQuotaDeserializer(item);\n });\n}\n\n/** A subscription quota resource. */\nexport interface Quota extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: QuotaProperties;\n}\n\nexport function quotaDeserializer(item: any): Quota {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : quotaPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The subscription quota resource properties. */\nexport interface QuotaProperties {\n /** The subscription quota resource free-trial properties. */\n freeTrial?: FreeTrialProperties;\n /** Indicates the offering type for the subscription. */\n readonly offeringType?: OfferingType;\n /** The status of the last operation. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function quotaPropertiesDeserializer(item: any): QuotaProperties {\n return {\n freeTrial: !item[\"freeTrial\"]\n ? item[\"freeTrial\"]\n : freeTrialPropertiesDeserializer(item[\"freeTrial\"]),\n offeringType: item[\"offeringType\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The subscription quota resource free-trial properties. */\nexport interface FreeTrialProperties {\n /** The Playwright service account id. */\n readonly accountId: string;\n /** The free-trial state. */\n readonly state: FreeTrialState;\n}\n\nexport function freeTrialPropertiesDeserializer(item: any): FreeTrialProperties {\n return {\n accountId: item[\"accountId\"],\n state: item[\"state\"],\n };\n}\n\n/** The free-trial state. */\nexport enum KnownFreeTrialState {\n /** The free-trial is Active. */\n Active = \"Active\",\n /** The free-trial is Expired. */\n Expired = \"Expired\",\n /** The free-trial is Not Eligible. */\n NotEligible = \"NotEligible\",\n /** The free-trial is Not Registered. */\n NotRegistered = \"NotRegistered\",\n}\n\n/**\n * The free-trial state. \\\n * {@link KnownFreeTrialState} can be used interchangeably with FreeTrialState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Active**: The free-trial is Active. \\\n * **Expired**: The free-trial is Expired. \\\n * **NotEligible**: The free-trial is Not Eligible. \\\n * **NotRegistered**: The free-trial is Not Registered.\n */\nexport type FreeTrialState = string;\n\n/** Offering type state. */\nexport enum KnownOfferingType {\n /** The offeringType is NotApplicable. */\n NotApplicable = \"NotApplicable\",\n /** The offeringType is PrivatePreview. */\n PrivatePreview = \"PrivatePreview\",\n /** The offeringType is PublicPreview. */\n PublicPreview = \"PublicPreview\",\n /** The offeringType is GeneralAvailability. */\n GeneralAvailability = \"GeneralAvailability\",\n}\n\n/**\n * Offering type state. \\\n * {@link KnownOfferingType} can be used interchangeably with OfferingType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **NotApplicable**: The offeringType is NotApplicable. \\\n * **PrivatePreview**: The offeringType is PrivatePreview. \\\n * **PublicPreview**: The offeringType is PublicPreview. \\\n * **GeneralAvailability**: The offeringType is GeneralAvailability.\n */\nexport type OfferingType = string;\n\n/** The response of a Quota list operation. */\nexport interface _QuotaListResult {\n /** The Quota items on this page */\n value: Quota[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _quotaListResultDeserializer(item: any): _QuotaListResult {\n return {\n value: quotaArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function quotaArrayDeserializer(result: Array<Quota>): any[] {\n return result.map((item) => {\n return quotaDeserializer(item);\n });\n}\n\n/** A Playwright service account resource. */\nexport interface Account extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: AccountProperties;\n}\n\nexport function accountSerializer(item: Account): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : accountPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function accountDeserializer(item: any): Account {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : accountPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Account resource properties. */\nexport interface AccountProperties {\n /** The Playwright testing dashboard URI for the account resource. */\n readonly dashboardUri?: string;\n /** This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created. */\n regionalAffinity?: EnablementStatus;\n /** When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations. */\n scalableExecution?: EnablementStatus;\n /** When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting. */\n reporting?: EnablementStatus;\n /** When enabled, this feature allows the workspace to use local auth(through access key) for authentication of test runs. */\n localAuth?: EnablementStatus;\n /** The status of the last operation. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function accountPropertiesSerializer(item: AccountProperties): any {\n return {\n regionalAffinity: item[\"regionalAffinity\"],\n scalableExecution: item[\"scalableExecution\"],\n reporting: item[\"reporting\"],\n localAuth: item[\"localAuth\"],\n };\n}\n\nexport function accountPropertiesDeserializer(item: any): AccountProperties {\n return {\n dashboardUri: item[\"dashboardUri\"],\n regionalAffinity: item[\"regionalAffinity\"],\n scalableExecution: item[\"scalableExecution\"],\n reporting: item[\"reporting\"],\n localAuth: item[\"localAuth\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The enablement status of a feature. */\nexport enum KnownEnablementStatus {\n /** The feature is Enabled. */\n Enabled = \"Enabled\",\n /** The feature is Disabled. */\n Disabled = \"Disabled\",\n}\n\n/**\n * The enablement status of a feature. \\\n * {@link KnownEnablementStatus} can be used interchangeably with EnablementStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Enabled**: The feature is Enabled. \\\n * **Disabled**: The feature is Disabled.\n */\nexport type EnablementStatus = string;\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n tags: item[\"tags\"],\n location: item[\"location\"],\n };\n}\n\n/** The type used for update operations of the Account. */\nexport interface AccountUpdate {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The resource-specific properties for this resource. */\n properties?: AccountUpdateProperties;\n}\n\nexport function accountUpdateSerializer(item: AccountUpdate): any {\n return {\n tags: item[\"tags\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : accountUpdatePropertiesSerializer(item[\"properties\"]),\n };\n}\n\n/** The updatable properties of the Account. */\nexport interface AccountUpdateProperties {\n /** This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created. */\n regionalAffinity?: EnablementStatus;\n /** When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations. */\n scalableExecution?: EnablementStatus;\n /** When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting. */\n reporting?: EnablementStatus;\n /** When enabled, this feature allows the workspace to use local auth(through access key) for authentication of test runs. */\n localAuth?: EnablementStatus;\n}\n\nexport function accountUpdatePropertiesSerializer(item: AccountUpdateProperties): any {\n return {\n regionalAffinity: item[\"regionalAffinity\"],\n scalableExecution: item[\"scalableExecution\"],\n reporting: item[\"reporting\"],\n localAuth: item[\"localAuth\"],\n };\n}\n\n/** The response of a Account list operation. */\nexport interface _AccountListResult {\n /** The Account items on this page */\n value: Account[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _accountListResultDeserializer(item: any): _AccountListResult {\n return {\n value: accountArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function accountArraySerializer(result: Array<Account>): any[] {\n return result.map((item) => {\n return accountSerializer(item);\n });\n}\n\nexport function accountArrayDeserializer(result: Array<Account>): any[] {\n return result.map((item) => {\n return accountDeserializer(item);\n });\n}\n\n/** The check availability request body. */\nexport interface CheckNameAvailabilityRequest {\n /** The name of the resource for which availability needs to be checked. */\n name?: string;\n /** The resource type. */\n type?: string;\n}\n\nexport function checkNameAvailabilityRequestSerializer(item: CheckNameAvailabilityRequest): any {\n return { name: item[\"name\"], type: item[\"type\"] };\n}\n\n/** The check availability result. */\nexport interface CheckNameAvailabilityResponse {\n /** Indicates if the resource name is available. */\n nameAvailable?: boolean;\n /** The reason why the given name is not available. */\n reason?: CheckNameAvailabilityReason;\n /** Detailed reason why the given name is not available. */\n message?: string;\n}\n\nexport function checkNameAvailabilityResponseDeserializer(\n item: any,\n): CheckNameAvailabilityResponse {\n return {\n nameAvailable: item[\"nameAvailable\"],\n reason: item[\"reason\"],\n message: item[\"message\"],\n };\n}\n\n/** Possible reasons for a name not being available. */\nexport enum KnownCheckNameAvailabilityReason {\n /** Name is invalid. */\n Invalid = \"Invalid\",\n /** Name already exists. */\n AlreadyExists = \"AlreadyExists\",\n}\n\n/**\n * Possible reasons for a name not being available. \\\n * {@link KnownCheckNameAvailabilityReason} can be used interchangeably with CheckNameAvailabilityReason,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Invalid**: Name is invalid. \\\n * **AlreadyExists**: Name already exists.\n */\nexport type CheckNameAvailabilityReason = string;\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n readonly display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** Microsoft.AzurePlaywrightService Management API Versions. */\nexport enum KnownVersions {\n /** 2024-12-01 version */\n \"V2024-12-01\" = \"2024-12-01\",\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,21 @@
1
+ import { AzurePlaywrightServiceClient } from "./azurePlaywrightServiceClient.js";
2
+ import { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client";
3
+ import { AbortSignalLike } from "@azure/abort-controller";
4
+ import { PollerLike, OperationState } from "@azure/core-lro";
5
+ export interface RestorePollerOptions<TResult, TResponse extends PathUncheckedResponse = PathUncheckedResponse> extends OperationOptions {
6
+ /** Delay to wait until next poll, in milliseconds. */
7
+ updateIntervalInMs?: number;
8
+ /**
9
+ * The signal which can be used to abort requests.
10
+ */
11
+ abortSignal?: AbortSignalLike;
12
+ /** Deserialization function for raw response body */
13
+ processResponseBody?: (result: TResponse) => Promise<TResult>;
14
+ }
15
+ /**
16
+ * Creates a poller from the serialized state of another poller. This can be
17
+ * useful when you want to create pollers on a different host or a poller
18
+ * needs to be constructed after the original one is not in scope.
19
+ */
20
+ export declare function restorePoller<TResponse extends PathUncheckedResponse, TResult>(client: AzurePlaywrightServiceClient, serializedState: string, sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult>): PollerLike<OperationState<TResult>, TResult>;
21
+ //# sourceMappingURL=restorePollerHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restorePollerHelpers.d.ts","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAMjF,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,UAAU,EACV,cAAc,EAGf,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,oBAAoB,CACnC,OAAO,EACP,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,CAC/D,SAAQ,gBAAgB;IACxB,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,qDAAqD;IACrD,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,SAAS,SAAS,qBAAqB,EAAE,OAAO,EAC5E,MAAM,EAAE,4BAA4B,EACpC,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,EACjF,OAAO,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,GACtC,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CA+B9C"}
@@ -0,0 +1,95 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { _accountsCreateOrUpdateDeserialize, _accountsDeleteDeserialize, } from "./api/accounts/index.js";
4
+ import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js";
5
+ import { deserializeState, } from "@azure/core-lro";
6
+ /**
7
+ * Creates a poller from the serialized state of another poller. This can be
8
+ * useful when you want to create pollers on a different host or a poller
9
+ * needs to be constructed after the original one is not in scope.
10
+ */
11
+ export function restorePoller(client, serializedState, sourceOperation, options) {
12
+ const pollerConfig = deserializeState(serializedState).config;
13
+ const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
14
+ if (!initialRequestUrl || !requestMethod) {
15
+ throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`);
16
+ }
17
+ const resourceLocationConfig = metadata?.["resourceLocationConfig"];
18
+ const { deserializer, expectedStatuses = [] } = getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};
19
+ const deserializeHelper = options?.processResponseBody ?? deserializer;
20
+ if (!deserializeHelper) {
21
+ throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`);
22
+ }
23
+ return getLongRunningPoller(client["_client"] ?? client, deserializeHelper, expectedStatuses, {
24
+ updateIntervalInMs: options?.updateIntervalInMs,
25
+ abortSignal: options?.abortSignal,
26
+ resourceLocationConfig,
27
+ restoreFrom: serializedState,
28
+ initialRequestUrl,
29
+ });
30
+ }
31
+ const deserializeMap = {
32
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}": {
33
+ deserializer: _accountsCreateOrUpdateDeserialize,
34
+ expectedStatuses: ["200", "201"],
35
+ },
36
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}": {
37
+ deserializer: _accountsDeleteDeserialize,
38
+ expectedStatuses: ["202", "204", "200"],
39
+ },
40
+ };
41
+ function getDeserializationHelper(urlStr, method) {
42
+ const path = new URL(urlStr).pathname;
43
+ const pathParts = path.split("/");
44
+ // Traverse list to match the longest candidate
45
+ // matchedLen: the length of candidate path
46
+ // matchedValue: the matched status code array
47
+ let matchedLen = -1, matchedValue;
48
+ // Iterate the responseMap to find a match
49
+ for (const [key, value] of Object.entries(deserializeMap)) {
50
+ // Extracting the path from the map key which is in format
51
+ // GET /path/foo
52
+ if (!key.startsWith(method)) {
53
+ continue;
54
+ }
55
+ const candidatePath = getPathFromMapKey(key);
56
+ // Get each part of the url path
57
+ const candidateParts = candidatePath.split("/");
58
+ // track if we have found a match to return the values found.
59
+ let found = true;
60
+ for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
61
+ if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) {
62
+ const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length;
63
+ // If the current part of the candidate is a "template" part
64
+ // Try to use the suffix of pattern to match the path
65
+ // {guid} ==> $
66
+ // {guid}:export ==> :export$
67
+ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || "");
68
+ if (!isMatched) {
69
+ found = false;
70
+ break;
71
+ }
72
+ continue;
73
+ }
74
+ // If the candidate part is not a template and
75
+ // the parts don't match mark the candidate as not found
76
+ // to move on with the next candidate path.
77
+ if (candidateParts[i] !== pathParts[j]) {
78
+ found = false;
79
+ break;
80
+ }
81
+ }
82
+ // We finished evaluating the current candidate parts
83
+ // Update the matched value if and only if we found the longer pattern
84
+ if (found && candidatePath.length > matchedLen) {
85
+ matchedLen = candidatePath.length;
86
+ matchedValue = value;
87
+ }
88
+ }
89
+ return matchedValue;
90
+ }
91
+ function getPathFromMapKey(mapKey) {
92
+ const pathStart = mapKey.indexOf("/");
93
+ return mapKey.slice(pathStart);
94
+ }
95
+ //# sourceMappingURL=restorePollerHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,kCAAkC,EAClC,0BAA0B,GAC3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAG1E,OAAO,EAGL,gBAAgB,GAEjB,MAAM,iBAAiB,CAAC;AAgBzB;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAoC,EACpC,eAAuB,EACvB,eAAiF,EACjF,OAAuC;IAEvC,MAAM,YAAY,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC;IACpE,IAAI,CAAC,iBAAiB,IAAI,CAAC,aAAa,EAAE,CAAC;QACzC,MAAM,IAAI,KAAK,CACb,6BAA6B,eAAe,wBAAwB,eAAe,EAAE,IAAI,EAAE,CAC5F,CAAC;IACJ,CAAC;IACD,MAAM,sBAAsB,GAAG,QAAQ,EAAE,CAAC,wBAAwB,CAErD,CAAC;IACd,MAAM,EAAE,YAAY,EAAE,gBAAgB,GAAG,EAAE,EAAE,GAC3C,wBAAwB,CAAC,iBAAiB,EAAE,aAAa,CAAC,IAAI,EAAE,CAAC;IACnE,MAAM,iBAAiB,GAAG,OAAO,EAAE,mBAAmB,IAAI,YAAY,CAAC;IACvE,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,MAAM,I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AC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AzurePlaywrightServiceClient } from \"./azurePlaywrightServiceClient.js\";\nimport {\n _accountsCreateOrUpdateDeserialize,\n _accountsDeleteDeserialize,\n} from \"./api/accounts/index.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: AzurePlaywrightServiceClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: Function;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}\":\n {\n deserializer: _accountsCreateOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}\":\n {\n deserializer: _accountsDeleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
@@ -0,0 +1,72 @@
1
+ import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
2
+ /**
3
+ * Options for the byPage method
4
+ */
5
+ export interface PageSettings {
6
+ /**
7
+ * A reference to a specific page to start iterating from.
8
+ */
9
+ continuationToken?: string;
10
+ }
11
+ /**
12
+ * An interface that describes a page of results.
13
+ */
14
+ export type ContinuablePage<TElement, TPage = TElement[]> = TPage & {
15
+ /**
16
+ * The token that keeps track of where to continue the iterator
17
+ */
18
+ continuationToken?: string;
19
+ };
20
+ /**
21
+ * An interface that allows async iterable iteration both to completion and by page.
22
+ */
23
+ export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
24
+ /**
25
+ * The next method, part of the iteration protocol
26
+ */
27
+ next(): Promise<IteratorResult<TElement>>;
28
+ /**
29
+ * The connection to the async iterator, part of the iteration protocol
30
+ */
31
+ [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
32
+ /**
33
+ * Return an AsyncIterableIterator that works a page at a time
34
+ */
35
+ byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
36
+ }
37
+ /**
38
+ * An interface that describes how to communicate with the service.
39
+ */
40
+ export interface PagedResult<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
41
+ /**
42
+ * Link to the first page of results.
43
+ */
44
+ firstPageLink?: string;
45
+ /**
46
+ * A method that returns a page of results.
47
+ */
48
+ getPage: (pageLink?: string) => Promise<{
49
+ page: TPage;
50
+ nextPageLink?: string;
51
+ } | undefined>;
52
+ /**
53
+ * a function to implement the `byPage` method on the paged async iterator.
54
+ */
55
+ byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
56
+ /**
57
+ * A function to extract elements from a page.
58
+ */
59
+ toElements?: (page: TPage) => TElement[];
60
+ }
61
+ /**
62
+ * Options for the paging helper
63
+ */
64
+ export interface BuildPagedAsyncIteratorOptions {
65
+ itemName?: string;
66
+ nextLinkName?: string;
67
+ }
68
+ /**
69
+ * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
70
+ */
71
+ export declare function buildPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings, TResponse extends PathUncheckedResponse = PathUncheckedResponse>(client: Client, getInitialResponse: () => PromiseLike<TResponse>, processResponseBody: (result: TResponse) => PromiseLike<unknown>, expectedStatuses: string[], options?: BuildPagedAsyncIteratorOptions): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
72
+ //# sourceMappingURL=pagingHelpers.d.ts.map