@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 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).workflowSchemeDraftManager.getDraftWorkflowForIssueType(s.workflowSchemeId,s.issueType);this.display(s,e)}}(exports.default=GetWorkflowForIssueType).description="Gets the issue type-workflow mapping for an issue type in a workflow scheme draft.",GetWorkflowForIssueType.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");class GetWorkflowForIssueType extends atlascli_common_1.CommandWithSite{async runWithSite(e){var o=(await this.parse(GetWorkflowForIssueType)).flags,e=await this.getJira(e,o).workflowSchemeDraftManager.getDraftWorkflowForIssueType(o.workflowSchemeId,o.issueType);this.display(o,e)}}(exports.default=GetWorkflowForIssueType).description="Gets the issue type-workflow mapping for an issue type in a workflow scheme draft.",GetWorkflowForIssueType.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 GetWorkflowSchemeDraft extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=[];const{flags:o,argv:r}=await this.parse(GetWorkflowSchemeDraft),a=this.getJira(e,o);t.push(...o.workflowSchemeId||[]),t.push(...Array.isArray(r)?r:"string"==typeof r?[r]:[]),0===t.length&&this.error("No workflow scheme draft id is specified.");e=t.sort().map(e=>a.workflowSchemeDraftManager.getWorkflowSchemeDraft(e));await Promise.all(e).then(e=>{0<e.length&&this.display(o,e)})}}(exports.default=GetWorkflowSchemeDraft).strict=!1,GetWorkflowSchemeDraft.description="Gets the draft workflow scheme for an active workflow scheme. Draft workflow schemes allow changes to be made to the active workflow schemes: When an active workflow scheme is updated, a draft copy is created. The draft is modified, then the changes in the draft are copied back to the active workflow scheme.",GetWorkflowSchemeDraft.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the active workflow scheme that the draft was created from.",multiple:!0})},atlascli_common_1.CommandWithSite.flags),GetWorkflowSchemeDraft.args=[{name:"workflowSchemeId",description:"The ID of the active workflow scheme that the draft was created from."}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetWorkflowSchemeDraft extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=[];let{flags:r,argv:a}=await this.parse(GetWorkflowSchemeDraft),o=this.getJira(e,r);t.push(...r.workflowSchemeId||[]),t.push(...Array.isArray(a)?a:"string"==typeof a?[a]:[]),0===t.length&&this.error("No workflow scheme draft id is specified.");e=t.sort().map(e=>o.workflowSchemeDraftManager.getWorkflowSchemeDraft(e));await Promise.all(e).then(e=>{0<e.length&&this.display(r,e)})}}(exports.default=GetWorkflowSchemeDraft).strict=!1,GetWorkflowSchemeDraft.description="Gets the draft workflow scheme for an active workflow scheme. Draft workflow schemes allow changes to be made to the active workflow schemes: When an active workflow scheme is updated, a draft copy is created. The draft is modified, then the changes in the draft are copied back to the active workflow scheme.",GetWorkflowSchemeDraft.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the active workflow scheme that the draft was created from.",multiple:!0})},atlascli_common_1.CommandWithSite.flags),GetWorkflowSchemeDraft.args=[{name:"workflowSchemeId",description:"The ID of the active workflow scheme that the draft was created from."}];
@@ -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 PublishWorkflowSchemeDraft extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var a=(await this.parse(PublishWorkflowSchemeDraft))["flags"],t=await s.workflowSchemeDraftManager.publishDraft(a.workflowSchemeId,{validateOnly:a.validateOnly},{statusMappings:a.statusMappings});this.display(a,t),a.validateOnly||a.silent||await this.showProgressBar(t,s,"The draft is publishing...")}}(exports.default=PublishWorkflowSchemeDraft).description="Publishes a draft workflow scheme. Where the draft workflow includes new workflow statuses for an issue type, mappings are provided to update issues with the original workflow status to the new workflow status. This operation is asynchronous. You can use `jira task:get` command to obtain any updates.",PublishWorkflowSchemeDraft.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}),validateOnly:core_1.Flags.boolean({description:"Whether the request only performs a validation."}),statusMappings:core_1.Flags.string({description:"Mappings of statuses to new statuses for issue types. You can provide multiple values by repeating this flag. KEYS: [statusId, newStatusId, issueTypeId]\n Example use case: --statusMappings=statusId=10000,issueTypeId=10000,newStatusId=10000",multiple:!0,parse:e=>(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(e,"statusMappings",["statusId","newStatusId","issueTypeId"])[0]}),silent:core_1.Flags.boolean({description:"If you activate this flag progress bar will not be shown."})},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 PublishWorkflowSchemeDraft extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var a=(await this.parse(PublishWorkflowSchemeDraft)).flags,t=await s.workflowSchemeDraftManager.publishDraft(a.workflowSchemeId,{validateOnly:a.validateOnly},{statusMappings:a.statusMappings});this.display(a,t),a.validateOnly||a.silent||await this.showProgressBar(t,s,"The draft is publishing...")}}(exports.default=PublishWorkflowSchemeDraft).description="Publishes a draft workflow scheme. Where the draft workflow includes new workflow statuses for an issue type, mappings are provided to update issues with the original workflow status to the new workflow status. This operation is asynchronous. You can use `jira task:get` command to obtain any updates.",PublishWorkflowSchemeDraft.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}),validateOnly:core_1.Flags.boolean({description:"Whether the request only performs a validation."}),statusMappings:core_1.Flags.string({description:"Mappings of statuses to new statuses for issue types. You can provide multiple values by repeating this flag. KEYS: [statusId, newStatusId, issueTypeId]\n Example use case: --statusMappings=statusId=10000,issueTypeId=10000,newStatusId=10000",multiple:!0,parse:e=>(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(e,"statusMappings",["statusId","newStatusId","issueTypeId"])[0]}),silent:core_1.Flags.boolean({description:"If you activate this flag progress bar will not be shown."})},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"),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.workflowSchemeDraftManager.setDraftIssueTypeForWorkflows(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 that the draft belongs to.",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.workflowSchemeDraftManager.setDraftIssueTypeForWorkflows(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 that the draft belongs to.",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.workflowSchemeDraftManager.setDraftWorkflowForIssueType(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 draft.",SetWorkflowForIssueType.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}),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.workflowSchemeDraftManager.setDraftWorkflowForIssueType(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 draft.",SetWorkflowForIssueType.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}),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 t=(await this.parse(UpdateDefaultWorkflow))["flags"],e=await this.getJira(e,t).workflowSchemeDraftManager.updateDraftDefaultWorkflow(t.workflowSchemeId,{workflow:t.workflow,updateDraftIfNeeded:t.updateDraftIfNeeded});this.display(t,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 that the draft belongs to.",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 t=(await this.parse(UpdateDefaultWorkflow)).flags,e=await this.getJira(e,t).workflowSchemeDraftManager.updateDraftDefaultWorkflow(t.workflowSchemeId,{workflow:t.workflow,updateDraftIfNeeded:t.updateDraftIfNeeded});this.display(t,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 that the draft belongs to.",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 UpdateWorkflowSchemeDraft extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:o,args:a}=await this.parse(UpdateWorkflowSchemeDraft),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"],r=tslib_1.__rest(e,["workflowSchemeId"]),s=Object.values(r).every(e=>void 0===e);let i=o.issueLinkBody;if(s&&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-draft:update --show` command to generate a valid JSON body.")}else i=r;o=await a.workflowSchemeDraftManager.updateWorkflowSchemeDraft(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=UpdateWorkflowSchemeDraft).description="Updates a draft workflow scheme. If a draft workflow scheme does not exist for the active workflow scheme, then a draft is created. Note that an active workflow scheme can only have one draft workflow scheme. You can also provide request body as JSON using STDIN without specifying any flags.",UpdateWorkflowSchemeDraft.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}),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 UpdateWorkflowSchemeDraft extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:o,args:a}=await this.parse(UpdateWorkflowSchemeDraft),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,r=tslib_1.__rest(e,["workflowSchemeId"]),s=Object.values(r).every(e=>void 0===e);let i=o.issueLinkBody;if(s&&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-draft:update --show` command to generate a valid JSON body.")}else i=r;o=await a.workflowSchemeDraftManager.updateWorkflowSchemeDraft(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=UpdateWorkflowSchemeDraft).description="Updates a draft workflow scheme. If a draft workflow scheme does not exist for the active workflow scheme, then a draft is created. Note that an active workflow scheme can only have one draft workflow scheme. You can also provide request body as JSON using STDIN without specifying any flags.",UpdateWorkflowSchemeDraft.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}),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"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class AssignToProject extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,o){var t=(await this.parse(AssignToProject))["flags"],t=this.removeFlagsFromBase(t),s=await(0,project_util_1.getProject)(o,t.project);t.projectId=s.projectId,delete t.project,await o.workflowSchemeProjectAssociationManager.assingToProject(t)}}(exports.default=AssignToProject).description="Assigns a workflow scheme to a project. This operation is performed only when there are no issues in the project.",AssignToProject.flags=Object.assign({project:core_1.Flags.string({char:"p",description:"The ID or key of the project."}),workflowSchemeId:core_1.Flags.string({description:"The ID of the workflow scheme. If the workflow scheme ID is null, the operation assigns the default workflow scheme."})},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"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class AssignToProject extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,o){var t=(await this.parse(AssignToProject)).flags,t=this.removeFlagsFromBase(t),r=await(0,project_util_1.getProject)(o,t.project);t.projectId=r.projectId,delete t.project,await o.workflowSchemeProjectAssociationManager.assingToProject(t)}}(exports.default=AssignToProject).description="Assigns a workflow scheme to a project. This operation is performed only when there are no issues in the project.",AssignToProject.flags=Object.assign({project:core_1.Flags.string({char:"p",description:"The ID or key of the project."}),workflowSchemeId:core_1.Flags.string({description:"The ID of the workflow scheme. If the workflow scheme ID is null, the operation assigns the default workflow scheme."})},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"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class GetProjectAssociations extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,o){var t=(await this.parse(GetProjectAssociations))["flags"],s=this.removeFlagsFromBase(t),r=await(0,project_util_1.getProject)(o,s.project),r=(s.projectId=r.projectId,delete s.project,await o.workflowSchemeProjectAssociationManager.getProjects(s));this.display(t,this.modifyResponseForDisplay(r.values))}modifyResponseForDisplay(e){const t=[];return e.forEach(e=>{var o={};o.projectId=e.projectIds[0],o.workflowSchemeId=e.workflowScheme.id,o.workflowSchemeName=e.workflowScheme.name,t.push(o)}),t}}(exports.default=GetProjectAssociations).description="Gets a list of the workflow schemes associated with a list of projects",GetProjectAssociations.flags=Object.assign({project:core_1.Flags.string({char:"p",description:"The ID of a project to return the workflow schemes for. You can provide multiple values by repeating this flag.",multiple:!0,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"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class GetProjectAssociations extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,o){var t=(await this.parse(GetProjectAssociations)).flags,s=this.removeFlagsFromBase(t),r=await(0,project_util_1.getProject)(o,s.project),r=(s.projectId=r.projectId,delete s.project,await o.workflowSchemeProjectAssociationManager.getProjects(s));this.display(t,this.modifyResponseForDisplay(r.values))}modifyResponseForDisplay(e){let t=[];return e.forEach(e=>{var o={};o.projectId=e.projectIds[0],o.workflowSchemeId=e.workflowScheme.id,o.workflowSchemeName=e.workflowScheme.name,t.push(o)}),t}}(exports.default=GetProjectAssociations).description="Gets a list of the workflow schemes associated with a list of projects",GetProjectAssociations.flags=Object.assign({project:core_1.Flags.string({char:"p",description:"The ID of a project to return the workflow schemes for. You can provide multiple values by repeating this flag.",multiple:!0,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");class GetAllWorkflowStatus extends atlascli_common_1.CommandWithSite{async runWithSite(t){var a=(await this.parse(GetAllWorkflowStatus))["flags"],t=await this.getJira(t,a).workflowStatusManager.getAllStatuses();this.display(a,t)}}(exports.default=GetAllWorkflowStatus).description="Gets all statuses associated with active workflows.",GetAllWorkflowStatus.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common");class GetAllWorkflowStatus extends atlascli_common_1.CommandWithSite{async runWithSite(t){var a=(await this.parse(GetAllWorkflowStatus)).flags,t=await this.getJira(t,a).workflowStatusManager.getAllStatuses();this.display(a,t)}}(exports.default=GetAllWorkflowStatus).description="Gets all statuses associated with active workflows.",GetAllWorkflowStatus.flags=Object.assign({},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 GetWorkflowStatus extends atlascli_common_1.CommandWithSite{async runWithSite(t){var e=[];const{flags:s,argv:a}=await this.parse(GetWorkflowStatus),o=this.getJira(t,s);e.push(...s.idOrName||[]),e.push(...Array.isArray(a)?a:"string"==typeof a?[a]:[]),0===e.length&&this.error("No workflow status id is specified.");t=e.sort().map(t=>o.workflowStatusManager.getStatus(t));await Promise.all(t).then(t=>{0<t.length&&this.display(s,t)})}}(exports.default=GetWorkflowStatus).strict=!1,GetWorkflowStatus.description="Gets a status. The status must be associated with an active workflow to be returned. If a name is used on more than one status, only the status found first is returned. Therefore, identifying the status by its ID may be preferable. This operation can be accessed anonymously.",GetWorkflowStatus.flags=Object.assign({idOrName:core_1.Flags.string({description:"The ID or name of the status.",multiple:!0})},atlascli_common_1.CommandWithSite.flags),GetWorkflowStatus.args=[{name:"idOrName",description:"The ID or name of the status."}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetWorkflowStatus extends atlascli_common_1.CommandWithSite{async runWithSite(t){var e=[];let{flags:s,argv:a}=await this.parse(GetWorkflowStatus),o=this.getJira(t,s);e.push(...s.idOrName||[]),e.push(...Array.isArray(a)?a:"string"==typeof a?[a]:[]),0===e.length&&this.error("No workflow status id is specified.");t=e.sort().map(t=>o.workflowStatusManager.getStatus(t));await Promise.all(t).then(t=>{0<t.length&&this.display(s,t)})}}(exports.default=GetWorkflowStatus).strict=!1,GetWorkflowStatus.description="Gets a status. The status must be associated with an active workflow to be returned. If a name is used on more than one status, only the status found first is returned. Therefore, identifying the status by its ID may be preferable. This operation can be accessed anonymously.",GetWorkflowStatus.flags=Object.assign({idOrName:core_1.Flags.string({description:"The ID or name of the status.",multiple:!0})},atlascli_common_1.CommandWithSite.flags),GetWorkflowStatus.args=[{name:"idOrName",description:"The ID or name of the status."}];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetAllStatusCategories extends atlascli_common_1.CommandWithSite{async runWithSite(t){var a=(await this.parse(GetAllStatusCategories))["flags"],t=await this.getJira(t,a).workflowStatusCategoryManager.getAllStatusCatagories();this.display(a,t)}}(exports.default=GetAllStatusCategories).description="Gets a all status categories.",GetAllStatusCategories.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common");class GetAllStatusCategories extends atlascli_common_1.CommandWithSite{async runWithSite(t){var a=(await this.parse(GetAllStatusCategories)).flags,t=await this.getJira(t,a).workflowStatusCategoryManager.getAllStatusCatagories();this.display(a,t)}}(exports.default=GetAllStatusCategories).description="Gets a all status categories.",GetAllStatusCategories.flags=Object.assign({},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 GetWorkflowStatusCategory extends atlascli_common_1.CommandWithSite{async runWithSite(t){var e=(await this.parse(GetWorkflowStatusCategory))["flags"],t=await this.getJira(t,e).workflowStatusCategoryManager.getStatusCategory(e.idOrName);this.display(e,t)}}(exports.default=GetWorkflowStatusCategory).description="Gets a status category. Status categories provided a mechanism for categorizing statuses.",GetWorkflowStatusCategory.flags=Object.assign({idOrName:core_1.Flags.string({description:"The ID or name of the status.",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 GetWorkflowStatusCategory extends atlascli_common_1.CommandWithSite{async runWithSite(t){var e=(await this.parse(GetWorkflowStatusCategory)).flags,t=await this.getJira(t,e).workflowStatusCategoryManager.getStatusCategory(e.idOrName);this.display(e,t)}}(exports.default=GetWorkflowStatusCategory).description="Gets a status category. Status categories provided a mechanism for categorizing statuses.",GetWorkflowStatusCategory.flags=Object.assign({idOrName:core_1.Flags.string({description:"The ID or name of the status.",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 CreateTransitionProperties extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(CreateTransitionProperties))["flags"],e=this.getJira(e,t),r=this.removeFlagsFromBase(t),{transitionId:i,value:o}=r,r=tslib_1.__rest(r,["transitionId","value"]),e=await e.workflowTransitionPropertiesManager.createTransitionProperties(i,r,{value:o});this.display(t,e)}}(exports.default=CreateTransitionProperties).description="Adds a property to a workflow transition. Transition properties are used to change the behavior of a transition.",CreateTransitionProperties.flags=Object.assign({transitionId:core_1.Flags.string({char:"i",description:"The ID of the transition. To get the ID, view the workflow in text mode in the Jira administration console. The ID is shown next to the transition.",required:!0}),workflowName:core_1.Flags.string({char:"n",description:"The name of the workflow that the transition belongs to.",required:!0}),workflowMode:core_1.Flags.string({description:"The workflow status. Set to live for inactive workflows or draft for draft workflows. Active workflows cannot be edited.",options:["live","draft"],default:"live"}),key:core_1.Flags.string({char:"k",description:"The key of the property being added, also known as the name of the property.",required:!0}),value:core_1.Flags.string({description:"The value of the transition property.",required:!0})},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");class CreateTransitionProperties extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(CreateTransitionProperties)).flags,e=this.getJira(e,t),r=this.removeFlagsFromBase(t),{transitionId:i,value:o}=r,r=tslib_1.__rest(r,["transitionId","value"]),e=await e.workflowTransitionPropertiesManager.createTransitionProperties(i,r,{value:o});this.display(t,e)}}(exports.default=CreateTransitionProperties).description="Adds a property to a workflow transition. Transition properties are used to change the behavior of a transition.",CreateTransitionProperties.flags=Object.assign({transitionId:core_1.Flags.string({char:"i",description:"The ID of the transition. To get the ID, view the workflow in text mode in the Jira administration console. The ID is shown next to the transition.",required:!0}),workflowName:core_1.Flags.string({char:"n",description:"The name of the workflow that the transition belongs to.",required:!0}),workflowMode:core_1.Flags.string({description:"The workflow status. Set to live for inactive workflows or draft for draft workflows. Active workflows cannot be edited.",options:["live","draft"],default:"live"}),key:core_1.Flags.string({char:"k",description:"The key of the property being added, also known as the name of the property.",required:!0}),value:core_1.Flags.string({description:"The value of the transition property.",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 DeleteTransitionProperties extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteTransitionProperties))["flags"],e=this.getJira(e,t),t=this.removeFlagsFromBase(t),r=t["transitionId"],t=tslib_1.__rest(t,["transitionId"]);await e.workflowTransitionPropertiesManager.deleteTransitionProperties(r,t)}}(exports.default=DeleteTransitionProperties).description="Deletes a property from a workflow transition. Transition properties are used to change the behavior of a transition.",DeleteTransitionProperties.flags=Object.assign({transitionId:core_1.Flags.string({char:"i",description:"The ID of the transition. To get the ID, view the workflow in text mode in the Jira administration console. The ID is shown next to the transition.",required:!0}),workflowName:core_1.Flags.string({char:"n",description:"The name of the workflow that the transition belongs to.",required:!0}),workflowMode:core_1.Flags.string({description:"The workflow status. Set to live for active and inactive workflows, or draft for draft workflows.",options:["live","draft"],default:"live"}),key:core_1.Flags.string({char:"k",description:"The name of the transition property to delete, also known as the name of the property.",required:!0})},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");class DeleteTransitionProperties extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteTransitionProperties)).flags,e=this.getJira(e,t),t=this.removeFlagsFromBase(t),r=t.transitionId,t=tslib_1.__rest(t,["transitionId"]);await e.workflowTransitionPropertiesManager.deleteTransitionProperties(r,t)}}(exports.default=DeleteTransitionProperties).description="Deletes a property from a workflow transition. Transition properties are used to change the behavior of a transition.",DeleteTransitionProperties.flags=Object.assign({transitionId:core_1.Flags.string({char:"i",description:"The ID of the transition. To get the ID, view the workflow in text mode in the Jira administration console. The ID is shown next to the transition.",required:!0}),workflowName:core_1.Flags.string({char:"n",description:"The name of the workflow that the transition belongs to.",required:!0}),workflowMode:core_1.Flags.string({description:"The workflow status. Set to live for active and inactive workflows, or draft for draft workflows.",options:["live","draft"],default:"live"}),key:core_1.Flags.string({char:"k",description:"The name of the transition property to delete, also known as the name of the property.",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 GetTransitionProperties extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetTransitionProperties))["flags"],e=this.getJira(e,t),r=this.removeFlagsFromBase(t),i=r["transitionId"],r=tslib_1.__rest(r,["transitionId"]),e=await e.workflowTransitionPropertiesManager.getTransitionProperties(i,r);this.display(t,e)}}(exports.default=GetTransitionProperties).description="Gets properties on a workflow transition. Transition properties are used to change the behavior of a transition.",GetTransitionProperties.flags=Object.assign({transitionId:core_1.Flags.string({char:"i",description:"The ID of the transition. To get the ID, view the workflow in text mode in the Jira administration console. The ID is shown next to the transition.",required:!0}),workflowName:core_1.Flags.string({char:"n",description:"The name of the workflow that the transition belongs to.",required:!0}),workflowMode:core_1.Flags.string({description:"The workflow status. Set to live for active and inactive workflows, or draft for draft workflows.",options:["live","draft"],default:"live"}),key:core_1.Flags.string({char:"k",description:"The key of the property being returned, also known as the name of the property. If this parameter is not specified, all properties on the transition are returned."}),includeReservedKeys:core_1.Flags.boolean({description:"Some properties with keys that have the jira. prefix are reserved, which means they are not editable. To include these properties in the results, set this parameter to true.",default:!1})},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");class GetTransitionProperties extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetTransitionProperties)).flags,e=this.getJira(e,t),r=this.removeFlagsFromBase(t),i=r.transitionId,r=tslib_1.__rest(r,["transitionId"]),e=await e.workflowTransitionPropertiesManager.getTransitionProperties(i,r);this.display(t,e)}}(exports.default=GetTransitionProperties).description="Gets properties on a workflow transition. Transition properties are used to change the behavior of a transition.",GetTransitionProperties.flags=Object.assign({transitionId:core_1.Flags.string({char:"i",description:"The ID of the transition. To get the ID, view the workflow in text mode in the Jira administration console. The ID is shown next to the transition.",required:!0}),workflowName:core_1.Flags.string({char:"n",description:"The name of the workflow that the transition belongs to.",required:!0}),workflowMode:core_1.Flags.string({description:"The workflow status. Set to live for active and inactive workflows, or draft for draft workflows.",options:["live","draft"],default:"live"}),key:core_1.Flags.string({char:"k",description:"The key of the property being returned, also known as the name of the property. If this parameter is not specified, all properties on the transition are returned."}),includeReservedKeys:core_1.Flags.boolean({description:"Some properties with keys that have the jira. prefix are reserved, which means they are not editable. To include these properties in the results, set this parameter to true.",default:!1})},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 UpdateTransitionProperties extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(UpdateTransitionProperties))["flags"],e=this.getJira(e,t),r=this.removeFlagsFromBase(t),{transitionId:i,value:o}=r,r=tslib_1.__rest(r,["transitionId","value"]),e=await e.workflowTransitionPropertiesManager.updateTransitionProperties(i,r,{value:o});this.display(t,e)}}(exports.default=UpdateTransitionProperties).description="Updates a workflow transition by changing the property value. Trying to update a property that does not exist results in a new property being added to the transition.",UpdateTransitionProperties.flags=Object.assign({transitionId:core_1.Flags.string({char:"i",description:"The ID of the transition. To get the ID, view the workflow in text mode in the Jira administration console. The ID is shown next to the transition.",required:!0}),workflowName:core_1.Flags.string({char:"n",description:"The name of the workflow that the transition belongs to.",required:!0}),workflowMode:core_1.Flags.string({description:"The workflow status. Set to live for inactive workflows or draft for draft workflows. Active workflows cannot be edited.",options:["live","draft"],default:"live"}),key:core_1.Flags.string({char:"k",description:"The key of the property being added, also known as the name of the property.",required:!0}),value:core_1.Flags.string({description:"The value of the transition property.",required:!0})},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");class UpdateTransitionProperties extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(UpdateTransitionProperties)).flags,e=this.getJira(e,t),r=this.removeFlagsFromBase(t),{transitionId:i,value:o}=r,r=tslib_1.__rest(r,["transitionId","value"]),e=await e.workflowTransitionPropertiesManager.updateTransitionProperties(i,r,{value:o});this.display(t,e)}}(exports.default=UpdateTransitionProperties).description="Updates a workflow transition by changing the property value. Trying to update a property that does not exist results in a new property being added to the transition.",UpdateTransitionProperties.flags=Object.assign({transitionId:core_1.Flags.string({char:"i",description:"The ID of the transition. To get the ID, view the workflow in text mode in the Jira administration console. The ID is shown next to the transition.",required:!0}),workflowName:core_1.Flags.string({char:"n",description:"The name of the workflow that the transition belongs to.",required:!0}),workflowMode:core_1.Flags.string({description:"The workflow status. Set to live for inactive workflows or draft for draft workflows. Active workflows cannot be edited.",options:["live","draft"],default:"live"}),key:core_1.Flags.string({char:"k",description:"The key of the property being added, also known as the name of the property.",required:!0}),value:core_1.Flags.string({description:"The value of the transition property.",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"),worklogs_1=require("@thestarware/atlassian-typescript-client/lib/jira/common/worklogs"),get_1=tslib_1.__importDefault(require("./get"));class Add extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(Add))["flags"],s=this.getJira(e,t);if(t.adjustEstimate===worklogs_1.AdjustEstimate.NEW&&void 0===t.newEstimate)throw new Error("--newEstimate is required when --adjustEstime=new!");if(t.adjustEstimate===worklogs_1.AdjustEstimate.MANUAL&&void 0===t.reduceBy)throw new Error("--reduceBy is required when --adjustEstime=manual!");if(void 0===t.timeSpent&&void 0===t.timeSpentSeconds)throw new Error("Either --timeSpent or --timeSpentSeconds is required!");var i=Add.flagsToWorklogRequest(t,e.cloud),s=await s.worklogManager.addWorklog(t.issue,i,t.adjustEstimate,t.newEstimate,t.reduceBy,t.notifyUsers);this.displayAlternativeForTable(t,s,get_1.default.mapWorklog(s,e.cloud))}static flagsToWorklogRequest(e,t){return{comment:void 0!==e.comment?(0,atlascli_common_1.getComment)(e.comment,t):void 0,visibility:(0,atlascli_common_1.getVisibility)(e),started:e.started,timeSpent:e.timeSpent,timeSpentSeconds:e.timeSpentSeconds,properties:null==(t=e.property)?void 0:t.map(e=>e.split("/")).map(e=>({key:e[0],value:e[1]}))}}}(exports.default=Add).description="Adds a worklog to an issue.",Add.requestBodyFlags=Object.assign(Object.assign({comment:core_1.Flags.string({description:"A a comment about worklog. In ADF for Cloud and simple string for Server/DC. "})},(0,atlascli_common_1.getVisibilityFlags)()),{started:core_1.Flags.string({description:"The datetime on which the worklog effort was started. Example: 2014-03-19T18:45:42.000+0200"}),timeSpent:core_1.Flags.string({exclusive:["timeSpentSeconds"],description:"The time spent working on the issue as days (#d), hours (#h), or minutes (#m or #). Cannot be provided if timeSpentSecond is provided. "}),timeSpentSeconds:core_1.Flags.integer({exclusive:["timeSpent"],description:"The time in seconds spent working on the issue. Cannot be provided if timeSpent is provided. "}),property:core_1.Flags.string({multiple:!0,description:"An entity property in the form of key/value. This parameter can be repeated."})}),Add.flags=Object.assign(Object.assign(Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."})},Add.requestBodyFlags),{adjustEstimate:core_1.Flags.string({description:"Defines how to update the issue's time estimate. Defaults to 'auto'.",options:["new","leave","manual","auto"]}),newEstimate:core_1.Flags.string({dependsOn:["adjustEstimate"],description:"The value to set as the issue's remaining time estimate, as days (#d), hours (#h), or minutes (#m or #). For example, 2d. Required when adjustEstimate is new."}),reduceBy:core_1.Flags.string({dependsOn:["adjustEstimate"],description:"The amount to reduce the issue's remaining estimate by, as days (#d), hours (#h), or minutes (#m). For example, 2d. Required when adjustEstimate is manual."}),notifyUsers:core_1.Flags.boolean({description:"notifyUsers Whether users watching the issue are notified by email. This parameter is only for Jira 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"),core_1=require("@oclif/core"),worklogs_1=require("@thestarware/atlassian-typescript-client/lib/jira/common/worklogs"),get_1=tslib_1.__importDefault(require("./get"));class Add extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(Add)).flags,s=this.getJira(e,t);if(t.adjustEstimate===worklogs_1.AdjustEstimate.NEW&&void 0===t.newEstimate)throw new Error("--newEstimate is required when --adjustEstime=new!");if(t.adjustEstimate===worklogs_1.AdjustEstimate.MANUAL&&void 0===t.reduceBy)throw new Error("--reduceBy is required when --adjustEstime=manual!");if(void 0===t.timeSpent&&void 0===t.timeSpentSeconds)throw new Error("Either --timeSpent or --timeSpentSeconds is required!");var i=Add.flagsToWorklogRequest(t,e.cloud),s=await s.worklogManager.addWorklog(t.issue,i,t.adjustEstimate,t.newEstimate,t.reduceBy,t.notifyUsers);this.displayAlternativeForTable(t,s,get_1.default.mapWorklog(s,e.cloud))}static flagsToWorklogRequest(e,t){return{comment:void 0!==e.comment?(0,atlascli_common_1.getComment)(e.comment,t):void 0,visibility:(0,atlascli_common_1.getVisibility)(e),started:e.started,timeSpent:e.timeSpent,timeSpentSeconds:e.timeSpentSeconds,properties:null==(t=e.property)?void 0:t.map(e=>e.split("/")).map(e=>({key:e[0],value:e[1]}))}}}(exports.default=Add).description="Adds a worklog to an issue.",Add.requestBodyFlags=Object.assign(Object.assign({comment:core_1.Flags.string({description:"A a comment about worklog. In ADF for Cloud and simple string for Server/DC. "})},(0,atlascli_common_1.getVisibilityFlags)()),{started:core_1.Flags.string({description:"The datetime on which the worklog effort was started. Example: 2014-03-19T18:45:42.000+0200"}),timeSpent:core_1.Flags.string({exclusive:["timeSpentSeconds"],description:"The time spent working on the issue as days (#d), hours (#h), or minutes (#m or #). Cannot be provided if timeSpentSecond is provided. "}),timeSpentSeconds:core_1.Flags.integer({exclusive:["timeSpent"],description:"The time in seconds spent working on the issue. Cannot be provided if timeSpent is provided. "}),property:core_1.Flags.string({multiple:!0,description:"An entity property in the form of key/value. This parameter can be repeated."})}),Add.flags=Object.assign(Object.assign(Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."})},Add.requestBodyFlags),{adjustEstimate:core_1.Flags.string({description:"Defines how to update the issue's time estimate. Defaults to 'auto'.",options:["new","leave","manual","auto"]}),newEstimate:core_1.Flags.string({dependsOn:["adjustEstimate"],description:"The value to set as the issue's remaining time estimate, as days (#d), hours (#h), or minutes (#m or #). For example, 2d. Required when adjustEstimate is new."}),reduceBy:core_1.Flags.string({dependsOn:["adjustEstimate"],description:"The amount to reduce the issue's remaining estimate by, as days (#d), hours (#h), or minutes (#m). For example, 2d. Required when adjustEstimate is manual."}),notifyUsers:core_1.Flags.boolean({description:"notifyUsers Whether users watching the issue are notified by email. This parameter is only for Jira Cloud."})}),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"),worklogs_1=require("@thestarware/atlassian-typescript-client/lib/jira/common/worklogs");class WorklogDelete extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(WorklogDelete))["flags"],e=this.getJira(e,s);if(s.adjustEstimate===worklogs_1.AdjustEstimate.NEW&&void 0===s.newEstimate)throw new Error("--newEstimate is required when --adjustEstime=new!");if(s.adjustEstimate===worklogs_1.AdjustEstimate.MANUAL&&void 0===s.increaseBy)throw new Error("--increaseBy is required when --adjustEstime=manual!");await e.worklogManager.deleteWorklog(s.issue,s.worklogId,s.adjustEstimate,s.newEstimate,s.increaseBy,s.notifyUsers)}}(exports.default=WorklogDelete).description="Deletes a worklog.",WorklogDelete.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.integer({required:!0,description:"ID of Worklog"}),adjustEstimate:core_1.Flags.string({description:"Defines how to update the issue's time estimate. Defaults to 'auto'.",options:["new","leave","manual","auto"]}),newEstimate:core_1.Flags.string({description:"The value to set as the issue's remaining time estimate, as days (#d), hours (#h), or minutes (#m or #). For example, 2d. Required when adjustEstimate is new."}),increaseBy:core_1.Flags.string({description:"TThe amount to increase the issue's remaining estimate by, as days (#d), hours (#h), or minutes (#m or #). For example, 2d. Required when adjustEstimate is manual."}),notifyUsers:core_1.Flags.boolean({description:"notifyUsers Whether users watching the issue are notified by email. This parameter is only for Jira Cloud."})},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"),worklogs_1=require("@thestarware/atlassian-typescript-client/lib/jira/common/worklogs");class WorklogDelete extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(WorklogDelete)).flags,e=this.getJira(e,s);if(s.adjustEstimate===worklogs_1.AdjustEstimate.NEW&&void 0===s.newEstimate)throw new Error("--newEstimate is required when --adjustEstime=new!");if(s.adjustEstimate===worklogs_1.AdjustEstimate.MANUAL&&void 0===s.increaseBy)throw new Error("--increaseBy is required when --adjustEstime=manual!");await e.worklogManager.deleteWorklog(s.issue,s.worklogId,s.adjustEstimate,s.newEstimate,s.increaseBy,s.notifyUsers)}}(exports.default=WorklogDelete).description="Deletes a worklog.",WorklogDelete.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.integer({required:!0,description:"ID of Worklog"}),adjustEstimate:core_1.Flags.string({description:"Defines how to update the issue's time estimate. Defaults to 'auto'.",options:["new","leave","manual","auto"]}),newEstimate:core_1.Flags.string({description:"The value to set as the issue's remaining time estimate, as days (#d), hours (#h), or minutes (#m or #). For example, 2d. Required when adjustEstimate is new."}),increaseBy:core_1.Flags.string({description:"TThe amount to increase the issue's remaining estimate by, as days (#d), hours (#h), or minutes (#m or #). For example, 2d. Required when adjustEstimate is manual."}),notifyUsers:core_1.Flags.boolean({description:"notifyUsers Whether users watching the issue are notified by email. This parameter is only for Jira Cloud."})},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");class WorklogGetDeleted extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:t,args:a}=await this.parse(WorklogGetDeleted),e=await this.getJira(e,t).worklogManager.getDeletedWorklogs(t.since||a.since);this.displayAlternativeForTable(t,e,e.values)}}(exports.default=WorklogGetDeleted).description="Returns a list of IDs and delete timestamps for worklogs deleted after a date and time.",WorklogGetDeleted.flags=Object.assign({since:core_1.Flags.string({description:"The date and time, as a UNIX timestamp in milliseconds or ISDO Date Time, after which deleted worklogs are returned."})},atlascli_common_1.CommandWithSite.flags),WorklogGetDeleted.args=[{name:"since",description:WorklogGetDeleted.flags.since.description}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class WorklogGetDeleted extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:t,args:a}=await this.parse(WorklogGetDeleted),e=await this.getJira(e,t).worklogManager.getDeletedWorklogs(t.since||a.since);this.displayAlternativeForTable(t,e,e.values)}}(exports.default=WorklogGetDeleted).description="Returns a list of IDs and delete timestamps for worklogs deleted after a date and time.",WorklogGetDeleted.flags=Object.assign({since:core_1.Flags.string({description:"The date and time, as a UNIX timestamp in milliseconds or ISDO Date Time, after which deleted worklogs are returned."})},atlascli_common_1.CommandWithSite.flags),WorklogGetDeleted.args=[{name:"since",description:WorklogGetDeleted.flags.since.description}];
@@ -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"),get_1=tslib_1.__importDefault(require("./get"));class GetIssueWorklogs extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetIssueWorklogs))["flags"],s=this.getJira(e,t);let r=Number.parseInt(t.startedAfter||"",10);t.startedAfter&&Number(r).toString(10)!==t.startedAfter&&(r=new Date(t.startedAfter).getTime());s=await s.worklogManager.getIssueWorklogs(t.issue,t.startAt,t.maxResults,r);this.isTabularOutput(t)?this.display(t,s.worklogs.map(t=>get_1.default.mapWorklog(t,e.cloud))):this.display(t,s)}}(exports.default=GetIssueWorklogs).description="Returns worklogs for an issue, starting from the oldest worklog or from the worklog started on or after a date and time.",GetIssueWorklogs.flags=Object.assign(Object.assign(Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."})},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{startedAfter:core_1.Flags.string({description:"The worklog start date and time. Can be an ISO Date Time or a UNIX timestamp in milliseconds, after which worklogs are returned."})}),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"),get_1=tslib_1.__importDefault(require("./get"));class GetIssueWorklogs extends atlascli_common_1.CommandWithSite{async runWithSite(t){var e=(await this.parse(GetIssueWorklogs)).flags,s=this.getJira(t,e);let r=Number.parseInt(e.startedAfter||"",10);e.startedAfter&&Number(r).toString(10)!==e.startedAfter&&(r=new Date(e.startedAfter).getTime());s=await s.worklogManager.getIssueWorklogs(e.issue,e.startAt,e.maxResults,r);this.isTabularOutput(e)?this.display(e,s.worklogs.map(e=>get_1.default.mapWorklog(e,t.cloud))):this.display(e,s)}}(exports.default=GetIssueWorklogs).description="Returns worklogs for an issue, starting from the oldest worklog or from the worklog started on or after a date and time.",GetIssueWorklogs.flags=Object.assign(Object.assign(Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."})},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{startedAfter:core_1.Flags.string({description:"The worklog start date and time. Can be an ISO Date Time or a UNIX timestamp in milliseconds, after which worklogs are returned."})}),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"),get_deleted_1=tslib_1.__importDefault(require("./get-deleted"));class WorklogGetUpdated extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:t,args:a}=await this.parse(WorklogGetUpdated),e=await this.getJira(e,t).worklogManager.getUpdatedWorklogs(t.since||a.since);this.displayAlternativeForTable(t,e,e.values)}}(exports.default=WorklogGetUpdated).description="Returns a list of IDs and update timestamps for worklogs updated after a date and time.",WorklogGetUpdated.flags=get_deleted_1.default.flags,WorklogGetUpdated.args=get_deleted_1.default.args;
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),get_deleted_1=tslib_1.__importDefault(require("./get-deleted"));class WorklogGetUpdated extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:t,args:a}=await this.parse(WorklogGetUpdated),e=await this.getJira(e,t).worklogManager.getUpdatedWorklogs(t.since||a.since);this.displayAlternativeForTable(t,e,e.values)}}(exports.default=WorklogGetUpdated).description="Returns a list of IDs and update timestamps for worklogs updated after a date and time.",WorklogGetUpdated.flags=get_deleted_1.default.flags,WorklogGetUpdated.args=get_deleted_1.default.args;
@@ -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"),get_1=tslib_1.__importDefault(require("./get"));class GetWorklogs extends atlascli_common_1.CommandWithSite{async runWithSite(t){var{flags:o,args:r}=await this.parse(GetWorklogs),e=this.getJira(t,o),e=(o.worklogId=o.worklogId||[],r.worklogId=r.worklogId?[r.worklogId]:[],await e.worklogManager.getWorklogs(...o.worklogId,...r.worklogId));this.isTabularOutput(o)?this.display(o,e):this.display(o,e.map(o=>get_1.default.mapWorklog(o,t.cloud)))}}(exports.default=GetWorklogs).description="Returns worklog details for a list of worklog IDs.",GetWorklogs.flags=Object.assign({worklogId:core_1.Flags.integer({multiple:!0,description:"ID of Worklog"})},atlascli_common_1.CommandWithSite.flags),GetWorklogs.args=[{name:"worklogId",description:"ID of Worklog"}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),get_1=tslib_1.__importDefault(require("./get"));class GetWorklogs extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:o,args:r}=await this.parse(GetWorklogs),t=this.getJira(e,o),t=(o.worklogId=o.worklogId||[],r.worklogId=r.worklogId?[r.worklogId]:[],await t.worklogManager.getWorklogs(...o.worklogId,...r.worklogId));this.isTabularOutput(o)?this.display(o,t):this.display(o,t.map(o=>get_1.default.mapWorklog(o,e.cloud)))}}(exports.default=GetWorklogs).description="Returns worklog details for a list of worklog IDs.",GetWorklogs.flags=Object.assign({worklogId:core_1.Flags.integer({multiple:!0,description:"ID of Worklog"})},atlascli_common_1.CommandWithSite.flags),GetWorklogs.args=[{name:"worklogId",description:"ID of Worklog"}];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),mapper_utils_1=require("@thestarware/atlascli-common/lib/util/mapper-utils");class GetWorklog extends atlascli_common_1.CommandWithSite{async runWithSite(t){var e=(await this.parse(GetWorklog))["flags"],r=await this.getJira(t,e).worklogManager.getWorklog(e.issue,e.worklogId);this.isTabularOutput(e)?this.display(e,GetWorklog.mapWorklog(r,t.cloud)):this.display(e,r)}static mapWorklog(t,e){return Object.assign(Object.assign(Object.assign({id:t.id,self:t.self,timeSpent:t.timeSpent,timeSpentSeconds:t.timeSpentSeconds},(0,mapper_utils_1.mapToUser)(t.author,e)),{comment:GetWorklog.getComment(t.comment),created:t.created,started:t.started,updated:t.updated}),(0,mapper_utils_1.mapToUser)(t.updateAuthor,e,"updateAuthor"))}static getComment(t){if("string"!=typeof t&&"object"==typeof t&&Array.isArray(t.content)&&0<t.content.length){var e=t.content[0];if(Array.isArray(e.content)&&0<e.content.length)return e.content[0].text}return t}}(exports.default=GetWorklog).description="Returns a specific worklog.",GetWorklog.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.integer({required:!0,description:"ID of Worklog"})},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"),mapper_utils_1=require("@thestarware/atlascli-common/lib/util/mapper-utils");class GetWorklog extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetWorklog)).flags,r=await this.getJira(e,t).worklogManager.getWorklog(t.issue,t.worklogId);this.isTabularOutput(t)?this.display(t,GetWorklog.mapWorklog(r,e.cloud)):this.display(t,r)}static mapWorklog(e,t){return Object.assign(Object.assign(Object.assign({id:e.id,self:e.self,timeSpent:e.timeSpent,timeSpentSeconds:e.timeSpentSeconds},(0,mapper_utils_1.mapToUser)(e.author,t)),{comment:GetWorklog.getComment(e.comment),created:e.created,started:e.started,updated:e.updated}),(0,mapper_utils_1.mapToUser)(e.updateAuthor,t,"updateAuthor"))}static getComment(e){if("string"!=typeof e&&"object"==typeof e&&Array.isArray(e.content)&&0<e.content.length){var t=e.content[0];if(Array.isArray(t.content)&&0<t.content.length)return t.content[0].text}return e}}(exports.default=GetWorklog).description="Returns a specific worklog.",GetWorklog.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.integer({required:!0,description:"ID of Worklog"})},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"),worklogs_1=require("@thestarware/atlassian-typescript-client/lib/jira/common/worklogs"),add_1=tslib_1.__importDefault(require("./add")),get_1=tslib_1.__importDefault(require("./get"));class WorklogUpdate extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(WorklogUpdate))["flags"],s=this.getJira(e,t);if(t.adjustEstimate===worklogs_1.AdjustEstimate.NEW&&void 0===t.newEstimate)throw new Error("--newEstimate is required when --adjustEstime=new!");var i=add_1.default.flagsToWorklogRequest(t,e.cloud),s=await s.worklogManager.updateWorklog(t.issue,t.worklogId,i,t.adjustEstimate,t.newEstimate,t.notifyUsers);this.displayAlternativeForTable(t,s,get_1.default.mapWorklog(s,e.cloud))}}(exports.default=WorklogUpdate).description="Adds a worklog to an issue.",WorklogUpdate.flags=Object.assign(Object.assign(Object.assign(Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.integer({required:!0,description:"ID of Worklog"})},add_1.default.requestBodyFlags),{adjustEstimate:core_1.Flags.string({description:"Defines how to update the issue's time estimate. Defaults to 'auto'.",options:["new","leave","auto"]}),newEstimate:core_1.Flags.string({dependsOn:["adjustEstimate"],description:"The value to set as the issue's remaining time estimate, as days (#d), hours (#h), or minutes (#m or #). For example, 2d. Required when adjustEstimate is new."}),notifyUsers:core_1.Flags.boolean({dependsOn:["adjustEstimate"],description:"notifyUsers Whether users watching the issue are notified by email. This parameter is only for Jira Cloud."})}),(0,atlascli_common_1.getVisibilityFlags)()),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"),worklogs_1=require("@thestarware/atlassian-typescript-client/lib/jira/common/worklogs"),add_1=tslib_1.__importDefault(require("./add")),get_1=tslib_1.__importDefault(require("./get"));class WorklogUpdate extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(WorklogUpdate)).flags,s=this.getJira(e,t);if(t.adjustEstimate===worklogs_1.AdjustEstimate.NEW&&void 0===t.newEstimate)throw new Error("--newEstimate is required when --adjustEstime=new!");var a=add_1.default.flagsToWorklogRequest(t,e.cloud),s=await s.worklogManager.updateWorklog(t.issue,t.worklogId,a,t.adjustEstimate,t.newEstimate,t.notifyUsers);this.displayAlternativeForTable(t,s,get_1.default.mapWorklog(s,e.cloud))}}(exports.default=WorklogUpdate).description="Adds a worklog to an issue.",WorklogUpdate.flags=Object.assign(Object.assign(Object.assign(Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.integer({required:!0,description:"ID of Worklog"})},add_1.default.requestBodyFlags),{adjustEstimate:core_1.Flags.string({description:"Defines how to update the issue's time estimate. Defaults to 'auto'.",options:["new","leave","auto"]}),newEstimate:core_1.Flags.string({dependsOn:["adjustEstimate"],description:"The value to set as the issue's remaining time estimate, as days (#d), hours (#h), or minutes (#m or #). For example, 2d. Required when adjustEstimate is new."}),notifyUsers:core_1.Flags.boolean({dependsOn:["adjustEstimate"],description:"notifyUsers Whether users watching the issue are notified by email. This parameter is only for Jira Cloud."})}),(0,atlascli_common_1.getVisibilityFlags)()),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");class SetWorklogProperty extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var o=(await this.parse(SetWorklogProperty))["flags"];await r.worklogPropertyManager.deleteWorklogProperty(o.issue,o.worklogId,o.key)}}(exports.default=SetWorklogProperty).description="Deletes a property for a worklog.",SetWorklogProperty.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.string({required:!0,description:"Worklog ID."}),key:core_1.Flags.string({required:!0,description:"Property key."})},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 SetWorklogProperty extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var o=(await this.parse(SetWorklogProperty)).flags;await r.worklogPropertyManager.deleteWorklogProperty(o.issue,o.worklogId,o.key)}}(exports.default=SetWorklogProperty).description="Deletes a property for a worklog.",SetWorklogProperty.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.string({required:!0,description:"Worklog ID."}),key:core_1.Flags.string({required:!0,description:"Property key."})},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");class GetWorklogPropertyKeys extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,o){const r=(await this.parse(GetWorklogPropertyKeys))["flags"],s=await o.worklogPropertyManager.getWorklogPropertyKeys(r.issue,r.worklogId);this.displayJsonYamlOrTable(r,s,()=>this.tabularFormat(s.keys,r))}}(exports.default=GetWorklogPropertyKeys).description="Returns the keys of all the properties of a worklog.",GetWorklogPropertyKeys.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.string({required:!0,description:"Worklog ID."})},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 GetWorklogPropertyKeys extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,o){let r=(await this.parse(GetWorklogPropertyKeys)).flags,t=await o.worklogPropertyManager.getWorklogPropertyKeys(r.issue,r.worklogId);this.displayJsonYamlOrTable(r,t,()=>this.tabularFormat(t.keys,r))}}(exports.default=GetWorklogPropertyKeys).description="Returns the keys of all the properties of a worklog.",GetWorklogPropertyKeys.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.string({required:!0,description:"Worklog ID."})},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");class GetWorklogProperty extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var o=(await this.parse(GetWorklogProperty))["flags"],r=await r.worklogPropertyManager.getWorklogProperty(o.issue,o.worklogId,o.key);this.display(o,r)}}(exports.default=GetWorklogProperty).description="Gets the value of a property for a worklog.",GetWorklogProperty.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.string({required:!0,description:"Worklog ID."}),key:core_1.Flags.string({required:!0,description:"Property key."})},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 GetWorklogProperty extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var o=(await this.parse(GetWorklogProperty)).flags,r=await r.worklogPropertyManager.getWorklogProperty(o.issue,o.worklogId,o.key);this.display(o,r)}}(exports.default=GetWorklogProperty).description="Gets the value of a property for a worklog.",GetWorklogProperty.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.string({required:!0,description:"Worklog ID."}),key:core_1.Flags.string({required:!0,description:"Property key."})},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");class SetWorklogProperty extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var o=(await this.parse(SetWorklogProperty))["flags"];await r.worklogPropertyManager.setWorklogProperty(o.issue,o.worklogId,o.key,o.value)}}(exports.default=SetWorklogProperty).description="Creates or updates the value of a property for a worklog.",SetWorklogProperty.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.string({required:!0,description:"Worklog ID."}),key:core_1.Flags.string({required:!0,description:"Property key."}),value:core_1.Flags.string({required:!0,description:"Non-empty JSON blob. The maximum length is 32768 characters."})},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 SetWorklogProperty extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var o=(await this.parse(SetWorklogProperty)).flags;await r.worklogPropertyManager.setWorklogProperty(o.issue,o.worklogId,o.key,o.value)}}(exports.default=SetWorklogProperty).description="Creates or updates the value of a property for a worklog.",SetWorklogProperty.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),worklogId:core_1.Flags.string({required:!0,description:"Worklog ID."}),key:core_1.Flags.string({required:!0,description:"Property key."}),value:core_1.Flags.string({required:!0,description:"Non-empty JSON blob. The maximum length is 32768 characters."})},atlascli_common_1.CommandWithSite.flags);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.run=void 0;var core_1=require("@oclif/core");Object.defineProperty(exports,"run",{enumerable:!0,get:function(){return core_1.run}});
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.run=void 0;var core_1=require("@oclif/core");Object.defineProperty(exports,"run",{enumerable:!0,get:function(){return core_1.run}});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@thestarware/atlascli-jira",
3
3
  "description": "ATLAS CLI for Jira: Command Line Tool",
4
- "version": "1.2.2",
4
+ "version": "1.2.4",
5
5
  "buildOrder": 3,
6
6
  "author": "deniz@thestarware.com",
7
7
  "bin": {
@@ -16,7 +16,7 @@
16
16
  "@oclif/plugin-help": "^5",
17
17
  "@oclif/plugin-plugins": "^2.1.2",
18
18
  "@oclif/plugin-update": "^2.2.0",
19
- "@thestarware/atlascli-common": "1.2.1",
19
+ "@thestarware/atlascli-common": "1.2.4",
20
20
  "@types/node-fetch": "^2.5.7",
21
21
  "node-fetch": "^2.6.1",
22
22
  "tslib": "^2.3.1",
@@ -354,5 +354,6 @@
354
354
  "recursive": true,
355
355
  "reporter": "spec",
356
356
  "timeout": 15000
357
- }
357
+ },
358
+ "private": false
358
359
  }