@things-factory/worklist 7.0.0-alpha.9 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-client/activity-summary-generator.js +1 -1
- package/dist-client/activity-summary-generator.js.map +1 -1
- package/dist-client/bootstrap.d.ts +1 -1
- package/dist-client/bootstrap.js +4 -4
- package/dist-client/bootstrap.js.map +1 -1
- package/dist-client/components/activity-/bowner-view.d.ts +1 -1
- package/dist-client/components/activity-/bowner-view.js +3 -3
- package/dist-client/components/activity-/bowner-view.js.map +1 -1
- package/dist-client/components/activity-approval-ribon.d.ts +0 -1
- package/dist-client/components/activity-approval-ribon.js +7 -8
- package/dist-client/components/activity-approval-ribon.js.map +1 -1
- package/dist-client/components/activity-instance-preview.d.ts +1 -1
- package/dist-client/components/activity-instance-preview.js +9 -9
- package/dist-client/components/activity-instance-preview.js.map +1 -1
- package/dist-client/components/activity-instance-ribon.d.ts +1 -1
- package/dist-client/components/activity-instance-ribon.js +8 -8
- package/dist-client/components/activity-instance-ribon.js.map +1 -1
- package/dist-client/components/activity-intro-view.d.ts +1 -1
- package/dist-client/components/activity-intro-view.js +3 -3
- package/dist-client/components/activity-intro-view.js.map +1 -1
- package/dist-client/components/activity-reporter-view.d.ts +1 -1
- package/dist-client/components/activity-reporter-view.js +3 -3
- package/dist-client/components/activity-reporter-view.js.map +1 -1
- package/dist-client/components/activity-starter-form.d.ts +3 -2
- package/dist-client/components/activity-starter-form.js +39 -39
- package/dist-client/components/activity-starter-form.js.map +1 -1
- package/dist-client/components/activity-thread-ribon.d.ts +1 -1
- package/dist-client/components/activity-thread-ribon.js +8 -8
- package/dist-client/components/activity-thread-ribon.js.map +1 -1
- package/dist-client/components/activity-thread-timeline.d.ts +1 -1
- package/dist-client/components/activity-thread-timeline.js +15 -14
- package/dist-client/components/activity-thread-timeline.js.map +1 -1
- package/dist-client/grist-editor/grist-editor-activity-search-key.js +1 -1
- package/dist-client/grist-editor/grist-editor-activity-search-key.js.map +1 -1
- package/dist-client/grist-editor/grist-renderer-activity-search-key.d.ts +1 -1
- package/dist-client/grist-editor/grist-renderer-activity-search-key.js +7 -4
- package/dist-client/grist-editor/grist-renderer-activity-search-key.js.map +1 -1
- package/dist-client/grist-editor/popup-activity-search-keys-input.js +7 -10
- package/dist-client/grist-editor/popup-activity-search-keys-input.js.map +1 -1
- package/dist-client/pages/activity/activity-list-page.js +6 -11
- package/dist-client/pages/activity/activity-list-page.js.map +1 -1
- package/dist-client/pages/activity/activity-model-item-list.js +26 -22
- package/dist-client/pages/activity/activity-model-item-list.js.map +1 -1
- package/dist-client/pages/activity/activity-page.js +1 -1
- package/dist-client/pages/activity/activity-page.js.map +1 -1
- package/dist-client/pages/activity/activity-partial-view.js +1 -1
- package/dist-client/pages/activity/activity-partial-view.js.map +1 -1
- package/dist-client/pages/activity/starter-list-page.d.ts +2 -3
- package/dist-client/pages/activity/starter-list-page.js +28 -45
- package/dist-client/pages/activity/starter-list-page.js.map +1 -1
- package/dist-client/pages/activity-approval/activity-approval-importer.d.ts +1 -0
- package/dist-client/pages/activity-approval/activity-approval-importer.js +5 -12
- package/dist-client/pages/activity-approval/activity-approval-importer.js.map +1 -1
- package/dist-client/pages/activity-approval/activity-approval-list-page.d.ts +0 -1
- package/dist-client/pages/activity-approval/activity-approval-list-page.js +4 -32
- package/dist-client/pages/activity-approval/activity-approval-list-page.js.map +1 -1
- package/dist-client/pages/activity-approval/activity-approval-page.d.ts +6 -4
- package/dist-client/pages/activity-approval/activity-approval-page.js +10 -6
- package/dist-client/pages/activity-approval/activity-approval-page.js.map +1 -1
- package/dist-client/pages/activity-instance/activity-instance-list-page.d.ts +1 -2
- package/dist-client/pages/activity-instance/activity-instance-list-page.js +5 -32
- package/dist-client/pages/activity-instance/activity-instance-list-page.js.map +1 -1
- package/dist-client/pages/activity-instance/activity-instance-search-page.d.ts +0 -1
- package/dist-client/pages/activity-instance/activity-instance-search-page.js +7 -47
- package/dist-client/pages/activity-instance/activity-instance-search-page.js.map +1 -1
- package/dist-client/pages/activity-instance/activity-instance-start-page.d.ts +7 -5
- package/dist-client/pages/activity-instance/activity-instance-start-page.js +1 -1
- package/dist-client/pages/activity-instance/activity-instance-start-page.js.map +1 -1
- package/dist-client/pages/activity-instance/activity-instance-view.js +50 -36
- package/dist-client/pages/activity-instance/activity-instance-view.js.map +1 -1
- package/dist-client/pages/activity-stats/activity-stats-importer.d.ts +1 -0
- package/dist-client/pages/activity-stats/activity-stats-importer.js +5 -12
- package/dist-client/pages/activity-stats/activity-stats-importer.js.map +1 -1
- package/dist-client/pages/activity-stats/activity-stats-list-page.d.ts +0 -1
- package/dist-client/pages/activity-stats/activity-stats-list-page.js +4 -32
- package/dist-client/pages/activity-stats/activity-stats-list-page.js.map +1 -1
- package/dist-client/pages/activity-store/activity-store-page.d.ts +1 -2
- package/dist-client/pages/activity-store/activity-store-page.js +4 -25
- package/dist-client/pages/activity-store/activity-store-page.js.map +1 -1
- package/dist-client/pages/activity-supervisor/reporter-list-page.d.ts +1 -2
- package/dist-client/pages/activity-supervisor/reporter-list-page.js +4 -31
- package/dist-client/pages/activity-supervisor/reporter-list-page.js.map +1 -1
- package/dist-client/pages/activity-template/activity-template-importer.d.ts +1 -0
- package/dist-client/pages/activity-template/activity-template-importer.js +13 -20
- package/dist-client/pages/activity-template/activity-template-importer.js.map +1 -1
- package/dist-client/pages/activity-template/activity-template-list-page.d.ts +1 -2
- package/dist-client/pages/activity-template/activity-template-list-page.js +4 -31
- package/dist-client/pages/activity-template/activity-template-list-page.js.map +1 -1
- package/dist-client/pages/activity-template/activity-template-model-item-list.js.map +1 -1
- package/dist-client/pages/activity-thread/activity-thread-importer.d.ts +1 -0
- package/dist-client/pages/activity-thread/activity-thread-importer.js +15 -24
- package/dist-client/pages/activity-thread/activity-thread-importer.js.map +1 -1
- package/dist-client/pages/activity-thread/activity-thread-list-page.d.ts +1 -2
- package/dist-client/pages/activity-thread/activity-thread-list-page.js +4 -31
- package/dist-client/pages/activity-thread/activity-thread-list-page.js.map +1 -1
- package/dist-client/pages/activity-thread/activity-thread-page.d.ts +4 -3
- package/dist-client/pages/activity-thread/activity-thread-page.js +7 -3
- package/dist-client/pages/activity-thread/activity-thread-page.js.map +1 -1
- package/dist-client/pages/activity-thread/activity-thread-view-page.d.ts +4 -3
- package/dist-client/pages/activity-thread/activity-thread-view-page.js +3 -3
- package/dist-client/pages/activity-thread/activity-thread-view-page.js.map +1 -1
- package/dist-client/pages/activity-thread/activity-thread-view.js +22 -18
- package/dist-client/pages/activity-thread/activity-thread-view.js.map +1 -1
- package/dist-client/pages/installable-activity/installable-activity-list-page.d.ts +5 -0
- package/dist-client/pages/installable-activity/installable-activity-list-page.js +14 -8
- package/dist-client/pages/installable-activity/installable-activity-list-page.js.map +1 -1
- package/dist-client/pages/todo/approval-done-list-page.js +2 -5
- package/dist-client/pages/todo/approval-done-list-page.js.map +1 -1
- package/dist-client/pages/todo/approval-pending-list-page.d.ts +5 -0
- package/dist-client/pages/todo/approval-pending-list-page.js +14 -8
- package/dist-client/pages/todo/approval-pending-list-page.js.map +1 -1
- package/dist-client/pages/todo/done-list-calendar-page.d.ts +2 -2
- package/dist-client/pages/todo/done-list-calendar-page.js +6 -4
- package/dist-client/pages/todo/done-list-calendar-page.js.map +1 -1
- package/dist-client/pages/todo/done-list-page.js +2 -5
- package/dist-client/pages/todo/done-list-page.js.map +1 -1
- package/dist-client/pages/todo/draft-list-page.d.ts +1 -3
- package/dist-client/pages/todo/draft-list-page.js +4 -34
- package/dist-client/pages/todo/draft-list-page.js.map +1 -1
- package/dist-client/pages/todo/pickable-list-page.js +1 -4
- package/dist-client/pages/todo/pickable-list-page.js.map +1 -1
- package/dist-client/pages/todo/todo-list-page.d.ts +6 -1
- package/dist-client/pages/todo/todo-list-page.js +18 -12
- package/dist-client/pages/todo/todo-list-page.js.map +1 -1
- package/dist-client/route.js.map +1 -1
- package/dist-client/templates/activity-approval-context-template.d.ts +1 -1
- package/dist-client/templates/activity-approval-context-template.js +20 -12
- package/dist-client/templates/activity-approval-context-template.js.map +1 -1
- package/dist-client/templates/activity-instance-context-template.d.ts +2 -1
- package/dist-client/templates/activity-instance-context-template.js +30 -19
- package/dist-client/templates/activity-instance-context-template.js.map +1 -1
- package/dist-client/templates/activity-thread-context-template.d.ts +1 -1
- package/dist-client/templates/activity-thread-context-template.js +22 -12
- package/dist-client/templates/activity-thread-context-template.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-client/types/activity-instance.js.map +1 -1
- package/dist-client/types/activity.d.ts +1 -1
- package/dist-client/types/activity.js.map +1 -1
- package/dist-server/controllers/activity-approval/_abort.d.ts +5 -0
- package/dist-server/controllers/activity-approval/_abort.js +1 -2
- package/dist-server/controllers/activity-approval/_abort.js.map +1 -1
- package/dist-server/controllers/activity-approval/abort.d.ts +5 -0
- package/dist-server/controllers/activity-approval/abort.js +1 -2
- package/dist-server/controllers/activity-approval/abort.js.map +1 -1
- package/dist-server/controllers/activity-approval/approve.d.ts +5 -0
- package/dist-server/controllers/activity-approval/approve.js +1 -2
- package/dist-server/controllers/activity-approval/approve.js.map +1 -1
- package/dist-server/controllers/activity-approval/delegate.d.ts +7 -0
- package/dist-server/controllers/activity-approval/delegate.js +1 -2
- package/dist-server/controllers/activity-approval/delegate.js.map +1 -1
- package/dist-server/controllers/activity-approval/reject.d.ts +5 -0
- package/dist-server/controllers/activity-approval/reject.js +1 -2
- package/dist-server/controllers/activity-approval/reject.js.map +1 -1
- package/dist-server/controllers/activity-installation/activity-installation-controller.d.ts +18 -0
- package/dist-server/controllers/activity-installation/activity-installation-controller.js.map +1 -1
- package/dist-server/controllers/activity-installation/call-webhook.d.ts +3 -0
- package/dist-server/controllers/activity-installation/call-webhook.js +1 -2
- package/dist-server/controllers/activity-installation/call-webhook.js.map +1 -1
- package/dist-server/controllers/activity-instance/abort.d.ts +5 -0
- package/dist-server/controllers/activity-instance/abort.js +1 -2
- package/dist-server/controllers/activity-instance/abort.js.map +1 -1
- package/dist-server/controllers/activity-instance/assign.d.ts +7 -0
- package/dist-server/controllers/activity-instance/assign.js +1 -2
- package/dist-server/controllers/activity-instance/assign.js.map +1 -1
- package/dist-server/controllers/activity-instance/draft.d.ts +3 -0
- package/dist-server/controllers/activity-instance/draft.js +1 -2
- package/dist-server/controllers/activity-instance/draft.js.map +1 -1
- package/dist-server/controllers/activity-instance/end.d.ts +6 -0
- package/dist-server/controllers/activity-instance/end.js +1 -2
- package/dist-server/controllers/activity-instance/end.js.map +1 -1
- package/dist-server/controllers/activity-instance/index.d.ts +6 -0
- package/dist-server/controllers/activity-instance/issue.d.ts +3 -0
- package/dist-server/controllers/activity-instance/issue.js +3 -3
- package/dist-server/controllers/activity-instance/issue.js.map +1 -1
- package/dist-server/controllers/activity-instance/pick.d.ts +2 -0
- package/dist-server/controllers/activity-instance/pick.js +1 -2
- package/dist-server/controllers/activity-instance/pick.js.map +1 -1
- package/dist-server/controllers/activity-thread/_abort.d.ts +5 -0
- package/dist-server/controllers/activity-thread/_abort.js +1 -2
- package/dist-server/controllers/activity-thread/_abort.js.map +1 -1
- package/dist-server/controllers/activity-thread/abort.d.ts +5 -0
- package/dist-server/controllers/activity-thread/abort.js +1 -2
- package/dist-server/controllers/activity-thread/abort.js.map +1 -1
- package/dist-server/controllers/activity-thread/delegate.d.ts +7 -0
- package/dist-server/controllers/activity-thread/delegate.js +1 -2
- package/dist-server/controllers/activity-thread/delegate.js.map +1 -1
- package/dist-server/controllers/activity-thread/end.d.ts +6 -0
- package/dist-server/controllers/activity-thread/end.js +1 -2
- package/dist-server/controllers/activity-thread/end.js.map +1 -1
- package/dist-server/controllers/activity-thread/index.d.ts +7 -0
- package/dist-server/controllers/activity-thread/restart.d.ts +2 -0
- package/dist-server/controllers/activity-thread/restart.js +1 -2
- package/dist-server/controllers/activity-thread/restart.js.map +1 -1
- package/dist-server/controllers/activity-thread/save.d.ts +3 -0
- package/dist-server/controllers/activity-thread/save.js +1 -2
- package/dist-server/controllers/activity-thread/save.js.map +1 -1
- package/dist-server/controllers/activity-thread/start.d.ts +2 -0
- package/dist-server/controllers/activity-thread/start.js +1 -2
- package/dist-server/controllers/activity-thread/start.js.map +1 -1
- package/dist-server/controllers/activity-thread/submit.d.ts +6 -0
- package/dist-server/controllers/activity-thread/submit.js +1 -2
- package/dist-server/controllers/activity-thread/submit.js.map +1 -1
- package/dist-server/controllers/common.d.ts +20 -0
- package/dist-server/controllers/common.js +9 -10
- package/dist-server/controllers/common.js.map +1 -1
- package/dist-server/controllers/index.d.ts +3 -0
- package/dist-server/controllers/index.js +1 -0
- package/dist-server/controllers/index.js.map +1 -1
- package/dist-server/index.d.ts +3 -0
- package/dist-server/routes.d.ts +1 -0
- package/dist-server/routes.js.map +1 -1
- package/dist-server/service/activity/activity-history.d.ts +45 -0
- package/dist-server/service/activity/activity-history.js +7 -7
- package/dist-server/service/activity/activity-history.js.map +1 -1
- package/dist-server/service/activity/activity-model-type.d.ts +49 -0
- package/dist-server/service/activity/activity-model-type.js +6 -6
- package/dist-server/service/activity/activity-model-type.js.map +1 -1
- package/dist-server/service/activity/activity-mutation.d.ts +12 -0
- package/dist-server/service/activity/activity-mutation.js +2 -2
- package/dist-server/service/activity/activity-mutation.js.map +1 -1
- package/dist-server/service/activity/activity-query.d.ts +21 -0
- package/dist-server/service/activity/activity-query.js +5 -6
- package/dist-server/service/activity/activity-query.js.map +1 -1
- package/dist-server/service/activity/activity-search-key-item-type.d.ts +6 -0
- package/dist-server/service/activity/activity-search-key-item-type.js +2 -2
- package/dist-server/service/activity/activity-search-key-item-type.js.map +1 -1
- package/dist-server/service/activity/activity-type.d.ts +67 -0
- package/dist-server/service/activity/activity-type.js +6 -6
- package/dist-server/service/activity/activity-type.js.map +1 -1
- package/dist-server/service/activity/activity.d.ts +87 -0
- package/dist-server/service/activity/activity.js +11 -12
- package/dist-server/service/activity/activity.js.map +1 -1
- package/dist-server/service/activity/event-subscriber.d.ts +7 -0
- package/dist-server/service/activity/event-subscriber.js +2 -2
- package/dist-server/service/activity/event-subscriber.js.map +1 -1
- package/dist-server/service/activity/index.d.ts +8 -0
- package/dist-server/service/activity-approval/activity-approval-mutation.d.ts +8 -0
- package/dist-server/service/activity-approval/activity-approval-mutation.js +2 -2
- package/dist-server/service/activity-approval/activity-approval-mutation.js.map +1 -1
- package/dist-server/service/activity-approval/activity-approval-query.d.ts +17 -0
- package/dist-server/service/activity-approval/activity-approval-query.js +5 -5
- package/dist-server/service/activity-approval/activity-approval-query.js.map +1 -1
- package/dist-server/service/activity-approval/activity-approval-subscription.d.ts +6 -0
- package/dist-server/service/activity-approval/activity-approval-subscription.js +2 -2
- package/dist-server/service/activity-approval/activity-approval-subscription.js.map +1 -1
- package/dist-server/service/activity-approval/activity-approval-type.d.ts +10 -0
- package/dist-server/service/activity-approval/activity-approval-type.js +4 -4
- package/dist-server/service/activity-approval/activity-approval-type.js.map +1 -1
- package/dist-server/service/activity-approval/activity-approval.d.ts +37 -0
- package/dist-server/service/activity-approval/activity-approval.js +9 -10
- package/dist-server/service/activity-approval/activity-approval.js.map +1 -1
- package/dist-server/service/activity-approval/event-subscriber.d.ts +7 -0
- package/dist-server/service/activity-approval/event-subscriber.js +2 -2
- package/dist-server/service/activity-approval/event-subscriber.js.map +1 -1
- package/dist-server/service/activity-approval/index.d.ts +8 -0
- package/dist-server/service/activity-instance/activity-instance-history-query.d.ts +12 -0
- package/dist-server/service/activity-instance/activity-instance-history-query.js +3 -3
- package/dist-server/service/activity-instance/activity-instance-history-query.js.map +1 -1
- package/dist-server/service/activity-instance/activity-instance-history-type.d.ts +5 -0
- package/dist-server/service/activity-instance/activity-instance-history-type.js +2 -2
- package/dist-server/service/activity-instance/activity-instance-history-type.js.map +1 -1
- package/dist-server/service/activity-instance/activity-instance-history.d.ts +61 -0
- package/dist-server/service/activity-instance/activity-instance-history.js +10 -8
- package/dist-server/service/activity-instance/activity-instance-history.js.map +1 -1
- package/dist-server/service/activity-instance/activity-instance-mutation.d.ts +15 -0
- package/dist-server/service/activity-instance/activity-instance-mutation.js +2 -2
- package/dist-server/service/activity-instance/activity-instance-mutation.js.map +1 -1
- package/dist-server/service/activity-instance/activity-instance-query.d.ts +27 -0
- package/dist-server/service/activity-instance/activity-instance-query.js +6 -7
- package/dist-server/service/activity-instance/activity-instance-query.js.map +1 -1
- package/dist-server/service/activity-instance/activity-instance-subscription.d.ts +6 -0
- package/dist-server/service/activity-instance/activity-instance-subscription.js +2 -2
- package/dist-server/service/activity-instance/activity-instance-subscription.js.map +1 -1
- package/dist-server/service/activity-instance/activity-instance-type.d.ts +87 -0
- package/dist-server/service/activity-instance/activity-instance-type.js +10 -10
- package/dist-server/service/activity-instance/activity-instance-type.js.map +1 -1
- package/dist-server/service/activity-instance/activity-instance.d.ts +75 -0
- package/dist-server/service/activity-instance/activity-instance.js +6 -6
- package/dist-server/service/activity-instance/activity-instance.js.map +1 -1
- package/dist-server/service/activity-instance/event-subscriber.d.ts +13 -0
- package/dist-server/service/activity-instance/event-subscriber.js +4 -4
- package/dist-server/service/activity-instance/event-subscriber.js.map +1 -1
- package/dist-server/service/activity-instance/index.d.ts +10 -0
- package/dist-server/service/activity-stats/activity-stats-query.d.ts +4 -0
- package/dist-server/service/activity-stats/activity-stats-query.js +4 -5
- package/dist-server/service/activity-stats/activity-stats-query.js.map +1 -1
- package/dist-server/service/activity-stats/activity-stats-type.d.ts +14 -0
- package/dist-server/service/activity-stats/activity-stats-type.js +3 -3
- package/dist-server/service/activity-stats/activity-stats-type.js.map +1 -1
- package/dist-server/service/activity-stats/index.d.ts +2 -0
- package/dist-server/service/activity-summary/activity-summary-query.d.ts +8 -0
- package/dist-server/service/activity-summary/activity-summary-query.js +2 -2
- package/dist-server/service/activity-summary/activity-summary-query.js.map +1 -1
- package/dist-server/service/activity-summary/activity-summary.d.ts +6 -0
- package/dist-server/service/activity-summary/activity-summary.js +2 -2
- package/dist-server/service/activity-summary/activity-summary.js.map +1 -1
- package/dist-server/service/activity-summary/index.d.ts +4 -0
- package/dist-server/service/activity-template/activity-template-history.d.ts +32 -0
- package/dist-server/service/activity-template/activity-template-history.js +10 -8
- package/dist-server/service/activity-template/activity-template-history.js.map +1 -1
- package/dist-server/service/activity-template/activity-template-mutation.d.ts +10 -0
- package/dist-server/service/activity-template/activity-template-mutation.js +2 -2
- package/dist-server/service/activity-template/activity-template-mutation.js.map +1 -1
- package/dist-server/service/activity-template/activity-template-query.d.ts +14 -0
- package/dist-server/service/activity-template/activity-template-query.js +3 -3
- package/dist-server/service/activity-template/activity-template-query.js.map +1 -1
- package/dist-server/service/activity-template/activity-template-type.d.ts +44 -0
- package/dist-server/service/activity-template/activity-template-type.js +6 -6
- package/dist-server/service/activity-template/activity-template-type.js.map +1 -1
- package/dist-server/service/activity-template/activity-template.d.ts +36 -0
- package/dist-server/service/activity-template/activity-template.js +6 -6
- package/dist-server/service/activity-template/activity-template.js.map +1 -1
- package/dist-server/service/activity-template/event-subscriber.d.ts +7 -0
- package/dist-server/service/activity-template/event-subscriber.js +2 -2
- package/dist-server/service/activity-template/event-subscriber.js.map +1 -1
- package/dist-server/service/activity-template/index.d.ts +8 -0
- package/dist-server/service/activity-thread/activity-thread-history-query.d.ts +10 -0
- package/dist-server/service/activity-thread/activity-thread-history-query.js +2 -2
- package/dist-server/service/activity-thread/activity-thread-history-query.js.map +1 -1
- package/dist-server/service/activity-thread/activity-thread-history.d.ts +39 -0
- package/dist-server/service/activity-thread/activity-thread-history.js +17 -9
- package/dist-server/service/activity-thread/activity-thread-history.js.map +1 -1
- package/dist-server/service/activity-thread/activity-thread-mutation.d.ts +23 -0
- package/dist-server/service/activity-thread/activity-thread-mutation.js +2 -2
- package/dist-server/service/activity-thread/activity-thread-mutation.js.map +1 -1
- package/dist-server/service/activity-thread/activity-thread-query.d.ts +21 -0
- package/dist-server/service/activity-thread/activity-thread-query.js +8 -6
- package/dist-server/service/activity-thread/activity-thread-query.js.map +1 -1
- package/dist-server/service/activity-thread/activity-thread-subscription.d.ts +6 -0
- package/dist-server/service/activity-thread/activity-thread-subscription.js +2 -2
- package/dist-server/service/activity-thread/activity-thread-subscription.js.map +1 -1
- package/dist-server/service/activity-thread/activity-thread-type.d.ts +15 -0
- package/dist-server/service/activity-thread/activity-thread-type.js +6 -6
- package/dist-server/service/activity-thread/activity-thread-type.js.map +1 -1
- package/dist-server/service/activity-thread/activity-thread.d.ts +46 -0
- package/dist-server/service/activity-thread/activity-thread.js +6 -6
- package/dist-server/service/activity-thread/activity-thread.js.map +1 -1
- package/dist-server/service/activity-thread/event-subscriber.d.ts +13 -0
- package/dist-server/service/activity-thread/event-subscriber.js +4 -4
- package/dist-server/service/activity-thread/event-subscriber.js.map +1 -1
- package/dist-server/service/activity-thread/index.d.ts +10 -0
- package/dist-server/service/index.d.ts +12 -0
- package/dist-server/service/installable-activity/index.d.ts +6 -0
- package/dist-server/service/installable-activity/installable-activity-mutation.d.ts +5 -0
- package/dist-server/service/installable-activity/installable-activity-mutation.js +2 -2
- package/dist-server/service/installable-activity/installable-activity-mutation.js.map +1 -1
- package/dist-server/service/installable-activity/installable-activity-query.d.ts +7 -0
- package/dist-server/service/installable-activity/installable-activity-query.js +3 -3
- package/dist-server/service/installable-activity/installable-activity-query.js.map +1 -1
- package/dist-server/service/installable-activity/installable-activity-type.d.ts +5 -0
- package/dist-server/service/installable-activity/installable-activity-type.js +2 -2
- package/dist-server/service/installable-activity/installable-activity-type.js.map +1 -1
- package/dist-server/service/installable-activity/installable-activity.d.ts +24 -0
- package/dist-server/service/installable-activity/installable-activity.js +2 -2
- package/dist-server/service/installable-activity/installable-activity.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +16 -13
- package/client/activity-summary-generator.ts +0 -132
- package/client/bootstrap.ts +0 -70
- package/client/components/activity-/bowner-view.ts +0 -100
- package/client/components/activity-approval-ribon.ts +0 -164
- package/client/components/activity-instance-preview.ts +0 -197
- package/client/components/activity-instance-ribon.ts +0 -158
- package/client/components/activity-intro-view.ts +0 -95
- package/client/components/activity-reporter-view.ts +0 -95
- package/client/components/activity-starter-form.ts +0 -258
- package/client/components/activity-thread-ribon.ts +0 -148
- package/client/components/activity-thread-timeline.ts +0 -210
- package/client/grist-editor/grist-editor-activity-search-key.ts +0 -80
- package/client/grist-editor/grist-renderer-activity-search-key.ts +0 -25
- package/client/grist-editor/popup-activity-search-keys-input.ts +0 -167
- package/client/index.ts +0 -3
- package/client/pages/activity/activity-list-page.ts +0 -685
- package/client/pages/activity/activity-model-item-list.ts +0 -297
- package/client/pages/activity/activity-page.ts +0 -431
- package/client/pages/activity/activity-partial-view.ts +0 -82
- package/client/pages/activity/starter-list-page.ts +0 -224
- package/client/pages/activity-approval/activity-approval-importer.ts +0 -97
- package/client/pages/activity-approval/activity-approval-list-page.ts +0 -337
- package/client/pages/activity-approval/activity-approval-page.ts +0 -540
- package/client/pages/activity-instance/activity-instance-list-page.ts +0 -228
- package/client/pages/activity-instance/activity-instance-search-page.ts +0 -373
- package/client/pages/activity-instance/activity-instance-start-page.ts +0 -550
- package/client/pages/activity-instance/activity-instance-view.ts +0 -475
- package/client/pages/activity-stats/activity-stats-importer.ts +0 -97
- package/client/pages/activity-stats/activity-stats-list-page.ts +0 -337
- package/client/pages/activity-store/activity-store-page.ts +0 -243
- package/client/pages/activity-supervisor/reporter-list-page.ts +0 -241
- package/client/pages/activity-template/activity-template-importer.ts +0 -101
- package/client/pages/activity-template/activity-template-list-page.ts +0 -480
- package/client/pages/activity-template/activity-template-model-item-list.ts +0 -44
- package/client/pages/activity-thread/activity-thread-importer.ts +0 -102
- package/client/pages/activity-thread/activity-thread-list-page.ts +0 -328
- package/client/pages/activity-thread/activity-thread-page.ts +0 -571
- package/client/pages/activity-thread/activity-thread-view-page.ts +0 -345
- package/client/pages/activity-thread/activity-thread-view.ts +0 -325
- package/client/pages/dashboard/dashboard-home.ts +0 -23
- package/client/pages/installable-activity/installable-activity-list-page.ts +0 -427
- package/client/pages/installable-activity/installable-activity-model-item-list.ts +0 -18
- package/client/pages/todo/approval-done-list-page.ts +0 -345
- package/client/pages/todo/approval-pending-list-page.ts +0 -419
- package/client/pages/todo/done-list-calendar-page.ts +0 -115
- package/client/pages/todo/done-list-page.ts +0 -366
- package/client/pages/todo/draft-list-page.ts +0 -306
- package/client/pages/todo/pickable-list-page.ts +0 -311
- package/client/pages/todo/todo-list-page.ts +0 -394
- package/client/pages/worklist-home.ts +0 -16
- package/client/route.ts +0 -103
- package/client/templates/activity-approval-context-template.ts +0 -170
- package/client/templates/activity-instance-context-template.ts +0 -276
- package/client/templates/activity-thread-context-template.ts +0 -146
- package/client/themes/calendar-theme.css +0 -54
- package/client/tsconfig.json +0 -13
- package/client/types/activity-approval.ts +0 -62
- package/client/types/activity-instance-type.ts +0 -125
- package/client/types/activity-instance.ts +0 -128
- package/client/types/activity-model-type.ts +0 -40
- package/client/types/activity-search-key-item-type.ts +0 -9
- package/client/types/activity-thread-history.ts +0 -47
- package/client/types/activity-thread-type.ts +0 -19
- package/client/types/activity-thread.ts +0 -60
- package/client/types/activity.ts +0 -102
- package/client/types/types.ts +0 -46
- package/dist-client/themes/calendar-theme.css +0 -54
- package/server/controllers/activity-approval/_abort.ts +0 -31
- package/server/controllers/activity-approval/abort.ts +0 -41
- package/server/controllers/activity-approval/approve.ts +0 -96
- package/server/controllers/activity-approval/delegate.ts +0 -62
- package/server/controllers/activity-approval/reject.ts +0 -57
- package/server/controllers/activity-installation/activity-installation-controller.ts +0 -36
- package/server/controllers/activity-installation/call-webhook.ts +0 -40
- package/server/controllers/activity-instance/abort.ts +0 -78
- package/server/controllers/activity-instance/assign.ts +0 -56
- package/server/controllers/activity-instance/draft.ts +0 -91
- package/server/controllers/activity-instance/end.ts +0 -81
- package/server/controllers/activity-instance/index.ts +0 -6
- package/server/controllers/activity-instance/issue.ts +0 -179
- package/server/controllers/activity-instance/pick.ts +0 -45
- package/server/controllers/activity-thread/_abort.ts +0 -40
- package/server/controllers/activity-thread/abort.ts +0 -45
- package/server/controllers/activity-thread/delegate.ts +0 -64
- package/server/controllers/activity-thread/end.ts +0 -51
- package/server/controllers/activity-thread/index.ts +0 -7
- package/server/controllers/activity-thread/restart.ts +0 -51
- package/server/controllers/activity-thread/save.ts +0 -50
- package/server/controllers/activity-thread/start.ts +0 -49
- package/server/controllers/activity-thread/submit.ts +0 -89
- package/server/controllers/common.ts +0 -311
- package/server/controllers/index.ts +0 -2
- package/server/index.ts +0 -4
- package/server/routes.ts +0 -73
- package/server/service/activity/activity-history.ts +0 -187
- package/server/service/activity/activity-model-type.ts +0 -106
- package/server/service/activity/activity-mutation.ts +0 -388
- package/server/service/activity/activity-query.ts +0 -257
- package/server/service/activity/activity-search-key-item-type.ts +0 -16
- package/server/service/activity/activity-type.ts +0 -192
- package/server/service/activity/activity.ts +0 -261
- package/server/service/activity/event-subscriber.ts +0 -17
- package/server/service/activity/index.ts +0 -9
- package/server/service/activity-approval/activity-approval-mutation.ts +0 -75
- package/server/service/activity-approval/activity-approval-query.ts +0 -152
- package/server/service/activity-approval/activity-approval-subscription.ts +0 -45
- package/server/service/activity-approval/activity-approval-type.ts +0 -28
- package/server/service/activity-approval/activity-approval.ts +0 -124
- package/server/service/activity-approval/event-subscriber.ts +0 -45
- package/server/service/activity-approval/index.ts +0 -9
- package/server/service/activity-instance/activity-instance-history-query.ts +0 -48
- package/server/service/activity-instance/activity-instance-history-type.ts +0 -13
- package/server/service/activity-instance/activity-instance-history.ts +0 -244
- package/server/service/activity-instance/activity-instance-mutation.ts +0 -116
- package/server/service/activity-instance/activity-instance-query.ts +0 -330
- package/server/service/activity-instance/activity-instance-subscription.ts +0 -52
- package/server/service/activity-instance/activity-instance-type.ts +0 -205
- package/server/service/activity-instance/activity-instance.ts +0 -262
- package/server/service/activity-instance/event-subscriber.ts +0 -44
- package/server/service/activity-instance/index.ts +0 -11
- package/server/service/activity-stats/activity-stats-query.ts +0 -94
- package/server/service/activity-stats/activity-stats-type.ts +0 -34
- package/server/service/activity-stats/index.ts +0 -3
- package/server/service/activity-summary/activity-summary-query.ts +0 -114
- package/server/service/activity-summary/activity-summary.ts +0 -16
- package/server/service/activity-summary/index.ts +0 -5
- package/server/service/activity-template/activity-template-history.ts +0 -140
- package/server/service/activity-template/activity-template-mutation.ts +0 -203
- package/server/service/activity-template/activity-template-query.ts +0 -75
- package/server/service/activity-template/activity-template-type.ts +0 -120
- package/server/service/activity-template/activity-template.ts +0 -134
- package/server/service/activity-template/event-subscriber.ts +0 -20
- package/server/service/activity-template/index.ts +0 -9
- package/server/service/activity-thread/activity-thread-history-query.ts +0 -34
- package/server/service/activity-thread/activity-thread-history.ts +0 -168
- package/server/service/activity-thread/activity-thread-mutation.ts +0 -97
- package/server/service/activity-thread/activity-thread-query.ts +0 -145
- package/server/service/activity-thread/activity-thread-subscription.ts +0 -41
- package/server/service/activity-thread/activity-thread-type.ts +0 -33
- package/server/service/activity-thread/activity-thread.ts +0 -164
- package/server/service/activity-thread/event-subscriber.ts +0 -47
- package/server/service/activity-thread/index.ts +0 -11
- package/server/service/index.ts +0 -70
- package/server/service/installable-activity/index.ts +0 -7
- package/server/service/installable-activity/installable-activity-mutation.ts +0 -61
- package/server/service/installable-activity/installable-activity-query.ts +0 -36
- package/server/service/installable-activity/installable-activity-type.ts +0 -12
- package/server/service/installable-activity/installable-activity.ts +0 -74
- package/server/tsconfig.json +0 -10
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { CreateDateColumn, UpdateDateColumn, Entity, Index, Column, RelationId, ManyToOne, OneToMany, PrimaryGeneratedColumn } from 'typeorm'
|
|
2
|
-
import { ObjectType, Field, Int, ID, registerEnumType } from 'type-graphql'
|
|
3
|
-
|
|
4
|
-
import { Domain } from '@things-factory/shell'
|
|
5
|
-
import { User } from '@things-factory/auth-base'
|
|
6
|
-
import { ActivityThread } from '../activity-thread/activity-thread'
|
|
7
|
-
|
|
8
|
-
export enum ActivityApprovalJudgment {
|
|
9
|
-
Pending = '',
|
|
10
|
-
Rejected = 'rejected',
|
|
11
|
-
Escalated = 'escalated',
|
|
12
|
-
Delegated = 'delegated',
|
|
13
|
-
Approved = 'approved',
|
|
14
|
-
Aborted = 'aborted'
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
registerEnumType(ActivityApprovalJudgment, {
|
|
18
|
-
name: 'ActivityApprovalJudgment',
|
|
19
|
-
description: 'judgment enumeration of a activityApproval'
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
@Entity()
|
|
23
|
-
@Index(
|
|
24
|
-
'ix_activity_approval_0',
|
|
25
|
-
(activityApproval: ActivityApproval) => [
|
|
26
|
-
activityApproval.domain,
|
|
27
|
-
activityApproval.activityThread,
|
|
28
|
-
activityApproval.order,
|
|
29
|
-
activityApproval.approver,
|
|
30
|
-
activityApproval.createdAt
|
|
31
|
-
],
|
|
32
|
-
{ unique: true }
|
|
33
|
-
)
|
|
34
|
-
@ObjectType({ description: 'Entity for ActivityApproval' })
|
|
35
|
-
export class ActivityApproval {
|
|
36
|
-
@PrimaryGeneratedColumn('uuid')
|
|
37
|
-
@Field(type => ID)
|
|
38
|
-
readonly id: string
|
|
39
|
-
|
|
40
|
-
@ManyToOne(type => Domain)
|
|
41
|
-
@Field({ nullable: true })
|
|
42
|
-
domain?: Domain
|
|
43
|
-
|
|
44
|
-
@RelationId((activityApproval: ActivityApproval) => activityApproval.domain)
|
|
45
|
-
domainId?: string
|
|
46
|
-
|
|
47
|
-
@ManyToOne(type => ActivityApproval, { nullable: true })
|
|
48
|
-
@Field(type => ActivityApproval, { nullable: true, description: 'delegator approval' })
|
|
49
|
-
originalApproval?: ActivityApproval
|
|
50
|
-
|
|
51
|
-
@RelationId((activityApproval: ActivityApproval) => activityApproval.originalApproval)
|
|
52
|
-
originalApprovalId?: string
|
|
53
|
-
|
|
54
|
-
@OneToMany(type => ActivityApproval, activityApproval => activityApproval.originalApproval)
|
|
55
|
-
@Field(type => [ActivityApproval])
|
|
56
|
-
derivedApprovals?: ActivityApproval
|
|
57
|
-
|
|
58
|
-
@ManyToOne(type => ActivityThread, { nullable: true })
|
|
59
|
-
@Field(type => ActivityThread, { nullable: true })
|
|
60
|
-
activityThread?: ActivityThread
|
|
61
|
-
|
|
62
|
-
@RelationId((activityApproval: ActivityApproval) => activityApproval.activityThread)
|
|
63
|
-
activityThreadId?: string
|
|
64
|
-
|
|
65
|
-
@Column({ nullable: true, default: 1 })
|
|
66
|
-
@Field({ nullable: true })
|
|
67
|
-
round: number = 1
|
|
68
|
-
|
|
69
|
-
@Column({ nullable: true, default: 0 })
|
|
70
|
-
@Field({ nullable: true, description: 'Nth order approval for the given activity thread' })
|
|
71
|
-
order?: number = 0
|
|
72
|
-
|
|
73
|
-
@ManyToOne(type => User, { nullable: true })
|
|
74
|
-
@Field(type => User, { nullable: true })
|
|
75
|
-
approver?: User
|
|
76
|
-
|
|
77
|
-
@RelationId((activityApproval: ActivityApproval) => activityApproval.approver)
|
|
78
|
-
approverId?: string
|
|
79
|
-
|
|
80
|
-
@Column({ nullable: true, default: '' })
|
|
81
|
-
@Field({ nullable: true })
|
|
82
|
-
judgment?: ActivityApprovalJudgment = ActivityApprovalJudgment.Pending
|
|
83
|
-
|
|
84
|
-
@Column({ nullable: true })
|
|
85
|
-
@Field({ nullable: true })
|
|
86
|
-
comment?: string
|
|
87
|
-
|
|
88
|
-
@Column({ nullable: true })
|
|
89
|
-
@Field({ nullable: true })
|
|
90
|
-
transaction?: string
|
|
91
|
-
|
|
92
|
-
@CreateDateColumn()
|
|
93
|
-
@Field({ nullable: true })
|
|
94
|
-
createdAt?: Date
|
|
95
|
-
|
|
96
|
-
@UpdateDateColumn()
|
|
97
|
-
@Field({ nullable: true })
|
|
98
|
-
updatedAt?: Date
|
|
99
|
-
|
|
100
|
-
@Column({ nullable: true })
|
|
101
|
-
@Field({ nullable: true })
|
|
102
|
-
terminatedAt?: Date
|
|
103
|
-
|
|
104
|
-
@ManyToOne(type => User, { nullable: true })
|
|
105
|
-
@Field(type => User, { nullable: true })
|
|
106
|
-
creator?: User
|
|
107
|
-
|
|
108
|
-
@RelationId((activityApproval: ActivityApproval) => activityApproval.creator)
|
|
109
|
-
creatorId?: string
|
|
110
|
-
|
|
111
|
-
@ManyToOne(type => User, { nullable: true })
|
|
112
|
-
@Field(type => User, { nullable: true })
|
|
113
|
-
updater?: User
|
|
114
|
-
|
|
115
|
-
@RelationId((activityApproval: ActivityApproval) => activityApproval.updater)
|
|
116
|
-
updaterId?: string
|
|
117
|
-
|
|
118
|
-
@ManyToOne(type => User, { nullable: true })
|
|
119
|
-
@Field({ nullable: true })
|
|
120
|
-
terminator?: User
|
|
121
|
-
|
|
122
|
-
@RelationId((activityApproval: ActivityApproval) => activityApproval.terminator)
|
|
123
|
-
terminatorId?: string
|
|
124
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { EventSubscriber, EntitySubscriberInterface, InsertEvent, UpdateEvent } from 'typeorm'
|
|
2
|
-
|
|
3
|
-
import { pubsub } from '@things-factory/shell'
|
|
4
|
-
|
|
5
|
-
import { ActivityApproval } from './activity-approval'
|
|
6
|
-
import { callWebhook } from '../../controllers/activity-installation/call-webhook'
|
|
7
|
-
|
|
8
|
-
@EventSubscriber()
|
|
9
|
-
export class ActivityApprovalSubscriber implements EntitySubscriberInterface<ActivityApproval> {
|
|
10
|
-
listenTo() {
|
|
11
|
-
return ActivityApproval
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
async afterInsert(event: InsertEvent<ActivityApproval>): Promise<any | void> {
|
|
15
|
-
const { manager: tx, entity } = event
|
|
16
|
-
const activityApproval = await tx.getRepository(ActivityApproval).findOne({
|
|
17
|
-
where: { id: entity.id },
|
|
18
|
-
relations: ['domain', 'activityThread']
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
pubsub.publish('activity-approval', {
|
|
22
|
-
activityApproval
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
try {
|
|
26
|
-
callWebhook(activityApproval.domain, 'activity-approval-created', activityApproval, tx)
|
|
27
|
-
} catch (err) {}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
async afterUpdate(event: UpdateEvent<ActivityApproval>): Promise<any | void> {
|
|
31
|
-
const { manager: tx, entity } = event
|
|
32
|
-
const activityApproval = await tx.getRepository(ActivityApproval).findOne({
|
|
33
|
-
where: { id: entity.id },
|
|
34
|
-
relations: ['domain', 'activityThread']
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
pubsub.publish('activity-approval', {
|
|
38
|
-
activityApproval
|
|
39
|
-
})
|
|
40
|
-
|
|
41
|
-
try {
|
|
42
|
-
callWebhook(activityApproval.domain, 'activity-approval-updated', activityApproval, tx)
|
|
43
|
-
} catch (err) {}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ActivityApproval } from './activity-approval'
|
|
2
|
-
import { ActivityApprovalQuery } from './activity-approval-query'
|
|
3
|
-
import { ActivityApprovalMutation } from './activity-approval-mutation'
|
|
4
|
-
import { ActivityApprovalSubscription } from './activity-approval-subscription'
|
|
5
|
-
import { ActivityApprovalSubscriber } from './event-subscriber'
|
|
6
|
-
|
|
7
|
-
export const entities = [ActivityApproval]
|
|
8
|
-
export const resolvers = [ActivityApprovalQuery, ActivityApprovalMutation, ActivityApprovalSubscription]
|
|
9
|
-
export const subscribers = [ActivityApprovalSubscriber]
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx, Directive } from 'type-graphql'
|
|
2
|
-
import { ListParam, convertListParams, getRepository, getQueryBuilderFromListParams } from '@things-factory/shell'
|
|
3
|
-
import { ActivityInstanceHistory } from './activity-instance-history'
|
|
4
|
-
import { ActivityInstanceHistoryList } from './activity-instance-history-type'
|
|
5
|
-
|
|
6
|
-
import { User } from '@things-factory/auth-base'
|
|
7
|
-
import { Domain } from '@things-factory/shell'
|
|
8
|
-
|
|
9
|
-
@Resolver(ActivityInstanceHistory)
|
|
10
|
-
export class ActivityInstanceHistoryQuery {
|
|
11
|
-
|
|
12
|
-
@Query(returns => ActivityInstanceHistory, { description: 'To fetch a ActivityInstanceHistory' })
|
|
13
|
-
async activityInstanceHistory(@Arg('id') id: string, @Ctx() context: any): Promise<ActivityInstanceHistory> {
|
|
14
|
-
const { domain } = context.state
|
|
15
|
-
return await getRepository(ActivityInstanceHistory).findOne({
|
|
16
|
-
where: { domain: { id: domain.id }, id }
|
|
17
|
-
})
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@Query(returns => ActivityInstanceHistoryList, { description: 'To fetch multiple ActivityInstanceHistory' })
|
|
21
|
-
async activityInstanceHistories(@Args() params: ListParam, @Ctx() context: any): Promise<ActivityInstanceHistoryList> {
|
|
22
|
-
const { domain } = context.state
|
|
23
|
-
|
|
24
|
-
const queryBuilder = getQueryBuilderFromListParams({
|
|
25
|
-
params,
|
|
26
|
-
domain,
|
|
27
|
-
repository: await getRepository(ActivityInstanceHistory)
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
const [items, total] = await queryBuilder.getManyAndCount()
|
|
31
|
-
return { items, total }
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@FieldResolver(type => Domain)
|
|
35
|
-
async domain(@Root() activityInstanceHistory: ActivityInstanceHistory): Promise<Domain> {
|
|
36
|
-
return await getRepository(Domain).findOneBy({id:activityInstanceHistory.domainId})
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@FieldResolver(type => User)
|
|
40
|
-
async updater(@Root() activityInstanceHistory: ActivityInstanceHistory): Promise<User> {
|
|
41
|
-
return await getRepository(User).findOneBy({id:activityInstanceHistory.updaterId})
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@FieldResolver(type => User)
|
|
45
|
-
async creator(@Root() activityInstanceHistory: ActivityInstanceHistory): Promise<User> {
|
|
46
|
-
return await getRepository(User).findOneBy({id:activityInstanceHistory.creatorId})
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { ObjectType, Field, InputType, Int, ID, Float, registerEnumType } from 'type-graphql'
|
|
3
|
-
|
|
4
|
-
import { ActivityInstanceHistory } from './activity-instance-history'
|
|
5
|
-
|
|
6
|
-
@ObjectType()
|
|
7
|
-
export class ActivityInstanceHistoryList {
|
|
8
|
-
@Field(type => [ActivityInstanceHistory])
|
|
9
|
-
items: ActivityInstanceHistory[]
|
|
10
|
-
|
|
11
|
-
@Field(type => Int)
|
|
12
|
-
total: number
|
|
13
|
-
}
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
import { Field, ID, Int, ObjectType } from 'type-graphql'
|
|
2
|
-
import { Column, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId } from 'typeorm'
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
HistoryActionColumn,
|
|
6
|
-
HistoryActionType,
|
|
7
|
-
HistoryEntityInterface,
|
|
8
|
-
HistoryOriginalIdColumn
|
|
9
|
-
} from '@operato/typeorm-history'
|
|
10
|
-
import { Role, User } from '@things-factory/auth-base'
|
|
11
|
-
import { config } from '@things-factory/env'
|
|
12
|
-
import { Domain, ScalarObject } from '@things-factory/shell'
|
|
13
|
-
import { ApprovalLineItem } from '@things-factory/organization'
|
|
14
|
-
|
|
15
|
-
import { ActivityType, ActivityUIType } from '../activity/activity'
|
|
16
|
-
import { ActivityInstance, ActivityInstanceStatus } from './activity-instance'
|
|
17
|
-
|
|
18
|
-
const ORMCONFIG = config.get('ormconfig', {})
|
|
19
|
-
const DATABASE_TYPE = ORMCONFIG.type
|
|
20
|
-
|
|
21
|
-
@Entity()
|
|
22
|
-
@Index(
|
|
23
|
-
'ix_activity_instance_history_0',
|
|
24
|
-
(activityInstanceHistory: ActivityInstanceHistory) => [
|
|
25
|
-
activityInstanceHistory.originalId,
|
|
26
|
-
activityInstanceHistory.version
|
|
27
|
-
],
|
|
28
|
-
{ unique: true }
|
|
29
|
-
)
|
|
30
|
-
@Index(
|
|
31
|
-
'ix_activity_instance_history_1',
|
|
32
|
-
(activityInstanceHistory: ActivityInstanceHistory) => [
|
|
33
|
-
activityInstanceHistory.domain,
|
|
34
|
-
activityInstanceHistory.originalId,
|
|
35
|
-
activityInstanceHistory.version
|
|
36
|
-
],
|
|
37
|
-
{ unique: true }
|
|
38
|
-
)
|
|
39
|
-
@ObjectType({ description: 'History Entity of ActivityInstance' })
|
|
40
|
-
export class ActivityInstanceHistory implements HistoryEntityInterface<ActivityInstance> {
|
|
41
|
-
@PrimaryGeneratedColumn('uuid')
|
|
42
|
-
@Field(type => ID)
|
|
43
|
-
readonly id: string
|
|
44
|
-
|
|
45
|
-
@Column({
|
|
46
|
-
nullable: true,
|
|
47
|
-
default: 1
|
|
48
|
-
})
|
|
49
|
-
@Field({ nullable: true })
|
|
50
|
-
version?: number = 1
|
|
51
|
-
|
|
52
|
-
@ManyToOne(type => Domain)
|
|
53
|
-
@Field({ nullable: true })
|
|
54
|
-
domain?: Domain
|
|
55
|
-
|
|
56
|
-
@RelationId((activityInstance: ActivityInstance) => activityInstance.domain)
|
|
57
|
-
domainId?: string
|
|
58
|
-
|
|
59
|
-
@Column()
|
|
60
|
-
@Field({ nullable: true })
|
|
61
|
-
name?: string
|
|
62
|
-
|
|
63
|
-
@Column({ nullable: true })
|
|
64
|
-
@Field({ nullable: true })
|
|
65
|
-
description?: string
|
|
66
|
-
|
|
67
|
-
@Column({ nullable: true })
|
|
68
|
-
@Field({ nullable: true })
|
|
69
|
-
activityType?: ActivityType
|
|
70
|
-
|
|
71
|
-
@Column({ nullable: true })
|
|
72
|
-
@Field({ nullable: true })
|
|
73
|
-
adhocType?: string
|
|
74
|
-
|
|
75
|
-
@Column({ nullable: true, default: '' })
|
|
76
|
-
@Field({ nullable: true })
|
|
77
|
-
key01?: string = ''
|
|
78
|
-
|
|
79
|
-
@Column({ nullable: true, default: '' })
|
|
80
|
-
@Field({ nullable: true })
|
|
81
|
-
key02?: string = ''
|
|
82
|
-
|
|
83
|
-
@Column({ nullable: true, default: '' })
|
|
84
|
-
@Field({ nullable: true })
|
|
85
|
-
key03?: string = ''
|
|
86
|
-
|
|
87
|
-
@Column({ nullable: true, default: '' })
|
|
88
|
-
@Field({ nullable: true })
|
|
89
|
-
key04?: string = ''
|
|
90
|
-
|
|
91
|
-
@Column({ nullable: true, default: '' })
|
|
92
|
-
@Field({ nullable: true })
|
|
93
|
-
key05?: string = ''
|
|
94
|
-
|
|
95
|
-
@Column({ nullable: true })
|
|
96
|
-
@Field({ nullable: true })
|
|
97
|
-
uiType?: ActivityUIType
|
|
98
|
-
|
|
99
|
-
@Column({ nullable: true })
|
|
100
|
-
@Field({ nullable: true })
|
|
101
|
-
uiSource?: string
|
|
102
|
-
|
|
103
|
-
@Column({ nullable: true, default: 1 })
|
|
104
|
-
@Field({ nullable: true })
|
|
105
|
-
priority?: number = 1
|
|
106
|
-
|
|
107
|
-
@Column({ nullable: true })
|
|
108
|
-
@Field({ nullable: true })
|
|
109
|
-
state?: ActivityInstanceStatus
|
|
110
|
-
|
|
111
|
-
@Column({ nullable: true })
|
|
112
|
-
@Field({ nullable: true })
|
|
113
|
-
reason?: string
|
|
114
|
-
|
|
115
|
-
@Column({ nullable: true })
|
|
116
|
-
@Field(type => Int, { nullable: true })
|
|
117
|
-
threadsMin?: number
|
|
118
|
-
|
|
119
|
-
@Column({ nullable: true })
|
|
120
|
-
@Field(type => Int, { nullable: true })
|
|
121
|
-
threadsMax?: number
|
|
122
|
-
|
|
123
|
-
@Column('simple-json', { nullable: true })
|
|
124
|
-
@Field(type => ScalarObject, { nullable: true })
|
|
125
|
-
input?: { [key: string]: any }
|
|
126
|
-
|
|
127
|
-
@Column('simple-json', { nullable: true })
|
|
128
|
-
@Field(type => ScalarObject, { nullable: true })
|
|
129
|
-
output?: { [key: string]: any }
|
|
130
|
-
|
|
131
|
-
@Column({ nullable: true })
|
|
132
|
-
@Field({ nullable: true })
|
|
133
|
-
refBy?: string
|
|
134
|
-
|
|
135
|
-
@ManyToOne(type => Role, { nullable: true })
|
|
136
|
-
@Field(type => Role, { nullable: true })
|
|
137
|
-
assigneeRole?: Role
|
|
138
|
-
|
|
139
|
-
@RelationId((activityInstance: ActivityInstance) => activityInstance.assigneeRole)
|
|
140
|
-
assigneeRoleId?: string
|
|
141
|
-
|
|
142
|
-
@ManyToOne(type => Role, { nullable: true })
|
|
143
|
-
@Field(type => Role, { nullable: true })
|
|
144
|
-
supervisoryRole?: Role
|
|
145
|
-
|
|
146
|
-
@RelationId((activityInstance: ActivityInstance) => activityInstance.supervisoryRole)
|
|
147
|
-
supervisoryRoleId?: string
|
|
148
|
-
|
|
149
|
-
@Column({ nullable: true })
|
|
150
|
-
@Field({ nullable: true })
|
|
151
|
-
dueAt?: Date
|
|
152
|
-
|
|
153
|
-
@Column({ nullable: true })
|
|
154
|
-
@Field({ nullable: true })
|
|
155
|
-
transaction?: string
|
|
156
|
-
|
|
157
|
-
@Column('simple-json', { nullable: true })
|
|
158
|
-
@Field(type => [ApprovalLineItem], { nullable: true })
|
|
159
|
-
approvalLine?: ApprovalLineItem[]
|
|
160
|
-
|
|
161
|
-
@Column()
|
|
162
|
-
@Field({ nullable: true })
|
|
163
|
-
createdAt?: Date
|
|
164
|
-
|
|
165
|
-
@Column()
|
|
166
|
-
@Field({ nullable: true })
|
|
167
|
-
updatedAt?: Date
|
|
168
|
-
|
|
169
|
-
@Column({ nullable: true })
|
|
170
|
-
@Field({ nullable: true })
|
|
171
|
-
issuedAt?: Date
|
|
172
|
-
|
|
173
|
-
@Column({ nullable: true })
|
|
174
|
-
@Field({ nullable: true })
|
|
175
|
-
assignedAt?: Date
|
|
176
|
-
|
|
177
|
-
@Column({ nullable: true })
|
|
178
|
-
@Field({ nullable: true })
|
|
179
|
-
startedAt?: Date
|
|
180
|
-
|
|
181
|
-
@Column({ nullable: true })
|
|
182
|
-
@Field({ nullable: true })
|
|
183
|
-
terminatedAt?: Date
|
|
184
|
-
|
|
185
|
-
@ManyToOne(type => User, { nullable: true })
|
|
186
|
-
@Field({ nullable: true })
|
|
187
|
-
creator?: User
|
|
188
|
-
|
|
189
|
-
@RelationId((activityInstance: ActivityInstance) => activityInstance.creator)
|
|
190
|
-
creatorId?: string
|
|
191
|
-
|
|
192
|
-
@ManyToOne(type => User, { nullable: true })
|
|
193
|
-
@Field({ nullable: true })
|
|
194
|
-
updater?: User
|
|
195
|
-
|
|
196
|
-
@RelationId((activityInstance: ActivityInstance) => activityInstance.updater)
|
|
197
|
-
updaterId?: string
|
|
198
|
-
|
|
199
|
-
@ManyToOne(type => User, { nullable: true })
|
|
200
|
-
@Field({ nullable: true })
|
|
201
|
-
issuer?: User
|
|
202
|
-
|
|
203
|
-
@RelationId((activityInstance: ActivityInstance) => activityInstance.issuer)
|
|
204
|
-
issuerId?: string
|
|
205
|
-
|
|
206
|
-
@ManyToOne(type => User, { nullable: true })
|
|
207
|
-
@Field({ nullable: true })
|
|
208
|
-
starter?: User
|
|
209
|
-
|
|
210
|
-
@RelationId((activityInstance: ActivityInstance) => activityInstance.starter)
|
|
211
|
-
starterId?: string
|
|
212
|
-
|
|
213
|
-
@ManyToOne(type => User, { nullable: true })
|
|
214
|
-
@Field({ nullable: true })
|
|
215
|
-
terminator?: User
|
|
216
|
-
|
|
217
|
-
@RelationId((activityInstance: ActivityInstance) => activityInstance.terminator)
|
|
218
|
-
terminatorId?: string
|
|
219
|
-
|
|
220
|
-
@HistoryOriginalIdColumn()
|
|
221
|
-
public originalId!: string
|
|
222
|
-
|
|
223
|
-
@HistoryActionColumn({
|
|
224
|
-
nullable: false,
|
|
225
|
-
type:
|
|
226
|
-
DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
|
|
227
|
-
? 'enum'
|
|
228
|
-
: DATABASE_TYPE == 'oracle'
|
|
229
|
-
? 'varchar2'
|
|
230
|
-
: 'smallint',
|
|
231
|
-
enum: HistoryActionType
|
|
232
|
-
})
|
|
233
|
-
public action!: HistoryActionType
|
|
234
|
-
|
|
235
|
-
isDelegatable(): boolean {
|
|
236
|
-
switch (this.state) {
|
|
237
|
-
case ActivityInstanceStatus.Issued:
|
|
238
|
-
case ActivityInstanceStatus.Assigned:
|
|
239
|
-
return true
|
|
240
|
-
default:
|
|
241
|
-
return false
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { Arg, Ctx, Directive, Mutation, Resolver } from 'type-graphql'
|
|
2
|
-
import { In } from 'typeorm'
|
|
3
|
-
|
|
4
|
-
import { ObjectRef, ScalarObject } from '@things-factory/shell'
|
|
5
|
-
|
|
6
|
-
import { abort, assign, draft, end, pick, issue } from '../../controllers/activity-instance'
|
|
7
|
-
import { ActivityThread } from '../activity-thread/activity-thread'
|
|
8
|
-
import { ActivityInstance, ActivityInstanceStatus } from './activity-instance'
|
|
9
|
-
import { ActivityInstanceIssue, ActivityInstanceDraft } from './activity-instance-type'
|
|
10
|
-
|
|
11
|
-
@Resolver(ActivityInstance)
|
|
12
|
-
export class ActivityInstanceMutation {
|
|
13
|
-
|
|
14
|
-
@Directive('@transaction')
|
|
15
|
-
@Mutation(returns => Boolean, { description: 'To delete Activity Instance of draft state' })
|
|
16
|
-
async deleteDraftActivityInstance(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<boolean> {
|
|
17
|
-
const { domain, tx } = context.state
|
|
18
|
-
|
|
19
|
-
let draftActInst = await tx.getRepository(ActivityInstance).findOne({
|
|
20
|
-
where: { domain: { id: domain.id }, id, state : ActivityInstanceStatus.Draft }
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
if(draftActInst) {
|
|
24
|
-
await tx.getRepository(ActivityInstance).remove(draftActInst);
|
|
25
|
-
return true;
|
|
26
|
-
} else {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@Directive('@transaction')
|
|
32
|
-
@Mutation(returns => Boolean, { description: 'To delete multiple Activity Instances of draft state' })
|
|
33
|
-
async deleteDraftActivityInstances(
|
|
34
|
-
@Arg('ids', type => [String]) ids: string[],
|
|
35
|
-
@Ctx() context: ResolverContext
|
|
36
|
-
): Promise<boolean> {
|
|
37
|
-
const { domain, tx } = context.state
|
|
38
|
-
|
|
39
|
-
await tx.getRepository(ActivityInstance).delete({
|
|
40
|
-
domain: { id: domain.id },
|
|
41
|
-
id: In(ids),
|
|
42
|
-
state : ActivityInstanceStatus.Draft
|
|
43
|
-
})
|
|
44
|
-
|
|
45
|
-
return true
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@Directive('@transaction')
|
|
49
|
-
@Mutation(returns => ActivityInstance, { description: 'To draft standard ActivityInstance' })
|
|
50
|
-
async draftActivityInstance(
|
|
51
|
-
@Arg('activityInstance') activityInstance: ActivityInstanceDraft,
|
|
52
|
-
@Ctx() context: ResolverContext
|
|
53
|
-
): Promise<ActivityInstance> {
|
|
54
|
-
return await draft(activityInstance, context)
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@Directive('@transaction')
|
|
58
|
-
@Mutation(returns => ActivityInstance, { description: 'To issue standard ActivityInstance' })
|
|
59
|
-
async issueActivityInstance(
|
|
60
|
-
@Arg('activityInstance') activityInstance: ActivityInstanceIssue,
|
|
61
|
-
@Ctx() context: ResolverContext
|
|
62
|
-
): Promise<ActivityInstance> {
|
|
63
|
-
return await issue(activityInstance, context)
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@Directive('@transaction')
|
|
67
|
-
@Mutation(returns => ActivityThread!, {
|
|
68
|
-
nullable: true,
|
|
69
|
-
description:
|
|
70
|
-
'To pick an activity ActivityInstance voluntarily. [cautions] This resolver will return a assigned ActivityThread.'
|
|
71
|
-
})
|
|
72
|
-
async pickActivityInstance(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<ActivityThread> {
|
|
73
|
-
return await pick(id, context)
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@Directive('@transaction')
|
|
77
|
-
@Mutation(returns => ActivityInstance, { description: 'To assign a ActivityInstance' })
|
|
78
|
-
async assignActivityInstance(
|
|
79
|
-
@Arg('id') id: string,
|
|
80
|
-
@Arg('assignees', type => [String], { nullable: true, description: 'Email of assignee users' }) assignees: string[],
|
|
81
|
-
@Arg('reason', { nullable: true }) reason: string,
|
|
82
|
-
@Arg('dueAt', { nullable: true }) dueAt: Date,
|
|
83
|
-
@Ctx() context: ResolverContext
|
|
84
|
-
): Promise<ActivityInstance> {
|
|
85
|
-
return await assign(
|
|
86
|
-
{
|
|
87
|
-
id,
|
|
88
|
-
assignees,
|
|
89
|
-
reason,
|
|
90
|
-
dueAt
|
|
91
|
-
},
|
|
92
|
-
context
|
|
93
|
-
)
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
@Directive('@transaction')
|
|
97
|
-
@Mutation(returns => ActivityInstance, { description: 'To end a ActivityInstance' })
|
|
98
|
-
async endActivityInstance(
|
|
99
|
-
@Arg('id') id: string,
|
|
100
|
-
@Arg('output', type => ScalarObject, { nullable: true }) output: { [key: string]: any },
|
|
101
|
-
@Arg('reason', { nullable: true }) reason: string,
|
|
102
|
-
@Ctx() context: ResolverContext
|
|
103
|
-
): Promise<ActivityInstance> {
|
|
104
|
-
return await end({ id, output, reason }, context)
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
@Directive('@transaction')
|
|
108
|
-
@Mutation(returns => ActivityInstance, { description: 'To abort a ActivityInstance' })
|
|
109
|
-
async abortActivityInstance(
|
|
110
|
-
@Arg('id') id: string,
|
|
111
|
-
@Arg('reason', { nullable: true }) reason: string,
|
|
112
|
-
@Ctx() context: ResolverContext
|
|
113
|
-
): Promise<ActivityInstance> {
|
|
114
|
-
return await abort({ id, reason }, context)
|
|
115
|
-
}
|
|
116
|
-
}
|