@things-factory/worklist 7.0.0-alpha.8 → 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,187 +0,0 @@
|
|
|
1
|
-
import { Field, ID, 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 } from '@things-factory/shell'
|
|
13
|
-
import { ApprovalLineItem } from '@things-factory/organization'
|
|
14
|
-
|
|
15
|
-
import { Activity, ActivityStartingType, ActivityStatus, ActivityType, ActivityUIType, AssigneeItem } from './activity'
|
|
16
|
-
import { ActivityModelItem } from './activity-model-type'
|
|
17
|
-
|
|
18
|
-
const ORMCONFIG = config.get('ormconfig', {})
|
|
19
|
-
const DATABASE_TYPE = ORMCONFIG.type
|
|
20
|
-
|
|
21
|
-
@Entity()
|
|
22
|
-
@Index(
|
|
23
|
-
'ix_activity_history_0',
|
|
24
|
-
(activityHistory: ActivityHistory) => [activityHistory.originalId, activityHistory.version],
|
|
25
|
-
{ unique: true }
|
|
26
|
-
)
|
|
27
|
-
@Index(
|
|
28
|
-
'ix_activity_history_1',
|
|
29
|
-
(activityHistory: ActivityHistory) => [activityHistory.domain, activityHistory.originalId, activityHistory.version],
|
|
30
|
-
{ unique: true }
|
|
31
|
-
)
|
|
32
|
-
@ObjectType({ description: 'History Entity of Activity' })
|
|
33
|
-
export class ActivityHistory implements HistoryEntityInterface<Activity> {
|
|
34
|
-
@PrimaryGeneratedColumn('uuid')
|
|
35
|
-
@Field(type => ID)
|
|
36
|
-
readonly id: string
|
|
37
|
-
|
|
38
|
-
@Column({ nullable: true, default: 1 })
|
|
39
|
-
@Field({ nullable: true })
|
|
40
|
-
version?: number = 1
|
|
41
|
-
|
|
42
|
-
@ManyToOne(type => Domain)
|
|
43
|
-
@Field({ nullable: true })
|
|
44
|
-
domain?: Domain
|
|
45
|
-
|
|
46
|
-
@RelationId((activity: Activity) => activity.domain)
|
|
47
|
-
domainId?: string
|
|
48
|
-
|
|
49
|
-
@Column()
|
|
50
|
-
@Field({ nullable: true })
|
|
51
|
-
name?: string
|
|
52
|
-
|
|
53
|
-
@Column({ nullable: true })
|
|
54
|
-
@Field({ nullable: true })
|
|
55
|
-
description?: string
|
|
56
|
-
|
|
57
|
-
@Column({ nullable: true })
|
|
58
|
-
@Field({ nullable: true })
|
|
59
|
-
activityType?: ActivityType
|
|
60
|
-
|
|
61
|
-
@Column({ nullable: true })
|
|
62
|
-
@Field({ nullable: true })
|
|
63
|
-
state?: ActivityStatus
|
|
64
|
-
|
|
65
|
-
@Column('simple-json', { nullable: true })
|
|
66
|
-
@Field(type => [ActivityModelItem], { nullable: true })
|
|
67
|
-
model?: ActivityModelItem[]
|
|
68
|
-
|
|
69
|
-
@Column({ nullable: true, default: 1 })
|
|
70
|
-
@Field({ nullable: true })
|
|
71
|
-
priority?: number = 1
|
|
72
|
-
|
|
73
|
-
@Column({ nullable: true })
|
|
74
|
-
@Field({ nullable: true })
|
|
75
|
-
startingType?: ActivityStartingType
|
|
76
|
-
|
|
77
|
-
@Column({
|
|
78
|
-
nullable: true
|
|
79
|
-
})
|
|
80
|
-
@Field({ nullable: true })
|
|
81
|
-
schedule?: string
|
|
82
|
-
|
|
83
|
-
@Column({ nullable: true })
|
|
84
|
-
@Field({ nullable: true })
|
|
85
|
-
timezone?: string
|
|
86
|
-
|
|
87
|
-
@Column({ nullable: true })
|
|
88
|
-
@Field({ nullable: true })
|
|
89
|
-
scheduleId?: string
|
|
90
|
-
|
|
91
|
-
@Column({ nullable: true })
|
|
92
|
-
@Field({ nullable: true })
|
|
93
|
-
standardTime?: number
|
|
94
|
-
|
|
95
|
-
@ManyToOne(type => Role, { nullable: true })
|
|
96
|
-
@Field(type => Role, { nullable: true })
|
|
97
|
-
issuerRole?: Role
|
|
98
|
-
|
|
99
|
-
@RelationId((activity: Activity) => activity.issuerRole)
|
|
100
|
-
issuerRoleId?: string
|
|
101
|
-
|
|
102
|
-
@ManyToOne(type => Role, { nullable: true })
|
|
103
|
-
@Field(type => Role, { nullable: true })
|
|
104
|
-
assigneeRole?: Role
|
|
105
|
-
|
|
106
|
-
@RelationId((activity: Activity) => activity.assigneeRole)
|
|
107
|
-
assigneeRoleId?: string
|
|
108
|
-
|
|
109
|
-
@ManyToOne(type => Role, { nullable: true })
|
|
110
|
-
@Field(type => Role, { nullable: true })
|
|
111
|
-
supervisoryRole?: Role
|
|
112
|
-
|
|
113
|
-
@RelationId((activity: Activity) => activity.supervisoryRole)
|
|
114
|
-
supervisoryRoleId?: string
|
|
115
|
-
|
|
116
|
-
@Column('simple-json', { nullable: true })
|
|
117
|
-
@Field(type => [AssigneeItem], { nullable: true, description: 'Who to resolve for the activity.' })
|
|
118
|
-
assignees?: AssigneeItem[]
|
|
119
|
-
|
|
120
|
-
@Column('simple-json', { nullable: true })
|
|
121
|
-
@Field(type => [ApprovalLineItem], {
|
|
122
|
-
nullable: true,
|
|
123
|
-
description: 'Approval line for handling the activity.'
|
|
124
|
-
})
|
|
125
|
-
approvalLine?: ApprovalLineItem[]
|
|
126
|
-
|
|
127
|
-
@Column({ nullable: true })
|
|
128
|
-
@Field({ nullable: true, description: 'The type of UI to be shown when a task is performed' })
|
|
129
|
-
uiType?: ActivityUIType
|
|
130
|
-
|
|
131
|
-
@Column({ nullable: true })
|
|
132
|
-
@Field({ nullable: true })
|
|
133
|
-
uiSource?: string
|
|
134
|
-
|
|
135
|
-
@Column({ nullable: true })
|
|
136
|
-
@Field({ nullable: true, description: 'The type of view to be shown when a task is approved' })
|
|
137
|
-
viewType?: ActivityUIType
|
|
138
|
-
|
|
139
|
-
@Column({ nullable: true })
|
|
140
|
-
@Field({ nullable: true })
|
|
141
|
-
viewSource?: string
|
|
142
|
-
|
|
143
|
-
@Column({ nullable: true })
|
|
144
|
-
@Field({ nullable: true, description: 'The type of report to be shown when a task is approved' })
|
|
145
|
-
reportType?: ActivityUIType
|
|
146
|
-
|
|
147
|
-
@Column({ nullable: true })
|
|
148
|
-
@Field({ nullable: true })
|
|
149
|
-
reportSource?: string
|
|
150
|
-
|
|
151
|
-
@Column()
|
|
152
|
-
@Field({ nullable: true })
|
|
153
|
-
createdAt?: Date
|
|
154
|
-
|
|
155
|
-
@Column()
|
|
156
|
-
@Field({ nullable: true })
|
|
157
|
-
updatedAt?: Date
|
|
158
|
-
|
|
159
|
-
@ManyToOne(type => User, { nullable: true })
|
|
160
|
-
@Field({ nullable: true })
|
|
161
|
-
creator?: User
|
|
162
|
-
|
|
163
|
-
@RelationId((activity: Activity) => activity.creator)
|
|
164
|
-
creatorId?: string
|
|
165
|
-
|
|
166
|
-
@ManyToOne(type => User, { nullable: true })
|
|
167
|
-
@Field({ nullable: true })
|
|
168
|
-
updater?: User
|
|
169
|
-
|
|
170
|
-
@RelationId((activity: Activity) => activity.updater)
|
|
171
|
-
updaterId?: string
|
|
172
|
-
|
|
173
|
-
@HistoryOriginalIdColumn()
|
|
174
|
-
public originalId!: string
|
|
175
|
-
|
|
176
|
-
@HistoryActionColumn({
|
|
177
|
-
nullable: false,
|
|
178
|
-
type:
|
|
179
|
-
DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
|
|
180
|
-
? 'enum'
|
|
181
|
-
: DATABASE_TYPE == 'oracle'
|
|
182
|
-
? 'varchar2'
|
|
183
|
-
: 'smallint',
|
|
184
|
-
enum: HistoryActionType
|
|
185
|
-
})
|
|
186
|
-
public action!: HistoryActionType
|
|
187
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { Field, InputType, Int, ObjectType, registerEnumType } from 'type-graphql'
|
|
2
|
-
|
|
3
|
-
import { ScalarObject } from '@things-factory/shell'
|
|
4
|
-
|
|
5
|
-
export enum ActivityModelItemInoutType {
|
|
6
|
-
in = 'in',
|
|
7
|
-
out = 'out',
|
|
8
|
-
inout = 'inout'
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
registerEnumType(ActivityModelItemInoutType, {
|
|
12
|
-
name: 'ActivityModelItemInoutType',
|
|
13
|
-
description: 'inout enumeration of a activity-model-item'
|
|
14
|
-
})
|
|
15
|
-
|
|
16
|
-
export enum ActivityModelItemType {
|
|
17
|
-
number = 'number',
|
|
18
|
-
text = 'text',
|
|
19
|
-
textarea = 'textarea',
|
|
20
|
-
boolean = 'boolean',
|
|
21
|
-
select = 'select',
|
|
22
|
-
file = 'file'
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
registerEnumType(ActivityModelItemType, {
|
|
26
|
-
name: 'ActivityModelItemType',
|
|
27
|
-
description: 'data type enumeration of a activity-model-item'
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
@ObjectType({ description: 'Entity for ActivityModelItem' })
|
|
31
|
-
export class ActivityModelItem {
|
|
32
|
-
@Field({ nullable: true })
|
|
33
|
-
name?: string
|
|
34
|
-
|
|
35
|
-
@Field({ nullable: true })
|
|
36
|
-
description?: string
|
|
37
|
-
|
|
38
|
-
@Field({ nullable: true })
|
|
39
|
-
tag?: string
|
|
40
|
-
|
|
41
|
-
@Field({ nullable: true })
|
|
42
|
-
active?: boolean
|
|
43
|
-
|
|
44
|
-
@Field({ nullable: true })
|
|
45
|
-
hidden?: boolean
|
|
46
|
-
|
|
47
|
-
@Field({ nullable: true })
|
|
48
|
-
mandatory?: boolean
|
|
49
|
-
|
|
50
|
-
@Field(type => ActivityModelItemInoutType, { nullable: true })
|
|
51
|
-
inout?: ActivityModelItemInoutType
|
|
52
|
-
|
|
53
|
-
@Field({ nullable: true })
|
|
54
|
-
type?: ActivityModelItemType
|
|
55
|
-
|
|
56
|
-
@Field(type => ScalarObject, { nullable: true })
|
|
57
|
-
options?: { [option: string]: any }
|
|
58
|
-
|
|
59
|
-
@Field({ nullable: true })
|
|
60
|
-
unit?: string
|
|
61
|
-
|
|
62
|
-
@Field(type => [Int], { nullable: true })
|
|
63
|
-
quantifier?: number[]
|
|
64
|
-
|
|
65
|
-
@Field(type => ScalarObject, { nullable: true })
|
|
66
|
-
spec?: { [key: string]: any }
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
@InputType()
|
|
70
|
-
export class ActivityModelItemPatch {
|
|
71
|
-
@Field({ nullable: true })
|
|
72
|
-
name?: string
|
|
73
|
-
|
|
74
|
-
@Field({ nullable: true })
|
|
75
|
-
description?: string
|
|
76
|
-
|
|
77
|
-
@Field({ nullable: true })
|
|
78
|
-
tag?: string
|
|
79
|
-
|
|
80
|
-
@Field(type => ActivityModelItemInoutType, { nullable: true })
|
|
81
|
-
inout?: ActivityModelItemInoutType
|
|
82
|
-
|
|
83
|
-
@Field(type => ActivityModelItemType, { nullable: true })
|
|
84
|
-
type?: ActivityModelItemType
|
|
85
|
-
|
|
86
|
-
@Field(type => ScalarObject, { nullable: true })
|
|
87
|
-
options?: { [option: string]: any }
|
|
88
|
-
|
|
89
|
-
@Field({ nullable: true })
|
|
90
|
-
unit?: string
|
|
91
|
-
|
|
92
|
-
@Field(type => [Int], { nullable: true })
|
|
93
|
-
quantifier: number[]
|
|
94
|
-
|
|
95
|
-
@Field({ nullable: true })
|
|
96
|
-
active?: boolean
|
|
97
|
-
|
|
98
|
-
@Field({ nullable: true })
|
|
99
|
-
mandatory?: boolean
|
|
100
|
-
|
|
101
|
-
@Field({ nullable: true })
|
|
102
|
-
hidden?: boolean
|
|
103
|
-
|
|
104
|
-
@Field(type => ScalarObject, { nullable: true })
|
|
105
|
-
spec?: { [key: string]: any }
|
|
106
|
-
}
|
|
@@ -1,388 +0,0 @@
|
|
|
1
|
-
import { Arg, Ctx, Directive, Mutation, Resolver } from 'type-graphql'
|
|
2
|
-
import { In } from 'typeorm'
|
|
3
|
-
|
|
4
|
-
import { createAttachment, deleteAttachmentsByRef } from '@things-factory/attachment-base'
|
|
5
|
-
import { Application, CallbackBase, registerSchedule, unregisterSchedule } from '@things-factory/scheduler-client'
|
|
6
|
-
import { ApprovalLineItem, OrgMemberTargetType } from '@things-factory/organization'
|
|
7
|
-
|
|
8
|
-
import { Activity, AssigneeItem } from './activity'
|
|
9
|
-
import { ActivityPatch, NewActivity } from './activity-type'
|
|
10
|
-
|
|
11
|
-
function getApprovalLineValue(patch: NewActivity | ActivityPatch): ApprovalLineItem[] {
|
|
12
|
-
const { approvalLine } = patch
|
|
13
|
-
|
|
14
|
-
if (!('approvalLine' in patch)) {
|
|
15
|
-
/* approvalLine이 언급되지 않았다면, 업데이트하지 않는다. */
|
|
16
|
-
return
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
if (!approvalLine || !(approvalLine instanceof Array)) {
|
|
20
|
-
/* approvalLine의 값이 없거나 배열이 아니라면, 클리어시킨다. */
|
|
21
|
-
return null
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return approvalLine
|
|
25
|
-
.map(m => {
|
|
26
|
-
return {
|
|
27
|
-
type: m.type,
|
|
28
|
-
approver: m.approver
|
|
29
|
-
} as ApprovalLineItem
|
|
30
|
-
})
|
|
31
|
-
.filter(m => m.type)
|
|
32
|
-
.filter(m => {
|
|
33
|
-
switch (m.type) {
|
|
34
|
-
case OrgMemberTargetType.Employee:
|
|
35
|
-
case OrgMemberTargetType.Department:
|
|
36
|
-
case OrgMemberTargetType.Role:
|
|
37
|
-
return !!m.approver?.id
|
|
38
|
-
default:
|
|
39
|
-
return true
|
|
40
|
-
}
|
|
41
|
-
})
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function getAssigneesValue(patch: NewActivity | ActivityPatch): AssigneeItem[] {
|
|
45
|
-
const { assignees } = patch
|
|
46
|
-
|
|
47
|
-
if (!('assignees' in patch)) {
|
|
48
|
-
/* assignees이 언급되지 않았다면, 업데이트하지 않는다. */
|
|
49
|
-
return
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
if (!assignees || !(assignees instanceof Array)) {
|
|
53
|
-
/* assignees의 값이 없거나 배열이 아니라면, 클리어시킨다. */
|
|
54
|
-
return null
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
return assignees
|
|
58
|
-
.map(m => {
|
|
59
|
-
return {
|
|
60
|
-
type: m.type,
|
|
61
|
-
assignee: m.assignee
|
|
62
|
-
} as ApprovalLineItem
|
|
63
|
-
})
|
|
64
|
-
.filter(m => m.type)
|
|
65
|
-
.filter(m => {
|
|
66
|
-
switch (m.type) {
|
|
67
|
-
case OrgMemberTargetType.Employee:
|
|
68
|
-
case OrgMemberTargetType.Department:
|
|
69
|
-
case OrgMemberTargetType.Role:
|
|
70
|
-
return !!m.assignee?.id
|
|
71
|
-
default:
|
|
72
|
-
return true
|
|
73
|
-
}
|
|
74
|
-
})
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@Resolver(Activity)
|
|
78
|
-
export class ActivityMutation {
|
|
79
|
-
@Directive('@transaction')
|
|
80
|
-
@Directive('@privilege(category: "activity", privilege: "mutation", domainOwnerGranted: true)')
|
|
81
|
-
@Mutation(returns => Activity, { description: 'To create new Activity' })
|
|
82
|
-
async createActivity(@Arg('activity') activity: NewActivity, @Ctx() context: ResolverContext): Promise<Activity> {
|
|
83
|
-
const { domain, user, tx } = context.state
|
|
84
|
-
|
|
85
|
-
const result = await tx.getRepository(Activity).save({
|
|
86
|
-
...activity,
|
|
87
|
-
assignees: getAssigneesValue(activity),
|
|
88
|
-
approvalLine: getApprovalLineValue(activity),
|
|
89
|
-
domain,
|
|
90
|
-
creator: user,
|
|
91
|
-
updater: user
|
|
92
|
-
})
|
|
93
|
-
|
|
94
|
-
if (activity.thumbnail) {
|
|
95
|
-
await createAttachment(
|
|
96
|
-
null,
|
|
97
|
-
{
|
|
98
|
-
attachment: {
|
|
99
|
-
file: activity.thumbnail,
|
|
100
|
-
refType: Activity.name,
|
|
101
|
-
refBy: result.id
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
context
|
|
105
|
-
)
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
return result
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
@Directive('@transaction')
|
|
112
|
-
@Directive('@privilege(category: "activity", privilege: "mutation", domainOwnerGranted: true)')
|
|
113
|
-
@Mutation(returns => Activity, { description: 'To modify Activity information' })
|
|
114
|
-
async updateActivity(
|
|
115
|
-
@Arg('id') id: string,
|
|
116
|
-
@Arg('patch') patch: ActivityPatch,
|
|
117
|
-
@Ctx() context: ResolverContext
|
|
118
|
-
): Promise<Activity> {
|
|
119
|
-
const { domain, user, tx } = context.state
|
|
120
|
-
|
|
121
|
-
const repository = tx.getRepository(Activity)
|
|
122
|
-
const activity = await repository.findOne({
|
|
123
|
-
where: { domain: { id: domain.id }, id },
|
|
124
|
-
/* history에 항상 반영될 수 있도록 relations가 있어야 함. */
|
|
125
|
-
relations: ['domain', 'issuerRole', 'assigneeRole', 'supervisoryRole', 'creator', 'updater']
|
|
126
|
-
})
|
|
127
|
-
|
|
128
|
-
const result = await repository.save({
|
|
129
|
-
...activity,
|
|
130
|
-
...patch,
|
|
131
|
-
assignees: getAssigneesValue(activity),
|
|
132
|
-
approvalLine: getApprovalLineValue(activity),
|
|
133
|
-
updater: user
|
|
134
|
-
})
|
|
135
|
-
|
|
136
|
-
if (patch.thumbnail) {
|
|
137
|
-
await deleteAttachmentsByRef(null, { refBys: [result.id] }, context)
|
|
138
|
-
await createAttachment(
|
|
139
|
-
null,
|
|
140
|
-
{
|
|
141
|
-
attachment: {
|
|
142
|
-
file: patch.thumbnail,
|
|
143
|
-
refType: Activity.name,
|
|
144
|
-
refBy: result.id
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
context
|
|
148
|
-
)
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
return result
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
@Directive('@transaction')
|
|
155
|
-
@Directive('@privilege(category: "activity", privilege: "mutation", domainOwnerGranted: true)')
|
|
156
|
-
@Mutation(returns => [Activity], { description: "To modify multiple Activities' information" })
|
|
157
|
-
async updateMultipleActivity(
|
|
158
|
-
@Arg('patches', type => [ActivityPatch]) patches: ActivityPatch[],
|
|
159
|
-
@Ctx() context: ResolverContext
|
|
160
|
-
): Promise<Activity[]> {
|
|
161
|
-
const { domain, user, tx } = context.state
|
|
162
|
-
|
|
163
|
-
let results = []
|
|
164
|
-
const _createRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === '+')
|
|
165
|
-
const _updateRecords = patches.filter((patch: any) => patch.cuFlag.toUpperCase() === 'M')
|
|
166
|
-
const activityRepo = tx.getRepository(Activity)
|
|
167
|
-
|
|
168
|
-
if (_createRecords.length > 0) {
|
|
169
|
-
for (let i = 0; i < _createRecords.length; i++) {
|
|
170
|
-
const newRecord = _createRecords[i]
|
|
171
|
-
|
|
172
|
-
const result = await activityRepo.save({
|
|
173
|
-
...newRecord,
|
|
174
|
-
assignees: getAssigneesValue(newRecord),
|
|
175
|
-
approvalLine: getApprovalLineValue(newRecord),
|
|
176
|
-
domain,
|
|
177
|
-
creator: user,
|
|
178
|
-
updater: user
|
|
179
|
-
})
|
|
180
|
-
|
|
181
|
-
if (newRecord.thumbnail) {
|
|
182
|
-
await createAttachment(
|
|
183
|
-
null,
|
|
184
|
-
{
|
|
185
|
-
attachment: {
|
|
186
|
-
file: newRecord.thumbnail,
|
|
187
|
-
refType: Activity.name,
|
|
188
|
-
refBy: result.id
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
context
|
|
192
|
-
)
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
results.push({ ...result, cuFlag: '+' })
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
if (_updateRecords.length > 0) {
|
|
200
|
-
for (let i = 0; i < _updateRecords.length; i++) {
|
|
201
|
-
const updateRecord = _updateRecords[i]
|
|
202
|
-
const activity = await activityRepo.findOne({
|
|
203
|
-
where: { id: updateRecord.id },
|
|
204
|
-
/* history에 항상 반영될 수 있도록 relations가 있어야 함. */
|
|
205
|
-
relations: ['domain', 'issuerRole', 'assigneeRole', 'supervisoryRole', 'creator', 'updater']
|
|
206
|
-
})
|
|
207
|
-
|
|
208
|
-
const result = await activityRepo.save({
|
|
209
|
-
...activity,
|
|
210
|
-
...updateRecord,
|
|
211
|
-
assignees: getAssigneesValue(updateRecord),
|
|
212
|
-
approvalLine: getApprovalLineValue(updateRecord),
|
|
213
|
-
updater: user
|
|
214
|
-
})
|
|
215
|
-
|
|
216
|
-
if (updateRecord.thumbnail) {
|
|
217
|
-
await deleteAttachmentsByRef(null, { refBys: [result.id] }, context)
|
|
218
|
-
await createAttachment(
|
|
219
|
-
null,
|
|
220
|
-
{
|
|
221
|
-
attachment: {
|
|
222
|
-
file: updateRecord.thumbnail,
|
|
223
|
-
refType: Activity.name,
|
|
224
|
-
refBy: result.id
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
context
|
|
228
|
-
)
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
results.push({ ...result, cuFlag: 'M' })
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
return results
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
@Directive('@transaction')
|
|
239
|
-
@Directive('@privilege(category: "activity", privilege: "mutation", domainOwnerGranted: true)')
|
|
240
|
-
@Mutation(returns => Boolean, { description: 'To delete Activity' })
|
|
241
|
-
async deleteActivity(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<boolean> {
|
|
242
|
-
const { domain, tx } = context.state
|
|
243
|
-
|
|
244
|
-
await tx.getRepository(Activity).delete({ domain: { id: domain.id }, id })
|
|
245
|
-
await deleteAttachmentsByRef(null, { refBys: [id] }, context)
|
|
246
|
-
|
|
247
|
-
return true
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
@Directive('@transaction')
|
|
251
|
-
@Mutation(returns => Boolean, { description: 'To delete multiple Activities' })
|
|
252
|
-
async deleteActivities(
|
|
253
|
-
@Arg('ids', type => [String]) ids: string[],
|
|
254
|
-
@Ctx() context: ResolverContext
|
|
255
|
-
): Promise<boolean> {
|
|
256
|
-
const { domain, tx } = context.state
|
|
257
|
-
|
|
258
|
-
await tx.getRepository(Activity).delete({
|
|
259
|
-
domain: { id: domain.id },
|
|
260
|
-
id: In(ids)
|
|
261
|
-
})
|
|
262
|
-
|
|
263
|
-
await deleteAttachmentsByRef(null, { refBys: ids }, context)
|
|
264
|
-
|
|
265
|
-
return true
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
@Directive('@transaction')
|
|
269
|
-
@Directive('@privilege(category: "activity", privilege: "mutation", domainOwnerGranted: true)')
|
|
270
|
-
@Mutation(returns => Boolean, { description: 'To import multiple Activities' })
|
|
271
|
-
async importActivities(
|
|
272
|
-
@Arg('activities', type => [ActivityPatch]) activities: ActivityPatch[],
|
|
273
|
-
@Ctx() context: ResolverContext
|
|
274
|
-
): Promise<boolean> {
|
|
275
|
-
const { domain, tx } = context.state
|
|
276
|
-
|
|
277
|
-
await Promise.all(
|
|
278
|
-
activities.map(async (activity: ActivityPatch) => {
|
|
279
|
-
const createdActivity: Activity = await tx.getRepository(Activity).save({ domain, ...activity })
|
|
280
|
-
})
|
|
281
|
-
)
|
|
282
|
-
|
|
283
|
-
return true
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
@Directive('@transaction')
|
|
287
|
-
@Directive('@privilege(category: "activity", privilege: "mutation", domainOwnerGranted: true)')
|
|
288
|
-
@Mutation(returns => Activity, {
|
|
289
|
-
description: 'To start posting activity based on the schedule of the given activity'
|
|
290
|
-
})
|
|
291
|
-
async startActivitySchedule(
|
|
292
|
-
@Arg('activityId') activityId: string,
|
|
293
|
-
@Ctx() context: ResolverContext
|
|
294
|
-
): Promise<Activity> {
|
|
295
|
-
const { domain, tx } = context.state
|
|
296
|
-
|
|
297
|
-
var repository = tx.getRepository(Activity)
|
|
298
|
-
var activity = await repository.findOne({
|
|
299
|
-
where: { domain: { id: domain.id }, id: activityId }
|
|
300
|
-
})
|
|
301
|
-
|
|
302
|
-
if (!activity) {
|
|
303
|
-
throw new Error(
|
|
304
|
-
context.t('error.activity not found', {
|
|
305
|
-
activity: activityId
|
|
306
|
-
})
|
|
307
|
-
)
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
try {
|
|
311
|
-
var handle = await registerSchedule({
|
|
312
|
-
name: activity.name,
|
|
313
|
-
client: {
|
|
314
|
-
application: Application,
|
|
315
|
-
group: `${domain.id}`,
|
|
316
|
-
type: 'activity',
|
|
317
|
-
key: activity.id,
|
|
318
|
-
operation: 'schedule'
|
|
319
|
-
},
|
|
320
|
-
type: 'cron',
|
|
321
|
-
schedule: activity.schedule,
|
|
322
|
-
timezone: activity.timezone,
|
|
323
|
-
task: {
|
|
324
|
-
type: 'rest',
|
|
325
|
-
connection: {
|
|
326
|
-
host: `${CallbackBase}/callback-schedule-for-activity`,
|
|
327
|
-
headers: {
|
|
328
|
-
'Content-Type': 'application/json',
|
|
329
|
-
accept: '*/*'
|
|
330
|
-
}
|
|
331
|
-
},
|
|
332
|
-
data: {
|
|
333
|
-
domainId: domain.id,
|
|
334
|
-
activityId
|
|
335
|
-
},
|
|
336
|
-
history_check: true,
|
|
337
|
-
failed_policy: 'retry_dlq',
|
|
338
|
-
max_retry_count: 3,
|
|
339
|
-
retry_period: 60
|
|
340
|
-
}
|
|
341
|
-
})
|
|
342
|
-
|
|
343
|
-
return await repository.save({
|
|
344
|
-
...activity,
|
|
345
|
-
scheduleId: handle
|
|
346
|
-
})
|
|
347
|
-
} catch (err) {
|
|
348
|
-
console.error('startActivitySchedule', err)
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
@Directive('@transaction')
|
|
353
|
-
@Directive('@privilege(category: "activity", privilege: "mutation", domainOwnerGranted: true)')
|
|
354
|
-
@Mutation(returns => Activity, {
|
|
355
|
-
nullable: true,
|
|
356
|
-
description: 'To stop posting activity based on the schedule of the given activity'
|
|
357
|
-
})
|
|
358
|
-
async stopActivitySchedule(
|
|
359
|
-
@Arg('activityId') activityId: string,
|
|
360
|
-
@Ctx() context: ResolverContext
|
|
361
|
-
): Promise<Activity | undefined> {
|
|
362
|
-
const { domain, tx } = context.state
|
|
363
|
-
|
|
364
|
-
var repository = tx.getRepository(Activity)
|
|
365
|
-
var activity = await repository.findOne({
|
|
366
|
-
where: { domain: { id: domain.id }, id: activityId }
|
|
367
|
-
})
|
|
368
|
-
|
|
369
|
-
if (!activity) {
|
|
370
|
-
throw new Error(
|
|
371
|
-
context.t('error.activity not found', {
|
|
372
|
-
activity: activityId
|
|
373
|
-
})
|
|
374
|
-
)
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
try {
|
|
378
|
-
await unregisterSchedule(activity.scheduleId)
|
|
379
|
-
|
|
380
|
-
return await repository.save({
|
|
381
|
-
...activity,
|
|
382
|
-
scheduleId: null
|
|
383
|
-
})
|
|
384
|
-
} catch (err) {
|
|
385
|
-
console.error('stopActivitySchedule', err)
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
}
|