@thestarware/atlascli-jira 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (481) hide show
  1. package/lib/commands/announcement-banner/get.js +1 -1
  2. package/lib/commands/announcement-banner/update.js +1 -1
  3. package/lib/commands/application-role/get-all.js +2 -2
  4. package/lib/commands/application-role/get.js +1 -1
  5. package/lib/commands/application-role/update.js +1 -1
  6. package/lib/commands/attachment/add.js +1 -1
  7. package/lib/commands/attachment/delete.js +1 -1
  8. package/lib/commands/attachment/get-content.js +1 -1
  9. package/lib/commands/attachment/get-jira-settings.js +1 -1
  10. package/lib/commands/attachment/get-metadata-for-zip.js +1 -1
  11. package/lib/commands/attachment/get-metadata.js +1 -1
  12. package/lib/commands/attachment/get-thumbnails.js +1 -1
  13. package/lib/commands/audit-record/get-associated.js +1 -1
  14. package/lib/commands/audit-record/get-changed.js +1 -1
  15. package/lib/commands/avatar/delete-universal-avatar.js +1 -1
  16. package/lib/commands/avatar/delete-user-avatar.js +1 -1
  17. package/lib/commands/avatar/get-all-user-avatar.js +1 -1
  18. package/lib/commands/avatar/get-image-by-id.js +1 -1
  19. package/lib/commands/avatar/get-image-by-owner.js +1 -1
  20. package/lib/commands/avatar/get-image-by-type.js +1 -1
  21. package/lib/commands/avatar/get-system-avatars.js +1 -1
  22. package/lib/commands/avatar/get-universal-avatars.js +1 -1
  23. package/lib/commands/avatar/set-user-avatar.js +1 -1
  24. package/lib/commands/avatar/upload-universal-avatar.js +1 -1
  25. package/lib/commands/avatar/upload-user-avatar.js +1 -1
  26. package/lib/commands/comment/add.js +1 -1
  27. package/lib/commands/comment/delete.js +1 -1
  28. package/lib/commands/comment/get-for-issue.js +1 -1
  29. package/lib/commands/comment/get-with-ids.js +1 -1
  30. package/lib/commands/comment/get.js +1 -1
  31. package/lib/commands/comment/update.js +1 -1
  32. package/lib/commands/comment-property/delete-property.js +1 -1
  33. package/lib/commands/comment-property/get-property-keys.js +1 -1
  34. package/lib/commands/comment-property/get-property.js +1 -1
  35. package/lib/commands/comment-property/set-property.js +1 -1
  36. package/lib/commands/config/add.js +1 -1
  37. package/lib/commands/config/delete.js +1 -1
  38. package/lib/commands/config/get-default.js +1 -1
  39. package/lib/commands/config/list.js +1 -1
  40. package/lib/commands/config/set-default.js +1 -1
  41. package/lib/commands/dashboard/add-edit-permission.js +1 -1
  42. package/lib/commands/dashboard/add-share-permission.js +1 -1
  43. package/lib/commands/dashboard/copy.js +1 -1
  44. package/lib/commands/dashboard/create.js +1 -1
  45. package/lib/commands/dashboard/delete.js +1 -1
  46. package/lib/commands/dashboard/get-all.js +1 -1
  47. package/lib/commands/dashboard/get-permissions.js +1 -1
  48. package/lib/commands/dashboard/get.js +1 -1
  49. package/lib/commands/dashboard/search.js +1 -1
  50. package/lib/commands/dashboard/update.js +1 -1
  51. package/lib/commands/dashboard-gadget/add.js +1 -1
  52. package/lib/commands/dashboard-gadget/get-availables.js +1 -1
  53. package/lib/commands/dashboard-gadget/remove.js +1 -1
  54. package/lib/commands/dashboard-gadget/search.js +1 -1
  55. package/lib/commands/dashboard-gadget/update.js +1 -1
  56. package/lib/commands/dashboard-item-property/delete.js +1 -1
  57. package/lib/commands/dashboard-item-property/get-keys.js +1 -1
  58. package/lib/commands/dashboard-item-property/get.js +1 -1
  59. package/lib/commands/dashboard-item-property/set.js +1 -1
  60. package/lib/commands/filter/add-favourite.js +1 -1
  61. package/lib/commands/filter/change-owner.js +1 -1
  62. package/lib/commands/filter/create.js +1 -1
  63. package/lib/commands/filter/delete.js +1 -1
  64. package/lib/commands/filter/get-columns.js +1 -1
  65. package/lib/commands/filter/get-details.js +1 -1
  66. package/lib/commands/filter/get-favourites.js +1 -1
  67. package/lib/commands/filter/get-my.js +1 -1
  68. package/lib/commands/filter/get.js +1 -1
  69. package/lib/commands/filter/remove-favourite.js +1 -1
  70. package/lib/commands/filter/reset-columns.js +1 -1
  71. package/lib/commands/filter/search.js +1 -1
  72. package/lib/commands/filter/set-columns.js +1 -1
  73. package/lib/commands/filter/update.js +1 -1
  74. package/lib/commands/filter-sharing/add-edit-permission.js +1 -1
  75. package/lib/commands/filter-sharing/add-share-permission.js +1 -1
  76. package/lib/commands/filter-sharing/delete-permission.js +1 -1
  77. package/lib/commands/filter-sharing/get-default-scope.js +1 -1
  78. package/lib/commands/filter-sharing/get-edit-permissions.js +1 -1
  79. package/lib/commands/filter-sharing/get-permission.js +1 -1
  80. package/lib/commands/filter-sharing/get-share-permissions.js +1 -1
  81. package/lib/commands/filter-sharing/set-default-scope.js +1 -1
  82. package/lib/commands/group/add-user.js +1 -1
  83. package/lib/commands/group/create.js +1 -1
  84. package/lib/commands/group/find-groups.js +1 -1
  85. package/lib/commands/group/get-all.js +1 -1
  86. package/lib/commands/group/get-users.js +1 -1
  87. package/lib/commands/group/get.js +1 -1
  88. package/lib/commands/group/remove-user.js +1 -1
  89. package/lib/commands/group/remove.js +1 -1
  90. package/lib/commands/group-and-user-picker/find-groups.js +1 -1
  91. package/lib/commands/group-and-user-picker/find-users.js +1 -1
  92. package/lib/commands/issue/archive.js +1 -1
  93. package/lib/commands/issue/assign.js +1 -1
  94. package/lib/commands/issue/create.js +1 -1
  95. package/lib/commands/issue/delete.js +1 -1
  96. package/lib/commands/issue/edit.js +1 -1
  97. package/lib/commands/issue/get-changelogs.js +1 -1
  98. package/lib/commands/issue/get-create-metadata.js +1 -1
  99. package/lib/commands/issue/get-edit-metadata.js +1 -1
  100. package/lib/commands/issue/get-events.js +1 -1
  101. package/lib/commands/issue/get-transitions.js +1 -1
  102. package/lib/commands/issue/get.js +1 -1
  103. package/lib/commands/issue/restore.js +1 -1
  104. package/lib/commands/issue/send-notifications.js +1 -1
  105. package/lib/commands/issue/transition.js +1 -1
  106. package/lib/commands/issue-field/create.js +1 -1
  107. package/lib/commands/issue-field/delete.js +1 -1
  108. package/lib/commands/issue-field/get-all.js +1 -1
  109. package/lib/commands/issue-field/move-trash.js +1 -1
  110. package/lib/commands/issue-field/restore-trash.js +1 -1
  111. package/lib/commands/issue-field/search-trash.js +1 -1
  112. package/lib/commands/issue-field/search.js +1 -1
  113. package/lib/commands/issue-field/update.js +1 -1
  114. package/lib/commands/issue-field-configuration/assign-issue-type.js +1 -1
  115. package/lib/commands/issue-field-configuration/assign-scheme-to-project.js +1 -1
  116. package/lib/commands/issue-field-configuration/create-scheme.js +1 -1
  117. package/lib/commands/issue-field-configuration/create.js +1 -1
  118. package/lib/commands/issue-field-configuration/delete-scheme.js +1 -1
  119. package/lib/commands/issue-field-configuration/delete.js +1 -1
  120. package/lib/commands/issue-field-configuration/get-all-issue-type-items.js +1 -1
  121. package/lib/commands/issue-field-configuration/get-all-schemes.js +1 -1
  122. package/lib/commands/issue-field-configuration/get-all.js +1 -1
  123. package/lib/commands/issue-field-configuration/get-items.js +1 -1
  124. package/lib/commands/issue-field-configuration/get-project-schemes.js +1 -1
  125. package/lib/commands/issue-field-configuration/remove-issue-types.js +1 -1
  126. package/lib/commands/issue-field-configuration/update-items.js +1 -1
  127. package/lib/commands/issue-field-configuration/update-scheme.js +1 -1
  128. package/lib/commands/issue-field-configuration/update.js +1 -1
  129. package/lib/commands/issue-field-context/add-issue-types.js +1 -1
  130. package/lib/commands/issue-field-context/assign-to-projects.js +1 -1
  131. package/lib/commands/issue-field-context/create.js +1 -1
  132. package/lib/commands/issue-field-context/delete.js +1 -1
  133. package/lib/commands/issue-field-context/get-all.js +1 -1
  134. package/lib/commands/issue-field-context/get-contexts-for-projects-and-issue-types.js +1 -1
  135. package/lib/commands/issue-field-context/get-default-values.js +1 -1
  136. package/lib/commands/issue-field-context/get-issue-types.js +1 -1
  137. package/lib/commands/issue-field-context/get-project-mappings.js +1 -1
  138. package/lib/commands/issue-field-context/remove-from-projects.js +1 -1
  139. package/lib/commands/issue-field-context/remove-issue-types.js +1 -1
  140. package/lib/commands/issue-field-context/set-default-values.js +1 -1
  141. package/lib/commands/issue-field-context/update.js +1 -1
  142. package/lib/commands/issue-field-option/create-for-context.js +1 -1
  143. package/lib/commands/issue-field-option/delete-for-context.js +1 -1
  144. package/lib/commands/issue-field-option/get-for-context.js +1 -1
  145. package/lib/commands/issue-field-option/get.js +1 -1
  146. package/lib/commands/issue-field-option/reorder-for-context.js +1 -1
  147. package/lib/commands/issue-field-option/update-for-context.js +1 -1
  148. package/lib/commands/issue-link/create.js +1 -1
  149. package/lib/commands/issue-link/delete.js +1 -1
  150. package/lib/commands/issue-link/get.js +1 -1
  151. package/lib/commands/issue-link-type/create.js +1 -1
  152. package/lib/commands/issue-link-type/delete.js +1 -1
  153. package/lib/commands/issue-link-type/get-all.js +1 -1
  154. package/lib/commands/issue-link-type/get.js +1 -1
  155. package/lib/commands/issue-link-type/update.js +1 -1
  156. package/lib/commands/issue-navigator-setting/get-columns.js +1 -1
  157. package/lib/commands/issue-navigator-setting/set-columns.js +1 -1
  158. package/lib/commands/issue-priority/create.js +1 -1
  159. package/lib/commands/issue-priority/delete.js +1 -1
  160. package/lib/commands/issue-priority/move.js +1 -1
  161. package/lib/commands/issue-priority/search.js +1 -1
  162. package/lib/commands/issue-priority/set-default.js +1 -1
  163. package/lib/commands/issue-priority/update.js +1 -1
  164. package/lib/commands/issue-property/delete-bulk.js +1 -1
  165. package/lib/commands/issue-property/delete.js +1 -1
  166. package/lib/commands/issue-property/get-keys.js +1 -1
  167. package/lib/commands/issue-property/get.js +1 -1
  168. package/lib/commands/issue-property/set-bulk.js +1 -1
  169. package/lib/commands/issue-property/set-by-issue-bulk.js +1 -1
  170. package/lib/commands/issue-property/set-by-list-bulk.js +1 -1
  171. package/lib/commands/issue-property/set.js +1 -1
  172. package/lib/commands/issue-remote-link/create.js +1 -1
  173. package/lib/commands/issue-remote-link/delete-by-global-id.js +1 -1
  174. package/lib/commands/issue-remote-link/delete.js +1 -1
  175. package/lib/commands/issue-remote-link/get-all.js +1 -1
  176. package/lib/commands/issue-remote-link/get.js +1 -1
  177. package/lib/commands/issue-remote-link/update.js +1 -1
  178. package/lib/commands/issue-resolution/create.js +1 -1
  179. package/lib/commands/issue-resolution/delete.js +1 -1
  180. package/lib/commands/issue-resolution/get-all.js +1 -1
  181. package/lib/commands/issue-resolution/get.js +1 -1
  182. package/lib/commands/issue-resolution/move.js +1 -1
  183. package/lib/commands/issue-resolution/search.js +1 -1
  184. package/lib/commands/issue-resolution/set-default.js +1 -1
  185. package/lib/commands/issue-resolution/update.js +1 -1
  186. package/lib/commands/issue-search/get-picker-suggestions.js +1 -1
  187. package/lib/commands/issue-search/search.js +1 -1
  188. package/lib/commands/issue-search/test-jql.js +1 -1
  189. package/lib/commands/issue-security-level/get-members.js +1 -1
  190. package/lib/commands/issue-security-level/get.js +1 -1
  191. package/lib/commands/issue-security-scheme/associate-security-scheme.js +1 -1
  192. package/lib/commands/issue-security-scheme/get-all.js +1 -1
  193. package/lib/commands/issue-security-scheme/get-levels.js +1 -1
  194. package/lib/commands/issue-security-scheme/get.js +1 -1
  195. package/lib/commands/issue-type/create.js +1 -1
  196. package/lib/commands/issue-type/delete.js +1 -1
  197. package/lib/commands/issue-type/get-all-for-projects.js +1 -1
  198. package/lib/commands/issue-type/get-all.js +1 -1
  199. package/lib/commands/issue-type/get-alternatives.js +1 -1
  200. package/lib/commands/issue-type/get.js +1 -1
  201. package/lib/commands/issue-type/set-avatar.js +1 -1
  202. package/lib/commands/issue-type/update.js +1 -1
  203. package/lib/commands/issue-type/upload-avatar.js +1 -1
  204. package/lib/commands/issue-type-property/delete.js +1 -1
  205. package/lib/commands/issue-type-property/get-keys.js +1 -1
  206. package/lib/commands/issue-type-property/get.js +1 -1
  207. package/lib/commands/issue-type-property/set.js +1 -1
  208. package/lib/commands/issue-type-scheme/add-issue-types.js +1 -1
  209. package/lib/commands/issue-type-scheme/assign-to-project.js +1 -1
  210. package/lib/commands/issue-type-scheme/create.js +1 -1
  211. package/lib/commands/issue-type-scheme/delete.js +1 -1
  212. package/lib/commands/issue-type-scheme/get-for-projects.js +1 -1
  213. package/lib/commands/issue-type-scheme/get-issue-types.js +1 -1
  214. package/lib/commands/issue-type-scheme/get-mappings.js +1 -1
  215. package/lib/commands/issue-type-scheme/get-projects.js +1 -1
  216. package/lib/commands/issue-type-scheme/move-issue-types.js +1 -1
  217. package/lib/commands/issue-type-scheme/remove-all-projects.js +1 -1
  218. package/lib/commands/issue-type-scheme/remove-issue-type.js +1 -1
  219. package/lib/commands/issue-type-scheme/remove-project.js +1 -1
  220. package/lib/commands/issue-type-scheme/search.js +1 -1
  221. package/lib/commands/issue-type-scheme/set-projects.js +1 -1
  222. package/lib/commands/issue-type-scheme/update.js +1 -1
  223. package/lib/commands/issue-type-screen-scheme/add-mappings.js +1 -1
  224. package/lib/commands/issue-type-screen-scheme/assign-to-project.js +1 -1
  225. package/lib/commands/issue-type-screen-scheme/create.js +1 -1
  226. package/lib/commands/issue-type-screen-scheme/delete.js +1 -1
  227. package/lib/commands/issue-type-screen-scheme/get-for-projects.js +1 -1
  228. package/lib/commands/issue-type-screen-scheme/get-items.js +1 -1
  229. package/lib/commands/issue-type-screen-scheme/get-projects.js +1 -1
  230. package/lib/commands/issue-type-screen-scheme/remove-mappings.js +1 -1
  231. package/lib/commands/issue-type-screen-scheme/search.js +1 -1
  232. package/lib/commands/issue-type-screen-scheme/set-default-screen.js +1 -1
  233. package/lib/commands/issue-type-screen-scheme/update.js +1 -1
  234. package/lib/commands/issue-vote/add.js +1 -1
  235. package/lib/commands/issue-vote/delete.js +1 -1
  236. package/lib/commands/issue-vote/get-all.js +1 -1
  237. package/lib/commands/issue-watcher/add.js +1 -1
  238. package/lib/commands/issue-watcher/delete.js +1 -1
  239. package/lib/commands/issue-watcher/get-all.js +1 -1
  240. package/lib/commands/issue-watcher/get-bulk.js +1 -1
  241. package/lib/commands/jira-expression/analyse.js +1 -1
  242. package/lib/commands/jira-expression/evaluate.js +1 -1
  243. package/lib/commands/jira-settings/get-advanced.js +1 -1
  244. package/lib/commands/jira-settings/get-globals.js +1 -1
  245. package/lib/commands/jira-settings/get-properties.js +1 -1
  246. package/lib/commands/jira-settings/set-property.js +1 -1
  247. package/lib/commands/jql/convert-user-identifiers.js +1 -1
  248. package/lib/commands/jql/get-auto-complete-suggestions.js +1 -1
  249. package/lib/commands/jql/get-reference-data.js +1 -1
  250. package/lib/commands/jql/parse.js +1 -1
  251. package/lib/commands/jql/sanitize.js +1 -1
  252. package/lib/commands/label/get-all.js +1 -1
  253. package/lib/commands/license/get.js +1 -1
  254. package/lib/commands/myself/change-password.js +1 -1
  255. package/lib/commands/myself/delete-preference.js +1 -1
  256. package/lib/commands/myself/get-locale.js +1 -1
  257. package/lib/commands/myself/get-preference.js +1 -1
  258. package/lib/commands/myself/get.js +1 -1
  259. package/lib/commands/myself/set-preference.js +1 -1
  260. package/lib/commands/myself/update-user.js +1 -1
  261. package/lib/commands/notification-scheme/add.js +1 -1
  262. package/lib/commands/notification-scheme/create.js +1 -1
  263. package/lib/commands/notification-scheme/delete-notification.js +1 -1
  264. package/lib/commands/notification-scheme/delete.js +1 -1
  265. package/lib/commands/notification-scheme/get-all.js +1 -1
  266. package/lib/commands/notification-scheme/get-projects.js +1 -1
  267. package/lib/commands/notification-scheme/get.js +1 -1
  268. package/lib/commands/notification-scheme/update.js +1 -1
  269. package/lib/commands/permission/check-global-permission.js +1 -1
  270. package/lib/commands/permission/check-issue-permission.js +1 -1
  271. package/lib/commands/permission/check-project-permission.js +1 -1
  272. package/lib/commands/permission/get-all.js +1 -1
  273. package/lib/commands/permission/get-my.js +1 -1
  274. package/lib/commands/permission/get-permitted.js +1 -1
  275. package/lib/commands/permission-scheme/create-grant.js +1 -1
  276. package/lib/commands/permission-scheme/create-scheme.js +1 -1
  277. package/lib/commands/permission-scheme/delete-grant.js +1 -1
  278. package/lib/commands/permission-scheme/delete-scheme.js +1 -1
  279. package/lib/commands/permission-scheme/get-all-grants.js +1 -1
  280. package/lib/commands/permission-scheme/get-all.js +1 -1
  281. package/lib/commands/permission-scheme/get-grant.js +1 -1
  282. package/lib/commands/permission-scheme/get.js +1 -1
  283. package/lib/commands/project/archive.js +1 -1
  284. package/lib/commands/project/create.js +1 -1
  285. package/lib/commands/project/delete.js +1 -1
  286. package/lib/commands/project/get-all-issue-types.js +1 -1
  287. package/lib/commands/project/get-all.js +1 -1
  288. package/lib/commands/project/get-issue-type-hierarchy.js +1 -1
  289. package/lib/commands/project/get-notification-schema.js +1 -1
  290. package/lib/commands/project/get.js +1 -1
  291. package/lib/commands/project/project.js +1 -1
  292. package/lib/commands/project/restore.js +1 -1
  293. package/lib/commands/project/search.js +1 -1
  294. package/lib/commands/project/unarchive.js +1 -1
  295. package/lib/commands/project/update.js +1 -1
  296. package/lib/commands/project-avatar/delete.js +1 -1
  297. package/lib/commands/project-avatar/get-all.js +1 -1
  298. package/lib/commands/project-avatar/set.js +1 -1
  299. package/lib/commands/project-avatar/upload.js +1 -1
  300. package/lib/commands/project-category/create.js +1 -1
  301. package/lib/commands/project-category/delete.js +1 -1
  302. package/lib/commands/project-category/get-all.js +1 -1
  303. package/lib/commands/project-category/get.js +1 -1
  304. package/lib/commands/project-category/update.js +1 -1
  305. package/lib/commands/project-component/create.js +1 -1
  306. package/lib/commands/project-component/delete.js +1 -1
  307. package/lib/commands/project-component/get-all.js +1 -1
  308. package/lib/commands/project-component/get-issues-count.js +1 -1
  309. package/lib/commands/project-component/get.js +1 -1
  310. package/lib/commands/project-component/search.js +1 -1
  311. package/lib/commands/project-component/update.js +1 -1
  312. package/lib/commands/project-email/get-sender.js +1 -1
  313. package/lib/commands/project-email/set-sender.js +1 -1
  314. package/lib/commands/project-feature/get.js +1 -1
  315. package/lib/commands/project-feature/set.js +1 -1
  316. package/lib/commands/project-key-and-name-validation/get-valid-key.js +1 -1
  317. package/lib/commands/project-key-and-name-validation/get-valid-name.js +1 -1
  318. package/lib/commands/project-key-and-name-validation/validate-key.js +1 -1
  319. package/lib/commands/project-permission-scheme/get-issue-security-levels.js +1 -1
  320. package/lib/commands/project-permission-scheme/get-issue-security-scheme-levels.js +1 -1
  321. package/lib/commands/project-permission-scheme/get-issue-security-scheme.js +1 -1
  322. package/lib/commands/project-permission-scheme/get-permissions.js +1 -1
  323. package/lib/commands/project-permission-scheme/get.js +1 -1
  324. package/lib/commands/project-permission-scheme/set.js +1 -1
  325. package/lib/commands/project-property/delete.js +1 -1
  326. package/lib/commands/project-property/get-keys.js +1 -1
  327. package/lib/commands/project-property/get.js +1 -1
  328. package/lib/commands/project-property/set.js +1 -1
  329. package/lib/commands/project-role/create.js +1 -1
  330. package/lib/commands/project-role/delete.js +1 -1
  331. package/lib/commands/project-role/get-all.js +1 -1
  332. package/lib/commands/project-role/get-role.js +1 -1
  333. package/lib/commands/project-role/get-roles-and-details.js +1 -1
  334. package/lib/commands/project-role/get-roles.js +1 -1
  335. package/lib/commands/project-role/get.js +1 -1
  336. package/lib/commands/project-role/project-role.js +1 -1
  337. package/lib/commands/project-role/update-partial.js +1 -1
  338. package/lib/commands/project-role/update.js +1 -1
  339. package/lib/commands/project-role-actor/add-actors.js +1 -1
  340. package/lib/commands/project-role-actor/add-default-actors.js +1 -1
  341. package/lib/commands/project-role-actor/delete-actors.js +1 -1
  342. package/lib/commands/project-role-actor/delete-default-actors.js +1 -1
  343. package/lib/commands/project-role-actor/get.js +1 -1
  344. package/lib/commands/project-role-actor/set-actors.js +1 -1
  345. package/lib/commands/project-type/check-accessible.js +1 -1
  346. package/lib/commands/project-type/get-all.js +1 -1
  347. package/lib/commands/project-type/get-licensed.js +1 -1
  348. package/lib/commands/project-type/get.js +1 -1
  349. package/lib/commands/project-type/update.js +1 -1
  350. package/lib/commands/project-version/create.js +1 -1
  351. package/lib/commands/project-version/delete-and-replace.js +1 -1
  352. package/lib/commands/project-version/get-all.js +1 -1
  353. package/lib/commands/project-version/get-related-issue-count.js +1 -1
  354. package/lib/commands/project-version/get-unresolved-issue-count.js +1 -1
  355. package/lib/commands/project-version/get.js +1 -1
  356. package/lib/commands/project-version/merge.js +1 -1
  357. package/lib/commands/project-version/move.js +1 -1
  358. package/lib/commands/project-version/search.js +1 -1
  359. package/lib/commands/project-version/update.js +1 -1
  360. package/lib/commands/screen/add-field-to-default-screen.js +1 -1
  361. package/lib/commands/screen/create.js +1 -1
  362. package/lib/commands/screen/delete.js +1 -1
  363. package/lib/commands/screen/get-all.js +1 -1
  364. package/lib/commands/screen/get-available-fields.js +1 -1
  365. package/lib/commands/screen/get-field-screens.js +1 -1
  366. package/lib/commands/screen/get-workflows.js +1 -1
  367. package/lib/commands/screen/update.js +1 -1
  368. package/lib/commands/screen-scheme/create.js +1 -1
  369. package/lib/commands/screen-scheme/delete.js +1 -1
  370. package/lib/commands/screen-scheme/get-all.js +1 -1
  371. package/lib/commands/screen-scheme/update.js +1 -1
  372. package/lib/commands/screen-tab/create.js +1 -1
  373. package/lib/commands/screen-tab/delete.js +1 -1
  374. package/lib/commands/screen-tab/get-all.js +1 -1
  375. package/lib/commands/screen-tab/move.js +1 -1
  376. package/lib/commands/screen-tab/update.js +1 -1
  377. package/lib/commands/screen-tab-field/add.js +1 -1
  378. package/lib/commands/screen-tab-field/get-all.js +1 -1
  379. package/lib/commands/screen-tab-field/move.js +1 -1
  380. package/lib/commands/screen-tab-field/remove.js +1 -1
  381. package/lib/commands/server-info/get.js +1 -1
  382. package/lib/commands/server-info/jmx.js +1 -1
  383. package/lib/commands/status/create.js +1 -1
  384. package/lib/commands/status/delete.js +1 -1
  385. package/lib/commands/status/get-usages.js +1 -1
  386. package/lib/commands/status/get.js +1 -1
  387. package/lib/commands/status/search.js +1 -1
  388. package/lib/commands/status/status-command.js +1 -1
  389. package/lib/commands/status/update.js +1 -1
  390. package/lib/commands/task/cancel.js +1 -1
  391. package/lib/commands/task/get.js +1 -1
  392. package/lib/commands/time-tracking/get-all.js +1 -1
  393. package/lib/commands/time-tracking/get-setting.js +1 -1
  394. package/lib/commands/time-tracking/get.js +1 -1
  395. package/lib/commands/time-tracking/select.js +1 -1
  396. package/lib/commands/time-tracking/set.js +1 -1
  397. package/lib/commands/user/add-user-to-application.js +1 -1
  398. package/lib/commands/user/change-password.js +1 -1
  399. package/lib/commands/user/create.js +1 -1
  400. package/lib/commands/user/delete.js +1 -1
  401. package/lib/commands/user/get-all.js +1 -1
  402. package/lib/commands/user/get-default-columns.js +1 -1
  403. package/lib/commands/user/get-email.js +1 -1
  404. package/lib/commands/user/get-user-groups.js +1 -1
  405. package/lib/commands/user/get.js +1 -1
  406. package/lib/commands/user/remove-user-from-application.js +1 -1
  407. package/lib/commands/user/reset-default-columns.js +1 -1
  408. package/lib/commands/user/set-default-columns.js +1 -1
  409. package/lib/commands/user/update.js +1 -1
  410. package/lib/commands/user/user-command.js +1 -1
  411. package/lib/commands/user-property/delete.js +1 -1
  412. package/lib/commands/user-property/get-all-keys.js +1 -1
  413. package/lib/commands/user-property/get-user-property.js +1 -1
  414. package/lib/commands/user-property/set.js +1 -1
  415. package/lib/commands/user-search/accounts-with-query.js +1 -1
  416. package/lib/commands/user-search/assignable-users-bulk.js +1 -1
  417. package/lib/commands/user-search/assignable-users.js +1 -1
  418. package/lib/commands/user-search/find.js +1 -1
  419. package/lib/commands/user-search/with-permission.js +1 -1
  420. package/lib/commands/user-search/with-query.js +1 -1
  421. package/lib/commands/workflow/create.js +1 -1
  422. package/lib/commands/workflow/delete.js +1 -1
  423. package/lib/commands/workflow/get-projects.js +1 -1
  424. package/lib/commands/workflow/get-schemes.js +1 -1
  425. package/lib/commands/workflow/get-statuses-properties.js +1 -1
  426. package/lib/commands/workflow/get-statuses.js +1 -1
  427. package/lib/commands/workflow/get-transitions-rules.js +1 -1
  428. package/lib/commands/workflow/get-transitions.js +1 -1
  429. package/lib/commands/workflow/search.js +1 -1
  430. package/lib/commands/workflow-scheme/create.js +1 -1
  431. package/lib/commands/workflow-scheme/delete-default-workflow.js +1 -1
  432. package/lib/commands/workflow-scheme/delete-issue-types-for-workflow.js +1 -1
  433. package/lib/commands/workflow-scheme/delete-workflow-for-issue-type.js +1 -1
  434. package/lib/commands/workflow-scheme/delete.js +1 -1
  435. package/lib/commands/workflow-scheme/get-all.js +1 -1
  436. package/lib/commands/workflow-scheme/get-default-workflow.js +1 -1
  437. package/lib/commands/workflow-scheme/get-issue-types-for-workflows.js +1 -1
  438. package/lib/commands/workflow-scheme/get-workflow-for-issue-type.js +1 -1
  439. package/lib/commands/workflow-scheme/get.js +1 -1
  440. package/lib/commands/workflow-scheme/set-issue-types-for-workflow.js +1 -1
  441. package/lib/commands/workflow-scheme/set-workflow-for-issue-type.js +1 -1
  442. package/lib/commands/workflow-scheme/update-default-workflow.js +1 -1
  443. package/lib/commands/workflow-scheme/update.js +1 -1
  444. package/lib/commands/workflow-scheme-draft/create.js +1 -1
  445. package/lib/commands/workflow-scheme-draft/delete-default-workflow.js +1 -1
  446. package/lib/commands/workflow-scheme-draft/delete-issue-types-for-workflow.js +1 -1
  447. package/lib/commands/workflow-scheme-draft/delete-workflow-for-issue-type.js +1 -1
  448. package/lib/commands/workflow-scheme-draft/delete.js +1 -1
  449. package/lib/commands/workflow-scheme-draft/get-default-workflow.js +1 -1
  450. package/lib/commands/workflow-scheme-draft/get-issue-types-for-workflows.js +1 -1
  451. package/lib/commands/workflow-scheme-draft/get-workflow-for-issue-type.js +1 -1
  452. package/lib/commands/workflow-scheme-draft/get.js +1 -1
  453. package/lib/commands/workflow-scheme-draft/publish.js +1 -1
  454. package/lib/commands/workflow-scheme-draft/set-issue-types-for-workflow.js +1 -1
  455. package/lib/commands/workflow-scheme-draft/set-workflow-for-issue-type.js +1 -1
  456. package/lib/commands/workflow-scheme-draft/update-default-workflow.js +1 -1
  457. package/lib/commands/workflow-scheme-draft/update.js +1 -1
  458. package/lib/commands/workflow-scheme-project-association/assign.js +1 -1
  459. package/lib/commands/workflow-scheme-project-association/get-all.js +1 -1
  460. package/lib/commands/workflow-status/get-all.js +1 -1
  461. package/lib/commands/workflow-status/get.js +1 -1
  462. package/lib/commands/workflow-status-category/get-all.js +1 -1
  463. package/lib/commands/workflow-status-category/get.js +1 -1
  464. package/lib/commands/workflow-transition-property/create.js +1 -1
  465. package/lib/commands/workflow-transition-property/delete.js +1 -1
  466. package/lib/commands/workflow-transition-property/get.js +1 -1
  467. package/lib/commands/workflow-transition-property/update.js +1 -1
  468. package/lib/commands/worklog/add.js +1 -1
  469. package/lib/commands/worklog/delete.js +1 -1
  470. package/lib/commands/worklog/get-deleted.js +1 -1
  471. package/lib/commands/worklog/get-for-issue.js +1 -1
  472. package/lib/commands/worklog/get-updated.js +1 -1
  473. package/lib/commands/worklog/get-with-ids.js +1 -1
  474. package/lib/commands/worklog/get.js +1 -1
  475. package/lib/commands/worklog/update.js +1 -1
  476. package/lib/commands/worklog-property/delete.js +1 -1
  477. package/lib/commands/worklog-property/get-keys.js +1 -1
  478. package/lib/commands/worklog-property/get.js +1 -1
  479. package/lib/commands/worklog-property/set-property.js +1 -1
  480. package/lib/index.js +1 -1
  481. package/package.json +4 -3
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdatePartialProjectRole extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var r=(await this.parse(UpdatePartialProjectRole))["flags"],a=this.removeFlagsFromBase(r),o=a["id"],a=tslib_1.__rest(a,["id"]),t=await t.projectRoleManager.updatePartialProjectRole(o,a);this.display(r,t)}}(exports.default=UpdatePartialProjectRole).description="Updates either the project roles name or its description.",UpdatePartialProjectRole.flags=Object.assign({id:core_1.Flags.integer({char:"i",description:"The ID of the project role."}),name:core_1.Flags.string({char:"n",description:"The name of the project role."}),description:core_1.Flags.string({description:"A description of the project role."})},atlascli_common_1.BaseCommandWithCloudSite.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 UpdatePartialProjectRole extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var a=(await this.parse(UpdatePartialProjectRole)).flags,r=this.removeFlagsFromBase(a),o=r.id,r=tslib_1.__rest(r,["id"]),t=await t.projectRoleManager.updatePartialProjectRole(o,r);this.display(a,t)}}(exports.default=UpdatePartialProjectRole).description="Updates either the project roles name or its description.",UpdatePartialProjectRole.flags=Object.assign({id:core_1.Flags.integer({char:"i",description:"The ID of the project role."}),name:core_1.Flags.string({char:"n",description:"The name of the project role."}),description:core_1.Flags.string({description:"A description of the project role."})},atlascli_common_1.BaseCommandWithCloudSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),project_role_1=require("./project-role"),core_1=require("@oclif/core");class Create extends project_role_1.ProjectRoleCommand{async runWithSite(e){var t=(await this.parse(Create))["flags"];await this.getJira(e,t).projectRoleManager.updateFullProjectRole(t.id,t.name,t.description)}}(exports.default=Create).description="Updates the project role's name and description. You must include both a name and a description in the request.",Create.flags=Object.assign(Object.assign(Object.assign(Object.assign({},project_role_1.RoleIdFlag),atlascli_common_1.NameAndDescriptionFlags),{description:core_1.Flags.string({char:"d",default:"",required:!0,description:"description"})}),atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),project_role_1=require("./project-role"),core_1=require("@oclif/core");class Create extends project_role_1.ProjectRoleCommand{async runWithSite(e){var t=(await this.parse(Create)).flags;await this.getJira(e,t).projectRoleManager.updateFullProjectRole(t.id,t.name,t.description)}}(exports.default=Create).description="Updates the project role's name and description. You must include both a name and a description in the request.",Create.flags=Object.assign(Object.assign(Object.assign(Object.assign({},project_role_1.RoleIdFlag),atlascli_common_1.NameAndDescriptionFlags),{description:core_1.Flags.string({char:"d",default:"",required:!0,description:"description"})}),atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");class AddActorsToRole extends atlascli_common_1.CommandWithSite{async runWithSite(e){var r=(await this.parse(AddActorsToRole))["flags"],e=this.getJira(e,r),o=this.removeFlagsFromBase(r),{project:t,id:s}=o,o=tslib_1.__rest(o,["project","id"]),a=await(0,user_util_1.getUser)(e,o.user),i=await(0,group_util_1.getGroup)(e,o.group),a=(o.user=a.accountId||a.username,o.groupId=i.groupId,o.groupName=i.groupName,delete o.group,await e.projectRoleActorsManager.addActors(t,s,o)),i=this.modifyResponse(a.actors);this.display(r,i)}modifyResponse(e){return e.map(e=>{var r;return e.groupName=(null==(r=e.actorGroup)?void 0:r.name)||"",e.groupId=(null==(r=e.actorGroup)?void 0:r.groupId)||"",e})}}(exports.default=AddActorsToRole).description="Adds default actors tor project role",AddActorsToRole.flags=Object.assign({project:core_1.Flags.string({char:"p",description:"The project ID or project key (case sensitive)."}),id:core_1.Flags.integer({char:"i",description:"The ID of the project role. ",required:!0}),user:core_1.Flags.string({multiple:!0,description:"Username for Server/DC and accountId or username or email for Cloud"}),group:core_1.Flags.string({char:"g",description:"The names or ids of the group that you want to add users to.",multiple:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");class AddActorsToRole extends atlascli_common_1.CommandWithSite{async runWithSite(e){var r=(await this.parse(AddActorsToRole)).flags,e=this.getJira(e,r),o=this.removeFlagsFromBase(r),{project:t,id:s}=o,o=tslib_1.__rest(o,["project","id"]),a=await(0,user_util_1.getUser)(e,o.user),i=await(0,group_util_1.getGroup)(e,o.group),a=(o.user=a.accountId||a.username,o.groupId=i.groupId,o.groupName=i.groupName,delete o.group,await e.projectRoleActorsManager.addActors(t,s,o)),i=this.modifyResponse(a.actors);this.display(r,i)}modifyResponse(e){return e.map(e=>{var r;return e.groupName=(null==(r=e.actorGroup)?void 0:r.name)||"",e.groupId=(null==(r=e.actorGroup)?void 0:r.groupId)||"",e})}}(exports.default=AddActorsToRole).description="Adds default actors tor project role",AddActorsToRole.flags=Object.assign({project:core_1.Flags.string({char:"p",description:"The project ID or project key (case sensitive)."}),id:core_1.Flags.integer({char:"i",description:"The ID of the project role. ",required:!0}),user:core_1.Flags.string({multiple:!0,description:"Username for Server/DC and accountId or username or email for Cloud"}),group:core_1.Flags.string({char:"g",description:"The names or ids of the group that you want to add users to.",multiple:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");class AddDefaultActors extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var r=(await this.parse(AddDefaultActors))["flags"],o=this.removeFlagsFromBase(r),a=o["id"],o=tslib_1.__rest(o,["id"]),s=await(0,user_util_1.getUser)(t,o.user),i=await(0,group_util_1.getGroup)(t,o.group),s=(o.user=s.accountId,o.groupId=i.groupId,delete o.group,await t.projectRoleActorsManager.addDefaultActors(a,o)),i=this.modifyResponse(s.actors);this.display(r,i)}modifyResponse(e){return e.map(e=>(e.groupName=e.actorGroup.name,e.groupId=e.actorGroup.groupId,e))}}(exports.default=AddDefaultActors).description="Adds default actors to a role. ",AddDefaultActors.flags=Object.assign({id:core_1.Flags.integer({char:"i",description:"The ID of the project role. ",required:!0}),user:core_1.Flags.string({description:"The account IDs or usernames or emails of the users to add as default actors. ",multiple:!0}),group:core_1.Flags.string({description:"The name or id of the group to add as a default actor.",multiple:!0})},atlascli_common_1.BaseCommandWithCloudSite.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_util_1=require("@thestarware/atlascli-common/lib/user-util"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");class AddDefaultActors extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var t=(await this.parse(AddDefaultActors)).flags,o=this.removeFlagsFromBase(t),a=o.id,o=tslib_1.__rest(o,["id"]),s=await(0,user_util_1.getUser)(r,o.user),i=await(0,group_util_1.getGroup)(r,o.group),s=(o.user=s.accountId,o.groupId=i.groupId,delete o.group,await r.projectRoleActorsManager.addDefaultActors(a,o)),i=this.modifyResponse(s.actors);this.display(t,i)}modifyResponse(e){return e.map(e=>(e.groupName=e.actorGroup.name,e.groupId=e.actorGroup.groupId,e))}}(exports.default=AddDefaultActors).description="Adds default actors to a role. ",AddDefaultActors.flags=Object.assign({id:core_1.Flags.integer({char:"i",description:"The ID of the project role. ",required:!0}),user:core_1.Flags.string({description:"The account IDs or usernames or emails of the users to add as default actors. ",multiple:!0}),group:core_1.Flags.string({description:"The name or id of the group to add as a default actor.",multiple:!0})},atlascli_common_1.BaseCommandWithCloudSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");class Create extends atlascli_common_1.CommandWithSite{async runWithSite(e){var r=(await this.parse(Create))["flags"],e=this.getJira(e,r),r=this.removeFlagsFromBase(r),{project:t,id:o}=r,r=tslib_1.__rest(r,["project","id"]),a=await(0,user_util_1.getUser)(e,r.user),i=await(0,group_util_1.getGroup)(e,r.group);r.user=a.accountId||a.username,r.groupId=i.groupId,r.groupName=i.groupName,delete r.group,await e.projectRoleActorsManager.deleteActorsFromProjectRole(t,o,r)}}(exports.default=Create).description="Deletes the default actors from a project role",Create.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{project:core_1.Flags.string({char:"p",description:"The project ID or project key (case sensitive).",required:!0}),id:core_1.Flags.integer({char:"i",description:"The ID of the project role.",required:!0}),user:core_1.Flags.string({char:"u",description:"Username for Server/DC and accountId or email or username for Cloud"}),group:core_1.Flags.string({description:"The name or id of the group to add as a default actor.",multiple:!0})});
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"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");class Create extends atlascli_common_1.CommandWithSite{async runWithSite(e){var r=(await this.parse(Create)).flags,e=this.getJira(e,r),r=this.removeFlagsFromBase(r),{project:t,id:o}=r,r=tslib_1.__rest(r,["project","id"]),a=await(0,user_util_1.getUser)(e,r.user),i=await(0,group_util_1.getGroup)(e,r.group);r.user=a.accountId||a.username,r.groupId=i.groupId,r.groupName=i.groupName,delete r.group,await e.projectRoleActorsManager.deleteActorsFromProjectRole(t,o,r)}}(exports.default=Create).description="Deletes the default actors from a project role",Create.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{project:core_1.Flags.string({char:"p",description:"The project ID or project key (case sensitive).",required:!0}),id:core_1.Flags.integer({char:"i",description:"The ID of the project role.",required:!0}),user:core_1.Flags.string({char:"u",description:"Username for Server/DC and accountId or email or username for Cloud"}),group:core_1.Flags.string({description:"The name or id of the group to add as a default actor.",multiple:!0})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");class DeleteDefaultActors extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var r=(await this.parse(DeleteDefaultActors))["flags"],r=this.removeFlagsFromBase(r),o=r["id"],r=tslib_1.__rest(r,["id"]),a=await(0,user_util_1.getUser)(t,r.user),s=await(0,group_util_1.getGroup)(t,r.group);r.groupId=s.groupId,r.user=a.accountId,delete r.group,await t.projectRoleActorsManager.deleteDefaultActorsFromProjectRole(o,r)}}(exports.default=DeleteDefaultActors).description="Deletes the default actors from a project role.",DeleteDefaultActors.flags=Object.assign({id:core_1.Flags.integer({char:"i",description:"The ID of the project role. ",required:!0}),user:core_1.Flags.string({description:"The user account ID or email or username of the user to remove as a default actor."}),group:core_1.Flags.string({description:"The name or id of the group to add as a default actor."})},atlascli_common_1.BaseCommandWithCloudSite.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_util_1=require("@thestarware/atlascli-common/lib/user-util"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");class DeleteDefaultActors extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var r=(await this.parse(DeleteDefaultActors)).flags,r=this.removeFlagsFromBase(r),o=r.id,r=tslib_1.__rest(r,["id"]),a=await(0,user_util_1.getUser)(t,r.user),s=await(0,group_util_1.getGroup)(t,r.group);r.groupId=s.groupId,r.user=a.accountId,delete r.group,await t.projectRoleActorsManager.deleteDefaultActorsFromProjectRole(o,r)}}(exports.default=DeleteDefaultActors).description="Deletes the default actors from a project role.",DeleteDefaultActors.flags=Object.assign({id:core_1.Flags.integer({char:"i",description:"The ID of the project role. ",required:!0}),user:core_1.Flags.string({description:"The user account ID or email or username of the user to remove as a default actor."}),group:core_1.Flags.string({description:"The name or id of the group to add as a default actor."})},atlascli_common_1.BaseCommandWithCloudSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetDefaultActors extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var o=(await this.parse(GetDefaultActors))["flags"],t=await t.projectRoleActorsManager.getDefaultActorsForProjectRole(o.id),t=this.modifyResponse(t.actors);this.display(o,t)}modifyResponse(e){return e.map(e=>(void 0!==e.actorUser?(e.user=e.actorUser.accountId,e.groupName="",e.groupId=""):(e.user="",e.groupName=e.actorGroup.name,e.groupId=e.actorGroup.groupId),e))}}(exports.default=GetDefaultActors).description="Returns the default actors for the project role.",GetDefaultActors.flags=Object.assign({id:core_1.Flags.integer({char:"i",description:"The ID of the project role.",required:!0})},atlascli_common_1.BaseCommandWithCloudSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetDefaultActors extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var o=(await this.parse(GetDefaultActors)).flags,t=await t.projectRoleActorsManager.getDefaultActorsForProjectRole(o.id),t=this.modifyResponse(t.actors);this.display(o,t)}modifyResponse(e){return e.map(e=>(void 0!==e.actorUser?(e.user=e.actorUser.accountId,e.groupName="",e.groupId=""):(e.user="",e.groupName=e.actorGroup.name,e.groupId=e.actorGroup.groupId),e))}}(exports.default=GetDefaultActors).description="Returns the default actors for the project role.",GetDefaultActors.flags=Object.assign({id:core_1.Flags.integer({char:"i",description:"The ID of the project role.",required:!0})},atlascli_common_1.BaseCommandWithCloudSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");class SetActors extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var r=(await this.parse(SetActors))["flags"],e=this.getJira(e,r),t=this.removeFlagsFromBase(r),{project:o,id:a}=t,t=tslib_1.__rest(t,["project","id"]),s=await(0,user_util_1.getUser)(e,t.user),i=await(0,group_util_1.getGroup)(e,t.group),i=(t.groupId=i.groupId,t.groupName=i.groupName,t.user=s.accountId||s.username,delete t.user,delete t.group,await e.projectRoleActorsManager.setActorsToProjectRole(a,o,t.user,t.groupName,t.groupId));this.display(r,i)}}(exports.default=SetActors).description="Sets the actors for a project role for a project, replacing all existing actors.",SetActors.flags=Object.assign({project:core_1.Flags.string({char:"p",description:"Project Id or key.",required:!0}),id:core_1.Flags.integer({char:"i",description:"The ID of the project role.",required:!0}),user:core_1.Flags.string({char:"u",multiple:!0,description:"Username for Server/DC and accountId or username or email for Cloud"}),group:core_1.Flags.string({description:"The name or id of the group to add as a default actor.",multiple:!0})},atlascli_common_1.BaseCommandWithSite.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_util_1=require("@thestarware/atlascli-common/lib/user-util"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");class SetActors extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var r=(await this.parse(SetActors)).flags,e=this.getJira(e,r),t=this.removeFlagsFromBase(r),{project:o,id:a}=t,t=tslib_1.__rest(t,["project","id"]),s=await(0,user_util_1.getUser)(e,t.user),i=await(0,group_util_1.getGroup)(e,t.group),i=(t.groupId=i.groupId,t.groupName=i.groupName,t.user=s.accountId||s.username,delete t.user,delete t.group,await e.projectRoleActorsManager.setActorsToProjectRole(a,o,t.user,t.groupName,t.groupId));this.display(r,i)}}(exports.default=SetActors).description="Sets the actors for a project role for a project, replacing all existing actors.",SetActors.flags=Object.assign({project:core_1.Flags.string({char:"p",description:"Project Id or key.",required:!0}),id:core_1.Flags.integer({char:"i",description:"The ID of the project role.",required:!0}),user:core_1.Flags.string({char:"u",multiple:!0,description:"Username for Server/DC and accountId or username or email for Cloud"}),group:core_1.Flags.string({description:"The name or id of the group to add as a default actor.",multiple:!0})},atlascli_common_1.BaseCommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetAll extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetAll))["flags"],e=await this.getJira(e,t).projectTypeManager.getAccessibleProjectType(t.key);this.display(t,e)}}(exports.default=GetAll).description="Gets details of a project type if it is accessible for current user",GetAll.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{key:core_1.Flags.string({char:"k",description:"Key of project type"})});
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetAll extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetAll)).flags,e=await this.getJira(e,t).projectTypeManager.getAccessibleProjectType(t.key);this.display(t,e)}}(exports.default=GetAll).description="Gets details of a project type if it is accessible for current user",GetAll.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{key:core_1.Flags.string({char:"k",description:"Key of project type"})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetAll extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetAll))["flags"],e=await this.getJira(e,t).projectTypeManager.getAllProjectTypes();this.display(t,e)}}(exports.default=GetAll).description="Returns all project types whether or not the instance has a valid license for each type",GetAll.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common");class GetAll extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetAll)).flags,e=await this.getJira(e,t).projectTypeManager.getAllProjectTypes();this.display(t,e)}}(exports.default=GetAll).description="Returns all project types whether or not the instance has a valid license for each type",GetAll.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetLicensed extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var s=(await this.parse(GetLicensed))["flags"],t=await t.projectTypeManager.getLicensedProjectTypes();this.display(s,t)}}(exports.default=GetLicensed).description="Returns all project types whether or not the instance has a valid license for each type",GetLicensed.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common");class GetLicensed extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var a=(await this.parse(GetLicensed)).flags,t=await t.projectTypeManager.getLicensedProjectTypes();this.display(a,t)}}(exports.default=GetLicensed).description="Returns all project types whether or not the instance has a valid license for each type",GetLicensed.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetAll extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=[];const{flags:s,argv:a}=await this.parse(GetAll),r=this.getJira(e,s);t.push(...s.key||[]),t.push(...Array.isArray(a)?a:"string"==typeof a?[a]:[]),0===t.length&&this.error("No project type key is specified.");e=t.map(e=>r.projectTypeManager.getProjectType(e));await Promise.all(e).then(e=>{0<e.length&&this.display(s,e)})}}(exports.default=GetAll).strict=!1,GetAll.description="Gets details of a project type",GetAll.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{key:core_1.Flags.string({char:"k",description:"Key of project type.",multiple:!0})}),GetAll.args=[{name:"key",description:"Key of project type."}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetAll extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=[];let{flags:a,argv:r}=await this.parse(GetAll),s=this.getJira(e,a);t.push(...a.key||[]),t.push(...Array.isArray(r)?r:"string"==typeof r?[r]:[]),0===t.length&&this.error("No project type key is specified.");e=t.map(e=>s.projectTypeManager.getProjectType(e));await Promise.all(e).then(e=>{0<e.length&&this.display(a,e)})}}(exports.default=GetAll).strict=!1,GetAll.description="Gets details of a project type",GetAll.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{key:core_1.Flags.string({char:"k",description:"Key of project type.",multiple:!0})}),GetAll.args=[{name:"key",description:"Key of project type."}];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class Update extends atlascli_common_1.CommandWithSite{async runWithSite(e){if(e.cloud)throw new Error("This command is only accessible for Server and DC");var t=(await this.parse(Update))["flags"],e=await this.getJira(e,t).projectTypeManager.updateProjectType(t.project,t.typeKey);this.display(t,e)}}(exports.default=Update).description="Updates project type of a project",Update.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{typeKey:core_1.Flags.string({required:!0,description:"Key of project type"}),project:core_1.Flags.string({char:"p",description:"Project id or key"})});
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class Update extends atlascli_common_1.CommandWithSite{async runWithSite(e){if(e.cloud)throw new Error("This command is only accessible for Server and DC");var t=(await this.parse(Update)).flags,e=await this.getJira(e,t).projectTypeManager.updateProjectType(t.project,t.typeKey);this.display(t,e)}}(exports.default=Update).description="Updates project type of a project",Update.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{typeKey:core_1.Flags.string({required:!0,description:"Key of project type"}),project:core_1.Flags.string({char:"p",description:"Project id or key"})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class ProjectVersionCreate extends atlascli_common_1.CommandWithSite{async runWithSite(e){var r=(await this.parse(ProjectVersionCreate))["flags"],e=this.getJira(e,r),t=this.removeFlagsFromBase(r),o=await(0,project_util_1.getProject)(e,r.project),o=(t.projectId=o.projectId,await e.projectVersionManager.createVersion(t));this.display(r,o)}}(exports.default=ProjectVersionCreate).description="Creates a new project version.",ProjectVersionCreate.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{project:core_1.Flags.string({char:"p",description:"Project id or key",required:!0}),name:core_1.Flags.string({required:!0,description:"Name of version."}),description:core_1.Flags.string({description:"Description of version."}),startDate:core_1.Flags.string({description:"Start date of version."}),released:core_1.Flags.boolean({description:"Version is released.",allowNo:!0}),releaseDate:core_1.Flags.string({description:"Release date of version."}),archived:core_1.Flags.boolean({description:"Version is archived.",allowNo:!0})});
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class ProjectVersionCreate extends atlascli_common_1.CommandWithSite{async runWithSite(e){var r=(await this.parse(ProjectVersionCreate)).flags,e=this.getJira(e,r),t=this.removeFlagsFromBase(r),o=await(0,project_util_1.getProject)(e,r.project),o=(t.projectId=o.projectId,await e.projectVersionManager.createVersion(t));this.display(r,o)}}(exports.default=ProjectVersionCreate).description="Creates a new project version.",ProjectVersionCreate.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{project:core_1.Flags.string({char:"p",description:"Project id or key",required:!0}),name:core_1.Flags.string({required:!0,description:"Name of version."}),description:core_1.Flags.string({description:"Description of version."}),startDate:core_1.Flags.string({description:"Start date of version."}),released:core_1.Flags.boolean({description:"Version is released.",allowNo:!0}),releaseDate:core_1.Flags.string({description:"Release date of version."}),archived:core_1.Flags.boolean({description:"Version is archived.",allowNo:!0})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class DeleteAndReplace extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteAndReplace))["flags"],e=this.getJira(e,t),s=this.getCustomFieldReplacementList(t);await e.projectVersionManager.deleteVersion(t.id,t.moveFixIssuesTo,t.moveAffectedIssuesTo,s)}getCustomFieldReplacementList(e){if(e.customFieldReplacement)return e.customFieldReplacement.map(e=>JSON.parse(e))}}(exports.default=DeleteAndReplace).description="Deletes a project version. Alternative versions can be provided to update issues that use the deleted version.",DeleteAndReplace.flags=Object.assign({id:core_1.Flags.integer({char:"i",required:!0,description:"Id of the version to be deleted."}),moveFixIssuesTo:core_1.Flags.integer({char:"f",description:"The ID of the version to update fixVersion to when the field contains the deleted version."}),moveAffectedIssuesTo:core_1.Flags.integer({char:"a",description:"The ID of the version to update affectedVersion to when the field contains the deleted version."}),customFieldReplacement:core_1.Flags.string({multiple:!0,char:"c",description:' An array of custom field IDs (customFieldId) and version IDs (moveTo) to update when the fields contain the deleted version. Ex: --customFieldReplacement="{\\"customFieldId\\":10100, \\"moveTo\\":1002}"'})},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 DeleteAndReplace extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteAndReplace)).flags,e=this.getJira(e,t),s=this.getCustomFieldReplacementList(t);await e.projectVersionManager.deleteVersion(t.id,t.moveFixIssuesTo,t.moveAffectedIssuesTo,s)}getCustomFieldReplacementList(e){if(e.customFieldReplacement)return e.customFieldReplacement.map(e=>JSON.parse(e))}}(exports.default=DeleteAndReplace).description="Deletes a project version. Alternative versions can be provided to update issues that use the deleted version.",DeleteAndReplace.flags=Object.assign({id:core_1.Flags.integer({char:"i",required:!0,description:"Id of the version to be deleted."}),moveFixIssuesTo:core_1.Flags.integer({char:"f",description:"The ID of the version to update fixVersion to when the field contains the deleted version."}),moveAffectedIssuesTo:core_1.Flags.integer({char:"a",description:"The ID of the version to update affectedVersion to when the field contains the deleted version."}),customFieldReplacement:core_1.Flags.string({multiple:!0,char:"c",description:' An array of custom field IDs (customFieldId) and version IDs (moveTo) to update when the fields contain the deleted version. Ex: --customFieldReplacement="{\\"customFieldId\\":10100, \\"moveTo\\":1002}"'})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),project_1=require("../project/project"),core_1=require("@oclif/core");class ProjectVersionGetAll extends project_1.ProjectCommand{async runWithSite(e){var t=(await this.parse(ProjectVersionGetAll))["flags"],e=await this.getJira(e,t).projectVersionManager.getVersions(t.project);this.display(t,e)}}(exports.default=ProjectVersionGetAll).description="Returns all versions in a project. The response is not paginated. Use Get project versions paginated if you want to get the versions in a project with pagination.",ProjectVersionGetAll.flags=Object.assign({project:core_1.Flags.string({char:"p",description:"Project id or key",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),project_1=require("../project/project"),core_1=require("@oclif/core");class ProjectVersionGetAll extends project_1.ProjectCommand{async runWithSite(e){var t=(await this.parse(ProjectVersionGetAll)).flags,e=await this.getJira(e,t).projectVersionManager.getVersions(t.project);this.display(t,e)}}(exports.default=ProjectVersionGetAll).description="Returns all versions in a project. The response is not paginated. Use Get project versions paginated if you want to get the versions in a project with pagination.",ProjectVersionGetAll.flags=Object.assign({project:core_1.Flags.string({char:"p",description:"Project id or key",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),project_1=require("../project/project"),core_1=require("@oclif/core");class ProjectVersionGetRelatedIssueCount extends project_1.ProjectCommand{async runWithSite(e){var t=(await this.parse(ProjectVersionGetRelatedIssueCount))["flags"],e=await this.getJira(e,t).projectVersionManager.getVersionRelatedIssueCount(t.id);this.display(t,e)}}(exports.default=ProjectVersionGetRelatedIssueCount).description="Returns number of issues for each version field.",ProjectVersionGetRelatedIssueCount.flags=Object.assign({id:core_1.Flags.integer({required:!0,char:"i",description:"version id"})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),project_1=require("../project/project"),core_1=require("@oclif/core");class ProjectVersionGetRelatedIssueCount extends project_1.ProjectCommand{async runWithSite(e){var t=(await this.parse(ProjectVersionGetRelatedIssueCount)).flags,e=await this.getJira(e,t).projectVersionManager.getVersionRelatedIssueCount(t.id);this.display(t,e)}}(exports.default=ProjectVersionGetRelatedIssueCount).description="Returns number of issues for each version field.",ProjectVersionGetRelatedIssueCount.flags=Object.assign({id:core_1.Flags.integer({required:!0,char:"i",description:"version id"})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),project_1=require("../project/project"),core_1=require("@oclif/core");class ProjectVersionGetRelatedIssueCount extends project_1.ProjectCommand{async runWithSite(e){var t=(await this.parse(ProjectVersionGetRelatedIssueCount))["flags"],e=await this.getJira(e,t).projectVersionManager.getVersionUnresolvedIssueCount(t.id);this.display(t,e)}}(exports.default=ProjectVersionGetRelatedIssueCount).description="Returns counts of the issues and unresolved issues for the project version.",ProjectVersionGetRelatedIssueCount.flags=Object.assign({id:core_1.Flags.integer({required:!0,char:"i",description:"version id"})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),project_1=require("../project/project"),core_1=require("@oclif/core");class ProjectVersionGetRelatedIssueCount extends project_1.ProjectCommand{async runWithSite(e){var t=(await this.parse(ProjectVersionGetRelatedIssueCount)).flags,e=await this.getJira(e,t).projectVersionManager.getVersionUnresolvedIssueCount(t.id);this.display(t,e)}}(exports.default=ProjectVersionGetRelatedIssueCount).description="Returns counts of the issues and unresolved issues for the project version.",ProjectVersionGetRelatedIssueCount.flags=Object.assign({id:core_1.Flags.integer({required:!0,char:"i",description:"version id"})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),project_1=require("../project/project"),core_1=require("@oclif/core");class ProjectVersionGet extends project_1.ProjectCommand{async runWithSite(e){var r=[];const{flags:t,argv:i}=await this.parse(ProjectVersionGet),s=this.getJira(e,t);r.push(...t.id||[]),r.push(...Array.isArray(i)?i:"string"==typeof i?[i]:[]),0===r.length&&this.error("No version id is specified.");e=r.sort().map(e=>s.projectVersionManager.getVersion(Number.parseInt(e,10)));await Promise.all(e).then(e=>{0<e.length&&this.display(t,e)})}}(exports.default=ProjectVersionGet).strict=!1,ProjectVersionGet.description="Returns a project version.",ProjectVersionGet.flags=Object.assign({id:core_1.Flags.string({multiple:!0,char:"i",description:"version id"})},atlascli_common_1.CommandWithSite.flags),ProjectVersionGet.args=[{name:"id",description:"version id"}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),project_1=require("../project/project"),core_1=require("@oclif/core");class ProjectVersionGet extends project_1.ProjectCommand{async runWithSite(e){var r=[];let{flags:t,argv:i}=await this.parse(ProjectVersionGet),s=this.getJira(e,t);r.push(...t.id||[]),r.push(...Array.isArray(i)?i:"string"==typeof i?[i]:[]),0===r.length&&this.error("No version id is specified.");e=r.sort().map(e=>s.projectVersionManager.getVersion(Number.parseInt(e,10)));await Promise.all(e).then(e=>{0<e.length&&this.display(t,e)})}}(exports.default=ProjectVersionGet).strict=!1,ProjectVersionGet.description="Returns a project version.",ProjectVersionGet.flags=Object.assign({id:core_1.Flags.string({multiple:!0,char:"i",description:"version id"})},atlascli_common_1.CommandWithSite.flags),ProjectVersionGet.args=[{name:"id",description:"version id"}];
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class ProjectVersionMerge extends atlascli_common_1.CommandWithSite{async runWithSite(e){var i=(await this.parse(ProjectVersionMerge))["flags"];await this.getJira(e,i).projectVersionManager.mergeVersions(i.id,i.moveIssuesTo)}}(exports.default=ProjectVersionMerge).description=`Merges two project versions. The merge is completed by deleting the version specified in id and replacing any occurrences of its ID in fixVersion with the version ID specified in moveIssuesTo.
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class ProjectVersionMerge extends atlascli_common_1.CommandWithSite{async runWithSite(e){var i=(await this.parse(ProjectVersionMerge)).flags;await this.getJira(e,i).projectVersionManager.mergeVersions(i.id,i.moveIssuesTo)}}(exports.default=ProjectVersionMerge).description=`Merges two project versions. The merge is completed by deleting the version specified in id and replacing any occurrences of its ID in fixVersion with the version ID specified in moveIssuesTo.
2
2
  Consider using Delete and replace version instead. This resource supports swapping version values in fixVersion, affectedVersion, and custom fields.`,ProjectVersionMerge.flags=Object.assign({id:core_1.Flags.integer({char:"i",required:!0,description:"The ID of the version to delete."}),moveIssuesTo:core_1.Flags.integer({char:"t",required:!0,description:"The ID of the version to merge into."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class ProjectVersionMove extends atlascli_common_1.CommandWithSite{async runWithSite(e){var i=(await this.parse(ProjectVersionMove))["flags"],e=await this.getJira(e,i).projectVersionManager.moveVersion(i.id,i.after,i.position);this.display(i,e)}}(exports.default=ProjectVersionMove).description="Modifies the version's sequence within the project, which affects the display order of the versions in Jira.",ProjectVersionMove.flags=Object.assign({id:core_1.Flags.integer({char:"i",required:!0,description:"The ID of the version to move."}),after:core_1.Flags.string({description:"The URL (self link) of the version after which to place the moved version. Cannot be used with position.",exclusive:["position"]}),position:core_1.Flags.string({description:"An absolute position in which to place the moved version. Cannot be used with after.",options:["Earlier","Later","First","Last"],exclusive:["after"]})},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 ProjectVersionMove extends atlascli_common_1.CommandWithSite{async runWithSite(e){var i=(await this.parse(ProjectVersionMove)).flags,e=await this.getJira(e,i).projectVersionManager.moveVersion(i.id,i.after,i.position);this.display(i,e)}}(exports.default=ProjectVersionMove).description="Modifies the version's sequence within the project, which affects the display order of the versions in Jira.",ProjectVersionMove.flags=Object.assign({id:core_1.Flags.integer({char:"i",required:!0,description:"The ID of the version to move."}),after:core_1.Flags.string({description:"The URL (self link) of the version after which to place the moved version. Cannot be used with position.",exclusive:["position"]}),position:core_1.Flags.string({description:"An absolute position in which to place the moved version. Cannot be used with after.",options:["Earlier","Later","First","Last"],exclusive:["after"]})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class ProjectVersionSearch extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var s=(await this.parse(ProjectVersionSearch))["flags"],r=this.removeFlagsFromBase(s),t=r["all"],r=tslib_1.__rest(r,["all"]),o=await a.projectVersionManager.search(s.project,r);t&&(o.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(o,r,a.projectVersionManager.search.bind(a.projectVersionManager,s.project))),this.display(s,o.values)}}(exports.default=ProjectVersionSearch).description="Search for project components. This command is only applicable to Jira Cloud",ProjectVersionSearch.flags=Object.assign(Object.assign(Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{project:core_1.Flags.string({char:"p",description:"Project id or key",required:!0})}),(0,atlascli_common_1.getSearchFlags)()),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class ProjectVersionSearch extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var r=(await this.parse(ProjectVersionSearch)).flags,s=this.removeFlagsFromBase(r),t=s.all,s=tslib_1.__rest(s,["all"]),o=await a.projectVersionManager.search(r.project,s);t&&(o.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(o,s,a.projectVersionManager.search.bind(a.projectVersionManager,r.project))),this.display(r,o.values)}}(exports.default=ProjectVersionSearch).description="Search for project components. This command is only applicable to Jira Cloud",ProjectVersionSearch.flags=Object.assign(Object.assign(Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{project:core_1.Flags.string({char:"p",description:"Project id or key",required:!0})}),(0,atlascli_common_1.getSearchFlags)()),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class ProjectVersionUpdate extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(ProjectVersionUpdate))["flags"],e=this.getJira(e,s),i=this.removeFlagsFromBase(s),e=await e.projectVersionManager.updateVersion(s.id,i);this.display(s,e)}}(exports.default=ProjectVersionUpdate).description="Updates a project version.",ProjectVersionUpdate.flags=Object.assign({id:core_1.Flags.integer({char:"i",required:!0,description:"Id of the version to be updated."}),name:core_1.Flags.string({description:"Name of version."}),description:core_1.Flags.string({description:"Description of version."}),startDate:core_1.Flags.string({description:"Start date of version."}),released:core_1.Flags.boolean({description:"Version is released.",allowNo:!0}),releaseDate:core_1.Flags.string({description:"Release date of version."}),archived:core_1.Flags.boolean({description:"Version is archived.",allowNo:!0}),moveUnfixedIssuesTo:core_1.Flags.string({description:"The URL of the self link to the version to which all unfixed issues are moved when a version is released."})},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 ProjectVersionUpdate extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(ProjectVersionUpdate)).flags,e=this.getJira(e,s),i=this.removeFlagsFromBase(s),e=await e.projectVersionManager.updateVersion(s.id,i);this.display(s,e)}}(exports.default=ProjectVersionUpdate).description="Updates a project version.",ProjectVersionUpdate.flags=Object.assign({id:core_1.Flags.integer({char:"i",required:!0,description:"Id of the version to be updated."}),name:core_1.Flags.string({description:"Name of version."}),description:core_1.Flags.string({description:"Description of version."}),startDate:core_1.Flags.string({description:"Start date of version."}),released:core_1.Flags.boolean({description:"Version is released.",allowNo:!0}),releaseDate:core_1.Flags.string({description:"Release date of version."}),archived:core_1.Flags.boolean({description:"Version is archived.",allowNo:!0}),moveUnfixedIssuesTo:core_1.Flags.string({description:"The URL of the self link to the version to which all unfixed issues are moved when a version is released."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class AddFieldToDefaultScreen extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(AddFieldToDefaultScreen))["flags"];await this.getJira(e,t).screenManager.addFieldToDefaultScreen(t.fieldId)}}(exports.default=AddFieldToDefaultScreen).description="Adds a field to the default tab of the default screen.",AddFieldToDefaultScreen.flags=Object.assign({fieldId:core_1.Flags.string({char:"i",description:"The ID of the field.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class AddFieldToDefaultScreen extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(AddFieldToDefaultScreen)).flags;await this.getJira(e,a).screenManager.addFieldToDefaultScreen(a.fieldId)}}(exports.default=AddFieldToDefaultScreen).description="Adds a field to the default tab of the default screen.",AddFieldToDefaultScreen.flags=Object.assign({fieldId:core_1.Flags.string({char:"i",description:"The ID of the field.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class CreateScreen extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var a=(await this.parse(CreateScreen))["flags"],s=this.removeFlagsFromBase(a),r=await r.screenManager.createScreen(s);this.display(a,r)}}(exports.default=CreateScreen).description="Creates a screen.",CreateScreen.flags=Object.assign({name:core_1.Flags.string({char:"n",description:"The name of the screen. The name must be unique.",required:!0}),description:core_1.Flags.string({description:"The description of the screen"})},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 CreateScreen extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var r=(await this.parse(CreateScreen)).flags,t=this.removeFlagsFromBase(r),a=await a.screenManager.createScreen(t);this.display(r,a)}}(exports.default=CreateScreen).description="Creates a screen.",CreateScreen.flags=Object.assign({name:core_1.Flags.string({char:"n",description:"The name of the screen. The name must be unique.",required:!0}),description:core_1.Flags.string({description:"The description of the screen"})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteScreen extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var r=(await this.parse(DeleteScreen))["flags"];await t.screenManager.deleteScreen(r.screenId)}}(exports.default=DeleteScreen).description="Deletes a screen.",DeleteScreen.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of the screen.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteScreen extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var t=(await this.parse(DeleteScreen)).flags;await r.screenManager.deleteScreen(t.screenId)}}(exports.default=DeleteScreen).description="Deletes a screen.",DeleteScreen.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of the screen.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),base_command_with_cloud_or_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site"));class GetScreens extends base_command_with_cloud_or_server_site_1.default{async runWithCloudSite(e,s){var a=(await this.parse(GetScreens))["flags"],r=this.removeFlagsFromBase(this.modifyFlagsForCloud(a)),t=r["all"],r=tslib_1.__rest(r,["all"]),l=await s.screenManager.getAllScreens(r);t&&(t=s.screenManager.getAllScreens.bind(s.screenManager),l.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(l,r,t)),this.display(a,l.values)}async runWithServerSite(e,s){var a=(await this.parse(GetScreens))["flags"],s=(void 0===a.sort&&(a.sort="id"),await s.screenManager.getAllScreens({expand:a.expand,search:a.query,startAt:a.startAt,maxResults:a.maxResults}));Array.isArray(s)?this.display(a,s):this.display(a,s.screens)}modifyFlagsForCloud(e){return e.queryString=e.query,delete e.query,delete e.expand,e}}(exports.default=GetScreens).description="Gets all screens",GetScreens.flags=Object.assign(Object.assign(Object.assign(Object.assign({id:core_1.Flags.integer({char:"i",description:"The ID of screen. You can provide multiple value by repeating this flag.",multiple:!0}),scope:core_1.Flags.string({description:"The scope filter string. You can provide multiple value by repeating this flag.",options:["GLOBAL","PROJECT","TEMPLATE"],multiple:!0}),expand:core_1.Flags.string({description:"fieldScreenSchemes,fieldScreenWorkflows, deletable"})},(0,atlascli_common_1.getSearchFlags)()),{orderBy:core_1.Flags.string({options:["id","name"]})}),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),base_command_with_cloud_or_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site"));class GetScreens extends base_command_with_cloud_or_server_site_1.default{async runWithCloudSite(e,s){var a=(await this.parse(GetScreens)).flags,r=this.removeFlagsFromBase(this.modifyFlagsForCloud(a)),t=r.all,r=tslib_1.__rest(r,["all"]),l=await s.screenManager.getAllScreens(r);t&&(t=s.screenManager.getAllScreens.bind(s.screenManager),l.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(l,r,t)),this.display(a,l.values)}async runWithServerSite(e,s){var a=(await this.parse(GetScreens)).flags,s=(void 0===a.sort&&(a.sort="id"),await s.screenManager.getAllScreens({expand:a.expand,search:a.query,startAt:a.startAt,maxResults:a.maxResults}));Array.isArray(s)?this.display(a,s):this.display(a,s.screens)}modifyFlagsForCloud(e){return e.queryString=e.query,delete e.query,delete e.expand,e}}(exports.default=GetScreens).description="Gets all screens",GetScreens.flags=Object.assign(Object.assign(Object.assign(Object.assign({id:core_1.Flags.integer({char:"i",description:"The ID of screen. You can provide multiple value by repeating this flag.",multiple:!0}),scope:core_1.Flags.string({description:"The scope filter string. You can provide multiple value by repeating this flag.",options:["GLOBAL","PROJECT","TEMPLATE"],multiple:!0}),expand:core_1.Flags.string({description:"fieldScreenSchemes,fieldScreenWorkflows, deletable"})},(0,atlascli_common_1.getSearchFlags)()),{orderBy:core_1.Flags.string({options:["id","name"]})}),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetAvailableFields extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(GetAvailableFields))["flags"],e=await this.getJira(e,a).screenManager.getAvalibleFieldsForScreen(a.screenId);this.display(a,e)}}(exports.default=GetAvailableFields).description="Gets the fields that can be added to a tab on a screen.",GetAvailableFields.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of the screen.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetAvailableFields extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(GetAvailableFields)).flags,e=await this.getJira(e,a).screenManager.getAvalibleFieldsForScreen(a.screenId);this.display(a,e)}}(exports.default=GetAvailableFields).description="Gets the fields that can be added to a tab on a screen.",GetAvailableFields.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of the screen.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetScreensForField extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var t=(await this.parse(GetScreensForField))["flags"],a=this.removeFlagsFromBase(t),{fieldId:r,all:i}=a,a=tslib_1.__rest(a,["fieldId","all"]),l=await s.screenManager.getScreensForField(r,a);i&&(l.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(l,a,s.screenManager.getScreensForField.bind(s.screenManager,r))),this.display(t,l.values)}}(exports.default=GetScreensForField).description="Gets screens a field is used in.",GetScreensForField.flags=Object.assign(Object.assign(Object.assign({fieldId:core_1.Flags.string({char:"i",description:"The ID of the field to return screens for.",required:!0}),expand:core_1.Flags.string({description:"This parameter accepts tab which returns details about the screen tabs the field is used in.",options:["tab"]})},(0,atlascli_common_1.getStartAtAndMaxFlags)()),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetScreensForField extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var a=(await this.parse(GetScreensForField)).flags,t=this.removeFlagsFromBase(a),{fieldId:r,all:i}=t,t=tslib_1.__rest(t,["fieldId","all"]),l=await s.screenManager.getScreensForField(r,t);i&&(l.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(l,t,s.screenManager.getScreensForField.bind(s.screenManager,r))),this.display(a,l.values)}}(exports.default=GetScreensForField).description="Gets screens a field is used in.",GetScreensForField.flags=Object.assign(Object.assign(Object.assign({fieldId:core_1.Flags.string({char:"i",description:"The ID of the field to return screens for.",required:!0}),expand:core_1.Flags.string({description:"This parameter accepts tab which returns details about the screen tabs the field is used in.",options:["tab"]})},(0,atlascli_common_1.getStartAtAndMaxFlags)()),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetScreenWorkflows extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(e,r){var s=(await this.parse(GetScreenWorkflows))["flags"],r=await r.screenManager.getAllScreens(Object.assign(Object.assign({},s),{expand:"fieldScreenWorkflows"}));if(!("screens"in r))throw new Error("This method is not supported on your Jira version. It requires Jira version 8.19.0 or later.");this.display(s,this.getScreenWorkFlows(r.screens))}getScreenWorkFlows(e){const t=[];return e.filter(e=>0!==e.fieldScreenWorkflows.length).forEach(o=>{o.fieldScreenWorkflows.forEach(s=>{s.actions.forEach(e=>{var r={};r.screenId=o.id,r.workflowId=s.id,r.workflowName=s.name,r.actionId=e.id,r.actionName=e.name,t.push(r)})})}),t}}(exports.default=GetScreenWorkflows).description="Gets all screens workflow.",GetScreenWorkflows.flags=Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common");class GetScreenWorkflows extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(e,r){var s=(await this.parse(GetScreenWorkflows)).flags,r=await r.screenManager.getAllScreens(Object.assign(Object.assign({},s),{expand:"fieldScreenWorkflows"}));if(!("screens"in r))throw new Error("This method is not supported on your Jira version. It requires Jira version 8.19.0 or later.");this.display(s,this.getScreenWorkFlows(r.screens))}getScreenWorkFlows(e){let t=[];return e.filter(e=>0!==e.fieldScreenWorkflows.length).forEach(o=>{o.fieldScreenWorkflows.forEach(s=>{s.actions.forEach(e=>{var r={};r.screenId=o.id,r.workflowId=s.id,r.workflowName=s.name,r.actionId=e.id,r.actionName=e.name,t.push(r)})})}),t}}(exports.default=GetScreenWorkflows).description="Gets all screens workflow.",GetScreenWorkflows.flags=Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateScreen extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var r=(await this.parse(UpdateScreen))["flags"],t=this.removeFlagsFromBase(r),a=t["screenId"],t=tslib_1.__rest(t,["screenId"]),s=await s.screenManager.updateScreen(a,t);this.display(r,s)}}(exports.default=UpdateScreen).description="Updates a screen.",UpdateScreen.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of the screen.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the screen. The name must be unique."}),description:core_1.Flags.string({description:"The description of the screen"})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateScreen extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var r=(await this.parse(UpdateScreen)).flags,t=this.removeFlagsFromBase(r),a=t.screenId,t=tslib_1.__rest(t,["screenId"]),s=await s.screenManager.updateScreen(a,t);this.display(r,s)}}(exports.default=UpdateScreen).description="Updates a screen.",UpdateScreen.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of the screen.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the screen. The name must be unique."}),description:core_1.Flags.string({description:"The description of the screen"})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class CreateScreenScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var s=(await this.parse(CreateScreenScheme))["flags"],c=this.removeFlagsFromBase(s),r=(this.modifyFlags(c),await r.screenSchemeManager.createScreenScheme(c));this.display(s,r)}modifyFlags(r){r.screens={},Object.keys(r).forEach(e=>{e.includes("Screen")&&(r.screens[e.split("Screen")[0]]=r[e],delete r[e])})}}(exports.default=CreateScreenScheme).description="Creates a screen scheme.",CreateScreenScheme.flags=Object.assign({name:core_1.Flags.string({char:"n",description:"The name of the screen. The name must be unique.",required:!0}),description:core_1.Flags.string({description:"The description of the screen"}),defaultScreen:core_1.Flags.string({description:"The ID of the default screen.",required:!0}),editScreen:core_1.Flags.string({description:"The ID of the edit screen."}),viewScreen:core_1.Flags.string({description:"The ID of the view screen."}),createScreen:core_1.Flags.string({description:"The ID of the create screen."})},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 CreateScreenScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var s=(await this.parse(CreateScreenScheme)).flags,c=this.removeFlagsFromBase(s),r=(this.modifyFlags(c),await r.screenSchemeManager.createScreenScheme(c));this.display(s,r)}modifyFlags(r){r.screens={},Object.keys(r).forEach(e=>{e.includes("Screen")&&(r.screens[e.split("Screen")[0]]=r[e],delete r[e])})}}(exports.default=CreateScreenScheme).description="Creates a screen scheme.",CreateScreenScheme.flags=Object.assign({name:core_1.Flags.string({char:"n",description:"The name of the screen. The name must be unique.",required:!0}),description:core_1.Flags.string({description:"The description of the screen"}),defaultScreen:core_1.Flags.string({description:"The ID of the default screen.",required:!0}),editScreen:core_1.Flags.string({description:"The ID of the edit screen."}),viewScreen:core_1.Flags.string({description:"The ID of the view screen."}),createScreen:core_1.Flags.string({description:"The ID of the create screen."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteScreenScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,c){var s=(await this.parse(DeleteScreenScheme))["flags"];await c.screenSchemeManager.deleteScreenScheme(s.screenId)}}(exports.default=DeleteScreenScheme).description="Deletes a screen scheme.",DeleteScreenScheme.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of the screen scheme.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteScreenScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,c){var r=(await this.parse(DeleteScreenScheme)).flags;await c.screenSchemeManager.deleteScreenScheme(r.screenId)}}(exports.default=DeleteScreenScheme).description="Deletes a screen scheme.",DeleteScreenScheme.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of the screen scheme.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetScreenSchemes extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var a=(await this.parse(GetScreenSchemes))["flags"],t=this.removeFlagsFromBase(a),r=t["all"],t=tslib_1.__rest(t,["all"]),c=(this.modifySearchFlags(t),await s.screenSchemeManager.getAllScreenSchemes(t));r&&(c.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(c,t,s.screenSchemeManager.getAllScreenSchemes.bind(s.screenSchemeManager))),this.display(a,c.values,(e,s)=>{s.defaultScreenId=e.screens.default||"",s.createScreenId=e.screens.create||"",s.editScreenId=e.screens.edit||"",s.viewScreenId=e.screens.view||""})}modifySearchFlags(e){e.queryString=e.query,delete e.query}}(exports.default=GetScreenSchemes).description="Gets all screen schemes. (Use the expanded flag to see screens of the schemes.)",GetScreenSchemes.flags=Object.assign(Object.assign(Object.assign(Object.assign({id:core_1.Flags.integer({char:"i",description:"The ID of screen scheme. You can provide multiple value by repeating this flag.",multiple:!0}),expand:core_1.Flags.string({description:"",options:["issueTypeScreenSchemes"]})},(0,atlascli_common_1.getSearchFlags)()),{orderBy:core_1.Flags.string({options:["id","name"]})}),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetScreenSchemes extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var a=(await this.parse(GetScreenSchemes)).flags,t=this.removeFlagsFromBase(a),r=t.all,t=tslib_1.__rest(t,["all"]),c=(this.modifySearchFlags(t),await s.screenSchemeManager.getAllScreenSchemes(t));r&&(c.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(c,t,s.screenSchemeManager.getAllScreenSchemes.bind(s.screenSchemeManager))),this.display(a,c.values,(e,s)=>{s.defaultScreenId=e.screens.default||"",s.createScreenId=e.screens.create||"",s.editScreenId=e.screens.edit||"",s.viewScreenId=e.screens.view||""})}modifySearchFlags(e){e.queryString=e.query,delete e.query}}(exports.default=GetScreenSchemes).description="Gets all screen schemes. (Use the expanded flag to see screens of the schemes.)",GetScreenSchemes.flags=Object.assign(Object.assign(Object.assign(Object.assign({id:core_1.Flags.integer({char:"i",description:"The ID of screen scheme. You can provide multiple value by repeating this flag.",multiple:!0}),expand:core_1.Flags.string({description:"",options:["issueTypeScreenSchemes"]})},(0,atlascli_common_1.getSearchFlags)()),{orderBy:core_1.Flags.string({options:["id","name"]})}),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateScreenScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var r=(await this.parse(UpdateScreenScheme))["flags"],r=this.removeFlagsFromBase(r),c=r["screenSchemeId"],r=tslib_1.__rest(r,["screenSchemeId"]);this.modifyFlags(r),await s.screenSchemeManager.updateScreenScheme(c,r)}modifyFlags(r){r.screens={},Object.keys(r).forEach(e=>{var s;e.includes("Screen")&&(s=this.isNull(r[e])?null:r[e],r.screens[e.split("Screen")[0]]=s,delete r[e])}),0===Object.keys(r.screens).length&&delete r.screens}isNull(e){return["null","-1","undefined",""].includes(e.toLowerCase())}}(exports.default=UpdateScreenScheme).description="Updates a screen scheme.",UpdateScreenScheme.flags=Object.assign({screenSchemeId:core_1.Flags.string({char:"i",description:"The ID of the screen scheme.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the screen. The name must be unique."}),description:core_1.Flags.string({description:"The description of the screen."}),defaultScreen:core_1.Flags.string({description:"The ID of the default screen. To remove the screen association, pass a null."}),editScreen:core_1.Flags.string({description:"The ID of the edit screen. To remove the screen association, pass a null."}),viewScreen:core_1.Flags.string({description:"The ID of the view screen. To remove the screen association, pass a null."}),createScreen:core_1.Flags.string({description:"The ID of the create screen. To remove the screen association, pass a null."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateScreenScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var r=(await this.parse(UpdateScreenScheme)).flags,r=this.removeFlagsFromBase(r),c=r.screenSchemeId,r=tslib_1.__rest(r,["screenSchemeId"]);this.modifyFlags(r),await s.screenSchemeManager.updateScreenScheme(c,r)}modifyFlags(r){r.screens={},Object.keys(r).forEach(e=>{var s;e.includes("Screen")&&(s=this.isNull(r[e])?null:r[e],r.screens[e.split("Screen")[0]]=s,delete r[e])}),0===Object.keys(r.screens).length&&delete r.screens}isNull(e){return["null","-1","undefined",""].includes(e.toLowerCase())}}(exports.default=UpdateScreenScheme).description="Updates a screen scheme.",UpdateScreenScheme.flags=Object.assign({screenSchemeId:core_1.Flags.string({char:"i",description:"The ID of the screen scheme.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the screen. The name must be unique."}),description:core_1.Flags.string({description:"The description of the screen."}),defaultScreen:core_1.Flags.string({description:"The ID of the default screen. To remove the screen association, pass a null."}),editScreen:core_1.Flags.string({description:"The ID of the edit screen. To remove the screen association, pass a null."}),viewScreen:core_1.Flags.string({description:"The ID of the view screen. To remove the screen association, pass a null."}),createScreen:core_1.Flags.string({description:"The ID of the create screen. To remove the screen association, pass a null."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class CreateScreenTab extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(CreateScreenTab))["flags"],e=this.getJira(e,a),r=this.removeFlagsFromBase(a),t=r["id"],r=tslib_1.__rest(r,["id"]),e=await e.screenTabManager.createTab(t,r);this.display(a,e)}}(exports.default=CreateScreenTab).description="Creates a screen tab.",CreateScreenTab.flags=Object.assign({id:core_1.Flags.integer({char:"i",description:"The ID of screen."}),name:core_1.Flags.string({char:"n",description:"The name of the screen. The name must be unique.",required:!0}),description:core_1.Flags.string({description:"The description of the screen"})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class CreateScreenTab extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(CreateScreenTab)).flags,e=this.getJira(e,a),r=this.removeFlagsFromBase(a),t=r.id,r=tslib_1.__rest(r,["id"]),e=await e.screenTabManager.createTab(t,r);this.display(a,e)}}(exports.default=CreateScreenTab).description="Creates a screen tab.",CreateScreenTab.flags=Object.assign({id:core_1.Flags.integer({char:"i",description:"The ID of screen."}),name:core_1.Flags.string({char:"n",description:"The name of the screen. The name must be unique.",required:!0}),description:core_1.Flags.string({description:"The description of the screen"})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteScreenTab extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(DeleteScreenTab))["flags"];await this.getJira(e,a).screenTabManager.deleteTab(a.screenId,a.tabId)}}(exports.default=DeleteScreenTab).description="Deletes a screen tab.",DeleteScreenTab.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.string({description:"The ID of screen tab.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteScreenTab extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(DeleteScreenTab)).flags;await this.getJira(e,a).screenTabManager.deleteTab(a.screenId,a.tabId)}}(exports.default=DeleteScreenTab).description="Deletes a screen tab.",DeleteScreenTab.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.string({description:"The ID of screen tab.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetScreenTabs extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(GetScreenTabs))["flags"],e=this.getJira(e,s),t=this.removeFlagsFromBase(s),a=t["id"],t=tslib_1.__rest(t,["id"]),e=await e.screenTabManager.getAllTabs(a,t);this.display(s,e)}}(exports.default=GetScreenTabs).description="Gets all screen tabs.",GetScreenTabs.flags=Object.assign({id:core_1.Flags.integer({char:"i",description:"The ID of screen.",required:!0}),project:core_1.Flags.string({char:"p",description:"The key of the project."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetScreenTabs extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetScreenTabs)).flags,e=this.getJira(e,t),s=this.removeFlagsFromBase(t),a=s.id,s=tslib_1.__rest(s,["id"]),e=await e.screenTabManager.getAllTabs(a,s);this.display(t,e)}}(exports.default=GetScreenTabs).description="Gets all screen tabs.",GetScreenTabs.flags=Object.assign({id:core_1.Flags.integer({char:"i",description:"The ID of screen.",required:!0}),project:core_1.Flags.string({char:"p",description:"The key of the project."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class MoveScreenTab extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(MoveScreenTab))["flags"];await this.getJira(e,a).screenTabManager.moveTab(a.screenId,a.tabId,a.pos)}}(exports.default=MoveScreenTab).description="Moves a screen tab.",MoveScreenTab.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.string({description:"The ID of screen tab.",required:!0}),pos:core_1.Flags.integer({char:"p",description:"The position of tab. The base index is 0.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class MoveScreenTab extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(MoveScreenTab)).flags;await this.getJira(e,a).screenTabManager.moveTab(a.screenId,a.tabId,a.pos)}}(exports.default=MoveScreenTab).description="Moves a screen tab.",MoveScreenTab.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.string({description:"The ID of screen tab.",required:!0}),pos:core_1.Flags.integer({char:"p",description:"The position of tab. The base index is 0.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateScreenTab extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(UpdateScreenTab))["flags"],e=await this.getJira(e,a).screenTabManager.updateTab(a.screenId,a.tabId,{name:a.name});this.display(a,e)}}(exports.default=UpdateScreenTab).description="Updates a screen tab.",UpdateScreenTab.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.string({description:"The ID of screen tab.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the screen. The name must be unique.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateScreenTab extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(UpdateScreenTab)).flags,e=await this.getJira(e,a).screenTabManager.updateTab(a.screenId,a.tabId,{name:a.name});this.display(a,e)}}(exports.default=UpdateScreenTab).description="Updates a screen tab.",UpdateScreenTab.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.string({description:"The ID of screen tab.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the screen. The name must be unique.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class AddTabField extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(AddTabField))["flags"],e=await this.getJira(e,a).screenTabFieldManager.addTabField(a.screenId,a.tabId,a.fieldId);this.display(a,e)}}(exports.default=AddTabField).description="Adds a field to a screen tab.",AddTabField.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.string({description:"The ID of screen tab.",required:!0}),fieldId:core_1.Flags.string({char:"i",description:"The ID of the field to add.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class AddTabField extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(AddTabField)).flags,e=await this.getJira(e,a).screenTabFieldManager.addTabField(a.screenId,a.tabId,a.fieldId);this.display(a,e)}}(exports.default=AddTabField).description="Adds a field to a screen tab.",AddTabField.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.string({description:"The ID of screen tab.",required:!0}),fieldId:core_1.Flags.string({char:"i",description:"The ID of the field to add.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetScreenTabFields extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(GetScreenTabFields))["flags"],e=this.getJira(e,s),t=this.removeFlagsFromBase(s),{screenId:r,tabId:a}=t,t=tslib_1.__rest(t,["screenId","tabId"]),e=await e.screenTabFieldManager.getAllTabFields(r,a,t);this.display(s,e)}}(exports.default=GetScreenTabFields).description="Gets all fields for a screen tab.",GetScreenTabFields.flags=Object.assign({screenId:core_1.Flags.integer({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.integer({description:"The ID of screen tab.",required:!0}),project:core_1.Flags.string({description:"The key of the project."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetScreenTabFields extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetScreenTabFields)).flags,e=this.getJira(e,t),r=this.removeFlagsFromBase(t),{screenId:s,tabId:a}=r,r=tslib_1.__rest(r,["screenId","tabId"]),e=await e.screenTabFieldManager.getAllTabFields(s,a,r);this.display(t,e)}}(exports.default=GetScreenTabFields).description="Gets all fields for a screen tab.",GetScreenTabFields.flags=Object.assign({screenId:core_1.Flags.integer({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.integer({description:"The ID of screen tab.",required:!0}),project:core_1.Flags.string({description:"The key of the project."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class MoveScreenTab extends atlascli_common_1.CommandWithSite{async runWithSite(e){var r=(await this.parse(MoveScreenTab))["flags"],e=this.getJira(e,r),r=this.removeFlagsFromBase(r),{screenId:i,tabId:s,fieldId:t}=r,r=tslib_1.__rest(r,["screenId","tabId","fieldId"]);await e.screenTabFieldManager.moveTabField(i,s,t,r)}}(exports.default=MoveScreenTab).description="Moves a screen tab field.",MoveScreenTab.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.string({description:"The ID of screen tab.",required:!0}),fieldId:core_1.Flags.string({description:"The ID of the field.",required:!0}),position:core_1.Flags.string({char:"p",description:"The position of tab. The base index is 0.",options:["Earlier","Later","First","Last"]}),after:core_1.Flags.string({char:"a",description:"The ID of the screen tab field after which to place the moved screen tab field."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class MoveScreenTab extends atlascli_common_1.CommandWithSite{async runWithSite(e){var r=(await this.parse(MoveScreenTab)).flags,e=this.getJira(e,r),r=this.removeFlagsFromBase(r),{screenId:i,tabId:a,fieldId:t}=r,r=tslib_1.__rest(r,["screenId","tabId","fieldId"]);await e.screenTabFieldManager.moveTabField(i,a,t,r)}}(exports.default=MoveScreenTab).description="Moves a screen tab field.",MoveScreenTab.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.string({description:"The ID of screen tab.",required:!0}),fieldId:core_1.Flags.string({description:"The ID of the field.",required:!0}),position:core_1.Flags.string({char:"p",description:"The position of tab. The base index is 0.",options:["Earlier","Later","First","Last"]}),after:core_1.Flags.string({char:"a",description:"The ID of the screen tab field after which to place the moved screen tab field."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class RemoveTabField extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(RemoveTabField))["flags"];await this.getJira(e,a).screenTabFieldManager.removeTabField(a.screenId,a.tabId,a.fieldId)}}(exports.default=RemoveTabField).description="Removes a field from a screen tab.",RemoveTabField.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.string({description:"The ID of screen tab.",required:!0}),fieldId:core_1.Flags.string({description:"The ID of the field to add.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class RemoveTabField extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(RemoveTabField)).flags;await this.getJira(e,a).screenTabFieldManager.removeTabField(a.screenId,a.tabId,a.fieldId)}}(exports.default=RemoveTabField).description="Removes a field from a screen tab.",RemoveTabField.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.string({description:"The ID of screen tab.",required:!0}),fieldId:core_1.Flags.string({description:"The ID of the field to add.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class Get extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(Get))["flags"],e=await this.getJira(e,t).serverInfoManager.getServerInfo();this.display(t,e)}}(exports.default=Get).description="Returns general information about the current Jira.",Get.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common");class Get extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(Get)).flags,e=await this.getJira(e,t).serverInfoManager.getServerInfo();this.display(t,e)}}(exports.default=Get).description="Returns general information about the current Jira.",Get.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),base_command_with_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-server-site"));class JMX extends base_command_with_server_site_1.default{async runWithServerSite(e,t){var r=(await this.parse(JMX))["flags"];try{var a=await t.serverInfoManager.getJMXInfo();this.display(r,a)}catch(e){-1<e.toString().indexOf("Error: Not Found")&&console.error('"ATLAS CLI for Jira" add-on is not installed or JMX is not enabled on this server.')}}}(exports.default=JMX).description="Returns JMX information from Jira VM.",JMX.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),base_command_with_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-server-site"));class JMX extends base_command_with_server_site_1.default{async runWithServerSite(e,t){var r=(await this.parse(JMX)).flags;try{var a=await t.serverInfoManager.getJMXInfo();this.display(r,a)}catch(e){-1<e.toString().indexOf("Error: Not Found")&&console.error('"ATLAS CLI for Jira" add-on is not installed or JMX is not enabled on this server.')}}}(exports.default=JMX).description="Returns JMX information from Jira VM.",JMX.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class CreateStatus extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var s=(await this.parse(CreateStatus))["flags"],a=await(0,project_util_1.getProject)(t,s.project),a=(s.projectId=a.projectId,delete s.project,await t.statusManager.createStatus(this.preapareStatusCreationBody(s)));0<a.length&&this.display(s,a[0])}preapareStatusCreationBody(e){var t={};return t.statuses=[{name:e.name,description:e.description,statusCategory:e.statusCategory}],t.scope={type:e.scope},e.project&&(t.scope.project={id:e.project}),t}}exports.default=CreateStatus,(_a=CreateStatus).description="Creates status.",CreateStatus.flags=Object.assign({name:core_1.Flags.string({char:"n",description:"The name of the status. Must be unique.",required:!0}),statusCategory:core_1.Flags.string({char:"c",description:"Category of the status to filter by.",options:["TODO","IN_PROGRESS","DONE"],required:!0}),description:core_1.Flags.string({char:"d",description:"The description of the status.",required:!0}),scope:core_1.Flags.string({description:"The scope of the status.",options:["GLOBAL","PROJECT"],required:!0,relationships:[{type:"all",flags:[{name:"project",when:async e=>"PROJECT"===e.scope}]}]}),project:core_1.Flags.string({char:"p",description:"Project Id or key. If the scope type is PROJECT, you must provide the project Id."})},atlascli_common_1.BaseCommandWithCloudSite.flags);
1
+ var _a;Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class CreateStatus extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var a=(await this.parse(CreateStatus)).flags,r=await(0,project_util_1.getProject)(t,a.project),r=(a.projectId=r.projectId,delete a.project,await t.statusManager.createStatus(this.preapareStatusCreationBody(a)));0<r.length&&this.display(a,r[0])}preapareStatusCreationBody(e){var t={};return t.statuses=[{name:e.name,description:e.description,statusCategory:e.statusCategory}],t.scope={type:e.scope},e.project&&(t.scope.project={id:e.project}),t}}exports.default=CreateStatus,(_a=CreateStatus).description="Creates status.",CreateStatus.flags=Object.assign({name:core_1.Flags.string({char:"n",description:"The name of the status. Must be unique.",required:!0}),statusCategory:core_1.Flags.string({char:"c",description:"Category of the status to filter by.",options:["TODO","IN_PROGRESS","DONE"],required:!0}),description:core_1.Flags.string({char:"d",description:"The description of the status.",required:!0}),scope:core_1.Flags.string({description:"The scope of the status.",options:["GLOBAL","PROJECT"],required:!0,relationships:[{type:"all",flags:[{name:"project",when:async e=>"PROJECT"===e.scope}]}]}),project:core_1.Flags.string({char:"p",description:"Project Id or key. If the scope type is PROJECT, you must provide the project Id."})},atlascli_common_1.BaseCommandWithCloudSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),get_1=require("./get");class DeleteStasues extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var{flags:s,argv:a}=await this.parse(DeleteStasues),s=(0,get_1.getIdsFromFlagsAndArguments)(s,a);50<s.length&&this.error("Please provide less status ID.(Max: 50)"),await t.statusManager.deleteStatus({id:s})}}(exports.default=DeleteStasues).strict=!1,DeleteStasues.description="Deletes statuses.",DeleteStasues.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"Status ID.",multiple:!0})},atlascli_common_1.BaseCommandWithCloudSite.flags),DeleteStasues.args=[{name:"statusId",description:"Status ID."}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),get_1=require("./get");class DeleteStasues extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var{flags:s,argv:a}=await this.parse(DeleteStasues),s=(0,get_1.getIdsFromFlagsAndArguments)(s,a);50<s.length&&this.error("Please provide less status ID.(Max: 50)"),await t.statusManager.deleteStatus({id:s})}}(exports.default=DeleteStasues).strict=!1,DeleteStasues.description="Deletes statuses.",DeleteStasues.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"Status ID.",multiple:!0})},atlascli_common_1.BaseCommandWithCloudSite.flags),DeleteStasues.args=[{name:"statusId",description:"Status ID."}];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetUsages extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(s,e){var t=(await this.parse(GetUsages))["flags"],e=(await e.statusManager.getStatusesBulk({id:[t.id],expand:"usages"}))[0];e||this.error(`There is no status with ${t.id} Id.`),this.display(t,this.responseMapper(e.usages))}responseMapper(s){const e=[];return s.forEach(s=>{e.push({projectId:s.project.id,issueTypes:null==(s=s.issueTypes)?void 0:s.join(",")})}),e}}(exports.default=GetUsages).description="Gets usages of a status.",GetUsages.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"Status ID.",required:!0})},atlascli_common_1.BaseCommandWithCloudSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetUsages extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var a=(await this.parse(GetUsages)).flags,s=(await s.statusManager.getStatusesBulk({id:[a.id],expand:"usages"}))[0];s||this.error(`There is no status with ${a.id} Id.`),this.display(a,this.responseMapper(s.usages))}responseMapper(e){let s=[];return e.forEach(e=>{s.push({projectId:e.project.id,issueTypes:null==(e=e.issueTypes)?void 0:e.join(",")})}),s}}(exports.default=GetUsages).description="Gets usages of a status.",GetUsages.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"Status ID.",required:!0})},atlascli_common_1.BaseCommandWithCloudSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getIdsFromFlagsAndArguments=void 0;const core_1=require("@oclif/core"),status_command_1=require("./status-command");function getIdsFromFlagsAndArguments(s,t){var e=[];return e.push(...s.id||[]),e.push(...Array.isArray(t)?t:"string"==typeof t?[t]:[]),e}exports.getIdsFromFlagsAndArguments=getIdsFromFlagsAndArguments;class GetAllStatuses extends status_command_1.StatusCommand{async runWithCloudSite(s,t){const{flags:a,argv:e}=await this.parse(GetAllStatuses),r=getIdsFromFlagsAndArguments(a,e);var n=r.sort().map(s=>t.statusManager.getStatusesBulk({id:[s],expand:a.expand}));await Promise.all(n).then(s=>{var t=s.map(s=>s[0]);if(s.every(s=>0<s.length))this.display(a,this.cloudResponseMapper(t));else{const e=t.map(s=>null==s?void 0:s.id);s=r.filter(s=>!e.includes(s));this.error("These statuses could not found: "+s.join(","))}})}async runWithServerSite(s,t){const{flags:e,argv:a}=await this.parse(GetAllStatuses);var r=getIdsFromFlagsAndArguments(e,a).sort().map(s=>t.statusManager.getStatus(s));await Promise.all(r).then(s=>{0<s.length&&this.display(e,this.serverResponseMapper(s),(s,t)=>{t.inconUrl=(null==(t=s.iconInfo)?void 0:t.url)||""})})}}(exports.default=GetAllStatuses).strict=!1,GetAllStatuses.description="Gets the statuses specified by one or more status IDs.",GetAllStatuses.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"Status ID.",multiple:!0})},status_command_1.StatusCommand.flags),GetAllStatuses.args=[{name:"statusId",description:"Status ID."}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.getIdsFromFlagsAndArguments=void 0;let core_1=require("@oclif/core"),status_command_1=require("./status-command");function getIdsFromFlagsAndArguments(t,s){var e=[];return e.push(...t.id||[]),e.push(...Array.isArray(s)?s:"string"==typeof s?[s]:[]),e}exports.getIdsFromFlagsAndArguments=getIdsFromFlagsAndArguments;class GetAllStatuses extends status_command_1.StatusCommand{async runWithCloudSite(t,s){let{flags:a,argv:e}=await this.parse(GetAllStatuses),r=getIdsFromFlagsAndArguments(a,e);var l=r.sort().map(t=>s.statusManager.getStatusesBulk({id:[t],expand:a.expand}));await Promise.all(l).then(t=>{var e=t.map(t=>t[0]);if(t.every(t=>0<t.length))this.display(a,this.cloudResponseMapper(e));else{let s=e.map(t=>null==t?void 0:t.id);t=r.filter(t=>!s.includes(t));this.error("These statuses could not found: "+t.join(","))}})}async runWithServerSite(t,s){let{flags:e,argv:a}=await this.parse(GetAllStatuses);var r=getIdsFromFlagsAndArguments(e,a).sort().map(t=>s.statusManager.getStatus(t));await Promise.all(r).then(t=>{0<t.length&&this.display(e,this.serverResponseMapper(t),(t,s)=>{s.inconUrl=(null==(s=t.iconInfo)?void 0:s.url)||""})})}}(exports.default=GetAllStatuses).strict=!1,GetAllStatuses.description="Gets the statuses specified by one or more status IDs.",GetAllStatuses.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"Status ID.",multiple:!0})},status_command_1.StatusCommand.flags),GetAllStatuses.args=[{name:"statusId",description:"Status ID."}];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),status_command_1=require("./status-command"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class SearchStatuses extends status_command_1.StatusCommand{async runWithCloudSite(e,t){var s=(await this.parse(SearchStatuses))["flags"],a=(s.issueTypeId&&this.error("issueTypeId flag is only for Server."),await(0,project_util_1.getProject)(t,s.project)),a=(s.projectId=a.projectId,delete s.project,s.searchString=s.query,delete s.query,this.removeFlagsFromBase(s)),r=a["all"],a=tslib_1.__rest(a,["all"]),i=await t.statusManager.searchStatusesPaginated(a);r&&(i.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(i,a,t.statusManager.searchStatusesPaginated.bind(t.statusManager))),this.display(s,this.cloudResponseMapper(i.values))}async runWithServerSite(e,t){var s=(await this.parse(SearchStatuses))["flags"],a=await(0,project_util_1.getProject)(t,s.project),a=(s.projectIds=a.projectId,delete s.project,s.issueTypeIds=s.issueTypeId,delete s.projectId,delete s.issueTypeId,this.removeFlagsFromBase(s)),r=a["all"],a=tslib_1.__rest(a,["all"]),i=await t.statusManager.searchStatusesPaginated(a);r&&(i.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(i,a,t.statusManager.searchStatusesPaginated.bind(t.statusManager))),this.display(s,this.serverResponseMapper(i.values),(e,t)=>{t.inconUrl=(null==(t=e.iconInfo)?void 0:t.url)||""})}}(exports.default=SearchStatuses).description="Searches statuses.",SearchStatuses.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{query:core_1.Flags.string({char:"q",description:"The string that status names will be matched with."}),project:core_1.Flags.string({char:"p",description:"The project Id or key the status is part of or null for global statuses.",multiple:!0}),issueTypeId:core_1.Flags.string({char:"i",description:"The issue type Id to filter statuses. (Only server)",multiple:!0}),statusCategory:core_1.Flags.string({char:"c",description:"Category of the status to filter by.",options:["TODO","IN_PROGRESS","DONE"]}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})}),status_command_1.StatusCommand.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"),status_command_1=require("./status-command"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class SearchStatuses extends status_command_1.StatusCommand{async runWithCloudSite(e,t){var s=(await this.parse(SearchStatuses)).flags,a=(s.issueTypeId&&this.error("issueTypeId flag is only for Server."),await(0,project_util_1.getProject)(t,s.project)),a=(s.projectId=a.projectId,delete s.project,s.searchString=s.query,delete s.query,this.removeFlagsFromBase(s)),r=a.all,a=tslib_1.__rest(a,["all"]),i=await t.statusManager.searchStatusesPaginated(a);r&&(i.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(i,a,t.statusManager.searchStatusesPaginated.bind(t.statusManager))),this.display(s,this.cloudResponseMapper(i.values))}async runWithServerSite(e,t){var s=(await this.parse(SearchStatuses)).flags,a=await(0,project_util_1.getProject)(t,s.project),a=(s.projectIds=a.projectId,delete s.project,s.issueTypeIds=s.issueTypeId,delete s.projectId,delete s.issueTypeId,this.removeFlagsFromBase(s)),r=a.all,a=tslib_1.__rest(a,["all"]),i=await t.statusManager.searchStatusesPaginated(a);r&&(i.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(i,a,t.statusManager.searchStatusesPaginated.bind(t.statusManager))),this.display(s,this.serverResponseMapper(i.values),(e,t)=>{t.inconUrl=(null==(t=e.iconInfo)?void 0:t.url)||""})}}(exports.default=SearchStatuses).description="Searches statuses.",SearchStatuses.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{query:core_1.Flags.string({char:"q",description:"The string that status names will be matched with."}),project:core_1.Flags.string({char:"p",description:"The project Id or key the status is part of or null for global statuses.",multiple:!0}),issueTypeId:core_1.Flags.string({char:"i",description:"The issue type Id to filter statuses. (Only server)",multiple:!0}),statusCategory:core_1.Flags.string({char:"c",description:"Category of the status to filter by.",options:["TODO","IN_PROGRESS","DONE"]}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})}),status_command_1.StatusCommand.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.StatusCommand=void 0;const atlascli_common_1=require("@thestarware/atlascli-common");class StatusCommand extends atlascli_common_1.BaseCommandWithCloudOrServerSite{isProjectScopeExists(e){return 0<e.filter(e=>Object.keys(e.scope).includes("project")).length}cloudResponseMapper(e){const o=this.isProjectScopeExists(e);return e.map(e=>{var t;return e.scopeType=(null==e?void 0:e.scope.type)||"",o&&(e.projectId=(null==(t=null==e?void 0:e.scope.project)?void 0:t.id)||""),e})}serverResponseMapper(e){return e.map(e=>(e.statusCategoryKey=null==e?void 0:e.statusCategory.key,e.statusCategory=null==e?void 0:e.statusCategory.name,e.iconInfo={url:(null==e?void 0:e.iconUrl)||""},delete e.iconUrl,e))}}exports.StatusCommand=StatusCommand;
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.StatusCommand=void 0;let atlascli_common_1=require("@thestarware/atlascli-common");class StatusCommand extends atlascli_common_1.BaseCommandWithCloudOrServerSite{isProjectScopeExists(e){return 0<e.filter(e=>Object.keys(e.scope).includes("project")).length}cloudResponseMapper(e){let o=this.isProjectScopeExists(e);return e.map(e=>{var t;return e.scopeType=(null==e?void 0:e.scope.type)||"",o&&(e.projectId=(null==(t=null==e?void 0:e.scope.project)?void 0:t.id)||""),e})}serverResponseMapper(e){return e.map(e=>(e.statusCategoryKey=null==e?void 0:e.statusCategory.key,e.statusCategory=null==e?void 0:e.statusCategory.name,e.iconInfo={url:(null==e?void 0:e.iconUrl)||""},delete e.iconUrl,e))}}exports.StatusCommand=StatusCommand;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateStatus extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(t,e){var s=(await this.parse(UpdateStatus))["flags"],a=(await e.statusManager.getStatusesBulk({id:[s.id]}))[0];a||this.error(`There is no status with ${s.id} Id.`),await e.statusManager.updateStatus(this.prepareStatusUpdateBody(a,s))}prepareStatusUpdateBody(t,e){return delete t.scope,delete t.usages,{statuses:[Object.assign(Object.assign({},t),this.removeFlagsFromBase(e))]}}}(exports.default=UpdateStatus).description="Updates a status.",UpdateStatus.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"Status Id.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the status. Must be unique."}),statusCategory:core_1.Flags.string({char:"c",description:"Category of the status to filter by.",options:["TODO","IN_PROGRESS","DONE"]}),description:core_1.Flags.string({char:"d",description:"The description of the status."})},atlascli_common_1.BaseCommandWithCloudSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateStatus extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(t,e){var s=(await this.parse(UpdateStatus)).flags,a=(await e.statusManager.getStatusesBulk({id:[s.id]}))[0];a||this.error(`There is no status with ${s.id} Id.`),await e.statusManager.updateStatus(this.prepareStatusUpdateBody(a,s))}prepareStatusUpdateBody(t,e){return delete t.scope,delete t.usages,{statuses:[Object.assign(Object.assign({},t),this.removeFlagsFromBase(e))]}}}(exports.default=UpdateStatus).description="Updates a status.",UpdateStatus.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"Status Id.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the status. Must be unique."}),statusCategory:core_1.Flags.string({char:"c",description:"Category of the status to filter by.",options:["TODO","IN_PROGRESS","DONE"]}),description:core_1.Flags.string({char:"d",description:"The description of the status."})},atlascli_common_1.BaseCommandWithCloudSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class 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
+ 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 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetTask extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(s,t){var a=[];const{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(s=>t.taskManager.getTask(s));await Promise.all(a).then(s=>{0<s.length&&this.display(e,s)})}}(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
+ 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 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const 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
+ 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 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const 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
+ 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 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const 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
+ 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 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const 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
+ 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 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const 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
+ 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 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const 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=(await this.parse(AddUserToApplication))["flags"],r=[];if(!i.applicationKey)return this.error("applicationKey is required"),1;for(const s of i.applicationKey)r.push(a.userManager.addUserToApplication(i.user,s));await Promise.all(r)}}(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
+ 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);