@thestarware/atlascli-jira 1.2.6 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (484) hide show
  1. package/README.md +108 -24
  2. package/lib/commands/announcement-banner/get.js +1 -13
  3. package/lib/commands/announcement-banner/update.js +1 -30
  4. package/lib/commands/application-role/get-all.js +2 -22
  5. package/lib/commands/application-role/get.js +1 -19
  6. package/lib/commands/application-role/update.js +1 -23
  7. package/lib/commands/attachment/add.js +1 -33
  8. package/lib/commands/attachment/delete.js +1 -16
  9. package/lib/commands/attachment/get-content.js +1 -18
  10. package/lib/commands/attachment/get-jira-settings.js +1 -14
  11. package/lib/commands/attachment/get-metadata-for-zip.js +1 -36
  12. package/lib/commands/attachment/get-metadata.js +1 -30
  13. package/lib/commands/attachment/get-thumbnails.js +1 -17
  14. package/lib/commands/audit-record/get-associated.js +1 -81
  15. package/lib/commands/audit-record/get-changed.js +1 -62
  16. package/lib/commands/avatar/delete-universal-avatar.js +1 -15
  17. package/lib/commands/avatar/delete-user-avatar.js +1 -21
  18. package/lib/commands/avatar/get-all-user-avatar.js +1 -0
  19. package/lib/commands/avatar/get-image-by-id.js +1 -17
  20. package/lib/commands/avatar/get-image-by-owner.js +1 -17
  21. package/lib/commands/avatar/get-image-by-type.js +1 -17
  22. package/lib/commands/avatar/get-system-avatars.js +1 -19
  23. package/lib/commands/avatar/get-universal-avatars.js +1 -16
  24. package/lib/commands/avatar/set-user-avatar.js +1 -21
  25. package/lib/commands/avatar/upload-universal-avatar.js +1 -32
  26. package/lib/commands/avatar/upload-user-avatar.js +1 -25
  27. package/lib/commands/comment/add.js +1 -25
  28. package/lib/commands/comment/delete.js +1 -14
  29. package/lib/commands/comment/get-for-issue.js +1 -32
  30. package/lib/commands/comment/get-with-ids.js +1 -31
  31. package/lib/commands/comment/get.js +1 -22
  32. package/lib/commands/comment/update.js +1 -26
  33. package/lib/commands/comment-property/delete-property.js +1 -14
  34. package/lib/commands/comment-property/get-property-keys.js +1 -15
  35. package/lib/commands/comment-property/get-property.js +1 -15
  36. package/lib/commands/comment-property/set-property.js +1 -14
  37. package/lib/commands/config/add.js +1 -119
  38. package/lib/commands/config/delete.js +1 -32
  39. package/lib/commands/config/get-default.js +1 -18
  40. package/lib/commands/config/list.js +1 -22
  41. package/lib/commands/config/set-default.js +1 -31
  42. package/lib/commands/dashboard/add-edit-permission.js +1 -43
  43. package/lib/commands/dashboard/add-share-permission.js +1 -24
  44. package/lib/commands/dashboard/copy.js +1 -16
  45. package/lib/commands/dashboard/create.js +1 -15
  46. package/lib/commands/dashboard/delete.js +1 -13
  47. package/lib/commands/dashboard/get-all.js +1 -26
  48. package/lib/commands/dashboard/get-permissions.js +1 -20
  49. package/lib/commands/dashboard/get.js +1 -30
  50. package/lib/commands/dashboard/search.js +1 -35
  51. package/lib/commands/dashboard/update.js +1 -16
  52. package/lib/commands/dashboard-gadget/add.js +1 -19
  53. package/lib/commands/dashboard-gadget/get-availables.js +1 -20
  54. package/lib/commands/dashboard-gadget/remove.js +1 -13
  55. package/lib/commands/dashboard-gadget/search.js +1 -16
  56. package/lib/commands/dashboard-gadget/update.js +1 -18
  57. package/lib/commands/dashboard-item-property/delete.js +1 -15
  58. package/lib/commands/dashboard-item-property/get-keys.js +1 -15
  59. package/lib/commands/dashboard-item-property/get.js +1 -15
  60. package/lib/commands/dashboard-item-property/set.js +1 -29
  61. package/lib/commands/filter/add-favourite.js +1 -18
  62. package/lib/commands/filter/change-owner.js +1 -24
  63. package/lib/commands/filter/create.js +1 -30
  64. package/lib/commands/filter/delete.js +1 -18
  65. package/lib/commands/filter/get-columns.js +1 -20
  66. package/lib/commands/filter/get-details.js +1 -25
  67. package/lib/commands/filter/get-favourites.js +1 -18
  68. package/lib/commands/filter/get-my.js +1 -19
  69. package/lib/commands/filter/get.js +1 -40
  70. package/lib/commands/filter/remove-favourite.js +1 -18
  71. package/lib/commands/filter/reset-columns.js +1 -18
  72. package/lib/commands/filter/search.js +1 -50
  73. package/lib/commands/filter/set-columns.js +1 -18
  74. package/lib/commands/filter/update.js +1 -34
  75. package/lib/commands/filter-sharing/add-edit-permission.js +1 -106
  76. package/lib/commands/filter-sharing/add-share-permission.js +1 -84
  77. package/lib/commands/filter-sharing/delete-permission.js +1 -21
  78. package/lib/commands/filter-sharing/get-default-scope.js +1 -12
  79. package/lib/commands/filter-sharing/get-edit-permissions.js +1 -21
  80. package/lib/commands/filter-sharing/get-permission.js +1 -24
  81. package/lib/commands/filter-sharing/get-share-permissions.js +1 -52
  82. package/lib/commands/filter-sharing/set-default-scope.js +1 -21
  83. package/lib/commands/group/add-user.js +1 -40
  84. package/lib/commands/group/create.js +1 -28
  85. package/lib/commands/group/find-groups.js +1 -19
  86. package/lib/commands/group/get-all.js +1 -24
  87. package/lib/commands/group/get-users.js +1 -32
  88. package/lib/commands/group/get.js +1 -58
  89. package/lib/commands/group/remove-user.js +1 -45
  90. package/lib/commands/group/remove.js +1 -45
  91. package/lib/commands/group-and-user-picker/find-groups.js +1 -62
  92. package/lib/commands/group-and-user-picker/find-users.js +1 -91
  93. package/lib/commands/issue/archive.js +1 -22
  94. package/lib/commands/issue/assign.js +1 -29
  95. package/lib/commands/issue/create.js +1 -306
  96. package/lib/commands/issue/delete.js +1 -20
  97. package/lib/commands/issue/edit.js +1 -49
  98. package/lib/commands/issue/get-changelogs.js +1 -42
  99. package/lib/commands/issue/get-create-metadata.js +1 -83
  100. package/lib/commands/issue/get-edit-metadata.js +1 -46
  101. package/lib/commands/issue/get-events.js +1 -13
  102. package/lib/commands/issue/get-transitions.js +1 -38
  103. package/lib/commands/issue/get.js +1 -52
  104. package/lib/commands/issue/restore.js +1 -15
  105. package/lib/commands/issue/send-notifications.js +1 -49
  106. package/lib/commands/issue/transition.js +1 -61
  107. package/lib/commands/issue-field/create.js +1 -18
  108. package/lib/commands/issue-field/delete.js +1 -31
  109. package/lib/commands/issue-field/get-all.js +1 -18
  110. package/lib/commands/issue-field/move-trash.js +1 -18
  111. package/lib/commands/issue-field/restore-trash.js +1 -18
  112. package/lib/commands/issue-field/search-trash.js +1 -23
  113. package/lib/commands/issue-field/search.js +1 -24
  114. package/lib/commands/issue-field/update.js +1 -18
  115. package/lib/commands/issue-field-configuration/assign-issue-type.js +1 -25
  116. package/lib/commands/issue-field-configuration/assign-scheme-to-project.js +1 -24
  117. package/lib/commands/issue-field-configuration/create-scheme.js +1 -22
  118. package/lib/commands/issue-field-configuration/create.js +1 -22
  119. package/lib/commands/issue-field-configuration/delete-scheme.js +1 -18
  120. package/lib/commands/issue-field-configuration/delete.js +1 -18
  121. package/lib/commands/issue-field-configuration/get-all-issue-type-items.js +1 -23
  122. package/lib/commands/issue-field-configuration/get-all-schemes.js +1 -24
  123. package/lib/commands/issue-field-configuration/get-all.js +1 -27
  124. package/lib/commands/issue-field-configuration/get-items.js +1 -24
  125. package/lib/commands/issue-field-configuration/get-project-schemes.js +1 -42
  126. package/lib/commands/issue-field-configuration/remove-issue-types.js +1 -23
  127. package/lib/commands/issue-field-configuration/update-items.js +1 -29
  128. package/lib/commands/issue-field-configuration/update-scheme.js +1 -23
  129. package/lib/commands/issue-field-configuration/update.js +1 -25
  130. package/lib/commands/issue-field-context/add-issue-types.js +1 -26
  131. package/lib/commands/issue-field-context/assign-to-projects.js +1 -30
  132. package/lib/commands/issue-field-context/create.js +1 -38
  133. package/lib/commands/issue-field-context/delete.js +1 -20
  134. package/lib/commands/issue-field-context/get-all.js +1 -27
  135. package/lib/commands/issue-field-context/get-contexts-for-projects-and-issue-types.js +1 -26
  136. package/lib/commands/issue-field-context/get-default-values.js +1 -29
  137. package/lib/commands/issue-field-context/get-issue-types.js +1 -27
  138. package/lib/commands/issue-field-context/get-project-mappings.js +1 -37
  139. package/lib/commands/issue-field-context/remove-from-projects.js +1 -31
  140. package/lib/commands/issue-field-context/remove-issue-types.js +1 -26
  141. package/lib/commands/issue-field-context/set-default-values.js +1 -31
  142. package/lib/commands/issue-field-context/update.js +1 -28
  143. package/lib/commands/issue-field-option/create-for-context.js +1 -26
  144. package/lib/commands/issue-field-option/delete-for-context.js +1 -22
  145. package/lib/commands/issue-field-option/get-for-context.js +1 -25
  146. package/lib/commands/issue-field-option/get.js +1 -34
  147. package/lib/commands/issue-field-option/reorder-for-context.js +1 -25
  148. package/lib/commands/issue-field-option/update-for-context.js +1 -26
  149. package/lib/commands/issue-link/create.js +1 -89
  150. package/lib/commands/issue-link/delete.js +1 -26
  151. package/lib/commands/issue-link/get.js +1 -48
  152. package/lib/commands/issue-link-type/create.js +1 -26
  153. package/lib/commands/issue-link-type/delete.js +1 -14
  154. package/lib/commands/issue-link-type/get-all.js +1 -14
  155. package/lib/commands/issue-link-type/get.js +1 -30
  156. package/lib/commands/issue-link-type/update.js +1 -24
  157. package/lib/commands/issue-navigator-setting/get-columns.js +1 -14
  158. package/lib/commands/issue-navigator-setting/set-columns.js +1 -14
  159. package/lib/commands/issue-priority/create.js +1 -35
  160. package/lib/commands/issue-priority/delete.js +1 -28
  161. package/lib/commands/issue-priority/move.js +1 -27
  162. package/lib/commands/issue-priority/search.js +1 -44
  163. package/lib/commands/issue-priority/set-default.js +1 -20
  164. package/lib/commands/issue-priority/update.js +1 -38
  165. package/lib/commands/issue-property/delete-bulk.js +1 -33
  166. package/lib/commands/issue-property/delete.js +1 -14
  167. package/lib/commands/issue-property/get-keys.js +1 -15
  168. package/lib/commands/issue-property/get.js +1 -21
  169. package/lib/commands/issue-property/set-bulk.js +1 -49
  170. package/lib/commands/issue-property/set-by-issue-bulk.js +1 -47
  171. package/lib/commands/issue-property/set-by-list-bulk.js +1 -34
  172. package/lib/commands/issue-property/set.js +1 -38
  173. package/lib/commands/issue-remote-link/create.js +1 -56
  174. package/lib/commands/issue-remote-link/delete-by-global-id.js +1 -16
  175. package/lib/commands/issue-remote-link/delete.js +1 -15
  176. package/lib/commands/issue-remote-link/get-all.js +1 -27
  177. package/lib/commands/issue-remote-link/get.js +1 -22
  178. package/lib/commands/issue-remote-link/update.js +1 -40
  179. package/lib/commands/issue-resolution/create.js +1 -20
  180. package/lib/commands/issue-resolution/delete.js +1 -28
  181. package/lib/commands/issue-resolution/get-all.js +1 -13
  182. package/lib/commands/issue-resolution/get.js +1 -33
  183. package/lib/commands/issue-resolution/move.js +1 -26
  184. package/lib/commands/issue-resolution/search.js +1 -40
  185. package/lib/commands/issue-resolution/set-default.js +1 -17
  186. package/lib/commands/issue-resolution/update.js +1 -25
  187. package/lib/commands/issue-search/get-picker-suggestions.js +1 -35
  188. package/lib/commands/issue-search/search.js +1 -39
  189. package/lib/commands/issue-search/test-jql.js +1 -29
  190. package/lib/commands/issue-security-level/get-members.js +1 -46
  191. package/lib/commands/issue-security-level/get.js +1 -34
  192. package/lib/commands/issue-security-scheme/associate-security-scheme.js +1 -0
  193. package/lib/commands/issue-security-scheme/get-all.js +1 -14
  194. package/lib/commands/issue-security-scheme/get-levels.js +1 -20
  195. package/lib/commands/issue-security-scheme/get.js +1 -34
  196. package/lib/commands/issue-type/create.js +1 -20
  197. package/lib/commands/issue-type/delete.js +1 -14
  198. package/lib/commands/issue-type/get-all-for-projects.js +1 -17
  199. package/lib/commands/issue-type/get-all.js +1 -14
  200. package/lib/commands/issue-type/get-alternatives.js +1 -15
  201. package/lib/commands/issue-type/get.js +1 -30
  202. package/lib/commands/issue-type/set-avatar.js +1 -14
  203. package/lib/commands/issue-type/update.js +1 -18
  204. package/lib/commands/issue-type/upload-avatar.js +1 -38
  205. package/lib/commands/issue-type-property/delete.js +1 -14
  206. package/lib/commands/issue-type-property/get-keys.js +1 -15
  207. package/lib/commands/issue-type-property/get.js +1 -16
  208. package/lib/commands/issue-type-property/set.js +1 -28
  209. package/lib/commands/issue-type-scheme/add-issue-types.js +1 -23
  210. package/lib/commands/issue-type-scheme/assign-to-project.js +1 -20
  211. package/lib/commands/issue-type-scheme/create.js +1 -20
  212. package/lib/commands/issue-type-scheme/delete.js +1 -14
  213. package/lib/commands/issue-type-scheme/get-for-projects.js +1 -32
  214. package/lib/commands/issue-type-scheme/get-issue-types.js +1 -20
  215. package/lib/commands/issue-type-scheme/get-mappings.js +1 -20
  216. package/lib/commands/issue-type-scheme/get-projects.js +1 -20
  217. package/lib/commands/issue-type-scheme/move-issue-types.js +1 -16
  218. package/lib/commands/issue-type-scheme/remove-all-projects.js +1 -14
  219. package/lib/commands/issue-type-scheme/remove-issue-type.js +1 -13
  220. package/lib/commands/issue-type-scheme/remove-project.js +1 -20
  221. package/lib/commands/issue-type-scheme/search.js +1 -47
  222. package/lib/commands/issue-type-scheme/set-projects.js +1 -20
  223. package/lib/commands/issue-type-scheme/update.js +1 -40
  224. package/lib/commands/issue-type-screen-scheme/add-mappings.js +1 -20
  225. package/lib/commands/issue-type-screen-scheme/assign-to-project.js +1 -16
  226. package/lib/commands/issue-type-screen-scheme/create.js +1 -27
  227. package/lib/commands/issue-type-screen-scheme/delete.js +1 -13
  228. package/lib/commands/issue-type-screen-scheme/get-for-projects.js +1 -32
  229. package/lib/commands/issue-type-screen-scheme/get-items.js +1 -25
  230. package/lib/commands/issue-type-screen-scheme/get-projects.js +1 -20
  231. package/lib/commands/issue-type-screen-scheme/remove-mappings.js +1 -13
  232. package/lib/commands/issue-type-screen-scheme/search.js +1 -27
  233. package/lib/commands/issue-type-screen-scheme/set-default-screen.js +1 -13
  234. package/lib/commands/issue-type-screen-scheme/update.js +1 -13
  235. package/lib/commands/issue-vote/add.js +1 -18
  236. package/lib/commands/issue-vote/delete.js +1 -18
  237. package/lib/commands/issue-vote/get-all.js +1 -27
  238. package/lib/commands/issue-watcher/add.js +1 -25
  239. package/lib/commands/issue-watcher/delete.js +1 -25
  240. package/lib/commands/issue-watcher/get-all.js +1 -27
  241. package/lib/commands/issue-watcher/get-bulk.js +1 -24
  242. package/lib/commands/jira-expression/analyse.js +1 -78
  243. package/lib/commands/jira-expression/evaluate.js +1 -103
  244. package/lib/commands/jira-settings/get-advanced.js +1 -14
  245. package/lib/commands/jira-settings/get-globals.js +1 -14
  246. package/lib/commands/jira-settings/get-properties.js +1 -19
  247. package/lib/commands/jira-settings/set-property.js +1 -15
  248. package/lib/commands/jql/convert-user-identifiers.js +1 -14
  249. package/lib/commands/jql/get-auto-complete-suggestions.js +1 -16
  250. package/lib/commands/jql/get-reference-data.js +1 -39
  251. package/lib/commands/jql/parse.js +1 -22
  252. package/lib/commands/jql/sanitize.js +1 -26
  253. package/lib/commands/label/get-all.js +1 -29
  254. package/lib/commands/license/get.js +1 -13
  255. package/lib/commands/myself/change-password.js +1 -21
  256. package/lib/commands/myself/delete-preference.js +1 -17
  257. package/lib/commands/myself/get-locale.js +1 -13
  258. package/lib/commands/myself/get-preference.js +1 -27
  259. package/lib/commands/myself/get.js +1 -21
  260. package/lib/commands/myself/set-preference.js +1 -37
  261. package/lib/commands/myself/update-user.js +1 -24
  262. package/lib/commands/notification-scheme/add.js +1 -75
  263. package/lib/commands/notification-scheme/create.js +1 -80
  264. package/lib/commands/notification-scheme/delete-notification.js +1 -22
  265. package/lib/commands/notification-scheme/delete.js +1 -18
  266. package/lib/commands/notification-scheme/get-all.js +1 -57
  267. package/lib/commands/notification-scheme/get-projects.js +1 -29
  268. package/lib/commands/notification-scheme/get.js +1 -75
  269. package/lib/commands/notification-scheme/update.js +1 -23
  270. package/lib/commands/permission/check-global-permission.js +1 -53
  271. package/lib/commands/permission/check-issue-permission.js +1 -60
  272. package/lib/commands/permission/check-project-permission.js +1 -65
  273. package/lib/commands/permission/get-all.js +1 -23
  274. package/lib/commands/permission/get-my.js +1 -33
  275. package/lib/commands/permission/get-permitted.js +1 -30
  276. package/lib/commands/permission-scheme/create-grant.js +1 -54
  277. package/lib/commands/permission-scheme/create-scheme.js +1 -21
  278. package/lib/commands/permission-scheme/delete-grant.js +1 -23
  279. package/lib/commands/permission-scheme/delete-scheme.js +1 -18
  280. package/lib/commands/permission-scheme/get-all-grants.js +1 -39
  281. package/lib/commands/permission-scheme/get-all.js +1 -38
  282. package/lib/commands/permission-scheme/get-grant.js +1 -65
  283. package/lib/commands/permission-scheme/get.js +1 -24
  284. package/lib/commands/project/archive.js +1 -15
  285. package/lib/commands/project/create.js +1 -26
  286. package/lib/commands/project/delete.js +1 -15
  287. package/lib/commands/project/get-all-issue-types.js +1 -16
  288. package/lib/commands/project/get-all.js +1 -16
  289. package/lib/commands/project/get-issue-type-hierarchy.js +1 -15
  290. package/lib/commands/project/get-notification-schema.js +1 -16
  291. package/lib/commands/project/get.js +1 -31
  292. package/lib/commands/project/project.js +1 -40
  293. package/lib/commands/project/restore.js +1 -18
  294. package/lib/commands/project/search.js +1 -28
  295. package/lib/commands/project/unarchive.js +1 -18
  296. package/lib/commands/project/update.js +1 -38
  297. package/lib/commands/project-avatar/delete.js +1 -14
  298. package/lib/commands/project-avatar/get-all.js +1 -21
  299. package/lib/commands/project-avatar/set.js +1 -19
  300. package/lib/commands/project-avatar/upload.js +1 -51
  301. package/lib/commands/project-category/create.js +1 -16
  302. package/lib/commands/project-category/delete.js +1 -15
  303. package/lib/commands/project-category/get-all.js +1 -15
  304. package/lib/commands/project-category/get.js +1 -31
  305. package/lib/commands/project-category/update.js +1 -16
  306. package/lib/commands/project-component/create.js +1 -52
  307. package/lib/commands/project-component/delete.js +1 -15
  308. package/lib/commands/project-component/get-all.js +1 -21
  309. package/lib/commands/project-component/get-issues-count.js +1 -19
  310. package/lib/commands/project-component/get.js +1 -31
  311. package/lib/commands/project-component/search.js +1 -20
  312. package/lib/commands/project-component/update.js +1 -19
  313. package/lib/commands/project-email/get-sender.js +1 -17
  314. package/lib/commands/project-email/set-sender.js +1 -16
  315. package/lib/commands/project-feature/get.js +1 -36
  316. package/lib/commands/project-feature/set.js +1 -29
  317. package/lib/commands/project-key-and-name-validation/get-valid-key.js +1 -15
  318. package/lib/commands/project-key-and-name-validation/get-valid-name.js +1 -15
  319. package/lib/commands/project-key-and-name-validation/validate-key.js +1 -21
  320. package/lib/commands/project-permission-scheme/get-issue-security-levels.js +1 -17
  321. package/lib/commands/project-permission-scheme/get-issue-security-scheme-levels.js +1 -12
  322. package/lib/commands/project-permission-scheme/get-issue-security-scheme.js +1 -16
  323. package/lib/commands/project-permission-scheme/get-permissions.js +1 -11
  324. package/lib/commands/project-permission-scheme/get.js +1 -16
  325. package/lib/commands/project-permission-scheme/set.js +1 -16
  326. package/lib/commands/project-property/delete.js +1 -15
  327. package/lib/commands/project-property/get-keys.js +1 -17
  328. package/lib/commands/project-property/get.js +1 -16
  329. package/lib/commands/project-property/set.js +1 -19
  330. package/lib/commands/project-role/create.js +1 -16
  331. package/lib/commands/project-role/delete.js +1 -15
  332. package/lib/commands/project-role/get-all.js +1 -16
  333. package/lib/commands/project-role/get-role.js +1 -34
  334. package/lib/commands/project-role/get-roles-and-details.js +1 -19
  335. package/lib/commands/project-role/get-roles.js +1 -19
  336. package/lib/commands/project-role/get.js +1 -31
  337. package/lib/commands/project-role/project-role.js +1 -15
  338. package/lib/commands/project-role/update-partial.js +1 -24
  339. package/lib/commands/project-role/update.js +1 -15
  340. package/lib/commands/project-role-actor/add-actors.js +1 -42
  341. package/lib/commands/project-role-actor/add-default-actors.js +1 -42
  342. package/lib/commands/project-role-actor/delete-actors.js +1 -35
  343. package/lib/commands/project-role-actor/delete-default-actors.js +1 -30
  344. package/lib/commands/project-role-actor/get.js +1 -35
  345. package/lib/commands/project-role-actor/set-actors.js +1 -37
  346. package/lib/commands/project-type/check-accessible.js +1 -15
  347. package/lib/commands/project-type/get-all.js +1 -14
  348. package/lib/commands/project-type/get-licensed.js +1 -14
  349. package/lib/commands/project-type/get.js +1 -30
  350. package/lib/commands/project-type/update.js +1 -18
  351. package/lib/commands/project-version/create.js +1 -19
  352. package/lib/commands/project-version/delete-and-replace.js +1 -25
  353. package/lib/commands/project-version/get-all.js +1 -16
  354. package/lib/commands/project-version/get-related-issue-count.js +1 -16
  355. package/lib/commands/project-version/get-unresolved-issue-count.js +1 -16
  356. package/lib/commands/project-version/get.js +1 -31
  357. package/lib/commands/project-version/merge.js +2 -15
  358. package/lib/commands/project-version/move.js +1 -15
  359. package/lib/commands/project-version/search.js +1 -19
  360. package/lib/commands/project-version/update.js +1 -16
  361. package/lib/commands/screen/add-field-to-default-screen.js +1 -18
  362. package/lib/commands/screen/create.js +1 -15
  363. package/lib/commands/screen/delete.js +1 -13
  364. package/lib/commands/screen/get-all.js +1 -44
  365. package/lib/commands/screen/get-available-fields.js +1 -19
  366. package/lib/commands/screen/get-field-screens.js +1 -24
  367. package/lib/commands/screen/get-workflows.js +1 -36
  368. package/lib/commands/screen/update.js +1 -16
  369. package/lib/commands/screen-scheme/create.js +1 -25
  370. package/lib/commands/screen-scheme/delete.js +1 -13
  371. package/lib/commands/screen-scheme/get-all.js +1 -30
  372. package/lib/commands/screen-scheme/update.js +1 -31
  373. package/lib/commands/screen-tab/create.js +1 -17
  374. package/lib/commands/screen-tab/delete.js +1 -14
  375. package/lib/commands/screen-tab/get-all.js +1 -17
  376. package/lib/commands/screen-tab/move.js +1 -14
  377. package/lib/commands/screen-tab/update.js +1 -15
  378. package/lib/commands/screen-tab-field/add.js +1 -19
  379. package/lib/commands/screen-tab-field/get-all.js +1 -17
  380. package/lib/commands/screen-tab-field/move.js +1 -16
  381. package/lib/commands/screen-tab-field/remove.js +1 -17
  382. package/lib/commands/server-info/get.js +1 -14
  383. package/lib/commands/server-info/jmx.js +1 -15
  384. package/lib/commands/status/create.js +1 -31
  385. package/lib/commands/status/delete.js +1 -24
  386. package/lib/commands/status/get-usages.js +1 -24
  387. package/lib/commands/status/get.js +1 -53
  388. package/lib/commands/status/search.js +1 -44
  389. package/lib/commands/status/status-command.js +1 -31
  390. package/lib/commands/status/update.js +1 -24
  391. package/lib/commands/task/cancel.js +1 -13
  392. package/lib/commands/task/get.js +1 -29
  393. package/lib/commands/time-tracking/get-all.js +1 -13
  394. package/lib/commands/time-tracking/get-setting.js +1 -13
  395. package/lib/commands/time-tracking/get.js +1 -13
  396. package/lib/commands/time-tracking/select.js +1 -19
  397. package/lib/commands/time-tracking/set.js +1 -31
  398. package/lib/commands/user/add-user-to-application.js +1 -21
  399. package/lib/commands/user/change-password.js +1 -18
  400. package/lib/commands/user/create.js +1 -45
  401. package/lib/commands/user/delete.js +1 -24
  402. package/lib/commands/user/get-all.js +1 -32
  403. package/lib/commands/user/get-default-columns.js +1 -39
  404. package/lib/commands/user/get-email.js +1 -25
  405. package/lib/commands/user/get-user-groups.js +1 -26
  406. package/lib/commands/user/get.js +1 -40
  407. package/lib/commands/user/remove-user-from-application.js +1 -21
  408. package/lib/commands/user/reset-default-columns.js +1 -33
  409. package/lib/commands/user/set-default-columns.js +1 -26
  410. package/lib/commands/user/update.js +1 -30
  411. package/lib/commands/user/user-command.js +1 -22
  412. package/lib/commands/user-property/delete.js +1 -32
  413. package/lib/commands/user-property/get-all-keys.js +1 -32
  414. package/lib/commands/user-property/get-user-property.js +1 -34
  415. package/lib/commands/user-property/set.js +1 -39
  416. package/lib/commands/user-search/accounts-with-query.js +1 -27
  417. package/lib/commands/user-search/assignable-users-bulk.js +1 -21
  418. package/lib/commands/user-search/assignable-users.js +1 -21
  419. package/lib/commands/user-search/find.js +1 -23
  420. package/lib/commands/user-search/with-permission.js +1 -24
  421. package/lib/commands/user-search/with-query.js +1 -27
  422. package/lib/commands/workflow/create.js +1 -36
  423. package/lib/commands/workflow/delete.js +1 -13
  424. package/lib/commands/workflow/get-projects.js +1 -14
  425. package/lib/commands/workflow/get-schemes.js +1 -14
  426. package/lib/commands/workflow/get-statuses-properties.js +1 -26
  427. package/lib/commands/workflow/get-statuses.js +1 -14
  428. package/lib/commands/workflow/get-transitions-rules.js +1 -44
  429. package/lib/commands/workflow/get-transitions.js +1 -21
  430. package/lib/commands/workflow/search.js +1 -66
  431. package/lib/commands/workflow-scheme/create.js +3 -59
  432. package/lib/commands/workflow-scheme/delete-default-workflow.js +1 -15
  433. package/lib/commands/workflow-scheme/delete-issue-types-for-workflow.js +1 -16
  434. package/lib/commands/workflow-scheme/delete-workflow-for-issue-type.js +1 -16
  435. package/lib/commands/workflow-scheme/delete.js +1 -14
  436. package/lib/commands/workflow-scheme/get-all.js +1 -20
  437. package/lib/commands/workflow-scheme/get-default-workflow.js +1 -15
  438. package/lib/commands/workflow-scheme/get-issue-types-for-workflows.js +1 -30
  439. package/lib/commands/workflow-scheme/get-workflow-for-issue-type.js +1 -15
  440. package/lib/commands/workflow-scheme/get.js +1 -31
  441. package/lib/commands/workflow-scheme/set-issue-types-for-workflow.js +1 -21
  442. package/lib/commands/workflow-scheme/set-workflow-for-issue-type.js +1 -27
  443. package/lib/commands/workflow-scheme/update-default-workflow.js +1 -15
  444. package/lib/commands/workflow-scheme/update.js +3 -61
  445. package/lib/commands/workflow-scheme-draft/create.js +1 -15
  446. package/lib/commands/workflow-scheme-draft/delete-default-workflow.js +1 -15
  447. package/lib/commands/workflow-scheme-draft/delete-issue-types-for-workflow.js +1 -16
  448. package/lib/commands/workflow-scheme-draft/delete-workflow-for-issue-type.js +1 -16
  449. package/lib/commands/workflow-scheme-draft/delete.js +1 -14
  450. package/lib/commands/workflow-scheme-draft/get-default-workflow.js +1 -15
  451. package/lib/commands/workflow-scheme-draft/get-issue-types-for-workflows.js +1 -30
  452. package/lib/commands/workflow-scheme-draft/get-workflow-for-issue-type.js +1 -15
  453. package/lib/commands/workflow-scheme-draft/get.js +1 -30
  454. package/lib/commands/workflow-scheme-draft/publish.js +1 -21
  455. package/lib/commands/workflow-scheme-draft/set-issue-types-for-workflow.js +1 -21
  456. package/lib/commands/workflow-scheme-draft/set-workflow-for-issue-type.js +1 -27
  457. package/lib/commands/workflow-scheme-draft/update-default-workflow.js +1 -15
  458. package/lib/commands/workflow-scheme-draft/update.js +3 -61
  459. package/lib/commands/workflow-scheme-project-association/assign.js +1 -18
  460. package/lib/commands/workflow-scheme-project-association/get-all.js +1 -30
  461. package/lib/commands/workflow-status/get-all.js +1 -14
  462. package/lib/commands/workflow-status/get.js +1 -30
  463. package/lib/commands/workflow-status-category/get-all.js +1 -14
  464. package/lib/commands/workflow-status-category/get.js +1 -15
  465. package/lib/commands/workflow-transition-property/create.js +1 -17
  466. package/lib/commands/workflow-transition-property/delete.js +1 -16
  467. package/lib/commands/workflow-transition-property/get.js +1 -20
  468. package/lib/commands/workflow-transition-property/update.js +1 -17
  469. package/lib/commands/worklog/add.js +1 -40
  470. package/lib/commands/worklog/delete.js +1 -21
  471. package/lib/commands/worklog/get-deleted.js +1 -21
  472. package/lib/commands/worklog/get-for-issue.js +1 -28
  473. package/lib/commands/worklog/get-updated.js +1 -17
  474. package/lib/commands/worklog/get-with-ids.js +1 -30
  475. package/lib/commands/worklog/get.js +1 -38
  476. package/lib/commands/worklog/update.js +1 -23
  477. package/lib/commands/worklog-property/delete.js +1 -14
  478. package/lib/commands/worklog-property/get-keys.js +1 -15
  479. package/lib/commands/worklog-property/get.js +1 -15
  480. package/lib/commands/worklog-property/set-property.js +1 -14
  481. package/lib/index.js +1 -5
  482. package/package.json +27 -32
  483. package/lib/commands/avatar/get-all-user-avatars.js +0 -22
  484. package/lib/oclif-config.js +0 -8
@@ -1,30 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const core_1 = require("@oclif/core");
5
- const atlascli_common_1 = require("@thestarware/atlascli-common");
6
- const atlascli_common_2 = require("@thestarware/atlascli-common");
7
- const project_util_1 = require("@thestarware/atlascli-common/lib/project-util");
8
- class AssignContextToProjects extends atlascli_common_1.BaseCommandWithCloudSite {
9
- async runWithCloudSite(site, jira) {
10
- const { flags } = await this.parse(AssignContextToProjects);
11
- const _a = this.removeFlagsFromBase(flags), { fieldId, contextId } = _a, parsedFlags = tslib_1.__rest(_a, ["fieldId", "contextId"]);
12
- const normalizedProjectQuery = await (0, project_util_1.getProject)(jira, parsedFlags.project);
13
- parsedFlags.projectIds = normalizedProjectQuery.projectId;
14
- delete parsedFlags.project;
15
- await jira.fieldContextManager.assignContextToProjects(fieldId, contextId, parsedFlags);
16
- }
17
- }
18
- exports.default = AssignContextToProjects;
19
- AssignContextToProjects.description = 'Assigns a custom field context to projects.';
20
- AssignContextToProjects.flags = Object.assign(Object.assign({}, atlascli_common_2.CommandWithSite.flags), { fieldId: core_1.Flags.string({
21
- description: 'The ID of the custom field.',
22
- required: true,
23
- }), contextId: core_1.Flags.string({
24
- description: 'The ID of the context.',
25
- required: true,
26
- }), project: core_1.Flags.string({
27
- description: 'The list of project IDs or keys.',
28
- multiple: true,
29
- required: true,
30
- }) });
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 AssignContextToProjects extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var o=(await this.parse(AssignContextToProjects)).flags,o=this.removeFlagsFromBase(o),{fieldId:s,contextId:i}=o,o=tslib_1.__rest(o,["fieldId","contextId"]),r=await(0,project_util_1.getProject)(t,o.project);o.projectIds=r.projectId,delete o.project,await t.fieldContextManager.assignContextToProjects(s,i,o)}}(exports.default=AssignContextToProjects).description="Assigns a custom field context to projects.",AssignContextToProjects.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The ID of the context.",required:!0}),project:core_1.Flags.string({description:"The list of project IDs or keys.",multiple:!0,required:!0})});
@@ -1,38 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const core_1 = require("@oclif/core");
5
- const atlascli_common_1 = require("@thestarware/atlascli-common");
6
- const atlascli_common_2 = require("@thestarware/atlascli-common");
7
- const project_util_1 = require("@thestarware/atlascli-common/lib/project-util");
8
- class CreateFieldContext extends atlascli_common_1.BaseCommandWithCloudSite {
9
- async runWithCloudSite(site, jira) {
10
- const { flags } = await this.parse(CreateFieldContext);
11
- const _a = this.removeFlagsFromBase(flags), { fieldId } = _a, parsedFlags = tslib_1.__rest(_a, ["fieldId"]);
12
- const normalizedProjectQuery = await (0, project_util_1.getProject)(jira, parsedFlags.project);
13
- parsedFlags.projectId = normalizedProjectQuery.projectId;
14
- delete parsedFlags.project;
15
- const res = await jira.fieldContextManager.create(fieldId, parsedFlags);
16
- this.display(flags, res);
17
- }
18
- }
19
- exports.default = CreateFieldContext;
20
- CreateFieldContext.description = 'Creates an issue field context. If projectIds is empty, a global context is created. A global context is one that applies to all project. If issueTypeIds is empty, the context applies to all issue types.';
21
- CreateFieldContext.flags = Object.assign(Object.assign({}, atlascli_common_2.CommandWithSite.flags), { fieldId: core_1.Flags.string({
22
- char: 'i',
23
- description: 'The ID of the custom field.',
24
- required: true,
25
- }), name: core_1.Flags.string({
26
- char: 'n',
27
- description: 'The name of the field context. Must be unique.',
28
- required: true,
29
- }), description: core_1.Flags.string({
30
- description: 'The description of the field context.',
31
- }), project: core_1.Flags.string({
32
- char: 'p',
33
- description: 'The list of project IDs or keys associated with the context. If the list is empty, the context is global.',
34
- multiple: true,
35
- }), issueTypeIds: core_1.Flags.string({
36
- description: 'The list of issue types IDs for the context. If the list is empty, the context refers to all issue types.',
37
- multiple: true,
38
- }) });
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 CreateFieldContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var i=(await this.parse(CreateFieldContext)).flags,s=this.removeFlagsFromBase(i),o=s.fieldId,s=tslib_1.__rest(s,["fieldId"]),r=await(0,project_util_1.getProject)(t,s.project),r=(s.projectId=r.projectId,delete s.project,await t.fieldContextManager.create(o,s));this.display(i,r)}}(exports.default=CreateFieldContext).description="Creates an issue field context. If projectIds is empty, a global context is created. A global context is one that applies to all project. If issueTypeIds is empty, the context applies to all issue types.",CreateFieldContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({char:"i",description:"The ID of the custom field.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the field context. Must be unique.",required:!0}),description:core_1.Flags.string({description:"The description of the field context."}),project:core_1.Flags.string({char:"p",description:"The list of project IDs or keys associated with the context. If the list is empty, the context is global.",multiple:!0}),issueTypeIds:core_1.Flags.string({description:"The list of issue types IDs for the context. If the list is empty, the context refers to all issue types.",multiple:!0})});
@@ -1,20 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const core_1 = require("@oclif/core");
4
- const atlascli_common_1 = require("@thestarware/atlascli-common");
5
- const atlascli_common_2 = require("@thestarware/atlascli-common");
6
- class DeleteFieldContext extends atlascli_common_1.BaseCommandWithCloudSite {
7
- async runWithCloudSite(site, jira) {
8
- const { flags } = await this.parse(DeleteFieldContext);
9
- await jira.fieldContextManager.delete(flags.fieldId, flags.contextId);
10
- }
11
- }
12
- exports.default = DeleteFieldContext;
13
- DeleteFieldContext.description = 'Deletes an issue field context.';
14
- DeleteFieldContext.flags = Object.assign(Object.assign({}, atlascli_common_2.CommandWithSite.flags), { fieldId: core_1.Flags.string({
15
- description: 'The ID of the custom field.',
16
- required: true,
17
- }), contextId: core_1.Flags.string({
18
- description: 'The ID of the context.',
19
- required: true,
20
- }) });
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteFieldContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var i=(await this.parse(DeleteFieldContext)).flags;await t.fieldContextManager.delete(i.fieldId,i.contextId)}}(exports.default=DeleteFieldContext).description="Deletes an issue field context.",DeleteFieldContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The ID of the context.",required:!0})});
@@ -1,27 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const core_1 = require("@oclif/core");
5
- const atlascli_common_1 = require("@thestarware/atlascli-common");
6
- const atlascli_common_2 = require("@thestarware/atlascli-common");
7
- const atlascli_common_3 = require("@thestarware/atlascli-common");
8
- class IssueFieldContextGetAll extends atlascli_common_1.BaseCommandWithCloudSite {
9
- async runWithCloudSite(site, jira) {
10
- const { flags } = await this.parse(IssueFieldContextGetAll);
11
- const _a = this.removeFlagsFromBase(flags), { fieldId, all } = _a, parsedFlags = tslib_1.__rest(_a, ["fieldId", "all"]);
12
- const res = await jira.fieldContextManager.getContexts(fieldId, parsedFlags);
13
- if (all)
14
- res.values = await (0, atlascli_common_3.getAllPaginatedResponseValues)(res, parsedFlags, jira.fieldContextManager.getContexts.bind(jira.fieldContextManager, fieldId));
15
- this.display(flags, res.values);
16
- }
17
- }
18
- exports.default = IssueFieldContextGetAll;
19
- IssueFieldContextGetAll.description = 'Gets all issue field contexts.';
20
- IssueFieldContextGetAll.flags = Object.assign(Object.assign({}, atlascli_common_2.CommandWithSite.flags), { fieldId: core_1.Flags.string({
21
- char: 'i',
22
- description: 'The ID of the custom field.',
23
- required: true,
24
- }), contextId: core_1.Flags.string({
25
- description: 'The list of context IDs. You can provide multiple IDs.',
26
- multiple: true,
27
- }), isAnyIssueType: core_1.Flags.boolean({ description: 'Whether to return contexts that apply to all issue types.' }), isGlobalContext: core_1.Flags.boolean({ description: 'Whether to return contexts that apply to all projects.' }), startAt: core_1.Flags.integer({ description: 'The index of the first item to return in a page of results (page offset).' }), maxResults: core_1.Flags.integer({ description: 'The maximum number of groups to return.' }), all: core_1.Flags.boolean({ description: 'Whether all responses are returned.', default: false, 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 IssueFieldContextGetAll extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var s=(await this.parse(IssueFieldContextGetAll)).flags,l=this.removeFlagsFromBase(s),{fieldId:a,all:o}=l,l=tslib_1.__rest(l,["fieldId","all"]),i=await t.fieldContextManager.getContexts(a,l);o&&(i.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(i,l,t.fieldContextManager.getContexts.bind(t.fieldContextManager,a))),this.display(s,i.values)}}(exports.default=IssueFieldContextGetAll).description="Gets all issue field contexts.",IssueFieldContextGetAll.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({char:"i",description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The list of context IDs. You can provide multiple IDs.",multiple:!0}),isAnyIssueType:core_1.Flags.boolean({description:"Whether to return contexts that apply to all issue types."}),isGlobalContext:core_1.Flags.boolean({description:"Whether to return contexts that apply to all projects."}),startAt:core_1.Flags.integer({description:"The index of the first item to return in a page of results (page offset)."}),maxResults:core_1.Flags.integer({description:"The maximum number of groups to return."}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
@@ -1,26 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const core_1 = require("@oclif/core");
5
- const atlascli_common_1 = require("@thestarware/atlascli-common");
6
- const atlascli_common_2 = require("@thestarware/atlascli-common");
7
- const atlascli_common_3 = require("@thestarware/atlascli-common");
8
- class GetDefaultValueContext extends atlascli_common_1.BaseCommandWithCloudSite {
9
- async runWithCloudSite(site, jira) {
10
- const { flags } = await this.parse(GetDefaultValueContext);
11
- const _a = this.removeFlagsFromBase(flags), { fieldId } = _a, parsedFlags = tslib_1.__rest(_a, ["fieldId"]);
12
- const res = await jira.fieldContextManager.getContextsForProjectsAndIssueTypes(fieldId, { startAt: parsedFlags.startAt, maxResults: parsedFlags.maxResults }, { mappings: (0, atlascli_common_3.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(parsedFlags.mappings, 'mappings', ['issueTypeId', 'projectId']) });
13
- this.display(flags, res.values);
14
- }
15
- }
16
- exports.default = GetDefaultValueContext;
17
- GetDefaultValueContext.description = 'Gets project and issue type mappings and, for each mapping, the ID of a custom field context that applies to the project and issue type.';
18
- GetDefaultValueContext.flags = Object.assign(Object.assign({}, atlascli_common_2.CommandWithSite.flags), { fieldId: core_1.Flags.string({
19
- char: 'i',
20
- description: 'The ID of the custom field.',
21
- required: true,
22
- }), mappings: core_1.Flags.string({
23
- description: 'The project and issue type mappings. Example use case: --mappings=projectId=10000,issueTypeId=10000',
24
- multiple: true,
25
- required: true,
26
- }), startAt: core_1.Flags.integer({ description: 'The index of the first item to return in a page of results (page offset).' }), maxResults: core_1.Flags.integer({ description: 'The maximum number of groups to return.' }) });
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 GetDefaultValueContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var s=(await this.parse(GetDefaultValueContext)).flags,a=this.removeFlagsFromBase(s),i=a.fieldId,a=tslib_1.__rest(a,["fieldId"]),t=await t.fieldContextManager.getContextsForProjectsAndIssueTypes(i,{startAt:a.startAt,maxResults:a.maxResults},{mappings:(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(a.mappings,"mappings",["issueTypeId","projectId"])});this.display(s,t.values)}}(exports.default=GetDefaultValueContext).description="Gets project and issue type mappings and, for each mapping, the ID of a custom field context that applies to the project and issue type.",GetDefaultValueContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({char:"i",description:"The ID of the custom field.",required:!0}),mappings:core_1.Flags.string({description:"The project and issue type mappings. Example use case: --mappings=projectId=10000,issueTypeId=10000",multiple:!0,required:!0}),startAt:core_1.Flags.integer({description:"The index of the first item to return in a page of results (page offset)."}),maxResults:core_1.Flags.integer({description:"The maximum number of groups to return."})});
@@ -1,29 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const core_1 = require("@oclif/core");
5
- const atlascli_common_1 = require("@thestarware/atlascli-common");
6
- const atlascli_common_2 = require("@thestarware/atlascli-common");
7
- const atlascli_common_3 = require("@thestarware/atlascli-common");
8
- class GetDefaultValueContext extends atlascli_common_1.BaseCommandWithCloudSite {
9
- async runWithCloudSite(site, jira) {
10
- const { flags } = await this.parse(GetDefaultValueContext);
11
- const _a = this.removeFlagsFromBase(flags), { fieldId, all } = _a, parsedFlags = tslib_1.__rest(_a, ["fieldId", "all"]);
12
- const res = await jira.fieldContextManager.getContextsDefaultValue(fieldId, parsedFlags);
13
- if (all) {
14
- // @ts-ignore
15
- res.values = await (0, atlascli_common_3.getAllPaginatedResponseValues)(res, parsedFlags, jira.fieldContextManager.getContextsDefaultValue.bind(jira.fieldContextManager, fieldId));
16
- }
17
- this.display(flags, res.values);
18
- }
19
- }
20
- exports.default = GetDefaultValueContext;
21
- GetDefaultValueContext.description = 'Gets defaults for a custom field. The results can be filtered by contextId, otherwise all values are returned. If no defaults are set for a context, nothing is returned.';
22
- GetDefaultValueContext.flags = Object.assign(Object.assign({}, atlascli_common_2.CommandWithSite.flags), { fieldId: core_1.Flags.string({
23
- char: 'i',
24
- description: 'The ID of the custom field.',
25
- required: true,
26
- }), contextId: core_1.Flags.string({
27
- description: 'The list of context IDs. You can provide multiple IDs.',
28
- multiple: true,
29
- }), startAt: core_1.Flags.integer({ description: 'The index of the first item to return in a page of results (page offset).' }), maxResults: core_1.Flags.integer({ description: 'The maximum number of groups to return.' }), all: core_1.Flags.boolean({ description: 'Whether all responses are returned.', default: false, 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 GetDefaultValueContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var a=(await this.parse(GetDefaultValueContext)).flags,l=this.removeFlagsFromBase(a),{fieldId:s,all:i}=l,l=tslib_1.__rest(l,["fieldId","all"]),o=await t.fieldContextManager.getContextsDefaultValue(s,l);i&&(o.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(o,l,t.fieldContextManager.getContextsDefaultValue.bind(t.fieldContextManager,s))),this.display(a,o.values)}}(exports.default=GetDefaultValueContext).description="Gets defaults for a custom field. The results can be filtered by contextId, otherwise all values are returned. If no defaults are set for a context, nothing is returned.",GetDefaultValueContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({char:"i",description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The list of context IDs. You can provide multiple IDs.",multiple:!0}),startAt:core_1.Flags.integer({description:"The index of the first item to return in a page of results (page offset)."}),maxResults:core_1.Flags.integer({description:"The maximum number of groups to return."}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
@@ -1,27 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const core_1 = require("@oclif/core");
5
- const atlascli_common_1 = require("@thestarware/atlascli-common");
6
- const atlascli_common_2 = require("@thestarware/atlascli-common");
7
- const atlascli_common_3 = require("@thestarware/atlascli-common");
8
- class GetIssueTypes extends atlascli_common_1.BaseCommandWithCloudSite {
9
- async runWithCloudSite(site, jira) {
10
- const { flags } = await this.parse(GetIssueTypes);
11
- const _a = this.removeFlagsFromBase(flags), { fieldId, all } = _a, parsedFlags = tslib_1.__rest(_a, ["fieldId", "all"]);
12
- const res = await jira.fieldContextManager.getIssueTypes(fieldId, parsedFlags);
13
- if (all)
14
- res.values = await (0, atlascli_common_3.getAllPaginatedResponseValues)(res, parsedFlags, jira.fieldContextManager.getIssueTypes.bind(jira.fieldContextManager, fieldId));
15
- this.display(flags, res.values);
16
- }
17
- }
18
- exports.default = GetIssueTypes;
19
- GetIssueTypes.description = 'Gets list of context to issue type mappings for a custom field. The result can be filtered by contextId';
20
- GetIssueTypes.flags = Object.assign(Object.assign({}, atlascli_common_2.CommandWithSite.flags), { fieldId: core_1.Flags.string({
21
- char: 'i',
22
- description: 'The ID of the custom field.',
23
- required: true,
24
- }), contextId: core_1.Flags.string({
25
- description: 'The list of context IDs. You can provide multiple IDs.',
26
- multiple: true,
27
- }), startAt: core_1.Flags.integer({ description: 'The index of the first item to return in a page of results (page offset).' }), maxResults: core_1.Flags.integer({ description: 'The maximum number of groups to return.' }), all: core_1.Flags.boolean({ description: 'Whether all responses are returned.', default: false, 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 GetIssueTypes extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var s=(await this.parse(GetIssueTypes)).flags,a=this.removeFlagsFromBase(s),{fieldId:i,all:l}=a,a=tslib_1.__rest(a,["fieldId","all"]),o=await t.fieldContextManager.getIssueTypes(i,a);l&&(o.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(o,a,t.fieldContextManager.getIssueTypes.bind(t.fieldContextManager,i))),this.display(s,o.values)}}(exports.default=GetIssueTypes).description="Gets list of context to issue type mappings for a custom field. The result can be filtered by contextId",GetIssueTypes.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({char:"i",description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The list of context IDs. You can provide multiple IDs.",multiple:!0}),startAt:core_1.Flags.integer({description:"The index of the first item to return in a page of results (page offset)."}),maxResults:core_1.Flags.integer({description:"The maximum number of groups to return."}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
@@ -1,37 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const core_1 = require("@oclif/core");
5
- const atlascli_common_1 = require("@thestarware/atlascli-common");
6
- const atlascli_common_2 = require("@thestarware/atlascli-common");
7
- const atlascli_common_3 = require("@thestarware/atlascli-common");
8
- class GetProjectMappings extends atlascli_common_1.BaseCommandWithCloudSite {
9
- async runWithCloudSite(site, jira) {
10
- const { flags } = await this.parse(GetProjectMappings);
11
- const _a = this.removeFlagsFromBase(flags), { fieldId, all } = _a, parsedFlags = tslib_1.__rest(_a, ["fieldId", "all"]);
12
- const res = await jira.fieldContextManager.getProjectMappings(fieldId, parsedFlags);
13
- if (all)
14
- res.values = await (0, atlascli_common_3.getAllPaginatedResponseValues)(res, parsedFlags, jira.fieldContextManager.getProjectMappings.bind(jira.fieldContextManager, fieldId));
15
- this.responseMapper(res.values);
16
- this.display(flags, res.values);
17
- }
18
- responseMapper(values) {
19
- values.map(value => {
20
- if (value.projectId === undefined)
21
- value.projectId = '';
22
- if (value.isGlobalContext === undefined)
23
- value.isGlobalContext = 'false';
24
- return value;
25
- });
26
- }
27
- }
28
- exports.default = GetProjectMappings;
29
- GetProjectMappings.description = 'Gets list of context to project mappings for a custom field. The result can be filtered by contextId';
30
- GetProjectMappings.flags = Object.assign(Object.assign({}, atlascli_common_2.CommandWithSite.flags), { fieldId: core_1.Flags.string({
31
- char: 'i',
32
- description: 'The ID of the custom field.',
33
- required: true,
34
- }), contextId: core_1.Flags.string({
35
- description: 'The list of context IDs. You can provide multiple IDs.',
36
- multiple: true,
37
- }), startAt: core_1.Flags.integer({ description: 'The index of the first item to return in a page of results (page offset).' }), maxResults: core_1.Flags.integer({ description: 'The maximum number of groups to return.' }), all: core_1.Flags.boolean({ description: 'Whether all responses are returned.', default: false, 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 GetProjectMappings extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var s=(await this.parse(GetProjectMappings)).flags,a=this.removeFlagsFromBase(s),{fieldId:i,all:o}=a,a=tslib_1.__rest(a,["fieldId","all"]),r=await t.fieldContextManager.getProjectMappings(i,a);o&&(r.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(r,a,t.fieldContextManager.getProjectMappings.bind(t.fieldContextManager,i))),this.responseMapper(r.values),this.display(s,r.values)}responseMapper(e){e.map(e=>(void 0===e.projectId&&(e.projectId=""),void 0===e.isGlobalContext&&(e.isGlobalContext="false"),e))}}(exports.default=GetProjectMappings).description="Gets list of context to project mappings for a custom field. The result can be filtered by contextId",GetProjectMappings.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({char:"i",description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The list of context IDs. You can provide multiple IDs.",multiple:!0}),startAt:core_1.Flags.integer({description:"The index of the first item to return in a page of results (page offset)."}),maxResults:core_1.Flags.integer({description:"The maximum number of groups to return."}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
@@ -1,31 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const core_1 = require("@oclif/core");
5
- const atlascli_common_1 = require("@thestarware/atlascli-common");
6
- const atlascli_common_2 = require("@thestarware/atlascli-common");
7
- const project_util_1 = require("@thestarware/atlascli-common/lib/project-util");
8
- class RemoveContextFromProjects extends atlascli_common_1.BaseCommandWithCloudSite {
9
- async runWithCloudSite(site, jira) {
10
- const { flags } = await this.parse(RemoveContextFromProjects);
11
- const _a = this.removeFlagsFromBase(flags), { fieldId, contextId } = _a, parsedFlags = tslib_1.__rest(_a, ["fieldId", "contextId"]);
12
- const normalizedProjectQuery = await (0, project_util_1.getProject)(jira, parsedFlags.project);
13
- parsedFlags.projectId = normalizedProjectQuery.projectId;
14
- delete parsedFlags.project;
15
- await jira.fieldContextManager.removeContextFromProjects(fieldId, contextId, parsedFlags);
16
- }
17
- }
18
- exports.default = RemoveContextFromProjects;
19
- RemoveContextFromProjects.description = 'Removes a custom field context from projects.';
20
- RemoveContextFromProjects.flags = Object.assign(Object.assign({}, atlascli_common_2.CommandWithSite.flags), { fieldId: core_1.Flags.string({
21
- description: 'The ID of the custom field.',
22
- required: true,
23
- }), contextId: core_1.Flags.string({
24
- description: 'The ID of the context.',
25
- required: true,
26
- }), project: core_1.Flags.string({
27
- char: 'p',
28
- description: 'The list of project IDs or keys.',
29
- multiple: true,
30
- required: true,
31
- }) });
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 RemoveContextFromProjects extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var o=(await this.parse(RemoveContextFromProjects)).flags,o=this.removeFlagsFromBase(o),{fieldId:r,contextId:i}=o,o=tslib_1.__rest(o,["fieldId","contextId"]),s=await(0,project_util_1.getProject)(t,o.project);o.projectId=s.projectId,delete o.project,await t.fieldContextManager.removeContextFromProjects(r,i,o)}}(exports.default=RemoveContextFromProjects).description="Removes a custom field context from projects.",RemoveContextFromProjects.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The ID of the context.",required:!0}),project:core_1.Flags.string({char:"p",description:"The list of project IDs or keys.",multiple:!0,required:!0})});
@@ -1,26 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const core_1 = require("@oclif/core");
5
- const atlascli_common_1 = require("@thestarware/atlascli-common");
6
- const atlascli_common_2 = require("@thestarware/atlascli-common");
7
- class RemoveIssueTypes extends atlascli_common_1.BaseCommandWithCloudSite {
8
- async runWithCloudSite(site, jira) {
9
- const { flags } = await this.parse(RemoveIssueTypes);
10
- const _a = this.removeFlagsFromBase(flags), { fieldId, contextId } = _a, parsedFlags = tslib_1.__rest(_a, ["fieldId", "contextId"]);
11
- await jira.fieldContextManager.removeIssueTypes(fieldId, contextId, parsedFlags);
12
- }
13
- }
14
- exports.default = RemoveIssueTypes;
15
- RemoveIssueTypes.description = 'Removes issue types from a custom field context. A custom field context without any issue types applies to all issue types';
16
- RemoveIssueTypes.flags = Object.assign(Object.assign({}, atlascli_common_2.CommandWithSite.flags), { fieldId: core_1.Flags.string({
17
- description: 'The ID of the custom field.',
18
- required: true,
19
- }), contextId: core_1.Flags.string({
20
- description: 'The ID of the context.',
21
- required: true,
22
- }), issueTypeIds: core_1.Flags.string({
23
- description: 'The list of issue type IDs.',
24
- multiple: true,
25
- required: true,
26
- }) });
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 RemoveIssueTypes extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var t=(await this.parse(RemoveIssueTypes)).flags,t=this.removeFlagsFromBase(t),{fieldId:i,contextId:o}=t,t=tslib_1.__rest(t,["fieldId","contextId"]);await s.fieldContextManager.removeIssueTypes(i,o,t)}}(exports.default=RemoveIssueTypes).description="Removes issue types from a custom field context. A custom field context without any issue types applies to all issue types",RemoveIssueTypes.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The ID of the context.",required:!0}),issueTypeIds:core_1.Flags.string({description:"The list of issue type IDs.",multiple:!0,required:!0})});
@@ -1,31 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const core_1 = require("@oclif/core");
5
- const atlascli_common_1 = require("@thestarware/atlascli-common");
6
- const atlascli_common_2 = require("@thestarware/atlascli-common");
7
- class SetDefaultValueContext extends atlascli_common_1.BaseCommandWithCloudSite {
8
- async runWithCloudSite(site, jira) {
9
- const { flags } = await this.parse(SetDefaultValueContext);
10
- const _a = this.removeFlagsFromBase(flags), { fieldId } = _a, parsedFlags = tslib_1.__rest(_a, ["fieldId"]);
11
- parsedFlags.defaultValues = this.jsonParser(parsedFlags.defaultValues);
12
- await jira.fieldContextManager.setContextsDefaultValue(fieldId, parsedFlags);
13
- }
14
- jsonParser(values) {
15
- const newArray = [];
16
- values.forEach(value => {
17
- newArray.push(JSON.parse(value.replace(/'/g, '"')));
18
- });
19
- return newArray;
20
- }
21
- }
22
- exports.default = SetDefaultValueContext;
23
- SetDefaultValueContext.description = 'Sets default for contexts of a custom field.';
24
- SetDefaultValueContext.flags = Object.assign(Object.assign({}, atlascli_common_2.CommandWithSite.flags), { fieldId: core_1.Flags.string({
25
- char: 'i',
26
- description: 'The ID of the custom field.',
27
- required: true,
28
- }), defaultValues: core_1.Flags.string({
29
- description: "Default values to update. (Note: Please provide json object to this flag. For available defaultValues: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-contexts/#api-rest-api-3-field-fieldid-context-defaultvalue-put)\n Avalible Json value should be like: \"{'type': 'grouppciker.single', 'contextId': '10000'}\" (Keys and values should be written in single quotes.)",
30
- multiple: true,
31
- }) });
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 SetDefaultValueContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var a=(await this.parse(SetDefaultValueContext)).flags,a=this.removeFlagsFromBase(a),l=a.fieldId,a=tslib_1.__rest(a,["fieldId"]);a.defaultValues=this.jsonParser(a.defaultValues),await t.fieldContextManager.setContextsDefaultValue(l,a)}jsonParser(e){let t=[];return e.forEach(e=>{t.push(JSON.parse(e.replace(/'/g,'"')))}),t}}(exports.default=SetDefaultValueContext).description="Sets default for contexts of a custom field.",SetDefaultValueContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({char:"i",description:"The ID of the custom field.",required:!0}),defaultValues:core_1.Flags.string({description:"Default values to update. (Note: Please provide json object to this flag. For available defaultValues: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-contexts/#api-rest-api-3-field-fieldid-context-defaultvalue-put)\n Avalible Json value should be like: \"{'type': 'grouppciker.single', 'contextId': '10000'}\" (Keys and values should be written in single quotes.)",multiple:!0})});
@@ -1,28 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const core_1 = require("@oclif/core");
5
- const atlascli_common_1 = require("@thestarware/atlascli-common");
6
- const atlascli_common_2 = require("@thestarware/atlascli-common");
7
- class UpdateFieldContext extends atlascli_common_1.BaseCommandWithCloudSite {
8
- async runWithCloudSite(site, jira) {
9
- const { flags } = await this.parse(UpdateFieldContext);
10
- const _a = this.removeFlagsFromBase(flags), { fieldId, contextId } = _a, parsedFlags = tslib_1.__rest(_a, ["fieldId", "contextId"]);
11
- await jira.fieldContextManager.update(fieldId, contextId, parsedFlags);
12
- }
13
- }
14
- exports.default = UpdateFieldContext;
15
- UpdateFieldContext.description = 'Updates an issue field context.';
16
- UpdateFieldContext.flags = Object.assign(Object.assign({}, atlascli_common_2.CommandWithSite.flags), { fieldId: core_1.Flags.string({
17
- description: 'The ID of the custom field.',
18
- required: true,
19
- }), contextId: core_1.Flags.string({
20
- description: 'The ID of the context.',
21
- required: true,
22
- }), name: core_1.Flags.string({
23
- char: 'n',
24
- description: 'The name of the field context. Must be unique.',
25
- required: true,
26
- }), description: core_1.Flags.string({
27
- description: 'The description of the field context.',
28
- }) });
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 UpdateFieldContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var i=(await this.parse(UpdateFieldContext)).flags,i=this.removeFlagsFromBase(i),{fieldId:o,contextId:s}=i,i=tslib_1.__rest(i,["fieldId","contextId"]);await t.fieldContextManager.update(o,s,i)}}(exports.default=UpdateFieldContext).description="Updates an issue field context.",UpdateFieldContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The ID of the context.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the field context. Must be unique.",required:!0}),description:core_1.Flags.string({description:"The description of the field context."})});
@@ -1,26 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const core_1 = require("@oclif/core");
5
- const atlascli_common_1 = require("@thestarware/atlascli-common");
6
- const atlascli_common_2 = require("@thestarware/atlascli-common");
7
- class CreateForContext extends atlascli_common_1.BaseCommandWithCloudSite {
8
- async runWithCloudSite(site, jira) {
9
- const { flags } = await this.parse(CreateForContext);
10
- const _a = this.removeFlagsFromBase(flags), { fieldId, contextId } = _a, parsedFlag = tslib_1.__rest(_a, ["fieldId", "contextId"]);
11
- const res = await jira.fieldOptionManager.createFieldOptionForContext(fieldId, contextId, { options: (0, atlascli_common_2.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(parsedFlag.options, 'options', ['value', 'optionId', 'disabled']) });
12
- this.display(flags, res.options);
13
- }
14
- }
15
- exports.default = CreateForContext;
16
- CreateForContext.description = 'Creates options and, where the custom select field is of the type Select List (cascading), cascading options for a custom select field. The options are added to a context of the field.';
17
- CreateForContext.flags = Object.assign(Object.assign({}, atlascli_common_1.CommandWithSite.flags), { fieldId: core_1.Flags.string({
18
- description: 'The ID of the custom field.',
19
- required: true,
20
- }), contextId: core_1.Flags.string({
21
- description: 'The ID of the context.',
22
- required: true,
23
- }), options: core_1.Flags.string({
24
- description: 'Details of options to create. You can use this flag multiple times to add more option. Example use case: --options:value=optionValue,optionId=1000,disabled=true',
25
- multiple: true,
26
- }) });
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 CreateForContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var o=(await this.parse(CreateForContext)).flags,i=this.removeFlagsFromBase(o),{fieldId:s,contextId:a}=i,i=tslib_1.__rest(i,["fieldId","contextId"]),t=await t.fieldOptionManager.createFieldOptionForContext(s,a,{options:(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(i.options,"options",["value","optionId","disabled"])});this.display(o,t.options)}}(exports.default=CreateForContext).description="Creates options and, where the custom select field is of the type Select List (cascading), cascading options for a custom select field. The options are added to a context of the field.",CreateForContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The ID of the context.",required:!0}),options:core_1.Flags.string({description:"Details of options to create. You can use this flag multiple times to add more option. Example use case: --options:value=optionValue,optionId=1000,disabled=true",multiple:!0})});
@@ -1,22 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const core_1 = require("@oclif/core");
4
- const atlascli_common_1 = require("@thestarware/atlascli-common");
5
- class DeleteForContext extends atlascli_common_1.BaseCommandWithCloudSite {
6
- async runWithCloudSite(site, jira) {
7
- const { flags } = await this.parse(DeleteForContext);
8
- await jira.fieldOptionManager.deleteFieldOptionForContext(flags.fieldId, flags.contextId, flags.optionId);
9
- }
10
- }
11
- exports.default = DeleteForContext;
12
- DeleteForContext.description = 'Deletes a custom field option. Options with cascading options cannot be deleted without deleting the cascading options first.';
13
- DeleteForContext.flags = Object.assign(Object.assign({}, atlascli_common_1.CommandWithSite.flags), { fieldId: core_1.Flags.string({
14
- description: 'The ID of the custom field.',
15
- required: true,
16
- }), contextId: core_1.Flags.string({
17
- description: 'The ID of the context from which an option should be deleted.',
18
- required: true,
19
- }), optionId: core_1.Flags.string({
20
- description: 'The ID of the option to delete.',
21
- required: true,
22
- }) });
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteForContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var o=(await this.parse(DeleteForContext)).flags;await t.fieldOptionManager.deleteFieldOptionForContext(o.fieldId,o.contextId,o.optionId)}}(exports.default=DeleteForContext).description="Deletes a custom field option. Options with cascading options cannot be deleted without deleting the cascading options first.",DeleteForContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The ID of the context from which an option should be deleted.",required:!0}),optionId:core_1.Flags.string({description:"The ID of the option to delete.",required:!0})});
@@ -1,25 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const core_1 = require("@oclif/core");
5
- const atlascli_common_1 = require("@thestarware/atlascli-common");
6
- const atlascli_common_2 = require("@thestarware/atlascli-common");
7
- class GetForContext extends atlascli_common_1.BaseCommandWithCloudSite {
8
- async runWithCloudSite(site, jira) {
9
- const { flags } = await this.parse(GetForContext);
10
- const _a = this.removeFlagsFromBase(flags), { fieldId, contextId, all } = _a, query = tslib_1.__rest(_a, ["fieldId", "contextId", "all"]);
11
- const res = await jira.fieldOptionManager.getFieldOptionsForContext(fieldId, contextId, query);
12
- if (all)
13
- res.values = await (0, atlascli_common_2.getAllPaginatedResponseValues)(res, query, jira.fieldOptionManager.getFieldOptionsForContext.bind(jira.fieldOptionManager, fieldId, contextId));
14
- this.display(flags, res.values);
15
- }
16
- }
17
- exports.default = GetForContext;
18
- GetForContext.description = 'Gets all custom field option for a context.';
19
- GetForContext.flags = Object.assign(Object.assign({}, atlascli_common_1.CommandWithSite.flags), { fieldId: core_1.Flags.string({
20
- description: 'The ID of the custom field.',
21
- required: true,
22
- }), contextId: core_1.Flags.string({
23
- description: 'The ID of the context.',
24
- required: true,
25
- }), optionId: core_1.Flags.string({ description: 'The ID of the option.' }), onlyOptions: core_1.Flags.boolean({ description: 'Whether only options are returned.' }), startAt: core_1.Flags.integer({ description: 'The index of the first item to return in a page of results (page offset).' }), maxResults: core_1.Flags.integer({ description: 'The maximum number of items to return per page.' }), all: core_1.Flags.boolean({ description: 'Whether all responses are returned.', default: false, 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 GetForContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var o=(await this.parse(GetForContext)).flags,i=this.removeFlagsFromBase(o),{fieldId:s,contextId:a,all:r}=i,i=tslib_1.__rest(i,["fieldId","contextId","all"]),l=await t.fieldOptionManager.getFieldOptionsForContext(s,a,i);r&&(l.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(l,i,t.fieldOptionManager.getFieldOptionsForContext.bind(t.fieldOptionManager,s,a))),this.display(o,l.values)}}(exports.default=GetForContext).description="Gets all custom field option for a context.",GetForContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The ID of the context.",required:!0}),optionId:core_1.Flags.string({description:"The ID of the option."}),onlyOptions:core_1.Flags.boolean({description:"Whether only options are returned."}),startAt:core_1.Flags.integer({description:"The index of the first item to return in a page of results (page offset)."}),maxResults:core_1.Flags.integer({description:"The maximum number of items to return per page."}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
@@ -1,34 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const core_1 = require("@oclif/core");
4
- const atlascli_common_1 = require("@thestarware/atlascli-common");
5
- class Get extends atlascli_common_1.CommandWithSite {
6
- async runWithSite(site) {
7
- const optionIds = [];
8
- const { flags, argv } = await this.parse(Get);
9
- const jira = this.getJira(site, flags);
10
- optionIds.push(...(flags.optionId || []));
11
- optionIds.push(...(Array.isArray(argv) ? argv : typeof argv === 'string' ? [argv] : []));
12
- if (optionIds.length === 0)
13
- this.error('No custom field option id is specified.');
14
- const promises = optionIds.sort().map(optionId => jira.fieldOptionManager.getCustomFieldOption(optionId));
15
- await Promise.all(promises).then(options => {
16
- if (options.length > 0)
17
- this.display(flags, options);
18
- });
19
- }
20
- }
21
- exports.default = Get;
22
- Get.strict = false;
23
- Get.description = 'Gets custom field option.';
24
- Get.flags = Object.assign(Object.assign({}, atlascli_common_1.CommandWithSite.flags), { optionId: core_1.Flags.string({
25
- char: 'i',
26
- description: 'The ID of the custom field option.',
27
- multiple: true,
28
- }) });
29
- Get.args = [
30
- {
31
- name: 'optionId',
32
- description: 'The ID of the custom field option.',
33
- },
34
- ];
1
+ Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class Get extends atlascli_common_1.CommandWithSite{async runWithSite(t){var e=[];let{flags:i,argv:o}=await this.parse(Get),s=this.getJira(t,i);e.push(...i.optionId||[]),e.push(...Array.isArray(o)?o:"string"==typeof o?[o]:[]),0===e.length&&this.error("No custom field option id is specified.");t=e.sort().map(t=>s.fieldOptionManager.getCustomFieldOption(t));await Promise.all(t).then(t=>{0<t.length&&this.display(i,t)})}}(exports.default=Get).strict=!1,Get.description="Gets custom field option.",Get.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{optionId:core_1.Flags.string({char:"i",description:"The ID of the custom field option.",multiple:!0})}),Get.args=[{name:"optionId",description:"The ID of the custom field option."}];
@@ -1,25 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const core_1 = require("@oclif/core");
5
- const atlascli_common_1 = require("@thestarware/atlascli-common");
6
- class ReorderForContext extends atlascli_common_1.BaseCommandWithCloudSite {
7
- async runWithCloudSite(site, jira) {
8
- const { flags } = await this.parse(ReorderForContext);
9
- const _a = this.removeFlagsFromBase(flags), { fieldId, contextId } = _a, parsedFlag = tslib_1.__rest(_a, ["fieldId", "contextId"]);
10
- await jira.fieldOptionManager.reorderFieldOptionsForContext(fieldId, contextId, { after: flags.after, position: flags.position, customFieldOptionIds: parsedFlag.customFieldOptionId });
11
- }
12
- }
13
- exports.default = ReorderForContext;
14
- ReorderForContext.description = 'Changes the order of custom field options or cascading options in a context.';
15
- ReorderForContext.flags = Object.assign(Object.assign({}, atlascli_common_1.CommandWithSite.flags), { fieldId: core_1.Flags.string({
16
- description: 'The ID of the custom field.',
17
- required: true,
18
- }), contextId: core_1.Flags.string({
19
- description: 'The ID of the context.',
20
- required: true,
21
- }), customFieldOptionId: core_1.Flags.string({
22
- description: 'ID of custom field options to move. You can provide multiple ID by repeating this flag. The order of the custom field option IDs in the list is the order they are given after the move. The list must contain custom field options or cascading options, but not both.',
23
- required: true,
24
- multiple: true,
25
- }), after: core_1.Flags.string({ description: "The ID of the custom field option or cascading option to place the moved options after. Required if position isn't provided.", dependsOn: ['position'] }), position: core_1.Flags.string({ description: "The position the custom field options should be moved to. Required if after isn't provided.", dependsOn: ['after'], options: ['First', 'Last'] }) });
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 ReorderForContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,o){var t=(await this.parse(ReorderForContext)).flags,i=this.removeFlagsFromBase(t),{fieldId:s,contextId:r}=i,i=tslib_1.__rest(i,["fieldId","contextId"]);await o.fieldOptionManager.reorderFieldOptionsForContext(s,r,{after:t.after,position:t.position,customFieldOptionIds:i.customFieldOptionId})}}(exports.default=ReorderForContext).description="Changes the order of custom field options or cascading options in a context.",ReorderForContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The ID of the context.",required:!0}),customFieldOptionId:core_1.Flags.string({description:"ID of custom field options to move. You can provide multiple ID by repeating this flag. The order of the custom field option IDs in the list is the order they are given after the move. The list must contain custom field options or cascading options, but not both.",required:!0,multiple:!0}),after:core_1.Flags.string({description:"The ID of the custom field option or cascading option to place the moved options after. Required if position isn't provided.",dependsOn:["position"]}),position:core_1.Flags.string({description:"The position the custom field options should be moved to. Required if after isn't provided.",dependsOn:["after"],options:["First","Last"]})});
@@ -1,26 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const core_1 = require("@oclif/core");
5
- const atlascli_common_1 = require("@thestarware/atlascli-common");
6
- const atlascli_common_2 = require("@thestarware/atlascli-common");
7
- class UpdateForContext extends atlascli_common_1.BaseCommandWithCloudSite {
8
- async runWithCloudSite(site, jira) {
9
- const { flags } = await this.parse(UpdateForContext);
10
- const _a = this.removeFlagsFromBase(flags), { fieldId, contextId } = _a, parsedFlag = tslib_1.__rest(_a, ["fieldId", "contextId"]);
11
- const res = await jira.fieldOptionManager.updateFieldOptionForContext(fieldId, contextId, { options: (0, atlascli_common_2.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(parsedFlag.options, 'options', ['value', 'id', 'disabled']) });
12
- this.display(flags, res.options);
13
- }
14
- }
15
- exports.default = UpdateForContext;
16
- UpdateForContext.description = "Updates the options of a custom field. If any of the options are not found, no options are updated. Options where the values in the request match the current values aren't updated and aren't reported in the response.";
17
- UpdateForContext.flags = Object.assign(Object.assign({}, atlascli_common_1.CommandWithSite.flags), { fieldId: core_1.Flags.string({
18
- description: 'The ID of the custom field.',
19
- required: true,
20
- }), contextId: core_1.Flags.string({
21
- description: 'The ID of the context.',
22
- required: true,
23
- }), options: core_1.Flags.string({
24
- description: 'Details of options to create. You can use this flag multiple times to add more option. Example use case: --options:value=optionValue,id=1000,disabled=true',
25
- multiple: true,
26
- }) });
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 UpdateForContext extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var o=(await this.parse(UpdateForContext)).flags,i=this.removeFlagsFromBase(o),{fieldId:a,contextId:s}=i,i=tslib_1.__rest(i,["fieldId","contextId"]),t=await t.fieldOptionManager.updateFieldOptionForContext(a,s,{options:(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(i.options,"options",["value","id","disabled"])});this.display(o,t.options)}}(exports.default=UpdateForContext).description="Updates the options of a custom field. If any of the options are not found, no options are updated. Options where the values in the request match the current values aren't updated and aren't reported in the response.",UpdateForContext.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{fieldId:core_1.Flags.string({description:"The ID of the custom field.",required:!0}),contextId:core_1.Flags.string({description:"The ID of the context.",required:!0}),options:core_1.Flags.string({description:"Details of options to create. You can use this flag multiple times to add more option. Example use case: --options:value=optionValue,id=1000,disabled=true",multiple:!0})});