shutro-erp 0.3.5 → 0.3.7
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.js +15 -0
- package/dist/{mrp_account → account_asset}/.kosh/schema.d.ts +785 -614
- 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/i18n/bn.d.ts +2 -0
- package/dist/account_asset/i18n/bn.js +97 -0
- package/dist/account_asset/index.d.ts +9 -0
- package/dist/account_asset/index.js +337 -0
- package/dist/account_asset/module.d.ts +11076 -0
- package/dist/account_asset/module.js +230 -0
- package/dist/account_budget/.kosh/bindings.js +15 -0
- package/dist/account_budget/.kosh/schema.d.ts +2841 -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/i18n/bn.d.ts +2 -0
- package/dist/account_budget/i18n/bn.js +63 -0
- package/dist/account_budget/index.d.ts +4 -0
- package/dist/account_budget/index.js +237 -0
- package/dist/account_budget/module.d.ts +27289 -0
- package/dist/account_budget/module.js +182 -0
- package/dist/account_portal/.kosh/bindings.js +1 -1
- package/dist/account_portal/.kosh/schema.d.ts +651 -10
- package/dist/account_portal/i18n/bn.d.ts +2 -0
- package/dist/account_portal/i18n/bn.js +6 -0
- package/dist/account_portal/index.js +2 -0
- package/dist/account_portal/module.d.ts +5212 -1592
- package/dist/accounting/.kosh/bindings.js +1 -1
- package/dist/accounting/.kosh/schema.d.ts +651 -10
- package/dist/accounting/closing.js +1 -0
- package/dist/accounting/fiscal.d.ts +578 -0
- package/dist/accounting/fiscal.js +401 -0
- package/dist/accounting/followups.d.ts +618 -0
- package/dist/accounting/followups.js +420 -0
- package/dist/accounting/i18n/bn.d.ts +2 -0
- package/dist/accounting/i18n/bn.js +425 -0
- package/dist/accounting/index.d.ts +3 -1
- package/dist/accounting/index.js +780 -5
- package/dist/accounting/module.d.ts +5386 -1543
- package/dist/accounting/module.js +155 -18
- package/dist/accounting/statements.d.ts +878 -0
- package/dist/accounting/statements.js +728 -0
- package/dist/accounting/web/BankReconcilePage.d.ts +9 -0
- package/dist/accounting/web/BankReconcilePage.js +138 -0
- package/dist/accounting/web/FollowupsPage.d.ts +8 -0
- package/dist/accounting/web/FollowupsPage.js +54 -0
- package/dist/accounting/web/PostingPreview.d.ts +8 -0
- package/dist/accounting/web/PostingPreview.js +26 -0
- package/dist/accounting/web/index.d.ts +3 -0
- package/dist/accounting/web/index.js +9 -0
- package/dist/accounting/web/messages.js +140 -0
- package/dist/approvals/.kosh/bindings.d.ts +22 -0
- package/dist/approvals/.kosh/bindings.js +15 -0
- package/dist/approvals/.kosh/schema.d.ts +879 -0
- package/dist/approvals/demo.d.ts +7 -0
- package/dist/approvals/demo.js +41 -0
- package/dist/approvals/i18n/bn.d.ts +2 -0
- package/dist/approvals/i18n/bn.js +133 -0
- package/dist/approvals/index.d.ts +36 -0
- package/dist/approvals/index.js +772 -0
- package/dist/approvals/mails.d.ts +30 -0
- package/dist/approvals/mails.js +87 -0
- package/dist/approvals/module.d.ts +2930 -0
- package/dist/approvals/module.js +473 -0
- package/dist/approvals/web/Config.d.ts +12 -0
- package/dist/approvals/web/Config.js +60 -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/Matrix.d.ts +9 -0
- package/dist/approvals/web/Matrix.js +26 -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 +15 -0
- package/dist/approvals/web/index.js +29 -0
- package/dist/approvals/web/messages.d.ts +2 -0
- package/dist/approvals/web/messages.js +211 -0
- package/dist/approvals/web/shared.d.ts +59 -0
- package/dist/approvals/web/shared.js +46 -0
- package/dist/approvals_purchase/.kosh/bindings.d.ts +22 -0
- package/dist/approvals_purchase/.kosh/bindings.js +15 -0
- package/dist/approvals_purchase/.kosh/schema.d.ts +1997 -0
- package/dist/approvals_purchase/i18n/bn.d.ts +2 -0
- package/dist/approvals_purchase/i18n/bn.js +5 -0
- package/dist/approvals_purchase/index.d.ts +3 -0
- package/dist/approvals_purchase/index.js +47 -0
- package/dist/approvals_purchase/module.d.ts +12670 -0
- package/dist/approvals_purchase/module.js +84 -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 +1106 -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/i18n/bn.d.ts +2 -0
- package/dist/attendance/i18n/bn.js +147 -0
- package/dist/attendance/index.d.ts +4 -0
- package/dist/attendance/index.js +515 -0
- package/dist/attendance/module.d.ts +4413 -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/automation/engine.js +1 -1
- package/dist/calendar/.kosh/bindings.js +1 -1
- package/dist/calendar/.kosh/schema.d.ts +2 -1
- package/dist/calendar/i18n/bn.d.ts +2 -0
- package/dist/calendar/i18n/bn.js +80 -0
- package/dist/calendar/index.js +77 -0
- package/dist/calendar/module.d.ts +26 -0
- package/dist/calendar/module.js +14 -4
- package/dist/cli/apps.js +25 -5
- package/dist/cli/init.js +46 -4
- package/dist/cli/templates.d.ts +1 -1
- package/dist/cli/templates.js +123 -5
- package/dist/contacts/.kosh/bindings.js +1 -1
- package/dist/contacts/.kosh/schema.d.ts +2 -1
- package/dist/contacts/i18n/bn.d.ts +2 -0
- package/dist/contacts/i18n/bn.js +67 -0
- package/dist/contacts/index.js +3 -0
- package/dist/contacts/module.d.ts +42 -0
- package/dist/contacts/module.js +19 -3
- package/dist/crm/.kosh/bindings.js +1 -1
- package/dist/crm/.kosh/schema.d.ts +3 -1
- package/dist/crm/i18n/bn.d.ts +2 -0
- package/dist/crm/i18n/bn.js +80 -0
- package/dist/crm/index.js +22 -0
- package/dist/crm/module.d.ts +22 -0
- package/dist/crm/module.js +6 -3
- package/dist/documents/.kosh/bindings.d.ts +22 -0
- package/dist/documents/.kosh/bindings.js +15 -0
- package/dist/documents/.kosh/schema.d.ts +863 -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/i18n/bn.d.ts +2 -0
- package/dist/documents/i18n/bn.js +83 -0
- package/dist/documents/index.d.ts +30 -0
- package/dist/documents/index.js +569 -0
- package/dist/documents/module.d.ts +2801 -0
- package/dist/documents/module.js +215 -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.js +1 -1
- package/dist/event/.kosh/schema.d.ts +2 -1
- package/dist/event/i18n/bn.d.ts +2 -0
- package/dist/event/i18n/bn.js +101 -0
- package/dist/event/index.js +66 -0
- package/dist/event/module.d.ts +20 -0
- package/dist/event/module.js +8 -1
- package/dist/event_account/.kosh/bindings.js +1 -1
- package/dist/event_account/.kosh/schema.d.ts +651 -10
- package/dist/event_account/i18n/bn.d.ts +2 -0
- package/dist/event_account/i18n/bn.js +5 -0
- package/dist/event_account/index.js +2 -0
- package/dist/event_account/module.d.ts +5133 -1513
- package/dist/expense/.kosh/bindings.d.ts +22 -0
- package/dist/expense/.kosh/bindings.js +15 -0
- package/dist/expense/.kosh/schema.d.ts +1620 -0
- package/dist/expense/demo.d.ts +7 -0
- package/dist/expense/demo.js +69 -0
- package/dist/expense/i18n/bn.d.ts +2 -0
- package/dist/expense/i18n/bn.js +155 -0
- package/dist/expense/index.d.ts +3 -0
- package/dist/expense/index.js +502 -0
- package/dist/expense/module.d.ts +6768 -0
- package/dist/expense/module.js +649 -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 +2515 -0
- package/dist/expense_account/i18n/bn.d.ts +2 -0
- package/dist/expense_account/i18n/bn.js +15 -0
- package/dist/expense_account/index.d.ts +3 -0
- package/dist/expense_account/index.js +76 -0
- package/dist/expense_account/module.d.ts +14628 -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 +886 -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/i18n/bn.d.ts +2 -0
- package/dist/helpdesk/i18n/bn.js +127 -0
- package/dist/helpdesk/index.d.ts +10 -0
- package/dist/helpdesk/index.js +463 -0
- package/dist/helpdesk/module.d.ts +2960 -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.js +1 -1
- package/dist/hr/.kosh/schema.d.ts +59 -1
- package/dist/hr/demo.js +11 -1
- package/dist/hr/i18n/bn.d.ts +2 -0
- package/dist/hr/i18n/bn.js +126 -0
- package/dist/hr/index.d.ts +1 -1
- package/dist/hr/index.js +158 -12
- package/dist/hr/module.d.ts +932 -59
- package/dist/hr/module.js +114 -17
- package/dist/indent/.kosh/bindings.d.ts +22 -0
- package/dist/indent/.kosh/bindings.js +15 -0
- package/dist/indent/.kosh/schema.d.ts +2084 -0
- package/dist/indent/demo.d.ts +7 -0
- package/dist/indent/demo.js +48 -0
- package/dist/indent/i18n/bn.d.ts +2 -0
- package/dist/indent/i18n/bn.js +143 -0
- package/dist/indent/index.d.ts +3 -0
- package/dist/indent/index.js +450 -0
- package/dist/indent/module.d.ts +13424 -0
- package/dist/indent/module.js +792 -0
- package/dist/indent_purchase/.kosh/bindings.d.ts +22 -0
- package/dist/indent_purchase/.kosh/bindings.js +15 -0
- package/dist/indent_purchase/.kosh/schema.d.ts +2710 -0
- package/dist/indent_purchase/i18n/bn.d.ts +2 -0
- package/dist/indent_purchase/i18n/bn.js +13 -0
- package/dist/indent_purchase/index.d.ts +3 -0
- package/dist/indent_purchase/index.js +61 -0
- package/dist/indent_purchase/module.d.ts +27950 -0
- package/dist/indent_purchase/module.js +163 -0
- package/dist/l10n_bd/.kosh/bindings.js +1 -1
- package/dist/l10n_bd/.kosh/schema.d.ts +651 -10
- package/dist/l10n_bd/i18n/bn.d.ts +2 -0
- package/dist/l10n_bd/i18n/bn.js +69 -0
- package/dist/l10n_bd/index.js +2 -0
- package/dist/l10n_bd/module.d.ts +5212 -1592
- 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 +2891 -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/i18n/bn.d.ts +2 -0
- package/dist/l10n_bd_payroll/i18n/bn.js +4 -0
- package/dist/l10n_bd_payroll/index.d.ts +4 -0
- package/dist/l10n_bd_payroll/index.js +26 -0
- package/dist/l10n_bd_payroll/module.d.ts +17294 -0
- package/dist/l10n_bd_payroll/module.js +86 -0
- package/dist/l10n_bd_pos/.kosh/bindings.d.ts +22 -0
- package/dist/{mrp_account → l10n_bd_pos}/.kosh/bindings.js +2 -2
- package/dist/l10n_bd_pos/.kosh/schema.d.ts +2341 -0
- package/dist/l10n_bd_pos/i18n/bn.d.ts +2 -0
- package/dist/l10n_bd_pos/i18n/bn.js +32 -0
- package/dist/l10n_bd_pos/index.d.ts +3 -0
- package/dist/l10n_bd_pos/index.js +111 -0
- package/dist/{mrp_account → l10n_bd_pos}/module.d.ts +9047 -6981
- package/dist/l10n_bd_pos/module.js +43 -0
- package/dist/l10n_in/.kosh/bindings.js +1 -1
- package/dist/l10n_in/.kosh/schema.d.ts +651 -10
- package/dist/l10n_in/i18n/bn.d.ts +2 -0
- package/dist/l10n_in/i18n/bn.js +95 -0
- package/dist/l10n_in/index.js +2 -0
- package/dist/l10n_in/module.d.ts +6778 -1580
- package/dist/l10n_in/module.js +25 -5
- package/dist/l10n_in/web/GstSettings.js +2 -2
- package/dist/mail/inbound/handle.js +8 -5
- package/dist/mail/inbound/models.js +5 -3
- package/dist/mail/index.d.ts +12 -1
- package/dist/mail/index.js +139 -2
- package/dist/mail/send.d.ts +56 -0
- package/dist/mail/send.js +394 -0
- package/dist/mail/web/SendButton.d.ts +9 -0
- package/dist/mail/web/SendButton.js +71 -0
- package/dist/mail/web/SendSelected.d.ts +8 -0
- package/dist/mail/web/SendSelected.js +33 -0
- package/dist/mail/web/index.d.ts +2 -0
- package/dist/mail/web/index.js +6 -0
- package/dist/mail/web/messages.js +36 -0
- package/dist/maintenance/.kosh/bindings.js +1 -1
- package/dist/maintenance/.kosh/schema.d.ts +2 -1
- package/dist/maintenance/i18n/bn.d.ts +2 -0
- package/dist/maintenance/i18n/bn.js +132 -0
- package/dist/maintenance/index.js +85 -0
- package/dist/maintenance/module.d.ts +25 -0
- package/dist/maintenance/module.js +27 -9
- package/dist/maintenance_stock/.kosh/bindings.js +1 -1
- package/dist/maintenance_stock/.kosh/schema.d.ts +374 -3
- package/dist/maintenance_stock/i18n/bn.d.ts +2 -0
- package/dist/maintenance_stock/i18n/bn.js +21 -0
- package/dist/maintenance_stock/index.js +2 -0
- package/dist/maintenance_stock/module.d.ts +6095 -1327
- package/dist/maintenance_stock/module.js +1 -0
- package/dist/modules-sdk/apps.d.ts +10 -0
- package/dist/modules-sdk/apps.js +32 -0
- package/dist/modules-sdk/index.d.ts +1 -1
- package/dist/modules-sdk/manifest.d.ts +105 -2
- package/dist/payment/.kosh/bindings.js +1 -1
- package/dist/payment/.kosh/schema.d.ts +653 -11
- package/dist/payment/i18n/bn.d.ts +2 -0
- package/dist/payment/i18n/bn.js +59 -0
- package/dist/payment/index.d.ts +41 -0
- package/dist/payment/index.js +216 -74
- package/dist/payment/module.d.ts +5353 -1675
- package/dist/payment/module.js +36 -6
- package/dist/payment/settle.js +11 -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 +1448 -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/i18n/bn.d.ts +2 -0
- package/dist/payroll/i18n/bn.js +206 -0
- package/dist/payroll/index.d.ts +230 -0
- package/dist/payroll/index.js +715 -0
- package/dist/{mrp → payroll}/module.d.ts +4294 -2624
- 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 +2887 -0
- package/dist/payroll_account/i18n/bn.d.ts +2 -0
- package/dist/payroll_account/i18n/bn.js +10 -0
- package/dist/payroll_account/index.d.ts +3 -0
- package/dist/payroll_account/index.js +42 -0
- package/dist/payroll_account/module.d.ts +16738 -0
- package/dist/payroll_account/module.js +256 -0
- package/dist/permissions/approvals.d.ts +227 -12
- package/dist/permissions/approvals.js +1421 -67
- package/dist/permissions/index.d.ts +1 -1
- package/dist/permissions/index.js +2 -2
- package/dist/permissions/models.js +364 -13
- package/dist/permissions/routes.d.ts +9 -1
- package/dist/permissions/routes.js +72 -5
- package/dist/permissions/web/ApprovalPanel.d.ts +5 -4
- package/dist/permissions/web/ApprovalPanel.js +75 -11
- 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 +95 -0
- package/dist/portal/.kosh/bindings.js +1 -1
- package/dist/portal/.kosh/schema.d.ts +2 -1
- package/dist/portal/documents.d.ts +3 -0
- package/dist/portal/documents.js +21 -1
- package/dist/portal/i18n/bn.d.ts +2 -0
- package/dist/portal/i18n/bn.js +33 -0
- package/dist/portal/index.js +3 -1
- package/dist/portal/module.d.ts +20 -0
- package/dist/portal/routes-documents.js +76 -0
- package/dist/pos/.kosh/bindings.js +1 -1
- package/dist/pos/.kosh/schema.d.ts +652 -10
- package/dist/pos/i18n/bn.d.ts +2 -0
- package/dist/pos/i18n/bn.js +133 -0
- package/dist/pos/index.js +87 -1
- package/dist/pos/module.d.ts +6967 -1709
- package/dist/pos/module.js +49 -5
- package/dist/pos/routes.js +80 -7
- package/dist/pos/web/Register.js +2 -5
- package/dist/pos_stock/.kosh/bindings.js +1 -1
- package/dist/pos_stock/.kosh/schema.d.ts +822 -12
- package/dist/pos_stock/i18n/bn.d.ts +2 -0
- package/dist/pos_stock/i18n/bn.js +6 -0
- package/dist/pos_stock/index.js +2 -0
- package/dist/pos_stock/module.d.ts +11241 -2851
- package/dist/product/.kosh/bindings.js +1 -1
- package/dist/product/.kosh/schema.d.ts +203 -1
- package/dist/product/i18n/bn.d.ts +2 -0
- package/dist/product/i18n/bn.js +175 -0
- package/dist/product/index.d.ts +1 -0
- package/dist/product/index.js +301 -1
- package/dist/product/module.d.ts +1727 -0
- package/dist/product/module.js +67 -6
- package/dist/product/pricelist.d.ts +575 -0
- package/dist/product/pricelist.js +257 -0
- package/dist/product/variants.d.ts +908 -0
- package/dist/product/variants.js +251 -0
- package/dist/production/.kosh/bindings.d.ts +22 -0
- package/dist/production/.kosh/bindings.js +15 -0
- package/dist/production/.kosh/schema.d.ts +2345 -0
- package/dist/{mrp → production}/demo.d.ts +1 -1
- package/dist/{mrp → production}/demo.js +5 -5
- package/dist/production/depth.d.ts +790 -0
- package/dist/production/depth.js +262 -0
- package/dist/production/i18n/bn.d.ts +2 -0
- package/dist/production/i18n/bn.js +350 -0
- package/dist/production/index.d.ts +6 -0
- package/dist/production/index.js +1256 -0
- package/dist/production/module.d.ts +17327 -0
- package/dist/production/module.js +1333 -0
- package/dist/production/plan.d.ts +921 -0
- package/dist/production/plan.js +511 -0
- package/dist/production/schedule.d.ts +656 -0
- package/dist/production/schedule.js +309 -0
- package/dist/production_account/.kosh/bindings.d.ts +22 -0
- package/dist/production_account/.kosh/bindings.js +15 -0
- package/dist/production_account/.kosh/schema.d.ts +3496 -0
- package/dist/production_account/i18n/bn.d.ts +2 -0
- package/dist/production_account/i18n/bn.js +93 -0
- package/dist/production_account/index.d.ts +4 -0
- package/dist/production_account/index.js +246 -0
- package/dist/production_account/module.d.ts +1192 -0
- package/dist/{mrp_account → production_account}/module.js +72 -18
- package/dist/production_account/overhead.d.ts +1195 -0
- package/dist/production_account/overhead.js +554 -0
- package/dist/project/.kosh/bindings.js +1 -1
- package/dist/project/.kosh/schema.d.ts +735 -1
- package/dist/project/i18n/bn.d.ts +2 -0
- package/dist/project/i18n/bn.js +383 -0
- package/dist/project/index.d.ts +3 -1
- package/dist/project/index.js +1024 -14
- package/dist/project/module.d.ts +9912 -390
- package/dist/project/module.js +1590 -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 +2763 -0
- package/dist/project_account/i18n/bn.d.ts +2 -0
- package/dist/project_account/i18n/bn.js +6 -0
- package/dist/project_account/index.d.ts +3 -0
- package/dist/project_account/index.js +29 -0
- package/dist/project_account/module.d.ts +15013 -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 +735 -1
- package/dist/project_portal/i18n/bn.d.ts +2 -0
- package/dist/project_portal/i18n/bn.js +6 -0
- package/dist/project_portal/index.js +2 -0
- package/dist/project_portal/module.d.ts +4796 -87
- 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 +3393 -0
- package/dist/project_purchase/i18n/bn.d.ts +2 -0
- package/dist/project_purchase/i18n/bn.js +4 -0
- package/dist/project_purchase/index.d.ts +9 -0
- package/dist/project_purchase/index.js +24 -0
- package/dist/project_purchase/module.d.ts +38613 -0
- package/dist/project_purchase/module.js +56 -0
- package/dist/purchase/.kosh/bindings.js +1 -1
- package/dist/purchase/.kosh/schema.d.ts +908 -5
- package/dist/purchase/comparison.d.ts +993 -0
- package/dist/purchase/comparison.js +415 -0
- package/dist/purchase/extras.d.ts +1509 -0
- package/dist/purchase/extras.js +445 -0
- package/dist/purchase/i18n/bn.d.ts +2 -0
- package/dist/purchase/i18n/bn.js +413 -0
- package/dist/purchase/index.d.ts +5 -0
- package/dist/purchase/index.js +1280 -4
- package/dist/purchase/module.d.ts +7147 -395
- package/dist/purchase/module.js +303 -10
- package/dist/purchase/request.d.ts +696 -0
- package/dist/purchase/request.js +446 -0
- package/dist/purchase/tender.d.ts +1208 -0
- package/dist/purchase/tender.js +507 -0
- package/dist/purchase/vendorprice.d.ts +340 -0
- package/dist/purchase/vendorprice.js +153 -0
- package/dist/purchase_account/.kosh/bindings.js +1 -1
- package/dist/purchase_account/.kosh/schema.d.ts +1209 -16
- package/dist/purchase_account/i18n/bn.d.ts +2 -0
- package/dist/purchase_account/i18n/bn.js +22 -0
- package/dist/purchase_account/index.js +20 -0
- package/dist/purchase_account/module.d.ts +12232 -2028
- package/dist/purchase_account/module.js +252 -9
- package/dist/purchase_portal/.kosh/bindings.js +1 -1
- package/dist/purchase_portal/.kosh/schema.d.ts +908 -5
- package/dist/purchase_portal/i18n/bn.d.ts +2 -0
- package/dist/purchase_portal/i18n/bn.js +5 -0
- package/dist/purchase_portal/index.js +2 -0
- package/dist/purchase_portal/module.d.ts +6853 -352
- package/dist/purchase_stock/.kosh/bindings.js +1 -1
- package/dist/purchase_stock/.kosh/schema.d.ts +1096 -21
- package/dist/purchase_stock/i18n/bn.d.ts +2 -0
- package/dist/purchase_stock/i18n/bn.js +19 -0
- package/dist/purchase_stock/index.d.ts +2 -2
- package/dist/purchase_stock/index.js +38 -2
- package/dist/purchase_stock/module.d.ts +12930 -1612
- package/dist/purchase_stock/module.js +317 -9
- package/dist/purchase_stock/scorecard.d.ts +22 -0
- package/dist/purchase_stock/scorecard.js +77 -0
- package/dist/purchase_stock/web/Scorecard.d.ts +7 -0
- package/dist/purchase_stock/web/Scorecard.js +22 -0
- package/dist/purchase_stock/web/index.d.ts +11 -0
- package/dist/purchase_stock/web/index.js +16 -0
- package/dist/purchase_stock/web/messages.d.ts +2 -0
- package/dist/purchase_stock/web/messages.js +27 -0
- package/dist/purchase_stock_account/.kosh/bindings.js +1 -1
- package/dist/purchase_stock_account/.kosh/schema.d.ts +1444 -20
- package/dist/purchase_stock_account/i18n/bn.d.ts +2 -0
- package/dist/purchase_stock_account/i18n/bn.js +8 -0
- package/dist/purchase_stock_account/index.js +18 -0
- package/dist/purchase_stock_account/module.d.ts +7 -35346
- package/dist/purchase_stock_account/module.js +35 -8
- package/dist/recruitment/.kosh/bindings.js +1 -1
- package/dist/recruitment/.kosh/schema.d.ts +60 -1
- package/dist/recruitment/i18n/bn.d.ts +2 -0
- package/dist/recruitment/i18n/bn.js +93 -0
- package/dist/recruitment/index.js +64 -0
- package/dist/recruitment/module.d.ts +460 -8
- package/dist/recruitment/module.js +13 -4
- package/dist/reporting/documents.d.ts +5 -0
- package/dist/reporting/documents.js +11 -1
- package/dist/reporting/index.d.ts +1 -1
- package/dist/reporting/index.js +1 -1
- package/dist/reporting/web/CalendarView.d.ts +18 -5
- package/dist/reporting/web/CalendarView.js +163 -29
- package/dist/reporting/web/messages.js +18 -0
- package/dist/sale_account/.kosh/bindings.js +1 -1
- package/dist/sale_account/.kosh/schema.d.ts +763 -18
- package/dist/sale_account/i18n/bn.d.ts +2 -0
- package/dist/sale_account/i18n/bn.js +48 -0
- package/dist/sale_account/index.d.ts +1 -1
- package/dist/sale_account/index.js +102 -4
- package/dist/sale_account/module.d.ts +8241 -2052
- package/dist/sale_account/module.js +535 -46
- package/dist/sale_crm/.kosh/bindings.d.ts +22 -0
- package/dist/sale_crm/.kosh/bindings.js +15 -0
- package/dist/{mrp → sale_crm}/.kosh/schema.d.ts +391 -494
- package/dist/sale_crm/i18n/bn.d.ts +2 -0
- package/dist/sale_crm/i18n/bn.js +9 -0
- package/dist/sale_crm/index.d.ts +7 -0
- package/dist/sale_crm/index.js +104 -0
- package/dist/sale_crm/module.d.ts +5609 -0
- package/dist/sale_crm/module.js +73 -0
- package/dist/sale_portal/.kosh/bindings.js +1 -1
- package/dist/sale_portal/.kosh/schema.d.ts +292 -4
- package/dist/sale_portal/i18n/bn.d.ts +2 -0
- package/dist/sale_portal/i18n/bn.js +7 -0
- package/dist/sale_portal/index.js +10 -0
- package/dist/sale_portal/module.d.ts +2563 -292
- package/dist/sale_project/.kosh/bindings.js +1 -1
- package/dist/sale_project/.kosh/schema.d.ts +1025 -4
- package/dist/sale_project/i18n/bn.d.ts +2 -0
- package/dist/sale_project/i18n/bn.js +12 -0
- package/dist/sale_project/index.js +2 -0
- package/dist/sale_project/module.d.ts +9280 -762
- package/dist/sale_project/module.js +17 -1
- package/dist/sale_stock/.kosh/bindings.js +1 -1
- package/dist/sale_stock/.kosh/schema.d.ts +463 -6
- package/dist/sale_stock/i18n/bn.d.ts +2 -0
- package/dist/sale_stock/i18n/bn.js +15 -0
- package/dist/sale_stock/index.js +2 -0
- package/dist/sale_stock/module.d.ts +8355 -1334
- package/dist/sale_stock/module.js +20 -3
- package/dist/sales/.kosh/bindings.js +1 -1
- package/dist/sales/.kosh/schema.d.ts +292 -4
- package/dist/sales/i18n/bn.d.ts +2 -0
- package/dist/sales/i18n/bn.js +128 -0
- package/dist/sales/index.js +124 -5
- package/dist/sales/module.d.ts +3568 -633
- package/dist/sales/module.js +306 -11
- package/dist/server/api/duplicate.d.ts +14 -0
- package/dist/server/api/duplicate.js +75 -0
- package/dist/server/api/explain.d.ts +70 -0
- package/dist/server/api/explain.js +111 -0
- package/dist/server/api/metadata.d.ts +2 -0
- package/dist/server/api/metadata.js +9 -0
- package/dist/server/api/openapi.js +15 -0
- package/dist/server/api/rest.d.ts +1 -0
- package/dist/server/api/rest.js +76 -12
- package/dist/server/api/views.js +1 -1
- package/dist/server/apps.d.ts +16 -1
- package/dist/server/apps.js +164 -2
- package/dist/server/auth/base.js +2 -0
- package/dist/server/auth/service.d.ts +8 -0
- package/dist/server/auth/service.js +19 -0
- package/dist/server/events.d.ts +13 -0
- package/dist/server/events.js +22 -0
- package/dist/server/i18n.d.ts +27 -0
- package/dist/server/i18n.js +143 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.js +2 -0
- package/dist/server/server.js +6 -0
- package/dist/settings/company.d.ts +3 -1
- package/dist/settings/company.js +26 -5
- package/dist/settings/routes.d.ts +10 -0
- package/dist/settings/routes.js +19 -3
- package/dist/settings/web/AppsPage.d.ts +3 -2
- package/dist/settings/web/AppsPage.js +26 -8
- package/dist/settings/web/CompaniesPage.js +91 -6
- package/dist/settings/web/messages.js +64 -0
- package/dist/sign/.kosh/bindings.d.ts +22 -0
- package/dist/{mrp → sign}/.kosh/bindings.js +2 -2
- package/dist/sign/.kosh/schema.d.ts +991 -0
- package/dist/sign/i18n/bn.d.ts +2 -0
- package/dist/sign/i18n/bn.js +97 -0
- package/dist/sign/index.d.ts +29 -0
- package/dist/sign/index.js +478 -0
- package/dist/sign/module.d.ts +4518 -0
- package/dist/sign/module.js +167 -0
- package/dist/sign/sign.d.ts +82 -0
- package/dist/sign/sign.js +474 -0
- package/dist/stock/.kosh/bindings.js +1 -1
- package/dist/stock/.kosh/schema.d.ts +374 -3
- package/dist/stock/demo.d.ts +2 -1
- package/dist/stock/demo.js +28 -1
- package/dist/stock/i18n/bn.d.ts +2 -0
- package/dist/stock/i18n/bn.js +311 -0
- package/dist/stock/index.d.ts +4 -1
- package/dist/stock/index.js +674 -6
- package/dist/stock/ledger.d.ts +78 -0
- package/dist/stock/ledger.js +582 -0
- package/dist/stock/module.d.ts +6142 -1380
- package/dist/stock/module.js +780 -26
- package/dist/stock/replenish.d.ts +38 -0
- package/dist/stock/replenish.js +191 -0
- package/dist/stock/returns.d.ts +157 -0
- package/dist/stock/returns.js +163 -0
- package/dist/stock/web/Ledger.d.ts +9 -0
- package/dist/stock/web/Ledger.js +108 -0
- package/dist/stock/web/Operations.d.ts +8 -0
- package/dist/stock/web/Operations.js +33 -0
- package/dist/stock/web/Replenishment.d.ts +8 -0
- package/dist/stock/web/Replenishment.js +84 -0
- package/dist/stock/web/ReturnButton.d.ts +7 -0
- package/dist/stock/web/ReturnButton.js +62 -0
- package/dist/stock/web/index.d.ts +7 -2
- package/dist/stock/web/index.js +15 -2
- package/dist/stock/web/messages.js +206 -0
- package/dist/stock_account/.kosh/bindings.js +1 -1
- package/dist/stock_account/.kosh/schema.d.ts +878 -12
- package/dist/stock_account/i18n/bn.d.ts +2 -0
- package/dist/stock_account/i18n/bn.js +73 -0
- package/dist/stock_account/index.d.ts +1 -0
- package/dist/stock_account/index.js +141 -3
- package/dist/stock_account/landed.d.ts +429 -0
- package/dist/stock_account/landed.js +335 -0
- package/dist/stock_account/module.d.ts +12143 -3391
- package/dist/stock_account/module.js +135 -6
- package/dist/stock_account/web/LandedPreview.d.ts +7 -0
- package/dist/stock_account/web/LandedPreview.js +23 -0
- package/dist/stock_account/web/index.d.ts +11 -0
- package/dist/stock_account/web/index.js +16 -0
- package/dist/stock_account/web/messages.d.ts +2 -0
- package/dist/stock_account/web/messages.js +27 -0
- package/dist/todo/i18n/bn.d.ts +2 -0
- package/dist/todo/i18n/bn.js +66 -0
- package/dist/todo/index.js +59 -0
- package/dist/todo/module.d.ts +5 -0
- package/dist/todo/module.js +5 -3
- package/dist/trade_finance/.kosh/bindings.js +1 -1
- package/dist/trade_finance/.kosh/schema.d.ts +2 -1
- package/dist/trade_finance/i18n/bn.d.ts +2 -0
- package/dist/trade_finance/i18n/bn.js +162 -0
- package/dist/trade_finance/index.js +95 -0
- package/dist/trade_finance/module.d.ts +26 -0
- package/dist/trade_finance/module.js +29 -8
- package/dist/trade_finance_account/.kosh/bindings.js +1 -1
- package/dist/trade_finance_account/.kosh/schema.d.ts +651 -10
- package/dist/trade_finance_account/i18n/bn.d.ts +2 -0
- package/dist/trade_finance_account/i18n/bn.js +27 -0
- package/dist/trade_finance_account/index.js +3 -0
- package/dist/trade_finance_account/module.d.ts +5129 -1509
- package/dist/trade_finance_account/module.js +2 -0
- package/dist/trade_finance_purchase/.kosh/bindings.js +1 -1
- package/dist/trade_finance_purchase/.kosh/schema.d.ts +908 -5
- package/dist/trade_finance_purchase/i18n/bn.d.ts +2 -0
- package/dist/trade_finance_purchase/i18n/bn.js +6 -0
- package/dist/trade_finance_purchase/index.js +2 -0
- package/dist/trade_finance_purchase/module.d.ts +6909 -408
- package/dist/trade_finance_sale/.kosh/bindings.js +1 -1
- package/dist/trade_finance_sale/.kosh/schema.d.ts +292 -4
- package/dist/trade_finance_sale/i18n/bn.d.ts +2 -0
- package/dist/trade_finance_sale/i18n/bn.js +6 -0
- package/dist/trade_finance_sale/index.js +2 -0
- package/dist/trade_finance_sale/module.d.ts +2602 -331
- package/dist/ui/api.d.ts +2 -0
- package/dist/ui/app.d.ts +9 -0
- package/dist/ui/app.js +47 -15
- package/dist/ui/components/AppIcon.js +9 -2
- package/dist/ui/components/Explain.d.ts +69 -0
- package/dist/ui/components/Explain.js +62 -0
- package/dist/ui/context.d.ts +8 -1
- package/dist/ui/context.js +34 -1
- package/dist/ui/i18n/messages.d.ts +40 -0
- package/dist/ui/i18n/messages.js +80 -0
- package/dist/ui/index.d.ts +2 -1
- package/dist/ui/index.js +1 -0
- package/dist/ui/registry.d.ts +14 -0
- package/dist/ui/registry.js +10 -0
- package/dist/ui/views/FormView.d.ts +6 -0
- package/dist/ui/views/FormView.js +51 -12
- package/dist/ui/views/KanbanView.js +9 -1
- package/dist/ui/views/ListView.d.ts +8 -0
- package/dist/ui/views/ListView.js +14 -5
- package/dist/ui/views/StatsRow.js +2 -1
- package/dist/ui/views/widgets.js +7 -1
- package/dist/views/extend.js +12 -0
- package/dist/views/types.d.ts +13 -2
- package/dist/views/validate.js +8 -1
- package/dist/website/.kosh/bindings.js +1 -1
- package/dist/website/.kosh/schema.d.ts +2 -1
- package/dist/website/i18n/bn.d.ts +2 -0
- package/dist/website/i18n/bn.js +113 -0
- package/dist/website/index.js +37 -0
- package/dist/website/module.d.ts +20 -0
- package/dist/website/module.js +30 -5
- package/dist/website_crm/.kosh/bindings.js +1 -1
- package/dist/website_crm/.kosh/schema.d.ts +3 -1
- package/dist/website_crm/i18n/bn.d.ts +2 -0
- package/dist/website_crm/i18n/bn.js +5 -0
- package/dist/website_crm/index.js +2 -0
- package/dist/website_crm/module.d.ts +41 -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 +2909 -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/i18n/bn.d.ts +2 -0
- package/dist/website_sale/i18n/bn.js +132 -0
- package/dist/website_sale/index.d.ts +49 -0
- package/dist/website_sale/index.js +620 -0
- package/dist/website_sale/module.d.ts +35182 -0
- package/dist/website_sale/module.js +419 -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 +662 -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 +3400 -0
- package/dist/website_sale_stock/i18n/bn.d.ts +2 -0
- package/dist/website_sale_stock/i18n/bn.js +4 -0
- package/dist/website_sale_stock/index.d.ts +9 -0
- package/dist/website_sale_stock/index.js +22 -0
- package/dist/website_sale_stock/module.d.ts +11 -0
- package/dist/website_sale_stock/module.js +32 -0
- package/package.json +117 -8
- package/dist/mrp/index.d.ts +0 -3
- package/dist/mrp/index.js +0 -392
- package/dist/mrp/module.js +0 -695
- package/dist/mrp_account/index.d.ts +0 -3
- package/dist/mrp_account/index.js +0 -22
- /package/dist/{mrp → account_asset}/.kosh/bindings.d.ts +0 -0
- /package/dist/{mrp_account → account_budget}/.kosh/bindings.d.ts +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helpdesk's demo data (RFC 0008 §5.8): a Support team (Dina and Rahim, assigned in turn, Sunday to Thursday 09:00
|
|
3
|
+
* to 18:00), a standard SLA and a faster one for urgent tickets, a canned reply, and three tickets from customers —
|
|
4
|
+
* one answered and waiting on the customer, one urgent, one solved — with the clock refreshed.
|
|
5
|
+
*/
|
|
6
|
+
import type { DemoContext } from '../modules-sdk/index.js';
|
|
7
|
+
export declare function helpdeskDemo(ctx: DemoContext): Promise<string>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { refreshSla } from './sla.js';
|
|
2
|
+
const DINA = { login: 'dina', name: 'Dina Rahman', groups: ['helpdesk.manager'] };
|
|
3
|
+
const RAHIM = { login: 'rahim', name: 'Rahim Uddin', groups: ['helpdesk.user'] };
|
|
4
|
+
export async function helpdeskDemo(ctx) {
|
|
5
|
+
const rahim = await ctx.as(RAHIM, async (raw) => raw.userId);
|
|
6
|
+
await ctx.as(DINA, async (raw) => {
|
|
7
|
+
const env = raw;
|
|
8
|
+
const team = (await env.model('helpdesk.team').create([
|
|
9
|
+
{
|
|
10
|
+
name: 'Support',
|
|
11
|
+
members: { set: [env.userId, rahim] },
|
|
12
|
+
assignment: 'round_robin',
|
|
13
|
+
},
|
|
14
|
+
])).ids[0];
|
|
15
|
+
await env.model('helpdesk.sla').create([
|
|
16
|
+
{ name: 'Standard', sequence: 20, team, firstReplyHours: '4', resolveHours: '24' },
|
|
17
|
+
{
|
|
18
|
+
name: 'Urgent',
|
|
19
|
+
sequence: 10,
|
|
20
|
+
team,
|
|
21
|
+
priority: 'urgent',
|
|
22
|
+
firstReplyHours: '1',
|
|
23
|
+
resolveHours: '8',
|
|
24
|
+
},
|
|
25
|
+
]);
|
|
26
|
+
await env.model('helpdesk.canned').create([
|
|
27
|
+
{
|
|
28
|
+
name: 'Thanks, looking into it',
|
|
29
|
+
body: 'Dear {{customer}},\n\nThank you for writing about {{ticket}}. We are looking into it and will be back to you soon.\n\n{{agent}}',
|
|
30
|
+
},
|
|
31
|
+
]);
|
|
32
|
+
const partner = async (name, email) => (await env.model('res.partner').search({ where: { name }, limit: 1 })).ids[0] ??
|
|
33
|
+
(await env.model('res.partner').create([{ name, email }])).ids[0];
|
|
34
|
+
const made = await env.model('helpdesk.ticket').create([
|
|
35
|
+
{
|
|
36
|
+
subject: 'Invoice INV/2026/0007 shows the wrong VAT',
|
|
37
|
+
description: 'The VAT on line 2 should be 15%, not 7.5%.',
|
|
38
|
+
team,
|
|
39
|
+
partner: await partner('Meghna Mills', 'accounts@meghna.example'),
|
|
40
|
+
priority: 'normal',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
subject: 'Delivery to the Gazipur warehouse did not arrive',
|
|
44
|
+
description: 'The order was due yesterday; the line is stopped.',
|
|
45
|
+
team,
|
|
46
|
+
partner: await partner('Bengal Steel', 'stores@bengalsteel.example'),
|
|
47
|
+
priority: 'urgent',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
subject: 'How do I download my statement?',
|
|
51
|
+
team,
|
|
52
|
+
partner: await partner('Padma Foods', 'office@padmafoods.example'),
|
|
53
|
+
priority: 'low',
|
|
54
|
+
},
|
|
55
|
+
]);
|
|
56
|
+
await env.flush();
|
|
57
|
+
const [first, , third] = made.ids;
|
|
58
|
+
if (first !== undefined)
|
|
59
|
+
await env.model('helpdesk.ticket').browse([first]).wait();
|
|
60
|
+
if (third !== undefined)
|
|
61
|
+
await env.model('helpdesk.ticket').browse([third]).solve();
|
|
62
|
+
await env.asSuperuser({ reason: 'demo helpdesk clock' }, (su) => refreshSla(su));
|
|
63
|
+
});
|
|
64
|
+
return 'Helpdesk: the Support team, two SLA policies, a canned reply, three tickets (waiting, urgent, solved).';
|
|
65
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Business hours (RFC 0024 §2.4): a team works from `open` to `close` (`HH:MM`) on the days outside its weekend, in
|
|
3
|
+
* a time zone; SLA targets count only those minutes. Pure functions, without a database.
|
|
4
|
+
*/
|
|
5
|
+
export interface Hours {
|
|
6
|
+
readonly open: string;
|
|
7
|
+
readonly close: string;
|
|
8
|
+
/** JavaScript day numbers off (0: Sunday). */
|
|
9
|
+
readonly weekend: readonly number[];
|
|
10
|
+
readonly tz: string;
|
|
11
|
+
}
|
|
12
|
+
/** The weekend of each choice, as JavaScript day numbers. */
|
|
13
|
+
export declare const WEEKENDS: Readonly<Record<string, readonly number[]>>;
|
|
14
|
+
/** The moment `minutes` working minutes after `from`. */
|
|
15
|
+
export declare function addBusinessMinutes(from: Date, minutes: number, hours: Hours): Date;
|
|
16
|
+
/** The working minutes between two moments (0 when `to` is not after `from`). */
|
|
17
|
+
export declare function businessMinutesBetween(from: Date, to: Date, hours: Hours): number;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Business hours (RFC 0024 §2.4): a team works from `open` to `close` (`HH:MM`) on the days outside its weekend, in
|
|
3
|
+
* a time zone; SLA targets count only those minutes. Pure functions, without a database.
|
|
4
|
+
*/
|
|
5
|
+
/** The weekend of each choice, as JavaScript day numbers. */
|
|
6
|
+
export const WEEKENDS = {
|
|
7
|
+
fri_sat: [5, 6],
|
|
8
|
+
sat_sun: [6, 0],
|
|
9
|
+
fri: [5],
|
|
10
|
+
none: [],
|
|
11
|
+
};
|
|
12
|
+
const DAY = 86_400_000;
|
|
13
|
+
const minutesOf = (hhmm) => {
|
|
14
|
+
const [h, m] = hhmm.split(':').map(Number);
|
|
15
|
+
return h * 60 + m;
|
|
16
|
+
};
|
|
17
|
+
function parts(at, tz) {
|
|
18
|
+
const out = {};
|
|
19
|
+
for (const p of new Intl.DateTimeFormat('en-US', {
|
|
20
|
+
timeZone: tz,
|
|
21
|
+
hourCycle: 'h23',
|
|
22
|
+
year: 'numeric',
|
|
23
|
+
month: '2-digit',
|
|
24
|
+
day: '2-digit',
|
|
25
|
+
hour: '2-digit',
|
|
26
|
+
minute: '2-digit',
|
|
27
|
+
}).formatToParts(at))
|
|
28
|
+
if (p.type !== 'literal')
|
|
29
|
+
out[p.type] = Number(p.value);
|
|
30
|
+
return {
|
|
31
|
+
y: out['year'] ?? 0,
|
|
32
|
+
m: out['month'] ?? 1,
|
|
33
|
+
d: out['day'] ?? 1,
|
|
34
|
+
h: out['hour'] ?? 0,
|
|
35
|
+
min: out['minute'] ?? 0,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/** The instant of `minutes` after midnight of the local date `y-m-d` in `tz`. */
|
|
39
|
+
function instant(y, m, d, minutes, tz) {
|
|
40
|
+
const guess = Date.UTC(y, m - 1, d, 0, minutes);
|
|
41
|
+
const offset = (t) => {
|
|
42
|
+
const p = parts(new Date(t), tz);
|
|
43
|
+
return Date.UTC(p.y, p.m - 1, p.d, p.h, p.min) - t;
|
|
44
|
+
};
|
|
45
|
+
const first = guess - offset(guess);
|
|
46
|
+
return guess - offset(first);
|
|
47
|
+
}
|
|
48
|
+
/** The working window of each local day from the one of `from`, as instants, for at most `days` days. */
|
|
49
|
+
function* windows(from, hours, days = 3660) {
|
|
50
|
+
const p = parts(from, hours.tz);
|
|
51
|
+
let day = Date.UTC(p.y, p.m - 1, p.d);
|
|
52
|
+
const open = minutesOf(hours.open);
|
|
53
|
+
const close = minutesOf(hours.close);
|
|
54
|
+
if (close <= open)
|
|
55
|
+
return;
|
|
56
|
+
for (let i = 0; i < days; i += 1, day += DAY) {
|
|
57
|
+
const date = new Date(day);
|
|
58
|
+
if (hours.weekend.includes(date.getUTCDay()))
|
|
59
|
+
continue;
|
|
60
|
+
const y = date.getUTCFullYear();
|
|
61
|
+
const m = date.getUTCMonth() + 1;
|
|
62
|
+
const d = date.getUTCDate();
|
|
63
|
+
yield [instant(y, m, d, open, hours.tz), instant(y, m, d, close, hours.tz)];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/** The moment `minutes` working minutes after `from`. */
|
|
67
|
+
export function addBusinessMinutes(from, minutes, hours) {
|
|
68
|
+
let left = Math.max(0, minutes) * 60_000;
|
|
69
|
+
const start = from.getTime();
|
|
70
|
+
for (const [a, b] of windows(from, hours)) {
|
|
71
|
+
const s = Math.max(a, start);
|
|
72
|
+
if (s >= b)
|
|
73
|
+
continue;
|
|
74
|
+
if (s + left <= b)
|
|
75
|
+
return new Date(s + left);
|
|
76
|
+
left -= b - s;
|
|
77
|
+
}
|
|
78
|
+
return new Date(start + minutes * 60_000);
|
|
79
|
+
}
|
|
80
|
+
/** The working minutes between two moments (0 when `to` is not after `from`). */
|
|
81
|
+
export function businessMinutesBetween(from, to, hours) {
|
|
82
|
+
if (to <= from)
|
|
83
|
+
return 0;
|
|
84
|
+
let total = 0;
|
|
85
|
+
for (const [a, b] of windows(from, hours)) {
|
|
86
|
+
if (a >= to.getTime())
|
|
87
|
+
break;
|
|
88
|
+
const s = Math.max(a, from.getTime());
|
|
89
|
+
const e = Math.min(b, to.getTime());
|
|
90
|
+
if (e > s)
|
|
91
|
+
total += e - s;
|
|
92
|
+
}
|
|
93
|
+
return Math.round(total / 60_000);
|
|
94
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/** Bangla for the module's labels, keyed by their English text (RFC 0023 §3.1; `pnpm i18n:extract`). */
|
|
2
|
+
export const bn = {
|
|
3
|
+
'A rating is from one to five.': 'রেটিং এক থেকে পাঁচের মধ্যে হয়।',
|
|
4
|
+
Active: 'সক্রিয়',
|
|
5
|
+
Agent: 'এজেন্ট',
|
|
6
|
+
'Agent (the tickets of their teams)': 'এজেন্ট (নিজ দলের টিকিট)',
|
|
7
|
+
Agents: 'এজেন্টরা',
|
|
8
|
+
'An IANA name such as Asia/Dhaka or Asia/Kolkata.': 'IANA নাম, যেমন Asia/Dhaka বা Asia/Kolkata।',
|
|
9
|
+
'Ask for a rating': 'রেটিং চান',
|
|
10
|
+
Assignment: 'বণ্টন',
|
|
11
|
+
'At risk': 'ঝুঁকিতে',
|
|
12
|
+
'At risk: less than a fifth of the time left; breached: a target passed; met: solved in time.': 'ঝুঁকিতে: সময়ের এক-পঞ্চমাংশেরও কম বাকি; লঙ্ঘিত: একটি লক্ষ্য পেরিয়ে গেছে; পূরণ: সময়মতো সমাধান হয়েছে।',
|
|
13
|
+
'Average rating': 'গড় রেটিং',
|
|
14
|
+
Body: 'মূল লেখা',
|
|
15
|
+
Breached: 'লঙ্ঘিত',
|
|
16
|
+
'Business hours': 'কার্যসময়',
|
|
17
|
+
'By hand': 'হাতে',
|
|
18
|
+
'Canned replies': 'তৈরি উত্তর',
|
|
19
|
+
'Canned reply': 'তৈরি উত্তর',
|
|
20
|
+
Close: 'বন্ধ করুন',
|
|
21
|
+
Closed: 'বন্ধ',
|
|
22
|
+
Closes: 'বন্ধ হয়',
|
|
23
|
+
'Closes (HH:MM)': 'বন্ধ হয় (HH:MM)',
|
|
24
|
+
Company: 'প্রতিষ্ঠান',
|
|
25
|
+
Configuration: 'কনফিগারেশন',
|
|
26
|
+
'Created At': 'তৈরির সময়',
|
|
27
|
+
'Created By': 'তৈরি করেছেন',
|
|
28
|
+
Customer: 'গ্রাহক',
|
|
29
|
+
'Customer email': 'গ্রাহকের ইমেইল',
|
|
30
|
+
'Decides the SLA policy: a policy from a priority covers that one and the ones above.': 'এসএলএ নীতি নির্ধারণ করে: কোনো অগ্রাধিকার থেকে শুরু নীতি সেটি ও তার উপরেরগুলোতে প্রযোজ্য।',
|
|
31
|
+
Description: 'বিবরণ',
|
|
32
|
+
'Display Name': 'প্রদর্শিত নাম',
|
|
33
|
+
'Empty: every customer.': 'খালি: সব গ্রাহক।',
|
|
34
|
+
'Empty: every team.': 'খালি: সব দল।',
|
|
35
|
+
'First replied': 'প্রথম উত্তর দেওয়া হয়েছে',
|
|
36
|
+
'First reply by': 'প্রথম উত্তরের শেষ সময়',
|
|
37
|
+
'First reply within (hours)': 'প্রথম উত্তর (ঘণ্টার মধ্যে)',
|
|
38
|
+
'Folded on the board': 'বোর্ডে গুটানো',
|
|
39
|
+
'Friday and Saturday': 'শুক্রবার ও শনিবার',
|
|
40
|
+
'Friday only': 'শুধু শুক্রবার',
|
|
41
|
+
'From priority': 'যে অগ্রাধিকার থেকে',
|
|
42
|
+
Helpdesk: 'হেল্পডেস্ক',
|
|
43
|
+
'Helpdesk agent': 'হেল্পডেস্ক এজেন্ট',
|
|
44
|
+
'Helpdesk manager': 'হেল্পডেস্ক ব্যবস্থাপক',
|
|
45
|
+
'Helpdesk manager (teams, SLAs, every ticket)': 'হেল্পডেস্ক ব্যবস্থাপক (দল, এসএলএ, সব টিকিট)',
|
|
46
|
+
'Helpdesk team': 'হেল্পডেস্ক দল',
|
|
47
|
+
High: 'উচ্চ',
|
|
48
|
+
'Hours are written HH:MM, the closing after the opening.': 'সময় HH:MM আকারে লিখুন, বন্ধের সময় খোলার পরে।',
|
|
49
|
+
'How new tickets get their agent: in turn among the agents, or to the one with the fewest open tickets.': 'নতুন টিকিট কীভাবে এজেন্ট পায়: এজেন্টদের মধ্যে পালাক্রমে, অথবা যার খোলা টিকিট সবচেয়ে কম তাকে।',
|
|
50
|
+
ID: 'আইডি',
|
|
51
|
+
'In the team’s business hours; waiting on the customer pauses the resolution target.': 'দলের কার্যসময়ের মধ্যে; গ্রাহকের অপেক্ষায় থাকলে সমাধানের লক্ষ্য থেমে থাকে।',
|
|
52
|
+
'In turn': 'পালাক্রমে',
|
|
53
|
+
Low: 'নিম্ন',
|
|
54
|
+
Merged: 'একীভূত',
|
|
55
|
+
'Merged into': 'যার সাথে একীভূত',
|
|
56
|
+
Met: 'পূরণ',
|
|
57
|
+
Mine: 'আমার',
|
|
58
|
+
Name: 'নাম',
|
|
59
|
+
'No SLA': 'এসএলএ নেই',
|
|
60
|
+
'None (every day)': 'নেই (প্রতিদিন)',
|
|
61
|
+
Normal: 'সাধারণ',
|
|
62
|
+
'On track': 'ঠিক পথে',
|
|
63
|
+
Open: 'খোলা',
|
|
64
|
+
'Open by agent': 'এজেন্ট অনুযায়ী খোলা',
|
|
65
|
+
'Open tickets': 'খোলা টিকিট',
|
|
66
|
+
Opens: 'খোলে',
|
|
67
|
+
'Opens (HH:MM)': 'খোলে (HH:MM)',
|
|
68
|
+
Outcome: 'ফলাফল',
|
|
69
|
+
Overview: 'সারসংক্ষেপ',
|
|
70
|
+
'Paused (working minutes)': 'বিরতি (কার্য মিনিট)',
|
|
71
|
+
'Placeholders: {{customer}}, {{ticket}}, {{agent}} — filled in when used.': 'প্লেসহোল্ডার: {{customer}}, {{ticket}}, {{agent}} — ব্যবহারের সময় পূরণ হয়।',
|
|
72
|
+
Priority: 'অগ্রাধিকার',
|
|
73
|
+
'Rating (1–5)': 'রেটিং (১–৫)',
|
|
74
|
+
'Rating link': 'রেটিং লিংক',
|
|
75
|
+
Reference: 'রেফারেন্স',
|
|
76
|
+
Reopen: 'আবার খুলুন',
|
|
77
|
+
Resume: 'আবার শুরু করুন',
|
|
78
|
+
'Saturday and Sunday': 'শনিবার ও রবিবার',
|
|
79
|
+
Sequence: 'ক্রম',
|
|
80
|
+
Services: 'সেবা',
|
|
81
|
+
SLA: 'এসএলএ',
|
|
82
|
+
'SLA at risk': 'এসএলএ ঝুঁকিতে',
|
|
83
|
+
'SLA breached': 'এসএলএ লঙ্ঘিত',
|
|
84
|
+
'SLA policies': 'এসএলএ নীতিমালা',
|
|
85
|
+
'SLA policy': 'এসএলএ নীতি',
|
|
86
|
+
'SLA targets count working hours only: from opening to closing, outside the weekend.': 'এসএলএ লক্ষ্যে শুধু কার্যঘণ্টা গোনা হয়: খোলা থেকে বন্ধ পর্যন্ত, সাপ্তাহিক ছুটি বাদে।',
|
|
87
|
+
Solved: 'সমাধানকৃত',
|
|
88
|
+
'Solved by': 'সমাধানের শেষ সময়',
|
|
89
|
+
'Solved this month': 'এই মাসে সমাধানকৃত',
|
|
90
|
+
'Solved within (hours)': 'সমাধান (ঘণ্টার মধ্যে)',
|
|
91
|
+
Stage: 'ধাপ',
|
|
92
|
+
Stages: 'ধাপসমূহ',
|
|
93
|
+
State: 'অবস্থা',
|
|
94
|
+
Status: 'অবস্থা',
|
|
95
|
+
Subject: 'বিষয়',
|
|
96
|
+
'Targets (business hours)': 'লক্ষ্য (কার্যঘণ্টা)',
|
|
97
|
+
'Targets are positive, the resolution no sooner than the first reply.': 'লক্ষ্য ধনাত্মক হতে হবে, সমাধানের সময় প্রথম উত্তরের আগে নয়।',
|
|
98
|
+
Team: 'দল',
|
|
99
|
+
Teams: 'দলসমূহ',
|
|
100
|
+
'The customer’s comment': 'গ্রাহকের মন্তব্য',
|
|
101
|
+
'The first policy that matches a ticket applies.': 'টিকিটের সাথে মেলে এমন প্রথম নীতি প্রযোজ্য হয়।',
|
|
102
|
+
'The first policy, by sequence, that matches a ticket applies to it.': 'ক্রম অনুযায়ী টিকিটের সাথে মেলে এমন প্রথম নীতি তাতে প্রযোজ্য হয়।',
|
|
103
|
+
'The teams’ business hours are read in this time zone.': 'দলগুলোর কার্যসময় এই সময় অঞ্চলে ধরা হয়।',
|
|
104
|
+
Ticket: 'টিকিট',
|
|
105
|
+
'Ticket solved': 'টিকিট সমাধান হয়েছে',
|
|
106
|
+
'Ticket stage': 'টিকিটের ধাপ',
|
|
107
|
+
'Ticket type': 'টিকিটের ধরন',
|
|
108
|
+
'Ticket types': 'টিকিটের ধরনসমূহ',
|
|
109
|
+
Tickets: 'টিকিট',
|
|
110
|
+
'Tickets by SLA': 'এসএলএ অনুযায়ী টিকিট',
|
|
111
|
+
'Tickets from email, SLAs in business hours, assignment, ratings': 'ইমেইল থেকে টিকিট, কার্যসময়ে এসএলএ, বণ্টন, রেটিং',
|
|
112
|
+
'Tickets of this priority or higher; empty: every priority.': 'এই অগ্রাধিকার বা তার বেশি টিকিট; খালি: সব অগ্রাধিকার।',
|
|
113
|
+
'Time waiting on the customer: added to the resolution target.': 'গ্রাহকের অপেক্ষার সময়: সমাধানের লক্ষ্যে যোগ হয়।',
|
|
114
|
+
'Time zone': 'সময় অঞ্চল',
|
|
115
|
+
'To the least busy': 'সবচেয়ে কম ব্যস্তকে',
|
|
116
|
+
Type: 'ধরন',
|
|
117
|
+
Unassigned: 'অনির্ধারিত',
|
|
118
|
+
'Updated At': 'হালনাগাদের সময়',
|
|
119
|
+
'Updated By': 'হালনাগাদ করেছেন',
|
|
120
|
+
Urgent: 'জরুরি',
|
|
121
|
+
'Waiting on the customer': 'গ্রাহকের অপেক্ষায়',
|
|
122
|
+
'Waiting on the customer pauses the resolution clock; a customer’s reply resumes it.': 'গ্রাহকের অপেক্ষায় থাকলে সমাধানের ঘড়ি থেমে থাকে; গ্রাহকের উত্তরে আবার চালু হয়।',
|
|
123
|
+
'Waiting since': 'অপেক্ষা শুরু',
|
|
124
|
+
Weekend: 'সাপ্তাহিক ছুটি',
|
|
125
|
+
'When a ticket is solved, its customer is asked to rate the help (one to five).': 'টিকিট সমাধান হলে গ্রাহককে সহায়তার রেটিং দিতে বলা হয় (এক থেকে পাঁচ)।',
|
|
126
|
+
'Where replies go when the customer is not a contact yet.': 'গ্রাহক এখনও যোগাযোগ না হলে উত্তর যেখানে যায়।',
|
|
127
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { defineModule } from '../modules-sdk/index.js';
|
|
2
|
+
export { addBusinessMinutes, businessMinutesBetween, type Hours, WEEKENDS } from './hours.js';
|
|
3
|
+
export { HelpdeskCanned, HelpdeskSla, HelpdeskStage, HelpdeskTeam, HelpdeskTicket, HelpdeskType, helpdeskShutro, PRIORITIES, } from './module.js';
|
|
4
|
+
export { askRating, hoursOf, pausedSince, rate, refreshSla, timeZoneOf } from './sla.js';
|
|
5
|
+
/** A ticket's values from an email to `helpdesk@`: the first team, the sender as the customer (added when new). */
|
|
6
|
+
export declare function ticketFromEmail(raw: unknown, sender: {
|
|
7
|
+
readonly address: string;
|
|
8
|
+
readonly name: string | null;
|
|
9
|
+
}): Promise<Record<string, unknown> | null>;
|
|
10
|
+
export declare const helpdesk: ReturnType<typeof defineModule>;
|