@thestarware/atlascli-jira 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (481) hide show
  1. package/lib/commands/announcement-banner/get.js +1 -1
  2. package/lib/commands/announcement-banner/update.js +1 -1
  3. package/lib/commands/application-role/get-all.js +2 -2
  4. package/lib/commands/application-role/get.js +1 -1
  5. package/lib/commands/application-role/update.js +1 -1
  6. package/lib/commands/attachment/add.js +1 -1
  7. package/lib/commands/attachment/delete.js +1 -1
  8. package/lib/commands/attachment/get-content.js +1 -1
  9. package/lib/commands/attachment/get-jira-settings.js +1 -1
  10. package/lib/commands/attachment/get-metadata-for-zip.js +1 -1
  11. package/lib/commands/attachment/get-metadata.js +1 -1
  12. package/lib/commands/attachment/get-thumbnails.js +1 -1
  13. package/lib/commands/audit-record/get-associated.js +1 -1
  14. package/lib/commands/audit-record/get-changed.js +1 -1
  15. package/lib/commands/avatar/delete-universal-avatar.js +1 -1
  16. package/lib/commands/avatar/delete-user-avatar.js +1 -1
  17. package/lib/commands/avatar/get-all-user-avatar.js +1 -1
  18. package/lib/commands/avatar/get-image-by-id.js +1 -1
  19. package/lib/commands/avatar/get-image-by-owner.js +1 -1
  20. package/lib/commands/avatar/get-image-by-type.js +1 -1
  21. package/lib/commands/avatar/get-system-avatars.js +1 -1
  22. package/lib/commands/avatar/get-universal-avatars.js +1 -1
  23. package/lib/commands/avatar/set-user-avatar.js +1 -1
  24. package/lib/commands/avatar/upload-universal-avatar.js +1 -1
  25. package/lib/commands/avatar/upload-user-avatar.js +1 -1
  26. package/lib/commands/comment/add.js +1 -1
  27. package/lib/commands/comment/delete.js +1 -1
  28. package/lib/commands/comment/get-for-issue.js +1 -1
  29. package/lib/commands/comment/get-with-ids.js +1 -1
  30. package/lib/commands/comment/get.js +1 -1
  31. package/lib/commands/comment/update.js +1 -1
  32. package/lib/commands/comment-property/delete-property.js +1 -1
  33. package/lib/commands/comment-property/get-property-keys.js +1 -1
  34. package/lib/commands/comment-property/get-property.js +1 -1
  35. package/lib/commands/comment-property/set-property.js +1 -1
  36. package/lib/commands/config/add.js +1 -1
  37. package/lib/commands/config/delete.js +1 -1
  38. package/lib/commands/config/get-default.js +1 -1
  39. package/lib/commands/config/list.js +1 -1
  40. package/lib/commands/config/set-default.js +1 -1
  41. package/lib/commands/dashboard/add-edit-permission.js +1 -1
  42. package/lib/commands/dashboard/add-share-permission.js +1 -1
  43. package/lib/commands/dashboard/copy.js +1 -1
  44. package/lib/commands/dashboard/create.js +1 -1
  45. package/lib/commands/dashboard/delete.js +1 -1
  46. package/lib/commands/dashboard/get-all.js +1 -1
  47. package/lib/commands/dashboard/get-permissions.js +1 -1
  48. package/lib/commands/dashboard/get.js +1 -1
  49. package/lib/commands/dashboard/search.js +1 -1
  50. package/lib/commands/dashboard/update.js +1 -1
  51. package/lib/commands/dashboard-gadget/add.js +1 -1
  52. package/lib/commands/dashboard-gadget/get-availables.js +1 -1
  53. package/lib/commands/dashboard-gadget/remove.js +1 -1
  54. package/lib/commands/dashboard-gadget/search.js +1 -1
  55. package/lib/commands/dashboard-gadget/update.js +1 -1
  56. package/lib/commands/dashboard-item-property/delete.js +1 -1
  57. package/lib/commands/dashboard-item-property/get-keys.js +1 -1
  58. package/lib/commands/dashboard-item-property/get.js +1 -1
  59. package/lib/commands/dashboard-item-property/set.js +1 -1
  60. package/lib/commands/filter/add-favourite.js +1 -1
  61. package/lib/commands/filter/change-owner.js +1 -1
  62. package/lib/commands/filter/create.js +1 -1
  63. package/lib/commands/filter/delete.js +1 -1
  64. package/lib/commands/filter/get-columns.js +1 -1
  65. package/lib/commands/filter/get-details.js +1 -1
  66. package/lib/commands/filter/get-favourites.js +1 -1
  67. package/lib/commands/filter/get-my.js +1 -1
  68. package/lib/commands/filter/get.js +1 -1
  69. package/lib/commands/filter/remove-favourite.js +1 -1
  70. package/lib/commands/filter/reset-columns.js +1 -1
  71. package/lib/commands/filter/search.js +1 -1
  72. package/lib/commands/filter/set-columns.js +1 -1
  73. package/lib/commands/filter/update.js +1 -1
  74. package/lib/commands/filter-sharing/add-edit-permission.js +1 -1
  75. package/lib/commands/filter-sharing/add-share-permission.js +1 -1
  76. package/lib/commands/filter-sharing/delete-permission.js +1 -1
  77. package/lib/commands/filter-sharing/get-default-scope.js +1 -1
  78. package/lib/commands/filter-sharing/get-edit-permissions.js +1 -1
  79. package/lib/commands/filter-sharing/get-permission.js +1 -1
  80. package/lib/commands/filter-sharing/get-share-permissions.js +1 -1
  81. package/lib/commands/filter-sharing/set-default-scope.js +1 -1
  82. package/lib/commands/group/add-user.js +1 -1
  83. package/lib/commands/group/create.js +1 -1
  84. package/lib/commands/group/find-groups.js +1 -1
  85. package/lib/commands/group/get-all.js +1 -1
  86. package/lib/commands/group/get-users.js +1 -1
  87. package/lib/commands/group/get.js +1 -1
  88. package/lib/commands/group/remove-user.js +1 -1
  89. package/lib/commands/group/remove.js +1 -1
  90. package/lib/commands/group-and-user-picker/find-groups.js +1 -1
  91. package/lib/commands/group-and-user-picker/find-users.js +1 -1
  92. package/lib/commands/issue/archive.js +1 -1
  93. package/lib/commands/issue/assign.js +1 -1
  94. package/lib/commands/issue/create.js +1 -1
  95. package/lib/commands/issue/delete.js +1 -1
  96. package/lib/commands/issue/edit.js +1 -1
  97. package/lib/commands/issue/get-changelogs.js +1 -1
  98. package/lib/commands/issue/get-create-metadata.js +1 -1
  99. package/lib/commands/issue/get-edit-metadata.js +1 -1
  100. package/lib/commands/issue/get-events.js +1 -1
  101. package/lib/commands/issue/get-transitions.js +1 -1
  102. package/lib/commands/issue/get.js +1 -1
  103. package/lib/commands/issue/restore.js +1 -1
  104. package/lib/commands/issue/send-notifications.js +1 -1
  105. package/lib/commands/issue/transition.js +1 -1
  106. package/lib/commands/issue-field/create.js +1 -1
  107. package/lib/commands/issue-field/delete.js +1 -1
  108. package/lib/commands/issue-field/get-all.js +1 -1
  109. package/lib/commands/issue-field/move-trash.js +1 -1
  110. package/lib/commands/issue-field/restore-trash.js +1 -1
  111. package/lib/commands/issue-field/search-trash.js +1 -1
  112. package/lib/commands/issue-field/search.js +1 -1
  113. package/lib/commands/issue-field/update.js +1 -1
  114. package/lib/commands/issue-field-configuration/assign-issue-type.js +1 -1
  115. package/lib/commands/issue-field-configuration/assign-scheme-to-project.js +1 -1
  116. package/lib/commands/issue-field-configuration/create-scheme.js +1 -1
  117. package/lib/commands/issue-field-configuration/create.js +1 -1
  118. package/lib/commands/issue-field-configuration/delete-scheme.js +1 -1
  119. package/lib/commands/issue-field-configuration/delete.js +1 -1
  120. package/lib/commands/issue-field-configuration/get-all-issue-type-items.js +1 -1
  121. package/lib/commands/issue-field-configuration/get-all-schemes.js +1 -1
  122. package/lib/commands/issue-field-configuration/get-all.js +1 -1
  123. package/lib/commands/issue-field-configuration/get-items.js +1 -1
  124. package/lib/commands/issue-field-configuration/get-project-schemes.js +1 -1
  125. package/lib/commands/issue-field-configuration/remove-issue-types.js +1 -1
  126. package/lib/commands/issue-field-configuration/update-items.js +1 -1
  127. package/lib/commands/issue-field-configuration/update-scheme.js +1 -1
  128. package/lib/commands/issue-field-configuration/update.js +1 -1
  129. package/lib/commands/issue-field-context/add-issue-types.js +1 -1
  130. package/lib/commands/issue-field-context/assign-to-projects.js +1 -1
  131. package/lib/commands/issue-field-context/create.js +1 -1
  132. package/lib/commands/issue-field-context/delete.js +1 -1
  133. package/lib/commands/issue-field-context/get-all.js +1 -1
  134. package/lib/commands/issue-field-context/get-contexts-for-projects-and-issue-types.js +1 -1
  135. package/lib/commands/issue-field-context/get-default-values.js +1 -1
  136. package/lib/commands/issue-field-context/get-issue-types.js +1 -1
  137. package/lib/commands/issue-field-context/get-project-mappings.js +1 -1
  138. package/lib/commands/issue-field-context/remove-from-projects.js +1 -1
  139. package/lib/commands/issue-field-context/remove-issue-types.js +1 -1
  140. package/lib/commands/issue-field-context/set-default-values.js +1 -1
  141. package/lib/commands/issue-field-context/update.js +1 -1
  142. package/lib/commands/issue-field-option/create-for-context.js +1 -1
  143. package/lib/commands/issue-field-option/delete-for-context.js +1 -1
  144. package/lib/commands/issue-field-option/get-for-context.js +1 -1
  145. package/lib/commands/issue-field-option/get.js +1 -1
  146. package/lib/commands/issue-field-option/reorder-for-context.js +1 -1
  147. package/lib/commands/issue-field-option/update-for-context.js +1 -1
  148. package/lib/commands/issue-link/create.js +1 -1
  149. package/lib/commands/issue-link/delete.js +1 -1
  150. package/lib/commands/issue-link/get.js +1 -1
  151. package/lib/commands/issue-link-type/create.js +1 -1
  152. package/lib/commands/issue-link-type/delete.js +1 -1
  153. package/lib/commands/issue-link-type/get-all.js +1 -1
  154. package/lib/commands/issue-link-type/get.js +1 -1
  155. package/lib/commands/issue-link-type/update.js +1 -1
  156. package/lib/commands/issue-navigator-setting/get-columns.js +1 -1
  157. package/lib/commands/issue-navigator-setting/set-columns.js +1 -1
  158. package/lib/commands/issue-priority/create.js +1 -1
  159. package/lib/commands/issue-priority/delete.js +1 -1
  160. package/lib/commands/issue-priority/move.js +1 -1
  161. package/lib/commands/issue-priority/search.js +1 -1
  162. package/lib/commands/issue-priority/set-default.js +1 -1
  163. package/lib/commands/issue-priority/update.js +1 -1
  164. package/lib/commands/issue-property/delete-bulk.js +1 -1
  165. package/lib/commands/issue-property/delete.js +1 -1
  166. package/lib/commands/issue-property/get-keys.js +1 -1
  167. package/lib/commands/issue-property/get.js +1 -1
  168. package/lib/commands/issue-property/set-bulk.js +1 -1
  169. package/lib/commands/issue-property/set-by-issue-bulk.js +1 -1
  170. package/lib/commands/issue-property/set-by-list-bulk.js +1 -1
  171. package/lib/commands/issue-property/set.js +1 -1
  172. package/lib/commands/issue-remote-link/create.js +1 -1
  173. package/lib/commands/issue-remote-link/delete-by-global-id.js +1 -1
  174. package/lib/commands/issue-remote-link/delete.js +1 -1
  175. package/lib/commands/issue-remote-link/get-all.js +1 -1
  176. package/lib/commands/issue-remote-link/get.js +1 -1
  177. package/lib/commands/issue-remote-link/update.js +1 -1
  178. package/lib/commands/issue-resolution/create.js +1 -1
  179. package/lib/commands/issue-resolution/delete.js +1 -1
  180. package/lib/commands/issue-resolution/get-all.js +1 -1
  181. package/lib/commands/issue-resolution/get.js +1 -1
  182. package/lib/commands/issue-resolution/move.js +1 -1
  183. package/lib/commands/issue-resolution/search.js +1 -1
  184. package/lib/commands/issue-resolution/set-default.js +1 -1
  185. package/lib/commands/issue-resolution/update.js +1 -1
  186. package/lib/commands/issue-search/get-picker-suggestions.js +1 -1
  187. package/lib/commands/issue-search/search.js +1 -1
  188. package/lib/commands/issue-search/test-jql.js +1 -1
  189. package/lib/commands/issue-security-level/get-members.js +1 -1
  190. package/lib/commands/issue-security-level/get.js +1 -1
  191. package/lib/commands/issue-security-scheme/associate-security-scheme.js +1 -1
  192. package/lib/commands/issue-security-scheme/get-all.js +1 -1
  193. package/lib/commands/issue-security-scheme/get-levels.js +1 -1
  194. package/lib/commands/issue-security-scheme/get.js +1 -1
  195. package/lib/commands/issue-type/create.js +1 -1
  196. package/lib/commands/issue-type/delete.js +1 -1
  197. package/lib/commands/issue-type/get-all-for-projects.js +1 -1
  198. package/lib/commands/issue-type/get-all.js +1 -1
  199. package/lib/commands/issue-type/get-alternatives.js +1 -1
  200. package/lib/commands/issue-type/get.js +1 -1
  201. package/lib/commands/issue-type/set-avatar.js +1 -1
  202. package/lib/commands/issue-type/update.js +1 -1
  203. package/lib/commands/issue-type/upload-avatar.js +1 -1
  204. package/lib/commands/issue-type-property/delete.js +1 -1
  205. package/lib/commands/issue-type-property/get-keys.js +1 -1
  206. package/lib/commands/issue-type-property/get.js +1 -1
  207. package/lib/commands/issue-type-property/set.js +1 -1
  208. package/lib/commands/issue-type-scheme/add-issue-types.js +1 -1
  209. package/lib/commands/issue-type-scheme/assign-to-project.js +1 -1
  210. package/lib/commands/issue-type-scheme/create.js +1 -1
  211. package/lib/commands/issue-type-scheme/delete.js +1 -1
  212. package/lib/commands/issue-type-scheme/get-for-projects.js +1 -1
  213. package/lib/commands/issue-type-scheme/get-issue-types.js +1 -1
  214. package/lib/commands/issue-type-scheme/get-mappings.js +1 -1
  215. package/lib/commands/issue-type-scheme/get-projects.js +1 -1
  216. package/lib/commands/issue-type-scheme/move-issue-types.js +1 -1
  217. package/lib/commands/issue-type-scheme/remove-all-projects.js +1 -1
  218. package/lib/commands/issue-type-scheme/remove-issue-type.js +1 -1
  219. package/lib/commands/issue-type-scheme/remove-project.js +1 -1
  220. package/lib/commands/issue-type-scheme/search.js +1 -1
  221. package/lib/commands/issue-type-scheme/set-projects.js +1 -1
  222. package/lib/commands/issue-type-scheme/update.js +1 -1
  223. package/lib/commands/issue-type-screen-scheme/add-mappings.js +1 -1
  224. package/lib/commands/issue-type-screen-scheme/assign-to-project.js +1 -1
  225. package/lib/commands/issue-type-screen-scheme/create.js +1 -1
  226. package/lib/commands/issue-type-screen-scheme/delete.js +1 -1
  227. package/lib/commands/issue-type-screen-scheme/get-for-projects.js +1 -1
  228. package/lib/commands/issue-type-screen-scheme/get-items.js +1 -1
  229. package/lib/commands/issue-type-screen-scheme/get-projects.js +1 -1
  230. package/lib/commands/issue-type-screen-scheme/remove-mappings.js +1 -1
  231. package/lib/commands/issue-type-screen-scheme/search.js +1 -1
  232. package/lib/commands/issue-type-screen-scheme/set-default-screen.js +1 -1
  233. package/lib/commands/issue-type-screen-scheme/update.js +1 -1
  234. package/lib/commands/issue-vote/add.js +1 -1
  235. package/lib/commands/issue-vote/delete.js +1 -1
  236. package/lib/commands/issue-vote/get-all.js +1 -1
  237. package/lib/commands/issue-watcher/add.js +1 -1
  238. package/lib/commands/issue-watcher/delete.js +1 -1
  239. package/lib/commands/issue-watcher/get-all.js +1 -1
  240. package/lib/commands/issue-watcher/get-bulk.js +1 -1
  241. package/lib/commands/jira-expression/analyse.js +1 -1
  242. package/lib/commands/jira-expression/evaluate.js +1 -1
  243. package/lib/commands/jira-settings/get-advanced.js +1 -1
  244. package/lib/commands/jira-settings/get-globals.js +1 -1
  245. package/lib/commands/jira-settings/get-properties.js +1 -1
  246. package/lib/commands/jira-settings/set-property.js +1 -1
  247. package/lib/commands/jql/convert-user-identifiers.js +1 -1
  248. package/lib/commands/jql/get-auto-complete-suggestions.js +1 -1
  249. package/lib/commands/jql/get-reference-data.js +1 -1
  250. package/lib/commands/jql/parse.js +1 -1
  251. package/lib/commands/jql/sanitize.js +1 -1
  252. package/lib/commands/label/get-all.js +1 -1
  253. package/lib/commands/license/get.js +1 -1
  254. package/lib/commands/myself/change-password.js +1 -1
  255. package/lib/commands/myself/delete-preference.js +1 -1
  256. package/lib/commands/myself/get-locale.js +1 -1
  257. package/lib/commands/myself/get-preference.js +1 -1
  258. package/lib/commands/myself/get.js +1 -1
  259. package/lib/commands/myself/set-preference.js +1 -1
  260. package/lib/commands/myself/update-user.js +1 -1
  261. package/lib/commands/notification-scheme/add.js +1 -1
  262. package/lib/commands/notification-scheme/create.js +1 -1
  263. package/lib/commands/notification-scheme/delete-notification.js +1 -1
  264. package/lib/commands/notification-scheme/delete.js +1 -1
  265. package/lib/commands/notification-scheme/get-all.js +1 -1
  266. package/lib/commands/notification-scheme/get-projects.js +1 -1
  267. package/lib/commands/notification-scheme/get.js +1 -1
  268. package/lib/commands/notification-scheme/update.js +1 -1
  269. package/lib/commands/permission/check-global-permission.js +1 -1
  270. package/lib/commands/permission/check-issue-permission.js +1 -1
  271. package/lib/commands/permission/check-project-permission.js +1 -1
  272. package/lib/commands/permission/get-all.js +1 -1
  273. package/lib/commands/permission/get-my.js +1 -1
  274. package/lib/commands/permission/get-permitted.js +1 -1
  275. package/lib/commands/permission-scheme/create-grant.js +1 -1
  276. package/lib/commands/permission-scheme/create-scheme.js +1 -1
  277. package/lib/commands/permission-scheme/delete-grant.js +1 -1
  278. package/lib/commands/permission-scheme/delete-scheme.js +1 -1
  279. package/lib/commands/permission-scheme/get-all-grants.js +1 -1
  280. package/lib/commands/permission-scheme/get-all.js +1 -1
  281. package/lib/commands/permission-scheme/get-grant.js +1 -1
  282. package/lib/commands/permission-scheme/get.js +1 -1
  283. package/lib/commands/project/archive.js +1 -1
  284. package/lib/commands/project/create.js +1 -1
  285. package/lib/commands/project/delete.js +1 -1
  286. package/lib/commands/project/get-all-issue-types.js +1 -1
  287. package/lib/commands/project/get-all.js +1 -1
  288. package/lib/commands/project/get-issue-type-hierarchy.js +1 -1
  289. package/lib/commands/project/get-notification-schema.js +1 -1
  290. package/lib/commands/project/get.js +1 -1
  291. package/lib/commands/project/project.js +1 -1
  292. package/lib/commands/project/restore.js +1 -1
  293. package/lib/commands/project/search.js +1 -1
  294. package/lib/commands/project/unarchive.js +1 -1
  295. package/lib/commands/project/update.js +1 -1
  296. package/lib/commands/project-avatar/delete.js +1 -1
  297. package/lib/commands/project-avatar/get-all.js +1 -1
  298. package/lib/commands/project-avatar/set.js +1 -1
  299. package/lib/commands/project-avatar/upload.js +1 -1
  300. package/lib/commands/project-category/create.js +1 -1
  301. package/lib/commands/project-category/delete.js +1 -1
  302. package/lib/commands/project-category/get-all.js +1 -1
  303. package/lib/commands/project-category/get.js +1 -1
  304. package/lib/commands/project-category/update.js +1 -1
  305. package/lib/commands/project-component/create.js +1 -1
  306. package/lib/commands/project-component/delete.js +1 -1
  307. package/lib/commands/project-component/get-all.js +1 -1
  308. package/lib/commands/project-component/get-issues-count.js +1 -1
  309. package/lib/commands/project-component/get.js +1 -1
  310. package/lib/commands/project-component/search.js +1 -1
  311. package/lib/commands/project-component/update.js +1 -1
  312. package/lib/commands/project-email/get-sender.js +1 -1
  313. package/lib/commands/project-email/set-sender.js +1 -1
  314. package/lib/commands/project-feature/get.js +1 -1
  315. package/lib/commands/project-feature/set.js +1 -1
  316. package/lib/commands/project-key-and-name-validation/get-valid-key.js +1 -1
  317. package/lib/commands/project-key-and-name-validation/get-valid-name.js +1 -1
  318. package/lib/commands/project-key-and-name-validation/validate-key.js +1 -1
  319. package/lib/commands/project-permission-scheme/get-issue-security-levels.js +1 -1
  320. package/lib/commands/project-permission-scheme/get-issue-security-scheme-levels.js +1 -1
  321. package/lib/commands/project-permission-scheme/get-issue-security-scheme.js +1 -1
  322. package/lib/commands/project-permission-scheme/get-permissions.js +1 -1
  323. package/lib/commands/project-permission-scheme/get.js +1 -1
  324. package/lib/commands/project-permission-scheme/set.js +1 -1
  325. package/lib/commands/project-property/delete.js +1 -1
  326. package/lib/commands/project-property/get-keys.js +1 -1
  327. package/lib/commands/project-property/get.js +1 -1
  328. package/lib/commands/project-property/set.js +1 -1
  329. package/lib/commands/project-role/create.js +1 -1
  330. package/lib/commands/project-role/delete.js +1 -1
  331. package/lib/commands/project-role/get-all.js +1 -1
  332. package/lib/commands/project-role/get-role.js +1 -1
  333. package/lib/commands/project-role/get-roles-and-details.js +1 -1
  334. package/lib/commands/project-role/get-roles.js +1 -1
  335. package/lib/commands/project-role/get.js +1 -1
  336. package/lib/commands/project-role/project-role.js +1 -1
  337. package/lib/commands/project-role/update-partial.js +1 -1
  338. package/lib/commands/project-role/update.js +1 -1
  339. package/lib/commands/project-role-actor/add-actors.js +1 -1
  340. package/lib/commands/project-role-actor/add-default-actors.js +1 -1
  341. package/lib/commands/project-role-actor/delete-actors.js +1 -1
  342. package/lib/commands/project-role-actor/delete-default-actors.js +1 -1
  343. package/lib/commands/project-role-actor/get.js +1 -1
  344. package/lib/commands/project-role-actor/set-actors.js +1 -1
  345. package/lib/commands/project-type/check-accessible.js +1 -1
  346. package/lib/commands/project-type/get-all.js +1 -1
  347. package/lib/commands/project-type/get-licensed.js +1 -1
  348. package/lib/commands/project-type/get.js +1 -1
  349. package/lib/commands/project-type/update.js +1 -1
  350. package/lib/commands/project-version/create.js +1 -1
  351. package/lib/commands/project-version/delete-and-replace.js +1 -1
  352. package/lib/commands/project-version/get-all.js +1 -1
  353. package/lib/commands/project-version/get-related-issue-count.js +1 -1
  354. package/lib/commands/project-version/get-unresolved-issue-count.js +1 -1
  355. package/lib/commands/project-version/get.js +1 -1
  356. package/lib/commands/project-version/merge.js +1 -1
  357. package/lib/commands/project-version/move.js +1 -1
  358. package/lib/commands/project-version/search.js +1 -1
  359. package/lib/commands/project-version/update.js +1 -1
  360. package/lib/commands/screen/add-field-to-default-screen.js +1 -1
  361. package/lib/commands/screen/create.js +1 -1
  362. package/lib/commands/screen/delete.js +1 -1
  363. package/lib/commands/screen/get-all.js +1 -1
  364. package/lib/commands/screen/get-available-fields.js +1 -1
  365. package/lib/commands/screen/get-field-screens.js +1 -1
  366. package/lib/commands/screen/get-workflows.js +1 -1
  367. package/lib/commands/screen/update.js +1 -1
  368. package/lib/commands/screen-scheme/create.js +1 -1
  369. package/lib/commands/screen-scheme/delete.js +1 -1
  370. package/lib/commands/screen-scheme/get-all.js +1 -1
  371. package/lib/commands/screen-scheme/update.js +1 -1
  372. package/lib/commands/screen-tab/create.js +1 -1
  373. package/lib/commands/screen-tab/delete.js +1 -1
  374. package/lib/commands/screen-tab/get-all.js +1 -1
  375. package/lib/commands/screen-tab/move.js +1 -1
  376. package/lib/commands/screen-tab/update.js +1 -1
  377. package/lib/commands/screen-tab-field/add.js +1 -1
  378. package/lib/commands/screen-tab-field/get-all.js +1 -1
  379. package/lib/commands/screen-tab-field/move.js +1 -1
  380. package/lib/commands/screen-tab-field/remove.js +1 -1
  381. package/lib/commands/server-info/get.js +1 -1
  382. package/lib/commands/server-info/jmx.js +1 -1
  383. package/lib/commands/status/create.js +1 -1
  384. package/lib/commands/status/delete.js +1 -1
  385. package/lib/commands/status/get-usages.js +1 -1
  386. package/lib/commands/status/get.js +1 -1
  387. package/lib/commands/status/search.js +1 -1
  388. package/lib/commands/status/status-command.js +1 -1
  389. package/lib/commands/status/update.js +1 -1
  390. package/lib/commands/task/cancel.js +1 -1
  391. package/lib/commands/task/get.js +1 -1
  392. package/lib/commands/time-tracking/get-all.js +1 -1
  393. package/lib/commands/time-tracking/get-setting.js +1 -1
  394. package/lib/commands/time-tracking/get.js +1 -1
  395. package/lib/commands/time-tracking/select.js +1 -1
  396. package/lib/commands/time-tracking/set.js +1 -1
  397. package/lib/commands/user/add-user-to-application.js +1 -1
  398. package/lib/commands/user/change-password.js +1 -1
  399. package/lib/commands/user/create.js +1 -1
  400. package/lib/commands/user/delete.js +1 -1
  401. package/lib/commands/user/get-all.js +1 -1
  402. package/lib/commands/user/get-default-columns.js +1 -1
  403. package/lib/commands/user/get-email.js +1 -1
  404. package/lib/commands/user/get-user-groups.js +1 -1
  405. package/lib/commands/user/get.js +1 -1
  406. package/lib/commands/user/remove-user-from-application.js +1 -1
  407. package/lib/commands/user/reset-default-columns.js +1 -1
  408. package/lib/commands/user/set-default-columns.js +1 -1
  409. package/lib/commands/user/update.js +1 -1
  410. package/lib/commands/user/user-command.js +1 -1
  411. package/lib/commands/user-property/delete.js +1 -1
  412. package/lib/commands/user-property/get-all-keys.js +1 -1
  413. package/lib/commands/user-property/get-user-property.js +1 -1
  414. package/lib/commands/user-property/set.js +1 -1
  415. package/lib/commands/user-search/accounts-with-query.js +1 -1
  416. package/lib/commands/user-search/assignable-users-bulk.js +1 -1
  417. package/lib/commands/user-search/assignable-users.js +1 -1
  418. package/lib/commands/user-search/find.js +1 -1
  419. package/lib/commands/user-search/with-permission.js +1 -1
  420. package/lib/commands/user-search/with-query.js +1 -1
  421. package/lib/commands/workflow/create.js +1 -1
  422. package/lib/commands/workflow/delete.js +1 -1
  423. package/lib/commands/workflow/get-projects.js +1 -1
  424. package/lib/commands/workflow/get-schemes.js +1 -1
  425. package/lib/commands/workflow/get-statuses-properties.js +1 -1
  426. package/lib/commands/workflow/get-statuses.js +1 -1
  427. package/lib/commands/workflow/get-transitions-rules.js +1 -1
  428. package/lib/commands/workflow/get-transitions.js +1 -1
  429. package/lib/commands/workflow/search.js +1 -1
  430. package/lib/commands/workflow-scheme/create.js +1 -1
  431. package/lib/commands/workflow-scheme/delete-default-workflow.js +1 -1
  432. package/lib/commands/workflow-scheme/delete-issue-types-for-workflow.js +1 -1
  433. package/lib/commands/workflow-scheme/delete-workflow-for-issue-type.js +1 -1
  434. package/lib/commands/workflow-scheme/delete.js +1 -1
  435. package/lib/commands/workflow-scheme/get-all.js +1 -1
  436. package/lib/commands/workflow-scheme/get-default-workflow.js +1 -1
  437. package/lib/commands/workflow-scheme/get-issue-types-for-workflows.js +1 -1
  438. package/lib/commands/workflow-scheme/get-workflow-for-issue-type.js +1 -1
  439. package/lib/commands/workflow-scheme/get.js +1 -1
  440. package/lib/commands/workflow-scheme/set-issue-types-for-workflow.js +1 -1
  441. package/lib/commands/workflow-scheme/set-workflow-for-issue-type.js +1 -1
  442. package/lib/commands/workflow-scheme/update-default-workflow.js +1 -1
  443. package/lib/commands/workflow-scheme/update.js +1 -1
  444. package/lib/commands/workflow-scheme-draft/create.js +1 -1
  445. package/lib/commands/workflow-scheme-draft/delete-default-workflow.js +1 -1
  446. package/lib/commands/workflow-scheme-draft/delete-issue-types-for-workflow.js +1 -1
  447. package/lib/commands/workflow-scheme-draft/delete-workflow-for-issue-type.js +1 -1
  448. package/lib/commands/workflow-scheme-draft/delete.js +1 -1
  449. package/lib/commands/workflow-scheme-draft/get-default-workflow.js +1 -1
  450. package/lib/commands/workflow-scheme-draft/get-issue-types-for-workflows.js +1 -1
  451. package/lib/commands/workflow-scheme-draft/get-workflow-for-issue-type.js +1 -1
  452. package/lib/commands/workflow-scheme-draft/get.js +1 -1
  453. package/lib/commands/workflow-scheme-draft/publish.js +1 -1
  454. package/lib/commands/workflow-scheme-draft/set-issue-types-for-workflow.js +1 -1
  455. package/lib/commands/workflow-scheme-draft/set-workflow-for-issue-type.js +1 -1
  456. package/lib/commands/workflow-scheme-draft/update-default-workflow.js +1 -1
  457. package/lib/commands/workflow-scheme-draft/update.js +1 -1
  458. package/lib/commands/workflow-scheme-project-association/assign.js +1 -1
  459. package/lib/commands/workflow-scheme-project-association/get-all.js +1 -1
  460. package/lib/commands/workflow-status/get-all.js +1 -1
  461. package/lib/commands/workflow-status/get.js +1 -1
  462. package/lib/commands/workflow-status-category/get-all.js +1 -1
  463. package/lib/commands/workflow-status-category/get.js +1 -1
  464. package/lib/commands/workflow-transition-property/create.js +1 -1
  465. package/lib/commands/workflow-transition-property/delete.js +1 -1
  466. package/lib/commands/workflow-transition-property/get.js +1 -1
  467. package/lib/commands/workflow-transition-property/update.js +1 -1
  468. package/lib/commands/worklog/add.js +1 -1
  469. package/lib/commands/worklog/delete.js +1 -1
  470. package/lib/commands/worklog/get-deleted.js +1 -1
  471. package/lib/commands/worklog/get-for-issue.js +1 -1
  472. package/lib/commands/worklog/get-updated.js +1 -1
  473. package/lib/commands/worklog/get-with-ids.js +1 -1
  474. package/lib/commands/worklog/get.js +1 -1
  475. package/lib/commands/worklog/update.js +1 -1
  476. package/lib/commands/worklog-property/delete.js +1 -1
  477. package/lib/commands/worklog-property/get-keys.js +1 -1
  478. package/lib/commands/worklog-property/get.js +1 -1
  479. package/lib/commands/worklog-property/set-property.js +1 -1
  480. package/lib/index.js +1 -1
  481. package/package.json +4 -3
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class SearchIssueTypeSchemes extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,s){var a=(await this.parse(SearchIssueTypeSchemes))["flags"],t=this.removeFlagsFromBase(this.modifySearchFlags(a)),i=t["all"],t=tslib_1.__rest(t,["all"]),r=(t.id=null==(r=t.id)?void 0:r.split(","),t.maxResults=5,await s.issueTypeSchemeManager.getAllIssueTypeSchemes(t));i&&(r.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(r,t,s.issueTypeSchemeManager.getAllIssueTypeSchemes.bind(s.issueTypeSchemeManager))),this.display(a,this.modifyCloudResponseForDisplay(r.values))}async runWithServerSite(e,s){const a=(await this.parse(SearchIssueTypeSchemes))["flags"];s=await s.issueTypeSchemeManager.getAllIssueTypeSchemes({expand:"schemes.defaultIssueType"});a.id&&(s.schemes=s.schemes.filter(e=>{var s;return null==(s=a.id)?void 0:s.split(",").includes(e.id)})),this.display(a,this.modifyServerResponseForDisplay(s.schemes))}modifyCloudResponseForDisplay(e){return e.forEach(e=>{e.defaultIssueTypeId=e.defaultIssueTypeId||""}),e}modifyServerResponseForDisplay(e){return e.forEach(e=>{e.defaultIssueTypeId=e.defaultIssueType?e.defaultIssueType.id:""}),e}modifySearchFlags(e){return e.queryString=e.query,delete e.query,e}}(exports.default=SearchIssueTypeSchemes).description="Searches all issue type schemes. Only issue type schemes used in classic projects are returned.",SearchIssueTypeSchemes.flags=Object.assign(Object.assign(Object.assign(Object.assign({id:core_1.Flags.string({char:"i",description:"Issue type schemes IDs you want to get. You can provide multiple IDs by seperating them with comma. Example: --id=10000,10001"})},(0,atlascli_common_1.getSearchFlags)()),{orderBy:core_1.Flags.string({options:["name","id"]})}),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class SearchIssueTypeSchemes extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,s){var a=(await this.parse(SearchIssueTypeSchemes)).flags,i=this.removeFlagsFromBase(this.modifySearchFlags(a)),t=i.all,i=tslib_1.__rest(i,["all"]),l=(i.id=null==(l=i.id)?void 0:l.split(","),i.maxResults=5,await s.issueTypeSchemeManager.getAllIssueTypeSchemes(i));t&&(l.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(l,i,s.issueTypeSchemeManager.getAllIssueTypeSchemes.bind(s.issueTypeSchemeManager))),this.display(a,this.modifyCloudResponseForDisplay(l.values))}async runWithServerSite(e,s){let a=(await this.parse(SearchIssueTypeSchemes)).flags;s=await s.issueTypeSchemeManager.getAllIssueTypeSchemes({expand:"schemes.defaultIssueType"});a.id&&(s.schemes=s.schemes.filter(e=>{var s;return null==(s=a.id)?void 0:s.split(",").includes(e.id)})),this.display(a,this.modifyServerResponseForDisplay(s.schemes))}modifyCloudResponseForDisplay(e){return e.forEach(e=>{e.defaultIssueTypeId=e.defaultIssueTypeId||""}),e}modifyServerResponseForDisplay(e){return e.forEach(e=>{e.defaultIssueTypeId=e.defaultIssueType?e.defaultIssueType.id:""}),e}modifySearchFlags(e){return e.queryString=e.query,delete e.query,e}}(exports.default=SearchIssueTypeSchemes).description="Searches all issue type schemes. Only issue type schemes used in classic projects are returned.",SearchIssueTypeSchemes.flags=Object.assign(Object.assign(Object.assign(Object.assign({id:core_1.Flags.string({char:"i",description:"Issue type schemes IDs you want to get. You can provide multiple IDs by seperating them with comma. Example: --id=10000,10001"})},(0,atlascli_common_1.getSearchFlags)()),{orderBy:core_1.Flags.string({options:["name","id"]})}),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class SetProjectAssociations extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(e,t){var s=(await this.parse(SetProjectAssociations))["flags"],i=tslib_1.__rest(this.removeFlagsFromBase(s),[]),r=await(0,project_util_1.getProject)(t,i.project);i.projectId=r.projectId,delete i.project,await t.issueTypeSchemeManager.setProjectAssociation(s.id,s.projectId)}}(exports.default=SetProjectAssociations).description="Sets projects which assigned to issue type scheme.",SetProjectAssociations.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the issue type scheme",required:!0}),project:core_1.Flags.string({description:"Project IDs or Keys. You can provide multiple values by separating them with comma. Example usage: --project=1 2 3",required:!0,multiple:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class SetProjectAssociations extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(e,t){var s=(await this.parse(SetProjectAssociations)).flags,i=tslib_1.__rest(this.removeFlagsFromBase(s),[]),r=await(0,project_util_1.getProject)(t,i.project);i.projectId=r.projectId,delete i.project,await t.issueTypeSchemeManager.setProjectAssociation(s.id,s.projectId)}}(exports.default=SetProjectAssociations).description="Sets projects which assigned to issue type scheme.",SetProjectAssociations.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the issue type scheme",required:!0}),project:core_1.Flags.string({description:"Project IDs or Keys. You can provide multiple values by separating them with comma. Example usage: --project=1 2 3",required:!0,multiple:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getServerUpdateBody=void 0;const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");async function getServerUpdateBody(s,e,t){var a,t=(await t.issueTypeSchemeManager.getAllIssueTypeSchemes({expand:"schemes.issueTypes,schemes.defaultIssueType"})).schemes.filter(e=>e.id===s)[0];e.defaultIssueTypeId||(e.defaultIssueTypeId=null==(a=t.defaultIssueType)?void 0:a.id),e.name||(e.name=t.name),e.description||(e.description=t.description||"");const i=[];return null!=(a=t.issueTypes)&&a.forEach(e=>i.push(e.id)),e.issueTypeIds=i,e}exports.getServerUpdateBody=getServerUpdateBody;class UpdateIssueTypeSchemes extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,s){var t=(await this.parse(UpdateIssueTypeSchemes))["flags"],t=this.removeFlagsFromBase(t),a=t["id"],t=tslib_1.__rest(t,["id"]);await s.issueTypeSchemeManager.updateIssueTypeScheme(a,t)}async runWithServerSite(e,s){var t=(await this.parse(UpdateIssueTypeSchemes))["flags"],a=this.removeFlagsFromBase(t),i=a["id"],a=await getServerUpdateBody(i,tslib_1.__rest(a,["id"]),s),s=await s.issueTypeSchemeManager.updateIssueTypeScheme(i,a);this.display(t,s)}}(exports.default=UpdateIssueTypeSchemes).description="Updates an issue type schemes.",UpdateIssueTypeSchemes.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the issue type scheme.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the issue type scheme. The name must be unique."}),description:core_1.Flags.string({char:"d",description:"The description of the issue type scheme."}),defaultIssueTypeId:core_1.Flags.string({description:"The ID of the default issue type of the issue type scheme."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.getServerUpdateBody=void 0;let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");async function getServerUpdateBody(s,e,t){var a,t=(await t.issueTypeSchemeManager.getAllIssueTypeSchemes({expand:"schemes.issueTypes,schemes.defaultIssueType"})).schemes.filter(e=>e.id===s)[0];e.defaultIssueTypeId||(e.defaultIssueTypeId=null==(a=t.defaultIssueType)?void 0:a.id),e.name||(e.name=t.name),e.description||(e.description=t.description||"");let i=[];return null!=(a=t.issueTypes)&&a.forEach(e=>i.push(e.id)),e.issueTypeIds=i,e}exports.getServerUpdateBody=getServerUpdateBody;class UpdateIssueTypeSchemes extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,s){var t=(await this.parse(UpdateIssueTypeSchemes)).flags,t=this.removeFlagsFromBase(t),a=t.id,t=tslib_1.__rest(t,["id"]);await s.issueTypeSchemeManager.updateIssueTypeScheme(a,t)}async runWithServerSite(e,s){var t=(await this.parse(UpdateIssueTypeSchemes)).flags,a=this.removeFlagsFromBase(t),i=a.id,a=await getServerUpdateBody(i,tslib_1.__rest(a,["id"]),s),s=await s.issueTypeSchemeManager.updateIssueTypeScheme(i,a);this.display(t,s)}}(exports.default=UpdateIssueTypeSchemes).description="Updates an issue type schemes.",UpdateIssueTypeSchemes.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the issue type scheme.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the issue type scheme. The name must be unique."}),description:core_1.Flags.string({char:"d",description:"The description of the issue type scheme."}),defaultIssueTypeId:core_1.Flags.string({description:"The ID of the default issue type of the issue type scheme."})},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"),create_1=require("./create");class AppendMappingsToIssueTypeScreenScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var i=(await this.parse(AppendMappingsToIssueTypeScreenScheme))["flags"],i=this.removeFlagsFromBase((0,create_1.modifyIssueTypeScreenSchemeMappings)(i)),r=i["id"],i=tslib_1.__rest(i,["id"]);await s.issueTypeScreenSchemeManager.appendMappingsToIssueTypeScreenScheme(r,i)}}(exports.default=AppendMappingsToIssueTypeScreenScheme).description="Adds issue type mappings to issue type screen scheme.",AppendMappingsToIssueTypeScreenScheme.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the issue type screen scheme.",required:!0}),mapping:core_1.Flags.string({description:"The IDs of the screen schemes for the issue type IDs and default. A default entry is required to create an issue type screen scheme, it defines the mapping for all issue types without a screen scheme. KEYS: [issueTypeId, screenSchemeID]\nExample usage: --mapping=issueTypeId=default,screenSchemeId=10000",multiple:!0,required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),create_1=require("./create");class AppendMappingsToIssueTypeScreenScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var i=(await this.parse(AppendMappingsToIssueTypeScreenScheme)).flags,i=this.removeFlagsFromBase((0,create_1.modifyIssueTypeScreenSchemeMappings)(i)),a=i.id,i=tslib_1.__rest(i,["id"]);await s.issueTypeScreenSchemeManager.appendMappingsToIssueTypeScreenScheme(a,i)}}(exports.default=AppendMappingsToIssueTypeScreenScheme).description="Adds issue type mappings to issue type screen scheme.",AppendMappingsToIssueTypeScreenScheme.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the issue type screen scheme.",required:!0}),mapping:core_1.Flags.string({description:"The IDs of the screen schemes for the issue type IDs and default. A default entry is required to create an issue type screen scheme, it defines the mapping for all issue types without a screen scheme. KEYS: [issueTypeId, screenSchemeID]\nExample usage: --mapping=issueTypeId=default,screenSchemeId=10000",multiple:!0,required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class AssignIssueTypeScreenSchemeToProject extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var c=(await this.parse(AssignIssueTypeScreenSchemeToProject))["flags"],r=await(0,project_util_1.getProject)(s,c.project);c.projectId=r.projectId,await s.issueTypeScreenSchemeManager.assignIssueTypeScreenSchemeToProject({issueTypeScreenSchemeId:c.id,projectId:c.projectId})}}(exports.default=AssignIssueTypeScreenSchemeToProject).description="Assigns an issue type screen scheme to a project.",AssignIssueTypeScreenSchemeToProject.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the issue type screen scheme.",required:!0}),project:core_1.Flags.string({char:"p",description:"The ID or key of the project.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class AssignIssueTypeScreenSchemeToProject extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var r=(await this.parse(AssignIssueTypeScreenSchemeToProject)).flags,c=await(0,project_util_1.getProject)(s,r.project);r.projectId=c.projectId,await s.issueTypeScreenSchemeManager.assignIssueTypeScreenSchemeToProject({issueTypeScreenSchemeId:r.id,projectId:r.projectId})}}(exports.default=AssignIssueTypeScreenSchemeToProject).description="Assigns an issue type screen scheme to a project.",AssignIssueTypeScreenSchemeToProject.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the issue type screen scheme.",required:!0}),project:core_1.Flags.string({char:"p",description:"The ID or key of the project.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.modifyIssueTypeScreenSchemeMappings=void 0;const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");function modifyIssueTypeScreenSchemeMappings(e){return e.issueTypeMappings=e.mapping.map(e=>(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(e,"mapping",["issueTypeId","screenSchemeId"])[0]),delete e.mapping,e}exports.modifyIssueTypeScreenSchemeMappings=modifyIssueTypeScreenSchemeMappings;class CreateIssueTypeScreenScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var i=(await this.parse(CreateIssueTypeScreenScheme))["flags"],r=this.removeFlagsFromBase(modifyIssueTypeScreenSchemeMappings(i)),s=await s.issueTypeScreenSchemeManager.createIssueTypeScreenScheme(r);this.display(i,s)}}(exports.default=CreateIssueTypeScreenScheme).description="Creates an issue type screen scheme.",CreateIssueTypeScreenScheme.flags=Object.assign({name:core_1.Flags.string({char:"n",description:"The name of the issue type screen scheme.",required:!0}),description:core_1.Flags.string({description:"The description of the issue type screen scheme."}),mapping:core_1.Flags.string({description:"The IDs of the screen schemes for the issue type IDs and default. A default entry is required to create an issue type screen scheme, it defines the mapping for all issue types without a screen scheme. KEYS: [issueTypeId, screenSchemeID]\nExample usage: --mapping=issueTypeId=default,screenSchemeId=10000",multiple:!0,required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.modifyIssueTypeScreenSchemeMappings=void 0;let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");function modifyIssueTypeScreenSchemeMappings(e){return e.issueTypeMappings=e.mapping.map(e=>(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(e,"mapping",["issueTypeId","screenSchemeId"])[0]),delete e.mapping,e}exports.modifyIssueTypeScreenSchemeMappings=modifyIssueTypeScreenSchemeMappings;class CreateIssueTypeScreenScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var i=(await this.parse(CreateIssueTypeScreenScheme)).flags,a=this.removeFlagsFromBase(modifyIssueTypeScreenSchemeMappings(i)),s=await s.issueTypeScreenSchemeManager.createIssueTypeScreenScheme(a);this.display(i,s)}}(exports.default=CreateIssueTypeScreenScheme).description="Creates an issue type screen scheme.",CreateIssueTypeScreenScheme.flags=Object.assign({name:core_1.Flags.string({char:"n",description:"The name of the issue type screen scheme.",required:!0}),description:core_1.Flags.string({description:"The description of the issue type screen scheme."}),mapping:core_1.Flags.string({description:"The IDs of the screen schemes for the issue type IDs and default. A default entry is required to create an issue type screen scheme, it defines the mapping for all issue types without a screen scheme. KEYS: [issueTypeId, screenSchemeID]\nExample usage: --mapping=issueTypeId=default,screenSchemeId=10000",multiple:!0,required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteIssueTypeScreenScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var c=(await this.parse(DeleteIssueTypeScreenScheme))["flags"];await s.issueTypeScreenSchemeManager.deleteIssueTypeScreenScheme(c.id)}}(exports.default=DeleteIssueTypeScreenScheme).description="Deletes an issue type screen scheme.",DeleteIssueTypeScreenScheme.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the issue type screen scheme.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteIssueTypeScreenScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var c=(await this.parse(DeleteIssueTypeScreenScheme)).flags;await s.issueTypeScreenSchemeManager.deleteIssueTypeScreenScheme(c.id)}}(exports.default=DeleteIssueTypeScreenScheme).description="Deletes an issue type screen scheme.",DeleteIssueTypeScreenScheme.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the issue type screen scheme.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class GetIssueTypeScreenSchemeSForProjects extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var t=(await this.parse(GetIssueTypeScreenSchemeSForProjects))["flags"],r=this.removeFlagsFromBase(t),{project:a,all:c}=r,r=tslib_1.__rest(r,["project","all"]),a=await(0,project_util_1.getProject)(s,a),a=(r.projectId=a.projectId.map(e=>Number.parseInt(e,10)),await s.issueTypeScreenSchemeManager.getIssueTypeScreenSchemesForProjects(r));c&&(a.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(a,r,s.issueTypeScreenSchemeManager.getIssueTypeScreenSchemesForProjects.bind(s.issueTypeScreenSchemeManager))),this.display(t,this.modifyResponseForDisplay(a.values))}modifyResponseForDisplay(e){const t=[];return e.forEach(s=>{s.projectIds.forEach(e=>{t.push({projectId:e,issueTypeScreenSchemeId:s.issueTypeScreenScheme.id})})}),t}}(exports.default=GetIssueTypeScreenSchemeSForProjects).description="Gets issue type scheme screen IDs that given projects used (project - issue type screen scheme mapping.).",GetIssueTypeScreenSchemeSForProjects.flags=Object.assign(Object.assign(Object.assign({project:core_1.Flags.string({char:"p",description:"The IDs or keys of the projects. You can provide multiple values by separating them with comma. Example: --project=1 2 3",required:!0,multiple:!0})},(0,atlascli_common_1.getStartAtAndMaxFlags)()),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class GetIssueTypeScreenSchemeSForProjects extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var t=(await this.parse(GetIssueTypeScreenSchemeSForProjects)).flags,r=this.removeFlagsFromBase(t),{project:a,all:c}=r,r=tslib_1.__rest(r,["project","all"]),a=await(0,project_util_1.getProject)(s,a),a=(r.projectId=a.projectId.map(e=>Number.parseInt(e,10)),await s.issueTypeScreenSchemeManager.getIssueTypeScreenSchemesForProjects(r));c&&(a.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(a,r,s.issueTypeScreenSchemeManager.getIssueTypeScreenSchemesForProjects.bind(s.issueTypeScreenSchemeManager))),this.display(t,this.modifyResponseForDisplay(a.values))}modifyResponseForDisplay(e){let t=[];return e.forEach(s=>{s.projectIds.forEach(e=>{t.push({projectId:e,issueTypeScreenSchemeId:s.issueTypeScreenScheme.id})})}),t}}(exports.default=GetIssueTypeScreenSchemeSForProjects).description="Gets issue type scheme screen IDs that given projects used (project - issue type screen scheme mapping.).",GetIssueTypeScreenSchemeSForProjects.flags=Object.assign(Object.assign(Object.assign({project:core_1.Flags.string({char:"p",description:"The IDs or keys of the projects. You can provide multiple values by separating them with comma. Example: --project=1 2 3",required:!0,multiple:!0})},(0,atlascli_common_1.getStartAtAndMaxFlags)()),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetIssueTypeScreenSchemeItems extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var t=(await this.parse(GetIssueTypeScreenSchemeItems))["flags"],a=this.modifyQuery(this.removeFlagsFromBase(t)),i=a["all"],a=tslib_1.__rest(a,["all"]),r=await s.issueTypeScreenSchemeManager.getIssueTypeScreenSchemeItems(a);i&&(r.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(r,a,s.issueTypeScreenSchemeManager.getIssueTypeScreenSchemeItems.bind(s.issueTypeScreenSchemeManager))),this.display(t,r.values)}modifyQuery(e){var s;return e.issueTypeScreenSchemeId=null==(s=e.ids)?void 0:s.split(","),delete e.ids,e}}(exports.default=GetIssueTypeScreenSchemeItems).description="Gets issue type screen scheme items.",GetIssueTypeScreenSchemeItems.flags=Object.assign(Object.assign(Object.assign({ids:core_1.Flags.string({char:"i",description:"The ID of the issue type screen scheme. You can provide multiple values by separating them with comma. Example: --ids=1,2,3"})},(0,atlascli_common_1.getStartAtAndMaxFlags)()),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetIssueTypeScreenSchemeItems extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var t=(await this.parse(GetIssueTypeScreenSchemeItems)).flags,a=this.modifyQuery(this.removeFlagsFromBase(t)),i=a.all,a=tslib_1.__rest(a,["all"]),l=await s.issueTypeScreenSchemeManager.getIssueTypeScreenSchemeItems(a);i&&(l.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(l,a,s.issueTypeScreenSchemeManager.getIssueTypeScreenSchemeItems.bind(s.issueTypeScreenSchemeManager))),this.display(t,l.values)}modifyQuery(e){var s;return e.issueTypeScreenSchemeId=null==(s=e.ids)?void 0:s.split(","),delete e.ids,e}}(exports.default=GetIssueTypeScreenSchemeItems).description="Gets issue type screen scheme items.",GetIssueTypeScreenSchemeItems.flags=Object.assign(Object.assign(Object.assign({ids:core_1.Flags.string({char:"i",description:"The ID of the issue type screen scheme. You can provide multiple values by separating them with comma. Example: --ids=1,2,3"})},(0,atlascli_common_1.getStartAtAndMaxFlags)()),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetIssueTypeScreenSchemeProjects extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var t=(await this.parse(GetIssueTypeScreenSchemeProjects))["flags"],a=this.removeFlagsFromBase(t),{id:c,all:r}=a,a=tslib_1.__rest(a,["id","all"]),i=await s.issueTypeScreenSchemeManager.getIssueTypeScreenSchemeProjects(c,a);r&&(i.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(i,a,s.issueTypeScreenSchemeManager.getIssueTypeScreenSchemeProjects.bind(s.issueTypeScreenSchemeManager,c))),this.display(t,i.values)}}(exports.default=GetIssueTypeScreenSchemeProjects).description="Gets projects associated with an issue type screen scheme.",GetIssueTypeScreenSchemeProjects.flags=Object.assign(Object.assign(Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the issue type screen scheme.",required:!0}),query:core_1.Flags.string()},(0,atlascli_common_1.getStartAtAndMaxFlags)()),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetIssueTypeScreenSchemeProjects extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var t=(await this.parse(GetIssueTypeScreenSchemeProjects)).flags,a=this.removeFlagsFromBase(t),{id:r,all:c}=a,a=tslib_1.__rest(a,["id","all"]),i=await s.issueTypeScreenSchemeManager.getIssueTypeScreenSchemeProjects(r,a);c&&(i.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(i,a,s.issueTypeScreenSchemeManager.getIssueTypeScreenSchemeProjects.bind(s.issueTypeScreenSchemeManager,r))),this.display(t,i.values)}}(exports.default=GetIssueTypeScreenSchemeProjects).description="Gets projects associated with an issue type screen scheme.",GetIssueTypeScreenSchemeProjects.flags=Object.assign(Object.assign(Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the issue type screen scheme.",required:!0}),query:core_1.Flags.string()},(0,atlascli_common_1.getStartAtAndMaxFlags)()),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class RemoveMappings extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var i=(await this.parse(RemoveMappings))["flags"];await s.issueTypeScreenSchemeManager.removeMappingsFromIssueTypeScreenScheme(i.id,{issueTypeIds:i.issueTypeIds.split(",")})}}(exports.default=RemoveMappings).description="Removes issue type to screen scheme mappings from an issue type screen scheme.",RemoveMappings.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the issue type screen scheme.",required:!0}),issueTypeIds:core_1.Flags.string({description:"The IDs of the issue types. You can provide multiple values by separating them with comma. Example: --isueTypeIds=1,2,3",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 RemoveMappings extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var i=(await this.parse(RemoveMappings)).flags;await s.issueTypeScreenSchemeManager.removeMappingsFromIssueTypeScreenScheme(i.id,{issueTypeIds:i.issueTypeIds.split(",")})}}(exports.default=RemoveMappings).description="Removes issue type to screen scheme mappings from an issue type screen scheme.",RemoveMappings.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the issue type screen scheme.",required:!0}),issueTypeIds:core_1.Flags.string({description:"The IDs of the issue types. You can provide multiple values by separating them with comma. Example: --isueTypeIds=1,2,3",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class SearchIssueTypeScreenSchemes extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var a=(await this.parse(SearchIssueTypeScreenSchemes))["flags"],r=this.removeFlagsFromBase(this.modifySearchFlags(a)),t=r["all"],r=tslib_1.__rest(r,["all"]),c=(r.id=null==(c=r.id)?void 0:c.split(","),await s.issueTypeScreenSchemeManager.searchIssueTypeScreenSchemes(r));t&&(c.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(c,r,s.issueTypeScreenSchemeManager.searchIssueTypeScreenSchemes.bind(s.issueTypeScreenSchemeManager))),this.display(a,c.values)}modifySearchFlags(e){return e.queryString=e.query,delete e.query,e}}(exports.default=SearchIssueTypeScreenSchemes).description="Searches issue type screen schemes.",SearchIssueTypeScreenSchemes.flags=Object.assign(Object.assign(Object.assign(Object.assign({id:core_1.Flags.string({char:"i",description:"Issue type screen schemes IDs you want to get. You can provide multiple IDs by seperating them with comma. Example: --id=10000,10001"})},(0,atlascli_common_1.getSearchFlags)()),{orderBy:core_1.Flags.string({options:["name","id"]})}),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class SearchIssueTypeScreenSchemes extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var a=(await this.parse(SearchIssueTypeScreenSchemes)).flags,r=this.removeFlagsFromBase(this.modifySearchFlags(a)),t=r.all,r=tslib_1.__rest(r,["all"]),c=(r.id=null==(c=r.id)?void 0:c.split(","),await s.issueTypeScreenSchemeManager.searchIssueTypeScreenSchemes(r));t&&(c.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(c,r,s.issueTypeScreenSchemeManager.searchIssueTypeScreenSchemes.bind(s.issueTypeScreenSchemeManager))),this.display(a,c.values)}modifySearchFlags(e){return e.queryString=e.query,delete e.query,e}}(exports.default=SearchIssueTypeScreenSchemes).description="Searches issue type screen schemes.",SearchIssueTypeScreenSchemes.flags=Object.assign(Object.assign(Object.assign(Object.assign({id:core_1.Flags.string({char:"i",description:"Issue type screen schemes IDs you want to get. You can provide multiple IDs by seperating them with comma. Example: --id=10000,10001"})},(0,atlascli_common_1.getSearchFlags)()),{orderBy:core_1.Flags.string({options:["name","id"]})}),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class SetDefaultScreen extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var t=(await this.parse(SetDefaultScreen))["flags"];await s.issueTypeScreenSchemeManager.setDefaultScreenScheme(t.id,{screenSchemeId:t.screenScheme})}}(exports.default=SetDefaultScreen).description="Sets the default screen scheme of an issue type screen scheme. The default screen scheme is used for all unmapped issue types.",SetDefaultScreen.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the issue type screen scheme.",required:!0}),screenScheme:core_1.Flags.string({char:"s",description:"The ID of the screen scheme.",required:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class SetDefaultScreen extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var t=(await this.parse(SetDefaultScreen)).flags;await s.issueTypeScreenSchemeManager.setDefaultScreenScheme(t.id,{screenSchemeId:t.screenScheme})}}(exports.default=SetDefaultScreen).description="Sets the default screen scheme of an issue type screen scheme. The default screen scheme is used for all unmapped issue types.",SetDefaultScreen.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the issue type screen scheme.",required:!0}),screenScheme:core_1.Flags.string({char:"s",description:"The ID of the screen scheme.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateIssueTypeScreenScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var c=(await this.parse(UpdateIssueTypeScreenScheme))["flags"];await s.issueTypeScreenSchemeManager.updateIssueTypeScreenScheme(c.id,{name:c.name,description:c.description})}}(exports.default=UpdateIssueTypeScreenScheme).description="Updates an issue type screen scheme.",UpdateIssueTypeScreenScheme.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the issue type screen scheme.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the issue type screen scheme."}),description:core_1.Flags.string({char:"d",description:"The description of the issue type screen scheme."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateIssueTypeScreenScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var c=(await this.parse(UpdateIssueTypeScreenScheme)).flags;await s.issueTypeScreenSchemeManager.updateIssueTypeScreenScheme(c.id,{name:c.name,description:c.description})}}(exports.default=UpdateIssueTypeScreenScheme).description="Updates an issue type screen scheme.",UpdateIssueTypeScreenScheme.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the issue type screen scheme.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the issue type screen scheme."}),description:core_1.Flags.string({char:"d",description:"The description of the issue type screen scheme."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class AddIssueVote extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var s=(await this.parse(AddIssueVote))["flags"];await this.getJira(e,s).issueVoteManager.addVote(s.issue)}}(exports.default=AddIssueVote).description="Adds the users vote to an issue.",AddIssueVote.flags=Object.assign({issue:core_1.Flags.string({char:"i",description:"The ID or key of the issue.",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 AddIssueVote extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var s=(await this.parse(AddIssueVote)).flags;await this.getJira(e,s).issueVoteManager.addVote(s.issue)}}(exports.default=AddIssueVote).description="Adds the users vote to an issue.",AddIssueVote.flags=Object.assign({issue:core_1.Flags.string({char:"i",description:"The ID or key of the issue.",required:!0})},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 DeleteIssueVote extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var s=(await this.parse(DeleteIssueVote))["flags"];await this.getJira(e,s).issueVoteManager.removeVote(s.issue)}}(exports.default=DeleteIssueVote).description="Deletes a users vote from an issue.",DeleteIssueVote.flags=Object.assign({issue:core_1.Flags.string({char:"i",description:"The ID or key of the issue.",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 DeleteIssueVote extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var s=(await this.parse(DeleteIssueVote)).flags;await this.getJira(e,s).issueVoteManager.removeVote(s.issue)}}(exports.default=DeleteIssueVote).description="Deletes a users vote from an issue.",DeleteIssueVote.flags=Object.assign({issue:core_1.Flags.string({char:"i",description:"The ID or key of the issue.",required:!0})},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 GetAllVotes extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var s=(await this.parse(GetAllVotes))["flags"],e=await this.getJira(e,s).issueVoteManager.getVotes(s.issue),e=this.modifyResponse(e);this.display(s,e)}modifyResponse(s){return s.voters.map(e=>(e.hasVoted=s.hasVoted,e))}}(exports.default=GetAllVotes).description="Returns details about the votes on an issue.",GetAllVotes.flags=Object.assign({issue:core_1.Flags.string({char:"i",description:"The ID or key of the issue.",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 GetAllVotes extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var s=(await this.parse(GetAllVotes)).flags,e=await this.getJira(e,s).issueVoteManager.getVotes(s.issue),e=this.modifyResponse(e);this.display(s,e)}modifyResponse(s){return s.voters.map(e=>(e.hasVoted=s.hasVoted,e))}}(exports.default=GetAllVotes).description="Returns details about the votes on an issue.",GetAllVotes.flags=Object.assign({issue:core_1.Flags.string({char:"i",description:"The ID or key of the issue.",required:!0})},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"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class AddIssueWatcher extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var s=(await this.parse(AddIssueWatcher))["flags"],e=this.getJira(e,s),{issue:s,user:a}=this.removeFlagsFromBase(s),a=await(0,user_util_1.getUser)(e,a);await e.issueWatcherManager.addWatcher(s,a.accountId||a.username)}}(exports.default=AddIssueWatcher).description="Adds a user as a watcher of an issue by passing the account ID of the user. ",AddIssueWatcher.flags=Object.assign({issue:core_1.Flags.string({char:"i",description:"The ID or key of the issue.",required:!0}),user:core_1.Flags.string({char:"u",description:"Username or email.",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"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class AddIssueWatcher extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var s=(await this.parse(AddIssueWatcher)).flags,e=this.getJira(e,s),{issue:s,user:a}=this.removeFlagsFromBase(s),a=await(0,user_util_1.getUser)(e,a);await e.issueWatcherManager.addWatcher(s,a.accountId||a.username)}}(exports.default=AddIssueWatcher).description="Adds a user as a watcher of an issue by passing the account ID of the user. ",AddIssueWatcher.flags=Object.assign({issue:core_1.Flags.string({char:"i",description:"The ID or key of the issue.",required:!0}),user:core_1.Flags.string({char:"u",description:"Username or email.",required:!0})},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"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class DeleteIssueWatcher extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var s=(await this.parse(DeleteIssueWatcher))["flags"],e=this.getJira(e,s),{issue:s,user:r}=this.removeFlagsFromBase(s),r=await(0,user_util_1.getUser)(e,r);await e.issueWatcherManager.removeWatcher(s,r)}}(exports.default=DeleteIssueWatcher).description="Deletes a user as a watcher of an issue.",DeleteIssueWatcher.flags=Object.assign({issue:core_1.Flags.string({char:"i",description:"The ID or key of the issue.",required:!0}),user:core_1.Flags.string({char:"u",description:"An identifier for the user. Use the accountId, username or an email address. Or a search string to find a user.",required:!0})},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"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class DeleteIssueWatcher extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var s=(await this.parse(DeleteIssueWatcher)).flags,e=this.getJira(e,s),{issue:s,user:r}=this.removeFlagsFromBase(s),r=await(0,user_util_1.getUser)(e,r);await e.issueWatcherManager.removeWatcher(s,r)}}(exports.default=DeleteIssueWatcher).description="Deletes a user as a watcher of an issue.",DeleteIssueWatcher.flags=Object.assign({issue:core_1.Flags.string({char:"i",description:"The ID or key of the issue.",required:!0}),user:core_1.Flags.string({char:"u",description:"An identifier for the user. Use the accountId, username or an email address. Or a search string to find a user.",required:!0})},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 GetIssueWatchers extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var s=(await this.parse(GetIssueWatchers))["flags"],e=await this.getJira(e,s).issueWatcherManager.getWatchers(s.issue),e=this.modifyResponse(e);this.display(s,e)}modifyResponse(s){return s.watchers.map(e=>(e.isWatching=s.isWatching,e))}}(exports.default=GetIssueWatchers).description="Returns the watchers for an issue.",GetIssueWatchers.flags=Object.assign({issue:core_1.Flags.string({char:"i",description:"The ID or key of the issue.",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 GetIssueWatchers extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var s=(await this.parse(GetIssueWatchers)).flags,e=await this.getJira(e,s).issueWatcherManager.getWatchers(s.issue),e=this.modifyResponse(e);this.display(s,e)}modifyResponse(s){return s.watchers.map(e=>(e.isWatching=s.isWatching,e))}}(exports.default=GetIssueWatchers).description="Returns the watchers for an issue.",GetIssueWatchers.flags=Object.assign({issue:core_1.Flags.string({char:"i",description:"The ID or key of the issue.",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"),issue_util_1=require("@thestarware/atlascli-common/lib/issue-util");class GetIsWatchingBulk extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(s,e){var t=(await this.parse(GetIsWatchingBulk))["flags"],i=tslib_1.__rest(this.removeFlagsFromBase(t),[]),a=await(0,issue_util_1.getIssue)(e,i.issue),a=(delete i.issue,i.issueIds=a.issueId,await e.issueWatcherManager.getIsWatchingBulk(i));this.display(t,a.issuesIsWatching)}}(exports.default=GetIsWatchingBulk).description="Returns, for the user, details of the watched status of issues from a list.",GetIsWatchingBulk.flags=Object.assign({issue:core_1.Flags.string({char:"i",description:"The list of issue IDs or keys.",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"),issue_util_1=require("@thestarware/atlascli-common/lib/issue-util");class GetIsWatchingBulk extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(s,e){var t=(await this.parse(GetIsWatchingBulk)).flags,i=tslib_1.__rest(this.removeFlagsFromBase(t),[]),a=await(0,issue_util_1.getIssue)(e,i.issue),a=(delete i.issue,i.issueIds=a.issueId,await e.issueWatcherManager.getIsWatchingBulk(i));this.display(t,a.issuesIsWatching)}}(exports.default=GetIsWatchingBulk).description="Returns, for the user, details of the watched status of issues from a list.",GetIsWatchingBulk.flags=Object.assign({issue:core_1.Flags.string({char:"i",description:"The list of issue IDs or keys.",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 AnalyseJiraExpression extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var{flags:r,args:a}=await this.parse(AnalyseJiraExpression),i=this.removeFlagsFromBase(r),o=i["show"],i=tslib_1.__rest(i,["show"]);o?this.showSampleExpressionRequest(r):await this.analyseJiraExpression(r,i,a,s)}async analyseJiraExpression(e,s,r,a){var i=Object.values(s).every(e=>void 0===e);let o=r.jiraExpressionBody;if(void 0===o){if(!(o=await(0,atlascli_common_1.readStdin)())||0===o.length)throw new Error("You should provide a valid JSON for the jira expression! You can use `jira jira-expression:analyse --show` command to generate a valid JSON body.");!i&&o&&this.error("You cannot use flags and json file at the same time. Please provide only one.")}o=JSON.parse(o);r=await(i?a.jiraExpressionManager.analyseJiraExpression({check:o.check},{expressions:o.expressions,contextVariables:o.contextVariables}):a.jiraExpressionManager.analyseJiraExpression({check:s.check},{expressions:s.expressions})),i=this.modifyResponse(r.results);this.display(e,i)}modifyResponse(e){return e.map(r=>{if(void 0!==r.errors){let s="";for(let e=0;e<r.errors.length;e++)0===e?s+=r.errors[e].message:s=(s+=",")+r.errors[e].message;r.errorMessage=s}return void 0!==r.complexity?r.expensiveOperations=r.complexity.expensiveOperations:r.expensiveOperations="",r})}showSampleExpressionRequest(e){e.json=!0,this.display(e,{check:"syntax",expressions:'issues.map(issue => issue.properties["property_key"])',contextVariables:{listOfStrings:"List<String>",record:"{ a: Number, b: String }",value:"User"}})}}(exports.default=AnalyseJiraExpression).description="Analyses and validates Jira expressions.",AnalyseJiraExpression.flags=Object.assign({show:core_1.Flags.boolean({description:"Prepare a sample JSON output for analyse jira expression.",default:!1}),check:core_1.Flags.string({description:"For syntax: Each expressions syntax is checked to ensure the expression can be parsed.\nFor type: Each expression is type checked and the final type of the expression inferred.\nDetermines the formulae for how many expensive operations each expression may execute.",options:["syntax","type","complexity"]}),expressions:core_1.Flags.string({description:"The list of Jira expressions to analyse.",multiple:!0})},atlascli_common_1.BaseCommandWithCloudSite.flags),AnalyseJiraExpression.args=[{name:"jiraExpressionBody",description:"Jira expression request in JSON format."}];
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 AnalyseJiraExpression extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var{flags:r,args:a}=await this.parse(AnalyseJiraExpression),i=this.removeFlagsFromBase(r),o=i.show,i=tslib_1.__rest(i,["show"]);o?this.showSampleExpressionRequest(r):await this.analyseJiraExpression(r,i,a,s)}async analyseJiraExpression(e,s,r,a){var i=Object.values(s).every(e=>void 0===e);let o=r.jiraExpressionBody;if(void 0===o){if(!(o=await(0,atlascli_common_1.readStdin)())||0===o.length)throw new Error("You should provide a valid JSON for the jira expression! You can use `jira jira-expression:analyse --show` command to generate a valid JSON body.");!i&&o&&this.error("You cannot use flags and json file at the same time. Please provide only one.")}o=JSON.parse(o);r=await(i?a.jiraExpressionManager.analyseJiraExpression({check:o.check},{expressions:o.expressions,contextVariables:o.contextVariables}):a.jiraExpressionManager.analyseJiraExpression({check:s.check},{expressions:s.expressions})),i=this.modifyResponse(r.results);this.display(e,i)}modifyResponse(e){return e.map(r=>{if(void 0!==r.errors){let s="";for(let e=0;e<r.errors.length;e++)0===e?s+=r.errors[e].message:s=(s+=",")+r.errors[e].message;r.errorMessage=s}return r.expensiveOperations=void 0!==r.complexity?r.complexity.expensiveOperations:"",r})}showSampleExpressionRequest(e){e.json=!0,this.display(e,{check:"syntax",expressions:'issues.map(issue => issue.properties["property_key"])',contextVariables:{listOfStrings:"List<String>",record:"{ a: Number, b: String }",value:"User"}})}}(exports.default=AnalyseJiraExpression).description="Analyses and validates Jira expressions.",AnalyseJiraExpression.flags=Object.assign({show:core_1.Flags.boolean({description:"Prepare a sample JSON output for analyse jira expression.",default:!1}),check:core_1.Flags.string({description:"For syntax: Each expressions syntax is checked to ensure the expression can be parsed.\nFor type: Each expression is type checked and the final type of the expression inferred.\nDetermines the formulae for how many expensive operations each expression may execute.",options:["syntax","type","complexity"]}),expressions:core_1.Flags.string({description:"The list of Jira expressions to analyse.",multiple:!0})},atlascli_common_1.BaseCommandWithCloudSite.flags),AnalyseJiraExpression.args=[{name:"jiraExpressionBody",description:"Jira expression request in JSON format."}];
@@ -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 EvaluateJiraExpression extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var{flags:a,args:i}=await this.parse(EvaluateJiraExpression),t=this.removeFlagsFromBase(a),o=t["show"],t=tslib_1.__rest(t,["show"]);o?this.showSampleExpressionRequest(a):await this.evaluateJiraExpression(a,t,i,s)}async evaluateJiraExpression(e,s,a,i){var t=Object.values(s).every(e=>void 0===e);let o=a.jiraExpressionBody;if(t&&void 0===o){if(!(o=await(0,atlascli_common_1.readStdin)())||0===o.length)throw new Error("You should provide a valid JSON for the jira expression! You can use `jira jira-expression:analyse --show` command to generate a valid JSON body.");!t&&o&&this.error("You cannot use flags and json file at the same time. Please provide only one.")}o=JSON.parse(o);let r=await(t?i.jiraExpressionManager.evaluateJiraExpression({expand:o.expand},{expression:o.expression,context:o.context}):i.jiraExpressionManager.evaluateJiraExpression({expand:s.expand},{expression:s.expression}));"object"==typeof r.value&&(r.value=JSON.stringify(r.value)),r=await this.modifyResponse(r),this.display(e,r)}modifyResponse(e){return e.complexityStepsValue="",e.complexityExpensiveOperationsValue="",e.complexityBeansValue="",e.complexityPrimitiveValues="",void 0!==e.meta.complexity&&(e.complexityStepsValue=e.meta.complexity.steps.value,e.complexityExpensiveOperationsValue=e.meta.complexity.expensiveOperations.value,e.complexityBeansValue=e.meta.complexity.beans.value,e.complexityPrimitiveValues=e.meta.complexity.primitiveValues.value),e.totalCount=e.meta.issues.jql.totalCount,e}showSampleExpressionRequest(e){e.json=!0,this.display(e,{expand:"meta.complexity",expression:"{ key: issue.key, type: issue.issueType.name, links: issue.links.map(link => link.linkedIssue.id), listCustomVariable: issuesList.includes(issue), customVariables: myUser.accountId == config.userId}",context:{issue:{key:"ACJIRA-1470"},sprint:10001,custom:{myUser:{accountId:"100001",type:"user"},issuesList:[{type:"issue",key:"ACJIRA-1471"},{id:10001,type:"issue"}],nullField:{type:"json"},config:{type:"json",value:{userId:"10002"}}},project:{key:"ACJIRA"},serviceDesk:10023,issues:{jql:{maxResults:100,query:"project = HSP",startAt:0,validation:"strict"}},board:10100,customerRequest:1450}})}}(exports.default=EvaluateJiraExpression).description="Evaluates a Jira expression and returns its value.",EvaluateJiraExpression.flags=Object.assign({show:core_1.Flags.boolean({description:"Prepare a sample JSON output for evaluate jira expression.",default:!1}),expand:core_1.Flags.string({description:"Use expand to include additional information in the response."}),expression:core_1.Flags.string({char:"e",description:"The Jira expression to evaluate."})},atlascli_common_1.BaseCommandWithCloudSite.flags),EvaluateJiraExpression.args=[{name:"jiraExpressionBody",description:"Jira expression request in JSON format."}];
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 EvaluateJiraExpression extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var{flags:a,args:i}=await this.parse(EvaluateJiraExpression),t=this.removeFlagsFromBase(a),o=t.show,t=tslib_1.__rest(t,["show"]);o?this.showSampleExpressionRequest(a):await this.evaluateJiraExpression(a,t,i,s)}async evaluateJiraExpression(e,s,a,i){var t=Object.values(s).every(e=>void 0===e);let o=a.jiraExpressionBody;if(t&&void 0===o){if(!(o=await(0,atlascli_common_1.readStdin)())||0===o.length)throw new Error("You should provide a valid JSON for the jira expression! You can use `jira jira-expression:analyse --show` command to generate a valid JSON body.");!t&&o&&this.error("You cannot use flags and json file at the same time. Please provide only one.")}o=JSON.parse(o);let r=await(t?i.jiraExpressionManager.evaluateJiraExpression({expand:o.expand},{expression:o.expression,context:o.context}):i.jiraExpressionManager.evaluateJiraExpression({expand:s.expand},{expression:s.expression}));"object"==typeof r.value&&(r.value=JSON.stringify(r.value)),r=await this.modifyResponse(r),this.display(e,r)}modifyResponse(e){return e.complexityStepsValue="",e.complexityExpensiveOperationsValue="",e.complexityBeansValue="",e.complexityPrimitiveValues="",void 0!==e.meta.complexity&&(e.complexityStepsValue=e.meta.complexity.steps.value,e.complexityExpensiveOperationsValue=e.meta.complexity.expensiveOperations.value,e.complexityBeansValue=e.meta.complexity.beans.value,e.complexityPrimitiveValues=e.meta.complexity.primitiveValues.value),e.totalCount=e.meta.issues.jql.totalCount,e}showSampleExpressionRequest(e){e.json=!0,this.display(e,{expand:"meta.complexity",expression:"{ key: issue.key, type: issue.issueType.name, links: issue.links.map(link => link.linkedIssue.id), listCustomVariable: issuesList.includes(issue), customVariables: myUser.accountId == config.userId}",context:{issue:{key:"ACJIRA-1470"},sprint:10001,custom:{myUser:{accountId:"100001",type:"user"},issuesList:[{type:"issue",key:"ACJIRA-1471"},{id:10001,type:"issue"}],nullField:{type:"json"},config:{type:"json",value:{userId:"10002"}}},project:{key:"ACJIRA"},serviceDesk:10023,issues:{jql:{maxResults:100,query:"project = HSP",startAt:0,validation:"strict"}},board:10100,customerRequest:1450}})}}(exports.default=EvaluateJiraExpression).description="Evaluates a Jira expression and returns its value.",EvaluateJiraExpression.flags=Object.assign({show:core_1.Flags.boolean({description:"Prepare a sample JSON output for evaluate jira expression.",default:!1}),expand:core_1.Flags.string({description:"Use expand to include additional information in the response."}),expression:core_1.Flags.string({char:"e",description:"The Jira expression to evaluate."})},atlascli_common_1.BaseCommandWithCloudSite.flags),EvaluateJiraExpression.args=[{name:"jiraExpressionBody",description:"Jira expression request in JSON format."}];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetAdvanced extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var t=(await this.parse(GetAdvanced))["flags"],e=await this.getJira(e,t).jiraSettingsManager.getAdvancedSettings();this.display(t,e)}}(exports.default=GetAdvanced).description="Gets the application properties that are accessible on the Advanced Settings page",GetAdvanced.flags=atlascli_common_1.BaseCommandWithSite.flags;
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common");class GetAdvanced extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var a=(await this.parse(GetAdvanced)).flags,e=await this.getJira(e,a).jiraSettingsManager.getAdvancedSettings();this.display(a,e)}}(exports.default=GetAdvanced).description="Gets the application properties that are accessible on the Advanced Settings page",GetAdvanced.flags=atlascli_common_1.BaseCommandWithSite.flags;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetGlobals extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var t=(await this.parse(GetGlobals))["flags"],e=await this.getJira(e,t).jiraSettingsManager.getGlobalSettings();this.display(t,e)}}(exports.default=GetGlobals).description="Gets the global settings in Jira. These settings determine whether optional features (for example, subtasks, time tracking, and others) are enabled. If time tracking is enabled, this operation also returns the time tracking configuration.",GetGlobals.flags=atlascli_common_1.BaseCommandWithSite.flags;
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common");class GetGlobals extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var t=(await this.parse(GetGlobals)).flags,e=await this.getJira(e,t).jiraSettingsManager.getGlobalSettings();this.display(t,e)}}(exports.default=GetGlobals).description="Gets the global settings in Jira. These settings determine whether optional features (for example, subtasks, time tracking, and others) are enabled. If time tracking is enabled, this operation also returns the time tracking configuration.",GetGlobals.flags=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 GetApplicationProperty extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var t=(await this.parse(GetApplicationProperty))["flags"],e=this.getJira(e,t),i=this.removeFlagsFromBase(t),e=await e.jiraSettingsManager.getApplicationProperty(i);this.display(t,e)}}(exports.default=GetApplicationProperty).description="Gets all application properties or an application property.",GetApplicationProperty.flags=Object.assign({key:core_1.Flags.string({char:"k",description:"The key of the application property."}),permissionLevel:core_1.Flags.string({char:"l",description:"The permission level of all items being returned in the list."}),keyFilter:core_1.Flags.string({char:"f",description:"When a key isn't provided, this filters the list of results by the application property key using a regular expression. For example, using jira.lf.* will return all application properties with keys that start with jira.lf.."})},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 GetApplicationProperty extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var t=(await this.parse(GetApplicationProperty)).flags,e=this.getJira(e,t),i=this.removeFlagsFromBase(t),e=await e.jiraSettingsManager.getApplicationProperty(i);this.display(t,e)}}(exports.default=GetApplicationProperty).description="Gets all application properties or an application property.",GetApplicationProperty.flags=Object.assign({key:core_1.Flags.string({char:"k",description:"The key of the application property."}),permissionLevel:core_1.Flags.string({char:"l",description:"The permission level of all items being returned in the list."}),keyFilter:core_1.Flags.string({char:"f",description:"When a key isn't provided, this filters the list of results by the application property key using a regular expression. For example, using jira.lf.* will return all application properties with keys that start with jira.lf.."})},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 SetApplicationProperty extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var t=(await this.parse(SetApplicationProperty))["flags"],e=await this.getJira(e,t).jiraSettingsManager.setApplicationProperty(t.key,{id:t.key,value:t.value});this.display(t,e)}}(exports.default=SetApplicationProperty).description="Sets the value of an application property. You can get known keys with jira jira-setting:get-advanced command.",SetApplicationProperty.flags=Object.assign({key:core_1.Flags.string({char:"k",description:"The key of the application property to update.",required:!0}),value:core_1.Flags.string({char:"v",description:"The new value."})},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 SetApplicationProperty extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var t=(await this.parse(SetApplicationProperty)).flags,e=await this.getJira(e,t).jiraSettingsManager.setApplicationProperty(t.key,{id:t.key,value:t.value});this.display(t,e)}}(exports.default=SetApplicationProperty).description="Sets the value of an application property. You can get known keys with jira jira-setting:get-advanced command.",SetApplicationProperty.flags=Object.assign({key:core_1.Flags.string({char:"k",description:"The key of the application property to update.",required:!0}),value:core_1.Flags.string({char:"v",description:"The new value."})},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 ConvertIdentifiers extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var t=(await this.parse(ConvertIdentifiers))["flags"],r=await r.jqlManager.convertIdentifiersToAccountId({queryStrings:t.query});this.display(t,r)}}(exports.default=ConvertIdentifiers).description="Converts one or more JQL queries with user identifiers (username or user key) to equivalent JQL queries with account IDs.",ConvertIdentifiers.flags=Object.assign({query:core_1.Flags.string({char:"q",description:"A query to parse.",multiple:!0,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 ConvertIdentifiers extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var t=(await this.parse(ConvertIdentifiers)).flags,r=await r.jqlManager.convertIdentifiersToAccountId({queryStrings:t.query});this.display(t,r)}}(exports.default=ConvertIdentifiers).description="Converts one or more JQL queries with user identifiers (username or user key) to equivalent JQL queries with account IDs.",ConvertIdentifiers.flags=Object.assign({query:core_1.Flags.string({char:"q",description:"A query to parse.",multiple:!0,required:!0})},atlascli_common_1.BaseCommandWithCloudSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetAutoCompleteSuggestions extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var t=(await this.parse(GetAutoCompleteSuggestions))["flags"],e=this.getJira(e,t),a=this.removeFlagsFromBase(t),e=await e.jqlManager.getAutoCompleteSuggestion(a);this.display(t,e.results)}}(exports.default=GetAutoCompleteSuggestions).description="Returns the JQL search auto complete suggestions for a field.",GetAutoCompleteSuggestions.flags=Object.assign({fieldName:core_1.Flags.string({description:"The name of the field."}),fieldValue:core_1.Flags.string({description:"The partial field item name entered by the user."}),predicateName:core_1.Flags.string({description:"The name of the CHANGED operator predicate for which the suggestions are generated. The valid predicate operators are by, from, and to."}),predicateValue:core_1.Flags.string({description:"The partial predicate item name entered by the user."})},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 GetAutoCompleteSuggestions extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var t=(await this.parse(GetAutoCompleteSuggestions)).flags,e=this.getJira(e,t),a=this.removeFlagsFromBase(t),e=await e.jqlManager.getAutoCompleteSuggestion(a);this.display(t,e.results)}}(exports.default=GetAutoCompleteSuggestions).description="Returns the JQL search auto complete suggestions for a field.",GetAutoCompleteSuggestions.flags=Object.assign({fieldName:core_1.Flags.string({description:"The name of the field."}),fieldValue:core_1.Flags.string({description:"The partial field item name entered by the user."}),predicateName:core_1.Flags.string({description:"The name of the CHANGED operator predicate for which the suggestions are generated. The valid predicate operators are by, from, and to."}),predicateValue:core_1.Flags.string({description:"The partial predicate item name entered by the user."})},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"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class GetReferenceData extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,a){var t=(await this.parse(GetReferenceData))["flags"],r=tslib_1.__rest(this.removeFlagsFromBase(t),[]),i=await(0,project_util_1.getProject)(a,r.project),i=(r.projectId=i.projectId,await a.jqlManager.getFieldReferenceData({projectIds:r.projectId,includeCollapsedFields:r.includeCollapsedFields}));this.display(t,i.visibleFieldNames.concat(i.visibleFunctionNames).map(this.mapper))}async runWithServerSite(e,a){var t=(await this.parse(GetReferenceData))["flags"],a=((t.projectId||t.includeCollapsedFields)&&this.error("projectId or includeCollapsedFields flags can be only used in Cloud."),await a.jqlManager.getFieldReferenceData());this.display(t,a.visibleFieldNames.concat(a.visibleFunctionNames).map(this.mapper))}mapper(e){var a;return e.operators=(null==(a=e.operators)?void 0:a.join(","))||"",e.types=(null==(a=e.types)?void 0:a.join(","))||"",e.cfid=e.cfid||"",e.orderable=e.orderable||"",e.searchable=e.searchable||"",e.deprecated=e.deprecated||"",e.deprecatedSearcherKey=e.deprecatedSearcherKey||"",e.auto=e.auto||"",e.isList=e.isList||"",e}}(exports.default=GetReferenceData).description="Fets reference data for JQL searches",GetReferenceData.flags=Object.assign({project:core_1.Flags.integer({char:"p",description:"List of project IDs or keys used to filter the visible field details returned.",multiple:!0}),includeCollapsedFields:core_1.Flags.boolean({char:"i",description:"Include collapsed fields for fields that have non-unique names.",default:!1})},atlascli_common_1.BaseCommandWithCloudOrServerSite.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"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class GetReferenceData extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,a){var t=(await this.parse(GetReferenceData)).flags,r=tslib_1.__rest(this.removeFlagsFromBase(t),[]),i=await(0,project_util_1.getProject)(a,r.project),i=(r.projectId=i.projectId,await a.jqlManager.getFieldReferenceData({projectIds:r.projectId,includeCollapsedFields:r.includeCollapsedFields}));this.display(t,i.visibleFieldNames.concat(i.visibleFunctionNames).map(this.mapper))}async runWithServerSite(e,a){var t=(await this.parse(GetReferenceData)).flags,a=((t.projectId||t.includeCollapsedFields)&&this.error("projectId or includeCollapsedFields flags can be only used in Cloud."),await a.jqlManager.getFieldReferenceData());this.display(t,a.visibleFieldNames.concat(a.visibleFunctionNames).map(this.mapper))}mapper(e){var a;return e.operators=(null==(a=e.operators)?void 0:a.join(","))||"",e.types=(null==(a=e.types)?void 0:a.join(","))||"",e.cfid=e.cfid||"",e.orderable=e.orderable||"",e.searchable=e.searchable||"",e.deprecated=e.deprecated||"",e.deprecatedSearcherKey=e.deprecatedSearcherKey||"",e.auto=e.auto||"",e.isList=e.isList||"",e}}(exports.default=GetReferenceData).description="Fets reference data for JQL searches",GetReferenceData.flags=Object.assign({project:core_1.Flags.integer({char:"p",description:"List of project IDs or keys used to filter the visible field details returned.",multiple:!0}),includeCollapsedFields:core_1.Flags.boolean({char:"i",description:"Include collapsed fields for fields that have non-unique names.",default:!1})},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 ParseJQL extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var s=(await this.parse(ParseJQL))["flags"],a=await a.jqlManager.parseJQL({validation:s.validation},{queries:s.query}),r=a.queries.filter(e=>Object.keys(e).includes("errors"));0<r.length?(r.map(e=>e.errors=e.errors.join(",")),this.display(s,r)):(s.json=!0,this.display(s,a.queries))}}(exports.default=ParseJQL).description="Parses and validates JQL queries.",ParseJQL.flags=Object.assign({validation:core_1.Flags.string({char:"v",description:"How to validate the JQL query and treat the validation results.",options:["strict","warn","none"]}),query:core_1.Flags.string({char:"q",description:"A query to parse.",multiple:!0,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 ParseJQL extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var r=(await this.parse(ParseJQL)).flags,a=await a.jqlManager.parseJQL({validation:r.validation},{queries:r.query}),s=a.queries.filter(e=>Object.keys(e).includes("errors"));0<s.length?(s.map(e=>e.errors=e.errors.join(",")),this.display(r,s)):(r.json=!0,this.display(r,a.queries))}}(exports.default=ParseJQL).description="Parses and validates JQL queries.",ParseJQL.flags=Object.assign({validation:core_1.Flags.string({char:"v",description:"How to validate the JQL query and treat the validation results.",options:["strict","warn","none"]}),query:core_1.Flags.string({char:"q",description:"A query to parse.",multiple:!0,required:!0})},atlascli_common_1.BaseCommandWithCloudSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class SanitizeJql extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var s=(await this.parse(SanitizeJql))["flags"],i=await i.jqlManager.sanitizeJQL({queries:s.query.map(e=>({query:e}))}),r=i.queries.filter(e=>Object.keys(e).includes("errors"));0<r.length?(r.map(e=>e.errors=e.errors.errorMessages.join(",")),this.display(s,r)):this.display(s,i.queries)}}(exports.default=SanitizeJql).description="Sanitizes one or more JQL queries by converting readable details into IDs where a user doesn't have permission to view the entity.",SanitizeJql.flags=Object.assign({query:core_1.Flags.string({char:"q",description:"JQL queries to sanitize. Must contain unique values.",multiple:!0,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 SanitizeJql extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var s=(await this.parse(SanitizeJql)).flags,i=await i.jqlManager.sanitizeJQL({queries:s.query.map(e=>({query:e}))}),a=i.queries.filter(e=>Object.keys(e).includes("errors"));0<a.length?(a.map(e=>e.errors=e.errors.errorMessages.join(",")),this.display(s,a)):this.display(s,i.queries)}}(exports.default=SanitizeJql).description="Sanitizes one or more JQL queries by converting readable details into IDs where a user doesn't have permission to view the entity.",SanitizeJql.flags=Object.assign({query:core_1.Flags.string({char:"q",description:"JQL queries to sanitize. Must contain unique values.",multiple:!0,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 GetAllLabels extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var l=(await this.parse(GetAllLabels))["flags"],s=this.removeFlagsFromBase(l),t=s["all"],s=tslib_1.__rest(s,["all"]),i=await a.labelManager.getAllLabels(s);t&&(i.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(i,s,a.labelManager.getAllLabels.bind(a.labelManager))),i.values=this.modifyResponse(i.values),this.display(l,i.values)}modifyResponse(e){return e=e.map(e=>{var a={name:""};return a.name=e,a})}}(exports.default=GetAllLabels).description="Returns a paginated list of labels.",GetAllLabels.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetAllLabels extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var l=(await this.parse(GetAllLabels)).flags,s=this.removeFlagsFromBase(l),t=s.all,s=tslib_1.__rest(s,["all"]),i=await a.labelManager.getAllLabels(s);t&&(i.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(i,s,a.labelManager.getAllLabels.bind(a.labelManager))),i.values=this.modifyResponse(i.values),this.display(l,i.values)}modifyResponse(e){return e=e.map(e=>{var a={name:""};return a.name=e,a})}}(exports.default=GetAllLabels).description="Returns a paginated list of labels.",GetAllLabels.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetLicense extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var a=(await this.parse(GetLicense))["flags"],t=await t.licenseManager.getLicence();this.display(a,t.applications)}}(exports.default=GetLicense).description="Returns licensing information about the Jira instance.",GetLicense.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common");class GetLicense extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(GetLicense)).flags,a=await a.licenseManager.getLicence();this.display(t,a.applications)}}(exports.default=GetLicense).description="Returns licensing information about the Jira instance.",GetLicense.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 ChangePassword extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(e,s){var a=(await this.parse(ChangePassword))["flags"];await s.myselfManager.changePassword(this.removeFlagsFromBase(a))}}(exports.default=ChangePassword).description="Modify caller password.",ChangePassword.flags=Object.assign({password:core_1.Flags.string({char:"p",description:"new password",required:!0}),currentPassword:core_1.Flags.string({char:"c",description:"current password",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 ChangePassword extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(e,a){var s=(await this.parse(ChangePassword)).flags;await a.myselfManager.changePassword(this.removeFlagsFromBase(s))}}(exports.default=ChangePassword).description="Modify caller password.",ChangePassword.flags=Object.assign({password:core_1.Flags.string({char:"p",description:"new password",required:!0}),currentPassword:core_1.Flags.string({char:"c",description:"current password",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 DeletePreference extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var r=(await this.parse(DeletePreference))["flags"];await t.myselfManager.deletePreference({key:r.key})}}(exports.default=DeletePreference).description="Deletes a preference of the user, which restores the default value of system defined settings.",DeletePreference.flags=Object.assign({key:core_1.Flags.string({char:"k",description:"The key of the preference.",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 DeletePreference extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var t=(await this.parse(DeletePreference)).flags;await r.myselfManager.deletePreference({key:t.key})}}(exports.default=DeletePreference).description="Deletes a preference of the user, which restores the default value of system defined settings.",DeletePreference.flags=Object.assign({key:core_1.Flags.string({char:"k",description:"The key of the preference.",required:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetLocale extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(GetLocale))["flags"],a=await a.myselfManager.getLocale();this.display(t,a)}}(exports.default=GetLocale).description="Returns the locale for the user.",GetLocale.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common");class GetLocale extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(GetLocale)).flags,a=await a.myselfManager.getLocale();this.display(t,a)}}(exports.default=GetLocale).description="Returns the locale for the user.",GetLocale.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 GetPreference extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var t=[];const{flags:s,argv:a}=await this.parse(GetPreference);t.push(...s.key||[]),t.push(...Array.isArray(a)?a:"string"==typeof a?[a]:[]),0===t.length&&this.error("No preference key is specified.");t=t.sort().map(e=>r.myselfManager.getPreference({key:e}));await Promise.all(t).then(e=>{0<e.length&&this.display(s,e)})}}(exports.default=GetPreference).strict=!1,GetPreference.description="Returns the value of a preference of the current user.",GetPreference.flags=Object.assign({key:core_1.Flags.string({char:"k",description:"The key of the preference.",multiple:!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 GetPreference extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var t=[];let{flags:a,argv:s}=await this.parse(GetPreference);t.push(...a.key||[]),t.push(...Array.isArray(s)?s:"string"==typeof s?[s]:[]),0===t.length&&this.error("No preference key is specified.");t=t.sort().map(e=>r.myselfManager.getPreference({key:e}));await Promise.all(t).then(e=>{0<e.length&&this.display(a,e)})}}(exports.default=GetPreference).strict=!1,GetPreference.description="Returns the value of a preference of the current user.",GetPreference.flags=Object.assign({key:core_1.Flags.string({char:"k",description:"The key of the preference.",multiple:!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"),user_command_1=require("../user/user-command");class GetCurrentUser extends user_command_1.UserCommand{async runWithCloudSite(e,r){var s=(await this.parse(GetCurrentUser))["flags"],r=await r.myselfManager.getUser();return this.dislayUser(s,r),{}}async runWithServerSite(e,r){var s=(await this.parse(GetCurrentUser))["flags"],r=await r.myselfManager.getUser();return this.dislayUser(s,r),{}}}(exports.default=GetCurrentUser).description="Returns currently logged user. ",GetCurrentUser.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("../user/user-command");class GetCurrentUser extends user_command_1.UserCommand{async runWithCloudSite(e,r){var s=(await this.parse(GetCurrentUser)).flags,r=await r.myselfManager.getUser();return this.dislayUser(s,r),{}}async runWithServerSite(e,r){var s=(await this.parse(GetCurrentUser)).flags,r=await r.myselfManager.getUser();return this.dislayUser(s,r),{}}}(exports.default=GetCurrentUser).description="Returns currently logged user. ",GetCurrentUser.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 SetPreference extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var{flags:t,args:a}=await this.parse(SetPreference);if(t.text)await r.myselfManager.setPreference({key:t.key},t.text);else{let e=a.preferenceBody;if(void 0===e&&(!(e=await(0,atlascli_common_1.readStdin)())||0===e.length))throw new Error("You should provide a valid JSON for the issue!");await r.myselfManager.setPreference({key:t.key},JSON.parse(e))}}}(exports.default=SetPreference).description="Creates a preference for the user or updates a preferences value by sending a plain text string.",SetPreference.flags=Object.assign({key:core_1.Flags.string({char:"k",description:"The key of the preference.",required:!0}),text:core_1.Flags.string({description:"Preference for the user or updates a preferences value by sending a plain text string."})},atlascli_common_1.CommandWithSite.flags),SetPreference.args=[{name:"preferenceBody",description:"Preference json file."}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class SetPreference extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var{flags:t,args:a}=await this.parse(SetPreference);if(t.text)await r.myselfManager.setPreference({key:t.key},t.text);else{let e=a.preferenceBody;if(void 0===e&&(!(e=await(0,atlascli_common_1.readStdin)())||0===e.length))throw new Error("You should provide a valid JSON for the issue!");await r.myselfManager.setPreference({key:t.key},JSON.parse(e))}}}(exports.default=SetPreference).description="Creates a preference for the user or updates a preferences value by sending a plain text string.",SetPreference.flags=Object.assign({key:core_1.Flags.string({char:"k",description:"The key of the preference.",required:!0}),text:core_1.Flags.string({description:"Preference for the user or updates a preferences value by sending a plain text string."})},atlascli_common_1.CommandWithSite.flags),SetPreference.args=[{name:"preferenceBody",description:"Preference json file."}];
@@ -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 UpdateUser extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(e,s){var a=(await this.parse(UpdateUser))["flags"],s=await s.myselfManager.updateUser(this.removeFlagsFromBase(a));this.display(a,s)}}(exports.default=UpdateUser).description="Modify currently logged user.",UpdateUser.flags=Object.assign({password:core_1.Flags.string({char:"p",description:"Enter the current user password.",required:!0}),emailAddress:core_1.Flags.string({char:"e",description:"Change e-mail address."}),displayName:core_1.Flags.string({char:"d",description:"Change display name"})},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 UpdateUser extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(e,a){var r=(await this.parse(UpdateUser)).flags,a=await a.myselfManager.updateUser(this.removeFlagsFromBase(r));this.display(r,a)}}(exports.default=UpdateUser).description="Modify currently logged user.",UpdateUser.flags=Object.assign({password:core_1.Flags.string({char:"p",description:"Enter the current user password.",required:!0}),emailAddress:core_1.Flags.string({char:"e",description:"Change e-mail address."}),displayName:core_1.Flags.string({char:"d",description:"Change display name"})},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 AddNotifications extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(i,t){var{flags:e,args:o}=await this.parse(AddNotifications),a=this.removeFlagsFromBase(e),{id:s,show:n}=a,a=tslib_1.__rest(a,["id","show"]);n?this.showSampleAddRequest(e):await this.addNotificationScheme(s,e,a,o,t)}async addNotificationScheme(i,t,e,o,a){var s=Object.values(e).every(i=>void 0===i);let n=o.notificationBody;if(s&&void 0===n){if(!(n=JSON.parse(await(0,atlascli_common_1.readStdin)()))||0===n.length)throw new Error("You should provide a valid JSON for the notification! You can use `jira notification-scheme:add --show` command to generate a valid JSON body.")}else n=this.modifyFlags(e);await a.notificationSchemeManager.addNotifications(i,n)}modifyFlags(i){return{notificationSchemeEvents:[{event:{id:i.eventId},notifications:[{notificationType:i.notificationType,parameter:i.parameter}]}]}}showSampleAddRequest(i){i.json=!0,this.display(i,{notificationSchemeEvents:[{event:{id:"1"},notifications:[{notificationType:"Group",parameter:"jira-administrators"}]}]})}}(exports.default=AddNotifications).description="Adds notifications to a notifications scheme.",AddNotifications.flags=Object.assign({show:core_1.Flags.boolean({description:"Prepare a sample JSON output for notification scheme creation.",default:!1}),id:core_1.Flags.string({char:"i",description:"The ID of the notification scheme."}),eventId:core_1.Flags.string({description:"The ID of the notification scheme event."}),notificationType:core_1.Flags.string({char:"t",description:"The notification type, e.g CurrentAssignee, Group, EmailAddress."}),parameter:core_1.Flags.string({description:"The value corresponding to the specified notification type."})},atlascli_common_1.BaseCommandWithCloudSite.flags),AddNotifications.args=[{name:"notificationBody",description:"Notification scheme creation request in JSON format."}];
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 AddNotifications extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(i,e){var{flags:t,args:o}=await this.parse(AddNotifications),a=this.removeFlagsFromBase(t),{id:n,show:s}=a,a=tslib_1.__rest(a,["id","show"]);s?this.showSampleAddRequest(t):await this.addNotificationScheme(n,t,a,o,e)}async addNotificationScheme(i,e,t,o,a){var n=Object.values(t).every(i=>void 0===i);let s=o.notificationBody;if(n&&void 0===s){if(!(s=JSON.parse(await(0,atlascli_common_1.readStdin)()))||0===s.length)throw new Error("You should provide a valid JSON for the notification! You can use `jira notification-scheme:add --show` command to generate a valid JSON body.")}else s=this.modifyFlags(t);await a.notificationSchemeManager.addNotifications(i,s)}modifyFlags(i){return{notificationSchemeEvents:[{event:{id:i.eventId},notifications:[{notificationType:i.notificationType,parameter:i.parameter}]}]}}showSampleAddRequest(i){i.json=!0,this.display(i,{notificationSchemeEvents:[{event:{id:"1"},notifications:[{notificationType:"Group",parameter:"jira-administrators"}]}]})}}(exports.default=AddNotifications).description="Adds notifications to a notifications scheme.",AddNotifications.flags=Object.assign({show:core_1.Flags.boolean({description:"Prepare a sample JSON output for notification scheme creation.",default:!1}),id:core_1.Flags.string({char:"i",description:"The ID of the notification scheme."}),eventId:core_1.Flags.string({description:"The ID of the notification scheme event."}),notificationType:core_1.Flags.string({char:"t",description:"The notification type, e.g CurrentAssignee, Group, EmailAddress."}),parameter:core_1.Flags.string({description:"The value corresponding to the specified notification type."})},atlascli_common_1.BaseCommandWithCloudSite.flags),AddNotifications.args=[{name:"notificationBody",description:"Notification scheme creation request in JSON format."}];
@@ -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 CreateNotificationScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var{flags:t,args:o}=await this.parse(CreateNotificationScheme),a=this.removeFlagsFromBase(t),n=a["show"],a=tslib_1.__rest(a,["show"]);n?this.showSampleCreateRequest(t):await this.createNotificationScheme(t,a,o,i)}async createNotificationScheme(e,i,t,o){var a=Object.values(i).every(e=>void 0===e);let n=t.notificationBody;if(a&&void 0===n){if(!(n=JSON.parse(await(0,atlascli_common_1.readStdin)()))||0===n.length)throw new Error("You should provide a valid JSON for the notification! You can use `jira notification-scheme:create --show` command to generate a valid JSON body.")}else n=this.modifyFlags(i);t=await o.notificationSchemeManager.createNotificationScheme(n);this.display(e,t)}modifyFlags(e){var i={id:e.eventId},t=[{notificationType:e.notificationType,parameter:e.parameter}];return{name:e.name,description:e.description,notificationSchemeEvents:[{event:i,notifications:t}]}}showSampleCreateRequest(e){e.json=!0,this.display(e,{name:"NotificationSchemeTrial",notificationSchemeEvents:[{event:{id:"1"},notifications:[{notificationType:"Group",parameter:"jira-administrators"}]}]})}}(exports.default=CreateNotificationScheme).description="Creates a notification scheme with notifications.",CreateNotificationScheme.flags=Object.assign({show:core_1.Flags.boolean({description:"Prepare a sample JSON output for notification scheme creation.",default:!1}),name:core_1.Flags.string({char:"n",description:"The name of the notification scheme. Must be unique (case-insensitive)."}),description:core_1.Flags.string({description:"The description of the notification scheme."}),eventId:core_1.Flags.string({description:"The ID of the notification scheme event."}),notificationType:core_1.Flags.string({char:"t",description:"The notification type, e.g CurrentAssignee, Group, EmailAddress."}),parameter:core_1.Flags.string({description:"The value corresponding to the specified notification type."})},atlascli_common_1.BaseCommandWithCloudSite.flags),CreateNotificationScheme.args=[{name:"notificationBody",description:"Notification scheme creation request in JSON format."}];
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 CreateNotificationScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var{flags:t,args:o}=await this.parse(CreateNotificationScheme),a=this.removeFlagsFromBase(t),n=a.show,a=tslib_1.__rest(a,["show"]);n?this.showSampleCreateRequest(t):await this.createNotificationScheme(t,a,o,i)}async createNotificationScheme(e,i,t,o){var a=Object.values(i).every(e=>void 0===e);let n=t.notificationBody;if(a&&void 0===n){if(!(n=JSON.parse(await(0,atlascli_common_1.readStdin)()))||0===n.length)throw new Error("You should provide a valid JSON for the notification! You can use `jira notification-scheme:create --show` command to generate a valid JSON body.")}else n=this.modifyFlags(i);t=await o.notificationSchemeManager.createNotificationScheme(n);this.display(e,t)}modifyFlags(e){var i={id:e.eventId};return{name:e.name,description:e.description,notificationSchemeEvents:[{event:i,notifications:[{notificationType:e.notificationType,parameter:e.parameter}]}]}}showSampleCreateRequest(e){e.json=!0,this.display(e,{name:"NotificationSchemeTrial",notificationSchemeEvents:[{event:{id:"1"},notifications:[{notificationType:"Group",parameter:"jira-administrators"}]}]})}}(exports.default=CreateNotificationScheme).description="Creates a notification scheme with notifications.",CreateNotificationScheme.flags=Object.assign({show:core_1.Flags.boolean({description:"Prepare a sample JSON output for notification scheme creation.",default:!1}),name:core_1.Flags.string({char:"n",description:"The name of the notification scheme. Must be unique (case-insensitive)."}),description:core_1.Flags.string({description:"The description of the notification scheme."}),eventId:core_1.Flags.string({description:"The ID of the notification scheme event."}),notificationType:core_1.Flags.string({char:"t",description:"The notification type, e.g CurrentAssignee, Group, EmailAddress."}),parameter:core_1.Flags.string({description:"The value corresponding to the specified notification type."})},atlascli_common_1.BaseCommandWithCloudSite.flags),CreateNotificationScheme.args=[{name:"notificationBody",description:"Notification scheme creation request in JSON format."}];
@@ -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 DeleteNotification extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(i,e){var t=(await this.parse(DeleteNotification))["flags"],{notificationSchemeId:t,notificationId:o}=this.removeFlagsFromBase(t);await e.notificationSchemeManager.deleteNotification(t,o)}}(exports.default=DeleteNotification).description="Removes a notification from a notification scheme.",DeleteNotification.flags=Object.assign({notificationSchemeId:core_1.Flags.string({char:"i",description:"The ID of the notification scheme.",required:!0}),notificationId:core_1.Flags.string({char:"n",description:"The ID of the notification.",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 DeleteNotification extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var t=(await this.parse(DeleteNotification)).flags,{notificationSchemeId:t,notificationId:o}=this.removeFlagsFromBase(t);await i.notificationSchemeManager.deleteNotification(t,o)}}(exports.default=DeleteNotification).description="Removes a notification from a notification scheme.",DeleteNotification.flags=Object.assign({notificationSchemeId:core_1.Flags.string({char:"i",description:"The ID of the notification scheme.",required:!0}),notificationId:core_1.Flags.string({char:"n",description:"The ID of the notification.",required:!0})},atlascli_common_1.BaseCommandWithCloudSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteNotificationScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var t=(await this.parse(DeleteNotificationScheme))["flags"],t=this.removeFlagsFromBase(t)["notificationSchemeId"];await i.notificationSchemeManager.deleteNotificationScheme(t)}}(exports.default=DeleteNotificationScheme).description="Deletes a notification scheme.",DeleteNotificationScheme.flags=Object.assign({notificationSchemeId:core_1.Flags.string({char:"i",description:"The ID of the notification scheme.",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 DeleteNotificationScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var t=(await this.parse(DeleteNotificationScheme)).flags,t=this.removeFlagsFromBase(t).notificationSchemeId;await i.notificationSchemeManager.deleteNotificationScheme(t)}}(exports.default=DeleteNotificationScheme).description="Deletes a notification scheme.",DeleteNotificationScheme.flags=Object.assign({notificationSchemeId:core_1.Flags.string({char:"i",description:"The ID of the notification scheme.",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"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class GetNotificationSchemes extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,t){var i=(await this.parse(GetNotificationSchemes))["flags"],a=this.removeFlagsFromBase(i),o=a["all"],a=tslib_1.__rest(a,["all"]),s=await(0,project_util_1.getProject)(t,a.project),s=(a.projectId=s.projectId,delete a.project,await t.notificationSchemeManager.getNotificationSchemes(a)),o=(o&&(s.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(s,a,t.notificationSchemeManager.getNotificationSchemes.bind(t.notificationSchemeManager))),await this.modifyResponse(s.values));this.display(i,o)}async runWithServerSite(e,t){var i=(await this.parse(GetNotificationSchemes))["flags"],a=this.removeFlagsFromBase(i),o=a["all"],a=tslib_1.__rest(a,["all"]),s=await t.notificationSchemeManager.getNotificationSchemes(a),o=(o&&(s.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(s,a,t.notificationSchemeManager.getNotificationSchemes.bind(t.notificationSchemeManager))),await this.modifyResponse(s.values));this.display(i,o)}async modifyResponse(e){return e.map(e=>{if(void 0!==e.notificationSchemeEvents){let t=0;e.notificationSchemeEvents.forEach(e=>{t+=e.notifications.length}),e.notificationCounter=t}return e})}}(exports.default=GetNotificationSchemes).description="Returns a paginated list of notification schemes ordered by the display name.",GetNotificationSchemes.flags=Object.assign(Object.assign(Object.assign({},atlascli_common_1.getStartAtAndMaxFlags),{id:core_1.Flags.string({description:"The list of notification schemes IDs to be filtered by. Only for cloud.",multiple:!0}),project:core_1.Flags.string({description:"The list of projects IDs or keys to be filtered by. Only for cloud. Example usage: -p 1 2 3",multiple:!0}),onlyDefault:core_1.Flags.boolean({description:"When set to true, returns only the default notification scheme. If you provide project IDs not associated with the default, returns an empty page. The default value is false."}),expand:core_1.Flags.string({description:"Use expand to include additional information in the response. This parameter accepts a comma-separated list.",options:["all","field","group","notificationSchemeEvents","projectRole","user"]}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})}),atlascli_common_1.BaseCommandWithCloudOrServerSite.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"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class GetNotificationSchemes extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,t){var i=(await this.parse(GetNotificationSchemes)).flags,a=this.removeFlagsFromBase(i),o=a.all,a=tslib_1.__rest(a,["all"]),s=await(0,project_util_1.getProject)(t,a.project),s=(a.projectId=s.projectId,delete a.project,await t.notificationSchemeManager.getNotificationSchemes(a)),o=(o&&(s.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(s,a,t.notificationSchemeManager.getNotificationSchemes.bind(t.notificationSchemeManager))),await this.modifyResponse(s.values));this.display(i,o)}async runWithServerSite(e,t){var i=(await this.parse(GetNotificationSchemes)).flags,a=this.removeFlagsFromBase(i),o=a.all,a=tslib_1.__rest(a,["all"]),s=await t.notificationSchemeManager.getNotificationSchemes(a),o=(o&&(s.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(s,a,t.notificationSchemeManager.getNotificationSchemes.bind(t.notificationSchemeManager))),await this.modifyResponse(s.values));this.display(i,o)}async modifyResponse(e){return e.map(e=>{if(void 0!==e.notificationSchemeEvents){let t=0;e.notificationSchemeEvents.forEach(e=>{t+=e.notifications.length}),e.notificationCounter=t}return e})}}(exports.default=GetNotificationSchemes).description="Returns a paginated list of notification schemes ordered by the display name.",GetNotificationSchemes.flags=Object.assign(Object.assign(Object.assign({},atlascli_common_1.getStartAtAndMaxFlags),{id:core_1.Flags.string({description:"The list of notification schemes IDs to be filtered by. Only for cloud.",multiple:!0}),project:core_1.Flags.string({description:"The list of projects IDs or keys to be filtered by. Only for cloud. Example usage: -p 1 2 3",multiple:!0}),onlyDefault:core_1.Flags.boolean({description:"When set to true, returns only the default notification scheme. If you provide project IDs not associated with the default, returns an empty page. The default value is false."}),expand:core_1.Flags.string({description:"Use expand to include additional information in the response. This parameter accepts a comma-separated list.",options:["all","field","group","notificationSchemeEvents","projectRole","user"]}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})}),atlascli_common_1.BaseCommandWithCloudOrServerSite.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"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class GetProjectsWithNotifications extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(t,e){var i=(await this.parse(GetProjectsWithNotifications))["flags"],a=this.removeFlagsFromBase(i),s=a["all"],a=tslib_1.__rest(a,["all"]),o=await(0,project_util_1.getProject)(e,a.project),o=(a.projectId=o.projectId,await e.notificationSchemeManager.getProjectsUsingNotifications(a));s&&(o.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(o,a,e.notificationSchemeManager.getProjectsUsingNotifications.bind(e.notificationSchemeManager))),this.display(i,o.values)}}(exports.default=GetProjectsWithNotifications).description="Returns a paginated mapping of project that have notification scheme assigned. ",GetProjectsWithNotifications.flags=Object.assign(Object.assign(Object.assign({},atlascli_common_1.getStartAtAndMaxFlags),{notificationSchemeId:core_1.Flags.string({char:"i",description:"The list of notifications scheme IDs to be filtered out",multiple:!0}),project:core_1.Flags.string({char:"p",description:"The list of project IDs to be filtered out. Example usage -p 1 2 3",multiple:!0}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})}),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"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class GetProjectsWithNotifications extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(t,e){var i=(await this.parse(GetProjectsWithNotifications)).flags,a=this.removeFlagsFromBase(i),o=a.all,a=tslib_1.__rest(a,["all"]),s=await(0,project_util_1.getProject)(e,a.project),s=(a.projectId=s.projectId,await e.notificationSchemeManager.getProjectsUsingNotifications(a));o&&(s.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(s,a,e.notificationSchemeManager.getProjectsUsingNotifications.bind(e.notificationSchemeManager))),this.display(i,s.values)}}(exports.default=GetProjectsWithNotifications).description="Returns a paginated mapping of project that have notification scheme assigned. ",GetProjectsWithNotifications.flags=Object.assign(Object.assign(Object.assign({},atlascli_common_1.getStartAtAndMaxFlags),{notificationSchemeId:core_1.Flags.string({char:"i",description:"The list of notifications scheme IDs to be filtered out",multiple:!0}),project:core_1.Flags.string({char:"p",description:"The list of project IDs to be filtered out. Example usage -p 1 2 3",multiple:!0}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})}),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 GetNotificationScheme extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,i){var a=(await this.parse(GetNotificationScheme))["flags"],t=this.removeFlagsFromBase(a),o=t["all"],t=tslib_1.__rest(t,["all"]),s=await i.notificationSchemeManager.getNotificationSchemes(t),o=(o&&(s.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(s,t,i.notificationSchemeManager.getNotificationSchemes.bind(i.notificationSchemeManager))),await this.modifyResponse(s.values));this.display(a,o)}async runWithServerSite(e,i){var a=(await this.parse(GetNotificationScheme))["flags"],t=this.removeFlagsFromBase(a),o=t["all"],t=tslib_1.__rest(t,["all"]),s=await i.notificationSchemeManager.getNotificationSchemes(t),o=(o&&(s.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(s,t,i.notificationSchemeManager.getNotificationSchemes.bind(i.notificationSchemeManager))),await this.modifyResponse(s.values));this.display(a,o)}async modifyResponse(e){const a=[];return e.map(e=>(e.notificationSchemeEvents.map(i=>(i.notifications.map(e=>(e.eventId=i.event.id,e.eventName=i.event.name,e.fieldId="",e.fieldName="",e.schemaType="",e.projectRoleName="",e.projectRoleId="",e.groupName="",e.groupId="",void 0!==e.field&&(e.fieldId=e.field.id,e.fieldName=e.field.name,void 0!==e.field.schema)&&(e.schemaType=e.field.schema.type),void 0!==e.projectRole&&(e.projectRoleName=e.projectRole.name,e.projectRoleId=e.projectRole.id),void 0!==e.group&&(e.groupName=e.group.name,e.groupId=e.group.groupId),a.push(e),e)),i)),e)),a}}(exports.default=GetNotificationScheme).description="Returns a paginated notification scheme ordered by the display name from given id.",GetNotificationScheme.flags=Object.assign(Object.assign(Object.assign({},atlascli_common_1.getStartAtAndMaxFlags),{id:core_1.Flags.string({char:"i",description:"The list of notification schemes IDs to be filtered by. Only for cloud.",required:!0,multiple:!0}),expand:core_1.Flags.string({description:"Use expand to include additional information in the response. This parameter accepts a comma-separated list.",options:["all","field","group","notificationSchemeEvents","projectRole","user"]}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})}),atlascli_common_1.BaseCommandWithCloudOrServerSite.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 GetNotificationScheme extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,i){var a=(await this.parse(GetNotificationScheme)).flags,t=this.removeFlagsFromBase(a),o=t.all,t=tslib_1.__rest(t,["all"]),s=await i.notificationSchemeManager.getNotificationSchemes(t),o=(o&&(s.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(s,t,i.notificationSchemeManager.getNotificationSchemes.bind(i.notificationSchemeManager))),await this.modifyResponse(s.values));this.display(a,o)}async runWithServerSite(e,i){var a=(await this.parse(GetNotificationScheme)).flags,t=this.removeFlagsFromBase(a),o=t.all,t=tslib_1.__rest(t,["all"]),s=await i.notificationSchemeManager.getNotificationSchemes(t),o=(o&&(s.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(s,t,i.notificationSchemeManager.getNotificationSchemes.bind(i.notificationSchemeManager))),await this.modifyResponse(s.values));this.display(a,o)}async modifyResponse(e){let a=[];return e.map(e=>(e.notificationSchemeEvents.map(i=>(i.notifications.map(e=>(e.eventId=i.event.id,e.eventName=i.event.name,e.fieldId="",e.fieldName="",e.schemaType="",e.projectRoleName="",e.projectRoleId="",e.groupName="",e.groupId="",void 0!==e.field&&(e.fieldId=e.field.id,e.fieldName=e.field.name,void 0!==e.field.schema)&&(e.schemaType=e.field.schema.type),void 0!==e.projectRole&&(e.projectRoleName=e.projectRole.name,e.projectRoleId=e.projectRole.id),void 0!==e.group&&(e.groupName=e.group.name,e.groupId=e.group.groupId),a.push(e),e)),i)),e)),a}}(exports.default=GetNotificationScheme).description="Returns a paginated notification scheme ordered by the display name from given id.",GetNotificationScheme.flags=Object.assign(Object.assign(Object.assign({},atlascli_common_1.getStartAtAndMaxFlags),{id:core_1.Flags.string({char:"i",description:"The list of notification schemes IDs to be filtered by. Only for cloud.",required:!0,multiple:!0}),expand:core_1.Flags.string({description:"Use expand to include additional information in the response. This parameter accepts a comma-separated list.",options:["all","field","group","notificationSchemeEvents","projectRole","user"]}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})}),atlascli_common_1.BaseCommandWithCloudOrServerSite.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 UpdateNotificationScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var t=(await this.parse(UpdateNotificationScheme))["flags"],t=this.removeFlagsFromBase(t),a=t["id"],t=tslib_1.__rest(t,["id"]);await i.notificationSchemeManager.updateNotificationScheme(a,t)}}(exports.default=UpdateNotificationScheme).description="Updates a notification scheme.",UpdateNotificationScheme.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the notification scheme.",required:!0}),name:core_1.Flags.string({description:"The name of the notification scheme. Must be unique."}),description:core_1.Flags.string({description:"The description of the notification scheme."})},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 UpdateNotificationScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var t=(await this.parse(UpdateNotificationScheme)).flags,t=this.removeFlagsFromBase(t),a=t.id,t=tslib_1.__rest(t,["id"]);await i.notificationSchemeManager.updateNotificationScheme(a,t)}}(exports.default=UpdateNotificationScheme).description="Updates a notification scheme.",UpdateNotificationScheme.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the notification scheme.",required:!0}),name:core_1.Flags.string({description:"The name of the notification scheme. Must be unique."}),description:core_1.Flags.string({description:"The description of the notification scheme."})},atlascli_common_1.BaseCommandWithCloudSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class CheckGlobalPermission extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(s,e){var i=(await this.parse(CheckGlobalPermission))["flags"],o=tslib_1.__rest(this.removeFlagsFromBase(this.modifyFlags(i)),[]),r=await(0,user_util_1.getUser)(e,o.user),r=(o.accountId=r.accountId,delete o.user,await e.permissionManager.getBulkPermissions(o)),e=this.modifyResponse(r.globalPermissions);this.display(i,e)}modifyFlags(s){var e={accountId:"",globalPermissions:[],projectPermissions:[]},i={permissions:[]};return e.accountId=s.accountId,e.globalPermissions=s.globalPermissions,i.permissions=s.permission,e.projectPermissions.push(i),e}modifyResponse(s){return s=s.map(s=>{var e={globalPermission:""};return e.globalPermission=s,e})}}(exports.default=CheckGlobalPermission).description="Check global permissions",CheckGlobalPermission.flags=Object.assign({globalPermissions:core_1.Flags.string({char:"g",description:"Global permissions to look up.",multiple:!0}),user:core_1.Flags.string({char:"u",description:"The account ID or username or email of a user."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class CheckGlobalPermission extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(s,e){var i=(await this.parse(CheckGlobalPermission)).flags,o=tslib_1.__rest(this.removeFlagsFromBase(this.modifyFlags(i)),[]),r=await(0,user_util_1.getUser)(e,o.user),r=(o.accountId=r.accountId,delete o.user,await e.permissionManager.getBulkPermissions(o)),e=this.modifyResponse(r.globalPermissions);this.display(i,e)}modifyFlags(s){var e={accountId:"",globalPermissions:[],projectPermissions:[]},i={permissions:[]};return e.accountId=s.accountId,e.globalPermissions=s.globalPermissions,i.permissions=s.permission,e.projectPermissions.push(i),e}modifyResponse(s){return s=s.map(s=>{var e={globalPermission:""};return e.globalPermission=s,e})}}(exports.default=CheckGlobalPermission).description="Check global permissions",CheckGlobalPermission.flags=Object.assign({globalPermissions:core_1.Flags.string({char:"g",description:"Global permissions to look up.",multiple:!0}),user:core_1.Flags.string({char:"u",description:"The account ID or username or email of a user."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class CheckIssuePermission extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(s,e){var i=(await this.parse(CheckIssuePermission))["flags"],r=tslib_1.__rest(this.removeFlagsFromBase(this.modifyFlags(i)),[]),o=await(0,user_util_1.getUser)(e,r.user),o=(r.accountId=o.accountId,delete r.user,await e.permissionManager.getBulkPermissions(r)),e=this.modifyResponse(o.projectPermissions);this.display(i,e)}modifyFlags(s){var e={accountId:"",projectPermissions:[]},i={issues:[],permissions:[]};return e.accountId=s.accountId,i.permissions=s.permission.split(","),i.issues=null==(s=s.issues)?void 0:s.split(",").map(s=>Number.parseInt(s,10)),e.projectPermissions.push(i),e}modifyResponse(s){const i={projectPermissions:[]};return s.forEach(e=>{e.issues.forEach(s=>{s={issueId:s,permission:e.permission};i.projectPermissions.push(s)})}),i.projectPermissions}}(exports.default=CheckIssuePermission).description="Check the issue permissions.",CheckIssuePermission.flags=Object.assign({permission:core_1.Flags.string({char:"p",description:"List of project permissions.",required:!0}),user:core_1.Flags.string({description:"The account ID or email or username of a user."}),issues:core_1.Flags.string({description:"List of issue IDs."})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class CheckIssuePermission extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(s,e){var i=(await this.parse(CheckIssuePermission)).flags,r=tslib_1.__rest(this.removeFlagsFromBase(this.modifyFlags(i)),[]),o=await(0,user_util_1.getUser)(e,r.user),o=(r.accountId=o.accountId,delete r.user,await e.permissionManager.getBulkPermissions(r)),e=this.modifyResponse(o.projectPermissions);this.display(i,e)}modifyFlags(s){var e={accountId:"",projectPermissions:[]},i={issues:[],permissions:[]};return e.accountId=s.accountId,i.permissions=s.permission.split(","),i.issues=null==(s=s.issues)?void 0:s.split(",").map(s=>Number.parseInt(s,10)),e.projectPermissions.push(i),e}modifyResponse(s){let i={projectPermissions:[]};return s.forEach(e=>{e.issues.forEach(s=>{s={issueId:s,permission:e.permission};i.projectPermissions.push(s)})}),i.projectPermissions}}(exports.default=CheckIssuePermission).description="Check the issue permissions.",CheckIssuePermission.flags=Object.assign({permission:core_1.Flags.string({char:"p",description:"List of project permissions.",required:!0}),user:core_1.Flags.string({description:"The account ID or email or username of a user."}),issues:core_1.Flags.string({description:"List of issue IDs."})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class CheckProjectPermission extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var r=(await this.parse(CheckProjectPermission))["flags"],i=tslib_1.__rest(this.removeFlagsFromBase(await this.modifyFlags(s,r)),[]),o=await(0,user_util_1.getUser)(s,i.user),o=(i.accountId=o.accountId,delete i.user,await s.permissionManager.getBulkPermissions(i)),s=this.modifyResponse(o.projectPermissions);this.display(r,s)}async modifyFlags(e,s){var r={accountId:"",projectPermissions:[]},i={projects:[],permissions:[]},e=(r.accountId=s.accountId,i.permissions=s.permission,await(0,project_util_1.getProject)(e,s.project));return i.projects=e.projectId.map(e=>Number.parseInt(e,10)),r.projectPermissions.push(i),r}modifyResponse(e){const r={projectPermissions:[]};return e.forEach(s=>{s.projects.forEach(e=>{e={projectId:e,permission:s.permission};r.projectPermissions.push(e)})}),r.projectPermissions}}(exports.default=CheckProjectPermission).description="Check the project permissions.",CheckProjectPermission.flags=Object.assign({permission:core_1.Flags.string({char:"p",description:"List of project permissions.",required:!0,multiple:!0}),user:core_1.Flags.string({char:"u",description:"The account ID or username or email of a user."}),project:core_1.Flags.string({char:"p",description:"List of project ID or keys.",multiple:!0})},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class CheckProjectPermission extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var r=(await this.parse(CheckProjectPermission)).flags,i=tslib_1.__rest(this.removeFlagsFromBase(await this.modifyFlags(s,r)),[]),o=await(0,user_util_1.getUser)(s,i.user),o=(i.accountId=o.accountId,delete i.user,await s.permissionManager.getBulkPermissions(i)),s=this.modifyResponse(o.projectPermissions);this.display(r,s)}async modifyFlags(e,s){var r={accountId:"",projectPermissions:[]},i={projects:[],permissions:[]},e=(r.accountId=s.accountId,i.permissions=s.permission,await(0,project_util_1.getProject)(e,s.project));return i.projects=e.projectId.map(e=>Number.parseInt(e,10)),r.projectPermissions.push(i),r}modifyResponse(e){let r={projectPermissions:[]};return e.forEach(s=>{s.projects.forEach(e=>{e={projectId:e,permission:s.permission};r.projectPermissions.push(e)})}),r.projectPermissions}}(exports.default=CheckProjectPermission).description="Check the project permissions.",CheckProjectPermission.flags=Object.assign({permission:core_1.Flags.string({char:"p",description:"List of project permissions.",required:!0,multiple:!0}),user:core_1.Flags.string({char:"u",description:"The account ID or username or email of a user."}),project:core_1.Flags.string({char:"p",description:"List of project ID or keys.",multiple:!0})},atlascli_common_1.CommandWithSite.flags);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetAllPermissions extends atlascli_common_1.CommandWithSite{async runWithSite(s){var e=(await this.parse(GetAllPermissions))["flags"],s=await this.getJira(s,e).permissionManager.getAllPermissions(),s=this.modifyResponse(s.permissions);this.display(e,s)}modifyResponse(e){const i=[];return Object.keys(e).forEach(s=>{i.push(e[s])}),i}}(exports.default=GetAllPermissions).description="Returns all permissions, including:global permissions.project permissions.global permissions added by plugins.",GetAllPermissions.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common");class GetAllPermissions extends atlascli_common_1.CommandWithSite{async runWithSite(s){var e=(await this.parse(GetAllPermissions)).flags,s=await this.getJira(s,e).permissionManager.getAllPermissions(),s=this.modifyResponse(s.permissions);this.display(e,s)}modifyResponse(e){let i=[];return Object.keys(e).forEach(s=>{i.push(e[s])}),i}}(exports.default=GetAllPermissions).description="Returns all permissions, including:global permissions.project permissions.global permissions added by plugins.",GetAllPermissions.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 GetMyPermissions extends atlascli_common_1.CommandWithSite{async runWithSite(s){var e=(await this.parse(GetMyPermissions))["flags"],s=await this.getJira(s,e).permissionManager.getMyPermissions(this.removeFlagsFromBase(e)),s=this.modifyResponse(s.permissions);this.display(e,s)}modifyResponse(e){const i=[];return Object.keys(e).forEach(s=>{i.push(e[s])}),i}}(exports.default=GetMyPermissions).description='Returns a list of permissions indicating which permissions the user has. Details of the user"s permissions can be obtained in a global, project, issue or comment context.',GetMyPermissions.flags=Object.assign({project:core_1.Flags.string({char:"p",description:"Project id or key"}),issue:core_1.Flags.string({char:"i",description:"Issue id or key"}),permissions:core_1.Flags.string({description:"A list of permission keys. (Required) This parameter accepts a comma-separated list. To get the list of available permissions, use Get all permissions.",required:!0}),projectUuid:core_1.Flags.string({description:"Project Uuid"}),projectConfigurationUuid:core_1.Flags.string({description:"Project configuration Uuid"}),commentId:core_1.Flags.string({description:"Comment Id"})},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 GetMyPermissions extends atlascli_common_1.CommandWithSite{async runWithSite(s){var e=(await this.parse(GetMyPermissions)).flags,s=await this.getJira(s,e).permissionManager.getMyPermissions(this.removeFlagsFromBase(e)),s=this.modifyResponse(s.permissions);this.display(e,s)}modifyResponse(e){let i=[];return Object.keys(e).forEach(s=>{i.push(e[s])}),i}}(exports.default=GetMyPermissions).description='Returns a list of permissions indicating which permissions the user has. Details of the user"s permissions can be obtained in a global, project, issue or comment context.',GetMyPermissions.flags=Object.assign({project:core_1.Flags.string({char:"p",description:"Project id or key"}),issue:core_1.Flags.string({char:"i",description:"Issue id or key"}),permissions:core_1.Flags.string({description:"A list of permission keys. (Required) This parameter accepts a comma-separated list. To get the list of available permissions, use Get all permissions.",required:!0}),projectUuid:core_1.Flags.string({description:"Project Uuid"}),projectConfigurationUuid:core_1.Flags.string({description:"Project configuration Uuid"}),commentId:core_1.Flags.string({description:"Comment Id"})},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 GetPermittedProjects extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var s=[],{flags:r,argv:i}=await this.parse(GetPermittedProjects),i=(s.push(...r.permission||[]),s.push(...Array.isArray(i)?i:"string"==typeof i?[i]:[]),0===s.length&&this.error("No permission key is specified."),await t.permissionManager.getPermittedProjects({permissions:s}));this.display(r,i.projects)}}(exports.default=GetPermittedProjects).strict=!1,GetPermittedProjects.description="Returns all the projects where the user is granted a list of project permissions.",GetPermittedProjects.flags=Object.assign({permission:core_1.Flags.string({char:"p",description:"A permission key.",multiple:!0})},atlascli_common_1.CommandWithSite.flags),GetPermittedProjects.args=[{name:"permission",description:"Permission key."}];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetPermittedProjects extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var s=[],{flags:r,argv:i}=await this.parse(GetPermittedProjects),i=(s.push(...r.permission||[]),s.push(...Array.isArray(i)?i:"string"==typeof i?[i]:[]),0===s.length&&this.error("No permission key is specified."),await t.permissionManager.getPermittedProjects({permissions:s}));this.display(r,i.projects)}}(exports.default=GetPermittedProjects).strict=!1,GetPermittedProjects.description="Returns all the projects where the user is granted a list of project permissions.",GetPermittedProjects.flags=Object.assign({permission:core_1.Flags.string({char:"p",description:"A permission key.",multiple:!0})},atlascli_common_1.CommandWithSite.flags),GetPermittedProjects.args=[{name:"permission",description:"Permission key."}];