shutro-erp 0.3.4 → 0.3.6
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/account_asset/.kosh/bindings.d.ts +22 -0
- package/dist/account_asset/.kosh/bindings.js +15 -0
- package/dist/account_asset/.kosh/schema.d.ts +1755 -0
- package/dist/account_asset/board.d.ts +61 -0
- package/dist/account_asset/board.js +86 -0
- package/dist/account_asset/books.d.ts +42 -0
- package/dist/account_asset/books.js +398 -0
- package/dist/account_asset/demo.d.ts +7 -0
- package/dist/account_asset/demo.js +72 -0
- package/dist/account_asset/index.d.ts +9 -0
- package/dist/account_asset/index.js +335 -0
- package/dist/account_asset/module.d.ts +7622 -0
- package/dist/account_asset/module.js +230 -0
- package/dist/account_budget/.kosh/bindings.d.ts +22 -0
- package/dist/account_budget/.kosh/bindings.js +15 -0
- package/dist/account_budget/.kosh/schema.d.ts +1767 -0
- package/dist/account_budget/budget.d.ts +5 -0
- package/dist/account_budget/budget.js +142 -0
- package/dist/account_budget/demo.d.ts +6 -0
- package/dist/account_budget/demo.js +30 -0
- package/dist/account_budget/index.d.ts +4 -0
- package/dist/account_budget/index.js +223 -0
- package/dist/account_budget/module.d.ts +13863 -0
- package/dist/account_budget/module.js +167 -0
- package/dist/account_portal/.kosh/bindings.js +1 -1
- package/dist/account_portal/.kosh/schema.d.ts +176 -6
- package/dist/account_portal/module.d.ts +505 -6
- package/dist/accounting/.kosh/bindings.js +1 -1
- package/dist/accounting/.kosh/schema.d.ts +176 -6
- package/dist/accounting/index.d.ts +1 -1
- package/dist/accounting/index.js +344 -4
- package/dist/accounting/module.d.ts +513 -5
- package/dist/accounting/module.js +55 -3
- package/dist/approvals/.kosh/bindings.d.ts +22 -0
- package/dist/approvals/.kosh/bindings.js +15 -0
- package/dist/approvals/.kosh/schema.d.ts +611 -0
- package/dist/approvals/index.d.ts +18 -0
- package/dist/approvals/index.js +302 -0
- package/dist/approvals/mails.d.ts +25 -0
- package/dist/approvals/mails.js +82 -0
- package/dist/approvals/module.d.ts +1 -0
- package/dist/approvals/module.js +12 -0
- package/dist/approvals/web/History.d.ts +4 -0
- package/dist/approvals/web/History.js +13 -0
- package/dist/approvals/web/Inbox.d.ts +9 -0
- package/dist/approvals/web/Inbox.js +114 -0
- package/dist/approvals/web/Mine.d.ts +7 -0
- package/dist/approvals/web/Mine.js +27 -0
- package/dist/approvals/web/index.d.ts +13 -0
- package/dist/approvals/web/index.js +22 -0
- package/dist/approvals/web/messages.d.ts +2 -0
- package/dist/approvals/web/messages.js +119 -0
- package/dist/approvals/web/shared.d.ts +59 -0
- package/dist/approvals/web/shared.js +46 -0
- package/dist/attendance/.kosh/bindings.d.ts +22 -0
- package/dist/attendance/.kosh/bindings.js +15 -0
- package/dist/attendance/.kosh/schema.d.ts +1048 -0
- package/dist/attendance/days.d.ts +96 -0
- package/dist/attendance/days.js +430 -0
- package/dist/attendance/demo.d.ts +7 -0
- package/dist/attendance/demo.js +58 -0
- package/dist/attendance/index.d.ts +4 -0
- package/dist/attendance/index.js +513 -0
- package/dist/attendance/module.d.ts +3969 -0
- package/dist/attendance/module.js +412 -0
- package/dist/attendance/routes.d.ts +16 -0
- package/dist/attendance/routes.js +266 -0
- package/dist/attendance/web/Check.d.ts +8 -0
- package/dist/attendance/web/Check.js +40 -0
- package/dist/attendance/web/Kiosk.d.ts +8 -0
- package/dist/attendance/web/Kiosk.js +62 -0
- package/dist/attendance/web/PinButton.d.ts +7 -0
- package/dist/attendance/web/PinButton.js +29 -0
- package/dist/attendance/web/index.d.ts +13 -0
- package/dist/attendance/web/index.js +22 -0
- package/dist/attendance/web/messages.d.ts +2 -0
- package/dist/attendance/web/messages.js +61 -0
- package/dist/calendar/.kosh/bindings.d.ts +22 -0
- package/dist/calendar/.kosh/bindings.js +15 -0
- package/dist/calendar/.kosh/schema.d.ts +795 -0
- package/dist/calendar/demo.d.ts +6 -0
- package/dist/calendar/demo.js +24 -0
- package/dist/calendar/index.d.ts +3 -0
- package/dist/calendar/index.js +291 -0
- package/dist/calendar/module.d.ts +1705 -0
- package/dist/calendar/module.js +180 -0
- package/dist/cli/init.js +80 -0
- package/dist/cli/templates.d.ts +1 -1
- package/dist/cli/templates.js +226 -0
- package/dist/contacts/.kosh/bindings.js +1 -1
- package/dist/contacts/.kosh/schema.d.ts +78 -3
- package/dist/contacts/demo.js +30 -1
- package/dist/contacts/index.d.ts +1 -1
- package/dist/contacts/index.js +155 -9
- package/dist/contacts/module.d.ts +338 -2
- package/dist/contacts/module.js +93 -5
- package/dist/crm/.kosh/bindings.d.ts +22 -0
- package/dist/crm/.kosh/bindings.js +15 -0
- package/dist/crm/.kosh/schema.d.ts +800 -0
- package/dist/crm/demo.d.ts +6 -0
- package/dist/crm/demo.js +45 -0
- package/dist/crm/index.d.ts +3 -0
- package/dist/crm/index.js +361 -0
- package/dist/crm/module.d.ts +1845 -0
- package/dist/crm/module.js +208 -0
- package/dist/documents/.kosh/bindings.d.ts +22 -0
- package/dist/documents/.kosh/bindings.js +15 -0
- package/dist/documents/.kosh/schema.d.ts +862 -0
- package/dist/documents/demo.d.ts +6 -0
- package/dist/documents/demo.js +22 -0
- package/dist/documents/documents.d.ts +98 -0
- package/dist/documents/documents.js +318 -0
- package/dist/documents/index.d.ts +30 -0
- package/dist/documents/index.js +442 -0
- package/dist/documents/module.d.ts +2781 -0
- package/dist/documents/module.js +214 -0
- package/dist/documents/web/Versions.d.ts +7 -0
- package/dist/documents/web/Versions.js +45 -0
- package/dist/documents/web/index.d.ts +11 -0
- package/dist/documents/web/index.js +16 -0
- package/dist/documents/web/messages.d.ts +2 -0
- package/dist/documents/web/messages.js +21 -0
- package/dist/event/.kosh/bindings.d.ts +22 -0
- package/dist/event/.kosh/bindings.js +15 -0
- package/dist/event/.kosh/schema.d.ts +843 -0
- package/dist/event/demo.d.ts +6 -0
- package/dist/event/demo.js +65 -0
- package/dist/event/index.d.ts +14 -0
- package/dist/event/index.js +333 -0
- package/dist/event/mails.d.ts +15 -0
- package/dist/event/mails.js +112 -0
- package/dist/event/module.d.ts +2800 -0
- package/dist/event/module.js +323 -0
- package/dist/event/web/CheckInBox.d.ts +9 -0
- package/dist/event/web/CheckInBox.js +87 -0
- package/dist/event/web/index.d.ts +11 -0
- package/dist/event/web/index.js +16 -0
- package/dist/event/web/messages.d.ts +2 -0
- package/dist/event/web/messages.js +23 -0
- package/dist/event_account/.kosh/bindings.d.ts +22 -0
- package/dist/event_account/.kosh/bindings.js +15 -0
- package/dist/event_account/.kosh/schema.d.ts +1758 -0
- package/dist/event_account/index.d.ts +3 -0
- package/dist/event_account/index.js +28 -0
- package/dist/event_account/module.d.ts +7114 -0
- package/dist/event_account/module.js +90 -0
- package/dist/expense/.kosh/bindings.d.ts +22 -0
- package/dist/expense/.kosh/bindings.js +15 -0
- package/dist/expense/.kosh/schema.d.ts +1299 -0
- package/dist/expense/demo.d.ts +7 -0
- package/dist/expense/demo.js +69 -0
- package/dist/expense/index.d.ts +3 -0
- package/dist/expense/index.js +495 -0
- package/dist/expense/module.d.ts +4747 -0
- package/dist/expense/module.js +647 -0
- package/dist/expense_account/.kosh/bindings.d.ts +22 -0
- package/dist/expense_account/.kosh/bindings.js +15 -0
- package/dist/expense_account/.kosh/schema.d.ts +1936 -0
- package/dist/expense_account/index.d.ts +3 -0
- package/dist/expense_account/index.js +74 -0
- package/dist/expense_account/module.d.ts +9153 -0
- package/dist/expense_account/module.js +318 -0
- package/dist/helpdesk/.kosh/bindings.d.ts +22 -0
- package/dist/helpdesk/.kosh/bindings.js +15 -0
- package/dist/helpdesk/.kosh/schema.d.ts +885 -0
- package/dist/helpdesk/demo.d.ts +7 -0
- package/dist/helpdesk/demo.js +65 -0
- package/dist/helpdesk/hours.d.ts +17 -0
- package/dist/helpdesk/hours.js +94 -0
- package/dist/helpdesk/index.d.ts +10 -0
- package/dist/helpdesk/index.js +461 -0
- package/dist/helpdesk/module.d.ts +2940 -0
- package/dist/helpdesk/module.js +326 -0
- package/dist/helpdesk/routes.d.ts +12 -0
- package/dist/helpdesk/routes.js +132 -0
- package/dist/helpdesk/sla.d.ts +37 -0
- package/dist/helpdesk/sla.js +226 -0
- package/dist/hr/.kosh/bindings.d.ts +22 -0
- package/dist/hr/.kosh/bindings.js +15 -0
- package/dist/hr/.kosh/schema.d.ts +878 -0
- package/dist/hr/demo.d.ts +6 -0
- package/dist/hr/demo.js +60 -0
- package/dist/hr/index.d.ts +3 -0
- package/dist/hr/index.js +483 -0
- package/dist/hr/module.d.ts +2611 -0
- package/dist/hr/module.js +350 -0
- package/dist/l10n_bd/.kosh/bindings.js +1 -1
- package/dist/l10n_bd/.kosh/schema.d.ts +176 -6
- package/dist/l10n_bd/module.d.ts +505 -6
- package/dist/l10n_bd_payroll/.kosh/bindings.d.ts +22 -0
- package/dist/l10n_bd_payroll/.kosh/bindings.js +15 -0
- package/dist/l10n_bd_payroll/.kosh/schema.d.ts +2312 -0
- package/dist/l10n_bd_payroll/data.d.ts +47 -0
- package/dist/l10n_bd_payroll/data.js +347 -0
- package/dist/l10n_bd_payroll/index.d.ts +4 -0
- package/dist/l10n_bd_payroll/index.js +24 -0
- package/dist/l10n_bd_payroll/module.d.ts +12932 -0
- package/dist/l10n_bd_payroll/module.js +86 -0
- package/dist/l10n_in/.kosh/bindings.js +1 -1
- package/dist/l10n_in/.kosh/schema.d.ts +176 -6
- package/dist/l10n_in/module.d.ts +527 -7
- package/dist/mail/inbound/handle.js +6 -1
- package/dist/maintenance/.kosh/bindings.d.ts +22 -0
- package/dist/maintenance/.kosh/bindings.js +15 -0
- package/dist/maintenance/.kosh/schema.d.ts +911 -0
- package/dist/maintenance/demo.d.ts +6 -0
- package/dist/maintenance/demo.js +60 -0
- package/dist/maintenance/index.d.ts +3 -0
- package/dist/maintenance/index.js +422 -0
- package/dist/maintenance/module.d.ts +3545 -0
- package/dist/maintenance/module.js +446 -0
- package/dist/maintenance_stock/.kosh/bindings.d.ts +22 -0
- package/dist/maintenance_stock/.kosh/bindings.js +15 -0
- package/dist/maintenance_stock/.kosh/schema.d.ts +1446 -0
- package/dist/maintenance_stock/index.d.ts +9 -0
- package/dist/maintenance_stock/index.js +52 -0
- package/dist/maintenance_stock/module.d.ts +7675 -0
- package/dist/maintenance_stock/module.js +192 -0
- package/dist/modules-sdk/index.d.ts +1 -1
- package/dist/modules-sdk/manifest.d.ts +109 -2
- package/dist/modules-sdk/manifest.js +35 -1
- package/dist/mrp/.kosh/bindings.d.ts +22 -0
- package/dist/mrp/.kosh/bindings.js +15 -0
- package/dist/mrp/.kosh/schema.d.ts +1453 -0
- package/dist/mrp/demo.d.ts +7 -0
- package/dist/mrp/demo.js +42 -0
- package/dist/mrp/index.d.ts +3 -0
- package/dist/mrp/index.js +393 -0
- package/dist/mrp/module.d.ts +9335 -0
- package/dist/mrp/module.js +757 -0
- package/dist/mrp_account/.kosh/bindings.d.ts +22 -0
- package/dist/mrp_account/.kosh/bindings.js +15 -0
- package/dist/mrp_account/.kosh/schema.d.ts +2299 -0
- package/dist/mrp_account/index.d.ts +3 -0
- package/dist/mrp_account/index.js +22 -0
- package/dist/mrp_account/module.d.ts +23151 -0
- package/dist/mrp_account/module.js +123 -0
- package/dist/payment/.kosh/bindings.js +1 -1
- package/dist/payment/.kosh/schema.d.ts +178 -7
- package/dist/payment/index.d.ts +41 -0
- package/dist/payment/index.js +131 -74
- package/dist/payment/module.d.ts +569 -12
- package/dist/payment/module.js +19 -3
- package/dist/payment/settle.js +10 -1
- package/dist/payroll/.kosh/bindings.d.ts +22 -0
- package/dist/payroll/.kosh/bindings.js +15 -0
- package/dist/payroll/.kosh/schema.d.ts +1390 -0
- package/dist/payroll/compute.d.ts +35 -0
- package/dist/payroll/compute.js +398 -0
- package/dist/payroll/demo.d.ts +55 -0
- package/dist/payroll/demo.js +121 -0
- package/dist/payroll/formula.d.ts +62 -0
- package/dist/payroll/formula.js +320 -0
- package/dist/payroll/index.d.ts +230 -0
- package/dist/payroll/index.js +713 -0
- package/dist/payroll/module.d.ts +9390 -0
- package/dist/payroll/module.js +606 -0
- package/dist/payroll/routes.d.ts +10 -0
- package/dist/payroll/routes.js +112 -0
- package/dist/payroll_account/.kosh/bindings.d.ts +22 -0
- package/dist/payroll_account/.kosh/bindings.js +15 -0
- package/dist/payroll_account/.kosh/schema.d.ts +2308 -0
- package/dist/payroll_account/index.d.ts +3 -0
- package/dist/payroll_account/index.js +40 -0
- package/dist/payroll_account/module.d.ts +12396 -0
- package/dist/payroll_account/module.js +256 -0
- package/dist/permissions/approvals.d.ts +131 -9
- package/dist/permissions/approvals.js +662 -57
- package/dist/permissions/index.d.ts +1 -1
- package/dist/permissions/index.js +2 -2
- package/dist/permissions/models.js +191 -12
- package/dist/permissions/routes.d.ts +6 -1
- package/dist/permissions/routes.js +37 -4
- package/dist/permissions/web/ApprovalPanel.d.ts +5 -4
- package/dist/permissions/web/ApprovalPanel.js +39 -13
- package/dist/permissions/web/index.d.ts +6 -4
- package/dist/permissions/web/index.js +13 -4
- package/dist/permissions/web/messages.d.ts +2 -0
- package/dist/permissions/web/messages.js +43 -0
- package/dist/portal/.kosh/bindings.js +1 -1
- package/dist/portal/.kosh/schema.d.ts +78 -3
- package/dist/portal/index.js +1 -1
- package/dist/portal/module.d.ts +166 -2
- package/dist/pos/.kosh/bindings.d.ts +22 -0
- package/dist/pos/.kosh/bindings.js +15 -0
- package/dist/pos/.kosh/schema.d.ts +1809 -0
- package/dist/pos/accounting.d.ts +10 -0
- package/dist/pos/accounting.js +149 -0
- package/dist/pos/demo.d.ts +6 -0
- package/dist/pos/demo.js +90 -0
- package/dist/pos/index.d.ts +9 -0
- package/dist/pos/index.js +353 -0
- package/dist/pos/module.d.ts +9783 -0
- package/dist/pos/module.js +423 -0
- package/dist/pos/routes.d.ts +39 -0
- package/dist/pos/routes.js +368 -0
- package/dist/pos/web/Register.d.ts +9 -0
- package/dist/pos/web/Register.js +252 -0
- package/dist/pos/web/index.d.ts +11 -0
- package/dist/pos/web/index.js +16 -0
- package/dist/pos/web/messages.d.ts +2 -0
- package/dist/pos/web/messages.js +87 -0
- package/dist/pos_stock/.kosh/bindings.d.ts +22 -0
- package/dist/pos_stock/.kosh/bindings.js +15 -0
- package/dist/pos_stock/.kosh/schema.d.ts +2208 -0
- package/dist/pos_stock/index.d.ts +9 -0
- package/dist/pos_stock/index.js +35 -0
- package/dist/pos_stock/module.d.ts +12803 -0
- package/dist/pos_stock/module.js +115 -0
- package/dist/product/.kosh/bindings.js +1 -1
- package/dist/product/.kosh/schema.d.ts +52 -1
- package/dist/product/index.js +94 -4
- package/dist/product/module.d.ts +45 -1
- package/dist/product/module.js +11 -3
- package/dist/project/.kosh/bindings.js +1 -1
- package/dist/project/.kosh/schema.d.ts +725 -3
- package/dist/project/index.d.ts +3 -1
- package/dist/project/index.js +1045 -18
- package/dist/project/module.d.ts +10168 -458
- package/dist/project/module.js +1578 -14
- package/dist/project/routes.d.ts +44 -0
- package/dist/project/routes.js +314 -0
- package/dist/project/schedule.d.ts +72 -0
- package/dist/project/schedule.js +192 -0
- package/dist/project/web/Refresh.d.ts +8 -0
- package/dist/project/web/Refresh.js +29 -0
- package/dist/project/web/Schedule.d.ts +9 -0
- package/dist/project/web/Schedule.js +93 -0
- package/dist/project/web/Structure.d.ts +8 -0
- package/dist/project/web/Structure.js +86 -0
- package/dist/project/web/Workload.d.ts +8 -0
- package/dist/project/web/Workload.js +43 -0
- package/dist/project/web/index.d.ts +14 -0
- package/dist/project/web/index.js +25 -0
- package/dist/project/web/messages.d.ts +2 -0
- package/dist/project/web/messages.js +85 -0
- package/dist/project_account/.kosh/bindings.d.ts +22 -0
- package/dist/project_account/.kosh/bindings.js +15 -0
- package/dist/project_account/.kosh/schema.d.ts +2241 -0
- package/dist/project_account/index.d.ts +3 -0
- package/dist/project_account/index.js +27 -0
- package/dist/project_account/module.d.ts +11539 -0
- package/dist/project_account/module.js +76 -0
- package/dist/project_portal/.kosh/bindings.js +1 -1
- package/dist/project_portal/.kosh/schema.d.ts +725 -3
- package/dist/project_portal/module.d.ts +5137 -119
- package/dist/project_purchase/.kosh/bindings.d.ts +22 -0
- package/dist/project_purchase/.kosh/bindings.js +15 -0
- package/dist/project_purchase/.kosh/schema.d.ts +2320 -0
- package/dist/project_purchase/index.d.ts +9 -0
- package/dist/project_purchase/index.js +22 -0
- package/dist/project_purchase/module.d.ts +25147 -0
- package/dist/project_purchase/module.js +56 -0
- package/dist/purchase/.kosh/bindings.js +1 -1
- package/dist/purchase/.kosh/schema.d.ts +150 -6
- package/dist/purchase/index.js +163 -3
- package/dist/purchase/module.d.ts +228 -5
- package/dist/purchase/module.js +30 -3
- package/dist/purchase_account/.kosh/bindings.js +1 -1
- package/dist/purchase_account/.kosh/schema.d.ts +180 -8
- package/dist/purchase_account/index.js +27 -1
- package/dist/purchase_account/module.d.ts +591 -30
- package/dist/purchase_account/module.js +13 -2
- package/dist/purchase_portal/.kosh/bindings.js +1 -1
- package/dist/purchase_portal/.kosh/schema.d.ts +150 -6
- package/dist/purchase_portal/module.d.ts +372 -6
- package/dist/purchase_stock/.kosh/bindings.d.ts +22 -0
- package/dist/purchase_stock/.kosh/bindings.js +15 -0
- package/dist/purchase_stock/.kosh/schema.d.ts +1479 -0
- package/dist/purchase_stock/index.d.ts +7 -0
- package/dist/purchase_stock/index.js +98 -0
- package/dist/purchase_stock/module.d.ts +7535 -0
- package/dist/purchase_stock/module.js +380 -0
- package/dist/purchase_stock_account/.kosh/bindings.d.ts +22 -0
- package/dist/purchase_stock_account/.kosh/bindings.js +15 -0
- package/dist/purchase_stock_account/.kosh/schema.d.ts +2155 -0
- package/dist/purchase_stock_account/index.d.ts +3 -0
- package/dist/purchase_stock_account/index.js +24 -0
- package/dist/purchase_stock_account/module.d.ts +38015 -0
- package/dist/purchase_stock_account/module.js +168 -0
- package/dist/recruitment/.kosh/bindings.d.ts +22 -0
- package/dist/recruitment/.kosh/bindings.js +15 -0
- package/dist/recruitment/.kosh/schema.d.ts +991 -0
- package/dist/recruitment/demo.d.ts +6 -0
- package/dist/recruitment/demo.js +45 -0
- package/dist/recruitment/index.d.ts +3 -0
- package/dist/recruitment/index.js +385 -0
- package/dist/recruitment/module.d.ts +3249 -0
- package/dist/recruitment/module.js +194 -0
- package/dist/recruitment/web/HireButton.d.ts +9 -0
- package/dist/recruitment/web/HireButton.js +32 -0
- package/dist/recruitment/web/index.d.ts +11 -0
- package/dist/recruitment/web/index.js +16 -0
- package/dist/recruitment/web/messages.d.ts +2 -0
- package/dist/recruitment/web/messages.js +19 -0
- package/dist/reporting/documents.d.ts +5 -0
- package/dist/reporting/documents.js +28 -1
- package/dist/reporting/index.d.ts +1 -1
- package/dist/reporting/index.js +4 -2
- package/dist/reporting/models.js +9 -0
- package/dist/reporting/overviews.d.ts +16 -0
- package/dist/reporting/overviews.js +56 -0
- package/dist/reporting/routes-documents.js +1 -1
- package/dist/reporting/routes.js +138 -80
- package/dist/reporting/web/DashboardView.d.ts +11 -0
- package/dist/reporting/web/DashboardView.js +2 -2
- package/dist/reporting/web/DesignerView.js +5 -0
- package/dist/reporting/web/Overview.d.ts +9 -0
- package/dist/reporting/web/Overview.js +53 -0
- package/dist/reporting/web/index.d.ts +1 -0
- package/dist/reporting/web/index.js +4 -1
- package/dist/reporting/web/messages.js +9 -0
- package/dist/sale_account/.kosh/bindings.js +1 -1
- package/dist/sale_account/.kosh/schema.d.ts +181 -6
- package/dist/sale_account/index.js +22 -1
- package/dist/sale_account/module.d.ts +639 -38
- package/dist/sale_portal/.kosh/bindings.js +1 -1
- package/dist/sale_portal/.kosh/schema.d.ts +59 -3
- package/dist/sale_portal/module.d.ts +435 -5
- package/dist/sale_project/.kosh/bindings.js +1 -1
- package/dist/sale_project/.kosh/schema.d.ts +732 -3
- package/dist/sale_project/module.d.ts +5349 -208
- package/dist/sale_project/module.js +17 -1
- package/dist/sale_stock/.kosh/bindings.d.ts +22 -0
- package/dist/sale_stock/.kosh/bindings.js +15 -0
- package/dist/sale_stock/.kosh/schema.d.ts +1303 -0
- package/dist/sale_stock/index.d.ts +7 -0
- package/dist/sale_stock/index.js +84 -0
- package/dist/sale_stock/module.d.ts +7514 -0
- package/dist/sale_stock/module.js +146 -0
- package/dist/sales/.kosh/bindings.js +1 -1
- package/dist/sales/.kosh/schema.d.ts +59 -3
- package/dist/sales/index.js +195 -4
- package/dist/sales/module.d.ts +356 -3
- package/dist/sales/module.js +78 -3
- package/dist/server/api/metadata.d.ts +5 -0
- package/dist/server/api/metadata.js +5 -0
- package/dist/server/api/rest.js +64 -1
- package/dist/server/api/views.js +1 -0
- package/dist/server/app-settings.d.ts +7 -0
- package/dist/server/app-settings.js +10 -0
- package/dist/server/auth/base.js +9 -0
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +1 -0
- package/dist/settings/app-settings.d.ts +2 -0
- package/dist/settings/app-settings.js +518 -0
- package/dist/settings/index.d.ts +1 -0
- package/dist/settings/index.js +15 -0
- package/dist/settings/people.js +29 -5
- package/dist/settings/web/AppSettingsPage.d.ts +11 -0
- package/dist/settings/web/AppSettingsPage.js +210 -0
- package/dist/settings/web/OverviewPage.js +16 -3
- package/dist/settings/web/PeoplePage.js +20 -6
- package/dist/settings/web/index.d.ts +1 -0
- package/dist/settings/web/index.js +3 -0
- package/dist/settings/web/messages.js +118 -2
- package/dist/sign/.kosh/bindings.d.ts +22 -0
- package/dist/sign/.kosh/bindings.js +15 -0
- package/dist/sign/.kosh/schema.d.ts +990 -0
- package/dist/sign/index.d.ts +14 -0
- package/dist/sign/index.js +350 -0
- package/dist/sign/module.d.ts +4478 -0
- package/dist/sign/module.js +158 -0
- package/dist/sign/sign.d.ts +82 -0
- package/dist/sign/sign.js +474 -0
- package/dist/stock/.kosh/bindings.d.ts +22 -0
- package/dist/stock/.kosh/bindings.js +15 -0
- package/dist/stock/.kosh/schema.d.ts +1222 -0
- package/dist/stock/demo.d.ts +8 -0
- package/dist/stock/demo.js +82 -0
- package/dist/stock/index.d.ts +4 -0
- package/dist/stock/index.js +903 -0
- package/dist/stock/module.d.ts +7856 -0
- package/dist/stock/module.js +1880 -0
- package/dist/stock/replenish.d.ts +38 -0
- package/dist/stock/replenish.js +176 -0
- package/dist/stock/web/Replenishment.d.ts +8 -0
- package/dist/stock/web/Replenishment.js +84 -0
- package/dist/stock/web/ScanBox.d.ts +8 -0
- package/dist/stock/web/ScanBox.js +90 -0
- package/dist/stock/web/index.d.ts +13 -0
- package/dist/stock/web/index.js +20 -0
- package/dist/stock/web/messages.d.ts +2 -0
- package/dist/stock/web/messages.js +77 -0
- package/dist/stock_account/.kosh/bindings.d.ts +22 -0
- package/dist/stock_account/.kosh/bindings.js +15 -0
- package/dist/stock_account/.kosh/schema.d.ts +2068 -0
- package/dist/stock_account/index.d.ts +3 -0
- package/dist/stock_account/index.js +140 -0
- package/dist/stock_account/module.d.ts +11523 -0
- package/dist/stock_account/module.js +339 -0
- package/dist/storage/attachments.d.ts +5 -0
- package/dist/storage/attachments.js +12 -1
- package/dist/storage/models.js +3 -0
- package/dist/storage/routes.js +13 -2
- package/dist/todo/.kosh/bindings.d.ts +22 -0
- package/dist/todo/.kosh/bindings.js +15 -0
- package/dist/todo/.kosh/schema.d.ts +732 -0
- package/dist/todo/demo.d.ts +6 -0
- package/dist/todo/demo.js +35 -0
- package/dist/todo/index.d.ts +3 -0
- package/dist/todo/index.js +187 -0
- package/dist/todo/module.d.ts +1180 -0
- package/dist/todo/module.js +130 -0
- package/dist/trade_finance/.kosh/bindings.d.ts +22 -0
- package/dist/trade_finance/.kosh/bindings.js +15 -0
- package/dist/trade_finance/.kosh/schema.d.ts +884 -0
- package/dist/trade_finance/demo.d.ts +6 -0
- package/dist/trade_finance/demo.js +63 -0
- package/dist/trade_finance/index.d.ts +3 -0
- package/dist/trade_finance/index.js +415 -0
- package/dist/trade_finance/module.d.ts +3779 -0
- package/dist/trade_finance/module.js +507 -0
- package/dist/trade_finance_account/.kosh/bindings.d.ts +22 -0
- package/dist/trade_finance_account/.kosh/bindings.js +15 -0
- package/dist/trade_finance_account/.kosh/schema.d.ts +1830 -0
- package/dist/trade_finance_account/index.d.ts +3 -0
- package/dist/trade_finance_account/index.js +93 -0
- package/dist/trade_finance_account/module.d.ts +8074 -0
- package/dist/trade_finance_account/module.js +245 -0
- package/dist/trade_finance_purchase/.kosh/bindings.d.ts +22 -0
- package/dist/trade_finance_purchase/.kosh/bindings.js +15 -0
- package/dist/trade_finance_purchase/.kosh/schema.d.ts +1246 -0
- package/dist/trade_finance_purchase/index.d.ts +8 -0
- package/dist/trade_finance_purchase/index.js +50 -0
- package/dist/trade_finance_purchase/module.d.ts +4257 -0
- package/dist/trade_finance_purchase/module.js +44 -0
- package/dist/trade_finance_sale/.kosh/bindings.d.ts +22 -0
- package/dist/trade_finance_sale/.kosh/bindings.js +15 -0
- package/dist/trade_finance_sale/.kosh/schema.d.ts +1072 -0
- package/dist/trade_finance_sale/index.d.ts +8 -0
- package/dist/trade_finance_sale/index.js +50 -0
- package/dist/trade_finance_sale/module.d.ts +4281 -0
- package/dist/trade_finance_sale/module.js +44 -0
- package/dist/ui/api.d.ts +2 -1
- package/dist/ui/api.js +2 -1
- package/dist/ui/app.js +26 -13
- package/dist/ui/components/AppIcon.js +30 -1
- package/dist/ui/components/primitives.d.ts +2 -0
- package/dist/ui/components/primitives.js +7 -1
- package/dist/ui/i18n/messages.d.ts +27 -0
- package/dist/ui/i18n/messages.js +46 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.js +1 -0
- package/dist/ui/offline/queue.d.ts +5 -1
- package/dist/ui/offline/queue.js +2 -0
- package/dist/ui/registry.d.ts +5 -0
- package/dist/ui/shell/Home.js +55 -4
- package/dist/ui/views/FormView.js +102 -19
- package/dist/ui/views/KanbanView.d.ts +2 -0
- package/dist/ui/views/KanbanView.js +40 -3
- package/dist/ui/views/ListView.js +110 -11
- package/dist/ui/views/StatsRow.d.ts +14 -0
- package/dist/ui/views/StatsRow.js +88 -0
- package/dist/ui/views/widgets.d.ts +2 -1
- package/dist/ui/views/widgets.js +200 -1
- package/dist/views/builders.d.ts +19 -2
- package/dist/views/builders.js +21 -1
- package/dist/views/condition.d.ts +6 -0
- package/dist/views/condition.js +20 -0
- package/dist/views/documents.d.ts +8 -0
- package/dist/views/extend.d.ts +2 -2
- package/dist/views/extend.js +11 -1
- package/dist/views/index.d.ts +2 -2
- package/dist/views/index.js +2 -2
- package/dist/views/types.d.ts +52 -5
- package/dist/views/validate.js +39 -1
- package/dist/website/.kosh/bindings.d.ts +22 -0
- package/dist/website/.kosh/bindings.js +15 -0
- package/dist/website/.kosh/schema.d.ts +881 -0
- package/dist/website/demo.d.ts +6 -0
- package/dist/website/demo.js +115 -0
- package/dist/website/index.d.ts +9 -0
- package/dist/website/index.js +251 -0
- package/dist/website/module.d.ts +2987 -0
- package/dist/website/module.js +282 -0
- package/dist/website/render.d.ts +45 -0
- package/dist/website/render.js +102 -0
- package/dist/website/routes.d.ts +12 -0
- package/dist/website/routes.js +246 -0
- package/dist/website/web/PagePreview.d.ts +7 -0
- package/dist/website/web/PagePreview.js +33 -0
- package/dist/website/web/index.d.ts +11 -0
- package/dist/website/web/index.js +16 -0
- package/dist/website/web/messages.d.ts +2 -0
- package/dist/website/web/messages.js +15 -0
- package/dist/website_crm/.kosh/bindings.d.ts +22 -0
- package/dist/website_crm/.kosh/bindings.js +15 -0
- package/dist/website_crm/.kosh/schema.d.ts +967 -0
- package/dist/website_crm/index.d.ts +3 -0
- package/dist/website_crm/index.js +39 -0
- package/dist/website_crm/module.d.ts +2956 -0
- package/dist/website_crm/module.js +44 -0
- package/dist/website_sale/.kosh/bindings.d.ts +22 -0
- package/dist/website_sale/.kosh/bindings.js +15 -0
- package/dist/website_sale/.kosh/schema.d.ts +2284 -0
- package/dist/website_sale/couriers.d.ts +50 -0
- package/dist/website_sale/couriers.js +59 -0
- package/dist/website_sale/demo.d.ts +7 -0
- package/dist/website_sale/demo.js +90 -0
- package/dist/website_sale/growth.d.ts +31 -0
- package/dist/website_sale/growth.js +163 -0
- package/dist/website_sale/index.d.ts +49 -0
- package/dist/website_sale/index.js +538 -0
- package/dist/website_sale/module.d.ts +22027 -0
- package/dist/website_sale/module.js +397 -0
- package/dist/website_sale/shipments.d.ts +16 -0
- package/dist/website_sale/shipments.js +113 -0
- package/dist/website_sale/shop.d.ts +81 -0
- package/dist/website_sale/shop.js +649 -0
- package/dist/website_sale_stock/.kosh/bindings.d.ts +22 -0
- package/dist/website_sale_stock/.kosh/bindings.js +15 -0
- package/dist/website_sale_stock/.kosh/schema.d.ts +2681 -0
- package/dist/website_sale_stock/index.d.ts +9 -0
- package/dist/website_sale_stock/index.js +20 -0
- package/dist/website_sale_stock/module.d.ts +24998 -0
- package/dist/website_sale_stock/module.js +28 -0
- package/package.json +200 -2
|
@@ -0,0 +1,611 @@
|
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: f4cc209cf945d73d
|
|
2
|
+
// Schema view of module `approvals` (RFC 0002 §7.7): the models it owns or depends on, with the extensions it can see.
|
|
3
|
+
import type { F } from '../../server/orm.js';
|
|
4
|
+
|
|
5
|
+
/** Model name → model type (RFC 0002 §7.7). */
|
|
6
|
+
export interface SchemaView {
|
|
7
|
+
readonly 'approval.delegation': ApprovalDelegation;
|
|
8
|
+
readonly 'approval.level': ApprovalLevel;
|
|
9
|
+
readonly 'approval.link': ApprovalLink;
|
|
10
|
+
readonly 'approval.policy': ApprovalPolicy;
|
|
11
|
+
readonly 'approval.request': ApprovalRequest;
|
|
12
|
+
readonly 'approval.vote': ApprovalVote;
|
|
13
|
+
readonly 'audit.event': AuditEvent;
|
|
14
|
+
readonly 'auth.api_key': AuthApiKey;
|
|
15
|
+
readonly 'auth.credential': AuthCredential;
|
|
16
|
+
readonly 'auth.policy': AuthPolicy;
|
|
17
|
+
readonly 'auth.session': AuthSession;
|
|
18
|
+
readonly 'auth.user_grant': AuthUserGrant;
|
|
19
|
+
readonly 'auth.user_group': AuthUserGroup;
|
|
20
|
+
readonly 'kosh.image': KoshImage;
|
|
21
|
+
readonly 'kosh.saved_view': KoshSavedView;
|
|
22
|
+
readonly 'kosh.setting': KoshSetting;
|
|
23
|
+
readonly 'oauth.app': OauthApp;
|
|
24
|
+
readonly 'oauth.code': OauthCode;
|
|
25
|
+
readonly 'oauth.grant': OauthGrant;
|
|
26
|
+
readonly 'oauth.token': OauthToken;
|
|
27
|
+
readonly 'res.company': ResCompany;
|
|
28
|
+
readonly 'res.currency': ResCurrency;
|
|
29
|
+
readonly 'res.users': ResUsers;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** `approval.delegation` (owner: permissions). */
|
|
33
|
+
export interface ApprovalDelegation {
|
|
34
|
+
readonly name: 'approval.delegation';
|
|
35
|
+
readonly fields: {
|
|
36
|
+
readonly id: F.Id<'approval.delegation'>;
|
|
37
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
38
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
39
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
40
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
41
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
42
|
+
readonly user: F.Many2one<'res.users', { readonly required: true; readonly default: true }>;
|
|
43
|
+
readonly delegate: F.Many2one<'res.users', { readonly required: true }>;
|
|
44
|
+
readonly dateFrom: F.DateOnly<{ readonly required: true }>;
|
|
45
|
+
readonly dateTo: F.DateOnly<{ readonly required: true }>;
|
|
46
|
+
readonly note: F.Char;
|
|
47
|
+
};
|
|
48
|
+
readonly methods: ApprovalDelegationMethods;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** Methods of `approval.delegation`: declared ones and transitions. */
|
|
52
|
+
export interface ApprovalDelegationMethods extends F.Methods<typeof import('../../permissions/index.js').permissionsShutro, 'approval.delegation'> {
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** `approval.level` (owner: permissions). */
|
|
56
|
+
export interface ApprovalLevel {
|
|
57
|
+
readonly name: 'approval.level';
|
|
58
|
+
readonly fields: {
|
|
59
|
+
readonly id: F.Id<'approval.level'>;
|
|
60
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
61
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
62
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
63
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
64
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
65
|
+
readonly policy: F.Many2one<'approval.policy', { readonly required: true }>;
|
|
66
|
+
readonly sequence: F.Integer<{ readonly default: true }>;
|
|
67
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
68
|
+
readonly condition: F.Json;
|
|
69
|
+
readonly approverKind: F.Selection<'role' | 'users' | 'manager' | 'field', { readonly required: true; readonly default: true }>;
|
|
70
|
+
readonly approverRole: F.Char;
|
|
71
|
+
readonly approverUsers: F.Many2many<'res.users', { readonly required: true }>;
|
|
72
|
+
readonly approverField: F.Char;
|
|
73
|
+
readonly quorum: F.Selection<'any' | 'all' | 'count', { readonly required: true; readonly default: true }>;
|
|
74
|
+
readonly quorumCount: F.Integer;
|
|
75
|
+
readonly deadlineHours: F.Integer;
|
|
76
|
+
readonly escalateRole: F.Char;
|
|
77
|
+
};
|
|
78
|
+
readonly methods: ApprovalLevelMethods;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/** Methods of `approval.level`: declared ones and transitions. */
|
|
82
|
+
export interface ApprovalLevelMethods extends F.Methods<typeof import('../../permissions/index.js').permissionsShutro, 'approval.level'> {
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/** `approval.link` (owner: permissions). */
|
|
86
|
+
export interface ApprovalLink {
|
|
87
|
+
readonly name: 'approval.link';
|
|
88
|
+
readonly fields: {
|
|
89
|
+
readonly id: F.Id<'approval.link'>;
|
|
90
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
91
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
92
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
93
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
94
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
95
|
+
readonly request: F.Many2one<'approval.request', { readonly required: true }>;
|
|
96
|
+
readonly user: F.Many2one<'res.users', { readonly required: true }>;
|
|
97
|
+
readonly tokenHash: F.Char<{ readonly required: true }>;
|
|
98
|
+
readonly expiresAt: F.Datetime<{ readonly required: true }>;
|
|
99
|
+
readonly usedAt: F.Datetime;
|
|
100
|
+
};
|
|
101
|
+
readonly methods: ApprovalLinkMethods;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** Methods of `approval.link`: declared ones and transitions. */
|
|
105
|
+
export interface ApprovalLinkMethods extends F.Methods<typeof import('../../permissions/index.js').permissionsShutro, 'approval.link'> {
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/** `approval.policy` (owner: permissions). */
|
|
109
|
+
export interface ApprovalPolicy {
|
|
110
|
+
readonly name: 'approval.policy';
|
|
111
|
+
readonly fields: {
|
|
112
|
+
readonly id: F.Id<'approval.policy'>;
|
|
113
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
114
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
115
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
116
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
117
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
118
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
119
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
120
|
+
readonly targetModel: F.Char<{ readonly required: true }>;
|
|
121
|
+
readonly sequence: F.Integer<{ readonly default: true }>;
|
|
122
|
+
readonly company: F.Many2one<'res.company'>;
|
|
123
|
+
readonly onApproved: F.Char;
|
|
124
|
+
readonly onRejected: F.Char;
|
|
125
|
+
readonly onSentBack: F.Char;
|
|
126
|
+
readonly onWithdrawn: F.Char;
|
|
127
|
+
readonly reasonRequired: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
128
|
+
readonly levels: F.One2many<'approval.level', { readonly required: true }>;
|
|
129
|
+
};
|
|
130
|
+
readonly methods: ApprovalPolicyMethods;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/** Methods of `approval.policy`: declared ones and transitions. */
|
|
134
|
+
export interface ApprovalPolicyMethods extends F.Methods<typeof import('../../permissions/index.js').permissionsShutro, 'approval.policy'> {
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/** `approval.request` (owner: permissions). */
|
|
138
|
+
export interface ApprovalRequest {
|
|
139
|
+
readonly name: 'approval.request';
|
|
140
|
+
readonly fields: {
|
|
141
|
+
readonly id: F.Id<'approval.request'>;
|
|
142
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
143
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
144
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
145
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
146
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
147
|
+
readonly policy: F.Many2one<'approval.policy'>;
|
|
148
|
+
readonly level: F.Many2one<'approval.level'>;
|
|
149
|
+
readonly levelName: F.Char<{ readonly required: true }>;
|
|
150
|
+
readonly sequence: F.Integer<{ readonly required: true }>;
|
|
151
|
+
readonly targetModel: F.Char<{ readonly required: true }>;
|
|
152
|
+
readonly targetId: F.Integer<{ readonly required: true }>;
|
|
153
|
+
readonly company: F.Many2one<'res.company'>;
|
|
154
|
+
readonly approverRole: F.Char;
|
|
155
|
+
readonly approvers: F.Many2many<'res.users', { readonly required: true }>;
|
|
156
|
+
readonly required: F.Integer<{ readonly required: true; readonly default: true }>;
|
|
157
|
+
readonly round: F.Integer<{ readonly required: true; readonly default: true }>;
|
|
158
|
+
readonly votes: F.One2many<'approval.vote', { readonly required: true }>;
|
|
159
|
+
readonly dueAt: F.Datetime;
|
|
160
|
+
readonly remindedAt: F.Datetime;
|
|
161
|
+
readonly escalatedTo: F.Char;
|
|
162
|
+
readonly escalatedAt: F.Datetime;
|
|
163
|
+
readonly state: F.Selection<'pending' | 'approved' | 'rejected' | 'sent_back' | 'cancelled', { readonly required: true; readonly default: true }>;
|
|
164
|
+
readonly requestedBy: F.Many2one<'res.users'>;
|
|
165
|
+
readonly decidedBy: F.Many2one<'res.users'>;
|
|
166
|
+
readonly decidedAt: F.Datetime;
|
|
167
|
+
readonly comment: F.Text;
|
|
168
|
+
};
|
|
169
|
+
readonly methods: ApprovalRequestMethods;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/** Methods of `approval.request`: declared ones and transitions. */
|
|
173
|
+
export interface ApprovalRequestMethods extends F.Methods<typeof import('../../permissions/index.js').permissionsShutro, 'approval.request'> {
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/** `approval.vote` (owner: permissions). */
|
|
177
|
+
export interface ApprovalVote {
|
|
178
|
+
readonly name: 'approval.vote';
|
|
179
|
+
readonly fields: {
|
|
180
|
+
readonly id: F.Id<'approval.vote'>;
|
|
181
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
182
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
183
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
184
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
185
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
186
|
+
readonly request: F.Many2one<'approval.request', { readonly required: true }>;
|
|
187
|
+
readonly user: F.Many2one<'res.users', { readonly required: true }>;
|
|
188
|
+
readonly decision: F.Selection<'approve' | 'reject' | 'send_back', { readonly required: true }>;
|
|
189
|
+
readonly comment: F.Text;
|
|
190
|
+
readonly at: F.Datetime<{ readonly required: true }>;
|
|
191
|
+
readonly onBehalfOf: F.Many2one<'res.users'>;
|
|
192
|
+
readonly ip: F.Char;
|
|
193
|
+
};
|
|
194
|
+
readonly methods: ApprovalVoteMethods;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/** Methods of `approval.vote`: declared ones and transitions. */
|
|
198
|
+
export interface ApprovalVoteMethods extends F.Methods<typeof import('../../permissions/index.js').permissionsShutro, 'approval.vote'> {
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/** `audit.event` (owner: base). */
|
|
202
|
+
export interface AuditEvent {
|
|
203
|
+
readonly name: 'audit.event';
|
|
204
|
+
readonly fields: {
|
|
205
|
+
readonly id: F.Id<'audit.event'>;
|
|
206
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
207
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
208
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
209
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
210
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
211
|
+
readonly kind: F.Char<{ readonly required: true }>;
|
|
212
|
+
readonly actor: F.Many2one<'res.users'>;
|
|
213
|
+
readonly company: F.Many2one<'res.company'>;
|
|
214
|
+
readonly targetModel: F.Char;
|
|
215
|
+
readonly targetId: F.Integer;
|
|
216
|
+
readonly summary: F.Char<{ readonly required: true }>;
|
|
217
|
+
readonly details: F.Json;
|
|
218
|
+
readonly ip: F.Char;
|
|
219
|
+
};
|
|
220
|
+
readonly methods: AuditEventMethods;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/** Methods of `audit.event`: declared ones and transitions. */
|
|
224
|
+
export interface AuditEventMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'audit.event'> {
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/** `auth.api_key` (owner: base). */
|
|
228
|
+
export interface AuthApiKey {
|
|
229
|
+
readonly name: 'auth.api_key';
|
|
230
|
+
readonly fields: {
|
|
231
|
+
readonly id: F.Id<'auth.api_key'>;
|
|
232
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
233
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
234
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
235
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
236
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
237
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
238
|
+
readonly user: F.Many2one<'res.users', { readonly required: true }>;
|
|
239
|
+
readonly tokenHash: F.Char<{ readonly required: true }>;
|
|
240
|
+
readonly prefix: F.Char<{ readonly required: true }>;
|
|
241
|
+
readonly scopes: F.Text<{ readonly required: true }>;
|
|
242
|
+
readonly expiresAt: F.Datetime<{ readonly required: true }>;
|
|
243
|
+
readonly lastUsedAt: F.Datetime;
|
|
244
|
+
readonly lastUsedIp: F.Char;
|
|
245
|
+
readonly revoked: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
246
|
+
readonly issuedBy: F.Many2one<'res.users'>;
|
|
247
|
+
};
|
|
248
|
+
readonly methods: AuthApiKeyMethods;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/** Methods of `auth.api_key`: declared ones and transitions. */
|
|
252
|
+
export interface AuthApiKeyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.api_key'> {
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/** `auth.credential` (owner: base). */
|
|
256
|
+
export interface AuthCredential {
|
|
257
|
+
readonly name: 'auth.credential';
|
|
258
|
+
readonly fields: {
|
|
259
|
+
readonly id: F.Id<'auth.credential'>;
|
|
260
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
261
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
262
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
263
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
264
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
265
|
+
readonly user: F.Many2one<'res.users', { readonly required: true }>;
|
|
266
|
+
readonly passwordHash: F.Char;
|
|
267
|
+
readonly totpSecret: F.Char;
|
|
268
|
+
readonly totpEnabled: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
269
|
+
readonly recoveryCodes: F.Json;
|
|
270
|
+
};
|
|
271
|
+
readonly methods: AuthCredentialMethods;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/** Methods of `auth.credential`: declared ones and transitions. */
|
|
275
|
+
export interface AuthCredentialMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.credential'> {
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/** `auth.policy` (owner: base). */
|
|
279
|
+
export interface AuthPolicy {
|
|
280
|
+
readonly name: 'auth.policy';
|
|
281
|
+
readonly fields: {
|
|
282
|
+
readonly id: F.Id<'auth.policy'>;
|
|
283
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
284
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
285
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
286
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
287
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
288
|
+
readonly twoFactor: F.Selection<'administrators' | 'everyone', { readonly required: true; readonly default: true }>;
|
|
289
|
+
readonly sessionDays: F.Integer;
|
|
290
|
+
};
|
|
291
|
+
readonly methods: AuthPolicyMethods;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/** Methods of `auth.policy`: declared ones and transitions. */
|
|
295
|
+
export interface AuthPolicyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.policy'> {
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/** `auth.session` (owner: base). */
|
|
299
|
+
export interface AuthSession {
|
|
300
|
+
readonly name: 'auth.session';
|
|
301
|
+
readonly fields: {
|
|
302
|
+
readonly id: F.Id<'auth.session'>;
|
|
303
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
304
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
305
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
306
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
307
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
308
|
+
readonly tokenHash: F.Char<{ readonly required: true }>;
|
|
309
|
+
readonly csrfHash: F.Char<{ readonly required: true }>;
|
|
310
|
+
readonly user: F.Many2one<'res.users', { readonly required: true }>;
|
|
311
|
+
readonly twoFactorVerified: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
312
|
+
readonly secondFactor: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
313
|
+
readonly expiresAt: F.Datetime<{ readonly required: true }>;
|
|
314
|
+
readonly lastSeenAt: F.Datetime<{ readonly required: true }>;
|
|
315
|
+
readonly revoked: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
316
|
+
readonly ip: F.Char;
|
|
317
|
+
readonly userAgent: F.Char;
|
|
318
|
+
};
|
|
319
|
+
readonly methods: AuthSessionMethods;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/** Methods of `auth.session`: declared ones and transitions. */
|
|
323
|
+
export interface AuthSessionMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.session'> {
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/** `auth.user_grant` (owner: base). */
|
|
327
|
+
export interface AuthUserGrant {
|
|
328
|
+
readonly name: 'auth.user_grant';
|
|
329
|
+
readonly fields: {
|
|
330
|
+
readonly id: F.Id<'auth.user_grant'>;
|
|
331
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
332
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
333
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
334
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
335
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
336
|
+
readonly user: F.Many2one<'res.users', { readonly required: true }>;
|
|
337
|
+
readonly company: F.Many2one<'res.company'>;
|
|
338
|
+
readonly grant: F.Char<{ readonly required: true }>;
|
|
339
|
+
readonly expiresAt: F.Datetime;
|
|
340
|
+
readonly reason: F.Char<{ readonly required: true }>;
|
|
341
|
+
};
|
|
342
|
+
readonly methods: AuthUserGrantMethods;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/** Methods of `auth.user_grant`: declared ones and transitions. */
|
|
346
|
+
export interface AuthUserGrantMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.user_grant'> {
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/** `auth.user_group` (owner: base). */
|
|
350
|
+
export interface AuthUserGroup {
|
|
351
|
+
readonly name: 'auth.user_group';
|
|
352
|
+
readonly fields: {
|
|
353
|
+
readonly id: F.Id<'auth.user_group'>;
|
|
354
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
355
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
356
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
357
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
358
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
359
|
+
readonly user: F.Many2one<'res.users', { readonly required: true }>;
|
|
360
|
+
readonly company: F.Many2one<'res.company'>;
|
|
361
|
+
readonly group: F.Char<{ readonly required: true }>;
|
|
362
|
+
};
|
|
363
|
+
readonly methods: AuthUserGroupMethods;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/** Methods of `auth.user_group`: declared ones and transitions. */
|
|
367
|
+
export interface AuthUserGroupMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.user_group'> {
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/** `kosh.image` (owner: base). */
|
|
371
|
+
export interface KoshImage {
|
|
372
|
+
readonly name: 'kosh.image';
|
|
373
|
+
readonly fields: {
|
|
374
|
+
readonly id: F.Id<'kosh.image'>;
|
|
375
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
376
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
377
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
378
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
379
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
380
|
+
readonly ownerModel: F.Char<{ readonly required: true }>;
|
|
381
|
+
readonly ownerId: F.Integer<{ readonly required: true }>;
|
|
382
|
+
readonly mime: F.Char<{ readonly required: true }>;
|
|
383
|
+
readonly data: F.Text<{ readonly required: true }>;
|
|
384
|
+
readonly hash: F.Char<{ readonly required: true }>;
|
|
385
|
+
};
|
|
386
|
+
readonly methods: KoshImageMethods;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/** Methods of `kosh.image`: declared ones and transitions. */
|
|
390
|
+
export interface KoshImageMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'kosh.image'> {
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/** `kosh.saved_view` (owner: base). */
|
|
394
|
+
export interface KoshSavedView {
|
|
395
|
+
readonly name: 'kosh.saved_view';
|
|
396
|
+
readonly fields: {
|
|
397
|
+
readonly id: F.Id<'kosh.saved_view'>;
|
|
398
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
399
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
400
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
401
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
402
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
403
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
404
|
+
readonly targetModel: F.Char<{ readonly required: true }>;
|
|
405
|
+
readonly viewType: F.Char<{ readonly required: true; readonly default: true }>;
|
|
406
|
+
readonly state: F.Json<unknown, { readonly required: true }>;
|
|
407
|
+
readonly shared: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
408
|
+
readonly isDefault: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
409
|
+
};
|
|
410
|
+
readonly methods: KoshSavedViewMethods;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/** Methods of `kosh.saved_view`: declared ones and transitions. */
|
|
414
|
+
export interface KoshSavedViewMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'kosh.saved_view'> {
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/** `kosh.setting` (owner: base). */
|
|
418
|
+
export interface KoshSetting {
|
|
419
|
+
readonly name: 'kosh.setting';
|
|
420
|
+
readonly fields: {
|
|
421
|
+
readonly id: F.Id<'kosh.setting'>;
|
|
422
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
423
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
424
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
425
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
426
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
427
|
+
readonly key: F.Char<{ readonly required: true }>;
|
|
428
|
+
readonly value: F.Json;
|
|
429
|
+
};
|
|
430
|
+
readonly methods: KoshSettingMethods;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/** Methods of `kosh.setting`: declared ones and transitions. */
|
|
434
|
+
export interface KoshSettingMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'kosh.setting'> {
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/** `oauth.app` (owner: base). */
|
|
438
|
+
export interface OauthApp {
|
|
439
|
+
readonly name: 'oauth.app';
|
|
440
|
+
readonly fields: {
|
|
441
|
+
readonly id: F.Id<'oauth.app'>;
|
|
442
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
443
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
444
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
445
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
446
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
447
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
448
|
+
readonly clientId: F.Char<{ readonly required: true }>;
|
|
449
|
+
readonly secretHash: F.Char;
|
|
450
|
+
readonly confidential: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
451
|
+
readonly redirectUris: F.Text<{ readonly required: true }>;
|
|
452
|
+
readonly scopes: F.Char<{ readonly required: true }>;
|
|
453
|
+
readonly homepage: F.Char;
|
|
454
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
455
|
+
readonly owner: F.Many2one<'res.users'>;
|
|
456
|
+
};
|
|
457
|
+
readonly methods: OauthAppMethods;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/** Methods of `oauth.app`: declared ones and transitions. */
|
|
461
|
+
export interface OauthAppMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.app'> {
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/** `oauth.code` (owner: base). */
|
|
465
|
+
export interface OauthCode {
|
|
466
|
+
readonly name: 'oauth.code';
|
|
467
|
+
readonly fields: {
|
|
468
|
+
readonly id: F.Id<'oauth.code'>;
|
|
469
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
470
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
471
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
472
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
473
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
474
|
+
readonly codeHash: F.Char<{ readonly required: true }>;
|
|
475
|
+
readonly grant: F.Many2one<'oauth.grant', { readonly required: true }>;
|
|
476
|
+
readonly redirectUri: F.Char<{ readonly required: true }>;
|
|
477
|
+
readonly challenge: F.Char;
|
|
478
|
+
readonly expiresAt: F.Datetime<{ readonly required: true }>;
|
|
479
|
+
readonly used: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
480
|
+
};
|
|
481
|
+
readonly methods: OauthCodeMethods;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/** Methods of `oauth.code`: declared ones and transitions. */
|
|
485
|
+
export interface OauthCodeMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.code'> {
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
/** `oauth.grant` (owner: base). */
|
|
489
|
+
export interface OauthGrant {
|
|
490
|
+
readonly name: 'oauth.grant';
|
|
491
|
+
readonly fields: {
|
|
492
|
+
readonly id: F.Id<'oauth.grant'>;
|
|
493
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
494
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
495
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
496
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
497
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
498
|
+
readonly user: F.Many2one<'res.users', { readonly required: true }>;
|
|
499
|
+
readonly app: F.Many2one<'oauth.app', { readonly required: true }>;
|
|
500
|
+
readonly scopes: F.Char<{ readonly required: true }>;
|
|
501
|
+
readonly revoked: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
502
|
+
readonly lastUsedAt: F.Datetime;
|
|
503
|
+
};
|
|
504
|
+
readonly methods: OauthGrantMethods;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
/** Methods of `oauth.grant`: declared ones and transitions. */
|
|
508
|
+
export interface OauthGrantMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.grant'> {
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
/** `oauth.token` (owner: base). */
|
|
512
|
+
export interface OauthToken {
|
|
513
|
+
readonly name: 'oauth.token';
|
|
514
|
+
readonly fields: {
|
|
515
|
+
readonly id: F.Id<'oauth.token'>;
|
|
516
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
517
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
518
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
519
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
520
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
521
|
+
readonly grant: F.Many2one<'oauth.grant', { readonly required: true }>;
|
|
522
|
+
readonly accessHash: F.Char<{ readonly required: true }>;
|
|
523
|
+
readonly refreshHash: F.Char<{ readonly required: true }>;
|
|
524
|
+
readonly accessExpiresAt: F.Datetime<{ readonly required: true }>;
|
|
525
|
+
readonly refreshExpiresAt: F.Datetime<{ readonly required: true }>;
|
|
526
|
+
readonly revoked: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
527
|
+
readonly rotated: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
528
|
+
};
|
|
529
|
+
readonly methods: OauthTokenMethods;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/** Methods of `oauth.token`: declared ones and transitions. */
|
|
533
|
+
export interface OauthTokenMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.token'> {
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
/** `res.company` (owner: base). */
|
|
537
|
+
export interface ResCompany {
|
|
538
|
+
readonly name: 'res.company';
|
|
539
|
+
readonly fields: {
|
|
540
|
+
readonly id: F.Id<'res.company'>;
|
|
541
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
542
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
543
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
544
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
545
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
546
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
547
|
+
readonly currency: F.Many2one<'res.currency', { readonly required: true }>;
|
|
548
|
+
readonly numberGrouping: F.Selection<'international' | 'lakh', { readonly required: true; readonly default: true }>;
|
|
549
|
+
readonly accentColor: F.Char;
|
|
550
|
+
readonly street: F.Char;
|
|
551
|
+
readonly city: F.Char;
|
|
552
|
+
readonly zip: F.Char;
|
|
553
|
+
readonly email: F.Char;
|
|
554
|
+
readonly phone: F.Char;
|
|
555
|
+
readonly website: F.Char;
|
|
556
|
+
};
|
|
557
|
+
readonly methods: ResCompanyMethods;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/** Methods of `res.company`: declared ones and transitions. */
|
|
561
|
+
export interface ResCompanyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'res.company'> {
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/** `res.currency` (owner: base). */
|
|
565
|
+
export interface ResCurrency {
|
|
566
|
+
readonly name: 'res.currency';
|
|
567
|
+
readonly fields: {
|
|
568
|
+
readonly id: F.Id<'res.currency'>;
|
|
569
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
570
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
571
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
572
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
573
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
574
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
575
|
+
readonly rounding: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
576
|
+
readonly decimalPlaces: F.Integer<{ readonly default: true }>;
|
|
577
|
+
};
|
|
578
|
+
readonly methods: ResCurrencyMethods;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/** Methods of `res.currency`: declared ones and transitions. */
|
|
582
|
+
export interface ResCurrencyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'res.currency'> {
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/** `res.users` (owner: base). */
|
|
586
|
+
export interface ResUsers {
|
|
587
|
+
readonly name: 'res.users';
|
|
588
|
+
readonly fields: {
|
|
589
|
+
readonly id: F.Id<'res.users'>;
|
|
590
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
591
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
592
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
593
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
594
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
595
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
596
|
+
readonly login: F.Char<{ readonly required: true }>;
|
|
597
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
598
|
+
readonly email: F.Char;
|
|
599
|
+
readonly phone: F.Char;
|
|
600
|
+
readonly company: F.Many2one<'res.company'>;
|
|
601
|
+
readonly companies: F.Many2many<'res.company', { readonly required: true }>;
|
|
602
|
+
readonly lang: F.Char<{ readonly default: true }>;
|
|
603
|
+
readonly tz: F.Char<{ readonly default: true }>;
|
|
604
|
+
readonly isService: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
605
|
+
};
|
|
606
|
+
readonly methods: ResUsersMethods;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/** Methods of `res.users`: declared ones and transitions. */
|
|
610
|
+
export interface ResUsersMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'res.users'> {
|
|
611
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type Mailer } from '../mail/index.js';
|
|
2
|
+
import { defineModule } from '../modules-sdk/index.js';
|
|
3
|
+
import { type ModuleContext } from '../server/index.js';
|
|
4
|
+
import type { Worker } from '../server/orm.js';
|
|
5
|
+
export { mailDeciders, mailTurn } from './mails.js';
|
|
6
|
+
export { approvalsShutro } from './module.js';
|
|
7
|
+
/** The subscribers that email a record's approvers when its approvals are asked and when a level is approved. */
|
|
8
|
+
export declare function approvalMailWorkers(context: Pick<ModuleContext, 'shutro'>): Worker[];
|
|
9
|
+
export interface ApprovalsOptions {
|
|
10
|
+
/** Who sends approvers their requests; default: SMTP from the environment (`SMTP_URL`), none without it. */
|
|
11
|
+
readonly mailer?: Mailer | undefined;
|
|
12
|
+
/** The API's public address, which email links point to (`KOSH_API_URL`). */
|
|
13
|
+
readonly apiUrl?: string;
|
|
14
|
+
}
|
|
15
|
+
/** The Approvals app with explicit options (tests: a memory mailer). */
|
|
16
|
+
export declare function approvalsModule(options?: ApprovalsOptions): ReturnType<typeof defineModule>;
|
|
17
|
+
/** The Approvals app (mail from the environment). */
|
|
18
|
+
export declare const approvals: ReturnType<typeof defineModule>;
|