@thestarware/atlascli-jira 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (481) hide show
  1. package/lib/commands/announcement-banner/get.js +1 -1
  2. package/lib/commands/announcement-banner/update.js +1 -1
  3. package/lib/commands/application-role/get-all.js +2 -2
  4. package/lib/commands/application-role/get.js +1 -1
  5. package/lib/commands/application-role/update.js +1 -1
  6. package/lib/commands/attachment/add.js +1 -1
  7. package/lib/commands/attachment/delete.js +1 -1
  8. package/lib/commands/attachment/get-content.js +1 -1
  9. package/lib/commands/attachment/get-jira-settings.js +1 -1
  10. package/lib/commands/attachment/get-metadata-for-zip.js +1 -1
  11. package/lib/commands/attachment/get-metadata.js +1 -1
  12. package/lib/commands/attachment/get-thumbnails.js +1 -1
  13. package/lib/commands/audit-record/get-associated.js +1 -1
  14. package/lib/commands/audit-record/get-changed.js +1 -1
  15. package/lib/commands/avatar/delete-universal-avatar.js +1 -1
  16. package/lib/commands/avatar/delete-user-avatar.js +1 -1
  17. package/lib/commands/avatar/get-all-user-avatar.js +1 -1
  18. package/lib/commands/avatar/get-image-by-id.js +1 -1
  19. package/lib/commands/avatar/get-image-by-owner.js +1 -1
  20. package/lib/commands/avatar/get-image-by-type.js +1 -1
  21. package/lib/commands/avatar/get-system-avatars.js +1 -1
  22. package/lib/commands/avatar/get-universal-avatars.js +1 -1
  23. package/lib/commands/avatar/set-user-avatar.js +1 -1
  24. package/lib/commands/avatar/upload-universal-avatar.js +1 -1
  25. package/lib/commands/avatar/upload-user-avatar.js +1 -1
  26. package/lib/commands/comment/add.js +1 -1
  27. package/lib/commands/comment/delete.js +1 -1
  28. package/lib/commands/comment/get-for-issue.js +1 -1
  29. package/lib/commands/comment/get-with-ids.js +1 -1
  30. package/lib/commands/comment/get.js +1 -1
  31. package/lib/commands/comment/update.js +1 -1
  32. package/lib/commands/comment-property/delete-property.js +1 -1
  33. package/lib/commands/comment-property/get-property-keys.js +1 -1
  34. package/lib/commands/comment-property/get-property.js +1 -1
  35. package/lib/commands/comment-property/set-property.js +1 -1
  36. package/lib/commands/config/add.js +1 -1
  37. package/lib/commands/config/delete.js +1 -1
  38. package/lib/commands/config/get-default.js +1 -1
  39. package/lib/commands/config/list.js +1 -1
  40. package/lib/commands/config/set-default.js +1 -1
  41. package/lib/commands/dashboard/add-edit-permission.js +1 -1
  42. package/lib/commands/dashboard/add-share-permission.js +1 -1
  43. package/lib/commands/dashboard/copy.js +1 -1
  44. package/lib/commands/dashboard/create.js +1 -1
  45. package/lib/commands/dashboard/delete.js +1 -1
  46. package/lib/commands/dashboard/get-all.js +1 -1
  47. package/lib/commands/dashboard/get-permissions.js +1 -1
  48. package/lib/commands/dashboard/get.js +1 -1
  49. package/lib/commands/dashboard/search.js +1 -1
  50. package/lib/commands/dashboard/update.js +1 -1
  51. package/lib/commands/dashboard-gadget/add.js +1 -1
  52. package/lib/commands/dashboard-gadget/get-availables.js +1 -1
  53. package/lib/commands/dashboard-gadget/remove.js +1 -1
  54. package/lib/commands/dashboard-gadget/search.js +1 -1
  55. package/lib/commands/dashboard-gadget/update.js +1 -1
  56. package/lib/commands/dashboard-item-property/delete.js +1 -1
  57. package/lib/commands/dashboard-item-property/get-keys.js +1 -1
  58. package/lib/commands/dashboard-item-property/get.js +1 -1
  59. package/lib/commands/dashboard-item-property/set.js +1 -1
  60. package/lib/commands/filter/add-favourite.js +1 -1
  61. package/lib/commands/filter/change-owner.js +1 -1
  62. package/lib/commands/filter/create.js +1 -1
  63. package/lib/commands/filter/delete.js +1 -1
  64. package/lib/commands/filter/get-columns.js +1 -1
  65. package/lib/commands/filter/get-details.js +1 -1
  66. package/lib/commands/filter/get-favourites.js +1 -1
  67. package/lib/commands/filter/get-my.js +1 -1
  68. package/lib/commands/filter/get.js +1 -1
  69. package/lib/commands/filter/remove-favourite.js +1 -1
  70. package/lib/commands/filter/reset-columns.js +1 -1
  71. package/lib/commands/filter/search.js +1 -1
  72. package/lib/commands/filter/set-columns.js +1 -1
  73. package/lib/commands/filter/update.js +1 -1
  74. package/lib/commands/filter-sharing/add-edit-permission.js +1 -1
  75. package/lib/commands/filter-sharing/add-share-permission.js +1 -1
  76. package/lib/commands/filter-sharing/delete-permission.js +1 -1
  77. package/lib/commands/filter-sharing/get-default-scope.js +1 -1
  78. package/lib/commands/filter-sharing/get-edit-permissions.js +1 -1
  79. package/lib/commands/filter-sharing/get-permission.js +1 -1
  80. package/lib/commands/filter-sharing/get-share-permissions.js +1 -1
  81. package/lib/commands/filter-sharing/set-default-scope.js +1 -1
  82. package/lib/commands/group/add-user.js +1 -1
  83. package/lib/commands/group/create.js +1 -1
  84. package/lib/commands/group/find-groups.js +1 -1
  85. package/lib/commands/group/get-all.js +1 -1
  86. package/lib/commands/group/get-users.js +1 -1
  87. package/lib/commands/group/get.js +1 -1
  88. package/lib/commands/group/remove-user.js +1 -1
  89. package/lib/commands/group/remove.js +1 -1
  90. package/lib/commands/group-and-user-picker/find-groups.js +1 -1
  91. package/lib/commands/group-and-user-picker/find-users.js +1 -1
  92. package/lib/commands/issue/archive.js +1 -1
  93. package/lib/commands/issue/assign.js +1 -1
  94. package/lib/commands/issue/create.js +1 -1
  95. package/lib/commands/issue/delete.js +1 -1
  96. package/lib/commands/issue/edit.js +1 -1
  97. package/lib/commands/issue/get-changelogs.js +1 -1
  98. package/lib/commands/issue/get-create-metadata.js +1 -1
  99. package/lib/commands/issue/get-edit-metadata.js +1 -1
  100. package/lib/commands/issue/get-events.js +1 -1
  101. package/lib/commands/issue/get-transitions.js +1 -1
  102. package/lib/commands/issue/get.js +1 -1
  103. package/lib/commands/issue/restore.js +1 -1
  104. package/lib/commands/issue/send-notifications.js +1 -1
  105. package/lib/commands/issue/transition.js +1 -1
  106. package/lib/commands/issue-field/create.js +1 -1
  107. package/lib/commands/issue-field/delete.js +1 -1
  108. package/lib/commands/issue-field/get-all.js +1 -1
  109. package/lib/commands/issue-field/move-trash.js +1 -1
  110. package/lib/commands/issue-field/restore-trash.js +1 -1
  111. package/lib/commands/issue-field/search-trash.js +1 -1
  112. package/lib/commands/issue-field/search.js +1 -1
  113. package/lib/commands/issue-field/update.js +1 -1
  114. package/lib/commands/issue-field-configuration/assign-issue-type.js +1 -1
  115. package/lib/commands/issue-field-configuration/assign-scheme-to-project.js +1 -1
  116. package/lib/commands/issue-field-configuration/create-scheme.js +1 -1
  117. package/lib/commands/issue-field-configuration/create.js +1 -1
  118. package/lib/commands/issue-field-configuration/delete-scheme.js +1 -1
  119. package/lib/commands/issue-field-configuration/delete.js +1 -1
  120. package/lib/commands/issue-field-configuration/get-all-issue-type-items.js +1 -1
  121. package/lib/commands/issue-field-configuration/get-all-schemes.js +1 -1
  122. package/lib/commands/issue-field-configuration/get-all.js +1 -1
  123. package/lib/commands/issue-field-configuration/get-items.js +1 -1
  124. package/lib/commands/issue-field-configuration/get-project-schemes.js +1 -1
  125. package/lib/commands/issue-field-configuration/remove-issue-types.js +1 -1
  126. package/lib/commands/issue-field-configuration/update-items.js +1 -1
  127. package/lib/commands/issue-field-configuration/update-scheme.js +1 -1
  128. package/lib/commands/issue-field-configuration/update.js +1 -1
  129. package/lib/commands/issue-field-context/add-issue-types.js +1 -1
  130. package/lib/commands/issue-field-context/assign-to-projects.js +1 -1
  131. package/lib/commands/issue-field-context/create.js +1 -1
  132. package/lib/commands/issue-field-context/delete.js +1 -1
  133. package/lib/commands/issue-field-context/get-all.js +1 -1
  134. package/lib/commands/issue-field-context/get-contexts-for-projects-and-issue-types.js +1 -1
  135. package/lib/commands/issue-field-context/get-default-values.js +1 -1
  136. package/lib/commands/issue-field-context/get-issue-types.js +1 -1
  137. package/lib/commands/issue-field-context/get-project-mappings.js +1 -1
  138. package/lib/commands/issue-field-context/remove-from-projects.js +1 -1
  139. package/lib/commands/issue-field-context/remove-issue-types.js +1 -1
  140. package/lib/commands/issue-field-context/set-default-values.js +1 -1
  141. package/lib/commands/issue-field-context/update.js +1 -1
  142. package/lib/commands/issue-field-option/create-for-context.js +1 -1
  143. package/lib/commands/issue-field-option/delete-for-context.js +1 -1
  144. package/lib/commands/issue-field-option/get-for-context.js +1 -1
  145. package/lib/commands/issue-field-option/get.js +1 -1
  146. package/lib/commands/issue-field-option/reorder-for-context.js +1 -1
  147. package/lib/commands/issue-field-option/update-for-context.js +1 -1
  148. package/lib/commands/issue-link/create.js +1 -1
  149. package/lib/commands/issue-link/delete.js +1 -1
  150. package/lib/commands/issue-link/get.js +1 -1
  151. package/lib/commands/issue-link-type/create.js +1 -1
  152. package/lib/commands/issue-link-type/delete.js +1 -1
  153. package/lib/commands/issue-link-type/get-all.js +1 -1
  154. package/lib/commands/issue-link-type/get.js +1 -1
  155. package/lib/commands/issue-link-type/update.js +1 -1
  156. package/lib/commands/issue-navigator-setting/get-columns.js +1 -1
  157. package/lib/commands/issue-navigator-setting/set-columns.js +1 -1
  158. package/lib/commands/issue-priority/create.js +1 -1
  159. package/lib/commands/issue-priority/delete.js +1 -1
  160. package/lib/commands/issue-priority/move.js +1 -1
  161. package/lib/commands/issue-priority/search.js +1 -1
  162. package/lib/commands/issue-priority/set-default.js +1 -1
  163. package/lib/commands/issue-priority/update.js +1 -1
  164. package/lib/commands/issue-property/delete-bulk.js +1 -1
  165. package/lib/commands/issue-property/delete.js +1 -1
  166. package/lib/commands/issue-property/get-keys.js +1 -1
  167. package/lib/commands/issue-property/get.js +1 -1
  168. package/lib/commands/issue-property/set-bulk.js +1 -1
  169. package/lib/commands/issue-property/set-by-issue-bulk.js +1 -1
  170. package/lib/commands/issue-property/set-by-list-bulk.js +1 -1
  171. package/lib/commands/issue-property/set.js +1 -1
  172. package/lib/commands/issue-remote-link/create.js +1 -1
  173. package/lib/commands/issue-remote-link/delete-by-global-id.js +1 -1
  174. package/lib/commands/issue-remote-link/delete.js +1 -1
  175. package/lib/commands/issue-remote-link/get-all.js +1 -1
  176. package/lib/commands/issue-remote-link/get.js +1 -1
  177. package/lib/commands/issue-remote-link/update.js +1 -1
  178. package/lib/commands/issue-resolution/create.js +1 -1
  179. package/lib/commands/issue-resolution/delete.js +1 -1
  180. package/lib/commands/issue-resolution/get-all.js +1 -1
  181. package/lib/commands/issue-resolution/get.js +1 -1
  182. package/lib/commands/issue-resolution/move.js +1 -1
  183. package/lib/commands/issue-resolution/search.js +1 -1
  184. package/lib/commands/issue-resolution/set-default.js +1 -1
  185. package/lib/commands/issue-resolution/update.js +1 -1
  186. package/lib/commands/issue-search/get-picker-suggestions.js +1 -1
  187. package/lib/commands/issue-search/search.js +1 -1
  188. package/lib/commands/issue-search/test-jql.js +1 -1
  189. package/lib/commands/issue-security-level/get-members.js +1 -1
  190. package/lib/commands/issue-security-level/get.js +1 -1
  191. package/lib/commands/issue-security-scheme/associate-security-scheme.js +1 -1
  192. package/lib/commands/issue-security-scheme/get-all.js +1 -1
  193. package/lib/commands/issue-security-scheme/get-levels.js +1 -1
  194. package/lib/commands/issue-security-scheme/get.js +1 -1
  195. package/lib/commands/issue-type/create.js +1 -1
  196. package/lib/commands/issue-type/delete.js +1 -1
  197. package/lib/commands/issue-type/get-all-for-projects.js +1 -1
  198. package/lib/commands/issue-type/get-all.js +1 -1
  199. package/lib/commands/issue-type/get-alternatives.js +1 -1
  200. package/lib/commands/issue-type/get.js +1 -1
  201. package/lib/commands/issue-type/set-avatar.js +1 -1
  202. package/lib/commands/issue-type/update.js +1 -1
  203. package/lib/commands/issue-type/upload-avatar.js +1 -1
  204. package/lib/commands/issue-type-property/delete.js +1 -1
  205. package/lib/commands/issue-type-property/get-keys.js +1 -1
  206. package/lib/commands/issue-type-property/get.js +1 -1
  207. package/lib/commands/issue-type-property/set.js +1 -1
  208. package/lib/commands/issue-type-scheme/add-issue-types.js +1 -1
  209. package/lib/commands/issue-type-scheme/assign-to-project.js +1 -1
  210. package/lib/commands/issue-type-scheme/create.js +1 -1
  211. package/lib/commands/issue-type-scheme/delete.js +1 -1
  212. package/lib/commands/issue-type-scheme/get-for-projects.js +1 -1
  213. package/lib/commands/issue-type-scheme/get-issue-types.js +1 -1
  214. package/lib/commands/issue-type-scheme/get-mappings.js +1 -1
  215. package/lib/commands/issue-type-scheme/get-projects.js +1 -1
  216. package/lib/commands/issue-type-scheme/move-issue-types.js +1 -1
  217. package/lib/commands/issue-type-scheme/remove-all-projects.js +1 -1
  218. package/lib/commands/issue-type-scheme/remove-issue-type.js +1 -1
  219. package/lib/commands/issue-type-scheme/remove-project.js +1 -1
  220. package/lib/commands/issue-type-scheme/search.js +1 -1
  221. package/lib/commands/issue-type-scheme/set-projects.js +1 -1
  222. package/lib/commands/issue-type-scheme/update.js +1 -1
  223. package/lib/commands/issue-type-screen-scheme/add-mappings.js +1 -1
  224. package/lib/commands/issue-type-screen-scheme/assign-to-project.js +1 -1
  225. package/lib/commands/issue-type-screen-scheme/create.js +1 -1
  226. package/lib/commands/issue-type-screen-scheme/delete.js +1 -1
  227. package/lib/commands/issue-type-screen-scheme/get-for-projects.js +1 -1
  228. package/lib/commands/issue-type-screen-scheme/get-items.js +1 -1
  229. package/lib/commands/issue-type-screen-scheme/get-projects.js +1 -1
  230. package/lib/commands/issue-type-screen-scheme/remove-mappings.js +1 -1
  231. package/lib/commands/issue-type-screen-scheme/search.js +1 -1
  232. package/lib/commands/issue-type-screen-scheme/set-default-screen.js +1 -1
  233. package/lib/commands/issue-type-screen-scheme/update.js +1 -1
  234. package/lib/commands/issue-vote/add.js +1 -1
  235. package/lib/commands/issue-vote/delete.js +1 -1
  236. package/lib/commands/issue-vote/get-all.js +1 -1
  237. package/lib/commands/issue-watcher/add.js +1 -1
  238. package/lib/commands/issue-watcher/delete.js +1 -1
  239. package/lib/commands/issue-watcher/get-all.js +1 -1
  240. package/lib/commands/issue-watcher/get-bulk.js +1 -1
  241. package/lib/commands/jira-expression/analyse.js +1 -1
  242. package/lib/commands/jira-expression/evaluate.js +1 -1
  243. package/lib/commands/jira-settings/get-advanced.js +1 -1
  244. package/lib/commands/jira-settings/get-globals.js +1 -1
  245. package/lib/commands/jira-settings/get-properties.js +1 -1
  246. package/lib/commands/jira-settings/set-property.js +1 -1
  247. package/lib/commands/jql/convert-user-identifiers.js +1 -1
  248. package/lib/commands/jql/get-auto-complete-suggestions.js +1 -1
  249. package/lib/commands/jql/get-reference-data.js +1 -1
  250. package/lib/commands/jql/parse.js +1 -1
  251. package/lib/commands/jql/sanitize.js +1 -1
  252. package/lib/commands/label/get-all.js +1 -1
  253. package/lib/commands/license/get.js +1 -1
  254. package/lib/commands/myself/change-password.js +1 -1
  255. package/lib/commands/myself/delete-preference.js +1 -1
  256. package/lib/commands/myself/get-locale.js +1 -1
  257. package/lib/commands/myself/get-preference.js +1 -1
  258. package/lib/commands/myself/get.js +1 -1
  259. package/lib/commands/myself/set-preference.js +1 -1
  260. package/lib/commands/myself/update-user.js +1 -1
  261. package/lib/commands/notification-scheme/add.js +1 -1
  262. package/lib/commands/notification-scheme/create.js +1 -1
  263. package/lib/commands/notification-scheme/delete-notification.js +1 -1
  264. package/lib/commands/notification-scheme/delete.js +1 -1
  265. package/lib/commands/notification-scheme/get-all.js +1 -1
  266. package/lib/commands/notification-scheme/get-projects.js +1 -1
  267. package/lib/commands/notification-scheme/get.js +1 -1
  268. package/lib/commands/notification-scheme/update.js +1 -1
  269. package/lib/commands/permission/check-global-permission.js +1 -1
  270. package/lib/commands/permission/check-issue-permission.js +1 -1
  271. package/lib/commands/permission/check-project-permission.js +1 -1
  272. package/lib/commands/permission/get-all.js +1 -1
  273. package/lib/commands/permission/get-my.js +1 -1
  274. package/lib/commands/permission/get-permitted.js +1 -1
  275. package/lib/commands/permission-scheme/create-grant.js +1 -1
  276. package/lib/commands/permission-scheme/create-scheme.js +1 -1
  277. package/lib/commands/permission-scheme/delete-grant.js +1 -1
  278. package/lib/commands/permission-scheme/delete-scheme.js +1 -1
  279. package/lib/commands/permission-scheme/get-all-grants.js +1 -1
  280. package/lib/commands/permission-scheme/get-all.js +1 -1
  281. package/lib/commands/permission-scheme/get-grant.js +1 -1
  282. package/lib/commands/permission-scheme/get.js +1 -1
  283. package/lib/commands/project/archive.js +1 -1
  284. package/lib/commands/project/create.js +1 -1
  285. package/lib/commands/project/delete.js +1 -1
  286. package/lib/commands/project/get-all-issue-types.js +1 -1
  287. package/lib/commands/project/get-all.js +1 -1
  288. package/lib/commands/project/get-issue-type-hierarchy.js +1 -1
  289. package/lib/commands/project/get-notification-schema.js +1 -1
  290. package/lib/commands/project/get.js +1 -1
  291. package/lib/commands/project/project.js +1 -1
  292. package/lib/commands/project/restore.js +1 -1
  293. package/lib/commands/project/search.js +1 -1
  294. package/lib/commands/project/unarchive.js +1 -1
  295. package/lib/commands/project/update.js +1 -1
  296. package/lib/commands/project-avatar/delete.js +1 -1
  297. package/lib/commands/project-avatar/get-all.js +1 -1
  298. package/lib/commands/project-avatar/set.js +1 -1
  299. package/lib/commands/project-avatar/upload.js +1 -1
  300. package/lib/commands/project-category/create.js +1 -1
  301. package/lib/commands/project-category/delete.js +1 -1
  302. package/lib/commands/project-category/get-all.js +1 -1
  303. package/lib/commands/project-category/get.js +1 -1
  304. package/lib/commands/project-category/update.js +1 -1
  305. package/lib/commands/project-component/create.js +1 -1
  306. package/lib/commands/project-component/delete.js +1 -1
  307. package/lib/commands/project-component/get-all.js +1 -1
  308. package/lib/commands/project-component/get-issues-count.js +1 -1
  309. package/lib/commands/project-component/get.js +1 -1
  310. package/lib/commands/project-component/search.js +1 -1
  311. package/lib/commands/project-component/update.js +1 -1
  312. package/lib/commands/project-email/get-sender.js +1 -1
  313. package/lib/commands/project-email/set-sender.js +1 -1
  314. package/lib/commands/project-feature/get.js +1 -1
  315. package/lib/commands/project-feature/set.js +1 -1
  316. package/lib/commands/project-key-and-name-validation/get-valid-key.js +1 -1
  317. package/lib/commands/project-key-and-name-validation/get-valid-name.js +1 -1
  318. package/lib/commands/project-key-and-name-validation/validate-key.js +1 -1
  319. package/lib/commands/project-permission-scheme/get-issue-security-levels.js +1 -1
  320. package/lib/commands/project-permission-scheme/get-issue-security-scheme-levels.js +1 -1
  321. package/lib/commands/project-permission-scheme/get-issue-security-scheme.js +1 -1
  322. package/lib/commands/project-permission-scheme/get-permissions.js +1 -1
  323. package/lib/commands/project-permission-scheme/get.js +1 -1
  324. package/lib/commands/project-permission-scheme/set.js +1 -1
  325. package/lib/commands/project-property/delete.js +1 -1
  326. package/lib/commands/project-property/get-keys.js +1 -1
  327. package/lib/commands/project-property/get.js +1 -1
  328. package/lib/commands/project-property/set.js +1 -1
  329. package/lib/commands/project-role/create.js +1 -1
  330. package/lib/commands/project-role/delete.js +1 -1
  331. package/lib/commands/project-role/get-all.js +1 -1
  332. package/lib/commands/project-role/get-role.js +1 -1
  333. package/lib/commands/project-role/get-roles-and-details.js +1 -1
  334. package/lib/commands/project-role/get-roles.js +1 -1
  335. package/lib/commands/project-role/get.js +1 -1
  336. package/lib/commands/project-role/project-role.js +1 -1
  337. package/lib/commands/project-role/update-partial.js +1 -1
  338. package/lib/commands/project-role/update.js +1 -1
  339. package/lib/commands/project-role-actor/add-actors.js +1 -1
  340. package/lib/commands/project-role-actor/add-default-actors.js +1 -1
  341. package/lib/commands/project-role-actor/delete-actors.js +1 -1
  342. package/lib/commands/project-role-actor/delete-default-actors.js +1 -1
  343. package/lib/commands/project-role-actor/get.js +1 -1
  344. package/lib/commands/project-role-actor/set-actors.js +1 -1
  345. package/lib/commands/project-type/check-accessible.js +1 -1
  346. package/lib/commands/project-type/get-all.js +1 -1
  347. package/lib/commands/project-type/get-licensed.js +1 -1
  348. package/lib/commands/project-type/get.js +1 -1
  349. package/lib/commands/project-type/update.js +1 -1
  350. package/lib/commands/project-version/create.js +1 -1
  351. package/lib/commands/project-version/delete-and-replace.js +1 -1
  352. package/lib/commands/project-version/get-all.js +1 -1
  353. package/lib/commands/project-version/get-related-issue-count.js +1 -1
  354. package/lib/commands/project-version/get-unresolved-issue-count.js +1 -1
  355. package/lib/commands/project-version/get.js +1 -1
  356. package/lib/commands/project-version/merge.js +1 -1
  357. package/lib/commands/project-version/move.js +1 -1
  358. package/lib/commands/project-version/search.js +1 -1
  359. package/lib/commands/project-version/update.js +1 -1
  360. package/lib/commands/screen/add-field-to-default-screen.js +1 -1
  361. package/lib/commands/screen/create.js +1 -1
  362. package/lib/commands/screen/delete.js +1 -1
  363. package/lib/commands/screen/get-all.js +1 -1
  364. package/lib/commands/screen/get-available-fields.js +1 -1
  365. package/lib/commands/screen/get-field-screens.js +1 -1
  366. package/lib/commands/screen/get-workflows.js +1 -1
  367. package/lib/commands/screen/update.js +1 -1
  368. package/lib/commands/screen-scheme/create.js +1 -1
  369. package/lib/commands/screen-scheme/delete.js +1 -1
  370. package/lib/commands/screen-scheme/get-all.js +1 -1
  371. package/lib/commands/screen-scheme/update.js +1 -1
  372. package/lib/commands/screen-tab/create.js +1 -1
  373. package/lib/commands/screen-tab/delete.js +1 -1
  374. package/lib/commands/screen-tab/get-all.js +1 -1
  375. package/lib/commands/screen-tab/move.js +1 -1
  376. package/lib/commands/screen-tab/update.js +1 -1
  377. package/lib/commands/screen-tab-field/add.js +1 -1
  378. package/lib/commands/screen-tab-field/get-all.js +1 -1
  379. package/lib/commands/screen-tab-field/move.js +1 -1
  380. package/lib/commands/screen-tab-field/remove.js +1 -1
  381. package/lib/commands/server-info/get.js +1 -1
  382. package/lib/commands/server-info/jmx.js +1 -1
  383. package/lib/commands/status/create.js +1 -1
  384. package/lib/commands/status/delete.js +1 -1
  385. package/lib/commands/status/get-usages.js +1 -1
  386. package/lib/commands/status/get.js +1 -1
  387. package/lib/commands/status/search.js +1 -1
  388. package/lib/commands/status/status-command.js +1 -1
  389. package/lib/commands/status/update.js +1 -1
  390. package/lib/commands/task/cancel.js +1 -1
  391. package/lib/commands/task/get.js +1 -1
  392. package/lib/commands/time-tracking/get-all.js +1 -1
  393. package/lib/commands/time-tracking/get-setting.js +1 -1
  394. package/lib/commands/time-tracking/get.js +1 -1
  395. package/lib/commands/time-tracking/select.js +1 -1
  396. package/lib/commands/time-tracking/set.js +1 -1
  397. package/lib/commands/user/add-user-to-application.js +1 -1
  398. package/lib/commands/user/change-password.js +1 -1
  399. package/lib/commands/user/create.js +1 -1
  400. package/lib/commands/user/delete.js +1 -1
  401. package/lib/commands/user/get-all.js +1 -1
  402. package/lib/commands/user/get-default-columns.js +1 -1
  403. package/lib/commands/user/get-email.js +1 -1
  404. package/lib/commands/user/get-user-groups.js +1 -1
  405. package/lib/commands/user/get.js +1 -1
  406. package/lib/commands/user/remove-user-from-application.js +1 -1
  407. package/lib/commands/user/reset-default-columns.js +1 -1
  408. package/lib/commands/user/set-default-columns.js +1 -1
  409. package/lib/commands/user/update.js +1 -1
  410. package/lib/commands/user/user-command.js +1 -1
  411. package/lib/commands/user-property/delete.js +1 -1
  412. package/lib/commands/user-property/get-all-keys.js +1 -1
  413. package/lib/commands/user-property/get-user-property.js +1 -1
  414. package/lib/commands/user-property/set.js +1 -1
  415. package/lib/commands/user-search/accounts-with-query.js +1 -1
  416. package/lib/commands/user-search/assignable-users-bulk.js +1 -1
  417. package/lib/commands/user-search/assignable-users.js +1 -1
  418. package/lib/commands/user-search/find.js +1 -1
  419. package/lib/commands/user-search/with-permission.js +1 -1
  420. package/lib/commands/user-search/with-query.js +1 -1
  421. package/lib/commands/workflow/create.js +1 -1
  422. package/lib/commands/workflow/delete.js +1 -1
  423. package/lib/commands/workflow/get-projects.js +1 -1
  424. package/lib/commands/workflow/get-schemes.js +1 -1
  425. package/lib/commands/workflow/get-statuses-properties.js +1 -1
  426. package/lib/commands/workflow/get-statuses.js +1 -1
  427. package/lib/commands/workflow/get-transitions-rules.js +1 -1
  428. package/lib/commands/workflow/get-transitions.js +1 -1
  429. package/lib/commands/workflow/search.js +1 -1
  430. package/lib/commands/workflow-scheme/create.js +1 -1
  431. package/lib/commands/workflow-scheme/delete-default-workflow.js +1 -1
  432. package/lib/commands/workflow-scheme/delete-issue-types-for-workflow.js +1 -1
  433. package/lib/commands/workflow-scheme/delete-workflow-for-issue-type.js +1 -1
  434. package/lib/commands/workflow-scheme/delete.js +1 -1
  435. package/lib/commands/workflow-scheme/get-all.js +1 -1
  436. package/lib/commands/workflow-scheme/get-default-workflow.js +1 -1
  437. package/lib/commands/workflow-scheme/get-issue-types-for-workflows.js +1 -1
  438. package/lib/commands/workflow-scheme/get-workflow-for-issue-type.js +1 -1
  439. package/lib/commands/workflow-scheme/get.js +1 -1
  440. package/lib/commands/workflow-scheme/set-issue-types-for-workflow.js +1 -1
  441. package/lib/commands/workflow-scheme/set-workflow-for-issue-type.js +1 -1
  442. package/lib/commands/workflow-scheme/update-default-workflow.js +1 -1
  443. package/lib/commands/workflow-scheme/update.js +1 -1
  444. package/lib/commands/workflow-scheme-draft/create.js +1 -1
  445. package/lib/commands/workflow-scheme-draft/delete-default-workflow.js +1 -1
  446. package/lib/commands/workflow-scheme-draft/delete-issue-types-for-workflow.js +1 -1
  447. package/lib/commands/workflow-scheme-draft/delete-workflow-for-issue-type.js +1 -1
  448. package/lib/commands/workflow-scheme-draft/delete.js +1 -1
  449. package/lib/commands/workflow-scheme-draft/get-default-workflow.js +1 -1
  450. package/lib/commands/workflow-scheme-draft/get-issue-types-for-workflows.js +1 -1
  451. package/lib/commands/workflow-scheme-draft/get-workflow-for-issue-type.js +1 -1
  452. package/lib/commands/workflow-scheme-draft/get.js +1 -1
  453. package/lib/commands/workflow-scheme-draft/publish.js +1 -1
  454. package/lib/commands/workflow-scheme-draft/set-issue-types-for-workflow.js +1 -1
  455. package/lib/commands/workflow-scheme-draft/set-workflow-for-issue-type.js +1 -1
  456. package/lib/commands/workflow-scheme-draft/update-default-workflow.js +1 -1
  457. package/lib/commands/workflow-scheme-draft/update.js +1 -1
  458. package/lib/commands/workflow-scheme-project-association/assign.js +1 -1
  459. package/lib/commands/workflow-scheme-project-association/get-all.js +1 -1
  460. package/lib/commands/workflow-status/get-all.js +1 -1
  461. package/lib/commands/workflow-status/get.js +1 -1
  462. package/lib/commands/workflow-status-category/get-all.js +1 -1
  463. package/lib/commands/workflow-status-category/get.js +1 -1
  464. package/lib/commands/workflow-transition-property/create.js +1 -1
  465. package/lib/commands/workflow-transition-property/delete.js +1 -1
  466. package/lib/commands/workflow-transition-property/get.js +1 -1
  467. package/lib/commands/workflow-transition-property/update.js +1 -1
  468. package/lib/commands/worklog/add.js +1 -1
  469. package/lib/commands/worklog/delete.js +1 -1
  470. package/lib/commands/worklog/get-deleted.js +1 -1
  471. package/lib/commands/worklog/get-for-issue.js +1 -1
  472. package/lib/commands/worklog/get-updated.js +1 -1
  473. package/lib/commands/worklog/get-with-ids.js +1 -1
  474. package/lib/commands/worklog/get.js +1 -1
  475. package/lib/commands/worklog/update.js +1 -1
  476. package/lib/commands/worklog-property/delete.js +1 -1
  477. package/lib/commands/worklog-property/get-keys.js +1 -1
  478. package/lib/commands/worklog-property/get.js +1 -1
  479. package/lib/commands/worklog-property/set-property.js +1 -1
  480. package/lib/index.js +1 -1
  481. package/package.json +4 -3
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetConfiguration extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(t,a){var n=(await this.parse(GetConfiguration))["flags"],a=await a.announcementBannerManager.getConfiguration();this.display(n,a)}}(exports.default=GetConfiguration).description="Returns the current announcement banner configuration.",GetConfiguration.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common");class GetConfiguration extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(t,a){var e=(await this.parse(GetConfiguration)).flags,a=await a.announcementBannerManager.getConfiguration();this.display(e,a)}}(exports.default=GetConfiguration).description="Returns the current announcement banner configuration.",GetConfiguration.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateConfiguration extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,n){var a=(await this.parse(UpdateConfiguration))["flags"];await n.announcementBannerManager.updateConfiguration(this.removeFlagsFromBase(a))}}(exports.default=UpdateConfiguration).description="Updates the announcement banner configuration.",UpdateConfiguration.aliases=["announcement-banner:update","announcement-banner update"],UpdateConfiguration.flags=Object.assign({message:core_1.Flags.string({char:"m",description:"The text on the announcement banner.",required:!0}),isDismissible:core_1.Flags.boolean({char:"d",description:"Flag indicating if the announcement banner can be dismissed by the user.",allowNo:!0}),isEnabled:core_1.Flags.boolean({char:"e",description:"Flag indicating if the announcement banner is enabled or not.",allowNo:!0}),visibility:core_1.Flags.string({char:"v",description:"Visibility of the announcement banner. Can be public or private.",options:["public","private"],required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateConfiguration extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,n){var a=(await this.parse(UpdateConfiguration)).flags;await n.announcementBannerManager.updateConfiguration(this.removeFlagsFromBase(a))}}(exports.default=UpdateConfiguration).description="Updates the announcement banner configuration.",UpdateConfiguration.aliases=["announcement-banner:update","announcement-banner update"],UpdateConfiguration.flags=Object.assign({message:core_1.Flags.string({char:"m",description:"The text on the announcement banner.",required:!0}),isDismissible:core_1.Flags.boolean({char:"d",description:"Flag indicating if the announcement banner can be dismissed by the user.",allowNo:!0}),isEnabled:core_1.Flags.boolean({char:"e",description:"Flag indicating if the announcement banner is enabled or not.",allowNo:!0}),visibility:core_1.Flags.string({char:"v",description:"Visibility of the announcement banner. Can be public or private.",options:["public","private"],required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetAllAppRoles extends atlascli_common_1.BaseCommandWithSite{async runWithSite(s){var e=(await this.parse(GetAllAppRoles))["flags"],o=await this.getJira(s,e).applicationRoleManager.getApplicationRoles();this.display(e,o.applicationRoles.map(e=>(this.log(e),e.groups=(s.cloud?e.groupDetails.map(e=>e.name):e.groups).join(","),e.defaultGroups=(s.cloud?e.defaultGroupsDetails.map(e=>e.name):e.defaultGroups).join(","),e))),e.showHashVersion&&!s.cloud&&this.log(`
2
- Hash Version: `+o.versionHash)}}(exports.default=GetAllAppRoles).description="Gets all application roles.",GetAllAppRoles.flags=Object.assign({showHashVersion:core_1.Flags.boolean({description:"Whether hash version will be shown in the response. (Only for Server)"})},atlascli_common_1.BaseCommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetAllAppRoles extends atlascli_common_1.BaseCommandWithSite{async runWithSite(s){var e=(await this.parse(GetAllAppRoles)).flags,a=await this.getJira(s,e).applicationRoleManager.getApplicationRoles();this.display(e,a.applicationRoles.map(e=>(this.log(e),e.groups=(s.cloud?e.groupDetails.map(e=>e.name):e.groups).join(","),e.defaultGroups=(s.cloud?e.defaultGroupsDetails.map(e=>e.name):e.defaultGroups).join(","),e))),e.showHashVersion&&!s.cloud&&this.log(`
2
+ Hash Version: `+a.versionHash)}}(exports.default=GetAllAppRoles).description="Gets all application roles.",GetAllAppRoles.flags=Object.assign({showHashVersion:core_1.Flags.boolean({description:"Whether hash version will be shown in the response. (Only for Server)"})},atlascli_common_1.BaseCommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetAppRole extends atlascli_common_1.BaseCommandWithSite{async runWithSite(a){var e=(await this.parse(GetAppRole))["flags"],t=await this.getJira(a,e).applicationRoleManager.getApplicationRole(e.key);this.display(e,[t].map(e=>(e.groups=(a.cloud?e.groupDetails.map(e=>e.name):e.groups).join(","),e.defaultGroups=(a.cloud?e.defaultGroupsDetails.map(e=>e.name):e.defaultGroups).join(","),e)))}}(exports.default=GetAppRole).description="Gets an application role.",GetAppRole.flags=Object.assign({key:core_1.Flags.string({char:"k",description:"The key of the application role.",required:!0})},atlascli_common_1.BaseCommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetAppRole extends atlascli_common_1.BaseCommandWithSite{async runWithSite(a){var e=(await this.parse(GetAppRole)).flags,t=await this.getJira(a,e).applicationRoleManager.getApplicationRole(e.key);this.display(e,[t].map(e=>(e.groups=(a.cloud?e.groupDetails.map(e=>e.name):e.groups).join(","),e.defaultGroups=(a.cloud?e.defaultGroupsDetails.map(e=>e.name):e.defaultGroups).join(","),e)))}}(exports.default=GetAppRole).description="Gets an application role.",GetAppRole.flags=Object.assign({key:core_1.Flags.string({char:"k",description:"The key of the application role.",required:!0})},atlascli_common_1.BaseCommandWithSite.flags);
@@ -1 +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 UpdateApplicationRole extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(e,o){var i=(await this.parse(UpdateApplicationRole))["flags"],a=this.removeFlagsFromBase(i),{key:r,versionHash:t}=a,a=tslib_1.__rest(a,["key","versionHash"]),s=(a.groups=null==(s=a.groups)?void 0:s.split(","),a.defaultGroups=null==(s=a.defaultGroups)?void 0:s.split(","),await o.applicationRoleManager.updateApplicationRole(r,a,t));this.display(i,[s].map(e=>(e.groups=e.groups.join(","),e.defaultGroups=e.defaultGroups.join(","),e)))}}(exports.default=UpdateApplicationRole).description="Updates the an application role. If versionHash is passed, the request will be rejected if not the same as server.",UpdateApplicationRole.aliases=["application-role update","application-role:update"],UpdateApplicationRole.flags=Object.assign({key:core_1.Flags.string({char:"k",description:"The key of the application role.",required:!0}),versionHash:core_1.Flags.string({char:"v",description:"The hash of the version to update."}),name:core_1.Flags.string({char:"n",description:"The display name of the application role."}),groups:core_1.Flags.string({char:"g",description:"The name of the groups. You can provide multiple group name by seperating them with comma."}),defaultGroups:core_1.Flags.string({description:"The name of default groups. You can provide multiple group name by seperating them with comma."}),selectedByDefault:core_1.Flags.boolean({description:"Determines whether this application role should be selected by default on user creation."}),numberOfSeats:core_1.Flags.integer({description:"The maximum count of users on your license."}),remainingSeats:core_1.Flags.integer({char:"r",description:"The count of users remaining on your license."}),userCount:core_1.Flags.integer({char:"c",description:"The number of users counting against your license."}),userCountDescription:core_1.Flags.string({description:"The type of users being counted against your license."}),hasUnlimitedSeats:core_1.Flags.boolean({description:"Whether your license can have unlimited user or not."}),platform:core_1.Flags.boolean({char:"p",description:"Indicates if the application role belongs to Jira platform (jira-core)."})},atlascli_common_1.BaseCommandWithServerSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateApplicationRole extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(e,o){var i=(await this.parse(UpdateApplicationRole)).flags,a=this.removeFlagsFromBase(i),{key:r,versionHash:t}=a,a=tslib_1.__rest(a,["key","versionHash"]),s=(a.groups=null==(s=a.groups)?void 0:s.split(","),a.defaultGroups=null==(s=a.defaultGroups)?void 0:s.split(","),await o.applicationRoleManager.updateApplicationRole(r,a,t));this.display(i,[s].map(e=>(e.groups=e.groups.join(","),e.defaultGroups=e.defaultGroups.join(","),e)))}}(exports.default=UpdateApplicationRole).description="Updates the an application role. If versionHash is passed, the request will be rejected if not the same as server.",UpdateApplicationRole.aliases=["application-role update","application-role:update"],UpdateApplicationRole.flags=Object.assign({key:core_1.Flags.string({char:"k",description:"The key of the application role.",required:!0}),versionHash:core_1.Flags.string({char:"v",description:"The hash of the version to update."}),name:core_1.Flags.string({char:"n",description:"The display name of the application role."}),groups:core_1.Flags.string({char:"g",description:"The name of the groups. You can provide multiple group name by seperating them with comma."}),defaultGroups:core_1.Flags.string({description:"The name of default groups. You can provide multiple group name by seperating them with comma."}),selectedByDefault:core_1.Flags.boolean({description:"Determines whether this application role should be selected by default on user creation."}),numberOfSeats:core_1.Flags.integer({description:"The maximum count of users on your license."}),remainingSeats:core_1.Flags.integer({char:"r",description:"The count of users remaining on your license."}),userCount:core_1.Flags.integer({char:"c",description:"The number of users counting against your license."}),userCountDescription:core_1.Flags.string({description:"The type of users being counted against your license."}),hasUnlimitedSeats:core_1.Flags.boolean({description:"Whether your license can have unlimited user or not."}),platform:core_1.Flags.boolean({char:"p",description:"Indicates if the application role belongs to Jira platform (jira-core)."})},atlascli_common_1.BaseCommandWithServerSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),avatar_utils_1=require("@thestarware/atlascli-common/lib/avatar-utils"),mapper_utils_1=require("@thestarware/atlascli-common/lib/util/mapper-utils");class Add extends atlascli_common_1.CommandWithSite{async runWithSite(a){var{flags:t,args:e}=await this.parse(Add),i=this.getJira(a,t),e=t.file||e.file,{fileContent:e,fileName:s}=(0,avatar_utils_1.readFile)(e),i=await i.attachmentManager.addAttachment(t.issue,s,e);this.displayAttachmentMetadata(t,i,a.cloud)}displayAttachmentMetadata(a,t,e){this.displayJsonYamlOrTable(a,t,()=>this.tabularFormat([t],a,(a,t)=>{Object.assign(t,(0,mapper_utils_1.mapToUser)(a.author,e))}))}}(exports.default=Add).description="Adds an attachment to an issue.",Add.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),file:core_1.Flags.string({description:"Location of file."})},atlascli_common_1.CommandWithSite.flags),Add.args=[{required:!0,name:"file",description:"Location of file."}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),avatar_utils_1=require("@thestarware/atlascli-common/lib/avatar-utils"),mapper_utils_1=require("@thestarware/atlascli-common/lib/util/mapper-utils");class Add extends atlascli_common_1.CommandWithSite{async runWithSite(a){var{flags:t,args:e}=await this.parse(Add),i=this.getJira(a,t),e=t.file||e.file,{fileContent:e,fileName:s}=(0,avatar_utils_1.readFile)(e),i=await i.attachmentManager.addAttachment(t.issue,s,e);this.displayAttachmentMetadata(t,i,a.cloud)}displayAttachmentMetadata(a,t,e){this.displayJsonYamlOrTable(a,t,()=>this.tabularFormat([t],a,(a,t)=>{Object.assign(t,(0,mapper_utils_1.mapToUser)(a.author,e))}))}}(exports.default=Add).description="Adds an attachment to an issue.",Add.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),file:core_1.Flags.string({description:"Location of file."})},atlascli_common_1.CommandWithSite.flags),Add.args=[{required:!0,name:"file",description:"Location of file."}];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),get_metadata_1=tslib_1.__importDefault(require("./get-metadata"));class Delete extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:t,args:a}=await this.parse(Delete);await this.getJira(e,t).attachmentManager.deleteAttachment(t.id||a.id)}}(exports.default=Delete).description="Deletes an attachment from an issue.",Delete.flags=get_metadata_1.default.flags,Delete.args=get_metadata_1.default.args;
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),get_metadata_1=tslib_1.__importDefault(require("./get-metadata"));class Delete extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:t,args:a}=await this.parse(Delete);await this.getJira(e,t).attachmentManager.deleteAttachment(t.id||a.id)}}(exports.default=Delete).description="Deletes an attachment from an issue.",Delete.flags=get_metadata_1.default.flags,Delete.args=get_metadata_1.default.args;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetContent extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(t,e){var a=(await this.parse(GetContent))["flags"],e=e.attachmentManager.getAttachmentContent(a.id,{redirect:a.redirect});this.display(a,e)}}(exports.default=GetContent).description="Gets the contents of an attachment. A Range header can be set to define a range of bytes within the attachment to download. See the HTTP Range header standard for details.",GetContent.flags=Object.assign({id:core_1.Flags.string({description:"ID of attachment.",required:!0}),redirect:core_1.Flags.boolean({char:"r",description:"Whether a redirect is provided for the attachment download. Clients that do not automatically follow redirects can set this to false to avoid making multiple requests to download the attachment.",default:!1})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetContent extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(t,e){var a=(await this.parse(GetContent)).flags,e=e.attachmentManager.getAttachmentContent(a.id,{redirect:a.redirect});this.display(a,e)}}(exports.default=GetContent).description="Gets the contents of an attachment. A Range header can be set to define a range of bytes within the attachment to download. See the HTTP Range header standard for details.",GetContent.flags=Object.assign({id:core_1.Flags.string({description:"ID of attachment.",required:!0}),redirect:core_1.Flags.boolean({char:"r",description:"Whether a redirect is provided for the attachment download. Clients that do not automatically follow redirects can set this to false to avoid making multiple requests to download the attachment.",default:!1})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetJiraAttachmentSettings extends atlascli_common_1.CommandWithSite{async runWithSite(t){var a=(await this.parse(GetJiraAttachmentSettings))["flags"],t=await this.getJira(t,a).attachmentManager.getJiraAttachmentSettings();this.display(a,t)}}(exports.default=GetJiraAttachmentSettings).description="Returns general information about the current Jira.",GetJiraAttachmentSettings.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common");class GetJiraAttachmentSettings extends atlascli_common_1.CommandWithSite{async runWithSite(t){var a=(await this.parse(GetJiraAttachmentSettings)).flags,t=await this.getJira(t,a).attachmentManager.getJiraAttachmentSettings();this.display(a,t)}}(exports.default=GetJiraAttachmentSettings).description="Returns general information about the current Jira.",GetJiraAttachmentSettings.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),get_metadata_1=tslib_1.__importDefault(require("./get-metadata"));class GetMetadataForZip extends atlascli_common_1.CommandWithSite{async runWithSite(t){var{flags:a,args:e}=await this.parse(GetMetadataForZip);const i=await this.getJira(t,a).attachmentManager.getMetadataForExpandedAttachment(a.id||e.id);if(this.isTabularOutput(a)){const r=[];i.entries.forEach(t=>{r.push({id:i.id,name:i.name,totalEntryCount:i.totalEntryCount,mediaType:i.mediaType,entryIndex:t.index,entryLabel:t.label,entrySize:t.size,entryMediaType:t.mediaType,entryPath:t.path})}),this.display(a,r)}else this.display(a,i)}}(exports.default=GetMetadataForZip).description="Returns the metadata for the contents of an attachment, if it is an archive, and metadata for the attachment itself. ",GetMetadataForZip.flags=get_metadata_1.default.flags,GetMetadataForZip.args=get_metadata_1.default.args;
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),get_metadata_1=tslib_1.__importDefault(require("./get-metadata"));class GetMetadataForZip extends atlascli_common_1.CommandWithSite{async runWithSite(t){var{flags:e,args:a}=await this.parse(GetMetadataForZip);let i=await this.getJira(t,e).attachmentManager.getMetadataForExpandedAttachment(e.id||a.id);if(this.isTabularOutput(e)){let a=[];i.entries.forEach(t=>{a.push({id:i.id,name:i.name,totalEntryCount:i.totalEntryCount,mediaType:i.mediaType,entryIndex:t.index,entryLabel:t.label,entrySize:t.size,entryMediaType:t.mediaType,entryPath:t.path})}),this.display(e,a)}else this.display(e,i)}}(exports.default=GetMetadataForZip).description="Returns the metadata for the contents of an attachment, if it is an archive, and metadata for the attachment itself. ",GetMetadataForZip.flags=get_metadata_1.default.flags,GetMetadataForZip.args=get_metadata_1.default.args;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),mapper_utils_1=require("@thestarware/atlascli-common/lib/util/mapper-utils");class GetMetadata extends atlascli_common_1.CommandWithSite{async runWithSite(t){var{flags:a,args:e}=await this.parse(GetMetadata),e=await this.getJira(t,a).attachmentManager.getAttachmentMetadata(a.id||e.id);this.displayAttachmentMetadata(a,e,t.cloud)}displayAttachmentMetadata(t,a,e){this.displayJsonYamlOrTable(t,a,()=>this.tabularFormat([a],t,(t,a)=>{Object.assign(a,(0,mapper_utils_1.mapToUser)(t.author,e))}))}}(exports.default=GetMetadata).description="Returns the metadata for an attachment. Note that the attachment itself is not returned.",GetMetadata.flags=Object.assign({id:core_1.Flags.string({description:"ID of attachment."})},atlascli_common_1.CommandWithSite.flags),GetMetadata.args=[{required:!0,name:"id",description:"ID of attachment."}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),mapper_utils_1=require("@thestarware/atlascli-common/lib/util/mapper-utils");class GetMetadata extends atlascli_common_1.CommandWithSite{async runWithSite(t){var{flags:a,args:e}=await this.parse(GetMetadata),e=await this.getJira(t,a).attachmentManager.getAttachmentMetadata(a.id||e.id);this.displayAttachmentMetadata(a,e,t.cloud)}displayAttachmentMetadata(t,a,e){this.displayJsonYamlOrTable(t,a,()=>this.tabularFormat([a],t,(t,a)=>{Object.assign(a,(0,mapper_utils_1.mapToUser)(t.author,e))}))}}(exports.default=GetMetadata).description="Returns the metadata for an attachment. Note that the attachment itself is not returned.",GetMetadata.flags=Object.assign({id:core_1.Flags.string({description:"ID of attachment."})},atlascli_common_1.CommandWithSite.flags),GetMetadata.args=[{required:!0,name:"id",description:"ID of attachment."}];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),get_content_1=tslib_1.__importDefault(require("./get-content")),core_1=require("@oclif/core");class GetThumbnails extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var a=(await this.parse(GetThumbnails))["flags"],i=this.removeFlagsFromBase(a),s=i["id"],i=tslib_1.__rest(i,["id"]),t=t.attachmentManager.getAttachmentThumbnail(s,i);this.display(a,t)}}(exports.default=GetThumbnails).description="Gets the thumbnail of an attachment.",GetThumbnails.flags=Object.assign({fallbackToDefault:core_1.Flags.boolean({description:"Whether a default thumbnail is returned when the requested thumbnail is not found.",default:!0}),width:core_1.Flags.integer({char:"w",description:"The maximum width to scale the thumbnail to."}),height:core_1.Flags.integer({char:"h",description:"The maximum height to scale the thumbnail to."})},get_content_1.default.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),get_content_1=tslib_1.__importDefault(require("./get-content")),core_1=require("@oclif/core");class GetThumbnails extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var a=(await this.parse(GetThumbnails)).flags,i=this.removeFlagsFromBase(a),l=i.id,i=tslib_1.__rest(i,["id"]),t=t.attachmentManager.getAttachmentThumbnail(l,i);this.display(a,t)}}(exports.default=GetThumbnails).description="Gets the thumbnail of an attachment.",GetThumbnails.flags=Object.assign({fallbackToDefault:core_1.Flags.boolean({description:"Whether a default thumbnail is returned when the requested thumbnail is not found.",default:!0}),width:core_1.Flags.integer({char:"w",description:"The maximum width to scale the thumbnail to."}),height:core_1.Flags.integer({char:"h",description:"The maximum height to scale the thumbnail to."})},get_content_1.default.flags);
@@ -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 GetAssociatedItems extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,t){var r=(await this.parse(GetAssociatedItems))["flags"],t=await t.auditRecordManager.getAuditRecords(r.offset,r.limit,r.filter,r.from,r.to),t=await this.modifyResponse(t.records);this.display(r,t)}async runWithServerSite(e,t){var r=(await this.parse(GetAssociatedItems))["flags"],t=await t.auditRecordManager.getAuditRecords(r.offset,r.limit,r.filter,r.from,r.to),t=await this.modifyResponse(t.records);this.display(r,t)}async modifyResponse(e){const r=[];return void 0!==e&&e.map(t=>(void 0!==t.associatedItems&&(t.associatedItems=t.associatedItems.map(e=>(e.associatedItemId=e.id,delete e.id,e.id=t.id,e.summary=t.summary,e.remoteAddress=t.remoteAddress,e.authorKey=t.authorKey,e.authorAccountId=t.authorAccountId,e.created=t.created,e.category=t.category,e.itemId=t.objectItem.id,e.itemName=t.objectItem.name,e.parentId=e.parentId||"",e.parentName=e.parentName||"",r.push(e),e))),t)),0===r.length&&r.push({name:"",typeName:"",parentId:"",parentName:"",associatedItemId:"",summary:"",remoteAddress:"",authorKey:"",authorAccountId:"",created:"",category:"",itemId:"",itemName:""}),r}}(exports.default=GetAssociatedItems).description="Get details of an item associated with the changed record.",GetAssociatedItems.flags=Object.assign({offset:core_1.Flags.integer({char:"o",description:"The number of records to skip before returning the first result."}),limit:core_1.Flags.integer({char:"l",description:"The maximum number of results to return."}),from:core_1.Flags.string({description:"The date and time on or after which returned audit records must have been created. Example date: 2014-03-19"}),to:core_1.Flags.string({description:"The date and time on or before which returned audit results must have been created.Example date: 2014-03-19"}),projectIds:core_1.Flags.string({description:"List of project ids to look for. Only for server."}),userIds:core_1.Flags.string({description:"List of user ids to look for. Only for server."})},atlascli_common_1.BaseCommandWithCloudOrServerSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetAssociatedItems extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,t){var r=(await this.parse(GetAssociatedItems)).flags,t=await t.auditRecordManager.getAuditRecords(r.offset,r.limit,r.filter,r.from,r.to),t=await this.modifyResponse(t.records);this.display(r,t)}async runWithServerSite(e,t){var r=(await this.parse(GetAssociatedItems)).flags,t=await t.auditRecordManager.getAuditRecords(r.offset,r.limit,r.filter,r.from,r.to),t=await this.modifyResponse(t.records);this.display(r,t)}async modifyResponse(e){let r=[];return void 0!==e&&e.map(t=>(void 0!==t.associatedItems&&(t.associatedItems=t.associatedItems.map(e=>(e.associatedItemId=e.id,delete e.id,e.id=t.id,e.summary=t.summary,e.remoteAddress=t.remoteAddress,e.authorKey=t.authorKey,e.authorAccountId=t.authorAccountId,e.created=t.created,e.category=t.category,e.itemId=t.objectItem.id,e.itemName=t.objectItem.name,e.parentId=e.parentId||"",e.parentName=e.parentName||"",r.push(e),e))),t)),0===r.length&&r.push({name:"",typeName:"",parentId:"",parentName:"",associatedItemId:"",summary:"",remoteAddress:"",authorKey:"",authorAccountId:"",created:"",category:"",itemId:"",itemName:""}),r}}(exports.default=GetAssociatedItems).description="Get details of an item associated with the changed record.",GetAssociatedItems.flags=Object.assign({offset:core_1.Flags.integer({char:"o",description:"The number of records to skip before returning the first result."}),limit:core_1.Flags.integer({char:"l",description:"The maximum number of results to return."}),from:core_1.Flags.string({description:"The date and time on or after which returned audit records must have been created. Example date: 2014-03-19"}),to:core_1.Flags.string({description:"The date and time on or before which returned audit results must have been created.Example date: 2014-03-19"}),projectIds:core_1.Flags.string({description:"List of project ids to look for. Only for server."}),userIds:core_1.Flags.string({description:"List of user ids to look for. Only for server."})},atlascli_common_1.BaseCommandWithCloudOrServerSite.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 GetAuditRecord extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,t){var r=(await this.parse(GetAuditRecord))["flags"],t=await t.auditRecordManager.getAuditRecords(r.offset,r.limit,r.filter,r.from,r.to),t=await this.modifyResponse(t.records,e);this.display(r,t)}async runWithServerSite(e,t){var r=(await this.parse(GetAuditRecord))["flags"],t=await t.auditRecordManager.getAuditRecords(r.offset,r.limit,r.filter,r.from,r.to),t=await this.modifyResponse(t.records,e);this.display(r,t)}async modifyResponse(e,o){const a=[];return void 0!==e&&e.map(r=>(void 0!==r.changedValues&&(r.changedValues=r.changedValues.map((e,t)=>(e.id=r.id,e.summary=r.summary,e.remoteAddress=r.remoteAddress,e.authorKey=r.authorKey,o.cloud&&(e.authorAccountId=r.authorAccountId),e.created=r.created,e.category=r.category,e.itemId=r.objectItem.id,e.itemName=r.objectItem.name,e.changedFrom=r.changedValues[t].changedFrom||"",e.changedTo=r.changedValues[t].changedTo,a.push(e),e))),r)),a}}(exports.default=GetAuditRecord).description="Get the list of values changed in the record event.",GetAuditRecord.flags=Object.assign({offset:core_1.Flags.integer({char:"o",description:"The number of records to skip before returning the first result."}),limit:core_1.Flags.integer({char:"l",description:"The maximum number of results to return."}),from:core_1.Flags.string({description:"The date and time on or after which returned audit records must have been created. Example date: 2014-03-19"}),to:core_1.Flags.string({description:"The date and time on or before which returned audit results must have been created. Example date: 2014-03-19"}),projectIds:core_1.Flags.string({description:"List of project ids to look for. Only for server."}),userIds:core_1.Flags.string({description:"List of user ids to look for. Only for server."})},atlascli_common_1.BaseCommandWithCloudOrServerSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetAuditRecord extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,t){var r=(await this.parse(GetAuditRecord)).flags,t=await t.auditRecordManager.getAuditRecords(r.offset,r.limit,r.filter,r.from,r.to),t=await this.modifyResponse(t.records,e);this.display(r,t)}async runWithServerSite(e,t){var r=(await this.parse(GetAuditRecord)).flags,t=await t.auditRecordManager.getAuditRecords(r.offset,r.limit,r.filter,r.from,r.to),t=await this.modifyResponse(t.records,e);this.display(r,t)}async modifyResponse(e,o){let a=[];return void 0!==e&&e.map(r=>(void 0!==r.changedValues&&(r.changedValues=r.changedValues.map((e,t)=>(e.id=r.id,e.summary=r.summary,e.remoteAddress=r.remoteAddress,e.authorKey=r.authorKey,o.cloud&&(e.authorAccountId=r.authorAccountId),e.created=r.created,e.category=r.category,e.itemId=r.objectItem.id,e.itemName=r.objectItem.name,e.changedFrom=r.changedValues[t].changedFrom||"",e.changedTo=r.changedValues[t].changedTo,a.push(e),e))),r)),a}}(exports.default=GetAuditRecord).description="Get the list of values changed in the record event.",GetAuditRecord.flags=Object.assign({offset:core_1.Flags.integer({char:"o",description:"The number of records to skip before returning the first result."}),limit:core_1.Flags.integer({char:"l",description:"The maximum number of results to return."}),from:core_1.Flags.string({description:"The date and time on or after which returned audit records must have been created. Example date: 2014-03-19"}),to:core_1.Flags.string({description:"The date and time on or before which returned audit results must have been created. Example date: 2014-03-19"}),projectIds:core_1.Flags.string({description:"List of project ids to look for. Only for server."}),userIds:core_1.Flags.string({description:"List of user ids to look for. Only for server."})},atlascli_common_1.BaseCommandWithCloudOrServerSite.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"),get_system_avatars_1=require("./get-system-avatars");class DeleteUniversalAvatar extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(DeleteUniversalAvatar))["flags"];await this.getJira(e,a).avatarManager.deleteUniversalAvatar(a.type,a.entityId,a.avatarId)}}(exports.default=DeleteUniversalAvatar).description="Deletes the system and custom avatars for a project or issue type.",DeleteUniversalAvatar.flags=Object.assign(Object.assign({type:get_system_avatars_1.UniversalAvatarFlag,entityId:core_1.Flags.string({required:!0,description:"The ID of the item the avatar is associated with."}),avatarId:core_1.Flags.string({required:!0,description:"The ID of the avatar."})},(0,atlascli_common_1.getCropInfoFlags)()),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"),get_system_avatars_1=require("./get-system-avatars");class DeleteUniversalAvatar extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(DeleteUniversalAvatar)).flags;await this.getJira(e,a).avatarManager.deleteUniversalAvatar(a.type,a.entityId,a.avatarId)}}(exports.default=DeleteUniversalAvatar).description="Deletes the system and custom avatars for a project or issue type.",DeleteUniversalAvatar.flags=Object.assign(Object.assign({type:get_system_avatars_1.UniversalAvatarFlag,entityId:core_1.Flags.string({required:!0,description:"The ID of the item the avatar is associated with."}),avatarId:core_1.Flags.string({required:!0,description:"The ID of the avatar."})},(0,atlascli_common_1.getCropInfoFlags)()),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"),base_command_with_cloud_or_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site")),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class DeleteUserAvatar extends base_command_with_cloud_or_server_site_1.default{async runWithServerSite(e,a){var r=(await this.parse(DeleteUserAvatar))["flags"],t=await(0,user_util_1.getUser)(a,r.user);r.username=t.username,await a.avatarManager.deleteUserAvatar(r.username,r.avatarId)}async runWithCloudSite(e,a){throw new Error("User avatars are not applicable to cloud!")}}(exports.default=DeleteUserAvatar).description="Deletes a custom avatar from a user. Note that system avatars cannot be deleted.",DeleteUserAvatar.flags=Object.assign({user:core_1.Flags.string({char:"u",required:!0,description:"The username or email."}),avatarId:core_1.Flags.string({required:!0,description:"The ID of the avatar."})},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"),base_command_with_cloud_or_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site")),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class DeleteUserAvatar extends base_command_with_cloud_or_server_site_1.default{async runWithServerSite(e,a){var r=(await this.parse(DeleteUserAvatar)).flags,t=await(0,user_util_1.getUser)(a,r.user);r.username=t.username,await a.avatarManager.deleteUserAvatar(r.username,r.avatarId)}async runWithCloudSite(e,a){throw new Error("User avatars are not applicable to cloud!")}}(exports.default=DeleteUserAvatar).description="Deletes a custom avatar from a user. Note that system avatars cannot be deleted.",DeleteUserAvatar.flags=Object.assign({user:core_1.Flags.string({char:"u",required:!0,description:"The username or email."}),avatarId:core_1.Flags.string({required:!0,description:"The ID of the avatar."})},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_cloud_or_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site")),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class GetAllUserAvatar extends base_command_with_cloud_or_server_site_1.default{async runWithServerSite(e,r){var a=(await this.parse(GetAllUserAvatar))["flags"],s=await(0,user_util_1.getUser)(r,a.user),s=(a.username=s.username,await r.avatarManager.getAllUserAvatars(a.username));this.display(a,[...s.system,...s.custom])}async runWithCloudSite(e,r){throw new Error("User avatars are not available for cloud!")}}(exports.default=GetAllUserAvatar).description="Returns all user avatars for specified user.",GetAllUserAvatar.flags=Object.assign({user:core_1.Flags.string({char:"u",required:!0,description:"The username or email."})},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_cloud_or_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site")),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class GetAllUserAvatar extends base_command_with_cloud_or_server_site_1.default{async runWithServerSite(e,r){var a=(await this.parse(GetAllUserAvatar)).flags,s=await(0,user_util_1.getUser)(r,a.user),s=(a.username=s.username,await r.avatarManager.getAllUserAvatars(a.username));this.display(a,[...s.system,...s.custom])}async runWithCloudSite(e,r){throw new Error("User avatars are not available for cloud!")}}(exports.default=GetAllUserAvatar).description="Returns all user avatars for specified user.",GetAllUserAvatar.flags=Object.assign({user:core_1.Flags.string({char:"u",required:!0,description:"The username or email."})},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"),avatar_utils_1=require("@thestarware/atlascli-common/lib/avatar-utils"),get_image_by_type_1=tslib_1.__importDefault(require("./get-image-by-type"));class GetAvatarImageById extends get_image_by_type_1.default{async runWithCloudSite(e,a){var t=(await this.parse(GetAvatarImageById))["flags"],r=this.removeFlagsFromBase(t),{type:i,fileName:s,id:l}=r,r=tslib_1.__rest(r,["type","fileName","id"]),a=await a.avatarManager.getAvatarImageByOwner(i,l,r);(0,avatar_utils_1.downloadAvatar)(s+("."+t.format),a)}}(exports.default=GetAvatarImageById).description="Downloads a project or issue type avatar image by ID .",GetAvatarImageById.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the avatar.",required:!0})},get_image_by_type_1.default.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),avatar_utils_1=require("@thestarware/atlascli-common/lib/avatar-utils"),get_image_by_type_1=tslib_1.__importDefault(require("./get-image-by-type"));class GetAvatarImageById extends get_image_by_type_1.default{async runWithCloudSite(e,a){var t=(await this.parse(GetAvatarImageById)).flags,r=this.removeFlagsFromBase(t),{type:i,fileName:s,id:l}=r,r=tslib_1.__rest(r,["type","fileName","id"]),a=await a.avatarManager.getAvatarImageByOwner(i,l,r);(0,avatar_utils_1.downloadAvatar)(s+("."+t.format),a)}}(exports.default=GetAvatarImageById).description="Downloads a project or issue type avatar image by ID .",GetAvatarImageById.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the avatar.",required:!0})},get_image_by_type_1.default.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),avatar_utils_1=require("@thestarware/atlascli-common/lib/avatar-utils"),get_image_by_type_1=tslib_1.__importDefault(require("./get-image-by-type"));class GetAvatarImageByOwner extends get_image_by_type_1.default{async runWithCloudSite(e,t){var a=(await this.parse(GetAvatarImageByOwner))["flags"],r=this.removeFlagsFromBase(a),{type:i,fileName:s,entityId:o}=r,r=tslib_1.__rest(r,["type","fileName","entityId"]),t=await t.avatarManager.getAvatarImageByOwner(i,o,r);(0,avatar_utils_1.downloadAvatar)(s+("."+a.format),t)}}(exports.default=GetAvatarImageByOwner).description="Downloads the avatar image for a project or issue type into given file name.",GetAvatarImageByOwner.flags=Object.assign({entityId:core_1.Flags.string({char:"i",description:"The ID of the project or issue type the avatar belongs to.",required:!0})},get_image_by_type_1.default.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),avatar_utils_1=require("@thestarware/atlascli-common/lib/avatar-utils"),get_image_by_type_1=tslib_1.__importDefault(require("./get-image-by-type"));class GetAvatarImageByOwner extends get_image_by_type_1.default{async runWithCloudSite(e,t){var a=(await this.parse(GetAvatarImageByOwner)).flags,r=this.removeFlagsFromBase(a),{type:i,fileName:s,entityId:l}=r,r=tslib_1.__rest(r,["type","fileName","entityId"]),t=await t.avatarManager.getAvatarImageByOwner(i,l,r);(0,avatar_utils_1.downloadAvatar)(s+("."+a.format),t)}}(exports.default=GetAvatarImageByOwner).description="Downloads the avatar image for a project or issue type into given file name.",GetAvatarImageByOwner.flags=Object.assign({entityId:core_1.Flags.string({char:"i",description:"The ID of the project or issue type the avatar belongs to.",required:!0})},get_image_by_type_1.default.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"),avatar_utils_1=require("@thestarware/atlascli-common/lib/avatar-utils");class GetAvatarImageByType extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(GetAvatarImageByType))["flags"],r=this.removeFlagsFromBase(t),{type:i,fileName:s}=r,r=tslib_1.__rest(r,["type","fileName"]),a=await a.avatarManager.getAvatarImageByType(i,r);(0,avatar_utils_1.downloadAvatar)(s+("."+t.format),a)}}(exports.default=GetAvatarImageByType).description="Downloads the default project or issue type avatar image into given file name.",GetAvatarImageByType.flags=Object.assign({fileName:core_1.Flags.string({description:"File name that image will be saved in.",dependsOn:["format"],required:!0}),type:core_1.Flags.string({char:"t",description:"The icon type of the avatar.",options:["issuetype","project"],required:!0}),size:core_1.Flags.string({description:"The size of the avatar image. If not provided the default size is returned.",options:["xsmall","small","medium","large","xlarge"]}),format:core_1.Flags.string({char:"f",description:"The format to return the avatar image in. If not provided the original content format is returned.",options:["png","svg"],dependsOn:["fileName"]})},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"),avatar_utils_1=require("@thestarware/atlascli-common/lib/avatar-utils");class GetAvatarImageByType extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(GetAvatarImageByType)).flags,r=this.removeFlagsFromBase(t),{type:i,fileName:s}=r,r=tslib_1.__rest(r,["type","fileName"]),a=await a.avatarManager.getAvatarImageByType(i,r);(0,avatar_utils_1.downloadAvatar)(s+("."+t.format),a)}}(exports.default=GetAvatarImageByType).description="Downloads the default project or issue type avatar image into given file name.",GetAvatarImageByType.flags=Object.assign({fileName:core_1.Flags.string({description:"File name that image will be saved in.",dependsOn:["format"],required:!0}),type:core_1.Flags.string({char:"t",description:"The icon type of the avatar.",options:["issuetype","project"],required:!0}),size:core_1.Flags.string({description:"The size of the avatar image. If not provided the default size is returned.",options:["xsmall","small","medium","large","xlarge"]}),format:core_1.Flags.string({char:"f",description:"The format to return the avatar image in. If not provided the original content format is returned.",options:["png","svg"],dependsOn:["fileName"]})},atlascli_common_1.BaseCommandWithCloudSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.UniversalAvatarFlag=exports.AvatarFlag=void 0;const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),avatar_1=require("@thestarware/atlassian-typescript-client/lib/jira/common/avatar");exports.AvatarFlag=core_1.Flags.string({required:!0,description:"Type of avatar.",options:[avatar_1.AvatarType.ISSUE_TYPE,avatar_1.AvatarType.PROJECT,avatar_1.AvatarType.USER]}),exports.UniversalAvatarFlag=core_1.Flags.string({required:!0,description:"Type of avatar.",options:[avatar_1.AvatarType.ISSUE_TYPE,avatar_1.AvatarType.PROJECT]});class GetSystemAvatars extends atlascli_common_1.CommandWithSite{async runWithSite(a){var t=(await this.parse(GetSystemAvatars))["flags"],a=await this.getJira(a,t).avatarManager.getSystemAvatarsByType(t.type);this.display(t,[...a.system])}}(exports.default=GetSystemAvatars).description="Returns all system avatars of the given type.",GetSystemAvatars.flags=Object.assign({type:exports.AvatarFlag},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.UniversalAvatarFlag=exports.AvatarFlag=void 0;let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),avatar_1=require("@thestarware/atlassian-typescript-client/lib/jira/common/avatar");exports.AvatarFlag=core_1.Flags.string({required:!0,description:"Type of avatar.",options:[avatar_1.AvatarType.ISSUE_TYPE,avatar_1.AvatarType.PROJECT,avatar_1.AvatarType.USER]}),exports.UniversalAvatarFlag=core_1.Flags.string({required:!0,description:"Type of avatar.",options:[avatar_1.AvatarType.ISSUE_TYPE,avatar_1.AvatarType.PROJECT]});class GetSystemAvatars extends atlascli_common_1.CommandWithSite{async runWithSite(a){var t=(await this.parse(GetSystemAvatars)).flags,a=await this.getJira(a,t).avatarManager.getSystemAvatarsByType(t.type);this.display(t,[...a.system])}}(exports.default=GetSystemAvatars).description="Returns all system avatars of the given type.",GetSystemAvatars.flags=Object.assign({type:exports.AvatarFlag},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"),get_system_avatars_1=require("./get-system-avatars");class GetUniversalAvatar extends atlascli_common_1.CommandWithSite{async runWithSite(a){var t=(await this.parse(GetUniversalAvatar))["flags"],a=await this.getJira(a,t).avatarManager.getUniversalAvatars(t.type,t.entityId);this.display(t,[...a.system,...a.custom])}}(exports.default=GetUniversalAvatar).description="Returns the system and custom avatars for a project or issue type.",GetUniversalAvatar.flags=Object.assign(Object.assign({type:get_system_avatars_1.UniversalAvatarFlag,entityId:core_1.Flags.string({required:!0,description:"The ID of the item the avatar is associated with."})},(0,atlascli_common_1.getCropInfoFlags)()),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"),get_system_avatars_1=require("./get-system-avatars");class GetUniversalAvatar extends atlascli_common_1.CommandWithSite{async runWithSite(a){var t=(await this.parse(GetUniversalAvatar)).flags,a=await this.getJira(a,t).avatarManager.getUniversalAvatars(t.type,t.entityId);this.display(t,[...a.system,...a.custom])}}(exports.default=GetUniversalAvatar).description="Returns the system and custom avatars for a project or issue type.",GetUniversalAvatar.flags=Object.assign(Object.assign({type:get_system_avatars_1.UniversalAvatarFlag,entityId:core_1.Flags.string({required:!0,description:"The ID of the item the avatar is associated with."})},(0,atlascli_common_1.getCropInfoFlags)()),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"),base_command_with_cloud_or_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site")),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class SetUserAvatar extends base_command_with_cloud_or_server_site_1.default{async runWithServerSite(e,a){var r=(await this.parse(SetUserAvatar))["flags"],t=await(0,user_util_1.getUser)(a,r.user);r.username=t.username,await a.avatarManager.setUserAvatar(r.username,r.avatarId)}async runWithCloudSite(e,a){throw new Error("User avatars are not applicable to cloud!")}}(exports.default=SetUserAvatar).description="Sets the user avatar to an already uploaded/existing avatar.",SetUserAvatar.flags=Object.assign({user:core_1.Flags.string({char:"u",required:!0,description:"The username or email."}),avatarId:core_1.Flags.string({required:!0,description:"The ID of the avatar."})},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"),base_command_with_cloud_or_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site")),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class SetUserAvatar extends base_command_with_cloud_or_server_site_1.default{async runWithServerSite(e,a){var r=(await this.parse(SetUserAvatar)).flags,t=await(0,user_util_1.getUser)(a,r.user);r.username=t.username,await a.avatarManager.setUserAvatar(r.username,r.avatarId)}async runWithCloudSite(e,a){throw new Error("User avatars are not applicable to cloud!")}}(exports.default=SetUserAvatar).description="Sets the user avatar to an already uploaded/existing avatar.",SetUserAvatar.flags=Object.assign({user:core_1.Flags.string({char:"u",required:!0,description:"The username or email."}),avatarId:core_1.Flags.string({required:!0,description:"The ID of the avatar."})},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"),upload_1=tslib_1.__importDefault(require("../project-avatar/upload")),get_system_avatars_1=require("./get-system-avatars"),core_1=require("@oclif/core"),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 UploadUniversalAvatar extends base_command_with_cloud_or_server_site_1.default{async runWithCloudSite(a,e){var{flags:t,args:r}=await this.parse(UploadUniversalAvatar),{fileContent:r,fileName:i}=(0,atlascli_common_1.readFile)(r.avatarFile),e=await e.avatarManager.uploadUniversalAvatar(t.type,t.entityId,i,r,upload_1.default.getCloudCropInfo(t));this.display(t,[e])}async runWithServerSite(a,e){var{flags:t,args:r}=await this.parse(UploadUniversalAvatar),{fileContent:r,fileName:i}=(0,atlascli_common_1.readFile)(r.avatarFile),e=await e.avatarManager.uploadUniversalAvatar(t.type,t.entityId,i,r,upload_1.default.getServerCropInfo(t));this.display(t,[e])}}(exports.default=UploadUniversalAvatar).description="Uploads a custom avatar for a project or issue type.",UploadUniversalAvatar.flags=Object.assign(Object.assign({type:get_system_avatars_1.UniversalAvatarFlag,entityId:core_1.Flags.string({required:!0,description:"The ID of the item the avatar is associated with."})},(0,atlascli_common_1.getCropInfoFlags)()),atlascli_common_1.CommandWithSite.flags),UploadUniversalAvatar.args=[{required:!0,name:"avatarFile",description:"Location of avatar file"}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),upload_1=tslib_1.__importDefault(require("../project-avatar/upload")),get_system_avatars_1=require("./get-system-avatars"),core_1=require("@oclif/core"),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 UploadUniversalAvatar extends base_command_with_cloud_or_server_site_1.default{async runWithCloudSite(a,e){var{flags:t,args:r}=await this.parse(UploadUniversalAvatar),{fileContent:r,fileName:i}=(0,atlascli_common_1.readFile)(r.avatarFile),e=await e.avatarManager.uploadUniversalAvatar(t.type,t.entityId,i,r,upload_1.default.getCloudCropInfo(t));this.display(t,[e])}async runWithServerSite(a,e){var{flags:t,args:r}=await this.parse(UploadUniversalAvatar),{fileContent:r,fileName:i}=(0,atlascli_common_1.readFile)(r.avatarFile),e=await e.avatarManager.uploadUniversalAvatar(t.type,t.entityId,i,r,upload_1.default.getServerCropInfo(t));this.display(t,[e])}}(exports.default=UploadUniversalAvatar).description="Uploads a custom avatar for a project or issue type.",UploadUniversalAvatar.flags=Object.assign(Object.assign({type:get_system_avatars_1.UniversalAvatarFlag,entityId:core_1.Flags.string({required:!0,description:"The ID of the item the avatar is associated with."})},(0,atlascli_common_1.getCropInfoFlags)()),atlascli_common_1.CommandWithSite.flags),UploadUniversalAvatar.args=[{required:!0,name:"avatarFile",description:"Location of avatar file"}];
@@ -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_cloud_or_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site")),core_1=require("@oclif/core"),upload_1=tslib_1.__importDefault(require("../project-avatar/upload")),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class UploadUserAvatar extends base_command_with_cloud_or_server_site_1.default{async runWithServerSite(a,e){var{flags:r,args:s}=await this.parse(UploadUserAvatar),{fileContent:s,fileName:t}=(0,atlascli_common_1.readFile)(s.avatarFile),o=await(0,user_util_1.getUser)(e,r.user),o=(r.username=o.username,await e.avatarManager.uploadUserAvatar(r.username,t,s,upload_1.default.getServerCropInfo(r)));this.display(r,[o])}async runWithCloudSite(a,e){throw new Error("Uploading user avatars is not possible in cloud")}}(exports.default=UploadUserAvatar).description="Uploads an avatar for a user.",UploadUserAvatar.flags=Object.assign(Object.assign({user:core_1.Flags.string({char:"u",required:!0,description:"The username or email."})},(0,atlascli_common_1.getCropInfoFlags)()),atlascli_common_1.CommandWithSite.flags),UploadUserAvatar.args=upload_1.default.args;
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),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")),core_1=require("@oclif/core"),upload_1=tslib_1.__importDefault(require("../project-avatar/upload")),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class UploadUserAvatar extends base_command_with_cloud_or_server_site_1.default{async runWithServerSite(a,e){var{flags:r,args:t}=await this.parse(UploadUserAvatar),{fileContent:t,fileName:s}=(0,atlascli_common_1.readFile)(t.avatarFile),l=await(0,user_util_1.getUser)(e,r.user),l=(r.username=l.username,await e.avatarManager.uploadUserAvatar(r.username,s,t,upload_1.default.getServerCropInfo(r)));this.display(r,[l])}async runWithCloudSite(a,e){throw new Error("Uploading user avatars is not possible in cloud")}}(exports.default=UploadUserAvatar).description="Uploads an avatar for a user.",UploadUserAvatar.flags=Object.assign(Object.assign({user:core_1.Flags.string({char:"u",required:!0,description:"The username or email."})},(0,atlascli_common_1.getCropInfoFlags)()),atlascli_common_1.CommandWithSite.flags),UploadUserAvatar.args=upload_1.default.args;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.commentFlags=void 0;const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),get_with_ids_1=tslib_1.__importDefault(require("./get-with-ids"));exports.commentFlags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),body:core_1.Flags.string({required:!0,description:"Body of the comment. For cloud this can be in Atlassian Document Format. For Server/DC this is a string."})},(0,atlascli_common_1.getVisibilityFlags)());class AddComment extends atlascli_common_1.CommandWithSite{async runWithSite(t){var e=(await this.parse(AddComment))["flags"],i=this.getJira(t,e),s=(0,atlascli_common_1.getVisibility)(e),i=await i.commentManager.addComment(e.issue,(0,atlascli_common_1.getComment)(e.body,t.cloud),s,void 0);this.isTabularOutput(e)?this.display(e,get_with_ids_1.default.convertComment(i,t.cloud)):this.display(e,i)}}(exports.default=AddComment).description="Adds a comment.",AddComment.flags=Object.assign(Object.assign({},exports.commentFlags),atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.commentFlags=void 0;let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),get_with_ids_1=tslib_1.__importDefault(require("./get-with-ids"));exports.commentFlags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),body:core_1.Flags.string({required:!0,description:"Body of the comment. For cloud this can be in Atlassian Document Format. For Server/DC this is a string."})},(0,atlascli_common_1.getVisibilityFlags)());class AddComment extends atlascli_common_1.CommandWithSite{async runWithSite(t){var e=(await this.parse(AddComment)).flags,i=this.getJira(t,e),s=(0,atlascli_common_1.getVisibility)(e),i=await i.commentManager.addComment(e.issue,(0,atlascli_common_1.getComment)(e.body,t.cloud),s,void 0);this.isTabularOutput(e)?this.display(e,get_with_ids_1.default.convertComment(i,t.cloud)):this.display(e,i)}}(exports.default=AddComment).description="Adds a comment.",AddComment.flags=Object.assign(Object.assign({},exports.commentFlags),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 GetComments extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetComments))["flags"];await this.getJira(e,t).commentManager.deleteComment(t.issue,t.commentId)}}(exports.default=GetComments).description="Deletes a comment.",GetComments.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),commentId:core_1.Flags.string({required:!0,description:"Comment ID."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetComments extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetComments)).flags;await this.getJira(e,t).commentManager.deleteComment(t.issue,t.commentId)}}(exports.default=GetComments).description="Deletes a comment.",GetComments.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),commentId:core_1.Flags.string({required:!0,description:"Comment ID."})},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"),get_with_ids_1=tslib_1.__importDefault(require("./get-with-ids"));class GetComments extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:s,args:t}=await this.parse(GetComments),i=this.getJira(e,s),t=s.issue||t.issue;if(!t)throw new Error("You have to provide an issue ID or key!");i=await i.commentManager.getComments(t);"json"===s.output?this.display(s,i):get_with_ids_1.default.displayComments(this.display.bind(this),i.comments,e.cloud,s)}}(exports.default=GetComments).description="Returns comments for an issue.",GetComments.flags=Object.assign({issue:core_1.Flags.string({description:"Issue ID or key."})},atlascli_common_1.CommandWithSite.flags),GetComments.args=[{name:"issue",description:"Issue ID or key."}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),get_with_ids_1=tslib_1.__importDefault(require("./get-with-ids"));class GetComments extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:s,args:t}=await this.parse(GetComments),i=this.getJira(e,s),t=s.issue||t.issue;if(!t)throw new Error("You have to provide an issue ID or key!");i=await i.commentManager.getComments(t);"json"===s.output?this.display(s,i):get_with_ids_1.default.displayComments(this.display.bind(this),i.comments,e.cloud,s)}}(exports.default=GetComments).description="Returns comments for an issue.",GetComments.flags=Object.assign({issue:core_1.Flags.string({description:"Issue ID or key."})},atlascli_common_1.CommandWithSite.flags),GetComments.args=[{name:"issue",description:"Issue ID or key."}];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),mapper_utils_1=require("@thestarware/atlascli-common/lib/util/mapper-utils"),core_1=require("@oclif/core");class GetCommentsWithIds extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(t,e){var i=(await this.parse(GetCommentsWithIds))["flags"],e=await e.commentManager.getCommentsWithIds(i.id);this.isTabularOutput(i)?GetCommentsWithIds.displayComments(this.display.bind(this),e.values,t.cloud,i):this.display(i,e)}static convertComment(t,e){return Object.assign(Object.assign({id:t.id,comment:t.renderedBody||""},(0,mapper_utils_1.mapToUser)(t.author,e)),{created:t.created,updated:t.updated,visibility:t.visibility?t.visibility.type+"/"+t.visibility.value:""})}static displayComments(t,e,i,s){const a=[];e.forEach(t=>{a.push(GetCommentsWithIds.convertComment(t,i))}),t(s,a)}}(exports.default=GetCommentsWithIds).description="Gets comments with specified IDs.",GetCommentsWithIds.flags=Object.assign({id:core_1.Flags.integer({multiple:!0,description:"Comment ID.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),mapper_utils_1=require("@thestarware/atlascli-common/lib/util/mapper-utils"),core_1=require("@oclif/core");class GetCommentsWithIds extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(t,e){var i=(await this.parse(GetCommentsWithIds)).flags,e=await e.commentManager.getCommentsWithIds(i.id);this.isTabularOutput(i)?GetCommentsWithIds.displayComments(this.display.bind(this),e.values,t.cloud,i):this.display(i,e)}static convertComment(t,e){return Object.assign(Object.assign({id:t.id,comment:t.renderedBody||""},(0,mapper_utils_1.mapToUser)(t.author,e)),{created:t.created,updated:t.updated,visibility:t.visibility?t.visibility.type+"/"+t.visibility.value:""})}static displayComments(t,e,i,s){let a=[];e.forEach(t=>{a.push(GetCommentsWithIds.convertComment(t,i))}),t(s,a)}}(exports.default=GetCommentsWithIds).description="Gets comments with specified IDs.",GetCommentsWithIds.flags=Object.assign({id:core_1.Flags.integer({multiple:!0,description:"Comment ID.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),get_with_ids_1=tslib_1.__importDefault(require("./get-with-ids"));class GetComments extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetComments))["flags"],s=await this.getJira(e,t).commentManager.getComment(t.issue,t.commentId);this.isTabularOutput(t)?this.display(t,get_with_ids_1.default.convertComment(s,e.cloud)):this.display(t,s)}}(exports.default=GetComments).description="Returns a comment.",GetComments.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),commentId:core_1.Flags.string({required:!0,description:"Comment ID."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),get_with_ids_1=tslib_1.__importDefault(require("./get-with-ids"));class GetComments extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetComments)).flags,i=await this.getJira(e,t).commentManager.getComment(t.issue,t.commentId);this.isTabularOutput(t)?this.display(t,get_with_ids_1.default.convertComment(i,e.cloud)):this.display(t,i)}}(exports.default=GetComments).description="Returns a comment.",GetComments.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),commentId:core_1.Flags.string({required:!0,description:"Comment ID."})},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"),comments_1=require("@thestarware/atlassian-typescript-client/lib/jira/common/comments"),get_with_ids_1=tslib_1.__importDefault(require("./get-with-ids")),add_1=require("./add"),mapper_utils_1=require("@thestarware/atlascli-common/lib/util/mapper-utils");class UpdateComment extends atlascli_common_1.CommandWithSite{async runWithSite(t){var e=(await this.parse(UpdateComment))["flags"],i=this.getJira(t,e),a=comments_1.VisibilityType?{type:e.visibilityType,value:e.visibilityValue}:void 0,i=await i.commentManager.updateComment(e.issue,e.commentId,(0,mapper_utils_1.getComment)(e.body,t.cloud),a,void 0);this.isTabularOutput(e)?this.display(e,get_with_ids_1.default.convertComment(i,t.cloud)):this.display(e,i)}}(exports.default=UpdateComment).description="Updates a comment.",UpdateComment.flags=Object.assign(Object.assign({commentId:core_1.Flags.string({required:!0,description:"Comment ID."})},add_1.commentFlags),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"),comments_1=require("@thestarware/atlassian-typescript-client/lib/jira/common/comments"),get_with_ids_1=tslib_1.__importDefault(require("./get-with-ids")),add_1=require("./add"),mapper_utils_1=require("@thestarware/atlascli-common/lib/util/mapper-utils");class UpdateComment extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(UpdateComment)).flags,i=this.getJira(e,t),a=comments_1.VisibilityType?{type:t.visibilityType,value:t.visibilityValue}:void 0,i=await i.commentManager.updateComment(t.issue,t.commentId,(0,mapper_utils_1.getComment)(t.body,e.cloud),a,void 0);this.isTabularOutput(t)?this.display(t,get_with_ids_1.default.convertComment(i,e.cloud)):this.display(t,i)}}(exports.default=UpdateComment).description="Updates a comment.",UpdateComment.flags=Object.assign(Object.assign({commentId:core_1.Flags.string({required:!0,description:"Comment ID."})},add_1.commentFlags),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 DeleteCommentProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteCommentProperty))["flags"];await this.getJira(e,t).commentPropertyManager.deleteCommentProperty(t.commentId,t.key)}}(exports.default=DeleteCommentProperty).description="Deletes a property for a comment.",DeleteCommentProperty.flags=Object.assign({commentId:core_1.Flags.string({required:!0,description:"Comment ID."}),key:core_1.Flags.string({required:!0,description:"Property key."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class DeleteCommentProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteCommentProperty)).flags;await this.getJira(e,t).commentPropertyManager.deleteCommentProperty(t.commentId,t.key)}}(exports.default=DeleteCommentProperty).description="Deletes a property for a comment.",DeleteCommentProperty.flags=Object.assign({commentId:core_1.Flags.string({required:!0,description:"Comment ID."}),key:core_1.Flags.string({required:!0,description:"Property key."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetCommentPropertyKeys extends atlascli_common_1.CommandWithSite{async runWithSite(e){const t=(await this.parse(GetCommentPropertyKeys))["flags"];const o=await this.getJira(e,t).commentPropertyManager.getCommentPropertyKeys(t.commentId);this.displayJsonYamlOrTable(t,o,()=>this.tabularFormat(o.keys,t))}}(exports.default=GetCommentPropertyKeys).description="Returns the keys of all the properties of a comment.",GetCommentPropertyKeys.flags=Object.assign({commentId:core_1.Flags.string({required:!0,description:"Comment ID."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetCommentPropertyKeys extends atlascli_common_1.CommandWithSite{async runWithSite(e){let t=(await this.parse(GetCommentPropertyKeys)).flags;let o=await this.getJira(e,t).commentPropertyManager.getCommentPropertyKeys(t.commentId);this.displayJsonYamlOrTable(t,o,()=>this.tabularFormat(o.keys,t))}}(exports.default=GetCommentPropertyKeys).description="Returns the keys of all the properties of a comment.",GetCommentPropertyKeys.flags=Object.assign({commentId:core_1.Flags.string({required:!0,description:"Comment ID."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetCommentProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetCommentProperty))["flags"],e=await this.getJira(e,t).commentPropertyManager.getCommentProperty(t.commentId,t.key);this.display(t,e)}}(exports.default=GetCommentProperty).description="Gets the value of a property for a comment.",GetCommentProperty.flags=Object.assign({commentId:core_1.Flags.string({required:!0,description:"Comment ID."}),key:core_1.Flags.string({required:!0,description:"Property key."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetCommentProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetCommentProperty)).flags,e=await this.getJira(e,t).commentPropertyManager.getCommentProperty(t.commentId,t.key);this.display(t,e)}}(exports.default=GetCommentProperty).description="Gets the value of a property for a comment.",GetCommentProperty.flags=Object.assign({commentId:core_1.Flags.string({required:!0,description:"Comment ID."}),key:core_1.Flags.string({required:!0,description:"Property key."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class SetCommentProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(SetCommentProperty))["flags"];await this.getJira(e,t).commentPropertyManager.setCommentProperty(t.commentId,t.key,t.value)}}(exports.default=SetCommentProperty).description="Creates or updates the value of a property for a comment.",SetCommentProperty.flags=Object.assign({commentId:core_1.Flags.string({required:!0,description:"Comment ID."}),key:core_1.Flags.string({required:!0,description:"Property key."}),value:core_1.Flags.string({required:!0,description:"Non-empty JSON blob. The maximum length is 32768 characters."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class SetCommentProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(SetCommentProperty)).flags;await this.getJira(e,t).commentPropertyManager.setCommentProperty(t.commentId,t.key,t.value)}}(exports.default=SetCommentProperty).description="Creates or updates the value of a property for a comment.",SetCommentProperty.flags=Object.assign({commentId:core_1.Flags.string({required:!0,description:"Comment ID."}),key:core_1.Flags.string({required:!0,description:"Property key."}),value:core_1.Flags.string({required:!0,description:"Non-empty JSON blob. The maximum length is 32768 characters."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),enquirer_1=require("enquirer"),node_fetch_1=tslib_1.__importDefault(require("node-fetch")),atlascli_common_1=require("@thestarware/atlascli-common"),uuid_1=require("uuid"),chalk_1=tslib_1.__importDefault(require("chalk"));class ConfigAdd extends atlascli_common_1.Command{async run(){var e=(await this.parse(ConfigAdd))["flags"],t=await this.getSiteURL(e),r=await this.getAlias(e);let i;var s=await ConfigAdd.getServerInfo(t),s=(i="Cloud"!==s.deploymentType?await this.runJiraServer(t,e,s):await this.runJiraCloud(t,e),await this.addSite(r,i),this.conf.get("sites"));1===Object.keys(s).length&&this.conf.set("defaultSite",r)}async getAlias(e){let t=null;for(;null===t;){t=e.alias||await this.promptUser("text","alias","Alias for the site?");var r=0<Object.keys(this.sites).filter(e=>e===t).length;if(r)if(!(await(0,enquirer_1.prompt)({type:"confirm",name:"override",message:`'${t}' already exist. Do you want to override?`})).override)throw new Error("Alias already exist")}return t}static async getServerInfo(e){return core_1.CliUx.ux.action.start("Checking site..."),e.toString().endsWith("/")||(e=new URL(e+"/")),(0,node_fetch_1.default)(e+"rest/api/2/serverInfo").then(async e=>e.json()).then(e=>(core_1.CliUx.ux.action.stop(chalk_1.default.green("Done")),e)).catch(e=>{throw core_1.CliUx.ux.action.stop(chalk_1.default.red("Failed")),e})}async runJiraCloud(e,t){var r=await this.getEmail(t),i=await this.getToken(t),s=await this.getWebTriggerURL(t),e={cloud:!0,uuid:(0,uuid_1.v4)(),site:e.toString(),webTriggerURL:s,email:r,token:i};if(200!=(await(0,node_fetch_1.default)(s+"?id="+e.uuid)).status)throw new Error("invalid webtrigger url");r=this.getJira(e,t);return await r.doFetch(r.makeUri("/serverInfo")),e}async runJiraServer(e,t,r){var i=await this.getUsername(t);let s,a;(8<r.versionNumbers[0]||8===r.versionNumbers[0]&&14<=r.versionNumbers[1]?await(0,enquirer_1.prompt)({type:"confirm",name:"useToken",initial:!0,message:"Do you want to use token instead of password (recommended)?"}):{useToken:!1}).useToken?a=await this.getToken(t):s=await this.getPassword(t);r={cloud:!1,uuid:(0,uuid_1.v4)(),site:e.toString(),username:i,password:s,token:a},e=this.getJira(r,t);return await e.doFetch(e.makeUri("/serverInfo")),r}async getUsername(e){return e.username||process.env.ATLASCLI_USERNAME||this.promptUser("text","username","Username?")}async getEmail(e){return e.email||process.env.ATLASCLI_EMAIL||this.promptUser("text","email","E-mail?")}async getToken(e){return e.token||process.env.ATLASCLI_TOKEN||this.promptUser("password","token","OAuth Token?")}async getWebTriggerURL(e){return e.webTriggerURL||this.promptUser("text","webTriggerURL","Web Trigger? https://bit.ly/3nGExBi")}async getPassword(e){return e.password||process.env.ATLASCLI_PASSWORD||this.promptUser("password","password","Password?")}async getSiteURL(e){let t=e.site||await this.promptUser("text","site","Site URL?");return t.startsWith("http://")||t.startsWith("https://")||(t="https://"+t),new URL(t)}}(exports.default=ConfigAdd).description="Adds a new Jira site configuration.",ConfigAdd.flags=Object.assign(Object.assign({},atlascli_common_1.Command.flags),{site:core_1.Flags.string({char:"s",description:"URL of Jira site"}),username:core_1.Flags.string({char:"u",description:"username for username/password authentication",exclusive:["email"],dependsOn:["password"]}),password:core_1.Flags.string({char:"p",description:"password for username/password authentication",dependsOn:["username"]}),email:core_1.Flags.string({char:"e",description:"e-mail for authentication",exclusive:["username"],dependsOn:["email"]}),token:core_1.Flags.string({char:"t",description:"oauth authentication token associated with e-mail",dependsOn:["email"]}),webTriggerURL:core_1.Flags.string({char:"t",description:"Install the corresponding Forge add-on and run webtrigger on the terminal. After that, copy & paste the complete URL here.",dependsOn:["email"]}),alias:core_1.Flags.string({char:"a",description:"alias for the site"}),help:core_1.Flags.help({char:"h"})});
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),enquirer_1=require("enquirer"),node_fetch_1=tslib_1.__importDefault(require("node-fetch")),atlascli_common_1=require("@thestarware/atlascli-common"),uuid_1=require("uuid"),chalk_1=tslib_1.__importDefault(require("chalk"));class ConfigAdd extends atlascli_common_1.Command{async run(){var e=(await this.parse(ConfigAdd)).flags,t=await this.getSiteURL(e),r=await this.getAlias(e);let i;var s=await ConfigAdd.getServerInfo(t),s=(i="Cloud"!==s.deploymentType?await this.runJiraServer(t,e,s):await this.runJiraCloud(t,e),await this.addSite(r,i),this.conf.get("sites"));1===Object.keys(s).length&&this.conf.set("defaultSite",r)}async getAlias(e){let t=null;for(;null===t;){t=e.alias||await this.promptUser("text","alias","Alias for the site?");var r=0<Object.keys(this.sites).filter(e=>e===t).length;if(r)if(!(await(0,enquirer_1.prompt)({type:"confirm",name:"override",message:`'${t}' already exist. Do you want to override?`})).override)throw new Error("Alias already exist")}return t}static async getServerInfo(e){return core_1.CliUx.ux.action.start("Checking site..."),e.toString().endsWith("/")||(e=new URL(e+"/")),(0,node_fetch_1.default)(e+"rest/api/2/serverInfo").then(async e=>e.ok?e.json():{deploymentType:"Server",versionNumbers:[10]}).then(e=>(core_1.CliUx.ux.action.stop(chalk_1.default.green("Done")),e)).catch(e=>{throw core_1.CliUx.ux.action.stop(chalk_1.default.red("Failed")),e})}async runJiraCloud(e,t){var r=await this.getEmail(t),i=await this.getToken(t),s=await this.getWebTriggerURL(t),e={cloud:!0,uuid:(0,uuid_1.v4)(),site:e.toString(),webTriggerURL:s,email:r,token:i};if(200!==(await(0,node_fetch_1.default)(s+"?id="+e.uuid)).status)throw new Error("invalid webtrigger url");r=this.getJira(e,t);return await r.doFetch(r.makeUri("/serverInfo")),e}async runJiraServer(e,t,r){var i=await this.getUsername(t);let s,a;(8<r.versionNumbers[0]||8===r.versionNumbers[0]&&14<=r.versionNumbers[1]?await(0,enquirer_1.prompt)({type:"confirm",name:"useToken",initial:!0,message:"Do you want to use token instead of password (recommended)?"}):{useToken:!1}).useToken?a=await this.getToken(t):s=await this.getPassword(t);r={cloud:!1,uuid:(0,uuid_1.v4)(),site:e.toString(),username:i,password:s,token:a},e=this.getJira(r,t);return await e.doFetch(e.makeUri("/serverInfo")),r}async getUsername(e){return e.username||process.env.ATLASCLI_USERNAME||this.promptUser("text","username","Username?")}async getEmail(e){return e.email||process.env.ATLASCLI_EMAIL||this.promptUser("text","email","E-mail?")}async getToken(e){return e.token||process.env.ATLASCLI_TOKEN||this.promptUser("password","token","OAuth Token?")}async getWebTriggerURL(e){return e.webTriggerURL||this.promptUser("text","webTriggerURL","Web Trigger? https://bit.ly/3nGExBi")}async getPassword(e){return e.password||process.env.ATLASCLI_PASSWORD||this.promptUser("password","password","Password?")}async getSiteURL(e){let t=e.site||await this.promptUser("text","site","Site URL?");return t.startsWith("http://")||t.startsWith("https://")||(t="https://"+t),new URL(t)}}(exports.default=ConfigAdd).description="Adds a new Jira site configuration.",ConfigAdd.flags=Object.assign(Object.assign({},atlascli_common_1.Command.flags),{site:core_1.Flags.string({char:"s",description:"URL of Jira site"}),username:core_1.Flags.string({char:"u",description:"username for username/password authentication",exclusive:["email"],dependsOn:["password"]}),password:core_1.Flags.string({char:"p",description:"password for username/password authentication",dependsOn:["username"]}),email:core_1.Flags.string({char:"e",description:"e-mail for authentication",exclusive:["username"],dependsOn:["email"]}),token:core_1.Flags.string({char:"t",description:"oauth authentication token associated with e-mail",dependsOn:["email"]}),webTriggerURL:core_1.Flags.string({char:"t",description:"Install the corresponding Forge add-on and run webtrigger on the terminal. After that, copy & paste the complete URL here.",dependsOn:["email"]}),alias:core_1.Flags.string({char:"a",description:"alias for the site"}),help:core_1.Flags.help({char:"h"})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),base_command_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command"));class Delete extends base_command_1.default{async run(){var e,{flags:t,args:s}=await this.parse(Delete),t=t.site||s.site;t?(s=this.conf.get("sites"),e=Object.keys(s)[0],await this.getSite(t)?(t==this.conf.get("defaultSite")&&1<Object.keys(s).length&&this.conf.set("defaultSite",e),delete this.sites[t],this.conf.set("sites",this.sites)):this.error(t+" is not defined!")):this.error("site alias is required either as a flag or argument!")}}(exports.default=Delete).description="Deletes site with given alias.",Delete.flags=Object.assign(Object.assign({},base_command_1.default.flags),{site:core_1.Flags.string({char:"s",description:"Alias of the site"})}),Delete.args=[{name:"site",description:"Alias of the site"}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),base_command_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command"));class Delete extends base_command_1.default{async run(){var e,{flags:t,args:s}=await this.parse(Delete),t=t.site||s.site;t?(s=this.conf.get("sites"),e=Object.keys(s)[0],await this.getSite(t)?(t==this.conf.get("defaultSite")&&1<Object.keys(s).length&&this.conf.set("defaultSite",e),delete this.sites[t],this.conf.set("sites",this.sites)):this.error(t+" is not defined!")):this.error("site alias is required either as a flag or argument!")}}(exports.default=Delete).description="Deletes site with given alias.",Delete.flags=Object.assign(Object.assign({},base_command_1.default.flags),{site:core_1.Flags.string({char:"s",description:"Alias of the site"})}),Delete.args=[{name:"site",description:"Alias of the site"}];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),base_command_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command"));class GetDefault extends base_command_1.default{async run(){var e=this.conf.get("defaultSite");e?this.log("Default Site:"+e):this.error("Default site is not defined!")}}(exports.default=GetDefault).description="Gets alias of default Site.",GetDefault.flags=Object.assign({},base_command_1.default.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),base_command_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command"));class GetDefault extends base_command_1.default{async run(){var e=this.conf.get("defaultSite");e?this.log("Default Site:"+e):this.error("Default site is not defined!")}}(exports.default=GetDefault).description="Gets alias of default Site.",GetDefault.flags=Object.assign({},base_command_1.default.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),base_command_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command"));class List extends base_command_1.default{async run(){var s=(await this.parse(List))["flags"];const t=this.conf.get("sites"),a=this.conf.get("defaultSite");this.display(s,Object.keys(t).map(s=>{var e=t[s];return{alias:s,site:e.site,cloud:e.cloud,"username or email":e.email||e.username,default:a===s?"Yes":""}}))}}(exports.default=List).description="Lists all sites.",List.flags=Object.assign({},base_command_1.default.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),base_command_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command"));class List extends base_command_1.default{async run(){var e=(await this.parse(List)).flags;let t=this.conf.get("sites"),a=this.conf.get("defaultSite");this.display(e,Object.keys(t).map(e=>{var s=t[e];return{alias:e,site:s.site,cloud:s.cloud,"username or email":s.email||s.username,default:a===e?"Yes":""}}))}}(exports.default=List).description="Lists all sites.",List.flags=Object.assign({},base_command_1.default.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),base_command_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command"));class SetDefaultSite extends base_command_1.default{async run(){var{flags:e,args:t}=await this.parse(SetDefaultSite),e=e.site||t.site;e?await this.getSite(e)?this.conf.set("defaultSite",e):this.error(e+" alias is not defined! Use config:add to add it."):this.error("site alias is required either as a flag or argument!")}}(exports.default=SetDefaultSite).description="Sets default Site.",SetDefaultSite.flags=Object.assign(Object.assign({},base_command_1.default.flags),{site:core_1.Flags.string({char:"s",description:"Alias of the site"})}),SetDefaultSite.args=[{name:"site",description:"Alias of the site"}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),base_command_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command"));class SetDefaultSite extends base_command_1.default{async run(){var{flags:e,args:t}=await this.parse(SetDefaultSite),e=e.site||t.site;e?await this.getSite(e)?this.conf.set("defaultSite",e):this.error(e+" alias is not defined! Use config:add to add it."):this.error("site alias is required either as a flag or argument!")}}(exports.default=SetDefaultSite).description="Sets default Site.",SetDefaultSite.flags=Object.assign(Object.assign({},base_command_1.default.flags),{site:core_1.Flags.string({char:"s",description:"Alias of the site"})}),SetDefaultSite.args=[{name:"site",description:"Alias of the site"}];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),add_edit_permission_1=require("../filter-sharing/add-edit-permission"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),project_util_1=require("@thestarware/atlascli-common/lib/project-util"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");class AddEditPermission extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var i=(await this.parse(AddEditPermission))["flags"],[i,t]=(0,add_edit_permission_1.modifyFlagsForRequest)(this.removeFlagsFromBase(i)),o=await(0,user_util_1.getUser)(r,t.user),s=await(0,project_util_1.getProject)(r,t.project),a=await(0,group_util_1.getGroup)(r,t.group),a=(t.groupId=a.groupId,t.projectId=s.projectId,t.accountId=o.accountId,delete t.group,delete t.project,delete t.user,await r.dashboardManager.getDashboard(i));(0,add_edit_permission_1.parsePermissions)(a.editPermissions),await r.dashboardManager.updateDashboard(i,{editPermissions:null==(s=t.editPermissions)?void 0:s.concat(a.editPermissions)}),this.log(`Added new edit permission to dashboard with ${i} id.`)}}(exports.default=AddEditPermission).description="Adds an edit permission to a dashboard.",AddEditPermission.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the dashboard.",required:!0}),type:core_1.Flags.string({description:"The type of edit permissions.",options:["user","group","project","projectRole","global","authenticated","project-unknown","role"],required:!0}),project:core_1.Flags.string({description:"Project ID."}),group:core_1.Flags.string({char:"g",description:"The name or id of the group that you want to add users to."}),projectRoleId:core_1.Flags.string({description:"Role ID.",dependsOn:["projectId"]}),user:core_1.Flags.string({char:"u",description:"User's account Id or username or email."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),add_edit_permission_1=require("../filter-sharing/add-edit-permission"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),project_util_1=require("@thestarware/atlascli-common/lib/project-util"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");class AddEditPermission extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var i=(await this.parse(AddEditPermission)).flags,[i,t]=(0,add_edit_permission_1.modifyFlagsForRequest)(this.removeFlagsFromBase(i)),o=await(0,user_util_1.getUser)(r,t.user),s=await(0,project_util_1.getProject)(r,t.project),a=await(0,group_util_1.getGroup)(r,t.group),a=(t.groupId=a.groupId,t.projectId=s.projectId,t.accountId=o.accountId,delete t.group,delete t.project,delete t.user,await r.dashboardManager.getDashboard(i));(0,add_edit_permission_1.parsePermissions)(a.editPermissions),await r.dashboardManager.updateDashboard(i,{editPermissions:null==(s=t.editPermissions)?void 0:s.concat(a.editPermissions)}),this.log(`Added new edit permission to dashboard with ${i} id.`)}}(exports.default=AddEditPermission).description="Adds an edit permission to a dashboard.",AddEditPermission.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the dashboard.",required:!0}),type:core_1.Flags.string({description:"The type of edit permissions.",options:["user","group","project","projectRole","global","authenticated","project-unknown","role"],required:!0}),project:core_1.Flags.string({description:"Project ID."}),group:core_1.Flags.string({char:"g",description:"The name or id of the group that you want to add users to."}),projectRoleId:core_1.Flags.string({description:"Role ID.",dependsOn:["projectId"]}),user:core_1.Flags.string({char:"u",description:"User's account Id or username or email."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),add_edit_permission_1=require("../filter-sharing/add-edit-permission"),core_1=require("@oclif/core"),add_edit_permission_2=tslib_1.__importDefault(require("./add-edit-permission"));class AddSharePermission extends add_edit_permission_2.default{async runWithCloudSite(e,s){var i=(await this.parse(AddSharePermission))["flags"],[i,r]=(0,add_edit_permission_1.modifyFlagsForRequest)(this.removeFlagsFromBase(i),"share"),a=await s.dashboardManager.getDashboard(i);(0,add_edit_permission_1.parsePermissions)(a.sharePermissions),await s.dashboardManager.updateDashboard(i,{sharePermissions:null==(s=r.sharePermissions)?void 0:s.concat(a.sharePermissions)}),this.log(`Added new share permission to dashboard with ${i} id.`)}}(exports.default=AddSharePermission).description="Adds an share permission to a dashboard.",AddSharePermission.flags=Object.assign(Object.assign({},add_edit_permission_2.default.flags),{type:core_1.Flags.string({description:"The type of share permissions.",options:["user","group","project","projectRole","global","authenticated","project-unknown","role"],required:!0})});
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),add_edit_permission_1=require("../filter-sharing/add-edit-permission"),core_1=require("@oclif/core"),add_edit_permission_2=tslib_1.__importDefault(require("./add-edit-permission"));class AddSharePermission extends add_edit_permission_2.default{async runWithCloudSite(e,s){var i=(await this.parse(AddSharePermission)).flags,[i,r]=(0,add_edit_permission_1.modifyFlagsForRequest)(this.removeFlagsFromBase(i),"share"),a=await s.dashboardManager.getDashboard(i);(0,add_edit_permission_1.parsePermissions)(a.sharePermissions),await s.dashboardManager.updateDashboard(i,{sharePermissions:null==(s=r.sharePermissions)?void 0:s.concat(a.sharePermissions)}),this.log(`Added new share permission to dashboard with ${i} id.`)}}(exports.default=AddSharePermission).description="Adds an share permission to a dashboard.",AddSharePermission.flags=Object.assign(Object.assign({},add_edit_permission_2.default.flags),{type:core_1.Flags.string({description:"The type of share permissions.",options:["user","group","project","projectRole","global","authenticated","project-unknown","role"],required:!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");class CopyDashboard extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(a,e){var s=(await this.parse(CopyDashboard))["flags"],o=this.removeFlagsFromBase(s),r=o["id"],o=tslib_1.__rest(o,["id"]),e=await e.dashboardManager.copyDashboard(r,o);this.display(s,e)}}(exports.default=CopyDashboard).description="Copies a dashboard.",CopyDashboard.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the dashboard to update.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the dashboard."}),description:core_1.Flags.string({char:"d",description:"The description of the dashboard."})},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 CopyDashboard extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(a,e){var s=(await this.parse(CopyDashboard)).flags,o=this.removeFlagsFromBase(s),r=o.id,o=tslib_1.__rest(o,["id"]),e=await e.dashboardManager.copyDashboard(r,o);this.display(s,e)}}(exports.default=CopyDashboard).description="Copies a dashboard.",CopyDashboard.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the dashboard to update.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the dashboard."}),description:core_1.Flags.string({char:"d",description:"The description of the dashboard."})},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 CreateDashboard extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(a,e){var r=(await this.parse(CreateDashboard))["flags"],s=this.removeFlagsFromBase(r),e=await e.dashboardManager.createDashboard(s);this.display(r,e)}}(exports.default=CreateDashboard).description="Creates a dashboard",CreateDashboard.flags=Object.assign({name:core_1.Flags.string({char:"n",description:"The name of the dashboard.",required:!0}),description:core_1.Flags.string({char:"d",description:"The description of the dashboard."})},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 CreateDashboard extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(a,e){var r=(await this.parse(CreateDashboard)).flags,s=this.removeFlagsFromBase(r),e=await e.dashboardManager.createDashboard(s);this.display(r,e)}}(exports.default=CreateDashboard).description="Creates a dashboard",CreateDashboard.flags=Object.assign({name:core_1.Flags.string({char:"n",description:"The name of the dashboard.",required:!0}),description:core_1.Flags.string({char:"d",description:"The description of the dashboard."})},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 DeleteDashboard extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(DeleteDashboard))["flags"];await a.dashboardManager.deleteDashboard(t.id)}}(exports.default=DeleteDashboard).description="Deletes a dashboard.",DeleteDashboard.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the dashboard to delete.",required:!0})},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 DeleteDashboard extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(DeleteDashboard)).flags;await a.dashboardManager.deleteDashboard(t.id)}}(exports.default=DeleteDashboard).description="Deletes a dashboard.",DeleteDashboard.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the dashboard to delete.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetAll extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var a=(await this.parse(GetAll))["flags"],e=this.getJira(e,a),s=this.removeFlagsFromBase(a),t=s["all"],s=tslib_1.__rest(s,["all"]),l=await e.dashboardManager.getAllDashboards(this.modifyFlags(s));t&&(l.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(l,s,e.dashboardManager.getAllDashboards.bind(e.dashboardManager))),this.display(a,l.values)}modifyFlags(e){return e.filter=e.query,delete e.query,e}}(exports.default=GetAll).description="Gets a list of dashboards owned by or shared with the user. The list may be filtered to include only favorite or owned dashboards.",GetAll.flags=Object.assign(Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})}),atlascli_common_1.CommandWithSite.flags),{filter:core_1.Flags.string({description:"The filter applied to the list of dashboards.",options:["my","favourite"]})});
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 GetAll extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var a=(await this.parse(GetAll)).flags,e=this.getJira(e,a),s=this.removeFlagsFromBase(a),t=s.all,s=tslib_1.__rest(s,["all"]),l=await e.dashboardManager.getAllDashboards(this.modifyFlags(s));t&&(l.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(l,s,e.dashboardManager.getAllDashboards.bind(e.dashboardManager))),this.display(a,l.values)}modifyFlags(e){return e.filter=e.query,delete e.query,e}}(exports.default=GetAll).description="Gets a list of dashboards owned by or shared with the user. The list may be filtered to include only favorite or owned dashboards.",GetAll.flags=Object.assign(Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})}),atlascli_common_1.CommandWithSite.flags),{filter:core_1.Flags.string({description:"The filter applied to the list of dashboards.",options:["my","favourite"]})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),get_share_permissions_1=require("../filter-sharing/get-share-permissions"),core_1=require("@oclif/core");class GetPermissions extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(s,e){var i=(await this.parse(GetPermissions))["flags"],e=await e.dashboardManager.getDashboard(i.id),e=(i.json=!0,this.display(i,e),i.json=!1,"edit"===i.type?e.editPermissions:e.sharePermissions);(0,get_share_permissions_1.permissionMapper)(e),this.display(i,e)}}(exports.default=GetPermissions).description="Gets edit or share permissions that a dashboard has.",GetPermissions.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the dashboard.",required:!0}),type:core_1.Flags.string({char:"t",description:"Permission type you want to get.",options:["edit","share"],required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),get_share_permissions_1=require("../filter-sharing/get-share-permissions"),core_1=require("@oclif/core");class GetPermissions extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(s,e){var i=(await this.parse(GetPermissions)).flags,e=await e.dashboardManager.getDashboard(i.id),e=(i.json=!0,this.display(i,e),i.json=!1,"edit"===i.type?e.editPermissions:e.sharePermissions);(0,get_share_permissions_1.permissionMapper)(e),this.display(i,e)}}(exports.default=GetPermissions).description="Gets edit or share permissions that a dashboard has.",GetPermissions.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the dashboard.",required:!0}),type:core_1.Flags.string({char:"t",description:"Permission type you want to get.",options:["edit","share"],required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetDashboard extends atlascli_common_1.BaseCommandWithSite{async runWithSite(a){var s=[];const{flags:e,argv:t}=await this.parse(GetDashboard),r=this.getJira(a,e);s.push(...e.id||[]),s.push(...Array.isArray(t)?t:"string"==typeof t?[t]:[]),0===s.length&&this.error("No dashboard id is specified.");a=s.sort().map(a=>r.dashboardManager.getDashboard(a));await Promise.all(a).then(a=>{0<a.length&&this.display(e,a)})}}(exports.default=GetDashboard).strict=!1,GetDashboard.description="Gets a dashboard.",GetDashboard.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the dashboard.",multiple:!0})},atlascli_common_1.CommandWithSite.flags),GetDashboard.args=[{name:"id",description:"The ID of the dashboard."}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetDashboard extends atlascli_common_1.BaseCommandWithSite{async runWithSite(a){var e=[];let{flags:s,argv:t}=await this.parse(GetDashboard),r=this.getJira(a,s);e.push(...s.id||[]),e.push(...Array.isArray(t)?t:"string"==typeof t?[t]:[]),0===e.length&&this.error("No dashboard id is specified.");a=e.sort().map(a=>r.dashboardManager.getDashboard(a));await Promise.all(a).then(a=>{0<a.length&&this.display(s,a)})}}(exports.default=GetDashboard).strict=!1,GetDashboard.description="Gets a dashboard.",GetDashboard.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the dashboard.",multiple:!0})},atlascli_common_1.CommandWithSite.flags),GetDashboard.args=[{name:"id",description:"The ID of the dashboard."}];
@@ -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"),project_util_1=require("@thestarware/atlascli-common/lib/project-util"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");class SearchDashboards extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var r=(await this.parse(SearchDashboards))["flags"],t=this.removeFlagsFromBase(r),s=t["all"],t=tslib_1.__rest(t,["all"]),o=await(0,project_util_1.getProject)(a,t.project),i=await(0,user_util_1.getUser)(a,t.user),c=await(0,group_util_1.getGroup)(a,t.group),c=(t.groupId=c.groupId,t.projectId=o.projectId,t.accountId=i.accountId,delete t.project,delete t.group,delete t.user,await a.dashboardManager.searchDashboard(this.modifySearchParams(t)));s&&(c.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(c,t,a.dashboardManager.searchDashboard.bind(a.dashboardManager))),this.display(r,c.values)}modifySearchParams(e){return e.dashboardName=e.query,delete e.query,e}}(exports.default=SearchDashboards).description="Searches all dashboards.",SearchDashboards.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getSearchFlags)()),{orderBy:core_1.Flags.string({description:"",options:["description","favourite_count","id","is_favourite","name","owner"],default:"name"}),user:core_1.Flags.string({char:"u",description:"User account ID or username or email used to return dashboards with the matching dashboard owner's accountId."}),group:core_1.Flags.string({char:"g",description:"The name or id of the group that you want to add users to."}),project:core_1.Flags.string({char:"p",description:"Project id or key"}),status:core_1.Flags.string({description:"The status to filter by. It may be active, archived or deleted.",options:["active","archived","deleted"]}),expand:core_1.Flags.string({description:"Use expand to include additional information about dashboard in the response.",options:["description","owner","viewUrl","favourite","favouritedCount","favouritedCount"]}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})}),atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),project_util_1=require("@thestarware/atlascli-common/lib/project-util"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");class SearchDashboards extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var r=(await this.parse(SearchDashboards)).flags,t=this.removeFlagsFromBase(r),o=t.all,t=tslib_1.__rest(t,["all"]),s=await(0,project_util_1.getProject)(a,t.project),i=await(0,user_util_1.getUser)(a,t.user),l=await(0,group_util_1.getGroup)(a,t.group),l=(t.groupId=l.groupId,t.projectId=s.projectId,t.accountId=i.accountId,delete t.project,delete t.group,delete t.user,await a.dashboardManager.searchDashboard(this.modifySearchParams(t)));o&&(l.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(l,t,a.dashboardManager.searchDashboard.bind(a.dashboardManager))),this.display(r,l.values)}modifySearchParams(e){return e.dashboardName=e.query,delete e.query,e}}(exports.default=SearchDashboards).description="Searches all dashboards.",SearchDashboards.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getSearchFlags)()),{orderBy:core_1.Flags.string({description:"",options:["description","favourite_count","id","is_favourite","name","owner"],default:"name"}),user:core_1.Flags.string({char:"u",description:"User account ID or username or email used to return dashboards with the matching dashboard owner's accountId."}),group:core_1.Flags.string({char:"g",description:"The name or id of the group that you want to add users to."}),project:core_1.Flags.string({char:"p",description:"Project id or key"}),status:core_1.Flags.string({description:"The status to filter by. It may be active, archived or deleted.",options:["active","archived","deleted"]}),expand:core_1.Flags.string({description:"Use expand to include additional information about dashboard in the response.",options:["description","owner","viewUrl","favourite","favouritedCount","favouritedCount"]}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})}),atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class UpdateDashboard extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(a,e){var s=(await this.parse(UpdateDashboard))["flags"],t=this.removeFlagsFromBase(s),r=t["id"],t=tslib_1.__rest(t,["id"]),e=await e.dashboardManager.updateDashboard(r,t);this.display(s,e)}}(exports.default=UpdateDashboard).description="Updates a dashboard.",UpdateDashboard.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the dashboard to update.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the dashboard."}),description:core_1.Flags.string({char:"d",description:"The description of the dashboard."})},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");class UpdateDashboard extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(a,e){var s=(await this.parse(UpdateDashboard)).flags,t=this.removeFlagsFromBase(s),r=t.id,t=tslib_1.__rest(t,["id"]),e=await e.dashboardManager.updateDashboard(r,t);this.display(s,e)}}(exports.default=UpdateDashboard).description="Updates a dashboard.",UpdateDashboard.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the dashboard to update.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the dashboard."}),description:core_1.Flags.string({char:"d",description:"The description of the dashboard."})},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 AddGadgets extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(AddGadgets))["flags"],o=this.removeFlagsFromBase(t),i=o["dashboardId"],o=tslib_1.__rest(o,["dashboardId"]),a=await a.dashboardGadgetManager.addGadget(i,o);this.display(t,a)}}(exports.default=AddGadgets).description="Adds a gadget to the dashboard.",AddGadgets.flags=Object.assign({dashboardId:core_1.Flags.string({char:"i",description:"Dashboard ID.",required:!0}),moduleKey:core_1.Flags.string({char:"m",description:"The module key of the gadget type.",exclusive:["uri"]}),uri:core_1.Flags.string({char:"u",description:"The URI of the gadget type.",exclusive:["moduleKey"]}),color:core_1.Flags.string({description:"The color of the gadget.",options:["blue","red","yellow","green","cyan","purple","gray","white"]}),position:core_1.Flags.string({description:"The position of the gadget. When the gadget is placed into the position, other gadgets in the same column are moved down to accommodate it. KEYS: [row, column]\nExample usage: --position=row=1,column=2",parse:e=>(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(e,"position",["row","column"])[0]}),title:core_1.Flags.string({description:"The title of the gadget."}),ignoreUriAndModuleKeyValidation:core_1.Flags.boolean({description:"Whether to ignore the validation of module key and URI. For example, when a gadget is created that is a part of an application that isn't installed."})},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 AddGadgets extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(AddGadgets)).flags,o=this.removeFlagsFromBase(t),i=o.dashboardId,o=tslib_1.__rest(o,["dashboardId"]),a=await a.dashboardGadgetManager.addGadget(i,o);this.display(t,a)}}(exports.default=AddGadgets).description="Adds a gadget to the dashboard.",AddGadgets.flags=Object.assign({dashboardId:core_1.Flags.string({char:"i",description:"Dashboard ID.",required:!0}),moduleKey:core_1.Flags.string({char:"m",description:"The module key of the gadget type.",exclusive:["uri"]}),uri:core_1.Flags.string({char:"u",description:"The URI of the gadget type.",exclusive:["moduleKey"]}),color:core_1.Flags.string({description:"The color of the gadget.",options:["blue","red","yellow","green","cyan","purple","gray","white"]}),position:core_1.Flags.string({description:"The position of the gadget. When the gadget is placed into the position, other gadgets in the same column are moved down to accommodate it. KEYS: [row, column]\nExample usage: --position=row=1,column=2",parse:e=>(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(e,"position",["row","column"])[0]}),title:core_1.Flags.string({description:"The title of the gadget."}),ignoreUriAndModuleKeyValidation:core_1.Flags.boolean({description:"Whether to ignore the validation of module key and URI. For example, when a gadget is created that is a part of an application that isn't installed."})},atlascli_common_1.BaseCommandWithCloudSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetAvaliableGadget extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(a,e){var t=(await this.parse(GetAvaliableGadget))["flags"],e=await e.dashboardGadgetManager.getAvaliableGadgets();this.display(t,this.modifyResponse(e.gadgets))}modifyResponse(a){return a.forEach(a=>{a.moduleKey||(a.moduleKey="")}),a}}(exports.default=GetAvaliableGadget).description="Gets a list of all available gadgets that can be added to all dashboards.",GetAvaliableGadget.flags=atlascli_common_1.CommandWithSite.flags;
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common");class GetAvaliableGadget extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(a,e){var t=(await this.parse(GetAvaliableGadget)).flags,e=await e.dashboardGadgetManager.getAvaliableGadgets();this.display(t,this.modifyResponse(e.gadgets))}modifyResponse(a){return a.forEach(a=>{a.moduleKey||(a.moduleKey="")}),a}}(exports.default=GetAvaliableGadget).description="Gets a list of all available gadgets that can be added to all dashboards.",GetAvaliableGadget.flags=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 RemoveGadget extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(RemoveGadget))["flags"];await a.dashboardGadgetManager.removeGadget(t.dashboardId,t.gadgetId)}}(exports.default=RemoveGadget).description="Removes a gadget from dashboard.",RemoveGadget.flags=Object.assign({dashboardId:core_1.Flags.string({char:"d",description:"Dashboard ID.",required:!0}),gadgetId:core_1.Flags.string({char:"g",description:"Gadget 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 RemoveGadget extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var d=(await this.parse(RemoveGadget)).flags;await a.dashboardGadgetManager.removeGadget(d.dashboardId,d.gadgetId)}}(exports.default=RemoveGadget).description="Removes a gadget from dashboard.",RemoveGadget.flags=Object.assign({dashboardId:core_1.Flags.string({char:"d",description:"Dashboard ID.",required:!0}),gadgetId:core_1.Flags.string({char:"g",description:"Gadget ID.",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");class SearchGadgets extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(SearchGadgets))["flags"],s=this.removeFlagsFromBase(t),r=s["dashboardId"],s=tslib_1.__rest(s,["dashboardId"]),a=await a.dashboardGadgetManager.getGadgets(r,s);this.display(t,a.gadgets)}}(exports.default=SearchGadgets).description="Searches dashboard gadgets.",SearchGadgets.flags=Object.assign({dashboardId:core_1.Flags.string({char:"d",description:"Dashboard ID.",required:!0}),moduleKey:core_1.Flags.string({char:"m",description:"Module key. You can provide multiple value by repeating this flag.",multiple:!0}),uri:core_1.Flags.string({char:"u",description:"Gadget uri. You can provide multiple value by repeating this flag.",multiple:!0}),gadgetId:core_1.Flags.integer({char:"g",description:"Gadget ID. You can provide multiple value by repeating this flag.",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");class SearchGadgets extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(SearchGadgets)).flags,r=this.removeFlagsFromBase(t),s=r.dashboardId,r=tslib_1.__rest(r,["dashboardId"]),a=await a.dashboardGadgetManager.getGadgets(s,r);this.display(t,a.gadgets)}}(exports.default=SearchGadgets).description="Searches dashboard gadgets.",SearchGadgets.flags=Object.assign({dashboardId:core_1.Flags.string({char:"d",description:"Dashboard ID.",required:!0}),moduleKey:core_1.Flags.string({char:"m",description:"Module key. You can provide multiple value by repeating this flag.",multiple:!0}),uri:core_1.Flags.string({char:"u",description:"Gadget uri. You can provide multiple value by repeating this flag.",multiple:!0}),gadgetId:core_1.Flags.integer({char:"g",description:"Gadget ID. You can provide multiple value by repeating this flag.",multiple:!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");class UpdateGadget extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(UpdateGadget))["flags"],t=this.removeFlagsFromBase(t),{dashboardId:o,gadgetId:s}=t,t=tslib_1.__rest(t,["dashboardId","gadgetId"]);await a.dashboardGadgetManager.updateGadget(o,s,t)}}(exports.default=UpdateGadget).description="Updates a dashboard gadget.",UpdateGadget.flags=Object.assign({dashboardId:core_1.Flags.string({char:"d",description:"Dashboard ID.",required:!0}),gadgetId:core_1.Flags.string({char:"g",description:"Gadget ID.",required:!0}),color:core_1.Flags.string({description:"The color of the gadget.",options:["blue","red","yellow","green","cyan","purple","gray","white"]}),position:core_1.Flags.string({description:"The position of the gadget. When the gadget is placed into the position, other gadgets in the same column are moved down to accommodate it. KEYS: [row, column]\nExample usage: --position=row=1,column=2",parse:e=>(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(e,"position",["row","column"])[0]}),title:core_1.Flags.string({description:"The title of the gadget."})},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 UpdateGadget extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(UpdateGadget)).flags,t=this.removeFlagsFromBase(t),{dashboardId:o,gadgetId:r}=t,t=tslib_1.__rest(t,["dashboardId","gadgetId"]);await a.dashboardGadgetManager.updateGadget(o,r,t)}}(exports.default=UpdateGadget).description="Updates a dashboard gadget.",UpdateGadget.flags=Object.assign({dashboardId:core_1.Flags.string({char:"d",description:"Dashboard ID.",required:!0}),gadgetId:core_1.Flags.string({char:"g",description:"Gadget ID.",required:!0}),color:core_1.Flags.string({description:"The color of the gadget.",options:["blue","red","yellow","green","cyan","purple","gray","white"]}),position:core_1.Flags.string({description:"The position of the gadget. When the gadget is placed into the position, other gadgets in the same column are moved down to accommodate it. KEYS: [row, column]\nExample usage: --position=row=1,column=2",parse:e=>(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(e,"position",["row","column"])[0]}),title:core_1.Flags.string({description:"The title of the gadget."})},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"),get_1=tslib_1.__importDefault(require("./get"));class DeleteProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteProperty))["flags"];await this.getJira(e,t).dashboardItemPropertyManager.deleteProperty(t.dashboardId,t.itemId,t.propertyKey)}}(exports.default=DeleteProperty).description="My description",DeleteProperty.flags=Object.assign({},get_1.default.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),get_1=tslib_1.__importDefault(require("./get"));class DeleteProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteProperty)).flags;await this.getJira(e,t).dashboardItemPropertyManager.deleteProperty(t.dashboardId,t.itemId,t.propertyKey)}}(exports.default=DeleteProperty).description="My description",DeleteProperty.flags=Object.assign({},get_1.default.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetKeys extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetKeys))["flags"],e=await this.getJira(e,t).dashboardItemPropertyManager.getPropertyKeys(t.dashboardId,t.itemId);this.display(t,e.keys)}}(exports.default=GetKeys).description="Gets keys of all properties for a dashboard item.",GetKeys.flags=Object.assign({dashboardId:core_1.Flags.string({char:"d",description:"The ID of the dashboard.",required:!0}),itemId:core_1.Flags.string({char:"i",description:"The ID of the dashboard item.",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 GetKeys extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(GetKeys)).flags,e=await this.getJira(e,a).dashboardItemPropertyManager.getPropertyKeys(a.dashboardId,a.itemId);this.display(a,e.keys)}}(exports.default=GetKeys).description="Gets keys of all properties for a dashboard item.",GetKeys.flags=Object.assign({dashboardId:core_1.Flags.string({char:"d",description:"The ID of the dashboard.",required:!0}),itemId:core_1.Flags.string({char:"i",description:"The ID of the dashboard item.",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 GetProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var r=(await this.parse(GetProperty))["flags"],e=await this.getJira(e,r).dashboardItemPropertyManager.getProperty(r.dashboardId,r.itemId,r.propertyKey);this.display(r,e)}}(exports.default=GetProperty).description="Gets the key and value of a dashboard item property",GetProperty.flags=Object.assign({dashboardId:core_1.Flags.string({char:"d",description:"The ID of the dashboard.",required:!0}),itemId:core_1.Flags.string({char:"i",description:"The ID of the dashboard item.",required:!0}),propertyKey:core_1.Flags.string({char:"k",description:"The key of the dashboard item property.",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 GetProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var r=(await this.parse(GetProperty)).flags,e=await this.getJira(e,r).dashboardItemPropertyManager.getProperty(r.dashboardId,r.itemId,r.propertyKey);this.display(r,e)}}(exports.default=GetProperty).description="Gets the key and value of a dashboard item property",GetProperty.flags=Object.assign({dashboardId:core_1.Flags.string({char:"d",description:"The ID of the dashboard.",required:!0}),itemId:core_1.Flags.string({char:"i",description:"The ID of the dashboard item.",required:!0}),propertyKey:core_1.Flags.string({char:"k",description:"The key of the dashboard item property.",required:!0})},atlascli_common_1.CommandWithSite.flags);