@azure/arm-durabletask 1.0.0-beta.1 → 1.0.0

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 (374) hide show
  1. package/README.md +3 -2
  2. package/dist/browser/api/durableTaskContext.d.ts +5 -2
  3. package/dist/browser/api/durableTaskContext.js +14 -10
  4. package/dist/browser/api/durableTaskContext.js.map +1 -1
  5. package/dist/browser/api/operations/operations.d.ts +5 -5
  6. package/dist/browser/api/operations/operations.js +13 -8
  7. package/dist/browser/api/operations/operations.js.map +1 -1
  8. package/dist/browser/api/operations/options.d.ts +1 -1
  9. package/dist/browser/api/operations/options.js.map +1 -1
  10. package/dist/browser/api/retentionPolicies/index.d.ts +3 -0
  11. package/dist/browser/api/retentionPolicies/index.js +4 -0
  12. package/dist/browser/api/retentionPolicies/index.js.map +1 -0
  13. package/dist/browser/api/retentionPolicies/operations.d.ts +32 -0
  14. package/dist/browser/api/retentionPolicies/operations.js +185 -0
  15. package/dist/browser/api/retentionPolicies/operations.js.map +1 -0
  16. package/dist/browser/api/retentionPolicies/options.d.ts +23 -0
  17. package/dist/browser/api/retentionPolicies/options.js +4 -0
  18. package/dist/browser/api/retentionPolicies/options.js.map +1 -0
  19. package/dist/browser/api/schedulers/operations.d.ts +6 -6
  20. package/dist/browser/api/schedulers/operations.js +68 -40
  21. package/dist/browser/api/schedulers/operations.js.map +1 -1
  22. package/dist/browser/api/schedulers/options.d.ts +1 -1
  23. package/dist/browser/api/schedulers/options.js.map +1 -1
  24. package/dist/browser/api/taskHubs/operations.d.ts +6 -6
  25. package/dist/browser/api/taskHubs/operations.js +45 -29
  26. package/dist/browser/api/taskHubs/operations.js.map +1 -1
  27. package/dist/browser/api/taskHubs/options.d.ts +1 -1
  28. package/dist/browser/api/taskHubs/options.js.map +1 -1
  29. package/dist/browser/classic/index.d.ts +1 -0
  30. package/dist/browser/classic/index.js.map +1 -1
  31. package/dist/browser/classic/operations/index.d.ts +4 -4
  32. package/dist/browser/classic/operations/index.js +3 -1
  33. package/dist/browser/classic/operations/index.js.map +1 -1
  34. package/dist/browser/classic/retentionPolicies/index.d.ts +25 -0
  35. package/dist/browser/classic/retentionPolicies/index.js +18 -0
  36. package/dist/browser/classic/retentionPolicies/index.js.map +1 -0
  37. package/dist/browser/classic/schedulers/index.d.ts +5 -5
  38. package/dist/browser/classic/schedulers/index.js +3 -1
  39. package/dist/browser/classic/schedulers/index.js.map +1 -1
  40. package/dist/browser/classic/taskHubs/index.d.ts +5 -5
  41. package/dist/browser/classic/taskHubs/index.js +3 -1
  42. package/dist/browser/classic/taskHubs/index.js.map +1 -1
  43. package/dist/browser/durableTaskClient.d.ts +9 -6
  44. package/dist/browser/durableTaskClient.js +21 -6
  45. package/dist/browser/durableTaskClient.js.map +1 -1
  46. package/dist/browser/index.d.ts +5 -2
  47. package/dist/browser/index.js +3 -1
  48. package/dist/browser/index.js.map +1 -1
  49. package/dist/browser/models/index.d.ts +1 -1
  50. package/dist/browser/models/index.js +1 -1
  51. package/dist/browser/models/index.js.map +1 -1
  52. package/dist/browser/models/models.d.ts +237 -166
  53. package/dist/browser/models/models.js +228 -138
  54. package/dist/browser/models/models.js.map +1 -1
  55. package/dist/browser/restorePollerHelpers.d.ts +4 -4
  56. package/dist/browser/restorePollerHelpers.js +31 -20
  57. package/dist/browser/restorePollerHelpers.js.map +1 -1
  58. package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
  59. package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
  60. package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
  61. package/dist/browser/static-helpers/pagingHelpers.d.ts +1 -1
  62. package/dist/browser/static-helpers/pagingHelpers.js +31 -50
  63. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
  64. package/dist/browser/static-helpers/pollingHelpers.d.ts +3 -3
  65. package/dist/browser/static-helpers/pollingHelpers.js +15 -12
  66. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
  67. package/dist/browser/static-helpers/urlTemplate.js +26 -9
  68. package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
  69. package/dist/commonjs/api/durableTaskContext.d.ts +5 -2
  70. package/dist/commonjs/api/durableTaskContext.js +14 -10
  71. package/dist/commonjs/api/durableTaskContext.js.map +1 -1
  72. package/dist/commonjs/api/operations/operations.d.ts +5 -5
  73. package/dist/commonjs/api/operations/operations.js +10 -5
  74. package/dist/commonjs/api/operations/operations.js.map +1 -1
  75. package/dist/commonjs/api/operations/options.d.ts +1 -1
  76. package/dist/commonjs/api/operations/options.js.map +1 -1
  77. package/dist/commonjs/api/retentionPolicies/index.d.ts +3 -0
  78. package/dist/commonjs/api/retentionPolicies/index.js +12 -0
  79. package/dist/commonjs/api/retentionPolicies/index.js.map +1 -0
  80. package/dist/commonjs/api/retentionPolicies/operations.d.ts +32 -0
  81. package/dist/commonjs/api/retentionPolicies/operations.js +202 -0
  82. package/dist/commonjs/api/retentionPolicies/operations.js.map +1 -0
  83. package/dist/commonjs/api/retentionPolicies/options.d.ts +23 -0
  84. package/dist/commonjs/api/retentionPolicies/options.js +5 -0
  85. package/dist/commonjs/api/retentionPolicies/options.js.map +1 -0
  86. package/dist/commonjs/api/schedulers/operations.d.ts +6 -6
  87. package/dist/commonjs/api/schedulers/operations.js +66 -38
  88. package/dist/commonjs/api/schedulers/operations.js.map +1 -1
  89. package/dist/commonjs/api/schedulers/options.d.ts +1 -1
  90. package/dist/commonjs/api/schedulers/options.js.map +1 -1
  91. package/dist/commonjs/api/taskHubs/operations.d.ts +6 -6
  92. package/dist/commonjs/api/taskHubs/operations.js +42 -26
  93. package/dist/commonjs/api/taskHubs/operations.js.map +1 -1
  94. package/dist/commonjs/api/taskHubs/options.d.ts +1 -1
  95. package/dist/commonjs/api/taskHubs/options.js.map +1 -1
  96. package/dist/commonjs/classic/index.d.ts +1 -0
  97. package/dist/commonjs/classic/index.js.map +1 -1
  98. package/dist/commonjs/classic/operations/index.d.ts +4 -4
  99. package/dist/commonjs/classic/operations/index.js +3 -1
  100. package/dist/commonjs/classic/operations/index.js.map +1 -1
  101. package/dist/commonjs/classic/retentionPolicies/index.d.ts +25 -0
  102. package/dist/commonjs/classic/retentionPolicies/index.js +21 -0
  103. package/dist/commonjs/classic/retentionPolicies/index.js.map +1 -0
  104. package/dist/commonjs/classic/schedulers/index.d.ts +5 -5
  105. package/dist/commonjs/classic/schedulers/index.js +3 -1
  106. package/dist/commonjs/classic/schedulers/index.js.map +1 -1
  107. package/dist/commonjs/classic/taskHubs/index.d.ts +5 -5
  108. package/dist/commonjs/classic/taskHubs/index.js +3 -1
  109. package/dist/commonjs/classic/taskHubs/index.js.map +1 -1
  110. package/dist/commonjs/durableTaskClient.d.ts +9 -6
  111. package/dist/commonjs/durableTaskClient.js +24 -9
  112. package/dist/commonjs/durableTaskClient.js.map +1 -1
  113. package/dist/commonjs/index.d.ts +5 -2
  114. package/dist/commonjs/index.js +8 -4
  115. package/dist/commonjs/index.js.map +1 -1
  116. package/dist/commonjs/models/index.d.ts +1 -1
  117. package/dist/commonjs/models/index.js +6 -4
  118. package/dist/commonjs/models/index.js.map +1 -1
  119. package/dist/commonjs/models/models.d.ts +237 -166
  120. package/dist/commonjs/models/models.js +256 -156
  121. package/dist/commonjs/models/models.js.map +1 -1
  122. package/dist/commonjs/restorePollerHelpers.d.ts +4 -4
  123. package/dist/commonjs/restorePollerHelpers.js +33 -22
  124. package/dist/commonjs/restorePollerHelpers.js.map +1 -1
  125. package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
  126. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +42 -0
  127. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -0
  128. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +1 -1
  129. package/dist/commonjs/static-helpers/pagingHelpers.js +31 -50
  130. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
  131. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +3 -3
  132. package/dist/commonjs/static-helpers/pollingHelpers.js +14 -11
  133. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
  134. package/dist/commonjs/static-helpers/urlTemplate.js +26 -9
  135. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
  136. package/dist/commonjs/tsdoc-metadata.json +11 -11
  137. package/dist/esm/api/durableTaskContext.d.ts +5 -2
  138. package/dist/esm/api/durableTaskContext.js +14 -10
  139. package/dist/esm/api/durableTaskContext.js.map +1 -1
  140. package/dist/esm/api/operations/operations.d.ts +5 -5
  141. package/dist/esm/api/operations/operations.js +13 -8
  142. package/dist/esm/api/operations/operations.js.map +1 -1
  143. package/dist/esm/api/operations/options.d.ts +1 -1
  144. package/dist/esm/api/operations/options.js.map +1 -1
  145. package/dist/esm/api/retentionPolicies/index.d.ts +3 -0
  146. package/dist/esm/api/retentionPolicies/index.js +4 -0
  147. package/dist/esm/api/retentionPolicies/index.js.map +1 -0
  148. package/dist/esm/api/retentionPolicies/operations.d.ts +32 -0
  149. package/dist/esm/api/retentionPolicies/operations.js +185 -0
  150. package/dist/esm/api/retentionPolicies/operations.js.map +1 -0
  151. package/dist/esm/api/retentionPolicies/options.d.ts +23 -0
  152. package/dist/esm/api/retentionPolicies/options.js +4 -0
  153. package/dist/esm/api/retentionPolicies/options.js.map +1 -0
  154. package/dist/esm/api/schedulers/operations.d.ts +6 -6
  155. package/dist/esm/api/schedulers/operations.js +68 -40
  156. package/dist/esm/api/schedulers/operations.js.map +1 -1
  157. package/dist/esm/api/schedulers/options.d.ts +1 -1
  158. package/dist/esm/api/schedulers/options.js.map +1 -1
  159. package/dist/esm/api/taskHubs/operations.d.ts +6 -6
  160. package/dist/esm/api/taskHubs/operations.js +45 -29
  161. package/dist/esm/api/taskHubs/operations.js.map +1 -1
  162. package/dist/esm/api/taskHubs/options.d.ts +1 -1
  163. package/dist/esm/api/taskHubs/options.js.map +1 -1
  164. package/dist/esm/classic/index.d.ts +1 -0
  165. package/dist/esm/classic/index.js.map +1 -1
  166. package/dist/esm/classic/operations/index.d.ts +4 -4
  167. package/dist/esm/classic/operations/index.js +3 -1
  168. package/dist/esm/classic/operations/index.js.map +1 -1
  169. package/dist/esm/classic/retentionPolicies/index.d.ts +25 -0
  170. package/dist/esm/classic/retentionPolicies/index.js +18 -0
  171. package/dist/esm/classic/retentionPolicies/index.js.map +1 -0
  172. package/dist/esm/classic/schedulers/index.d.ts +5 -5
  173. package/dist/esm/classic/schedulers/index.js +3 -1
  174. package/dist/esm/classic/schedulers/index.js.map +1 -1
  175. package/dist/esm/classic/taskHubs/index.d.ts +5 -5
  176. package/dist/esm/classic/taskHubs/index.js +3 -1
  177. package/dist/esm/classic/taskHubs/index.js.map +1 -1
  178. package/dist/esm/durableTaskClient.d.ts +9 -6
  179. package/dist/esm/durableTaskClient.js +21 -6
  180. package/dist/esm/durableTaskClient.js.map +1 -1
  181. package/dist/esm/index.d.ts +5 -2
  182. package/dist/esm/index.js +3 -1
  183. package/dist/esm/index.js.map +1 -1
  184. package/dist/esm/models/index.d.ts +1 -1
  185. package/dist/esm/models/index.js +1 -1
  186. package/dist/esm/models/index.js.map +1 -1
  187. package/dist/esm/models/models.d.ts +237 -166
  188. package/dist/esm/models/models.js +228 -138
  189. package/dist/esm/models/models.js.map +1 -1
  190. package/dist/esm/restorePollerHelpers.d.ts +4 -4
  191. package/dist/esm/restorePollerHelpers.js +31 -20
  192. package/dist/esm/restorePollerHelpers.js.map +1 -1
  193. package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
  194. package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
  195. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
  196. package/dist/esm/static-helpers/pagingHelpers.d.ts +1 -1
  197. package/dist/esm/static-helpers/pagingHelpers.js +31 -50
  198. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
  199. package/dist/esm/static-helpers/pollingHelpers.d.ts +3 -3
  200. package/dist/esm/static-helpers/pollingHelpers.js +15 -12
  201. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
  202. package/dist/esm/static-helpers/urlTemplate.js +26 -9
  203. package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
  204. package/dist/react-native/api/durableTaskContext.d.ts +5 -2
  205. package/dist/react-native/api/durableTaskContext.js +14 -10
  206. package/dist/react-native/api/durableTaskContext.js.map +1 -1
  207. package/dist/react-native/api/operations/operations.d.ts +5 -5
  208. package/dist/react-native/api/operations/operations.js +13 -8
  209. package/dist/react-native/api/operations/operations.js.map +1 -1
  210. package/dist/react-native/api/operations/options.d.ts +1 -1
  211. package/dist/react-native/api/operations/options.js.map +1 -1
  212. package/dist/react-native/api/retentionPolicies/index.d.ts +3 -0
  213. package/dist/react-native/api/retentionPolicies/index.js +4 -0
  214. package/dist/react-native/api/retentionPolicies/index.js.map +1 -0
  215. package/dist/react-native/api/retentionPolicies/operations.d.ts +32 -0
  216. package/dist/react-native/api/retentionPolicies/operations.js +185 -0
  217. package/dist/react-native/api/retentionPolicies/operations.js.map +1 -0
  218. package/dist/react-native/api/retentionPolicies/options.d.ts +23 -0
  219. package/dist/react-native/api/retentionPolicies/options.js +4 -0
  220. package/dist/react-native/api/retentionPolicies/options.js.map +1 -0
  221. package/dist/react-native/api/schedulers/operations.d.ts +6 -6
  222. package/dist/react-native/api/schedulers/operations.js +68 -40
  223. package/dist/react-native/api/schedulers/operations.js.map +1 -1
  224. package/dist/react-native/api/schedulers/options.d.ts +1 -1
  225. package/dist/react-native/api/schedulers/options.js.map +1 -1
  226. package/dist/react-native/api/taskHubs/operations.d.ts +6 -6
  227. package/dist/react-native/api/taskHubs/operations.js +45 -29
  228. package/dist/react-native/api/taskHubs/operations.js.map +1 -1
  229. package/dist/react-native/api/taskHubs/options.d.ts +1 -1
  230. package/dist/react-native/api/taskHubs/options.js.map +1 -1
  231. package/dist/react-native/classic/index.d.ts +1 -0
  232. package/dist/react-native/classic/index.js.map +1 -1
  233. package/dist/react-native/classic/operations/index.d.ts +4 -4
  234. package/dist/react-native/classic/operations/index.js +3 -1
  235. package/dist/react-native/classic/operations/index.js.map +1 -1
  236. package/dist/react-native/classic/retentionPolicies/index.d.ts +25 -0
  237. package/dist/react-native/classic/retentionPolicies/index.js +18 -0
  238. package/dist/react-native/classic/retentionPolicies/index.js.map +1 -0
  239. package/dist/react-native/classic/schedulers/index.d.ts +5 -5
  240. package/dist/react-native/classic/schedulers/index.js +3 -1
  241. package/dist/react-native/classic/schedulers/index.js.map +1 -1
  242. package/dist/react-native/classic/taskHubs/index.d.ts +5 -5
  243. package/dist/react-native/classic/taskHubs/index.js +3 -1
  244. package/dist/react-native/classic/taskHubs/index.js.map +1 -1
  245. package/dist/react-native/durableTaskClient.d.ts +9 -6
  246. package/dist/react-native/durableTaskClient.js +21 -6
  247. package/dist/react-native/durableTaskClient.js.map +1 -1
  248. package/dist/react-native/index.d.ts +5 -2
  249. package/dist/react-native/index.js +3 -1
  250. package/dist/react-native/index.js.map +1 -1
  251. package/dist/react-native/models/index.d.ts +1 -1
  252. package/dist/react-native/models/index.js +1 -1
  253. package/dist/react-native/models/index.js.map +1 -1
  254. package/dist/react-native/models/models.d.ts +237 -166
  255. package/dist/react-native/models/models.js +228 -138
  256. package/dist/react-native/models/models.js.map +1 -1
  257. package/dist/react-native/restorePollerHelpers.d.ts +4 -4
  258. package/dist/react-native/restorePollerHelpers.js +31 -20
  259. package/dist/react-native/restorePollerHelpers.js.map +1 -1
  260. package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +22 -0
  261. package/dist/react-native/static-helpers/cloudSettingHelpers.js +38 -0
  262. package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +1 -0
  263. package/dist/react-native/static-helpers/pagingHelpers.d.ts +1 -1
  264. package/dist/react-native/static-helpers/pagingHelpers.js +31 -50
  265. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
  266. package/dist/react-native/static-helpers/pollingHelpers.d.ts +3 -3
  267. package/dist/react-native/static-helpers/pollingHelpers.js +15 -12
  268. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
  269. package/dist/react-native/static-helpers/urlTemplate.js +26 -9
  270. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
  271. package/package.json +55 -44
  272. package/CHANGELOG.md +0 -7
  273. package/dist/browser/api/durableTaskContext.d.ts.map +0 -1
  274. package/dist/browser/api/index.d.ts.map +0 -1
  275. package/dist/browser/api/operations/index.d.ts.map +0 -1
  276. package/dist/browser/api/operations/operations.d.ts.map +0 -1
  277. package/dist/browser/api/operations/options.d.ts.map +0 -1
  278. package/dist/browser/api/schedulers/index.d.ts.map +0 -1
  279. package/dist/browser/api/schedulers/operations.d.ts.map +0 -1
  280. package/dist/browser/api/schedulers/options.d.ts.map +0 -1
  281. package/dist/browser/api/taskHubs/index.d.ts.map +0 -1
  282. package/dist/browser/api/taskHubs/operations.d.ts.map +0 -1
  283. package/dist/browser/api/taskHubs/options.d.ts.map +0 -1
  284. package/dist/browser/classic/index.d.ts.map +0 -1
  285. package/dist/browser/classic/operations/index.d.ts.map +0 -1
  286. package/dist/browser/classic/schedulers/index.d.ts.map +0 -1
  287. package/dist/browser/classic/taskHubs/index.d.ts.map +0 -1
  288. package/dist/browser/durableTaskClient.d.ts.map +0 -1
  289. package/dist/browser/index.d.ts.map +0 -1
  290. package/dist/browser/logger.d.ts.map +0 -1
  291. package/dist/browser/models/index.d.ts.map +0 -1
  292. package/dist/browser/models/models.d.ts.map +0 -1
  293. package/dist/browser/restorePollerHelpers.d.ts.map +0 -1
  294. package/dist/browser/static-helpers/pagingHelpers.d.ts.map +0 -1
  295. package/dist/browser/static-helpers/pollingHelpers.d.ts.map +0 -1
  296. package/dist/browser/static-helpers/urlTemplate.d.ts.map +0 -1
  297. package/dist/commonjs/api/durableTaskContext.d.ts.map +0 -1
  298. package/dist/commonjs/api/index.d.ts.map +0 -1
  299. package/dist/commonjs/api/operations/index.d.ts.map +0 -1
  300. package/dist/commonjs/api/operations/operations.d.ts.map +0 -1
  301. package/dist/commonjs/api/operations/options.d.ts.map +0 -1
  302. package/dist/commonjs/api/schedulers/index.d.ts.map +0 -1
  303. package/dist/commonjs/api/schedulers/operations.d.ts.map +0 -1
  304. package/dist/commonjs/api/schedulers/options.d.ts.map +0 -1
  305. package/dist/commonjs/api/taskHubs/index.d.ts.map +0 -1
  306. package/dist/commonjs/api/taskHubs/operations.d.ts.map +0 -1
  307. package/dist/commonjs/api/taskHubs/options.d.ts.map +0 -1
  308. package/dist/commonjs/classic/index.d.ts.map +0 -1
  309. package/dist/commonjs/classic/operations/index.d.ts.map +0 -1
  310. package/dist/commonjs/classic/schedulers/index.d.ts.map +0 -1
  311. package/dist/commonjs/classic/taskHubs/index.d.ts.map +0 -1
  312. package/dist/commonjs/durableTaskClient.d.ts.map +0 -1
  313. package/dist/commonjs/index.d.ts.map +0 -1
  314. package/dist/commonjs/logger.d.ts.map +0 -1
  315. package/dist/commonjs/models/index.d.ts.map +0 -1
  316. package/dist/commonjs/models/models.d.ts.map +0 -1
  317. package/dist/commonjs/restorePollerHelpers.d.ts.map +0 -1
  318. package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +0 -1
  319. package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +0 -1
  320. package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +0 -1
  321. package/dist/esm/api/durableTaskContext.d.ts.map +0 -1
  322. package/dist/esm/api/index.d.ts.map +0 -1
  323. package/dist/esm/api/operations/index.d.ts.map +0 -1
  324. package/dist/esm/api/operations/operations.d.ts.map +0 -1
  325. package/dist/esm/api/operations/options.d.ts.map +0 -1
  326. package/dist/esm/api/schedulers/index.d.ts.map +0 -1
  327. package/dist/esm/api/schedulers/operations.d.ts.map +0 -1
  328. package/dist/esm/api/schedulers/options.d.ts.map +0 -1
  329. package/dist/esm/api/taskHubs/index.d.ts.map +0 -1
  330. package/dist/esm/api/taskHubs/operations.d.ts.map +0 -1
  331. package/dist/esm/api/taskHubs/options.d.ts.map +0 -1
  332. package/dist/esm/classic/index.d.ts.map +0 -1
  333. package/dist/esm/classic/operations/index.d.ts.map +0 -1
  334. package/dist/esm/classic/schedulers/index.d.ts.map +0 -1
  335. package/dist/esm/classic/taskHubs/index.d.ts.map +0 -1
  336. package/dist/esm/durableTaskClient.d.ts.map +0 -1
  337. package/dist/esm/index.d.ts.map +0 -1
  338. package/dist/esm/logger.d.ts.map +0 -1
  339. package/dist/esm/models/index.d.ts.map +0 -1
  340. package/dist/esm/models/models.d.ts.map +0 -1
  341. package/dist/esm/restorePollerHelpers.d.ts.map +0 -1
  342. package/dist/esm/static-helpers/pagingHelpers.d.ts.map +0 -1
  343. package/dist/esm/static-helpers/pollingHelpers.d.ts.map +0 -1
  344. package/dist/esm/static-helpers/urlTemplate.d.ts.map +0 -1
  345. package/dist/react-native/api/durableTaskContext.d.ts.map +0 -1
  346. package/dist/react-native/api/index.d.ts.map +0 -1
  347. package/dist/react-native/api/operations/index.d.ts.map +0 -1
  348. package/dist/react-native/api/operations/operations.d.ts.map +0 -1
  349. package/dist/react-native/api/operations/options.d.ts.map +0 -1
  350. package/dist/react-native/api/schedulers/index.d.ts.map +0 -1
  351. package/dist/react-native/api/schedulers/operations.d.ts.map +0 -1
  352. package/dist/react-native/api/schedulers/options.d.ts.map +0 -1
  353. package/dist/react-native/api/taskHubs/index.d.ts.map +0 -1
  354. package/dist/react-native/api/taskHubs/operations.d.ts.map +0 -1
  355. package/dist/react-native/api/taskHubs/options.d.ts.map +0 -1
  356. package/dist/react-native/classic/index.d.ts.map +0 -1
  357. package/dist/react-native/classic/operations/index.d.ts.map +0 -1
  358. package/dist/react-native/classic/schedulers/index.d.ts.map +0 -1
  359. package/dist/react-native/classic/taskHubs/index.d.ts.map +0 -1
  360. package/dist/react-native/durableTaskClient.d.ts.map +0 -1
  361. package/dist/react-native/index.d.ts.map +0 -1
  362. package/dist/react-native/logger.d.ts.map +0 -1
  363. package/dist/react-native/models/index.d.ts.map +0 -1
  364. package/dist/react-native/models/models.d.ts.map +0 -1
  365. package/dist/react-native/restorePollerHelpers.d.ts.map +0 -1
  366. package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +0 -1
  367. package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +0 -1
  368. package/dist/react-native/static-helpers/urlTemplate.d.ts.map +0 -1
  369. package/review/arm-durabletask-api-operations.api.md +0 -19
  370. package/review/arm-durabletask-api-schedulers.api.md +0 -59
  371. package/review/arm-durabletask-api-taskHubs.api.md +0 -44
  372. package/review/arm-durabletask-api.api.md +0 -27
  373. package/review/arm-durabletask-models.api.md +0 -183
  374. package/review/arm-durabletask.api.md +0 -305
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAQlC,8CAMC;AAED,kDAYC;AAUD,kEAEC;AAED,sEAKC;AAsCD,0DAEC;AAED,8DASC;AAcD,gDAEC;AAED,oDASC;AAkBD,wDAWC;AAgCD,8DAIC;AAgBD,0DAUC;AAED,oEAIC;AAED,oFAIC;AAUD,0EAKC;AAKD,oFAEC;AAUD,wEAKC;AAED,wDAIC;AAED,4DAIC;AAQD,kDAQC;AAED,sDAcC;AAcD,sEAOC;AAED,0EASC;AAYD,wDAEC;AAED,4DAMC;AA4BD,8DAEC;AAED,kEAWC;AAUD,8DAOC;AAcD,kFASC;AAYD,oEAEC;AAUD,4EAKC;AAED,4DAIC;AAED,gEAIC;AAUD,4EAKC;AAED,gEAIC;AAgBD,sDAQC;AAcD,oEAOC;AAjiBD,SAAgB,iBAAiB,CAAC,IAAa;IAC7C,OAAO;QACL,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,2BAA2B,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KACpD,CAAC;AACJ,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IAC3C,OAAO;QACL,EAAE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eAAe;IACzB,0CAA0C;IAC1C,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAWD,mBAAmB;AACnB,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,yBAAyB;IACzB,wDAAuC,CAAA;AACzC,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** A Task Hub resource belonging to the scheduler */\nexport interface TaskHub extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: TaskHubProperties;\n}\n\nexport function taskHubSerializer(item: TaskHub): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : taskHubPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function taskHubDeserializer(item: any): TaskHub {\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 : taskHubPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The properties of Task Hub */\nexport interface TaskHubProperties {\n /** The status of the last operation */\n readonly provisioningState?: ProvisioningState;\n /** URL of the durable task scheduler dashboard */\n readonly dashboardUrl?: string;\n}\n\nexport function taskHubPropertiesSerializer(item: TaskHubProperties): any {\n return item;\n}\n\nexport function taskHubPropertiesDeserializer(item: any): TaskHubProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n dashboardUrl: item[\"dashboardUrl\"],\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 /** The resource is being provisioned */\n Provisioning = \"Provisioning\",\n /** The resource is updating */\n Updating = \"Updating\",\n /** The resource is being deleted */\n Deleting = \"Deleting\",\n /** The resource create request has been accepted */\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 * **Provisioning**: The resource is being provisioned \\\n * **Updating**: The resource is updating \\\n * **Deleting**: The resource is being deleted \\\n * **Accepted**: The resource create request has been accepted\n */\nexport type ProvisioningState = 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 proxyResourceSerializer(item: ProxyResource): any {\n return item;\n}\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/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: Record<string, any>;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: !item[\"info\"] ? item[\"info\"] : _errorAdditionalInfoInfoDeserializer(item[\"info\"]),\n };\n}\n\n/** model interface _ErrorAdditionalInfoInfo */\nexport interface _ErrorAdditionalInfoInfo {}\n\nexport function _errorAdditionalInfoInfoDeserializer(item: any): _ErrorAdditionalInfoInfo {\n return item;\n}\n\n/** The response of a TaskHub list operation. */\nexport interface _TaskHubListResult {\n /** The TaskHub items on this page */\n value: TaskHub[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _taskHubListResultDeserializer(item: any): _TaskHubListResult {\n return {\n value: taskHubArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function taskHubArraySerializer(result: Array<TaskHub>): any[] {\n return result.map((item) => {\n return taskHubSerializer(item);\n });\n}\n\nexport function taskHubArrayDeserializer(result: Array<TaskHub>): any[] {\n return result.map((item) => {\n return taskHubDeserializer(item);\n });\n}\n\n/** A Durable Task Scheduler resource */\nexport interface Scheduler extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: SchedulerProperties;\n}\n\nexport function schedulerSerializer(item: Scheduler): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : schedulerPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function schedulerDeserializer(item: any): Scheduler {\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 : schedulerPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Details of the Scheduler */\nexport interface SchedulerProperties {\n /** The status of the last operation */\n readonly provisioningState?: ProvisioningState;\n /** URL of the durable task scheduler */\n readonly endpoint?: string;\n /** IP allow list for durable task scheduler. Values can be IPv4, IPv6 or CIDR */\n ipAllowlist: string[];\n /** SKU of the durable task scheduler */\n sku: SchedulerSku;\n}\n\nexport function schedulerPropertiesSerializer(item: SchedulerProperties): any {\n return {\n ipAllowlist: item[\"ipAllowlist\"].map((p: any) => {\n return p;\n }),\n sku: schedulerSkuSerializer(item[\"sku\"]),\n };\n}\n\nexport function schedulerPropertiesDeserializer(item: any): SchedulerProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n endpoint: item[\"endpoint\"],\n ipAllowlist: item[\"ipAllowlist\"].map((p: any) => {\n return p;\n }),\n sku: schedulerSkuDeserializer(item[\"sku\"]),\n };\n}\n\n/** The SKU (Stock Keeping Unit) assigned to this durable task scheduler */\nexport interface SchedulerSku {\n /** The name of the SKU */\n name: string;\n /** The SKU capacity. This allows scale out/in for the resource and impacts zone redundancy */\n capacity?: number;\n /** Indicates whether the current SKU configuration is zone redundant */\n readonly redundancyState?: RedundancyState;\n}\n\nexport function schedulerSkuSerializer(item: SchedulerSku): any {\n return { name: item[\"name\"], capacity: item[\"capacity\"] };\n}\n\nexport function schedulerSkuDeserializer(item: any): SchedulerSku {\n return {\n name: item[\"name\"],\n capacity: item[\"capacity\"],\n redundancyState: item[\"redundancyState\"],\n };\n}\n\n/** The state of the resource redundancy */\nexport enum KnownRedundancyState {\n /** The resource is not redundant */\n None = \"None\",\n /** The resource is zone redundant */\n Zone = \"Zone\",\n}\n\n/**\n * The state of the resource redundancy \\\n * {@link KnownRedundancyState} can be used interchangeably with RedundancyState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **None**: The resource is not redundant \\\n * **Zone**: The resource is zone redundant\n */\nexport type RedundancyState = 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 update request model for the Scheduler resource */\nexport interface SchedulerUpdate {\n /** The resource-specific properties for this resource. */\n properties?: SchedulerPropertiesUpdate;\n /** Resource tags. */\n tags?: Record<string, string>;\n}\n\nexport function schedulerUpdateSerializer(item: SchedulerUpdate): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : schedulerPropertiesUpdateSerializer(item[\"properties\"]),\n tags: item[\"tags\"],\n };\n}\n\n/** The Scheduler resource properties to be updated */\nexport interface SchedulerPropertiesUpdate {\n /** The status of the last operation */\n readonly provisioningState?: ProvisioningState;\n /** URL of the durable task scheduler */\n readonly endpoint?: string;\n /** IP allow list for durable task scheduler. Values can be IPv4, IPv6 or CIDR */\n ipAllowlist?: string[];\n /** SKU of the durable task scheduler */\n sku?: SchedulerSkuUpdate;\n}\n\nexport function schedulerPropertiesUpdateSerializer(item: SchedulerPropertiesUpdate): any {\n return {\n ipAllowlist: !item[\"ipAllowlist\"]\n ? item[\"ipAllowlist\"]\n : item[\"ipAllowlist\"].map((p: any) => {\n return p;\n }),\n sku: !item[\"sku\"] ? item[\"sku\"] : schedulerSkuUpdateSerializer(item[\"sku\"]),\n };\n}\n\n/** The SKU (Stock Keeping Unit) properties to be updated */\nexport interface SchedulerSkuUpdate {\n /** The name of the SKU */\n name?: string;\n /** The SKU capacity. This allows scale out/in for the resource and impacts zone redundancy */\n capacity?: number;\n /** Indicates whether the current SKU configuration is zone redundant */\n readonly redundancyState?: RedundancyState;\n}\n\nexport function schedulerSkuUpdateSerializer(item: SchedulerSkuUpdate): any {\n return { name: item[\"name\"], capacity: item[\"capacity\"] };\n}\n\n/** The response of a Scheduler list operation. */\nexport interface _SchedulerListResult {\n /** The Scheduler items on this page */\n value: Scheduler[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _schedulerListResultDeserializer(item: any): _SchedulerListResult {\n return {\n value: schedulerArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function schedulerArraySerializer(result: Array<Scheduler>): any[] {\n return result.map((item) => {\n return schedulerSerializer(item);\n });\n}\n\nexport function schedulerArrayDeserializer(result: Array<Scheduler>): any[] {\n return result.map((item) => {\n return schedulerDeserializer(item);\n });\n}\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 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 readonly 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/** API Versions */\nexport enum KnownVersions {\n /** 2024-10-01-preview */\n V20241001Preview = \"2024-10-01-preview\",\n}\n"]}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAUlC,4EAKC;AAED,gEAIC;AAgBD,sDAQC;AAcD,oEAOC;AA4CD,8DAIC;AAgBD,0DAUC;AAED,oEAIC;AAED,oFAIC;AAUD,0EAKC;AAQD,kDAQC;AAED,sDAcC;AAcD,sEAOC;AAED,0EASC;AA6CD,wDAEC;AAED,4DAMC;AA8CD,8DAEC;AAED,kEAWC;AAcD,gDAEC;AAED,oDASC;AAkBD,wDAWC;AAkCD,8DAOC;AAcD,kFASC;AAYD,oEAEC;AAUD,4EAKC;AAED,4DAIC;AAED,gEAIC;AAQD,8CAMC;AAED,kDAYC;AAUD,kEAEC;AAED,sEAKC;AAKD,0DAEC;AAED,8DASC;AAUD,wEAKC;AAED,wDAIC;AAED,4DAIC;AAQD,8DAMC;AAED,kEAYC;AAUD,kFAMC;AAED,sFAOC;AAED,sFAMC;AAED,0FAMC;AAUD,4EAKC;AAED,gFAKC;AAkCD,wFAKC;AAED,wEAI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AAoC;IACpC,yDAAqB,CAAA;AACvB,CAAC,EATW,gCAAgC,gDAAhC,gCAAgC,QAS3C;AAsBD,SAAgB,sCAAsC,CAAC,IAAS;IAC9D,OAAO;QACL,KAAK,EAAE,gCAAgC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtD,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,SAAgB,8BAA8B,CAAC,MAA8B;IAC3E,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,yBAAyB,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,gCAAgC,CAAC,MAA8B;IAC7E,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,2BAA2B,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;AACL,CAAC;AAED,mBAAmB;AACnB,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,iBAAiB;IACjB,yCAAwB,CAAA;AAC1B,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\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 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 readonly 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/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** A Durable Task Scheduler resource */\nexport interface Scheduler extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: SchedulerProperties;\n}\n\nexport function schedulerSerializer(item: Scheduler): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : schedulerPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function schedulerDeserializer(item: any): Scheduler {\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 : schedulerPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Details of the Scheduler */\nexport interface SchedulerProperties {\n /** The status of the last operation */\n readonly provisioningState?: ProvisioningState;\n /** URL of the durable task scheduler */\n readonly endpoint?: string;\n /** IP allow list for durable task scheduler. Values can be IPv4, IPv6 or CIDR */\n ipAllowlist: string[];\n /** SKU of the durable task scheduler */\n sku: SchedulerSku;\n}\n\nexport function schedulerPropertiesSerializer(item: SchedulerProperties): any {\n return {\n ipAllowlist: item[\"ipAllowlist\"].map((p: any) => {\n return p;\n }),\n sku: schedulerSkuSerializer(item[\"sku\"]),\n };\n}\n\nexport function schedulerPropertiesDeserializer(item: any): SchedulerProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n endpoint: item[\"endpoint\"],\n ipAllowlist: item[\"ipAllowlist\"].map((p: any) => {\n return p;\n }),\n sku: schedulerSkuDeserializer(item[\"sku\"]),\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 /** The resource is being provisioned */\n Provisioning = \"Provisioning\",\n /** The resource is updating */\n Updating = \"Updating\",\n /** The resource is being deleted */\n Deleting = \"Deleting\",\n /** The resource create request has been accepted */\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 * **Provisioning**: The resource is being provisioned \\\n * **Updating**: The resource is updating \\\n * **Deleting**: The resource is being deleted \\\n * **Accepted**: The resource create request has been accepted\n */\nexport type ProvisioningState = string;\n\n/** The SKU (Stock Keeping Unit) assigned to this durable task scheduler */\nexport interface SchedulerSku {\n /** The name of the SKU */\n name: SchedulerSkuName;\n /** The SKU capacity. This allows scale out/in for the resource and impacts zone redundancy */\n capacity?: number;\n /** Indicates whether the current SKU configuration is zone redundant */\n readonly redundancyState?: RedundancyState;\n}\n\nexport function schedulerSkuSerializer(item: SchedulerSku): any {\n return { name: item[\"name\"], capacity: item[\"capacity\"] };\n}\n\nexport function schedulerSkuDeserializer(item: any): SchedulerSku {\n return {\n name: item[\"name\"],\n capacity: item[\"capacity\"],\n redundancyState: item[\"redundancyState\"],\n };\n}\n\n/** The name of the Stock Keeping Unit (SKU) of a Durable Task Scheduler */\nexport enum KnownSchedulerSkuName {\n /** Dedicated SKU */\n Dedicated = \"Dedicated\",\n /** Consumption SKU */\n Consumption = \"Consumption\",\n}\n\n/**\n * The name of the Stock Keeping Unit (SKU) of a Durable Task Scheduler \\\n * {@link KnownSchedulerSkuName} can be used interchangeably with SchedulerSkuName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Dedicated**: Dedicated SKU \\\n * **Consumption**: Consumption SKU\n */\nexport type SchedulerSkuName = string;\n\n/** The state of the resource redundancy */\nexport enum KnownRedundancyState {\n /** The resource is not redundant */\n None = \"None\",\n /** The resource is zone redundant */\n Zone = \"Zone\",\n}\n\n/**\n * The state of the resource redundancy \\\n * {@link KnownRedundancyState} can be used interchangeably with RedundancyState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **None**: The resource is not redundant \\\n * **Zone**: The resource is zone redundant\n */\nexport type RedundancyState = 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/** 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 update request model for the Scheduler resource */\nexport interface SchedulerUpdate {\n /** The resource-specific properties for this resource. */\n properties?: SchedulerPropertiesUpdate;\n /** Resource tags. */\n tags?: Record<string, string>;\n}\n\nexport function schedulerUpdateSerializer(item: SchedulerUpdate): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : schedulerPropertiesUpdateSerializer(item[\"properties\"]),\n tags: item[\"tags\"],\n };\n}\n\n/** The Scheduler resource properties to be updated */\nexport interface SchedulerPropertiesUpdate {\n /** The status of the last operation */\n readonly provisioningState?: ProvisioningState;\n /** URL of the durable task scheduler */\n readonly endpoint?: string;\n /** IP allow list for durable task scheduler. Values can be IPv4, IPv6 or CIDR */\n ipAllowlist?: string[];\n /** SKU of the durable task scheduler */\n sku?: SchedulerSkuUpdate;\n}\n\nexport function schedulerPropertiesUpdateSerializer(item: SchedulerPropertiesUpdate): any {\n return {\n ipAllowlist: !item[\"ipAllowlist\"]\n ? item[\"ipAllowlist\"]\n : item[\"ipAllowlist\"].map((p: any) => {\n return p;\n }),\n sku: !item[\"sku\"] ? item[\"sku\"] : schedulerSkuUpdateSerializer(item[\"sku\"]),\n };\n}\n\n/** The SKU (Stock Keeping Unit) properties to be updated */\nexport interface SchedulerSkuUpdate {\n /** The name of the SKU */\n name?: SchedulerSkuName;\n /** The SKU capacity. This allows scale out/in for the resource and impacts zone redundancy */\n capacity?: number;\n /** Indicates whether the current SKU configuration is zone redundant */\n readonly redundancyState?: RedundancyState;\n}\n\nexport function schedulerSkuUpdateSerializer(item: SchedulerSkuUpdate): any {\n return { name: item[\"name\"], capacity: item[\"capacity\"] };\n}\n\n/** The response of a Scheduler list operation. */\nexport interface _SchedulerListResult {\n /** The Scheduler items on this page */\n value: Scheduler[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _schedulerListResultDeserializer(item: any): _SchedulerListResult {\n return {\n value: schedulerArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function schedulerArraySerializer(result: Array<Scheduler>): any[] {\n return result.map((item) => {\n return schedulerSerializer(item);\n });\n}\n\nexport function schedulerArrayDeserializer(result: Array<Scheduler>): any[] {\n return result.map((item) => {\n return schedulerDeserializer(item);\n });\n}\n\n/** A Task Hub resource belonging to the scheduler */\nexport interface TaskHub extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: TaskHubProperties;\n}\n\nexport function taskHubSerializer(item: TaskHub): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : taskHubPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function taskHubDeserializer(item: any): TaskHub {\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 : taskHubPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The properties of Task Hub */\nexport interface TaskHubProperties {\n /** The status of the last operation */\n readonly provisioningState?: ProvisioningState;\n /** URL of the durable task scheduler dashboard */\n readonly dashboardUrl?: string;\n}\n\nexport function taskHubPropertiesSerializer(item: TaskHubProperties): any {\n return item;\n}\n\nexport function taskHubPropertiesDeserializer(item: any): TaskHubProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n dashboardUrl: item[\"dashboardUrl\"],\n };\n}\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 proxyResourceSerializer(item: ProxyResource): any {\n return item;\n}\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/** The response of a TaskHub list operation. */\nexport interface _TaskHubListResult {\n /** The TaskHub items on this page */\n value: TaskHub[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _taskHubListResultDeserializer(item: any): _TaskHubListResult {\n return {\n value: taskHubArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function taskHubArraySerializer(result: Array<TaskHub>): any[] {\n return result.map((item) => {\n return taskHubSerializer(item);\n });\n}\n\nexport function taskHubArrayDeserializer(result: Array<TaskHub>): any[] {\n return result.map((item) => {\n return taskHubDeserializer(item);\n });\n}\n\n/** A retention policy resource belonging to the scheduler */\nexport interface RetentionPolicy extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: RetentionPolicyProperties;\n}\n\nexport function retentionPolicySerializer(item: RetentionPolicy): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : retentionPolicyPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function retentionPolicyDeserializer(item: any): RetentionPolicy {\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 : retentionPolicyPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The retention policy settings for the resource */\nexport interface RetentionPolicyProperties {\n /** The status of the last operation */\n readonly provisioningState?: ProvisioningState;\n /** The orchestration retention policies */\n retentionPolicies?: RetentionPolicyDetails[];\n}\n\nexport function retentionPolicyPropertiesSerializer(item: RetentionPolicyProperties): any {\n return {\n retentionPolicies: !item[\"retentionPolicies\"]\n ? item[\"retentionPolicies\"]\n : retentionPolicyDetailsArraySerializer(item[\"retentionPolicies\"]),\n };\n}\n\nexport function retentionPolicyPropertiesDeserializer(item: any): RetentionPolicyProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n retentionPolicies: !item[\"retentionPolicies\"]\n ? item[\"retentionPolicies\"]\n : retentionPolicyDetailsArrayDeserializer(item[\"retentionPolicies\"]),\n };\n}\n\nexport function retentionPolicyDetailsArraySerializer(\n result: Array<RetentionPolicyDetails>,\n): any[] {\n return result.map((item) => {\n return retentionPolicyDetailsSerializer(item);\n });\n}\n\nexport function retentionPolicyDetailsArrayDeserializer(\n result: Array<RetentionPolicyDetails>,\n): any[] {\n return result.map((item) => {\n return retentionPolicyDetailsDeserializer(item);\n });\n}\n\n/** The properties of a retention policy */\nexport interface RetentionPolicyDetails {\n /** The retention period in days after which the orchestration will be purged automatically */\n retentionPeriodInDays: number;\n /** The orchestration state to which this policy applies. If omitted, the policy applies to all purgeable orchestration states. */\n orchestrationState?: PurgeableOrchestrationState;\n}\n\nexport function retentionPolicyDetailsSerializer(item: RetentionPolicyDetails): any {\n return {\n retentionPeriodInDays: item[\"retentionPeriodInDays\"],\n orchestrationState: item[\"orchestrationState\"],\n };\n}\n\nexport function retentionPolicyDetailsDeserializer(item: any): RetentionPolicyDetails {\n return {\n retentionPeriodInDays: item[\"retentionPeriodInDays\"],\n orchestrationState: item[\"orchestrationState\"],\n };\n}\n\n/** Purgeable orchestration state to be used in retention policies */\nexport enum KnownPurgeableOrchestrationState {\n /** The orchestration is completed */\n Completed = \"Completed\",\n /** The orchestration is failed */\n Failed = \"Failed\",\n /** The orchestration is terminated */\n Terminated = \"Terminated\",\n /** The orchestration is canceled */\n Canceled = \"Canceled\",\n}\n\n/**\n * Purgeable orchestration state to be used in retention policies \\\n * {@link KnownPurgeableOrchestrationState} can be used interchangeably with PurgeableOrchestrationState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Completed**: The orchestration is completed \\\n * **Failed**: The orchestration is failed \\\n * **Terminated**: The orchestration is terminated \\\n * **Canceled**: The orchestration is canceled\n */\nexport type PurgeableOrchestrationState = string;\n\n/** The response of a RetentionPolicy list operation. */\nexport interface _RetentionPolicyListResult {\n /** The RetentionPolicy items on this page */\n value: RetentionPolicy[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _retentionPolicyListResultDeserializer(item: any): _RetentionPolicyListResult {\n return {\n value: retentionPolicyArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function retentionPolicyArraySerializer(result: Array<RetentionPolicy>): any[] {\n return result.map((item) => {\n return retentionPolicySerializer(item);\n });\n}\n\nexport function retentionPolicyArrayDeserializer(result: Array<RetentionPolicy>): any[] {\n return result.map((item) => {\n return retentionPolicyDeserializer(item);\n });\n}\n\n/** API Versions */\nexport enum KnownVersions {\n /** 2025-11-01 */\n V20251101 = \"2025-11-01\",\n}\n"]}
@@ -1,7 +1,7 @@
1
- import { DurableTaskClient } from "./durableTaskClient.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";
1
+ import type { DurableTaskClient } from "./durableTaskClient.js";
2
+ import type { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client";
3
+ import type { AbortSignalLike } from "@azure/abort-controller";
4
+ import type { PollerLike, OperationState } from "@azure/core-lro";
5
5
  export interface RestorePollerOptions<TResult, TResponse extends PathUncheckedResponse = PathUncheckedResponse> extends OperationOptions {
6
6
  /** Delay to wait until next poll, in milliseconds. */
7
7
  updateIntervalInMs?: number;
@@ -3,8 +3,9 @@
3
3
  // Licensed under the MIT License.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.restorePoller = restorePoller;
6
- const operations_js_1 = require("./api/taskHubs/operations.js");
7
- const operations_js_2 = require("./api/schedulers/operations.js");
6
+ const operations_js_1 = require("./api/retentionPolicies/operations.js");
7
+ const operations_js_2 = require("./api/taskHubs/operations.js");
8
+ const operations_js_3 = require("./api/schedulers/operations.js");
8
9
  const pollingHelpers_js_1 = require("./static-helpers/pollingHelpers.js");
9
10
  const core_lro_1 = require("@azure/core-lro");
10
11
  /**
@@ -13,47 +14,57 @@ const core_lro_1 = require("@azure/core-lro");
13
14
  * needs to be constructed after the original one is not in scope.
14
15
  */
15
16
  function restorePoller(client, serializedState, sourceOperation, options) {
16
- var _a, _b, _c;
17
17
  const pollerConfig = (0, core_lro_1.deserializeState)(serializedState).config;
18
18
  const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
19
19
  if (!initialRequestUrl || !requestMethod) {
20
- throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}`);
20
+ throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`);
21
21
  }
22
- const resourceLocationConfig = metadata === null || metadata === void 0 ? void 0 : metadata["resourceLocationConfig"];
23
- const { deserializer, expectedStatuses = [] } = (_a = getDeserializationHelper(initialRequestUrl, requestMethod)) !== null && _a !== void 0 ? _a : {};
24
- const deserializeHelper = (_b = options === null || options === void 0 ? void 0 : options.processResponseBody) !== null && _b !== void 0 ? _b : deserializer;
22
+ const resourceLocationConfig = metadata?.["resourceLocationConfig"];
23
+ const { deserializer, expectedStatuses = [] } = getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};
24
+ const deserializeHelper = options?.processResponseBody ?? deserializer;
25
25
  if (!deserializeHelper) {
26
- throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}.`);
26
+ throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`);
27
27
  }
28
- return (0, pollingHelpers_js_1.getLongRunningPoller)((_c = client["_client"]) !== null && _c !== void 0 ? _c : client, deserializeHelper, expectedStatuses, {
29
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
30
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
28
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(client["_client"] ?? client, deserializeHelper, expectedStatuses, {
29
+ updateIntervalInMs: options?.updateIntervalInMs,
30
+ abortSignal: options?.abortSignal,
31
31
  resourceLocationConfig,
32
32
  restoreFrom: serializedState,
33
33
  initialRequestUrl,
34
34
  });
35
35
  }
36
36
  const deserializeMap = {
37
- "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs/{taskHubName}": {
37
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/retentionPolicies/default": {
38
38
  deserializer: operations_js_1._$deleteDeserialize,
39
39
  expectedStatuses: ["202", "204", "200"],
40
40
  },
41
+ "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/retentionPolicies/default": { deserializer: operations_js_1._updateDeserialize, expectedStatuses: ["200", "202"] },
42
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/retentionPolicies/default": {
43
+ deserializer: operations_js_1._createOrReplaceDeserialize,
44
+ expectedStatuses: ["200", "201", "202"],
45
+ },
46
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs/{taskHubName}": {
47
+ deserializer: operations_js_2._$deleteDeserialize,
48
+ expectedStatuses: ["202", "204", "200"],
49
+ },
41
50
  "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs/{taskHubName}": {
42
- deserializer: operations_js_1._createOrUpdateDeserialize,
43
- expectedStatuses: ["200", "201"],
51
+ deserializer: operations_js_2._createOrUpdateDeserialize,
52
+ expectedStatuses: ["200", "201", "202"],
44
53
  },
45
54
  "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}": {
46
- deserializer: operations_js_2._$deleteDeserialize,
55
+ deserializer: operations_js_3._$deleteDeserialize,
47
56
  expectedStatuses: ["202", "204", "200"],
48
57
  },
49
- "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}": { deserializer: operations_js_2._updateDeserialize, expectedStatuses: ["200", "202"] },
58
+ "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}": {
59
+ deserializer: operations_js_3._updateDeserialize,
60
+ expectedStatuses: ["200", "202"],
61
+ },
50
62
  "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}": {
51
- deserializer: operations_js_2._createOrUpdateDeserialize,
52
- expectedStatuses: ["200", "201"],
63
+ deserializer: operations_js_3._createOrUpdateDeserialize,
64
+ expectedStatuses: ["200", "201", "202"],
53
65
  },
54
66
  };
55
67
  function getDeserializationHelper(urlStr, method) {
56
- var _a, _b, _c, _d;
57
68
  const path = new URL(urlStr).pathname;
58
69
  const pathParts = path.split("/");
59
70
  // Traverse list to match the longest candidate
@@ -73,13 +84,13 @@ function getDeserializationHelper(urlStr, method) {
73
84
  // track if we have found a match to return the values found.
74
85
  let found = true;
75
86
  for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
76
- if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
77
- const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
87
+ if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) {
88
+ const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length;
78
89
  // If the current part of the candidate is a "template" part
79
90
  // Try to use the suffix of pattern to match the path
80
91
  // {guid} ==> $
81
92
  // {guid}:export ==> :export$
82
- const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
93
+ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || "");
83
94
  if (!isMatched) {
84
95
  found = false;
85
96
  break;
@@ -1 +1 @@
1
- {"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAsClC,sCAoCC;AAvED,gEAA+F;AAC/F,kEAIwC;AACxC,0EAA0E;AAG1E,8CAKyB;AAgBzB;;;;GAIG;AACH,SAAgB,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AG,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 { DurableTaskClient } from \"./durableTaskClient.js\";\nimport { _$deleteDeserialize, _createOrUpdateDeserialize } from \"./api/taskHubs/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeSchedulers,\n _updateDeserialize,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeSchedulers,\n} from \"./api/schedulers/operations.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: DurableTaskClient,\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 \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs/{taskHubName}\":\n {\n deserializer: _$deleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs/{taskHubName}\":\n {\n deserializer: _createOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}\":\n {\n deserializer: _$deleteDeserializeSchedulers,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}\":\n { deserializer: _updateDeserialize, expectedStatuses: [\"200\", \"202\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}\":\n {\n deserializer: _createOrUpdateDeserializeSchedulers,\n expectedStatuses: [\"200\", \"201\"],\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"]}
1
+ {"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA0ClC,sCAoCC;AA3ED,yEAI+C;AAC/C,gEAGsC;AACtC,kEAIwC;AACxC,0EAA0E;AAI1E,8CAAmD;AAgBnD;;;;GAIG;AACH,SAAgB,aAAa,CAC3B,MAAyB,EACzB,eAAuB,EACvB,eAAiF,EACjF,OAAuC;IAEvC,MAAM,YAAY,GAAG,IAAA,2BAAgB,EAAC,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,IAAI,KAAK,CACb,0FAA0F,eAAe,EAAE,IAAI,GAAG,CACnH,CAAC;IACJ,CAAC;IACD,OAAO,IAAA,wCAAoB,EACxB,MAAc,CAAC,SAAS,CAAC,IAAI,MAAM,EACpC,iBAA4D,EAC5D,gBAAgB,EAChB;QACE,kBAAkB,EAAE,OAAO,EAAE,kBAAkB;QAC/C,WAAW,EAAE,OAAO,EAAE,WAAW;QACjC,sBAAsB;QAC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I,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 type { DurableTaskClient } from \"./durableTaskClient.js\";\nimport {\n _$deleteDeserialize,\n _updateDeserialize,\n _createOrReplaceDeserialize,\n} from \"./api/retentionPolicies/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeTaskHubs,\n _createOrUpdateDeserialize,\n} from \"./api/taskHubs/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeSchedulers,\n _updateDeserialize as _updateDeserializeSchedulers,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeSchedulers,\n} from \"./api/schedulers/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport type { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { PollerLike, OperationState, ResourceLocationConfig } from \"@azure/core-lro\";\nimport { deserializeState } 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: DurableTaskClient,\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 // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type\n deserializer: Function;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/retentionPolicies/default\":\n {\n deserializer: _$deleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/retentionPolicies/default\":\n { deserializer: _updateDeserialize, expectedStatuses: [\"200\", \"202\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/retentionPolicies/default\":\n {\n deserializer: _createOrReplaceDeserialize,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs/{taskHubName}\":\n {\n deserializer: _$deleteDeserializeTaskHubs,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs/{taskHubName}\":\n {\n deserializer: _createOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}\":\n {\n deserializer: _$deleteDeserializeSchedulers,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}\":\n {\n deserializer: _updateDeserializeSchedulers,\n expectedStatuses: [\"200\", \"202\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}\":\n {\n deserializer: _createOrUpdateDeserializeSchedulers,\n expectedStatuses: [\"200\", \"201\", \"202\"],\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,22 @@
1
+ /**
2
+ * An enum to describe Azure Cloud environments.
3
+ * @enum {string}
4
+ */
5
+ export declare enum AzureClouds {
6
+ /** Azure public cloud, which is the default cloud for Azure SDKs. */
7
+ AZURE_PUBLIC_CLOUD = "AZURE_PUBLIC_CLOUD",
8
+ /** Azure China cloud */
9
+ AZURE_CHINA_CLOUD = "AZURE_CHINA_CLOUD",
10
+ /** Azure US government cloud */
11
+ AZURE_US_GOVERNMENT = "AZURE_US_GOVERNMENT"
12
+ }
13
+ /** The supported values for cloud setting as a string literal type */
14
+ export type AzureSupportedClouds = `${AzureClouds}`;
15
+ /**
16
+ * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
17
+ * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
18
+ * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
19
+ * @throws {Error} Throws an error if an unknown cloud setting is provided.
20
+ */
21
+ export declare function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined;
22
+ //# sourceMappingURL=cloudSettingHelpers.d.ts.map
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.AzureClouds = void 0;
6
+ exports.getArmEndpoint = getArmEndpoint;
7
+ /**
8
+ * An enum to describe Azure Cloud environments.
9
+ * @enum {string}
10
+ */
11
+ var AzureClouds;
12
+ (function (AzureClouds) {
13
+ /** Azure public cloud, which is the default cloud for Azure SDKs. */
14
+ AzureClouds["AZURE_PUBLIC_CLOUD"] = "AZURE_PUBLIC_CLOUD";
15
+ /** Azure China cloud */
16
+ AzureClouds["AZURE_CHINA_CLOUD"] = "AZURE_CHINA_CLOUD";
17
+ /** Azure US government cloud */
18
+ AzureClouds["AZURE_US_GOVERNMENT"] = "AZURE_US_GOVERNMENT";
19
+ })(AzureClouds || (exports.AzureClouds = AzureClouds = {}));
20
+ /**
21
+ * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
22
+ * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
23
+ * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
24
+ * @throws {Error} Throws an error if an unknown cloud setting is provided.
25
+ */
26
+ function getArmEndpoint(cloudSetting) {
27
+ if (cloudSetting === undefined) {
28
+ return undefined;
29
+ }
30
+ const cloudEndpoints = {
31
+ AZURE_CHINA_CLOUD: "https://management.chinacloudapi.cn/",
32
+ AZURE_US_GOVERNMENT: "https://management.usgovcloudapi.net/",
33
+ AZURE_PUBLIC_CLOUD: "https://management.azure.com/",
34
+ };
35
+ if (cloudSetting in cloudEndpoints) {
36
+ return cloudEndpoints[cloudSetting];
37
+ }
38
+ else {
39
+ throw new Error(`Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`);
40
+ }
41
+ }
42
+ //# sourceMappingURL=cloudSettingHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloudSettingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/cloudSettingHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAwBlC,wCAgBC;AAtCD;;;GAGG;AACH,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,qEAAqE;IACrE,wDAAyC,CAAA;IACzC,wBAAwB;IACxB,sDAAuC,CAAA;IACvC,gCAAgC;IAChC,0DAA2C,CAAA;AAC7C,CAAC,EAPW,WAAW,2BAAX,WAAW,QAOtB;AAKD;;;;;GAKG;AACH,SAAgB,cAAc,CAAC,YAAmC;IAChE,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,cAAc,GAA6C;QAC/D,iBAAiB,EAAE,sCAAsC;QACzD,mBAAmB,EAAE,uCAAuC;QAC5D,kBAAkB,EAAE,+BAA+B;KACpD,CAAC;IACF,IAAI,YAAY,IAAI,cAAc,EAAE,CAAC;QACnC,OAAO,cAAc,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CACb,0BAA0B,YAAY,6DAA6D,CACpG,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * An enum to describe Azure Cloud environments.\n * @enum {string}\n */\nexport enum AzureClouds {\n /** Azure public cloud, which is the default cloud for Azure SDKs. */\n AZURE_PUBLIC_CLOUD = \"AZURE_PUBLIC_CLOUD\",\n /** Azure China cloud */\n AZURE_CHINA_CLOUD = \"AZURE_CHINA_CLOUD\",\n /** Azure US government cloud */\n AZURE_US_GOVERNMENT = \"AZURE_US_GOVERNMENT\",\n}\n\n/** The supported values for cloud setting as a string literal type */\nexport type AzureSupportedClouds = `${AzureClouds}`;\n\n/**\n * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.\n * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.\n * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.\n * @throws {Error} Throws an error if an unknown cloud setting is provided.\n */\nexport function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined {\n if (cloudSetting === undefined) {\n return undefined;\n }\n const cloudEndpoints: Record<keyof typeof AzureClouds, string> = {\n AZURE_CHINA_CLOUD: \"https://management.chinacloudapi.cn/\",\n AZURE_US_GOVERNMENT: \"https://management.usgovcloudapi.net/\",\n AZURE_PUBLIC_CLOUD: \"https://management.azure.com/\",\n };\n if (cloudSetting in cloudEndpoints) {\n return cloudEndpoints[cloudSetting];\n } else {\n throw new Error(\n `Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`,\n );\n }\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
1
+ import type { Client, PathUncheckedResponse } from "@azure-rest/core-client";
2
2
  /**
3
3
  * Options for the byPage method
4
4
  */
@@ -3,16 +3,14 @@
3
3
  // Licensed under the MIT License.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.buildPagedAsyncIterator = buildPagedAsyncIterator;
6
- const tslib_1 = require("tslib");
7
6
  const core_client_1 = require("@azure-rest/core-client");
8
7
  const core_rest_pipeline_1 = require("@azure/core-rest-pipeline");
9
8
  /**
10
9
  * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
11
10
  */
12
11
  function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, expectedStatuses, options = {}) {
13
- var _a, _b;
14
- const itemName = (_a = options.itemName) !== null && _a !== void 0 ? _a : "value";
15
- const nextLinkName = (_b = options.nextLinkName) !== null && _b !== void 0 ? _b : "nextLink";
12
+ const itemName = options.itemName ?? "value";
13
+ const nextLinkName = options.nextLinkName ?? "nextLink";
16
14
  const pagedResult = {
17
15
  getPage: async (pageLink) => {
18
16
  const result = pageLink === undefined
@@ -28,7 +26,7 @@ function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody
28
26
  };
29
27
  },
30
28
  byPage: (settings) => {
31
- const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
29
+ const { continuationToken } = settings ?? {};
32
30
  return getPageAsyncIterator(pagedResult, {
33
31
  pageLink: continuationToken,
34
32
  });
@@ -44,7 +42,6 @@ function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody
44
42
  * @returns a paged async iterator that iterates over results.
45
43
  */
46
44
  function getPagedAsyncIterator(pagedResult) {
47
- var _a;
48
45
  const iter = getItemAsyncIterator(pagedResult);
49
46
  return {
50
47
  next() {
@@ -53,55 +50,39 @@ function getPagedAsyncIterator(pagedResult) {
53
50
  [Symbol.asyncIterator]() {
54
51
  return this;
55
52
  },
56
- byPage: (_a = pagedResult === null || pagedResult === void 0 ? void 0 : pagedResult.byPage) !== null && _a !== void 0 ? _a : ((settings) => {
57
- const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
58
- return getPageAsyncIterator(pagedResult, {
59
- pageLink: continuationToken,
60
- });
61
- }),
53
+ byPage: pagedResult?.byPage ??
54
+ ((settings) => {
55
+ const { continuationToken } = settings ?? {};
56
+ return getPageAsyncIterator(pagedResult, {
57
+ pageLink: continuationToken,
58
+ });
59
+ }),
62
60
  };
63
61
  }
64
- function getItemAsyncIterator(pagedResult) {
65
- return tslib_1.__asyncGenerator(this, arguments, function* getItemAsyncIterator_1() {
66
- var _a, e_1, _b, _c;
67
- const pages = getPageAsyncIterator(pagedResult);
68
- try {
69
- for (var _d = true, pages_1 = tslib_1.__asyncValues(pages), pages_1_1; pages_1_1 = yield tslib_1.__await(pages_1.next()), _a = pages_1_1.done, !_a; _d = true) {
70
- _c = pages_1_1.value;
71
- _d = false;
72
- const page = _c;
73
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
74
- }
75
- }
76
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
77
- finally {
78
- try {
79
- if (!_d && !_a && (_b = pages_1.return)) yield tslib_1.__await(_b.call(pages_1));
80
- }
81
- finally { if (e_1) throw e_1.error; }
82
- }
83
- });
62
+ async function* getItemAsyncIterator(pagedResult) {
63
+ const pages = getPageAsyncIterator(pagedResult);
64
+ for await (const page of pages) {
65
+ yield* page;
66
+ }
84
67
  }
85
- function getPageAsyncIterator(pagedResult_1) {
86
- return tslib_1.__asyncGenerator(this, arguments, function* getPageAsyncIterator_1(pagedResult, options = {}) {
87
- const { pageLink } = options;
88
- let response = yield tslib_1.__await(pagedResult.getPage(pageLink !== null && pageLink !== void 0 ? pageLink : pagedResult.firstPageLink));
68
+ async function* getPageAsyncIterator(pagedResult, options = {}) {
69
+ const { pageLink } = options;
70
+ let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);
71
+ if (!response) {
72
+ return;
73
+ }
74
+ let result = response.page;
75
+ result.continuationToken = response.nextPageLink;
76
+ yield result;
77
+ while (response.nextPageLink) {
78
+ response = await pagedResult.getPage(response.nextPageLink);
89
79
  if (!response) {
90
- return yield tslib_1.__await(void 0);
80
+ return;
91
81
  }
92
- let result = response.page;
82
+ result = response.page;
93
83
  result.continuationToken = response.nextPageLink;
94
- yield yield tslib_1.__await(result);
95
- while (response.nextPageLink) {
96
- response = yield tslib_1.__await(pagedResult.getPage(response.nextPageLink));
97
- if (!response) {
98
- return yield tslib_1.__await(void 0);
99
- }
100
- result = response.page;
101
- result.continuationToken = response.nextPageLink;
102
- yield yield tslib_1.__await(result);
103
- }
104
- });
84
+ yield result;
85
+ }
105
86
  }
106
87
  /**
107
88
  * Gets for the value of nextLink in the body
@@ -127,7 +108,7 @@ function getElements(body, itemName) {
127
108
  if (!Array.isArray(value)) {
128
109
  throw new core_rest_pipeline_1.RestError(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
129
110
  }
130
- return value !== null && value !== void 0 ? value : [];
111
+ return value ?? [];
131
112
  }
132
113
  /**
133
114
  * Checks if a request failed