@thestarware/atlascli-jira 1.2.0
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.
- package/LICENSE.md +1 -0
- package/README.md +9755 -0
- package/bin/dev +18 -0
- package/bin/dev.cmd +3 -0
- package/bin/run +5 -0
- package/bin/run.cmd +3 -0
- package/lib/commands/announcement-banner/get.js +1 -0
- package/lib/commands/announcement-banner/update.js +1 -0
- package/lib/commands/application-role/get-all.js +2 -0
- package/lib/commands/application-role/get.js +1 -0
- package/lib/commands/application-role/update.js +1 -0
- package/lib/commands/attachment/add.js +1 -0
- package/lib/commands/attachment/delete.js +1 -0
- package/lib/commands/attachment/get-content.js +1 -0
- package/lib/commands/attachment/get-jira-settings.js +1 -0
- package/lib/commands/attachment/get-metadata-for-zip.js +1 -0
- package/lib/commands/attachment/get-metadata.js +1 -0
- package/lib/commands/attachment/get-thumbnails.js +1 -0
- package/lib/commands/audit-record/get-associated.js +1 -0
- package/lib/commands/audit-record/get-changed.js +1 -0
- package/lib/commands/avatar/delete-universal-avatar.js +1 -0
- package/lib/commands/avatar/delete-user-avatar.js +1 -0
- package/lib/commands/avatar/get-all-user-avatar.js +1 -0
- package/lib/commands/avatar/get-image-by-id.js +1 -0
- package/lib/commands/avatar/get-image-by-owner.js +1 -0
- package/lib/commands/avatar/get-image-by-type.js +1 -0
- package/lib/commands/avatar/get-system-avatars.js +1 -0
- package/lib/commands/avatar/get-universal-avatars.js +1 -0
- package/lib/commands/avatar/set-user-avatar.js +1 -0
- package/lib/commands/avatar/upload-universal-avatar.js +1 -0
- package/lib/commands/avatar/upload-user-avatar.js +1 -0
- package/lib/commands/comment/add.js +1 -0
- package/lib/commands/comment/delete.js +1 -0
- package/lib/commands/comment/get-for-issue.js +1 -0
- package/lib/commands/comment/get-with-ids.js +1 -0
- package/lib/commands/comment/get.js +1 -0
- package/lib/commands/comment/update.js +1 -0
- package/lib/commands/comment-property/delete-property.js +1 -0
- package/lib/commands/comment-property/get-property-keys.js +1 -0
- package/lib/commands/comment-property/get-property.js +1 -0
- package/lib/commands/comment-property/set-property.js +1 -0
- package/lib/commands/config/add.js +1 -0
- package/lib/commands/config/delete.js +1 -0
- package/lib/commands/config/get-default.js +1 -0
- package/lib/commands/config/list.js +1 -0
- package/lib/commands/config/set-default.js +1 -0
- package/lib/commands/dashboard/add-edit-permission.js +1 -0
- package/lib/commands/dashboard/add-share-permission.js +1 -0
- package/lib/commands/dashboard/copy.js +1 -0
- package/lib/commands/dashboard/create.js +1 -0
- package/lib/commands/dashboard/delete.js +1 -0
- package/lib/commands/dashboard/get-all.js +1 -0
- package/lib/commands/dashboard/get-permissions.js +1 -0
- package/lib/commands/dashboard/get.js +1 -0
- package/lib/commands/dashboard/search.js +1 -0
- package/lib/commands/dashboard/update.js +1 -0
- package/lib/commands/dashboard-gadget/add.js +1 -0
- package/lib/commands/dashboard-gadget/get-availables.js +1 -0
- package/lib/commands/dashboard-gadget/remove.js +1 -0
- package/lib/commands/dashboard-gadget/search.js +1 -0
- package/lib/commands/dashboard-gadget/update.js +1 -0
- package/lib/commands/dashboard-item-property/delete.js +1 -0
- package/lib/commands/dashboard-item-property/get-keys.js +1 -0
- package/lib/commands/dashboard-item-property/get.js +1 -0
- package/lib/commands/dashboard-item-property/set.js +1 -0
- package/lib/commands/filter/add-favourite.js +1 -0
- package/lib/commands/filter/change-owner.js +1 -0
- package/lib/commands/filter/create.js +1 -0
- package/lib/commands/filter/delete.js +1 -0
- package/lib/commands/filter/get-columns.js +1 -0
- package/lib/commands/filter/get-details.js +1 -0
- package/lib/commands/filter/get-favourites.js +1 -0
- package/lib/commands/filter/get-my.js +1 -0
- package/lib/commands/filter/get.js +1 -0
- package/lib/commands/filter/remove-favourite.js +1 -0
- package/lib/commands/filter/reset-columns.js +1 -0
- package/lib/commands/filter/search.js +1 -0
- package/lib/commands/filter/set-columns.js +1 -0
- package/lib/commands/filter/update.js +1 -0
- package/lib/commands/filter-sharing/add-edit-permission.js +1 -0
- package/lib/commands/filter-sharing/add-share-permission.js +1 -0
- package/lib/commands/filter-sharing/delete-permission.js +1 -0
- package/lib/commands/filter-sharing/get-default-scope.js +1 -0
- package/lib/commands/filter-sharing/get-edit-permissions.js +1 -0
- package/lib/commands/filter-sharing/get-permission.js +1 -0
- package/lib/commands/filter-sharing/get-share-permissions.js +1 -0
- package/lib/commands/filter-sharing/set-default-scope.js +1 -0
- package/lib/commands/group/add-user.js +1 -0
- package/lib/commands/group/create.js +1 -0
- package/lib/commands/group/find-groups.js +1 -0
- package/lib/commands/group/get-all.js +1 -0
- package/lib/commands/group/get-users.js +1 -0
- package/lib/commands/group/get.js +1 -0
- package/lib/commands/group/remove-user.js +1 -0
- package/lib/commands/group/remove.js +1 -0
- package/lib/commands/group-and-user-picker/find-groups.js +1 -0
- package/lib/commands/group-and-user-picker/find-users.js +1 -0
- package/lib/commands/issue/archive.js +1 -0
- package/lib/commands/issue/assign.js +1 -0
- package/lib/commands/issue/create.js +1 -0
- package/lib/commands/issue/delete.js +1 -0
- package/lib/commands/issue/edit.js +1 -0
- package/lib/commands/issue/get-changelogs.js +1 -0
- package/lib/commands/issue/get-create-metadata.js +1 -0
- package/lib/commands/issue/get-edit-metadata.js +1 -0
- package/lib/commands/issue/get-events.js +1 -0
- package/lib/commands/issue/get-transitions.js +1 -0
- package/lib/commands/issue/get.js +1 -0
- package/lib/commands/issue/restore.js +1 -0
- package/lib/commands/issue/send-notifications.js +1 -0
- package/lib/commands/issue/transition.js +1 -0
- package/lib/commands/issue-field/create.js +1 -0
- package/lib/commands/issue-field/delete.js +1 -0
- package/lib/commands/issue-field/get-all.js +1 -0
- package/lib/commands/issue-field/move-trash.js +1 -0
- package/lib/commands/issue-field/restore-trash.js +1 -0
- package/lib/commands/issue-field/search-trash.js +1 -0
- package/lib/commands/issue-field/search.js +1 -0
- package/lib/commands/issue-field/update.js +1 -0
- package/lib/commands/issue-field-configuration/assign-issue-type.js +1 -0
- package/lib/commands/issue-field-configuration/assign-scheme-to-project.js +1 -0
- package/lib/commands/issue-field-configuration/create-scheme.js +1 -0
- package/lib/commands/issue-field-configuration/create.js +1 -0
- package/lib/commands/issue-field-configuration/delete-scheme.js +1 -0
- package/lib/commands/issue-field-configuration/delete.js +1 -0
- package/lib/commands/issue-field-configuration/get-all-issue-type-items.js +1 -0
- package/lib/commands/issue-field-configuration/get-all-schemes.js +1 -0
- package/lib/commands/issue-field-configuration/get-all.js +1 -0
- package/lib/commands/issue-field-configuration/get-items.js +1 -0
- package/lib/commands/issue-field-configuration/get-project-schemes.js +1 -0
- package/lib/commands/issue-field-configuration/remove-issue-types.js +1 -0
- package/lib/commands/issue-field-configuration/update-items.js +1 -0
- package/lib/commands/issue-field-configuration/update-scheme.js +1 -0
- package/lib/commands/issue-field-configuration/update.js +1 -0
- package/lib/commands/issue-field-context/add-issue-types.js +1 -0
- package/lib/commands/issue-field-context/assign-to-projects.js +1 -0
- package/lib/commands/issue-field-context/create.js +1 -0
- package/lib/commands/issue-field-context/delete.js +1 -0
- package/lib/commands/issue-field-context/get-all.js +1 -0
- package/lib/commands/issue-field-context/get-contexts-for-projects-and-issue-types.js +1 -0
- package/lib/commands/issue-field-context/get-default-values.js +1 -0
- package/lib/commands/issue-field-context/get-issue-types.js +1 -0
- package/lib/commands/issue-field-context/get-project-mappings.js +1 -0
- package/lib/commands/issue-field-context/remove-from-projects.js +1 -0
- package/lib/commands/issue-field-context/remove-issue-types.js +1 -0
- package/lib/commands/issue-field-context/set-default-values.js +1 -0
- package/lib/commands/issue-field-context/update.js +1 -0
- package/lib/commands/issue-field-option/create-for-context.js +1 -0
- package/lib/commands/issue-field-option/delete-for-context.js +1 -0
- package/lib/commands/issue-field-option/get-for-context.js +1 -0
- package/lib/commands/issue-field-option/get.js +1 -0
- package/lib/commands/issue-field-option/reorder-for-context.js +1 -0
- package/lib/commands/issue-field-option/update-for-context.js +1 -0
- package/lib/commands/issue-link/create.js +1 -0
- package/lib/commands/issue-link/delete.js +1 -0
- package/lib/commands/issue-link/get.js +1 -0
- package/lib/commands/issue-link-type/create.js +1 -0
- package/lib/commands/issue-link-type/delete.js +1 -0
- package/lib/commands/issue-link-type/get-all.js +1 -0
- package/lib/commands/issue-link-type/get.js +1 -0
- package/lib/commands/issue-link-type/update.js +1 -0
- package/lib/commands/issue-navigator-setting/get-columns.js +1 -0
- package/lib/commands/issue-navigator-setting/set-columns.js +1 -0
- package/lib/commands/issue-priority/create.js +1 -0
- package/lib/commands/issue-priority/delete.js +1 -0
- package/lib/commands/issue-priority/move.js +1 -0
- package/lib/commands/issue-priority/search.js +1 -0
- package/lib/commands/issue-priority/set-default.js +1 -0
- package/lib/commands/issue-priority/update.js +1 -0
- package/lib/commands/issue-property/delete-bulk.js +1 -0
- package/lib/commands/issue-property/delete.js +1 -0
- package/lib/commands/issue-property/get-keys.js +1 -0
- package/lib/commands/issue-property/get.js +1 -0
- package/lib/commands/issue-property/set-bulk.js +1 -0
- package/lib/commands/issue-property/set-by-issue-bulk.js +1 -0
- package/lib/commands/issue-property/set-by-list-bulk.js +1 -0
- package/lib/commands/issue-property/set.js +1 -0
- package/lib/commands/issue-remote-link/create.js +1 -0
- package/lib/commands/issue-remote-link/delete-by-global-id.js +1 -0
- package/lib/commands/issue-remote-link/delete.js +1 -0
- package/lib/commands/issue-remote-link/get-all.js +1 -0
- package/lib/commands/issue-remote-link/get.js +1 -0
- package/lib/commands/issue-remote-link/update.js +1 -0
- package/lib/commands/issue-resolution/create.js +1 -0
- package/lib/commands/issue-resolution/delete.js +1 -0
- package/lib/commands/issue-resolution/get-all.js +1 -0
- package/lib/commands/issue-resolution/get.js +1 -0
- package/lib/commands/issue-resolution/move.js +1 -0
- package/lib/commands/issue-resolution/search.js +1 -0
- package/lib/commands/issue-resolution/set-default.js +1 -0
- package/lib/commands/issue-resolution/update.js +1 -0
- package/lib/commands/issue-search/get-picker-suggestions.js +1 -0
- package/lib/commands/issue-search/search.js +1 -0
- package/lib/commands/issue-search/test-jql.js +1 -0
- package/lib/commands/issue-security-level/get-members.js +1 -0
- package/lib/commands/issue-security-level/get.js +1 -0
- package/lib/commands/issue-security-scheme/get-all.js +1 -0
- package/lib/commands/issue-security-scheme/get-levels.js +1 -0
- package/lib/commands/issue-security-scheme/get.js +1 -0
- package/lib/commands/issue-type/create.js +1 -0
- package/lib/commands/issue-type/delete.js +1 -0
- package/lib/commands/issue-type/get-all-for-projects.js +1 -0
- package/lib/commands/issue-type/get-all.js +1 -0
- package/lib/commands/issue-type/get-alternatives.js +1 -0
- package/lib/commands/issue-type/get.js +1 -0
- package/lib/commands/issue-type/set-avatar.js +1 -0
- package/lib/commands/issue-type/update.js +1 -0
- package/lib/commands/issue-type/upload-avatar.js +1 -0
- package/lib/commands/issue-type-property/delete.js +1 -0
- package/lib/commands/issue-type-property/get-keys.js +1 -0
- package/lib/commands/issue-type-property/get.js +1 -0
- package/lib/commands/issue-type-property/set.js +1 -0
- package/lib/commands/issue-type-scheme/add-issue-types.js +1 -0
- package/lib/commands/issue-type-scheme/assign-to-project.js +1 -0
- package/lib/commands/issue-type-scheme/create.js +1 -0
- package/lib/commands/issue-type-scheme/delete.js +1 -0
- package/lib/commands/issue-type-scheme/get-for-projects.js +1 -0
- package/lib/commands/issue-type-scheme/get-issue-types.js +1 -0
- package/lib/commands/issue-type-scheme/get-mappings.js +1 -0
- package/lib/commands/issue-type-scheme/get-projects.js +1 -0
- package/lib/commands/issue-type-scheme/move-issue-types.js +1 -0
- package/lib/commands/issue-type-scheme/remove-all-projects.js +1 -0
- package/lib/commands/issue-type-scheme/remove-issue-type.js +1 -0
- package/lib/commands/issue-type-scheme/remove-project.js +1 -0
- package/lib/commands/issue-type-scheme/search.js +1 -0
- package/lib/commands/issue-type-scheme/set-projects.js +1 -0
- package/lib/commands/issue-type-scheme/update.js +1 -0
- package/lib/commands/issue-type-screen-scheme/add-mappings.js +1 -0
- package/lib/commands/issue-type-screen-scheme/assign-to-project.js +1 -0
- package/lib/commands/issue-type-screen-scheme/create.js +1 -0
- package/lib/commands/issue-type-screen-scheme/delete.js +1 -0
- package/lib/commands/issue-type-screen-scheme/get-for-projects.js +1 -0
- package/lib/commands/issue-type-screen-scheme/get-items.js +1 -0
- package/lib/commands/issue-type-screen-scheme/get-projects.js +1 -0
- package/lib/commands/issue-type-screen-scheme/remove-mappings.js +1 -0
- package/lib/commands/issue-type-screen-scheme/search.js +1 -0
- package/lib/commands/issue-type-screen-scheme/set-default-screen.js +1 -0
- package/lib/commands/issue-type-screen-scheme/update.js +1 -0
- package/lib/commands/issue-vote/add.js +1 -0
- package/lib/commands/issue-vote/delete.js +1 -0
- package/lib/commands/issue-vote/get-all.js +1 -0
- package/lib/commands/issue-watcher/add.js +1 -0
- package/lib/commands/issue-watcher/delete.js +1 -0
- package/lib/commands/issue-watcher/get-all.js +1 -0
- package/lib/commands/issue-watcher/get-bulk.js +1 -0
- package/lib/commands/jira-expression/analyse.js +1 -0
- package/lib/commands/jira-expression/evaluate.js +1 -0
- package/lib/commands/jira-settings/get-advanced.js +1 -0
- package/lib/commands/jira-settings/get-globals.js +1 -0
- package/lib/commands/jira-settings/get-properties.js +1 -0
- package/lib/commands/jira-settings/set-property.js +1 -0
- package/lib/commands/jql/convert-user-identifiers.js +1 -0
- package/lib/commands/jql/get-auto-complete-suggestions.js +1 -0
- package/lib/commands/jql/get-reference-data.js +1 -0
- package/lib/commands/jql/parse.js +1 -0
- package/lib/commands/jql/sanitize.js +1 -0
- package/lib/commands/label/get-all.js +1 -0
- package/lib/commands/license/get.js +1 -0
- package/lib/commands/myself/change-password.js +1 -0
- package/lib/commands/myself/delete-preference.js +1 -0
- package/lib/commands/myself/get-locale.js +1 -0
- package/lib/commands/myself/get-preference.js +1 -0
- package/lib/commands/myself/get.js +1 -0
- package/lib/commands/myself/set-preference.js +1 -0
- package/lib/commands/myself/update-user.js +1 -0
- package/lib/commands/notification-scheme/add.js +1 -0
- package/lib/commands/notification-scheme/create.js +1 -0
- package/lib/commands/notification-scheme/delete-notification.js +1 -0
- package/lib/commands/notification-scheme/delete.js +1 -0
- package/lib/commands/notification-scheme/get-all.js +1 -0
- package/lib/commands/notification-scheme/get-projects.js +1 -0
- package/lib/commands/notification-scheme/get.js +1 -0
- package/lib/commands/notification-scheme/update.js +1 -0
- package/lib/commands/permission/check-global-permission.js +1 -0
- package/lib/commands/permission/check-issue-permission.js +1 -0
- package/lib/commands/permission/check-project-permission.js +1 -0
- package/lib/commands/permission/get-all.js +1 -0
- package/lib/commands/permission/get-my.js +1 -0
- package/lib/commands/permission/get-permitted.js +1 -0
- package/lib/commands/permission-scheme/create-grant.js +1 -0
- package/lib/commands/permission-scheme/create-scheme.js +1 -0
- package/lib/commands/permission-scheme/delete-grant.js +1 -0
- package/lib/commands/permission-scheme/delete-scheme.js +1 -0
- package/lib/commands/permission-scheme/get-all-grants.js +1 -0
- package/lib/commands/permission-scheme/get-all.js +1 -0
- package/lib/commands/permission-scheme/get-grant.js +1 -0
- package/lib/commands/permission-scheme/get.js +1 -0
- package/lib/commands/project/archive.js +1 -0
- package/lib/commands/project/create.js +1 -0
- package/lib/commands/project/delete.js +1 -0
- package/lib/commands/project/get-all-issue-types.js +1 -0
- package/lib/commands/project/get-all.js +1 -0
- package/lib/commands/project/get-issue-type-hierarchy.js +1 -0
- package/lib/commands/project/get-notification-schema.js +1 -0
- package/lib/commands/project/get.js +1 -0
- package/lib/commands/project/project.js +1 -0
- package/lib/commands/project/restore.js +1 -0
- package/lib/commands/project/search.js +1 -0
- package/lib/commands/project/unarchive.js +1 -0
- package/lib/commands/project/update.js +1 -0
- package/lib/commands/project-avatar/delete.js +1 -0
- package/lib/commands/project-avatar/get-all.js +1 -0
- package/lib/commands/project-avatar/set.js +1 -0
- package/lib/commands/project-avatar/upload.js +1 -0
- package/lib/commands/project-category/create.js +1 -0
- package/lib/commands/project-category/delete.js +1 -0
- package/lib/commands/project-category/get-all.js +1 -0
- package/lib/commands/project-category/get.js +1 -0
- package/lib/commands/project-category/update.js +1 -0
- package/lib/commands/project-component/create.js +1 -0
- package/lib/commands/project-component/delete.js +1 -0
- package/lib/commands/project-component/get-all.js +1 -0
- package/lib/commands/project-component/get-issues-count.js +1 -0
- package/lib/commands/project-component/get.js +1 -0
- package/lib/commands/project-component/search.js +1 -0
- package/lib/commands/project-component/update.js +1 -0
- package/lib/commands/project-email/get-sender.js +1 -0
- package/lib/commands/project-email/set-sender.js +1 -0
- package/lib/commands/project-feature/get.js +1 -0
- package/lib/commands/project-feature/set.js +1 -0
- package/lib/commands/project-key-and-name-validation/get-valid-key.js +1 -0
- package/lib/commands/project-key-and-name-validation/get-valid-name.js +1 -0
- package/lib/commands/project-key-and-name-validation/validate-key.js +1 -0
- package/lib/commands/project-permission-scheme/get-issue-security-levels.js +1 -0
- package/lib/commands/project-permission-scheme/get-issue-security-scheme-levels.js +1 -0
- package/lib/commands/project-permission-scheme/get-issue-security-scheme.js +1 -0
- package/lib/commands/project-permission-scheme/get-permissions.js +1 -0
- package/lib/commands/project-permission-scheme/get.js +1 -0
- package/lib/commands/project-permission-scheme/set.js +1 -0
- package/lib/commands/project-property/delete.js +1 -0
- package/lib/commands/project-property/get-keys.js +1 -0
- package/lib/commands/project-property/get.js +1 -0
- package/lib/commands/project-property/set.js +1 -0
- package/lib/commands/project-role/create.js +1 -0
- package/lib/commands/project-role/delete.js +1 -0
- package/lib/commands/project-role/get-all.js +1 -0
- package/lib/commands/project-role/get-role.js +1 -0
- package/lib/commands/project-role/get-roles-and-details.js +1 -0
- package/lib/commands/project-role/get-roles.js +1 -0
- package/lib/commands/project-role/get.js +1 -0
- package/lib/commands/project-role/project-role.js +1 -0
- package/lib/commands/project-role/update-partial.js +1 -0
- package/lib/commands/project-role/update.js +1 -0
- package/lib/commands/project-role-actor/add-actors.js +1 -0
- package/lib/commands/project-role-actor/add-default-actors.js +1 -0
- package/lib/commands/project-role-actor/delete-actors.js +1 -0
- package/lib/commands/project-role-actor/delete-default-actors.js +1 -0
- package/lib/commands/project-role-actor/get.js +1 -0
- package/lib/commands/project-role-actor/set-actors.js +1 -0
- package/lib/commands/project-type/check-accessible.js +1 -0
- package/lib/commands/project-type/get-all.js +1 -0
- package/lib/commands/project-type/get-licensed.js +1 -0
- package/lib/commands/project-type/get.js +1 -0
- package/lib/commands/project-type/update.js +1 -0
- package/lib/commands/project-version/create.js +1 -0
- package/lib/commands/project-version/delete-and-replace.js +1 -0
- package/lib/commands/project-version/get-all.js +1 -0
- package/lib/commands/project-version/get-related-issue-count.js +1 -0
- package/lib/commands/project-version/get-unresolved-issue-count.js +1 -0
- package/lib/commands/project-version/get.js +1 -0
- package/lib/commands/project-version/merge.js +2 -0
- package/lib/commands/project-version/move.js +1 -0
- package/lib/commands/project-version/search.js +1 -0
- package/lib/commands/project-version/update.js +1 -0
- package/lib/commands/screen/add-field-to-default-screen.js +1 -0
- package/lib/commands/screen/create.js +1 -0
- package/lib/commands/screen/delete.js +1 -0
- package/lib/commands/screen/get-all.js +1 -0
- package/lib/commands/screen/get-available-fields.js +1 -0
- package/lib/commands/screen/get-field-screens.js +1 -0
- package/lib/commands/screen/get-workflows.js +1 -0
- package/lib/commands/screen/update.js +1 -0
- package/lib/commands/screen-scheme/create.js +1 -0
- package/lib/commands/screen-scheme/delete.js +1 -0
- package/lib/commands/screen-scheme/get-all.js +1 -0
- package/lib/commands/screen-scheme/update.js +1 -0
- package/lib/commands/screen-tab/create.js +1 -0
- package/lib/commands/screen-tab/delete.js +1 -0
- package/lib/commands/screen-tab/get-all.js +1 -0
- package/lib/commands/screen-tab/move.js +1 -0
- package/lib/commands/screen-tab/update.js +1 -0
- package/lib/commands/screen-tab-field/add.js +1 -0
- package/lib/commands/screen-tab-field/get-all.js +1 -0
- package/lib/commands/screen-tab-field/move.js +1 -0
- package/lib/commands/screen-tab-field/remove.js +1 -0
- package/lib/commands/server-info/get.js +1 -0
- package/lib/commands/server-info/jmx.js +1 -0
- package/lib/commands/status/create.js +1 -0
- package/lib/commands/status/delete.js +1 -0
- package/lib/commands/status/get-usages.js +1 -0
- package/lib/commands/status/get.js +1 -0
- package/lib/commands/status/search.js +1 -0
- package/lib/commands/status/status-command.js +1 -0
- package/lib/commands/status/update.js +1 -0
- package/lib/commands/task/cancel.js +1 -0
- package/lib/commands/task/get.js +1 -0
- package/lib/commands/time-tracking/get-all.js +1 -0
- package/lib/commands/time-tracking/get-setting.js +1 -0
- package/lib/commands/time-tracking/get.js +1 -0
- package/lib/commands/time-tracking/select.js +1 -0
- package/lib/commands/time-tracking/set.js +1 -0
- package/lib/commands/user/add-user-to-application.js +1 -0
- package/lib/commands/user/change-password.js +1 -0
- package/lib/commands/user/create.js +1 -0
- package/lib/commands/user/delete.js +1 -0
- package/lib/commands/user/get-all.js +1 -0
- package/lib/commands/user/get-default-columns.js +1 -0
- package/lib/commands/user/get-email.js +1 -0
- package/lib/commands/user/get-user-groups.js +1 -0
- package/lib/commands/user/get.js +1 -0
- package/lib/commands/user/remove-user-from-application.js +1 -0
- package/lib/commands/user/reset-default-columns.js +1 -0
- package/lib/commands/user/set-default-columns.js +1 -0
- package/lib/commands/user/update.js +1 -0
- package/lib/commands/user/user-command.js +1 -0
- package/lib/commands/user-property/delete.js +1 -0
- package/lib/commands/user-property/get-all-keys.js +1 -0
- package/lib/commands/user-property/get-user-property.js +1 -0
- package/lib/commands/user-property/set.js +1 -0
- package/lib/commands/user-search/accounts-with-query.js +1 -0
- package/lib/commands/user-search/assignable-users-bulk.js +1 -0
- package/lib/commands/user-search/assignable-users.js +1 -0
- package/lib/commands/user-search/find.js +1 -0
- package/lib/commands/user-search/with-permission.js +1 -0
- package/lib/commands/user-search/with-query.js +1 -0
- package/lib/commands/workflow/create.js +1 -0
- package/lib/commands/workflow/delete.js +1 -0
- package/lib/commands/workflow/get-projects.js +1 -0
- package/lib/commands/workflow/get-schemes.js +1 -0
- package/lib/commands/workflow/get-statuses-properties.js +1 -0
- package/lib/commands/workflow/get-statuses.js +1 -0
- package/lib/commands/workflow/get-transitions-rules.js +1 -0
- package/lib/commands/workflow/get-transitions.js +1 -0
- package/lib/commands/workflow/search.js +1 -0
- package/lib/commands/workflow-scheme/create.js +5 -0
- package/lib/commands/workflow-scheme/delete-default-workflow.js +1 -0
- package/lib/commands/workflow-scheme/delete-issue-types-for-workflow.js +1 -0
- package/lib/commands/workflow-scheme/delete-workflow-for-issue-type.js +1 -0
- package/lib/commands/workflow-scheme/delete.js +1 -0
- package/lib/commands/workflow-scheme/get-all.js +1 -0
- package/lib/commands/workflow-scheme/get-default-workflow.js +1 -0
- package/lib/commands/workflow-scheme/get-issue-types-for-workflows.js +1 -0
- package/lib/commands/workflow-scheme/get-workflow-for-issue-type.js +1 -0
- package/lib/commands/workflow-scheme/get.js +1 -0
- package/lib/commands/workflow-scheme/set-issue-types-for-workflow.js +1 -0
- package/lib/commands/workflow-scheme/set-workflow-for-issue-type.js +1 -0
- package/lib/commands/workflow-scheme/update-default-workflow.js +1 -0
- package/lib/commands/workflow-scheme/update.js +5 -0
- package/lib/commands/workflow-scheme-draft/create.js +1 -0
- package/lib/commands/workflow-scheme-draft/delete-default-workflow.js +1 -0
- package/lib/commands/workflow-scheme-draft/delete-issue-types-for-workflow.js +1 -0
- package/lib/commands/workflow-scheme-draft/delete-workflow-for-issue-type.js +1 -0
- package/lib/commands/workflow-scheme-draft/delete.js +1 -0
- package/lib/commands/workflow-scheme-draft/get-default-workflow.js +1 -0
- package/lib/commands/workflow-scheme-draft/get-issue-types-for-workflows.js +1 -0
- package/lib/commands/workflow-scheme-draft/get-workflow-for-issue-type.js +1 -0
- package/lib/commands/workflow-scheme-draft/get.js +1 -0
- package/lib/commands/workflow-scheme-draft/publish.js +1 -0
- package/lib/commands/workflow-scheme-draft/set-issue-types-for-workflow.js +1 -0
- package/lib/commands/workflow-scheme-draft/set-workflow-for-issue-type.js +1 -0
- package/lib/commands/workflow-scheme-draft/update-default-workflow.js +1 -0
- package/lib/commands/workflow-scheme-draft/update.js +5 -0
- package/lib/commands/workflow-scheme-project-association/assign.js +1 -0
- package/lib/commands/workflow-scheme-project-association/get-all.js +1 -0
- package/lib/commands/workflow-status/get-all.js +1 -0
- package/lib/commands/workflow-status/get.js +1 -0
- package/lib/commands/workflow-status-category/get-all.js +1 -0
- package/lib/commands/workflow-status-category/get.js +1 -0
- package/lib/commands/workflow-transition-property/create.js +1 -0
- package/lib/commands/workflow-transition-property/delete.js +1 -0
- package/lib/commands/workflow-transition-property/get.js +1 -0
- package/lib/commands/workflow-transition-property/update.js +1 -0
- package/lib/commands/worklog/add.js +1 -0
- package/lib/commands/worklog/delete.js +1 -0
- package/lib/commands/worklog/get-deleted.js +1 -0
- package/lib/commands/worklog/get-for-issue.js +1 -0
- package/lib/commands/worklog/get-updated.js +1 -0
- package/lib/commands/worklog/get-with-ids.js +1 -0
- package/lib/commands/worklog/get.js +1 -0
- package/lib/commands/worklog/update.js +1 -0
- package/lib/commands/worklog-property/delete.js +1 -0
- package/lib/commands/worklog-property/get-keys.js +1 -0
- package/lib/commands/worklog-property/get.js +1 -0
- package/lib/commands/worklog-property/set-property.js +1 -0
- package/lib/index.js +1 -0
- package/package.json +358 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateScreen extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var r=(await this.parse(UpdateScreen))["flags"],t=this.removeFlagsFromBase(r),a=t["screenId"],t=tslib_1.__rest(t,["screenId"]),s=await s.screenManager.updateScreen(a,t);this.display(r,s)}}(exports.default=UpdateScreen).description="Updates a screen.",UpdateScreen.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of the screen.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the screen. The name must be unique."}),description:core_1.Flags.string({description:"The description of the screen"})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class CreateScreenScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var s=(await this.parse(CreateScreenScheme))["flags"],c=this.removeFlagsFromBase(s),r=(this.modifyFlags(c),await r.screenSchemeManager.createScreenScheme(c));this.display(s,r)}modifyFlags(r){r.screens={},Object.keys(r).forEach(e=>{e.includes("Screen")&&(r.screens[e.split("Screen")[0]]=r[e],delete r[e])})}}(exports.default=CreateScreenScheme).description="Creates a screen scheme.",CreateScreenScheme.flags=Object.assign({name:core_1.Flags.string({char:"n",description:"The name of the screen. The name must be unique.",required:!0}),description:core_1.Flags.string({description:"The description of the screen"}),defaultScreen:core_1.Flags.string({description:"The ID of the default screen.",required:!0}),editScreen:core_1.Flags.string({description:"The ID of the edit screen."}),viewScreen:core_1.Flags.string({description:"The ID of the view screen."}),createScreen:core_1.Flags.string({description:"The ID of the create screen."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteScreenScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,c){var s=(await this.parse(DeleteScreenScheme))["flags"];await c.screenSchemeManager.deleteScreenScheme(s.screenId)}}(exports.default=DeleteScreenScheme).description="Deletes a screen scheme.",DeleteScreenScheme.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of the screen scheme.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetScreenSchemes extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var a=(await this.parse(GetScreenSchemes))["flags"],t=this.removeFlagsFromBase(a),r=t["all"],t=tslib_1.__rest(t,["all"]),c=(this.modifySearchFlags(t),await s.screenSchemeManager.getAllScreenSchemes(t));r&&(c.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(c,t,s.screenSchemeManager.getAllScreenSchemes.bind(s.screenSchemeManager))),this.display(a,c.values,(e,s)=>{s.defaultScreenId=e.screens.default||"",s.createScreenId=e.screens.create||"",s.editScreenId=e.screens.edit||"",s.viewScreenId=e.screens.view||""})}modifySearchFlags(e){e.queryString=e.query,delete e.query}}(exports.default=GetScreenSchemes).description="Gets all screen schemes. (Use the expanded flag to see screens of the schemes.)",GetScreenSchemes.flags=Object.assign(Object.assign(Object.assign(Object.assign({id:core_1.Flags.integer({char:"i",description:"The ID of screen scheme. You can provide multiple value by repeating this flag.",multiple:!0}),expand:core_1.Flags.string({description:"",options:["issueTypeScreenSchemes"]})},(0,atlascli_common_1.getSearchFlags)()),{orderBy:core_1.Flags.string({options:["id","name"]})}),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateScreenScheme extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var r=(await this.parse(UpdateScreenScheme))["flags"],r=this.removeFlagsFromBase(r),c=r["screenSchemeId"],r=tslib_1.__rest(r,["screenSchemeId"]);this.modifyFlags(r),await s.screenSchemeManager.updateScreenScheme(c,r)}modifyFlags(r){r.screens={},Object.keys(r).forEach(e=>{var s;e.includes("Screen")&&(s=this.isNull(r[e])?null:r[e],r.screens[e.split("Screen")[0]]=s,delete r[e])}),0===Object.keys(r.screens).length&&delete r.screens}isNull(e){return["null","-1","undefined",""].includes(e.toLowerCase())}}(exports.default=UpdateScreenScheme).description="Updates a screen scheme.",UpdateScreenScheme.flags=Object.assign({screenSchemeId:core_1.Flags.string({char:"i",description:"The ID of the screen scheme.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the screen. The name must be unique."}),description:core_1.Flags.string({description:"The description of the screen."}),defaultScreen:core_1.Flags.string({description:"The ID of the default screen. To remove the screen association, pass a null."}),editScreen:core_1.Flags.string({description:"The ID of the edit screen. To remove the screen association, pass a null."}),viewScreen:core_1.Flags.string({description:"The ID of the view screen. To remove the screen association, pass a null."}),createScreen:core_1.Flags.string({description:"The ID of the create screen. To remove the screen association, pass a null."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class CreateScreenTab extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(CreateScreenTab))["flags"],e=this.getJira(e,a),r=this.removeFlagsFromBase(a),t=r["id"],r=tslib_1.__rest(r,["id"]),e=await e.screenTabManager.createTab(t,r);this.display(a,e)}}(exports.default=CreateScreenTab).description="Creates a screen tab.",CreateScreenTab.flags=Object.assign({id:core_1.Flags.integer({char:"i",description:"The ID of screen."}),name:core_1.Flags.string({char:"n",description:"The name of the screen. The name must be unique.",required:!0}),description:core_1.Flags.string({description:"The description of the screen"})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteScreenTab extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(DeleteScreenTab))["flags"];await this.getJira(e,a).screenTabManager.deleteTab(a.screenId,a.tabId)}}(exports.default=DeleteScreenTab).description="Deletes a screen tab.",DeleteScreenTab.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.string({description:"The ID of screen tab.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetScreenTabs extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(GetScreenTabs))["flags"],e=this.getJira(e,s),t=this.removeFlagsFromBase(s),a=t["id"],t=tslib_1.__rest(t,["id"]),e=await e.screenTabManager.getAllTabs(a,t);this.display(s,e)}}(exports.default=GetScreenTabs).description="Gets all screen tabs.",GetScreenTabs.flags=Object.assign({id:core_1.Flags.integer({char:"i",description:"The ID of screen.",required:!0}),project:core_1.Flags.string({char:"p",description:"The key of the project."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class MoveScreenTab extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(MoveScreenTab))["flags"];await this.getJira(e,a).screenTabManager.moveTab(a.screenId,a.tabId,a.pos)}}(exports.default=MoveScreenTab).description="Moves a screen tab.",MoveScreenTab.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.string({description:"The ID of screen tab.",required:!0}),pos:core_1.Flags.integer({char:"p",description:"The position of tab. The base index is 0.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateScreenTab extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(UpdateScreenTab))["flags"],e=await this.getJira(e,a).screenTabManager.updateTab(a.screenId,a.tabId,{name:a.name});this.display(a,e)}}(exports.default=UpdateScreenTab).description="Updates a screen tab.",UpdateScreenTab.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.string({description:"The ID of screen tab.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the screen. The name must be unique.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class AddTabField extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(AddTabField))["flags"],e=await this.getJira(e,a).screenTabFieldManager.addTabField(a.screenId,a.tabId,a.fieldId);this.display(a,e)}}(exports.default=AddTabField).description="Adds a field to a screen tab.",AddTabField.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.string({description:"The ID of screen tab.",required:!0}),fieldId:core_1.Flags.string({char:"i",description:"The ID of the field to add.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetScreenTabFields extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(GetScreenTabFields))["flags"],e=this.getJira(e,s),t=this.removeFlagsFromBase(s),{screenId:r,tabId:a}=t,t=tslib_1.__rest(t,["screenId","tabId"]),e=await e.screenTabFieldManager.getAllTabFields(r,a,t);this.display(s,e)}}(exports.default=GetScreenTabFields).description="Gets all fields for a screen tab.",GetScreenTabFields.flags=Object.assign({screenId:core_1.Flags.integer({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.integer({description:"The ID of screen tab.",required:!0}),project:core_1.Flags.string({description:"The key of the project."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class MoveScreenTab extends atlascli_common_1.CommandWithSite{async runWithSite(e){var r=(await this.parse(MoveScreenTab))["flags"],e=this.getJira(e,r),r=this.removeFlagsFromBase(r),{screenId:i,tabId:s,fieldId:t}=r,r=tslib_1.__rest(r,["screenId","tabId","fieldId"]);await e.screenTabFieldManager.moveTabField(i,s,t,r)}}(exports.default=MoveScreenTab).description="Moves a screen tab field.",MoveScreenTab.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.string({description:"The ID of screen tab.",required:!0}),fieldId:core_1.Flags.string({description:"The ID of the field.",required:!0}),position:core_1.Flags.string({char:"p",description:"The position of tab. The base index is 0.",options:["Earlier","Later","First","Last"]}),after:core_1.Flags.string({char:"a",description:"The ID of the screen tab field after which to place the moved screen tab field."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class RemoveTabField extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(RemoveTabField))["flags"];await this.getJira(e,a).screenTabFieldManager.removeTabField(a.screenId,a.tabId,a.fieldId)}}(exports.default=RemoveTabField).description="Removes a field from a screen tab.",RemoveTabField.flags=Object.assign({screenId:core_1.Flags.string({char:"i",description:"The ID of screen.",required:!0}),tabId:core_1.Flags.string({description:"The ID of screen tab.",required:!0}),fieldId:core_1.Flags.string({description:"The ID of the field to add.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class Get extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(Get))["flags"],e=await this.getJira(e,t).serverInfoManager.getServerInfo();this.display(t,e)}}(exports.default=Get).description="Returns general information about the current Jira.",Get.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),base_command_with_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-server-site"));class JMX extends base_command_with_server_site_1.default{async runWithServerSite(e,t){var r=(await this.parse(JMX))["flags"];try{var a=await t.serverInfoManager.getJMXInfo();this.display(r,a)}catch(e){-1<e.toString().indexOf("Error: Not Found")&&console.error('"ATLAS CLI for Jira" add-on is not installed or JMX is not enabled on this server.')}}}(exports.default=JMX).description="Returns JMX information from Jira VM.",JMX.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class CreateStatus extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var s=(await this.parse(CreateStatus))["flags"],a=await(0,project_util_1.getProject)(t,s.project),a=(s.projectId=a.projectId,delete s.project,await t.statusManager.createStatus(this.preapareStatusCreationBody(s)));0<a.length&&this.display(s,a[0])}preapareStatusCreationBody(e){var t={};return t.statuses=[{name:e.name,description:e.description,statusCategory:e.statusCategory}],t.scope={type:e.scope},e.project&&(t.scope.project={id:e.project}),t}}exports.default=CreateStatus,(_a=CreateStatus).description="Creates status.",CreateStatus.flags=Object.assign({name:core_1.Flags.string({char:"n",description:"The name of the status. Must be unique.",required:!0}),statusCategory:core_1.Flags.string({char:"c",description:"Category of the status to filter by.",options:["TODO","IN_PROGRESS","DONE"],required:!0}),description:core_1.Flags.string({char:"d",description:"The description of the status.",required:!0}),scope:core_1.Flags.string({description:"The scope of the status.",options:["GLOBAL","PROJECT"],required:!0,relationships:[{type:"all",flags:[{name:"project",when:async e=>"PROJECT"===e.scope}]}]}),project:core_1.Flags.string({char:"p",description:"Project Id or key. If the scope type is PROJECT, you must provide the project Id."})},atlascli_common_1.BaseCommandWithCloudSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),get_1=require("./get");class DeleteStasues extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var{flags:s,argv:a}=await this.parse(DeleteStasues),s=(0,get_1.getIdsFromFlagsAndArguments)(s,a);50<s.length&&this.error("Please provide less status ID.(Max: 50)"),await t.statusManager.deleteStatus({id:s})}}(exports.default=DeleteStasues).strict=!1,DeleteStasues.description="Deletes statuses.",DeleteStasues.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"Status ID.",multiple:!0})},atlascli_common_1.BaseCommandWithCloudSite.flags),DeleteStasues.args=[{name:"statusId",description:"Status ID."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetUsages extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(s,e){var t=(await this.parse(GetUsages))["flags"],e=(await e.statusManager.getStatusesBulk({id:[t.id],expand:"usages"}))[0];e||this.error(`There is no status with ${t.id} Id.`),this.display(t,this.responseMapper(e.usages))}responseMapper(s){const e=[];return s.forEach(s=>{e.push({projectId:s.project.id,issueTypes:null==(s=s.issueTypes)?void 0:s.join(",")})}),e}}(exports.default=GetUsages).description="Gets usages of a status.",GetUsages.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"Status ID.",required:!0})},atlascli_common_1.BaseCommandWithCloudSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getIdsFromFlagsAndArguments=void 0;const core_1=require("@oclif/core"),status_command_1=require("./status-command");function getIdsFromFlagsAndArguments(s,t){var e=[];return e.push(...s.id||[]),e.push(...Array.isArray(t)?t:"string"==typeof t?[t]:[]),e}exports.getIdsFromFlagsAndArguments=getIdsFromFlagsAndArguments;class GetAllStatuses extends status_command_1.StatusCommand{async runWithCloudSite(s,t){const{flags:a,argv:e}=await this.parse(GetAllStatuses),r=getIdsFromFlagsAndArguments(a,e);var n=r.sort().map(s=>t.statusManager.getStatusesBulk({id:[s],expand:a.expand}));await Promise.all(n).then(s=>{var t=s.map(s=>s[0]);if(s.every(s=>0<s.length))this.display(a,this.cloudResponseMapper(t));else{const e=t.map(s=>null==s?void 0:s.id);s=r.filter(s=>!e.includes(s));this.error("These statuses could not found: "+s.join(","))}})}async runWithServerSite(s,t){const{flags:e,argv:a}=await this.parse(GetAllStatuses);var r=getIdsFromFlagsAndArguments(e,a).sort().map(s=>t.statusManager.getStatus(s));await Promise.all(r).then(s=>{0<s.length&&this.display(e,this.serverResponseMapper(s),(s,t)=>{t.inconUrl=(null==(t=s.iconInfo)?void 0:t.url)||""})})}}(exports.default=GetAllStatuses).strict=!1,GetAllStatuses.description="Gets the statuses specified by one or more status IDs.",GetAllStatuses.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"Status ID.",multiple:!0})},status_command_1.StatusCommand.flags),GetAllStatuses.args=[{name:"statusId",description:"Status ID."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),status_command_1=require("./status-command"),project_util_1=require("@thestarware/atlascli-common/lib/project-util");class SearchStatuses extends status_command_1.StatusCommand{async runWithCloudSite(e,t){var s=(await this.parse(SearchStatuses))["flags"],a=(s.issueTypeId&&this.error("issueTypeId flag is only for Server."),await(0,project_util_1.getProject)(t,s.project)),a=(s.projectId=a.projectId,delete s.project,s.searchString=s.query,delete s.query,this.removeFlagsFromBase(s)),r=a["all"],a=tslib_1.__rest(a,["all"]),i=await t.statusManager.searchStatusesPaginated(a);r&&(i.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(i,a,t.statusManager.searchStatusesPaginated.bind(t.statusManager))),this.display(s,this.cloudResponseMapper(i.values))}async runWithServerSite(e,t){var s=(await this.parse(SearchStatuses))["flags"],a=await(0,project_util_1.getProject)(t,s.project),a=(s.projectIds=a.projectId,delete s.project,s.issueTypeIds=s.issueTypeId,delete s.projectId,delete s.issueTypeId,this.removeFlagsFromBase(s)),r=a["all"],a=tslib_1.__rest(a,["all"]),i=await t.statusManager.searchStatusesPaginated(a);r&&(i.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(i,a,t.statusManager.searchStatusesPaginated.bind(t.statusManager))),this.display(s,this.serverResponseMapper(i.values),(e,t)=>{t.inconUrl=(null==(t=e.iconInfo)?void 0:t.url)||""})}}(exports.default=SearchStatuses).description="Searches statuses.",SearchStatuses.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{query:core_1.Flags.string({char:"q",description:"The string that status names will be matched with."}),project:core_1.Flags.string({char:"p",description:"The project Id or key the status is part of or null for global statuses.",multiple:!0}),issueTypeId:core_1.Flags.string({char:"i",description:"The issue type Id to filter statuses. (Only server)",multiple:!0}),statusCategory:core_1.Flags.string({char:"c",description:"Category of the status to filter by.",options:["TODO","IN_PROGRESS","DONE"]}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})}),status_command_1.StatusCommand.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.StatusCommand=void 0;const atlascli_common_1=require("@thestarware/atlascli-common");class StatusCommand extends atlascli_common_1.BaseCommandWithCloudOrServerSite{isProjectScopeExists(e){return 0<e.filter(e=>Object.keys(e.scope).includes("project")).length}cloudResponseMapper(e){const o=this.isProjectScopeExists(e);return e.map(e=>{var t;return e.scopeType=(null==e?void 0:e.scope.type)||"",o&&(e.projectId=(null==(t=null==e?void 0:e.scope.project)?void 0:t.id)||""),e})}serverResponseMapper(e){return e.map(e=>(e.statusCategoryKey=null==e?void 0:e.statusCategory.key,e.statusCategory=null==e?void 0:e.statusCategory.name,e.iconInfo={url:(null==e?void 0:e.iconUrl)||""},delete e.iconUrl,e))}}exports.StatusCommand=StatusCommand;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateStatus extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(t,e){var s=(await this.parse(UpdateStatus))["flags"],a=(await e.statusManager.getStatusesBulk({id:[s.id]}))[0];a||this.error(`There is no status with ${s.id} Id.`),await e.statusManager.updateStatus(this.prepareStatusUpdateBody(a,s))}prepareStatusUpdateBody(t,e){return delete t.scope,delete t.usages,{statuses:[Object.assign(Object.assign({},t),this.removeFlagsFromBase(e))]}}}(exports.default=UpdateStatus).description="Updates a status.",UpdateStatus.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"Status Id.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the status. Must be unique."}),statusCategory:core_1.Flags.string({char:"c",description:"Category of the status to filter by.",options:["TODO","IN_PROGRESS","DONE"]}),description:core_1.Flags.string({char:"d",description:"The description of the status."})},atlascli_common_1.BaseCommandWithCloudSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class CancelTask extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(a,e){var s=(await this.parse(CancelTask))["flags"];await e.taskManager.cancelTask(s.taskId)}}(exports.default=CancelTask).description="Cancels a task.",CancelTask.flags=Object.assign({taskId:core_1.Flags.string({description:"The ID of the task.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetTask extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(s,t){var a=[];const{flags:e,argv:i}=await this.parse(GetTask);a.push(...e.taskId||[]),a.push(...Array.isArray(i)?i:"string"==typeof i?[i]:[]),0===a.length&&this.error("No task id is specified.");a=a.sort().map(s=>t.taskManager.getTask(s));await Promise.all(a).then(s=>{0<s.length&&this.display(e,s)})}}(exports.default=GetTask).strict=!1,GetTask.description="Gets the status of a long-running asynchronous task.",GetTask.flags=Object.assign({taskId:core_1.Flags.string({char:"i",description:"The ID of the task.",multiple:!0})},atlascli_common_1.CommandWithSite.flags),GetTask.args=[{name:"taskId",description:"The ID of the task."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetAllTimeTrackingProvider extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,i){var a=(await this.parse(GetAllTimeTrackingProvider))["flags"],i=await i.timeTrackingManager.getAllTimeTrackingProviders();this.display(a,i)}}(exports.default=GetAllTimeTrackingProvider).description="Returns all time tracking providers. By default, Jira only has one time tracking provider: JIRA provided time tracking.",GetAllTimeTrackingProvider.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetAllTimeTrackingSetting extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(t,e){var i=(await this.parse(GetAllTimeTrackingSetting))["flags"],e=await e.timeTrackingManager.getAllTimeTrackingSettings();this.display(i,e)}}(exports.default=GetAllTimeTrackingSetting).description="Returns the time tracking settings. This includes settings such as the time format, default time unit, and others.",GetAllTimeTrackingSetting.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetTimeTrackingProvider extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var i=(await this.parse(GetTimeTrackingProvider))["flags"],t=await t.timeTrackingManager.getTimeTrackingProvider();this.display(i,t)}}(exports.default=GetTimeTrackingProvider).description="Returns the time tracking provider that is currently selected. Note that if time tracking is disabled, then a successful but empty response is returned.",GetTimeTrackingProvider.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class SelectTimeTrackingProvider extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var i=(await this.parse(SelectTimeTrackingProvider))["flags"];await r.timeTrackingManager.selectTimeTrackingProvider(this.removeFlagsFromBase(i))}}(exports.default=SelectTimeTrackingProvider).description="Selects a time tracking provider.",SelectTimeTrackingProvider.flags=Object.assign({key:core_1.Flags.string({char:"k",description:"The key for the time tracking provider. For example, JIRA.",required:!0}),name:core_1.Flags.string({description:"The name of the time tracking provider. For example, JIRA provided time tracking."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class SetTimeTrackingSetting extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var i=(await this.parse(SetTimeTrackingSetting))["flags"];await t.timeTrackingManager.setTimeTrackingSettings(this.removeFlagsFromBase(i))}}(exports.default=SetTimeTrackingSetting).description="Sets the time tracking settings.",SetTimeTrackingSetting.flags=Object.assign({workingHoursPerDay:core_1.Flags.integer({char:"H",description:"The number of hours in a working day. Example usage -h=12",required:!0}),workingDaysPerWeek:core_1.Flags.integer({char:"d",description:"The number of days in a working week. Example usage -d=13",required:!0}),timeFormat:core_1.Flags.string({char:"t",description:"The format that will appear on an issue's Time Spent field. Example usage: -t=pretty ",required:!0,options:["pretty","days","hours"]}),defaultUnit:core_1.Flags.string({char:"u",description:"The default unit of time applied to logged time. Example usage -u=day",required:!0,options:["minute","hour","week","day"]})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class AddUserToApplication extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(e,a){var i=(await this.parse(AddUserToApplication))["flags"],r=[];if(!i.applicationKey)return this.error("applicationKey is required"),1;for(const s of i.applicationKey)r.push(a.userManager.addUserToApplication(i.user,s));await Promise.all(r)}}(exports.default=AddUserToApplication).description="Returns a user.",AddUserToApplication.flags=Object.assign(Object.assign({user:core_1.Flags.string({required:!0,description:"The username."})},(0,atlascli_common_1.getApplicationKeyFlag)()),atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class ChangePassword extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(s,e){var a=(await this.parse(ChangePassword))["flags"],r=a.password||await this.promptUser("password","password","New password?");if(r!==(a.password||await this.promptUser("password","password","Re-enter new password?")))throw new Error("Two passwords does not match!");await e.userManager.changeUserPassword(r,a.username,a.userKey)}}(exports.default=ChangePassword).description="Modify user password.",ChangePassword.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getUserNameAndKeyFlags)()),{password:core_1.Flags.string({required:!1,description:"New password for the user. Requires administration permission."})}),atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("./user-command");class UserCreate extends user_command_1.UserCommand{async runWithServerSite(e,r){var s=(await this.parse(UserCreate))["flags"];if(!s.username)throw new Error("username is required for server!");var a={displayName:s.displayName,emailAddress:s.emailAddress,notification:s.notification,password:s.password,name:s.username,applicationKeys:[]},r=(this.removeFlagsFromBase(a),await r.userManager.createUser(a,!0,!0));this.dislayUser(s,r)}async runWithCloudSite(e,r){var s=(await this.parse(UserCreate))["flags"],a={products:s.products||[],displayName:s.displayName,emailAddress:s.emailAddress,notification:s.notification,password:s.password},r=await r.userManager.createUser(a);this.dislayUser(s,r)}}(exports.default=UserCreate).description="Creates a user.",UserCreate.commonUserUpdateCreateFlags={products:core_1.Flags.string({multiple:!0,description:"Products the new user has access to. Valid products are: jira-core, jira-servicedesk, jira-product-discovery, jira-software. If left empty, the user will get default product access. To create a user without product access, set this field to be an empty array.",options:["jira-core","jira-servicedesk","jira-product-discovery","jira-software"]}),displayName:core_1.Flags.string({required:!0,description:"The display name for the user. "}),emailAddress:core_1.Flags.string({required:!0,description:"The email address for the user. "}),notification:core_1.Flags.boolean({allowNo:!0,default:!1,description:"Sends the user an email confirmation that they have been added to Jira. Default is false. "}),password:core_1.Flags.string({description:"A password for the user. If a password is not set, a random password is generated. "}),username:core_1.Flags.string({description:"The username. Only applicable to server and required."})},UserCreate.flags=Object.assign(Object.assign({},UserCreate.commonUserUpdateCreateFlags),atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("./user-command"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class UserDelete extends user_command_1.UserCommand{async runWithServerSite(e,r){var s=(await this.parse(UserDelete))["flags"],s=tslib_1.__rest(this.removeFlagsFromBase(s),[]),a=await(0,user_util_1.getUser)(r,s.user);s.user=a.username,await r.userManager.deleteUser(s.user,s.userKey)}async runWithCloudSite(e,r){var s=(await this.parse(UserDelete))["flags"],s=await(0,user_util_1.getUser)(r,s.user);await r.userManager.deleteUser(s.accountId)}}(exports.default=UserDelete).description="Deletes a user.",UserDelete.flags=Object.assign({user:core_1.Flags.string({description:"Username for Server/DC and accountId or username or email for Cloud",required:!0}),userKey:core_1.Flags.string({exclusive:["user"],description:"The user key. Only applicable to server."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +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_command_1=require("./user-command"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class GetAll extends user_command_1.UserCommand{async runWithServerSite(){throw new Error("This command is only applicable to Cloud!")}async runWithCloudSite(e,s){var a=(await this.parse(GetAll))["flags"],t=this.removeFlagsFromBase(a),r=t["all"],t=tslib_1.__rest(t,["all"]),l=await(0,user_util_1.getUser)(s,t.user);t.accountId=l.accountId,delete t.user,t.accountId?(l=await s.userManager.getUsersByAccountId(t),r&&(l.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(l,t,s.userManager.getUsersByAccountId.bind(s.userManager))),this.dislayUsers(a,l.values)):(r=await s.userManager.getUsersDefault(a.startAt,a.maxResults),this.dislayUsers(a,r))}}(exports.default=GetAll).description="Returns a paginated list of the users. If you specify one or more accountId only those users will be returned.",GetAll.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{user:core_1.Flags.string({required:!1,multiple:!0,description:"The account ID or email or username of the user, which uniquely identifies the user across all Atlassian products. Only applicable to cloud."}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})}),atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("./user-command"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class GetDefaultIssueTableColumns extends user_command_1.UserCommand{async runWithServerSite(e,s){var{flags:r,args:a}=await this.parse(GetDefaultIssueTableColumns),t=tslib_1.__rest(this.removeFlagsFromBase(r),[]),u=await(0,user_util_1.getUser)(s,t.user),l=await(0,user_util_1.getUser)(s,a.user),u=(t.user=u.username,a.user=l.username,await s.userManager.getDefaultIssueTableColumns(t.username||a.user));this.display(r,u)}async runWithCloudSite(e,s){var{flags:r,args:a}=await this.parse(GetDefaultIssueTableColumns),t=tslib_1.__rest(this.removeFlagsFromBase(r),[]),u=await(0,user_util_1.getUser)(s,t.user),l=await(0,user_util_1.getUser)(s,a.user),u=(t.user=u.accountId,a.user=l.accountId,await s.userManager.getDefaultIssueTableColumns(t.user||a.user));this.display(r,u)}}(exports.default=GetDefaultIssueTableColumns).description="Returns the default issue table columns for the given user. Admin permission will be required to get columns for a user other than the currently logged in user.",GetDefaultIssueTableColumns.flags=Object.assign({user:core_1.Flags.string({multiple:!0,description:"Username for Server/DC and accountId or username or email for Cloud",required:!1})},atlascli_common_1.CommandWithSite.flags),GetDefaultIssueTableColumns.args=[{name:"user",required:!1,description:"Username or accountId or email."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class GetEmail extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var{flags:a,args:t}=await this.parse(GetEmail),i=tslib_1.__rest(this.removeFlagsFromBase(a),[]),i=(await(0,user_util_1.getUser)(s,i.user||t.user)).accountId,t=await s.userManager.getUserEmail(i);this.display(a,[t])}}(exports.default=GetEmail).description="Returns a user's email address.",GetEmail.flags=Object.assign({user:core_1.Flags.string({multiple:!0,description:"AccountId or username or email for Cloud."})},atlascli_common_1.CommandWithSite.flags),GetEmail.args=[{name:"user",description:atlascli_common_1.accountIdFlagDescription}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),core_1=require("@oclif/core");class GetUserGroups extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var{flags:r,args:t}=await this.parse(GetUserGroups),a=tslib_1.__rest(this.removeFlagsFromBase(r),[]),a=(await(0,user_util_1.getUser)(s,a.user||t.user)).accountId,t=await s.userManager.getUserGroups(a);this.display(r,t)}}(exports.default=GetUserGroups).description="Returns the groups to which a user belongs.",GetUserGroups.flags=Object.assign({user:core_1.Flags.string({multiple:!0,description:"AccountId or username or email for Cloud."})},atlascli_common_1.CommandWithSite.flags),GetUserGroups.args=[{name:"user",description:atlascli_common_1.accountIdFlagDescription}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("./user-command"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),core_1=require("@oclif/core");class UserGet extends user_command_1.UserCommand{async runWithServerSite(e,s){var r=(await this.parse(UserGet))["flags"],s=await s.userManager.getUser(r.username,r.userKey,!0,!0);return this.dislayUser(r,s),{}}async runWithCloudSite(e,s){var r=[];const{flags:t,argv:a}=await this.parse(UserGet);var i=tslib_1.__rest(this.removeFlagsFromBase(t),[]),i=await(0,user_util_1.getUser)(s,i.user),i=(r.push(...i.accountId||[]),r.push(...Array.isArray(a)?a:"string"==typeof a?[a]:[]),0===r.length&&this.error("No account id is specified."),r.map(e=>s.userManager.getUser(e,!0,!0)));await Promise.all(i).then(e=>{0<e.length&&this.dislayUsers(t,e)})}}(exports.default=UserGet).strict=!1,UserGet.description="Returns a user.",UserGet.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getUserFlags)()),{user:core_1.Flags.string({multiple:!0,char:"u",description:"The account ID or email or username of the user, which uniquely identifies the user across all Atlassian products. Only applicable to cloud."})}),atlascli_common_1.CommandWithSite.flags),UserGet.args=[{name:"user",description:"The account ID or username or email of the user, which uniquely identifies the user across all Atlassian products. Only applicable to cloud."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class RemoveUserFromApplication extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(e,r){var a=(await this.parse(RemoveUserFromApplication))["flags"];if(!a.applicationKey)return this.error("applicationKey is required"),1;var i=[];for(const o of a.applicationKey)i.push(r.userManager.removeUserFromApplication(a.username,o));await Promise.all(i)}}(exports.default=RemoveUserFromApplication).description="Returns a user.",RemoveUserFromApplication.flags=Object.assign(Object.assign({username:core_1.Flags.string({required:!0,description:"The username."})},(0,atlascli_common_1.getApplicationKeyFlag)()),atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("./user-command"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class ResetDefaultIssueTableColumns extends user_command_1.UserCommand{async runWithServerSite(e,s){var{flags:r,args:t}=await this.parse(ResetDefaultIssueTableColumns),r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),r=(await(0,user_util_1.getUser)(s,r.user||t.user)).username;s.userManager.resetDefaultIssueTableColumns(r)}async runWithCloudSite(e,s){var{flags:r,args:t}=await this.parse(ResetDefaultIssueTableColumns),r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),r=(await(0,user_util_1.getUser)(s,r.user||t.user)).accountId;s.userManager.resetDefaultIssueTableColumns(r)}}(exports.default=ResetDefaultIssueTableColumns).description="Reset the default columns for the given user to the system default. Admin permission will be required to get columns for a user other than the currently logged in user.",ResetDefaultIssueTableColumns.flags=Object.assign({user:core_1.Flags.string({multiple:!0,description:"Username for Server/DC and accountId or username or email for Cloud",required:!1})},atlascli_common_1.CommandWithSite.flags),ResetDefaultIssueTableColumns.args=[{name:"user",required:!1,description:"Username or accountId"}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("./user-command"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class SetDefaultIssueTableColumns extends user_command_1.UserCommand{async runWithServerSite(e,s){var r=(await this.parse(SetDefaultIssueTableColumns))["flags"],r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),t=await(0,user_util_1.getUser)(s,r.user);r.user=t.username,await s.userManager.setDefaultIssueTableColumns(r.columnKey,r.user)}async runWithCloudSite(e,s){var r=(await this.parse(SetDefaultIssueTableColumns))["flags"],r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),t=await(0,user_util_1.getUser)(s,r.user);r.user=t.accountId,await s.userManager.setDefaultIssueTableColumns(r.columnKey,r.user)}}(exports.default=SetDefaultIssueTableColumns).description="Sets the default issue table columns. Admin permission will be required to set columns for a user other than the currently logged in user.",SetDefaultIssueTableColumns.flags=Object.assign({user:core_1.Flags.string({multiple:!0,description:"Username for Server/DC and accountId or username or email for Cloud",required:!1}),columnKey:core_1.Flags.string({multiple:!0,char:"c",description:"The key of column. You can repeat this flag for setting multiple columns.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("./user-command");class Create extends user_command_1.UserCommand{async runWithServerSite(e,r){var a=(await this.parse(Create))["flags"];if(!a.username)throw new Error("username is required for server!");var s={displayName:a.displayName,emailAddress:a.emailAddress,notification:a.notification,password:a.password,active:a.active,name:a.username},r=(this.removeFlagsFromBase(s),await r.userManager.updateUser(s,void 0,a.userKey));this.dislayUser(a,r)}async runWithCloudSite(){throw new Error("This command is only applicable to server!")}}(exports.default=Create).description="Updates a user.",Create.flags=Object.assign(Object.assign({displayName:core_1.Flags.string({required:!0,description:"The display name for the user. "}),emailAddress:core_1.Flags.string({required:!0,description:"The email address for the user. "}),notification:core_1.Flags.boolean({allowNo:!0,default:!1,description:"Sends the user an email confirmation that they have been added to Jira. Default is false. "}),password:core_1.Flags.string({description:"A password for the user. If a password is not set, a random password is generated. "}),username:core_1.Flags.string({description:"The username. Only applicable to server and required."}),userKey:core_1.Flags.string({description:"The userKey. Only applicable to server and required."}),active:core_1.Flags.boolean({allowNo:!0,default:!0,description:"Whether the user is active or inactive. Default true. Only applicable to server."})},(0,atlascli_common_1.getApplicationKeyFlag)()),atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.UserCommand=void 0;const tslib_1=require("tslib"),base_command_with_cloud_or_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site"));class UserCommand extends base_command_with_cloud_or_server_site_1.default{dislayUser(e,i){this.display(e,[i],(e,i)=>{var s;i.applicationRolesOneLine=null==(s=null==(s=e.applicationRoles)?void 0:s.items)?void 0:s.map(e=>e.name).join(","),i.groupsOneLine=null==(i=null==(s=e.groups)?void 0:s.items)?void 0:i.map(e=>e.name).join(",")})}dislayUsers(e,i){this.display(e,i,(e,i)=>{var s;i.applicationRolesOneLine=null==(s=null==(s=e.applicationRoles)?void 0:s.items)?void 0:s.map(e=>e.name).join(","),i.groupsOneLine=null==(i=null==(s=e.groups)?void 0:s.items)?void 0:i.map(e=>e.name).join(",")})}}exports.UserCommand=UserCommand;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),project_1=require("../project/project"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class IssuePropertyDelete extends project_1.ProjectCommand{async runWithSite(e){var r=(await this.parse(IssuePropertyDelete))["flags"],s=this.getJira(e,r),r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),t=await(0,user_util_1.getUser)(s,r.user);if(r.accountId=t.accountId,r.username=t.username,delete r.user,e.cloud){if(!r.accountId)throw new Error("accountId is required for cloud");await s.userPropertyManager.deleteUserProperty(r.key,r.accountId)}else await s.userPropertyManager.deleteUserProperty(r.key,r.username,r.userKey)}}(exports.default=IssuePropertyDelete).description="Deletes a property from a user.",IssuePropertyDelete.flags=Object.assign({key:core_1.Flags.string({required:!0,char:"k",description:"The key of the user's property."}),userKey:core_1.Flags.string({exclusive:["user"],description:"The user key. Only applicable to server."}),user:core_1.Flags.string({char:"u",description:"Username for Server/DC and accountId or username or email for Cloud"})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),project_1=require("../project/project"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class UserPropertyGetAllKeys extends project_1.ProjectCommand{async runWithSite(e){var r=(await this.parse(UserPropertyGetAllKeys))["flags"],s=this.getJira(e,r),t=tslib_1.__rest(this.removeFlagsFromBase(r),[]),a=await(0,user_util_1.getUser)(s,t.user);t.accountId=a.accountId,t.username=a.username,delete t.user;let o;if(e.cloud){if(!t.accountId)throw new Error("--accountId is required for Cloud!");o=await s.userPropertyManager.getUserPropertyKeys(t.accountId)}else o=await s.userPropertyManager.getUserPropertyKeys(t.username,t.userKey);this.display(r,o.keys)}}(exports.default=UserPropertyGetAllKeys).description="Returns the keys of all properties for a user.",UserPropertyGetAllKeys.flags=Object.assign({userKey:core_1.Flags.string({exclusive:["user"],description:"The user key. Only applicable to server."}),user:core_1.Flags.string({char:"u",description:"Username for Server/DC and accountId or username or email for Cloud"})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),project_1=require("../project/project"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class GetUserProperty extends project_1.ProjectCommand{async runWithSite(e){var r=(await this.parse(GetUserProperty))["flags"],t=this.getJira(e,r);let s;var o=tslib_1.__rest(this.removeFlagsFromBase(r),[]),a=await(0,user_util_1.getUser)(t,o.user);if(o.accountId=a.accountId,o.username=a.username,delete o.user,e.cloud){if(!o.accountId)throw new Error("accountId is required for cloud");s=await t.userPropertyManager.getUserProperty(o.key,o.accountId)}else s=await t.userPropertyManager.getUserProperty(o.key,o.username,o.userKey);this.display(r,s)}}(exports.default=GetUserProperty).description="Returns the value of a user's property. If no property key is provided Get user property keys is called.",GetUserProperty.flags=Object.assign({key:core_1.Flags.string({required:!0,char:"k",description:"The key of the user's property."}),userKey:core_1.Flags.string({exclusive:["user"],description:"The user key. Only applicable to server."}),user:core_1.Flags.string({char:"u",description:"Username for Server/DC and accountId or username or email for Cloud"})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),project_1=require("../project/project"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class Get extends project_1.ProjectCommand{async runWithSite(e){var{flags:r,args:s}=await this.parse(Get),t=this.getJira(e,r),s=r.value||s.value,r=tslib_1.__rest(this.removeFlagsFromBase(r),[]),a=await(0,user_util_1.getUser)(t,r.user);if(r.accountId=a.accountId,r.username=a.username,delete r.user,e.cloud){if(!r.accountId)throw new Error("accountId is required for cloud");await t.userPropertyManager.setUserProperty(r.key,s,r.accountId)}else await t.userPropertyManager.setUserProperty(r.key,r.value,r.username,r.userKey)}}(exports.default=Get).description="Sets the value of a user's property.",Get.flags=Object.assign({key:core_1.Flags.string({required:!0,char:"k",description:"The key of the user's property."}),value:core_1.Flags.string({required:!0,char:"v",description:"The value of the user's property."}),userKey:core_1.Flags.string({exclusive:["user"],description:"The user key. Only applicable to server."}),user:core_1.Flags.string({char:"u",description:"Username for Server/DC and accountId or username or email for Cloud"})},atlascli_common_1.CommandWithSite.flags),Get.args=[{name:"value",description:"The value of the user's property."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("../user/user-command");class FindAccountsWithQuery extends user_command_1.UserCommand{async runWithCloudSite(e,s){var a=(await this.parse(FindAccountsWithQuery))["flags"],r=this.removeFlagsFromBase(this.modifyQuery(a)),t=r["all"],r=tslib_1.__rest(r,["all"]),i=await s.userSearchManager.findUserAccountIDsWithQuery(r);t&&(i.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(i,r,s.userSearchManager.findUserAccountIDsWithQuery.bind(s.userManager))),this.display(a,i.values.map(e=>({accounId:e.accountId})))}async runWithServerSite(e,s){throw new Error("This command is only available for Jira Cloud!")}modifyQuery(e){return e.query=e.search,delete e.search,e}}(exports.default=FindAccountsWithQuery).description="Finds account IDs with a structured query.",FindAccountsWithQuery.flags=Object.assign(Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{search:core_1.Flags.string({required:!0,description:"The search string. Ex: is assignee of PROJ"})}),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("../user/user-command");class FindAssignableUsersBulk extends user_command_1.UserCommand{async runWithSiteImp(s,e){var a=(await this.parse(FindAssignableUsersBulk))["flags"],e=await e.userSearchManager.findAssignableUsersBulk(a.project,a.search,a.startAt,a.maxResults);this.dislayUsers(a,e)}async runWithServerSite(s,e){await this.runWithSiteImp(s,e)}async runWithCloudSite(s,e){await this.runWithSiteImp(s,e)}}(exports.default=FindAssignableUsersBulk).description="Returns a list of users that match the search string and can be assigned issues for all the given projects.",FindAssignableUsersBulk.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{search:core_1.Flags.string({required:!1,description:"The search string."}),project:core_1.Flags.string({required:!0,multiple:!0,description:"The key of the projects we are finding assignable users for."})}),atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),user_command_1=require("../user/user-command");class FindAssignableUsersBulk extends user_command_1.UserCommand{async runWithSiteImp(e){var s=(await this.parse(FindAssignableUsersBulk))["flags"],e=await e.userSearchManager.findAssignableUsers(s.issue,s.project,s.actionDescriptorId,s.search,s.startAt,s.maxResults);this.dislayUsers(s,e)}async runWithServerSite(e,s){await this.runWithSiteImp(s)}async runWithCloudSite(e,s){await this.runWithSiteImp(s)}}(exports.default=FindAssignableUsersBulk).description="Returns a list of users that match the search string. Call with an issue key when a list of assignable users is retrieved for editing. For create only a project key should be supplied.",FindAssignableUsersBulk.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{search:core_1.Flags.string({required:!1,description:"The search string."}),actionDescriptorId:core_1.Flags.integer({description:"The ID of the workflow transition."}),project:core_1.Flags.string({exclusive:["issue"],description:"The key of the projects we are finding assignable users for."}),issue:core_1.Flags.string({exclusive:["project"],description:"The issue key for the issue being edited we need to find assignable users for."})}),atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("../user/user-command");class Find extends user_command_1.UserCommand{async runWithCloudSite(e,s){var r=(await this.parse(Find))["flags"],s=await s.userSearchManager.findUsers(r.search,r.property,r.startAt,r.maxResults);this.dislayUsers(r,s)}async runWithServerSite(e,s){var r=(await this.parse(Find))["flags"],s=await s.userSearchManager.findUsers(r.search,r.includeActive,r.includeInActive,r.startAt,r.maxResults);this.dislayUsers(r,s)}}(exports.default=Find).description="Returns a list of users that match the search string. This resource cannot be accessed anonymously.",Find.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{search:core_1.Flags.string({required:!0,description:"The search string."}),property:core_1.Flags.string({required:!1,description:'Applicable to only Cloud. A query string used to search properties. To search for the value of nested from {"something":{"nested":1,"other":2}} use thepropertykey.something.nested=1.'}),includeActive:core_1.Flags.boolean({allowNo:!0,required:!1,default:!0,description:"Applicable to only Server and DC. If true, then active users are included in the results (default true)."}),includeInActive:core_1.Flags.boolean({allowNo:!0,required:!1,default:!1,description:"Applicable to only Server and DC. If true, then inactive users are included in the results (default false)."})}),atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("../user/user-command");class FindUsersWithPermission extends user_command_1.UserCommand{async runWithSiteImp(e,s){var i=(await this.parse(FindUsersWithPermission))["flags"];if(!i.project&&!i.issue)throw new Error("You should either speciy projectKey or issueKey!");s=await s.userSearchManager.findUsersWithAllPermissions(i.permission,i.search,i.issue,i.project,i.startAt,i.maxResults);this.dislayUsers(i,s)}async runWithCloudSite(e,s){await this.runWithSiteImp(e,s)}async runWithServerSite(e,s){await this.runWithSiteImp(e,s)}}(exports.default=FindUsersWithPermission).description="Returns a list of active users that match the search string and have all specified permissions for the project or issue.",FindUsersWithPermission.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{search:core_1.Flags.string({required:!1,description:"The search string."}),permission:core_1.Flags.string({required:!0,char:"p",multiple:!0,description:"Permission key. This flag can be repeated."}),issue:core_1.Flags.string({char:"i",description:"The issue key for the issue for which returned users have specified permissions."}),project:core_1.Flags.string({description:"The optional project key to search for users with if no issueKey is supplied."})}),atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),user_command_1=require("../user/user-command");class FindUsersWithQuery extends user_command_1.UserCommand{async runWithCloudSite(e,s){var r=(await this.parse(FindUsersWithQuery))["flags"],a=this.removeFlagsFromBase(this.modifyQuery(r)),t=a["all"],a=tslib_1.__rest(a,["all"]),i=await s.userSearchManager.findUsersWithQuery(a);t&&(i.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(i,a,s.userSearchManager.findUsersWithQuery.bind(s.userManager))),this.dislayUsers(r,i.values)}async runWithServerSite(e,s){throw new Error("This command is only available for Jira Cloud!")}modifyQuery(e){return e.query=e.search,delete e.search,e}}(exports.default=FindUsersWithQuery).description="Finds users with a structured query and returns a paginated list of user details.",FindUsersWithQuery.flags=Object.assign(Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{search:core_1.Flags.string({required:!0,description:"The search string. Ex: is assignee of PROJ"})}),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class CreateWorkflow extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(o,e){var{flags:r,args:a}=await this.parse(CreateWorkflow);let t=a.workflowBody;if(void 0===t&&(!(t=await(0,atlascli_common_1.readStdin)())||0===t.length))throw new Error("You should provide a valid JSON for the workflow! You can get more details in https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows/#api-rest-api-3-workflow-post");a=await e.workflowManager.createWorkflow(JSON.parse(t));r.extended=!0,this.display(r,this.modifyResponseForDisplay(a))}modifyResponseForDisplay(o){var e=[],r={};return r.entityId=o.entityId,r.name=o.name,e.push(r),e}}(exports.default=CreateWorkflow).description="Creates workflow.",CreateWorkflow.flags=Object.assign({workflowBody:core_1.Flags.string({description:"Workflow creation request in JSON format. You can get more details in https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows/#api-rest-api-3-workflow-post"})},atlascli_common_1.CommandWithSite.flags),CreateWorkflow.args=[{name:"workflowBody",description:"Workflow creation request in JSON format."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteInactiveWorkflow extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var o=(await this.parse(DeleteInactiveWorkflow))["flags"];await t.workflowManager.deleteInactiveWorkflow(o.entityId)}}(exports.default=DeleteInactiveWorkflow).description="Deletes inactive workflow.",DeleteInactiveWorkflow.flags=Object.assign({entityId:core_1.Flags.string({char:"i",description:"The entity ID of the workflow.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),get_transitions_1=tslib_1.__importDefault(require("./get-transitions"));class GetProjects extends get_transitions_1.default{async runWithCloudSite(t,e){var s=(await this.parse(GetProjects))["flags"],e=await e.workflowManager.searchWorkflows({workflowName:[s.workflowName],expand:"projects"});this.display(s,e.values[0].projects)}}(exports.default=GetProjects).description="Gets information about the projects the workflow is assigned to, through workflow schemes.",GetProjects.flags=Object.assign({},get_transitions_1.default.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),get_transitions_1=tslib_1.__importDefault(require("./get-transitions"));class GetSchemes extends get_transitions_1.default{async runWithCloudSite(e,s){var t=(await this.parse(GetSchemes))["flags"],s=await s.workflowManager.searchWorkflows({workflowName:[t.workflowName],expand:"schemes"});this.display(t,s.values[0].schemes)}}(exports.default=GetSchemes).description="Gets information about the workflow schemes the workflow is assigned to.",GetSchemes.flags=Object.assign({},get_transitions_1.default.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),get_transitions_1=tslib_1.__importDefault(require("./get-transitions"));class GetStatusesProperties extends get_transitions_1.default{async runWithCloudSite(t,s){var e=(await this.parse(GetStatusesProperties))["flags"],s=await s.workflowManager.searchWorkflows({workflowName:[e.workflowName],expand:"statuses.properties"});this.display(e,this.modifyStatusForDisplay(s.values[0].statuses,e.statusIds))}modifyStatusForDisplay(t,s){const e=[];return(t=s?t.filter(t=>s.split(",").includes(t.id)):t).forEach(t=>{var s=Object.assign({},t);s.properties=JSON.stringify(t.properties),e.push(s)}),e}}(exports.default=GetStatusesProperties).description="For each workflow status, gets information about its properties.",GetStatusesProperties.flags=Object.assign({statusIds:core_1.Flags.string({description:"Workflow's status Id. You can provide multiple Ids by separeting them with comma to filter the statuses.\nExample usage: statusIds=1,2,4"})},get_transitions_1.default.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),get_transitions_1=tslib_1.__importDefault(require("./get-transitions"));class GetStatuses extends get_transitions_1.default{async runWithCloudSite(t,s){var e=(await this.parse(GetStatuses))["flags"],s=await s.workflowManager.searchWorkflows({workflowName:[e.workflowName],expand:"statuses"});this.display(e,s.values[0].statuses)}}(exports.default=GetStatuses).description="Gets information about the statuses inside the workflow",GetStatuses.flags=Object.assign({},get_transitions_1.default.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetTranstionRules extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(s,t){var o=(await this.parse(GetTranstionRules))["flags"],t=await t.workflowManager.searchWorkflows({expand:"transitions.rules"});this.display(o,this.modifyResponseForDisplay(t.values,o))}modifyResponseForDisplay(s,e){const i=[];return e.transitionIds&&(s[0].transitions=s[0].transitions.filter(s=>e.transitionIds.split(",").includes(s.id))),s[0].transitions.forEach(t=>{const o=t.id;Object.keys(t.rules).forEach(s=>{if(s===e.ruleType)if("conditionsTree"===e.ruleType){if(e.json||e.yaml||e.output||(e.json=!0),"csv"===e.output)return this.error("conditionsTree rule type can not be shown in tabular or csv format. It can only be shown in JSON or YAML format.");i.push(Object.assign({transitionId:o},t.rules[s]))}else t.rules[s].forEach(s=>{var t={};t.transitionId=o,t.type=s.type,t.configuration=JSON.stringify(s.configuration)||"",i.push(t)})})}),i}}(exports.default=GetTranstionRules).description="Gets given workflow's transition rules",GetTranstionRules.flags=Object.assign({workflowName:core_1.Flags.string({char:"n",description:"The name of the workflow that the transition rules belongs to."}),transitionIds:core_1.Flags.string({description:"Workflow's transition Id. You can provide multiple Ids by separeting them with comma to filter the transitions.\nExample usage: transitionIds=1,2,4"}),ruleType:core_1.Flags.string({options:["conditionsTree","validators","postFunctions"]})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetTransitions extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(o,s){var e=(await this.parse(GetTransitions))["flags"],s=await s.workflowManager.searchWorkflows({workflowName:[e.workflowName],expand:"transitions"});this.display(e,this.modifyResponseForDisplay(s.values[0]))}modifyResponseForDisplay(o){const s=[];return o.transitions.forEach(o=>{s.push({id:o.id,name:o.name,type:o.type,from:o.from.join(","),to:o.to,description:o.description})}),s}}(exports.default=GetTransitions).description="Gets given workflow's transitions",GetTransitions.flags=Object.assign({workflowName:core_1.Flags.string({char:"n",description:"The name of the workflow that the transitions belongs to.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +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 SearchWorkflows extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,a){var o=(await this.parse(SearchWorkflows))["flags"],r=this.removeFlagsFromBase(o),t=r["all"],r=tslib_1.__rest(r,["all"]),s=(this.modifySearchQuery(r),await a.workflowManager.searchWorkflows(r));t&&(s.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(s,r,a.workflowManager.searchWorkflows.bind(a.workflowManager))),this.display(o,this.modifyWorkflowCloudResponse(s.values,o))}async runWithServerSite(e,a){var o=(await this.parse(SearchWorkflows))["flags"],r=this.removeFlagsFromBase(o),a=await a.workflowManager.getAllWorkflows(r);this.display(o,a,(e,a)=>{a.lastModifiedDate=e.lastModifiedDate||"",a.lastModifiedUser=e.lastModifiedUser||""})}modifyWorkflowCloudResponse(e,t){const s=[];return e.forEach(e=>{var a={},{entityId:o,name:r}=e.id;a.id=o,a.name=r,a.description=e.description,this.addExpandInfo(e,a,t.expand),a.created=e.created,a.updated=e.updated,s.push(a)}),s}addExpandInfo(e,a,o){switch(o){case"schemes":a.canEdit=e.operations.canEdit||"",a.canDelete=e.operations.canDelete||"";break;case"default":a.isDefault=e.isDefault;break;case"hasDraftWorkflow":a.hasDraftWorkflow=e.hasDraftWorkflow}}modifySearchQuery(e){e.queryString=e.query,delete e.query}}(exports.default=SearchWorkflows).description="Searches all workflows.",SearchWorkflows.flags=Object.assign(Object.assign(Object.assign(Object.assign({workflowName:core_1.Flags.string({char:"n",description:"The name of a workflow to return. Multiple values can be provided by repeating this flag\nNote: Providing multiple names feature is only available for cloud.",multiple:!0}),expand:core_1.Flags.string({description:"Use expand to include additional information in the response.\nOptions:\n\t•`hasDraftWorkflow` For each workflow, returns information about whether the workflow has a draft version.\n\t•`operations` For each workflow, returns information about the actions that can be undertaken on the workflow.\n\t•`default` For each workflow, returns information about whether this is the default workflow."})},(0,atlascli_common_1.getSearchFlags)()),{orderBy:core_1.Flags.string({options:["id","created","updated"]}),isActive:core_1.Flags.boolean({description:"Filters active and inactive workflows.",allowNo:!0})}),atlascli_common_1.CommandWithSite.flags),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),atlascli_common_2=require("@thestarware/atlascli-common");class CreateWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:o,args:a}=await this.parse(CreateWorkflow),e=this.getJira(e,o),r=this.removeFlagsFromBase(o);o.show?this.showSampleJSONBody(o):await this.createWorkflowScheme(r,a,e)}async createWorkflowScheme(e,o,a){var r=Object.values(e).every(e=>void 0===e);let t=o.issueLinkBody;if(r&&void 0===t){if(!(t=JSON.parse(await(0,atlascli_common_1.readStdin)()))||0===t.length)throw new Error("You should provide a valid JSON for the workflow! You can use `jira workflow-scheme:create --show` command to generate a valid JSON body.")}else t=e;o=await a.workflowSchemeManager.createWorkflowScheme(t);this.display(e,o)}showSampleJSONBody(e){e.json=!0,this.display(e,{name:"Example workflow scheme",description:"The description of the example workflow scheme.",defaultWorkflow:"jira",issueTypeMappings:{1e4:"jira",10001:"Builds Workflow"},updateDraftIfNeeded:!0})}}(exports.default=CreateWorkflow).description="Creates workflow scheme. You can also provide request body as JSON using STDIN without specifying any flags.",CreateWorkflow.flags=Object.assign({name:core_1.Flags.string({char:"n",description:"The name of the workflow scheme. (Required)"}),description:core_1.Flags.string({description:"The description of the workflow scheme."}),issueTypeMappings:core_1.Flags.string({description:"The issue type to workflow mappings, where each mapping is an issue type ID and workflow name pair. Note that an issue type can only be mapped to one workflow in a workflow scheme.\nExample usage: --issueTypeMappings=issueTypeId=WorkflowName,issueTypeId2=WorkflowName2",parse:e=>(0,atlascli_common_2.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(e)[0]}),updateDraftIfNeeded:core_1.Flags.boolean({description:`Whether to create or update a draft workflow scheme when updating an active workflow scheme. An active workflow scheme is a workflow scheme that is used by at least one project. The following examples show how this property works:
|
|
2
|
+
|
|
3
|
+
• Update an active workflow scheme with updateDraftIfNeeded set to true: If a draft workflow scheme exists, it is updated. Otherwise, a draft workflow scheme is created.
|
|
4
|
+
• Update an active workflow scheme with updateDraftIfNeeded set to false: An error is returned, as active workflow schemes cannot be updated.
|
|
5
|
+
• Update an inactive workflow scheme with updateDraftIfNeeded set to true: The workflow scheme is updated, as inactive workflow schemes do not require drafts to update.`}),defaultWorkflow:core_1.Flags.string({description:"The name of the default workflow for the workflow scheme."}),show:core_1.Flags.boolean({description:"Prepare a sample JSON output for workflow scheme creation."})},atlascli_common_1.CommandWithSite.flags),CreateWorkflow.args=[{name:"WorkflowSchemeBody",description:"Workflow scheme creation request in JSON format."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteDefaultWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteDefaultWorkflow))["flags"],e=await this.getJira(e,t).workflowSchemeManager.deleteDefaultWorkflow(t.workflowSchemeId,{updateDraftIfNeeded:t.updateDraftIfNeeded});this.display(t,e)}}(exports.default=DeleteDefaultWorkflow).description="Deletes default workflow of a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the default workflow reset. The draft workflow scheme can be published in Jira.",DeleteDefaultWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Set to true to create or update the draft of a workflow scheme and delete the mapping from the draft, when the workflow scheme cannot be edited."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),set_workflow_for_issue_type_1=require("./set-workflow-for-issue-type");class DeleteIssueTypesForWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var o=(await this.parse(DeleteIssueTypesForWorkflow))["flags"],e=await this.getJira(e,o).workflowSchemeManager.deleteIssueTypeForWorkflows(o.workflowSchemeId,{workflowName:o.workflow,updateDraftIfNeeded:o.updateDraftIfNeeded});this.display(o,(0,set_workflow_for_issue_type_1.issueTypeMappingsForDisplay)(e.issueTypeMappings))}}(exports.default=DeleteIssueTypesForWorkflow).description="Deletes the workflow-issue type mapping for a workflow in a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the issue type-workflow mapping deleted. The draft workflow scheme can be published in Jira.",DeleteIssueTypesForWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),workflow:core_1.Flags.string({description:"The name of the workflow.",required:!0}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Set to true to create or update the draft of a workflow scheme and delete the mapping from the draft, when the workflow scheme cannot be edited."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),set_workflow_for_issue_type_1=require("./set-workflow-for-issue-type");class DeleteWorkflowForIssueType extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteWorkflowForIssueType))["flags"],e=await this.getJira(e,t).workflowSchemeManager.deleteWorkflowForIssueType(t.workflowSchemeId,t.issueType,{updateDraftIfNeeded:t.updateDraftIfNeeded});this.display(t,(0,set_workflow_for_issue_type_1.issueTypeMappingsForDisplay)(e.issueTypeMappings))}}(exports.default=DeleteWorkflowForIssueType).description="Deletes the issue type-workflow mapping for an issue type in a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the issue type-workflow mapping deleted. The draft workflow scheme can be published in Jira.",DeleteWorkflowForIssueType.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),issueType:core_1.Flags.string({description:"The ID of the issue type.",required:!0}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Set to true to create or update the draft of a workflow scheme and delete the mapping from the draft, when the workflow scheme cannot be edited."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteWorkflowScheme extends atlascli_common_1.CommandWithSite{async runWithSite(e){var o=(await this.parse(DeleteWorkflowScheme))["flags"];await this.getJira(e,o).workflowSchemeManager.deleteWorkflowScheme(o.workflowSchemeId)}}(exports.default=DeleteWorkflowScheme).description="Deletes a workflow scheme.",DeleteWorkflowScheme.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core");class GetAllWorkflowSchemes extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,l){var a=(await this.parse(GetAllWorkflowSchemes))["flags"],s=this.removeFlagsFromBase(a),t=s["all"],s=tslib_1.__rest(s,["all"]),o=await l.workflowSchemeManager.getAllWorkflowSchemes(s);t&&(o.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(o,s,l.workflowSchemeManager.getAllWorkflowSchemes.bind(l.workflowSchemeManager))),this.display(a,o.values)}}(exports.default=GetAllWorkflowSchemes).description="Gets all workflow schemes.",GetAllWorkflowSchemes.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"]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetDefaultWorkflowScheme extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetDefaultWorkflowScheme))["flags"],e=await this.getJira(e,t).workflowSchemeManager.getDefaultWorkflow(t.workflowSchemeId,{returnDraftIfExists:t.returnDraftIfExists});this.display(t,e)}}(exports.default=GetDefaultWorkflowScheme).description="Gets default workflow of workflow scheme.",GetDefaultWorkflowScheme.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),returnDraftIfExists:core_1.Flags.boolean({description:"Returns the workflow scheme's draft rather than scheme itself, if set to true. If the workflow scheme does not have a draft, then the workflow scheme is returned"})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetIssueTypesForWorklows extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(GetIssueTypesForWorklows))["flags"],e=await this.getJira(e,s).workflowSchemeManager.getIssueTypeForWorkflows(s.workflowSchemeId,{workflowName:s.workflowName,returnDraftIfExists:s.returnDraftIfExists});this.display(s,s.json?e:this.modifyResponseForDisplay(e))}modifyResponseForDisplay(e){const r=[];return(e=Array.isArray(e)?e:[e]).forEach(o=>{o.issueTypes.forEach(e=>{var s={};s.issueTypeId=e,s.workflow=o.workflow,s.defaultMapping=o.defaultMapping,r.push(s)})}),r}}(exports.default=GetIssueTypesForWorklows).description="Gets the workflow-issue type mappings for a workflow scheme.",GetIssueTypesForWorklows.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),workflowName:core_1.Flags.string({description:"The name of a workflow in the scheme. Limits the results to the workflow-issue type mapping for the specified workflow"}),returnDraftIfExists:core_1.Flags.boolean({description:"Returns the workflow scheme's draft rather than scheme itself, if set to true. If the workflow scheme does not have a draft, then the workflow scheme is returned"})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetWorkflowForIssueType extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(GetWorkflowForIssueType))["flags"],e=await this.getJira(e,s).workflowSchemeManager.getWorkflowForIssueType(s.workflowSchemeId,s.issueType,{returnDraftIfExists:s.returnDraftIfExists});this.display(s,e)}}(exports.default=GetWorkflowForIssueType).description="Gets the issue type-workflow mapping for an issue type in a workflow scheme.",GetWorkflowForIssueType.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),issueType:core_1.Flags.string({description:"The ID of the issue type.",required:!0}),returnDraftIfExists:core_1.Flags.boolean({description:"Returns the workflow scheme's draft rather than scheme itself, if set to true. If the workflow scheme does not have a draft, then the workflow scheme is returned"})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetWorkflowScheme extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=[];const{flags:r,argv:o}=await this.parse(GetWorkflowScheme),s=this.getJira(e,r),a=(t.push(...r.workflowSchemeId||[]),t.push(...Array.isArray(o)?o:"string"==typeof o?[o]:[]),0===t.length&&this.error("No workflow scheme id is specified."),{returnDraftIfExists:r.returnDraftIfExists});e=t.sort().map(e=>s.workflowSchemeManager.getWorkflowScheme(e,a));await Promise.all(e).then(e=>{0<e.length&&this.display(r,e)})}}(exports.default=GetWorkflowScheme).strict=!1,GetWorkflowScheme.description="Gets a workflow scheme.",GetWorkflowScheme.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",multiple:!0}),returnDraftIfExists:core_1.Flags.boolean({description:"Returns the workflow scheme's draft rather than scheme itself, if set to true. If the workflow scheme does not have a draft, then the workflow scheme is returned"})},atlascli_common_1.CommandWithSite.flags),GetWorkflowScheme.args=[{name:"workflowSchemeId",description:"The ID of the workflow scheme."}];
|
|
@@ -0,0 +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"),set_workflow_for_issue_type_1=require("./set-workflow-for-issue-type");class SetIssueTypeForWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var o=(await this.parse(SetIssueTypeForWorkflow))["flags"],e=this.getJira(e,o),s=this.removeFlagsFromBase(o),t=s["workflowSchemeId"],s=tslib_1.__rest(s,["workflowSchemeId"]),e=(s.issueTypes=s.issueTypes.split(","),await e.workflowSchemeManager.setIssueTypeForWorkflows(t,{workflowName:o.workflow},s));this.display(o,(0,set_workflow_for_issue_type_1.issueTypeMappingsForDisplay)(e.issueTypeMappings))}}(exports.default=SetIssueTypeForWorkflow).description="Sets the issue types for a workflow in a workflow scheme. The workflow can also be set as the default workflow for the workflow scheme. Unmapped issues types are mapped to the default workflow.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true in the request body and a draft workflow scheme is created or updated with the new issue type-workflow mapping. The draft workflow scheme can be published in Jira.",SetIssueTypeForWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),issueTypes:core_1.Flags.string({description:"The list of issue type IDs. Please separete values with comma. Example Usage --issueTypes=10000,10001",required:!0}),workflow:core_1.Flags.string({description:"The name of the workflow.",required:!0}),defaultMapping:core_1.Flags.boolean({description:"Whether the workflow is the default workflow for the workflow scheme."}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Set to true to create or update the draft of a workflow scheme and update the mapping in the draft, when the workflow scheme cannot be edited. Defaults to false. Only applicable when updating the workflow-issue types mapping."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.issueTypeMappingsForDisplay=void 0;const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");function issueTypeMappingsForDisplay(e){const s=[];return e&&Object.entries(e).forEach(e=>s.push({issueType:e[0],workflow:e[1]})),s}exports.issueTypeMappingsForDisplay=issueTypeMappingsForDisplay;class SetWorkflowForIssueType extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(SetWorkflowForIssueType))["flags"],e=this.getJira(e,s),o=this.removeFlagsFromBase(s),t=o["workflowSchemeId"],o=tslib_1.__rest(o,["workflowSchemeId"]),e=await e.workflowSchemeManager.setWorkflowForIssueType(t,s.issueType,o);this.display(s,issueTypeMappingsForDisplay(e.issueTypeMappings))}}(exports.default=SetWorkflowForIssueType).description="Sets the workflow for an issue type in a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true in the request body and a draft workflow scheme is created or updated with the new issue type-workflow mapping. The draft workflow scheme can be published in Jira.",SetWorkflowForIssueType.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),issueType:core_1.Flags.string({description:"The ID of the issue type.",required:!0}),workflow:core_1.Flags.string({description:"The name of the workflow."}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Set to true to create or update the draft of a workflow scheme and update the mapping in the draft, when the workflow scheme cannot be edited. Defaults to false. Only applicable when updating the workflow-issue types mapping."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateDefaultWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var o=(await this.parse(UpdateDefaultWorkflow))["flags"],e=await this.getJira(e,o).workflowSchemeManager.updateDefaultWorkflow(o.workflowSchemeId,{workflow:o.workflow,updateDraftIfNeeded:o.updateDraftIfNeeded});this.display(o,e)}}(exports.default=UpdateDefaultWorkflow).description="Updates default workflow of a workflow scheme.",UpdateDefaultWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),workflow:core_1.Flags.string({char:"w",description:"The name of the workflow to set as the default workflow",required:!0}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Whether a draft workflow scheme is created or updated when updating an active workflow scheme. The draft is updated with the new default workflow"})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1,5 @@
|
|
|
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"),atlascli_common_2=require("@thestarware/atlascli-common");class UpdateWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:o,args:a}=await this.parse(UpdateWorkflow),e=this.getJira(e,o),t=this.removeFlagsFromBase(o);o.show?this.showSampleJSONBody(o):await this.updateWorkflowScheme(t,a,e)}async updateWorkflowScheme(e,o,a){var t=e["workflowSchemeId"],s=tslib_1.__rest(e,["workflowSchemeId"]),r=Object.values(s).every(e=>void 0===e);let i=o.issueLinkBody;if(r&&void 0===i){if(!(i=JSON.parse(await(0,atlascli_common_1.readStdin)()))||0===i.length)throw new Error("You should provide a valid JSON for the workflow! You can use `jira workflow-scheme:update --show` command to generate a valid JSON body.")}else i=s;o=await a.workflowSchemeManager.updateWorkflowScheme(t,i);this.display(e,o)}showSampleJSONBody(e){e.json=!0,this.display(e,{name:"Example workflow scheme",description:"The description of the example workflow scheme.",defaultWorkflow:"jira",issueTypeMappings:{1e4:"jira",10001:"Builds Workflow"},updateDraftIfNeeded:!0})}}(exports.default=UpdateWorkflow).description="Updates workflow scheme. You can also provide request body as JSON using STDIN without specifying any flags.",UpdateWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the workflow scheme."}),description:core_1.Flags.string({description:"The description of the workflow scheme."}),issueTypeMappings:core_1.Flags.string({description:"The issue type to workflow mappings, where each mapping is an issue type ID and workflow name pair. Note that an issue type can only be mapped to one workflow in a workflow scheme.\nExample usage: --issueTypeMappings=issueTypeId=WorkflowName,issueTypeId2=WorkflowName2",parse:e=>(0,atlascli_common_2.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(e)[0]}),updateDraftIfNeeded:core_1.Flags.boolean({description:`Whether to create or update a draft workflow scheme when updating an active workflow scheme. An active workflow scheme is a workflow scheme that is used by at least one project. The following examples show how this property works:
|
|
2
|
+
|
|
3
|
+
• Update an active workflow scheme with updateDraftIfNeeded set to true: If a draft workflow scheme exists, it is updated. Otherwise, a draft workflow scheme is created.
|
|
4
|
+
• Update an active workflow scheme with updateDraftIfNeeded set to false: An error is returned, as active workflow schemes cannot be updated.
|
|
5
|
+
• Update an inactive workflow scheme with updateDraftIfNeeded set to true: The workflow scheme is updated, as inactive workflow schemes do not require drafts to update.`}),defaultWorkflow:core_1.Flags.string({description:"The name of the default workflow for the workflow scheme."}),show:core_1.Flags.boolean({description:"Prepare a sample JSON output for workflow scheme update."})},atlascli_common_1.CommandWithSite.flags),UpdateWorkflow.args=[{name:"WorkflowSchemeBody",description:"Workflow scheme update request in JSON format."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class CreateWorkflowSchemeDraft extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(CreateWorkflowSchemeDraft))["flags"],e=await this.getJira(e,a).workflowSchemeDraftManager.createWorkflowSchemeDraft(a.workflowSchemeId);this.display(a,e)}}(exports.default=CreateWorkflowSchemeDraft).description="Create a draft workflow scheme from an active workflow scheme, by copying the active workflow scheme. Note that an active workflow scheme can only have one draft workflow scheme.",CreateWorkflowSchemeDraft.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the active workflow scheme that the draft was created from.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteDefaultWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteDefaultWorkflow))["flags"],e=await this.getJira(e,t).workflowSchemeDraftManager.deleteDraftDefaultWorkflow(t.workflowSchemeId);this.display(t,e)}}(exports.default=DeleteDefaultWorkflow).description="Deletes default workflow of a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the default workflow reset. The draft workflow scheme can be published in Jira.",DeleteDefaultWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme that the draft belongs to.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),set_workflow_for_issue_type_1=require("./set-workflow-for-issue-type");class DeleteIssueTypesForWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var o=(await this.parse(DeleteIssueTypesForWorkflow))["flags"],e=await this.getJira(e,o).workflowSchemeDraftManager.deleteDraftIssueTypeForWorkflows(o.workflowSchemeId,{workflowName:o.workflow});this.display(o,(0,set_workflow_for_issue_type_1.issueTypeMappingsForDisplay)(e.issueTypeMappings))}}(exports.default=DeleteIssueTypesForWorkflow).description="Deletes the workflow-issue type mapping for a workflow in a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the issue type-workflow mapping deleted. The draft workflow scheme can be published in Jira.",DeleteIssueTypesForWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme that the draft belongs to.",required:!0}),workflow:core_1.Flags.string({description:"The name of the workflow.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),set_workflow_for_issue_type_1=require("./set-workflow-for-issue-type");class DeleteWorkflowForIssueType extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(DeleteWorkflowForIssueType))["flags"],e=await this.getJira(e,s).workflowSchemeDraftManager.deleteDraftWorkflowForIssueType(s.workflowSchemeId,s.issueType);this.display(s,(0,set_workflow_for_issue_type_1.issueTypeMappingsForDisplay)(e.issueTypeMappings))}}(exports.default=DeleteWorkflowForIssueType).description="Deletes the issue type-workflow mapping for an issue type in a workflow scheme.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true and a draft workflow scheme is created or updated with the issue type-workflow mapping deleted. The draft workflow scheme can be published in Jira.",DeleteWorkflowForIssueType.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme that the draft belongs to.",required:!0}),issueType:core_1.Flags.string({description:"The ID of the issue type.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class DeleteWorkflowSchemeDraft extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteWorkflowSchemeDraft))["flags"];await this.getJira(e,t).workflowSchemeDraftManager.deleteWorkflowSchemeDraft(t.workflowSchemeId)}}(exports.default=DeleteWorkflowSchemeDraft).description="Deletes a draft workflow scheme.",DeleteWorkflowSchemeDraft.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the active workflow scheme that the draft was created from.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetDefaultWorkflowScheme extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetDefaultWorkflowScheme))["flags"],e=await this.getJira(e,t).workflowSchemeDraftManager.getDraftDefaultWorkflow(t.workflowSchemeId);this.display(t,e)}}(exports.default=GetDefaultWorkflowScheme).description="Gets default workflow of workflow scheme.",GetDefaultWorkflowScheme.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme that the draft belongs to.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetIssueTypesForWorklows extends atlascli_common_1.CommandWithSite{async runWithSite(e){var o=(await this.parse(GetIssueTypesForWorklows))["flags"],e=await this.getJira(e,o).workflowSchemeDraftManager.getDraftIssueTypeForWorkflows(o.workflowSchemeId,{workflowName:o.workflowName});this.display(o,o.json?e:this.modifyResponseForDisplay(e))}modifyResponseForDisplay(e){const r=[];return(e=Array.isArray(e)?e:[e]).forEach(s=>{s.issueTypes.forEach(e=>{var o={};o.issueTypeId=e,o.workflow=s.workflow,o.defaultMapping=s.defaultMapping,r.push(o)})}),r}}(exports.default=GetIssueTypesForWorklows).description="Gets the workflow-issue type mappings for a workflow scheme draft.",GetIssueTypesForWorklows.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme that the draft belongs to.",required:!0}),workflowName:core_1.Flags.string({description:"The name of a workflow in the scheme. Limits the results to the workflow-issue type mapping for the specified workflow"})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetWorkflowForIssueType extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(GetWorkflowForIssueType))["flags"],e=await this.getJira(e,s).workflowSchemeDraftManager.getDraftWorkflowForIssueType(s.workflowSchemeId,s.issueType);this.display(s,e)}}(exports.default=GetWorkflowForIssueType).description="Gets the issue type-workflow mapping for an issue type in a workflow scheme draft.",GetWorkflowForIssueType.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme that the draft belongs to.",required:!0}),issueType:core_1.Flags.string({description:"The ID of the issue type.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetWorkflowSchemeDraft extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=[];const{flags:o,argv:r}=await this.parse(GetWorkflowSchemeDraft),a=this.getJira(e,o);t.push(...o.workflowSchemeId||[]),t.push(...Array.isArray(r)?r:"string"==typeof r?[r]:[]),0===t.length&&this.error("No workflow scheme draft id is specified.");e=t.sort().map(e=>a.workflowSchemeDraftManager.getWorkflowSchemeDraft(e));await Promise.all(e).then(e=>{0<e.length&&this.display(o,e)})}}(exports.default=GetWorkflowSchemeDraft).strict=!1,GetWorkflowSchemeDraft.description="Gets the draft workflow scheme for an active workflow scheme. Draft workflow schemes allow changes to be made to the active workflow schemes: When an active workflow scheme is updated, a draft copy is created. The draft is modified, then the changes in the draft are copied back to the active workflow scheme.",GetWorkflowSchemeDraft.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the active workflow scheme that the draft was created from.",multiple:!0})},atlascli_common_1.CommandWithSite.flags),GetWorkflowSchemeDraft.args=[{name:"workflowSchemeId",description:"The ID of the active workflow scheme that the draft was created from."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class PublishWorkflowSchemeDraft extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,s){var a=(await this.parse(PublishWorkflowSchemeDraft))["flags"],t=await s.workflowSchemeDraftManager.publishDraft(a.workflowSchemeId,{validateOnly:a.validateOnly},{statusMappings:a.statusMappings});this.display(a,t),a.validateOnly||a.silent||await this.showProgressBar(t,s,"The draft is publishing...")}}(exports.default=PublishWorkflowSchemeDraft).description="Publishes a draft workflow scheme. Where the draft workflow includes new workflow statuses for an issue type, mappings are provided to update issues with the original workflow status to the new workflow status. This operation is asynchronous. You can use `jira task:get` command to obtain any updates.",PublishWorkflowSchemeDraft.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the active workflow scheme that the draft was created from.",required:!0}),validateOnly:core_1.Flags.boolean({description:"Whether the request only performs a validation."}),statusMappings:core_1.Flags.string({description:"Mappings of statuses to new statuses for issue types. You can provide multiple values by repeating this flag. KEYS: [statusId, newStatusId, issueTypeId]\n Example use case: --statusMappings=statusId=10000,issueTypeId=10000,newStatusId=10000",multiple:!0,parse:e=>(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(e,"statusMappings",["statusId","newStatusId","issueTypeId"])[0]}),silent:core_1.Flags.boolean({description:"If you activate this flag progress bar will not be shown."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +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"),set_workflow_for_issue_type_1=require("./set-workflow-for-issue-type");class SetIssueTypeForWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var o=(await this.parse(SetIssueTypeForWorkflow))["flags"],e=this.getJira(e,o),s=this.removeFlagsFromBase(o),t=s["workflowSchemeId"],s=tslib_1.__rest(s,["workflowSchemeId"]),e=(s.issueTypes=s.issueTypes.split(","),await e.workflowSchemeDraftManager.setDraftIssueTypeForWorkflows(t,{workflowName:o.workflow},s));this.display(o,(0,set_workflow_for_issue_type_1.issueTypeMappingsForDisplay)(e.issueTypeMappings))}}(exports.default=SetIssueTypeForWorkflow).description="Sets the issue types for a workflow in a workflow scheme. The workflow can also be set as the default workflow for the workflow scheme. Unmapped issues types are mapped to the default workflow.\nNote that active workflow schemes cannot be edited. If the workflow scheme is active, set updateDraftIfNeeded to true in the request body and a draft workflow scheme is created or updated with the new issue type-workflow mapping. The draft workflow scheme can be published in Jira.",SetIssueTypeForWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme that the draft belongs to.",required:!0}),issueTypes:core_1.Flags.string({description:"The list of issue type IDs. Please separete values with comma. Example Usage --issueTypes=10000,10001",required:!0}),workflow:core_1.Flags.string({description:"The name of the workflow.",required:!0}),defaultMapping:core_1.Flags.boolean({description:"Whether the workflow is the default workflow for the workflow scheme."}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Set to true to create or update the draft of a workflow scheme and update the mapping in the draft, when the workflow scheme cannot be edited. Defaults to false. Only applicable when updating the workflow-issue types mapping."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.issueTypeMappingsForDisplay=void 0;const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");function issueTypeMappingsForDisplay(e){const s=[];return e&&Object.entries(e).forEach(e=>s.push({issueType:e[0],workflow:e[1]})),s}exports.issueTypeMappingsForDisplay=issueTypeMappingsForDisplay;class SetWorkflowForIssueType extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(SetWorkflowForIssueType))["flags"],e=this.getJira(e,s),o=this.removeFlagsFromBase(s),t=o["workflowSchemeId"],o=tslib_1.__rest(o,["workflowSchemeId"]),e=await e.workflowSchemeDraftManager.setDraftWorkflowForIssueType(t,s.issueType,o);this.display(s,issueTypeMappingsForDisplay(e.issueTypeMappings))}}(exports.default=SetWorkflowForIssueType).description="Sets the workflow for an issue type in a workflow scheme draft.",SetWorkflowForIssueType.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme that the draft belongs to.",required:!0}),issueType:core_1.Flags.string({description:"The ID of the issue type.",required:!0}),workflow:core_1.Flags.string({description:"The name of the workflow."}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Set to true to create or update the draft of a workflow scheme and update the mapping in the draft, when the workflow scheme cannot be edited. Defaults to false. Only applicable when updating the workflow-issue types mapping."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateDefaultWorkflow extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(UpdateDefaultWorkflow))["flags"],e=await this.getJira(e,t).workflowSchemeDraftManager.updateDraftDefaultWorkflow(t.workflowSchemeId,{workflow:t.workflow,updateDraftIfNeeded:t.updateDraftIfNeeded});this.display(t,e)}}(exports.default=UpdateDefaultWorkflow).description="Updates default workflow of a workflow scheme.",UpdateDefaultWorkflow.flags=Object.assign({workflowSchemeId:core_1.Flags.string({char:"i",description:"The ID of the workflow scheme that the draft belongs to.",required:!0}),workflow:core_1.Flags.string({char:"w",description:"The name of the workflow to set as the default workflow",required:!0}),updateDraftIfNeeded:core_1.Flags.boolean({description:"Whether a draft workflow scheme is created or updated when updating an active workflow scheme. The draft is updated with the new default workflow"})},atlascli_common_1.CommandWithSite.flags);
|