@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
@@ -1,13 +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 CancelTask extends atlascli_common_1.BaseCommandWithCloudSite {
6
- async runWithCloudSite(site, jira) {
7
- const { flags } = await this.parse(CancelTask);
8
- await jira.taskManager.cancelTask(flags.taskId);
9
- }
10
- }
11
- exports.default = CancelTask;
12
- CancelTask.description = 'Cancels a task.';
13
- CancelTask.flags = Object.assign({ taskId: core_1.Flags.string({ description: 'The ID of the task.', required: true }) }, 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 CancelTask extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(a,e){var s=(await this.parse(CancelTask)).flags;await e.taskManager.cancelTask(s.taskId)}}(exports.default=CancelTask).description="Cancels a task.",CancelTask.flags=Object.assign({taskId:core_1.Flags.string({description:"The ID of the task.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1,29 +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 GetTask extends atlascli_common_1.BaseCommandWithCloudSite {
6
- async runWithCloudSite(site, jira) {
7
- const taskIds = [];
8
- const { flags, argv } = await this.parse(GetTask);
9
- taskIds.push(...(flags.taskId || []));
10
- taskIds.push(...(Array.isArray(argv) ? argv : typeof argv === 'string' ? [argv] : []));
11
- if (taskIds.length === 0)
12
- this.error('No task id is specified.');
13
- const promises = taskIds.sort().map(taskId => jira.taskManager.getTask(taskId));
14
- await Promise.all(promises).then(tasks => {
15
- if (tasks.length > 0)
16
- this.display(flags, tasks);
17
- });
18
- }
19
- }
20
- exports.default = GetTask;
21
- GetTask.strict = false;
22
- GetTask.description = 'Gets the status of a long-running asynchronous task.';
23
- GetTask.flags = Object.assign({ taskId: core_1.Flags.string({ char: 'i', description: 'The ID of the task.', multiple: true }) }, atlascli_common_1.CommandWithSite.flags);
24
- GetTask.args = [
25
- {
26
- name: 'taskId',
27
- description: 'The ID of the task.',
28
- },
29
- ];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetTask extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(t,s){var a=[];let{flags:e,argv:i}=await this.parse(GetTask);a.push(...e.taskId||[]),a.push(...Array.isArray(i)?i:"string"==typeof i?[i]:[]),0===a.length&&this.error("No task id is specified.");a=a.sort().map(t=>s.taskManager.getTask(t));await Promise.all(a).then(t=>{0<t.length&&this.display(e,t)})}}(exports.default=GetTask).strict=!1,GetTask.description="Gets the status of a long-running asynchronous task.",GetTask.flags=Object.assign({taskId:core_1.Flags.string({char:"i",description:"The ID of the task.",multiple:!0})},atlascli_common_1.CommandWithSite.flags),GetTask.args=[{name:"taskId",description:"The ID of the task."}];
@@ -1,13 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const atlascli_common_1 = require("@thestarware/atlascli-common");
4
- class GetAllTimeTrackingProvider extends atlascli_common_1.BaseCommandWithCloudSite {
5
- async runWithCloudSite(site, jira) {
6
- const { flags } = await this.parse(GetAllTimeTrackingProvider);
7
- const res = await jira.timeTrackingManager.getAllTimeTrackingProviders();
8
- this.display(flags, res);
9
- }
10
- }
11
- exports.default = GetAllTimeTrackingProvider;
12
- GetAllTimeTrackingProvider.description = 'Returns all time tracking providers. By default, Jira only has one time tracking provider: JIRA provided time tracking.';
13
- GetAllTimeTrackingProvider.flags = Object.assign({}, atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common");class GetAllTimeTrackingProvider extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var a=(await this.parse(GetAllTimeTrackingProvider)).flags,i=await i.timeTrackingManager.getAllTimeTrackingProviders();this.display(a,i)}}(exports.default=GetAllTimeTrackingProvider).description="Returns all time tracking providers. By default, Jira only has one time tracking provider: JIRA provided time tracking.",GetAllTimeTrackingProvider.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
@@ -1,13 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const atlascli_common_1 = require("@thestarware/atlascli-common");
4
- class GetAllTimeTrackingSetting extends atlascli_common_1.BaseCommandWithCloudSite {
5
- async runWithCloudSite(site, jira) {
6
- const { flags } = await this.parse(GetAllTimeTrackingSetting);
7
- const res = await jira.timeTrackingManager.getAllTimeTrackingSettings();
8
- this.display(flags, res);
9
- }
10
- }
11
- exports.default = GetAllTimeTrackingSetting;
12
- GetAllTimeTrackingSetting.description = 'Returns the time tracking settings. This includes settings such as the time format, default time unit, and others.';
13
- GetAllTimeTrackingSetting.flags = Object.assign({}, atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common");class GetAllTimeTrackingSetting extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(t,e){var i=(await this.parse(GetAllTimeTrackingSetting)).flags,e=await e.timeTrackingManager.getAllTimeTrackingSettings();this.display(i,e)}}(exports.default=GetAllTimeTrackingSetting).description="Returns the time tracking settings. This includes settings such as the time format, default time unit, and others.",GetAllTimeTrackingSetting.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
@@ -1,13 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const atlascli_common_1 = require("@thestarware/atlascli-common");
4
- class GetTimeTrackingProvider extends atlascli_common_1.BaseCommandWithCloudSite {
5
- async runWithCloudSite(site, jira) {
6
- const { flags } = await this.parse(GetTimeTrackingProvider);
7
- const res = await jira.timeTrackingManager.getTimeTrackingProvider();
8
- this.display(flags, res);
9
- }
10
- }
11
- exports.default = GetTimeTrackingProvider;
12
- GetTimeTrackingProvider.description = 'Returns the time tracking provider that is currently selected. Note that if time tracking is disabled, then a successful but empty response is returned.';
13
- GetTimeTrackingProvider.flags = Object.assign({}, atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common");class GetTimeTrackingProvider extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var i=(await this.parse(GetTimeTrackingProvider)).flags,t=await t.timeTrackingManager.getTimeTrackingProvider();this.display(i,t)}}(exports.default=GetTimeTrackingProvider).description="Returns the time tracking provider that is currently selected. Note that if time tracking is disabled, then a successful but empty response is returned.",GetTimeTrackingProvider.flags=Object.assign({},atlascli_common_1.CommandWithSite.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 SelectTimeTrackingProvider extends atlascli_common_1.BaseCommandWithCloudSite {
6
- async runWithCloudSite(site, jira) {
7
- const { flags } = await this.parse(SelectTimeTrackingProvider);
8
- await jira.timeTrackingManager.selectTimeTrackingProvider(this.removeFlagsFromBase(flags));
9
- }
10
- }
11
- exports.default = SelectTimeTrackingProvider;
12
- SelectTimeTrackingProvider.description = 'Selects a time tracking provider.';
13
- SelectTimeTrackingProvider.flags = Object.assign({ key: core_1.Flags.string({
14
- char: 'k',
15
- description: 'The key for the time tracking provider. For example, JIRA.',
16
- required: true,
17
- }), name: core_1.Flags.string({
18
- description: 'The name of the time tracking provider. For example, JIRA provided time tracking.',
19
- }) }, 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 SelectTimeTrackingProvider extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var i=(await this.parse(SelectTimeTrackingProvider)).flags;await r.timeTrackingManager.selectTimeTrackingProvider(this.removeFlagsFromBase(i))}}(exports.default=SelectTimeTrackingProvider).description="Selects a time tracking provider.",SelectTimeTrackingProvider.flags=Object.assign({key:core_1.Flags.string({char:"k",description:"The key for the time tracking provider. For example, JIRA.",required:!0}),name:core_1.Flags.string({description:"The name of the time tracking provider. For example, JIRA provided time tracking."})},atlascli_common_1.CommandWithSite.flags);
@@ -1,31 +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 SetTimeTrackingSetting extends atlascli_common_1.BaseCommandWithCloudSite {
6
- async runWithCloudSite(site, jira) {
7
- const { flags } = await this.parse(SetTimeTrackingSetting);
8
- await jira.timeTrackingManager.setTimeTrackingSettings(this.removeFlagsFromBase(flags));
9
- }
10
- }
11
- exports.default = SetTimeTrackingSetting;
12
- SetTimeTrackingSetting.description = 'Sets the time tracking settings.';
13
- SetTimeTrackingSetting.flags = Object.assign({ workingHoursPerDay: core_1.Flags.integer({
14
- char: 'H',
15
- description: 'The number of hours in a working day. Example usage -h=12',
16
- required: true,
17
- }), workingDaysPerWeek: core_1.Flags.integer({
18
- char: 'd',
19
- description: 'The number of days in a working week. Example usage -d=13',
20
- required: true,
21
- }), timeFormat: core_1.Flags.string({
22
- char: 't',
23
- description: "The format that will appear on an issue's Time Spent field. Example usage: -t=pretty ",
24
- required: true,
25
- options: ['pretty', 'days', 'hours'],
26
- }), defaultUnit: core_1.Flags.string({
27
- char: 'u',
28
- description: 'The default unit of time applied to logged time. Example usage -u=day',
29
- required: true,
30
- options: ['minute', 'hour', 'week', 'day'],
31
- }) }, 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 SetTimeTrackingSetting extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var i=(await this.parse(SetTimeTrackingSetting)).flags;await t.timeTrackingManager.setTimeTrackingSettings(this.removeFlagsFromBase(i))}}(exports.default=SetTimeTrackingSetting).description="Sets the time tracking settings.",SetTimeTrackingSetting.flags=Object.assign({workingHoursPerDay:core_1.Flags.integer({char:"H",description:"The number of hours in a working day. Example usage -h=12",required:!0}),workingDaysPerWeek:core_1.Flags.integer({char:"d",description:"The number of days in a working week. Example usage -d=13",required:!0}),timeFormat:core_1.Flags.string({char:"t",description:"The format that will appear on an issue's Time Spent field. Example usage: -t=pretty ",required:!0,options:["pretty","days","hours"]}),defaultUnit:core_1.Flags.string({char:"u",description:"The default unit of time applied to logged time. Example usage -u=day",required:!0,options:["minute","hour","week","day"]})},atlascli_common_1.CommandWithSite.flags);
@@ -1,21 +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 AddUserToApplication extends atlascli_common_1.BaseCommandWithServerSite {
6
- async runWithServerSite(site, jira) {
7
- const { flags } = await this.parse(AddUserToApplication);
8
- const results = [];
9
- if (!flags.applicationKey) {
10
- this.error('applicationKey is required');
11
- return 1;
12
- }
13
- for (const ak of flags.applicationKey) {
14
- results.push(jira.userManager.addUserToApplication(flags.user, ak));
15
- }
16
- await Promise.all(results);
17
- }
18
- }
19
- exports.default = AddUserToApplication;
20
- AddUserToApplication.description = 'Returns a user.';
21
- AddUserToApplication.flags = Object.assign(Object.assign({ user: core_1.Flags.string({ required: true, description: 'The username.' }) }, (0, atlascli_common_1.getApplicationKeyFlag)()), atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class AddUserToApplication extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(e,a){var i,r=(await this.parse(AddUserToApplication)).flags,s=[];if(!r.applicationKey)return this.error("applicationKey is required"),1;for(i of r.applicationKey)s.push(a.userManager.addUserToApplication(r.user,i));await Promise.all(s)}}(exports.default=AddUserToApplication).description="Returns a user.",AddUserToApplication.flags=Object.assign(Object.assign({user:core_1.Flags.string({required:!0,description:"The username."})},(0,atlascli_common_1.getApplicationKeyFlag)()),atlascli_common_1.CommandWithSite.flags);
@@ -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 ChangePassword extends atlascli_common_1.BaseCommandWithServerSite {
6
- async runWithServerSite(site, jira) {
7
- const { flags } = await this.parse(ChangePassword);
8
- const password = flags.password || (await this.promptUser('password', 'password', 'New password?'));
9
- const password2 = flags.password || (await this.promptUser('password', 'password', 'Re-enter new password?'));
10
- if (password !== password2) {
11
- throw new Error('Two passwords does not match!');
12
- }
13
- await jira.userManager.changeUserPassword(password, flags.username, flags.userKey);
14
- }
15
- }
16
- exports.default = ChangePassword;
17
- ChangePassword.description = 'Modify user password.';
18
- ChangePassword.flags = Object.assign(Object.assign(Object.assign({}, (0, atlascli_common_1.getUserNameAndKeyFlags)()), { password: core_1.Flags.string({ required: false, description: 'New password for the user. Requires administration permission.' }) }), atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class ChangePassword extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(s,e){var a=(await this.parse(ChangePassword)).flags,r=a.password||await this.promptUser("password","password","New password?");if(r!==(a.password||await this.promptUser("password","password","Re-enter new password?")))throw new Error("Two passwords does not match!");await e.userManager.changeUserPassword(r,a.username,a.userKey)}}(exports.default=ChangePassword).description="Modify user password.",ChangePassword.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getUserNameAndKeyFlags)()),{password:core_1.Flags.string({required:!1,description:"New password for the user. Requires administration permission."})}),atlascli_common_1.CommandWithSite.flags);
@@ -1,45 +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 user_command_1 = require("./user-command");
6
- class UserCreate extends user_command_1.UserCommand {
7
- async runWithServerSite(site, jira) {
8
- const { flags } = await this.parse(UserCreate);
9
- if (!flags.username) {
10
- throw new Error('username is required for server!');
11
- }
12
- const userCreationRequest = {
13
- displayName: flags.displayName,
14
- emailAddress: flags.emailAddress,
15
- notification: flags.notification,
16
- password: flags.password,
17
- name: flags.username,
18
- applicationKeys: [], //independent of what we specify here, it is always empty
19
- };
20
- this.removeFlagsFromBase(userCreationRequest);
21
- const user = await jira.userManager.createUser(userCreationRequest, true, true);
22
- this.dislayUser(flags, user);
23
- }
24
- async runWithCloudSite(site, jira) {
25
- const { flags } = await this.parse(UserCreate);
26
- const userCreationRequest = {
27
- displayName: flags.displayName,
28
- emailAddress: flags.emailAddress,
29
- notification: flags.notification,
30
- password: flags.password,
31
- };
32
- const user = await jira.userManager.createUser(userCreationRequest);
33
- this.dislayUser(flags, user);
34
- }
35
- }
36
- exports.default = UserCreate;
37
- UserCreate.description = 'Creates a user.';
38
- UserCreate.commonUserUpdateCreateFlags = {
39
- displayName: core_1.Flags.string({ required: true, description: 'The display name for the user. ' }),
40
- emailAddress: core_1.Flags.string({ required: true, description: 'The email address for the user. ' }),
41
- notification: core_1.Flags.boolean({ allowNo: true, default: false, description: 'Sends the user an email confirmation that they have been added to Jira. Default is false. ' }),
42
- password: core_1.Flags.string({ description: 'A password for the user. If a password is not set, a random password is generated. ' }),
43
- username: core_1.Flags.string({ description: 'The username. Only applicable to server and required.' }),
44
- };
45
- UserCreate.flags = Object.assign(Object.assign({}, UserCreate.commonUserUpdateCreateFlags), atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("./user-command");class UserCreate extends user_command_1.UserCommand{async runWithServerSite(e,r){var s=(await this.parse(UserCreate)).flags;if(!s.username)throw new Error("username is required for server!");var a={displayName:s.displayName,emailAddress:s.emailAddress,notification:s.notification,password:s.password,name:s.username,applicationKeys:[]},r=(this.removeFlagsFromBase(a),await r.userManager.createUser(a,!0,!0));this.dislayUser(s,r)}async runWithCloudSite(e,r){var s=(await this.parse(UserCreate)).flags,a={products:s.products||[],displayName:s.displayName,emailAddress:s.emailAddress,notification:s.notification,password:s.password},r=await r.userManager.createUser(a);this.dislayUser(s,r)}}(exports.default=UserCreate).description="Creates a user.",UserCreate.commonUserUpdateCreateFlags={products:core_1.Flags.string({multiple:!0,description:"Products the new user has access to. Valid products are: jira-core, jira-servicedesk, jira-product-discovery, jira-software. If left empty, the user will get default product access. To create a user without product access, set this field to be an empty array.",options:["jira-core","jira-servicedesk","jira-product-discovery","jira-software"]}),displayName:core_1.Flags.string({required:!0,description:"The display name for the user. "}),emailAddress:core_1.Flags.string({required:!0,description:"The email address for the user. "}),notification:core_1.Flags.boolean({allowNo:!0,default:!1,description:"Sends the user an email confirmation that they have been added to Jira. Default is false. "}),password:core_1.Flags.string({description:"A password for the user. If a password is not set, a random password is generated. "}),username:core_1.Flags.string({description:"The username. Only applicable to server and required."})},UserCreate.flags=Object.assign(Object.assign({},UserCreate.commonUserUpdateCreateFlags),atlascli_common_1.CommandWithSite.flags);
@@ -1,24 +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 user_command_1 = require("./user-command");
6
- const core_1 = require("@oclif/core");
7
- const user_util_1 = require("@thestarware/atlascli-common/lib/user-util");
8
- class UserDelete extends user_command_1.UserCommand {
9
- async runWithServerSite(site, jira) {
10
- const { flags } = await this.parse(UserDelete);
11
- const parsedFlags = tslib_1.__rest(this.removeFlagsFromBase(flags), []);
12
- const normalizedUserQuery = await (0, user_util_1.getUser)(jira, parsedFlags.user);
13
- parsedFlags.user = normalizedUserQuery.username;
14
- await jira.userManager.deleteUser(parsedFlags.user, parsedFlags.userKey);
15
- }
16
- async runWithCloudSite(site, jira) {
17
- const { flags } = await this.parse(UserDelete);
18
- const normalizedUserQuery = await (0, user_util_1.getUser)(jira, flags.user);
19
- await jira.userManager.deleteUser(normalizedUserQuery.accountId);
20
- }
21
- }
22
- exports.default = UserDelete;
23
- UserDelete.description = 'Deletes a user.';
24
- UserDelete.flags = Object.assign({ user: core_1.Flags.string({ description: 'Username for Server/DC and accountId or username or email for Cloud', required: true }), userKey: core_1.Flags.string({ exclusive: ['user'], description: 'The user key. Only applicable to server.' }) }, atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("./user-command"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class UserDelete extends user_command_1.UserCommand{async runWithServerSite(e,r){var s=(await this.parse(UserDelete)).flags,s=tslib_1.__rest(this.removeFlagsFromBase(s),[]),a=await(0,user_util_1.getUser)(r,s.user);s.user=a.username,await r.userManager.deleteUser(s.user,s.userKey)}async runWithCloudSite(e,r){var s=(await this.parse(UserDelete)).flags,s=await(0,user_util_1.getUser)(r,s.user);await r.userManager.deleteUser(s.accountId)}}(exports.default=UserDelete).description="Deletes a user.",UserDelete.flags=Object.assign({user:core_1.Flags.string({description:"Username for Server/DC and accountId or username or email for Cloud",required:!0}),userKey:core_1.Flags.string({exclusive:["user"],description:"The user key. Only applicable to server."})},atlascli_common_1.CommandWithSite.flags);
@@ -1,32 +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
- const user_command_1 = require("./user-command");
7
- const user_util_1 = require("@thestarware/atlascli-common/lib/user-util");
8
- class GetAll extends user_command_1.UserCommand {
9
- async runWithServerSite() {
10
- throw new Error('This command is only applicable to Cloud!');
11
- }
12
- async runWithCloudSite(site, jira) {
13
- const { flags } = await this.parse(GetAll);
14
- const _a = this.removeFlagsFromBase(flags), { all } = _a, query = tslib_1.__rest(_a, ["all"]);
15
- const normalizedUserQuery = await (0, user_util_1.getUser)(jira, query.user);
16
- query.accountId = normalizedUserQuery.accountId;
17
- delete query.user;
18
- if (query.accountId) {
19
- const users = await jira.userManager.getUsersByAccountId(query);
20
- if (all)
21
- users.values = await (0, atlascli_common_1.getAllPaginatedResponseValues)(users, query, jira.userManager.getUsersByAccountId.bind(jira.userManager));
22
- this.dislayUsers(flags, users.values);
23
- }
24
- else {
25
- const users = await jira.userManager.getUsersDefault(flags.startAt, flags.maxResults);
26
- this.dislayUsers(flags, users);
27
- }
28
- }
29
- }
30
- exports.default = GetAll;
31
- GetAll.description = 'Returns a paginated list of the users. If you specify one or more accountId only those users will be returned.';
32
- GetAll.flags = Object.assign(Object.assign(Object.assign({}, (0, atlascli_common_1.getStartAtAndMaxFlags)()), { user: core_1.Flags.string({ required: false, multiple: true, description: 'The account ID or email or username of the user, which uniquely identifies the user across all Atlassian products. Only applicable to cloud.' }), all: core_1.Flags.boolean({ description: 'Whether all responses are returned.', default: false, exclusive: ['startAt', 'maxResults'] }) }), atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("./user-command"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class GetAll extends user_command_1.UserCommand{async runWithServerSite(){throw new Error("This command is only applicable to Cloud!")}async runWithCloudSite(e,s){var a=(await this.parse(GetAll)).flags,t=this.removeFlagsFromBase(a),r=t.all,t=tslib_1.__rest(t,["all"]),l=await(0,user_util_1.getUser)(s,t.user);t.accountId=l.accountId,delete t.user,t.accountId?(l=await s.userManager.getUsersByAccountId(t),r&&(l.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(l,t,s.userManager.getUsersByAccountId.bind(s.userManager))),this.dislayUsers(a,l.values)):(r=await s.userManager.getUsersDefault(a.startAt,a.maxResults),this.dislayUsers(a,r))}}(exports.default=GetAll).description="Returns a paginated list of the users. If you specify one or more accountId only those users will be returned.",GetAll.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{user:core_1.Flags.string({required:!1,multiple:!0,description:"The account ID or email or username of the user, which uniquely identifies the user across all Atlassian products. Only applicable to cloud."}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})}),atlascli_common_1.CommandWithSite.flags);
@@ -1,39 +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 user_command_1 = require("./user-command");
6
- const core_1 = require("@oclif/core");
7
- const user_util_1 = require("@thestarware/atlascli-common/lib/user-util");
8
- class GetDefaultIssueTableColumns extends user_command_1.UserCommand {
9
- async runWithServerSite(site, jira) {
10
- const { flags, args } = await this.parse(GetDefaultIssueTableColumns);
11
- const parsedFlags = tslib_1.__rest(this.removeFlagsFromBase(flags), []);
12
- const normalizedUserQuery = await (0, user_util_1.getUser)(jira, parsedFlags.user);
13
- const normalizedArgsUserQuery = await (0, user_util_1.getUser)(jira, args.user);
14
- parsedFlags.user = normalizedUserQuery.username;
15
- args.user = normalizedArgsUserQuery.username;
16
- const columns = await jira.userManager.getDefaultIssueTableColumns(parsedFlags.username || args.user);
17
- this.display(flags, columns);
18
- }
19
- async runWithCloudSite(site, jira) {
20
- const { flags, args } = await this.parse(GetDefaultIssueTableColumns);
21
- const parsedFlags = tslib_1.__rest(this.removeFlagsFromBase(flags), []);
22
- const normalizedUserQuery = await (0, user_util_1.getUser)(jira, parsedFlags.user);
23
- const normalizedArgsUserQuery = await (0, user_util_1.getUser)(jira, args.user);
24
- parsedFlags.user = normalizedUserQuery.accountId;
25
- args.user = normalizedArgsUserQuery.accountId;
26
- const columns = await jira.userManager.getDefaultIssueTableColumns(parsedFlags.user || args.user);
27
- this.display(flags, columns);
28
- }
29
- }
30
- exports.default = GetDefaultIssueTableColumns;
31
- GetDefaultIssueTableColumns.description = 'Returns the default issue table columns for the given user. Admin permission will be required to get columns for a user other than the currently logged in user.';
32
- GetDefaultIssueTableColumns.flags = Object.assign({ user: core_1.Flags.string({ multiple: true, description: 'Username for Server/DC and accountId or username or email for Cloud', required: false }) }, atlascli_common_1.CommandWithSite.flags);
33
- GetDefaultIssueTableColumns.args = [
34
- {
35
- name: 'user',
36
- required: false,
37
- description: 'Username or accountId or email.',
38
- },
39
- ];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("./user-command"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class GetDefaultIssueTableColumns extends user_command_1.UserCommand{async runWithServerSite(e,s){var{flags:r,args:a}=await this.parse(GetDefaultIssueTableColumns),t=tslib_1.__rest(this.removeFlagsFromBase(r),[]),u=await(0,user_util_1.getUser)(s,t.user),l=await(0,user_util_1.getUser)(s,a.user),u=(t.user=u.username,a.user=l.username,await s.userManager.getDefaultIssueTableColumns(t.username||a.user));this.display(r,u)}async runWithCloudSite(e,s){var{flags:r,args:a}=await this.parse(GetDefaultIssueTableColumns),t=tslib_1.__rest(this.removeFlagsFromBase(r),[]),u=await(0,user_util_1.getUser)(s,t.user),l=await(0,user_util_1.getUser)(s,a.user),u=(t.user=u.accountId,a.user=l.accountId,await s.userManager.getDefaultIssueTableColumns(t.user||a.user));this.display(r,u)}}(exports.default=GetDefaultIssueTableColumns).description="Returns the default issue table columns for the given user. Admin permission will be required to get columns for a user other than the currently logged in user.",GetDefaultIssueTableColumns.flags=Object.assign({user:core_1.Flags.string({multiple:!0,description:"Username for Server/DC and accountId or username or email for Cloud",required:!1})},atlascli_common_1.CommandWithSite.flags),GetDefaultIssueTableColumns.args=[{name:"user",required:!1,description:"Username or accountId or email."}];
@@ -1,25 +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 core_1 = require("@oclif/core");
6
- const user_util_1 = require("@thestarware/atlascli-common/lib/user-util");
7
- class GetEmail extends atlascli_common_1.BaseCommandWithCloudSite {
8
- async runWithCloudSite(site, jira) {
9
- const { flags, args } = await this.parse(GetEmail);
10
- const parsedFlags = tslib_1.__rest(this.removeFlagsFromBase(flags), []);
11
- const normalizedUserQuery = await (0, user_util_1.getUser)(jira, parsedFlags.user || args.user);
12
- const user = normalizedUserQuery.accountId;
13
- const email = await jira.userManager.getUserEmail(user);
14
- this.display(flags, [email]);
15
- }
16
- }
17
- exports.default = GetEmail;
18
- GetEmail.description = "Returns a user's email address.";
19
- GetEmail.flags = Object.assign({ user: core_1.Flags.string({ multiple: true, description: 'AccountId or username or email for Cloud.' }) }, atlascli_common_1.CommandWithSite.flags);
20
- GetEmail.args = [
21
- {
22
- name: 'user',
23
- description: atlascli_common_1.accountIdFlagDescription,
24
- },
25
- ];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class GetEmail extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var{flags:s,args:t}=await this.parse(GetEmail),i=tslib_1.__rest(this.removeFlagsFromBase(s),[]),i=(await(0,user_util_1.getUser)(a,i.user||t.user)).accountId,t=await a.userManager.getUserEmail(i);this.display(s,[t])}}(exports.default=GetEmail).description="Returns a user's email address.",GetEmail.flags=Object.assign({user:core_1.Flags.string({multiple:!0,description:"AccountId or username or email for Cloud."})},atlascli_common_1.CommandWithSite.flags),GetEmail.args=[{name:"user",description:atlascli_common_1.accountIdFlagDescription}];
@@ -1,26 +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 atlascli_common_2 = require("@thestarware/atlascli-common");
6
- const user_util_1 = require("@thestarware/atlascli-common/lib/user-util");
7
- const core_1 = require("@oclif/core");
8
- class GetUserGroups extends atlascli_common_2.BaseCommandWithCloudSite {
9
- async runWithCloudSite(site, jira) {
10
- const { flags, args } = await this.parse(GetUserGroups);
11
- const parsedFlags = tslib_1.__rest(this.removeFlagsFromBase(flags), []);
12
- const normalizedUserQuery = await (0, user_util_1.getUser)(jira, parsedFlags.user || args.user);
13
- const user = normalizedUserQuery.accountId;
14
- const groups = await jira.userManager.getUserGroups(user);
15
- this.display(flags, groups);
16
- }
17
- }
18
- exports.default = GetUserGroups;
19
- GetUserGroups.description = 'Returns the groups to which a user belongs.';
20
- GetUserGroups.flags = Object.assign({ user: core_1.Flags.string({ multiple: true, description: 'AccountId or username or email for Cloud.' }) }, atlascli_common_1.CommandWithSite.flags);
21
- GetUserGroups.args = [
22
- {
23
- name: 'user',
24
- description: atlascli_common_1.accountIdFlagDescription,
25
- },
26
- ];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),core_1=require("@oclif/core");class GetUserGroups extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var{flags:r,args:t}=await this.parse(GetUserGroups),a=tslib_1.__rest(this.removeFlagsFromBase(r),[]),a=(await(0,user_util_1.getUser)(s,a.user||t.user)).accountId,t=await s.userManager.getUserGroups(a);this.display(r,t)}}(exports.default=GetUserGroups).description="Returns the groups to which a user belongs.",GetUserGroups.flags=Object.assign({user:core_1.Flags.string({multiple:!0,description:"AccountId or username or email for Cloud."})},atlascli_common_1.CommandWithSite.flags),GetUserGroups.args=[{name:"user",description:atlascli_common_1.accountIdFlagDescription}];
@@ -1,40 +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 user_command_1 = require("./user-command");
6
- const user_util_1 = require("@thestarware/atlascli-common/lib/user-util");
7
- const core_1 = require("@oclif/core");
8
- class UserGet extends user_command_1.UserCommand {
9
- async runWithServerSite(site, jira) {
10
- const { flags } = await this.parse(UserGet);
11
- const user = await jira.userManager.getUser(flags.username, flags.userKey, true, true);
12
- this.dislayUser(flags, user);
13
- return {};
14
- }
15
- async runWithCloudSite(site, jira) {
16
- const accountIds = [];
17
- const { flags, argv } = await this.parse(UserGet);
18
- const parsedFlags = tslib_1.__rest(this.removeFlagsFromBase(flags), []);
19
- const normalizedUserQuery = await (0, user_util_1.getUser)(jira, parsedFlags.user);
20
- accountIds.push(...(normalizedUserQuery.accountId || []));
21
- accountIds.push(...(Array.isArray(argv) ? argv : typeof argv === 'string' ? [argv] : []));
22
- if (accountIds.length === 0)
23
- this.error('No account id is specified.');
24
- const promises = accountIds.map(accountId => jira.userManager.getUser(accountId, true, true));
25
- await Promise.all(promises).then(users => {
26
- if (users.length > 0)
27
- this.dislayUsers(flags, users);
28
- });
29
- }
30
- }
31
- exports.default = UserGet;
32
- UserGet.strict = false;
33
- UserGet.description = 'Returns a user.';
34
- UserGet.flags = Object.assign(Object.assign(Object.assign({}, (0, atlascli_common_1.getUserFlags)()), { user: core_1.Flags.string({ multiple: true, char: 'u', description: 'The account ID or email or username of the user, which uniquely identifies the user across all Atlassian products. Only applicable to cloud.' }) }), atlascli_common_1.CommandWithSite.flags);
35
- UserGet.args = [
36
- {
37
- name: 'user',
38
- description: 'The account ID or username or email of the user, which uniquely identifies the user across all Atlassian products. Only applicable to cloud.',
39
- },
40
- ];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("./user-command"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),core_1=require("@oclif/core");class UserGet extends user_command_1.UserCommand{async runWithServerSite(e,s){var r=(await this.parse(UserGet)).flags,s=await s.userManager.getUser(r.username,r.userKey,!0,!0);return this.dislayUser(r,s),{}}async runWithCloudSite(e,s){var r=[];let{flags:a,argv:t}=await this.parse(UserGet);var i=tslib_1.__rest(this.removeFlagsFromBase(a),[]),i=await(0,user_util_1.getUser)(s,i.user),i=(r.push(...i.accountId||[]),r.push(...Array.isArray(t)?t:"string"==typeof t?[t]:[]),0===r.length&&this.error("No account id is specified."),r.map(e=>s.userManager.getUser(e,!0,!0)));await Promise.all(i).then(e=>{0<e.length&&this.dislayUsers(a,e)})}}(exports.default=UserGet).strict=!1,UserGet.description="Returns a user.",UserGet.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getUserFlags)()),{user:core_1.Flags.string({multiple:!0,char:"u",description:"The account ID or email or username of the user, which uniquely identifies the user across all Atlassian products. Only applicable to cloud."})}),atlascli_common_1.CommandWithSite.flags),UserGet.args=[{name:"user",description:"The account ID or username or email of the user, which uniquely identifies the user across all Atlassian products. Only applicable to cloud."}];
@@ -1,21 +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 RemoveUserFromApplication extends atlascli_common_1.BaseCommandWithServerSite {
6
- async runWithServerSite(site, jira) {
7
- const { flags } = await this.parse(RemoveUserFromApplication);
8
- if (!flags.applicationKey) {
9
- this.error('applicationKey is required');
10
- return 1;
11
- }
12
- const results = [];
13
- for (const ak of flags.applicationKey) {
14
- results.push(jira.userManager.removeUserFromApplication(flags.username, ak));
15
- }
16
- await Promise.all(results);
17
- }
18
- }
19
- exports.default = RemoveUserFromApplication;
20
- RemoveUserFromApplication.description = 'Returns a user.';
21
- RemoveUserFromApplication.flags = Object.assign(Object.assign({ username: core_1.Flags.string({ required: true, description: 'The username.' }) }, (0, atlascli_common_1.getApplicationKeyFlag)()), atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class RemoveUserFromApplication extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(e,r){var a=(await this.parse(RemoveUserFromApplication)).flags;if(!a.applicationKey)return this.error("applicationKey is required"),1;var i,o=[];for(i of a.applicationKey)o.push(r.userManager.removeUserFromApplication(a.username,i));await Promise.all(o)}}(exports.default=RemoveUserFromApplication).description="Returns a user.",RemoveUserFromApplication.flags=Object.assign(Object.assign({username:core_1.Flags.string({required:!0,description:"The username."})},(0,atlascli_common_1.getApplicationKeyFlag)()),atlascli_common_1.CommandWithSite.flags);
@@ -1,33 +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 user_command_1 = require("./user-command");
6
- const core_1 = require("@oclif/core");
7
- const user_util_1 = require("@thestarware/atlascli-common/lib/user-util");
8
- class ResetDefaultIssueTableColumns extends user_command_1.UserCommand {
9
- async runWithServerSite(site, jira) {
10
- const { flags, args } = await this.parse(ResetDefaultIssueTableColumns);
11
- const parsedFlags = tslib_1.__rest(this.removeFlagsFromBase(flags), []);
12
- const normalizedUserQuery = await (0, user_util_1.getUser)(jira, parsedFlags.user || args.user);
13
- const user = normalizedUserQuery.username;
14
- jira.userManager.resetDefaultIssueTableColumns(user);
15
- }
16
- async runWithCloudSite(site, jira) {
17
- const { flags, args } = await this.parse(ResetDefaultIssueTableColumns);
18
- const parsedFlags = tslib_1.__rest(this.removeFlagsFromBase(flags), []);
19
- const normalizedUserQuery = await (0, user_util_1.getUser)(jira, parsedFlags.user || args.user);
20
- const user = normalizedUserQuery.accountId;
21
- jira.userManager.resetDefaultIssueTableColumns(user);
22
- }
23
- }
24
- exports.default = ResetDefaultIssueTableColumns;
25
- ResetDefaultIssueTableColumns.description = 'Reset the default columns for the given user to the system default. Admin permission will be required to get columns for a user other than the currently logged in user.';
26
- ResetDefaultIssueTableColumns.flags = Object.assign({ user: core_1.Flags.string({ multiple: true, description: 'Username for Server/DC and accountId or username or email for Cloud', required: false }) }, atlascli_common_1.CommandWithSite.flags);
27
- ResetDefaultIssueTableColumns.args = [
28
- {
29
- name: 'user',
30
- required: false,
31
- description: 'Username or accountId',
32
- },
33
- ];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("./user-command"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class ResetDefaultIssueTableColumns extends user_command_1.UserCommand{async runWithServerSite(e,s){var{flags:r,args:a}=await this.parse(ResetDefaultIssueTableColumns),r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),r=(await(0,user_util_1.getUser)(s,r.user||a.user)).username;s.userManager.resetDefaultIssueTableColumns(r)}async runWithCloudSite(e,s){var{flags:r,args:a}=await this.parse(ResetDefaultIssueTableColumns),r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),r=(await(0,user_util_1.getUser)(s,r.user||a.user)).accountId;s.userManager.resetDefaultIssueTableColumns(r)}}(exports.default=ResetDefaultIssueTableColumns).description="Reset the default columns for the given user to the system default. Admin permission will be required to get columns for a user other than the currently logged in user.",ResetDefaultIssueTableColumns.flags=Object.assign({user:core_1.Flags.string({multiple:!0,description:"Username for Server/DC and accountId or username or email for Cloud",required:!1})},atlascli_common_1.CommandWithSite.flags),ResetDefaultIssueTableColumns.args=[{name:"user",required:!1,description:"Username or accountId"}];
@@ -1,26 +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 core_1 = require("@oclif/core");
6
- const user_command_1 = require("./user-command");
7
- const user_util_1 = require("@thestarware/atlascli-common/lib/user-util");
8
- class SetDefaultIssueTableColumns extends user_command_1.UserCommand {
9
- async runWithServerSite(site, jira) {
10
- const { flags } = await this.parse(SetDefaultIssueTableColumns);
11
- const parsedFlags = tslib_1.__rest(this.removeFlagsFromBase(flags), []);
12
- const normalizedUserQuery = await (0, user_util_1.getUser)(jira, parsedFlags.user);
13
- parsedFlags.user = normalizedUserQuery.username;
14
- await jira.userManager.setDefaultIssueTableColumns(parsedFlags.columnKey, parsedFlags.user);
15
- }
16
- async runWithCloudSite(site, jira) {
17
- const { flags } = await this.parse(SetDefaultIssueTableColumns);
18
- const parsedFlags = tslib_1.__rest(this.removeFlagsFromBase(flags), []);
19
- const normalizedUserQuery = await (0, user_util_1.getUser)(jira, parsedFlags.user);
20
- parsedFlags.user = normalizedUserQuery.accountId;
21
- await jira.userManager.setDefaultIssueTableColumns(parsedFlags.columnKey, parsedFlags.user);
22
- }
23
- }
24
- exports.default = SetDefaultIssueTableColumns;
25
- SetDefaultIssueTableColumns.description = 'Sets the default issue table columns. Admin permission will be required to set columns for a user other than the currently logged in user.';
26
- SetDefaultIssueTableColumns.flags = Object.assign({ user: core_1.Flags.string({ multiple: true, description: 'Username for Server/DC and accountId or username or email for Cloud', required: false }), columnKey: core_1.Flags.string({ multiple: true, char: 'c', description: 'The key of column. You can repeat this flag for setting multiple columns.', required: true }) }, atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("./user-command"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class SetDefaultIssueTableColumns extends user_command_1.UserCommand{async runWithServerSite(e,s){var r=(await this.parse(SetDefaultIssueTableColumns)).flags,r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),a=await(0,user_util_1.getUser)(s,r.user);r.user=a.username,await s.userManager.setDefaultIssueTableColumns(r.columnKey,r.user)}async runWithCloudSite(e,s){var r=(await this.parse(SetDefaultIssueTableColumns)).flags,r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),a=await(0,user_util_1.getUser)(s,r.user);r.user=a.accountId,await s.userManager.setDefaultIssueTableColumns(r.columnKey,r.user)}}(exports.default=SetDefaultIssueTableColumns).description="Sets the default issue table columns. Admin permission will be required to set columns for a user other than the currently logged in user.",SetDefaultIssueTableColumns.flags=Object.assign({user:core_1.Flags.string({multiple:!0,description:"Username for Server/DC and accountId or username or email for Cloud",required:!1}),columnKey:core_1.Flags.string({multiple:!0,char:"c",description:"The key of column. You can repeat this flag for setting multiple columns.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1,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 user_command_1 = require("./user-command");
6
- class Create extends user_command_1.UserCommand {
7
- async runWithServerSite(site, jira) {
8
- const { flags } = await this.parse(Create);
9
- if (!flags.username) {
10
- throw new Error('username is required for server!');
11
- }
12
- const userUpdateRequest = {
13
- displayName: flags.displayName,
14
- emailAddress: flags.emailAddress,
15
- notification: flags.notification,
16
- password: flags.password,
17
- active: flags.active,
18
- name: flags.username,
19
- };
20
- this.removeFlagsFromBase(userUpdateRequest);
21
- const user = await jira.userManager.updateUser(userUpdateRequest, undefined, flags.userKey);
22
- this.dislayUser(flags, user);
23
- }
24
- async runWithCloudSite() {
25
- throw new Error('This command is only applicable to server!');
26
- }
27
- }
28
- exports.default = Create;
29
- Create.description = 'Updates a user.';
30
- Create.flags = Object.assign(Object.assign({ displayName: core_1.Flags.string({ required: true, description: 'The display name for the user. ' }), emailAddress: core_1.Flags.string({ required: true, description: 'The email address for the user. ' }), notification: core_1.Flags.boolean({ allowNo: true, default: false, description: 'Sends the user an email confirmation that they have been added to Jira. Default is false. ' }), password: core_1.Flags.string({ description: 'A password for the user. If a password is not set, a random password is generated. ' }), username: core_1.Flags.string({ description: 'The username. Only applicable to server and required.' }), userKey: core_1.Flags.string({ description: 'The userKey. Only applicable to server and required.' }), active: core_1.Flags.boolean({ allowNo: true, default: true, description: 'Whether the user is active or inactive. Default true. Only applicable to server.' }) }, (0, atlascli_common_1.getApplicationKeyFlag)()), atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("./user-command");class Create extends user_command_1.UserCommand{async runWithServerSite(e,a){var r=(await this.parse(Create)).flags;if(!r.username)throw new Error("username is required for server!");var s={displayName:r.displayName,emailAddress:r.emailAddress,notification:r.notification,password:r.password,active:r.active,name:r.username},a=(this.removeFlagsFromBase(s),await a.userManager.updateUser(s,r.username,r.userKey));this.dislayUser(r,a)}async runWithCloudSite(){throw new Error("This command is only applicable to server!")}}(exports.default=Create).description="Updates a user.",Create.flags=Object.assign(Object.assign({displayName:core_1.Flags.string({description:"The display name for the user. "}),emailAddress:core_1.Flags.string({description:"The email address for the user. "}),notification:core_1.Flags.boolean({allowNo:!0,default:!1,description:"Sends the user an email confirmation that they have been added to Jira. Default is false. "}),password:core_1.Flags.string({description:"A password for the user. If a password is not set, a random password is generated. "}),username:core_1.Flags.string({description:"The username. Only applicable to server and required."}),userKey:core_1.Flags.string({description:"The userKey. Only applicable to server and required."}),active:core_1.Flags.boolean({allowNo:!0,default:!0,description:"Whether the user is active or inactive. Default true. Only applicable to server."})},(0,atlascli_common_1.getApplicationKeyFlag)()),atlascli_common_1.CommandWithSite.flags);