@ketvietlab/ketsuite 0.1.1
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 +21 -0
- package/README.md +19 -0
- package/dist/index.d.ts +119 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +118 -0
- package/dist/index.js.map +1 -0
- package/dist/modules/account/functions.d.ts +14 -0
- package/dist/modules/account/functions.d.ts.map +1 -0
- package/dist/modules/account/functions.js +1038 -0
- package/dist/modules/account/functions.js.map +1 -0
- package/dist/modules/account/index.d.ts +5 -0
- package/dist/modules/account/index.d.ts.map +1 -0
- package/dist/modules/account/index.js +31 -0
- package/dist/modules/account/index.js.map +1 -0
- package/dist/modules/account/models.d.ts +3 -0
- package/dist/modules/account/models.d.ts.map +1 -0
- package/dist/modules/account/models.js +151 -0
- package/dist/modules/account/models.js.map +1 -0
- package/dist/modules/account/relations.d.ts +3 -0
- package/dist/modules/account/relations.d.ts.map +1 -0
- package/dist/modules/account/relations.js +35 -0
- package/dist/modules/account/relations.js.map +1 -0
- package/dist/modules/account/setup.d.ts +4 -0
- package/dist/modules/account/setup.d.ts.map +1 -0
- package/dist/modules/account/setup.js +179 -0
- package/dist/modules/account/setup.js.map +1 -0
- package/dist/modules/account/tt99.d.ts +30 -0
- package/dist/modules/account/tt99.d.ts.map +1 -0
- package/dist/modules/account/tt99.js +1661 -0
- package/dist/modules/account/tt99.js.map +1 -0
- package/dist/modules/account_activity_backend/index.d.ts +5 -0
- package/dist/modules/account_activity_backend/index.d.ts.map +1 -0
- package/dist/modules/account_activity_backend/index.js +27 -0
- package/dist/modules/account_activity_backend/index.js.map +1 -0
- package/dist/modules/account_backend/accounting-overview-screen.d.ts +18 -0
- package/dist/modules/account_backend/accounting-overview-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/accounting-overview-screen.js +104 -0
- package/dist/modules/account_backend/accounting-overview-screen.js.map +1 -0
- package/dist/modules/account_backend/accounts-screen.d.ts +13 -0
- package/dist/modules/account_backend/accounts-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/accounts-screen.js +49 -0
- package/dist/modules/account_backend/accounts-screen.js.map +1 -0
- package/dist/modules/account_backend/customer-invoices-screen.d.ts +14 -0
- package/dist/modules/account_backend/customer-invoices-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/customer-invoices-screen.js +63 -0
- package/dist/modules/account_backend/customer-invoices-screen.js.map +1 -0
- package/dist/modules/account_backend/general-ledger-screen.d.ts +13 -0
- package/dist/modules/account_backend/general-ledger-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/general-ledger-screen.js +56 -0
- package/dist/modules/account_backend/general-ledger-screen.js.map +1 -0
- package/dist/modules/account_backend/index.d.ts +3 -0
- package/dist/modules/account_backend/index.d.ts.map +1 -0
- package/dist/modules/account_backend/index.js +1516 -0
- package/dist/modules/account_backend/index.js.map +1 -0
- package/dist/modules/account_backend/journal-entries-screen.d.ts +14 -0
- package/dist/modules/account_backend/journal-entries-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/journal-entries-screen.js +45 -0
- package/dist/modules/account_backend/journal-entries-screen.js.map +1 -0
- package/dist/modules/account_backend/journals-screen.d.ts +14 -0
- package/dist/modules/account_backend/journals-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/journals-screen.js +53 -0
- package/dist/modules/account_backend/journals-screen.js.map +1 -0
- package/dist/modules/account_backend/move-detail-screen.d.ts +10 -0
- package/dist/modules/account_backend/move-detail-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/move-detail-screen.js +100 -0
- package/dist/modules/account_backend/move-detail-screen.js.map +1 -0
- package/dist/modules/account_backend/partner-ledger-screen.d.ts +14 -0
- package/dist/modules/account_backend/partner-ledger-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/partner-ledger-screen.js +69 -0
- package/dist/modules/account_backend/partner-ledger-screen.js.map +1 -0
- package/dist/modules/account_backend/payment-terms-screen.d.ts +14 -0
- package/dist/modules/account_backend/payment-terms-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/payment-terms-screen.js +40 -0
- package/dist/modules/account_backend/payment-terms-screen.js.map +1 -0
- package/dist/modules/account_backend/payments-screen.d.ts +14 -0
- package/dist/modules/account_backend/payments-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/payments-screen.js +54 -0
- package/dist/modules/account_backend/payments-screen.js.map +1 -0
- package/dist/modules/account_backend/screens.d.ts +7 -0
- package/dist/modules/account_backend/screens.d.ts.map +1 -0
- package/dist/modules/account_backend/screens.js +7 -0
- package/dist/modules/account_backend/screens.js.map +1 -0
- package/dist/modules/account_backend/taxes-screen.d.ts +15 -0
- package/dist/modules/account_backend/taxes-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/taxes-screen.js +73 -0
- package/dist/modules/account_backend/taxes-screen.js.map +1 -0
- package/dist/modules/account_backend/trial-balance-screen.d.ts +13 -0
- package/dist/modules/account_backend/trial-balance-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/trial-balance-screen.js +62 -0
- package/dist/modules/account_backend/trial-balance-screen.js.map +1 -0
- package/dist/modules/account_backend/vendor-bills-screen.d.ts +14 -0
- package/dist/modules/account_backend/vendor-bills-screen.d.ts.map +1 -0
- package/dist/modules/account_backend/vendor-bills-screen.js +59 -0
- package/dist/modules/account_backend/vendor-bills-screen.js.map +1 -0
- package/dist/modules/account_mail_backend/index.d.ts +5 -0
- package/dist/modules/account_mail_backend/index.d.ts.map +1 -0
- package/dist/modules/account_mail_backend/index.js +28 -0
- package/dist/modules/account_mail_backend/index.js.map +1 -0
- package/dist/modules/account_partner/functions.d.ts +3 -0
- package/dist/modules/account_partner/functions.d.ts.map +1 -0
- package/dist/modules/account_partner/functions.js +85 -0
- package/dist/modules/account_partner/functions.js.map +1 -0
- package/dist/modules/account_partner/index.d.ts +3 -0
- package/dist/modules/account_partner/index.d.ts.map +1 -0
- package/dist/modules/account_partner/index.js +48 -0
- package/dist/modules/account_partner/index.js.map +1 -0
- package/dist/modules/account_partner_backend/index.d.ts +4 -0
- package/dist/modules/account_partner_backend/index.d.ts.map +1 -0
- package/dist/modules/account_partner_backend/index.js +49 -0
- package/dist/modules/account_partner_backend/index.js.map +1 -0
- package/dist/modules/account_partner_backend/routes.d.ts +3 -0
- package/dist/modules/account_partner_backend/routes.d.ts.map +1 -0
- package/dist/modules/account_partner_backend/routes.js +69 -0
- package/dist/modules/account_partner_backend/routes.js.map +1 -0
- package/dist/modules/account_partner_backend/screens.d.ts +16 -0
- package/dist/modules/account_partner_backend/screens.d.ts.map +1 -0
- package/dist/modules/account_partner_backend/screens.js +26 -0
- package/dist/modules/account_partner_backend/screens.js.map +1 -0
- package/dist/modules/activity/functions.d.ts +3 -0
- package/dist/modules/activity/functions.d.ts.map +1 -0
- package/dist/modules/activity/functions.js +250 -0
- package/dist/modules/activity/functions.js.map +1 -0
- package/dist/modules/activity/index.d.ts +9 -0
- package/dist/modules/activity/index.d.ts.map +1 -0
- package/dist/modules/activity/index.js +33 -0
- package/dist/modules/activity/index.js.map +1 -0
- package/dist/modules/activity/models.d.ts +3 -0
- package/dist/modules/activity/models.d.ts.map +1 -0
- package/dist/modules/activity/models.js +81 -0
- package/dist/modules/activity/models.js.map +1 -0
- package/dist/modules/activity/operations.d.ts +39 -0
- package/dist/modules/activity/operations.d.ts.map +1 -0
- package/dist/modules/activity/operations.js +226 -0
- package/dist/modules/activity/operations.js.map +1 -0
- package/dist/modules/activity/relations.d.ts +3 -0
- package/dist/modules/activity/relations.d.ts.map +1 -0
- package/dist/modules/activity/relations.js +24 -0
- package/dist/modules/activity/relations.js.map +1 -0
- package/dist/modules/activity/target.d.ts +4 -0
- package/dist/modules/activity/target.d.ts.map +1 -0
- package/dist/modules/activity/target.js +149 -0
- package/dist/modules/activity/target.js.map +1 -0
- package/dist/modules/activity/types.d.ts +9 -0
- package/dist/modules/activity/types.d.ts.map +1 -0
- package/dist/modules/activity/types.js +5 -0
- package/dist/modules/activity/types.js.map +1 -0
- package/dist/modules/activity_backend/index.d.ts +5 -0
- package/dist/modules/activity_backend/index.d.ts.map +1 -0
- package/dist/modules/activity_backend/index.js +80 -0
- package/dist/modules/activity_backend/index.js.map +1 -0
- package/dist/modules/activity_backend/islands.d.ts +3 -0
- package/dist/modules/activity_backend/islands.d.ts.map +1 -0
- package/dist/modules/activity_backend/islands.js +20 -0
- package/dist/modules/activity_backend/islands.js.map +1 -0
- package/dist/modules/activity_backend/routes.d.ts +5 -0
- package/dist/modules/activity_backend/routes.d.ts.map +1 -0
- package/dist/modules/activity_backend/routes.js +53 -0
- package/dist/modules/activity_backend/routes.js.map +1 -0
- package/dist/modules/activity_backend/screens.d.ts +5 -0
- package/dist/modules/activity_backend/screens.d.ts.map +1 -0
- package/dist/modules/activity_backend/screens.js +52 -0
- package/dist/modules/activity_backend/screens.js.map +1 -0
- package/dist/modules/address/data/VN/NOTICE.md +15 -0
- package/dist/modules/address/data/VN/catalogs/2025-07-01/divisions/0001.json +8002 -0
- package/dist/modules/address/data/VN/catalogs/2025-07-01/divisions/0002.json +8002 -0
- package/dist/modules/address/data/VN/catalogs/2025-07-01/divisions/0003.json +8002 -0
- package/dist/modules/address/data/VN/catalogs/2025-07-01/divisions/0004.json +2842 -0
- package/dist/modules/address/data/VN/catalogs/2025-07-01/manifest.json +77 -0
- package/dist/modules/address/data/VN/catalogs/2025-07-01/policy.json +49 -0
- package/dist/modules/address/data/countries.json +11 -0
- package/dist/modules/address/data/index.json +14 -0
- package/dist/modules/address/format.d.ts +37 -0
- package/dist/modules/address/format.d.ts.map +1 -0
- package/dist/modules/address/format.js +146 -0
- package/dist/modules/address/format.js.map +1 -0
- package/dist/modules/address/functions.d.ts +3 -0
- package/dist/modules/address/functions.d.ts.map +1 -0
- package/dist/modules/address/functions.js +320 -0
- package/dist/modules/address/functions.js.map +1 -0
- package/dist/modules/address/index.d.ts +6 -0
- package/dist/modules/address/index.d.ts.map +1 -0
- package/dist/modules/address/index.js +20 -0
- package/dist/modules/address/index.js.map +1 -0
- package/dist/modules/address/loader.d.ts +74 -0
- package/dist/modules/address/loader.d.ts.map +1 -0
- package/dist/modules/address/loader.js +144 -0
- package/dist/modules/address/loader.js.map +1 -0
- package/dist/modules/address/messages.d.ts +51 -0
- package/dist/modules/address/messages.d.ts.map +1 -0
- package/dist/modules/address/messages.js +51 -0
- package/dist/modules/address/messages.js.map +1 -0
- package/dist/modules/address/models.d.ts +8 -0
- package/dist/modules/address/models.d.ts.map +1 -0
- package/dist/modules/address/models.js +98 -0
- package/dist/modules/address/models.js.map +1 -0
- package/dist/modules/address/relations.d.ts +3 -0
- package/dist/modules/address/relations.d.ts.map +1 -0
- package/dist/modules/address/relations.js +22 -0
- package/dist/modules/address/relations.js.map +1 -0
- package/dist/modules/address_backend/index.d.ts +4 -0
- package/dist/modules/address_backend/index.d.ts.map +1 -0
- package/dist/modules/address_backend/index.js +90 -0
- package/dist/modules/address_backend/index.js.map +1 -0
- package/dist/modules/address_backend/routes.d.ts +3 -0
- package/dist/modules/address_backend/routes.d.ts.map +1 -0
- package/dist/modules/address_backend/routes.js +87 -0
- package/dist/modules/address_backend/routes.js.map +1 -0
- package/dist/modules/address_backend/screens.d.ts +31 -0
- package/dist/modules/address_backend/screens.d.ts.map +1 -0
- package/dist/modules/address_backend/screens.js +147 -0
- package/dist/modules/address_backend/screens.js.map +1 -0
- package/dist/modules/attendance/functions.d.ts +3 -0
- package/dist/modules/attendance/functions.d.ts.map +1 -0
- package/dist/modules/attendance/functions.js +750 -0
- package/dist/modules/attendance/functions.js.map +1 -0
- package/dist/modules/attendance/index.d.ts +5 -0
- package/dist/modules/attendance/index.d.ts.map +1 -0
- package/dist/modules/attendance/index.js +20 -0
- package/dist/modules/attendance/index.js.map +1 -0
- package/dist/modules/attendance/messages.d.ts +41 -0
- package/dist/modules/attendance/messages.d.ts.map +1 -0
- package/dist/modules/attendance/messages.js +41 -0
- package/dist/modules/attendance/messages.js.map +1 -0
- package/dist/modules/attendance/models.d.ts +3 -0
- package/dist/modules/attendance/models.d.ts.map +1 -0
- package/dist/modules/attendance/models.js +158 -0
- package/dist/modules/attendance/models.js.map +1 -0
- package/dist/modules/attendance/relations.d.ts +3 -0
- package/dist/modules/attendance/relations.d.ts.map +1 -0
- package/dist/modules/attendance/relations.js +12 -0
- package/dist/modules/attendance/relations.js.map +1 -0
- package/dist/modules/attendance/types.d.ts +9 -0
- package/dist/modules/attendance/types.d.ts.map +1 -0
- package/dist/modules/attendance/types.js +5 -0
- package/dist/modules/attendance/types.js.map +1 -0
- package/dist/modules/attendance_backend/index.d.ts +4 -0
- package/dist/modules/attendance_backend/index.d.ts.map +1 -0
- package/dist/modules/attendance_backend/index.js +182 -0
- package/dist/modules/attendance_backend/index.js.map +1 -0
- package/dist/modules/attendance_backend/qr.d.ts +2 -0
- package/dist/modules/attendance_backend/qr.d.ts.map +1 -0
- package/dist/modules/attendance_backend/qr.js +120 -0
- package/dist/modules/attendance_backend/qr.js.map +1 -0
- package/dist/modules/attendance_backend/routes.d.ts +3 -0
- package/dist/modules/attendance_backend/routes.d.ts.map +1 -0
- package/dist/modules/attendance_backend/routes.js +131 -0
- package/dist/modules/attendance_backend/routes.js.map +1 -0
- package/dist/modules/attendance_backend/screens.d.ts +10 -0
- package/dist/modules/attendance_backend/screens.d.ts.map +1 -0
- package/dist/modules/attendance_backend/screens.js +227 -0
- package/dist/modules/attendance_backend/screens.js.map +1 -0
- package/dist/modules/backend/catalogue.d.ts +10 -0
- package/dist/modules/backend/catalogue.d.ts.map +1 -0
- package/dist/modules/backend/catalogue.js +615 -0
- package/dist/modules/backend/catalogue.js.map +1 -0
- package/dist/modules/backend/design/HANDOFF.md +356 -0
- package/dist/modules/backend/design/admin.css +4229 -0
- package/dist/modules/backend/design/client/relation-select-view.d.mts +5 -0
- package/dist/modules/backend/design/client/relation-select-view.d.mts.map +1 -0
- package/dist/modules/backend/design/client/relation-select-view.mjs +335 -0
- package/dist/modules/backend/design/client/relation-select-view.mjs.map +1 -0
- package/dist/modules/backend/design/client/relation-select.d.mts +5 -0
- package/dist/modules/backend/design/client/relation-select.d.mts.map +1 -0
- package/dist/modules/backend/design/client/relation-select.mjs +7 -0
- package/dist/modules/backend/design/client/relation-select.mjs.map +1 -0
- package/dist/modules/backend/design/fixtures/product-back.svg +11 -0
- package/dist/modules/backend/design/fixtures/product-front.svg +9 -0
- package/dist/modules/backend/design/screenshots/apps-desktop-dark.png +0 -0
- package/dist/modules/backend/design/screenshots/list-mobile-dark.png +0 -0
- package/dist/modules/backend/design/screenshots/product-list-favorites-desktop-en.png +0 -0
- package/dist/modules/backend/design/screenshots/product-list-filter-desktop-en.png +0 -0
- package/dist/modules/backend/design/screenshots/product-list-filter-mobile-en.png +0 -0
- package/dist/modules/backend/design/screenshots/product-list-grouped-desktop.png +0 -0
- package/dist/modules/backend/design/screenshots/product-list-grouped-mobile.png +0 -0
- package/dist/modules/backend/design/tokens.css +132 -0
- package/dist/modules/backend/forms.d.ts +7 -0
- package/dist/modules/backend/forms.d.ts.map +1 -0
- package/dist/modules/backend/forms.js +25 -0
- package/dist/modules/backend/forms.js.map +1 -0
- package/dist/modules/backend/index.d.ts +24 -0
- package/dist/modules/backend/index.d.ts.map +1 -0
- package/dist/modules/backend/index.js +61 -0
- package/dist/modules/backend/index.js.map +1 -0
- package/dist/modules/backend/islands.d.ts +3 -0
- package/dist/modules/backend/islands.d.ts.map +1 -0
- package/dist/modules/backend/islands.js +13 -0
- package/dist/modules/backend/islands.js.map +1 -0
- package/dist/modules/backend/joints.d.ts +13 -0
- package/dist/modules/backend/joints.d.ts.map +1 -0
- package/dist/modules/backend/joints.js +33 -0
- package/dist/modules/backend/joints.js.map +1 -0
- package/dist/modules/backend/menus.d.ts +3 -0
- package/dist/modules/backend/menus.d.ts.map +1 -0
- package/dist/modules/backend/menus.js +25 -0
- package/dist/modules/backend/menus.js.map +1 -0
- package/dist/modules/backend/messages.d.ts +11 -0
- package/dist/modules/backend/messages.d.ts.map +1 -0
- package/dist/modules/backend/messages.js +161 -0
- package/dist/modules/backend/messages.js.map +1 -0
- package/dist/modules/backend/paging.d.ts +22 -0
- package/dist/modules/backend/paging.d.ts.map +1 -0
- package/dist/modules/backend/paging.js +56 -0
- package/dist/modules/backend/paging.js.map +1 -0
- package/dist/modules/backend/relation-select.d.ts +63 -0
- package/dist/modules/backend/relation-select.d.ts.map +1 -0
- package/dist/modules/backend/relation-select.js +20 -0
- package/dist/modules/backend/relation-select.js.map +1 -0
- package/dist/modules/backend/routes.d.ts +10 -0
- package/dist/modules/backend/routes.d.ts.map +1 -0
- package/dist/modules/backend/routes.js +123 -0
- package/dist/modules/backend/routes.js.map +1 -0
- package/dist/modules/backend/saved-searches.d.ts +4 -0
- package/dist/modules/backend/saved-searches.d.ts.map +1 -0
- package/dist/modules/backend/saved-searches.js +138 -0
- package/dist/modules/backend/saved-searches.js.map +1 -0
- package/dist/modules/backend/screens.d.ts +37 -0
- package/dist/modules/backend/screens.d.ts.map +1 -0
- package/dist/modules/backend/screens.js +107 -0
- package/dist/modules/backend/screens.js.map +1 -0
- package/dist/modules/calendar/functions.d.ts +3 -0
- package/dist/modules/calendar/functions.d.ts.map +1 -0
- package/dist/modules/calendar/functions.js +259 -0
- package/dist/modules/calendar/functions.js.map +1 -0
- package/dist/modules/calendar/index.d.ts +9 -0
- package/dist/modules/calendar/index.d.ts.map +1 -0
- package/dist/modules/calendar/index.js +36 -0
- package/dist/modules/calendar/index.js.map +1 -0
- package/dist/modules/calendar/jobs.d.ts +3 -0
- package/dist/modules/calendar/jobs.d.ts.map +1 -0
- package/dist/modules/calendar/jobs.js +57 -0
- package/dist/modules/calendar/jobs.js.map +1 -0
- package/dist/modules/calendar/models.d.ts +3 -0
- package/dist/modules/calendar/models.d.ts.map +1 -0
- package/dist/modules/calendar/models.js +90 -0
- package/dist/modules/calendar/models.js.map +1 -0
- package/dist/modules/calendar/operations.d.ts +45 -0
- package/dist/modules/calendar/operations.d.ts.map +1 -0
- package/dist/modules/calendar/operations.js +280 -0
- package/dist/modules/calendar/operations.js.map +1 -0
- package/dist/modules/calendar/recurrence.d.ts +28 -0
- package/dist/modules/calendar/recurrence.d.ts.map +1 -0
- package/dist/modules/calendar/recurrence.js +175 -0
- package/dist/modules/calendar/recurrence.js.map +1 -0
- package/dist/modules/calendar/relations.d.ts +3 -0
- package/dist/modules/calendar/relations.d.ts.map +1 -0
- package/dist/modules/calendar/relations.js +22 -0
- package/dist/modules/calendar/relations.js.map +1 -0
- package/dist/modules/calendar/types.d.ts +10 -0
- package/dist/modules/calendar/types.d.ts.map +1 -0
- package/dist/modules/calendar/types.js +6 -0
- package/dist/modules/calendar/types.js.map +1 -0
- package/dist/modules/calendar_activity/index.d.ts +6 -0
- package/dist/modules/calendar_activity/index.d.ts.map +1 -0
- package/dist/modules/calendar_activity/index.js +250 -0
- package/dist/modules/calendar_activity/index.js.map +1 -0
- package/dist/modules/calendar_backend/index.d.ts +5 -0
- package/dist/modules/calendar_backend/index.d.ts.map +1 -0
- package/dist/modules/calendar_backend/index.js +47 -0
- package/dist/modules/calendar_backend/index.js.map +1 -0
- package/dist/modules/calendar_backend/islands.d.ts +3 -0
- package/dist/modules/calendar_backend/islands.d.ts.map +1 -0
- package/dist/modules/calendar_backend/islands.js +12 -0
- package/dist/modules/calendar_backend/islands.js.map +1 -0
- package/dist/modules/calendar_backend/routes.d.ts +3 -0
- package/dist/modules/calendar_backend/routes.d.ts.map +1 -0
- package/dist/modules/calendar_backend/routes.js +43 -0
- package/dist/modules/calendar_backend/routes.js.map +1 -0
- package/dist/modules/calendar_backend/screens.d.ts +5 -0
- package/dist/modules/calendar_backend/screens.d.ts.map +1 -0
- package/dist/modules/calendar_backend/screens.js +4 -0
- package/dist/modules/calendar_backend/screens.js.map +1 -0
- package/dist/modules/calendar_mail_transport/index.d.ts +6 -0
- package/dist/modules/calendar_mail_transport/index.d.ts.map +1 -0
- package/dist/modules/calendar_mail_transport/index.js +138 -0
- package/dist/modules/calendar_mail_transport/index.js.map +1 -0
- package/dist/modules/catalog/index.d.ts +3 -0
- package/dist/modules/catalog/index.d.ts.map +1 -0
- package/dist/modules/catalog/index.js +68 -0
- package/dist/modules/catalog/index.js.map +1 -0
- package/dist/modules/checkout/index.d.ts +3 -0
- package/dist/modules/checkout/index.d.ts.map +1 -0
- package/dist/modules/checkout/index.js +50 -0
- package/dist/modules/checkout/index.js.map +1 -0
- package/dist/modules/company/functions.d.ts +3 -0
- package/dist/modules/company/functions.d.ts.map +1 -0
- package/dist/modules/company/functions.js +337 -0
- package/dist/modules/company/functions.js.map +1 -0
- package/dist/modules/company/index.d.ts +3 -0
- package/dist/modules/company/index.d.ts.map +1 -0
- package/dist/modules/company/index.js +23 -0
- package/dist/modules/company/index.js.map +1 -0
- package/dist/modules/company/messages.d.ts +63 -0
- package/dist/modules/company/messages.d.ts.map +1 -0
- package/dist/modules/company/messages.js +63 -0
- package/dist/modules/company/messages.js.map +1 -0
- package/dist/modules/company/models.d.ts +19 -0
- package/dist/modules/company/models.d.ts.map +1 -0
- package/dist/modules/company/models.js +61 -0
- package/dist/modules/company/models.js.map +1 -0
- package/dist/modules/company/relations.d.ts +3 -0
- package/dist/modules/company/relations.d.ts.map +1 -0
- package/dist/modules/company/relations.js +14 -0
- package/dist/modules/company/relations.js.map +1 -0
- package/dist/modules/company_backend/index.d.ts +5 -0
- package/dist/modules/company_backend/index.d.ts.map +1 -0
- package/dist/modules/company_backend/index.js +136 -0
- package/dist/modules/company_backend/index.js.map +1 -0
- package/dist/modules/company_backend/menus.d.ts +3 -0
- package/dist/modules/company_backend/menus.d.ts.map +1 -0
- package/dist/modules/company_backend/menus.js +17 -0
- package/dist/modules/company_backend/menus.js.map +1 -0
- package/dist/modules/company_backend/routes.d.ts +3 -0
- package/dist/modules/company_backend/routes.d.ts.map +1 -0
- package/dist/modules/company_backend/routes.js +269 -0
- package/dist/modules/company_backend/routes.js.map +1 -0
- package/dist/modules/company_backend/screens.d.ts +62 -0
- package/dist/modules/company_backend/screens.d.ts.map +1 -0
- package/dist/modules/company_backend/screens.js +268 -0
- package/dist/modules/company_backend/screens.js.map +1 -0
- package/dist/modules/crm/functions.d.ts +5 -0
- package/dist/modules/crm/functions.d.ts.map +1 -0
- package/dist/modules/crm/functions.js +840 -0
- package/dist/modules/crm/functions.js.map +1 -0
- package/dist/modules/crm/index.d.ts +6 -0
- package/dist/modules/crm/index.d.ts.map +1 -0
- package/dist/modules/crm/index.js +22 -0
- package/dist/modules/crm/index.js.map +1 -0
- package/dist/modules/crm/jobs.d.ts +4 -0
- package/dist/modules/crm/jobs.d.ts.map +1 -0
- package/dist/modules/crm/jobs.js +3 -0
- package/dist/modules/crm/jobs.js.map +1 -0
- package/dist/modules/crm/messages.d.ts +37 -0
- package/dist/modules/crm/messages.d.ts.map +1 -0
- package/dist/modules/crm/messages.js +68 -0
- package/dist/modules/crm/messages.js.map +1 -0
- package/dist/modules/crm/models.d.ts +3 -0
- package/dist/modules/crm/models.d.ts.map +1 -0
- package/dist/modules/crm/models.js +215 -0
- package/dist/modules/crm/models.js.map +1 -0
- package/dist/modules/crm/operations.d.ts +121 -0
- package/dist/modules/crm/operations.d.ts.map +1 -0
- package/dist/modules/crm/operations.js +744 -0
- package/dist/modules/crm/operations.js.map +1 -0
- package/dist/modules/crm/search.d.ts +67 -0
- package/dist/modules/crm/search.d.ts.map +1 -0
- package/dist/modules/crm/search.js +89 -0
- package/dist/modules/crm/search.js.map +1 -0
- package/dist/modules/crm/types.d.ts +10 -0
- package/dist/modules/crm/types.d.ts.map +1 -0
- package/dist/modules/crm/types.js +6 -0
- package/dist/modules/crm/types.js.map +1 -0
- package/dist/modules/crm_backend/client/crm-kanban-view.d.mts +8 -0
- package/dist/modules/crm_backend/client/crm-kanban-view.d.mts.map +1 -0
- package/dist/modules/crm_backend/client/crm-kanban-view.mjs +129 -0
- package/dist/modules/crm_backend/client/crm-kanban-view.mjs.map +1 -0
- package/dist/modules/crm_backend/client/crm-kanban.d.mts +3 -0
- package/dist/modules/crm_backend/client/crm-kanban.d.mts.map +1 -0
- package/dist/modules/crm_backend/client/crm-kanban.mjs +7 -0
- package/dist/modules/crm_backend/client/crm-kanban.mjs.map +1 -0
- package/dist/modules/crm_backend/client/crm.css +69 -0
- package/dist/modules/crm_backend/index.d.ts +4 -0
- package/dist/modules/crm_backend/index.d.ts.map +1 -0
- package/dist/modules/crm_backend/index.js +54 -0
- package/dist/modules/crm_backend/index.js.map +1 -0
- package/dist/modules/crm_backend/islands.d.ts +9 -0
- package/dist/modules/crm_backend/islands.d.ts.map +1 -0
- package/dist/modules/crm_backend/islands.js +13 -0
- package/dist/modules/crm_backend/islands.js.map +1 -0
- package/dist/modules/crm_backend/list-search.d.ts +21 -0
- package/dist/modules/crm_backend/list-search.d.ts.map +1 -0
- package/dist/modules/crm_backend/list-search.js +220 -0
- package/dist/modules/crm_backend/list-search.js.map +1 -0
- package/dist/modules/crm_backend/messages.d.ts +183 -0
- package/dist/modules/crm_backend/messages.d.ts.map +1 -0
- package/dist/modules/crm_backend/messages.js +182 -0
- package/dist/modules/crm_backend/messages.js.map +1 -0
- package/dist/modules/crm_backend/routes.d.ts +3 -0
- package/dist/modules/crm_backend/routes.d.ts.map +1 -0
- package/dist/modules/crm_backend/routes.js +520 -0
- package/dist/modules/crm_backend/routes.js.map +1 -0
- package/dist/modules/crm_backend/screens.d.ts +32 -0
- package/dist/modules/crm_backend/screens.d.ts.map +1 -0
- package/dist/modules/crm_backend/screens.js +405 -0
- package/dist/modules/crm_backend/screens.js.map +1 -0
- package/dist/modules/crm_sale/index.d.ts +4 -0
- package/dist/modules/crm_sale/index.d.ts.map +1 -0
- package/dist/modules/crm_sale/index.js +18 -0
- package/dist/modules/crm_sale/index.js.map +1 -0
- package/dist/modules/crm_sale/messages.d.ts +10 -0
- package/dist/modules/crm_sale/messages.d.ts.map +1 -0
- package/dist/modules/crm_sale/messages.js +14 -0
- package/dist/modules/crm_sale/messages.js.map +1 -0
- package/dist/modules/crm_sale/models.d.ts +3 -0
- package/dist/modules/crm_sale/models.d.ts.map +1 -0
- package/dist/modules/crm_sale/models.js +16 -0
- package/dist/modules/crm_sale/models.js.map +1 -0
- package/dist/modules/crm_sale/sale-functions.d.ts +15 -0
- package/dist/modules/crm_sale/sale-functions.d.ts.map +1 -0
- package/dist/modules/crm_sale/sale-functions.js +139 -0
- package/dist/modules/crm_sale/sale-functions.js.map +1 -0
- package/dist/modules/crm_website/functions.d.ts +3 -0
- package/dist/modules/crm_website/functions.d.ts.map +1 -0
- package/dist/modules/crm_website/functions.js +65 -0
- package/dist/modules/crm_website/functions.js.map +1 -0
- package/dist/modules/crm_website/index.d.ts +3 -0
- package/dist/modules/crm_website/index.d.ts.map +1 -0
- package/dist/modules/crm_website/index.js +19 -0
- package/dist/modules/crm_website/index.js.map +1 -0
- package/dist/modules/crm_website/messages.d.ts +20 -0
- package/dist/modules/crm_website/messages.d.ts.map +1 -0
- package/dist/modules/crm_website/messages.js +34 -0
- package/dist/modules/crm_website/messages.js.map +1 -0
- package/dist/modules/crm_website/models.d.ts +3 -0
- package/dist/modules/crm_website/models.d.ts.map +1 -0
- package/dist/modules/crm_website/models.js +15 -0
- package/dist/modules/crm_website/models.js.map +1 -0
- package/dist/modules/crm_website/routes.d.ts +3 -0
- package/dist/modules/crm_website/routes.d.ts.map +1 -0
- package/dist/modules/crm_website/routes.js +71 -0
- package/dist/modules/crm_website/routes.js.map +1 -0
- package/dist/modules/crm_website/screens.d.ts +5 -0
- package/dist/modules/crm_website/screens.d.ts.map +1 -0
- package/dist/modules/crm_website/screens.js +15 -0
- package/dist/modules/crm_website/screens.js.map +1 -0
- package/dist/modules/hospitality_core/calendar.d.ts +9 -0
- package/dist/modules/hospitality_core/calendar.d.ts.map +1 -0
- package/dist/modules/hospitality_core/calendar.js +41 -0
- package/dist/modules/hospitality_core/calendar.js.map +1 -0
- package/dist/modules/hospitality_core/content.d.ts +13 -0
- package/dist/modules/hospitality_core/content.d.ts.map +1 -0
- package/dist/modules/hospitality_core/content.js +345 -0
- package/dist/modules/hospitality_core/content.js.map +1 -0
- package/dist/modules/hospitality_core/functions.d.ts +3 -0
- package/dist/modules/hospitality_core/functions.d.ts.map +1 -0
- package/dist/modules/hospitality_core/functions.js +1558 -0
- package/dist/modules/hospitality_core/functions.js.map +1 -0
- package/dist/modules/hospitality_core/housekeeping.d.ts +3 -0
- package/dist/modules/hospitality_core/housekeeping.d.ts.map +1 -0
- package/dist/modules/hospitality_core/housekeeping.js +352 -0
- package/dist/modules/hospitality_core/housekeeping.js.map +1 -0
- package/dist/modules/hospitality_core/index.d.ts +5 -0
- package/dist/modules/hospitality_core/index.d.ts.map +1 -0
- package/dist/modules/hospitality_core/index.js +41 -0
- package/dist/modules/hospitality_core/index.js.map +1 -0
- package/dist/modules/hospitality_core/inventory.d.ts +40 -0
- package/dist/modules/hospitality_core/inventory.d.ts.map +1 -0
- package/dist/modules/hospitality_core/inventory.js +627 -0
- package/dist/modules/hospitality_core/inventory.js.map +1 -0
- package/dist/modules/hospitality_core/menus.d.ts +3 -0
- package/dist/modules/hospitality_core/menus.d.ts.map +1 -0
- package/dist/modules/hospitality_core/menus.js +134 -0
- package/dist/modules/hospitality_core/menus.js.map +1 -0
- package/dist/modules/hospitality_core/messages.d.ts +3 -0
- package/dist/modules/hospitality_core/messages.d.ts.map +1 -0
- package/dist/modules/hospitality_core/messages.js +2011 -0
- package/dist/modules/hospitality_core/messages.js.map +1 -0
- package/dist/modules/hospitality_core/models.d.ts +10 -0
- package/dist/modules/hospitality_core/models.d.ts.map +1 -0
- package/dist/modules/hospitality_core/models.js +657 -0
- package/dist/modules/hospitality_core/models.js.map +1 -0
- package/dist/modules/hospitality_core/night-audit.d.ts +26 -0
- package/dist/modules/hospitality_core/night-audit.d.ts.map +1 -0
- package/dist/modules/hospitality_core/night-audit.js +381 -0
- package/dist/modules/hospitality_core/night-audit.js.map +1 -0
- package/dist/modules/hospitality_core/operations.d.ts +3 -0
- package/dist/modules/hospitality_core/operations.d.ts.map +1 -0
- package/dist/modules/hospitality_core/operations.js +1562 -0
- package/dist/modules/hospitality_core/operations.js.map +1 -0
- package/dist/modules/hospitality_core/relations.d.ts +3 -0
- package/dist/modules/hospitality_core/relations.d.ts.map +1 -0
- package/dist/modules/hospitality_core/relations.js +175 -0
- package/dist/modules/hospitality_core/relations.js.map +1 -0
- package/dist/modules/hospitality_core/routes.d.ts +3 -0
- package/dist/modules/hospitality_core/routes.d.ts.map +1 -0
- package/dist/modules/hospitality_core/routes.js +1556 -0
- package/dist/modules/hospitality_core/routes.js.map +1 -0
- package/dist/modules/hospitality_core/screens.d.ts +763 -0
- package/dist/modules/hospitality_core/screens.d.ts.map +1 -0
- package/dist/modules/hospitality_core/screens.js +4138 -0
- package/dist/modules/hospitality_core/screens.js.map +1 -0
- package/dist/modules/hospitality_core/services.d.ts +9 -0
- package/dist/modules/hospitality_core/services.d.ts.map +1 -0
- package/dist/modules/hospitality_core/services.js +586 -0
- package/dist/modules/hospitality_core/services.js.map +1 -0
- package/dist/modules/hospitality_core/stay-notices.d.ts +11 -0
- package/dist/modules/hospitality_core/stay-notices.d.ts.map +1 -0
- package/dist/modules/hospitality_core/stay-notices.js +338 -0
- package/dist/modules/hospitality_core/stay-notices.js.map +1 -0
- package/dist/modules/hospitality_core/types.d.ts +61 -0
- package/dist/modules/hospitality_core/types.d.ts.map +1 -0
- package/dist/modules/hospitality_core/types.js +65 -0
- package/dist/modules/hospitality_core/types.js.map +1 -0
- package/dist/modules/hr/functions.d.ts +3 -0
- package/dist/modules/hr/functions.d.ts.map +1 -0
- package/dist/modules/hr/functions.js +711 -0
- package/dist/modules/hr/functions.js.map +1 -0
- package/dist/modules/hr/index.d.ts +5 -0
- package/dist/modules/hr/index.d.ts.map +1 -0
- package/dist/modules/hr/index.js +20 -0
- package/dist/modules/hr/index.js.map +1 -0
- package/dist/modules/hr/messages.d.ts +45 -0
- package/dist/modules/hr/messages.d.ts.map +1 -0
- package/dist/modules/hr/messages.js +45 -0
- package/dist/modules/hr/messages.js.map +1 -0
- package/dist/modules/hr/models.d.ts +3 -0
- package/dist/modules/hr/models.d.ts.map +1 -0
- package/dist/modules/hr/models.js +166 -0
- package/dist/modules/hr/models.js.map +1 -0
- package/dist/modules/hr/relations.d.ts +3 -0
- package/dist/modules/hr/relations.d.ts.map +1 -0
- package/dist/modules/hr/relations.js +19 -0
- package/dist/modules/hr/relations.js.map +1 -0
- package/dist/modules/hr/types.d.ts +9 -0
- package/dist/modules/hr/types.d.ts.map +1 -0
- package/dist/modules/hr/types.js +5 -0
- package/dist/modules/hr/types.js.map +1 -0
- package/dist/modules/hr_backend/index.d.ts +4 -0
- package/dist/modules/hr_backend/index.d.ts.map +1 -0
- package/dist/modules/hr_backend/index.js +142 -0
- package/dist/modules/hr_backend/index.js.map +1 -0
- package/dist/modules/hr_backend/routes.d.ts +3 -0
- package/dist/modules/hr_backend/routes.d.ts.map +1 -0
- package/dist/modules/hr_backend/routes.js +83 -0
- package/dist/modules/hr_backend/routes.js.map +1 -0
- package/dist/modules/hr_backend/screens.d.ts +9 -0
- package/dist/modules/hr_backend/screens.d.ts.map +1 -0
- package/dist/modules/hr_backend/screens.js +144 -0
- package/dist/modules/hr_backend/screens.js.map +1 -0
- package/dist/modules/inventory/index.d.ts +3 -0
- package/dist/modules/inventory/index.d.ts.map +1 -0
- package/dist/modules/inventory/index.js +31 -0
- package/dist/modules/inventory/index.js.map +1 -0
- package/dist/modules/loyalty/admin-functions.d.ts +3 -0
- package/dist/modules/loyalty/admin-functions.d.ts.map +1 -0
- package/dist/modules/loyalty/admin-functions.js +692 -0
- package/dist/modules/loyalty/admin-functions.js.map +1 -0
- package/dist/modules/loyalty/engine.d.ts +31 -0
- package/dist/modules/loyalty/engine.d.ts.map +1 -0
- package/dist/modules/loyalty/engine.js +412 -0
- package/dist/modules/loyalty/engine.js.map +1 -0
- package/dist/modules/loyalty/index.d.ts +5 -0
- package/dist/modules/loyalty/index.d.ts.map +1 -0
- package/dist/modules/loyalty/index.js +24 -0
- package/dist/modules/loyalty/index.js.map +1 -0
- package/dist/modules/loyalty/jobs.d.ts +4 -0
- package/dist/modules/loyalty/jobs.d.ts.map +1 -0
- package/dist/modules/loyalty/jobs.js +103 -0
- package/dist/modules/loyalty/jobs.js.map +1 -0
- package/dist/modules/loyalty/ledger.d.ts +48 -0
- package/dist/modules/loyalty/ledger.d.ts.map +1 -0
- package/dist/modules/loyalty/ledger.js +164 -0
- package/dist/modules/loyalty/ledger.js.map +1 -0
- package/dist/modules/loyalty/membership-functions.d.ts +4 -0
- package/dist/modules/loyalty/membership-functions.d.ts.map +1 -0
- package/dist/modules/loyalty/membership-functions.js +163 -0
- package/dist/modules/loyalty/membership-functions.js.map +1 -0
- package/dist/modules/loyalty/messages.d.ts +119 -0
- package/dist/modules/loyalty/messages.d.ts.map +1 -0
- package/dist/modules/loyalty/messages.js +119 -0
- package/dist/modules/loyalty/messages.js.map +1 -0
- package/dist/modules/loyalty/models.d.ts +3 -0
- package/dist/modules/loyalty/models.d.ts.map +1 -0
- package/dist/modules/loyalty/models.js +259 -0
- package/dist/modules/loyalty/models.js.map +1 -0
- package/dist/modules/loyalty/order-functions.d.ts +3 -0
- package/dist/modules/loyalty/order-functions.d.ts.map +1 -0
- package/dist/modules/loyalty/order-functions.js +656 -0
- package/dist/modules/loyalty/order-functions.js.map +1 -0
- package/dist/modules/loyalty/relations.d.ts +3 -0
- package/dist/modules/loyalty/relations.d.ts.map +1 -0
- package/dist/modules/loyalty/relations.js +19 -0
- package/dist/modules/loyalty/relations.js.map +1 -0
- package/dist/modules/loyalty/types.d.ts +83 -0
- package/dist/modules/loyalty/types.d.ts.map +1 -0
- package/dist/modules/loyalty/types.js +23 -0
- package/dist/modules/loyalty/types.js.map +1 -0
- package/dist/modules/loyalty_backend/index.d.ts +3 -0
- package/dist/modules/loyalty_backend/index.d.ts.map +1 -0
- package/dist/modules/loyalty_backend/index.js +636 -0
- package/dist/modules/loyalty_backend/index.js.map +1 -0
- package/dist/modules/loyalty_backend/messages.d.ts +162 -0
- package/dist/modules/loyalty_backend/messages.d.ts.map +1 -0
- package/dist/modules/loyalty_backend/messages.js +318 -0
- package/dist/modules/loyalty_backend/messages.js.map +1 -0
- package/dist/modules/loyalty_backend/screens.d.ts +33 -0
- package/dist/modules/loyalty_backend/screens.d.ts.map +1 -0
- package/dist/modules/loyalty_backend/screens.js +562 -0
- package/dist/modules/loyalty_backend/screens.js.map +1 -0
- package/dist/modules/loyalty_pos/functions.d.ts +19 -0
- package/dist/modules/loyalty_pos/functions.d.ts.map +1 -0
- package/dist/modules/loyalty_pos/functions.js +274 -0
- package/dist/modules/loyalty_pos/functions.js.map +1 -0
- package/dist/modules/loyalty_pos/index.d.ts +3 -0
- package/dist/modules/loyalty_pos/index.d.ts.map +1 -0
- package/dist/modules/loyalty_pos/index.js +45 -0
- package/dist/modules/loyalty_pos/index.js.map +1 -0
- package/dist/modules/loyalty_sale/functions.d.ts +19 -0
- package/dist/modules/loyalty_sale/functions.d.ts.map +1 -0
- package/dist/modules/loyalty_sale/functions.js +275 -0
- package/dist/modules/loyalty_sale/functions.js.map +1 -0
- package/dist/modules/loyalty_sale/index.d.ts +3 -0
- package/dist/modules/loyalty_sale/index.d.ts.map +1 -0
- package/dist/modules/loyalty_sale/index.js +45 -0
- package/dist/modules/loyalty_sale/index.js.map +1 -0
- package/dist/modules/mail/functions.d.ts +3 -0
- package/dist/modules/mail/functions.d.ts.map +1 -0
- package/dist/modules/mail/functions.js +129 -0
- package/dist/modules/mail/functions.js.map +1 -0
- package/dist/modules/mail/index.d.ts +9 -0
- package/dist/modules/mail/index.d.ts.map +1 -0
- package/dist/modules/mail/index.js +22 -0
- package/dist/modules/mail/index.js.map +1 -0
- package/dist/modules/mail/messages.d.ts +13 -0
- package/dist/modules/mail/messages.d.ts.map +1 -0
- package/dist/modules/mail/messages.js +13 -0
- package/dist/modules/mail/messages.js.map +1 -0
- package/dist/modules/mail/models.d.ts +3 -0
- package/dist/modules/mail/models.d.ts.map +1 -0
- package/dist/modules/mail/models.js +124 -0
- package/dist/modules/mail/models.js.map +1 -0
- package/dist/modules/mail/operations.d.ts +60 -0
- package/dist/modules/mail/operations.d.ts.map +1 -0
- package/dist/modules/mail/operations.js +249 -0
- package/dist/modules/mail/operations.js.map +1 -0
- package/dist/modules/mail/relations.d.ts +3 -0
- package/dist/modules/mail/relations.d.ts.map +1 -0
- package/dist/modules/mail/relations.js +41 -0
- package/dist/modules/mail/relations.js.map +1 -0
- package/dist/modules/mail/target.d.ts +16 -0
- package/dist/modules/mail/target.d.ts.map +1 -0
- package/dist/modules/mail/target.js +245 -0
- package/dist/modules/mail/target.js.map +1 -0
- package/dist/modules/mail/types.d.ts +7 -0
- package/dist/modules/mail/types.d.ts.map +1 -0
- package/dist/modules/mail/types.js +4 -0
- package/dist/modules/mail/types.js.map +1 -0
- package/dist/modules/mail_backend/index.d.ts +5 -0
- package/dist/modules/mail_backend/index.d.ts.map +1 -0
- package/dist/modules/mail_backend/index.js +56 -0
- package/dist/modules/mail_backend/index.js.map +1 -0
- package/dist/modules/mail_backend/islands.d.ts +3 -0
- package/dist/modules/mail_backend/islands.d.ts.map +1 -0
- package/dist/modules/mail_backend/islands.js +20 -0
- package/dist/modules/mail_backend/islands.js.map +1 -0
- package/dist/modules/mail_backend/routes.d.ts +5 -0
- package/dist/modules/mail_backend/routes.d.ts.map +1 -0
- package/dist/modules/mail_backend/routes.js +37 -0
- package/dist/modules/mail_backend/routes.js.map +1 -0
- package/dist/modules/mail_backend/screens.d.ts +5 -0
- package/dist/modules/mail_backend/screens.d.ts.map +1 -0
- package/dist/modules/mail_backend/screens.js +11 -0
- package/dist/modules/mail_backend/screens.js.map +1 -0
- package/dist/modules/mail_inbound/functions.d.ts +27 -0
- package/dist/modules/mail_inbound/functions.d.ts.map +1 -0
- package/dist/modules/mail_inbound/functions.js +178 -0
- package/dist/modules/mail_inbound/functions.js.map +1 -0
- package/dist/modules/mail_inbound/index.d.ts +10 -0
- package/dist/modules/mail_inbound/index.d.ts.map +1 -0
- package/dist/modules/mail_inbound/index.js +38 -0
- package/dist/modules/mail_inbound/index.js.map +1 -0
- package/dist/modules/mail_inbound/jobs.d.ts +3 -0
- package/dist/modules/mail_inbound/jobs.d.ts.map +1 -0
- package/dist/modules/mail_inbound/jobs.js +29 -0
- package/dist/modules/mail_inbound/jobs.js.map +1 -0
- package/dist/modules/mail_inbound/models.d.ts +3 -0
- package/dist/modules/mail_inbound/models.d.ts.map +1 -0
- package/dist/modules/mail_inbound/models.js +68 -0
- package/dist/modules/mail_inbound/models.js.map +1 -0
- package/dist/modules/mail_inbound/operations.d.ts +17 -0
- package/dist/modules/mail_inbound/operations.d.ts.map +1 -0
- package/dist/modules/mail_inbound/operations.js +273 -0
- package/dist/modules/mail_inbound/operations.js.map +1 -0
- package/dist/modules/mail_inbound/relations.d.ts +3 -0
- package/dist/modules/mail_inbound/relations.d.ts.map +1 -0
- package/dist/modules/mail_inbound/relations.js +19 -0
- package/dist/modules/mail_inbound/relations.js.map +1 -0
- package/dist/modules/mail_inbound/routes.d.ts +4 -0
- package/dist/modules/mail_inbound/routes.d.ts.map +1 -0
- package/dist/modules/mail_inbound/routes.js +156 -0
- package/dist/modules/mail_inbound/routes.js.map +1 -0
- package/dist/modules/mail_inbound/types.d.ts +37 -0
- package/dist/modules/mail_inbound/types.d.ts.map +1 -0
- package/dist/modules/mail_inbound/types.js +3 -0
- package/dist/modules/mail_inbound/types.js.map +1 -0
- package/dist/modules/mail_inbound_backend/index.d.ts +5 -0
- package/dist/modules/mail_inbound_backend/index.d.ts.map +1 -0
- package/dist/modules/mail_inbound_backend/index.js +59 -0
- package/dist/modules/mail_inbound_backend/index.js.map +1 -0
- package/dist/modules/mail_inbound_backend/routes.d.ts +5 -0
- package/dist/modules/mail_inbound_backend/routes.d.ts.map +1 -0
- package/dist/modules/mail_inbound_backend/routes.js +31 -0
- package/dist/modules/mail_inbound_backend/routes.js.map +1 -0
- package/dist/modules/mail_inbound_backend/screens.d.ts +5 -0
- package/dist/modules/mail_inbound_backend/screens.d.ts.map +1 -0
- package/dist/modules/mail_inbound_backend/screens.js +25 -0
- package/dist/modules/mail_inbound_backend/screens.js.map +1 -0
- package/dist/modules/mail_transport/functions.d.ts +3 -0
- package/dist/modules/mail_transport/functions.d.ts.map +1 -0
- package/dist/modules/mail_transport/functions.js +280 -0
- package/dist/modules/mail_transport/functions.js.map +1 -0
- package/dist/modules/mail_transport/index.d.ts +11 -0
- package/dist/modules/mail_transport/index.d.ts.map +1 -0
- package/dist/modules/mail_transport/index.js +37 -0
- package/dist/modules/mail_transport/index.js.map +1 -0
- package/dist/modules/mail_transport/jobs.d.ts +3 -0
- package/dist/modules/mail_transport/jobs.d.ts.map +1 -0
- package/dist/modules/mail_transport/jobs.js +79 -0
- package/dist/modules/mail_transport/jobs.js.map +1 -0
- package/dist/modules/mail_transport/models.d.ts +3 -0
- package/dist/modules/mail_transport/models.d.ts.map +1 -0
- package/dist/modules/mail_transport/models.js +88 -0
- package/dist/modules/mail_transport/models.js.map +1 -0
- package/dist/modules/mail_transport/operations.d.ts +16 -0
- package/dist/modules/mail_transport/operations.d.ts.map +1 -0
- package/dist/modules/mail_transport/operations.js +122 -0
- package/dist/modules/mail_transport/operations.js.map +1 -0
- package/dist/modules/mail_transport/relations.d.ts +3 -0
- package/dist/modules/mail_transport/relations.d.ts.map +1 -0
- package/dist/modules/mail_transport/relations.js +19 -0
- package/dist/modules/mail_transport/relations.js.map +1 -0
- package/dist/modules/mail_transport/target.d.ts +8 -0
- package/dist/modules/mail_transport/target.d.ts.map +1 -0
- package/dist/modules/mail_transport/target.js +43 -0
- package/dist/modules/mail_transport/target.js.map +1 -0
- package/dist/modules/mail_transport/template.d.ts +4 -0
- package/dist/modules/mail_transport/template.d.ts.map +1 -0
- package/dist/modules/mail_transport/template.js +52 -0
- package/dist/modules/mail_transport/template.js.map +1 -0
- package/dist/modules/mail_transport/types.d.ts +9 -0
- package/dist/modules/mail_transport/types.d.ts.map +1 -0
- package/dist/modules/mail_transport/types.js +3 -0
- package/dist/modules/mail_transport/types.js.map +1 -0
- package/dist/modules/mail_transport_backend/index.d.ts +5 -0
- package/dist/modules/mail_transport_backend/index.d.ts.map +1 -0
- package/dist/modules/mail_transport_backend/index.js +69 -0
- package/dist/modules/mail_transport_backend/index.js.map +1 -0
- package/dist/modules/mail_transport_backend/routes.d.ts +5 -0
- package/dist/modules/mail_transport_backend/routes.d.ts.map +1 -0
- package/dist/modules/mail_transport_backend/routes.js +42 -0
- package/dist/modules/mail_transport_backend/routes.js.map +1 -0
- package/dist/modules/mail_transport_backend/screens.d.ts +5 -0
- package/dist/modules/mail_transport_backend/screens.d.ts.map +1 -0
- package/dist/modules/mail_transport_backend/screens.js +35 -0
- package/dist/modules/mail_transport_backend/screens.js.map +1 -0
- package/dist/modules/oauth/functions.d.ts +3 -0
- package/dist/modules/oauth/functions.d.ts.map +1 -0
- package/dist/modules/oauth/functions.js +817 -0
- package/dist/modules/oauth/functions.js.map +1 -0
- package/dist/modules/oauth/index.d.ts +4 -0
- package/dist/modules/oauth/index.d.ts.map +1 -0
- package/dist/modules/oauth/index.js +22 -0
- package/dist/modules/oauth/index.js.map +1 -0
- package/dist/modules/oauth/messages.d.ts +129 -0
- package/dist/modules/oauth/messages.d.ts.map +1 -0
- package/dist/modules/oauth/messages.js +129 -0
- package/dist/modules/oauth/messages.js.map +1 -0
- package/dist/modules/oauth/models.d.ts +4 -0
- package/dist/modules/oauth/models.d.ts.map +1 -0
- package/dist/modules/oauth/models.js +83 -0
- package/dist/modules/oauth/models.js.map +1 -0
- package/dist/modules/oauth/protocol.d.ts +54 -0
- package/dist/modules/oauth/protocol.d.ts.map +1 -0
- package/dist/modules/oauth/protocol.js +309 -0
- package/dist/modules/oauth/protocol.js.map +1 -0
- package/dist/modules/oauth/relations.d.ts +3 -0
- package/dist/modules/oauth/relations.d.ts.map +1 -0
- package/dist/modules/oauth/relations.js +18 -0
- package/dist/modules/oauth/relations.js.map +1 -0
- package/dist/modules/oauth/routes.d.ts +3 -0
- package/dist/modules/oauth/routes.d.ts.map +1 -0
- package/dist/modules/oauth/routes.js +185 -0
- package/dist/modules/oauth/routes.js.map +1 -0
- package/dist/modules/oauth_backend/index.d.ts +4 -0
- package/dist/modules/oauth_backend/index.d.ts.map +1 -0
- package/dist/modules/oauth_backend/index.js +23 -0
- package/dist/modules/oauth_backend/index.js.map +1 -0
- package/dist/modules/oauth_backend/menus.d.ts +3 -0
- package/dist/modules/oauth_backend/menus.d.ts.map +1 -0
- package/dist/modules/oauth_backend/menus.js +17 -0
- package/dist/modules/oauth_backend/menus.js.map +1 -0
- package/dist/modules/oauth_backend/messages.d.ts +169 -0
- package/dist/modules/oauth_backend/messages.d.ts.map +1 -0
- package/dist/modules/oauth_backend/messages.js +169 -0
- package/dist/modules/oauth_backend/messages.js.map +1 -0
- package/dist/modules/oauth_backend/routes.d.ts +3 -0
- package/dist/modules/oauth_backend/routes.d.ts.map +1 -0
- package/dist/modules/oauth_backend/routes.js +231 -0
- package/dist/modules/oauth_backend/routes.js.map +1 -0
- package/dist/modules/oauth_backend/screens.d.ts +66 -0
- package/dist/modules/oauth_backend/screens.d.ts.map +1 -0
- package/dist/modules/oauth_backend/screens.js +323 -0
- package/dist/modules/oauth_backend/screens.js.map +1 -0
- package/dist/modules/odoo_collaboration_import/functions.d.ts +3 -0
- package/dist/modules/odoo_collaboration_import/functions.d.ts.map +1 -0
- package/dist/modules/odoo_collaboration_import/functions.js +128 -0
- package/dist/modules/odoo_collaboration_import/functions.js.map +1 -0
- package/dist/modules/odoo_collaboration_import/index.d.ts +6 -0
- package/dist/modules/odoo_collaboration_import/index.d.ts.map +1 -0
- package/dist/modules/odoo_collaboration_import/index.js +31 -0
- package/dist/modules/odoo_collaboration_import/index.js.map +1 -0
- package/dist/modules/odoo_collaboration_import/models.d.ts +3 -0
- package/dist/modules/odoo_collaboration_import/models.d.ts.map +1 -0
- package/dist/modules/odoo_collaboration_import/models.js +76 -0
- package/dist/modules/odoo_collaboration_import/models.js.map +1 -0
- package/dist/modules/odoo_collaboration_import/operations.d.ts +14 -0
- package/dist/modules/odoo_collaboration_import/operations.d.ts.map +1 -0
- package/dist/modules/odoo_collaboration_import/operations.js +1139 -0
- package/dist/modules/odoo_collaboration_import/operations.js.map +1 -0
- package/dist/modules/odoo_collaboration_import/relations.d.ts +3 -0
- package/dist/modules/odoo_collaboration_import/relations.d.ts.map +1 -0
- package/dist/modules/odoo_collaboration_import/relations.js +19 -0
- package/dist/modules/odoo_collaboration_import/relations.js.map +1 -0
- package/dist/modules/odoo_collaboration_import/types.d.ts +58 -0
- package/dist/modules/odoo_collaboration_import/types.d.ts.map +1 -0
- package/dist/modules/odoo_collaboration_import/types.js +2 -0
- package/dist/modules/odoo_collaboration_import/types.js.map +1 -0
- package/dist/modules/partner/functions.d.ts +5 -0
- package/dist/modules/partner/functions.d.ts.map +1 -0
- package/dist/modules/partner/functions.js +563 -0
- package/dist/modules/partner/functions.js.map +1 -0
- package/dist/modules/partner/index.d.ts +5 -0
- package/dist/modules/partner/index.d.ts.map +1 -0
- package/dist/modules/partner/index.js +23 -0
- package/dist/modules/partner/index.js.map +1 -0
- package/dist/modules/partner/messages.d.ts +55 -0
- package/dist/modules/partner/messages.d.ts.map +1 -0
- package/dist/modules/partner/messages.js +55 -0
- package/dist/modules/partner/messages.js.map +1 -0
- package/dist/modules/partner/models.d.ts +23 -0
- package/dist/modules/partner/models.d.ts.map +1 -0
- package/dist/modules/partner/models.js +124 -0
- package/dist/modules/partner/models.js.map +1 -0
- package/dist/modules/partner/relations.d.ts +4 -0
- package/dist/modules/partner/relations.d.ts.map +1 -0
- package/dist/modules/partner/relations.js +35 -0
- package/dist/modules/partner/relations.js.map +1 -0
- package/dist/modules/partner/types.d.ts +17 -0
- package/dist/modules/partner/types.d.ts.map +1 -0
- package/dist/modules/partner/types.js +14 -0
- package/dist/modules/partner/types.js.map +1 -0
- package/dist/modules/partner/views.d.ts +4 -0
- package/dist/modules/partner/views.d.ts.map +1 -0
- package/dist/modules/partner/views.js +19 -0
- package/dist/modules/partner/views.js.map +1 -0
- package/dist/modules/partner_backend/client/address-view.d.mts +5 -0
- package/dist/modules/partner_backend/client/address-view.d.mts.map +1 -0
- package/dist/modules/partner_backend/client/address-view.mjs +193 -0
- package/dist/modules/partner_backend/client/address-view.mjs.map +1 -0
- package/dist/modules/partner_backend/client/address.css +12 -0
- package/dist/modules/partner_backend/client/address.d.mts +5 -0
- package/dist/modules/partner_backend/client/address.d.mts.map +1 -0
- package/dist/modules/partner_backend/client/address.mjs +7 -0
- package/dist/modules/partner_backend/client/address.mjs.map +1 -0
- package/dist/modules/partner_backend/index.d.ts +5 -0
- package/dist/modules/partner_backend/index.d.ts.map +1 -0
- package/dist/modules/partner_backend/index.js +178 -0
- package/dist/modules/partner_backend/index.js.map +1 -0
- package/dist/modules/partner_backend/islands.d.ts +3 -0
- package/dist/modules/partner_backend/islands.d.ts.map +1 -0
- package/dist/modules/partner_backend/islands.js +23 -0
- package/dist/modules/partner_backend/islands.js.map +1 -0
- package/dist/modules/partner_backend/menus.d.ts +3 -0
- package/dist/modules/partner_backend/menus.d.ts.map +1 -0
- package/dist/modules/partner_backend/menus.js +11 -0
- package/dist/modules/partner_backend/menus.js.map +1 -0
- package/dist/modules/partner_backend/relation-control.d.ts +22 -0
- package/dist/modules/partner_backend/relation-control.d.ts.map +1 -0
- package/dist/modules/partner_backend/relation-control.js +46 -0
- package/dist/modules/partner_backend/relation-control.js.map +1 -0
- package/dist/modules/partner_backend/routes.d.ts +3 -0
- package/dist/modules/partner_backend/routes.d.ts.map +1 -0
- package/dist/modules/partner_backend/routes.js +300 -0
- package/dist/modules/partner_backend/routes.js.map +1 -0
- package/dist/modules/partner_backend/screens.d.ts +53 -0
- package/dist/modules/partner_backend/screens.d.ts.map +1 -0
- package/dist/modules/partner_backend/screens.js +169 -0
- package/dist/modules/partner_backend/screens.js.map +1 -0
- package/dist/modules/pos/functions.d.ts +6 -0
- package/dist/modules/pos/functions.d.ts.map +1 -0
- package/dist/modules/pos/functions.js +953 -0
- package/dist/modules/pos/functions.js.map +1 -0
- package/dist/modules/pos/index.d.ts +4 -0
- package/dist/modules/pos/index.d.ts.map +1 -0
- package/dist/modules/pos/index.js +34 -0
- package/dist/modules/pos/index.js.map +1 -0
- package/dist/modules/pos/models.d.ts +3 -0
- package/dist/modules/pos/models.d.ts.map +1 -0
- package/dist/modules/pos/models.js +107 -0
- package/dist/modules/pos/models.js.map +1 -0
- package/dist/modules/pos/relations.d.ts +3 -0
- package/dist/modules/pos/relations.d.ts.map +1 -0
- package/dist/modules/pos/relations.js +37 -0
- package/dist/modules/pos/relations.js.map +1 -0
- package/dist/modules/pos_backend/index.d.ts +3 -0
- package/dist/modules/pos_backend/index.d.ts.map +1 -0
- package/dist/modules/pos_backend/index.js +654 -0
- package/dist/modules/pos_backend/index.js.map +1 -0
- package/dist/modules/pos_backend/screens.d.ts +15 -0
- package/dist/modules/pos_backend/screens.d.ts.map +1 -0
- package/dist/modules/pos_backend/screens.js +320 -0
- package/dist/modules/pos_backend/screens.js.map +1 -0
- package/dist/modules/pricing/functions.d.ts +6 -0
- package/dist/modules/pricing/functions.d.ts.map +1 -0
- package/dist/modules/pricing/functions.js +318 -0
- package/dist/modules/pricing/functions.js.map +1 -0
- package/dist/modules/pricing/index.d.ts +4 -0
- package/dist/modules/pricing/index.d.ts.map +1 -0
- package/dist/modules/pricing/index.js +30 -0
- package/dist/modules/pricing/index.js.map +1 -0
- package/dist/modules/pricing/models.d.ts +3 -0
- package/dist/modules/pricing/models.d.ts.map +1 -0
- package/dist/modules/pricing/models.js +34 -0
- package/dist/modules/pricing/models.js.map +1 -0
- package/dist/modules/pricing/relations.d.ts +3 -0
- package/dist/modules/pricing/relations.d.ts.map +1 -0
- package/dist/modules/pricing/relations.js +11 -0
- package/dist/modules/pricing/relations.js.map +1 -0
- package/dist/modules/pricing_backend/index.d.ts +3 -0
- package/dist/modules/pricing_backend/index.d.ts.map +1 -0
- package/dist/modules/pricing_backend/index.js +241 -0
- package/dist/modules/pricing_backend/index.js.map +1 -0
- package/dist/modules/pricing_backend/screens.d.ts +13 -0
- package/dist/modules/pricing_backend/screens.d.ts.map +1 -0
- package/dist/modules/pricing_backend/screens.js +182 -0
- package/dist/modules/pricing_backend/screens.js.map +1 -0
- package/dist/modules/product/functions.d.ts +3 -0
- package/dist/modules/product/functions.d.ts.map +1 -0
- package/dist/modules/product/functions.js +627 -0
- package/dist/modules/product/functions.js.map +1 -0
- package/dist/modules/product/index.d.ts +6 -0
- package/dist/modules/product/index.d.ts.map +1 -0
- package/dist/modules/product/index.js +24 -0
- package/dist/modules/product/index.js.map +1 -0
- package/dist/modules/product/messages.d.ts +3 -0
- package/dist/modules/product/messages.d.ts.map +1 -0
- package/dist/modules/product/messages.js +19 -0
- package/dist/modules/product/messages.js.map +1 -0
- package/dist/modules/product/models.d.ts +11 -0
- package/dist/modules/product/models.d.ts.map +1 -0
- package/dist/modules/product/models.js +116 -0
- package/dist/modules/product/models.js.map +1 -0
- package/dist/modules/product/relations.d.ts +8 -0
- package/dist/modules/product/relations.d.ts.map +1 -0
- package/dist/modules/product/relations.js +53 -0
- package/dist/modules/product/relations.js.map +1 -0
- package/dist/modules/product/search.d.ts +73 -0
- package/dist/modules/product/search.d.ts.map +1 -0
- package/dist/modules/product/search.js +66 -0
- package/dist/modules/product/search.js.map +1 -0
- package/dist/modules/product/types.d.ts +14 -0
- package/dist/modules/product/types.d.ts.map +1 -0
- package/dist/modules/product/types.js +2 -0
- package/dist/modules/product/types.js.map +1 -0
- package/dist/modules/product/views.d.ts +4 -0
- package/dist/modules/product/views.d.ts.map +1 -0
- package/dist/modules/product/views.js +7 -0
- package/dist/modules/product/views.js.map +1 -0
- package/dist/modules/product_activity_backend/index.d.ts +5 -0
- package/dist/modules/product_activity_backend/index.d.ts.map +1 -0
- package/dist/modules/product_activity_backend/index.js +29 -0
- package/dist/modules/product_activity_backend/index.js.map +1 -0
- package/dist/modules/product_backend/attributes-screen.d.ts +7 -0
- package/dist/modules/product_backend/attributes-screen.d.ts.map +1 -0
- package/dist/modules/product_backend/attributes-screen.js +76 -0
- package/dist/modules/product_backend/attributes-screen.js.map +1 -0
- package/dist/modules/product_backend/client/editor-view.d.mts +5 -0
- package/dist/modules/product_backend/client/editor-view.d.mts.map +1 -0
- package/dist/modules/product_backend/client/editor-view.mjs +141 -0
- package/dist/modules/product_backend/client/editor-view.mjs.map +1 -0
- package/dist/modules/product_backend/client/product.d.mts +6 -0
- package/dist/modules/product_backend/client/product.d.mts.map +1 -0
- package/dist/modules/product_backend/client/product.mjs +8 -0
- package/dist/modules/product_backend/client/product.mjs.map +1 -0
- package/dist/modules/product_backend/create-screen.d.ts +12 -0
- package/dist/modules/product_backend/create-screen.d.ts.map +1 -0
- package/dist/modules/product_backend/create-screen.js +83 -0
- package/dist/modules/product_backend/create-screen.js.map +1 -0
- package/dist/modules/product_backend/index.d.ts +20 -0
- package/dist/modules/product_backend/index.d.ts.map +1 -0
- package/dist/modules/product_backend/index.js +287 -0
- package/dist/modules/product_backend/index.js.map +1 -0
- package/dist/modules/product_backend/islands.d.ts +3 -0
- package/dist/modules/product_backend/islands.d.ts.map +1 -0
- package/dist/modules/product_backend/islands.js +13 -0
- package/dist/modules/product_backend/islands.js.map +1 -0
- package/dist/modules/product_backend/menus.d.ts +3 -0
- package/dist/modules/product_backend/menus.d.ts.map +1 -0
- package/dist/modules/product_backend/menus.js +25 -0
- package/dist/modules/product_backend/menus.js.map +1 -0
- package/dist/modules/product_backend/routes.d.ts +14 -0
- package/dist/modules/product_backend/routes.d.ts.map +1 -0
- package/dist/modules/product_backend/routes.js +990 -0
- package/dist/modules/product_backend/routes.js.map +1 -0
- package/dist/modules/product_backend/screens.d.ts +68 -0
- package/dist/modules/product_backend/screens.d.ts.map +1 -0
- package/dist/modules/product_backend/screens.js +388 -0
- package/dist/modules/product_backend/screens.js.map +1 -0
- package/dist/modules/product_mail_backend/index.d.ts +5 -0
- package/dist/modules/product_mail_backend/index.d.ts.map +1 -0
- package/dist/modules/product_mail_backend/index.js +30 -0
- package/dist/modules/product_mail_backend/index.js.map +1 -0
- package/dist/modules/product_media/functions.d.ts +3 -0
- package/dist/modules/product_media/functions.d.ts.map +1 -0
- package/dist/modules/product_media/functions.js +183 -0
- package/dist/modules/product_media/functions.js.map +1 -0
- package/dist/modules/product_media/index.d.ts +3 -0
- package/dist/modules/product_media/index.d.ts.map +1 -0
- package/dist/modules/product_media/index.js +29 -0
- package/dist/modules/product_media/index.js.map +1 -0
- package/dist/modules/product_media/models.d.ts +4 -0
- package/dist/modules/product_media/models.d.ts.map +1 -0
- package/dist/modules/product_media/models.js +24 -0
- package/dist/modules/product_media/models.js.map +1 -0
- package/dist/modules/product_media/relations.d.ts +3 -0
- package/dist/modules/product_media/relations.d.ts.map +1 -0
- package/dist/modules/product_media/relations.js +8 -0
- package/dist/modules/product_media/relations.js.map +1 -0
- package/dist/modules/product_variant_activity_backend/index.d.ts +5 -0
- package/dist/modules/product_variant_activity_backend/index.d.ts.map +1 -0
- package/dist/modules/product_variant_activity_backend/index.js +29 -0
- package/dist/modules/product_variant_activity_backend/index.js.map +1 -0
- package/dist/modules/product_variant_mail_backend/index.d.ts +5 -0
- package/dist/modules/product_variant_mail_backend/index.d.ts.map +1 -0
- package/dist/modules/product_variant_mail_backend/index.js +30 -0
- package/dist/modules/product_variant_mail_backend/index.js.map +1 -0
- package/dist/modules/purchase/functions.d.ts +6 -0
- package/dist/modules/purchase/functions.d.ts.map +1 -0
- package/dist/modules/purchase/functions.js +743 -0
- package/dist/modules/purchase/functions.js.map +1 -0
- package/dist/modules/purchase/index.d.ts +4 -0
- package/dist/modules/purchase/index.d.ts.map +1 -0
- package/dist/modules/purchase/index.js +35 -0
- package/dist/modules/purchase/index.js.map +1 -0
- package/dist/modules/purchase/models.d.ts +3 -0
- package/dist/modules/purchase/models.d.ts.map +1 -0
- package/dist/modules/purchase/models.js +68 -0
- package/dist/modules/purchase/models.js.map +1 -0
- package/dist/modules/purchase/relations.d.ts +3 -0
- package/dist/modules/purchase/relations.d.ts.map +1 -0
- package/dist/modules/purchase/relations.js +20 -0
- package/dist/modules/purchase/relations.js.map +1 -0
- package/dist/modules/purchase_backend/index.d.ts +3 -0
- package/dist/modules/purchase_backend/index.d.ts.map +1 -0
- package/dist/modules/purchase_backend/index.js +615 -0
- package/dist/modules/purchase_backend/index.js.map +1 -0
- package/dist/modules/purchase_backend/screens.d.ts +29 -0
- package/dist/modules/purchase_backend/screens.d.ts.map +1 -0
- package/dist/modules/purchase_backend/screens.js +324 -0
- package/dist/modules/purchase_backend/screens.js.map +1 -0
- package/dist/modules/sale/functions.d.ts +6 -0
- package/dist/modules/sale/functions.d.ts.map +1 -0
- package/dist/modules/sale/functions.js +611 -0
- package/dist/modules/sale/functions.js.map +1 -0
- package/dist/modules/sale/index.d.ts +4 -0
- package/dist/modules/sale/index.d.ts.map +1 -0
- package/dist/modules/sale/index.js +35 -0
- package/dist/modules/sale/index.js.map +1 -0
- package/dist/modules/sale/models.d.ts +3 -0
- package/dist/modules/sale/models.d.ts.map +1 -0
- package/dist/modules/sale/models.js +46 -0
- package/dist/modules/sale/models.js.map +1 -0
- package/dist/modules/sale/relations.d.ts +3 -0
- package/dist/modules/sale/relations.d.ts.map +1 -0
- package/dist/modules/sale/relations.js +16 -0
- package/dist/modules/sale/relations.js.map +1 -0
- package/dist/modules/sale_activity_backend/index.d.ts +5 -0
- package/dist/modules/sale_activity_backend/index.d.ts.map +1 -0
- package/dist/modules/sale_activity_backend/index.js +29 -0
- package/dist/modules/sale_activity_backend/index.js.map +1 -0
- package/dist/modules/sale_backend/client/editor-view.d.mts +5 -0
- package/dist/modules/sale_backend/client/editor-view.d.mts.map +1 -0
- package/dist/modules/sale_backend/client/editor-view.mjs +132 -0
- package/dist/modules/sale_backend/client/editor-view.mjs.map +1 -0
- package/dist/modules/sale_backend/client/sale.d.mts +6 -0
- package/dist/modules/sale_backend/client/sale.d.mts.map +1 -0
- package/dist/modules/sale_backend/client/sale.mjs +8 -0
- package/dist/modules/sale_backend/client/sale.mjs.map +1 -0
- package/dist/modules/sale_backend/index.d.ts +3 -0
- package/dist/modules/sale_backend/index.d.ts.map +1 -0
- package/dist/modules/sale_backend/index.js +681 -0
- package/dist/modules/sale_backend/index.js.map +1 -0
- package/dist/modules/sale_backend/invoicing-policies-screen.d.ts +14 -0
- package/dist/modules/sale_backend/invoicing-policies-screen.d.ts.map +1 -0
- package/dist/modules/sale_backend/invoicing-policies-screen.js +36 -0
- package/dist/modules/sale_backend/invoicing-policies-screen.js.map +1 -0
- package/dist/modules/sale_backend/islands.d.ts +3 -0
- package/dist/modules/sale_backend/islands.d.ts.map +1 -0
- package/dist/modules/sale_backend/islands.js +13 -0
- package/dist/modules/sale_backend/islands.js.map +1 -0
- package/dist/modules/sale_backend/order-detail-screen.d.ts +18 -0
- package/dist/modules/sale_backend/order-detail-screen.d.ts.map +1 -0
- package/dist/modules/sale_backend/order-detail-screen.js +217 -0
- package/dist/modules/sale_backend/order-detail-screen.js.map +1 -0
- package/dist/modules/sale_backend/quotations-screen.d.ts +15 -0
- package/dist/modules/sale_backend/quotations-screen.d.ts.map +1 -0
- package/dist/modules/sale_backend/quotations-screen.js +64 -0
- package/dist/modules/sale_backend/quotations-screen.js.map +1 -0
- package/dist/modules/sale_backend/sales-orders-screen.d.ts +12 -0
- package/dist/modules/sale_backend/sales-orders-screen.d.ts.map +1 -0
- package/dist/modules/sale_backend/sales-orders-screen.js +65 -0
- package/dist/modules/sale_backend/sales-orders-screen.js.map +1 -0
- package/dist/modules/sale_backend/screens.d.ts +23 -0
- package/dist/modules/sale_backend/screens.d.ts.map +1 -0
- package/dist/modules/sale_backend/screens.js +275 -0
- package/dist/modules/sale_backend/screens.js.map +1 -0
- package/dist/modules/sale_mail_backend/index.d.ts +5 -0
- package/dist/modules/sale_mail_backend/index.d.ts.map +1 -0
- package/dist/modules/sale_mail_backend/index.js +30 -0
- package/dist/modules/sale_mail_backend/index.js.map +1 -0
- package/dist/modules/stock/functions.d.ts +10 -0
- package/dist/modules/stock/functions.d.ts.map +1 -0
- package/dist/modules/stock/functions.js +1523 -0
- package/dist/modules/stock/functions.js.map +1 -0
- package/dist/modules/stock/index.d.ts +5 -0
- package/dist/modules/stock/index.d.ts.map +1 -0
- package/dist/modules/stock/index.js +35 -0
- package/dist/modules/stock/index.js.map +1 -0
- package/dist/modules/stock/models.d.ts +3 -0
- package/dist/modules/stock/models.d.ts.map +1 -0
- package/dist/modules/stock/models.js +185 -0
- package/dist/modules/stock/models.js.map +1 -0
- package/dist/modules/stock/relations.d.ts +3 -0
- package/dist/modules/stock/relations.d.ts.map +1 -0
- package/dist/modules/stock/relations.js +40 -0
- package/dist/modules/stock/relations.js.map +1 -0
- package/dist/modules/stock/routing.d.ts +7 -0
- package/dist/modules/stock/routing.d.ts.map +1 -0
- package/dist/modules/stock/routing.js +527 -0
- package/dist/modules/stock/routing.js.map +1 -0
- package/dist/modules/stock_activity_backend/index.d.ts +5 -0
- package/dist/modules/stock_activity_backend/index.d.ts.map +1 -0
- package/dist/modules/stock_activity_backend/index.js +29 -0
- package/dist/modules/stock_activity_backend/index.js.map +1 -0
- package/dist/modules/stock_backend/client/editor-view.d.mts +5 -0
- package/dist/modules/stock_backend/client/editor-view.d.mts.map +1 -0
- package/dist/modules/stock_backend/client/editor-view.mjs +147 -0
- package/dist/modules/stock_backend/client/editor-view.mjs.map +1 -0
- package/dist/modules/stock_backend/client/stock.d.mts +6 -0
- package/dist/modules/stock_backend/client/stock.d.mts.map +1 -0
- package/dist/modules/stock_backend/client/stock.mjs +8 -0
- package/dist/modules/stock_backend/client/stock.mjs.map +1 -0
- package/dist/modules/stock_backend/forecast-screen.d.ts +28 -0
- package/dist/modules/stock_backend/forecast-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/forecast-screen.js +108 -0
- package/dist/modules/stock_backend/forecast-screen.js.map +1 -0
- package/dist/modules/stock_backend/index.d.ts +3 -0
- package/dist/modules/stock_backend/index.d.ts.map +1 -0
- package/dist/modules/stock_backend/index.js +880 -0
- package/dist/modules/stock_backend/index.js.map +1 -0
- package/dist/modules/stock_backend/inventory-screen.d.ts +27 -0
- package/dist/modules/stock_backend/inventory-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/inventory-screen.js +141 -0
- package/dist/modules/stock_backend/inventory-screen.js.map +1 -0
- package/dist/modules/stock_backend/islands.d.ts +3 -0
- package/dist/modules/stock_backend/islands.d.ts.map +1 -0
- package/dist/modules/stock_backend/islands.js +13 -0
- package/dist/modules/stock_backend/islands.js.map +1 -0
- package/dist/modules/stock_backend/locations-screen.d.ts +18 -0
- package/dist/modules/stock_backend/locations-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/locations-screen.js +92 -0
- package/dist/modules/stock_backend/locations-screen.js.map +1 -0
- package/dist/modules/stock_backend/lot-screen.d.ts +30 -0
- package/dist/modules/stock_backend/lot-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/lot-screen.js +86 -0
- package/dist/modules/stock_backend/lot-screen.js.map +1 -0
- package/dist/modules/stock_backend/lots-screen.d.ts +21 -0
- package/dist/modules/stock_backend/lots-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/lots-screen.js +79 -0
- package/dist/modules/stock_backend/lots-screen.js.map +1 -0
- package/dist/modules/stock_backend/picking-types-screen.d.ts +21 -0
- package/dist/modules/stock_backend/picking-types-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/picking-types-screen.js +110 -0
- package/dist/modules/stock_backend/picking-types-screen.js.map +1 -0
- package/dist/modules/stock_backend/replenishment-screen.d.ts +29 -0
- package/dist/modules/stock_backend/replenishment-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/replenishment-screen.js +131 -0
- package/dist/modules/stock_backend/replenishment-screen.js.map +1 -0
- package/dist/modules/stock_backend/routes.d.ts +3 -0
- package/dist/modules/stock_backend/routes.d.ts.map +1 -0
- package/dist/modules/stock_backend/routes.js +950 -0
- package/dist/modules/stock_backend/routes.js.map +1 -0
- package/dist/modules/stock_backend/screens.d.ts +14 -0
- package/dist/modules/stock_backend/screens.d.ts.map +1 -0
- package/dist/modules/stock_backend/screens.js +40 -0
- package/dist/modules/stock_backend/screens.js.map +1 -0
- package/dist/modules/stock_backend/stock-route-screen.d.ts +30 -0
- package/dist/modules/stock_backend/stock-route-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/stock-route-screen.js +129 -0
- package/dist/modules/stock_backend/stock-route-screen.js.map +1 -0
- package/dist/modules/stock_backend/stock-routes-screen.d.ts +17 -0
- package/dist/modules/stock_backend/stock-routes-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/stock-routes-screen.js +60 -0
- package/dist/modules/stock_backend/stock-routes-screen.js.map +1 -0
- package/dist/modules/stock_backend/transfer-screen.d.ts +26 -0
- package/dist/modules/stock_backend/transfer-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/transfer-screen.js +95 -0
- package/dist/modules/stock_backend/transfer-screen.js.map +1 -0
- package/dist/modules/stock_backend/transfers-screen.d.ts +21 -0
- package/dist/modules/stock_backend/transfers-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/transfers-screen.js +88 -0
- package/dist/modules/stock_backend/transfers-screen.js.map +1 -0
- package/dist/modules/stock_backend/warehouses-screen.d.ts +17 -0
- package/dist/modules/stock_backend/warehouses-screen.d.ts.map +1 -0
- package/dist/modules/stock_backend/warehouses-screen.js +96 -0
- package/dist/modules/stock_backend/warehouses-screen.js.map +1 -0
- package/dist/modules/stock_lot_activity_backend/index.d.ts +5 -0
- package/dist/modules/stock_lot_activity_backend/index.d.ts.map +1 -0
- package/dist/modules/stock_lot_activity_backend/index.js +29 -0
- package/dist/modules/stock_lot_activity_backend/index.js.map +1 -0
- package/dist/modules/stock_lot_mail_backend/index.d.ts +5 -0
- package/dist/modules/stock_lot_mail_backend/index.d.ts.map +1 -0
- package/dist/modules/stock_lot_mail_backend/index.js +30 -0
- package/dist/modules/stock_lot_mail_backend/index.js.map +1 -0
- package/dist/modules/stock_mail_backend/index.d.ts +5 -0
- package/dist/modules/stock_mail_backend/index.d.ts.map +1 -0
- package/dist/modules/stock_mail_backend/index.js +30 -0
- package/dist/modules/stock_mail_backend/index.js.map +1 -0
- package/dist/modules/stock_mail_inbound/index.d.ts +6 -0
- package/dist/modules/stock_mail_inbound/index.d.ts.map +1 -0
- package/dist/modules/stock_mail_inbound/index.js +104 -0
- package/dist/modules/stock_mail_inbound/index.js.map +1 -0
- package/dist/modules/storage/functions.d.ts +3 -0
- package/dist/modules/storage/functions.d.ts.map +1 -0
- package/dist/modules/storage/functions.js +129 -0
- package/dist/modules/storage/functions.js.map +1 -0
- package/dist/modules/storage/index.d.ts +3 -0
- package/dist/modules/storage/index.d.ts.map +1 -0
- package/dist/modules/storage/index.js +31 -0
- package/dist/modules/storage/index.js.map +1 -0
- package/dist/modules/storage/jobs.d.ts +3 -0
- package/dist/modules/storage/jobs.d.ts.map +1 -0
- package/dist/modules/storage/jobs.js +37 -0
- package/dist/modules/storage/jobs.js.map +1 -0
- package/dist/modules/storage/models.d.ts +3 -0
- package/dist/modules/storage/models.d.ts.map +1 -0
- package/dist/modules/storage/models.js +23 -0
- package/dist/modules/storage/models.js.map +1 -0
- package/dist/modules/storage/routes.d.ts +27 -0
- package/dist/modules/storage/routes.d.ts.map +1 -0
- package/dist/modules/storage/routes.js +180 -0
- package/dist/modules/storage/routes.js.map +1 -0
- package/dist/modules/uom/convert.d.ts +52 -0
- package/dist/modules/uom/convert.d.ts.map +1 -0
- package/dist/modules/uom/convert.js +76 -0
- package/dist/modules/uom/convert.js.map +1 -0
- package/dist/modules/uom/functions.d.ts +5 -0
- package/dist/modules/uom/functions.d.ts.map +1 -0
- package/dist/modules/uom/functions.js +235 -0
- package/dist/modules/uom/functions.js.map +1 -0
- package/dist/modules/uom/index.d.ts +5 -0
- package/dist/modules/uom/index.d.ts.map +1 -0
- package/dist/modules/uom/index.js +19 -0
- package/dist/modules/uom/index.js.map +1 -0
- package/dist/modules/uom/messages.d.ts +3 -0
- package/dist/modules/uom/messages.d.ts.map +1 -0
- package/dist/modules/uom/messages.js +19 -0
- package/dist/modules/uom/messages.js.map +1 -0
- package/dist/modules/uom/models.d.ts +4 -0
- package/dist/modules/uom/models.d.ts.map +1 -0
- package/dist/modules/uom/models.js +34 -0
- package/dist/modules/uom/models.js.map +1 -0
- package/dist/modules/uom/relations.d.ts +3 -0
- package/dist/modules/uom/relations.d.ts.map +1 -0
- package/dist/modules/uom/relations.js +7 -0
- package/dist/modules/uom/relations.js.map +1 -0
- package/dist/modules/user/functions.d.ts +8 -0
- package/dist/modules/user/functions.d.ts.map +1 -0
- package/dist/modules/user/functions.js +1094 -0
- package/dist/modules/user/functions.js.map +1 -0
- package/dist/modules/user/index.d.ts +8 -0
- package/dist/modules/user/index.d.ts.map +1 -0
- package/dist/modules/user/index.js +34 -0
- package/dist/modules/user/index.js.map +1 -0
- package/dist/modules/user/login.d.ts +28 -0
- package/dist/modules/user/login.d.ts.map +1 -0
- package/dist/modules/user/login.js +46 -0
- package/dist/modules/user/login.js.map +1 -0
- package/dist/modules/user/messages.d.ts +115 -0
- package/dist/modules/user/messages.d.ts.map +1 -0
- package/dist/modules/user/messages.js +115 -0
- package/dist/modules/user/messages.js.map +1 -0
- package/dist/modules/user/models.d.ts +16 -0
- package/dist/modules/user/models.d.ts.map +1 -0
- package/dist/modules/user/models.js +168 -0
- package/dist/modules/user/models.js.map +1 -0
- package/dist/modules/user/password.d.ts +11 -0
- package/dist/modules/user/password.d.ts.map +1 -0
- package/dist/modules/user/password.js +74 -0
- package/dist/modules/user/password.js.map +1 -0
- package/dist/modules/user/relations.d.ts +3 -0
- package/dist/modules/user/relations.d.ts.map +1 -0
- package/dist/modules/user/relations.js +31 -0
- package/dist/modules/user/relations.js.map +1 -0
- package/dist/modules/user/roles.d.ts +12 -0
- package/dist/modules/user/roles.d.ts.map +1 -0
- package/dist/modules/user/roles.js +254 -0
- package/dist/modules/user/roles.js.map +1 -0
- package/dist/modules/user/routes.d.ts +3 -0
- package/dist/modules/user/routes.d.ts.map +1 -0
- package/dist/modules/user/routes.js +244 -0
- package/dist/modules/user/routes.js.map +1 -0
- package/dist/modules/user/session-context.d.ts +10 -0
- package/dist/modules/user/session-context.d.ts.map +1 -0
- package/dist/modules/user/session-context.js +31 -0
- package/dist/modules/user/session-context.js.map +1 -0
- package/dist/modules/user_backend/index.d.ts +5 -0
- package/dist/modules/user_backend/index.d.ts.map +1 -0
- package/dist/modules/user_backend/index.js +24 -0
- package/dist/modules/user_backend/index.js.map +1 -0
- package/dist/modules/user_backend/menus.d.ts +3 -0
- package/dist/modules/user_backend/menus.d.ts.map +1 -0
- package/dist/modules/user_backend/menus.js +24 -0
- package/dist/modules/user_backend/menus.js.map +1 -0
- package/dist/modules/user_backend/messages.d.ts +189 -0
- package/dist/modules/user_backend/messages.d.ts.map +1 -0
- package/dist/modules/user_backend/messages.js +189 -0
- package/dist/modules/user_backend/messages.js.map +1 -0
- package/dist/modules/user_backend/routes.d.ts +3 -0
- package/dist/modules/user_backend/routes.d.ts.map +1 -0
- package/dist/modules/user_backend/routes.js +474 -0
- package/dist/modules/user_backend/routes.js.map +1 -0
- package/dist/modules/user_backend/screens.d.ts +70 -0
- package/dist/modules/user_backend/screens.d.ts.map +1 -0
- package/dist/modules/user_backend/screens.js +308 -0
- package/dist/modules/user_backend/screens.js.map +1 -0
- package/dist/modules/website/access.d.ts +15 -0
- package/dist/modules/website/access.d.ts.map +1 -0
- package/dist/modules/website/access.js +39 -0
- package/dist/modules/website/access.js.map +1 -0
- package/dist/modules/website/cms.d.ts +3 -0
- package/dist/modules/website/cms.d.ts.map +1 -0
- package/dist/modules/website/cms.js +1142 -0
- package/dist/modules/website/cms.js.map +1 -0
- package/dist/modules/website/content-types.d.ts +4 -0
- package/dist/modules/website/content-types.d.ts.map +1 -0
- package/dist/modules/website/content-types.js +30 -0
- package/dist/modules/website/content-types.js.map +1 -0
- package/dist/modules/website/customer-password.d.ts +4 -0
- package/dist/modules/website/customer-password.d.ts.map +1 -0
- package/dist/modules/website/customer-password.js +51 -0
- package/dist/modules/website/customer-password.js.map +1 -0
- package/dist/modules/website/customer-routes.d.ts +3 -0
- package/dist/modules/website/customer-routes.d.ts.map +1 -0
- package/dist/modules/website/customer-routes.js +322 -0
- package/dist/modules/website/customer-routes.js.map +1 -0
- package/dist/modules/website/customer.d.ts +5 -0
- package/dist/modules/website/customer.d.ts.map +1 -0
- package/dist/modules/website/customer.js +442 -0
- package/dist/modules/website/customer.js.map +1 -0
- package/dist/modules/website/functions.d.ts +3 -0
- package/dist/modules/website/functions.d.ts.map +1 -0
- package/dist/modules/website/functions.js +96 -0
- package/dist/modules/website/functions.js.map +1 -0
- package/dist/modules/website/index.d.ts +4 -0
- package/dist/modules/website/index.d.ts.map +1 -0
- package/dist/modules/website/index.js +152 -0
- package/dist/modules/website/index.js.map +1 -0
- package/dist/modules/website/jobs.d.ts +3 -0
- package/dist/modules/website/jobs.d.ts.map +1 -0
- package/dist/modules/website/jobs.js +25 -0
- package/dist/modules/website/jobs.js.map +1 -0
- package/dist/modules/website/joints.d.ts +4 -0
- package/dist/modules/website/joints.d.ts.map +1 -0
- package/dist/modules/website/joints.js +7 -0
- package/dist/modules/website/joints.js.map +1 -0
- package/dist/modules/website/models.d.ts +8 -0
- package/dist/modules/website/models.d.ts.map +1 -0
- package/dist/modules/website/models.js +260 -0
- package/dist/modules/website/models.js.map +1 -0
- package/dist/modules/website/sections.d.ts +8 -0
- package/dist/modules/website/sections.d.ts.map +1 -0
- package/dist/modules/website/sections.js +16 -0
- package/dist/modules/website/sections.js.map +1 -0
- package/dist/modules/website/tokens.d.ts +2 -0
- package/dist/modules/website/tokens.d.ts.map +1 -0
- package/dist/modules/website/tokens.js +5 -0
- package/dist/modules/website/tokens.js.map +1 -0
- package/dist/modules/website/types.d.ts +6 -0
- package/dist/modules/website/types.d.ts.map +1 -0
- package/dist/modules/website/types.js +2 -0
- package/dist/modules/website/types.js.map +1 -0
- package/dist/modules/website/views.d.ts +4 -0
- package/dist/modules/website/views.d.ts.map +1 -0
- package/dist/modules/website/views.js +5 -0
- package/dist/modules/website/views.js.map +1 -0
- package/dist/modules/website_backend/index.d.ts +3 -0
- package/dist/modules/website_backend/index.d.ts.map +1 -0
- package/dist/modules/website_backend/index.js +290 -0
- package/dist/modules/website_backend/index.js.map +1 -0
- package/dist/modules/website_backend/menus.d.ts +3 -0
- package/dist/modules/website_backend/menus.d.ts.map +1 -0
- package/dist/modules/website_backend/menus.js +54 -0
- package/dist/modules/website_backend/menus.js.map +1 -0
- package/dist/modules/website_backend/routes.d.ts +3 -0
- package/dist/modules/website_backend/routes.d.ts.map +1 -0
- package/dist/modules/website_backend/routes.js +625 -0
- package/dist/modules/website_backend/routes.js.map +1 -0
- package/dist/modules/website_backend/screens.d.ts +114 -0
- package/dist/modules/website_backend/screens.d.ts.map +1 -0
- package/dist/modules/website_backend/screens.js +625 -0
- package/dist/modules/website_backend/screens.js.map +1 -0
- package/dist/modules/website_form/functions.d.ts +3 -0
- package/dist/modules/website_form/functions.d.ts.map +1 -0
- package/dist/modules/website_form/functions.js +305 -0
- package/dist/modules/website_form/functions.js.map +1 -0
- package/dist/modules/website_form/index.d.ts +3 -0
- package/dist/modules/website_form/index.d.ts.map +1 -0
- package/dist/modules/website_form/index.js +72 -0
- package/dist/modules/website_form/index.js.map +1 -0
- package/dist/modules/website_form/models.d.ts +3 -0
- package/dist/modules/website_form/models.d.ts.map +1 -0
- package/dist/modules/website_form/models.js +46 -0
- package/dist/modules/website_form/models.js.map +1 -0
- package/dist/modules/website_form/routes.d.ts +3 -0
- package/dist/modules/website_form/routes.d.ts.map +1 -0
- package/dist/modules/website_form/routes.js +74 -0
- package/dist/modules/website_form/routes.js.map +1 -0
- package/dist/modules/website_form/sections.d.ts +3 -0
- package/dist/modules/website_form/sections.d.ts.map +1 -0
- package/dist/modules/website_form/sections.js +7 -0
- package/dist/modules/website_form/sections.js.map +1 -0
- package/dist/modules/website_hospitality/content-types.d.ts +3 -0
- package/dist/modules/website_hospitality/content-types.d.ts.map +1 -0
- package/dist/modules/website_hospitality/content-types.js +9 -0
- package/dist/modules/website_hospitality/content-types.js.map +1 -0
- package/dist/modules/website_hospitality/functions.d.ts +3 -0
- package/dist/modules/website_hospitality/functions.d.ts.map +1 -0
- package/dist/modules/website_hospitality/functions.js +296 -0
- package/dist/modules/website_hospitality/functions.js.map +1 -0
- package/dist/modules/website_hospitality/index.d.ts +3 -0
- package/dist/modules/website_hospitality/index.d.ts.map +1 -0
- package/dist/modules/website_hospitality/index.js +67 -0
- package/dist/modules/website_hospitality/index.js.map +1 -0
- package/dist/modules/website_hospitality/models.d.ts +3 -0
- package/dist/modules/website_hospitality/models.d.ts.map +1 -0
- package/dist/modules/website_hospitality/models.js +49 -0
- package/dist/modules/website_hospitality/models.js.map +1 -0
- package/dist/modules/website_hospitality/routes.d.ts +3 -0
- package/dist/modules/website_hospitality/routes.d.ts.map +1 -0
- package/dist/modules/website_hospitality/routes.js +78 -0
- package/dist/modules/website_hospitality/routes.js.map +1 -0
- package/dist/modules/website_hospitality/sections.d.ts +3 -0
- package/dist/modules/website_hospitality/sections.d.ts.map +1 -0
- package/dist/modules/website_hospitality/sections.js +11 -0
- package/dist/modules/website_hospitality/sections.js.map +1 -0
- package/dist/modules/website_menu/functions.d.ts +3 -0
- package/dist/modules/website_menu/functions.d.ts.map +1 -0
- package/dist/modules/website_menu/functions.js +79 -0
- package/dist/modules/website_menu/functions.js.map +1 -0
- package/dist/modules/website_menu/index.d.ts +3 -0
- package/dist/modules/website_menu/index.d.ts.map +1 -0
- package/dist/modules/website_menu/index.js +31 -0
- package/dist/modules/website_menu/index.js.map +1 -0
- package/dist/modules/website_menu/models.d.ts +3 -0
- package/dist/modules/website_menu/models.d.ts.map +1 -0
- package/dist/modules/website_menu/models.js +15 -0
- package/dist/modules/website_menu/models.js.map +1 -0
- package/dist/modules/website_menu/sections.d.ts +3 -0
- package/dist/modules/website_menu/sections.d.ts.map +1 -0
- package/dist/modules/website_menu/sections.js +4 -0
- package/dist/modules/website_menu/sections.js.map +1 -0
- package/dist/modules/website_menu/views.d.ts +3 -0
- package/dist/modules/website_menu/views.d.ts.map +1 -0
- package/dist/modules/website_menu/views.js +4 -0
- package/dist/modules/website_menu/views.js.map +1 -0
- package/dist/modules/website_retail/content-types.d.ts +3 -0
- package/dist/modules/website_retail/content-types.d.ts.map +1 -0
- package/dist/modules/website_retail/content-types.js +10 -0
- package/dist/modules/website_retail/content-types.js.map +1 -0
- package/dist/modules/website_retail/functions.d.ts +3 -0
- package/dist/modules/website_retail/functions.d.ts.map +1 -0
- package/dist/modules/website_retail/functions.js +321 -0
- package/dist/modules/website_retail/functions.js.map +1 -0
- package/dist/modules/website_retail/index.d.ts +3 -0
- package/dist/modules/website_retail/index.d.ts.map +1 -0
- package/dist/modules/website_retail/index.js +63 -0
- package/dist/modules/website_retail/index.js.map +1 -0
- package/dist/modules/website_retail/models.d.ts +3 -0
- package/dist/modules/website_retail/models.d.ts.map +1 -0
- package/dist/modules/website_retail/models.js +50 -0
- package/dist/modules/website_retail/models.js.map +1 -0
- package/dist/modules/website_retail/sections.d.ts +3 -0
- package/dist/modules/website_retail/sections.d.ts.map +1 -0
- package/dist/modules/website_retail/sections.js +11 -0
- package/dist/modules/website_retail/sections.js.map +1 -0
- package/dist/modules/website_search/client/search.d.mts +6 -0
- package/dist/modules/website_search/client/search.d.mts.map +1 -0
- package/dist/modules/website_search/client/search.mjs +25 -0
- package/dist/modules/website_search/client/search.mjs.map +1 -0
- package/dist/modules/website_search/fills.d.ts +3 -0
- package/dist/modules/website_search/fills.d.ts.map +1 -0
- package/dist/modules/website_search/fills.js +5 -0
- package/dist/modules/website_search/fills.js.map +1 -0
- package/dist/modules/website_search/index.d.ts +3 -0
- package/dist/modules/website_search/index.d.ts.map +1 -0
- package/dist/modules/website_search/index.js +28 -0
- package/dist/modules/website_search/index.js.map +1 -0
- package/dist/modules/website_search/islands.d.ts +7 -0
- package/dist/modules/website_search/islands.d.ts.map +1 -0
- package/dist/modules/website_search/islands.js +23 -0
- package/dist/modules/website_search/islands.js.map +1 -0
- package/dist/modules/website_seo/extend.d.ts +7 -0
- package/dist/modules/website_seo/extend.d.ts.map +1 -0
- package/dist/modules/website_seo/extend.js +20 -0
- package/dist/modules/website_seo/extend.js.map +1 -0
- package/dist/modules/website_seo/fills.d.ts +3 -0
- package/dist/modules/website_seo/fills.d.ts.map +1 -0
- package/dist/modules/website_seo/fills.js +8 -0
- package/dist/modules/website_seo/fills.js.map +1 -0
- package/dist/modules/website_seo/index.d.ts +3 -0
- package/dist/modules/website_seo/index.d.ts.map +1 -0
- package/dist/modules/website_seo/index.js +30 -0
- package/dist/modules/website_seo/index.js.map +1 -0
- package/dist/modules/website_seo/views.d.ts +3 -0
- package/dist/modules/website_seo/views.d.ts.map +1 -0
- package/dist/modules/website_seo/views.js +5 -0
- package/dist/modules/website_seo/views.js.map +1 -0
- package/dist/themes/default/index.d.ts +3 -0
- package/dist/themes/default/index.d.ts.map +1 -0
- package/dist/themes/default/index.js +16 -0
- package/dist/themes/default/index.js.map +1 -0
- package/dist/themes/default/templates/layout.ktl +7 -0
- package/dist/themes/default/templates/product.detail.ktl +10 -0
- package/dist/themes/default/templates/product.related_row.ktl +1 -0
- package/dist/themes/hospitality/assets/theme.css +109 -0
- package/dist/themes/hospitality/index.d.ts +3 -0
- package/dist/themes/hospitality/index.d.ts.map +1 -0
- package/dist/themes/hospitality/index.js +26 -0
- package/dist/themes/hospitality/index.js.map +1 -0
- package/dist/themes/hospitality/templates/layout.ktl +17 -0
- package/dist/themes/hospitality/templates/menu.item.ktl +1 -0
- package/dist/themes/hospitality/templates/menu.primary.ktl +1 -0
- package/dist/themes/hospitality/templates/website.hero.ktl +6 -0
- package/dist/themes/hospitality/templates/website.page.ktl +1 -0
- package/dist/themes/hospitality/templates/website.rich_text.ktl +3 -0
- package/dist/themes/hospitality/templates/website_form.form.ktl +1 -0
- package/dist/themes/hospitality/templates/website_hospitality.booking.ktl +1 -0
- package/dist/themes/hospitality/templates/website_hospitality.stays.ktl +1 -0
- package/dist/themes/hospitality/tokens.d.ts +2 -0
- package/dist/themes/hospitality/tokens.d.ts.map +1 -0
- package/dist/themes/hospitality/tokens.js +9 -0
- package/dist/themes/hospitality/tokens.js.map +1 -0
- package/dist/themes/paper/index.d.ts +9 -0
- package/dist/themes/paper/index.d.ts.map +1 -0
- package/dist/themes/paper/index.js +30 -0
- package/dist/themes/paper/index.js.map +1 -0
- package/dist/themes/paper/templates/layout.ktl +14 -0
- package/dist/themes/paper/templates/menu.item.ktl +3 -0
- package/dist/themes/paper/templates/menu.primary.ktl +3 -0
- package/dist/themes/paper/templates/website.hero.ktl +6 -0
- package/dist/themes/paper/templates/website.page.ktl +2 -0
- package/dist/themes/paper/templates/website.rich_text.ktl +4 -0
- package/dist/themes/paper/tokens.d.ts +2 -0
- package/dist/themes/paper/tokens.d.ts.map +1 -0
- package/dist/themes/paper/tokens.js +11 -0
- package/dist/themes/paper/tokens.js.map +1 -0
- package/dist/themes/retail/assets/theme.css +114 -0
- package/dist/themes/retail/index.d.ts +3 -0
- package/dist/themes/retail/index.d.ts.map +1 -0
- package/dist/themes/retail/index.js +26 -0
- package/dist/themes/retail/index.js.map +1 -0
- package/dist/themes/retail/templates/layout.ktl +5 -0
- package/dist/themes/retail/templates/menu.item.ktl +1 -0
- package/dist/themes/retail/templates/menu.primary.ktl +1 -0
- package/dist/themes/retail/templates/website.hero.ktl +1 -0
- package/dist/themes/retail/templates/website.page.ktl +1 -0
- package/dist/themes/retail/templates/website.rich_text.ktl +1 -0
- package/dist/themes/retail/templates/website_form.form.ktl +1 -0
- package/dist/themes/retail/templates/website_retail.cart.ktl +1 -0
- package/dist/themes/retail/templates/website_retail.products.ktl +1 -0
- package/dist/themes/retail/tokens.d.ts +2 -0
- package/dist/themes/retail/tokens.d.ts.map +1 -0
- package/dist/themes/retail/tokens.js +9 -0
- package/dist/themes/retail/tokens.js.map +1 -0
- package/dist/ui/actions.d.ts +38 -0
- package/dist/ui/actions.d.ts.map +1 -0
- package/dist/ui/actions.js +20 -0
- package/dist/ui/actions.js.map +1 -0
- package/dist/ui/activity.d.ts +4 -0
- package/dist/ui/activity.d.ts.map +1 -0
- package/dist/ui/activity.js +73 -0
- package/dist/ui/activity.js.map +1 -0
- package/dist/ui/attachments.d.ts +18 -0
- package/dist/ui/attachments.d.ts.map +1 -0
- package/dist/ui/attachments.js +15 -0
- package/dist/ui/attachments.js.map +1 -0
- package/dist/ui/auth.d.ts +9 -0
- package/dist/ui/auth.d.ts.map +1 -0
- package/dist/ui/auth.js +44 -0
- package/dist/ui/auth.js.map +1 -0
- package/dist/ui/calendar.d.ts +4 -0
- package/dist/ui/calendar.d.ts.map +1 -0
- package/dist/ui/calendar.js +51 -0
- package/dist/ui/calendar.js.map +1 -0
- package/dist/ui/chrome.d.ts +66 -0
- package/dist/ui/chrome.d.ts.map +1 -0
- package/dist/ui/chrome.js +39 -0
- package/dist/ui/chrome.js.map +1 -0
- package/dist/ui/client/activity-view.d.mts +12 -0
- package/dist/ui/client/activity-view.d.mts.map +1 -0
- package/dist/ui/client/activity-view.mjs +393 -0
- package/dist/ui/client/activity-view.mjs.map +1 -0
- package/dist/ui/client/activity.css +269 -0
- package/dist/ui/client/activity.d.mts +11 -0
- package/dist/ui/client/activity.d.mts.map +1 -0
- package/dist/ui/client/activity.mjs +10 -0
- package/dist/ui/client/activity.mjs.map +1 -0
- package/dist/ui/client/calendar-view.d.mts +5 -0
- package/dist/ui/client/calendar-view.d.mts.map +1 -0
- package/dist/ui/client/calendar-view.mjs +266 -0
- package/dist/ui/client/calendar-view.mjs.map +1 -0
- package/dist/ui/client/calendar.css +170 -0
- package/dist/ui/client/calendar.d.mts +6 -0
- package/dist/ui/client/calendar.d.mts.map +1 -0
- package/dist/ui/client/calendar.mjs +6 -0
- package/dist/ui/client/calendar.mjs.map +1 -0
- package/dist/ui/client/mail-view.d.mts +9 -0
- package/dist/ui/client/mail-view.d.mts.map +1 -0
- package/dist/ui/client/mail-view.mjs +350 -0
- package/dist/ui/client/mail-view.mjs.map +1 -0
- package/dist/ui/client/mail.css +230 -0
- package/dist/ui/client/mail.d.mts +11 -0
- package/dist/ui/client/mail.d.mts.map +1 -0
- package/dist/ui/client/mail.mjs +10 -0
- package/dist/ui/client/mail.mjs.map +1 -0
- package/dist/ui/data.d.ts +25 -0
- package/dist/ui/data.d.ts.map +1 -0
- package/dist/ui/data.js +23 -0
- package/dist/ui/data.js.map +1 -0
- package/dist/ui/date-picker.d.ts +36 -0
- package/dist/ui/date-picker.d.ts.map +1 -0
- package/dist/ui/date-picker.js +40 -0
- package/dist/ui/date-picker.js.map +1 -0
- package/dist/ui/form.d.ts +67 -0
- package/dist/ui/form.d.ts.map +1 -0
- package/dist/ui/form.js +75 -0
- package/dist/ui/form.js.map +1 -0
- package/dist/ui/format.d.ts +4 -0
- package/dist/ui/format.d.ts.map +1 -0
- package/dist/ui/format.js +33 -0
- package/dist/ui/format.js.map +1 -0
- package/dist/ui/hooks.d.ts +5 -0
- package/dist/ui/hooks.d.ts.map +1 -0
- package/dist/ui/hooks.js +82 -0
- package/dist/ui/hooks.js.map +1 -0
- package/dist/ui/icons.d.ts +12 -0
- package/dist/ui/icons.d.ts.map +1 -0
- package/dist/ui/icons.js +76 -0
- package/dist/ui/icons.js.map +1 -0
- package/dist/ui/index.d.ts +39 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +39 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/layout.d.ts +80 -0
- package/dist/ui/layout.d.ts.map +1 -0
- package/dist/ui/layout.js +86 -0
- package/dist/ui/layout.js.map +1 -0
- package/dist/ui/mail.d.ts +5 -0
- package/dist/ui/mail.d.ts.map +1 -0
- package/dist/ui/mail.js +69 -0
- package/dist/ui/mail.js.map +1 -0
- package/dist/ui/media.d.ts +42 -0
- package/dist/ui/media.d.ts.map +1 -0
- package/dist/ui/media.js +48 -0
- package/dist/ui/media.js.map +1 -0
- package/dist/ui/modal.d.ts +9 -0
- package/dist/ui/modal.d.ts.map +1 -0
- package/dist/ui/modal.js +13 -0
- package/dist/ui/modal.js.map +1 -0
- package/dist/ui/nav.d.ts +34 -0
- package/dist/ui/nav.d.ts.map +1 -0
- package/dist/ui/nav.js +77 -0
- package/dist/ui/nav.js.map +1 -0
- package/dist/ui/navigation.d.ts +22 -0
- package/dist/ui/navigation.d.ts.map +1 -0
- package/dist/ui/navigation.js +9 -0
- package/dist/ui/navigation.js.map +1 -0
- package/dist/ui/primitives.d.ts +61 -0
- package/dist/ui/primitives.d.ts.map +1 -0
- package/dist/ui/primitives.js +74 -0
- package/dist/ui/primitives.js.map +1 -0
- package/dist/ui/record.d.ts +44 -0
- package/dist/ui/record.d.ts.map +1 -0
- package/dist/ui/record.js +39 -0
- package/dist/ui/record.js.map +1 -0
- package/dist/ui/schedule.d.ts +34 -0
- package/dist/ui/schedule.d.ts.map +1 -0
- package/dist/ui/schedule.js +39 -0
- package/dist/ui/schedule.js.map +1 -0
- package/dist/ui/state.d.ts +19 -0
- package/dist/ui/state.d.ts.map +1 -0
- package/dist/ui/state.js +34 -0
- package/dist/ui/state.js.map +1 -0
- package/dist/ui/surfaces.d.ts +38 -0
- package/dist/ui/surfaces.d.ts.map +1 -0
- package/dist/ui/surfaces.js +36 -0
- package/dist/ui/surfaces.js.map +1 -0
- package/dist/ui/table.d.ts +48 -0
- package/dist/ui/table.d.ts.map +1 -0
- package/dist/ui/table.js +53 -0
- package/dist/ui/table.js.map +1 -0
- package/package.json +57 -0
|
@@ -0,0 +1,1139 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
import { eq, from, KetError } from '@ketvietlab/ketjs';
|
|
3
|
+
import { inboundPlainText } from '../mail_inbound/index.js';
|
|
4
|
+
const MAX_ROWS = 5_000;
|
|
5
|
+
const MAX_BINDINGS = 2_000;
|
|
6
|
+
const SECRET_KEY = /(secret|password|passwd|token|api.?key|authorization|private.?key)/i;
|
|
7
|
+
const supportedTargets = {
|
|
8
|
+
'mail.message.subtype': 'mail.Subtype',
|
|
9
|
+
'mail.activity.type': 'activity.Type',
|
|
10
|
+
'mail.message': 'mail.Message',
|
|
11
|
+
'mail.tracking.value': 'mail.TrackingValue',
|
|
12
|
+
'mail.followers': 'mail.Follower',
|
|
13
|
+
'mail.notification': 'mail.Notification',
|
|
14
|
+
'mail.activity': 'activity.Activity',
|
|
15
|
+
'mail.activity.plan': 'activity.Plan',
|
|
16
|
+
'mail.activity.plan.template': 'activity.PlanStep',
|
|
17
|
+
'calendar.recurrence': 'calendar.Recurrence',
|
|
18
|
+
'calendar.event': 'calendar.Event',
|
|
19
|
+
'calendar.attendee': 'calendar.Attendee',
|
|
20
|
+
'calendar.alarm': 'calendar.Reminder',
|
|
21
|
+
'calendar.event.type': 'calendar.Tag',
|
|
22
|
+
'calendar.event.type.rel': 'calendar.EventTag',
|
|
23
|
+
'ir.attachment': 'storage.Attachment',
|
|
24
|
+
'mail.template': 'mail_transport.Template',
|
|
25
|
+
'mail.mail': 'mail_transport.Delivery',
|
|
26
|
+
'mail.alias.domain': 'mail_inbound.AliasDomain',
|
|
27
|
+
'mail.alias': 'mail_inbound.Alias',
|
|
28
|
+
};
|
|
29
|
+
const rank = {
|
|
30
|
+
'mail.message.subtype': 10,
|
|
31
|
+
'mail.activity.type': 10,
|
|
32
|
+
'mail.activity.plan': 10,
|
|
33
|
+
'mail.alias.domain': 10,
|
|
34
|
+
'calendar.recurrence': 10,
|
|
35
|
+
'calendar.event.type': 10,
|
|
36
|
+
'ir.attachment': 15,
|
|
37
|
+
'mail.template': 15,
|
|
38
|
+
'mail.alias': 15,
|
|
39
|
+
'mail.message': 20,
|
|
40
|
+
'mail.followers': 20,
|
|
41
|
+
'mail.activity': 20,
|
|
42
|
+
'calendar.event': 20,
|
|
43
|
+
'mail.notification': 30,
|
|
44
|
+
'mail.tracking.value': 30,
|
|
45
|
+
'mail.activity.plan.template': 30,
|
|
46
|
+
'mail.mail': 30,
|
|
47
|
+
'calendar.attendee': 30,
|
|
48
|
+
'calendar.alarm': 30,
|
|
49
|
+
'calendar.event.type.rel': 30,
|
|
50
|
+
};
|
|
51
|
+
class ImportProblem extends Error {
|
|
52
|
+
code;
|
|
53
|
+
details;
|
|
54
|
+
constructor(code, message, details) {
|
|
55
|
+
super(message);
|
|
56
|
+
this.code = code;
|
|
57
|
+
this.details = details;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
const object = (value, label) => {
|
|
61
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
62
|
+
throw new ImportProblem('INVALID_VALUE', `${label} must be an object`);
|
|
63
|
+
return value;
|
|
64
|
+
};
|
|
65
|
+
const textValue = (value, label, fallback) => {
|
|
66
|
+
const valueText = value === undefined || value === null ? (fallback ?? '') : String(value);
|
|
67
|
+
const clean = valueText.trim();
|
|
68
|
+
if (!clean)
|
|
69
|
+
throw new ImportProblem('INVALID_VALUE', `${label} cannot be empty`);
|
|
70
|
+
if (clean.length > 10_000)
|
|
71
|
+
throw new ImportProblem('INVALID_VALUE', `${label} is too long`);
|
|
72
|
+
return clean;
|
|
73
|
+
};
|
|
74
|
+
const optionalText = (value) => {
|
|
75
|
+
if (value === undefined || value === null || value === false)
|
|
76
|
+
return undefined;
|
|
77
|
+
const clean = String(value).trim();
|
|
78
|
+
return clean || undefined;
|
|
79
|
+
};
|
|
80
|
+
const booleanValue = (value, fallback) => value === undefined || value === null ? fallback : Boolean(value);
|
|
81
|
+
const activityCategory = (value) => {
|
|
82
|
+
const source = optionalText(value) ?? 'default';
|
|
83
|
+
return ({
|
|
84
|
+
default: 'todo',
|
|
85
|
+
todo: 'todo',
|
|
86
|
+
phonecall: 'call',
|
|
87
|
+
call: 'call',
|
|
88
|
+
email: 'email',
|
|
89
|
+
meeting: 'meeting',
|
|
90
|
+
upload_file: 'upload',
|
|
91
|
+
upload: 'upload',
|
|
92
|
+
}[source] ?? 'todo');
|
|
93
|
+
};
|
|
94
|
+
const activityChaining = (value) => {
|
|
95
|
+
const source = optionalText(value) ?? 'suggest';
|
|
96
|
+
return ['none', 'suggest', 'trigger'].includes(source) ? source : 'suggest';
|
|
97
|
+
};
|
|
98
|
+
const messageKind = (value) => {
|
|
99
|
+
const source = optionalText(value) ?? 'comment';
|
|
100
|
+
if (['comment', 'note', 'system', 'email'].includes(source))
|
|
101
|
+
return source;
|
|
102
|
+
if (source === 'notification' || source === 'user_notification')
|
|
103
|
+
return 'system';
|
|
104
|
+
return 'comment';
|
|
105
|
+
};
|
|
106
|
+
const integerValue = (value, label, fallback = 0) => {
|
|
107
|
+
const result = value === undefined || value === null ? fallback : Number(value);
|
|
108
|
+
if (!Number.isSafeInteger(result))
|
|
109
|
+
throw new ImportProblem('INVALID_VALUE', `${label} must be an integer`);
|
|
110
|
+
return result;
|
|
111
|
+
};
|
|
112
|
+
const recordId = (value, label = 'source id') => {
|
|
113
|
+
const id = textValue(value, label);
|
|
114
|
+
if (id.length > 200 || /[\r\n]/.test(id))
|
|
115
|
+
throw new ImportProblem('INVALID_SOURCE_ID', `${label} is invalid`);
|
|
116
|
+
return id;
|
|
117
|
+
};
|
|
118
|
+
const stableValue = (value) => {
|
|
119
|
+
if (Array.isArray(value))
|
|
120
|
+
return value.map(stableValue);
|
|
121
|
+
if (value && typeof value === 'object')
|
|
122
|
+
return Object.fromEntries(Object.entries(value)
|
|
123
|
+
.sort(([left], [right]) => left.localeCompare(right))
|
|
124
|
+
.map(([key, item]) => [key, stableValue(item)]));
|
|
125
|
+
return value;
|
|
126
|
+
};
|
|
127
|
+
const stableJson = (value) => JSON.stringify(stableValue(value));
|
|
128
|
+
const digest = (value) => createHash('sha256').update(stableJson(value)).digest('hex');
|
|
129
|
+
const shortDigest = (value, length = 24) => digest(value).slice(0, length);
|
|
130
|
+
const jsonObject = (value) => (typeof value === 'string' ? JSON.parse(value) : value);
|
|
131
|
+
const stableTargetId = (databaseUuid, model, id) => `odoo:${shortDigest(databaseUuid, 12)}:${model.replace(/[^a-z0-9]+/gi, '_')}:${id}`;
|
|
132
|
+
const stableMapId = (sourceId, sourceModel, sourceRecordId, targetModel) => `odoo-map:${shortDigest([sourceId, sourceModel, sourceRecordId, targetModel], 32)}`;
|
|
133
|
+
const parseDate = (value, label) => {
|
|
134
|
+
const result = textValue(value, label);
|
|
135
|
+
if (!/^\d{4}-\d{2}-\d{2}$/.test(result) || Number.isNaN(Date.parse(`${result}T00:00:00.000Z`)))
|
|
136
|
+
throw new ImportProblem('INVALID_DATE', `${label} must be YYYY-MM-DD`);
|
|
137
|
+
return result;
|
|
138
|
+
};
|
|
139
|
+
const parseDatetime = (value, label, conversion) => {
|
|
140
|
+
const input = textValue(value, label);
|
|
141
|
+
const normalizedInput = /^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}:\d{2}(?:\.\d+)?$/.test(input)
|
|
142
|
+
? `${input.replace(' ', 'T')}Z`
|
|
143
|
+
: input;
|
|
144
|
+
const parsed = new Date(normalizedInput);
|
|
145
|
+
if (Number.isNaN(parsed.valueOf()))
|
|
146
|
+
throw new ImportProblem('INVALID_DATETIME', `${label} must be an ISO or Odoo UTC datetime`);
|
|
147
|
+
const result = parsed.toISOString();
|
|
148
|
+
if (input !== result)
|
|
149
|
+
conversion.count += 1;
|
|
150
|
+
return result;
|
|
151
|
+
};
|
|
152
|
+
const timezone = (value) => {
|
|
153
|
+
const zone = optionalText(value) ?? 'UTC';
|
|
154
|
+
try {
|
|
155
|
+
new Intl.DateTimeFormat('en', { timeZone: zone }).format(new Date(0));
|
|
156
|
+
}
|
|
157
|
+
catch {
|
|
158
|
+
throw new ImportProblem('INVALID_TIMEZONE', `unknown IANA timezone ${zone}`);
|
|
159
|
+
}
|
|
160
|
+
return zone;
|
|
161
|
+
};
|
|
162
|
+
const stringArray = (value) => {
|
|
163
|
+
if (value === undefined || value === null || value === false)
|
|
164
|
+
return [];
|
|
165
|
+
if (!Array.isArray(value))
|
|
166
|
+
throw new ImportProblem('INVALID_VALUE', 'expected an array');
|
|
167
|
+
return value.map((item) => recordId(item));
|
|
168
|
+
};
|
|
169
|
+
const emailAddresses = (value, label) => {
|
|
170
|
+
if (!Array.isArray(value))
|
|
171
|
+
throw new ImportProblem('INVALID_EMAIL_RECIPIENT', `${label} must be an array`);
|
|
172
|
+
return value.map((item, index) => {
|
|
173
|
+
const source = typeof item === 'string' ? { address: item } : object(item, `${label}[${index}]`);
|
|
174
|
+
const address = textValue(source.address, `${label}[${index}].address`).toLowerCase();
|
|
175
|
+
if (!address.includes('@') || /[\r\n]/.test(address))
|
|
176
|
+
throw new ImportProblem('INVALID_EMAIL_RECIPIENT', `${label}[${index}] is not a safe email address`);
|
|
177
|
+
const name = optionalText(source.name);
|
|
178
|
+
return { address, ...(name ? { name } : {}) };
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
const secretFree = (value) => {
|
|
182
|
+
const removed = [];
|
|
183
|
+
const walk = (item, path) => {
|
|
184
|
+
if (Array.isArray(item))
|
|
185
|
+
return item.map((child, index) => walk(child, `${path}[${index}]`));
|
|
186
|
+
if (!item || typeof item !== 'object')
|
|
187
|
+
return item;
|
|
188
|
+
const output = {};
|
|
189
|
+
for (const [key, child] of Object.entries(item)) {
|
|
190
|
+
if (SECRET_KEY.test(key))
|
|
191
|
+
removed.push(path ? `${path}.${key}` : key);
|
|
192
|
+
else
|
|
193
|
+
output[key] = walk(child, path ? `${path}.${key}` : key);
|
|
194
|
+
}
|
|
195
|
+
return output;
|
|
196
|
+
};
|
|
197
|
+
return { value: walk(value, ''), removed };
|
|
198
|
+
};
|
|
199
|
+
const emptyCount = () => ({
|
|
200
|
+
received: 0,
|
|
201
|
+
inserted: 0,
|
|
202
|
+
updated: 0,
|
|
203
|
+
skipped: 0,
|
|
204
|
+
unresolved: 0,
|
|
205
|
+
});
|
|
206
|
+
const parseBatch = (input) => {
|
|
207
|
+
const raw = object(input, 'batch');
|
|
208
|
+
const mode = raw.mode === 'snapshot' || raw.mode === 'delta' ? raw.mode : null;
|
|
209
|
+
if (!mode)
|
|
210
|
+
throw new ImportProblem('INVALID_MODE', 'mode must be snapshot or delta');
|
|
211
|
+
if (!Array.isArray(raw.rows))
|
|
212
|
+
throw new ImportProblem('INVALID_ROWS', 'rows must be an array');
|
|
213
|
+
if (raw.rows.length > MAX_ROWS)
|
|
214
|
+
throw new ImportProblem('BATCH_TOO_LARGE', `at most ${MAX_ROWS} rows are allowed`);
|
|
215
|
+
const bindings = raw.bindings ?? [];
|
|
216
|
+
if (!Array.isArray(bindings))
|
|
217
|
+
throw new ImportProblem('INVALID_BINDINGS', 'bindings must be an array');
|
|
218
|
+
if (bindings.length > MAX_BINDINGS)
|
|
219
|
+
throw new ImportProblem('BATCH_TOO_LARGE', `at most ${MAX_BINDINGS} bindings are allowed`);
|
|
220
|
+
const rows = raw.rows.map((item, index) => {
|
|
221
|
+
const row = object(item, `rows[${index}]`);
|
|
222
|
+
return {
|
|
223
|
+
model: textValue(row.model, `rows[${index}].model`),
|
|
224
|
+
id: recordId(row.id, `rows[${index}].id`),
|
|
225
|
+
values: object(row.values, `rows[${index}].values`),
|
|
226
|
+
};
|
|
227
|
+
});
|
|
228
|
+
const parsedBindings = bindings.map((item, index) => {
|
|
229
|
+
const binding = object(item, `bindings[${index}]`);
|
|
230
|
+
return {
|
|
231
|
+
sourceModel: textValue(binding.sourceModel, `bindings[${index}].sourceModel`),
|
|
232
|
+
sourceId: recordId(binding.sourceId, `bindings[${index}].sourceId`),
|
|
233
|
+
targetModel: textValue(binding.targetModel, `bindings[${index}].targetModel`),
|
|
234
|
+
targetId: recordId(binding.targetId, `bindings[${index}].targetId`),
|
|
235
|
+
};
|
|
236
|
+
});
|
|
237
|
+
return {
|
|
238
|
+
runId: recordId(raw.runId, 'runId'),
|
|
239
|
+
sourceId: recordId(raw.sourceId, 'sourceId'),
|
|
240
|
+
sourceName: textValue(raw.sourceName, 'sourceName'),
|
|
241
|
+
databaseUuid: textValue(raw.databaseUuid, 'databaseUuid'),
|
|
242
|
+
odooVersion: textValue(raw.odooVersion, 'odooVersion'),
|
|
243
|
+
mode,
|
|
244
|
+
...(optionalText(raw.previousCursor) ? { previousCursor: optionalText(raw.previousCursor) } : {}),
|
|
245
|
+
cursor: textValue(raw.cursor, 'cursor'),
|
|
246
|
+
bindings: parsedBindings,
|
|
247
|
+
rows,
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
const allowedBindingTarget = (target) => [
|
|
251
|
+
'mail.Thread',
|
|
252
|
+
'partner.Partner',
|
|
253
|
+
'user.User',
|
|
254
|
+
'mail.Subtype',
|
|
255
|
+
'activity.Type',
|
|
256
|
+
'storage.Attachment',
|
|
257
|
+
].includes(target);
|
|
258
|
+
const targetExists = async (ctx, model, id) => {
|
|
259
|
+
switch (model) {
|
|
260
|
+
case 'mail.Thread': {
|
|
261
|
+
const T = ctx.table('mail.Thread');
|
|
262
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
263
|
+
}
|
|
264
|
+
case 'partner.Partner': {
|
|
265
|
+
const T = ctx.table('partner.Partner');
|
|
266
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
267
|
+
}
|
|
268
|
+
case 'user.User': {
|
|
269
|
+
const T = ctx.table('user.User');
|
|
270
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
271
|
+
}
|
|
272
|
+
case 'mail.Subtype': {
|
|
273
|
+
const T = ctx.table('mail.Subtype');
|
|
274
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
275
|
+
}
|
|
276
|
+
case 'activity.Type': {
|
|
277
|
+
const T = ctx.table('activity.Type');
|
|
278
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
279
|
+
}
|
|
280
|
+
case 'mail.Message': {
|
|
281
|
+
const T = ctx.table('mail.Message');
|
|
282
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
283
|
+
}
|
|
284
|
+
case 'mail.TrackingValue': {
|
|
285
|
+
const T = ctx.table('mail.TrackingValue');
|
|
286
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
287
|
+
}
|
|
288
|
+
case 'mail.Follower': {
|
|
289
|
+
const T = ctx.table('mail.Follower');
|
|
290
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
291
|
+
}
|
|
292
|
+
case 'mail.Notification': {
|
|
293
|
+
const T = ctx.table('mail.Notification');
|
|
294
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
295
|
+
}
|
|
296
|
+
case 'activity.Activity': {
|
|
297
|
+
const T = ctx.table('activity.Activity');
|
|
298
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
299
|
+
}
|
|
300
|
+
case 'activity.Plan': {
|
|
301
|
+
const T = ctx.table('activity.Plan');
|
|
302
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
303
|
+
}
|
|
304
|
+
case 'activity.PlanStep': {
|
|
305
|
+
const T = ctx.table('activity.PlanStep');
|
|
306
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
307
|
+
}
|
|
308
|
+
case 'calendar.Recurrence': {
|
|
309
|
+
const T = ctx.table('calendar.Recurrence');
|
|
310
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
311
|
+
}
|
|
312
|
+
case 'calendar.Event': {
|
|
313
|
+
const T = ctx.table('calendar.Event');
|
|
314
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
315
|
+
}
|
|
316
|
+
case 'calendar.Attendee': {
|
|
317
|
+
const T = ctx.table('calendar.Attendee');
|
|
318
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
319
|
+
}
|
|
320
|
+
case 'calendar.Reminder': {
|
|
321
|
+
const T = ctx.table('calendar.Reminder');
|
|
322
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
323
|
+
}
|
|
324
|
+
case 'calendar.Tag': {
|
|
325
|
+
const T = ctx.table('calendar.Tag');
|
|
326
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
327
|
+
}
|
|
328
|
+
case 'calendar.EventTag': {
|
|
329
|
+
const T = ctx.table('calendar.EventTag');
|
|
330
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
331
|
+
}
|
|
332
|
+
case 'storage.Attachment': {
|
|
333
|
+
const T = ctx.table('storage.Attachment');
|
|
334
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
335
|
+
}
|
|
336
|
+
case 'mail_inbound.AliasDomain': {
|
|
337
|
+
const T = ctx.table('mail_inbound.AliasDomain');
|
|
338
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
339
|
+
}
|
|
340
|
+
case 'mail_inbound.Alias': {
|
|
341
|
+
const T = ctx.table('mail_inbound.Alias');
|
|
342
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
343
|
+
}
|
|
344
|
+
case 'mail_transport.Template': {
|
|
345
|
+
const T = ctx.table('mail_transport.Template');
|
|
346
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
347
|
+
}
|
|
348
|
+
case 'mail_transport.Delivery': {
|
|
349
|
+
const T = ctx.table('mail_transport.Delivery');
|
|
350
|
+
return Boolean(await ctx.db.one(from(T).where(eq(T.id, id))));
|
|
351
|
+
}
|
|
352
|
+
default:
|
|
353
|
+
return false;
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
const mapKey = (sourceModel, sourceId, targetModel) => `${sourceModel}\u0000${sourceId}\u0000${targetModel}`;
|
|
357
|
+
const addIssue = (state, severity, code, sourceModel, sourceRecordId, message, details) => {
|
|
358
|
+
state.issues.push({ severity, code, sourceModel, sourceRecordId, message, ...(details ? { details } : {}) });
|
|
359
|
+
};
|
|
360
|
+
const existsCached = async (state, model, id) => {
|
|
361
|
+
const key = `${model}\u0000${id}`;
|
|
362
|
+
const known = state.existence.get(key);
|
|
363
|
+
if (known !== undefined)
|
|
364
|
+
return known;
|
|
365
|
+
const exists = await targetExists(state.ctx, model, id);
|
|
366
|
+
state.existence.set(key, exists);
|
|
367
|
+
return exists;
|
|
368
|
+
};
|
|
369
|
+
const resolve = async (state, sourceModel, sourceRecordId, targetModel, label) => {
|
|
370
|
+
const sourceId = recordId(sourceRecordId, label);
|
|
371
|
+
const key = mapKey(sourceModel, sourceId, targetModel);
|
|
372
|
+
const available = state.available.get(key);
|
|
373
|
+
if (available)
|
|
374
|
+
return available;
|
|
375
|
+
const mapped = state.maps.get(key);
|
|
376
|
+
if (!mapped)
|
|
377
|
+
throw new ImportProblem('MISSING_MAPPING', `${label} has no ${targetModel} mapping`, {
|
|
378
|
+
sourceModel,
|
|
379
|
+
sourceId,
|
|
380
|
+
targetModel,
|
|
381
|
+
});
|
|
382
|
+
const targetId = String(mapped.targetId);
|
|
383
|
+
if (!(await existsCached(state, targetModel, targetId)))
|
|
384
|
+
throw new ImportProblem('ORPHAN_MAPPING', `${label} points to missing ${targetModel} ${targetId}`);
|
|
385
|
+
state.available.set(key, targetId);
|
|
386
|
+
return targetId;
|
|
387
|
+
};
|
|
388
|
+
const writeMap = async (state, sourceModel, sourceRecordId, targetModel, targetId, checksum) => {
|
|
389
|
+
const key = mapKey(sourceModel, sourceRecordId, targetModel);
|
|
390
|
+
const existing = state.maps.get(key);
|
|
391
|
+
const target = { sourceModel, sourceId: sourceRecordId, targetModel, targetId };
|
|
392
|
+
state.targets.push(target);
|
|
393
|
+
state.available.set(key, targetId);
|
|
394
|
+
state.existence.set(`${targetModel}\u0000${targetId}`, true);
|
|
395
|
+
if (!state.apply)
|
|
396
|
+
return;
|
|
397
|
+
if (existing) {
|
|
398
|
+
await state.ctx.db.update('odoo_collaboration_import.Map', { id: existing.id }, { checksum, lastRunId: state.batch.runId, importedAt: state.now });
|
|
399
|
+
Object.assign(existing, { checksum, lastRunId: state.batch.runId, importedAt: state.now });
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
const row = {
|
|
403
|
+
id: stableMapId(state.batch.sourceId, sourceModel, sourceRecordId, targetModel),
|
|
404
|
+
sourceId: state.batch.sourceId,
|
|
405
|
+
sourceModel,
|
|
406
|
+
sourceRecordId,
|
|
407
|
+
targetModel,
|
|
408
|
+
targetId,
|
|
409
|
+
checksum,
|
|
410
|
+
firstRunId: state.batch.runId,
|
|
411
|
+
lastRunId: state.batch.runId,
|
|
412
|
+
importedAt: state.now,
|
|
413
|
+
};
|
|
414
|
+
await state.ctx.db.insert('odoo_collaboration_import.Map', row);
|
|
415
|
+
state.maps.set(key, row);
|
|
416
|
+
};
|
|
417
|
+
const processBindings = async (state) => {
|
|
418
|
+
const count = state.counts.$bindings ?? (state.counts.$bindings = emptyCount());
|
|
419
|
+
for (const binding of state.batch.bindings ?? []) {
|
|
420
|
+
count.received += 1;
|
|
421
|
+
const sourceModel = textValue(binding.sourceModel, 'binding source model');
|
|
422
|
+
const sourceId = recordId(binding.sourceId, 'binding source id');
|
|
423
|
+
const targetModel = textValue(binding.targetModel, 'binding target model');
|
|
424
|
+
const targetId = recordId(binding.targetId, 'binding target id');
|
|
425
|
+
if (!allowedBindingTarget(targetModel)) {
|
|
426
|
+
addIssue(state, 'error', 'UNSUPPORTED_BINDING', sourceModel, sourceId, `binding to ${targetModel} is not allowed`);
|
|
427
|
+
count.unresolved += 1;
|
|
428
|
+
continue;
|
|
429
|
+
}
|
|
430
|
+
if (!(await existsCached(state, targetModel, targetId))) {
|
|
431
|
+
addIssue(state, 'error', 'MISSING_TARGET', sourceModel, sourceId, `${targetModel} ${targetId} does not exist`);
|
|
432
|
+
count.unresolved += 1;
|
|
433
|
+
continue;
|
|
434
|
+
}
|
|
435
|
+
const key = mapKey(sourceModel, sourceId, targetModel);
|
|
436
|
+
const checksum = digest(binding);
|
|
437
|
+
const existing = state.maps.get(key);
|
|
438
|
+
if (existing && String(existing.targetId) !== targetId) {
|
|
439
|
+
addIssue(state, 'error', 'BINDING_CONFLICT', sourceModel, sourceId, `stable mapping already points to ${existing.targetModel} ${existing.targetId}`);
|
|
440
|
+
count.unresolved += 1;
|
|
441
|
+
continue;
|
|
442
|
+
}
|
|
443
|
+
if (existing && existing.checksum === checksum) {
|
|
444
|
+
state.available.set(key, targetId);
|
|
445
|
+
count.skipped += 1;
|
|
446
|
+
continue;
|
|
447
|
+
}
|
|
448
|
+
await writeMap(state, sourceModel, sourceId, targetModel, targetId, checksum);
|
|
449
|
+
if (existing)
|
|
450
|
+
count.updated += 1;
|
|
451
|
+
else
|
|
452
|
+
count.inserted += 1;
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
const targetRow = async (state, sourceModel, sourceId, values) => {
|
|
456
|
+
const targetId = stableTargetId(state.batch.databaseUuid, sourceModel, sourceId);
|
|
457
|
+
switch (sourceModel) {
|
|
458
|
+
case 'mail.message.subtype':
|
|
459
|
+
return {
|
|
460
|
+
id: targetId,
|
|
461
|
+
code: optionalText(values.code) ?? `odoo.${sourceId}`,
|
|
462
|
+
name: textValue(values.name, 'subtype name'),
|
|
463
|
+
defaultFollower: booleanValue(values.defaultFollower, Boolean(values.default)),
|
|
464
|
+
internalOnly: booleanValue(values.internalOnly, Boolean(values.internal)),
|
|
465
|
+
active: booleanValue(values.active, true),
|
|
466
|
+
};
|
|
467
|
+
case 'mail.activity.type':
|
|
468
|
+
return {
|
|
469
|
+
id: targetId,
|
|
470
|
+
name: textValue(values.name, 'activity type name'),
|
|
471
|
+
category: activityCategory(values.category),
|
|
472
|
+
...(optionalText(values.icon) ? { icon: optionalText(values.icon) } : {}),
|
|
473
|
+
defaultDelayDays: integerValue(values.defaultDelayDays ?? values.delayCount, 'default delay', 0),
|
|
474
|
+
chainingPolicy: activityChaining(values.chainingPolicy ?? values.chainingType),
|
|
475
|
+
sequence: integerValue(values.sequence, 'sequence', 10),
|
|
476
|
+
active: booleanValue(values.active, true),
|
|
477
|
+
};
|
|
478
|
+
case 'mail.message': {
|
|
479
|
+
const threadId = await resolve(state, textValue(values.resModel, 'message resModel'), values.resId, 'mail.Thread', 'message target');
|
|
480
|
+
const subtypeId = values.subtypeId
|
|
481
|
+
? await resolve(state, 'mail.message.subtype', values.subtypeId, 'mail.Subtype', 'message subtype')
|
|
482
|
+
: undefined;
|
|
483
|
+
const authorPartnerId = values.authorPartnerId
|
|
484
|
+
? await resolve(state, 'res.partner', values.authorPartnerId, 'partner.Partner', 'message author partner')
|
|
485
|
+
: undefined;
|
|
486
|
+
const authorUserId = values.authorUserId
|
|
487
|
+
? await resolve(state, 'res.users', values.authorUserId, 'user.User', 'message author user')
|
|
488
|
+
: undefined;
|
|
489
|
+
return {
|
|
490
|
+
id: targetId,
|
|
491
|
+
threadId,
|
|
492
|
+
...(subtypeId ? { subtypeId } : {}),
|
|
493
|
+
...(authorPartnerId ? { authorPartnerId } : {}),
|
|
494
|
+
...(authorUserId ? { authorUserId } : {}),
|
|
495
|
+
...(optionalText(values.emailFrom) ? { emailFrom: optionalText(values.emailFrom) } : {}),
|
|
496
|
+
kind: messageKind(values.kind ?? values.messageType),
|
|
497
|
+
direction: optionalText(values.direction) ?? 'internal',
|
|
498
|
+
...(optionalText(values.subject) ? { subject: optionalText(values.subject) } : {}),
|
|
499
|
+
body: inboundPlainText(optionalText(values.bodyText) ?? '', optionalText(values.bodyHtml ?? values.body)),
|
|
500
|
+
externalVisible: booleanValue(values.externalVisible, !values.internal),
|
|
501
|
+
createdAt: parseDatetime(values.createdAt ?? values.date, 'message createdAt', state.conversion),
|
|
502
|
+
...(values.editedAt
|
|
503
|
+
? { editedAt: parseDatetime(values.editedAt, 'message editedAt', state.conversion) }
|
|
504
|
+
: {}),
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
case 'mail.tracking.value':
|
|
508
|
+
return {
|
|
509
|
+
id: targetId,
|
|
510
|
+
messageId: await resolve(state, 'mail.message', values.messageId, 'mail.Message', 'tracking message'),
|
|
511
|
+
field: textValue(values.field ?? values.fieldName, 'tracked field'),
|
|
512
|
+
...(values.oldValue !== undefined ? { oldValue: values.oldValue } : {}),
|
|
513
|
+
...(values.newValue !== undefined ? { newValue: values.newValue } : {}),
|
|
514
|
+
};
|
|
515
|
+
case 'mail.followers':
|
|
516
|
+
return {
|
|
517
|
+
id: targetId,
|
|
518
|
+
threadId: await resolve(state, textValue(values.resModel, 'follower resModel'), values.resId, 'mail.Thread', 'follower target'),
|
|
519
|
+
partnerId: await resolve(state, 'res.partner', values.partnerId, 'partner.Partner', 'follower partner'),
|
|
520
|
+
createdAt: parseDatetime(values.createdAt ?? '1970-01-01T00:00:00.000Z', 'follower createdAt', state.conversion),
|
|
521
|
+
};
|
|
522
|
+
case 'mail.notification': {
|
|
523
|
+
const rawState = optionalText(values.state ?? values.notificationStatus) ?? 'queued';
|
|
524
|
+
const notificationState = ['sent', 'ready'].includes(rawState)
|
|
525
|
+
? rawState === 'ready'
|
|
526
|
+
? 'ready'
|
|
527
|
+
: 'sent'
|
|
528
|
+
: ['bounce', 'exception', 'failed', 'canceled'].includes(rawState)
|
|
529
|
+
? 'failed'
|
|
530
|
+
: 'ready';
|
|
531
|
+
return {
|
|
532
|
+
id: targetId,
|
|
533
|
+
messageId: await resolve(state, 'mail.message', values.messageId, 'mail.Message', 'notification message'),
|
|
534
|
+
recipientPartnerId: await resolve(state, 'res.partner', values.partnerId, 'partner.Partner', 'notification partner'),
|
|
535
|
+
...(values.userId
|
|
536
|
+
? {
|
|
537
|
+
recipientUserId: await resolve(state, 'res.users', values.userId, 'user.User', 'notification user'),
|
|
538
|
+
}
|
|
539
|
+
: {}),
|
|
540
|
+
channel: optionalText(values.channel ?? values.notificationType) ?? 'inbox',
|
|
541
|
+
state: notificationState,
|
|
542
|
+
...(values.readAt
|
|
543
|
+
? { readAt: parseDatetime(values.readAt, 'notification readAt', state.conversion) }
|
|
544
|
+
: {}),
|
|
545
|
+
...(optionalText(values.failureReason ?? values.failureType)
|
|
546
|
+
? { failureReason: optionalText(values.failureReason ?? values.failureType) }
|
|
547
|
+
: {}),
|
|
548
|
+
createdAt: parseDatetime(values.createdAt ?? '1970-01-01T00:00:00.000Z', 'notification createdAt', state.conversion),
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
case 'mail.activity': {
|
|
552
|
+
const active = booleanValue(values.active, !(values.doneAt ?? values.canceledAt));
|
|
553
|
+
return {
|
|
554
|
+
id: targetId,
|
|
555
|
+
threadId: await resolve(state, textValue(values.resModel, 'activity resModel'), values.resId, 'mail.Thread', 'activity target'),
|
|
556
|
+
typeId: await resolve(state, 'mail.activity.type', values.activityTypeId, 'activity.Type', 'activity type'),
|
|
557
|
+
assigneeUserId: await resolve(state, 'res.users', values.userId, 'user.User', 'activity assignee'),
|
|
558
|
+
...(values.createUid
|
|
559
|
+
? {
|
|
560
|
+
createdByUserId: await resolve(state, 'res.users', values.createUid, 'user.User', 'activity creator'),
|
|
561
|
+
}
|
|
562
|
+
: {}),
|
|
563
|
+
summary: optionalText(values.summary) ?? 'Odoo activity',
|
|
564
|
+
...(optionalText(values.noteText ?? values.note)
|
|
565
|
+
? { note: inboundPlainText(optionalText(values.noteText) ?? '', optionalText(values.note)) }
|
|
566
|
+
: {}),
|
|
567
|
+
dueDate: parseDate(values.dueDate ?? values.dateDeadline, 'activity due date'),
|
|
568
|
+
active,
|
|
569
|
+
...(values.doneAt
|
|
570
|
+
? { doneAt: parseDatetime(values.doneAt, 'activity doneAt', state.conversion) }
|
|
571
|
+
: {}),
|
|
572
|
+
...(values.canceledAt
|
|
573
|
+
? { canceledAt: parseDatetime(values.canceledAt, 'activity canceledAt', state.conversion) }
|
|
574
|
+
: {}),
|
|
575
|
+
...(optionalText(values.feedback) ? { feedback: optionalText(values.feedback) } : {}),
|
|
576
|
+
createdAt: parseDatetime(values.createdAt ?? '1970-01-01T00:00:00.000Z', 'activity createdAt', state.conversion),
|
|
577
|
+
updatedAt: parseDatetime(values.updatedAt ?? values.createdAt ?? '1970-01-01T00:00:00.000Z', 'activity updatedAt', state.conversion),
|
|
578
|
+
};
|
|
579
|
+
}
|
|
580
|
+
case 'mail.activity.plan':
|
|
581
|
+
return {
|
|
582
|
+
id: targetId,
|
|
583
|
+
name: textValue(values.name, 'activity plan name'),
|
|
584
|
+
...(optionalText(values.description) ? { description: optionalText(values.description) } : {}),
|
|
585
|
+
active: booleanValue(values.active, true),
|
|
586
|
+
};
|
|
587
|
+
case 'mail.activity.plan.template': {
|
|
588
|
+
const strategy = optionalText(values.assigneeStrategy ?? values.responsibleType) === 'specific' ? 'specific' : 'actor';
|
|
589
|
+
const assigneeUserId = values.userId
|
|
590
|
+
? await resolve(state, 'res.users', values.userId, 'user.User', 'plan step assignee')
|
|
591
|
+
: undefined;
|
|
592
|
+
if (strategy === 'specific' && !assigneeUserId)
|
|
593
|
+
throw new ImportProblem('MISSING_MAPPING', 'specific plan step requires a mapped user');
|
|
594
|
+
return {
|
|
595
|
+
id: targetId,
|
|
596
|
+
planId: await resolve(state, 'mail.activity.plan', values.planId, 'activity.Plan', 'activity plan'),
|
|
597
|
+
typeId: await resolve(state, 'mail.activity.type', values.activityTypeId, 'activity.Type', 'plan step activity type'),
|
|
598
|
+
offsetDays: integerValue(values.offsetDays ?? values.interval, 'plan step offset', 0),
|
|
599
|
+
assigneeStrategy: strategy,
|
|
600
|
+
...(assigneeUserId ? { assigneeUserId } : {}),
|
|
601
|
+
...(optionalText(values.summary) ? { summary: optionalText(values.summary) } : {}),
|
|
602
|
+
...(optionalText(values.noteText ?? values.note)
|
|
603
|
+
? { note: inboundPlainText(optionalText(values.noteText) ?? '', optionalText(values.note)) }
|
|
604
|
+
: {}),
|
|
605
|
+
sequence: integerValue(values.sequence, 'plan step sequence', 10),
|
|
606
|
+
};
|
|
607
|
+
}
|
|
608
|
+
case 'calendar.recurrence': {
|
|
609
|
+
const frequency = optionalText(values.frequency ?? values.rruleType) ?? 'weekly';
|
|
610
|
+
if (!['daily', 'weekly', 'monthly', 'yearly'].includes(frequency))
|
|
611
|
+
throw new ImportProblem('UNSUPPORTED_RECURRENCE', `recurrence frequency ${frequency} cannot be represented exactly`);
|
|
612
|
+
const weekdays = Array.isArray(values.weekdays) ? stringArray(values.weekdays) : [];
|
|
613
|
+
if (weekdays.some((day) => !['MO', 'TU', 'WE', 'TH', 'FR', 'SA', 'SU'].includes(day)))
|
|
614
|
+
throw new ImportProblem('UNSUPPORTED_RECURRENCE', 'recurrence contains an unknown weekday');
|
|
615
|
+
return {
|
|
616
|
+
id: targetId,
|
|
617
|
+
frequency,
|
|
618
|
+
interval: integerValue(values.interval, 'recurrence interval', 1),
|
|
619
|
+
...(weekdays.length ? { weekdays } : {}),
|
|
620
|
+
...(values.count ? { count: integerValue(values.count, 'recurrence count') } : {}),
|
|
621
|
+
...(values.until ? { until: parseDate(values.until, 'recurrence until') } : {}),
|
|
622
|
+
timezone: timezone(values.timezone ?? values.tz),
|
|
623
|
+
active: booleanValue(values.active, true),
|
|
624
|
+
};
|
|
625
|
+
}
|
|
626
|
+
case 'calendar.event': {
|
|
627
|
+
const allDay = booleanValue(values.allDay, Boolean(values.allday));
|
|
628
|
+
const recurrenceId = values.recurrenceId
|
|
629
|
+
? await resolve(state, 'calendar.recurrence', values.recurrenceId, 'calendar.Recurrence', 'event recurrence')
|
|
630
|
+
: undefined;
|
|
631
|
+
return {
|
|
632
|
+
id: targetId,
|
|
633
|
+
threadId: await resolve(state, 'calendar.event', sourceId, 'mail.Thread', 'calendar event thread'),
|
|
634
|
+
organizerUserId: await resolve(state, 'res.users', values.organizerUserId ?? values.userId, 'user.User', 'event organizer'),
|
|
635
|
+
name: textValue(values.name, 'event name'),
|
|
636
|
+
...(optionalText(values.descriptionText ?? values.description)
|
|
637
|
+
? {
|
|
638
|
+
description: inboundPlainText(optionalText(values.descriptionText) ?? '', optionalText(values.description)),
|
|
639
|
+
}
|
|
640
|
+
: {}),
|
|
641
|
+
...(optionalText(values.location) ? { location: optionalText(values.location) } : {}),
|
|
642
|
+
allDay,
|
|
643
|
+
...(allDay
|
|
644
|
+
? {
|
|
645
|
+
startDate: parseDate(values.startDate, 'event startDate'),
|
|
646
|
+
stopDate: parseDate(values.stopDate, 'event stopDate'),
|
|
647
|
+
}
|
|
648
|
+
: {
|
|
649
|
+
startAt: parseDatetime(values.startAt ?? values.start, 'event startAt', state.conversion),
|
|
650
|
+
stopAt: parseDatetime(values.stopAt ?? values.stop, 'event stopAt', state.conversion),
|
|
651
|
+
}),
|
|
652
|
+
timezone: timezone(values.timezone ?? values.tz),
|
|
653
|
+
privacy: optionalText(values.privacy) ?? 'public',
|
|
654
|
+
showAs: optionalText(values.showAs ?? values.showAsStatus) ?? 'busy',
|
|
655
|
+
...(recurrenceId ? { recurrenceId } : {}),
|
|
656
|
+
...(values.recurrenceDate
|
|
657
|
+
? { recurrenceDate: parseDate(values.recurrenceDate, 'recurrence date') }
|
|
658
|
+
: {}),
|
|
659
|
+
active: booleanValue(values.active, true),
|
|
660
|
+
version: integerValue(values.version, 'event version', 1),
|
|
661
|
+
createdAt: parseDatetime(values.createdAt ?? '1970-01-01T00:00:00.000Z', 'event createdAt', state.conversion),
|
|
662
|
+
updatedAt: parseDatetime(values.updatedAt ?? values.createdAt ?? '1970-01-01T00:00:00.000Z', 'event updatedAt', state.conversion),
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
case 'calendar.attendee':
|
|
666
|
+
return {
|
|
667
|
+
id: targetId,
|
|
668
|
+
eventId: await resolve(state, 'calendar.event', values.eventId, 'calendar.Event', 'attendee event'),
|
|
669
|
+
...(values.partnerId
|
|
670
|
+
? {
|
|
671
|
+
partnerId: await resolve(state, 'res.partner', values.partnerId, 'partner.Partner', 'attendee partner'),
|
|
672
|
+
}
|
|
673
|
+
: {}),
|
|
674
|
+
...(optionalText(values.email) ? { email: optionalText(values.email) } : {}),
|
|
675
|
+
...(optionalText(values.name ?? values.commonName)
|
|
676
|
+
? { name: optionalText(values.name ?? values.commonName) }
|
|
677
|
+
: {}),
|
|
678
|
+
state: optionalText(values.state) ?? 'needsAction',
|
|
679
|
+
token: `odoo-rsvp-${shortDigest([state.batch.databaseUuid, sourceId], 32)}`,
|
|
680
|
+
...(values.respondedAt
|
|
681
|
+
? { respondedAt: parseDatetime(values.respondedAt, 'attendee respondedAt', state.conversion) }
|
|
682
|
+
: {}),
|
|
683
|
+
};
|
|
684
|
+
case 'calendar.alarm':
|
|
685
|
+
return {
|
|
686
|
+
id: targetId,
|
|
687
|
+
eventId: await resolve(state, 'calendar.event', values.eventId, 'calendar.Event', 'reminder event'),
|
|
688
|
+
channel: optionalText(values.channel ?? values.alarmType) === 'email' ? 'email' : 'inbox',
|
|
689
|
+
offsetMinutes: integerValue(values.offsetMinutes ?? values.duration, 'reminder offset', 0),
|
|
690
|
+
version: integerValue(values.version, 'reminder version', 1),
|
|
691
|
+
active: booleanValue(values.active, true),
|
|
692
|
+
...(values.sentAt
|
|
693
|
+
? { sentAt: parseDatetime(values.sentAt, 'reminder sentAt', state.conversion) }
|
|
694
|
+
: {}),
|
|
695
|
+
};
|
|
696
|
+
case 'calendar.event.type':
|
|
697
|
+
return {
|
|
698
|
+
id: targetId,
|
|
699
|
+
name: textValue(values.name, 'calendar tag name'),
|
|
700
|
+
...(optionalText(values.color) ? { color: optionalText(values.color) } : {}),
|
|
701
|
+
active: booleanValue(values.active, true),
|
|
702
|
+
};
|
|
703
|
+
case 'calendar.event.type.rel':
|
|
704
|
+
return {
|
|
705
|
+
id: targetId,
|
|
706
|
+
eventId: await resolve(state, 'calendar.event', values.eventId, 'calendar.Event', 'event tag event'),
|
|
707
|
+
tagId: await resolve(state, 'calendar.event.type', values.tagId, 'calendar.Tag', 'event tag'),
|
|
708
|
+
};
|
|
709
|
+
case 'ir.attachment': {
|
|
710
|
+
const rawKind = optionalText(values.kind) ?? (values.url ? 'url' : 'stored');
|
|
711
|
+
const kind = rawKind === 'upload' ? 'stored' : rawKind;
|
|
712
|
+
if (!['url', 'stored'].includes(kind))
|
|
713
|
+
throw new ImportProblem('INVALID_ATTACHMENT', 'attachment kind must be stored or url');
|
|
714
|
+
const url = optionalText(values.url);
|
|
715
|
+
const storeKey = optionalText(values.storeKey);
|
|
716
|
+
const checksum = optionalText(values.checksum);
|
|
717
|
+
if ((kind === 'url' && !url) || (kind === 'stored' && (!storeKey || !checksum)))
|
|
718
|
+
throw new ImportProblem('ATTACHMENT_BYTES_MISSING', kind === 'url'
|
|
719
|
+
? 'URL attachment is missing url'
|
|
720
|
+
: 'uploaded bytes must be staged and provide storeKey');
|
|
721
|
+
if (kind === 'stored') {
|
|
722
|
+
if (!checksum || !/^[a-f0-9]{64}$/.test(checksum))
|
|
723
|
+
throw new ImportProblem('INVALID_ATTACHMENT', 'stored attachment checksum must be SHA-256');
|
|
724
|
+
const company = state.ctx.scope.company;
|
|
725
|
+
const expected = `blobs/${company}/${checksum.slice(0, 2)}/${checksum}`;
|
|
726
|
+
if (storeKey !== expected)
|
|
727
|
+
throw new ImportProblem('INVALID_ATTACHMENT', 'stored attachment key does not match the active company and checksum');
|
|
728
|
+
}
|
|
729
|
+
if (kind === 'url' && (storeKey || checksum))
|
|
730
|
+
throw new ImportProblem('INVALID_ATTACHMENT', 'URL attachment cannot also reference stored bytes');
|
|
731
|
+
return {
|
|
732
|
+
id: targetId,
|
|
733
|
+
name: textValue(values.name, 'attachment name'),
|
|
734
|
+
...(optionalText(values.resModel) ? { resModel: optionalText(values.resModel) } : {}),
|
|
735
|
+
...(values.resId ? { resId: recordId(values.resId, 'attachment resId') } : {}),
|
|
736
|
+
...(optionalText(values.resField) ? { resField: optionalText(values.resField) } : {}),
|
|
737
|
+
kind,
|
|
738
|
+
...(url ? { url } : {}),
|
|
739
|
+
...(storeKey ? { storeKey } : {}),
|
|
740
|
+
mimetype: optionalText(values.mimetype) ?? 'application/octet-stream',
|
|
741
|
+
size: integerValue(values.size, 'attachment size', 0),
|
|
742
|
+
...(checksum ? { checksum } : {}),
|
|
743
|
+
public: booleanValue(values.public, false),
|
|
744
|
+
createdAt: parseDatetime(values.createdAt ?? '1970-01-01T00:00:00.000Z', 'attachment createdAt', state.conversion),
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
case 'mail.template': {
|
|
748
|
+
const subject = textValue(values.subjectTemplate ?? values.subject, 'template subject');
|
|
749
|
+
const html = optionalText(values.htmlTemplate ?? values.bodyHtml);
|
|
750
|
+
const text = optionalText(values.textTemplate ?? values.bodyText) ?? inboundPlainText('', html);
|
|
751
|
+
const qweb = /<t\b|\$\{|\{\{|\bt-(?:esc|out|foreach|if)=/i.test(`${subject}\n${text}\n${html ?? ''}`);
|
|
752
|
+
if (qweb)
|
|
753
|
+
addIssue(state, 'warning', 'UNSUPPORTED_TEMPLATE_SYNTAX', sourceModel, sourceId, 'Odoo QWeb/Jinja syntax was retained only for review; template was disabled');
|
|
754
|
+
const allowedKeys = Array.isArray(values.allowedKeys)
|
|
755
|
+
? values.allowedKeys.map((item) => textValue(item, 'allowed template key'))
|
|
756
|
+
: [];
|
|
757
|
+
return {
|
|
758
|
+
id: targetId,
|
|
759
|
+
name: textValue(values.name, 'template name'),
|
|
760
|
+
fromAddress: textValue(values.fromAddress ?? values.emailFrom, 'template from address'),
|
|
761
|
+
...(optionalText(values.fromName) ? { fromName: optionalText(values.fromName) } : {}),
|
|
762
|
+
...(optionalText(values.replyTo) ? { replyTo: optionalText(values.replyTo) } : {}),
|
|
763
|
+
subjectTemplate: subject,
|
|
764
|
+
textTemplate: text,
|
|
765
|
+
...(html ? { htmlTemplate: html } : {}),
|
|
766
|
+
allowedKeys,
|
|
767
|
+
active: qweb ? false : booleanValue(values.active, true),
|
|
768
|
+
version: integerValue(values.version, 'template version', 1),
|
|
769
|
+
createdAt: parseDatetime(values.createdAt ?? '1970-01-01T00:00:00.000Z', 'template createdAt', state.conversion),
|
|
770
|
+
updatedAt: parseDatetime(values.updatedAt ?? values.createdAt ?? '1970-01-01T00:00:00.000Z', 'template updatedAt', state.conversion),
|
|
771
|
+
};
|
|
772
|
+
}
|
|
773
|
+
case 'mail.mail': {
|
|
774
|
+
const rawState = optionalText(values.state) ?? 'outgoing';
|
|
775
|
+
const deliveryState = ['exception', 'failed'].includes(rawState) ? 'failed' : 'queued';
|
|
776
|
+
const to = emailAddresses(values.to ?? values.recipientEmails ?? [], 'delivery to');
|
|
777
|
+
if (!to.length)
|
|
778
|
+
throw new ImportProblem('INVALID_EMAIL_RECIPIENT', 'delivery requires at least one recipient');
|
|
779
|
+
const queuedAt = parseDatetime(values.queuedAt ?? values.createdAt ?? '1970-01-01T00:00:00.000Z', 'delivery queuedAt', state.conversion);
|
|
780
|
+
return {
|
|
781
|
+
id: targetId,
|
|
782
|
+
...(values.messageId
|
|
783
|
+
? {
|
|
784
|
+
messageId: await resolve(state, 'mail.message', values.messageId, 'mail.Message', 'delivery message'),
|
|
785
|
+
}
|
|
786
|
+
: {}),
|
|
787
|
+
fromAddress: textValue(values.fromAddress ?? values.emailFrom, 'delivery from address'),
|
|
788
|
+
...(optionalText(values.fromName) ? { fromName: optionalText(values.fromName) } : {}),
|
|
789
|
+
to,
|
|
790
|
+
...(Array.isArray(values.cc) && values.cc.length
|
|
791
|
+
? { cc: emailAddresses(values.cc, 'delivery cc') }
|
|
792
|
+
: {}),
|
|
793
|
+
...(Array.isArray(values.bcc) && values.bcc.length
|
|
794
|
+
? { bcc: emailAddresses(values.bcc, 'delivery bcc') }
|
|
795
|
+
: {}),
|
|
796
|
+
...(optionalText(values.replyTo) ? { replyTo: optionalText(values.replyTo) } : {}),
|
|
797
|
+
subject: optionalText(values.subject) ?? '(no subject)',
|
|
798
|
+
text: optionalText(values.text) ?? inboundPlainText('', optionalText(values.html ?? values.bodyHtml)),
|
|
799
|
+
...(optionalText(values.html ?? values.bodyHtml)
|
|
800
|
+
? { html: optionalText(values.html ?? values.bodyHtml) }
|
|
801
|
+
: {}),
|
|
802
|
+
headers: {},
|
|
803
|
+
state: deliveryState,
|
|
804
|
+
version: 1,
|
|
805
|
+
idempotencyKey: `odoo-mail:${shortDigest([state.batch.databaseUuid, sourceId], 40)}`,
|
|
806
|
+
attempts: integerValue(values.attempts, 'delivery attempts', deliveryState === 'failed' ? 1 : 0),
|
|
807
|
+
...(deliveryState === 'failed'
|
|
808
|
+
? { lastError: optionalText(values.failureReason) ?? 'Imported Odoo delivery failure' }
|
|
809
|
+
: {}),
|
|
810
|
+
queuedAt,
|
|
811
|
+
updatedAt: parseDatetime(values.updatedAt ?? queuedAt, 'delivery updatedAt', state.conversion),
|
|
812
|
+
};
|
|
813
|
+
}
|
|
814
|
+
case 'mail.alias.domain':
|
|
815
|
+
return {
|
|
816
|
+
id: targetId,
|
|
817
|
+
name: textValue(values.name, 'alias domain').toLowerCase(),
|
|
818
|
+
active: booleanValue(values.active, true),
|
|
819
|
+
createdAt: parseDatetime(values.createdAt ?? '1970-01-01T00:00:00.000Z', 'alias domain createdAt', state.conversion),
|
|
820
|
+
updatedAt: parseDatetime(values.updatedAt ?? values.createdAt ?? '1970-01-01T00:00:00.000Z', 'alias domain updatedAt', state.conversion),
|
|
821
|
+
};
|
|
822
|
+
case 'mail.alias': {
|
|
823
|
+
const defaults = secretFree(values.defaults ?? {});
|
|
824
|
+
if (defaults.removed.length)
|
|
825
|
+
addIssue(state, 'warning', 'SECRET_CONFIG_REMOVED', sourceModel, sourceId, 'secret-like alias defaults were not imported', { removed: defaults.removed });
|
|
826
|
+
const bridge = textValue(values.bridge, 'alias bridge');
|
|
827
|
+
const supportedBridge = ['stock.receipt'].includes(bridge);
|
|
828
|
+
if (!supportedBridge)
|
|
829
|
+
addIssue(state, 'warning', 'UNSUPPORTED_ALIAS_BRIDGE', sourceModel, sourceId, `alias bridge ${bridge} was imported disabled`);
|
|
830
|
+
const localPart = textValue(values.localPart ?? values.aliasName, 'alias local part').toLowerCase();
|
|
831
|
+
if (!/^[a-z0-9][a-z0-9._+-]{0,63}$/.test(localPart))
|
|
832
|
+
throw new ImportProblem('INVALID_ALIAS', 'alias local part is invalid');
|
|
833
|
+
return {
|
|
834
|
+
id: targetId,
|
|
835
|
+
...(values.domainId
|
|
836
|
+
? {
|
|
837
|
+
domainId: await resolve(state, 'mail.alias.domain', values.domainId, 'mail_inbound.AliasDomain', 'alias domain'),
|
|
838
|
+
}
|
|
839
|
+
: {}),
|
|
840
|
+
localPart,
|
|
841
|
+
name: textValue(values.name, 'alias name'),
|
|
842
|
+
bridge,
|
|
843
|
+
defaults: defaults.value,
|
|
844
|
+
active: supportedBridge && booleanValue(values.active, true),
|
|
845
|
+
createdAt: parseDatetime(values.createdAt ?? '1970-01-01T00:00:00.000Z', 'alias createdAt', state.conversion),
|
|
846
|
+
updatedAt: parseDatetime(values.updatedAt ?? values.createdAt ?? '1970-01-01T00:00:00.000Z', 'alias updatedAt', state.conversion),
|
|
847
|
+
};
|
|
848
|
+
}
|
|
849
|
+
default:
|
|
850
|
+
throw new ImportProblem('UNSUPPORTED_MODEL', `Odoo model ${sourceModel} is not supported`);
|
|
851
|
+
}
|
|
852
|
+
};
|
|
853
|
+
const writeTarget = async (state, targetModel, targetId, values, existing) => {
|
|
854
|
+
if (!state.apply)
|
|
855
|
+
return;
|
|
856
|
+
if (existing)
|
|
857
|
+
await state.ctx.db.update(targetModel, { id: targetId }, values);
|
|
858
|
+
else
|
|
859
|
+
await state.ctx.db.insert(targetModel, values);
|
|
860
|
+
};
|
|
861
|
+
const processRows = async (state) => {
|
|
862
|
+
const seen = new Set();
|
|
863
|
+
const rows = [...state.batch.rows].sort((left, right) => (rank[left.model] ?? 1_000) - (rank[right.model] ?? 1_000) ||
|
|
864
|
+
left.model.localeCompare(right.model) ||
|
|
865
|
+
String(left.id).localeCompare(String(right.id), 'en', { numeric: true }));
|
|
866
|
+
const deferred = [];
|
|
867
|
+
for (const source of rows) {
|
|
868
|
+
const sourceModel = textValue(source.model, 'source model');
|
|
869
|
+
const sourceId = recordId(source.id);
|
|
870
|
+
const count = state.counts[sourceModel] ?? (state.counts[sourceModel] = emptyCount());
|
|
871
|
+
count.received += 1;
|
|
872
|
+
const targetModel = supportedTargets[sourceModel];
|
|
873
|
+
const duplicateKey = targetModel
|
|
874
|
+
? mapKey(sourceModel, sourceId, targetModel)
|
|
875
|
+
: `${sourceModel}\u0000${sourceId}`;
|
|
876
|
+
if (seen.has(duplicateKey)) {
|
|
877
|
+
addIssue(state, 'error', 'DUPLICATE_SOURCE_ROW', sourceModel, sourceId, 'source row occurs twice in one batch');
|
|
878
|
+
count.unresolved += 1;
|
|
879
|
+
continue;
|
|
880
|
+
}
|
|
881
|
+
seen.add(duplicateKey);
|
|
882
|
+
if (!targetModel) {
|
|
883
|
+
addIssue(state, 'error', 'UNSUPPORTED_MODEL', sourceModel, sourceId, `Odoo model ${sourceModel} is not supported`);
|
|
884
|
+
count.unresolved += 1;
|
|
885
|
+
continue;
|
|
886
|
+
}
|
|
887
|
+
if (sourceModel === 'mail.mail' && String(source.values.state ?? '') === 'sent') {
|
|
888
|
+
addIssue(state, 'warning', 'SENT_DELIVERY_OMITTED', sourceModel, sourceId, 'sent Odoo delivery was omitted because its immutable history is the linked message');
|
|
889
|
+
count.skipped += 1;
|
|
890
|
+
continue;
|
|
891
|
+
}
|
|
892
|
+
const checksum = digest({ model: sourceModel, id: sourceId, values: source.values });
|
|
893
|
+
const key = mapKey(sourceModel, sourceId, targetModel);
|
|
894
|
+
const mapped = state.maps.get(key);
|
|
895
|
+
const targetId = mapped
|
|
896
|
+
? String(mapped.targetId)
|
|
897
|
+
: stableTargetId(state.batch.databaseUuid, sourceModel, sourceId);
|
|
898
|
+
if (mapped && mapped.checksum === checksum && (await existsCached(state, targetModel, targetId))) {
|
|
899
|
+
state.available.set(key, targetId);
|
|
900
|
+
state.targets.push({ sourceModel, sourceId, targetModel, targetId });
|
|
901
|
+
count.skipped += 1;
|
|
902
|
+
deferred.push(source);
|
|
903
|
+
continue;
|
|
904
|
+
}
|
|
905
|
+
try {
|
|
906
|
+
const values = await targetRow(state, sourceModel, sourceId, source.values);
|
|
907
|
+
const targetPresent = mapped ? await existsCached(state, targetModel, targetId) : false;
|
|
908
|
+
if (mapped && !targetPresent)
|
|
909
|
+
throw new ImportProblem('ORPHAN_MAPPING', `mapped target ${targetModel} ${targetId} is missing`);
|
|
910
|
+
await writeTarget(state, targetModel, targetId, values, targetPresent ? mapped : undefined);
|
|
911
|
+
await writeMap(state, sourceModel, sourceId, targetModel, targetId, checksum);
|
|
912
|
+
if (mapped)
|
|
913
|
+
count.updated += 1;
|
|
914
|
+
else
|
|
915
|
+
count.inserted += 1;
|
|
916
|
+
deferred.push(source);
|
|
917
|
+
}
|
|
918
|
+
catch (error) {
|
|
919
|
+
const problem = error instanceof ImportProblem
|
|
920
|
+
? error
|
|
921
|
+
: new ImportProblem('IMPORT_ROW_FAILED', error instanceof Error ? error.message : String(error));
|
|
922
|
+
addIssue(state, 'error', problem.code, sourceModel, sourceId, problem.message, problem.details);
|
|
923
|
+
count.unresolved += 1;
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
await processDeferred(state, deferred);
|
|
927
|
+
};
|
|
928
|
+
const processDeferred = async (state, rows) => {
|
|
929
|
+
for (const source of rows) {
|
|
930
|
+
const sourceId = String(source.id);
|
|
931
|
+
const values = source.values;
|
|
932
|
+
try {
|
|
933
|
+
if (source.model === 'mail.message' && values.parentId) {
|
|
934
|
+
const id = await resolve(state, 'mail.message', sourceId, 'mail.Message', 'message');
|
|
935
|
+
const parentId = await resolve(state, 'mail.message', values.parentId, 'mail.Message', 'message parent');
|
|
936
|
+
if (state.apply)
|
|
937
|
+
await state.ctx.db.update('mail.Message', { id }, { parentId });
|
|
938
|
+
}
|
|
939
|
+
if (source.model === 'mail.followers') {
|
|
940
|
+
const followerId = await resolve(state, 'mail.followers', sourceId, 'mail.Follower', 'follower');
|
|
941
|
+
for (const subtypeSourceId of stringArray(values.subtypeIds)) {
|
|
942
|
+
const subtypeId = await resolve(state, 'mail.message.subtype', subtypeSourceId, 'mail.Subtype', 'follower subtype');
|
|
943
|
+
if (state.apply)
|
|
944
|
+
await state.ctx.db.insertIfAbsent('mail.FollowerSubtype', {
|
|
945
|
+
id: `odoo-follower-subtype:${shortDigest([followerId, subtypeId], 32)}`,
|
|
946
|
+
followerId,
|
|
947
|
+
subtypeId,
|
|
948
|
+
});
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
if (source.model === 'mail.activity.type' && values.nextTypeId) {
|
|
952
|
+
const id = await resolve(state, 'mail.activity.type', sourceId, 'activity.Type', 'activity type');
|
|
953
|
+
const nextTypeId = await resolve(state, 'mail.activity.type', values.nextTypeId, 'activity.Type', 'next activity type');
|
|
954
|
+
if (state.apply)
|
|
955
|
+
await state.ctx.db.update('activity.Type', { id }, { nextTypeId });
|
|
956
|
+
}
|
|
957
|
+
if (source.model === 'calendar.event' && values.exceptionOfEventId) {
|
|
958
|
+
const id = await resolve(state, 'calendar.event', sourceId, 'calendar.Event', 'calendar event');
|
|
959
|
+
const exceptionOfEventId = await resolve(state, 'calendar.event', values.exceptionOfEventId, 'calendar.Event', 'event exception parent');
|
|
960
|
+
if (state.apply)
|
|
961
|
+
await state.ctx.db.update('calendar.Event', { id }, { exceptionOfEventId });
|
|
962
|
+
}
|
|
963
|
+
if (source.model === 'ir.attachment' && values.resModel && values.resId) {
|
|
964
|
+
const attachmentId = await resolve(state, 'ir.attachment', sourceId, 'storage.Attachment', 'attachment');
|
|
965
|
+
const resModel = String(values.resModel);
|
|
966
|
+
if (resModel === 'mail.message') {
|
|
967
|
+
const messageId = await resolve(state, 'mail.message', values.resId, 'mail.Message', 'attachment message');
|
|
968
|
+
if (state.apply)
|
|
969
|
+
await state.ctx.db.insertIfAbsent('mail.MessageAttachment', {
|
|
970
|
+
id: `odoo-message-attachment:${shortDigest([messageId, attachmentId], 32)}`,
|
|
971
|
+
messageId,
|
|
972
|
+
attachmentId,
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
else if (resModel === 'mail.activity') {
|
|
976
|
+
const activityId = await resolve(state, 'mail.activity', values.resId, 'activity.Activity', 'attachment activity');
|
|
977
|
+
if (state.apply)
|
|
978
|
+
await state.ctx.db.insertIfAbsent('activity.Attachment', {
|
|
979
|
+
id: `odoo-activity-attachment:${shortDigest([activityId, attachmentId], 32)}`,
|
|
980
|
+
activityId,
|
|
981
|
+
attachmentId,
|
|
982
|
+
});
|
|
983
|
+
}
|
|
984
|
+
else {
|
|
985
|
+
addIssue(state, 'warning', 'UNRESOLVED_ATTACHMENT_TARGET', source.model, sourceId, `attachment target model ${resModel} is not linked by this importer`);
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
if (source.model === 'mail.mail' && !['exception', 'failed'].includes(String(values.state ?? ''))) {
|
|
989
|
+
const deliveryId = await resolve(state, 'mail.mail', sourceId, 'mail_transport.Delivery', 'delivery');
|
|
990
|
+
if (state.apply)
|
|
991
|
+
await state.ctx.jobs.enqueue('mail_transport.deliver', { deliveryId, version: 1 }, { uniqueKey: `delivery:${deliveryId}:v1` });
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
catch (error) {
|
|
995
|
+
const problem = error instanceof ImportProblem
|
|
996
|
+
? error
|
|
997
|
+
: new ImportProblem('DEFERRED_LINK_FAILED', error instanceof Error ? error.message : String(error));
|
|
998
|
+
addIssue(state, 'error', problem.code, source.model, sourceId, problem.message, problem.details);
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
};
|
|
1002
|
+
const totals = (counts) => Object.values(counts).reduce((total, count) => ({
|
|
1003
|
+
received: total.received + count.received,
|
|
1004
|
+
inserted: total.inserted + count.inserted,
|
|
1005
|
+
updated: total.updated + count.updated,
|
|
1006
|
+
skipped: total.skipped + count.skipped,
|
|
1007
|
+
unresolved: total.unresolved + count.unresolved,
|
|
1008
|
+
}), emptyCount());
|
|
1009
|
+
const processBatch = async (ctx, batch, apply) => {
|
|
1010
|
+
const checksum = digest({
|
|
1011
|
+
sourceId: batch.sourceId,
|
|
1012
|
+
databaseUuid: batch.databaseUuid,
|
|
1013
|
+
odooVersion: batch.odooVersion,
|
|
1014
|
+
mode: batch.mode,
|
|
1015
|
+
previousCursor: batch.previousCursor ?? null,
|
|
1016
|
+
cursor: batch.cursor,
|
|
1017
|
+
bindings: batch.bindings ?? [],
|
|
1018
|
+
rows: batch.rows,
|
|
1019
|
+
});
|
|
1020
|
+
const R = ctx.table('odoo_collaboration_import.Run');
|
|
1021
|
+
const existingRun = await ctx.db.one(from(R).where(eq(R.id, batch.runId)));
|
|
1022
|
+
if (existingRun) {
|
|
1023
|
+
if (existingRun.batchChecksum !== checksum)
|
|
1024
|
+
throw new KetError({
|
|
1025
|
+
code: 'E_ODOO_IMPORT_RUN_CONFLICT',
|
|
1026
|
+
module: 'odoo_collaboration_import',
|
|
1027
|
+
message: `run ${batch.runId} already exists with another payload`,
|
|
1028
|
+
});
|
|
1029
|
+
return jsonObject(existingRun.report);
|
|
1030
|
+
}
|
|
1031
|
+
const S = ctx.table('odoo_collaboration_import.Source');
|
|
1032
|
+
const source = await ctx.db.one(from(S).where(eq(S.id, batch.sourceId)));
|
|
1033
|
+
const databaseOwner = await ctx.db.one(from(S).where(eq(S.databaseUuid, batch.databaseUuid)));
|
|
1034
|
+
if (source && source.databaseUuid !== batch.databaseUuid)
|
|
1035
|
+
throw new ImportProblem('SOURCE_CONFLICT', `source ${batch.sourceId} belongs to another Odoo database`);
|
|
1036
|
+
if (databaseOwner && databaseOwner.id !== batch.sourceId)
|
|
1037
|
+
throw new ImportProblem('SOURCE_CONFLICT', `Odoo database is already registered as ${databaseOwner.id}`);
|
|
1038
|
+
if (batch.mode === 'delta' && String(source?.lastCursor ?? '') !== String(batch.previousCursor ?? ''))
|
|
1039
|
+
throw new KetError({
|
|
1040
|
+
code: 'E_ODOO_IMPORT_CHECKPOINT',
|
|
1041
|
+
module: 'odoo_collaboration_import',
|
|
1042
|
+
message: `delta expected checkpoint ${batch.previousCursor ?? '(empty)'}, current checkpoint is ${source?.lastCursor ?? '(empty)'}`,
|
|
1043
|
+
});
|
|
1044
|
+
const now = new Date().toISOString();
|
|
1045
|
+
if (apply) {
|
|
1046
|
+
if (source)
|
|
1047
|
+
await ctx.db.update('odoo_collaboration_import.Source', { id: batch.sourceId }, { name: batch.sourceName, odooVersion: batch.odooVersion, updatedAt: now });
|
|
1048
|
+
else
|
|
1049
|
+
await ctx.db.insert('odoo_collaboration_import.Source', {
|
|
1050
|
+
id: batch.sourceId,
|
|
1051
|
+
name: batch.sourceName,
|
|
1052
|
+
databaseUuid: batch.databaseUuid,
|
|
1053
|
+
odooVersion: batch.odooVersion,
|
|
1054
|
+
createdAt: now,
|
|
1055
|
+
updatedAt: now,
|
|
1056
|
+
});
|
|
1057
|
+
await ctx.db.insert('odoo_collaboration_import.Run', {
|
|
1058
|
+
id: batch.runId,
|
|
1059
|
+
sourceId: batch.sourceId,
|
|
1060
|
+
mode: batch.mode,
|
|
1061
|
+
state: 'running',
|
|
1062
|
+
...(batch.previousCursor ? { previousCursor: batch.previousCursor } : {}),
|
|
1063
|
+
cursor: batch.cursor,
|
|
1064
|
+
batchChecksum: checksum,
|
|
1065
|
+
report: {},
|
|
1066
|
+
startedAt: now,
|
|
1067
|
+
});
|
|
1068
|
+
}
|
|
1069
|
+
const M = ctx.table('odoo_collaboration_import.Map');
|
|
1070
|
+
const mapRows = await ctx.db.all(from(M).where(eq(M.sourceId, batch.sourceId)));
|
|
1071
|
+
const state = {
|
|
1072
|
+
ctx,
|
|
1073
|
+
batch,
|
|
1074
|
+
apply,
|
|
1075
|
+
now,
|
|
1076
|
+
batchChecksum: checksum,
|
|
1077
|
+
maps: new Map(mapRows.map((row) => [
|
|
1078
|
+
mapKey(String(row.sourceModel), String(row.sourceRecordId), String(row.targetModel)),
|
|
1079
|
+
row,
|
|
1080
|
+
])),
|
|
1081
|
+
available: new Map(),
|
|
1082
|
+
existence: new Map(),
|
|
1083
|
+
issues: [],
|
|
1084
|
+
counts: {},
|
|
1085
|
+
targets: [],
|
|
1086
|
+
conversion: { count: 0 },
|
|
1087
|
+
};
|
|
1088
|
+
await processBindings(state);
|
|
1089
|
+
await processRows(state);
|
|
1090
|
+
const report = {
|
|
1091
|
+
runId: batch.runId,
|
|
1092
|
+
sourceId: batch.sourceId,
|
|
1093
|
+
mode: batch.mode,
|
|
1094
|
+
cursor: batch.cursor,
|
|
1095
|
+
batchChecksum: checksum,
|
|
1096
|
+
counts: state.counts,
|
|
1097
|
+
totals: totals(state.counts),
|
|
1098
|
+
warnings: state.issues.filter((issue) => issue.severity === 'warning').length,
|
|
1099
|
+
errors: state.issues.filter((issue) => issue.severity === 'error').length,
|
|
1100
|
+
timezoneConversions: state.conversion.count,
|
|
1101
|
+
targets: state.targets,
|
|
1102
|
+
issues: state.issues,
|
|
1103
|
+
};
|
|
1104
|
+
if (apply) {
|
|
1105
|
+
for (const [index, issue] of state.issues.entries())
|
|
1106
|
+
await ctx.db.insert('odoo_collaboration_import.Issue', {
|
|
1107
|
+
id: `${batch.runId}:issue:${String(index + 1).padStart(5, '0')}`,
|
|
1108
|
+
runId: batch.runId,
|
|
1109
|
+
severity: issue.severity,
|
|
1110
|
+
code: issue.code,
|
|
1111
|
+
sourceModel: issue.sourceModel,
|
|
1112
|
+
sourceRecordId: issue.sourceRecordId,
|
|
1113
|
+
message: issue.message,
|
|
1114
|
+
...(issue.details ? { details: issue.details } : {}),
|
|
1115
|
+
resolved: false,
|
|
1116
|
+
createdAt: now,
|
|
1117
|
+
});
|
|
1118
|
+
await ctx.db.update('odoo_collaboration_import.Source', { id: batch.sourceId }, { lastCursor: batch.cursor, lastImportedAt: now, updatedAt: now });
|
|
1119
|
+
await ctx.db.update('odoo_collaboration_import.Run', { id: batch.runId }, { state: 'completed', report, completedAt: now });
|
|
1120
|
+
}
|
|
1121
|
+
return report;
|
|
1122
|
+
};
|
|
1123
|
+
export const previewOdooBatch = (ctx, input) => processBatch(ctx, parseBatch(input), false);
|
|
1124
|
+
export const importOdooBatch = (ctx, input) => processBatch(ctx, parseBatch(input), true);
|
|
1125
|
+
export const odooRollbackManifest = async (ctx, runId) => {
|
|
1126
|
+
const R = ctx.table('odoo_collaboration_import.Run');
|
|
1127
|
+
const run = await ctx.db.one(from(R).where(eq(R.id, runId)));
|
|
1128
|
+
if (!run)
|
|
1129
|
+
throw new ImportProblem('RUN_NOT_FOUND', `import run ${runId} does not exist`);
|
|
1130
|
+
const report = jsonObject(run.report);
|
|
1131
|
+
return {
|
|
1132
|
+
runId,
|
|
1133
|
+
readOnly: true,
|
|
1134
|
+
targets: report.targets ?? [],
|
|
1135
|
+
warning: 'This manifest performs no reverse writes. Roll back cutover by returning traffic to the frozen Odoo database; preserve KetSuite for audit.',
|
|
1136
|
+
};
|
|
1137
|
+
};
|
|
1138
|
+
export { parseBatch, stableTargetId };
|
|
1139
|
+
//# sourceMappingURL=operations.js.map
|