@venturialstd/workflow 0.1.149 → 0.1.150
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 +238 -238
- package/dist/constants/workflow.constant.d.ts +0 -5
- package/dist/constants/workflow.constant.d.ts.map +1 -1
- package/dist/constants/workflow.constant.js +1 -7
- package/dist/constants/workflow.constant.js.map +1 -1
- package/dist/controllers/workflow-history.controller.d.ts +67 -0
- package/dist/controllers/workflow-history.controller.d.ts.map +1 -0
- package/dist/controllers/workflow-history.controller.js +227 -0
- package/dist/controllers/workflow-history.controller.js.map +1 -0
- package/dist/entities/workflow-execution.entity.d.ts +1 -1
- package/dist/entities/workflow-execution.entity.d.ts.map +1 -1
- package/dist/entities/workflow-execution.entity.js +2 -2
- package/dist/entities/workflow-execution.entity.js.map +1 -1
- package/dist/entities/workflow-history.entity.d.ts +48 -0
- package/dist/entities/workflow-history.entity.d.ts.map +1 -0
- package/dist/entities/{workflow-user.entity.js → workflow-history.entity.js} +46 -39
- package/dist/entities/workflow-history.entity.js.map +1 -0
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/modules/jira/actions/add-attachment.action.d.ts +3 -0
- package/dist/modules/jira/actions/add-attachment.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/add-attachment.action.js +62 -0
- package/dist/modules/jira/actions/add-attachment.action.js.map +1 -0
- package/dist/modules/jira/actions/add-comment.action.d.ts +3 -0
- package/dist/modules/jira/actions/add-comment.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/add-comment.action.js +99 -0
- package/dist/modules/jira/actions/add-comment.action.js.map +1 -0
- package/dist/modules/jira/actions/add-worklog.action.d.ts +3 -0
- package/dist/modules/jira/actions/add-worklog.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/add-worklog.action.js +134 -0
- package/dist/modules/jira/actions/add-worklog.action.js.map +1 -0
- package/dist/modules/jira/actions/assign-issue.action.d.ts +3 -0
- package/dist/modules/jira/actions/assign-issue.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/assign-issue.action.js +57 -0
- package/dist/modules/jira/actions/assign-issue.action.js.map +1 -0
- package/dist/modules/jira/actions/create-issue.action.d.ts +3 -0
- package/dist/modules/jira/actions/create-issue.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/create-issue.action.js +95 -0
- package/dist/modules/jira/actions/create-issue.action.js.map +1 -0
- package/dist/modules/jira/actions/delete-comment.action.d.ts +3 -0
- package/dist/modules/jira/actions/delete-comment.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/delete-comment.action.js +58 -0
- package/dist/modules/jira/actions/delete-comment.action.js.map +1 -0
- package/dist/modules/jira/actions/delete-issue.action.d.ts +3 -0
- package/dist/modules/jira/actions/delete-issue.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/delete-issue.action.js +51 -0
- package/dist/modules/jira/actions/delete-issue.action.js.map +1 -0
- package/dist/modules/jira/actions/delete-worklog.action.d.ts +3 -0
- package/dist/modules/jira/actions/delete-worklog.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/delete-worklog.action.js +58 -0
- package/dist/modules/jira/actions/delete-worklog.action.js.map +1 -0
- package/dist/modules/jira/actions/get-all-issues.action.d.ts +3 -0
- package/dist/modules/jira/actions/get-all-issues.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/get-all-issues.action.js +101 -0
- package/dist/modules/jira/actions/get-all-issues.action.js.map +1 -0
- package/dist/modules/jira/actions/get-attachments.action.d.ts +3 -0
- package/dist/modules/jira/actions/get-attachments.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/get-attachments.action.js +47 -0
- package/dist/modules/jira/actions/get-attachments.action.js.map +1 -0
- package/dist/modules/jira/actions/get-changelogs.action.d.ts +3 -0
- package/dist/modules/jira/actions/get-changelogs.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/get-changelogs.action.js +82 -0
- package/dist/modules/jira/actions/get-changelogs.action.js.map +1 -0
- package/dist/modules/jira/actions/get-comments.action.d.ts +3 -0
- package/dist/modules/jira/actions/get-comments.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/get-comments.action.js +92 -0
- package/dist/modules/jira/actions/get-comments.action.js.map +1 -0
- package/dist/modules/jira/actions/get-issue-types.action.d.ts +3 -0
- package/dist/modules/jira/actions/get-issue-types.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/get-issue-types.action.js +29 -0
- package/dist/modules/jira/actions/get-issue-types.action.js.map +1 -0
- package/dist/modules/jira/actions/get-issue.action.d.ts +3 -0
- package/dist/modules/jira/actions/get-issue.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/get-issue.action.js +85 -0
- package/dist/modules/jira/actions/get-issue.action.js.map +1 -0
- package/dist/modules/jira/actions/get-myself.action.d.ts +3 -0
- package/dist/modules/jira/actions/get-myself.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/get-myself.action.js +52 -0
- package/dist/modules/jira/actions/get-myself.action.js.map +1 -0
- package/dist/modules/jira/actions/get-priorities.action.d.ts +3 -0
- package/dist/modules/jira/actions/get-priorities.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/get-priorities.action.js +35 -0
- package/dist/modules/jira/actions/get-priorities.action.js.map +1 -0
- package/dist/modules/jira/actions/get-project-statuses.action.d.ts +3 -0
- package/dist/modules/jira/actions/get-project-statuses.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/get-project-statuses.action.js +47 -0
- package/dist/modules/jira/actions/get-project-statuses.action.js.map +1 -0
- package/dist/modules/jira/actions/get-project-versions.action.d.ts +3 -0
- package/dist/modules/jira/actions/get-project-versions.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/get-project-versions.action.js +57 -0
- package/dist/modules/jira/actions/get-project-versions.action.js.map +1 -0
- package/dist/modules/jira/actions/get-project.action.d.ts +3 -0
- package/dist/modules/jira/actions/get-project.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/get-project.action.js +69 -0
- package/dist/modules/jira/actions/get-project.action.js.map +1 -0
- package/dist/modules/jira/actions/get-projects.action.d.ts +3 -0
- package/dist/modules/jira/actions/get-projects.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/get-projects.action.js +56 -0
- package/dist/modules/jira/actions/get-projects.action.js.map +1 -0
- package/dist/modules/jira/actions/get-ticket-information.action.d.ts +3 -0
- package/dist/modules/jira/actions/get-ticket-information.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/get-ticket-information.action.js +47 -0
- package/dist/modules/jira/actions/get-ticket-information.action.js.map +1 -0
- package/dist/modules/jira/actions/get-transitions.action.d.ts +3 -0
- package/dist/modules/jira/actions/get-transitions.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/get-transitions.action.js +67 -0
- package/dist/modules/jira/actions/get-transitions.action.js.map +1 -0
- package/dist/modules/jira/actions/get-user-picker.action.d.ts +3 -0
- package/dist/modules/jira/actions/get-user-picker.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/get-user-picker.action.js +109 -0
- package/dist/modules/jira/actions/get-user-picker.action.js.map +1 -0
- package/dist/modules/jira/actions/get-user.action.d.ts +3 -0
- package/dist/modules/jira/actions/get-user.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/get-user.action.js +63 -0
- package/dist/modules/jira/actions/get-user.action.js.map +1 -0
- package/dist/modules/jira/actions/get-users.action.d.ts +3 -0
- package/dist/modules/jira/actions/get-users.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/get-users.action.js +70 -0
- package/dist/modules/jira/actions/get-users.action.js.map +1 -0
- package/dist/modules/jira/actions/get-worklogs.action.d.ts +3 -0
- package/dist/modules/jira/actions/get-worklogs.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/get-worklogs.action.js +92 -0
- package/dist/modules/jira/actions/get-worklogs.action.js.map +1 -0
- package/dist/modules/jira/actions/index.d.ts +44 -0
- package/dist/modules/jira/actions/index.d.ts.map +1 -0
- package/dist/modules/jira/actions/index.js +60 -0
- package/dist/modules/jira/actions/index.js.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-assignee.action.d.ts +3 -0
- package/dist/modules/jira/actions/search-issues-by-assignee.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-assignee.action.js +101 -0
- package/dist/modules/jira/actions/search-issues-by-assignee.action.js.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-created-date.action.d.ts +3 -0
- package/dist/modules/jira/actions/search-issues-by-created-date.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-created-date.action.js +112 -0
- package/dist/modules/jira/actions/search-issues-by-created-date.action.js.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-issue-type.action.d.ts +3 -0
- package/dist/modules/jira/actions/search-issues-by-issue-type.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-issue-type.action.js +101 -0
- package/dist/modules/jira/actions/search-issues-by-issue-type.action.js.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-priority.action.d.ts +3 -0
- package/dist/modules/jira/actions/search-issues-by-priority.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-priority.action.js +101 -0
- package/dist/modules/jira/actions/search-issues-by-priority.action.js.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-project-and-assignee.action.d.ts +3 -0
- package/dist/modules/jira/actions/search-issues-by-project-and-assignee.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-project-and-assignee.action.js +112 -0
- package/dist/modules/jira/actions/search-issues-by-project-and-assignee.action.js.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-project-and-status.action.d.ts +3 -0
- package/dist/modules/jira/actions/search-issues-by-project-and-status.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-project-and-status.action.js +112 -0
- package/dist/modules/jira/actions/search-issues-by-project-and-status.action.js.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-project.action.d.ts +3 -0
- package/dist/modules/jira/actions/search-issues-by-project.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-project.action.js +101 -0
- package/dist/modules/jira/actions/search-issues-by-project.action.js.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-reporter.action.d.ts +3 -0
- package/dist/modules/jira/actions/search-issues-by-reporter.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-reporter.action.js +101 -0
- package/dist/modules/jira/actions/search-issues-by-reporter.action.js.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-status.action.d.ts +3 -0
- package/dist/modules/jira/actions/search-issues-by-status.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-status.action.js +101 -0
- package/dist/modules/jira/actions/search-issues-by-status.action.js.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-text.action.d.ts +3 -0
- package/dist/modules/jira/actions/search-issues-by-text.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-text.action.js +101 -0
- package/dist/modules/jira/actions/search-issues-by-text.action.js.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-updated-date.action.d.ts +3 -0
- package/dist/modules/jira/actions/search-issues-by-updated-date.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/search-issues-by-updated-date.action.js +112 -0
- package/dist/modules/jira/actions/search-issues-by-updated-date.action.js.map +1 -0
- package/dist/modules/jira/actions/search-issues.action.d.ts +3 -0
- package/dist/modules/jira/actions/search-issues.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/search-issues.action.js +101 -0
- package/dist/modules/jira/actions/search-issues.action.js.map +1 -0
- package/dist/modules/jira/actions/search-unassigned-issues.action.d.ts +3 -0
- package/dist/modules/jira/actions/search-unassigned-issues.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/search-unassigned-issues.action.js +90 -0
- package/dist/modules/jira/actions/search-unassigned-issues.action.js.map +1 -0
- package/dist/modules/jira/actions/transition-issue.action.d.ts +3 -0
- package/dist/modules/jira/actions/transition-issue.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/transition-issue.action.js +88 -0
- package/dist/modules/jira/actions/transition-issue.action.js.map +1 -0
- package/dist/modules/jira/actions/update-comment.action.d.ts +3 -0
- package/dist/modules/jira/actions/update-comment.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/update-comment.action.js +116 -0
- package/dist/modules/jira/actions/update-comment.action.js.map +1 -0
- package/dist/modules/jira/actions/update-issue.action.d.ts +3 -0
- package/dist/modules/jira/actions/update-issue.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/update-issue.action.js +129 -0
- package/dist/modules/jira/actions/update-issue.action.js.map +1 -0
- package/dist/modules/jira/actions/update-worklog.action.d.ts +3 -0
- package/dist/modules/jira/actions/update-worklog.action.d.ts.map +1 -0
- package/dist/modules/jira/actions/update-worklog.action.js +145 -0
- package/dist/modules/jira/actions/update-worklog.action.js.map +1 -0
- package/dist/modules/jira/auth/index.d.ts +2 -0
- package/dist/modules/jira/auth/index.d.ts.map +1 -0
- package/dist/modules/jira/auth/index.js +18 -0
- package/dist/modules/jira/auth/index.js.map +1 -0
- package/dist/modules/jira/auth/jira-auth.service.d.ts +9 -0
- package/dist/modules/jira/auth/jira-auth.service.d.ts.map +1 -0
- package/dist/modules/jira/auth/jira-auth.service.js +93 -0
- package/dist/modules/jira/auth/jira-auth.service.js.map +1 -0
- package/dist/modules/jira/credentials.d.ts +3 -0
- package/dist/modules/jira/credentials.d.ts.map +1 -0
- package/dist/modules/jira/credentials.js +44 -0
- package/dist/modules/jira/credentials.js.map +1 -0
- package/dist/modules/jira/jira-nest.module.d.ts +3 -0
- package/dist/modules/jira/jira-nest.module.d.ts.map +1 -0
- package/dist/modules/jira/jira-nest.module.js +121 -0
- package/dist/modules/jira/jira-nest.module.js.map +1 -0
- package/dist/modules/jira/jira.module.d.ts +3 -0
- package/dist/modules/jira/jira.module.d.ts.map +1 -0
- package/dist/modules/jira/jira.module.js +63 -0
- package/dist/modules/jira/jira.module.js.map +1 -0
- package/dist/modules/jira/services/add-attachment.service.d.ts +8 -0
- package/dist/modules/jira/services/add-attachment.service.d.ts.map +1 -0
- package/dist/modules/jira/services/add-attachment.service.js +59 -0
- package/dist/modules/jira/services/add-attachment.service.js.map +1 -0
- package/dist/modules/jira/services/add-comment.service.d.ts +8 -0
- package/dist/modules/jira/services/add-comment.service.d.ts.map +1 -0
- package/dist/modules/jira/services/add-comment.service.js +74 -0
- package/dist/modules/jira/services/add-comment.service.js.map +1 -0
- package/dist/modules/jira/services/add-worklog.service.d.ts +8 -0
- package/dist/modules/jira/services/add-worklog.service.d.ts.map +1 -0
- package/dist/modules/jira/services/add-worklog.service.js +88 -0
- package/dist/modules/jira/services/add-worklog.service.js.map +1 -0
- package/dist/modules/jira/services/assign-issue.service.d.ts +8 -0
- package/dist/modules/jira/services/assign-issue.service.d.ts.map +1 -0
- package/dist/modules/jira/services/assign-issue.service.js +55 -0
- package/dist/modules/jira/services/assign-issue.service.js.map +1 -0
- package/dist/modules/jira/services/create-issue.service.d.ts +8 -0
- package/dist/modules/jira/services/create-issue.service.d.ts.map +1 -0
- package/dist/modules/jira/services/create-issue.service.js +90 -0
- package/dist/modules/jira/services/create-issue.service.js.map +1 -0
- package/dist/modules/jira/services/delete-comment.service.d.ts +8 -0
- package/dist/modules/jira/services/delete-comment.service.d.ts.map +1 -0
- package/dist/modules/jira/services/delete-comment.service.js +55 -0
- package/dist/modules/jira/services/delete-comment.service.js.map +1 -0
- package/dist/modules/jira/services/delete-issue.service.d.ts +8 -0
- package/dist/modules/jira/services/delete-issue.service.d.ts.map +1 -0
- package/dist/modules/jira/services/delete-issue.service.js +51 -0
- package/dist/modules/jira/services/delete-issue.service.js.map +1 -0
- package/dist/modules/jira/services/delete-worklog.service.d.ts +8 -0
- package/dist/modules/jira/services/delete-worklog.service.d.ts.map +1 -0
- package/dist/modules/jira/services/delete-worklog.service.js +55 -0
- package/dist/modules/jira/services/delete-worklog.service.js.map +1 -0
- package/dist/modules/jira/services/get-all-issues.service.d.ts +8 -0
- package/dist/modules/jira/services/get-all-issues.service.d.ts.map +1 -0
- package/dist/modules/jira/services/get-all-issues.service.js +66 -0
- package/dist/modules/jira/services/get-all-issues.service.js.map +1 -0
- package/dist/modules/jira/services/get-attachments.service.d.ts +8 -0
- package/dist/modules/jira/services/get-attachments.service.d.ts.map +1 -0
- package/dist/modules/jira/services/get-attachments.service.js +51 -0
- package/dist/modules/jira/services/get-attachments.service.js.map +1 -0
- package/dist/modules/jira/services/get-changelogs.service.d.ts +8 -0
- package/dist/modules/jira/services/get-changelogs.service.d.ts.map +1 -0
- package/dist/modules/jira/services/get-changelogs.service.js +58 -0
- package/dist/modules/jira/services/get-changelogs.service.js.map +1 -0
- package/dist/modules/jira/services/get-comments.service.d.ts +8 -0
- package/dist/modules/jira/services/get-comments.service.d.ts.map +1 -0
- package/dist/modules/jira/services/get-comments.service.js +60 -0
- package/dist/modules/jira/services/get-comments.service.js.map +1 -0
- package/dist/modules/jira/services/get-issue-types.service.d.ts +8 -0
- package/dist/modules/jira/services/get-issue-types.service.d.ts.map +1 -0
- package/dist/modules/jira/services/get-issue-types.service.js +76 -0
- package/dist/modules/jira/services/get-issue-types.service.js.map +1 -0
- package/dist/modules/jira/services/get-issue.service.d.ts +8 -0
- package/dist/modules/jira/services/get-issue.service.d.ts.map +1 -0
- package/dist/modules/jira/services/get-issue.service.js +59 -0
- package/dist/modules/jira/services/get-issue.service.js.map +1 -0
- package/dist/modules/jira/services/get-myself.service.d.ts +8 -0
- package/dist/modules/jira/services/get-myself.service.d.ts.map +1 -0
- package/dist/modules/jira/services/get-myself.service.js +49 -0
- package/dist/modules/jira/services/get-myself.service.js.map +1 -0
- package/dist/modules/jira/services/get-priorities.service.d.ts +8 -0
- package/dist/modules/jira/services/get-priorities.service.d.ts.map +1 -0
- package/dist/modules/jira/services/get-priorities.service.js +68 -0
- package/dist/modules/jira/services/get-priorities.service.js.map +1 -0
- package/dist/modules/jira/services/get-project-statuses.service.d.ts +8 -0
- package/dist/modules/jira/services/get-project-statuses.service.d.ts.map +1 -0
- package/dist/modules/jira/services/get-project-statuses.service.js +51 -0
- package/dist/modules/jira/services/get-project-statuses.service.js.map +1 -0
- package/dist/modules/jira/services/get-project-versions.service.d.ts +8 -0
- package/dist/modules/jira/services/get-project-versions.service.d.ts.map +1 -0
- package/dist/modules/jira/services/get-project-versions.service.js +54 -0
- package/dist/modules/jira/services/get-project-versions.service.js.map +1 -0
- package/dist/modules/jira/services/get-project.service.d.ts +8 -0
- package/dist/modules/jira/services/get-project.service.d.ts.map +1 -0
- package/dist/modules/jira/services/get-project.service.js +53 -0
- package/dist/modules/jira/services/get-project.service.js.map +1 -0
- package/dist/modules/jira/services/get-projects.service.d.ts +8 -0
- package/dist/modules/jira/services/get-projects.service.d.ts.map +1 -0
- package/dist/modules/jira/services/get-projects.service.js +52 -0
- package/dist/modules/jira/services/get-projects.service.js.map +1 -0
- package/dist/modules/jira/services/get-ticket-information.service.d.ts +9 -0
- package/dist/modules/jira/services/get-ticket-information.service.d.ts.map +1 -0
- package/dist/modules/jira/services/get-ticket-information.service.js +59 -0
- package/dist/modules/jira/services/get-ticket-information.service.js.map +1 -0
- package/dist/modules/jira/services/get-transitions.service.d.ts +8 -0
- package/dist/modules/jira/services/get-transitions.service.d.ts.map +1 -0
- package/dist/modules/jira/services/get-transitions.service.js +56 -0
- package/dist/modules/jira/services/get-transitions.service.js.map +1 -0
- package/dist/modules/jira/services/get-user-picker.service.d.ts +8 -0
- package/dist/modules/jira/services/get-user-picker.service.d.ts.map +1 -0
- package/dist/modules/jira/services/get-user-picker.service.js +74 -0
- package/dist/modules/jira/services/get-user-picker.service.js.map +1 -0
- package/dist/modules/jira/services/get-user.service.d.ts +8 -0
- package/dist/modules/jira/services/get-user.service.d.ts.map +1 -0
- package/dist/modules/jira/services/get-user.service.js +53 -0
- package/dist/modules/jira/services/get-user.service.js.map +1 -0
- package/dist/modules/jira/services/get-users.service.d.ts +8 -0
- package/dist/modules/jira/services/get-users.service.d.ts.map +1 -0
- package/dist/modules/jira/services/get-users.service.js +56 -0
- package/dist/modules/jira/services/get-users.service.js.map +1 -0
- package/dist/modules/jira/services/get-worklogs.service.d.ts +8 -0
- package/dist/modules/jira/services/get-worklogs.service.d.ts.map +1 -0
- package/dist/modules/jira/services/get-worklogs.service.js +60 -0
- package/dist/modules/jira/services/get-worklogs.service.js.map +1 -0
- package/dist/modules/jira/services/index.d.ts +47 -0
- package/dist/modules/jira/services/index.d.ts.map +1 -0
- package/dist/modules/jira/services/index.js +63 -0
- package/dist/modules/jira/services/index.js.map +1 -0
- package/dist/modules/jira/services/issue-updated-polling.service.d.ts +32 -0
- package/dist/modules/jira/services/issue-updated-polling.service.d.ts.map +1 -0
- package/dist/modules/jira/services/issue-updated-polling.service.js +274 -0
- package/dist/modules/jira/services/issue-updated-polling.service.js.map +1 -0
- package/dist/modules/jira/services/new-comment-added.service.d.ts +35 -0
- package/dist/modules/jira/services/new-comment-added.service.d.ts.map +1 -0
- package/dist/modules/jira/services/new-comment-added.service.js +335 -0
- package/dist/modules/jira/services/new-comment-added.service.js.map +1 -0
- package/dist/modules/jira/services/new-issue-created.service.d.ts +33 -0
- package/dist/modules/jira/services/new-issue-created.service.d.ts.map +1 -0
- package/dist/modules/jira/services/new-issue-created.service.js +282 -0
- package/dist/modules/jira/services/new-issue-created.service.js.map +1 -0
- package/dist/modules/jira/services/search-issues-by-assignee.service.d.ts +8 -0
- package/dist/modules/jira/services/search-issues-by-assignee.service.d.ts.map +1 -0
- package/dist/modules/jira/services/search-issues-by-assignee.service.js +66 -0
- package/dist/modules/jira/services/search-issues-by-assignee.service.js.map +1 -0
- package/dist/modules/jira/services/search-issues-by-created-date.service.d.ts +8 -0
- package/dist/modules/jira/services/search-issues-by-created-date.service.d.ts.map +1 -0
- package/dist/modules/jira/services/search-issues-by-created-date.service.js +70 -0
- package/dist/modules/jira/services/search-issues-by-created-date.service.js.map +1 -0
- package/dist/modules/jira/services/search-issues-by-issue-type.service.d.ts +8 -0
- package/dist/modules/jira/services/search-issues-by-issue-type.service.d.ts.map +1 -0
- package/dist/modules/jira/services/search-issues-by-issue-type.service.js +66 -0
- package/dist/modules/jira/services/search-issues-by-issue-type.service.js.map +1 -0
- package/dist/modules/jira/services/search-issues-by-priority.service.d.ts +8 -0
- package/dist/modules/jira/services/search-issues-by-priority.service.d.ts.map +1 -0
- package/dist/modules/jira/services/search-issues-by-priority.service.js +66 -0
- package/dist/modules/jira/services/search-issues-by-priority.service.js.map +1 -0
- package/dist/modules/jira/services/search-issues-by-project-and-assignee.service.d.ts +8 -0
- package/dist/modules/jira/services/search-issues-by-project-and-assignee.service.d.ts.map +1 -0
- package/dist/modules/jira/services/search-issues-by-project-and-assignee.service.js +70 -0
- package/dist/modules/jira/services/search-issues-by-project-and-assignee.service.js.map +1 -0
- package/dist/modules/jira/services/search-issues-by-project-and-status.service.d.ts +8 -0
- package/dist/modules/jira/services/search-issues-by-project-and-status.service.d.ts.map +1 -0
- package/dist/modules/jira/services/search-issues-by-project-and-status.service.js +70 -0
- package/dist/modules/jira/services/search-issues-by-project-and-status.service.js.map +1 -0
- package/dist/modules/jira/services/search-issues-by-project.service.d.ts +8 -0
- package/dist/modules/jira/services/search-issues-by-project.service.d.ts.map +1 -0
- package/dist/modules/jira/services/search-issues-by-project.service.js +66 -0
- package/dist/modules/jira/services/search-issues-by-project.service.js.map +1 -0
- package/dist/modules/jira/services/search-issues-by-reporter.service.d.ts +8 -0
- package/dist/modules/jira/services/search-issues-by-reporter.service.d.ts.map +1 -0
- package/dist/modules/jira/services/search-issues-by-reporter.service.js +66 -0
- package/dist/modules/jira/services/search-issues-by-reporter.service.js.map +1 -0
- package/dist/modules/jira/services/search-issues-by-status.service.d.ts +8 -0
- package/dist/modules/jira/services/search-issues-by-status.service.d.ts.map +1 -0
- package/dist/modules/jira/services/search-issues-by-status.service.js +66 -0
- package/dist/modules/jira/services/search-issues-by-status.service.js.map +1 -0
- package/dist/modules/jira/services/search-issues-by-text.service.d.ts +8 -0
- package/dist/modules/jira/services/search-issues-by-text.service.d.ts.map +1 -0
- package/dist/modules/jira/services/search-issues-by-text.service.js +66 -0
- package/dist/modules/jira/services/search-issues-by-text.service.js.map +1 -0
- package/dist/modules/jira/services/search-issues-by-updated-date.service.d.ts +8 -0
- package/dist/modules/jira/services/search-issues-by-updated-date.service.d.ts.map +1 -0
- package/dist/modules/jira/services/search-issues-by-updated-date.service.js +70 -0
- package/dist/modules/jira/services/search-issues-by-updated-date.service.js.map +1 -0
- package/dist/modules/jira/services/search-issues.service.d.ts +8 -0
- package/dist/modules/jira/services/search-issues.service.d.ts.map +1 -0
- package/dist/modules/jira/services/search-issues.service.js +67 -0
- package/dist/modules/jira/services/search-issues.service.js.map +1 -0
- package/dist/modules/jira/services/search-unassigned-issues.service.d.ts +8 -0
- package/dist/modules/jira/services/search-unassigned-issues.service.d.ts.map +1 -0
- package/dist/modules/jira/services/search-unassigned-issues.service.js +62 -0
- package/dist/modules/jira/services/search-unassigned-issues.service.js.map +1 -0
- package/dist/modules/jira/services/transition-issue.service.d.ts +8 -0
- package/dist/modules/jira/services/transition-issue.service.d.ts.map +1 -0
- package/dist/modules/jira/services/transition-issue.service.js +88 -0
- package/dist/modules/jira/services/transition-issue.service.js.map +1 -0
- package/dist/modules/jira/services/update-comment.service.d.ts +8 -0
- package/dist/modules/jira/services/update-comment.service.d.ts.map +1 -0
- package/dist/modules/jira/services/update-comment.service.js +79 -0
- package/dist/modules/jira/services/update-comment.service.js.map +1 -0
- package/dist/modules/jira/services/update-issue.service.d.ts +8 -0
- package/dist/modules/jira/services/update-issue.service.d.ts.map +1 -0
- package/dist/modules/jira/services/update-issue.service.js +108 -0
- package/dist/modules/jira/services/update-issue.service.js.map +1 -0
- package/dist/modules/jira/services/update-worklog.service.d.ts +8 -0
- package/dist/modules/jira/services/update-worklog.service.d.ts.map +1 -0
- package/dist/modules/jira/services/update-worklog.service.js +92 -0
- package/dist/modules/jira/services/update-worklog.service.js.map +1 -0
- package/dist/modules/jira/triggers/index.d.ts +3 -0
- package/dist/modules/jira/triggers/index.d.ts.map +1 -0
- package/dist/modules/jira/triggers/index.js +12 -0
- package/dist/modules/jira/triggers/index.js.map +1 -0
- package/dist/modules/jira/triggers/issue-updated-polling.trigger.d.ts +3 -0
- package/dist/modules/jira/triggers/issue-updated-polling.trigger.d.ts.map +1 -0
- package/dist/modules/jira/triggers/issue-updated-polling.trigger.js +77 -0
- package/dist/modules/jira/triggers/issue-updated-polling.trigger.js.map +1 -0
- package/dist/modules/jira/triggers/new-comment-added.trigger.d.ts +3 -0
- package/dist/modules/jira/triggers/new-comment-added.trigger.d.ts.map +1 -0
- package/dist/modules/jira/triggers/new-comment-added.trigger.js +74 -0
- package/dist/modules/jira/triggers/new-comment-added.trigger.js.map +1 -0
- package/dist/modules/jira/triggers/new-issue-created.trigger.d.ts +3 -0
- package/dist/modules/jira/triggers/new-issue-created.trigger.d.ts.map +1 -0
- package/dist/modules/jira/triggers/new-issue-created.trigger.js +87 -0
- package/dist/modules/jira/triggers/new-issue-created.trigger.js.map +1 -0
- package/dist/modules/jira/utils/jira-adf.util.d.ts +5 -0
- package/dist/modules/jira/utils/jira-adf.util.d.ts.map +1 -0
- package/dist/modules/jira/utils/jira-adf.util.js +73 -0
- package/dist/modules/jira/utils/jira-adf.util.js.map +1 -0
- package/dist/modules/jira/utils/jira-credentials.util.d.ts +4 -0
- package/dist/modules/jira/utils/jira-credentials.util.d.ts.map +1 -0
- package/dist/modules/jira/utils/jira-credentials.util.js +26 -0
- package/dist/modules/jira/utils/jira-credentials.util.js.map +1 -0
- package/dist/modules/jira/utils/jira-error.util.d.ts +3 -0
- package/dist/modules/jira/utils/jira-error.util.d.ts.map +1 -0
- package/dist/modules/jira/utils/jira-error.util.js +25 -0
- package/dist/modules/jira/utils/jira-error.util.js.map +1 -0
- package/dist/services/workflow-edge.service.d.ts +1 -7
- package/dist/services/workflow-edge.service.d.ts.map +1 -1
- package/dist/services/workflow-edge.service.js +2 -29
- package/dist/services/workflow-edge.service.js.map +1 -1
- package/dist/services/workflow-execution.service.js +2 -2
- package/dist/services/workflow-execution.service.js.map +1 -1
- package/dist/services/workflow-history.service.d.ts +66 -0
- package/dist/services/workflow-history.service.d.ts.map +1 -0
- package/dist/services/workflow-history.service.js +459 -0
- package/dist/services/workflow-history.service.js.map +1 -0
- package/dist/services/workflow-node.service.d.ts +1 -7
- package/dist/services/workflow-node.service.d.ts.map +1 -1
- package/dist/services/workflow-node.service.js +2 -29
- package/dist/services/workflow-node.service.js.map +1 -1
- package/dist/services/workflow-sse.service.d.ts +1 -19
- package/dist/services/workflow-sse.service.d.ts.map +1 -1
- package/dist/services/workflow-sse.service.js +0 -24
- package/dist/services/workflow-sse.service.js.map +1 -1
- package/dist/services/workflow.service.d.ts +1 -6
- package/dist/services/workflow.service.d.ts.map +1 -1
- package/dist/services/workflow.service.js +4 -26
- package/dist/services/workflow.service.js.map +1 -1
- package/dist/utils/deep-equal.util.d.ts +2 -0
- package/dist/utils/deep-equal.util.d.ts.map +1 -0
- package/dist/utils/deep-equal.util.js +48 -0
- package/dist/utils/deep-equal.util.js.map +1 -0
- package/dist/utils/workflow-diff.util.d.ts +13 -0
- package/dist/utils/workflow-diff.util.d.ts.map +1 -0
- package/dist/utils/workflow-diff.util.js +84 -0
- package/dist/utils/workflow-diff.util.js.map +1 -0
- package/dist/utils/workflow-snapshot.util.d.ts +5 -0
- package/dist/utils/workflow-snapshot.util.d.ts.map +1 -0
- package/dist/utils/workflow-snapshot.util.js +145 -0
- package/dist/utils/workflow-snapshot.util.js.map +1 -0
- package/dist/utils/workflow-validation.util.d.ts +4 -0
- package/dist/utils/workflow-validation.util.d.ts.map +1 -0
- package/dist/utils/workflow-validation.util.js +62 -0
- package/dist/utils/workflow-validation.util.js.map +1 -0
- package/dist/workflow-core.module.d.ts.map +1 -1
- package/dist/workflow-core.module.js +7 -5
- package/dist/workflow-core.module.js.map +1 -1
- package/dist/workflow.module.d.ts.map +1 -1
- package/dist/workflow.module.js +4 -1
- package/dist/workflow.module.js.map +1 -1
- package/package.json +109 -108
- package/dist/entities/workflow-user.entity.d.ts +0 -13
- package/dist/entities/workflow-user.entity.d.ts.map +0 -1
- package/dist/entities/workflow-user.entity.js.map +0 -1
- package/dist/services/workflow-user.service.d.ts +0 -20
- package/dist/services/workflow-user.service.d.ts.map +0 -1
- package/dist/services/workflow-user.service.js +0 -111
- package/dist/services/workflow-user.service.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transition-issue.action.js","sourceRoot":"","sources":["../../../../src/modules/jira/actions/transition-issue.action.ts"],"names":[],"mappings":";;;AAAA,uCAKqB;AACrB,mFAA8E;AAEjE,QAAA,qBAAqB,GAA0B;IAC1D,GAAG,EAAE,kBAAkB;IACvB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,+CAA+C;IAC5D,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,iDAA4E;IAC1F,MAAM,EAAE;QACN;YACE,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;aACb;YACD,WAAW,EAAE,UAAU;SACxB;QACD;YACE,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,8EAA8E;YAC3F,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;aACb;YACD,WAAW,EAAE,IAAI;SAClB;QACD;YACE,EAAE,EAAE,gBAAgB;YACpB,IAAI,EAAE,iBAAiB;YACvB,WAAW,EAAE,sDAAsD;YACnE,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,WAAW,EAAE,OAAO;SACrB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,8BAA8B;YACpC,WAAW,EAAE,yKAAyK;YACtL,IAAI,EAAE,kBAAU,CAAC,IAAI;YACrB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,WAAW,EAAE,gCAAgC;SAC9C;QACD;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,2CAA2C;YACxD,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,WAAW,EAAE,gBAAgB;SAC9B;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,kBAAU,CAAC,OAAO;SACzB;QACD;YACE,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-comment.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/jira/actions/update-comment.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,mBAAmB,EAAE,qBA6GjC,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateCommentAction = void 0;
|
|
4
|
+
const types_1 = require("../../types");
|
|
5
|
+
const update_comment_service_1 = require("../services/update-comment.service");
|
|
6
|
+
exports.updateCommentAction = {
|
|
7
|
+
key: 'update-comment',
|
|
8
|
+
name: 'Update Comment',
|
|
9
|
+
description: 'Update a comment on a Jira issue',
|
|
10
|
+
category: types_1.NODE_CATEGORY.ACTION,
|
|
11
|
+
icon: '✏️',
|
|
12
|
+
serviceClass: update_comment_service_1.UpdateCommentService,
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
id: 'issueKey',
|
|
16
|
+
name: 'Issue Key',
|
|
17
|
+
description: 'The issue key (e.g., PROJ-123)',
|
|
18
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
19
|
+
validation: {
|
|
20
|
+
required: true,
|
|
21
|
+
minLength: 1,
|
|
22
|
+
},
|
|
23
|
+
placeholder: 'PROJ-123',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 'commentId',
|
|
27
|
+
name: 'Comment ID',
|
|
28
|
+
description: 'The comment ID to update',
|
|
29
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
30
|
+
validation: {
|
|
31
|
+
required: true,
|
|
32
|
+
minLength: 1,
|
|
33
|
+
},
|
|
34
|
+
placeholder: '12345',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: 'body',
|
|
38
|
+
name: 'Comment Body',
|
|
39
|
+
description: 'The updated comment text',
|
|
40
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
41
|
+
validation: {
|
|
42
|
+
required: true,
|
|
43
|
+
minLength: 1,
|
|
44
|
+
},
|
|
45
|
+
placeholder: 'Updated comment',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: 'visibilityType',
|
|
49
|
+
name: 'Visibility Type',
|
|
50
|
+
description: 'Visibility type (role or group)',
|
|
51
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
52
|
+
validation: {
|
|
53
|
+
required: false,
|
|
54
|
+
},
|
|
55
|
+
placeholder: 'role',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: 'visibilityValue',
|
|
59
|
+
name: 'Visibility Value',
|
|
60
|
+
description: 'Visibility value (role name or group name)',
|
|
61
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
62
|
+
validation: {
|
|
63
|
+
required: false,
|
|
64
|
+
},
|
|
65
|
+
placeholder: 'Administrators',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
id: 'visibilityIdentifier',
|
|
69
|
+
name: 'Visibility Identifier',
|
|
70
|
+
description: 'Optional visibility identifier',
|
|
71
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
72
|
+
validation: {
|
|
73
|
+
required: false,
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
outputs: [
|
|
78
|
+
{
|
|
79
|
+
id: 'success',
|
|
80
|
+
name: 'Success',
|
|
81
|
+
description: 'Whether the operation was successful',
|
|
82
|
+
type: types_1.FIELD_TYPE.BOOLEAN,
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: 'id',
|
|
86
|
+
name: 'Comment ID',
|
|
87
|
+
description: 'The comment ID',
|
|
88
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
id: 'self',
|
|
92
|
+
name: 'Self URL',
|
|
93
|
+
description: 'The API URL for this comment',
|
|
94
|
+
type: types_1.FIELD_TYPE.URL,
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: 'body',
|
|
98
|
+
name: 'Comment Body',
|
|
99
|
+
description: 'The updated comment body',
|
|
100
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: 'created',
|
|
104
|
+
name: 'Created',
|
|
105
|
+
description: 'The comment creation timestamp',
|
|
106
|
+
type: types_1.FIELD_TYPE.DATE,
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
id: 'updated',
|
|
110
|
+
name: 'Updated',
|
|
111
|
+
description: 'The comment update timestamp',
|
|
112
|
+
type: types_1.FIELD_TYPE.DATE,
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=update-comment.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-comment.action.js","sourceRoot":"","sources":["../../../../src/modules/jira/actions/update-comment.action.ts"],"names":[],"mappings":";;;AAAA,uCAKqB;AACrB,+EAA0E;AAE7D,QAAA,mBAAmB,GAA0B;IACxD,GAAG,EAAE,gBAAgB;IACrB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,kCAAkC;IAC/C,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,6CAA0E;IACxF,MAAM,EAAE;QACN;YACE,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;aACb;YACD,WAAW,EAAE,UAAU;SACxB;QACD;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;aACb;YACD,WAAW,EAAE,OAAO;SACrB;QACD;YACE,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;aACb;YACD,WAAW,EAAE,iBAAiB;SAC/B;QACD;YACE,EAAE,EAAE,gBAAgB;YACpB,IAAI,EAAE,iBAAiB;YACvB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EA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file":"update-issue.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/jira/actions/update-issue.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,iBAAiB,EAAE,qBA0H/B,CAAC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateIssueAction = void 0;
|
|
4
|
+
const types_1 = require("../../types");
|
|
5
|
+
const update_issue_service_1 = require("../services/update-issue.service");
|
|
6
|
+
exports.updateIssueAction = {
|
|
7
|
+
key: 'update-issue',
|
|
8
|
+
name: 'Update Issue',
|
|
9
|
+
description: 'Update a Jira issue',
|
|
10
|
+
category: types_1.NODE_CATEGORY.ACTION,
|
|
11
|
+
icon: '✏️',
|
|
12
|
+
serviceClass: update_issue_service_1.UpdateIssueService,
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
id: 'issueKey',
|
|
16
|
+
name: 'Issue Key',
|
|
17
|
+
description: 'The issue key (e.g., PROJ-123)',
|
|
18
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
19
|
+
validation: {
|
|
20
|
+
required: true,
|
|
21
|
+
minLength: 1,
|
|
22
|
+
},
|
|
23
|
+
placeholder: 'PROJ-123',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 'summary',
|
|
27
|
+
name: 'Summary',
|
|
28
|
+
description: 'The issue summary/title',
|
|
29
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
30
|
+
validation: {
|
|
31
|
+
required: false,
|
|
32
|
+
},
|
|
33
|
+
placeholder: 'Updated summary',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: 'description',
|
|
37
|
+
name: 'Description',
|
|
38
|
+
description: 'The issue description',
|
|
39
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
40
|
+
validation: {
|
|
41
|
+
required: false,
|
|
42
|
+
},
|
|
43
|
+
placeholder: 'Updated description',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: 'priorityName',
|
|
47
|
+
name: 'Priority Name',
|
|
48
|
+
description: 'Priority name (e.g., Highest, High, Medium, Low, Lowest)',
|
|
49
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
50
|
+
validation: {
|
|
51
|
+
required: false,
|
|
52
|
+
},
|
|
53
|
+
placeholder: 'High',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: 'assigneeAccountId',
|
|
57
|
+
name: 'Assignee Account ID',
|
|
58
|
+
description: 'Assignee account ID (leave empty to unassign)',
|
|
59
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
60
|
+
validation: {
|
|
61
|
+
required: false,
|
|
62
|
+
},
|
|
63
|
+
placeholder: '557058:abc123def456',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: 'labels',
|
|
67
|
+
name: 'Labels',
|
|
68
|
+
description: 'Comma-separated list of labels',
|
|
69
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
70
|
+
validation: {
|
|
71
|
+
required: false,
|
|
72
|
+
},
|
|
73
|
+
placeholder: 'bug,urgent,fix',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
id: 'fields',
|
|
77
|
+
name: 'Additional Fields (Advanced)',
|
|
78
|
+
description: 'Additional fields to update as JSON object. Only use if you need custom fields not available above. Example: {"duedate": "2024-12-31", "customfield_10001": "value"}',
|
|
79
|
+
type: types_1.FIELD_TYPE.JSON,
|
|
80
|
+
validation: {
|
|
81
|
+
required: false,
|
|
82
|
+
},
|
|
83
|
+
placeholder: '{"duedate": "2024-12-31"}',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
id: 'notifyUsers',
|
|
87
|
+
name: 'Notify Users',
|
|
88
|
+
description: 'Whether to notify users about the update',
|
|
89
|
+
type: types_1.FIELD_TYPE.BOOLEAN,
|
|
90
|
+
validation: {
|
|
91
|
+
required: false,
|
|
92
|
+
},
|
|
93
|
+
defaultValue: true,
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
outputs: [
|
|
97
|
+
{
|
|
98
|
+
id: 'success',
|
|
99
|
+
name: 'Success',
|
|
100
|
+
description: 'Whether the operation was successful',
|
|
101
|
+
type: types_1.FIELD_TYPE.BOOLEAN,
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
id: 'id',
|
|
105
|
+
name: 'Issue ID',
|
|
106
|
+
description: 'The internal issue ID',
|
|
107
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
id: 'key',
|
|
111
|
+
name: 'Issue Key',
|
|
112
|
+
description: 'The issue key',
|
|
113
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
id: 'self',
|
|
117
|
+
name: 'Self URL',
|
|
118
|
+
description: 'The API URL for this issue',
|
|
119
|
+
type: types_1.FIELD_TYPE.URL,
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
id: 'fields',
|
|
123
|
+
name: 'Fields',
|
|
124
|
+
description: 'The updated issue fields',
|
|
125
|
+
type: types_1.FIELD_TYPE.OBJECT,
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
};
|
|
129
|
+
//# sourceMappingURL=update-issue.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-issue.action.js","sourceRoot":"","sources":["../../../../src/modules/jira/actions/update-issue.action.ts"],"names":[],"mappings":";;;AAAA,uCAKqB;AACrB,2EAAsE;AAEzD,QAAA,iBAAiB,GAA0B;IACtD,GAAG,EAAE,cAAc;IACnB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,qBAAqB;IAClC,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,yCAAwE;IACtF,MAAM,EAAE;QACN;YACE,EAAE,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AE,8BAA8B;YACpC,WAAW,EAAE,sKAAsK;YACnL,IAAI,EAAE,kBAAU,CAAC,IAAI;YACrB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,WAAW,EAAE,2BAA2B;SACzC;QACD;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,kBAAU,CAAC,OAAO;YACxB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,YAAY,EAAE,IAAI;SACnB;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,kBAAU,CAAC,OAAO;SACzB;QACD;YACE,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,KAAK;YACT,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,kBAAU,CAAC,GAAG;SACrB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-worklog.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/jira/actions/update-worklog.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,mBAAmB,EAAE,qBA0IjC,CAAC"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateWorklogAction = void 0;
|
|
4
|
+
const types_1 = require("../../types");
|
|
5
|
+
const update_worklog_service_1 = require("../services/update-worklog.service");
|
|
6
|
+
exports.updateWorklogAction = {
|
|
7
|
+
key: 'update-worklog',
|
|
8
|
+
name: 'Update Worklog',
|
|
9
|
+
description: 'Update a worklog entry on a Jira issue',
|
|
10
|
+
category: types_1.NODE_CATEGORY.ACTION,
|
|
11
|
+
icon: '✏️',
|
|
12
|
+
serviceClass: update_worklog_service_1.UpdateWorklogService,
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
id: 'issueKey',
|
|
16
|
+
name: 'Issue Key',
|
|
17
|
+
description: 'The issue key (e.g., PROJ-123)',
|
|
18
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
19
|
+
validation: {
|
|
20
|
+
required: true,
|
|
21
|
+
minLength: 1,
|
|
22
|
+
},
|
|
23
|
+
placeholder: 'PROJ-123',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 'worklogId',
|
|
27
|
+
name: 'Worklog ID',
|
|
28
|
+
description: 'The worklog ID to update',
|
|
29
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
30
|
+
validation: {
|
|
31
|
+
required: true,
|
|
32
|
+
minLength: 1,
|
|
33
|
+
},
|
|
34
|
+
placeholder: '12345',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: 'timeSpent',
|
|
38
|
+
name: 'Time Spent',
|
|
39
|
+
description: 'Time spent (e.g., "2h 30m" or "1d 2h 30m")',
|
|
40
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
41
|
+
validation: {
|
|
42
|
+
required: false,
|
|
43
|
+
},
|
|
44
|
+
placeholder: '2h 30m',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: 'timeSpentSeconds',
|
|
48
|
+
name: 'Time Spent (Seconds)',
|
|
49
|
+
description: 'Time spent in seconds (alternative to timeSpent)',
|
|
50
|
+
type: types_1.FIELD_TYPE.NUMBER,
|
|
51
|
+
validation: {
|
|
52
|
+
required: false,
|
|
53
|
+
min: 0,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: 'started',
|
|
58
|
+
name: 'Started',
|
|
59
|
+
description: 'Start time in ISO format',
|
|
60
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
61
|
+
validation: {
|
|
62
|
+
required: false,
|
|
63
|
+
},
|
|
64
|
+
placeholder: '2023-01-01T10:00:00.000+0000',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: 'comment',
|
|
68
|
+
name: 'Comment',
|
|
69
|
+
description: 'Worklog comment',
|
|
70
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
71
|
+
validation: {
|
|
72
|
+
required: false,
|
|
73
|
+
},
|
|
74
|
+
placeholder: 'Updated worklog comment',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: 'visibilityType',
|
|
78
|
+
name: 'Visibility Type',
|
|
79
|
+
description: 'Visibility type (role or group)',
|
|
80
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
81
|
+
validation: {
|
|
82
|
+
required: false,
|
|
83
|
+
},
|
|
84
|
+
placeholder: 'role',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: 'visibilityValue',
|
|
88
|
+
name: 'Visibility Value',
|
|
89
|
+
description: 'Visibility value (role name or group name)',
|
|
90
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
91
|
+
validation: {
|
|
92
|
+
required: false,
|
|
93
|
+
},
|
|
94
|
+
placeholder: 'Administrators',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: 'visibilityIdentifier',
|
|
98
|
+
name: 'Visibility Identifier',
|
|
99
|
+
description: 'Optional visibility identifier',
|
|
100
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
101
|
+
validation: {
|
|
102
|
+
required: false,
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
outputs: [
|
|
107
|
+
{
|
|
108
|
+
id: 'success',
|
|
109
|
+
name: 'Success',
|
|
110
|
+
description: 'Whether the operation was successful',
|
|
111
|
+
type: types_1.FIELD_TYPE.BOOLEAN,
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: 'id',
|
|
115
|
+
name: 'Worklog ID',
|
|
116
|
+
description: 'The worklog ID',
|
|
117
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
id: 'timeSpent',
|
|
121
|
+
name: 'Time Spent',
|
|
122
|
+
description: 'Time spent',
|
|
123
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
id: 'timeSpentSeconds',
|
|
127
|
+
name: 'Time Spent (Seconds)',
|
|
128
|
+
description: 'Time spent in seconds',
|
|
129
|
+
type: types_1.FIELD_TYPE.NUMBER,
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
id: 'started',
|
|
133
|
+
name: 'Started',
|
|
134
|
+
description: 'Start time',
|
|
135
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
id: 'author',
|
|
139
|
+
name: 'Author',
|
|
140
|
+
description: 'The worklog author',
|
|
141
|
+
type: types_1.FIELD_TYPE.OBJECT,
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
};
|
|
145
|
+
//# sourceMappingURL=update-worklog.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-worklog.action.js","sourceRoot":"","sources":["../../../../src/modules/jira/actions/update-worklog.action.ts"],"names":[],"mappings":";;;AAAA,uCAKqB;AACrB,+EAA0E;AAE7D,QAAA,mBAAmB,GAA0B;IACxD,GAAG,EAAE,gBAAgB;IACrB,IAAI,EAA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AAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,YAAY;YACzB,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/jira/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./jira-auth.service"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/jira/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JiraUserService } from '@venturialstd/jira';
|
|
2
|
+
import { CredentialAuthResult, IWorkflowCredentialAuthService } from '../../types';
|
|
3
|
+
export declare class JiraAuthService implements IWorkflowCredentialAuthService {
|
|
4
|
+
private readonly jiraUserService;
|
|
5
|
+
private readonly logger;
|
|
6
|
+
constructor(jiraUserService: JiraUserService);
|
|
7
|
+
authenticate(credentials: Record<string, unknown>): Promise<CredentialAuthResult>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=jira-auth.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jira-auth.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/jira/auth/jira-auth.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAEnF,qBACa,eAAgB,YAAW,8BAA8B;IAGxD,OAAO,CAAC,QAAQ,CAAC,eAAe;IAF5C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;gBAE9B,eAAe,EAAE,eAAe;IAMvD,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAoExF"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var JiraAuthService_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.JiraAuthService = void 0;
|
|
14
|
+
const common_1 = require("@nestjs/common");
|
|
15
|
+
const jira_1 = require("@venturialstd/jira");
|
|
16
|
+
let JiraAuthService = JiraAuthService_1 = class JiraAuthService {
|
|
17
|
+
jiraUserService;
|
|
18
|
+
logger = new common_1.Logger(JiraAuthService_1.name);
|
|
19
|
+
constructor(jiraUserService) {
|
|
20
|
+
this.jiraUserService = jiraUserService;
|
|
21
|
+
if (!this.jiraUserService) {
|
|
22
|
+
this.logger.error('JiraUserService is not injected properly');
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
async authenticate(credentials) {
|
|
26
|
+
try {
|
|
27
|
+
if (!this.jiraUserService) {
|
|
28
|
+
this.logger.error('JiraUserService is undefined');
|
|
29
|
+
return {
|
|
30
|
+
success: false,
|
|
31
|
+
message: 'JiraUserService is not available. Please check module configuration.',
|
|
32
|
+
error: 'SERVICE_UNAVAILABLE',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
const baseUrl = credentials.baseUrl;
|
|
36
|
+
const user = credentials.user;
|
|
37
|
+
const token = credentials.token;
|
|
38
|
+
if (!baseUrl || !user || !token) {
|
|
39
|
+
return {
|
|
40
|
+
success: false,
|
|
41
|
+
message: 'Base URL, user email, and API token are required',
|
|
42
|
+
error: 'MISSING_CREDENTIALS',
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
const config = {
|
|
46
|
+
auth: {
|
|
47
|
+
user,
|
|
48
|
+
token,
|
|
49
|
+
},
|
|
50
|
+
baseUrl,
|
|
51
|
+
};
|
|
52
|
+
try {
|
|
53
|
+
const myself = await this.jiraUserService.getMyself(config);
|
|
54
|
+
return {
|
|
55
|
+
success: true,
|
|
56
|
+
message: `Credentials validated successfully. Connected as ${myself.displayName || myself.name || 'User'} (${myself.emailAddress || 'N/A'})`,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
catch (error) {
|
|
60
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
|
|
61
|
+
const statusCode = error.statusCode;
|
|
62
|
+
const response = error.response;
|
|
63
|
+
const actualStatusCode = statusCode || response?.status;
|
|
64
|
+
if (actualStatusCode === 401 || errorMessage.includes('Unauthorized') || errorMessage.includes('authentication')) {
|
|
65
|
+
return {
|
|
66
|
+
success: false,
|
|
67
|
+
message: 'Invalid credentials. Please check your user email and API token',
|
|
68
|
+
error: 'INVALID_CREDENTIALS',
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
success: false,
|
|
73
|
+
message: `Failed to validate credentials: ${errorMessage}`,
|
|
74
|
+
error: 'VALIDATION_ERROR',
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
catch (error) {
|
|
79
|
+
this.logger.error(`Authentication error: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
80
|
+
return {
|
|
81
|
+
success: false,
|
|
82
|
+
message: error instanceof Error ? error.message : 'Unknown error occurred',
|
|
83
|
+
error: 'AUTH_ERROR',
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
exports.JiraAuthService = JiraAuthService;
|
|
89
|
+
exports.JiraAuthService = JiraAuthService = JiraAuthService_1 = __decorate([
|
|
90
|
+
(0, common_1.Injectable)(),
|
|
91
|
+
__metadata("design:paramtypes", [jira_1.JiraUserService])
|
|
92
|
+
], JiraAuthService);
|
|
93
|
+
//# sourceMappingURL=jira-auth.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jira-auth.service.js","sourceRoot":"","sources":["../../../../src/modules/jira/auth/jira-au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CAAA;AA7EY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;qCAImC,sBAAe;GAHlD,eAAe,CA6E3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../src/modules/jira/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAc,MAAM,UAAU,CAAC;AAEjE,eAAO,MAAM,eAAe,EAAE,yBAAyB,EAsCtD,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.jiraCredentials = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.jiraCredentials = [
|
|
6
|
+
{
|
|
7
|
+
id: 'baseUrl',
|
|
8
|
+
name: 'Base URL',
|
|
9
|
+
description: 'Your Jira instance base URL (e.g., https://your-domain.atlassian.net)',
|
|
10
|
+
type: types_1.FIELD_TYPE.URL,
|
|
11
|
+
validation: {
|
|
12
|
+
required: true,
|
|
13
|
+
minLength: 1,
|
|
14
|
+
},
|
|
15
|
+
placeholder: 'https://your-domain.atlassian.net',
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: 'user',
|
|
20
|
+
name: 'User Email',
|
|
21
|
+
description: 'Your Jira user email address',
|
|
22
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
23
|
+
validation: {
|
|
24
|
+
required: true,
|
|
25
|
+
minLength: 1,
|
|
26
|
+
},
|
|
27
|
+
placeholder: 'user@example.com',
|
|
28
|
+
required: true,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: 'token',
|
|
32
|
+
name: 'API Token',
|
|
33
|
+
description: 'Your Jira API token (create one at https://id.atlassian.com/manage-profile/security/api-tokens)',
|
|
34
|
+
type: types_1.FIELD_TYPE.STRING,
|
|
35
|
+
validation: {
|
|
36
|
+
required: true,
|
|
37
|
+
minLength: 1,
|
|
38
|
+
},
|
|
39
|
+
placeholder: 'your-api-token',
|
|
40
|
+
sensitive: true,
|
|
41
|
+
required: true,
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
//# sourceMappingURL=credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../../src/modules/jira/credentials.ts"],"names":[],"mappings":";;;AAAA,oCAAiE;AAEpD,QAAA,eAAe,GAAgC;IAC1D;QACE,EAAE,EAAE,SAAS;QACb,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,uEAAuE;QACpF,IAAI,EAAE,kBAAU,CAAC,GAAG;QACpB,UAAU,EAAE;YACV,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,CAAC;SACb;QACD,WAAW,EAAE,mCAAmC;QAChD,QAAQ,EAAE,IAAI;KACf;IACD;QACE,EAAE,EAAE,MAAM;QACV,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,8BAA8B;QAC3C,IAAI,EAAE,kBAAU,CAAC,MAAM;QACvB,UAAU,EAAE;YACV,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,CAAC;SACb;QACD,WAAW,EAAE,kBAAkB;QAC/B,QAAQ,EAAE,IAAI;KACf;IACD;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,iGAAiG;QAC9G,IAAI,EAAE,kBAAU,CAAC,MAAM;QACvB,UAAU,EAAE;YACV,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,CAAC;SACb;QACD,WAAW,EAAE,gBAAgB;QAC7B,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,IAAI;KACf;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jira-nest.module.d.ts","sourceRoot":"","sources":["../../../src/modules/jira/jira-nest.module.ts"],"names":[],"mappings":"AAyDA,qBAuGa,cAAc;CAAG"}
|