@things-factory/worklist 10.1.248 → 10.1.250
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-cells.d.ts +21 -0
- package/dist-client/activity-cells.js +117 -0
- package/dist-client/activity-cells.js.map +1 -0
- package/dist-client/activity-state-counts.d.ts +6 -0
- package/dist-client/activity-state-counts.js +23 -0
- package/dist-client/activity-state-counts.js.map +1 -0
- package/dist-client/activity-summary-generator.d.ts +2 -0
- package/dist-client/activity-summary-generator.js +155 -0
- package/dist-client/activity-summary-generator.js.map +1 -0
- package/dist-client/approval-progress.d.ts +27 -0
- package/dist-client/approval-progress.js +42 -0
- package/dist-client/approval-progress.js.map +1 -0
- package/dist-client/bootstrap.d.ts +5 -0
- package/dist-client/bootstrap.js +63 -0
- package/dist-client/bootstrap.js.map +1 -0
- package/dist-client/chip-counts.d.ts +7 -0
- package/dist-client/chip-counts.js +11 -0
- package/dist-client/chip-counts.js.map +1 -0
- package/dist-client/chip-filters.d.ts +60 -0
- package/dist-client/chip-filters.js +102 -0
- package/dist-client/chip-filters.js.map +1 -0
- package/dist-client/components/activity-/bowner-view.d.ts +1 -0
- package/dist-client/components/activity-/bowner-view.js +104 -0
- package/dist-client/components/activity-/bowner-view.js.map +1 -0
- package/dist-client/components/activity-approval-ribon.d.ts +31 -0
- package/dist-client/components/activity-approval-ribon.js +103 -0
- package/dist-client/components/activity-approval-ribon.js.map +1 -0
- package/dist-client/components/activity-fields.d.ts +77 -0
- package/dist-client/components/activity-fields.js +424 -0
- package/dist-client/components/activity-fields.js.map +1 -0
- package/dist-client/components/activity-instance-preview.d.ts +2 -0
- package/dist-client/components/activity-instance-preview.js +177 -0
- package/dist-client/components/activity-instance-preview.js.map +1 -0
- package/dist-client/components/activity-instance-ribon.d.ts +32 -0
- package/dist-client/components/activity-instance-ribon.js +91 -0
- package/dist-client/components/activity-instance-ribon.js.map +1 -0
- package/dist-client/components/activity-intro-view.d.ts +1 -0
- package/dist-client/components/activity-intro-view.js +104 -0
- package/dist-client/components/activity-intro-view.js.map +1 -0
- package/dist-client/components/activity-reporter-view.d.ts +1 -0
- package/dist-client/components/activity-reporter-view.js +103 -0
- package/dist-client/components/activity-reporter-view.js.map +1 -0
- package/dist-client/components/activity-starter-form.d.ts +19 -0
- package/dist-client/components/activity-starter-form.js +264 -0
- package/dist-client/components/activity-starter-form.js.map +1 -0
- package/dist-client/components/activity-thread-ribon.d.ts +38 -0
- package/dist-client/components/activity-thread-ribon.js +95 -0
- package/dist-client/components/activity-thread-ribon.js.map +1 -0
- package/dist-client/components/activity-thread-timeline.d.ts +28 -0
- package/dist-client/components/activity-thread-timeline.js +339 -0
- package/dist-client/components/activity-thread-timeline.js.map +1 -0
- package/dist-client/components/can-pick.d.ts +15 -0
- package/dist-client/components/can-pick.js +16 -0
- package/dist-client/components/can-pick.js.map +1 -0
- package/dist-client/components/decision-content.d.ts +35 -0
- package/dist-client/components/decision-content.js +331 -0
- package/dist-client/components/decision-content.js.map +1 -0
- package/dist-client/components/decision-slots.d.ts +153 -0
- package/dist-client/components/decision-slots.js +152 -0
- package/dist-client/components/decision-slots.js.map +1 -0
- package/dist-client/components/mutation-outcome.d.ts +57 -0
- package/dist-client/components/mutation-outcome.js +78 -0
- package/dist-client/components/mutation-outcome.js.map +1 -0
- package/dist-client/components/say-outcome.d.ts +25 -0
- package/dist-client/components/say-outcome.js +51 -0
- package/dist-client/components/say-outcome.js.map +1 -0
- package/dist-client/components/state-ribon.d.ts +48 -0
- package/dist-client/components/state-ribon.js +225 -0
- package/dist-client/components/state-ribon.js.map +1 -0
- package/dist-client/components/timeline-entries.d.ts +38 -0
- package/dist-client/components/timeline-entries.js +62 -0
- package/dist-client/components/timeline-entries.js.map +1 -0
- package/dist-client/components/work-box-groups.d.ts +25 -0
- package/dist-client/components/work-box-groups.js +98 -0
- package/dist-client/components/work-box-groups.js.map +1 -0
- package/dist-client/due.d.ts +16 -0
- package/dist-client/due.js +78 -0
- package/dist-client/due.js.map +1 -0
- package/dist-client/entity360/person-open-work-section.d.ts +23 -0
- package/dist-client/entity360/person-open-work-section.js +79 -0
- package/dist-client/entity360/person-open-work-section.js.map +1 -0
- package/dist-client/grist-editor/grist-editor-activity-search-key.d.ts +12 -0
- package/dist-client/grist-editor/grist-editor-activity-search-key.js +70 -0
- package/dist-client/grist-editor/grist-editor-activity-search-key.js.map +1 -0
- package/dist-client/grist-editor/grist-renderer-activity-search-key.d.ts +3 -0
- package/dist-client/grist-editor/grist-renderer-activity-search-key.js +25 -0
- package/dist-client/grist-editor/grist-renderer-activity-search-key.js.map +1 -0
- package/dist-client/grist-editor/popup-activity-search-keys-input.d.ts +17 -0
- package/dist-client/grist-editor/popup-activity-search-keys-input.js +175 -0
- package/dist-client/grist-editor/popup-activity-search-keys-input.js.map +1 -0
- package/dist-client/index.d.ts +6 -0
- package/dist-client/index.js +7 -0
- package/dist-client/index.js.map +1 -0
- package/dist-client/my-work-menus.d.ts +90 -0
- package/dist-client/my-work-menus.js +20 -0
- package/dist-client/my-work-menus.js.map +1 -0
- package/dist-client/pages/activity/activity-list-page.d.ts +53 -0
- package/dist-client/pages/activity/activity-list-page.js +600 -0
- package/dist-client/pages/activity/activity-list-page.js.map +1 -0
- package/dist-client/pages/activity/activity-model-item-list.d.ts +24 -0
- package/dist-client/pages/activity/activity-model-item-list.js +292 -0
- package/dist-client/pages/activity/activity-model-item-list.js.map +1 -0
- package/dist-client/pages/activity/activity-page.d.ts +56 -0
- package/dist-client/pages/activity/activity-page.js +396 -0
- package/dist-client/pages/activity/activity-page.js.map +1 -0
- package/dist-client/pages/activity/activity-partial-view.d.ts +13 -0
- package/dist-client/pages/activity/activity-partial-view.js +56 -0
- package/dist-client/pages/activity/activity-partial-view.js.map +1 -0
- package/dist-client/pages/activity/assignee-roles-cell.d.ts +32 -0
- package/dist-client/pages/activity/assignee-roles-cell.js +26 -0
- package/dist-client/pages/activity/assignee-roles-cell.js.map +1 -0
- package/dist-client/pages/activity/starter-list-page.d.ts +31 -0
- package/dist-client/pages/activity/starter-list-page.js +172 -0
- package/dist-client/pages/activity/starter-list-page.js.map +1 -0
- package/dist-client/pages/activity-approval/activity-approval-importer.d.ts +23 -0
- package/dist-client/pages/activity-approval/activity-approval-importer.js +94 -0
- package/dist-client/pages/activity-approval/activity-approval-importer.js.map +1 -0
- package/dist-client/pages/activity-approval/activity-approval-list-page.d.ts +55 -0
- package/dist-client/pages/activity-approval/activity-approval-list-page.js +253 -0
- package/dist-client/pages/activity-approval/activity-approval-list-page.js.map +1 -0
- package/dist-client/pages/activity-approval/activity-approval-page.d.ts +158 -0
- package/dist-client/pages/activity-approval/activity-approval-page.js +876 -0
- package/dist-client/pages/activity-approval/activity-approval-page.js.map +1 -0
- package/dist-client/pages/activity-approval/approval-gate.d.ts +29 -0
- package/dist-client/pages/activity-approval/approval-gate.js +21 -0
- package/dist-client/pages/activity-approval/approval-gate.js.map +1 -0
- package/dist-client/pages/activity-catalog/activity-catalog-page.d.ts +31 -0
- package/dist-client/pages/activity-catalog/activity-catalog-page.js +420 -0
- package/dist-client/pages/activity-catalog/activity-catalog-page.js.map +1 -0
- package/dist-client/pages/activity-catalog/activity-detail-actions.d.ts +34 -0
- package/dist-client/pages/activity-catalog/activity-detail-actions.js +18 -0
- package/dist-client/pages/activity-catalog/activity-detail-actions.js.map +1 -0
- package/dist-client/pages/activity-catalog/activity-detail-page.d.ts +90 -0
- package/dist-client/pages/activity-catalog/activity-detail-page.js +525 -0
- package/dist-client/pages/activity-catalog/activity-detail-page.js.map +1 -0
- package/dist-client/pages/activity-catalog/activity-guide.d.ts +16 -0
- package/dist-client/pages/activity-catalog/activity-guide.js +5 -0
- package/dist-client/pages/activity-catalog/activity-guide.js.map +1 -0
- package/dist-client/pages/activity-catalog/activity-panels.d.ts +80 -0
- package/dist-client/pages/activity-catalog/activity-panels.js +53 -0
- package/dist-client/pages/activity-catalog/activity-panels.js.map +1 -0
- package/dist-client/pages/activity-catalog/activity-stage.d.ts +31 -0
- package/dist-client/pages/activity-catalog/activity-stage.js +44 -0
- package/dist-client/pages/activity-catalog/activity-stage.js.map +1 -0
- package/dist-client/pages/activity-instance/activity-instance-list-page.d.ts +42 -0
- package/dist-client/pages/activity-instance/activity-instance-list-page.js +306 -0
- package/dist-client/pages/activity-instance/activity-instance-list-page.js.map +1 -0
- package/dist-client/pages/activity-instance/activity-instance-search-page.d.ts +69 -0
- package/dist-client/pages/activity-instance/activity-instance-search-page.js +309 -0
- package/dist-client/pages/activity-instance/activity-instance-search-page.js.map +1 -0
- package/dist-client/pages/activity-instance/activity-instance-start-page.d.ts +54 -0
- package/dist-client/pages/activity-instance/activity-instance-start-page.js +557 -0
- package/dist-client/pages/activity-instance/activity-instance-start-page.js.map +1 -0
- package/dist-client/pages/activity-instance/activity-instance-view.d.ts +36 -0
- package/dist-client/pages/activity-instance/activity-instance-view.js +495 -0
- package/dist-client/pages/activity-instance/activity-instance-view.js.map +1 -0
- package/dist-client/pages/activity-instance/discard-offer.d.ts +11 -0
- package/dist-client/pages/activity-instance/discard-offer.js +11 -0
- package/dist-client/pages/activity-instance/discard-offer.js.map +1 -0
- package/dist-client/pages/activity-stats/activity-stats-importer.d.ts +23 -0
- package/dist-client/pages/activity-stats/activity-stats-importer.js +94 -0
- package/dist-client/pages/activity-stats/activity-stats-importer.js.map +1 -0
- package/dist-client/pages/activity-stats/activity-stats-list-page.d.ts +55 -0
- package/dist-client/pages/activity-stats/activity-stats-list-page.js +253 -0
- package/dist-client/pages/activity-stats/activity-stats-list-page.js.map +1 -0
- package/dist-client/pages/activity-store/activity-store-page.d.ts +41 -0
- package/dist-client/pages/activity-store/activity-store-page.js +210 -0
- package/dist-client/pages/activity-store/activity-store-page.js.map +1 -0
- package/dist-client/pages/activity-supervisor/reporter-list-page.d.ts +30 -0
- package/dist-client/pages/activity-supervisor/reporter-list-page.js +190 -0
- package/dist-client/pages/activity-supervisor/reporter-list-page.js.map +1 -0
- package/dist-client/pages/activity-template/activity-template-importer.d.ts +11 -0
- package/dist-client/pages/activity-template/activity-template-importer.js +98 -0
- package/dist-client/pages/activity-template/activity-template-importer.js.map +1 -0
- package/dist-client/pages/activity-template/activity-template-list-page.d.ts +53 -0
- package/dist-client/pages/activity-template/activity-template-list-page.js +377 -0
- package/dist-client/pages/activity-template/activity-template-list-page.js.map +1 -0
- package/dist-client/pages/activity-template/activity-template-model-item-list.d.ts +1 -0
- package/dist-client/pages/activity-template/activity-template-model-item-list.js +41 -0
- package/dist-client/pages/activity-template/activity-template-model-item-list.js.map +1 -0
- package/dist-client/pages/activity-thread/activity-thread-importer.d.ts +11 -0
- package/dist-client/pages/activity-thread/activity-thread-importer.js +96 -0
- package/dist-client/pages/activity-thread/activity-thread-importer.js.map +1 -0
- package/dist-client/pages/activity-thread/activity-thread-list-page.d.ts +52 -0
- package/dist-client/pages/activity-thread/activity-thread-list-page.js +248 -0
- package/dist-client/pages/activity-thread/activity-thread-list-page.js.map +1 -0
- package/dist-client/pages/activity-thread/activity-thread-page.d.ts +91 -0
- package/dist-client/pages/activity-thread/activity-thread-page.js +594 -0
- package/dist-client/pages/activity-thread/activity-thread-page.js.map +1 -0
- package/dist-client/pages/activity-thread/activity-thread-view-page.d.ts +56 -0
- package/dist-client/pages/activity-thread/activity-thread-view-page.js +386 -0
- package/dist-client/pages/activity-thread/activity-thread-view-page.js.map +1 -0
- package/dist-client/pages/activity-thread/activity-thread-view.d.ts +31 -0
- package/dist-client/pages/activity-thread/activity-thread-view.js +134 -0
- package/dist-client/pages/activity-thread/activity-thread-view.js.map +1 -0
- package/dist-client/pages/activity-thread/thread-sections.d.ts +34 -0
- package/dist-client/pages/activity-thread/thread-sections.js +36 -0
- package/dist-client/pages/activity-thread/thread-sections.js.map +1 -0
- package/dist-client/pages/approval-progress/approval-progress-page.d.ts +46 -0
- package/dist-client/pages/approval-progress/approval-progress-page.js +294 -0
- package/dist-client/pages/approval-progress/approval-progress-page.js.map +1 -0
- package/dist-client/pages/installable-activity/installable-activity-list-page.d.ts +64 -0
- package/dist-client/pages/installable-activity/installable-activity-list-page.js +424 -0
- package/dist-client/pages/installable-activity/installable-activity-list-page.js.map +1 -0
- package/dist-client/pages/installable-activity/installable-activity-model-item-list.d.ts +1 -0
- package/dist-client/pages/installable-activity/installable-activity-model-item-list.js +20 -0
- package/dist-client/pages/installable-activity/installable-activity-model-item-list.js.map +1 -0
- package/dist-client/pages/todo/approval-done-list-page.d.ts +42 -0
- package/dist-client/pages/todo/approval-done-list-page.js +365 -0
- package/dist-client/pages/todo/approval-done-list-page.js.map +1 -0
- package/dist-client/pages/todo/approval-pending-list-page.d.ts +79 -0
- package/dist-client/pages/todo/approval-pending-list-page.js +683 -0
- package/dist-client/pages/todo/approval-pending-list-page.js.map +1 -0
- package/dist-client/pages/todo/done-list-calendar-page.d.ts +47 -0
- package/dist-client/pages/todo/done-list-calendar-page.js +379 -0
- package/dist-client/pages/todo/done-list-calendar-page.js.map +1 -0
- package/dist-client/pages/todo/draft-list-page.d.ts +64 -0
- package/dist-client/pages/todo/draft-list-page.js +404 -0
- package/dist-client/pages/todo/draft-list-page.js.map +1 -0
- package/dist-client/pages/todo/list-thumbnail.d.ts +25 -0
- package/dist-client/pages/todo/list-thumbnail.js +25 -0
- package/dist-client/pages/todo/list-thumbnail.js.map +1 -0
- package/dist-client/pages/todo/pickable-list-page.d.ts +37 -0
- package/dist-client/pages/todo/pickable-list-page.js +271 -0
- package/dist-client/pages/todo/pickable-list-page.js.map +1 -0
- package/dist-client/pages/todo/todo-list-page.d.ts +66 -0
- package/dist-client/pages/todo/todo-list-page.js +503 -0
- package/dist-client/pages/todo/todo-list-page.js.map +1 -0
- package/dist-client/pages/todo/work-box.d.ts +52 -0
- package/dist-client/pages/todo/work-box.js +54 -0
- package/dist-client/pages/todo/work-box.js.map +1 -0
- package/dist-client/pages/work-door/door-links.d.ts +22 -0
- package/dist-client/pages/work-door/door-links.js +20 -0
- package/dist-client/pages/work-door/door-links.js.map +1 -0
- package/dist-client/pages/work-door/door-sentence.d.ts +75 -0
- package/dist-client/pages/work-door/door-sentence.js +107 -0
- package/dist-client/pages/work-door/door-sentence.js.map +1 -0
- package/dist-client/pages/work-door/door-words.d.ts +48 -0
- package/dist-client/pages/work-door/door-words.js +84 -0
- package/dist-client/pages/work-door/door-words.js.map +1 -0
- package/dist-client/route.d.ts +1 -0
- package/dist-client/route.js +80 -0
- package/dist-client/route.js.map +1 -0
- package/dist-client/templates/activity-approval-context-template.d.ts +3 -0
- package/dist-client/templates/activity-approval-context-template.js +105 -0
- package/dist-client/templates/activity-approval-context-template.js.map +1 -0
- package/dist-client/templates/activity-instance-context-template.d.ts +3 -0
- package/dist-client/templates/activity-instance-context-template.js +118 -0
- package/dist-client/templates/activity-instance-context-template.js.map +1 -0
- package/dist-client/templates/activity-thread-context-template.d.ts +3 -0
- package/dist-client/templates/activity-thread-context-template.js +74 -0
- package/dist-client/templates/activity-thread-context-template.js.map +1 -0
- package/dist-client/templates/context-panel.d.ts +26 -0
- package/dist-client/templates/context-panel.js +182 -0
- package/dist-client/templates/context-panel.js.map +1 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -0
- package/dist-client/types/activity-approval.d.ts +36 -0
- package/dist-client/types/activity-approval.js +17 -0
- package/dist-client/types/activity-approval.js.map +1 -0
- package/dist-client/types/activity-instance-type.d.ts +77 -0
- package/dist-client/types/activity-instance-type.js +11 -0
- package/dist-client/types/activity-instance-type.js.map +1 -0
- package/dist-client/types/activity-instance.d.ts +72 -0
- package/dist-client/types/activity-instance.js +36 -0
- package/dist-client/types/activity-instance.js.map +1 -0
- package/dist-client/types/activity-model-type.d.ts +31 -0
- package/dist-client/types/activity-model-type.js +18 -0
- package/dist-client/types/activity-model-type.js.map +1 -0
- package/dist-client/types/activity-search-key-item-type.d.ts +6 -0
- package/dist-client/types/activity-search-key-item-type.js +3 -0
- package/dist-client/types/activity-search-key-item-type.js.map +1 -0
- package/dist-client/types/activity-thread-history.d.ts +28 -0
- package/dist-client/types/activity-thread-history.js +7 -0
- package/dist-client/types/activity-thread-history.js.map +1 -0
- package/dist-client/types/activity-thread-type.d.ts +15 -0
- package/dist-client/types/activity-thread-type.js +7 -0
- package/dist-client/types/activity-thread-type.js.map +1 -0
- package/dist-client/types/activity-thread.d.ts +39 -0
- package/dist-client/types/activity-thread.js +18 -0
- package/dist-client/types/activity-thread.js.map +1 -0
- package/dist-client/types/activity.d.ts +68 -0
- package/dist-client/types/activity.js +40 -0
- package/dist-client/types/activity.js.map +1 -0
- package/dist-client/types/types.d.ts +23 -0
- package/dist-client/types/types.js +42 -0
- package/dist-client/types/types.js.map +1 -0
- package/dist-client/when.d.ts +4 -0
- package/dist-client/when.js +72 -0
- package/dist-client/when.js.map +1 -0
- package/dist-client/work-calendar-sources.d.ts +96 -0
- package/dist-client/work-calendar-sources.js +88 -0
- package/dist-client/work-calendar-sources.js.map +1 -0
- package/dist-server/controllers/activity-approval/_abort.d.ts +5 -0
- package/dist-server/controllers/activity-approval/_abort.js +29 -0
- package/dist-server/controllers/activity-approval/_abort.js.map +1 -0
- package/dist-server/controllers/activity-approval/abort.d.ts +5 -0
- package/dist-server/controllers/activity-approval/abort.js +35 -0
- package/dist-server/controllers/activity-approval/abort.js.map +1 -0
- package/dist-server/controllers/activity-approval/approval-line.d.ts +138 -0
- package/dist-server/controllers/activity-approval/approval-line.js +185 -0
- package/dist-server/controllers/activity-approval/approval-line.js.map +1 -0
- package/dist-server/controllers/activity-approval/approve.d.ts +5 -0
- package/dist-server/controllers/activity-approval/approve.js +142 -0
- package/dist-server/controllers/activity-approval/approve.js.map +1 -0
- package/dist-server/controllers/activity-approval/check-authority.d.ts +8 -0
- package/dist-server/controllers/activity-approval/check-authority.js +29 -0
- package/dist-server/controllers/activity-approval/check-authority.js.map +1 -0
- package/dist-server/controllers/activity-approval/claim.d.ts +42 -0
- package/dist-server/controllers/activity-approval/claim.js +77 -0
- package/dist-server/controllers/activity-approval/claim.js.map +1 -0
- package/dist-server/controllers/activity-approval/create-approval.d.ts +41 -0
- package/dist-server/controllers/activity-approval/create-approval.js +85 -0
- package/dist-server/controllers/activity-approval/create-approval.js.map +1 -0
- package/dist-server/controllers/activity-approval/delegate.d.ts +23 -0
- package/dist-server/controllers/activity-approval/delegate.js +113 -0
- package/dist-server/controllers/activity-approval/delegate.js.map +1 -0
- package/dist-server/controllers/activity-approval/delegation.d.ts +21 -0
- package/dist-server/controllers/activity-approval/delegation.js +17 -0
- package/dist-server/controllers/activity-approval/delegation.js.map +1 -0
- package/dist-server/controllers/activity-approval/opinion.d.ts +10 -0
- package/dist-server/controllers/activity-approval/opinion.js +43 -0
- package/dist-server/controllers/activity-approval/opinion.js.map +1 -0
- package/dist-server/controllers/activity-approval/reject.d.ts +5 -0
- package/dist-server/controllers/activity-approval/reject.js +93 -0
- package/dist-server/controllers/activity-approval/reject.js.map +1 -0
- package/dist-server/controllers/activity-approval/resolve-judgeable-seats.d.ts +21 -0
- package/dist-server/controllers/activity-approval/resolve-judgeable-seats.js +60 -0
- package/dist-server/controllers/activity-approval/resolve-judgeable-seats.js.map +1 -0
- package/dist-server/controllers/activity-approval/save.d.ts +5 -0
- package/dist-server/controllers/activity-approval/save.js +56 -0
- package/dist-server/controllers/activity-approval/save.js.map +1 -0
- package/dist-server/controllers/activity-approval/seat-standing.d.ts +66 -0
- package/dist-server/controllers/activity-approval/seat-standing.js +57 -0
- package/dist-server/controllers/activity-approval/seat-standing.js.map +1 -0
- package/dist-server/controllers/activity-installation/activity-installation-controller.d.ts +79 -0
- package/dist-server/controllers/activity-installation/activity-installation-controller.js +99 -0
- package/dist-server/controllers/activity-installation/activity-installation-controller.js.map +1 -0
- package/dist-server/controllers/activity-installation/call-webhook.d.ts +3 -0
- package/dist-server/controllers/activity-installation/call-webhook.js +42 -0
- package/dist-server/controllers/activity-installation/call-webhook.js.map +1 -0
- package/dist-server/controllers/activity-installation/installable-to-activity.d.ts +77 -0
- package/dist-server/controllers/activity-installation/installable-to-activity.js +68 -0
- package/dist-server/controllers/activity-installation/installable-to-activity.js.map +1 -0
- package/dist-server/controllers/activity-installation/registry-conflict.d.ts +47 -0
- package/dist-server/controllers/activity-installation/registry-conflict.js +47 -0
- package/dist-server/controllers/activity-installation/registry-conflict.js.map +1 -0
- package/dist-server/controllers/activity-instance/abort.d.ts +5 -0
- package/dist-server/controllers/activity-instance/abort.js +62 -0
- package/dist-server/controllers/activity-instance/abort.js.map +1 -0
- package/dist-server/controllers/activity-instance/approval-expectation.d.ts +34 -0
- package/dist-server/controllers/activity-instance/approval-expectation.js +18 -0
- package/dist-server/controllers/activity-instance/approval-expectation.js.map +1 -0
- package/dist-server/controllers/activity-instance/approval-line-input.d.ts +29 -0
- package/dist-server/controllers/activity-instance/approval-line-input.js +44 -0
- package/dist-server/controllers/activity-instance/approval-line-input.js.map +1 -0
- package/dist-server/controllers/activity-instance/assign.d.ts +8 -0
- package/dist-server/controllers/activity-instance/assign.js +152 -0
- package/dist-server/controllers/activity-instance/assign.js.map +1 -0
- package/dist-server/controllers/activity-instance/assignee-input.d.ts +25 -0
- package/dist-server/controllers/activity-instance/assignee-input.js +28 -0
- package/dist-server/controllers/activity-instance/assignee-input.js.map +1 -0
- package/dist-server/controllers/activity-instance/claim-draft.d.ts +17 -0
- package/dist-server/controllers/activity-instance/claim-draft.js +30 -0
- package/dist-server/controllers/activity-instance/claim-draft.js.map +1 -0
- package/dist-server/controllers/activity-instance/discard-draft.d.ts +22 -0
- package/dist-server/controllers/activity-instance/discard-draft.js +54 -0
- package/dist-server/controllers/activity-instance/discard-draft.js.map +1 -0
- package/dist-server/controllers/activity-instance/draft.d.ts +3 -0
- package/dist-server/controllers/activity-instance/draft.js +93 -0
- package/dist-server/controllers/activity-instance/draft.js.map +1 -0
- package/dist-server/controllers/activity-instance/end.d.ts +6 -0
- package/dist-server/controllers/activity-instance/end.js +65 -0
- package/dist-server/controllers/activity-instance/end.js.map +1 -0
- package/dist-server/controllers/activity-instance/entitlement.d.ts +25 -0
- package/dist-server/controllers/activity-instance/entitlement.js +110 -0
- package/dist-server/controllers/activity-instance/entitlement.js.map +1 -0
- package/dist-server/controllers/activity-instance/index.d.ts +6 -0
- package/dist-server/controllers/activity-instance/index.js +10 -0
- package/dist-server/controllers/activity-instance/index.js.map +1 -0
- package/dist-server/controllers/activity-instance/issue.d.ts +3 -0
- package/dist-server/controllers/activity-instance/issue.js +272 -0
- package/dist-server/controllers/activity-instance/issue.js.map +1 -0
- package/dist-server/controllers/activity-instance/pick.d.ts +2 -0
- package/dist-server/controllers/activity-instance/pick.js +112 -0
- package/dist-server/controllers/activity-instance/pick.js.map +1 -0
- package/dist-server/controllers/activity-read/assert-may-read.d.ts +20 -0
- package/dist-server/controllers/activity-read/assert-may-read.js +108 -0
- package/dist-server/controllers/activity-read/assert-may-read.js.map +1 -0
- package/dist-server/controllers/activity-read/participates.d.ts +41 -0
- package/dist-server/controllers/activity-read/participates.js +42 -0
- package/dist-server/controllers/activity-read/participates.js.map +1 -0
- package/dist-server/controllers/activity-thread/_abort.d.ts +5 -0
- package/dist-server/controllers/activity-thread/_abort.js +36 -0
- package/dist-server/controllers/activity-thread/_abort.js.map +1 -0
- package/dist-server/controllers/activity-thread/abort.d.ts +5 -0
- package/dist-server/controllers/activity-thread/abort.js +45 -0
- package/dist-server/controllers/activity-thread/abort.js.map +1 -0
- package/dist-server/controllers/activity-thread/check-authority.d.ts +2 -0
- package/dist-server/controllers/activity-thread/check-authority.js +65 -0
- package/dist-server/controllers/activity-thread/check-authority.js.map +1 -0
- package/dist-server/controllers/activity-thread/delegate.d.ts +7 -0
- package/dist-server/controllers/activity-thread/delegate.js +66 -0
- package/dist-server/controllers/activity-thread/delegate.js.map +1 -0
- package/dist-server/controllers/activity-thread/end.d.ts +6 -0
- package/dist-server/controllers/activity-thread/end.js +44 -0
- package/dist-server/controllers/activity-thread/end.js.map +1 -0
- package/dist-server/controllers/activity-thread/index.d.ts +7 -0
- package/dist-server/controllers/activity-thread/index.js +11 -0
- package/dist-server/controllers/activity-thread/index.js.map +1 -0
- package/dist-server/controllers/activity-thread/restart.d.ts +2 -0
- package/dist-server/controllers/activity-thread/restart.js +63 -0
- package/dist-server/controllers/activity-thread/restart.js.map +1 -0
- package/dist-server/controllers/activity-thread/save.d.ts +3 -0
- package/dist-server/controllers/activity-thread/save.js +45 -0
- package/dist-server/controllers/activity-thread/save.js.map +1 -0
- package/dist-server/controllers/activity-thread/start.d.ts +2 -0
- package/dist-server/controllers/activity-thread/start.js +43 -0
- package/dist-server/controllers/activity-thread/start.js.map +1 -0
- package/dist-server/controllers/activity-thread/submit.d.ts +6 -0
- package/dist-server/controllers/activity-thread/submit.js +90 -0
- package/dist-server/controllers/activity-thread/submit.js.map +1 -0
- package/dist-server/controllers/common.d.ts +34 -0
- package/dist-server/controllers/common.js +346 -0
- package/dist-server/controllers/common.js.map +1 -0
- package/dist-server/controllers/index.d.ts +5 -0
- package/dist-server/controllers/index.js +18 -0
- package/dist-server/controllers/index.js.map +1 -0
- package/dist-server/index.d.ts +6 -0
- package/dist-server/index.js +18 -0
- package/dist-server/index.js.map +1 -0
- package/dist-server/role-tasks.d.ts +2 -0
- package/dist-server/role-tasks.js +16 -0
- package/dist-server/role-tasks.js.map +1 -0
- package/dist-server/routes.d.ts +1 -0
- package/dist-server/routes.js +57 -0
- package/dist-server/routes.js.map +1 -0
- package/dist-server/service/activity/activity-decision-key-item-type.d.ts +206 -0
- package/dist-server/service/activity/activity-decision-key-item-type.js +182 -0
- package/dist-server/service/activity/activity-decision-key-item-type.js.map +1 -0
- package/dist-server/service/activity/activity-history.d.ts +44 -0
- package/dist-server/service/activity/activity-history.js +220 -0
- package/dist-server/service/activity/activity-history.js.map +1 -0
- package/dist-server/service/activity/activity-model-type.d.ts +49 -0
- package/dist-server/service/activity/activity-model-type.js +138 -0
- package/dist-server/service/activity/activity-model-type.js.map +1 -0
- package/dist-server/service/activity/activity-mutation.d.ts +12 -0
- package/dist-server/service/activity/activity-mutation.js +416 -0
- package/dist-server/service/activity/activity-mutation.js.map +1 -0
- package/dist-server/service/activity/activity-query.d.ts +24 -0
- package/dist-server/service/activity/activity-query.js +310 -0
- package/dist-server/service/activity/activity-query.js.map +1 -0
- 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 +28 -0
- package/dist-server/service/activity/activity-search-key-item-type.js.map +1 -0
- package/dist-server/service/activity/activity-type.d.ts +84 -0
- package/dist-server/service/activity/activity-type.js +269 -0
- package/dist-server/service/activity/activity-type.js.map +1 -0
- package/dist-server/service/activity/activity.d.ts +135 -0
- package/dist-server/service/activity/activity.js +328 -0
- package/dist-server/service/activity/activity.js.map +1 -0
- package/dist-server/service/activity/approval-line-seats.d.ts +12 -0
- package/dist-server/service/activity/approval-line-seats.js +68 -0
- package/dist-server/service/activity/approval-line-seats.js.map +1 -0
- package/dist-server/service/activity/credential-field.d.ts +35 -0
- package/dist-server/service/activity/credential-field.js +89 -0
- package/dist-server/service/activity/credential-field.js.map +1 -0
- package/dist-server/service/activity/decision-key-declaration.d.ts +106 -0
- package/dist-server/service/activity/decision-key-declaration.js +181 -0
- package/dist-server/service/activity/decision-key-declaration.js.map +1 -0
- package/dist-server/service/activity/declaration-guard-subscriber.d.ts +24 -0
- package/dist-server/service/activity/declaration-guard-subscriber.js +46 -0
- package/dist-server/service/activity/declaration-guard-subscriber.js.map +1 -0
- package/dist-server/service/activity/event-subscriber.d.ts +7 -0
- package/dist-server/service/activity/event-subscriber.js +21 -0
- package/dist-server/service/activity/event-subscriber.js.map +1 -0
- package/dist-server/service/activity/freeze-decision-sentences-for.d.ts +11 -0
- package/dist-server/service/activity/freeze-decision-sentences-for.js +18 -0
- package/dist-server/service/activity/freeze-decision-sentences-for.js.map +1 -0
- package/dist-server/service/activity/index.d.ts +9 -0
- package/dist-server/service/activity/index.js +13 -0
- package/dist-server/service/activity/index.js.map +1 -0
- package/dist-server/service/activity/search-key-declaration.d.ts +38 -0
- package/dist-server/service/activity/search-key-declaration.js +49 -0
- package/dist-server/service/activity/search-key-declaration.js.map +1 -0
- package/dist-server/service/activity-approval/activity-approval-mutation.d.ts +8 -0
- package/dist-server/service/activity-approval/activity-approval-mutation.js +81 -0
- package/dist-server/service/activity-approval/activity-approval-mutation.js.map +1 -0
- package/dist-server/service/activity-approval/activity-approval-query.d.ts +42 -0
- package/dist-server/service/activity-approval/activity-approval-query.js +391 -0
- package/dist-server/service/activity-approval/activity-approval-query.js.map +1 -0
- package/dist-server/service/activity-approval/activity-approval-subscription.d.ts +6 -0
- package/dist-server/service/activity-approval/activity-approval-subscription.js +39 -0
- package/dist-server/service/activity-approval/activity-approval-subscription.js.map +1 -0
- package/dist-server/service/activity-approval/activity-approval-type.d.ts +10 -0
- package/dist-server/service/activity-approval/activity-approval-type.js +39 -0
- package/dist-server/service/activity-approval/activity-approval-type.js.map +1 -0
- package/dist-server/service/activity-approval/activity-approval.d.ts +67 -0
- package/dist-server/service/activity-approval/activity-approval.js +183 -0
- package/dist-server/service/activity-approval/activity-approval.js.map +1 -0
- package/dist-server/service/activity-approval/event-subscriber.d.ts +7 -0
- package/dist-server/service/activity-approval/event-subscriber.js +46 -0
- package/dist-server/service/activity-approval/event-subscriber.js.map +1 -0
- package/dist-server/service/activity-approval/index.d.ts +8 -0
- package/dist-server/service/activity-approval/index.js +12 -0
- package/dist-server/service/activity-approval/index.js.map +1 -0
- package/dist-server/service/activity-approval/my-pending-approvals.d.ts +33 -0
- package/dist-server/service/activity-approval/my-pending-approvals.js +52 -0
- package/dist-server/service/activity-approval/my-pending-approvals.js.map +1 -0
- package/dist-server/service/activity-instance/activity-instance-history.d.ts +60 -0
- package/dist-server/service/activity-instance/activity-instance-history.js +294 -0
- package/dist-server/service/activity-instance/activity-instance-history.js.map +1 -0
- package/dist-server/service/activity-instance/activity-instance-mutation.d.ts +16 -0
- package/dist-server/service/activity-instance/activity-instance-mutation.js +185 -0
- package/dist-server/service/activity-instance/activity-instance-mutation.js.map +1 -0
- package/dist-server/service/activity-instance/activity-instance-query.d.ts +27 -0
- package/dist-server/service/activity-instance/activity-instance-query.js +386 -0
- package/dist-server/service/activity-instance/activity-instance-query.js.map +1 -0
- package/dist-server/service/activity-instance/activity-instance-subscription.d.ts +6 -0
- package/dist-server/service/activity-instance/activity-instance-subscription.js +39 -0
- package/dist-server/service/activity-instance/activity-instance-subscription.js.map +1 -0
- package/dist-server/service/activity-instance/activity-instance-type.d.ts +107 -0
- package/dist-server/service/activity-instance/activity-instance-type.js +301 -0
- package/dist-server/service/activity-instance/activity-instance-type.js.map +1 -0
- package/dist-server/service/activity-instance/activity-instance.d.ts +81 -0
- package/dist-server/service/activity-instance/activity-instance.js +324 -0
- package/dist-server/service/activity-instance/activity-instance.js.map +1 -0
- package/dist-server/service/activity-instance/assignee-pool.d.ts +59 -0
- package/dist-server/service/activity-instance/assignee-pool.js +99 -0
- package/dist-server/service/activity-instance/assignee-pool.js.map +1 -0
- package/dist-server/service/activity-instance/draft-list-states.d.ts +39 -0
- package/dist-server/service/activity-instance/draft-list-states.js +51 -0
- package/dist-server/service/activity-instance/draft-list-states.js.map +1 -0
- package/dist-server/service/activity-instance/event-subscriber.d.ts +21 -0
- package/dist-server/service/activity-instance/event-subscriber.js +59 -0
- package/dist-server/service/activity-instance/event-subscriber.js.map +1 -0
- package/dist-server/service/activity-instance/index.d.ts +9 -0
- package/dist-server/service/activity-instance/index.js +13 -0
- package/dist-server/service/activity-instance/index.js.map +1 -0
- package/dist-server/service/activity-instance/request-box.d.ts +2 -0
- package/dist-server/service/activity-instance/request-box.js +18 -0
- package/dist-server/service/activity-instance/request-box.js.map +1 -0
- package/dist-server/service/activity-stats/activity-stats-query.d.ts +9 -0
- package/dist-server/service/activity-stats/activity-stats-query.js +230 -0
- package/dist-server/service/activity-stats/activity-stats-query.js.map +1 -0
- package/dist-server/service/activity-stats/activity-stats-type.d.ts +27 -0
- package/dist-server/service/activity-stats/activity-stats-type.js +74 -0
- package/dist-server/service/activity-stats/activity-stats-type.js.map +1 -0
- package/dist-server/service/activity-stats/event-placement.d.ts +55 -0
- package/dist-server/service/activity-stats/event-placement.js +82 -0
- package/dist-server/service/activity-stats/event-placement.js.map +1 -0
- package/dist-server/service/activity-stats/index.d.ts +2 -0
- package/dist-server/service/activity-stats/index.js +6 -0
- package/dist-server/service/activity-stats/index.js.map +1 -0
- package/dist-server/service/activity-summary/activity-summary-query.d.ts +8 -0
- package/dist-server/service/activity-summary/activity-summary-query.js +137 -0
- package/dist-server/service/activity-summary/activity-summary-query.js.map +1 -0
- package/dist-server/service/activity-summary/activity-summary.d.ts +6 -0
- package/dist-server/service/activity-summary/activity-summary.js +28 -0
- package/dist-server/service/activity-summary/activity-summary.js.map +1 -0
- package/dist-server/service/activity-summary/index.d.ts +5 -0
- package/dist-server/service/activity-summary/index.js +9 -0
- package/dist-server/service/activity-summary/index.js.map +1 -0
- package/dist-server/service/activity-summary/open-work.d.ts +4 -0
- package/dist-server/service/activity-summary/open-work.js +51 -0
- package/dist-server/service/activity-summary/open-work.js.map +1 -0
- package/dist-server/service/activity-summary/person-open-work.d.ts +17 -0
- package/dist-server/service/activity-summary/person-open-work.js +68 -0
- package/dist-server/service/activity-summary/person-open-work.js.map +1 -0
- package/dist-server/service/activity-template/activity-template-history.d.ts +32 -0
- package/dist-server/service/activity-template/activity-template-history.js +165 -0
- package/dist-server/service/activity-template/activity-template-history.js.map +1 -0
- package/dist-server/service/activity-template/activity-template-mutation.d.ts +10 -0
- package/dist-server/service/activity-template/activity-template-mutation.js +194 -0
- package/dist-server/service/activity-template/activity-template-mutation.js.map +1 -0
- package/dist-server/service/activity-template/activity-template-query.d.ts +14 -0
- package/dist-server/service/activity-template/activity-template-query.js +112 -0
- package/dist-server/service/activity-template/activity-template-query.js.map +1 -0
- package/dist-server/service/activity-template/activity-template-type.d.ts +44 -0
- package/dist-server/service/activity-template/activity-template-type.js +164 -0
- package/dist-server/service/activity-template/activity-template-type.js.map +1 -0
- package/dist-server/service/activity-template/activity-template.d.ts +36 -0
- package/dist-server/service/activity-template/activity-template.js +154 -0
- package/dist-server/service/activity-template/activity-template.js.map +1 -0
- package/dist-server/service/activity-template/event-subscriber.d.ts +7 -0
- package/dist-server/service/activity-template/event-subscriber.js +21 -0
- package/dist-server/service/activity-template/event-subscriber.js.map +1 -0
- package/dist-server/service/activity-template/index.d.ts +8 -0
- package/dist-server/service/activity-template/index.js +12 -0
- package/dist-server/service/activity-template/index.js.map +1 -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 +69 -0
- package/dist-server/service/activity-thread/activity-thread-history-query.js.map +1 -0
- package/dist-server/service/activity-thread/activity-thread-history.d.ts +39 -0
- package/dist-server/service/activity-thread/activity-thread-history.js +211 -0
- package/dist-server/service/activity-thread/activity-thread-history.js.map +1 -0
- package/dist-server/service/activity-thread/activity-thread-mutation.d.ts +20 -0
- package/dist-server/service/activity-thread/activity-thread-mutation.js +115 -0
- package/dist-server/service/activity-thread/activity-thread-mutation.js.map +1 -0
- package/dist-server/service/activity-thread/activity-thread-query.d.ts +24 -0
- package/dist-server/service/activity-thread/activity-thread-query.js +276 -0
- package/dist-server/service/activity-thread/activity-thread-query.js.map +1 -0
- package/dist-server/service/activity-thread/activity-thread-subscription.d.ts +6 -0
- package/dist-server/service/activity-thread/activity-thread-subscription.js +38 -0
- package/dist-server/service/activity-thread/activity-thread-subscription.js.map +1 -0
- package/dist-server/service/activity-thread/activity-thread-type.d.ts +15 -0
- package/dist-server/service/activity-thread/activity-thread-type.js +50 -0
- package/dist-server/service/activity-thread/activity-thread-type.js.map +1 -0
- package/dist-server/service/activity-thread/activity-thread.d.ts +47 -0
- package/dist-server/service/activity-thread/activity-thread.js +197 -0
- package/dist-server/service/activity-thread/activity-thread.js.map +1 -0
- package/dist-server/service/activity-thread/event-subscriber.d.ts +13 -0
- package/dist-server/service/activity-thread/event-subscriber.js +45 -0
- package/dist-server/service/activity-thread/event-subscriber.js.map +1 -0
- package/dist-server/service/activity-thread/index.d.ts +10 -0
- package/dist-server/service/activity-thread/index.js +14 -0
- package/dist-server/service/activity-thread/index.js.map +1 -0
- package/dist-server/service/activity-thread/my-open-threads.d.ts +33 -0
- package/dist-server/service/activity-thread/my-open-threads.js +85 -0
- package/dist-server/service/activity-thread/my-open-threads.js.map +1 -0
- package/dist-server/service/activity-thread/todo-order.d.ts +49 -0
- package/dist-server/service/activity-thread/todo-order.js +70 -0
- package/dist-server/service/activity-thread/todo-order.js.map +1 -0
- package/dist-server/service/approval-notice/approval-notice-rules.d.ts +67 -0
- package/dist-server/service/approval-notice/approval-notice-rules.js +67 -0
- package/dist-server/service/approval-notice/approval-notice-rules.js.map +1 -0
- package/dist-server/service/approval-notice/approval-notice.d.ts +11 -0
- package/dist-server/service/approval-notice/approval-notice.js +76 -0
- package/dist-server/service/approval-notice/approval-notice.js.map +1 -0
- package/dist-server/service/approval-progress/approval-progress-query.d.ts +14 -0
- package/dist-server/service/approval-progress/approval-progress-query.js +142 -0
- package/dist-server/service/approval-progress/approval-progress-query.js.map +1 -0
- package/dist-server/service/approval-progress/approval-progress-rule.d.ts +67 -0
- package/dist-server/service/approval-progress/approval-progress-rule.js +102 -0
- package/dist-server/service/approval-progress/approval-progress-rule.js.map +1 -0
- package/dist-server/service/approval-progress/approval-progress-type.d.ts +44 -0
- package/dist-server/service/approval-progress/approval-progress-type.js +172 -0
- package/dist-server/service/approval-progress/approval-progress-type.js.map +1 -0
- package/dist-server/service/approval-progress/index.d.ts +2 -0
- package/dist-server/service/approval-progress/index.js +6 -0
- package/dist-server/service/approval-progress/index.js.map +1 -0
- package/dist-server/service/approval-progress/waiting-on.d.ts +15 -0
- package/dist-server/service/approval-progress/waiting-on.js +40 -0
- package/dist-server/service/approval-progress/waiting-on.js.map +1 -0
- package/dist-server/service/index.d.ts +24 -0
- package/dist-server/service/index.js +80 -0
- package/dist-server/service/index.js.map +1 -0
- package/dist-server/service/installable-activity/activity-readiness.d.ts +58 -0
- package/dist-server/service/installable-activity/activity-readiness.js +105 -0
- package/dist-server/service/installable-activity/activity-readiness.js.map +1 -0
- package/dist-server/service/installable-activity/index.d.ts +6 -0
- package/dist-server/service/installable-activity/index.js +10 -0
- package/dist-server/service/installable-activity/index.js.map +1 -0
- package/dist-server/service/installable-activity/installable-activity-mutation.d.ts +11 -0
- package/dist-server/service/installable-activity/installable-activity-mutation.js +83 -0
- package/dist-server/service/installable-activity/installable-activity-mutation.js.map +1 -0
- package/dist-server/service/installable-activity/installable-activity-query.d.ts +22 -0
- package/dist-server/service/installable-activity/installable-activity-query.js +127 -0
- package/dist-server/service/installable-activity/installable-activity-query.js.map +1 -0
- package/dist-server/service/installable-activity/installable-activity-type.d.ts +5 -0
- package/dist-server/service/installable-activity/installable-activity-type.js +21 -0
- package/dist-server/service/installable-activity/installable-activity-type.js.map +1 -0
- package/dist-server/service/installable-activity/installable-activity.d.ts +92 -0
- package/dist-server/service/installable-activity/installable-activity.js +140 -0
- package/dist-server/service/installable-activity/installable-activity.js.map +1 -0
- package/dist-server/service/nulls-last.d.ts +30 -0
- package/dist-server/service/nulls-last.js +37 -0
- package/dist-server/service/nulls-last.js.map +1 -0
- package/dist-server/service/subscription/roles-of.d.ts +9 -0
- package/dist-server/service/subscription/roles-of.js +17 -0
- package/dist-server/service/subscription/roles-of.js.map +1 -0
- package/dist-server/service/subscription/subscription-filters.d.ts +47 -0
- package/dist-server/service/subscription/subscription-filters.js +57 -0
- package/dist-server/service/subscription/subscription-filters.js.map +1 -0
- package/dist-server/service/work-door/activity-lookup.d.ts +70 -0
- package/dist-server/service/work-door/activity-lookup.js +110 -0
- package/dist-server/service/work-door/activity-lookup.js.map +1 -0
- package/dist-server/service/work-door/approval-line-standing.d.ts +106 -0
- package/dist-server/service/work-door/approval-line-standing.js +65 -0
- package/dist-server/service/work-door/approval-line-standing.js.map +1 -0
- package/dist-server/service/work-door/index.d.ts +15 -0
- package/dist-server/service/work-door/index.js +20 -0
- package/dist-server/service/work-door/index.js.map +1 -0
- package/dist-server/service/work-door/pass-work-door.d.ts +74 -0
- package/dist-server/service/work-door/pass-work-door.js +45 -0
- package/dist-server/service/work-door/pass-work-door.js.map +1 -0
- package/dist-server/service/work-door/work-door-declaration.d.ts +135 -0
- package/dist-server/service/work-door/work-door-declaration.js +87 -0
- package/dist-server/service/work-door/work-door-declaration.js.map +1 -0
- package/dist-server/service/work-door/work-door-event.d.ts +20 -0
- package/dist-server/service/work-door/work-door-event.js +25 -0
- package/dist-server/service/work-door/work-door-event.js.map +1 -0
- package/dist-server/service/work-door/work-door-journal-service.d.ts +47 -0
- package/dist-server/service/work-door/work-door-journal-service.js +75 -0
- package/dist-server/service/work-door/work-door-journal-service.js.map +1 -0
- package/dist-server/service/work-door/work-door-journal.d.ts +30 -0
- package/dist-server/service/work-door/work-door-journal.js +94 -0
- package/dist-server/service/work-door/work-door-journal.js.map +1 -0
- package/dist-server/service/work-door/work-door-not-used.d.ts +39 -0
- package/dist-server/service/work-door/work-door-not-used.js +86 -0
- package/dist-server/service/work-door/work-door-not-used.js.map +1 -0
- package/dist-server/service/work-door/work-door-resolver.d.ts +32 -0
- package/dist-server/service/work-door/work-door-resolver.js +152 -0
- package/dist-server/service/work-door/work-door-resolver.js.map +1 -0
- package/dist-server/service/work-door/work-door-service.d.ts +36 -0
- package/dist-server/service/work-door/work-door-service.js +127 -0
- package/dist-server/service/work-door/work-door-service.js.map +1 -0
- package/dist-server/service/work-door/work-door-type.d.ts +88 -0
- package/dist-server/service/work-door/work-door-type.js +206 -0
- package/dist-server/service/work-door/work-door-type.js.map +1 -0
- package/dist-server/service/work-door/work-door.d.ts +187 -0
- package/dist-server/service/work-door/work-door.js +119 -0
- package/dist-server/service/work-door/work-door.js.map +1 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/package.json +10 -10
- package/shared/approval-step.d.ts +21 -0
- package/shared/approval-step.js +55 -0
- package/tests/approval-progress-db.test.ts +143 -0
- package/things-factory.config.js +1 -0
- package/translations/en.json +20 -1
- package/translations/es.json +20 -1
- package/translations/ja.json +20 -1
- package/translations/ko.json +20 -1
- package/translations/ms.json +20 -1
- package/translations/zh.json +20 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import './routes.js';
|
|
2
|
+
export * from './controllers/index.js';
|
|
3
|
+
export * from './service/index.js';
|
|
4
|
+
export { freezeDecisionSentences, DecisionSentenceMissing } from '../shared/decision-sentences.js';
|
|
5
|
+
export { freezeDecisionSentencesFor } from './service/activity/freeze-decision-sentences-for.js';
|
|
6
|
+
export type { DecisionSentenceKey, Translate as DecisionSentenceTranslate } from '../shared/decision-sentences.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.freezeDecisionSentencesFor = exports.DecisionSentenceMissing = exports.freezeDecisionSentences = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
require("./routes.js");
|
|
6
|
+
tslib_1.__exportStar(require("./controllers/index.js"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./service/index.js"), exports);
|
|
8
|
+
/* Freezing an approval's value sentences — the same reading of the input the decision screen uses. */
|
|
9
|
+
var decision_sentences_js_1 = require("../shared/decision-sentences.js");
|
|
10
|
+
Object.defineProperty(exports, "freezeDecisionSentences", { enumerable: true, get: function () { return decision_sentences_js_1.freezeDecisionSentences; } });
|
|
11
|
+
Object.defineProperty(exports, "DecisionSentenceMissing", { enumerable: true, get: function () { return decision_sentences_js_1.DecisionSentenceMissing; } });
|
|
12
|
+
var freeze_decision_sentences_for_js_1 = require("./service/activity/freeze-decision-sentences-for.js");
|
|
13
|
+
Object.defineProperty(exports, "freezeDecisionSentencesFor", { enumerable: true, get: function () { return freeze_decision_sentences_for_js_1.freezeDecisionSentencesFor; } });
|
|
14
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
15
|
+
const role_tasks_js_1 = require("./role-tasks.js");
|
|
16
|
+
for (const task of role_tasks_js_1.ROLE_TASKS)
|
|
17
|
+
(0, auth_base_1.registerRoleTask)(task);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;;AAAA,uBAAoB;AAEpB,iEAAsC;AACtC,6DAAkC;AAElC,sGAAsG;AACtG,yEAAkG;AAAzF,gIAAA,uBAAuB,OAAA;AAAE,gIAAA,uBAAuB,OAAA;AACzD,wGAAgG;AAAvF,8IAAA,0BAA0B,OAAA;AAGnC,yDAA4D;AAC5D,mDAA4C;AAE5C,KAAK,MAAM,IAAI,IAAI,0BAAU;IAAE,IAAA,4BAAgB,EAAC,IAAI,CAAC,CAAA","sourcesContent":["import './routes.js'\n\nexport * from './controllers/index.js'\nexport * from './service/index.js'\n\n/* Freezing an approval's value sentences — the same reading of the input the decision screen uses. */\nexport { freezeDecisionSentences, DecisionSentenceMissing } from '../shared/decision-sentences.js'\nexport { freezeDecisionSentencesFor } from './service/activity/freeze-decision-sentences-for.js'\nexport type { DecisionSentenceKey, Translate as DecisionSentenceTranslate } from '../shared/decision-sentences.js'\n\nimport { registerRoleTask } from '@things-factory/auth-base'\nimport { ROLE_TASKS } from './role-tasks.js'\n\nfor (const task of ROLE_TASKS) registerRoleTask(task)\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* The work this module names, for the seats applications build (ADR-0139 decision 11).
|
|
4
|
+
*
|
|
5
|
+
* A task holds whole privileges: each opens everything its doors open, and the words under `task.<id>` in this
|
|
6
|
+
* module's translations say what that is. Seats are put together by applications (`RoleTemplate.tasks`).
|
|
7
|
+
*
|
|
8
|
+
* Data only - `server/index.ts` registers it - so an application's tests read it without starting the framework.
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.ROLE_TASKS = void 0;
|
|
12
|
+
exports.ROLE_TASKS = [
|
|
13
|
+
{ id: 'worklist.submit-approvals', grants: [{ category: 'activity', axes: ['query'] }, { category: 'activity-instance', axes: ['mutation'] }] },
|
|
14
|
+
{ id: 'worklist.all-cases-reading', grants: [{ category: 'activity-instance', axes: ['query'] }] }
|
|
15
|
+
];
|
|
16
|
+
//# sourceMappingURL=role-tasks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-tasks.js","sourceRoot":"","sources":["../server/role-tasks.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAIU,QAAA,UAAU,GAAe;IACpC,EAAE,EAAE,EAAE,2BAA2B,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE;IAC/I,EAAE,EAAE,EAAE,4BAA4B,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE;CACnG,CAAA","sourcesContent":["/*\n * The work this module names, for the seats applications build (ADR-0139 decision 11).\n *\n * A task holds whole privileges: each opens everything its doors open, and the words under `task.<id>` in this\n * module's translations say what that is. Seats are put together by applications (`RoleTemplate.tasks`).\n *\n * Data only - `server/index.ts` registers it - so an application's tests read it without starting the framework.\n */\n\nimport type { RoleTask } from '@things-factory/auth-base'\n\nexport const ROLE_TASKS: RoleTask[] = [\n { id: 'worklist.submit-approvals', grants: [{ category: 'activity', axes: ['query'] }, { category: 'activity-instance', axes: ['mutation'] }] },\n { id: 'worklist.all-cases-reading', grants: [{ category: 'activity-instance', axes: ['query'] }] }\n]\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const shell_1 = require("@things-factory/shell");
|
|
4
|
+
const issue_js_1 = require("./controllers/activity-instance/issue.js");
|
|
5
|
+
process.on('bootstrap-module-global-public-route', (app, globalPublicRouter) => {
|
|
6
|
+
/*
|
|
7
|
+
* can add global public routes to application (auth not required, tenancy not required)
|
|
8
|
+
*
|
|
9
|
+
* ex) routes.get('/path', async(context, next) => {})
|
|
10
|
+
* ex) routes.post('/path', async(context, next) => {})
|
|
11
|
+
*/
|
|
12
|
+
/* When a callback occurs from the scheduler when a scheduled dataset is on schedule, data collection task for the dataset should be issued. */
|
|
13
|
+
globalPublicRouter.post('/callback-schedule-for-activity', async (context, next) => {
|
|
14
|
+
const { client } = context.request.body;
|
|
15
|
+
if (!client || typeof client !== 'object') {
|
|
16
|
+
throw new Error('client property should be a part of callback body.');
|
|
17
|
+
}
|
|
18
|
+
const { group: domainId, key: activityId } = client;
|
|
19
|
+
if (!domainId || !activityId) {
|
|
20
|
+
throw new Error(`group(${domainId}) and key(${activityId}) properties should not be empty`);
|
|
21
|
+
}
|
|
22
|
+
if (!domainId || !activityId) {
|
|
23
|
+
throw new Error(`domainId(${domainId}) and activityId(${activityId}) properties should not be empty`);
|
|
24
|
+
}
|
|
25
|
+
await (0, shell_1.getDataSource)().transaction(async (tx) => {
|
|
26
|
+
const domain = await tx.getRepository(shell_1.Domain).findOneBy({ id: domainId });
|
|
27
|
+
if (!domain) {
|
|
28
|
+
throw new Error(`domain(${domainId}) not found`);
|
|
29
|
+
}
|
|
30
|
+
context.state = {
|
|
31
|
+
...context.state,
|
|
32
|
+
domain,
|
|
33
|
+
tx
|
|
34
|
+
};
|
|
35
|
+
await (0, issue_js_1.issue)({
|
|
36
|
+
activityId
|
|
37
|
+
}, context);
|
|
38
|
+
});
|
|
39
|
+
context.status = 200;
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
process.on('bootstrap-module-global-private-route', (app, globalPrivateRouter) => {
|
|
43
|
+
/*
|
|
44
|
+
* can add global private routes to application (auth required, tenancy not required)
|
|
45
|
+
*/
|
|
46
|
+
});
|
|
47
|
+
process.on('bootstrap-module-domain-public-route', (app, domainPublicRouter) => {
|
|
48
|
+
/*
|
|
49
|
+
* can add domain public routes to application (auth not required, tenancy required)
|
|
50
|
+
*/
|
|
51
|
+
});
|
|
52
|
+
process.on('bootstrap-module-domain-private-route', (app, domainPrivateRouter) => {
|
|
53
|
+
/*
|
|
54
|
+
* can add domain private routes to application (auth required, tenancy required)
|
|
55
|
+
*/
|
|
56
|
+
});
|
|
57
|
+
//# sourceMappingURL=routes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../server/routes.ts"],"names":[],"mappings":";;AAAA,iDAA6D;AAE7D,uEAAgE;AAEhE,OAAO,CAAC,EAAE,CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE;IACpF;;;;;OAKG;IAEH,+IAA+I;IAC/I,kBAAkB,CAAC,IAAI,CAAC,iCAAiC,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;QACjF,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,IAA+B,CAAA;QAElE,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC1C,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAA;QACvE,CAAC;QAED,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,MAAM,CAAA;QAEnD,IAAI,CAAC,QAAQ,IAAI,CAAC,UAAU,EAAE,CAAC;YAC7B,MAAM,IAAI,KAAK,CAAC,SAAS,QAAQ,aAAa,UAAU,kCAAkC,CAAC,CAAA;QAC7F,CAAC;QAED,IAAI,CAAC,QAAQ,IAAI,CAAC,UAAU,EAAE,CAAC;YAC7B,MAAM,IAAI,KAAK,CAAC,YAAY,QAAQ,oBAAoB,UAAU,kCAAkC,CAAC,CAAA;QACvG,CAAC;QAED,MAAM,IAAA,qBAAa,GAAE,CAAC,WAAW,CAAC,KAAK,EAAC,EAAE,EAAC,EAAE;YAC3C,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,aAAa,CAAC,cAAM,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAA;YAEzE,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,MAAM,IAAI,KAAK,CAAC,UAAU,QAAQ,aAAa,CAAC,CAAA;YAClD,CAAC;YAED,OAAO,CAAC,KAAK,GAAG;gBACd,GAAG,OAAO,CAAC,KAAK;gBAChB,MAAM;gBACN,EAAE;aACH,CAAA;YAED,MAAM,IAAA,gBAAK,EACT;gBACE,UAAU;aACX,EACD,OAAO,CACR,CAAA;QACH,CAAC,CAAC,CAAA;QAEF,OAAO,CAAC,MAAM,GAAG,GAAG,CAAA;IACtB,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,uCAA8C,EAAE,CAAC,GAAG,EAAE,mBAAmB,EAAE,EAAE;IACtF;;OAEG;AACL,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE;IACpF;;OAEG;AACL,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,uCAA8C,EAAE,CAAC,GAAG,EAAE,mBAAmB,EAAE,EAAE;IACtF;;OAEG;AACL,CAAC,CAAC,CAAA","sourcesContent":["import { Domain, getDataSource } from '@things-factory/shell'\nimport { ScheduleRegisterRequest } from '@things-factory/scheduler-client'\nimport { issue } from './controllers/activity-instance/issue.js'\n\nprocess.on('bootstrap-module-global-public-route' as any, (app, globalPublicRouter) => {\n /*\n * can add global public routes to application (auth not required, tenancy not required)\n *\n * ex) routes.get('/path', async(context, next) => {})\n * ex) routes.post('/path', async(context, next) => {})\n */\n\n /* When a callback occurs from the scheduler when a scheduled dataset is on schedule, data collection task for the dataset should be issued. */\n globalPublicRouter.post('/callback-schedule-for-activity', async (context, next) => {\n const { client } = context.request.body as ScheduleRegisterRequest\n\n if (!client || typeof client !== 'object') {\n throw new Error('client property should be a part of callback body.')\n }\n\n const { group: domainId, key: activityId } = client\n\n if (!domainId || !activityId) {\n throw new Error(`group(${domainId}) and key(${activityId}) properties should not be empty`)\n }\n\n if (!domainId || !activityId) {\n throw new Error(`domainId(${domainId}) and activityId(${activityId}) properties should not be empty`)\n }\n\n await getDataSource().transaction(async tx => {\n const domain = await tx.getRepository(Domain).findOneBy({ id: domainId })\n\n if (!domain) {\n throw new Error(`domain(${domainId}) not found`)\n }\n\n context.state = {\n ...context.state,\n domain,\n tx\n }\n\n await issue(\n {\n activityId\n },\n context\n )\n })\n\n context.status = 200\n })\n})\n\nprocess.on('bootstrap-module-global-private-route' as any, (app, globalPrivateRouter) => {\n /*\n * can add global private routes to application (auth required, tenancy not required)\n */\n})\n\nprocess.on('bootstrap-module-domain-public-route' as any, (app, domainPublicRouter) => {\n /*\n * can add domain public routes to application (auth not required, tenancy required)\n */\n})\n\nprocess.on('bootstrap-module-domain-private-route' as any, (app, domainPrivateRouter) => {\n /*\n * can add domain private routes to application (auth required, tenancy required)\n */\n})\n"]}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The part an input value plays on the approval screen.
|
|
3
|
+
*
|
|
4
|
+
* ── The shape of the set: three tenses, and five others ───────────────────
|
|
5
|
+
* Three of the eight say something about the subject at a point in time, and the other five do not:
|
|
6
|
+
*
|
|
7
|
+
* past evidence what the decision was made from (may repeat)
|
|
8
|
+
* present currentState how things stand right now
|
|
9
|
+
* future consequence what approving would change (may repeat)
|
|
10
|
+
*
|
|
11
|
+
* subject what this is about
|
|
12
|
+
* reason what a person wrote
|
|
13
|
+
* headline one sentence built from the values
|
|
14
|
+
* reversibility whether approving can be undone
|
|
15
|
+
*
|
|
16
|
+
* Every mis-slotting found so far was the same mistake in that column: currentState under
|
|
17
|
+
* consequence read the present as the future, and evidence under currentState read the past as the
|
|
18
|
+
* present. So when a ninth role is asked for, the first question is whether the value is the
|
|
19
|
+
* subject's past, present or future — if it is, one of those three already holds it. If it is not,
|
|
20
|
+
* whoever asks should be able to say what it is instead. (2026-09-10, architect's ruling)
|
|
21
|
+
*
|
|
22
|
+
* ── Why the keys and the values are spelled the same ──────────────────────
|
|
23
|
+
* type-graphql publishes an enum by its **keys** when the field names the enum type, and by its
|
|
24
|
+
* **values** when the field leaves the type off. One word in a @Field decorator therefore decides
|
|
25
|
+
* what a client receives, and a schema-improving edit far away can flip it. That has already cost
|
|
26
|
+
* this repository twice: ApprovalLineItem.participation arrives as `Reference` and was compared
|
|
27
|
+
* against `reference`, false every time; the catalog page read `NotWorklist` where its selector,
|
|
28
|
+
* i18n key and stage list all said `notworklist`.
|
|
29
|
+
*
|
|
30
|
+
* Writing each key as its own value takes the choice away — either spelling produces the same
|
|
31
|
+
* string. ActivityModelItemInoutType and ActivityModelItemType are written the same way.
|
|
32
|
+
*
|
|
33
|
+
* ── The set is closed, and widening it is the architect's call ────────────
|
|
34
|
+
* Left open as a free string, a convention becomes suffix-appending: every lane invents its own
|
|
35
|
+
* word for the same slot and the screen ends up switching on a dozen spellings, printing the
|
|
36
|
+
* unmatched ones. Adding a role here is an architecture decision, not a lane's. (2026-09-09,
|
|
37
|
+
* architect's ruling)
|
|
38
|
+
*/
|
|
39
|
+
export declare enum ActivityDecisionRole {
|
|
40
|
+
/** One sentence built from the values: 「폐기 30 EA」, 「3에서 1로 올림」. */
|
|
41
|
+
headline = "headline",
|
|
42
|
+
/** What the decision is about — one identifier. */
|
|
43
|
+
subject = "subject",
|
|
44
|
+
/** What the person who raised it wrote. Absent, the screen says so rather than leaving a gap. */
|
|
45
|
+
reason = "reason",
|
|
46
|
+
/**
|
|
47
|
+
* What changes on approval: 「주문 넷이 뒤로 밀린다」. The only role that may appear more than once.
|
|
48
|
+
*
|
|
49
|
+
* Named consequence rather than effect because TwinCommand.effect already means the opposite in
|
|
50
|
+
* time: { status, at, seen }, what the source reported back after the command was dispatched.
|
|
51
|
+
* That one is an observation and past; this one is a prediction and future. Using a real term for
|
|
52
|
+
* the wrong meaning is worse than coining one, and plant already writes .consequence for exactly
|
|
53
|
+
* this sense in its stop-reason dialog. (2026-09-10, architect's ruling)
|
|
54
|
+
*/
|
|
55
|
+
consequence = "consequence",
|
|
56
|
+
/**
|
|
57
|
+
* What is measured to be true right now — about the world, not about the request.
|
|
58
|
+
*
|
|
59
|
+
* The other roles all describe what is being asked for. This one does not, and putting it under
|
|
60
|
+
* consequence made the screen say the opposite of the truth: the twin's current readings would
|
|
61
|
+
* have read as things the approval causes.
|
|
62
|
+
*
|
|
63
|
+
* Not named observed: ops-contract already has observedBy for which observation backs a declared
|
|
64
|
+
* property, and TwinCommand.effect is an observation too, so observed would sit in the most
|
|
65
|
+
* confusable spot between them. (2026-09-10, architect's ruling) plant never needed it because the subject's present state
|
|
66
|
+
* went into the headline (「폐기 30 EA」); the twin's instruction and its current state are two
|
|
67
|
+
* separate things, and holding them side by side is what this screen is for.
|
|
68
|
+
*/
|
|
69
|
+
currentState = "currentState",
|
|
70
|
+
/**
|
|
71
|
+
* Whether approving can be undone. Drawn in the frame rather than in the body.
|
|
72
|
+
*
|
|
73
|
+
* Not a separate role for want of a place — it fits consequence well enough — but for want of
|
|
74
|
+
* weight. Listed among the consequences it reads with the same force as "four orders get pushed
|
|
75
|
+
* back", and on
|
|
76
|
+
* the twin actuation, where approving moves equipment, it is the heaviest line on the screen.
|
|
77
|
+
*
|
|
78
|
+
* ── Not the same as rejectionIsFinal ──────────────────────────────────
|
|
79
|
+
* Two "cannot be undone" facts attach to opposite actions, and the twin actuation carries both,
|
|
80
|
+
* which is what makes them look like one:
|
|
81
|
+
*
|
|
82
|
+
* reversibility whether **approving** can be undone (this role, read from the input)
|
|
83
|
+
* rejectionIsFinal whether **rejecting** ends the case (a column on Activity)
|
|
84
|
+
*
|
|
85
|
+
* Merging them in a screen sentence tells the reader that rejection can be taken back.
|
|
86
|
+
*/
|
|
87
|
+
reversibility = "reversibility",
|
|
88
|
+
/**
|
|
89
|
+
* What the decision was made from — which inspection, against which spec, decided when.
|
|
90
|
+
*
|
|
91
|
+
* Neither consequence nor currentState: consequence is the opposite direction in time, and under
|
|
92
|
+
* currentState a past finding reads as the present state of the subject. plant's disposition
|
|
93
|
+
* approval kept its own screen for exactly these three values, and it survived the comparison not
|
|
94
|
+
* because a slot could not hold them but because no slot existed — those are different reasons,
|
|
95
|
+
* and only the second one means the set is short.
|
|
96
|
+
*
|
|
97
|
+
* plant's case for it: someone approving a concession in a regulated plant who cannot see which
|
|
98
|
+
* inspection produced the finding is approving without grounds.
|
|
99
|
+
*
|
|
100
|
+
* Repeats, because grounds come in several — there were three.
|
|
101
|
+
*/
|
|
102
|
+
evidence = "evidence"
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* One value the approver reads, and the part it plays.
|
|
106
|
+
*
|
|
107
|
+
* ── Why this points at input rather than at a model item ──────────────────
|
|
108
|
+
* inputPath names a value inside the instance's input and does not go through the activity's model.
|
|
109
|
+
* That is the whole reason it is a separate array: the values an approver most needs are computed by
|
|
110
|
+
* the registering module and put on the input, not declared as model items — plant's
|
|
111
|
+
* `shift.passes` / `shift.passedBy` are exactly that. A role hung on a model item could not
|
|
112
|
+
* reach them.
|
|
113
|
+
*
|
|
114
|
+
* ── inputPath, not inputKey ───────────────────────────────────────────────
|
|
115
|
+
* ActivitySearchKeyItem.inputKey names one top-level key, because its value goes into a searchable
|
|
116
|
+
* column and a path into a list is not something that can be indexed. This field takes a path,
|
|
117
|
+
* because it points at a value to draw. The two do different work, so they carry different names —
|
|
118
|
+
* one word with two meanings would make the wrong one silent, and a name that does not exist is
|
|
119
|
+
* read as a mistake instead. (2026-09-09, architect's ruling)
|
|
120
|
+
*
|
|
121
|
+
* 'reason' → input.reason
|
|
122
|
+
* 'shift.passes' → input.shift.passes
|
|
123
|
+
*
|
|
124
|
+
* Dots only. No array index — drawing a list is the slot's job, not the path's — and no wildcard. A
|
|
125
|
+
* path that leads nowhere resolves to undefined and is not folded into an empty value: a `reason`
|
|
126
|
+
* that is missing and a `reason` someone left blank are different facts, and the screen draws them
|
|
127
|
+
* differently.
|
|
128
|
+
*
|
|
129
|
+
* The two declarations also address different readers. model declares the boxes a performer fills;
|
|
130
|
+
* this declares what an approver reads. Putting both on one item leaves "is this an input or
|
|
131
|
+
* something to judge by" unanswerable.
|
|
132
|
+
*
|
|
133
|
+
* Order matters. plant wrote four of these screens by hand and all four laid the slots out in the
|
|
134
|
+
* same order, which makes the order the screen's hierarchy rather than a preference — so this is an
|
|
135
|
+
* ordered array and not an object keyed by role.
|
|
136
|
+
*/
|
|
137
|
+
export declare class ActivityDecisionKeyItem {
|
|
138
|
+
role: ActivityDecisionRole;
|
|
139
|
+
inputPath: string;
|
|
140
|
+
name?: string;
|
|
141
|
+
tKey?: string;
|
|
142
|
+
/**
|
|
143
|
+
* i18n key for the **value**, when the value is a sentence the module would otherwise freeze.
|
|
144
|
+
*
|
|
145
|
+
* ── tKey is the label; this is the sentence ───────────────────────────
|
|
146
|
+
* Two different things were being asked of one field. The screen draws a slot as a label and a
|
|
147
|
+
* value, and they come from different places:
|
|
148
|
+
*
|
|
149
|
+
* label declaredLabel(slot) = t(slot.tKey, { defaultValue: name }) 「설비」 「사유」
|
|
150
|
+
* value fieldValue(slot.value) the frozen sentence
|
|
151
|
+
*
|
|
152
|
+
* Putting a sentence key in `tKey` turns the label into a developer's English name and leaves the
|
|
153
|
+
* frozen Korean where it was — the thing this is meant to remove.
|
|
154
|
+
*
|
|
155
|
+
* ── Why the sentence must not freeze ──────────────────────────────────
|
|
156
|
+
* Eighteen doors build a Korean sentence when the request is raised and `issue()` snapshots it
|
|
157
|
+
* whole. The sentence then stands in the language of whoever raised it, not whoever reads it, and
|
|
158
|
+
* an approver on another language never catches up.
|
|
159
|
+
*
|
|
160
|
+
* Values are right to freeze — an approval is a judgment about facts at a moment, so quantities,
|
|
161
|
+
* dates and counts are the record. The prose describing them is not a fact, and freezing it also
|
|
162
|
+
* loses what it described: maintenance deferral carries `impact.times` as a value but `dueAt`
|
|
163
|
+
* only inside the sentence, so editing that wording would leave no way to say which due date the
|
|
164
|
+
* approval was about. (ADR-0054 ④)
|
|
165
|
+
*
|
|
166
|
+
* ── Computed, never invented ──────────────────────────────────────────
|
|
167
|
+
* `approval.<door>.<inputPath>` — `inputPath` is the one thing unique within a door, which `role`
|
|
168
|
+
* is not (a door repeats `consequence`). Nobody writing a new door picks a key, so no table of
|
|
169
|
+
* keys grows, and a test can count every one of them.
|
|
170
|
+
*
|
|
171
|
+
* Leaving it out is how a slot stays as it is. The frozen sentence remains in `value`, so a
|
|
172
|
+
* consumer that knows nothing about this field — the plain card, the timeline, an export — draws
|
|
173
|
+
* exactly what it drew before, and a missing translation never puts English into a Korean screen.
|
|
174
|
+
*/
|
|
175
|
+
valueTKey?: string;
|
|
176
|
+
/**
|
|
177
|
+
* What the sentence puts into its blanks: **name in the sentence → where the value lives.**
|
|
178
|
+
*
|
|
179
|
+
* { what: 'equipmentName', days: 'impact.days' } → t(valueTKey, { what: …, days: … })
|
|
180
|
+
*
|
|
181
|
+
* Every value here is an `inputPath`, and that is the point rather than a convention: a sentence
|
|
182
|
+
* may only be built from values that were snapshotted. Wanting a value with no field to read it
|
|
183
|
+
* from means the field is missing, not that params needs another source — so the rule is a shape
|
|
184
|
+
* a declaration cannot write around, and a test counts it.
|
|
185
|
+
*
|
|
186
|
+
* The names on the left belong to the sentence and only have to match the locale files.
|
|
187
|
+
*/
|
|
188
|
+
params?: {
|
|
189
|
+
[name: string]: string;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* Unit to print after the value, when the activity fixes the unit.
|
|
193
|
+
*
|
|
194
|
+
* Declared once, so it holds for every instance of the activity — 「30 건」 works, and a unit that
|
|
195
|
+
* varies per record does not: plant's disposition carries the unit alongside the quantity, so the
|
|
196
|
+
* same activity produces 「3 EA」 and 「12.5 KG」. Writing one of them here would attach the wrong
|
|
197
|
+
* unit to the other records, with nothing to catch it.
|
|
198
|
+
*
|
|
199
|
+
* A unit that varies belongs in the headline sentence the module builds, which is what plant did:
|
|
200
|
+
* 「LOT-A 3 EA 를 폐기합니다」. Leave this empty then.
|
|
201
|
+
*
|
|
202
|
+
* Delete this field if no activity ever turns out to fix a unit. A field nobody writes stays
|
|
203
|
+
* forever and the next person reads a meaning into it. (2026-09-10, architect's ruling)
|
|
204
|
+
*/
|
|
205
|
+
unit?: string;
|
|
206
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActivityDecisionKeyItem = exports.ActivityDecisionRole = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const type_graphql_1 = require("type-graphql");
|
|
6
|
+
const shell_1 = require("@things-factory/shell");
|
|
7
|
+
/**
|
|
8
|
+
* The part an input value plays on the approval screen.
|
|
9
|
+
*
|
|
10
|
+
* ── The shape of the set: three tenses, and five others ───────────────────
|
|
11
|
+
* Three of the eight say something about the subject at a point in time, and the other five do not:
|
|
12
|
+
*
|
|
13
|
+
* past evidence what the decision was made from (may repeat)
|
|
14
|
+
* present currentState how things stand right now
|
|
15
|
+
* future consequence what approving would change (may repeat)
|
|
16
|
+
*
|
|
17
|
+
* subject what this is about
|
|
18
|
+
* reason what a person wrote
|
|
19
|
+
* headline one sentence built from the values
|
|
20
|
+
* reversibility whether approving can be undone
|
|
21
|
+
*
|
|
22
|
+
* Every mis-slotting found so far was the same mistake in that column: currentState under
|
|
23
|
+
* consequence read the present as the future, and evidence under currentState read the past as the
|
|
24
|
+
* present. So when a ninth role is asked for, the first question is whether the value is the
|
|
25
|
+
* subject's past, present or future — if it is, one of those three already holds it. If it is not,
|
|
26
|
+
* whoever asks should be able to say what it is instead. (2026-09-10, architect's ruling)
|
|
27
|
+
*
|
|
28
|
+
* ── Why the keys and the values are spelled the same ──────────────────────
|
|
29
|
+
* type-graphql publishes an enum by its **keys** when the field names the enum type, and by its
|
|
30
|
+
* **values** when the field leaves the type off. One word in a @Field decorator therefore decides
|
|
31
|
+
* what a client receives, and a schema-improving edit far away can flip it. That has already cost
|
|
32
|
+
* this repository twice: ApprovalLineItem.participation arrives as `Reference` and was compared
|
|
33
|
+
* against `reference`, false every time; the catalog page read `NotWorklist` where its selector,
|
|
34
|
+
* i18n key and stage list all said `notworklist`.
|
|
35
|
+
*
|
|
36
|
+
* Writing each key as its own value takes the choice away — either spelling produces the same
|
|
37
|
+
* string. ActivityModelItemInoutType and ActivityModelItemType are written the same way.
|
|
38
|
+
*
|
|
39
|
+
* ── The set is closed, and widening it is the architect's call ────────────
|
|
40
|
+
* Left open as a free string, a convention becomes suffix-appending: every lane invents its own
|
|
41
|
+
* word for the same slot and the screen ends up switching on a dozen spellings, printing the
|
|
42
|
+
* unmatched ones. Adding a role here is an architecture decision, not a lane's. (2026-09-09,
|
|
43
|
+
* architect's ruling)
|
|
44
|
+
*/
|
|
45
|
+
var ActivityDecisionRole;
|
|
46
|
+
(function (ActivityDecisionRole) {
|
|
47
|
+
/** One sentence built from the values: 「폐기 30 EA」, 「3에서 1로 올림」. */
|
|
48
|
+
ActivityDecisionRole["headline"] = "headline";
|
|
49
|
+
/** What the decision is about — one identifier. */
|
|
50
|
+
ActivityDecisionRole["subject"] = "subject";
|
|
51
|
+
/** What the person who raised it wrote. Absent, the screen says so rather than leaving a gap. */
|
|
52
|
+
ActivityDecisionRole["reason"] = "reason";
|
|
53
|
+
/**
|
|
54
|
+
* What changes on approval: 「주문 넷이 뒤로 밀린다」. The only role that may appear more than once.
|
|
55
|
+
*
|
|
56
|
+
* Named consequence rather than effect because TwinCommand.effect already means the opposite in
|
|
57
|
+
* time: { status, at, seen }, what the source reported back after the command was dispatched.
|
|
58
|
+
* That one is an observation and past; this one is a prediction and future. Using a real term for
|
|
59
|
+
* the wrong meaning is worse than coining one, and plant already writes .consequence for exactly
|
|
60
|
+
* this sense in its stop-reason dialog. (2026-09-10, architect's ruling)
|
|
61
|
+
*/
|
|
62
|
+
ActivityDecisionRole["consequence"] = "consequence";
|
|
63
|
+
/**
|
|
64
|
+
* What is measured to be true right now — about the world, not about the request.
|
|
65
|
+
*
|
|
66
|
+
* The other roles all describe what is being asked for. This one does not, and putting it under
|
|
67
|
+
* consequence made the screen say the opposite of the truth: the twin's current readings would
|
|
68
|
+
* have read as things the approval causes.
|
|
69
|
+
*
|
|
70
|
+
* Not named observed: ops-contract already has observedBy for which observation backs a declared
|
|
71
|
+
* property, and TwinCommand.effect is an observation too, so observed would sit in the most
|
|
72
|
+
* confusable spot between them. (2026-09-10, architect's ruling) plant never needed it because the subject's present state
|
|
73
|
+
* went into the headline (「폐기 30 EA」); the twin's instruction and its current state are two
|
|
74
|
+
* separate things, and holding them side by side is what this screen is for.
|
|
75
|
+
*/
|
|
76
|
+
ActivityDecisionRole["currentState"] = "currentState";
|
|
77
|
+
/**
|
|
78
|
+
* Whether approving can be undone. Drawn in the frame rather than in the body.
|
|
79
|
+
*
|
|
80
|
+
* Not a separate role for want of a place — it fits consequence well enough — but for want of
|
|
81
|
+
* weight. Listed among the consequences it reads with the same force as "four orders get pushed
|
|
82
|
+
* back", and on
|
|
83
|
+
* the twin actuation, where approving moves equipment, it is the heaviest line on the screen.
|
|
84
|
+
*
|
|
85
|
+
* ── Not the same as rejectionIsFinal ──────────────────────────────────
|
|
86
|
+
* Two "cannot be undone" facts attach to opposite actions, and the twin actuation carries both,
|
|
87
|
+
* which is what makes them look like one:
|
|
88
|
+
*
|
|
89
|
+
* reversibility whether **approving** can be undone (this role, read from the input)
|
|
90
|
+
* rejectionIsFinal whether **rejecting** ends the case (a column on Activity)
|
|
91
|
+
*
|
|
92
|
+
* Merging them in a screen sentence tells the reader that rejection can be taken back.
|
|
93
|
+
*/
|
|
94
|
+
ActivityDecisionRole["reversibility"] = "reversibility";
|
|
95
|
+
/**
|
|
96
|
+
* What the decision was made from — which inspection, against which spec, decided when.
|
|
97
|
+
*
|
|
98
|
+
* Neither consequence nor currentState: consequence is the opposite direction in time, and under
|
|
99
|
+
* currentState a past finding reads as the present state of the subject. plant's disposition
|
|
100
|
+
* approval kept its own screen for exactly these three values, and it survived the comparison not
|
|
101
|
+
* because a slot could not hold them but because no slot existed — those are different reasons,
|
|
102
|
+
* and only the second one means the set is short.
|
|
103
|
+
*
|
|
104
|
+
* plant's case for it: someone approving a concession in a regulated plant who cannot see which
|
|
105
|
+
* inspection produced the finding is approving without grounds.
|
|
106
|
+
*
|
|
107
|
+
* Repeats, because grounds come in several — there were three.
|
|
108
|
+
*/
|
|
109
|
+
ActivityDecisionRole["evidence"] = "evidence";
|
|
110
|
+
})(ActivityDecisionRole || (exports.ActivityDecisionRole = ActivityDecisionRole = {}));
|
|
111
|
+
(0, type_graphql_1.registerEnumType)(ActivityDecisionRole, {
|
|
112
|
+
name: 'ActivityDecisionRole',
|
|
113
|
+
description: 'the part an input value plays on the approval screen'
|
|
114
|
+
});
|
|
115
|
+
/**
|
|
116
|
+
* One value the approver reads, and the part it plays.
|
|
117
|
+
*
|
|
118
|
+
* ── Why this points at input rather than at a model item ──────────────────
|
|
119
|
+
* inputPath names a value inside the instance's input and does not go through the activity's model.
|
|
120
|
+
* That is the whole reason it is a separate array: the values an approver most needs are computed by
|
|
121
|
+
* the registering module and put on the input, not declared as model items — plant's
|
|
122
|
+
* `shift.passes` / `shift.passedBy` are exactly that. A role hung on a model item could not
|
|
123
|
+
* reach them.
|
|
124
|
+
*
|
|
125
|
+
* ── inputPath, not inputKey ───────────────────────────────────────────────
|
|
126
|
+
* ActivitySearchKeyItem.inputKey names one top-level key, because its value goes into a searchable
|
|
127
|
+
* column and a path into a list is not something that can be indexed. This field takes a path,
|
|
128
|
+
* because it points at a value to draw. The two do different work, so they carry different names —
|
|
129
|
+
* one word with two meanings would make the wrong one silent, and a name that does not exist is
|
|
130
|
+
* read as a mistake instead. (2026-09-09, architect's ruling)
|
|
131
|
+
*
|
|
132
|
+
* 'reason' → input.reason
|
|
133
|
+
* 'shift.passes' → input.shift.passes
|
|
134
|
+
*
|
|
135
|
+
* Dots only. No array index — drawing a list is the slot's job, not the path's — and no wildcard. A
|
|
136
|
+
* path that leads nowhere resolves to undefined and is not folded into an empty value: a `reason`
|
|
137
|
+
* that is missing and a `reason` someone left blank are different facts, and the screen draws them
|
|
138
|
+
* differently.
|
|
139
|
+
*
|
|
140
|
+
* The two declarations also address different readers. model declares the boxes a performer fills;
|
|
141
|
+
* this declares what an approver reads. Putting both on one item leaves "is this an input or
|
|
142
|
+
* something to judge by" unanswerable.
|
|
143
|
+
*
|
|
144
|
+
* Order matters. plant wrote four of these screens by hand and all four laid the slots out in the
|
|
145
|
+
* same order, which makes the order the screen's hierarchy rather than a preference — so this is an
|
|
146
|
+
* ordered array and not an object keyed by role.
|
|
147
|
+
*/
|
|
148
|
+
let ActivityDecisionKeyItem = class ActivityDecisionKeyItem {
|
|
149
|
+
};
|
|
150
|
+
exports.ActivityDecisionKeyItem = ActivityDecisionKeyItem;
|
|
151
|
+
tslib_1.__decorate([
|
|
152
|
+
(0, type_graphql_1.Field)(type => ActivityDecisionRole),
|
|
153
|
+
tslib_1.__metadata("design:type", String)
|
|
154
|
+
], ActivityDecisionKeyItem.prototype, "role", void 0);
|
|
155
|
+
tslib_1.__decorate([
|
|
156
|
+
(0, type_graphql_1.Field)({ description: "Dotted path to the value inside the instance's input, e.g. 'shift.passes'" }),
|
|
157
|
+
tslib_1.__metadata("design:type", String)
|
|
158
|
+
], ActivityDecisionKeyItem.prototype, "inputPath", void 0);
|
|
159
|
+
tslib_1.__decorate([
|
|
160
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Developer-facing note. Never shown on a screen.' }),
|
|
161
|
+
tslib_1.__metadata("design:type", String)
|
|
162
|
+
], ActivityDecisionKeyItem.prototype, "name", void 0);
|
|
163
|
+
tslib_1.__decorate([
|
|
164
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'i18n key for the label. Without it the screen shows no label.' }),
|
|
165
|
+
tslib_1.__metadata("design:type", String)
|
|
166
|
+
], ActivityDecisionKeyItem.prototype, "tKey", void 0);
|
|
167
|
+
tslib_1.__decorate([
|
|
168
|
+
(0, type_graphql_1.Field)({ nullable: true, description: "i18n key for the value sentence: approval.<door>.<inputPath>" }),
|
|
169
|
+
tslib_1.__metadata("design:type", String)
|
|
170
|
+
], ActivityDecisionKeyItem.prototype, "valueTKey", void 0);
|
|
171
|
+
tslib_1.__decorate([
|
|
172
|
+
(0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true, description: 'sentence placeholder → inputPath' }),
|
|
173
|
+
tslib_1.__metadata("design:type", Object)
|
|
174
|
+
], ActivityDecisionKeyItem.prototype, "params", void 0);
|
|
175
|
+
tslib_1.__decorate([
|
|
176
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Unit to print after the value, when the activity fixes the unit' }),
|
|
177
|
+
tslib_1.__metadata("design:type", String)
|
|
178
|
+
], ActivityDecisionKeyItem.prototype, "unit", void 0);
|
|
179
|
+
exports.ActivityDecisionKeyItem = ActivityDecisionKeyItem = tslib_1.__decorate([
|
|
180
|
+
(0, type_graphql_1.ObjectType)({ description: 'Entity for ActivityDecisionKeyItem' })
|
|
181
|
+
], ActivityDecisionKeyItem);
|
|
182
|
+
//# sourceMappingURL=activity-decision-key-item-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-decision-key-item-type.js","sourceRoot":"","sources":["../../../server/service/activity/activity-decision-key-item-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAkE;AAElE,iDAAoD;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,IAAY,oBAgEX;AAhED,WAAY,oBAAoB;IAC9B,mEAAmE;IACnE,6CAAqB,CAAA;IACrB,mDAAmD;IACnD,2CAAmB,CAAA;IACnB,iGAAiG;IACjG,yCAAiB,CAAA;IACjB;;;;;;;;OAQG;IACH,mDAA2B,CAAA;IAC3B;;;;;;;;;;;;OAYG;IACH,qDAA6B,CAAA;IAC7B;;;;;;;;;;;;;;;;OAgBG;IACH,uDAA+B,CAAA;IAC/B;;;;;;;;;;;;;OAaG;IACH,6CAAqB,CAAA;AACvB,CAAC,EAhEW,oBAAoB,oCAApB,oBAAoB,QAgE/B;AAED,IAAA,+BAAgB,EAAC,oBAAoB,EAAE;IACrC,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,sDAAsD;CACpE,CAAC,CAAA;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEI,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAgFnC,CAAA;AAhFY,0DAAuB;AAElC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,oBAAoB,CAAC;;qDACV;AAG1B;IADC,IAAA,oBAAK,EAAC,EAAE,WAAW,EAAE,2EAA2E,EAAE,CAAC;;0DACnF;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,iDAAiD,EAAE,CAAC;;qDAC7E;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,+DAA+D,EAAE,CAAC;;qDAC3F;AAoCb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,8DAA8D,EAAE,CAAC;;0DACrF;AAelB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,oBAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;;uDAC9D;AAiBnC;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,iEAAiE,EAAE,CAAC;;qDAC7F;kCA/EF,uBAAuB;IADnC,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,oCAAoC,EAAE,CAAC;GACrD,uBAAuB,CAgFnC","sourcesContent":["import { Field, ObjectType, registerEnumType } from 'type-graphql'\n\nimport { ScalarObject } from '@things-factory/shell'\n\n/**\n * The part an input value plays on the approval screen.\n *\n * ── The shape of the set: three tenses, and five others ───────────────────\n * Three of the eight say something about the subject at a point in time, and the other five do not:\n *\n * past evidence what the decision was made from (may repeat)\n * present currentState how things stand right now\n * future consequence what approving would change (may repeat)\n *\n * subject what this is about\n * reason what a person wrote\n * headline one sentence built from the values\n * reversibility whether approving can be undone\n *\n * Every mis-slotting found so far was the same mistake in that column: currentState under\n * consequence read the present as the future, and evidence under currentState read the past as the\n * present. So when a ninth role is asked for, the first question is whether the value is the\n * subject's past, present or future — if it is, one of those three already holds it. If it is not,\n * whoever asks should be able to say what it is instead. (2026-09-10, architect's ruling)\n *\n * ── Why the keys and the values are spelled the same ──────────────────────\n * type-graphql publishes an enum by its **keys** when the field names the enum type, and by its\n * **values** when the field leaves the type off. One word in a @Field decorator therefore decides\n * what a client receives, and a schema-improving edit far away can flip it. That has already cost\n * this repository twice: ApprovalLineItem.participation arrives as `Reference` and was compared\n * against `reference`, false every time; the catalog page read `NotWorklist` where its selector,\n * i18n key and stage list all said `notworklist`.\n *\n * Writing each key as its own value takes the choice away — either spelling produces the same\n * string. ActivityModelItemInoutType and ActivityModelItemType are written the same way.\n *\n * ── The set is closed, and widening it is the architect's call ────────────\n * Left open as a free string, a convention becomes suffix-appending: every lane invents its own\n * word for the same slot and the screen ends up switching on a dozen spellings, printing the\n * unmatched ones. Adding a role here is an architecture decision, not a lane's. (2026-09-09,\n * architect's ruling)\n */\nexport enum ActivityDecisionRole {\n /** One sentence built from the values: 「폐기 30 EA」, 「3에서 1로 올림」. */\n headline = 'headline',\n /** What the decision is about — one identifier. */\n subject = 'subject',\n /** What the person who raised it wrote. Absent, the screen says so rather than leaving a gap. */\n reason = 'reason',\n /**\n * What changes on approval: 「주문 넷이 뒤로 밀린다」. The only role that may appear more than once.\n *\n * Named consequence rather than effect because TwinCommand.effect already means the opposite in\n * time: { status, at, seen }, what the source reported back after the command was dispatched.\n * That one is an observation and past; this one is a prediction and future. Using a real term for\n * the wrong meaning is worse than coining one, and plant already writes .consequence for exactly\n * this sense in its stop-reason dialog. (2026-09-10, architect's ruling)\n */\n consequence = 'consequence',\n /**\n * What is measured to be true right now — about the world, not about the request.\n *\n * The other roles all describe what is being asked for. This one does not, and putting it under\n * consequence made the screen say the opposite of the truth: the twin's current readings would\n * have read as things the approval causes.\n *\n * Not named observed: ops-contract already has observedBy for which observation backs a declared\n * property, and TwinCommand.effect is an observation too, so observed would sit in the most\n * confusable spot between them. (2026-09-10, architect's ruling) plant never needed it because the subject's present state\n * went into the headline (「폐기 30 EA」); the twin's instruction and its current state are two\n * separate things, and holding them side by side is what this screen is for.\n */\n currentState = 'currentState',\n /**\n * Whether approving can be undone. Drawn in the frame rather than in the body.\n *\n * Not a separate role for want of a place — it fits consequence well enough — but for want of\n * weight. Listed among the consequences it reads with the same force as \"four orders get pushed\n * back\", and on\n * the twin actuation, where approving moves equipment, it is the heaviest line on the screen.\n *\n * ── Not the same as rejectionIsFinal ──────────────────────────────────\n * Two \"cannot be undone\" facts attach to opposite actions, and the twin actuation carries both,\n * which is what makes them look like one:\n *\n * reversibility whether **approving** can be undone (this role, read from the input)\n * rejectionIsFinal whether **rejecting** ends the case (a column on Activity)\n *\n * Merging them in a screen sentence tells the reader that rejection can be taken back.\n */\n reversibility = 'reversibility',\n /**\n * What the decision was made from — which inspection, against which spec, decided when.\n *\n * Neither consequence nor currentState: consequence is the opposite direction in time, and under\n * currentState a past finding reads as the present state of the subject. plant's disposition\n * approval kept its own screen for exactly these three values, and it survived the comparison not\n * because a slot could not hold them but because no slot existed — those are different reasons,\n * and only the second one means the set is short.\n *\n * plant's case for it: someone approving a concession in a regulated plant who cannot see which\n * inspection produced the finding is approving without grounds.\n *\n * Repeats, because grounds come in several — there were three.\n */\n evidence = 'evidence'\n}\n\nregisterEnumType(ActivityDecisionRole, {\n name: 'ActivityDecisionRole',\n description: 'the part an input value plays on the approval screen'\n})\n\n/**\n * One value the approver reads, and the part it plays.\n *\n * ── Why this points at input rather than at a model item ──────────────────\n * inputPath names a value inside the instance's input and does not go through the activity's model.\n * That is the whole reason it is a separate array: the values an approver most needs are computed by\n * the registering module and put on the input, not declared as model items — plant's\n * `shift.passes` / `shift.passedBy` are exactly that. A role hung on a model item could not\n * reach them.\n *\n * ── inputPath, not inputKey ───────────────────────────────────────────────\n * ActivitySearchKeyItem.inputKey names one top-level key, because its value goes into a searchable\n * column and a path into a list is not something that can be indexed. This field takes a path,\n * because it points at a value to draw. The two do different work, so they carry different names —\n * one word with two meanings would make the wrong one silent, and a name that does not exist is\n * read as a mistake instead. (2026-09-09, architect's ruling)\n *\n * 'reason' → input.reason\n * 'shift.passes' → input.shift.passes\n *\n * Dots only. No array index — drawing a list is the slot's job, not the path's — and no wildcard. A\n * path that leads nowhere resolves to undefined and is not folded into an empty value: a `reason`\n * that is missing and a `reason` someone left blank are different facts, and the screen draws them\n * differently.\n *\n * The two declarations also address different readers. model declares the boxes a performer fills;\n * this declares what an approver reads. Putting both on one item leaves \"is this an input or\n * something to judge by\" unanswerable.\n *\n * Order matters. plant wrote four of these screens by hand and all four laid the slots out in the\n * same order, which makes the order the screen's hierarchy rather than a preference — so this is an\n * ordered array and not an object keyed by role.\n */\n@ObjectType({ description: 'Entity for ActivityDecisionKeyItem' })\nexport class ActivityDecisionKeyItem {\n @Field(type => ActivityDecisionRole)\n role: ActivityDecisionRole\n\n @Field({ description: \"Dotted path to the value inside the instance's input, e.g. 'shift.passes'\" })\n inputPath: string\n\n @Field({ nullable: true, description: 'Developer-facing note. Never shown on a screen.' })\n name?: string\n\n @Field({ nullable: true, description: 'i18n key for the label. Without it the screen shows no label.' })\n tKey?: string\n\n /**\n * i18n key for the **value**, when the value is a sentence the module would otherwise freeze.\n *\n * ── tKey is the label; this is the sentence ───────────────────────────\n * Two different things were being asked of one field. The screen draws a slot as a label and a\n * value, and they come from different places:\n *\n * label declaredLabel(slot) = t(slot.tKey, { defaultValue: name }) 「설비」 「사유」\n * value fieldValue(slot.value) the frozen sentence\n *\n * Putting a sentence key in `tKey` turns the label into a developer's English name and leaves the\n * frozen Korean where it was — the thing this is meant to remove.\n *\n * ── Why the sentence must not freeze ──────────────────────────────────\n * Eighteen doors build a Korean sentence when the request is raised and `issue()` snapshots it\n * whole. The sentence then stands in the language of whoever raised it, not whoever reads it, and\n * an approver on another language never catches up.\n *\n * Values are right to freeze — an approval is a judgment about facts at a moment, so quantities,\n * dates and counts are the record. The prose describing them is not a fact, and freezing it also\n * loses what it described: maintenance deferral carries `impact.times` as a value but `dueAt`\n * only inside the sentence, so editing that wording would leave no way to say which due date the\n * approval was about. (ADR-0054 ④)\n *\n * ── Computed, never invented ──────────────────────────────────────────\n * `approval.<door>.<inputPath>` — `inputPath` is the one thing unique within a door, which `role`\n * is not (a door repeats `consequence`). Nobody writing a new door picks a key, so no table of\n * keys grows, and a test can count every one of them.\n *\n * Leaving it out is how a slot stays as it is. The frozen sentence remains in `value`, so a\n * consumer that knows nothing about this field — the plain card, the timeline, an export — draws\n * exactly what it drew before, and a missing translation never puts English into a Korean screen.\n */\n @Field({ nullable: true, description: \"i18n key for the value sentence: approval.<door>.<inputPath>\" })\n valueTKey?: string\n\n /**\n * What the sentence puts into its blanks: **name in the sentence → where the value lives.**\n *\n * { what: 'equipmentName', days: 'impact.days' } → t(valueTKey, { what: …, days: … })\n *\n * Every value here is an `inputPath`, and that is the point rather than a convention: a sentence\n * may only be built from values that were snapshotted. Wanting a value with no field to read it\n * from means the field is missing, not that params needs another source — so the rule is a shape\n * a declaration cannot write around, and a test counts it.\n *\n * The names on the left belong to the sentence and only have to match the locale files.\n */\n @Field(type => ScalarObject, { nullable: true, description: 'sentence placeholder → inputPath' })\n params?: { [name: string]: string }\n\n /**\n * Unit to print after the value, when the activity fixes the unit.\n *\n * Declared once, so it holds for every instance of the activity — 「30 건」 works, and a unit that\n * varies per record does not: plant's disposition carries the unit alongside the quantity, so the\n * same activity produces 「3 EA」 and 「12.5 KG」. Writing one of them here would attach the wrong\n * unit to the other records, with nothing to catch it.\n *\n * A unit that varies belongs in the headline sentence the module builds, which is what plant did:\n * 「LOT-A 3 EA 를 폐기합니다」. Leave this empty then.\n *\n * Delete this field if no activity ever turns out to fix a unit. A field nobody writes stays\n * forever and the next person reads a meaning into it. (2026-09-10, architect's ruling)\n */\n @Field({ nullable: true, description: 'Unit to print after the value, when the activity fixes the unit' })\n unit?: string\n}\n"]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { HistoryActionType, HistoryEntityInterface } from '@operato/typeorm-history';
|
|
2
|
+
import { Role, User } from '@things-factory/auth-base';
|
|
3
|
+
import { Domain } from '@things-factory/shell';
|
|
4
|
+
import { ApprovalLineItem } from '@things-factory/organization';
|
|
5
|
+
import { Activity, ActivityStartingType, ActivityStatus, ActivityType, ActivityUIType, AssigneeItem } from './activity.js';
|
|
6
|
+
import { ActivityModelItem } from './activity-model-type.js';
|
|
7
|
+
export declare class ActivityHistory implements HistoryEntityInterface<Activity> {
|
|
8
|
+
readonly id: string;
|
|
9
|
+
version?: number;
|
|
10
|
+
domain?: Domain;
|
|
11
|
+
domainId?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
activityType?: ActivityType;
|
|
15
|
+
state?: ActivityStatus;
|
|
16
|
+
model?: ActivityModelItem[];
|
|
17
|
+
priority?: number;
|
|
18
|
+
startingType?: ActivityStartingType;
|
|
19
|
+
schedule?: string;
|
|
20
|
+
timezone?: string;
|
|
21
|
+
scheduleId?: string;
|
|
22
|
+
standardTime?: number;
|
|
23
|
+
issuerRole?: Role;
|
|
24
|
+
issuerRoleId?: string;
|
|
25
|
+
assigneeRoleIds?: string[];
|
|
26
|
+
supervisoryRole?: Role;
|
|
27
|
+
supervisoryRoleId?: string;
|
|
28
|
+
assignees?: AssigneeItem[];
|
|
29
|
+
approvalLine?: ApprovalLineItem[];
|
|
30
|
+
uiType?: ActivityUIType;
|
|
31
|
+
uiSource?: string;
|
|
32
|
+
viewType?: ActivityUIType;
|
|
33
|
+
viewSource?: string;
|
|
34
|
+
reportType?: ActivityUIType;
|
|
35
|
+
reportSource?: string;
|
|
36
|
+
createdAt?: Date;
|
|
37
|
+
updatedAt?: Date;
|
|
38
|
+
creator?: User;
|
|
39
|
+
creatorId?: string;
|
|
40
|
+
updater?: User;
|
|
41
|
+
updaterId?: string;
|
|
42
|
+
originalId: string;
|
|
43
|
+
action: HistoryActionType;
|
|
44
|
+
}
|