@thestarware/atlascli-jira 1.2.6 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -24
- package/lib/commands/announcement-banner/get.js +1 -13
- package/lib/commands/announcement-banner/update.js +1 -30
- package/lib/commands/application-role/get-all.js +2 -22
- package/lib/commands/application-role/get.js +1 -19
- package/lib/commands/application-role/update.js +1 -23
- package/lib/commands/attachment/add.js +1 -33
- package/lib/commands/attachment/delete.js +1 -16
- package/lib/commands/attachment/get-content.js +1 -18
- package/lib/commands/attachment/get-jira-settings.js +1 -14
- package/lib/commands/attachment/get-metadata-for-zip.js +1 -36
- package/lib/commands/attachment/get-metadata.js +1 -30
- package/lib/commands/attachment/get-thumbnails.js +1 -17
- package/lib/commands/audit-record/get-associated.js +1 -81
- package/lib/commands/audit-record/get-changed.js +1 -62
- package/lib/commands/avatar/delete-universal-avatar.js +1 -15
- package/lib/commands/avatar/delete-user-avatar.js +1 -21
- package/lib/commands/avatar/get-all-user-avatar.js +1 -0
- package/lib/commands/avatar/get-image-by-id.js +1 -17
- package/lib/commands/avatar/get-image-by-owner.js +1 -17
- package/lib/commands/avatar/get-image-by-type.js +1 -17
- package/lib/commands/avatar/get-system-avatars.js +1 -19
- package/lib/commands/avatar/get-universal-avatars.js +1 -16
- package/lib/commands/avatar/set-user-avatar.js +1 -21
- package/lib/commands/avatar/upload-universal-avatar.js +1 -32
- package/lib/commands/avatar/upload-user-avatar.js +1 -25
- package/lib/commands/comment/add.js +1 -25
- package/lib/commands/comment/delete.js +1 -14
- package/lib/commands/comment/get-for-issue.js +1 -32
- package/lib/commands/comment/get-with-ids.js +1 -31
- package/lib/commands/comment/get.js +1 -22
- package/lib/commands/comment/update.js +1 -26
- package/lib/commands/comment-property/delete-property.js +1 -14
- package/lib/commands/comment-property/get-property-keys.js +1 -15
- package/lib/commands/comment-property/get-property.js +1 -15
- package/lib/commands/comment-property/set-property.js +1 -14
- package/lib/commands/config/add.js +1 -119
- package/lib/commands/config/delete.js +1 -32
- package/lib/commands/config/get-default.js +1 -18
- package/lib/commands/config/list.js +1 -22
- package/lib/commands/config/set-default.js +1 -31
- package/lib/commands/dashboard/add-edit-permission.js +1 -43
- package/lib/commands/dashboard/add-share-permission.js +1 -24
- package/lib/commands/dashboard/copy.js +1 -16
- package/lib/commands/dashboard/create.js +1 -15
- package/lib/commands/dashboard/delete.js +1 -13
- package/lib/commands/dashboard/get-all.js +1 -26
- package/lib/commands/dashboard/get-permissions.js +1 -20
- package/lib/commands/dashboard/get.js +1 -30
- package/lib/commands/dashboard/search.js +1 -35
- package/lib/commands/dashboard/update.js +1 -16
- package/lib/commands/dashboard-gadget/add.js +1 -19
- package/lib/commands/dashboard-gadget/get-availables.js +1 -20
- package/lib/commands/dashboard-gadget/remove.js +1 -13
- package/lib/commands/dashboard-gadget/search.js +1 -16
- package/lib/commands/dashboard-gadget/update.js +1 -18
- package/lib/commands/dashboard-item-property/delete.js +1 -15
- package/lib/commands/dashboard-item-property/get-keys.js +1 -15
- package/lib/commands/dashboard-item-property/get.js +1 -15
- package/lib/commands/dashboard-item-property/set.js +1 -29
- package/lib/commands/filter/add-favourite.js +1 -18
- package/lib/commands/filter/change-owner.js +1 -24
- package/lib/commands/filter/create.js +1 -30
- package/lib/commands/filter/delete.js +1 -18
- package/lib/commands/filter/get-columns.js +1 -20
- package/lib/commands/filter/get-details.js +1 -25
- package/lib/commands/filter/get-favourites.js +1 -18
- package/lib/commands/filter/get-my.js +1 -19
- package/lib/commands/filter/get.js +1 -40
- package/lib/commands/filter/remove-favourite.js +1 -18
- package/lib/commands/filter/reset-columns.js +1 -18
- package/lib/commands/filter/search.js +1 -50
- package/lib/commands/filter/set-columns.js +1 -18
- package/lib/commands/filter/update.js +1 -34
- package/lib/commands/filter-sharing/add-edit-permission.js +1 -106
- package/lib/commands/filter-sharing/add-share-permission.js +1 -84
- package/lib/commands/filter-sharing/delete-permission.js +1 -21
- package/lib/commands/filter-sharing/get-default-scope.js +1 -12
- package/lib/commands/filter-sharing/get-edit-permissions.js +1 -21
- package/lib/commands/filter-sharing/get-permission.js +1 -24
- package/lib/commands/filter-sharing/get-share-permissions.js +1 -52
- package/lib/commands/filter-sharing/set-default-scope.js +1 -21
- package/lib/commands/group/add-user.js +1 -40
- package/lib/commands/group/create.js +1 -28
- package/lib/commands/group/find-groups.js +1 -19
- package/lib/commands/group/get-all.js +1 -24
- package/lib/commands/group/get-users.js +1 -32
- package/lib/commands/group/get.js +1 -58
- package/lib/commands/group/remove-user.js +1 -45
- package/lib/commands/group/remove.js +1 -45
- package/lib/commands/group-and-user-picker/find-groups.js +1 -62
- package/lib/commands/group-and-user-picker/find-users.js +1 -91
- package/lib/commands/issue/archive.js +1 -22
- package/lib/commands/issue/assign.js +1 -29
- package/lib/commands/issue/create.js +1 -306
- package/lib/commands/issue/delete.js +1 -20
- package/lib/commands/issue/edit.js +1 -49
- package/lib/commands/issue/get-changelogs.js +1 -42
- package/lib/commands/issue/get-create-metadata.js +1 -83
- package/lib/commands/issue/get-edit-metadata.js +1 -46
- package/lib/commands/issue/get-events.js +1 -13
- package/lib/commands/issue/get-transitions.js +1 -38
- package/lib/commands/issue/get.js +1 -52
- package/lib/commands/issue/restore.js +1 -15
- package/lib/commands/issue/send-notifications.js +1 -49
- package/lib/commands/issue/transition.js +1 -61
- package/lib/commands/issue-field/create.js +1 -18
- package/lib/commands/issue-field/delete.js +1 -31
- package/lib/commands/issue-field/get-all.js +1 -18
- package/lib/commands/issue-field/move-trash.js +1 -18
- package/lib/commands/issue-field/restore-trash.js +1 -18
- package/lib/commands/issue-field/search-trash.js +1 -23
- package/lib/commands/issue-field/search.js +1 -24
- package/lib/commands/issue-field/update.js +1 -18
- package/lib/commands/issue-field-configuration/assign-issue-type.js +1 -25
- package/lib/commands/issue-field-configuration/assign-scheme-to-project.js +1 -24
- package/lib/commands/issue-field-configuration/create-scheme.js +1 -22
- package/lib/commands/issue-field-configuration/create.js +1 -22
- package/lib/commands/issue-field-configuration/delete-scheme.js +1 -18
- package/lib/commands/issue-field-configuration/delete.js +1 -18
- package/lib/commands/issue-field-configuration/get-all-issue-type-items.js +1 -23
- package/lib/commands/issue-field-configuration/get-all-schemes.js +1 -24
- package/lib/commands/issue-field-configuration/get-all.js +1 -27
- package/lib/commands/issue-field-configuration/get-items.js +1 -24
- package/lib/commands/issue-field-configuration/get-project-schemes.js +1 -42
- package/lib/commands/issue-field-configuration/remove-issue-types.js +1 -23
- package/lib/commands/issue-field-configuration/update-items.js +1 -29
- package/lib/commands/issue-field-configuration/update-scheme.js +1 -23
- package/lib/commands/issue-field-configuration/update.js +1 -25
- package/lib/commands/issue-field-context/add-issue-types.js +1 -26
- package/lib/commands/issue-field-context/assign-to-projects.js +1 -30
- package/lib/commands/issue-field-context/create.js +1 -38
- package/lib/commands/issue-field-context/delete.js +1 -20
- package/lib/commands/issue-field-context/get-all.js +1 -27
- package/lib/commands/issue-field-context/get-contexts-for-projects-and-issue-types.js +1 -26
- package/lib/commands/issue-field-context/get-default-values.js +1 -29
- package/lib/commands/issue-field-context/get-issue-types.js +1 -27
- package/lib/commands/issue-field-context/get-project-mappings.js +1 -37
- package/lib/commands/issue-field-context/remove-from-projects.js +1 -31
- package/lib/commands/issue-field-context/remove-issue-types.js +1 -26
- package/lib/commands/issue-field-context/set-default-values.js +1 -31
- package/lib/commands/issue-field-context/update.js +1 -28
- package/lib/commands/issue-field-option/create-for-context.js +1 -26
- package/lib/commands/issue-field-option/delete-for-context.js +1 -22
- package/lib/commands/issue-field-option/get-for-context.js +1 -25
- package/lib/commands/issue-field-option/get.js +1 -34
- package/lib/commands/issue-field-option/reorder-for-context.js +1 -25
- package/lib/commands/issue-field-option/update-for-context.js +1 -26
- package/lib/commands/issue-link/create.js +1 -89
- package/lib/commands/issue-link/delete.js +1 -26
- package/lib/commands/issue-link/get.js +1 -48
- package/lib/commands/issue-link-type/create.js +1 -26
- package/lib/commands/issue-link-type/delete.js +1 -14
- package/lib/commands/issue-link-type/get-all.js +1 -14
- package/lib/commands/issue-link-type/get.js +1 -30
- package/lib/commands/issue-link-type/update.js +1 -24
- package/lib/commands/issue-navigator-setting/get-columns.js +1 -14
- package/lib/commands/issue-navigator-setting/set-columns.js +1 -14
- package/lib/commands/issue-priority/create.js +1 -35
- package/lib/commands/issue-priority/delete.js +1 -28
- package/lib/commands/issue-priority/move.js +1 -27
- package/lib/commands/issue-priority/search.js +1 -44
- package/lib/commands/issue-priority/set-default.js +1 -20
- package/lib/commands/issue-priority/update.js +1 -38
- package/lib/commands/issue-property/delete-bulk.js +1 -33
- package/lib/commands/issue-property/delete.js +1 -14
- package/lib/commands/issue-property/get-keys.js +1 -15
- package/lib/commands/issue-property/get.js +1 -21
- package/lib/commands/issue-property/set-bulk.js +1 -49
- package/lib/commands/issue-property/set-by-issue-bulk.js +1 -47
- package/lib/commands/issue-property/set-by-list-bulk.js +1 -34
- package/lib/commands/issue-property/set.js +1 -38
- package/lib/commands/issue-remote-link/create.js +1 -56
- package/lib/commands/issue-remote-link/delete-by-global-id.js +1 -16
- package/lib/commands/issue-remote-link/delete.js +1 -15
- package/lib/commands/issue-remote-link/get-all.js +1 -27
- package/lib/commands/issue-remote-link/get.js +1 -22
- package/lib/commands/issue-remote-link/update.js +1 -40
- package/lib/commands/issue-resolution/create.js +1 -20
- package/lib/commands/issue-resolution/delete.js +1 -28
- package/lib/commands/issue-resolution/get-all.js +1 -13
- package/lib/commands/issue-resolution/get.js +1 -33
- package/lib/commands/issue-resolution/move.js +1 -26
- package/lib/commands/issue-resolution/search.js +1 -40
- package/lib/commands/issue-resolution/set-default.js +1 -17
- package/lib/commands/issue-resolution/update.js +1 -25
- package/lib/commands/issue-search/get-picker-suggestions.js +1 -35
- package/lib/commands/issue-search/search.js +1 -39
- package/lib/commands/issue-search/test-jql.js +1 -29
- package/lib/commands/issue-security-level/get-members.js +1 -46
- package/lib/commands/issue-security-level/get.js +1 -34
- package/lib/commands/issue-security-scheme/associate-security-scheme.js +1 -0
- package/lib/commands/issue-security-scheme/get-all.js +1 -14
- package/lib/commands/issue-security-scheme/get-levels.js +1 -20
- package/lib/commands/issue-security-scheme/get.js +1 -34
- package/lib/commands/issue-type/create.js +1 -20
- package/lib/commands/issue-type/delete.js +1 -14
- package/lib/commands/issue-type/get-all-for-projects.js +1 -17
- package/lib/commands/issue-type/get-all.js +1 -14
- package/lib/commands/issue-type/get-alternatives.js +1 -15
- package/lib/commands/issue-type/get.js +1 -30
- package/lib/commands/issue-type/set-avatar.js +1 -14
- package/lib/commands/issue-type/update.js +1 -18
- package/lib/commands/issue-type/upload-avatar.js +1 -38
- package/lib/commands/issue-type-property/delete.js +1 -14
- package/lib/commands/issue-type-property/get-keys.js +1 -15
- package/lib/commands/issue-type-property/get.js +1 -16
- package/lib/commands/issue-type-property/set.js +1 -28
- package/lib/commands/issue-type-scheme/add-issue-types.js +1 -23
- package/lib/commands/issue-type-scheme/assign-to-project.js +1 -20
- package/lib/commands/issue-type-scheme/create.js +1 -20
- package/lib/commands/issue-type-scheme/delete.js +1 -14
- package/lib/commands/issue-type-scheme/get-for-projects.js +1 -32
- package/lib/commands/issue-type-scheme/get-issue-types.js +1 -20
- package/lib/commands/issue-type-scheme/get-mappings.js +1 -20
- package/lib/commands/issue-type-scheme/get-projects.js +1 -20
- package/lib/commands/issue-type-scheme/move-issue-types.js +1 -16
- package/lib/commands/issue-type-scheme/remove-all-projects.js +1 -14
- package/lib/commands/issue-type-scheme/remove-issue-type.js +1 -13
- package/lib/commands/issue-type-scheme/remove-project.js +1 -20
- package/lib/commands/issue-type-scheme/search.js +1 -47
- package/lib/commands/issue-type-scheme/set-projects.js +1 -20
- package/lib/commands/issue-type-scheme/update.js +1 -40
- package/lib/commands/issue-type-screen-scheme/add-mappings.js +1 -20
- package/lib/commands/issue-type-screen-scheme/assign-to-project.js +1 -16
- package/lib/commands/issue-type-screen-scheme/create.js +1 -27
- package/lib/commands/issue-type-screen-scheme/delete.js +1 -13
- package/lib/commands/issue-type-screen-scheme/get-for-projects.js +1 -32
- package/lib/commands/issue-type-screen-scheme/get-items.js +1 -25
- package/lib/commands/issue-type-screen-scheme/get-projects.js +1 -20
- package/lib/commands/issue-type-screen-scheme/remove-mappings.js +1 -13
- package/lib/commands/issue-type-screen-scheme/search.js +1 -27
- package/lib/commands/issue-type-screen-scheme/set-default-screen.js +1 -13
- package/lib/commands/issue-type-screen-scheme/update.js +1 -13
- package/lib/commands/issue-vote/add.js +1 -18
- package/lib/commands/issue-vote/delete.js +1 -18
- package/lib/commands/issue-vote/get-all.js +1 -27
- package/lib/commands/issue-watcher/add.js +1 -25
- package/lib/commands/issue-watcher/delete.js +1 -25
- package/lib/commands/issue-watcher/get-all.js +1 -27
- package/lib/commands/issue-watcher/get-bulk.js +1 -24
- package/lib/commands/jira-expression/analyse.js +1 -78
- package/lib/commands/jira-expression/evaluate.js +1 -103
- package/lib/commands/jira-settings/get-advanced.js +1 -14
- package/lib/commands/jira-settings/get-globals.js +1 -14
- package/lib/commands/jira-settings/get-properties.js +1 -19
- package/lib/commands/jira-settings/set-property.js +1 -15
- package/lib/commands/jql/convert-user-identifiers.js +1 -14
- package/lib/commands/jql/get-auto-complete-suggestions.js +1 -16
- package/lib/commands/jql/get-reference-data.js +1 -39
- package/lib/commands/jql/parse.js +1 -22
- package/lib/commands/jql/sanitize.js +1 -26
- package/lib/commands/label/get-all.js +1 -29
- package/lib/commands/license/get.js +1 -13
- package/lib/commands/myself/change-password.js +1 -21
- package/lib/commands/myself/delete-preference.js +1 -17
- package/lib/commands/myself/get-locale.js +1 -13
- package/lib/commands/myself/get-preference.js +1 -27
- package/lib/commands/myself/get.js +1 -21
- package/lib/commands/myself/set-preference.js +1 -37
- package/lib/commands/myself/update-user.js +1 -24
- package/lib/commands/notification-scheme/add.js +1 -75
- package/lib/commands/notification-scheme/create.js +1 -80
- package/lib/commands/notification-scheme/delete-notification.js +1 -22
- package/lib/commands/notification-scheme/delete.js +1 -18
- package/lib/commands/notification-scheme/get-all.js +1 -57
- package/lib/commands/notification-scheme/get-projects.js +1 -29
- package/lib/commands/notification-scheme/get.js +1 -75
- package/lib/commands/notification-scheme/update.js +1 -23
- package/lib/commands/permission/check-global-permission.js +1 -53
- package/lib/commands/permission/check-issue-permission.js +1 -60
- package/lib/commands/permission/check-project-permission.js +1 -65
- package/lib/commands/permission/get-all.js +1 -23
- package/lib/commands/permission/get-my.js +1 -33
- package/lib/commands/permission/get-permitted.js +1 -30
- package/lib/commands/permission-scheme/create-grant.js +1 -54
- package/lib/commands/permission-scheme/create-scheme.js +1 -21
- package/lib/commands/permission-scheme/delete-grant.js +1 -23
- package/lib/commands/permission-scheme/delete-scheme.js +1 -18
- package/lib/commands/permission-scheme/get-all-grants.js +1 -39
- package/lib/commands/permission-scheme/get-all.js +1 -38
- package/lib/commands/permission-scheme/get-grant.js +1 -65
- package/lib/commands/permission-scheme/get.js +1 -24
- package/lib/commands/project/archive.js +1 -15
- package/lib/commands/project/create.js +1 -26
- package/lib/commands/project/delete.js +1 -15
- package/lib/commands/project/get-all-issue-types.js +1 -16
- package/lib/commands/project/get-all.js +1 -16
- package/lib/commands/project/get-issue-type-hierarchy.js +1 -15
- package/lib/commands/project/get-notification-schema.js +1 -16
- package/lib/commands/project/get.js +1 -31
- package/lib/commands/project/project.js +1 -40
- package/lib/commands/project/restore.js +1 -18
- package/lib/commands/project/search.js +1 -28
- package/lib/commands/project/unarchive.js +1 -18
- package/lib/commands/project/update.js +1 -38
- package/lib/commands/project-avatar/delete.js +1 -14
- package/lib/commands/project-avatar/get-all.js +1 -21
- package/lib/commands/project-avatar/set.js +1 -19
- package/lib/commands/project-avatar/upload.js +1 -51
- package/lib/commands/project-category/create.js +1 -16
- package/lib/commands/project-category/delete.js +1 -15
- package/lib/commands/project-category/get-all.js +1 -15
- package/lib/commands/project-category/get.js +1 -31
- package/lib/commands/project-category/update.js +1 -16
- package/lib/commands/project-component/create.js +1 -52
- package/lib/commands/project-component/delete.js +1 -15
- package/lib/commands/project-component/get-all.js +1 -21
- package/lib/commands/project-component/get-issues-count.js +1 -19
- package/lib/commands/project-component/get.js +1 -31
- package/lib/commands/project-component/search.js +1 -20
- package/lib/commands/project-component/update.js +1 -19
- package/lib/commands/project-email/get-sender.js +1 -17
- package/lib/commands/project-email/set-sender.js +1 -16
- package/lib/commands/project-feature/get.js +1 -36
- package/lib/commands/project-feature/set.js +1 -29
- package/lib/commands/project-key-and-name-validation/get-valid-key.js +1 -15
- package/lib/commands/project-key-and-name-validation/get-valid-name.js +1 -15
- package/lib/commands/project-key-and-name-validation/validate-key.js +1 -21
- package/lib/commands/project-permission-scheme/get-issue-security-levels.js +1 -17
- package/lib/commands/project-permission-scheme/get-issue-security-scheme-levels.js +1 -12
- package/lib/commands/project-permission-scheme/get-issue-security-scheme.js +1 -16
- package/lib/commands/project-permission-scheme/get-permissions.js +1 -11
- package/lib/commands/project-permission-scheme/get.js +1 -16
- package/lib/commands/project-permission-scheme/set.js +1 -16
- package/lib/commands/project-property/delete.js +1 -15
- package/lib/commands/project-property/get-keys.js +1 -17
- package/lib/commands/project-property/get.js +1 -16
- package/lib/commands/project-property/set.js +1 -19
- package/lib/commands/project-role/create.js +1 -16
- package/lib/commands/project-role/delete.js +1 -15
- package/lib/commands/project-role/get-all.js +1 -16
- package/lib/commands/project-role/get-role.js +1 -34
- package/lib/commands/project-role/get-roles-and-details.js +1 -19
- package/lib/commands/project-role/get-roles.js +1 -19
- package/lib/commands/project-role/get.js +1 -31
- package/lib/commands/project-role/project-role.js +1 -15
- package/lib/commands/project-role/update-partial.js +1 -24
- package/lib/commands/project-role/update.js +1 -15
- package/lib/commands/project-role-actor/add-actors.js +1 -42
- package/lib/commands/project-role-actor/add-default-actors.js +1 -42
- package/lib/commands/project-role-actor/delete-actors.js +1 -35
- package/lib/commands/project-role-actor/delete-default-actors.js +1 -30
- package/lib/commands/project-role-actor/get.js +1 -35
- package/lib/commands/project-role-actor/set-actors.js +1 -37
- package/lib/commands/project-type/check-accessible.js +1 -15
- package/lib/commands/project-type/get-all.js +1 -14
- package/lib/commands/project-type/get-licensed.js +1 -14
- package/lib/commands/project-type/get.js +1 -30
- package/lib/commands/project-type/update.js +1 -18
- package/lib/commands/project-version/create.js +1 -19
- package/lib/commands/project-version/delete-and-replace.js +1 -25
- package/lib/commands/project-version/get-all.js +1 -16
- package/lib/commands/project-version/get-related-issue-count.js +1 -16
- package/lib/commands/project-version/get-unresolved-issue-count.js +1 -16
- package/lib/commands/project-version/get.js +1 -31
- package/lib/commands/project-version/merge.js +2 -15
- package/lib/commands/project-version/move.js +1 -15
- package/lib/commands/project-version/search.js +1 -19
- package/lib/commands/project-version/update.js +1 -16
- package/lib/commands/screen/add-field-to-default-screen.js +1 -18
- package/lib/commands/screen/create.js +1 -15
- package/lib/commands/screen/delete.js +1 -13
- package/lib/commands/screen/get-all.js +1 -44
- package/lib/commands/screen/get-available-fields.js +1 -19
- package/lib/commands/screen/get-field-screens.js +1 -24
- package/lib/commands/screen/get-workflows.js +1 -36
- package/lib/commands/screen/update.js +1 -16
- package/lib/commands/screen-scheme/create.js +1 -25
- package/lib/commands/screen-scheme/delete.js +1 -13
- package/lib/commands/screen-scheme/get-all.js +1 -30
- package/lib/commands/screen-scheme/update.js +1 -31
- package/lib/commands/screen-tab/create.js +1 -17
- package/lib/commands/screen-tab/delete.js +1 -14
- package/lib/commands/screen-tab/get-all.js +1 -17
- package/lib/commands/screen-tab/move.js +1 -14
- package/lib/commands/screen-tab/update.js +1 -15
- package/lib/commands/screen-tab-field/add.js +1 -19
- package/lib/commands/screen-tab-field/get-all.js +1 -17
- package/lib/commands/screen-tab-field/move.js +1 -16
- package/lib/commands/screen-tab-field/remove.js +1 -17
- package/lib/commands/server-info/get.js +1 -14
- package/lib/commands/server-info/jmx.js +1 -15
- package/lib/commands/status/create.js +1 -31
- package/lib/commands/status/delete.js +1 -24
- package/lib/commands/status/get-usages.js +1 -24
- package/lib/commands/status/get.js +1 -53
- package/lib/commands/status/search.js +1 -44
- package/lib/commands/status/status-command.js +1 -31
- package/lib/commands/status/update.js +1 -24
- package/lib/commands/task/cancel.js +1 -13
- package/lib/commands/task/get.js +1 -29
- package/lib/commands/time-tracking/get-all.js +1 -13
- package/lib/commands/time-tracking/get-setting.js +1 -13
- package/lib/commands/time-tracking/get.js +1 -13
- package/lib/commands/time-tracking/select.js +1 -19
- package/lib/commands/time-tracking/set.js +1 -31
- package/lib/commands/user/add-user-to-application.js +1 -21
- package/lib/commands/user/change-password.js +1 -18
- package/lib/commands/user/create.js +1 -45
- package/lib/commands/user/delete.js +1 -24
- package/lib/commands/user/get-all.js +1 -32
- package/lib/commands/user/get-default-columns.js +1 -39
- package/lib/commands/user/get-email.js +1 -25
- package/lib/commands/user/get-user-groups.js +1 -26
- package/lib/commands/user/get.js +1 -40
- package/lib/commands/user/remove-user-from-application.js +1 -21
- package/lib/commands/user/reset-default-columns.js +1 -33
- package/lib/commands/user/set-default-columns.js +1 -26
- package/lib/commands/user/update.js +1 -30
- package/lib/commands/user/user-command.js +1 -22
- package/lib/commands/user-property/delete.js +1 -32
- package/lib/commands/user-property/get-all-keys.js +1 -32
- package/lib/commands/user-property/get-user-property.js +1 -34
- package/lib/commands/user-property/set.js +1 -39
- package/lib/commands/user-search/accounts-with-query.js +1 -27
- package/lib/commands/user-search/assignable-users-bulk.js +1 -21
- package/lib/commands/user-search/assignable-users.js +1 -21
- package/lib/commands/user-search/find.js +1 -23
- package/lib/commands/user-search/with-permission.js +1 -24
- package/lib/commands/user-search/with-query.js +1 -27
- package/lib/commands/workflow/create.js +1 -36
- package/lib/commands/workflow/delete.js +1 -13
- package/lib/commands/workflow/get-projects.js +1 -14
- package/lib/commands/workflow/get-schemes.js +1 -14
- package/lib/commands/workflow/get-statuses-properties.js +1 -26
- package/lib/commands/workflow/get-statuses.js +1 -14
- package/lib/commands/workflow/get-transitions-rules.js +1 -44
- package/lib/commands/workflow/get-transitions.js +1 -21
- package/lib/commands/workflow/search.js +1 -66
- package/lib/commands/workflow-scheme/create.js +3 -59
- package/lib/commands/workflow-scheme/delete-default-workflow.js +1 -15
- package/lib/commands/workflow-scheme/delete-issue-types-for-workflow.js +1 -16
- package/lib/commands/workflow-scheme/delete-workflow-for-issue-type.js +1 -16
- package/lib/commands/workflow-scheme/delete.js +1 -14
- package/lib/commands/workflow-scheme/get-all.js +1 -20
- package/lib/commands/workflow-scheme/get-default-workflow.js +1 -15
- package/lib/commands/workflow-scheme/get-issue-types-for-workflows.js +1 -30
- package/lib/commands/workflow-scheme/get-workflow-for-issue-type.js +1 -15
- package/lib/commands/workflow-scheme/get.js +1 -31
- package/lib/commands/workflow-scheme/set-issue-types-for-workflow.js +1 -21
- package/lib/commands/workflow-scheme/set-workflow-for-issue-type.js +1 -27
- package/lib/commands/workflow-scheme/update-default-workflow.js +1 -15
- package/lib/commands/workflow-scheme/update.js +3 -61
- package/lib/commands/workflow-scheme-draft/create.js +1 -15
- package/lib/commands/workflow-scheme-draft/delete-default-workflow.js +1 -15
- package/lib/commands/workflow-scheme-draft/delete-issue-types-for-workflow.js +1 -16
- package/lib/commands/workflow-scheme-draft/delete-workflow-for-issue-type.js +1 -16
- package/lib/commands/workflow-scheme-draft/delete.js +1 -14
- package/lib/commands/workflow-scheme-draft/get-default-workflow.js +1 -15
- package/lib/commands/workflow-scheme-draft/get-issue-types-for-workflows.js +1 -30
- package/lib/commands/workflow-scheme-draft/get-workflow-for-issue-type.js +1 -15
- package/lib/commands/workflow-scheme-draft/get.js +1 -30
- package/lib/commands/workflow-scheme-draft/publish.js +1 -21
- package/lib/commands/workflow-scheme-draft/set-issue-types-for-workflow.js +1 -21
- package/lib/commands/workflow-scheme-draft/set-workflow-for-issue-type.js +1 -27
- package/lib/commands/workflow-scheme-draft/update-default-workflow.js +1 -15
- package/lib/commands/workflow-scheme-draft/update.js +3 -61
- package/lib/commands/workflow-scheme-project-association/assign.js +1 -18
- package/lib/commands/workflow-scheme-project-association/get-all.js +1 -30
- package/lib/commands/workflow-status/get-all.js +1 -14
- package/lib/commands/workflow-status/get.js +1 -30
- package/lib/commands/workflow-status-category/get-all.js +1 -14
- package/lib/commands/workflow-status-category/get.js +1 -15
- package/lib/commands/workflow-transition-property/create.js +1 -17
- package/lib/commands/workflow-transition-property/delete.js +1 -16
- package/lib/commands/workflow-transition-property/get.js +1 -20
- package/lib/commands/workflow-transition-property/update.js +1 -17
- package/lib/commands/worklog/add.js +1 -40
- package/lib/commands/worklog/delete.js +1 -21
- package/lib/commands/worklog/get-deleted.js +1 -21
- package/lib/commands/worklog/get-for-issue.js +1 -28
- package/lib/commands/worklog/get-updated.js +1 -17
- package/lib/commands/worklog/get-with-ids.js +1 -30
- package/lib/commands/worklog/get.js +1 -38
- package/lib/commands/worklog/update.js +1 -23
- package/lib/commands/worklog-property/delete.js +1 -14
- package/lib/commands/worklog-property/get-keys.js +1 -15
- package/lib/commands/worklog-property/get.js +1 -15
- package/lib/commands/worklog-property/set-property.js +1 -14
- package/lib/index.js +1 -5
- package/package.json +27 -32
- package/lib/commands/avatar/get-all-user-avatars.js +0 -22
- package/lib/oclif-config.js +0 -8
|
@@ -1,20 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
4
|
-
class GetAvaliableGadget extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
5
|
-
async runWithCloudSite(site, jira) {
|
|
6
|
-
const { flags } = await this.parse(GetAvaliableGadget);
|
|
7
|
-
const res = await jira.dashboardGadgetManager.getAvaliableGadgets();
|
|
8
|
-
this.display(flags, this.modifyResponse(res.gadgets));
|
|
9
|
-
}
|
|
10
|
-
modifyResponse(gadgets) {
|
|
11
|
-
gadgets.forEach(gadgetInfo => {
|
|
12
|
-
if (!gadgetInfo.moduleKey)
|
|
13
|
-
gadgetInfo.moduleKey = '';
|
|
14
|
-
});
|
|
15
|
-
return gadgets;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.default = GetAvaliableGadget;
|
|
19
|
-
GetAvaliableGadget.description = 'Gets a list of all available gadgets that can be added to all dashboards.';
|
|
20
|
-
GetAvaliableGadget.flags = atlascli_common_1.CommandWithSite.flags;
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let atlascli_common_1=require("@thestarware/atlascli-common");class GetAvaliableGadget extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(a,e){var t=(await this.parse(GetAvaliableGadget)).flags,e=await e.dashboardGadgetManager.getAvaliableGadgets();this.display(t,this.modifyResponse(e.gadgets))}modifyResponse(a){return a.forEach(a=>{a.moduleKey||(a.moduleKey="")}),a}}(exports.default=GetAvaliableGadget).description="Gets a list of all available gadgets that can be added to all dashboards.",GetAvaliableGadget.flags=atlascli_common_1.CommandWithSite.flags;
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@oclif/core");
|
|
4
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
-
class RemoveGadget extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
6
|
-
async runWithCloudSite(site, jira) {
|
|
7
|
-
const { flags } = await this.parse(RemoveGadget);
|
|
8
|
-
await jira.dashboardGadgetManager.removeGadget(flags.dashboardId, flags.gadgetId);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
exports.default = RemoveGadget;
|
|
12
|
-
RemoveGadget.description = 'Removes a gadget from dashboard.';
|
|
13
|
-
RemoveGadget.flags = Object.assign({ dashboardId: core_1.Flags.string({ char: 'd', description: 'Dashboard ID.', required: true }), gadgetId: core_1.Flags.string({ char: 'g', description: 'Gadget ID.', required: true }) }, atlascli_common_1.BaseCommandWithCloudSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class RemoveGadget extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var d=(await this.parse(RemoveGadget)).flags;await a.dashboardGadgetManager.removeGadget(d.dashboardId,d.gadgetId)}}(exports.default=RemoveGadget).description="Removes a gadget from dashboard.",RemoveGadget.flags=Object.assign({dashboardId:core_1.Flags.string({char:"d",description:"Dashboard ID.",required:!0}),gadgetId:core_1.Flags.string({char:"g",description:"Gadget ID.",required:!0})},atlascli_common_1.BaseCommandWithCloudSite.flags);
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const core_1 = require("@oclif/core");
|
|
5
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
6
|
-
class SearchGadgets extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
7
|
-
async runWithCloudSite(site, jira) {
|
|
8
|
-
const { flags } = await this.parse(SearchGadgets);
|
|
9
|
-
const _a = this.removeFlagsFromBase(flags), { dashboardId } = _a, query = tslib_1.__rest(_a, ["dashboardId"]);
|
|
10
|
-
const res = await jira.dashboardGadgetManager.getGadgets(dashboardId, query);
|
|
11
|
-
this.display(flags, res.gadgets);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.default = SearchGadgets;
|
|
15
|
-
SearchGadgets.description = 'Searches dashboard gadgets.';
|
|
16
|
-
SearchGadgets.flags = Object.assign({ dashboardId: core_1.Flags.string({ char: 'd', description: 'Dashboard ID.', required: true }), moduleKey: core_1.Flags.string({ char: 'm', description: 'Module key. You can provide multiple value by repeating this flag.', multiple: true }), uri: core_1.Flags.string({ char: 'u', description: 'Gadget uri. You can provide multiple value by repeating this flag.', multiple: true }), gadgetId: core_1.Flags.integer({ char: 'g', description: 'Gadget ID. You can provide multiple value by repeating this flag.', multiple: true }) }, atlascli_common_1.BaseCommandWithCloudSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class SearchGadgets extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(SearchGadgets)).flags,r=this.removeFlagsFromBase(t),s=r.dashboardId,r=tslib_1.__rest(r,["dashboardId"]),a=await a.dashboardGadgetManager.getGadgets(s,r);this.display(t,a.gadgets)}}(exports.default=SearchGadgets).description="Searches dashboard gadgets.",SearchGadgets.flags=Object.assign({dashboardId:core_1.Flags.string({char:"d",description:"Dashboard ID.",required:!0}),moduleKey:core_1.Flags.string({char:"m",description:"Module key. You can provide multiple value by repeating this flag.",multiple:!0}),uri:core_1.Flags.string({char:"u",description:"Gadget uri. You can provide multiple value by repeating this flag.",multiple:!0}),gadgetId:core_1.Flags.integer({char:"g",description:"Gadget ID. You can provide multiple value by repeating this flag.",multiple:!0})},atlascli_common_1.BaseCommandWithCloudSite.flags);
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const core_1 = require("@oclif/core");
|
|
5
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
6
|
-
class UpdateGadget extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
7
|
-
async runWithCloudSite(site, jira) {
|
|
8
|
-
const { flags } = await this.parse(UpdateGadget);
|
|
9
|
-
const _a = this.removeFlagsFromBase(flags), { dashboardId, gadgetId } = _a, body = tslib_1.__rest(_a, ["dashboardId", "gadgetId"]);
|
|
10
|
-
await jira.dashboardGadgetManager.updateGadget(dashboardId, gadgetId, body);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = UpdateGadget;
|
|
14
|
-
UpdateGadget.description = 'Updates a dashboard gadget.';
|
|
15
|
-
UpdateGadget.flags = Object.assign({ dashboardId: core_1.Flags.string({ char: 'd', description: 'Dashboard ID.', required: true }), gadgetId: core_1.Flags.string({ char: 'g', description: 'Gadget ID.', required: true }), 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({
|
|
16
|
-
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',
|
|
17
|
-
parse: input => (0, atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(input, 'position', ['row', 'column'])[0],
|
|
18
|
-
}), title: core_1.Flags.string({ description: 'The title of the gadget.' }) }, atlascli_common_1.BaseCommandWithCloudSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class UpdateGadget extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(UpdateGadget)).flags,t=this.removeFlagsFromBase(t),{dashboardId:o,gadgetId:r}=t,t=tslib_1.__rest(t,["dashboardId","gadgetId"]);await a.dashboardGadgetManager.updateGadget(o,r,t)}}(exports.default=UpdateGadget).description="Updates a dashboard gadget.",UpdateGadget.flags=Object.assign({dashboardId:core_1.Flags.string({char:"d",description:"Dashboard ID.",required:!0}),gadgetId:core_1.Flags.string({char:"g",description:"Gadget ID.",required:!0}),color:core_1.Flags.string({description:"The color of the gadget.",options:["blue","red","yellow","green","cyan","purple","gray","white"]}),position:core_1.Flags.string({description:"The position of the gadget. When the gadget is placed into the position, other gadgets in the same column are moved down to accommodate it. KEYS: [row, column]\nExample usage: --position=row=1,column=2",parse:e=>(0,atlascli_common_1.commaSeperatedListOfKeyValuePairsToJsonObjectArrayMapper)(e,"position",["row","column"])[0]}),title:core_1.Flags.string({description:"The title of the gadget."})},atlascli_common_1.BaseCommandWithCloudSite.flags);
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
-
const get_1 = tslib_1.__importDefault(require("./get"));
|
|
6
|
-
class DeleteProperty extends atlascli_common_1.CommandWithSite {
|
|
7
|
-
async runWithSite(site) {
|
|
8
|
-
const { flags } = await this.parse(DeleteProperty);
|
|
9
|
-
const jira = this.getJira(site, flags);
|
|
10
|
-
await jira.dashboardItemPropertyManager.deleteProperty(flags.dashboardId, flags.itemId, flags.propertyKey);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = DeleteProperty;
|
|
14
|
-
DeleteProperty.description = 'My description';
|
|
15
|
-
DeleteProperty.flags = Object.assign({}, get_1.default.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),get_1=tslib_1.__importDefault(require("./get"));class DeleteProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=(await this.parse(DeleteProperty)).flags;await this.getJira(e,t).dashboardItemPropertyManager.deleteProperty(t.dashboardId,t.itemId,t.propertyKey)}}(exports.default=DeleteProperty).description="My description",DeleteProperty.flags=Object.assign({},get_1.default.flags);
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@oclif/core");
|
|
4
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
-
class GetKeys extends atlascli_common_1.CommandWithSite {
|
|
6
|
-
async runWithSite(site) {
|
|
7
|
-
const { flags } = await this.parse(GetKeys);
|
|
8
|
-
const jira = this.getJira(site, flags);
|
|
9
|
-
const res = await jira.dashboardItemPropertyManager.getPropertyKeys(flags.dashboardId, flags.itemId);
|
|
10
|
-
this.display(flags, res.keys);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = GetKeys;
|
|
14
|
-
GetKeys.description = 'Gets keys of all properties for a dashboard item.';
|
|
15
|
-
GetKeys.flags = Object.assign({ dashboardId: core_1.Flags.string({ char: 'd', description: 'The ID of the dashboard.', required: true }), itemId: core_1.Flags.string({ char: 'i', description: 'The ID of the dashboard item.', required: true }) }, atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetKeys extends atlascli_common_1.CommandWithSite{async runWithSite(e){var a=(await this.parse(GetKeys)).flags,e=await this.getJira(e,a).dashboardItemPropertyManager.getPropertyKeys(a.dashboardId,a.itemId);this.display(a,e.keys)}}(exports.default=GetKeys).description="Gets keys of all properties for a dashboard item.",GetKeys.flags=Object.assign({dashboardId:core_1.Flags.string({char:"d",description:"The ID of the dashboard.",required:!0}),itemId:core_1.Flags.string({char:"i",description:"The ID of the dashboard item.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@oclif/core");
|
|
4
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
-
class GetProperty extends atlascli_common_1.CommandWithSite {
|
|
6
|
-
async runWithSite(site) {
|
|
7
|
-
const { flags } = await this.parse(GetProperty);
|
|
8
|
-
const jira = this.getJira(site, flags);
|
|
9
|
-
const res = await jira.dashboardItemPropertyManager.getProperty(flags.dashboardId, flags.itemId, flags.propertyKey);
|
|
10
|
-
this.display(flags, res);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = GetProperty;
|
|
14
|
-
GetProperty.description = 'Gets the key and value of a dashboard item property';
|
|
15
|
-
GetProperty.flags = Object.assign({ dashboardId: core_1.Flags.string({ char: 'd', description: 'The ID of the dashboard.', required: true }), itemId: core_1.Flags.string({ char: 'i', description: 'The ID of the dashboard item.', required: true }), propertyKey: core_1.Flags.string({ char: 'k', description: 'The key of the dashboard item property.', required: true }) }, atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetProperty extends atlascli_common_1.CommandWithSite{async runWithSite(e){var r=(await this.parse(GetProperty)).flags,e=await this.getJira(e,r).dashboardItemPropertyManager.getProperty(r.dashboardId,r.itemId,r.propertyKey);this.display(r,e)}}(exports.default=GetProperty).description="Gets the key and value of a dashboard item property",GetProperty.flags=Object.assign({dashboardId:core_1.Flags.string({char:"d",description:"The ID of the dashboard.",required:!0}),itemId:core_1.Flags.string({char:"i",description:"The ID of the dashboard item.",required:!0}),propertyKey:core_1.Flags.string({char:"k",description:"The key of the dashboard item property.",required:!0})},atlascli_common_1.CommandWithSite.flags);
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
-
const get_1 = tslib_1.__importDefault(require("./get"));
|
|
6
|
-
const set_1 = require("../issue-property/set");
|
|
7
|
-
class SetProperty extends atlascli_common_1.CommandWithSite {
|
|
8
|
-
async runWithSite(site) {
|
|
9
|
-
const { flags, args } = await this.parse(SetProperty);
|
|
10
|
-
const jira = this.getJira(site, flags);
|
|
11
|
-
let request = args.jsonBody;
|
|
12
|
-
if (typeof request === 'undefined') {
|
|
13
|
-
request = await (0, atlascli_common_1.readStdin)();
|
|
14
|
-
if (!request || request.length === 0) {
|
|
15
|
-
throw new Error('You should provide a valid value!');
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
await jira.dashboardItemPropertyManager.setProperty(flags.dashboardId, flags.itemId, flags.propertyKey, (0, set_1.isJson)(request) ? JSON.parse(request) : request);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.default = SetProperty;
|
|
22
|
-
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.';
|
|
23
|
-
SetProperty.flags = Object.assign({}, get_1.default.flags);
|
|
24
|
-
SetProperty.args = [
|
|
25
|
-
{
|
|
26
|
-
name: 'jsonBody',
|
|
27
|
-
description: 'Dashboard Item property set request in JSON format.',
|
|
28
|
-
},
|
|
29
|
-
];
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),atlascli_common_1=require("@thestarware/atlascli-common"),get_1=tslib_1.__importDefault(require("./get")),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."}];
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@oclif/core");
|
|
4
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
-
class AddFavourite extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
6
|
-
async runWithCloudSite(site, jira) {
|
|
7
|
-
const { flags } = await this.parse(AddFavourite);
|
|
8
|
-
const res = await jira.filterManager.addFavourite(flags.filterId);
|
|
9
|
-
this.display(flags, res);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.default = AddFavourite;
|
|
13
|
-
AddFavourite.description = 'Add filter to your favourites.';
|
|
14
|
-
AddFavourite.flags = Object.assign({ filterId: core_1.Flags.string({
|
|
15
|
-
char: 'i',
|
|
16
|
-
description: "Filter's ID.",
|
|
17
|
-
required: true,
|
|
18
|
-
}) }, atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class AddFavourite extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var t=(await this.parse(AddFavourite)).flags,a=await a.filterManager.addFavourite(t.filterId);this.display(t,a)}}(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);
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@oclif/core");
|
|
4
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
-
const user_util_1 = require("@thestarware/atlascli-common/lib/user-util");
|
|
6
|
-
class ChangeOwner extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
7
|
-
async runWithCloudSite(site, jira) {
|
|
8
|
-
const { flags } = await this.parse(ChangeOwner);
|
|
9
|
-
const normalizedUserQuery = await (0, user_util_1.getUser)(jira, flags.user);
|
|
10
|
-
flags.accountId = normalizedUserQuery.accountId;
|
|
11
|
-
await jira.filterManager.changeOwner(flags.filterId, flags.accountId);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.default = ChangeOwner;
|
|
15
|
-
ChangeOwner.description = "Change filter's owner.";
|
|
16
|
-
ChangeOwner.flags = Object.assign({ filterId: core_1.Flags.string({
|
|
17
|
-
char: 'i',
|
|
18
|
-
description: "Filter's ID.",
|
|
19
|
-
required: true,
|
|
20
|
-
}), user: core_1.Flags.string({
|
|
21
|
-
char: 'u',
|
|
22
|
-
description: "User's account ID or username or email.",
|
|
23
|
-
required: true,
|
|
24
|
-
}) }, atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),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);
|
|
@@ -1,30 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@oclif/core");
|
|
4
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
-
class CreateFilter extends atlascli_common_1.CommandWithSite {
|
|
6
|
-
async runWithSite(site) {
|
|
7
|
-
const { flags } = await this.parse(CreateFilter);
|
|
8
|
-
const jira = this.getJira(site, flags);
|
|
9
|
-
const createParams = this.removeFlagsFromBase(flags);
|
|
10
|
-
const res = await jira.filterManager.createFilter(createParams);
|
|
11
|
-
this.display(flags, res);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.default = CreateFilter;
|
|
15
|
-
CreateFilter.description = 'Create a filter.';
|
|
16
|
-
CreateFilter.flags = Object.assign({ name: core_1.Flags.string({
|
|
17
|
-
char: 'n',
|
|
18
|
-
description: "Filter's name.",
|
|
19
|
-
required: true,
|
|
20
|
-
}), description: core_1.Flags.string({
|
|
21
|
-
char: 'd',
|
|
22
|
-
description: 'A description of the filter.',
|
|
23
|
-
}), jql: core_1.Flags.string({
|
|
24
|
-
description: 'The JQL query for the filter. For example, project = SSP AND issuetype = Bug.',
|
|
25
|
-
}), favourite: core_1.Flags.boolean({
|
|
26
|
-
char: 'f',
|
|
27
|
-
description: 'Whether the filter is selected as a favorite.',
|
|
28
|
-
}), editable: core_1.Flags.boolean({
|
|
29
|
-
description: 'Whether the filter is editable or not.',
|
|
30
|
-
}), 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);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let 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);
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@oclif/core");
|
|
4
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
-
class DeleteFilter extends atlascli_common_1.CommandWithSite {
|
|
6
|
-
async runWithSite(site) {
|
|
7
|
-
const { flags } = await this.parse(DeleteFilter);
|
|
8
|
-
const jira = this.getJira(site, flags);
|
|
9
|
-
await jira.filterManager.deleteFilter(flags.id);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.default = DeleteFilter;
|
|
13
|
-
DeleteFilter.description = 'Delete a filter.';
|
|
14
|
-
DeleteFilter.flags = Object.assign({ id: core_1.Flags.string({
|
|
15
|
-
char: 'i',
|
|
16
|
-
description: "Filter's ID.",
|
|
17
|
-
required: true,
|
|
18
|
-
}) }, atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class 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);
|
|
@@ -1,20 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@oclif/core");
|
|
4
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
-
class GetColumns extends atlascli_common_1.CommandWithSite {
|
|
6
|
-
async runWithSite(site) {
|
|
7
|
-
const { flags } = await this.parse(GetColumns);
|
|
8
|
-
const jira = this.getJira(site, flags);
|
|
9
|
-
const res = await jira.filterManager.getColumns(flags.id);
|
|
10
|
-
this.log(JSON.stringify(res));
|
|
11
|
-
this.display(flags, res);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.default = GetColumns;
|
|
15
|
-
GetColumns.description = "Get Filter's columns.";
|
|
16
|
-
GetColumns.flags = Object.assign({ id: core_1.Flags.string({
|
|
17
|
-
char: 'i',
|
|
18
|
-
description: "Filter's ID.",
|
|
19
|
-
required: true,
|
|
20
|
-
}) }, atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class 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);
|
|
@@ -1,25 +1 @@
|
|
|
1
|
-
"use
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@oclif/core");
|
|
4
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
-
class GetDetails extends atlascli_common_1.CommandWithSite {
|
|
6
|
-
async runWithSite(site) {
|
|
7
|
-
const { flags } = await this.parse(GetDetails);
|
|
8
|
-
const jira = this.getJira(site, flags);
|
|
9
|
-
const res = await jira.filterManager.getFilter(flags.id, JSON.parse(JSON.stringify({ expand: flags.expand, overrideSharePermissions: flags.overrideSharePermissions })));
|
|
10
|
-
this.display(flags, flags.expand.includes('sharedUsers') ? res.sharedUsers.items : res.subscriptions.items);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = GetDetails;
|
|
14
|
-
GetDetails.description = 'Get more details about filter.';
|
|
15
|
-
GetDetails.flags = Object.assign({ id: core_1.Flags.string({
|
|
16
|
-
char: 'i',
|
|
17
|
-
description: "Filter's ID.",
|
|
18
|
-
required: true,
|
|
19
|
-
}), expand: core_1.Flags.string({
|
|
20
|
-
char: 'e',
|
|
21
|
-
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]',
|
|
22
|
-
required: true,
|
|
23
|
-
}), overrideSharePermissions: core_1.Flags.boolean({
|
|
24
|
-
description: 'Whether share permissions are overridden to enable filters with any share permissions to be returned.',
|
|
25
|
-
}) }, atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class 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);
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
"use
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@oclif/core");
|
|
4
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
-
class GetFavourites extends atlascli_common_1.CommandWithSite {
|
|
6
|
-
async runWithSite(site) {
|
|
7
|
-
const { flags } = await this.parse(GetFavourites);
|
|
8
|
-
const jira = this.getJira(site, flags);
|
|
9
|
-
const res = await jira.filterManager.getFavourite(JSON.parse(JSON.stringify(flags)));
|
|
10
|
-
this.display(flags, res);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.default = GetFavourites;
|
|
14
|
-
GetFavourites.description = 'Get favourite filters.';
|
|
15
|
-
GetFavourites.flags = Object.assign({ expand: core_1.Flags.string({
|
|
16
|
-
char: 'e',
|
|
17
|
-
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]',
|
|
18
|
-
}) }, atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class 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);
|
|
@@ -1,19 +1 @@
|
|
|
1
|
-
"use
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@oclif/core");
|
|
4
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
-
class GetMyFilters extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
6
|
-
async runWithCloudSite(site, jira) {
|
|
7
|
-
const { flags } = await this.parse(GetMyFilters);
|
|
8
|
-
const res = await jira.filterManager.getMyFilters(JSON.parse(JSON.stringify(Object.assign({}, flags))));
|
|
9
|
-
this.display(flags, res);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.default = GetMyFilters;
|
|
13
|
-
GetMyFilters.description = 'Get your filters.';
|
|
14
|
-
GetMyFilters.flags = Object.assign({ expand: core_1.Flags.string({
|
|
15
|
-
char: 'e',
|
|
16
|
-
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]',
|
|
17
|
-
}), includeFavourites: core_1.Flags.boolean({
|
|
18
|
-
description: "Include the user's favorite filters in the response.",
|
|
19
|
-
}) }, atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class 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);
|
|
@@ -1,40 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@oclif/core");
|
|
4
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
-
class GetFilter extends atlascli_common_1.CommandWithSite {
|
|
6
|
-
async runWithSite(site) {
|
|
7
|
-
const filterIds = [];
|
|
8
|
-
const { flags, argv } = await this.parse(GetFilter);
|
|
9
|
-
const jira = this.getJira(site, flags);
|
|
10
|
-
filterIds.push(...(flags.id || []));
|
|
11
|
-
filterIds.push(...(Array.isArray(argv) ? argv : typeof argv === 'string' ? [argv] : []));
|
|
12
|
-
if (filterIds.length === 0)
|
|
13
|
-
this.error('No filter id is specified.');
|
|
14
|
-
const query = JSON.parse(JSON.stringify({ expand: flags.expand, overrideSharePermissions: flags.overrideSharePermissions }));
|
|
15
|
-
const promises = filterIds.sort().map(filterId => jira.filterManager.getFilter(filterId, query));
|
|
16
|
-
await Promise.all(promises).then(filters => {
|
|
17
|
-
if (filters.length > 0)
|
|
18
|
-
this.display(flags, filters);
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.default = GetFilter;
|
|
23
|
-
GetFilter.strict = false;
|
|
24
|
-
GetFilter.description = 'Get a filter.';
|
|
25
|
-
GetFilter.flags = Object.assign({ id: core_1.Flags.string({
|
|
26
|
-
char: 'i',
|
|
27
|
-
description: "Filter's ID.",
|
|
28
|
-
multiple: true,
|
|
29
|
-
}), expand: core_1.Flags.string({
|
|
30
|
-
char: 'e',
|
|
31
|
-
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]',
|
|
32
|
-
}), overrideSharePermissions: core_1.Flags.boolean({
|
|
33
|
-
description: 'Whether share permissions are overridden to enable filters with any share permissions to be returned.',
|
|
34
|
-
}) }, atlascli_common_1.CommandWithSite.flags);
|
|
35
|
-
GetFilter.args = [
|
|
36
|
-
{
|
|
37
|
-
name: 'id',
|
|
38
|
-
description: "Filter's ID.",
|
|
39
|
-
},
|
|
40
|
-
];
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class GetFilter extends atlascli_common_1.CommandWithSite{async runWithSite(e){var t=[];let{flags:r,argv:i}=await this.parse(GetFilter),s=this.getJira(e,r),a=(t.push(...r.id||[]),t.push(...Array.isArray(i)?i:"string"==typeof i?[i]:[]),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=>s.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."}];
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@oclif/core");
|
|
4
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
-
class RemoveFavourite extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
6
|
-
async runWithCloudSite(site, jira) {
|
|
7
|
-
const { flags } = await this.parse(RemoveFavourite);
|
|
8
|
-
const res = await jira.filterManager.removeFavourite(flags.filterId);
|
|
9
|
-
this.display(flags, res);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.default = RemoveFavourite;
|
|
13
|
-
RemoveFavourite.description = 'Remove filter from your favourites.';
|
|
14
|
-
RemoveFavourite.flags = Object.assign({ filterId: core_1.Flags.string({
|
|
15
|
-
char: 'i',
|
|
16
|
-
description: "Filter's ID.",
|
|
17
|
-
required: true,
|
|
18
|
-
}) }, atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class RemoveFavourite extends atlascli_common_1.BaseCommandWithCloudSite{async runWithCloudSite(e,a){var i=(await this.parse(RemoveFavourite)).flags,a=await a.filterManager.removeFavourite(i.filterId);this.display(i,a)}}(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);
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@oclif/core");
|
|
4
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
-
class ResetColumns extends atlascli_common_1.CommandWithSite {
|
|
6
|
-
async runWithSite(site) {
|
|
7
|
-
const { flags } = await this.parse(ResetColumns);
|
|
8
|
-
const jira = this.getJira(site, flags);
|
|
9
|
-
await jira.filterManager.resetColumns(flags.id);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.default = ResetColumns;
|
|
13
|
-
ResetColumns.description = "Reset Filter's columns.";
|
|
14
|
-
ResetColumns.flags = Object.assign({ id: core_1.Flags.string({
|
|
15
|
-
char: 'i',
|
|
16
|
-
description: "Filter's ID.",
|
|
17
|
-
required: true,
|
|
18
|
-
}) }, atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class 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);
|
|
@@ -1,50 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const core_1 = require("@oclif/core");
|
|
5
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
6
|
-
const project_util_1 = require("@thestarware/atlascli-common/lib/project-util");
|
|
7
|
-
const user_util_1 = require("@thestarware/atlascli-common/lib/user-util");
|
|
8
|
-
const group_util_1 = require("@thestarware/atlascli-common/lib/group-util");
|
|
9
|
-
class SearchFilters extends atlascli_common_1.BaseCommandWithCloudSite {
|
|
10
|
-
async runWithCloudSite(site, jira) {
|
|
11
|
-
const { flags } = await this.parse(SearchFilters);
|
|
12
|
-
const parsedFlags = tslib_1.__rest(this.removeFlagsFromBase(flags), []);
|
|
13
|
-
const normalizedUserQuery = await (0, user_util_1.getUser)(jira, parsedFlags.user);
|
|
14
|
-
const normalizedGroupQuery = await (0, group_util_1.getGroup)(jira, parsedFlags.group);
|
|
15
|
-
parsedFlags.groupId = normalizedGroupQuery.groupId;
|
|
16
|
-
parsedFlags.accountId = normalizedUserQuery.accountId;
|
|
17
|
-
delete parsedFlags.user;
|
|
18
|
-
delete parsedFlags.group;
|
|
19
|
-
this.modifyFilterSearchFlags(flags);
|
|
20
|
-
parsedFlags.projectId = (await (0, project_util_1.getProject)(jira, flags.project)).projectId;
|
|
21
|
-
delete parsedFlags.project;
|
|
22
|
-
const res = await jira.filterManager.searchFilters(JSON.parse(JSON.stringify(parsedFlags)));
|
|
23
|
-
this.display(flags, res.values);
|
|
24
|
-
}
|
|
25
|
-
modifyFilterSearchFlags(params) {
|
|
26
|
-
(0, atlascli_common_1.modifyFlagsForSearchDirection)(params);
|
|
27
|
-
params.orderBy = params.orderDirection === undefined ? params.orderBy : params.orderDirection + params.orderBy;
|
|
28
|
-
params.filterName = params.query;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.default = SearchFilters;
|
|
32
|
-
SearchFilters.description = 'Search for filters.';
|
|
33
|
-
SearchFilters.flags = Object.assign(Object.assign(Object.assign({}, (0, atlascli_common_1.getSearchFlags)()), { user: core_1.Flags.string({
|
|
34
|
-
char: 'u',
|
|
35
|
-
description: "Owner's account ID or username or email.",
|
|
36
|
-
}), 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({
|
|
37
|
-
char: 'p',
|
|
38
|
-
description: 'Project ID or key that filters are shared with.',
|
|
39
|
-
}), id: core_1.Flags.integer({
|
|
40
|
-
char: 'i',
|
|
41
|
-
description: 'The list of filter IDs',
|
|
42
|
-
multiple: true,
|
|
43
|
-
}), orderBy: core_1.Flags.string({
|
|
44
|
-
options: ['description', 'favourite_count', 'id', 'is_favourite', 'name', 'owner', 'is_shared'],
|
|
45
|
-
}), expand: core_1.Flags.string({
|
|
46
|
-
char: 'e',
|
|
47
|
-
description: 'Use expand to include additional information about filter in the response.',
|
|
48
|
-
multiple: true,
|
|
49
|
-
options: ['description', 'favourite', 'favouritedCount,', 'jql', 'owner', 'searchUrl', 'sharePermissions', 'editPermissions', 'isWritable', 'subscriptions', 'viewUrl'],
|
|
50
|
-
}), 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);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let tslib_1=require("tslib"),core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common"),project_util_1=require("@thestarware/atlascli-common/lib/project-util"),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),[]),o=await(0,user_util_1.getUser)(r,t.user),s=await(0,group_util_1.getGroup)(r,t.group),s=(t.groupId=s.groupId,t.accountId=o.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,s.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);
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@oclif/core");
|
|
4
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
-
class SetColumns extends atlascli_common_1.CommandWithSite {
|
|
6
|
-
async runWithSite(site) {
|
|
7
|
-
const { flags } = await this.parse(SetColumns);
|
|
8
|
-
const jira = this.getJira(site, flags);
|
|
9
|
-
await jira.filterManager.setColumns(flags.id, flags.columnKey);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.default = SetColumns;
|
|
13
|
-
SetColumns.description = "Set Filter's columns.";
|
|
14
|
-
SetColumns.flags = Object.assign({ id: core_1.Flags.string({
|
|
15
|
-
char: 'i',
|
|
16
|
-
description: "Filter's ID.",
|
|
17
|
-
required: true,
|
|
18
|
-
}), columnKey: core_1.Flags.string({ multiple: true, char: 'c', description: 'The key of column. You can repeat this flag for setting multiple columns.', required: true }) }, atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class 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);
|
|
@@ -1,34 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@oclif/core");
|
|
4
|
-
const atlascli_common_1 = require("@thestarware/atlascli-common");
|
|
5
|
-
class UpdateFilter extends atlascli_common_1.CommandWithSite {
|
|
6
|
-
async runWithSite(site) {
|
|
7
|
-
const { flags } = await this.parse(UpdateFilter);
|
|
8
|
-
const jira = this.getJira(site, flags);
|
|
9
|
-
const updateParams = this.removeFlagsFromBase(flags);
|
|
10
|
-
this.log(JSON.stringify(updateParams));
|
|
11
|
-
const res = await jira.filterManager.updateFilter(flags.id, updateParams);
|
|
12
|
-
this.display(flags, res);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.default = UpdateFilter;
|
|
16
|
-
UpdateFilter.description = 'Update a filter.';
|
|
17
|
-
UpdateFilter.flags = Object.assign({ id: core_1.Flags.string({
|
|
18
|
-
char: 'i',
|
|
19
|
-
description: 'Filter ID',
|
|
20
|
-
required: true,
|
|
21
|
-
}), name: core_1.Flags.string({
|
|
22
|
-
char: 'n',
|
|
23
|
-
description: "Filter's name.",
|
|
24
|
-
}), description: core_1.Flags.string({
|
|
25
|
-
char: 'd',
|
|
26
|
-
description: 'A description of the filter.',
|
|
27
|
-
}), jql: core_1.Flags.string({
|
|
28
|
-
description: 'The JQL query for the filter. For example, project = SSP AND issuetype = Bug.',
|
|
29
|
-
}), favourite: core_1.Flags.boolean({
|
|
30
|
-
description: 'Whether the filter is editable or not.',
|
|
31
|
-
}), editable: core_1.Flags.boolean({
|
|
32
|
-
description: 'Whether the filter is editable or not.',
|
|
33
|
-
allowNo: true,
|
|
34
|
-
}) }, atlascli_common_1.CommandWithSite.flags);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});let core_1=require("@oclif/core"),atlascli_common_1=require("@thestarware/atlascli-common");class 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);
|