@thestarware/atlascli-jira 1.2.2 → 1.2.4

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 (481) hide show
  1. package/lib/commands/announcement-banner/get.js +1 -1
  2. package/lib/commands/announcement-banner/update.js +1 -1
  3. package/lib/commands/application-role/get-all.js +2 -2
  4. package/lib/commands/application-role/get.js +1 -1
  5. package/lib/commands/application-role/update.js +1 -1
  6. package/lib/commands/attachment/add.js +1 -1
  7. package/lib/commands/attachment/delete.js +1 -1
  8. package/lib/commands/attachment/get-content.js +1 -1
  9. package/lib/commands/attachment/get-jira-settings.js +1 -1
  10. package/lib/commands/attachment/get-metadata-for-zip.js +1 -1
  11. package/lib/commands/attachment/get-metadata.js +1 -1
  12. package/lib/commands/attachment/get-thumbnails.js +1 -1
  13. package/lib/commands/audit-record/get-associated.js +1 -1
  14. package/lib/commands/audit-record/get-changed.js +1 -1
  15. package/lib/commands/avatar/delete-universal-avatar.js +1 -1
  16. package/lib/commands/avatar/delete-user-avatar.js +1 -1
  17. package/lib/commands/avatar/get-all-user-avatar.js +1 -1
  18. package/lib/commands/avatar/get-image-by-id.js +1 -1
  19. package/lib/commands/avatar/get-image-by-owner.js +1 -1
  20. package/lib/commands/avatar/get-image-by-type.js +1 -1
  21. package/lib/commands/avatar/get-system-avatars.js +1 -1
  22. package/lib/commands/avatar/get-universal-avatars.js +1 -1
  23. package/lib/commands/avatar/set-user-avatar.js +1 -1
  24. package/lib/commands/avatar/upload-universal-avatar.js +1 -1
  25. package/lib/commands/avatar/upload-user-avatar.js +1 -1
  26. package/lib/commands/comment/add.js +1 -1
  27. package/lib/commands/comment/delete.js +1 -1
  28. package/lib/commands/comment/get-for-issue.js +1 -1
  29. package/lib/commands/comment/get-with-ids.js +1 -1
  30. package/lib/commands/comment/get.js +1 -1
  31. package/lib/commands/comment/update.js +1 -1
  32. package/lib/commands/comment-property/delete-property.js +1 -1
  33. package/lib/commands/comment-property/get-property-keys.js +1 -1
  34. package/lib/commands/comment-property/get-property.js +1 -1
  35. package/lib/commands/comment-property/set-property.js +1 -1
  36. package/lib/commands/config/add.js +1 -1
  37. package/lib/commands/config/delete.js +1 -1
  38. package/lib/commands/config/get-default.js +1 -1
  39. package/lib/commands/config/list.js +1 -1
  40. package/lib/commands/config/set-default.js +1 -1
  41. package/lib/commands/dashboard/add-edit-permission.js +1 -1
  42. package/lib/commands/dashboard/add-share-permission.js +1 -1
  43. package/lib/commands/dashboard/copy.js +1 -1
  44. package/lib/commands/dashboard/create.js +1 -1
  45. package/lib/commands/dashboard/delete.js +1 -1
  46. package/lib/commands/dashboard/get-all.js +1 -1
  47. package/lib/commands/dashboard/get-permissions.js +1 -1
  48. package/lib/commands/dashboard/get.js +1 -1
  49. package/lib/commands/dashboard/search.js +1 -1
  50. package/lib/commands/dashboard/update.js +1 -1
  51. package/lib/commands/dashboard-gadget/add.js +1 -1
  52. package/lib/commands/dashboard-gadget/get-availables.js +1 -1
  53. package/lib/commands/dashboard-gadget/remove.js +1 -1
  54. package/lib/commands/dashboard-gadget/search.js +1 -1
  55. package/lib/commands/dashboard-gadget/update.js +1 -1
  56. package/lib/commands/dashboard-item-property/delete.js +1 -1
  57. package/lib/commands/dashboard-item-property/get-keys.js +1 -1
  58. package/lib/commands/dashboard-item-property/get.js +1 -1
  59. package/lib/commands/dashboard-item-property/set.js +1 -1
  60. package/lib/commands/filter/add-favourite.js +1 -1
  61. package/lib/commands/filter/change-owner.js +1 -1
  62. package/lib/commands/filter/create.js +1 -1
  63. package/lib/commands/filter/delete.js +1 -1
  64. package/lib/commands/filter/get-columns.js +1 -1
  65. package/lib/commands/filter/get-details.js +1 -1
  66. package/lib/commands/filter/get-favourites.js +1 -1
  67. package/lib/commands/filter/get-my.js +1 -1
  68. package/lib/commands/filter/get.js +1 -1
  69. package/lib/commands/filter/remove-favourite.js +1 -1
  70. package/lib/commands/filter/reset-columns.js +1 -1
  71. package/lib/commands/filter/search.js +1 -1
  72. package/lib/commands/filter/set-columns.js +1 -1
  73. package/lib/commands/filter/update.js +1 -1
  74. package/lib/commands/filter-sharing/add-edit-permission.js +1 -1
  75. package/lib/commands/filter-sharing/add-share-permission.js +1 -1
  76. package/lib/commands/filter-sharing/delete-permission.js +1 -1
  77. package/lib/commands/filter-sharing/get-default-scope.js +1 -1
  78. package/lib/commands/filter-sharing/get-edit-permissions.js +1 -1
  79. package/lib/commands/filter-sharing/get-permission.js +1 -1
  80. package/lib/commands/filter-sharing/get-share-permissions.js +1 -1
  81. package/lib/commands/filter-sharing/set-default-scope.js +1 -1
  82. package/lib/commands/group/add-user.js +1 -1
  83. package/lib/commands/group/create.js +1 -1
  84. package/lib/commands/group/find-groups.js +1 -1
  85. package/lib/commands/group/get-all.js +1 -1
  86. package/lib/commands/group/get-users.js +1 -1
  87. package/lib/commands/group/get.js +1 -1
  88. package/lib/commands/group/remove-user.js +1 -1
  89. package/lib/commands/group/remove.js +1 -1
  90. package/lib/commands/group-and-user-picker/find-groups.js +1 -1
  91. package/lib/commands/group-and-user-picker/find-users.js +1 -1
  92. package/lib/commands/issue/archive.js +1 -1
  93. package/lib/commands/issue/assign.js +1 -1
  94. package/lib/commands/issue/create.js +1 -1
  95. package/lib/commands/issue/delete.js +1 -1
  96. package/lib/commands/issue/edit.js +1 -1
  97. package/lib/commands/issue/get-changelogs.js +1 -1
  98. package/lib/commands/issue/get-create-metadata.js +1 -1
  99. package/lib/commands/issue/get-edit-metadata.js +1 -1
  100. package/lib/commands/issue/get-events.js +1 -1
  101. package/lib/commands/issue/get-transitions.js +1 -1
  102. package/lib/commands/issue/get.js +1 -1
  103. package/lib/commands/issue/restore.js +1 -1
  104. package/lib/commands/issue/send-notifications.js +1 -1
  105. package/lib/commands/issue/transition.js +1 -1
  106. package/lib/commands/issue-field/create.js +1 -1
  107. package/lib/commands/issue-field/delete.js +1 -1
  108. package/lib/commands/issue-field/get-all.js +1 -1
  109. package/lib/commands/issue-field/move-trash.js +1 -1
  110. package/lib/commands/issue-field/restore-trash.js +1 -1
  111. package/lib/commands/issue-field/search-trash.js +1 -1
  112. package/lib/commands/issue-field/search.js +1 -1
  113. package/lib/commands/issue-field/update.js +1 -1
  114. package/lib/commands/issue-field-configuration/assign-issue-type.js +1 -1
  115. package/lib/commands/issue-field-configuration/assign-scheme-to-project.js +1 -1
  116. package/lib/commands/issue-field-configuration/create-scheme.js +1 -1
  117. package/lib/commands/issue-field-configuration/create.js +1 -1
  118. package/lib/commands/issue-field-configuration/delete-scheme.js +1 -1
  119. package/lib/commands/issue-field-configuration/delete.js +1 -1
  120. package/lib/commands/issue-field-configuration/get-all-issue-type-items.js +1 -1
  121. package/lib/commands/issue-field-configuration/get-all-schemes.js +1 -1
  122. package/lib/commands/issue-field-configuration/get-all.js +1 -1
  123. package/lib/commands/issue-field-configuration/get-items.js +1 -1
  124. package/lib/commands/issue-field-configuration/get-project-schemes.js +1 -1
  125. package/lib/commands/issue-field-configuration/remove-issue-types.js +1 -1
  126. package/lib/commands/issue-field-configuration/update-items.js +1 -1
  127. package/lib/commands/issue-field-configuration/update-scheme.js +1 -1
  128. package/lib/commands/issue-field-configuration/update.js +1 -1
  129. package/lib/commands/issue-field-context/add-issue-types.js +1 -1
  130. package/lib/commands/issue-field-context/assign-to-projects.js +1 -1
  131. package/lib/commands/issue-field-context/create.js +1 -1
  132. package/lib/commands/issue-field-context/delete.js +1 -1
  133. package/lib/commands/issue-field-context/get-all.js +1 -1
  134. package/lib/commands/issue-field-context/get-contexts-for-projects-and-issue-types.js +1 -1
  135. package/lib/commands/issue-field-context/get-default-values.js +1 -1
  136. package/lib/commands/issue-field-context/get-issue-types.js +1 -1
  137. package/lib/commands/issue-field-context/get-project-mappings.js +1 -1
  138. package/lib/commands/issue-field-context/remove-from-projects.js +1 -1
  139. package/lib/commands/issue-field-context/remove-issue-types.js +1 -1
  140. package/lib/commands/issue-field-context/set-default-values.js +1 -1
  141. package/lib/commands/issue-field-context/update.js +1 -1
  142. package/lib/commands/issue-field-option/create-for-context.js +1 -1
  143. package/lib/commands/issue-field-option/delete-for-context.js +1 -1
  144. package/lib/commands/issue-field-option/get-for-context.js +1 -1
  145. package/lib/commands/issue-field-option/get.js +1 -1
  146. package/lib/commands/issue-field-option/reorder-for-context.js +1 -1
  147. package/lib/commands/issue-field-option/update-for-context.js +1 -1
  148. package/lib/commands/issue-link/create.js +1 -1
  149. package/lib/commands/issue-link/delete.js +1 -1
  150. package/lib/commands/issue-link/get.js +1 -1
  151. package/lib/commands/issue-link-type/create.js +1 -1
  152. package/lib/commands/issue-link-type/delete.js +1 -1
  153. package/lib/commands/issue-link-type/get-all.js +1 -1
  154. package/lib/commands/issue-link-type/get.js +1 -1
  155. package/lib/commands/issue-link-type/update.js +1 -1
  156. package/lib/commands/issue-navigator-setting/get-columns.js +1 -1
  157. package/lib/commands/issue-navigator-setting/set-columns.js +1 -1
  158. package/lib/commands/issue-priority/create.js +1 -1
  159. package/lib/commands/issue-priority/delete.js +1 -1
  160. package/lib/commands/issue-priority/move.js +1 -1
  161. package/lib/commands/issue-priority/search.js +1 -1
  162. package/lib/commands/issue-priority/set-default.js +1 -1
  163. package/lib/commands/issue-priority/update.js +1 -1
  164. package/lib/commands/issue-property/delete-bulk.js +1 -1
  165. package/lib/commands/issue-property/delete.js +1 -1
  166. package/lib/commands/issue-property/get-keys.js +1 -1
  167. package/lib/commands/issue-property/get.js +1 -1
  168. package/lib/commands/issue-property/set-bulk.js +1 -1
  169. package/lib/commands/issue-property/set-by-issue-bulk.js +1 -1
  170. package/lib/commands/issue-property/set-by-list-bulk.js +1 -1
  171. package/lib/commands/issue-property/set.js +1 -1
  172. package/lib/commands/issue-remote-link/create.js +1 -1
  173. package/lib/commands/issue-remote-link/delete-by-global-id.js +1 -1
  174. package/lib/commands/issue-remote-link/delete.js +1 -1
  175. package/lib/commands/issue-remote-link/get-all.js +1 -1
  176. package/lib/commands/issue-remote-link/get.js +1 -1
  177. package/lib/commands/issue-remote-link/update.js +1 -1
  178. package/lib/commands/issue-resolution/create.js +1 -1
  179. package/lib/commands/issue-resolution/delete.js +1 -1
  180. package/lib/commands/issue-resolution/get-all.js +1 -1
  181. package/lib/commands/issue-resolution/get.js +1 -1
  182. package/lib/commands/issue-resolution/move.js +1 -1
  183. package/lib/commands/issue-resolution/search.js +1 -1
  184. package/lib/commands/issue-resolution/set-default.js +1 -1
  185. package/lib/commands/issue-resolution/update.js +1 -1
  186. package/lib/commands/issue-search/get-picker-suggestions.js +1 -1
  187. package/lib/commands/issue-search/search.js +1 -1
  188. package/lib/commands/issue-search/test-jql.js +1 -1
  189. package/lib/commands/issue-security-level/get-members.js +1 -1
  190. package/lib/commands/issue-security-level/get.js +1 -1
  191. package/lib/commands/issue-security-scheme/associate-security-scheme.js +1 -1
  192. package/lib/commands/issue-security-scheme/get-all.js +1 -1
  193. package/lib/commands/issue-security-scheme/get-levels.js +1 -1
  194. package/lib/commands/issue-security-scheme/get.js +1 -1
  195. package/lib/commands/issue-type/create.js +1 -1
  196. package/lib/commands/issue-type/delete.js +1 -1
  197. package/lib/commands/issue-type/get-all-for-projects.js +1 -1
  198. package/lib/commands/issue-type/get-all.js +1 -1
  199. package/lib/commands/issue-type/get-alternatives.js +1 -1
  200. package/lib/commands/issue-type/get.js +1 -1
  201. package/lib/commands/issue-type/set-avatar.js +1 -1
  202. package/lib/commands/issue-type/update.js +1 -1
  203. package/lib/commands/issue-type/upload-avatar.js +1 -1
  204. package/lib/commands/issue-type-property/delete.js +1 -1
  205. package/lib/commands/issue-type-property/get-keys.js +1 -1
  206. package/lib/commands/issue-type-property/get.js +1 -1
  207. package/lib/commands/issue-type-property/set.js +1 -1
  208. package/lib/commands/issue-type-scheme/add-issue-types.js +1 -1
  209. package/lib/commands/issue-type-scheme/assign-to-project.js +1 -1
  210. package/lib/commands/issue-type-scheme/create.js +1 -1
  211. package/lib/commands/issue-type-scheme/delete.js +1 -1
  212. package/lib/commands/issue-type-scheme/get-for-projects.js +1 -1
  213. package/lib/commands/issue-type-scheme/get-issue-types.js +1 -1
  214. package/lib/commands/issue-type-scheme/get-mappings.js +1 -1
  215. package/lib/commands/issue-type-scheme/get-projects.js +1 -1
  216. package/lib/commands/issue-type-scheme/move-issue-types.js +1 -1
  217. package/lib/commands/issue-type-scheme/remove-all-projects.js +1 -1
  218. package/lib/commands/issue-type-scheme/remove-issue-type.js +1 -1
  219. package/lib/commands/issue-type-scheme/remove-project.js +1 -1
  220. package/lib/commands/issue-type-scheme/search.js +1 -1
  221. package/lib/commands/issue-type-scheme/set-projects.js +1 -1
  222. package/lib/commands/issue-type-scheme/update.js +1 -1
  223. package/lib/commands/issue-type-screen-scheme/add-mappings.js +1 -1
  224. package/lib/commands/issue-type-screen-scheme/assign-to-project.js +1 -1
  225. package/lib/commands/issue-type-screen-scheme/create.js +1 -1
  226. package/lib/commands/issue-type-screen-scheme/delete.js +1 -1
  227. package/lib/commands/issue-type-screen-scheme/get-for-projects.js +1 -1
  228. package/lib/commands/issue-type-screen-scheme/get-items.js +1 -1
  229. package/lib/commands/issue-type-screen-scheme/get-projects.js +1 -1
  230. package/lib/commands/issue-type-screen-scheme/remove-mappings.js +1 -1
  231. package/lib/commands/issue-type-screen-scheme/search.js +1 -1
  232. package/lib/commands/issue-type-screen-scheme/set-default-screen.js +1 -1
  233. package/lib/commands/issue-type-screen-scheme/update.js +1 -1
  234. package/lib/commands/issue-vote/add.js +1 -1
  235. package/lib/commands/issue-vote/delete.js +1 -1
  236. package/lib/commands/issue-vote/get-all.js +1 -1
  237. package/lib/commands/issue-watcher/add.js +1 -1
  238. package/lib/commands/issue-watcher/delete.js +1 -1
  239. package/lib/commands/issue-watcher/get-all.js +1 -1
  240. package/lib/commands/issue-watcher/get-bulk.js +1 -1
  241. package/lib/commands/jira-expression/analyse.js +1 -1
  242. package/lib/commands/jira-expression/evaluate.js +1 -1
  243. package/lib/commands/jira-settings/get-advanced.js +1 -1
  244. package/lib/commands/jira-settings/get-globals.js +1 -1
  245. package/lib/commands/jira-settings/get-properties.js +1 -1
  246. package/lib/commands/jira-settings/set-property.js +1 -1
  247. package/lib/commands/jql/convert-user-identifiers.js +1 -1
  248. package/lib/commands/jql/get-auto-complete-suggestions.js +1 -1
  249. package/lib/commands/jql/get-reference-data.js +1 -1
  250. package/lib/commands/jql/parse.js +1 -1
  251. package/lib/commands/jql/sanitize.js +1 -1
  252. package/lib/commands/label/get-all.js +1 -1
  253. package/lib/commands/license/get.js +1 -1
  254. package/lib/commands/myself/change-password.js +1 -1
  255. package/lib/commands/myself/delete-preference.js +1 -1
  256. package/lib/commands/myself/get-locale.js +1 -1
  257. package/lib/commands/myself/get-preference.js +1 -1
  258. package/lib/commands/myself/get.js +1 -1
  259. package/lib/commands/myself/set-preference.js +1 -1
  260. package/lib/commands/myself/update-user.js +1 -1
  261. package/lib/commands/notification-scheme/add.js +1 -1
  262. package/lib/commands/notification-scheme/create.js +1 -1
  263. package/lib/commands/notification-scheme/delete-notification.js +1 -1
  264. package/lib/commands/notification-scheme/delete.js +1 -1
  265. package/lib/commands/notification-scheme/get-all.js +1 -1
  266. package/lib/commands/notification-scheme/get-projects.js +1 -1
  267. package/lib/commands/notification-scheme/get.js +1 -1
  268. package/lib/commands/notification-scheme/update.js +1 -1
  269. package/lib/commands/permission/check-global-permission.js +1 -1
  270. package/lib/commands/permission/check-issue-permission.js +1 -1
  271. package/lib/commands/permission/check-project-permission.js +1 -1
  272. package/lib/commands/permission/get-all.js +1 -1
  273. package/lib/commands/permission/get-my.js +1 -1
  274. package/lib/commands/permission/get-permitted.js +1 -1
  275. package/lib/commands/permission-scheme/create-grant.js +1 -1
  276. package/lib/commands/permission-scheme/create-scheme.js +1 -1
  277. package/lib/commands/permission-scheme/delete-grant.js +1 -1
  278. package/lib/commands/permission-scheme/delete-scheme.js +1 -1
  279. package/lib/commands/permission-scheme/get-all-grants.js +1 -1
  280. package/lib/commands/permission-scheme/get-all.js +1 -1
  281. package/lib/commands/permission-scheme/get-grant.js +1 -1
  282. package/lib/commands/permission-scheme/get.js +1 -1
  283. package/lib/commands/project/archive.js +1 -1
  284. package/lib/commands/project/create.js +1 -1
  285. package/lib/commands/project/delete.js +1 -1
  286. package/lib/commands/project/get-all-issue-types.js +1 -1
  287. package/lib/commands/project/get-all.js +1 -1
  288. package/lib/commands/project/get-issue-type-hierarchy.js +1 -1
  289. package/lib/commands/project/get-notification-schema.js +1 -1
  290. package/lib/commands/project/get.js +1 -1
  291. package/lib/commands/project/project.js +1 -1
  292. package/lib/commands/project/restore.js +1 -1
  293. package/lib/commands/project/search.js +1 -1
  294. package/lib/commands/project/unarchive.js +1 -1
  295. package/lib/commands/project/update.js +1 -1
  296. package/lib/commands/project-avatar/delete.js +1 -1
  297. package/lib/commands/project-avatar/get-all.js +1 -1
  298. package/lib/commands/project-avatar/set.js +1 -1
  299. package/lib/commands/project-avatar/upload.js +1 -1
  300. package/lib/commands/project-category/create.js +1 -1
  301. package/lib/commands/project-category/delete.js +1 -1
  302. package/lib/commands/project-category/get-all.js +1 -1
  303. package/lib/commands/project-category/get.js +1 -1
  304. package/lib/commands/project-category/update.js +1 -1
  305. package/lib/commands/project-component/create.js +1 -1
  306. package/lib/commands/project-component/delete.js +1 -1
  307. package/lib/commands/project-component/get-all.js +1 -1
  308. package/lib/commands/project-component/get-issues-count.js +1 -1
  309. package/lib/commands/project-component/get.js +1 -1
  310. package/lib/commands/project-component/search.js +1 -1
  311. package/lib/commands/project-component/update.js +1 -1
  312. package/lib/commands/project-email/get-sender.js +1 -1
  313. package/lib/commands/project-email/set-sender.js +1 -1
  314. package/lib/commands/project-feature/get.js +1 -1
  315. package/lib/commands/project-feature/set.js +1 -1
  316. package/lib/commands/project-key-and-name-validation/get-valid-key.js +1 -1
  317. package/lib/commands/project-key-and-name-validation/get-valid-name.js +1 -1
  318. package/lib/commands/project-key-and-name-validation/validate-key.js +1 -1
  319. package/lib/commands/project-permission-scheme/get-issue-security-levels.js +1 -1
  320. package/lib/commands/project-permission-scheme/get-issue-security-scheme-levels.js +1 -1
  321. package/lib/commands/project-permission-scheme/get-issue-security-scheme.js +1 -1
  322. package/lib/commands/project-permission-scheme/get-permissions.js +1 -1
  323. package/lib/commands/project-permission-scheme/get.js +1 -1
  324. package/lib/commands/project-permission-scheme/set.js +1 -1
  325. package/lib/commands/project-property/delete.js +1 -1
  326. package/lib/commands/project-property/get-keys.js +1 -1
  327. package/lib/commands/project-property/get.js +1 -1
  328. package/lib/commands/project-property/set.js +1 -1
  329. package/lib/commands/project-role/create.js +1 -1
  330. package/lib/commands/project-role/delete.js +1 -1
  331. package/lib/commands/project-role/get-all.js +1 -1
  332. package/lib/commands/project-role/get-role.js +1 -1
  333. package/lib/commands/project-role/get-roles-and-details.js +1 -1
  334. package/lib/commands/project-role/get-roles.js +1 -1
  335. package/lib/commands/project-role/get.js +1 -1
  336. package/lib/commands/project-role/project-role.js +1 -1
  337. package/lib/commands/project-role/update-partial.js +1 -1
  338. package/lib/commands/project-role/update.js +1 -1
  339. package/lib/commands/project-role-actor/add-actors.js +1 -1
  340. package/lib/commands/project-role-actor/add-default-actors.js +1 -1
  341. package/lib/commands/project-role-actor/delete-actors.js +1 -1
  342. package/lib/commands/project-role-actor/delete-default-actors.js +1 -1
  343. package/lib/commands/project-role-actor/get.js +1 -1
  344. package/lib/commands/project-role-actor/set-actors.js +1 -1
  345. package/lib/commands/project-type/check-accessible.js +1 -1
  346. package/lib/commands/project-type/get-all.js +1 -1
  347. package/lib/commands/project-type/get-licensed.js +1 -1
  348. package/lib/commands/project-type/get.js +1 -1
  349. package/lib/commands/project-type/update.js +1 -1
  350. package/lib/commands/project-version/create.js +1 -1
  351. package/lib/commands/project-version/delete-and-replace.js +1 -1
  352. package/lib/commands/project-version/get-all.js +1 -1
  353. package/lib/commands/project-version/get-related-issue-count.js +1 -1
  354. package/lib/commands/project-version/get-unresolved-issue-count.js +1 -1
  355. package/lib/commands/project-version/get.js +1 -1
  356. package/lib/commands/project-version/merge.js +1 -1
  357. package/lib/commands/project-version/move.js +1 -1
  358. package/lib/commands/project-version/search.js +1 -1
  359. package/lib/commands/project-version/update.js +1 -1
  360. package/lib/commands/screen/add-field-to-default-screen.js +1 -1
  361. package/lib/commands/screen/create.js +1 -1
  362. package/lib/commands/screen/delete.js +1 -1
  363. package/lib/commands/screen/get-all.js +1 -1
  364. package/lib/commands/screen/get-available-fields.js +1 -1
  365. package/lib/commands/screen/get-field-screens.js +1 -1
  366. package/lib/commands/screen/get-workflows.js +1 -1
  367. package/lib/commands/screen/update.js +1 -1
  368. package/lib/commands/screen-scheme/create.js +1 -1
  369. package/lib/commands/screen-scheme/delete.js +1 -1
  370. package/lib/commands/screen-scheme/get-all.js +1 -1
  371. package/lib/commands/screen-scheme/update.js +1 -1
  372. package/lib/commands/screen-tab/create.js +1 -1
  373. package/lib/commands/screen-tab/delete.js +1 -1
  374. package/lib/commands/screen-tab/get-all.js +1 -1
  375. package/lib/commands/screen-tab/move.js +1 -1
  376. package/lib/commands/screen-tab/update.js +1 -1
  377. package/lib/commands/screen-tab-field/add.js +1 -1
  378. package/lib/commands/screen-tab-field/get-all.js +1 -1
  379. package/lib/commands/screen-tab-field/move.js +1 -1
  380. package/lib/commands/screen-tab-field/remove.js +1 -1
  381. package/lib/commands/server-info/get.js +1 -1
  382. package/lib/commands/server-info/jmx.js +1 -1
  383. package/lib/commands/status/create.js +1 -1
  384. package/lib/commands/status/delete.js +1 -1
  385. package/lib/commands/status/get-usages.js +1 -1
  386. package/lib/commands/status/get.js +1 -1
  387. package/lib/commands/status/search.js +1 -1
  388. package/lib/commands/status/status-command.js +1 -1
  389. package/lib/commands/status/update.js +1 -1
  390. package/lib/commands/task/cancel.js +1 -1
  391. package/lib/commands/task/get.js +1 -1
  392. package/lib/commands/time-tracking/get-all.js +1 -1
  393. package/lib/commands/time-tracking/get-setting.js +1 -1
  394. package/lib/commands/time-tracking/get.js +1 -1
  395. package/lib/commands/time-tracking/select.js +1 -1
  396. package/lib/commands/time-tracking/set.js +1 -1
  397. package/lib/commands/user/add-user-to-application.js +1 -1
  398. package/lib/commands/user/change-password.js +1 -1
  399. package/lib/commands/user/create.js +1 -1
  400. package/lib/commands/user/delete.js +1 -1
  401. package/lib/commands/user/get-all.js +1 -1
  402. package/lib/commands/user/get-default-columns.js +1 -1
  403. package/lib/commands/user/get-email.js +1 -1
  404. package/lib/commands/user/get-user-groups.js +1 -1
  405. package/lib/commands/user/get.js +1 -1
  406. package/lib/commands/user/remove-user-from-application.js +1 -1
  407. package/lib/commands/user/reset-default-columns.js +1 -1
  408. package/lib/commands/user/set-default-columns.js +1 -1
  409. package/lib/commands/user/update.js +1 -1
  410. package/lib/commands/user/user-command.js +1 -1
  411. package/lib/commands/user-property/delete.js +1 -1
  412. package/lib/commands/user-property/get-all-keys.js +1 -1
  413. package/lib/commands/user-property/get-user-property.js +1 -1
  414. package/lib/commands/user-property/set.js +1 -1
  415. package/lib/commands/user-search/accounts-with-query.js +1 -1
  416. package/lib/commands/user-search/assignable-users-bulk.js +1 -1
  417. package/lib/commands/user-search/assignable-users.js +1 -1
  418. package/lib/commands/user-search/find.js +1 -1
  419. package/lib/commands/user-search/with-permission.js +1 -1
  420. package/lib/commands/user-search/with-query.js +1 -1
  421. package/lib/commands/workflow/create.js +1 -1
  422. package/lib/commands/workflow/delete.js +1 -1
  423. package/lib/commands/workflow/get-projects.js +1 -1
  424. package/lib/commands/workflow/get-schemes.js +1 -1
  425. package/lib/commands/workflow/get-statuses-properties.js +1 -1
  426. package/lib/commands/workflow/get-statuses.js +1 -1
  427. package/lib/commands/workflow/get-transitions-rules.js +1 -1
  428. package/lib/commands/workflow/get-transitions.js +1 -1
  429. package/lib/commands/workflow/search.js +1 -1
  430. package/lib/commands/workflow-scheme/create.js +1 -1
  431. package/lib/commands/workflow-scheme/delete-default-workflow.js +1 -1
  432. package/lib/commands/workflow-scheme/delete-issue-types-for-workflow.js +1 -1
  433. package/lib/commands/workflow-scheme/delete-workflow-for-issue-type.js +1 -1
  434. package/lib/commands/workflow-scheme/delete.js +1 -1
  435. package/lib/commands/workflow-scheme/get-all.js +1 -1
  436. package/lib/commands/workflow-scheme/get-default-workflow.js +1 -1
  437. package/lib/commands/workflow-scheme/get-issue-types-for-workflows.js +1 -1
  438. package/lib/commands/workflow-scheme/get-workflow-for-issue-type.js +1 -1
  439. package/lib/commands/workflow-scheme/get.js +1 -1
  440. package/lib/commands/workflow-scheme/set-issue-types-for-workflow.js +1 -1
  441. package/lib/commands/workflow-scheme/set-workflow-for-issue-type.js +1 -1
  442. package/lib/commands/workflow-scheme/update-default-workflow.js +1 -1
  443. package/lib/commands/workflow-scheme/update.js +1 -1
  444. package/lib/commands/workflow-scheme-draft/create.js +1 -1
  445. package/lib/commands/workflow-scheme-draft/delete-default-workflow.js +1 -1
  446. package/lib/commands/workflow-scheme-draft/delete-issue-types-for-workflow.js +1 -1
  447. package/lib/commands/workflow-scheme-draft/delete-workflow-for-issue-type.js +1 -1
  448. package/lib/commands/workflow-scheme-draft/delete.js +1 -1
  449. package/lib/commands/workflow-scheme-draft/get-default-workflow.js +1 -1
  450. package/lib/commands/workflow-scheme-draft/get-issue-types-for-workflows.js +1 -1
  451. package/lib/commands/workflow-scheme-draft/get-workflow-for-issue-type.js +1 -1
  452. package/lib/commands/workflow-scheme-draft/get.js +1 -1
  453. package/lib/commands/workflow-scheme-draft/publish.js +1 -1
  454. package/lib/commands/workflow-scheme-draft/set-issue-types-for-workflow.js +1 -1
  455. package/lib/commands/workflow-scheme-draft/set-workflow-for-issue-type.js +1 -1
  456. package/lib/commands/workflow-scheme-draft/update-default-workflow.js +1 -1
  457. package/lib/commands/workflow-scheme-draft/update.js +1 -1
  458. package/lib/commands/workflow-scheme-project-association/assign.js +1 -1
  459. package/lib/commands/workflow-scheme-project-association/get-all.js +1 -1
  460. package/lib/commands/workflow-status/get-all.js +1 -1
  461. package/lib/commands/workflow-status/get.js +1 -1
  462. package/lib/commands/workflow-status-category/get-all.js +1 -1
  463. package/lib/commands/workflow-status-category/get.js +1 -1
  464. package/lib/commands/workflow-transition-property/create.js +1 -1
  465. package/lib/commands/workflow-transition-property/delete.js +1 -1
  466. package/lib/commands/workflow-transition-property/get.js +1 -1
  467. package/lib/commands/workflow-transition-property/update.js +1 -1
  468. package/lib/commands/worklog/add.js +1 -1
  469. package/lib/commands/worklog/delete.js +1 -1
  470. package/lib/commands/worklog/get-deleted.js +1 -1
  471. package/lib/commands/worklog/get-for-issue.js +1 -1
  472. package/lib/commands/worklog/get-updated.js +1 -1
  473. package/lib/commands/worklog/get-with-ids.js +1 -1
  474. package/lib/commands/worklog/get.js +1 -1
  475. package/lib/commands/worklog/update.js +1 -1
  476. package/lib/commands/worklog-property/delete.js +1 -1
  477. package/lib/commands/worklog-property/get-keys.js +1 -1
  478. package/lib/commands/worklog-property/get.js +1 -1
  479. package/lib/commands/worklog-property/set-property.js +1 -1
  480. package/lib/index.js +1 -1
  481. package/package.json +4 -3
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class ChangePassword extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(s,e){var a=(await this.parse(ChangePassword))["flags"],r=a.password||await this.promptUser("password","password","New password?");if(r!==(a.password||await this.promptUser("password","password","Re-enter new password?")))throw new Error("Two passwords does not match!");await e.userManager.changeUserPassword(r,a.username,a.userKey)}}(exports.default=ChangePassword).description="Modify user password.",ChangePassword.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getUserNameAndKeyFlags)()),{password:core_1.Flags.string({required:!1,description:"New password for the user. Requires administration permission."})}),atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class ChangePassword extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(s,e){var a=(await this.parse(ChangePassword)).flags,r=a.password||await this.promptUser("password","password","New password?");if(r!==(a.password||await this.promptUser("password","password","Re-enter new password?")))throw new Error("Two passwords does not match!");await e.userManager.changeUserPassword(r,a.username,a.userKey)}}(exports.default=ChangePassword).description="Modify user password.",ChangePassword.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getUserNameAndKeyFlags)()),{password:core_1.Flags.string({required:!1,description:"New password for the user. Requires administration permission."})}),atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("./user-command");class UserCreate extends user_command_1.UserCommand{async runWithServerSite(e,r){var s=(await this.parse(UserCreate))["flags"];if(!s.username)throw new Error("username is required for server!");var a={displayName:s.displayName,emailAddress:s.emailAddress,notification:s.notification,password:s.password,name:s.username,applicationKeys:[]},r=(this.removeFlagsFromBase(a),await r.userManager.createUser(a,!0,!0));this.dislayUser(s,r)}async runWithCloudSite(e,r){var s=(await this.parse(UserCreate))["flags"],a={products:s.products||[],displayName:s.displayName,emailAddress:s.emailAddress,notification:s.notification,password:s.password},r=await r.userManager.createUser(a);this.dislayUser(s,r)}}(exports.default=UserCreate).description="Creates a user.",UserCreate.commonUserUpdateCreateFlags={products:core_1.Flags.string({multiple:!0,description:"Products the new user has access to. Valid products are: jira-core, jira-servicedesk, jira-product-discovery, jira-software. If left empty, the user will get default product access. To create a user without product access, set this field to be an empty array.",options:["jira-core","jira-servicedesk","jira-product-discovery","jira-software"]}),displayName:core_1.Flags.string({required:!0,description:"The display name for the user. "}),emailAddress:core_1.Flags.string({required:!0,description:"The email address for the user. "}),notification:core_1.Flags.boolean({allowNo:!0,default:!1,description:"Sends the user an email confirmation that they have been added to Jira. Default is false. "}),password:core_1.Flags.string({description:"A password for the user. If a password is not set, a random password is generated. "}),username:core_1.Flags.string({description:"The username. Only applicable to server and required."})},UserCreate.flags=Object.assign(Object.assign({},UserCreate.commonUserUpdateCreateFlags),atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("./user-command");class UserCreate extends user_command_1.UserCommand{async runWithServerSite(e,r){var s=(await this.parse(UserCreate)).flags;if(!s.username)throw new Error("username is required for server!");var a={displayName:s.displayName,emailAddress:s.emailAddress,notification:s.notification,password:s.password,name:s.username,applicationKeys:[]},r=(this.removeFlagsFromBase(a),await r.userManager.createUser(a,!0,!0));this.dislayUser(s,r)}async runWithCloudSite(e,r){var s=(await this.parse(UserCreate)).flags,a={products:s.products||[],displayName:s.displayName,emailAddress:s.emailAddress,notification:s.notification,password:s.password},r=await r.userManager.createUser(a);this.dislayUser(s,r)}}(exports.default=UserCreate).description="Creates a user.",UserCreate.commonUserUpdateCreateFlags={products:core_1.Flags.string({multiple:!0,description:"Products the new user has access to. Valid products are: jira-core, jira-servicedesk, jira-product-discovery, jira-software. If left empty, the user will get default product access. To create a user without product access, set this field to be an empty array.",options:["jira-core","jira-servicedesk","jira-product-discovery","jira-software"]}),displayName:core_1.Flags.string({required:!0,description:"The display name for the user. "}),emailAddress:core_1.Flags.string({required:!0,description:"The email address for the user. "}),notification:core_1.Flags.boolean({allowNo:!0,default:!1,description:"Sends the user an email confirmation that they have been added to Jira. Default is false. "}),password:core_1.Flags.string({description:"A password for the user. If a password is not set, a random password is generated. "}),username:core_1.Flags.string({description:"The username. Only applicable to server and required."})},UserCreate.flags=Object.assign(Object.assign({},UserCreate.commonUserUpdateCreateFlags),atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("./user-command"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class UserDelete extends user_command_1.UserCommand{async runWithServerSite(e,r){var s=(await this.parse(UserDelete))["flags"],s=tslib_1.__rest(this.removeFlagsFromBase(s),[]),a=await(0,user_util_1.getUser)(r,s.user);s.user=a.username,await r.userManager.deleteUser(s.user,s.userKey)}async runWithCloudSite(e,r){var s=(await this.parse(UserDelete))["flags"],s=await(0,user_util_1.getUser)(r,s.user);await r.userManager.deleteUser(s.accountId)}}(exports.default=UserDelete).description="Deletes a user.",UserDelete.flags=Object.assign({user:core_1.Flags.string({description:"Username for Server/DC and accountId or username or email for Cloud",required:!0}),userKey:core_1.Flags.string({exclusive:["user"],description:"The user key. Only applicable to server."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("./user-command"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class UserDelete extends user_command_1.UserCommand{async runWithServerSite(e,r){var s=(await this.parse(UserDelete)).flags,s=tslib_1.__rest(this.removeFlagsFromBase(s),[]),a=await(0,user_util_1.getUser)(r,s.user);s.user=a.username,await r.userManager.deleteUser(s.user,s.userKey)}async runWithCloudSite(e,r){var s=(await this.parse(UserDelete)).flags,s=await(0,user_util_1.getUser)(r,s.user);await r.userManager.deleteUser(s.accountId)}}(exports.default=UserDelete).description="Deletes a user.",UserDelete.flags=Object.assign({user:core_1.Flags.string({description:"Username for Server/DC and accountId or username or email for Cloud",required:!0}),userKey:core_1.Flags.string({exclusive:["user"],description:"The user key. Only applicable to server."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("./user-command"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class GetAll extends user_command_1.UserCommand{async runWithServerSite(){throw new Error("This command is only applicable to Cloud!")}async runWithCloudSite(e,s){var a=(await this.parse(GetAll))["flags"],t=this.removeFlagsFromBase(a),r=t["all"],t=tslib_1.__rest(t,["all"]),l=await(0,user_util_1.getUser)(s,t.user);t.accountId=l.accountId,delete t.user,t.accountId?(l=await s.userManager.getUsersByAccountId(t),r&&(l.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(l,t,s.userManager.getUsersByAccountId.bind(s.userManager))),this.dislayUsers(a,l.values)):(r=await s.userManager.getUsersDefault(a.startAt,a.maxResults),this.dislayUsers(a,r))}}(exports.default=GetAll).description="Returns a paginated list of the users. If you specify one or more accountId only those users will be returned.",GetAll.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{user:core_1.Flags.string({required:!1,multiple:!0,description:"The account ID or email or username of the user, which uniquely identifies the user across all Atlassian products. Only applicable to cloud."}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})}),atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("./user-command"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class GetAll extends user_command_1.UserCommand{async runWithServerSite(){throw new Error("This command is only applicable to Cloud!")}async runWithCloudSite(e,s){var a=(await this.parse(GetAll)).flags,t=this.removeFlagsFromBase(a),r=t.all,t=tslib_1.__rest(t,["all"]),l=await(0,user_util_1.getUser)(s,t.user);t.accountId=l.accountId,delete t.user,t.accountId?(l=await s.userManager.getUsersByAccountId(t),r&&(l.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(l,t,s.userManager.getUsersByAccountId.bind(s.userManager))),this.dislayUsers(a,l.values)):(r=await s.userManager.getUsersDefault(a.startAt,a.maxResults),this.dislayUsers(a,r))}}(exports.default=GetAll).description="Returns a paginated list of the users. If you specify one or more accountId only those users will be returned.",GetAll.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{user:core_1.Flags.string({required:!1,multiple:!0,description:"The account ID or email or username of the user, which uniquely identifies the user across all Atlassian products. Only applicable to cloud."}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})}),atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("./user-command"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class GetDefaultIssueTableColumns extends user_command_1.UserCommand{async runWithServerSite(e,s){var{flags:r,args:a}=await this.parse(GetDefaultIssueTableColumns),t=tslib_1.__rest(this.removeFlagsFromBase(r),[]),u=await(0,user_util_1.getUser)(s,t.user),l=await(0,user_util_1.getUser)(s,a.user),u=(t.user=u.username,a.user=l.username,await s.userManager.getDefaultIssueTableColumns(t.username||a.user));this.display(r,u)}async runWithCloudSite(e,s){var{flags:r,args:a}=await this.parse(GetDefaultIssueTableColumns),t=tslib_1.__rest(this.removeFlagsFromBase(r),[]),u=await(0,user_util_1.getUser)(s,t.user),l=await(0,user_util_1.getUser)(s,a.user),u=(t.user=u.accountId,a.user=l.accountId,await s.userManager.getDefaultIssueTableColumns(t.user||a.user));this.display(r,u)}}(exports.default=GetDefaultIssueTableColumns).description="Returns the default issue table columns for the given user. Admin permission will be required to get columns for a user other than the currently logged in user.",GetDefaultIssueTableColumns.flags=Object.assign({user:core_1.Flags.string({multiple:!0,description:"Username for Server/DC and accountId or username or email for Cloud",required:!1})},atlascli_common_1.CommandWithSite.flags),GetDefaultIssueTableColumns.args=[{name:"user",required:!1,description:"Username or accountId or email."}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("./user-command"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class GetDefaultIssueTableColumns extends user_command_1.UserCommand{async runWithServerSite(e,s){var{flags:r,args:a}=await this.parse(GetDefaultIssueTableColumns),t=tslib_1.__rest(this.removeFlagsFromBase(r),[]),u=await(0,user_util_1.getUser)(s,t.user),l=await(0,user_util_1.getUser)(s,a.user),u=(t.user=u.username,a.user=l.username,await s.userManager.getDefaultIssueTableColumns(t.username||a.user));this.display(r,u)}async runWithCloudSite(e,s){var{flags:r,args:a}=await this.parse(GetDefaultIssueTableColumns),t=tslib_1.__rest(this.removeFlagsFromBase(r),[]),u=await(0,user_util_1.getUser)(s,t.user),l=await(0,user_util_1.getUser)(s,a.user),u=(t.user=u.accountId,a.user=l.accountId,await s.userManager.getDefaultIssueTableColumns(t.user||a.user));this.display(r,u)}}(exports.default=GetDefaultIssueTableColumns).description="Returns the default issue table columns for the given user. Admin permission will be required to get columns for a user other than the currently logged in user.",GetDefaultIssueTableColumns.flags=Object.assign({user:core_1.Flags.string({multiple:!0,description:"Username for Server/DC and accountId or username or email for Cloud",required:!1})},atlascli_common_1.CommandWithSite.flags),GetDefaultIssueTableColumns.args=[{name:"user",required:!1,description:"Username or accountId or email."}];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class GetEmail extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var{flags:a,args:t}=await this.parse(GetEmail),i=tslib_1.__rest(this.removeFlagsFromBase(a),[]),i=(await(0,user_util_1.getUser)(s,i.user||t.user)).accountId,t=await s.userManager.getUserEmail(i);this.display(a,[t])}}(exports.default=GetEmail).description="Returns a user's email address.",GetEmail.flags=Object.assign({user:core_1.Flags.string({multiple:!0,description:"AccountId or username or email for Cloud."})},atlascli_common_1.CommandWithSite.flags),GetEmail.args=[{name:"user",description:atlascli_common_1.accountIdFlagDescription}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class GetEmail extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var{flags:s,args:t}=await this.parse(GetEmail),i=tslib_1.__rest(this.removeFlagsFromBase(s),[]),i=(await(0,user_util_1.getUser)(a,i.user||t.user)).accountId,t=await a.userManager.getUserEmail(i);this.display(s,[t])}}(exports.default=GetEmail).description="Returns a user's email address.",GetEmail.flags=Object.assign({user:core_1.Flags.string({multiple:!0,description:"AccountId or username or email for Cloud."})},atlascli_common_1.CommandWithSite.flags),GetEmail.args=[{name:"user",description:atlascli_common_1.accountIdFlagDescription}];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),core_1=require("@oclif/core");class GetUserGroups extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var{flags:r,args:t}=await this.parse(GetUserGroups),a=tslib_1.__rest(this.removeFlagsFromBase(r),[]),a=(await(0,user_util_1.getUser)(s,a.user||t.user)).accountId,t=await s.userManager.getUserGroups(a);this.display(r,t)}}(exports.default=GetUserGroups).description="Returns the groups to which a user belongs.",GetUserGroups.flags=Object.assign({user:core_1.Flags.string({multiple:!0,description:"AccountId or username or email for Cloud."})},atlascli_common_1.CommandWithSite.flags),GetUserGroups.args=[{name:"user",description:atlascli_common_1.accountIdFlagDescription}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),core_1=require("@oclif/core");class GetUserGroups extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var{flags:r,args:t}=await this.parse(GetUserGroups),a=tslib_1.__rest(this.removeFlagsFromBase(r),[]),a=(await(0,user_util_1.getUser)(s,a.user||t.user)).accountId,t=await s.userManager.getUserGroups(a);this.display(r,t)}}(exports.default=GetUserGroups).description="Returns the groups to which a user belongs.",GetUserGroups.flags=Object.assign({user:core_1.Flags.string({multiple:!0,description:"AccountId or username or email for Cloud."})},atlascli_common_1.CommandWithSite.flags),GetUserGroups.args=[{name:"user",description:atlascli_common_1.accountIdFlagDescription}];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("./user-command"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),core_1=require("@oclif/core");class UserGet extends user_command_1.UserCommand{async runWithServerSite(e,s){var r=(await this.parse(UserGet))["flags"],s=await s.userManager.getUser(r.username,r.userKey,!0,!0);return this.dislayUser(r,s),{}}async runWithCloudSite(e,s){var r=[];const{flags:t,argv:a}=await this.parse(UserGet);var i=tslib_1.__rest(this.removeFlagsFromBase(t),[]),i=await(0,user_util_1.getUser)(s,i.user),i=(r.push(...i.accountId||[]),r.push(...Array.isArray(a)?a:"string"==typeof a?[a]:[]),0===r.length&&this.error("No account id is specified."),r.map(e=>s.userManager.getUser(e,!0,!0)));await Promise.all(i).then(e=>{0<e.length&&this.dislayUsers(t,e)})}}(exports.default=UserGet).strict=!1,UserGet.description="Returns a user.",UserGet.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getUserFlags)()),{user:core_1.Flags.string({multiple:!0,char:"u",description:"The account ID or email or username of the user, which uniquely identifies the user across all Atlassian products. Only applicable to cloud."})}),atlascli_common_1.CommandWithSite.flags),UserGet.args=[{name:"user",description:"The account ID or username or email of the user, which uniquely identifies the user across all Atlassian products. Only applicable to cloud."}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("./user-command"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),core_1=require("@oclif/core");class UserGet extends user_command_1.UserCommand{async runWithServerSite(e,s){var r=(await this.parse(UserGet)).flags,s=await s.userManager.getUser(r.username,r.userKey,!0,!0);return this.dislayUser(r,s),{}}async runWithCloudSite(e,s){var r=[];let{flags:a,argv:t}=await this.parse(UserGet);var i=tslib_1.__rest(this.removeFlagsFromBase(a),[]),i=await(0,user_util_1.getUser)(s,i.user),i=(r.push(...i.accountId||[]),r.push(...Array.isArray(t)?t:"string"==typeof t?[t]:[]),0===r.length&&this.error("No account id is specified."),r.map(e=>s.userManager.getUser(e,!0,!0)));await Promise.all(i).then(e=>{0<e.length&&this.dislayUsers(a,e)})}}(exports.default=UserGet).strict=!1,UserGet.description="Returns a user.",UserGet.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getUserFlags)()),{user:core_1.Flags.string({multiple:!0,char:"u",description:"The account ID or email or username of the user, which uniquely identifies the user across all Atlassian products. Only applicable to cloud."})}),atlascli_common_1.CommandWithSite.flags),UserGet.args=[{name:"user",description:"The account ID or username or email of the user, which uniquely identifies the user across all Atlassian products. Only applicable to cloud."}];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class RemoveUserFromApplication extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(e,r){var a=(await this.parse(RemoveUserFromApplication))["flags"];if(!a.applicationKey)return this.error("applicationKey is required"),1;var i=[];for(const o of a.applicationKey)i.push(r.userManager.removeUserFromApplication(a.username,o));await Promise.all(i)}}(exports.default=RemoveUserFromApplication).description="Returns a user.",RemoveUserFromApplication.flags=Object.assign(Object.assign({username:core_1.Flags.string({required:!0,description:"The username."})},(0,atlascli_common_1.getApplicationKeyFlag)()),atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class RemoveUserFromApplication extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(e,r){var a=(await this.parse(RemoveUserFromApplication)).flags;if(!a.applicationKey)return this.error("applicationKey is required"),1;var i,o=[];for(i of a.applicationKey)o.push(r.userManager.removeUserFromApplication(a.username,i));await Promise.all(o)}}(exports.default=RemoveUserFromApplication).description="Returns a user.",RemoveUserFromApplication.flags=Object.assign(Object.assign({username:core_1.Flags.string({required:!0,description:"The username."})},(0,atlascli_common_1.getApplicationKeyFlag)()),atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("./user-command"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class ResetDefaultIssueTableColumns extends user_command_1.UserCommand{async runWithServerSite(e,s){var{flags:r,args:t}=await this.parse(ResetDefaultIssueTableColumns),r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),r=(await(0,user_util_1.getUser)(s,r.user||t.user)).username;s.userManager.resetDefaultIssueTableColumns(r)}async runWithCloudSite(e,s){var{flags:r,args:t}=await this.parse(ResetDefaultIssueTableColumns),r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),r=(await(0,user_util_1.getUser)(s,r.user||t.user)).accountId;s.userManager.resetDefaultIssueTableColumns(r)}}(exports.default=ResetDefaultIssueTableColumns).description="Reset the default columns for the given user to the system default. Admin permission will be required to get columns for a user other than the currently logged in user.",ResetDefaultIssueTableColumns.flags=Object.assign({user:core_1.Flags.string({multiple:!0,description:"Username for Server/DC and accountId or username or email for Cloud",required:!1})},atlascli_common_1.CommandWithSite.flags),ResetDefaultIssueTableColumns.args=[{name:"user",required:!1,description:"Username or accountId"}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("./user-command"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class ResetDefaultIssueTableColumns extends user_command_1.UserCommand{async runWithServerSite(e,s){var{flags:r,args:a}=await this.parse(ResetDefaultIssueTableColumns),r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),r=(await(0,user_util_1.getUser)(s,r.user||a.user)).username;s.userManager.resetDefaultIssueTableColumns(r)}async runWithCloudSite(e,s){var{flags:r,args:a}=await this.parse(ResetDefaultIssueTableColumns),r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),r=(await(0,user_util_1.getUser)(s,r.user||a.user)).accountId;s.userManager.resetDefaultIssueTableColumns(r)}}(exports.default=ResetDefaultIssueTableColumns).description="Reset the default columns for the given user to the system default. Admin permission will be required to get columns for a user other than the currently logged in user.",ResetDefaultIssueTableColumns.flags=Object.assign({user:core_1.Flags.string({multiple:!0,description:"Username for Server/DC and accountId or username or email for Cloud",required:!1})},atlascli_common_1.CommandWithSite.flags),ResetDefaultIssueTableColumns.args=[{name:"user",required:!1,description:"Username or accountId"}];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("./user-command"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class SetDefaultIssueTableColumns extends user_command_1.UserCommand{async runWithServerSite(e,s){var r=(await this.parse(SetDefaultIssueTableColumns))["flags"],r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),t=await(0,user_util_1.getUser)(s,r.user);r.user=t.username,await s.userManager.setDefaultIssueTableColumns(r.columnKey,r.user)}async runWithCloudSite(e,s){var r=(await this.parse(SetDefaultIssueTableColumns))["flags"],r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),t=await(0,user_util_1.getUser)(s,r.user);r.user=t.accountId,await s.userManager.setDefaultIssueTableColumns(r.columnKey,r.user)}}(exports.default=SetDefaultIssueTableColumns).description="Sets the default issue table columns. Admin permission will be required to set columns for a user other than the currently logged in user.",SetDefaultIssueTableColumns.flags=Object.assign({user:core_1.Flags.string({multiple:!0,description:"Username for Server/DC and accountId or username or email for Cloud",required:!1}),columnKey:core_1.Flags.string({multiple:!0,char:"c",description:"The key of column. You can repeat this flag for setting multiple columns.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("./user-command"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class SetDefaultIssueTableColumns extends user_command_1.UserCommand{async runWithServerSite(e,s){var r=(await this.parse(SetDefaultIssueTableColumns)).flags,r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),a=await(0,user_util_1.getUser)(s,r.user);r.user=a.username,await s.userManager.setDefaultIssueTableColumns(r.columnKey,r.user)}async runWithCloudSite(e,s){var r=(await this.parse(SetDefaultIssueTableColumns)).flags,r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),a=await(0,user_util_1.getUser)(s,r.user);r.user=a.accountId,await s.userManager.setDefaultIssueTableColumns(r.columnKey,r.user)}}(exports.default=SetDefaultIssueTableColumns).description="Sets the default issue table columns. Admin permission will be required to set columns for a user other than the currently logged in user.",SetDefaultIssueTableColumns.flags=Object.assign({user:core_1.Flags.string({multiple:!0,description:"Username for Server/DC and accountId or username or email for Cloud",required:!1}),columnKey:core_1.Flags.string({multiple:!0,char:"c",description:"The key of column. You can repeat this flag for setting multiple columns.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("./user-command");class Create extends user_command_1.UserCommand{async runWithServerSite(e,r){var a=(await this.parse(Create))["flags"];if(!a.username)throw new Error("username is required for server!");var s={displayName:a.displayName,emailAddress:a.emailAddress,notification:a.notification,password:a.password,active:a.active,name:a.username},r=(this.removeFlagsFromBase(s),await r.userManager.updateUser(s,void 0,a.userKey));this.dislayUser(a,r)}async runWithCloudSite(){throw new Error("This command is only applicable to server!")}}(exports.default=Create).description="Updates a user.",Create.flags=Object.assign(Object.assign({displayName:core_1.Flags.string({required:!0,description:"The display name for the user. "}),emailAddress:core_1.Flags.string({required:!0,description:"The email address for the user. "}),notification:core_1.Flags.boolean({allowNo:!0,default:!1,description:"Sends the user an email confirmation that they have been added to Jira. Default is false. "}),password:core_1.Flags.string({description:"A password for the user. If a password is not set, a random password is generated. "}),username:core_1.Flags.string({description:"The username. Only applicable to server and required."}),userKey:core_1.Flags.string({description:"The userKey. Only applicable to server and required."}),active:core_1.Flags.boolean({allowNo:!0,default:!0,description:"Whether the user is active or inactive. Default true. Only applicable to server."})},(0,atlascli_common_1.getApplicationKeyFlag)()),atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("./user-command");class Create extends user_command_1.UserCommand{async runWithServerSite(e,a){var r=(await this.parse(Create)).flags;if(!r.username)throw new Error("username is required for server!");var s={displayName:r.displayName,emailAddress:r.emailAddress,notification:r.notification,password:r.password,active:r.active,name:r.username},a=(this.removeFlagsFromBase(s),await a.userManager.updateUser(s,r.username,r.userKey));this.dislayUser(r,a)}async runWithCloudSite(){throw new Error("This command is only applicable to server!")}}(exports.default=Create).description="Updates a user.",Create.flags=Object.assign(Object.assign({displayName:core_1.Flags.string({description:"The display name for the user. "}),emailAddress:core_1.Flags.string({description:"The email address for the user. "}),notification:core_1.Flags.boolean({allowNo:!0,default:!1,description:"Sends the user an email confirmation that they have been added to Jira. Default is false. "}),password:core_1.Flags.string({description:"A password for the user. If a password is not set, a random password is generated. "}),username:core_1.Flags.string({description:"The username. Only applicable to server and required."}),userKey:core_1.Flags.string({description:"The userKey. Only applicable to server and required."}),active:core_1.Flags.boolean({allowNo:!0,default:!0,description:"Whether the user is active or inactive. Default true. Only applicable to server."})},(0,atlascli_common_1.getApplicationKeyFlag)()),atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.UserCommand=void 0;const tslib_1=require("tslib"),base_command_with_cloud_or_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site"));class UserCommand extends base_command_with_cloud_or_server_site_1.default{dislayUser(e,i){this.display(e,[i],(e,i)=>{var s;i.applicationRolesOneLine=null==(s=null==(s=e.applicationRoles)?void 0:s.items)?void 0:s.map(e=>e.name).join(","),i.groupsOneLine=null==(i=null==(s=e.groups)?void 0:s.items)?void 0:i.map(e=>e.name).join(",")})}dislayUsers(e,i){this.display(e,i,(e,i)=>{var s;i.applicationRolesOneLine=null==(s=null==(s=e.applicationRoles)?void 0:s.items)?void 0:s.map(e=>e.name).join(","),i.groupsOneLine=null==(i=null==(s=e.groups)?void 0:s.items)?void 0:i.map(e=>e.name).join(",")})}}exports.UserCommand=UserCommand;
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.UserCommand=void 0;let tslib_1=require("tslib"),base_command_with_cloud_or_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site"));class UserCommand extends base_command_with_cloud_or_server_site_1.default{dislayUser(e,i){this.display(e,[i],(e,i)=>{var o;i.applicationRolesOneLine=null==(o=null==(o=e.applicationRoles)?void 0:o.items)?void 0:o.map(e=>e.name).join(","),i.groupsOneLine=null==(i=null==(o=e.groups)?void 0:o.items)?void 0:i.map(e=>e.name).join(",")})}dislayUsers(e,i){this.display(e,i,(e,i)=>{var o;i.applicationRolesOneLine=null==(o=null==(o=e.applicationRoles)?void 0:o.items)?void 0:o.map(e=>e.name).join(","),i.groupsOneLine=null==(i=null==(o=e.groups)?void 0:o.items)?void 0:i.map(e=>e.name).join(",")})}}exports.UserCommand=UserCommand;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),project_1=require("../project/project"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class IssuePropertyDelete extends project_1.ProjectCommand{async runWithSite(e){var r=(await this.parse(IssuePropertyDelete))["flags"],s=this.getJira(e,r),r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),t=await(0,user_util_1.getUser)(s,r.user);if(r.accountId=t.accountId,r.username=t.username,delete r.user,e.cloud){if(!r.accountId)throw new Error("accountId is required for cloud");await s.userPropertyManager.deleteUserProperty(r.key,r.accountId)}else await s.userPropertyManager.deleteUserProperty(r.key,r.username,r.userKey)}}(exports.default=IssuePropertyDelete).description="Deletes a property from a user.",IssuePropertyDelete.flags=Object.assign({key:core_1.Flags.string({required:!0,char:"k",description:"The key of the user's property."}),userKey:core_1.Flags.string({exclusive:["user"],description:"The user key. Only applicable to server."}),user:core_1.Flags.string({char:"u",description:"Username for Server/DC and accountId or username or email for Cloud"})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),project_1=require("../project/project"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class IssuePropertyDelete extends project_1.ProjectCommand{async runWithSite(e){var r=(await this.parse(IssuePropertyDelete)).flags,t=this.getJira(e,r),r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),s=await(0,user_util_1.getUser)(t,r.user);if(r.accountId=s.accountId,r.username=s.username,delete r.user,e.cloud){if(!r.accountId)throw new Error("accountId is required for cloud");await t.userPropertyManager.deleteUserProperty(r.key,r.accountId)}else await t.userPropertyManager.deleteUserProperty(r.key,r.username,r.userKey)}}(exports.default=IssuePropertyDelete).description="Deletes a property from a user.",IssuePropertyDelete.flags=Object.assign({key:core_1.Flags.string({required:!0,char:"k",description:"The key of the user's property."}),userKey:core_1.Flags.string({exclusive:["user"],description:"The user key. Only applicable to server."}),user:core_1.Flags.string({char:"u",description:"Username for Server/DC and accountId or username or email for Cloud"})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),project_1=require("../project/project"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class UserPropertyGetAllKeys extends project_1.ProjectCommand{async runWithSite(e){var r=(await this.parse(UserPropertyGetAllKeys))["flags"],s=this.getJira(e,r),t=tslib_1.__rest(this.removeFlagsFromBase(r),[]),a=await(0,user_util_1.getUser)(s,t.user);t.accountId=a.accountId,t.username=a.username,delete t.user;let o;if(e.cloud){if(!t.accountId)throw new Error("--accountId is required for Cloud!");o=await s.userPropertyManager.getUserPropertyKeys(t.accountId)}else o=await s.userPropertyManager.getUserPropertyKeys(t.username,t.userKey);this.display(r,o.keys)}}(exports.default=UserPropertyGetAllKeys).description="Returns the keys of all properties for a user.",UserPropertyGetAllKeys.flags=Object.assign({userKey:core_1.Flags.string({exclusive:["user"],description:"The user key. Only applicable to server."}),user:core_1.Flags.string({char:"u",description:"Username for Server/DC and accountId or username or email for Cloud"})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),project_1=require("../project/project"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class UserPropertyGetAllKeys extends project_1.ProjectCommand{async runWithSite(e){var r=(await this.parse(UserPropertyGetAllKeys)).flags,s=this.getJira(e,r),t=tslib_1.__rest(this.removeFlagsFromBase(r),[]),a=await(0,user_util_1.getUser)(s,t.user);t.accountId=a.accountId,t.username=a.username,delete t.user;let o;if(e.cloud){if(!t.accountId)throw new Error("--accountId is required for Cloud!");o=await s.userPropertyManager.getUserPropertyKeys(t.accountId)}else o=await s.userPropertyManager.getUserPropertyKeys(t.username,t.userKey);this.display(r,o.keys)}}(exports.default=UserPropertyGetAllKeys).description="Returns the keys of all properties for a user.",UserPropertyGetAllKeys.flags=Object.assign({userKey:core_1.Flags.string({exclusive:["user"],description:"The user key. Only applicable to server."}),user:core_1.Flags.string({char:"u",description:"Username for Server/DC and accountId or username or email for Cloud"})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),project_1=require("../project/project"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class GetUserProperty extends project_1.ProjectCommand{async runWithSite(e){var r=(await this.parse(GetUserProperty))["flags"],t=this.getJira(e,r);let s;var o=tslib_1.__rest(this.removeFlagsFromBase(r),[]),a=await(0,user_util_1.getUser)(t,o.user);if(o.accountId=a.accountId,o.username=a.username,delete o.user,e.cloud){if(!o.accountId)throw new Error("accountId is required for cloud");s=await t.userPropertyManager.getUserProperty(o.key,o.accountId)}else s=await t.userPropertyManager.getUserProperty(o.key,o.username,o.userKey);this.display(r,s)}}(exports.default=GetUserProperty).description="Returns the value of a user's property. If no property key is provided Get user property keys is called.",GetUserProperty.flags=Object.assign({key:core_1.Flags.string({required:!0,char:"k",description:"The key of the user's property."}),userKey:core_1.Flags.string({exclusive:["user"],description:"The user key. Only applicable to server."}),user:core_1.Flags.string({char:"u",description:"Username for Server/DC and accountId or username or email for Cloud"})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),project_1=require("../project/project"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class GetUserProperty extends project_1.ProjectCommand{async runWithSite(e){var r=(await this.parse(GetUserProperty)).flags,t=this.getJira(e,r);let s;var a=tslib_1.__rest(this.removeFlagsFromBase(r),[]),o=await(0,user_util_1.getUser)(t,a.user);if(a.accountId=o.accountId,a.username=o.username,delete a.user,e.cloud){if(!a.accountId)throw new Error("accountId is required for cloud");s=await t.userPropertyManager.getUserProperty(a.key,a.accountId)}else s=await t.userPropertyManager.getUserProperty(a.key,a.username,a.userKey);this.display(r,s)}}(exports.default=GetUserProperty).description="Returns the value of a user's property. If no property key is provided Get user property keys is called.",GetUserProperty.flags=Object.assign({key:core_1.Flags.string({required:!0,char:"k",description:"The key of the user's property."}),userKey:core_1.Flags.string({exclusive:["user"],description:"The user key. Only applicable to server."}),user:core_1.Flags.string({char:"u",description:"Username for Server/DC and accountId or username or email for Cloud"})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),project_1=require("../project/project"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class Get extends project_1.ProjectCommand{async runWithSite(e){var{flags:r,args:s}=await this.parse(Get),t=this.getJira(e,r),s=r.value||s.value,r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),a=await(0,user_util_1.getUser)(t,r.user);if(r.accountId=a.accountId,r.username=a.username,delete r.user,e.cloud){if(!r.accountId)throw new Error("accountId is required for cloud");await t.userPropertyManager.setUserProperty(r.key,s,r.accountId)}else await t.userPropertyManager.setUserProperty(r.key,r.value,r.username,r.userKey)}}(exports.default=Get).description="Sets the value of a user's property.",Get.flags=Object.assign({key:core_1.Flags.string({required:!0,char:"k",description:"The key of the user's property."}),value:core_1.Flags.string({required:!0,char:"v",description:"The value of the user's property."}),userKey:core_1.Flags.string({exclusive:["user"],description:"The user key. Only applicable to server."}),user:core_1.Flags.string({char:"u",description:"Username for Server/DC and accountId or username or email for Cloud"})},atlascli_common_1.CommandWithSite.flags),Get.args=[{name:"value",description:"The value of the user's property."}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),project_1=require("../project/project"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class Get extends project_1.ProjectCommand{async runWithSite(e){var{flags:r,args:t}=await this.parse(Get),s=this.getJira(e,r),t=r.value||t.value,r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),a=await(0,user_util_1.getUser)(s,r.user);if(r.accountId=a.accountId,r.username=a.username,delete r.user,e.cloud){if(!r.accountId)throw new Error("accountId is required for cloud");await s.userPropertyManager.setUserProperty(r.key,t,r.accountId)}else await s.userPropertyManager.setUserProperty(r.key,r.value,r.username,r.userKey)}}(exports.default=Get).description="Sets the value of a user's property.",Get.flags=Object.assign({key:core_1.Flags.string({required:!0,char:"k",description:"The key of the user's property."}),value:core_1.Flags.string({required:!0,char:"v",description:"The value of the user's property."}),userKey:core_1.Flags.string({exclusive:["user"],description:"The user key. Only applicable to server."}),user:core_1.Flags.string({char:"u",description:"Username for Server/DC and accountId or username or email for Cloud"})},atlascli_common_1.CommandWithSite.flags),Get.args=[{name:"value",description:"The value of the user's property."}];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("../user/user-command");class FindAccountsWithQuery extends user_command_1.UserCommand{async runWithCloudSite(e,s){var a=(await this.parse(FindAccountsWithQuery))["flags"],r=this.removeFlagsFromBase(this.modifyQuery(a)),t=r["all"],r=tslib_1.__rest(r,["all"]),i=await s.userSearchManager.findUserAccountIDsWithQuery(r);t&&(i.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(i,r,s.userSearchManager.findUserAccountIDsWithQuery.bind(s.userManager))),this.display(a,i.values.map(e=>({accounId:e.accountId})))}async runWithServerSite(e,s){throw new Error("This command is only available for Jira Cloud!")}modifyQuery(e){return e.query=e.search,delete e.search,e}}(exports.default=FindAccountsWithQuery).description="Finds account IDs with a structured query.",FindAccountsWithQuery.flags=Object.assign(Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{search:core_1.Flags.string({required:!0,description:"The search string. Ex: is assignee of PROJ"})}),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("../user/user-command");class FindAccountsWithQuery extends user_command_1.UserCommand{async runWithCloudSite(e,s){var a=(await this.parse(FindAccountsWithQuery)).flags,r=this.removeFlagsFromBase(this.modifyQuery(a)),t=r.all,r=tslib_1.__rest(r,["all"]),i=await s.userSearchManager.findUserAccountIDsWithQuery(r);t&&(i.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(i,r,s.userSearchManager.findUserAccountIDsWithQuery.bind(s.userManager))),this.display(a,i.values.map(e=>({accounId:e.accountId})))}async runWithServerSite(e,s){throw new Error("This command is only available for Jira Cloud!")}modifyQuery(e){return e.query=e.search,delete e.search,e}}(exports.default=FindAccountsWithQuery).description="Finds account IDs with a structured query.",FindAccountsWithQuery.flags=Object.assign(Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{search:core_1.Flags.string({required:!0,description:"The search string. Ex: is assignee of PROJ"})}),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("../user/user-command");class FindAssignableUsersBulk extends user_command_1.UserCommand{async runWithSiteImp(s,e){var a=(await this.parse(FindAssignableUsersBulk))["flags"],e=await e.userSearchManager.findAssignableUsersBulk(a.project,a.search,a.startAt,a.maxResults);this.dislayUsers(a,e)}async runWithServerSite(s,e){await this.runWithSiteImp(s,e)}async runWithCloudSite(s,e){await this.runWithSiteImp(s,e)}}(exports.default=FindAssignableUsersBulk).description="Returns a list of users that match the search string and can be assigned issues for all the given projects.",FindAssignableUsersBulk.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{search:core_1.Flags.string({required:!1,description:"The search string."}),project:core_1.Flags.string({required:!0,multiple:!0,description:"The key of the projects we are finding assignable users for."})}),atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("../user/user-command");class FindAssignableUsersBulk extends user_command_1.UserCommand{async runWithSiteImp(e,s){var a=(await this.parse(FindAssignableUsersBulk)).flags,s=await s.userSearchManager.findAssignableUsersBulk(a.project,a.search,a.startAt,a.maxResults);this.dislayUsers(a,s)}async runWithServerSite(e,s){await this.runWithSiteImp(e,s)}async runWithCloudSite(e,s){await this.runWithSiteImp(e,s)}}(exports.default=FindAssignableUsersBulk).description="Returns a list of users that match the search string and can be assigned issues for all the given projects.",FindAssignableUsersBulk.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{search:core_1.Flags.string({required:!1,description:"The search string."}),project:core_1.Flags.string({required:!0,multiple:!0,description:"The key of the projects we are finding assignable users for."})}),atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("../user/user-command");class FindAssignableUsersBulk extends user_command_1.UserCommand{async runWithSiteImp(e){var s=(await this.parse(FindAssignableUsersBulk))["flags"],e=await e.userSearchManager.findAssignableUsers(s.issue,s.project,s.actionDescriptorId,s.search,s.startAt,s.maxResults);this.dislayUsers(s,e)}async runWithServerSite(e,s){await this.runWithSiteImp(s)}async runWithCloudSite(e,s){await this.runWithSiteImp(s)}}(exports.default=FindAssignableUsersBulk).description="Returns a list of users that match the search string. Call with an issue key when a list of assignable users is retrieved for editing. For create only a project key should be supplied.",FindAssignableUsersBulk.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{search:core_1.Flags.string({required:!1,description:"The search string."}),actionDescriptorId:core_1.Flags.integer({description:"The ID of the workflow transition."}),project:core_1.Flags.string({exclusive:["issue"],description:"The key of the projects we are finding assignable users for."}),issue:core_1.Flags.string({exclusive:["project"],description:"The issue key for the issue being edited we need to find assignable users for."})}),atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("../user/user-command");class FindAssignableUsersBulk extends user_command_1.UserCommand{async runWithSiteImp(e){var s=(await this.parse(FindAssignableUsersBulk)).flags,e=await e.userSearchManager.findAssignableUsers(s.issue,s.project,s.actionDescriptorId,s.search,s.startAt,s.maxResults);this.dislayUsers(s,e)}async runWithServerSite(e,s){await this.runWithSiteImp(s)}async runWithCloudSite(e,s){await this.runWithSiteImp(s)}}(exports.default=FindAssignableUsersBulk).description="Returns a list of users that match the search string. Call with an issue key when a list of assignable users is retrieved for editing. For create only a project key should be supplied.",FindAssignableUsersBulk.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{search:core_1.Flags.string({required:!1,description:"The search string."}),actionDescriptorId:core_1.Flags.integer({description:"The ID of the workflow transition."}),project:core_1.Flags.string({exclusive:["issue"],description:"The key of the projects we are finding assignable users for."}),issue:core_1.Flags.string({exclusive:["project"],description:"The issue key for the issue being edited we need to find assignable users for."})}),atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("../user/user-command");class Find extends user_command_1.UserCommand{async runWithCloudSite(e,s){var r=(await this.parse(Find))["flags"],s=await s.userSearchManager.findUsers(r.search,r.property,r.startAt,r.maxResults);this.dislayUsers(r,s)}async runWithServerSite(e,s){var r=(await this.parse(Find))["flags"],s=await s.userSearchManager.findUsers(r.search,r.includeActive,r.includeInActive,r.startAt,r.maxResults);this.dislayUsers(r,s)}}(exports.default=Find).description="Returns a list of users that match the search string. This resource cannot be accessed anonymously.",Find.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{search:core_1.Flags.string({required:!0,description:"The search string."}),property:core_1.Flags.string({required:!1,description:'Applicable to only Cloud. A query string used to search properties. To search for the value of nested from {"something":{"nested":1,"other":2}} use thepropertykey.something.nested=1.'}),includeActive:core_1.Flags.boolean({allowNo:!0,required:!1,default:!0,description:"Applicable to only Server and DC. If true, then active users are included in the results (default true)."}),includeInActive:core_1.Flags.boolean({allowNo:!0,required:!1,default:!1,description:"Applicable to only Server and DC. If true, then inactive users are included in the results (default false)."})}),atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("../user/user-command");class Find extends user_command_1.UserCommand{async runWithCloudSite(e,s){var r=(await this.parse(Find)).flags,s=await s.userSearchManager.findUsers(r.search,r.property,r.startAt,r.maxResults);this.dislayUsers(r,s)}async runWithServerSite(e,s){var r=(await this.parse(Find)).flags,s=await s.userSearchManager.findUsers(r.search,r.includeActive,r.includeInActive,r.startAt,r.maxResults);this.dislayUsers(r,s)}}(exports.default=Find).description="Returns a list of users that match the search string. This resource cannot be accessed anonymously.",Find.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{search:core_1.Flags.string({required:!0,description:"The search string."}),property:core_1.Flags.string({required:!1,description:'Applicable to only Cloud. A query string used to search properties. To search for the value of nested from {"something":{"nested":1,"other":2}} use thepropertykey.something.nested=1.'}),includeActive:core_1.Flags.boolean({allowNo:!0,required:!1,default:!0,description:"Applicable to only Server and DC. If true, then active users are included in the results (default true)."}),includeInActive:core_1.Flags.boolean({allowNo:!0,required:!1,default:!1,description:"Applicable to only Server and DC. If true, then inactive users are included in the results (default false)."})}),atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("../user/user-command");class FindUsersWithPermission extends user_command_1.UserCommand{async runWithSiteImp(e,s){var i=(await this.parse(FindUsersWithPermission))["flags"];if(!i.project&&!i.issue)throw new Error("You should either speciy projectKey or issueKey!");s=await s.userSearchManager.findUsersWithAllPermissions(i.permission,i.search,i.issue,i.project,i.startAt,i.maxResults);this.dislayUsers(i,s)}async runWithCloudSite(e,s){await this.runWithSiteImp(e,s)}async runWithServerSite(e,s){await this.runWithSiteImp(e,s)}}(exports.default=FindUsersWithPermission).description="Returns a list of active users that match the search string and have all specified permissions for the project or issue.",FindUsersWithPermission.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{search:core_1.Flags.string({required:!1,description:"The search string."}),permission:core_1.Flags.string({required:!0,char:"p",multiple:!0,description:"Permission key. This flag can be repeated."}),issue:core_1.Flags.string({char:"i",description:"The issue key for the issue for which returned users have specified permissions."}),project:core_1.Flags.string({description:"The optional project key to search for users with if no issueKey is supplied."})}),atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("../user/user-command");class FindUsersWithPermission extends user_command_1.UserCommand{async runWithSiteImp(e,s){var i=(await this.parse(FindUsersWithPermission)).flags;if(!i.project&&!i.issue)throw new Error("You should either speciy projectKey or issueKey!");s=await s.userSearchManager.findUsersWithAllPermissions(i.permission,i.search,i.issue,i.project,i.startAt,i.maxResults);this.dislayUsers(i,s)}async runWithCloudSite(e,s){await this.runWithSiteImp(e,s)}async runWithServerSite(e,s){await this.runWithSiteImp(e,s)}}(exports.default=FindUsersWithPermission).description="Returns a list of active users that match the search string and have all specified permissions for the project or issue.",FindUsersWithPermission.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{search:core_1.Flags.string({required:!1,description:"The search string."}),permission:core_1.Flags.string({required:!0,char:"p",multiple:!0,description:"Permission key. This flag can be repeated."}),issue:core_1.Flags.string({char:"i",description:"The issue key for the issue for which returned users have specified permissions."}),project:core_1.Flags.string({description:"The optional project key to search for users with if no issueKey is supplied."})}),atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("../user/user-command");class FindUsersWithQuery extends user_command_1.UserCommand{async runWithCloudSite(e,s){var r=(await this.parse(FindUsersWithQuery))["flags"],a=this.removeFlagsFromBase(this.modifyQuery(r)),t=a["all"],a=tslib_1.__rest(a,["all"]),i=await s.userSearchManager.findUsersWithQuery(a);t&&(i.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(i,a,s.userSearchManager.findUsersWithQuery.bind(s.userManager))),this.dislayUsers(r,i.values)}async runWithServerSite(e,s){throw new Error("This command is only available for Jira Cloud!")}modifyQuery(e){return e.query=e.search,delete e.search,e}}(exports.default=FindUsersWithQuery).description="Finds users with a structured query and returns a paginated list of user details.",FindUsersWithQuery.flags=Object.assign(Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{search:core_1.Flags.string({required:!0,description:"The search string. Ex: is assignee of PROJ"})}),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("../user/user-command");class FindUsersWithQuery extends user_command_1.UserCommand{async runWithCloudSite(e,s){var r=(await this.parse(FindUsersWithQuery)).flags,a=this.removeFlagsFromBase(this.modifyQuery(r)),i=a.all,a=tslib_1.__rest(a,["all"]),t=await s.userSearchManager.findUsersWithQuery(a);i&&(t.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(t,a,s.userSearchManager.findUsersWithQuery.bind(s.userManager))),this.dislayUsers(r,t.values)}async runWithServerSite(e,s){throw new Error("This command is only available for Jira Cloud!")}modifyQuery(e){return e.query=e.search,delete e.search,e}}(exports.default=FindUsersWithQuery).description="Finds users with a structured query and returns a paginated list of user details.",FindUsersWithQuery.flags=Object.assign(Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{search:core_1.Flags.string({required:!0,description:"The search string. Ex: is assignee of PROJ"})}),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class CreateWorkflow extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(o,e){var{flags:r,args:a}=await this.parse(CreateWorkflow);let t=a.workflowBody;if(void 0===t&&(!(t=await(0,atlascli_common_1.readStdin)())||0===t.length))throw new Error("You should provide a valid JSON for the workflow! You can get more details in https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows/#api-rest-api-3-workflow-post");a=await e.workflowManager.createWorkflow(JSON.parse(t));r.extended=!0,this.display(r,this.modifyResponseForDisplay(a))}modifyResponseForDisplay(o){var e=[],r={};return r.entityId=o.entityId,r.name=o.name,e.push(r),e}}(exports.default=CreateWorkflow).description="Creates workflow.",CreateWorkflow.flags=Object.assign({workflowBody:core_1.Flags.string({description:"Workflow creation request in JSON format. You can get more details in https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows/#api-rest-api-3-workflow-post"})},atlascli_common_1.CommandWithSite.flags),CreateWorkflow.args=[{name:"workflowBody",description:"Workflow creation request in JSON format."}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class CreateWorkflow extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(o,e){var{flags:r,args:a}=await this.parse(CreateWorkflow);let t=a.workflowBody;if(void 0===t&&(!(t=await(0,atlascli_common_1.readStdin)())||0===t.length))throw new Error("You should provide a valid JSON for the workflow! You can get more details in https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows/#api-rest-api-3-workflow-post");a=await e.workflowManager.createWorkflow(JSON.parse(t));r.extended=!0,this.display(r,this.modifyResponseForDisplay(a))}modifyResponseForDisplay(o){var e=[],r={};return r.entityId=o.entityId,r.name=o.name,e.push(r),e}}(exports.default=CreateWorkflow).description="Creates workflow.",CreateWorkflow.flags=Object.assign({workflowBody:core_1.Flags.string({description:"Workflow creation request in JSON format. You can get more details in https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows/#api-rest-api-3-workflow-post"})},atlascli_common_1.CommandWithSite.flags),CreateWorkflow.args=[{name:"workflowBody",description:"Workflow creation request in JSON format."}];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteInactiveWorkflow extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var o=(await this.parse(DeleteInactiveWorkflow))["flags"];await t.workflowManager.deleteInactiveWorkflow(o.entityId)}}(exports.default=DeleteInactiveWorkflow).description="Deletes inactive workflow.",DeleteInactiveWorkflow.flags=Object.assign({entityId:core_1.Flags.string({char:"i",description:"The entity ID of the workflow.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteInactiveWorkflow extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var o=(await this.parse(DeleteInactiveWorkflow)).flags;await t.workflowManager.deleteInactiveWorkflow(o.entityId)}}(exports.default=DeleteInactiveWorkflow).description="Deletes inactive workflow.",DeleteInactiveWorkflow.flags=Object.assign({entityId:core_1.Flags.string({char:"i",description:"The entity ID of the workflow.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),get_transitions_1=tslib_1.__importDefault(require("./get-transitions"));class GetProjects extends get_transitions_1.default{async runWithCloudSite(t,e){var s=(await this.parse(GetProjects))["flags"],e=await e.workflowManager.searchWorkflows({workflowName:[s.workflowName],expand:"projects"});this.display(s,e.values[0].projects)}}(exports.default=GetProjects).description="Gets information about the projects the workflow is assigned to, through workflow schemes.",GetProjects.flags=Object.assign({},get_transitions_1.default.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),get_transitions_1=tslib_1.__importDefault(require("./get-transitions"));class GetProjects extends get_transitions_1.default{async runWithCloudSite(t,e){var s=(await this.parse(GetProjects)).flags,e=await e.workflowManager.searchWorkflows({workflowName:[s.workflowName],expand:"projects"});this.display(s,e.values[0].projects)}}(exports.default=GetProjects).description="Gets information about the projects the workflow is assigned to, through workflow schemes.",GetProjects.flags=Object.assign({},get_transitions_1.default.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),get_transitions_1=tslib_1.__importDefault(require("./get-transitions"));class GetSchemes extends get_transitions_1.default{async runWithCloudSite(e,s){var t=(await this.parse(GetSchemes))["flags"],s=await s.workflowManager.searchWorkflows({workflowName:[t.workflowName],expand:"schemes"});this.display(t,s.values[0].schemes)}}(exports.default=GetSchemes).description="Gets information about the workflow schemes the workflow is assigned to.",GetSchemes.flags=Object.assign({},get_transitions_1.default.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),get_transitions_1=tslib_1.__importDefault(require("./get-transitions"));class GetSchemes extends get_transitions_1.default{async runWithCloudSite(e,s){var t=(await this.parse(GetSchemes)).flags,s=await s.workflowManager.searchWorkflows({workflowName:[t.workflowName],expand:"schemes"});this.display(t,s.values[0].schemes)}}(exports.default=GetSchemes).description="Gets information about the workflow schemes the workflow is assigned to.",GetSchemes.flags=Object.assign({},get_transitions_1.default.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),get_transitions_1=tslib_1.__importDefault(require("./get-transitions"));class GetStatusesProperties extends get_transitions_1.default{async runWithCloudSite(t,s){var e=(await this.parse(GetStatusesProperties))["flags"],s=await s.workflowManager.searchWorkflows({workflowName:[e.workflowName],expand:"statuses.properties"});this.display(e,this.modifyStatusForDisplay(s.values[0].statuses,e.statusIds))}modifyStatusForDisplay(t,s){const e=[];return(t=s?t.filter(t=>s.split(",").includes(t.id)):t).forEach(t=>{var s=Object.assign({},t);s.properties=JSON.stringify(t.properties),e.push(s)}),e}}(exports.default=GetStatusesProperties).description="For each workflow status, gets information about its properties.",GetStatusesProperties.flags=Object.assign({statusIds:core_1.Flags.string({description:"Workflow's status Id. You can provide multiple Ids by separeting them with comma to filter the statuses.\nExample usage: statusIds=1,2,4"})},get_transitions_1.default.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),get_transitions_1=tslib_1.__importDefault(require("./get-transitions"));class GetStatusesProperties extends get_transitions_1.default{async runWithCloudSite(t,s){var e=(await this.parse(GetStatusesProperties)).flags,s=await s.workflowManager.searchWorkflows({workflowName:[e.workflowName],expand:"statuses.properties"});this.display(e,this.modifyStatusForDisplay(s.values[0].statuses,e.statusIds))}modifyStatusForDisplay(t,s){let e=[];return(t=s?t.filter(t=>s.split(",").includes(t.id)):t).forEach(t=>{var s=Object.assign({},t);s.properties=JSON.stringify(t.properties),e.push(s)}),e}}(exports.default=GetStatusesProperties).description="For each workflow status, gets information about its properties.",GetStatusesProperties.flags=Object.assign({statusIds:core_1.Flags.string({description:"Workflow's status Id. You can provide multiple Ids by separeting them with comma to filter the statuses.\nExample usage: statusIds=1,2,4"})},get_transitions_1.default.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),get_transitions_1=tslib_1.__importDefault(require("./get-transitions"));class GetStatuses extends get_transitions_1.default{async runWithCloudSite(t,s){var e=(await this.parse(GetStatuses))["flags"],s=await s.workflowManager.searchWorkflows({workflowName:[e.workflowName],expand:"statuses"});this.display(e,s.values[0].statuses)}}(exports.default=GetStatuses).description="Gets information about the statuses inside the workflow",GetStatuses.flags=Object.assign({},get_transitions_1.default.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),get_transitions_1=tslib_1.__importDefault(require("./get-transitions"));class GetStatuses extends get_transitions_1.default{async runWithCloudSite(t,s){var e=(await this.parse(GetStatuses)).flags,s=await s.workflowManager.searchWorkflows({workflowName:[e.workflowName],expand:"statuses"});this.display(e,s.values[0].statuses)}}(exports.default=GetStatuses).description="Gets information about the statuses inside the workflow",GetStatuses.flags=Object.assign({},get_transitions_1.default.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetTranstionRules extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(s,t){var o=(await this.parse(GetTranstionRules))["flags"],t=await t.workflowManager.searchWorkflows({expand:"transitions.rules"});this.display(o,this.modifyResponseForDisplay(t.values,o))}modifyResponseForDisplay(s,e){const i=[];return e.transitionIds&&(s[0].transitions=s[0].transitions.filter(s=>e.transitionIds.split(",").includes(s.id))),s[0].transitions.forEach(t=>{const o=t.id;Object.keys(t.rules).forEach(s=>{if(s===e.ruleType)if("conditionsTree"===e.ruleType){if(e.json||e.yaml||e.output||(e.json=!0),"csv"===e.output)return this.error("conditionsTree rule type can not be shown in tabular or csv format. It can only be shown in JSON or YAML format.");i.push(Object.assign({transitionId:o},t.rules[s]))}else t.rules[s].forEach(s=>{var t={};t.transitionId=o,t.type=s.type,t.configuration=JSON.stringify(s.configuration)||"",i.push(t)})})}),i}}(exports.default=GetTranstionRules).description="Gets given workflow's transition rules",GetTranstionRules.flags=Object.assign({workflowName:core_1.Flags.string({char:"n",description:"The name of the workflow that the transition rules belongs to."}),transitionIds:core_1.Flags.string({description:"Workflow's transition Id. You can provide multiple Ids by separeting them with comma to filter the transitions.\nExample usage: transitionIds=1,2,4"}),ruleType:core_1.Flags.string({options:["conditionsTree","validators","postFunctions"]})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetTranstionRules extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(t,s){var e=(await this.parse(GetTranstionRules)).flags,s=await s.workflowManager.searchWorkflows({expand:"transitions.rules"});this.display(e,this.modifyResponseForDisplay(s.values,e))}modifyResponseForDisplay(t,i){let o=[];return i.transitionIds&&(t[0].transitions=t[0].transitions.filter(t=>i.transitionIds.split(",").includes(t.id))),t[0].transitions.forEach(s=>{let e=s.id;Object.keys(s.rules).forEach(t=>{if(t===i.ruleType)if("conditionsTree"===i.ruleType){if(i.json||i.yaml||i.output||(i.json=!0),"csv"===i.output)return this.error("conditionsTree rule type can not be shown in tabular or csv format. It can only be shown in JSON or YAML format.");o.push(Object.assign({transitionId:e},s.rules[t]))}else s.rules[t].forEach(t=>{var s={};s.transitionId=e,s.type=t.type,s.configuration=JSON.stringify(t.configuration)||"",o.push(s)})})}),o}}(exports.default=GetTranstionRules).description="Gets given workflow's transition rules",GetTranstionRules.flags=Object.assign({workflowName:core_1.Flags.string({char:"n",description:"The name of the workflow that the transition rules belongs to."}),transitionIds:core_1.Flags.string({description:"Workflow's transition Id. You can provide multiple Ids by separeting them with comma to filter the transitions.\nExample usage: transitionIds=1,2,4"}),ruleType:core_1.Flags.string({options:["conditionsTree","validators","postFunctions"]})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetTransitions extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(o,s){var e=(await this.parse(GetTransitions))["flags"],s=await s.workflowManager.searchWorkflows({workflowName:[e.workflowName],expand:"transitions"});this.display(e,this.modifyResponseForDisplay(s.values[0]))}modifyResponseForDisplay(o){const s=[];return o.transitions.forEach(o=>{s.push({id:o.id,name:o.name,type:o.type,from:o.from.join(","),to:o.to,description:o.description})}),s}}(exports.default=GetTransitions).description="Gets given workflow's transitions",GetTransitions.flags=Object.assign({workflowName:core_1.Flags.string({char:"n",description:"The name of the workflow that the transitions belongs to.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetTransitions extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,o){var s=(await this.parse(GetTransitions)).flags,o=await o.workflowManager.searchWorkflows({workflowName:[s.workflowName],expand:"transitions"});this.display(s,this.modifyResponseForDisplay(o.values[0]))}modifyResponseForDisplay(e){let o=[];return e.transitions.forEach(e=>{o.push({id:e.id,name:e.name,type:e.type,from:e.from.join(","),to:e.to,description:e.description})}),o}}(exports.default=GetTransitions).description="Gets given workflow's transitions",GetTransitions.flags=Object.assign({workflowName:core_1.Flags.string({char:"n",description:"The name of the workflow that the transitions belongs to.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class SearchWorkflows extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,a){var o=(await this.parse(SearchWorkflows))["flags"],r=this.removeFlagsFromBase(o),t=r["all"],r=tslib_1.__rest(r,["all"]),s=(this.modifySearchQuery(r),await a.workflowManager.searchWorkflows(r));t&&(s.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(s,r,a.workflowManager.searchWorkflows.bind(a.workflowManager))),this.display(o,this.modifyWorkflowCloudResponse(s.values,o))}async runWithServerSite(e,a){var o=(await this.parse(SearchWorkflows))["flags"],r=this.removeFlagsFromBase(o),a=await a.workflowManager.getAllWorkflows(r);this.display(o,a,(e,a)=>{a.lastModifiedDate=e.lastModifiedDate||"",a.lastModifiedUser=e.lastModifiedUser||""})}modifyWorkflowCloudResponse(e,t){const s=[];return e.forEach(e=>{var a={},{entityId:o,name:r}=e.id;a.id=o,a.name=r,a.description=e.description,this.addExpandInfo(e,a,t.expand),a.created=e.created,a.updated=e.updated,s.push(a)}),s}addExpandInfo(e,a,o){switch(o){case"schemes":a.canEdit=e.operations.canEdit||"",a.canDelete=e.operations.canDelete||"";break;case"default":a.isDefault=e.isDefault;break;case"hasDraftWorkflow":a.hasDraftWorkflow=e.hasDraftWorkflow}}modifySearchQuery(e){e.queryString=e.query,delete e.query}}(exports.default=SearchWorkflows).description="Searches all workflows.",SearchWorkflows.flags=Object.assign(Object.assign(Object.assign(Object.assign({workflowName:core_1.Flags.string({char:"n",description:"The name of a workflow to return. Multiple values can be provided by repeating this flag\nNote: Providing multiple names feature is only available for cloud.",multiple:!0}),expand:core_1.Flags.string({description:"Use expand to include additional information in the response.\nOptions:\n\t•`hasDraftWorkflow` For each workflow, returns information about whether the workflow has a draft version.\n\t•`operations` For each workflow, returns information about the actions that can be undertaken on the workflow.\n\t•`default` For each workflow, returns information about whether this is the default workflow."})},(0,atlascli_common_1.getSearchFlags)()),{orderBy:core_1.Flags.string({options:["id","created","updated"]}),isActive:core_1.Flags.boolean({description:"Filters active and inactive workflows.",allowNo:!0})}),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class SearchWorkflows extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,a){var o=(await this.parse(SearchWorkflows)).flags,r=this.removeFlagsFromBase(o),t=r.all,r=tslib_1.__rest(r,["all"]),s=(this.modifySearchQuery(r),await a.workflowManager.searchWorkflows(r));t&&(s.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(s,r,a.workflowManager.searchWorkflows.bind(a.workflowManager))),this.display(o,this.modifyWorkflowCloudResponse(s.values,o))}async runWithServerSite(e,a){var o=(await this.parse(SearchWorkflows)).flags,r=this.removeFlagsFromBase(o),a=await a.workflowManager.getAllWorkflows(r);this.display(o,a,(e,a)=>{a.lastModifiedDate=e.lastModifiedDate||"",a.lastModifiedUser=e.lastModifiedUser||""})}modifyWorkflowCloudResponse(e,t){let s=[];return e.forEach(e=>{var a={},{entityId:o,name:r}=e.id;a.id=o,a.name=r,a.description=e.description,this.addExpandInfo(e,a,t.expand),a.created=e.created,a.updated=e.updated,s.push(a)}),s}addExpandInfo(e,a,o){switch(o){case"schemes":a.canEdit=e.operations.canEdit||"",a.canDelete=e.operations.canDelete||"";break;case"default":a.isDefault=e.isDefault;break;case"hasDraftWorkflow":a.hasDraftWorkflow=e.hasDraftWorkflow}}modifySearchQuery(e){e.queryString=e.query,delete e.query}}(exports.default=SearchWorkflows).description="Searches all workflows.",SearchWorkflows.flags=Object.assign(Object.assign(Object.assign(Object.assign({workflowName:core_1.Flags.string({char:"n",description:"The name of a workflow to return. Multiple values can be provided by repeating this flag\nNote: Providing multiple names feature is only available for cloud.",multiple:!0}),expand:core_1.Flags.string({description:"Use expand to include additional information in the response.\nOptions:\n\t•`hasDraftWorkflow` For each workflow, returns information about whether the workflow has a draft version.\n\t•`operations` For each workflow, returns information about the actions that can be undertaken on the workflow.\n\t•`default` For each workflow, returns information about whether this is the default workflow."})},(0,atlascli_common_1.getSearchFlags)()),{orderBy:core_1.Flags.string({options:["id","created","updated"]}),isActive:core_1.Flags.boolean({description:"Filters active and inactive workflows.",allowNo:!0})}),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),atlascli_common_2=require("@thestarware/atlascli-common");class CreateWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:o,args:a}=await this.parse(CreateWorkflow),e=this.getJira(e,o),r=this.removeFlagsFromBase(o);o.show?this.showSampleJSONBody(o):await this.createWorkflowScheme(r,a,e)}async createWorkflowScheme(e,o,a){var r=Object.values(e).every(e=>void 0===e);let t=o.issueLinkBody;if(r&&void 0===t){if(!(t=JSON.parse(await(0,atlascli_common_1.readStdin)()))||0===t.length)throw new Error("You should provide a valid JSON for the workflow! You can use `jira workflow-scheme:create --show` command to generate a valid JSON body.")}else t=e;o=await a.workflowSchemeManager.createWorkflowScheme(t);this.display(e,o)}showSampleJSONBody(e){e.json=!0,this.display(e,{name:"Example workflow scheme",description:"The description of the example workflow scheme.",defaultWorkflow:"jira",issueTypeMappings:{1e4:"jira",10001:"Builds Workflow"},updateDraftIfNeeded:!0})}}(exports.default=CreateWorkflow).description="Creates workflow scheme. You can also provide request body as JSON using STDIN without specifying any flags.",CreateWorkflow.flags=Object.assign({name:core_1.Flags.string({char:"n",description:"The name of the workflow scheme. (Required)"}),description:core_1.Flags.string({description:"The description of the workflow scheme."}),issueTypeMappings:core_1.Flags.string({description:"The issue type to workflow mappings, where each mapping is an issue type ID and workflow name pair. Note that an issue type can only be mapped to one workflow in a workflow scheme.\nExample usage: --issueTypeMappings=issueTypeId=WorkflowName,issueTypeId2=WorkflowName2",parse:e=>(0,atlascli_common_2.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(e)[0]}),updateDraftIfNeeded:core_1.Flags.boolean({description:`Whether to create or update a draft workflow scheme when updating an active workflow scheme. An active workflow scheme is a workflow scheme that is used by at least one project. The following examples show how this property works:
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),atlascli_common_2=require("@thestarware/atlascli-common");class CreateWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:o,args:a}=await this.parse(CreateWorkflow),e=this.getJira(e,o),r=this.removeFlagsFromBase(o);o.show?this.showSampleJSONBody(o):await this.createWorkflowScheme(r,a,e)}async createWorkflowScheme(e,o,a){var r=Object.values(e).every(e=>void 0===e);let t=o.issueLinkBody;if(r&&void 0===t){if(!(t=JSON.parse(await(0,atlascli_common_1.readStdin)()))||0===t.length)throw new Error("You should provide a valid JSON for the workflow! You can use `jira workflow-scheme:create --show` command to generate a valid JSON body.")}else t=e;o=await a.workflowSchemeManager.createWorkflowScheme(t);this.display(e,o)}showSampleJSONBody(e){e.json=!0,this.display(e,{name:"Example workflow scheme",description:"The description of the example workflow scheme.",defaultWorkflow:"jira",issueTypeMappings:{1e4:"jira",10001:"Builds Workflow"},updateDraftIfNeeded:!0})}}(exports.default=CreateWorkflow).description="Creates workflow scheme. You can also provide request body as JSON using STDIN without specifying any flags.",CreateWorkflow.flags=Object.assign({name:core_1.Flags.string({char:"n",description:"The name of the workflow scheme. (Required)"}),description:core_1.Flags.string({description:"The description of the workflow scheme."}),issueTypeMappings:core_1.Flags.string({description:"The issue type to workflow mappings, where each mapping is an issue type ID and workflow name pair. Note that an issue type can only be mapped to one workflow in a workflow scheme.\nExample usage: --issueTypeMappings=issueTypeId=WorkflowName,issueTypeId2=WorkflowName2",parse:e=>(0,atlascli_common_2.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(e)[0]}),updateDraftIfNeeded:core_1.Flags.boolean({description:`Whether to create or update a draft workflow scheme when updating an active workflow scheme. An active workflow scheme is a workflow scheme that is used by at least one project. The following examples show how this property works:
2
2
 
3
3
  • Update an active workflow scheme with updateDraftIfNeeded set to true: If a draft workflow scheme exists, it is updated. Otherwise, a draft workflow scheme is created.
4
4
  • Update an active workflow scheme with updateDraftIfNeeded set to false: An error is returned, as active workflow schemes cannot be updated.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteDefaultWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteDefaultWorkflow))["flags"],e=await this.getJira(e,t).workflowSchemeManager.deleteDefaultWorkflow(t.workflowSchemeId,{updateDraftIfNeeded:t.updateDraftIfNeeded});this.display(t,e)}}(exports.default=DeleteDefaultWorkflow).description="Deletes default workflow of a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the default workflow reset. The draft workflow scheme can be published in Jira.",DeleteDefaultWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Set to true to create or update the draft of a workflow scheme and delete the mapping from the draft, when the workflow scheme cannot be edited."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteDefaultWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteDefaultWorkflow)).flags,e=await this.getJira(e,t).workflowSchemeManager.deleteDefaultWorkflow(t.workflowSchemeId,{updateDraftIfNeeded:t.updateDraftIfNeeded});this.display(t,e)}}(exports.default=DeleteDefaultWorkflow).description="Deletes default workflow of a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the default workflow reset. The draft workflow scheme can be published in Jira.",DeleteDefaultWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Set to true to create or update the draft of a workflow scheme and delete the mapping from the draft, when the workflow scheme cannot be edited."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),set_workflow_for_issue_type_1=require("./set-workflow-for-issue-type");class DeleteIssueTypesForWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var o=(await this.parse(DeleteIssueTypesForWorkflow))["flags"],e=await this.getJira(e,o).workflowSchemeManager.deleteIssueTypeForWorkflows(o.workflowSchemeId,{workflowName:o.workflow,updateDraftIfNeeded:o.updateDraftIfNeeded});this.display(o,(0,set_workflow_for_issue_type_1.issueTypeMappingsForDisplay)(e.issueTypeMappings))}}(exports.default=DeleteIssueTypesForWorkflow).description="Deletes the workflow-issue type mapping for a workflow in a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the issue type-workflow mapping deleted. The draft workflow scheme can be published in Jira.",DeleteIssueTypesForWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),workflow:core_1.Flags.string({description:"The name of the workflow.",required:!0}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Set to true to create or update the draft of a workflow scheme and delete the mapping from the draft, when the workflow scheme cannot be edited."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),set_workflow_for_issue_type_1=require("./set-workflow-for-issue-type");class DeleteIssueTypesForWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var o=(await this.parse(DeleteIssueTypesForWorkflow)).flags,e=await this.getJira(e,o).workflowSchemeManager.deleteIssueTypeForWorkflows(o.workflowSchemeId,{workflowName:o.workflow,updateDraftIfNeeded:o.updateDraftIfNeeded});this.display(o,(0,set_workflow_for_issue_type_1.issueTypeMappingsForDisplay)(e.issueTypeMappings))}}(exports.default=DeleteIssueTypesForWorkflow).description="Deletes the workflow-issue type mapping for a workflow in a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the issue type-workflow mapping deleted. The draft workflow scheme can be published in Jira.",DeleteIssueTypesForWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),workflow:core_1.Flags.string({description:"The name of the workflow.",required:!0}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Set to true to create or update the draft of a workflow scheme and delete the mapping from the draft, when the workflow scheme cannot be edited."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),set_workflow_for_issue_type_1=require("./set-workflow-for-issue-type");class DeleteWorkflowForIssueType extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteWorkflowForIssueType))["flags"],e=await this.getJira(e,t).workflowSchemeManager.deleteWorkflowForIssueType(t.workflowSchemeId,t.issueType,{updateDraftIfNeeded:t.updateDraftIfNeeded});this.display(t,(0,set_workflow_for_issue_type_1.issueTypeMappingsForDisplay)(e.issueTypeMappings))}}(exports.default=DeleteWorkflowForIssueType).description="Deletes the issue type-workflow mapping for an issue type in a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the issue type-workflow mapping deleted. The draft workflow scheme can be published in Jira.",DeleteWorkflowForIssueType.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),issueType:core_1.Flags.string({description:"The ID of the issue type.",required:!0}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Set to true to create or update the draft of a workflow scheme and delete the mapping from the draft, when the workflow scheme cannot be edited."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),set_workflow_for_issue_type_1=require("./set-workflow-for-issue-type");class DeleteWorkflowForIssueType extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteWorkflowForIssueType)).flags,e=await this.getJira(e,t).workflowSchemeManager.deleteWorkflowForIssueType(t.workflowSchemeId,t.issueType,{updateDraftIfNeeded:t.updateDraftIfNeeded});this.display(t,(0,set_workflow_for_issue_type_1.issueTypeMappingsForDisplay)(e.issueTypeMappings))}}(exports.default=DeleteWorkflowForIssueType).description="Deletes the issue type-workflow mapping for an issue type in a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the issue type-workflow mapping deleted. The draft workflow scheme can be published in Jira.",DeleteWorkflowForIssueType.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),issueType:core_1.Flags.string({description:"The ID of the issue type.",required:!0}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Set to true to create or update the draft of a workflow scheme and delete the mapping from the draft, when the workflow scheme cannot be edited."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteWorkflowScheme extends atlascli_common_1.CommandWithSite{async runWithSite(e){var o=(await this.parse(DeleteWorkflowScheme))["flags"];await this.getJira(e,o).workflowSchemeManager.deleteWorkflowScheme(o.workflowSchemeId)}}(exports.default=DeleteWorkflowScheme).description="Deletes a workflow scheme.",DeleteWorkflowScheme.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteWorkflowScheme extends atlascli_common_1.CommandWithSite{async runWithSite(e){var o=(await this.parse(DeleteWorkflowScheme)).flags;await this.getJira(e,o).workflowSchemeManager.deleteWorkflowScheme(o.workflowSchemeId)}}(exports.default=DeleteWorkflowScheme).description="Deletes a workflow scheme.",DeleteWorkflowScheme.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetAllWorkflowSchemes extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,l){var a=(await this.parse(GetAllWorkflowSchemes))["flags"],s=this.removeFlagsFromBase(a),t=s["all"],s=tslib_1.__rest(s,["all"]),o=await l.workflowSchemeManager.getAllWorkflowSchemes(s);t&&(o.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(o,s,l.workflowSchemeManager.getAllWorkflowSchemes.bind(l.workflowSchemeManager))),this.display(a,o.values)}}(exports.default=GetAllWorkflowSchemes).description="Gets all workflow schemes.",GetAllWorkflowSchemes.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetAllWorkflowSchemes extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,l){var a=(await this.parse(GetAllWorkflowSchemes)).flags,s=this.removeFlagsFromBase(a),t=s.all,s=tslib_1.__rest(s,["all"]),o=await l.workflowSchemeManager.getAllWorkflowSchemes(s);t&&(o.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(o,s,l.workflowSchemeManager.getAllWorkflowSchemes.bind(l.workflowSchemeManager))),this.display(a,o.values)}}(exports.default=GetAllWorkflowSchemes).description="Gets all workflow schemes.",GetAllWorkflowSchemes.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetDefaultWorkflowScheme extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetDefaultWorkflowScheme))["flags"],e=await this.getJira(e,t).workflowSchemeManager.getDefaultWorkflow(t.workflowSchemeId,{returnDraftIfExists:t.returnDraftIfExists});this.display(t,e)}}(exports.default=GetDefaultWorkflowScheme).description="Gets default workflow of workflow scheme.",GetDefaultWorkflowScheme.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),returnDraftIfExists:core_1.Flags.boolean({description:"Returns the workflow scheme's draft rather than scheme itself, if set to true. If the workflow scheme does not have a draft, then the workflow scheme is returned"})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetDefaultWorkflowScheme extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetDefaultWorkflowScheme)).flags,e=await this.getJira(e,t).workflowSchemeManager.getDefaultWorkflow(t.workflowSchemeId,{returnDraftIfExists:t.returnDraftIfExists});this.display(t,e)}}(exports.default=GetDefaultWorkflowScheme).description="Gets default workflow of workflow scheme.",GetDefaultWorkflowScheme.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),returnDraftIfExists:core_1.Flags.boolean({description:"Returns the workflow scheme's draft rather than scheme itself, if set to true. If the workflow scheme does not have a draft, then the workflow scheme is returned"})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetIssueTypesForWorklows extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(GetIssueTypesForWorklows))["flags"],e=await this.getJira(e,s).workflowSchemeManager.getIssueTypeForWorkflows(s.workflowSchemeId,{workflowName:s.workflowName,returnDraftIfExists:s.returnDraftIfExists});this.display(s,s.json?e:this.modifyResponseForDisplay(e))}modifyResponseForDisplay(e){const r=[];return(e=Array.isArray(e)?e:[e]).forEach(o=>{o.issueTypes.forEach(e=>{var s={};s.issueTypeId=e,s.workflow=o.workflow,s.defaultMapping=o.defaultMapping,r.push(s)})}),r}}(exports.default=GetIssueTypesForWorklows).description="Gets the workflow-issue type mappings for a workflow scheme.",GetIssueTypesForWorklows.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),workflowName:core_1.Flags.string({description:"The name of a workflow in the scheme. Limits the results to the workflow-issue type mapping for the specified workflow"}),returnDraftIfExists:core_1.Flags.boolean({description:"Returns the workflow scheme's draft rather than scheme itself, if set to true. If the workflow scheme does not have a draft, then the workflow scheme is returned"})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetIssueTypesForWorklows extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(GetIssueTypesForWorklows)).flags,e=await this.getJira(e,s).workflowSchemeManager.getIssueTypeForWorkflows(s.workflowSchemeId,{workflowName:s.workflowName,returnDraftIfExists:s.returnDraftIfExists});this.display(s,s.json?e:this.modifyResponseForDisplay(e))}modifyResponseForDisplay(e){let r=[];return(e=Array.isArray(e)?e:[e]).forEach(o=>{o.issueTypes.forEach(e=>{var s={};s.issueTypeId=e,s.workflow=o.workflow,s.defaultMapping=o.defaultMapping,r.push(s)})}),r}}(exports.default=GetIssueTypesForWorklows).description="Gets the workflow-issue type mappings for a workflow scheme.",GetIssueTypesForWorklows.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),workflowName:core_1.Flags.string({description:"The name of a workflow in the scheme. Limits the results to the workflow-issue type mapping for the specified workflow"}),returnDraftIfExists:core_1.Flags.boolean({description:"Returns the workflow scheme's draft rather than scheme itself, if set to true. If the workflow scheme does not have a draft, then the workflow scheme is returned"})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetWorkflowForIssueType extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(GetWorkflowForIssueType))["flags"],e=await this.getJira(e,s).workflowSchemeManager.getWorkflowForIssueType(s.workflowSchemeId,s.issueType,{returnDraftIfExists:s.returnDraftIfExists});this.display(s,e)}}(exports.default=GetWorkflowForIssueType).description="Gets the issue type-workflow mapping for an issue type in a workflow scheme.",GetWorkflowForIssueType.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),issueType:core_1.Flags.string({description:"The ID of the issue type.",required:!0}),returnDraftIfExists:core_1.Flags.boolean({description:"Returns the workflow scheme's draft rather than scheme itself, if set to true. If the workflow scheme does not have a draft, then the workflow scheme is returned"})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetWorkflowForIssueType extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(GetWorkflowForIssueType)).flags,e=await this.getJira(e,s).workflowSchemeManager.getWorkflowForIssueType(s.workflowSchemeId,s.issueType,{returnDraftIfExists:s.returnDraftIfExists});this.display(s,e)}}(exports.default=GetWorkflowForIssueType).description="Gets the issue type-workflow mapping for an issue type in a workflow scheme.",GetWorkflowForIssueType.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),issueType:core_1.Flags.string({description:"The ID of the issue type.",required:!0}),returnDraftIfExists:core_1.Flags.boolean({description:"Returns the workflow scheme's draft rather than scheme itself, if set to true. If the workflow scheme does not have a draft, then the workflow scheme is returned"})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetWorkflowScheme extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=[];const{flags:r,argv:o}=await this.parse(GetWorkflowScheme),s=this.getJira(e,r),a=(t.push(...r.workflowSchemeId||[]),t.push(...Array.isArray(o)?o:"string"==typeof o?[o]:[]),0===t.length&&this.error("No workflow scheme id is specified."),{returnDraftIfExists:r.returnDraftIfExists});e=t.sort().map(e=>s.workflowSchemeManager.getWorkflowScheme(e,a));await Promise.all(e).then(e=>{0<e.length&&this.display(r,e)})}}(exports.default=GetWorkflowScheme).strict=!1,GetWorkflowScheme.description="Gets a workflow scheme.",GetWorkflowScheme.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",multiple:!0}),returnDraftIfExists:core_1.Flags.boolean({description:"Returns the workflow scheme's draft rather than scheme itself, if set to true. If the workflow scheme does not have a draft, then the workflow scheme is returned"})},atlascli_common_1.CommandWithSite.flags),GetWorkflowScheme.args=[{name:"workflowSchemeId",description:"The ID of the workflow scheme."}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetWorkflowScheme extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=[];let{flags:r,argv:o}=await this.parse(GetWorkflowScheme),s=this.getJira(e,r),a=(t.push(...r.workflowSchemeId||[]),t.push(...Array.isArray(o)?o:"string"==typeof o?[o]:[]),0===t.length&&this.error("No workflow scheme id is specified."),{returnDraftIfExists:r.returnDraftIfExists});e=t.sort().map(e=>s.workflowSchemeManager.getWorkflowScheme(e,a));await Promise.all(e).then(e=>{0<e.length&&this.display(r,e)})}}(exports.default=GetWorkflowScheme).strict=!1,GetWorkflowScheme.description="Gets a workflow scheme.",GetWorkflowScheme.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",multiple:!0}),returnDraftIfExists:core_1.Flags.boolean({description:"Returns the workflow scheme's draft rather than scheme itself, if set to true. If the workflow scheme does not have a draft, then the workflow scheme is returned"})},atlascli_common_1.CommandWithSite.flags),GetWorkflowScheme.args=[{name:"workflowSchemeId",description:"The ID of the workflow scheme."}];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),set_workflow_for_issue_type_1=require("./set-workflow-for-issue-type");class SetIssueTypeForWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var o=(await this.parse(SetIssueTypeForWorkflow))["flags"],e=this.getJira(e,o),s=this.removeFlagsFromBase(o),t=s["workflowSchemeId"],s=tslib_1.__rest(s,["workflowSchemeId"]),e=(s.issueTypes=s.issueTypes.split(","),await e.workflowSchemeManager.setIssueTypeForWorkflows(t,{workflowName:o.workflow},s));this.display(o,(0,set_workflow_for_issue_type_1.issueTypeMappingsForDisplay)(e.issueTypeMappings))}}(exports.default=SetIssueTypeForWorkflow).description="Sets the issue types for a workflow in a workflow scheme. The workflow can also be set as the default workflow for the workflow scheme. Unmapped issues types are mapped to the default workflow.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true in the request body and a draft workflow scheme is created or updated with the new issue type-workflow mapping. The draft workflow scheme can be published in Jira.",SetIssueTypeForWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),issueTypes:core_1.Flags.string({description:"The list of issue type IDs. Please separete values with comma. Example Usage --issueTypes=10000,10001",required:!0}),workflow:core_1.Flags.string({description:"The name of the workflow.",required:!0}),defaultMapping:core_1.Flags.boolean({description:"Whether the workflow is the default workflow for the workflow scheme."}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Set to true to create or update the draft of a workflow scheme and update the mapping in the draft, when the workflow scheme cannot be edited. Defaults to false. Only applicable when updating the workflow-issue types mapping."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),set_workflow_for_issue_type_1=require("./set-workflow-for-issue-type");class SetIssueTypeForWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var o=(await this.parse(SetIssueTypeForWorkflow)).flags,e=this.getJira(e,o),s=this.removeFlagsFromBase(o),t=s.workflowSchemeId,s=tslib_1.__rest(s,["workflowSchemeId"]),e=(s.issueTypes=s.issueTypes.split(","),await e.workflowSchemeManager.setIssueTypeForWorkflows(t,{workflowName:o.workflow},s));this.display(o,(0,set_workflow_for_issue_type_1.issueTypeMappingsForDisplay)(e.issueTypeMappings))}}(exports.default=SetIssueTypeForWorkflow).description="Sets the issue types for a workflow in a workflow scheme. The workflow can also be set as the default workflow for the workflow scheme. Unmapped issues types are mapped to the default workflow.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true in the request body and a draft workflow scheme is created or updated with the new issue type-workflow mapping. The draft workflow scheme can be published in Jira.",SetIssueTypeForWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),issueTypes:core_1.Flags.string({description:"The list of issue type IDs. Please separete values with comma. Example Usage --issueTypes=10000,10001",required:!0}),workflow:core_1.Flags.string({description:"The name of the workflow.",required:!0}),defaultMapping:core_1.Flags.boolean({description:"Whether the workflow is the default workflow for the workflow scheme."}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Set to true to create or update the draft of a workflow scheme and update the mapping in the draft, when the workflow scheme cannot be edited. Defaults to false. Only applicable when updating the workflow-issue types mapping."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.issueTypeMappingsForDisplay=void 0;const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");function issueTypeMappingsForDisplay(e){const s=[];return e&&Object.entries(e).forEach(e=>s.push({issueType:e[0],workflow:e[1]})),s}exports.issueTypeMappingsForDisplay=issueTypeMappingsForDisplay;class SetWorkflowForIssueType extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(SetWorkflowForIssueType))["flags"],e=this.getJira(e,s),o=this.removeFlagsFromBase(s),t=o["workflowSchemeId"],o=tslib_1.__rest(o,["workflowSchemeId"]),e=await e.workflowSchemeManager.setWorkflowForIssueType(t,s.issueType,o);this.display(s,issueTypeMappingsForDisplay(e.issueTypeMappings))}}(exports.default=SetWorkflowForIssueType).description="Sets the workflow for an issue type in a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true in the request body and a draft workflow scheme is created or updated with the new issue type-workflow mapping. The draft workflow scheme can be published in Jira.",SetWorkflowForIssueType.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),issueType:core_1.Flags.string({description:"The ID of the issue type.",required:!0}),workflow:core_1.Flags.string({description:"The name of the workflow."}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Set to true to create or update the draft of a workflow scheme and update the mapping in the draft, when the workflow scheme cannot be edited. Defaults to false. Only applicable when updating the workflow-issue types mapping."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.issueTypeMappingsForDisplay=void 0;let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");function issueTypeMappingsForDisplay(e){let s=[];return e&&Object.entries(e).forEach(e=>s.push({issueType:e[0],workflow:e[1]})),s}exports.issueTypeMappingsForDisplay=issueTypeMappingsForDisplay;class SetWorkflowForIssueType extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(SetWorkflowForIssueType)).flags,e=this.getJira(e,s),o=this.removeFlagsFromBase(s),t=o.workflowSchemeId,o=tslib_1.__rest(o,["workflowSchemeId"]),e=await e.workflowSchemeManager.setWorkflowForIssueType(t,s.issueType,o);this.display(s,issueTypeMappingsForDisplay(e.issueTypeMappings))}}(exports.default=SetWorkflowForIssueType).description="Sets the workflow for an issue type in a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true in the request body and a draft workflow scheme is created or updated with the new issue type-workflow mapping. The draft workflow scheme can be published in Jira.",SetWorkflowForIssueType.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),issueType:core_1.Flags.string({description:"The ID of the issue type.",required:!0}),workflow:core_1.Flags.string({description:"The name of the workflow."}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Set to true to create or update the draft of a workflow scheme and update the mapping in the draft, when the workflow scheme cannot be edited. Defaults to false. Only applicable when updating the workflow-issue types mapping."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateDefaultWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var o=(await this.parse(UpdateDefaultWorkflow))["flags"],e=await this.getJira(e,o).workflowSchemeManager.updateDefaultWorkflow(o.workflowSchemeId,{workflow:o.workflow,updateDraftIfNeeded:o.updateDraftIfNeeded});this.display(o,e)}}(exports.default=UpdateDefaultWorkflow).description="Updates default workflow of a workflow scheme.",UpdateDefaultWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),workflow:core_1.Flags.string({char:"w",description:"The name of the workflow to set as the default workflow",required:!0}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Whether a draft workflow scheme is created or updated when updating an active workflow scheme. The draft is updated with the new default workflow"})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateDefaultWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var o=(await this.parse(UpdateDefaultWorkflow)).flags,e=await this.getJira(e,o).workflowSchemeManager.updateDefaultWorkflow(o.workflowSchemeId,{workflow:o.workflow,updateDraftIfNeeded:o.updateDraftIfNeeded});this.display(o,e)}}(exports.default=UpdateDefaultWorkflow).description="Updates default workflow of a workflow scheme.",UpdateDefaultWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),workflow:core_1.Flags.string({char:"w",description:"The name of the workflow to set as the default workflow",required:!0}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Whether a draft workflow scheme is created or updated when updating an active workflow scheme. The draft is updated with the new default workflow"})},atlascli_common_1.CommandWithSite.flags);
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),atlascli_common_2=require("@thestarware/atlascli-common");class UpdateWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:o,args:a}=await this.parse(UpdateWorkflow),e=this.getJira(e,o),t=this.removeFlagsFromBase(o);o.show?this.showSampleJSONBody(o):await this.updateWorkflowScheme(t,a,e)}async updateWorkflowScheme(e,o,a){var t=e["workflowSchemeId"],s=tslib_1.__rest(e,["workflowSchemeId"]),r=Object.values(s).every(e=>void 0===e);let i=o.issueLinkBody;if(r&&void 0===i){if(!(i=JSON.parse(await(0,atlascli_common_1.readStdin)()))||0===i.length)throw new Error("You should provide a valid JSON for the workflow! You can use `jira workflow-scheme:update --show` command to generate a valid JSON body.")}else i=s;o=await a.workflowSchemeManager.updateWorkflowScheme(t,i);this.display(e,o)}showSampleJSONBody(e){e.json=!0,this.display(e,{name:"Example workflow scheme",description:"The description of the example workflow scheme.",defaultWorkflow:"jira",issueTypeMappings:{1e4:"jira",10001:"Builds Workflow"},updateDraftIfNeeded:!0})}}(exports.default=UpdateWorkflow).description="Updates workflow scheme. You can also provide request body as JSON using STDIN without specifying any flags.",UpdateWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the workflow scheme."}),description:core_1.Flags.string({description:"The description of the workflow scheme."}),issueTypeMappings:core_1.Flags.string({description:"The issue type to workflow mappings, where each mapping is an issue type ID and workflow name pair. Note that an issue type can only be mapped to one workflow in a workflow scheme.\nExample usage: --issueTypeMappings=issueTypeId=WorkflowName,issueTypeId2=WorkflowName2",parse:e=>(0,atlascli_common_2.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(e)[0]}),updateDraftIfNeeded:core_1.Flags.boolean({description:`Whether to create or update a draft workflow scheme when updating an active workflow scheme. An active workflow scheme is a workflow scheme that is used by at least one project. The following examples show how this property works:
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),atlascli_common_2=require("@thestarware/atlascli-common");class UpdateWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:o,args:a}=await this.parse(UpdateWorkflow),e=this.getJira(e,o),t=this.removeFlagsFromBase(o);o.show?this.showSampleJSONBody(o):await this.updateWorkflowScheme(t,a,e)}async updateWorkflowScheme(e,o,a){var t=e.workflowSchemeId,s=tslib_1.__rest(e,["workflowSchemeId"]),r=Object.values(s).every(e=>void 0===e);let i=o.issueLinkBody;if(r&&void 0===i){if(!(i=JSON.parse(await(0,atlascli_common_1.readStdin)()))||0===i.length)throw new Error("You should provide a valid JSON for the workflow! You can use `jira workflow-scheme:update --show` command to generate a valid JSON body.")}else i=s;o=await a.workflowSchemeManager.updateWorkflowScheme(t,i);this.display(e,o)}showSampleJSONBody(e){e.json=!0,this.display(e,{name:"Example workflow scheme",description:"The description of the example workflow scheme.",defaultWorkflow:"jira",issueTypeMappings:{1e4:"jira",10001:"Builds Workflow"},updateDraftIfNeeded:!0})}}(exports.default=UpdateWorkflow).description="Updates workflow scheme. You can also provide request body as JSON using STDIN without specifying any flags.",UpdateWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the workflow scheme."}),description:core_1.Flags.string({description:"The description of the workflow scheme."}),issueTypeMappings:core_1.Flags.string({description:"The issue type to workflow mappings, where each mapping is an issue type ID and workflow name pair. Note that an issue type can only be mapped to one workflow in a workflow scheme.\nExample usage: --issueTypeMappings=issueTypeId=WorkflowName,issueTypeId2=WorkflowName2",parse:e=>(0,atlascli_common_2.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(e)[0]}),updateDraftIfNeeded:core_1.Flags.boolean({description:`Whether to create or update a draft workflow scheme when updating an active workflow scheme. An active workflow scheme is a workflow scheme that is used by at least one project. The following examples show how this property works:
2
2
 
3
3
  • Update an active workflow scheme with updateDraftIfNeeded set to true: If a draft workflow scheme exists, it is updated. Otherwise, a draft workflow scheme is created.
4
4
  • Update an active workflow scheme with updateDraftIfNeeded set to false: An error is returned, as active workflow schemes cannot be updated.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class CreateWorkflowSchemeDraft extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(CreateWorkflowSchemeDraft))["flags"],e=await this.getJira(e,a).workflowSchemeDraftManager.createWorkflowSchemeDraft(a.workflowSchemeId);this.display(a,e)}}(exports.default=CreateWorkflowSchemeDraft).description="Create a draft workflow scheme from an active workflow scheme, by copying the active workflow scheme. Note that an active workflow scheme can only have one draft workflow scheme.",CreateWorkflowSchemeDraft.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the active workflow scheme that the draft was created from.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class CreateWorkflowSchemeDraft extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(CreateWorkflowSchemeDraft)).flags,e=await this.getJira(e,a).workflowSchemeDraftManager.createWorkflowSchemeDraft(a.workflowSchemeId);this.display(a,e)}}(exports.default=CreateWorkflowSchemeDraft).description="Create a draft workflow scheme from an active workflow scheme, by copying the active workflow scheme. Note that an active workflow scheme can only have one draft workflow scheme.",CreateWorkflowSchemeDraft.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the active workflow scheme that the draft was created from.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteDefaultWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteDefaultWorkflow))["flags"],e=await this.getJira(e,t).workflowSchemeDraftManager.deleteDraftDefaultWorkflow(t.workflowSchemeId);this.display(t,e)}}(exports.default=DeleteDefaultWorkflow).description="Deletes default workflow of a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the default workflow reset. The draft workflow scheme can be published in Jira.",DeleteDefaultWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme that the draft belongs to.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteDefaultWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteDefaultWorkflow)).flags,e=await this.getJira(e,t).workflowSchemeDraftManager.deleteDraftDefaultWorkflow(t.workflowSchemeId);this.display(t,e)}}(exports.default=DeleteDefaultWorkflow).description="Deletes default workflow of a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the default workflow reset. The draft workflow scheme can be published in Jira.",DeleteDefaultWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme that the draft belongs to.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),set_workflow_for_issue_type_1=require("./set-workflow-for-issue-type");class DeleteIssueTypesForWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var o=(await this.parse(DeleteIssueTypesForWorkflow))["flags"],e=await this.getJira(e,o).workflowSchemeDraftManager.deleteDraftIssueTypeForWorkflows(o.workflowSchemeId,{workflowName:o.workflow});this.display(o,(0,set_workflow_for_issue_type_1.issueTypeMappingsForDisplay)(e.issueTypeMappings))}}(exports.default=DeleteIssueTypesForWorkflow).description="Deletes the workflow-issue type mapping for a workflow in a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the issue type-workflow mapping deleted. The draft workflow scheme can be published in Jira.",DeleteIssueTypesForWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme that the draft belongs to.",required:!0}),workflow:core_1.Flags.string({description:"The name of the workflow.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),set_workflow_for_issue_type_1=require("./set-workflow-for-issue-type");class DeleteIssueTypesForWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var o=(await this.parse(DeleteIssueTypesForWorkflow)).flags,e=await this.getJira(e,o).workflowSchemeDraftManager.deleteDraftIssueTypeForWorkflows(o.workflowSchemeId,{workflowName:o.workflow});this.display(o,(0,set_workflow_for_issue_type_1.issueTypeMappingsForDisplay)(e.issueTypeMappings))}}(exports.default=DeleteIssueTypesForWorkflow).description="Deletes the workflow-issue type mapping for a workflow in a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the issue type-workflow mapping deleted. The draft workflow scheme can be published in Jira.",DeleteIssueTypesForWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme that the draft belongs to.",required:!0}),workflow:core_1.Flags.string({description:"The name of the workflow.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),set_workflow_for_issue_type_1=require("./set-workflow-for-issue-type");class DeleteWorkflowForIssueType extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(DeleteWorkflowForIssueType))["flags"],e=await this.getJira(e,s).workflowSchemeDraftManager.deleteDraftWorkflowForIssueType(s.workflowSchemeId,s.issueType);this.display(s,(0,set_workflow_for_issue_type_1.issueTypeMappingsForDisplay)(e.issueTypeMappings))}}(exports.default=DeleteWorkflowForIssueType).description="Deletes the issue type-workflow mapping for an issue type in a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the issue type-workflow mapping deleted. The draft workflow scheme can be published in Jira.",DeleteWorkflowForIssueType.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme that the draft belongs to.",required:!0}),issueType:core_1.Flags.string({description:"The ID of the issue type.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),set_workflow_for_issue_type_1=require("./set-workflow-for-issue-type");class DeleteWorkflowForIssueType extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(DeleteWorkflowForIssueType)).flags,e=await this.getJira(e,s).workflowSchemeDraftManager.deleteDraftWorkflowForIssueType(s.workflowSchemeId,s.issueType);this.display(s,(0,set_workflow_for_issue_type_1.issueTypeMappingsForDisplay)(e.issueTypeMappings))}}(exports.default=DeleteWorkflowForIssueType).description="Deletes the issue type-workflow mapping for an issue type in a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the issue type-workflow mapping deleted. The draft workflow scheme can be published in Jira.",DeleteWorkflowForIssueType.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme that the draft belongs to.",required:!0}),issueType:core_1.Flags.string({description:"The ID of the issue type.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteWorkflowSchemeDraft extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteWorkflowSchemeDraft))["flags"];await this.getJira(e,t).workflowSchemeDraftManager.deleteWorkflowSchemeDraft(t.workflowSchemeId)}}(exports.default=DeleteWorkflowSchemeDraft).description="Deletes a draft workflow scheme.",DeleteWorkflowSchemeDraft.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the active workflow scheme that the draft was created from.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteWorkflowSchemeDraft extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteWorkflowSchemeDraft)).flags;await this.getJira(e,t).workflowSchemeDraftManager.deleteWorkflowSchemeDraft(t.workflowSchemeId)}}(exports.default=DeleteWorkflowSchemeDraft).description="Deletes a draft workflow scheme.",DeleteWorkflowSchemeDraft.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the active workflow scheme that the draft was created from.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetDefaultWorkflowScheme extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetDefaultWorkflowScheme))["flags"],e=await this.getJira(e,t).workflowSchemeDraftManager.getDraftDefaultWorkflow(t.workflowSchemeId);this.display(t,e)}}(exports.default=GetDefaultWorkflowScheme).description="Gets default workflow of workflow scheme.",GetDefaultWorkflowScheme.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme that the draft belongs to.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetDefaultWorkflowScheme extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetDefaultWorkflowScheme)).flags,e=await this.getJira(e,t).workflowSchemeDraftManager.getDraftDefaultWorkflow(t.workflowSchemeId);this.display(t,e)}}(exports.default=GetDefaultWorkflowScheme).description="Gets default workflow of workflow scheme.",GetDefaultWorkflowScheme.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme that the draft belongs to.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetIssueTypesForWorklows extends atlascli_common_1.CommandWithSite{async runWithSite(e){var o=(await this.parse(GetIssueTypesForWorklows))["flags"],e=await this.getJira(e,o).workflowSchemeDraftManager.getDraftIssueTypeForWorkflows(o.workflowSchemeId,{workflowName:o.workflowName});this.display(o,o.json?e:this.modifyResponseForDisplay(e))}modifyResponseForDisplay(e){const r=[];return(e=Array.isArray(e)?e:[e]).forEach(s=>{s.issueTypes.forEach(e=>{var o={};o.issueTypeId=e,o.workflow=s.workflow,o.defaultMapping=s.defaultMapping,r.push(o)})}),r}}(exports.default=GetIssueTypesForWorklows).description="Gets the workflow-issue type mappings for a workflow scheme draft.",GetIssueTypesForWorklows.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme that the draft belongs to.",required:!0}),workflowName:core_1.Flags.string({description:"The name of a workflow in the scheme. Limits the results to the workflow-issue type mapping for the specified workflow"})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetIssueTypesForWorklows extends atlascli_common_1.CommandWithSite{async runWithSite(e){var o=(await this.parse(GetIssueTypesForWorklows)).flags,e=await this.getJira(e,o).workflowSchemeDraftManager.getDraftIssueTypeForWorkflows(o.workflowSchemeId,{workflowName:o.workflowName});this.display(o,o.json?e:this.modifyResponseForDisplay(e))}modifyResponseForDisplay(e){let r=[];return(e=Array.isArray(e)?e:[e]).forEach(s=>{s.issueTypes.forEach(e=>{var o={};o.issueTypeId=e,o.workflow=s.workflow,o.defaultMapping=s.defaultMapping,r.push(o)})}),r}}(exports.default=GetIssueTypesForWorklows).description="Gets the workflow-issue type mappings for a workflow scheme draft.",GetIssueTypesForWorklows.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme that the draft belongs to.",required:!0}),workflowName:core_1.Flags.string({description:"The name of a workflow in the scheme. Limits the results to the workflow-issue type mapping for the specified workflow"})},atlascli_common_1.CommandWithSite.flags);