@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 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAGA,yDAAyD;AACzD,MAAM,WAAW,YAAa,SAAQ,aAAa;IACjD,0DAA0D;IAC1D,UAAU,CAAC,EAAE,sBAAsB,CAAC;CACrC;AAED,wBAAgB,wBAAwB,CA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-0,0 +1,377 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.KnownVersions = exports.KnownActionType = exports.KnownOrigin = exports.KnownCheckNameAvailabilityReason = exports.KnownEnablementStatus = exports.KnownOfferingType = exports.KnownFreeTrialState = exports.KnownCreatedByType = exports.KnownQuotaNames = exports.KnownProvisioningState = void 0;
6
+ exports.accountQuotaDeserializer = accountQuotaDeserializer;
7
+ exports.accountQuotaPropertiesDeserializer = accountQuotaPropertiesDeserializer;
8
+ exports.accountFreeTrialPropertiesDeserializer = accountFreeTrialPropertiesDeserializer;
9
+ exports.proxyResourceDeserializer = proxyResourceDeserializer;
10
+ exports.resourceSerializer = resourceSerializer;
11
+ exports.resourceDeserializer = resourceDeserializer;
12
+ exports.systemDataDeserializer = systemDataDeserializer;
13
+ exports._accountQuotaListResultDeserializer = _accountQuotaListResultDeserializer;
14
+ exports.accountQuotaArrayDeserializer = accountQuotaArrayDeserializer;
15
+ exports.quotaDeserializer = quotaDeserializer;
16
+ exports.quotaPropertiesDeserializer = quotaPropertiesDeserializer;
17
+ exports.freeTrialPropertiesDeserializer = freeTrialPropertiesDeserializer;
18
+ exports._quotaListResultDeserializer = _quotaListResultDeserializer;
19
+ exports.quotaArrayDeserializer = quotaArrayDeserializer;
20
+ exports.accountSerializer = accountSerializer;
21
+ exports.accountDeserializer = accountDeserializer;
22
+ exports.accountPropertiesSerializer = accountPropertiesSerializer;
23
+ exports.accountPropertiesDeserializer = accountPropertiesDeserializer;
24
+ exports.trackedResourceSerializer = trackedResourceSerializer;
25
+ exports.trackedResourceDeserializer = trackedResourceDeserializer;
26
+ exports.accountUpdateSerializer = accountUpdateSerializer;
27
+ exports.accountUpdatePropertiesSerializer = accountUpdatePropertiesSerializer;
28
+ exports._accountListResultDeserializer = _accountListResultDeserializer;
29
+ exports.accountArraySerializer = accountArraySerializer;
30
+ exports.accountArrayDeserializer = accountArrayDeserializer;
31
+ exports.checkNameAvailabilityRequestSerializer = checkNameAvailabilityRequestSerializer;
32
+ exports.checkNameAvailabilityResponseDeserializer = checkNameAvailabilityResponseDeserializer;
33
+ exports._operationListResultDeserializer = _operationListResultDeserializer;
34
+ exports.operationArrayDeserializer = operationArrayDeserializer;
35
+ exports.operationDeserializer = operationDeserializer;
36
+ exports.operationDisplayDeserializer = operationDisplayDeserializer;
37
+ function accountQuotaDeserializer(item) {
38
+ return {
39
+ id: item["id"],
40
+ name: item["name"],
41
+ type: item["type"],
42
+ systemData: !item["systemData"]
43
+ ? item["systemData"]
44
+ : systemDataDeserializer(item["systemData"]),
45
+ properties: !item["properties"]
46
+ ? item["properties"]
47
+ : accountQuotaPropertiesDeserializer(item["properties"]),
48
+ };
49
+ }
50
+ function accountQuotaPropertiesDeserializer(item) {
51
+ return {
52
+ freeTrial: !item["freeTrial"]
53
+ ? item["freeTrial"]
54
+ : accountFreeTrialPropertiesDeserializer(item["freeTrial"]),
55
+ provisioningState: item["provisioningState"],
56
+ };
57
+ }
58
+ function accountFreeTrialPropertiesDeserializer(item) {
59
+ return {
60
+ createdAt: new Date(item["createdAt"]),
61
+ expiryAt: new Date(item["expiryAt"]),
62
+ allocatedValue: item["allocatedValue"],
63
+ usedValue: item["usedValue"],
64
+ percentageUsed: item["percentageUsed"],
65
+ };
66
+ }
67
+ /** The status of the current operation. */
68
+ var KnownProvisioningState;
69
+ (function (KnownProvisioningState) {
70
+ /** Resource has been created. */
71
+ KnownProvisioningState["Succeeded"] = "Succeeded";
72
+ /** Resource creation failed. */
73
+ KnownProvisioningState["Failed"] = "Failed";
74
+ /** Resource creation was canceled. */
75
+ KnownProvisioningState["Canceled"] = "Canceled";
76
+ /** Creation in progress.. */
77
+ KnownProvisioningState["Creating"] = "Creating";
78
+ /** Deletion in progress.. */
79
+ KnownProvisioningState["Deleting"] = "Deleting";
80
+ /** Change accepted for processing.. */
81
+ KnownProvisioningState["Accepted"] = "Accepted";
82
+ })(KnownProvisioningState || (exports.KnownProvisioningState = KnownProvisioningState = {}));
83
+ /** The enum for quota name. */
84
+ var KnownQuotaNames;
85
+ (function (KnownQuotaNames) {
86
+ /** 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. */
87
+ KnownQuotaNames["ScalableExecution"] = "ScalableExecution";
88
+ /** 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. */
89
+ KnownQuotaNames["Reporting"] = "Reporting";
90
+ })(KnownQuotaNames || (exports.KnownQuotaNames = KnownQuotaNames = {}));
91
+ function proxyResourceDeserializer(item) {
92
+ return {
93
+ id: item["id"],
94
+ name: item["name"],
95
+ type: item["type"],
96
+ systemData: !item["systemData"]
97
+ ? item["systemData"]
98
+ : systemDataDeserializer(item["systemData"]),
99
+ };
100
+ }
101
+ function resourceSerializer(item) {
102
+ return item;
103
+ }
104
+ function resourceDeserializer(item) {
105
+ return {
106
+ id: item["id"],
107
+ name: item["name"],
108
+ type: item["type"],
109
+ systemData: !item["systemData"]
110
+ ? item["systemData"]
111
+ : systemDataDeserializer(item["systemData"]),
112
+ };
113
+ }
114
+ function systemDataDeserializer(item) {
115
+ return {
116
+ createdBy: item["createdBy"],
117
+ createdByType: item["createdByType"],
118
+ createdAt: !item["createdAt"] ? item["createdAt"] : new Date(item["createdAt"]),
119
+ lastModifiedBy: item["lastModifiedBy"],
120
+ lastModifiedByType: item["lastModifiedByType"],
121
+ lastModifiedAt: !item["lastModifiedAt"]
122
+ ? item["lastModifiedAt"]
123
+ : new Date(item["lastModifiedAt"]),
124
+ };
125
+ }
126
+ /** The kind of entity that created the resource. */
127
+ var KnownCreatedByType;
128
+ (function (KnownCreatedByType) {
129
+ /** The entity was created by a user. */
130
+ KnownCreatedByType["User"] = "User";
131
+ /** The entity was created by an application. */
132
+ KnownCreatedByType["Application"] = "Application";
133
+ /** The entity was created by a managed identity. */
134
+ KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
135
+ /** The entity was created by a key. */
136
+ KnownCreatedByType["Key"] = "Key";
137
+ })(KnownCreatedByType || (exports.KnownCreatedByType = KnownCreatedByType = {}));
138
+ function _accountQuotaListResultDeserializer(item) {
139
+ return {
140
+ value: accountQuotaArrayDeserializer(item["value"]),
141
+ nextLink: item["nextLink"],
142
+ };
143
+ }
144
+ function accountQuotaArrayDeserializer(result) {
145
+ return result.map((item) => {
146
+ return accountQuotaDeserializer(item);
147
+ });
148
+ }
149
+ function quotaDeserializer(item) {
150
+ return {
151
+ id: item["id"],
152
+ name: item["name"],
153
+ type: item["type"],
154
+ systemData: !item["systemData"]
155
+ ? item["systemData"]
156
+ : systemDataDeserializer(item["systemData"]),
157
+ properties: !item["properties"]
158
+ ? item["properties"]
159
+ : quotaPropertiesDeserializer(item["properties"]),
160
+ };
161
+ }
162
+ function quotaPropertiesDeserializer(item) {
163
+ return {
164
+ freeTrial: !item["freeTrial"]
165
+ ? item["freeTrial"]
166
+ : freeTrialPropertiesDeserializer(item["freeTrial"]),
167
+ offeringType: item["offeringType"],
168
+ provisioningState: item["provisioningState"],
169
+ };
170
+ }
171
+ function freeTrialPropertiesDeserializer(item) {
172
+ return {
173
+ accountId: item["accountId"],
174
+ state: item["state"],
175
+ };
176
+ }
177
+ /** The free-trial state. */
178
+ var KnownFreeTrialState;
179
+ (function (KnownFreeTrialState) {
180
+ /** The free-trial is Active. */
181
+ KnownFreeTrialState["Active"] = "Active";
182
+ /** The free-trial is Expired. */
183
+ KnownFreeTrialState["Expired"] = "Expired";
184
+ /** The free-trial is Not Eligible. */
185
+ KnownFreeTrialState["NotEligible"] = "NotEligible";
186
+ /** The free-trial is Not Registered. */
187
+ KnownFreeTrialState["NotRegistered"] = "NotRegistered";
188
+ })(KnownFreeTrialState || (exports.KnownFreeTrialState = KnownFreeTrialState = {}));
189
+ /** Offering type state. */
190
+ var KnownOfferingType;
191
+ (function (KnownOfferingType) {
192
+ /** The offeringType is NotApplicable. */
193
+ KnownOfferingType["NotApplicable"] = "NotApplicable";
194
+ /** The offeringType is PrivatePreview. */
195
+ KnownOfferingType["PrivatePreview"] = "PrivatePreview";
196
+ /** The offeringType is PublicPreview. */
197
+ KnownOfferingType["PublicPreview"] = "PublicPreview";
198
+ /** The offeringType is GeneralAvailability. */
199
+ KnownOfferingType["GeneralAvailability"] = "GeneralAvailability";
200
+ })(KnownOfferingType || (exports.KnownOfferingType = KnownOfferingType = {}));
201
+ function _quotaListResultDeserializer(item) {
202
+ return {
203
+ value: quotaArrayDeserializer(item["value"]),
204
+ nextLink: item["nextLink"],
205
+ };
206
+ }
207
+ function quotaArrayDeserializer(result) {
208
+ return result.map((item) => {
209
+ return quotaDeserializer(item);
210
+ });
211
+ }
212
+ function accountSerializer(item) {
213
+ return {
214
+ tags: item["tags"],
215
+ location: item["location"],
216
+ properties: !item["properties"]
217
+ ? item["properties"]
218
+ : accountPropertiesSerializer(item["properties"]),
219
+ };
220
+ }
221
+ function accountDeserializer(item) {
222
+ return {
223
+ tags: item["tags"],
224
+ location: item["location"],
225
+ id: item["id"],
226
+ name: item["name"],
227
+ type: item["type"],
228
+ systemData: !item["systemData"]
229
+ ? item["systemData"]
230
+ : systemDataDeserializer(item["systemData"]),
231
+ properties: !item["properties"]
232
+ ? item["properties"]
233
+ : accountPropertiesDeserializer(item["properties"]),
234
+ };
235
+ }
236
+ function accountPropertiesSerializer(item) {
237
+ return {
238
+ regionalAffinity: item["regionalAffinity"],
239
+ scalableExecution: item["scalableExecution"],
240
+ reporting: item["reporting"],
241
+ localAuth: item["localAuth"],
242
+ };
243
+ }
244
+ function accountPropertiesDeserializer(item) {
245
+ return {
246
+ dashboardUri: item["dashboardUri"],
247
+ regionalAffinity: item["regionalAffinity"],
248
+ scalableExecution: item["scalableExecution"],
249
+ reporting: item["reporting"],
250
+ localAuth: item["localAuth"],
251
+ provisioningState: item["provisioningState"],
252
+ };
253
+ }
254
+ /** The enablement status of a feature. */
255
+ var KnownEnablementStatus;
256
+ (function (KnownEnablementStatus) {
257
+ /** The feature is Enabled. */
258
+ KnownEnablementStatus["Enabled"] = "Enabled";
259
+ /** The feature is Disabled. */
260
+ KnownEnablementStatus["Disabled"] = "Disabled";
261
+ })(KnownEnablementStatus || (exports.KnownEnablementStatus = KnownEnablementStatus = {}));
262
+ function trackedResourceSerializer(item) {
263
+ return { tags: item["tags"], location: item["location"] };
264
+ }
265
+ function trackedResourceDeserializer(item) {
266
+ return {
267
+ id: item["id"],
268
+ name: item["name"],
269
+ type: item["type"],
270
+ systemData: !item["systemData"]
271
+ ? item["systemData"]
272
+ : systemDataDeserializer(item["systemData"]),
273
+ tags: item["tags"],
274
+ location: item["location"],
275
+ };
276
+ }
277
+ function accountUpdateSerializer(item) {
278
+ return {
279
+ tags: item["tags"],
280
+ properties: !item["properties"]
281
+ ? item["properties"]
282
+ : accountUpdatePropertiesSerializer(item["properties"]),
283
+ };
284
+ }
285
+ function accountUpdatePropertiesSerializer(item) {
286
+ return {
287
+ regionalAffinity: item["regionalAffinity"],
288
+ scalableExecution: item["scalableExecution"],
289
+ reporting: item["reporting"],
290
+ localAuth: item["localAuth"],
291
+ };
292
+ }
293
+ function _accountListResultDeserializer(item) {
294
+ return {
295
+ value: accountArrayDeserializer(item["value"]),
296
+ nextLink: item["nextLink"],
297
+ };
298
+ }
299
+ function accountArraySerializer(result) {
300
+ return result.map((item) => {
301
+ return accountSerializer(item);
302
+ });
303
+ }
304
+ function accountArrayDeserializer(result) {
305
+ return result.map((item) => {
306
+ return accountDeserializer(item);
307
+ });
308
+ }
309
+ function checkNameAvailabilityRequestSerializer(item) {
310
+ return { name: item["name"], type: item["type"] };
311
+ }
312
+ function checkNameAvailabilityResponseDeserializer(item) {
313
+ return {
314
+ nameAvailable: item["nameAvailable"],
315
+ reason: item["reason"],
316
+ message: item["message"],
317
+ };
318
+ }
319
+ /** Possible reasons for a name not being available. */
320
+ var KnownCheckNameAvailabilityReason;
321
+ (function (KnownCheckNameAvailabilityReason) {
322
+ /** Name is invalid. */
323
+ KnownCheckNameAvailabilityReason["Invalid"] = "Invalid";
324
+ /** Name already exists. */
325
+ KnownCheckNameAvailabilityReason["AlreadyExists"] = "AlreadyExists";
326
+ })(KnownCheckNameAvailabilityReason || (exports.KnownCheckNameAvailabilityReason = KnownCheckNameAvailabilityReason = {}));
327
+ function _operationListResultDeserializer(item) {
328
+ return {
329
+ value: operationArrayDeserializer(item["value"]),
330
+ nextLink: item["nextLink"],
331
+ };
332
+ }
333
+ function operationArrayDeserializer(result) {
334
+ return result.map((item) => {
335
+ return operationDeserializer(item);
336
+ });
337
+ }
338
+ function operationDeserializer(item) {
339
+ return {
340
+ name: item["name"],
341
+ isDataAction: item["isDataAction"],
342
+ display: !item["display"] ? item["display"] : operationDisplayDeserializer(item["display"]),
343
+ origin: item["origin"],
344
+ actionType: item["actionType"],
345
+ };
346
+ }
347
+ function operationDisplayDeserializer(item) {
348
+ return {
349
+ provider: item["provider"],
350
+ resource: item["resource"],
351
+ operation: item["operation"],
352
+ description: item["description"],
353
+ };
354
+ }
355
+ /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */
356
+ var KnownOrigin;
357
+ (function (KnownOrigin) {
358
+ /** Indicates the operation is initiated by a user. */
359
+ KnownOrigin["User"] = "user";
360
+ /** Indicates the operation is initiated by a system. */
361
+ KnownOrigin["System"] = "system";
362
+ /** Indicates the operation is initiated by a user or system. */
363
+ KnownOrigin["UserSystem"] = "user,system";
364
+ })(KnownOrigin || (exports.KnownOrigin = KnownOrigin = {}));
365
+ /** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */
366
+ var KnownActionType;
367
+ (function (KnownActionType) {
368
+ /** Actions are for internal-only APIs. */
369
+ KnownActionType["Internal"] = "Internal";
370
+ })(KnownActionType || (exports.KnownActionType = KnownActionType = {}));
371
+ /** Microsoft.AzurePlaywrightService Management API Versions. */
372
+ var KnownVersions;
373
+ (function (KnownVersions) {
374
+ /** 2024-12-01 version */
375
+ KnownVersions["V2024-12-01"] = "2024-12-01";
376
+ })(KnownVersions || (exports.KnownVersions = KnownVersions = {}));
377
+ //# 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,4DAYC;AAUD,gFAOC;AAgBD,wFAQC;AAqDD,8DASC;AAcD,gDAEC;AAED,oDASC;AAkBD,wDAWC;AAkCD,kFAKC;AAED,sEAIC;AAQD,8CAYC;AAYD,kEAQC;AAUD,0EAKC;AA0DD,oEAKC;AAED,wDAIC;AAQD,8CAQC;AAED,kDAcC;AAkBD,kEAOC;AAED,sEASC;AA4BD,8DAEC;AAED,kEAWC;AAUD,0DAOC;AAcD,8EAOC;AAUD,wEAKC;AAED,wDAIC;AAED,4DAIC;AAUD,wFAEC;AAYD,8FAQC;AA4BD,4EAKC;AAED,gEAIC;AAgBD,sDAQC;AAcD,oEAOC;AAxnBD,SAAgB,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,CAAC;YACpB,CAAC,CAAC,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC9C,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,kCAAkC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KAC3D,CAAC;AACJ,CAAC;AAUD,SAAgB,kCAAkC,CAAC,IAAS;IAC1D,OAAO;QACL,SA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0CAA0C;IAC1C,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAWD,gEAAgE;AAChE,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,yBAAyB;IACzB,2CAA4B,CAAA;AAC9B,CAAC,EAHW,aAAa,6BAAb,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": "commonjs"
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,98 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.restorePoller = restorePoller;
6
+ const index_js_1 = require("./api/accounts/index.js");
7
+ const pollingHelpers_js_1 = require("./static-helpers/pollingHelpers.js");
8
+ const core_lro_1 = require("@azure/core-lro");
9
+ /**
10
+ * Creates a poller from the serialized state of another poller. This can be
11
+ * useful when you want to create pollers on a different host or a poller
12
+ * needs to be constructed after the original one is not in scope.
13
+ */
14
+ function restorePoller(client, serializedState, sourceOperation, options) {
15
+ const pollerConfig = (0, core_lro_1.deserializeState)(serializedState).config;
16
+ const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
17
+ if (!initialRequestUrl || !requestMethod) {
18
+ throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`);
19
+ }
20
+ const resourceLocationConfig = metadata?.["resourceLocationConfig"];
21
+ const { deserializer, expectedStatuses = [] } = getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};
22
+ const deserializeHelper = options?.processResponseBody ?? deserializer;
23
+ if (!deserializeHelper) {
24
+ throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`);
25
+ }
26
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(client["_client"] ?? client, deserializeHelper, expectedStatuses, {
27
+ updateIntervalInMs: options?.updateIntervalInMs,
28
+ abortSignal: options?.abortSignal,
29
+ resourceLocationConfig,
30
+ restoreFrom: serializedState,
31
+ initialRequestUrl,
32
+ });
33
+ }
34
+ const deserializeMap = {
35
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}": {
36
+ deserializer: index_js_1._accountsCreateOrUpdateDeserialize,
37
+ expectedStatuses: ["200", "201"],
38
+ },
39
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}": {
40
+ deserializer: index_js_1._accountsDeleteDeserialize,
41
+ expectedStatuses: ["202", "204", "200"],
42
+ },
43
+ };
44
+ function getDeserializationHelper(urlStr, method) {
45
+ const path = new URL(urlStr).pathname;
46
+ const pathParts = path.split("/");
47
+ // Traverse list to match the longest candidate
48
+ // matchedLen: the length of candidate path
49
+ // matchedValue: the matched status code array
50
+ let matchedLen = -1, matchedValue;
51
+ // Iterate the responseMap to find a match
52
+ for (const [key, value] of Object.entries(deserializeMap)) {
53
+ // Extracting the path from the map key which is in format
54
+ // GET /path/foo
55
+ if (!key.startsWith(method)) {
56
+ continue;
57
+ }
58
+ const candidatePath = getPathFromMapKey(key);
59
+ // Get each part of the url path
60
+ const candidateParts = candidatePath.split("/");
61
+ // track if we have found a match to return the values found.
62
+ let found = true;
63
+ for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
64
+ if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) {
65
+ const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length;
66
+ // If the current part of the candidate is a "template" part
67
+ // Try to use the suffix of pattern to match the path
68
+ // {guid} ==> $
69
+ // {guid}:export ==> :export$
70
+ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || "");
71
+ if (!isMatched) {
72
+ found = false;
73
+ break;
74
+ }
75
+ continue;
76
+ }
77
+ // If the candidate part is not a template and
78
+ // the parts don't match mark the candidate as not found
79
+ // to move on with the next candidate path.
80
+ if (candidateParts[i] !== pathParts[j]) {
81
+ found = false;
82
+ break;
83
+ }
84
+ }
85
+ // We finished evaluating the current candidate parts
86
+ // Update the matched value if and only if we found the longer pattern
87
+ if (found && candidatePath.length > matchedLen) {
88
+ matchedLen = candidatePath.length;
89
+ matchedValue = value;
90
+ }
91
+ }
92
+ return matchedValue;
93
+ }
94
+ function getPathFromMapKey(mapKey) {
95
+ const pathStart = mapKey.indexOf("/");
96
+ return mapKey.slice(pathStart);
97
+ }
98
+ //# sourceMappingURL=restorePollerHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoClC,sCAoCC;AArED,sDAGiC;AACjC,0EAA0E;AAG1E,8CAKyB;AAgBzB;;;;GAIG;AACH,SAAgB,aAAa,CAC3B,MAAoC,EACpC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CAAC;gBAClC,4DAA4D;gBAC5D,qDAAqD;gBACrD,eAAe;gBACf,6BAA6B;gBAC7B,MAAM,SAAS,GAAG,IAAI,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAC1E,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CACnB,CAAC;gBAEF,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;gBACR,CAAC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;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"]}