@ketvietlab/ketsuite 0.1.2 → 0.1.5
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/LICENSE +1 -1
- package/README.md +15 -1
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +59 -0
- package/dist/cli.js.map +1 -0
- package/dist/deployment.d.ts +5 -0
- package/dist/deployment.d.ts.map +1 -0
- package/dist/deployment.js +155 -0
- package/dist/deployment.js.map +1 -0
- package/dist/development.d.ts +8 -0
- package/dist/development.d.ts.map +1 -0
- package/dist/development.js +40 -0
- package/dist/development.js.map +1 -0
- package/dist/index.d.ts +84 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +72 -6
- package/dist/index.js.map +1 -1
- package/dist/modules/account/analytics.d.ts +32 -0
- package/dist/modules/account/analytics.d.ts.map +1 -0
- package/dist/modules/account/analytics.js +457 -0
- package/dist/modules/account/analytics.js.map +1 -0
- package/dist/modules/account/assets-costing.d.ts +4 -0
- package/dist/modules/account/assets-costing.d.ts.map +1 -0
- package/dist/modules/account/assets-costing.js +1134 -0
- package/dist/modules/account/assets-costing.js.map +1 -0
- package/dist/modules/account/audit.d.ts +3 -0
- package/dist/modules/account/audit.d.ts.map +1 -0
- package/dist/modules/account/audit.js +14 -0
- package/dist/modules/account/audit.js.map +1 -0
- package/dist/modules/account/books.d.ts +4 -0
- package/dist/modules/account/books.d.ts.map +1 -0
- package/dist/modules/account/books.js +150 -0
- package/dist/modules/account/books.js.map +1 -0
- package/dist/modules/account/cash-receivables.d.ts +3 -0
- package/dist/modules/account/cash-receivables.d.ts.map +1 -0
- package/dist/modules/account/cash-receivables.js +1087 -0
- package/dist/modules/account/cash-receivables.js.map +1 -0
- package/dist/modules/account/close.d.ts +4 -0
- package/dist/modules/account/close.d.ts.map +1 -0
- package/dist/modules/account/close.js +343 -0
- package/dist/modules/account/close.js.map +1 -0
- package/dist/modules/account/date.d.ts +21 -0
- package/dist/modules/account/date.d.ts.map +1 -0
- package/dist/modules/account/date.js +70 -0
- package/dist/modules/account/date.js.map +1 -0
- package/dist/modules/account/functions.d.ts +131 -3
- package/dist/modules/account/functions.d.ts.map +1 -1
- package/dist/modules/account/functions.js +2570 -389
- package/dist/modules/account/functions.js.map +1 -1
- package/dist/modules/account/index.d.ts +1 -2
- package/dist/modules/account/index.d.ts.map +1 -1
- package/dist/modules/account/index.js +403 -8
- package/dist/modules/account/index.js.map +1 -1
- package/dist/modules/account/models.d.ts.map +1 -1
- package/dist/modules/account/models.js +748 -0
- package/dist/modules/account/models.js.map +1 -1
- package/dist/modules/account/money.d.ts +60 -0
- package/dist/modules/account/money.d.ts.map +1 -0
- package/dist/modules/account/money.js +237 -0
- package/dist/modules/account/money.js.map +1 -0
- package/dist/modules/account/open-items.d.ts +3 -0
- package/dist/modules/account/open-items.d.ts.map +1 -0
- package/dist/modules/account/open-items.js +390 -0
- package/dist/modules/account/open-items.js.map +1 -0
- package/dist/modules/account/opening.d.ts +3 -0
- package/dist/modules/account/opening.d.ts.map +1 -0
- package/dist/modules/account/opening.js +323 -0
- package/dist/modules/account/opening.js.map +1 -0
- package/dist/modules/account/period.d.ts +21 -0
- package/dist/modules/account/period.d.ts.map +1 -0
- package/dist/modules/account/period.js +155 -0
- package/dist/modules/account/period.js.map +1 -0
- package/dist/modules/account/relations.d.ts.map +1 -1
- package/dist/modules/account/relations.js +46 -0
- package/dist/modules/account/relations.js.map +1 -1
- package/dist/modules/account/reports.d.ts +4 -0
- package/dist/modules/account/reports.d.ts.map +1 -0
- package/dist/modules/account/reports.js +125 -0
- package/dist/modules/account/reports.js.map +1 -0
- package/dist/modules/account/setup.d.ts +3 -1
- package/dist/modules/account/setup.d.ts.map +1 -1
- package/dist/modules/account/setup.js +45 -160
- package/dist/modules/account/setup.js.map +1 -1
- package/dist/modules/account_activity_backend/index.d.ts.map +1 -1
- package/dist/modules/account_activity_backend/index.js +0 -1
- package/dist/modules/account_activity_backend/index.js.map +1 -1
- package/dist/modules/account_backend/index.js +3339 -494
- package/dist/modules/account_backend/index.js.map +1 -1
- package/dist/modules/account_backend/overview.d.ts +92 -0
- package/dist/modules/account_backend/overview.d.ts.map +1 -0
- package/dist/modules/account_backend/overview.js +257 -0
- package/dist/modules/account_backend/overview.js.map +1 -0
- package/dist/modules/account_backend/relation-control.d.ts +48 -0
- package/dist/modules/account_backend/relation-control.d.ts.map +1 -0
- package/dist/modules/account_backend/relation-control.js +67 -0
- package/dist/modules/account_backend/relation-control.js.map +1 -0
- package/dist/modules/account_backend/screens/account-defaults.d.ts +28 -0
- package/dist/modules/account_backend/screens/account-defaults.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/account-defaults.js +60 -0
- package/dist/modules/account_backend/screens/account-defaults.js.map +1 -0
- package/dist/modules/account_backend/screens/account-form.d.ts +16 -0
- package/dist/modules/account_backend/screens/account-form.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/account-form.js +53 -0
- package/dist/modules/account_backend/screens/account-form.js.map +1 -0
- package/dist/modules/account_backend/screens/accounting-books.d.ts +15 -0
- package/dist/modules/account_backend/screens/accounting-books.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/accounting-books.js +86 -0
- package/dist/modules/account_backend/screens/accounting-books.js.map +1 -0
- package/dist/modules/account_backend/screens/accounts-list.d.ts +50 -0
- package/dist/modules/account_backend/screens/accounts-list.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/accounts-list.js +66 -0
- package/dist/modules/account_backend/screens/accounts-list.js.map +1 -0
- package/dist/modules/account_backend/screens/customer-invoice-form.d.ts +13 -0
- package/dist/modules/account_backend/screens/customer-invoice-form.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/customer-invoice-form.js +20 -0
- package/dist/modules/account_backend/screens/customer-invoice-form.js.map +1 -0
- package/dist/modules/account_backend/screens/customer-invoices-list.d.ts +62 -0
- package/dist/modules/account_backend/screens/customer-invoices-list.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/customer-invoices-list.js +82 -0
- package/dist/modules/account_backend/screens/customer-invoices-list.js.map +1 -0
- package/dist/modules/account_backend/screens/general-ledger.d.ts +24 -0
- package/dist/modules/account_backend/screens/general-ledger.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/general-ledger.js +73 -0
- package/dist/modules/account_backend/screens/general-ledger.js.map +1 -0
- package/dist/modules/account_backend/screens/index.d.ts +27 -0
- package/dist/modules/account_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/index.js +27 -0
- package/dist/modules/account_backend/screens/index.js.map +1 -0
- package/dist/modules/account_backend/screens/journal-entries-list.d.ts +48 -0
- package/dist/modules/account_backend/screens/journal-entries-list.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/journal-entries-list.js +58 -0
- package/dist/modules/account_backend/screens/journal-entries-list.js.map +1 -0
- package/dist/modules/account_backend/screens/journal-entry-create.d.ts +14 -0
- package/dist/modules/account_backend/screens/journal-entry-create.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/journal-entry-create.js +41 -0
- package/dist/modules/account_backend/screens/journal-entry-create.js.map +1 -0
- package/dist/modules/account_backend/screens/journal-form.d.ts +15 -0
- package/dist/modules/account_backend/screens/journal-form.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/journal-form.js +53 -0
- package/dist/modules/account_backend/screens/journal-form.js.map +1 -0
- package/dist/modules/account_backend/screens/journals-list.d.ts +51 -0
- package/dist/modules/account_backend/screens/journals-list.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/journals-list.js +70 -0
- package/dist/modules/account_backend/screens/journals-list.js.map +1 -0
- package/dist/modules/account_backend/screens/move-detail.d.ts +26 -0
- package/dist/modules/account_backend/screens/move-detail.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/move-detail.js +130 -0
- package/dist/modules/account_backend/screens/move-detail.js.map +1 -0
- package/dist/modules/account_backend/screens/opening-balances.d.ts +28 -0
- package/dist/modules/account_backend/screens/opening-balances.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/opening-balances.js +96 -0
- package/dist/modules/account_backend/screens/opening-balances.js.map +1 -0
- package/dist/modules/account_backend/screens/overview.d.ts +62 -0
- package/dist/modules/account_backend/screens/overview.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/overview.js +215 -0
- package/dist/modules/account_backend/screens/overview.js.map +1 -0
- package/dist/modules/account_backend/screens/partner-statement.d.ts +26 -0
- package/dist/modules/account_backend/screens/partner-statement.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/partner-statement.js +82 -0
- package/dist/modules/account_backend/screens/partner-statement.js.map +1 -0
- package/dist/modules/account_backend/screens/payment-form.d.ts +14 -0
- package/dist/modules/account_backend/screens/payment-form.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/payment-form.js +21 -0
- package/dist/modules/account_backend/screens/payment-form.js.map +1 -0
- package/dist/modules/account_backend/screens/payment-term-form.d.ts +25 -0
- package/dist/modules/account_backend/screens/payment-term-form.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/payment-term-form.js +96 -0
- package/dist/modules/account_backend/screens/payment-term-form.js.map +1 -0
- package/dist/modules/account_backend/screens/payment-terms-list.d.ts +23 -0
- package/dist/modules/account_backend/screens/payment-terms-list.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/payment-terms-list.js +104 -0
- package/dist/modules/account_backend/screens/payment-terms-list.js.map +1 -0
- package/dist/modules/account_backend/screens/payments-list.d.ts +62 -0
- package/dist/modules/account_backend/screens/payments-list.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/payments-list.js +71 -0
- package/dist/modules/account_backend/screens/payments-list.js.map +1 -0
- package/dist/modules/account_backend/screens/period-closes.d.ts +21 -0
- package/dist/modules/account_backend/screens/period-closes.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/period-closes.js +123 -0
- package/dist/modules/account_backend/screens/period-closes.js.map +1 -0
- package/dist/modules/account_backend/screens/shared.d.ts +16 -0
- package/dist/modules/account_backend/screens/shared.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/shared.js +15 -0
- package/dist/modules/account_backend/screens/shared.js.map +1 -0
- package/dist/modules/account_backend/screens/tax-form.d.ts +14 -0
- package/dist/modules/account_backend/screens/tax-form.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/tax-form.js +25 -0
- package/dist/modules/account_backend/screens/tax-form.js.map +1 -0
- package/dist/modules/account_backend/screens/taxes-list.d.ts +55 -0
- package/dist/modules/account_backend/screens/taxes-list.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/taxes-list.js +83 -0
- package/dist/modules/account_backend/screens/taxes-list.js.map +1 -0
- package/dist/modules/account_backend/screens/trial-balance.d.ts +19 -0
- package/dist/modules/account_backend/screens/trial-balance.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/trial-balance.js +75 -0
- package/dist/modules/account_backend/screens/trial-balance.js.map +1 -0
- package/dist/modules/account_backend/screens/vendor-bill-form.d.ts +13 -0
- package/dist/modules/account_backend/screens/vendor-bill-form.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/vendor-bill-form.js +20 -0
- package/dist/modules/account_backend/screens/vendor-bill-form.js.map +1 -0
- package/dist/modules/account_backend/screens/vendor-bills-list.d.ts +62 -0
- package/dist/modules/account_backend/screens/vendor-bills-list.d.ts.map +1 -0
- package/dist/modules/account_backend/screens/vendor-bills-list.js +84 -0
- package/dist/modules/account_backend/screens/vendor-bills-list.js.map +1 -0
- package/dist/modules/account_mail_backend/index.d.ts.map +1 -1
- package/dist/modules/account_mail_backend/index.js +0 -1
- package/dist/modules/account_mail_backend/index.js.map +1 -1
- package/dist/modules/account_partner/index.js +0 -2
- package/dist/modules/account_partner/index.js.map +1 -1
- package/dist/modules/account_partner_backend/index.d.ts +1 -1
- package/dist/modules/account_partner_backend/index.d.ts.map +1 -1
- package/dist/modules/account_partner_backend/index.js +2 -3
- package/dist/modules/account_partner_backend/index.js.map +1 -1
- package/dist/modules/account_partner_backend/routes.d.ts.map +1 -1
- package/dist/modules/account_partner_backend/routes.js +19 -25
- package/dist/modules/account_partner_backend/routes.js.map +1 -1
- package/dist/modules/account_partner_backend/screens/accounting-terms.d.ts +20 -0
- package/dist/modules/account_partner_backend/screens/accounting-terms.d.ts.map +1 -0
- package/dist/modules/account_partner_backend/screens/accounting-terms.js +63 -0
- package/dist/modules/account_partner_backend/screens/accounting-terms.js.map +1 -0
- package/dist/modules/account_partner_backend/screens/index.d.ts +2 -0
- package/dist/modules/account_partner_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/account_partner_backend/screens/index.js +2 -0
- package/dist/modules/account_partner_backend/screens/index.js.map +1 -0
- package/dist/modules/account_staff_channel/channel-routes.d.ts +2 -0
- package/dist/modules/account_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/account_staff_channel/channel-routes.js +776 -0
- package/dist/modules/account_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/account_staff_channel/functions.d.ts.map +1 -0
- package/dist/modules/account_staff_channel/functions.js +143 -0
- package/dist/modules/account_staff_channel/functions.js.map +1 -0
- package/dist/modules/account_staff_channel/index.d.ts +5 -0
- package/dist/modules/account_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/account_staff_channel/index.js +42 -0
- package/dist/modules/account_staff_channel/index.js.map +1 -0
- package/dist/modules/account_staff_channel/models.d.ts.map +1 -0
- package/dist/modules/account_staff_channel/models.js +30 -0
- package/dist/modules/account_staff_channel/models.js.map +1 -0
- package/dist/modules/activity/index.d.ts.map +1 -1
- package/dist/modules/activity/index.js +0 -1
- package/dist/modules/activity/index.js.map +1 -1
- package/dist/modules/activity_backend/index.d.ts +1 -1
- package/dist/modules/activity_backend/index.d.ts.map +1 -1
- package/dist/modules/activity_backend/index.js +3 -12
- package/dist/modules/activity_backend/index.js.map +1 -1
- package/dist/modules/activity_backend/routes.d.ts.map +1 -1
- package/dist/modules/activity_backend/routes.js +36 -22
- package/dist/modules/activity_backend/routes.js.map +1 -1
- package/dist/modules/activity_backend/screens/activities-list.d.ts +15 -0
- package/dist/modules/activity_backend/screens/activities-list.d.ts.map +1 -0
- package/dist/modules/activity_backend/screens/activities-list.js +40 -0
- package/dist/modules/activity_backend/screens/activities-list.js.map +1 -0
- package/dist/modules/activity_backend/screens/index.d.ts +2 -0
- package/dist/modules/activity_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/activity_backend/screens/index.js +2 -0
- package/dist/modules/activity_backend/screens/index.js.map +1 -0
- package/dist/modules/address/data/VN/NOTICE.md +1 -1
- package/dist/modules/address/index.d.ts.map +1 -1
- package/dist/modules/address/index.js +0 -1
- package/dist/modules/address/index.js.map +1 -1
- package/dist/modules/address_backend/index.d.ts +1 -1
- package/dist/modules/address_backend/index.d.ts.map +1 -1
- package/dist/modules/address_backend/index.js +1 -3
- package/dist/modules/address_backend/index.js.map +1 -1
- package/dist/modules/address_backend/routes.d.ts.map +1 -1
- package/dist/modules/address_backend/routes.js +20 -27
- package/dist/modules/address_backend/routes.js.map +1 -1
- package/dist/modules/address_backend/screens/catalogs-list.d.ts +14 -0
- package/dist/modules/address_backend/screens/catalogs-list.d.ts.map +1 -0
- package/dist/modules/address_backend/screens/catalogs-list.js +38 -0
- package/dist/modules/address_backend/screens/catalogs-list.js.map +1 -0
- package/dist/modules/address_backend/screens/country-browser.d.ts +12 -0
- package/dist/modules/address_backend/screens/country-browser.d.ts.map +1 -0
- package/dist/modules/address_backend/screens/country-browser.js +74 -0
- package/dist/modules/address_backend/screens/country-browser.js.map +1 -0
- package/dist/modules/address_backend/screens/index.d.ts +4 -0
- package/dist/modules/address_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/address_backend/screens/index.js +3 -0
- package/dist/modules/address_backend/screens/index.js.map +1 -0
- package/dist/modules/address_backend/screens/types.d.ts +20 -0
- package/dist/modules/address_backend/screens/types.d.ts.map +1 -0
- package/dist/modules/address_backend/screens/types.js.map +1 -0
- package/dist/modules/attendance/channel-routes.d.ts +2 -0
- package/dist/modules/attendance/channel-routes.d.ts.map +1 -0
- package/dist/modules/attendance/channel-routes.js +223 -0
- package/dist/modules/attendance/channel-routes.js.map +1 -0
- package/dist/modules/attendance/functions.d.ts.map +1 -1
- package/dist/modules/attendance/functions.js +171 -22
- package/dist/modules/attendance/functions.js.map +1 -1
- package/dist/modules/attendance/index.d.ts.map +1 -1
- package/dist/modules/attendance/index.js +4 -2
- package/dist/modules/attendance/index.js.map +1 -1
- package/dist/modules/attendance/messages.d.ts +6 -0
- package/dist/modules/attendance/messages.d.ts.map +1 -1
- package/dist/modules/attendance/messages.js +6 -0
- package/dist/modules/attendance/messages.js.map +1 -1
- package/dist/modules/attendance/models.d.ts.map +1 -1
- package/dist/modules/attendance/models.js +1 -0
- package/dist/modules/attendance/models.js.map +1 -1
- package/dist/modules/attendance_backend/index.d.ts +3 -1
- package/dist/modules/attendance_backend/index.d.ts.map +1 -1
- package/dist/modules/attendance_backend/index.js +65 -4
- package/dist/modules/attendance_backend/index.js.map +1 -1
- package/dist/modules/attendance_backend/routes.d.ts.map +1 -1
- package/dist/modules/attendance_backend/routes.js +240 -53
- package/dist/modules/attendance_backend/routes.js.map +1 -1
- package/dist/modules/attendance_backend/screens/credentials.d.ts +32 -0
- package/dist/modules/attendance_backend/screens/credentials.d.ts.map +1 -0
- package/dist/modules/attendance_backend/screens/credentials.js +84 -0
- package/dist/modules/attendance_backend/screens/credentials.js.map +1 -0
- package/dist/modules/attendance_backend/screens/index.d.ts +4 -0
- package/dist/modules/attendance_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/attendance_backend/screens/index.js +4 -0
- package/dist/modules/attendance_backend/screens/index.js.map +1 -0
- package/dist/modules/attendance_backend/screens/my-work.d.ts +35 -0
- package/dist/modules/attendance_backend/screens/my-work.d.ts.map +1 -0
- package/dist/modules/attendance_backend/screens/my-work.js +189 -0
- package/dist/modules/attendance_backend/screens/my-work.js.map +1 -0
- package/dist/modules/attendance_backend/screens/period.d.ts +22 -0
- package/dist/modules/attendance_backend/screens/period.d.ts.map +1 -0
- package/dist/modules/attendance_backend/screens/period.js +85 -0
- package/dist/modules/attendance_backend/screens/period.js.map +1 -0
- package/dist/modules/attendance_backend/screens.d.ts +0 -4
- package/dist/modules/attendance_backend/screens.d.ts.map +1 -1
- package/dist/modules/attendance_backend/screens.js +1 -209
- package/dist/modules/attendance_backend/screens.js.map +1 -1
- package/dist/modules/backend/catalogue.d.ts.map +1 -1
- package/dist/modules/backend/catalogue.js +53 -115
- package/dist/modules/backend/catalogue.js.map +1 -1
- package/dist/modules/backend/chart.d.ts +42 -0
- package/dist/modules/backend/chart.d.ts.map +1 -0
- package/dist/modules/backend/chart.js +39 -0
- package/dist/modules/backend/chart.js.map +1 -0
- package/dist/modules/backend/design/HANDOFF.md +118 -38
- package/dist/modules/backend/design/auth.css +463 -0
- package/dist/modules/backend/design/brand/logo-dark.png +0 -0
- package/dist/modules/backend/design/brand/logo-light.png +0 -0
- package/dist/modules/backend/design/charts.css +229 -0
- package/dist/modules/backend/design/client/chart.d.mts +31 -0
- package/dist/modules/backend/design/client/chart.d.mts.map +1 -0
- package/dist/modules/backend/design/client/chart.mjs +23 -0
- package/dist/modules/backend/design/client/chart.mjs.map +7 -0
- package/dist/modules/backend/design/client/relation-select.d.mts +6 -1
- package/dist/modules/backend/design/client/relation-select.d.mts.map +1 -1
- package/dist/modules/backend/design/client/relation-select.mjs +2 -7
- package/dist/modules/backend/design/client/relation-select.mjs.map +7 -1
- package/dist/modules/backend/design/client/table-selection.d.mts +7 -0
- package/dist/modules/backend/design/client/table-selection.d.mts.map +1 -0
- package/dist/modules/backend/design/client/table-selection.mjs +2 -0
- package/dist/modules/backend/design/client/table-selection.mjs.map +7 -0
- package/dist/modules/backend/design/content.css +809 -0
- package/dist/modules/backend/design/controls.css +451 -0
- package/dist/modules/backend/design/design-system.css +2 -0
- package/dist/modules/backend/design/forms.css +1156 -0
- package/dist/modules/backend/design/foundation.css +423 -0
- package/dist/modules/backend/design/lists.css +1462 -0
- package/dist/modules/backend/design/record.css +526 -0
- package/dist/modules/backend/design/responsive.css +326 -0
- package/dist/modules/backend/design/tokens.css +317 -92
- package/dist/modules/backend/forms.d.ts +38 -1
- package/dist/modules/backend/forms.d.ts.map +1 -1
- package/dist/modules/backend/forms.js +29 -0
- package/dist/modules/backend/forms.js.map +1 -1
- package/dist/modules/backend/index.d.ts +14 -6
- package/dist/modules/backend/index.d.ts.map +1 -1
- package/dist/modules/backend/index.js +33 -16
- package/dist/modules/backend/index.js.map +1 -1
- package/dist/modules/backend/islands.d.ts.map +1 -1
- package/dist/modules/backend/islands.js +22 -4
- package/dist/modules/backend/islands.js.map +1 -1
- package/dist/modules/backend/joints.d.ts +1 -1
- package/dist/modules/backend/joints.d.ts.map +1 -1
- package/dist/modules/backend/joints.js +14 -6
- package/dist/modules/backend/joints.js.map +1 -1
- package/dist/modules/backend/list-search.d.ts +33 -0
- package/dist/modules/backend/list-search.d.ts.map +1 -0
- package/dist/modules/backend/list-search.js +232 -0
- package/dist/modules/backend/list-search.js.map +1 -0
- package/dist/modules/backend/menus.d.ts.map +1 -1
- package/dist/modules/backend/menus.js +3 -12
- package/dist/modules/backend/menus.js.map +1 -1
- package/dist/modules/backend/messages.d.ts +1 -1
- package/dist/modules/backend/messages.d.ts.map +1 -1
- package/dist/modules/backend/messages.js +86 -35
- package/dist/modules/backend/messages.js.map +1 -1
- package/dist/modules/backend/paging.d.ts +1 -1
- package/dist/modules/backend/paging.d.ts.map +1 -1
- package/dist/modules/backend/paging.js +1 -1
- package/dist/modules/backend/paging.js.map +1 -1
- package/dist/modules/backend/relation-select.d.ts +2 -57
- package/dist/modules/backend/relation-select.d.ts.map +1 -1
- package/dist/modules/backend/relation-select.js +2 -0
- package/dist/modules/backend/relation-select.js.map +1 -1
- package/dist/modules/backend/routes.d.ts +1 -8
- package/dist/modules/backend/routes.d.ts.map +1 -1
- package/dist/modules/backend/routes.js +36 -111
- package/dist/modules/backend/routes.js.map +1 -1
- package/dist/modules/backend/screen.d.ts +130 -0
- package/dist/modules/backend/screen.d.ts.map +1 -0
- package/dist/modules/backend/screen.js +205 -0
- package/dist/modules/backend/screen.js.map +1 -0
- package/dist/modules/backend/screens.d.ts +11 -14
- package/dist/modules/backend/screens.d.ts.map +1 -1
- package/dist/modules/backend/screens.js +13 -70
- package/dist/modules/backend/screens.js.map +1 -1
- package/dist/modules/business_report_staff_channel/channel-routes.d.ts +2 -0
- package/dist/modules/business_report_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/business_report_staff_channel/channel-routes.js +438 -0
- package/dist/modules/business_report_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/business_report_staff_channel/index.d.ts +5 -0
- package/dist/modules/business_report_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/business_report_staff_channel/index.js +18 -0
- package/dist/modules/business_report_staff_channel/index.js.map +1 -0
- package/dist/modules/calendar/index.d.ts.map +1 -1
- package/dist/modules/calendar/index.js +0 -1
- package/dist/modules/calendar/index.js.map +1 -1
- package/dist/modules/calendar/recurrence.d.ts.map +1 -1
- package/dist/modules/calendar/recurrence.js +3 -11
- package/dist/modules/calendar/recurrence.js.map +1 -1
- package/dist/modules/calendar_activity/index.d.ts.map +1 -1
- package/dist/modules/calendar_activity/index.js +0 -2
- package/dist/modules/calendar_activity/index.js.map +1 -1
- package/dist/modules/calendar_backend/index.d.ts +1 -1
- package/dist/modules/calendar_backend/index.d.ts.map +1 -1
- package/dist/modules/calendar_backend/index.js +1 -3
- package/dist/modules/calendar_backend/index.js.map +1 -1
- package/dist/modules/calendar_backend/routes.d.ts.map +1 -1
- package/dist/modules/calendar_backend/routes.js +10 -22
- package/dist/modules/calendar_backend/routes.js.map +1 -1
- package/dist/modules/calendar_backend/screens/calendar.d.ts +5 -0
- package/dist/modules/calendar_backend/screens/calendar.d.ts.map +1 -0
- package/dist/modules/calendar_backend/screens/calendar.js +10 -0
- package/dist/modules/calendar_backend/screens/calendar.js.map +1 -0
- package/dist/modules/calendar_backend/screens/index.d.ts +2 -0
- package/dist/modules/calendar_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/calendar_backend/screens/index.js +2 -0
- package/dist/modules/calendar_backend/screens/index.js.map +1 -0
- package/dist/modules/calendar_mail_transport/index.d.ts.map +1 -1
- package/dist/modules/calendar_mail_transport/index.js +0 -2
- package/dist/modules/calendar_mail_transport/index.js.map +1 -1
- package/dist/modules/channel_api/core.d.ts +283 -0
- package/dist/modules/channel_api/core.d.ts.map +1 -0
- package/dist/modules/channel_api/core.js +615 -0
- package/dist/modules/channel_api/core.js.map +1 -0
- package/dist/modules/channel_api/customer.d.ts +21 -0
- package/dist/modules/channel_api/customer.d.ts.map +1 -0
- package/dist/modules/channel_api/customer.js +368 -0
- package/dist/modules/channel_api/customer.js.map +1 -0
- package/dist/modules/channel_api/index.d.ts +6 -0
- package/dist/modules/channel_api/index.d.ts.map +1 -0
- package/dist/modules/channel_api/index.js +66 -0
- package/dist/modules/channel_api/index.js.map +1 -0
- package/dist/modules/channel_api/openapi.d.ts +17 -0
- package/dist/modules/channel_api/openapi.d.ts.map +1 -0
- package/dist/modules/channel_api/openapi.js +105 -0
- package/dist/modules/channel_api/openapi.js.map +1 -0
- package/dist/modules/channel_api/staff.d.ts +7 -0
- package/dist/modules/channel_api/staff.d.ts.map +1 -0
- package/dist/modules/channel_api/staff.js +209 -0
- package/dist/modules/channel_api/staff.js.map +1 -0
- package/dist/modules/company/functions.d.ts.map +1 -1
- package/dist/modules/company/functions.js +93 -12
- package/dist/modules/company/functions.js.map +1 -1
- package/dist/modules/company/index.js +3 -3
- package/dist/modules/company/index.js.map +1 -1
- package/dist/modules/company/messages.d.ts +8 -0
- package/dist/modules/company/messages.d.ts.map +1 -1
- package/dist/modules/company/messages.js +8 -0
- package/dist/modules/company/messages.js.map +1 -1
- package/dist/modules/company/models.d.ts +2 -2
- package/dist/modules/company/models.d.ts.map +1 -1
- package/dist/modules/company/models.js +12 -2
- package/dist/modules/company/models.js.map +1 -1
- package/dist/modules/company_backend/index.d.ts +2 -1
- package/dist/modules/company_backend/index.d.ts.map +1 -1
- package/dist/modules/company_backend/index.js +25 -4
- package/dist/modules/company_backend/index.js.map +1 -1
- package/dist/modules/company_backend/routes.d.ts.map +1 -1
- package/dist/modules/company_backend/routes.js +314 -96
- package/dist/modules/company_backend/routes.js.map +1 -1
- package/dist/modules/company_backend/screens/branch-form.d.ts +18 -0
- package/dist/modules/company_backend/screens/branch-form.d.ts.map +1 -0
- package/dist/modules/company_backend/screens/branch-form.js +63 -0
- package/dist/modules/company_backend/screens/branch-form.js.map +1 -0
- package/dist/modules/company_backend/screens/companies-list.d.ts +18 -0
- package/dist/modules/company_backend/screens/companies-list.d.ts.map +1 -0
- package/dist/modules/company_backend/screens/companies-list.js +49 -0
- package/dist/modules/company_backend/screens/companies-list.js.map +1 -0
- package/dist/modules/company_backend/screens/company-form.d.ts +25 -0
- package/dist/modules/company_backend/screens/company-form.d.ts.map +1 -0
- package/dist/modules/company_backend/screens/company-form.js +159 -0
- package/dist/modules/company_backend/screens/company-form.js.map +1 -0
- package/dist/modules/company_backend/screens/context.d.ts +30 -0
- package/dist/modules/company_backend/screens/context.d.ts.map +1 -0
- package/dist/modules/company_backend/screens/context.js +48 -0
- package/dist/modules/company_backend/screens/context.js.map +1 -0
- package/dist/modules/company_backend/screens/hierarchy.d.ts +16 -0
- package/dist/modules/company_backend/screens/hierarchy.d.ts.map +1 -0
- package/dist/modules/company_backend/screens/hierarchy.js +41 -0
- package/dist/modules/company_backend/screens/hierarchy.js.map +1 -0
- package/dist/modules/company_backend/screens/index.d.ts +7 -0
- package/dist/modules/company_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/company_backend/screens/index.js +6 -0
- package/dist/modules/company_backend/screens/index.js.map +1 -0
- package/dist/modules/company_backend/screens/types.d.ts +22 -0
- package/dist/modules/company_backend/screens/types.d.ts.map +1 -0
- package/dist/modules/company_backend/screens/types.js +2 -0
- package/dist/modules/company_backend/screens/types.js.map +1 -0
- package/dist/modules/crm/functions.d.ts +1 -1
- package/dist/modules/crm/functions.d.ts.map +1 -1
- package/dist/modules/crm/functions.js +534 -75
- package/dist/modules/crm/functions.js.map +1 -1
- package/dist/modules/crm/index.d.ts +2 -1
- package/dist/modules/crm/index.d.ts.map +1 -1
- package/dist/modules/crm/index.js +3 -4
- package/dist/modules/crm/index.js.map +1 -1
- package/dist/modules/crm/jobs.d.ts +10 -0
- package/dist/modules/crm/jobs.d.ts.map +1 -1
- package/dist/modules/crm/jobs.js +50 -1
- package/dist/modules/crm/jobs.js.map +1 -1
- package/dist/modules/crm/messages.d.ts +14 -1
- package/dist/modules/crm/messages.d.ts.map +1 -1
- package/dist/modules/crm/messages.js +26 -0
- package/dist/modules/crm/messages.js.map +1 -1
- package/dist/modules/crm/models.d.ts.map +1 -1
- package/dist/modules/crm/models.js +25 -0
- package/dist/modules/crm/models.js.map +1 -1
- package/dist/modules/crm/operations.d.ts +110 -1
- package/dist/modules/crm/operations.d.ts.map +1 -1
- package/dist/modules/crm/operations.js +612 -84
- package/dist/modules/crm/operations.js.map +1 -1
- package/dist/modules/crm_backend/client/crm-kanban-view.d.mts.map +1 -1
- package/dist/modules/crm_backend/client/crm-kanban-view.mjs +132 -32
- package/dist/modules/crm_backend/client/crm-kanban-view.mjs.map +1 -1
- package/dist/modules/crm_backend/client/crm.css +398 -63
- package/dist/modules/crm_backend/index.d.ts.map +1 -1
- package/dist/modules/crm_backend/index.js +12 -4
- package/dist/modules/crm_backend/index.js.map +1 -1
- package/dist/modules/crm_backend/messages.d.ts +212 -0
- package/dist/modules/crm_backend/messages.d.ts.map +1 -1
- package/dist/modules/crm_backend/messages.js +212 -0
- package/dist/modules/crm_backend/messages.js.map +1 -1
- package/dist/modules/crm_backend/relation-control.d.ts +51 -0
- package/dist/modules/crm_backend/relation-control.d.ts.map +1 -0
- package/dist/modules/crm_backend/relation-control.js +107 -0
- package/dist/modules/crm_backend/relation-control.js.map +1 -0
- package/dist/modules/crm_backend/routes.d.ts.map +1 -1
- package/dist/modules/crm_backend/routes.js +1068 -260
- package/dist/modules/crm_backend/routes.js.map +1 -1
- package/dist/modules/crm_backend/screens/activity-planner.d.ts +22 -0
- package/dist/modules/crm_backend/screens/activity-planner.d.ts.map +1 -0
- package/dist/modules/crm_backend/screens/activity-planner.js +159 -0
- package/dist/modules/crm_backend/screens/activity-planner.js.map +1 -0
- package/dist/modules/crm_backend/screens/case-create.d.ts +15 -0
- package/dist/modules/crm_backend/screens/case-create.d.ts.map +1 -0
- package/dist/modules/crm_backend/screens/case-create.js +19 -0
- package/dist/modules/crm_backend/screens/case-create.js.map +1 -0
- package/dist/modules/crm_backend/screens/case-detail.d.ts +46 -0
- package/dist/modules/crm_backend/screens/case-detail.d.ts.map +1 -0
- package/dist/modules/crm_backend/screens/case-detail.js +506 -0
- package/dist/modules/crm_backend/screens/case-detail.js.map +1 -0
- package/dist/modules/crm_backend/screens/cases-list.d.ts +16 -0
- package/dist/modules/crm_backend/screens/cases-list.d.ts.map +1 -0
- package/dist/modules/crm_backend/screens/cases-list.js +86 -0
- package/dist/modules/crm_backend/screens/cases-list.js.map +1 -0
- package/dist/modules/crm_backend/screens/configuration.d.ts +28 -0
- package/dist/modules/crm_backend/screens/configuration.d.ts.map +1 -0
- package/dist/modules/crm_backend/screens/configuration.js +115 -0
- package/dist/modules/crm_backend/screens/configuration.js.map +1 -0
- package/dist/modules/crm_backend/screens/index.d.ts +14 -0
- package/dist/modules/crm_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/crm_backend/screens/index.js +8 -0
- package/dist/modules/crm_backend/screens/index.js.map +1 -0
- package/dist/modules/crm_backend/screens/leaderboard.d.ts +12 -0
- package/dist/modules/crm_backend/screens/leaderboard.d.ts.map +1 -0
- package/dist/modules/crm_backend/screens/leaderboard.js +89 -0
- package/dist/modules/crm_backend/screens/leaderboard.js.map +1 -0
- package/dist/modules/crm_backend/screens/pipeline.d.ts +21 -0
- package/dist/modules/crm_backend/screens/pipeline.d.ts.map +1 -0
- package/dist/modules/crm_backend/screens/pipeline.js +22 -0
- package/dist/modules/crm_backend/screens/pipeline.js.map +1 -0
- package/dist/modules/crm_sale/index.d.ts.map +1 -1
- package/dist/modules/crm_sale/index.js +3 -4
- package/dist/modules/crm_sale/index.js.map +1 -1
- package/dist/modules/crm_sale/messages.d.ts +3 -1
- package/dist/modules/crm_sale/messages.d.ts.map +1 -1
- package/dist/modules/crm_sale/messages.js +4 -0
- package/dist/modules/crm_sale/messages.js.map +1 -1
- package/dist/modules/crm_sale/sale-functions.d.ts +8 -1
- package/dist/modules/crm_sale/sale-functions.d.ts.map +1 -1
- package/dist/modules/crm_sale/sale-functions.js +184 -55
- package/dist/modules/crm_sale/sale-functions.js.map +1 -1
- package/dist/modules/crm_staff_channel/channel-routes.d.ts +2 -0
- package/dist/modules/crm_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/crm_staff_channel/channel-routes.js +777 -0
- package/dist/modules/crm_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/crm_staff_channel/index.d.ts +5 -0
- package/dist/modules/crm_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/crm_staff_channel/index.js +30 -0
- package/dist/modules/crm_staff_channel/index.js.map +1 -0
- package/dist/modules/crm_website/functions.d.ts.map +1 -1
- package/dist/modules/crm_website/functions.js +89 -10
- package/dist/modules/crm_website/functions.js.map +1 -1
- package/dist/modules/crm_website/index.js +1 -2
- package/dist/modules/crm_website/index.js.map +1 -1
- package/dist/modules/crm_website/messages.d.ts +4 -1
- package/dist/modules/crm_website/messages.d.ts.map +1 -1
- package/dist/modules/crm_website/messages.js +6 -0
- package/dist/modules/crm_website/messages.js.map +1 -1
- package/dist/modules/crm_website/models.d.ts.map +1 -1
- package/dist/modules/crm_website/models.js +18 -0
- package/dist/modules/crm_website/models.js.map +1 -1
- package/dist/modules/crm_website/routes.d.ts.map +1 -1
- package/dist/modules/crm_website/routes.js +44 -12
- package/dist/modules/crm_website/routes.js.map +1 -1
- package/dist/modules/crm_website/screens.d.ts +7 -1
- package/dist/modules/crm_website/screens.d.ts.map +1 -1
- package/dist/modules/crm_website/screens.js +13 -8
- package/dist/modules/crm_website/screens.js.map +1 -1
- package/dist/modules/flow/functions.d.ts +3 -0
- package/dist/modules/flow/functions.d.ts.map +1 -0
- package/dist/modules/flow/functions.js +1876 -0
- package/dist/modules/flow/functions.js.map +1 -0
- package/dist/modules/flow/index.d.ts +12 -0
- package/dist/modules/flow/index.d.ts.map +1 -0
- package/dist/modules/flow/index.js +30 -0
- package/dist/modules/flow/index.js.map +1 -0
- package/dist/modules/flow/jobs.d.ts +3 -0
- package/dist/modules/flow/jobs.d.ts.map +1 -0
- package/dist/modules/flow/jobs.js +136 -0
- package/dist/modules/flow/jobs.js.map +1 -0
- package/dist/modules/flow/membership.d.ts +72 -0
- package/dist/modules/flow/membership.d.ts.map +1 -0
- package/dist/modules/flow/membership.js +182 -0
- package/dist/modules/flow/membership.js.map +1 -0
- package/dist/modules/flow/messages.d.ts +79 -0
- package/dist/modules/flow/messages.d.ts.map +1 -0
- package/dist/modules/flow/messages.js +152 -0
- package/dist/modules/flow/messages.js.map +1 -0
- package/dist/modules/flow/models.d.ts +3 -0
- package/dist/modules/flow/models.d.ts.map +1 -0
- package/dist/modules/flow/models.js +453 -0
- package/dist/modules/flow/models.js.map +1 -0
- package/dist/modules/flow/operations.d.ts +414 -0
- package/dist/modules/flow/operations.d.ts.map +1 -0
- package/dist/modules/flow/operations.js +1671 -0
- package/dist/modules/flow/operations.js.map +1 -0
- package/dist/modules/flow/pages.d.ts +146 -0
- package/dist/modules/flow/pages.d.ts.map +1 -0
- package/dist/modules/flow/pages.js +394 -0
- package/dist/modules/flow/pages.js.map +1 -0
- package/dist/modules/flow/projects.d.ts +41 -0
- package/dist/modules/flow/projects.d.ts.map +1 -0
- package/dist/modules/flow/projects.js +74 -0
- package/dist/modules/flow/projects.js.map +1 -0
- package/dist/modules/flow/search.d.ts +57 -0
- package/dist/modules/flow/search.d.ts.map +1 -0
- package/dist/modules/flow/search.js +110 -0
- package/dist/modules/flow/search.js.map +1 -0
- package/dist/modules/flow/types.d.ts +17 -0
- package/dist/modules/flow/types.d.ts.map +1 -0
- package/dist/modules/flow/types.js +13 -0
- package/dist/modules/flow/types.js.map +1 -0
- package/dist/modules/flow_backend/functions.d.ts +3 -0
- package/dist/modules/flow_backend/functions.d.ts.map +1 -0
- package/dist/modules/flow_backend/functions.js +162 -0
- package/dist/modules/flow_backend/functions.js.map +1 -0
- package/dist/modules/flow_backend/index.d.ts +3 -0
- package/dist/modules/flow_backend/index.d.ts.map +1 -0
- package/dist/modules/flow_backend/index.js +96 -0
- package/dist/modules/flow_backend/index.js.map +1 -0
- package/dist/modules/flow_backend/islands.d.ts +3 -0
- package/dist/modules/flow_backend/islands.d.ts.map +1 -0
- package/dist/modules/flow_backend/islands.js +31 -0
- package/dist/modules/flow_backend/islands.js.map +1 -0
- package/dist/modules/flow_backend/messages.d.ts +248 -0
- package/dist/modules/flow_backend/messages.d.ts.map +1 -0
- package/dist/modules/flow_backend/messages.js +470 -0
- package/dist/modules/flow_backend/messages.js.map +1 -0
- package/dist/modules/flow_backend/relation-control.d.ts +53 -0
- package/dist/modules/flow_backend/relation-control.d.ts.map +1 -0
- package/dist/modules/flow_backend/relation-control.js +106 -0
- package/dist/modules/flow_backend/relation-control.js.map +1 -0
- package/dist/modules/flow_backend/routes.d.ts +3 -0
- package/dist/modules/flow_backend/routes.d.ts.map +1 -0
- package/dist/modules/flow_backend/routes.js +2519 -0
- package/dist/modules/flow_backend/routes.js.map +1 -0
- package/dist/modules/flow_backend/screens/all-epics.d.ts +19 -0
- package/dist/modules/flow_backend/screens/all-epics.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/all-epics.js +59 -0
- package/dist/modules/flow_backend/screens/all-epics.js.map +1 -0
- package/dist/modules/flow_backend/screens/all-pages.d.ts +19 -0
- package/dist/modules/flow_backend/screens/all-pages.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/all-pages.js +65 -0
- package/dist/modules/flow_backend/screens/all-pages.js.map +1 -0
- package/dist/modules/flow_backend/screens/board.d.ts +5 -0
- package/dist/modules/flow_backend/screens/board.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/board.js +7 -0
- package/dist/modules/flow_backend/screens/board.js.map +1 -0
- package/dist/modules/flow_backend/screens/epic-detail.d.ts +22 -0
- package/dist/modules/flow_backend/screens/epic-detail.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/epic-detail.js +41 -0
- package/dist/modules/flow_backend/screens/epic-detail.js.map +1 -0
- package/dist/modules/flow_backend/screens/gantt.d.ts +21 -0
- package/dist/modules/flow_backend/screens/gantt.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/gantt.js +42 -0
- package/dist/modules/flow_backend/screens/gantt.js.map +1 -0
- package/dist/modules/flow_backend/screens/index.d.ts +29 -0
- package/dist/modules/flow_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/index.js +23 -0
- package/dist/modules/flow_backend/screens/index.js.map +1 -0
- package/dist/modules/flow_backend/screens/issue-detail.d.ts +38 -0
- package/dist/modules/flow_backend/screens/issue-detail.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/issue-detail.js +336 -0
- package/dist/modules/flow_backend/screens/issue-detail.js.map +1 -0
- package/dist/modules/flow_backend/screens/issues.d.ts +34 -0
- package/dist/modules/flow_backend/screens/issues.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/issues.js +118 -0
- package/dist/modules/flow_backend/screens/issues.js.map +1 -0
- package/dist/modules/flow_backend/screens/map.d.ts +13 -0
- package/dist/modules/flow_backend/screens/map.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/map.js +16 -0
- package/dist/modules/flow_backend/screens/map.js.map +1 -0
- package/dist/modules/flow_backend/screens/my-work.d.ts +42 -0
- package/dist/modules/flow_backend/screens/my-work.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/my-work.js +157 -0
- package/dist/modules/flow_backend/screens/my-work.js.map +1 -0
- package/dist/modules/flow_backend/screens/nav.d.ts +3 -0
- package/dist/modules/flow_backend/screens/nav.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/nav.js +79 -0
- package/dist/modules/flow_backend/screens/nav.js.map +1 -0
- package/dist/modules/flow_backend/screens/page-detail.d.ts +31 -0
- package/dist/modules/flow_backend/screens/page-detail.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/page-detail.js +113 -0
- package/dist/modules/flow_backend/screens/page-detail.js.map +1 -0
- package/dist/modules/flow_backend/screens/project-create.d.ts +26 -0
- package/dist/modules/flow_backend/screens/project-create.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/project-create.js +56 -0
- package/dist/modules/flow_backend/screens/project-create.js.map +1 -0
- package/dist/modules/flow_backend/screens/project-epics.d.ts +33 -0
- package/dist/modules/flow_backend/screens/project-epics.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/project-epics.js +90 -0
- package/dist/modules/flow_backend/screens/project-epics.js.map +1 -0
- package/dist/modules/flow_backend/screens/project-pages.d.ts +34 -0
- package/dist/modules/flow_backend/screens/project-pages.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/project-pages.js +66 -0
- package/dist/modules/flow_backend/screens/project-pages.js.map +1 -0
- package/dist/modules/flow_backend/screens/project-settings.d.ts +69 -0
- package/dist/modules/flow_backend/screens/project-settings.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/project-settings.js +248 -0
- package/dist/modules/flow_backend/screens/project-settings.js.map +1 -0
- package/dist/modules/flow_backend/screens/projects-list.d.ts +30 -0
- package/dist/modules/flow_backend/screens/projects-list.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/projects-list.js +121 -0
- package/dist/modules/flow_backend/screens/projects-list.js.map +1 -0
- package/dist/modules/flow_backend/screens/shared.d.ts +28 -0
- package/dist/modules/flow_backend/screens/shared.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/shared.js +46 -0
- package/dist/modules/flow_backend/screens/shared.js.map +1 -0
- package/dist/modules/flow_backend/screens/sprints.d.ts +33 -0
- package/dist/modules/flow_backend/screens/sprints.d.ts.map +1 -0
- package/dist/modules/flow_backend/screens/sprints.js +159 -0
- package/dist/modules/flow_backend/screens/sprints.js.map +1 -0
- package/dist/modules/flow_staff_channel/channel-routes.d.ts +2 -0
- package/dist/modules/flow_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/flow_staff_channel/channel-routes.js +425 -0
- package/dist/modules/flow_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/flow_staff_channel/index.d.ts +5 -0
- package/dist/modules/flow_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/flow_staff_channel/index.js +30 -0
- package/dist/modules/flow_staff_channel/index.js.map +1 -0
- package/dist/modules/hospitality_billing/functions.d.ts +18 -0
- package/dist/modules/hospitality_billing/functions.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/functions.js +426 -0
- package/dist/modules/hospitality_billing/functions.js.map +1 -0
- package/dist/modules/hospitality_billing/index.d.ts +3 -0
- package/dist/modules/hospitality_billing/index.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/index.js +25 -0
- package/dist/modules/hospitality_billing/index.js.map +1 -0
- package/dist/modules/hospitality_billing/jobs.d.ts +17 -0
- package/dist/modules/hospitality_billing/jobs.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/jobs.js +83 -0
- package/dist/modules/hospitality_billing/jobs.js.map +1 -0
- package/dist/modules/hospitality_billing/menus.d.ts +9 -0
- package/dist/modules/hospitality_billing/menus.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/menus.js +25 -0
- package/dist/modules/hospitality_billing/menus.js.map +1 -0
- package/dist/modules/hospitality_billing/messages.d.ts +3 -0
- package/dist/modules/hospitality_billing/messages.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/messages.js +163 -0
- package/dist/modules/hospitality_billing/messages.js.map +1 -0
- package/dist/modules/hospitality_billing/models.d.ts +3 -0
- package/dist/modules/hospitality_billing/models.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/models.js +65 -0
- package/dist/modules/hospitality_billing/models.js.map +1 -0
- package/dist/modules/hospitality_billing/routes.d.ts +3 -0
- package/dist/modules/hospitality_billing/routes.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/routes.js +189 -0
- package/dist/modules/hospitality_billing/routes.js.map +1 -0
- package/dist/modules/hospitality_billing/screens/billing.d.ts +3 -0
- package/dist/modules/hospitality_billing/screens/billing.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/screens/billing.js +20 -0
- package/dist/modules/hospitality_billing/screens/billing.js.map +1 -0
- package/dist/modules/hospitality_billing/screens/charge-rules.d.ts +12 -0
- package/dist/modules/hospitality_billing/screens/charge-rules.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/screens/charge-rules.js +86 -0
- package/dist/modules/hospitality_billing/screens/charge-rules.js.map +1 -0
- package/dist/modules/hospitality_billing/screens/index.d.ts +4 -0
- package/dist/modules/hospitality_billing/screens/index.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/screens/index.js +4 -0
- package/dist/modules/hospitality_billing/screens/index.js.map +1 -0
- package/dist/modules/hospitality_billing/screens/page-frame.d.ts +14 -0
- package/dist/modules/hospitality_billing/screens/page-frame.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/screens/page-frame.js +6 -0
- package/dist/modules/hospitality_billing/screens/page-frame.js.map +1 -0
- package/dist/modules/hospitality_billing/screens/shared.d.ts +64 -0
- package/dist/modules/hospitality_billing/screens/shared.d.ts.map +1 -0
- package/dist/modules/hospitality_billing/screens/shared.js +117 -0
- package/dist/modules/hospitality_billing/screens/shared.js.map +1 -0
- package/dist/modules/hospitality_core/calendar.d.ts.map +1 -1
- package/dist/modules/hospitality_core/calendar.js +2 -1
- package/dist/modules/hospitality_core/calendar.js.map +1 -1
- package/dist/modules/hospitality_core/functions.d.ts.map +1 -1
- package/dist/modules/hospitality_core/functions.js +114 -14
- package/dist/modules/hospitality_core/functions.js.map +1 -1
- package/dist/modules/hospitality_core/index.d.ts +2 -2
- package/dist/modules/hospitality_core/index.d.ts.map +1 -1
- package/dist/modules/hospitality_core/index.js +3 -2
- package/dist/modules/hospitality_core/index.js.map +1 -1
- package/dist/modules/hospitality_core/inventory.d.ts +53 -4
- package/dist/modules/hospitality_core/inventory.d.ts.map +1 -1
- package/dist/modules/hospitality_core/inventory.js +121 -14
- package/dist/modules/hospitality_core/inventory.js.map +1 -1
- package/dist/modules/hospitality_core/menus.d.ts.map +1 -1
- package/dist/modules/hospitality_core/menus.js +31 -0
- package/dist/modules/hospitality_core/menus.js.map +1 -1
- package/dist/modules/hospitality_core/messages.d.ts.map +1 -1
- package/dist/modules/hospitality_core/messages.js +427 -183
- package/dist/modules/hospitality_core/messages.js.map +1 -1
- package/dist/modules/hospitality_core/models.d.ts +1 -1
- package/dist/modules/hospitality_core/models.d.ts.map +1 -1
- package/dist/modules/hospitality_core/models.js +47 -2
- package/dist/modules/hospitality_core/models.js.map +1 -1
- package/dist/modules/hospitality_core/night-audit.d.ts +1 -0
- package/dist/modules/hospitality_core/night-audit.d.ts.map +1 -1
- package/dist/modules/hospitality_core/night-audit.js +46 -1
- package/dist/modules/hospitality_core/night-audit.js.map +1 -1
- package/dist/modules/hospitality_core/online-booking.d.ts +5 -0
- package/dist/modules/hospitality_core/online-booking.d.ts.map +1 -0
- package/dist/modules/hospitality_core/online-booking.js +775 -0
- package/dist/modules/hospitality_core/online-booking.js.map +1 -0
- package/dist/modules/hospitality_core/operations.d.ts +21 -1
- package/dist/modules/hospitality_core/operations.d.ts.map +1 -1
- package/dist/modules/hospitality_core/operations.js +549 -74
- package/dist/modules/hospitality_core/operations.js.map +1 -1
- package/dist/modules/hospitality_core/routes.d.ts.map +1 -1
- package/dist/modules/hospitality_core/routes.js +526 -107
- package/dist/modules/hospitality_core/routes.js.map +1 -1
- package/dist/modules/hospitality_core/screens/amenities.d.ts +10 -0
- package/dist/modules/hospitality_core/screens/amenities.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/amenities.js +65 -0
- package/dist/modules/hospitality_core/screens/amenities.js.map +1 -0
- package/dist/modules/hospitality_core/screens/building-detail.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/building-detail.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/building-detail.js +69 -0
- package/dist/modules/hospitality_core/screens/building-detail.js.map +1 -0
- package/dist/modules/hospitality_core/screens/check-out-prep.d.ts +46 -0
- package/dist/modules/hospitality_core/screens/check-out-prep.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/check-out-prep.js +133 -0
- package/dist/modules/hospitality_core/screens/check-out-prep.js.map +1 -0
- package/dist/modules/hospitality_core/screens/cleaning-task-detail.d.ts +7 -0
- package/dist/modules/hospitality_core/screens/cleaning-task-detail.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/cleaning-task-detail.js +109 -0
- package/dist/modules/hospitality_core/screens/cleaning-task-detail.js.map +1 -0
- package/dist/modules/hospitality_core/screens/cleaning-tasks.d.ts +20 -0
- package/dist/modules/hospitality_core/screens/cleaning-tasks.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/cleaning-tasks.js +139 -0
- package/dist/modules/hospitality_core/screens/cleaning-tasks.js.map +1 -0
- package/dist/modules/hospitality_core/screens/content.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/content.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/content.js +114 -0
- package/dist/modules/hospitality_core/screens/content.js.map +1 -0
- package/dist/modules/hospitality_core/screens/floor-detail.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/floor-detail.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/floor-detail.js +74 -0
- package/dist/modules/hospitality_core/screens/floor-detail.js.map +1 -0
- package/dist/modules/hospitality_core/screens/folio-detail.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/folio-detail.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/folio-detail.js +140 -0
- package/dist/modules/hospitality_core/screens/folio-detail.js.map +1 -0
- package/dist/modules/hospitality_core/screens/folios.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/folios.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/folios.js +7 -0
- package/dist/modules/hospitality_core/screens/folios.js.map +1 -0
- package/dist/modules/hospitality_core/screens/front-desk.d.ts +35 -0
- package/dist/modules/hospitality_core/screens/front-desk.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/front-desk.js +195 -0
- package/dist/modules/hospitality_core/screens/front-desk.js.map +1 -0
- package/dist/modules/hospitality_core/screens/housekeeping-room-detail.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/housekeeping-room-detail.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/housekeeping-room-detail.js +121 -0
- package/dist/modules/hospitality_core/screens/housekeeping-room-detail.js.map +1 -0
- package/dist/modules/hospitality_core/screens/housekeeping-rooms.d.ts +9 -0
- package/dist/modules/hospitality_core/screens/housekeeping-rooms.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/housekeeping-rooms.js +54 -0
- package/dist/modules/hospitality_core/screens/housekeeping-rooms.js.map +1 -0
- package/dist/modules/hospitality_core/screens/index.d.ts +35 -0
- package/dist/modules/hospitality_core/screens/index.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/index.js +34 -0
- package/dist/modules/hospitality_core/screens/index.js.map +1 -0
- package/dist/modules/hospitality_core/screens/inventory.d.ts +8 -0
- package/dist/modules/hospitality_core/screens/inventory.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/inventory.js +122 -0
- package/dist/modules/hospitality_core/screens/inventory.js.map +1 -0
- package/dist/modules/hospitality_core/screens/new-property.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/new-property.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/new-property.js +8 -0
- package/dist/modules/hospitality_core/screens/new-property.js.map +1 -0
- package/dist/modules/hospitality_core/screens/new-room-type.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/new-room-type.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/new-room-type.js +8 -0
- package/dist/modules/hospitality_core/screens/new-room-type.js.map +1 -0
- package/dist/modules/hospitality_core/screens/new-room.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/new-room.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/new-room.js +8 -0
- package/dist/modules/hospitality_core/screens/new-room.js.map +1 -0
- package/dist/modules/hospitality_core/screens/night-audit.d.ts +10 -0
- package/dist/modules/hospitality_core/screens/night-audit.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/night-audit.js +67 -0
- package/dist/modules/hospitality_core/screens/night-audit.js.map +1 -0
- package/dist/modules/hospitality_core/screens/page-frame.d.ts +15 -0
- package/dist/modules/hospitality_core/screens/page-frame.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/page-frame.js +10 -0
- package/dist/modules/hospitality_core/screens/page-frame.js.map +1 -0
- package/dist/modules/hospitality_core/screens/policies.d.ts +10 -0
- package/dist/modules/hospitality_core/screens/policies.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/policies.js +72 -0
- package/dist/modules/hospitality_core/screens/policies.js.map +1 -0
- package/dist/modules/hospitality_core/screens/properties.d.ts +7 -0
- package/dist/modules/hospitality_core/screens/properties.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/properties.js +45 -0
- package/dist/modules/hospitality_core/screens/properties.js.map +1 -0
- package/dist/modules/hospitality_core/screens/property-detail.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/property-detail.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/property-detail.js +92 -0
- package/dist/modules/hospitality_core/screens/property-detail.js.map +1 -0
- package/dist/modules/hospitality_core/screens/rate-plans.d.ts +10 -0
- package/dist/modules/hospitality_core/screens/rate-plans.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/rate-plans.js +123 -0
- package/dist/modules/hospitality_core/screens/rate-plans.js.map +1 -0
- package/dist/modules/hospitality_core/screens/reservation-detail.d.ts +11 -0
- package/dist/modules/hospitality_core/screens/reservation-detail.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/reservation-detail.js +244 -0
- package/dist/modules/hospitality_core/screens/reservation-detail.js.map +1 -0
- package/dist/modules/hospitality_core/screens/reservations.d.ts +17 -0
- package/dist/modules/hospitality_core/screens/reservations.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/reservations.js +166 -0
- package/dist/modules/hospitality_core/screens/reservations.js.map +1 -0
- package/dist/modules/hospitality_core/screens/room-detail.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/room-detail.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/room-detail.js +75 -0
- package/dist/modules/hospitality_core/screens/room-detail.js.map +1 -0
- package/dist/modules/hospitality_core/screens/room-type-detail.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/room-type-detail.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/room-type-detail.js +91 -0
- package/dist/modules/hospitality_core/screens/room-type-detail.js.map +1 -0
- package/dist/modules/hospitality_core/screens/room-types.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/room-types.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/room-types.js +61 -0
- package/dist/modules/hospitality_core/screens/room-types.js.map +1 -0
- package/dist/modules/hospitality_core/screens/rooms.d.ts +10 -0
- package/dist/modules/hospitality_core/screens/rooms.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/rooms.js +150 -0
- package/dist/modules/hospitality_core/screens/rooms.js.map +1 -0
- package/dist/modules/hospitality_core/screens/services.d.ts +18 -0
- package/dist/modules/hospitality_core/screens/services.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/services.js +196 -0
- package/dist/modules/hospitality_core/screens/services.js.map +1 -0
- package/dist/modules/hospitality_core/screens/shared.d.ts +789 -0
- package/dist/modules/hospitality_core/screens/shared.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/shared.js +1607 -0
- package/dist/modules/hospitality_core/screens/shared.js.map +1 -0
- package/dist/modules/hospitality_core/screens/stay-detail.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/stay-detail.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/stay-detail.js +233 -0
- package/dist/modules/hospitality_core/screens/stay-detail.js.map +1 -0
- package/dist/modules/hospitality_core/screens/stay-notices.d.ts +9 -0
- package/dist/modules/hospitality_core/screens/stay-notices.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/stay-notices.js +87 -0
- package/dist/modules/hospitality_core/screens/stay-notices.js.map +1 -0
- package/dist/modules/hospitality_core/screens/stays.d.ts +3 -0
- package/dist/modules/hospitality_core/screens/stays.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/stays.js +7 -0
- package/dist/modules/hospitality_core/screens/stays.js.map +1 -0
- package/dist/modules/hospitality_core/screens/tape-chart.d.ts +7 -0
- package/dist/modules/hospitality_core/screens/tape-chart.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens/tape-chart.js +99 -0
- package/dist/modules/hospitality_core/screens/tape-chart.js.map +1 -0
- package/dist/modules/hospitality_core/services.d.ts +48 -0
- package/dist/modules/hospitality_core/services.d.ts.map +1 -1
- package/dist/modules/hospitality_core/services.js +203 -30
- package/dist/modules/hospitality_core/services.js.map +1 -1
- package/dist/modules/hospitality_core/stay-notices.js +2 -2
- package/dist/modules/hospitality_core/stay-notices.js.map +1 -1
- package/dist/modules/hospitality_core/types.d.ts +26 -5
- package/dist/modules/hospitality_core/types.d.ts.map +1 -1
- package/dist/modules/hospitality_core/types.js +47 -5
- package/dist/modules/hospitality_core/types.js.map +1 -1
- package/dist/modules/hospitality_staff_channel/channel-routes.d.ts +2 -0
- package/dist/modules/hospitality_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/hospitality_staff_channel/channel-routes.js +1216 -0
- package/dist/modules/hospitality_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/hospitality_staff_channel/index.d.ts +5 -0
- package/dist/modules/hospitality_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/hospitality_staff_channel/index.js +34 -0
- package/dist/modules/hospitality_staff_channel/index.js.map +1 -0
- package/dist/modules/hr/functions.d.ts.map +1 -1
- package/dist/modules/hr/functions.js +108 -44
- package/dist/modules/hr/functions.js.map +1 -1
- package/dist/modules/hr/index.d.ts.map +1 -1
- package/dist/modules/hr/index.js +0 -1
- package/dist/modules/hr/index.js.map +1 -1
- package/dist/modules/hr_backend/index.d.ts +2 -1
- package/dist/modules/hr_backend/index.d.ts.map +1 -1
- package/dist/modules/hr_backend/index.js +39 -7
- package/dist/modules/hr_backend/index.js.map +1 -1
- package/dist/modules/hr_backend/routes.d.ts.map +1 -1
- package/dist/modules/hr_backend/routes.js +279 -42
- package/dist/modules/hr_backend/routes.js.map +1 -1
- package/dist/modules/hr_backend/screens/employee-form.d.ts +28 -0
- package/dist/modules/hr_backend/screens/employee-form.d.ts.map +1 -0
- package/dist/modules/hr_backend/screens/employee-form.js +110 -0
- package/dist/modules/hr_backend/screens/employee-form.js.map +1 -0
- package/dist/modules/hr_backend/screens/employees-list.d.ts +22 -0
- package/dist/modules/hr_backend/screens/employees-list.d.ts.map +1 -0
- package/dist/modules/hr_backend/screens/employees-list.js +53 -0
- package/dist/modules/hr_backend/screens/employees-list.js.map +1 -0
- package/dist/modules/hr_backend/screens/index.d.ts +5 -0
- package/dist/modules/hr_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/hr_backend/screens/index.js +5 -0
- package/dist/modules/hr_backend/screens/index.js.map +1 -0
- package/dist/modules/hr_backend/screens/leaves-list.d.ts +22 -0
- package/dist/modules/hr_backend/screens/leaves-list.d.ts.map +1 -0
- package/dist/modules/hr_backend/screens/leaves-list.js +78 -0
- package/dist/modules/hr_backend/screens/leaves-list.js.map +1 -0
- package/dist/modules/hr_backend/screens/roster.d.ts +19 -0
- package/dist/modules/hr_backend/screens/roster.d.ts.map +1 -0
- package/dist/modules/hr_backend/screens/roster.js +83 -0
- package/dist/modules/hr_backend/screens/roster.js.map +1 -0
- package/dist/modules/inventory_staff_channel/channel-routes.d.ts +2 -0
- package/dist/modules/inventory_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/inventory_staff_channel/channel-routes.js +713 -0
- package/dist/modules/inventory_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/inventory_staff_channel/index.d.ts +5 -0
- package/dist/modules/inventory_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/inventory_staff_channel/index.js +38 -0
- package/dist/modules/inventory_staff_channel/index.js.map +1 -0
- package/dist/modules/livedoc/documents.d.ts +48 -0
- package/dist/modules/livedoc/documents.d.ts.map +1 -0
- package/dist/modules/livedoc/documents.js +99 -0
- package/dist/modules/livedoc/documents.js.map +1 -0
- package/dist/modules/livedoc/functions.d.ts +3 -0
- package/dist/modules/livedoc/functions.d.ts.map +1 -0
- package/dist/modules/livedoc/functions.js +47 -0
- package/dist/modules/livedoc/functions.js.map +1 -0
- package/dist/modules/livedoc/index.d.ts +22 -0
- package/dist/modules/livedoc/index.d.ts.map +1 -0
- package/dist/modules/livedoc/index.js +37 -0
- package/dist/modules/livedoc/index.js.map +1 -0
- package/dist/modules/livedoc/islands.d.ts +3 -0
- package/dist/modules/livedoc/islands.d.ts.map +1 -0
- package/dist/modules/livedoc/islands.js +22 -0
- package/dist/modules/livedoc/islands.js.map +1 -0
- package/dist/modules/livedoc/routes.d.ts +11 -0
- package/dist/modules/livedoc/routes.d.ts.map +1 -0
- package/dist/modules/livedoc/routes.js +232 -0
- package/dist/modules/livedoc/routes.js.map +1 -0
- package/dist/modules/livedoc/sync.d.ts +124 -0
- package/dist/modules/livedoc/sync.d.ts.map +1 -0
- package/dist/modules/livedoc/sync.js +218 -0
- package/dist/modules/livedoc/sync.js.map +1 -0
- package/dist/modules/loyalty/admin-functions.d.ts.map +1 -1
- package/dist/modules/loyalty/admin-functions.js +42 -6
- package/dist/modules/loyalty/admin-functions.js.map +1 -1
- package/dist/modules/loyalty/engine.d.ts +1 -0
- package/dist/modules/loyalty/engine.d.ts.map +1 -1
- package/dist/modules/loyalty/engine.js +88 -28
- package/dist/modules/loyalty/engine.js.map +1 -1
- package/dist/modules/loyalty/index.d.ts.map +1 -1
- package/dist/modules/loyalty/index.js +10 -2
- package/dist/modules/loyalty/index.js.map +1 -1
- package/dist/modules/loyalty/ledger.d.ts.map +1 -1
- package/dist/modules/loyalty/ledger.js +11 -0
- package/dist/modules/loyalty/ledger.js.map +1 -1
- package/dist/modules/loyalty/membership-functions.d.ts.map +1 -1
- package/dist/modules/loyalty/membership-functions.js +23 -7
- package/dist/modules/loyalty/membership-functions.js.map +1 -1
- package/dist/modules/loyalty/messages.d.ts +8 -0
- package/dist/modules/loyalty/messages.d.ts.map +1 -1
- package/dist/modules/loyalty/messages.js +8 -0
- package/dist/modules/loyalty/messages.js.map +1 -1
- package/dist/modules/loyalty/models.d.ts.map +1 -1
- package/dist/modules/loyalty/models.js +20 -0
- package/dist/modules/loyalty/models.js.map +1 -1
- package/dist/modules/loyalty/order-functions.d.ts +16 -1
- package/dist/modules/loyalty/order-functions.d.ts.map +1 -1
- package/dist/modules/loyalty/order-functions.js +513 -291
- package/dist/modules/loyalty/order-functions.js.map +1 -1
- package/dist/modules/loyalty/stats.d.ts +17 -0
- package/dist/modules/loyalty/stats.d.ts.map +1 -0
- package/dist/modules/loyalty/stats.js +178 -0
- package/dist/modules/loyalty/stats.js.map +1 -0
- package/dist/modules/loyalty/stored-value.d.ts +42 -0
- package/dist/modules/loyalty/stored-value.d.ts.map +1 -0
- package/dist/modules/loyalty/stored-value.js +368 -0
- package/dist/modules/loyalty/stored-value.js.map +1 -0
- package/dist/modules/loyalty/types.d.ts +6 -4
- package/dist/modules/loyalty/types.d.ts.map +1 -1
- package/dist/modules/loyalty/types.js +1 -1
- package/dist/modules/loyalty/types.js.map +1 -1
- package/dist/modules/loyalty_backend/index.js +443 -172
- package/dist/modules/loyalty_backend/index.js.map +1 -1
- package/dist/modules/loyalty_backend/messages.d.ts +58 -1
- package/dist/modules/loyalty_backend/messages.d.ts.map +1 -1
- package/dist/modules/loyalty_backend/messages.js +114 -0
- package/dist/modules/loyalty_backend/messages.js.map +1 -1
- package/dist/modules/loyalty_backend/screens/index.d.ts +90 -0
- package/dist/modules/loyalty_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/loyalty_backend/screens/index.js +912 -0
- package/dist/modules/loyalty_backend/screens/index.js.map +1 -0
- package/dist/modules/loyalty_backend/screens/page-frame.d.ts +14 -0
- package/dist/modules/loyalty_backend/screens/page-frame.d.ts.map +1 -0
- package/dist/modules/loyalty_backend/screens/page-frame.js +13 -0
- package/dist/modules/loyalty_backend/screens/page-frame.js.map +1 -0
- package/dist/modules/loyalty_pos/channel.d.ts +2 -0
- package/dist/modules/loyalty_pos/channel.d.ts.map +1 -0
- package/dist/modules/loyalty_pos/channel.js +270 -0
- package/dist/modules/loyalty_pos/channel.js.map +1 -0
- package/dist/modules/loyalty_pos/functions.d.ts +11 -17
- package/dist/modules/loyalty_pos/functions.d.ts.map +1 -1
- package/dist/modules/loyalty_pos/functions.js +454 -94
- package/dist/modules/loyalty_pos/functions.js.map +1 -1
- package/dist/modules/loyalty_pos/index.js +6 -16
- package/dist/modules/loyalty_pos/index.js.map +1 -1
- package/dist/modules/loyalty_pos/jobs.d.ts +3 -0
- package/dist/modules/loyalty_pos/jobs.d.ts.map +1 -0
- package/dist/modules/loyalty_pos/jobs.js +30 -0
- package/dist/modules/loyalty_pos/jobs.js.map +1 -0
- package/dist/modules/loyalty_sale/functions.d.ts +2 -2
- package/dist/modules/loyalty_sale/functions.d.ts.map +1 -1
- package/dist/modules/loyalty_sale/functions.js +53 -34
- package/dist/modules/loyalty_sale/functions.js.map +1 -1
- package/dist/modules/loyalty_sale/index.js +0 -2
- package/dist/modules/loyalty_sale/index.js.map +1 -1
- package/dist/modules/mail/functions.d.ts.map +1 -1
- package/dist/modules/mail/functions.js +48 -6
- package/dist/modules/mail/functions.js.map +1 -1
- package/dist/modules/mail/index.d.ts.map +1 -1
- package/dist/modules/mail/index.js +0 -1
- package/dist/modules/mail/index.js.map +1 -1
- package/dist/modules/mail/operations.d.ts +19 -0
- package/dist/modules/mail/operations.d.ts.map +1 -1
- package/dist/modules/mail/operations.js +69 -0
- package/dist/modules/mail/operations.js.map +1 -1
- package/dist/modules/mail_backend/index.d.ts +1 -1
- package/dist/modules/mail_backend/index.d.ts.map +1 -1
- package/dist/modules/mail_backend/index.js +5 -14
- package/dist/modules/mail_backend/index.js.map +1 -1
- package/dist/modules/mail_backend/islands.js +2 -2
- package/dist/modules/mail_backend/islands.js.map +1 -1
- package/dist/modules/mail_backend/routes.d.ts.map +1 -1
- package/dist/modules/mail_backend/routes.js +25 -20
- package/dist/modules/mail_backend/routes.js.map +1 -1
- package/dist/modules/mail_backend/screens/inbox-list.d.ts +9 -0
- package/dist/modules/mail_backend/screens/inbox-list.d.ts.map +1 -0
- package/dist/modules/mail_backend/screens/inbox-list.js +13 -0
- package/dist/modules/mail_backend/screens/inbox-list.js.map +1 -0
- package/dist/modules/mail_backend/screens/index.d.ts +3 -0
- package/dist/modules/mail_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/mail_backend/screens/index.js +2 -0
- package/dist/modules/mail_backend/screens/index.js.map +1 -0
- package/dist/modules/mail_inbound/index.d.ts.map +1 -1
- package/dist/modules/mail_inbound/index.js +0 -1
- package/dist/modules/mail_inbound/index.js.map +1 -1
- package/dist/modules/mail_inbound_backend/index.d.ts +1 -1
- package/dist/modules/mail_inbound_backend/index.d.ts.map +1 -1
- package/dist/modules/mail_inbound_backend/index.js +3 -12
- package/dist/modules/mail_inbound_backend/index.js.map +1 -1
- package/dist/modules/mail_inbound_backend/routes.d.ts.map +1 -1
- package/dist/modules/mail_inbound_backend/routes.js +6 -21
- package/dist/modules/mail_inbound_backend/routes.js.map +1 -1
- package/dist/modules/mail_inbound_backend/screens/inbound-list.d.ts +8 -0
- package/dist/modules/mail_inbound_backend/screens/inbound-list.d.ts.map +1 -0
- package/dist/modules/mail_inbound_backend/screens/inbound-list.js +20 -0
- package/dist/modules/mail_inbound_backend/screens/inbound-list.js.map +1 -0
- package/dist/modules/mail_inbound_backend/screens/index.d.ts +3 -0
- package/dist/modules/mail_inbound_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/mail_inbound_backend/screens/index.js +2 -0
- package/dist/modules/mail_inbound_backend/screens/index.js.map +1 -0
- package/dist/modules/mail_staff_channel/channel-routes.d.ts +2 -0
- package/dist/modules/mail_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/mail_staff_channel/channel-routes.js +183 -0
- package/dist/modules/mail_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/mail_staff_channel/index.d.ts +5 -0
- package/dist/modules/mail_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/mail_staff_channel/index.js +28 -0
- package/dist/modules/mail_staff_channel/index.js.map +1 -0
- package/dist/modules/mail_transport/index.d.ts.map +1 -1
- package/dist/modules/mail_transport/index.js +0 -1
- package/dist/modules/mail_transport/index.js.map +1 -1
- package/dist/modules/mail_transport_backend/index.d.ts +1 -1
- package/dist/modules/mail_transport_backend/index.d.ts.map +1 -1
- package/dist/modules/mail_transport_backend/index.js +3 -12
- package/dist/modules/mail_transport_backend/index.js.map +1 -1
- package/dist/modules/mail_transport_backend/routes.d.ts.map +1 -1
- package/dist/modules/mail_transport_backend/routes.js +23 -22
- package/dist/modules/mail_transport_backend/routes.js.map +1 -1
- package/dist/modules/mail_transport_backend/screens/index.d.ts +3 -0
- package/dist/modules/mail_transport_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/mail_transport_backend/screens/index.js +2 -0
- package/dist/modules/mail_transport_backend/screens/index.js.map +1 -0
- package/dist/modules/mail_transport_backend/screens/outbox-list.d.ts +9 -0
- package/dist/modules/mail_transport_backend/screens/outbox-list.d.ts.map +1 -0
- package/dist/modules/mail_transport_backend/screens/outbox-list.js +29 -0
- package/dist/modules/mail_transport_backend/screens/outbox-list.js.map +1 -0
- package/dist/modules/manufacturing/functions.d.ts +3 -0
- package/dist/modules/manufacturing/functions.d.ts.map +1 -0
- package/dist/modules/manufacturing/functions.js +912 -0
- package/dist/modules/manufacturing/functions.js.map +1 -0
- package/dist/modules/manufacturing/index.d.ts +6 -0
- package/dist/modules/manufacturing/index.d.ts.map +1 -0
- package/dist/modules/manufacturing/index.js +42 -0
- package/dist/modules/manufacturing/index.js.map +1 -0
- package/dist/modules/manufacturing/models.d.ts +8 -0
- package/dist/modules/manufacturing/models.d.ts.map +1 -0
- package/dist/modules/manufacturing/models.js +145 -0
- package/dist/modules/manufacturing/models.js.map +1 -0
- package/dist/modules/manufacturing/relations.d.ts.map +1 -0
- package/dist/modules/manufacturing/relations.js +37 -0
- package/dist/modules/manufacturing/relations.js.map +1 -0
- package/dist/modules/manufacturing/types.d.ts +7 -0
- package/dist/modules/manufacturing/types.d.ts.map +1 -0
- package/dist/modules/manufacturing/types.js +11 -0
- package/dist/modules/manufacturing/types.js.map +1 -0
- package/dist/modules/manufacturing_backend/index.d.ts +5 -0
- package/dist/modules/manufacturing_backend/index.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/index.js +146 -0
- package/dist/modules/manufacturing_backend/index.js.map +1 -0
- package/dist/modules/manufacturing_backend/routes.d.ts +3 -0
- package/dist/modules/manufacturing_backend/routes.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/routes.js +477 -0
- package/dist/modules/manufacturing_backend/routes.js.map +1 -0
- package/dist/modules/manufacturing_backend/screens/bom-create.d.ts +15 -0
- package/dist/modules/manufacturing_backend/screens/bom-create.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/screens/bom-create.js +39 -0
- package/dist/modules/manufacturing_backend/screens/bom-create.js.map +1 -0
- package/dist/modules/manufacturing_backend/screens/boms-list.d.ts +18 -0
- package/dist/modules/manufacturing_backend/screens/boms-list.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/screens/boms-list.js +36 -0
- package/dist/modules/manufacturing_backend/screens/boms-list.js.map +1 -0
- package/dist/modules/manufacturing_backend/screens/index.d.ts +8 -0
- package/dist/modules/manufacturing_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/screens/index.js +8 -0
- package/dist/modules/manufacturing_backend/screens/index.js.map +1 -0
- package/dist/modules/manufacturing_backend/screens/order-create.d.ts +13 -0
- package/dist/modules/manufacturing_backend/screens/order-create.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/screens/order-create.js +20 -0
- package/dist/modules/manufacturing_backend/screens/order-create.js.map +1 -0
- package/dist/modules/manufacturing_backend/screens/order-execution.d.ts +7 -0
- package/dist/modules/manufacturing_backend/screens/order-execution.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/screens/order-execution.js +129 -0
- package/dist/modules/manufacturing_backend/screens/order-execution.js.map +1 -0
- package/dist/modules/manufacturing_backend/screens/orders-list.d.ts +21 -0
- package/dist/modules/manufacturing_backend/screens/orders-list.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/screens/orders-list.js +49 -0
- package/dist/modules/manufacturing_backend/screens/orders-list.js.map +1 -0
- package/dist/modules/manufacturing_backend/screens/work-center-form.d.ts +24 -0
- package/dist/modules/manufacturing_backend/screens/work-center-form.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/screens/work-center-form.js +80 -0
- package/dist/modules/manufacturing_backend/screens/work-center-form.js.map +1 -0
- package/dist/modules/manufacturing_backend/screens/work-centers-list.d.ts +23 -0
- package/dist/modules/manufacturing_backend/screens/work-centers-list.d.ts.map +1 -0
- package/dist/modules/manufacturing_backend/screens/work-centers-list.js +61 -0
- package/dist/modules/manufacturing_backend/screens/work-centers-list.js.map +1 -0
- package/dist/modules/oauth/index.d.ts.map +1 -1
- package/dist/modules/oauth/index.js +0 -1
- package/dist/modules/oauth/index.js.map +1 -1
- package/dist/modules/oauth/models.d.ts.map +1 -1
- package/dist/modules/oauth/models.js +2 -1
- package/dist/modules/oauth/models.js.map +1 -1
- package/dist/modules/oauth_backend/index.d.ts +1 -1
- package/dist/modules/oauth_backend/index.d.ts.map +1 -1
- package/dist/modules/oauth_backend/index.js +3 -5
- package/dist/modules/oauth_backend/index.js.map +1 -1
- package/dist/modules/oauth_backend/messages.d.ts +4 -0
- package/dist/modules/oauth_backend/messages.d.ts.map +1 -1
- package/dist/modules/oauth_backend/messages.js +4 -0
- package/dist/modules/oauth_backend/messages.js.map +1 -1
- package/dist/modules/oauth_backend/routes.d.ts.map +1 -1
- package/dist/modules/oauth_backend/routes.js +28 -30
- package/dist/modules/oauth_backend/routes.js.map +1 -1
- package/dist/modules/oauth_backend/screens/index.d.ts +66 -0
- package/dist/modules/oauth_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/oauth_backend/screens/index.js +306 -0
- package/dist/modules/oauth_backend/screens/index.js.map +1 -0
- package/dist/modules/partner/functions.d.ts.map +1 -1
- package/dist/modules/partner/functions.js +74 -6
- package/dist/modules/partner/functions.js.map +1 -1
- package/dist/modules/partner/index.d.ts.map +1 -1
- package/dist/modules/partner/index.js +0 -1
- package/dist/modules/partner/index.js.map +1 -1
- package/dist/modules/partner/models.d.ts +4 -4
- package/dist/modules/partner/models.d.ts.map +1 -1
- package/dist/modules/partner/models.js +9 -7
- package/dist/modules/partner/models.js.map +1 -1
- package/dist/modules/partner/types.d.ts +2 -2
- package/dist/modules/partner/types.js +2 -2
- package/dist/modules/partner_backend/client/address-view.mjs +5 -5
- package/dist/modules/partner_backend/client/address-view.mjs.map +1 -1
- package/dist/modules/partner_backend/client/address.css +22 -10
- package/dist/modules/partner_backend/client/partner.css +116 -0
- package/dist/modules/partner_backend/index.d.ts +1 -1
- package/dist/modules/partner_backend/index.d.ts.map +1 -1
- package/dist/modules/partner_backend/index.js +34 -4
- package/dist/modules/partner_backend/index.js.map +1 -1
- package/dist/modules/partner_backend/menus.js +2 -2
- package/dist/modules/partner_backend/menus.js.map +1 -1
- package/dist/modules/partner_backend/routes.d.ts +3 -1
- package/dist/modules/partner_backend/routes.d.ts.map +1 -1
- package/dist/modules/partner_backend/routes.js +236 -91
- package/dist/modules/partner_backend/routes.js.map +1 -1
- package/dist/modules/partner_backend/screens/form.d.ts +21 -0
- package/dist/modules/partner_backend/screens/form.d.ts.map +1 -0
- package/dist/modules/partner_backend/screens/form.js +101 -0
- package/dist/modules/partner_backend/screens/form.js.map +1 -0
- package/dist/modules/partner_backend/screens/index.d.ts +5 -0
- package/dist/modules/partner_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/partner_backend/screens/index.js +4 -0
- package/dist/modules/partner_backend/screens/index.js.map +1 -0
- package/dist/modules/partner_backend/screens/list.d.ts +6 -0
- package/dist/modules/partner_backend/screens/list.d.ts.map +1 -0
- package/dist/modules/partner_backend/screens/list.js +94 -0
- package/dist/modules/partner_backend/screens/list.js.map +1 -0
- package/dist/modules/partner_backend/screens/new.d.ts +5 -0
- package/dist/modules/partner_backend/screens/new.d.ts.map +1 -0
- package/dist/modules/partner_backend/screens/new.js +58 -0
- package/dist/modules/partner_backend/screens/new.js.map +1 -0
- package/dist/modules/partner_backend/screens/types.d.ts +44 -0
- package/dist/modules/partner_backend/screens/types.d.ts.map +1 -0
- package/dist/modules/partner_backend/screens/types.js +2 -0
- package/dist/modules/partner_backend/screens/types.js.map +1 -0
- package/dist/modules/partner_mail_backend/index.d.ts +5 -0
- package/dist/modules/partner_mail_backend/index.d.ts.map +1 -0
- package/dist/modules/partner_mail_backend/index.js +29 -0
- package/dist/modules/partner_mail_backend/index.js.map +1 -0
- package/dist/modules/pos/functions.d.ts +18 -2
- package/dist/modules/pos/functions.d.ts.map +1 -1
- package/dist/modules/pos/functions.js +3279 -345
- package/dist/modules/pos/functions.js.map +1 -1
- package/dist/modules/pos/index.d.ts +2 -1
- package/dist/modules/pos/index.d.ts.map +1 -1
- package/dist/modules/pos/index.js +5 -5
- package/dist/modules/pos/index.js.map +1 -1
- package/dist/modules/pos/models.d.ts.map +1 -1
- package/dist/modules/pos/models.js +189 -1
- package/dist/modules/pos/models.js.map +1 -1
- package/dist/modules/pos/relations.d.ts.map +1 -1
- package/dist/modules/pos/relations.js +11 -0
- package/dist/modules/pos/relations.js.map +1 -1
- package/dist/modules/pos_backend/index.js +182 -154
- package/dist/modules/pos_backend/index.js.map +1 -1
- package/dist/modules/pos_backend/screens.d.ts +1 -0
- package/dist/modules/pos_backend/screens.d.ts.map +1 -1
- package/dist/modules/pos_backend/screens.js +28 -38
- package/dist/modules/pos_backend/screens.js.map +1 -1
- package/dist/modules/pos_channel/catalog.d.ts +27 -0
- package/dist/modules/pos_channel/catalog.d.ts.map +1 -0
- package/dist/modules/pos_channel/catalog.js +310 -0
- package/dist/modules/pos_channel/catalog.js.map +1 -0
- package/dist/modules/pos_channel/index.d.ts +7 -0
- package/dist/modules/pos_channel/index.d.ts.map +1 -0
- package/dist/modules/pos_channel/index.js +61 -0
- package/dist/modules/pos_channel/index.js.map +1 -0
- package/dist/modules/pos_channel/offline.d.ts +66 -0
- package/dist/modules/pos_channel/offline.d.ts.map +1 -0
- package/dist/modules/pos_channel/offline.js +16 -0
- package/dist/modules/pos_channel/offline.js.map +1 -0
- package/dist/modules/pos_channel/operations.d.ts +422 -0
- package/dist/modules/pos_channel/operations.d.ts.map +1 -0
- package/dist/modules/pos_channel/operations.js +1781 -0
- package/dist/modules/pos_channel/operations.js.map +1 -0
- package/dist/modules/pos_channel/sync.d.ts +6 -0
- package/dist/modules/pos_channel/sync.d.ts.map +1 -0
- package/dist/modules/pos_channel/sync.js +1161 -0
- package/dist/modules/pos_channel/sync.js.map +1 -0
- package/dist/modules/pricing/index.d.ts.map +1 -1
- package/dist/modules/pricing/index.js +3 -4
- package/dist/modules/pricing/index.js.map +1 -1
- package/dist/modules/pricing_backend/index.js +135 -78
- package/dist/modules/pricing_backend/index.js.map +1 -1
- package/dist/modules/pricing_backend/screens/index.d.ts +5 -0
- package/dist/modules/pricing_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/pricing_backend/screens/index.js +4 -0
- package/dist/modules/pricing_backend/screens/index.js.map +1 -0
- package/dist/modules/pricing_backend/screens/pricelist-create.d.ts +10 -0
- package/dist/modules/pricing_backend/screens/pricelist-create.d.ts.map +1 -0
- package/dist/modules/pricing_backend/screens/pricelist-create.js +30 -0
- package/dist/modules/pricing_backend/screens/pricelist-create.js.map +1 -0
- package/dist/modules/pricing_backend/screens/pricelist-detail.d.ts +15 -0
- package/dist/modules/pricing_backend/screens/pricelist-detail.d.ts.map +1 -0
- package/dist/modules/pricing_backend/screens/pricelist-detail.js +164 -0
- package/dist/modules/pricing_backend/screens/pricelist-detail.js.map +1 -0
- package/dist/modules/pricing_backend/screens/pricelists-list.d.ts +11 -0
- package/dist/modules/pricing_backend/screens/pricelists-list.d.ts.map +1 -0
- package/dist/modules/pricing_backend/screens/pricelists-list.js +27 -0
- package/dist/modules/pricing_backend/screens/pricelists-list.js.map +1 -0
- package/dist/modules/pricing_backend/screens/shared.d.ts +21 -0
- package/dist/modules/pricing_backend/screens/shared.d.ts.map +1 -0
- package/dist/modules/pricing_backend/screens/shared.js +3 -0
- package/dist/modules/pricing_backend/screens/shared.js.map +1 -0
- package/dist/modules/product/functions.d.ts.map +1 -1
- package/dist/modules/product/functions.js +679 -50
- package/dist/modules/product/functions.js.map +1 -1
- package/dist/modules/product/index.d.ts +2 -0
- package/dist/modules/product/index.d.ts.map +1 -1
- package/dist/modules/product/index.js +2 -2
- package/dist/modules/product/index.js.map +1 -1
- package/dist/modules/product/models.d.ts +1 -1
- package/dist/modules/product/models.d.ts.map +1 -1
- package/dist/modules/product/models.js +27 -4
- package/dist/modules/product/models.js.map +1 -1
- package/dist/modules/product/relations.d.ts.map +1 -1
- package/dist/modules/product/relations.js +4 -0
- package/dist/modules/product/relations.js.map +1 -1
- package/dist/modules/product/sellable.d.ts +26 -0
- package/dist/modules/product/sellable.d.ts.map +1 -0
- package/dist/modules/product/sellable.js +56 -0
- package/dist/modules/product/sellable.js.map +1 -0
- package/dist/modules/product/types.d.ts +2 -2
- package/dist/modules/product/views.d.ts.map +1 -1
- package/dist/modules/product/views.js +5 -1
- package/dist/modules/product/views.js.map +1 -1
- package/dist/modules/product_activity_backend/index.d.ts.map +1 -1
- package/dist/modules/product_activity_backend/index.js +2 -3
- package/dist/modules/product_activity_backend/index.js.map +1 -1
- package/dist/modules/product_backend/client/media-upload-view.d.mts.map +1 -1
- package/dist/modules/product_backend/client/media-upload-view.mjs +1 -0
- package/dist/modules/product_backend/client/media-upload-view.mjs.map +1 -1
- package/dist/modules/product_backend/client/product.css +964 -0
- package/dist/modules/product_backend/index.d.ts +5 -6
- package/dist/modules/product_backend/index.d.ts.map +1 -1
- package/dist/modules/product_backend/index.js +203 -14
- package/dist/modules/product_backend/index.js.map +1 -1
- package/dist/modules/product_backend/menus.js +2 -2
- package/dist/modules/product_backend/menus.js.map +1 -1
- package/dist/modules/product_backend/relation-control.d.ts +85 -0
- package/dist/modules/product_backend/relation-control.d.ts.map +1 -0
- package/dist/modules/product_backend/relation-control.js +129 -0
- package/dist/modules/product_backend/relation-control.js.map +1 -0
- package/dist/modules/product_backend/routes.d.ts.map +1 -1
- package/dist/modules/product_backend/routes.js +502 -196
- package/dist/modules/product_backend/routes.js.map +1 -1
- package/dist/modules/product_backend/screens/attributes.d.ts +7 -0
- package/dist/modules/product_backend/screens/attributes.d.ts.map +1 -0
- package/dist/modules/product_backend/screens/attributes.js +66 -0
- package/dist/modules/product_backend/screens/attributes.js.map +1 -0
- package/dist/modules/product_backend/screens/create.d.ts +16 -0
- package/dist/modules/product_backend/screens/create.d.ts.map +1 -0
- package/dist/modules/product_backend/screens/create.js +86 -0
- package/dist/modules/product_backend/screens/create.js.map +1 -0
- package/dist/modules/product_backend/screens/detail.d.ts +87 -0
- package/dist/modules/product_backend/screens/detail.d.ts.map +1 -0
- package/dist/modules/product_backend/screens/detail.js +381 -0
- package/dist/modules/product_backend/screens/detail.js.map +1 -0
- package/dist/modules/product_backend/screens/favorite.d.ts +6 -0
- package/dist/modules/product_backend/screens/favorite.d.ts.map +1 -0
- package/dist/modules/product_backend/screens/favorite.js +43 -0
- package/dist/modules/product_backend/screens/favorite.js.map +1 -0
- package/dist/modules/product_backend/screens/index.d.ts +10 -0
- package/dist/modules/product_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/product_backend/screens/index.js +7 -0
- package/dist/modules/product_backend/screens/index.js.map +1 -0
- package/dist/modules/product_backend/screens/list.d.ts +54 -0
- package/dist/modules/product_backend/screens/list.d.ts.map +1 -0
- package/dist/modules/product_backend/screens/list.js +124 -0
- package/dist/modules/product_backend/screens/list.js.map +1 -0
- package/dist/modules/product_backend/screens/variant.d.ts +9 -0
- package/dist/modules/product_backend/screens/variant.d.ts.map +1 -0
- package/dist/modules/product_backend/screens/variant.js +113 -0
- package/dist/modules/product_backend/screens/variant.js.map +1 -0
- package/dist/modules/product_mail_backend/index.d.ts.map +1 -1
- package/dist/modules/product_mail_backend/index.js +2 -3
- package/dist/modules/product_mail_backend/index.js.map +1 -1
- package/dist/modules/product_media/functions.d.ts.map +1 -1
- package/dist/modules/product_media/functions.js +59 -6
- package/dist/modules/product_media/functions.js.map +1 -1
- package/dist/modules/product_media/index.js +0 -1
- package/dist/modules/product_media/index.js.map +1 -1
- package/dist/modules/product_variant_activity_backend/index.d.ts.map +1 -1
- package/dist/modules/product_variant_activity_backend/index.js +2 -3
- package/dist/modules/product_variant_activity_backend/index.js.map +1 -1
- package/dist/modules/product_variant_mail_backend/index.d.ts.map +1 -1
- package/dist/modules/product_variant_mail_backend/index.js +2 -3
- package/dist/modules/product_variant_mail_backend/index.js.map +1 -1
- package/dist/modules/purchase/functions.d.ts.map +1 -1
- package/dist/modules/purchase/functions.js +852 -225
- package/dist/modules/purchase/functions.js.map +1 -1
- package/dist/modules/purchase/index.d.ts.map +1 -1
- package/dist/modules/purchase/index.js +30 -5
- package/dist/modules/purchase/index.js.map +1 -1
- package/dist/modules/purchase/models.d.ts.map +1 -1
- package/dist/modules/purchase/models.js +1 -0
- package/dist/modules/purchase/models.js.map +1 -1
- package/dist/modules/purchase/reports.d.ts +4 -0
- package/dist/modules/purchase/reports.d.ts.map +1 -0
- package/dist/modules/purchase/reports.js +86 -0
- package/dist/modules/purchase/reports.js.map +1 -0
- package/dist/modules/purchase_backend/index.js +513 -112
- package/dist/modules/purchase_backend/index.js.map +1 -1
- package/dist/modules/purchase_backend/screens/index.d.ts +10 -0
- package/dist/modules/purchase_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens/index.js +10 -0
- package/dist/modules/purchase_backend/screens/index.js.map +1 -0
- package/dist/modules/purchase_backend/screens/order-detail.d.ts +31 -0
- package/dist/modules/purchase_backend/screens/order-detail.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens/order-detail.js +204 -0
- package/dist/modules/purchase_backend/screens/order-detail.js.map +1 -0
- package/dist/modules/purchase_backend/screens/order-list-shared.d.ts +7 -0
- package/dist/modules/purchase_backend/screens/order-list-shared.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens/order-list-shared.js +58 -0
- package/dist/modules/purchase_backend/screens/order-list-shared.js.map +1 -0
- package/dist/modules/purchase_backend/screens/overview.d.ts +19 -0
- package/dist/modules/purchase_backend/screens/overview.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens/overview.js +52 -0
- package/dist/modules/purchase_backend/screens/overview.js.map +1 -0
- package/dist/modules/purchase_backend/screens/purchase-orders-list.d.ts +14 -0
- package/dist/modules/purchase_backend/screens/purchase-orders-list.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens/purchase-orders-list.js +26 -0
- package/dist/modules/purchase_backend/screens/purchase-orders-list.js.map +1 -0
- package/dist/modules/purchase_backend/screens/rfq-create.d.ts +16 -0
- package/dist/modules/purchase_backend/screens/rfq-create.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens/rfq-create.js +24 -0
- package/dist/modules/purchase_backend/screens/rfq-create.js.map +1 -0
- package/dist/modules/purchase_backend/screens/rfqs-list.d.ts +18 -0
- package/dist/modules/purchase_backend/screens/rfqs-list.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens/rfqs-list.js +28 -0
- package/dist/modules/purchase_backend/screens/rfqs-list.js.map +1 -0
- package/dist/modules/purchase_backend/screens/shared.d.ts +18 -0
- package/dist/modules/purchase_backend/screens/shared.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens/shared.js +30 -0
- package/dist/modules/purchase_backend/screens/shared.js.map +1 -0
- package/dist/modules/purchase_backend/screens/vendor-pricelist-create.d.ts +20 -0
- package/dist/modules/purchase_backend/screens/vendor-pricelist-create.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens/vendor-pricelist-create.js +25 -0
- package/dist/modules/purchase_backend/screens/vendor-pricelist-create.js.map +1 -0
- package/dist/modules/purchase_backend/screens/vendor-pricelists-list.d.ts +33 -0
- package/dist/modules/purchase_backend/screens/vendor-pricelists-list.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens/vendor-pricelists-list.js +73 -0
- package/dist/modules/purchase_backend/screens/vendor-pricelists-list.js.map +1 -0
- package/dist/modules/purchase_staff_channel/channel-routes.d.ts +2 -0
- package/dist/modules/purchase_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/purchase_staff_channel/channel-routes.js +119 -0
- package/dist/modules/purchase_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/purchase_staff_channel/index.d.ts +8 -0
- package/dist/modules/purchase_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/purchase_staff_channel/index.js +45 -0
- package/dist/modules/purchase_staff_channel/index.js.map +1 -0
- package/dist/modules/purchase_staff_channel/order-routes.d.ts +2 -0
- package/dist/modules/purchase_staff_channel/order-routes.d.ts.map +1 -0
- package/dist/modules/purchase_staff_channel/order-routes.js +743 -0
- package/dist/modules/purchase_staff_channel/order-routes.js.map +1 -0
- package/dist/modules/purchase_staff_channel/product-routes.d.ts +2 -0
- package/dist/modules/purchase_staff_channel/product-routes.d.ts.map +1 -0
- package/dist/modules/purchase_staff_channel/product-routes.js +183 -0
- package/dist/modules/purchase_staff_channel/product-routes.js.map +1 -0
- package/dist/modules/purchase_staff_channel/vendor-bill-routes.d.ts +2 -0
- package/dist/modules/purchase_staff_channel/vendor-bill-routes.d.ts.map +1 -0
- package/dist/modules/purchase_staff_channel/vendor-bill-routes.js +189 -0
- package/dist/modules/purchase_staff_channel/vendor-bill-routes.js.map +1 -0
- package/dist/modules/quality/functions.d.ts +3 -0
- package/dist/modules/quality/functions.d.ts.map +1 -0
- package/dist/modules/quality/functions.js +381 -0
- package/dist/modules/quality/functions.js.map +1 -0
- package/dist/modules/quality/index.d.ts +5 -0
- package/dist/modules/quality/index.d.ts.map +1 -0
- package/dist/modules/quality/index.js +19 -0
- package/dist/modules/quality/index.js.map +1 -0
- package/dist/modules/quality/models.d.ts +3 -0
- package/dist/modules/quality/models.d.ts.map +1 -0
- package/dist/modules/quality/models.js +91 -0
- package/dist/modules/quality/models.js.map +1 -0
- package/dist/modules/quality_staff_channel/channel-routes.d.ts +2 -0
- package/dist/modules/quality_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/quality_staff_channel/channel-routes.js +484 -0
- package/dist/modules/quality_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/quality_staff_channel/index.d.ts +5 -0
- package/dist/modules/quality_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/quality_staff_channel/index.js +30 -0
- package/dist/modules/quality_staff_channel/index.js.map +1 -0
- package/dist/modules/report/functions.d.ts +3 -0
- package/dist/modules/report/functions.d.ts.map +1 -0
- package/dist/modules/report/functions.js +197 -0
- package/dist/modules/report/functions.js.map +1 -0
- package/dist/modules/report/index.d.ts +3 -0
- package/dist/modules/report/index.d.ts.map +1 -0
- package/dist/modules/report/index.js +21 -0
- package/dist/modules/report/index.js.map +1 -0
- package/dist/modules/report/jobs.d.ts +3 -0
- package/dist/modules/report/jobs.d.ts.map +1 -0
- package/dist/modules/report/jobs.js +18 -0
- package/dist/modules/report/jobs.js.map +1 -0
- package/dist/modules/report/models.d.ts +3 -0
- package/dist/modules/report/models.d.ts.map +1 -0
- package/dist/modules/report/models.js +45 -0
- package/dist/modules/report/models.js.map +1 -0
- package/dist/modules/report/routes.d.ts +19 -0
- package/dist/modules/report/routes.d.ts.map +1 -0
- package/dist/modules/report/routes.js +138 -0
- package/dist/modules/report/routes.js.map +1 -0
- package/dist/modules/report_backend/index.d.ts +3 -0
- package/dist/modules/report_backend/index.d.ts.map +1 -0
- package/dist/modules/report_backend/index.js +67 -0
- package/dist/modules/report_backend/index.js.map +1 -0
- package/dist/modules/report_backend/routes.d.ts +10 -0
- package/dist/modules/report_backend/routes.d.ts.map +1 -0
- package/dist/modules/report_backend/routes.js +87 -0
- package/dist/modules/report_backend/routes.js.map +1 -0
- package/dist/modules/report_backend/screens/index.d.ts +13 -0
- package/dist/modules/report_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/report_backend/screens/index.js +91 -0
- package/dist/modules/report_backend/screens/index.js.map +1 -0
- package/dist/modules/sale/functions.d.ts.map +1 -1
- package/dist/modules/sale/functions.js +806 -238
- package/dist/modules/sale/functions.js.map +1 -1
- package/dist/modules/sale/index.d.ts.map +1 -1
- package/dist/modules/sale/index.js +44 -5
- package/dist/modules/sale/index.js.map +1 -1
- package/dist/modules/sale/models.d.ts.map +1 -1
- package/dist/modules/sale/models.js +47 -1
- package/dist/modules/sale/models.js.map +1 -1
- package/dist/modules/sale/relations.d.ts.map +1 -1
- package/dist/modules/sale/relations.js +6 -0
- package/dist/modules/sale/relations.js.map +1 -1
- package/dist/modules/sale/reports.d.ts +4 -0
- package/dist/modules/sale/reports.d.ts.map +1 -0
- package/dist/modules/sale/reports.js +132 -0
- package/dist/modules/sale/reports.js.map +1 -0
- package/dist/modules/sale/scope.d.ts +31 -0
- package/dist/modules/sale/scope.d.ts.map +1 -0
- package/dist/modules/sale/scope.js +34 -0
- package/dist/modules/sale/scope.js.map +1 -0
- package/dist/modules/sale_activity_backend/index.d.ts.map +1 -1
- package/dist/modules/sale_activity_backend/index.js +0 -1
- package/dist/modules/sale_activity_backend/index.js.map +1 -1
- package/dist/modules/sale_backend/index.js +338 -121
- package/dist/modules/sale_backend/index.js.map +1 -1
- package/dist/modules/sale_backend/screens/index.d.ts +9 -0
- package/dist/modules/sale_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/sale_backend/screens/index.js +9 -0
- package/dist/modules/sale_backend/screens/index.js.map +1 -0
- package/dist/modules/sale_backend/screens/invoicing-policies-list.d.ts +14 -0
- package/dist/modules/sale_backend/screens/invoicing-policies-list.d.ts.map +1 -0
- package/dist/modules/sale_backend/screens/invoicing-policies-list.js +48 -0
- package/dist/modules/sale_backend/screens/invoicing-policies-list.js.map +1 -0
- package/dist/modules/sale_backend/screens/invoicing-policy-create.d.ts +14 -0
- package/dist/modules/sale_backend/screens/invoicing-policy-create.d.ts.map +1 -0
- package/dist/modules/sale_backend/screens/invoicing-policy-create.js +38 -0
- package/dist/modules/sale_backend/screens/invoicing-policy-create.js.map +1 -0
- package/dist/modules/sale_backend/screens/order-detail.d.ts +43 -0
- package/dist/modules/sale_backend/screens/order-detail.d.ts.map +1 -0
- package/dist/modules/sale_backend/screens/order-detail.js +226 -0
- package/dist/modules/sale_backend/screens/order-detail.js.map +1 -0
- package/dist/modules/sale_backend/screens/overview.d.ts +31 -0
- package/dist/modules/sale_backend/screens/overview.d.ts.map +1 -0
- package/dist/modules/sale_backend/screens/overview.js +73 -0
- package/dist/modules/sale_backend/screens/overview.js.map +1 -0
- package/dist/modules/sale_backend/screens/quotation-create.d.ts +13 -0
- package/dist/modules/sale_backend/screens/quotation-create.d.ts.map +1 -0
- package/dist/modules/sale_backend/screens/quotation-create.js +19 -0
- package/dist/modules/sale_backend/screens/quotation-create.js.map +1 -0
- package/dist/modules/sale_backend/screens/quotations-list.d.ts +25 -0
- package/dist/modules/sale_backend/screens/quotations-list.d.ts.map +1 -0
- package/dist/modules/sale_backend/screens/quotations-list.js +96 -0
- package/dist/modules/sale_backend/screens/quotations-list.js.map +1 -0
- package/dist/modules/sale_backend/screens/sales-orders-list.d.ts +25 -0
- package/dist/modules/sale_backend/screens/sales-orders-list.d.ts.map +1 -0
- package/dist/modules/sale_backend/screens/sales-orders-list.js +100 -0
- package/dist/modules/sale_backend/screens/sales-orders-list.js.map +1 -0
- package/dist/modules/sale_backend/screens/shared.d.ts +4 -0
- package/dist/modules/sale_backend/screens/shared.d.ts.map +1 -0
- package/dist/modules/sale_backend/screens/shared.js +4 -0
- package/dist/modules/sale_backend/screens/shared.js.map +1 -0
- package/dist/modules/sale_mail_backend/index.d.ts.map +1 -1
- package/dist/modules/sale_mail_backend/index.js +0 -1
- package/dist/modules/sale_mail_backend/index.js.map +1 -1
- package/dist/modules/sale_staff_channel/channel-routes.d.ts +2 -0
- package/dist/modules/sale_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/sale_staff_channel/channel-routes.js +285 -0
- package/dist/modules/sale_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/sale_staff_channel/index.d.ts +7 -0
- package/dist/modules/sale_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/sale_staff_channel/index.js +44 -0
- package/dist/modules/sale_staff_channel/index.js.map +1 -0
- package/dist/modules/sale_staff_channel/order-routes.d.ts +2 -0
- package/dist/modules/sale_staff_channel/order-routes.d.ts.map +1 -0
- package/dist/modules/sale_staff_channel/order-routes.js +647 -0
- package/dist/modules/sale_staff_channel/order-routes.js.map +1 -0
- package/dist/modules/sale_staff_channel/product-routes.d.ts +2 -0
- package/dist/modules/sale_staff_channel/product-routes.d.ts.map +1 -0
- package/dist/modules/sale_staff_channel/product-routes.js +183 -0
- package/dist/modules/sale_staff_channel/product-routes.js.map +1 -0
- package/dist/modules/stock/functions.d.ts.map +1 -1
- package/dist/modules/stock/functions.js +1239 -332
- package/dist/modules/stock/functions.js.map +1 -1
- package/dist/modules/stock/index.d.ts +2 -0
- package/dist/modules/stock/index.d.ts.map +1 -1
- package/dist/modules/stock/index.js +29 -6
- package/dist/modules/stock/index.js.map +1 -1
- package/dist/modules/stock/models.d.ts.map +1 -1
- package/dist/modules/stock/models.js +1 -0
- package/dist/modules/stock/models.js.map +1 -1
- package/dist/modules/stock/reports.d.ts +4 -0
- package/dist/modules/stock/reports.d.ts.map +1 -0
- package/dist/modules/stock/reports.js +100 -0
- package/dist/modules/stock/reports.js.map +1 -0
- package/dist/modules/stock/routing.d.ts +1 -1
- package/dist/modules/stock/routing.d.ts.map +1 -1
- package/dist/modules/stock/routing.js +35 -30
- package/dist/modules/stock/routing.js.map +1 -1
- package/dist/modules/stock/scope.d.ts +23 -0
- package/dist/modules/stock/scope.d.ts.map +1 -0
- package/dist/modules/stock/scope.js +26 -0
- package/dist/modules/stock/scope.js.map +1 -0
- package/dist/modules/stock/units.d.ts +14 -0
- package/dist/modules/stock/units.d.ts.map +1 -0
- package/dist/modules/stock/units.js +50 -0
- package/dist/modules/stock/units.js.map +1 -0
- package/dist/modules/stock_activity_backend/index.d.ts.map +1 -1
- package/dist/modules/stock_activity_backend/index.js +0 -1
- package/dist/modules/stock_activity_backend/index.js.map +1 -1
- package/dist/modules/stock_backend/client/editor-view.d.mts.map +1 -1
- package/dist/modules/stock_backend/client/editor-view.mjs +12 -10
- package/dist/modules/stock_backend/client/editor-view.mjs.map +1 -1
- package/dist/modules/stock_backend/index.js +27 -20
- package/dist/modules/stock_backend/index.js.map +1 -1
- package/dist/modules/stock_backend/routes.d.ts.map +1 -1
- package/dist/modules/stock_backend/routes.js +485 -232
- package/dist/modules/stock_backend/routes.js.map +1 -1
- package/dist/modules/stock_backend/screens/forecast.d.ts +28 -0
- package/dist/modules/stock_backend/screens/forecast.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/forecast.js +108 -0
- package/dist/modules/stock_backend/screens/forecast.js.map +1 -0
- package/dist/modules/stock_backend/screens/index.d.ts +22 -0
- package/dist/modules/stock_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/index.js +22 -0
- package/dist/modules/stock_backend/screens/index.js.map +1 -0
- package/dist/modules/stock_backend/screens/inventory.d.ts +27 -0
- package/dist/modules/stock_backend/screens/inventory.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/inventory.js +128 -0
- package/dist/modules/stock_backend/screens/inventory.js.map +1 -0
- package/dist/modules/stock_backend/screens/location-create.d.ts +15 -0
- package/dist/modules/stock_backend/screens/location-create.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/location-create.js +75 -0
- package/dist/modules/stock_backend/screens/location-create.js.map +1 -0
- package/dist/modules/stock_backend/screens/locations-list.d.ts +21 -0
- package/dist/modules/stock_backend/screens/locations-list.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/locations-list.js +62 -0
- package/dist/modules/stock_backend/screens/locations-list.js.map +1 -0
- package/dist/modules/stock_backend/screens/lot-create.d.ts +14 -0
- package/dist/modules/stock_backend/screens/lot-create.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/lot-create.js +60 -0
- package/dist/modules/stock_backend/screens/lot-create.js.map +1 -0
- package/dist/modules/stock_backend/screens/lot-detail.d.ts +30 -0
- package/dist/modules/stock_backend/screens/lot-detail.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/lot-detail.js +84 -0
- package/dist/modules/stock_backend/screens/lot-detail.js.map +1 -0
- package/dist/modules/stock_backend/screens/lots-list.d.ts +25 -0
- package/dist/modules/stock_backend/screens/lots-list.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/lots-list.js +54 -0
- package/dist/modules/stock_backend/screens/lots-list.js.map +1 -0
- package/dist/modules/stock_backend/screens/picking-type-create.d.ts +15 -0
- package/dist/modules/stock_backend/screens/picking-type-create.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/picking-type-create.js +89 -0
- package/dist/modules/stock_backend/screens/picking-type-create.js.map +1 -0
- package/dist/modules/stock_backend/screens/picking-types-list.d.ts +22 -0
- package/dist/modules/stock_backend/screens/picking-types-list.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/picking-types-list.js +80 -0
- package/dist/modules/stock_backend/screens/picking-types-list.js.map +1 -0
- package/dist/modules/stock_backend/screens/replenishment-create.d.ts +17 -0
- package/dist/modules/stock_backend/screens/replenishment-create.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/replenishment-create.js +74 -0
- package/dist/modules/stock_backend/screens/replenishment-create.js.map +1 -0
- package/dist/modules/stock_backend/screens/replenishment-list.d.ts +29 -0
- package/dist/modules/stock_backend/screens/replenishment-list.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/replenishment-list.js +84 -0
- package/dist/modules/stock_backend/screens/replenishment-list.js.map +1 -0
- package/dist/modules/stock_backend/screens/shared.d.ts +12 -0
- package/dist/modules/stock_backend/screens/shared.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/shared.js +29 -0
- package/dist/modules/stock_backend/screens/shared.js.map +1 -0
- package/dist/modules/stock_backend/screens/stock-route-create.d.ts +13 -0
- package/dist/modules/stock_backend/screens/stock-route-create.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/stock-route-create.js +52 -0
- package/dist/modules/stock_backend/screens/stock-route-create.js.map +1 -0
- package/dist/modules/stock_backend/screens/stock-route-detail.d.ts +30 -0
- package/dist/modules/stock_backend/screens/stock-route-detail.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/stock-route-detail.js +131 -0
- package/dist/modules/stock_backend/screens/stock-route-detail.js.map +1 -0
- package/dist/modules/stock_backend/screens/stock-routes-list.d.ts +22 -0
- package/dist/modules/stock_backend/screens/stock-routes-list.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/stock-routes-list.js +51 -0
- package/dist/modules/stock_backend/screens/stock-routes-list.js.map +1 -0
- package/dist/modules/stock_backend/screens/stock.d.ts +7 -0
- package/dist/modules/stock_backend/screens/stock.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/stock.js +13 -0
- package/dist/modules/stock_backend/screens/stock.js.map +1 -0
- package/dist/modules/stock_backend/screens/transfer-create.d.ts +13 -0
- package/dist/modules/stock_backend/screens/transfer-create.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/transfer-create.js +38 -0
- package/dist/modules/stock_backend/screens/transfer-create.js.map +1 -0
- package/dist/modules/stock_backend/screens/transfer-detail.d.ts +27 -0
- package/dist/modules/stock_backend/screens/transfer-detail.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/transfer-detail.js +91 -0
- package/dist/modules/stock_backend/screens/transfer-detail.js.map +1 -0
- package/dist/modules/stock_backend/screens/transfers-list.d.ts +25 -0
- package/dist/modules/stock_backend/screens/transfers-list.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/transfers-list.js +81 -0
- package/dist/modules/stock_backend/screens/transfers-list.js.map +1 -0
- package/dist/modules/stock_backend/screens/warehouse-create.d.ts +13 -0
- package/dist/modules/stock_backend/screens/warehouse-create.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/warehouse-create.js +79 -0
- package/dist/modules/stock_backend/screens/warehouse-create.js.map +1 -0
- package/dist/modules/stock_backend/screens/warehouses-list.d.ts +21 -0
- package/dist/modules/stock_backend/screens/warehouses-list.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens/warehouses-list.js +60 -0
- package/dist/modules/stock_backend/screens/warehouses-list.js.map +1 -0
- package/dist/modules/stock_lot_activity_backend/index.d.ts.map +1 -1
- package/dist/modules/stock_lot_activity_backend/index.js +0 -1
- package/dist/modules/stock_lot_activity_backend/index.js.map +1 -1
- package/dist/modules/stock_lot_mail_backend/index.d.ts.map +1 -1
- package/dist/modules/stock_lot_mail_backend/index.js +0 -1
- package/dist/modules/stock_lot_mail_backend/index.js.map +1 -1
- package/dist/modules/stock_mail_backend/index.d.ts.map +1 -1
- package/dist/modules/stock_mail_backend/index.js +0 -1
- package/dist/modules/stock_mail_backend/index.js.map +1 -1
- package/dist/modules/stock_mail_inbound/index.d.ts.map +1 -1
- package/dist/modules/stock_mail_inbound/index.js +0 -2
- package/dist/modules/stock_mail_inbound/index.js.map +1 -1
- package/dist/modules/stock_staff_channel/channel-routes.d.ts +656 -0
- package/dist/modules/stock_staff_channel/channel-routes.d.ts.map +1 -0
- package/dist/modules/stock_staff_channel/channel-routes.js +445 -0
- package/dist/modules/stock_staff_channel/channel-routes.js.map +1 -0
- package/dist/modules/stock_staff_channel/functions.d.ts +3 -0
- package/dist/modules/stock_staff_channel/functions.d.ts.map +1 -0
- package/dist/modules/stock_staff_channel/functions.js +954 -0
- package/dist/modules/stock_staff_channel/functions.js.map +1 -0
- package/dist/modules/stock_staff_channel/index.d.ts +8 -0
- package/dist/modules/stock_staff_channel/index.d.ts.map +1 -0
- package/dist/modules/stock_staff_channel/index.js +37 -0
- package/dist/modules/stock_staff_channel/index.js.map +1 -0
- package/dist/modules/stock_staff_channel/models.d.ts +4 -0
- package/dist/modules/stock_staff_channel/models.d.ts.map +1 -0
- package/dist/modules/stock_staff_channel/models.js +119 -0
- package/dist/modules/stock_staff_channel/models.js.map +1 -0
- package/dist/modules/stock_staff_channel/operation-routes.d.ts +2 -0
- package/dist/modules/stock_staff_channel/operation-routes.d.ts.map +1 -0
- package/dist/modules/stock_staff_channel/operation-routes.js +1258 -0
- package/dist/modules/stock_staff_channel/operation-routes.js.map +1 -0
- package/dist/modules/storage/functions.d.ts.map +1 -1
- package/dist/modules/storage/functions.js +18 -5
- package/dist/modules/storage/functions.js.map +1 -1
- package/dist/modules/storage/index.js +0 -1
- package/dist/modules/storage/index.js.map +1 -1
- package/dist/modules/storage/jobs.d.ts +21 -1
- package/dist/modules/storage/jobs.d.ts.map +1 -1
- package/dist/modules/storage/jobs.js +142 -2
- package/dist/modules/storage/jobs.js.map +1 -1
- package/dist/modules/storage/models.d.ts.map +1 -1
- package/dist/modules/storage/models.js +2 -0
- package/dist/modules/storage/models.js.map +1 -1
- package/dist/modules/storage/policy.d.ts +5 -0
- package/dist/modules/storage/policy.d.ts.map +1 -0
- package/dist/modules/storage/policy.js +13 -0
- package/dist/modules/storage/policy.js.map +1 -0
- package/dist/modules/storage/routes.d.ts +1 -0
- package/dist/modules/storage/routes.d.ts.map +1 -1
- package/dist/modules/storage/routes.js +19 -15
- package/dist/modules/storage/routes.js.map +1 -1
- package/dist/modules/uom/convert.d.ts +1 -1
- package/dist/modules/uom/convert.js +2 -2
- package/dist/modules/uom/convert.js.map +1 -1
- package/dist/modules/uom/functions.d.ts.map +1 -1
- package/dist/modules/uom/functions.js +39 -4
- package/dist/modules/uom/functions.js.map +1 -1
- package/dist/modules/uom/index.d.ts.map +1 -1
- package/dist/modules/uom/index.js +1 -2
- package/dist/modules/uom/index.js.map +1 -1
- package/dist/modules/uom/messages.js +2 -2
- package/dist/modules/uom/messages.js.map +1 -1
- package/dist/modules/uom/models.d.ts +1 -1
- package/dist/modules/uom/models.d.ts.map +1 -1
- package/dist/modules/uom/models.js +1 -1
- package/dist/modules/uom/models.js.map +1 -1
- package/dist/modules/user/authorization.d.ts +80 -0
- package/dist/modules/user/authorization.d.ts.map +1 -0
- package/dist/modules/user/authorization.js +1039 -0
- package/dist/modules/user/authorization.js.map +1 -0
- package/dist/modules/user/functions.d.ts.map +1 -1
- package/dist/modules/user/functions.js +188 -32
- package/dist/modules/user/functions.js.map +1 -1
- package/dist/modules/user/index.d.ts +4 -1
- package/dist/modules/user/index.d.ts.map +1 -1
- package/dist/modules/user/index.js +2 -3
- package/dist/modules/user/index.js.map +1 -1
- package/dist/modules/user/login.d.ts +1 -27
- package/dist/modules/user/login.d.ts.map +1 -1
- package/dist/modules/user/login.js +5 -45
- package/dist/modules/user/login.js.map +1 -1
- package/dist/modules/user/messages.d.ts +6 -0
- package/dist/modules/user/messages.d.ts.map +1 -1
- package/dist/modules/user/messages.js +6 -0
- package/dist/modules/user/messages.js.map +1 -1
- package/dist/modules/user/models.d.ts +1 -1
- package/dist/modules/user/models.d.ts.map +1 -1
- package/dist/modules/user/models.js +73 -9
- package/dist/modules/user/models.js.map +1 -1
- package/dist/modules/user/relations.d.ts.map +1 -1
- package/dist/modules/user/relations.js +6 -0
- package/dist/modules/user/relations.js.map +1 -1
- package/dist/modules/user/roles.d.ts +11 -1
- package/dist/modules/user/roles.d.ts.map +1 -1
- package/dist/modules/user/roles.js +402 -117
- package/dist/modules/user/roles.js.map +1 -1
- package/dist/modules/user/routes.js +1 -1
- package/dist/modules/user/routes.js.map +1 -1
- package/dist/modules/user_backend/index.d.ts +1 -1
- package/dist/modules/user_backend/index.d.ts.map +1 -1
- package/dist/modules/user_backend/index.js +1 -3
- package/dist/modules/user_backend/index.js.map +1 -1
- package/dist/modules/user_backend/messages.d.ts +64 -0
- package/dist/modules/user_backend/messages.d.ts.map +1 -1
- package/dist/modules/user_backend/messages.js +64 -0
- package/dist/modules/user_backend/messages.js.map +1 -1
- package/dist/modules/user_backend/routes.d.ts.map +1 -1
- package/dist/modules/user_backend/routes.js +379 -69
- package/dist/modules/user_backend/routes.js.map +1 -1
- package/dist/modules/user_backend/screens/index.d.ts +11 -0
- package/dist/modules/user_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/user_backend/screens/index.js +8 -0
- package/dist/modules/user_backend/screens/index.js.map +1 -0
- package/dist/modules/user_backend/screens/presets-form.d.ts +16 -0
- package/dist/modules/user_backend/screens/presets-form.d.ts.map +1 -0
- package/dist/modules/user_backend/screens/presets-form.js +37 -0
- package/dist/modules/user_backend/screens/presets-form.js.map +1 -0
- package/dist/modules/user_backend/screens/profile-form.d.ts +14 -0
- package/dist/modules/user_backend/screens/profile-form.d.ts.map +1 -0
- package/dist/modules/user_backend/screens/profile-form.js +37 -0
- package/dist/modules/user_backend/screens/profile-form.js.map +1 -0
- package/dist/modules/user_backend/screens/role-form.d.ts +21 -0
- package/dist/modules/user_backend/screens/role-form.d.ts.map +1 -0
- package/dist/modules/user_backend/screens/role-form.js +93 -0
- package/dist/modules/user_backend/screens/role-form.js.map +1 -0
- package/dist/modules/user_backend/screens/roles-list.d.ts +15 -0
- package/dist/modules/user_backend/screens/roles-list.d.ts.map +1 -0
- package/dist/modules/user_backend/screens/roles-list.js +48 -0
- package/dist/modules/user_backend/screens/roles-list.js.map +1 -0
- package/dist/modules/user_backend/screens/sessions.d.ts +5 -0
- package/dist/modules/user_backend/screens/sessions.d.ts.map +1 -0
- package/dist/modules/user_backend/screens/sessions.js +35 -0
- package/dist/modules/user_backend/screens/sessions.js.map +1 -0
- package/dist/modules/user_backend/screens/types.d.ts +68 -0
- package/dist/modules/user_backend/screens/types.d.ts.map +1 -0
- package/dist/modules/user_backend/screens/types.js +2 -0
- package/dist/modules/user_backend/screens/types.js.map +1 -0
- package/dist/modules/user_backend/screens/user-form.d.ts +56 -0
- package/dist/modules/user_backend/screens/user-form.d.ts.map +1 -0
- package/dist/modules/user_backend/screens/user-form.js +202 -0
- package/dist/modules/user_backend/screens/user-form.js.map +1 -0
- package/dist/modules/user_backend/screens/users-list.d.ts +17 -0
- package/dist/modules/user_backend/screens/users-list.d.ts.map +1 -0
- package/dist/modules/user_backend/screens/users-list.js +56 -0
- package/dist/modules/user_backend/screens/users-list.js.map +1 -0
- package/dist/modules/website/cms.d.ts +18 -1
- package/dist/modules/website/cms.d.ts.map +1 -1
- package/dist/modules/website/cms.js +655 -43
- package/dist/modules/website/cms.js.map +1 -1
- package/dist/modules/website/customer.d.ts.map +1 -1
- package/dist/modules/website/customer.js +249 -1
- package/dist/modules/website/customer.js.map +1 -1
- package/dist/modules/website/index.d.ts.map +1 -1
- package/dist/modules/website/index.js +38 -4
- package/dist/modules/website/index.js.map +1 -1
- package/dist/modules/website/media-usage.d.ts +38 -0
- package/dist/modules/website/media-usage.d.ts.map +1 -0
- package/dist/modules/website/media-usage.js +87 -0
- package/dist/modules/website/media-usage.js.map +1 -0
- package/dist/modules/website/models.d.ts.map +1 -1
- package/dist/modules/website/models.js +101 -0
- package/dist/modules/website/models.js.map +1 -1
- package/dist/modules/website/paths.d.ts +31 -0
- package/dist/modules/website/paths.d.ts.map +1 -0
- package/dist/modules/website/paths.js +48 -0
- package/dist/modules/website/paths.js.map +1 -0
- package/dist/modules/website/publication.d.ts +3 -0
- package/dist/modules/website/publication.d.ts.map +1 -0
- package/dist/modules/website/publication.js +366 -0
- package/dist/modules/website/publication.js.map +1 -0
- package/dist/modules/website/renderable.d.ts +32 -0
- package/dist/modules/website/renderable.d.ts.map +1 -0
- package/dist/modules/website/renderable.js +59 -0
- package/dist/modules/website/renderable.js.map +1 -0
- package/dist/modules/website/sections.d.ts.map +1 -1
- package/dist/modules/website/sections.js +25 -1
- package/dist/modules/website/sections.js.map +1 -1
- package/dist/modules/website_backend/csv.d.ts +23 -0
- package/dist/modules/website_backend/csv.d.ts.map +1 -0
- package/dist/modules/website_backend/csv.js +31 -0
- package/dist/modules/website_backend/csv.js.map +1 -0
- package/dist/modules/website_backend/index.js +398 -2
- package/dist/modules/website_backend/index.js.map +1 -1
- package/dist/modules/website_backend/menus.d.ts.map +1 -1
- package/dist/modules/website_backend/menus.js +39 -6
- package/dist/modules/website_backend/menus.js.map +1 -1
- package/dist/modules/website_backend/routes.d.ts.map +1 -1
- package/dist/modules/website_backend/routes.js +1079 -138
- package/dist/modules/website_backend/routes.js.map +1 -1
- package/dist/modules/website_backend/screens/index.d.ts +425 -0
- package/dist/modules/website_backend/screens/index.d.ts.map +1 -0
- package/dist/modules/website_backend/screens/index.js +1778 -0
- package/dist/modules/website_backend/screens/index.js.map +1 -0
- package/dist/modules/website_backend/screens/page-frame.d.ts +16 -0
- package/dist/modules/website_backend/screens/page-frame.d.ts.map +1 -0
- package/dist/modules/website_backend/screens/page-frame.js +13 -0
- package/dist/modules/website_backend/screens/page-frame.js.map +1 -0
- package/dist/modules/website_form/audit.d.ts +27 -0
- package/dist/modules/website_form/audit.d.ts.map +1 -0
- package/dist/modules/website_form/audit.js +30 -0
- package/dist/modules/website_form/audit.js.map +1 -0
- package/dist/modules/website_form/functions.d.ts.map +1 -1
- package/dist/modules/website_form/functions.js +416 -12
- package/dist/modules/website_form/functions.js.map +1 -1
- package/dist/modules/website_form/index.js +24 -2
- package/dist/modules/website_form/index.js.map +1 -1
- package/dist/modules/website_form/jobs.d.ts +11 -0
- package/dist/modules/website_form/jobs.d.ts.map +1 -0
- package/dist/modules/website_form/jobs.js +80 -0
- package/dist/modules/website_form/jobs.js.map +1 -0
- package/dist/modules/website_form/models.d.ts.map +1 -1
- package/dist/modules/website_form/models.js +89 -0
- package/dist/modules/website_form/models.js.map +1 -1
- package/dist/modules/website_form/purge.d.ts +22 -0
- package/dist/modules/website_form/purge.d.ts.map +1 -0
- package/dist/modules/website_form/purge.js +59 -0
- package/dist/modules/website_form/purge.js.map +1 -0
- package/dist/modules/website_form/retention.d.ts +70 -0
- package/dist/modules/website_form/retention.d.ts.map +1 -0
- package/dist/modules/website_form/retention.js +145 -0
- package/dist/modules/website_form/retention.js.map +1 -0
- package/dist/modules/website_form/routes.d.ts.map +1 -1
- package/dist/modules/website_form/routes.js +37 -3
- package/dist/modules/website_form/routes.js.map +1 -1
- package/dist/modules/website_form_mail/index.d.ts +36 -0
- package/dist/modules/website_form_mail/index.d.ts.map +1 -0
- package/dist/modules/website_form_mail/index.js +137 -0
- package/dist/modules/website_form_mail/index.js.map +1 -0
- package/dist/modules/website_hospitality/channel-routes.d.ts +2 -0
- package/dist/modules/website_hospitality/channel-routes.d.ts.map +1 -0
- package/dist/modules/website_hospitality/channel-routes.js +355 -0
- package/dist/modules/website_hospitality/channel-routes.js.map +1 -0
- package/dist/modules/website_hospitality/functions.d.ts.map +1 -1
- package/dist/modules/website_hospitality/functions.js +27 -2
- package/dist/modules/website_hospitality/functions.js.map +1 -1
- package/dist/modules/website_hospitality/index.js +4 -3
- package/dist/modules/website_hospitality/index.js.map +1 -1
- package/dist/modules/website_hospitality/models.d.ts.map +1 -1
- package/dist/modules/website_hospitality/models.js +2 -0
- package/dist/modules/website_hospitality/models.js.map +1 -1
- package/dist/modules/website_menu/functions.d.ts.map +1 -1
- package/dist/modules/website_menu/functions.js +235 -9
- package/dist/modules/website_menu/functions.js.map +1 -1
- package/dist/modules/website_menu/index.js +8 -1
- package/dist/modules/website_menu/index.js.map +1 -1
- package/dist/modules/website_retail/channel-routes.d.ts +2 -0
- package/dist/modules/website_retail/channel-routes.d.ts.map +1 -0
- package/dist/modules/website_retail/channel-routes.js +305 -0
- package/dist/modules/website_retail/channel-routes.js.map +1 -0
- package/dist/modules/website_retail/functions.d.ts +14 -1
- package/dist/modules/website_retail/functions.d.ts.map +1 -1
- package/dist/modules/website_retail/functions.js +6 -6
- package/dist/modules/website_retail/functions.js.map +1 -1
- package/dist/modules/website_retail/index.js +24 -3
- package/dist/modules/website_retail/index.js.map +1 -1
- package/dist/modules/website_retail/models.d.ts.map +1 -1
- package/dist/modules/website_retail/models.js +30 -0
- package/dist/modules/website_retail/models.js.map +1 -1
- package/dist/modules/website_retail/online.d.ts +3 -0
- package/dist/modules/website_retail/online.d.ts.map +1 -0
- package/dist/modules/website_retail/online.js +710 -0
- package/dist/modules/website_retail/online.js.map +1 -0
- package/dist/modules/website_search/client/search.d.mts +16 -2
- package/dist/modules/website_search/client/search.d.mts.map +1 -1
- package/dist/modules/website_search/client/search.mjs +112 -6
- package/dist/modules/website_search/client/search.mjs.map +1 -1
- package/dist/modules/website_search/functions.d.ts +3 -0
- package/dist/modules/website_search/functions.d.ts.map +1 -0
- package/dist/modules/website_search/functions.js +129 -0
- package/dist/modules/website_search/functions.js.map +1 -0
- package/dist/modules/website_search/index.js +6 -1
- package/dist/modules/website_search/index.js.map +1 -1
- package/dist/modules/website_search/islands.d.ts +6 -0
- package/dist/modules/website_search/islands.d.ts.map +1 -1
- package/dist/modules/website_search/islands.js +8 -2
- package/dist/modules/website_search/islands.js.map +1 -1
- package/dist/modules/website_search/jobs.d.ts +3 -0
- package/dist/modules/website_search/jobs.d.ts.map +1 -0
- package/dist/modules/website_search/jobs.js +101 -0
- package/dist/modules/website_search/jobs.js.map +1 -0
- package/dist/modules/website_search/models.d.ts +15 -0
- package/dist/modules/website_search/models.d.ts.map +1 -0
- package/dist/modules/website_search/models.js +58 -0
- package/dist/modules/website_search/models.js.map +1 -0
- package/dist/modules/website_search/rebuild.d.ts +33 -0
- package/dist/modules/website_search/rebuild.d.ts.map +1 -0
- package/dist/modules/website_search/rebuild.js +125 -0
- package/dist/modules/website_search/rebuild.js.map +1 -0
- package/dist/modules/website_seo/functions.d.ts +3 -0
- package/dist/modules/website_seo/functions.d.ts.map +1 -0
- package/dist/modules/website_seo/functions.js +164 -0
- package/dist/modules/website_seo/functions.js.map +1 -0
- package/dist/modules/website_seo/index.js +15 -5
- package/dist/modules/website_seo/index.js.map +1 -1
- package/dist/modules/website_seo/projection.d.ts +52 -0
- package/dist/modules/website_seo/projection.d.ts.map +1 -0
- package/dist/modules/website_seo/projection.js +129 -0
- package/dist/modules/website_seo/projection.js.map +1 -0
- package/dist/modules/website_seo/routes.d.ts +3 -0
- package/dist/modules/website_seo/routes.d.ts.map +1 -0
- package/dist/modules/website_seo/routes.js +56 -0
- package/dist/modules/website_seo/routes.js.map +1 -0
- package/dist/permission-catalogue.d.ts +5 -0
- package/dist/permission-catalogue.d.ts.map +1 -0
- package/dist/permission-catalogue.js +1518 -0
- package/dist/permission-catalogue.js.map +1 -0
- package/dist/scaffold/index.d.ts +2 -0
- package/dist/scaffold/index.d.ts.map +1 -0
- package/dist/scaffold/index.js +31 -0
- package/dist/scaffold/index.js.map +1 -0
- package/dist/scaffold/templates/README.md.tmpl +17 -0
- package/dist/scaffold/templates/gitignore.tmpl +2 -0
- package/dist/scaffold/templates/ket.workspace.mjs.tmpl +1 -0
- package/dist/scaffold/templates/package.json.tmpl +15 -0
- package/dist/themes/hospitality/templates/website.columns.ktl +4 -0
- package/dist/themes/paper/templates/website.columns.ktl +4 -0
- package/dist/ui/actions.d.ts +4 -0
- package/dist/ui/actions.d.ts.map +1 -1
- package/dist/ui/actions.js +1 -1
- package/dist/ui/actions.js.map +1 -1
- package/dist/ui/activity.d.ts +1 -1
- package/dist/ui/activity.d.ts.map +1 -1
- package/dist/ui/activity.js +3 -5
- package/dist/ui/activity.js.map +1 -1
- package/dist/ui/attachments.js +1 -1
- package/dist/ui/attachments.js.map +1 -1
- package/dist/ui/auth.d.ts +36 -0
- package/dist/ui/auth.d.ts.map +1 -1
- package/dist/ui/auth.js +55 -0
- package/dist/ui/auth.js.map +1 -1
- package/dist/ui/board-page.d.ts +6 -0
- package/dist/ui/board-page.d.ts.map +1 -0
- package/dist/ui/board-page.js +4 -0
- package/dist/ui/board-page.js.map +1 -0
- package/dist/ui/charts.d.ts +83 -0
- package/dist/ui/charts.d.ts.map +1 -0
- package/dist/ui/charts.js +105 -0
- package/dist/ui/charts.js.map +1 -0
- package/dist/ui/chrome.d.ts +45 -2
- package/dist/ui/chrome.d.ts.map +1 -1
- package/dist/ui/chrome.js +47 -5
- package/dist/ui/chrome.js.map +1 -1
- package/dist/ui/client/activity-view.mjs +7 -7
- package/dist/ui/client/activity-view.mjs.map +1 -1
- package/dist/ui/client/activity.css +6 -34
- package/dist/ui/client/calendar-view.d.mts.map +1 -1
- package/dist/ui/client/calendar-view.mjs +7 -6
- package/dist/ui/client/calendar-view.mjs.map +1 -1
- package/dist/ui/client/calendar.css +4 -14
- package/dist/ui/client/chart-view.d.ts +51 -0
- package/dist/ui/client/chart-view.d.ts.map +1 -0
- package/dist/ui/client/chart-view.js +192 -0
- package/dist/ui/client/chart-view.js.map +1 -0
- package/dist/ui/client/flow-app.css +387 -0
- package/dist/ui/client/flow-board-view.d.mts +8 -0
- package/dist/ui/client/flow-board-view.d.mts.map +1 -0
- package/dist/ui/client/flow-board-view.mjs +161 -0
- package/dist/ui/client/flow-board-view.mjs.map +1 -0
- package/dist/ui/client/flow-board.d.mts +3 -0
- package/dist/ui/client/flow-board.d.mts.map +1 -0
- package/dist/ui/client/flow-board.mjs +7 -0
- package/dist/ui/client/flow-board.mjs.map +1 -0
- package/dist/ui/client/flow-map-view.d.mts +2 -0
- package/dist/ui/client/flow-map-view.d.mts.map +1 -0
- package/dist/ui/client/flow-map-view.mjs +235 -0
- package/dist/ui/client/flow-map-view.mjs.map +1 -0
- package/dist/ui/client/flow-map.d.mts +3 -0
- package/dist/ui/client/flow-map.d.mts.map +1 -0
- package/dist/ui/client/flow-map.mjs +7 -0
- package/dist/ui/client/flow-map.mjs.map +1 -0
- package/dist/ui/client/live-doc-blocks.d.ts +19 -0
- package/dist/ui/client/live-doc-blocks.d.ts.map +1 -0
- package/dist/ui/client/live-doc-blocks.js +23 -0
- package/dist/ui/client/live-doc-blocks.js.map +1 -0
- package/dist/ui/client/live-doc-markdown.d.ts +18 -0
- package/dist/ui/client/live-doc-markdown.d.ts.map +1 -0
- package/dist/ui/client/live-doc-markdown.js +175 -0
- package/dist/ui/client/live-doc-markdown.js.map +1 -0
- package/dist/ui/client/live-doc-shell.d.ts +101 -0
- package/dist/ui/client/live-doc-shell.d.ts.map +1 -0
- package/dist/ui/client/live-doc-shell.js +251 -0
- package/dist/ui/client/live-doc-shell.js.map +1 -0
- package/dist/ui/client/live-doc-view.d.ts +33 -0
- package/dist/ui/client/live-doc-view.d.ts.map +1 -0
- package/dist/ui/client/live-doc-view.js +1237 -0
- package/dist/ui/client/live-doc-view.js.map +1 -0
- package/dist/ui/client/live-doc.css +243 -0
- package/dist/ui/client/live-doc.d.mts +12 -0
- package/dist/ui/client/live-doc.d.mts.map +1 -0
- package/dist/ui/client/live-doc.mjs +11 -0
- package/dist/ui/client/live-doc.mjs.map +7 -0
- package/dist/ui/client/mail-bundle.d.mts +9 -0
- package/dist/ui/client/mail-bundle.d.mts.map +1 -0
- package/dist/ui/client/mail-bundle.mjs +50 -0
- package/dist/ui/client/mail-bundle.mjs.map +7 -0
- package/dist/ui/client/mail-entry.d.mts +11 -0
- package/dist/ui/client/mail-entry.d.mts.map +1 -0
- package/dist/ui/client/mail-entry.mjs +9 -0
- package/dist/ui/client/mail-entry.mjs.map +1 -0
- package/dist/ui/client/mail-view.d.mts.map +1 -1
- package/dist/ui/client/mail-view.mjs +5 -3
- package/dist/ui/client/mail-view.mjs.map +1 -1
- package/dist/ui/client/mail.css +3 -3
- package/dist/ui/client/relation-select-view.d.ts +77 -0
- package/dist/ui/client/relation-select-view.d.ts.map +1 -0
- package/dist/ui/client/relation-select-view.js +216 -0
- package/dist/ui/client/relation-select-view.js.map +1 -0
- package/dist/ui/client/table-selection-view.d.ts +4 -0
- package/dist/ui/client/table-selection-view.d.ts.map +1 -0
- package/dist/ui/client/table-selection-view.js +345 -0
- package/dist/ui/client/table-selection-view.js.map +1 -0
- package/dist/ui/dashboard-page.d.ts +6 -0
- package/dist/ui/dashboard-page.d.ts.map +1 -0
- package/dist/ui/dashboard-page.js +4 -0
- package/dist/ui/dashboard-page.js.map +1 -0
- package/dist/ui/data.d.ts +51 -1
- package/dist/ui/data.d.ts.map +1 -1
- package/dist/ui/data.js +87 -1
- package/dist/ui/data.js.map +1 -1
- package/dist/ui/date-picker.d.ts.map +1 -1
- package/dist/ui/date-picker.js +2 -2
- package/dist/ui/date-picker.js.map +1 -1
- package/dist/ui/form-page.d.ts +6 -0
- package/dist/ui/form-page.d.ts.map +1 -0
- package/dist/ui/form-page.js +5 -0
- package/dist/ui/form-page.js.map +1 -0
- package/dist/ui/form.d.ts +6 -1
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +8 -5
- package/dist/ui/form.js.map +1 -1
- package/dist/ui/format.d.ts +13 -2
- package/dist/ui/format.d.ts.map +1 -1
- package/dist/ui/format.js +28 -7
- package/dist/ui/format.js.map +1 -1
- package/dist/ui/gantt.d.ts +52 -0
- package/dist/ui/gantt.d.ts.map +1 -0
- package/dist/ui/gantt.js +92 -0
- package/dist/ui/gantt.js.map +1 -0
- package/dist/ui/hooks.d.ts.map +1 -1
- package/dist/ui/hooks.js +14 -0
- package/dist/ui/hooks.js.map +1 -1
- package/dist/ui/icons.d.ts.map +1 -1
- package/dist/ui/icons.js +6 -1
- package/dist/ui/icons.js.map +1 -1
- package/dist/ui/index.d.ts +96 -15
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +79 -14
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/layout.d.ts +43 -38
- package/dist/ui/layout.d.ts.map +1 -1
- package/dist/ui/layout.js +29 -37
- package/dist/ui/layout.js.map +1 -1
- package/dist/ui/list-page.d.ts +19 -0
- package/dist/ui/list-page.d.ts.map +1 -0
- package/dist/ui/list-page.js +21 -0
- package/dist/ui/list-page.js.map +1 -0
- package/dist/ui/media.d.ts.map +1 -1
- package/dist/ui/media.js +1 -1
- package/dist/ui/media.js.map +1 -1
- package/dist/ui/modal.d.ts +26 -1
- package/dist/ui/modal.d.ts.map +1 -1
- package/dist/ui/modal.js +18 -2
- package/dist/ui/modal.js.map +1 -1
- package/dist/ui/nav.d.ts +21 -1
- package/dist/ui/nav.d.ts.map +1 -1
- package/dist/ui/nav.js +43 -8
- package/dist/ui/nav.js.map +1 -1
- package/dist/ui/navigation.d.ts +36 -2
- package/dist/ui/navigation.d.ts.map +1 -1
- package/dist/ui/navigation.js +60 -5
- package/dist/ui/navigation.js.map +1 -1
- package/dist/ui/partner.d.ts +18 -0
- package/dist/ui/partner.d.ts.map +1 -0
- package/dist/ui/partner.js +11 -0
- package/dist/ui/partner.js.map +1 -0
- package/dist/ui/primitives.d.ts +28 -10
- package/dist/ui/primitives.d.ts.map +1 -1
- package/dist/ui/primitives.js +21 -7
- package/dist/ui/primitives.js.map +1 -1
- package/dist/ui/product-media.d.ts +47 -0
- package/dist/ui/product-media.d.ts.map +1 -0
- package/dist/ui/product-media.js +67 -0
- package/dist/ui/product-media.js.map +1 -0
- package/dist/ui/product-variants.d.ts +68 -0
- package/dist/ui/product-variants.d.ts.map +1 -0
- package/dist/ui/product-variants.js +81 -0
- package/dist/ui/product-variants.js.map +1 -0
- package/dist/ui/record-detail.d.ts +70 -0
- package/dist/ui/record-detail.d.ts.map +1 -0
- package/dist/ui/record-detail.js +35 -0
- package/dist/ui/record-detail.js.map +1 -0
- package/dist/ui/record-page.d.ts +16 -0
- package/dist/ui/record-page.d.ts.map +1 -0
- package/dist/ui/record-page.js +13 -0
- package/dist/ui/record-page.js.map +1 -0
- package/dist/ui/record.d.ts +15 -3
- package/dist/ui/record.d.ts.map +1 -1
- package/dist/ui/record.js +6 -5
- package/dist/ui/record.js.map +1 -1
- package/dist/ui/state.d.ts +20 -1
- package/dist/ui/state.d.ts.map +1 -1
- package/dist/ui/state.js +17 -0
- package/dist/ui/state.js.map +1 -1
- package/dist/ui/surfaces.d.ts +30 -2
- package/dist/ui/surfaces.d.ts.map +1 -1
- package/dist/ui/surfaces.js +39 -2
- package/dist/ui/surfaces.js.map +1 -1
- package/dist/ui/table.d.ts +25 -2
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.js +10 -6
- package/dist/ui/table.js.map +1 -1
- package/dist/ui/timeframe.d.ts +39 -0
- package/dist/ui/timeframe.d.ts.map +1 -0
- package/dist/ui/timeframe.js +36 -0
- package/dist/ui/timeframe.js.map +1 -0
- package/dist/ui/workspace-page.d.ts +16 -0
- package/dist/ui/workspace-page.d.ts.map +1 -0
- package/dist/ui/workspace-page.js +15 -0
- package/dist/ui/workspace-page.js.map +1 -0
- package/package.json +16 -3
- package/dist/modules/account/tt99.d.ts +0 -30
- package/dist/modules/account/tt99.d.ts.map +0 -1
- package/dist/modules/account/tt99.js +0 -1661
- package/dist/modules/account/tt99.js.map +0 -1
- package/dist/modules/account_backend/accounting-overview-screen.d.ts +0 -18
- package/dist/modules/account_backend/accounting-overview-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/accounting-overview-screen.js +0 -104
- package/dist/modules/account_backend/accounting-overview-screen.js.map +0 -1
- package/dist/modules/account_backend/accounts-screen.d.ts +0 -13
- package/dist/modules/account_backend/accounts-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/accounts-screen.js +0 -49
- package/dist/modules/account_backend/accounts-screen.js.map +0 -1
- package/dist/modules/account_backend/customer-invoices-screen.d.ts +0 -14
- package/dist/modules/account_backend/customer-invoices-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/customer-invoices-screen.js +0 -63
- package/dist/modules/account_backend/customer-invoices-screen.js.map +0 -1
- package/dist/modules/account_backend/general-ledger-screen.d.ts +0 -13
- package/dist/modules/account_backend/general-ledger-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/general-ledger-screen.js +0 -56
- package/dist/modules/account_backend/general-ledger-screen.js.map +0 -1
- package/dist/modules/account_backend/journal-entries-screen.d.ts +0 -14
- package/dist/modules/account_backend/journal-entries-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/journal-entries-screen.js +0 -45
- package/dist/modules/account_backend/journal-entries-screen.js.map +0 -1
- package/dist/modules/account_backend/journals-screen.d.ts +0 -14
- package/dist/modules/account_backend/journals-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/journals-screen.js +0 -53
- package/dist/modules/account_backend/journals-screen.js.map +0 -1
- package/dist/modules/account_backend/move-detail-screen.d.ts +0 -10
- package/dist/modules/account_backend/move-detail-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/move-detail-screen.js +0 -100
- package/dist/modules/account_backend/move-detail-screen.js.map +0 -1
- package/dist/modules/account_backend/partner-ledger-screen.d.ts +0 -14
- package/dist/modules/account_backend/partner-ledger-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/partner-ledger-screen.js +0 -69
- package/dist/modules/account_backend/partner-ledger-screen.js.map +0 -1
- package/dist/modules/account_backend/payment-terms-screen.d.ts +0 -14
- package/dist/modules/account_backend/payment-terms-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/payment-terms-screen.js +0 -40
- package/dist/modules/account_backend/payment-terms-screen.js.map +0 -1
- package/dist/modules/account_backend/payments-screen.d.ts +0 -14
- package/dist/modules/account_backend/payments-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/payments-screen.js +0 -54
- package/dist/modules/account_backend/payments-screen.js.map +0 -1
- package/dist/modules/account_backend/screens.d.ts +0 -7
- package/dist/modules/account_backend/screens.d.ts.map +0 -1
- package/dist/modules/account_backend/screens.js +0 -7
- package/dist/modules/account_backend/screens.js.map +0 -1
- package/dist/modules/account_backend/taxes-screen.d.ts +0 -15
- package/dist/modules/account_backend/taxes-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/taxes-screen.js +0 -73
- package/dist/modules/account_backend/taxes-screen.js.map +0 -1
- package/dist/modules/account_backend/trial-balance-screen.d.ts +0 -13
- package/dist/modules/account_backend/trial-balance-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/trial-balance-screen.js +0 -62
- package/dist/modules/account_backend/trial-balance-screen.js.map +0 -1
- package/dist/modules/account_backend/vendor-bills-screen.d.ts +0 -14
- package/dist/modules/account_backend/vendor-bills-screen.d.ts.map +0 -1
- package/dist/modules/account_backend/vendor-bills-screen.js +0 -59
- package/dist/modules/account_backend/vendor-bills-screen.js.map +0 -1
- package/dist/modules/account_partner_backend/screens.d.ts +0 -16
- package/dist/modules/account_partner_backend/screens.d.ts.map +0 -1
- package/dist/modules/account_partner_backend/screens.js +0 -26
- package/dist/modules/account_partner_backend/screens.js.map +0 -1
- package/dist/modules/activity_backend/screens.d.ts +0 -5
- package/dist/modules/activity_backend/screens.d.ts.map +0 -1
- package/dist/modules/activity_backend/screens.js +0 -52
- package/dist/modules/activity_backend/screens.js.map +0 -1
- package/dist/modules/address_backend/screens.d.ts +0 -31
- package/dist/modules/address_backend/screens.d.ts.map +0 -1
- package/dist/modules/address_backend/screens.js +0 -147
- package/dist/modules/address_backend/screens.js.map +0 -1
- package/dist/modules/backend/design/admin.css +0 -4229
- package/dist/modules/backend/design/client/relation-select-view.d.mts +0 -5
- package/dist/modules/backend/design/client/relation-select-view.d.mts.map +0 -1
- package/dist/modules/backend/design/client/relation-select-view.mjs +0 -335
- package/dist/modules/backend/design/client/relation-select-view.mjs.map +0 -1
- package/dist/modules/calendar_backend/screens.d.ts +0 -5
- package/dist/modules/calendar_backend/screens.d.ts.map +0 -1
- package/dist/modules/calendar_backend/screens.js +0 -4
- package/dist/modules/calendar_backend/screens.js.map +0 -1
- package/dist/modules/company_backend/screens.d.ts +0 -62
- package/dist/modules/company_backend/screens.d.ts.map +0 -1
- package/dist/modules/company_backend/screens.js +0 -268
- package/dist/modules/company_backend/screens.js.map +0 -1
- package/dist/modules/crm_backend/list-search.d.ts +0 -21
- package/dist/modules/crm_backend/list-search.d.ts.map +0 -1
- package/dist/modules/crm_backend/list-search.js +0 -220
- package/dist/modules/crm_backend/list-search.js.map +0 -1
- package/dist/modules/crm_backend/screens.d.ts +0 -32
- package/dist/modules/crm_backend/screens.d.ts.map +0 -1
- package/dist/modules/crm_backend/screens.js +0 -405
- package/dist/modules/crm_backend/screens.js.map +0 -1
- package/dist/modules/hospitality_core/screens.d.ts +0 -773
- package/dist/modules/hospitality_core/screens.d.ts.map +0 -1
- package/dist/modules/hospitality_core/screens.js +0 -4152
- package/dist/modules/hospitality_core/screens.js.map +0 -1
- package/dist/modules/hr_backend/screens.d.ts +0 -9
- package/dist/modules/hr_backend/screens.d.ts.map +0 -1
- package/dist/modules/hr_backend/screens.js +0 -144
- package/dist/modules/hr_backend/screens.js.map +0 -1
- package/dist/modules/loyalty_backend/screens.d.ts +0 -33
- package/dist/modules/loyalty_backend/screens.d.ts.map +0 -1
- package/dist/modules/loyalty_backend/screens.js +0 -562
- package/dist/modules/loyalty_backend/screens.js.map +0 -1
- package/dist/modules/mail_backend/screens.d.ts +0 -5
- package/dist/modules/mail_backend/screens.d.ts.map +0 -1
- package/dist/modules/mail_backend/screens.js +0 -11
- package/dist/modules/mail_backend/screens.js.map +0 -1
- package/dist/modules/mail_inbound_backend/screens.d.ts +0 -5
- package/dist/modules/mail_inbound_backend/screens.d.ts.map +0 -1
- package/dist/modules/mail_inbound_backend/screens.js +0 -25
- package/dist/modules/mail_inbound_backend/screens.js.map +0 -1
- package/dist/modules/mail_transport_backend/screens.d.ts +0 -5
- package/dist/modules/mail_transport_backend/screens.d.ts.map +0 -1
- package/dist/modules/mail_transport_backend/screens.js +0 -35
- package/dist/modules/mail_transport_backend/screens.js.map +0 -1
- package/dist/modules/oauth_backend/screens.d.ts +0 -66
- package/dist/modules/oauth_backend/screens.d.ts.map +0 -1
- package/dist/modules/oauth_backend/screens.js +0 -323
- package/dist/modules/oauth_backend/screens.js.map +0 -1
- package/dist/modules/odoo_collaboration_import/functions.d.ts.map +0 -1
- package/dist/modules/odoo_collaboration_import/functions.js +0 -128
- package/dist/modules/odoo_collaboration_import/functions.js.map +0 -1
- package/dist/modules/odoo_collaboration_import/index.d.ts +0 -6
- package/dist/modules/odoo_collaboration_import/index.d.ts.map +0 -1
- package/dist/modules/odoo_collaboration_import/index.js +0 -31
- package/dist/modules/odoo_collaboration_import/index.js.map +0 -1
- package/dist/modules/odoo_collaboration_import/models.d.ts.map +0 -1
- package/dist/modules/odoo_collaboration_import/models.js +0 -76
- package/dist/modules/odoo_collaboration_import/models.js.map +0 -1
- package/dist/modules/odoo_collaboration_import/operations.d.ts +0 -14
- package/dist/modules/odoo_collaboration_import/operations.d.ts.map +0 -1
- package/dist/modules/odoo_collaboration_import/operations.js +0 -1139
- package/dist/modules/odoo_collaboration_import/operations.js.map +0 -1
- package/dist/modules/odoo_collaboration_import/relations.d.ts.map +0 -1
- package/dist/modules/odoo_collaboration_import/relations.js +0 -19
- package/dist/modules/odoo_collaboration_import/relations.js.map +0 -1
- package/dist/modules/odoo_collaboration_import/types.d.ts +0 -58
- package/dist/modules/odoo_collaboration_import/types.d.ts.map +0 -1
- package/dist/modules/odoo_collaboration_import/types.js.map +0 -1
- package/dist/modules/partner_backend/screens.d.ts +0 -53
- package/dist/modules/partner_backend/screens.d.ts.map +0 -1
- package/dist/modules/partner_backend/screens.js +0 -169
- package/dist/modules/partner_backend/screens.js.map +0 -1
- package/dist/modules/pricing_backend/screens.d.ts +0 -13
- package/dist/modules/pricing_backend/screens.d.ts.map +0 -1
- package/dist/modules/pricing_backend/screens.js +0 -182
- package/dist/modules/pricing_backend/screens.js.map +0 -1
- package/dist/modules/product_backend/attributes-screen.d.ts +0 -7
- package/dist/modules/product_backend/attributes-screen.d.ts.map +0 -1
- package/dist/modules/product_backend/attributes-screen.js +0 -76
- package/dist/modules/product_backend/attributes-screen.js.map +0 -1
- package/dist/modules/product_backend/create-screen.d.ts +0 -12
- package/dist/modules/product_backend/create-screen.d.ts.map +0 -1
- package/dist/modules/product_backend/create-screen.js +0 -83
- package/dist/modules/product_backend/create-screen.js.map +0 -1
- package/dist/modules/product_backend/screens.d.ts +0 -68
- package/dist/modules/product_backend/screens.d.ts.map +0 -1
- package/dist/modules/product_backend/screens.js +0 -388
- package/dist/modules/product_backend/screens.js.map +0 -1
- package/dist/modules/purchase_backend/screens.d.ts +0 -29
- package/dist/modules/purchase_backend/screens.d.ts.map +0 -1
- package/dist/modules/purchase_backend/screens.js +0 -324
- package/dist/modules/purchase_backend/screens.js.map +0 -1
- package/dist/modules/sale_backend/invoicing-policies-screen.d.ts +0 -14
- package/dist/modules/sale_backend/invoicing-policies-screen.d.ts.map +0 -1
- package/dist/modules/sale_backend/invoicing-policies-screen.js +0 -36
- package/dist/modules/sale_backend/invoicing-policies-screen.js.map +0 -1
- package/dist/modules/sale_backend/order-detail-screen.d.ts +0 -18
- package/dist/modules/sale_backend/order-detail-screen.d.ts.map +0 -1
- package/dist/modules/sale_backend/order-detail-screen.js +0 -217
- package/dist/modules/sale_backend/order-detail-screen.js.map +0 -1
- package/dist/modules/sale_backend/quotations-screen.d.ts +0 -15
- package/dist/modules/sale_backend/quotations-screen.d.ts.map +0 -1
- package/dist/modules/sale_backend/quotations-screen.js +0 -64
- package/dist/modules/sale_backend/quotations-screen.js.map +0 -1
- package/dist/modules/sale_backend/sales-orders-screen.d.ts +0 -12
- package/dist/modules/sale_backend/sales-orders-screen.d.ts.map +0 -1
- package/dist/modules/sale_backend/sales-orders-screen.js +0 -65
- package/dist/modules/sale_backend/sales-orders-screen.js.map +0 -1
- package/dist/modules/sale_backend/screens.d.ts +0 -23
- package/dist/modules/sale_backend/screens.d.ts.map +0 -1
- package/dist/modules/sale_backend/screens.js +0 -275
- package/dist/modules/sale_backend/screens.js.map +0 -1
- package/dist/modules/stock_backend/forecast-screen.d.ts +0 -28
- package/dist/modules/stock_backend/forecast-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/forecast-screen.js +0 -108
- package/dist/modules/stock_backend/forecast-screen.js.map +0 -1
- package/dist/modules/stock_backend/inventory-screen.d.ts +0 -27
- package/dist/modules/stock_backend/inventory-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/inventory-screen.js +0 -141
- package/dist/modules/stock_backend/inventory-screen.js.map +0 -1
- package/dist/modules/stock_backend/locations-screen.d.ts +0 -18
- package/dist/modules/stock_backend/locations-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/locations-screen.js +0 -92
- package/dist/modules/stock_backend/locations-screen.js.map +0 -1
- package/dist/modules/stock_backend/lot-screen.d.ts +0 -30
- package/dist/modules/stock_backend/lot-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/lot-screen.js +0 -86
- package/dist/modules/stock_backend/lot-screen.js.map +0 -1
- package/dist/modules/stock_backend/lots-screen.d.ts +0 -21
- package/dist/modules/stock_backend/lots-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/lots-screen.js +0 -79
- package/dist/modules/stock_backend/lots-screen.js.map +0 -1
- package/dist/modules/stock_backend/picking-types-screen.d.ts +0 -21
- package/dist/modules/stock_backend/picking-types-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/picking-types-screen.js +0 -110
- package/dist/modules/stock_backend/picking-types-screen.js.map +0 -1
- package/dist/modules/stock_backend/replenishment-screen.d.ts +0 -29
- package/dist/modules/stock_backend/replenishment-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/replenishment-screen.js +0 -131
- package/dist/modules/stock_backend/replenishment-screen.js.map +0 -1
- package/dist/modules/stock_backend/screens.d.ts +0 -14
- package/dist/modules/stock_backend/screens.d.ts.map +0 -1
- package/dist/modules/stock_backend/screens.js +0 -40
- package/dist/modules/stock_backend/screens.js.map +0 -1
- package/dist/modules/stock_backend/stock-route-screen.d.ts +0 -30
- package/dist/modules/stock_backend/stock-route-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/stock-route-screen.js +0 -129
- package/dist/modules/stock_backend/stock-route-screen.js.map +0 -1
- package/dist/modules/stock_backend/stock-routes-screen.d.ts +0 -17
- package/dist/modules/stock_backend/stock-routes-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/stock-routes-screen.js +0 -60
- package/dist/modules/stock_backend/stock-routes-screen.js.map +0 -1
- package/dist/modules/stock_backend/transfer-screen.d.ts +0 -26
- package/dist/modules/stock_backend/transfer-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/transfer-screen.js +0 -95
- package/dist/modules/stock_backend/transfer-screen.js.map +0 -1
- package/dist/modules/stock_backend/transfers-screen.d.ts +0 -21
- package/dist/modules/stock_backend/transfers-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/transfers-screen.js +0 -88
- package/dist/modules/stock_backend/transfers-screen.js.map +0 -1
- package/dist/modules/stock_backend/warehouses-screen.d.ts +0 -17
- package/dist/modules/stock_backend/warehouses-screen.d.ts.map +0 -1
- package/dist/modules/stock_backend/warehouses-screen.js +0 -96
- package/dist/modules/stock_backend/warehouses-screen.js.map +0 -1
- package/dist/modules/user_backend/screens.d.ts +0 -70
- package/dist/modules/user_backend/screens.d.ts.map +0 -1
- package/dist/modules/user_backend/screens.js +0 -308
- package/dist/modules/user_backend/screens.js.map +0 -1
- package/dist/modules/website/customer-routes.d.ts +0 -3
- package/dist/modules/website/customer-routes.d.ts.map +0 -1
- package/dist/modules/website/customer-routes.js +0 -322
- package/dist/modules/website/customer-routes.js.map +0 -1
- package/dist/modules/website_backend/screens.d.ts +0 -114
- package/dist/modules/website_backend/screens.d.ts.map +0 -1
- package/dist/modules/website_backend/screens.js +0 -625
- package/dist/modules/website_backend/screens.js.map +0 -1
- package/dist/ui/client/mail.d.mts +0 -11
- package/dist/ui/client/mail.d.mts.map +0 -1
- package/dist/ui/client/mail.mjs +0 -10
- package/dist/ui/client/mail.mjs.map +0 -1
- /package/dist/modules/{odoo_collaboration_import → account_staff_channel}/functions.d.ts +0 -0
- /package/dist/modules/{odoo_collaboration_import → account_staff_channel}/models.d.ts +0 -0
- /package/dist/modules/{odoo_collaboration_import → address_backend/screens}/types.js +0 -0
- /package/dist/modules/{odoo_collaboration_import → manufacturing}/relations.d.ts +0 -0
|
@@ -0,0 +1,1781 @@
|
|
|
1
|
+
import { channelCommandId, channelError, defineChannelRoute, routesOf, } from '../channel_api/core.js';
|
|
2
|
+
const string = { type: 'string' };
|
|
3
|
+
const integer = { type: 'integer', minimum: 0 };
|
|
4
|
+
const nullableString = { type: ['string', 'null'] };
|
|
5
|
+
const object = { type: 'object' };
|
|
6
|
+
const boolean = { type: 'boolean' };
|
|
7
|
+
const n = (value) => Number(value ?? 0);
|
|
8
|
+
const invalid = (field, message) => ({ ok: false, errors: [{ field, message }] });
|
|
9
|
+
const envelope = (data) => ({
|
|
10
|
+
type: 'object',
|
|
11
|
+
properties: { data, error: {}, meta: { type: 'object' } },
|
|
12
|
+
});
|
|
13
|
+
const idParams = {
|
|
14
|
+
type: 'object',
|
|
15
|
+
additionalProperties: false,
|
|
16
|
+
properties: { id: string },
|
|
17
|
+
required: ['id'],
|
|
18
|
+
};
|
|
19
|
+
const lineParams = {
|
|
20
|
+
type: 'object',
|
|
21
|
+
additionalProperties: false,
|
|
22
|
+
properties: { id: string, lineId: string },
|
|
23
|
+
required: ['id', 'lineId'],
|
|
24
|
+
};
|
|
25
|
+
const tenderParams = {
|
|
26
|
+
type: 'object',
|
|
27
|
+
additionalProperties: false,
|
|
28
|
+
properties: { id: string, tenderId: string },
|
|
29
|
+
required: ['id', 'tenderId'],
|
|
30
|
+
};
|
|
31
|
+
const movementParams = {
|
|
32
|
+
type: 'object',
|
|
33
|
+
additionalProperties: false,
|
|
34
|
+
properties: { id: string, movementId: string },
|
|
35
|
+
required: ['id', 'movementId'],
|
|
36
|
+
};
|
|
37
|
+
const expectedBody = {
|
|
38
|
+
type: 'object',
|
|
39
|
+
additionalProperties: false,
|
|
40
|
+
properties: { expectedRevision: integer },
|
|
41
|
+
required: ['expectedRevision'],
|
|
42
|
+
};
|
|
43
|
+
const lotSelection = {
|
|
44
|
+
type: 'object',
|
|
45
|
+
additionalProperties: false,
|
|
46
|
+
properties: {
|
|
47
|
+
lotId: string,
|
|
48
|
+
quantity: string,
|
|
49
|
+
stockRevision: nullableString,
|
|
50
|
+
},
|
|
51
|
+
required: ['lotId', 'quantity', 'stockRevision'],
|
|
52
|
+
};
|
|
53
|
+
const orderLine = {
|
|
54
|
+
type: 'object',
|
|
55
|
+
additionalProperties: false,
|
|
56
|
+
properties: {
|
|
57
|
+
id: string,
|
|
58
|
+
productId: string,
|
|
59
|
+
uomId: string,
|
|
60
|
+
name: string,
|
|
61
|
+
quantity: string,
|
|
62
|
+
unitPrice: string,
|
|
63
|
+
discount: string,
|
|
64
|
+
taxIds: { type: 'array', items: string },
|
|
65
|
+
amountUntaxed: string,
|
|
66
|
+
amountTotal: string,
|
|
67
|
+
sequence: integer,
|
|
68
|
+
quoteRevision: nullableString,
|
|
69
|
+
tracking: string,
|
|
70
|
+
lotSelections: { type: 'array', items: lotSelection },
|
|
71
|
+
originalLineId: nullableString,
|
|
72
|
+
},
|
|
73
|
+
required: [
|
|
74
|
+
'id',
|
|
75
|
+
'productId',
|
|
76
|
+
'uomId',
|
|
77
|
+
'name',
|
|
78
|
+
'quantity',
|
|
79
|
+
'unitPrice',
|
|
80
|
+
'discount',
|
|
81
|
+
'taxIds',
|
|
82
|
+
'amountUntaxed',
|
|
83
|
+
'amountTotal',
|
|
84
|
+
'sequence',
|
|
85
|
+
'quoteRevision',
|
|
86
|
+
'tracking',
|
|
87
|
+
'lotSelections',
|
|
88
|
+
'originalLineId',
|
|
89
|
+
],
|
|
90
|
+
};
|
|
91
|
+
const returnEligibilityLine = {
|
|
92
|
+
type: 'object',
|
|
93
|
+
additionalProperties: false,
|
|
94
|
+
properties: {
|
|
95
|
+
lineId: string,
|
|
96
|
+
productId: string,
|
|
97
|
+
name: string,
|
|
98
|
+
uomId: string,
|
|
99
|
+
purchasedQuantity: string,
|
|
100
|
+
refundedQuantity: string,
|
|
101
|
+
remainingQuantity: string,
|
|
102
|
+
unitPrice: string,
|
|
103
|
+
amountTotal: string,
|
|
104
|
+
tracking: string,
|
|
105
|
+
},
|
|
106
|
+
required: [
|
|
107
|
+
'lineId',
|
|
108
|
+
'productId',
|
|
109
|
+
'name',
|
|
110
|
+
'uomId',
|
|
111
|
+
'purchasedQuantity',
|
|
112
|
+
'refundedQuantity',
|
|
113
|
+
'remainingQuantity',
|
|
114
|
+
'unitPrice',
|
|
115
|
+
'amountTotal',
|
|
116
|
+
'tracking',
|
|
117
|
+
],
|
|
118
|
+
};
|
|
119
|
+
const returnEligibility = {
|
|
120
|
+
type: 'object',
|
|
121
|
+
additionalProperties: false,
|
|
122
|
+
properties: {
|
|
123
|
+
originalOrderId: string,
|
|
124
|
+
revision: integer,
|
|
125
|
+
refundable: boolean,
|
|
126
|
+
requiresFullReturn: boolean,
|
|
127
|
+
standaloneAllowed: boolean,
|
|
128
|
+
lines: { type: 'array', items: returnEligibilityLine },
|
|
129
|
+
},
|
|
130
|
+
required: ['originalOrderId', 'revision', 'refundable', 'requiresFullReturn', 'standaloneAllowed', 'lines'],
|
|
131
|
+
};
|
|
132
|
+
const lotAvailability = {
|
|
133
|
+
type: 'object',
|
|
134
|
+
additionalProperties: false,
|
|
135
|
+
properties: {
|
|
136
|
+
orderId: string,
|
|
137
|
+
lineId: string,
|
|
138
|
+
productId: string,
|
|
139
|
+
tracking: string,
|
|
140
|
+
requiredQuantity: string,
|
|
141
|
+
selections: { type: 'array', items: lotSelection },
|
|
142
|
+
lots: {
|
|
143
|
+
type: 'array',
|
|
144
|
+
items: {
|
|
145
|
+
type: 'object',
|
|
146
|
+
additionalProperties: false,
|
|
147
|
+
properties: {
|
|
148
|
+
lotId: string,
|
|
149
|
+
name: string,
|
|
150
|
+
expirationDate: nullableString,
|
|
151
|
+
availableQuantity: string,
|
|
152
|
+
stockRevision: string,
|
|
153
|
+
selectable: { type: 'boolean' },
|
|
154
|
+
},
|
|
155
|
+
required: ['lotId', 'name', 'expirationDate', 'availableQuantity', 'stockRevision', 'selectable'],
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
required: ['orderId', 'lineId', 'productId', 'tracking', 'requiredQuantity', 'selections', 'lots'],
|
|
160
|
+
};
|
|
161
|
+
const tender = {
|
|
162
|
+
type: 'object',
|
|
163
|
+
additionalProperties: false,
|
|
164
|
+
properties: {
|
|
165
|
+
id: string,
|
|
166
|
+
paymentMethodId: string,
|
|
167
|
+
state: string,
|
|
168
|
+
kind: string,
|
|
169
|
+
tenderedAmount: string,
|
|
170
|
+
appliedAmount: string,
|
|
171
|
+
change: string,
|
|
172
|
+
reference: nullableString,
|
|
173
|
+
paymentDate: string,
|
|
174
|
+
},
|
|
175
|
+
required: [
|
|
176
|
+
'id',
|
|
177
|
+
'paymentMethodId',
|
|
178
|
+
'state',
|
|
179
|
+
'kind',
|
|
180
|
+
'tenderedAmount',
|
|
181
|
+
'appliedAmount',
|
|
182
|
+
'change',
|
|
183
|
+
'reference',
|
|
184
|
+
'paymentDate',
|
|
185
|
+
],
|
|
186
|
+
};
|
|
187
|
+
const exchangeLink = {
|
|
188
|
+
type: 'object',
|
|
189
|
+
additionalProperties: false,
|
|
190
|
+
properties: {
|
|
191
|
+
id: string,
|
|
192
|
+
uuid: string,
|
|
193
|
+
role: { type: 'string', enum: ['return', 'replacement'] },
|
|
194
|
+
originalOrderId: string,
|
|
195
|
+
returnOrderId: string,
|
|
196
|
+
replacementOrderId: string,
|
|
197
|
+
originalRevision: integer,
|
|
198
|
+
reason: string,
|
|
199
|
+
createdAt: string,
|
|
200
|
+
},
|
|
201
|
+
required: [
|
|
202
|
+
'id',
|
|
203
|
+
'uuid',
|
|
204
|
+
'role',
|
|
205
|
+
'originalOrderId',
|
|
206
|
+
'returnOrderId',
|
|
207
|
+
'replacementOrderId',
|
|
208
|
+
'originalRevision',
|
|
209
|
+
'reason',
|
|
210
|
+
'createdAt',
|
|
211
|
+
],
|
|
212
|
+
};
|
|
213
|
+
const nullableExchangeLink = { ...exchangeLink, type: ['object', 'null'] };
|
|
214
|
+
const receiptTax = {
|
|
215
|
+
type: 'object',
|
|
216
|
+
additionalProperties: false,
|
|
217
|
+
properties: { id: string, name: string, amount: string },
|
|
218
|
+
required: ['id', 'name', 'amount'],
|
|
219
|
+
};
|
|
220
|
+
const receiptLine = {
|
|
221
|
+
type: 'object',
|
|
222
|
+
additionalProperties: false,
|
|
223
|
+
properties: {
|
|
224
|
+
id: string,
|
|
225
|
+
productId: string,
|
|
226
|
+
uomId: string,
|
|
227
|
+
name: string,
|
|
228
|
+
quantity: string,
|
|
229
|
+
unitPrice: string,
|
|
230
|
+
discount: string,
|
|
231
|
+
amountUntaxed: string,
|
|
232
|
+
amountTax: string,
|
|
233
|
+
amountTotal: string,
|
|
234
|
+
taxes: { type: 'array', items: receiptTax },
|
|
235
|
+
},
|
|
236
|
+
required: [
|
|
237
|
+
'id',
|
|
238
|
+
'productId',
|
|
239
|
+
'uomId',
|
|
240
|
+
'name',
|
|
241
|
+
'quantity',
|
|
242
|
+
'unitPrice',
|
|
243
|
+
'discount',
|
|
244
|
+
'amountUntaxed',
|
|
245
|
+
'amountTax',
|
|
246
|
+
'amountTotal',
|
|
247
|
+
'taxes',
|
|
248
|
+
],
|
|
249
|
+
};
|
|
250
|
+
const receiptTender = {
|
|
251
|
+
type: 'object',
|
|
252
|
+
additionalProperties: false,
|
|
253
|
+
properties: {
|
|
254
|
+
paymentMethodId: string,
|
|
255
|
+
paymentMethodName: string,
|
|
256
|
+
tenderedAmount: string,
|
|
257
|
+
appliedAmount: string,
|
|
258
|
+
change: string,
|
|
259
|
+
paidAt: string,
|
|
260
|
+
},
|
|
261
|
+
required: ['paymentMethodId', 'paymentMethodName', 'tenderedAmount', 'appliedAmount', 'change', 'paidAt'],
|
|
262
|
+
};
|
|
263
|
+
const receiptDocument = {
|
|
264
|
+
type: 'object',
|
|
265
|
+
additionalProperties: false,
|
|
266
|
+
properties: {
|
|
267
|
+
schema: { type: 'string', enum: ['ketviet.pos.receipt.v1'] },
|
|
268
|
+
company: {
|
|
269
|
+
type: 'object',
|
|
270
|
+
additionalProperties: false,
|
|
271
|
+
properties: { id: string },
|
|
272
|
+
required: ['id'],
|
|
273
|
+
},
|
|
274
|
+
config: {
|
|
275
|
+
type: 'object',
|
|
276
|
+
additionalProperties: false,
|
|
277
|
+
properties: { id: string, name: string },
|
|
278
|
+
required: ['id', 'name'],
|
|
279
|
+
},
|
|
280
|
+
shift: {
|
|
281
|
+
type: 'object',
|
|
282
|
+
additionalProperties: false,
|
|
283
|
+
properties: { id: string, name: string },
|
|
284
|
+
required: ['id', 'name'],
|
|
285
|
+
},
|
|
286
|
+
cashier: {
|
|
287
|
+
type: 'object',
|
|
288
|
+
additionalProperties: false,
|
|
289
|
+
properties: { id: string },
|
|
290
|
+
required: ['id'],
|
|
291
|
+
},
|
|
292
|
+
customer: {
|
|
293
|
+
type: 'object',
|
|
294
|
+
additionalProperties: false,
|
|
295
|
+
properties: { id: string, name: string },
|
|
296
|
+
required: ['id', 'name'],
|
|
297
|
+
},
|
|
298
|
+
order: {
|
|
299
|
+
type: 'object',
|
|
300
|
+
additionalProperties: false,
|
|
301
|
+
properties: {
|
|
302
|
+
id: string,
|
|
303
|
+
name: string,
|
|
304
|
+
reference: string,
|
|
305
|
+
orderedAt: string,
|
|
306
|
+
isReturn: boolean,
|
|
307
|
+
originalOrderId: nullableString,
|
|
308
|
+
},
|
|
309
|
+
required: ['id', 'name', 'reference', 'orderedAt', 'isReturn', 'originalOrderId'],
|
|
310
|
+
},
|
|
311
|
+
currency: string,
|
|
312
|
+
lines: { type: 'array', items: receiptLine },
|
|
313
|
+
tenders: { type: 'array', items: receiptTender },
|
|
314
|
+
totals: {
|
|
315
|
+
type: 'object',
|
|
316
|
+
additionalProperties: false,
|
|
317
|
+
properties: {
|
|
318
|
+
untaxed: string,
|
|
319
|
+
tax: string,
|
|
320
|
+
exact: string,
|
|
321
|
+
rounding: string,
|
|
322
|
+
total: string,
|
|
323
|
+
paid: string,
|
|
324
|
+
change: string,
|
|
325
|
+
},
|
|
326
|
+
required: ['untaxed', 'tax', 'exact', 'rounding', 'total', 'paid', 'change'],
|
|
327
|
+
},
|
|
328
|
+
invoice: {
|
|
329
|
+
type: 'object',
|
|
330
|
+
additionalProperties: false,
|
|
331
|
+
properties: { id: string },
|
|
332
|
+
required: ['id'],
|
|
333
|
+
},
|
|
334
|
+
issuedAt: string,
|
|
335
|
+
},
|
|
336
|
+
required: [
|
|
337
|
+
'schema',
|
|
338
|
+
'company',
|
|
339
|
+
'config',
|
|
340
|
+
'shift',
|
|
341
|
+
'cashier',
|
|
342
|
+
'customer',
|
|
343
|
+
'order',
|
|
344
|
+
'currency',
|
|
345
|
+
'lines',
|
|
346
|
+
'tenders',
|
|
347
|
+
'totals',
|
|
348
|
+
'invoice',
|
|
349
|
+
'issuedAt',
|
|
350
|
+
],
|
|
351
|
+
};
|
|
352
|
+
const receipt = {
|
|
353
|
+
type: 'object',
|
|
354
|
+
additionalProperties: false,
|
|
355
|
+
properties: {
|
|
356
|
+
id: string,
|
|
357
|
+
orderId: string,
|
|
358
|
+
version: integer,
|
|
359
|
+
templateVersion: string,
|
|
360
|
+
contentHash: string,
|
|
361
|
+
issuedAt: string,
|
|
362
|
+
document: receiptDocument,
|
|
363
|
+
},
|
|
364
|
+
required: ['id', 'orderId', 'version', 'templateVersion', 'contentHash', 'issuedAt', 'document'],
|
|
365
|
+
};
|
|
366
|
+
const order = {
|
|
367
|
+
type: 'object',
|
|
368
|
+
additionalProperties: false,
|
|
369
|
+
properties: {
|
|
370
|
+
id: string,
|
|
371
|
+
name: string,
|
|
372
|
+
uuid: string,
|
|
373
|
+
reference: string,
|
|
374
|
+
state: string,
|
|
375
|
+
shiftId: string,
|
|
376
|
+
customerId: nullableString,
|
|
377
|
+
note: nullableString,
|
|
378
|
+
currency: string,
|
|
379
|
+
amountUntaxed: string,
|
|
380
|
+
amountTax: string,
|
|
381
|
+
amountExact: string,
|
|
382
|
+
amountRounding: string,
|
|
383
|
+
amountTotal: string,
|
|
384
|
+
amountPaid: string,
|
|
385
|
+
amountReturn: string,
|
|
386
|
+
priceBookRevision: nullableString,
|
|
387
|
+
isReturn: boolean,
|
|
388
|
+
originalOrderId: nullableString,
|
|
389
|
+
returnPortion: nullableString,
|
|
390
|
+
returnComplete: boolean,
|
|
391
|
+
accountMoveId: nullableString,
|
|
392
|
+
pickingId: nullableString,
|
|
393
|
+
receiptId: nullableString,
|
|
394
|
+
exchange: nullableExchangeLink,
|
|
395
|
+
revision: integer,
|
|
396
|
+
lines: { type: 'array', items: orderLine },
|
|
397
|
+
tenders: { type: 'array', items: tender },
|
|
398
|
+
allowedActions: { type: 'array', items: string },
|
|
399
|
+
},
|
|
400
|
+
required: [
|
|
401
|
+
'id',
|
|
402
|
+
'name',
|
|
403
|
+
'uuid',
|
|
404
|
+
'reference',
|
|
405
|
+
'state',
|
|
406
|
+
'shiftId',
|
|
407
|
+
'customerId',
|
|
408
|
+
'note',
|
|
409
|
+
'currency',
|
|
410
|
+
'amountUntaxed',
|
|
411
|
+
'amountTax',
|
|
412
|
+
'amountExact',
|
|
413
|
+
'amountRounding',
|
|
414
|
+
'amountTotal',
|
|
415
|
+
'amountPaid',
|
|
416
|
+
'amountReturn',
|
|
417
|
+
'priceBookRevision',
|
|
418
|
+
'isReturn',
|
|
419
|
+
'originalOrderId',
|
|
420
|
+
'returnPortion',
|
|
421
|
+
'returnComplete',
|
|
422
|
+
'accountMoveId',
|
|
423
|
+
'pickingId',
|
|
424
|
+
'receiptId',
|
|
425
|
+
'exchange',
|
|
426
|
+
'revision',
|
|
427
|
+
'lines',
|
|
428
|
+
'tenders',
|
|
429
|
+
'allowedActions',
|
|
430
|
+
],
|
|
431
|
+
};
|
|
432
|
+
const exchangeDraft = {
|
|
433
|
+
type: 'object',
|
|
434
|
+
additionalProperties: false,
|
|
435
|
+
properties: {
|
|
436
|
+
id: string,
|
|
437
|
+
uuid: string,
|
|
438
|
+
originalOrderId: string,
|
|
439
|
+
returnOrderId: string,
|
|
440
|
+
replacementOrderId: string,
|
|
441
|
+
originalRevision: integer,
|
|
442
|
+
reason: string,
|
|
443
|
+
createdAt: string,
|
|
444
|
+
returnOrder: order,
|
|
445
|
+
replacementOrder: order,
|
|
446
|
+
},
|
|
447
|
+
required: [
|
|
448
|
+
'id',
|
|
449
|
+
'uuid',
|
|
450
|
+
'originalOrderId',
|
|
451
|
+
'returnOrderId',
|
|
452
|
+
'replacementOrderId',
|
|
453
|
+
'originalRevision',
|
|
454
|
+
'reason',
|
|
455
|
+
'createdAt',
|
|
456
|
+
'returnOrder',
|
|
457
|
+
'replacementOrder',
|
|
458
|
+
],
|
|
459
|
+
};
|
|
460
|
+
const shift = {
|
|
461
|
+
type: 'object',
|
|
462
|
+
additionalProperties: false,
|
|
463
|
+
properties: {
|
|
464
|
+
id: string,
|
|
465
|
+
name: string,
|
|
466
|
+
state: string,
|
|
467
|
+
operatorId: string,
|
|
468
|
+
deviceId: nullableString,
|
|
469
|
+
openedAt: nullableString,
|
|
470
|
+
closedAt: nullableString,
|
|
471
|
+
openingCash: string,
|
|
472
|
+
expectedCash: string,
|
|
473
|
+
countedCash: string,
|
|
474
|
+
difference: string,
|
|
475
|
+
cashMovementTotal: string,
|
|
476
|
+
varianceStatus: string,
|
|
477
|
+
varianceReason: nullableString,
|
|
478
|
+
varianceNote: nullableString,
|
|
479
|
+
varianceApprovedBy: nullableString,
|
|
480
|
+
cashAdjustmentId: nullableString,
|
|
481
|
+
revision: integer,
|
|
482
|
+
orderCount: integer,
|
|
483
|
+
},
|
|
484
|
+
required: [
|
|
485
|
+
'id',
|
|
486
|
+
'name',
|
|
487
|
+
'state',
|
|
488
|
+
'operatorId',
|
|
489
|
+
'deviceId',
|
|
490
|
+
'openedAt',
|
|
491
|
+
'closedAt',
|
|
492
|
+
'openingCash',
|
|
493
|
+
'expectedCash',
|
|
494
|
+
'countedCash',
|
|
495
|
+
'difference',
|
|
496
|
+
'cashMovementTotal',
|
|
497
|
+
'varianceStatus',
|
|
498
|
+
'varianceReason',
|
|
499
|
+
'varianceNote',
|
|
500
|
+
'varianceApprovedBy',
|
|
501
|
+
'cashAdjustmentId',
|
|
502
|
+
'revision',
|
|
503
|
+
'orderCount',
|
|
504
|
+
],
|
|
505
|
+
};
|
|
506
|
+
const failure = (ctx, url, req, result) => {
|
|
507
|
+
const issues = Array.isArray(result?.errors)
|
|
508
|
+
? (result.errors ?? [])
|
|
509
|
+
: [];
|
|
510
|
+
const conflict = issues.some((issue) => ['expectedRevision', 'state', 'quoteRevision', 'priceBookRevision'].includes(String(issue.field)));
|
|
511
|
+
return {
|
|
512
|
+
status: conflict ? 409 : 422,
|
|
513
|
+
error: channelError(ctx, url, req, conflict ? 'pos.commandConflict' : 'pos.commandInvalid', {
|
|
514
|
+
messageKey: conflict ? 'pos_channel.error.commandConflict' : 'pos_channel.error.commandInvalid',
|
|
515
|
+
fieldErrors: Object.fromEntries(issues.map((issue) => [
|
|
516
|
+
String(issue.field ?? 'command'),
|
|
517
|
+
{
|
|
518
|
+
code: 'pos.invalidField',
|
|
519
|
+
messageKey: 'pos_channel.error.invalidField',
|
|
520
|
+
params: {},
|
|
521
|
+
},
|
|
522
|
+
])),
|
|
523
|
+
retryable: conflict,
|
|
524
|
+
}),
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
const notFound = (ctx, url, req) => ({
|
|
528
|
+
status: 404,
|
|
529
|
+
error: channelError(ctx, url, req, 'pos.notFound', {
|
|
530
|
+
messageKey: 'pos_channel.error.notFound',
|
|
531
|
+
}),
|
|
532
|
+
});
|
|
533
|
+
const keyOf = (ctx, url, req) => {
|
|
534
|
+
const key = String(req.headers['idempotency-key'] ?? '').trim();
|
|
535
|
+
if (key.length >= 8 && key.length <= 200)
|
|
536
|
+
return key;
|
|
537
|
+
return {
|
|
538
|
+
status: 400,
|
|
539
|
+
error: channelError(ctx, url, req, 'channel_api.idempotencyRequired', {
|
|
540
|
+
messageKey: 'channel_api.error.idempotencyRequired',
|
|
541
|
+
}),
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
const projectOrder = (row) => ({
|
|
545
|
+
id: String(row.id),
|
|
546
|
+
name: String(row.name),
|
|
547
|
+
uuid: String(row.uuid),
|
|
548
|
+
reference: String(row.posReference),
|
|
549
|
+
state: String(row.state),
|
|
550
|
+
shiftId: String(row.sessionId),
|
|
551
|
+
customerId: row.partnerId == null ? null : String(row.partnerId),
|
|
552
|
+
note: row.note == null ? null : String(row.note),
|
|
553
|
+
currency: String(row.currency),
|
|
554
|
+
amountUntaxed: String(row.amountUntaxed),
|
|
555
|
+
amountTax: String(row.amountTax),
|
|
556
|
+
amountExact: String(row.amountExact ?? row.amountTotal),
|
|
557
|
+
amountRounding: String(row.amountRounding ?? 0),
|
|
558
|
+
amountTotal: String(row.amountTotal),
|
|
559
|
+
amountPaid: String(row.amountPaid),
|
|
560
|
+
amountReturn: String(row.amountReturn),
|
|
561
|
+
priceBookRevision: row.priceBookRevision == null ? null : String(row.priceBookRevision),
|
|
562
|
+
isReturn: Boolean(row.isRefund),
|
|
563
|
+
originalOrderId: row.refundedOrderId == null ? null : String(row.refundedOrderId),
|
|
564
|
+
returnPortion: row.returnPortion == null ? null : String(row.returnPortion),
|
|
565
|
+
returnComplete: Boolean(row.returnComplete),
|
|
566
|
+
accountMoveId: row.accountMoveId == null ? null : String(row.accountMoveId),
|
|
567
|
+
pickingId: row.pickingId == null ? null : String(row.pickingId),
|
|
568
|
+
receiptId: row.receiptId == null ? null : String(row.receiptId),
|
|
569
|
+
exchange: row.exchange && typeof row.exchange === 'object'
|
|
570
|
+
? {
|
|
571
|
+
id: String(row.exchange.id),
|
|
572
|
+
uuid: String(row.exchange.uuid),
|
|
573
|
+
role: String(row.exchangeRole),
|
|
574
|
+
originalOrderId: String(row.exchange.originalOrderId),
|
|
575
|
+
returnOrderId: String(row.exchange.returnOrderId),
|
|
576
|
+
replacementOrderId: String(row.exchange.replacementOrderId),
|
|
577
|
+
originalRevision: Number(row.exchange.originalRevision),
|
|
578
|
+
reason: String(row.exchange.reason),
|
|
579
|
+
createdAt: String(row.exchange.createdAt),
|
|
580
|
+
}
|
|
581
|
+
: null,
|
|
582
|
+
revision: Number(row.revision ?? 0),
|
|
583
|
+
lines: (Array.isArray(row.lines) ? row.lines : [])
|
|
584
|
+
.map((line) => ({
|
|
585
|
+
id: String(line.id),
|
|
586
|
+
productId: String(line.productId),
|
|
587
|
+
uomId: String(line.productUomId),
|
|
588
|
+
name: String(line.name),
|
|
589
|
+
quantity: String(line.qty),
|
|
590
|
+
unitPrice: String(line.priceUnit),
|
|
591
|
+
discount: String(line.discount),
|
|
592
|
+
taxIds: Array.isArray(line.taxIds) ? line.taxIds.map(String) : line.taxId ? [String(line.taxId)] : [],
|
|
593
|
+
amountUntaxed: String(line.priceSubtotal),
|
|
594
|
+
amountTotal: String(line.priceSubtotalIncl),
|
|
595
|
+
sequence: Number(line.sequence),
|
|
596
|
+
quoteRevision: line.quoteRevision == null ? null : String(line.quoteRevision),
|
|
597
|
+
tracking: String(line.tracking ?? 'none'),
|
|
598
|
+
lotSelections: (Array.isArray(line.lotSelections) ? line.lotSelections : []).map((selection) => ({
|
|
599
|
+
lotId: String(selection.lotId),
|
|
600
|
+
quantity: String(selection.quantity),
|
|
601
|
+
stockRevision: selection.stockRevision == null ? null : String(selection.stockRevision),
|
|
602
|
+
})),
|
|
603
|
+
originalLineId: line.refundedOrderlineId == null ? null : String(line.refundedOrderlineId),
|
|
604
|
+
}))
|
|
605
|
+
.sort((left, right) => left.sequence - right.sequence || left.id.localeCompare(right.id)),
|
|
606
|
+
tenders: (Array.isArray(row.payments) ? row.payments : []).map((payment) => ({
|
|
607
|
+
id: String(payment.id),
|
|
608
|
+
paymentMethodId: String(payment.paymentMethodId),
|
|
609
|
+
state: String(payment.state ?? 'captured'),
|
|
610
|
+
kind: String(payment.kind ?? 'manual'),
|
|
611
|
+
tenderedAmount: String(payment.tenderedAmount ?? payment.amount),
|
|
612
|
+
appliedAmount: String(payment.appliedAmount ?? payment.amount),
|
|
613
|
+
change: String(n(payment.tenderedAmount ?? payment.amount) - n(payment.appliedAmount ?? payment.amount)),
|
|
614
|
+
reference: payment.reference == null ? null : String(payment.reference),
|
|
615
|
+
paymentDate: String(payment.paymentDate),
|
|
616
|
+
})),
|
|
617
|
+
allowedActions: row.state === 'draft' && row.isRefund
|
|
618
|
+
? ['add_tender', 'void_tender', 'finalize', 'cancel']
|
|
619
|
+
: row.state === 'draft'
|
|
620
|
+
? [
|
|
621
|
+
'update',
|
|
622
|
+
'add_line',
|
|
623
|
+
'update_line',
|
|
624
|
+
'remove_line',
|
|
625
|
+
'reorder_lines',
|
|
626
|
+
'add_tender',
|
|
627
|
+
'void_tender',
|
|
628
|
+
'finalize',
|
|
629
|
+
'cancel',
|
|
630
|
+
]
|
|
631
|
+
: ['paid', 'done'].includes(String(row.state))
|
|
632
|
+
? [...(!row.isRefund ? ['create_return', 'create_exchange'] : []), 'read_receipt']
|
|
633
|
+
: [],
|
|
634
|
+
});
|
|
635
|
+
const projectReceipt = (row) => ({
|
|
636
|
+
id: String(row.id),
|
|
637
|
+
orderId: String(row.orderId),
|
|
638
|
+
version: Number(row.version),
|
|
639
|
+
templateVersion: String(row.templateVersion),
|
|
640
|
+
contentHash: String(row.contentHash),
|
|
641
|
+
issuedAt: String(row.issuedAt),
|
|
642
|
+
document: row.document,
|
|
643
|
+
});
|
|
644
|
+
const orderFor = async (ctx, url, req, id, identity) => {
|
|
645
|
+
const row = (await ctx.call('pos.getOrder', { id }, url, req));
|
|
646
|
+
if (!row || String(row.configId) !== String(identity.posConfigId))
|
|
647
|
+
return null;
|
|
648
|
+
if (row.state === 'draft' && row.deviceId && String(row.deviceId) !== String(identity.deviceId))
|
|
649
|
+
return null;
|
|
650
|
+
return row;
|
|
651
|
+
};
|
|
652
|
+
const orderResult = async (ctx, url, req, id, identity) => {
|
|
653
|
+
const row = await orderFor(ctx, url, req, id, identity);
|
|
654
|
+
if (!row)
|
|
655
|
+
return notFound(ctx, url, req);
|
|
656
|
+
const data = projectOrder(row);
|
|
657
|
+
return { data, headers: { etag: `"pos-order-${data.revision}"` } };
|
|
658
|
+
};
|
|
659
|
+
const projectShift = (row) => ({
|
|
660
|
+
id: String(row.id),
|
|
661
|
+
name: String(row.name),
|
|
662
|
+
state: String(row.state),
|
|
663
|
+
operatorId: String(row.userId),
|
|
664
|
+
deviceId: row.deviceId == null ? null : String(row.deviceId),
|
|
665
|
+
openedAt: row.startAt == null ? null : String(row.startAt),
|
|
666
|
+
closedAt: row.stopAt == null ? null : String(row.stopAt),
|
|
667
|
+
openingCash: String(row.cashRegisterBalanceStart),
|
|
668
|
+
expectedCash: String(row.cashRegisterBalanceEnd),
|
|
669
|
+
countedCash: String(row.cashRegisterBalanceEndReal),
|
|
670
|
+
difference: String(row.cashRegisterDifference),
|
|
671
|
+
cashMovementTotal: String((Array.isArray(row.cashMovements) ? row.cashMovements : []).reduce((sum, movement) => sum + (movement.direction === 'in' ? n(movement.amount) : -n(movement.amount)), 0)),
|
|
672
|
+
varianceStatus: String(row.varianceStatus ?? 'none'),
|
|
673
|
+
varianceReason: row.varianceReason == null ? null : String(row.varianceReason),
|
|
674
|
+
varianceNote: row.varianceNote == null ? null : String(row.varianceNote),
|
|
675
|
+
varianceApprovedBy: row.varianceApprovedBy == null ? null : String(row.varianceApprovedBy),
|
|
676
|
+
cashAdjustmentId: row.cashAdjustmentId == null ? null : String(row.cashAdjustmentId),
|
|
677
|
+
revision: Number(row.revision ?? 0),
|
|
678
|
+
orderCount: Array.isArray(row.orders) ? row.orders.length : 0,
|
|
679
|
+
});
|
|
680
|
+
const shiftFor = async (ctx, url, req, id, identity) => {
|
|
681
|
+
const row = (await ctx.call('pos.getSession', { id }, url, req));
|
|
682
|
+
if (!row || String(row.configId) !== String(identity.posConfigId))
|
|
683
|
+
return null;
|
|
684
|
+
if (row.deviceId && String(row.deviceId) !== String(identity.deviceId))
|
|
685
|
+
return null;
|
|
686
|
+
return row;
|
|
687
|
+
};
|
|
688
|
+
const managerShiftFor = async (ctx, url, req, id, identity) => {
|
|
689
|
+
const row = (await ctx.call('pos.getSession', { id }, url, req));
|
|
690
|
+
return row && String(row.configId) === String(identity.posConfigId) ? row : null;
|
|
691
|
+
};
|
|
692
|
+
const shiftResult = async (ctx, url, req, id, identity) => {
|
|
693
|
+
const row = await shiftFor(ctx, url, req, id, identity);
|
|
694
|
+
if (!row)
|
|
695
|
+
return notFound(ctx, url, req);
|
|
696
|
+
const data = projectShift(row);
|
|
697
|
+
return { data, headers: { etag: `"pos-shift-${data.revision}"` } };
|
|
698
|
+
};
|
|
699
|
+
const commandOptions = (identity, action, key) => ({
|
|
700
|
+
idempotencyKey: key,
|
|
701
|
+
idempotencyNamespace: `pos:${identity.companyId}:${identity.posConfigId}:${identity.deviceId}:${action}`,
|
|
702
|
+
correlationId: key,
|
|
703
|
+
});
|
|
704
|
+
const lifecycleFunction = async (ctx, req, preferred, fallback) => (await ctx.live(req)).functions[preferred] ? preferred : fallback;
|
|
705
|
+
export const operationRoutes = routesOf(defineChannelRoute({
|
|
706
|
+
profile: 'pos',
|
|
707
|
+
method: 'POST',
|
|
708
|
+
path: 'shifts',
|
|
709
|
+
operationId: 'pos.shifts.create',
|
|
710
|
+
summary: 'Create one opening-control shift in the live device configuration.',
|
|
711
|
+
auth: 'required',
|
|
712
|
+
request: {
|
|
713
|
+
body: {
|
|
714
|
+
type: 'object',
|
|
715
|
+
additionalProperties: false,
|
|
716
|
+
properties: { openingCash: string, openingNotes: string },
|
|
717
|
+
required: ['openingCash'],
|
|
718
|
+
},
|
|
719
|
+
},
|
|
720
|
+
responses: {
|
|
721
|
+
'200': envelope(shift),
|
|
722
|
+
'400': envelope(object),
|
|
723
|
+
'409': envelope(object),
|
|
724
|
+
'422': envelope(object),
|
|
725
|
+
},
|
|
726
|
+
idempotent: true,
|
|
727
|
+
handler: async (ctx, url, req, _params, request) => {
|
|
728
|
+
const key = keyOf(ctx, url, req);
|
|
729
|
+
if (typeof key !== 'string')
|
|
730
|
+
return key;
|
|
731
|
+
const identity = request.identity;
|
|
732
|
+
const id = channelCommandId('shift', identity, key);
|
|
733
|
+
const result = (await ctx.call('pos.createSession', {
|
|
734
|
+
id,
|
|
735
|
+
configId: identity.posConfigId,
|
|
736
|
+
userId: identity.operatorId,
|
|
737
|
+
deviceId: identity.deviceId,
|
|
738
|
+
openingCash: request.body.openingCash,
|
|
739
|
+
openingNotes: request.body.openingNotes,
|
|
740
|
+
}, url, req, commandOptions(identity, 'shift.create', key)));
|
|
741
|
+
if (result.ok !== true)
|
|
742
|
+
return failure(ctx, url, req, result);
|
|
743
|
+
return shiftResult(ctx, url, req, id, identity);
|
|
744
|
+
},
|
|
745
|
+
}), defineChannelRoute({
|
|
746
|
+
profile: 'pos',
|
|
747
|
+
method: 'GET',
|
|
748
|
+
path: 'shifts/current',
|
|
749
|
+
operationId: 'pos.shifts.current',
|
|
750
|
+
summary: 'Read the active shift for the live device configuration, or null when none is open.',
|
|
751
|
+
auth: 'required',
|
|
752
|
+
responses: { '200': envelope({ anyOf: [shift, { type: 'null' }] }) },
|
|
753
|
+
handler: async (ctx, url, req, _params, request) => {
|
|
754
|
+
const identity = request.identity;
|
|
755
|
+
const sessions = (await ctx.call('pos.listSessions', {}, url, req));
|
|
756
|
+
const active = sessions
|
|
757
|
+
.filter((row) => String(row.configId) === String(identity.posConfigId) &&
|
|
758
|
+
(!row.deviceId || String(row.deviceId) === String(identity.deviceId)) &&
|
|
759
|
+
['opening_control', 'opened', 'closing_control'].includes(String(row.state)))
|
|
760
|
+
.sort((left, right) => String(right.startAt ?? '').localeCompare(String(left.startAt ?? '')))[0];
|
|
761
|
+
if (!active)
|
|
762
|
+
return { data: null };
|
|
763
|
+
const row = (await ctx.call('pos.getSession', { id: active.id }, url, req));
|
|
764
|
+
return { data: projectShift(row), headers: { etag: `"pos-shift-${Number(row.revision ?? 0)}"` } };
|
|
765
|
+
},
|
|
766
|
+
}), defineChannelRoute({
|
|
767
|
+
profile: 'pos',
|
|
768
|
+
method: 'GET',
|
|
769
|
+
path: 'shifts/{id}',
|
|
770
|
+
operationId: 'pos.shifts.get',
|
|
771
|
+
summary: 'Read one canonical revisioned shift.',
|
|
772
|
+
auth: 'required',
|
|
773
|
+
request: { params: idParams },
|
|
774
|
+
responses: { '200': envelope(shift), '404': envelope(object) },
|
|
775
|
+
handler: (ctx, url, req, params, request) => shiftResult(ctx, url, req, params.id, request.identity),
|
|
776
|
+
}), ...['open', 'start-closing'].map((action) => defineChannelRoute({
|
|
777
|
+
profile: 'pos',
|
|
778
|
+
method: 'POST',
|
|
779
|
+
path: `shifts/{id}/${action}`,
|
|
780
|
+
operationId: `pos.shifts.${action === 'open' ? 'open' : 'startClosing'}`,
|
|
781
|
+
summary: action === 'open' ? 'Open an opening-control shift.' : 'Move an open shift to closing control.',
|
|
782
|
+
auth: 'required',
|
|
783
|
+
request: { params: idParams, body: expectedBody },
|
|
784
|
+
responses: {
|
|
785
|
+
'200': envelope(shift),
|
|
786
|
+
'404': envelope(object),
|
|
787
|
+
'409': envelope(object),
|
|
788
|
+
'422': envelope(object),
|
|
789
|
+
},
|
|
790
|
+
idempotent: true,
|
|
791
|
+
handler: async (ctx, url, req, params, request) => {
|
|
792
|
+
const key = keyOf(ctx, url, req);
|
|
793
|
+
if (typeof key !== 'string')
|
|
794
|
+
return key;
|
|
795
|
+
const identity = request.identity;
|
|
796
|
+
if (!(await shiftFor(ctx, url, req, params.id, identity)))
|
|
797
|
+
return notFound(ctx, url, req);
|
|
798
|
+
const result = (await ctx.call(action === 'open' ? 'pos.openSession' : 'pos.startClosing', { id: params.id, expectedRevision: request.body.expectedRevision }, url, req, commandOptions(identity, `shift.${action}`, key)));
|
|
799
|
+
if (result.ok !== true)
|
|
800
|
+
return failure(ctx, url, req, result);
|
|
801
|
+
return shiftResult(ctx, url, req, params.id, identity);
|
|
802
|
+
},
|
|
803
|
+
})), defineChannelRoute({
|
|
804
|
+
profile: 'pos',
|
|
805
|
+
method: 'POST',
|
|
806
|
+
path: 'shifts/{id}/cash-movements',
|
|
807
|
+
operationId: 'pos.shifts.cashMovements.create',
|
|
808
|
+
summary: 'Record an immutable cash-in or cash-out movement in an open shift.',
|
|
809
|
+
auth: 'required',
|
|
810
|
+
capability: { key: 'pos.shifts', action: 'cash_movement' },
|
|
811
|
+
request: {
|
|
812
|
+
params: idParams,
|
|
813
|
+
body: {
|
|
814
|
+
type: 'object',
|
|
815
|
+
additionalProperties: false,
|
|
816
|
+
properties: {
|
|
817
|
+
expectedRevision: integer,
|
|
818
|
+
direction: string,
|
|
819
|
+
amount: string,
|
|
820
|
+
reason: string,
|
|
821
|
+
note: string,
|
|
822
|
+
},
|
|
823
|
+
required: ['expectedRevision', 'direction', 'amount', 'reason'],
|
|
824
|
+
},
|
|
825
|
+
},
|
|
826
|
+
responses: {
|
|
827
|
+
'200': envelope(shift),
|
|
828
|
+
'404': envelope(object),
|
|
829
|
+
'409': envelope(object),
|
|
830
|
+
'422': envelope(object),
|
|
831
|
+
},
|
|
832
|
+
idempotent: true,
|
|
833
|
+
handler: async (ctx, url, req, params, request) => {
|
|
834
|
+
const key = keyOf(ctx, url, req);
|
|
835
|
+
if (typeof key !== 'string')
|
|
836
|
+
return key;
|
|
837
|
+
const identity = request.identity;
|
|
838
|
+
if (!(await shiftFor(ctx, url, req, params.id, identity)))
|
|
839
|
+
return notFound(ctx, url, req);
|
|
840
|
+
const result = (await ctx.call('pos.recordCashMovement', {
|
|
841
|
+
id: channelCommandId('cash-movement', identity, `${params.id}\n${key}`),
|
|
842
|
+
sessionId: params.id,
|
|
843
|
+
expectedRevision: request.body.expectedRevision,
|
|
844
|
+
direction: request.body.direction,
|
|
845
|
+
amount: request.body.amount,
|
|
846
|
+
reason: request.body.reason,
|
|
847
|
+
note: request.body.note,
|
|
848
|
+
actorId: identity.operatorId,
|
|
849
|
+
deviceId: identity.deviceId,
|
|
850
|
+
}, url, req, commandOptions(identity, 'shift.cash-movement.create', key)));
|
|
851
|
+
if (result.ok !== true)
|
|
852
|
+
return failure(ctx, url, req, result);
|
|
853
|
+
return shiftResult(ctx, url, req, params.id, identity);
|
|
854
|
+
},
|
|
855
|
+
}), defineChannelRoute({
|
|
856
|
+
profile: 'pos',
|
|
857
|
+
method: 'POST',
|
|
858
|
+
path: 'shifts/{id}/cash-movements/{movementId}/reverse',
|
|
859
|
+
operationId: 'pos.shifts.cashMovements.reverse',
|
|
860
|
+
summary: 'Correct a cash movement by appending one linked opposite movement.',
|
|
861
|
+
auth: 'required',
|
|
862
|
+
capability: { key: 'pos.shifts', action: 'cash_movement' },
|
|
863
|
+
request: {
|
|
864
|
+
params: movementParams,
|
|
865
|
+
body: {
|
|
866
|
+
type: 'object',
|
|
867
|
+
additionalProperties: false,
|
|
868
|
+
properties: { expectedRevision: integer, reason: string, note: string },
|
|
869
|
+
required: ['expectedRevision', 'reason'],
|
|
870
|
+
},
|
|
871
|
+
},
|
|
872
|
+
responses: {
|
|
873
|
+
'200': envelope(shift),
|
|
874
|
+
'404': envelope(object),
|
|
875
|
+
'409': envelope(object),
|
|
876
|
+
'422': envelope(object),
|
|
877
|
+
},
|
|
878
|
+
idempotent: true,
|
|
879
|
+
handler: async (ctx, url, req, params, request) => {
|
|
880
|
+
const key = keyOf(ctx, url, req);
|
|
881
|
+
if (typeof key !== 'string')
|
|
882
|
+
return key;
|
|
883
|
+
const identity = request.identity;
|
|
884
|
+
if (!(await shiftFor(ctx, url, req, params.id, identity)))
|
|
885
|
+
return notFound(ctx, url, req);
|
|
886
|
+
const result = (await ctx.call('pos.reverseCashMovement', {
|
|
887
|
+
id: channelCommandId('cash-movement-reversal', identity, `${params.id}\n${key}`),
|
|
888
|
+
sessionId: params.id,
|
|
889
|
+
movementId: params.movementId,
|
|
890
|
+
expectedRevision: request.body.expectedRevision,
|
|
891
|
+
reason: request.body.reason,
|
|
892
|
+
note: request.body.note,
|
|
893
|
+
actorId: identity.operatorId,
|
|
894
|
+
deviceId: identity.deviceId,
|
|
895
|
+
}, url, req, commandOptions(identity, 'shift.cash-movement.reverse', key)));
|
|
896
|
+
if (result.ok !== true)
|
|
897
|
+
return failure(ctx, url, req, result);
|
|
898
|
+
return shiftResult(ctx, url, req, params.id, identity);
|
|
899
|
+
},
|
|
900
|
+
}), defineChannelRoute({
|
|
901
|
+
profile: 'pos',
|
|
902
|
+
method: 'POST',
|
|
903
|
+
path: 'shifts/{id}/close',
|
|
904
|
+
operationId: 'pos.shifts.close',
|
|
905
|
+
summary: 'Close a balanced shift or seal a variance for manager review.',
|
|
906
|
+
auth: 'required',
|
|
907
|
+
request: {
|
|
908
|
+
params: idParams,
|
|
909
|
+
body: {
|
|
910
|
+
type: 'object',
|
|
911
|
+
additionalProperties: false,
|
|
912
|
+
properties: {
|
|
913
|
+
expectedRevision: integer,
|
|
914
|
+
countedCash: string,
|
|
915
|
+
closingNotes: string,
|
|
916
|
+
varianceReason: string,
|
|
917
|
+
varianceNote: string,
|
|
918
|
+
},
|
|
919
|
+
required: ['expectedRevision', 'countedCash'],
|
|
920
|
+
},
|
|
921
|
+
},
|
|
922
|
+
responses: {
|
|
923
|
+
'200': envelope(shift),
|
|
924
|
+
'404': envelope(object),
|
|
925
|
+
'409': envelope(object),
|
|
926
|
+
'422': envelope(object),
|
|
927
|
+
},
|
|
928
|
+
idempotent: true,
|
|
929
|
+
handler: async (ctx, url, req, params, request) => {
|
|
930
|
+
const key = keyOf(ctx, url, req);
|
|
931
|
+
if (typeof key !== 'string')
|
|
932
|
+
return key;
|
|
933
|
+
const identity = request.identity;
|
|
934
|
+
if (!(await shiftFor(ctx, url, req, params.id, identity)))
|
|
935
|
+
return notFound(ctx, url, req);
|
|
936
|
+
const result = (await ctx.call('pos.closeSession', {
|
|
937
|
+
id: params.id,
|
|
938
|
+
expectedRevision: request.body.expectedRevision,
|
|
939
|
+
closingCash: request.body.countedCash,
|
|
940
|
+
closingNotes: request.body.closingNotes,
|
|
941
|
+
varianceReason: request.body.varianceReason,
|
|
942
|
+
varianceNote: request.body.varianceNote,
|
|
943
|
+
}, url, req, commandOptions(identity, 'shift.close', key)));
|
|
944
|
+
if (result.ok !== true)
|
|
945
|
+
return failure(ctx, url, req, result);
|
|
946
|
+
return shiftResult(ctx, url, req, params.id, identity);
|
|
947
|
+
},
|
|
948
|
+
}), defineChannelRoute({
|
|
949
|
+
profile: 'pos',
|
|
950
|
+
method: 'POST',
|
|
951
|
+
path: 'shifts/{id}/variance/recount',
|
|
952
|
+
operationId: 'pos.shifts.variance.recount',
|
|
953
|
+
summary: 'Record a manager recount and close the shift when the corrected count is within tolerance.',
|
|
954
|
+
auth: 'required',
|
|
955
|
+
capability: { key: 'pos.shifts', action: 'approve_variance' },
|
|
956
|
+
request: {
|
|
957
|
+
params: idParams,
|
|
958
|
+
body: {
|
|
959
|
+
type: 'object',
|
|
960
|
+
additionalProperties: false,
|
|
961
|
+
properties: { expectedRevision: integer, countedCash: string, note: string },
|
|
962
|
+
required: ['expectedRevision', 'countedCash'],
|
|
963
|
+
},
|
|
964
|
+
},
|
|
965
|
+
responses: {
|
|
966
|
+
'200': envelope(shift),
|
|
967
|
+
'404': envelope(object),
|
|
968
|
+
'409': envelope(object),
|
|
969
|
+
'422': envelope(object),
|
|
970
|
+
},
|
|
971
|
+
idempotent: true,
|
|
972
|
+
handler: async (ctx, url, req, params, request) => {
|
|
973
|
+
const key = keyOf(ctx, url, req);
|
|
974
|
+
if (typeof key !== 'string')
|
|
975
|
+
return key;
|
|
976
|
+
const identity = request.identity;
|
|
977
|
+
if (!(await managerShiftFor(ctx, url, req, params.id, identity)))
|
|
978
|
+
return notFound(ctx, url, req);
|
|
979
|
+
const result = (await ctx.call('pos.recountSession', {
|
|
980
|
+
id: params.id,
|
|
981
|
+
expectedRevision: request.body.expectedRevision,
|
|
982
|
+
countedCash: request.body.countedCash,
|
|
983
|
+
reviewedBy: identity.operatorId,
|
|
984
|
+
note: request.body.note,
|
|
985
|
+
}, url, req, commandOptions(identity, 'shift.variance.recount', key)));
|
|
986
|
+
if (result.ok !== true)
|
|
987
|
+
return failure(ctx, url, req, result);
|
|
988
|
+
const row = (await ctx.call('pos.getSession', { id: params.id }, url, req));
|
|
989
|
+
return { data: projectShift(row), headers: { etag: `"pos-shift-${Number(row.revision ?? 0)}"` } };
|
|
990
|
+
},
|
|
991
|
+
}), defineChannelRoute({
|
|
992
|
+
profile: 'pos',
|
|
993
|
+
method: 'POST',
|
|
994
|
+
path: 'shifts/{id}/variance/approve',
|
|
995
|
+
operationId: 'pos.shifts.variance.approve',
|
|
996
|
+
summary: 'Approve a sealed real variance and post a separate cash over/short adjustment.',
|
|
997
|
+
auth: 'required',
|
|
998
|
+
capability: { key: 'pos.shifts', action: 'approve_variance' },
|
|
999
|
+
request: {
|
|
1000
|
+
params: idParams,
|
|
1001
|
+
body: {
|
|
1002
|
+
type: 'object',
|
|
1003
|
+
additionalProperties: false,
|
|
1004
|
+
properties: { expectedRevision: integer, note: string },
|
|
1005
|
+
required: ['expectedRevision'],
|
|
1006
|
+
},
|
|
1007
|
+
},
|
|
1008
|
+
responses: {
|
|
1009
|
+
'200': envelope(shift),
|
|
1010
|
+
'404': envelope(object),
|
|
1011
|
+
'409': envelope(object),
|
|
1012
|
+
'422': envelope(object),
|
|
1013
|
+
},
|
|
1014
|
+
idempotent: true,
|
|
1015
|
+
handler: async (ctx, url, req, params, request) => {
|
|
1016
|
+
const key = keyOf(ctx, url, req);
|
|
1017
|
+
if (typeof key !== 'string')
|
|
1018
|
+
return key;
|
|
1019
|
+
const identity = request.identity;
|
|
1020
|
+
if (!(await managerShiftFor(ctx, url, req, params.id, identity)))
|
|
1021
|
+
return notFound(ctx, url, req);
|
|
1022
|
+
const result = (await ctx.call('pos.approveSessionVariance', {
|
|
1023
|
+
id: params.id,
|
|
1024
|
+
expectedRevision: request.body.expectedRevision,
|
|
1025
|
+
approvedBy: identity.operatorId,
|
|
1026
|
+
note: request.body.note,
|
|
1027
|
+
}, url, req, commandOptions(identity, 'shift.variance.approve', key)));
|
|
1028
|
+
if (result.ok !== true)
|
|
1029
|
+
return failure(ctx, url, req, result);
|
|
1030
|
+
const row = (await ctx.call('pos.getSession', { id: params.id }, url, req));
|
|
1031
|
+
return { data: projectShift(row), headers: { etag: `"pos-shift-${Number(row.revision ?? 0)}"` } };
|
|
1032
|
+
},
|
|
1033
|
+
}), defineChannelRoute({
|
|
1034
|
+
profile: 'pos',
|
|
1035
|
+
method: 'POST',
|
|
1036
|
+
path: 'orders',
|
|
1037
|
+
operationId: 'pos.orders.create',
|
|
1038
|
+
summary: 'Create or replay one empty revisioned POS draft owned by this device.',
|
|
1039
|
+
auth: 'required',
|
|
1040
|
+
request: {
|
|
1041
|
+
body: {
|
|
1042
|
+
type: 'object',
|
|
1043
|
+
additionalProperties: false,
|
|
1044
|
+
properties: {
|
|
1045
|
+
uuid: string,
|
|
1046
|
+
shiftId: string,
|
|
1047
|
+
customerId: string,
|
|
1048
|
+
note: string,
|
|
1049
|
+
priceBookRevision: string,
|
|
1050
|
+
},
|
|
1051
|
+
required: ['uuid', 'shiftId', 'priceBookRevision'],
|
|
1052
|
+
},
|
|
1053
|
+
},
|
|
1054
|
+
responses: {
|
|
1055
|
+
'200': envelope(order),
|
|
1056
|
+
'400': envelope(object),
|
|
1057
|
+
'404': envelope(object),
|
|
1058
|
+
'409': envelope(object),
|
|
1059
|
+
'422': envelope(object),
|
|
1060
|
+
},
|
|
1061
|
+
idempotent: true,
|
|
1062
|
+
handler: async (ctx, url, req, _params, request) => {
|
|
1063
|
+
const key = keyOf(ctx, url, req);
|
|
1064
|
+
if (typeof key !== 'string')
|
|
1065
|
+
return key;
|
|
1066
|
+
const identity = request.identity;
|
|
1067
|
+
if (!(await shiftFor(ctx, url, req, String(request.body.shiftId), identity)))
|
|
1068
|
+
return notFound(ctx, url, req);
|
|
1069
|
+
const id = channelCommandId('order', identity, String(request.body.uuid));
|
|
1070
|
+
const result = (await ctx.call('pos.createOrder', {
|
|
1071
|
+
id,
|
|
1072
|
+
uuid: request.body.uuid,
|
|
1073
|
+
sessionId: request.body.shiftId,
|
|
1074
|
+
partnerId: request.body.customerId,
|
|
1075
|
+
note: request.body.note,
|
|
1076
|
+
operatorId: identity.operatorId,
|
|
1077
|
+
deviceId: identity.deviceId,
|
|
1078
|
+
priceBookRevision: request.body.priceBookRevision,
|
|
1079
|
+
}, url, req, commandOptions(identity, 'order.create', key)));
|
|
1080
|
+
if (result.ok !== true)
|
|
1081
|
+
return failure(ctx, url, req, result);
|
|
1082
|
+
return orderResult(ctx, url, req, String(result.id), identity);
|
|
1083
|
+
},
|
|
1084
|
+
}), defineChannelRoute({
|
|
1085
|
+
profile: 'pos',
|
|
1086
|
+
method: 'GET',
|
|
1087
|
+
path: 'orders/{id}/detail',
|
|
1088
|
+
operationId: 'pos.orders.get',
|
|
1089
|
+
summary: 'Read one canonical revisioned POS order.',
|
|
1090
|
+
auth: 'required',
|
|
1091
|
+
request: { params: idParams },
|
|
1092
|
+
responses: { '200': envelope(order), '404': envelope(object) },
|
|
1093
|
+
handler: (ctx, url, req, params, request) => orderResult(ctx, url, req, params.id, request.identity),
|
|
1094
|
+
}), defineChannelRoute({
|
|
1095
|
+
profile: 'pos',
|
|
1096
|
+
method: 'GET',
|
|
1097
|
+
path: 'orders/{id}/receipt',
|
|
1098
|
+
operationId: 'pos.orders.receipt.get',
|
|
1099
|
+
summary: 'Read the immutable receipt snapshot committed when this order was paid.',
|
|
1100
|
+
auth: 'required',
|
|
1101
|
+
request: { params: idParams },
|
|
1102
|
+
responses: { '200': envelope(receipt), '404': envelope(object) },
|
|
1103
|
+
handler: async (ctx, url, req, params, request) => {
|
|
1104
|
+
const orderRow = await orderFor(ctx, url, req, params.id, request.identity);
|
|
1105
|
+
if (!orderRow || !['paid', 'done'].includes(String(orderRow.state)))
|
|
1106
|
+
return notFound(ctx, url, req);
|
|
1107
|
+
const row = (await ctx.call('pos.getReceipt', { orderId: params.id }, url, req));
|
|
1108
|
+
return row ? { data: projectReceipt(row) } : notFound(ctx, url, req);
|
|
1109
|
+
},
|
|
1110
|
+
}), defineChannelRoute({
|
|
1111
|
+
profile: 'pos',
|
|
1112
|
+
method: 'GET',
|
|
1113
|
+
path: 'orders/{id}/return-eligibility',
|
|
1114
|
+
operationId: 'pos.orders.returnEligibility',
|
|
1115
|
+
summary: 'Read remaining return capacity from the immutable sale and its return history.',
|
|
1116
|
+
auth: 'required',
|
|
1117
|
+
request: { params: idParams },
|
|
1118
|
+
responses: {
|
|
1119
|
+
'200': envelope(returnEligibility),
|
|
1120
|
+
'404': envelope(object),
|
|
1121
|
+
'422': envelope(object),
|
|
1122
|
+
},
|
|
1123
|
+
handler: async (ctx, url, req, params, request) => {
|
|
1124
|
+
const identity = request.identity;
|
|
1125
|
+
if (!(await orderFor(ctx, url, req, params.id, identity)))
|
|
1126
|
+
return notFound(ctx, url, req);
|
|
1127
|
+
const result = (await ctx.call('pos.getReturnEligibility', { id: params.id }, url, req));
|
|
1128
|
+
if (result.ok !== true)
|
|
1129
|
+
return failure(ctx, url, req, result);
|
|
1130
|
+
const data = {
|
|
1131
|
+
originalOrderId: String(result.originalOrderId),
|
|
1132
|
+
revision: Number(result.revision),
|
|
1133
|
+
refundable: Boolean(result.refundable),
|
|
1134
|
+
requiresFullReturn: Boolean(result.requiresFullReturn),
|
|
1135
|
+
standaloneAllowed: Boolean(result.standaloneAllowed),
|
|
1136
|
+
lines: Array.isArray(result.lines) ? result.lines : [],
|
|
1137
|
+
};
|
|
1138
|
+
return { data, headers: { etag: `"pos-return-${data.revision}"` } };
|
|
1139
|
+
},
|
|
1140
|
+
}), defineChannelRoute({
|
|
1141
|
+
profile: 'pos',
|
|
1142
|
+
method: 'POST',
|
|
1143
|
+
path: 'orders/{id}/returns',
|
|
1144
|
+
operationId: 'pos.orders.returns.create',
|
|
1145
|
+
summary: 'Create an immutable partial-return draft against remaining sale quantities.',
|
|
1146
|
+
auth: 'required',
|
|
1147
|
+
request: {
|
|
1148
|
+
params: idParams,
|
|
1149
|
+
body: {
|
|
1150
|
+
type: 'object',
|
|
1151
|
+
additionalProperties: false,
|
|
1152
|
+
properties: {
|
|
1153
|
+
shiftId: string,
|
|
1154
|
+
expectedRevision: integer,
|
|
1155
|
+
lines: {
|
|
1156
|
+
type: 'array',
|
|
1157
|
+
minItems: 1,
|
|
1158
|
+
items: {
|
|
1159
|
+
type: 'object',
|
|
1160
|
+
additionalProperties: false,
|
|
1161
|
+
properties: { lineId: string, quantity: string },
|
|
1162
|
+
required: ['lineId', 'quantity'],
|
|
1163
|
+
},
|
|
1164
|
+
},
|
|
1165
|
+
},
|
|
1166
|
+
required: ['shiftId', 'expectedRevision', 'lines'],
|
|
1167
|
+
},
|
|
1168
|
+
},
|
|
1169
|
+
responses: {
|
|
1170
|
+
'200': envelope(order),
|
|
1171
|
+
'400': envelope(object),
|
|
1172
|
+
'404': envelope(object),
|
|
1173
|
+
'409': envelope(object),
|
|
1174
|
+
'422': envelope(object),
|
|
1175
|
+
},
|
|
1176
|
+
idempotent: true,
|
|
1177
|
+
handler: async (ctx, url, req, params, request) => {
|
|
1178
|
+
const key = keyOf(ctx, url, req);
|
|
1179
|
+
if (typeof key !== 'string')
|
|
1180
|
+
return key;
|
|
1181
|
+
const identity = request.identity;
|
|
1182
|
+
const original = await orderFor(ctx, url, req, params.id, identity);
|
|
1183
|
+
const shift = await shiftFor(ctx, url, req, String(request.body.shiftId), identity);
|
|
1184
|
+
if (!original || !shift)
|
|
1185
|
+
return notFound(ctx, url, req);
|
|
1186
|
+
const id = channelCommandId('return', identity, `${params.id}\n${key}`);
|
|
1187
|
+
const functionName = await lifecycleFunction(ctx, req, 'loyalty_pos.refundOrder', 'pos.refundOrder');
|
|
1188
|
+
const result = (await ctx.call(functionName, {
|
|
1189
|
+
id,
|
|
1190
|
+
uuid: id,
|
|
1191
|
+
originalOrderId: params.id,
|
|
1192
|
+
sessionId: request.body.shiftId,
|
|
1193
|
+
expectedRevision: request.body.expectedRevision,
|
|
1194
|
+
lines: request.body.lines,
|
|
1195
|
+
operatorId: identity.operatorId,
|
|
1196
|
+
deviceId: identity.deviceId,
|
|
1197
|
+
}, url, req, commandOptions(identity, 'order.return.create', key)));
|
|
1198
|
+
if (result.ok !== true)
|
|
1199
|
+
return failure(ctx, url, req, result);
|
|
1200
|
+
return orderResult(ctx, url, req, String(result.id), identity);
|
|
1201
|
+
},
|
|
1202
|
+
}), defineChannelRoute({
|
|
1203
|
+
profile: 'pos',
|
|
1204
|
+
method: 'POST',
|
|
1205
|
+
path: 'orders/{id}/exchanges',
|
|
1206
|
+
operationId: 'pos.orders.exchanges.create',
|
|
1207
|
+
summary: 'Create linked return and replacement drafts for one paid sale.',
|
|
1208
|
+
auth: 'required',
|
|
1209
|
+
request: {
|
|
1210
|
+
params: idParams,
|
|
1211
|
+
body: {
|
|
1212
|
+
type: 'object',
|
|
1213
|
+
additionalProperties: false,
|
|
1214
|
+
properties: {
|
|
1215
|
+
uuid: string,
|
|
1216
|
+
shiftId: string,
|
|
1217
|
+
expectedRevision: integer,
|
|
1218
|
+
reason: string,
|
|
1219
|
+
lines: {
|
|
1220
|
+
type: 'array',
|
|
1221
|
+
minItems: 1,
|
|
1222
|
+
items: {
|
|
1223
|
+
type: 'object',
|
|
1224
|
+
additionalProperties: false,
|
|
1225
|
+
properties: { lineId: string, quantity: string },
|
|
1226
|
+
required: ['lineId', 'quantity'],
|
|
1227
|
+
},
|
|
1228
|
+
},
|
|
1229
|
+
replacement: {
|
|
1230
|
+
type: 'object',
|
|
1231
|
+
additionalProperties: false,
|
|
1232
|
+
properties: { priceBookRevision: string, note: string },
|
|
1233
|
+
required: ['priceBookRevision'],
|
|
1234
|
+
},
|
|
1235
|
+
},
|
|
1236
|
+
required: ['uuid', 'shiftId', 'expectedRevision', 'reason', 'lines', 'replacement'],
|
|
1237
|
+
},
|
|
1238
|
+
},
|
|
1239
|
+
responses: {
|
|
1240
|
+
'200': envelope(exchangeDraft),
|
|
1241
|
+
'400': envelope(object),
|
|
1242
|
+
'404': envelope(object),
|
|
1243
|
+
'409': envelope(object),
|
|
1244
|
+
'422': envelope(object),
|
|
1245
|
+
},
|
|
1246
|
+
idempotent: true,
|
|
1247
|
+
handler: async (ctx, url, req, params, request) => {
|
|
1248
|
+
const key = keyOf(ctx, url, req);
|
|
1249
|
+
if (typeof key !== 'string')
|
|
1250
|
+
return key;
|
|
1251
|
+
const identity = request.identity;
|
|
1252
|
+
const original = await orderFor(ctx, url, req, params.id, identity);
|
|
1253
|
+
const shift = await shiftFor(ctx, url, req, String(request.body.shiftId), identity);
|
|
1254
|
+
if (!original || !shift)
|
|
1255
|
+
return notFound(ctx, url, req);
|
|
1256
|
+
const id = channelCommandId('exchange', identity, String(request.body.uuid));
|
|
1257
|
+
const functionName = await lifecycleFunction(ctx, req, 'loyalty_pos.createExchange', 'pos.createExchange');
|
|
1258
|
+
const result = (await ctx.call(functionName, {
|
|
1259
|
+
id,
|
|
1260
|
+
uuid: request.body.uuid,
|
|
1261
|
+
originalOrderId: params.id,
|
|
1262
|
+
sessionId: request.body.shiftId,
|
|
1263
|
+
expectedRevision: request.body.expectedRevision,
|
|
1264
|
+
lines: request.body.lines,
|
|
1265
|
+
reason: request.body.reason,
|
|
1266
|
+
replacementPriceBookRevision: request.body.replacement.priceBookRevision,
|
|
1267
|
+
replacementNote: request.body.replacement.note,
|
|
1268
|
+
operatorId: identity.operatorId,
|
|
1269
|
+
deviceId: identity.deviceId,
|
|
1270
|
+
}, url, req, commandOptions(identity, 'order.exchange.create', key)));
|
|
1271
|
+
if (result.ok !== true)
|
|
1272
|
+
return failure(ctx, url, req, result);
|
|
1273
|
+
const returnRow = await orderFor(ctx, url, req, String(result.returnOrderId), identity);
|
|
1274
|
+
const replacementRow = await orderFor(ctx, url, req, String(result.replacementOrderId), identity);
|
|
1275
|
+
if (!returnRow || !replacementRow)
|
|
1276
|
+
return notFound(ctx, url, req);
|
|
1277
|
+
const data = {
|
|
1278
|
+
id: String(result.id),
|
|
1279
|
+
uuid: String(result.uuid),
|
|
1280
|
+
originalOrderId: String(result.originalOrderId),
|
|
1281
|
+
returnOrderId: String(result.returnOrderId),
|
|
1282
|
+
replacementOrderId: String(result.replacementOrderId),
|
|
1283
|
+
originalRevision: Number(result.originalRevision),
|
|
1284
|
+
reason: String(result.reason),
|
|
1285
|
+
createdAt: String(result.createdAt),
|
|
1286
|
+
returnOrder: projectOrder(returnRow),
|
|
1287
|
+
replacementOrder: projectOrder(replacementRow),
|
|
1288
|
+
};
|
|
1289
|
+
return {
|
|
1290
|
+
data,
|
|
1291
|
+
headers: {
|
|
1292
|
+
etag: `"pos-exchange-${data.returnOrder.revision}-${data.replacementOrder.revision}"`,
|
|
1293
|
+
},
|
|
1294
|
+
};
|
|
1295
|
+
},
|
|
1296
|
+
}), defineChannelRoute({
|
|
1297
|
+
profile: 'pos',
|
|
1298
|
+
method: 'PATCH',
|
|
1299
|
+
path: 'orders/{id}/update',
|
|
1300
|
+
operationId: 'pos.orders.update',
|
|
1301
|
+
summary: 'Update customer or note under the order revision.',
|
|
1302
|
+
auth: 'required',
|
|
1303
|
+
request: {
|
|
1304
|
+
params: idParams,
|
|
1305
|
+
body: {
|
|
1306
|
+
type: 'object',
|
|
1307
|
+
additionalProperties: false,
|
|
1308
|
+
properties: { expectedRevision: integer, customerId: nullableString, note: string },
|
|
1309
|
+
required: ['expectedRevision'],
|
|
1310
|
+
},
|
|
1311
|
+
},
|
|
1312
|
+
responses: {
|
|
1313
|
+
'200': envelope(order),
|
|
1314
|
+
'404': envelope(object),
|
|
1315
|
+
'409': envelope(object),
|
|
1316
|
+
'422': envelope(object),
|
|
1317
|
+
},
|
|
1318
|
+
idempotent: true,
|
|
1319
|
+
handler: async (ctx, url, req, params, request) => {
|
|
1320
|
+
const key = keyOf(ctx, url, req);
|
|
1321
|
+
if (typeof key !== 'string')
|
|
1322
|
+
return key;
|
|
1323
|
+
const identity = request.identity;
|
|
1324
|
+
if (!(await orderFor(ctx, url, req, params.id, identity)))
|
|
1325
|
+
return notFound(ctx, url, req);
|
|
1326
|
+
const result = (await ctx.call('pos.updateOrder', {
|
|
1327
|
+
id: params.id,
|
|
1328
|
+
expectedRevision: request.body.expectedRevision,
|
|
1329
|
+
partnerId: request.body.customerId ?? undefined,
|
|
1330
|
+
clearPartner: request.body.customerId === null,
|
|
1331
|
+
note: request.body.note,
|
|
1332
|
+
}, url, req, commandOptions(identity, 'order.update', key)));
|
|
1333
|
+
if (result.ok !== true)
|
|
1334
|
+
return failure(ctx, url, req, result);
|
|
1335
|
+
return orderResult(ctx, url, req, params.id, identity);
|
|
1336
|
+
},
|
|
1337
|
+
}), defineChannelRoute({
|
|
1338
|
+
profile: 'pos',
|
|
1339
|
+
method: 'POST',
|
|
1340
|
+
path: 'orders/{id}/lines',
|
|
1341
|
+
operationId: 'pos.orders.lines.add',
|
|
1342
|
+
summary: 'Add one canonically quoted line under the order revision.',
|
|
1343
|
+
auth: 'required',
|
|
1344
|
+
request: {
|
|
1345
|
+
params: idParams,
|
|
1346
|
+
body: {
|
|
1347
|
+
type: 'object',
|
|
1348
|
+
additionalProperties: false,
|
|
1349
|
+
properties: {
|
|
1350
|
+
expectedRevision: integer,
|
|
1351
|
+
productId: string,
|
|
1352
|
+
uomId: string,
|
|
1353
|
+
quantity: string,
|
|
1354
|
+
quoteRevision: string,
|
|
1355
|
+
},
|
|
1356
|
+
required: ['expectedRevision', 'productId', 'uomId', 'quantity', 'quoteRevision'],
|
|
1357
|
+
},
|
|
1358
|
+
},
|
|
1359
|
+
responses: {
|
|
1360
|
+
'200': envelope(order),
|
|
1361
|
+
'404': envelope(object),
|
|
1362
|
+
'409': envelope(object),
|
|
1363
|
+
'422': envelope(object),
|
|
1364
|
+
},
|
|
1365
|
+
idempotent: true,
|
|
1366
|
+
handler: async (ctx, url, req, params, request) => {
|
|
1367
|
+
const key = keyOf(ctx, url, req);
|
|
1368
|
+
if (typeof key !== 'string')
|
|
1369
|
+
return key;
|
|
1370
|
+
const identity = request.identity;
|
|
1371
|
+
const held = await orderFor(ctx, url, req, params.id, identity);
|
|
1372
|
+
if (!held)
|
|
1373
|
+
return notFound(ctx, url, req);
|
|
1374
|
+
const current = (await ctx.call('pos_channel.priceBook', { posConfigId: identity.posConfigId, limit: 1 }, url, req));
|
|
1375
|
+
if (String(held.priceBookRevision ?? '') !== String(request.body.quoteRevision) ||
|
|
1376
|
+
String(current.revision ?? '') !== String(request.body.quoteRevision))
|
|
1377
|
+
return failure(ctx, url, req, invalid('quoteRevision', 'the price book changed; reload it'));
|
|
1378
|
+
const result = (await ctx.call('pos.addLine', {
|
|
1379
|
+
id: channelCommandId('line', identity, `${params.id}\n${key}`),
|
|
1380
|
+
orderId: params.id,
|
|
1381
|
+
productId: request.body.productId,
|
|
1382
|
+
productUomId: request.body.uomId,
|
|
1383
|
+
qty: request.body.quantity,
|
|
1384
|
+
quoteRevision: request.body.quoteRevision,
|
|
1385
|
+
expectedRevision: request.body.expectedRevision,
|
|
1386
|
+
}, url, req, commandOptions(identity, 'order.line.add', key)));
|
|
1387
|
+
if (result.ok !== true)
|
|
1388
|
+
return failure(ctx, url, req, result);
|
|
1389
|
+
return orderResult(ctx, url, req, params.id, identity);
|
|
1390
|
+
},
|
|
1391
|
+
}), defineChannelRoute({
|
|
1392
|
+
profile: 'pos',
|
|
1393
|
+
method: 'PATCH',
|
|
1394
|
+
path: 'orders/{id}/lines/{lineId}/update',
|
|
1395
|
+
operationId: 'pos.orders.lines.update',
|
|
1396
|
+
summary: 'Requote and update one member line under the order revision.',
|
|
1397
|
+
auth: 'required',
|
|
1398
|
+
request: {
|
|
1399
|
+
params: lineParams,
|
|
1400
|
+
body: {
|
|
1401
|
+
type: 'object',
|
|
1402
|
+
additionalProperties: false,
|
|
1403
|
+
properties: {
|
|
1404
|
+
expectedRevision: integer,
|
|
1405
|
+
quantity: string,
|
|
1406
|
+
quoteRevision: string,
|
|
1407
|
+
sequence: integer,
|
|
1408
|
+
},
|
|
1409
|
+
required: ['expectedRevision', 'quantity'],
|
|
1410
|
+
},
|
|
1411
|
+
},
|
|
1412
|
+
responses: {
|
|
1413
|
+
'200': envelope(order),
|
|
1414
|
+
'404': envelope(object),
|
|
1415
|
+
'409': envelope(object),
|
|
1416
|
+
'422': envelope(object),
|
|
1417
|
+
},
|
|
1418
|
+
idempotent: true,
|
|
1419
|
+
handler: async (ctx, url, req, params, request) => {
|
|
1420
|
+
const key = keyOf(ctx, url, req);
|
|
1421
|
+
if (typeof key !== 'string')
|
|
1422
|
+
return key;
|
|
1423
|
+
const identity = request.identity;
|
|
1424
|
+
if (!(await orderFor(ctx, url, req, params.id, identity)))
|
|
1425
|
+
return notFound(ctx, url, req);
|
|
1426
|
+
const result = (await ctx.call('pos.updateLine', {
|
|
1427
|
+
id: params.lineId,
|
|
1428
|
+
orderId: params.id,
|
|
1429
|
+
expectedRevision: request.body.expectedRevision,
|
|
1430
|
+
qty: request.body.quantity,
|
|
1431
|
+
quoteRevision: request.body.quoteRevision,
|
|
1432
|
+
sequence: request.body.sequence,
|
|
1433
|
+
}, url, req, commandOptions(identity, 'order.line.update', key)));
|
|
1434
|
+
if (result.ok !== true)
|
|
1435
|
+
return failure(ctx, url, req, result);
|
|
1436
|
+
return orderResult(ctx, url, req, params.id, identity);
|
|
1437
|
+
},
|
|
1438
|
+
}), defineChannelRoute({
|
|
1439
|
+
profile: 'pos',
|
|
1440
|
+
method: 'GET',
|
|
1441
|
+
path: 'orders/{id}/lines/{lineId}/lot-availability',
|
|
1442
|
+
operationId: 'pos.orders.lines.lotAvailability',
|
|
1443
|
+
summary: 'Read warehouse-scoped lot or serial availability for one tracked order line.',
|
|
1444
|
+
auth: 'required',
|
|
1445
|
+
request: { params: lineParams },
|
|
1446
|
+
responses: {
|
|
1447
|
+
'200': envelope(lotAvailability),
|
|
1448
|
+
'404': envelope(object),
|
|
1449
|
+
'409': envelope(object),
|
|
1450
|
+
'422': envelope(object),
|
|
1451
|
+
},
|
|
1452
|
+
handler: async (ctx, url, req, params, request) => {
|
|
1453
|
+
const identity = request.identity;
|
|
1454
|
+
if (!(await orderFor(ctx, url, req, params.id, identity)))
|
|
1455
|
+
return notFound(ctx, url, req);
|
|
1456
|
+
const held = (await ctx.call('pos.getLineTrackingAvailability', { orderId: params.id, lineId: params.lineId }, url, req));
|
|
1457
|
+
return held ? { data: held } : notFound(ctx, url, req);
|
|
1458
|
+
},
|
|
1459
|
+
}), defineChannelRoute({
|
|
1460
|
+
profile: 'pos',
|
|
1461
|
+
method: 'PUT',
|
|
1462
|
+
path: 'orders/{id}/lines/{lineId}/lot-selections',
|
|
1463
|
+
operationId: 'pos.orders.lines.lots.select',
|
|
1464
|
+
summary: 'Persist an exact revision-bound lot or serial selection on one draft line.',
|
|
1465
|
+
auth: 'required',
|
|
1466
|
+
request: {
|
|
1467
|
+
params: lineParams,
|
|
1468
|
+
body: {
|
|
1469
|
+
type: 'object',
|
|
1470
|
+
additionalProperties: false,
|
|
1471
|
+
properties: {
|
|
1472
|
+
expectedRevision: integer,
|
|
1473
|
+
selections: {
|
|
1474
|
+
type: 'array',
|
|
1475
|
+
minItems: 1,
|
|
1476
|
+
items: {
|
|
1477
|
+
type: 'object',
|
|
1478
|
+
additionalProperties: false,
|
|
1479
|
+
properties: { lotId: string, quantity: string, stockRevision: string },
|
|
1480
|
+
required: ['lotId', 'quantity', 'stockRevision'],
|
|
1481
|
+
},
|
|
1482
|
+
},
|
|
1483
|
+
},
|
|
1484
|
+
required: ['expectedRevision', 'selections'],
|
|
1485
|
+
},
|
|
1486
|
+
},
|
|
1487
|
+
responses: {
|
|
1488
|
+
'200': envelope(order),
|
|
1489
|
+
'404': envelope(object),
|
|
1490
|
+
'409': envelope(object),
|
|
1491
|
+
'422': envelope(object),
|
|
1492
|
+
},
|
|
1493
|
+
idempotent: true,
|
|
1494
|
+
handler: async (ctx, url, req, params, request) => {
|
|
1495
|
+
const key = keyOf(ctx, url, req);
|
|
1496
|
+
if (typeof key !== 'string')
|
|
1497
|
+
return key;
|
|
1498
|
+
const identity = request.identity;
|
|
1499
|
+
if (!(await orderFor(ctx, url, req, params.id, identity)))
|
|
1500
|
+
return notFound(ctx, url, req);
|
|
1501
|
+
const result = (await ctx.call('pos.setLineLotSelections', {
|
|
1502
|
+
orderId: params.id,
|
|
1503
|
+
lineId: params.lineId,
|
|
1504
|
+
expectedRevision: request.body.expectedRevision,
|
|
1505
|
+
selections: request.body.selections,
|
|
1506
|
+
}, url, req, commandOptions(identity, 'order.line.lots.select', key)));
|
|
1507
|
+
if (result.ok !== true)
|
|
1508
|
+
return failure(ctx, url, req, result);
|
|
1509
|
+
return orderResult(ctx, url, req, params.id, identity);
|
|
1510
|
+
},
|
|
1511
|
+
}), ...['discount', 'price-override'].map((action) => defineChannelRoute({
|
|
1512
|
+
profile: 'pos',
|
|
1513
|
+
method: 'POST',
|
|
1514
|
+
path: `orders/{id}/lines/{lineId}/${action}`,
|
|
1515
|
+
operationId: `pos.orders.lines.${action === 'discount' ? 'discount' : 'priceOverride'}`,
|
|
1516
|
+
summary: action === 'discount'
|
|
1517
|
+
? 'Apply a staff-authorized line discount.'
|
|
1518
|
+
: 'Apply a manager-authorized manual unit price with an audit reason.',
|
|
1519
|
+
auth: 'required',
|
|
1520
|
+
capability: {
|
|
1521
|
+
key: 'pos.orders',
|
|
1522
|
+
action: action === 'discount' ? 'discount' : 'override_price',
|
|
1523
|
+
},
|
|
1524
|
+
request: {
|
|
1525
|
+
params: lineParams,
|
|
1526
|
+
body: {
|
|
1527
|
+
type: 'object',
|
|
1528
|
+
additionalProperties: false,
|
|
1529
|
+
properties: {
|
|
1530
|
+
expectedRevision: integer,
|
|
1531
|
+
...(action === 'discount' ? { discount: string } : { unitPrice: string, reason: string }),
|
|
1532
|
+
},
|
|
1533
|
+
required: action === 'discount'
|
|
1534
|
+
? ['expectedRevision', 'discount']
|
|
1535
|
+
: ['expectedRevision', 'unitPrice', 'reason'],
|
|
1536
|
+
},
|
|
1537
|
+
},
|
|
1538
|
+
responses: {
|
|
1539
|
+
'200': envelope(order),
|
|
1540
|
+
'404': envelope(object),
|
|
1541
|
+
'409': envelope(object),
|
|
1542
|
+
'422': envelope(object),
|
|
1543
|
+
},
|
|
1544
|
+
idempotent: true,
|
|
1545
|
+
handler: async (ctx, url, req, params, request) => {
|
|
1546
|
+
const key = keyOf(ctx, url, req);
|
|
1547
|
+
if (typeof key !== 'string')
|
|
1548
|
+
return key;
|
|
1549
|
+
const identity = request.identity;
|
|
1550
|
+
const held = await orderFor(ctx, url, req, params.id, identity);
|
|
1551
|
+
if (!held)
|
|
1552
|
+
return notFound(ctx, url, req);
|
|
1553
|
+
const line = (Array.isArray(held.lines) ? held.lines : []).find((candidate) => String(candidate.id) === params.lineId);
|
|
1554
|
+
if (!line)
|
|
1555
|
+
return notFound(ctx, url, req);
|
|
1556
|
+
const result = (await ctx.call('pos.updateLine', {
|
|
1557
|
+
id: params.lineId,
|
|
1558
|
+
orderId: params.id,
|
|
1559
|
+
expectedRevision: request.body.expectedRevision,
|
|
1560
|
+
qty: line.qty,
|
|
1561
|
+
...(action === 'discount'
|
|
1562
|
+
? { discount: request.body.discount }
|
|
1563
|
+
: {
|
|
1564
|
+
priceUnit: request.body.unitPrice,
|
|
1565
|
+
overrideReason: request.body.reason,
|
|
1566
|
+
}),
|
|
1567
|
+
overrideBy: identity.operatorId,
|
|
1568
|
+
}, url, req, commandOptions(identity, `order.line.${action}`, key)));
|
|
1569
|
+
if (result.ok !== true)
|
|
1570
|
+
return failure(ctx, url, req, result);
|
|
1571
|
+
return orderResult(ctx, url, req, params.id, identity);
|
|
1572
|
+
},
|
|
1573
|
+
})), defineChannelRoute({
|
|
1574
|
+
profile: 'pos',
|
|
1575
|
+
method: 'DELETE',
|
|
1576
|
+
path: 'orders/{id}/lines/{lineId}/remove',
|
|
1577
|
+
operationId: 'pos.orders.lines.remove',
|
|
1578
|
+
summary: 'Remove one member line under the order revision.',
|
|
1579
|
+
auth: 'required',
|
|
1580
|
+
request: { params: lineParams, body: expectedBody },
|
|
1581
|
+
responses: {
|
|
1582
|
+
'200': envelope(order),
|
|
1583
|
+
'404': envelope(object),
|
|
1584
|
+
'409': envelope(object),
|
|
1585
|
+
'422': envelope(object),
|
|
1586
|
+
},
|
|
1587
|
+
idempotent: true,
|
|
1588
|
+
handler: async (ctx, url, req, params, request) => {
|
|
1589
|
+
const key = keyOf(ctx, url, req);
|
|
1590
|
+
if (typeof key !== 'string')
|
|
1591
|
+
return key;
|
|
1592
|
+
const identity = request.identity;
|
|
1593
|
+
if (!(await orderFor(ctx, url, req, params.id, identity)))
|
|
1594
|
+
return notFound(ctx, url, req);
|
|
1595
|
+
const result = (await ctx.call('pos.removeLine', { id: params.lineId, orderId: params.id, expectedRevision: request.body.expectedRevision }, url, req, commandOptions(identity, 'order.line.remove', key)));
|
|
1596
|
+
if (result.ok !== true)
|
|
1597
|
+
return failure(ctx, url, req, result);
|
|
1598
|
+
return orderResult(ctx, url, req, params.id, identity);
|
|
1599
|
+
},
|
|
1600
|
+
}), defineChannelRoute({
|
|
1601
|
+
profile: 'pos',
|
|
1602
|
+
method: 'POST',
|
|
1603
|
+
path: 'orders/{id}/lines/reorder',
|
|
1604
|
+
operationId: 'pos.orders.lines.reorder',
|
|
1605
|
+
summary: 'Replace line order using an exact membership list.',
|
|
1606
|
+
auth: 'required',
|
|
1607
|
+
request: {
|
|
1608
|
+
params: idParams,
|
|
1609
|
+
body: {
|
|
1610
|
+
type: 'object',
|
|
1611
|
+
additionalProperties: false,
|
|
1612
|
+
properties: { expectedRevision: integer, lineIds: { type: 'array', items: string } },
|
|
1613
|
+
required: ['expectedRevision', 'lineIds'],
|
|
1614
|
+
},
|
|
1615
|
+
},
|
|
1616
|
+
responses: {
|
|
1617
|
+
'200': envelope(order),
|
|
1618
|
+
'404': envelope(object),
|
|
1619
|
+
'409': envelope(object),
|
|
1620
|
+
'422': envelope(object),
|
|
1621
|
+
},
|
|
1622
|
+
idempotent: true,
|
|
1623
|
+
handler: async (ctx, url, req, params, request) => {
|
|
1624
|
+
const key = keyOf(ctx, url, req);
|
|
1625
|
+
if (typeof key !== 'string')
|
|
1626
|
+
return key;
|
|
1627
|
+
const identity = request.identity;
|
|
1628
|
+
if (!(await orderFor(ctx, url, req, params.id, identity)))
|
|
1629
|
+
return notFound(ctx, url, req);
|
|
1630
|
+
const result = (await ctx.call('pos.reorderLines', { id: params.id, expectedRevision: request.body.expectedRevision, lineIds: request.body.lineIds }, url, req, commandOptions(identity, 'order.line.reorder', key)));
|
|
1631
|
+
if (result.ok !== true)
|
|
1632
|
+
return failure(ctx, url, req, result);
|
|
1633
|
+
return orderResult(ctx, url, req, params.id, identity);
|
|
1634
|
+
},
|
|
1635
|
+
}), defineChannelRoute({
|
|
1636
|
+
profile: 'pos',
|
|
1637
|
+
method: 'POST',
|
|
1638
|
+
path: 'orders/{id}/tenders',
|
|
1639
|
+
operationId: 'pos.orders.tenders.add',
|
|
1640
|
+
summary: 'Capture one cash or manual non-cash tender under the order revision.',
|
|
1641
|
+
auth: 'required',
|
|
1642
|
+
request: {
|
|
1643
|
+
params: idParams,
|
|
1644
|
+
body: {
|
|
1645
|
+
type: 'object',
|
|
1646
|
+
additionalProperties: false,
|
|
1647
|
+
properties: {
|
|
1648
|
+
expectedRevision: integer,
|
|
1649
|
+
paymentMethodId: string,
|
|
1650
|
+
tenderedAmount: string,
|
|
1651
|
+
reference: string,
|
|
1652
|
+
},
|
|
1653
|
+
required: ['expectedRevision', 'paymentMethodId', 'tenderedAmount'],
|
|
1654
|
+
},
|
|
1655
|
+
},
|
|
1656
|
+
responses: {
|
|
1657
|
+
'200': envelope(order),
|
|
1658
|
+
'404': envelope(object),
|
|
1659
|
+
'409': envelope(object),
|
|
1660
|
+
'422': envelope(object),
|
|
1661
|
+
},
|
|
1662
|
+
idempotent: true,
|
|
1663
|
+
handler: async (ctx, url, req, params, request) => {
|
|
1664
|
+
const key = keyOf(ctx, url, req);
|
|
1665
|
+
if (typeof key !== 'string')
|
|
1666
|
+
return key;
|
|
1667
|
+
const identity = request.identity;
|
|
1668
|
+
if (!(await orderFor(ctx, url, req, params.id, identity)))
|
|
1669
|
+
return notFound(ctx, url, req);
|
|
1670
|
+
const result = (await ctx.call('pos.addPayment', {
|
|
1671
|
+
id: channelCommandId('tender', identity, `${params.id}\n${key}`),
|
|
1672
|
+
orderId: params.id,
|
|
1673
|
+
expectedRevision: request.body.expectedRevision,
|
|
1674
|
+
paymentMethodId: request.body.paymentMethodId,
|
|
1675
|
+
tenderedAmount: request.body.tenderedAmount,
|
|
1676
|
+
reference: request.body.reference,
|
|
1677
|
+
operatorId: identity.operatorId,
|
|
1678
|
+
deviceId: identity.deviceId,
|
|
1679
|
+
}, url, req, commandOptions(identity, 'order.tender.add', key)));
|
|
1680
|
+
if (result.ok !== true)
|
|
1681
|
+
return failure(ctx, url, req, result);
|
|
1682
|
+
return orderResult(ctx, url, req, params.id, identity);
|
|
1683
|
+
},
|
|
1684
|
+
}), defineChannelRoute({
|
|
1685
|
+
profile: 'pos',
|
|
1686
|
+
method: 'POST',
|
|
1687
|
+
path: 'orders/{id}/tenders/{tenderId}/void',
|
|
1688
|
+
operationId: 'pos.orders.tenders.void',
|
|
1689
|
+
summary: 'Void one captured tender before finalization.',
|
|
1690
|
+
auth: 'required',
|
|
1691
|
+
request: {
|
|
1692
|
+
params: tenderParams,
|
|
1693
|
+
body: {
|
|
1694
|
+
type: 'object',
|
|
1695
|
+
additionalProperties: false,
|
|
1696
|
+
properties: { expectedRevision: integer, reason: string },
|
|
1697
|
+
required: ['expectedRevision', 'reason'],
|
|
1698
|
+
},
|
|
1699
|
+
},
|
|
1700
|
+
responses: {
|
|
1701
|
+
'200': envelope(order),
|
|
1702
|
+
'404': envelope(object),
|
|
1703
|
+
'409': envelope(object),
|
|
1704
|
+
'422': envelope(object),
|
|
1705
|
+
},
|
|
1706
|
+
idempotent: true,
|
|
1707
|
+
handler: async (ctx, url, req, params, request) => {
|
|
1708
|
+
const key = keyOf(ctx, url, req);
|
|
1709
|
+
if (typeof key !== 'string')
|
|
1710
|
+
return key;
|
|
1711
|
+
const identity = request.identity;
|
|
1712
|
+
if (!(await orderFor(ctx, url, req, params.id, identity)))
|
|
1713
|
+
return notFound(ctx, url, req);
|
|
1714
|
+
const result = (await ctx.call('pos.voidPayment', {
|
|
1715
|
+
id: params.tenderId,
|
|
1716
|
+
orderId: params.id,
|
|
1717
|
+
expectedRevision: request.body.expectedRevision,
|
|
1718
|
+
reason: request.body.reason,
|
|
1719
|
+
operatorId: identity.operatorId,
|
|
1720
|
+
}, url, req, commandOptions(identity, 'order.tender.void', key)));
|
|
1721
|
+
if (result.ok !== true)
|
|
1722
|
+
return failure(ctx, url, req, result);
|
|
1723
|
+
return orderResult(ctx, url, req, params.id, identity);
|
|
1724
|
+
},
|
|
1725
|
+
}), defineChannelRoute({
|
|
1726
|
+
profile: 'pos',
|
|
1727
|
+
method: 'POST',
|
|
1728
|
+
path: 'orders/{id}/finalize',
|
|
1729
|
+
operationId: 'pos.orders.finalize',
|
|
1730
|
+
summary: 'Finalize one fully covered order into stock, invoice and reconciled accounting.',
|
|
1731
|
+
auth: 'required',
|
|
1732
|
+
request: { params: idParams, body: expectedBody },
|
|
1733
|
+
responses: {
|
|
1734
|
+
'200': envelope(order),
|
|
1735
|
+
'404': envelope(object),
|
|
1736
|
+
'409': envelope(object),
|
|
1737
|
+
'422': envelope(object),
|
|
1738
|
+
},
|
|
1739
|
+
idempotent: true,
|
|
1740
|
+
handler: async (ctx, url, req, params, request) => {
|
|
1741
|
+
const key = keyOf(ctx, url, req);
|
|
1742
|
+
if (typeof key !== 'string')
|
|
1743
|
+
return key;
|
|
1744
|
+
const identity = request.identity;
|
|
1745
|
+
if (!(await orderFor(ctx, url, req, params.id, identity)))
|
|
1746
|
+
return notFound(ctx, url, req);
|
|
1747
|
+
const result = (await ctx.call(await lifecycleFunction(ctx, req, 'loyalty_pos.validateOrder', 'pos.validateOrder'), { id: params.id, expectedRevision: request.body.expectedRevision }, url, req, commandOptions(identity, 'order.finalize', key)));
|
|
1748
|
+
if (result.ok !== true)
|
|
1749
|
+
return failure(ctx, url, req, result);
|
|
1750
|
+
return orderResult(ctx, url, req, params.id, identity);
|
|
1751
|
+
},
|
|
1752
|
+
}), defineChannelRoute({
|
|
1753
|
+
profile: 'pos',
|
|
1754
|
+
method: 'POST',
|
|
1755
|
+
path: 'orders/{id}/cancel',
|
|
1756
|
+
operationId: 'pos.orders.cancel',
|
|
1757
|
+
summary: 'Cancel one draft under the order revision.',
|
|
1758
|
+
auth: 'required',
|
|
1759
|
+
request: { params: idParams, body: expectedBody },
|
|
1760
|
+
responses: {
|
|
1761
|
+
'200': envelope(order),
|
|
1762
|
+
'404': envelope(object),
|
|
1763
|
+
'409': envelope(object),
|
|
1764
|
+
'422': envelope(object),
|
|
1765
|
+
},
|
|
1766
|
+
idempotent: true,
|
|
1767
|
+
handler: async (ctx, url, req, params, request) => {
|
|
1768
|
+
const key = keyOf(ctx, url, req);
|
|
1769
|
+
if (typeof key !== 'string')
|
|
1770
|
+
return key;
|
|
1771
|
+
const identity = request.identity;
|
|
1772
|
+
if (!(await orderFor(ctx, url, req, params.id, identity)))
|
|
1773
|
+
return notFound(ctx, url, req);
|
|
1774
|
+
const result = (await ctx.call(await lifecycleFunction(ctx, req, 'loyalty_pos.cancelOrder', 'pos.cancelOrder'), { id: params.id, expectedRevision: request.body.expectedRevision }, url, req, commandOptions(identity, 'order.cancel', key)));
|
|
1775
|
+
if (result.ok !== true)
|
|
1776
|
+
return failure(ctx, url, req, result);
|
|
1777
|
+
return orderResult(ctx, url, req, params.id, identity);
|
|
1778
|
+
},
|
|
1779
|
+
}));
|
|
1780
|
+
export { commandOptions, failure as posFailure, keyOf as posCommandKey, lifecycleFunction as posLifecycleFunction, notFound as posNotFound, orderFor as posOrderFor, projectOrder as posProjectOrder, projectShift as posProjectShift, order as posOrderSchema, shift as posShiftSchema, shiftFor as posShiftFor, };
|
|
1781
|
+
//# sourceMappingURL=operations.js.map
|