@ketvietlab/ketsuite 0.1.29 → 0.1.31
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/cli.js +1 -1
- package/dist/modules/account_backend/index.js +0 -6
- package/dist/modules/account_backend/index.js.map +1 -1
- package/dist/modules/account_backend/screens/account-defaults.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/account-defaults.js +1 -1
- package/dist/modules/account_backend/screens/account-defaults.js.map +1 -1
- package/dist/modules/account_backend/screens/account-form.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/account-form.js +3 -1
- package/dist/modules/account_backend/screens/account-form.js.map +1 -1
- package/dist/modules/account_backend/screens/accounts-list.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/accounts-list.js +1 -1
- package/dist/modules/account_backend/screens/accounts-list.js.map +1 -1
- package/dist/modules/account_backend/screens/customer-invoice-form.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/customer-invoice-form.js +1 -1
- package/dist/modules/account_backend/screens/customer-invoice-form.js.map +1 -1
- package/dist/modules/account_backend/screens/customer-invoices-list.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/customer-invoices-list.js +1 -1
- package/dist/modules/account_backend/screens/customer-invoices-list.js.map +1 -1
- package/dist/modules/account_backend/screens/journal-entries-list.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/journal-entries-list.js +1 -1
- package/dist/modules/account_backend/screens/journal-entries-list.js.map +1 -1
- package/dist/modules/account_backend/screens/journal-entry-create.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/journal-entry-create.js +1 -1
- package/dist/modules/account_backend/screens/journal-entry-create.js.map +1 -1
- package/dist/modules/account_backend/screens/journal-form.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/journal-form.js +3 -3
- package/dist/modules/account_backend/screens/journal-form.js.map +1 -1
- package/dist/modules/account_backend/screens/journals-list.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/journals-list.js +1 -1
- package/dist/modules/account_backend/screens/journals-list.js.map +1 -1
- package/dist/modules/account_backend/screens/move-detail.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/move-detail.js +3 -1
- package/dist/modules/account_backend/screens/move-detail.js.map +1 -1
- package/dist/modules/account_backend/screens/opening-balances.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/opening-balances.js +2 -2
- package/dist/modules/account_backend/screens/opening-balances.js.map +1 -1
- package/dist/modules/account_backend/screens/overview.js +4 -2
- package/dist/modules/account_backend/screens/overview.js.map +1 -1
- package/dist/modules/account_backend/screens/payment-form.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/payment-form.js +1 -1
- package/dist/modules/account_backend/screens/payment-form.js.map +1 -1
- package/dist/modules/account_backend/screens/payment-term-form.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/payment-term-form.js +4 -2
- package/dist/modules/account_backend/screens/payment-term-form.js.map +1 -1
- package/dist/modules/account_backend/screens/payment-terms-list.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/payment-terms-list.js +1 -1
- package/dist/modules/account_backend/screens/payment-terms-list.js.map +1 -1
- package/dist/modules/account_backend/screens/payments-list.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/payments-list.js +1 -1
- package/dist/modules/account_backend/screens/payments-list.js.map +1 -1
- package/dist/modules/account_backend/screens/period-closes.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/period-closes.js +1 -1
- package/dist/modules/account_backend/screens/period-closes.js.map +1 -1
- package/dist/modules/account_backend/screens/tax-form.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/tax-form.js +3 -1
- package/dist/modules/account_backend/screens/tax-form.js.map +1 -1
- package/dist/modules/account_backend/screens/taxes-list.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/taxes-list.js +1 -1
- package/dist/modules/account_backend/screens/taxes-list.js.map +1 -1
- package/dist/modules/account_backend/screens/vendor-bill-form.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/vendor-bill-form.js +1 -1
- package/dist/modules/account_backend/screens/vendor-bill-form.js.map +1 -1
- package/dist/modules/account_backend/screens/vendor-bills-list.d.ts.map +1 -1
- package/dist/modules/account_backend/screens/vendor-bills-list.js +1 -1
- package/dist/modules/account_backend/screens/vendor-bills-list.js.map +1 -1
- package/dist/modules/account_partner_backend/screens/accounting-terms.d.ts.map +1 -1
- package/dist/modules/account_partner_backend/screens/accounting-terms.js +1 -1
- package/dist/modules/account_partner_backend/screens/accounting-terms.js.map +1 -1
- package/dist/modules/activity_backend/index.d.ts.map +1 -1
- package/dist/modules/activity_backend/index.js +0 -2
- package/dist/modules/activity_backend/index.js.map +1 -1
- package/dist/modules/activity_backend/screens/activities-list.d.ts.map +1 -1
- package/dist/modules/activity_backend/screens/activities-list.js +1 -1
- package/dist/modules/activity_backend/screens/activities-list.js.map +1 -1
- package/dist/modules/address_backend/index.d.ts.map +1 -1
- package/dist/modules/address_backend/index.js +0 -2
- package/dist/modules/address_backend/index.js.map +1 -1
- package/dist/modules/address_backend/screens/catalogs-list.d.ts.map +1 -1
- package/dist/modules/address_backend/screens/catalogs-list.js +1 -1
- package/dist/modules/address_backend/screens/catalogs-list.js.map +1 -1
- package/dist/modules/attendance_backend/screens/credentials.d.ts.map +1 -1
- package/dist/modules/attendance_backend/screens/credentials.js +1 -1
- package/dist/modules/attendance_backend/screens/credentials.js.map +1 -1
- package/dist/modules/attendance_backend/screens/period.d.ts.map +1 -1
- package/dist/modules/attendance_backend/screens/period.js +1 -1
- package/dist/modules/attendance_backend/screens/period.js.map +1 -1
- package/dist/modules/backend/current-company.d.ts +4 -0
- package/dist/modules/backend/current-company.d.ts.map +1 -0
- package/dist/modules/backend/current-company.js +27 -0
- package/dist/modules/backend/current-company.js.map +1 -0
- package/dist/modules/backend/design/client/backend-shell.d.mts +2 -2
- package/dist/modules/backend/design/client/backend-shell.d.mts.map +1 -1
- package/dist/modules/backend/design/client/backend-shell.mjs +1 -1
- package/dist/modules/backend/design/client/backend-shell.mjs.map +4 -4
- package/dist/modules/backend/design/client/ket-table.d.mts +2 -2
- package/dist/modules/backend/design/client/ket-table.d.mts.map +1 -1
- package/dist/modules/backend/design/client/ket-table.mjs +1 -1
- package/dist/modules/backend/design/client/ket-table.mjs.map +3 -3
- package/dist/modules/backend/design/client/search-filter.d.mts +2 -2
- package/dist/modules/backend/design/client/search-filter.d.mts.map +1 -1
- package/dist/modules/backend/design/client/search-filter.mjs +1 -1
- package/dist/modules/backend/design/client/search-filter.mjs.map +3 -3
- package/dist/modules/backend/design/content.css +5 -5
- package/dist/modules/backend/design/controls.css +10 -36
- package/dist/modules/backend/design/forms.css +33 -188
- package/dist/modules/backend/design/lists.css +1 -50
- package/dist/modules/backend/index.d.ts +1 -0
- package/dist/modules/backend/index.d.ts.map +1 -1
- package/dist/modules/backend/index.js +1 -0
- package/dist/modules/backend/index.js.map +1 -1
- package/dist/modules/backend/optional-read.d.ts +4 -0
- package/dist/modules/backend/optional-read.d.ts.map +1 -0
- package/dist/modules/backend/optional-read.js +7 -0
- package/dist/modules/backend/optional-read.js.map +1 -0
- package/dist/modules/company_backend/index.d.ts.map +1 -1
- package/dist/modules/company_backend/index.js +0 -2
- package/dist/modules/company_backend/index.js.map +1 -1
- package/dist/modules/company_backend/screens/branch-form.d.ts.map +1 -1
- package/dist/modules/company_backend/screens/branch-form.js +3 -1
- package/dist/modules/company_backend/screens/branch-form.js.map +1 -1
- package/dist/modules/company_backend/screens/companies-list.d.ts.map +1 -1
- package/dist/modules/company_backend/screens/companies-list.js +1 -1
- package/dist/modules/company_backend/screens/companies-list.js.map +1 -1
- package/dist/modules/company_backend/screens/company-form.d.ts.map +1 -1
- package/dist/modules/company_backend/screens/company-form.js +1 -3
- package/dist/modules/company_backend/screens/company-form.js.map +1 -1
- package/dist/modules/company_backend/screens/context.d.ts.map +1 -1
- package/dist/modules/company_backend/screens/context.js +1 -1
- package/dist/modules/company_backend/screens/context.js.map +1 -1
- package/dist/modules/company_backend/screens/hierarchy.d.ts.map +1 -1
- package/dist/modules/company_backend/screens/hierarchy.js +1 -1
- package/dist/modules/company_backend/screens/hierarchy.js.map +1 -1
- package/dist/modules/crm_backend/client/crm-case-modal.d.mts +8 -8
- package/dist/modules/crm_backend/client/crm-case-modal.d.mts.map +1 -1
- package/dist/modules/crm_backend/client/crm-case-modal.mjs +1 -1
- package/dist/modules/crm_backend/client/crm-case-modal.mjs.map +3 -3
- package/dist/modules/crm_backend/client/crm-configuration-modal.d.mts +55 -55
- package/dist/modules/crm_backend/client/crm-configuration-modal.d.mts.map +1 -1
- package/dist/modules/crm_backend/client/crm-configuration-modal.mjs +1 -1
- package/dist/modules/crm_backend/client/crm-configuration-modal.mjs.map +3 -3
- package/dist/modules/crm_backend/messages.d.ts +0 -10
- package/dist/modules/crm_backend/messages.d.ts.map +1 -1
- package/dist/modules/crm_backend/messages.js +0 -10
- package/dist/modules/crm_backend/messages.js.map +1 -1
- package/dist/modules/crm_backend/screens/activity-planner.d.ts.map +1 -1
- package/dist/modules/crm_backend/screens/activity-planner.js +1 -1
- package/dist/modules/crm_backend/screens/activity-planner.js.map +1 -1
- package/dist/modules/crm_backend/screens/case-create.d.ts.map +1 -1
- package/dist/modules/crm_backend/screens/case-create.js +1 -1
- package/dist/modules/crm_backend/screens/case-create.js.map +1 -1
- package/dist/modules/crm_backend/screens/case-detail.d.ts.map +1 -1
- package/dist/modules/crm_backend/screens/case-detail.js +2 -2
- package/dist/modules/crm_backend/screens/case-detail.js.map +1 -1
- package/dist/modules/crm_backend/screens/cases-list.d.ts.map +1 -1
- package/dist/modules/crm_backend/screens/cases-list.js +1 -1
- package/dist/modules/crm_backend/screens/cases-list.js.map +1 -1
- package/dist/modules/crm_backend/screens/configuration.d.ts.map +1 -1
- package/dist/modules/crm_backend/screens/configuration.js +1 -1
- package/dist/modules/crm_backend/screens/configuration.js.map +1 -1
- package/dist/modules/crm_backend/screens/leaderboard.d.ts.map +1 -1
- package/dist/modules/crm_backend/screens/leaderboard.js +1 -1
- package/dist/modules/crm_backend/screens/leaderboard.js.map +1 -1
- package/dist/modules/crm_backend/screens/pipeline.d.ts.map +1 -1
- package/dist/modules/crm_backend/screens/pipeline.js +1 -1
- package/dist/modules/crm_backend/screens/pipeline.js.map +1 -1
- package/dist/modules/flow/domain/command-check.d.ts +3 -0
- package/dist/modules/flow/domain/command-check.d.ts.map +1 -0
- package/dist/modules/flow/domain/command-check.js +9 -0
- package/dist/modules/flow/domain/command-check.js.map +1 -0
- package/dist/modules/flow/domain/command.d.ts +33 -0
- package/dist/modules/flow/domain/command.d.ts.map +1 -0
- package/dist/modules/flow/domain/command.js +35 -0
- package/dist/modules/flow/domain/command.js.map +1 -0
- package/dist/modules/flow/domain/issue-bulk.d.ts +50 -0
- package/dist/modules/flow/domain/issue-bulk.d.ts.map +1 -0
- package/dist/modules/flow/domain/issue-bulk.js +97 -0
- package/dist/modules/flow/domain/issue-bulk.js.map +1 -0
- package/dist/modules/flow/domain/issue-dependency.d.ts +19 -0
- package/dist/modules/flow/domain/issue-dependency.d.ts.map +1 -0
- package/dist/modules/flow/domain/issue-dependency.js +59 -0
- package/dist/modules/flow/domain/issue-dependency.js.map +1 -0
- package/dist/modules/flow/domain/issue-discussion.d.ts +52 -0
- package/dist/modules/flow/domain/issue-discussion.d.ts.map +1 -0
- package/dist/modules/flow/domain/issue-discussion.js +114 -0
- package/dist/modules/flow/domain/issue-discussion.js.map +1 -0
- package/dist/modules/flow/domain/issue-transfer.d.ts +62 -0
- package/dist/modules/flow/domain/issue-transfer.d.ts.map +1 -0
- package/dist/modules/flow/domain/issue-transfer.js +171 -0
- package/dist/modules/flow/domain/issue-transfer.js.map +1 -0
- package/dist/modules/flow/domain/issue-validation.d.ts +68 -0
- package/dist/modules/flow/domain/issue-validation.d.ts.map +1 -0
- package/dist/modules/flow/domain/issue-validation.js +136 -0
- package/dist/modules/flow/domain/issue-validation.js.map +1 -0
- package/dist/modules/flow/domain/issue-write.d.ts +118 -0
- package/dist/modules/flow/domain/issue-write.d.ts.map +1 -0
- package/dist/modules/flow/domain/issue-write.js +372 -0
- package/dist/modules/flow/domain/issue-write.js.map +1 -0
- package/dist/modules/flow/domain/sprint-lifecycle.d.ts +61 -0
- package/dist/modules/flow/domain/sprint-lifecycle.d.ts.map +1 -0
- package/dist/modules/flow/domain/sprint-lifecycle.js +145 -0
- package/dist/modules/flow/domain/sprint-lifecycle.js.map +1 -0
- package/dist/modules/flow/functions/board.d.ts +7 -0
- package/dist/modules/flow/functions/board.d.ts.map +1 -0
- package/dist/modules/flow/functions/board.js +59 -0
- package/dist/modules/flow/functions/board.js.map +1 -0
- package/dist/modules/flow/functions/column.d.ts +8 -0
- package/dist/modules/flow/functions/column.d.ts.map +1 -0
- package/dist/modules/flow/functions/column.js +64 -0
- package/dist/modules/flow/functions/column.js.map +1 -0
- package/dist/modules/flow/functions/effects.d.ts +21 -0
- package/dist/modules/flow/functions/effects.d.ts.map +1 -0
- package/dist/modules/flow/functions/effects.js +96 -0
- package/dist/modules/flow/functions/effects.js.map +1 -0
- package/dist/modules/flow/functions/entity-save.d.ts +4 -0
- package/dist/modules/flow/functions/entity-save.d.ts.map +1 -0
- package/dist/modules/flow/functions/entity-save.js +60 -0
- package/dist/modules/flow/functions/entity-save.js.map +1 -0
- package/dist/modules/flow/functions/epic.d.ts +26 -0
- package/dist/modules/flow/functions/epic.d.ts.map +1 -0
- package/dist/modules/flow/functions/epic.js +151 -0
- package/dist/modules/flow/functions/epic.js.map +1 -0
- package/dist/modules/flow/functions/field.d.ts +9 -0
- package/dist/modules/flow/functions/field.d.ts.map +1 -0
- package/dist/modules/flow/functions/field.js +117 -0
- package/dist/modules/flow/functions/field.js.map +1 -0
- package/dist/modules/flow/functions/index.d.ts +5 -0
- package/dist/modules/flow/functions/index.d.ts.map +1 -0
- package/dist/modules/flow/functions/index.js +42 -0
- package/dist/modules/flow/functions/index.js.map +1 -0
- package/dist/modules/flow/functions/issue-batch.d.ts +6 -0
- package/dist/modules/flow/functions/issue-batch.d.ts.map +1 -0
- package/dist/modules/flow/functions/issue-batch.js +149 -0
- package/dist/modules/flow/functions/issue-batch.js.map +1 -0
- package/dist/modules/flow/functions/issue-dependency.d.ts +8 -0
- package/dist/modules/flow/functions/issue-dependency.d.ts.map +1 -0
- package/dist/modules/flow/functions/issue-dependency.js +54 -0
- package/dist/modules/flow/functions/issue-dependency.js.map +1 -0
- package/dist/modules/flow/functions/issue-discussion.d.ts +6 -0
- package/dist/modules/flow/functions/issue-discussion.d.ts.map +1 -0
- package/dist/modules/flow/functions/issue-discussion.js +86 -0
- package/dist/modules/flow/functions/issue-discussion.js.map +1 -0
- package/dist/modules/flow/functions/issue-read.d.ts +18 -0
- package/dist/modules/flow/functions/issue-read.d.ts.map +1 -0
- package/dist/modules/flow/functions/issue-read.js +159 -0
- package/dist/modules/flow/functions/issue-read.js.map +1 -0
- package/dist/modules/flow/functions/issue-write.d.ts +9 -0
- package/dist/modules/flow/functions/issue-write.d.ts.map +1 -0
- package/dist/modules/flow/functions/issue-write.js +149 -0
- package/dist/modules/flow/functions/issue-write.js.map +1 -0
- package/dist/modules/flow/functions/issueType.d.ts +8 -0
- package/dist/modules/flow/functions/issueType.d.ts.map +1 -0
- package/dist/modules/flow/functions/issueType.js +66 -0
- package/dist/modules/flow/functions/issueType.js.map +1 -0
- package/dist/modules/flow/functions/page.d.ts +22 -0
- package/dist/modules/flow/functions/page.d.ts.map +1 -0
- package/dist/modules/flow/functions/page.js +202 -0
- package/dist/modules/flow/functions/page.js.map +1 -0
- package/dist/modules/flow/functions/project.d.ts +26 -0
- package/dist/modules/flow/functions/project.d.ts.map +1 -0
- package/dist/modules/flow/functions/project.js +381 -0
- package/dist/modules/flow/functions/project.js.map +1 -0
- package/dist/modules/flow/functions/sprint.d.ts +17 -0
- package/dist/modules/flow/functions/sprint.d.ts.map +1 -0
- package/dist/modules/flow/functions/sprint.js +173 -0
- package/dist/modules/flow/functions/sprint.js.map +1 -0
- package/dist/modules/flow/functions/tag.d.ts +14 -0
- package/dist/modules/flow/functions/tag.d.ts.map +1 -0
- package/dist/modules/flow/functions/tag.js +88 -0
- package/dist/modules/flow/functions/tag.js.map +1 -0
- package/dist/modules/flow/index.d.ts +8 -2
- package/dist/modules/flow/index.d.ts.map +1 -1
- package/dist/modules/flow/index.js +7 -2
- package/dist/modules/flow/index.js.map +1 -1
- package/dist/modules/flow/pages.d.ts +1 -1
- package/dist/modules/flow/pages.d.ts.map +1 -1
- package/dist/modules/flow/pages.js +1 -1
- package/dist/modules/flow/pages.js.map +1 -1
- package/dist/modules/flow/queries/calendar.d.ts +21 -0
- package/dist/modules/flow/queries/calendar.d.ts.map +1 -0
- package/dist/modules/flow/queries/calendar.js +31 -0
- package/dist/modules/flow/queries/calendar.js.map +1 -0
- package/dist/modules/flow/queries/issue-dependencies.d.ts +17 -0
- package/dist/modules/flow/queries/issue-dependencies.d.ts.map +1 -0
- package/dist/modules/flow/queries/issue-dependencies.js +46 -0
- package/dist/modules/flow/queries/issue-dependencies.js.map +1 -0
- package/dist/modules/flow/queries/issue-followers.d.ts +6 -0
- package/dist/modules/flow/queries/issue-followers.d.ts.map +1 -0
- package/dist/modules/flow/queries/issue-followers.js +18 -0
- package/dist/modules/flow/queries/issue-followers.js.map +1 -0
- package/dist/modules/flow/queries/issue-list.d.ts +153 -0
- package/dist/modules/flow/queries/issue-list.d.ts.map +1 -0
- package/dist/modules/flow/queries/issue-list.js +439 -0
- package/dist/modules/flow/queries/issue-list.js.map +1 -0
- package/dist/modules/flow/queries/options.d.ts +4 -0
- package/dist/modules/flow/queries/options.d.ts.map +1 -0
- package/dist/modules/flow/queries/options.js +13 -0
- package/dist/modules/flow/queries/options.js.map +1 -0
- package/dist/modules/flow/queries/progress.d.ts +24 -0
- package/dist/modules/flow/queries/progress.d.ts.map +1 -0
- package/dist/modules/flow/queries/progress.js +54 -0
- package/dist/modules/flow/queries/progress.js.map +1 -0
- package/dist/modules/flow/queries/project-list.d.ts +4 -0
- package/dist/modules/flow/queries/project-list.d.ts.map +1 -0
- package/dist/modules/flow/queries/project-list.js +19 -0
- package/dist/modules/flow/queries/project-list.js.map +1 -0
- package/dist/modules/flow_backend/messages.d.ts +1 -2
- package/dist/modules/flow_backend/messages.d.ts.map +1 -1
- package/dist/modules/flow_backend/messages.js +0 -2
- package/dist/modules/flow_backend/messages.js.map +1 -1
- package/dist/modules/flow_backend/routes.js +1 -1
- package/dist/modules/flow_backend/routes.js.map +1 -1
- package/dist/modules/flow_backend/screens/all-epics.d.ts.map +1 -1
- package/dist/modules/flow_backend/screens/all-epics.js +1 -1
- package/dist/modules/flow_backend/screens/all-epics.js.map +1 -1
- package/dist/modules/flow_backend/screens/all-pages.d.ts.map +1 -1
- package/dist/modules/flow_backend/screens/all-pages.js +1 -1
- package/dist/modules/flow_backend/screens/all-pages.js.map +1 -1
- package/dist/modules/flow_backend/screens/epic-detail.js +1 -1
- package/dist/modules/flow_backend/screens/epic-detail.js.map +1 -1
- package/dist/modules/flow_backend/screens/gantt.d.ts.map +1 -1
- package/dist/modules/flow_backend/screens/gantt.js +1 -1
- package/dist/modules/flow_backend/screens/gantt.js.map +1 -1
- package/dist/modules/flow_backend/screens/issue-detail.js +2 -1
- package/dist/modules/flow_backend/screens/issue-detail.js.map +1 -1
- package/dist/modules/flow_backend/screens/issues.d.ts.map +1 -1
- package/dist/modules/flow_backend/screens/issues.js +1 -1
- package/dist/modules/flow_backend/screens/issues.js.map +1 -1
- package/dist/modules/flow_backend/screens/map.js +1 -1
- package/dist/modules/flow_backend/screens/map.js.map +1 -1
- package/dist/modules/flow_backend/screens/my-work.d.ts.map +1 -1
- package/dist/modules/flow_backend/screens/my-work.js +1 -1
- package/dist/modules/flow_backend/screens/my-work.js.map +1 -1
- package/dist/modules/flow_backend/screens/page-detail.js +1 -1
- package/dist/modules/flow_backend/screens/page-detail.js.map +1 -1
- package/dist/modules/flow_backend/screens/project-create.d.ts.map +1 -1
- package/dist/modules/flow_backend/screens/project-create.js +1 -1
- package/dist/modules/flow_backend/screens/project-create.js.map +1 -1
- package/dist/modules/flow_backend/screens/project-pages.d.ts.map +1 -1
- package/dist/modules/flow_backend/screens/project-pages.js +1 -1
- package/dist/modules/flow_backend/screens/project-pages.js.map +1 -1
- package/dist/modules/flow_backend/screens/projects-list.d.ts.map +1 -1
- package/dist/modules/flow_backend/screens/projects-list.js +1 -1
- package/dist/modules/flow_backend/screens/projects-list.js.map +1 -1
- package/dist/modules/flow_backend/screens/sprints.d.ts.map +1 -1
- package/dist/modules/flow_backend/screens/sprints.js +1 -1
- package/dist/modules/flow_backend/screens/sprints.js.map +1 -1
- package/dist/modules/flow_staff_channel/channel-routes.js +1 -1
- package/dist/modules/flow_staff_channel/channel-routes.js.map +1 -1
- package/dist/modules/hospitality_billing/messages.d.ts.map +1 -1
- package/dist/modules/hospitality_billing/messages.js +0 -2
- package/dist/modules/hospitality_billing/messages.js.map +1 -1
- package/dist/modules/hospitality_billing/screens/billing.d.ts.map +1 -1
- package/dist/modules/hospitality_billing/screens/billing.js +1 -1
- package/dist/modules/hospitality_billing/screens/billing.js.map +1 -1
- package/dist/modules/hospitality_billing/screens/page-frame.d.ts +1 -2
- package/dist/modules/hospitality_billing/screens/page-frame.d.ts.map +1 -1
- package/dist/modules/hospitality_billing/screens/page-frame.js +1 -1
- package/dist/modules/hospitality_billing/screens/page-frame.js.map +1 -1
- package/dist/modules/hospitality_core/messages.js +2 -2
- package/dist/modules/hospitality_core/messages.js.map +1 -1
- package/dist/modules/hospitality_core/screens/check-out-prep.d.ts.map +1 -1
- package/dist/modules/hospitality_core/screens/check-out-prep.js +1 -1
- package/dist/modules/hospitality_core/screens/check-out-prep.js.map +1 -1
- package/dist/modules/hospitality_core/screens/front-desk.d.ts.map +1 -1
- package/dist/modules/hospitality_core/screens/front-desk.js +40 -40
- package/dist/modules/hospitality_core/screens/front-desk.js.map +1 -1
- package/dist/modules/hospitality_core/screens/page-frame.d.ts +2 -3
- package/dist/modules/hospitality_core/screens/page-frame.d.ts.map +1 -1
- package/dist/modules/hospitality_core/screens/page-frame.js +3 -3
- package/dist/modules/hospitality_core/screens/page-frame.js.map +1 -1
- package/dist/modules/hospitality_core/screens/tape-chart.d.ts.map +1 -1
- package/dist/modules/hospitality_core/screens/tape-chart.js +3 -12
- package/dist/modules/hospitality_core/screens/tape-chart.js.map +1 -1
- package/dist/modules/hr_backend/screens/employee-form.d.ts.map +1 -1
- package/dist/modules/hr_backend/screens/employee-form.js +1 -1
- package/dist/modules/hr_backend/screens/employee-form.js.map +1 -1
- package/dist/modules/hr_backend/screens/leaves-list.d.ts.map +1 -1
- package/dist/modules/hr_backend/screens/leaves-list.js +1 -1
- package/dist/modules/hr_backend/screens/leaves-list.js.map +1 -1
- package/dist/modules/livedoc/islands.d.ts +9 -0
- package/dist/modules/livedoc/islands.d.ts.map +1 -1
- package/dist/modules/loyalty_backend/messages.d.ts +0 -10
- package/dist/modules/loyalty_backend/messages.d.ts.map +1 -1
- package/dist/modules/loyalty_backend/messages.js +0 -10
- package/dist/modules/loyalty_backend/messages.js.map +1 -1
- package/dist/modules/loyalty_backend/screens/index.d.ts.map +1 -1
- package/dist/modules/loyalty_backend/screens/index.js +5 -5
- package/dist/modules/loyalty_backend/screens/index.js.map +1 -1
- package/dist/modules/loyalty_backend/screens/page-frame.d.ts +2 -3
- package/dist/modules/loyalty_backend/screens/page-frame.d.ts.map +1 -1
- package/dist/modules/loyalty_backend/screens/page-frame.js +2 -2
- package/dist/modules/loyalty_backend/screens/page-frame.js.map +1 -1
- package/dist/modules/mail_backend/index.d.ts.map +1 -1
- package/dist/modules/mail_backend/index.js +0 -2
- package/dist/modules/mail_backend/index.js.map +1 -1
- package/dist/modules/mail_backend/screens/inbox-list.d.ts.map +1 -1
- package/dist/modules/mail_backend/screens/inbox-list.js +1 -1
- package/dist/modules/mail_backend/screens/inbox-list.js.map +1 -1
- package/dist/modules/mail_inbound_backend/index.d.ts.map +1 -1
- package/dist/modules/mail_inbound_backend/index.js +0 -2
- package/dist/modules/mail_inbound_backend/index.js.map +1 -1
- package/dist/modules/mail_inbound_backend/screens/inbound-list.d.ts.map +1 -1
- package/dist/modules/mail_inbound_backend/screens/inbound-list.js +1 -1
- package/dist/modules/mail_inbound_backend/screens/inbound-list.js.map +1 -1
- package/dist/modules/mail_transport_backend/index.d.ts.map +1 -1
- package/dist/modules/mail_transport_backend/index.js +0 -2
- package/dist/modules/mail_transport_backend/index.js.map +1 -1
- package/dist/modules/mail_transport_backend/screens/outbox-list.d.ts.map +1 -1
- package/dist/modules/mail_transport_backend/screens/outbox-list.js +1 -1
- package/dist/modules/mail_transport_backend/screens/outbox-list.js.map +1 -1
- package/dist/modules/manufacturing_backend/screens/order-execution.d.ts.map +1 -1
- package/dist/modules/manufacturing_backend/screens/order-execution.js +1 -1
- package/dist/modules/manufacturing_backend/screens/order-execution.js.map +1 -1
- package/dist/modules/oauth_backend/messages.d.ts +0 -4
- package/dist/modules/oauth_backend/messages.d.ts.map +1 -1
- package/dist/modules/oauth_backend/messages.js +0 -4
- package/dist/modules/oauth_backend/messages.js.map +1 -1
- package/dist/modules/oauth_backend/screens/index.d.ts.map +1 -1
- package/dist/modules/oauth_backend/screens/index.js +5 -5
- package/dist/modules/oauth_backend/screens/index.js.map +1 -1
- package/dist/modules/partner_backend/screens/form.d.ts.map +1 -1
- package/dist/modules/partner_backend/screens/form.js +3 -1
- package/dist/modules/partner_backend/screens/form.js.map +1 -1
- package/dist/modules/partner_backend/screens/list.d.ts.map +1 -1
- package/dist/modules/partner_backend/screens/list.js +1 -1
- package/dist/modules/partner_backend/screens/list.js.map +1 -1
- package/dist/modules/partner_backend/screens/new.d.ts.map +1 -1
- package/dist/modules/partner_backend/screens/new.js +1 -1
- package/dist/modules/partner_backend/screens/new.js.map +1 -1
- package/dist/modules/pricing_backend/index.js +0 -2
- package/dist/modules/pricing_backend/index.js.map +1 -1
- package/dist/modules/pricing_backend/screens/pricelist-detail.d.ts.map +1 -1
- package/dist/modules/pricing_backend/screens/pricelist-detail.js +1 -1
- package/dist/modules/pricing_backend/screens/pricelist-detail.js.map +1 -1
- package/dist/modules/pricing_backend/screens/pricelists-list.d.ts.map +1 -1
- package/dist/modules/pricing_backend/screens/pricelists-list.js +1 -1
- package/dist/modules/pricing_backend/screens/pricelists-list.js.map +1 -1
- package/dist/modules/product_backend/client/attribute-modal.d.mts +5 -5
- package/dist/modules/product_backend/client/attribute-modal.d.mts.map +1 -1
- package/dist/modules/product_backend/client/attribute-modal.mjs +1 -1
- package/dist/modules/product_backend/client/attribute-modal.mjs.map +3 -3
- package/dist/modules/product_backend/client/product-modal.d.mts +8 -8
- package/dist/modules/product_backend/client/product-modal.d.mts.map +1 -1
- package/dist/modules/product_backend/client/product-modal.mjs +1 -1
- package/dist/modules/product_backend/client/product-modal.mjs.map +3 -3
- package/dist/modules/product_backend/client/variant-editor.d.mts +3 -3
- package/dist/modules/product_backend/client/variant-editor.d.mts.map +1 -1
- package/dist/modules/product_backend/client/variant-editor.mjs +1 -1
- package/dist/modules/product_backend/client/variant-editor.mjs.map +3 -3
- package/dist/modules/product_backend/screens/detail.d.ts.map +1 -1
- package/dist/modules/product_backend/screens/detail.js +3 -2
- package/dist/modules/product_backend/screens/detail.js.map +1 -1
- package/dist/modules/product_backend/screens/variant.d.ts.map +1 -1
- package/dist/modules/product_backend/screens/variant.js +3 -2
- package/dist/modules/product_backend/screens/variant.js.map +1 -1
- package/dist/modules/purchase_backend/client/purchase-order-modal.d.mts +185 -0
- package/dist/modules/purchase_backend/client/purchase-order-modal.d.mts.map +1 -0
- package/dist/modules/purchase_backend/client/purchase-order-modal.mjs +2 -0
- package/dist/modules/purchase_backend/client/purchase-order-modal.mjs.map +7 -0
- package/dist/modules/purchase_backend/client/vendor-pricelist-modal.d.mts +52 -0
- package/dist/modules/purchase_backend/client/vendor-pricelist-modal.d.mts.map +1 -0
- package/dist/modules/purchase_backend/client/vendor-pricelist-modal.mjs +2 -0
- package/dist/modules/purchase_backend/client/vendor-pricelist-modal.mjs.map +7 -0
- package/dist/modules/purchase_backend/index.js +83 -14
- package/dist/modules/purchase_backend/index.js.map +1 -1
- package/dist/modules/purchase_backend/modal/context.d.ts +4 -0
- package/dist/modules/purchase_backend/modal/context.d.ts.map +1 -0
- package/dist/modules/purchase_backend/modal/context.js +94 -0
- package/dist/modules/purchase_backend/modal/context.js.map +1 -0
- package/dist/modules/purchase_backend/modal/order-modal-view.d.ts +18 -0
- package/dist/modules/purchase_backend/modal/order-modal-view.d.ts.map +1 -0
- package/dist/modules/purchase_backend/modal/order-modal-view.js +290 -0
- package/dist/modules/purchase_backend/modal/order-modal-view.js.map +1 -0
- package/dist/modules/purchase_backend/modal/pricelist-context.d.ts +3 -0
- package/dist/modules/purchase_backend/modal/pricelist-context.d.ts.map +1 -0
- package/dist/modules/purchase_backend/modal/pricelist-context.js +36 -0
- package/dist/modules/purchase_backend/modal/pricelist-context.js.map +1 -0
- package/dist/modules/purchase_backend/modal/pricelist-view.d.ts +12 -0
- package/dist/modules/purchase_backend/modal/pricelist-view.d.ts.map +1 -0
- package/dist/modules/purchase_backend/modal/pricelist-view.js +78 -0
- package/dist/modules/purchase_backend/modal/pricelist-view.js.map +1 -0
- package/dist/modules/purchase_backend/screens/order-detail.d.ts.map +1 -1
- package/dist/modules/purchase_backend/screens/order-detail.js +4 -2
- package/dist/modules/purchase_backend/screens/order-detail.js.map +1 -1
- package/dist/modules/purchase_backend/screens/overview.d.ts +5 -0
- package/dist/modules/purchase_backend/screens/overview.d.ts.map +1 -1
- package/dist/modules/purchase_backend/screens/overview.js +27 -6
- package/dist/modules/purchase_backend/screens/overview.js.map +1 -1
- package/dist/modules/purchase_backend/screens/rfq-create.d.ts.map +1 -1
- package/dist/modules/purchase_backend/screens/rfq-create.js +1 -1
- package/dist/modules/purchase_backend/screens/rfq-create.js.map +1 -1
- package/dist/modules/purchase_backend/screens/rfqs-list.d.ts +1 -1
- package/dist/modules/purchase_backend/screens/rfqs-list.d.ts.map +1 -1
- package/dist/modules/purchase_backend/screens/rfqs-list.js +1 -1
- package/dist/modules/purchase_backend/screens/rfqs-list.js.map +1 -1
- package/dist/modules/purchase_backend/screens/vendor-pricelist-create.d.ts.map +1 -1
- package/dist/modules/purchase_backend/screens/vendor-pricelist-create.js +1 -1
- package/dist/modules/purchase_backend/screens/vendor-pricelist-create.js.map +1 -1
- package/dist/modules/purchase_backend/screens/vendor-pricelists-list.d.ts +2 -1
- package/dist/modules/purchase_backend/screens/vendor-pricelists-list.d.ts.map +1 -1
- package/dist/modules/purchase_backend/screens/vendor-pricelists-list.js +2 -2
- package/dist/modules/purchase_backend/screens/vendor-pricelists-list.js.map +1 -1
- package/dist/modules/purchase_backend/search.d.ts +1 -1
- package/dist/modules/sale/functions/line-edit.d.ts +4 -0
- package/dist/modules/sale/functions/line-edit.d.ts.map +1 -0
- package/dist/modules/sale/functions/line-edit.js +120 -0
- package/dist/modules/sale/functions/line-edit.js.map +1 -0
- package/dist/modules/sale/index.d.ts.map +1 -1
- package/dist/modules/sale/index.js +16 -1
- package/dist/modules/sale/index.js.map +1 -1
- package/dist/modules/sale_backend/client/invoicing-policy-modal.d.mts +53 -0
- package/dist/modules/sale_backend/client/invoicing-policy-modal.d.mts.map +1 -0
- package/dist/modules/sale_backend/client/invoicing-policy-modal.mjs +2 -0
- package/dist/modules/sale_backend/client/invoicing-policy-modal.mjs.map +7 -0
- package/dist/modules/sale_backend/client/sale-order-modal.d.mts +161 -0
- package/dist/modules/sale_backend/client/sale-order-modal.d.mts.map +1 -0
- package/dist/modules/sale_backend/client/sale-order-modal.mjs +2 -0
- package/dist/modules/sale_backend/client/sale-order-modal.mjs.map +7 -0
- package/dist/modules/sale_backend/index.js +81 -20
- package/dist/modules/sale_backend/index.js.map +1 -1
- package/dist/modules/sale_backend/modal/context.d.ts +4 -0
- package/dist/modules/sale_backend/modal/context.d.ts.map +1 -0
- package/dist/modules/sale_backend/modal/context.js +94 -0
- package/dist/modules/sale_backend/modal/context.js.map +1 -0
- package/dist/modules/sale_backend/modal/order-modal-view.d.ts +18 -0
- package/dist/modules/sale_backend/modal/order-modal-view.d.ts.map +1 -0
- package/dist/modules/sale_backend/modal/order-modal-view.js +289 -0
- package/dist/modules/sale_backend/modal/order-modal-view.js.map +1 -0
- package/dist/modules/sale_backend/modal/policy-context.d.ts +3 -0
- package/dist/modules/sale_backend/modal/policy-context.d.ts.map +1 -0
- package/dist/modules/sale_backend/modal/policy-context.js +26 -0
- package/dist/modules/sale_backend/modal/policy-context.js.map +1 -0
- package/dist/modules/sale_backend/modal/policy-view.d.ts +11 -0
- package/dist/modules/sale_backend/modal/policy-view.d.ts.map +1 -0
- package/dist/modules/sale_backend/modal/policy-view.js +70 -0
- package/dist/modules/sale_backend/modal/policy-view.js.map +1 -0
- package/dist/modules/sale_backend/screens/invoicing-policies-list.d.ts +1 -1
- package/dist/modules/sale_backend/screens/invoicing-policies-list.d.ts.map +1 -1
- package/dist/modules/sale_backend/screens/invoicing-policies-list.js +1 -1
- package/dist/modules/sale_backend/screens/invoicing-policies-list.js.map +1 -1
- package/dist/modules/sale_backend/screens/invoicing-policy-create.d.ts.map +1 -1
- package/dist/modules/sale_backend/screens/invoicing-policy-create.js +1 -1
- package/dist/modules/sale_backend/screens/invoicing-policy-create.js.map +1 -1
- package/dist/modules/sale_backend/screens/order-detail.d.ts.map +1 -1
- package/dist/modules/sale_backend/screens/order-detail.js +3 -1
- package/dist/modules/sale_backend/screens/order-detail.js.map +1 -1
- package/dist/modules/sale_backend/screens/overview.d.ts +3 -0
- package/dist/modules/sale_backend/screens/overview.d.ts.map +1 -1
- package/dist/modules/sale_backend/screens/overview.js +22 -14
- package/dist/modules/sale_backend/screens/overview.js.map +1 -1
- package/dist/modules/sale_backend/screens/quotation-create.d.ts.map +1 -1
- package/dist/modules/sale_backend/screens/quotation-create.js +1 -1
- package/dist/modules/sale_backend/screens/quotation-create.js.map +1 -1
- package/dist/modules/sale_backend/screens/quotations-list.d.ts +1 -1
- package/dist/modules/sale_backend/screens/quotations-list.d.ts.map +1 -1
- package/dist/modules/sale_backend/screens/quotations-list.js +1 -1
- package/dist/modules/sale_backend/screens/quotations-list.js.map +1 -1
- package/dist/modules/sale_backend/screens/sales-orders-list.d.ts.map +1 -1
- package/dist/modules/sale_backend/screens/sales-orders-list.js +1 -1
- package/dist/modules/sale_backend/screens/sales-orders-list.js.map +1 -1
- package/dist/modules/stock/functions/inventory-preview.d.ts +4 -0
- package/dist/modules/stock/functions/inventory-preview.d.ts.map +1 -0
- package/dist/modules/stock/functions/inventory-preview.js +68 -0
- package/dist/modules/stock/functions/inventory-preview.js.map +1 -0
- package/dist/modules/stock/index.d.ts.map +1 -1
- package/dist/modules/stock/index.js +14 -1
- package/dist/modules/stock/index.js.map +1 -1
- package/dist/modules/stock_backend/client/inventory-count-modal.d.mts +60 -0
- package/dist/modules/stock_backend/client/inventory-count-modal.d.mts.map +1 -0
- package/dist/modules/stock_backend/client/inventory-count-modal.mjs +2 -0
- package/dist/modules/stock_backend/client/inventory-count-modal.mjs.map +7 -0
- package/dist/modules/stock_backend/client/stock-configuration-modal.d.mts +105 -0
- package/dist/modules/stock_backend/client/stock-configuration-modal.d.mts.map +1 -0
- package/dist/modules/stock_backend/client/stock-configuration-modal.mjs +2 -0
- package/dist/modules/stock_backend/client/stock-configuration-modal.mjs.map +7 -0
- package/dist/modules/stock_backend/client/stock-transfer-modal.d.mts +130 -0
- package/dist/modules/stock_backend/client/stock-transfer-modal.d.mts.map +1 -0
- package/dist/modules/stock_backend/client/stock-transfer-modal.mjs +2 -0
- package/dist/modules/stock_backend/client/stock-transfer-modal.mjs.map +7 -0
- package/dist/modules/stock_backend/functions/index.d.ts +10 -0
- package/dist/modules/stock_backend/functions/index.d.ts.map +1 -0
- package/dist/modules/stock_backend/functions/index.js +20 -0
- package/dist/modules/stock_backend/functions/index.js.map +1 -0
- package/dist/modules/stock_backend/functions.d.ts +1 -9
- package/dist/modules/stock_backend/functions.d.ts.map +1 -1
- package/dist/modules/stock_backend/functions.js +1 -18
- package/dist/modules/stock_backend/functions.js.map +1 -1
- package/dist/modules/stock_backend/index.js +52 -0
- package/dist/modules/stock_backend/index.js.map +1 -1
- package/dist/modules/stock_backend/islands.d.ts +8 -0
- package/dist/modules/stock_backend/islands.d.ts.map +1 -1
- package/dist/modules/stock_backend/islands.js +41 -0
- package/dist/modules/stock_backend/islands.js.map +1 -1
- package/dist/modules/stock_backend/modal/configuration-context.d.ts +3 -0
- package/dist/modules/stock_backend/modal/configuration-context.d.ts.map +1 -0
- package/dist/modules/stock_backend/modal/configuration-context.js +65 -0
- package/dist/modules/stock_backend/modal/configuration-context.js.map +1 -0
- package/dist/modules/stock_backend/modal/configuration-view.d.ts +21 -0
- package/dist/modules/stock_backend/modal/configuration-view.d.ts.map +1 -0
- package/dist/modules/stock_backend/modal/configuration-view.js +201 -0
- package/dist/modules/stock_backend/modal/configuration-view.js.map +1 -0
- package/dist/modules/stock_backend/modal/configuration.d.ts +20 -0
- package/dist/modules/stock_backend/modal/configuration.d.ts.map +1 -0
- package/dist/modules/stock_backend/modal/configuration.js +117 -0
- package/dist/modules/stock_backend/modal/configuration.js.map +1 -0
- package/dist/modules/stock_backend/modal/inventory-context.d.ts +3 -0
- package/dist/modules/stock_backend/modal/inventory-context.d.ts.map +1 -0
- package/dist/modules/stock_backend/modal/inventory-context.js +37 -0
- package/dist/modules/stock_backend/modal/inventory-context.js.map +1 -0
- package/dist/modules/stock_backend/modal/inventory-view.d.ts +14 -0
- package/dist/modules/stock_backend/modal/inventory-view.d.ts.map +1 -0
- package/dist/modules/stock_backend/modal/inventory-view.js +142 -0
- package/dist/modules/stock_backend/modal/inventory-view.js.map +1 -0
- package/dist/modules/stock_backend/modal/transfer-context.d.ts +3 -0
- package/dist/modules/stock_backend/modal/transfer-context.d.ts.map +1 -0
- package/dist/modules/stock_backend/modal/transfer-context.js +54 -0
- package/dist/modules/stock_backend/modal/transfer-context.js.map +1 -0
- package/dist/modules/stock_backend/modal/transfer-view.d.ts +15 -0
- package/dist/modules/stock_backend/modal/transfer-view.d.ts.map +1 -0
- package/dist/modules/stock_backend/modal/transfer-view.js +252 -0
- package/dist/modules/stock_backend/modal/transfer-view.js.map +1 -0
- package/dist/modules/stock_backend/routes.d.ts.map +1 -1
- package/dist/modules/stock_backend/routes.js +117 -34
- package/dist/modules/stock_backend/routes.js.map +1 -1
- package/dist/modules/stock_backend/screens/forecast.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/forecast.js +5 -32
- package/dist/modules/stock_backend/screens/forecast.js.map +1 -1
- package/dist/modules/stock_backend/screens/inventory.d.ts +3 -1
- package/dist/modules/stock_backend/screens/inventory.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/inventory.js +27 -74
- package/dist/modules/stock_backend/screens/inventory.js.map +1 -1
- package/dist/modules/stock_backend/screens/location-create.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/location-create.js +1 -1
- package/dist/modules/stock_backend/screens/location-create.js.map +1 -1
- package/dist/modules/stock_backend/screens/locations-list.d.ts +1 -1
- package/dist/modules/stock_backend/screens/locations-list.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/locations-list.js +1 -1
- package/dist/modules/stock_backend/screens/locations-list.js.map +1 -1
- package/dist/modules/stock_backend/screens/lot-create.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/lot-create.js +1 -1
- package/dist/modules/stock_backend/screens/lot-create.js.map +1 -1
- package/dist/modules/stock_backend/screens/lot-detail.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/lot-detail.js +3 -2
- package/dist/modules/stock_backend/screens/lot-detail.js.map +1 -1
- package/dist/modules/stock_backend/screens/lots-list.d.ts +1 -1
- package/dist/modules/stock_backend/screens/lots-list.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/lots-list.js +1 -1
- package/dist/modules/stock_backend/screens/lots-list.js.map +1 -1
- package/dist/modules/stock_backend/screens/overview.d.ts +9 -0
- package/dist/modules/stock_backend/screens/overview.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/overview.js +38 -0
- package/dist/modules/stock_backend/screens/overview.js.map +1 -0
- package/dist/modules/stock_backend/screens/picking-type-create.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/picking-type-create.js +1 -1
- package/dist/modules/stock_backend/screens/picking-type-create.js.map +1 -1
- package/dist/modules/stock_backend/screens/picking-types-list.d.ts +1 -1
- package/dist/modules/stock_backend/screens/picking-types-list.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/picking-types-list.js +1 -1
- package/dist/modules/stock_backend/screens/picking-types-list.js.map +1 -1
- package/dist/modules/stock_backend/screens/replenishment-create.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/replenishment-create.js +1 -1
- package/dist/modules/stock_backend/screens/replenishment-create.js.map +1 -1
- package/dist/modules/stock_backend/screens/replenishment-list.d.ts +2 -2
- package/dist/modules/stock_backend/screens/replenishment-list.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/replenishment-list.js +2 -2
- package/dist/modules/stock_backend/screens/replenishment-list.js.map +1 -1
- package/dist/modules/stock_backend/screens/stock-route-create.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/stock-route-create.js +1 -1
- package/dist/modules/stock_backend/screens/stock-route-create.js.map +1 -1
- package/dist/modules/stock_backend/screens/stock-route-detail.js +2 -1
- package/dist/modules/stock_backend/screens/stock-route-detail.js.map +1 -1
- package/dist/modules/stock_backend/screens/stock-routes-list.d.ts +1 -1
- package/dist/modules/stock_backend/screens/stock-routes-list.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/stock-routes-list.js +1 -1
- package/dist/modules/stock_backend/screens/stock-routes-list.js.map +1 -1
- package/dist/modules/stock_backend/screens/transfer-create.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/transfer-create.js +1 -1
- package/dist/modules/stock_backend/screens/transfer-create.js.map +1 -1
- package/dist/modules/stock_backend/screens/transfer-detail.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/transfer-detail.js +3 -2
- package/dist/modules/stock_backend/screens/transfer-detail.js.map +1 -1
- package/dist/modules/stock_backend/screens/transfers-list.d.ts +1 -1
- package/dist/modules/stock_backend/screens/transfers-list.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/transfers-list.js +1 -1
- package/dist/modules/stock_backend/screens/transfers-list.js.map +1 -1
- package/dist/modules/stock_backend/screens/warehouse-create.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/warehouse-create.js +1 -1
- package/dist/modules/stock_backend/screens/warehouse-create.js.map +1 -1
- package/dist/modules/stock_backend/screens/warehouses-list.d.ts +1 -1
- package/dist/modules/stock_backend/screens/warehouses-list.d.ts.map +1 -1
- package/dist/modules/stock_backend/screens/warehouses-list.js +1 -1
- package/dist/modules/stock_backend/screens/warehouses-list.js.map +1 -1
- package/dist/modules/stock_backend/search.d.ts +29 -0
- package/dist/modules/stock_backend/search.d.ts.map +1 -1
- package/dist/modules/stock_backend/search.js +22 -0
- package/dist/modules/stock_backend/search.js.map +1 -1
- package/dist/modules/user_backend/client/access-policy-modal.d.mts +4 -4
- package/dist/modules/user_backend/client/access-policy-modal.d.mts.map +1 -1
- package/dist/modules/user_backend/client/access-policy-modal.mjs +1 -1
- package/dist/modules/user_backend/client/access-policy-modal.mjs.map +3 -3
- package/dist/modules/user_backend/client/role-modal.d.mts +6 -6
- package/dist/modules/user_backend/client/role-modal.d.mts.map +1 -1
- package/dist/modules/user_backend/client/role-modal.mjs +1 -1
- package/dist/modules/user_backend/client/role-modal.mjs.map +3 -3
- package/dist/modules/user_backend/client/user-modal.d.mts +9 -9
- package/dist/modules/user_backend/client/user-modal.d.mts.map +1 -1
- package/dist/modules/user_backend/client/user-modal.mjs +1 -1
- package/dist/modules/user_backend/client/user-modal.mjs.map +3 -3
- package/dist/modules/user_backend/messages.d.ts +0 -6
- package/dist/modules/user_backend/messages.d.ts.map +1 -1
- package/dist/modules/user_backend/messages.js +0 -6
- package/dist/modules/user_backend/messages.js.map +1 -1
- package/dist/modules/user_backend/screens/access-policies-list.d.ts.map +1 -1
- package/dist/modules/user_backend/screens/access-policies-list.js +1 -1
- package/dist/modules/user_backend/screens/access-policies-list.js.map +1 -1
- package/dist/modules/user_backend/screens/profile-form.d.ts.map +1 -1
- package/dist/modules/user_backend/screens/profile-form.js +1 -1
- package/dist/modules/user_backend/screens/profile-form.js.map +1 -1
- package/dist/modules/user_backend/screens/roles-list.d.ts.map +1 -1
- package/dist/modules/user_backend/screens/roles-list.js +1 -1
- package/dist/modules/user_backend/screens/roles-list.js.map +1 -1
- package/dist/modules/user_backend/screens/users-list.d.ts.map +1 -1
- package/dist/modules/user_backend/screens/users-list.js +1 -1
- package/dist/modules/user_backend/screens/users-list.js.map +1 -1
- package/dist/modules/website_backend/screens/page-frame.d.ts +2 -3
- package/dist/modules/website_backend/screens/page-frame.d.ts.map +1 -1
- package/dist/modules/website_backend/screens/page-frame.js +2 -2
- package/dist/modules/website_backend/screens/page-frame.js.map +1 -1
- package/dist/permission-catalogue.d.ts.map +1 -1
- package/dist/permission-catalogue.js +2 -0
- package/dist/permission-catalogue.js.map +1 -1
- package/dist/role-templates.d.ts.map +1 -1
- package/dist/role-templates.js +23 -3
- package/dist/role-templates.js.map +1 -1
- package/dist/scaffold/index.js +1 -1
- package/dist/ui/client/live-doc-shell.d.ts +27 -1
- package/dist/ui/client/live-doc-shell.d.ts.map +1 -1
- package/dist/ui/client/live-doc-shell.js +43 -5
- package/dist/ui/client/live-doc-shell.js.map +1 -1
- package/dist/ui/client/live-doc-tail.d.ts +4 -0
- package/dist/ui/client/live-doc-tail.d.ts.map +1 -0
- package/dist/ui/client/live-doc-tail.js +21 -0
- package/dist/ui/client/live-doc-tail.js.map +1 -0
- package/dist/ui/client/live-doc-view.d.ts +18 -0
- package/dist/ui/client/live-doc-view.d.ts.map +1 -1
- package/dist/ui/client/live-doc-view.js +183 -4
- package/dist/ui/client/live-doc-view.js.map +1 -1
- package/dist/ui/client/live-doc.css +81 -0
- package/dist/ui/client/live-doc.d.mts +6 -3
- package/dist/ui/client/live-doc.d.mts.map +1 -1
- package/dist/ui/client/live-doc.mjs +14 -10
- package/dist/ui/client/live-doc.mjs.map +4 -4
- package/dist/ui/client/record-modal-form.d.ts +10 -0
- package/dist/ui/client/record-modal-form.d.ts.map +1 -1
- package/dist/ui/client/record-modal-form.js +3 -1
- package/dist/ui/client/record-modal-form.js.map +1 -1
- package/dist/ui/client/record-modal.d.ts +9 -1
- package/dist/ui/client/record-modal.d.ts.map +1 -1
- package/dist/ui/client/record-modal.js +78 -17
- package/dist/ui/client/record-modal.js.map +1 -1
- package/dist/ui/index.d.ts +2 -2
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +2 -2
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/layout.d.ts +2 -2
- package/dist/ui/layout.d.ts.map +1 -1
- package/dist/ui/layout.js +3 -3
- package/dist/ui/layout.js.map +1 -1
- package/dist/ui/record-modal.d.ts +3 -0
- package/dist/ui/record-modal.d.ts.map +1 -1
- package/dist/ui/record-modal.js +15 -1
- package/dist/ui/record-modal.js.map +1 -1
- package/package.json +4 -4
- package/dist/modules/flow/functions.d.ts +0 -3
- package/dist/modules/flow/functions.d.ts.map +0 -1
- package/dist/modules/flow/functions.js +0 -1857
- package/dist/modules/flow/functions.js.map +0 -1
- package/dist/modules/flow/operations.d.ts +0 -414
- package/dist/modules/flow/operations.d.ts.map +0 -1
- package/dist/modules/flow/operations.js +0 -1671
- package/dist/modules/flow/operations.js.map +0 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { canReadProject, readableProject } from '../membership.js';
|
|
2
|
+
import { invalid, issue } from '../domain/command.js';
|
|
3
|
+
import { defineFn } from '@ketvietlab/ketjs';
|
|
4
|
+
import { membershipEffects } from './effects.js';
|
|
5
|
+
export async function boardScopeHandler(ctx) {
|
|
6
|
+
if (!ctx.actor)
|
|
7
|
+
return { projectId: null };
|
|
8
|
+
const held = (await ctx.db.select('flow.BoardScope', { userId: ctx.actor }))[0];
|
|
9
|
+
if (!held)
|
|
10
|
+
return { projectId: null };
|
|
11
|
+
// Where they were last is not where they may still go: somebody taken off
|
|
12
|
+
// a project keeps the row that remembers it, and answering with it would
|
|
13
|
+
// send the screen to a board that is no longer theirs — and would name a
|
|
14
|
+
// project they can no longer be told exists.
|
|
15
|
+
return (await canReadProject(ctx, held.projectId)) ? { projectId: held.projectId } : { projectId: null };
|
|
16
|
+
}
|
|
17
|
+
export async function boardRememberHandler(ctx, args) {
|
|
18
|
+
if (!ctx.actor)
|
|
19
|
+
return invalid(issue('actor', 'flow.error.actorRequired'));
|
|
20
|
+
const project = await readableProject(ctx, args.projectId);
|
|
21
|
+
if (!project || project.active !== true)
|
|
22
|
+
return invalid(issue('projectId', 'flow.error.notFound'));
|
|
23
|
+
// One row per reader **per company**. The id used to be the user id
|
|
24
|
+
// alone, which read as "one row per reader" and was not: the primary key
|
|
25
|
+
// is not company-scoped, so somebody who works in two companies got one
|
|
26
|
+
// row in whichever they opened first, and every later company answered
|
|
27
|
+
// `ok: true` and remembered nothing. Silent, and only visible as a board
|
|
28
|
+
// that would not stay where you left it (FLW-023).
|
|
29
|
+
const id = `${String(ctx.scope.company)}:${String(ctx.actor)}`;
|
|
30
|
+
const row = { id, userId: ctx.actor, projectId: args.projectId, updatedAt: new Date().toISOString() };
|
|
31
|
+
await ctx.db.insertIfAbsent('flow.BoardScope', row);
|
|
32
|
+
await ctx.db.update('flow.BoardScope', { id }, row);
|
|
33
|
+
return { ok: true };
|
|
34
|
+
}
|
|
35
|
+
export const boardFunctions = {
|
|
36
|
+
/**
|
|
37
|
+
* The project this reader's board last showed, if any.
|
|
38
|
+
*
|
|
39
|
+
* Answers null rather than guessing a project: the board asks them to pick
|
|
40
|
+
* once, and a wrong guess would show one team's work to somebody who wanted
|
|
41
|
+
* another's.
|
|
42
|
+
*/
|
|
43
|
+
'board.scope': defineFn({
|
|
44
|
+
input: {},
|
|
45
|
+
output: { projectId: 'id?' },
|
|
46
|
+
effects: ['read:flow.BoardScope', ...membershipEffects],
|
|
47
|
+
agent: true,
|
|
48
|
+
handler: boardScopeHandler,
|
|
49
|
+
}),
|
|
50
|
+
'board.remember': defineFn({
|
|
51
|
+
input: { projectId: 'id' },
|
|
52
|
+
output: { ok: 'bool', errors: 'json?' },
|
|
53
|
+
effects: ['read:flow.BoardScope', 'write:flow.BoardScope', 'read:flow.Project', ...membershipEffects],
|
|
54
|
+
idempotent: true,
|
|
55
|
+
agent: true,
|
|
56
|
+
handler: boardRememberHandler,
|
|
57
|
+
}),
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=board.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"board.js","sourceRoot":"","sources":["../../../../../../../../packages/ketsuite/src/modules/flow/functions/board.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhD,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,GAAQ;IAC9C,IAAI,CAAC,GAAG,CAAC,KAAK;QAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAA;IAC1C,MAAM,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/E,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAA;IACrC,0EAA0E;IAC1E,yEAAyE;IACzE,yEAAyE;IACzE,6CAA6C;IAC7C,OAAO,CAAC,MAAM,cAAc,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,IAA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QACT,MAAM,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE;QAC5B,OAAO,EAAE,CAAC,sBAAsB,EAAE,GAAG,iBAAiB,CAAC;QACvD,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,iBAAiB;KAC3B,CAAC;IACF,gBAAgB,EAAE,QAAQ,CAAC;QACzB,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;QAC1B,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE;QACvC,OAAO,EAAE,CAAC,sBAAsB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,GAAG,iBAAiB,CAAC;QACrG,UAAU,EAAE,IAAI;QAChB,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,oBAAoB;KAC9B,CAAC;CACH,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Ctx, FnSpec } from '@ketvietlab/ketjs';
|
|
2
|
+
export declare function columnListHandler(ctx: Ctx, args: Record<string, unknown>): Promise<import("@ketvietlab/ketjs").Row[]>;
|
|
3
|
+
export declare function columnArchiveHandler(ctx: Ctx, args: Record<string, unknown>): Promise<import("../domain/command.ts").FlowResult | {
|
|
4
|
+
ok: boolean;
|
|
5
|
+
id: unknown;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const columnFunctions: Record<string, FnSpec>;
|
|
8
|
+
//# sourceMappingURL=column.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ketsuite/src/modules/flow/functions/column.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAOpD,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,8CAW9E;AAED,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;GAOjF;AAED,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA0ClD,CAAA"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { canReadProject, readableRow } from '../membership.js';
|
|
2
|
+
import { invalid, issue, n } from '../domain/command.js';
|
|
3
|
+
import { defineFn } from '@ketvietlab/ketjs';
|
|
4
|
+
import { membershipEffects } from './effects.js';
|
|
5
|
+
import { saveEntity } from './entity-save.js';
|
|
6
|
+
export async function columnListHandler(ctx, args) {
|
|
7
|
+
// A project's configuration is the project. Answering with its columns
|
|
8
|
+
// for somebody who cannot see the project describes it to them.
|
|
9
|
+
if (!(await canReadProject(ctx, args.projectId)))
|
|
10
|
+
return [];
|
|
11
|
+
const rows = await ctx.db.select('flow.Column', args.includeArchived === true
|
|
12
|
+
? { projectId: args.projectId }
|
|
13
|
+
: { projectId: args.projectId, active: true });
|
|
14
|
+
return rows.sort((a, b) => n(a.sequence) - n(b.sequence) || String(a.id).localeCompare(String(b.id)));
|
|
15
|
+
}
|
|
16
|
+
export async function columnArchiveHandler(ctx, args) {
|
|
17
|
+
const existing = await readableRow(ctx, 'flow.Column', args.id);
|
|
18
|
+
if (!existing)
|
|
19
|
+
return invalid(issue('id', 'flow.error.notFound'));
|
|
20
|
+
const held = await ctx.db.select('flow.Issue', { columnId: args.id, active: true });
|
|
21
|
+
if (held.length)
|
|
22
|
+
return invalid(issue('id', 'flow.error.columnHasIssues'));
|
|
23
|
+
await ctx.db.update('flow.Column', { id: args.id }, { active: false });
|
|
24
|
+
return { ok: true, id: args.id };
|
|
25
|
+
}
|
|
26
|
+
export const columnFunctions = {
|
|
27
|
+
'column.list': defineFn({
|
|
28
|
+
input: { projectId: 'id', includeArchived: 'bool?' },
|
|
29
|
+
output: {
|
|
30
|
+
id: 'id',
|
|
31
|
+
projectId: 'id',
|
|
32
|
+
code: 'text',
|
|
33
|
+
name: 'text',
|
|
34
|
+
sequence: 'int',
|
|
35
|
+
terminalState: 'bool',
|
|
36
|
+
active: 'bool',
|
|
37
|
+
},
|
|
38
|
+
effects: [
|
|
39
|
+
'read:flow.Column',
|
|
40
|
+
'read:flow.Project',
|
|
41
|
+
'read:flow.ProjectMember',
|
|
42
|
+
'read:flow.ProjectAccessGrant',
|
|
43
|
+
'read:user.User',
|
|
44
|
+
...membershipEffects,
|
|
45
|
+
],
|
|
46
|
+
agent: true,
|
|
47
|
+
handler: columnListHandler,
|
|
48
|
+
}),
|
|
49
|
+
'column.save': saveEntity('flow.Column', ['id', 'projectId', 'code', 'name', 'sequence', 'terminalState', 'active'], ['projectId', 'code', 'name'], (args, existing) => ({
|
|
50
|
+
sequence: existing?.sequence ?? 10,
|
|
51
|
+
terminalState: existing?.terminalState ?? false,
|
|
52
|
+
active: existing?.active ?? true,
|
|
53
|
+
...args,
|
|
54
|
+
})),
|
|
55
|
+
'column.archive': defineFn({
|
|
56
|
+
input: { id: 'id' },
|
|
57
|
+
output: { ok: 'bool', id: 'id?', errors: 'json?' },
|
|
58
|
+
effects: ['read:flow.Column', 'write:flow.Column', 'read:flow.Issue', ...membershipEffects],
|
|
59
|
+
idempotent: true,
|
|
60
|
+
agent: true,
|
|
61
|
+
handler: columnArchiveHandler,
|
|
62
|
+
}),
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=column.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column.js","sourceRoot":"","sources":["../../../../../../../../packages/ketsuite/src/modules/flow/functions/column.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9D,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,cA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MAAM,IAAI,IAAI;QAChC,GAAG,IAAI;KACR,CAAC,CACH;IACD,gBAAgB,EAAE,QAAQ,CAAC;QACzB,KAAK,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE;QACnB,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE;QAClD,OAAO,EAAE,CAAC,kBAAkB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,GAAG,iBAAiB,CAAC;QAC3F,UAAU,EAAE,IAAI;QAChB,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,oBAAoB;KAC9B,CAAC;CACH,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What passing the membership gate costs in effects.
|
|
3
|
+
*
|
|
4
|
+
* Spread into every command that touches a project's data. Named because it is
|
|
5
|
+
* not a capability one function happens to need — it is the condition all of
|
|
6
|
+
* them read under, and a list copied at thirty call sites is a list that will
|
|
7
|
+
* disagree with itself.
|
|
8
|
+
*/
|
|
9
|
+
export declare const membershipEffects: readonly ['read:flow.Project', 'read:flow.ProjectMember', 'read:flow.ProjectAccessGrant', 'read:user.User'];
|
|
10
|
+
export declare const flowReadEffects: readonly ['read:flow.Project', 'read:flow.ProjectMember', 'read:flow.ProjectAccessGrant', 'read:flow.Column', 'read:flow.IssueType', 'read:flow.FieldDef', 'read:mail.Follower', 'read:flow.IssueFieldValue', 'read:flow.Epic', 'read:flow.Sprint', 'read:flow.Issue', 'read:flow.IssueDependency', 'read:flow.Tag', 'read:flow.IssueTag', 'read:user.User', 'read:mail.Thread', 'read:mail.Message'];
|
|
11
|
+
/**
|
|
12
|
+
* What writing one system entry to an issue's thread costs in effects.
|
|
13
|
+
*
|
|
14
|
+
* `postMessage` resolves the author, addresses the followers and writes the
|
|
15
|
+
* notification, so a command that leaves a timeline entry touches the same mail
|
|
16
|
+
* tables a comment does. Named here because three commands now do it.
|
|
17
|
+
*/
|
|
18
|
+
export declare const timelineEntryEffects: readonly ['read:mail.Thread', 'read:mail.Follower', 'write:mail.Follower', 'read:mail.FollowerSubtype', 'write:mail.FollowerSubtype', 'read:mail.Subtype', 'write:mail.Message', 'write:mail.TrackingValue', 'write:mail.Notification', 'read:user.User', 'read:partner.Partner'];
|
|
19
|
+
export declare const issueWriteEffects: readonly ["read:flow.Project", "read:flow.ProjectMember", "read:flow.ProjectAccessGrant", "read:flow.Column", "read:flow.IssueType", "read:flow.FieldDef", "read:mail.Follower", "read:flow.IssueFieldValue", "read:flow.Epic", "read:flow.Sprint", "read:flow.Issue", "read:flow.IssueDependency", "read:flow.Tag", "read:flow.IssueTag", "read:user.User", "read:mail.Thread", "read:mail.Message", "write:flow.Issue", "write:flow.IssueTag", "write:flow.IssueFieldValue", "write:mail.Thread", "read:mail.Follower", "write:mail.Follower", "read:mail.FollowerSubtype", "write:mail.FollowerSubtype", "read:mail.Subtype", "write:mail.Message", "write:mail.Mention", "write:mail.MessageAttachment", "write:mail.TrackingValue", "write:mail.Notification", "read:partner.Partner"];
|
|
20
|
+
export declare const commentEffects: readonly ['read:flow.Issue', 'read:mail.Thread', 'write:mail.Thread', 'read:mail.Message', 'write:mail.Message', 'read:mail.Follower', 'read:mail.FollowerSubtype', 'read:mail.Subtype', 'write:mail.Mention', 'write:mail.MessageAttachment', 'write:mail.TrackingValue', 'write:mail.Notification', 'write:mail.Follower', 'write:mail.FollowerSubtype', 'read:user.User', 'read:partner.Partner'];
|
|
21
|
+
//# sourceMappingURL=effects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effects.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ketsuite/src/modules/flow/functions/effects.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,YAC5B,mBAAmB,EACnB,yBAAyB,EACzB,8BAA8B,EAC9B,gBAAgB,CACR,CAAA;AAEV,eAAO,MAAM,eAAe,YAC1B,mBAAmB,EAInB,yBAAyB,EACzB,8BAA8B,EAC9B,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,2BAA2B,EAC3B,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,2BAA2B,EAC3B,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,CACX,CAAA;AAEV;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,YAC/B,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,2BAA2B,EAC3B,4BAA4B,EAC5B,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,EAC1B,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,CACd,CAAA;AAEV,eAAO,MAAM,iBAAiB,6vBAoBpB,CAAA;AAEV,eAAO,MAAM,cAAc,YACzB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,2BAA2B,EAC3B,mBAAmB,EACnB,oBAAoB,EACpB,8BAA8B,EAC9B,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,EACrB,4BAA4B,EAC5B,gBAAgB,EAChB,sBAAsB,CACd,CAAA"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What passing the membership gate costs in effects.
|
|
3
|
+
*
|
|
4
|
+
* Spread into every command that touches a project's data. Named because it is
|
|
5
|
+
* not a capability one function happens to need — it is the condition all of
|
|
6
|
+
* them read under, and a list copied at thirty call sites is a list that will
|
|
7
|
+
* disagree with itself.
|
|
8
|
+
*/
|
|
9
|
+
export const membershipEffects = [
|
|
10
|
+
'read:flow.Project',
|
|
11
|
+
'read:flow.ProjectMember',
|
|
12
|
+
'read:flow.ProjectAccessGrant',
|
|
13
|
+
'read:user.User',
|
|
14
|
+
];
|
|
15
|
+
export const flowReadEffects = [
|
|
16
|
+
'read:flow.Project',
|
|
17
|
+
// The membership gate every Flow read now passes through — see membership.ts.
|
|
18
|
+
// Named here rather than at each call site because it is not a capability one
|
|
19
|
+
// function happens to need; it is the condition all of them read under.
|
|
20
|
+
'read:flow.ProjectMember',
|
|
21
|
+
'read:flow.ProjectAccessGrant',
|
|
22
|
+
'read:flow.Column',
|
|
23
|
+
'read:flow.IssueType',
|
|
24
|
+
'read:flow.FieldDef',
|
|
25
|
+
'read:mail.Follower',
|
|
26
|
+
'read:flow.IssueFieldValue',
|
|
27
|
+
'read:flow.Epic',
|
|
28
|
+
'read:flow.Sprint',
|
|
29
|
+
'read:flow.Issue',
|
|
30
|
+
'read:flow.IssueDependency',
|
|
31
|
+
'read:flow.Tag',
|
|
32
|
+
'read:flow.IssueTag',
|
|
33
|
+
'read:user.User',
|
|
34
|
+
'read:mail.Thread',
|
|
35
|
+
'read:mail.Message',
|
|
36
|
+
];
|
|
37
|
+
/**
|
|
38
|
+
* What writing one system entry to an issue's thread costs in effects.
|
|
39
|
+
*
|
|
40
|
+
* `postMessage` resolves the author, addresses the followers and writes the
|
|
41
|
+
* notification, so a command that leaves a timeline entry touches the same mail
|
|
42
|
+
* tables a comment does. Named here because three commands now do it.
|
|
43
|
+
*/
|
|
44
|
+
export const timelineEntryEffects = [
|
|
45
|
+
'read:mail.Thread',
|
|
46
|
+
'read:mail.Follower',
|
|
47
|
+
'write:mail.Follower',
|
|
48
|
+
'read:mail.FollowerSubtype',
|
|
49
|
+
'write:mail.FollowerSubtype',
|
|
50
|
+
'read:mail.Subtype',
|
|
51
|
+
'write:mail.Message',
|
|
52
|
+
'write:mail.TrackingValue',
|
|
53
|
+
'write:mail.Notification',
|
|
54
|
+
'read:user.User',
|
|
55
|
+
'read:partner.Partner',
|
|
56
|
+
];
|
|
57
|
+
export const issueWriteEffects = [
|
|
58
|
+
...flowReadEffects,
|
|
59
|
+
'write:flow.Issue',
|
|
60
|
+
'write:flow.IssueTag',
|
|
61
|
+
'write:flow.IssueFieldValue',
|
|
62
|
+
'write:mail.Thread',
|
|
63
|
+
// Saving an issue now subscribes its author and its assignee to the thread,
|
|
64
|
+
// and writes a system entry when it changes hands — so it touches the same
|
|
65
|
+
// mail tables a comment does.
|
|
66
|
+
'read:mail.Follower',
|
|
67
|
+
'write:mail.Follower',
|
|
68
|
+
'read:mail.FollowerSubtype',
|
|
69
|
+
'write:mail.FollowerSubtype',
|
|
70
|
+
'read:mail.Subtype',
|
|
71
|
+
'write:mail.Message',
|
|
72
|
+
'write:mail.Mention',
|
|
73
|
+
'write:mail.MessageAttachment',
|
|
74
|
+
'write:mail.TrackingValue',
|
|
75
|
+
'write:mail.Notification',
|
|
76
|
+
'read:partner.Partner',
|
|
77
|
+
];
|
|
78
|
+
export const commentEffects = [
|
|
79
|
+
'read:flow.Issue',
|
|
80
|
+
'read:mail.Thread',
|
|
81
|
+
'write:mail.Thread',
|
|
82
|
+
'read:mail.Message',
|
|
83
|
+
'write:mail.Message',
|
|
84
|
+
'read:mail.Follower',
|
|
85
|
+
'read:mail.FollowerSubtype',
|
|
86
|
+
'read:mail.Subtype',
|
|
87
|
+
'write:mail.Mention',
|
|
88
|
+
'write:mail.MessageAttachment',
|
|
89
|
+
'write:mail.TrackingValue',
|
|
90
|
+
'write:mail.Notification',
|
|
91
|
+
'write:mail.Follower',
|
|
92
|
+
'write:mail.FollowerSubtype',
|
|
93
|
+
'read:user.User',
|
|
94
|
+
'read:partner.Partner',
|
|
95
|
+
];
|
|
96
|
+
//# sourceMappingURL=effects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effects.js","sourceRoot":"","sources":["../../../../../../../../packages/ketsuite/src/modules/flow/functions/effects.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,mBAAmB;IACnB,yBAAyB;IACzB,8BAA8B;IAC9B,gBAAgB;CACR,CAAA;AAEV,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,mBAAmB;IACnB,8EAA8E;IAC9E,8EAA8E;IAC9E,wEAAwE;IACxE,yBAAyB;IACzB,8BAA8B;IAC9B,kBAAkB;IAClB,qBAAqB;IACrB,oBAAoB;IACpB,oBAAoB;IACpB,2BAA2B;IAC3B,gBAAgB;IAChB,kBAAkB;IAClB,iBAAiB;IACjB,2BAA2B;IAC3B,eAAe;IACf,oBAAoB;IACpB,gBAAgB;IAChB,kBAAkB;IAClB,mBAAmB;CACX,CAAA;AAEV;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,kBAAkB;IAClB,oBAAoB;IACpB,qBAAqB;IACrB,2BAA2B;IAC3B,4BAA4B;IAC5B,mBAAmB;IACnB,oBAAoB;IACpB,0BAA0B;IAC1B,yBAAyB;IACzB,gBAAgB;IAChB,sBAAsB;CACd,CAAA;AAEV,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,GAAG,eAAe;IAClB,kBAAkB;IAClB,qBAAqB;IACrB,4BAA4B;IAC5B,mBAAmB;IACnB,4EAA4E;IAC5E,2EAA2E;IAC3E,8BAA8B;IAC9B,oBAAoB;IACpB,qBAAqB;IACrB,2BAA2B;IAC3B,4BAA4B;IAC5B,mBAAmB;IACnB,oBAAoB;IACpB,oBAAoB;IACpB,8BAA8B;IAC9B,0BAA0B;IAC1B,yBAAyB;IACzB,sBAAsB;CACd,CAAA;AAEV,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,iBAAiB;IACjB,kBAAkB;IAClB,mBAAmB;IACnB,mBAAmB;IACnB,oBAAoB;IACpB,oBAAoB;IACpB,2BAA2B;IAC3B,mBAAmB;IACnB,oBAAoB;IACpB,8BAA8B;IAC9B,0BAA0B;IAC1B,yBAAyB;IACzB,qBAAqB;IACrB,4BAA4B;IAC5B,gBAAgB;IAChB,sBAAsB;CACd,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Row } from '@ketvietlab/ketjs';
|
|
2
|
+
/** Plain upsert for the entities with no CAS field — no concurrent editor to race against. */
|
|
3
|
+
export declare const saveEntity: (model: string, fields: string[], required: string[], defaults: (values: Row, existing: Row | undefined) => Row) => import("@ketvietlab/ketjs").FnSpec;
|
|
4
|
+
//# sourceMappingURL=entity-save.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-save.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ketsuite/src/modules/flow/functions/entity-save.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAO,GAAG,EAAE,MAAM,mBAAmB,CAAA;AAMjD,8FAA8F;AAC9F,eAAO,MAAM,UAAU,UACd,MAAM,UACL,MAAM,EAAE,YACN,MAAM,EAAE,YACR,CAAC,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,GAAG,SAAS,KAAK,GAAG,uCAmD1D,CAAA"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { command } from '../domain/command-check.js';
|
|
2
|
+
import { invalid, issue } from '../domain/command.js';
|
|
3
|
+
import { addMember, canReadProject } from '../membership.js';
|
|
4
|
+
import { defineFn } from '@ketvietlab/ketjs';
|
|
5
|
+
/** Plain upsert for the entities with no CAS field — no concurrent editor to race against. */
|
|
6
|
+
export const saveEntity = (model, fields, required, defaults) => {
|
|
7
|
+
async function saveEntityHandler(ctx, args) {
|
|
8
|
+
const error = command(ctx, args.idempotencyKey);
|
|
9
|
+
if (error)
|
|
10
|
+
return error;
|
|
11
|
+
if (!args.values || typeof args.values !== 'object')
|
|
12
|
+
return invalid(issue('values', 'flow.error.required'));
|
|
13
|
+
const values = args.values;
|
|
14
|
+
const id = String(values.id ?? '');
|
|
15
|
+
if (!id)
|
|
16
|
+
return invalid(issue('id', 'flow.error.required'));
|
|
17
|
+
// Two shapes, one rule. A project's own row is named by its id; everything
|
|
18
|
+
// else this builds — columns, issue types, epics — names its project in a
|
|
19
|
+
// column. Either way, writing into a project a caller cannot see is the
|
|
20
|
+
// thing this refuses, and it refuses it as "not found".
|
|
21
|
+
const target = model === 'flow.Project' ? id : String(values.projectId ?? '');
|
|
22
|
+
const existing = (await ctx.db.select(model, { id }))[0];
|
|
23
|
+
const known = model === 'flow.Project' ? Boolean(existing) : true;
|
|
24
|
+
if (known && target && !(await canReadProject(ctx, target)))
|
|
25
|
+
return invalid(issue('id', 'flow.error.notFound'));
|
|
26
|
+
const cs = ctx.change(model, { ...defaults(values, existing), ...values }, existing ?? null).cast(fields);
|
|
27
|
+
const withRequired = required.length ? cs.required(required) : cs;
|
|
28
|
+
if (!withRequired.valid)
|
|
29
|
+
return { ok: false, errors: withRequired.errors };
|
|
30
|
+
await ctx.db.commit(withRequired, existing ? { id } : undefined);
|
|
31
|
+
// A project nobody can see is not a project anybody asked for, and there
|
|
32
|
+
// is no other door: membership is what makes it visible, so the person
|
|
33
|
+
// who created it has to walk through first.
|
|
34
|
+
if (model === 'flow.Project' && !existing && ctx.actor)
|
|
35
|
+
await addMember(ctx, {
|
|
36
|
+
projectId: id,
|
|
37
|
+
userId: ctx.actor,
|
|
38
|
+
addedByUserId: ctx.actor,
|
|
39
|
+
at: new Date().toISOString(),
|
|
40
|
+
});
|
|
41
|
+
return { ok: true, id };
|
|
42
|
+
}
|
|
43
|
+
return defineFn({
|
|
44
|
+
input: { values: 'json', idempotencyKey: 'text' },
|
|
45
|
+
output: { ok: 'bool', id: 'id?', errors: 'json?' },
|
|
46
|
+
effects: [
|
|
47
|
+
`read:${model}`,
|
|
48
|
+
`write:${model}`,
|
|
49
|
+
'read:flow.Project',
|
|
50
|
+
'write:flow.ProjectMember',
|
|
51
|
+
'read:flow.ProjectMember',
|
|
52
|
+
'read:flow.ProjectAccessGrant',
|
|
53
|
+
'read:user.User',
|
|
54
|
+
],
|
|
55
|
+
idempotent: true,
|
|
56
|
+
agent: true,
|
|
57
|
+
handler: saveEntityHandler,
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=entity-save.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-save.js","sourceRoot":"","sources":["../../../../../../../../packages/ketsuite/src/modules/flow/functions/entity-save.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE5C,8FAA8F;AAC9F,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,KAAa,EACb,MAAgB,EAChB,QAAkB,EAClB,QAAyD,EACzD,EAAE;IACF,KAAK,UAAU,iBAAiB,CAAC,GAAQ,EAAE,IAA6B;QACtE,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,cAAc,CAAC,CAAA;QAC/C,IAAI,KAAK;YAAE,OAAO,KAAK,CAAA;QACvB,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,OAAO,IAAI,CAAC,MAAM,KAAK,QAAQ;YACjD,OAAO,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,qBAAqB,CAAC,CAAC,CAAA;QACxD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAiC,CAAA;QACrD,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAA;QAClC,IAAI,CAAC,EAAE;YAAE,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC,CAAA;QAC3D,2EAA2E;QAC3E,0EAA0E;QAC1E,wEAAwE;QACxE,wDAAwD;QACxD,MAAM,MAAM,GAAG,KAAK,KAAK,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC,CAAA;QAC7E,MAAM,QAAQ,GAAG,CAAC,MAAM,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K;gBACxB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;aAC7B,CAAC,CAAA;QACJ,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAA;IACzB,CAAC;IACD,OAAO,QAAQ,CAAC;QACd,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE;QACjD,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE;QAClD,OAAO,EAAE;YACP,QAAQ,KAAK,EAAE;YACf,SAAS,KAAK,EAAE;YAChB,mBAAmB;YACnB,0BAA0B;YAC1B,yBAAyB;YACzB,8BAA8B;YAC9B,gBAAgB;SACjB;QACD,UAAU,EAAE,IAAI;QAChB,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,iBAAiB;KAC3B,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Ctx, FnSpec, Row } from '@ketvietlab/ketjs';
|
|
2
|
+
export declare function epicListHandler(ctx: Ctx, args: Record<string, unknown>): Promise<{
|
|
3
|
+
total: number;
|
|
4
|
+
done: number;
|
|
5
|
+
estimate: number;
|
|
6
|
+
estimateDone: number;
|
|
7
|
+
}[]>;
|
|
8
|
+
export declare function epicListAllHandler(ctx: Ctx, args: Record<string, unknown>): Promise<{
|
|
9
|
+
rows: (Row & {
|
|
10
|
+
projectName: string;
|
|
11
|
+
})[];
|
|
12
|
+
total: number;
|
|
13
|
+
}>;
|
|
14
|
+
export declare function epicGetHandler(ctx: Ctx, args: Record<string, unknown>): Promise<{
|
|
15
|
+
value: Row | null;
|
|
16
|
+
}>;
|
|
17
|
+
export declare function epicEditContentHandler(ctx: Ctx, args: Record<string, unknown>): Promise<{
|
|
18
|
+
id: unknown;
|
|
19
|
+
contentAttachmentId: {} | null;
|
|
20
|
+
} | null>;
|
|
21
|
+
export declare function epicArchiveHandler(ctx: Ctx, args: Record<string, unknown>): Promise<import("../domain/command.ts").FlowResult | {
|
|
22
|
+
ok: boolean;
|
|
23
|
+
id: unknown;
|
|
24
|
+
}>;
|
|
25
|
+
export declare const epicFunctions: Record<string, FnSpec>;
|
|
26
|
+
//# sourceMappingURL=epic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"epic.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ketsuite/src/modules/flow/functions/epic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AAQzD,wBAAsB,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;KAiB5E;AAED,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;qBAa1C,MAAM;;;GAa3C;AAED,wBAAsB,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;GAG3E;AAED,wBAAsB,sBAAsB,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;UAGnF;AAED,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;GAK/E;AAED,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA0FhD,CAAA"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { canReadProject, readableRow, visibleRows } from '../membership.js';
|
|
2
|
+
import { epicTotals } from '../queries/progress.js';
|
|
3
|
+
import { invalid, issue, n, normalized } from '../domain/command.js';
|
|
4
|
+
import { defineFn } from '@ketvietlab/ketjs';
|
|
5
|
+
import { membershipEffects } from './effects.js';
|
|
6
|
+
import { saveEntity } from './entity-save.js';
|
|
7
|
+
export async function epicListHandler(ctx, args) {
|
|
8
|
+
if (!(await canReadProject(ctx, args.projectId)))
|
|
9
|
+
return [];
|
|
10
|
+
const where = { projectId: args.projectId };
|
|
11
|
+
if (args.id)
|
|
12
|
+
where.id = args.id;
|
|
13
|
+
if (args.includeArchived !== true)
|
|
14
|
+
where.active = true;
|
|
15
|
+
const [rows, totals] = await Promise.all([
|
|
16
|
+
ctx.db.select('flow.Epic', where),
|
|
17
|
+
epicTotals(ctx, String(args.projectId)),
|
|
18
|
+
]);
|
|
19
|
+
const needle = normalized(args.search);
|
|
20
|
+
const filtered = rows
|
|
21
|
+
.filter((row) => !needle || normalized(row.title).includes(needle))
|
|
22
|
+
.map((row) => ({
|
|
23
|
+
...row,
|
|
24
|
+
...(totals.get(String(row.id)) ?? { total: 0, done: 0, estimate: 0, estimateDone: 0 }),
|
|
25
|
+
}));
|
|
26
|
+
return args.id ? filtered : filtered.slice(0, Math.max(1, Math.min(200, n(args.limit ?? 80))));
|
|
27
|
+
}
|
|
28
|
+
export async function epicListAllHandler(ctx, args) {
|
|
29
|
+
// Every project's epics means every project this caller may see. The
|
|
30
|
+
// screen behind it is the cross-project one, so nothing else narrows it.
|
|
31
|
+
const [epics, projects] = await Promise.all([
|
|
32
|
+
visibleRows(ctx, 'flow.Epic', { active: true }),
|
|
33
|
+
ctx.db.select('flow.Project', { active: true }),
|
|
34
|
+
]);
|
|
35
|
+
const named = new Map(projects.map((project) => [String(project.id), String(project.name ?? '')]));
|
|
36
|
+
const needle = normalized(args.search);
|
|
37
|
+
const rows = epics
|
|
38
|
+
.filter((epic) => named.has(String(epic.projectId)) && (!needle || normalized(epic.title).includes(needle)))
|
|
39
|
+
.map((epic) => ({
|
|
40
|
+
...epic,
|
|
41
|
+
projectName: named.get(String(epic.projectId)) ?? '',
|
|
42
|
+
}))
|
|
43
|
+
.sort((a, b) => String(a.projectName).localeCompare(String(b.projectName)) ||
|
|
44
|
+
String(a.title ?? '').localeCompare(String(b.title ?? '')) ||
|
|
45
|
+
String(a.id).localeCompare(String(b.id)));
|
|
46
|
+
const cursor = Math.max(0, n(args.cursor ?? 0));
|
|
47
|
+
const limit = Math.max(1, Math.min(200, n(args.limit ?? 50)));
|
|
48
|
+
return { rows: rows.slice(cursor, cursor + limit), total: rows.length };
|
|
49
|
+
}
|
|
50
|
+
export async function epicGetHandler(ctx, args) {
|
|
51
|
+
const held = (await ctx.db.select('flow.Epic', { id: args.id }))[0] ?? null;
|
|
52
|
+
return { value: held && (await canReadProject(ctx, held.projectId)) ? held : null };
|
|
53
|
+
}
|
|
54
|
+
export async function epicEditContentHandler(ctx, args) {
|
|
55
|
+
const row = await readableRow(ctx, 'flow.Epic', args.id);
|
|
56
|
+
return row ? { id: row.id, contentAttachmentId: row.contentAttachmentId ?? null } : null;
|
|
57
|
+
}
|
|
58
|
+
export async function epicArchiveHandler(ctx, args) {
|
|
59
|
+
const existing = await readableRow(ctx, 'flow.Epic', args.id);
|
|
60
|
+
if (!existing)
|
|
61
|
+
return invalid(issue('id', 'flow.error.notFound'));
|
|
62
|
+
await ctx.db.update('flow.Epic', { id: args.id }, { active: false });
|
|
63
|
+
return { ok: true, id: args.id };
|
|
64
|
+
}
|
|
65
|
+
export const epicFunctions = {
|
|
66
|
+
'epic.list': defineFn({
|
|
67
|
+
input: { projectId: 'id', id: 'id?', search: 'text?', limit: 'int?', includeArchived: 'bool?' },
|
|
68
|
+
output: {
|
|
69
|
+
id: 'id',
|
|
70
|
+
projectId: 'id',
|
|
71
|
+
title: 'text',
|
|
72
|
+
color: 'text?',
|
|
73
|
+
previewText: 'text?',
|
|
74
|
+
contentAttachmentId: 'id?',
|
|
75
|
+
active: 'bool',
|
|
76
|
+
total: 'int',
|
|
77
|
+
done: 'int',
|
|
78
|
+
estimate: 'decimal',
|
|
79
|
+
estimateDone: 'decimal',
|
|
80
|
+
},
|
|
81
|
+
effects: ['read:flow.Epic', 'read:flow.Issue', 'read:flow.Column', ...membershipEffects],
|
|
82
|
+
agent: true,
|
|
83
|
+
handler: epicListHandler,
|
|
84
|
+
}),
|
|
85
|
+
/**
|
|
86
|
+
* The menu-level epic collection, paged after one company-scoped read.
|
|
87
|
+
*
|
|
88
|
+
* `epic.list` remains project-scoped for relation controls and project
|
|
89
|
+
* screens. Folding those calls together in the backend inherited both its
|
|
90
|
+
* 80-row default and `project.list`'s 200-row cap, so an "all" screen could
|
|
91
|
+
* silently omit valid records.
|
|
92
|
+
*/
|
|
93
|
+
'epic.listAll': defineFn({
|
|
94
|
+
input: { search: 'text?', cursor: 'int?', limit: 'int?' },
|
|
95
|
+
output: { rows: 'json', total: 'int' },
|
|
96
|
+
effects: [
|
|
97
|
+
'read:flow.Epic',
|
|
98
|
+
'read:flow.Project',
|
|
99
|
+
'read:flow.ProjectMember',
|
|
100
|
+
'read:flow.ProjectAccessGrant',
|
|
101
|
+
'read:user.User',
|
|
102
|
+
],
|
|
103
|
+
agent: true,
|
|
104
|
+
handler: epicListAllHandler,
|
|
105
|
+
}),
|
|
106
|
+
/**
|
|
107
|
+
* One epic by id — what Live Doc reads to find its stored document, and what
|
|
108
|
+
* the epic's own screen is built from.
|
|
109
|
+
*/
|
|
110
|
+
'epic.get': defineFn({
|
|
111
|
+
input: { id: 'id' },
|
|
112
|
+
output: { value: 'json?' },
|
|
113
|
+
effects: [
|
|
114
|
+
'read:flow.Epic',
|
|
115
|
+
'read:flow.Project',
|
|
116
|
+
'read:flow.ProjectMember',
|
|
117
|
+
'read:flow.ProjectAccessGrant',
|
|
118
|
+
'read:user.User',
|
|
119
|
+
],
|
|
120
|
+
agent: true,
|
|
121
|
+
handler: epicGetHandler,
|
|
122
|
+
}),
|
|
123
|
+
/**
|
|
124
|
+
* Rewriting an epic's document, as a permission key of its own — the same
|
|
125
|
+
* split `page.editContent` makes, and for the same reason.
|
|
126
|
+
*/
|
|
127
|
+
'epic.editContent': defineFn({
|
|
128
|
+
input: { id: 'id' },
|
|
129
|
+
// The fields as they are actually returned, not a `value` wrapper the
|
|
130
|
+
// handler never builds: output is projected against these keys, so
|
|
131
|
+
// declaring `value` and answering `{ id, contentAttachmentId }` threw both
|
|
132
|
+
// away and handed the caller `{}`. Live Doc reads `contentAttachmentId`
|
|
133
|
+
// off this to find the stored snapshot, so an empty answer read as "never
|
|
134
|
+
// written" — and the next push started from a blank document and flattened
|
|
135
|
+
// it over the real one.
|
|
136
|
+
output: { id: 'id?', contentAttachmentId: 'id?' },
|
|
137
|
+
effects: ['read:flow.Epic', ...membershipEffects],
|
|
138
|
+
agent: true,
|
|
139
|
+
handler: epicEditContentHandler,
|
|
140
|
+
}),
|
|
141
|
+
'epic.save': saveEntity('flow.Epic', ['id', 'projectId', 'title', 'color', 'active'], ['projectId', 'title'], (args, existing) => ({ active: existing?.active ?? true, ...args })),
|
|
142
|
+
'epic.archive': defineFn({
|
|
143
|
+
input: { id: 'id' },
|
|
144
|
+
output: { ok: 'bool', id: 'id?', errors: 'json?' },
|
|
145
|
+
effects: ['read:flow.Epic', 'write:flow.Epic', ...membershipEffects],
|
|
146
|
+
idempotent: true,
|
|
147
|
+
agent: true,
|
|
148
|
+
handler: epicArchiveHandler,
|
|
149
|
+
}),
|
|
150
|
+
};
|
|
151
|
+
//# sourceMappingURL=epic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"epic.js","sourceRoot":"","sources":["../../../../../../../../packages/ketsuite/src/modules/flow/functions/epic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;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AmE;QACnE,2EAA2E;QAC3E,wEAAwE;QACxE,0EAA0E;QAC1E,2EAA2E;QAC3E,wBAAwB;QACxB,MAAM,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE;QACjD,OAAO,EAAE,CAAC,gBAAgB,EAAE,GAAG,iBAAiB,CAAC;QACjD,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,sBAAsB;KAChC,CAAC;IACF,WAAW,EAAE,UAAU,CACrB,WAAW,EACX,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,EAC/C,CAAC,WAAW,EAAE,OAAO,CAAC,EACtB,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,IAAI,IAAI,EAAE,GAAG,IAAI,EAAE,CAAC,CACpE;IACD,cAAc,EAAE,QAAQ,CAAC;QACvB,KAAK,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE;QACnB,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE;QAClD,OAAO,EAAE,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,GAAG,iBAAiB,CAAC;QACpE,UAAU,EAAE,IAAI;QAChB,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,kBAAkB;KAC5B,CAAC;CACH,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Ctx, FnSpec } from '@ketvietlab/ketjs';
|
|
2
|
+
export declare function fieldListHandler(ctx: Ctx, args: Record<string, unknown>): Promise<import("@ketvietlab/ketjs").Row[]>;
|
|
3
|
+
export declare function fieldSaveHandler(ctx: Ctx, args: Record<string, unknown>): Promise<import("../domain/command.ts").FlowResult>;
|
|
4
|
+
export declare function fieldArchiveHandler(ctx: Ctx, args: Record<string, unknown>): Promise<import("../domain/command.ts").FlowResult | {
|
|
5
|
+
ok: boolean;
|
|
6
|
+
id: unknown;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const fieldFunctions: Record<string, FnSpec>;
|
|
9
|
+
//# sourceMappingURL=field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ketsuite/src/modules/flow/functions/field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAQpD,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,8CAS7E;AAED,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,sDA6B7E;AAED,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;GAKhF;AAED,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA8DjD,CAAA"}
|