@nocobase/app-plugin-projects 0.1.0-beta.2 → 0.1.0-beta.20
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/CHANGELOG.md +438 -0
- package/README.md +83 -106
- package/dist/client/api/changed-issues.d.ts +12 -0
- package/dist/client/api/changed-issues.d.ts.map +1 -0
- package/dist/client/api/changed-issues.js +30 -0
- package/dist/client/api/changed-issues.js.map +1 -0
- package/dist/client/api/client.d.ts +8 -25
- package/dist/client/api/client.d.ts.map +1 -1
- package/dist/client/api/client.js +12 -51
- package/dist/client/api/client.js.map +1 -1
- package/dist/client/api/invalidate-queries.d.ts +7 -0
- package/dist/client/api/invalidate-queries.d.ts.map +1 -0
- package/dist/client/api/invalidate-queries.js +65 -0
- package/dist/client/api/invalidate-queries.js.map +1 -0
- package/dist/client/api/keys.d.ts +4 -10
- package/dist/client/api/keys.d.ts.map +1 -1
- package/dist/client/api/keys.js +4 -31
- package/dist/client/api/keys.js.map +1 -1
- package/dist/client/components/attachment-list.d.ts +77 -0
- package/dist/client/components/attachment-list.d.ts.map +1 -0
- package/dist/client/components/attachment-list.js +147 -0
- package/dist/client/components/attachment-list.js.map +1 -0
- package/dist/client/components/pm-badges.d.ts +1 -1
- package/dist/client/components/pm-badges.d.ts.map +1 -1
- package/dist/client/components/pm-description-image.d.ts +4 -0
- package/dist/client/components/pm-description-image.d.ts.map +1 -0
- package/dist/client/components/pm-description-image.js +61 -0
- package/dist/client/components/pm-description-image.js.map +1 -0
- package/dist/client/components/pm-executor-select.d.ts +3 -1
- package/dist/client/components/pm-executor-select.d.ts.map +1 -1
- package/dist/client/components/pm-executor-select.js +6 -1
- package/dist/client/components/pm-executor-select.js.map +1 -1
- package/dist/client/components/pm-markdown.d.ts +1 -1
- package/dist/client/components/pm-markdown.d.ts.map +1 -1
- package/dist/client/components/pm-markdown.js +28 -15
- package/dist/client/components/pm-markdown.js.map +1 -1
- package/dist/client/components/pm-rich-text-editor.d.ts +4 -1
- package/dist/client/components/pm-rich-text-editor.d.ts.map +1 -1
- package/dist/client/components/pm-rich-text-editor.js +44 -4
- package/dist/client/components/pm-rich-text-editor.js.map +1 -1
- package/dist/client/components/pm-rich-text-extensions.d.ts +1 -0
- package/dist/client/components/pm-rich-text-extensions.d.ts.map +1 -1
- package/dist/client/components/pm-rich-text-extensions.js +2 -0
- package/dist/client/components/pm-rich-text-extensions.js.map +1 -1
- package/dist/client/components/ui/radio-group.d.ts +7 -0
- package/dist/client/components/ui/radio-group.d.ts.map +1 -0
- package/dist/client/components/ui/radio-group.js +12 -0
- package/dist/client/components/ui/radio-group.js.map +1 -0
- package/dist/client/components/ui/spinner.d.ts.map +1 -1
- package/dist/client/components/ui/spinner.js +3 -2
- package/dist/client/components/ui/spinner.js.map +1 -1
- package/dist/client/config.d.ts +0 -2
- package/dist/client/config.d.ts.map +1 -1
- package/dist/client/config.js +1 -5
- package/dist/client/config.js.map +1 -1
- package/dist/client/hooks/use-attachment-uploads.d.ts +2 -2
- package/dist/client/hooks/use-attachment-uploads.d.ts.map +1 -1
- package/dist/client/hooks/use-attachment-uploads.js +28 -13
- package/dist/client/hooks/use-attachment-uploads.js.map +1 -1
- package/dist/client/hooks/use-notify.d.ts +3 -0
- package/dist/client/hooks/use-notify.d.ts.map +1 -1
- package/dist/client/hooks/use-notify.js +59 -6
- package/dist/client/hooks/use-notify.js.map +1 -1
- package/dist/client/issues.d.ts +3 -5
- package/dist/client/issues.d.ts.map +1 -1
- package/dist/client/issues.js +3 -4
- package/dist/client/issues.js.map +1 -1
- package/dist/client/kit/executor-presentation.d.ts +15 -0
- package/dist/client/kit/executor-presentation.d.ts.map +1 -0
- package/dist/client/kit/executor-presentation.js +4 -0
- package/dist/client/kit/executor-presentation.js.map +1 -0
- package/dist/client/kit/intake-draft.d.ts +21 -0
- package/dist/client/kit/intake-draft.d.ts.map +1 -0
- package/dist/client/kit/intake-draft.js +20 -0
- package/dist/client/kit/intake-draft.js.map +1 -0
- package/dist/client/kit/issue-creation.d.ts +4 -0
- package/dist/client/kit/issue-creation.d.ts.map +1 -0
- package/dist/client/kit/issue-creation.js +4 -0
- package/dist/client/kit/issue-creation.js.map +1 -0
- package/dist/client/kit/plans/lookup.d.ts +2 -2
- package/dist/client/kit/plans/lookup.js +3 -3
- package/dist/client/kit/plans/lookup.js.map +1 -1
- package/dist/client/kit/plans/plan-confirm.d.ts.map +1 -1
- package/dist/client/kit/plans/plan-confirm.js +2 -2
- package/dist/client/kit/plans/plan-confirm.js.map +1 -1
- package/dist/client/kit/plans/plan-row.js +2 -2
- package/dist/client/kit/plans/plan-row.js.map +1 -1
- package/dist/client/kit.d.ts +9 -9
- package/dist/client/kit.d.ts.map +1 -1
- package/dist/client/kit.js +9 -9
- package/dist/client/kit.js.map +1 -1
- package/dist/client/lib/format.d.ts.map +1 -1
- package/dist/client/lib/format.js +14 -2
- package/dist/client/lib/format.js.map +1 -1
- package/dist/client/lib/kinds.d.ts +3 -29
- package/dist/client/lib/kinds.d.ts.map +1 -1
- package/dist/client/lib/kinds.js +7 -46
- package/dist/client/lib/kinds.js.map +1 -1
- package/dist/client/lib/status-events.d.ts +21 -0
- package/dist/client/lib/status-events.d.ts.map +1 -0
- package/dist/client/lib/status-events.js +31 -0
- package/dist/client/lib/status-events.js.map +1 -0
- package/dist/client/lib/status.d.ts +5 -7
- package/dist/client/lib/status.d.ts.map +1 -1
- package/dist/client/lib/status.js +5 -7
- package/dist/client/lib/status.js.map +1 -1
- package/dist/client/locales/de-DE.d.ts +5 -0
- package/dist/client/locales/de-DE.d.ts.map +1 -0
- package/dist/client/locales/de-DE.js +1327 -0
- package/dist/client/locales/de-DE.js.map +1 -0
- package/dist/client/locales/en-US.d.ts +17 -252
- package/dist/client/locales/en-US.d.ts.map +1 -1
- package/dist/client/locales/en-US.js +21 -252
- package/dist/client/locales/en-US.js.map +1 -1
- package/dist/client/locales/es-ES.d.ts +5 -0
- package/dist/client/locales/es-ES.d.ts.map +1 -0
- package/dist/client/locales/es-ES.js +1341 -0
- package/dist/client/locales/es-ES.js.map +1 -0
- package/dist/client/locales/fr-FR.d.ts +5 -0
- package/dist/client/locales/fr-FR.d.ts.map +1 -0
- package/dist/client/locales/fr-FR.js +1341 -0
- package/dist/client/locales/fr-FR.js.map +1 -0
- package/dist/client/locales/id-ID.d.ts +5 -0
- package/dist/client/locales/id-ID.d.ts.map +1 -0
- package/dist/client/locales/id-ID.js +1327 -0
- package/dist/client/locales/id-ID.js.map +1 -0
- package/dist/client/locales/index.d.ts.map +1 -1
- package/dist/client/locales/index.js +8 -0
- package/dist/client/locales/index.js.map +1 -1
- package/dist/client/locales/ja-JP.d.ts +5 -0
- package/dist/client/locales/ja-JP.d.ts.map +1 -0
- package/dist/client/locales/ja-JP.js +1327 -0
- package/dist/client/locales/ja-JP.js.map +1 -0
- package/dist/client/locales/plans.en-US.js +1 -1
- package/dist/client/locales/plans.en-US.js.map +1 -1
- package/dist/client/locales/plans.zh-CN.js +1 -1
- package/dist/client/locales/plans.zh-CN.js.map +1 -1
- package/dist/client/locales/pt-BR.d.ts +5 -0
- package/dist/client/locales/pt-BR.d.ts.map +1 -0
- package/dist/client/locales/pt-BR.js +1341 -0
- package/dist/client/locales/pt-BR.js.map +1 -0
- package/dist/client/locales/vi-VN.d.ts +5 -0
- package/dist/client/locales/vi-VN.d.ts.map +1 -0
- package/dist/client/locales/vi-VN.js +1327 -0
- package/dist/client/locales/vi-VN.js.map +1 -0
- package/dist/client/locales/zh-CN.d.ts.map +1 -1
- package/dist/client/locales/zh-CN.js +22 -245
- package/dist/client/locales/zh-CN.js.map +1 -1
- package/dist/client/locales/zh-TW.d.ts +5 -0
- package/dist/client/locales/zh-TW.d.ts.map +1 -0
- package/dist/client/locales/zh-TW.js +1327 -0
- package/dist/client/locales/zh-TW.js.map +1 -0
- package/dist/client/pages/config/members/invitations-section.d.ts.map +1 -1
- package/dist/client/pages/config/members/invitations-section.js +34 -12
- package/dist/client/pages/config/members/invitations-section.js.map +1 -1
- package/dist/client/pages/config/members/invite-dialog.d.ts +5 -4
- package/dist/client/pages/config/members/invite-dialog.d.ts.map +1 -1
- package/dist/client/pages/config/members/invite-dialog.js +18 -17
- package/dist/client/pages/config/members/invite-dialog.js.map +1 -1
- package/dist/client/pages/intake/intake-files.d.ts.map +1 -1
- package/dist/client/pages/intake/intake-files.js +38 -2
- package/dist/client/pages/intake/intake-files.js.map +1 -1
- package/dist/client/pages/intake/intake-panel.d.ts.map +1 -1
- package/dist/client/pages/intake/intake-panel.js +19 -7
- package/dist/client/pages/intake/intake-panel.js.map +1 -1
- package/dist/client/pages/intake/use-intake-ai.d.ts +1 -1
- package/dist/client/pages/intake/use-intake-ai.d.ts.map +1 -1
- package/dist/client/pages/intake/use-intake-ai.js +3 -2
- package/dist/client/pages/intake/use-intake-ai.js.map +1 -1
- package/dist/client/pages/intake/use-intake-uploads.d.ts.map +1 -1
- package/dist/client/pages/intake/use-intake-uploads.js +10 -3
- package/dist/client/pages/intake/use-intake-uploads.js.map +1 -1
- package/dist/client/pages/issues/board/board-model.d.ts +1 -1
- package/dist/client/pages/issues/board/board-model.js +1 -1
- package/dist/client/pages/issues/board/use-board-move.d.ts +2 -8
- package/dist/client/pages/issues/board/use-board-move.d.ts.map +1 -1
- package/dist/client/pages/issues/board/use-board-move.js +5 -42
- package/dist/client/pages/issues/board/use-board-move.js.map +1 -1
- package/dist/client/pages/issues/detail/new-subtask.d.ts +0 -1
- package/dist/client/pages/issues/detail/new-subtask.d.ts.map +1 -1
- package/dist/client/pages/issues/detail/new-subtask.js +10 -31
- package/dist/client/pages/issues/detail/new-subtask.js.map +1 -1
- package/dist/client/pages/issues/detail/subtask-model.d.ts +1 -1
- package/dist/client/pages/issues/detail/subtask-model.js +1 -1
- package/dist/client/pages/issues/detail/use-confirmed-update.d.ts +4 -10
- package/dist/client/pages/issues/detail/use-confirmed-update.d.ts.map +1 -1
- package/dist/client/pages/issues/detail/use-confirmed-update.js +6 -42
- package/dist/client/pages/issues/detail/use-confirmed-update.js.map +1 -1
- package/dist/client/pages/issues/detail/use-issue-activity.d.ts.map +1 -1
- package/dist/client/pages/issues/detail/use-issue-activity.js +56 -10
- package/dist/client/pages/issues/detail/use-issue-activity.js.map +1 -1
- package/dist/client/pages/issues/detail/use-issue-page.d.ts +0 -4
- package/dist/client/pages/issues/detail/use-issue-page.d.ts.map +1 -1
- package/dist/client/pages/issues/detail/use-issue-page.js +0 -14
- package/dist/client/pages/issues/detail/use-issue-page.js.map +1 -1
- package/dist/client/pages/issues/detail/use-issue-update.d.ts +2 -2
- package/dist/client/pages/issues/detail/use-issue-update.d.ts.map +1 -1
- package/dist/client/pages/issues/detail/use-issue-update.js +8 -8
- package/dist/client/pages/issues/detail/use-issue-update.js.map +1 -1
- package/dist/client/pages/issues/detail/use-older-activities.d.ts +1 -1
- package/dist/client/pages/issues/detail/use-older-activities.d.ts.map +1 -1
- package/dist/client/pages/issues/detail/use-older-activities.js +7 -24
- package/dist/client/pages/issues/detail/use-older-activities.js.map +1 -1
- package/dist/client/pages/issues/detail/use-older-pages.d.ts +14 -0
- package/dist/client/pages/issues/detail/use-older-pages.d.ts.map +1 -0
- package/dist/client/pages/issues/detail/use-older-pages.js +86 -0
- package/dist/client/pages/issues/detail/use-older-pages.js.map +1 -0
- package/dist/client/pages/issues/detail/use-older-threads.d.ts +1 -1
- package/dist/client/pages/issues/detail/use-older-threads.d.ts.map +1 -1
- package/dist/client/pages/issues/detail/use-older-threads.js +7 -23
- package/dist/client/pages/issues/detail/use-older-threads.js.map +1 -1
- package/dist/client/pages/issues/filters.d.ts +1 -1
- package/dist/client/pages/issues/filters.d.ts.map +1 -1
- package/dist/client/pages/issues/filters.js +2 -0
- package/dist/client/pages/issues/filters.js.map +1 -1
- package/dist/client/pages/issues/new-issue-button.d.ts.map +1 -1
- package/dist/client/pages/issues/new-issue-button.js +1 -1
- package/dist/client/pages/issues/new-issue-button.js.map +1 -1
- package/dist/client/pages/issues/new-issue-form.d.ts +13 -8
- package/dist/client/pages/issues/new-issue-form.d.ts.map +1 -1
- package/dist/client/pages/issues/new-issue-form.js +87 -83
- package/dist/client/pages/issues/new-issue-form.js.map +1 -1
- package/dist/client/pages/issues/new.d.ts.map +1 -1
- package/dist/client/pages/issues/new.js +19 -12
- package/dist/client/pages/issues/new.js.map +1 -1
- package/dist/client/pages/issues/use-executor-options.d.ts +3 -2
- package/dist/client/pages/issues/use-executor-options.d.ts.map +1 -1
- package/dist/client/pages/issues/use-executor-options.js +5 -23
- package/dist/client/pages/issues/use-executor-options.js.map +1 -1
- package/dist/client/pages/my-issues/my-issues-model.d.ts +2 -5
- package/dist/client/pages/my-issues/my-issues-model.d.ts.map +1 -1
- package/dist/client/pages/my-issues/my-issues-model.js +6 -7
- package/dist/client/pages/my-issues/my-issues-model.js.map +1 -1
- package/dist/client/pages/projects/detail/use-project-page.d.ts +4 -26
- package/dist/client/pages/projects/detail/use-project-page.d.ts.map +1 -1
- package/dist/client/pages/projects/detail/use-project-page.js +7 -53
- package/dist/client/pages/projects/detail/use-project-page.js.map +1 -1
- package/dist/client/pages/projects/new.d.ts +1 -1
- package/dist/client/pages/projects/new.d.ts.map +1 -1
- package/dist/client/pages/projects/new.js +3 -7
- package/dist/client/pages/projects/new.js.map +1 -1
- package/dist/client/plugin.d.ts +3 -0
- package/dist/client/plugin.d.ts.map +1 -1
- package/dist/client/plugin.js +8 -1
- package/dist/client/plugin.js.map +1 -1
- package/dist/client/projects.d.ts +2 -2
- package/dist/client/projects.d.ts.map +1 -1
- package/dist/client/projects.js +2 -2
- package/dist/client/projects.js.map +1 -1
- package/dist/client/providers/query-provider.d.ts.map +1 -1
- package/dist/client/providers/query-provider.js +66 -28
- package/dist/client/providers/query-provider.js.map +1 -1
- package/dist/database/migrations/.manifest.json +16 -0
- package/dist/database/migrations/202610110001_pm_issue_graph_revision.d.ts +4 -0
- package/dist/database/migrations/202610110001_pm_issue_graph_revision.d.ts.map +1 -0
- package/dist/database/migrations/202610110001_pm_issue_graph_revision.js +20 -0
- package/dist/database/migrations/202610110001_pm_issue_graph_revision.js.map +1 -0
- package/dist/database/migrations/202610240010_pm_fixed_statuses.d.ts +4 -0
- package/dist/database/migrations/202610240010_pm_fixed_statuses.d.ts.map +1 -0
- package/dist/database/migrations/202610240010_pm_fixed_statuses.js +189 -0
- package/dist/database/migrations/202610240010_pm_fixed_statuses.js.map +1 -0
- package/dist/database/migrations/202610240011_pm_issue_progress.d.ts +4 -0
- package/dist/database/migrations/202610240011_pm_issue_progress.d.ts.map +1 -0
- package/dist/database/migrations/202610240011_pm_issue_progress.js +19 -0
- package/dist/database/migrations/202610240011_pm_issue_progress.js.map +1 -0
- package/dist/database/migrations/202610240012_pm_issue_acceptance.d.ts +4 -0
- package/dist/database/migrations/202610240012_pm_issue_acceptance.d.ts.map +1 -0
- package/dist/database/migrations/202610240012_pm_issue_acceptance.js +17 -0
- package/dist/database/migrations/202610240012_pm_issue_acceptance.js.map +1 -0
- package/dist/server/access/viewer.d.ts +3 -0
- package/dist/server/access/viewer.d.ts.map +1 -1
- package/dist/server/access/viewer.js.map +1 -1
- package/dist/server/composition.d.ts +11 -17
- package/dist/server/composition.d.ts.map +1 -1
- package/dist/server/composition.js +15 -58
- package/dist/server/composition.js.map +1 -1
- package/dist/server/domains/attachments/attachment.routes.d.ts.map +1 -1
- package/dist/server/domains/attachments/attachment.routes.js +13 -1
- package/dist/server/domains/attachments/attachment.routes.js.map +1 -1
- package/dist/server/domains/attachments/attachment.service.d.ts +3 -1
- package/dist/server/domains/attachments/attachment.service.d.ts.map +1 -1
- package/dist/server/domains/attachments/attachment.service.js +36 -2
- package/dist/server/domains/attachments/attachment.service.js.map +1 -1
- package/dist/server/domains/attachments/attachment.store.d.ts +5 -0
- package/dist/server/domains/attachments/attachment.store.d.ts.map +1 -1
- package/dist/server/domains/attachments/attachment.store.js +27 -0
- package/dist/server/domains/attachments/attachment.store.js.map +1 -1
- package/dist/server/domains/comments/comment.queries.d.ts +42 -8
- package/dist/server/domains/comments/comment.queries.d.ts.map +1 -1
- package/dist/server/domains/comments/comment.queries.js +69 -8
- package/dist/server/domains/comments/comment.queries.js.map +1 -1
- package/dist/server/domains/comments/comment.routes.d.ts +1 -1
- package/dist/server/domains/comments/comment.routes.js +4 -4
- package/dist/server/domains/comments/comment.routes.js.map +1 -1
- package/dist/server/domains/comments/comment.service.d.ts +2 -2
- package/dist/server/domains/comments/comment.service.d.ts.map +1 -1
- package/dist/server/domains/comments/comment.service.js +18 -10
- package/dist/server/domains/comments/comment.service.js.map +1 -1
- package/dist/server/domains/comments/comment.store.d.ts +22 -1
- package/dist/server/domains/comments/comment.store.d.ts.map +1 -1
- package/dist/server/domains/comments/comment.store.js +65 -2
- package/dist/server/domains/comments/comment.store.js.map +1 -1
- package/dist/server/domains/comments/index.d.ts +1 -1
- package/dist/server/domains/comments/index.d.ts.map +1 -1
- package/dist/server/domains/comments/index.js.map +1 -1
- package/dist/server/domains/comments/ports.d.ts +7 -2
- package/dist/server/domains/comments/ports.d.ts.map +1 -1
- package/dist/server/domains/invitations/invitation.routes.d.ts +2 -1
- package/dist/server/domains/invitations/invitation.routes.d.ts.map +1 -1
- package/dist/server/domains/invitations/invitation.routes.js +27 -10
- package/dist/server/domains/invitations/invitation.routes.js.map +1 -1
- package/dist/server/domains/invitations/invitation.service.d.ts +1 -1
- package/dist/server/domains/invitations/invitation.service.d.ts.map +1 -1
- package/dist/server/domains/invitations/invitation.service.js +19 -3
- package/dist/server/domains/invitations/invitation.service.js.map +1 -1
- package/dist/server/domains/issues/index.d.ts +4 -4
- package/dist/server/domains/issues/index.d.ts.map +1 -1
- package/dist/server/domains/issues/index.js +3 -3
- package/dist/server/domains/issues/index.js.map +1 -1
- package/dist/server/domains/issues/issue.access.d.ts +2 -0
- package/dist/server/domains/issues/issue.access.d.ts.map +1 -1
- package/dist/server/domains/issues/issue.access.js +8 -1
- package/dist/server/domains/issues/issue.access.js.map +1 -1
- package/dist/server/domains/issues/issue.context.d.ts +6 -22
- package/dist/server/domains/issues/issue.context.d.ts.map +1 -1
- package/dist/server/domains/issues/issue.context.js +88 -105
- package/dist/server/domains/issues/issue.context.js.map +1 -1
- package/dist/server/domains/issues/issue.events.d.ts +5 -1
- package/dist/server/domains/issues/issue.events.d.ts.map +1 -1
- package/dist/server/domains/issues/issue.fields.d.ts +5 -3
- package/dist/server/domains/issues/issue.fields.d.ts.map +1 -1
- package/dist/server/domains/issues/issue.fields.js +42 -16
- package/dist/server/domains/issues/issue.fields.js.map +1 -1
- package/dist/server/domains/issues/issue.projects.d.ts +2 -2
- package/dist/server/domains/issues/issue.projects.d.ts.map +1 -1
- package/dist/server/domains/issues/issue.projects.js +1 -2
- package/dist/server/domains/issues/issue.projects.js.map +1 -1
- package/dist/server/domains/issues/issue.queries.d.ts +26 -7
- package/dist/server/domains/issues/issue.queries.d.ts.map +1 -1
- package/dist/server/domains/issues/issue.queries.js +139 -60
- package/dist/server/domains/issues/issue.queries.js.map +1 -1
- package/dist/server/domains/issues/issue.routes.d.ts +3 -1
- package/dist/server/domains/issues/issue.routes.d.ts.map +1 -1
- package/dist/server/domains/issues/issue.routes.js +72 -46
- package/dist/server/domains/issues/issue.routes.js.map +1 -1
- package/dist/server/domains/issues/issue.service.d.ts +26 -51
- package/dist/server/domains/issues/issue.service.d.ts.map +1 -1
- package/dist/server/domains/issues/issue.service.js +89 -87
- package/dist/server/domains/issues/issue.service.js.map +1 -1
- package/dist/server/domains/issues/issue.status.d.ts +7 -10
- package/dist/server/domains/issues/issue.status.d.ts.map +1 -1
- package/dist/server/domains/issues/issue.status.js +6 -22
- package/dist/server/domains/issues/issue.status.js.map +1 -1
- package/dist/server/domains/issues/issue.store.d.ts +13 -0
- package/dist/server/domains/issues/issue.store.d.ts.map +1 -1
- package/dist/server/domains/issues/issue.store.js +45 -0
- package/dist/server/domains/issues/issue.store.js.map +1 -1
- package/dist/server/domains/issues/ports.d.ts +39 -38
- package/dist/server/domains/issues/ports.d.ts.map +1 -1
- package/dist/server/domains/issues/ports.js +1 -5
- package/dist/server/domains/issues/ports.js.map +1 -1
- package/dist/server/domains/notices/notice.planner.d.ts +2 -1
- package/dist/server/domains/notices/notice.planner.d.ts.map +1 -1
- package/dist/server/domains/notices/notice.planner.js +2 -1
- package/dist/server/domains/notices/notice.planner.js.map +1 -1
- package/dist/server/domains/notices/notice.rules.d.ts +1 -4
- package/dist/server/domains/notices/notice.rules.d.ts.map +1 -1
- package/dist/server/domains/notices/notice.rules.js +4 -5
- package/dist/server/domains/notices/notice.rules.js.map +1 -1
- package/dist/server/domains/plans/intake/intake.service.d.ts +2 -0
- package/dist/server/domains/plans/intake/intake.service.d.ts.map +1 -1
- package/dist/server/domains/plans/intake/intake.service.js +14 -0
- package/dist/server/domains/plans/intake/intake.service.js.map +1 -1
- package/dist/server/domains/plans/intake/intake.text.d.ts +5 -6
- package/dist/server/domains/plans/intake/intake.text.d.ts.map +1 -1
- package/dist/server/domains/plans/intake/intake.text.js +5 -6
- package/dist/server/domains/plans/intake/intake.text.js.map +1 -1
- package/dist/server/domains/plans/plan.engine.d.ts.map +1 -1
- package/dist/server/domains/plans/plan.engine.js +6 -0
- package/dist/server/domains/plans/plan.engine.js.map +1 -1
- package/dist/server/domains/plans/plan.ops.d.ts +3 -3
- package/dist/server/domains/plans/plan.ops.d.ts.map +1 -1
- package/dist/server/domains/plans/plan.ops.js +23 -16
- package/dist/server/domains/plans/plan.ops.js.map +1 -1
- package/dist/server/domains/plans/plan.schemas.d.ts.map +1 -1
- package/dist/server/domains/plans/plan.schemas.js +26 -10
- package/dist/server/domains/plans/plan.schemas.js.map +1 -1
- package/dist/server/domains/projects/index.d.ts +1 -1
- package/dist/server/domains/projects/index.d.ts.map +1 -1
- package/dist/server/domains/projects/index.js.map +1 -1
- package/dist/server/domains/projects/project-resources.d.ts +5 -0
- package/dist/server/domains/projects/project-resources.d.ts.map +1 -1
- package/dist/server/domains/projects/project-resources.js +43 -1
- package/dist/server/domains/projects/project-resources.js.map +1 -1
- package/dist/server/domains/projects/project.events.d.ts +10 -0
- package/dist/server/domains/projects/project.events.d.ts.map +1 -0
- package/dist/server/domains/projects/project.events.js +2 -0
- package/dist/server/domains/projects/project.events.js.map +1 -0
- package/dist/server/domains/projects/project.routes.d.ts.map +1 -1
- package/dist/server/domains/projects/project.routes.js +1 -3
- package/dist/server/domains/projects/project.routes.js.map +1 -1
- package/dist/server/domains/projects/project.service.d.ts +1 -7
- package/dist/server/domains/projects/project.service.d.ts.map +1 -1
- package/dist/server/domains/projects/project.service.js +2 -17
- package/dist/server/domains/projects/project.service.js.map +1 -1
- package/dist/server/domains/projects/project.store.d.ts +0 -1
- package/dist/server/domains/projects/project.store.d.ts.map +1 -1
- package/dist/server/domains/projects/project.store.js +0 -1
- package/dist/server/domains/projects/project.store.js.map +1 -1
- package/dist/server/domains/reports/report.service.d.ts +1 -12
- package/dist/server/domains/reports/report.service.d.ts.map +1 -1
- package/dist/server/domains/reports/report.service.js +92 -136
- package/dist/server/domains/reports/report.service.js.map +1 -1
- package/dist/server/domains/settings/settings.store.d.ts +4 -4
- package/dist/server/domains/settings/settings.store.js +2 -2
- package/dist/server/domains/statuses/event-types.d.ts +16 -0
- package/dist/server/domains/statuses/event-types.d.ts.map +1 -0
- package/dist/server/domains/statuses/event-types.js +31 -0
- package/dist/server/domains/statuses/event-types.js.map +1 -0
- package/dist/server/domains/statuses/index.d.ts +4 -0
- package/dist/server/domains/statuses/index.d.ts.map +1 -0
- package/dist/server/domains/statuses/index.js +4 -0
- package/dist/server/domains/statuses/index.js.map +1 -0
- package/dist/server/domains/statuses/status.catalog.d.ts +15 -0
- package/dist/server/domains/statuses/status.catalog.d.ts.map +1 -0
- package/dist/server/domains/statuses/status.catalog.js +123 -0
- package/dist/server/domains/statuses/status.catalog.js.map +1 -0
- package/dist/server/domains/statuses/status.events.d.ts +15 -0
- package/dist/server/domains/statuses/status.events.d.ts.map +1 -0
- package/dist/server/domains/statuses/status.events.js +2 -0
- package/dist/server/domains/statuses/status.events.js.map +1 -0
- package/dist/server/domains/statuses/status.fire.d.ts +50 -0
- package/dist/server/domains/statuses/status.fire.d.ts.map +1 -0
- package/dist/server/domains/statuses/status.fire.js +42 -0
- package/dist/server/domains/statuses/status.fire.js.map +1 -0
- package/dist/server/domains/subscriptions/subscription.routes.d.ts.map +1 -1
- package/dist/server/domains/subscriptions/subscription.routes.js +4 -2
- package/dist/server/domains/subscriptions/subscription.routes.js.map +1 -1
- package/dist/server/domains/subtasks/index.d.ts +1 -0
- package/dist/server/domains/subtasks/index.d.ts.map +1 -1
- package/dist/server/domains/subtasks/index.js +1 -0
- package/dist/server/domains/subtasks/index.js.map +1 -1
- package/dist/server/domains/subtasks/subtask.blocking.d.ts +10 -5
- package/dist/server/domains/subtasks/subtask.blocking.d.ts.map +1 -1
- package/dist/server/domains/subtasks/subtask.blocking.js +35 -15
- package/dist/server/domains/subtasks/subtask.blocking.js.map +1 -1
- package/dist/server/domains/subtasks/subtask.guard.d.ts +12 -0
- package/dist/server/domains/subtasks/subtask.guard.d.ts.map +1 -0
- package/dist/server/domains/subtasks/subtask.guard.js +23 -0
- package/dist/server/domains/subtasks/subtask.guard.js.map +1 -0
- package/dist/server/domains/subtasks/subtask.release.d.ts +7 -11
- package/dist/server/domains/subtasks/subtask.release.d.ts.map +1 -1
- package/dist/server/domains/subtasks/subtask.release.js +9 -7
- package/dist/server/domains/subtasks/subtask.release.js.map +1 -1
- package/dist/server/domains/subtasks/subtask.routes.d.ts +1 -0
- package/dist/server/domains/subtasks/subtask.routes.d.ts.map +1 -1
- package/dist/server/domains/subtasks/subtask.routes.js +31 -3
- package/dist/server/domains/subtasks/subtask.routes.js.map +1 -1
- package/dist/server/domains/subtasks/subtask.service.d.ts +5 -5
- package/dist/server/domains/subtasks/subtask.service.d.ts.map +1 -1
- package/dist/server/domains/subtasks/subtask.service.js +118 -50
- package/dist/server/domains/subtasks/subtask.service.js.map +1 -1
- package/dist/server/domains/subtasks/subtask.store.d.ts +7 -0
- package/dist/server/domains/subtasks/subtask.store.d.ts.map +1 -1
- package/dist/server/domains/subtasks/subtask.store.js +34 -0
- package/dist/server/domains/subtasks/subtask.store.js.map +1 -1
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +1 -0
- package/dist/server/index.js.map +1 -1
- package/dist/server/kernel/activity.d.ts +5 -2
- package/dist/server/kernel/activity.d.ts.map +1 -1
- package/dist/server/kernel/activity.js +28 -1
- package/dist/server/kernel/activity.js.map +1 -1
- package/dist/server/kernel/actor.d.ts +2 -0
- package/dist/server/kernel/actor.d.ts.map +1 -1
- package/dist/server/kernel/actor.js.map +1 -1
- package/dist/server/kernel/http.d.ts.map +1 -1
- package/dist/server/kernel/http.js +2 -3
- package/dist/server/kernel/http.js.map +1 -1
- package/dist/server/kernel/kinds.d.ts +24 -6
- package/dist/server/kernel/kinds.d.ts.map +1 -1
- package/dist/server/kernel/kinds.js +21 -1
- package/dist/server/kernel/kinds.js.map +1 -1
- package/dist/server/kernel/transaction-read.d.ts +4 -0
- package/dist/server/kernel/transaction-read.d.ts.map +1 -0
- package/dist/server/kernel/transaction-read.js +30 -0
- package/dist/server/kernel/transaction-read.js.map +1 -0
- package/dist/server/kernel/work.d.ts +18 -6
- package/dist/server/kernel/work.d.ts.map +1 -1
- package/dist/server/kernel/work.js +37 -14
- package/dist/server/kernel/work.js.map +1 -1
- package/dist/server/lifecycle/move.d.ts +1 -0
- package/dist/server/lifecycle/move.d.ts.map +1 -1
- package/dist/server/lifecycle/move.js +2 -0
- package/dist/server/lifecycle/move.js.map +1 -1
- package/dist/server/lifecycle/registry.d.ts +5 -0
- package/dist/server/lifecycle/registry.d.ts.map +1 -1
- package/dist/server/lifecycle/registry.js.map +1 -1
- package/dist/server/locales/de-DE.d.ts +5 -0
- package/dist/server/locales/de-DE.d.ts.map +1 -0
- package/dist/server/locales/de-DE.js +202 -0
- package/dist/server/locales/de-DE.js.map +1 -0
- package/dist/server/locales/en-US.d.ts +0 -9
- package/dist/server/locales/en-US.d.ts.map +1 -1
- package/dist/server/locales/en-US.js +0 -9
- package/dist/server/locales/en-US.js.map +1 -1
- package/dist/server/locales/es-ES.d.ts +5 -0
- package/dist/server/locales/es-ES.d.ts.map +1 -0
- package/dist/server/locales/es-ES.js +202 -0
- package/dist/server/locales/es-ES.js.map +1 -0
- package/dist/server/locales/fr-FR.d.ts +5 -0
- package/dist/server/locales/fr-FR.d.ts.map +1 -0
- package/dist/server/locales/fr-FR.js +202 -0
- package/dist/server/locales/fr-FR.js.map +1 -0
- package/dist/server/locales/id-ID.d.ts +5 -0
- package/dist/server/locales/id-ID.d.ts.map +1 -0
- package/dist/server/locales/id-ID.js +202 -0
- package/dist/server/locales/id-ID.js.map +1 -0
- package/dist/server/locales/index.d.ts.map +1 -1
- package/dist/server/locales/index.js +8 -0
- package/dist/server/locales/index.js.map +1 -1
- package/dist/server/locales/ja-JP.d.ts +5 -0
- package/dist/server/locales/ja-JP.d.ts.map +1 -0
- package/dist/server/locales/ja-JP.js +202 -0
- package/dist/server/locales/ja-JP.js.map +1 -0
- package/dist/server/locales/pt-BR.d.ts +5 -0
- package/dist/server/locales/pt-BR.d.ts.map +1 -0
- package/dist/server/locales/pt-BR.js +202 -0
- package/dist/server/locales/pt-BR.js.map +1 -0
- package/dist/server/locales/vi-VN.d.ts +5 -0
- package/dist/server/locales/vi-VN.d.ts.map +1 -0
- package/dist/server/locales/vi-VN.js +202 -0
- package/dist/server/locales/vi-VN.js.map +1 -0
- package/dist/server/locales/zh-CN.d.ts.map +1 -1
- package/dist/server/locales/zh-CN.js +2 -11
- package/dist/server/locales/zh-CN.js.map +1 -1
- package/dist/server/locales/zh-TW.d.ts +5 -0
- package/dist/server/locales/zh-TW.d.ts.map +1 -0
- package/dist/server/locales/zh-TW.js +202 -0
- package/dist/server/locales/zh-TW.js.map +1 -0
- package/dist/server/providers/change-announcer.d.ts +28 -0
- package/dist/server/providers/change-announcer.d.ts.map +1 -0
- package/dist/server/providers/change-announcer.js +75 -0
- package/dist/server/providers/change-announcer.js.map +1 -0
- package/dist/server/providers/notifications.d.ts +1 -0
- package/dist/server/providers/notifications.d.ts.map +1 -1
- package/dist/server/providers/notifications.js +8 -121
- package/dist/server/providers/notifications.js.map +1 -1
- package/dist/server/providers/projects.d.ts +3 -8
- package/dist/server/providers/projects.d.ts.map +1 -1
- package/dist/server/providers/projects.js +16 -37
- package/dist/server/providers/projects.js.map +1 -1
- package/dist/server/routes/api.d.ts.map +1 -1
- package/dist/server/routes/api.js +5 -8
- package/dist/server/routes/api.js.map +1 -1
- package/dist/server/routes/schemas.d.ts +20 -29
- package/dist/server/routes/schemas.d.ts.map +1 -1
- package/dist/server/routes/schemas.js +395 -290
- package/dist/server/routes/schemas.js.map +1 -1
- package/dist/server/tokens.d.ts +22 -35
- package/dist/server/tokens.d.ts.map +1 -1
- package/dist/server/tokens.js +5 -16
- package/dist/server/tokens.js.map +1 -1
- package/dist/shared/access.d.ts +0 -1
- package/dist/shared/access.d.ts.map +1 -1
- package/dist/shared/access.js +2 -11
- package/dist/shared/access.js.map +1 -1
- package/dist/shared/attachments.d.ts +29 -0
- package/dist/shared/attachments.d.ts.map +1 -1
- package/dist/shared/attachments.js +7 -0
- package/dist/shared/attachments.js.map +1 -1
- package/dist/shared/comments.d.ts +3 -0
- package/dist/shared/comments.d.ts.map +1 -1
- package/dist/shared/comments.js.map +1 -1
- package/dist/shared/invitations.d.ts +1 -1
- package/dist/shared/invitations.d.ts.map +1 -1
- package/dist/shared/issues.d.ts +32 -40
- package/dist/shared/issues.d.ts.map +1 -1
- package/dist/shared/issues.js +5 -0
- package/dist/shared/issues.js.map +1 -1
- package/dist/shared/kinds.d.ts +3 -1
- package/dist/shared/kinds.d.ts.map +1 -1
- package/dist/shared/kinds.js +1 -1
- package/dist/shared/locales/access.en-US.d.ts +0 -1
- package/dist/shared/locales/access.en-US.d.ts.map +1 -1
- package/dist/shared/locales/access.en-US.js +1 -2
- package/dist/shared/locales/access.en-US.js.map +1 -1
- package/dist/shared/locales/access.zh-CN.d.ts.map +1 -1
- package/dist/shared/locales/access.zh-CN.js +1 -2
- package/dist/shared/locales/access.zh-CN.js.map +1 -1
- package/dist/shared/plans.d.ts +29 -13
- package/dist/shared/plans.d.ts.map +1 -1
- package/dist/shared/plans.js +2 -1
- package/dist/shared/plans.js.map +1 -1
- package/dist/shared/projects.d.ts +0 -4
- package/dist/shared/projects.d.ts.map +1 -1
- package/dist/shared/projects.js.map +1 -1
- package/dist/shared/realtime.d.ts +10 -3
- package/dist/shared/realtime.d.ts.map +1 -1
- package/dist/shared/realtime.js +3 -2
- package/dist/shared/realtime.js.map +1 -1
- package/dist/shared/statuses.d.ts +42 -0
- package/dist/shared/statuses.d.ts.map +1 -0
- package/dist/shared/statuses.js +73 -0
- package/dist/shared/statuses.js.map +1 -0
- package/dist/shared/subtasks.d.ts +8 -3
- package/dist/shared/subtasks.d.ts.map +1 -1
- package/package.json +21 -29
- package/skills/nocobase-app-plugin-projects/SKILL.md +38 -57
- package/dist/client/lib/built-in-rule-editors.d.ts +0 -13
- package/dist/client/lib/built-in-rule-editors.d.ts.map +0 -1
- package/dist/client/lib/built-in-rule-editors.js +0 -86
- package/dist/client/lib/built-in-rule-editors.js.map +0 -1
- package/dist/client/lib/built-in-rule-types.d.ts +0 -3
- package/dist/client/lib/built-in-rule-types.d.ts.map +0 -1
- package/dist/client/lib/built-in-rule-types.js +0 -63
- package/dist/client/lib/built-in-rule-types.js.map +0 -1
- package/dist/client/lib/status-rule-types.d.ts +0 -60
- package/dist/client/lib/status-rule-types.d.ts.map +0 -1
- package/dist/client/lib/status-rule-types.js +0 -38
- package/dist/client/lib/status-rule-types.js.map +0 -1
- package/dist/client/lib/workflow-events.d.ts +0 -25
- package/dist/client/lib/workflow-events.d.ts.map +0 -1
- package/dist/client/lib/workflow-events.js +0 -30
- package/dist/client/lib/workflow-events.js.map +0 -1
- package/dist/client/pages/config/workflow-detail.d.ts +0 -10
- package/dist/client/pages/config/workflow-detail.d.ts.map +0 -1
- package/dist/client/pages/config/workflow-detail.js +0 -182
- package/dist/client/pages/config/workflow-detail.js.map +0 -1
- package/dist/client/pages/config/workflows/flow-editor.d.ts +0 -15
- package/dist/client/pages/config/workflows/flow-editor.d.ts.map +0 -1
- package/dist/client/pages/config/workflows/flow-editor.js +0 -76
- package/dist/client/pages/config/workflows/flow-editor.js.map +0 -1
- package/dist/client/pages/config/workflows/status-rules.d.ts +0 -21
- package/dist/client/pages/config/workflows/status-rules.d.ts.map +0 -1
- package/dist/client/pages/config/workflows/status-rules.js +0 -203
- package/dist/client/pages/config/workflows/status-rules.js.map +0 -1
- package/dist/client/pages/config/workflows/transitions-matrix.d.ts +0 -20
- package/dist/client/pages/config/workflows/transitions-matrix.d.ts.map +0 -1
- package/dist/client/pages/config/workflows/transitions-matrix.js +0 -114
- package/dist/client/pages/config/workflows/transitions-matrix.js.map +0 -1
- package/dist/client/pages/config/workflows/use-status-name.d.ts +0 -4
- package/dist/client/pages/config/workflows/use-status-name.d.ts.map +0 -1
- package/dist/client/pages/config/workflows/use-status-name.js +0 -17
- package/dist/client/pages/config/workflows/use-status-name.js.map +0 -1
- package/dist/client/pages/config/workflows/workflow-diagram.d.ts +0 -17
- package/dist/client/pages/config/workflows/workflow-diagram.d.ts.map +0 -1
- package/dist/client/pages/config/workflows/workflow-diagram.js +0 -298
- package/dist/client/pages/config/workflows/workflow-diagram.js.map +0 -1
- package/dist/client/pages/config/workflows/workflow-model.d.ts +0 -157
- package/dist/client/pages/config/workflows/workflow-model.d.ts.map +0 -1
- package/dist/client/pages/config/workflows/workflow-model.js +0 -403
- package/dist/client/pages/config/workflows/workflow-model.js.map +0 -1
- package/dist/client/pages/config/workflows/workflow-views.d.ts +0 -31
- package/dist/client/pages/config/workflows/workflow-views.d.ts.map +0 -1
- package/dist/client/pages/config/workflows/workflow-views.js +0 -76
- package/dist/client/pages/config/workflows/workflow-views.js.map +0 -1
- package/dist/client/pages/config/workflows.d.ts +0 -8
- package/dist/client/pages/config/workflows.d.ts.map +0 -1
- package/dist/client/pages/config/workflows.js +0 -139
- package/dist/client/pages/config/workflows.js.map +0 -1
- package/dist/client/pages/issues/detail/start-dialog.d.ts +0 -20
- package/dist/client/pages/issues/detail/start-dialog.d.ts.map +0 -1
- package/dist/client/pages/issues/detail/start-dialog.js +0 -31
- package/dist/client/pages/issues/detail/start-dialog.js.map +0 -1
- package/dist/client/pages/projects/workflow-select.d.ts +0 -14
- package/dist/client/pages/projects/workflow-select.d.ts.map +0 -1
- package/dist/client/pages/projects/workflow-select.js +0 -34
- package/dist/client/pages/projects/workflow-select.js.map +0 -1
- package/dist/server/domains/approvals/approval.events.d.ts +0 -47
- package/dist/server/domains/approvals/approval.events.d.ts.map +0 -1
- package/dist/server/domains/approvals/approval.events.js +0 -2
- package/dist/server/domains/approvals/approval.events.js.map +0 -1
- package/dist/server/domains/approvals/approval.lifecycle.d.ts +0 -8
- package/dist/server/domains/approvals/approval.lifecycle.d.ts.map +0 -1
- package/dist/server/domains/approvals/approval.lifecycle.js +0 -54
- package/dist/server/domains/approvals/approval.lifecycle.js.map +0 -1
- package/dist/server/domains/approvals/approval.routes.d.ts +0 -10
- package/dist/server/domains/approvals/approval.routes.d.ts.map +0 -1
- package/dist/server/domains/approvals/approval.routes.js +0 -86
- package/dist/server/domains/approvals/approval.routes.js.map +0 -1
- package/dist/server/domains/approvals/approval.service.d.ts +0 -72
- package/dist/server/domains/approvals/approval.service.d.ts.map +0 -1
- package/dist/server/domains/approvals/approval.service.js +0 -261
- package/dist/server/domains/approvals/approval.service.js.map +0 -1
- package/dist/server/domains/approvals/approval.store.d.ts +0 -42
- package/dist/server/domains/approvals/approval.store.d.ts.map +0 -1
- package/dist/server/domains/approvals/approval.store.js +0 -66
- package/dist/server/domains/approvals/approval.store.js.map +0 -1
- package/dist/server/domains/approvals/index.d.ts +0 -4
- package/dist/server/domains/approvals/index.d.ts.map +0 -1
- package/dist/server/domains/approvals/index.js +0 -3
- package/dist/server/domains/approvals/index.js.map +0 -1
- package/dist/server/domains/checklists/checklist.routes.d.ts +0 -9
- package/dist/server/domains/checklists/checklist.routes.d.ts.map +0 -1
- package/dist/server/domains/checklists/checklist.routes.js +0 -62
- package/dist/server/domains/checklists/checklist.routes.js.map +0 -1
- package/dist/server/domains/checklists/checklist.service.d.ts +0 -26
- package/dist/server/domains/checklists/checklist.service.d.ts.map +0 -1
- package/dist/server/domains/checklists/checklist.service.js +0 -80
- package/dist/server/domains/checklists/checklist.service.js.map +0 -1
- package/dist/server/domains/checklists/checklist.store.d.ts +0 -32
- package/dist/server/domains/checklists/checklist.store.d.ts.map +0 -1
- package/dist/server/domains/checklists/checklist.store.js +0 -66
- package/dist/server/domains/checklists/checklist.store.js.map +0 -1
- package/dist/server/domains/checklists/index.d.ts +0 -4
- package/dist/server/domains/checklists/index.d.ts.map +0 -1
- package/dist/server/domains/checklists/index.js +0 -4
- package/dist/server/domains/checklists/index.js.map +0 -1
- package/dist/server/domains/workflows/built-in-rule-types.d.ts +0 -40
- package/dist/server/domains/workflows/built-in-rule-types.d.ts.map +0 -1
- package/dist/server/domains/workflows/built-in-rule-types.js +0 -260
- package/dist/server/domains/workflows/built-in-rule-types.js.map +0 -1
- package/dist/server/domains/workflows/event-types.d.ts +0 -21
- package/dist/server/domains/workflows/event-types.d.ts.map +0 -1
- package/dist/server/domains/workflows/event-types.js +0 -31
- package/dist/server/domains/workflows/event-types.js.map +0 -1
- package/dist/server/domains/workflows/index.d.ts +0 -10
- package/dist/server/domains/workflows/index.d.ts.map +0 -1
- package/dist/server/domains/workflows/index.js +0 -10
- package/dist/server/domains/workflows/index.js.map +0 -1
- package/dist/server/domains/workflows/rule-types.d.ts +0 -125
- package/dist/server/domains/workflows/rule-types.d.ts.map +0 -1
- package/dist/server/domains/workflows/rule-types.js +0 -33
- package/dist/server/domains/workflows/rule-types.js.map +0 -1
- package/dist/server/domains/workflows/templates.d.ts +0 -62
- package/dist/server/domains/workflows/templates.d.ts.map +0 -1
- package/dist/server/domains/workflows/templates.js +0 -63
- package/dist/server/domains/workflows/templates.js.map +0 -1
- package/dist/server/domains/workflows/workflow.diff.d.ts +0 -14
- package/dist/server/domains/workflows/workflow.diff.d.ts.map +0 -1
- package/dist/server/domains/workflows/workflow.diff.js +0 -80
- package/dist/server/domains/workflows/workflow.diff.js.map +0 -1
- package/dist/server/domains/workflows/workflow.events.d.ts +0 -26
- package/dist/server/domains/workflows/workflow.events.d.ts.map +0 -1
- package/dist/server/domains/workflows/workflow.events.js +0 -2
- package/dist/server/domains/workflows/workflow.events.js.map +0 -1
- package/dist/server/domains/workflows/workflow.fire.d.ts +0 -38
- package/dist/server/domains/workflows/workflow.fire.d.ts.map +0 -1
- package/dist/server/domains/workflows/workflow.fire.js +0 -57
- package/dist/server/domains/workflows/workflow.fire.js.map +0 -1
- package/dist/server/domains/workflows/workflow.registry.d.ts +0 -27
- package/dist/server/domains/workflows/workflow.registry.d.ts.map +0 -1
- package/dist/server/domains/workflows/workflow.registry.js +0 -130
- package/dist/server/domains/workflows/workflow.registry.js.map +0 -1
- package/dist/server/domains/workflows/workflow.routes.d.ts +0 -6
- package/dist/server/domains/workflows/workflow.routes.d.ts.map +0 -1
- package/dist/server/domains/workflows/workflow.routes.js +0 -148
- package/dist/server/domains/workflows/workflow.routes.js.map +0 -1
- package/dist/server/domains/workflows/workflow.rules.d.ts +0 -14
- package/dist/server/domains/workflows/workflow.rules.d.ts.map +0 -1
- package/dist/server/domains/workflows/workflow.rules.js +0 -190
- package/dist/server/domains/workflows/workflow.rules.js.map +0 -1
- package/dist/server/domains/workflows/workflow.service.d.ts +0 -71
- package/dist/server/domains/workflows/workflow.service.d.ts.map +0 -1
- package/dist/server/domains/workflows/workflow.service.js +0 -365
- package/dist/server/domains/workflows/workflow.service.js.map +0 -1
- package/dist/server/domains/workflows/workflow.store.d.ts +0 -33
- package/dist/server/domains/workflows/workflow.store.d.ts.map +0 -1
- package/dist/server/domains/workflows/workflow.store.js +0 -148
- package/dist/server/domains/workflows/workflow.store.js.map +0 -1
- package/dist/shared/approvals.d.ts +0 -37
- package/dist/shared/approvals.d.ts.map +0 -1
- package/dist/shared/approvals.js +0 -4
- package/dist/shared/approvals.js.map +0 -1
- package/dist/shared/checklists.d.ts +0 -27
- package/dist/shared/checklists.d.ts.map +0 -1
- package/dist/shared/checklists.js +0 -7
- package/dist/shared/checklists.js.map +0 -1
- package/dist/shared/workflows.d.ts +0 -267
- package/dist/shared/workflows.d.ts.map +0 -1
- package/dist/shared/workflows.js +0 -149
- package/dist/shared/workflows.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @nocobase/app-plugin-projects
|
|
2
2
|
|
|
3
|
-
Projects, issues,
|
|
3
|
+
Projects, issues, fixed statuses, labels and members for a NocoBase application.
|
|
4
4
|
|
|
5
5
|
## What it provides
|
|
6
6
|
|
|
@@ -17,15 +17,18 @@ Projects, issues, workflows, labels and members for a NocoBase application.
|
|
|
17
17
|
- **Labels**: a shared label list.
|
|
18
18
|
- **Kinds**: who acts on issues or is named in them. `user` (people) and `system` (the plugin's own rules) are built
|
|
19
19
|
in; another plugin registers more through `projectsKindsToken` (`server/kernel/kinds.ts`): a key, a title, how its
|
|
20
|
-
ids are named, whether it may execute issues (and who may give it work), whether it may be mentioned,
|
|
21
|
-
moves
|
|
22
|
-
|
|
20
|
+
ids are named, whether it may execute issues (and who may give it work), whether it may be mentioned, the status
|
|
21
|
+
moves its principals may make (`moves`, with an optional `mayMove` check per principal and issue), and the executor
|
|
22
|
+
a new issue gets when it names none (`defaultExecutor`). Executors, activity, mentions and status moves name a kind
|
|
23
|
+
by its key; the browser reads the list from `GET /api/projects/me` (`kinds`). A kind may
|
|
23
24
|
also do work (`work`, an `IssueWorkHandler`, `server/kernel/work.ts`): unless a plugin binds `projectsTriggersToken`,
|
|
24
25
|
every change, comment and release is handed, in its transaction, to the work handler of each kind it concerns (the
|
|
25
26
|
executor before and after, the kinds a comment mentions or answers), which answers what it started (`RunAttempt[]`;
|
|
26
|
-
`collectRunAttempts` gathers them around a call). A handler asks `projects.subtasks.blockersOf` whether the issue
|
|
27
|
+
`collectRunAttempts` gathers them around a call). A handler that opts into `observesIssueChanges` also receives creations and updates with an empty or different executor kind, once per change. Service writes pass their already authorized viewer to the observer, so nested routing need not acquire a second connection for permission reads. Issue responses and update events use the final snapshot after these transactional handlers. Creation in `in_progress` or a transition into it starts work; there is no separate start option. A handler asks `projects.subtasks.blockersOf` whether the issue
|
|
27
28
|
waits for unfinished issues and then starts nothing (`skipped: 'blocked'`); it starts nothing either for an issue in
|
|
28
|
-
backlog (`BACKLOG_STATUS`, `skipped: 'dormant'`)
|
|
29
|
+
backlog (`BACKLOG_STATUS`, `skipped: 'dormant'`), or for a principal's comment past a limit the kind keeps
|
|
30
|
+
(`skipped: 'limited'`). A comment of anyone but the system reaches the handlers, with the person it
|
|
31
|
+
was written for (`CommentChange.userId`). When a new `blockedBy` holds the issue, every kind's
|
|
29
32
|
`onBlocked` withdraws the work it had not taken up yet. These skips and withdrawals are recorded on the issue's
|
|
30
33
|
activity as the principal's (`work_skipped`, `work_withdrawn`, with the issues it waits for). It may name the business actions a principal of the kind may be
|
|
31
34
|
given at most (`actions`) and describe executors for a picker (`executor.describe`). `projects.issueContext`
|
|
@@ -34,58 +37,30 @@ Projects, issues, workflows, labels and members for a NocoBase application.
|
|
|
34
37
|
`projects.issues.releaseExecutor(executor, { actor, name })`: every live, unfinished issue it executes is left with
|
|
35
38
|
no executor, recorded as `executor_changed` with `reason: 'executorRemoved'` and the executor's name ("Executor X was
|
|
36
39
|
removed" on the timeline), and handed to the triggers like any change of executor.
|
|
37
|
-
- **
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
contributed ones; `projects.statusRules.list()` lists both. In the browser, `StatusRuleTypesContext` (`client/kit`)
|
|
54
|
-
gives each contributed type its title and hint, the categories it may sit on, its group in the editor's "Add rule"
|
|
55
|
-
menu (`action`, the default, or `condition`), an icon, the settings a new rule starts with, a settings editor and a
|
|
56
|
-
one-line summary; the plugin describes its own types the same way (`client/lib/built-in-rule-types.ts`), and the
|
|
57
|
-
editor has no case of its own for any type. The rules dialog lists the rules a status has as cards, collapsed to
|
|
58
|
-
their title and summary, and adds one from the menu ("When entering", "Entry conditions", "Automatic moves");
|
|
59
|
-
`PmExpandableTextarea` (`client/kit`) is the compact text area for long settings such as an instruction. A rule
|
|
60
|
-
whose plugin is gone stays in the definition: the editor shows it as unavailable and entering the status skips it.
|
|
61
|
-
`POST /api/projects/workflows/{workflowId}/preview` lists what saving a definition would change in the rules, and which rules wake
|
|
62
|
-
someone without anybody confirming it. A contributed type may also hold an entry condition (`canEnter`): every move
|
|
63
|
-
into a status carrying it asks it first, whoever moves (a person, an agent, a plan, an applied approval, the system
|
|
64
|
-
on an event), and a refusal is 400 with the type's own code. An exit condition (`canLeave`) is asked the same way
|
|
65
|
-
before an issue leaves a status carrying the rule.
|
|
66
|
-
- **Contributed workflow events and issue marks**: other plugins register workflow events through
|
|
67
|
-
`projectsWorkflowEventsToken` (a dotted key such as `acme.merged`, and the status categories a transition on it may
|
|
68
|
-
leave and enter) and fire one for a batch of issues with `projects.workflowEvents.fire({ event, issueIds, actor?,
|
|
69
|
-
note?, details? }, tx?)`: each issue moves along its workflow's `on` transition, as the system, and the activity names
|
|
70
|
-
`actor`. `projects.workflowEvents.target(event, issueId)` says where firing it would take one issue without moving it
|
|
71
|
-
(for a confirmation that says what an action will do). The plugin never knows what an event means. A transition on an event whose plugin is gone stays in the
|
|
72
|
-
definition and shows as unavailable. In the browser, `WorkflowEventsContext` (`client/kit`) titles the events for the
|
|
73
|
-
editor and the timeline. The issues pages show the list and the board, the board by default.
|
|
74
|
-
- **Ways to start an issue**: a status carrying a `startOption` rule (with an optional label and hint, text or i18n
|
|
75
|
-
keys) is offered by the New issue form as a process to start in, such as "Design first" on Analysis or "Straight to
|
|
76
|
-
development" on Todo; `GET /api/projects/issues/starts?projectId=` lists them, the workflow's initial status first, and
|
|
77
|
-
nothing while no status carries the rule (the form then shows no choice). `POST /api/projects/issues` takes the choice as
|
|
78
|
-
`statusKey`.
|
|
40
|
+
- **Statuses**: six, fixed for every project (`shared/statuses.ts`): `backlog` (nothing starts), `in_progress`,
|
|
41
|
+
`blocked` (waiting for a person), `in_review` (waiting to be accepted), `done` and `cancelled`. People move an issue
|
|
42
|
+
between any two of them; a principal of another kind only along its kind's `moves`, and only when its `mayMove`
|
|
43
|
+
agrees; the system only along a status event. Entering `blocked` or `in_review` tells the issue's owner, unless the
|
|
44
|
+
owner moved it (`owner_notified`). The moves go through `server/lifecycle` (below), compiled from the statuses, the
|
|
45
|
+
registered kinds' moves and the registered status events (`domains/statuses/`).
|
|
46
|
+
- **Status events**: other plugins register status events through `projectsStatusEventsToken` (a dotted key such as
|
|
47
|
+
`acme.merged`, the statuses it moves an issue out of, `from`, and the status it moves it to, `to`) and fire one for a
|
|
48
|
+
batch of issues with `projects.statusEvents.fire({ event, issueIds, actor?, note?, details? }, tx?)`: each issue in
|
|
49
|
+
one of `from` moves to `to`, as the system, and the activity names `actor`. `projects.statusEvents.target(event,
|
|
50
|
+
issueId)` says where firing it would take one issue without moving it (for a confirmation that says what an action
|
|
51
|
+
will do). The plugin never knows what an event means. In the browser, `StatusEventsContext` (`client/kit`) titles the
|
|
52
|
+
events for the timeline. The issues pages show the list and the board, the board by default.
|
|
53
|
+
- **Starting an issue**: a new issue starts in `backlog` or `in_progress` (`START_STATUSES`; `backlog` when the request
|
|
54
|
+
names none, `DEFAULT_START_STATUS`), and the New issue form asks "Start now" or "Later". Created in `in_progress`, or
|
|
55
|
+
moved there, an issue's work starts.
|
|
79
56
|
- **Projects**: a lead, members, visibility (`workspace` or `members`), status, dates and linked resources.
|
|
80
|
-
- **Issues**: an owner, an executor (nobody, a member, or a principal of another registered kind), a status
|
|
81
|
-
|
|
57
|
+
- **Issues**: an owner, an executor (nobody, a member, or a principal of another registered kind), a status,
|
|
58
|
+
priority, dates, a parent, labels and an activity history. Admins can soft-delete and restore.
|
|
82
59
|
- **Sub-issues and dependencies**: a sub-issue may have a stage (0–1000); a later stage waits until every earlier
|
|
83
60
|
stage of its siblings is finished (done or closed). An issue may be blocked by others; a link that would make issues
|
|
84
61
|
wait for each other in a cycle is refused. When an issue finishes, the issues waiting only on it are released (their
|
|
85
62
|
executor, or with nobody working on them their owner, is told), and the parent's owner is told when a stage or all
|
|
86
|
-
sub-issues are finished
|
|
87
|
-
`system` actor. A status may also refuse issues whose sub-issues are open (`subtasksDone`) or that are blocked
|
|
88
|
-
(`blockersDone`). A project may have a setup issue (`Project.setupIssueId`, an issue created with
|
|
63
|
+
sub-issues are finished; the parent's own status does not move on its own. A project may have a setup issue (`Project.setupIssueId`, an issue created with
|
|
89
64
|
`projectSetup: true` by someone who manages the project, one unfinished at a time): every issue created in the
|
|
90
65
|
project after it, except its own sub-issues, is created blocked by it until it is finished. `IssueTriggers` (`onUnblocked`, `onBlocked`, `onSubtasksFinished`) let other plugins react, and
|
|
91
66
|
`subtasks.visibleBlockers(viewer, issueIds)` tells another plugin's board what holds each issue now, in a fixed number
|
|
@@ -116,10 +91,10 @@ note?, details? }, tx?)`: each issue moves along its workflow's `on` transition,
|
|
|
116
91
|
so an inbox can merge it.
|
|
117
92
|
- **Batch reads for boards**: `issueQueries.matching(viewer, query, { executorType?, issueIds?, limit? })` answers, in
|
|
118
93
|
a fixed number of reads, the viewer's issues within the list's filters that an executor of a kind works on (unless
|
|
119
|
-
finished) or that are among the ids given (whatever their status), with `truncated` past the limit
|
|
120
|
-
`
|
|
121
|
-
issueIds)` those of them a person follows. An application's board of work joins its own records to issues with
|
|
94
|
+
finished) or that are among the ids given (whatever their status), with `truncated` past the limit, and
|
|
95
|
+
`subscriptions.followedBy(conn, userId, issueIds)` those of them a person follows. An application's board of work joins its own records to issues with
|
|
122
96
|
them, without a query per issue.
|
|
97
|
+
- **Hierarchy reads**: `issueQueries.hierarchy(viewer, query)` returns the complete independently authorized live issue scope, filtered matching IDs and internal dependency-wait facts before paging. It is an uncapped input for application-owned grouping, never a substitute for authorization. `hierarchyItems(viewer, ids)` hydrates at most 100 independently reauthorized rows with visible child/dependency counts; callers must replace raw parent IDs at unreadable boundaries. Applications own attention policy, grouping and continuation consistency. No new task statuses or persistence are required.
|
|
123
98
|
- **Operation plans** (`shared/plans.ts`, `server/domains/plans/`): a short list of changes (create or update an
|
|
124
99
|
issue, comment, add or remove a dependency, create a project; 1–50 rows, later rows may refer to what earlier ones
|
|
125
100
|
create) that one person, the decider, reviews and executes as a whole. Creating, editing and retrying a plan
|
|
@@ -134,7 +109,7 @@ issueIds)` those of them a person follows. An application's board of work joins
|
|
|
134
109
|
made through a plan, or by an agent for a person (`Actor.via = 'agent'` with its trace), show on the timeline as
|
|
135
110
|
"via ‹Agent›" or "via ‹Agent›'s plan" (`Activity.via`). Other plugins use `projects.plans` (`PlanService`) and hear
|
|
136
111
|
decisions through `projectsPlanHooksToken` (`PlanHooks.onPlanDecided`). A plan is visible to its decider and, for a
|
|
137
|
-
status rule's plan about an issue, to the issue's owner and editors.
|
|
112
|
+
status rule's plan about an issue (from earlier versions), to the issue's owner and editors.
|
|
138
113
|
- **Intake with AI** (`shared/intake-ai.ts`, `server/domains/plans/intake/intake.ai.*`): as the old NocoProject, AI
|
|
139
114
|
splits requirements into drafts ("AI split"), revises the drafts by one instruction ("Ask AI to revise", with the
|
|
140
115
|
rows it added or changed highlighted and an undo), and breaks an issue down into sub-issue drafts ("AI breakdown" on
|
|
@@ -151,6 +126,10 @@ issueIds)` those of them a person follows. An application's board of work joins
|
|
|
151
126
|
|
|
152
127
|
Everything is under `/api/projects` and needs a session (401 otherwise). Responses are `{ data }`, lists `{ data, meta }`; inputs are validated (400 `INVALID_INPUT`, domain `app`, with `fieldViolations`; JSON bodies are strict). Fixed segments come before `/{projectId}`.
|
|
153
128
|
|
|
129
|
+
Invitation create/resend results include a shareable `inviteUrl` for an authorized original inviter using an unscoped person credential, regardless of email delivery. An invitation closed or rotated before its queued send returns `emailSent=false` without a link; other recipients, including existing accounts joining projects, still complete. Global user creation or role assignment permissions are not needed to copy a project invitation. `POST /api/projects/invitations/{invitationId}/resend?sendEmail=false` generates a new link without email, invalidating the old invitation. Member settings confirm this before generating a link, then offer a separate Copy action. Current project access is checked again; other managers can resend email but do not receive links, and scoped credentials remain email-only. Lists never expose tokens.
|
|
130
|
+
|
|
131
|
+
New accounts register directly from the invitation link with a name and password; acceptance leaves `emailVerified=false`. Email delivery is optional: authorized original inviters can privately forward the link when the email channel is absent or fails. Links use `app.publicOrigin` when configured, otherwise the invitation request origin. Existing accounts must sign in with the invited email. Acceptance consumes only the supplied invitation and applies only its grants; handlers run in its transaction and roll back account creation on failure.
|
|
132
|
+
|
|
154
133
|
| Method and path | What it does |
|
|
155
134
|
| ---------------------------------------------------------------------------------- | ----------------------------------------------------------- |
|
|
156
135
|
| `GET /me` | The caller with their permissions |
|
|
@@ -159,15 +138,12 @@ Everything is under `/api/projects` and needs a session (401 otherwise). Respons
|
|
|
159
138
|
| `GET/POST /invitations`, `POST …/{invitationId}/resend`, `DELETE …/{invitationId}` | Member invitations |
|
|
160
139
|
| `GET /settings`, `PATCH /settings` | Workspace settings |
|
|
161
140
|
| `GET/POST /labels`, `PATCH/DELETE /labels/{labelId}` | Labels |
|
|
162
|
-
| `GET/POST /workflows`, `GET/PATCH/DELETE /workflows/{workflowId}` | Workflows; a new one is a copy (`copyFrom`) |
|
|
163
|
-
| `POST /workflows/{workflowId}/preview` | What saving a definition would change |
|
|
164
|
-
| `POST /workflows/{workflowId}/setDefault` | Makes a workflow the default |
|
|
165
141
|
| `GET/POST /` , `GET/PATCH/DELETE /{projectId}` | Projects |
|
|
166
142
|
| `POST /{projectId}/members`, `DELETE …/members/{userId}` | Project members (201 the member added; 204) |
|
|
167
143
|
| `POST /{projectId}/resources`, `PATCH/DELETE …/resources/{resourceId}` | Project resources |
|
|
168
144
|
| `GET /issues?…&orderBy&pageSize&pageToken` | A page of issues, cursor-paginated |
|
|
169
145
|
| `GET /issues/board` | The board: a column per status, each a first page |
|
|
170
|
-
| `GET /issues/statuses
|
|
146
|
+
| `GET /issues/statuses` | The fixed statuses |
|
|
171
147
|
| `POST /issues`, `GET/PATCH/DELETE /issues/{issueId}` | Issues, by id or identifier (`PM-12`) |
|
|
172
148
|
| `POST /issues/{issueId}/restore` | Restores a deleted issue |
|
|
173
149
|
| `GET /issues/{issueId}/activities?pageSize&pageToken` | Older activities |
|
|
@@ -177,16 +153,13 @@ Everything is under `/api/projects` and needs a session (401 otherwise). Respons
|
|
|
177
153
|
| `POST /comments/{commentId}/resolve`, `…/unresolve` | Resolves or reopens a thread (on its root) |
|
|
178
154
|
| `POST /issues/{issueId}/subscribe`, `…/unsubscribe` | Follows or unfollows the issue |
|
|
179
155
|
| `GET/POST /issues/{issueId}/attachments` | The issue's own files; uploads one onto it |
|
|
156
|
+
| `GET /issues/{issueId}/screenshots` | Latest 100 live Agent comment images and comment provenance |
|
|
180
157
|
| `POST /attachments` | Uploads one file, attached to nothing yet |
|
|
181
158
|
| `GET /attachments/{attachmentId}`, `…/content`, `DELETE` | A file, its bytes (`?download=true`), removing it |
|
|
182
|
-
| `GET /issues/{issueId}/checklists` | Every checklist the issue has had |
|
|
183
|
-
| `PATCH /issues/{issueId}/checklists/{statusKey}/items/{itemKey}` | Checks or unchecks an item (`{ checked }`) |
|
|
184
159
|
| `POST /issues/{issueId}/dependencies` | Adds a link (`{ dependsOnIssueId, type }`) |
|
|
160
|
+
| `PATCH /issues/{issueId}/dependencies/{dependencyId}` | Changes a link type (`{ type, expectedType }`) atomically |
|
|
185
161
|
| `DELETE /issues/{issueId}/dependencies/{dependencyId}` | Removes a link |
|
|
186
162
|
| `POST /issues/{issueId}/removeDependency` | Removes the link to an issue (`{ dependsOnIssueId, type }`) |
|
|
187
|
-
| `GET /approvals` | Status changes waiting for the caller's approval |
|
|
188
|
-
| `POST /approvals/{approvalId}/approve`, `…/reject` | An approver decides (`{ comment? }`) |
|
|
189
|
-
| `POST /approvals/{approvalId}/withdraw` | Whoever asked withdraws the request |
|
|
190
163
|
| `POST /plans/rehearse` | Rehearses a plan and stores nothing |
|
|
191
164
|
| `GET/POST /plans`, `GET/PATCH /plans/{planId}` | Operation plans: list, create, read, edit rows |
|
|
192
165
|
| `POST /plans/{planId}/execute`, `…/retry`, `…/void` | Decides a plan (`{ revision }`) |
|
|
@@ -196,36 +169,31 @@ Everything is under `/api/projects` and needs a session (401 otherwise). Respons
|
|
|
196
169
|
| `GET /intake/aiAvailability` | Whether AI can be asked |
|
|
197
170
|
| `POST /intake/aiJobs`, `GET …/{jobId}`, `POST …/{jobId}/cancel` | A request to AI; cancelling it |
|
|
198
171
|
|
|
172
|
+
Relationship conversion preserves the link ID and checks the type the caller read (`expectedType`). A stale change returns 409 `DEPENDENCY_CHANGED`; if the target relationship already exists, it returns 409 `DEPENDENCY_EXISTS` and keeps both links. A related link may be converted from either end: the current issue becomes the waiting issue when changed to `blockedBy`.
|
|
173
|
+
|
|
174
|
+
Operations that add explicit or implicit waits (dependencies, conversions, issue creation, parent/stage changes and restores) share a dedicated database graph revision row. Its conditional increment protects cycle detection and writes until the outer transaction commits, across processes and projects. An outdated transaction snapshot returns 409 `DEPENDENCY_GRAPH_CHANGED`; reload and retry the whole operation. Every issue creation takes this protection before allocating its number, so plans that create issues and add dependencies use the same lock order. Standalone creates without dependencies lock the row without advancing the graph revision, so independent parallel creates still succeed without retrying each other. The revision is separate from settings/counters so MySQL reads of those rows after writing them cannot disguise an old graph snapshot. Restoring an issue is rejected if its waits would now create a cycle. Every relationship write, including both removal endpoints, acquires this protection before reading its type and endpoints, keeping duplicate checks, activity and release notifications consistent with conversions. Issue status and project changes, status events and deletion take the same guard before writing an issue, so concurrent changes cannot each see an old blocker and miss the last release. Automatic parent/stage completion keeps the originating guard; ordinary edits that cannot change waits do not acquire it. Plans acquire the guard without advancing its revision before their first row, including rehearsal and undo, so earlier issue edits cannot reverse the lock order of a later graph write.
|
|
175
|
+
|
|
199
176
|
Cursor lists (issues, activities, comment threads, plans) take `pageSize` (20 by default, at most 100; plans 50) and `pageToken`, and answer `meta.nextPageToken` until the last page. `orderBy` on issues is `updatedAt`, `createdAt`, `number` or `priority`, optionally followed by `asc` or `desc` (`updatedAt desc` by default). The other lists are answered whole with `meta.total`. A scoped API key may not use `/intake` or `/plans` (403 `SCOPED_KEY_FORBIDDEN`).
|
|
200
177
|
|
|
201
|
-
Errors are the standard error body with domain `projects`; clients branch on `reason`, and `metadata` carries the details. A missing resource the URL names is 404 `<RESOURCE>_NOT_FOUND` (such as `ISSUE_NOT_FOUND`); a project or issue named in the query that does not exist is 400 with a field violation. `PATCH /issues/{issueId}`
|
|
178
|
+
Errors are the standard error body with domain `projects`; clients branch on `reason`, and `metadata` carries the details. A missing resource the URL names is 404 `<RESOURCE>_NOT_FOUND` (such as `ISSUE_NOT_FOUND`); a project or issue named in the query that does not exist is 400 with a field violation. `PATCH /issues/{issueId}` needs the `revision` the caller read; a stale one is 409 `ABORTED` `REVISION_CONFLICT`. It answers 200 `{ data: { issue } }`. A status that does not exist, or a new issue in any status but `backlog` and `in_progress`, is 400 `INVALID_STATUS`; a move the caller's kind may not make is 400 `TRANSITION_NOT_ALLOWED`. A dependency that would close a cycle is 400 `DEPENDENCY_CYCLE` (`metadata.via`), one too deep to check 400 `DEPENDENCY_TOO_DEEP`, a duplicate 409 `ALREADY_EXISTS` `DEPENDENCY_EXISTS`. A plan with a failing row is 400 `PLAN_INVALID` with every row's check in `metadata.rows`; deciding a plan that is not open is 400 `PLAN_NOT_OPEN`, an expired one 400 `PLAN_EXPIRED`; undoing after the window is 400 `UNDO_EXPIRED`, with nothing left to revert 400 `NOTHING_TO_UNDO`, and when something changed since the preview 409 `ABORTED` `UNDO_STALE`. Other refusals by state are 400 `FAILED_PRECONDITION` too.
|
|
202
179
|
|
|
203
|
-
##
|
|
180
|
+
## Statuses and the lifecycle module
|
|
204
181
|
|
|
205
182
|
`server/lifecycle/` is a self-contained state machine for records, with no import from the domains, so it can become
|
|
206
183
|
a platform package: a definition as data (states with a category, transitions `from → to` naming who may take them,
|
|
207
|
-
`*` for any state, and event transitions `on` an event
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
`server/domains/
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
`
|
|
217
|
-
`
|
|
218
|
-
|
|
219
|
-
`
|
|
220
|
-
withdrawn or stale, each decision a transition with a "who may" rule). Approving moves the issue as the requester's
|
|
221
|
-
move, checked again; when it no longer passes, the request goes stale. Notices (`server/providers/notifications.ts`:
|
|
222
|
-
the owner told, approvers asked to decide, the requester told the outcome) go to `projectsNoticesToken` when the App
|
|
223
|
-
binds it (`ProjectsNotices`: `send` each notice with its kind, type, issue and approval request; `resolve` a decision
|
|
224
|
-
once its request is decided) — the assembling application keeps its inbox that way. A request another kind (an agent) made tells the
|
|
225
|
-
issue's owner its outcome instead of the requester; an approved request that no longer applies (its conditions failed
|
|
226
|
-
when it was approved) tells the approvers and whoever asked, except the approver (`approval_stale`). The issue page lists
|
|
227
|
-
the last five decided requests (`IssueDetail.recentApprovals`). Without it they go straight to the notification
|
|
228
|
-
plugin's in-app channel `projects.inboxChannel` names (`inbox` by default) when that channel is configured.
|
|
184
|
+
`*` for any state, and event transitions `on` an event, which only `fire` takes), `validateDefinition`, `compile` (the
|
|
185
|
+
questions the application asks) and `move`, the one path through which a state changes. It runs in the caller's unit
|
|
186
|
+
of work, in order: who may (the actor on the transition, and a registered "who may" rule over the record), the guards
|
|
187
|
+
of the state left and the state entered, the caller's write, and the entry actions, each in its own savepoint. Rules
|
|
188
|
+
are registered by name (`createLifecycleRegistry`).
|
|
189
|
+
|
|
190
|
+
`server/domains/statuses/` compiles the fixed statuses into such a definition: people `* → *`, each registered kind's
|
|
191
|
+
`moves` (behind a "who may" rule asking the kind's `mayMove`), and each status event's transitions for the system; the
|
|
192
|
+
definition is compiled again whenever the kinds or events change. The entry action `notifyOwner` on `blocked` and
|
|
193
|
+
`in_review` records `owner_notified` and announces it. Notices (`server/providers/notifications.ts`) go to
|
|
194
|
+
`projectsNoticesToken` when the App binds it (`ProjectsNotices`: `send` each notice with its kind, type and issue) —
|
|
195
|
+
the assembling application keeps its inbox that way. Without it they go straight to the notification plugin's in-app
|
|
196
|
+
channel `projects.inboxChannel` names (`inbox` by default) when that channel is configured.
|
|
229
197
|
|
|
230
198
|
## Permissions
|
|
231
199
|
|
|
@@ -237,7 +205,7 @@ What can be granted (`shared/access.ts`); the application stores and assigns the
|
|
|
237
205
|
| Business actions | `pm.issues` | `view`, `create`, `edit`, `comment`, `moderate-comments`, |
|
|
238
206
|
| | | `close`, `change-owner`, `delete` |
|
|
239
207
|
| Business actions | `pm.attachments` | `upload` |
|
|
240
|
-
| Settings items | `pm.general`, `pm.labels
|
|
208
|
+
| Settings items | `pm.general`, `pm.labels` | `read`, `update` |
|
|
241
209
|
| Settings items | `pm.members` | `read`, `invite`, `assign`, `define-roles` |
|
|
242
210
|
| Pages | `pm-my-issues`, `pm-issues`, `pm-projects` | `access` |
|
|
243
211
|
|
|
@@ -257,43 +225,38 @@ The plugin seeds no roles: the application that assembles it seeds its own (the
|
|
|
257
225
|
|
|
258
226
|
| Path | What it shows |
|
|
259
227
|
| ------------------------------------- | ----------------------------------------------------------- |
|
|
260
|
-
| `/my-issues
|
|
228
|
+
| `/my-issues` | The viewer's owned or executed issues, each once |
|
|
261
229
|
| `/issues` (`?view=board` or `list`) | Every visible issue; filters, search and order in the URL |
|
|
262
230
|
| `/issues/new` (`?tab=ai` or `manual`) | The New issue dialog: AI draft (intake) or one issue |
|
|
263
231
|
| `/issues/new?tab=ai&job=:id` | The AI draft tab following a request to AI |
|
|
264
232
|
| `/issues/:id`, `/issues/plans/:id` | One issue, by id or identifier; one plan, by its id |
|
|
265
233
|
| `/projects`, `/projects/new` | Projects; a new one (a project's page is the application's) |
|
|
266
234
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
to start an issue as its process. A change that would start an executor of another kind working asks "Start now?"
|
|
271
|
-
first, as the old NocoProject asked: giving an agent the issue (on creation, a sub-issue, or in the properties) or
|
|
272
|
-
moving an issue it executes out of backlog (a status change or a board drag). Nothing starts in backlog or a finished
|
|
273
|
-
status, so a change landing there asks nothing. Approvals are decided on the issue
|
|
274
|
-
page and wherever the application sends their notices (for example, its inbox).
|
|
235
|
+
My tasks combines owned and executed issues, and the New issue dialog opens on its "AI draft" tab (the last tab used is remembered in the browser): requirements typed or uploaded are split into a draft of issues, edited row by row and created together, after which the dialog closes. Its manual tab asks when the issue starts: "Start now" (`in_progress`) or "Later" (`backlog`), and preselects the default executor. Nothing asks "Start now?" any more: moving an issue to `in_progress` starts its work.
|
|
236
|
+
|
|
237
|
+
Applications that create tasks through conversation can render the retained create and subtask pages under `IssueCreationModeContext.Provider` (from `client/kit`) with `value='manual'`. This shows only the original guarded form, ignoring old AI tab parameters and preferences, without changing the default plugin pages.
|
|
275
238
|
|
|
276
239
|
The settings pages are exported for the application to route under its own `/config` (`client/config.ts`: the issue
|
|
277
|
-
prefix
|
|
240
|
+
prefix and labels), and components it reuses on its member pages are exported from
|
|
278
241
|
`client/kit.ts`. The application routes an issue's page itself and presents it (for example, with the UI Library's
|
|
279
242
|
`issue-detail`, `comment-thread` and `attachment-list`) over the headless parts in `client/issues.ts`: the issue
|
|
280
|
-
(`useIssueDetail`), its property changes (`useIssueUpdate
|
|
243
|
+
(`useIssueDetail`), its property changes (`useIssueUpdate`; `useConfirmedUpdate` applies a change at once), every other
|
|
281
244
|
change of the page (`useIssuePageActions`), the activity line (`useIssueTimeline`, `useIssueCommentActions`,
|
|
282
245
|
`useMentionSearch`, `useAttachmentUploads`), "Break into sub-issues" (`useIntakeBreakdown`), and the permission and
|
|
283
246
|
wording helpers. It routes a project's page the same way, as a child of the plugin's `/projects` (`projectsRoute` from
|
|
284
|
-
`client/pages`), over the headless parts in `client/projects.ts`: the project with
|
|
285
|
-
(`useProjectDetail`, `useProjectStatuses
|
|
247
|
+
`client/pages`), over the headless parts in `client/projects.ts`: the project with the statuses
|
|
248
|
+
(`useProjectDetail`, `useProjectStatuses`), its property changes (`useProjectUpdate`), members and
|
|
286
249
|
visibility (`useProjectMembership`), working directories (`useProjectResources`, `useResourceValidation`), deleting it
|
|
287
250
|
(`useDeleteProject`), and the progress, numbers and permission helpers. The pages are behind the `pm-my-issues`, `pm-issues` and `pm-projects` page grants. They hide
|
|
288
251
|
what the server would refuse (`client/lib/permissions.ts` mirrors its rules); the server still checks every request.
|
|
289
|
-
Open pages refresh when the server announces a change on the `pm:changes` realtime topic.
|
|
252
|
+
Open pages refresh when the server announces a change on the `pm:changes` realtime topic: once for the events of a moment, naming the issues that changed when no change moved an issue between lists (`issueIds`), so a page refreshes only what it shows of them (`announcedIssueIds`, `changedIssueSegments` and `isIssueRead` in `client/kit`).
|
|
290
253
|
|
|
291
254
|
## Layout
|
|
292
255
|
|
|
293
256
|
- `shared/`: types and constants the server and the client share.
|
|
294
257
|
- `server/kernel/`: infrastructure with no business rules (errors, events, transactions, pagination, validation).
|
|
295
258
|
- `server/access/`: how a request becomes a `Viewer` with resolved permissions.
|
|
296
|
-
- `server/lifecycle/`: the record state machine behind
|
|
259
|
+
- `server/lifecycle/`: the record state machine behind the statuses (see above).
|
|
297
260
|
- `server/domains/<name>/`: one folder per domain: `*.store.ts` (tables), `*.access.ts` (who sees what),
|
|
298
261
|
`*.service.ts` (writes), `*.routes.ts` (HTTP), `index.ts` (the domain's public surface).
|
|
299
262
|
- `server/composition.ts`: wires the domains; `server/providers/` registers them with the app.
|
|
@@ -308,3 +271,17 @@ Open pages refresh when the server announces a change on the `pm:changes` realti
|
|
|
308
271
|
```bash
|
|
309
272
|
pnpm --filter @nocobase/app-plugin-projects check
|
|
310
273
|
```
|
|
274
|
+
|
|
275
|
+
When renewing an invitation, deleted projects are ignored if at least one selected project remains. The inviter must still be authorized to invite into every remaining project. If all originally selected projects were deleted, renewal is rejected.
|
|
276
|
+
|
|
277
|
+
Invitation emails use `notificationService.sendTransient()` so credentials never enter notification message snapshots or job storage. This performs one bounded attempt without durable retries or deduplication. Failures retain safe status/category diagnostics without raw provider messages. The inviter can generate and privately deliver a new link if delivery fails. Historical notification snapshots are not rewritten.
|
|
278
|
+
|
|
279
|
+
## Structured issue progress
|
|
280
|
+
|
|
281
|
+
`Issue` exposes nullable text `needsYou` and `next`. `PATCH /api/projects/issues/{issueId}` and `issue.update` plan rows accept them in the same transaction as `statusKey`. Both fields are optional for people, agents, plans and system events. Omitted needsYou is retained in Blocked or In review; null, empty or whitespace clears it. Applications may constrain authenticated callers at their request boundary. Leaving these states clears it. Omitted `next` is retained; nonblank text replaces it; null, an empty string or whitespace clears it. Done and Cancelled always clear it. Both fields allow at most 2,000 characters. Progress-only writes advance revision and emit the existing refresh event. System status events share the optional-field validation and clearing rules. The new reversible migration adds the two columns without backfilling comments.
|
|
282
|
+
|
|
283
|
+
`Issue` also exposes nullable Markdown `acceptance`: the issue's delivery report — how it was, the agreed approach, what changed, how it was checked, open issues and details — ending with the acceptance criteria the owner checks and where. `PATCH /api/projects/issues/{issueId}` accepts it in any status, normally with the move to In review (`nb-studio issue update <issue> --status in_review --acceptance-file report.md`). It is kept across status changes, including Done, Cancelled and a move back to In progress, and the next delivery replaces it; omitted it is retained, and null, an empty string or whitespace clears it. It allows at most 20,000 characters (`ISSUE_ACCEPTANCE_MAX`). Its reversible migration adds the column without backfilling.
|
|
284
|
+
|
|
285
|
+
Manual issue descriptions accept pasted images through the existing protected attachment upload. Creation accepts optional `attachmentIds` of the caller's own unattached uploads and requires `pm.attachments` `upload` in addition to issue creation permission. Files are bound in the creation transaction before work starts, so the first agent context includes them. Descriptions remain Markdown; image nodes survive detail edits. Uploading blocks submission; cancelling leaves unattached files to the existing purge.
|
|
286
|
+
|
|
287
|
+
Applications can provide `ExecutorPresentationContext` from the client kit to render the identity and availability of their registered executor kind in new issue and subtask selectors. It changes presentation only; the server still supplies candidates and enforces qualifications.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which cached issue reads an announcement (`PmChangeEvent.issueIds`) concerns: an issue's reads are keyed by
|
|
3
|
+
* `pmKeys.issue(idOrKey)` and what sits under it, with the id or, on a page opened by its key, the identifier.
|
|
4
|
+
*/
|
|
5
|
+
import type { QueryClient, QueryKey } from '@tanstack/react-query';
|
|
6
|
+
/** The issue ids an announcement names, or null when any issue may have changed. */
|
|
7
|
+
export declare function announcedIssueIds(payload: unknown): ReadonlySet<string> | null;
|
|
8
|
+
/** The key segments (`pmKeys.issue(segment)`) whose reads are of one of `issueIds`: the ids, and the keys loaded for them. */
|
|
9
|
+
export declare function changedIssueSegments(client: Pick<QueryClient, 'getQueryCache'>, issueIds: ReadonlySet<string>): Set<string>;
|
|
10
|
+
/** Whether a query key is one issue's read (`['pm', 'issue', segment, ...]`) of a segment among `segments`. */
|
|
11
|
+
export declare function isIssueRead(key: QueryKey, segments: ReadonlySet<string>): boolean;
|
|
12
|
+
//# sourceMappingURL=changed-issues.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"changed-issues.d.ts","sourceRoot":"","sources":["../../../client/api/changed-issues.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAInE,oFAAoF;AACpF,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,GACf,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAK5B;AAED,8HAA8H;AAC9H,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,eAAe,CAAC,EAC1C,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,GAC5B,GAAG,CAAC,MAAM,CAAC,CAeb;AAED,+GAA+G;AAC/G,wBAAgB,WAAW,CACzB,GAAG,EAAE,QAAQ,EACb,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,GAC5B,OAAO,CAOT"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** The issue ids an announcement names, or null when any issue may have changed. */
|
|
2
|
+
export function announcedIssueIds(payload) {
|
|
3
|
+
const ids = payload?.issueIds;
|
|
4
|
+
return Array.isArray(ids) && ids.every((id) => typeof id === 'string')
|
|
5
|
+
? new Set(ids)
|
|
6
|
+
: null;
|
|
7
|
+
}
|
|
8
|
+
/** The key segments (`pmKeys.issue(segment)`) whose reads are of one of `issueIds`: the ids, and the keys loaded for them. */
|
|
9
|
+
export function changedIssueSegments(client, issueIds) {
|
|
10
|
+
const segments = new Set(issueIds);
|
|
11
|
+
for (const query of client
|
|
12
|
+
.getQueryCache()
|
|
13
|
+
.findAll({ queryKey: ['pm', 'issue'] })) {
|
|
14
|
+
const segment = query.queryKey[2];
|
|
15
|
+
const id = query.state.data?.id;
|
|
16
|
+
if (typeof segment === 'string' &&
|
|
17
|
+
typeof id === 'string' &&
|
|
18
|
+
issueIds.has(id))
|
|
19
|
+
segments.add(segment);
|
|
20
|
+
}
|
|
21
|
+
return segments;
|
|
22
|
+
}
|
|
23
|
+
/** Whether a query key is one issue's read (`['pm', 'issue', segment, ...]`) of a segment among `segments`. */
|
|
24
|
+
export function isIssueRead(key, segments) {
|
|
25
|
+
return (key[0] === 'pm' &&
|
|
26
|
+
key[1] === 'issue' &&
|
|
27
|
+
typeof key[2] === 'string' &&
|
|
28
|
+
segments.has(key[2]));
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=changed-issues.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"changed-issues.js","sourceRoot":"","sources":["../../../client/api/changed-issues.ts"],"names":[],"mappings":"AAQA,oFAAoF;AACpF,MAAM,U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
|
|
@@ -5,21 +5,18 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { ApiClient } from '@nocobase/app-client';
|
|
7
7
|
import type { Page } from '../../shared/common.js';
|
|
8
|
-
import type { ApprovalRequest } from '../../shared/approvals.js';
|
|
9
8
|
import type { Attachment } from '../../shared/attachments.js';
|
|
10
|
-
import type { IssueChecklist, UpdateChecklistItemRequest } from '../../shared/checklists.js';
|
|
11
9
|
import { type CommentReaction, type CreateCommentRequest, type CreateCommentResult, type IssueComment, type MentionCandidate, type ThreadPage, type ThreadResolution } from '../../shared/comments.js';
|
|
12
10
|
import type { CreateInvitationsRequest, Invitation, InvitationResult } from '../../shared/invitations.js';
|
|
13
|
-
import { type ActivityPage, type CreateIssueRequest, type Issue, type IssueBoard, type
|
|
11
|
+
import { type ActivityPage, type CreateIssueRequest, type Issue, type IssueBoard, type IssueDetail, type IssueListItem, type IssueListQuery, type StatusDefinition, type UpdateIssueRequest, type UpdateIssueResult } from '../../shared/issues.js';
|
|
14
12
|
import type { CreateLabelRequest, Label, UpdateLabelRequest } from '../../shared/labels.js';
|
|
15
13
|
import type { ExecutorCandidate } from '../../shared/kinds.js';
|
|
16
14
|
import type { ApiKeyActor, Me, Member } from '../../shared/members.js';
|
|
17
15
|
import type { CreateProjectRequest, CreateProjectResourceRequest, ProjectDetail, ProjectListItem, ProjectResource, UpdateProjectRequest, UpdateProjectResourceRequest } from '../../shared/projects.js';
|
|
18
16
|
import type { UpdateSettingsRequest, WorkspaceSettings } from '../../shared/settings.js';
|
|
19
|
-
import type { AddDependencyRequest, IssueDependency } from '../../shared/subtasks.js';
|
|
17
|
+
import type { AddDependencyRequest, IssueDependency, UpdateDependencyRequest } from '../../shared/subtasks.js';
|
|
20
18
|
import type { UserRef } from '../../shared/common.js';
|
|
21
19
|
import type { SubscriptionState } from '../../shared/subscriptions.js';
|
|
22
|
-
import type { CreateWorkflowRequest, UpdateWorkflowRequest, WorkflowDefinition, WorkflowListItem, WorkflowPreview } from '../../shared/workflows.js';
|
|
23
20
|
export declare class PmApi {
|
|
24
21
|
private readonly api;
|
|
25
22
|
constructor(api: ApiClient);
|
|
@@ -31,7 +28,7 @@ export declare class PmApi {
|
|
|
31
28
|
executors(): Promise<ExecutorCandidate[]>;
|
|
32
29
|
invitations(): Promise<Invitation[]>;
|
|
33
30
|
invite(input: CreateInvitationsRequest): Promise<readonly InvitationResult[]>;
|
|
34
|
-
resendInvitation(invitationId: string): Promise<InvitationResult>;
|
|
31
|
+
resendInvitation(invitationId: string, sendEmail?: boolean): Promise<InvitationResult>;
|
|
35
32
|
revokeInvitation(invitationId: string): Promise<void>;
|
|
36
33
|
settings(): Promise<WorkspaceSettings>;
|
|
37
34
|
updateSettings(input: UpdateSettingsRequest): Promise<WorkspaceSettings>;
|
|
@@ -39,14 +36,6 @@ export declare class PmApi {
|
|
|
39
36
|
createLabel(input: CreateLabelRequest): Promise<Label>;
|
|
40
37
|
updateLabel(labelId: string, input: UpdateLabelRequest): Promise<Label>;
|
|
41
38
|
deleteLabel(labelId: string): Promise<void>;
|
|
42
|
-
workflows(): Promise<WorkflowListItem[]>;
|
|
43
|
-
workflow(workflowId: string): Promise<WorkflowListItem>;
|
|
44
|
-
createWorkflow(input: CreateWorkflowRequest): Promise<WorkflowListItem>;
|
|
45
|
-
updateWorkflow(workflowId: string, input: UpdateWorkflowRequest): Promise<WorkflowListItem>;
|
|
46
|
-
/** What saving `definition` would change in the workflow's rules; nothing is written. */
|
|
47
|
-
previewWorkflow(workflowId: string, definition: WorkflowDefinition): Promise<WorkflowPreview>;
|
|
48
|
-
setDefaultWorkflow(workflowId: string): Promise<WorkflowListItem>;
|
|
49
|
-
deleteWorkflow(workflowId: string): Promise<void>;
|
|
50
39
|
projects(): Promise<ProjectListItem[]>;
|
|
51
40
|
project(projectId: string): Promise<ProjectDetail>;
|
|
52
41
|
createProject(input: CreateProjectRequest): Promise<ProjectDetail>;
|
|
@@ -58,10 +47,8 @@ export declare class PmApi {
|
|
|
58
47
|
addProjectResource(projectId: string, input: CreateProjectResourceRequest): Promise<ProjectResource>;
|
|
59
48
|
updateProjectResource(projectId: string, resourceId: string, input: UpdateProjectResourceRequest): Promise<ProjectResource>;
|
|
60
49
|
deleteProjectResource(projectId: string, resourceId: string): Promise<void>;
|
|
61
|
-
/** The statuses
|
|
62
|
-
statuses(
|
|
63
|
-
/** The ways a new issue may start in a project's workflow; without a project, in that of issues without one. */
|
|
64
|
-
starts(projectId?: string | null): Promise<IssueStarts>;
|
|
50
|
+
/** The fixed statuses, in order. */
|
|
51
|
+
statuses(): Promise<StatusDefinition[]>;
|
|
65
52
|
issuePage(query: IssueListQuery): Promise<Page<IssueListItem>>;
|
|
66
53
|
/** A column per status, each with its first `ISSUE_PAGE_LIMIT.default` issues. */
|
|
67
54
|
board(query: IssueListQuery): Promise<IssueBoard>;
|
|
@@ -69,21 +56,17 @@ export declare class PmApi {
|
|
|
69
56
|
issue(idOrKey: string): Promise<IssueDetail>;
|
|
70
57
|
activities(issueId: string, cursor?: string): Promise<ActivityPage>;
|
|
71
58
|
createIssue(input: CreateIssueRequest): Promise<Issue>;
|
|
72
|
-
/** The issue after the change
|
|
59
|
+
/** The issue after the change. */
|
|
73
60
|
updateIssue(issueId: string, input: UpdateIssueRequest): Promise<UpdateIssueResult>;
|
|
74
61
|
deleteIssue(issueId: string): Promise<void>;
|
|
75
62
|
restoreIssue(issueId: string): Promise<Issue>;
|
|
76
|
-
/** The status changes waiting for the caller's approval. */
|
|
77
|
-
approvals(): Promise<ApprovalRequest[]>;
|
|
78
|
-
decideApproval(requestId: string, decision: 'approve' | 'reject', comment?: string): Promise<ApprovalRequest>;
|
|
79
|
-
withdrawApproval(requestId: string): Promise<ApprovalRequest>;
|
|
80
63
|
/** Makes the issue wait for (`blockedBy`, the default) or link to (`relatedTo`) another; answers the link. */
|
|
81
64
|
addDependency(issueId: string, input: AddDependencyRequest): Promise<IssueDependency>;
|
|
65
|
+
/** Converts a relationship atomically, keeping its id and checking the type the caller read. */
|
|
66
|
+
updateDependency(issueId: string, dependencyId: string, input: UpdateDependencyRequest): Promise<IssueDependency>;
|
|
82
67
|
/** Removes the link to `dependsOnIssueId` of `type` (`blockedBy` when left out). */
|
|
83
68
|
removeDependencyTo(issueId: string, input: AddDependencyRequest): Promise<void>;
|
|
84
69
|
removeDependency(issueId: string, dependencyId: string): Promise<void>;
|
|
85
|
-
/** Checks or unchecks one item of the issue's checklist of `statusKey`; answers that checklist. */
|
|
86
|
-
setChecklistItem(issueId: string, statusKey: string, itemKey: string, input: UpdateChecklistItemRequest): Promise<IssueChecklist>;
|
|
87
70
|
/** Threads older than `cursor` (the detail brings the newest page and its cursor). */
|
|
88
71
|
threads(issueId: string, cursor?: string): Promise<ThreadPage>;
|
|
89
72
|
createComment(issueId: string, input: CreateCommentRequest): Promise<CreateCommentResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../client/api/client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../client/api/client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAEL,KAAK,eAAe,EAEpB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EACV,wBAA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