shutro-erp 0.3.3 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (412) hide show
  1. package/dist/account_portal/.kosh/bindings.js +1 -1
  2. package/dist/account_portal/.kosh/schema.d.ts +181 -3
  3. package/dist/account_portal/module.d.ts +359 -6
  4. package/dist/accounting/.kosh/bindings.js +1 -1
  5. package/dist/accounting/.kosh/schema.d.ts +181 -3
  6. package/dist/accounting/index.js +214 -2
  7. package/dist/accounting/module.d.ts +217 -5
  8. package/dist/accounting/module.js +23 -2
  9. package/dist/calendar/.kosh/bindings.d.ts +22 -0
  10. package/dist/calendar/.kosh/bindings.js +15 -0
  11. package/dist/calendar/.kosh/schema.d.ts +795 -0
  12. package/dist/calendar/demo.d.ts +6 -0
  13. package/dist/calendar/demo.js +24 -0
  14. package/dist/calendar/index.d.ts +3 -0
  15. package/dist/calendar/index.js +291 -0
  16. package/dist/calendar/module.d.ts +1705 -0
  17. package/dist/calendar/module.js +180 -0
  18. package/dist/cli/init.js +48 -0
  19. package/dist/cli/templates.d.ts +1 -1
  20. package/dist/cli/templates.js +137 -0
  21. package/dist/contacts/.kosh/bindings.js +1 -1
  22. package/dist/contacts/.kosh/schema.d.ts +205 -3
  23. package/dist/contacts/demo.js +30 -1
  24. package/dist/contacts/index.d.ts +1 -1
  25. package/dist/contacts/index.js +155 -9
  26. package/dist/contacts/module.d.ts +338 -2
  27. package/dist/contacts/module.js +82 -5
  28. package/dist/crm/.kosh/bindings.d.ts +22 -0
  29. package/dist/crm/.kosh/bindings.js +15 -0
  30. package/dist/crm/.kosh/schema.d.ts +799 -0
  31. package/dist/crm/demo.d.ts +6 -0
  32. package/dist/crm/demo.js +45 -0
  33. package/dist/crm/index.d.ts +3 -0
  34. package/dist/crm/index.js +361 -0
  35. package/dist/crm/module.d.ts +1843 -0
  36. package/dist/crm/module.js +207 -0
  37. package/dist/event/.kosh/bindings.d.ts +22 -0
  38. package/dist/event/.kosh/bindings.js +15 -0
  39. package/dist/event/.kosh/schema.d.ts +843 -0
  40. package/dist/event/demo.d.ts +6 -0
  41. package/dist/event/demo.js +65 -0
  42. package/dist/event/index.d.ts +14 -0
  43. package/dist/event/index.js +333 -0
  44. package/dist/event/mails.d.ts +15 -0
  45. package/dist/event/mails.js +112 -0
  46. package/dist/event/module.d.ts +2800 -0
  47. package/dist/event/module.js +323 -0
  48. package/dist/event/web/CheckInBox.d.ts +9 -0
  49. package/dist/event/web/CheckInBox.js +87 -0
  50. package/dist/event/web/index.d.ts +11 -0
  51. package/dist/event/web/index.js +16 -0
  52. package/dist/event/web/messages.d.ts +2 -0
  53. package/dist/event/web/messages.js +23 -0
  54. package/dist/event_account/.kosh/bindings.d.ts +22 -0
  55. package/dist/event_account/.kosh/bindings.js +15 -0
  56. package/dist/event_account/.kosh/schema.d.ts +1639 -0
  57. package/dist/event_account/index.d.ts +3 -0
  58. package/dist/event_account/index.js +28 -0
  59. package/dist/event_account/module.d.ts +6968 -0
  60. package/dist/event_account/module.js +90 -0
  61. package/dist/hr/.kosh/bindings.d.ts +22 -0
  62. package/dist/hr/.kosh/bindings.js +15 -0
  63. package/dist/hr/.kosh/schema.d.ts +878 -0
  64. package/dist/hr/demo.d.ts +6 -0
  65. package/dist/hr/demo.js +60 -0
  66. package/dist/hr/index.d.ts +3 -0
  67. package/dist/hr/index.js +483 -0
  68. package/dist/hr/module.d.ts +2611 -0
  69. package/dist/hr/module.js +350 -0
  70. package/dist/integrations/index.js +12 -0
  71. package/dist/integrations/web/OAuthAppsPage.d.ts +9 -0
  72. package/dist/integrations/web/OAuthAppsPage.js +79 -0
  73. package/dist/integrations/web/index.d.ts +1 -0
  74. package/dist/integrations/web/index.js +3 -0
  75. package/dist/integrations/web/messages.js +58 -0
  76. package/dist/l10n_bd/.kosh/bindings.js +1 -1
  77. package/dist/l10n_bd/.kosh/schema.d.ts +181 -3
  78. package/dist/l10n_bd/module.d.ts +359 -6
  79. package/dist/l10n_in/.kosh/bindings.js +1 -1
  80. package/dist/l10n_in/.kosh/schema.d.ts +181 -3
  81. package/dist/l10n_in/module.d.ts +380 -7
  82. package/dist/maintenance/.kosh/bindings.d.ts +22 -0
  83. package/dist/maintenance/.kosh/bindings.js +15 -0
  84. package/dist/maintenance/.kosh/schema.d.ts +911 -0
  85. package/dist/maintenance/demo.d.ts +6 -0
  86. package/dist/maintenance/demo.js +60 -0
  87. package/dist/maintenance/index.d.ts +3 -0
  88. package/dist/maintenance/index.js +422 -0
  89. package/dist/maintenance/module.d.ts +3545 -0
  90. package/dist/maintenance/module.js +446 -0
  91. package/dist/maintenance_stock/.kosh/bindings.d.ts +22 -0
  92. package/dist/maintenance_stock/.kosh/bindings.js +15 -0
  93. package/dist/maintenance_stock/.kosh/schema.d.ts +1371 -0
  94. package/dist/maintenance_stock/index.d.ts +9 -0
  95. package/dist/maintenance_stock/index.js +52 -0
  96. package/dist/maintenance_stock/module.d.ts +6953 -0
  97. package/dist/maintenance_stock/module.js +192 -0
  98. package/dist/messaging/web/index.js +1 -1
  99. package/dist/modules-sdk/index.d.ts +1 -1
  100. package/dist/modules-sdk/manifest.d.ts +70 -0
  101. package/dist/modules-sdk/manifest.js +35 -1
  102. package/dist/mrp/.kosh/bindings.d.ts +22 -0
  103. package/dist/mrp/.kosh/bindings.js +15 -0
  104. package/dist/mrp/.kosh/schema.d.ts +1378 -0
  105. package/dist/mrp/demo.d.ts +7 -0
  106. package/dist/mrp/demo.js +42 -0
  107. package/dist/mrp/index.d.ts +3 -0
  108. package/dist/mrp/index.js +392 -0
  109. package/dist/mrp/module.d.ts +8608 -0
  110. package/dist/mrp/module.js +695 -0
  111. package/dist/mrp_account/.kosh/bindings.d.ts +22 -0
  112. package/dist/mrp_account/.kosh/bindings.js +15 -0
  113. package/dist/mrp_account/.kosh/schema.d.ts +2106 -0
  114. package/dist/mrp_account/index.d.ts +3 -0
  115. package/dist/mrp_account/index.js +22 -0
  116. package/dist/mrp_account/module.d.ts +20840 -0
  117. package/dist/mrp_account/module.js +123 -0
  118. package/dist/notify/web/index.js +1 -1
  119. package/dist/payment/.kosh/bindings.js +1 -1
  120. package/dist/payment/.kosh/schema.d.ts +181 -3
  121. package/dist/payment/module.d.ts +359 -6
  122. package/dist/portal/.kosh/bindings.js +1 -1
  123. package/dist/portal/.kosh/schema.d.ts +205 -3
  124. package/dist/portal/module.d.ts +166 -2
  125. package/dist/pos/.kosh/bindings.d.ts +22 -0
  126. package/dist/pos/.kosh/bindings.js +15 -0
  127. package/dist/pos/.kosh/schema.d.ts +1690 -0
  128. package/dist/pos/accounting.d.ts +10 -0
  129. package/dist/pos/accounting.js +149 -0
  130. package/dist/pos/demo.d.ts +6 -0
  131. package/dist/pos/demo.js +90 -0
  132. package/dist/pos/index.d.ts +9 -0
  133. package/dist/pos/index.js +349 -0
  134. package/dist/pos/module.d.ts +9636 -0
  135. package/dist/pos/module.js +423 -0
  136. package/dist/pos/routes.d.ts +39 -0
  137. package/dist/pos/routes.js +368 -0
  138. package/dist/pos/web/Register.d.ts +9 -0
  139. package/dist/pos/web/Register.js +252 -0
  140. package/dist/pos/web/index.d.ts +11 -0
  141. package/dist/pos/web/index.js +16 -0
  142. package/dist/pos/web/messages.d.ts +2 -0
  143. package/dist/pos/web/messages.js +87 -0
  144. package/dist/pos_stock/.kosh/bindings.d.ts +22 -0
  145. package/dist/pos_stock/.kosh/bindings.js +15 -0
  146. package/dist/pos_stock/.kosh/schema.d.ts +2015 -0
  147. package/dist/pos_stock/index.d.ts +9 -0
  148. package/dist/pos_stock/index.js +35 -0
  149. package/dist/pos_stock/module.d.ts +11935 -0
  150. package/dist/pos_stock/module.js +115 -0
  151. package/dist/product/.kosh/bindings.js +1 -1
  152. package/dist/product/.kosh/schema.d.ts +178 -1
  153. package/dist/product/index.js +81 -4
  154. package/dist/product/module.d.ts +43 -1
  155. package/dist/product/module.js +9 -2
  156. package/dist/project/.kosh/bindings.js +1 -1
  157. package/dist/project/.kosh/schema.d.ts +181 -3
  158. package/dist/project/index.js +147 -7
  159. package/dist/project/module.d.ts +210 -2
  160. package/dist/project/module.js +52 -5
  161. package/dist/project_portal/.kosh/bindings.js +1 -1
  162. package/dist/project_portal/.kosh/schema.d.ts +181 -3
  163. package/dist/project_portal/module.d.ts +353 -4
  164. package/dist/purchase/.kosh/bindings.js +1 -1
  165. package/dist/purchase/.kosh/schema.d.ts +181 -3
  166. package/dist/purchase/index.js +163 -3
  167. package/dist/purchase/module.d.ts +215 -3
  168. package/dist/purchase/module.js +21 -3
  169. package/dist/purchase_account/.kosh/bindings.js +1 -1
  170. package/dist/purchase_account/.kosh/schema.d.ts +182 -3
  171. package/dist/purchase_account/index.js +26 -1
  172. package/dist/purchase_account/module.d.ts +393 -7
  173. package/dist/purchase_portal/.kosh/bindings.js +1 -1
  174. package/dist/purchase_portal/.kosh/schema.d.ts +181 -3
  175. package/dist/purchase_portal/module.d.ts +366 -5
  176. package/dist/purchase_stock/.kosh/bindings.d.ts +22 -0
  177. package/dist/purchase_stock/.kosh/bindings.js +15 -0
  178. package/dist/purchase_stock/.kosh/schema.d.ts +1310 -0
  179. package/dist/purchase_stock/index.d.ts +7 -0
  180. package/dist/purchase_stock/index.js +91 -0
  181. package/dist/purchase_stock/module.d.ts +6763 -0
  182. package/dist/purchase_stock/module.js +144 -0
  183. package/dist/purchase_stock_account/.kosh/bindings.d.ts +22 -0
  184. package/dist/purchase_stock_account/.kosh/bindings.js +15 -0
  185. package/dist/purchase_stock_account/.kosh/schema.d.ts +1959 -0
  186. package/dist/purchase_stock_account/index.d.ts +3 -0
  187. package/dist/purchase_stock_account/index.js +24 -0
  188. package/dist/purchase_stock_account/module.d.ts +35366 -0
  189. package/dist/purchase_stock_account/module.js +162 -0
  190. package/dist/recruitment/.kosh/bindings.d.ts +22 -0
  191. package/dist/recruitment/.kosh/bindings.js +15 -0
  192. package/dist/recruitment/.kosh/schema.d.ts +990 -0
  193. package/dist/recruitment/demo.d.ts +6 -0
  194. package/dist/recruitment/demo.js +45 -0
  195. package/dist/recruitment/index.d.ts +3 -0
  196. package/dist/recruitment/index.js +385 -0
  197. package/dist/recruitment/module.d.ts +3247 -0
  198. package/dist/recruitment/module.js +193 -0
  199. package/dist/recruitment/web/HireButton.d.ts +9 -0
  200. package/dist/recruitment/web/HireButton.js +32 -0
  201. package/dist/recruitment/web/index.d.ts +11 -0
  202. package/dist/recruitment/web/index.js +16 -0
  203. package/dist/recruitment/web/messages.d.ts +2 -0
  204. package/dist/recruitment/web/messages.js +19 -0
  205. package/dist/reporting/documents.d.ts +5 -0
  206. package/dist/reporting/documents.js +28 -1
  207. package/dist/reporting/index.d.ts +1 -1
  208. package/dist/reporting/index.js +4 -2
  209. package/dist/reporting/models.js +9 -0
  210. package/dist/reporting/overviews.d.ts +16 -0
  211. package/dist/reporting/overviews.js +56 -0
  212. package/dist/reporting/routes-documents.js +1 -1
  213. package/dist/reporting/routes.js +138 -80
  214. package/dist/reporting/web/DashboardView.d.ts +11 -0
  215. package/dist/reporting/web/DashboardView.js +2 -2
  216. package/dist/reporting/web/DesignerView.js +5 -0
  217. package/dist/reporting/web/Overview.d.ts +9 -0
  218. package/dist/reporting/web/Overview.js +53 -0
  219. package/dist/reporting/web/index.d.ts +1 -0
  220. package/dist/reporting/web/index.js +4 -1
  221. package/dist/reporting/web/messages.js +9 -0
  222. package/dist/sale_account/.kosh/bindings.js +1 -1
  223. package/dist/sale_account/.kosh/schema.d.ts +186 -3
  224. package/dist/sale_account/index.js +22 -1
  225. package/dist/sale_account/module.d.ts +461 -7
  226. package/dist/sale_portal/.kosh/bindings.js +1 -1
  227. package/dist/sale_portal/.kosh/schema.d.ts +185 -3
  228. package/dist/sale_portal/module.d.ts +434 -5
  229. package/dist/sale_project/.kosh/bindings.js +1 -1
  230. package/dist/sale_project/.kosh/schema.d.ts +187 -3
  231. package/dist/sale_project/module.d.ts +476 -6
  232. package/dist/sale_stock/.kosh/bindings.d.ts +22 -0
  233. package/dist/sale_stock/.kosh/bindings.js +15 -0
  234. package/dist/sale_stock/.kosh/schema.d.ts +1228 -0
  235. package/dist/sale_stock/index.d.ts +7 -0
  236. package/dist/sale_stock/index.js +84 -0
  237. package/dist/sale_stock/module.d.ts +6791 -0
  238. package/dist/sale_stock/module.js +146 -0
  239. package/dist/sales/.kosh/bindings.js +1 -1
  240. package/dist/sales/.kosh/schema.d.ts +185 -3
  241. package/dist/sales/index.js +191 -4
  242. package/dist/sales/module.d.ts +355 -3
  243. package/dist/sales/module.js +78 -3
  244. package/dist/server/api/metadata.d.ts +5 -0
  245. package/dist/server/api/metadata.js +5 -0
  246. package/dist/server/api/rest.js +64 -1
  247. package/dist/server/api/views.js +1 -0
  248. package/dist/server/app-settings.d.ts +7 -0
  249. package/dist/server/app-settings.js +10 -0
  250. package/dist/server/auth/base.js +85 -0
  251. package/dist/server/auth/oauth.d.ts +21 -0
  252. package/dist/server/auth/oauth.js +579 -0
  253. package/dist/server/auth/service.d.ts +4 -0
  254. package/dist/server/auth/service.js +17 -0
  255. package/dist/server/identity.d.ts +2 -0
  256. package/dist/server/images.d.ts +12 -0
  257. package/dist/server/images.js +139 -0
  258. package/dist/server/index.d.ts +2 -0
  259. package/dist/server/index.js +2 -0
  260. package/dist/server/server.d.ts +4 -0
  261. package/dist/server/server.js +9 -1
  262. package/dist/settings/app-settings.d.ts +2 -0
  263. package/dist/settings/app-settings.js +518 -0
  264. package/dist/settings/company.js +3 -1
  265. package/dist/settings/index.d.ts +1 -0
  266. package/dist/settings/index.js +15 -0
  267. package/dist/settings/people.js +32 -6
  268. package/dist/settings/web/AppSettingsPage.d.ts +11 -0
  269. package/dist/settings/web/AppSettingsPage.js +210 -0
  270. package/dist/settings/web/CompaniesPage.js +2 -2
  271. package/dist/settings/web/CompanyPage.js +13 -2
  272. package/dist/settings/web/ConnectedAppsPage.d.ts +7 -0
  273. package/dist/settings/web/ConnectedAppsPage.js +33 -0
  274. package/dist/settings/web/OverviewPage.js +28 -4
  275. package/dist/settings/web/PeoplePage.js +23 -18
  276. package/dist/settings/web/ProfilePage.js +9 -7
  277. package/dist/settings/web/index.d.ts +2 -0
  278. package/dist/settings/web/index.js +8 -0
  279. package/dist/settings/web/messages.js +146 -2
  280. package/dist/stock/.kosh/bindings.d.ts +22 -0
  281. package/dist/stock/.kosh/bindings.js +15 -0
  282. package/dist/stock/.kosh/schema.d.ts +1147 -0
  283. package/dist/stock/demo.d.ts +7 -0
  284. package/dist/stock/demo.js +55 -0
  285. package/dist/stock/index.d.ts +3 -0
  286. package/dist/stock/index.js +674 -0
  287. package/dist/stock/module.d.ts +6330 -0
  288. package/dist/stock/module.js +1325 -0
  289. package/dist/stock/web/ScanBox.d.ts +8 -0
  290. package/dist/stock/web/ScanBox.js +90 -0
  291. package/dist/stock/web/index.d.ts +11 -0
  292. package/dist/stock/web/index.js +16 -0
  293. package/dist/stock/web/messages.d.ts +2 -0
  294. package/dist/stock/web/messages.js +25 -0
  295. package/dist/stock_account/.kosh/bindings.d.ts +22 -0
  296. package/dist/stock_account/.kosh/bindings.js +15 -0
  297. package/dist/stock_account/.kosh/schema.d.ts +1875 -0
  298. package/dist/stock_account/index.d.ts +3 -0
  299. package/dist/stock_account/index.js +130 -0
  300. package/dist/stock_account/module.d.ts +10655 -0
  301. package/dist/stock_account/module.js +339 -0
  302. package/dist/storage/attachments.d.ts +5 -0
  303. package/dist/storage/attachments.js +12 -1
  304. package/dist/storage/models.js +3 -0
  305. package/dist/storage/routes.js +13 -2
  306. package/dist/todo/.kosh/bindings.d.ts +22 -0
  307. package/dist/todo/.kosh/bindings.js +15 -0
  308. package/dist/todo/.kosh/schema.d.ts +732 -0
  309. package/dist/todo/demo.d.ts +6 -0
  310. package/dist/todo/demo.js +35 -0
  311. package/dist/todo/index.d.ts +3 -0
  312. package/dist/todo/index.js +187 -0
  313. package/dist/todo/module.d.ts +1180 -0
  314. package/dist/todo/module.js +130 -0
  315. package/dist/trade_finance/.kosh/bindings.d.ts +22 -0
  316. package/dist/trade_finance/.kosh/bindings.js +15 -0
  317. package/dist/trade_finance/.kosh/schema.d.ts +884 -0
  318. package/dist/trade_finance/demo.d.ts +6 -0
  319. package/dist/trade_finance/demo.js +63 -0
  320. package/dist/trade_finance/index.d.ts +3 -0
  321. package/dist/trade_finance/index.js +413 -0
  322. package/dist/trade_finance/module.d.ts +3779 -0
  323. package/dist/trade_finance/module.js +505 -0
  324. package/dist/trade_finance_account/.kosh/bindings.d.ts +22 -0
  325. package/dist/trade_finance_account/.kosh/bindings.js +15 -0
  326. package/dist/trade_finance_account/.kosh/schema.d.ts +1711 -0
  327. package/dist/trade_finance_account/index.d.ts +3 -0
  328. package/dist/trade_finance_account/index.js +92 -0
  329. package/dist/trade_finance_account/module.d.ts +7928 -0
  330. package/dist/trade_finance_account/module.js +244 -0
  331. package/dist/trade_finance_purchase/.kosh/bindings.d.ts +22 -0
  332. package/dist/trade_finance_purchase/.kosh/bindings.js +15 -0
  333. package/dist/trade_finance_purchase/.kosh/schema.d.ts +1153 -0
  334. package/dist/trade_finance_purchase/index.d.ts +8 -0
  335. package/dist/trade_finance_purchase/index.js +50 -0
  336. package/dist/trade_finance_purchase/module.d.ts +4252 -0
  337. package/dist/trade_finance_purchase/module.js +44 -0
  338. package/dist/trade_finance_sale/.kosh/bindings.d.ts +22 -0
  339. package/dist/trade_finance_sale/.kosh/bindings.js +15 -0
  340. package/dist/trade_finance_sale/.kosh/schema.d.ts +1071 -0
  341. package/dist/trade_finance_sale/index.d.ts +8 -0
  342. package/dist/trade_finance_sale/index.js +50 -0
  343. package/dist/trade_finance_sale/module.d.ts +4280 -0
  344. package/dist/trade_finance_sale/module.js +44 -0
  345. package/dist/ui/api.d.ts +6 -1
  346. package/dist/ui/api.js +2 -1
  347. package/dist/ui/app.js +51 -17
  348. package/dist/ui/components/AppIcon.js +33 -1
  349. package/dist/ui/components/Avatar.d.ts +21 -0
  350. package/dist/ui/components/Avatar.js +71 -0
  351. package/dist/ui/components/primitives.d.ts +2 -0
  352. package/dist/ui/components/primitives.js +7 -1
  353. package/dist/ui/i18n/messages.d.ts +53 -0
  354. package/dist/ui/i18n/messages.js +98 -0
  355. package/dist/ui/index.d.ts +2 -0
  356. package/dist/ui/index.js +2 -0
  357. package/dist/ui/offline/queue.d.ts +5 -1
  358. package/dist/ui/offline/queue.js +2 -0
  359. package/dist/ui/registry.d.ts +12 -1
  360. package/dist/ui/registry.js +10 -1
  361. package/dist/ui/search/ViewTabs.d.ts +14 -0
  362. package/dist/ui/search/ViewTabs.js +42 -0
  363. package/dist/ui/shell/Consent.d.ts +5 -0
  364. package/dist/ui/shell/Consent.js +35 -0
  365. package/dist/ui/shell/Home.js +136 -16
  366. package/dist/ui/shell/Sidebar.js +15 -22
  367. package/dist/ui/views/FormView.js +98 -17
  368. package/dist/ui/views/KanbanView.d.ts +2 -0
  369. package/dist/ui/views/KanbanView.js +32 -3
  370. package/dist/ui/views/ListView.js +155 -31
  371. package/dist/ui/views/StatsRow.d.ts +14 -0
  372. package/dist/ui/views/StatsRow.js +88 -0
  373. package/dist/ui/views/widgets.d.ts +2 -1
  374. package/dist/ui/views/widgets.js +194 -1
  375. package/dist/views/builders.d.ts +19 -2
  376. package/dist/views/builders.js +21 -1
  377. package/dist/views/condition.d.ts +6 -0
  378. package/dist/views/condition.js +20 -0
  379. package/dist/views/documents.d.ts +8 -0
  380. package/dist/views/extend.d.ts +2 -2
  381. package/dist/views/extend.js +11 -1
  382. package/dist/views/index.d.ts +2 -2
  383. package/dist/views/index.js +2 -2
  384. package/dist/views/types.d.ts +52 -5
  385. package/dist/views/validate.js +39 -1
  386. package/dist/website/.kosh/bindings.d.ts +22 -0
  387. package/dist/website/.kosh/bindings.js +15 -0
  388. package/dist/website/.kosh/schema.d.ts +881 -0
  389. package/dist/website/demo.d.ts +6 -0
  390. package/dist/website/demo.js +115 -0
  391. package/dist/website/index.d.ts +9 -0
  392. package/dist/website/index.js +250 -0
  393. package/dist/website/module.d.ts +2987 -0
  394. package/dist/website/module.js +281 -0
  395. package/dist/website/render.d.ts +45 -0
  396. package/dist/website/render.js +102 -0
  397. package/dist/website/routes.d.ts +12 -0
  398. package/dist/website/routes.js +246 -0
  399. package/dist/website/web/PagePreview.d.ts +7 -0
  400. package/dist/website/web/PagePreview.js +33 -0
  401. package/dist/website/web/index.d.ts +11 -0
  402. package/dist/website/web/index.js +16 -0
  403. package/dist/website/web/messages.d.ts +2 -0
  404. package/dist/website/web/messages.js +15 -0
  405. package/dist/website_crm/.kosh/bindings.d.ts +22 -0
  406. package/dist/website_crm/.kosh/bindings.js +15 -0
  407. package/dist/website_crm/.kosh/schema.d.ts +966 -0
  408. package/dist/website_crm/index.d.ts +3 -0
  409. package/dist/website_crm/index.js +39 -0
  410. package/dist/website_crm/module.d.ts +2955 -0
  411. package/dist/website_crm/module.js +44 -0
  412. package/package.json +118 -1
@@ -0,0 +1,180 @@
1
+ /**
2
+ * The data layer of Agenda (RFC 0021): events with their attendees — people of the company or contacts from outside,
3
+ * each with their answer — rooms that are never double-booked, and privacy: public events are seen by every Agenda
4
+ * user, private ones by their organizer and attendees only. Only the organizer (and Agenda managers) change an event;
5
+ * an attendee changes their own answer.
6
+ */
7
+ import { contactsShutro } from '../contacts/index.js';
8
+ import { messagingShutro } from '../messaging/index.js';
9
+ import { installationSetting } from '../server/index.js';
10
+ import { orm } from '../server/orm.js';
11
+ import { check, defineModel, defineModule, f, onchange } from './.kosh/bindings.js';
12
+ const ALL = ['read', 'write', 'create', 'unlink'];
13
+ const me = { $env: 'uid' };
14
+ /** A meeting room (or any bookable place): booked with its events, never twice at once. */
15
+ export const CalendarRoom = defineModel('calendar.room', {
16
+ label: 'Room',
17
+ recName: 'name',
18
+ order: ['name asc'],
19
+ archivable: true,
20
+ access: { 'calendar.user': ['read'], 'calendar.manager': ALL },
21
+ fields: {
22
+ name: f.char({ required: true }),
23
+ capacity: f.integer({ label: 'Seats' }),
24
+ location: f.char(),
25
+ },
26
+ });
27
+ export const CalendarEvent = defineModel('calendar.event', {
28
+ label: 'Event',
29
+ recName: 'name',
30
+ order: ['start desc', 'id desc'],
31
+ tracking: ['start', 'stop', 'room', 'state'],
32
+ access: { 'calendar.user': ALL, 'calendar.manager': ALL },
33
+ rules: {
34
+ // Public events for everyone; private ones for their organizer and attendees.
35
+ see: {
36
+ groups: ['calendar.user'],
37
+ perms: ['read'],
38
+ domain: {
39
+ or: [{ privacy: 'public' }, { organizer: me }, { attendees: { any: { user: me } } }],
40
+ },
41
+ },
42
+ organize: {
43
+ groups: ['calendar.user'],
44
+ perms: ['write', 'create', 'unlink'],
45
+ domain: { organizer: me },
46
+ },
47
+ all: { groups: ['calendar.manager'], perms: [...ALL], domain: {} },
48
+ },
49
+ fields: {
50
+ name: f.char({ required: true, label: 'Title' }),
51
+ start: f.datetime({ required: true }),
52
+ stop: f.datetime({ required: true, label: 'End' }),
53
+ allDay: f.boolean({ default: false, label: 'All day' }),
54
+ organizer: f.many2one('res.users', { required: true, default: (env) => env.userId }),
55
+ attendees: f.one2many('calendar.attendee', 'event'),
56
+ room: f.many2one('calendar.room', { ondelete: 'restrict' }),
57
+ location: f.char(),
58
+ videoUrl: f.char({ label: 'Video call link' }),
59
+ privacy: f.selection({ public: 'Public', private: 'Private (busy for others)' }, { required: true, default: 'public' }),
60
+ state: f.state({
61
+ states: { confirmed: 'Confirmed', cancelled: 'Cancelled' },
62
+ initial: 'confirmed',
63
+ transitions: {
64
+ cancel: { from: ['confirmed'], to: 'cancelled' },
65
+ restore: { from: ['cancelled'], to: 'confirmed' },
66
+ },
67
+ }),
68
+ description: f.text(),
69
+ /** The record of another app it is about (`sale.order`, 42), if any. */
70
+ resModel: f.char({ label: 'About (model)' }),
71
+ resId: f.integer({ label: 'About (id)' }),
72
+ },
73
+ sqlConstraints: {
74
+ endsAfterStart: { check: orm.sql `stop > start`, message: 'An event ends after it starts.' },
75
+ },
76
+ constraints: {
77
+ // Across everyone's events, private ones too: the check reads as the system, not as the user.
78
+ roomFree: {
79
+ ...check('calendar.event', ['room', 'start', 'stop', 'state'], async (events) => events.env.asSuperuser({ reason: 'room bookings' }, async (su) => {
80
+ const failing = [];
81
+ for (const e of events) {
82
+ if (e.room === null || e.state === 'cancelled')
83
+ continue;
84
+ const clash = await su.model('calendar.event').search({
85
+ where: {
86
+ room: e.room.id,
87
+ state: 'confirmed',
88
+ id: { ne: e.id },
89
+ start: { lt: e.stop },
90
+ stop: { gt: e.start },
91
+ },
92
+ limit: 1,
93
+ });
94
+ if (clash.length > 0)
95
+ failing.push(e.id);
96
+ }
97
+ return failing;
98
+ })),
99
+ message: 'The room is already booked at that time.',
100
+ },
101
+ },
102
+ onchange: {
103
+ // The end follows the start by the default length (Settings › App settings › Agenda).
104
+ start: onchange('calendar.event', async (d, env) => {
105
+ const start = d.get('start');
106
+ const at = start instanceof Date ? start.getTime() : Date.parse(String(start ?? ''));
107
+ if (Number.isNaN(at))
108
+ return;
109
+ const minutes = await installationSetting(env, 'calendar.defaultMinutes', 60);
110
+ d.set('stop', new Date(at + Number(minutes) * 60_000));
111
+ }),
112
+ },
113
+ });
114
+ /** An attendee: a person of the company (`user`) or a contact from outside (`partner`), with their answer. */
115
+ export const CalendarAttendee = defineModel('calendar.attendee', {
116
+ label: 'Attendee',
117
+ order: ['id asc'],
118
+ access: { 'calendar.user': ALL, 'calendar.manager': ALL },
119
+ rules: {
120
+ see: {
121
+ groups: ['calendar.user'],
122
+ perms: ['read'],
123
+ domain: {
124
+ or: [
125
+ { 'event.privacy': 'public' },
126
+ { 'event.organizer': me },
127
+ { user: me },
128
+ { 'event.attendees': { any: { user: me } } },
129
+ ],
130
+ },
131
+ },
132
+ // The organizer manages the list; each attendee answers for themself.
133
+ answer: {
134
+ groups: ['calendar.user'],
135
+ perms: ['write'],
136
+ domain: { or: [{ 'event.organizer': me }, { user: me }] },
137
+ },
138
+ organize: {
139
+ groups: ['calendar.user'],
140
+ perms: ['create', 'unlink'],
141
+ domain: { 'event.organizer': me },
142
+ },
143
+ all: { groups: ['calendar.manager'], perms: [...ALL], domain: {} },
144
+ },
145
+ fields: {
146
+ event: f.many2one('calendar.event', { required: true, ondelete: 'cascade' }),
147
+ user: f.many2one('res.users', { label: 'Person' }),
148
+ partner: f.many2one('res.partner', { label: 'Contact' }),
149
+ response: f.selection({
150
+ needs_action: 'Not answered',
151
+ accepted: 'Accepted',
152
+ tentative: 'Maybe',
153
+ declined: 'Declined',
154
+ }, { required: true, default: 'needs_action', label: 'Answer' }),
155
+ },
156
+ sqlConstraints: {
157
+ someone: {
158
+ check: orm.sql `user_id IS NOT NULL OR partner_id IS NOT NULL`,
159
+ message: 'An attendee is a person or a contact.',
160
+ },
161
+ },
162
+ });
163
+ export const calendarShutro = defineModule({
164
+ name: 'calendar',
165
+ version: '0.1.0',
166
+ depends: [contactsShutro, messagingShutro],
167
+ groups: [
168
+ orm.defineGroup({
169
+ code: 'calendar.user',
170
+ label: 'Agenda user',
171
+ implies: ['contacts.user', 'messaging.user'],
172
+ }),
173
+ orm.defineGroup({
174
+ code: 'calendar.manager',
175
+ label: 'Agenda manager',
176
+ implies: ['calendar.user'],
177
+ }),
178
+ ],
179
+ models: [CalendarRoom, CalendarEvent, CalendarAttendee],
180
+ });
package/dist/cli/init.js CHANGED
@@ -531,8 +531,56 @@ async function modulesFor(apps) {
531
531
  modules.push((await import('../purchase_account/index.js')).purchaseAccount);
532
532
  if (app === 'project')
533
533
  modules.push((await import('../project/index.js')).project);
534
+ if (app === 'todo')
535
+ modules.push((await import('../todo/index.js')).todo);
536
+ if (app === 'calendar')
537
+ modules.push((await import('../calendar/index.js')).calendarApp);
538
+ if (app === 'crm')
539
+ modules.push((await import('../crm/index.js')).crm);
540
+ if (app === 'hr')
541
+ modules.push((await import('../hr/index.js')).hr);
542
+ if (app === 'stock')
543
+ modules.push((await import('../stock/index.js')).stock);
544
+ if (app === 'mrp')
545
+ modules.push((await import('../mrp/index.js')).mrp);
546
+ if (app === 'maintenance')
547
+ modules.push((await import('../maintenance/index.js')).maintenance);
548
+ if (app === 'event')
549
+ modules.push((await import('../event/index.js')).event);
550
+ if (app === 'website')
551
+ modules.push((await import('../website/index.js')).website);
552
+ if (app === 'pos')
553
+ modules.push((await import('../pos/index.js')).pos);
554
+ if (app === 'trade_finance')
555
+ modules.push((await import('../trade_finance/index.js')).tradeFinance);
556
+ if (app === 'recruitment')
557
+ modules.push((await import('../recruitment/index.js')).recruitment);
534
558
  if (app === 'sale_project')
535
559
  modules.push((await import('../sale_project/index.js')).saleProject);
560
+ if (app === 'sale_stock')
561
+ modules.push((await import('../sale_stock/index.js')).saleStock);
562
+ if (app === 'purchase_stock')
563
+ modules.push((await import('../purchase_stock/index.js')).purchaseStock);
564
+ if (app === 'stock_account')
565
+ modules.push((await import('../stock_account/index.js')).stockAccount);
566
+ if (app === 'purchase_stock_account')
567
+ modules.push((await import('../purchase_stock_account/index.js')).purchaseStockAccount);
568
+ if (app === 'mrp_account')
569
+ modules.push((await import('../mrp_account/index.js')).mrpAccount);
570
+ if (app === 'maintenance_stock')
571
+ modules.push((await import('../maintenance_stock/index.js')).maintenanceStock);
572
+ if (app === 'trade_finance_account')
573
+ modules.push((await import('../trade_finance_account/index.js')).tradeFinanceAccount);
574
+ if (app === 'trade_finance_purchase')
575
+ modules.push((await import('../trade_finance_purchase/index.js')).tradeFinancePurchase);
576
+ if (app === 'trade_finance_sale')
577
+ modules.push((await import('../trade_finance_sale/index.js')).tradeFinanceSale);
578
+ if (app === 'event_account')
579
+ modules.push((await import('../event_account/index.js')).eventAccount);
580
+ if (app === 'website_crm')
581
+ modules.push((await import('../website_crm/index.js')).websiteCrm);
582
+ if (app === 'pos_stock')
583
+ modules.push((await import('../pos_stock/index.js')).posStock);
536
584
  if (app === 'l10n_bd')
537
585
  modules.push((await import('../l10n_bd/index.js')).l10nBd);
538
586
  if (app === 'l10n_in')
@@ -2,7 +2,7 @@
2
2
  * The starter project `shutro-erp init` writes: an API server and the back-office app, both importing `shutro-erp`.
3
3
  * Server files run on Node.js directly (type stripping); the back-office is a Vite app proxying `/api` to the server.
4
4
  */
5
- export type AppName = 'permissions' | 'reporting' | 'messaging' | 'contacts' | 'product' | 'sales' | 'purchase' | 'accounting' | 'sale_account' | 'purchase_account' | 'project' | 'sale_project' | 'l10n_bd' | 'l10n_in';
5
+ export type AppName = 'permissions' | 'reporting' | 'messaging' | 'contacts' | 'product' | 'sales' | 'purchase' | 'accounting' | 'sale_account' | 'purchase_account' | 'project' | 'todo' | 'calendar' | 'crm' | 'hr' | 'recruitment' | 'stock' | 'mrp' | 'maintenance' | 'trade_finance' | 'event' | 'website' | 'pos' | 'sale_project' | 'sale_stock' | 'purchase_stock' | 'stock_account' | 'purchase_stock_account' | 'mrp_account' | 'maintenance_stock' | 'trade_finance_account' | 'trade_finance_purchase' | 'trade_finance_sale' | 'event_account' | 'website_crm' | 'pos_stock' | 'l10n_bd' | 'l10n_in';
6
6
  export interface AppSpec {
7
7
  readonly label: string;
8
8
  /** Shown next to the app in the installer (where the terminal shows pictographs). */
@@ -61,12 +61,149 @@ export const APPS = {
61
61
  server: 'purchaseAccount',
62
62
  bridge: ['purchase', 'accounting'],
63
63
  },
64
+ todo: {
65
+ label: 'Focus: your to-dos and shared lists, with checklists and due dates',
66
+ icon: '✅',
67
+ server: 'todo',
68
+ },
69
+ calendar: {
70
+ label: 'Agenda: meetings, rooms that are never double-booked, who is free when',
71
+ icon: '📅',
72
+ server: 'calendarApp',
73
+ },
74
+ crm: {
75
+ label: 'Pipeline: deals on a board, stage rules, the weighted forecast',
76
+ icon: '📈',
77
+ server: 'crm',
78
+ },
79
+ hr: {
80
+ label: 'Workforce: employees, the org chart, contracts and leave',
81
+ icon: '🧑‍💼',
82
+ server: 'hr',
83
+ },
84
+ recruitment: {
85
+ label: 'Hiring: openings, applicants on a board, independent scorecards, hire in one step',
86
+ icon: '🤝',
87
+ server: 'recruitment',
88
+ web: 'registerRecruitmentWeb',
89
+ },
90
+ stock: {
91
+ label: 'Stockroom: warehouses, transfers with one clear status, reservations that say what they are for',
92
+ icon: '🏬',
93
+ server: 'stock',
94
+ web: 'registerStockWeb',
95
+ },
96
+ mrp: {
97
+ label: 'Production: bills of materials with versions, orders that show what is short and what they cost',
98
+ icon: '🏭',
99
+ server: 'mrp',
100
+ },
101
+ maintenance: {
102
+ label: 'Asset Care: equipment, preventive plans by time or meter, maintenance orders, reliability',
103
+ icon: '🛠️',
104
+ server: 'maintenance',
105
+ },
106
+ trade_finance: {
107
+ label: 'Trade Finance: letters of credit, amendments, presentations and discrepancies, bank limits',
108
+ icon: '🏦',
109
+ server: 'tradeFinance',
110
+ },
111
+ event: {
112
+ label: 'Event Hub: events, tickets and seats, waiting lists, check-in by QR',
113
+ icon: '🎟️',
114
+ server: 'event',
115
+ web: 'registerEventWeb',
116
+ },
117
+ website: {
118
+ label: 'Sites: website pages from blocks, forms that create records, a public API',
119
+ icon: '🌐',
120
+ server: 'website',
121
+ web: 'registerWebsiteWeb',
122
+ },
123
+ pos: {
124
+ label: 'Counter: point of sale with sessions, split payments, receipts and the register',
125
+ icon: '🧾',
126
+ server: 'pos',
127
+ web: 'registerPosWeb',
128
+ },
64
129
  sale_project: {
65
130
  label: 'Bridge: tasks and projects from sales orders (Sales ↔ Projects)',
66
131
  icon: '🔗',
67
132
  server: 'saleProject',
68
133
  bridge: ['sales', 'project'],
69
134
  },
135
+ sale_stock: {
136
+ label: 'Bridge: deliveries from sales orders (Sales ↔ Stockroom)',
137
+ icon: '🔗',
138
+ server: 'saleStock',
139
+ bridge: ['sales', 'stock'],
140
+ },
141
+ purchase_stock: {
142
+ label: 'Bridge: receipts from purchase orders (Purchase ↔ Stockroom)',
143
+ icon: '🔗',
144
+ server: 'purchaseStock',
145
+ bridge: ['purchase', 'stock'],
146
+ },
147
+ stock_account: {
148
+ label: 'Bridge: the stock valued and posted as it moves (Stockroom ↔ Accounting)',
149
+ icon: '🔗',
150
+ server: 'stockAccount',
151
+ bridge: ['stock', 'accounting'],
152
+ },
153
+ purchase_stock_account: {
154
+ label: 'Bridge: receipts at the order price, bills clearing goods received (Purchase ↔ Stockroom ↔ Accounting)',
155
+ icon: '🔗',
156
+ server: 'purchaseStockAccount',
157
+ bridge: ['purchase', 'stock', 'accounting'],
158
+ },
159
+ mrp_account: {
160
+ label: 'Bridge: products made valued at what they consumed plus their operations (Production ↔ Accounting)',
161
+ icon: '🔗',
162
+ server: 'mrpAccount',
163
+ bridge: ['mrp', 'accounting'],
164
+ },
165
+ maintenance_stock: {
166
+ label: 'Bridge: spare parts on maintenance orders (Asset Care ↔ Stockroom)',
167
+ icon: '🔗',
168
+ server: 'maintenanceStock',
169
+ bridge: ['maintenance', 'stock'],
170
+ },
171
+ trade_finance_account: {
172
+ label: 'Bridge: LC margins, payments and bank charges in the books (Trade Finance ↔ Accounting)',
173
+ icon: '🔗',
174
+ server: 'tradeFinanceAccount',
175
+ bridge: ['trade_finance', 'accounting'],
176
+ },
177
+ trade_finance_purchase: {
178
+ label: 'Bridge: import LCs from purchase orders (Trade Finance ↔ Purchase)',
179
+ icon: '🔗',
180
+ server: 'tradeFinancePurchase',
181
+ bridge: ['trade_finance', 'purchase'],
182
+ },
183
+ trade_finance_sale: {
184
+ label: 'Bridge: export LCs for sales orders (Trade Finance ↔ Sales)',
185
+ icon: '🔗',
186
+ server: 'tradeFinanceSale',
187
+ bridge: ['trade_finance', 'sales'],
188
+ },
189
+ event_account: {
190
+ label: 'Bridge: paid event places invoiced (Event Hub ↔ Accounting)',
191
+ icon: '🔗',
192
+ server: 'eventAccount',
193
+ bridge: ['event', 'accounting'],
194
+ },
195
+ website_crm: {
196
+ label: 'Bridge: website forms that create deals (Sites ↔ Pipeline)',
197
+ icon: '🔗',
198
+ server: 'websiteCrm',
199
+ bridge: ['website', 'crm'],
200
+ },
201
+ pos_stock: {
202
+ label: 'Bridge: a closed Counter session leaves stock as one delivery (Counter ↔ Stockroom)',
203
+ icon: '🔗',
204
+ server: 'posStock',
205
+ bridge: ['pos', 'stock'],
206
+ },
70
207
  l10n_bd: {
71
208
  label: 'Bangladesh: chart of accounts, VAT and SD, VDS and TDS, BIN and TIN, July–June year',
72
209
  icon: '🇧🇩',
@@ -1,4 +1,4 @@
1
- // GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: 31cf57953410c779
1
+ // GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: f17b2929d6c50f64
2
2
  // Bindings of module `contacts`: import the definition API from here to get types scoped to what it can see.
3
3
  export { defineModel, defineModule, extendModel, f, replace } from '../../server/orm.js';
4
4
  import { definitions } from '../../server/orm.js';
@@ -1,4 +1,4 @@
1
- // GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: 31cf57953410c779
1
+ // GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: f17b2929d6c50f64
2
2
  // Schema view of module `contacts` (RFC 0002 §7.7): the models it owns or depends on, with the extensions it can see.
3
3
  import type { F } from '../../server/orm.js';
4
4
 
@@ -11,11 +11,19 @@ export interface SchemaView {
11
11
  readonly 'auth.session': AuthSession;
12
12
  readonly 'auth.user_grant': AuthUserGrant;
13
13
  readonly 'auth.user_group': AuthUserGroup;
14
+ readonly 'kosh.image': KoshImage;
14
15
  readonly 'kosh.saved_view': KoshSavedView;
16
+ readonly 'kosh.setting': KoshSetting;
17
+ readonly 'oauth.app': OauthApp;
18
+ readonly 'oauth.code': OauthCode;
19
+ readonly 'oauth.grant': OauthGrant;
20
+ readonly 'oauth.token': OauthToken;
15
21
  readonly 'res.company': ResCompany;
16
22
  readonly 'res.currency': ResCurrency;
17
23
  readonly 'res.partner': ResPartner;
24
+ readonly 'res.partner.tag': ResPartnerTag;
18
25
  readonly 'res.users': ResUsers;
26
+ readonly 'storage.attachment': StorageAttachment;
19
27
  }
20
28
 
21
29
  /** `audit.event` (owner: base). */
@@ -187,6 +195,29 @@ export interface AuthUserGroup {
187
195
  export interface AuthUserGroupMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.user_group'> {
188
196
  }
189
197
 
198
+ /** `kosh.image` (owner: base). */
199
+ export interface KoshImage {
200
+ readonly name: 'kosh.image';
201
+ readonly fields: {
202
+ readonly id: F.Id<'kosh.image'>;
203
+ readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
204
+ readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
205
+ readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
206
+ readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
207
+ readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
208
+ readonly ownerModel: F.Char<{ readonly required: true }>;
209
+ readonly ownerId: F.Integer<{ readonly required: true }>;
210
+ readonly mime: F.Char<{ readonly required: true }>;
211
+ readonly data: F.Text<{ readonly required: true }>;
212
+ readonly hash: F.Char<{ readonly required: true }>;
213
+ };
214
+ readonly methods: KoshImageMethods;
215
+ }
216
+
217
+ /** Methods of `kosh.image`: declared ones and transitions. */
218
+ export interface KoshImageMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'kosh.image'> {
219
+ }
220
+
190
221
  /** `kosh.saved_view` (owner: base). */
191
222
  export interface KoshSavedView {
192
223
  readonly name: 'kosh.saved_view';
@@ -211,7 +242,126 @@ export interface KoshSavedView {
211
242
  export interface KoshSavedViewMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'kosh.saved_view'> {
212
243
  }
213
244
 
214
- /** `res.company` (owner: base). */
245
+ /** `kosh.setting` (owner: base). */
246
+ export interface KoshSetting {
247
+ readonly name: 'kosh.setting';
248
+ readonly fields: {
249
+ readonly id: F.Id<'kosh.setting'>;
250
+ readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
251
+ readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
252
+ readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
253
+ readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
254
+ readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
255
+ readonly key: F.Char<{ readonly required: true }>;
256
+ readonly value: F.Json;
257
+ };
258
+ readonly methods: KoshSettingMethods;
259
+ }
260
+
261
+ /** Methods of `kosh.setting`: declared ones and transitions. */
262
+ export interface KoshSettingMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'kosh.setting'> {
263
+ }
264
+
265
+ /** `oauth.app` (owner: base). */
266
+ export interface OauthApp {
267
+ readonly name: 'oauth.app';
268
+ readonly fields: {
269
+ readonly id: F.Id<'oauth.app'>;
270
+ readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
271
+ readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
272
+ readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
273
+ readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
274
+ readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
275
+ readonly name: F.Char<{ readonly required: true }>;
276
+ readonly clientId: F.Char<{ readonly required: true }>;
277
+ readonly secretHash: F.Char;
278
+ readonly confidential: F.Bool<{ readonly required: true; readonly default: true }>;
279
+ readonly redirectUris: F.Text<{ readonly required: true }>;
280
+ readonly scopes: F.Char<{ readonly required: true }>;
281
+ readonly homepage: F.Char;
282
+ readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
283
+ readonly owner: F.Many2one<'res.users'>;
284
+ };
285
+ readonly methods: OauthAppMethods;
286
+ }
287
+
288
+ /** Methods of `oauth.app`: declared ones and transitions. */
289
+ export interface OauthAppMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.app'> {
290
+ }
291
+
292
+ /** `oauth.code` (owner: base). */
293
+ export interface OauthCode {
294
+ readonly name: 'oauth.code';
295
+ readonly fields: {
296
+ readonly id: F.Id<'oauth.code'>;
297
+ readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
298
+ readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
299
+ readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
300
+ readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
301
+ readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
302
+ readonly codeHash: F.Char<{ readonly required: true }>;
303
+ readonly grant: F.Many2one<'oauth.grant', { readonly required: true }>;
304
+ readonly redirectUri: F.Char<{ readonly required: true }>;
305
+ readonly challenge: F.Char;
306
+ readonly expiresAt: F.Datetime<{ readonly required: true }>;
307
+ readonly used: F.Bool<{ readonly required: true; readonly default: true }>;
308
+ };
309
+ readonly methods: OauthCodeMethods;
310
+ }
311
+
312
+ /** Methods of `oauth.code`: declared ones and transitions. */
313
+ export interface OauthCodeMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.code'> {
314
+ }
315
+
316
+ /** `oauth.grant` (owner: base). */
317
+ export interface OauthGrant {
318
+ readonly name: 'oauth.grant';
319
+ readonly fields: {
320
+ readonly id: F.Id<'oauth.grant'>;
321
+ readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
322
+ readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
323
+ readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
324
+ readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
325
+ readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
326
+ readonly user: F.Many2one<'res.users', { readonly required: true }>;
327
+ readonly app: F.Many2one<'oauth.app', { readonly required: true }>;
328
+ readonly scopes: F.Char<{ readonly required: true }>;
329
+ readonly revoked: F.Bool<{ readonly required: true; readonly default: true }>;
330
+ readonly lastUsedAt: F.Datetime;
331
+ };
332
+ readonly methods: OauthGrantMethods;
333
+ }
334
+
335
+ /** Methods of `oauth.grant`: declared ones and transitions. */
336
+ export interface OauthGrantMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.grant'> {
337
+ }
338
+
339
+ /** `oauth.token` (owner: base). */
340
+ export interface OauthToken {
341
+ readonly name: 'oauth.token';
342
+ readonly fields: {
343
+ readonly id: F.Id<'oauth.token'>;
344
+ readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
345
+ readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
346
+ readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
347
+ readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
348
+ readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
349
+ readonly grant: F.Many2one<'oauth.grant', { readonly required: true }>;
350
+ readonly accessHash: F.Char<{ readonly required: true }>;
351
+ readonly refreshHash: F.Char<{ readonly required: true }>;
352
+ readonly accessExpiresAt: F.Datetime<{ readonly required: true }>;
353
+ readonly refreshExpiresAt: F.Datetime<{ readonly required: true }>;
354
+ readonly revoked: F.Bool<{ readonly required: true; readonly default: true }>;
355
+ readonly rotated: F.Bool<{ readonly required: true; readonly default: true }>;
356
+ };
357
+ readonly methods: OauthTokenMethods;
358
+ }
359
+
360
+ /** Methods of `oauth.token`: declared ones and transitions. */
361
+ export interface OauthTokenMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.token'> {
362
+ }
363
+
364
+ /** `res.company` (owner: base; extended by: contacts). */
215
365
  export interface ResCompany {
216
366
  readonly name: 'res.company';
217
367
  readonly fields: {
@@ -231,12 +381,14 @@ export interface ResCompany {
231
381
  readonly email: F.Char;
232
382
  readonly phone: F.Char;
233
383
  readonly website: F.Char;
384
+ readonly contactTaxIdRequired: F.Bool<{ readonly required: true; readonly default: true }>; // contacts
385
+ readonly contactUniqueEmail: F.Bool<{ readonly required: true; readonly default: true }>; // contacts
234
386
  };
235
387
  readonly methods: ResCompanyMethods;
236
388
  }
237
389
 
238
390
  /** Methods of `res.company`: declared ones and transitions. */
239
- export interface ResCompanyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'res.company'> {
391
+ export interface ResCompanyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'res.company'>, F.Methods<typeof import('../module.js').contactsShutro, 'res.company'> {
240
392
  }
241
393
 
242
394
  /** `res.currency` (owner: base). */
@@ -273,6 +425,10 @@ export interface ResPartner {
273
425
  readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
274
426
  readonly company: F.Many2one<'res.company', { readonly default: true }>;
275
427
  readonly name: F.Char<{ readonly required: true }>;
428
+ readonly image: F.Many2one<'storage.attachment'>;
429
+ readonly tags: F.Many2many<'res.partner.tag', { readonly required: true }>;
430
+ readonly latitude: F.Decimal;
431
+ readonly longitude: F.Decimal;
276
432
  readonly isCompany: F.Bool<{ readonly required: true; readonly default: true }>;
277
433
  readonly parent: F.Many2one<'res.partner'>;
278
434
  readonly contacts: F.One2many<'res.partner', { readonly required: true }>;
@@ -298,6 +454,25 @@ export interface ResPartner {
298
454
  export interface ResPartnerMethods extends F.Methods<typeof import('../module.js').contactsShutro, 'res.partner'> {
299
455
  }
300
456
 
457
+ /** `res.partner.tag` (owner: contacts). */
458
+ export interface ResPartnerTag {
459
+ readonly name: 'res.partner.tag';
460
+ readonly fields: {
461
+ readonly id: F.Id<'res.partner.tag'>;
462
+ readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
463
+ readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
464
+ readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
465
+ readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
466
+ readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
467
+ readonly name: F.Char<{ readonly required: true }>;
468
+ };
469
+ readonly methods: ResPartnerTagMethods;
470
+ }
471
+
472
+ /** Methods of `res.partner.tag`: declared ones and transitions. */
473
+ export interface ResPartnerTagMethods extends F.Methods<typeof import('../module.js').contactsShutro, 'res.partner.tag'> {
474
+ }
475
+
301
476
  /** `res.users` (owner: base). */
302
477
  export interface ResUsers {
303
478
  readonly name: 'res.users';
@@ -325,3 +500,30 @@ export interface ResUsers {
325
500
  /** Methods of `res.users`: declared ones and transitions. */
326
501
  export interface ResUsersMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'res.users'> {
327
502
  }
503
+
504
+ /** `storage.attachment` (owner: storage). */
505
+ export interface StorageAttachment {
506
+ readonly name: 'storage.attachment';
507
+ readonly fields: {
508
+ readonly id: F.Id<'storage.attachment'>;
509
+ readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
510
+ readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
511
+ readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
512
+ readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
513
+ readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
514
+ readonly name: F.Char<{ readonly required: true }>;
515
+ readonly mime: F.Char<{ readonly required: true }>;
516
+ readonly size: F.Integer<{ readonly required: true }>;
517
+ readonly sha256: F.Char<{ readonly required: true }>;
518
+ readonly key: F.Char<{ readonly required: true }>;
519
+ readonly resModel: F.Char<{ readonly required: true }>;
520
+ readonly resId: F.Integer<{ readonly required: true }>;
521
+ readonly variantOf: F.Many2one<'storage.attachment'>;
522
+ readonly width: F.Integer;
523
+ };
524
+ readonly methods: StorageAttachmentMethods;
525
+ }
526
+
527
+ /** Methods of `storage.attachment`: declared ones and transitions. */
528
+ export interface StorageAttachmentMethods extends F.Methods<typeof import('../../storage/index.js').storageShutro, 'storage.attachment'> {
529
+ }