@thestarware/atlascli-jira 1.2.6 → 1.2.7

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 (484) hide show
  1. package/README.md +108 -24
  2. package/lib/commands/announcement-banner/get.js +1 -13
  3. package/lib/commands/announcement-banner/update.js +1 -30
  4. package/lib/commands/application-role/get-all.js +2 -22
  5. package/lib/commands/application-role/get.js +1 -19
  6. package/lib/commands/application-role/update.js +1 -23
  7. package/lib/commands/attachment/add.js +1 -33
  8. package/lib/commands/attachment/delete.js +1 -16
  9. package/lib/commands/attachment/get-content.js +1 -18
  10. package/lib/commands/attachment/get-jira-settings.js +1 -14
  11. package/lib/commands/attachment/get-metadata-for-zip.js +1 -36
  12. package/lib/commands/attachment/get-metadata.js +1 -30
  13. package/lib/commands/attachment/get-thumbnails.js +1 -17
  14. package/lib/commands/audit-record/get-associated.js +1 -81
  15. package/lib/commands/audit-record/get-changed.js +1 -62
  16. package/lib/commands/avatar/delete-universal-avatar.js +1 -15
  17. package/lib/commands/avatar/delete-user-avatar.js +1 -21
  18. package/lib/commands/avatar/get-all-user-avatar.js +1 -0
  19. package/lib/commands/avatar/get-image-by-id.js +1 -17
  20. package/lib/commands/avatar/get-image-by-owner.js +1 -17
  21. package/lib/commands/avatar/get-image-by-type.js +1 -17
  22. package/lib/commands/avatar/get-system-avatars.js +1 -19
  23. package/lib/commands/avatar/get-universal-avatars.js +1 -16
  24. package/lib/commands/avatar/set-user-avatar.js +1 -21
  25. package/lib/commands/avatar/upload-universal-avatar.js +1 -32
  26. package/lib/commands/avatar/upload-user-avatar.js +1 -25
  27. package/lib/commands/comment/add.js +1 -25
  28. package/lib/commands/comment/delete.js +1 -14
  29. package/lib/commands/comment/get-for-issue.js +1 -32
  30. package/lib/commands/comment/get-with-ids.js +1 -31
  31. package/lib/commands/comment/get.js +1 -22
  32. package/lib/commands/comment/update.js +1 -26
  33. package/lib/commands/comment-property/delete-property.js +1 -14
  34. package/lib/commands/comment-property/get-property-keys.js +1 -15
  35. package/lib/commands/comment-property/get-property.js +1 -15
  36. package/lib/commands/comment-property/set-property.js +1 -14
  37. package/lib/commands/config/add.js +1 -119
  38. package/lib/commands/config/delete.js +1 -32
  39. package/lib/commands/config/get-default.js +1 -18
  40. package/lib/commands/config/list.js +1 -22
  41. package/lib/commands/config/set-default.js +1 -31
  42. package/lib/commands/dashboard/add-edit-permission.js +1 -43
  43. package/lib/commands/dashboard/add-share-permission.js +1 -24
  44. package/lib/commands/dashboard/copy.js +1 -16
  45. package/lib/commands/dashboard/create.js +1 -15
  46. package/lib/commands/dashboard/delete.js +1 -13
  47. package/lib/commands/dashboard/get-all.js +1 -26
  48. package/lib/commands/dashboard/get-permissions.js +1 -20
  49. package/lib/commands/dashboard/get.js +1 -30
  50. package/lib/commands/dashboard/search.js +1 -35
  51. package/lib/commands/dashboard/update.js +1 -16
  52. package/lib/commands/dashboard-gadget/add.js +1 -19
  53. package/lib/commands/dashboard-gadget/get-availables.js +1 -20
  54. package/lib/commands/dashboard-gadget/remove.js +1 -13
  55. package/lib/commands/dashboard-gadget/search.js +1 -16
  56. package/lib/commands/dashboard-gadget/update.js +1 -18
  57. package/lib/commands/dashboard-item-property/delete.js +1 -15
  58. package/lib/commands/dashboard-item-property/get-keys.js +1 -15
  59. package/lib/commands/dashboard-item-property/get.js +1 -15
  60. package/lib/commands/dashboard-item-property/set.js +1 -29
  61. package/lib/commands/filter/add-favourite.js +1 -18
  62. package/lib/commands/filter/change-owner.js +1 -24
  63. package/lib/commands/filter/create.js +1 -30
  64. package/lib/commands/filter/delete.js +1 -18
  65. package/lib/commands/filter/get-columns.js +1 -20
  66. package/lib/commands/filter/get-details.js +1 -25
  67. package/lib/commands/filter/get-favourites.js +1 -18
  68. package/lib/commands/filter/get-my.js +1 -19
  69. package/lib/commands/filter/get.js +1 -40
  70. package/lib/commands/filter/remove-favourite.js +1 -18
  71. package/lib/commands/filter/reset-columns.js +1 -18
  72. package/lib/commands/filter/search.js +1 -50
  73. package/lib/commands/filter/set-columns.js +1 -18
  74. package/lib/commands/filter/update.js +1 -34
  75. package/lib/commands/filter-sharing/add-edit-permission.js +1 -106
  76. package/lib/commands/filter-sharing/add-share-permission.js +1 -84
  77. package/lib/commands/filter-sharing/delete-permission.js +1 -21
  78. package/lib/commands/filter-sharing/get-default-scope.js +1 -12
  79. package/lib/commands/filter-sharing/get-edit-permissions.js +1 -21
  80. package/lib/commands/filter-sharing/get-permission.js +1 -24
  81. package/lib/commands/filter-sharing/get-share-permissions.js +1 -52
  82. package/lib/commands/filter-sharing/set-default-scope.js +1 -21
  83. package/lib/commands/group/add-user.js +1 -40
  84. package/lib/commands/group/create.js +1 -28
  85. package/lib/commands/group/find-groups.js +1 -19
  86. package/lib/commands/group/get-all.js +1 -24
  87. package/lib/commands/group/get-users.js +1 -32
  88. package/lib/commands/group/get.js +1 -58
  89. package/lib/commands/group/remove-user.js +1 -45
  90. package/lib/commands/group/remove.js +1 -45
  91. package/lib/commands/group-and-user-picker/find-groups.js +1 -62
  92. package/lib/commands/group-and-user-picker/find-users.js +1 -91
  93. package/lib/commands/issue/archive.js +1 -22
  94. package/lib/commands/issue/assign.js +1 -29
  95. package/lib/commands/issue/create.js +1 -306
  96. package/lib/commands/issue/delete.js +1 -20
  97. package/lib/commands/issue/edit.js +1 -49
  98. package/lib/commands/issue/get-changelogs.js +1 -42
  99. package/lib/commands/issue/get-create-metadata.js +1 -83
  100. package/lib/commands/issue/get-edit-metadata.js +1 -46
  101. package/lib/commands/issue/get-events.js +1 -13
  102. package/lib/commands/issue/get-transitions.js +1 -38
  103. package/lib/commands/issue/get.js +1 -52
  104. package/lib/commands/issue/restore.js +1 -15
  105. package/lib/commands/issue/send-notifications.js +1 -49
  106. package/lib/commands/issue/transition.js +1 -61
  107. package/lib/commands/issue-field/create.js +1 -18
  108. package/lib/commands/issue-field/delete.js +1 -31
  109. package/lib/commands/issue-field/get-all.js +1 -18
  110. package/lib/commands/issue-field/move-trash.js +1 -18
  111. package/lib/commands/issue-field/restore-trash.js +1 -18
  112. package/lib/commands/issue-field/search-trash.js +1 -23
  113. package/lib/commands/issue-field/search.js +1 -24
  114. package/lib/commands/issue-field/update.js +1 -18
  115. package/lib/commands/issue-field-configuration/assign-issue-type.js +1 -25
  116. package/lib/commands/issue-field-configuration/assign-scheme-to-project.js +1 -24
  117. package/lib/commands/issue-field-configuration/create-scheme.js +1 -22
  118. package/lib/commands/issue-field-configuration/create.js +1 -22
  119. package/lib/commands/issue-field-configuration/delete-scheme.js +1 -18
  120. package/lib/commands/issue-field-configuration/delete.js +1 -18
  121. package/lib/commands/issue-field-configuration/get-all-issue-type-items.js +1 -23
  122. package/lib/commands/issue-field-configuration/get-all-schemes.js +1 -24
  123. package/lib/commands/issue-field-configuration/get-all.js +1 -27
  124. package/lib/commands/issue-field-configuration/get-items.js +1 -24
  125. package/lib/commands/issue-field-configuration/get-project-schemes.js +1 -42
  126. package/lib/commands/issue-field-configuration/remove-issue-types.js +1 -23
  127. package/lib/commands/issue-field-configuration/update-items.js +1 -29
  128. package/lib/commands/issue-field-configuration/update-scheme.js +1 -23
  129. package/lib/commands/issue-field-configuration/update.js +1 -25
  130. package/lib/commands/issue-field-context/add-issue-types.js +1 -26
  131. package/lib/commands/issue-field-context/assign-to-projects.js +1 -30
  132. package/lib/commands/issue-field-context/create.js +1 -38
  133. package/lib/commands/issue-field-context/delete.js +1 -20
  134. package/lib/commands/issue-field-context/get-all.js +1 -27
  135. package/lib/commands/issue-field-context/get-contexts-for-projects-and-issue-types.js +1 -26
  136. package/lib/commands/issue-field-context/get-default-values.js +1 -29
  137. package/lib/commands/issue-field-context/get-issue-types.js +1 -27
  138. package/lib/commands/issue-field-context/get-project-mappings.js +1 -37
  139. package/lib/commands/issue-field-context/remove-from-projects.js +1 -31
  140. package/lib/commands/issue-field-context/remove-issue-types.js +1 -26
  141. package/lib/commands/issue-field-context/set-default-values.js +1 -31
  142. package/lib/commands/issue-field-context/update.js +1 -28
  143. package/lib/commands/issue-field-option/create-for-context.js +1 -26
  144. package/lib/commands/issue-field-option/delete-for-context.js +1 -22
  145. package/lib/commands/issue-field-option/get-for-context.js +1 -25
  146. package/lib/commands/issue-field-option/get.js +1 -34
  147. package/lib/commands/issue-field-option/reorder-for-context.js +1 -25
  148. package/lib/commands/issue-field-option/update-for-context.js +1 -26
  149. package/lib/commands/issue-link/create.js +1 -89
  150. package/lib/commands/issue-link/delete.js +1 -26
  151. package/lib/commands/issue-link/get.js +1 -48
  152. package/lib/commands/issue-link-type/create.js +1 -26
  153. package/lib/commands/issue-link-type/delete.js +1 -14
  154. package/lib/commands/issue-link-type/get-all.js +1 -14
  155. package/lib/commands/issue-link-type/get.js +1 -30
  156. package/lib/commands/issue-link-type/update.js +1 -24
  157. package/lib/commands/issue-navigator-setting/get-columns.js +1 -14
  158. package/lib/commands/issue-navigator-setting/set-columns.js +1 -14
  159. package/lib/commands/issue-priority/create.js +1 -35
  160. package/lib/commands/issue-priority/delete.js +1 -28
  161. package/lib/commands/issue-priority/move.js +1 -27
  162. package/lib/commands/issue-priority/search.js +1 -44
  163. package/lib/commands/issue-priority/set-default.js +1 -20
  164. package/lib/commands/issue-priority/update.js +1 -38
  165. package/lib/commands/issue-property/delete-bulk.js +1 -33
  166. package/lib/commands/issue-property/delete.js +1 -14
  167. package/lib/commands/issue-property/get-keys.js +1 -15
  168. package/lib/commands/issue-property/get.js +1 -21
  169. package/lib/commands/issue-property/set-bulk.js +1 -49
  170. package/lib/commands/issue-property/set-by-issue-bulk.js +1 -47
  171. package/lib/commands/issue-property/set-by-list-bulk.js +1 -34
  172. package/lib/commands/issue-property/set.js +1 -38
  173. package/lib/commands/issue-remote-link/create.js +1 -56
  174. package/lib/commands/issue-remote-link/delete-by-global-id.js +1 -16
  175. package/lib/commands/issue-remote-link/delete.js +1 -15
  176. package/lib/commands/issue-remote-link/get-all.js +1 -27
  177. package/lib/commands/issue-remote-link/get.js +1 -22
  178. package/lib/commands/issue-remote-link/update.js +1 -40
  179. package/lib/commands/issue-resolution/create.js +1 -20
  180. package/lib/commands/issue-resolution/delete.js +1 -28
  181. package/lib/commands/issue-resolution/get-all.js +1 -13
  182. package/lib/commands/issue-resolution/get.js +1 -33
  183. package/lib/commands/issue-resolution/move.js +1 -26
  184. package/lib/commands/issue-resolution/search.js +1 -40
  185. package/lib/commands/issue-resolution/set-default.js +1 -17
  186. package/lib/commands/issue-resolution/update.js +1 -25
  187. package/lib/commands/issue-search/get-picker-suggestions.js +1 -35
  188. package/lib/commands/issue-search/search.js +1 -39
  189. package/lib/commands/issue-search/test-jql.js +1 -29
  190. package/lib/commands/issue-security-level/get-members.js +1 -46
  191. package/lib/commands/issue-security-level/get.js +1 -34
  192. package/lib/commands/issue-security-scheme/associate-security-scheme.js +1 -0
  193. package/lib/commands/issue-security-scheme/get-all.js +1 -14
  194. package/lib/commands/issue-security-scheme/get-levels.js +1 -20
  195. package/lib/commands/issue-security-scheme/get.js +1 -34
  196. package/lib/commands/issue-type/create.js +1 -20
  197. package/lib/commands/issue-type/delete.js +1 -14
  198. package/lib/commands/issue-type/get-all-for-projects.js +1 -17
  199. package/lib/commands/issue-type/get-all.js +1 -14
  200. package/lib/commands/issue-type/get-alternatives.js +1 -15
  201. package/lib/commands/issue-type/get.js +1 -30
  202. package/lib/commands/issue-type/set-avatar.js +1 -14
  203. package/lib/commands/issue-type/update.js +1 -18
  204. package/lib/commands/issue-type/upload-avatar.js +1 -38
  205. package/lib/commands/issue-type-property/delete.js +1 -14
  206. package/lib/commands/issue-type-property/get-keys.js +1 -15
  207. package/lib/commands/issue-type-property/get.js +1 -16
  208. package/lib/commands/issue-type-property/set.js +1 -28
  209. package/lib/commands/issue-type-scheme/add-issue-types.js +1 -23
  210. package/lib/commands/issue-type-scheme/assign-to-project.js +1 -20
  211. package/lib/commands/issue-type-scheme/create.js +1 -20
  212. package/lib/commands/issue-type-scheme/delete.js +1 -14
  213. package/lib/commands/issue-type-scheme/get-for-projects.js +1 -32
  214. package/lib/commands/issue-type-scheme/get-issue-types.js +1 -20
  215. package/lib/commands/issue-type-scheme/get-mappings.js +1 -20
  216. package/lib/commands/issue-type-scheme/get-projects.js +1 -20
  217. package/lib/commands/issue-type-scheme/move-issue-types.js +1 -16
  218. package/lib/commands/issue-type-scheme/remove-all-projects.js +1 -14
  219. package/lib/commands/issue-type-scheme/remove-issue-type.js +1 -13
  220. package/lib/commands/issue-type-scheme/remove-project.js +1 -20
  221. package/lib/commands/issue-type-scheme/search.js +1 -47
  222. package/lib/commands/issue-type-scheme/set-projects.js +1 -20
  223. package/lib/commands/issue-type-scheme/update.js +1 -40
  224. package/lib/commands/issue-type-screen-scheme/add-mappings.js +1 -20
  225. package/lib/commands/issue-type-screen-scheme/assign-to-project.js +1 -16
  226. package/lib/commands/issue-type-screen-scheme/create.js +1 -27
  227. package/lib/commands/issue-type-screen-scheme/delete.js +1 -13
  228. package/lib/commands/issue-type-screen-scheme/get-for-projects.js +1 -32
  229. package/lib/commands/issue-type-screen-scheme/get-items.js +1 -25
  230. package/lib/commands/issue-type-screen-scheme/get-projects.js +1 -20
  231. package/lib/commands/issue-type-screen-scheme/remove-mappings.js +1 -13
  232. package/lib/commands/issue-type-screen-scheme/search.js +1 -27
  233. package/lib/commands/issue-type-screen-scheme/set-default-screen.js +1 -13
  234. package/lib/commands/issue-type-screen-scheme/update.js +1 -13
  235. package/lib/commands/issue-vote/add.js +1 -18
  236. package/lib/commands/issue-vote/delete.js +1 -18
  237. package/lib/commands/issue-vote/get-all.js +1 -27
  238. package/lib/commands/issue-watcher/add.js +1 -25
  239. package/lib/commands/issue-watcher/delete.js +1 -25
  240. package/lib/commands/issue-watcher/get-all.js +1 -27
  241. package/lib/commands/issue-watcher/get-bulk.js +1 -24
  242. package/lib/commands/jira-expression/analyse.js +1 -78
  243. package/lib/commands/jira-expression/evaluate.js +1 -103
  244. package/lib/commands/jira-settings/get-advanced.js +1 -14
  245. package/lib/commands/jira-settings/get-globals.js +1 -14
  246. package/lib/commands/jira-settings/get-properties.js +1 -19
  247. package/lib/commands/jira-settings/set-property.js +1 -15
  248. package/lib/commands/jql/convert-user-identifiers.js +1 -14
  249. package/lib/commands/jql/get-auto-complete-suggestions.js +1 -16
  250. package/lib/commands/jql/get-reference-data.js +1 -39
  251. package/lib/commands/jql/parse.js +1 -22
  252. package/lib/commands/jql/sanitize.js +1 -26
  253. package/lib/commands/label/get-all.js +1 -29
  254. package/lib/commands/license/get.js +1 -13
  255. package/lib/commands/myself/change-password.js +1 -21
  256. package/lib/commands/myself/delete-preference.js +1 -17
  257. package/lib/commands/myself/get-locale.js +1 -13
  258. package/lib/commands/myself/get-preference.js +1 -27
  259. package/lib/commands/myself/get.js +1 -21
  260. package/lib/commands/myself/set-preference.js +1 -37
  261. package/lib/commands/myself/update-user.js +1 -24
  262. package/lib/commands/notification-scheme/add.js +1 -75
  263. package/lib/commands/notification-scheme/create.js +1 -80
  264. package/lib/commands/notification-scheme/delete-notification.js +1 -22
  265. package/lib/commands/notification-scheme/delete.js +1 -18
  266. package/lib/commands/notification-scheme/get-all.js +1 -57
  267. package/lib/commands/notification-scheme/get-projects.js +1 -29
  268. package/lib/commands/notification-scheme/get.js +1 -75
  269. package/lib/commands/notification-scheme/update.js +1 -23
  270. package/lib/commands/permission/check-global-permission.js +1 -53
  271. package/lib/commands/permission/check-issue-permission.js +1 -60
  272. package/lib/commands/permission/check-project-permission.js +1 -65
  273. package/lib/commands/permission/get-all.js +1 -23
  274. package/lib/commands/permission/get-my.js +1 -33
  275. package/lib/commands/permission/get-permitted.js +1 -30
  276. package/lib/commands/permission-scheme/create-grant.js +1 -54
  277. package/lib/commands/permission-scheme/create-scheme.js +1 -21
  278. package/lib/commands/permission-scheme/delete-grant.js +1 -23
  279. package/lib/commands/permission-scheme/delete-scheme.js +1 -18
  280. package/lib/commands/permission-scheme/get-all-grants.js +1 -39
  281. package/lib/commands/permission-scheme/get-all.js +1 -38
  282. package/lib/commands/permission-scheme/get-grant.js +1 -65
  283. package/lib/commands/permission-scheme/get.js +1 -24
  284. package/lib/commands/project/archive.js +1 -15
  285. package/lib/commands/project/create.js +1 -26
  286. package/lib/commands/project/delete.js +1 -15
  287. package/lib/commands/project/get-all-issue-types.js +1 -16
  288. package/lib/commands/project/get-all.js +1 -16
  289. package/lib/commands/project/get-issue-type-hierarchy.js +1 -15
  290. package/lib/commands/project/get-notification-schema.js +1 -16
  291. package/lib/commands/project/get.js +1 -31
  292. package/lib/commands/project/project.js +1 -40
  293. package/lib/commands/project/restore.js +1 -18
  294. package/lib/commands/project/search.js +1 -28
  295. package/lib/commands/project/unarchive.js +1 -18
  296. package/lib/commands/project/update.js +1 -38
  297. package/lib/commands/project-avatar/delete.js +1 -14
  298. package/lib/commands/project-avatar/get-all.js +1 -21
  299. package/lib/commands/project-avatar/set.js +1 -19
  300. package/lib/commands/project-avatar/upload.js +1 -51
  301. package/lib/commands/project-category/create.js +1 -16
  302. package/lib/commands/project-category/delete.js +1 -15
  303. package/lib/commands/project-category/get-all.js +1 -15
  304. package/lib/commands/project-category/get.js +1 -31
  305. package/lib/commands/project-category/update.js +1 -16
  306. package/lib/commands/project-component/create.js +1 -52
  307. package/lib/commands/project-component/delete.js +1 -15
  308. package/lib/commands/project-component/get-all.js +1 -21
  309. package/lib/commands/project-component/get-issues-count.js +1 -19
  310. package/lib/commands/project-component/get.js +1 -31
  311. package/lib/commands/project-component/search.js +1 -20
  312. package/lib/commands/project-component/update.js +1 -19
  313. package/lib/commands/project-email/get-sender.js +1 -17
  314. package/lib/commands/project-email/set-sender.js +1 -16
  315. package/lib/commands/project-feature/get.js +1 -36
  316. package/lib/commands/project-feature/set.js +1 -29
  317. package/lib/commands/project-key-and-name-validation/get-valid-key.js +1 -15
  318. package/lib/commands/project-key-and-name-validation/get-valid-name.js +1 -15
  319. package/lib/commands/project-key-and-name-validation/validate-key.js +1 -21
  320. package/lib/commands/project-permission-scheme/get-issue-security-levels.js +1 -17
  321. package/lib/commands/project-permission-scheme/get-issue-security-scheme-levels.js +1 -12
  322. package/lib/commands/project-permission-scheme/get-issue-security-scheme.js +1 -16
  323. package/lib/commands/project-permission-scheme/get-permissions.js +1 -11
  324. package/lib/commands/project-permission-scheme/get.js +1 -16
  325. package/lib/commands/project-permission-scheme/set.js +1 -16
  326. package/lib/commands/project-property/delete.js +1 -15
  327. package/lib/commands/project-property/get-keys.js +1 -17
  328. package/lib/commands/project-property/get.js +1 -16
  329. package/lib/commands/project-property/set.js +1 -19
  330. package/lib/commands/project-role/create.js +1 -16
  331. package/lib/commands/project-role/delete.js +1 -15
  332. package/lib/commands/project-role/get-all.js +1 -16
  333. package/lib/commands/project-role/get-role.js +1 -34
  334. package/lib/commands/project-role/get-roles-and-details.js +1 -19
  335. package/lib/commands/project-role/get-roles.js +1 -19
  336. package/lib/commands/project-role/get.js +1 -31
  337. package/lib/commands/project-role/project-role.js +1 -15
  338. package/lib/commands/project-role/update-partial.js +1 -24
  339. package/lib/commands/project-role/update.js +1 -15
  340. package/lib/commands/project-role-actor/add-actors.js +1 -42
  341. package/lib/commands/project-role-actor/add-default-actors.js +1 -42
  342. package/lib/commands/project-role-actor/delete-actors.js +1 -35
  343. package/lib/commands/project-role-actor/delete-default-actors.js +1 -30
  344. package/lib/commands/project-role-actor/get.js +1 -35
  345. package/lib/commands/project-role-actor/set-actors.js +1 -37
  346. package/lib/commands/project-type/check-accessible.js +1 -15
  347. package/lib/commands/project-type/get-all.js +1 -14
  348. package/lib/commands/project-type/get-licensed.js +1 -14
  349. package/lib/commands/project-type/get.js +1 -30
  350. package/lib/commands/project-type/update.js +1 -18
  351. package/lib/commands/project-version/create.js +1 -19
  352. package/lib/commands/project-version/delete-and-replace.js +1 -25
  353. package/lib/commands/project-version/get-all.js +1 -16
  354. package/lib/commands/project-version/get-related-issue-count.js +1 -16
  355. package/lib/commands/project-version/get-unresolved-issue-count.js +1 -16
  356. package/lib/commands/project-version/get.js +1 -31
  357. package/lib/commands/project-version/merge.js +2 -15
  358. package/lib/commands/project-version/move.js +1 -15
  359. package/lib/commands/project-version/search.js +1 -19
  360. package/lib/commands/project-version/update.js +1 -16
  361. package/lib/commands/screen/add-field-to-default-screen.js +1 -18
  362. package/lib/commands/screen/create.js +1 -15
  363. package/lib/commands/screen/delete.js +1 -13
  364. package/lib/commands/screen/get-all.js +1 -44
  365. package/lib/commands/screen/get-available-fields.js +1 -19
  366. package/lib/commands/screen/get-field-screens.js +1 -24
  367. package/lib/commands/screen/get-workflows.js +1 -36
  368. package/lib/commands/screen/update.js +1 -16
  369. package/lib/commands/screen-scheme/create.js +1 -25
  370. package/lib/commands/screen-scheme/delete.js +1 -13
  371. package/lib/commands/screen-scheme/get-all.js +1 -30
  372. package/lib/commands/screen-scheme/update.js +1 -31
  373. package/lib/commands/screen-tab/create.js +1 -17
  374. package/lib/commands/screen-tab/delete.js +1 -14
  375. package/lib/commands/screen-tab/get-all.js +1 -17
  376. package/lib/commands/screen-tab/move.js +1 -14
  377. package/lib/commands/screen-tab/update.js +1 -15
  378. package/lib/commands/screen-tab-field/add.js +1 -19
  379. package/lib/commands/screen-tab-field/get-all.js +1 -17
  380. package/lib/commands/screen-tab-field/move.js +1 -16
  381. package/lib/commands/screen-tab-field/remove.js +1 -17
  382. package/lib/commands/server-info/get.js +1 -14
  383. package/lib/commands/server-info/jmx.js +1 -15
  384. package/lib/commands/status/create.js +1 -31
  385. package/lib/commands/status/delete.js +1 -24
  386. package/lib/commands/status/get-usages.js +1 -24
  387. package/lib/commands/status/get.js +1 -53
  388. package/lib/commands/status/search.js +1 -44
  389. package/lib/commands/status/status-command.js +1 -31
  390. package/lib/commands/status/update.js +1 -24
  391. package/lib/commands/task/cancel.js +1 -13
  392. package/lib/commands/task/get.js +1 -29
  393. package/lib/commands/time-tracking/get-all.js +1 -13
  394. package/lib/commands/time-tracking/get-setting.js +1 -13
  395. package/lib/commands/time-tracking/get.js +1 -13
  396. package/lib/commands/time-tracking/select.js +1 -19
  397. package/lib/commands/time-tracking/set.js +1 -31
  398. package/lib/commands/user/add-user-to-application.js +1 -21
  399. package/lib/commands/user/change-password.js +1 -18
  400. package/lib/commands/user/create.js +1 -45
  401. package/lib/commands/user/delete.js +1 -24
  402. package/lib/commands/user/get-all.js +1 -32
  403. package/lib/commands/user/get-default-columns.js +1 -39
  404. package/lib/commands/user/get-email.js +1 -25
  405. package/lib/commands/user/get-user-groups.js +1 -26
  406. package/lib/commands/user/get.js +1 -40
  407. package/lib/commands/user/remove-user-from-application.js +1 -21
  408. package/lib/commands/user/reset-default-columns.js +1 -33
  409. package/lib/commands/user/set-default-columns.js +1 -26
  410. package/lib/commands/user/update.js +1 -30
  411. package/lib/commands/user/user-command.js +1 -22
  412. package/lib/commands/user-property/delete.js +1 -32
  413. package/lib/commands/user-property/get-all-keys.js +1 -32
  414. package/lib/commands/user-property/get-user-property.js +1 -34
  415. package/lib/commands/user-property/set.js +1 -39
  416. package/lib/commands/user-search/accounts-with-query.js +1 -27
  417. package/lib/commands/user-search/assignable-users-bulk.js +1 -21
  418. package/lib/commands/user-search/assignable-users.js +1 -21
  419. package/lib/commands/user-search/find.js +1 -23
  420. package/lib/commands/user-search/with-permission.js +1 -24
  421. package/lib/commands/user-search/with-query.js +1 -27
  422. package/lib/commands/workflow/create.js +1 -36
  423. package/lib/commands/workflow/delete.js +1 -13
  424. package/lib/commands/workflow/get-projects.js +1 -14
  425. package/lib/commands/workflow/get-schemes.js +1 -14
  426. package/lib/commands/workflow/get-statuses-properties.js +1 -26
  427. package/lib/commands/workflow/get-statuses.js +1 -14
  428. package/lib/commands/workflow/get-transitions-rules.js +1 -44
  429. package/lib/commands/workflow/get-transitions.js +1 -21
  430. package/lib/commands/workflow/search.js +1 -66
  431. package/lib/commands/workflow-scheme/create.js +3 -59
  432. package/lib/commands/workflow-scheme/delete-default-workflow.js +1 -15
  433. package/lib/commands/workflow-scheme/delete-issue-types-for-workflow.js +1 -16
  434. package/lib/commands/workflow-scheme/delete-workflow-for-issue-type.js +1 -16
  435. package/lib/commands/workflow-scheme/delete.js +1 -14
  436. package/lib/commands/workflow-scheme/get-all.js +1 -20
  437. package/lib/commands/workflow-scheme/get-default-workflow.js +1 -15
  438. package/lib/commands/workflow-scheme/get-issue-types-for-workflows.js +1 -30
  439. package/lib/commands/workflow-scheme/get-workflow-for-issue-type.js +1 -15
  440. package/lib/commands/workflow-scheme/get.js +1 -31
  441. package/lib/commands/workflow-scheme/set-issue-types-for-workflow.js +1 -21
  442. package/lib/commands/workflow-scheme/set-workflow-for-issue-type.js +1 -27
  443. package/lib/commands/workflow-scheme/update-default-workflow.js +1 -15
  444. package/lib/commands/workflow-scheme/update.js +3 -61
  445. package/lib/commands/workflow-scheme-draft/create.js +1 -15
  446. package/lib/commands/workflow-scheme-draft/delete-default-workflow.js +1 -15
  447. package/lib/commands/workflow-scheme-draft/delete-issue-types-for-workflow.js +1 -16
  448. package/lib/commands/workflow-scheme-draft/delete-workflow-for-issue-type.js +1 -16
  449. package/lib/commands/workflow-scheme-draft/delete.js +1 -14
  450. package/lib/commands/workflow-scheme-draft/get-default-workflow.js +1 -15
  451. package/lib/commands/workflow-scheme-draft/get-issue-types-for-workflows.js +1 -30
  452. package/lib/commands/workflow-scheme-draft/get-workflow-for-issue-type.js +1 -15
  453. package/lib/commands/workflow-scheme-draft/get.js +1 -30
  454. package/lib/commands/workflow-scheme-draft/publish.js +1 -21
  455. package/lib/commands/workflow-scheme-draft/set-issue-types-for-workflow.js +1 -21
  456. package/lib/commands/workflow-scheme-draft/set-workflow-for-issue-type.js +1 -27
  457. package/lib/commands/workflow-scheme-draft/update-default-workflow.js +1 -15
  458. package/lib/commands/workflow-scheme-draft/update.js +3 -61
  459. package/lib/commands/workflow-scheme-project-association/assign.js +1 -18
  460. package/lib/commands/workflow-scheme-project-association/get-all.js +1 -30
  461. package/lib/commands/workflow-status/get-all.js +1 -14
  462. package/lib/commands/workflow-status/get.js +1 -30
  463. package/lib/commands/workflow-status-category/get-all.js +1 -14
  464. package/lib/commands/workflow-status-category/get.js +1 -15
  465. package/lib/commands/workflow-transition-property/create.js +1 -17
  466. package/lib/commands/workflow-transition-property/delete.js +1 -16
  467. package/lib/commands/workflow-transition-property/get.js +1 -20
  468. package/lib/commands/workflow-transition-property/update.js +1 -17
  469. package/lib/commands/worklog/add.js +1 -40
  470. package/lib/commands/worklog/delete.js +1 -21
  471. package/lib/commands/worklog/get-deleted.js +1 -21
  472. package/lib/commands/worklog/get-for-issue.js +1 -28
  473. package/lib/commands/worklog/get-updated.js +1 -17
  474. package/lib/commands/worklog/get-with-ids.js +1 -30
  475. package/lib/commands/worklog/get.js +1 -38
  476. package/lib/commands/worklog/update.js +1 -23
  477. package/lib/commands/worklog-property/delete.js +1 -14
  478. package/lib/commands/worklog-property/get-keys.js +1 -15
  479. package/lib/commands/worklog-property/get.js +1 -15
  480. package/lib/commands/worklog-property/set-property.js +1 -14
  481. package/lib/index.js +1 -5
  482. package/package.json +27 -32
  483. package/lib/commands/avatar/get-all-user-avatars.js +0 -22
  484. package/lib/oclif-config.js +0 -8
package/README.md CHANGED
@@ -1,32 +1,41 @@
1
1
  <!-- toc -->
2
+
2
3
  * [Usage](#usage)
3
4
  * [Commands](#commands)
5
+
4
6
  <!-- tocstop -->
5
7
 
6
8
  # Usage
7
9
 
10
+ "ATLAS CLI for Jira" is a command line tool for Jira. *It will not work unless the corresponding [paid add-on](https://marketplace.atlassian.com/apps/1224496/atlas-cli-for-jira?&tab=overview) is installed to Jira.*
11
+
8
12
  <!-- usage -->
13
+
9
14
  ```sh-session
10
15
  $ npm install -g @thestarware/atlascli-jira
11
16
  $ jira COMMAND
12
17
  running command...
13
18
  $ jira (--version)
14
- @thestarware/atlascli-jira/1.2.6 darwin-arm64 node-v20.18.1
19
+ @thestarware/atlascli-jira/1.1.0 darwin-arm64 node-v16.13.1
15
20
  $ jira --help [COMMAND]
16
21
  USAGE
17
22
  $ jira COMMAND
18
23
  ...
19
24
  ```
25
+
20
26
  <!-- usagestop -->
21
27
 
22
28
  # Commands
23
29
 
24
30
  <!-- commands -->
25
- * [`jira announcement-banner get`](#jira-announcement-banner-get)
31
+
26
32
  * [`jira announcement-banner update`](#jira-announcement-banner-update)
33
+ * [`jira announcement-banner get`](#jira-announcement-banner-get)
34
+ * [`jira announcement-banner update`](#jira-announcement-banner-update-1)
35
+ * [`jira application-role update`](#jira-application-role-update)
27
36
  * [`jira application-role get`](#jira-application-role-get)
28
37
  * [`jira application-role get-all`](#jira-application-role-get-all)
29
- * [`jira application-role update`](#jira-application-role-update)
38
+ * [`jira application-role update`](#jira-application-role-update-1)
30
39
  * [`jira attachment add FILE`](#jira-attachment-add-file)
31
40
  * [`jira attachment delete ID`](#jira-attachment-delete-id)
32
41
  * [`jira attachment get-content`](#jira-attachment-get-content)
@@ -38,7 +47,7 @@ USAGE
38
47
  * [`jira audit-record get-changed`](#jira-audit-record-get-changed)
39
48
  * [`jira avatar delete-universal-avatar`](#jira-avatar-delete-universal-avatar)
40
49
  * [`jira avatar delete-user-avatar`](#jira-avatar-delete-user-avatar)
41
- * [`jira avatar get-all-user-avatars`](#jira-avatar-get-all-user-avatars)
50
+ * [`jira avatar get-all-user-avatar`](#jira-avatar-get-all-user-avatar)
42
51
  * [`jira avatar get-image-by-id`](#jira-avatar-get-image-by-id)
43
52
  * [`jira avatar get-image-by-owner`](#jira-avatar-get-image-by-owner)
44
53
  * [`jira avatar get-image-by-type`](#jira-avatar-get-image-by-type)
@@ -427,6 +436,7 @@ USAGE
427
436
  * [`jira time-tracking get-setting`](#jira-time-tracking-get-setting)
428
437
  * [`jira time-tracking select`](#jira-time-tracking-select)
429
438
  * [`jira time-tracking set`](#jira-time-tracking-set)
439
+ * [`jira update [CHANNEL]`](#jira-update-channel)
430
440
  * [`jira user-property delete`](#jira-user-property-delete)
431
441
  * [`jira user-property get-all-keys`](#jira-user-property-get-all-keys)
432
442
  * [`jira user-property get-user-property`](#jira-user-property-get-user-property)
@@ -511,6 +521,29 @@ USAGE
511
521
  * [`jira worklog get-with-ids [WORKLOGID]`](#jira-worklog-get-with-ids-worklogid)
512
522
  * [`jira worklog update`](#jira-worklog-update)
513
523
 
524
+ ## `jira announcement-banner update`
525
+
526
+ Updates the announcement banner configuration.
527
+
528
+ ```
529
+ USAGE
530
+ $ jira announcement-banner update -m <value> -v public|private [-d] [-e]
531
+
532
+ FLAGS
533
+ -d, --[no-]isDismissible Flag indicating if the announcement banner can be dismissed by the user.
534
+ -e, --[no-]isEnabled Flag indicating if the announcement banner is enabled or not.
535
+ -m, --message=<value> (required) The text on the announcement banner.
536
+ -v, --visibility=<option> (required) Visibility of the announcement banner. Can be public or private.
537
+ <options: public|private>
538
+
539
+ DESCRIPTION
540
+ Updates the announcement banner configuration.
541
+
542
+ ALIASES
543
+ $ jira announcement-banner update
544
+ $ jira announcement-banner update
545
+ ```
546
+
514
547
  ## `jira announcement-banner get`
515
548
 
516
549
  Returns the current announcement banner configuration.
@@ -540,6 +573,45 @@ FLAGS
540
573
 
541
574
  DESCRIPTION
542
575
  Updates the announcement banner configuration.
576
+
577
+ ALIASES
578
+ $ jira announcement-banner update
579
+ $ jira announcement-banner update
580
+ ```
581
+
582
+ ## `jira application-role update`
583
+
584
+ Updates the an application role. If versionHash is passed, the request will be rejected if not the same as server.
585
+
586
+ ```
587
+ USAGE
588
+ $ jira application-role update -k <value> [-v <value>] [-n <value>] [-g <value>] [--defaultGroups <value>]
589
+ [--selectedByDefault] [--numberOfSeats <value>] [-r <value>] [-c <value>] [--userCountDescription <value>]
590
+ [--hasUnlimitedSeats] [-p]
591
+
592
+ FLAGS
593
+ -c, --userCount=<value> The number of users counting against your license.
594
+ -g, --groups=<value> The name of the groups. You can provide multiple group name by seperating them with
595
+ comma.
596
+ -k, --key=<value> (required) The key of the application role.
597
+ -n, --name=<value> The display name of the application role.
598
+ -p, --platform Indicates if the application role belongs to Jira platform (jira-core).
599
+ -r, --remainingSeats=<value> The count of users remaining on your license.
600
+ -v, --versionHash=<value> The hash of the version to update.
601
+ --defaultGroups=<value> The name of default groups. You can provide multiple group name by seperating them
602
+ with comma.
603
+ --hasUnlimitedSeats Whether your license can have unlimited user or not.
604
+ --numberOfSeats=<value> The maximum count of users on your license.
605
+ --selectedByDefault Determines whether this application role should be selected by default on user
606
+ creation.
607
+ --userCountDescription=<value> The type of users being counted against your license.
608
+
609
+ DESCRIPTION
610
+ Updates the an application role. If versionHash is passed, the request will be rejected if not the same as server.
611
+
612
+ ALIASES
613
+ $ jira application-role update
614
+ $ jira application-role update
543
615
  ```
544
616
 
545
617
  ## `jira application-role get`
@@ -601,6 +673,10 @@ FLAGS
601
673
 
602
674
  DESCRIPTION
603
675
  Updates the an application role. If versionHash is passed, the request will be rejected if not the same as server.
676
+
677
+ ALIASES
678
+ $ jira application-role update
679
+ $ jira application-role update
604
680
  ```
605
681
 
606
682
  ## `jira attachment add FILE`
@@ -775,7 +851,7 @@ DESCRIPTION
775
851
 
776
852
  ## `jira avatar delete-universal-avatar`
777
853
 
778
- Returns the system and custom avatars for a project or issue type.
854
+ Deletes the system and custom avatars for a project or issue type.
779
855
 
780
856
  ```
781
857
  USAGE
@@ -792,7 +868,7 @@ FLAGS
792
868
  --y=<value> The Y coordinate of the top-left corner of the crop region.
793
869
 
794
870
  DESCRIPTION
795
- Returns the system and custom avatars for a project or issue type.
871
+ Deletes the system and custom avatars for a project or issue type.
796
872
  ```
797
873
 
798
874
  ## `jira avatar delete-user-avatar`
@@ -811,13 +887,13 @@ DESCRIPTION
811
887
  Deletes a custom avatar from a user. Note that system avatars cannot be deleted.
812
888
  ```
813
889
 
814
- ## `jira avatar get-all-user-avatars`
890
+ ## `jira avatar get-all-user-avatar`
815
891
 
816
892
  Returns all user avatars for specified user.
817
893
 
818
894
  ```
819
895
  USAGE
820
- $ jira avatar get-all-user-avatars -u <value>
896
+ $ jira avatar get-all-user-avatar -u <value>
821
897
 
822
898
  FLAGS
823
899
  -u, --user=<value> (required) The username or email.
@@ -2271,7 +2347,7 @@ DESCRIPTION
2271
2347
  Display help for jira.
2272
2348
  ```
2273
2349
 
2274
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.2.20/src/commands/help.ts)_
2350
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.2.8/src/commands/help.ts)_
2275
2351
 
2276
2352
  ## `jira issue-field-configuration assign-issue-type`
2277
2353
 
@@ -2933,7 +3009,7 @@ DESCRIPTION
2933
3009
 
2934
3010
  ## `jira issue-field delete`
2935
3011
 
2936
- Deletes issue field. CLOUD ONLY -> This operation is asynchronous. You can use `jira task:get` command to obtain any updates.
3012
+ Deletes issue field. CLOUD ONLY -> This operation is asynchronous. You can use `jira task:get` command to obtain any updates.
2937
3013
 
2938
3014
  ```
2939
3015
  USAGE
@@ -5786,7 +5862,7 @@ EXAMPLES
5786
5862
  $ jira plugins
5787
5863
  ```
5788
5864
 
5789
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.4.7/src/commands/plugins/index.ts)_
5865
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.4.3/src/commands/plugins/index.ts)_
5790
5866
 
5791
5867
  ## `jira plugins:install PLUGIN...`
5792
5868
 
@@ -5800,7 +5876,7 @@ ARGUMENTS
5800
5876
  PLUGIN Plugin to install.
5801
5877
 
5802
5878
  FLAGS
5803
- -f, --force Run yarn install with force flag.
5879
+ -f, --force Run npm install with force flag.
5804
5880
  -h, --help Show CLI help.
5805
5881
  -v, --verbose
5806
5882
 
@@ -5851,8 +5927,6 @@ EXAMPLES
5851
5927
  $ jira plugins:inspect myplugin
5852
5928
  ```
5853
5929
 
5854
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.4.7/src/commands/plugins/inspect.ts)_
5855
-
5856
5930
  ## `jira plugins:install PLUGIN...`
5857
5931
 
5858
5932
  Installs a plugin into the CLI.
@@ -5865,7 +5939,7 @@ ARGUMENTS
5865
5939
  PLUGIN Plugin to install.
5866
5940
 
5867
5941
  FLAGS
5868
- -f, --force Run yarn install with force flag.
5942
+ -f, --force Run npm install with force flag.
5869
5943
  -h, --help Show CLI help.
5870
5944
  -v, --verbose
5871
5945
 
@@ -5891,8 +5965,6 @@ EXAMPLES
5891
5965
  $ jira plugins:install someuser/someplugin
5892
5966
  ```
5893
5967
 
5894
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.4.7/src/commands/plugins/install.ts)_
5895
-
5896
5968
  ## `jira plugins:link PLUGIN`
5897
5969
 
5898
5970
  Links a plugin into the CLI for development.
@@ -5920,8 +5992,6 @@ EXAMPLES
5920
5992
  $ jira plugins:link myplugin
5921
5993
  ```
5922
5994
 
5923
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.4.7/src/commands/plugins/link.ts)_
5924
-
5925
5995
  ## `jira plugins:uninstall PLUGIN...`
5926
5996
 
5927
5997
  Removes a plugin from the CLI.
@@ -5968,8 +6038,6 @@ ALIASES
5968
6038
  $ jira plugins remove
5969
6039
  ```
5970
6040
 
5971
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.4.7/src/commands/plugins/uninstall.ts)_
5972
-
5973
6041
  ## `jira plugins:uninstall PLUGIN...`
5974
6042
 
5975
6043
  Removes a plugin from the CLI.
@@ -6009,8 +6077,6 @@ DESCRIPTION
6009
6077
  Update installed plugins.
6010
6078
  ```
6011
6079
 
6012
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.4.7/src/commands/plugins/update.ts)_
6013
-
6014
6080
  ## `jira project-avatar delete`
6015
6081
 
6016
6082
  Deletes a custom avatar from a project. Note that system avatars cannot be deleted.
@@ -6533,7 +6599,7 @@ DESCRIPTION
6533
6599
 
6534
6600
  ## `jira project-property get-keys`
6535
6601
 
6536
- Returns all project property keys for the project.
6602
+ Returns all project property keys for the project.
6537
6603
 
6538
6604
  ```
6539
6605
  USAGE
@@ -7969,6 +8035,23 @@ DESCRIPTION
7969
8035
  Sets the time tracking settings.
7970
8036
  ```
7971
8037
 
8038
+ ## `jira update [CHANNEL]`
8039
+
8040
+ update the jira CLI
8041
+
8042
+ ```
8043
+ USAGE
8044
+ $ jira update [CHANNEL] [--from-local]
8045
+
8046
+ FLAGS
8047
+ --from-local interactively choose an already installed version
8048
+
8049
+ DESCRIPTION
8050
+ update the jira CLI
8051
+ ```
8052
+
8053
+ _See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v2.2.0/src/commands/update.ts)_
8054
+
7972
8055
  ## `jira user-property delete`
7973
8056
 
7974
8057
  Deletes a property from a user.
@@ -9668,4 +9751,5 @@ FLAGS
9668
9751
  DESCRIPTION
9669
9752
  Adds a worklog to an issue.
9670
9753
  ```
9754
+
9671
9755
  <!-- commandsstop -->
@@ -1,13 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const atlascli_common_1 = require("@thestarware/atlascli-common");
4
- class GetConfiguration extends atlascli_common_1.BaseCommandWithCloudSite {
5
- async runWithCloudSite(site, jira) {
6
- const { flags } = await this.parse(GetConfiguration);
7
- const res = await jira.announcementBannerManager.getConfiguration();
8
- this.display(flags, res);
9
- }
10
- }
11
- exports.default = GetConfiguration;
12
- GetConfiguration.description = 'Returns the current announcement banner configuration.';
13
- GetConfiguration.flags = Object.assign({}, atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common");class GetConfiguration extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(t,a){var e=(await this.parse(GetConfiguration)).flags,a=await a.announcementBannerManager.getConfiguration();this.display(e,a)}}(exports.default=GetConfiguration).description="Returns the current announcement banner configuration.",GetConfiguration.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
@@ -1,30 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const core_1 = require("@oclif/core");
4
- const atlascli_common_1 = require("@thestarware/atlascli-common");
5
- class UpdateConfiguration extends atlascli_common_1.BaseCommandWithCloudSite {
6
- async runWithCloudSite(site, jira) {
7
- const { flags } = await this.parse(UpdateConfiguration);
8
- await jira.announcementBannerManager.updateConfiguration(this.removeFlagsFromBase(flags));
9
- }
10
- }
11
- exports.default = UpdateConfiguration;
12
- UpdateConfiguration.description = 'Updates the announcement banner configuration.';
13
- UpdateConfiguration.flags = Object.assign({ message: core_1.Flags.string({
14
- char: 'm',
15
- description: 'The text on the announcement banner.',
16
- required: true,
17
- }), isDismissible: core_1.Flags.boolean({
18
- char: 'd',
19
- description: 'Flag indicating if the announcement banner can be dismissed by the user.',
20
- allowNo: true,
21
- }), isEnabled: core_1.Flags.boolean({
22
- char: 'e',
23
- description: 'Flag indicating if the announcement banner is enabled or not.',
24
- allowNo: true,
25
- }), visibility: core_1.Flags.string({
26
- char: 'v',
27
- description: 'Visibility of the announcement banner. Can be public or private.',
28
- options: ['public', 'private'],
29
- required: true,
30
- }) }, 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 UpdateConfiguration extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,n){var a=(await this.parse(UpdateConfiguration)).flags;await n.announcementBannerManager.updateConfiguration(this.removeFlagsFromBase(a))}}(exports.default=UpdateConfiguration).description="Updates the announcement banner configuration.",UpdateConfiguration.aliases=["announcement-banner:update","announcement-banner update"],UpdateConfiguration.flags=Object.assign({message:core_1.Flags.string({char:"m",description:"The text on the announcement banner.",required:!0}),isDismissible:core_1.Flags.boolean({char:"d",description:"Flag indicating if the announcement banner can be dismissed by the user.",allowNo:!0}),isEnabled:core_1.Flags.boolean({char:"e",description:"Flag indicating if the announcement banner is enabled or not.",allowNo:!0}),visibility:core_1.Flags.string({char:"v",description:"Visibility of the announcement banner. Can be public or private.",options:["public","private"],required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1,22 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const core_1 = require("@oclif/core");
4
- const atlascli_common_1 = require("@thestarware/atlascli-common");
5
- class GetAllAppRoles extends atlascli_common_1.BaseCommandWithSite {
6
- async runWithSite(site) {
7
- const { flags } = await this.parse(GetAllAppRoles);
8
- const jira = this.getJira(site, flags);
9
- const res = await jira.applicationRoleManager.getApplicationRoles();
10
- this.display(flags, res.applicationRoles.map((role) => {
11
- this.log(role);
12
- role.groups = (site.cloud ? role.groupDetails.map((group) => group.name) : role.groups).join(',');
13
- role.defaultGroups = (site.cloud ? role.defaultGroupsDetails.map((group) => group.name) : role.defaultGroups).join(',');
14
- return role;
15
- }));
16
- if (flags.showHashVersion && !site.cloud)
17
- this.log(`\nHash Version: ${res.versionHash}`);
18
- }
19
- }
20
- exports.default = GetAllAppRoles;
21
- GetAllAppRoles.description = 'Gets all application roles.';
22
- GetAllAppRoles.flags = Object.assign({ showHashVersion: core_1.Flags.boolean({ description: 'Whether hash version will be shown in the response. (Only for Server)' }) }, atlascli_common_1.BaseCommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetAllAppRoles extends atlascli_common_1.BaseCommandWithSite{async runWithSite(s){var e=(await this.parse(GetAllAppRoles)).flags,a=await this.getJira(s,e).applicationRoleManager.getApplicationRoles();this.display(e,a.applicationRoles.map(e=>(this.log(e),e.groups=(s.cloud?e.groupDetails.map(e=>e.name):e.groups).join(","),e.defaultGroups=(s.cloud?e.defaultGroupsDetails.map(e=>e.name):e.defaultGroups).join(","),e))),e.showHashVersion&&!s.cloud&&this.log(`
2
+ Hash Version: `+a.versionHash)}}(exports.default=GetAllAppRoles).description="Gets all application roles.",GetAllAppRoles.flags=Object.assign({showHashVersion:core_1.Flags.boolean({description:"Whether hash version will be shown in the response. (Only for Server)"})},atlascli_common_1.BaseCommandWithSite.flags);
@@ -1,19 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const core_1 = require("@oclif/core");
4
- const atlascli_common_1 = require("@thestarware/atlascli-common");
5
- class GetAppRole extends atlascli_common_1.BaseCommandWithSite {
6
- async runWithSite(site) {
7
- const { flags } = await this.parse(GetAppRole);
8
- const jira = this.getJira(site, flags);
9
- const res = await jira.applicationRoleManager.getApplicationRole(flags.key);
10
- this.display(flags, [res].map((role) => {
11
- role.groups = (site.cloud ? role.groupDetails.map((group) => group.name) : role.groups).join(',');
12
- role.defaultGroups = (site.cloud ? role.defaultGroupsDetails.map((group) => group.name) : role.defaultGroups).join(',');
13
- return role;
14
- }));
15
- }
16
- }
17
- exports.default = GetAppRole;
18
- GetAppRole.description = 'Gets an application role.';
19
- GetAppRole.flags = Object.assign({ key: core_1.Flags.string({ char: 'k', description: 'The key of the application role.', required: true }) }, atlascli_common_1.BaseCommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetAppRole extends atlascli_common_1.BaseCommandWithSite{async runWithSite(a){var e=(await this.parse(GetAppRole)).flags,t=await this.getJira(a,e).applicationRoleManager.getApplicationRole(e.key);this.display(e,[t].map(e=>(e.groups=(a.cloud?e.groupDetails.map(e=>e.name):e.groups).join(","),e.defaultGroups=(a.cloud?e.defaultGroupsDetails.map(e=>e.name):e.defaultGroups).join(","),e)))}}(exports.default=GetAppRole).description="Gets an application role.",GetAppRole.flags=Object.assign({key:core_1.Flags.string({char:"k",description:"The key of the application role.",required:!0})},atlascli_common_1.BaseCommandWithSite.flags);
@@ -1,23 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const core_1 = require("@oclif/core");
5
- const atlascli_common_1 = require("@thestarware/atlascli-common");
6
- class UpdateApplicationRole extends atlascli_common_1.BaseCommandWithServerSite {
7
- async runWithServerSite(site, jira) {
8
- var _a, _b;
9
- const { flags } = await this.parse(UpdateApplicationRole);
10
- const _c = this.removeFlagsFromBase(flags), { key, versionHash } = _c, body = tslib_1.__rest(_c, ["key", "versionHash"]);
11
- body.groups = (_a = body.groups) === null || _a === void 0 ? void 0 : _a.split(',');
12
- body.defaultGroups = (_b = body.defaultGroups) === null || _b === void 0 ? void 0 : _b.split(',');
13
- const res = await jira.applicationRoleManager.updateApplicationRole(key, body, versionHash);
14
- this.display(flags, [res].map((role) => {
15
- role.groups = role.groups.join(',');
16
- role.defaultGroups = role.defaultGroups.join(',');
17
- return role;
18
- }));
19
- }
20
- }
21
- exports.default = UpdateApplicationRole;
22
- UpdateApplicationRole.description = 'Updates the an application role. If versionHash is passed, the request will be rejected if not the same as server.';
23
- UpdateApplicationRole.flags = Object.assign({ key: core_1.Flags.string({ char: 'k', description: 'The key of the application role.', required: true }), versionHash: core_1.Flags.string({ char: 'v', description: 'The hash of the version to update.' }), name: core_1.Flags.string({ char: 'n', description: 'The display name of the application role.' }), groups: core_1.Flags.string({ char: 'g', description: 'The name of the groups. You can provide multiple group name by seperating them with comma.' }), defaultGroups: core_1.Flags.string({ description: 'The name of default groups. You can provide multiple group name by seperating them with comma.' }), selectedByDefault: core_1.Flags.boolean({ description: 'Determines whether this application role should be selected by default on user creation.' }), numberOfSeats: core_1.Flags.integer({ description: 'The maximum count of users on your license.' }), remainingSeats: core_1.Flags.integer({ char: 'r', description: 'The count of users remaining on your license.' }), userCount: core_1.Flags.integer({ char: 'c', description: 'The number of users counting against your license.' }), userCountDescription: core_1.Flags.string({ description: 'The type of users being counted against your license.' }), hasUnlimitedSeats: core_1.Flags.boolean({ description: 'Whether your license can have unlimited user or not.' }), platform: core_1.Flags.boolean({ char: 'p', description: 'Indicates if the application role belongs to Jira platform (jira-core).' }) }, atlascli_common_1.BaseCommandWithServerSite.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 UpdateApplicationRole extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(e,o){var i=(await this.parse(UpdateApplicationRole)).flags,a=this.removeFlagsFromBase(i),{key:r,versionHash:t}=a,a=tslib_1.__rest(a,["key","versionHash"]),s=(a.groups=null==(s=a.groups)?void 0:s.split(","),a.defaultGroups=null==(s=a.defaultGroups)?void 0:s.split(","),await o.applicationRoleManager.updateApplicationRole(r,a,t));this.display(i,[s].map(e=>(e.groups=e.groups.join(","),e.defaultGroups=e.defaultGroups.join(","),e)))}}(exports.default=UpdateApplicationRole).description="Updates the an application role. If versionHash is passed, the request will be rejected if not the same as server.",UpdateApplicationRole.aliases=["application-role update","application-role:update"],UpdateApplicationRole.flags=Object.assign({key:core_1.Flags.string({char:"k",description:"The key of the application role.",required:!0}),versionHash:core_1.Flags.string({char:"v",description:"The hash of the version to update."}),name:core_1.Flags.string({char:"n",description:"The display name of the application role."}),groups:core_1.Flags.string({char:"g",description:"The name of the groups. You can provide multiple group name by seperating them with comma."}),defaultGroups:core_1.Flags.string({description:"The name of default groups. You can provide multiple group name by seperating them with comma."}),selectedByDefault:core_1.Flags.boolean({description:"Determines whether this application role should be selected by default on user creation."}),numberOfSeats:core_1.Flags.integer({description:"The maximum count of users on your license."}),remainingSeats:core_1.Flags.integer({char:"r",description:"The count of users remaining on your license."}),userCount:core_1.Flags.integer({char:"c",description:"The number of users counting against your license."}),userCountDescription:core_1.Flags.string({description:"The type of users being counted against your license."}),hasUnlimitedSeats:core_1.Flags.boolean({description:"Whether your license can have unlimited user or not."}),platform:core_1.Flags.boolean({char:"p",description:"Indicates if the application role belongs to Jira platform (jira-core)."})},atlascli_common_1.BaseCommandWithServerSite.flags);
@@ -1,33 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const atlascli_common_1 = require("@thestarware/atlascli-common");
4
- const core_1 = require("@oclif/core");
5
- const avatar_utils_1 = require("@thestarware/atlascli-common/lib/avatar-utils");
6
- const mapper_utils_1 = require("@thestarware/atlascli-common/lib/util/mapper-utils");
7
- class Add extends atlascli_common_1.CommandWithSite {
8
- async runWithSite(site) {
9
- const { flags, args } = await this.parse(Add);
10
- const jira = this.getJira(site, flags);
11
- const file = flags.file || args.file;
12
- const { fileContent, fileName } = (0, avatar_utils_1.readFile)(file);
13
- const result = await jira.attachmentManager.addAttachment(flags.issue, fileName, fileContent);
14
- this.displayAttachmentMetadata(flags, result, site.cloud);
15
- }
16
- displayAttachmentMetadata(flags, attachmentMetadata, isCloud) {
17
- this.displayJsonYamlOrTable(flags, attachmentMetadata, () => {
18
- return this.tabularFormat([attachmentMetadata], flags, (o, newO) => {
19
- Object.assign(newO, (0, mapper_utils_1.mapToUser)(o.author, isCloud));
20
- });
21
- });
22
- }
23
- }
24
- exports.default = Add;
25
- Add.description = 'Adds an attachment to an issue.';
26
- Add.flags = Object.assign({ issue: core_1.Flags.string({ required: true, description: 'Issue ID or key.' }), file: core_1.Flags.string({ description: 'Location of file.' }) }, atlascli_common_1.CommandWithSite.flags);
27
- Add.args = [
28
- {
29
- required: true,
30
- name: 'file',
31
- description: 'Location of file.',
32
- },
33
- ];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),avatar_utils_1=require("@thestarware/atlascli-common/lib/avatar-utils"),mapper_utils_1=require("@thestarware/atlascli-common/lib/util/mapper-utils");class Add extends atlascli_common_1.CommandWithSite{async runWithSite(a){var{flags:t,args:e}=await this.parse(Add),i=this.getJira(a,t),e=t.file||e.file,{fileContent:e,fileName:s}=(0,avatar_utils_1.readFile)(e),i=await i.attachmentManager.addAttachment(t.issue,s,e);this.displayAttachmentMetadata(t,i,a.cloud)}displayAttachmentMetadata(a,t,e){this.displayJsonYamlOrTable(a,t,()=>this.tabularFormat([t],a,(a,t)=>{Object.assign(t,(0,mapper_utils_1.mapToUser)(a.author,e))}))}}(exports.default=Add).description="Adds an attachment to an issue.",Add.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),file:core_1.Flags.string({description:"Location of file."})},atlascli_common_1.CommandWithSite.flags),Add.args=[{required:!0,name:"file",description:"Location of file."}];
@@ -1,16 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const atlascli_common_1 = require("@thestarware/atlascli-common");
5
- const get_metadata_1 = tslib_1.__importDefault(require("./get-metadata"));
6
- class Delete extends atlascli_common_1.CommandWithSite {
7
- async runWithSite(site) {
8
- const { flags, args } = await this.parse(Delete);
9
- const jira = this.getJira(site, flags);
10
- await jira.attachmentManager.deleteAttachment(flags.id || args.id);
11
- }
12
- }
13
- exports.default = Delete;
14
- Delete.description = 'Deletes an attachment from an issue.';
15
- Delete.flags = get_metadata_1.default.flags;
16
- Delete.args = get_metadata_1.default.args;
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),get_metadata_1=tslib_1.__importDefault(require("./get-metadata"));class Delete extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:t,args:a}=await this.parse(Delete);await this.getJira(e,t).attachmentManager.deleteAttachment(t.id||a.id)}}(exports.default=Delete).description="Deletes an attachment from an issue.",Delete.flags=get_metadata_1.default.flags,Delete.args=get_metadata_1.default.args;
@@ -1,18 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const atlascli_common_1 = require("@thestarware/atlascli-common");
4
- const core_1 = require("@oclif/core");
5
- class GetContent extends atlascli_common_1.BaseCommandWithCloudSite {
6
- async runWithCloudSite(site, jira) {
7
- const { flags } = await this.parse(GetContent);
8
- const res = jira.attachmentManager.getAttachmentContent(flags.id, { redirect: flags.redirect });
9
- this.display(flags, res);
10
- }
11
- }
12
- exports.default = GetContent;
13
- GetContent.description = 'Gets the contents of an attachment. A Range header can be set to define a range of bytes within the attachment to download. See the HTTP Range header standard for details.';
14
- GetContent.flags = Object.assign({ id: core_1.Flags.string({ description: 'ID of attachment.', required: true }), redirect: core_1.Flags.boolean({
15
- char: 'r',
16
- description: 'Whether a redirect is provided for the attachment download. Clients that do not automatically follow redirects can set this to false to avoid making multiple requests to download the attachment.',
17
- default: false,
18
- }) }, 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 GetContent extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(t,e){var a=(await this.parse(GetContent)).flags,e=e.attachmentManager.getAttachmentContent(a.id,{redirect:a.redirect});this.display(a,e)}}(exports.default=GetContent).description="Gets the contents of an attachment. A Range header can be set to define a range of bytes within the attachment to download. See the HTTP Range header standard for details.",GetContent.flags=Object.assign({id:core_1.Flags.string({description:"ID of attachment.",required:!0}),redirect:core_1.Flags.boolean({char:"r",description:"Whether a redirect is provided for the attachment download. Clients that do not automatically follow redirects can set this to false to avoid making multiple requests to download the attachment.",default:!1})},atlascli_common_1.CommandWithSite.flags);
@@ -1,14 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const atlascli_common_1 = require("@thestarware/atlascli-common");
4
- class GetJiraAttachmentSettings extends atlascli_common_1.CommandWithSite {
5
- async runWithSite(site) {
6
- const { flags } = await this.parse(GetJiraAttachmentSettings);
7
- const jira = this.getJira(site, flags);
8
- const result = await jira.attachmentManager.getJiraAttachmentSettings();
9
- this.display(flags, result);
10
- }
11
- }
12
- exports.default = GetJiraAttachmentSettings;
13
- GetJiraAttachmentSettings.description = 'Returns general information about the current Jira.';
14
- GetJiraAttachmentSettings.flags = Object.assign({}, atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common");class GetJiraAttachmentSettings extends atlascli_common_1.CommandWithSite{async runWithSite(t){var a=(await this.parse(GetJiraAttachmentSettings)).flags,t=await this.getJira(t,a).attachmentManager.getJiraAttachmentSettings();this.display(a,t)}}(exports.default=GetJiraAttachmentSettings).description="Returns general information about the current Jira.",GetJiraAttachmentSettings.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
@@ -1,36 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const atlascli_common_1 = require("@thestarware/atlascli-common");
5
- const get_metadata_1 = tslib_1.__importDefault(require("./get-metadata"));
6
- class GetMetadataForZip extends atlascli_common_1.CommandWithSite {
7
- async runWithSite(site) {
8
- const { flags, args } = await this.parse(GetMetadataForZip);
9
- const jira = this.getJira(site, flags);
10
- const attachmentMetadata = await jira.attachmentManager.getMetadataForExpandedAttachment(flags.id || args.id);
11
- if (this.isTabularOutput(flags)) {
12
- const result = [];
13
- attachmentMetadata.entries.forEach(entry => {
14
- result.push({
15
- id: attachmentMetadata.id,
16
- name: attachmentMetadata.name,
17
- totalEntryCount: attachmentMetadata.totalEntryCount,
18
- mediaType: attachmentMetadata.mediaType,
19
- entryIndex: entry.index,
20
- entryLabel: entry.label,
21
- entrySize: entry.size,
22
- entryMediaType: entry.mediaType,
23
- entryPath: entry.path,
24
- });
25
- });
26
- this.display(flags, result);
27
- }
28
- else {
29
- this.display(flags, attachmentMetadata);
30
- }
31
- }
32
- }
33
- exports.default = GetMetadataForZip;
34
- GetMetadataForZip.description = 'Returns the metadata for the contents of an attachment, if it is an archive, and metadata for the attachment itself. ';
35
- GetMetadataForZip.flags = get_metadata_1.default.flags;
36
- GetMetadataForZip.args = get_metadata_1.default.args;
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),get_metadata_1=tslib_1.__importDefault(require("./get-metadata"));class GetMetadataForZip extends atlascli_common_1.CommandWithSite{async runWithSite(t){var{flags:e,args:a}=await this.parse(GetMetadataForZip);let i=await this.getJira(t,e).attachmentManager.getMetadataForExpandedAttachment(e.id||a.id);if(this.isTabularOutput(e)){let a=[];i.entries.forEach(t=>{a.push({id:i.id,name:i.name,totalEntryCount:i.totalEntryCount,mediaType:i.mediaType,entryIndex:t.index,entryLabel:t.label,entrySize:t.size,entryMediaType:t.mediaType,entryPath:t.path})}),this.display(e,a)}else this.display(e,i)}}(exports.default=GetMetadataForZip).description="Returns the metadata for the contents of an attachment, if it is an archive, and metadata for the attachment itself. ",GetMetadataForZip.flags=get_metadata_1.default.flags,GetMetadataForZip.args=get_metadata_1.default.args;
@@ -1,30 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const atlascli_common_1 = require("@thestarware/atlascli-common");
4
- const core_1 = require("@oclif/core");
5
- const mapper_utils_1 = require("@thestarware/atlascli-common/lib/util/mapper-utils");
6
- class GetMetadata extends atlascli_common_1.CommandWithSite {
7
- async runWithSite(site) {
8
- const { flags, args } = await this.parse(GetMetadata);
9
- const jira = this.getJira(site, flags);
10
- const attachmentMetadata = await jira.attachmentManager.getAttachmentMetadata(flags.id || args.id);
11
- this.displayAttachmentMetadata(flags, attachmentMetadata, site.cloud);
12
- }
13
- displayAttachmentMetadata(flags, attachmentMetadata, isCloud) {
14
- this.displayJsonYamlOrTable(flags, attachmentMetadata, () => {
15
- return this.tabularFormat([attachmentMetadata], flags, (o, newO) => {
16
- Object.assign(newO, (0, mapper_utils_1.mapToUser)(o.author, isCloud));
17
- });
18
- });
19
- }
20
- }
21
- exports.default = GetMetadata;
22
- GetMetadata.description = 'Returns the metadata for an attachment. Note that the attachment itself is not returned.';
23
- GetMetadata.flags = Object.assign({ id: core_1.Flags.string({ description: 'ID of attachment.' }) }, atlascli_common_1.CommandWithSite.flags);
24
- GetMetadata.args = [
25
- {
26
- required: true,
27
- name: 'id',
28
- description: 'ID of attachment.',
29
- },
30
- ];
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 GetMetadata extends atlascli_common_1.CommandWithSite{async runWithSite(t){var{flags:a,args:e}=await this.parse(GetMetadata),e=await this.getJira(t,a).attachmentManager.getAttachmentMetadata(a.id||e.id);this.displayAttachmentMetadata(a,e,t.cloud)}displayAttachmentMetadata(t,a,e){this.displayJsonYamlOrTable(t,a,()=>this.tabularFormat([a],t,(t,a)=>{Object.assign(a,(0,mapper_utils_1.mapToUser)(t.author,e))}))}}(exports.default=GetMetadata).description="Returns the metadata for an attachment. Note that the attachment itself is not returned.",GetMetadata.flags=Object.assign({id:core_1.Flags.string({description:"ID of attachment."})},atlascli_common_1.CommandWithSite.flags),GetMetadata.args=[{required:!0,name:"id",description:"ID of attachment."}];
@@ -1,17 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const atlascli_common_1 = require("@thestarware/atlascli-common");
5
- const get_content_1 = tslib_1.__importDefault(require("./get-content"));
6
- const core_1 = require("@oclif/core");
7
- class GetThumbnails extends atlascli_common_1.BaseCommandWithCloudSite {
8
- async runWithCloudSite(site, jira) {
9
- const { flags } = await this.parse(GetThumbnails);
10
- const _a = this.removeFlagsFromBase(flags), { id } = _a, query = tslib_1.__rest(_a, ["id"]);
11
- const res = jira.attachmentManager.getAttachmentThumbnail(id, query);
12
- this.display(flags, res);
13
- }
14
- }
15
- exports.default = GetThumbnails;
16
- GetThumbnails.description = 'Gets the thumbnail of an attachment.';
17
- GetThumbnails.flags = Object.assign({ fallbackToDefault: core_1.Flags.boolean({ description: 'Whether a default thumbnail is returned when the requested thumbnail is not found.', default: true }), width: core_1.Flags.integer({ char: 'w', description: 'The maximum width to scale the thumbnail to.' }), height: core_1.Flags.integer({ char: 'h', description: 'The maximum height to scale the thumbnail to.' }) }, get_content_1.default.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),get_content_1=tslib_1.__importDefault(require("./get-content")),core_1=require("@oclif/core");class GetThumbnails extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var a=(await this.parse(GetThumbnails)).flags,i=this.removeFlagsFromBase(a),l=i.id,i=tslib_1.__rest(i,["id"]),t=t.attachmentManager.getAttachmentThumbnail(l,i);this.display(a,t)}}(exports.default=GetThumbnails).description="Gets the thumbnail of an attachment.",GetThumbnails.flags=Object.assign({fallbackToDefault:core_1.Flags.boolean({description:"Whether a default thumbnail is returned when the requested thumbnail is not found.",default:!0}),width:core_1.Flags.integer({char:"w",description:"The maximum width to scale the thumbnail to."}),height:core_1.Flags.integer({char:"h",description:"The maximum height to scale the thumbnail to."})},get_content_1.default.flags);