@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
package/bin/dev
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const oclif = require('@oclif/core')
|
|
4
|
+
|
|
5
|
+
const path = require('path')
|
|
6
|
+
const project = path.join(__dirname, '..', 'tsconfig.json')
|
|
7
|
+
|
|
8
|
+
// In dev mode -> use ts-node and dev plugins
|
|
9
|
+
process.env.NODE_ENV = 'development'
|
|
10
|
+
process.env.TS_NODE_TRANSPILE_ONLY = 'true'
|
|
11
|
+
|
|
12
|
+
require('ts-node').register({project})
|
|
13
|
+
|
|
14
|
+
// In dev mode, always show stack traces
|
|
15
|
+
oclif.settings.debug = true;
|
|
16
|
+
|
|
17
|
+
// Start the CLI
|
|
18
|
+
oclif.run().then(oclif.flush).catch(oclif.Errors.handle)
|
package/bin/dev.cmd
ADDED
package/bin/run
ADDED
package/bin/run.cmd
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetConfiguration extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(t,a){var n=(await this.parse(GetConfiguration))["flags"],a=await a.announcementBannerManager.getConfiguration();this.display(n,a)}}(exports.default=GetConfiguration).description="Returns the current announcement banner configuration.",GetConfiguration.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -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 UpdateConfiguration extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,n){var a=(await this.parse(UpdateConfiguration))["flags"];await n.announcementBannerManager.updateConfiguration(this.removeFlagsFromBase(a))}}(exports.default=UpdateConfiguration).description="Updates the announcement banner configuration.",UpdateConfiguration.aliases=["announcement-banner:update","announcement-banner update"],UpdateConfiguration.flags=Object.assign({message:core_1.Flags.string({char:"m",description:"The text on the announcement banner.",required:!0}),isDismissible:core_1.Flags.boolean({char:"d",description:"Flag indicating if the announcement banner can be dismissed by the user.",allowNo:!0}),isEnabled:core_1.Flags.boolean({char:"e",description:"Flag indicating if the announcement banner is enabled or not.",allowNo:!0}),visibility:core_1.Flags.string({char:"v",description:"Visibility of the announcement banner. Can be public or private.",options:["public","private"],required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetAllAppRoles extends atlascli_common_1.BaseCommandWithSite{async runWithSite(s){var e=(await this.parse(GetAllAppRoles))["flags"],o=await this.getJira(s,e).applicationRoleManager.getApplicationRoles();this.display(e,o.applicationRoles.map(e=>(this.log(e),e.groups=(s.cloud?e.groupDetails.map(e=>e.name):e.groups).join(","),e.defaultGroups=(s.cloud?e.defaultGroupsDetails.map(e=>e.name):e.defaultGroups).join(","),e))),e.showHashVersion&&!s.cloud&&this.log(`
|
|
2
|
+
Hash Version: `+o.versionHash)}}(exports.default=GetAllAppRoles).description="Gets all application roles.",GetAllAppRoles.flags=Object.assign({showHashVersion:core_1.Flags.boolean({description:"Whether hash version will be shown in the response. (Only for Server)"})},atlascli_common_1.BaseCommandWithSite.flags);
|
|
@@ -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 GetAppRole extends atlascli_common_1.BaseCommandWithSite{async runWithSite(a){var e=(await this.parse(GetAppRole))["flags"],t=await this.getJira(a,e).applicationRoleManager.getApplicationRole(e.key);this.display(e,[t].map(e=>(e.groups=(a.cloud?e.groupDetails.map(e=>e.name):e.groups).join(","),e.defaultGroups=(a.cloud?e.defaultGroupsDetails.map(e=>e.name):e.defaultGroups).join(","),e)))}}(exports.default=GetAppRole).description="Gets an application role.",GetAppRole.flags=Object.assign({key:core_1.Flags.string({char:"k",description:"The key of the application role.",required:!0})},atlascli_common_1.BaseCommandWithSite.flags);
|
|
@@ -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 UpdateApplicationRole extends atlascli_common_1.BaseCommandWithServerSite{async runWithServerSite(e,o){var i=(await this.parse(UpdateApplicationRole))["flags"],a=this.removeFlagsFromBase(i),{key:r,versionHash:t}=a,a=tslib_1.__rest(a,["key","versionHash"]),s=(a.groups=null==(s=a.groups)?void 0:s.split(","),a.defaultGroups=null==(s=a.defaultGroups)?void 0:s.split(","),await o.applicationRoleManager.updateApplicationRole(r,a,t));this.display(i,[s].map(e=>(e.groups=e.groups.join(","),e.defaultGroups=e.defaultGroups.join(","),e)))}}(exports.default=UpdateApplicationRole).description="Updates the an application role. If versionHash is passed, the request will be rejected if not the same as server.",UpdateApplicationRole.aliases=["application-role update","application-role:update"],UpdateApplicationRole.flags=Object.assign({key:core_1.Flags.string({char:"k",description:"The key of the application role.",required:!0}),versionHash:core_1.Flags.string({char:"v",description:"The hash of the version to update."}),name:core_1.Flags.string({char:"n",description:"The display name of the application role."}),groups:core_1.Flags.string({char:"g",description:"The name of the groups. You can provide multiple group name by seperating them with comma."}),defaultGroups:core_1.Flags.string({description:"The name of default groups. You can provide multiple group name by seperating them with comma."}),selectedByDefault:core_1.Flags.boolean({description:"Determines whether this application role should be selected by default on user creation."}),numberOfSeats:core_1.Flags.integer({description:"The maximum count of users on your license."}),remainingSeats:core_1.Flags.integer({char:"r",description:"The count of users remaining on your license."}),userCount:core_1.Flags.integer({char:"c",description:"The number of users counting against your license."}),userCountDescription:core_1.Flags.string({description:"The type of users being counted against your license."}),hasUnlimitedSeats:core_1.Flags.boolean({description:"Whether your license can have unlimited user or not."}),platform:core_1.Flags.boolean({char:"p",description:"Indicates if the application role belongs to Jira platform (jira-core)."})},atlascli_common_1.BaseCommandWithServerSite.flags);
|
|
@@ -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"),avatar_utils_1=require("@thestarware/atlascli-common/lib/avatar-utils"),mapper_utils_1=require("@thestarware/atlascli-common/lib/util/mapper-utils");class Add extends atlascli_common_1.CommandWithSite{async runWithSite(a){var{flags:t,args:e}=await this.parse(Add),i=this.getJira(a,t),e=t.file||e.file,{fileContent:e,fileName:s}=(0,avatar_utils_1.readFile)(e),i=await i.attachmentManager.addAttachment(t.issue,s,e);this.displayAttachmentMetadata(t,i,a.cloud)}displayAttachmentMetadata(a,t,e){this.displayJsonYamlOrTable(a,t,()=>this.tabularFormat([t],a,(a,t)=>{Object.assign(t,(0,mapper_utils_1.mapToUser)(a.author,e))}))}}(exports.default=Add).description="Adds an attachment to an issue.",Add.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),file:core_1.Flags.string({description:"Location of file."})},atlascli_common_1.CommandWithSite.flags),Add.args=[{required:!0,name:"file",description:"Location of file."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),get_metadata_1=tslib_1.__importDefault(require("./get-metadata"));class Delete extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:t,args:a}=await this.parse(Delete);await this.getJira(e,t).attachmentManager.deleteAttachment(t.id||a.id)}}(exports.default=Delete).description="Deletes an attachment from an issue.",Delete.flags=get_metadata_1.default.flags,Delete.args=get_metadata_1.default.args;
|
|
@@ -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 GetContent extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(t,e){var a=(await this.parse(GetContent))["flags"],e=e.attachmentManager.getAttachmentContent(a.id,{redirect:a.redirect});this.display(a,e)}}(exports.default=GetContent).description="Gets the contents of an attachment. A Range header can be set to define a range of bytes within the attachment to download. See the HTTP Range header standard for details.",GetContent.flags=Object.assign({id:core_1.Flags.string({description:"ID of attachment.",required:!0}),redirect:core_1.Flags.boolean({char:"r",description:"Whether a redirect is provided for the attachment download. Clients that do not automatically follow redirects can set this to false to avoid making multiple requests to download the attachment.",default:!1})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetJiraAttachmentSettings extends atlascli_common_1.CommandWithSite{async runWithSite(t){var a=(await this.parse(GetJiraAttachmentSettings))["flags"],t=await this.getJira(t,a).attachmentManager.getJiraAttachmentSettings();this.display(a,t)}}(exports.default=GetJiraAttachmentSettings).description="Returns general information about the current Jira.",GetJiraAttachmentSettings.flags=Object.assign({},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),get_metadata_1=tslib_1.__importDefault(require("./get-metadata"));class GetMetadataForZip extends atlascli_common_1.CommandWithSite{async runWithSite(t){var{flags:a,args:e}=await this.parse(GetMetadataForZip);const i=await this.getJira(t,a).attachmentManager.getMetadataForExpandedAttachment(a.id||e.id);if(this.isTabularOutput(a)){const r=[];i.entries.forEach(t=>{r.push({id:i.id,name:i.name,totalEntryCount:i.totalEntryCount,mediaType:i.mediaType,entryIndex:t.index,entryLabel:t.label,entrySize:t.size,entryMediaType:t.mediaType,entryPath:t.path})}),this.display(a,r)}else this.display(a,i)}}(exports.default=GetMetadataForZip).description="Returns the metadata for the contents of an attachment, if it is an archive, and metadata for the attachment itself. ",GetMetadataForZip.flags=get_metadata_1.default.flags,GetMetadataForZip.args=get_metadata_1.default.args;
|
|
@@ -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"),mapper_utils_1=require("@thestarware/atlascli-common/lib/util/mapper-utils");class GetMetadata extends atlascli_common_1.CommandWithSite{async runWithSite(t){var{flags:a,args:e}=await this.parse(GetMetadata),e=await this.getJira(t,a).attachmentManager.getAttachmentMetadata(a.id||e.id);this.displayAttachmentMetadata(a,e,t.cloud)}displayAttachmentMetadata(t,a,e){this.displayJsonYamlOrTable(t,a,()=>this.tabularFormat([a],t,(t,a)=>{Object.assign(a,(0,mapper_utils_1.mapToUser)(t.author,e))}))}}(exports.default=GetMetadata).description="Returns the metadata for an attachment. Note that the attachment itself is not returned.",GetMetadata.flags=Object.assign({id:core_1.Flags.string({description:"ID of attachment."})},atlascli_common_1.CommandWithSite.flags),GetMetadata.args=[{required:!0,name:"id",description:"ID of attachment."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),get_content_1=tslib_1.__importDefault(require("./get-content")),core_1=require("@oclif/core");class GetThumbnails extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var a=(await this.parse(GetThumbnails))["flags"],i=this.removeFlagsFromBase(a),s=i["id"],i=tslib_1.__rest(i,["id"]),t=t.attachmentManager.getAttachmentThumbnail(s,i);this.display(a,t)}}(exports.default=GetThumbnails).description="Gets the thumbnail of an attachment.",GetThumbnails.flags=Object.assign({fallbackToDefault:core_1.Flags.boolean({description:"Whether a default thumbnail is returned when the requested thumbnail is not found.",default:!0}),width:core_1.Flags.integer({char:"w",description:"The maximum width to scale the thumbnail to."}),height:core_1.Flags.integer({char:"h",description:"The maximum height to scale the thumbnail to."})},get_content_1.default.flags);
|
|
@@ -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 GetAssociatedItems extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,t){var r=(await this.parse(GetAssociatedItems))["flags"],t=await t.auditRecordManager.getAuditRecords(r.offset,r.limit,r.filter,r.from,r.to),t=await this.modifyResponse(t.records);this.display(r,t)}async runWithServerSite(e,t){var r=(await this.parse(GetAssociatedItems))["flags"],t=await t.auditRecordManager.getAuditRecords(r.offset,r.limit,r.filter,r.from,r.to),t=await this.modifyResponse(t.records);this.display(r,t)}async modifyResponse(e){const r=[];return void 0!==e&&e.map(t=>(void 0!==t.associatedItems&&(t.associatedItems=t.associatedItems.map(e=>(e.associatedItemId=e.id,delete e.id,e.id=t.id,e.summary=t.summary,e.remoteAddress=t.remoteAddress,e.authorKey=t.authorKey,e.authorAccountId=t.authorAccountId,e.created=t.created,e.category=t.category,e.itemId=t.objectItem.id,e.itemName=t.objectItem.name,e.parentId=e.parentId||"",e.parentName=e.parentName||"",r.push(e),e))),t)),0===r.length&&r.push({name:"",typeName:"",parentId:"",parentName:"",associatedItemId:"",summary:"",remoteAddress:"",authorKey:"",authorAccountId:"",created:"",category:"",itemId:"",itemName:""}),r}}(exports.default=GetAssociatedItems).description="Get details of an item associated with the changed record.",GetAssociatedItems.flags=Object.assign({offset:core_1.Flags.integer({char:"o",description:"The number of records to skip before returning the first result."}),limit:core_1.Flags.integer({char:"l",description:"The maximum number of results to return."}),from:core_1.Flags.string({description:"The date and time on or after which returned audit records must have been created. Example date: 2014-03-19"}),to:core_1.Flags.string({description:"The date and time on or before which returned audit results must have been created.Example date: 2014-03-19"}),projectIds:core_1.Flags.string({description:"List of project ids to look for. Only for server."}),userIds:core_1.Flags.string({description:"List of user ids to look for. Only for server."})},atlascli_common_1.BaseCommandWithCloudOrServerSite.flags);
|
|
@@ -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 GetAuditRecord extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,t){var r=(await this.parse(GetAuditRecord))["flags"],t=await t.auditRecordManager.getAuditRecords(r.offset,r.limit,r.filter,r.from,r.to),t=await this.modifyResponse(t.records,e);this.display(r,t)}async runWithServerSite(e,t){var r=(await this.parse(GetAuditRecord))["flags"],t=await t.auditRecordManager.getAuditRecords(r.offset,r.limit,r.filter,r.from,r.to),t=await this.modifyResponse(t.records,e);this.display(r,t)}async modifyResponse(e,o){const a=[];return void 0!==e&&e.map(r=>(void 0!==r.changedValues&&(r.changedValues=r.changedValues.map((e,t)=>(e.id=r.id,e.summary=r.summary,e.remoteAddress=r.remoteAddress,e.authorKey=r.authorKey,o.cloud&&(e.authorAccountId=r.authorAccountId),e.created=r.created,e.category=r.category,e.itemId=r.objectItem.id,e.itemName=r.objectItem.name,e.changedFrom=r.changedValues[t].changedFrom||"",e.changedTo=r.changedValues[t].changedTo,a.push(e),e))),r)),a}}(exports.default=GetAuditRecord).description="Get the list of values changed in the record event.",GetAuditRecord.flags=Object.assign({offset:core_1.Flags.integer({char:"o",description:"The number of records to skip before returning the first result."}),limit:core_1.Flags.integer({char:"l",description:"The maximum number of results to return."}),from:core_1.Flags.string({description:"The date and time on or after which returned audit records must have been created. Example date: 2014-03-19"}),to:core_1.Flags.string({description:"The date and time on or before which returned audit results must have been created. Example date: 2014-03-19"}),projectIds:core_1.Flags.string({description:"List of project ids to look for. Only for server."}),userIds:core_1.Flags.string({description:"List of user ids to look for. Only for server."})},atlascli_common_1.BaseCommandWithCloudOrServerSite.flags);
|
|
@@ -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"),get_system_avatars_1=require("./get-system-avatars");class DeleteUniversalAvatar extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(DeleteUniversalAvatar))["flags"];await this.getJira(e,a).avatarManager.deleteUniversalAvatar(a.type,a.entityId,a.avatarId)}}(exports.default=DeleteUniversalAvatar).description="Deletes the system and custom avatars for a project or issue type.",DeleteUniversalAvatar.flags=Object.assign(Object.assign({type:get_system_avatars_1.UniversalAvatarFlag,entityId:core_1.Flags.string({required:!0,description:"The ID of the item the avatar is associated with."}),avatarId:core_1.Flags.string({required:!0,description:"The ID of the avatar."})},(0,atlascli_common_1.getCropInfoFlags)()),atlascli_common_1.CommandWithSite.flags);
|
|
@@ -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"),base_command_with_cloud_or_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site")),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class DeleteUserAvatar extends base_command_with_cloud_or_server_site_1.default{async runWithServerSite(e,a){var r=(await this.parse(DeleteUserAvatar))["flags"],t=await(0,user_util_1.getUser)(a,r.user);r.username=t.username,await a.avatarManager.deleteUserAvatar(r.username,r.avatarId)}async runWithCloudSite(e,a){throw new Error("User avatars are not applicable to cloud!")}}(exports.default=DeleteUserAvatar).description="Deletes a custom avatar from a user. Note that system avatars cannot be deleted.",DeleteUserAvatar.flags=Object.assign({user:core_1.Flags.string({char:"u",required:!0,description:"The username or email."}),avatarId:core_1.Flags.string({required:!0,description:"The ID of the avatar."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -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_cloud_or_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site")),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class GetAllUserAvatar extends base_command_with_cloud_or_server_site_1.default{async runWithServerSite(e,r){var a=(await this.parse(GetAllUserAvatar))["flags"],s=await(0,user_util_1.getUser)(r,a.user),s=(a.username=s.username,await r.avatarManager.getAllUserAvatars(a.username));this.display(a,[...s.system,...s.custom])}async runWithCloudSite(e,r){throw new Error("User avatars are not available for cloud!")}}(exports.default=GetAllUserAvatar).description="Returns all user avatars for specified user.",GetAllUserAvatar.flags=Object.assign({user:core_1.Flags.string({char:"u",required:!0,description:"The username or email."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),avatar_utils_1=require("@thestarware/atlascli-common/lib/avatar-utils"),get_image_by_type_1=tslib_1.__importDefault(require("./get-image-by-type"));class GetAvatarImageById extends get_image_by_type_1.default{async runWithCloudSite(e,a){var t=(await this.parse(GetAvatarImageById))["flags"],r=this.removeFlagsFromBase(t),{type:i,fileName:s,id:l}=r,r=tslib_1.__rest(r,["type","fileName","id"]),a=await a.avatarManager.getAvatarImageByOwner(i,l,r);(0,avatar_utils_1.downloadAvatar)(s+("."+t.format),a)}}(exports.default=GetAvatarImageById).description="Downloads a project or issue type avatar image by ID .",GetAvatarImageById.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the avatar.",required:!0})},get_image_by_type_1.default.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),avatar_utils_1=require("@thestarware/atlascli-common/lib/avatar-utils"),get_image_by_type_1=tslib_1.__importDefault(require("./get-image-by-type"));class GetAvatarImageByOwner extends get_image_by_type_1.default{async runWithCloudSite(e,t){var a=(await this.parse(GetAvatarImageByOwner))["flags"],r=this.removeFlagsFromBase(a),{type:i,fileName:s,entityId:o}=r,r=tslib_1.__rest(r,["type","fileName","entityId"]),t=await t.avatarManager.getAvatarImageByOwner(i,o,r);(0,avatar_utils_1.downloadAvatar)(s+("."+a.format),t)}}(exports.default=GetAvatarImageByOwner).description="Downloads the avatar image for a project or issue type into given file name.",GetAvatarImageByOwner.flags=Object.assign({entityId:core_1.Flags.string({char:"i",description:"The ID of the project or issue type the avatar belongs to.",required:!0})},get_image_by_type_1.default.flags);
|
|
@@ -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"),avatar_utils_1=require("@thestarware/atlascli-common/lib/avatar-utils");class GetAvatarImageByType extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(GetAvatarImageByType))["flags"],r=this.removeFlagsFromBase(t),{type:i,fileName:s}=r,r=tslib_1.__rest(r,["type","fileName"]),a=await a.avatarManager.getAvatarImageByType(i,r);(0,avatar_utils_1.downloadAvatar)(s+("."+t.format),a)}}(exports.default=GetAvatarImageByType).description="Downloads the default project or issue type avatar image into given file name.",GetAvatarImageByType.flags=Object.assign({fileName:core_1.Flags.string({description:"File name that image will be saved in.",dependsOn:["format"],required:!0}),type:core_1.Flags.string({char:"t",description:"The icon type of the avatar.",options:["issuetype","project"],required:!0}),size:core_1.Flags.string({description:"The size of the avatar image. If not provided the default size is returned.",options:["xsmall","small","medium","large","xlarge"]}),format:core_1.Flags.string({char:"f",description:"The format to return the avatar image in. If not provided the original content format is returned.",options:["png","svg"],dependsOn:["fileName"]})},atlascli_common_1.BaseCommandWithCloudSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.UniversalAvatarFlag=exports.AvatarFlag=void 0;const atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),avatar_1=require("@thestarware/atlassian-typescript-client/lib/jira/common/avatar");exports.AvatarFlag=core_1.Flags.string({required:!0,description:"Type of avatar.",options:[avatar_1.AvatarType.ISSUE_TYPE,avatar_1.AvatarType.PROJECT,avatar_1.AvatarType.USER]}),exports.UniversalAvatarFlag=core_1.Flags.string({required:!0,description:"Type of avatar.",options:[avatar_1.AvatarType.ISSUE_TYPE,avatar_1.AvatarType.PROJECT]});class GetSystemAvatars extends atlascli_common_1.CommandWithSite{async runWithSite(a){var t=(await this.parse(GetSystemAvatars))["flags"],a=await this.getJira(a,t).avatarManager.getSystemAvatarsByType(t.type);this.display(t,[...a.system])}}(exports.default=GetSystemAvatars).description="Returns all system avatars of the given type.",GetSystemAvatars.flags=Object.assign({type:exports.AvatarFlag},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -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"),get_system_avatars_1=require("./get-system-avatars");class GetUniversalAvatar extends atlascli_common_1.CommandWithSite{async runWithSite(a){var t=(await this.parse(GetUniversalAvatar))["flags"],a=await this.getJira(a,t).avatarManager.getUniversalAvatars(t.type,t.entityId);this.display(t,[...a.system,...a.custom])}}(exports.default=GetUniversalAvatar).description="Returns the system and custom avatars for a project or issue type.",GetUniversalAvatar.flags=Object.assign(Object.assign({type:get_system_avatars_1.UniversalAvatarFlag,entityId:core_1.Flags.string({required:!0,description:"The ID of the item the avatar is associated with."})},(0,atlascli_common_1.getCropInfoFlags)()),atlascli_common_1.CommandWithSite.flags);
|
|
@@ -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"),base_command_with_cloud_or_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site")),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class SetUserAvatar extends base_command_with_cloud_or_server_site_1.default{async runWithServerSite(e,a){var r=(await this.parse(SetUserAvatar))["flags"],t=await(0,user_util_1.getUser)(a,r.user);r.username=t.username,await a.avatarManager.setUserAvatar(r.username,r.avatarId)}async runWithCloudSite(e,a){throw new Error("User avatars are not applicable to cloud!")}}(exports.default=SetUserAvatar).description="Sets the user avatar to an already uploaded/existing avatar.",SetUserAvatar.flags=Object.assign({user:core_1.Flags.string({char:"u",required:!0,description:"The username or email."}),avatarId:core_1.Flags.string({required:!0,description:"The ID of the avatar."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),upload_1=tslib_1.__importDefault(require("../project-avatar/upload")),get_system_avatars_1=require("./get-system-avatars"),core_1=require("@oclif/core"),base_command_with_cloud_or_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site"));class UploadUniversalAvatar extends base_command_with_cloud_or_server_site_1.default{async runWithCloudSite(a,e){var{flags:t,args:r}=await this.parse(UploadUniversalAvatar),{fileContent:r,fileName:i}=(0,atlascli_common_1.readFile)(r.avatarFile),e=await e.avatarManager.uploadUniversalAvatar(t.type,t.entityId,i,r,upload_1.default.getCloudCropInfo(t));this.display(t,[e])}async runWithServerSite(a,e){var{flags:t,args:r}=await this.parse(UploadUniversalAvatar),{fileContent:r,fileName:i}=(0,atlascli_common_1.readFile)(r.avatarFile),e=await e.avatarManager.uploadUniversalAvatar(t.type,t.entityId,i,r,upload_1.default.getServerCropInfo(t));this.display(t,[e])}}(exports.default=UploadUniversalAvatar).description="Uploads a custom avatar for a project or issue type.",UploadUniversalAvatar.flags=Object.assign(Object.assign({type:get_system_avatars_1.UniversalAvatarFlag,entityId:core_1.Flags.string({required:!0,description:"The ID of the item the avatar is associated with."})},(0,atlascli_common_1.getCropInfoFlags)()),atlascli_common_1.CommandWithSite.flags),UploadUniversalAvatar.args=[{required:!0,name:"avatarFile",description:"Location of avatar file"}];
|
|
@@ -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_cloud_or_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site")),core_1=require("@oclif/core"),upload_1=tslib_1.__importDefault(require("../project-avatar/upload")),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class UploadUserAvatar extends base_command_with_cloud_or_server_site_1.default{async runWithServerSite(a,e){var{flags:r,args:s}=await this.parse(UploadUserAvatar),{fileContent:s,fileName:t}=(0,atlascli_common_1.readFile)(s.avatarFile),o=await(0,user_util_1.getUser)(e,r.user),o=(r.username=o.username,await e.avatarManager.uploadUserAvatar(r.username,t,s,upload_1.default.getServerCropInfo(r)));this.display(r,[o])}async runWithCloudSite(a,e){throw new Error("Uploading user avatars is not possible in cloud")}}(exports.default=UploadUserAvatar).description="Uploads an avatar for a user.",UploadUserAvatar.flags=Object.assign(Object.assign({user:core_1.Flags.string({char:"u",required:!0,description:"The username or email."})},(0,atlascli_common_1.getCropInfoFlags)()),atlascli_common_1.CommandWithSite.flags),UploadUserAvatar.args=upload_1.default.args;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.commentFlags=void 0;const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),core_1=require("@oclif/core"),get_with_ids_1=tslib_1.__importDefault(require("./get-with-ids"));exports.commentFlags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),body:core_1.Flags.string({required:!0,description:"Body of the comment. For cloud this can be in Atlassian Document Format. For Server/DC this is a string."})},(0,atlascli_common_1.getVisibilityFlags)());class AddComment extends atlascli_common_1.CommandWithSite{async runWithSite(t){var e=(await this.parse(AddComment))["flags"],i=this.getJira(t,e),s=(0,atlascli_common_1.getVisibility)(e),i=await i.commentManager.addComment(e.issue,(0,atlascli_common_1.getComment)(e.body,t.cloud),s,void 0);this.isTabularOutput(e)?this.display(e,get_with_ids_1.default.convertComment(i,t.cloud)):this.display(e,i)}}(exports.default=AddComment).description="Adds a comment.",AddComment.flags=Object.assign(Object.assign({},exports.commentFlags),atlascli_common_1.CommandWithSite.flags);
|
|
@@ -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 GetComments extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetComments))["flags"];await this.getJira(e,t).commentManager.deleteComment(t.issue,t.commentId)}}(exports.default=GetComments).description="Deletes a comment.",GetComments.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),commentId:core_1.Flags.string({required:!0,description:"Comment ID."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -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"),get_with_ids_1=tslib_1.__importDefault(require("./get-with-ids"));class GetComments extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:s,args:t}=await this.parse(GetComments),i=this.getJira(e,s),t=s.issue||t.issue;if(!t)throw new Error("You have to provide an issue ID or key!");i=await i.commentManager.getComments(t);"json"===s.output?this.display(s,i):get_with_ids_1.default.displayComments(this.display.bind(this),i.comments,e.cloud,s)}}(exports.default=GetComments).description="Returns comments for an issue.",GetComments.flags=Object.assign({issue:core_1.Flags.string({description:"Issue ID or key."})},atlascli_common_1.CommandWithSite.flags),GetComments.args=[{name:"issue",description:"Issue ID or key."}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),mapper_utils_1=require("@thestarware/atlascli-common/lib/util/mapper-utils"),core_1=require("@oclif/core");class GetCommentsWithIds extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(t,e){var i=(await this.parse(GetCommentsWithIds))["flags"],e=await e.commentManager.getCommentsWithIds(i.id);this.isTabularOutput(i)?GetCommentsWithIds.displayComments(this.display.bind(this),e.values,t.cloud,i):this.display(i,e)}static convertComment(t,e){return Object.assign(Object.assign({id:t.id,comment:t.renderedBody||""},(0,mapper_utils_1.mapToUser)(t.author,e)),{created:t.created,updated:t.updated,visibility:t.visibility?t.visibility.type+"/"+t.visibility.value:""})}static displayComments(t,e,i,s){const a=[];e.forEach(t=>{a.push(GetCommentsWithIds.convertComment(t,i))}),t(s,a)}}(exports.default=GetCommentsWithIds).description="Gets comments with specified IDs.",GetCommentsWithIds.flags=Object.assign({id:core_1.Flags.integer({multiple:!0,description:"Comment ID.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -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"),get_with_ids_1=tslib_1.__importDefault(require("./get-with-ids"));class GetComments extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetComments))["flags"],s=await this.getJira(e,t).commentManager.getComment(t.issue,t.commentId);this.isTabularOutput(t)?this.display(t,get_with_ids_1.default.convertComment(s,e.cloud)):this.display(t,s)}}(exports.default=GetComments).description="Returns a comment.",GetComments.flags=Object.assign({issue:core_1.Flags.string({required:!0,description:"Issue ID or key."}),commentId:core_1.Flags.string({required:!0,description:"Comment ID."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -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"),comments_1=require("@thestarware/atlassian-typescript-client/lib/jira/common/comments"),get_with_ids_1=tslib_1.__importDefault(require("./get-with-ids")),add_1=require("./add"),mapper_utils_1=require("@thestarware/atlascli-common/lib/util/mapper-utils");class UpdateComment extends atlascli_common_1.CommandWithSite{async runWithSite(t){var e=(await this.parse(UpdateComment))["flags"],i=this.getJira(t,e),a=comments_1.VisibilityType?{type:e.visibilityType,value:e.visibilityValue}:void 0,i=await i.commentManager.updateComment(e.issue,e.commentId,(0,mapper_utils_1.getComment)(e.body,t.cloud),a,void 0);this.isTabularOutput(e)?this.display(e,get_with_ids_1.default.convertComment(i,t.cloud)):this.display(e,i)}}(exports.default=UpdateComment).description="Updates a comment.",UpdateComment.flags=Object.assign(Object.assign({commentId:core_1.Flags.string({required:!0,description:"Comment ID."})},add_1.commentFlags),atlascli_common_1.CommandWithSite.flags);
|
|
@@ -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 DeleteCommentProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteCommentProperty))["flags"];await this.getJira(e,t).commentPropertyManager.deleteCommentProperty(t.commentId,t.key)}}(exports.default=DeleteCommentProperty).description="Deletes a property for a comment.",DeleteCommentProperty.flags=Object.assign({commentId:core_1.Flags.string({required:!0,description:"Comment ID."}),key:core_1.Flags.string({required:!0,description:"Property key."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -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 GetCommentPropertyKeys extends atlascli_common_1.CommandWithSite{async runWithSite(e){const t=(await this.parse(GetCommentPropertyKeys))["flags"];const o=await this.getJira(e,t).commentPropertyManager.getCommentPropertyKeys(t.commentId);this.displayJsonYamlOrTable(t,o,()=>this.tabularFormat(o.keys,t))}}(exports.default=GetCommentPropertyKeys).description="Returns the keys of all the properties of a comment.",GetCommentPropertyKeys.flags=Object.assign({commentId:core_1.Flags.string({required:!0,description:"Comment ID."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -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 GetCommentProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetCommentProperty))["flags"],e=await this.getJira(e,t).commentPropertyManager.getCommentProperty(t.commentId,t.key);this.display(t,e)}}(exports.default=GetCommentProperty).description="Gets the value of a property for a comment.",GetCommentProperty.flags=Object.assign({commentId:core_1.Flags.string({required:!0,description:"Comment ID."}),key:core_1.Flags.string({required:!0,description:"Property key."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -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 SetCommentProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(SetCommentProperty))["flags"];await this.getJira(e,t).commentPropertyManager.setCommentProperty(t.commentId,t.key,t.value)}}(exports.default=SetCommentProperty).description="Creates or updates the value of a property for a comment.",SetCommentProperty.flags=Object.assign({commentId:core_1.Flags.string({required:!0,description:"Comment ID."}),key:core_1.Flags.string({required:!0,description:"Property key."}),value:core_1.Flags.string({required:!0,description:"Non-empty JSON blob. The maximum length is 32768 characters."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),enquirer_1=require("enquirer"),node_fetch_1=tslib_1.__importDefault(require("node-fetch")),atlascli_common_1=require("@thestarware/atlascli-common"),uuid_1=require("uuid"),chalk_1=tslib_1.__importDefault(require("chalk"));class ConfigAdd extends atlascli_common_1.Command{async run(){var e=(await this.parse(ConfigAdd))["flags"],t=await this.getSiteURL(e),r=await this.getAlias(e);let a;var i=await ConfigAdd.getServerInfo(t);a="Cloud"!==i.deploymentType?await this.runJiraServer(t,e,i):await this.runJiraCloud(t,e),await this.addSite(r,a)}async getAlias(e){let t=null;for(;null===t;){t=e.alias||await this.promptUser("text","alias","Alias for the site?");var r=0<Object.keys(this.sites).filter(e=>e===t).length;if(r)if(!(await(0,enquirer_1.prompt)({type:"confirm",name:"override",message:`'${t}' already exist. Do you want to override?`})).override)throw new Error("Alias already exist")}return t}static async getServerInfo(e){return core_1.CliUx.ux.action.start("Checking site..."),e.toString().endsWith("/")||(e=new URL(e+"/")),(0,node_fetch_1.default)(e+"rest/api/2/serverInfo").then(async e=>e.json()).then(e=>(core_1.CliUx.ux.action.stop(chalk_1.default.green("Done")),e)).catch(e=>{throw core_1.CliUx.ux.action.stop(chalk_1.default.red("Failed")),e})}async runJiraCloud(e,t){var r=await this.getEmail(t),a=await this.getToken(t),i=await this.getWebTriggerURL(t),e={cloud:!0,uuid:(0,uuid_1.v4)(),site:e.toString(),webTriggerURL:i,email:r,token:a};if(200!=(await(0,node_fetch_1.default)(i+"?id="+e.uuid)).status)throw new Error("invalid webtrigger url");r=this.getJira(e,t);return await r.doFetch(r.makeUri("/serverInfo")),e}async runJiraServer(e,t,r){var a=await this.getUsername(t);let i,s;(8<r.versionNumbers[0]||8===r.versionNumbers[0]&&14<=r.versionNumbers[1]?await(0,enquirer_1.prompt)({type:"confirm",name:"useToken",initial:!0,message:"Do you want to use token instead of password (recommended)?"}):{useToken:!1}).useToken?s=await this.getToken(t):i=await this.getPassword(t);r={cloud:!1,uuid:(0,uuid_1.v4)(),site:e.toString(),username:a,password:i,token:s},e=this.getJira(r,t);return await e.doFetch(e.makeUri("/serverInfo")),r}async getUsername(e){return e.username||this.promptUser("text","username","Username?")}async getEmail(e){return e.username||this.promptUser("text","email","E-mail?")}async getToken(e){return e.password||this.promptUser("password","token","OAuth Token?")}async getWebTriggerURL(e){return e.webTriggerURL||this.promptUser("text","webTriggerURL","Web Trigger URL?")}async getPassword(e){return e.password||this.promptUser("password","password","Password?")}async getSiteURL(e){let t=e.site||await this.promptUser("text","site","Site URL?");return t.startsWith("http://")||t.startsWith("https://")||(t="https://"+t),new URL(t)}}(exports.default=ConfigAdd).description="Adds a new Jira site configuration.",ConfigAdd.flags=Object.assign(Object.assign({},atlascli_common_1.Command.flags),{site:core_1.Flags.string({char:"s",description:"URL of Jira site"}),username:core_1.Flags.string({char:"u",description:"username for username/password authentication",exclusive:["email"],dependsOn:["password"]}),password:core_1.Flags.string({char:"p",description:"password for username/password authentication",dependsOn:["username"]}),email:core_1.Flags.string({char:"e",description:"e-mail for authentication",exclusive:["username"],dependsOn:["email"]}),token:core_1.Flags.string({char:"t",description:"oauth authentication token associated with e-mail",dependsOn:["email"]}),webTriggerURL:core_1.Flags.string({char:"t",description:"Install the corresponding Forge add-on and run webtrigger on the terminal. After that, copy & paste the complete URL here.",dependsOn:["email"]}),alias:core_1.Flags.string({char:"a",description:"alias for the site"}),help:core_1.Flags.help({char:"h"})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),base_command_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command"));class Delete extends base_command_1.default{async run(){var{flags:e,args:s}=await this.parse(Delete),e=e.site||s.site;e?await this.getSite(e)?(delete this.sites[e],this.conf.set("sites",this.sites)):this.error(e+" is not defined!"):this.error("site alias is required either as a flag or argument!")}}(exports.default=Delete).description="Deletes site with given alias.",Delete.flags=Object.assign(Object.assign({},base_command_1.default.flags),{site:core_1.Flags.string({char:"s",description:"Alias of the site"})}),Delete.args=[{name:"site",description:"Alias of the site"}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),base_command_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command"));class GetDefault extends base_command_1.default{async run(){var e=this.conf.get("defaultSite");e?this.log("Default Site:"+e):this.error("Default site is not defined!")}}(exports.default=GetDefault).description="Gets alias of default Site.",GetDefault.flags=Object.assign({},base_command_1.default.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),base_command_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command"));class List extends base_command_1.default{async run(){var s=(await this.parse(List))["flags"];const t=this.conf.get("sites"),a=this.conf.get("defaultSite");this.display(s,Object.keys(t).map(s=>{var e=t[s];return{alias:s,site:e.site,cloud:e.cloud,"username or email":e.email||e.username,default:a===s?"Yes":""}}))}}(exports.default=List).description="Lists all sites.",List.flags=Object.assign({},base_command_1.default.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),core_1=require("@oclif/core"),base_command_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command"));class SetDefaultSite extends base_command_1.default{async run(){var{flags:e,args:t}=await this.parse(SetDefaultSite),e=e.site||t.site;e?await this.getSite(e)?this.conf.set("defaultSite",e):this.error(e+" alias is not defined! Use config:add to add it."):this.error("site alias is required either as a flag or argument!")}}(exports.default=SetDefaultSite).description="Sets default Site.",SetDefaultSite.flags=Object.assign(Object.assign({},base_command_1.default.flags),{site:core_1.Flags.string({char:"s",description:"Alias of the site"})}),SetDefaultSite.args=[{name:"site",description:"Alias of the site"}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),add_edit_permission_1=require("../filter-sharing/add-edit-permission"),core_1=require("@oclif/core"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),project_util_1=require("@thestarware/atlascli-common/lib/project-util"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");class AddEditPermission extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var i=(await this.parse(AddEditPermission))["flags"],[i,t]=(0,add_edit_permission_1.modifyFlagsForRequest)(this.removeFlagsFromBase(i)),o=await(0,user_util_1.getUser)(r,t.user),s=await(0,project_util_1.getProject)(r,t.project),a=await(0,group_util_1.getGroup)(r,t.group),a=(t.groupId=a.groupId,t.projectId=s.projectId,t.accountId=o.accountId,delete t.group,delete t.project,delete t.user,await r.dashboardManager.getDashboard(i));(0,add_edit_permission_1.parsePermissions)(a.editPermissions),await r.dashboardManager.updateDashboard(i,{editPermissions:null==(s=t.editPermissions)?void 0:s.concat(a.editPermissions)}),this.log(`Added new edit permission to dashboard with ${i} id.`)}}(exports.default=AddEditPermission).description="Adds an edit permission to a dashboard.",AddEditPermission.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the dashboard.",required:!0}),type:core_1.Flags.string({description:"The type of edit permissions.",options:["user","group","project","projectRole","global","authenticated","project-unknown","role"],required:!0}),project:core_1.Flags.string({description:"Project ID."}),group:core_1.Flags.string({char:"g",description:"The name or id of the group that you want to add users to."}),projectRoleId:core_1.Flags.string({description:"Role ID.",dependsOn:["projectId"]}),user:core_1.Flags.string({char:"u",description:"User's account Id or username or email."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),add_edit_permission_1=require("../filter-sharing/add-edit-permission"),core_1=require("@oclif/core"),add_edit_permission_2=tslib_1.__importDefault(require("./add-edit-permission"));class AddSharePermission extends add_edit_permission_2.default{async runWithCloudSite(e,s){var i=(await this.parse(AddSharePermission))["flags"],[i,r]=(0,add_edit_permission_1.modifyFlagsForRequest)(this.removeFlagsFromBase(i),"share"),a=await s.dashboardManager.getDashboard(i);(0,add_edit_permission_1.parsePermissions)(a.sharePermissions),await s.dashboardManager.updateDashboard(i,{sharePermissions:null==(s=r.sharePermissions)?void 0:s.concat(a.sharePermissions)}),this.log(`Added new share permission to dashboard with ${i} id.`)}}(exports.default=AddSharePermission).description="Adds an share permission to a dashboard.",AddSharePermission.flags=Object.assign(Object.assign({},add_edit_permission_2.default.flags),{type:core_1.Flags.string({description:"The type of share permissions.",options:["user","group","project","projectRole","global","authenticated","project-unknown","role"],required:!0})});
|
|
@@ -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 CopyDashboard extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(a,e){var s=(await this.parse(CopyDashboard))["flags"],o=this.removeFlagsFromBase(s),r=o["id"],o=tslib_1.__rest(o,["id"]),e=await e.dashboardManager.copyDashboard(r,o);this.display(s,e)}}(exports.default=CopyDashboard).description="Copies a dashboard.",CopyDashboard.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the dashboard to update.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the dashboard."}),description:core_1.Flags.string({char:"d",description:"The description of the dashboard."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -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 CreateDashboard extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(a,e){var r=(await this.parse(CreateDashboard))["flags"],s=this.removeFlagsFromBase(r),e=await e.dashboardManager.createDashboard(s);this.display(r,e)}}(exports.default=CreateDashboard).description="Creates a dashboard",CreateDashboard.flags=Object.assign({name:core_1.Flags.string({char:"n",description:"The name of the dashboard.",required:!0}),description:core_1.Flags.string({char:"d",description:"The description of the dashboard."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -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 DeleteDashboard extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(DeleteDashboard))["flags"];await a.dashboardManager.deleteDashboard(t.id)}}(exports.default=DeleteDashboard).description="Deletes a dashboard.",DeleteDashboard.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the dashboard to delete.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -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 GetAll extends atlascli_common_1.BaseCommandWithSite{async runWithSite(e){var a=(await this.parse(GetAll))["flags"],e=this.getJira(e,a),s=this.removeFlagsFromBase(a),t=s["all"],s=tslib_1.__rest(s,["all"]),l=await e.dashboardManager.getAllDashboards(this.modifyFlags(s));t&&(l.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(l,s,e.dashboardManager.getAllDashboards.bind(e.dashboardManager))),this.display(a,l.values)}modifyFlags(e){return e.filter=e.query,delete e.query,e}}(exports.default=GetAll).description="Gets a list of dashboards owned by or shared with the user. The list may be filtered to include only favorite or owned dashboards.",GetAll.flags=Object.assign(Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getStartAtAndMaxFlags)()),{all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})}),atlascli_common_1.CommandWithSite.flags),{filter:core_1.Flags.string({description:"The filter applied to the list of dashboards.",options:["my","favourite"]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common"),get_share_permissions_1=require("../filter-sharing/get-share-permissions"),core_1=require("@oclif/core");class GetPermissions extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(s,e){var i=(await this.parse(GetPermissions))["flags"],e=await e.dashboardManager.getDashboard(i.id),e=(i.json=!0,this.display(i,e),i.json=!1,"edit"===i.type?e.editPermissions:e.sharePermissions);(0,get_share_permissions_1.permissionMapper)(e),this.display(i,e)}}(exports.default=GetPermissions).description="Gets edit or share permissions that a dashboard has.",GetPermissions.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the dashboard.",required:!0}),type:core_1.Flags.string({char:"t",description:"Permission type you want to get.",options:["edit","share"],required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -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 GetDashboard extends atlascli_common_1.BaseCommandWithSite{async runWithSite(a){var s=[];const{flags:e,argv:t}=await this.parse(GetDashboard),r=this.getJira(a,e);s.push(...e.id||[]),s.push(...Array.isArray(t)?t:"string"==typeof t?[t]:[]),0===s.length&&this.error("No dashboard id is specified.");a=s.sort().map(a=>r.dashboardManager.getDashboard(a));await Promise.all(a).then(a=>{0<a.length&&this.display(e,a)})}}(exports.default=GetDashboard).strict=!1,GetDashboard.description="Gets a dashboard.",GetDashboard.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the dashboard.",multiple:!0})},atlascli_common_1.CommandWithSite.flags),GetDashboard.args=[{name:"id",description:"The ID of the dashboard."}];
|
|
@@ -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"),project_util_1=require("@thestarware/atlascli-common/lib/project-util"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");class SearchDashboards extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var r=(await this.parse(SearchDashboards))["flags"],t=this.removeFlagsFromBase(r),s=t["all"],t=tslib_1.__rest(t,["all"]),o=await(0,project_util_1.getProject)(a,t.project),i=await(0,user_util_1.getUser)(a,t.user),c=await(0,group_util_1.getGroup)(a,t.group),c=(t.groupId=c.groupId,t.projectId=o.projectId,t.accountId=i.accountId,delete t.project,delete t.group,delete t.user,await a.dashboardManager.searchDashboard(this.modifySearchParams(t)));s&&(c.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(c,t,a.dashboardManager.searchDashboard.bind(a.dashboardManager))),this.display(r,c.values)}modifySearchParams(e){return e.dashboardName=e.query,delete e.query,e}}(exports.default=SearchDashboards).description="Searches all dashboards.",SearchDashboards.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getSearchFlags)()),{orderBy:core_1.Flags.string({description:"",options:["description","favourite_count","id","is_favourite","name","owner"],default:"name"}),user:core_1.Flags.string({char:"u",description:"User account ID or username or email used to return dashboards with the matching dashboard owner's accountId."}),group:core_1.Flags.string({char:"g",description:"The name or id of the group that you want to add users to."}),project:core_1.Flags.string({char:"p",description:"Project id or key"}),status:core_1.Flags.string({description:"The status to filter by. It may be active, archived or deleted.",options:["active","archived","deleted"]}),expand:core_1.Flags.string({description:"Use expand to include additional information about dashboard in the response.",options:["description","owner","viewUrl","favourite","favouritedCount","favouritedCount"]}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})}),atlascli_common_1.CommandWithSite.flags);
|
|
@@ -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 UpdateDashboard extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(a,e){var s=(await this.parse(UpdateDashboard))["flags"],t=this.removeFlagsFromBase(s),r=t["id"],t=tslib_1.__rest(t,["id"]),e=await e.dashboardManager.updateDashboard(r,t);this.display(s,e)}}(exports.default=UpdateDashboard).description="Updates a dashboard.",UpdateDashboard.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"The ID of the dashboard to update.",required:!0}),name:core_1.Flags.string({char:"n",description:"The name of the dashboard."}),description:core_1.Flags.string({char:"d",description:"The description of the dashboard."})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -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 AddGadgets extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(AddGadgets))["flags"],o=this.removeFlagsFromBase(t),i=o["dashboardId"],o=tslib_1.__rest(o,["dashboardId"]),a=await a.dashboardGadgetManager.addGadget(i,o);this.display(t,a)}}(exports.default=AddGadgets).description="Adds a gadget to the dashboard.",AddGadgets.flags=Object.assign({dashboardId:core_1.Flags.string({char:"i",description:"Dashboard ID.",required:!0}),moduleKey:core_1.Flags.string({char:"m",description:"The module key of the gadget type.",exclusive:["uri"]}),uri:core_1.Flags.string({char:"u",description:"The URI of the gadget type.",exclusive:["moduleKey"]}),color:core_1.Flags.string({description:"The color of the gadget.",options:["blue","red","yellow","green","cyan","purple","gray","white"]}),position:core_1.Flags.string({description:"The position of the gadget. When the gadget is placed into the position, other gadgets in the same column are moved down to accommodate it. KEYS: [row, column]\nExample usage: --position=row=1,column=2",parse:e=>(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(e,"position",["row","column"])[0]}),title:core_1.Flags.string({description:"The title of the gadget."}),ignoreUriAndModuleKeyValidation:core_1.Flags.boolean({description:"Whether to ignore the validation of module key and URI. For example, when a gadget is created that is a part of an application that isn't installed."})},atlascli_common_1.BaseCommandWithCloudSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const atlascli_common_1=require("@thestarware/atlascli-common");class GetAvaliableGadget extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(a,e){var t=(await this.parse(GetAvaliableGadget))["flags"],e=await e.dashboardGadgetManager.getAvaliableGadgets();this.display(t,this.modifyResponse(e.gadgets))}modifyResponse(a){return a.forEach(a=>{a.moduleKey||(a.moduleKey="")}),a}}(exports.default=GetAvaliableGadget).description="Gets a list of all available gadgets that can be added to all dashboards.",GetAvaliableGadget.flags=atlascli_common_1.CommandWithSite.flags;
|
|
@@ -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 RemoveGadget extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(RemoveGadget))["flags"];await a.dashboardGadgetManager.removeGadget(t.dashboardId,t.gadgetId)}}(exports.default=RemoveGadget).description="Removes a gadget from dashboard.",RemoveGadget.flags=Object.assign({dashboardId:core_1.Flags.string({char:"d",description:"Dashboard ID.",required:!0}),gadgetId:core_1.Flags.string({char:"g",description:"Gadget ID.",required:!0})},atlascli_common_1.BaseCommandWithCloudSite.flags);
|
|
@@ -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 SearchGadgets extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(SearchGadgets))["flags"],s=this.removeFlagsFromBase(t),r=s["dashboardId"],s=tslib_1.__rest(s,["dashboardId"]),a=await a.dashboardGadgetManager.getGadgets(r,s);this.display(t,a.gadgets)}}(exports.default=SearchGadgets).description="Searches dashboard gadgets.",SearchGadgets.flags=Object.assign({dashboardId:core_1.Flags.string({char:"d",description:"Dashboard ID.",required:!0}),moduleKey:core_1.Flags.string({char:"m",description:"Module key. You can provide multiple value by repeating this flag.",multiple:!0}),uri:core_1.Flags.string({char:"u",description:"Gadget uri. You can provide multiple value by repeating this flag.",multiple:!0}),gadgetId:core_1.Flags.integer({char:"g",description:"Gadget ID. You can provide multiple value by repeating this flag.",multiple:!0})},atlascli_common_1.BaseCommandWithCloudSite.flags);
|
|
@@ -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 UpdateGadget extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(UpdateGadget))["flags"],t=this.removeFlagsFromBase(t),{dashboardId:o,gadgetId:s}=t,t=tslib_1.__rest(t,["dashboardId","gadgetId"]);await a.dashboardGadgetManager.updateGadget(o,s,t)}}(exports.default=UpdateGadget).description="Updates a dashboard gadget.",UpdateGadget.flags=Object.assign({dashboardId:core_1.Flags.string({char:"d",description:"Dashboard ID.",required:!0}),gadgetId:core_1.Flags.string({char:"g",description:"Gadget ID.",required:!0}),color:core_1.Flags.string({description:"The color of the gadget.",options:["blue","red","yellow","green","cyan","purple","gray","white"]}),position:core_1.Flags.string({description:"The position of the gadget. When the gadget is placed into the position, other gadgets in the same column are moved down to accommodate it. KEYS: [row, column]\nExample usage: --position=row=1,column=2",parse:e=>(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(e,"position",["row","column"])[0]}),title:core_1.Flags.string({description:"The title of the gadget."})},atlascli_common_1.BaseCommandWithCloudSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),get_1=tslib_1.__importDefault(require("./get"));class DeleteProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteProperty))["flags"];await this.getJira(e,t).dashboardItemPropertyManager.deleteProperty(t.dashboardId,t.itemId,t.propertyKey)}}(exports.default=DeleteProperty).description="My description",DeleteProperty.flags=Object.assign({},get_1.default.flags);
|
|
@@ -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 GetKeys extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetKeys))["flags"],e=await this.getJira(e,t).dashboardItemPropertyManager.getPropertyKeys(t.dashboardId,t.itemId);this.display(t,e.keys)}}(exports.default=GetKeys).description="Gets keys of all properties for a dashboard item.",GetKeys.flags=Object.assign({dashboardId:core_1.Flags.string({char:"d",description:"The ID of the dashboard.",required:!0}),itemId:core_1.Flags.string({char:"i",description:"The ID of the dashboard item.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -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 GetProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var r=(await this.parse(GetProperty))["flags"],e=await this.getJira(e,r).dashboardItemPropertyManager.getProperty(r.dashboardId,r.itemId,r.propertyKey);this.display(r,e)}}(exports.default=GetProperty).description="Gets the key and value of a dashboard item property",GetProperty.flags=Object.assign({dashboardId:core_1.Flags.string({char:"d",description:"The ID of the dashboard.",required:!0}),itemId:core_1.Flags.string({char:"i",description:"The ID of the dashboard item.",required:!0}),propertyKey:core_1.Flags.string({char:"k",description:"The key of the dashboard item property.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),get_1=tslib_1.__importDefault(require("./get")),set_1=require("../issue-property/set");class SetProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:t,args:r}=await this.parse(SetProperty),e=this.getJira(e,t);let a=r.jsonBody;if(void 0===a&&(!(a=await(0,atlascli_common_1.readStdin)())||0===a.length))throw new Error("You should provide a valid value!");await e.dashboardItemPropertyManager.setProperty(t.dashboardId,t.itemId,t.propertyKey,(0,set_1.isJson)(a)?JSON.parse(a):a)}}(exports.default=SetProperty).description="Sets the value of a dashboard item property. Use this resource in apps to store custom data against a dashboard item. The value of the request body must be a valid, non-empty JSON blob. The maximum length is 32768 characters.",SetProperty.flags=Object.assign({},get_1.default.flags),SetProperty.args=[{name:"jsonBody",description:"Dashboard Item property set 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 AddFavourite extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var a=(await this.parse(AddFavourite))["flags"],t=await t.filterManager.addFavourite(a.filterId);this.display(a,t)}}(exports.default=AddFavourite).description="Add filter to your favourites.",AddFavourite.flags=Object.assign({filterId:core_1.Flags.string({char:"i",description:"Filter's ID.",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"),user_util_1=require("@thestarware/atlascli-common/lib/user-util");class ChangeOwner extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var a=(await this.parse(ChangeOwner))["flags"],t=await(0,user_util_1.getUser)(r,a.user);a.accountId=t.accountId,await r.filterManager.changeOwner(a.filterId,a.accountId)}}(exports.default=ChangeOwner).description="Change filter's owner.",ChangeOwner.flags=Object.assign({filterId:core_1.Flags.string({char:"i",description:"Filter's ID.",required:!0}),user:core_1.Flags.string({char:"u",description:"User's account ID or username or email.",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 CreateFilter extends atlascli_common_1.CommandWithSite{async runWithSite(e){var r=(await this.parse(CreateFilter))["flags"],e=this.getJira(e,r),t=this.removeFlagsFromBase(r),e=await e.filterManager.createFilter(t);this.display(r,e)}}(exports.default=CreateFilter).description="Create a filter.",CreateFilter.flags=Object.assign({name:core_1.Flags.string({char:"n",description:"Filter's name.",required:!0}),description:core_1.Flags.string({char:"d",description:"A description of the filter."}),jql:core_1.Flags.string({description:"The JQL query for the filter. For example, project = SSP AND issuetype = Bug."}),favourite:core_1.Flags.boolean({char:"f",description:"Whether the filter is selected as a favorite."}),editable:core_1.Flags.boolean({description:"Whether the filter is editable or not."}),overrideSharePermissions:core_1.Flags.boolean({description:"Whether share permissions are overridden to enable filters with any share permissions to be created."})},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 DeleteFilter extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteFilter))["flags"];await this.getJira(e,t).filterManager.deleteFilter(t.id)}}(exports.default=DeleteFilter).description="Delete a filter.",DeleteFilter.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"Filter's ID.",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 GetColumns extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetColumns))["flags"],e=await this.getJira(e,t).filterManager.getColumns(t.id);this.log(JSON.stringify(e)),this.display(t,e)}}(exports.default=GetColumns).description="Get Filter's columns.",GetColumns.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"Filter's ID.",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 GetDetails extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(GetDetails))["flags"],e=await this.getJira(e,s).filterManager.getFilter(s.id,JSON.parse(JSON.stringify({expand:s.expand,overrideSharePermissions:s.overrideSharePermissions})));this.display(s,(s.expand.includes("sharedUsers")?e.sharedUsers:e.subscriptions).items)}}(exports.default=GetDetails).description="Get more details about filter.",GetDetails.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"Filter's ID.",required:!0}),expand:core_1.Flags.string({char:"e",description:"Use expand to include additional information about filter in the response.\nOptions:\n•sharedUsers (Returns the users that the filter is shared with.)\n•subscriptions (Returns the users that are subscribed to the filter.)\n\tNOTE:\n\t•Return values are limited to 1000, to access additional data use subscriptions[startIndex:endIndex] or sharedUsers[startIndex:endIndex]",required:!0}),overrideSharePermissions:core_1.Flags.boolean({description:"Whether share permissions are overridden to enable filters with any share permissions to be 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 GetFavourites extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(GetFavourites))["flags"],e=await this.getJira(e,t).filterManager.getFavourite(JSON.parse(JSON.stringify(t)));this.display(t,e)}}(exports.default=GetFavourites).description="Get favourite filters.",GetFavourites.flags=Object.assign({expand:core_1.Flags.string({char:"e",description:"Use expand to include additional information about filter in the response.\nOptions:\n•sharedUsers (Returns the users that the filter is shared with.)\n•subscriptions (Returns the users that are subscribed to the filter.)\n\tNOTE:\n\t•Return values are limited to 1000, to access additional data use subscriptions[startIndex:endIndex] or sharedUsers[startIndex:endIndex]"})},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 GetMyFilters extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var s=(await this.parse(GetMyFilters))["flags"],t=await t.filterManager.getMyFilters(JSON.parse(JSON.stringify(Object.assign({},s))));this.display(s,t)}}(exports.default=GetMyFilters).description="Get your filters.",GetMyFilters.flags=Object.assign({expand:core_1.Flags.string({char:"e",description:"Use expand to include additional information about filter in the response.\nOptions:\n•sharedUsers (Returns the users that the filter is shared with.)\n•subscriptions (Returns the users that are subscribed to the filter.)\n\tNOTE:\n\t•Return values are limited to 1000, to access additional data use subscriptions[startIndex:endIndex] or sharedUsers[startIndex:endIndex]"}),includeFavourites:core_1.Flags.boolean({description:"Include the user's favorite filters in the response."})},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 GetFilter extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=[];const{flags:r,argv:s}=await this.parse(GetFilter),i=this.getJira(e,r),a=(t.push(...r.id||[]),t.push(...Array.isArray(s)?s:"string"==typeof s?[s]:[]),0===t.length&&this.error("No filter id is specified."),JSON.parse(JSON.stringify({expand:r.expand,overrideSharePermissions:r.overrideSharePermissions})));e=t.sort().map(e=>i.filterManager.getFilter(e,a));await Promise.all(e).then(e=>{0<e.length&&this.display(r,e)})}}(exports.default=GetFilter).strict=!1,GetFilter.description="Get a filter.",GetFilter.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"Filter's ID.",multiple:!0}),expand:core_1.Flags.string({char:"e",description:"Use expand to include additional information about filter in the response.\nOptions:\n•sharedUsers (Returns the users that the filter is shared with.)\n•subscriptions (Returns the users that are subscribed to the filter.)\n\tNOTE:\n\t•Return values are limited to 1000, to access additional data use subscriptions[startIndex:endIndex] or sharedUsers[startIndex:endIndex]"}),overrideSharePermissions:core_1.Flags.boolean({description:"Whether share permissions are overridden to enable filters with any share permissions to be returned."})},atlascli_common_1.CommandWithSite.flags),GetFilter.args=[{name:"id",description:"Filter's 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 RemoveFavourite extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,t){var i=(await this.parse(RemoveFavourite))["flags"],t=await t.filterManager.removeFavourite(i.filterId);this.display(i,t)}}(exports.default=RemoveFavourite).description="Remove filter from your favourites.",RemoveFavourite.flags=Object.assign({filterId:core_1.Flags.string({char:"i",description:"Filter's ID.",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 ResetColumns extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(ResetColumns))["flags"];await this.getJira(e,s).filterManager.resetColumns(s.id)}}(exports.default=ResetColumns).description="Reset Filter's columns.",ResetColumns.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"Filter's ID.",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"),project_util_1=require("@thestarware/atlascli-common/lib/project-util"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");class SearchFilters extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,r){var i=(await this.parse(SearchFilters))["flags"],t=tslib_1.__rest(this.removeFlagsFromBase(i),[]),s=await(0,user_util_1.getUser)(r,t.user),o=await(0,group_util_1.getGroup)(r,t.group),o=(t.groupId=o.groupId,t.accountId=s.accountId,delete t.user,delete t.group,this.modifyFilterSearchFlags(i),t.projectId=(await(0,project_util_1.getProject)(r,i.project)).projectId,delete t.project,await r.filterManager.searchFilters(JSON.parse(JSON.stringify(t))));this.display(i,o.values)}modifyFilterSearchFlags(e){(0,atlascli_common_1.modifyFlagsForSearchDirection)(e),e.orderBy=void 0===e.orderDirection?e.orderBy:e.orderDirection+e.orderBy,e.filterName=e.query}}(exports.default=SearchFilters).description="Search for filters.",SearchFilters.flags=Object.assign(Object.assign(Object.assign({},(0,atlascli_common_1.getSearchFlags)()),{user:core_1.Flags.string({char:"u",description:"Owner's account ID or username or email."}),group:core_1.Flags.string({char:"g",description:"The name or id of the group that you want to add users to."}),project:core_1.Flags.string({char:"p",description:"Project ID or key that filters are shared with."}),id:core_1.Flags.integer({char:"i",description:"The list of filter IDs",multiple:!0}),orderBy:core_1.Flags.string({options:["description","favourite_count","id","is_favourite","name","owner","is_shared"]}),expand:core_1.Flags.string({char:"e",description:"Use expand to include additional information about filter in the response.",multiple:!0,options:["description","favourite","favouritedCount,","jql","owner","searchUrl","sharePermissions","editPermissions","isWritable","subscriptions","viewUrl"]}),overrideSharePermissions:core_1.Flags.boolean({description:"Whether share permissions are overridden to enable filters with any share permissions to be 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 SetColumns extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(SetColumns))["flags"];await this.getJira(e,t).filterManager.setColumns(t.id,t.columnKey)}}(exports.default=SetColumns).description="Set Filter's columns.",SetColumns.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"Filter's ID.",required:!0}),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 core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateFilter extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(UpdateFilter))["flags"],e=this.getJira(e,t),i=this.removeFlagsFromBase(t),e=(this.log(JSON.stringify(i)),await e.filterManager.updateFilter(t.id,i));this.display(t,e)}}(exports.default=UpdateFilter).description="Update a filter.",UpdateFilter.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"Filter ID",required:!0}),name:core_1.Flags.string({char:"n",description:"Filter's name."}),description:core_1.Flags.string({char:"d",description:"A description of the filter."}),jql:core_1.Flags.string({description:"The JQL query for the filter. For example, project = SSP AND issuetype = Bug."}),favourite:core_1.Flags.boolean({description:"Whether the filter is editable or not."}),editable:core_1.Flags.boolean({description:"Whether the filter is editable or not.",allowNo:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.parsePermissions=exports.modifyFlagsForRequest=void 0;const tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),get_share_permissions_1=require("./get-share-permissions"),project_util_1=require("@thestarware/atlascli-common/lib/project-util"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");function modifyFlagsForRequest(e,r){switch(e.type){case"group":e.group={name:e.groupName,groupId:e.groupId},delete e.groupName,delete e.groupId;break;case"project":e.project={id:e.projectId},delete e.projectId;break;case"projectRole":e.project={id:e.projectId},e.role={id:e.projectRoleId},delete e.projectId,delete e.projectRoleId;break;case"user":e.user={accountId:e.accountId},delete e.accountId}var s=e.id;return delete e.id,"share"===r?e.sharePermissions=[Object.assign({},e)]:e.editPermissions=[Object.assign({},e)],delete e.type,[s,e]}function parsePermissions(e){e.map(e=>{switch(e.type){case"group":e.group={name:e.group.name};break;case"user":e.user={accountId:e.user.accountId};break;case"role":e.role={projectRoleId:e.project.projectRoleId};break;case"project":e.project={id:e.project.id}}return delete e.id,e})}exports.modifyFlagsForRequest=modifyFlagsForRequest,exports.parsePermissions=parsePermissions;class AddEditPermission extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,r){var s=(await this.parse(AddEditPermission))["flags"],t=tslib_1.__rest(this.removeFlagsFromBase(s),[]),i=await(0,user_util_1.getUser)(r,t.user),o=await(0,project_util_1.getProject)(r,t.project),a=await(0,group_util_1.getGroup)(r,t.group),o=(t.projectId=o.projectId,t.accountId=i.accountId,t.groupId=a.groupId,delete t.project,delete t.user,await r.filterManager.getFilter(s.id,{})),[i,a]=(parsePermissions(o.editPermissions),modifyFlagsForRequest(t)),r=await r.filterManager.updateFilter(i,{editPermissions:null==(t=a.editPermissions)?void 0:t.concat(o.editPermissions)});(0,get_share_permissions_1.permissionMapper)(r.editPermissions),this.display(s,r.editPermissions)}async runWithServerSite(){this.error("If you want to add editPermissions on server, use --edit flag in filter:add-share-permission command.")}}(exports.default=AddEditPermission).description="Add edit permission for a filter.",AddEditPermission.flags=Object.assign({id:core_1.Flags.string({char:"i",description:"Filter ID",required:!0}),type:core_1.Flags.string({description:"The type of edit permissions.",options:["user","group","project","projectRole","global","authenticated","project-unknown","role"],required:!0}),project:core_1.Flags.string({char:"p",description:"Project id or key"}),group:core_1.Flags.string({char:"g",description:"The name or id of the group that you want to add users to."}),projectRoleId:core_1.Flags.string({description:"Role ID",dependsOn:["project"]}),user:core_1.Flags.string({char:"u",description:"User's account Id or email or username."})},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"),jira_cloud_1=require("@thestarware/atlassian-typescript-client/lib/jira/cloud/jira-cloud"),get_share_permissions_1=require("./get-share-permissions"),project_util_1=require("@thestarware/atlascli-common/lib/project-util"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");function modifyFlagsForRequest(e,r){"user"===e.type&&(r instanceof jira_cloud_1.JiraCloud?e.accountId=e.accountIdOrKey:e.userKey=e.accountIdOrKey,delete e.accountIdOrKey);r=e.filterId;return delete e.filterId,[r,e]}class AddSharePermission extends atlascli_common_1.BaseCommandWithCloudOrServerSite{async runWithCloudSite(e,r){var i,t,o,s,a=(await this.parse(AddSharePermission))["flags"];void 0!==a.view||void 0!==a.edit?this.error("View or edit flags are only avaliable for server."):([i,t]=modifyFlagsForRequest(this.removeFlagsFromBase(a),r),s=await(0,user_util_1.getUser)(r,t.user),o=await(0,group_util_1.getGroup)(r,t.group),t.accountIdOrKey=s.accountId,t.groupId=o.groupId,delete t.user,delete t.group,t.projectId=(await(0,project_util_1.getProject)(r,t.project)).projectId,delete t.project,s=await r.filterSharingManager.addSharePermission(i,t),(0,get_share_permissions_1.permissionMapper)(s),this.display(a,s))}async runWithServerSite(e,r){var i=(await this.parse(AddSharePermission))["flags"],[t,o]=modifyFlagsForRequest(this.removeFlagsFromBase(i),r),s=(o.projectId=(await(0,project_util_1.getProject)(r,o.project)).projectId,await(0,group_util_1.getGroup)(r,o.group)),s=(o.group=s.groupName,o.accountIdOrKey=o.userKey,delete o.userkey,delete o.project,delete o.group,await r.filterSharingManager.addSharePermission(t,o));(0,get_share_permissions_1.permissionMapper)(s),this.display(i,s)}}(exports.default=AddSharePermission).description="Add share permission for filter.",AddSharePermission.flags=Object.assign({filterId:core_1.Flags.string({char:"i",description:"Filter ID",required:!0}),type:core_1.Flags.string({description:"The type of share permissions.",options:["user","group","project","projectRole","global","authenticated","project-unknown","role"],required:!0}),project:core_1.Flags.string({char:"p",description:"Project Id or key"}),projectRoleId:core_1.Flags.string({description:"Role ID",dependsOn:["project"]}),group:core_1.Flags.string({char:"g",description:"The name or id of the group that you want to add users to."}),userKey:core_1.Flags.string({exclusive:["user"],description:"The user key. Only applicable to server."}),user:core_1.Flags.string({char:"u",description:"User's account Id or username or email."}),view:core_1.Flags.boolean({description:"View permission. (For server)",allowNo:!0}),edit:core_1.Flags.boolean({description:"Edit permission. (For server)",allowNo:!0}),rights:core_1.Flags.integer({description:"The rights for the share permission."})},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 DeleteSharePermission extends atlascli_common_1.CommandWithSite{async runWithSite(e){var i=(await this.parse(DeleteSharePermission))["flags"];await this.getJira(e,i).filterSharingManager.deleteSharePermission(i.filterId,i.permissionId)}}(exports.default=DeleteSharePermission).description="Delete share permission of a filter.",DeleteSharePermission.flags=Object.assign({filterId:core_1.Flags.string({char:"i",description:"Filter's ID.",required:!0}),permissionId:core_1.Flags.string({description:"Permission ID",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 GetScope extends atlascli_common_1.CommandWithSite{async runWithSite(e,t){e=await this.getJira(e,t).filterSharingManager.getDefaultShareScope();this.display(t,e)}}(exports.default=GetScope).description="Set default sharing scope for filters.";
|
|
@@ -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_share_permissions_1=require("./get-share-permissions");class GetEditPermissions extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(s,e){var i=(await this.parse(GetEditPermissions))["flags"],e=await e.filterManager.getFilter(i.filterId,{});e.editPermissions=(0,get_share_permissions_1.sortPermissions)(e.editPermissions),(0,get_share_permissions_1.permissionMapper)(e.editPermissions),this.display(i,e.editPermissions)}}(exports.default=GetEditPermissions).description="Get filter's share permissions.",GetEditPermissions.flags=Object.assign({filterId:core_1.Flags.string({char:"i",description:"Filter's ID.",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"),get_share_permissions_1=require("./get-share-permissions");class GetSharePermission extends atlascli_common_1.CommandWithSite{async runWithSite(e){var i=(await this.parse(GetSharePermission))["flags"],e=await this.getJira(e,i).filterSharingManager.getSharePermission(i.filterId,i.permissionId);(0,get_share_permissions_1.permissionMapper)(e),this.display(i,e)}}(exports.default=GetSharePermission).description="Get a share permission.",GetSharePermission.flags=Object.assign({filterId:core_1.Flags.string({char:"i",description:"Filter's ID.",required:!0}),permissionId:core_1.Flags.string({description:"Permission ID",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.sortPermissions=exports.permissionMapper=void 0;const core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");function permissionMapper(e){(e=Array.isArray(e)?e:[e]).map(e=>{var r;return e.groupName=(null==(r=e.group)?void 0:r.name)||"",e.groupId=(null==(r=e.group)?void 0:r.groupId)||"",e.projectId=(null==(r=e.project)?void 0:r.id)||"",e.projectKey=(null==(r=e.project)?void 0:r.key)||"",e.projectName=(null==(r=e.project)?void 0:r.name)||"",e.displayName=(null==(r=e.user)?void 0:r.displayName)||"",e.accountId=(null==(r=e.user)?void 0:r.accountId)||"",e.userKey=(null==(r=e.user)?void 0:r.key)||"",e})}function sortPermissions(e){return null==e?void 0:e.sort(function(e,r){e=e.type,r=r.type;return e<r?-1:r<e?1:0})}exports.permissionMapper=permissionMapper,exports.sortPermissions=sortPermissions;class GetSharePermissions extends atlascli_common_1.CommandWithSite{async runWithSite(e){var r=(await this.parse(GetSharePermissions))["flags"],e=await this.getJira(e,r).filterSharingManager.getSharePermissions(r.filterId);permissionMapper(e),e=sortPermissions(e),this.display(r,e)}}(exports.default=GetSharePermissions).description="Get filter's share permissions.",GetSharePermissions.flags=Object.assign({filterId:core_1.Flags.string({char:"i",description:"Filter's ID.",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 SetScope extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(SetScope))["flags"],e=this.getJira(e,t),s=this.removeFlagsFromBase(t),e=await e.filterSharingManager.setDefaultShareScope(s);this.log(JSON.stringify(e)),this.display(t,e)}}(exports.default=SetScope).description="Set default sharing scope for filters.",SetScope.flags=Object.assign({scope:core_1.Flags.string({description:"The scope of the default sharing for new filters and dashboards",options:["GLOBAL","PRIVATE","AUTHENTICATED"],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"),user_util_1=require("@thestarware/atlascli-common/lib/user-util"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");class AddUser extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:r,args:a}=await this.parse(AddUser),e=this.getJira(e,r),o=await(0,user_util_1.getUser)(e,r.user||a.user),t=await(0,group_util_1.getGroup)(e,r.group||a.group),o=o.accountId||o.username,t=(r.groupname=t.groupName,r.groupId=t.groupId,{groupname:r.groupname,groupId:r.groupId}),a=(t.groupname||(t.groupname=a.groupname),await e.groupManager.addUser(t,{name:o,accountId:o}));this.display(r,a)}}(exports.default=AddUser).description="Adds a user to group.",AddUser.flags=Object.assign({group:core_1.Flags.string({description:"The name or id of the group that you want to add users to."}),name:core_1.Flags.string({description:"Name of the user."}),user:core_1.Flags.string({char:"u",description:"The account ID or username or email of the user"})},atlascli_common_1.CommandWithSite.flags),AddUser.args=[{name:"user",description:"The account ID or email or name of the user."},{name:"group",description:"The name of the group that you want to remove users 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 CreateGroup extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:a,args:r}=await this.parse(CreateGroup),e=this.getJira(e,a),r=r.name||a.name,e=(r||this.error("You should provide a name for the group."),await e.groupManager.createGroup({name:r}));await this.display(a,e)}}(exports.default=CreateGroup).strict=!1,CreateGroup.description="Creates a group.",CreateGroup.flags=Object.assign({name:core_1.Flags.string({char:"n",description:"Group name you want to create."})},atlascli_common_1.CommandWithSite.flags),CreateGroup.args=[{name:"name",description:"Group name you want to create."}];
|
|
@@ -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 FindGroups extends atlascli_common_1.CommandWithSite{async runWithSite(e){var s=(await this.parse(FindGroups))["flags"],e=this.getJira(e,s),r=this.removeFlagsFromBase(s),e=await e.groupManager.findGroups(r);this.display(s,e.groups)}}(exports.default=FindGroups).description="Find Groups.",FindGroups.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{query:core_1.Flags.string({char:"q",description:"The string to find in group names."}),maxResults:core_1.Flags.integer({char:"m",description:"The maximum number of groups to return."}),exclude:core_1.Flags.string({char:"e",multiple:!0,description:"Group names that you want to exclude in the result."}),excludeId:core_1.Flags.string({description:"Group IDs to exclude from the result",multiple:!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"),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 GetGroups extends base_command_with_cloud_or_server_site_1.default{async runWithCloudSite(e,s){var a=(await this.parse(GetGroups))["flags"],r=this.removeFlagsFromBase(a),t=r["all"],r=tslib_1.__rest(r,["all"]),o=await s.groupManager.getGroups(r);t&&(o.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(o,r,s.groupManager.getGroups.bind(s.groupManager))),this.display(a,o.values)}async runWithServerSite(e,s){var a=(await this.parse(GetGroups))["flags"],s=await s.groupManager.findGroups({maxResults:a.limit});this.display(a,s.groups)}}(exports.default=GetGroups).description="Gets groups.",GetGroups.flags=Object.assign(Object.assign({applicationKey:core_1.Flags.string({description:"The application key of the product user groups to search for.",options:["jira-servicedesk","jira-software","jira-product-discovery","jira-core"]}),acccesType:core_1.Flags.string({description:"The access level of a group.",options:["site-admin","admin","user"]}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})},(0,atlascli_common_1.getStartAtAndMaxFlags)()),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"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");class GetUsers extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:t,args:a}=await this.parse(GetUsers),e=this.getJira(e,t),s=this.removeFlagsFromBase(t),{all:r,group:o}=s,s=tslib_1.__rest(s,["all","group"]),o=await(0,group_util_1.getGroup)(e,o||a.group),a=(s.groupId=o.groupId,delete s.group,await e.groupManager.getUsers(s));r&&(a.values=await(0,atlascli_common_1.getAllPaginatedResponseValues)(a,s,e.groupManager.getUsers.bind(e.groupManager))),this.display(t,a.values)}}(exports.default=GetUsers).description="Gets users from a group.",GetUsers.flags=Object.assign(Object.assign({group:core_1.Flags.string({char:"g",description:"The name or id of the group that you want to add users to."}),includeInactiveUsers:core_1.Flags.boolean({description:"Include inactive users. (Default: false)",default:!1}),all:core_1.Flags.boolean({description:"Whether all responses are returned.",default:!1,exclusive:["startAt","maxResults"]})},(0,atlascli_common_1.getStartAtAndMaxFlags)()),atlascli_common_1.CommandWithSite.flags),GetUsers.args=[{name:"group",description:"Group's name that you want to get."}];
|
|
@@ -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"),base_command_with_cloud_or_server_site_1=tslib_1.__importDefault(require("@thestarware/atlascli-common/lib/commands/base-command-with-cloud-or-server-site")),remove_1=require("./remove");class GetGroup extends base_command_with_cloud_or_server_site_1.default{async runWithCloudSite(e,r){var t=[];const{flags:a,argv:o}=await this.parse(GetGroup);t.push(...a.group||[]),t.push(...Array.isArray(o)?o:"string"==typeof o?[o]:[]),0===t.length&&this.error("No group id or name are specified.");t=t.map(e=>{e=(0,remove_1.getGroupIdOrName)(e);return e.groupName=e.groupname,delete e.groupname,e}).map(e=>r.groupManager.getGroups(e));await Promise.all(t).then(e=>{0<e.length&&this.display(a,[...new Set(e.reduce((e,r)=>e.concat(r.values),[]))])})}async runWithServerSite(e,r){const t=[],{flags:a,argv:o}=await this.parse(GetGroup);t.push(...a.group||[]),t.push(...Array.isArray(o)?o:"string"==typeof o?[o]:[]),0===t.length&&this.error("No group name is specified.");var s=t.sort().map(e=>r.groupManager.findGroups({query:e}));await Promise.all(s).then(e=>{0<e.length&&(e=[...new Set(e.reduce((e,r)=>e.concat(r.groups),[]).filter(e=>t.includes(e.name)))],this.display(a,e))})}}(exports.default=GetGroup).strict=!1,GetGroup.description="Gets a group.",GetGroup.flags=Object.assign(Object.assign({},atlascli_common_1.CommandWithSite.flags),{group:core_1.Flags.string({char:"g",description:"Group's name or id that you want to get.",multiple:!0})}),GetGroup.args=[{name:"group",description:"Group's name or id that you want to get."}];
|
|
@@ -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_util_1=require("@thestarware/atlascli-common/lib/user-util"),group_util_1=require("@thestarware/atlascli-common/lib/group-util");class RemoveUser extends atlascli_common_1.CommandWithSite{async runWithSite(e){var{flags:r,args:o}=await this.parse(RemoveUser),a=this.getJira(e,r),r=this.removeFlagsFromBase(r),s=await(0,user_util_1.getUser)(a,r.user||o.user),o=await(0,group_util_1.getGroup)(a,r.group||o.group),s=s.accountId||s.username,o=o.groupId||o.groupName;delete r.user,e.cloud&&(r.accountId=s,r.groupId=o),e.cloud||(r.username=s,r.groupname=o),await a.groupManager.removeUser(r)}}(exports.default=RemoveUser).description="Removes user from a group.",RemoveUser.flags=Object.assign({group:core_1.Flags.string({description:"The name or id of the group that you want to add users to."}),name:core_1.Flags.string({description:"Name of the user."}),user:core_1.Flags.string({char:"u",description:"The account ID or email or username of the user"})},atlascli_common_1.CommandWithSite.flags),RemoveUser.args=[{name:"user",description:"The account ID or email or username of the user."},{name:"group",description:"The name of the group that you want to remove users from."}];
|